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/docs/README-ch.md CHANGED
@@ -18,7 +18,7 @@
18
18
 
19
19
  - **编写文档**:先读[入门指南](guides/local-guide-ch.md),再查语法参考;可运行的示例见 [examples/local](../examples/local/README-ch.md)。
20
20
  - **接入项目**:先查[公开接口参考](reference/public-api-ch.md)确认入口,再读[本地模式集成](integration/local-integration-ch.md);独立项目示例见 [examples/integration](../examples/integration/README-ch.md)。
21
- - 升级前请参阅[兼容性](compatibility/compatibility-ch.md)和目标版本的发布记录。主文档适用于 0.9.3。
21
+ - 升级前请参阅[兼容性](compatibility/compatibility-ch.md)和目标版本的发布记录。主文档适用于 0.10.0。
22
22
 
23
23
  ## 入门
24
24
 
@@ -47,6 +47,7 @@
47
47
  | React 源码编辑器 | [中文](integration/editor-ch.md) |
48
48
  | 作者工具 | [中文](integration/author-tools-ch.md) |
49
49
  | 分享与静态导出 | [中文](integration/shareable-export-ch.md) |
50
+ | PDF 导出(预览) | [中文](integration/pdf-export-ch.md) |
50
51
  | 宿主网络通道 | [中文](integration/network-host-ch.md) |
51
52
 
52
53
  ## 兼容与迁移
@@ -77,6 +78,7 @@
77
78
 
78
79
  | 版本 | 中文 |
79
80
  | --- | --- |
81
+ | 0.10.0 | [中文](releases/release-0.10.0-ch.md) |
80
82
  | 0.9.3 | [中文](releases/release-0.9.3-ch.md) |
81
83
  | 0.9.2 | [中文](releases/release-0.9.2-ch.md) |
82
84
  | 0.9.1 | [中文](releases/release-0.9.1-ch.md) |
package/docs/README.md CHANGED
@@ -18,7 +18,7 @@ Documents are grouped by purpose. Each topic has an English version (`-en.md`);
18
18
 
19
19
  - **Authors**: read the [beginner guide](guides/local-guide-en.md), then the syntax reference. Runnable examples are in [examples/local](../examples/local/README.md).
20
20
  - **Integrators**: check the [public API reference](reference/public-api-en.md) for every entry, then read [local mode integration](integration/local-integration-en.md). Copyable projects are in [examples/integration](../examples/integration/README.md).
21
- - If you are upgrading, check [compatibility](compatibility/compatibility-en.md) and the release notes for your target version. The main guides cover 0.9.3.
21
+ - If you are upgrading, check [compatibility](compatibility/compatibility-en.md) and the release notes for your target version. The main guides cover 0.10.0.
22
22
 
23
23
  ## Guides
24
24
 
@@ -47,6 +47,7 @@ Documents are grouped by purpose. Each topic has an English version (`-en.md`);
47
47
  | React source editor | [English](integration/editor-en.md) |
48
48
  | Author tools | [English](integration/author-tools-en.md) |
49
49
  | Sharing and static export | [English](integration/shareable-export-en.md) |
50
+ | PDF export (preview) | [English](integration/pdf-export-en.md) |
50
51
  | Host network channels | [English](integration/network-host-en.md) |
51
52
 
52
53
  ## Compatibility and migration
@@ -77,6 +78,7 @@ Documents are grouped by purpose. Each topic has an English version (`-en.md`);
77
78
 
78
79
  | Version | English |
79
80
  | --- | --- |
81
+ | 0.10.0 | [English](releases/release-0.10.0-en.md) |
80
82
  | 0.9.3 | [English](releases/release-0.9.3-en.md) |
81
83
  | 0.9.2 | [English](releases/release-0.9.2-en.md) |
82
84
  | 0.9.1 | [English](releases/release-0.9.1-en.md) |
@@ -10,7 +10,7 @@
10
10
 
11
11
  | 子系统 | 稳定范围 | 版本与边界 |
12
12
  | --- | --- | --- |
13
- | 编译器 | 根入口的 `compileLocal`、`LocalCompileOptions` 和 `LocalCompileResult`。两个 compiler 子入口的工厂、`Compiler` 和 `CompilerConfigurationError`。宿主可以按工厂结果的 `ok` 和 `status` 分支,并读取诊断、恢复记录与检查覆盖。编译成功时可读取 `document` 和 `program`。 | `local-draft-3` 的已接受语义遵循[版本与兼容性](compatibility-ch.md)。单次入口执行最终编译。会话和调度器的显式阶段参数及结果字段属于公开契约。程序对象及编译缓存面向当前版本的内存使用。自建 Worker 应使用公开的请求和响应类型及配套引擎。 |
13
+ | 编译器 | 根入口的 `compileLocal`、`LocalCompileOptions` 和 `LocalCompileResult`。两个 compiler 子入口的工厂、`Compiler` 和 `CompilerConfigurationError`。宿主可以按工厂结果的 `ok` 和 `status` 分支,并读取诊断、恢复记录与检查覆盖。编译成功时可读取 `document` 和 `program`。 | `local-draft-4` 的已接受语义遵循[版本与兼容性](compatibility-ch.md)。单次入口执行最终编译。会话和调度器的显式阶段参数及结果字段属于公开契约。程序对象及编译缓存面向当前版本的内存使用。自建 Worker 应使用公开的请求和响应类型及配套引擎。 |
14
14
  | 运行时 | `createLocalRuntime`、`LocalRuntime` 的公开参数写入、订阅、重置和释放语义,以及 `reactive-md/runtime` 和 `reactive-md/runtime/browser` 的文档化接口。非法写入保留有效状态,多值写入原子提交。 | 持久化使用 `reactive-md-state/v1` 或文档化的组件状态格式。读取会校验源码摘要、修订及相应绑定或组件身份。内存快照、节点 ID、匿名键及具体调度方式属于运行实现。 |
15
15
  | SDK | `reactive-md/sdk` 的组件和预设定义、配置校验、版本范围、绑定规则和声明的能力。扩展宿主可以依赖组件身份、名称、版本和契约检查。 | SDK 契约为 `0.7.0`,语法、组块和主题各自版本化。通过主机范围校验后仍按组件契约及配置验证恢复。扩展可通过[合规测试](../integration/extension-sdk-ch.md)验证能力。 |
16
16
  | 导出 | `createShareableHtml`、`reactive-md/export` 的预检、HTML 与恢复接口,以及 `reactive-md/export-assets` 的协议、稳定资源 ID 和 `specifier` 含义。 | 基础 HTML 写出 v1,带恢复契约的 HTML 写出 v2。当前独立运行时读取这两个有效版本,要求 v2 带恢复契约,并在失配时拒绝恢复。已有的无 `sourceSemantics` 历史负载走对应的兼容路径。bundle、恢复要求和资源清单独立版本化。详见[可分享文档与静态导出](../integration/shareable-export-ch.md)。 |
@@ -10,7 +10,7 @@ Patch releases within a 0.x minor line preserve existing imports, declarations a
10
10
 
11
11
  | Subsystem | Stable surface | Version and boundaries |
12
12
  | --- | --- | --- |
