semiotic 3.9.2 → 3.10.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.
Files changed (452) hide show
  1. package/README.md +99 -74
  2. package/agent-skill/semiotic-charts/SKILL.md +13 -7
  3. package/ai/artifact-contract-reference.md +408 -0
  4. package/ai/artifact-surface-inventory.json +5586 -0
  5. package/ai/behaviorContracts.cjs +24 -2
  6. package/ai/cli.js +480 -56
  7. package/ai/dist/mcp-server.js +68 -68
  8. package/ai/examples.md +1 -1
  9. package/ai/reference.md +31 -14
  10. package/ai/schema.json +1868 -438
  11. package/ai/surface-manifest.json +11 -4
  12. package/ai/system-prompt.md +2 -0
  13. package/ai/task-packets/compare-category-totals.json +301 -0
  14. package/ai/task-packets/compare-category-totals.md +188 -0
  15. package/ai/task-packets/correct-published-chart.json +271 -0
  16. package/ai/task-packets/correct-published-chart.md +597 -0
  17. package/ai/task-packets/index.json +40 -0
  18. package/ai/task-packets/update-live-chart.json +289 -0
  19. package/ai/task-packets/update-live-chart.md +424 -0
  20. package/dist/c-2N7IU2NY.min.js +1 -0
  21. package/dist/c-2WK7YJLL.min.js +1 -0
  22. package/dist/c-33QOXEUG.min.js +1 -0
  23. package/dist/c-42PLDTX7.min.js +1 -0
  24. package/dist/c-447VIMRO.min.js +1 -0
  25. package/dist/c-4FN7Q6VQ.min.js +1 -0
  26. package/dist/c-553QUDKA.min.js +1 -0
  27. package/dist/c-55BAJ333.min.js +1 -0
  28. package/dist/c-7242NXSG.min.js +1 -0
  29. package/dist/c-7EGHJU2F.min.js +1 -0
  30. package/dist/c-7HP7MB2I.min.js +1 -0
  31. package/dist/c-7NBU5ZKS.min.js +1 -0
  32. package/dist/c-AFBSWT77.min.js +1 -0
  33. package/dist/c-AJ7EC32V.min.js +1 -0
  34. package/dist/c-AQADQNY7.min.js +1 -0
  35. package/dist/c-ATM475SA.min.js +1 -0
  36. package/dist/c-AVO3Q7T7.min.js +1 -0
  37. package/dist/c-AZKPVBOC.min.js +1 -0
  38. package/dist/c-BNFJMDHN.min.js +1 -0
  39. package/dist/c-BNG5ECK5.min.js +1 -0
  40. package/dist/c-BOHCQILI.min.js +1 -0
  41. package/dist/c-CCTGN5CK.min.js +1 -0
  42. package/dist/c-CPSPZH6A.min.js +1 -0
  43. package/dist/c-CPV4N35K.min.js +1 -0
  44. package/dist/c-D6HAAPTX.min.js +1 -0
  45. package/dist/c-DE5Q3U2X.min.js +1 -0
  46. package/dist/c-DK662R77.min.js +1 -0
  47. package/dist/c-DY2676CR.min.js +1 -0
  48. package/dist/c-E32M6XW5.min.js +1 -0
  49. package/dist/c-E4JDJH4I.min.js +1 -0
  50. package/dist/c-E7I2L7CU.min.js +1 -0
  51. package/dist/c-EBOQ7ER7.min.js +1 -0
  52. package/dist/c-ELDWAO2V.min.js +1 -0
  53. package/dist/c-EUBTECGM.min.js +1 -0
  54. package/dist/c-GNTXRXRN.min.js +1 -0
  55. package/dist/c-GSZRZRD6.min.js +1 -0
  56. package/dist/c-GWX7JGMF.min.js +1 -0
  57. package/dist/c-GXV3C3MO.min.js +1 -0
  58. package/dist/c-HHTK2R75.min.js +1 -0
  59. package/dist/c-HLLFJYTY.min.js +1 -0
  60. package/dist/c-HPOYKCCG.min.js +1 -0
  61. package/dist/c-HXDKPIKR.min.js +1 -0
  62. package/dist/c-I4QJ6YLM.min.js +1 -0
  63. package/dist/c-IDJV3CZK.min.js +1 -0
  64. package/dist/c-ITKX3RC5.min.js +1 -0
  65. package/dist/c-JG2JCQLP.min.js +1 -0
  66. package/dist/c-JLGRHXGZ.min.js +1 -0
  67. package/dist/c-JO2UGTCP.min.js +1 -0
  68. package/dist/c-JUKIWTBJ.min.js +1 -0
  69. package/dist/c-KCRJGUHP.min.js +1 -0
  70. package/dist/c-LMGSSD2E.min.js +1 -0
  71. package/dist/c-LYQMZMZQ.min.js +1 -0
  72. package/dist/c-LYVKDBQJ.min.js +1 -0
  73. package/dist/c-MVR3RWF3.min.js +1 -0
  74. package/dist/c-MXCP7GNZ.min.js +1 -0
  75. package/dist/c-NG7BLZTR.min.js +1 -0
  76. package/dist/c-NYZ2QNAM.min.js +1 -0
  77. package/dist/c-OO5QLMJC.min.js +1 -0
  78. package/dist/c-OOVX2JPQ.min.js +1 -0
  79. package/dist/c-ORLEBW72.min.js +1 -0
  80. package/dist/c-P65V6HLO.min.js +1 -0
  81. package/dist/c-PP6VY3QU.min.js +1 -0
  82. package/dist/c-PRIKOLTE.min.js +1 -0
  83. package/dist/c-PSNI6KAZ.min.js +1 -0
  84. package/dist/c-PYNW54D2.min.js +1 -0
  85. package/dist/c-QA3HMQJP.min.js +1 -0
  86. package/dist/c-ROEHCIGV.min.js +1 -0
  87. package/dist/c-S3AZX5PP.min.js +1 -0
  88. package/dist/c-T2V7O2LO.min.js +1 -0
  89. package/dist/c-TIXX5CAU.min.js +1 -0
  90. package/dist/c-TKG2NP7G.min.js +1 -0
  91. package/dist/c-VJTDST2R.min.js +1 -0
  92. package/dist/c-VXLOLYTO.min.js +1 -0
  93. package/dist/c-W4ZUKSEQ.min.js +1 -0
  94. package/dist/c-WH2O53VI.min.js +1 -0
  95. package/dist/c-WNGH47HF.min.js +1 -0
  96. package/dist/c-WUWXGQYA.min.js +1 -0
  97. package/dist/c-XDQKXPX4.min.js +1 -0
  98. package/dist/{c-CKLIFCGN.min.js → c-XSB27XPS.min.js} +1 -1
  99. package/dist/c-YDECTEUW.min.js +1 -0
  100. package/dist/c-YF3YKVQI.min.js +1 -0
  101. package/dist/c-YLZIV3VS.min.js +1 -0
  102. package/dist/c-ZYPXQF7B.min.js +1 -0
  103. package/dist/components/Annotation.d.ts +2 -1
  104. package/dist/components/ai/chartRecipeRegistry.d.ts +6 -1
  105. package/dist/components/ai/chartRecipes.d.ts +4 -0
  106. package/dist/components/ai/describePhysicsProjection.d.ts +18 -0
  107. package/dist/components/ai/describePhysicsSource.d.ts +13 -0
  108. package/dist/components/artifact/ArtifactInspector.d.ts +26 -0
  109. package/dist/components/artifact/ArtifactInspectorContextSections.d.ts +18 -0
  110. package/dist/components/artifact/artifactContractDiff.d.ts +8 -0
  111. package/dist/components/artifact/artifactInspectorSummary.d.ts +53 -0
  112. package/dist/components/artifact/artifactRevision.d.ts +54 -0
  113. package/dist/components/artifact/artifactTestFixtures.d.ts +17 -0
  114. package/dist/components/artifact/attachmentAudit.d.ts +13 -0
  115. package/dist/components/artifact/claimCorrections.d.ts +3 -0
  116. package/dist/components/artifact/claimGraph.d.ts +5 -0
  117. package/dist/components/artifact/claimLifecycle.d.ts +32 -0
  118. package/dist/components/artifact/claims.d.ts +24 -0
  119. package/dist/components/artifact/collection.d.ts +10 -0
  120. package/dist/components/artifact/collectionCorrectionScope.d.ts +4 -0
  121. package/dist/components/artifact/collectionImpact.d.ts +11 -0
  122. package/dist/components/artifact/collectionLineage.d.ts +3 -0
  123. package/dist/components/artifact/collectionOperations.d.ts +8 -0
  124. package/dist/components/artifact/collectionPolicy.d.ts +22 -0
  125. package/dist/components/artifact/collectionTypes.d.ts +117 -0
  126. package/dist/components/artifact/configurationRepair.d.ts +8 -0
  127. package/dist/components/artifact/contract.d.ts +30 -0
  128. package/dist/components/artifact/evaluateArtifact.d.ts +12 -0
  129. package/dist/components/artifact/evaluateArtifactTypes.d.ts +78 -0
  130. package/dist/components/artifact/evaluationPresentation.d.ts +9 -0
  131. package/dist/components/artifact/evidenceSample.d.ts +8 -0
  132. package/dist/components/artifact/exportPaths.d.ts +8 -0
  133. package/dist/components/artifact/fieldPolicies.d.ts +12 -0
  134. package/dist/components/artifact/fingerprint.d.ts +36 -0
  135. package/dist/components/artifact/grounding.d.ts +51 -0
  136. package/dist/components/artifact/groundingBudget.d.ts +38 -0
  137. package/dist/components/artifact/hostTransfer.d.ts +13 -0
  138. package/dist/components/artifact/identity.d.ts +19 -0
  139. package/dist/components/artifact/inheritance.d.ts +48 -0
  140. package/dist/components/artifact/inheritanceIntegrity.d.ts +3 -0
  141. package/dist/components/artifact/jsonCompatibility.d.ts +2 -0
  142. package/dist/components/artifact/obligations.d.ts +3 -0
  143. package/dist/components/artifact/policies.d.ts +45 -0
  144. package/dist/components/artifact/policyRelations.d.ts +3 -0
  145. package/dist/components/artifact/recordProjection.d.ts +7 -0
  146. package/dist/components/artifact/representation.d.ts +50 -0
  147. package/dist/components/artifact/serialization.d.ts +40 -0
  148. package/dist/components/artifact/temporal.d.ts +32 -0
  149. package/dist/components/artifact/temporalAdapters.d.ts +75 -0
  150. package/dist/components/artifact/temporalAuditHelpers.d.ts +12 -0
  151. package/dist/components/artifact/temporalPresentation.d.ts +8 -0
  152. package/dist/components/artifact/types.d.ts +341 -0
  153. package/dist/components/artifact/validation.d.ts +13 -0
  154. package/dist/components/artifact/validationFieldStatus.d.ts +7 -0
  155. package/dist/components/artifact/validationPrimitives.d.ts +24 -0
  156. package/dist/components/artifact/validationSurfaces.d.ts +7 -0
  157. package/dist/components/artifact/validationTemporal.d.ts +3 -0
  158. package/dist/components/charts/geo/FlowMap.d.ts +7 -0
  159. package/dist/components/charts/geo/flowMapLineStyle.d.ts +18 -0
  160. package/dist/components/charts/ordinal/DonutChart.d.ts +2 -0
  161. package/dist/components/charts/ordinal/FunnelChart.d.ts +2 -0
  162. package/dist/components/charts/ordinal/GroupedBarChart.d.ts +6 -0
  163. package/dist/components/charts/ordinal/PieChart.d.ts +2 -0
  164. package/dist/components/charts/ordinal/RadarChart.d.ts +2 -0
  165. package/dist/components/charts/ordinal/StackedBarChart.d.ts +6 -0
  166. package/dist/components/charts/physics/CollisionSwarmChart.d.ts +1 -1
  167. package/dist/components/charts/physics/EventDropChart.d.ts +3 -1
  168. package/dist/components/charts/physics/GaltonBoardChart.d.ts +4 -2
  169. package/dist/components/charts/physics/ProcessFlowChart.d.ts +6 -0
  170. package/dist/components/charts/physics/UnitPileChart.d.ts +2 -1
  171. package/dist/components/charts/physics/collisionSwarmPacking.d.ts +14 -0
  172. package/dist/components/charts/physics/collisionSwarmPhysics.d.ts +1 -0
  173. package/dist/components/charts/physics/eventDropAdmission.d.ts +32 -0
  174. package/dist/components/charts/physics/eventDropPhysics.d.ts +22 -1
  175. package/dist/components/charts/physics/galtonBoardPhysics.d.ts +2 -9
  176. package/dist/components/charts/physics/physicsChartReconcile.d.ts +4 -0
  177. package/dist/components/charts/physics/physicsChartUtils.d.ts +1 -1
  178. package/dist/components/charts/physics/physicsGaltonData.d.ts +10 -0
  179. package/dist/components/charts/physics/physicsHocHandle.d.ts +2 -0
  180. package/dist/components/charts/physics/physicsPileData.d.ts +11 -0
  181. package/dist/components/charts/physics/physicsPilePhysics.d.ts +5 -12
  182. package/dist/components/charts/physics/physicsProjectionOverlays.d.ts +1 -1
  183. package/dist/components/charts/physics/physicsSourceRows.d.ts +8 -0
  184. package/dist/components/charts/physics/usePhysicsChartData.d.ts +19 -0
  185. package/dist/components/charts/realtime/RealtimeHeatmap.d.ts +4 -0
  186. package/dist/components/charts/realtime/RealtimeHistogram.d.ts +14 -6
  187. package/dist/components/charts/realtime/RealtimeLineChart.d.ts +4 -0
  188. package/dist/components/charts/realtime/RealtimeSwarmChart.d.ts +4 -0
  189. package/dist/components/charts/realtime/RealtimeWaterfallChart.d.ts +4 -0
  190. package/dist/components/charts/realtime/realtimeAccessors.d.ts +4 -0
  191. package/dist/components/charts/realtime/realtimeChartRuntime.d.ts +8 -7
  192. package/dist/components/charts/realtime/realtimeChartTypes.d.ts +7 -0
  193. package/dist/components/charts/realtime/temporalHistogramConfig.d.ts +17 -11
  194. package/dist/components/charts/shared/GaugeReadout.d.ts +9 -0
  195. package/dist/components/charts/shared/ThresholdAnnotation.d.ts +18 -0
  196. package/dist/components/charts/shared/ThresholdEndCap.d.ts +7 -0
  197. package/dist/components/charts/shared/auditAccessibilityText.d.ts +4 -2
  198. package/dist/components/charts/shared/numericTickFormatter.d.ts +2 -0
  199. package/dist/components/charts/shared/radialCenterContent.d.ts +10 -0
  200. package/dist/components/charts/shared/tooltipUtils.d.ts +1 -1
  201. package/dist/components/charts/shared/useChartLegend.d.ts +4 -0
  202. package/dist/components/charts/shared/useXYPointStyle.d.ts +2 -0
  203. package/dist/components/charts/xy/BubbleChart.d.ts +7 -0
  204. package/dist/components/charts/xy/CandlestickChart.d.ts +7 -0
  205. package/dist/components/charts/xy/DifferenceChart.d.ts +7 -0
  206. package/dist/components/charts/xy/MinimapChart.d.ts +7 -0
  207. package/dist/components/charts/xy/MultiAxisLineChart.d.ts +7 -0
  208. package/dist/components/charts/xy/ScatterplotMatrix.d.ts +6 -0
  209. package/dist/components/charts/xy/WaterfallChart.d.ts +8 -0
  210. package/dist/components/charts/xy/differenceMarkStyle.d.ts +28 -0
  211. package/dist/components/charts/xy/multiAxisFields.d.ts +23 -0
  212. package/dist/components/charts/xy/scatterplotMatrixCells.d.ts +50 -0
  213. package/dist/components/evidence/chartEvidenceEnvelope.d.ts +16 -8
  214. package/dist/components/evidence/evidenceEnvelopeInput.d.ts +8 -0
  215. package/dist/components/evidence/evidenceEnvelopeValidation.d.ts +11 -0
  216. package/dist/components/evidence/evidenceGate.d.ts +3 -1
  217. package/dist/components/evidence/renderedSceneHash.d.ts +23 -0
  218. package/dist/components/evidence/stableJsonHash.d.ts +4 -0
  219. package/dist/components/export/chartConfig.d.ts +40 -5
  220. package/dist/components/export/chartConfigArtifact.d.ts +6 -0
  221. package/dist/components/legendLayout.d.ts +18 -0
  222. package/dist/components/legendStyles.d.ts +4 -0
  223. package/dist/components/recipes/firstAvailableTrack.d.ts +17 -0
  224. package/dist/components/recipes/intervals.d.ts +1 -1
  225. package/dist/components/semiotic-ai-core.d.ts +33 -22
  226. package/dist/components/semiotic-ai.d.ts +15 -3
  227. package/dist/components/semiotic-artifact-react.d.ts +10 -0
  228. package/dist/components/semiotic-artifact.d.ts +23 -0
  229. package/dist/components/semiotic-experimental.d.ts +1 -1
  230. package/dist/components/semiotic-physics.d.ts +4 -4
  231. package/dist/components/semiotic-text.d.ts +2 -0
  232. package/dist/components/semiotic-utils-core.d.ts +18 -18
  233. package/dist/components/semiotic.d.ts +3 -3
  234. package/dist/components/server/renderEvidence.d.ts +12 -0
  235. package/dist/components/server/renderToStaticSVG.d.ts +3 -0
  236. package/dist/components/server/staticSVGChrome.d.ts +1 -4
  237. package/dist/components/server/staticXYAxisTicks.d.ts +2 -38
  238. package/dist/components/server/staticXYGrid.d.ts +1 -1
  239. package/dist/components/server/svgSizing.d.ts +6 -0
  240. package/dist/components/shared/svgRoot.d.ts +17 -0
  241. package/dist/components/store/selectionProvenance.d.ts +6 -0
  242. package/dist/components/stream/GeoSVGOverlay.d.ts +4 -0
  243. package/dist/components/stream/NetworkSVGOverlay.d.ts +4 -0
  244. package/dist/components/stream/OrdinalSVGOverlay.d.ts +4 -0
  245. package/dist/components/stream/SVGOverlay.d.ts +4 -0
  246. package/dist/components/stream/SceneToSVG.d.ts +4 -19
  247. package/dist/components/stream/SceneToSVGXY.d.ts +13 -0
  248. package/dist/components/stream/StreamGeoFrame.d.ts +1 -2
  249. package/dist/components/stream/StreamOrdinalFrame.d.ts +1 -2
  250. package/dist/components/stream/XYGrid.d.ts +11 -0
  251. package/dist/components/stream/axisTickUtils.d.ts +0 -1
  252. package/dist/components/stream/hitTestUtils.d.ts +2 -0
  253. package/dist/components/stream/overlayAccessibleText.d.ts +18 -0
  254. package/dist/components/stream/physics/PhysicsControllers.d.ts +1 -1
  255. package/dist/components/stream/physics/PhysicsKernel.d.ts +9 -0
  256. package/dist/components/stream/physics/PhysicsPipelineStore.d.ts +5 -4
  257. package/dist/components/stream/physics/PhysicsPipelineTypes.d.ts +9 -0
  258. package/dist/components/stream/physics/StreamPhysicsTypes.d.ts +3 -0
  259. package/dist/components/stream/physics/physicsCanvasCoordinates.d.ts +5 -0
  260. package/dist/components/stream/physics/physicsFixedPosition.d.ts +16 -0
  261. package/dist/components/stream/physics/physicsKernelCloning.d.ts +6 -0
  262. package/dist/components/stream/physics/physicsPipelineObservations.d.ts +2 -0
  263. package/dist/components/stream/physics/physicsPipelineSettle.d.ts +15 -9
  264. package/dist/components/stream/physics/physicsRegionRuntime.d.ts +8 -17
  265. package/dist/components/stream/physics/physicsSemanticUI.d.ts +9 -0
  266. package/dist/components/stream/pipelineConfig.d.ts +4 -0
  267. package/dist/components/stream/pipelineStoreUpdateResults.d.ts +1 -1
  268. package/dist/components/stream/resolveXYAxes.d.ts +13 -0
  269. package/dist/components/stream/sceneToSVGShared.d.ts +2 -1
  270. package/dist/components/stream/seriesGeometry.d.ts +13 -0
  271. package/dist/components/stream/streamEncodingTypes.d.ts +53 -0
  272. package/dist/components/stream/types.d.ts +4 -53
  273. package/dist/components/stream/useGeoFrameHandle.d.ts +16 -0
  274. package/dist/components/stream/useOrdinalFrameHandle.d.ts +15 -0
  275. package/dist/components/stream/useXYFrameHandle.d.ts +15 -0
  276. package/dist/components/stream/xyAxisTicks.d.ts +25 -0
  277. package/dist/components/stream/xyDateTicks.d.ts +3 -2
  278. package/dist/components/stream/xyFrameAxisTypes.d.ts +2 -0
  279. package/dist/components/stream/xySceneBuilders/ribbonScene.d.ts +1 -1
  280. package/dist/components/stream/xySceneBuilders/types.d.ts +1 -0
  281. package/dist/components/text/annotationTextLayout.d.ts +28 -0
  282. package/dist/components/text/pretextAnnotationLayout.d.ts +29 -0
  283. package/dist/components/text/usePretextAnnotations.d.ts +12 -0
  284. package/dist/controls.module.min.js +1 -1
  285. package/dist/geo.min.js +1 -1
  286. package/dist/geo.module.min.js +1 -1
  287. package/dist/network.module.min.js +1 -1
  288. package/dist/ordinal.module.min.js +1 -1
  289. package/dist/physics-matter.min.js +1 -1
  290. package/dist/physics-matter.module.min.js +1 -1
  291. package/dist/physics-rapier.min.js +1 -1
  292. package/dist/physics-rapier.module.min.js +1 -1
  293. package/dist/physics.module.min.js +1 -1
  294. package/dist/physicsWorker.js +1 -1
  295. package/dist/processSankeyLayoutWorker.js +1 -1
  296. package/dist/rough.min.js +1 -1
  297. package/dist/rough.module.min.js +1 -1
  298. package/dist/semiotic-access.module.min.js +1 -1
  299. package/dist/semiotic-ai-artifact-policy-constants.module.min.js +2 -0
  300. package/dist/semiotic-ai-core.d.ts +33 -22
  301. package/dist/semiotic-ai-core.min.js +1 -1
  302. package/dist/semiotic-ai-core.module.min.js +1 -1
  303. package/dist/semiotic-ai-hash-primitives.module.min.js +2 -0
  304. package/dist/semiotic-ai.d.ts +15 -3
  305. package/dist/semiotic-ai.module.min.js +1 -1
  306. package/dist/semiotic-artifact-react.d.ts +10 -0
  307. package/dist/semiotic-artifact-react.min.js +2 -0
  308. package/dist/semiotic-artifact-react.module.min.js +2 -0
  309. package/dist/semiotic-artifact.d.ts +23 -0
  310. package/dist/semiotic-artifact.min.js +1 -0
  311. package/dist/semiotic-artifact.module.min.js +1 -0
  312. package/dist/semiotic-client-cjs-shared.min.js +1 -1
  313. package/dist/semiotic-client-glyph.module.min.js +1 -1
  314. package/dist/semiotic-client-responsive.module.min.js +1 -1
  315. package/dist/semiotic-client-shared.module.min.js +1 -1
  316. package/dist/semiotic-custom-layout-selection-cjs-shared.min.js +1 -1
  317. package/dist/semiotic-data.min.js +1 -1
  318. package/dist/semiotic-data.module.min.js +1 -1
  319. package/dist/semiotic-evidence.min.js +1 -1
  320. package/dist/semiotic-evidence.module.min.js +1 -1
  321. package/dist/semiotic-experimental-auxiliary.module.min.js +1 -1
  322. package/dist/semiotic-experimental-node-auxiliary.module.min.js +1 -1
  323. package/dist/semiotic-experimental-react-shared.module.min.js +1 -1
  324. package/dist/semiotic-experimental-vacp.min.js +1 -1
  325. package/dist/semiotic-experimental-vacp.module.min.js +1 -1
  326. package/dist/semiotic-experimental.d.ts +1 -1
  327. package/dist/semiotic-line.module.min.js +1 -1
  328. package/dist/semiotic-physics.d.ts +4 -4
  329. package/dist/semiotic-realtime-core.module.min.js +1 -1
  330. package/dist/semiotic-realtime-react.module.min.js +1 -1
  331. package/dist/semiotic-recipes-core-cjs-base.min.js +1 -1
  332. package/dist/semiotic-recipes-core.module.min.js +1 -1
  333. package/dist/semiotic-recipes-geo-cjs.min.js +1 -1
  334. package/dist/semiotic-recipes-react.min.js +1 -1
  335. package/dist/semiotic-server-edge-node.module.min.js +1 -1
  336. package/dist/semiotic-server-edge.min.js +1 -1
  337. package/dist/semiotic-server-edge.module.min.js +1 -1
  338. package/dist/semiotic-server-node.min.js +1 -1
  339. package/dist/semiotic-server-node.module.min.js +1 -1
  340. package/dist/semiotic-text.d.ts +2 -0
  341. package/dist/semiotic-text.min.js +2 -0
  342. package/dist/semiotic-text.module.min.js +2 -0
  343. package/dist/semiotic-themes-core.min.js +1 -1
  344. package/dist/semiotic-themes-core.module.min.js +1 -1
  345. package/dist/semiotic-themes.min.js +1 -1
  346. package/dist/semiotic-themes.module.min.js +1 -1
  347. package/dist/semiotic-utils-core.d.ts +18 -18
  348. package/dist/semiotic-utils-core.min.js +1 -1
  349. package/dist/semiotic-utils-core.module.min.js +1 -1
  350. package/dist/semiotic-value.module.min.js +1 -1
  351. package/dist/semiotic.d.ts +3 -3
  352. package/dist/semiotic.module.min.js +1 -1
  353. package/dist/server.min.js +1 -1
  354. package/dist/server.module.min.js +1 -1
  355. package/dist/xy.module.min.js +1 -1
  356. package/package.json +55 -14
  357. package/spec/README.md +8 -3
  358. package/spec/v0.1/artifact-contract.schema.json +2299 -0
  359. package/spec/v0.1/examples/artifact-contract-full.json +369 -0
  360. package/spec/v0.1/examples/artifact-contract-unknown-state.json +46 -0
  361. package/dist/c-3BLJEQNG.min.js +0 -1
  362. package/dist/c-3SCUN5HI.min.js +0 -1
  363. package/dist/c-3VVKFA4M.min.js +0 -1
  364. package/dist/c-43TJZS3F.min.js +0 -1
  365. package/dist/c-4DTZPSUD.min.js +0 -1
  366. package/dist/c-4ES5367Y.min.js +0 -1
  367. package/dist/c-52TEGIUJ.min.js +0 -1
  368. package/dist/c-54IRWOGM.min.js +0 -1
  369. package/dist/c-5D2S4RMI.min.js +0 -1
  370. package/dist/c-5JWCTX3G.min.js +0 -1
  371. package/dist/c-6CMMSN6N.min.js +0 -1
  372. package/dist/c-6HRB2L7H.min.js +0 -1
  373. package/dist/c-6O5EVOPH.min.js +0 -1
  374. package/dist/c-7W4SV36A.min.js +0 -1
  375. package/dist/c-A4WRGZFX.min.js +0 -1
  376. package/dist/c-AG7WWVIH.min.js +0 -1
  377. package/dist/c-AH6J4MTN.min.js +0 -1
  378. package/dist/c-AKAF6JAD.min.js +0 -1
  379. package/dist/c-ALYR5LKK.min.js +0 -1
  380. package/dist/c-BBKITSXB.min.js +0 -1
  381. package/dist/c-BYDPC44I.min.js +0 -1
  382. package/dist/c-CFFIU2MW.min.js +0 -1
  383. package/dist/c-CGNHBHCE.min.js +0 -1
  384. package/dist/c-CJYSXIFV.min.js +0 -1
  385. package/dist/c-CZF7MV67.min.js +0 -1
  386. package/dist/c-D53OKBSY.min.js +0 -1
  387. package/dist/c-DADXPJXV.min.js +0 -1
  388. package/dist/c-DBQ2V7CH.min.js +0 -1
  389. package/dist/c-DPMVAUAW.min.js +0 -1
  390. package/dist/c-ECJCKLYY.min.js +0 -1
  391. package/dist/c-EGATGOWJ.min.js +0 -1
  392. package/dist/c-EGR6VYBW.min.js +0 -1
  393. package/dist/c-ESNR43AN.min.js +0 -1
  394. package/dist/c-F3LIKINL.min.js +0 -1
  395. package/dist/c-F5ZB5GJ6.min.js +0 -1
  396. package/dist/c-G36WS6LN.min.js +0 -1
  397. package/dist/c-G3VYMHKE.min.js +0 -1
  398. package/dist/c-GGISSW5E.min.js +0 -1
  399. package/dist/c-GR6MOEQC.min.js +0 -1
  400. package/dist/c-GSVCN34B.min.js +0 -1
  401. package/dist/c-GYOQCEFP.min.js +0 -1
  402. package/dist/c-H3DNMTCC.min.js +0 -1
  403. package/dist/c-I6J3FEZE.min.js +0 -1
  404. package/dist/c-IGH6MGJ5.min.js +0 -1
  405. package/dist/c-II2EEAJN.min.js +0 -1
  406. package/dist/c-IUHFPMHD.min.js +0 -1
  407. package/dist/c-J6M4JHRS.min.js +0 -1
  408. package/dist/c-JM3MGLQV.min.js +0 -1
  409. package/dist/c-KM3N7F7R.min.js +0 -1
  410. package/dist/c-LF5BZFNC.min.js +0 -1
  411. package/dist/c-LKBSGFQC.min.js +0 -1
  412. package/dist/c-MNF2S4AA.min.js +0 -1
  413. package/dist/c-MT3WBK7M.min.js +0 -1
  414. package/dist/c-NDJADPIF.min.js +0 -1
  415. package/dist/c-NVPQCIL5.min.js +0 -1
  416. package/dist/c-NY3JWV2K.min.js +0 -1
  417. package/dist/c-OFWJBEE5.min.js +0 -1
  418. package/dist/c-OYFHP5F5.min.js +0 -1
  419. package/dist/c-PGKQGGQ2.min.js +0 -1
  420. package/dist/c-PPWDL5ZI.min.js +0 -1
  421. package/dist/c-Q2IPZ3MU.min.js +0 -1
  422. package/dist/c-QKHMBE2E.min.js +0 -1
  423. package/dist/c-QMVM3AY6.min.js +0 -1
  424. package/dist/c-QSGWX53A.min.js +0 -1
  425. package/dist/c-RJKEKZOO.min.js +0 -1
  426. package/dist/c-RSVIHIQ4.min.js +0 -1
  427. package/dist/c-S6U5CGT5.min.js +0 -1
  428. package/dist/c-SFDIIU5G.min.js +0 -1
  429. package/dist/c-SLGMUBUL.min.js +0 -1
  430. package/dist/c-SRTBCRVE.min.js +0 -1
  431. package/dist/c-T6UAIKBH.min.js +0 -1
  432. package/dist/c-TMCTEVVW.min.js +0 -1
  433. package/dist/c-TMOSJLT3.min.js +0 -1
  434. package/dist/c-TZW3JGJ5.min.js +0 -1
  435. package/dist/c-U6ESPM7V.min.js +0 -1
  436. package/dist/c-UC5PTTFI.min.js +0 -1
  437. package/dist/c-USFMFKIH.min.js +0 -1
  438. package/dist/c-VGKUEZBC.min.js +0 -1
  439. package/dist/c-VGW3VG3I.min.js +0 -1
  440. package/dist/c-VN2HG5BS.min.js +0 -1
  441. package/dist/c-VPZDY5Q4.min.js +0 -1
  442. package/dist/c-VRXUB2F2.min.js +0 -1
  443. package/dist/c-VUBQNQJH.min.js +0 -1
  444. package/dist/c-VUH4PGZY.min.js +0 -1
  445. package/dist/c-W3CE4A4S.min.js +0 -1
  446. package/dist/c-X5UBGU2V.min.js +0 -1
  447. package/dist/c-XDRV7RKW.min.js +0 -1
  448. package/dist/c-YGZHURXZ.min.js +0 -1
  449. package/dist/c-YZVRZGX2.min.js +0 -1
  450. /package/dist/{c-N4G2L7ID.min.js → c-HYW2XA4Q.min.js} +0 -0
  451. /package/dist/{c-ENF72HU5.min.js → c-QAVFOEUY.min.js} +0 -0
  452. /package/dist/{c-OCI56QF2.min.js → c-V4XMSLC3.min.js} +0 -0
