reactive-md 0.9.3 → 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 (299) hide show
  1. package/CHANGELOG-ch.md +34 -0
  2. package/CHANGELOG.md +34 -0
  3. package/README-ch.md +7 -7
  4. package/README-en.md +7 -7
  5. package/README.md +7 -7
  6. package/THIRD_PARTY_NOTICES.md +0 -57
  7. package/cli/help.mjs +6 -4
  8. package/cli/init.mjs +1 -1
  9. package/cli/migrate.mjs +1 -1
  10. package/dist-library/{LocalDocumentView-D6zQkTkt.js → LocalDocumentView-CP2QG86k.js} +46 -44
  11. package/dist-library/{LocalDocumentViewCore-CmJhemcA.js → LocalDocumentViewCore-Cd6yMEkg.js} +284 -265
  12. package/dist-library/{LocalReactiveDocumentCore-lAKOGAZ7.js → LocalReactiveDocumentCore-VuYpZqdn.js} +7 -7
  13. package/dist-library/LocalStaticDocumentView-DfX6bemE.js +147 -0
  14. package/dist-library/authoring-Bwu_zCWs.js +768 -0
  15. package/dist-library/choice-values-BItGjPD2.js +58 -0
  16. package/dist-library/compile-B35rfzKr.js +1742 -0
  17. package/dist-library/{compile-cache-key-6GgpETz_.js → compile-cache-key-D21X2Obx.js} +5 -5
  18. package/dist-library/{compiler-DLkKUK4t.js → compiler-DBwLawMZ.js} +4 -4
  19. package/dist-library/{compiler-core-Niqhp9wV.js → compiler-core-kkDiQ1RK.js} +3146 -2055
  20. package/dist-library/{component-kernel-IG4wOO0i.js → component-kernel-CsJSabHX.js} +42 -26
  21. package/dist-library/{component-state-Ht-hOK0W.js → component-state-Da0G8Ajc.js} +1 -1
  22. package/dist-library/{component-utils-eSj5IdG4.js → component-utils-ZM3jUJNy.js} +80 -79
  23. package/dist-library/conditional-branches-CIhJXasR.js +17 -0
  24. package/dist-library/{config-validation-Cpol91_M.js → config-validation-DbmsWAEV.js} +165 -152
  25. package/dist-library/{controls-B-CLSK8Q.js → controls-DRy5rzzN.js} +271 -228
  26. package/dist-library/{coordinate-PyLPMIQK.js → coordinate-c54pHfgf.js} +29 -29
  27. package/dist-library/data-table-CSAkm1eU.js +290 -0
  28. package/dist-library/data-table-model-DruztQFt.js +391 -0
  29. package/dist-library/{data-visuals-_Z7QqYTk.js → data-visuals-rZQUeQM0.js} +14 -14
  30. package/dist-library/{default-components-jugH7Ubr.js → default-components-B-39etG9.js} +233 -71
  31. package/dist-library/{default-config-DIrRpuQz.js → default-config-CCa8rm2k.js} +236 -216
  32. package/dist-library/default-options-By16CVw1.js +131 -0
  33. package/dist-library/{default-registry-BlloaZi7.js → default-registry-DXJy66xj.js} +3 -3
  34. package/dist-library/{default-schema-Ch-Vznpm.js → default-schema-CeYiEW1K.js} +3 -3
  35. package/dist-library/display-Bb6hAG5T.js +2065 -0
  36. package/dist-library/{document-theme-DBAfnk7y.js → document-theme-CJvN-nC1.js} +190 -3
  37. package/dist-library/{export-heVBqgxA.js → export-BSV4E0jv.js} +105 -106
  38. package/dist-library/font-aliases-CKYjwn4o.js +4 -0
  39. package/dist-library/{gallery-Q6VPS2ep.js → gallery-DM2yTVZJ.js} +1 -1
  40. package/dist-library/{html-CCnvzan1.js → html-CY9mC3Sr.js} +5 -5
  41. package/dist-library/{incremental-Bzvh8_lB.js → incremental-B-wW4H3F.js} +251 -245
  42. package/dist-library/{display-y4v9v0Qd.js → katex-4ukd4ZxT.js} +1555 -3618
  43. package/dist-library/layout-CPQggKxk.js +592 -0
  44. package/dist-library/{layout-BnfDeUNy.js → layout-CaDWsDof.js} +1 -1
  45. package/dist-library/{math-view-B0jthpRw.js → math-view-CyGTS6kv.js} +1 -1
  46. package/dist-library/{mount-preset-C_i37FvY.js → mount-preset-DtrCX4G8.js} +4 -4
  47. package/dist-library/{numeric-sliders-CkWS0-ja.js → numeric-sliders-BmJ1LCLx.js} +190 -190
  48. package/dist-library/{observability-CYLuvFfL.js → observability-BVQ16ByQ.js} +5 -4
  49. package/dist-library/{package-core-9UK5ZdqB.js → package-core-Cu_r_qs7.js} +7 -6
  50. package/dist-library/{parser-9yNJxGip.js → parser-BHl9Lxbw.js} +2 -2
  51. package/dist-library/{parser-standard-BPIy4HOu.js → parser-standard-DDAKv_DZ.js} +247 -247
  52. package/dist-library/{plugin-packs-CZb46nuv.js → plugin-packs-CkI0floL.js} +3 -3
  53. package/dist-library/{preset-core-BW3NWZJ9.js → preset-core-BKPbH_Nv.js} +377 -306
  54. package/dist-library/{props-pJRrfDc6.js → props-0iDqxlTk.js} +56 -61
  55. package/dist-library/{react-BSo0o998.js → react-74jdGBmu.js} +2 -2
  56. package/dist-library/reactive-md-authoring.js +277 -269
  57. package/dist-library/reactive-md-build.js +327 -33
  58. package/dist-library/reactive-md-compiler-session.js +3 -3
  59. package/dist-library/reactive-md-compiler-standard.js +10 -10
  60. package/dist-library/reactive-md-compiler.js +3 -3
  61. package/dist-library/reactive-md-contracts.js +4 -4
  62. package/dist-library/reactive-md-default-packs.js +4 -3
  63. package/dist-library/reactive-md-default-preset.js +3 -3
  64. package/dist-library/reactive-md-export.js +6 -6
  65. package/dist-library/reactive-md-minimal-preset.js +3 -2
  66. package/dist-library/reactive-md-minimal-react-preset.js +18 -17
  67. package/dist-library/reactive-md-minimal.css +1 -1
  68. package/dist-library/reactive-md-observability.js +2 -2
  69. package/dist-library/reactive-md-pack-style-manifest.js +8 -0
  70. package/dist-library/reactive-md-plugin-chart.js +13 -9
  71. package/dist-library/reactive-md-plugin-data.js +4 -4
  72. package/dist-library/reactive-md-plugin-diagram.js +3 -3
  73. package/dist-library/reactive-md-plugin-forms.js +5 -5
  74. package/dist-library/reactive-md-plugin-gallery.js +3 -3
  75. package/dist-library/reactive-md-plugin-navigation.js +10 -10
  76. package/dist-library/reactive-md-plugin-network.js +5 -5
  77. package/dist-library/reactive-md-plugin-plot.js +4 -4
  78. package/dist-library/reactive-md-react-component-accordion.js +3 -3
  79. package/dist-library/reactive-md-react-component-alert.js +3 -3
  80. package/dist-library/reactive-md-react-component-anchor.js +3 -3
  81. package/dist-library/reactive-md-react-component-badge.js +3 -3
  82. package/dist-library/reactive-md-react-component-card.js +3 -3
  83. package/dist-library/reactive-md-react-component-chart.js +2 -2
  84. package/dist-library/reactive-md-react-component-checkbox.js +2 -2
  85. package/dist-library/reactive-md-react-component-checklist.js +2 -2
  86. package/dist-library/reactive-md-react-component-choices.js +2 -2
  87. package/dist-library/reactive-md-react-component-column.js +1 -1
  88. package/dist-library/reactive-md-react-component-coordinate.js +2 -2
  89. package/dist-library/reactive-md-react-component-counter.js +2 -2
  90. package/dist-library/reactive-md-react-component-data-table.js +2 -2
  91. package/dist-library/reactive-md-react-component-date.js +2 -2
  92. package/dist-library/reactive-md-react-component-diagram.js +2 -2
  93. package/dist-library/reactive-md-react-component-disclosure.js +3 -3
  94. package/dist-library/reactive-md-react-component-edge.js +1 -1
  95. package/dist-library/reactive-md-react-component-else.js +10 -0
  96. package/dist-library/reactive-md-react-component-gallery-item.js +2 -2
  97. package/dist-library/reactive-md-react-component-gallery.js +2 -2
  98. package/dist-library/reactive-md-react-component-grid.js +3 -3
  99. package/dist-library/reactive-md-react-component-if.js +3 -3
  100. package/dist-library/reactive-md-react-component-input.js +2 -2
  101. package/dist-library/reactive-md-react-component-jump.js +3 -3
  102. package/dist-library/reactive-md-react-component-multi-select.js +2 -2
  103. package/dist-library/reactive-md-react-component-node.js +2 -2
  104. package/dist-library/reactive-md-react-component-number.js +2 -2
  105. package/dist-library/reactive-md-react-component-option.js +1 -1
  106. package/dist-library/reactive-md-react-component-panel.js +3 -3
  107. package/dist-library/reactive-md-react-component-plot.js +2 -2
  108. package/dist-library/reactive-md-react-component-progress.js +2 -2
  109. package/dist-library/reactive-md-react-component-quiz.js +2 -2
  110. package/dist-library/reactive-md-react-component-radio-group.js +2 -2
  111. package/dist-library/reactive-md-react-component-range-slider.js +2 -2
  112. package/dist-library/reactive-md-react-component-section.js +3 -3
  113. package/dist-library/reactive-md-react-component-select.js +2 -2
  114. package/dist-library/reactive-md-react-component-slider.js +2 -2
  115. package/dist-library/reactive-md-react-component-step.js +3 -3
  116. package/dist-library/reactive-md-react-component-steps.js +3 -3
  117. package/dist-library/reactive-md-react-component-tab.js +3 -3
  118. package/dist-library/reactive-md-react-component-table.js +2 -2
  119. package/dist-library/reactive-md-react-component-tabs.js +3 -3
  120. package/dist-library/reactive-md-react-component-text.js +3 -3
  121. package/dist-library/reactive-md-react-component-textarea.js +2 -2
  122. package/dist-library/reactive-md-react-component-timeline.js +2 -2
  123. package/dist-library/reactive-md-react-component-timer.js +2 -2
  124. package/dist-library/reactive-md-react-component-toggle.js +2 -2
  125. package/dist-library/reactive-md-react-component-tooltip.js +3 -3
  126. package/dist-library/reactive-md-react-component-validation.js +3 -3
  127. package/dist-library/reactive-md-react-minimal.js +4 -4
  128. package/dist-library/reactive-md-react-pack-controls.js +4 -4
  129. package/dist-library/reactive-md-react-pack-data.js +3 -3
  130. package/dist-library/reactive-md-react-pack-layout.js +25 -24
  131. package/dist-library/reactive-md-react-pack-visuals.js +2 -2
  132. package/dist-library/reactive-md-react-packed.js +6 -6
  133. package/dist-library/reactive-md-react-server.js +37 -36
  134. package/dist-library/reactive-md-react-static-server.js +2 -2
  135. package/dist-library/reactive-md-react-static.js +1 -1
  136. package/dist-library/reactive-md-react-unstyled.js +12 -12
  137. package/dist-library/reactive-md-react.js +12 -12
  138. package/dist-library/reactive-md-scan.js +1 -1
  139. package/dist-library/reactive-md-sdk.js +23 -9
  140. package/dist-library/reactive-md-standalone-configured.js +2 -2
  141. package/dist-library/reactive-md-standalone-host.js +2 -2
  142. package/dist-library/reactive-md-testing-browser.js +2 -2
  143. package/dist-library/reactive-md-testing-react.js +6 -6
  144. package/dist-library/reactive-md-testing.js +6 -6
  145. package/dist-library/reactive-md-vite.js +25 -9
  146. package/dist-library/reactive-md-worker-pool.js +3 -3
  147. package/dist-library/reactive-md.css +1 -1
  148. package/dist-library/reactive-md.js +52 -43
  149. package/dist-library/{registry-core-CziAIP5P.js → registry-core-DxEaxhJ6.js} +3 -2
  150. package/dist-library/{render-nodes-DKjg_TR1.js → render-nodes-B6j6Ip5I.js} +766 -731
  151. package/dist-library/{requirements-DhIkxAbl.js → requirements-C56sFIEs.js} +2 -2
  152. package/dist-library/{resources-B_nbROgj.js → resources-6VaNgk-h.js} +2 -2
  153. package/dist-library/rmd-pack-layout.css +9 -0
  154. package/dist-library/rmd-pack-resource-layout.css +9 -0
  155. package/dist-library/runtime-BHeuLOv_.js +1369 -0
  156. package/dist-library/{runtime-requirement-C4-vNcf5.js → runtime-requirement-DzPO8raU.js} +166 -163
  157. package/dist-library/{schema-core-4sd1Vu7V.js → schema-core-CDXfxdID.js} +24 -1
  158. package/dist-library/{sdk-core-BLsW9cCy.js → sdk-core-CnE-n0Z7.js} +469 -314
  159. package/dist-library/{session-core-DLBRPV7f.js → session-core-C071yQwV.js} +140 -127
  160. package/dist-library/{validation-XXlb-spV.js → sha256-utf16-Bmandi_H.js} +392 -315
  161. package/dist-library/shareable-CHCDnl6j.js +844 -0
  162. package/dist-library/types/authoring/catalog.d.ts +3 -1
  163. package/dist-library/types/authoring/index.d.ts +1 -1
  164. package/dist-library/types/components/chart/default-chart-types.d.ts +3 -0
  165. package/dist-library/types/components/chart/default-chart.d.ts +7 -0
  166. package/dist-library/types/components/entries/else.d.ts +3 -0
  167. package/dist-library/types/components/layout/layout.d.ts +5 -0
  168. package/dist-library/types/components/shared/visuals.d.ts +1 -1
  169. package/dist-library/types/components/table/data-table-model.d.ts +95 -2
  170. package/dist-library/types/components/table/data-table.d.ts +2 -2
  171. package/dist-library/types/contracts/component-kernel.d.ts +5 -0
  172. package/dist-library/types/contracts/font-aliases.d.ts +18 -0
  173. package/dist-library/types/contracts/number-literal.d.ts +2 -0
  174. package/dist-library/types/contracts/sha256-utf16.d.ts +2 -0
  175. package/dist-library/types/export/index.d.ts +4 -1
  176. package/dist-library/types/local/compilation/compiler-choices.d.ts +4 -0
  177. package/dist-library/types/local/compilation/compiler-declarations.d.ts +2 -1
  178. package/dist-library/types/local/compilation/compiler-expressions.d.ts +12 -1
  179. package/dist-library/types/local/compilation/compiler-macros.d.ts +18 -0
  180. package/dist-library/types/local/compilation/compiler-structure.d.ts +8 -2
  181. package/dist-library/types/local/compilation/compiler-tables.d.ts +1 -0
  182. package/dist-library/types/local/compilation/compiler-validation.d.ts +11 -0
  183. package/dist-library/types/local/compilation/compiler-values.d.ts +1 -2
  184. package/dist-library/types/local/configuration/diagnostic-messages.d.ts +173 -2
  185. package/dist-library/types/local/configuration/diagnostic-runtime-messages.d.ts +40 -0
  186. package/dist-library/types/local/evaluation/choice-values.d.ts +22 -0
  187. package/dist-library/types/local/evaluation/computations.d.ts +13 -5
  188. package/dist-library/types/local/evaluation/dataset.d.ts +4 -0
  189. package/dist-library/types/local/evaluation/expression/collection-functions.d.ts +13 -0
  190. package/dist-library/types/local/evaluation/expression/compile.d.ts +11 -4
  191. package/dist-library/types/local/evaluation/expression/data-functions.d.ts +23 -0
  192. package/dist-library/types/local/evaluation/expression/evaluation.d.ts +3 -1
  193. package/dist-library/types/local/evaluation/expression/internal-names.d.ts +8 -0
  194. package/dist-library/types/local/evaluation/expression/syntax.d.ts +19 -2
  195. package/dist-library/types/local/evaluation/expression/transform-budget.d.ts +13 -0
  196. package/dist-library/types/local/evaluation/expression/values.d.ts +9 -1
  197. package/dist-library/types/local/evaluation/validation.d.ts +8 -6
  198. package/dist-library/types/local/index.d.ts +4 -3
  199. package/dist-library/types/local/parsing/conditional-branches.d.ts +4 -0
  200. package/dist-library/types/local/parsing/source-revision.d.ts +3 -0
  201. package/dist-library/types/local/runtime/runtime-choices.d.ts +11 -0
  202. package/dist-library/types/local/runtime/runtime.d.ts +3 -1
  203. package/dist-library/types/local/runtime/state.d.ts +30 -15
  204. package/dist-library/types/local/source/authoring-requirements.d.ts +3 -0
  205. package/dist-library/types/local/source/authoring-syntax.d.ts +3 -2
  206. package/dist-library/types/local/source/authoring.d.ts +10 -0
  207. package/dist-library/types/local/source/source-migration.d.ts +1 -0
  208. package/dist-library/types/local/types.d.ts +33 -2
  209. package/dist-library/types/react/component-api.d.ts +21 -2
  210. package/dist-library/types/react/component-utils.d.ts +11 -0
  211. package/dist-library/types/react/font-aliases.d.ts +2 -0
  212. package/dist-library/types/react/package-core.d.ts +3 -0
  213. package/dist-library/types/react/rendering/document/validation-state.d.ts +1 -1
  214. package/dist-library/types/react/rendering/document/view-revision.d.ts +3 -12
  215. package/dist-library/types/react/rendering/table/data-table.d.ts +1 -1
  216. package/dist-library/types/react/sdk-core.d.ts +3 -1
  217. package/dist-library/types/sdk/assembly.d.ts +3 -0
  218. package/dist-library/types/sdk/font.d.ts +13 -0
  219. package/dist-library/types/sdk/index.d.ts +1 -0
  220. package/dist-library/types/sdk/theme.d.ts +5 -0
  221. package/dist-library/types/sdk/types.d.ts +6 -0
  222. package/dist-library/types/sdk/version.d.ts +1 -1
  223. package/dist-library/types/shareable.d.ts +15 -3
  224. package/dist-library/types/standalone/prepare.d.ts +4 -2
  225. package/dist-library/types/standalone/session-core.d.ts +4 -1
  226. package/dist-library/types/vite/index.d.ts +3 -0
  227. package/dist-library/types/vite/registration.d.ts +1 -0
  228. package/dist-library/{types-Bza88SGK.js → types-B4qG8J4S.js} +1 -1
  229. package/dist-library/types-FYhRWRn9.js +3 -0
  230. package/dist-library/use-hydrated-D1gFY2Dq.js +2655 -0
  231. package/dist-library/validation-DRuW0Wl9.js +433 -0
  232. package/dist-library/{version-B0G1699c.js → version-4wzhbvDG.js} +1 -1
  233. package/dist-library/{visual-helpers-CRmaqCHX.js → visual-helpers-UU6xiL8g.js} +3 -3
  234. package/dist-library/visuals-7xzoL9ql.js +49340 -0
  235. package/dist-library/{worker-D6WMV8xJ.js → worker-3ldRjOEG.js} +9 -9
  236. package/dist-standalone/reactive-md-standalone.css +1 -1
  237. package/dist-standalone/reactive-md-standalone.js +128 -368
  238. package/docs/README-ch.md +3 -1
  239. package/docs/README.md +3 -1
  240. package/docs/compatibility/api-stability-ch.md +1 -1
  241. package/docs/compatibility/api-stability-en.md +1 -1
  242. package/docs/compatibility/compatibility-ch.md +15 -15
  243. package/docs/compatibility/compatibility-en.md +15 -15
  244. package/docs/compatibility/compatibility-manifest.schema.json +3 -2
  245. package/docs/compatibility/deprecation-ch.md +2 -2
  246. package/docs/compatibility/deprecation-en.md +2 -2
  247. package/docs/compatibility/source-versioning-ch.md +22 -14
  248. package/docs/compatibility/source-versioning-en.md +22 -13
  249. package/docs/compatibility/support-matrix-ch.md +4 -3
  250. package/docs/compatibility/support-matrix-en.md +4 -3
  251. package/docs/development/component-development-ch.md +2 -2
  252. package/docs/development/component-development-en.md +2 -2
  253. package/docs/development/component-protocol-ch.md +18 -18
  254. package/docs/development/component-protocol-en.md +14 -14
  255. package/docs/guides/local-guide-ch.md +109 -20
  256. package/docs/guides/local-guide-en.md +109 -20
  257. package/docs/integration/author-tools-ch.md +1 -1
  258. package/docs/integration/author-tools-en.md +1 -1
  259. package/docs/integration/editor-ch.md +3 -3
  260. package/docs/integration/editor-en.md +3 -3
  261. package/docs/integration/extension-sdk-ch.md +29 -3
  262. package/docs/integration/extension-sdk-en.md +29 -3
  263. package/docs/integration/local-integration-ch.md +3 -3
  264. package/docs/integration/local-integration-en.md +3 -3
  265. package/docs/integration/pdf-export-ch.md +42 -0
  266. package/docs/integration/pdf-export-en.md +42 -0
  267. package/docs/integration/shareable-export-ch.md +11 -19
  268. package/docs/integration/shareable-export-en.md +11 -19
  269. package/docs/reference/diagnostics-counting-ch.md +24 -1
  270. package/docs/reference/diagnostics-counting-en.md +24 -1
  271. package/docs/reference/local-interaction-syntax-ch.md +222 -33
  272. package/docs/reference/local-interaction-syntax-en.md +220 -31
  273. package/docs/reference/public-api-ch.md +24 -18
  274. package/docs/reference/public-api-en.md +24 -18
  275. package/docs/reference/theme-protocol-ch.md +1 -1
  276. package/docs/reference/theme-protocol-en.md +1 -1
  277. package/docs/releases/release-0.10.0-ch.md +45 -0
  278. package/docs/releases/release-0.10.0-en.md +45 -0
  279. package/examples/conformance/README-ch.md +3 -3
  280. package/examples/conformance/README.md +3 -3
  281. package/examples/conformance/local-draft-4.json +441 -0
  282. package/examples/integration/README-ch.md +3 -3
  283. package/examples/integration/README.md +3 -3
  284. package/examples/integration/chat-session/package.json +1 -1
  285. package/examples/local/README-ch.md +1 -1
  286. package/examples/local/README.md +1 -1
  287. package/package.json +6 -1
  288. package/dist-library/LocalStaticDocumentView-2J7w0sKm.js +0 -143
  289. package/dist-library/authoring-B14SsOXZ.js +0 -893
  290. package/dist-library/compile-D50B5_Ww.js +0 -1249
  291. package/dist-library/computations-CffoW7Ff.js +0 -340
  292. package/dist-library/data-table-Kv_ZA2Z2.js +0 -297
  293. package/dist-library/default-options-DU5dxuU6.js +0 -125
  294. package/dist-library/layout-BfUzzO2b.js +0 -553
  295. package/dist-library/runtime-CuJndKqK.js +0 -1289
  296. package/dist-library/shareable-C6mUerpQ.js +0 -817
  297. package/dist-library/types-daDo2c_w.js +0 -3
  298. package/dist-library/use-hydrated-W-laKPhY.js +0 -22975
  299. package/dist-library/visuals-CoVSjVD8.js +0 -49159
