From fcc1fe338dea7e386effa891bf20e09030707819 Mon Sep 17 00:00:00 2001 From: Mark Silverwood <3482679+SlicedSilver@users.noreply.github.com> Date: Fri, 26 Jul 2024 14:13:20 +0100 Subject: [PATCH] update create-lwc-plugin package to use v4.2.0 --- packages/create-lwc-plugin/template-common/README.md | 2 +- packages/create-lwc-plugin/template-common/package.json | 2 +- website/plugins/enhanced-codeblock/theme/CodeBlock/chart.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/create-lwc-plugin/template-common/README.md b/packages/create-lwc-plugin/template-common/README.md index b0673eb5f..ae76d1390 100644 --- a/packages/create-lwc-plugin/template-common/README.md +++ b/packages/create-lwc-plugin/template-common/README.md @@ -2,7 +2,7 @@ Description of the Plugin. -- Developed for Lightweight Charts version: `v4.1.0` +- Developed for Lightweight Charts version: `v4.2.0` ## Running Locally diff --git a/packages/create-lwc-plugin/template-common/package.json b/packages/create-lwc-plugin/template-common/package.json index eaa476ba3..781053d6c 100644 --- a/packages/create-lwc-plugin/template-common/package.json +++ b/packages/create-lwc-plugin/template-common/package.json @@ -12,6 +12,6 @@ "dependencies": { "dts-bundle-generator": "^8.0.1", "fancy-canvas": "^2.1.0", - "lightweight-charts": "^4.1.0-rc2" + "lightweight-charts": "^4.2.0" } } diff --git a/website/plugins/enhanced-codeblock/theme/CodeBlock/chart.tsx b/website/plugins/enhanced-codeblock/theme/CodeBlock/chart.tsx index 14ad13632..9ad9401a8 100644 --- a/website/plugins/enhanced-codeblock/theme/CodeBlock/chart.tsx +++ b/website/plugins/enhanced-codeblock/theme/CodeBlock/chart.tsx @@ -13,7 +13,7 @@ interface ChartProps { type IFrameWindow = Window & { createChart: LightweightChartsApiTypeMap[TVersion]['createChart']; - createChartEx: TVersion extends '4.1' | 'current' ? LightweightChartsApiTypeMap[TVersion]['createChartEx'] : undefined; + createChartEx: TVersion extends '4.2' | '4.1' | 'current' ? LightweightChartsApiTypeMap[TVersion]['createChartEx'] : undefined; run?: () => void; };