package/dist/rough.min.js CHANGED
@@ -1 +1 @@
1
- var e,t=Object.create,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,a=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,s=(e,t,a,s)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of n(t))o.call(e,l)||l===a||r(e,l,{get:()=>t[l],enumerable:!(s=i(t,l))||s.enumerable});return e},l={};((e,t)=>{for(var i in t)r(e,i,{get:t[i],enumerable:!0})})(l,{createRoughRenderMode:()=>W,stableRoughSeed:()=>v}),module.exports=(e=l,s(r({},"__esModule",{value:!0}),e));var c=((e,i,n)=>(n=null!=e?t(a(e)):{},s(e&&e.__esModule?n:r(n,"default",{value:e,enumerable:!0}),e)))(require("roughjs")),f=new WeakMap,u=0;function p(e,t){if(!t)return t;const r=function(e){const t=e.trim();if(!t.startsWith("var(")||!t.endsWith(")"))return null;const r=t.slice(4,-1),i=r.indexOf(",");if(-1===i){const e=r.trim();return e.startsWith("--")?{name:e}:null}const n=r.slice(0,i).trim(),a=r.slice(i+1).trim();return n.startsWith("--")?{name:n,fallback:a||void 0}:null}(t);if(!r)return t;const i=()=>r.fallback?p(e,r.fallback):t,n=e.canvas;if(!n)return i();let a=f.get(n);a&&a.version===u||(a={version:u,map:new Map},f.set(n,a));const o=a.map.get(t);if(void 0!==o)return o;const s=getComputedStyle(n).getPropertyValue(r.name).trim()||i()||t;return a.map.set(t,s),s}var y=require("react/jsx-runtime"),h=1,d=2147483647;function g(e){return"number"==typeof e&&Number.isFinite(e)}function k(e){if(!Array.isArray(e))return null;const t=[];for(const r of e){if(!Array.isArray(r)||!g(r[0])||!g(r[1]))return null;t.push([r[0],r[1]])}return t}function m(e){if(e.style?.icon||e.fillGradient||e.strokeGradient||e.colorThresholds||e.clipRect)return null;if("rect"===e.type&&g(e.x)&&g(e.y)&&g(e.w)&&g(e.h))return{kind:"rectangle",x:e.x,y:e.y,width:e.w,height:e.h};if("point"===e.type&&g(e.x)&&g(e.y)&&g(e.r))return{kind:"circle",x:e.x,y:e.y,diameter:2*e.r};if("circle"===e.type&&g(e.cx)&&g(e.cy)&&g(e.r))return{kind:"circle",x:e.cx,y:e.cy,diameter:2*e.r};if("line"===e.type){const t=k(e.path);if(t&&t.length>=2&&!e._decayOpacities)return{kind:"linearPath",points:t};if(g(e.x1)&&g(e.y1)&&g(e.x2)&&g(e.y2))return{kind:"line",x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2}}if("area"===e.type){const t=k(e.topPath),r=k(e.bottomPath);if(t&&r&&t.length>1&&r.length>1&&!e._decayOpacities)return{kind:"polygon",points:[...t,...r.slice().reverse()]}}if("geoarea"===e.type&&"string"==typeof e.pathData&&e.pathData)return{kind:"path",d:e.pathData};if(("bezier"===e.type||"ribbon"===e.type||"curved"===e.type)&&"string"==typeof e.pathD&&e.pathD)return{kind:"path",d:e.pathD};if("trapezoid"===e.type){const t=k(e.points);if(t&&t.length>=3)return{kind:"polygon",points:t}}if("connector"===e.type&&g(e.x1)&&g(e.y1)&&g(e.x2)&&g(e.y2))return{kind:"line",x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2};if("violin"===e.type&&"string"==typeof e.pathString&&g(e.translateX)&&g(e.translateY))return{kind:"path",d:e.pathString,transform:{x:e.translateX,y:e.translateY}};if("symbol"===e.type&&"string"==typeof e.path){const t=g(e.x)?e.x:e.cx,r=g(e.y)?e.y:e.cy;if(g(t)&&g(r))return{kind:"path",d:e.path,transform:{x:t,y:r,rotation:g(e.rotation)?e.rotation:void 0}}}return"arc"===e.type&&g(e.cx)&&g(e.cy)&&g(e.outerR)&&g(e.startAngle)&&g(e.endAngle)?{kind:"arc",x:e.cx,y:e.cy,width:2*e.outerR,height:2*e.outerR,start:e.startAngle,stop:e.endAngle,closed:!0}:null}function b(e,t=new WeakSet){if(null==e||"string"==typeof e||"boolean"==typeof e)return e;if("number"==typeof e)return Number.isFinite(e)?e:e+"";if("object"!=typeof e)return e+"";if(t.has(e))return"[Circular]";if(t.add(e),Array.isArray(e))return e.map(e=>b(e,t));const r=e;return Object.fromEntries(Object.keys(r).sort().map(e=>[e,b(r[e],t)]))}function x(e){return JSON.stringify(b(e))??e+""}function v(e){const t="string"==typeof e?e:x(e);let r=2166136261;for(let e=0;t.length>e;e+=1)r^=t.charCodeAt(e),r=Math.imul(r,16777619);return(r>>>0)%d+1}function O(e){const t=e.datum&&"object"==typeof e.datum?e.datum:void 0;return e._transitionKey??e.pointId??e.id??e.category??e.group??t?.id??t?.key??t?.name??null}function D(e){return{fill:"string"==typeof e.fill?e.fill:e.fill?"[CanvasPattern]":void 0,fillOpacity:e.fillOpacity,opacity:e.opacity,stroke:e.stroke,strokeWidth:e.strokeWidth,strokeDasharray:e.strokeDasharray,strokeLinecap:e.strokeLinecap}}function w(e){if(!e)return;const t=e.split(/[\s,]+/).map(Number).filter(Number.isFinite);return t.length?t:void 0}function P(e,t,r){switch(t.kind){case"rectangle":return e.rectangle(t.x,t.y,t.width,t.height,r);case"circle":return e.circle(t.x,t.y,t.diameter,r);case"line":return e.line(t.x1,t.y1,t.x2,t.y2,r);case"linearPath":return e.linearPath(t.points,r);case"polygon":return e.polygon(t.points,r);case"path":return e.path(t.d,r);case"arc":return e.arc(t.x,t.y,t.width,t.height,t.start,t.stop,t.closed,r)}}function S(e,t,r){e.beginPath();for(const i of t.ops){const t="number"!=typeof r||0>r?i.data:i.data.map(e=>+e.toFixed(r));"move"===i.op?e.moveTo(t[0],t[1]):"lineTo"===i.op?e.lineTo(t[0],t[1]):"bcurveTo"===i.op&&e.bezierCurveTo(t[0],t[1],t[2],t[3],t[4],t[5])}}function W(e={}){const t=function(e){return g(e)&&Math.trunc(Math.abs(e))%d||h}(e.seed),r=g(e.cacheSize)?Math.max(1,Math.trunc(e.cacheSize)):1e3,i=Object.fromEntries(Object.entries({roughness:e.roughness,bowing:e.bowing,maxRandomnessOffset:e.maxRandomnessOffset,curveFitting:e.curveFitting,curveTightness:e.curveTightness,curveStepCount:e.curveStepCount,fillStyle:e.fillStyle,fillWeight:e.fillWeight,hachureAngle:e.hachureAngle,hachureGap:e.hachureGap,dashOffset:e.dashOffset,dashGap:e.dashGap,zigzagOffset:e.zigzagOffset,disableMultiStroke:e.disableMultiStroke,disableMultiStrokeFill:e.disableMultiStrokeFill,preserveVertices:e.preserveVertices,simplification:e.simplification,fixedDecimalPlaceDigits:e.fixedDecimalPlaceDigits}).filter(([,e])=>void 0!==e)),n=x({...i,seed:t}),a=c.default.generator(),o=new Map;function s(e,r){const i=m(e);return x({backend:"roughjs",identity:O(e),type:e.type,geometry:i,style:D(r),options:n,seed:t})}function l(e,n,l){const c=m(e);if(!c)return null;const f=function(e,t){if(t.fill&&"string"!=typeof t.fill)return null;if("string"==typeof t.fill&&t.fill.startsWith("url("))return null;const r="string"==typeof t.fill&&"none"!==t.fill?t.fill:void 0,i=t.stroke&&"none"!==t.stroke?t.stroke:void 0;switch(e.type){case"line":case"connector":case"curved":return{stroke:i??"#007bff"};case"bezier":case"ribbon":return{fill:r??"#999999",stroke:i??"none"};case"geoarea":return{fill:r??"#e0e0e0",stroke:i??"none"};case"point":case"circle":case"rect":case"area":case"trapezoid":case"violin":case"arc":return{fill:r??"#4e79a7",stroke:i??"none"};case"symbol":return{fill:r,stroke:i??(r?"none":"#4e79a7")};default:return{fill:r,stroke:i??"#007bff"}}}(e,n);if(!f)return null;const u=l?{fill:f.fill?p(l,f.fill)||f.fill:void 0,stroke:p(l,f.stroke)||f.stroke}:f,y=`${s(e,n)}:${x(u)}`,h=o.get(y);if(h)return o.delete(y),o.set(y,h),h;const d=v(`${t}:${O(e)??x(c)}`),g={...i,seed:d,fill:u.fill,stroke:u.stroke,strokeWidth:n.strokeWidth??1,strokeLineDash:w(n.strokeDasharray)},k={drawable:P(a,c,g),geometry:c,style:n};for(o.set(y,k);o.size>r;){const e=o.keys().next().value;if(void 0===e)break;o.delete(e)}return k}const f={id:"roughjs",seed:t,cacheKey:s,drawCanvas({context:e,node:t,style:r}){const i=l(t,r,e);return!!i&&(function(e,t){const{drawable:r,geometry:i,style:n}=t,a=r.options,o=e.globalAlpha,s="path"===i.kind?i.transform:void 0;s&&(e.translate(s.x,s.y),s.rotation&&e.rotate(s.rotation));for(const t of r.sets){if(e.save(),"path"===t.type)e.strokeStyle="none"===a.stroke?"transparent":a.stroke,e.lineWidth=a.strokeWidth,e.globalAlpha=o*(n.opacity??1),a.strokeLineDash&&e.setLineDash(a.strokeLineDash),a.strokeLineDashOffset&&(e.lineDashOffset=a.strokeLineDashOffset),S(e,t,a.fixedDecimalPlaceDigits),e.stroke();else if("fillPath"===t.type)e.fillStyle=a.fill??"transparent",e.globalAlpha=o*(n.opacity??1)*(n.fillOpacity??1),S(e,t,a.fixedDecimalPlaceDigits),e.fill("curve"===r.shape||"polygon"===r.shape||"path"===r.shape?"evenodd":"nonzero");else{const r=0>a.fillWeight?a.strokeWidth/2:a.fillWeight;e.strokeStyle=a.fill??"transparent",e.lineWidth=r,e.globalAlpha=o*(n.opacity??1)*(n.fillOpacity??1),a.fillLineDash&&e.setLineDash(a.fillLineDash),a.fillLineDashOffset&&(e.lineDashOffset=a.fillLineDashOffset),S(e,t,a.fixedDecimalPlaceDigits),e.stroke()}e.restore()}}(e,i),!0)},renderStaticSVG({node:e,style:t,key:r}){const i=l(e,t);if(!i)return null;const n="path"===i.geometry.kind?i.geometry.transform:void 0,o=a.toPaths(i.drawable).map((e,i)=>(0,y.jsx)("path",{d:e.d,fill:e.fill??"none",fillOpacity:e.fill&&"none"!==e.fill?t.fillOpacity:void 0,stroke:e.stroke,strokeWidth:e.strokeWidth,opacity:t.opacity,strokeLinecap:t.strokeLinecap,strokeDasharray:t.strokeDasharray},`${r}-path-${i}`));return(0,y.jsx)("g",{"data-semiotic-render-backend":"roughjs",transform:n?`translate(${n.x} ${n.y})${n.rotation?` rotate(${180*n.rotation/Math.PI})`:""}`:void 0,children:o},r)},clearCache(){o.clear()},get cacheEntries(){return o.size}};return f}
1
+ function e(t,r){if(!r)return r;const i=function(e){const t=e.trim();if(!t.startsWith("var(")||!t.endsWith(")"))return null;const r=t.slice(4,-1),i=r.indexOf(",");if(-1===i){const e=r.trim();return e.startsWith("--")?{name:e}:null}const n=r.slice(0,i).trim(),a=r.slice(i+1).trim();return n.startsWith("--")?{name:n,fallback:a||void 0}:null}(r);if(!i)return r;const n=()=>i.fallback?e(t,i.fallback):r,a=t.canvas;if(!a)return n();let o=D.get(a);o&&o.version===w||(o={version:w,map:new Map},D.set(a,o));const s=o.map.get(r);if(void 0!==s)return s;const l=getComputedStyle(a).getPropertyValue(i.name).trim()||n()||r;return o.map.set(r,l),l}function t(e){return"number"==typeof e&&Number.isFinite(e)}function r(e){if(!Array.isArray(e))return null;const r=[];for(const i of e){if(!Array.isArray(i)||!t(i[0])||!t(i[1]))return null;r.push([i[0],i[1]])}return r}function i(e){if(e.style?.icon||e.fillGradient||e.strokeGradient||e.colorThresholds||e.clipRect)return null;if("rect"===e.type&&t(e.x)&&t(e.y)&&t(e.w)&&t(e.h))return{kind:"rectangle",x:e.x,y:e.y,width:e.w,height:e.h};if("point"===e.type&&t(e.x)&&t(e.y)&&t(e.r))return{kind:"circle",x:e.x,y:e.y,diameter:2*e.r};if("circle"===e.type&&t(e.cx)&&t(e.cy)&&t(e.r))return{kind:"circle",x:e.cx,y:e.cy,diameter:2*e.r};if("line"===e.type){const i=r(e.path);if(i&&i.length>=2&&!e._decayOpacities)return{kind:"linearPath",points:i};if(t(e.x1)&&t(e.y1)&&t(e.x2)&&t(e.y2))return{kind:"line",x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2}}if("area"===e.type){const t=r(e.topPath),i=r(e.bottomPath);if(t&&i&&t.length>1&&i.length>1&&!e._decayOpacities)return{kind:"polygon",points:[...t,...i.slice().reverse()]}}if("geoarea"===e.type&&"string"==typeof e.pathData&&e.pathData)return{kind:"path",d:e.pathData};if(("bezier"===e.type||"ribbon"===e.type||"curved"===e.type)&&"string"==typeof e.pathD&&e.pathD)return{kind:"path",d:e.pathD};if("trapezoid"===e.type){const t=r(e.points);if(t&&t.length>=3)return{kind:"polygon",points:t}}if("connector"===e.type&&t(e.x1)&&t(e.y1)&&t(e.x2)&&t(e.y2))return{kind:"line",x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2};if("violin"===e.type&&"string"==typeof e.pathString&&t(e.translateX)&&t(e.translateY))return{kind:"path",d:e.pathString,transform:{x:e.translateX,y:e.translateY}};if("symbol"===e.type&&"string"==typeof e.path){const r=t(e.x)?e.x:e.cx,i=t(e.y)?e.y:e.cy;if(t(r)&&t(i))return{kind:"path",d:e.path,transform:{x:r,y:i,rotation:t(e.rotation)?e.rotation:void 0}}}return"arc"===e.type&&t(e.cx)&&t(e.cy)&&t(e.outerR)&&t(e.startAngle)&&t(e.endAngle)?{kind:"arc",x:e.cx,y:e.cy,width:2*e.outerR,height:2*e.outerR,start:e.startAngle,stop:e.endAngle,closed:!0}:null}function n(e,t=new WeakSet){if(null==e||"string"==typeof e||"boolean"==typeof e)return e;if("number"==typeof e)return Number.isFinite(e)?e:e+"";if("object"!=typeof e)return e+"";if(t.has(e))return"[Circular]";if(t.add(e),Array.isArray(e))return e.map(e=>n(e,t));const r=e;return Object.fromEntries(Object.keys(r).sort().map(e=>[e,n(r[e],t)]))}function a(e){return JSON.stringify(n(e))??e+""}function o(e){const t="string"==typeof e?e:a(e);let r=2166136261;for(let e=0;t.length>e;e+=1)r^=t.charCodeAt(e),r=Math.imul(r,16777619);return(r>>>0)%W+1}function s(e){const t=e.datum&&"object"==typeof e.datum?e.datum:void 0;return e._transitionKey??e.pointId??e.id??e.category??e.group??t?.id??t?.key??t?.name??null}function l(e){return{fill:"string"==typeof e.fill?e.fill:e.fill?"[CanvasPattern]":void 0,fillOpacity:e.fillOpacity,opacity:e.opacity,stroke:e.stroke,strokeWidth:e.strokeWidth,strokeDasharray:e.strokeDasharray,strokeLinecap:e.strokeLinecap}}function c(e){if(!e)return;const t=e.split(/[\s,]+/).map(Number).filter(Number.isFinite);return t.length?t:void 0}function f(e,t,r){switch(t.kind){case"rectangle":return e.rectangle(t.x,t.y,t.width,t.height,r);case"circle":return e.circle(t.x,t.y,t.diameter,r);case"line":return e.line(t.x1,t.y1,t.x2,t.y2,r);case"linearPath":return e.linearPath(t.points,r);case"polygon":return e.polygon(t.points,r);case"path":return e.path(t.d,r);case"arc":return e.arc(t.x,t.y,t.width,t.height,t.start,t.stop,t.closed,r)}}function u(e,t,r){e.beginPath();for(const i of t.ops){const t="number"!=typeof r||0>r?i.data:i.data.map(e=>+e.toFixed(r));"move"===i.op?e.moveTo(t[0],t[1]):"lineTo"===i.op?e.lineTo(t[0],t[1]):"bcurveTo"===i.op&&e.bezierCurveTo(t[0],t[1],t[2],t[3],t[4],t[5])}}function p(r={}){function n(e,t){const r=i(e);return a({backend:"roughjs",identity:s(e),type:e.type,geometry:r,style:l(t),options:g,seed:y})}function p(t,r,l){const u=i(t);if(!u)return null;const p=function(e,t){if(t.fill&&"string"!=typeof t.fill)return null;if("string"==typeof t.fill&&t.fill.startsWith("url("))return null;const r="string"==typeof t.fill&&"none"!==t.fill?t.fill:void 0,i=t.stroke&&"none"!==t.stroke?t.stroke:void 0;switch(e.type){case"line":case"connector":case"curved":return{stroke:i??"#007bff"};case"bezier":case"ribbon":return{fill:r??"#999999",stroke:i??"none"};case"geoarea":return{fill:r??"#e0e0e0",stroke:i??"none"};case"point":case"circle":case"rect":case"area":case"trapezoid":case"violin":case"arc":return{fill:r??"#4e79a7",stroke:i??"none"};case"symbol":return{fill:r,stroke:i??(r?"none":"#4e79a7")};default:return{fill:r,stroke:i??"#007bff"}}}(t,r);if(!p)return null;const g=l?{fill:p.fill?e(l,p.fill)||p.fill:void 0,stroke:e(l,p.stroke)||p.stroke}:p,b=`${n(t,r)}:${a(g)}`,x=m.get(b);if(x)return m.delete(b),m.set(b,x),x;const v=o(`${y}:${s(t)??a(u)}`),O={...d,seed:v,fill:g.fill,stroke:g.stroke,strokeWidth:r.strokeWidth??1,strokeLineDash:c(r.strokeDasharray)},D={drawable:f(k,u,O),geometry:u,style:r};for(m.set(b,D);m.size>h;){const e=m.keys().next().value;if(void 0===e)break;m.delete(e)}return D}const y=function(e){return t(e)&&Math.trunc(Math.abs(e))%W||S}(r.seed),h=t(r.cacheSize)?Math.max(1,Math.trunc(r.cacheSize)):1e3,d=Object.fromEntries(Object.entries({roughness:r.roughness,bowing:r.bowing,maxRandomnessOffset:r.maxRandomnessOffset,curveFitting:r.curveFitting,curveTightness:r.curveTightness,curveStepCount:r.curveStepCount,fillStyle:r.fillStyle,fillWeight:r.fillWeight,hachureAngle:r.hachureAngle,hachureGap:r.hachureGap,dashOffset:r.dashOffset,dashGap:r.dashGap,zigzagOffset:r.zigzagOffset,disableMultiStroke:r.disableMultiStroke,disableMultiStrokeFill:r.disableMultiStrokeFill,preserveVertices:r.preserveVertices,simplification:r.simplification,fixedDecimalPlaceDigits:r.fixedDecimalPlaceDigits}).filter(([,e])=>void 0!==e)),g=a({...d,seed:y}),k=O.default.generator(),m=new Map,b={id:"roughjs",seed:y,cacheKey:n,drawCanvas({context:e,node:t,style:r}){const i=p(t,r,e);return!!i&&(function(e,t){const{drawable:r,geometry:i,style:n}=t,a=r.options,o=e.globalAlpha,s="path"===i.kind?i.transform:void 0;s&&(e.translate(s.x,s.y),s.rotation&&e.rotate(s.rotation));for(const t of r.sets){if(e.save(),"path"===t.type)e.strokeStyle="none"===a.stroke?"transparent":a.stroke,e.lineWidth=a.strokeWidth,e.globalAlpha=o*(n.opacity??1),a.strokeLineDash&&e.setLineDash(a.strokeLineDash),a.strokeLineDashOffset&&(e.lineDashOffset=a.strokeLineDashOffset),u(e,t,a.fixedDecimalPlaceDigits),e.stroke();else if("fillPath"===t.type)e.fillStyle=a.fill??"transparent",e.globalAlpha=o*(n.opacity??1)*(n.fillOpacity??1),u(e,t,a.fixedDecimalPlaceDigits),e.fill("curve"===r.shape||"polygon"===r.shape||"path"===r.shape?"evenodd":"nonzero");else{const r=0>a.fillWeight?a.strokeWidth/2:a.fillWeight;e.strokeStyle=a.fill??"transparent",e.lineWidth=r,e.globalAlpha=o*(n.opacity??1)*(n.fillOpacity??1),a.fillLineDash&&e.setLineDash(a.fillLineDash),a.fillLineDashOffset&&(e.lineDashOffset=a.fillLineDashOffset),u(e,t,a.fixedDecimalPlaceDigits),e.stroke()}e.restore()}}(e,i),!0)},renderStaticSVG({node:e,style:t,key:r}){const i=p(e,t);if(!i)return null;const n="path"===i.geometry.kind?i.geometry.transform:void 0,a=k.toPaths(i.drawable).map((e,i)=>(0,P.jsx)("path",{d:e.d,fill:e.fill??"none",fillOpacity:e.fill&&"none"!==e.fill?t.fillOpacity:void 0,stroke:e.stroke,strokeWidth:e.strokeWidth,opacity:t.opacity,strokeLinecap:t.strokeLinecap,strokeDasharray:t.strokeDasharray},`${r}-path-${i}`));return(0,P.jsx)("g",{"data-semiotic-render-backend":"roughjs",transform:n?`translate(${n.x} ${n.y})${n.rotation?` rotate(${180*n.rotation/Math.PI})`:""}`:void 0,children:a},r)},clearCache(){m.clear()},get cacheEntries(){return m.size}};return b}var y,h=Object.create,d=Object.defineProperty,g=Object.getOwnPropertyDescriptor,k=Object.getOwnPropertyNames,m=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,x=(e,t,r,i)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of k(t))b.call(e,n)||n===r||d(e,n,{get:()=>t[n],enumerable:!(i=g(t,n))||i.enumerable});return e},v={};((e,t)=>{for(var r in t)d(e,r,{get:t[r],enumerable:!0})})(v,{createRoughRenderMode:()=>p,stableRoughSeed:()=>o}),module.exports=(y=v,x(d({},"__esModule",{value:!0}),y));var O=((e,t,r)=>(r=null!=e?h(m(e)):{},x(e&&e.__esModule?r:d(r,"default",{value:e,enumerable:!0}),e)))(require("roughjs")),D=new WeakMap,w=0,P=require("react/jsx-runtime"),S=1,W=2147483647;
@@ -1 +1 @@
1
- import{resolveCSSColor as e}from"./c-YZVRZGX2.min.js";import t from"roughjs";import{jsx as r}from"react/jsx-runtime";var i=2147483647;function n(e){return"number"==typeof e&&Number.isFinite(e)}function a(e){if(!Array.isArray(e))return null;const t=[];for(const r of e){if(!Array.isArray(r)||!n(r[0])||!n(r[1]))return null;t.push([r[0],r[1]])}return t}function o(e){if(e.style?.icon||e.fillGradient||e.strokeGradient||e.colorThresholds||e.clipRect)return null;if("rect"===e.type&&n(e.x)&&n(e.y)&&n(e.w)&&n(e.h))return{kind:"rectangle",x:e.x,y:e.y,width:e.w,height:e.h};if("point"===e.type&&n(e.x)&&n(e.y)&&n(e.r))return{kind:"circle",x:e.x,y:e.y,diameter:2*e.r};if("circle"===e.type&&n(e.cx)&&n(e.cy)&&n(e.r))return{kind:"circle",x:e.cx,y:e.cy,diameter:2*e.r};if("line"===e.type){const t=a(e.path);if(t&&t.length>=2&&!e._decayOpacities)return{kind:"linearPath",points:t};if(n(e.x1)&&n(e.y1)&&n(e.x2)&&n(e.y2))return{kind:"line",x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2}}if("area"===e.type){const t=a(e.topPath),r=a(e.bottomPath);if(t&&r&&t.length>1&&r.length>1&&!e._decayOpacities)return{kind:"polygon",points:[...t,...r.slice().reverse()]}}if("geoarea"===e.type&&"string"==typeof e.pathData&&e.pathData)return{kind:"path",d:e.pathData};if(("bezier"===e.type||"ribbon"===e.type||"curved"===e.type)&&"string"==typeof e.pathD&&e.pathD)return{kind:"path",d:e.pathD};if("trapezoid"===e.type){const t=a(e.points);if(t&&t.length>=3)return{kind:"polygon",points:t}}if("connector"===e.type&&n(e.x1)&&n(e.y1)&&n(e.x2)&&n(e.y2))return{kind:"line",x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2};if("violin"===e.type&&"string"==typeof e.pathString&&n(e.translateX)&&n(e.translateY))return{kind:"path",d:e.pathString,transform:{x:e.translateX,y:e.translateY}};if("symbol"===e.type&&"string"==typeof e.path){const t=n(e.x)?e.x:e.cx,r=n(e.y)?e.y:e.cy;if(n(t)&&n(r))return{kind:"path",d:e.path,transform:{x:t,y:r,rotation:n(e.rotation)?e.rotation:void 0}}}return"arc"===e.type&&n(e.cx)&&n(e.cy)&&n(e.outerR)&&n(e.startAngle)&&n(e.endAngle)?{kind:"arc",x:e.cx,y:e.cy,width:2*e.outerR,height:2*e.outerR,start:e.startAngle,stop:e.endAngle,closed:!0}:null}function s(e,t=new WeakSet){if(null==e||"string"==typeof e||"boolean"==typeof e)return e;if("number"==typeof e)return Number.isFinite(e)?e:e+"";if("object"!=typeof e)return e+"";if(t.has(e))return"[Circular]";if(t.add(e),Array.isArray(e))return e.map(e=>s(e,t));const r=e;return Object.fromEntries(Object.keys(r).sort().map(e=>[e,s(r[e],t)]))}function l(e){return JSON.stringify(s(e))??e+""}function c(e){const t="string"==typeof e?e:l(e);let r=2166136261;for(let e=0;t.length>e;e+=1)r^=t.charCodeAt(e),r=Math.imul(r,16777619);return(r>>>0)%i+1}function f(e){const t=e.datum&&"object"==typeof e.datum?e.datum:void 0;return e._transitionKey??e.pointId??e.id??e.category??e.group??t?.id??t?.key??t?.name??null}function p(e){return{fill:"string"==typeof e.fill?e.fill:e.fill?"[CanvasPattern]":void 0,fillOpacity:e.fillOpacity,opacity:e.opacity,stroke:e.stroke,strokeWidth:e.strokeWidth,strokeDasharray:e.strokeDasharray,strokeLinecap:e.strokeLinecap}}function u(e){if(!e)return;const t=e.split(/[\s,]+/).map(Number).filter(Number.isFinite);return t.length?t:void 0}function h(e,t,r){switch(t.kind){case"rectangle":return e.rectangle(t.x,t.y,t.width,t.height,r);case"circle":return e.circle(t.x,t.y,t.diameter,r);case"line":return e.line(t.x1,t.y1,t.x2,t.y2,r);case"linearPath":return e.linearPath(t.points,r);case"polygon":return e.polygon(t.points,r);case"path":return e.path(t.d,r);case"arc":return e.arc(t.x,t.y,t.width,t.height,t.start,t.stop,t.closed,r)}}function y(e,t,r){e.beginPath();for(const i of t.ops){const t="number"!=typeof r||0>r?i.data:i.data.map(e=>+e.toFixed(r));"move"===i.op?e.moveTo(t[0],t[1]):"lineTo"===i.op?e.lineTo(t[0],t[1]):"bcurveTo"===i.op&&e.bezierCurveTo(t[0],t[1],t[2],t[3],t[4],t[5])}}function d(a={}){const s=function(e){return n(e)&&Math.trunc(Math.abs(e))%i||1}(a.seed),d=n(a.cacheSize)?Math.max(1,Math.trunc(a.cacheSize)):1e3,g=Object.fromEntries(Object.entries({roughness:a.roughness,bowing:a.bowing,maxRandomnessOffset:a.maxRandomnessOffset,curveFitting:a.curveFitting,curveTightness:a.curveTightness,curveStepCount:a.curveStepCount,fillStyle:a.fillStyle,fillWeight:a.fillWeight,hachureAngle:a.hachureAngle,hachureGap:a.hachureGap,dashOffset:a.dashOffset,dashGap:a.dashGap,zigzagOffset:a.zigzagOffset,disableMultiStroke:a.disableMultiStroke,disableMultiStrokeFill:a.disableMultiStrokeFill,preserveVertices:a.preserveVertices,simplification:a.simplification,fixedDecimalPlaceDigits:a.fixedDecimalPlaceDigits}).filter(([,e])=>void 0!==e)),k=l({...g,seed:s}),m=t.generator(),x=new Map;function b(e,t){const r=o(e);return l({backend:"roughjs",identity:f(e),type:e.type,geometry:r,style:p(t),options:k,seed:s})}function v(t,r,i){const n=o(t);if(!n)return null;const a=function(e,t){if(t.fill&&"string"!=typeof t.fill)return null;if("string"==typeof t.fill&&t.fill.startsWith("url("))return null;const r="string"==typeof t.fill&&"none"!==t.fill?t.fill:void 0,i=t.stroke&&"none"!==t.stroke?t.stroke:void 0;switch(e.type){case"line":case"connector":case"curved":return{stroke:i??"#007bff"};case"bezier":case"ribbon":return{fill:r??"#999999",stroke:i??"none"};case"geoarea":return{fill:r??"#e0e0e0",stroke:i??"none"};case"point":case"circle":case"rect":case"area":case"trapezoid":case"violin":case"arc":return{fill:r??"#4e79a7",stroke:i??"none"};case"symbol":return{fill:r,stroke:i??(r?"none":"#4e79a7")};default:return{fill:r,stroke:i??"#007bff"}}}(t,r);if(!a)return null;const p=i?{fill:a.fill?e(i,a.fill)||a.fill:void 0,stroke:e(i,a.stroke)||a.stroke}:a,y=`${b(t,r)}:${l(p)}`,k=x.get(y);if(k)return x.delete(y),x.set(y,k),k;const v=c(`${s}:${f(t)??l(n)}`),D={...g,seed:v,fill:p.fill,stroke:p.stroke,strokeWidth:r.strokeWidth??1,strokeLineDash:u(r.strokeDasharray)},O={drawable:h(m,n,D),geometry:n,style:r};for(x.set(y,O);x.size>d;){const e=x.keys().next().value;if(void 0===e)break;x.delete(e)}return O}const D={id:"roughjs",seed:s,cacheKey:b,drawCanvas({context:e,node:t,style:r}){const i=v(t,r,e);return!!i&&(function(e,t){const{drawable:r,geometry:i,style:n}=t,a=r.options,o=e.globalAlpha,s="path"===i.kind?i.transform:void 0;s&&(e.translate(s.x,s.y),s.rotation&&e.rotate(s.rotation));for(const t of r.sets){if(e.save(),"path"===t.type)e.strokeStyle="none"===a.stroke?"transparent":a.stroke,e.lineWidth=a.strokeWidth,e.globalAlpha=o*(n.opacity??1),a.strokeLineDash&&e.setLineDash(a.strokeLineDash),a.strokeLineDashOffset&&(e.lineDashOffset=a.strokeLineDashOffset),y(e,t,a.fixedDecimalPlaceDigits),e.stroke();else if("fillPath"===t.type)e.fillStyle=a.fill??"transparent",e.globalAlpha=o*(n.opacity??1)*(n.fillOpacity??1),y(e,t,a.fixedDecimalPlaceDigits),e.fill("curve"===r.shape||"polygon"===r.shape||"path"===r.shape?"evenodd":"nonzero");else{const r=0>a.fillWeight?a.strokeWidth/2:a.fillWeight;e.strokeStyle=a.fill??"transparent",e.lineWidth=r,e.globalAlpha=o*(n.opacity??1)*(n.fillOpacity??1),a.fillLineDash&&e.setLineDash(a.fillLineDash),a.fillLineDashOffset&&(e.lineDashOffset=a.fillLineDashOffset),y(e,t,a.fixedDecimalPlaceDigits),e.stroke()}e.restore()}}(e,i),!0)},renderStaticSVG({node:e,style:t,key:i}){const n=v(e,t);if(!n)return null;const a="path"===n.geometry.kind?n.geometry.transform:void 0,o=m.toPaths(n.drawable).map((e,n)=>r("path",{d:e.d,fill:e.fill??"none",fillOpacity:e.fill&&"none"!==e.fill?t.fillOpacity:void 0,stroke:e.stroke,strokeWidth:e.strokeWidth,opacity:t.opacity,strokeLinecap:t.strokeLinecap,strokeDasharray:t.strokeDasharray},`${i}-path-${n}`));return r("g",{"data-semiotic-render-backend":"roughjs",transform:a?`translate(${a.x} ${a.y})${a.rotation?` rotate(${180*a.rotation/Math.PI})`:""}`:void 0,children:o},i)},clearCache(){x.clear()},get cacheEntries(){return x.size}};return D}export{d as createRoughRenderMode,c as stableRoughSeed};
1
+ function e(e){return"number"==typeof e&&Number.isFinite(e)}function t(t){if(!Array.isArray(t))return null;let r=[];for(let i of t){if(!Array.isArray(i)||!e(i[0])||!e(i[1]))return null;r.push([i[0],i[1]])}return r}function r(r){if(r.style?.icon||r.fillGradient||r.strokeGradient||r.colorThresholds||r.clipRect)return null;if("rect"===r.type&&e(r.x)&&e(r.y)&&e(r.w)&&e(r.h))return{kind:"rectangle",x:r.x,y:r.y,width:r.w,height:r.h};if("point"===r.type&&e(r.x)&&e(r.y)&&e(r.r))return{kind:"circle",x:r.x,y:r.y,diameter:2*r.r};if("circle"===r.type&&e(r.cx)&&e(r.cy)&&e(r.r))return{kind:"circle",x:r.cx,y:r.cy,diameter:2*r.r};if("line"===r.type){let i=t(r.path);if(i&&i.length>=2&&!r._decayOpacities)return{kind:"linearPath",points:i};if(e(r.x1)&&e(r.y1)&&e(r.x2)&&e(r.y2))return{kind:"line",x1:r.x1,y1:r.y1,x2:r.x2,y2:r.y2}}if("area"===r.type){let e=t(r.topPath),i=t(r.bottomPath);if(e&&i&&e.length>1&&i.length>1&&!r._decayOpacities)return{kind:"polygon",points:[...e,...i.slice().reverse()]}}if("geoarea"===r.type&&"string"==typeof r.pathData&&r.pathData)return{kind:"path",d:r.pathData};if(("bezier"===r.type||"ribbon"===r.type||"curved"===r.type)&&"string"==typeof r.pathD&&r.pathD)return{kind:"path",d:r.pathD};if("trapezoid"===r.type){let e=t(r.points);if(e&&e.length>=3)return{kind:"polygon",points:e}}if("connector"===r.type&&e(r.x1)&&e(r.y1)&&e(r.x2)&&e(r.y2))return{kind:"line",x1:r.x1,y1:r.y1,x2:r.x2,y2:r.y2};if("violin"===r.type&&"string"==typeof r.pathString&&e(r.translateX)&&e(r.translateY))return{kind:"path",d:r.pathString,transform:{x:r.translateX,y:r.translateY}};if("symbol"===r.type&&"string"==typeof r.path){let t=e(r.x)?r.x:r.cx,i=e(r.y)?r.y:r.cy;if(e(t)&&e(i))return{kind:"path",d:r.path,transform:{x:t,y:i,rotation:e(r.rotation)?r.rotation:void 0}}}return"arc"===r.type&&e(r.cx)&&e(r.cy)&&e(r.outerR)&&e(r.startAngle)&&e(r.endAngle)?{kind:"arc",x:r.cx,y:r.cy,width:2*r.outerR,height:2*r.outerR,start:r.startAngle,stop:r.endAngle,closed:!0}:null}function i(e,t=new WeakSet){if(null==e||"string"==typeof e||"boolean"==typeof e)return e;if("number"==typeof e)return Number.isFinite(e)?e:e+"";if("object"!=typeof e)return e+"";if(t.has(e))return"[Circular]";if(t.add(e),Array.isArray(e))return e.map(e=>i(e,t));let r=e;return Object.fromEntries(Object.keys(r).sort().map(e=>[e,i(r[e],t)]))}function n(e){return JSON.stringify(i(e))??e+""}function a(e){let t="string"==typeof e?e:n(e),r=2166136261;for(let e=0;t.length>e;e+=1)r^=t.charCodeAt(e),r=Math.imul(r,16777619);return(r>>>0)%d+1}function l(e){let t=e.datum&&"object"==typeof e.datum?e.datum:void 0;return e._transitionKey??e.pointId??e.id??e.category??e.group??t?.id??t?.key??t?.name??null}function o(e){return{fill:"string"==typeof e.fill?e.fill:e.fill?"[CanvasPattern]":void 0,fillOpacity:e.fillOpacity,opacity:e.opacity,stroke:e.stroke,strokeWidth:e.strokeWidth,strokeDasharray:e.strokeDasharray,strokeLinecap:e.strokeLinecap}}function s(e){if(!e)return;let t=e.split(/[\s,]+/).map(Number).filter(Number.isFinite);return t.length?t:void 0}function f(e,t,r){switch(t.kind){case"rectangle":return e.rectangle(t.x,t.y,t.width,t.height,r);case"circle":return e.circle(t.x,t.y,t.diameter,r);case"line":return e.line(t.x1,t.y1,t.x2,t.y2,r);case"linearPath":return e.linearPath(t.points,r);case"polygon":return e.polygon(t.points,r);case"path":return e.path(t.d,r);case"arc":return e.arc(t.x,t.y,t.width,t.height,t.start,t.stop,t.closed,r)}}function c(e,t,r){e.beginPath();for(let i of t.ops){let t="number"!=typeof r||0>r?i.data:i.data.map(e=>+e.toFixed(r));"move"===i.op?e.moveTo(t[0],t[1]):"lineTo"===i.op?e.lineTo(t[0],t[1]):"bcurveTo"===i.op&&e.bezierCurveTo(t[0],t[1],t[2],t[3],t[4],t[5])}}function p(t={}){function i(e,t){let i=r(e);return n({backend:"roughjs",identity:l(e),type:e.type,geometry:i,style:o(t),options:x,seed:g})}function p(e,t,o){let c=r(e);if(!c)return null;let p=function(e,t){if(t.fill&&"string"!=typeof t.fill||"string"==typeof t.fill&&t.fill.startsWith("url("))return null;let r="string"==typeof t.fill&&"none"!==t.fill?t.fill:void 0,i=t.stroke&&"none"!==t.stroke?t.stroke:void 0;switch(e.type){case"line":case"connector":case"curved":return{stroke:i??"#007bff"};case"bezier":case"ribbon":return{fill:r??"#999999",stroke:i??"none"};case"geoarea":return{fill:r??"#e0e0e0",stroke:i??"none"};case"point":case"circle":case"rect":case"area":case"trapezoid":case"violin":case"arc":return{fill:r??"#4e79a7",stroke:i??"none"};case"symbol":return{fill:r,stroke:i??(r?"none":"#4e79a7")};default:return{fill:r,stroke:i??"#007bff"}}}(e,t);if(!p)return null;let h=o?{fill:p.fill?u(o,p.fill)||p.fill:void 0,stroke:u(o,p.stroke)||p.stroke}:p,y=`${i(e,t)}:${n(h)}`,d=v.get(y);if(d)return v.delete(y),v.set(y,d),d;let x=a(`${g}:${l(e)??n(c)}`),D={...m,seed:x,fill:h.fill,stroke:h.stroke,strokeWidth:t.strokeWidth??1,strokeLineDash:s(t.strokeDasharray)},O={drawable:f(b,c,D),geometry:c,style:t};for(v.set(y,O);v.size>k;){let e=v.keys().next().value;if(void 0===e)break;v.delete(e)}return O}let g=function(t){return e(t)&&Math.trunc(Math.abs(t))%d||1}(t.seed),k=e(t.cacheSize)?Math.max(1,Math.trunc(t.cacheSize)):1e3,m=Object.fromEntries(Object.entries({roughness:t.roughness,bowing:t.bowing,maxRandomnessOffset:t.maxRandomnessOffset,curveFitting:t.curveFitting,curveTightness:t.curveTightness,curveStepCount:t.curveStepCount,fillStyle:t.fillStyle,fillWeight:t.fillWeight,hachureAngle:t.hachureAngle,hachureGap:t.hachureGap,dashOffset:t.dashOffset,dashGap:t.dashGap,zigzagOffset:t.zigzagOffset,disableMultiStroke:t.disableMultiStroke,disableMultiStrokeFill:t.disableMultiStrokeFill,preserveVertices:t.preserveVertices,simplification:t.simplification,fixedDecimalPlaceDigits:t.fixedDecimalPlaceDigits}).filter(([,e])=>void 0!==e)),x=n({...m,seed:g}),b=h.generator(),v=new Map;return{id:"roughjs",seed:g,cacheKey:i,drawCanvas({context:e,node:t,style:r}){let i=p(t,r,e);return!!i&&(function(e,t){let{drawable:r,geometry:i,style:n}=t,a=r.options,l=e.globalAlpha,o="path"===i.kind?i.transform:void 0;o&&(e.translate(o.x,o.y),o.rotation&&e.rotate(o.rotation));for(let t of r.sets){if(e.save(),"path"===t.type)e.strokeStyle="none"===a.stroke?"transparent":a.stroke,e.lineWidth=a.strokeWidth,e.globalAlpha=l*(n.opacity??1),a.strokeLineDash&&e.setLineDash(a.strokeLineDash),a.strokeLineDashOffset&&(e.lineDashOffset=a.strokeLineDashOffset),c(e,t,a.fixedDecimalPlaceDigits),e.stroke();else if("fillPath"===t.type)e.fillStyle=a.fill??"transparent",e.globalAlpha=l*(n.opacity??1)*(n.fillOpacity??1),c(e,t,a.fixedDecimalPlaceDigits),e.fill("curve"===r.shape||"polygon"===r.shape||"path"===r.shape?"evenodd":"nonzero");else{let r=0>a.fillWeight?a.strokeWidth/2:a.fillWeight;e.strokeStyle=a.fill??"transparent",e.lineWidth=r,e.globalAlpha=l*(n.opacity??1)*(n.fillOpacity??1),a.fillLineDash&&e.setLineDash(a.fillLineDash),a.fillLineDashOffset&&(e.lineDashOffset=a.fillLineDashOffset),c(e,t,a.fixedDecimalPlaceDigits),e.stroke()}e.restore()}}(e,i),!0)},renderStaticSVG({node:e,style:t,key:r}){let i=p(e,t);if(!i)return null;let n="path"===i.geometry.kind?i.geometry.transform:void 0,a=b.toPaths(i.drawable).map((e,i)=>y("path",{d:e.d,fill:e.fill??"none",fillOpacity:e.fill&&"none"!==e.fill?t.fillOpacity:void 0,stroke:e.stroke,strokeWidth:e.strokeWidth,opacity:t.opacity,strokeLinecap:t.strokeLinecap,strokeDasharray:t.strokeDasharray},`${r}-path-${i}`));return y("g",{"data-semiotic-render-backend":"roughjs",transform:n?`translate(${n.x} ${n.y})${n.rotation?` rotate(${180*n.rotation/Math.PI})`:""}`:void 0,children:a},r)},clearCache(){v.clear()},get cacheEntries(){return v.size}}}import{resolveCSSColor as u}from"./c-OOVX2JPQ.min.js";import h from"roughjs";import{jsx as y}from"react/jsx-runtime";var d=2147483647;export{p as createRoughRenderMode,a as stableRoughSeed};
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- import{auditAccessibility as e}from"./c-LKBSGFQC.min.js";import{buildNavigationTree as t,describeChart as a,supportsStructuredNavigation as r}from"./c-TMCTEVVW.min.js";import"./c-IUHFPMHD.min.js";var i=Object.freeze(Object.fromEntries([["AreaChart",13],["BubbleChart",13],["BumpChart",13],["CandlestickChart",13],["ConnectedScatterplot",13],["DifferenceChart",13],["Heatmap",13],["LineChart",13],["MinimapChart",13,"delegated"],["MultiAxisLineChart",13],["QuadrantChart",13],["Scatterplot",13],["ScatterplotMatrix",13,"delegated"],["StackedAreaChart",13],["WaterfallChart",13],["BarChart",13],["BoxPlot",13],["DonutChart",13],["DotPlot",13],["FunnelChart",13],["GaugeChart",5],["GroupedBarChart",13],["Histogram",13],["LikertChart",13],["PieChart",13],["RadarChart",13],["RidgelinePlot",13],["StackedBarChart",13],["SwarmPlot",13],["SwimlaneChart",13],["ViolinPlot",13],["ChordDiagram",13],["CirclePack",13],["ForceDirectedGraph",13],["OrbitDiagram",13],["ProcessSankey",13],["SankeyDiagram",13],["TreeDiagram",13],["Treemap",13],["ChoroplethMap",13],["DistanceCartogram",13],["FlowMap",13],["ProportionalSymbolMap",13],["RealtimeHeatmap",14],["RealtimeHistogram",14],["RealtimeLineChart",14],["RealtimeSwarmChart",14],["RealtimeWaterfallChart",14],["TemporalHistogram",13],["ChainReactionChart",5],["CollisionSwarmChart",13],["CrucibleChart",5],["EventDropChart",13],["GaltonBoardChart",13],["GauntletChart",5],["PacketFlowChart",13],["ProcessFlowChart",13],["UnitPileChart",13],["BigNumber",1,"not-applicable"],["ParallelCoordinatesRecipe",21],["CalendarHeatmapRecipe",21]].map(([e,t,a="unsupported"])=>[e,{supportsSSR:!!(1&t),realtime:!!(2&t),supportsAccessibleTable:!!(4&t),supportsLegend:!!(8&t),...16&t?{recipeNavigation:!0}:{},markNavigation:a}]))),s=1;function n(e,t){return!0===e?.supportsAccessibleTable&&!1!==t.accessibleTable}function o(e){return"string"==typeof e&&e.trim().length>0}function l(e){if(0===e.length)return;const t=e.map(e=>"idle"===e.status?"no data received":"active"===e.status?"receiving data":"not receiving new data"),a=[...new Set(t)],r=1===a.length?a[0]:t.join(", then ");return`Last ${e.length} stream ${1===e.length?"status":"statuses"}: ${r}.`}function c(e,t){return e?e.supportsLegend&&!1!==t.showLegend&&(!0===t.showLegend||null!=t.legend||["colorBy","lineBy","areaBy","stackBy","groupBy"].some(e=>null!=t[e]))?"isolate"===t.legendInteraction||"highlight"===t.legendInteraction?"built-in":"not-enabled":"not-applicable":"unsupported"}function u({component:s,props:u,options:d={}}){const p=i[s],m=p?p.realtime:!0===d.realtime,h=a(s,u,{...d.locale?{locale:d.locale}:{}}),g=r(s,u),v=g||!0===p?.recipeNavigation,b=g&&!1!==d.navigable?t(s,u,{...d.locale?{locale:d.locale}:{}}):void 0,C=e(s,u,{inChartContainer:!0===d.inChartContainer,describe:!0===d.describe||o(u.summary),navigable:!1!==d.navigable&&v}),y=m?function(e){const t=e?.streamStatus;return t?(Array.isArray(t)?t:[t]).filter(e=>!!e&&"string"==typeof e.status).slice(-(e?.streamHistoryLimit??5)):[]}(d):[],f=function(e,t){return e?"delegated"===e.markNavigation||"not-applicable"===e.markNavigation?e.markNavigation:t?"built-in":"unsupported":"unsupported"}(p,v);return{schemaVersion:1,component:s,text:{...o(u.title)?{title:u.title}:{},...o(u.description)?{description:u.description}:{},...o(u.summary)?{summary:u.summary}:{},accessibleTable:n(p,u)},keyboard:{markNavigation:f,legendInteraction:c(p,u),focusRing:f},navigation:{supported:v,composition:"chart-container",...b?{tree:b}:void 0,...b?{}:{note:v?g?"Structured datum navigation is available through ChartContainer; enable its navigable option to materialize the tree.":"Structured datum navigation is declared for this built-in recipe; load its recipe manifest through semiotic/ai before materializing the tree.":"No datum-level structured navigation is registered for this chart. Exact-value table access may still be available."}},table:{enabled:n(p,u),source:"scene",pagination:"built-in"},mediaPreferences:{reducedMotion:p?"built-in":"unknown",forcedColors:p?"css-custom-properties":"unknown",note:p?"Runtime detection is available through useReducedMotion and useHighContrast; canvas styling uses CSS custom properties so forced-colors changes cascade.":"No generated runtime capability record exists for this component; media-preference support is unknown."},streamStatus:m?{supported:!0,status:y.at(-1)?.status??"idle",lastPushTime:y.at(-1)?.lastPushTime??null,history:y,historyLimit:d.streamHistoryLimit??5,...l(y)?{accessibleDescription:l(y)}:{},note:"Hosts may expose this bounded, non-visible description to screen readers or agents. Do not render it in visible UI."}:{supported:!1,note:"Static chart; no push-ingest lifecycle."},ssr:!0===p?.supportsSSR?{supported:!0,evidence:d.ssrEvidence,note:d.ssrEvidence?"Server rendering is registered and attached render evidence records the observed scene.":"Server rendering is registered; supply renderChartWithEvidence output before claiming a non-empty scene."}:{supported:!1,...d.ssrEvidence?{evidence:d.ssrEvidence}:{},note:m?"Live push charts intentionally omit static SSR; capture a supported bounded-window static twin before claiming server evidence.":p?"The chart capability registry does not expose this component through renderChart; do not claim server evidence for the HOC surface.":"No generated capability record exists for this component; SSR support is unknown and therefore reported as unsupported."},evidence:{audit:C,description:h}}}var d=u({component:"LineChart",props:{data:[{date:"2026-01-01",value:12},{date:"2026-02-01",value:18},{date:"2026-03-01",value:15}],xAccessor:"date",yAccessor:"value",title:"Weekly active users",description:"Daily active users from January through March, with a February peak.",summary:"Use keyboard mark navigation to inspect each point; the linked table lists exact values."},options:{navigable:!0}}),p=u({component:"BarChart",props:{data:[{region:"North",total:42},{region:"South",total:31},{region:"East",total:27}],categoryAccessor:"region",valueAccessor:"total",title:"Orders by region",description:"Three regions compared by order count; North leads and East trails.",summary:"The accessible table preserves category labels and numeric totals for exact reading."},options:{navigable:!0}}),m=u({component:"RealtimeLineChart",props:{data:[{time:1,value:4},{time:2,value:7}],timeAccessor:"time",valueAccessor:"value",title:"Requests per second",description:"A bounded live window of requests per second with stale-state indication available through useStreamStatus.",summary:"The current window is exposed as an accessible table; status changes should be announced by the host application."},options:{realtime:!0,navigable:!1,streamStatus:[{status:"idle",lastPushTime:null},{status:"active",lastPushTime:1e3},{status:"active",lastPushTime:2e3},{status:"active",lastPushTime:3e3},{status:"stale",lastPushTime:4e3}],streamHistoryLimit:5}});export{p as BAR_CHART_ACCESS_CONTRACT,s as CHART_ACCESS_CONTRACT_VERSION,d as LINE_CHART_ACCESS_CONTRACT,m as REALTIME_LINE_CHART_ACCESS_CONTRACT,u as createChartAccessContract};
2
+ function e(e,t){return!0===e?.supportsAccessibleTable&&!1!==t.accessibleTable}function t(e){return"string"==typeof e&&e.trim().length>0}function a(e){if(0===e.length)return;let t=e.map(e=>"idle"===e.status?"no data received":"active"===e.status?"receiving data":"not receiving new data"),a=[...new Set(t)],r=1===a.length?a[0]:t.join(", then ");return`Last ${e.length} stream ${1===e.length?"status":"statuses"}: ${r}.`}function r(e,t){return e?!e.supportsLegend||!1===t.showLegend||!0!==t.showLegend&&null==t.legend&&!["colorBy","lineBy","areaBy","stackBy","groupBy"].some(e=>null!=t[e])?"not-applicable":"isolate"===t.legendInteraction||"highlight"===t.legendInteraction?"built-in":"not-enabled":"unsupported"}function i({component:i,props:u,options:d={}}){let p=c[i],m=p?p.realtime:!0===d.realtime,h=o(i,u,{...d.locale?{locale:d.locale}:{}}),g=l(i,u),v=g||!0===p?.recipeNavigation,b=g&&!1!==d.navigable?n(i,u,{...d.locale?{locale:d.locale}:{}}):void 0,C=s(i,u,{inChartContainer:!0===d.inChartContainer,describe:!0===d.describe||t(u.summary),navigable:!1!==d.navigable&&v}),y=m?function(e){let t=e?.streamStatus;return t?(Array.isArray(t)?t:[t]).filter(e=>!!e&&"string"==typeof e.status).slice(-(e?.streamHistoryLimit??5)):[]}(d):[],f=function(e,t){return e?"delegated"===e.markNavigation||"not-applicable"===e.markNavigation?e.markNavigation:t?"built-in":"unsupported":"unsupported"}(p,v);return{schemaVersion:1,component:i,text:{...t(u.title)?{title:u.title}:{},...t(u.description)?{description:u.description}:{},...t(u.summary)?{summary:u.summary}:{},accessibleTable:e(p,u)},keyboard:{markNavigation:f,legendInteraction:r(p,u),focusRing:f},navigation:{supported:v,composition:"chart-container",...b?{tree:b}:void 0,...b?{}:{note:v?g?"Structured datum navigation is available through ChartContainer; enable its navigable option to materialize the tree.":"Structured datum navigation is declared for this built-in recipe; load its recipe manifest through semiotic/ai before materializing the tree.":"No datum-level structured navigation is registered for this chart. Exact-value table access may still be available."}},table:{enabled:e(p,u),source:"scene",pagination:"built-in"},mediaPreferences:{reducedMotion:p?"built-in":"unknown",forcedColors:p?"css-custom-properties":"unknown",note:p?"Runtime detection is available through useReducedMotion and useHighContrast; canvas styling uses CSS custom properties so forced-colors changes cascade.":"No generated runtime capability record exists for this component; media-preference support is unknown."},streamStatus:m?{supported:!0,status:y.at(-1)?.status??"idle",lastPushTime:y.at(-1)?.lastPushTime??null,history:y,historyLimit:d.streamHistoryLimit??5,...a(y)?{accessibleDescription:a(y)}:{},note:"Hosts may expose this bounded, non-visible description to screen readers or agents. Do not render it in visible UI."}:{supported:!1,note:"Static chart; no push-ingest lifecycle."},ssr:!0===p?.supportsSSR?{supported:!0,evidence:d.ssrEvidence,note:d.ssrEvidence?"Server rendering is registered and attached render evidence records the observed scene.":"Server rendering is registered; supply renderChartWithEvidence output before claiming a non-empty scene."}:{supported:!1,...d.ssrEvidence?{evidence:d.ssrEvidence}:{},note:m?"Live push charts intentionally omit static SSR; capture a supported bounded-window static twin before claiming server evidence.":p?"The chart capability registry does not expose this component through renderChart; do not claim server evidence for the HOC surface.":"No generated capability record exists for this component; SSR support is unknown and therefore reported as unsupported."},evidence:{audit:C,description:h}}}import{auditAccessibility as s}from"./c-IDJV3CZK.min.js";import{buildNavigationTree as n,describeChart as o,supportsStructuredNavigation as l}from"./c-2WK7YJLL.min.js";var c=Object.freeze(Object.fromEntries([["AreaChart",13],["BubbleChart",13],["BumpChart",13],["CandlestickChart",13],["ConnectedScatterplot",13],["DifferenceChart",13],["Heatmap",13],["LineChart",13],["MinimapChart",13,"delegated"],["MultiAxisLineChart",13],["QuadrantChart",13],["Scatterplot",13],["ScatterplotMatrix",13,"delegated"],["StackedAreaChart",13],["WaterfallChart",13],["BarChart",13],["BoxPlot",13],["DonutChart",13],["DotPlot",13],["FunnelChart",13],["GaugeChart",5],["GroupedBarChart",13],["Histogram",13],["LikertChart",13],["PieChart",13],["RadarChart",13],["RidgelinePlot",13],["StackedBarChart",13],["SwarmPlot",13],["SwimlaneChart",13],["ViolinPlot",13],["ChordDiagram",13],["CirclePack",13],["ForceDirectedGraph",13],["OrbitDiagram",13],["ProcessSankey",13],["SankeyDiagram",13],["TreeDiagram",13],["Treemap",13],["ChoroplethMap",13],["DistanceCartogram",13],["FlowMap",13],["ProportionalSymbolMap",13],["RealtimeHeatmap",14],["RealtimeHistogram",14],["RealtimeLineChart",14],["RealtimeSwarmChart",14],["RealtimeWaterfallChart",14],["TemporalHistogram",13],["ChainReactionChart",5],["CollisionSwarmChart",13],["CrucibleChart",5],["EventDropChart",13],["GaltonBoardChart",13],["GauntletChart",5],["PacketFlowChart",13],["ProcessFlowChart",13],["UnitPileChart",13],["BigNumber",1,"not-applicable"],["ParallelCoordinatesRecipe",21],["CalendarHeatmapRecipe",21]].map(([e,t,a="unsupported"])=>[e,{supportsSSR:!!(1&t),realtime:!!(2&t),supportsAccessibleTable:!!(4&t),supportsLegend:!!(8&t),...16&t?{recipeNavigation:!0}:{},markNavigation:a}]))),u=1,d=i({component:"LineChart",props:{data:[{date:"2026-01-01",value:12},{date:"2026-02-01",value:18},{date:"2026-03-01",value:15}],xAccessor:"date",yAccessor:"value",title:"Weekly active users",description:"Daily active users from January through March, with a February peak.",summary:"Use keyboard mark navigation to inspect each point; the linked table lists exact values."},options:{navigable:!0}}),p=i({component:"BarChart",props:{data:[{region:"North",total:42},{region:"South",total:31},{region:"East",total:27}],categoryAccessor:"region",valueAccessor:"total",title:"Orders by region",description:"Three regions compared by order count; North leads and East trails.",summary:"The accessible table preserves category labels and numeric totals for exact reading."},options:{navigable:!0}}),m=i({component:"RealtimeLineChart",props:{data:[{time:1,value:4},{time:2,value:7}],timeAccessor:"time",valueAccessor:"value",title:"Requests per second",description:"A bounded live window of requests per second with stale-state indication available through useStreamStatus.",summary:"The current window is exposed as an accessible table; status changes should be announced by the host application."},options:{realtime:!0,navigable:!1,streamStatus:[{status:"idle",lastPushTime:null},{status:"active",lastPushTime:1e3},{status:"active",lastPushTime:2e3},{status:"active",lastPushTime:3e3},{status:"stale",lastPushTime:4e3}],streamHistoryLimit:5}});export{p as BAR_CHART_ACCESS_CONTRACT,u as CHART_ACCESS_CONTRACT_VERSION,d as LINE_CHART_ACCESS_CONTRACT,m as REALTIME_LINE_CHART_ACCESS_CONTRACT,i as createChartAccessContract};
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ import{ARTIFACT_POLICIES as m}from"./c-S3AZX5PP.min.js";import{ARTIFACT_FIELD_POLICIES as o}from"./c-BOHCQILI.min.js";export{o as ARTIFACT_FIELD_POLICIES,m as ARTIFACT_POLICIES};
@@ -10,37 +10,48 @@ export { validateProps } from "./components/charts/shared/validateProps";
10
10
  export type { ValidationResult } from "./components/charts/shared/validateProps";
