@opendata-ai/openchart-svelte 2.2.0 → 2.3.0

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/dist/index.d.ts CHANGED
@@ -4,8 +4,15 @@
4
4
  * Svelte 5 adapter for openchart. Provides <Chart />, <DataTable />,
5
5
  * and <Graph /> components that wrap the vanilla adapter with Svelte
6
6
  * lifecycle management using runes.
7
+ *
8
+ * Re-exports the full core type system and utilities so Svelte consumers
9
+ * only need a single @opendata-ai/openchart-svelte dependency.
7
10
  */
8
- export type { ChartLayout, ChartSpec, CompileOptions, TableLayout, TableSpec, VizSpec, } from '@opendata-ai/openchart-engine';
11
+ export * from '@opendata-ai/openchart-core';
12
+ export type { JPGExportOptions, PNGExportOptions } from '@opendata-ai/openchart-vanilla';
13
+ export { exportCSV, exportJPG, exportPNG, exportSVG } from '@opendata-ai/openchart-vanilla';
14
+ export type { ChartRenderer, CompiledGraphEdge, CompiledGraphNode, CompileResult, GraphCompilation, NormalizedChartSpec, NormalizedChrome, NormalizedGraphSpec, NormalizedSpec, NormalizedTableSpec, SimulationConfig, ValidationError, ValidationErrorCode, ValidationResult, } from '@opendata-ai/openchart-engine';
15
+ export { clearRenderers, compile, compileChart, compileGraph, compileTable, getChartRenderer, normalizeSpec, registerChartRenderer, validateSpec, } from '@opendata-ai/openchart-engine';
9
16
  export { default as Chart } from './Chart.svelte';
10
17
  export type { UseChartOptions, UseChartReturn } from './composables/useChart.svelte.js';
11
18
  export { useChart } from './composables/useChart.svelte.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,YAAY,EACV,WAAW,EACX,SAAS,EACT,cAAc,EACd,WAAW,EACX,SAAS,EACT,OAAO,GACR,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAClD,YAAY,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AkB,EAClB,qBAAqB,GACtB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,wBAAwB,CAAC"}
package/dist/index.js CHANGED
@@ -4,7 +4,16 @@
4
4
  * Svelte 5 adapter for openchart. Provides <Chart />, <DataTable />,
5
5
  * and <Graph /> components that wrap the vanilla adapter with Svelte
6
6
  * lifecycle management using runes.
7
+ *
8
+ * Re-exports the full core type system and utilities so Svelte consumers
9
+ * only need a single @opendata-ai/openchart-svelte dependency.
7
10
  */
11
+ // ---------------------------------------------------------------------------
12
+ // Core: full type system, theme, colors, locale, accessibility, helpers
13
+ // ---------------------------------------------------------------------------
14
+ export * from '@opendata-ai/openchart-core';
15
+ export { exportCSV, exportJPG, exportPNG, exportSVG } from '@opendata-ai/openchart-vanilla';
16
+ export { clearRenderers, compile, compileChart, compileGraph, compileTable, getChartRenderer, normalizeSpec, registerChartRenderer, validateSpec, } from '@opendata-ai/openchart-engine';
8
17
  // Components
9
18
  export { default as Chart } from './Chart.svelte';
10
19
  export { useChart } from './composables/useChart.svelte.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opendata-ai/openchart-svelte",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "Svelte components for openchart: <Chart />, <DataTable />, <Graph />, <VizThemeProvider />",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Riley Hilliard",
@@ -48,9 +48,9 @@
48
48
  "typecheck": "svelte-check --tsconfig ./tsconfig.json"
49
49
  },
50
50
  "dependencies": {
51
- "@opendata-ai/openchart-core": "2.2.0",
52
- "@opendata-ai/openchart-engine": "2.2.0",
53
- "@opendata-ai/openchart-vanilla": "2.2.0"
51
+ "@opendata-ai/openchart-core": "2.3.0",
52
+ "@opendata-ai/openchart-engine": "2.3.0",
53
+ "@opendata-ai/openchart-vanilla": "2.3.0"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "svelte": ">=5.0.0"
package/src/index.ts CHANGED
@@ -4,17 +4,56 @@
4
4
  * Svelte 5 adapter for openchart. Provides <Chart />, <DataTable />,
5
5
  * and <Graph /> components that wrap the vanilla adapter with Svelte
6
6
  * lifecycle management using runes.
7
+ *
8
+ * Re-exports the full core type system and utilities so Svelte consumers
9
+ * only need a single @opendata-ai/openchart-svelte dependency.
7
10
  */
8
11
 
9
- // Re-export core types for convenience
12
+ // ---------------------------------------------------------------------------
13
+ // Core: full type system, theme, colors, locale, accessibility, helpers
14
+ // ---------------------------------------------------------------------------
15
+
16
+ export * from '@opendata-ai/openchart-core';
17
+
18
+ // ---------------------------------------------------------------------------
19
+ // Vanilla: export utilities (SVG/PNG/JPG/CSV)
20
+ // ---------------------------------------------------------------------------
21
+
22
+ export type { JPGExportOptions, PNGExportOptions } from '@opendata-ai/openchart-vanilla';
23
+ export { exportCSV, exportJPG, exportPNG, exportSVG } from '@opendata-ai/openchart-vanilla';
24
+
25
+ // ---------------------------------------------------------------------------
26
+ // Engine: compile API and types not covered by core
27
+ // ---------------------------------------------------------------------------
28
+
10
29
  export type {
11
- ChartLayout,
12
- ChartSpec,
13
- CompileOptions,
14
- TableLayout,
15
- TableSpec,
16
- VizSpec,
30
+ ChartRenderer,
31
+ CompiledGraphEdge,
32
+ CompiledGraphNode,
33
+ CompileResult,
34
+ GraphCompilation,
35
+ NormalizedChartSpec,
36
+ NormalizedChrome,
37
+ NormalizedGraphSpec,
38
+ NormalizedSpec,
39
+ NormalizedTableSpec,
40
+ SimulationConfig,
41
+ ValidationError,
42
+ ValidationErrorCode,
43
+ ValidationResult,
17
44
  } from '@opendata-ai/openchart-engine';
45
+ export {
46
+ clearRenderers,
47
+ compile,
48
+ compileChart,
49
+ compileGraph,
50
+ compileTable,
51
+ getChartRenderer,
52
+ normalizeSpec,
53
+ registerChartRenderer,
54
+ validateSpec,
55
+ } from '@opendata-ai/openchart-engine';
56
+
18
57
  // Components
19
58
  export { default as Chart } from './Chart.svelte';
20
59
  export type { UseChartOptions, UseChartReturn } from './composables/useChart.svelte.js';