semiotic 3.9.1 → 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 (566) hide show
  1. package/README.md +137 -58
  2. package/agent-skill/semiotic-charts/SKILL.md +27 -17
  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/componentMetadata.cjs +13 -3
  8. package/ai/dist/mcp-server.js +140 -36407
  9. package/ai/examples.md +110 -7
  10. package/ai/reference.md +82 -28
  11. package/ai/schema.json +7675 -1471
  12. package/ai/surface-manifest.json +60 -9
  13. package/ai/system-prompt.md +18 -3
  14. package/ai/task-packets/compare-category-totals.json +301 -0
  15. package/ai/task-packets/compare-category-totals.md +188 -0
  16. package/ai/task-packets/correct-published-chart.json +271 -0
  17. package/ai/task-packets/correct-published-chart.md +597 -0
  18. package/ai/task-packets/index.json +40 -0
  19. package/ai/task-packets/update-live-chart.json +289 -0
  20. package/ai/task-packets/update-live-chart.md +424 -0
  21. package/dist/c-2N7IU2NY.min.js +1 -0
  22. package/dist/c-2WK7YJLL.min.js +1 -0
  23. package/dist/c-33QOXEUG.min.js +1 -0
  24. package/dist/c-42PLDTX7.min.js +1 -0
  25. package/dist/c-447VIMRO.min.js +1 -0
  26. package/dist/c-4FN7Q6VQ.min.js +1 -0
  27. package/dist/c-553QUDKA.min.js +1 -0
  28. package/dist/c-55BAJ333.min.js +1 -0
  29. package/dist/c-7242NXSG.min.js +1 -0
  30. package/dist/c-7EGHJU2F.min.js +1 -0
  31. package/dist/c-7HP7MB2I.min.js +1 -0
  32. package/dist/c-7NBU5ZKS.min.js +1 -0
  33. package/dist/c-AFBSWT77.min.js +1 -0
  34. package/dist/c-AJ7EC32V.min.js +1 -0
  35. package/dist/c-AQADQNY7.min.js +1 -0
  36. package/dist/c-ATM475SA.min.js +1 -0
  37. package/dist/c-AVO3Q7T7.min.js +1 -0
  38. package/dist/c-AZKPVBOC.min.js +1 -0
  39. package/dist/c-BNFJMDHN.min.js +1 -0
  40. package/dist/c-BNG5ECK5.min.js +1 -0
  41. package/dist/c-BOHCQILI.min.js +1 -0
  42. package/dist/c-CCTGN5CK.min.js +1 -0
  43. package/dist/c-CPSPZH6A.min.js +1 -0
  44. package/dist/c-CPV4N35K.min.js +1 -0
  45. package/dist/c-D6HAAPTX.min.js +1 -0
  46. package/dist/c-DE5Q3U2X.min.js +1 -0
  47. package/dist/c-DK662R77.min.js +1 -0
  48. package/dist/c-DY2676CR.min.js +1 -0
  49. package/dist/c-E32M6XW5.min.js +1 -0
  50. package/dist/c-E4JDJH4I.min.js +1 -0
  51. package/dist/c-E7I2L7CU.min.js +1 -0
  52. package/dist/c-EBOQ7ER7.min.js +1 -0
  53. package/dist/c-ELDWAO2V.min.js +1 -0
  54. package/dist/c-EUBTECGM.min.js +1 -0
  55. package/dist/c-GNTXRXRN.min.js +1 -0
  56. package/dist/c-GSZRZRD6.min.js +1 -0
  57. package/dist/c-GWX7JGMF.min.js +1 -0
  58. package/dist/c-GXV3C3MO.min.js +1 -0
  59. package/dist/c-HHTK2R75.min.js +1 -0
  60. package/dist/c-HLLFJYTY.min.js +1 -0
  61. package/dist/c-HPOYKCCG.min.js +1 -0
  62. package/dist/c-HXDKPIKR.min.js +1 -0
  63. package/dist/c-I4QJ6YLM.min.js +1 -0
  64. package/dist/c-IDJV3CZK.min.js +1 -0
  65. package/dist/c-ITKX3RC5.min.js +1 -0
  66. package/dist/c-JG2JCQLP.min.js +1 -0
  67. package/dist/c-JLGRHXGZ.min.js +1 -0
  68. package/dist/c-JO2UGTCP.min.js +1 -0
  69. package/dist/c-JUKIWTBJ.min.js +1 -0
  70. package/dist/c-KCRJGUHP.min.js +1 -0
  71. package/dist/c-LMGSSD2E.min.js +1 -0
  72. package/dist/c-LYQMZMZQ.min.js +1 -0
  73. package/dist/c-LYVKDBQJ.min.js +1 -0
  74. package/dist/c-MVR3RWF3.min.js +1 -0
  75. package/dist/c-MXCP7GNZ.min.js +1 -0
  76. package/dist/c-NG7BLZTR.min.js +1 -0
  77. package/dist/c-NYZ2QNAM.min.js +1 -0
  78. package/dist/c-OO5QLMJC.min.js +1 -0
  79. package/dist/c-OOVX2JPQ.min.js +1 -0
  80. package/dist/c-ORLEBW72.min.js +1 -0
  81. package/dist/c-P65V6HLO.min.js +1 -0
  82. package/dist/c-PP6VY3QU.min.js +1 -0
  83. package/dist/c-PRIKOLTE.min.js +1 -0
  84. package/dist/c-PSNI6KAZ.min.js +1 -0
  85. package/dist/c-PYNW54D2.min.js +1 -0
  86. package/dist/c-QA3HMQJP.min.js +1 -0
  87. package/dist/c-QAVFOEUY.min.js +1 -0
  88. package/dist/c-ROEHCIGV.min.js +1 -0
  89. package/dist/c-S3AZX5PP.min.js +1 -0
  90. package/dist/c-T2V7O2LO.min.js +1 -0
  91. package/dist/c-TIXX5CAU.min.js +1 -0
  92. package/dist/c-TKG2NP7G.min.js +1 -0
  93. package/dist/c-VJTDST2R.min.js +1 -0
  94. package/dist/c-VXLOLYTO.min.js +1 -0
  95. package/dist/c-W4ZUKSEQ.min.js +1 -0
  96. package/dist/c-WH2O53VI.min.js +1 -0
  97. package/dist/c-WNGH47HF.min.js +1 -0
  98. package/dist/c-WUWXGQYA.min.js +1 -0
  99. package/dist/c-XDQKXPX4.min.js +1 -0
  100. package/dist/c-XSB27XPS.min.js +1 -0
  101. package/dist/c-YDECTEUW.min.js +1 -0
  102. package/dist/c-YF3YKVQI.min.js +1 -0
  103. package/dist/c-YLZIV3VS.min.js +1 -0
  104. package/dist/c-ZYPXQF7B.min.js +1 -0
  105. package/dist/components/Annotation.d.ts +3 -2
  106. package/dist/components/access/chartAccessCapabilities.generated.d.ts +14 -0
  107. package/dist/components/access/chartAccessContract.d.ts +90 -0
  108. package/dist/components/access/chartAccessContractFixtures.d.ts +11 -0
  109. package/dist/components/ai/aestheticProfileTypes.d.ts +35 -0
  110. package/dist/components/ai/annotationProvenance.d.ts +2 -7
  111. package/dist/components/ai/auditVisualHierarchy.d.ts +49 -0
  112. package/dist/components/ai/builtInChartRecipeLayouts.d.ts +2 -0
  113. package/dist/components/ai/builtInChartRecipePublic.d.ts +4 -0
  114. package/dist/components/ai/builtInChartRecipes.d.ts +26 -0
  115. package/dist/components/ai/chartCapabilities.d.ts +3 -1
  116. package/dist/components/ai/chartRecipeRegistry.d.ts +7 -1
  117. package/dist/components/ai/chartRecipes.d.ts +10 -0
  118. package/dist/components/ai/colorEvidence.d.ts +12 -0
  119. package/dist/components/ai/describePhysicsProjection.d.ts +18 -0
  120. package/dist/components/ai/describePhysicsSource.d.ts +13 -0
  121. package/dist/components/ai/evaluateAesthetics.d.ts +47 -0
  122. package/dist/components/ai/geoNavigation.d.ts +4 -0
  123. package/dist/components/ai/hierarchyNavigation.d.ts +4 -0
  124. package/dist/components/ai/navigationTree.d.ts +7 -1
  125. package/dist/components/ai/qualityFixtures.d.ts +8 -0
  126. package/dist/components/ai/suggestionPropContracts.d.ts +1 -1
  127. package/dist/components/ai/useNavigationSync.d.ts +3 -3
  128. package/dist/components/artifact/ArtifactInspector.d.ts +26 -0
  129. package/dist/components/artifact/ArtifactInspectorContextSections.d.ts +18 -0
  130. package/dist/components/artifact/artifactContractDiff.d.ts +8 -0
  131. package/dist/components/artifact/artifactInspectorSummary.d.ts +53 -0
  132. package/dist/components/artifact/artifactRevision.d.ts +54 -0
  133. package/dist/components/artifact/artifactTestFixtures.d.ts +17 -0
  134. package/dist/components/artifact/attachmentAudit.d.ts +13 -0
  135. package/dist/components/artifact/claimCorrections.d.ts +3 -0
  136. package/dist/components/artifact/claimGraph.d.ts +5 -0
  137. package/dist/components/artifact/claimLifecycle.d.ts +32 -0
  138. package/dist/components/artifact/claims.d.ts +24 -0
  139. package/dist/components/artifact/collection.d.ts +10 -0
  140. package/dist/components/artifact/collectionCorrectionScope.d.ts +4 -0
  141. package/dist/components/artifact/collectionImpact.d.ts +11 -0
  142. package/dist/components/artifact/collectionLineage.d.ts +3 -0
  143. package/dist/components/artifact/collectionOperations.d.ts +8 -0
  144. package/dist/components/artifact/collectionPolicy.d.ts +22 -0
  145. package/dist/components/artifact/collectionTypes.d.ts +117 -0
  146. package/dist/components/artifact/configurationRepair.d.ts +8 -0
  147. package/dist/components/artifact/contract.d.ts +30 -0
  148. package/dist/components/artifact/evaluateArtifact.d.ts +12 -0
  149. package/dist/components/artifact/evaluateArtifactTypes.d.ts +78 -0
  150. package/dist/components/artifact/evaluationPresentation.d.ts +9 -0
  151. package/dist/components/artifact/evidenceSample.d.ts +8 -0
  152. package/dist/components/artifact/exportPaths.d.ts +8 -0
  153. package/dist/components/artifact/fieldPolicies.d.ts +12 -0
  154. package/dist/components/artifact/fingerprint.d.ts +36 -0
  155. package/dist/components/artifact/grounding.d.ts +51 -0
  156. package/dist/components/artifact/groundingBudget.d.ts +38 -0
  157. package/dist/components/artifact/hostTransfer.d.ts +13 -0
  158. package/dist/components/artifact/identity.d.ts +19 -0
  159. package/dist/components/artifact/inheritance.d.ts +48 -0
  160. package/dist/components/artifact/inheritanceIntegrity.d.ts +3 -0
  161. package/dist/components/artifact/jsonCompatibility.d.ts +2 -0
  162. package/dist/components/artifact/obligations.d.ts +3 -0
  163. package/dist/components/artifact/policies.d.ts +45 -0
  164. package/dist/components/artifact/policyRelations.d.ts +3 -0
  165. package/dist/components/artifact/recordProjection.d.ts +7 -0
  166. package/dist/components/artifact/representation.d.ts +50 -0
  167. package/dist/components/artifact/serialization.d.ts +40 -0
  168. package/dist/components/artifact/temporal.d.ts +32 -0
  169. package/dist/components/artifact/temporalAdapters.d.ts +75 -0
  170. package/dist/components/artifact/temporalAuditHelpers.d.ts +12 -0
  171. package/dist/components/artifact/temporalPresentation.d.ts +8 -0
  172. package/dist/components/artifact/types.d.ts +341 -0
  173. package/dist/components/artifact/validation.d.ts +13 -0
  174. package/dist/components/artifact/validationFieldStatus.d.ts +7 -0
  175. package/dist/components/artifact/validationPrimitives.d.ts +24 -0
  176. package/dist/components/artifact/validationSurfaces.d.ts +7 -0
  177. package/dist/components/artifact/validationTemporal.d.ts +3 -0
  178. package/dist/components/charts/geo/FlowMap.d.ts +7 -0
  179. package/dist/components/charts/geo/flowMapLineStyle.d.ts +18 -0
  180. package/dist/components/charts/index.d.ts +4 -0
  181. package/dist/components/charts/network/ChordDiagram.d.ts +5 -1
  182. package/dist/components/charts/network/CirclePack.d.ts +8 -1
  183. package/dist/components/charts/network/OrbitDiagram.d.ts +9 -0
  184. package/dist/components/charts/network/TreeDiagram.d.ts +8 -1
  185. package/dist/components/charts/network/Treemap.d.ts +8 -1
  186. package/dist/components/charts/ordinal/BarChart.d.ts +6 -0
  187. package/dist/components/charts/ordinal/BoxPlot.d.ts +3 -0
  188. package/dist/components/charts/ordinal/DonutChart.d.ts +5 -0
  189. package/dist/components/charts/ordinal/DotPlot.d.ts +3 -0
  190. package/dist/components/charts/ordinal/FunnelChart.d.ts +5 -0
  191. package/dist/components/charts/ordinal/GaugeChart.d.ts +3 -0
  192. package/dist/components/charts/ordinal/GroupedBarChart.d.ts +6 -0
  193. package/dist/components/charts/ordinal/Histogram.d.ts +3 -0
  194. package/dist/components/charts/ordinal/LikertChart.d.ts +3 -0
  195. package/dist/components/charts/ordinal/PieChart.d.ts +5 -0
  196. package/dist/components/charts/ordinal/RadarChart.capability.d.ts +2 -0
  197. package/dist/components/charts/ordinal/RadarChart.d.ts +77 -0
  198. package/dist/components/charts/ordinal/RidgelinePlot.d.ts +3 -0
  199. package/dist/components/charts/ordinal/StackedBarChart.d.ts +6 -0
  200. package/dist/components/charts/ordinal/SwarmPlot.d.ts +3 -0
  201. package/dist/components/charts/ordinal/SwimlaneChart.d.ts +3 -0
  202. package/dist/components/charts/ordinal/ViolinPlot.d.ts +3 -0
  203. package/dist/components/charts/physics/CollisionSwarmChart.d.ts +1 -1
  204. package/dist/components/charts/physics/EventDropChart.d.ts +3 -1
  205. package/dist/components/charts/physics/GaltonBoardChart.d.ts +4 -2
  206. package/dist/components/charts/physics/GauntletChart.d.ts +1 -5
  207. package/dist/components/charts/physics/ProcessFlowChart.d.ts +6 -0
  208. package/dist/components/charts/physics/UnitPileChart.d.ts +2 -1
  209. package/dist/components/charts/physics/chainReactionTypes.d.ts +3 -0
  210. package/dist/components/charts/physics/collisionSwarmPacking.d.ts +14 -0
  211. package/dist/components/charts/physics/collisionSwarmPhysics.d.ts +1 -0
  212. package/dist/components/charts/physics/eventDropAdmission.d.ts +32 -0
  213. package/dist/components/charts/physics/eventDropPhysics.d.ts +22 -1
  214. package/dist/components/charts/physics/galtonBoardPhysics.d.ts +2 -9
  215. package/dist/components/charts/physics/gauntletPhysics.d.ts +1 -0
  216. package/dist/components/charts/physics/physicsChartReconcile.d.ts +4 -0
  217. package/dist/components/charts/physics/physicsChartUtils.d.ts +1 -1
  218. package/dist/components/charts/physics/physicsGaltonData.d.ts +10 -0
  219. package/dist/components/charts/physics/physicsHocHandle.d.ts +2 -0
  220. package/dist/components/charts/physics/physicsHocUtils.d.ts +7 -1
  221. package/dist/components/charts/physics/physicsPileData.d.ts +11 -0
  222. package/dist/components/charts/physics/physicsPilePhysics.d.ts +5 -12
  223. package/dist/components/charts/physics/physicsProjectionOverlays.d.ts +1 -1
  224. package/dist/components/charts/physics/physicsSourceRows.d.ts +8 -0
  225. package/dist/components/charts/physics/usePhysicsChartData.d.ts +19 -0
  226. package/dist/components/charts/realtime/RealtimeHeatmap.d.ts +14 -1
  227. package/dist/components/charts/realtime/RealtimeHistogram.d.ts +25 -7
  228. package/dist/components/charts/realtime/RealtimeLineChart.d.ts +18 -5
  229. package/dist/components/charts/realtime/RealtimeSwarmChart.d.ts +11 -1
  230. package/dist/components/charts/realtime/RealtimeWaterfallChart.d.ts +11 -1
  231. package/dist/components/charts/realtime/aggregate.d.ts +12 -1
  232. package/dist/components/charts/realtime/realtimeAccessors.d.ts +4 -0
  233. package/dist/components/charts/realtime/realtimeChartRuntime.d.ts +8 -5
  234. package/dist/components/charts/realtime/realtimeChartTypes.d.ts +7 -0
  235. package/dist/components/charts/realtime/realtimeStyleRules.d.ts +4 -0
  236. package/dist/components/charts/realtime/temporalHistogramConfig.d.ts +17 -11
  237. package/dist/components/charts/shared/GaugeReadout.d.ts +9 -0
  238. package/dist/components/charts/shared/ThresholdAnnotation.d.ts +18 -0
  239. package/dist/components/charts/shared/ThresholdEndCap.d.ts +7 -0
  240. package/dist/components/charts/shared/annotationStatusFilter.d.ts +18 -0
  241. package/dist/components/charts/shared/auditAccessibilityText.d.ts +4 -2
  242. package/dist/components/charts/shared/chartDefinitionPilot.d.ts +5 -4
  243. package/dist/components/charts/shared/chartSpecCore.d.ts +2 -2
  244. package/dist/components/charts/shared/heatmapStyleRules.d.ts +13 -0
  245. package/dist/components/charts/shared/knownChartComponents.d.ts +1 -1
  246. package/dist/components/charts/shared/networkUtils.d.ts +14 -0
  247. package/dist/components/charts/shared/numericTickFormatter.d.ts +2 -0
  248. package/dist/components/charts/shared/radialCenterContent.d.ts +10 -0
  249. package/dist/components/charts/shared/selectionUtils.d.ts +3 -1
  250. package/dist/components/charts/shared/tooltipUtils.d.ts +1 -1
  251. package/dist/components/charts/shared/types.d.ts +4 -2
  252. package/dist/components/charts/shared/useChartLegend.d.ts +6 -1
  253. package/dist/components/charts/shared/useLikertAggregation.d.ts +8 -2
  254. package/dist/components/charts/shared/useNetworkChartSetup.d.ts +9 -5
  255. package/dist/components/charts/shared/useOrdinalPieceStyle.d.ts +1 -1
  256. package/dist/components/charts/shared/useXYBrush.d.ts +24 -0
  257. package/dist/components/charts/shared/useXYPointStyle.d.ts +2 -0
  258. package/dist/components/charts/xy/BubbleChart.d.ts +7 -0
  259. package/dist/components/charts/xy/CandlestickChart.d.ts +7 -0
  260. package/dist/components/charts/xy/DifferenceChart.d.ts +7 -0
  261. package/dist/components/charts/xy/Heatmap.d.ts +16 -0
  262. package/dist/components/charts/xy/LineChart.d.ts +9 -0
  263. package/dist/components/charts/xy/MinimapChart.d.ts +7 -0
  264. package/dist/components/charts/xy/MultiAxisLineChart.d.ts +7 -0
  265. package/dist/components/charts/xy/Scatterplot.d.ts +7 -0
  266. package/dist/components/charts/xy/ScatterplotMatrix.d.ts +6 -0
  267. package/dist/components/charts/xy/WaterfallChart.capability.d.ts +2 -0
  268. package/dist/components/charts/xy/WaterfallChart.d.ts +76 -0
  269. package/dist/components/charts/xy/differenceMarkStyle.d.ts +28 -0
  270. package/dist/components/charts/xy/multiAxisFields.d.ts +23 -0
  271. package/dist/components/charts/xy/scatterplotMatrixCells.d.ts +50 -0
  272. package/dist/components/evidence/chartEvidenceEnvelope.d.ts +154 -0
  273. package/dist/components/evidence/evidenceEnvelopeInput.d.ts +8 -0
  274. package/dist/components/evidence/evidenceEnvelopeValidation.d.ts +11 -0
  275. package/dist/components/evidence/evidenceGate.d.ts +30 -0
  276. package/dist/components/evidence/renderedSceneHash.d.ts +23 -0
  277. package/dist/components/evidence/stableJsonHash.d.ts +4 -0
  278. package/dist/components/export/chartConfig.d.ts +40 -5
  279. package/dist/components/export/chartConfigArtifact.d.ts +6 -0
  280. package/dist/components/legendLayout.d.ts +18 -0
  281. package/dist/components/legendStyles.d.ts +4 -0
  282. package/dist/components/realtime/BinAccumulator.d.ts +5 -1
  283. package/dist/components/realtime/types.d.ts +16 -7
  284. package/dist/components/recipes/adjacencyFlow.d.ts +12 -0
  285. package/dist/components/recipes/adjacencyFlowAggregation.d.ts +72 -0
  286. package/dist/components/recipes/adjacencyFlowGeometry.d.ts +79 -0
  287. package/dist/components/recipes/firstAvailableTrack.d.ts +17 -0
  288. package/dist/components/recipes/intervals.d.ts +1 -1
  289. package/dist/components/recipes/lineageDag.d.ts +17 -0
  290. package/dist/components/recipes/lineageDagHulls.d.ts +22 -0
  291. package/dist/components/recipes/transitDiagram.d.ts +75 -0
  292. package/dist/components/recipes/transitDiagramGeometry.d.ts +47 -0
  293. package/dist/components/semiotic-access.d.ts +9 -0
  294. package/dist/components/semiotic-ai-audits.d.ts +17 -0
  295. package/dist/components/semiotic-ai-core.d.ts +38 -18
  296. package/dist/components/semiotic-ai.d.ts +20 -20
  297. package/dist/components/semiotic-artifact-react.d.ts +10 -0
  298. package/dist/components/semiotic-artifact.d.ts +23 -0
  299. package/dist/components/semiotic-evidence.d.ts +10 -0
  300. package/dist/components/semiotic-experimental.d.ts +1 -1
  301. package/dist/components/semiotic-line.d.ts +9 -0
  302. package/dist/components/semiotic-network.d.ts +3 -0
  303. package/dist/components/semiotic-ordinal.d.ts +2 -0
  304. package/dist/components/semiotic-physics.d.ts +4 -4
  305. package/dist/components/semiotic-realtime-core.d.ts +3 -2
  306. package/dist/components/semiotic-recipes-core.d.ts +6 -0
  307. package/dist/components/semiotic-text.d.ts +2 -0
  308. package/dist/components/semiotic-themes-core.d.ts +3 -0
  309. package/dist/components/semiotic-utils-core.d.ts +19 -14
  310. package/dist/components/semiotic-xy.d.ts +3 -0
  311. package/dist/components/semiotic.d.ts +11 -5
  312. package/dist/components/server/renderDashboard.d.ts +37 -0
  313. package/dist/components/server/renderEvidence.d.ts +39 -0
  314. package/dist/components/server/renderToStaticSVG.d.ts +5 -30
  315. package/dist/components/server/serverChartConfigShared.d.ts +13 -0
  316. package/dist/components/server/serverChartConfigs.d.ts +9 -0
  317. package/dist/components/server/serverChartConfigsComposite.d.ts +4 -0
  318. package/dist/components/server/serverChartConfigsCustom.d.ts +2 -0
  319. package/dist/components/server/serverChartConfigsGeo.d.ts +1 -0
  320. package/dist/components/server/serverChartConfigsOrdinal.d.ts +3 -2
  321. package/dist/components/server/serverChartConfigsXY.d.ts +1 -0
  322. package/dist/components/server/serverChartConfigsXYExtra.d.ts +3 -0
  323. package/dist/components/server/serverCompositeChainReaction.d.ts +3 -0
  324. package/dist/components/server/serverOrdinalGauge.d.ts +3 -0
  325. package/dist/components/server/serverOrdinalLikert.d.ts +2 -0
  326. package/dist/components/server/staticSVGChrome.d.ts +1 -4
  327. package/dist/components/server/staticXYAxisTicks.d.ts +2 -38
  328. package/dist/components/server/staticXYGrid.d.ts +1 -1
  329. package/dist/components/server/svgSizing.d.ts +6 -0
  330. package/dist/components/shared/svgRoot.d.ts +17 -0
  331. package/dist/components/store/selectionProvenance.d.ts +14 -0
  332. package/dist/components/store/themeCore.d.ts +5 -1
  333. package/dist/components/stream/GeoPipelineStore.d.ts +1 -1
  334. package/dist/components/stream/GeoSVGOverlay.d.ts +4 -0
  335. package/dist/components/stream/MarginalGraphics.d.ts +3 -3
  336. package/dist/components/stream/MarginalGraphicsLazy.d.ts +22 -0
  337. package/dist/components/stream/NetworkPipelineStore.d.ts +2 -0
  338. package/dist/components/stream/NetworkSVGOverlay.d.ts +4 -0
  339. package/dist/components/stream/OrdinalPipelineStore.d.ts +1 -1
  340. package/dist/components/stream/OrdinalSVGOverlay.d.ts +4 -0
  341. package/dist/components/stream/PipelineStore.d.ts +1 -1
  342. package/dist/components/stream/SVGOverlay.d.ts +4 -0
  343. package/dist/components/stream/SceneToSVG.d.ts +4 -19
  344. package/dist/components/stream/SceneToSVGXY.d.ts +13 -0
  345. package/dist/components/stream/StreamGeoFrame.d.ts +1 -2
  346. package/dist/components/stream/StreamOrdinalFrame.d.ts +1 -2
  347. package/dist/components/stream/XYGrid.d.ts +11 -0
  348. package/dist/components/stream/axisTickUtils.d.ts +0 -1
  349. package/dist/components/stream/canvasSetup.d.ts +8 -2
  350. package/dist/components/stream/customLayoutAttempt.d.ts +21 -0
  351. package/dist/components/stream/geoTypes.d.ts +1 -1
  352. package/dist/components/stream/hitTestUtils.d.ts +2 -0
  353. package/dist/components/stream/isServerEnvironment.d.ts +6 -0
  354. package/dist/components/stream/layouts/forceLayoutNodeSize.d.ts +12 -0
  355. package/dist/components/stream/layouts/forceLayoutPlugin.d.ts +2 -9
  356. package/dist/components/stream/layouts/forceLayoutWorkerClient.d.ts +2 -21
  357. package/dist/components/stream/layouts/forceLayoutWorkerPolicy.d.ts +21 -0
  358. package/dist/components/stream/layouts/index.d.ts +6 -12
  359. package/dist/components/stream/layouts/missingPlugin.d.ts +7 -0
  360. package/dist/components/stream/layouts/registerBuiltIn.d.ts +1 -0
  361. package/dist/components/stream/layouts/registry.d.ts +12 -0
  362. package/dist/components/stream/marginalConfig.d.ts +3 -0
  363. package/dist/components/stream/networkCustomLayout.d.ts +7 -0
  364. package/dist/components/stream/networkCustomLayoutOutput.d.ts +13 -0
  365. package/dist/components/stream/networkCustomLayoutRunner.d.ts +1 -1
  366. package/dist/components/stream/networkTypes.d.ts +5 -1
  367. package/dist/components/stream/ordinalTypes.d.ts +1 -1
  368. package/dist/components/stream/overlayAccessibleText.d.ts +18 -0
  369. package/dist/components/stream/physics/PhysicsControllers.d.ts +1 -1
  370. package/dist/components/stream/physics/PhysicsKernel.d.ts +9 -0
  371. package/dist/components/stream/physics/PhysicsPipelineStore.d.ts +5 -4
  372. package/dist/components/stream/physics/PhysicsPipelineTypes.d.ts +9 -0
  373. package/dist/components/stream/physics/StreamPhysicsTypes.d.ts +4 -1
  374. package/dist/components/stream/physics/physicsCanvasCoordinates.d.ts +5 -0
  375. package/dist/components/stream/physics/physicsFixedPosition.d.ts +16 -0
  376. package/dist/components/stream/physics/physicsKernelCloning.d.ts +6 -0
  377. package/dist/components/stream/physics/physicsPipelineObservations.d.ts +2 -0
  378. package/dist/components/stream/physics/physicsPipelineSettle.d.ts +15 -9
  379. package/dist/components/stream/physics/physicsRegionRuntime.d.ts +8 -17
  380. package/dist/components/stream/physics/physicsSemanticUI.d.ts +9 -0
  381. package/dist/components/stream/pipelineConfig.d.ts +4 -0
  382. package/dist/components/stream/pipelineDomainResolution.d.ts +6 -0
  383. package/dist/components/stream/pipelineStoreUpdateResults.d.ts +1 -1
  384. package/dist/components/stream/renderers/pointCanvasRenderer.d.ts +4 -0
  385. package/dist/components/stream/renderers/resolveCSSColor.d.ts +4 -4
  386. package/dist/components/stream/resolveXYAxes.d.ts +13 -0
  387. package/dist/components/stream/sceneToSVGShared.d.ts +2 -1
  388. package/dist/components/stream/seriesGeometry.d.ts +13 -0
  389. package/dist/components/stream/streamEncodingTypes.d.ts +53 -0
  390. package/dist/components/stream/types.d.ts +12 -54
  391. package/dist/components/stream/useEnsureCustomXYRenderers.d.ts +18 -0
  392. package/dist/components/stream/useGeoFrameHandle.d.ts +16 -0
  393. package/dist/components/stream/useMarginalValues.d.ts +13 -0
  394. package/dist/components/stream/useOrdinalFrameHandle.d.ts +15 -0
  395. package/dist/components/stream/useXYFrameHandle.d.ts +15 -0
  396. package/dist/components/stream/xyAxisTicks.d.ts +25 -0
  397. package/dist/components/stream/xyCanvasRenderers.d.ts +4 -4
  398. package/dist/components/stream/xyDateTicks.d.ts +3 -2
  399. package/dist/components/stream/xyFrameAxisTypes.d.ts +2 -0
  400. package/dist/components/stream/xyPlugins/areaPlugin.d.ts +2 -0
  401. package/dist/components/stream/xyPlugins/barPlugin.d.ts +2 -0
  402. package/dist/components/stream/xyPlugins/candlestickPlugin.d.ts +2 -0
  403. package/dist/components/stream/xyPlugins/customPlugin.d.ts +6 -0
  404. package/dist/components/stream/xyPlugins/heatmapPlugin.d.ts +2 -0
  405. package/dist/components/stream/xyPlugins/lineFamily.d.ts +5 -0
  406. package/dist/components/stream/xyPlugins/linePlugin.d.ts +2 -0
  407. package/dist/components/stream/xyPlugins/missingPlugin.d.ts +7 -0
  408. package/dist/components/stream/xyPlugins/mixedPlugin.d.ts +2 -0
  409. package/dist/components/stream/xyPlugins/pointPlugin.d.ts +3 -0
  410. package/dist/components/stream/xyPlugins/registerBuiltIn.d.ts +1 -0
  411. package/dist/components/stream/xyPlugins/registry.d.ts +31 -0
  412. package/dist/components/stream/xyPlugins/stackedAreaPlugin.d.ts +2 -0
  413. package/dist/components/stream/xyPlugins/swarmPlugin.d.ts +2 -0
  414. package/dist/components/stream/xyPlugins/waterfallPlugin.d.ts +2 -0
  415. package/dist/components/stream/xySceneBuilders/ribbonScene.d.ts +1 -1
  416. package/dist/components/stream/xySceneBuilders/types.d.ts +1 -0
  417. package/dist/components/text/annotationTextLayout.d.ts +28 -0
  418. package/dist/components/text/pretextAnnotationLayout.d.ts +29 -0
  419. package/dist/components/text/usePretextAnnotations.d.ts +12 -0
  420. package/dist/controls.module.min.js +1 -1
  421. package/dist/forceLayoutWorker.js +1 -1
  422. package/dist/geo.min.js +1 -1
  423. package/dist/geo.module.min.js +1 -1
  424. package/dist/network.module.min.js +1 -1
  425. package/dist/ordinal.module.min.js +1 -1
  426. package/dist/physics-matter.min.js +1 -1
  427. package/dist/physics-matter.module.min.js +1 -1
  428. package/dist/physics-rapier.min.js +1 -1
  429. package/dist/physics-rapier.module.min.js +1 -1
  430. package/dist/physics.module.min.js +1 -1
  431. package/dist/physicsWorker.js +1 -1
  432. package/dist/processSankeyLayoutWorker.js +1 -1
  433. package/dist/rough.min.js +1 -1
  434. package/dist/rough.module.min.js +1 -1
  435. package/dist/semiotic-access.d.ts +9 -0
  436. package/dist/semiotic-access.min.js +2 -0
  437. package/dist/semiotic-access.module.min.js +2 -0
  438. package/dist/semiotic-ai-artifact-policy-constants.module.min.js +2 -0
  439. package/dist/semiotic-ai-core.d.ts +38 -18
  440. package/dist/semiotic-ai-core.min.js +1 -1
  441. package/dist/semiotic-ai-core.module.min.js +1 -1
  442. package/dist/semiotic-ai-hash-primitives.module.min.js +2 -0
  443. package/dist/semiotic-ai.d.ts +20 -20
  444. package/dist/semiotic-ai.module.min.js +1 -1
  445. package/dist/semiotic-artifact-react.d.ts +10 -0
  446. package/dist/semiotic-artifact-react.min.js +2 -0
  447. package/dist/semiotic-artifact-react.module.min.js +2 -0
  448. package/dist/semiotic-artifact.d.ts +23 -0
  449. package/dist/semiotic-artifact.min.js +1 -0
  450. package/dist/semiotic-artifact.module.min.js +1 -0
  451. package/dist/semiotic-client-cjs-shared.min.js +1 -1
  452. package/dist/semiotic-client-glyph.module.min.js +1 -1
  453. package/dist/semiotic-client-responsive.module.min.js +1 -1
  454. package/dist/semiotic-client-shared.module.min.js +1 -1
  455. package/dist/semiotic-custom-layout-selection-cjs-shared.min.js +1 -1
  456. package/dist/semiotic-data.min.js +1 -1
  457. package/dist/semiotic-data.module.min.js +1 -1
  458. package/dist/semiotic-evidence.d.ts +10 -0
  459. package/dist/semiotic-evidence.min.js +1 -0
  460. package/dist/semiotic-evidence.module.min.js +1 -0
  461. package/dist/semiotic-experimental-auxiliary.module.min.js +1 -1
  462. package/dist/semiotic-experimental-node-auxiliary.module.min.js +1 -1
  463. package/dist/semiotic-experimental-react-shared.module.min.js +1 -1
  464. package/dist/semiotic-experimental-vacp.min.js +1 -1
  465. package/dist/semiotic-experimental-vacp.module.min.js +1 -1
  466. package/dist/semiotic-experimental.d.ts +1 -1
  467. package/dist/semiotic-line.d.ts +9 -0
  468. package/dist/semiotic-line.min.js +2 -0
  469. package/dist/semiotic-line.module.min.js +2 -0
  470. package/dist/semiotic-network.d.ts +3 -0
  471. package/dist/semiotic-ordinal.d.ts +2 -0
  472. package/dist/semiotic-physics.d.ts +4 -4
  473. package/dist/semiotic-realtime-core.d.ts +3 -2
  474. package/dist/semiotic-realtime-core.module.min.js +1 -1
  475. package/dist/semiotic-realtime-react.module.min.js +1 -1
  476. package/dist/semiotic-recipes-core-cjs-base.min.js +1 -1
  477. package/dist/semiotic-recipes-core.d.ts +6 -0
  478. package/dist/semiotic-recipes-core.module.min.js +1 -1
  479. package/dist/semiotic-recipes-geo-cjs.min.js +1 -1
  480. package/dist/semiotic-recipes-react.min.js +1 -1
  481. package/dist/semiotic-server-edge-node.module.min.js +1 -1
  482. package/dist/semiotic-server-edge.min.js +1 -1
  483. package/dist/semiotic-server-edge.module.min.js +1 -1
  484. package/dist/semiotic-server-node.min.js +1 -1
  485. package/dist/semiotic-server-node.module.min.js +1 -1
  486. package/dist/semiotic-text.d.ts +2 -0
  487. package/dist/semiotic-text.min.js +2 -0
  488. package/dist/semiotic-text.module.min.js +2 -0
  489. package/dist/semiotic-themes-core.d.ts +3 -0
  490. package/dist/semiotic-themes-core.min.js +1 -1
  491. package/dist/semiotic-themes-core.module.min.js +1 -1
  492. package/dist/semiotic-themes.min.js +1 -1
  493. package/dist/semiotic-themes.module.min.js +1 -1
  494. package/dist/semiotic-utils-core.d.ts +19 -14
  495. package/dist/semiotic-utils-core.min.js +1 -1
  496. package/dist/semiotic-utils-core.module.min.js +1 -1
  497. package/dist/semiotic-value.module.min.js +1 -1
  498. package/dist/semiotic-xy.d.ts +3 -0
  499. package/dist/semiotic.d.ts +11 -5
  500. package/dist/semiotic.module.min.js +1 -1
  501. package/dist/server.min.js +1 -1
  502. package/dist/server.module.min.js +1 -1
  503. package/dist/xy.module.min.js +1 -1
  504. package/package.json +91 -71
  505. package/spec/README.md +8 -3
  506. package/spec/v0.1/artifact-contract.schema.json +2299 -0
  507. package/spec/v0.1/examples/artifact-contract-full.json +369 -0
  508. package/spec/v0.1/examples/artifact-contract-unknown-state.json +46 -0
  509. package/dist/c-3BLJEQNG.min.js +0 -1
  510. package/dist/c-3KZD6AXJ.min.js +0 -1
  511. package/dist/c-4TWEX5HG.min.js +0 -1
  512. package/dist/c-52TEGIUJ.min.js +0 -1
  513. package/dist/c-5YCIX3VZ.min.js +0 -1
  514. package/dist/c-6FEKTA3U.min.js +0 -1
  515. package/dist/c-6O5EVOPH.min.js +0 -1
  516. package/dist/c-74HEEZGK.min.js +0 -1
  517. package/dist/c-AKAF6JAD.min.js +0 -1
  518. package/dist/c-BBKITSXB.min.js +0 -1
  519. package/dist/c-BWNB6USU.min.js +0 -1
  520. package/dist/c-C25ENHIK.min.js +0 -1
  521. package/dist/c-CDR5AO3R.min.js +0 -1
  522. package/dist/c-COHXCW3Q.min.js +0 -1
  523. package/dist/c-DADXPJXV.min.js +0 -1
  524. package/dist/c-E3JFRRMI.min.js +0 -1
  525. package/dist/c-EBFPQHHO.min.js +0 -1
  526. package/dist/c-G36WS6LN.min.js +0 -1
  527. package/dist/c-GGISSW5E.min.js +0 -1
  528. package/dist/c-GIKRQI4X.min.js +0 -1
  529. package/dist/c-GPYOFETM.min.js +0 -1
  530. package/dist/c-IDUHYYSI.min.js +0 -1
  531. package/dist/c-IUHFPMHD.min.js +0 -1
  532. package/dist/c-J5G56TUH.min.js +0 -1
  533. package/dist/c-JAZ73J32.min.js +0 -1
  534. package/dist/c-KG3NXHAL.min.js +0 -1
  535. package/dist/c-KII3PLZE.min.js +0 -1
  536. package/dist/c-LIXGXMNS.min.js +0 -1
  537. package/dist/c-LVEY6D6B.min.js +0 -1
  538. package/dist/c-M4Y3BHFR.min.js +0 -1
  539. package/dist/c-MAIICR2Z.min.js +0 -1
  540. package/dist/c-MG5DM6VE.min.js +0 -1
  541. package/dist/c-MNF2S4AA.min.js +0 -1
  542. package/dist/c-MT3WBK7M.min.js +0 -1
  543. package/dist/c-NY3JWV2K.min.js +0 -1
  544. package/dist/c-O6U6K4CW.min.js +0 -1
  545. package/dist/c-OQ7M4AGV.min.js +0 -1
  546. package/dist/c-OXYMVK7Q.min.js +0 -1
  547. package/dist/c-PPWDL5ZI.min.js +0 -1
  548. package/dist/c-QHF5YON3.min.js +0 -1
  549. package/dist/c-RR3GO5SW.min.js +0 -1
  550. package/dist/c-RSVIHIQ4.min.js +0 -1
  551. package/dist/c-S2BXNNJN.min.js +0 -1
  552. package/dist/c-S6U5CGT5.min.js +0 -1
  553. package/dist/c-SLGMUBUL.min.js +0 -1
  554. package/dist/c-SUILCHWU.min.js +0 -1
  555. package/dist/c-TZW3JGJ5.min.js +0 -1
  556. package/dist/c-US5ZFT6E.min.js +0 -1
  557. package/dist/c-USFMFKIH.min.js +0 -1
  558. package/dist/c-UUKVD4WB.min.js +0 -1
  559. package/dist/c-VGW3VG3I.min.js +0 -1
  560. package/dist/c-W3CE4A4S.min.js +0 -1
  561. package/dist/c-WJCD5EUY.min.js +0 -1
  562. package/dist/c-X5UBGU2V.min.js +0 -1
  563. package/dist/c-YDAY2WFR.min.js +0 -1
  564. package/dist/c-ZOWWU34K.min.js +0 -1
  565. /package/dist/{c-N4G2L7ID.min.js → c-HYW2XA4Q.min.js} +0 -0
  566. /package/dist/{c-OCI56QF2.min.js → c-V4XMSLC3.min.js} +0 -0
