reactive-md 0.9.2 → 0.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 (638) hide show
  1. package/CHANGELOG-ch.md +397 -333
  2. package/CHANGELOG.md +398 -334
  3. package/CONTRIBUTING-ch.md +22 -22
  4. package/CONTRIBUTING.md +22 -22
  5. package/README-ch.md +431 -431
  6. package/README-en.md +431 -431
  7. package/README.md +429 -429
  8. package/SECURITY-ch.md +83 -83
  9. package/SECURITY.md +83 -83
  10. package/THIRD_PARTY_NOTICES.md +0 -57
  11. package/bin/reactive-md.mjs +39 -39
  12. package/cli/args.mjs +263 -263
  13. package/cli/assets.mjs +395 -395
  14. package/cli/build.mjs +445 -445
  15. package/cli/check.mjs +444 -444
  16. package/cli/document.mjs +130 -130
  17. package/cli/errors.mjs +61 -61
  18. package/cli/fs-utils.mjs +133 -133
  19. package/cli/glob.mjs +203 -203
  20. package/cli/help.mjs +325 -323
  21. package/cli/init.mjs +1577 -1577
  22. package/cli/lint.mjs +177 -177
  23. package/cli/main.mjs +65 -65
  24. package/cli/migrate.mjs +368 -368
  25. package/cli/package-loader.mjs +41 -41
  26. package/cli/package.mjs +211 -211
  27. package/dist-library/LocalDocumentView-CP2QG86k.js +114 -0
  28. package/dist-library/{LocalDocumentViewCore-DXE0I0Qc.js → LocalDocumentViewCore-Cd6yMEkg.js} +379 -9445
  29. package/dist-library/LocalReactiveDocumentCore-VuYpZqdn.js +283 -0
  30. package/dist-library/LocalStaticDocumentView-DfX6bemE.js +147 -0
  31. package/dist-library/authoring-Bwu_zCWs.js +768 -0
  32. package/dist-library/chart-B1TUtzm-.js +3 -0
  33. package/dist-library/choice-values-BItGjPD2.js +58 -0
  34. package/dist-library/color-values-r8Wf7ALn.js +6 -0
  35. package/dist-library/compile-B35rfzKr.js +1742 -0
  36. package/dist-library/compile-cache-key-D21X2Obx.js +28 -0
  37. package/dist-library/compiler-DBwLawMZ.js +98 -0
  38. package/dist-library/{compiler-core-DDDdvuLy.js → compiler-core-kkDiQ1RK.js} +4202 -3496
  39. package/dist-library/component-kernel-CsJSabHX.js +372 -0
  40. package/dist-library/{component-state-BRwvTV0d.js → component-state-Da0G8Ajc.js} +1 -1
  41. package/dist-library/component-utils-ZM3jUJNy.js +339 -0
  42. package/dist-library/conditional-branches-CIhJXasR.js +17 -0
  43. package/dist-library/config-validation-DbmsWAEV.js +469 -0
  44. package/dist-library/controls-DRy5rzzN.js +5970 -0
  45. package/dist-library/controls-DWlx-AQl.js +3 -0
  46. package/dist-library/{coordinate-B1VFK9fd.js → coordinate-c54pHfgf.js} +89 -89
  47. package/dist-library/data-BtFlkJzp.js +3 -0
  48. package/dist-library/data-table-CSAkm1eU.js +290 -0
  49. package/dist-library/data-table-model-DruztQFt.js +391 -0
  50. package/dist-library/data-visuals-rZQUeQM0.js +384 -0
  51. package/dist-library/{default-components-s21NevON.js → default-components-B-39etG9.js} +518 -355
  52. package/dist-library/{config-DXLvctiZ.js → default-config-CCa8rm2k.js} +265 -230
  53. package/dist-library/default-options-By16CVw1.js +131 -0
  54. package/dist-library/{registry-D6OGkOcX.js → default-registry-DXJy66xj.js} +4 -4
  55. package/dist-library/default-schema-CeYiEW1K.js +33 -0
  56. package/dist-library/diagram-BLepzI8l.js +3 -0
  57. package/dist-library/display-Bb6hAG5T.js +2065 -0
  58. package/dist-library/dist-Cueh1Psp.js +4761 -0
  59. package/dist-library/{document-theme-C8J6UyNO.js → document-theme-CJvN-nC1.js} +246 -4
  60. package/dist-library/{export-CIAIPBov.js → export-BSV4E0jv.js} +135 -135
  61. package/dist-library/font-aliases-CKYjwn4o.js +4 -0
  62. package/dist-library/gallery-BC6FYTqw.js +3 -0
  63. package/dist-library/{gallery-Dv1rOvL0.js → gallery-DM2yTVZJ.js} +1 -1
  64. package/dist-library/{html-Cr4CBwAH.js → html-CY9mC3Sr.js} +49 -48
  65. package/dist-library/{incremental-9nx92u9c.js → incremental-B-wW4H3F.js} +537 -384
  66. package/dist-library/{display-B_uutKkN.js → katex-4ukd4ZxT.js} +1555 -3618
  67. package/dist-library/layout-CPQggKxk.js +592 -0
  68. package/dist-library/layout-CaDWsDof.js +3 -0
  69. package/dist-library/limits-CFERRrlC.js +10 -0
  70. package/dist-library/localization-COdJ6lw2.js +6 -0
  71. package/dist-library/mafs-CnzDC5CR.js +3 -0
  72. package/dist-library/math-view-CyGTS6kv.js +20 -0
  73. package/dist-library/motion-tokens-Czk0RDmS.js +283 -0
  74. package/dist-library/mount-preset-DtrCX4G8.js +24 -0
  75. package/dist-library/numeric-sliders-BmJ1LCLx.js +542 -0
  76. package/dist-library/{observability-4KqXhIEU.js → observability-BVQ16ByQ.js} +125 -43
  77. package/dist-library/package-core-Cu_r_qs7.js +128 -0
  78. package/dist-library/parser-BHl9Lxbw.js +8 -0
  79. package/dist-library/parser-standard-DDAKv_DZ.js +4872 -0
  80. package/dist-library/plugin-packs-CkI0floL.js +19 -0
  81. package/dist-library/preset-core-BKPbH_Nv.js +1371 -0
  82. package/dist-library/props-0iDqxlTk.js +174 -0
  83. package/dist-library/react-74jdGBmu.js +32 -0
  84. package/dist-library/reactive-md-authoring.js +315 -296
  85. package/dist-library/reactive-md-build.js +334 -43
  86. package/dist-library/reactive-md-compiler-session.js +4 -0
  87. package/dist-library/reactive-md-compiler-standard.js +10 -10
  88. package/dist-library/reactive-md-compiler.js +3 -3
  89. package/dist-library/reactive-md-contracts.js +6 -0
  90. package/dist-library/reactive-md-default-packs.js +32 -15
  91. package/dist-library/reactive-md-default-preset.js +7 -7
  92. package/dist-library/reactive-md-export.js +6 -5
  93. package/dist-library/reactive-md-minimal-preset.js +3 -2
  94. package/dist-library/reactive-md-minimal-react-preset.js +26 -23
  95. package/dist-library/reactive-md-minimal.css +1 -1
  96. package/dist-library/reactive-md-observability.js +125 -3
  97. package/dist-library/reactive-md-pack-style-manifest.js +805 -0
  98. package/dist-library/reactive-md-plugin-chart.js +14 -9
  99. package/dist-library/reactive-md-plugin-data.js +8 -8
  100. package/dist-library/reactive-md-plugin-diagram.js +7 -6
  101. package/dist-library/reactive-md-plugin-forms.js +14 -13
  102. package/dist-library/reactive-md-plugin-gallery.js +6 -5
  103. package/dist-library/reactive-md-plugin-navigation.js +8 -8
  104. package/dist-library/reactive-md-plugin-network.js +13 -13
  105. package/dist-library/reactive-md-plugin-plot.js +7 -6
  106. package/dist-library/reactive-md-print.css +304 -304
  107. package/dist-library/reactive-md-react-component-accordion.js +10 -0
  108. package/dist-library/reactive-md-react-component-alert.js +10 -0
  109. package/dist-library/reactive-md-react-component-anchor.js +10 -0
  110. package/dist-library/reactive-md-react-component-badge.js +10 -0
  111. package/dist-library/reactive-md-react-component-card.js +10 -0
  112. package/dist-library/reactive-md-react-component-chart.js +22 -0
  113. package/dist-library/reactive-md-react-component-checkbox.js +10 -0
  114. package/dist-library/reactive-md-react-component-checklist.js +10 -0
  115. package/dist-library/reactive-md-react-component-choices.js +10 -0
  116. package/dist-library/reactive-md-react-component-column.js +6 -0
  117. package/dist-library/reactive-md-react-component-coordinate.js +21 -0
  118. package/dist-library/reactive-md-react-component-counter.js +10 -0
  119. package/dist-library/reactive-md-react-component-data-table.js +14 -0
  120. package/dist-library/reactive-md-react-component-date.js +10 -0
  121. package/dist-library/reactive-md-react-component-diagram.js +22 -0
  122. package/dist-library/reactive-md-react-component-disclosure.js +10 -0
  123. package/dist-library/reactive-md-react-component-edge.js +22 -0
  124. package/dist-library/reactive-md-react-component-else.js +10 -0
  125. package/dist-library/reactive-md-react-component-gallery-item.js +10 -0
  126. package/dist-library/reactive-md-react-component-gallery.js +10 -0
  127. package/dist-library/reactive-md-react-component-grid.js +10 -0
  128. package/dist-library/reactive-md-react-component-if.js +10 -0
  129. package/dist-library/reactive-md-react-component-input.js +10 -0
  130. package/dist-library/reactive-md-react-component-jump.js +10 -0
  131. package/dist-library/reactive-md-react-component-multi-select.js +10 -0
  132. package/dist-library/reactive-md-react-component-node.js +22 -0
  133. package/dist-library/reactive-md-react-component-number.js +10 -0
  134. package/dist-library/reactive-md-react-component-option.js +10 -0
  135. package/dist-library/reactive-md-react-component-panel.js +10 -0
  136. package/dist-library/reactive-md-react-component-plot.js +26 -0
  137. package/dist-library/reactive-md-react-component-progress.js +10 -0
  138. package/dist-library/reactive-md-react-component-quiz.js +10 -0
  139. package/dist-library/reactive-md-react-component-radio-group.js +10 -0
  140. package/dist-library/reactive-md-react-component-range-slider.js +10 -0
  141. package/dist-library/reactive-md-react-component-section.js +10 -0
  142. package/dist-library/reactive-md-react-component-select.js +10 -0
  143. package/dist-library/reactive-md-react-component-slider.js +10 -0
  144. package/dist-library/reactive-md-react-component-step.js +10 -0
  145. package/dist-library/reactive-md-react-component-steps.js +10 -0
  146. package/dist-library/reactive-md-react-component-tab.js +10 -0
  147. package/dist-library/reactive-md-react-component-table.js +14 -0
  148. package/dist-library/reactive-md-react-component-tabs.js +10 -0
  149. package/dist-library/reactive-md-react-component-text.js +10 -0
  150. package/dist-library/reactive-md-react-component-textarea.js +10 -0
  151. package/dist-library/reactive-md-react-component-timeline.js +14 -0
  152. package/dist-library/reactive-md-react-component-timer.js +10 -0
  153. package/dist-library/reactive-md-react-component-toggle.js +10 -0
  154. package/dist-library/reactive-md-react-component-tooltip.js +10 -0
  155. package/dist-library/reactive-md-react-component-validation.js +10 -0
  156. package/dist-library/reactive-md-react-minimal.js +4 -4
  157. package/dist-library/reactive-md-react-pack-controls.js +44 -0
  158. package/dist-library/reactive-md-react-pack-data.js +21 -0
  159. package/dist-library/reactive-md-react-pack-layout.js +37 -0
  160. package/dist-library/reactive-md-react-pack-visuals.js +43 -0
  161. package/dist-library/reactive-md-react-packed.js +50 -0
  162. package/dist-library/reactive-md-react-server.js +29 -27
  163. package/dist-library/reactive-md-react-static-server.js +24 -0
  164. package/dist-library/reactive-md-react-static.js +1 -0
  165. package/dist-library/reactive-md-react-unstyled.js +15 -12
  166. package/dist-library/reactive-md-react.js +15 -12
  167. package/dist-library/reactive-md-scan.js +1 -0
  168. package/dist-library/reactive-md-sdk.js +23 -9
  169. package/dist-library/reactive-md-standalone-configured.js +2 -2
  170. package/dist-library/reactive-md-standalone-host.js +2 -2
  171. package/dist-library/reactive-md-testing-browser.js +2 -2
  172. package/dist-library/reactive-md-testing-react.js +32 -32
  173. package/dist-library/reactive-md-testing.js +12 -12
  174. package/dist-library/reactive-md-vite.js +25 -9
  175. package/dist-library/reactive-md-worker-pool.js +401 -0
  176. package/dist-library/reactive-md.css +1 -1
  177. package/dist-library/reactive-md.js +97 -1554
  178. package/dist-library/registry-core-DxEaxhJ6.js +126 -0
  179. package/dist-library/render-nodes-B6j6Ip5I.js +9404 -0
  180. package/dist-library/requirements-C56sFIEs.js +157 -0
  181. package/dist-library/resources-6VaNgk-h.js +74 -0
  182. package/dist-library/rmd-pack-controls.css +1032 -0
  183. package/dist-library/rmd-pack-data.css +724 -0
  184. package/dist-library/rmd-pack-layout.css +1834 -0
  185. package/dist-library/rmd-pack-resource-chart.css +300 -0
  186. package/dist-library/rmd-pack-resource-controls.css +781 -0
  187. package/dist-library/rmd-pack-resource-data-visuals.css +501 -0
  188. package/dist-library/rmd-pack-resource-diagram.css +106 -0
  189. package/dist-library/rmd-pack-resource-gallery.css +346 -0
  190. package/dist-library/rmd-pack-resource-graphics.css +516 -0
  191. package/dist-library/rmd-pack-resource-layout.css +1489 -0
  192. package/dist-library/rmd-pack-resource-mafs-core.css +124 -0
  193. package/dist-library/rmd-pack-resource-mafs.css +129 -0
  194. package/dist-library/rmd-pack-resource-visual-base.css +224 -0
  195. package/dist-library/rmd-pack-visuals.css +1394 -0
  196. package/dist-library/runtime-BHeuLOv_.js +1369 -0
  197. package/dist-library/runtime-requirement-DzPO8raU.js +772 -0
  198. package/dist-library/schema-core-CDXfxdID.js +155 -0
  199. package/dist-library/sdk-core-CnE-n0Z7.js +1295 -0
  200. package/dist-library/{session-core-dxQCJBNa.js → session-core-C071yQwV.js} +147 -133
  201. package/dist-library/sha256-utf16-Bmandi_H.js +937 -0
  202. package/dist-library/shareable-CHCDnl6j.js +844 -0
  203. package/dist-library/shared-bTzN-F4g.js +3 -0
  204. package/dist-library/structural-views-30-YD_TJ.js +11 -0
  205. package/dist-library/table-surface-CfZn_tk-.js +13 -0
  206. package/dist-library/types/assemblies/compile-cache-key.d.ts +11 -0
  207. package/dist-library/types/assemblies/default-config.d.ts +35 -0
  208. package/dist-library/types/{local/configuration/options.d.ts → assemblies/default-options.d.ts} +4 -4
  209. package/dist-library/types/assemblies/default-registry.d.ts +18 -0
  210. package/dist-library/types/{local/configuration/schema.d.ts → assemblies/default-schema.d.ts} +4 -4
  211. package/dist-library/types/authoring/catalog.d.ts +14 -2
  212. package/dist-library/types/authoring/extensions.d.ts +1 -1
  213. package/dist-library/types/authoring/index.d.ts +4 -4
  214. package/dist-library/types/authoring/templates.d.ts +1 -1
  215. package/dist-library/types/compiler/index.d.ts +1 -0
  216. package/dist-library/types/compiler/session.d.ts +19 -0
  217. package/dist-library/types/compiler/standard.d.ts +1 -0
  218. package/dist-library/types/components/chart/default-chart-types.d.ts +3 -0
  219. package/dist-library/types/components/chart/default-chart.d.ts +7 -0
  220. package/dist-library/types/components/entries/accordion.d.ts +3 -0
  221. package/dist-library/types/components/entries/alert.d.ts +3 -0
  222. package/dist-library/types/components/entries/anchor.d.ts +3 -0
  223. package/dist-library/types/components/entries/badge.d.ts +3 -0
  224. package/dist-library/types/components/entries/card.d.ts +3 -0
  225. package/dist-library/types/components/entries/chart.d.ts +3 -0
  226. package/dist-library/types/components/entries/checkbox.d.ts +3 -0
  227. package/dist-library/types/components/entries/checklist.d.ts +3 -0
  228. package/dist-library/types/components/entries/choices.d.ts +3 -0
  229. package/dist-library/types/components/entries/column.d.ts +3 -0
  230. package/dist-library/types/components/entries/coordinate.d.ts +3 -0
  231. package/dist-library/types/components/entries/counter.d.ts +3 -0
  232. package/dist-library/types/components/entries/data-table.d.ts +3 -0
  233. package/dist-library/types/components/entries/date.d.ts +3 -0
  234. package/dist-library/types/components/entries/diagram.d.ts +3 -0
  235. package/dist-library/types/components/entries/disclosure.d.ts +3 -0
  236. package/dist-library/types/components/entries/edge.d.ts +3 -0
  237. package/dist-library/types/components/entries/else.d.ts +3 -0
  238. package/dist-library/types/components/entries/gallery-item.d.ts +3 -0
  239. package/dist-library/types/components/entries/gallery.d.ts +3 -0
  240. package/dist-library/types/components/entries/grid.d.ts +3 -0
  241. package/dist-library/types/components/entries/if.d.ts +3 -0
  242. package/dist-library/types/components/entries/input.d.ts +3 -0
  243. package/dist-library/types/components/entries/jump.d.ts +3 -0
  244. package/dist-library/types/components/entries/multi-select.d.ts +3 -0
  245. package/dist-library/types/components/entries/node.d.ts +3 -0
  246. package/dist-library/types/components/entries/number.d.ts +3 -0
  247. package/dist-library/types/components/entries/option.d.ts +3 -0
  248. package/dist-library/types/components/entries/panel.d.ts +3 -0
  249. package/dist-library/types/components/entries/plot.d.ts +3 -0
  250. package/dist-library/types/components/entries/progress.d.ts +3 -0
  251. package/dist-library/types/components/entries/quiz.d.ts +3 -0
  252. package/dist-library/types/components/entries/radio-group.d.ts +3 -0
  253. package/dist-library/types/components/entries/range-slider.d.ts +3 -0
  254. package/dist-library/types/components/entries/section.d.ts +3 -0
  255. package/dist-library/types/components/entries/select.d.ts +3 -0
  256. package/dist-library/types/components/entries/slider.d.ts +3 -0
  257. package/dist-library/types/components/entries/step.d.ts +3 -0
  258. package/dist-library/types/components/entries/steps.d.ts +3 -0
  259. package/dist-library/types/components/entries/tab.d.ts +3 -0
  260. package/dist-library/types/components/entries/table.d.ts +3 -0
  261. package/dist-library/types/components/entries/tabs.d.ts +3 -0
  262. package/dist-library/types/components/entries/text.d.ts +3 -0
  263. package/dist-library/types/components/entries/textarea.d.ts +3 -0
  264. package/dist-library/types/components/entries/timeline.d.ts +3 -0
  265. package/dist-library/types/components/entries/timer.d.ts +3 -0
  266. package/dist-library/types/components/entries/toggle.d.ts +3 -0
  267. package/dist-library/types/components/entries/tooltip.d.ts +3 -0
  268. package/dist-library/types/components/entries/validation.d.ts +3 -0
  269. package/dist-library/types/components/layout/layout.d.ts +6 -3
  270. package/dist-library/types/components/layout/structural-views.d.ts +3 -0
  271. package/dist-library/types/components/mount-preset.d.ts +2 -0
  272. package/dist-library/types/components/packs/controls.d.ts +2 -0
  273. package/dist-library/types/components/packs/data.d.ts +2 -0
  274. package/dist-library/types/components/packs/layout.d.ts +2 -0
  275. package/dist-library/types/components/packs/visuals.d.ts +2 -0
  276. package/dist-library/types/components/shared/data-visuals.d.ts +3 -0
  277. package/dist-library/types/components/shared/table-surface.d.ts +10 -0
  278. package/dist-library/types/components/shared/visual-helpers.d.ts +24 -0
  279. package/dist-library/types/components/shared/visuals.d.ts +1 -3
  280. package/dist-library/types/components/table/data-table-model.d.ts +141 -0
  281. package/dist-library/types/components/table/data-table.d.ts +3 -50
  282. package/dist-library/types/{local/configuration → contracts}/component-kernel.d.ts +9 -2
  283. package/dist-library/types/contracts/font-aliases.d.ts +18 -0
  284. package/dist-library/types/contracts/index.d.ts +8 -0
  285. package/dist-library/types/{local/configuration → contracts}/limits.d.ts +9 -1
  286. package/dist-library/types/contracts/localization.d.ts +6 -0
  287. package/dist-library/types/contracts/number-literal.d.ts +2 -0
  288. package/dist-library/types/contracts/runtime-types.d.ts +19 -0
  289. package/dist-library/types/contracts/sha256-utf16.d.ts +2 -0
  290. package/dist-library/types/export/index.d.ts +4 -1
  291. package/dist-library/types/local/compilation/cache-version.d.ts +1 -0
  292. package/dist-library/types/local/compilation/compile-status.d.ts +2 -0
  293. package/dist-library/types/local/compilation/compiler-bindings.d.ts +1 -1
  294. package/dist-library/types/local/compilation/compiler-capabilities.d.ts +4 -1
  295. package/dist-library/types/local/compilation/compiler-choices.d.ts +4 -0
  296. package/dist-library/types/local/compilation/compiler-core.d.ts +1 -1
  297. package/dist-library/types/local/compilation/compiler-declarations.d.ts +2 -1
  298. package/dist-library/types/local/compilation/compiler-embedding.d.ts +20 -0
  299. package/dist-library/types/local/compilation/compiler-expressions.d.ts +17 -5
  300. package/dist-library/types/local/compilation/compiler-macros.d.ts +18 -0
  301. package/dist-library/types/local/compilation/compiler-structure.d.ts +9 -3
  302. package/dist-library/types/local/compilation/compiler-tables.d.ts +4 -2
  303. package/dist-library/types/local/compilation/compiler-validation.d.ts +14 -7
  304. package/dist-library/types/local/compilation/compiler-values.d.ts +2 -3
  305. package/dist-library/types/local/compilation/compiler.d.ts +1 -1
  306. package/dist-library/types/local/compilation/component-usage.d.ts +2 -0
  307. package/dist-library/types/local/compilation/runtime-requirement.d.ts +3 -0
  308. package/dist-library/types/local/compilation/session/incremental.d.ts +5 -1
  309. package/dist-library/types/local/compilation/streaming.d.ts +1 -1
  310. package/dist-library/types/local/configuration/diagnostic-messages.d.ts +228 -2
  311. package/dist-library/types/local/configuration/diagnostic-runtime-messages.d.ts +40 -0
  312. package/dist-library/types/local/configuration/embedding.d.ts +4 -0
  313. package/dist-library/types/local/configuration/kernel-value-rules.d.ts +1 -1
  314. package/dist-library/types/local/configuration/options-core.d.ts +8 -2
  315. package/dist-library/types/local/evaluation/choice-values.d.ts +22 -0
  316. package/dist-library/types/local/evaluation/computations.d.ts +13 -5
  317. package/dist-library/types/local/evaluation/dataset.d.ts +4 -0
  318. package/dist-library/types/local/evaluation/expression/collection-functions.d.ts +13 -0
  319. package/dist-library/types/local/evaluation/expression/compile.d.ts +11 -4
  320. package/dist-library/types/local/evaluation/expression/data-functions.d.ts +23 -0
  321. package/dist-library/types/local/evaluation/expression/evaluation.d.ts +3 -1
  322. package/dist-library/types/local/evaluation/expression/internal-names.d.ts +8 -0
  323. package/dist-library/types/local/evaluation/expression/syntax.d.ts +19 -2
  324. package/dist-library/types/local/evaluation/expression/transform-budget.d.ts +13 -0
  325. package/dist-library/types/local/evaluation/expression/values.d.ts +9 -1
  326. package/dist-library/types/local/evaluation/validation.d.ts +8 -6
  327. package/dist-library/types/local/index.d.ts +10 -4
  328. package/dist-library/types/local/observability-core.d.ts +20 -1
  329. package/dist-library/types/local/observability.d.ts +2 -0
  330. package/dist-library/types/local/parsing/conditional-branches.d.ts +4 -0
  331. package/dist-library/types/local/parsing/parse-budget.d.ts +18 -2
  332. package/dist-library/types/local/parsing/parser-region.d.ts +13 -2
  333. package/dist-library/types/local/parsing/parser-tags.d.ts +6 -1
  334. package/dist-library/types/local/parsing/rmd-recovery.d.ts +8 -0
  335. package/dist-library/types/local/parsing/source-revision.d.ts +3 -0
  336. package/dist-library/types/local/performance-report.d.ts +70 -0
  337. package/dist-library/types/local/runtime/runtime-choices.d.ts +11 -0
  338. package/dist-library/types/local/runtime/runtime-pool.d.ts +14 -0
  339. package/dist-library/types/local/runtime/runtime.d.ts +3 -1
  340. package/dist-library/types/local/runtime/state.d.ts +30 -15
  341. package/dist-library/types/local/source/authoring-requirements.d.ts +3 -0
  342. package/dist-library/types/local/source/authoring-syntax.d.ts +3 -2
  343. package/dist-library/types/local/source/authoring.d.ts +10 -0
  344. package/dist-library/types/local/source/source-migration.d.ts +1 -0
  345. package/dist-library/types/local/transport/worker-handler.d.ts +3 -0
  346. package/dist-library/types/local/transport/worker-job.d.ts +12 -2
  347. package/dist-library/types/local/transport/worker-pool.d.ts +68 -0
  348. package/dist-library/types/local/transport/worker.d.ts +14 -0
  349. package/dist-library/types/local/types.d.ts +70 -27
  350. package/dist-library/types/observability.d.ts +1 -0
  351. package/dist-library/types/presets/default-semantics.d.ts +1 -1
  352. package/dist-library/types/presets/identity.d.ts +1 -8
  353. package/dist-library/types/presets/pack-style-entry.d.ts +3 -0
  354. package/dist-library/types/presets/pack-style-manifest.d.ts +11 -0
  355. package/dist-library/types/react/component-api.d.ts +24 -4
  356. package/dist-library/types/react/component-loader.d.ts +61 -0
  357. package/dist-library/types/react/component-primitives.d.ts +5 -5
  358. package/dist-library/types/react/component-utils.d.ts +11 -0
  359. package/dist-library/types/react/font-aliases.d.ts +2 -0
  360. package/dist-library/types/react/index.d.ts +9 -5
  361. package/dist-library/types/react/localization.d.ts +5 -6
  362. package/dist-library/types/react/minimal.d.ts +2 -2
  363. package/dist-library/types/react/package-core.d.ts +6 -0
  364. package/dist-library/types/react/packed.d.ts +17 -0
  365. package/dist-library/types/react/render-lifecycle.d.ts +9 -0
  366. package/dist-library/types/{local → react}/rendering/document/ExtendedHtmlFragment.d.ts +1 -1
  367. package/dist-library/types/{local → react}/rendering/document/LocalDocumentViewCore.d.ts +11 -4
  368. package/dist-library/types/react/rendering/document/LocalPooledDocumentView.d.ts +8 -0
  369. package/dist-library/types/react/rendering/document/LocalReactiveDocumentCore.d.ts +6 -0
  370. package/dist-library/types/react/rendering/document/LocalStaticDocumentView.d.ts +18 -0
  371. package/dist-library/types/react/rendering/document/StaticExternalSlot.d.ts +25 -0
  372. package/dist-library/types/react/rendering/document/StaticHostData.d.ts +14 -0
  373. package/dist-library/types/{local → react}/rendering/document/render-nodes.d.ts +8 -8
  374. package/dist-library/types/react/rendering/document/static-runtime.d.ts +11 -0
  375. package/dist-library/types/{local → react}/rendering/document/use-author-script.d.ts +2 -2
  376. package/dist-library/types/{local → react}/rendering/document/validation-state.d.ts +3 -3
  377. package/dist-library/types/{local → react}/rendering/document/view-render-context.d.ts +40 -8
  378. package/dist-library/types/{local → react}/rendering/document/view-revision.d.ts +5 -14
  379. package/dist-library/types/{local → react}/rendering/render-types.d.ts +5 -5
  380. package/dist-library/types/react/rendering/table/data-table.d.ts +5 -0
  381. package/dist-library/types/{local → react}/rendering/table/table-numeric-columns.d.ts +3 -3
  382. package/dist-library/types/react/sdk-core.d.ts +15 -4
  383. package/dist-library/types/react/sdk.d.ts +2 -1
  384. package/dist-library/types/react/server.d.ts +3 -10
  385. package/dist-library/types/react/static-server.d.ts +12 -0
  386. package/dist-library/types/scan/index.d.ts +15 -0
  387. package/dist-library/types/sdk/assembly.d.ts +3 -0
  388. package/dist-library/types/sdk/config.d.ts +2 -35
  389. package/dist-library/types/sdk/default-identity.d.ts +3 -0
  390. package/dist-library/types/sdk/font.d.ts +13 -0
  391. package/dist-library/types/sdk/index.d.ts +2 -1
  392. package/dist-library/types/sdk/preset.d.ts +9 -0
  393. package/dist-library/types/sdk/props.d.ts +8 -3
  394. package/dist-library/types/sdk/registry-core.d.ts +2 -2
  395. package/dist-library/types/sdk/registry.d.ts +2 -18
  396. package/dist-library/types/sdk/theme.d.ts +5 -0
  397. package/dist-library/types/sdk/types.d.ts +8 -2
  398. package/dist-library/types/sdk/version.d.ts +2 -0
  399. package/dist-library/types/shareable.d.ts +15 -3
  400. package/dist-library/types/standalone/prepare.d.ts +4 -2
  401. package/dist-library/types/standalone/session-core.d.ts +5 -2
  402. package/dist-library/types/vite/index.d.ts +3 -0
  403. package/dist-library/types/vite/registration.d.ts +1 -0
  404. package/dist-library/{types-Ib5kSScP.js → types-B4qG8J4S.js} +1 -1
  405. package/dist-library/types-FYhRWRn9.js +3 -0
  406. package/dist-library/use-hydrated-D1gFY2Dq.js +2655 -0
  407. package/dist-library/validation-DRuW0Wl9.js +433 -0
  408. package/dist-library/{version-DAxuGOG2.js → version-4wzhbvDG.js} +24 -33
  409. package/dist-library/visual-frame-y5RFhJ0_.js +19 -0
  410. package/dist-library/visual-helpers-UU6xiL8g.js +75 -0
  411. package/dist-library/visuals-7xzoL9ql.js +49340 -0
  412. package/dist-library/visuals-CdHezgh5.js +3 -0
  413. package/dist-library/worker-3ldRjOEG.js +1632 -0
  414. package/dist-standalone/reactive-md-standalone.css +1 -1
  415. package/dist-standalone/reactive-md-standalone.js +127 -366
  416. package/docs/README-ch.md +104 -101
  417. package/docs/README.md +104 -101
  418. package/docs/compatibility/api-stability-ch.md +1 -1
  419. package/docs/compatibility/api-stability-en.md +1 -1
  420. package/docs/compatibility/compatibility-ch.md +146 -146
  421. package/docs/compatibility/compatibility-en.md +146 -146
  422. package/docs/compatibility/compatibility-manifest.schema.json +3 -2
  423. package/docs/compatibility/deprecation-ch.md +2 -2
  424. package/docs/compatibility/deprecation-en.md +2 -2
  425. package/docs/compatibility/source-versioning-ch.md +170 -162
  426. package/docs/compatibility/source-versioning-en.md +171 -162
  427. package/docs/compatibility/support-matrix-ch.md +4 -3
  428. package/docs/compatibility/support-matrix-en.md +4 -3
  429. package/docs/development/component-development-ch.md +66 -66
  430. package/docs/development/component-development-en.md +66 -66
  431. package/docs/development/component-development-reference-ch.md +269 -253
  432. package/docs/development/component-development-reference-en.md +254 -238
  433. package/docs/development/component-protocol-ch.md +768 -748
  434. package/docs/development/component-protocol-en.md +770 -750
  435. package/docs/development/extension-tutorial-ch.md +308 -308
  436. package/docs/development/extension-tutorial-en.md +308 -308
  437. package/docs/development/performance-overview-ch.md +422 -422
  438. package/docs/development/performance-overview-en.md +422 -422
  439. package/docs/guides/local-guide-ch.md +621 -532
  440. package/docs/guides/local-guide-en.md +621 -532
  441. package/docs/integration/author-tools-ch.md +66 -64
  442. package/docs/integration/author-tools-en.md +66 -64
  443. package/docs/integration/compiler-ch.md +90 -49
  444. package/docs/integration/compiler-en.md +77 -36
  445. package/docs/integration/directory-discovery-en.md +1 -1
  446. package/docs/integration/editor-ch.md +295 -295
  447. package/docs/integration/editor-en.md +303 -303
  448. package/docs/integration/extension-sdk-ch.md +424 -394
  449. package/docs/integration/extension-sdk-en.md +409 -379
  450. package/docs/integration/local-integration-ch.md +648 -646
  451. package/docs/integration/local-integration-en.md +664 -662
  452. package/docs/integration/pdf-export-ch.md +42 -0
  453. package/docs/integration/pdf-export-en.md +42 -0
  454. package/docs/integration/shareable-export-ch.md +299 -307
  455. package/docs/integration/shareable-export-en.md +301 -309
  456. package/docs/reference/diagnostics-counting-ch.md +127 -104
  457. package/docs/reference/diagnostics-counting-en.md +127 -104
  458. package/docs/reference/html-compatibility-ch.md +93 -93
  459. package/docs/reference/html-compatibility-en.md +95 -95
  460. package/docs/reference/local-interaction-syntax-ch.md +913 -724
  461. package/docs/reference/local-interaction-syntax-en.md +911 -722
  462. package/docs/reference/public-api-ch.md +134 -21
  463. package/docs/reference/public-api-en.md +134 -21
  464. package/docs/reference/theme-protocol-ch.md +198 -198
  465. package/docs/reference/theme-protocol-en.md +217 -217
  466. package/docs/releases/release-0.10.0-ch.md +45 -0
  467. package/docs/releases/release-0.10.0-en.md +45 -0
  468. package/docs/releases/release-0.4.0-ch.md +91 -91
  469. package/docs/releases/release-0.4.0-en.md +91 -91
  470. package/docs/releases/release-0.4.1-ch.md +25 -25
  471. package/docs/releases/release-0.4.1-en.md +25 -25
  472. package/docs/releases/release-0.5.0-ch.md +43 -43
  473. package/docs/releases/release-0.5.0-en.md +43 -43
  474. package/docs/releases/release-0.5.1-ch.md +41 -41
  475. package/docs/releases/release-0.5.1-en.md +41 -41
  476. package/docs/releases/release-0.5.2-ch.md +37 -37
  477. package/docs/releases/release-0.5.2-en.md +37 -37
  478. package/docs/releases/release-0.5.3-ch.md +26 -26
  479. package/docs/releases/release-0.5.3-en.md +26 -26
  480. package/docs/releases/release-0.6.0-ch.md +59 -59
  481. package/docs/releases/release-0.6.0-en.md +59 -59
  482. package/docs/releases/release-0.6.1-ch.md +29 -29
  483. package/docs/releases/release-0.6.1-en.md +29 -29
  484. package/docs/releases/release-0.7.0-ch.md +86 -86
  485. package/docs/releases/release-0.7.0-en.md +86 -86
  486. package/docs/releases/release-0.9.3-ch.md +45 -0
  487. package/docs/releases/release-0.9.3-en.md +45 -0
  488. package/examples/component-package/README-ch.md +101 -101
  489. package/examples/component-package/README.md +133 -133
  490. package/examples/conformance/README-ch.md +55 -55
  491. package/examples/conformance/README.md +55 -55
  492. package/examples/conformance/component-protocol-1.json +482 -482
  493. package/examples/conformance/component-protocol-1.schema.json +76 -76
  494. package/examples/conformance/local-draft-1.json +50 -50
  495. package/examples/conformance/local-draft-2.json +212 -212
  496. package/examples/conformance/local-draft-4.json +441 -0
  497. package/examples/game-2048-package/LICENSE +21 -21
  498. package/examples/game-2048-package/NOTICES.md +11 -11
  499. package/examples/game-2048-package/README-ch.md +91 -91
  500. package/examples/game-2048-package/README.md +98 -98
  501. package/examples/game-2048-package/package.json +35 -35
  502. package/examples/game-2048-package/sample/document.reactive.md +17 -17
  503. package/examples/game-2048-package/scripts/build-export.mjs +44 -44
  504. package/examples/game-2048-package/scripts/build.mjs +130 -130
  505. package/examples/game-2048-package/scripts/verify.mjs +180 -180
  506. package/examples/game-2048-package/src/component.css +161 -161
  507. package/examples/game-2048-package/src/components.tsx +326 -326
  508. package/examples/game-2048-package/src/game-engine.ts +228 -228
  509. package/examples/game-2048-package/src/harness.tsx +34 -34
  510. package/examples/game-2048-package/src/manifest.ts +85 -85
  511. package/examples/game-2048-package/src/node-entry.ts +30 -30
  512. package/examples/game-2048-package/src/sample.ts +4 -4
  513. package/examples/game-2048-package/tsconfig.json +15 -15
  514. package/examples/integration/README-ch.md +114 -82
  515. package/examples/integration/README.md +114 -82
  516. package/examples/integration/chat-session/index.mjs +91 -0
  517. package/examples/integration/chat-session/package.json +10 -0
  518. package/examples/integration/core/index.mjs +32 -32
  519. package/examples/integration/extension-sdk/README-ch.md +24 -24
  520. package/examples/integration/extension-sdk/README.md +24 -24
  521. package/examples/integration/static-embed/embed.mjs +44 -0
  522. package/examples/integration/static-embed/index.html +12 -0
  523. package/examples/integration/static-embed/main.mjs +24 -0
  524. package/examples/integration/static-embed/references.mjs +5 -0
  525. package/examples/integration/static-embed/render.mjs +10 -0
  526. package/examples/integration/worker/index.html +19 -19
  527. package/examples/integration/worker/main.js +61 -61
  528. package/examples/integration/worker/package.json +13 -13
  529. package/examples/integration/worker/worker.js +3 -3
  530. package/examples/local/README-ch.md +76 -76
  531. package/examples/local/README.md +76 -76
  532. package/examples/local/charts.reactive.md +73 -73
  533. package/examples/local/recipes/invoice-zh.reactive.md +36 -36
  534. package/examples/local/recipes/invoice.reactive.md +36 -36
  535. package/examples/local/recipes/workshop-zh.reactive.md +33 -33
  536. package/examples/local/recipes/workshop.reactive.md +33 -33
  537. package/examples/local/showcase/README-ch.md +22 -22
  538. package/examples/local/showcase/README.md +31 -31
  539. package/examples/local/showcase/explore.reactive.md +102 -102
  540. package/examples/local/showcase/flow.reactive.md +86 -86
  541. package/examples/local/showcase/forms.reactive.md +126 -126
  542. package/examples/local/showcase/functions.reactive.md +119 -119
  543. package/examples/local/showcase/layout.reactive.md +100 -100
  544. package/examples/local/showcase/statistics.reactive.md +108 -108
  545. package/examples/local/showcase/tasks.reactive.md +89 -89
  546. package/examples/local/showcase/zh/explore.reactive.md +102 -102
  547. package/examples/local/showcase/zh/flow.reactive.md +86 -86
  548. package/examples/local/showcase/zh/forms.reactive.md +126 -126
  549. package/examples/local/showcase/zh/functions.reactive.md +119 -119
  550. package/examples/local/showcase/zh/layout.reactive.md +100 -100
  551. package/examples/local/showcase/zh/statistics.reactive.md +108 -108
  552. package/examples/local/showcase/zh/tasks.reactive.md +89 -89
  553. package/examples/minimal-extension/README-ch.md +78 -78
  554. package/examples/minimal-extension/README.md +78 -78
  555. package/examples/minimal-extension/index.html +15 -15
  556. package/examples/minimal-extension/package.json +26 -26
  557. package/examples/minimal-extension/sample/document.reactive.md +10 -10
  558. package/examples/minimal-extension/scripts/build.mjs +32 -32
  559. package/examples/minimal-extension/scripts/export.mjs +72 -72
  560. package/examples/minimal-extension/scripts/test-node.mjs +75 -75
  561. package/examples/minimal-extension/src/extension.tsx +90 -90
  562. package/examples/minimal-extension/src/preview.tsx +12 -12
  563. package/examples/minimal-extension/src/source.ts +4 -4
  564. package/examples/minimal-extension/tsconfig.json +14 -14
  565. package/examples/sci-fi-theme/README-ch.md +133 -133
  566. package/examples/sci-fi-theme/README.md +148 -148
  567. package/examples/sci-fi-theme/demo/acceptance.reactive.md +454 -454
  568. package/examples/sci-fi-theme/demo/demo.css +638 -638
  569. package/examples/sci-fi-theme/demo/document.reactive.md +206 -206
  570. package/examples/sci-fi-theme/demo/index.html +13 -13
  571. package/examples/sci-fi-theme/demo/main.tsx +215 -215
  572. package/examples/sci-fi-theme/docs/design-system-ch.md +245 -245
  573. package/examples/sci-fi-theme/docs/design-system.md +474 -474
  574. package/examples/sci-fi-theme/package.json +28 -28
  575. package/examples/sci-fi-theme/scripts/screenshot.mjs +98 -98
  576. package/examples/sci-fi-theme/src/components.css +2370 -2370
  577. package/examples/sci-fi-theme/src/index.ts +6 -6
  578. package/examples/sci-fi-theme/src/notch.css +142 -142
  579. package/examples/sci-fi-theme/src/sci-fi.css +7 -7
  580. package/examples/sci-fi-theme/src/theme.ts +39 -39
  581. package/examples/sci-fi-theme/tsconfig.json +20 -20
  582. package/examples/sci-fi-theme/vite.config.ts +24 -24
  583. package/examples/tetris-package/LICENSE +21 -21
  584. package/examples/tetris-package/NOTICES.md +11 -11
  585. package/examples/tetris-package/README-ch.md +91 -91
  586. package/examples/tetris-package/README.md +95 -95
  587. package/examples/tetris-package/package.json +35 -35
  588. package/examples/tetris-package/sample/document.reactive.md +16 -16
  589. package/examples/tetris-package/scripts/build-export.mjs +44 -44
  590. package/examples/tetris-package/scripts/build.mjs +130 -130
  591. package/examples/tetris-package/scripts/verify.mjs +173 -173
  592. package/examples/tetris-package/src/component.css +145 -145
  593. package/examples/tetris-package/src/components.tsx +334 -334
  594. package/examples/tetris-package/src/harness.tsx +34 -34
  595. package/examples/tetris-package/src/manifests.ts +93 -93
  596. package/examples/tetris-package/src/node-entry.ts +16 -16
  597. package/examples/tetris-package/src/sample.ts +4 -4
  598. package/examples/tetris-package/src/tetris-engine.ts +325 -325
  599. package/examples/tetris-package/tsconfig.json +15 -15
  600. package/package.json +66 -2
  601. package/dist-library/LocalDocumentView-BuqgJZEY.js +0 -109
  602. package/dist-library/LocalReactiveDocumentCore-CWBe4Mm5.js +0 -275
  603. package/dist-library/authoring-Ci_KzJ0q.js +0 -892
  604. package/dist-library/compile-Dx6Uw3D9.js +0 -1249
  605. package/dist-library/compiler-dxLPB9Ym.js +0 -86
  606. package/dist-library/config-validation-D3D7Dy2J.js +0 -586
  607. package/dist-library/controls-DoZyLCrV.js +0 -6740
  608. package/dist-library/data-table-8-3F15Jf.js +0 -296
  609. package/dist-library/layout-BBB2VF0S.js +0 -562
  610. package/dist-library/mount-preset-DMZ5wd3t.js +0 -13
  611. package/dist-library/options-BBp9IcHm.js +0 -121
  612. package/dist-library/package-core-K5xesGqy.js +0 -117
  613. package/dist-library/parser-standard-CBA1-hdG.js +0 -9630
  614. package/dist-library/plugin-packs-Bh1HhLym.js +0 -19
  615. package/dist-library/preset-core-DeZPA8IE.js +0 -1298
  616. package/dist-library/props-sJ8vk0cr.js +0 -183
  617. package/dist-library/react-0DCh-Mar.js +0 -7
  618. package/dist-library/registry-core-C9xOunaw.js +0 -479
  619. package/dist-library/resources-B0x_w3s9.js +0 -229
  620. package/dist-library/runtime-BpQdZmFI.js +0 -1288
  621. package/dist-library/schema-BryM_VRW.js +0 -40
  622. package/dist-library/sdk-core-ChslheKs.js +0 -1167
  623. package/dist-library/shareable-B8xMoGEa.js +0 -814
  624. package/dist-library/types/local/rendering/document/LocalReactiveDocumentCore.d.ts +0 -6
  625. package/dist-library/types/local/rendering/table/data-table.d.ts +0 -13
  626. package/dist-library/types-daDo2c_w.js +0 -3
  627. package/dist-library/validation-B3RI0xOk.js +0 -1123
  628. package/dist-library/visual-frame-_rcd5HUv.js +0 -48
  629. package/dist-library/visuals-DkDhNdEZ.js +0 -72572
  630. /package/dist-library/types/{local/configuration → contracts}/color-values.d.ts +0 -0
  631. /package/dist-library/types/{local/html → contracts}/html-names.d.ts +0 -0
  632. /package/dist-library/types/{local/configuration → contracts}/schema-core.d.ts +0 -0
  633. /package/dist-library/types/{local → react}/rendering/code/code-block.d.ts +0 -0
  634. /package/dist-library/types/{local → react}/rendering/code/code-languages.d.ts +0 -0
  635. /package/dist-library/types/{local → react}/rendering/document/LocalDocumentView.d.ts +0 -0
  636. /package/dist-library/types/{local → react}/rendering/document/use-color-scheme.d.ts +0 -0
  637. /package/dist-library/types/{local → react}/rendering/image/image-view.d.ts +0 -0
  638. /package/dist-library/types/{local → react}/rendering/math-view.d.ts +0 -0