13
- | Compiler | Root `compileLocal`, `LocalCompileOptions` and `LocalCompileResult`. Both compiler subpaths' factories, `Compiler` and `CompilerConfigurationError`. Consumers can branch on the factory result's `ok` and `status`, inspect its diagnostics, recoveries and check coverage, and read `document` and `program` on success. | Accepted `local-draft-3` semantics follow [version compatibility](compatibility-en.md). One-shot compilers perform final compilation. The documented phase arguments and result fields of sessions and the scheduler are public. Program objects and caches are in-memory data for the current release. Custom Workers should use the public request and response types with the matching engine. |
13
+ | Compiler | Root `compileLocal`, `LocalCompileOptions` and `LocalCompileResult`. Both compiler subpaths' factories, `Compiler` and `CompilerConfigurationError`. Consumers can branch on the factory result's `ok` and `status`, inspect its diagnostics, recoveries and check coverage, and read `document` and `program` on success. | Accepted `local-draft-4` semantics follow [version compatibility](compatibility-en.md). One-shot compilers perform final compilation. The documented phase arguments and result fields of sessions and the scheduler are public. Program objects and caches are in-memory data for the current release. Custom Workers should use the public request and response types with the matching engine. |
14
14
  | Runtime | `createLocalRuntime`, the public parameter writes, subscriptions, reset and disposal of `LocalRuntime`, and documented services in `reactive-md/runtime` and `reactive-md/runtime/browser`. Invalid writes preserve valid state and multi-value writes commit atomically. | Persist using `reactive-md-state/v1` or the documented component-state format. Readers validate the source digest, revision and the relevant bindings or component identity. In-memory snapshots, node IDs, anonymous keys and scheduling internals belong to the implementation. |
15
15
  | SDK | Public component and preset definitions, configuration validation, version ranges, binding rules and declared capabilities in `reactive-md/sdk`. Extension hosts can rely on component identity, name, version and contract checks. | The SDK contract is `0.7.0`. Syntax, component and theme contracts have their own versions. Restoration checks the component contract and configuration after checking the supported range. Extensions can use the [conformance tests](../integration/extension-sdk-en.md) to verify capabilities. |
16
16
  | Export | `createShareableHtml`, preflight and restoration in `reactive-md/export`, and the protocol, stable resource IDs and meaning of `specifier` in `reactive-md/export-assets`. | Basic HTML writes v1. HTML with restoration requirements writes v2. The current standalone runtime reads valid payloads in both formats, requires restoration metadata for v2 and rejects mismatched restoration. Legacy payloads without `sourceSemantics` use the documented compatibility path. Bundle manifests, restoration requirements and export asset manifests version independently. See the [shareable export guide](../integration/shareable-export-en.md). |
@@ -2,36 +2,36 @@
2
2
 
3
3
  **中文** · [English](compatibility-en.md)
4
4
 
5
- Reactive MD 目前是 0.x 预览版。本页说明包版本、语法版本、可持久化的内容、诊断契约和当前平台范围。显式修订声明、迁移 API 与 `reactive-md migrate` 见[源码修订与迁移](source-versioning-ch.md),公开 API 与样式接入见[本地模式集成](../integration/local-integration-ch.md),本版本见[0.9.3 发布说明](../releases/release-0.9.3-ch.md),上一版本见[0.9.2 发布说明](../releases/release-0.9.2-ch.md),更早版本见[0.9.1 发布说明](../releases/release-0.9.1-ch.md)和[0.9.0 发布说明](../releases/release-0.9.0-ch.md),该 minor 系列见[0.4.0 发布与迁移](../releases/release-0.4.0-ch.md)。
5
+ Reactive MD 目前是 0.x 预览版。本页说明包版本、语法版本、可持久化的内容、诊断契约和当前平台范围。显式修订声明、迁移 API 与 `reactive-md migrate` 见[源码修订与迁移](source-versioning-ch.md),公开 API 与样式接入见[本地模式集成](../integration/local-integration-ch.md),本版本见[0.10.0 发布说明](../releases/release-0.10.0-ch.md),上一版本见[0.9.3 发布说明](../releases/release-0.9.3-ch.md),更早版本见[0.9.2 发布说明](../releases/release-0.9.2-ch.md)、[0.9.1 发布说明](../releases/release-0.9.1-ch.md)和[0.9.0 发布说明](../releases/release-0.9.0-ch.md),该 minor 系列见[0.4.0 发布与迁移](../releases/release-0.4.0-ch.md)。
6
6
 
7
7
  ## 版本对应
8
8
 
9
9
  | 项目 | 当前值 | 说明 |
10
10
  | --- | --- | --- |
11
- | 包版本 | `0.9.3` | 稳定版,2026-11-27 |
12
- | 分发标签 | `latest`:`0.9.3` | `next` 独立维护;使用该渠道前请查询 npm |
13
- | SDK 契约 | `0.7.0` | `LOCAL_SDK_VERSION`;与包版本独立,`0.9.3` 不改变它 |
14
- | 语法版本 | `local-draft-3` | `LOCAL_SYNTAX_VERSION`;本包只接受这一修订 |
15
- | 源码修订指令 | 可选 `<!-- reactive-md: local-draft-3 -->` | 文档前导区中的一行;无指令源码继续按当前修订解析 |
11
+ | 包版本 | `0.10.0` | 稳定版,2026-12-01 |
12
+ | 分发标签 | `latest`:`0.10.0` | `next` 独立维护;使用该渠道前请查询 npm |
13
+ | SDK 契约 | `0.7.0` | `LOCAL_SDK_VERSION`;与包版本独立,`0.10.0` 不改变它 |
14
+ | 语法版本 | `local-draft-4` | `LOCAL_SYNTAX_VERSION`;工作区只接受这一修订。`0.10.0` 发布该修订;`0.9.3` 仍使用 `local-draft-3` |
15
+ | 源码修订指令 | 可选 `<!-- reactive-md: local-draft-4 -->` | 文档前导区中的一行;无指令源码继续按当前修订解析 |
16
16
  | 组块协议 | `component-protocol-3` | 贡献与验收契约,见[组块协议](../development/component-protocol-ch.md);不是运行时版本选择参数 |
17
17
  | 主题协议 | `reactive-md-theme-1` | 文档主题与宿主 CSS 接入 |
18
18
  | 作者工具入口 | `reactive-md/authoring` | schema、目录与编辑辅助函数,不加载 React 或 CSS |
19
19
  | 无样式 React 入口 | `reactive-md/react/unstyled` | 不依赖样式表的 React 渲染器 |
20
20
  | 核心入口 | `reactive-md` | 编译、表达式与运行时,不加载 React |
21
21
  | React 入口 | `reactive-md/react` | `LocalReactiveDocument`、`LocalDocumentView` |
22
- | 编辑器入口 | `reactive-md-editor` | 独立 `0.2.1` 包中的 `ReactiveMarkdownEditor` 及其类型,面向 `^0.9.2` 引擎系列;需要 React 19。引擎 0.8 及之后的版本不再导出 `reactive-md/editor` |
22
+ | 编辑器入口 | `reactive-md-editor` | 独立 `0.3.0` 包中的 `ReactiveMarkdownEditor` 及其类型,面向 `^0.10.0` 引擎系列;需要 React 19。引擎 0.8 及之后的版本不再导出 `reactive-md/editor` |
23
23
  | 渲染器样式入口 | `reactive-md/styles.css` | 文档与组块样式,由宿主显式引入 |
24
24
  | 屏幕样式入口 | `reactive-md/screen.css` | `reactive-md/styles.css` 的别名 |
25
25
  | 打印样式入口 | `reactive-md/print.css` | 可选的文档打印布局与页边距 |
26
26
  | 编辑器样式入口 | `reactive-md-editor/styles.css` | 独立编辑器样式,作用域限定在编辑器根节点 |
