reactive-md 0.8.0 → 0.9.1

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 (441) hide show
  1. package/CHANGELOG-ch.md +54 -4
  2. package/CHANGELOG.md +55 -4
  3. package/CONTRIBUTING-ch.md +13 -2
  4. package/CONTRIBUTING.md +13 -2
  5. package/README-ch.md +132 -23
  6. package/README-en.md +130 -21
  7. package/README.md +128 -21
  8. package/SECURITY-ch.md +3 -3
  9. package/SECURITY.md +3 -3
  10. package/THIRD_PARTY_NOTICES.md +111 -1
  11. package/cli/args.mjs +51 -1
  12. package/cli/assets.mjs +6 -1
  13. package/cli/build.mjs +125 -9
  14. package/cli/fs-utils.mjs +3 -3
  15. package/cli/help.mjs +12 -5
  16. package/cli/init.mjs +1 -1
  17. package/cli/package.mjs +1 -0
  18. package/dist-library/LocalDocumentView-sthUP0ct.js +109 -0
  19. package/dist-library/LocalDocumentViewCore-GiWV3bey.js +9829 -0
  20. package/dist-library/LocalReactiveDocumentCore-ZjQSGyHE.js +275 -0
  21. package/dist-library/{authoring-BsfSwQRm.js → authoring-Dsune4Hy.js} +240 -218
  22. package/dist-library/compile-wUv8KEge.js +1249 -0
  23. package/dist-library/{compiler-core-kPiH-gOV.js → compiler-core-As_m-MNm.js} +5372 -5559
  24. package/dist-library/compiler-eOfcinZs.js +62 -0
  25. package/dist-library/component-state-BoLCGee4.js +801 -0
  26. package/dist-library/{component-state-D_cw_EHe.js → component-state-C52ZFJGl.js} +2 -2
  27. package/dist-library/{registry-B9Jc3FVe.js → config-BadfhjdP.js} +374 -457
  28. package/dist-library/{config-validation-DXTynAw7.js → config-validation-F47AcE6o.js} +549 -751
  29. package/dist-library/controls-CcT6n7k_.js +6740 -0
  30. package/dist-library/coordinate-CWS9p5q_.js +293 -0
  31. package/dist-library/data-table-Bgccxd7h.js +296 -0
  32. package/dist-library/{default-components-Z_YMio5P.js → default-components-BwQf0oP-.js} +344 -334
  33. package/dist-library/{math-display-BJz4gbFc.js → display-B-VhqVND.js} +1299 -1299
  34. package/dist-library/export-BqVmTXm8.js +369 -0
  35. package/dist-library/gallery-CY6mTx8i.js +360 -0
  36. package/dist-library/html-CNT4KD-2.js +757 -0
  37. package/dist-library/{math-sample-BGEW49zY.js → incremental-Dv0FSp_U.js} +476 -394
  38. package/dist-library/latex-1w7aQgD5.js +928 -0
  39. package/dist-library/layout-C0YlEPGr.js +562 -0
  40. package/dist-library/mount-preset-KxvtKgJb.js +13 -0
  41. package/dist-library/options-1aDLK7JY.js +121 -0
  42. package/dist-library/{react-ByOHunUW.js → package-core-WFK1RhAZ.js} +49 -55
  43. package/dist-library/{parser-standard-DlCk7sLo.js → parser-standard-Yuf3A_VI.js} +6605 -7097
  44. package/dist-library/plugin-packs-B1XPWcFs.js +18 -0
  45. package/dist-library/{identity-MYJXKSkB.js → preset-core-CKc5YXSM.js} +31 -31
  46. package/dist-library/{props-DGlBk0e5.js → props-sJ8vk0cr.js} +1 -1
  47. package/dist-library/react-BbyAgeXc.js +6070 -0
  48. package/dist-library/react-D5iGiUdL.js +7 -0
  49. package/dist-library/reactive-md-authoring.js +222 -223
  50. package/dist-library/reactive-md-build.js +126 -72
  51. package/dist-library/reactive-md-compiler-standard.js +12 -10
  52. package/dist-library/reactive-md-compiler.js +3 -3
  53. package/dist-library/reactive-md-default-packs.js +2 -2
  54. package/dist-library/reactive-md-default-preset.js +4 -4
  55. package/dist-library/reactive-md-export-assets.js +57 -0
  56. package/dist-library/reactive-md-export.js +5 -111
  57. package/dist-library/reactive-md-minimal-preset.js +24 -0
  58. package/dist-library/reactive-md-minimal-react-preset.js +26 -0
  59. package/dist-library/reactive-md-minimal-styles.js +80 -0
  60. package/dist-library/reactive-md-minimal.css +2 -0
  61. package/dist-library/reactive-md-pdf.js +7582 -0
  62. package/dist-library/reactive-md-plugin-chart.js +13 -0
  63. package/dist-library/reactive-md-plugin-data.js +17 -0
  64. package/dist-library/reactive-md-plugin-diagram.js +18 -0
  65. package/dist-library/reactive-md-plugin-forms.js +18 -0
  66. package/dist-library/reactive-md-plugin-gallery.js +12 -0
  67. package/dist-library/reactive-md-plugin-navigation.js +15 -0
  68. package/dist-library/reactive-md-plugin-network.js +222 -0
  69. package/dist-library/reactive-md-plugin-plot.js +24 -0
  70. package/dist-library/reactive-md-print.css +5 -0
  71. package/dist-library/reactive-md-react-minimal.js +28 -0
  72. package/dist-library/reactive-md-react-server.js +34 -32
  73. package/dist-library/reactive-md-react-unstyled.js +14 -9
  74. package/dist-library/reactive-md-react.js +14 -9
  75. package/dist-library/reactive-md-runtime-browser.js +847 -15
  76. package/dist-library/reactive-md-runtime.js +3 -3
  77. package/dist-library/reactive-md-sdk.js +8 -6
  78. package/dist-library/reactive-md-standalone-configured.js +16 -0
  79. package/dist-library/reactive-md-standalone-host.js +9 -438
  80. package/dist-library/reactive-md-testing-browser.js +5 -4
  81. package/dist-library/reactive-md-testing-react.js +46 -44
  82. package/dist-library/reactive-md-testing.js +45 -44
  83. package/dist-library/reactive-md-vite.js +135 -37
  84. package/dist-library/reactive-md.css +1 -1
  85. package/dist-library/reactive-md.js +590 -498
  86. package/dist-library/registry-B9NGct4d.js +20 -0
  87. package/dist-library/registry-core-Bbad9Bm2.js +479 -0
  88. package/dist-library/{resources-BGt8mpDA.js → resources-D2GDQS0p.js} +45 -45
  89. package/dist-library/{runtime-Dkq7ldyg.js → runtime-B2fxeveq.js} +1 -1
  90. package/dist-library/runtime-kcA7bG7G.js +1282 -0
  91. package/dist-library/sample-bP4zHB3L.js +289 -0
  92. package/dist-library/{schema-ZFufO8V0.js → schema-BufhKUSM.js} +12 -11
  93. package/dist-library/sdk-core-BoJT1SIt.js +1166 -0
  94. package/dist-library/session-core-nmJHuR9c.js +452 -0
  95. package/dist-library/{shareable-DDVL4Fi9.js → shareable-DpbE-59H.js} +250 -283
  96. package/dist-library/tooltip-layer-HDLrSWs0.js +28 -0
  97. package/dist-library/types/authoring/catalog.d.ts +2 -3
  98. package/dist-library/types/authoring/editor-i18n.d.ts +1 -1
  99. package/dist-library/types/authoring/index.d.ts +1 -1
  100. package/dist-library/types/authoring/insert.d.ts +1 -1
  101. package/dist-library/types/authoring/templates.d.ts +2 -2
  102. package/dist-library/types/build/diagnostics.d.ts +1 -1
  103. package/dist-library/types/build/host.d.ts +1 -1
  104. package/dist-library/types/build/index.d.ts +1 -1
  105. package/dist-library/types/build/notices.d.ts +1 -1
  106. package/dist-library/types/build/resources.d.ts +1 -1
  107. package/dist-library/types/build/vite.d.ts +1 -1
  108. package/dist-library/types/compiler/index.d.ts +2 -2
  109. package/dist-library/types/compiler/result.d.ts +1 -1
  110. package/dist-library/types/compiler/standard.d.ts +2 -2
  111. package/dist-library/types/compiler/types.d.ts +1 -1
  112. package/dist-library/types/components/{controls.d.ts → controls/controls.d.ts} +2 -3
  113. package/dist-library/types/components/{numeric-sliders.d.ts → controls/numeric-sliders.d.ts} +1 -1
  114. package/dist-library/types/components/{gallery.d.ts → gallery/gallery.d.ts} +1 -1
  115. package/dist-library/types/components/{layout.d.ts → layout/layout.d.ts} +1 -1
  116. package/dist-library/types/components/minimal-preset.d.ts +2 -0
  117. package/dist-library/types/components/mount-preset.d.ts +4 -0
  118. package/dist-library/types/components/network/submit-button.d.ts +10 -0
  119. package/dist-library/types/components/plot/coordinate.d.ts +2 -0
  120. package/dist-library/types/components/plugins/chart.d.ts +2 -0
  121. package/dist-library/types/components/plugins/data.d.ts +2 -0
  122. package/dist-library/types/components/plugins/diagram.d.ts +2 -0
  123. package/dist-library/types/components/plugins/forms.d.ts +2 -0
  124. package/dist-library/types/components/plugins/gallery.d.ts +2 -0
  125. package/dist-library/types/components/plugins/navigation.d.ts +2 -0
  126. package/dist-library/types/components/plugins/network.d.ts +2 -0
  127. package/dist-library/types/components/plugins/plot.d.ts +2 -0
  128. package/dist-library/types/components/shared/visual-frame.d.ts +12 -0
  129. package/dist-library/types/components/{visuals.d.ts → shared/visuals.d.ts} +1 -7
  130. package/dist-library/types/components/{data-table.d.ts → table/data-table.d.ts} +2 -2
  131. package/dist-library/types/export/component-state.d.ts +1 -1
  132. package/dist-library/types/export/index.d.ts +2 -1
  133. package/dist-library/types/export/print-document.d.ts +18 -0
  134. package/dist-library/types/export/render-markup.d.ts +23 -0
  135. package/dist-library/types/export/requirements.d.ts +1 -1
  136. package/dist-library/types/export/resources.d.ts +1 -1
  137. package/dist-library/types/export/restoration.d.ts +1 -1
  138. package/dist-library/types/export-assets/index.d.ts +25 -0
  139. package/dist-library/types/local/compilation/compiler-attributes.d.ts +8 -0
  140. package/dist-library/types/local/compilation/compiler-bindings.d.ts +19 -0
  141. package/dist-library/types/local/compilation/compiler-capabilities.d.ts +3 -0
  142. package/dist-library/types/local/compilation/compiler-core.d.ts +11 -3
  143. package/dist-library/types/local/compilation/compiler-declarations.d.ts +32 -0
  144. package/dist-library/types/local/compilation/compiler-expressions.d.ts +32 -0
  145. package/dist-library/types/local/compilation/compiler-services.d.ts +62 -16
  146. package/dist-library/types/local/compilation/compiler-structure.d.ts +38 -3
  147. package/dist-library/types/local/compilation/compiler-tables.d.ts +30 -0
  148. package/dist-library/types/local/compilation/compiler-validation.d.ts +15 -0
  149. package/dist-library/types/local/compilation/compiler-values.d.ts +39 -1
  150. package/dist-library/types/local/compilation/compiler.d.ts +7 -14
  151. package/dist-library/types/local/compilation/dependencies.d.ts +1 -1
  152. package/dist-library/types/local/compilation/session/incremental.d.ts +75 -0
  153. package/dist-library/types/local/{session → compilation/session}/row-reuse.d.ts +1 -1
  154. package/dist-library/types/local/{session/compiler-cache.d.ts → compilation/session/semantic-cache.d.ts} +5 -19
  155. package/dist-library/types/local/compilation/streaming.d.ts +27 -0
  156. package/dist-library/types/local/configuration/capability-policy.d.ts +3 -0
  157. package/dist-library/types/local/{compilation → configuration}/component-kernel.d.ts +3 -79
  158. package/dist-library/types/local/configuration/diagnostic-messages.d.ts +1104 -1056
  159. package/dist-library/types/local/configuration/diagnostic-runtime-messages.d.ts +731 -0
  160. package/dist-library/types/local/configuration/diagnostics.d.ts +1 -1
  161. package/dist-library/types/local/configuration/kernel-value-rules.d.ts +66 -0
  162. package/dist-library/types/local/configuration/official-leaf-syntax.d.ts +24 -0
  163. package/dist-library/types/local/configuration/options-core.d.ts +5 -4
  164. package/dist-library/types/local/configuration/options.d.ts +2 -1
  165. package/dist-library/types/local/configuration/portable-options.d.ts +1 -1
  166. package/dist-library/types/local/configuration/schema-core.d.ts +1 -1
  167. package/dist-library/types/local/configuration/schema.d.ts +1 -1
  168. package/dist-library/types/local/css/author-css.d.ts +66 -0
  169. package/dist-library/types/local/evaluation/computations.d.ts +2 -2
  170. package/dist-library/types/local/evaluation/expression/compile.d.ts +30 -0
  171. package/dist-library/types/local/evaluation/expression/evaluation.d.ts +3 -0
  172. package/dist-library/types/local/evaluation/expression/inference.d.ts +4 -0
  173. package/dist-library/types/local/evaluation/expression/syntax.d.ts +72 -0
  174. package/dist-library/types/local/evaluation/expression/values.d.ts +56 -0
  175. package/dist-library/types/local/evaluation/{math-display.d.ts → math/display.d.ts} +2 -2
  176. package/dist-library/types/local/evaluation/math/evaluation.d.ts +10 -0
  177. package/dist-library/types/local/evaluation/{math.d.ts → math/latex.d.ts} +58 -17
  178. package/dist-library/types/local/evaluation/{math-sample.d.ts → math/sample.d.ts} +4 -2
  179. package/dist-library/types/local/evaluation/math/syntax.d.ts +72 -0
  180. package/dist-library/types/local/evaluation/validation.d.ts +1 -1
  181. package/dist-library/types/local/html/extended-fragment.d.ts +41 -0
  182. package/dist-library/types/local/html/html-details.d.ts +1 -1
  183. package/dist-library/types/local/html/html-entities.d.ts +11 -2
  184. package/dist-library/types/local/html/html-recovery.d.ts +1 -1
  185. package/dist-library/types/local/html/html-table.d.ts +1 -1
  186. package/dist-library/types/local/html/html.d.ts +40 -4
  187. package/dist-library/types/local/index.d.ts +14 -13
  188. package/dist-library/types/local/parsing/author-markdown.d.ts +11 -0
  189. package/dist-library/types/local/{markdown → parsing}/fast-markdown.d.ts +1 -1
  190. package/dist-library/types/local/{markdown → parsing}/footnotes.d.ts +1 -1
  191. package/dist-library/types/local/{markdown → parsing}/heading-anchors.d.ts +1 -1
  192. package/dist-library/types/local/parsing/html-attributes.d.ts +14 -0
  193. package/dist-library/types/local/parsing/parse-budget.d.ts +1 -1
  194. package/dist-library/types/local/{session → parsing}/parse-session.d.ts +5 -5
  195. package/dist-library/types/local/parsing/parser-capabilities.d.ts +7 -2
  196. package/dist-library/types/local/parsing/parser-convert.d.ts +26 -0
  197. package/dist-library/types/local/parsing/parser-core.d.ts +10 -4
  198. package/dist-library/types/local/parsing/parser-internals.d.ts +54 -0
  199. package/dist-library/types/local/parsing/parser-region.d.ts +46 -0
  200. package/dist-library/types/local/parsing/parser-standard.d.ts +3 -0
  201. package/dist-library/types/local/parsing/parser-tags.d.ts +108 -0
  202. package/dist-library/types/local/parsing/parser.d.ts +3 -3
  203. package/dist-library/types/local/{markdown → parsing}/plain-paragraphs.d.ts +1 -1
  204. package/dist-library/types/local/parsing/rmd-recovery.d.ts +1 -1
  205. package/dist-library/types/local/parsing/theme-declaration.d.ts +22 -0
  206. package/dist-library/types/local/rendering/document/ExtendedHtmlFragment.d.ts +14 -0
  207. package/dist-library/types/local/rendering/document/LocalDocumentView.d.ts +5 -0
  208. package/dist-library/types/local/rendering/{LocalDocumentView.d.ts → document/LocalDocumentViewCore.d.ts} +48 -9
  209. package/dist-library/types/local/rendering/document/LocalReactiveDocumentCore.d.ts +6 -0
  210. package/dist-library/types/local/rendering/document/render-nodes.d.ts +24 -0
  211. package/dist-library/types/local/rendering/document/use-author-script.d.ts +3 -0
  212. package/dist-library/types/local/rendering/document/use-color-scheme.d.ts +10 -0
  213. package/dist-library/types/local/rendering/document/validation-state.d.ts +31 -0
  214. package/dist-library/types/local/rendering/document/view-render-context.d.ts +146 -0
  215. package/dist-library/types/local/rendering/{view-revision.d.ts → document/view-revision.d.ts} +31 -4
  216. package/dist-library/types/local/rendering/render-types.d.ts +1 -1
  217. package/dist-library/types/local/{widgets/table-surface.d.ts → rendering/table/data-table.d.ts} +3 -0
  218. package/dist-library/types/local/rendering/table/table-numeric-columns.d.ts +7 -0
  219. package/dist-library/types/local/runtime/author-script-protocol.d.ts +59 -0
  220. package/dist-library/types/local/runtime/retention.d.ts +1 -1
  221. package/dist-library/types/local/runtime/runtime-document.d.ts +71 -0
  222. package/dist-library/types/local/runtime/runtime-migration.d.ts +19 -0
  223. package/dist-library/types/local/runtime/runtime-values.d.ts +39 -0
  224. package/dist-library/types/local/runtime/runtime.d.ts +4 -2
  225. package/dist-library/types/local/runtime/state.d.ts +1 -1
  226. package/dist-library/types/local/source/authoring-syntax.d.ts +48 -0
  227. package/dist-library/types/local/source/authoring.d.ts +1 -1
  228. package/dist-library/types/local/source/source-context.d.ts +23 -0
  229. package/dist-library/types/local/source/source-migration.d.ts +2 -2
  230. package/dist-library/types/local/transport/compile-patch.d.ts +1 -1
  231. package/dist-library/types/local/transport/flat-compiled-data.d.ts +1 -1
  232. package/dist-library/types/local/transport/shared-data.d.ts +1 -1
  233. package/dist-library/types/local/transport/worker-handler.d.ts +30 -0
  234. package/dist-library/types/local/transport/worker-job.d.ts +28 -0
  235. package/dist-library/types/local/transport/worker.d.ts +32 -46
  236. package/dist-library/types/local/{contracts/types.d.ts → types.d.ts} +78 -21
  237. package/dist-library/types/pdf.d.ts +22 -0
  238. package/dist-library/types/presets/identity.d.ts +1 -0
  239. package/dist-library/types/presets/minimal.d.ts +2 -0
  240. package/dist-library/types/presets/plugin-packs.d.ts +1 -0
  241. package/dist-library/types/react/component-api.d.ts +20 -4
  242. package/dist-library/types/react/component-primitives.d.ts +10 -10
  243. package/dist-library/types/react/component-utils.d.ts +9 -1
  244. package/dist-library/types/react/index.d.ts +6 -5
  245. package/dist-library/types/{local/theme/i18n.d.ts → react/localization.d.ts} +2 -2
  246. package/dist-library/types/react/minimal.d.ts +13 -0
  247. package/dist-library/types/react/package-core.d.ts +67 -0
  248. package/dist-library/types/react/package.d.ts +3 -67
  249. package/dist-library/types/react/runtime/common.d.ts +1 -1
  250. package/dist-library/types/react/sdk-core.d.ts +115 -0
  251. package/dist-library/types/react/sdk.d.ts +4 -110
  252. package/dist-library/types/react/server.d.ts +2 -2
  253. package/dist-library/types/react/use-draft-field.d.ts +5 -1
  254. package/dist-library/types/runtime-services/browser/duplex.d.ts +163 -0
  255. package/dist-library/types/runtime-services/browser/http-sse.d.ts +117 -0
  256. package/dist-library/types/runtime-services/browser/index.d.ts +2 -1
  257. package/dist-library/types/runtime-services/component-state.d.ts +1 -1
  258. package/dist-library/types/runtime-services/index.d.ts +2 -0
  259. package/dist-library/types/runtime-services/network.d.ts +86 -0
  260. package/dist-library/types/runtime-services/runtime.d.ts +1 -1
  261. package/dist-library/types/sdk/config.d.ts +1 -1
  262. package/dist-library/types/sdk/index.d.ts +1 -0
  263. package/dist-library/types/sdk/props.d.ts +1 -1
  264. package/dist-library/types/sdk/registry-core.d.ts +1 -1
  265. package/dist-library/types/sdk/theme.d.ts +5 -4
  266. package/dist-library/types/sdk/types.d.ts +2 -2
  267. package/dist-library/types/shareable.d.ts +6 -5
  268. package/dist-library/types/standalone/diagnostics.d.ts +1 -1
  269. package/dist-library/types/standalone/host.d.ts +5 -0
  270. package/dist-library/types/standalone/payload.d.ts +1 -1
  271. package/dist-library/types/standalone/prepare.d.ts +2 -2
  272. package/dist-library/types/standalone/session-core.d.ts +68 -0
  273. package/dist-library/types/standalone/session.d.ts +6 -68
  274. package/dist-library/types/themes/contract.d.ts +7 -0
  275. package/dist-library/types/{local/theme/theme.d.ts → themes/document-theme.d.ts} +4 -3
  276. package/dist-library/types/vite/client.d.ts +19 -0
  277. package/dist-library/types/vite/index.d.ts +18 -3
  278. package/dist-library/types/vite/registration.d.ts +2 -2
  279. package/dist-library/{types-BFCrMrg0.js → types-BeNtPqdY.js} +1 -1
  280. package/dist-library/validation-BEBA_HvS.js +1121 -0
  281. package/dist-library/visual-frame-CyV1FXzs.js +48 -0
  282. package/dist-library/visuals-B5KSafVk.js +3 -0
  283. package/dist-library/visuals-BZbZYA7w.js +72572 -0
  284. package/dist-standalone/reactive-md-standalone.css +1 -1
  285. package/dist-standalone/reactive-md-standalone.js +146 -137
  286. package/docs/README-ch.md +16 -11
  287. package/docs/README.md +16 -11
  288. package/docs/compatibility/compatibility-ch.md +8 -8
  289. package/docs/compatibility/compatibility-en.md +8 -8
  290. package/docs/compatibility/source-versioning-ch.md +1 -1
  291. package/docs/compatibility/source-versioning-en.md +1 -1
  292. package/docs/development/component-development-ch.md +2 -2
  293. package/docs/development/component-development-en.md +2 -2
  294. package/docs/development/component-development-reference-ch.md +4 -4
  295. package/docs/development/component-development-reference-en.md +4 -4
  296. package/docs/development/component-protocol-ch.md +14 -14
  297. package/docs/development/component-protocol-en.md +14 -14
  298. package/docs/development/extension-tutorial-ch.md +308 -0
  299. package/docs/development/extension-tutorial-en.md +308 -0
  300. package/docs/development/local-module-layout-ch.md +10 -50
  301. package/docs/development/local-module-layout-en.md +9 -49
  302. package/docs/development/performance-overview-ch.md +174 -154
  303. package/docs/development/performance-overview-en.md +174 -154
  304. package/docs/guides/local-guide-ch.md +2 -2
  305. package/docs/guides/local-guide-en.md +2 -2
  306. package/docs/integration/author-tools-ch.md +2 -2
  307. package/docs/integration/author-tools-en.md +2 -2
  308. package/docs/integration/compiler-ch.md +4 -2
  309. package/docs/integration/compiler-en.md +4 -2
  310. package/docs/integration/directory-discovery-ch.md +5 -1
  311. package/docs/integration/directory-discovery-en.md +5 -1
  312. package/docs/integration/editor-ch.md +35 -5
  313. package/docs/integration/editor-en.md +42 -4
  314. package/docs/integration/extension-sdk-ch.md +6 -4
  315. package/docs/integration/extension-sdk-en.md +6 -4
  316. package/docs/integration/local-integration-ch.md +201 -19
  317. package/docs/integration/local-integration-en.md +194 -18
  318. package/docs/integration/network-host-ch.md +75 -0
  319. package/docs/integration/network-host-en.md +75 -0
  320. package/docs/integration/shareable-export-ch.md +58 -16
  321. package/docs/integration/shareable-export-en.md +57 -15
  322. package/docs/reference/html-compatibility-ch.md +20 -67
  323. package/docs/reference/html-compatibility-en.md +19 -64
  324. package/docs/reference/local-interaction-syntax-ch.md +199 -26
  325. package/docs/reference/local-interaction-syntax-en.md +194 -27
  326. package/docs/reference/public-api-ch.md +416 -0
  327. package/docs/reference/public-api-en.md +416 -0
  328. package/docs/reference/theme-protocol-ch.md +27 -8
  329. package/docs/reference/theme-protocol-en.md +46 -8
  330. package/docs/releases/release-0.4.0-ch.md +2 -2
  331. package/docs/releases/release-0.4.0-en.md +2 -2
  332. package/docs/releases/release-0.8.0-ch.md +19 -3
  333. package/docs/releases/release-0.8.0-en.md +19 -3
  334. package/docs/releases/release-0.9.0-ch.md +44 -0
  335. package/docs/releases/release-0.9.0-en.md +44 -0
  336. package/docs/releases/release-0.9.1-ch.md +29 -0
  337. package/docs/releases/release-0.9.1-en.md +29 -0
  338. package/examples/component-package/README-ch.md +1 -1
  339. package/examples/component-package/README.md +1 -1
  340. package/examples/conformance/README-ch.md +3 -3
  341. package/examples/conformance/README.md +3 -3
  342. package/examples/game-2048-package/README-ch.md +3 -9
  343. package/examples/game-2048-package/README.md +8 -12
  344. package/examples/integration/README-ch.md +21 -2
  345. package/examples/integration/README.md +21 -2
  346. package/examples/integration/extension-sdk/README-ch.md +1 -1
  347. package/examples/integration/extension-sdk/README.md +1 -1
  348. package/examples/integration/streaming/index.html +48 -0
  349. package/examples/integration/streaming/main.js +175 -0
  350. package/examples/integration/streaming/package.json +13 -0
  351. package/examples/integration/streaming/worker.js +3 -0
  352. package/examples/local/README-ch.md +3 -3
  353. package/examples/local/README.md +2 -2
  354. package/examples/local/minimal-budget.reactive.md +48 -0
  355. package/examples/minimal-extension/README-ch.md +78 -0
  356. package/examples/minimal-extension/README.md +78 -0
  357. package/examples/minimal-extension/index.html +15 -0
  358. package/examples/minimal-extension/package.json +26 -0
  359. package/examples/minimal-extension/sample/document.reactive.md +10 -0
  360. package/examples/minimal-extension/scripts/build.mjs +32 -0
  361. package/examples/minimal-extension/scripts/export.mjs +72 -0
  362. package/examples/minimal-extension/scripts/test-node.mjs +75 -0
  363. package/examples/minimal-extension/src/extension.tsx +90 -0
  364. package/examples/minimal-extension/src/preview.tsx +12 -0
  365. package/examples/minimal-extension/src/source.ts +4 -0
  366. package/examples/minimal-extension/tsconfig.json +14 -0
  367. package/examples/network-survey/README.md +200 -0
  368. package/examples/network-survey/index.html +49 -0
  369. package/examples/network-survey/package.json +26 -0
  370. package/examples/network-survey/sample/document.reactive.md +51 -0
  371. package/examples/network-survey/src/components.tsx +325 -0
  372. package/examples/network-survey/src/host.ts +316 -0
  373. package/examples/network-survey/src/main.tsx +91 -0
  374. package/examples/network-survey/src/source.ts +1 -0
  375. package/examples/network-survey/tsconfig.json +26 -0
  376. package/examples/network-survey/vite.config.ts +227 -0
  377. package/examples/sci-fi-theme/README-ch.md +4 -2
  378. package/examples/sci-fi-theme/README.md +4 -2
  379. package/examples/sci-fi-theme/demo/acceptance.reactive.md +454 -0
  380. package/examples/sci-fi-theme/demo/demo.css +129 -23
  381. package/examples/sci-fi-theme/demo/document.reactive.md +27 -6
  382. package/examples/sci-fi-theme/demo/main.tsx +45 -10
  383. package/examples/sci-fi-theme/docs/design-system-ch.md +6 -6
  384. package/examples/sci-fi-theme/package.json +2 -1
  385. package/examples/sci-fi-theme/src/components.css +1064 -154
  386. package/examples/sci-fi-theme/src/notch.css +142 -0
  387. package/examples/sci-fi-theme/src/sci-fi.css +3 -1
  388. package/examples/sci-fi-theme/src/theme.ts +2 -0
  389. package/examples/sci-fi-theme/src/tokens.css +512 -408
  390. package/examples/tetris-package/README-ch.md +4 -4
  391. package/examples/tetris-package/README.md +4 -4
  392. package/package.json +70 -3
  393. package/dist-library/LocalDocumentView-6trX7xJc.js +0 -97920
  394. package/dist-library/compiler--ea2CKQF.js +0 -61
  395. package/dist-library/component-state-Cq2K5gkS.js +0 -490
  396. package/dist-library/options-CX5m5n-J.js +0 -115
  397. package/dist-library/runtime-C-sbfpOX.js +0 -1157
  398. package/dist-library/types/local/contracts/locale.d.ts +0 -1
  399. package/dist-library/types/local/contracts/version.d.ts +0 -2
  400. package/dist-library/types/local/evaluation/dates.d.ts +0 -2
  401. package/dist-library/types/local/evaluation/expression.d.ts +0 -47
  402. package/dist-library/types/local/markdown/markdown-structure.d.ts +0 -3
  403. package/dist-library/types/local/rendering/legacy-component-adapter.d.ts +0 -36
  404. package/dist-library/types/local/session/incremental.d.ts +0 -48
  405. package/dist-library/types/local/source/node-walk.d.ts +0 -3
  406. package/dist-library/types/local/source/text-length.d.ts +0 -13
  407. package/dist-library/types/local/theme/theme-name.d.ts +0 -3
  408. package/dist-library/types/local/widgets/visuals.d.ts +0 -25
  409. package/dist-library/types/react/default-theme.d.ts +0 -6
  410. package/dist-library/validation-W-bmny-x.js +0 -2253
  411. package/docs/development/releasing-ch.md +0 -12
  412. package/docs/development/releasing-en.md +0 -12
  413. package/docs/integration/codemirror-ch.md +0 -52
  414. package/docs/integration/codemirror-en.md +0 -29
  415. package/docs/integration/repository-split-ch.md +0 -40
  416. package/docs/integration/repository-split-en.md +0 -23
  417. package/docs/reference/computations-formatting-ch.md +0 -89
  418. package/docs/reference/computations-formatting-en.md +0 -89
  419. package/docs/reference/constraints-collections-ch.md +0 -104
  420. package/docs/reference/constraints-collections-en.md +0 -104
  421. package/docs/reference/local-components-v2-ch.md +0 -140
  422. package/docs/reference/local-components-v2-en.md +0 -106
  423. package/docs/reference/tolerance-ch.md +0 -64
  424. package/docs/reference/tolerance-en.md +0 -57
  425. /package/dist-library/types/components/{chart-motion.d.ts → chart/chart-motion.d.ts} +0 -0
  426. /package/dist-library/types/components/{default-chart-types.d.ts → chart/default-chart-types.d.ts} +0 -0
  427. /package/dist-library/types/components/{default-chart.d.ts → chart/default-chart.d.ts} +0 -0
  428. /package/dist-library/types/components/{diagram-inspector.d.ts → diagram/diagram-inspector.d.ts} +0 -0
  429. /package/dist-library/types/{local/widgets/diagram-layout.d.ts → components/diagram/layout.d.ts} +0 -0
  430. /package/dist-library/types/components/{mafs-plot-grid.d.ts → plot/mafs-plot-grid.d.ts} +0 -0
  431. /package/dist-library/types/components/{mafs-visuals.d.ts → plot/mafs-visuals.d.ts} +0 -0
  432. /package/dist-library/types/components/{use-hydrated.d.ts → shared/use-hydrated.d.ts} +0 -0
  433. /package/dist-library/types/local/{theme/colors.d.ts → configuration/color-values.d.ts} +0 -0
  434. /package/dist-library/types/local/evaluation/{collection-functions.d.ts → expression/collection-functions.d.ts} +0 -0
  435. /package/dist-library/types/local/evaluation/{data-functions.d.ts → expression/data-functions.d.ts} +0 -0
  436. /package/dist-library/types/local/evaluation/{formatting.d.ts → expression/formatting.d.ts} +0 -0
  437. /package/dist-library/types/local/{markdown → parsing}/markdown-blocks.d.ts +0 -0
  438. /package/dist-library/types/local/{widgets → rendering/code}/code-block.d.ts +0 -0
  439. /package/dist-library/types/local/{widgets → rendering/code}/code-languages.d.ts +0 -0
  440. /package/dist-library/types/local/{widgets → rendering/image}/image-view.d.ts +0 -0
  441. /package/dist-library/types/local/{widgets → rendering}/math-view.d.ts +0 -0
