semiotic 3.0.1 → 3.1.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/CLAUDE.md +227 -27
- package/README.md +147 -11
- package/ai/dist/componentRegistry.js +5 -0
- package/ai/dist/mcp-server.js +305 -30
- package/ai/examples.md +358 -18
- package/ai/schema.json +64 -2
- package/ai/system-prompt.md +50 -12
- package/dist/components/Legend.d.ts +7 -1
- package/dist/components/charts/geo/ChoroplethMap.d.ts +53 -0
- package/dist/components/charts/geo/DistanceCartogram.d.ts +90 -0
- package/dist/components/charts/geo/FlowMap.d.ts +83 -0
- package/dist/components/charts/geo/ProportionalSymbolMap.d.ts +67 -0
- package/dist/components/charts/geo/index.d.ts +8 -0
- package/dist/components/charts/index.d.ts +2 -0
- package/dist/components/charts/network/ChordDiagram.d.ts +6 -5
- package/dist/components/charts/network/CirclePack.d.ts +2 -2
- package/dist/components/charts/network/ForceDirectedGraph.d.ts +9 -7
- package/dist/components/charts/network/OrbitDiagram.d.ts +21 -20
- package/dist/components/charts/network/SankeyDiagram.d.ts +6 -5
- package/dist/components/charts/network/TreeDiagram.d.ts +2 -2
- package/dist/components/charts/network/Treemap.d.ts +2 -2
- package/dist/components/charts/ordinal/BarChart.d.ts +7 -5
- package/dist/components/charts/ordinal/BoxPlot.d.ts +8 -6
- package/dist/components/charts/ordinal/DonutChart.d.ts +8 -6
- package/dist/components/charts/ordinal/DotPlot.d.ts +8 -6
- package/dist/components/charts/ordinal/GroupedBarChart.d.ts +7 -5
- package/dist/components/charts/ordinal/Histogram.d.ts +8 -5
- package/dist/components/charts/ordinal/PieChart.d.ts +8 -6
- package/dist/components/charts/ordinal/RidgelinePlot.d.ts +2 -0
- package/dist/components/charts/ordinal/StackedBarChart.d.ts +7 -5
- package/dist/components/charts/ordinal/SwarmPlot.d.ts +8 -6
- package/dist/components/charts/ordinal/ViolinPlot.d.ts +8 -5
- package/dist/components/charts/realtime/RealtimeHeatmap.d.ts +24 -6
- package/dist/components/charts/realtime/RealtimeHistogram.d.ts +28 -7
- package/dist/components/charts/realtime/RealtimeLineChart.d.ts +23 -5
- package/dist/components/charts/realtime/RealtimeSwarmChart.d.ts +24 -6
- package/dist/components/charts/realtime/RealtimeWaterfallChart.d.ts +23 -5
- package/dist/components/charts/shared/ChartError.d.ts +3 -1
- package/dist/components/charts/shared/colorUtils.d.ts +5 -0
- package/dist/components/charts/shared/hooks.d.ts +13 -1
- package/dist/components/charts/shared/legendUtils.d.ts +2 -3
- package/dist/components/charts/shared/statisticalOverlays.d.ts +1 -2
- package/dist/components/charts/shared/statisticalOverlaysLazy.d.ts +10 -0
- package/dist/components/charts/shared/tooltipUtils.d.ts +1 -1
- package/dist/components/charts/shared/types.d.ts +10 -4
- package/dist/components/charts/shared/useChartSetup.d.ts +112 -0
- package/dist/components/charts/shared/useStreamingLegend.d.ts +65 -0
- package/dist/components/charts/shared/withChartWrapper.d.ts +4 -3
- package/dist/components/charts/xy/AreaChart.d.ts +11 -6
- package/dist/components/charts/xy/BubbleChart.d.ts +11 -6
- package/dist/components/charts/xy/ConnectedScatterplot.d.ts +7 -6
- package/dist/components/charts/xy/Heatmap.d.ts +16 -5
- package/dist/components/charts/xy/LineChart.d.ts +21 -5
- package/dist/components/charts/xy/MinimapChart.d.ts +3 -0
- package/dist/components/charts/xy/QuadrantChart.d.ts +120 -0
- package/dist/components/charts/xy/Scatterplot.d.ts +9 -6
- package/dist/components/charts/xy/StackedAreaChart.d.ts +11 -6
- package/dist/components/geo/mergeData.d.ts +18 -0
- package/dist/components/geo/referenceGeography.d.ts +10 -0
- package/dist/components/geo/useReferenceAreas.d.ts +13 -0
- package/dist/components/realtime/RingBuffer.d.ts +1 -0
- package/dist/components/realtime/types.d.ts +17 -0
- package/dist/components/semiotic-data.d.ts +1 -0
- package/dist/components/semiotic-geo.d.ts +16 -0
- package/dist/components/semiotic-server.d.ts +1 -1
- package/dist/components/semiotic-xy.d.ts +1 -0
- package/dist/components/semiotic.d.ts +4 -4
- package/dist/components/server/renderToStaticSVG.d.ts +4 -2
- package/dist/components/stream/AccessibleDataTable.d.ts +50 -0
- package/dist/components/stream/CanvasHitTester.d.ts +8 -2
- package/dist/components/stream/DataSourceAdapter.d.ts +33 -4
- package/dist/components/stream/GeoCanvasHitTester.d.ts +19 -0
- package/dist/components/stream/GeoParticlePool.d.ts +46 -0
- package/dist/components/stream/GeoPipelineStore.d.ts +81 -0
- package/dist/components/stream/GeoTileRenderer.d.ts +31 -0
- package/dist/components/stream/NetworkPipelineStore.d.ts +16 -4
- package/dist/components/stream/NetworkSVGOverlay.d.ts +4 -1
- package/dist/components/stream/OrdinalPipelineStore.d.ts +8 -4
- package/dist/components/stream/OrdinalSVGOverlay.d.ts +23 -1
- package/dist/components/stream/PipelineStore.d.ts +57 -5
- package/dist/components/stream/SVGOverlay.d.ts +28 -1
- package/dist/components/stream/SceneGraph.d.ts +7 -3
- package/dist/components/stream/SceneToSVG.d.ts +2 -0
- package/dist/components/stream/StreamGeoFrame.d.ts +4 -0
- package/dist/components/stream/accessorUtils.d.ts +1 -0
- package/dist/components/stream/canvasSetup.d.ts +26 -0
- package/dist/components/stream/geoTypes.d.ts +186 -0
- package/dist/components/stream/layouts/forceLayoutPlugin.d.ts +0 -7
- package/dist/components/stream/layouts/index.d.ts +2 -1
- package/dist/components/stream/layouts/orbitLayoutPlugin.d.ts +2 -0
- package/dist/components/stream/legendRenderer.d.ts +33 -0
- package/dist/components/stream/networkTypes.d.ts +49 -1
- package/dist/components/stream/ordinalTypes.d.ts +10 -0
- package/dist/components/stream/pipelineTransitionUtils.d.ts +42 -0
- package/dist/components/stream/renderers/geoCanvasRenderer.d.ts +9 -0
- package/dist/components/stream/renderers/heatmapCanvasRenderer.d.ts +2 -1
- package/dist/components/stream/renderers/lineCanvasRenderer.d.ts +1 -0
- package/dist/components/stream/renderers/renderPulse.d.ts +50 -0
- package/dist/components/stream/types.d.ts +77 -3
- package/dist/components/types/legendTypes.d.ts +27 -3
- package/dist/geo.min.js +1 -0
- package/dist/geo.module.min.js +1 -0
- package/dist/network.min.js +1 -1
- package/dist/network.module.min.js +1 -1
- package/dist/ordinal.min.js +1 -1
- package/dist/ordinal.module.min.js +1 -1
- package/dist/realtime.min.js +1 -1
- package/dist/realtime.module.min.js +1 -1
- package/dist/semiotic-ai-statisticalOverlays-C1f7TYyD.js +1 -0
- package/dist/semiotic-ai.min.js +1 -1
- package/dist/semiotic-ai.module.min.js +1 -1
- package/dist/semiotic-data.d.ts +1 -0
- package/dist/semiotic-data.min.js +1 -1
- package/dist/semiotic-data.module.min.js +1 -1
- package/dist/semiotic-geo.d.ts +16 -0
- package/dist/semiotic-server.d.ts +1 -1
- package/dist/semiotic-statisticalOverlays-C1f7TYyD.js +1 -0
- package/dist/semiotic-xy.d.ts +1 -0
- package/dist/semiotic.d.ts +4 -4
- package/dist/semiotic.min.js +1 -1
- package/dist/semiotic.module.min.js +1 -1
- package/dist/server.min.js +1 -1
- package/dist/server.module.min.js +1 -1
- package/dist/test-utils/canvasMock.d.ts +3 -0
- package/dist/xy-statisticalOverlays-C1f7TYyD.js +1 -0
- package/dist/xy.min.js +1 -1
- package/dist/xy.module.min.js +1 -1
- package/package.json +76 -8
- package/dist/test/canvasMock.d.ts +0 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "semiotic",
|
|
3
|
-
"version": "3.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "3.1.1",
|
|
4
|
+
"description": "React data visualization library with built-in MCP server for AI-assisted chart generation",
|
|
5
5
|
"main": "dist/semiotic.min.js",
|
|
6
6
|
"module": "dist/semiotic.module.min.js",
|
|
7
7
|
"types": "dist/semiotic.d.ts",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"default": "./dist/realtime.module.min.js"
|
|
43
43
|
},
|
|
44
44
|
"./server": {
|
|
45
|
-
"types": "./dist/server.d.ts",
|
|
45
|
+
"types": "./dist/semiotic-server.d.ts",
|
|
46
46
|
"import": "./dist/server.module.min.js",
|
|
47
47
|
"require": "./dist/server.min.js",
|
|
48
48
|
"default": "./dist/server.module.min.js"
|
|
@@ -59,10 +59,17 @@
|
|
|
59
59
|
"require": "./dist/semiotic-data.min.js",
|
|
60
60
|
"default": "./dist/semiotic-data.module.min.js"
|
|
61
61
|
},
|
|
62
|
+
"./geo": {
|
|
63
|
+
"types": "./dist/semiotic-geo.d.ts",
|
|
64
|
+
"import": "./dist/geo.module.min.js",
|
|
65
|
+
"require": "./dist/geo.min.js",
|
|
66
|
+
"default": "./dist/geo.module.min.js"
|
|
67
|
+
},
|
|
62
68
|
"./package.json": "./package.json"
|
|
63
69
|
},
|
|
64
70
|
"files": [
|
|
65
71
|
"dist/*.min.js",
|
|
72
|
+
"dist/*-statisticalOverlays-*.js",
|
|
66
73
|
"dist/**/*.d.ts",
|
|
67
74
|
"ai/schema.json",
|
|
68
75
|
"ai/system-prompt.md",
|
|
@@ -85,7 +92,7 @@
|
|
|
85
92
|
"bench:ui": "vitest bench --ui",
|
|
86
93
|
"bench:baseline": "vitest bench --run && node scripts/save-baseline.js",
|
|
87
94
|
"bench:compare": "vitest bench --run && node scripts/compare-baseline.js",
|
|
88
|
-
"serve-examples": "npm run dist && parcel serve integration-tests/index.html integration-tests/xy-examples/index.html integration-tests/ordinal-examples/index.html integration-tests/network-examples/index.html integration-tests/
|
|
95
|
+
"serve-examples": "npm run dist && parcel serve integration-tests/index.html integration-tests/xy-examples/index.html integration-tests/ordinal-examples/index.html integration-tests/network-examples/index.html integration-tests/hoc-legend-examples/index.html integration-tests/coordinated-examples/index.html integration-tests/accessibility-examples/index.html integration-tests/geo-examples/index.html integration-tests/realtime-examples/index.html integration-tests/streaming-regression-examples/index.html --dist-dir .parcel-cache/integration-tests",
|
|
89
96
|
"dist": "node scripts/build.mjs",
|
|
90
97
|
"dist:prod": "node scripts/build.mjs --production",
|
|
91
98
|
"lint": "eslint src",
|
|
@@ -100,9 +107,13 @@
|
|
|
100
107
|
"generate:ssr-gallery": "npx tsx scripts/ssr-gallery.tsx > docs/public/ssr-gallery.html 2>/dev/null",
|
|
101
108
|
"website:build": "npm run dist:prod && npm run generate:ssr-gallery && parcel build --target website && node scripts/prerender.mjs",
|
|
102
109
|
"build:mcp": "tsc -p tsconfig.mcp.json",
|
|
110
|
+
"docs:api": "typedoc",
|
|
111
|
+
"docs:api:json": "typedoc --json docs/build/api/api.json",
|
|
103
112
|
"typescript": "tsc --noEmit",
|
|
113
|
+
"size": "size-limit",
|
|
104
114
|
"check:schema": "node scripts/check-schema-freshness.js",
|
|
105
|
-
"
|
|
115
|
+
"release:check": "npm run lint && npm run typescript && npm run test && npm run check:schema && node scripts/build.mjs --production && npm pack --dry-run",
|
|
116
|
+
"prepublishOnly": "npm run lint && npm run typescript && npm run test && npm run check:schema && rm -rf dist && node scripts/build.mjs --production"
|
|
106
117
|
},
|
|
107
118
|
"targets": {
|
|
108
119
|
"website": {
|
|
@@ -116,7 +127,8 @@
|
|
|
116
127
|
}
|
|
117
128
|
},
|
|
118
129
|
"alias": {
|
|
119
|
-
"semiotic": "./src/components/semiotic.ts"
|
|
130
|
+
"semiotic": "./src/components/semiotic.ts",
|
|
131
|
+
"semiotic/geo": "./src/components/semiotic-geo.ts"
|
|
120
132
|
},
|
|
121
133
|
"repository": {
|
|
122
134
|
"type": "git",
|
|
@@ -129,12 +141,55 @@
|
|
|
129
141
|
"contributors": [
|
|
130
142
|
"Susie Lu <susie.lu.shan@gmail.com>"
|
|
131
143
|
],
|
|
144
|
+
"keywords": [
|
|
145
|
+
"mcp",
|
|
146
|
+
"model-context-protocol",
|
|
147
|
+
"mcp-server",
|
|
148
|
+
"data-visualization",
|
|
149
|
+
"charts",
|
|
150
|
+
"react",
|
|
151
|
+
"d3",
|
|
152
|
+
"canvas",
|
|
153
|
+
"svg",
|
|
154
|
+
"streaming",
|
|
155
|
+
"network-graph",
|
|
156
|
+
"ai",
|
|
157
|
+
"llm"
|
|
158
|
+
],
|
|
132
159
|
"license": "Apache-2.0",
|
|
160
|
+
"size-limit": [
|
|
161
|
+
{
|
|
162
|
+
"path": "dist/semiotic.module.min.js",
|
|
163
|
+
"limit": "475 KB"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"path": "dist/xy.module.min.js",
|
|
167
|
+
"limit": "210 KB"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"path": "dist/ordinal.module.min.js",
|
|
171
|
+
"limit": "160 KB"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"path": "dist/network.module.min.js",
|
|
175
|
+
"limit": "160 KB"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"path": "dist/geo.module.min.js",
|
|
179
|
+
"limit": "135 KB"
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"path": "dist/realtime.module.min.js",
|
|
183
|
+
"limit": "250 KB"
|
|
184
|
+
}
|
|
185
|
+
],
|
|
133
186
|
"devDependencies": {
|
|
187
|
+
"@axe-core/playwright": "^4.11.1",
|
|
134
188
|
"@parcel/transformer-inline-string": "^2.16.4",
|
|
135
189
|
"@playwright/test": "^1.17.1",
|
|
136
190
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
137
191
|
"@rollup/plugin-terser": "^1.0.0",
|
|
192
|
+
"@size-limit/file": "^11.0.0",
|
|
138
193
|
"@testing-library/jest-dom": "^6.9.1",
|
|
139
194
|
"@testing-library/react": "^14.3.0",
|
|
140
195
|
"@types/d3-array": "^3.2.0",
|
|
@@ -142,6 +197,7 @@
|
|
|
142
197
|
"@types/d3-chord": "^3.0.0",
|
|
143
198
|
"@types/d3-force": "^3.0.0",
|
|
144
199
|
"@types/d3-format": "^3.0.0",
|
|
200
|
+
"@types/d3-geo": "^3.1.0",
|
|
145
201
|
"@types/d3-hierarchy": "^3.1.0",
|
|
146
202
|
"@types/d3-interpolate": "^3.0.0",
|
|
147
203
|
"@types/d3-scale": "^4.0.9",
|
|
@@ -149,18 +205,21 @@
|
|
|
149
205
|
"@types/d3-selection": "^3.0.0",
|
|
150
206
|
"@types/d3-shape": "^3.1.0",
|
|
151
207
|
"@types/d3-time-format": "^4.0.0",
|
|
208
|
+
"@types/d3-zoom": "^3.0.8",
|
|
152
209
|
"@types/node": "^20.19.35",
|
|
153
210
|
"@types/react": "^18.3.28",
|
|
154
211
|
"@types/react-dom": "^18.3.7",
|
|
155
212
|
"@types/seedrandom": "^3.0.5",
|
|
213
|
+
"@types/topojson-client": "^3.1.5",
|
|
156
214
|
"@typescript-eslint/eslint-plugin": "^5.4.6",
|
|
215
|
+
"@typescript-eslint/parser": "^5.4.6",
|
|
157
216
|
"@vitest/coverage-v8": "^4.1.0",
|
|
158
217
|
"@vitest/ui": "^4.0.18",
|
|
159
|
-
"jsdom": "^26.1.0",
|
|
160
218
|
"d3-dsv": "1.0.5",
|
|
161
219
|
"d3-flextree-v4": "^1.0.1",
|
|
162
220
|
"eslint": "^8.0.0",
|
|
163
221
|
"eslint-plugin-react": "^7.27.1",
|
|
222
|
+
"jsdom": "^26.1.0",
|
|
164
223
|
"marked": "4.0.10",
|
|
165
224
|
"parcel": "^2.16.4",
|
|
166
225
|
"playwright-chromium": "^1.17.1",
|
|
@@ -173,6 +232,8 @@
|
|
|
173
232
|
"rollup-plugin-typescript2": "^0.34.1",
|
|
174
233
|
"rollup-plugin-visualizer": "^7.0.0",
|
|
175
234
|
"seedrandom": "^3.0.5",
|
|
235
|
+
"size-limit": "^11.0.0",
|
|
236
|
+
"typedoc": "^0.28.17",
|
|
176
237
|
"typescript": "~5.9.3",
|
|
177
238
|
"vitest": "^4.0.18"
|
|
178
239
|
},
|
|
@@ -182,19 +243,26 @@
|
|
|
182
243
|
},
|
|
183
244
|
"dependencies": {
|
|
184
245
|
"@modelcontextprotocol/sdk": "^1.12.1",
|
|
246
|
+
"@types/d3-quadtree": "^3.0.6",
|
|
185
247
|
"d3-array": "^3.2.4",
|
|
186
248
|
"d3-brush": "^3.0.0",
|
|
187
249
|
"d3-chord": "^3.0.1",
|
|
188
250
|
"d3-force": "^3.0.0",
|
|
189
251
|
"d3-format": "^3.1.0",
|
|
252
|
+
"d3-geo": "^3.1.1",
|
|
190
253
|
"d3-hierarchy": "^3.1.2",
|
|
191
254
|
"d3-interpolate": "^3.0.1",
|
|
255
|
+
"d3-quadtree": "^3.0.1",
|
|
192
256
|
"d3-scale": "^4.0.2",
|
|
193
257
|
"d3-scale-chromatic": "^3.1.0",
|
|
194
258
|
"d3-selection": "^3.0.0",
|
|
195
259
|
"d3-shape": "^3.2.0",
|
|
260
|
+
"d3-tile": "^1.0.0",
|
|
196
261
|
"d3-time-format": "^4.1.0",
|
|
197
|
-
"
|
|
262
|
+
"d3-zoom": "^3.0.0",
|
|
263
|
+
"regression": "^2.0.1",
|
|
264
|
+
"topojson-client": "^3.1.0",
|
|
265
|
+
"world-atlas": "^2.0.2"
|
|
198
266
|
},
|
|
199
267
|
"browserslist": {
|
|
200
268
|
"development": [
|