11
11
  export { diagnoseConfig } from "./components/charts/shared/diagnoseConfig";
12
12
  export type { Diagnosis, DiagnosisResult } from "./components/charts/shared/diagnoseConfig";
13
- export { auditAccessibility, formatAccessibilityAudit, accessibilityCaveats, } from "./components/charts/shared/auditAccessibility";
14
- export type { A11yPrinciple, A11yStatus, A11yFinding, AccessibilityAuditResult, AuditAccessibilityOptions, } from "./components/charts/shared/auditAccessibility";
15
- export { auditMobileVisualization, formatMobileVisualizationAudit, mobileVisualizationCaveats, } from "./components/charts/shared/auditMobileVisualization";
16
- export type { MobileVisualizationAuditResult, AuditMobileVisualizationOptions, } from "./components/charts/shared/auditMobileVisualization";
17
- export { toConfig, fromConfig, toURL, fromURL, copyConfig, configToJSX } from "./components/export/chartConfig";
18
- export type { ChartConfig, ToConfigOptions, CopyFormat } from "./components/export/chartConfig";
13
+ export { auditAccessibility, formatAccessibilityAudit, accessibilityCaveats } from "./components/charts/shared/auditAccessibility";
14
+ export type { A11yPrinciple, A11yStatus, A11yFinding, AccessibilityAuditResult, AuditAccessibilityOptions } from "./components/charts/shared/auditAccessibility";
15
+ export { auditMobileVisualization, formatMobileVisualizationAudit, mobileVisualizationCaveats } from "./components/charts/shared/auditMobileVisualization";
16
+ export type { MobileVisualizationAuditResult, AuditMobileVisualizationOptions } from "./components/charts/shared/auditMobileVisualization";
17
+ export { toConfig, fromConfig, toURL, fromURL, copyConfig, configToJSX, configToJSXWithReport } from "./components/export/chartConfig";
18
+ export type { ChartConfig, ChartArtifactTransferStatus, ToConfigOptions, FromConfigResult, ToURLOptions, JSXProjectionResult, CopyFormat } from "./components/export/chartConfig";
19
+ export type * from "./components/semiotic-artifact";
20
+ export { ARTIFACT_CONTRACT_VERSION } from "./components/artifact/types";
21
+ export { canonicalJson, fingerprintValue } from "./components/artifact/fingerprint";
22
+ export { ARTIFACT_FIELD_POLICIES, buildArtifactContract, formatArtifactContract, fromIntentManifest, toIntentManifest, validateArtifactContract } from "./components/artifact/contract";
23
+ export { auditClaims } from "./components/artifact/claims";
24
+ export { auditTemporalContext } from "./components/artifact/temporal";
25
+ export { ARTIFACT_POLICIES, activePolicyRules, resolveArtifactPolicy } from "./components/artifact/policies";
26
+ export { recommendRepresentation } from "./components/artifact/representation";
27
+ export { evaluateArtifact, explainArtifactRefusal, repairArtifact } from "./components/artifact/evaluateArtifact";
28
+ export { buildArtifactGrounding } from "./components/artifact/grounding";
29
+ export { requireSerializableArtifactContract, serializeArtifactContract } from "./components/artifact/serialization";
19
30
  export { summarizeData } from "./components/data/DataSummarizer";