@@ -2,11 +2,11 @@
2
2
 
3
3
  **English** · [中文](performance-overview-ch.md)
4
4
 
5
- Re-tested 2026-10-29. The full matrix records the row reuse, patch cost selection and CM6 single-editor migration of commit `4a8f1ea`; this round continues optimizing dynamic interpolation rows and deep nesting on top of that commit, with the targeted re-measurements listed separately in part two. The measurements were taken on the 0.6.1 codebase before the 0.7.0 release.
5
+ Re-tested 2026-11-20. Part 1 preserves each round's original record. Part 2's compilation, long-document editing, mixed parsing, incremental sessions, Worker, runtime stages and memory tables were re-measured on the 0.8.0 codebase at commit `8b0ccdc`; the full matrix was run twice on the same machine and the tables use the second pass. The editor and demo now live in separate repositories, so the CM6 full-editor, React rendering and targeted A/B comparisons cannot be re-run here; their 2026-10-29 records are retained and marked.
6
6
 
7
7
  ## 1. Direction and outcome of each optimization round
8
8
 
9
- The records below are as of each optimization. Cold compilation, steady-state editing and input-to-frame opportunity use different bases, so these numbers cannot be chained into a single speedup ratio. The full matrix and this round's targeted re-measurements are in part two.
9
+ The records below are as of each optimization. Cold compilation, steady-state editing and input-to-frame opportunity use different bases, so these numbers cannot be chained into a single speedup ratio. The current full matrix and the 2026-10-29 targeted re-measurements are in part two.
10
10
 
