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.
Files changed (101) hide show
  1. package/CLAUDE.md +9 -8
  2. package/README.md +15 -15
  3. package/ai/componentMetadata.cjs +9 -2
  4. package/ai/dist/mcp-server.js +4 -1
  5. package/ai/examples.md +27 -0
  6. package/ai/schema.json +300 -41
  7. package/ai/system-prompt.md +1 -1
  8. package/dist/components/ThemeProvider.d.ts +2 -2
  9. package/dist/components/charts/index.d.ts +3 -3
  10. package/dist/components/charts/network/ProcessSankey.d.ts +22 -0
  11. package/dist/components/charts/network/SankeyDiagram.d.ts +5 -1
  12. package/dist/components/charts/network/Treemap.d.ts +8 -0
  13. package/dist/components/charts/network/processSankey/algorithm.d.ts +57 -0
  14. package/dist/components/charts/network/processSankey/buildScenes.d.ts +6 -0
  15. package/dist/components/charts/network/processSankey/streamingLayout.d.ts +13 -0
  16. package/dist/components/charts/ordinal/GaugeChart.d.ts +10 -0
  17. package/dist/components/charts/realtime/RealtimeHeatmap.d.ts +2 -0
  18. package/dist/components/charts/realtime/RealtimeHistogram.d.ts +24 -0
  19. package/dist/components/charts/realtime/RealtimeLineChart.d.ts +2 -0
  20. package/dist/components/charts/realtime/RealtimeSwarmChart.d.ts +2 -0
  21. package/dist/components/charts/realtime/RealtimeWaterfallChart.d.ts +2 -0
  22. package/dist/components/charts/shared/gaugeGradient.d.ts +62 -0
  23. package/dist/components/charts/shared/hooks.d.ts +2 -2
  24. package/dist/components/charts/shared/streamPropsHelpers.d.ts +2 -2
  25. package/dist/components/charts/shared/tooltipUtils.d.ts +11 -0
  26. package/dist/components/charts/shared/types.d.ts +17 -2
  27. package/dist/components/charts/shared/useAreaSeriesSetup.d.ts +4 -1
  28. package/dist/components/charts/shared/useChartSetup.d.ts +4 -2
  29. package/dist/components/charts/shared/useCustomChartSetup.d.ts +2 -1
  30. package/dist/components/charts/shared/useNetworkChartSetup.d.ts +2 -0
  31. package/dist/components/charts/shared/withChartWrapper.d.ts +10 -3
  32. package/dist/components/charts/xy/AreaChart.d.ts +27 -2
  33. package/dist/components/charts/xy/LineChart.d.ts +26 -2
  34. package/dist/components/charts/xy/Scatterplot.d.ts +5 -1
  35. package/dist/components/semiotic-ai.d.ts +1 -1
  36. package/dist/components/semiotic-realtime.d.ts +3 -3
  37. package/dist/components/semiotic-server.d.ts +1 -0
  38. package/dist/components/semiotic-xy.d.ts +1 -1
  39. package/dist/components/semiotic.d.ts +6 -5
  40. package/dist/components/server/renderToStaticSVG.d.ts +4 -1
  41. package/dist/components/server/serverChartConfigs.d.ts +1 -0
  42. package/dist/components/server/staticAnnotations.d.ts +1 -1
  43. package/dist/components/server/staticLegend.d.ts +35 -0
  44. package/dist/components/server/themeResolver.d.ts +7 -1
  45. package/dist/components/store/ThemeStore.d.ts +9 -1
  46. package/dist/components/stream/AccessibleDataTable.d.ts +2 -2
  47. package/dist/components/stream/NetworkSVGOverlay.d.ts +2 -1
  48. package/dist/components/stream/OrdinalSVGOverlay.d.ts +2 -1
  49. package/dist/components/stream/PipelineStore.d.ts +20 -13
  50. package/dist/components/stream/SVGOverlay.d.ts +4 -30
  51. package/dist/components/stream/SceneToSVG.d.ts +1 -1
  52. package/dist/components/stream/accessorUtils.d.ts +2 -1
  53. package/dist/components/stream/geoTypes.d.ts +2 -1
  54. package/dist/components/stream/hoverUtils.d.ts +1 -0
  55. package/dist/components/stream/layouts/hierarchyLayoutPlugin.d.ts +1 -1
  56. package/dist/components/stream/legendRenderer.d.ts +2 -1
  57. package/dist/components/stream/networkTypes.d.ts +13 -1
  58. package/dist/components/stream/ordinalTypes.d.ts +31 -3
  59. package/dist/components/stream/renderers/wedgePathBuilder.d.ts +87 -0
  60. package/dist/components/stream/types.d.ts +110 -16
  61. package/dist/components/stream/xySceneBuilders/areaGradient.d.ts +20 -0
  62. package/dist/components/stream/xySceneBuilders/barScene.d.ts +2 -2
  63. package/dist/components/stream/xySceneBuilders/candlestickScene.d.ts +2 -2
  64. package/dist/components/stream/xySceneBuilders/heatmapScene.d.ts +2 -2
  65. package/dist/components/stream/xySceneBuilders/lineScene.d.ts +4 -3
  66. package/dist/components/stream/xySceneBuilders/pointScene.d.ts +2 -2
  67. package/dist/components/stream/xySceneBuilders/ribbonScene.d.ts +107 -0
  68. package/dist/components/stream/xySceneBuilders/swarmScene.d.ts +2 -2
  69. package/dist/components/stream/xySceneBuilders/types.d.ts +9 -12
  70. package/dist/components/stream/xySceneBuilders/waterfallScene.d.ts +2 -2
  71. package/dist/components/types/legendTypes.d.ts +15 -0
  72. package/dist/components/types/marginType.d.ts +17 -3
  73. package/dist/geo.min.js +1 -1
  74. package/dist/geo.module.min.js +1 -1
  75. package/dist/network.min.js +1 -1
  76. package/dist/network.module.min.js +1 -1
  77. package/dist/ordinal.min.js +1 -1
  78. package/dist/ordinal.module.min.js +1 -1
  79. package/dist/realtime.min.js +1 -1
  80. package/dist/realtime.module.min.js +1 -1
  81. package/dist/semiotic-ai.d.ts +1 -1
  82. package/dist/semiotic-ai.min.js +1 -1
  83. package/dist/semiotic-ai.module.min.js +1 -1
  84. package/dist/semiotic-data.min.js +1 -1
  85. package/dist/semiotic-data.module.min.js +1 -1
  86. package/dist/semiotic-realtime.d.ts +3 -3
  87. package/dist/semiotic-server.d.ts +1 -0
  88. package/dist/semiotic-themes.min.js +1 -1
  89. package/dist/semiotic-themes.module.min.js +1 -1
  90. package/dist/semiotic-utils.min.js +1 -1
  91. package/dist/semiotic-utils.module.min.js +1 -1
  92. package/dist/semiotic-xy.d.ts +1 -1
  93. package/dist/semiotic.d.ts +6 -5
  94. package/dist/semiotic.min.js +1 -1
  95. package/dist/semiotic.module.min.js +1 -1
  96. package/dist/server.min.js +1 -1
  97. package/dist/server.module.min.js +1 -1
  98. package/dist/xy.min.js +1 -1
  99. package/dist/xy.module.min.js +1 -1
  100. package/package.json +25 -25
  101. package/dist/components/stream/xySceneBuilders/boundsScene.d.ts +0 -9