27
27
  | 机器可读清单 | [compatibility-manifest.json](https://github.com/yao1145/ReactiveMD/blob/main/docs/compatibility/compatibility-manifest.json) | 跨包版本、协议、Demo 候选包、运行时版本与推荐安装组合。格式见 [compatibility-manifest.schema.json](compatibility-manifest.schema.json),可以用 `npm run compatibility:verify` 校验。 |
28
28
 
29
- 同一组版本标识记录在机器可读清单中,按 JSON Schema 校验,并对照引擎常量、已安装运行时版本、编辑器包与 Demo tarball 检查。声明范围与实测版本分别记录。
29
+ 当引擎源码版本与编辑器、Demo 使用的引擎版本不同时,清单用 `engine.checkoutVersion` 记录源码版本,用 `engine.version` 记录配对版本。校验脚本对照引擎常量检查源码版本,并对照编辑器、Demo 候选包和锁文件检查配对。
30
30
 
31
31
  | 编辑器 | 引擎 peer | 配对引擎 |
32
32
  | --- | --- | --- |
33
- | `0.2.1` | `^0.9.2` | `0.9.2` |
34
- | `0.2.0` | `^0.9.0` | `0.9.1`(上一组验收组合) |
33
+ | `0.3.0` | `^0.10.0` | `0.10.0` |
34
+ | `0.2.1` | `^0.9.2` | `0.9.3`(上一组验收组合) |
35
35
 
36
36
  成对发布前,从引擎仓库运行 `npm run compatibility:verify`。按清单中的产物先发布引擎,再比对 npm 上的引擎完整性值和编辑器锁定的候选包,随后发布编辑器。
37
37
 
@@ -39,7 +39,7 @@ Reactive MD 目前是 0.x 预览版。本页说明包版本、语法版本、可
39
39
 
40
40
  ## 显式源码修订
41
41
 
42
- 源码可以在前导区用一行 `<!-- reactive-md: local-draft-3 -->` 声明修订。无指令源码按当前修订读取,不新增警告。显式旧修订(例如 `local-draft-1`、`local-draft-2`)或未知修订会以 `local.version.*` 诊断拒绝,不创建运行时;声明旧修订不会选择旧解析器。格式错误、重复和位置错误的指令同样被拒绝。
42
+ 源码可以在前导区用一行 `<!-- reactive-md: local-draft-4 -->` 声明修订。无指令源码按当前修订读取,不新增警告。显式旧修订(例如 `local-draft-1`、`local-draft-2`、`local-draft-3`)或未知修订会以 `local.version.*` 诊断拒绝,不创建运行时;声明旧修订不会选择旧解析器。格式错误、重复和位置错误的指令同样被拒绝。
43
43
 
44
44
  在这一指令出现之前构建的读者(包括 `0.3.1`)会把它当作普通注释,不执行这项检查。依赖检查前请先迁移旧文档。`inspectLocalSourceVersion`、`checkLocalUpgrade` 和 `migrateLocalSource` 在编译器之外读取声明,`reactive-md migrate` 对单份源码执行元数据迁移。见[源码修订与迁移](source-versioning-ch.md)。
45
45
 
@@ -86,11 +86,11 @@ Reactive MD 目前是 0.x 预览版。本页说明包版本、语法版本、可
86
86
 
87
87
  `0.4.0` 建立 `local-draft-2`。使用受支持 `local-draft-1` 写法的无指令源码继续有效;显式 `local-draft-1` 声明在迁移前会被拒绝。构建新增识别 15 个标签名:十个 `local-draft-2` 组块,以及 `computed`、`const`、`validation`、`data-table`、`column`。以前作为未知标签或普通文字显示的内容现在会解析为组块或声明;字面示例应移入行内代码或代码围栏。开头的 `<theme>` 声明是文档元数据,不计入组块。完整的重命名与升级清单见[0.4.0 发布与迁移](../releases/release-0.4.0-ch.md)。
88
88
 
89
- 作者可见的语法变化会建立新的语法修订,例如 `local-draft-3`,并提升次版本、更新 `LOCAL_SYNTAX_VERSION`。核心或 React API 的变化也会记录在变更记录中。项目不自动改写文档正文。`reactive-md migrate` 迁移单份源码的元数据声明,并阻止正文级冲突;升级后由作者或宿主按记录完成其余源码修改。
89
+ 作者可见的语法变化会建立新的语法修订,例如 `local-draft-4`,并提升次版本、更新 `LOCAL_SYNTAX_VERSION`。核心或 React API 的变化也会记录在变更记录中。项目不自动改写文档正文。`reactive-md migrate` 迁移单份源码的元数据声明,并阻止正文级冲突;升级后由作者或宿主按记录完成其余源码修改。
90
90
 
91
- 旧版配置语法不属于 `local-draft-3`。常见替换如下:
91
+ 旧版配置语法不属于 `local-draft-4`。常见替换如下:
92
92
 
93
- | 旧写法 | `local-draft-3` 中的做法 |
93
+ | 旧写法 | `local-draft-4` 中的做法 |
94
94
  | --- | --- |
95
95
  | `:::card`、`:::row` 等 directive | `<card>`、`<grid>` 等标签 |
96
96
  | YAML `state:` 声明参数 | 控件上的 `bind` 与 `initial` |
@@ -143,4 +143,4 @@ Node 端消费指在 Node 中导入 `reactive-md`、调用 `compileLocal` 和 `c
143
143
  语言范围见[语法规范](../reference/local-interaction-syntax-ch.md),安全边界与宿主责任见[安全策略](../../SECURITY-ch.md)。
144
144
 
145
145
 
146
- 当前语法修订的完整规则见[本地交互语法规范](../reference/local-interaction-syntax-ch.md),升级清单见[0.4.0 发布与迁移](../releases/release-0.4.0-ch.md)。`0.9.3` 使用 `latest` 渠道。
146
+ 当前语法修订的完整规则见[本地交互语法规范](../reference/local-interaction-syntax-ch.md),升级清单见[0.4.0 发布与迁移](../releases/release-0.4.0-ch.md)。`0.10.0` 使用 `latest` 渠道。
@@ -2,36 +2,36 @@
2
2
 
3
3
  **English** · [中文](compatibility-ch.md)
4
4
 
5
- Reactive MD is currently a 0.x preview. This page covers package versions, syntax versions, what can be persisted, the diagnostics contract and the current platform scope. See [Source revisions and migration](source-versioning-en.md) for explicit revision declarations, the migration API and `reactive-md migrate`, [Local mode integration](../integration/local-integration-en.md) for the public API and style integration, the [0.9.3 release notes](../releases/release-0.9.3-en.md) for this release, the [0.9.2 release notes](../releases/release-0.9.2-en.md) for the previous release, the [0.9.1 release notes](../releases/release-0.9.1-en.md), the [0.9.0 release notes](../releases/release-0.9.0-en.md), and [0.4.0 release and migration](../releases/release-0.4.0-en.md) for that minor series.
5
+ Reactive MD is currently a 0.x preview. This page covers package versions, syntax versions, what can be persisted, the diagnostics contract and the current platform scope. See [Source revisions and migration](source-versioning-en.md) for explicit revision declarations, the migration API and `reactive-md migrate`, [Local mode integration](../integration/local-integration-en.md) for the public API and style integration, the [0.10.0 release notes](../releases/release-0.10.0-en.md) for this release, the [0.9.3 release notes](../releases/release-0.9.3-en.md) for the previous release, the [0.9.2 release notes](../releases/release-0.9.2-en.md), the [0.9.1 release notes](../releases/release-0.9.1-en.md), the [0.9.0 release notes](../releases/release-0.9.0-en.md), and [0.4.0 release and migration](../releases/release-0.4.0-en.md) for that minor series.
6
6
 
7
7
  ## Version mapping
8
8
 
9
9
  | Item | Current value | Notes |
10
10
  | --- | --- | --- |
11
- | Package version | `0.9.3` | Stable release, 2026-11-27 |
12
- | Distribution tags | `latest`: `0.9.3` | `next` is maintained independently; query npm when selecting that channel |
13
- | SDK contract | `0.7.0` | `LOCAL_SDK_VERSION`; independent of the package version and unchanged by `0.9.3` |
14
- | Syntax version | `local-draft-3` | `LOCAL_SYNTAX_VERSION`; this revision is the only one accepted by the package |
15
- | Source revision directive | Optional `<!-- reactive-md: local-draft-3 -->` | One line in the document prologue; unversioned source keeps current-revision behavior |
11
+ | Package version | `0.10.0` | Stable release, 2026-12-01 |
12
+ | Distribution tags | `latest`: `0.10.0` | `next` is maintained independently; query npm when selecting that channel |
13
+ | SDK contract | `0.7.0` | `LOCAL_SDK_VERSION`; independent of the package version and unchanged by `0.10.0` |
14
+ | Syntax version | `local-draft-4` | `LOCAL_SYNTAX_VERSION`; this revision is the only one accepted. `0.10.0` publishes it; `0.9.3` remains `local-draft-3` |
15
+ | Source revision directive | Optional `<!-- reactive-md: local-draft-4 -->` | One line in the document prologue; unversioned source keeps current-revision behavior |
16
16
  | Component protocol | `component-protocol-3` | Contribution and acceptance contract, see [Component protocol](../development/component-protocol-en.md); not a runtime version selection parameter |
17
17
  | Theme protocol | `reactive-md-theme-1` | Document themes and host CSS integration |
18
18
  | Authoring entry | `reactive-md/authoring` | Schema, catalog and editor helpers, without React or CSS |
19
19
  | Unstyled React entry | `reactive-md/react/unstyled` | React renderer without a stylesheet dependency |
20
20
  | Core entry | `reactive-md` | Compilation, expressions and runtime, without loading React |
21
21
  | React entry | `reactive-md/react` | `LocalReactiveDocument`, `LocalDocumentView` |
22
- | Editor entry | `reactive-md-editor` | `ReactiveMarkdownEditor` and its types in the separate `0.2.1` package for the `^0.9.2` engine series; requires React 19. Engine 0.8 and later no longer export `reactive-md/editor` |
22
+ | Editor entry | `reactive-md-editor` | `ReactiveMarkdownEditor` and its types in the separate `0.3.0` package for the `^0.10.0` engine series; requires React 19. Engine 0.8 and later no longer export `reactive-md/editor` |
23
23
  | Renderer style entry | `reactive-md/styles.css` | Document and component styles, explicitly imported by the host |
24
24
  | Screen style entry | `reactive-md/screen.css` | Alias of `reactive-md/styles.css` |
25
25
  | Print style entry | `reactive-md/print.css` | Optional document print layout and page margins |
26
26
  | Editor style entry | `reactive-md-editor/styles.css` | Independent editor styles, scoped to the editor root |
27
27
  | Machine-readable manifest | [compatibility-manifest.json](https://github.com/yao1145/ReactiveMD/blob/main/docs/compatibility/compatibility-manifest.json) | Cross-package versions, protocols, Demo candidates, runtime versions and the recommended install set. See the [schema](compatibility-manifest.schema.json). Run `npm run compatibility:verify` to check the manifest. |
28
28
 
29
- The same identities are recorded in the machine-readable manifest, validated against its JSON Schema, and checked against the engine constants, installed runtime versions, the editor package and the Demo tarballs. Declared ranges and tested versions are stored separately.
29
+ The manifest records the engine source version in `engine.checkoutVersion` when it differs from the engine version used by the editor and Demo in `engine.version`. The verifier checks the source against the engine constants and the pairing against the editor, Demo tarballs and lockfiles.
30
30
 
31
31
  | Editor | Engine peer | Paired engine |
32
32
  | --- | --- | --- |
33
- | `0.2.1` | `^0.9.2` | `0.9.2` |
34
- | `0.2.0` | `^0.9.0` | `0.9.1` (previous verified pair) |
33
+ | `0.3.0` | `^0.10.0` | `0.10.0` |
34
+ | `0.2.1` | `^0.9.2` | `0.9.3` (previous verified pair) |
35
35
 
36
36
  Run `npm run compatibility:verify` from the engine repository before a paired release. Publish the engine artifact listed in the manifest first. Compare its npm integrity value with the candidate pinned by the editor, then publish the editor.
37
37
 
@@ -39,7 +39,7 @@ One package version corresponds to exactly one syntax revision. Before upgrading
39
39
 
40
40
  ## Explicit source revisions
41
41
 
42
- A source may declare its revision with one `<!-- reactive-md: local-draft-3 -->` line in the prologue. Unversioned source is read as the current revision, without a new warning. An explicit older (for example `local-draft-1` or `local-draft-2`) or unknown revision is rejected with a `local.version.*` diagnostic and no runtime is created; declaring an old revision does not select an old parser. Malformed, duplicate and misplaced directives are rejected the same way.
42
+ A source may declare its revision with one `<!-- reactive-md: local-draft-4 -->` line in the prologue. Unversioned source is read as the current revision, without a new warning. An explicit older (for example `local-draft-1`, `local-draft-2` or `local-draft-3`) or unknown revision is rejected with a `local.version.*` diagnostic and no runtime is created; declaring an old revision does not select an old parser. Malformed, duplicate and misplaced directives are rejected the same way.
43
43
 
44
44
  Readers built before this directive existed, including `0.3.1`, treat it as an ordinary comment and do not enforce the check. Migrate old documents before relying on it. `inspectLocalSourceVersion`, `checkLocalUpgrade` and `migrateLocalSource` expose the declaration outside the compiler, and `reactive-md migrate` performs the single-source metadata migration. See [Source revisions and migration](source-versioning-en.md).
45
45
 
@@ -86,11 +86,11 @@ Regression data in [the historical corpus](../../examples/conformance/history/v0
86
86
 
87
87
  `0.4.0` establishes `local-draft-2`. Unversioned source that uses supported `local-draft-1` forms remains valid; an explicit `local-draft-1` declaration is rejected until migrated. The build now recognizes 15 additional tag names: the ten `local-draft-2` components plus `computed`, `const`, `validation`, `data-table` and `column`. Text that previously displayed as an unknown or literal tag now parses as a component or declaration; move literal examples into code spans or fences. The leading `<theme>` declaration is document metadata and is not counted as a component. See [0.4.0 release and migration](../releases/release-0.4.0-en.md) for the complete rename and upgrade checklist.
88
88
 
89
- Author-visible syntax changes establish a new syntax revision, such as `local-draft-3`, and raise the minor version and update `LOCAL_SYNTAX_VERSION`. Changes to the core or React API are also recorded in the changelog. The project does not rewrite document bodies automatically. `reactive-md migrate` moves one source's metadata declaration and blocks body-level conflicts; after upgrading, authors or hosts complete any remaining source changes according to the record.
89
+ Author-visible syntax changes establish a new syntax revision, such as `local-draft-4`, and raise the minor version and update `LOCAL_SYNTAX_VERSION`. Changes to the core or React API are also recorded in the changelog. The project does not rewrite document bodies automatically. `reactive-md migrate` moves one source's metadata declaration and blocks body-level conflicts; after upgrading, authors or hosts complete any remaining source changes according to the record.
90
90
 
91
- Legacy configuration syntax is not part of `local-draft-3`. Common replacements:
91
+ Legacy configuration syntax is not part of `local-draft-4`. Common replacements:
92
92
 
93
- | Old form | What to do in `local-draft-3` |
93
+ | Old form | What to do in `local-draft-4` |
94
94
  | --- | --- |
95
95
  | Directives such as `:::card`, `:::row` | Tags such as `<card>`, `<grid>` |
96
96
  | YAML `state:` declaring parameters | `bind` and `initial` on controls |
@@ -143,4 +143,4 @@ Node-side consumption means importing `reactive-md` in Node and calling `compile
143
143
  See the [syntax specification](../reference/local-interaction-syntax-en.md) for the language scope, and the [security policy](../../SECURITY.md) for the security boundary and host responsibilities.
144
144
 
145
145
 
146
- See the [syntax specification](../reference/local-interaction-syntax-en.md) for new tags, colors and slot state, and [0.4.0 release and migration](../releases/release-0.4.0-en.md) for the upgrade checklist. `0.9.3` uses the `latest` channel.
146
+ See the [syntax specification](../reference/local-interaction-syntax-en.md) for new tags, colors and slot state, and [0.4.0 release and migration](../releases/release-0.4.0-en.md) for the upgrade checklist. `0.10.0` uses the `latest` channel.
@@ -15,7 +15,8 @@
15
15
  "required": ["name", "version"],
16
16
  "properties": {
17
17
  "name": { "const": "reactive-md" },
18
- "version": { "$ref": "#/$defs/semver" }
18
+ "version": { "$ref": "#/$defs/semver", "description": "Engine version used by the install pair and Demo candidate." },
19
+ "checkoutVersion": { "$ref": "#/$defs/semver", "description": "Current engine source version when it differs from the install pair." }
19
20
  }
20
21
  },