package/CHANGELOG-ch.md CHANGED
@@ -2,6 +2,40 @@
2
2
 
3
3
  **中文** · [English](CHANGELOG.md)
4
4
 
5
+ ## 0.10.0(2026-12-01,latest 渠道)
6
+
7
+ 启用 local-draft-4 并强制迁移、`<else>` 分支、键控 Markdown 数据集、表达式辅助函数与有界数组变换、数组驱动的表格与图表及动态选项、data-table 平均值汇总与对齐、交互宏,以及行内排版与作用域字体注册。
8
+
9
+ ### 新增
10
+
11
+ - 发布 `local-draft-4`。源码在文首声明修订,`reactive-md migrate` 迁移 draft-3 源码并报告新激活的 `<else>` 与 `<dataset>` 标签。draft-4 的辅助函数与变换名称仍可作为绑定和声明名使用。
12
+ - 新增 `<if>` 的同级 `<else>` 分支,包含配对校验、交互与静态渲染及迁移检查。
13
+ - 新增顶层键控 Markdown `<dataset>` 声明与 `lookup(dataset, rowKey, columnName)`,供正文、命名值和生成列共享表格行。
14
+ - 新增 `??` 空值合并;`ifBlank`、`number`、`string`、`join`、`split`、`range`、`dateAdd` 与 `formatDate` 辅助函数;`round` 的可选小数位;以及有界的 `filter`、`map` 与 `sortBy` 变换:数组上限 10,000 项,单表达式条件、投影或键求值上限 50,000 次,嵌套三层,字符串数组预算 100,000 个 UTF-16 单元。
15
+ - 新增数组驱动的 `chart` 行、生成单元格与图表读数中的列格式化、`data-table` 的搜索、排序、分页与选择,以及单选和多选控件的 `options` 数组。
16
+ - 新增 `data-table` 的 `summary="average"`、表格与列 `align`、动态 `row-align` 和静态 `empty` 状态。
17
+ - 新增交互宏:文档级 `<macro>` 定义参数与输出,支持前置 `<use>` 调用、嵌套调用、实例私有状态与有界展开。
18
+ - 新增 `<text>` 的 `size` 与 `font` 属性、通过 `createReactHost({ fonts })` 与 `defineLocalFont` 注册宿主字体别名,以及主题作用域字体注册。
19
+ - 从根入口与导出入口暴露 `escapeInlineScript`。
20
+
21
+ ### 变更
22
+
23
+ - 强制 `local-draft-4`(破坏性变更)。声明 `local-draft-3` 的源码必须先运行 `reactive-md migrate`,该引擎才接受。
24
+ - 生成的 `data-table` 列与 `chart` 读数使用列格式化。静态 Markdown 表格单元格和图表坐标轴保持纯文本显示。
25
+
26
+ ### 修复
27
+
28
+ - 加固 `escapeInlineScript`:`</script`、`<!--` 和 `<script` 在字符串、模板字面量和 `u`/`v` 正则中保持字面值,HTML 分词器无法关闭脚本元素。
29
+ - 独立宿主构建以 `local.build.host-browser` 拒绝 Node 内置模块导入,并指出模块名与导入方。
30
+ - 作者服务反映必填的源码属性。
31
+ - 通过 npm override 去除重复的 KaTeX 核心,并移除重复的许可声明。
32
+ - 修复 draft-4 复核问题:辅助函数名与保留名称、range 的 represented-value 上限、亚毫秒 `dateAdd` 输入、`<else>` 插入成对输出,以及按配对 else 节点选择分支。
33
+ - 无运行时文档的 `<text>` 应用宿主与主题字体别名,`reactive-md/react/static` 与 `reactive-md/react/static/server` 的输出与交互视图一致。
34
+ - 交互式导出的重置保持有序宏槽位一致:与私有宏绑定相关的槽位(如区间滑块的另一端点)随其一起恢复到源码默认值,公开绑定仍恢复导出值。
35
+ - 生成的 `data-table` 单元格与 `chart` 行解析 `lookup()` 数据集,不再作为未知依赖报告。
36
+ - 未知数据集诊断在属性、插值与命名值中指向作者书写的名称。
37
+ - 宏输出绑定冲突的诊断定位到冲突的 `<use>` 调用,不再指向宏定义。
38
+
5
39
  ## 0.9.3(2026-11-27,latest 渠道)