@@ -1,15 +1,22 @@
1
1
  import type { CompileState } from './compiler-services.js';
2
- import type { LocalValidation } from '../types.js';
2
+ import type { ReportForNode } from './compiler-embedding.js';
3
+ import type { LocalNode, LocalValidation } from '../types.js';
3
4
  /**
4
- * Validate every component declaring a `data-table` rule and sum document
5
- * budgets. Rows use the ordinary global environment; `key` and the child value
6
- * attribute additionally see the immutable row locals `item`/`index`.
5
+ * Validate the dynamic `options` expression on select/choices/radio-group/
6
+ * multi-select. Static option children are validated by the structure pass.
7
7
  */
8
- export declare function validateDataTables(state: CompileState): void;
8
+ export declare function validateDynamicOptions(document: CompileState, reject?: (node: LocalNode) => void): void;
9
+ /**
10
+ * A chart with `rows` reads generated column children instead of a Markdown
11
+ * table. Validate the row source and each column expression with the same
12
+ * item/index scope as `data-table`.
13
+ */
14
+ export declare function validateGeneratedCharts(document: CompileState, reject?: (node: LocalNode) => void): void;
15
+ export declare function validateDataTables(document: CompileState, reject?: (node: LocalNode) => void): void;
9
16
  /**
10
17
  * Validate `<validation>` rules and build their source-ordered metadata. The
11
18
  * tag itself stays in the tree so the renderer can place the hint; unlike
12
19
  * `<computed>`, it is not stripped.
13
20
  */