21
22
  "editor": {
@@ -158,4 +159,4 @@
158
159
  }
159
160
  }
160
161
  }
161
- }
162
+ }
@@ -14,8 +14,8 @@
14
14
 
15
15
  ## 当前宿主迁移
16
16
 
17
- 编辑器 `0.2.1` 的最低引擎版本为 `0.9.2`,peer 范围为 `^0.9.2`。已有安装可以成对升级,或在引擎 `0.9.0`、`0.9.1` 上继续使用编辑器 `0.2.0`。这是本次候选公开记录的配对要求变更。现有编辑器入口和组件导入仍可使用。
17
+ 编辑器 `0.3.0` 通过 peer 范围要求 `reactive-md@^0.10.0`。编辑器 `0.2.1` 仍面向 `0.9.x` 引擎系列:其 `^0.9.2` peer 不接受 `0.10.0`,因此升级到引擎 `0.10.0` 需要编辑器 `0.3.0`。已有安装应成对升级。现有编辑器入口和组件导入仍可使用。
18
18
 
19
19
  公开的 `LocalComponentPropValue` 是早期标量类型别名,已在声明中标记弃用。新的扩展应使用 `LocalComponentValue`,需要标量时先缩窄类型。该别名的保留期从本政策首次记录的发布开始计算。
