@carbon/charts-svelte 1.16.11 → 1.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,28 @@
3
3
  All notable changes to this project will be documented in this file. See
4
4
  [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 1.17.1 (2024-06-27)
7
+
8
+ **Note:** Version bump only for package @carbon/charts-svelte
9
+
10
+ # Change Log
11
+
12
+ All notable changes to this project will be documented in this file. See
13
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
14
+
15
+ # 1.17.0 (2024-06-26)
16
+
17
+ ### Features
18
+
19
+ - **docs:** Creation of new documentation website (PLEASE SQUASH COMMITS)
20
+ ([#1798](https://github.com/carbon-design-system/carbon-charts/issues/1798))
21
+ ([9df518a](https://github.com/carbon-design-system/carbon-charts/commit/9df518a43fd55f69f7d135bd5a28f083277fd287))
22
+
23
+ # Change Log
24
+
25
+ All notable changes to this project will be documented in this file. See
26
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
27
+
6
28
  ## 1.16.11 (2024-06-18)
7
29
 
8
30
  ### Bug Fixes
package/README.md CHANGED
@@ -1,11 +1,9 @@
1
1
  # Carbon Charts Svelte
2
2
 
3
3
  Carbon Charts Svelte is a thin Svelte wrapper around the vanilla JavaScript `@carbon/charts`
4
- component library. Documentation is provided below and in the Storybook demos.
4
+ component library.
5
5
 
6
- **[Storybook demos](https://charts.carbondesignsystem.com/svelte)**
7
-
8
- **[Storybook demo sources](https://github.com/carbon-design-system/carbon-charts/tree/master/packages/core/demo/data)**
6
+ ## [Documentation with StackBlitz examples](https://charts.carbondesignsystem.com/)
9
7
 
10
8
  ## Maintenance & support
11
9
 
@@ -28,6 +26,8 @@ If you prefer [Yarn](https://yarnpkg.com/en/), use the following command instead
28
26
  yarn add -D @carbon/charts-svelte
29
27
  ```
30
28
 
29
+ The required styles should be imported from `@carbon/charts-svelte/styles.css`.
30
+
31
31
  ### SvelteKit
32
32
 
33
33
  While this component library can be used with any build environments for Svelte,
@@ -186,28 +186,6 @@ hovering over a bar.
186
186
  }} />
187
187
  ```
188
188
 
189
- ## StackBlitz examples
190
-
191
- [Sample use cases can be seen here](https://charts.carbondesignsystem.com/svelte).
192
-
193
- **When opening the link above**, click on the **Edit on StackBlitz** button for each demo to see an
194
- isolated project showing you how to reproduce the demo.
195
-
196
- ## Charting data & options
197
-
198
- Although new charts will be introduced in the future (such as a choropleth), data and options follow
199
- the same model for all charts with minor exceptions. For example, in the case of a donut chart,
200
- you're able to pass in an additional field called `center` in your options to configure the donut
201
- center.
202
-
203
- [Instructions for using the **tabular data format**](https://charts.carbondesignsystem.com/svelte/?path=/docs/docs-tutorials-tabular-data-format--docs)
204
-
205
- Additional options are available depending on the chart type being used,
206
- [see our demo examples here](https://github.com/carbon-design-system/carbon-charts/tree/master/packages/core/src/demo/charts).
207
-
208
- Customizable options (specific to chart type) can be found
209
- [here](https://charts.carbondesignsystem.com/documentation/modules/interfaces.html)
210
-
211
189
  ## TypeScript support
212
190
 
213
191
  Svelte version 3.31 or greater is required to use this library with TypeScript. Svelte 4.x+ is
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import { AlluvialChart as AlluvialChartCore, type AlluvialChartOptions, type ChartTabularData } from '@carbon/charts';
3
3
  declare const __propDef: {
4
4
  props: {
@@ -19,10 +19,12 @@ declare const __propDef: {
19
19
  [evt: string]: CustomEvent<any>;
20
20
  };
21
21
  slots: {};
22
+ exports?: undefined;
23
+ bindings?: undefined;
22
24
  };
23
25
  export type AlluvialChartProps = typeof __propDef.props;
24
26
  export type AlluvialChartEvents = typeof __propDef.events;
25
27
  export type AlluvialChartSlots = typeof __propDef.slots;
26
- export default class AlluvialChart extends SvelteComponentTyped<AlluvialChartProps, AlluvialChartEvents, AlluvialChartSlots> {
28
+ export default class AlluvialChart extends SvelteComponent<AlluvialChartProps, AlluvialChartEvents, AlluvialChartSlots> {
27
29
  }
28
30
  export {};
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import { AreaChart as AreaChartCore, type AreaChartOptions, type ChartTabularData } from '@carbon/charts';
3
3
  declare const __propDef: {
4
4
  props: {
@@ -19,10 +19,12 @@ declare const __propDef: {
19
19
  [evt: string]: CustomEvent<any>;
20
20
  };
21
21
  slots: {};
22
+ exports?: undefined;
23
+ bindings?: undefined;
22
24
  };
23
25
  export type AreaChartProps = typeof __propDef.props;
24
26
  export type AreaChartEvents = typeof __propDef.events;
25
27
  export type AreaChartSlots = typeof __propDef.slots;
26
- export default class AreaChart extends SvelteComponentTyped<AreaChartProps, AreaChartEvents, AreaChartSlots> {
28
+ export default class AreaChart extends SvelteComponent<AreaChartProps, AreaChartEvents, AreaChartSlots> {
27
29
  }
28
30
  export {};
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import { GroupedBarChart as GroupedBarChartCore, type BarChartOptions, type ChartTabularData } from '@carbon/charts';
3
3
  declare const __propDef: {
4
4
  props: {
@@ -19,10 +19,12 @@ declare const __propDef: {
19
19
  [evt: string]: CustomEvent<any>;
20
20
  };
21
21
  slots: {};
22
+ exports?: undefined;
23
+ bindings?: undefined;
22
24
  };
23
25
  export type BarChartGroupedProps = typeof __propDef.props;
24
26
  export type BarChartGroupedEvents = typeof __propDef.events;
25
27
  export type BarChartGroupedSlots = typeof __propDef.slots;
26
- export default class BarChartGrouped extends SvelteComponentTyped<BarChartGroupedProps, BarChartGroupedEvents, BarChartGroupedSlots> {
28
+ export default class BarChartGrouped extends SvelteComponent<BarChartGroupedProps, BarChartGroupedEvents, BarChartGroupedSlots> {
27
29
  }
28
30
  export {};
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import { SimpleBarChart as SimpleBarChartCore, type BarChartOptions, type ChartTabularData } from '@carbon/charts';
3
3
  declare const __propDef: {
4
4
  props: {
@@ -19,10 +19,12 @@ declare const __propDef: {
19
19
  [evt: string]: CustomEvent<any>;
20
20
  };
21
21
  slots: {};
22
+ exports?: undefined;
23
+ bindings?: undefined;
22
24
  };
23
25
  export type BarChartSimpleProps = typeof __propDef.props;
24
26
  export type BarChartSimpleEvents = typeof __propDef.events;
25
27
  export type BarChartSimpleSlots = typeof __propDef.slots;
26
- export default class BarChartSimple extends SvelteComponentTyped<BarChartSimpleProps, BarChartSimpleEvents, BarChartSimpleSlots> {
28
+ export default class BarChartSimple extends SvelteComponent<BarChartSimpleProps, BarChartSimpleEvents, BarChartSimpleSlots> {
27
29
  }
28
30
  export {};
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import { StackedBarChart as StackedBarChartCore, type BarChartOptions, type ChartTabularData } from '@carbon/charts';
3
3
  declare const __propDef: {
4
4
  props: {
@@ -19,10 +19,12 @@ declare const __propDef: {
19
19
  [evt: string]: CustomEvent<any>;
20
20
  };
21
21
  slots: {};
22
+ exports?: undefined;
23
+ bindings?: undefined;
22
24
  };
23
25
  export type BarChartStackedProps = typeof __propDef.props;
24
26
  export type BarChartStackedEvents = typeof __propDef.events;
25
27
  export type BarChartStackedSlots = typeof __propDef.slots;
26
- export default class BarChartStacked extends SvelteComponentTyped<BarChartStackedProps, BarChartStackedEvents, BarChartStackedSlots> {
28
+ export default class BarChartStacked extends SvelteComponent<BarChartStackedProps, BarChartStackedEvents, BarChartStackedSlots> {
27
29
  }
28
30
  export {};
@@ -1,12 +1,12 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import type { Charts, ChartConfig, BaseChartOptions, ChartTabularData } from '@carbon/charts';
3
3
  declare class __sveltets_Render<T extends BaseChartOptions> {
4
4
  props(): {
5
5
  [x: string]: any;
6
6
  data?: ChartTabularData;
7
- options?: T;
7
+ options?: T | undefined;
8
8
  Chart: new (holder: HTMLDivElement, chartConfigs: ChartConfig<T>) => Charts;
9
- chart: Charts;
9
+ chart: Charts | undefined;
10
10
  ref: HTMLDivElement;
11
11
  id?: string;
12
12
  };
@@ -25,6 +25,6 @@ declare class __sveltets_Render<T extends BaseChartOptions> {
25
25
  export type BaseChartProps<T extends BaseChartOptions> = ReturnType<__sveltets_Render<T>['props']>;
26
26
  export type BaseChartEvents<T extends BaseChartOptions> = ReturnType<__sveltets_Render<T>['events']>;
27
27
  export type BaseChartSlots<T extends BaseChartOptions> = ReturnType<__sveltets_Render<T>['slots']>;
28
- export default class BaseChart<T extends BaseChartOptions> extends SvelteComponentTyped<BaseChartProps<T>, BaseChartEvents<T>, BaseChartSlots<T>> {
28
+ export default class BaseChart<T extends BaseChartOptions> extends SvelteComponent<BaseChartProps<T>, BaseChartEvents<T>, BaseChartSlots<T>> {
29
29
  }
30
30
  export {};
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import { BoxplotChart as BoxplotChartCore, type BoxplotChartOptions, type ChartTabularData } from '@carbon/charts';
3
3
  declare const __propDef: {
4
4
  props: {
@@ -19,10 +19,12 @@ declare const __propDef: {
19
19
  [evt: string]: CustomEvent<any>;
20
20
  };
21
21
  slots: {};
22
+ exports?: undefined;
23
+ bindings?: undefined;
22
24
  };
23
25
  export type BoxplotChartProps = typeof __propDef.props;
24
26
  export type BoxplotChartEvents = typeof __propDef.events;
25
27
  export type BoxplotChartSlots = typeof __propDef.slots;
26
- export default class BoxplotChart extends SvelteComponentTyped<BoxplotChartProps, BoxplotChartEvents, BoxplotChartSlots> {
28
+ export default class BoxplotChart extends SvelteComponent<BoxplotChartProps, BoxplotChartEvents, BoxplotChartSlots> {
27
29
  }
28
30
  export {};
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import { BubbleChart as BubbleChartCore, type BubbleChartOptions, type ChartTabularData } from '@carbon/charts';
3
3
  declare const __propDef: {
4
4
  props: {
@@ -19,10 +19,12 @@ declare const __propDef: {
19
19
  [evt: string]: CustomEvent<any>;
20
20
  };
21
21
  slots: {};
22
+ exports?: undefined;
23
+ bindings?: undefined;
22
24
  };
23
25
  export type BubbleChartProps = typeof __propDef.props;
24
26
  export type BubbleChartEvents = typeof __propDef.events;
25
27
  export type BubbleChartSlots = typeof __propDef.slots;
26
- export default class BubbleChart extends SvelteComponentTyped<BubbleChartProps, BubbleChartEvents, BubbleChartSlots> {
28
+ export default class BubbleChart extends SvelteComponent<BubbleChartProps, BubbleChartEvents, BubbleChartSlots> {
27
29
  }
28
30
  export {};
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import { BulletChart as BulletChartCore, type BulletChartOptions, type ChartTabularData } from '@carbon/charts';
3
3
  declare const __propDef: {
4
4
  props: {
@@ -19,10 +19,12 @@ declare const __propDef: {
19
19
  [evt: string]: CustomEvent<any>;
20
20
  };
21
21
  slots: {};
22
+ exports?: undefined;
23
+ bindings?: undefined;
22
24
  };
23
25
  export type BulletChartProps = typeof __propDef.props;
24
26
  export type BulletChartEvents = typeof __propDef.events;
25
27
  export type BulletChartSlots = typeof __propDef.slots;
26
- export default class BulletChart extends SvelteComponentTyped<BulletChartProps, BulletChartEvents, BulletChartSlots> {
28
+ export default class BulletChart extends SvelteComponent<BulletChartProps, BulletChartEvents, BulletChartSlots> {
27
29
  }
28
30
  export {};
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import { ChoroplethChart as ChoroplethChartCore, type ChoroplethChartOptions, type ChartTabularData } from '@carbon/charts';
3
3
  declare const __propDef: {
4
4
  props: {
@@ -19,10 +19,12 @@ declare const __propDef: {
19
19
  [evt: string]: CustomEvent<any>;
20
20
  };
21
21
  slots: {};
22
+ exports?: undefined;
23
+ bindings?: undefined;
22
24
  };
23
25
  export type ChoroplethChartProps = typeof __propDef.props;
24
26
  export type ChoroplethChartEvents = typeof __propDef.events;
25
27
  export type ChoroplethChartSlots = typeof __propDef.slots;
26
- export default class ChoroplethChart extends SvelteComponentTyped<ChoroplethChartProps, ChoroplethChartEvents, ChoroplethChartSlots> {
28
+ export default class ChoroplethChart extends SvelteComponent<ChoroplethChartProps, ChoroplethChartEvents, ChoroplethChartSlots> {
27
29
  }
28
30
  export {};
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import { CirclePackChart as CirclePackChartCore, type CirclePackChartOptions, type ChartTabularData } from '@carbon/charts';
3
3
  declare const __propDef: {
4
4
  props: {
@@ -19,10 +19,12 @@ declare const __propDef: {
19
19
  [evt: string]: CustomEvent<any>;
20
20
  };
21
21
  slots: {};
22
+ exports?: undefined;
23
+ bindings?: undefined;
22
24
  };
23
25
  export type CirclePackChartProps = typeof __propDef.props;
24
26
  export type CirclePackChartEvents = typeof __propDef.events;
25
27
  export type CirclePackChartSlots = typeof __propDef.slots;
26
- export default class CirclePackChart extends SvelteComponentTyped<CirclePackChartProps, CirclePackChartEvents, CirclePackChartSlots> {
28
+ export default class CirclePackChart extends SvelteComponent<CirclePackChartProps, CirclePackChartEvents, CirclePackChartSlots> {
27
29
  }
28
30
  export {};
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import { ComboChart as ComboChartCore, type ComboChartOptions, type ChartTabularData } from '@carbon/charts';
3
3
  declare const __propDef: {
4
4
  props: {
@@ -19,10 +19,12 @@ declare const __propDef: {
19
19
  [evt: string]: CustomEvent<any>;
20
20
  };
21
21
  slots: {};
22
+ exports?: undefined;
23
+ bindings?: undefined;
22
24
  };
23
25
  export type ComboChartProps = typeof __propDef.props;
24
26
  export type ComboChartEvents = typeof __propDef.events;
25
27
  export type ComboChartSlots = typeof __propDef.slots;
26
- export default class ComboChart extends SvelteComponentTyped<ComboChartProps, ComboChartEvents, ComboChartSlots> {
28
+ export default class ComboChart extends SvelteComponent<ComboChartProps, ComboChartEvents, ComboChartSlots> {
27
29
  }
28
30
  export {};
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import { DonutChart as DonutChartCore, type DonutChartOptions, type ChartTabularData } from '@carbon/charts';
3
3
  declare const __propDef: {
4
4
  props: {
@@ -19,10 +19,12 @@ declare const __propDef: {
19
19
  [evt: string]: CustomEvent<any>;
20
20
  };
21
21
  slots: {};
22
+ exports?: undefined;
23
+ bindings?: undefined;
22
24
  };
23
25
  export type DonutChartProps = typeof __propDef.props;
24
26
  export type DonutChartEvents = typeof __propDef.events;
25
27
  export type DonutChartSlots = typeof __propDef.slots;
26
- export default class DonutChart extends SvelteComponentTyped<DonutChartProps, DonutChartEvents, DonutChartSlots> {
28
+ export default class DonutChart extends SvelteComponent<DonutChartProps, DonutChartEvents, DonutChartSlots> {
27
29
  }
28
30
  export {};
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import { GaugeChart as GaugeChartCore, type GaugeChartOptions, type ChartTabularData } from '@carbon/charts';
3
3
  declare const __propDef: {
4
4
  props: {
@@ -19,10 +19,12 @@ declare const __propDef: {
19
19
  [evt: string]: CustomEvent<any>;
20
20
  };
21
21
  slots: {};
22
+ exports?: undefined;
23
+ bindings?: undefined;
22
24
  };
23
25
  export type GaugeChartProps = typeof __propDef.props;
24
26
  export type GaugeChartEvents = typeof __propDef.events;
25
27
  export type GaugeChartSlots = typeof __propDef.slots;
26
- export default class GaugeChart extends SvelteComponentTyped<GaugeChartProps, GaugeChartEvents, GaugeChartSlots> {
28
+ export default class GaugeChart extends SvelteComponent<GaugeChartProps, GaugeChartEvents, GaugeChartSlots> {
27
29
  }
28
30
  export {};
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import { HeatmapChart as HeatmapChartCore, type HeatmapChartOptions, type ChartTabularData } from '@carbon/charts';
3
3
  declare const __propDef: {
4
4
  props: {
@@ -19,10 +19,12 @@ declare const __propDef: {
19
19
  [evt: string]: CustomEvent<any>;
20
20
  };
21
21
  slots: {};
22
+ exports?: undefined;
23
+ bindings?: undefined;
22
24
  };
23
25
  export type HeatmapChartProps = typeof __propDef.props;
24
26
  export type HeatmapChartEvents = typeof __propDef.events;
25
27
  export type HeatmapChartSlots = typeof __propDef.slots;
26
- export default class HeatmapChart extends SvelteComponentTyped<HeatmapChartProps, HeatmapChartEvents, HeatmapChartSlots> {
28
+ export default class HeatmapChart extends SvelteComponent<HeatmapChartProps, HeatmapChartEvents, HeatmapChartSlots> {
27
29
  }
28
30
  export {};
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import { HistogramChart as HistogramChartCore, type HistogramChartOptions, type ChartTabularData } from '@carbon/charts';
3
3
  declare const __propDef: {
4
4
  props: {
@@ -19,10 +19,12 @@ declare const __propDef: {
19
19
  [evt: string]: CustomEvent<any>;
20
20
  };
21
21
  slots: {};
22
+ exports?: undefined;
23
+ bindings?: undefined;
22
24
  };
23
25
  export type HistogramChartProps = typeof __propDef.props;
24
26
  export type HistogramChartEvents = typeof __propDef.events;
25
27
  export type HistogramChartSlots = typeof __propDef.slots;
26
- export default class HistogramChart extends SvelteComponentTyped<HistogramChartProps, HistogramChartEvents, HistogramChartSlots> {
28
+ export default class HistogramChart extends SvelteComponent<HistogramChartProps, HistogramChartEvents, HistogramChartSlots> {
27
29
  }
28
30
  export {};
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import { LineChart as LineChartCore, type LineChartOptions, type ChartTabularData } from '@carbon/charts';
3
3
  declare const __propDef: {
4
4
  props: {
@@ -19,10 +19,12 @@ declare const __propDef: {
19
19
  [evt: string]: CustomEvent<any>;
20
20
  };
21
21
  slots: {};
22
+ exports?: undefined;
23
+ bindings?: undefined;
22
24
  };
23
25
  export type LineChartProps = typeof __propDef.props;
24
26
  export type LineChartEvents = typeof __propDef.events;
25
27
  export type LineChartSlots = typeof __propDef.slots;
26
- export default class LineChart extends SvelteComponentTyped<LineChartProps, LineChartEvents, LineChartSlots> {
28
+ export default class LineChart extends SvelteComponent<LineChartProps, LineChartEvents, LineChartSlots> {
27
29
  }
28
30
  export {};
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import { LollipopChart as LollipopChartCore, type LollipopChartOptions, type ChartTabularData } from '@carbon/charts';
3
3
  declare const __propDef: {
4
4
  props: {
@@ -19,10 +19,12 @@ declare const __propDef: {
19
19
  [evt: string]: CustomEvent<any>;
20
20
  };
21
21
  slots: {};
22
+ exports?: undefined;
23
+ bindings?: undefined;
22
24
  };
23
25
  export type LollipopChartProps = typeof __propDef.props;
24
26
  export type LollipopChartEvents = typeof __propDef.events;
25
27
  export type LollipopChartSlots = typeof __propDef.slots;
26
- export default class LollipopChart extends SvelteComponentTyped<LollipopChartProps, LollipopChartEvents, LollipopChartSlots> {
28
+ export default class LollipopChart extends SvelteComponent<LollipopChartProps, LollipopChartEvents, LollipopChartSlots> {
27
29
  }
28
30
  export {};
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import { MeterChart as MeterChartCore, type MeterChartOptions, type ChartTabularData } from '@carbon/charts';
3
3
  declare const __propDef: {
4
4
  props: {
@@ -19,10 +19,12 @@ declare const __propDef: {
19
19
  [evt: string]: CustomEvent<any>;
20
20
  };
21
21
  slots: {};
22
+ exports?: undefined;
23
+ bindings?: undefined;
22
24
  };
23
25
  export type MeterChartProps = typeof __propDef.props;
24
26
  export type MeterChartEvents = typeof __propDef.events;
25
27
  export type MeterChartSlots = typeof __propDef.slots;
26
- export default class MeterChart extends SvelteComponentTyped<MeterChartProps, MeterChartEvents, MeterChartSlots> {
28
+ export default class MeterChart extends SvelteComponent<MeterChartProps, MeterChartEvents, MeterChartSlots> {
27
29
  }
28
30
  export {};
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import { PieChart as PieChartCore, type PieChartOptions, type ChartTabularData } from '@carbon/charts';
3
3
  declare const __propDef: {
4
4
  props: {
@@ -19,10 +19,12 @@ declare const __propDef: {
19
19
  [evt: string]: CustomEvent<any>;
20
20
  };
21
21
  slots: {};
22
+ exports?: undefined;
23
+ bindings?: undefined;
22
24
  };
23
25
  export type PieChartProps = typeof __propDef.props;
24
26
  export type PieChartEvents = typeof __propDef.events;
25
27
  export type PieChartSlots = typeof __propDef.slots;
26
- export default class PieChart extends SvelteComponentTyped<PieChartProps, PieChartEvents, PieChartSlots> {
28
+ export default class PieChart extends SvelteComponent<PieChartProps, PieChartEvents, PieChartSlots> {
27
29
  }
28
30
  export {};
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import { RadarChart as RadarChartCore, type RadarChartOptions, type ChartTabularData } from '@carbon/charts';
3
3
  declare const __propDef: {
4
4
  props: {
@@ -19,10 +19,12 @@ declare const __propDef: {
19
19
  [evt: string]: CustomEvent<any>;
20
20
  };
21
21
  slots: {};
22
+ exports?: undefined;
23
+ bindings?: undefined;
22
24
  };
23
25
  export type RadarChartProps = typeof __propDef.props;
24
26
  export type RadarChartEvents = typeof __propDef.events;
25
27
  export type RadarChartSlots = typeof __propDef.slots;
26
- export default class RadarChart extends SvelteComponentTyped<RadarChartProps, RadarChartEvents, RadarChartSlots> {
28
+ export default class RadarChart extends SvelteComponent<RadarChartProps, RadarChartEvents, RadarChartSlots> {
27
29
  }
28
30
  export {};
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import { ScatterChart as ScatterChartCore, type ScatterChartOptions, type ChartTabularData } from '@carbon/charts';
3
3
  declare const __propDef: {
4
4
  props: {
@@ -19,10 +19,12 @@ declare const __propDef: {
19
19
  [evt: string]: CustomEvent<any>;
20
20
  };
21
21
  slots: {};
22
+ exports?: undefined;
23
+ bindings?: undefined;
22
24
  };
23
25
  export type ScatterChartProps = typeof __propDef.props;
24
26
  export type ScatterChartEvents = typeof __propDef.events;
25
27
  export type ScatterChartSlots = typeof __propDef.slots;
26
- export default class ScatterChart extends SvelteComponentTyped<ScatterChartProps, ScatterChartEvents, ScatterChartSlots> {
28
+ export default class ScatterChart extends SvelteComponent<ScatterChartProps, ScatterChartEvents, ScatterChartSlots> {
27
29
  }
28
30
  export {};
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import { StackedAreaChart as StackedAreaChartCore, type StackedAreaChartOptions, type ChartTabularData } from '@carbon/charts';
3
3
  declare const __propDef: {
4
4
  props: {
@@ -19,10 +19,12 @@ declare const __propDef: {
19
19
  [evt: string]: CustomEvent<any>;
20
20
  };
21
21
  slots: {};
22
+ exports?: undefined;
23
+ bindings?: undefined;
22
24
  };
23
25
  export type StackedAreaChartProps = typeof __propDef.props;
24
26
  export type StackedAreaChartEvents = typeof __propDef.events;
25
27
  export type StackedAreaChartSlots = typeof __propDef.slots;
26
- export default class StackedAreaChart extends SvelteComponentTyped<StackedAreaChartProps, StackedAreaChartEvents, StackedAreaChartSlots> {
28
+ export default class StackedAreaChart extends SvelteComponent<StackedAreaChartProps, StackedAreaChartEvents, StackedAreaChartSlots> {
27
29
  }
28
30
  export {};
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import { TreeChart as TreeChartCore, type TreeChartOptions, type ChartTabularData } from '@carbon/charts';
3
3
  declare const __propDef: {
4
4
  props: {
@@ -19,10 +19,12 @@ declare const __propDef: {
19
19
  [evt: string]: CustomEvent<any>;
20
20
  };
21
21
  slots: {};
22
+ exports?: undefined;
23
+ bindings?: undefined;
22
24
  };
23
25
  export type TreeChartProps = typeof __propDef.props;
24
26
  export type TreeChartEvents = typeof __propDef.events;
25
27
  export type TreeChartSlots = typeof __propDef.slots;
26
- export default class TreeChart extends SvelteComponentTyped<TreeChartProps, TreeChartEvents, TreeChartSlots> {
28
+ export default class TreeChart extends SvelteComponent<TreeChartProps, TreeChartEvents, TreeChartSlots> {
27
29
  }
28
30
  export {};
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import { TreemapChart as TreemapChartCore, type TreemapChartOptions, type ChartTabularData } from '@carbon/charts';
3
3
  declare const __propDef: {
4
4
  props: {
@@ -19,10 +19,12 @@ declare const __propDef: {
19
19
  [evt: string]: CustomEvent<any>;
20
20
  };
21
21
  slots: {};
22
+ exports?: undefined;
23
+ bindings?: undefined;
22
24
  };
23
25
  export type TreemapChartProps = typeof __propDef.props;
24
26
  export type TreemapChartEvents = typeof __propDef.events;
25
27
  export type TreemapChartSlots = typeof __propDef.slots;
26
- export default class TreemapChart extends SvelteComponentTyped<TreemapChartProps, TreemapChartEvents, TreemapChartSlots> {
28
+ export default class TreemapChart extends SvelteComponent<TreemapChartProps, TreemapChartEvents, TreemapChartSlots> {
27
29
  }
28
30
  export {};
@@ -1,4 +1,4 @@
1
- import { SvelteComponentTyped } from "svelte";
1
+ import { SvelteComponent } from "svelte";
2
2
  import { WordCloudChart as WordCloudChartCore, type WordCloudChartOptions, type WorldCloudChartOptions, type ChartTabularData } from '@carbon/charts';
3
3
  declare const __propDef: {
4
4
  props: {
@@ -19,10 +19,12 @@ declare const __propDef: {
19
19
  [evt: string]: CustomEvent<any>;
20
20
  };
21
21
  slots: {};
22
+ exports?: undefined;
23
+ bindings?: undefined;
22
24
  };
23
25
  export type WordCloudChartProps = typeof __propDef.props;
24
26
  export type WordCloudChartEvents = typeof __propDef.events;
25
27
  export type WordCloudChartSlots = typeof __propDef.slots;
26
- export default class WordCloudChart extends SvelteComponentTyped<WordCloudChartProps, WordCloudChartEvents, WordCloudChartSlots> {
28
+ export default class WordCloudChart extends SvelteComponent<WordCloudChartProps, WordCloudChartEvents, WordCloudChartSlots> {
27
29
  }
28
30
  export {};
package/package.json CHANGED
@@ -1,66 +1,57 @@
1
1
  {
2
2
  "name": "@carbon/charts-svelte",
3
- "version": "1.16.11",
3
+ "version": "1.17.1",
4
4
  "description": "Carbon Charts component library for Svelte",
5
5
  "scripts": {
6
6
  "postinstall": "ibmtelemetry --config=telemetry.yml",
7
7
  "file:styles": "cp ../core/dist/styles.* dist",
8
- "build:package": "svelte-kit sync && svelte-package && yarn file:styles",
9
- "demo:mdx:svelte": "cp ../core/src/stories/getting-started/svelte.stories.mdx src/stories",
10
- "demo:mdx:tutorials": "cp ../core/src/stories/tutorials/* src/stories",
11
- "demo:mdx": "concurrently \"yarn:demo:mdx:*\"",
12
- "build:demo": "yarn demo:mdx && storybook build -o demo/bundle --quiet",
13
- "build": "yarn build:package && yarn build:demo",
14
- "storybook": "storybook dev -p 9006",
15
- "start": "yarn storybook",
8
+ "build": "svelte-kit sync && svelte-package && yarn file:styles && publint",
9
+ "build:test": "vite build --emptyOutDir",
10
+ "dev": "vite --port 3003",
16
11
  "test": "svelte-check --workspace=tests",
17
- "lint": "prettier . --check --ignore-path ../../.prettierignore && eslint",
18
- "format": "prettier . --write --ignore-path ../../.prettierignore",
19
- "clean": "rm -rf dist demo/bundle",
20
- "preview": "vite preview",
12
+ "test:dom": "playwright test",
13
+ "test:dom:rebase": "playwright test --update-snapshots",
21
14
  "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
22
- "pub:demo": "cp -a demo/bundle/. ../../pages/svelte"
15
+ "lint": "prettier . --check --ignore-path ../../.prettierignore && eslint",
16
+ "format": "prettier . --write --ignore-path ../../.prettierignore "
23
17
  },
24
18
  "type": "module",
25
19
  "types": "./dist/index.d.ts",
26
20
  "svelte": "./dist/index.js",
27
- "module": "./dist/index.js",
28
21
  "exports": {
29
22
  ".": {
30
23
  "types": "./dist/index.d.ts",
31
- "svelte": "./dist/index.js",
32
- "import": "./dist/index.js"
24
+ "svelte": "./dist/index.js"
33
25
  },
34
26
  "./styles.min.css": "./dist/styles.min.css",
35
27
  "./styles.css": "./dist/styles.css"
36
28
  },
29
+ "styles": "./dist/styles.css",
37
30
  "files": [
38
31
  "dist",
39
32
  "CHANGELOG.md",
40
33
  "telemetry.yml"
41
34
  ],
42
35
  "peerDependencies": {
43
- "svelte": "^3.31.0 || ^4.0.0"
36
+ "svelte": "^4.0.0"
44
37
  },
45
38
  "dependencies": {
46
- "@carbon/charts": "1.16.11",
39
+ "@carbon/charts": "1.17.1",
47
40
  "@ibm/telemetry-js": "^1.5.2"
48
41
  },
49
42
  "devDependencies": {
50
- "@stackblitz/sdk": "^1.10.0",
51
- "@sveltejs/adapter-auto": "^3.2.2",
52
- "@sveltejs/kit": "^2.5.16",
43
+ "@playwright/test": "^1.45.0",
44
+ "@sveltejs/adapter-static": "^3.0.2",
45
+ "@sveltejs/kit": "^2.5.17",
53
46
  "@sveltejs/package": "^2.3.2",
54
47
  "@sveltejs/vite-plugin-svelte": "^3.1.1",
55
- "concurrently": "^8.2.2",
56
48
  "eslint": "^9.5.0",
57
49
  "prettier": "^3.3.2",
58
50
  "publint": "^0.2.8",
59
- "storybook": "^7.6.19",
60
51
  "svelte": "^4.2.18",
61
- "svelte-check": "^3.8.1",
52
+ "svelte-check": "^3.8.4",
62
53
  "tslib": "^2.6.3",
63
- "typescript": "^5.4.5",
54
+ "typescript": "^5.5.2",
64
55
  "vite": "^5.3.1"
65
56
  },
66
57
  "publishConfig": {
@@ -69,7 +60,7 @@
69
60
  "repository": {
70
61
  "type": "git",
71
62
  "url": "git@github.com:carbon-design-system/carbon-charts.git",
72
- "homepage": "https://charts.carbondesignsystem.com/svelte/"
63
+ "homepage": "https://charts.carbondesignsystem.com/"
73
64
  },
74
65
  "bugs": {
75
66
  "url": "https://github.com/carbon-design-system/carbon-charts/issues"
@@ -118,5 +109,5 @@
118
109
  "data",
119
110
  "typescript"
120
111
  ],
121
- "gitHead": "08318c67c93dd53e31cb968976397f3068864e63"
112
+ "gitHead": "710d30a42beef1892fbb1894248337b3e1054b1f"
122
113
  }