semiotic 3.8.7 → 3.8.9

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 (227) hide show
  1. package/CLAUDE.md +6 -5
  2. package/README.md +58 -48
  3. package/ai/dist/mcp-server.js +28 -2
  4. package/ai/schema.json +386 -4
  5. package/ai/surface-manifest.json +1 -1
  6. package/ai/system-prompt.md +1 -1
  7. package/dist/{chunk-chartContainerDataAudit-JDSVSKGM.module.min.js → chunk-chartContainerDataAudit-IQ3NBN3Q.module.min.js} +1 -1
  8. package/dist/chunk-chunk-2B3AIKUZ.module.min.js +2 -0
  9. package/dist/chunk-chunk-2NVFEB7P.module.min.js +2 -0
  10. package/dist/chunk-chunk-2X3FJCME.module.min.js +1 -0
  11. package/dist/{chunk-chunk-LVHDZAT3.module.min.js → chunk-chunk-2ZHHWZQM.module.min.js} +1 -1
  12. package/dist/chunk-chunk-5VVNW5AZ.module.min.js +1 -0
  13. package/dist/chunk-chunk-5ZON5NMV.module.min.js +2 -0
  14. package/dist/chunk-chunk-66PCWJUG.module.min.js +1 -0
  15. package/dist/chunk-chunk-6S3YGYW7.module.min.js +1 -0
  16. package/dist/chunk-chunk-7C5EDZ3Z.module.min.js +2 -0
  17. package/dist/chunk-chunk-A3I4HBD5.module.min.js +1 -0
  18. package/dist/{chunk-chunk-5SD6BHVW.module.min.js → chunk-chunk-AFQHURLO.module.min.js} +1 -1
  19. package/dist/chunk-chunk-DDB4TLQG.module.min.js +2 -0
  20. package/dist/{chunk-chunk-OI7R7EJB.module.min.js → chunk-chunk-DTH3SUOU.module.min.js} +1 -1
  21. package/dist/chunk-chunk-DTSNLGRK.module.min.js +2 -0
  22. package/dist/{chunk-chunk-NH4MEAKP.module.min.js → chunk-chunk-DVCWU7MT.module.min.js} +1 -1
  23. package/dist/chunk-chunk-FEPXDKJP.module.min.js +1 -0
  24. package/dist/chunk-chunk-FJ76HWQZ.module.min.js +1 -0
  25. package/dist/chunk-chunk-FSIHAW6L.module.min.js +2 -0
  26. package/dist/chunk-chunk-G2RGVEYY.module.min.js +2 -0
  27. package/dist/chunk-chunk-G75OPF5N.module.min.js +2 -0
  28. package/dist/chunk-chunk-HADHLMY5.module.min.js +1 -0
  29. package/dist/chunk-chunk-HAJVODLO.module.min.js +2 -0
  30. package/dist/chunk-chunk-HBFA4NN6.module.min.js +1 -0
  31. package/dist/{chunk-chunk-FRO4TRXK.module.min.js → chunk-chunk-HIV7AW2V.module.min.js} +1 -1
  32. package/dist/{chunk-chunk-Z2AJERX5.module.min.js → chunk-chunk-JZAMMSQQ.module.min.js} +1 -1
  33. package/dist/chunk-chunk-LSJUXBMF.module.min.js +1 -0
  34. package/dist/chunk-chunk-MXMRXSCI.module.min.js +2 -0
  35. package/dist/chunk-chunk-MXVBXFKW.module.min.js +2 -0
  36. package/dist/chunk-chunk-NWIGA3UK.module.min.js +1 -0
  37. package/dist/chunk-chunk-OFAP623Y.module.min.js +2 -0
  38. package/dist/{chunk-chunk-JWXLNZSM.module.min.js → chunk-chunk-OHLRAEQZ.module.min.js} +1 -1
  39. package/dist/{chunk-chunk-XEVJDUTH.module.min.js → chunk-chunk-OZK46A5U.module.min.js} +1 -1
  40. package/dist/chunk-chunk-PMR47KRY.module.min.js +2 -0
  41. package/dist/chunk-chunk-PRNXOCYZ.module.min.js +2 -0
  42. package/dist/chunk-chunk-RLKZVJMQ.module.min.js +2 -0
  43. package/dist/chunk-chunk-SK2TQMG4.module.min.js +2 -0
  44. package/dist/chunk-chunk-SKLYXNYW.module.min.js +2 -0
  45. package/dist/chunk-chunk-TCMHJWFJ.module.min.js +1 -0
  46. package/dist/chunk-chunk-U4NZCU5T.module.min.js +2 -0
  47. package/dist/chunk-chunk-VKL6DI43.module.min.js +2 -0
  48. package/dist/chunk-chunk-W62673ZE.module.min.js +1 -0
  49. package/dist/chunk-chunk-WFHZHWT7.module.min.js +1 -0
  50. package/dist/{chunk-chunk-GU2EJIDJ.module.min.js → chunk-chunk-XCC25CZZ.module.min.js} +1 -1
  51. package/dist/chunk-chunk-XECNOUZY.module.min.js +2 -0
  52. package/dist/{chunk-chunk-BNGBEY7N.module.min.js → chunk-chunk-XYZDTYAF.module.min.js} +1 -1
  53. package/dist/chunk-statisticalOverlays-HMYYSGPE.module.min.js +2 -0
  54. package/dist/components/Tooltip/Tooltip.d.ts +54 -1
  55. package/dist/components/charts/index.d.ts +2 -2
  56. package/dist/components/charts/network/ProcessSankey.d.ts +105 -74
  57. package/dist/components/charts/network/processSankey/accessors.d.ts +7 -0
  58. package/dist/components/charts/network/processSankey/algorithm.d.ts +14 -193
  59. package/dist/components/charts/network/processSankey/axisChrome.d.ts +31 -0
  60. package/dist/components/charts/network/processSankey/bandPaths.d.ts +45 -0
  61. package/dist/components/charts/network/processSankey/buildScenes.d.ts +41 -3
  62. package/dist/components/charts/network/processSankey/fixtures.d.ts +17 -0
  63. package/dist/components/charts/network/processSankey/frameMargins.d.ts +11 -0
  64. package/dist/components/charts/network/processSankey/groupBonding.d.ts +13 -0
  65. package/dist/components/charts/network/processSankey/inventoryAtTime.d.ts +41 -0
  66. package/dist/components/charts/network/processSankey/labelPlacement.d.ts +34 -0
  67. package/dist/components/charts/network/processSankey/layoutGeometry.d.ts +47 -0
  68. package/dist/components/charts/network/processSankey/layoutOrchestrator.d.ts +44 -0
  69. package/dist/components/charts/network/processSankey/layoutQualityProduct.d.ts +27 -0
  70. package/dist/components/charts/network/processSankey/massSimulation.d.ts +16 -0
  71. package/dist/components/charts/network/processSankey/ordering.d.ts +55 -0
  72. package/dist/components/charts/network/processSankey/orderingBond.d.ts +33 -0
  73. package/dist/components/charts/network/processSankey/orientation.d.ts +5 -0
  74. package/dist/components/charts/network/processSankey/packing.d.ts +8 -0
  75. package/dist/components/charts/network/processSankey/packingCache.d.ts +23 -0
  76. package/dist/components/charts/network/processSankey/processSankeyLayoutAsync.d.ts +27 -0
  77. package/dist/components/charts/network/processSankey/processSankeyLayoutWorkerClient.d.ts +72 -0
  78. package/dist/components/charts/network/processSankey/processSankeyTooltip.d.ts +26 -0
  79. package/dist/components/charts/network/processSankey/processSankeyTypes.d.ts +163 -0
  80. package/dist/components/charts/network/processSankey/ribbonInputs.d.ts +26 -2
  81. package/dist/components/charts/network/processSankey/ribbonRunway.d.ts +45 -0
  82. package/dist/components/charts/network/processSankey/streamingLayout.d.ts +23 -0
  83. package/dist/components/charts/network/processSankey/time.d.ts +11 -0
  84. package/dist/components/charts/network/processSankey/useProcessSankeyPush.d.ts +29 -0
  85. package/dist/components/charts/network/processSankey/useProcessSankeyScenes.d.ts +26 -0
  86. package/dist/components/charts/network/processSankey/validation.d.ts +33 -0
  87. package/dist/components/charts/physics/chainReactionTypes.d.ts +1 -0
  88. package/dist/components/charts/physics/physicsHocUtils.d.ts +1 -1
  89. package/dist/components/charts/realtime/RealtimeHeatmap.d.ts +2 -0
  90. package/dist/components/charts/realtime/RealtimeHistogram.d.ts +2 -0
  91. package/dist/components/charts/realtime/RealtimeLineChart.d.ts +2 -0
  92. package/dist/components/charts/realtime/RealtimeSwarmChart.d.ts +2 -0
  93. package/dist/components/charts/realtime/RealtimeWaterfallChart.d.ts +2 -0
  94. package/dist/components/charts/shared/chartFamilySets.d.ts +1 -0
  95. package/dist/components/charts/shared/formatUtils.d.ts +45 -3
  96. package/dist/components/charts/shared/hatchFill.d.ts +2 -0
  97. package/dist/components/charts/shared/hooks.d.ts +1 -1
  98. package/dist/components/charts/shared/leastSquaresRegression.d.ts +31 -0
  99. package/dist/components/charts/shared/streamPropsHelpers.d.ts +1 -0
  100. package/dist/components/charts/shared/styleRules.d.ts +5 -1
  101. package/dist/components/charts/shared/types.d.ts +8 -1
  102. package/dist/components/charts/shared/useChartLegend.d.ts +6 -0
  103. package/dist/components/charts/shared/useChartSetup.d.ts +1 -1
  104. package/dist/components/charts/shared/validateProps.d.ts +2 -2
  105. package/dist/components/charts/shared/withChartWrapper.d.ts +0 -6
  106. package/dist/components/data/numericFieldProfiler.d.ts +2 -0
  107. package/dist/components/recipes/layout1d.d.ts +68 -0
  108. package/dist/components/semiotic-network.d.ts +2 -2
  109. package/dist/components/semiotic-recipes-core.d.ts +2 -0
  110. package/dist/components/semiotic-utils-core.d.ts +1 -0
  111. package/dist/components/semiotic.d.ts +6 -3
  112. package/dist/components/server/staticSVGChrome.d.ts +2 -1
  113. package/dist/components/store/createStore.d.ts +2 -0
  114. package/dist/components/stream/GeoTileRenderer.d.ts +1 -0
  115. package/dist/components/stream/OrdinalPipelineStore.d.ts +3 -0
  116. package/dist/components/stream/PipelineStore.d.ts +5 -0
  117. package/dist/components/stream/accessorUtils.d.ts +21 -0
  118. package/dist/components/stream/canvasSetup.d.ts +15 -4
  119. package/dist/components/stream/frameKeyboardNavigation.d.ts +3 -2
  120. package/dist/components/stream/geoTypes.d.ts +2 -0
  121. package/dist/components/stream/layouts/forceLayoutWorkerClient.d.ts +3 -8
  122. package/dist/components/stream/layouts/index.d.ts +1 -1
  123. package/dist/components/stream/moduleWorkerSession.d.ts +67 -0
  124. package/dist/components/stream/networkFramePaint.d.ts +8 -0
  125. package/dist/components/stream/networkTypes.d.ts +4 -0
  126. package/dist/components/stream/ordinalSceneBuilders/sceneBuilderMap.d.ts +2 -1
  127. package/dist/components/stream/ordinalTypes.d.ts +2 -0
  128. package/dist/components/stream/physics/PhysicsKernel.d.ts +9 -0
  129. package/dist/components/stream/physics/StreamPhysicsTypes.d.ts +2 -0
  130. package/dist/components/stream/pipelineConfig.d.ts +2 -0
  131. package/dist/components/stream/pipelineDomainResolution.d.ts +1 -1
  132. package/dist/components/stream/pipelineIntroCancellation.d.ts +6 -0
  133. package/dist/components/stream/pipelineTransitions.d.ts +15 -1
  134. package/dist/components/stream/renderers/canvasRenderHelpers.d.ts +16 -4
  135. package/dist/components/stream/renderers/symbolCanvasRenderer.d.ts +4 -0
  136. package/dist/components/stream/symbolPath.d.ts +8 -0
  137. package/dist/components/stream/types.d.ts +10 -1
  138. package/dist/components/stream/useCanvasFrameHost.d.ts +15 -0
  139. package/dist/components/stream/useSemanticFrameInteractions.d.ts +12 -3
  140. package/dist/components/stream/xyFrameAxisTypes.d.ts +9 -0
  141. package/dist/forceLayoutWorker.js +1 -1
  142. package/dist/geo.min.js +1 -1
  143. package/dist/geo.module.min.js +1 -1
  144. package/dist/network.min.js +1 -1
  145. package/dist/network.module.min.js +1 -1
  146. package/dist/ordinal.min.js +1 -1
  147. package/dist/ordinal.module.min.js +1 -1
  148. package/dist/physics.min.js +1 -1
  149. package/dist/physics.module.min.js +1 -1
  150. package/dist/physicsWorker.js +1 -1
  151. package/dist/processSankeyLayoutWorker.js +1 -0
  152. package/dist/realtime.min.js +1 -1
  153. package/dist/realtime.module.min.js +1 -1
  154. package/dist/semiotic-ai-core.min.js +1 -1
  155. package/dist/semiotic-ai-core.module.min.js +1 -1
  156. package/dist/semiotic-ai.min.js +1 -1
  157. package/dist/semiotic-ai.module.min.js +1 -1
  158. package/dist/semiotic-experimental-vacp.min.js +1 -1
  159. package/dist/semiotic-experimental-vacp.module.min.js +1 -1
  160. package/dist/semiotic-experimental.min.js +1 -1
  161. package/dist/semiotic-experimental.module.min.js +1 -1
  162. package/dist/semiotic-network.d.ts +2 -2
  163. package/dist/semiotic-realtime-core.min.js +1 -1
  164. package/dist/semiotic-realtime-core.module.min.js +1 -1
  165. package/dist/semiotic-recipes-core.d.ts +2 -0
  166. package/dist/semiotic-recipes-core.min.js +1 -1
  167. package/dist/semiotic-recipes-core.module.min.js +1 -1
  168. package/dist/semiotic-recipes.min.js +1 -1
  169. package/dist/semiotic-recipes.module.min.js +1 -1
  170. package/dist/semiotic-server-edge.min.js +1 -1
  171. package/dist/semiotic-server-edge.module.min.js +1 -1
  172. package/dist/semiotic-server-node.min.js +1 -1
  173. package/dist/semiotic-server-node.module.min.js +1 -1
  174. package/dist/semiotic-themes-core.module.min.js +1 -1
  175. package/dist/semiotic-themes-react.module.min.js +1 -1
  176. package/dist/semiotic-themes.module.min.js +1 -1
  177. package/dist/semiotic-utils-core.d.ts +1 -0
  178. package/dist/semiotic-utils-core.min.js +1 -1
  179. package/dist/semiotic-utils-core.module.min.js +1 -1
  180. package/dist/semiotic-utils-react.module.min.js +1 -1
  181. package/dist/semiotic-utils.min.js +1 -1
  182. package/dist/semiotic-utils.module.min.js +1 -1
  183. package/dist/semiotic-value.min.js +1 -1
  184. package/dist/semiotic-value.module.min.js +1 -1
  185. package/dist/semiotic.d.ts +6 -3
  186. package/dist/semiotic.min.js +1 -1
  187. package/dist/semiotic.module.min.js +1 -1
  188. package/dist/server.min.js +1 -1
  189. package/dist/server.module.min.js +1 -1
  190. package/dist/xy.min.js +1 -1
  191. package/dist/xy.module.min.js +1 -1
  192. package/package.json +4 -3
  193. package/dist/chunk-chunk-2YAZHXL4.module.min.js +0 -2
  194. package/dist/chunk-chunk-3NGIKFD6.module.min.js +0 -1
  195. package/dist/chunk-chunk-7TTBHSAG.module.min.js +0 -2
  196. package/dist/chunk-chunk-7ZDJSYKI.module.min.js +0 -2
  197. package/dist/chunk-chunk-BGHPD3RA.module.min.js +0 -1
  198. package/dist/chunk-chunk-BMRZ2SPU.module.min.js +0 -2
  199. package/dist/chunk-chunk-C7APLVQD.module.min.js +0 -2
  200. package/dist/chunk-chunk-DGWFBOGB.module.min.js +0 -1
  201. package/dist/chunk-chunk-DIVE2DRA.module.min.js +0 -2
  202. package/dist/chunk-chunk-DSNGDNJY.module.min.js +0 -1
  203. package/dist/chunk-chunk-FBUNUIPV.module.min.js +0 -2
  204. package/dist/chunk-chunk-G7QVPZUD.module.min.js +0 -2
  205. package/dist/chunk-chunk-GBPYV4FP.module.min.js +0 -2
  206. package/dist/chunk-chunk-KXAFCCDB.module.min.js +0 -2
  207. package/dist/chunk-chunk-LG7YKJAK.module.min.js +0 -2
  208. package/dist/chunk-chunk-LWITSR2O.module.min.js +0 -2
  209. package/dist/chunk-chunk-MX35T6RX.module.min.js +0 -2
  210. package/dist/chunk-chunk-NJETWX42.module.min.js +0 -2
  211. package/dist/chunk-chunk-NW25WGLS.module.min.js +0 -2
  212. package/dist/chunk-chunk-ONMLEXHR.module.min.js +0 -2
  213. package/dist/chunk-chunk-OY66GCE6.module.min.js +0 -1
  214. package/dist/chunk-chunk-PRDGLMJT.module.min.js +0 -2
  215. package/dist/chunk-chunk-PZFT457G.module.min.js +0 -1
  216. package/dist/chunk-chunk-Q3WW6JGR.module.min.js +0 -1
  217. package/dist/chunk-chunk-Q6XKQTOQ.module.min.js +0 -1
  218. package/dist/chunk-chunk-RJRM2E6P.module.min.js +0 -1
  219. package/dist/chunk-chunk-RPL7WYXI.module.min.js +0 -1
  220. package/dist/chunk-chunk-V3OAKG32.module.min.js +0 -1
  221. package/dist/chunk-chunk-WCX6U47H.module.min.js +0 -2
  222. package/dist/chunk-chunk-WLOIUMWG.module.min.js +0 -2
  223. package/dist/chunk-chunk-XEGXX4F7.module.min.js +0 -1
  224. package/dist/chunk-chunk-XFRBLXYM.module.min.js +0 -1
  225. package/dist/chunk-chunk-ZXYDYAB7.module.min.js +0 -2
  226. package/dist/chunk-statisticalOverlays-6MVAK5RW.module.min.js +0 -2
  227. package/dist/components/stream/renderers/networkSymbolRenderer.d.ts +0 -2