20
31
  export type { DataSummary, FieldSummary, FieldType, SummarizeOptions } from "./components/data/DataSummarizer";
21
- export { auditData, formatDataAudit, profileNumericFields, toDataAuditNotifications, } from "./components/data/auditData";
22
- export type { AuditDataOptions, CheckedNumericContract, DataAuditChartNotification, DataAuditDiagnosis, DataAuditNotificationOptions, DataAuditResult, NumericFieldProfile, ProfileNumericFieldsOptions, } from "./components/data/auditData";
23
- export { evaluateChart, formatEvaluateChart, toEvaluateChartNotifications, } from "./components/ai/evaluateChart";
24
- export type { EvaluateChartFinding, EvaluateChartNotification, EvaluateChartOptions, EvaluateChartResult, EvaluateChartSeverity, EvaluateChartStage, EvaluateChartSummary, } from "./components/ai/evaluateChart";
32
+ export { auditData, formatDataAudit, profileNumericFields, toDataAuditNotifications } from "./components/data/auditData";
33
+ export type { AuditDataOptions, CheckedNumericContract, DataAuditChartNotification, DataAuditDiagnosis, DataAuditNotificationOptions, DataAuditResult, NumericFieldProfile, ProfileNumericFieldsOptions } from "./components/data/auditData";
34
+ export { evaluateChart, formatEvaluateChart, toEvaluateChartNotifications } from "./components/ai/evaluateChart";
35
+ export type { EvaluateChartFinding, EvaluateChartNotification, EvaluateChartOptions, EvaluateChartResult, EvaluateChartSeverity, EvaluateChartStage, EvaluateChartSummary } from "./components/ai/evaluateChart";
25
36
  export { auditVisualHierarchy } from "./components/ai/auditVisualHierarchy";
