@opendata-ai/openchart-react 8.0.0-rc.9 → 8.1.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 +155 -43
- package/dist/index.js +291 -157
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.css.map +1 -1
- package/package.json +5 -6
- package/src/BarList.tsx +0 -126
- package/src/Chart.tsx +0 -344
- package/src/ChartStory.tsx +0 -203
- package/src/DataTable.tsx +0 -165
- package/src/Graph.tsx +0 -253
- package/src/Map.tsx +0 -130
- package/src/Sankey.tsx +0 -176
- package/src/ThemeContext.tsx +0 -40
- package/src/TileMap.tsx +0 -165
- package/src/Visualization.tsx +0 -85
- package/src/__tests__/Chart.test.tsx +0 -134
- package/src/__tests__/ChartStory.test.tsx +0 -92
- package/src/__tests__/DataTable.test.tsx +0 -126
- package/src/__tests__/Graph.test.tsx +0 -130
- package/src/__tests__/ThemeContext.test.tsx +0 -238
- package/src/__tests__/hooks.test.tsx +0 -160
- package/src/__tests__/update-vs-remount.test.tsx +0 -133
- package/src/__tests__/useTableState.test.tsx +0 -218
- package/src/hooks/useGraph.ts +0 -87
- package/src/hooks/useTable.ts +0 -98
- package/src/hooks/useTableState.ts +0 -76
- package/src/hooks.ts +0 -154
- package/src/index.ts +0 -104
package/src/index.ts
DELETED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @opendata-ai/openchart-react
|
|
3
|
-
*
|
|
4
|
-
* React adapter for openchart. Provides <Chart /> and <DataTable />
|
|
5
|
-
* components that wrap the vanilla adapter with React lifecycle management.
|
|
6
|
-
*
|
|
7
|
-
* Re-exports the full core type system and utilities so React consumers
|
|
8
|
-
* only need a single @opendata-ai/openchart-react dependency.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
// ---------------------------------------------------------------------------
|
|
12
|
-
// Core: full type system, theme, colors, locale, accessibility, helpers
|
|
13
|
-
// ---------------------------------------------------------------------------
|
|
14
|
-
|
|
15
|
-
export * from '@opendata-ai/openchart-core';
|
|
16
|
-
|
|
17
|
-
// ---------------------------------------------------------------------------
|
|
18
|
-
// Vanilla: export utilities (SVG/PNG/JPG/CSV)
|
|
19
|
-
// ---------------------------------------------------------------------------
|
|
20
|
-
|
|
21
|
-
export type {
|
|
22
|
-
JPGExportOptions,
|
|
23
|
-
PNGExportOptions,
|
|
24
|
-
SVGExportOptions,
|
|
25
|
-
} from '@opendata-ai/openchart-vanilla';
|
|
26
|
-
export {
|
|
27
|
-
exportCSV,
|
|
28
|
-
exportJPG,
|
|
29
|
-
exportPNG,
|
|
30
|
-
exportSVG,
|
|
31
|
-
exportSVGWithFonts,
|
|
32
|
-
} from '@opendata-ai/openchart-vanilla';
|
|
33
|
-
|
|
34
|
-
// ---------------------------------------------------------------------------
|
|
35
|
-
// Engine: compile API and types not covered by core
|
|
36
|
-
// ---------------------------------------------------------------------------
|
|
37
|
-
|
|
38
|
-
export type {
|
|
39
|
-
ChartRenderer,
|
|
40
|
-
CompiledGraphEdge,
|
|
41
|
-
CompiledGraphNode,
|
|
42
|
-
CompileResult,
|
|
43
|
-
GraphCompilation,
|
|
44
|
-
NormalizedBarListSpec,
|
|
45
|
-
NormalizedChartSpec,
|
|
46
|
-
NormalizedChrome,
|
|
47
|
-
NormalizedGraphSpec,
|
|
48
|
-
NormalizedMapSpec,
|
|
49
|
-
NormalizedSankeySpec,
|
|
50
|
-
NormalizedSpec,
|
|
51
|
-
NormalizedTableSpec,
|
|
52
|
-
NormalizedTileMapSpec,
|
|
53
|
-
SimulationConfig,
|
|
54
|
-
ValidationError,
|
|
55
|
-
ValidationErrorCode,
|
|
56
|
-
ValidationResult,
|
|
57
|
-
} from '@opendata-ai/openchart-engine';
|
|
58
|
-
export {
|
|
59
|
-
clearRenderers,
|
|
60
|
-
compile,
|
|
61
|
-
compileBarList,
|
|
62
|
-
compileChart,
|
|
63
|
-
compileGraph,
|
|
64
|
-
compileMap,
|
|
65
|
-
compileSankey,
|
|
66
|
-
compileTable,
|
|
67
|
-
compileTileMap,
|
|
68
|
-
getChartRenderer,
|
|
69
|
-
normalizeSpec,
|
|
70
|
-
registerChartRenderer,
|
|
71
|
-
validateSpec,
|
|
72
|
-
} from '@opendata-ai/openchart-engine';
|
|
73
|
-
export type { BarListHandle, BarListProps } from './BarList';
|
|
74
|
-
export { BarList } from './BarList';
|
|
75
|
-
export type { ChartHandle, ChartProps } from './Chart';
|
|
76
|
-
// Components
|
|
77
|
-
export { Chart } from './Chart';
|
|
78
|
-
export type { ChartStoryHandle, ChartStoryProps } from './ChartStory';
|
|
79
|
-
// Scrollytelling
|
|
80
|
-
export { ChartStory } from './ChartStory';
|
|
81
|
-
export type { DataTableProps } from './DataTable';
|
|
82
|
-
export { DataTable } from './DataTable';
|
|
83
|
-
export type { GraphProps } from './Graph';
|
|
84
|
-
export { Graph } from './Graph';
|
|
85
|
-
export type { UseChartOptions, UseChartReturn } from './hooks';
|
|
86
|
-
// Hooks
|
|
87
|
-
export { useChart, useDarkMode } from './hooks';
|
|
88
|
-
export type { GraphHandle, UseGraphReturn } from './hooks/useGraph';
|
|
89
|
-
export { useGraph } from './hooks/useGraph';
|
|
90
|
-
export type { UseTableReturn } from './hooks/useTable';
|
|
91
|
-
export { useTable } from './hooks/useTable';
|
|
92
|
-
export type { UseTableStateOptions, UseTableStateReturn } from './hooks/useTableState';
|
|
93
|
-
export { useTableState } from './hooks/useTableState';
|
|
94
|
-
export type { MapHandle, MapProps } from './Map';
|
|
95
|
-
export { GeoMap } from './Map';
|
|
96
|
-
export type { SankeyHandle, SankeyProps } from './Sankey';
|
|
97
|
-
export { Sankey } from './Sankey';
|
|
98
|
-
export type { VizThemeProviderProps } from './ThemeContext';
|
|
99
|
-
// Theme context
|
|
100
|
-
export { useVizDarkMode, useVizTheme, VizThemeProvider } from './ThemeContext';
|
|
101
|
-
export type { TileMapHandle, TileMapProps } from './TileMap';
|
|
102
|
-
export { TileMap } from './TileMap';
|
|
103
|
-
export type { VisualizationProps } from './Visualization';
|
|
104
|
-
export { Visualization } from './Visualization';
|