package/CLAUDE.md CHANGED
@@ -4,7 +4,7 @@
4
4
  - Install: `npm install semiotic`
5
5
  <!-- semiotic-bundle-sizes:start -->
6
6
  <!-- Auto-generated by scripts/sync-bundle-sizes.mjs — do not edit by hand. -->
7
- - **Use sub-path imports** — `semiotic/xy` (145KB gz), `semiotic/ordinal` (120KB gz), `semiotic/network` (126KB gz), `semiotic/geo` (103KB gz), `semiotic/realtime` (153KB gz), `semiotic/realtime/core` (144KB gz), `semiotic/realtime/react` (1KB gz), `semiotic/server` (210KB gz), `semiotic/server/node` (210KB gz), `semiotic/server/edge` (224KB gz), `semiotic/utils` (83KB gz), `semiotic/utils/core` (82KB gz), `semiotic/utils/react` (6KB gz), `semiotic/recipes` (88KB gz), `semiotic/recipes/core` (87KB gz), `semiotic/recipes/react` (2KB gz), `semiotic/themes` (7KB gz), `semiotic/themes/core` (7KB gz), `semiotic/themes/react` (6KB gz), `semiotic/data` (4KB gz), `semiotic/value` (8KB gz), `semiotic/physics` (160KB gz), `semiotic/physics/matter` (1KB gz), `semiotic/physics/rapier` (1KB gz), `semiotic/ai` (486KB gz), `semiotic/ai/core` (80KB gz), `semiotic/controls` (12KB gz), `semiotic/rough` (4KB gz). Full `semiotic` is 389KB gz.
7
+ - **Use sub-path imports** — `semiotic/xy` (146KB gz), `semiotic/ordinal` (122KB gz), `semiotic/network` (146KB gz), `semiotic/geo` (104KB gz), `semiotic/realtime` (155KB gz), `semiotic/realtime/core` (146KB gz), `semiotic/realtime/react` (1KB gz), `semiotic/server` (226KB gz), `semiotic/server/node` (226KB gz), `semiotic/server/edge` (241KB gz), `semiotic/utils` (86KB gz), `semiotic/utils/core` (84KB gz), `semiotic/utils/react` (6KB gz), `semiotic/recipes` (90KB gz), `semiotic/recipes/core` (89KB gz), `semiotic/recipes/react` (2KB gz), `semiotic/themes` (7KB gz), `semiotic/themes/core` (7KB gz), `semiotic/themes/react` (6KB gz), `semiotic/data` (4KB gz), `semiotic/value` (8KB gz), `semiotic/physics` (161KB gz), `semiotic/physics/matter` (1KB gz), `semiotic/physics/rapier` (1KB gz), `semiotic/ai` (507KB gz), `semiotic/ai/core` (81KB gz), `semiotic/controls` (12KB gz), `semiotic/rough` (4KB gz). Full `semiotic` is 410KB gz.
8
8
  <!-- semiotic-bundle-sizes:end -->