6
40
 
7
41
  受限嵌入与降级编译、无运行时的静态 React 与 SSR(含旧式宿主组件)、编译缓存身份与组件清单、精简的会话与扫描入口、支持暂停/恢复的多文档 Worker 池、性能报告,以及按需组件装载。
package/CHANGELOG.md CHANGED
@@ -2,6 +2,40 @@
2
2
 
3
3
  **English** · [中文](CHANGELOG-ch.md)
4
4
 
5
+ ## 0.10.0 (2026-12-01, latest channel)
6
+
7
+ Local-draft-4 with required migration, `<else>` branches, keyed Markdown datasets, expression helpers and bounded array transforms, array-driven tables and charts with dynamic choices, data-table summaries and alignment, interaction macros, and inline typography with scoped font registration.
8
+
9
+ ### Added
10
+
11
+ - Publish `local-draft-4`. Sources select the revision in the prologue, and `reactive-md migrate` moves draft-3 sources and reports newly active `<else>` and `<dataset>` tags. Draft-4 helper and transform names remain usable as binding and declaration names.
12
+ - Add sibling `<else>` branches, with pairing validation, interactive and static rendering, and migration checks.
13
+ - Add keyed Markdown `<dataset>` declarations and `lookup(dataset, rowKey, columnName)` for shared table rows.
14
+ - Add `??` nullish coalescing; `ifBlank`, `number`, `string`, `join`, `split`, `range`, `dateAdd` and `formatDate` helpers; optional digits for `round`; and bounded `filter`, `map` and `sortBy` transforms with 10,000 elements, 50,000 condition, projection or key evaluations, three nesting levels and a 100,000 UTF-16-unit string budget.
15
+ - Add array-driven `chart` rows, column formatting for generated cells and chart readouts, `data-table` search, sorting, paging and selection, and `options` arrays on single and multiple-choice selectors.
16
+ - Add `summary="average"`, table and column `align`, dynamic `row-align` and a static `empty` state to `data-table`.
17
+ - Add interaction macros: document-level `<macro>` definitions with parameters and outputs, forward `<use>` calls, nested calls, per-instance state and bounded expansion.
18
+ - Add `<text>` size and font attributes, host font aliases through `createReactHost({ fonts })` and `defineLocalFont`, and theme-scoped font registration.
19
+ - Export `escapeInlineScript` from the root and export entries.
20
+
21
+ ### Changed
22
+
23
+ - Require `local-draft-4` (breaking). Sources that declare `local-draft-3` must run `reactive-md migrate` before this engine accepts them.
24
+ - Generated `data-table` columns and `chart` readouts use column formatting. Static Markdown table cells and chart axes keep their plain display.
25
+
26
+ ### Fixed
27
+
28
+ - Harden `escapeInlineScript` so `</script`, `<!--` and `<script` stay literal in strings, template literals and `u`/`v` regular expressions while the HTML tokenizer cannot close the script element.
29
+ - Reject Node built-in imports in standalone host builds with `local.build.host-browser`, naming the specifier and importer.
30
+ - Reflect required source attributes in authoring.
31
+ - Deduplicate the KaTeX core through an npm override and remove the repeated license notices.
32
+ - Close draft-4 review regressions in callable helper names, range represented-value limits, sub-millisecond `dateAdd` inputs, `<else>` insertion pairs and branch selection keyed by the paired else node.
33
+ - Apply host and theme font aliases to `<text>` in runtime-free documents, so `reactive-md/react/static` and `reactive-md/react/static/server` render the same font family as the interactive view.
34
+ - Reset ordered macro slots together in interactive exports: when a slot tied to a private macro binding resets to its authored default, related slots such as a range slider's other endpoint reset with it, while public bindings keep the exported values.
35
+ - Resolve `lookup()` datasets in generated `data-table` cells and `chart` rows instead of reporting them as unknown dependencies.
36
+ - Point unknown dataset diagnostics at the authored dataset name in attributes, interpolations and named values.
37
+ - Report macro output binding conflicts at the conflicting `<use>` call instead of the macro definition.
38
+
5
39
  ## 0.9.3 (2026-11-27, latest channel)