11
11
 
12
12
  | Commit | Direction | Optimization outcome at the time and basis |
@@ -29,17 +29,17 @@ The historical implementation basis includes Lezer's incremental fragments, GFM
29
29
 
30
30
  ### Measurement conditions and coverage
31
31
 
32
- Node v22.17.0, Intel(R) Core(TM) Ultra 5 125H, Windows x64. Node stress scenarios use independent processes with a 1 GiB old-generation cap; the browser is Edge 135.0.3179.66 in headless mode at a 1440×1000 viewport. Daily development processes remain running on the machine; power policy and CPU frequency were not pinned. Performance scripts run serially.
32
+ Node v22.17.0, Intel(R) Core(TM) Ultra 5 125H, Windows x64. Node stress scenarios use independent processes with a 1 GiB old-generation cap; the browser is Edge 135.0.3179.66 in headless mode at a 1440×1000 viewport. Daily development processes remain running on the machine; power policy and CPU frequency were not pinned. Performance scripts run serially. This round was re-run on 2026-11-20 on the same machine; two full matrices were run back to back and several scenarios varied in both directions, so the tables use the second pass and its per-sample data is in the summary. Stages that depend on the demo or editor repositories were not included.
33
33
 
34
34
  Typically 3 warmups and 15 measurements; the long-line and dedicated over-budget cases use 5/3, and the independent browser Worker uses 2 warmups and 5 measurements; the summary data is authoritative. P95 uses the nearest rank, which equals the maximum sample at 15 samples and is used only to observe the tail. First calls, public snapshot copies, shared Worker results and main-thread rendering are recorded separately.