9
9
  - CLI: `npx semiotic-ai [--schema|--compact|--examples|--doctor|--audit-a11y]` · MCP: `npx semiotic-mcp`
10
10
 
@@ -12,7 +12,7 @@
12
12
  HOC Charts (simple, default) → Stream Frames (full control). Use HOCs unless you need control they don't expose. Stream Frames pass `RealtimeNode`/`RealtimeEdge` wrappers in callbacks, not your data. Every HOC accepts `frameProps`, has an error boundary + dev-mode validation. TypeScript `strict: true`.
13
13
 
14
14
  ## Common Props (chart HOCs only)
15
- `title`, `description` (aria-label), `summary` (sr-only), `width` (600), `height` (400), `responsiveWidth`, `responsiveHeight`, `margin`, `className`, `color` (uniform fill), `stroke`, `strokeWidth`, `opacity`, `enableHover` (true), `tooltip` (boolean | "multi" | function | config), `showLegend`, `showGrid` (false), `frameProps`, `onObservation`, `onClick`, `chartId`, `loading`, `loadingContent` (ReactNode; `false` suppresses), `emptyContent`, `legendInteraction` ("none"|"highlight"|"isolate"), `legendPosition` ("right"|"left"|"top"|"bottom"), `emphasis` ("primary"|"secondary"), `annotations`, `accessibleTable` (true), `hoverHighlight` (requires `colorBy`), `hoverRadius` (30), `animate` (boolean | {duration?, easing?, intro?}), `axisExtent` ("nice"|"exact" — pins first/last tick to data min/max; XY x/y + ordinal value axis only).
15
+ `title`, `description` (aria-label), `summary` (sr-only), `width` (600), `height` (400), `responsiveWidth`, `responsiveHeight`, `margin`, `className`, `color` (uniform fill), `stroke`, `strokeWidth`, `opacity`, `enableHover` (true), `tooltip` (boolean | "multi" | function | config), `showLegend`, `showGrid` (false), `frameProps`, `onObservation`, `onClick`, `chartId`, `loading`, `loadingContent` (ReactNode; `false` suppresses), `emptyContent`, `legendInteraction` ("none"|"highlight"|"isolate"), `legendPosition` ("right"|"left"|"top"|"bottom"), `emphasis` ("primary"|"secondary"), `annotations`, `accessibleTable` (true), `hoverHighlight` (requires `colorBy`), `hoverRadius` (30), `animate` (boolean | {duration?, easing?, intro?}), `axisExtent` ("nice"|"exact" — pins first/last tick to data min/max; XY x/y + ordinal value axis only; override per XY axis with `frameProps.axes[i].extent`), `maxDevicePixelRatio` (canvas backing-store cap; defaults 3 desktop / 2 coarse-pointer or narrow viewports; canvases repaint on browser zoom / display-density changes).
16
16
 