26
- export type { VisualHierarchyAuditResult, VisualHierarchyFinding, VisualHierarchyInput, VisualHierarchyStatus, } from "./components/ai/auditVisualHierarchy";
27
- export { AESTHETICS_OFF_PROFILE, DEFAULT_AESTHETIC_PROFILE, DEFAULT_AESTHETIC_THRESHOLDS, DEFAULT_AESTHETIC_WEIGHTS, evaluateAesthetics, } from "./components/ai/evaluateAesthetics";
28
- export type { AestheticEvaluationResult, AestheticFeatureResult, AestheticFeatureStatus, EvaluateAestheticsOptions, } from "./components/ai/evaluateAesthetics";
29
- export type { AestheticFeatureId, AestheticFeatureWeights, AestheticProfile, AestheticThresholds, } from "./components/ai/aestheticProfileTypes";
30
- export type { NumericAggregateContract, NumericContracts, NumericFieldContract, NumericFieldRole, NumericRequirement, } from "./components/data/numericContracts";
37
+ export type { VisualHierarchyAuditResult, VisualHierarchyFinding, VisualHierarchyInput, VisualHierarchyStatus } from "./components/ai/auditVisualHierarchy";
38
+ export { AESTHETICS_OFF_PROFILE, DEFAULT_AESTHETIC_PROFILE, DEFAULT_AESTHETIC_THRESHOLDS, DEFAULT_AESTHETIC_WEIGHTS, evaluateAesthetics } from "./components/ai/evaluateAesthetics";
39
+ export type { AestheticEvaluationResult, AestheticFeatureResult, AestheticFeatureStatus, EvaluateAestheticsOptions } from "./components/ai/evaluateAesthetics";
40
+ export type { AestheticFeatureId, AestheticFeatureWeights, AestheticProfile, AestheticThresholds } from "./components/ai/aestheticProfileTypes";
41
+ export type { NumericAggregateContract, NumericContracts, NumericFieldContract, NumericFieldRole, NumericRequirement } from "./components/data/numericContracts";
31
42
  export { profileData } from "./components/ai/profileData";