20
20
 
21
- 源码迁移独立于宿主 API 弃用。跨语法修订时,先使用 [源码修订和迁移工具](source-versioning-ch.md) 检查源码。迁移后的源码应重新导出状态文件,以更新源码摘要。引擎 `0.9.3` 继续使用 `local-draft-3` 与 `reactive-md-state/v1`。
21
+ 源码迁移独立于宿主 API 弃用。跨语法修订时,先使用 [源码修订和迁移工具](source-versioning-ch.md) 检查源码。迁移后的源码应重新导出状态文件,以更新源码摘要。已发布的引擎 `0.10.0` 使用 `local-draft-4` 与 `reactive-md-state/v1`;`0.9.3` 仍使用 `local-draft-3`。
@@ -14,8 +14,8 @@ Security vulnerabilities, data corruption and mandatory upstream platform change
14
14
 
15
15
  ## Current host migrations
16
16
 
17
- Editor `0.2.1` requires engine `0.9.2` or a later `0.9.x` release through its `^0.9.2` peer. Upgrade the packages together or keep editor `0.2.0` with engine `0.9.0` or `0.9.1`. This pairing change is documented for the current release. Existing editor entry points and component imports remain available.
17
+ Editor `0.3.0` requires `reactive-md@^0.10.0` through its peer range. Editor `0.2.1` remains on the `0.9.x` engine series: its `^0.9.2` peer does not accept `0.10.0`, so moving to engine `0.10.0` requires editor `0.3.0`. Upgrade the packages together. Existing editor entry points and component imports remain available.
18
18
 
19
19
  `LocalComponentPropValue` is the deprecated phase-one scalar alias. New extensions can use `LocalComponentValue` and narrow it where a scalar is required. The notice period for the alias starts with its first recorded release under this policy.
20
20
 
21
- Source migrations follow their own syntax revisions. Run the [source revision and migration tools](source-versioning-en.md) before upgrading across revisions. Export a fresh state file after migration to record the new source digest. Engine `0.9.3` keeps `local-draft-3` and `reactive-md-state/v1`.
21
+ Source migrations follow their own syntax revisions. Run the [source revision and migration tools](source-versioning-en.md) before upgrading across revisions. Export a fresh state file after migration to record the new source digest. Published engine `0.10.0` uses `local-draft-4` and `reactive-md-state/v1`; `0.9.3` remains on `local-draft-3`.
@@ -9,7 +9,7 @@
9
9
  源码用一行 HTML 注释声明修订:
10
10
 
11
11
  ```markdown
12
- <!-- reactive-md: local-draft-3 -->
12
+ <!-- reactive-md: local-draft-4 -->
13
13
  ```
14
14
 
15
15
  该指令属于文档前导区,位于 `<theme>` 声明和正文之前。BOM、空行和普通 Markdown 注释可以出现在它前面。只允许一条指令。
@@ -20,10 +20,10 @@
20
20
 
21
21
  | 源码 | 结果 |
22
22
  | --- | --- |
23
- | 没有指令 | 按当前修订 `local-draft-3` 解析;不新增警告 |
24
- | `local-draft-3` | 正常解析 |
25
- | `local-draft-1` 或 `local-draft-2` | 以 `local.version.*` 诊断拒绝;先迁移 |
26
- | `local-draft-1` 或其他显式旧修订 | 以 `local.version.*` 诊断拒绝 |
23
+ | 没有指令 | 按当前修订 `local-draft-4` 解析;不新增警告 |
24
+ | `local-draft-4` | 正常解析 |
25
+ | `local-draft-4 + macros` | 在支持宏且无同名注册组件的阅读器中启用 `<macro>` 和 `<use>` |
26
+ | `local-draft-1`、`local-draft-2` 或 `local-draft-3` | 以 `local.version.*` 诊断拒绝;先迁移 |
27
27
  | 未知、格式错误、重复或位置错误的指令 | 以 `local.version.*` 诊断拒绝 |
28
28
 
29
29
  版本声明被拒绝时不创建运行时。声明旧修订不会选择旧解析器,也不会让文档在现行规则下可读;必须先迁移源码。
@@ -53,7 +53,7 @@ const info = inspectLocalSourceVersion(source);
53
53
  - `range` 指向原始源码中的指令;没有指令时为 `null`。
54
54
  - `diagnostics` 使用 `local.version.*` 前缀报告格式错误、重复、位置错误、旧修订或未知声明。
55
55
 
56
- 无指令源码返回 `declaredVersion: null`、`effectiveVersion: 'local-draft-3'`、`supported: true`,不产生版本诊断。
56
+ 无指令源码返回 `declaredVersion: null`、`effectiveVersion: 'local-draft-4'`、`supported: true`,不产生版本诊断。
57
57
 
58
58
  ## 检查升级
59
59
 
@@ -64,7 +64,7 @@ const check = checkLocalUpgrade(source);
64
64
  // {
65
65
  // ok: boolean,
66
66
  // fromVersion: string,
67
- // toVersion: 'local-draft-3',
67
+ // toVersion: 'local-draft-4',
68
68
  // needsMigration: boolean,
69
69
  // diagnostics: Diagnostic[]
70
70
  // }