17
17
  This list is not global. Plain value components do not inherit chart-HOC props and must be
18
18
  validated against their own schema. In particular, `BigNumber` uses `label`, `description`, and
@@ -65,7 +65,7 @@ All ordinal: `colorBy`, `colorScheme`, `categoryFormat` (string|ReactNode), `sho
65
65
 
66
66
  **ForceDirectedGraph** — `nodes`, `edges`, `nodeIDAccessor`, `sourceAccessor`, `targetAccessor`, `colorBy`, `nodeSize`, `nodeSizeRange`, `nodeStroke`/`nodeStrokeWidth` (node-only outline), `edgeWidth`, `edgeColor`/`edgeOpacity` (edge-only stroke), `iterations` (300), `forceStrength` (0.1 — link-attraction multiplier), `layoutExecution` ("auto" default | "worker" | "sync" — auto runs big layouts in a Web Worker by estimated cost, sync fallback everywhere), `layoutLoadingContent` (ReactNode while worker layout pends; `false` suppresses), `onLayoutStateChange` (`"pending"|"ready"|"error"`), `showLabels`, `nodeLabel`, `styleRules` (style groups of nodes — rules see the raw node; `ctx.category` = colorBy group). **Node vs edge stroking**: the generic `stroke`/`strokeWidth`/`opacity` style *all* marks uniformly; to stroke nodes and edges separately use node-only `nodeStroke`/`nodeStrokeWidth` (e.g. `nodeStroke="none"` drops the node ring) and edge-only `edgeColor`/`edgeWidth`/`edgeOpacity`. Precedence per property: specific > generic > built-in default.
67
67
  **SankeyDiagram** — `edges`, `nodes`, `valueAccessor`, `nodeIdAccessor`, `colorBy`, `edgeColorBy`, `orientation`, `nodeAlign`, `nodeWidth`, `nodePaddingRatio`, `showLabels`
68
- **ProcessSankey** — temporal sankey with real time x-axis. `nodes`, `edges` (each with `startTime`/`endTime`), `domain` (req `[t0, t1]`), `axisTicks?`, `xExtentAccessor` (optional `[start, end]` lifetime per node), `colorBy`/`colorScheme`/`showLegend`/`legendPosition`, `pairing` ("value"|"temporal"), `packing` ("off"|"reuse"), `laneOrder` ("crossing-min"|"inside-out"|"crossing-min+inside-out"|"insertion"), `lifetimeMode` ("full"|"half"), `ribbonLane` ("source"|"target"|"both"), `showLaneRails`, `showLabels` (true), `showQualityReadout`, `showParticles` + `particleStyle`, `timeFormat`/`valueFormat`, push API via ref. Static-graph cycles OK as long as edges move forward in time. Use ProcessSankey for time-stamped events; SankeyDiagram for static snapshots.
68
+ **ProcessSankey** — temporal sankey with real time x-axis. `nodes`, `edges` (each with `startTime`/`endTime`; zero-duration OK), `domain` (req `[t0, t1]`), `axisTicks?`, `xExtentAccessor` (optional `[start, end]` lifetime per node), `nodeLabel` (visible lane-label accessor), `colorBy`/`colorScheme`/`showLegend`/`legendPosition`, `styleRules` (band fills; `fill` may be a color or **HatchFill** — canvas + SSR), `selection`/`linkedHover`, `selectionDatum` ("raw" default | "scene" — what selection predicates see), `pairing` ("value"|"temporal", default temporal), `packing` ("off"|"reuse"), `laneOrder` ("crossing-min"|"inside-out"|"crossing-min+inside-out"|"insertion"), `maxValueScale` (pixels-per-unit cap), `lanePlacement` ("stack"|"hug" — hug/binding maxValueScale also post-scale geometry-refines order), `lifetimeMode` ("full"|"half", default half), `ribbonLane` ("source"|"target"|"both"), `ribbonMinRun` (0 exact | pixel minimum | "auto" — **source-only feeder** runway + source-band handoff; not a general min-edge length), `showLaneRails`, `showLabels` (true|false|"auto" density budget; auto sheds keep deferred text for selection reveal), `labelPriorityAccessor` / `maxLabels` (auto priority + hard cap), `showQualityReadout` (crossings/pixel + non-fatal validation warnings), `layoutExecution` ("auto"|"worker"|"sync" — auto offloads packing/ordering to a module worker by cost; SSR always sync), `layoutWorkerThreshold`, `layoutLoadingContent`, `onLayoutStateChange` (`"pending"|"ready"|"error"`), `showParticles` + `particleStyle`, `timeFormat`/`valueFormat`, push API via ref (`getScales` → time + centerlines; `getCustomLayout` → `{ layout, bands, ribbons, warnings, … }` with `layout.layoutQuality`). Pure quality helpers from `semiotic/network`: `diagnoseProcessSankeyLayout` / `diagnoseProcessSankeyProps` / `explainProcessSankeyLayout` (also fed into `diagnoseConfig("ProcessSankey", props)`). **Validation policy**: static/MCP hard-fail duplicate ids; React push warns on duplicates and strips non-finite systemIn/Out times. Static-graph cycles OK as long as edges move forward in time. Use ProcessSankey for time-stamped events; SankeyDiagram for static snapshots.
69
69
  **ChordDiagram** — `edges`, `nodes`, `valueAccessor`, `edgeColorBy`, `padAngle`, `showLabels`
70
70
  **TreeDiagram** — `data` (root), `layout`, `orientation`, `childrenAccessor`, `colorBy`, `colorByDepth`
71
71
  **Treemap** — `data` (root), `childrenAccessor`, `valueAccessor`, `colorBy`, `colorByDepth`, `showLabels`
@@ -405,7 +405,7 @@ These rules are generated from `ai/behaviorContracts.cjs` and are consumed by `s
405
405
  - **Push API**: Omit `data`. `data={[]}` clears on every render.