32
43
  export type { ProfileDataOptions } from "./components/ai/profileData";
33
44
  export { deriveProfileFields, rederiveProfile } from "./components/ai/deriveProfileFields";
34
- export type { DerivedProfileFields, ProfilePrimaryFields, ReprofileFieldsOptions, } from "./components/ai/deriveProfileFields";
35
- export type { ProfileFieldRole, ProfileFieldRoleHint, ProfileFieldRoleHints, NormalizedProfileFieldRoles, } from "./components/ai/fieldRoles";
45
+ export type { DerivedProfileFields, ProfilePrimaryFields, ReprofileFieldsOptions } from "./components/ai/deriveProfileFields";
46
+ export type { ProfileFieldRole, ProfileFieldRoleHint, ProfileFieldRoleHints, NormalizedProfileFieldRoles } from "./components/ai/fieldRoles";
36
47
  export type { SuggestionPropContract } from "./components/ai/suggestionPropContracts";
37
- export type { ChartFieldPolicy, SemanticRenderEvidence, SemanticViabilityCallback, SemanticViabilityCheck, SemanticViabilityDiagnostic, SemanticViabilityRule, ScoreChartRejected, ScoreChartResult, ScoreChartSuggestion, } from "./components/ai/chartCapabilityTypes";
48
+ export type { ChartFieldPolicy, SemanticRenderEvidence, SemanticViabilityCallback, SemanticViabilityCheck, SemanticViabilityDiagnostic, SemanticViabilityRule, ScoreChartRejected, ScoreChartResult, ScoreChartSuggestion } from "./components/ai/chartCapabilityTypes";
38
49
  export { inferIntent } from "./components/ai/inferIntent";