35
35
 
36
36
  RSS is the process high-water mark and includes Node, modules, input and temporary objects; the post-GC heap is the retained amount, and the two are not interchangeable. JSON UTF-8 message size is an estimate; structured-clone cost is measured separately. Input-to-preview ends at the second requestAnimationFrame frame opportunity after commit; CDP Paint is a paint-phase event, and neither indicates GPU display completion. React phases overlap and cannot be summed.
37
37
 
38
- ### This round's targeted re-measurement of dynamic rows and deep nesting
38
+ ### Targeted re-measurement from 2026-10-29: dynamic rows and deep nesting (historical, not re-run)
39
39
 
40
- The baseline is the `4a8f1ea` production package saved at the start of this round, and post-change data comes from the final build; code hashes and condensed results are in `benchmarks/dynamic-depth-2026-10-29.json`. This round re-measured dynamic lists, dynamic tables, deep containers, protocol recovery and sustained-edit memory. The complete 45-scenario matrix and the other overview tables below retain the `4a8f1ea` measurements.
40
+ The baseline is the `4a8f1ea` production package saved at the start of that round, and post-change data comes from that round's final build; code hashes and condensed results are in `benchmarks/dynamic-depth-2026-10-29.json`. That round re-measured dynamic lists, dynamic tables, deep containers, protocol recovery and sustained-edit memory. The original record is kept here; current measurements are in the tables below.
41
41
 
42
- Each browser group uses 3 warmups and 15 measurements. Before-change samples are retained from this round's first paired measurement, and after-change samples were re-measured on the final build. The table shows median/P95 in ms. Input is driven by an independent textarea fixture to compare the Worker-to-React preview path; CM6 and deep preview get separate real-browser functional verification.
42
+ Each browser group uses 3 warmups and 15 measurements. Before-change samples are retained from that round's first paired measurement, and after-change samples were re-measured on the final build. The table shows median/P95 in ms. Input is driven by an independent textarea fixture to compare the Worker-to-React preview path; CM6 and deep preview get separate real-browser functional verification.
43
43
 
44
44
  | Dynamic scenario | Worker compile, before → after | Input to preview frame opportunity, before → after | Median response size, before → after |
45
45
  | --- | --- | --- | --- |
@@ -55,7 +55,7 @@ Node in-process Worker-handler comparisons also use 3 warmups and 15 measurement
55
55
  | 500-row dynamic table, equal-length edit | 111/202 → 86/106 |
56
56
  | 500-row dynamic table, shift edit | 115/230 → 110/185 |
57
57
 
58
- This batch's Node shift list regressed; a separate new-process comparison gave 324/508 → 124/255 ms. Both batches show clear jitter, so all raw results are kept and this round computes no unified speedup ratio. The browser table uses final-build measurements.
58
+ This batch's Node shift list regressed; a separate new-process comparison gave 324/508 → 124/255 ms. Both batches show clear jitter, so all raw results are kept and that round computes no unified speedup ratio. The browser table uses final-build measurements.
59
59
 
60
60
  Deep Node comparisons use independent processes, 1 warmup and 3 measurements, through the public `compileLocal()` path. The component limit remains 100 levels and the Markdown limit 1000 levels; over-limit rows record rejection time.
61
61
 
@@ -79,9 +79,9 @@ A 1000-item dynamic list edited 500 times consecutively: post-GC heap growth ove
79
79
 