406
406
  - **Tooltip datum shape**: HOC tooltips get raw data. Frame `tooltipContent` gets wrapped — use `d.data`.
407
407
  - **Tooltip format cascade**: `valueFormat`/`xFormat`/`yFormat` flow to default tooltip (axis + tooltip read identically). Custom `tooltip` fully overrides — re-pass via `Tooltip({format})` / `MultiLineTooltip({fields:[{format}]})`. Bespoke-tooltip charts (Histogram, FunnelChart, LikertChart, GaugeChart) don't participate; customize via `tooltip`.
408
- - **`tooltip="multi"`**: shows all series at hovered X for LineChart, AreaChart, StackedAreaChart. Custom fn receives `datum.allSeries`.
408
+ - **`tooltip="multi"`** / **`tooltip={{ mode: "multi", content? }}`**: multi-series hover-anywhere for LineChart, AreaChart, StackedAreaChart, DifferenceChart (wires `tooltipMode:"multi"`). Built-in multi renderer when `content` is omitted. Custom multi: `tooltip={{ mode: "multi", content: (d) => … }}` — the function receives the unwrapped raw datum with hover-root `allSeries` / `xValue` re-attached (`{group, value, valuePx, color, datum}` entries). Legacy escape hatch: `tooltip={fn}` + `frameProps={{ tooltipMode: "multi" }}`.
409
409
  - **Legend**: "bottom" expands margin ~80px. MultiAxisLineChart: use `legendPosition="bottom"`. A **bottom** legend is placed *outside* the bottom axis chrome (tick labels, axis title) so it doesn't overdraw it; the band is auto-measured. Top axes are opt-in, so a **top** legend reserves nothing by default — set `frameProps.legendLayout.axisGutter` for one. `axisGutter` also overrides the measured bottom band (`0` anchors to the plot edge); `sideGutter` is the left/right counterpart.
410
410
  - **Horizontal bars**: need wider left margin (`margin={{ left: 120 }}`).
411
411
  - **Log scale**: domain min clamped to 1e-6. **`xScaleType: "time"`**: creates `scaleTime`; required for landmark ticks with timestamps.