6
40
 
7
41
  Restricted embedding and fallback compilation, runtime-free static React and SSR with legacy host components, compiler cache identity and component inventory, narrow session and scan entries, a multi-document Worker pool with pause/resume, performance reports, and on-demand component loading.
package/README-ch.md CHANGED
@@ -27,7 +27,7 @@ Reactive MD 把普通 Markdown 变成一个小型应用:命名输入、实时
27
27
  | --- | --- |
28
28
  | 写作 | `.reactive.md`,HTML 风格标签与 `{{ 表达式 }}` |
29
29
  | 运行 | 本地优先状态;无需后端 |
30
- | 视图 | 51 个内置标签、5 种图表、表格、曲线、图解、画廊、步骤与测验 |
30
+ | 视图 | 52 个内置标签、5 种图表、表格、曲线、图解、画廊、步骤与测验 |
31
31
  | 集成 | TypeScript 核心、React 19 渲染器、CM6 源码编辑器、CLI |
32
32
  | 扩展 | npm 组件包、主题、编辑器目录、离线包 |
33
33
  | 分享 | 单文件交互 HTML、静态 HTML、版本化状态文件 |
@@ -192,15 +192,15 @@ Reactive MD 需要 Node.js 22.12 或更新版本,包只提供 ESM 入口:
192
192
  npm install reactive-md
