reactive-md 0.9.1 → 0.9.2
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.
- package/CHANGELOG-ch.md +333 -319
- package/CHANGELOG.md +334 -320
- package/CONTRIBUTING-ch.md +22 -22
- package/CONTRIBUTING.md +22 -22
- package/README-ch.md +431 -431
- package/README-en.md +431 -431
- package/README.md +429 -429
- package/SECURITY-ch.md +83 -83
- package/SECURITY.md +83 -83
- package/bin/reactive-md.mjs +39 -39
- package/cli/args.mjs +263 -263
- package/cli/assets.mjs +395 -395
- package/cli/build.mjs +445 -445
- package/cli/check.mjs +444 -444
- package/cli/document.mjs +130 -130
- package/cli/errors.mjs +61 -61
- package/cli/fs-utils.mjs +133 -133
- package/cli/glob.mjs +203 -203
- package/cli/help.mjs +323 -323
- package/cli/init.mjs +1577 -1577
- package/cli/lint.mjs +177 -177
- package/cli/main.mjs +65 -65
- package/cli/migrate.mjs +368 -368
- package/cli/package-loader.mjs +41 -41
- package/cli/package.mjs +211 -211
- package/dist-library/{LocalDocumentView-sthUP0ct.js → LocalDocumentView-BuqgJZEY.js} +11 -11
- package/dist-library/{LocalDocumentViewCore-GiWV3bey.js → LocalDocumentViewCore-DXE0I0Qc.js} +210 -209
- package/dist-library/{LocalReactiveDocumentCore-ZjQSGyHE.js → LocalReactiveDocumentCore-CWBe4Mm5.js} +8 -8
- package/dist-library/{authoring-Dsune4Hy.js → authoring-Ci_KzJ0q.js} +53 -53
- package/dist-library/{compile-wUv8KEge.js → compile-Dx6Uw3D9.js} +11 -11
- package/dist-library/{compiler-core-As_m-MNm.js → compiler-core-DDDdvuLy.js} +883 -818
- package/dist-library/compiler-dxLPB9Ym.js +86 -0
- package/dist-library/{component-state-C52ZFJGl.js → component-state-BRwvTV0d.js} +15 -14
- package/dist-library/component-state-CwKX_SN5.js +763 -0
- package/dist-library/{config-BadfhjdP.js → config-DXLvctiZ.js} +68 -66
- package/dist-library/config-validation-D3D7Dy2J.js +586 -0
- package/dist-library/{controls-CcT6n7k_.js → controls-DoZyLCrV.js} +3 -3
- package/dist-library/{coordinate-CWS9p5q_.js → coordinate-B1VFK9fd.js} +2 -2
- package/dist-library/{data-table-Bgccxd7h.js → data-table-8-3F15Jf.js} +3 -3
- package/dist-library/{default-components-BwQf0oP-.js → default-components-s21NevON.js} +29 -28
- package/dist-library/{display-B-VhqVND.js → display-B_uutKkN.js} +1 -1
- package/dist-library/{config-validation-F47AcE6o.js → document-theme-C8J6UyNO.js} +193 -731
- package/dist-library/{export-BqVmTXm8.js → export-CIAIPBov.js} +35 -34
- package/dist-library/{gallery-CY6mTx8i.js → gallery-Dv1rOvL0.js} +1 -1
- package/dist-library/{html-CNT4KD-2.js → html-Cr4CBwAH.js} +42 -41
- package/dist-library/identity-BUx0Q_-d.js +40 -0
- package/dist-library/{incremental-Dv0FSp_U.js → incremental-9nx92u9c.js} +12 -10
- package/dist-library/{layout-C0YlEPGr.js → layout-BBB2VF0S.js} +1 -1
- package/dist-library/{mount-preset-KxvtKgJb.js → mount-preset-DMZ5wd3t.js} +3 -3
- package/dist-library/observability-4KqXhIEU.js +421 -0
- package/dist-library/observability-core-Bcu7vpnl.js +24 -0
- package/dist-library/{options-1aDLK7JY.js → options-BBp9IcHm.js} +4 -4
- package/dist-library/{package-core-WFK1RhAZ.js → package-core-K5xesGqy.js} +30 -29
- package/dist-library/{parser-standard-Yuf3A_VI.js → parser-standard-CBA1-hdG.js} +352 -352
- package/dist-library/{plugin-packs-B1XPWcFs.js → plugin-packs-Bh1HhLym.js} +3 -2
- package/dist-library/preset-core-DeZPA8IE.js +1298 -0
- package/dist-library/react-0DCh-Mar.js +7 -0
- package/dist-library/reactive-md-authoring.js +19 -19
- package/dist-library/reactive-md-build.js +48 -10
- package/dist-library/reactive-md-compiler-standard.js +6 -6
- package/dist-library/reactive-md-compiler.js +3 -3
- package/dist-library/reactive-md-default-packs.js +3 -2
- package/dist-library/reactive-md-default-preset.js +3 -2
- package/dist-library/reactive-md-export.js +4 -4
- package/dist-library/reactive-md-minimal-preset.js +2 -2
- package/dist-library/reactive-md-minimal-react-preset.js +3 -3
- package/dist-library/reactive-md-observability.js +4 -0
- package/dist-library/reactive-md-plugin-chart.js +3 -3
- package/dist-library/reactive-md-plugin-data.js +5 -5
- package/dist-library/reactive-md-plugin-diagram.js +4 -4
- package/dist-library/reactive-md-plugin-forms.js +4 -4
- package/dist-library/reactive-md-plugin-gallery.js +3 -3
- package/dist-library/reactive-md-plugin-navigation.js +3 -3
- package/dist-library/reactive-md-plugin-network.js +4 -3
- package/dist-library/reactive-md-plugin-plot.js +4 -4
- package/dist-library/reactive-md-print.css +304 -304
- package/dist-library/reactive-md-react-minimal.js +4 -4
- package/dist-library/reactive-md-react-server.js +6 -6
- package/dist-library/reactive-md-react-unstyled.js +11 -11
- package/dist-library/reactive-md-react.js +11 -11
- package/dist-library/reactive-md-runtime-browser.js +2 -1
- package/dist-library/reactive-md-runtime.js +4 -3
- package/dist-library/reactive-md-sdk.js +8 -7
- package/dist-library/reactive-md-standalone-configured.js +2 -2
- package/dist-library/reactive-md-standalone-host.js +2 -2
- package/dist-library/reactive-md-testing-browser.js +2 -2
- package/dist-library/reactive-md-testing-react.js +6 -6
- package/dist-library/reactive-md-testing.js +5 -5
- package/dist-library/reactive-md.js +556 -367
- package/dist-library/{registry-B9NGct4d.js → registry-D6OGkOcX.js} +3 -3
- package/dist-library/{registry-core-Bbad9Bm2.js → registry-core-C9xOunaw.js} +1 -1
- package/dist-library/{resources-D2GDQS0p.js → resources-B0x_w3s9.js} +71 -46
- package/dist-library/{runtime-B2fxeveq.js → runtime-BDnnimPA.js} +17 -16
- package/dist-library/{runtime-kcA7bG7G.js → runtime-BpQdZmFI.js} +311 -305
- package/dist-library/{schema-BufhKUSM.js → schema-BryM_VRW.js} +14 -14
- package/dist-library/{sdk-core-BoJT1SIt.js → sdk-core-ChslheKs.js} +33 -32
- package/dist-library/{session-core-nmJHuR9c.js → session-core-dxQCJBNa.js} +15 -14
- package/dist-library/{shareable-DpbE-59H.js → shareable-B8xMoGEa.js} +179 -176
- package/dist-library/types/build/diagnostics.d.ts +1 -1
- package/dist-library/types/local/index.d.ts +6 -0
- package/dist-library/types/local/observability-codes.d.ts +2 -0
- package/dist-library/types/local/observability-core.d.ts +25 -0
- package/dist-library/types/local/observability-messages.d.ts +6 -0
- package/dist-library/types/local/observability.d.ts +43 -0
- package/dist-library/types/local/parsing/parser-internals.d.ts +2 -1
- package/dist-library/types/local/transport/worker.d.ts +52 -1
- package/dist-library/types/local/types.d.ts +8 -0
- package/dist-library/types/observability.d.ts +7 -0
- package/dist-library/{types-BeNtPqdY.js → types-Ib5kSScP.js} +1 -1
- package/dist-library/types-daDo2c_w.js +3 -0
- package/dist-library/{validation-BEBA_HvS.js → validation-B3RI0xOk.js} +251 -249
- package/dist-library/version-DAxuGOG2.js +147 -0
- package/dist-library/{visual-frame-CyV1FXzs.js → visual-frame-_rcd5HUv.js} +1 -1
- package/dist-library/{visuals-BZbZYA7w.js → visuals-DkDhNdEZ.js} +17 -17
- package/dist-standalone/reactive-md-standalone.js +118 -118
- package/docs/README-ch.md +101 -95
- package/docs/README.md +101 -95
- package/docs/compatibility/api-stability-ch.md +25 -0
- package/docs/compatibility/api-stability-en.md +25 -0
- package/docs/compatibility/compatibility-ch.md +146 -129
- package/docs/compatibility/compatibility-en.md +146 -129
- package/docs/compatibility/compatibility-manifest.schema.json +161 -0
- package/docs/compatibility/deprecation-ch.md +21 -0
- package/docs/compatibility/deprecation-en.md +21 -0
- package/docs/compatibility/source-versioning-ch.md +162 -162
- package/docs/compatibility/source-versioning-en.md +162 -162
- package/docs/compatibility/support-matrix-ch.md +108 -0
- package/docs/compatibility/support-matrix-en.md +108 -0
- package/docs/development/component-development-ch.md +66 -66
- package/docs/development/component-development-en.md +66 -66
- package/docs/development/component-development-reference-ch.md +253 -253
- package/docs/development/component-development-reference-en.md +238 -238
- package/docs/development/component-protocol-ch.md +748 -748
- package/docs/development/component-protocol-en.md +750 -750
- package/docs/development/extension-tutorial-ch.md +308 -308
- package/docs/development/extension-tutorial-en.md +308 -308
- package/docs/development/performance-overview-ch.md +422 -422
- package/docs/development/performance-overview-en.md +422 -422
- package/docs/guides/local-guide-ch.md +532 -532
- package/docs/guides/local-guide-en.md +532 -532
- package/docs/integration/author-tools-ch.md +64 -64
- package/docs/integration/author-tools-en.md +64 -64
- package/docs/integration/compiler-ch.md +49 -49
- package/docs/integration/compiler-en.md +36 -36
- package/docs/integration/directory-discovery-en.md +1 -1
- package/docs/integration/editor-ch.md +295 -295
- package/docs/integration/editor-en.md +303 -303
- package/docs/integration/extension-sdk-ch.md +394 -394
- package/docs/integration/extension-sdk-en.md +379 -379
- package/docs/integration/local-integration-ch.md +646 -646
- package/docs/integration/local-integration-en.md +662 -662
- package/docs/integration/shareable-export-ch.md +307 -307
- package/docs/integration/shareable-export-en.md +309 -309
- package/docs/reference/diagnostics-counting-ch.md +104 -104
- package/docs/reference/diagnostics-counting-en.md +104 -104
- package/docs/reference/html-compatibility-ch.md +93 -93
- package/docs/reference/html-compatibility-en.md +95 -95
- package/docs/reference/local-interaction-syntax-ch.md +724 -724
- package/docs/reference/local-interaction-syntax-en.md +722 -722
- package/docs/reference/public-api-ch.md +33 -4
- package/docs/reference/public-api-en.md +33 -4
- package/docs/reference/theme-protocol-ch.md +198 -198
- package/docs/reference/theme-protocol-en.md +217 -217
- package/docs/releases/release-0.4.0-ch.md +91 -91
- package/docs/releases/release-0.4.0-en.md +91 -91
- package/docs/releases/release-0.4.1-ch.md +25 -25
- package/docs/releases/release-0.4.1-en.md +25 -25
- package/docs/releases/release-0.5.0-ch.md +43 -43
- package/docs/releases/release-0.5.0-en.md +43 -43
- package/docs/releases/release-0.5.1-ch.md +41 -41
- package/docs/releases/release-0.5.1-en.md +41 -41
- package/docs/releases/release-0.5.2-ch.md +37 -37
- package/docs/releases/release-0.5.2-en.md +37 -37
- package/docs/releases/release-0.5.3-ch.md +26 -26
- package/docs/releases/release-0.5.3-en.md +26 -26
- package/docs/releases/release-0.6.0-ch.md +59 -59
- package/docs/releases/release-0.6.0-en.md +59 -59
- package/docs/releases/release-0.6.1-ch.md +29 -29
- package/docs/releases/release-0.6.1-en.md +29 -29
- package/docs/releases/release-0.7.0-ch.md +86 -86
- package/docs/releases/release-0.7.0-en.md +86 -86
- package/docs/releases/release-0.9.2-ch.md +33 -0
- package/docs/releases/release-0.9.2-en.md +33 -0
- package/examples/component-package/README-ch.md +101 -101
- package/examples/component-package/README.md +133 -133
- package/examples/conformance/README-ch.md +55 -55
- package/examples/conformance/README.md +55 -55
- package/examples/conformance/component-protocol-1.json +482 -482
- package/examples/conformance/component-protocol-1.schema.json +76 -76
- package/examples/conformance/local-draft-1.json +50 -50
- package/examples/conformance/local-draft-2.json +212 -212
- package/examples/game-2048-package/LICENSE +21 -21
- package/examples/game-2048-package/NOTICES.md +11 -11
- package/examples/game-2048-package/README-ch.md +91 -91
- package/examples/game-2048-package/README.md +98 -98
- package/examples/game-2048-package/package.json +35 -35
- package/examples/game-2048-package/sample/document.reactive.md +17 -17
- package/examples/game-2048-package/scripts/build-export.mjs +44 -44
- package/examples/game-2048-package/scripts/build.mjs +130 -130
- package/examples/game-2048-package/scripts/verify.mjs +180 -180
- package/examples/game-2048-package/src/component.css +161 -161
- package/examples/game-2048-package/src/components.tsx +326 -326
- package/examples/game-2048-package/src/game-engine.ts +228 -228
- package/examples/game-2048-package/src/harness.tsx +34 -34
- package/examples/game-2048-package/src/manifest.ts +85 -85
- package/examples/game-2048-package/src/node-entry.ts +30 -30
- package/examples/game-2048-package/src/sample.ts +4 -4
- package/examples/game-2048-package/tsconfig.json +15 -15
- package/examples/integration/README-ch.md +82 -82
- package/examples/integration/README.md +82 -82
- package/examples/integration/core/index.mjs +32 -32
- package/examples/integration/extension-sdk/README-ch.md +24 -24
- package/examples/integration/extension-sdk/README.md +24 -24
- package/examples/integration/worker/index.html +19 -19
- package/examples/integration/worker/main.js +61 -61
- package/examples/integration/worker/package.json +13 -13
- package/examples/integration/worker/worker.js +3 -3
- package/examples/local/README-ch.md +76 -76
- package/examples/local/README.md +76 -76
- package/examples/local/charts.reactive.md +73 -73
- package/examples/local/recipes/invoice-zh.reactive.md +36 -36
- package/examples/local/recipes/invoice.reactive.md +36 -36
- package/examples/local/recipes/workshop-zh.reactive.md +33 -33
- package/examples/local/recipes/workshop.reactive.md +33 -33
- package/examples/local/showcase/README-ch.md +22 -22
- package/examples/local/showcase/README.md +31 -31
- package/examples/local/showcase/explore.reactive.md +102 -102
- package/examples/local/showcase/flow.reactive.md +86 -86
- package/examples/local/showcase/forms.reactive.md +126 -126
- package/examples/local/showcase/functions.reactive.md +119 -119
- package/examples/local/showcase/layout.reactive.md +100 -100
- package/examples/local/showcase/statistics.reactive.md +108 -108
- package/examples/local/showcase/tasks.reactive.md +89 -89
- package/examples/local/showcase/zh/explore.reactive.md +102 -102
- package/examples/local/showcase/zh/flow.reactive.md +86 -86
- package/examples/local/showcase/zh/forms.reactive.md +126 -126
- package/examples/local/showcase/zh/functions.reactive.md +119 -119
- package/examples/local/showcase/zh/layout.reactive.md +100 -100
- package/examples/local/showcase/zh/statistics.reactive.md +108 -108
- package/examples/local/showcase/zh/tasks.reactive.md +89 -89
- package/examples/minimal-extension/README-ch.md +78 -78
- package/examples/minimal-extension/README.md +78 -78
- package/examples/minimal-extension/index.html +15 -15
- package/examples/minimal-extension/package.json +26 -26
- package/examples/minimal-extension/sample/document.reactive.md +10 -10
- package/examples/minimal-extension/scripts/build.mjs +32 -32
- package/examples/minimal-extension/scripts/export.mjs +72 -72
- package/examples/minimal-extension/scripts/test-node.mjs +75 -75
- package/examples/minimal-extension/src/extension.tsx +90 -90
- package/examples/minimal-extension/src/preview.tsx +12 -12
- package/examples/minimal-extension/src/source.ts +4 -4
- package/examples/minimal-extension/tsconfig.json +14 -14
- package/examples/sci-fi-theme/README-ch.md +133 -133
- package/examples/sci-fi-theme/README.md +148 -148
- package/examples/sci-fi-theme/demo/acceptance.reactive.md +454 -454
- package/examples/sci-fi-theme/demo/demo.css +638 -638
- package/examples/sci-fi-theme/demo/document.reactive.md +206 -206
- package/examples/sci-fi-theme/demo/index.html +13 -13
- package/examples/sci-fi-theme/demo/main.tsx +215 -215
- package/examples/sci-fi-theme/docs/design-system-ch.md +245 -245
- package/examples/sci-fi-theme/docs/design-system.md +474 -474
- package/examples/sci-fi-theme/package.json +28 -28
- package/examples/sci-fi-theme/scripts/screenshot.mjs +98 -98
- package/examples/sci-fi-theme/src/components.css +2370 -2370
- package/examples/sci-fi-theme/src/index.ts +6 -6
- package/examples/sci-fi-theme/src/notch.css +142 -142
- package/examples/sci-fi-theme/src/sci-fi.css +7 -7
- package/examples/sci-fi-theme/src/theme.ts +39 -39
- package/examples/sci-fi-theme/tsconfig.json +20 -20
- package/examples/sci-fi-theme/vite.config.ts +24 -24
- package/examples/tetris-package/LICENSE +21 -21
- package/examples/tetris-package/NOTICES.md +11 -11
- package/examples/tetris-package/README-ch.md +91 -91
- package/examples/tetris-package/README.md +95 -95
- package/examples/tetris-package/package.json +35 -35
- package/examples/tetris-package/sample/document.reactive.md +16 -16
- package/examples/tetris-package/scripts/build-export.mjs +44 -44
- package/examples/tetris-package/scripts/build.mjs +130 -130
- package/examples/tetris-package/scripts/verify.mjs +173 -173
- package/examples/tetris-package/src/component.css +145 -145
- package/examples/tetris-package/src/components.tsx +334 -334
- package/examples/tetris-package/src/harness.tsx +34 -34
- package/examples/tetris-package/src/manifests.ts +93 -93
- package/examples/tetris-package/src/node-entry.ts +16 -16
- package/examples/tetris-package/src/sample.ts +4 -4
- package/examples/tetris-package/src/tetris-engine.ts +325 -325
- package/examples/tetris-package/tsconfig.json +15 -15
- package/package.json +7 -1
- package/dist-library/compiler-eOfcinZs.js +0 -62
- package/dist-library/component-state-BoLCGee4.js +0 -801
- package/dist-library/preset-core-CKc5YXSM.js +0 -1443
- package/dist-library/react-D5iGiUdL.js +0 -7
package/docs/README-ch.md
CHANGED
|
@@ -1,95 +1,101 @@
|
|
|
1
|
-
# 文档导航
|
|
2
|
-
|
|
3
|
-
[English](README.md) · **中文**
|
|
4
|
-
|
|
5
|
-
文档按用途分类。每个主题都有中文版本(`-ch.md`);英文导航见 [README.md](README.md)。
|
|
6
|
-
|
|
7
|
-
| 目录 | 内容 |
|
|
8
|
-
| --- | --- |
|
|
9
|
-
| [guides/](guides/) | 入门指南 |
|
|
10
|
-
| [reference/](reference/) | 公开接口、语法、诊断与主题参考 |
|
|
11
|
-
| [integration/](integration/) | 宿主集成、编辑器、作者工具与导出 |
|
|
12
|
-
| [compatibility/](compatibility/) | 版本兼容、迁移与源码版本标记 |
|
|
13
|
-
| [development/](development/) | 组件开发、协议与性能 |
|
|
14
|
-
| [releases/](releases/) | 各版本发布记录 |
|
|
15
|
-
| [plan/](plan/) | 本地规划区;不随包发布 |
|
|
16
|
-
|
|
17
|
-
## 从这里开始
|
|
18
|
-
|
|
19
|
-
- **编写文档**:先读[入门指南](guides/local-guide-ch.md),再查语法参考;可运行的示例见 [examples/local](../examples/local/README-ch.md)。
|
|
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.
|
|
22
|
-
|
|
23
|
-
## 入门
|
|
24
|
-
|
|
25
|
-
| 主题 | 中文 |
|
|
26
|
-
| --- | --- |
|
|
27
|
-
| 新用户入门 | [中文](guides/local-guide-ch.md) |
|
|
28
|
-
|
|
29
|
-
## 参考
|
|
30
|
-
|
|
31
|
-
| 主题 | 中文 |
|
|
32
|
-
| --- | --- |
|
|
33
|
-
| 公开接口参考 | [中文](reference/public-api-ch.md) |
|
|
34
|
-
| 本地交互语法 | [中文](reference/local-interaction-syntax-ch.md) |
|
|
35
|
-
| 诊断与计数 | [中文](reference/diagnostics-counting-ch.md) |
|
|
36
|
-
| HTML 兼容 | [中文](reference/html-compatibility-ch.md) |
|
|
37
|
-
| 主题协议 | [中文](reference/theme-protocol-ch.md) |
|
|
38
|
-
|
|
39
|
-
## 接入
|
|
40
|
-
|
|
41
|
-
| 主题 | 中文 |
|
|
42
|
-
| --- | --- |
|
|
43
|
-
| 本地模式集成 | [中文](integration/local-integration-ch.md) |
|
|
44
|
-
| 目录接入 | [中文](integration/directory-discovery-ch.md) |
|
|
45
|
-
| 单次编译入口 | [中文](integration/compiler-ch.md) |
|
|
46
|
-
| 扩展 SDK 预览 | [中文](integration/extension-sdk-ch.md) |
|
|
47
|
-
| React 源码编辑器 | [中文](integration/editor-ch.md) |
|
|
48
|
-
| 作者工具 | [中文](integration/author-tools-ch.md) |
|
|
49
|
-
| 分享与静态导出 | [中文](integration/shareable-export-ch.md) |
|
|
50
|
-
| 宿主网络通道 | [中文](integration/network-host-ch.md) |
|
|
51
|
-
|
|
52
|
-
## 兼容与迁移
|
|
53
|
-
|
|
54
|
-
| 主题 | 中文 |
|
|
55
|
-
| --- | --- |
|
|
56
|
-
| 版本与兼容性 | [中文](compatibility/compatibility-ch.md) |
|
|
57
|
-
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
|
62
|
-
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
|
67
|
-
|
|
|
68
|
-
|
|
|
69
|
-
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
|
74
|
-
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
|
79
|
-
|
|
|
80
|
-
| 0.
|
|
81
|
-
| 0.
|
|
82
|
-
| 0.
|
|
83
|
-
| 0.
|
|
84
|
-
| 0.
|
|
85
|
-
| 0.
|
|
86
|
-
| 0.
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
1
|
+
# 文档导航
|
|
2
|
+
|
|
3
|
+
[English](README.md) · **中文**
|
|
4
|
+
|
|
5
|
+
文档按用途分类。每个主题都有中文版本(`-ch.md`);英文导航见 [README.md](README.md)。
|
|
6
|
+
|
|
7
|
+
| 目录 | 内容 |
|
|
8
|
+
| --- | --- |
|
|
9
|
+
| [guides/](guides/) | 入门指南 |
|
|
10
|
+
| [reference/](reference/) | 公开接口、语法、诊断与主题参考 |
|
|
11
|
+
| [integration/](integration/) | 宿主集成、编辑器、作者工具与导出 |
|
|
12
|
+
| [compatibility/](compatibility/) | 版本兼容、迁移与源码版本标记 |
|
|
13
|
+
| [development/](development/) | 组件开发、协议与性能 |
|
|
14
|
+
| [releases/](releases/) | 各版本发布记录 |
|
|
15
|
+
| [plan/](plan/) | 本地规划区;不随包发布 |
|
|
16
|
+
|
|
17
|
+
## 从这里开始
|
|
18
|
+
|
|
19
|
+
- **编写文档**:先读[入门指南](guides/local-guide-ch.md),再查语法参考;可运行的示例见 [examples/local](../examples/local/README-ch.md)。
|
|
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.2。
|
|
22
|
+
|
|
23
|
+
## 入门
|
|
24
|
+
|
|
25
|
+
| 主题 | 中文 |
|
|
26
|
+
| --- | --- |
|
|
27
|
+
| 新用户入门 | [中文](guides/local-guide-ch.md) |
|
|
28
|
+
|
|
29
|
+
## 参考
|
|
30
|
+
|
|
31
|
+
| 主题 | 中文 |
|
|
32
|
+
| --- | --- |
|
|
33
|
+
| 公开接口参考 | [中文](reference/public-api-ch.md) |
|
|
34
|
+
| 本地交互语法 | [中文](reference/local-interaction-syntax-ch.md) |
|
|
35
|
+
| 诊断与计数 | [中文](reference/diagnostics-counting-ch.md) |
|
|
36
|
+
| HTML 兼容 | [中文](reference/html-compatibility-ch.md) |
|
|
37
|
+
| 主题协议 | [中文](reference/theme-protocol-ch.md) |
|
|
38
|
+
|
|
39
|
+
## 接入
|
|
40
|
+
|
|
41
|
+
| 主题 | 中文 |
|
|
42
|
+
| --- | --- |
|
|
43
|
+
| 本地模式集成 | [中文](integration/local-integration-ch.md) |
|
|
44
|
+
| 目录接入 | [中文](integration/directory-discovery-ch.md) |
|
|
45
|
+
| 单次编译入口 | [中文](integration/compiler-ch.md) |
|
|
46
|
+
| 扩展 SDK 预览 | [中文](integration/extension-sdk-ch.md) |
|
|
47
|
+
| React 源码编辑器 | [中文](integration/editor-ch.md) |
|
|
48
|
+
| 作者工具 | [中文](integration/author-tools-ch.md) |
|
|
49
|
+
| 分享与静态导出 | [中文](integration/shareable-export-ch.md) |
|
|
50
|
+
| 宿主网络通道 | [中文](integration/network-host-ch.md) |
|
|
51
|
+
|
|
52
|
+
## 兼容与迁移
|
|
53
|
+
|
|
54
|
+
| 主题 | 中文 |
|
|
55
|
+
| --- | --- |
|
|
56
|
+
| 版本与兼容性 | [中文](compatibility/compatibility-ch.md) |
|
|
57
|
+
| 支持矩阵 | [中文](compatibility/support-matrix-ch.md) |
|
|
58
|
+
| 稳定公共 API | [中文](compatibility/api-stability-ch.md) |
|
|
59
|
+
| 弃用与迁移政策 | [中文](compatibility/deprecation-ch.md) |
|
|
60
|
+
| 兼容性清单 | [JSON](https://github.com/yao1145/ReactiveMD/blob/main/docs/compatibility/compatibility-manifest.json) |
|
|
61
|
+
| 兼容性清单 schema | [JSON Schema](compatibility/compatibility-manifest.schema.json) |
|
|
62
|
+
| 源码版本标记 | [中文](compatibility/source-versioning-ch.md) |
|
|
63
|
+
|
|
64
|
+
## 开发维护
|
|
65
|
+
|
|
66
|
+
| 主题 | 中文 |
|
|
67
|
+
| --- | --- |
|
|
68
|
+
| 扩展作者教程(定义到离线导出) | [中文](development/extension-tutorial-ch.md) |
|
|
69
|
+
| 组件插件开发 | [中文](development/component-development-ch.md) |
|
|
70
|
+
| 组件插件开发契约 | [中文](development/component-development-reference-ch.md) |
|
|
71
|
+
| 组件协议 | [中文](development/component-protocol-ch.md) |
|
|
72
|
+
| 性能 | [优化历史与当前复测总览](development/performance-overview-ch.md) |
|
|
73
|
+
| 发布流程 | [中文](../CONTRIBUTING-ch.md#发布流程) |
|
|
74
|
+
| local 模块目录与归属 | [中文](development/local-module-layout-ch.md) |
|
|
75
|
+
|
|
76
|
+
## 发布记录
|
|
77
|
+
|
|
78
|
+
| 版本 | 中文 |
|
|
79
|
+
| --- | --- |
|
|
80
|
+
| 0.9.2 | [中文](releases/release-0.9.2-ch.md) |
|
|
81
|
+
| 0.9.1 | [中文](releases/release-0.9.1-ch.md) |
|
|
82
|
+
| 0.9.0 | [中文](releases/release-0.9.0-ch.md) |
|
|
83
|
+
| 0.8.0 | [中文](releases/release-0.8.0-ch.md) |
|
|
84
|
+
| 0.7.0 | [中文](releases/release-0.7.0-ch.md) |
|
|
85
|
+
| 0.6.1 | [中文](releases/release-0.6.1-ch.md) |
|
|
86
|
+
| 0.6.0 | [中文](releases/release-0.6.0-ch.md) |
|
|
87
|
+
| 0.5.3 | [中文](releases/release-0.5.3-ch.md) |
|
|
88
|
+
| 0.5.2 | [中文](releases/release-0.5.2-ch.md) |
|
|
89
|
+
| 0.5.1 | [中文](releases/release-0.5.1-ch.md) |
|
|
90
|
+
| 0.5.0 | [中文](releases/release-0.5.0-ch.md) |
|
|
91
|
+
| 0.4.1 | [中文](releases/release-0.4.1-ch.md) |
|
|
92
|
+
| 0.4.0 | [中文](releases/release-0.4.0-ch.md) |
|
|
93
|
+
|
|
94
|
+
## 相关资料
|
|
95
|
+
|
|
96
|
+
- 项目概览:[中文](../README-ch.md)
|
|
97
|
+
- 更新日志:[中文](../CHANGELOG-ch.md)
|
|
98
|
+
- 贡献指南:[中文](../CONTRIBUTING-ch.md)
|
|
99
|
+
- 一致性用例:[examples/conformance](../examples/conformance/README-ch.md)
|
|
100
|
+
|
|
101
|
+
新增文档时放入对应目录,在本页补充中文链接,并检查本地链接和标题锚点。
|
package/docs/README.md
CHANGED
|
@@ -1,95 +1,101 @@
|
|
|
1
|
-
# Documentation
|
|
2
|
-
|
|
3
|
-
**English** · [中文](README-ch.md)
|
|
4
|
-
|
|
5
|
-
Documents are grouped by purpose. Each topic has an English version (`-en.md`); the Chinese navigation is [README-ch.md](README-ch.md).
|
|
6
|
-
|
|
7
|
-
| Directory | Contents |
|
|
8
|
-
| --- | --- |
|
|
9
|
-
| [guides/](guides/) | Getting started |
|
|
10
|
-
| [reference/](reference/) | Public API, syntax, diagnostics and themes |
|
|
11
|
-
| [integration/](integration/) | Integration, editor, author tools and export |
|
|
12
|
-
| [compatibility/](compatibility/) | Compatibility, migration and source versioning |
|
|
13
|
-
| [development/](development/) | Development, protocols and performance |
|
|
14
|
-
| [releases/](releases/) | Release notes |
|
|
15
|
-
| [plan/](plan/) | Local planning area; not published with the package |
|
|
16
|
-
|
|
17
|
-
## Start here
|
|
18
|
-
|
|
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
|
-
- **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.
|
|
22
|
-
|
|
23
|
-
## Guides
|
|
24
|
-
|
|
25
|
-
| Topic | English |
|
|
26
|
-
| --- | --- |
|
|
27
|
-
| Beginner guide | [English](guides/local-guide-en.md) |
|
|
28
|
-
|
|
29
|
-
## Reference
|
|
30
|
-
|
|
31
|
-
| Topic | English |
|
|
32
|
-
| --- | --- |
|
|
33
|
-
| Public API reference | [English](reference/public-api-en.md) |
|
|
34
|
-
| Local interaction syntax | [English](reference/local-interaction-syntax-en.md) |
|
|
35
|
-
| Diagnostics and counting | [English](reference/diagnostics-counting-en.md) |
|
|
36
|
-
| HTML compatibility | [English](reference/html-compatibility-en.md) |
|
|
37
|
-
| Theme protocol | [English](reference/theme-protocol-en.md) |
|
|
38
|
-
|
|
39
|
-
## Integration
|
|
40
|
-
|
|
41
|
-
| Topic | English |
|
|
42
|
-
| --- | --- |
|
|
43
|
-
| Local mode integration | [English](integration/local-integration-en.md) |
|
|
44
|
-
| Directory discovery | [English](integration/directory-discovery-en.md) |
|
|
45
|
-
| One-shot compilation | [English](integration/compiler-en.md) |
|
|
46
|
-
| Extension SDK preview | [English](integration/extension-sdk-en.md) |
|
|
47
|
-
| React source editor | [English](integration/editor-en.md) |
|
|
48
|
-
| Author tools | [English](integration/author-tools-en.md) |
|
|
49
|
-
| Sharing and static export | [English](integration/shareable-export-en.md) |
|
|
50
|
-
| Host network channels | [English](integration/network-host-en.md) |
|
|
51
|
-
|
|
52
|
-
## Compatibility and migration
|
|
53
|
-
|
|
54
|
-
| Topic | English |
|
|
55
|
-
| --- | --- |
|
|
56
|
-
| Versions and compatibility | [English](compatibility/compatibility-en.md) |
|
|
57
|
-
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
|
62
|
-
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
|
67
|
-
|
|
|
68
|
-
|
|
|
69
|
-
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
|
74
|
-
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
|
79
|
-
|
|
|
80
|
-
| 0.
|
|
81
|
-
| 0.
|
|
82
|
-
| 0.
|
|
83
|
-
| 0.
|
|
84
|
-
| 0.
|
|
85
|
-
| 0.
|
|
86
|
-
| 0.
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
1
|
+
# Documentation
|
|
2
|
+
|
|
3
|
+
**English** · [中文](README-ch.md)
|
|
4
|
+
|
|
5
|
+
Documents are grouped by purpose. Each topic has an English version (`-en.md`); the Chinese navigation is [README-ch.md](README-ch.md).
|
|
6
|
+
|
|
7
|
+
| Directory | Contents |
|
|
8
|
+
| --- | --- |
|
|
9
|
+
| [guides/](guides/) | Getting started |
|
|
10
|
+
| [reference/](reference/) | Public API, syntax, diagnostics and themes |
|
|
11
|
+
| [integration/](integration/) | Integration, editor, author tools and export |
|
|
12
|
+
| [compatibility/](compatibility/) | Compatibility, migration and source versioning |
|
|
13
|
+
| [development/](development/) | Development, protocols and performance |
|
|
14
|
+
| [releases/](releases/) | Release notes |
|
|
15
|
+
| [plan/](plan/) | Local planning area; not published with the package |
|
|
16
|
+
|
|
17
|
+
## Start here
|
|
18
|
+
|
|
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
|
+
- **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.2.
|
|
22
|
+
|
|
23
|
+
## Guides
|
|
24
|
+
|
|
25
|
+
| Topic | English |
|
|
26
|
+
| --- | --- |
|
|
27
|
+
| Beginner guide | [English](guides/local-guide-en.md) |
|
|
28
|
+
|
|
29
|
+
## Reference
|
|
30
|
+
|
|
31
|
+
| Topic | English |
|
|
32
|
+
| --- | --- |
|
|
33
|
+
| Public API reference | [English](reference/public-api-en.md) |
|
|
34
|
+
| Local interaction syntax | [English](reference/local-interaction-syntax-en.md) |
|
|
35
|
+
| Diagnostics and counting | [English](reference/diagnostics-counting-en.md) |
|
|
36
|
+
| HTML compatibility | [English](reference/html-compatibility-en.md) |
|
|
37
|
+
| Theme protocol | [English](reference/theme-protocol-en.md) |
|
|
38
|
+
|
|
39
|
+
## Integration
|
|
40
|
+
|
|
41
|
+
| Topic | English |
|
|
42
|
+
| --- | --- |
|
|
43
|
+
| Local mode integration | [English](integration/local-integration-en.md) |
|
|
44
|
+
| Directory discovery | [English](integration/directory-discovery-en.md) |
|
|
45
|
+
| One-shot compilation | [English](integration/compiler-en.md) |
|
|
46
|
+
| Extension SDK preview | [English](integration/extension-sdk-en.md) |
|
|
47
|
+
| React source editor | [English](integration/editor-en.md) |
|
|
48
|
+
| Author tools | [English](integration/author-tools-en.md) |
|
|
49
|
+
| Sharing and static export | [English](integration/shareable-export-en.md) |
|
|
50
|
+
| Host network channels | [English](integration/network-host-en.md) |
|
|
51
|
+
|
|
52
|
+
## Compatibility and migration
|
|
53
|
+
|
|
54
|
+
| Topic | English |
|
|
55
|
+
| --- | --- |
|
|
56
|
+
| Versions and compatibility | [English](compatibility/compatibility-en.md) |
|
|
57
|
+
| Support matrix | [English](compatibility/support-matrix-en.md) |
|
|
58
|
+
| Stable public API | [English](compatibility/api-stability-en.md) |
|
|
59
|
+
| Deprecation and migration policy | [English](compatibility/deprecation-en.md) |
|
|
60
|
+
| Compatibility manifest | [JSON](https://github.com/yao1145/ReactiveMD/blob/main/docs/compatibility/compatibility-manifest.json) |
|
|
61
|
+
| Compatibility manifest schema | [JSON Schema](compatibility/compatibility-manifest.schema.json) |
|
|
62
|
+
| Source versioning | [English](compatibility/source-versioning-en.md) |
|
|
63
|
+
|
|
64
|
+
## Development
|
|
65
|
+
|
|
66
|
+
| Topic | English |
|
|
67
|
+
| --- | --- |
|
|
68
|
+
| Extension author tutorial (definition to offline export) | [English](development/extension-tutorial-en.md) |
|
|
69
|
+
| Component plugin development | [English](development/component-development-en.md) |
|
|
70
|
+
| Component development contract | [English](development/component-development-reference-en.md) |
|
|
71
|
+
| Component protocol | [English](development/component-protocol-en.md) |
|
|
72
|
+
| Local module layout | [English](development/local-module-layout-en.md) |
|
|
73
|
+
| Performance | [English](development/performance-overview-en.md) |
|
|
74
|
+
| Publishing | [English](../CONTRIBUTING.md#releasing) |
|
|
75
|
+
|
|
76
|
+
## Releases
|
|
77
|
+
|
|
78
|
+
| Version | English |
|
|
79
|
+
| --- | --- |
|
|
80
|
+
| 0.9.2 | [English](releases/release-0.9.2-en.md) |
|
|
81
|
+
| 0.9.1 | [English](releases/release-0.9.1-en.md) |
|
|
82
|
+
| 0.9.0 | [English](releases/release-0.9.0-en.md) |
|
|
83
|
+
| 0.8.0 | [English](releases/release-0.8.0-en.md) |
|
|
84
|
+
| 0.7.0 | [English](releases/release-0.7.0-en.md) |
|
|
85
|
+
| 0.6.1 | [English](releases/release-0.6.1-en.md) |
|
|
86
|
+
| 0.6.0 | [English](releases/release-0.6.0-en.md) |
|
|
87
|
+
| 0.5.3 | [English](releases/release-0.5.3-en.md) |
|
|
88
|
+
| 0.5.2 | [English](releases/release-0.5.2-en.md) |
|
|
89
|
+
| 0.5.1 | [English](releases/release-0.5.1-en.md) |
|
|
90
|
+
| 0.5.0 | [English](releases/release-0.5.0-en.md) |
|
|
91
|
+
| 0.4.1 | [English](releases/release-0.4.1-en.md) |
|
|
92
|
+
| 0.4.0 | [English](releases/release-0.4.0-en.md) |
|
|
93
|
+
|
|
94
|
+
## Related resources
|
|
95
|
+
|
|
96
|
+
- Project overview: [English](../README-en.md)
|
|
97
|
+
- Changelog: [English](../CHANGELOG.md)
|
|
98
|
+
- Contributing: [English](../CONTRIBUTING.md)
|
|
99
|
+
- Conformance fixtures: [examples/conformance](../examples/conformance/README.md)
|
|
100
|
+
|
|
101
|
+
When adding a topic, place the English version in the matching directory, add it here, and check local links and heading anchors.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# 稳定公共 API
|
|
2
|
+
|
|
3
|
+
**中文** · [English](api-stability-en.md)
|
|
4
|
+
|
|
5
|
+
本基线从 `reactive-md@0.9.2` 和 `reactive-md-editor@0.2.1` 生效。稳定范围包括两包的公开 ESM 入口、兼容别名和样式入口,以及[公开接口参考](../reference/public-api-ch.md)和[编辑器入口](https://github.com/yao1145/ReactiveMD-Editor#入口)记载的导出、类型与行为。包的 `exports` 声明负责入口解析。实现文件路径、构建 chunk 名称和内部模块随实现演进。
|
|
6
|
+
|
|
7
|
+
同一 0.x 次版本的补丁保持既有导入、声明与语义可用。补丁可以新增入口、可选字段和诊断码。必须字段、闭合联合类型、错误处理方式及已承诺的默认行为属于兼容性契约。重命名、移除和其它不兼容变化遵循[弃用与迁移政策](deprecation-ch.md)。
|
|
8
|
+
|
|
9
|
+
## 子系统契约
|
|
10
|
+
|
|
11
|
+
| 子系统 | 稳定范围 | 版本与边界 |
|
|
12
|
+
| --- | --- | --- |
|
|
13
|
+
| 编译器 | 根入口的 `compileLocal`、`LocalCompileOptions` 和 `LocalCompileResult`。两个 compiler 子入口的工厂、`Compiler` 和 `CompilerConfigurationError`。宿主可以按工厂结果的 `ok` 和 `status` 分支,并读取诊断、恢复记录与检查覆盖。编译成功时可读取 `document` 和 `program`。 | `local-draft-3` 的已接受语义遵循[版本与兼容性](compatibility-ch.md)。单次入口执行最终编译。会话和调度器的显式阶段参数及结果字段属于公开契约。程序对象及编译缓存面向当前版本的内存使用。自建 Worker 应使用公开的请求和响应类型及配套引擎。 |
|
|
14
|
+
| 运行时 | `createLocalRuntime`、`LocalRuntime` 的公开参数写入、订阅、重置和释放语义,以及 `reactive-md/runtime` 和 `reactive-md/runtime/browser` 的文档化接口。非法写入保留有效状态,多值写入原子提交。 | 持久化使用 `reactive-md-state/v1` 或文档化的组件状态格式。读取会校验源码摘要、修订及相应绑定或组件身份。内存快照、节点 ID、匿名键及具体调度方式属于运行实现。 |
|
|
15
|
+
| SDK | `reactive-md/sdk` 的组件和预设定义、配置校验、版本范围、绑定规则和声明的能力。扩展宿主可以依赖组件身份、名称、版本和契约检查。 | SDK 契约为 `0.7.0`,语法、组块和主题各自版本化。通过主机范围校验后仍按组件契约及配置验证恢复。扩展可通过[合规测试](../integration/extension-sdk-ch.md)验证能力。 |
|
|
16
|
+
| 导出 | `createShareableHtml`、`reactive-md/export` 的预检、HTML 与恢复接口,以及 `reactive-md/export-assets` 的协议、稳定资源 ID 和 `specifier` 含义。 | 基础 HTML 写出 v1,带恢复契约的 HTML 写出 v2。当前独立运行时读取这两个有效版本,要求 v2 带恢复契约,并在失配时拒绝恢复。已有的无 `sourceSemantics` 历史负载走对应的兼容路径。bundle、恢复要求和资源清单独立版本化。详见[可分享文档与静态导出](../integration/shareable-export-ch.md)。 |
|
|
17
|
+
| 诊断 | `Diagnostic` 的机器字段、原始源码 UTF-16 坐标、两级 `severity`(`error`、`warning`)与既有诊断码含义。观察入口公开 `LocalObserver`、`LocalTraceEvent`、`createDiagnosticReport` 和格式化接口。可选的 `recoverable` 表示当前操作能否继续。 | 同一 minor 可以增加码和可选元数据。报告 `reactive-md-diagnostic/v1` 的既有字段保持类型与含义,可增加可选字段或事件。读者应跳过未知字段、事件及枚举值,并先校验 schema。改变必需字段类型或已有含义时升级报告协议。显示文案可以调整。 |
|
|
18
|
+
|
|
19
|
+
## 编辑器契约
|
|
20
|
+
|
|
21
|
+
`reactive-md-editor`、`/codemirror` 和 `/commands` 是公开入口。组件及其公开 props、handle、选区类型、命令结果和样式入口随本包发行。根组件和 CodeMirror 别名指向同一组件。可选 observer 观察私有分析 Worker 的诊断和轨迹。更换 observer 会重建分析调度器。编辑器的引擎 peer 和验收组合见[版本与兼容性](compatibility-ch.md)。
|
|
22
|
+
|
|
23
|
+
## 发布检查
|
|
24
|
+
|
|
25
|
+
两包的 `npm run check` 验证公共入口、已打包文件及独立 NodeNext 消费。引擎额外验证编译入口隔离、旧宿主的两级诊断类型、公开协议标识和行为测试。跨仓库发布还运行 `npm run compatibility:verify`,并记录[支持矩阵](support-matrix-ch.md)里的实测环境。
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Stable public API
|
|
2
|
+
|
|
3
|
+
[中文](api-stability-ch.md) · **English**
|
|
4
|
+
|
|
5
|
+
This baseline takes effect with `reactive-md@0.9.2` and `reactive-md-editor@0.2.1`. It covers the packages' public ESM entries, compatibility aliases and stylesheet entries, along with the documented exports, types and behavior in the [public API reference](../reference/public-api-en.md) and [editor README](https://github.com/yao1145/ReactiveMD-Editor#entry-points). Package `exports` define import resolution. Implementation files, build chunk names and internal modules can change.
|
|
6
|
+
|
|
7
|
+
Patch releases within a 0.x minor line preserve existing imports, declarations and semantics. They may add compatible entries, optional fields and diagnostic codes. Required fields, closed unions, error handling and documented defaults form part of the contract. Renames, removals and other incompatible changes follow the [deprecation and migration policy](deprecation-en.md).
|
|
8
|
+
|
|
9
|
+
## Subsystem contracts
|
|
10
|
+
|
|
11
|
+
| Subsystem | Stable surface | Version and boundaries |
|
|
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. |
|
|
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
|
+
| 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
|
+
| 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). |
|
|
17
|
+
| Diagnostics | `Diagnostic` machine fields, original-source UTF-16 coordinates, `error` and `warning` severity, and the meanings of existing codes. The observation entry exposes `LocalObserver`, `LocalTraceEvent`, `createDiagnosticReport` and formatting. The optional `recoverable` flag describes whether the current operation can continue. | A minor line can add codes and optional metadata. `reactive-md-diagnostic/v1` preserves the types and meanings of existing fields and may add optional fields or events. Readers should check the schema and skip unknown fields, events and enumeration values. Changing a required field's type or an existing meaning requires a new report schema. Display wording can evolve. |
|
|
18
|
+
|
|
19
|
+
## Editor contract
|
|
20
|
+
|
|
21
|
+
`reactive-md-editor`, `/codemirror` and `/commands` are public entries. Components, their public props and handles, selection types, command results and stylesheet entries ship with the package. The root component and CodeMirror alias refer to the same component. The optional observer receives diagnostics and traces from private analysis. Replacing it recreates the analysis scheduler. See the [compatibility page](compatibility-en.md) for the editor's engine peer and tested pair.
|
|
22
|
+
|
|
23
|
+
## Release checks
|
|
24
|
+
|
|
25
|
+
Both packages run `npm run check` to verify public entries, packed files and an independent NodeNext consumer. The engine also checks compiler isolation, legacy consumers of the two-level diagnostic type, protocol identifiers and semantic regressions. Paired releases also run `npm run compatibility:verify` and record their tested environments in the [support matrix](support-matrix-en.md).
|