@@ -0,0 +1,369 @@
1
+ {
2
+ "contractVersion": "0.1",
3
+ "artifact": {
4
+ "id": "weekly-orders-v3",
5
+ "kind": "chart",
6
+ "component": "XYFrame",
7
+ "title": "Weekly orders and fulfillment range",
8
+ "createdAt": "2026-08-31T16:00:00Z",
9
+ "configFingerprint": "sha256:config-example",
10
+ "dataFingerprint": "sha256:data-example",
11
+ "revision": "3"
12
+ },
13
+ "purpose": {
14
+ "intents": [
15
+ {
16
+ "id": "compare-change-over-time",
17
+ "strength": "primary",
18
+ "source": "author",
19
+ "rationale": "Operators need to see changes relative to the preceding weeks."
20
+ },
21
+ {
22
+ "id": "show-uncertainty",
23
+ "strength": "secondary",
24
+ "source": "derived",
25
+ "rationale": "Recent fulfillment totals are not yet settled."
26
+ }
27
+ ],
28
+ "communicativeAct": "Show the recent increase while keeping the provisional range visible.",
29
+ "decisionContext": "Weekly staffing review",
30
+ "stakes": "operational",
31
+ "allowedUses": ["Adjust the next week's review queue"],
32
+ "prohibitedUses": ["Use as an audited financial total"]
33
+ },
34
+ "claims": [
35
+ {
36
+ "id": "claim-orders-v2",
37
+ "text": "The earlier estimate placed weekly orders at 1080.",
38
+ "kind": "aggregation",
39
+ "status": "superseded",
40
+ "evidenceIds": ["evidence-source"],
41
+ "asOf": "2026-08-30T23:59:59Z",
42
+ "authoredBy": {
43
+ "id": "analytics-team",
44
+ "name": "Analytics team",
45
+ "kind": "human"
46
+ },
47
+ "tags": ["orders", "weekly"]
48
+ },
49
+ {
50
+ "id": "claim-orders-v3",
51
+ "text": "Weekly orders increased to 1120, with an expected settled range from 1090 to 1150.",
52
+ "kind": "aggregation",
53
+ "status": "provisional",
54
+ "evidenceIds": ["evidence-aggregate"],
55
+ "scope": {
56
+ "region": "north",
57
+ "includedChannels": ["web", "store"],
58
+ "returnsExcluded": true
59
+ },
60
+ "uncertainty": {
61
+ "kind": "interval",
62
+ "lower": 1090,
63
+ "upper": 1150,
64
+ "confidence": 0.9,
65
+ "unit": "orders",
66
+ "description": "The interval accounts for late-arriving fulfillment events."
67
+ },
68
+ "asOf": "2026-08-31T23:59:59Z",
69
+ "supersedes": ["claim-orders-v2"],
70
+ "authoredBy": {
71
+ "id": "pipeline",
72
+ "name": "Weekly aggregation job",
73
+ "kind": "system"
74
+ },
75
+ "review": {
76
+ "status": "reviewed",
77
+ "reviewer": {
78
+ "id": "reviewer-17",
79
+ "name": "Operations reviewer",
80
+ "kind": "human"
81
+ },
82
+ "reviewedAt": "2026-09-01T15:30:00Z",
83
+ "rationale": "Source coverage and the provisional interval were checked."
84
+ },
85
+ "tags": ["orders", "weekly", "provisional"]
86
+ }
87
+ ],
88
+ "evidence": [
89
+ {
90
+ "id": "evidence-source",
91
+ "role": "source-data",
92
+ "label": "Order event snapshot",
93
+ "source": {
94
+ "name": "Orders warehouse",
95
+ "uri": "warehouse://orders/events",
96
+ "version": "snapshot-2026-08-31",
97
+ "retrievedAt": "2026-09-01T14:55:00Z",
98
+ "publisher": "Commerce data platform"
99
+ },
100
+ "fingerprint": "sha256:source-example",
101
+ "dataVersion": "2026-08-31.2",
102
+ "observedAt": "2026-08-31T23:59:59Z",
103
+ "scope": {
104
+ "region": "north",
105
+ "dateRange": {
106
+ "start": "2026-08-25",
107
+ "end": "2026-08-31"
108
+ }
109
+ },
110
+ "sample": {
111
+ "rowCount": 1120,
112
+ "fields": ["day", "orders"],
113
+ "values": [
114
+ { "day": "2026-08-31", "orders": 176 },
115
+ { "day": "2026-08-30", "orders": 164 }
116
+ ],
117
+ "truncated": true
118
+ },
119
+ "relationship": "descriptive"
120
+ },
121
+ {
122
+ "id": "evidence-aggregate",
123
+ "role": "transformation",
124
+ "label": "Weekly order aggregation",
125
+ "fingerprint": "sha256:aggregate-example",
126
+ "observedAt": "2026-08-31T23:59:59Z",
127
+ "transformation": {
128
+ "id": "transform-weekly-orders",
129
+ "kind": "aggregation",
130
+ "description": "Group included order events by week and sum their order counts.",
131
+ "inputEvidenceIds": ["evidence-source"],
132
+ "parameters": {
133
+ "groupBy": "week",
134
+ "measure": "count",
135
+ "lateArrivalWindowHours": 48
136
+ },
137
+ "assumptions": ["Duplicate event identifiers have been removed"],
138
+ "implementation": "analytics/orders/weekly.sql@8d12a4f",
139
+ "performedAt": "2026-09-01T15:00:00Z",
140
+ "performedBy": {
141
+ "id": "pipeline",
142
+ "name": "Weekly aggregation job",
143
+ "kind": "system"
144
+ }
145
+ },
146
+ "generatedClaimId": "claim-orders-v3",
147
+ "relationship": "descriptive"
148
+ }
149
+ ],
150
+ "time": {
151
+ "eventTime": {
152
+ "field": "orderCreatedAt",
153
+ "value": "2026-08-31T23:59:59Z",
154
+ "timezone": "UTC",
155
+ "granularity": "day"
156
+ },
157
+ "observedAt": "2026-08-31T23:59:59Z",
158
+ "ingestedAt": "2026-09-01T14:50:00Z",
159
+ "processedAt": "2026-09-01T15:00:00Z",
160
+ "publishedAt": "2026-09-01T16:00:00Z",
161
+ "snapshotAt": "2026-09-01T14:45:00Z",
162
+ "presentation": {
163
+ "state": "mixed",
164
+ "label": "Provisional through August 31"
165
+ },
166
+ "freshness": {
167
+ "status": "fresh",
168
+ "checkedAt": "2026-09-01T15:55:00Z",
169
+ "heartbeatAt": "2026-09-01T15:54:00Z",
170
+ "expiresAt": "2026-09-02T16:00:00Z",
171
+ "basis": "Daily publication service-level objective"
172
+ },
173
+ "watermark": {
174
+ "value": "2026-08-31T22:00:00Z",
175
+ "policy": "Event time minus accepted source delay",
176
+ "allowedLateness": "PT48H"
177
+ },
178
+ "window": {
179
+ "start": "2026-08-25T00:00:00Z",
180
+ "end": "2026-09-01T00:00:00Z",
181
+ "status": "provisional"
182
+ },
183
+ "completeness": {
184
+ "status": "provisional",
185
+ "basis": "Late-arriving fulfillment events remain possible"
186
+ },
187
+ "revision": {
188
+ "status": "corrected",
189
+ "previousArtifactId": "weekly-orders-v2",
190
+ "correctionId": "correction-weekly-orders-v3",
191
+ "reason": "Late events changed the prior weekly total."
192
+ },
193
+ "snapshot": {
194
+ "id": "orders-snapshot-2026-08-31",
195
+ "format": "iceberg",
196
+ "schemaVersion": "12",
197
+ "catalogRef": "analytics.orders.events"
198
+ },
199
+ "sources": [
200
+ {
201
+ "id": "order-events",
202
+ "kind": "stream",
203
+ "label": "Order events",
204
+ "observedAt": "2026-09-01T15:54:00Z",
205
+ "version": "7",
206
+ "timezone": "UTC",
207
+ "granularity": "event",
208
+ "freshness": "fresh",
209
+ "completeness": "provisional"
210
+ }
211
+ ]
212
+ },
213
+ "reception": {
214
+ "channels": [
215
+ {
216
+ "channel": "visual",
217
+ "disclosure": "detailed",
218
+ "navigation": true,
219
+ "interactionInstructions": true,
220
+ "rawData": "bounded",
221
+ "privacyNotes": ["Do not expose order-level customer fields"]
222
+ },
223
+ {
224
+ "channel": "agent",
225
+ "disclosure": "standard",
226
+ "navigation": false,
227
+ "interactionInstructions": false,
228
+ "rawData": "bounded",
229
+ "tokenBudget": 2400,
230
+ "privacyNotes": ["Summaries may include only aggregate values"]
231
+ }
232
+ ],
233
+ "audience": "Regional operations leads",
234
+ "strengths": ["Shows trend and uncertainty together"],
235
+ "risks": ["The latest point may be mistaken for a settled total"],
236
+ "scaffolds": ["State the provisional window in the title and description"],
237
+ "description": "A weekly line chart with a shaded range around the most recent estimate.",
238
+ "dataFallback": true,
239
+ "manualChecks": [
240
+ "Confirm the shaded range remains distinguishable at high zoom"
241
+ ]
242
+ },
243
+ "form": {
244
+ "chartFamily": "time-series-line",
245
+ "whyThisForm": "A line preserves sequential change while an interval communicates unsettled values.",
246
+ "rejectedAlternatives": [
247
+ {
248
+ "representation": "single large number",
249
+ "reason": "It would hide the recent trajectory and provisional range."
250
+ }
251
+ ],
252
+ "risks": ["A smooth line can imply continuity between weekly observations"],
253
+ "misuse": ["Reading the interval as a prediction interval for future weeks"]
254
+ },
255
+ "contestability": {
256
+ "sourceRequestsAllowed": true,
257
+ "alternativeViews": [
258
+ {
259
+ "id": "weekly-orders-table",
260
+ "label": "Weekly values table",
261
+ "rationale": "Supports exact-value inspection and export."
262
+ }
263
+ ],
264
+ "challenges": [
265
+ {
266
+ "id": "challenge-late-events",
267
+ "claimId": "claim-orders-v2",
268
+ "status": "accepted",
269
+ "reason": "The earlier total excluded late-arriving order events.",
270
+ "raisedBy": {
271
+ "id": "reviewer-17",
272
+ "name": "Operations reviewer",
273
+ "kind": "human"
274
+ },
275
+ "raisedAt": "2026-09-01T15:10:00Z",
276
+ "counterclaimId": "claim-orders-v3",
277
+ "resolution": "Publish the corrected total with a provisional interval."
278
+ }
279
+ ],
280
+ "corrections": [
281
+ {
282
+ "id": "correction-weekly-orders-v3",
283
+ "affectedClaimIds": ["claim-orders-v2"],
284
+ "replacementClaimIds": ["claim-orders-v3"],
285
+ "reason": "Late events changed the weekly total.",
286
+ "createdAt": "2026-09-01T15:20:00Z",
287
+ "createdBy": {
288
+ "id": "analytics-team",
289
+ "name": "Analytics team",
290
+ "kind": "human"
291
+ }
292
+ }
293
+ ],
294
+ "editorialExceptions": [
295
+ {
296
+ "ruleId": "settled-window-only",
297
+ "rationale": "Operations needs a provisional view before the window settles.",
298
+ "owner": "operations-analytics",
299
+ "reviewAt": "2026-09-08T16:00:00Z"
300
+ }
301
+ ]
302
+ },
303
+ "accountability": {
304
+ "authors": [
305
+ {
306
+ "id": "analytics-team",
307
+ "name": "Analytics team",
308
+ "kind": "human"
309
+ }
310
+ ],
311
+ "generatedBy": "semiotic-report-service/3.4.0",
312
+ "dataSources": ["evidence-source"],
313
+ "codeRef": "reports/weekly-orders@8d12a4f",
314
+ "reviews": [
315
+ {
316
+ "id": "review-weekly-orders-v3",
317
+ "status": "approved",
318
+ "reviewer": {
319
+ "id": "reviewer-17",
320
+ "name": "Operations reviewer",
321
+ "kind": "human"
322
+ },
323
+ "reviewedAt": "2026-09-01T15:30:00Z",
324
+ "rationale": "Approved with the provisional disclosure.",
325
+ "policyId": "operational-report-review"
326
+ }
327
+ ],
328
+ "actions": [
329
+ {
330
+ "id": "action-review-queue",
331
+ "action": "Increase the next week's manual review capacity.",
332
+ "actor": {
333
+ "id": "ops-lead",
334
+ "name": "Operations lead",
335
+ "kind": "human"
336
+ },
337
+ "actedAt": "2026-09-01T17:00:00Z",
338
+ "claimIds": ["claim-orders-v3"],
339
+ "artifactRevision": "3",
340
+ "policyId": "staffing-review",
341
+ "status": "taken",
342
+ "invalidatedByClaimId": "claim-orders-v2"
343
+ }
344
+ ]
345
+ },
346
+ "inheritance": {
347
+ "requiredPaths": ["claims", "evidence", "time.freshness", "time.window"],
348
+ "prohibitedExports": ["customer-row-csv"],
349
+ "privacy": "restricted",
350
+ "rawDataDefault": "bounded",
351
+ "preservation": "claim-evidence-preserved",
352
+ "sourceArtifactIds": ["weekly-orders-v2"]
353
+ },
354
+ "fieldStatus": {
355
+ "time.freshness": {
356
+ "status": "known",
357
+ "reason": "Computed from the publication service-level objective.",
358
+ "suppliedBy": "system",
359
+ "derived": true,
360
+ "reviewedBy": "reviewer-17"
361
+ }
362
+ },
363
+ "extensions": {
364
+ "com.example.operations": {
365
+ "runbook": "staffing-review-v2",
366
+ "audienceTier": 2
367
+ }
368
+ }
369
+ }
@@ -0,0 +1,46 @@
1
+ {
2
+ "contractVersion": "0.1",
3
+ "artifact": {
4
+ "id": "exploratory-view",
5
+ "kind": "chart",
6
+ "title": "Exploratory view"
7
+ },
8
+ "purpose": {
9
+ "intents": [
10
+ {
11
+ "id": "explore-distribution",
12
+ "strength": "primary",
13
+ "source": "author"
14
+ }
15
+ ],
16
+ "stakes": "exploratory"
17
+ },
18
+ "claims": [],
19
+ "evidence": [],
20
+ "fieldStatus": {
21
+ "time.freshness": {
22
+ "status": "unknown",
23
+ "reason": "The source does not publish a freshness signal.",
24
+ "suppliedBy": "import",
25
+ "derived": false
26
+ },
27
+ "reception.manualChecks": {
28
+ "status": "manual",
29
+ "reason": "Keyboard and screen-reader behavior require a person to verify them.",
30
+ "suppliedBy": "system",
31
+ "derived": false
32
+ },
33
+ "contestability.corrections": {
34
+ "status": "not-applicable",
35
+ "reason": "No claims have been published from this exploratory artifact.",
36
+ "suppliedBy": "author",
37
+ "derived": false,
38
+ "reviewedBy": "research-owner"
39
+ }
40
+ },
41
+ "extensions": {
42
+ "com.example.experiment": {
43
+ "session": "trial-42"
44
+ }
45
+ }
46
+ }
@@ -1 +0,0 @@
1
- var t={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",opacity:0},e=8;function r(t){return null==t?void 0:t+""}function i(e){const i=r(e.id);return{type:"point",x:e.x,y:e.y,r:e.r??8,style:{...t,cursor:e.cursor},datum:e.datum,pointId:i,_transitionKey:i}}function c(t){return i(t)}function a(e){const[[r,i],[c,a]]=e.bounds;return{type:"geoarea",pathData:e.pathData,centroid:e.centroid,bounds:e.bounds,screenArea:e.screenArea??Math.abs((c-r)*(a-i)),style:{...t,cursor:e.cursor},datum:e.datum,group:e.group,interactive:!0}}function s(e){return{type:"rect",x:e.x,y:e.y,w:e.width,h:e.height,style:{...t,cursor:e.cursor},datum:e.datum,group:e.group,_transitionKey:r(e.id)}}function u(e){const i=r(e.id);return"width"in e&&"height"in e?{type:"rect",x:e.x,y:e.y,w:e.width,h:e.height,style:{...t,cursor:e.cursor},datum:e.datum,id:i,label:e.label,accessibleDatum:e.accessibleDatum,accessibility:e.accessibility}:{type:"circle",cx:e.x,cy:e.y,r:e.r??8,style:{...t,cursor:e.cursor},datum:e.datum,id:i,label:e.label,accessibleDatum:e.accessibleDatum,accessibility:e.accessibility}}function n(e){const i={style:{...t,cursor:e.cursor},datum:e.datum,id:r(e.id),label:e.label,accessibleDatum:e.accessibleDatum,accessibility:e.accessibility,interactive:e.interactive??!0};return"pathD"in e?{type:e.type??"curved",pathD:e.pathD,...i}:{type:"line",x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2,...i}}export{e as DEFAULT_HIT_RADIUS,i as hitTargetPoint,c as geoHitTarget,a as geoAreaHitTarget,s as hitTargetRect,u as networkHitTarget,n as networkEdgeHitTarget};
@@ -1 +0,0 @@
1
- import{STREAMING_PALETTE as e,createColorScale as t,distinctCategories as r,filterSparseArray as o,getCrosshairProps as n,renderEmptyState as a,renderLoadingState as i,resolveExplicitColor as l,resolveMobileInteraction as c,useCategoryColors as u,useChartLegendAndMargin as s,useChartMode as g,useChartSelection as d,useColorScale as h,useLegendInteraction as m,useThemeCategorical as y}from"./c-GIKRQI4X.min.js";import{useThemeSelector as p}from"./c-YDAY2WFR.min.js";import{useMemo as f}from"react";function v(e){const t=p(e=>e.theme.colors.selectionOpacity);return f(()=>{if(void 0!==e||void 0!==t)return{name:e?.name??"",...e,unselectedOpacity:e?.unselectedOpacity??t}},[e,t])}import{useCallback as L,useMemo as b,useState as C}from"react";function k(g){const{data:p,rawData:f,colorBy:k,colorScheme:H,legendInteraction:S,legendPosition:w,selection:I,linkedHover:M,fallbackFields:D,unwrapData:R=!1,onObservation:B,chartType:F,chartId:P,showLegend:A,legend:T,legendLayout:x,frameLegend:O,userMargin:W,marginDefaults:_,onClick:G,hoverHighlight:j,mobileInteraction:z,mobileSemantics:N,loading:Y,loadingContent:K,emptyContent:Q,width:V,height:X,hasTitle:q,axisChrome:E}=g,J=void 0===f,U=b(()=>o(p),[p]),[Z,$]=C([]),ee=L(e=>{$(t=>t.length===e.length&&t.every((t,r)=>t===e[r])?t:e)},[]),te="string"==typeof k?k:void 0,re=b(()=>c(z,{width:V,mobileSemantics:N}),[z,V,N]),{activeSelectionHook:oe,hoverSelectionHook:ne,customHoverBehavior:ae,customClickBehavior:ie,crosshairSourceId:le}=d({selection:I,linkedHover:M,fallbackFields:D,unwrapData:R,onObservation:B,chartType:F,chartId:P,onClick:G,hoverHighlight:j,colorByField:te,mobileInteraction:re}),ce=n(M,le),ue=h(U,k,H),se=b(()=>r(U,k),[U,k]),ge=b(()=>J&&Z.length>0?Z:se,[J,Z,se]),de=m(S,k,ge),he=b(()=>ne||(de.legendSelectionHook?de.legendSelectionHook:oe),[ne,de.legendSelectionHook,oe]),me=v(I),ye=y(),pe=u(),fe=b(()=>{if(ue)return ue;if(!k||0===ge.length)return;const r=Array.isArray(H)&&H.length>0||"string"==typeof H&&H.length>0?H:ye&&ye.length>0?ye:e,o="__streamCat",n=ge.map(e=>({[o]:e})),a=t(n,o,r);return e=>(pe?l(pe,e):void 0)??a(e)??"#999"},[ue,k,ge,H,ye,pe]),{legend:ve,margin:Le,legendPosition:be,legendLayout:Ce,legendMarginReserved:ke}=s({data:U,colorBy:k,colorScale:fe,showLegend:A,legendPosition:w,userMargin:W,defaults:_,categories:ge,additionalLegend:T,chartWidth:V,chartHeight:X,legendLayout:x,frameLegend:O,hasTitle:q,axisChrome:E}),He=b(()=>{const e={};return ve&&(e.legend=ve,e.legendPosition=be,ke&&(e.__legendMarginReservedFor=ve),Ce&&(e.legendLayout=Ce)),S&&"none"!==S&&(e.legendHoverBehavior=de.onLegendHover,e.legendClickBehavior=de.onLegendClick,e.legendHighlightedCategory=de.highlightedCategory,e.legendIsolatedCategories=de.isolatedCategories),J&&k&&(e.legendCategoryAccessor=k,e.onCategoriesChange=ee),e},[ve,be,Ce,ke,S,de.onLegendHover,de.onLegendClick,de.highlightedCategory,de.isolatedCategories,J,k,ee]),Se=Array.isArray(f)?o(f):f,we=i(Y,V,X,K),Ie=we?null:a(Se,V,X,Q);return{data:U,colorScale:ue,allCategories:ge,legendState:de,effectiveSelectionHook:he,activeSelectionHook:oe,customHoverBehavior:ae,customClickBehavior:ie,mobileInteraction:re,legend:ve,margin:Le,legendPosition:be,earlyReturn:we||Ie||null,legendBehaviorProps:He,crosshairProps:ce,resolvedSelection:me}}import{useImperativeHandle as H,useRef as S}from"react";function w(e,t){const{variant:r,frameRef:o,overrides:n}=t,a=S(n);a.current=n,H(e,()=>{const e=function(e,t){if("xy"===e){const e=t;return{push:t=>e.current?.push(t),pushMany:t=>e.current?.pushMany(t),remove:t=>e.current?.remove(t)??[],update:(t,r)=>e.current?.update(t,r)??[],replace:t=>e.current?.replace?.(t),clear:()=>e.current?.clear(),getData:()=>e.current?.getData()??[],getScales:()=>e.current?.getScales()??null,getCustomLayout:()=>e.current?.getCustomLayout?.()??null,getLayoutFailure:()=>e.current?.getLayoutFailure?.()??null}}if("network"===e){const e=t;return{push:t=>e.current?.push(t),pushMany:t=>e.current?.pushMany(t),remove:t=>{const r=Array.isArray(t)?t:[t],o=e.current?.getTopology()?.nodes??[],n=[];for(const t of r){const r=o.find(e=>e.id===t);r&&n.push({...r.data??{},id:t}),e.current?.removeNode(t)}return n},update:(t,r)=>(Array.isArray(t)?t:[t]).flatMap(t=>{const o=e.current?.updateNode(t,r);return o?[{...o,id:t}]:[]}),clear:()=>e.current?.clear(),getData:()=>e.current?.getTopology()?.nodes?.map(e=>e.data)??[],getCustomLayout:()=>e.current?.getCustomLayout?.()??null,getLayoutFailure:()=>e.current?.getLayoutFailure?.()??null}}if("geo-points"===e){const e=t;return{push:t=>e.current?.push(t),pushMany:t=>e.current?.pushMany(t),remove:t=>e.current?.removePoint(t)??[],update:(t,r)=>{const o=e.current?.removePoint(t)??[];for(const t of o)e.current?.push(r(t));return o},clear:()=>e.current?.clear(),getData:()=>e.current?.getData()??[],getCustomLayout:()=>e.current?.getCustomLayout?.()??null,getLayoutFailure:()=>e.current?.getLayoutFailure?.()??null}}const r=t;return{push:e=>r.current?.pushLine(e),pushMany:e=>r.current?.pushManyLines(e),remove:e=>r.current?.removeLine(e)??[],update:(e,t)=>{const o=r.current?.removeLine(e)??[];for(const e of o)r.current?.pushLine(t(e));return o},clear:()=>r.current?.clear(),getData:()=>r.current?.getLines()??[],getCustomLayout:()=>r.current?.getCustomLayout?.()??null,getLayoutFailure:()=>r.current?.getLayoutFailure?.()??null}}(r,o);return new Proxy(e,{get(e,t,r){if("string"==typeof t){const e=a.current?.[t];if("function"==typeof e)return e}return Reflect.get(e,t,r)},has:(e,t)=>!("string"!=typeof t||!a.current||!(t in a.current))||Reflect.has(e,t)})},[])}function I(e,t){if(!function(e){return void 0!==e.stroke||void 0!==e.strokeWidth||void 0!==e.opacity}(t))return e??((...e)=>({}));const r={};return void 0!==t.stroke&&(r.stroke=t.stroke),void 0!==t.strokeWidth&&(r.strokeWidth=t.strokeWidth),void 0!==t.opacity&&(r.opacity=t.opacity),e?(...t)=>({...e(...t)||{},...r}):(...e)=>({...r})}function M(e){if(null==e)return;if("number"==typeof e)return{top:e,right:e,bottom:e,left:e};const t={};return"number"==typeof e.top&&(t.top=e.top),"number"==typeof e.right&&(t.right=e.right),"number"==typeof e.bottom&&(t.bottom=e.bottom),"number"==typeof e.left&&(t.left=e.left),t}import{useMemo as D,useRef as R}from"react";function B(e){const t=R(null);return w(e.imperativeRef,{variant:e.imperativeVariant,frameRef:t}),{frameRef:t,resolved:g(e.mode,{width:e.width,height:e.height,showGrid:e.showGrid,enableHover:e.enableHover,showLegend:e.showLegend,title:e.title,description:e.description,summary:e.summary,accessibleTable:e.accessibleTable,xLabel:e.xLabel,yLabel:e.yLabel,mobileInteraction:e.mobileInteraction,mobileSemantics:e.mobileSemantics,responsiveRules:e.responsiveRules}),normalizedMargin:D(()=>M(e.margin),[e.margin])}}function F(e){const t=B(e),{resolved:r,normalizedMargin:o}=t,n=k({data:e.data??[],rawData:e.data,colorBy:e.colorBy,colorScheme:e.colorScheme,legendInteraction:e.legendInteraction,legendPosition:e.legendPosition,frameLegend:e.frameLegend,selection:e.selection,linkedHover:e.linkedHover,hoverHighlight:e.hoverHighlight,fallbackFields:"string"==typeof e.colorBy?[e.colorBy]:[],unwrapData:e.unwrapData,onObservation:e.onObservation,onClick:e.onClick,mobileInteraction:e.mobileInteraction,mobileSemantics:e.mobileSemantics,chartType:e.chartTypeLabel,chartId:e.chartId,showLegend:r.showLegend,legend:e.legend,userMargin:o,marginDefaults:r.marginDefaults,loading:e.loading,loadingContent:e.loadingContent,emptyContent:e.emptyContent,width:r.width,height:r.height});return{...t,safeData:n.data,setup:n,earlyReturn:n.earlyReturn}}export{v as useResolvedSelection,k as useChartSetup,w as useFrameImperativeHandle,I as mergeShapeStyle,M as normalizePartialMargin,B as useCustomChartScaffold,F as useCustomChartSetup};
@@ -1 +0,0 @@
1
- import{getMinMax as t}from"./c-GGISSW5E.min.js";function e(t){return!!t&&"object"==typeof t&&!Array.isArray(t)}function i(t,e){const{when:i}=t,r=e.width,n=e.height,s=function(t){if("number"==typeof t.height&&t.height>0)return t.width/t.height}(e),a=function(t){if("number"==typeof t.height&&t.height>0)return t.height>t.width?"portrait":"landscape"}(e);return!("number"==typeof i.minWidth&&i.minWidth>r||"number"==typeof i.maxWidth&&r>i.maxWidth||"number"==typeof i.minHeight&&("number"!=typeof n||i.minHeight>n)||"number"==typeof i.maxHeight&&("number"!=typeof n||n>i.maxHeight)||"number"==typeof i.minAspectRatio&&("number"!=typeof s||i.minAspectRatio>s)||"number"==typeof i.maxAspectRatio&&("number"!=typeof s||s>i.maxAspectRatio)||i.orientation&&a!==i.orientation)}function r(t,r,n=t.responsiveRules){if(!Array.isArray(n)||0===n.length)return{props:t,matches:[]};const s=n.map((t,e)=>({rule:t,index:e})).filter(t=>i(t.rule,r)).sort((t,e)=>("number"==typeof t.rule.priority?t.rule.priority:t.index)-("number"==typeof e.rule.priority?e.rule.priority:e.index));return{props:s.reduce((t,i)=>function(t,i){const r={...t,...i};for(const n of["margin","frameProps","mobileSemantics","style"])e(t[n])&&e(i[n])&&(r[n]={...t[n],...i[n]});return"string"==typeof t.className&&"string"==typeof i.className&&(r.className=`${t.className} ${i.className}`),r}(t,i.rule.transform),t),matches:s}}function n(t){if(null==t)return()=>{};const e="function"==typeof t?t:e=>e[t];return t=>o(e(t))}function s(t,e){const i=n(t),r=n(e);return(t,e)=>{const n=r(t);return{value:n,x:i(t),y:n,category:e}}}function a(t,e){const i=n(e??"value"),r=null==t?void 0:"function"==typeof t?t:e=>e[t];return t=>{const e=r?r(t):void 0;return{value:i(t),category:null==e?void 0:e+""}}}function o(t){if("number"==typeof t)return Number.isFinite(t)?t:void 0;if("string"==typeof t&&""!==t.trim()){const e=Number(t);return Number.isFinite(e)?e:void 0}}function c(t,e,i){const r=null!=t.axis?i[t.axis]:null!=t.field?e[t.field]:i.value;if(void 0!==t.eq&&r!==t.eq)return!1;if(void 0!==t.ne&&r===t.ne)return!1;if(void 0!==t.in&&!t.in.includes(r))return!1;if(void 0===t.gt&&void 0===t.gte&&void 0===t.lt&&void 0===t.lte&&void 0===t.within&&void 0===t.outside)return!0;const n=o(r);if(void 0===n)return!1;if(void 0!==t.gt&&t.gt>=n)return!1;if(void 0!==t.gte&&t.gte>n)return!1;if(void 0!==t.lt&&n>=t.lt)return!1;if(void 0!==t.lte&&n>t.lte)return!1;if(void 0!==t.within){const[e,i]=t.within;if(e>n||n>i)return!1}if(void 0!==t.outside){const[e,i]=t.outside;if(n>=e&&i>=n)return!1}return!0}function u(t,e,i){const r=t.when;return void 0===r||!0===r||!1!==r&&("function"==typeof r?r(e,i):c(r,e,i))}function h(t,e,i){if(!e||0===e.length)return{};let r={};for(const n of e){if(!u(n,t,i))continue;const e="function"==typeof n.style?n.style(t,i):n.style;e&&(r={...r,...e})}return r}function f(t,e,i,r=t=>t){const n=t??(()=>({}));return e&&0!==e.length?(t,s)=>{const a=r(t),o={...n(t,s)};return Object.assign(o,h(a,e,i(a,s))),o}:n}function l(t,e,i){return t&&0!==t.length?(r,n)=>{const s=h(r,t,e(r,n)),a=i?i(r,n):void 0;return a?{...s,...a}:s}:i}function p(t,e,i,r){if(!t||0===t.length)return r;const n=a(e,i);return(e,i)=>{const s=e&&e.data||e,a=h(s,t,n(s)),o=r?r(e,i):void 0;return o?{...a,...o}:a}}function d(t,e=.5){const i=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(t);if(!i)return t;const r=Math.round(parseInt(i[1],16)*(1-e)),n=Math.round(parseInt(i[2],16)*(1-e)),s=Math.round(parseInt(i[3],16)*(1-e));return`#${r.toString(16).padStart(2,"0")}${n.toString(16).padStart(2,"0")}${s.toString(16).padStart(2,"0")}`}function m(t,e=.5){const i=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(t);if(!i)return t;const r=Math.round(parseInt(i[1],16)+(255-parseInt(i[1],16))*e),n=Math.round(parseInt(i[2],16)+(255-parseInt(i[2],16))*e),s=Math.round(parseInt(i[3],16)+(255-parseInt(i[3],16))*e);return`#${r.toString(16).padStart(2,"0")}${n.toString(16).padStart(2,"0")}${s.toString(16).padStart(2,"0")}`}function y(t=240){const e=360-t,i=180+e/2,r=i*Math.PI/180;return{sweepRad:t*Math.PI/180,gapDeg:e,startAngleDeg:i,startAngleRad:r,offsetRad:-Math.PI/2+r}}function g(t,e,i,r,n){const s=i-e||1;return n+(Math.max(e,Math.min(i,t))-e)/s*r}function _(e=240){const{sweepRad:i,offsetRad:r}=y(e),n=[[Math.cos(r),Math.sin(r)],[Math.cos(r+i),Math.sin(r+i)],[0,0]];for(let t=0;2*Math.PI>t;t+=Math.PI/2)((t-r)%(2*Math.PI)+2*Math.PI)%(2*Math.PI)>i+.001||n.push([Math.cos(t),Math.sin(t)]);const s=n.map(t=>t[0]),a=n.map(t=>t[1]),[o,c]=t(s),[u,h]=t(a);return{minX:o,maxX:c,minY:u,maxY:h,width:c-o,height:h-u,cx:(o+c)/2,cy:(u+h)/2}}function b(t){return{type:"hatch",background:t.background,stroke:t.stroke,lineWidth:t.lineWidth,spacing:t.spacing,angle:t.angle}}var v=null;function x(t={},e){const{background:i="transparent",stroke:r="#000",lineWidth:n=1.5,spacing:s=6,angle:a=45}=t,o={background:i,stroke:r,lineWidth:n,spacing:s,angle:a},c=Math.max(8,Math.ceil(2*s));let u;try{u=function(t){return"undefined"!=typeof OffscreenCanvas?new OffscreenCanvas(t,t):(v||(v=document.createElement("canvas")),v.width=t,v.height=t,v)}(c)}catch{return b(o)}const h=u.getContext("2d");if(!h)return b(o);i&&"transparent"!==i?(h.fillStyle=i,h.fillRect(0,0,c,c)):h.clearRect(0,0,c,c),h.strokeStyle=r,h.lineWidth=n,h.lineCap="square";const f=a*Math.PI/180;if(45===a||-45===a){const t=a>0?1:-1;for(let e=-c;2*c>=e;e+=s)h.beginPath(),h.moveTo(e,0),h.lineTo(e+t*c,c),h.stroke()}else{h.save(),h.translate(c/2,c/2),h.rotate(f);const t=2*c;for(let e=-t;t>=e;e+=s)h.beginPath(),h.moveTo(-t,e),h.lineTo(t,e),h.stroke();h.restore()}return(e||h).createPattern(u,"repeat")}import{jsx as A,jsxs as S}from"react/jsx-runtime";function M(t){return"object"==typeof t&&null!==t&&"hatch"===t.type}function N(t){return["hatch",t.background??"transparent",t.stroke??"#000",t.lineWidth??1.5,t.spacing??6,t.angle??45,t.lineOpacity??1].join("|")}function k(t,e){let i=2166136261;const r=N(e);for(let t=0;r.length>t;t++)i^=r.charCodeAt(t),i=Math.imul(i,16777619);return`${t}-hatch-${(i>>>0).toString(36)}`}function w(t,e){const{background:i="transparent",stroke:r="#000",lineWidth:n=1.5,spacing:s=6,angle:a=45,lineOpacity:o=1}=t,c=Math.max(8,Math.ceil(2*s));return S("pattern",{id:e,width:c,height:c,patternUnits:"userSpaceOnUse",patternTransform:0!==a?`rotate(${a})`:void 0,children:[i&&"transparent"!==i&&A("rect",{width:c,height:c,fill:i}),A("line",{x1:0,y1:0,x2:0,y2:c,stroke:r,strokeWidth:n,strokeOpacity:o}),A("line",{x1:s,y1:0,x2:s,y2:c,stroke:r,strokeWidth:n,strokeOpacity:o})]},e)}function I(t,e,i="#4e79a7"){if(M(t)){const i=k(e,t);return{fill:`url(#${i})`,def:w(t,i)}}return t&&"string"==typeof t?{fill:t}:{fill:i}}function E(t,e,i,r){if(!t||"object"!=typeof t)return;const n=t;if(!Array.isArray(n.stops))return;const s=n.stops.flatMap(t=>{if(!t||"object"!=typeof t)return[];const{offset:e,color:i,opacity:n}=t;return"number"==typeof e&&Number.isFinite(e)?[{offset:Math.max(0,Math.min(1,e)),color:"string"==typeof i&&i?i:r,opacity:"number"==typeof n&&Number.isFinite(n)?Math.max(0,Math.min(1,n)):void 0}]:[]}).sort((t,e)=>t.offset-e.offset);if(!s.length)return;const a="horizontal"===n.direction?"horizontal":"vertical"===n.direction?"vertical":i,o=e+"-gradient";return{fill:`url(#${o})`,def:A("linearGradient",{id:o,x1:0,y1:0,x2:"horizontal"===a?"100%":0,y2:"vertical"===a?"100%":0,children:s.map((t,e)=>A("stop",{offset:100*t.offset+"%",stopColor:t.color,stopOpacity:t.opacity},`${t.offset}-${e}`))},o)}}var z=class{constructor(t){if(this._capacity=t,this.head=0,this._size=0,1>t)throw Error("RingBuffer capacity must be at least 1");this.buffer=Array(t)}push(t){let e;return this._size===this._capacity?e=this.buffer[this.head]:this._size++,this.buffer[this.head]=t,this.head=(this.head+1)%this._capacity,e}pushMany(t){const e=[];for(const i of t){const t=this.push(i);void 0!==t&&e.push(t)}return e}get(t){if(t>=0&&this._size>t)return this.buffer[(this.head-this._size+t+this._capacity)%this._capacity]}peek(){if(0!==this._size)return this.buffer[(this.head-1+this._capacity)%this._capacity]}peekOldest(){if(0!==this._size)return this.buffer[(this.head-this._size+this._capacity)%this._capacity]}[Symbol.iterator](){let t=0;return{next:()=>this._size>t?{done:!1,value:this.get(t++)}:{done:!0,value:void 0}}}forEach(t){const e=(this.head-this._size+this._capacity)%this._capacity;for(let i=0;this._size>i;i++)t(this.buffer[(e+i)%this._capacity],i)}toArray(){const t=Array(this._size),e=(this.head-this._size+this._capacity)%this._capacity;for(let i=0;this._size>i;i++)t[i]=this.buffer[(e+i)%this._capacity];return t}resize(t){if(1>t)throw Error("RingBuffer capacity must be at least 1");const e=this.toArray();let i=0,r=[];e.length>t&&(i=e.length-t,r=e.slice(0,i)),this._capacity=t,this.buffer=Array(t),this.head=0,this._size=0;for(let t=i;e.length>t;t++)this.push(e[t]);return r}update(t,e){const i=[],r=(this.head-this._size+this._capacity)%this._capacity;for(let n=0;this._size>n;n++){const s=(r+n)%this._capacity,a=this.buffer[s];if(t(a)){let t;t="object"!=typeof a||null===a?a:Array.isArray(a)?[...a]:{...a},i.push(t),this.buffer[s]=e(a)}}return i}remove(t){const e=[],i=[];if(this.forEach(r=>{t(r)?i.push(r):e.push(r)}),0===i.length)return i;this.buffer=Array(this._capacity),this.head=0,this._size=0;for(const t of e)this.push(t);return i}clear(){this.buffer=Array(this._capacity),this.head=0,this._size=0}get size(){return this._size}get capacity(){return this._capacity}get full(){return this._size===this._capacity}},P=class{constructor(){this._min=1/0,this._max=-1/0,this._dirty=!1}push(t){Number.isFinite(t)&&(this._min>t&&(this._min=t),t>this._max&&(this._max=t))}evict(t){t!==this._min&&t!==this._max||(this._dirty=!0)}recalculate(t,e){this._min=1/0,this._max=-1/0;for(const i of t){const t=e?e(i):i;Number.isFinite(t)&&(this._min>t&&(this._min=t),t>this._max&&(this._max=t))}this._dirty=!1}clear(){this._min=1/0,this._max=-1/0,this._dirty=!1}get extent(){return[this._min,this._max]}get min(){return this._min}get max(){return this._max}get dirty(){return this._dirty}};function R(t,e=30){return Math.max((t??4)+5,12,e)}function $(t){return t instanceof Date?t:"number"==typeof t&&t>1e9?new Date(t):null}function O(t,e){const i=$(t);if(!i)return!1;const r=$(e);return!r||i.getFullYear()!==r.getFullYear()||i.getMonth()!==r.getMonth()}function T(t){const e=[],i=t.domain;null==i?e.push({severity:"error",code:"PROCESS_SANKEY_MISSING_DOMAIN",message:"ProcessSankey requires domain: [tStart, tEnd].",fix:"Pass domain={[start, end]} as numbers or Date-compatible values."}):Array.isArray(i)&&2===i.length&&Number.isFinite(Number(i[0]))&&Number.isFinite(Number(i[1]))||e.push({severity:"error",code:"PROCESS_SANKEY_BAD_DOMAIN",message:"domain must be a 2-tuple of finite times.",fix:"Use domain={[t0, t1]} with t0 <= t1."});const r=t.edges;if(Array.isArray(r)&&r.length>0){const t=r[0];null!=t.startTime&&null!=t.endTime||e.push({severity:"warning",code:"PROCESS_SANKEY_EDGE_TIMES",message:"Edges should carry startTime and endTime for temporal layout.",fix:"Add startTime/endTime fields or set startTimeAccessor/endTimeAccessor."})}const n=t.nodes,s=Array.isArray(n)?n.length:0;return!0!==t.showLabels||24>s||e.push({severity:"warning",code:"PROCESS_SANKEY_LABEL_DENSITY",message:`showLabels={true} with ${s} nodes may overcrowd the plot.`,fix:'Use showLabels="auto" with optional labelPriorityAccessor / maxLabels.'}),80>(Array.isArray(r)?r.length:0)||null!=t.layoutExecution||"off"===t.packing||e.push({severity:"warning",code:"PROCESS_SANKEY_WORKER_HINT",message:"Dense ProcessSankey layouts benefit from worker packing/order.",fix:'layoutExecution defaults to "auto"; set layoutExecution="worker" or raise layoutWorkerThreshold deliberately.'}),e}var W=/^\d{4}-\d{1,2}$/;function D(t){const e=t.trim();if(!e||!Number.isNaN(Number(e)))return NaN;const i=W.test(e)?e+"-01":e;if(i===e&&10>e.length)return NaN;const r=Date.parse(i);return Number.isFinite(r)?r:NaN}function C(t){return t instanceof Date?t.getTime():"string"==typeof t?D(t):+t}function F(t){const e=t.provenance,i=t.id??t.stableId??e?.stableId;return null==i||""===i?void 0:i+""}export{i as responsiveRuleMatches,r as resolveResponsiveRules,n as makeRuleValueResolver,s as makeXYRuleContext,a as makeNodeRuleContext,c as matchesThreshold,u as ruleMatches,h as resolveStyleRules,f as composeStyleRules,l as makeStyleRuleStyleFn,p as styleRulesToNodeStyle,d as darkenColor,m as lightenColor,y as sweepToAngles,g as valueToAngle,_ as computeArcBoundingBox,T as diagnoseProcessSankeyProps,x as createHatchPattern,M as isHatchFill,N as hatchFillKey,k as hatchFillId,w as hatchPatternDef,I as resolveSvgFill,E as resolveAnnotationGradient,z as RingBuffer,P as IncrementalExtent,D as parseDateLikeString,C as coerceDateLikeValue,F as annotationStableId,R as getHitRadius,O as isTimeLandmark};
@@ -1 +0,0 @@
1
- import{useBrushAccessibility as r}from"./c-USFMFKIH.min.js";import{useRef as t,useEffect as e}from"react";import{select as n}from"d3-selection";import{brushX as c,brushY as u}from"d3-brush";import{jsx as l,jsxs as i}from"react/jsx-runtime";function o({width:o,height:s,totalWidth:a,totalHeight:h,margin:m,scales:d,onBrush:f}){const p=t(null),v=t(null),b=t(f);b.current=f;const g=t(d);g.current=d;const M=t(!1),x=t(null),w="horizontal"===d?.projection,y=t(w);y.current=w;const j=r({label:"Ordinal value range brush",onAction:r=>{const t=g.current,e=v.current;if(!t||!e||!p.current)return;const c=n(p.current).select(".brush-g");if("clear"===r.type)return M.current=!0,c.call(e.move,null),M.current=!1,x.current=null,void b.current(null);if(("left"===r.direction||"right"===r.direction)!=!!y.current)return;const u=t.r.domain(),[l,i]=[Math.min(...u),Math.max(...u)],o=(i-l)/20,s=x.current?.r??[l+.4*(i-l),l+.6*(i-l)],a="left"===r.direction||"down"===r.direction?-1:1;let[h,m]=s;if(r.resize)0>a?h=Math.max(l,h-o):m=Math.min(i,m+o);else{const r=m-h;h=Math.max(l,Math.min(i-r,h+a*o)),m=h+r}const d={r:[h,m]};M.current=!0,c.call(e.move,y.current?[t.r(h),t.r(m)]:[t.r(m),t.r(h)]),M.current=!1,x.current=d,b.current(d)}});return e(()=>{if(!p.current)return;const r=n(p.current).select(".brush-g"),t=w?c():u();return t.extent([[0,0],[o,s]]),t.on("brush end",r=>{if(M.current)return;const t=g.current;if(!t)return;if(!r.selection)return x.current=null,void b.current(null);const[e,n]=r.selection;let c;c=y.current?[t.r.invert(e),t.r.invert(n)]:[t.r.invert(n),t.r.invert(e)];const u={r:c};x.current=u,b.current(u)}),r.call(t),v.current=t,r.select(".selection").attr("fill","steelblue").attr("fill-opacity",.15).attr("stroke","steelblue").attr("stroke-width",1),()=>{t.on("brush end",null),v.current=null}},[o,s,w]),e(()=>{if(!d||!v.current||!x.current)return;if(!p.current)return;const r=x.current,t=n(p.current).select(".brush-g"),e=d.r(r.r[0]),c=d.r(r.r[1]);w?(M.current=!0,t.call(v.current.move,[e,c]),M.current=!1):(M.current=!0,t.call(v.current.move,[c,e]),M.current=!1)},[d,w]),i("svg",{ref:p,width:a,height:h,...j.svgProps,style:{position:"absolute",top:0,left:0,pointerEvents:"none"},children:[l("title",{children:j.svgProps["aria-label"]}),l("desc",{id:j.descriptionId,children:j.description}),l("g",{className:"brush-g",transform:`translate(${m.left},${m.top})`,style:{pointerEvents:"all"}})]})}export{o as OrdinalBrushOverlay};