semiotic 3.5.2 → 3.5.4
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 +9 -8
- package/README.md +15 -15
- package/ai/componentMetadata.cjs +9 -2
- package/ai/dist/mcp-server.js +4 -1
- package/ai/examples.md +27 -0
- package/ai/schema.json +300 -41
- package/ai/system-prompt.md +1 -1
- package/dist/components/ThemeProvider.d.ts +2 -2
- package/dist/components/charts/index.d.ts +3 -3
- package/dist/components/charts/network/ProcessSankey.d.ts +22 -0
- package/dist/components/charts/network/SankeyDiagram.d.ts +5 -1
- package/dist/components/charts/network/Treemap.d.ts +8 -0
- package/dist/components/charts/network/processSankey/algorithm.d.ts +57 -0
- package/dist/components/charts/network/processSankey/buildScenes.d.ts +6 -0
- package/dist/components/charts/network/processSankey/streamingLayout.d.ts +13 -0
- package/dist/components/charts/ordinal/GaugeChart.d.ts +10 -0
- package/dist/components/charts/realtime/RealtimeHeatmap.d.ts +2 -0
- package/dist/components/charts/realtime/RealtimeHistogram.d.ts +24 -0
- package/dist/components/charts/realtime/RealtimeLineChart.d.ts +2 -0
- package/dist/components/charts/realtime/RealtimeSwarmChart.d.ts +2 -0
- package/dist/components/charts/realtime/RealtimeWaterfallChart.d.ts +2 -0
- 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/tooltipUtils.d.ts +11 -0
- package/dist/components/charts/shared/types.d.ts +17 -2
- package/dist/components/charts/shared/useAreaSeriesSetup.d.ts +4 -1
- package/dist/components/charts/shared/useChartSetup.d.ts +4 -2
- package/dist/components/charts/shared/useCustomChartSetup.d.ts +2 -1
- package/dist/components/charts/shared/useNetworkChartSetup.d.ts +2 -0
- package/dist/components/charts/shared/withChartWrapper.d.ts +10 -3
- package/dist/components/charts/xy/AreaChart.d.ts +27 -2
- package/dist/components/charts/xy/LineChart.d.ts +26 -2
- package/dist/components/charts/xy/Scatterplot.d.ts +5 -1
- package/dist/components/semiotic-ai.d.ts +1 -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 +1 -1
- package/dist/components/semiotic.d.ts +6 -5
- package/dist/components/server/renderToStaticSVG.d.ts +4 -1
- package/dist/components/server/serverChartConfigs.d.ts +1 -0
- package/dist/components/server/staticAnnotations.d.ts +1 -1
- package/dist/components/server/staticLegend.d.ts +35 -0
- package/dist/components/server/themeResolver.d.ts +7 -1
- package/dist/components/store/ThemeStore.d.ts +9 -1
- package/dist/components/stream/AccessibleDataTable.d.ts +2 -2
- package/dist/components/stream/NetworkSVGOverlay.d.ts +2 -1
- package/dist/components/stream/OrdinalSVGOverlay.d.ts +2 -1
- package/dist/components/stream/PipelineStore.d.ts +20 -13
- package/dist/components/stream/SVGOverlay.d.ts +4 -30
- package/dist/components/stream/SceneToSVG.d.ts +1 -1
- package/dist/components/stream/accessorUtils.d.ts +2 -1
- package/dist/components/stream/geoTypes.d.ts +2 -1
- package/dist/components/stream/hoverUtils.d.ts +1 -0
- package/dist/components/stream/layouts/hierarchyLayoutPlugin.d.ts +1 -1
- package/dist/components/stream/legendRenderer.d.ts +2 -1
- package/dist/components/stream/networkTypes.d.ts +13 -1
- package/dist/components/stream/ordinalTypes.d.ts +31 -3
- package/dist/components/stream/renderers/wedgePathBuilder.d.ts +87 -0
- package/dist/components/stream/types.d.ts +110 -16
- package/dist/components/stream/xySceneBuilders/areaGradient.d.ts +20 -0
- package/dist/components/stream/xySceneBuilders/barScene.d.ts +2 -2
- package/dist/components/stream/xySceneBuilders/candlestickScene.d.ts +2 -2
- package/dist/components/stream/xySceneBuilders/heatmapScene.d.ts +2 -2
- package/dist/components/stream/xySceneBuilders/lineScene.d.ts +4 -3
- package/dist/components/stream/xySceneBuilders/pointScene.d.ts +2 -2
- package/dist/components/stream/xySceneBuilders/ribbonScene.d.ts +107 -0
- package/dist/components/stream/xySceneBuilders/swarmScene.d.ts +2 -2
- package/dist/components/stream/xySceneBuilders/types.d.ts +9 -12
- package/dist/components/stream/xySceneBuilders/waterfallScene.d.ts +2 -2
- 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 +1 -1
- package/dist/semiotic-ai.min.js +1 -1
- package/dist/semiotic-ai.module.min.js +1 -1
- package/dist/semiotic-data.min.js +1 -1
- package/dist/semiotic-data.module.min.js +1 -1
- package/dist/semiotic-realtime.d.ts +3 -3
- package/dist/semiotic-server.d.ts +1 -0
- package/dist/semiotic-themes.min.js +1 -1
- package/dist/semiotic-themes.module.min.js +1 -1
- package/dist/semiotic-utils.min.js +1 -1
- package/dist/semiotic-utils.module.min.js +1 -1
- package/dist/semiotic-xy.d.ts +1 -1
- package/dist/semiotic.d.ts +6 -5
- 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 -25
- package/dist/components/stream/xySceneBuilders/boundsScene.d.ts +0 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "semiotic",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.4",
|
|
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",
|
|
@@ -132,12 +132,16 @@
|
|
|
132
132
|
"website:start:clean": "npm run clean && npm run dist:prod && parcel serve --target website --no-cache",
|
|
133
133
|
"generate:ssr-gallery": "npx tsx scripts/ssr-gallery.tsx > docs/public/ssr-gallery.html 2>/dev/null",
|
|
134
134
|
"generate:demo-gifs": "node -e \"try{require.resolve('sharp');require.resolve('gifenc')}catch{console.log('Skipping GIF generation (sharp/gifenc not installed)');process.exit(0)}\" && npx tsx scripts/generate-demo-gifs.ts",
|
|
135
|
-
"
|
|
135
|
+
"generate:blog-og-cards": "node scripts/generate-blog-og-cards.mjs",
|
|
136
|
+
"generate:blog-rss": "node scripts/generate-blog-rss.mjs",
|
|
137
|
+
"website:build": "npm run dist:prod && npm run docs:api:json && npm run generate:ssr-gallery && npm run generate:demo-gifs && npm run check:blog-entries && npm run generate:blog-og-cards && npm run generate:blog-rss && parcel build --target website && node scripts/prerender.mjs && npm run check:docs-routes",
|
|
136
138
|
"build:mcp": "esbuild ai/mcp-server.ts --bundle --platform=node --target=node18 --format=cjs --outfile=ai/dist/mcp-server.js --external:react --external:react-dom --external:semiotic --external:semiotic/ai --external:semiotic/geo --banner:js='#!/usr/bin/env node'",
|
|
137
139
|
"docs:api": "typedoc",
|
|
138
140
|
"docs:api:json": "typedoc --json docs/public/api/api.json && node scripts/generate-component-descriptions.mjs",
|
|
139
141
|
"docs:descriptions:json": "node scripts/generate-component-descriptions.mjs",
|
|
140
142
|
"typescript": "tsc --noEmit",
|
|
143
|
+
"typescript:tests": "node scripts/check-test-types.mjs",
|
|
144
|
+
"typescript:tests:raw": "tsc -p tsconfig.tests.json --noEmit --pretty false",
|
|
141
145
|
"typescript:mcp": "tsc -p tsconfig.mcp.json --noEmit",
|
|
142
146
|
"size": "size-limit",
|
|
143
147
|
"check:pack": "node scripts/smoke-pack.mjs",
|
|
@@ -158,10 +162,11 @@
|
|
|
158
162
|
"check:jsdoc-coverage": "node scripts/check-jsdoc-coverage.mjs",
|
|
159
163
|
"check:ai-examples-coverage": "node scripts/check-ai-examples-coverage.mjs",
|
|
160
164
|
"check:docs-routes": "node scripts/check-docs-routes.mjs",
|
|
165
|
+
"check:blog-entries": "node scripts/check-blog-entry-sync.mjs",
|
|
161
166
|
"check:bundle-sizes": "node scripts/sync-bundle-sizes.mjs --check",
|
|
162
167
|
"docs:bundle-sizes": "node scripts/sync-bundle-sizes.mjs",
|
|
163
|
-
"release:check": "npm run lint && npm run typescript && npm run typescript:mcp && npm run test && npm run check:chart-specs && 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",
|
|
164
|
-
"prepublishOnly": "npm run lint && npm run typescript && npm run typescript:mcp && npm run test && npm run check:chart-specs && 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"
|
|
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"
|
|
165
170
|
},
|
|
166
171
|
"targets": {
|
|
167
172
|
"website": {
|
|
@@ -242,9 +247,12 @@
|
|
|
242
247
|
],
|
|
243
248
|
"devDependencies": {
|
|
244
249
|
"@axe-core/playwright": "^4.11.2",
|
|
250
|
+
"@eslint/js": "^9.39.4",
|
|
245
251
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
252
|
+
"@parcel/packager-xml": "^2.16.4",
|
|
246
253
|
"@parcel/transformer-inline-string": "^2.16.4",
|
|
247
|
-
"@
|
|
254
|
+
"@parcel/transformer-xml": "^2.16.4",
|
|
255
|
+
"@playwright/test": "^1.60.0",
|
|
248
256
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
249
257
|
"@rollup/plugin-terser": "^1.0.0",
|
|
250
258
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
@@ -264,8 +272,8 @@
|
|
|
264
272
|
"@types/d3-selection": "^3.0.0",
|
|
265
273
|
"@types/d3-shape": "^3.1.0",
|
|
266
274
|
"@types/d3-zoom": "^3.0.8",
|
|
267
|
-
"@types/node": "^22.19.
|
|
268
|
-
"@types/react": "^19.2.
|
|
275
|
+
"@types/node": "^22.19.19",
|
|
276
|
+
"@types/react": "^19.2.15",
|
|
269
277
|
"@types/react-dom": "^19.2.3",
|
|
270
278
|
"@types/seedrandom": "^3.0.5",
|
|
271
279
|
"@types/topojson-client": "^3.1.5",
|
|
@@ -274,40 +282,32 @@
|
|
|
274
282
|
"@vitest/coverage-v8": "^4.1.4",
|
|
275
283
|
"@vitest/ui": "^4.1.4",
|
|
276
284
|
"buffer": "^6.0.3",
|
|
277
|
-
"crypto-browserify": "^3.12.1",
|
|
278
285
|
"d3-dsv": "^3.0.1",
|
|
279
286
|
"d3-flextree-v4": "^1.0.1",
|
|
280
287
|
"esbuild": "^0.28.0",
|
|
281
288
|
"eslint": "^9.39.4",
|
|
282
289
|
"eslint-plugin-react": "^7.37.5",
|
|
283
|
-
"@eslint/js": "^9.39.4",
|
|
284
290
|
"globals": "^17.5.0",
|
|
285
|
-
"typescript-eslint": "^8.59.0",
|
|
286
|
-
"events": "^3.3.0",
|
|
287
291
|
"jsdom": "^29.0.2",
|
|
288
|
-
"marked": "^18.0.
|
|
289
|
-
"os-browserify": "^0.3.0",
|
|
292
|
+
"marked": "^18.0.4",
|
|
290
293
|
"marked-gfm-heading-id": "^4.1.4",
|
|
291
294
|
"parcel": "^2.16.4",
|
|
292
|
-
"
|
|
293
|
-
"playwright-chromium": "^1.59.1",
|
|
295
|
+
"playwright-chromium": "^1.60.0",
|
|
294
296
|
"prettier": "^3.8.3",
|
|
295
|
-
"
|
|
296
|
-
"react": "^19.2.
|
|
297
|
-
"react-
|
|
298
|
-
"react-router": "^7.
|
|
299
|
-
"
|
|
300
|
-
"rollup": "^4.59.0",
|
|
297
|
+
"react": "^19.2.6",
|
|
298
|
+
"react-dom": "^19.2.6",
|
|
299
|
+
"react-router": "^7.15.1",
|
|
300
|
+
"react-router-dom": "^7.15.1",
|
|
301
|
+
"rollup": "^4.60.4",
|
|
301
302
|
"rollup-plugin-auto-external": "^2.0.0",
|
|
302
303
|
"rollup-plugin-visualizer": "^7.0.0",
|
|
303
304
|
"seedrandom": "^3.0.5",
|
|
304
305
|
"size-limit": "^12.0.0",
|
|
305
|
-
"
|
|
306
|
+
"tsx": "^4.22.3",
|
|
306
307
|
"typedoc": "^0.28.19",
|
|
307
308
|
"typescript": "~6.0.3",
|
|
308
|
-
"
|
|
309
|
-
"vitest": "^4.1.4"
|
|
310
|
-
"vm-browserify": "^1.1.2"
|
|
309
|
+
"typescript-eslint": "^8.59.0",
|
|
310
|
+
"vitest": "^4.1.4"
|
|
311
311
|
},
|
|
312
312
|
"peerDependencies": {
|
|
313
313
|
"react": "^18.1.0 || ^19.0.0",
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Datum } from "../../charts/shared/datumTypes";
|
|
2
|
-
/**
|
|
3
|
-
* Bounds scene builder — produces an AreaSceneNode for confidence bands/envelopes.
|
|
4
|
-
*
|
|
5
|
-
* Consumed by: lineScene (renders bounds behind lines)
|
|
6
|
-
*/
|
|
7
|
-
import type { AreaSceneNode } from "../types";
|
|
8
|
-
import type { XYSceneContext } from "./types";
|
|
9
|
-
export declare function buildBoundsForGroup(ctx: XYSceneContext, data: Datum[], group: string): AreaSceneNode | null;
|