193
193
  ```
194
194
 
195
- 0.9.3 稳定版使用 `latest` 渠道。项目也可以固定版本。
195
+ 0.10.0 稳定版使用 `latest` 渠道。项目也可以固定版本。
196
196
 
197
197
  ```sh
198
198
  npm install reactive-md
199
199
  # 或固定版本
200
- npm install reactive-md@0.9.3
200
+ npm install reactive-md@0.10.0
201
201
  ```
202
202
 
203
- 升级前请阅读 [0.9.3 发布说明](docs/releases/release-0.9.3-ch.md)、[兼容性说明](docs/compatibility/compatibility-ch.md)和[支持矩阵](docs/compatibility/support-matrix-ch.md)。
203
+ 升级前请阅读 [0.10.0 发布说明](docs/releases/release-0.10.0-ch.md)、[兼容性说明](docs/compatibility/compatibility-ch.md)和[支持矩阵](docs/compatibility/support-matrix-ch.md)。
204
204
 
205
205
  ### 升级到 0.8.0
206
206
 
@@ -359,7 +359,7 @@ export function Article({ source }: { source: string }) {
359
359
 
360
360
  ## 用 React 编辑源码
361
361
 
362
- 可复用的源码编辑器位于独立包 `reactive-md-editor`(`0.2.1`,要求 `reactive-md@^0.9.2` 引擎 peer),使用独立样式表,与引擎一起安装。0.7 中它以 `reactive-md/editor` 提供;自 0.8 起独立为单独的包。组件是受控的,需要 React 19:
362
+ 可复用的源码编辑器位于独立包 `reactive-md-editor`(`0.3.0`,要求 `reactive-md@^0.10.0` 引擎 peer),使用独立样式表,与引擎一起安装。0.7 中它以 `reactive-md/editor` 提供;自 0.8 起独立为单独的包。组件是受控的,需要 React 19:
363
363
 
364
364
  ```tsx
365
365
  import { useState } from 'react';
@@ -410,13 +410,13 @@ benchmarks/ 带来源说明的精简性能数据
410
410
  - [扩展开发教程](docs/development/extension-tutorial-ch.md):选择入口、编写组件包并验证。
411
411
  - [版本与兼容性](docs/compatibility/compatibility-ch.md)与[支持矩阵](docs/compatibility/support-matrix-ch.md)。