@@ -415,7 +415,8 @@ These rules are generated from `ai/behaviorContracts.cjs` and are consumed by `s
415
415
  - **`hoverHighlight`**: requires `colorBy` as a string field.
416
416
  - **`frameProps` style functions**: bypass HOC color resolution — use `colorBy` instead.
417
417
  - **Geo imports**: always `semiotic/geo`, never `semiotic`.
418
- - **Axis config**: `frameProps.axes: [{ orient, includeMax, autoRotate, gridStyle, landmarkTicks, tickAnchor }]`. `tickAnchor: "edges"` flips first tick's `text-anchor` to `start`, last to `end` (and `dominant-baseline` on vertical axes) so edge labels don't overflow. Pairs with `axisExtent: "exact"`.
418
+ - **Axis config**: `frameProps.axes: [{ orient, includeMax, autoRotate, gridStyle, landmarkTicks, tickAnchor, extent }]`. `tickAnchor: "edges"` flips first tick's `text-anchor` to `start`, last to `end` (and `dominant-baseline` on vertical axes) so edge labels don't overflow. Pairs with `axisExtent: "exact"`. Per-axis `extent: "nice"|"exact"` overrides chart-level `axisExtent` (common: exact x / nice y). Exact on a **value (y)** axis also skips y `extentPadding`; exact on x only affects tick placement.
419
+ - **Adaptive time ticks**: `xFormat={adaptiveTimeTicks()}` or `adaptiveTimeTicks("minutes")`. Default formats in **UTC** for deterministic SSR. Timezone: `{ timeZone: "local" }` for the viewer, `{ timeZone: "America/Los_Angeles" }` (any IANA id) for a pinned region, or legacy `{ utc: false }` for local. `timeZone` wins over `utc` when both are set.
419
420
  - **Per-axis CSS**: every axis renders as `<g class="semiotic-axis semiotic-axis-{bottom|left|right|top}" data-orient="…">`. Style via `[data-orient="left"] text { font-size: 14px }` — CSS-var defaults are set inline via `var(--semiotic-tick-font-size, …)`, so cascade overrides win cleanly. Tick text: `class="semiotic-axis-tick"`; labels: `class="semiotic-axis-label"`; titles: `class="semiotic-chart-title"`.
420
421
  - **`scalePadding`**: pixel inset on scale ranges (via `frameProps={{ scalePadding: 12 }}`).
421
422
  - **`categoryFormat`/`xFormat`/`yFormat`**: can return ReactNode (renders in `<foreignObject>`). Tick deduplication: adjacent identical labels auto-removed.
package/README.md CHANGED
@@ -17,22 +17,32 @@ AI coding assistants generate correct chart code on the first try.
17
17
  <img src="./docs/public/assets/img/semiotic-release-dashboard.svg" alt="Semiotic release dashboard showing chart count, bundle sizes, capability coverage, chart families, and documentation growth" width="100%">
18
18
  <!-- semiotic-readme-dashboard:end -->
19
19
 
20
- ## What's New in 3.8.7
21
-
22
- 3.8.7 hardens the physics, server-rendering, and agent-evaluation paths exercised after the 3.8.6
23
- release:
24
-
25
- - Physics reduced-motion settling now admits paced spawns and completes time-driven event tapes;
26
- runtime preference changes no longer accumulate a giant animation delta. Chain-reaction tiles
27
- and lane labels no longer overlap, and physics chrome follows the active theme.
28
- - BigNumber now has native static render evidence, exact source facts flow through reader
29
- grounding, and agent guidance keeps value-component props separate from chart-HOC props.
30
- - Static SVG preserves chart-level primitive styling and heatmap cell borders, while
31
- horizontal legends clear axis ticks and titles consistently in browser and server renders.
32
- - Physics charts participate in shared linked hover, while the clearer `UnitPileChart` and
33
- `PacketFlowChart` names ship with permanent aliases for their previous names.
34
- - The public model-evaluation reading room preserves the complete baseline and three targeted
35
- follow-up trials, including the unresolved Luna gauge result rather than smoothing it away.
20
+ ## What's New in 3.8.9
21
+
22
+ 3.8.9 sharpens Stream Frame reliability and the chart chrome shared by browser and server rendering:
23
+
24
+ - Zoom- and display-aware canvas resolution keeps Stream Frames crisp when browser zoom, display
25
+ scale, or monitor changes alter `devicePixelRatio`, without rebuilding retained scene geometry.
26
+ - XY axes now support per-axis `"nice"` / `"exact"` extent modes consistently across domain
27
+ padding, ticks, grids, client SVG, and static SSR — including top- and right-only axis configs.
28
+ - Adaptive time ticks accept IANA time zones, and multi-series tooltips have a first-class
29
+ configuration object with optional custom content.
30
+
31
+ ```jsx
32
+ import { LineChart } from "semiotic/xy"
33
+
34
+ <LineChart
35
+ data={salesData}
36
+ xAccessor="month"
37
+ yAccessor="revenue"
38
+ axisExtent="exact"
39
+ frameProps={{
40
+ axes: [{ orient: "left", extent: "nice" }]
41
+ }}
42
+ />
43
+ ```
44
+
45
+ Simple charts stay five lines:
36
46
 
37
47
  ```jsx
38
48
  import { LineChart } from "semiotic/xy"
@@ -394,35 +404,35 @@ The numbers below are **first-party artifact cost**: the gzip size of Semiotic's
394
404
 
395
405
  | Entry Point | gzip | What's inside |
396
406
  |---|---|---|
397
- | `semiotic/xy` | **145 KB** | LineChart, AreaChart, Scatterplot, Heatmap, + 8 more XY charts |
398
- | `semiotic/ordinal` | **120 KB** | BarChart, PieChart, BoxPlot, Histogram, + 11 more categorical charts |
399
- | `semiotic/network` | **126 KB** | ForceDirectedGraph, SankeyDiagram, ProcessSankey, Treemap, + 4 more |
400
- | `semiotic/geo` | **103 KB** | ChoroplethMap, FlowMap, DistanceCartogram, ProportionalSymbolMap |
401
- | `semiotic/realtime` | **153 KB** | RealtimeLineChart, RealtimeHistogram, + 4 streaming charts |
402
- | `semiotic/realtime/core` | **144 KB** | Streaming chart types, HOCs, and buffer helpers |
407
+ | `semiotic/xy` | **146 KB** | LineChart, AreaChart, Scatterplot, Heatmap, + 8 more XY charts |
408
+ | `semiotic/ordinal` | **122 KB** | BarChart, PieChart, BoxPlot, Histogram, + 11 more categorical charts |
409
+ | `semiotic/network` | **146 KB** | ForceDirectedGraph, SankeyDiagram, ProcessSankey, Treemap, + 4 more |
410
+ | `semiotic/geo` | **104 KB** | ChoroplethMap, FlowMap, DistanceCartogram, ProportionalSymbolMap |
411
+ | `semiotic/realtime` | **155 KB** | RealtimeLineChart, RealtimeHistogram, + 4 streaming charts |
412
+ | `semiotic/realtime/core` | **146 KB** | Streaming chart types, HOCs, and buffer helpers |
403
413
  | `semiotic/realtime/react` | **1 KB** | Stream status and synced push hooks |
