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; };