@@ -8,8 +8,22 @@ export interface MarginType {
8
8
  left: number;
9
9
  right: number;
10
10
  }
11
+ /** Public margin side value. Numbers pin a side to an exact pixel value.
12
+ * `"auto"` and `null` explicitly leave that side to chart defaults plus
13
+ * auto-reservation such as legends. */
14
+ export type MarginSide = number | "auto" | null | undefined;
11
15
  /** Public-API margin shape. Users can pass any subset of sides (`{ left: 120 }`
12
16
  * for wide y-axis labels is a common pattern) or a single number as shorthand
13
- * for "same on all sides". The frame fills missing sides from the chart-mode
14
- * defaults before handing a fully-resolved `MarginType` to the layout code. */
15
- export type PartialMargin = number | Partial<MarginType>;
17
+ * for "same on all sides". Pass a side as `"auto"` or `null` to explicitly
18
+ * opt back into chart auto-reservation for that side, e.g.
19
+ * `{ right: "auto" }` with a right-side legend. The frame fills missing/auto
20
+ * sides from chart-mode defaults before handing a fully-resolved
21
+ * `MarginType` to the layout code. */
22
+ export type PartialMargin = number | {
23
+ top?: MarginSide;
24
+ right?: MarginSide;
25
+ bottom?: MarginSide;
26
+ left?: MarginSide;
27
+ };
28
+ export declare function resolveMarginSide(value: MarginSide, fallback: number): number;
29
+ export declare function normalizePartialMargin(m: PartialMargin | undefined): Partial<MarginType> | undefined;