404
- | `semiotic/server` | **210 KB** | renderChart, renderDashboard, renderToImage, renderToAnimatedGif |
405
- | `semiotic/server/node` | **210 KB** | renderChart, renderDashboard, renderToImage, renderToAnimatedGif |
406
- | `semiotic/server/edge` | **224 KB** | renderChart, renderChartWithEvidence, renderToStaticSVG, renderDashboard |
407
- | `semiotic/utils` | **83 KB** | ThemeProvider, numeric/accessibility audits, serialization — no chart components |
408
- | `semiotic/utils/core` | **82 KB** | Pure theme helpers, numeric/accessibility audits, and serialization |
414
+ | `semiotic/server` | **226 KB** | renderChart, renderDashboard, renderToImage, renderToAnimatedGif |
415
+ | `semiotic/server/node` | **226 KB** | renderChart, renderDashboard, renderToImage, renderToAnimatedGif |
416
+ | `semiotic/server/edge` | **241 KB** | renderChart, renderChartWithEvidence, renderToStaticSVG, renderDashboard |
417
+ | `semiotic/utils` | **86 KB** | ThemeProvider, numeric/accessibility audits, serialization — no chart components |
418
+ | `semiotic/utils/core` | **84 KB** | Pure theme helpers, numeric/accessibility audits, and serialization |
409
419
  | `semiotic/utils/react` | **6 KB** | ThemeProvider, useTheme, useReducedMotion, useHighContrast, useStreamStatus |
410
- | `semiotic/recipes` | **88 KB** | Pure layout functions (waffle, marimekko, flextree, dagre, …) |
411
- | `semiotic/recipes/core` | **87 KB** | Pure layout functions (waffle, marimekko, flextree, dagre, …) |
420
+ | `semiotic/recipes` | **90 KB** | Pure layout functions (waffle, marimekko, flextree, dagre, …) |
421
+ | `semiotic/recipes/core` | **89 KB** | Pure layout functions (waffle, marimekko, flextree, dagre, …) |
412
422
  | `semiotic/recipes/react` | **2 KB** | Glyph and React layout-selection helpers |
413
423
  | `semiotic/themes` | **7 KB** | Theme presets only (tufte, carbon, etc.) |
414
424
  | `semiotic/themes/core` | **7 KB** | Theme presets and token helpers |
415
425
  | `semiotic/themes/react` | **6 KB** | ThemeProvider/useTheme and hooks |
416
426
  | `semiotic/data` | **4 KB** | bin, rollup, groupBy, pivot, fromVegaLite |
417
427
  | `semiotic/value` | **8 KB** | BigNumber — focal-value KPI / scorecard (SingleValueFrame POC) |
418
- | `semiotic/physics` | **160 KB** | GaltonBoardChart, EventDropChart, UnitPileChart, CollisionSwarmChart, PacketFlowChart, PhysicsCustomChart |
428
+ | `semiotic/physics` | **161 KB** | GaltonBoardChart, EventDropChart, UnitPileChart, CollisionSwarmChart, PacketFlowChart, PhysicsCustomChart |
419
429
  | `semiotic/physics/matter` | **1 KB** | Matter.js migration helpers + optional peer guard (no chart components) |
420
430
  | `semiotic/physics/rapier` | **1 KB** | Rapier peer guard + adapter decision metadata (no chart components) |
421
- | `semiotic/ai` | **486 KB** | All schema-backed charts + validation — optimized for LLM code generation |
422
- | `semiotic/ai/core` | **80 KB** | suggestCharts, auditData, describeChart, repairChartConfig, tool adapters — no chart components |
431
+ | `semiotic/ai` | **507 KB** | All schema-backed charts + validation — optimized for LLM code generation |
432
+ | `semiotic/ai/core` | **81 KB** | suggestCharts, auditData, describeChart, repairChartConfig, tool adapters — no chart components |
423
433
  | `semiotic/controls` | **12 KB** | DirectManipulationControl, CircularBrush, MobileStandardControls, auditVisualizationControls — no frame renderer |
424
434
  | `semiotic/rough` | **4 KB** | Optional deterministic Rough.js paint backend — exact Semiotic geometry remains authoritative |
425
- | `semiotic` | **389 KB** | Everything below (full bundle) |
435
+ | `semiotic` | **410 KB** | Everything below (full bundle) |
426
436
 
427
437
  <!-- semiotic-bundle-sizes:end -->
428
438
 
@@ -443,29 +453,29 @@ Method: fresh `npm pack --ignore-scripts` tarball → temporary consumer → min
443
453
 
444
454
  | Public named import | Runtime | gzip cold-consumer bundle |
445
455
  |---|---:|---:|
446
- | `import { LineChart } from "semiotic"` | browser | **153.1 KiB** |
447
- | `import { LineChart } from "semiotic/xy"` | browser | **153.3 KiB** |
448
- | `import { BarChart } from "semiotic/ordinal"` | browser | **123.5 KiB** |
449
- | `import { SankeyDiagram } from "semiotic/network"` | browser | **128.1 KiB** |
450
- | `import { RealtimeLineChart } from "semiotic/realtime"` | browser | **122.8 KiB** |
451
- | `import { RingBuffer } from "semiotic/realtime/core"` | browser | **170.6 KiB** |
456
+ | `import { LineChart } from "semiotic"` | browser | **154.2 KiB** |
457
+ | `import { LineChart } from "semiotic/xy"` | browser | **154.4 KiB** |
458
+ | `import { BarChart } from "semiotic/ordinal"` | browser | **124.5 KiB** |
459
+ | `import { SankeyDiagram } from "semiotic/network"` | browser | **147.0 KiB** |
460
+ | `import { RealtimeLineChart } from "semiotic/realtime"` | browser | **123.9 KiB** |
461
+ | `import { RingBuffer } from "semiotic/realtime/core"` | browser | **171.5 KiB** |
452
462
  | `import { useStreamStatus } from "semiotic/realtime/react"` | browser | **0.6 KiB** |