14
- export declare function validateValidations(state: CompileState): LocalValidation[];
15
- export declare function validatePlots(state: CompileState): void;
21
+ export declare function validateValidations(document: CompileState, reject?: (node: LocalNode) => void): LocalValidation[];
22
+ export declare function validatePlots(state: CompileState, reportForNode?: ReportForNode): void;
@@ -1,9 +1,9 @@
1
1
  import type { LocalNode, LocalValue, LocalValueKind } from '../types.js';
2
2
  import type { AttrMap, Entry } from './compiler-structure.js';
3
3
  import type { CompileState } from './compiler-services.js';
4
- import { type KernelBindingSchema, type KernelNumericConstraints } from '../configuration/component-kernel.js';
4
+ import { type KernelBindingSchema, type KernelNumericConstraints } from '../../contracts/component-kernel.js';
5
5
  import type { Group, GroupMember } from './compiler-bindings.js';
6
- export declare function parseNumberText(raw: string): number | null;
6
+ export { parseNumberLiteral as parseNumberText } from '../../contracts/number-literal.js';
7
7
  export declare function meaningful(nodes: LocalNode[] | undefined): LocalNode[];
8
8
  export declare function hasComponent(node: LocalNode): boolean;
9
9
  /** Static numeric attribute value, or the manifest prop default. */