80
80
  The implementation references [Lezer's context and incremental reuse constraints](https://lezer.codemirror.net/docs/guide/) and [V8's iterative traversal approach](https://v8.dev/blog/json-stringify). Flat records reference [the object index table of @ungap/structured-clone](https://github.com/ungap/structured-clone/blob/main/esm/serialize.js); that implementation's visitor is still recursive, whereas this round implements iterative traversal for the compiler's ordinary data with no new dependency.
81
81
 
82
- This round's gates: 116 core test files with 1534 tests and 16 Demo files with 254 tests pass; type checking, production/standalone/declaration builds, Demo builds, public package checks and offline packed consumption pass; documentation links and `git diff --check` pass. The deep stress unit tests set a separate 30-second timeout, and performance statistics come from production-package scripts.
82
+ That round's gates: 116 core test files with 1534 tests and 16 Demo files with 254 tests pass; type checking, production/standalone/declaration builds, Demo builds, public package checks and offline packed consumption pass; documentation links and `git diff --check` pass. The deep stress unit tests set a separate 30-second timeout, and performance statistics come from production-package scripts.
83
83
 
84
- Reproduce the targeted tests:
84
+ Reproduce the targeted tests (the commands below belong to that round; the CM6 fixture used by `--preview` moved to the editor repository):
85
85
 
86
86
  ```powershell
87
87
  npm run build
@@ -98,58 +98,58 @@ node scripts/benchmark-editing-memory.mjs
98
98
 
99
99
  Per-sample results and failure reproductions are kept in `artifacts/dynamic-depth/`. The old-package snapshot is a local artifact; re-running the comparison requires saving an identical baseline production package first.
100
100
 
101
- ### Full compilation and extreme input (4a8f1ea, 45 scenarios)
101
+ ### Full compilation and extreme input (8b0ccdc, 45 scenarios)
102
102
 
103
103
  Calls the public compileLocal; timing includes final result construction and excludes input generation, checking and GC. The node budget defaults to 10000; scenarios marked raised use 250000. Character counts are UTF-16 code units. Budget rejections are listed separately as expected outcomes, and all scenarios should exit normally.
104
104
 
105
105
 
106
106
  | Scenario ID | Characters | Result / nodes | First ms | Steady-state median / P95 ms | First-call peak RSS MiB |
107
107
  | --- | --- | --- | --- | --- | --- |
108
- | plain-10000 | 10000 | success / 2 | 4.32 | 0.10 / 0.72 | 63.94 |
109
- | plain-100000 | 100000 | success / 2 | 7.64 | 0.52 / 1.10 | 63.98 |
110
- | plain-500000 | 500000 | success / 2 | 10.21 | 2.43 / 3.12 | 63.95 |
111
- | plain-1000000 | 1000000 | success / 2 | 12.26 | 5.15 / 8.02 | 64.05 |
112
- | plain-1000001 | 1000001 | local.budget.document | 1.13 | 0.02 / 0.05 | 63.98 |
113
- | article-10 | 1598 | success / 161 | 45.67 | 6.94 / 16.27 | 65.85 |
114
- | article-100 | 15550 | success / 1601 | 139.84 | 37.77 / 62.57 | 82.30 |
115
- | article-600 | 94050 | success / 9601 | 479.75 | 301.98 / 369.22 | 138.63 |
116
- | article-2000 | 315852 | local.budget.nodes | 889.29 | 781.91 / 864.21 | 175.77 |
117
- | article-2000-raised | 315852 | success / 32001 | 1180.89 | 1105.17 / 1300.44 | 194.27 |
118
- | controls-1000 | 68779 | success / 1000 | 224.98 | 136.66 / 160.26 | 113.53 |
119
- | controls-5000 | 352779 | success / 5000 | 826.41 | 622.27 / 791.14 | 201.92 |
120
- | controls-10000 | 707779 | success / 10000 | 1392.64 | 1647.63 / 2294.73 | 330.71 |
121
- | controls-10001 | 707852 | local.budget.nodes | 170.43 | 120.53 / 131.25 | 108.06 |
122
- | controls-12000 | 853779 | local.budget.nodes | 190.92 | 141.34 / 155.13 | 112.27 |
123
- | controls-10000-raised | 707779 | success / 10000 | 1398.86 | 1414.88 / 1677.35 | 330.30 |
124
- | controls-12000-raised | 853779 | success / 12000 | 1596.10 | 1780.85 / 2404.79 | 373.24 |
125
- | shared-controls-5000 | 270000 | success / 5000 | 698.38 | 544.15 / 602.56 | 204.18 |
126
- | conflicting-controls-5000 | 329999 | local.initial.duplicate-peers | 658.93 | 537.97 / 731.30 | 195.88 |
127
- | expressions-1000 | 21960 | success / 4001 | 309.11 | 155.26 / 180.70 | 120.70 |
128
- | expressions-5000 | 113960 | local.budget.nodes | 872.52 | 683.96 / 750.02 | 199.67 |
129
- | expressions-5000-raised | 113960 | success / 20001 | 1026.15 | 864.84 / 979.29 | 213.87 |
130
- | paragraphs-1000 | 6000 | success / 2000 | 22.82 | 8.46 / 14.96 | 66.13 |
131
- | paragraphs-5000 | 30000 | success / 10000 | 74.83 | 53.12 / 65.57 | 83.64 |
132
- | paragraphs-10000 | 60000 | local.budget.nodes | 9.50 | 1.64 / 2.45 | 64.39 |
133
- | paragraphs-20000 | 120000 | local.budget.nodes | 10.95 | 2.21 / 3.88 | 64.65 |
134
- | paragraphs-100000 | 600000 | local.budget.nodes | 18.03 | 8.11 / 12.06 | 66.54 |
135
- | paragraphs-100000-raised | 600000 | success / 200000 | 1889.73 | 1791.24 / 1971.32 | 300.19 |
136
- | formatted-paragraphs-5000 | 285000 | local.budget.nodes | 614.75 | 510.08 / 655.62 | 172.16 |
137
- | formatted-paragraphs-5000-raised | 285000 | success / 40000 | 890.59 | 739.60 / 882.25 | 191.44 |
138
- | containers-50 | 956 | success / 52 | 122.90 | 34.50 / 40.75 | 76.79 |
139
- | containers-100 | 1906 | success / 102 | 229.97 | 112.17 / 126.17 | 79.36 |
140
- | containers-101 | 1925 | local.tag.unclosed.pair, local.budget.nesting | 221.91 | 107.99 / 114.28 | 79.77 |
141
- | containers-1000 | 19006 | local.tag.unclosed.pair, local.budget.nesting | 2316.23 | 2345.12 / 3270.82 | 135.50 |
142
- | unclosed-1000 | 9004 | local.tag.unclosed.pair, local.budget.nesting | 1170.57 | 1156.87 / 1294.90 | 138.63 |
143
- | markdown-depth-100 | 204 | success / 102 | 17.64 | 2.62 / 4.26 | 63.98 |
144
- | markdown-depth-500 | 1004 | success / 502 | 34.16 | 6.71 / 13.08 | 66.80 |
145
- | markdown-depth-1000 | 2004 | success / 1002 | 60.56 | 16.72 / 27.48 | 77.02 |
146
- | markdown-depth-1500 | 3004 | local.budget.markdown-depth | 20.03 | 1.84 / 5.85 | 63.91 |
147
- | markdown-depth-2000 | 4004 | local.budget.markdown-depth | 18.98 | 1.82 / 3.34 | 65.48 |
148
- | markdown-depth-5000 | 10004 | local.budget.markdown-depth | 37.84 | 3.45 / 6.32 | 71.81 |
149
- | math-1000 | 16000 | success / 2000 | 349.64 | 181.27 / 291.72 | 112.90 |
150
- | table-1000 | 28910 | success / 5008 | 445.32 | 267.54 / 341.15 | 136.33 |
151
- | computed-chain-1000 | 45839 | success / 3 | 226.52 | 120.62 / 148.63 | 115.39 |
152
- | computed-chain-5000 | 237839 | success / 3 | 803.20 | 663.79 / 871.36 | 201.66 |
108
+ | plain-10000 | 10000 | success / 2 | 12.14 | 0.17 / 0.83 | 67.89 |
109
+ | plain-100000 | 100000 | success / 2 | 18.77 | 0.62 / 1.32 | 69.16 |
110
+ | plain-500000 | 500000 | success / 2 | 22.23 | 3.73 / 6.79 | 70.13 |
111
+ | plain-1000000 | 1000000 | success / 2 | 21.02 | 5.36 / 6.59 | 71.16 |
112
+ | plain-1000001 | 1000001 | local.budget.document | 9.21 | 0.05 / 0.21 | 69.45 |
113
+ | article-10 | 1598 | success / 161 | 61.92 | 6.33 / 11.67 | 73.51 |
114
+ | article-100 | 15550 | success / 1601 | 125.82 | 28.62 / 42.80 | 83.66 |
115
+ | article-600 | 94050 | success / 9601 | 450.76 | 339.55 / 406.06 | 125.39 |
116
+ | article-2000 | 315852 | local.budget.nodes | 738.17 | 518.00 / 829.54 | 160.56 |
117
+ | article-2000-raised | 315852 | success / 32001 | 1147.08 | 838.71 / 1054.24 | 177.64 |
118
+ | controls-1000 | 68779 | success / 1000 | 264.14 | 136.45 / 156.61 | 119.97 |
119
+ | controls-5000 | 352779 | success / 5000 | 921.47 | 831.04 / 905.37 | 206.09 |
120
+ | controls-10000 | 707779 | success / 10000 | 1745.31 | 1477.54 / 1791.96 | 342.32 |
121
+ | controls-10001 | 707852 | local.budget.nodes | 197.23 | 149.45 / 173.64 | 115.06 |
122
+ | controls-12000 | 853779 | local.budget.nodes | 259.77 | 179.85 / 215.00 | 119.33 |
123
+ | controls-10000-raised | 707779 | success / 10000 | 1652.14 | 1502.26 / 1986.24 | 338.87 |
124
+ | controls-12000-raised | 853779 | success / 12000 | 2195.87 | 1897.38 / 2221.06 | 391.69 |
125
+ | shared-controls-5000 | 270000 | success / 5000 | 845.98 | 629.16 / 813.83 | 215.34 |
126
+ | conflicting-controls-5000 | 329999 | local.initial.duplicate-peers | 856.53 | 684.66 / 872.58 | 198.07 |
127
+ | expressions-1000 | 21960 | success / 4001 | 259.66 | 84.07 / 131.19 | 106.48 |
128
+ | expressions-5000 | 113960 | local.budget.nodes | 435.23 | 194.96 / 225.71 | 146.44 |
129
+ | expressions-5000-raised | 113960 | success / 20001 | 712.13 | 502.46 / 696.91 | 157.50 |
130
+ | paragraphs-1000 | 6000 | success / 2000 | 35.12 | 10.68 / 18.20 | 78.88 |
131
+ | paragraphs-5000 | 30000 | success / 10000 | 101.65 | 54.03 / 60.55 | 92.74 |
132
+ | paragraphs-10000 | 60000 | local.budget.nodes | 18.27 | 1.79 / 7.25 | 72.91 |
133
+ | paragraphs-20000 | 120000 | local.budget.nodes | 17.83 | 2.33 / 4.25 | 72.98 |
134
+ | paragraphs-100000 | 600000 | local.budget.nodes | 23.95 | 6.92 / 11.95 | 79.15 |
135
+ | paragraphs-100000-raised | 600000 | success / 200000 | 1839.39 | 2007.70 / 2364.49 | 291.53 |
136
+ | formatted-paragraphs-5000 | 285000 | local.budget.nodes | 609.26 | 507.34 / 594.79 | 176.37 |
137
+ | formatted-paragraphs-5000-raised | 285000 | success / 40000 | 1012.14 | 828.23 / 981.74 | 206.25 |
138
+ | containers-50 | 956 | success / 52 | 75.31 | 16.42 / 19.85 | 79.57 |
139
+ | containers-100 | 1906 | success / 102 | 106.02 | 33.63 / 40.69 | 82.22 |
140
+ | containers-101 | 1925 | local.budget.nesting | 57.15 | 11.00 / 20.12 | 77.44 |
141
+ | containers-1000 | 19006 | local.budget.nesting | 213.41 | 110.43 / 134.72 | 101.30 |
142
+ | unclosed-1000 | 9004 | local.budget.nesting | 130.10 | 63.69 / 81.02 | 82.53 |
143
+ | markdown-depth-100 | 204 | success / 102 | 35.97 | 3.03 / 5.84 | 70.54 |
144
+ | markdown-depth-500 | 1004 | success / 502 | 53.59 | 8.77 / 14.23 | 78.91 |
145
+ | markdown-depth-1000 | 2004 | success / 1002 | 80.30 | 19.77 / 31.34 | 86.86 |
146
+ | markdown-depth-1500 | 3004 | local.budget.markdown-depth | 25.95 | 1.89 / 5.13 | 72.34 |
147
+ | markdown-depth-2000 | 4004 | local.budget.markdown-depth | 30.74 | 2.49 / 4.45 | 73.88 |
148
+ | markdown-depth-5000 | 10004 | local.budget.markdown-depth | 49.46 | 4.97 / 7.78 | 82.66 |
149
+ | math-1000 | 16000 | success / 2000 | 406.93 | 194.00 / 218.00 | 121.20 |
150
+ | table-1000 | 28910 | success / 5008 | 196.79 | 60.20 / 80.78 | 96.14 |
151
+ | computed-chain-1000 | 45839 | success / 3 | 296.67 | 137.38 / 168.25 | 118.54 |
152
+ | computed-chain-5000 | 237839 | success / 3 | 902.24 | 625.79 / 751.97 | 208.96 |
153
153
 
154
154
 
155
155
  ### Long-document editing across block types (24 scenarios)
@@ -158,30 +158,30 @@ The same target block sits among 1000 ordinary paragraphs; version numbers have
158
158
 
159
159
  | Target block | Single-block full ms | Long-document full ms | Session median / P95 ms | Final mode | Reused blocks |
160
160
  | --- | --- | --- | --- | --- | --- |
161
- | Ordinary paragraph, about 512 characters | 0.09 | 7.88 | 13.86 / 20.54 | incremental | 1000 |
162
- | Ordinary paragraph, about 8 Ki characters | 0.38 | 7.53 | 13.07 / 15.19 | incremental | 1000 |
163
- | Formatted paragraph, about 512 characters | 2.65 | 29.61 | 14.93 / 18.71 | incremental | 1000 |
164
- | Level-2 heading, about 80 characters | 0.69 | 27.80 | 12.83 / 17.66 | incremental | 1000 |
165
- | Unordered list, 20 items | 0.89 | 12.28 | 13.70 / 18.27 | incremental | 1000 |
166
- | Unordered list, 100 items | 3.15 | 14.58 | 17.37 / 21.99 | incremental | 1000 |
167
- | Ordered list, 20 items | 0.89 | 11.76 | 13.45 / 15.81 | incremental | 1000 |
168
- | Markdown table, 20×4 | 1.64 | 11.39 | 14.08 / 17.66 | incremental | 1000 |
169
- | Markdown table, 100×4 | 4.66 | 15.97 | 22.32 / 27.41 | incremental | 1000 |
170
- | Markdown table, 200×4 | 8.97 | 20.18 | 30.39 / 44.42 | incremental | 1000 |
171
- | Blockquote, 10 paragraphs | 1.85 | 29.70 | 13.66 / 17.28 | incremental | 1000 |
172
- | Fenced code, 60 lines | 0.85 | 30.35 | 14.39 / 18.90 | incremental | 1000 |
173
- | Fenced code, 300 lines | 2.78 | 29.67 | 13.83 / 18.49 | incremental | 1000 |
174
- | Indented code, 60 lines | 1.21 | 66.05 | 14.42 / 22.71 | incremental | 1000 |
175
- | Display formula, 20 items | 3.42 | 51.20 | 15.18 / 22.10 | incremental | 1000 |
176
- | Display formula, 80 items | 6.65 | 54.16 | 18.03 / 23.94 | incremental | 1000 |
177
- | Expression paragraph, 20 interpolations | 2.92 | 48.98 | 14.66 / 22.29 | incremental | 1000 |
178
- | Slider initial value change | 0.90 | 49.82 | 53.89 / 84.76 | full | 0 |
179
- | Panel interior, 50 paragraphs | 3.22 | 48.92 | 47.80 / 58.14 | full | 0 |
180
- | ReactiveMD table, 20×4 | 3.05 | 49.69 | 55.93 / 70.05 | full | 0 |
181
- | Bar chart data, 20 rows | 2.23 | 47.79 | 53.12 / 90.45 | full | 0 |
182
- | Plot formula, 1 curve | 1.62 | 49.35 | 54.03 / 74.35 | full | 0 |
183
- | Diagram node body, 20 nodes | 6.24 | 49.13 | 53.47 / 89.76 | full | 0 |
184
- | Fenced delimiter change, 60 lines of code | 1.27 | 28.70 | 39.01 / 49.05 | full | 0 |
161
+ | Ordinary paragraph, about 512 characters | 0.22 | 11.05 | 15.21 / 22.42 | incremental | 1000 |
162
+ | Ordinary paragraph, about 8 Ki characters | 0.24 | 9.90 | 15.94 / 21.03 | incremental | 1000 |
163
+ | Formatted paragraph, about 512 characters | 3.36 | 40.03 | 20.27 / 23.92 | incremental | 1000 |
164
+ | Level-2 heading, about 80 characters | 0.83 | 37.30 | 16.83 / 20.78 | incremental | 1000 |
165
+ | Unordered list, 20 items | 1.93 | 23.12 | 14.36 / 22.48 | incremental | 1000 |
166
+ | Unordered list, 100 items | 7.19 | 25.18 | 20.96 / 29.45 | incremental | 1000 |
167
+ | Ordered list, 20 items | 1.66 | 22.02 | 15.24 / 20.90 | incremental | 1000 |
168
+ | Markdown table, 20×4 | 2.43 | 22.43 | 15.41 / 20.44 | incremental | 1000 |
169
+ | Markdown table, 100×4 | 5.72 | 32.02 | 26.48 / 33.35 | incremental | 1000 |
170
+ | Markdown table, 200×4 | 15.04 | 37.64 | 33.75 / 63.07 | incremental | 1000 |
171
+ | Blockquote, 10 paragraphs | 2.12 | 33.93 | 14.74 / 22.42 | incremental | 1000 |
172
+ | Fenced code, 60 lines | 1.64 | 39.44 | 17.34 / 21.56 | incremental | 1000 |
173
+ | Fenced code, 300 lines | 3.47 | 41.13 | 18.93 / 23.55 | incremental | 1000 |
174
+ | Indented code, 60 lines | 1.58 | 93.63 | 20.17 / 41.95 | incremental | 1000 |
175
+ | Display formula, 20 items | 3.53 | 72.09 | 19.64 / 35.87 | incremental | 1000 |
176
+ | Display formula, 80 items | 8.07 | 72.58 | 24.87 / 42.12 | incremental | 1000 |
177
+ | Expression paragraph, 20 interpolations | 2.51 | 68.18 | 18.68 / 32.43 | incremental | 1000 |
178
+ | Slider initial value change | 1.73 | 79.63 | 91.34 / 144.33 | full | 0 |
179
+ | Panel interior, 50 paragraphs | 6.03 | 79.72 | 74.44 / 83.49 | full | 0 |
180
+ | ReactiveMD table, 20×4 | 4.87 | 77.61 | 96.41 / 127.31 | full | 0 |
181
+ | Bar chart data, 20 rows | 4.29 | 67.02 | 81.17 / 105.50 | full | 0 |
182
+ | Plot formula, 1 curve | 3.64 | 71.66 | 84.50 / 112.96 | full | 0 |
183
+ | Diagram node body, 20 nodes | 9.06 | 66.52 | 70.31 / 107.23 | full | 0 |
184
+ | Fenced delimiter change, 60 lines of code | 1.49 | 39.16 | 54.30 / 68.21 | full | 0 |
185
185
 
186
186
 
187
187
  ### Fast/general mixed parsing and long lines
@@ -190,52 +190,73 @@ Covers simple blocks interleaved with links and escapes, native and component ta
190
190
 
191
191
  | Scenario | Median / P95 ms | Process peak RSS MiB |
192
192
  | --- | --- | --- |
193
- | ordinary-1000 | 10.63 / 14.03 | 101.95 |
194
- | mixed-80 | 32.65 / 42.82 | 164.93 |
195
- | table-1000 | 45.24 / 56.52 | 174.41 |
196
- | component-table-500 | 35.50 / 44.30 | 152.65 |
197
- | component-dynamic-table-500 | 100.19 / 129.04 | 191.91 |
198
- | controls-5000 | 490.59 / 591.58 | 533.31 |
199
- | indented-line-16000 | 5.85 / 7.94 | 73.05 |
200
- | indented-line-64000 | 6.60 / 17.72 | 74.18 |
201
- | indented-line-256000 | 25.82 / 29.74 | 71.91 |
202
- | over-budget-list-50000 | 54.54 / 55.79 | 212.41 |
193
+ | ordinary-1000 | 12.81 / 19.20 | 108.34 |
194
+ | mixed-80 | 53.82 / 67.16 | 167.36 |
195
+ | table-1000 | 84.78 / 97.55 | 178.88 |
196
+ | component-table-500 | 41.29 / 64.94 | 163.93 |
197
+ | component-dynamic-table-500 | 35.70 / 40.62 | 119.51 |
198
+ | controls-5000 | 671.72 / 1066.59 | 548.40 |
199
+ | indented-line-16000 | 10.64 / 12.23 | 93.00 |
200
+ | indented-line-64000 | 21.97 / 31.13 | 91.98 |
201
+ | indented-line-256000 | 75.08 / 85.49 | 89.41 |
202
+ | over-budget-list-50000 | 349.35 / 352.36 | 532.13 |
203
203
 
204
204
 
205
205
  Cache recovery of an independent body after 200 consecutive component-context changes:
206
206
 
207
207
  | Context edit median / P95 ms | Index rebuilds during consecutive changes | Restore body ms | Index builds during restore |
208
208
  | --- | --- | --- | --- |
209
- | 42.15 / 82.14 | 0 | 121.50 | 1 |
209
+ | 52.80 / 93.53 | 0 | 124.58 | 1 |
210
210
 
211
211
 
212
212
  Full compilation scale for pure blocks:
213
213
 
214
214
  | Scenario | Median / P95 ms | Peak RSS MiB |
215
215
  | --- | --- | --- |
216
- | bullet-100 | 3.12 / 5.09 | 77.60 |
217
- | bullet-500 | 16.45 / 21.92 | 115.81 |
218
- | bullet-1500 | 55.05 / 75.23 | 174.01 |
219
- | table-100 | 4.33 / 10.23 | 80.65 |
220
- | table-500 | 21.36 / 28.69 | 118.31 |
221
- | table-1000 | 54.18 / 71.87 | 185.18 |
222
- | component-table-100 | 7.05 / 14.13 | 99.87 |
223
- | component-table-500 | 33.44 / 46.50 | 136.01 |
216
+ | bullet-100 | 8.27 / 14.95 | 84.77 |
217
+ | bullet-500 | 26.40 / 31.44 | 133.75 |
218
+ | bullet-1500 | 90.62 / 124.96 | 191.04 |
219
+ | table-100 | 8.71 / 14.94 | 100.35 |
220
+ | table-500 | 39.94 / 49.41 | 142.10 |
221
+ | table-1000 | 89.38 / 133.26 | 195.25 |
222
+ | component-table-100 | 12.16 / 20.38 | 103.84 |
223
+ | component-table-500 | 46.24 / 61.33 | 145.66 |
224
224
 
225
225
 
226
226
  Full compilation versus session editing in the same build, including full snapshot publishing:
227
227
 
228
228
  | Document | Full median ms | Session median ms | First session ms | Compiled / reused blocks |
229
229
  | --- | --- | --- | --- | --- |
230
- | paragraphs-5000 | 44.59 | 64.33 | 220.07 | 1 / 4999 |
231
- | formatted-paragraphs-1000 | 119.28 | 51.92 | 296.79 | 1 / 999 |
232
- | article-600 | 282.14 | 62.05 | 546.19 | 1 / 1799 |
233
- | article-2000 | 908.57 | 223.06 | 1511.52 | 1 / 5999 |
230
+ | paragraphs-5000 | 70.04 | 81.39 | 365.93 | 1 / 4999 |
231
+ | formatted-paragraphs-1000 | 147.40 | 58.84 | 390.44 | 1 / 999 |
232
+ | article-600 | 213.85 | 74.87 | 609.83 | 1 / 1799 |
233
+ | article-2000 | 767.36 | 271.56 | 1196.28 | 1 / 5999 |
234
234
 
235
235
 
236
- ### This round's row reuse and patch cost A/B
236
+ ### Row reuse and patch cost (8b0ccdc)
237
237
 
238
- The baseline is the saved f7a7ab8 production package. One session per scenario, 3 warmups and 15 measurements. The production Worker handler runs inside Node; responses are applied only after structuredClone. Worker timing excludes cross-thread transfer; the clone column is local copy time. equal is a fixed-length middle edit, shift alternately adds and removes characters and shifts later ranges, and rewrite changes every row.
238
+ The current production package runs the production Worker handler inside Node, one session per scenario, 3 warmups and 15 measurements; responses are applied only after structuredClone. Worker timing excludes cross-thread transfer; the clone column is local copy time. equal is a fixed-length middle edit, shift alternately adds and removes characters and shifts later ranges, and rewrite changes every row.
239
+
240
+ | Scenario | Worker median ms | Compile median ms | Encode median ms | Clone median ms | Patch apply ms | Response B | Shared nodes |
241
+ | --- | --- | --- | --- | --- | --- | --- | --- |
242
+ | list-equal | 86.07 | 79.00 | 6.00 | 0.15 | 4.13 | 14900 | 5998 |
243
+ | list-shift | 116.62 | 110.00 | 5.00 | 0.49 | 5.71 | 38001 | 3002 |
244
+ | table-equal | 50.50 | 47.00 | 4.00 | 0.16 | 3.05 | 8565 | 3504 |
245
+ | table-shift | 68.20 | 59.00 | 9.00 | 0.45 | 3.45 | 20156 | 1759 |
246
+ | dynamic-list-equal | 167.81 | 157.00 | 10.00 | 0.27 | 6.39 | 15436 | 7997 |
247
+ | dynamic-list-shift | 204.73 | 197.00 | 10.00 | 0.69 | 7.92 | 38536 | 4003 |
248
+ | dynamic-table-equal | 60.61 | 57.00 | 4.00 | 0.19 | 2.68 | 8681 | 3505 |
249
+ | dynamic-table-shift | 66.12 | 63.00 | 3.00 | 0.36 | 3.01 | 20274 | 1760 |
250
+ | paragraphs-equal | 8.41 | 7.00 | 1.00 | 0.11 | 1.19 | 11184 | 1602 |
251
+ | list-rewrite | 127.97 | 104.00 | 28.00 | 21.97 | 0.00 | 906084 | 0 |
252
+
253
+ Equal-length single-row edits mainly reduce transfer, main-thread patch application and React node replacement. Shift edits must update later ranges and still clone objects; a whole-block rewrite encodes first and then decides to send a full result, so Worker encoding cost may rise. Real-browser end-to-end latency is in the next section; Node handler data cannot replace it.
254
+
255
+ The 2026-10-29 round ran the same comparison against a saved f7a7ab8 production package. That baseline is not retained in this repository, so it was not re-run this round; its results remain in `benchmarks/performance-overview-2026-10-29.json`.
256
+
257
+ ### 2026-10-29 row reuse and patch cost A/B (historical, not re-run)
258
+
259
+ The baseline is that round's saved f7a7ab8 production package. One session per scenario, 3 warmups and 15 measurements. The production Worker handler runs inside Node; responses are applied only after structuredClone. Worker timing excludes cross-thread transfer; the clone column is local copy time. equal is a fixed-length middle edit, shift alternately adds and removes characters and shifts later ranges, and rewrite changes every row.
239
260
 
240
261
  | Scenario | Worker median ms: before → after | Clone median ms: before → after | Patch apply ms: before → after | Response B: before → after | Shared nodes: before → after |
241
262
  | --- | --- | --- | --- | --- | --- |
@@ -251,7 +272,7 @@ The baseline is the saved f7a7ab8 production package. One session per scenario,
251
272
  | list-rewrite | 73.39 → 97.10 | 18.77 → 21.86 | 28.70 → 0.00 | 1090461 → 905965 | 4 → 0 |
252
273
 
253
274
 
254
- Equal-length single-row edits mainly reduce transfer, main-thread patch application and React node replacement. Shift edits must update later ranges and still clone objects; a whole-block rewrite encodes first and then decides to send a full result, so Worker encoding cost may rise. The real-browser measurements below cannot be replaced by Node handler data for end-to-end latency.
275
+ In that round, equal-length single-row edits mainly reduced transfer, main-thread patch application and React node replacement. Shift edits must update later ranges and still clone objects; a whole-block rewrite encodes first and then decides to send a full result, so Worker encoding cost may rise. The real-browser measurements in the previous section cannot be replaced by Node handler data for end-to-end latency.
255
276
 
256
277
  ### Real Worker and end-to-end preview
257
278
 
@@ -259,21 +280,21 @@ An independent module Worker per input, 2 warmups and 5 measurements. The table
259
280
 
260
281
  | Scenario | Worker median / P95 ms | Round-trip median / P95 ms | Result |
261
282
  | --- | --- | --- | --- |
262
- | article-100 | 33.20 / 38.60 | 35.90 / 40.80 | success |
263
- | article-600 | 178.30 / 214.70 | 193.20 / 228.00 | success |
264
- | controls-1000 | 66.90 / 88.80 | 70.30 / 92.90 | success |
265
- | controls-5000 | 371.90 / 433.70 | 392.90 / 453.30 | success |
266
- | controls-10000 | 717.40 / 758.60 | 763.40 / 795.60 | success |
267
- | paragraphs-5000 | 33.50 / 41.00 | 45.70 / 53.30 | success |
268
- | plain-1000000 | 4.30 / 7.90 | 7.90 / 11.30 | success |
269
- | markdown-depth-500 | no successful samples | no successful samples | transfer-error |
270
- | markdown-depth-1000 | 10.80 / 21.80 | 11.00 / 23.00 | local.parse |
271
- | markdown-depth-2000 | 2.70 / 3.80 | 3.00 / 4.10 | local.budget |
283
+ | article-100 | 28.90 / 39.40 | 31.40 / 43.20 | success |
284
+ | article-600 | 140.80 / 165.50 | 159.50 / 182.30 | success |
285
+ | controls-1000 | 100.80 / 117.50 | 107.30 / 122.60 | success |
286
+ | controls-5000 | 383.70 / 613.30 | 415.60 / 638.60 | success |
287
+ | controls-10000 | 804.30 / 871.20 | 870.50 / 925.80 | success |
288
+ | paragraphs-5000 | 36.40 / 45.80 | 52.40 / 61.70 | success |
289
+ | plain-1000000 | 9.00 / 12.50 | 12.80 / 17.80 | success |
290
+ | markdown-depth-500 | no successful samples | no successful samples | RangeError |
291
+ | markdown-depth-1000 | no successful samples | no successful samples | RangeError |
292
+ | markdown-depth-2000 | 4.10 / 5.30 | 4.40 / 5.50 | local.budget.markdown-depth |
272
293
 
273
294
 
274
- Deep Markdown still has separate limits in the browser: the compilation result of the 500-level case may not be postMessage-able; 1000 levels returns a parse failure in that browser, and 2000 levels is rejected by the depth budget. A subsequent ordinary request on the same Worker recovers. A successful Node compilation does not mean the result graph can be cloned and rendered in the browser.
295
+ Deep Markdown still has separate limits in the browser: the compilation results of the 500- and 1000-level cases trigger a RangeError (call-stack overflow) through native postMessage; 2000 levels is rejected by the depth budget and returns normally. A subsequent ordinary request on the same Worker recovers. A successful Node compilation does not mean the result graph can be cloned and rendered directly in the browser; the public scheduler negotiates `flat-v1` flat results.
275
296
 
276
- The following uses the same controlled input fixture, a real module Worker and the production React profiling preview, comparing f7a7ab8 with this round. 3 warmups and 15 measurements per scenario, with version order alternating for regular scenarios; the dynamic table was re-measured after a pause in before/after order, so time-of-day drift exists. The fixture isolates compilation and preview; real CM6 typing is measured separately in the next section.
297
+ **2026-10-29 historical record:** the following comparison uses the same controlled input fixture, a real module Worker and the production React profiling preview, comparing f7a7ab8 with that round's build. 3 warmups and 15 measurements per scenario, with version order alternating for regular scenarios; the dynamic table was re-measured after a pause in before/after order, so time-of-day drift exists. It requires the saved baseline package and was not re-run this round. The fixture isolates compilation and preview; real CM6 typing is measured separately in the next section.
277
298
 
278
299
  | Scenario | Worker median / P95 ms: before → after | Input-to-frame opportunity ms: before → after | Response median B: before → after |
279
300
  | --- | --- | --- | --- |
@@ -286,9 +307,9 @@ The following uses the same controlled input fixture, a real module Worker and t
286
307
  | Dynamic table | 124.00 / 220.00 → 115.00 / 377.00 | 233.40 / 398.40 → 170.70 / 450.50 | 608116 → 8685 |
287
308
 
288
309
 
289
- ### Current CM6 full editor and rendering phases
310
+ ### 2026-10-29 CM6 full editor and rendering phases (historical, not re-run)
290
311
 
291
- Uses the current single CM6 editor, the shared author-analysis Worker, the real LocalPreview, a stateful session and native input in the middle. React phases are instrumented only in the benchmark build; the production library does not contain these hooks. Later positions shift as editing grows.
312
+ That round used the then-current single CM6 editor, the shared author-analysis Worker, the real LocalPreview, a stateful session and native input in the middle. The CM6 editor and its benchmark fixtures have moved to the ReactiveMD-Editor repository. React phases are instrumented only in the benchmark build; the production library does not contain these hooks. Later positions shift as editing grows.
292
313
 
293
314
  | Scenario | Input-to-frame opportunity median / P95 ms | Input-to-dispatch ms | Worker round-trip ms | Receive and apply ms | Editor render ms | Preview render ms |
294
315
  | --- | --- | --- | --- | --- | --- | --- |
@@ -327,20 +348,20 @@ This group is a Vite development fixture, 5 warmups and 15 measurements; it sepa
327
348
 
328
349
  | Phase | Median ms | P95 ms |
329
350
  | --- | --- | --- |
330
- | compile:interactive-article | 31.1000 | 38.8000 |
331
- | update:runtime-set | 0.0004 | 0.0016 |
332
- | plot:3-curves-200-samples | 0.2800 | 0.3750 |
333
- | render:final | 6.7000 | 29.3000 |
334
- | interaction:update-plot-render | 8.8000 | 17.4000 |
335
- | locality:100-sections | 11.8000 | 43.2000 |
336
- | locality:1-section | 4.1000 | 16.3000 |
337
- | locality:unreferenced | 10.5000 | 16.2000 |
338
- | visuals:10-tables | 10.6000 | 29.5000 |
339
- | visuals:1-table | 4.7000 | 6.6000 |
340
- | visuals:unreferenced | 2.1000 | 2.7000 |
341
- | charts:4-charts | 13.4000 | 19.3000 |
342
- | charts:1-chart | 7.1000 | 8.8000 |
343
- | charts:unreferenced | 1.9000 | 4.0000 |
351
+ | compile:interactive-article | 22.1000 | 27.6000 |
352
+ | update:runtime-set | 0.0008 | 0.0021 |
353
+ | plot:3-curves-200-samples | 0.2850 | 0.4600 |
354
+ | render:final | 7.5000 | 22.7000 |
355
+ | interaction:update-plot-render | 11.2000 | 14.2000 |
356
+ | locality:100-sections | 8.3000 | 25.8000 |
357
+ | locality:1-section | 4.3000 | 5.9000 |
358
+ | locality:unreferenced | 9.7000 | 11.9000 |
359
+ | visuals:10-tables | 9.2000 | 20.6000 |
360
+ | visuals:1-table | 4.4000 | 6.9000 |
361
+ | visuals:unreferenced | 3.7000 | 5.6000 |
362
+ | charts:4-charts | 8.6000 | 13.7000 |
363
+ | charts:1-chart | 5.1000 | 6.6000 |
364
+ | charts:unreferenced | 3.2000 | 4.2000 |
344
365
 
345
366
 
346
367
  ### Sustained-edit memory, budgets and protocol recovery
@@ -349,16 +370,16 @@ Node uses independent child processes and performs an explicit GC before each sn
349
370
 
350
371
  | Scenario | Count / scale | Retained heap after GC MiB | After releasing session MiB | Steady-state heap growth MiB |
351
372
  | --- | --- | --- | --- | --- |
352
- | longEdit | 500 | 22.242 | 15.466 | 0.156 |
353
- | longRows | 500 | 20.658 | 11.61 | 0.13 |
354
- | cacheEviction | 260 | 20.75 | 15.235 | not applicable |
355
- | rapidCancel | 120 | 19.12 | 13.256 | not applicable |
356
- | longText | 1000000 | 12.182 | 12.17 | not applicable |
357
- | manyComponents | 5000 controls / 352779 characters | 29.485 | 13.189 | not applicable |
358
- | deepContainers | 1000/1001 levels | not applicable | 11.338 | not applicable |
373
+ | longEdit | 500 | 25.615 | 17.316 | 0.302 |
374
+ | longRows | 500 | 24.663 | 13.721 | 0.175 |
375
+ | cacheEviction | 260 | 25.710 | 19.179 | n/a |
376
+ | rapidCancel | 120 | 24.262 | 15.328 | n/a |
377
+ | longText | 1000000 | 13.756 | 13.741 | n/a |
378
+ | manyComponents | 5000 controls / 352779 characters | 29.973 | 15.056 | n/a |
379
+ | deepContainers | 1000/1001 levels | n/a | 13.029 | n/a |
359
380
 
360
381
 
361
- CM6 main-thread heap, with the probe array cleared and GC through CDP while host compilation state stays mounted; Worker heap not measured:
382
+ **2026-10-29 historical record:** CM6 main-thread heap, with the probe array cleared and GC through CDP while host compilation state stays mounted; Worker heap not measured. This data depends on the split editor repository and was not re-measured this round:
362
383
 
363
384
  | Checkpoint | Heap after GC MiB | Source DOM |
364
385
  | --- | --- | --- |
@@ -367,36 +388,35 @@ CM6 main-thread heap, with the probe array cleared and GC through CDP while host
367
388
  | editor-unmounted-host-retained | 13.31 | 0 |
368
389
 
369
390
 
370
- Protocol recovery re-measurement passed the old Worker, out-of-order responses, a stale baseline, corrupted patches, option switching and cancelled preparation tasks. The stale baseline and corrupted patch each recover with one full request; cost selection returns a full success result directly rather than retrying after a failure. The public LocalReactiveDocument commits the correct document after a pausable, interruptible React transition and preserves input values. Huge static and dynamic lists and tables each received a real-browser single-row edit; the preview DOM of unchanged rows kept the same object and the input value stayed 13.
391
+ The protocol re-measurement passed the old Worker, out-of-order responses, a stale baseline, corrupted patches, option switching, cancelled preparation and consecutive concurrent commits; page errors were empty. The stale baseline and corrupted patch each recover with one full request; cost selection returns a full success result directly rather than retrying after a failure. The public LocalReactiveDocument commits the correct document after a pausable, interruptible React transition and preserves input values; both the interrupted and final commits kept the value 13. The 2026-10-29 round additionally edited one row in huge static and dynamic lists and tables in a real browser; the preview DOM of unchanged rows kept the same object and the input value stayed 13.
371
392
 
372
393
  ### Current limits and where to optimize next
373
394
 
374
- - In the public snapshot path for 5000 ordinary short paragraphs, a session edit takes 64.33 ms, slower than full compilation at 44.59 ms. Sharing and full snapshot publishing still cost the whole tree; the public snapshot and the Worker's private sharing path should be optimized separately.
375
- - The previous round's full matrix showed tail regressions for dynamic tables and lists. This round's browser comparison improved median and P95, but Node shift lists still regress in batches; continue tracking how allocation and GC affect the tail.
395
+ - In the public snapshot path for 5000 ordinary short paragraphs, a session edit takes 81.39 ms, slower than full compilation at 70.04 ms. Sharing and full snapshot publishing still cost the whole tree; the public snapshot and the Worker's private sharing path should be optimized separately.
396
+ - The 2026-10-29 full matrix showed tail regressions for dynamic tables and lists, and that round's browser comparison improved median and P95. In this re-measurement, list shift edits are still slower than equal-length edits; continue tracking how allocation and GC affect the tail.
376
397
  - Simple dynamic interpolation rows are on the fast path. Dynamic blocks containing links, escapes or complex inline formatting can still fall back; the next step can study local updates to row-fragment parsing and semantic summaries, continuing to validate with full-result diffs.
377
- - Shift edits in large lists and tables relocate many ranges; patch encoding and cost estimation for whole-block rewrites can still increase Worker time, so reduce duplicate traversal before encoding first.
398
+ - Shift edits in large lists and tables relocate many ranges; patch encoding and cost estimation for whole-block rewrites can still increase Worker time, so reduce duplicate traversal before encoding first. In this re-measurement, rejecting a 50000-item over-budget list took about 349 ms, so the traversal before rejection is worth analyzing.
378
399
  - CM6 still synchronizes with the host through a full source string, and author analysis also produces a whole result; long single lines, very long strings and large dependency graphs still involve linear work.
379
400
  - The preview is suited to further row-level and block-level subscriptions and to viewport-deferred visualization. Before truly unmounting offscreen preview, state, anchors, native find, cross-block selection and printing must be preserved.
380
401
  - Default depth budgets remain Markdown 1000 levels and components 100 levels. Deep results transfer after negotiating `flat-v1` through the public scheduler; custom Workers that hand deep `compileLocal()` results directly to native `postMessage()` are still limited by the browser call stack. Deep results currently send a complete flat snapshot each time; subtree patches can be studied later. Physical Chinese IME, mobile keyboards and assistive technology need manual acceptance on target devices.
381
402
 
382
403
  ### Reproduce and verify
383
404
 
384
- Full serial matrix:
405
+ Full serial matrix (stages runnable in this repository):
385
406
 
386
407
  ```powershell
387
408
  npm run build
388
- npm run build --workspace=@reactive-md/demo
389
- node scripts/benchmark-performance-overview.mjs
409
+ node scripts/benchmark-performance-overview.mjs --skip=render,cm6
390
410
  # Add a comparison when a saved old production package exists:
391
- node scripts/benchmark-performance-overview.mjs --baseline=artifacts/next-editing/before-library
411
+ node scripts/benchmark-performance-overview.mjs --skip=render,cm6 --baseline=artifacts/next-editing/before-library
392
412
  # Re-measure by phase; do not run other performance processes at the same time:
393
- node scripts/benchmark-performance-overview.mjs --only=render,cm6
413
+ node scripts/benchmark-performance-overview.mjs --only=compiler,blocks,parser,fast,incremental,memory,rows,worker,protocol,stages
394
414
  ```
395
415
 
396
- The full matrix covers compilation stress, 24 block types, mixed parsing, context recovery, snapshot copying, row reuse, Node and browser memory, Worker transfer, protocol recovery, native CM6 input, React phases, table/chart dependency locality and plot sampling. The default CM6 memory check is 2000 inputs.
416
+ This round covers compilation stress, 24 block types, mixed parsing, context recovery, snapshot copying, row reuse, Node and browser memory, Worker transfer, protocol recovery, runtime stages, table/chart dependency locality and plot sampling. Native CM6 input, React rendering phases and the f7a7ab8 baseline comparison depend on the split demo/editor repositories or a baseline package that was not retained, so they were not included.
397
417
 
398
- Functional gates passed by the full `4a8f1ea` matrix: production build, type checking, standalone and declaration generation, public package boundaries and offline packed consumption; 1504 tests in 112 core test files and 254 tests in 16 Demo files; 8 browser checks of the unified editor, plus CM6, real workbench, author tools, images, diagnostics, document save/export and long-document preview regressions.
418
+ Functional gates passed by the 2026-10-29 `4a8f1ea` matrix: production build, type checking, standalone and declaration generation, public package boundaries and offline packed consumption; 1504 tests in 112 core test files and 254 tests in 16 Demo files; 8 browser checks of the unified editor, plus CM6, real workbench, author tools, images, diagnostics, document save/export and long-document preview regressions.
399
419
 
400
- The rendering semantic diff completed 350 steps of state, selection, reset, language and Tab operations with an identical final state; the optimized and baseline normalized markup are both 45806 characters and byte-identical, and page and console errors are empty.
420
+ The 2026-10-29 rendering semantic diff completed 350 steps of state, selection, reset, language and Tab operations with an identical final state; the optimized and baseline normalized markup are both 45806 characters and byte-identical, and page and console errors are empty. This round ran `npm run build` (type checking, production/standalone/declaration builds) successfully but did not re-run the full test gates.
401
421
 
402
- The full matrix's per-sample JSON, event records and CDP traces are in `artifacts/performance-overview/`, `artifacts/render-pipeline/` and `artifacts/cm6/`, and this round's targeted results are in `artifacts/dynamic-depth/`; all are locally ignored artifacts. The committable condensed summaries are `benchmarks/performance-overview-2026-10-29.json` and `benchmarks/dynamic-depth-2026-10-29.json`, each retaining its measurement basis and code provenance. The original historical reports can be read from the corresponding Git commits.
422
+ This round's per-sample JSON is in `artifacts/performance-overview-run2/`; it is a locally ignored artifact. The committable condensed summary is `benchmarks/performance-overview-2026-11-20.json`, which retains the measurement basis, code provenance and package hashes. The 2026-10-29 round's per-sample artifacts are in `artifacts/performance-overview/`, `artifacts/render-pipeline/` and `artifacts/cm6/`, with summaries in `benchmarks/performance-overview-2026-10-29.json` and `benchmarks/dynamic-depth-2026-10-29.json`. The original historical reports can be read from the corresponding Git commits.
@@ -336,7 +336,7 @@ $$ (x^2 + y^2)^2 = 2a^2(x^2 - y^2) $$
336
336
 
337
337
  `if` 的 `when` 必须是完整的布尔插值,写成 `when="{{ people >= 5 }}"`。条件为真时显示内部内容,为假时隐藏。
338
338
 
339
- `alert` 是一块提示,`tone` 可取 `info`、`success` 或 `warning`,默认 `info`。`title` 可选,正文继续使用 Markdown。
339
+ `alert` 是一块提示,`tone` 可取 `info`、`success`、`warning` 或 `error`,默认 `info`;`error` 使用红色危险色调。`title` 可选,正文继续使用 Markdown。
340
340
 
341
341
  ### accordion 与 disclosure
342
342
 
@@ -496,7 +496,7 @@ $$ (x^2 + y^2)^2 = 2a^2(x^2 - y^2) $$
496
496
 
497
497
  | 标签 | 形态 | 主要属性 | 用途 |
498
498
  | --- | --- | --- | --- |
499
- | `alert` | 容器 | `title`、`tone=info/success/warning` | 提示块 |
499
+ | `alert` | 容器 | `title`、`tone=info/success/warning/error` | 提示块 |
500
500
  | `badge` | 行内 | `tone=neutral/success/warning`、`color` | 状态标签;`tone` 可静态或动态 |
501
501
  | `tooltip` | 行内 | `text` 必填 | 行内说明;悬停或键盘聚焦时显示 |
502
502
 
@@ -336,7 +336,7 @@ At 5 or more people, you can request group pricing.
336
336
 
337
337
  `if` requires a complete boolean interpolation in `when`, such as `when="{{ people >= 5 }}"`. It shows its content when the condition is true and hides it when false.
338
338
 
339
- `alert` is a callout block. `tone` accepts `info`, `success` or `warning` and defaults to `info`. `title` is optional, and the body continues to use Markdown.
339
+ `alert` is a callout block. `tone` accepts `info`, `success`, `warning` or `error` and defaults to `info`; `error` uses the red danger palette. `title` is optional, and the body continues to use Markdown.
340
340
 
341
341
  ### accordion and disclosure
342
342
 
@@ -496,7 +496,7 @@ Most interactive controls support `label`, optional `bind`, optional `initial` a
496
496
 
497
497
  | Tag | Form | Key attributes | Purpose |
498
498
  | --- | --- | --- | --- |
499
- | `alert` | Container | `title`, `tone=info/success/warning` | Callout block |
499
+ | `alert` | Container | `title`, `tone=info/success/warning/error` | Callout block |
500
500
  | `badge` | Inline | `tone=neutral/success/warning`, `color` | Status label; `tone` can be static or dynamic |
501
501
  | `tooltip` | Inline | `text` required | Inline explanation; shown on hover or keyboard focus |
502
502
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  **中文** · [English](author-tools-en.md)
4
4
 
5
- 安装 `reactive-md@0.6.0` 即可使用 CLI 和不依赖 React 的 `reactive-md/authoring` 入口。从本仓库开发时,先构建语言包:
5
+ 安装 `reactive-md@0.9.1` 即可使用 CLI 和不依赖 React 的 `reactive-md/authoring` 入口。从本仓库开发时,先构建语言包:
6
6
 
7
7
  ```sh
8
8
  npm ci
@@ -61,4 +61,4 @@ const formatted = formatLocalSource(renamed.source, compileOptions);
61
61
 
62
62
  `reactive-md/authoring` 还导出 `LOCAL_COMPONENTS`、`getLocalComponent`、`getNativeComponentCatalog`、`renderNativeSnippet`、`insertTemplate` 及其类型,无需 React 或 CSS。将预览使用的 `LocalCompileOptions` 传给这些函数的编译配置参数;省略时保持原有默认值。配置包括宿主 schema、HTML 模式、资源预算和 `markdownBreaks`。
63
63
 
64
- 入口与样式接入方式见 [0.5.3 发布说明](../releases/release-0.5.3-ch.md)。
64
+ 作者工具入口与样式表接入见[公开接口参考](../reference/public-api-ch.md)的作者工具与样式表两节。