39
50
  export type { InferIntentField, InferIntentOptions, InferIntentResult } from "./components/ai/inferIntent";
40
51
  export { BUILT_IN_INTENT_IDS, getIntent, listIntents, registerIntent } from "./components/ai/intents";
41
52
  export type { BuiltInIntentId, IntentDescriptor, IntentFieldKind, IntentId, IntentSignals } from "./components/ai/intents";
42
53
  export { suggestCharts, suggestChartsGrouped, scoreChart, explainCapabilityFit } from "./components/ai/suggestCharts";
43
- export type { SuggestChartsOptions, ScoreChartOptions, RejectedCapability, ExplainCapabilityFitResult, } from "./components/ai/suggestCharts";
54
+ export type { SuggestChartsOptions, ScoreChartOptions, RejectedCapability, ExplainCapabilityFitResult } from "./components/ai/suggestCharts";
44
55
  export { BUILT_IN_CHART_RECIPES, CALENDAR_HEATMAP_CONFIG_SCHEMA, CALENDAR_HEATMAP_LAYOUT_ID, CALENDAR_HEATMAP_RECIPE_ID, PARALLEL_COORDINATES_CONFIG_SCHEMA, PARALLEL_COORDINATES_LAYOUT_ID, PARALLEL_COORDINATES_RECIPE_ID, calendarHeatmapRecipe, parallelCoordinatesRecipe, registerBuiltInChartRecipeManifests } from "./components/ai/builtInChartRecipes";