@@ -44,4 +44,3 @@ export declare function numericConstraints(entry: Entry, attrs: AttrMap): Numeri
44
44
  */
45
45
  export declare function validateStaticInitial(group: Group, initial: LocalValue, state: CompileState, initialOffset?: number): void;
46
46
  export declare function validateInitialValue(group: Group, first: GroupMember, value: LocalValue, binding: KernelBindingSchema, options: string[], constraints: NumericConstraints | undefined, state: CompileState): void;
47
- export {};
@@ -18,7 +18,7 @@ export interface LocalCompilerServices {
18
18
  */
19
19
  rowPlans?: InlinePlanLookup;
20
20
  }
21
- export declare function compileLocalTracked(source: string, options?: LocalCompileOptions, services?: LocalCompilerServices, literalRanges?: readonly SourceRange[]): {
21
+ export declare function compileLocalTracked(source: string, options?: LocalCompileOptions, services?: LocalCompilerServices, literalRanges?: readonly SourceRange[], collectPerformance?: boolean): {
22
22
  result: LocalCompileResult;
23
23
  parsed?: ReturnType<typeof parseLocal>;
24
24
  semantic?: SemanticCacheStats;
@@ -0,0 +1,2 @@
1
+ import type { LocalNode } from '../types.js';
2
+ export declare function collectUsedComponents(nodes: readonly LocalNode[]): readonly string[];
@@ -0,0 +1,3 @@
1
+ import type { LocalDocument, LocalNode } from '../types.js';
2
+ export declare function hasLiteralComponentAttributes(node: LocalNode): boolean;
3
+ export declare function localDocumentRequiresRuntime(document: LocalDocument): boolean;
@@ -22,6 +22,7 @@ export declare class LocalCompileSession {
22
22
  private readonly parseSession;
23
23
  private readonly semantic;
24
24
  private readonly services;
25
+ private rawNamesCache;
25
26
  private shared;
26
27
  private sharedKey;
27
28
  private sharedMode;
@@ -42,7 +43,7 @@ export declare class LocalCompileSession {
42
43
  * `phase` wins over `options.sourcePhase`; when neither supplies a valid phase
43
44
  * the call keeps the historical final-compilation result shape.
44
45
  */
45
- compileShared(source: string, options?: LocalCompileOptions, phase?: LocalSourcePhase): LocalCompileResult;
46
+ compileShared(source: string, options?: LocalCompileOptions, phase?: LocalSourcePhase, collectPerformance?: boolean): LocalCompileResult;
46
47
  /** Explicit final phase: the normal path plus the resolved compile status. */
47
48
  private compileFinal;
48
49
  private compileStreaming;
@@ -69,6 +70,9 @@ export declare class LocalCompileSession {
69
70
  prepareAsync(signal?: {
70
71
  readonly aborted: boolean;
71
72
  }, yieldTask?: () => Promise<void>): Promise<boolean>;
73
+ /** Validated raw-body container names for one compile-option identity. */
74
+ private rawNames;
75
+ private rawNamesFor;
72
76
  clear(): void;
73
77
  dispose(): void;
74
78
  }
@@ -24,4 +24,4 @@ export interface LocalStreamingTrackedCompile {
24
24
  * budgets, version/config/security) stay fatal. Final compilation remains the
25
25
  * existing `compileLocalTracked` path.
26
26
  */
27
- export declare function compileLocalStreamingTracked(source: string, options?: LocalCompileOptions, services?: LocalCompilerServices): LocalStreamingTrackedCompile;
27
+ export declare function compileLocalStreamingTracked(source: string, options?: LocalCompileOptions, services?: LocalCompilerServices, collectPerformance?: boolean): LocalStreamingTrackedCompile;
@@ -283,6 +283,10 @@ export declare const LOCAL_DIAGNOSTIC_MESSAGES: {
283
283
  readonly en: 'Chart column "{name}" requires a number in row {row}, but the expression evaluates to {kind}.';
284
284
  readonly zh: '图表列“{name}”第 {row} 行需要数字,但表达式结果为 {kind}。';
285
285
  };
286
+ readonly 'chart.generatedNumericExpression': {
287
+ readonly en: 'Chart column "{name}" requires a number, but the column expression evaluates to text.';
288
+ readonly zh: '图表列“{name}”需要数字,但列表达式结果为文本。';
289
+ };
286
290
  readonly 'timeline.numericExpression': {
287
291
  readonly en: 'Timeline column "{name}" requires a number in row {row}, but the expression evaluates to {kind}.';
288
292
  readonly zh: '时间线列“{name}”第 {row} 行需要数字,但表达式结果为 {kind}。';
@@ -487,6 +491,14 @@ export declare const LOCAL_DIAGNOSTIC_MESSAGES: {
487
491
  readonly en: 'Value "{value}" is not among the options: {options}.';
488
492
  readonly zh: '值“{value}”不在选项中:{options}。';
489
493
  };
494
+ readonly 'runtime.choiceUnavailable': {
495
+ readonly en: 'The available choices cannot be evaluated yet.';
496
+ readonly zh: '目前还无法求值可选项。';
497
+ };
498
+ readonly 'runtime.choiceMember': {
499
+ readonly en: 'The value must match an available choice.';
500
+ readonly zh: '值必须匹配当前可选项。';
501
+ };
490
502
  readonly 'runtime.budget': {
491
503
  readonly en: 'Parameter "{name}": {detail}';
492
504
  readonly zh: '参数“{name}”:{detail}';
@@ -627,6 +639,34 @@ export declare const LOCAL_DIAGNOSTIC_MESSAGES: {
627
639
  readonly en: 'Check interpolation delimiters and content.';
628
640
  readonly zh: '插值格式不正确,请检查分隔符和表达式内容。';
629
641
  };
642
+ readonly 'error.local.transform.source': {
643
+ readonly en: 'The source of an array transform must be a string array or a number array.';
644
+ readonly zh: '数组变换的源必须是字符串数组或数字数组。';
645
+ };
646
+ readonly 'error.local.transform.predicate': {
647
+ readonly en: 'A filter condition must evaluate to a boolean.';
648
+ readonly zh: 'filter 条件必须求值为布尔值。';
649
+ };
650
+ readonly 'error.local.transform.projection': {
651
+ readonly en: 'A map projection must produce strings or finite numbers of one kind.';
652
+ readonly zh: 'map 投影必须生成同类的字符串或有限数值。';
653
+ };
654
+ readonly 'error.local.transform.key': {
655
+ readonly en: 'A sortBy key must be a string or finite number, with all keys of one kind.';
656
+ readonly zh: 'sortBy 键必须是字符串或有限数值,且所有键必须同属一类。';
657
+ };
658
+ readonly 'error.local.transform.order': {
659
+ readonly en: 'The sortBy direction must be the string literal "asc" or "desc".';
660
+ readonly zh: 'sortBy 排序方向必须是字符串字面量 "asc" 或 "desc"。';
661
+ };
662
+ readonly 'error.local.transform.depth': {
663
+ readonly en: 'Array transforms are nested deeper than the supported limit.';
664
+ readonly zh: '数组变换的嵌套深度超过上限。';
665
+ };
666
+ readonly 'error.local.budget.transform': {
667
+ readonly en: 'Array transforms exceeded the iteration, work or sort-key budget.';
668
+ readonly zh: '数组变换超过迭代、工作量或临时排序键预算。';
669
+ };
630
670
  readonly 'error.latex-budget': {
631
671
  readonly en: 'The formula exceeded a resource budget.';
632
672
  readonly zh: '公式超过长度、记号、节点、深度或计算步数预算,请简化公式。';
@@ -735,13 +775,117 @@ export declare const LOCAL_DIAGNOSTIC_MESSAGES: {
735
775
  readonly en: 'Dynamic {attribute} date bound for parameter {name} is not a valid YYYY-MM-DD value.';
736
776
  readonly zh: '参数 {name} 的动态 {attribute} 日期边界不是合法的 YYYY-MM-DD。';
737
777
  };
778
+ readonly 'local.options.invalid.embedding': {
779
+ readonly en: 'Invalid embedding compile options.';
780
+ readonly zh: '嵌入编译选项无效。';
781
+ };
782
+ readonly 'local.embedding.image': {
783
+ readonly en: 'Images are disabled for this document.';
784
+ readonly zh: '此文档已禁用图片。';
785
+ };
786
+ readonly 'local.embedding.interactive': {
787
+ readonly en: 'Interactive content is disabled for this document.';
788
+ readonly zh: '此文档已禁用交互内容。';
789
+ };
790
+ readonly 'local.embedding.attribute': {
791
+ readonly en: 'This component has an unsupported attribute or attribute value.';
792
+ readonly zh: '此组件含有不支持的属性或属性值。';
793
+ };
794
+ readonly 'local.embedding.external-slot': {
795
+ readonly en: 'An external slot requires one valid slot name.';
796
+ readonly zh: '静态宿主槽位需要一个有效的 slot 名称。';
797
+ };
798
+ readonly 'local.embedding.declaration': {
799
+ readonly en: 'This declaration requires expression evaluation.';
800
+ readonly zh: '此声明需要表达式求值。';
801
+ };
802
+ readonly 'local.budget.embedding': {
803
+ readonly en: 'Recovering invalid components exceeded {limit} semantic passes.';
804
+ readonly zh: '恢复无效组件所需的语义检查轮次超过 {limit}。';
805
+ };
806
+ readonly 'local.render.runtime-required': {
807
+ readonly en: 'This document requires a runtime to render.';
808
+ readonly zh: '此文档需要运行时才能渲染。';
809
+ };
810
+ readonly 'local.extension.load': {
811
+ readonly en: 'Loading component…';
812
+ readonly zh: '正在加载组件…';
813
+ };
814
+ readonly 'local.extension.load-failed': {
815
+ readonly en: 'The component could not be loaded.';
816
+ readonly zh: '组件加载失败。';
817
+ };
738
818
  readonly 'local.version.unsupported': {
739
819
  readonly en: 'This reader accepts {supported}; migrate {declared} or use a compatible reader.';
740
820
  readonly zh: '此阅读器支持 {supported};请迁移 {declared} 或使用兼容的阅读器。';
741
821
  };
742
822
  readonly 'local.version.malformed': {
743
- readonly en: 'Use <!-- reactive-md: local-draft-3 --> on one line.';
744
- readonly zh: '请在单独一行使用 <!-- reactive-md: local-draft-3 -->。';
823
+ readonly en: 'Use <!-- reactive-md: local-draft-4 --> on one line.';
824
+ readonly zh: '请在单独一行使用 <!-- reactive-md: local-draft-4 -->。';
825
+ };
826
+ readonly 'local.version.feature': {
827
+ readonly en: 'Source feature {feature} is not supported.';
828
+ readonly zh: '当前引擎不支持源码能力 {feature}。';
829
+ };
830
+ readonly 'local.macro.conflict': {
831
+ readonly en: 'The registered component {name} conflicts with the macro syntax.';
832
+ readonly zh: '已注册组件 {name} 与宏语法重名。';
833
+ };
834
+ readonly 'local.macro.definition': {
835
+ readonly en: 'Check the macro definition and its placement.';
836
+ readonly zh: '请检查宏定义的名称、声明和位置。';
837
+ };
838
+ readonly 'local.macro.params': {
839
+ readonly en: 'Use unique lowercase names for macro parameters.';
840
+ readonly zh: '宏参数须使用互不重复的合法小写名称。';
841
+ };
842
+ readonly 'local.macro.outputs': {
843
+ readonly en: 'Each macro output must name a writable local binding.';
844
+ readonly zh: '宏输出须使用互不重复的合法小写名称,并指向宏内可写绑定。';
845
+ };
846
+ readonly 'local.macro.use': {
847
+ readonly en: 'Check the macro name and supplied arguments.';
848
+ readonly zh: '请检查调用的宏名称、必填参数和实参写法。';
849
+ };
850
+ readonly 'local.macro.static': {
851
+ readonly en: 'This attribute requires a static argument of the declared type.';
852
+ readonly zh: '此属性要求提供类型匹配的静态实参。';
853
+ };
854
+ readonly 'local.macro.scope': {
855
+ readonly en: 'This name is outside the macro scope or invalid in this declaration.';
856
+ readonly zh: '此标识符超出宏的作用域或不能用于此声明。';
857
+ };
858
+ readonly 'local.macro.output': {
859
+ readonly en: 'Check the output mapping and shared binding constraints.';
860
+ readonly zh: '请检查宏输出的映射目标和共享绑定约束。';
861
+ };
862
+ readonly 'local.macro.recursion': {
863
+ readonly en: 'Macros cannot call themselves, directly or indirectly.';
864
+ readonly zh: '宏不能直接或间接调用自身。';
865
+ };
866
+ readonly 'local.macro.depth': {
867
+ readonly en: 'Macro expansion exceeds eight nesting levels.';
868
+ readonly zh: '宏展开超过八层嵌套上限。';
869
+ };
870
+ readonly 'local.budget.macro': {
871
+ readonly en: 'Macro expansion exceeds a compilation limit.';
872
+ readonly zh: '宏展开超过编译预算。';
873
+ };
874
+ readonly 'local.state.macro.invalid': {
875
+ readonly en: 'The macro state file is invalid.';
876
+ readonly zh: '宏状态文件无效。';
877
+ };
878
+ readonly 'local.state.macro.source': {
879
+ readonly en: 'The macro state belongs to a different source.';
880
+ readonly zh: '宏状态文件来自不同的源码。';
881
+ };
882
+ readonly 'local.state.macro.config': {
883
+ readonly en: 'The macro state belongs to a different compilation configuration.';
884
+ readonly zh: '宏状态文件与当前编译配置不同。';
885
+ };
886
+ readonly 'local.state.macro.bindings': {
887
+ readonly en: 'The macro state does not match the private bindings of this document.';
888
+ readonly zh: '宏状态文件中的私有绑定与当前文档不一致。';
745
889
  };
746
890
  readonly 'local.version.duplicate': {
747
891
  readonly en: 'Only one source syntax declaration is allowed.';
@@ -811,6 +955,10 @@ export declare const LOCAL_DIAGNOSTIC_MESSAGES: {
811
955
  readonly en: 'Markdown nesting exceeds the {limit}-level limit.';
812
956
  readonly zh: 'Markdown 嵌套超过 {limit} 层上限。';
813
957
  };
958
+ readonly 'budget.raw': {
959
+ readonly en: 'Raw body of <{name}> exceeds the {limit}-character limit.';
960
+ readonly zh: '组件 <{name}> 的原始正文超过 {limit} 个字符的上限。';
961
+ };
814
962
  readonly 'budget.nesting': {
815
963
  readonly en: 'Component nesting exceeds the {limit}-level limit.';
816
964
  readonly zh: '组件嵌套超过 {limit} 层上限。';
@@ -835,6 +983,14 @@ export declare const LOCAL_DIAGNOSTIC_MESSAGES: {
835
983
  readonly en: 'Compile option limits.maxMarkdownDepth must be a positive safe integer.';
836
984
  readonly zh: '编译选项 limits.maxMarkdownDepth 必须是正安全整数。';
837
985
  };
986
+ readonly 'options.maxRawBodyChars': {
987
+ readonly en: 'Compile option limits.maxRawBodyChars must be a positive safe integer no greater than 1000000.';
988
+ readonly zh: '编译选项 limits.maxRawBodyChars 必须是正安全整数,且不能超过 1000000。';
989
+ };
990
+ readonly 'options.hostBody': {
991
+ readonly en: 'Compile option hostComponents body must be "markdown" or "raw", and only containers accept it.';
992
+ readonly zh: '编译选项 hostComponents 的 body 只能是 "markdown" 或 "raw",且仅容器组件可声明。';
993
+ };
838
994
  readonly 'options.unknownLimit': {
839
995
  readonly en: 'Compile option limits.{detail} is not supported.';
840
996
  readonly zh: '编译选项 limits.{detail} 不受支持。';
@@ -1127,6 +1283,10 @@ export declare const LOCAL_DIAGNOSTIC_MESSAGES: {
1127
1283
  readonly en: 'Component <{component}> is missing required attribute {name}.';
1128
1284
  readonly zh: '组件 <{component}> 缺少必需属性 {name}。';
1129
1285
  };
1286
+ readonly 'attribute.requiredOneOf': {
1287
+ readonly en: 'Component <{component}> requires at least one of: {attributes}.';
1288
+ readonly zh: '组件 <{component}> 至少需要填写以下一项属性:{attributes}。';
1289
+ };
1130
1290
  readonly 'label.requiredMissing': {
1131
1291
  readonly en: 'Component <{name}> requires a label.';
1132
1292
  readonly zh: '组件 <{name}> 需要 label。';
@@ -1211,6 +1371,10 @@ export declare const LOCAL_DIAGNOSTIC_MESSAGES: {
1211
1371
  readonly en: 'Attribute {name} must be one of {values}, got "{value}".';
1212
1372
  readonly zh: '属性 {name} 必须是 {values} 之一,当前为“{value}”。';
1213
1373
  };
1374
+ readonly 'attribute.enumOrPositiveNumber': {
1375
+ readonly en: 'Attribute {name} must be one of {values} or a positive number, got "{value}".';
1376
+ readonly zh: '属性 {name} 必须是 {values} 之一或正数,当前为“{value}”。';
1377
+ };
1214
1378
  readonly 'attribute.dateLower': {
1215
1379
  readonly en: 'Date lower bound {value} is not a valid YYYY-MM-DD.';
1216
1380
  readonly zh: '日期下界 {value} 不是有效的 YYYY-MM-DD。';
@@ -1279,6 +1443,58 @@ export declare const LOCAL_DIAGNOSTIC_MESSAGES: {
1279
1443
  readonly en: '<{name}> can only appear directly inside {parents}.';
1280
1444
  readonly zh: '<{name}> 只能直接位于 {parents} 内。';
1281
1445
  };
1446
+ readonly 'dynamicOptions.conflict': {
1447
+ readonly en: 'Use either <option> children or an options expression, not both.';
1448
+ readonly zh: '请在 <option> 子项和 options 表达式之间二选一,不能同时使用。';
1449
+ };
1450
+ readonly 'dynamicOptions.type': {
1451
+ readonly en: 'The options expression must evaluate to a string array.';
1452
+ readonly zh: 'options 表达式必须求值为字符串数组。';
1453
+ };
1454
+ readonly 'dynamicOptions.cycle': {
1455
+ readonly en: 'The choices for "{binding}" depend on a cycle of selection bindings.';
1456
+ readonly zh: '“{binding}”的选项依赖存在循环的选择绑定。';
1457
+ };
1458
+ readonly 'else.withoutIf': {
1459
+ readonly en: '<else> must directly follow an <if> or a conditional <else> in the same container.';
1460
+ readonly zh: '<else> 必须紧跟在同一容器内的 <if> 之后。';
1461
+ };
1462
+ readonly 'else.duplicate': {
1463
+ readonly en: 'An unconditional <else> must end its branch chain.';
1464
+ readonly zh: '无条件的 <else> 必须位于分支链末尾。';
1465
+ };
1466
+ readonly 'dataset.placement': {
1467
+ readonly en: '<dataset> must be a standalone declaration at the document top level.';
1468
+ readonly zh: '<dataset> 必须独立声明在文档顶层。';
1469
+ };
1470
+ readonly 'dataset.name': {
1471
+ readonly en: 'Dataset name "{name}" must be an identifier of at most 128 characters.';
1472
+ readonly zh: '数据表名称“{name}”必须是最多 128 个字符的标识符。';
1473
+ };
1474
+ readonly 'dataset.duplicate': {
1475
+ readonly en: 'Dataset "{name}" is already declared.';
1476
+ readonly zh: '数据表“{name}”已经声明。';
1477
+ };
1478
+ readonly 'dataset.key': {
1479
+ readonly en: 'The dataset has no key column named "{column}".';
1480
+ readonly zh: '数据表中没有名为“{column}”的键列。';
1481
+ };
1482
+ readonly 'dataset.rowKey': {
1483
+ readonly en: 'Dataset row keys must be nonempty and unique.';
1484
+ readonly zh: '数据表的行键必须非空且唯一。';
1485
+ };
1486
+ readonly 'dataset.cell': {
1487
+ readonly en: 'Dataset cells must contain static text.';
1488
+ readonly zh: '数据表的单元格必须使用静态文本。';
1489
+ };
1490
+ readonly 'dataset.budget': {
1491
+ readonly en: 'The dataset exceeds the expression array or text budget.';
1492
+ readonly zh: '数据表超过表达式数组或文本的大小上限。';
1493
+ };
1494
+ readonly 'dataset.unknown': {
1495
+ readonly en: 'Dataset "{name}" is not declared.';
1496
+ readonly zh: '数据表“{name}”尚未声明。';
1497
+ };
1282
1498
  readonly 'structure.noBody': {
1283
1499
  readonly en: '<{name}> does not accept body content.';
1284
1500
  readonly zh: '<{name}> 不接受正文内容。';
@@ -1471,12 +1687,15 @@ export declare const LOCAL_DIAGNOSTIC_TEMPLATE_ALIASES: {
1471
1687
  readonly 'local.options.invalid.max-syntax-nodes': 'options.maxSyntaxNodes';
1472
1688
  readonly 'local.options.invalid.max-parse-work': 'options.maxParseWork';
1473
1689
  readonly 'local.options.invalid.max-markdown-depth': 'options.maxMarkdownDepth';
1690
+ readonly 'local.options.invalid.max-raw-body-chars': 'options.maxRawBodyChars';
1691
+ readonly 'local.options.invalid.host-body': 'options.hostBody';
1474
1692
  readonly 'local.options.invalid.limits-unknown': 'options.unknownLimit';
1475
1693
  readonly 'local.options.invalid.host-components': 'options.hostComponents';
1476
1694
  readonly 'local.budget.document': 'budget.document';
1477
1695
  readonly 'local.budget.nodes': 'budget.syntaxNodes';
1478
1696
  readonly 'local.budget.parse-work': 'budget.parseWork';
1479
1697
  readonly 'local.budget.markdown-depth': 'budget.markdownDepth';
1698
+ readonly 'local.budget.raw': 'budget.raw';
1480
1699
  readonly 'local.budget.nesting': 'budget.nesting';
1481
1700
  readonly 'local.budget.name.attribute': 'budget.attributeName';
1482
1701
  readonly 'local.budget.name.tag': 'budget.tagName';
@@ -1602,6 +1821,11 @@ export declare const LOCAL_DIAGNOSTIC_TEMPLATE_ALIASES: {
1602
1821
  readonly 'local.selection.key.duplicate': 'selection.keyDuplicate';
1603
1822
  readonly 'local.selection.key.initial': 'initial.selectionNotValue';
1604
1823
  readonly 'local.structure.parent': 'structure.parent';
1824
+ readonly 'local.dynamic-options.conflict': 'dynamicOptions.conflict';
1825
+ readonly 'local.dynamic-options.type': 'dynamicOptions.type';
1826
+ readonly 'local.dynamic-options.cycle': 'dynamicOptions.cycle';
1827
+ readonly 'local.else.without-if': 'else.withoutIf';
1828
+ readonly 'local.else.duplicate': 'else.duplicate';
1605
1829
  readonly 'local.structure.no-body': 'structure.noBody';
1606
1830
  readonly 'local.structure.inline-only': 'structure.inlineOnly';
1607
1831
  readonly 'local.structure.no-nested-components': 'structure.noNestedComponents';
@@ -1756,6 +1980,8 @@ export declare const LOCAL_DIAGNOSTIC_TEMPLATE_ALIASES: {
1756
1980
  readonly 'local.runtime.value.max-items': 'runtime.maxItems';
1757
1981
  readonly 'local.runtime.value.unsupported-type': 'runtime.unsupportedType';
1758
1982
  readonly 'local.runtime.value.option': 'runtime.option';
1983
+ readonly 'local.runtime.choice.unavailable': 'runtime.choiceUnavailable';
1984
+ readonly 'local.runtime.choice.member': 'runtime.choiceMember';
1759
1985
  readonly 'local.runtime.value.budget': 'runtime.budget';
1760
1986
  readonly 'local.runtime.value.range-order': 'runtime.rangeOrder';
1761
1987
  };
@@ -276,6 +276,10 @@ export declare const LOCAL_RUNTIME_DIAGNOSTIC_MESSAGES: {
276
276
  readonly en: 'Chart column "{name}" requires a number in row {row}, but the expression evaluates to {kind}.';
277
277
  readonly zh: '图表列“{name}”第 {row} 行需要数字,但表达式结果为 {kind}。';
278
278
  };
279
+ readonly 'chart.generatedNumericExpression': {
280
+ readonly en: 'Chart column "{name}" requires a number, but the column expression evaluates to text.';
281
+ readonly zh: '图表列“{name}”需要数字,但列表达式结果为文本。';
282
+ };
279
283
  readonly 'timeline.numericExpression': {
280
284
  readonly en: 'Timeline column "{name}" requires a number in row {row}, but the expression evaluates to {kind}.';
281
285
  readonly zh: '时间线列“{name}”第 {row} 行需要数字,但表达式结果为 {kind}。';
@@ -480,6 +484,14 @@ export declare const LOCAL_RUNTIME_DIAGNOSTIC_MESSAGES: {
480
484
  readonly en: 'Value "{value}" is not among the options: {options}.';
481
485
  readonly zh: '值“{value}”不在选项中:{options}。';
482
486
  };
487
+ readonly 'runtime.choiceUnavailable': {
488
+ readonly en: 'The available choices cannot be evaluated yet.';
489
+ readonly zh: '目前还无法求值可选项。';
490
+ };
491
+ readonly 'runtime.choiceMember': {
492
+ readonly en: 'The value must match an available choice.';
493
+ readonly zh: '值必须匹配当前可选项。';
494
+ };
483
495
  readonly 'runtime.budget': {
484
496
  readonly en: 'Parameter "{name}": {detail}';
485
497
  readonly zh: '参数“{name}”:{detail}';
@@ -620,6 +632,34 @@ export declare const LOCAL_RUNTIME_DIAGNOSTIC_MESSAGES: {
620
632
  readonly en: 'Check interpolation delimiters and content.';
621
633
  readonly zh: '插值格式不正确,请检查分隔符和表达式内容。';
622
634
  };
635
+ readonly 'error.local.transform.source': {
636
+ readonly en: 'The source of an array transform must be a string array or a number array.';
637
+ readonly zh: '数组变换的源必须是字符串数组或数字数组。';
638
+ };
639
+ readonly 'error.local.transform.predicate': {
640
+ readonly en: 'A filter condition must evaluate to a boolean.';
641
+ readonly zh: 'filter 条件必须求值为布尔值。';
642
+ };
643
+ readonly 'error.local.transform.projection': {
644
+ readonly en: 'A map projection must produce strings or finite numbers of one kind.';
645
+ readonly zh: 'map 投影必须生成同类的字符串或有限数值。';
646
+ };
647
+ readonly 'error.local.transform.key': {
648
+ readonly en: 'A sortBy key must be a string or finite number, with all keys of one kind.';
649
+ readonly zh: 'sortBy 键必须是字符串或有限数值,且所有键必须同属一类。';
650
+ };
651
+ readonly 'error.local.transform.order': {
652
+ readonly en: 'The sortBy direction must be the string literal "asc" or "desc".';
653
+ readonly zh: 'sortBy 排序方向必须是字符串字面量 "asc" 或 "desc"。';
654
+ };
655
+ readonly 'error.local.transform.depth': {
656
+ readonly en: 'Array transforms are nested deeper than the supported limit.';
657
+ readonly zh: '数组变换的嵌套深度超过上限。';
658
+ };
659
+ readonly 'error.local.budget.transform': {
660
+ readonly en: 'Array transforms exceeded the iteration, work or sort-key budget.';
661
+ readonly zh: '数组变换超过迭代、工作量或临时排序键预算。';
662
+ };
623
663
  readonly 'error.latex-budget': {
624
664
  readonly en: 'The formula exceeded a resource budget.';
625
665
  readonly zh: '公式超过长度、记号、节点、深度或计算步数预算,请简化公式。';
@@ -0,0 +1,4 @@
1
+ import type { LocalEmbeddingOptions } from '../types.js';
2
+ export declare const LOCAL_EMBEDDING_PROFILE_VERSION = 4;
3
+ export declare function readEmbedding(value: unknown): Readonly<Required<LocalEmbeddingOptions>> | null;
4
+ export declare function embeddingKey(value: unknown): string;
@@ -1,4 +1,4 @@
1
- import { type KernelComponentSchema, type KernelDiagnosticIssue } from './component-kernel.js';
1
+ import { type KernelComponentSchema, type KernelDiagnosticIssue } from '../../contracts/component-kernel.js';
2
2
  import type { LocalNode } from '../types.js';
3
3
  export type KernelValueRule = {
4
4
  kind: 'date';
@@ -1,7 +1,7 @@
1
- import { type NormalizedComponent } from './component-kernel.js';
1
+ import { type NormalizedComponent } from '../../contracts/component-kernel.js';
2
2
  import { type LocalParserCapabilities } from '../parsing/parser-capabilities.js';
3
3
  import type { LocalComponentDefinition, LocalConfig } from '../../sdk/types.js';
4
- import type { LocalCompileOptions, LocalHostComponentSchema, LocalHtmlPolicy } from '../types.js';
4
+ import type { LocalCompileOptions, LocalHostComponentSchema, LocalHtmlPolicy, LocalSourcePhase } from '../types.js';
5
5
  /** Independent grants for author content. */
6
6
  export declare const LOCAL_HTML_FLAGS: readonly ['enableCss', 'enableJavaScript', 'enableExtendedHtml'];
7
7
  export type LocalHtmlFlag = (typeof LOCAL_HTML_FLAGS)[number];
@@ -11,6 +11,7 @@ export type LocalHtmlFlag = (typeof LOCAL_HTML_FLAGS)[number];
11
11
  * caches without perturbing strict identities.
12
12
  */
13
13
  export declare const LOCAL_RECOVERY_STRATEGY_VERSION = "2";
14
+ import { readEmbedding } from './embedding.js';
14
15
  export type LocalOptionCheck = {
15
16
  ok: true;
16
17
  /** Validated syntax-node budget for this compilation. */
@@ -19,11 +20,16 @@ export type LocalOptionCheck = {
19
20
  maxParseWork: number;
20
21
  /** Validated nested Markdown container depth budget. */
21
22
  maxMarkdownDepth: number;
23
+ /** Validated raw container body budget, in UTF-16 code units. */
24
+ maxRawBodyChars: number;
25
+ /** Effective source phase; omitted keeps final-compilation semantics. */
26
+ sourcePhase?: LocalSourcePhase;
22
27
  /** Effective HTML policy; every flag is false by default. */
23
28
  html: LocalHtmlPolicy;
24
29
  /** True when at least one capability flag is enabled. */
25
30
  /** Render ordinary Markdown soft line breaks as `break` nodes. */
26
31
  markdownBreaks: boolean;
32
+ embedding: NonNullable<ReturnType<typeof readEmbedding>>;
27
33
  /**
28
34
  * Effective structural mode. Defaults to `true`; `false` enables the
29
35
  * parser's isolated recovery strategy.
@@ -0,0 +1,22 @@
1
+ import type { LocalValue } from '../types.js';
2
+ type ChoiceComponent = {
3
+ readonly id: string;
4
+ readonly replaces?: unknown;
5
+ } | undefined;
6
+ export declare function usesDynamicOptions(component: ChoiceComponent): boolean;
7
+ export declare function usesGeneratedChart(component: ChoiceComponent, rows: unknown): boolean;
8
+ export declare function usesGeneratedSelection(component: ChoiceComponent, rows: unknown): boolean;
9
+ /** The same option domain is used for rendering, writes and reconciliation. */
10
+ export declare function optionValues(value: LocalValue): string[] | null;
11
+ /** Keep the original string, including whitespace, in the public binding. */
12
+ export declare function generatedRowKey(value: LocalValue | undefined): string | null;
13
+ export declare function generatedRowLocals(item: LocalValue, index: number, dependencies: readonly string[], read: (name: string) => LocalValue): Record<string, LocalValue>;
14
+ /**
15
+ * Pure selection reconciliation for dynamic option sources. Returns the value
16
+ * the binding must hold, or null when the stored selection is already
17
+ * consistent. Options are deduplicated in source order; empty option values are
18
+ * ignored. A multi-select keeps only stored strings that name a current option,
19
+ * in option order, capped by `maxSelected`.
20
+ */
21
+ export declare function normalizeDynamicSelection(options: readonly string[], stored: LocalValue | readonly string[] | readonly number[], multiple: boolean, maxSelected?: number): string | string[] | null;
22
+ export {};
@@ -1,5 +1,7 @@
1
1
  import { LocalExpressionError, type LocalExpression } from './expression/compile.js';
2
- import type { LocalComputation, LocalValue, LocalValueKind } from '../types.js';
2
+ import type { LocalComputation, LocalValue, LocalValueKind, SourceRange } from '../types.js';
3
+ import type { LocalDiagnosticDetails } from '../configuration/diagnostics.js';
4
+ import type { TransformStage } from './expression/transform-budget.js';
3
5
  /**
4
6
  * Declarations are resolved in one bounded pass: every expression is compiled
5
7
  * once, the dependency graph is topologically ordered with an iterative Kahn
@@ -19,8 +21,12 @@ export interface ComputationInput {
19
21
  start: number;
20
22
  end: number;
21
23
  };
24
+ /** Map dataset dependencies to the original attribute text for diagnostics. */
25
+ datasetRange?: (expression: LocalExpression, dependency: string) => SourceRange | undefined;
26
+ /** A dataset's precomputed cell index. */
27
+ value?: string[];
22
28
  }
23
- export type ComputationReport = (code: string, message: string, start: number, end?: number) => void;
29
+ export type ComputationReport = (code: string, message: string | LocalDiagnosticDetails, start: number, end?: number, details?: LocalDiagnosticDetails) => void;
24
30
  export interface ResolvedComputations {
25
31
  computations: Record<string, LocalComputation>;
26
32
  kinds: Record<string, LocalValueKind>;
@@ -34,7 +40,9 @@ export interface ResolvedComputations {
34
40
  * uses this to evaluate a hand-built document without trusting declaration
35
41
  * order; unresolved names are reported through `cyclic`.
36
42
  */
37
- export declare function orderComputations(computations: Record<string, LocalComputation>): {
43
+ export declare function orderComputations(computations: Readonly<Record<string, {
44
+ dependencies: readonly string[];
45
+ }>>): {
38
46
  order: string[];
39
47
  cyclic: string[];
40
48
  };
@@ -44,7 +52,7 @@ export declare function resolveComputationGraph(inputs: ComputationInput[], cont
44
52
  }): ResolvedComputations;
45
53
  export interface ComputationEvaluation {
46
54
  values: Record<string, LocalValue>;
47
- errors: Map<string, LocalExpressionError>;
55
+ environment: Record<string, LocalValue>;
48
56
  }
49
57
  /**
50
58
  * Evaluate `computed` declarations against a control snapshot. Constants are
@@ -53,4 +61,4 @@ export interface ComputationEvaluation {
53
61
  * the original error only when the failing name is actually read, which keeps
54
62
  * short-circuited branches and independent consumers working.
55
63
  */
56
- export declare function evaluateComputations(computations: Record<string, LocalComputation>, order: string[], expressions: Map<string, LocalExpression>, controls: Record<string, LocalValue>, constValues: Record<string, LocalValue>, unavailable?: ReadonlyMap<string, LocalExpressionError>): ComputationEvaluation;
64
+ export declare function evaluateComputations(computations: Record<string, LocalComputation>, order: string[], expressions: Map<string, LocalExpression>, controls: Record<string, LocalValue>, constValues: Record<string, LocalValue>, unavailable?: ReadonlyMap<string, LocalExpressionError>, transactionStage?: TransformStage): ComputationEvaluation;
@@ -0,0 +1,4 @@
1
+ /** A collision-free key for an indexed cell, including Unicode and punctuation. */
2
+ export declare function datasetCellKey(row: string, column: string): string;
3
+ /** Dataset constants store sorted key/value pairs for bounded binary search. */
4
+ export declare function findDatasetCell(values: readonly unknown[], key: string): string | null;
@@ -2,3 +2,16 @@ export declare function sumNumberArray(values: readonly number[]): number;
2
2
  export declare function averageNumberArray(values: readonly number[]): number | null;
3
3
  export declare function minNumberArray(values: readonly number[]): number | null;
4
4
  export declare function maxNumberArray(values: readonly number[]): number | null;
5
+ /**
6
+ * Start-inclusive, end-exclusive numeric range. A positive step walks upward
7
+ * and a negative step walks downward. Candidates are built as
8
+ * `start + index * step` and walked while the represented value is strictly
9
+ * before `end`; counting by division is not reliable because it overestimates
10
+ * when the quotient rounds up (for example `(8.9 - 0) / 0.00089`). The
11
+ * comparison uses the represented values, so a distinct value one ULP below
12
+ * the endpoint is still returned. A step too small to change the current
13
+ * value is a domain error rather than a run of duplicates, and the item limit
14
+ * is enforced on the 10,001st value while exactly MAX_LOCAL_ARRAY_LENGTH
15
+ * values are accepted.
16
+ */
17
+ export declare function rangeNumbers(start: number, end: number, step: number): number[];