semiotic 3.5.3 → 3.6.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/CLAUDE.md +62 -4
- package/README.md +19 -12
- package/ai/componentMetadata.cjs +9 -2
- package/ai/dist/mcp-server.js +253 -3
- package/ai/examples.md +27 -0
- package/ai/schema.json +319 -49
- package/ai/system-prompt.md +1 -1
- package/dist/components/ai/audienceProfile.d.ts +90 -0
- package/dist/components/ai/audiences.d.ts +31 -0
- package/dist/components/ai/chartCapabilities.d.ts +55 -0
- package/dist/components/ai/chartCapabilityTypes.d.ts +196 -0
- package/dist/components/ai/diffProfile.d.ts +51 -0
- package/dist/components/ai/inferIntent.d.ts +24 -0
- package/dist/components/ai/intents.d.ts +34 -0
- package/dist/components/ai/profileData.d.ts +16 -0
- package/dist/components/ai/qualityFixtures.d.ts +2 -0
- package/dist/components/ai/qualityScorecard.d.ts +82 -0
- package/dist/components/ai/repairChartConfig.d.ts +73 -0
- package/dist/components/ai/streamingTypes.d.ts +64 -0
- package/dist/components/ai/suggestCharts.d.ts +76 -0
- package/dist/components/ai/suggestDashboard.d.ts +92 -0
- package/dist/components/ai/suggestStreamCharts.d.ts +34 -0
- package/dist/components/ai/suggestStretchCharts.d.ts +60 -0
- package/dist/components/ai/useChartSuggestions.d.ts +22 -0
- package/dist/components/charts/geo/ChoroplethMap.capability.d.ts +2 -0
- package/dist/components/charts/geo/DistanceCartogram.capability.d.ts +2 -0
- package/dist/components/charts/geo/FlowMap.capability.d.ts +2 -0
- package/dist/components/charts/geo/ProportionalSymbolMap.capability.d.ts +2 -0
- package/dist/components/charts/index.d.ts +4 -4
- package/dist/components/charts/network/ChordDiagram.capability.d.ts +2 -0
- package/dist/components/charts/network/CirclePack.capability.d.ts +2 -0
- package/dist/components/charts/network/ForceDirectedGraph.capability.d.ts +2 -0
- package/dist/components/charts/network/OrbitDiagram.capability.d.ts +2 -0
- package/dist/components/charts/network/ProcessSankey.capability.d.ts +2 -0
- package/dist/components/charts/network/SankeyDiagram.capability.d.ts +2 -0
- package/dist/components/charts/network/TreeDiagram.capability.d.ts +2 -0
- package/dist/components/charts/network/Treemap.capability.d.ts +2 -0
- package/dist/components/charts/network/Treemap.d.ts +8 -0
- package/dist/components/charts/ordinal/BarChart.capability.d.ts +2 -0
- package/dist/components/charts/ordinal/BoxPlot.capability.d.ts +2 -0
- package/dist/components/charts/ordinal/DonutChart.capability.d.ts +2 -0
- package/dist/components/charts/ordinal/DotPlot.capability.d.ts +2 -0
- package/dist/components/charts/ordinal/FunnelChart.capability.d.ts +2 -0
- package/dist/components/charts/ordinal/GaugeChart.capability.d.ts +2 -0
- package/dist/components/charts/ordinal/GaugeChart.d.ts +10 -0
- package/dist/components/charts/ordinal/GroupedBarChart.capability.d.ts +2 -0
- package/dist/components/charts/ordinal/Histogram.capability.d.ts +2 -0
- package/dist/components/charts/ordinal/Histogram.d.ts +4 -2
- package/dist/components/charts/ordinal/LikertChart.capability.d.ts +2 -0
- package/dist/components/charts/ordinal/LikertChart.d.ts +1 -1
- package/dist/components/charts/ordinal/LikertChart.defaults.d.ts +1 -0
- package/dist/components/charts/ordinal/PieChart.capability.d.ts +2 -0
- package/dist/components/charts/ordinal/RidgelinePlot.capability.d.ts +2 -0
- package/dist/components/charts/ordinal/StackedBarChart.capability.d.ts +2 -0
- package/dist/components/charts/ordinal/SwarmPlot.capability.d.ts +2 -0
- package/dist/components/charts/ordinal/SwimlaneChart.capability.d.ts +2 -0
- package/dist/components/charts/ordinal/ViolinPlot.capability.d.ts +2 -0
- package/dist/components/charts/realtime/RealtimeHeatmap.capability.d.ts +2 -0
- package/dist/components/charts/realtime/RealtimeHistogram.capability.d.ts +2 -0
- package/dist/components/charts/realtime/RealtimeHistogram.d.ts +22 -0
- package/dist/components/charts/realtime/RealtimeLineChart.capability.d.ts +2 -0
- package/dist/components/charts/realtime/RealtimeSwarmChart.capability.d.ts +2 -0
- package/dist/components/charts/realtime/RealtimeWaterfallChart.capability.d.ts +2 -0
- package/dist/components/charts/realtime/TemporalHistogram.capability.d.ts +7 -0
- package/dist/components/charts/shared/chartSpecs.d.ts +0 -34
- package/dist/components/charts/shared/gaugeGradient.d.ts +62 -0
- package/dist/components/charts/shared/hooks.d.ts +2 -2
- package/dist/components/charts/shared/streamPropsHelpers.d.ts +2 -2
- package/dist/components/charts/shared/types.d.ts +11 -2
- package/dist/components/charts/shared/useChartSetup.d.ts +2 -2
- package/dist/components/charts/shared/useCustomChartSetup.d.ts +1 -1
- package/dist/components/charts/xy/AreaChart.capability.d.ts +10 -0
- package/dist/components/charts/xy/AreaChart.d.ts +15 -0
- package/dist/components/charts/xy/BubbleChart.capability.d.ts +2 -0
- package/dist/components/charts/xy/CandlestickChart.capability.d.ts +2 -0
- package/dist/components/charts/xy/ConnectedScatterplot.capability.d.ts +2 -0
- package/dist/components/charts/xy/DifferenceChart.capability.d.ts +8 -0
- package/dist/components/charts/xy/Heatmap.capability.d.ts +9 -0
- package/dist/components/charts/xy/LineChart.capability.d.ts +9 -0
- package/dist/components/charts/xy/MinimapChart.capability.d.ts +2 -0
- package/dist/components/charts/xy/MultiAxisLineChart.capability.d.ts +2 -0
- package/dist/components/charts/xy/QuadrantChart.capability.d.ts +2 -0
- package/dist/components/charts/xy/QuadrantChart.d.ts +5 -2
- package/dist/components/charts/xy/QuadrantChart.defaults.d.ts +2 -0
- package/dist/components/charts/xy/Scatterplot.capability.d.ts +2 -0
- package/dist/components/charts/xy/StackedAreaChart.capability.d.ts +2 -0
- package/dist/components/data/DataSummarizer.d.ts +45 -0
- package/dist/components/semiotic-ai.d.ts +36 -1
- package/dist/components/semiotic-realtime.d.ts +3 -3
- package/dist/components/semiotic-server.d.ts +1 -0
- package/dist/components/semiotic-xy.d.ts +2 -2
- package/dist/components/semiotic.d.ts +5 -4
- package/dist/components/server/renderToStaticSVG.d.ts +2 -0
- package/dist/components/server/staticLegend.d.ts +35 -0
- package/dist/components/store/ThemeStore.d.ts +2 -0
- package/dist/components/store/useChartFocus.d.ts +43 -0
- package/dist/components/store/useChartInterrogation.d.ts +141 -0
- package/dist/components/stream/NetworkSVGOverlay.d.ts +2 -1
- package/dist/components/stream/OrdinalSVGOverlay.d.ts +2 -1
- package/dist/components/stream/SVGOverlay.d.ts +2 -1
- package/dist/components/stream/SceneToSVG.d.ts +1 -1
- package/dist/components/stream/geoTypes.d.ts +2 -1
- package/dist/components/stream/hoverUtils.d.ts +1 -0
- package/dist/components/stream/legendRenderer.d.ts +2 -1
- package/dist/components/stream/networkTypes.d.ts +2 -1
- package/dist/components/stream/ordinalTypes.d.ts +16 -2
- package/dist/components/stream/renderers/wedgePathBuilder.d.ts +31 -0
- package/dist/components/stream/types.d.ts +2 -1
- package/dist/components/types/legendTypes.d.ts +15 -0
- package/dist/components/types/marginType.d.ts +17 -3
- package/dist/geo.min.js +1 -1
- package/dist/geo.module.min.js +1 -1
- 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.d.ts +36 -1
- package/dist/semiotic-ai.min.js +1 -1
- package/dist/semiotic-ai.module.min.js +1 -1
- package/dist/semiotic-realtime.d.ts +3 -3
- package/dist/semiotic-server.d.ts +1 -0
- package/dist/semiotic-utils.min.js +1 -1
- package/dist/semiotic-utils.module.min.js +1 -1
- package/dist/semiotic-xy.d.ts +2 -2
- package/dist/semiotic.d.ts +5 -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/xy.min.js +1 -1
- package/dist/xy.module.min.js +1 -1
- package/package.json +25 -24
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "semiotic",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0",
|
|
4
4
|
"mcpName": "io.github.nteract/semiotic",
|
|
5
5
|
"description": "React data visualization library with built-in MCP server for AI-assisted chart generation",
|
|
6
6
|
"main": "dist/semiotic.min.js",
|
|
@@ -155,6 +155,8 @@
|
|
|
155
155
|
"check:ai-contracts": "node scripts/generate-ai-behavior-contracts.mjs --check",
|
|
156
156
|
"check:ssr": "node scripts/check-ssr-alignment.js",
|
|
157
157
|
"check:capabilities": "node scripts/check-capabilities.mjs",
|
|
158
|
+
"check:capability-coverage": "node scripts/check-capability-coverage.mjs",
|
|
159
|
+
"scorecard": "node scripts/run-capability-scorecard.mjs",
|
|
158
160
|
"docs:capabilities": "node scripts/generate-capabilities-md.mjs && node scripts/generate-capabilities-json.mjs",
|
|
159
161
|
"check:chart-specs": "npx tsx scripts/check-chart-specs.ts",
|
|
160
162
|
"docs:chart-specs:schema": "npx tsx scripts/regenerate-schema.ts",
|
|
@@ -165,8 +167,8 @@
|
|
|
165
167
|
"check:blog-entries": "node scripts/check-blog-entry-sync.mjs",
|
|
166
168
|
"check:bundle-sizes": "node scripts/sync-bundle-sizes.mjs --check",
|
|
167
169
|
"docs:bundle-sizes": "node scripts/sync-bundle-sizes.mjs",
|
|
168
|
-
"release:check": "npm run lint && npm run typescript && npm run typescript:tests && npm run typescript:mcp && npm run test && npm run check:chart-specs && npm run check:capabilities && npm run check:blog-entries && npm run check:claude-md-coverage && npm run check:context7 && npm run check:mcp-registry && npm run check:surface && npm run check:ai-contracts && npm run check:ssr && npm run check:test-quality && npm run check:jsdoc-coverage && npm run check:ai-examples-coverage && npm run dist:prod && npm run check:bundle-sizes && npm run size && npm run check:pack && npm pack --dry-run",
|
|
169
|
-
"prepublishOnly": "npm run lint && npm run typescript && npm run typescript:tests && npm run typescript:mcp && npm run test && npm run check:chart-specs && npm run check:capabilities && npm run check:blog-entries && npm run check:claude-md-coverage && npm run check:context7 && npm run check:mcp-registry && npm run check:surface && npm run check:ai-contracts && npm run check:ssr && npm run check:test-quality && npm run check:jsdoc-coverage && npm run check:ai-examples-coverage && rm -rf dist && npm run dist:prod && npm run check:bundle-sizes && npm run size"
|
|
170
|
+
"release:check": "npm run lint && npm run typescript && npm run typescript:tests && npm run typescript:mcp && npm run build:mcp && npm run test && npm run check:chart-specs && npm run check:capabilities && npm run check:capability-coverage && npm run check:blog-entries && npm run check:claude-md-coverage && npm run check:context7 && npm run check:mcp-registry && npm run check:surface && npm run check:ai-contracts && npm run check:ssr && npm run check:test-quality && npm run check:jsdoc-coverage && npm run check:ai-examples-coverage && npm run dist:prod && npm run check:bundle-sizes && npm run size && npm run check:pack && npm pack --dry-run",
|
|
171
|
+
"prepublishOnly": "npm run lint && npm run typescript && npm run typescript:tests && npm run typescript:mcp && npm run build:mcp && npm run test && npm run check:chart-specs && npm run check:capabilities && npm run check:capability-coverage && npm run check:blog-entries && npm run check:claude-md-coverage && npm run check:context7 && npm run check:mcp-registry && npm run check:surface && npm run check:ai-contracts && npm run check:ssr && npm run check:test-quality && npm run check:jsdoc-coverage && npm run check:ai-examples-coverage && rm -rf dist && npm run dist:prod && npm run check:bundle-sizes && npm run size"
|
|
170
172
|
},
|
|
171
173
|
"targets": {
|
|
172
174
|
"website": {
|
|
@@ -181,9 +183,16 @@
|
|
|
181
183
|
},
|
|
182
184
|
"alias": {
|
|
183
185
|
"semiotic": "./src/components/semiotic.ts",
|
|
186
|
+
"semiotic/ai": "./src/components/semiotic-ai.ts",
|
|
187
|
+
"semiotic/data": "./src/components/semiotic-data.ts",
|
|
184
188
|
"semiotic/geo": "./src/components/semiotic-geo.ts",
|
|
185
|
-
"semiotic/
|
|
189
|
+
"semiotic/network": "./src/components/semiotic-network.ts",
|
|
190
|
+
"semiotic/ordinal": "./src/components/semiotic-ordinal.ts",
|
|
191
|
+
"semiotic/realtime": "./src/components/semiotic-realtime.ts",
|
|
186
192
|
"semiotic/recipes": "./src/components/semiotic-recipes.ts",
|
|
193
|
+
"semiotic/themes": "./src/components/semiotic-themes.ts",
|
|
194
|
+
"semiotic/utils": "./src/components/semiotic-utils.ts",
|
|
195
|
+
"semiotic/xy": "./src/components/semiotic-xy.ts",
|
|
187
196
|
"react-router-dom": "react-router"
|
|
188
197
|
},
|
|
189
198
|
"repository": {
|
|
@@ -252,7 +261,7 @@
|
|
|
252
261
|
"@parcel/packager-xml": "^2.16.4",
|
|
253
262
|
"@parcel/transformer-inline-string": "^2.16.4",
|
|
254
263
|
"@parcel/transformer-xml": "^2.16.4",
|
|
255
|
-
"@playwright/test": "^1.
|
|
264
|
+
"@playwright/test": "^1.60.0",
|
|
256
265
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
257
266
|
"@rollup/plugin-terser": "^1.0.0",
|
|
258
267
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
@@ -272,8 +281,8 @@
|
|
|
272
281
|
"@types/d3-selection": "^3.0.0",
|
|
273
282
|
"@types/d3-shape": "^3.1.0",
|
|
274
283
|
"@types/d3-zoom": "^3.0.8",
|
|
275
|
-
"@types/node": "^22.19.
|
|
276
|
-
"@types/react": "^19.2.
|
|
284
|
+
"@types/node": "^22.19.19",
|
|
285
|
+
"@types/react": "^19.2.15",
|
|
277
286
|
"@types/react-dom": "^19.2.3",
|
|
278
287
|
"@types/seedrandom": "^3.0.5",
|
|
279
288
|
"@types/topojson-client": "^3.1.5",
|
|
@@ -282,40 +291,32 @@
|
|
|
282
291
|
"@vitest/coverage-v8": "^4.1.4",
|
|
283
292
|
"@vitest/ui": "^4.1.4",
|
|
284
293
|
"buffer": "^6.0.3",
|
|
285
|
-
"crypto-browserify": "^3.12.1",
|
|
286
294
|
"d3-dsv": "^3.0.1",
|
|
287
295
|
"d3-flextree-v4": "^1.0.1",
|
|
288
296
|
"esbuild": "^0.28.0",
|
|
289
297
|
"eslint": "^9.39.4",
|
|
290
298
|
"eslint-plugin-react": "^7.37.5",
|
|
291
|
-
"events": "^3.3.0",
|
|
292
299
|
"globals": "^17.5.0",
|
|
293
300
|
"jsdom": "^29.0.2",
|
|
294
|
-
"marked": "^18.0.
|
|
301
|
+
"marked": "^18.0.4",
|
|
295
302
|
"marked-gfm-heading-id": "^4.1.4",
|
|
296
|
-
"os-browserify": "^0.3.0",
|
|
297
303
|
"parcel": "^2.16.4",
|
|
298
|
-
"
|
|
299
|
-
"playwright-chromium": "^1.59.1",
|
|
304
|
+
"playwright-chromium": "^1.60.0",
|
|
300
305
|
"prettier": "^3.8.3",
|
|
301
|
-
"
|
|
302
|
-
"react": "^19.2.
|
|
303
|
-
"react-
|
|
304
|
-
"react-router": "^7.
|
|
305
|
-
"
|
|
306
|
-
"rollup": "^4.59.0",
|
|
306
|
+
"react": "^19.2.6",
|
|
307
|
+
"react-dom": "^19.2.6",
|
|
308
|
+
"react-router": "^7.15.1",
|
|
309
|
+
"react-router-dom": "^7.15.1",
|
|
310
|
+
"rollup": "^4.60.4",
|
|
307
311
|
"rollup-plugin-auto-external": "^2.0.0",
|
|
308
312
|
"rollup-plugin-visualizer": "^7.0.0",
|
|
309
313
|
"seedrandom": "^3.0.5",
|
|
310
314
|
"size-limit": "^12.0.0",
|
|
311
|
-
"
|
|
312
|
-
"tsx": "^4.22.2",
|
|
315
|
+
"tsx": "^4.22.3",
|
|
313
316
|
"typedoc": "^0.28.19",
|
|
314
317
|
"typescript": "~6.0.3",
|
|
315
318
|
"typescript-eslint": "^8.59.0",
|
|
316
|
-
"
|
|
317
|
-
"vitest": "^4.1.4",
|
|
318
|
-
"vm-browserify": "^1.1.2"
|
|
319
|
+
"vitest": "^4.1.4"
|
|
319
320
|
},
|
|
320
321
|
"peerDependencies": {
|
|
321
322
|
"react": "^18.1.0 || ^19.0.0",
|