412
412
  - [性能说明](docs/development/performance-overview-ch.md)与[发布清单](CONTRIBUTING-ch.md#发布流程)。
413
- - [0.9.3 发布说明](docs/releases/release-0.9.3-ch.md)和[历史发布记录](docs/releases)。
413
+ - [0.10.0 发布说明](docs/releases/release-0.10.0-ch.md)和[历史发布记录](docs/releases)。
414
414
 
415
415
  ## 支持与状态
416
416
 
417
417
  - CI 使用 Node 24 运行引擎检查和预设脚手架验证。打包消费者检查覆盖静态 SSR。构建后运行 `node scripts/verify-shareable.mjs`,可用 Chromium 验证单文件水合并测量 standalone 体积。
418
418
  - 0.x 次版本可能包含破坏性变更。请保存原始 `.reactive.md` 源码,而不是运行时 AST 或内存状态。
419
- - `0.9.3` 是 `latest` 渠道的稳定版本。安全修复可能随次版本发布。
419
+ - `0.10.0` 是 `latest` 渠道的稳定版本。安全修复可能随次版本发布。
420
420
  - 扩展 SDK 契约为 `0.7.0`。组件包、主题、Vite 适配器、离线构建和合规工具均使用公开入口。
421
421
 
422
422
  ## 贡献与安全
package/README-en.md CHANGED
@@ -27,7 +27,7 @@ Themes and components can be loaded from `theme/` and `plugin/` with `reactiveMd
27
27
  | --- | --- |
28
28
  | Authoring | `.reactive.md` with HTML-style tags and `{{ expressions }}` |
29
29
  | Runtime | Local-first state; no backend required |
30
- | Views | 51 built-in tags, 5 chart kinds, tables, plots, diagrams, galleries, steps and quizzes |
30
+ | Views | 52 built-in tags, 5 chart kinds, tables, plots, diagrams, galleries, steps and quizzes |
31
31
  | Integration | TypeScript core, React 19 renderer, CM6 source editor, CLI |
32
32
  | Extensions | npm component packages, themes, authoring catalog, offline bundles |
33
33
  | Sharing | Single-file interactive HTML, static HTML, versioned state files |
@@ -192,15 +192,15 @@ Reactive MD requires Node.js 22.12 or newer and ships only ESM entries:
192
192
  npm install reactive-md
193
193
  ```
194
194
 
195
- The 0.9.3 stable release uses the `latest` channel. Pin the version if your project requires it.
195
+ The 0.10.0 stable release uses the `latest` channel. Pin the version if your project requires it.
196
196
 
197
197
  ```sh
198
198
  npm install reactive-md
199
199
  # or pin the version
200
- npm install reactive-md@0.9.3
200
+ npm install reactive-md@0.10.0
201
201
  ```
202
202
 
203
- Read the [0.9.3 release notes](docs/releases/release-0.9.3-en.md) and the [compatibility guide](docs/compatibility/compatibility-en.md) before upgrading.
203
+ Read the [0.10.0 release notes](docs/releases/release-0.10.0-en.md) and the [compatibility guide](docs/compatibility/compatibility-en.md) before upgrading.
204
204
 
205
205
  ### Upgrade to 0.8.0
206
206
 
@@ -359,7 +359,7 @@ export function Article({ source }: { source: string }) {
359
359
 
360
360
  ## Edit source with React
361
361
 
362
- The reusable source editor lives in the separate `reactive-md-editor` package (`0.2.1`, requiring the `reactive-md@^0.9.2` engine peer), with its own stylesheet. Install it alongside the engine. In 0.7 it shipped as `reactive-md/editor`; it has been a separate package since 0.8. The component is controlled and requires React 19:
362
+ The reusable source editor lives in the separate `reactive-md-editor` package (`0.3.0`, requiring the `reactive-md@^0.10.0` engine peer), with its own stylesheet. Install it alongside the engine. In 0.7 it shipped as `reactive-md/editor`; it has been a separate package since 0.8. The component is controlled and requires React 19:
363
363
 
364
364
  ```tsx
365
365
  import { useState } from 'react';
@@ -410,13 +410,13 @@ benchmarks/ Condensed performance measurements with provenance
410
410
  - [Extension tutorial](docs/development/extension-tutorial-en.md): choose an entry, build a component package and verify it.
411
411
  - [Versions and compatibility](docs/compatibility/compatibility-en.md).
412
412
  - [Performance measurements](docs/development/performance-overview-en.md) and [release checklist](CONTRIBUTING.md#releasing).
413
- - [0.9.3 release notes](docs/releases/release-0.9.3-en.md) and [previous releases](docs/releases).
413
+ - [0.10.0 release notes](docs/releases/release-0.10.0-en.md) and [previous releases](docs/releases).
414
414
 
415
415
  ## Support and status
416
416
 
417
417
  - CI runs the engine checks and preset scaffold verification on Node 24. The packed-consumer check covers static SSR. Run `node scripts/verify-shareable.mjs` after building to test single-file hydration in Chromium and measure the standalone bundle.
418
418
  - 0.x minor releases may contain breaking changes. Persist the original `.reactive.md` source, not the runtime AST or in-memory state.
419
- - `0.9.3` is the stable release on `latest`. Security fixes may ship in minor releases.
419
+ - `0.10.0` is the stable release on `latest`. Security fixes may ship in minor releases.
420
420
  - The extension SDK contract is `0.7.0`. Component packages, themes, the Vite adapter, offline builds and compliance tools use the public entries.
421
421
 
422
422
  ## Contributing and security
package/README.md CHANGED
@@ -27,7 +27,7 @@ Themes and components can be loaded from `theme/` and `plugin/` with `reactiveMd
27
27
  | --- | --- |
28
28
  | Authoring | `.reactive.md` with HTML-style tags and `{{ expressions }}` |
29
29
  | Runtime | Local-first state; no backend required |
30
- | Views | 51 built-in tags, 5 chart kinds, tables, plots, diagrams, galleries, steps and quizzes |
30
+ | Views | 52 built-in tags, 5 chart kinds, tables, plots, diagrams, galleries, steps and quizzes |
31
31
  | Integration | TypeScript core, React 19 renderer, CM6 source editor, CLI |
32
32
  | Extensions | npm component packages, themes, authoring catalog, offline bundles |
33
33
  | Sharing | Single-file interactive HTML, static HTML, versioned state files |
@@ -192,15 +192,15 @@ Reactive MD requires Node.js 22.12 or newer and ships only ESM entries:
192
192
  npm install reactive-md
193
193
  ```
194
194
 
195
- The 0.9.3 stable release uses the `latest` channel. Pin the version if your project requires it.
195
+ The 0.10.0 stable release uses the `latest` channel. Pin the version if your project requires it.
196
196
 
197
197
  ```sh
198
198
  npm install reactive-md
199
199
  # or pin the version
200
- npm install reactive-md@0.9.3
200
+ npm install reactive-md@0.10.0
201
201
  ```
202
202
 
203
- Read the [0.9.3 release notes](docs/releases/release-0.9.3-en.md), the [compatibility guide](docs/compatibility/compatibility-en.md) and the [support matrix](docs/compatibility/support-matrix-en.md) before upgrading.
203
+ Read the [0.10.0 release notes](docs/releases/release-0.10.0-en.md), the [compatibility guide](docs/compatibility/compatibility-en.md) and the [support matrix](docs/compatibility/support-matrix-en.md) before upgrading.
204
204
 
205
205
  ### Upgrade to 0.8.0
206
206
 
@@ -357,7 +357,7 @@ export function Article({ source }: { source: string }) {
357
357
 
358
358
  ## Edit source with React
359
359
 
360
- The reusable source editor lives in the separate `reactive-md-editor` package (`0.2.1`, requiring the `reactive-md@^0.9.2` engine peer), with its own stylesheet. Install it alongside the engine. In 0.7 it shipped as `reactive-md/editor`; it has been a separate package since 0.8. The component is controlled and requires React 19:
360
+ The reusable source editor lives in the separate `reactive-md-editor` package (`0.3.0`, requiring the `reactive-md@^0.10.0` engine peer), with its own stylesheet. Install it alongside the engine. In 0.7 it shipped as `reactive-md/editor`; it has been a separate package since 0.8. The component is controlled and requires React 19:
361
361
 
362
362
  ```tsx
363
363
  import { useState } from 'react';
@@ -408,13 +408,13 @@ benchmarks/ Condensed performance measurements with provenance
408
408
  - [Extension tutorial](docs/development/extension-tutorial-en.md): choose an entry, build a component package and verify it.
409
409
  - [Versions and compatibility](docs/compatibility/compatibility-en.md) and [support matrix](docs/compatibility/support-matrix-en.md).
410
410
  - [Performance measurements](docs/development/performance-overview-en.md) and [release checklist](CONTRIBUTING.md#releasing).
411
- - [0.9.3 release notes](docs/releases/release-0.9.3-en.md) and [previous releases](docs/releases).
411
+ - [0.10.0 release notes](docs/releases/release-0.10.0-en.md) and [previous releases](docs/releases).
412
412
 
413
413
  ## Support and status
414
414
 
415
415
  - CI runs the engine checks and preset scaffold verification on Node 24. The packed-consumer check covers static SSR. Run `node scripts/verify-shareable.mjs` after building to test single-file hydration in Chromium and measure the standalone bundle.
416
416
  - 0.x minor releases may contain breaking changes. Persist the original `.reactive.md` source, not the runtime AST or in-memory state.
417
- - `0.9.3` is the stable release on `latest`. Security fixes may ship in minor releases.
417
+ - `0.10.0` is the stable release on `latest`. Security fixes may ship in minor releases.
418
418
  - The extension SDK contract is `0.7.0`. Component packages, themes, the Vite adapter, offline builds and compliance tools use the public entries.
419
419
 
420
420
  ## Contributing and security
@@ -1550,35 +1550,6 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
1550
1550
  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1551
1551
  ```
1552
1552
 
1553
- ## commander@8.3.0
1554
-
1555
- Declared license: MIT
1556
-
1557
- ```text
1558
- (The MIT License)
1559
-
1560
- Copyright (c) 2011 TJ Holowaychuk <tj@vision-media.ca>
1561
-
1562
- Permission is hereby granted, free of charge, to any person obtaining
1563
- a copy of this software and associated documentation files (the
1564
- 'Software'), to deal in the Software without restriction, including
1565
- without limitation the rights to use, copy, modify, merge, publish,
1566
- distribute, sublicense, and/or sell copies of the Software, and to
1567
- permit persons to whom the Software is furnished to do so, subject to
1568
- the following conditions:
1569
-
1570
- The above copyright notice and this permission notice shall be
1571
- included in all copies or substantial portions of the Software.
1572
-
1573
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
1574
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1575
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
1576
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
1577
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
1578
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
1579
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1580
- ```
1581
-
1582
1553
  ## computer-modern@0.1.3
1583
1554
 
1584
1555
  Declared license: MIT
@@ -2272,34 +2243,6 @@ The above copyright notice and this permission notice shall be included in all c
2272
2243
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2273
2244
  ```
2274
2245
 
2275
- ## katex@0.16.47
2276
-
2277
- Declared license: MIT
2278
-
2279
- ```text
2280
- The MIT License (MIT)
2281
-
2282
- Copyright (c) 2013-2020 Khan Academy and other contributors
2283
-
2284
- Permission is hereby granted, free of charge, to any person obtaining a copy
2285
- of this software and associated documentation files (the "Software"), to deal
2286
- in the Software without restriction, including without limitation the rights
2287
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2288
- copies of the Software, and to permit persons to whom the Software is
2289
- furnished to do so, subject to the following conditions:
2290
-
2291
- The above copyright notice and this permission notice shall be included in all
2292
- copies or substantial portions of the Software.
2293
-
2294
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2295
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2296
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2297
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2298
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2299
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2300
- SOFTWARE.
2301
- ```
2302
-
2303
2246
  ## katex@0.19.1
2304
2247
 
2305
2248
  Declared license: MIT
package/cli/help.mjs CHANGED
@@ -105,12 +105,13 @@ Migrate a document's syntax revision metadata. By default the migrated source
105
105
  is written to stdout and the input file is left unchanged. Use - for stdin.
106
106
 
107
107
  Options:
108
- --from <local-draft-1|local-draft-2>
108
+ --from <local-draft-1|local-draft-2|local-draft-3|local-draft-4>
109
109
  Source revision to migrate from (default: the
110
110
  declared revision, or the current revision
111
111
  when none is declared). Unversioned
112
112
  historical documents require --from
113
- local-draft-1.
113
+ local-draft-1, local-draft-2 or
114
+ local-draft-3.
114
115
  --check Report whether migration is needed or
115
116
  blocked, without writing output.
116
117
  --json Print one structured JSON report. The
@@ -136,10 +137,11 @@ Exit codes: 0 success, 1 migration needed or blocked, 2 usage or I/O error.
136
137
  文件。用 - 读取标准输入。
137
138
 
138
139
  选项:
139
- --from <local-draft-1|local-draft-2>
140
+ --from <local-draft-1|local-draft-2|local-draft-3|local-draft-4>
140
141
  迁移的起始修订版本(默认取文档声明的版本;
141
142
  未声明时取当前版本)。未声明的历史文档必须
142
- 指定 --from local-draft-1。
143
+ 指定 --from local-draft-1、local-draft-2
144
+ 或 local-draft-3。
143
145
  --check 只报告是否需要迁移或被阻止,不写输出。
144
146
  --json 输出一个结构化 JSON 报告。迁移后的源文本
145
147
  只作为 JSON 字段出现。
package/cli/init.mjs CHANGED
@@ -10,7 +10,7 @@ const SEMANTIC_VERSION = /^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)
10
10
  const SCAFFOLD_PACKAGE_VERSION = '0.1.0';
11
11
  // The published engine package version used for generated npm dependencies and
12
12
  // install instructions. Kept in sync with package.json by check-versions.
13
- const SCAFFOLD_ENGINE_VERSION = '0.9.3';
13
+ const SCAFFOLD_ENGINE_VERSION = '0.10.0';
14
14
  // The SDK data contract version, independent of the engine release. Kept in
15
15
  // sync with src/sdk/version.ts by scripts/check-versions.mjs.
16
16
  const SCAFFOLD_SDK_VERSION = '0.7.0';
package/cli/migrate.mjs CHANGED
@@ -6,7 +6,7 @@ import { assertDistinctPaths } from './fs-utils.mjs';
6
6
  import { migrateHelp } from './help.mjs';
7
7
  import { loadCore } from './package.mjs';
8
8
 
9
- const FROM_VERSIONS = ['local-draft-1', 'local-draft-2'];
9
+ const FROM_VERSIONS = ['local-draft-1', 'local-draft-2', 'local-draft-3', 'local-draft-4'];
10
10
 
11
11
  const MESSAGES = {
12
12
  missingInput: {
@@ -1,24 +1,24 @@
1
- import { c as e } from "./version-B0G1699c.js";
1
+ import { c as e } from "./version-4wzhbvDG.js";
2
2
  import t from "./reactive-md-default-preset.js";
3
- import { d as n } from "./sdk-core-BLsW9cCy.js";
4
- import { a as r, c as ee, d as te, f as ne, h as re, i as ie, l as ae, m as oe, n as i, o as a, p as o, r as s, s as c, t as l, u } from "./controls-B-CLSK8Q.js";
5
- import { i as d, n as f, r as p, t as m } from "./visuals-CoVSjVD8.js";
6
- import { n as h, t as g } from "./numeric-sliders-CkWS0-ja.js";
7
- import { t as _ } from "./coordinate-PyLPMIQK.js";
3
+ import { f as n } from "./sdk-core-CnE-n0Z7.js";
4
+ import { a as r, c as ee, d as te, f as ne, h as re, i as ie, l as ae, m as oe, n as i, o as a, p as o, r as s, s as c, t as l, u } from "./controls-DRy5rzzN.js";
5
+ import { i as d, n as f, r as p, t as m } from "./visuals-7xzoL9ql.js";
6
+ import { n as h, t as g } from "./numeric-sliders-BmJ1LCLx.js";
7
+ import { t as _ } from "./coordinate-c54pHfgf.js";
8
8
  import { n as v, r as y, t as b } from "./structural-views-30-YD_TJ.js";
9
- import { _ as x, a as S, c as C, d as w, f as T, g as E, h as D, i as se, l as O, m as k, n as A, o as j, p as M, r as N, s as P, t as F, u as I, v as L } from "./layout-BfUzzO2b.js";
10
- import { t as R } from "./data-table-Kv_ZA2Z2.js";
11
- import { n as z, t as B } from "./gallery-Q6VPS2ep.js";
12
- import { n as V, t as H } from "./data-visuals-_Z7QqYTk.js";
13
- import { r as U, t as W } from "./package-core-9UK5ZdqB.js";
14
- import { t as G } from "./LocalDocumentViewCore-CmJhemcA.js";
15
- import { t as K } from "./LocalReactiveDocumentCore-lAKOGAZ7.js";
9
+ import { _ as x, a as S, c as C, d as w, f as T, g as E, h as D, i as O, l as k, m as A, n as j, o as se, p as M, r as N, s as P, t as F, u as I, v as L, y as R } from "./layout-CPQggKxk.js";
10
+ import { t as z } from "./data-table-CSAkm1eU.js";
11
+ import { n as B, t as V } from "./gallery-DM2yTVZJ.js";
12
+ import { n as H, t as U } from "./data-visuals-rZQUeQM0.js";
13
+ import { r as W, t as G } from "./package-core-Cu_r_qs7.js";
14
+ import { t as K } from "./LocalDocumentViewCore-Cd6yMEkg.js";
15
+ import { t as ce } from "./LocalReactiveDocumentCore-VuYpZqdn.js";
16
16
  import { jsx as q } from "react/jsx-runtime";
17
17
  // src/components/default-preset.ts
18
18
  function J() {
19
19
  return null;
20
20
  }
21
- var ce = Object.freeze({
21
+ var le = Object.freeze({
22
22
  input: a,
23
23
  textarea: o,
24
24
  number: ee,
@@ -37,45 +37,47 @@ var ce = Object.freeze({
37
37
  timer: oe,
38
38
  checklist: i,
39
39
  progress: ae,
40
- jump: O,
40
+ jump: I,
41
41
  anchor: N,
42
- text: E,
43
- section: w,
42
+ text: x,
43
+ section: T,
44
44
  quiz: u,
45
- panel: I,
45
+ panel: w,
46
46
  card: S,
47
- grid: P,
48
- gallery: z,
49
- "gallery-item": B,
50
- tabs: D,
51
- tab: k,
52
- steps: M,
53
- step: T,
47
+ grid: C,
48
+ gallery: B,
49
+ "gallery-item": V,
50
+ tabs: E,
51
+ tab: D,
52
+ steps: A,
53
+ step: M,
54
54
  accordion: F,
55
- disclosure: j,
56
- if: C,
57
- alert: A,
58
- badge: se,
59
- tooltip: x,
60
- validation: L,
61
- "data-table": R,
55
+ disclosure: se,
56
+ if: k,
57
+ else: P,
58
+ alert: j,
59
+ badge: O,
60
+ tooltip: L,
61
+ validation: R,
62
+ "data-table": z,
62
63
  column: b,
63
- table: H,
64
+ table: U,
64
65
  chart: m,
65
66
  plot: d,
66
- timeline: V,
67
+ timeline: H,
67
68
  diagram: f,
68
69
  node: p,
69
70
  edge: v,
70
71
  computed: J,
71
72
  const: J,
72
- external: J
73
+ external: J,
74
+ dataset: J
73
75
  }), Y = null;
74
76
  function X() {
75
77
  if (Y) return Y;
76
78
  let e = [];
77
79
  for (let r of t.components) {
78
- let t = ce[r.name];
80
+ let t = le[r.name];
79
81
  if (!t) throw Error(`Default React preset has no implementation for builtin component <${r.name}>.`);
80
82
  e.push(n(r, { render: t }));
81
83
  }
@@ -87,26 +89,26 @@ function X() {
87
89
  }
88
90
  X();
89
91
  // src/react/package.ts
90
- var Z = U({
92
+ var Z = W({
91
93
  protocol: e,
92
94
  preset: t,
93
95
  components: X().components
94
96
  });
95
97
  function Q(e = {}) {
96
- return W(e, Z);
98
+ return G(e, Z);
97
99
  }
98
100
  // src/react/rendering/document/LocalDocumentView.tsx
99
- var le, $ = () => le ??= Q().reactConfig;
100
- function ue(e) {
101
- return /* @__PURE__ */ q(G, {
101
+ var ue, $ = () => ue ??= Q().reactConfig;
102
+ function de(e) {
103
+ return /* @__PURE__ */ q(K, {
102
104
  ...e,
103
105
  getBaseConfig: $
104
106
  });
105
107
  }
106
- function de(e) {
107
- return /* @__PURE__ */ q(K, {
108
+ function fe(e) {
109
+ return /* @__PURE__ */ q(ce, {
108
110
  ...e,
109
111
  getBaseConfig: $
110
112
  });
111
113
  }
112
- export { X as a, Z as i, de as n, Q as r, ue as t };
114
+ export { X as a, Z as i, fe as n, Q as r, de as t };