453
- | `import { GaltonBoardChart } from "semiotic/physics"` | browser | **134.2 KiB** |
463
+ | `import { GaltonBoardChart } from "semiotic/physics"` | browser | **134.9 KiB** |
454
464
  | `import { MATTER_PHYSICS_CAPABILITIES } from "semiotic/physics/matter"` | browser | **0.2 KiB** |
455
465
  | `import { RAPIER_PHYSICS_CAPABILITIES } from "semiotic/physics/rapier"` | browser | **0.2 KiB** |
456
- | `import { renderChart } from "semiotic/server"` | node | **269.8 KiB** |
457
- | `import { generateFrameSVGs } from "semiotic/server/edge"` | node | **164.5 KiB** |
458
- | `import { renderToImage } from "semiotic/server/node"` | node | **270.2 KiB** |
459
- | `import { suggestCharts } from "semiotic/ai"` | browser | **193.1 KiB** |
460
- | `import { suggestCharts } from "semiotic/ai/core"` | browser | **36.3 KiB** |
466
+ | `import { renderChart } from "semiotic/server"` | node | **287.0 KiB** |
467
+ | `import { generateFrameSVGs } from "semiotic/server/edge"` | node | **166.1 KiB** |
468
+ | `import { renderToImage } from "semiotic/server/node"` | node | **287.4 KiB** |
469
+ | `import { suggestCharts } from "semiotic/ai"` | browser | **194.2 KiB** |
470
+ | `import { suggestCharts } from "semiotic/ai/core"` | browser | **36.5 KiB** |
461
471
  | `import { bin } from "semiotic/data"` | browser | **0.4 KiB** |
462
- | `import { ChoroplethMap } from "semiotic/geo"` | browser | **108.5 KiB** |
472
+ | `import { ChoroplethMap } from "semiotic/geo"` | browser | **109.3 KiB** |
463
473
  | `import { createRoughRenderMode } from "semiotic/rough"` | browser | **3.4 KiB** |
464
474
  | `import { resolveThemePreset } from "semiotic/themes"` | browser | **3.4 KiB** |
465
475
  | `import { resolveThemePreset } from "semiotic/themes/core"` | browser | **3.4 KiB** |
466
476
  | `import { ThemeProvider } from "semiotic/themes/react"` | browser | **4.4 KiB** |
467
- | `import { validateProps } from "semiotic/utils"` | browser | **8.2 KiB** |
468
- | `import { smartTickFormat } from "semiotic/utils/core"` | browser | **0.7 KiB** |
477
+ | `import { validateProps } from "semiotic/utils"` | browser | **8.6 KiB** |
478
+ | `import { smartTickFormat } from "semiotic/utils/core"` | browser | **0.9 KiB** |
469
479
  | `import { useReducedMotion } from "semiotic/utils/react"` | browser | **0.3 KiB** |
470
480
  | `import { waffleLayout } from "semiotic/recipes"` | browser | **2.5 KiB** |
471
481
  | `import { waffleLayout } from "semiotic/recipes/core"` | browser | **2.5 KiB** |
@@ -3645,7 +3645,12 @@ var require_fast_uri = __commonJS({
3645
3645
  }
3646
3646
  function resolve2(baseURI, relativeURI, options) {
3647
3647
  const schemelessOptions = options ? Object.assign({ scheme: "null" }, options) : { scheme: "null" };
3648
- const resolved = resolveComponent(parse3(baseURI, schemelessOptions), parse3(relativeURI, schemelessOptions), schemelessOptions, true);
3648
+ const { parsed: baseParsed, malformedAuthorityOrPort: baseMalformed } = parseWithStatus(baseURI, schemelessOptions);
3649
+ const { parsed: relativeParsed, malformedAuthorityOrPort: relativeMalformed } = parseWithStatus(relativeURI, schemelessOptions);
3650
+ if (baseMalformed || relativeMalformed) {
3651
+ throw new Error(baseParsed.error || relativeParsed.error || "URI is malformed.");
3652
+ }
3653
+ const resolved = resolveComponent(baseParsed, relativeParsed, schemelessOptions, true);
3649
3654
  schemelessOptions.skipEscape = true;
3650
3655
  return serialize(resolved, schemelessOptions);
3651
3656
  }
@@ -3770,6 +3775,8 @@ var require_fast_uri = __commonJS({
3770
3775
  return uriTokens.join("");
3771
3776
  }
3772
3777
  var URI_PARSE = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
3778
+ var AUTHORITY_PREFIX = /^(?:[^#/:?]+:)?\/\/([^/?#]*)/;
3779
+ var AUTHORITY_INTRODUCER_REGION = /^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;
3773
3780
  function getParseError(parsed, matches) {
3774
3781
  if (matches[2] !== void 0 && parsed.path && parsed.path[0] !== "/") {
3775
3782
  return 'URI path must start with "/" when authority is present.';
@@ -3799,6 +3806,25 @@ var require_fast_uri = __commonJS({
3799
3806
  uri = "//" + uri;
3800
3807
  }
3801
3808
  }
3809
+ const authorityMatch = uri.match(AUTHORITY_PREFIX);
3810
+ if (authorityMatch !== null && authorityMatch[1].indexOf("\\") !== -1) {
3811
+ parsed.error = "URI authority must not contain a literal backslash.";
3812
+ malformedAuthorityOrPort = true;
3813
+ }
3814
+ const introducerMatch = uri.match(AUTHORITY_INTRODUCER_REGION);
3815
+ if (introducerMatch !== null) {
3816
+ const region = introducerMatch[1];
3817
+ const normalizedRegion = region.replace(/[\t\n\r]/g, "");
3818
+ if (normalizedRegion.length >= 2) {
3819
+ if (normalizedRegion.slice(0, 2) !== "//") {
3820
+ parsed.error = parsed.error || "URI authority must not contain a literal backslash.";
3821
+ malformedAuthorityOrPort = true;
3822
+ } else if (region.length !== normalizedRegion.length) {
3823
+ parsed.error = parsed.error || "URI authority introducer must not contain whitespace.";
3824
+ malformedAuthorityOrPort = true;
3825
+ }
3826
+ }
3827
+ }
3802
3828
  const matches = uri.match(URI_PARSE);
3803
3829
  if (matches) {
3804
3830
  parsed.scheme = matches[1];
@@ -3842,7 +3868,7 @@ var require_fast_uri = __commonJS({
3842
3868
  if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {
3843
3869
  if (parsed.host && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
3844
3870
  try {
3845
- parsed.host = URL.domainToASCII(parsed.host.toLowerCase());
3871
+ parsed.host = new URL("http://" + parsed.host).hostname;
3846
3872
  } catch (e) {
3847
3873
  parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e;
3848
3874
  }