@@ -81,7 +81,7 @@ type LocalUpgradeOptions = {
81
81
  const check = checkLocalUpgrade(oldSource, { fromVersion: 'local-draft-1' });
82
82
  ```
83
83
 
84
- 无版本声明的历史文档需要传入 `fromVersion: 'local-draft-1'`,才会执行 draft-1 检查。显式 `fromVersion` 与声明不一致时,检查被拒绝。迁移源接受 `local-draft-1`、`local-draft-2` 和当前的 `local-draft-3`;旧版 YAML 修订和未知名称会被拒绝。
84
+ 无版本声明的历史文档需要传入 `fromVersion: 'local-draft-1'`、`'local-draft-2'` 或 `'local-draft-3'`,才会执行对应检查。显式 `fromVersion` 与声明不一致时,检查被拒绝。迁移源接受 `local-draft-1` 至 `local-draft-3` 以及当前的 `local-draft-4`;旧版 YAML 修订和未知名称会被拒绝。
85
85
 
86
86
  `needsMigration` 表示源码需要写入或替换声明:无声明源码需要补上当前指令,当前源码已经完整,draft-1 源码需要替换指令。版本变化本身可以识别、但存在阻止安全迁移的条件时,`ok` 为 `false`。
87
87
 
@@ -94,7 +94,7 @@ const result = migrateLocalSource(oldSource, { fromVersion: 'local-draft-1' });
94
94
  // {
95
95
  // ok: boolean,
96
96
  // fromVersion: string,
97
- // toVersion: 'local-draft-3',
97
+ // toVersion: 'local-draft-4',
98
98
  // needsMigration: boolean,
99
99
  // diagnostics: Diagnostic[],
100
100
  // source: string,
@@ -105,15 +105,23 @@ const result = migrateLocalSource(oldSource, { fromVersion: 'local-draft-1' });
105
105
 
106
106
  迁移只写入或替换元数据注释,保留正文。正文原始字节、UTF-8 BOM 和 CRLF 换行保持不变;操作幂等,已迁移到当前版本的源码返回 `changed: false` 和相同文本。`edits` 定位每处替换。迁移被阻止时不产生迁移结果,调用方传入的内容保持不变。
107
107
 
108
- 把 `local-draft-1` 源码迁移到 `local-draft-3` 之前,迁移会阻止:
108
+ 把 `local-draft-1` 源码迁移到 `local-draft-4` 之前,迁移会阻止:
109
109
 
110
110
  - 使用 17 个新增保留表达式名的绑定:`sum`、`average`、`minOf`、`maxOf`、`formatNumber`、`formatPercent`、`formatScientific`、`formatCurrency`、`trim`、`lower`、`upper`、`startsWith`、`endsWith`、`replace`、`slice`、`dateCompare`、`dateDiff`;
111
- - 代码之外出现的、在旧修订中不执行的新增标签名:`jump`、`anchor`、`text`、`section`、`multi-select`、`range-slider`、`coordinate`、`quiz`、`steps`、`step`、`computed`、`const`、`validation`、`data-table`、`column`、`external`;
111
+ - 代码之外出现的、在旧修订中不执行的新增标签名:`jump`、`anchor`、`text`、`section`、`multi-select`、`range-slider`、`coordinate`、`quiz`、`steps`、`step`、`computed`、`const`、`validation`、`data-table`、`column`、`external`、`else`、`dataset`;
112
112
  - 表达式中的数组语法或新增内置函数调用;字符串字面量中的文本不触发此检查;
113
113
  - 源码当前的编译错误。
114
114
 
115
115
  诊断给出准确位置。迁移不重命名标识符、不改写表达式,也不激活原先按原文显示的标签;这些属于作者对源码的修改。
116
116
 
117
+ ### draft-3 到 draft-4
118
+
119
+ 普通 `local-draft-3` 源码只需把声明替换为 `local-draft-4`,正文保持不变。draft-4 激活同级 `<else>` 分支和 `<dataset>` 声明。
120
+
121
+ 代码块、行内代码、注释和惰性回退区域之外的 `<else>` 与 `<dataset>` 会在源码位置触发 `local.upgrade.tag` 并阻止迁移。把示例写为字面代码,或在升级后按新的语法添加这些标签。
122
+
123
+ 七个新辅助函数名不是保留名:`number`、`string`、`range`、`join`、`split`、`dateAdd`、`formatDate` 仍可作为绑定名和声明名。名称后写 `(` 是函数调用,裸名称是变量引用,因此用这些词作参数的旧文档无需改名,也不会被阻止。
124
+
117
125
  文本控件需要一次明确的兼容决定。`input` 或 `textarea` 带大于零的 `min-length`,或带 `max-length` 时,astral Unicode 的读者语义会改变:draft-2 按 Unicode 码点计数,draft-1 按 UTF-16 代码单元计数。除非允许语义变化,迁移会阻止这些控件:
118
126
 
119
127
  ```ts
@@ -142,7 +150,7 @@ reactive-md migrate old.reactive.md --from local-draft-1 --accept-semantic-chang
142
150
  | 选项 | 含义 |
143
151
  | --- | --- |
144
152
  | `[file\|-]` | 输入文件;`-` 表示标准输入 |
145
- | `--from local-draft-1\|local-draft-2\|local-draft-3` | 源修订;默认取声明或当前修订 |
153
+ | `--from local-draft-1\|local-draft-2\|local-draft-3\|local-draft-4` | 源修订;默认取声明或当前修订 |
146
154
  | `--check` | 只报告是否需要迁移,从不写入 |
147
155
  | `--json` | 标准输出结构化报告,且是唯一的 stdout 内容 |
148
156
  | `-o, --output <file>` | 新建文件;拒绝任何已存在的路径,包括输入文件本身 |
@@ -157,6 +165,6 @@ reactive-md migrate old.reactive.md --from local-draft-1 --accept-semantic-chang
157
165
 
158
166
  ## 范围
159
167
 
160
- 迁移处理声明的元数据变化,并检查正文能否跨越修订边界。它不是旧版读取器:不解释 YAML `state`/`data`/`computed`/`actions` 配置块、directive 或其他 draft 之前的语法,也不改写正文。在 `local-draft-3` 下已经无法编译的源码会保持阻止状态,直到作者修复报告的位置。
168
+ 迁移处理声明的元数据变化,并检查正文能否跨越修订边界。它不是旧版读取器:不解释 YAML `state`/`data`/`computed`/`actions` 配置块、directive 或其他 draft 之前的语法,也不改写正文。在 `local-draft-4` 下已经无法编译的源码会保持阻止状态,直到作者修复报告的位置。
161
169
 
162
- `0.8.0` 继续以 `local-draft-3` 作为唯一接受的修订,不新增源码修订。本页的指令规则、迁移 API 和 CLI 选项保持不变,因此在 `0.7.0` 下可编译的文档无需为 `0.8.0` 迁移。从 `local-draft-1` 或 `local-draft-2` 迁移仍以 `local-draft-3` 为目标;迁移 `local-draft-2` 文档时仍会阻止新激活的 `<external>` 标签,作者需要先把它们保存为字面代码。`latest` 渠道的 `0.9.3` 继续使用 `local-draft-3`。
170
+ `latest` 渠道的 `0.10.0` 使用 `local-draft-4`。`0.9.3` 仍使用 `local-draft-3`;普通 draft-3 源码通过替换元数据迁移,迁移检查会标出新激活的 `<else>` 与 `<dataset>`。从 `local-draft-2` 迁移也会检查 `<external>`;从 `local-draft-1` 迁移覆盖所有更新标签。状态文件同时记录语法修订和源摘要,迁移后应重新导出状态文件。
@@ -9,7 +9,7 @@ This page covers explicit source revisions, how the compiler treats them, and th
9
9
  A source declares its revision with one HTML comment on its own line:
10
10
 
11
11
  ```markdown
12
- <!-- reactive-md: local-draft-3 -->
12
+ <!-- reactive-md: local-draft-4 -->
13
13
  ```
14
14
 
15
15
  The directive belongs to the document prologue, before the `<theme>` declaration and before any body content. A BOM, blank lines and ordinary Markdown comments may precede it. Exactly one directive is allowed.
@@ -20,9 +20,10 @@ Compilation behavior:
20
20
 
21
21
  | Source | Result |
22
22
  | --- | --- |
23
- | No directive | Parsed as the current revision `local-draft-3`; no new warning |
24
- | `local-draft-3` | Parsed normally |
25
- | `local-draft-1` or `local-draft-2` | Rejected with a `local.version.*` diagnostic; migrate first |
23
+ | No directive | Parsed as the current revision `local-draft-4`; no new warning |
24
+ | `local-draft-4` | Parsed normally |
25
+ | `local-draft-4 + macros` | Enables `<macro>` and `<use>` with a compatible reader and component registry |
26
+ | `local-draft-1`, `local-draft-2` or `local-draft-3` | Rejected with a `local.version.*` diagnostic; migrate first |
26
27
 
27
28
  | Unknown, malformed, duplicate or misplaced directive | Rejected with a `local.version.*` diagnostic |
28
29
 
@@ -53,7 +54,7 @@ const info = inspectLocalSourceVersion(source);
53
54
  - `range` locates the directive in the original source, or is `null` when there is none.
54
55
  - `diagnostics` reports malformed, duplicate, misplaced, old or unknown declarations using the `local.version.*` prefix.
55
56
 
56
- An unversioned source reports `declaredVersion: null`, `effectiveVersion: 'local-draft-3'`, `supported: true` and no version diagnostic.
57
+ An unversioned source reports `declaredVersion: null`, `effectiveVersion: 'local-draft-4'`, `supported: true` and no version diagnostic.
57
58
 
58
59
  ## Check an upgrade
59
60
 
@@ -64,7 +65,7 @@ const check = checkLocalUpgrade(source);
64
65
  // {
65
66
  // ok: boolean,
66
67
  // fromVersion: string,
67
- // toVersion: 'local-draft-3',
68
+ // toVersion: 'local-draft-4',
68
69
  // needsMigration: boolean,
69
70
  // diagnostics: Diagnostic[]
70
71
  // }
@@ -81,7 +82,7 @@ type LocalUpgradeOptions = {
81
82
  const check = checkLocalUpgrade(oldSource, { fromVersion: 'local-draft-1' });
82
83
  ```
83
84
 
84
- An unversioned historical document requires `fromVersion: 'local-draft-1'` to receive the draft-1 checks. When an explicit `fromVersion` disagrees with the declaration, the check is rejected. `local-draft-1`, `local-draft-2` and the current `local-draft-3` are accepted as migration sources; legacy YAML revisions and unknown names are rejected.
85
+ An unversioned historical document requires `fromVersion: 'local-draft-1'`, `'local-draft-2'` or `'local-draft-3'` to receive the matching checks. When an explicit `fromVersion` disagrees with the declaration, the check is rejected. `local-draft-1` through `local-draft-3` and the current `local-draft-4` are accepted as migration sources; legacy YAML revisions and unknown names are rejected.
85
86
 
86
87
  `needsMigration` is `true` when the source needs a new or different directive. An unversioned source needs the current directive stamped; a current source is already complete; a draft-1 source needs its directive replaced. `ok` is `false` when a blocker prevents a safe migration even though the version change itself is recognized.
87
88
 
@@ -94,7 +95,7 @@ const result = migrateLocalSource(oldSource, { fromVersion: 'local-draft-1' });
94
95
  // {
95
96
  // ok: boolean,
96
97
  // fromVersion: string,
97
- // toVersion: 'local-draft-3',
98
+ // toVersion: 'local-draft-4',
98
99
  // needsMigration: boolean,
99
100
  // diagnostics: Diagnostic[],
100
101
  // source: string,
@@ -105,15 +106,23 @@ const result = migrateLocalSource(oldSource, { fromVersion: 'local-draft-1' });
105
106
 
106
107
  Migration stamps or replaces the metadata comment and preserves the body. It keeps original body bytes, a UTF-8 BOM and CRLF line endings, and is idempotent: migrating an already current source returns `changed: false` and the same text. `edits` locates each replacement. A blocked migration produces no migrated output, and the caller's input remains unchanged.
107
108
 
108
- Before moving `local-draft-1` source to `local-draft-3`, migration blocks:
109
+ Before moving `local-draft-1` source to `local-draft-4`, migration blocks:
109
110
 
110
111
  - bindings that use one of the 17 newly reserved expression names: `sum`, `average`, `minOf`, `maxOf`, `formatNumber`, `formatPercent`, `formatScientific`, `formatCurrency`, `trim`, `lower`, `upper`, `startsWith`, `endsWith`, `replace`, `slice`, `dateCompare`, `dateDiff`;
111
- - the newly recognized tag names outside code: `jump`, `anchor`, `text`, `section`, `multi-select`, `range-slider`, `coordinate`, `quiz`, `steps`, `step`, `computed`, `const`, `validation`, `data-table`, `column`, `external`;
112
+ - the newly recognized tag names outside code: `jump`, `anchor`, `text`, `section`, `multi-select`, `range-slider`, `coordinate`, `quiz`, `steps`, `step`, `computed`, `const`, `validation`, `data-table`, `column`, `external`, `else`, `dataset`;
112
113
  - array syntax or calls to newly introduced built-ins in expressions; text inside string literals does not trigger this check;
113
114
  - current compile errors in the source.
114
115
 
115
116
  Diagnostics report precise source positions. Migration does not rename identifiers, rewrite expressions or activate formerly inert tags. Those are source changes for the author.
116
117
 
118
+ ### Draft-3 to draft-4
119
+
120
+ An ordinary `local-draft-3` source migrates by replacing the declaration with `local-draft-4`; the body stays unchanged. Draft-4 activates sibling `<else>` branches and `<dataset>` declarations.
121
+
122
+ An `<else>` or `<dataset>` outside code spans, code fences, comments and inert fallback regions blocks migration with `local.upgrade.tag` at its source range. Wrap examples as literal code or add the tags using the new syntax after upgrading.
123
+
124
+ The seven new helper names are not reserved: `number`, `string`, `range`, `join`, `split`, `dateAdd` and `formatDate` remain valid binding and declaration names. A name followed by `(` is a call and a bare name is a variable reference, so existing documents that used these words as parameters need no rename and are not blocked.
125
+
117
126
  Text controls need one explicit compatibility decision. An `input` or `textarea` with `min-length` greater than zero, or with a `max-length`, changes reader semantics for astral Unicode: draft-2 counts Unicode code points while draft-1 counted UTF-16 code units. Migration blocks these controls unless semantic changes are allowed:
118
127
 
119
128
  ```ts
@@ -142,7 +151,7 @@ reactive-md migrate old.reactive.md --from local-draft-1 --accept-semantic-chang
142
151
  | Option | Meaning |
143
152
  | --- | --- |
144
153
  | `[file\|-]` | Input file, or `-` for standard input |
145
- | `--from local-draft-1\|local-draft-2\|local-draft-3` | Source revision; defaults to the declaration or the current revision |
154
+ | `--from local-draft-1\|local-draft-2\|local-draft-3\|local-draft-4` | Source revision; defaults to the declaration or the current revision |
146
155
  | `--check` | Report whether migration is needed; never writes |
147
156
  | `--json` | Structured report on standard output; the only stdout content |
148
157
  | `-o, --output <file>` | Create a new file; refuses any existing path, including the input |
@@ -157,6 +166,6 @@ The command migrates one source at a time. This build has no `--write` mode, no
157
166
 
158
167
  ## Scope
159
168
 
160
- Migration handles the declared metadata change and checks whether the body can cross the revision boundary. It is not a legacy reader: it does not interpret YAML `state`/`data`/`computed`/`actions` blocks, directives or other pre-draft syntax, and it does not rewrite the body. Source that already fails to compile under `local-draft-3` stays blocked until the author fixes the reported positions.
169
+ Migration handles the declared metadata change and checks whether the body can cross the revision boundary. It is not a legacy reader: it does not interpret YAML `state`/`data`/`computed`/`actions` blocks, directives or other pre-draft syntax, and it does not rewrite the body. Source that already fails to compile under `local-draft-4` stays blocked until the author fixes the reported positions.
161
170
 
162
- `0.8.0` keeps `local-draft-3` as the only accepted revision and adds no new source revision. The directive rules, migration API and CLI options on this page apply unchanged, so a document that compiles under `0.7.0` needs no migration for `0.8.0`. Migrating from `local-draft-1` or `local-draft-2` still targets `local-draft-3`; migration from `local-draft-2` continues to block newly active `<external>` tags and requires the author to preserve them as literal code first. `0.9.3` is available on `latest` and continues to use `local-draft-3`.
171
+ `0.10.0` is available on `latest` and uses `local-draft-4`. `0.9.3` remains on `local-draft-3`; ordinary draft-3 sources migrate by metadata replacement, with migration checks for newly active `<else>` and `<dataset>` tags. Migration from `local-draft-2` also checks for `<external>`. Migration from `local-draft-1` covers all newer tags. State files record both the syntax revision and source digest, so export a fresh state file after migration.
@@ -2,7 +2,7 @@
2
2
 
3
3
  **中文** · [English](support-matrix-en.md)
4
4
 
5
- 本页定义 `reactive-md@0.9.3`、`reactive-md-editor@0.2.1` 和对应 Demo 候选的公开支持范围。配对版本见[版本与兼容性](compatibility-ch.md)。
5
+ 本页定义 `reactive-md@0.10.0`、`reactive-md-editor@0.3.0` 与对应 Demo 候选的公开支持范围。配对版本见[版本与兼容性](compatibility-ch.md)。
6
6
 
7
7
  ## 支持等级
8
8
 
@@ -37,8 +37,9 @@
37
37
  | 通用 SSR 水合 | 宿主管理的 hydration | Not supported | none | 已支持的交互路径见单文件 HTML 启动。 |
38
38
  | 引擎 Worker | `LocalCompileScheduler` 与 `LocalCompileWorker` | Verified | `worker-unit` | 通过 Worker 单元测试。 |
39
39
  | 编辑器分析 Worker | CodeMirror 分析 Worker | Declared | `editor-pack` | 打包检查覆盖 Worker 资源及其导入。 |
40
- | PDF | `reactive-md/pdf` | Verified | `pdf-static` | 实测内置 Chromium 与 `pdftotext`。 |
41
- | 编辑器包 | `reactive-md-editor` 0.2.1 | Declared | `editor-pack` | peer 为 `^0.9.2`。打包验证 SSR、Worker 和 NodeNext 声明。 |
40
+ | 交互宏 | `local-draft-4 + macros` | Verified | `worker-unit` | Worker 保留关联源码范围,并在定义修改后重编译。Demo 的 `npm run test:export` 验证离线状态恢复。 |
41
+ | PDF | `reactive-md/pdf`(预览) | Verified | `pdf-static` | 预览功能。实测内置 Chromium 与 `pdftotext`。版式与分页可能随版本调整。 |
42
+ | 编辑器包 | `reactive-md-editor` 0.3.0 | Declared | `editor-pack` | peer 为 `^0.10.0`。打包验证 SSR、Worker 和 NodeNext 声明。 |
42
43
  | 兼容性清单 | 三仓候选集合 | Declared | `compatibility-manifest` | 验收检查版本、建议安装组合、候选包及锁文件完整性。 |
43
44
 
44
45
  ## 验证检查
@@ -2,7 +2,7 @@
2
2
 
3
3
  **English** · [中文](support-matrix-ch.md)
4
4
 
5
- This matrix defines public support for `reactive-md@0.9.3`, `reactive-md-editor@0.2.1` and the paired Demo candidate. See [Versions and compatibility](compatibility-en.md) for the package pair.
5
+ This matrix defines public support for `reactive-md@0.10.0`, `reactive-md-editor@0.3.0` and the paired Demo candidate. See [Versions and compatibility](compatibility-en.md) for the package pair.
6
6
 
7
7
  ## Support levels
8
8
 
@@ -37,8 +37,9 @@ The package requires Node 22.12.0 or newer. This release line verifies the liste
37
37
  | General SSR hydration | Host-managed hydration | Not supported | none | See interactive single-file HTML for the supported boot path. |
38
38
  | Engine Worker | `LocalCompileScheduler` and `LocalCompileWorker` | Verified | `worker-unit` | The Worker unit suite passed. |
39
39
  | Editor analysis Worker | CodeMirror analysis Worker | Declared | `editor-pack` | The packed consumer checks the Worker asset and its imports. |
40
- | PDF | `reactive-md/pdf` | Verified | `pdf-static` | Tested with bundled Chromium and `pdftotext`. |
41
- | Editor package | `reactive-md-editor` 0.2.1 | Declared | `editor-pack` | Peer range `^0.9.2`. Packed-consumer checks cover SSR, the Worker and NodeNext declarations. |
40
+ | Interaction macros | `local-draft-4 + macros` | Verified | `worker-unit` | Worker requests preserve related source ranges and recompile after definition edits. The Demo's `npm run test:export` checks offline state restoration. |
41
+ | PDF | `reactive-md/pdf` (preview) | Verified | `pdf-static` | Preview feature. Tested with bundled Chromium and `pdftotext`. Layout and pagination may change between releases. |
42
+ | Editor package | `reactive-md-editor` 0.3.0 | Declared | `editor-pack` | Peer range `^0.10.0`. Packed-consumer checks cover SSR, the Worker and NodeNext declarations. |
42
43
  | Compatibility manifest | Cross-repository release candidates | Declared | `compatibility-manifest` | Checks the versions, recommended install set, tarballs and lockfile integrity. |
43
44
 
44
45
  ## Verification checks
@@ -2,14 +2,14 @@
2
2
 
3
3
  **中文** · [English](component-development-en.md) · [完整开发契约](component-development-reference-ch.md)
4
4
 
5
- 先用一个可以展开 Markdown 的提示容器跑通预览。扩展 SDK 自 `reactive-md@0.8.0` 起提供,SDK 契约在 `0.9.3` 中仍为 0.7.0,直接安装当前公开包即可。
5
+ 先用一个可以展开 Markdown 的提示容器跑通预览。扩展 SDK 自 `reactive-md@0.8.0` 起提供,SDK 契约在 `0.10.0` 中仍为 0.7.0,直接安装当前公开包即可。
6
6
 
7
7
  ## 创建并启动
8
8
 
9
9
  ```sh
10
10
  npx reactive-md init component ../my-note --name my-note --id acme/my-note --form container --props '{"label":{"kind":"string","default":"Note"}}' --yes
11
11
  cd ../my-note
12
- npm install reactive-md@0.9.3 react@^19 react-dom@^19
12
+ npm install reactive-md@0.10.0 react@^19 react-dom@^19
13
13
  npm run dev
14
14
  ```
15
15
 
@@ -2,14 +2,14 @@
2
2
 
3
3
  **English** · [中文](component-development-ch.md) · [Full development contract](component-development-reference-en.md)
4
4
 
5
- Start with a note container that can expand Markdown. The extension SDK has shipped since `reactive-md@0.8.0`, and its `0.7.0` contract is unchanged in `0.9.3`; install the current published package.
5
+ Start with a note container that can expand Markdown. The extension SDK has shipped since `reactive-md@0.8.0`, and its `0.7.0` contract is unchanged in `0.10.0`; install the current published package.
6
6
 
7
7
  ## Create and run
8
8
 
9
9
  ```sh
10
10
  npx reactive-md init component ../my-note --name my-note --id acme/my-note --form container --props '{"label":{"kind":"string","default":"Note"}}' --yes
11
11
  cd ../my-note
12
- npm install reactive-md@0.9.3 react@^19 react-dom@^19
12
+ npm install reactive-md@0.10.0 react@^19 react-dom@^19
13
13
  npm run dev
14
14
  ```
15
15