45
56
  export { defineChartRecipe, isJsonSafe, isRegisteredRecipeLayout, validateChartRecipe } from "./components/ai/chartRecipes";
46
57
  export type { ChartRecipe, ChartRecipeFrameFamily, ChartRecipePortability, DataRoleDefinition, EncodingDefinition, SerializableSchema } from "./components/ai/chartRecipes";
@@ -62,7 +73,7 @@ export { buildReaderGrounding } from "./components/ai/readerGrounding";
62
73
  export type { ChartReaderGrounding, ChartReaderGroundingOptions } from "./components/ai/readerGrounding";
63
74
  export { buildNavigationTree, flattenVisible, countNodes } from "./components/ai/navigationTree";
64
75
  export type { NavTreeNode, NavTreeRole, BuildNavigationTreeOptions } from "./components/ai/navigationTree";
65
- export { prepareChart, refreshChartDiagnostics, createRenderEvidenceMemo, chartGenerationTool, toAnthropicTool, toOpenAITool, toOpenAIResponsesTool, createChartToolHandler, } from "./components/ai/generativeChart";
66
- export type { RenderFn, RenderEvidenceMemo, PrepareChartInput, PrepareChartOptions, PrepareChartResult, ChartToolDefinition, ChartToolOptions, OpenAIResponsesTool, OpenAIResponsesToolOptions, } from "./components/ai/generativeChart";
76
+ export { prepareChart, refreshChartDiagnostics, createRenderEvidenceMemo, chartGenerationTool, toAnthropicTool, toOpenAITool, toOpenAIResponsesTool, createChartToolHandler } from "./components/ai/generativeChart";
77
+ export type { RenderFn, RenderEvidenceMemo, PrepareChartInput, PrepareChartOptions, PrepareChartResult, ChartToolDefinition, ChartToolOptions, OpenAIResponsesTool, OpenAIResponsesToolOptions } from "./components/ai/generativeChart";
67
78
  export { inspectChart } from "./components/ai/chartClinic";
68
- export type { ChartClinicConfig, ChartClinicInput, ChartClinicOptions, ChartClinicReport, ChartClinicRevisionInput, ChartClinicRevisionStatus, ChartClinicSceneSummary, ChartClinicBundleGuidance, } from "./components/ai/chartClinic";
79
+ export type { ChartClinicConfig, ChartClinicInput, ChartClinicOptions, ChartClinicReport, ChartClinicRevisionInput, ChartClinicRevisionStatus, ChartClinicSceneSummary, ChartClinicBundleGuidance } from "./components/ai/chartClinic";