reactive-md 0.5.3 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG-ch.md +45 -24
- package/CHANGELOG.md +45 -24
- package/CONTRIBUTING-ch.md +10 -5
- package/CONTRIBUTING.md +10 -5
- package/README-ch.md +38 -36
- package/README-en.md +45 -42
- package/README.md +45 -42
- package/SECURITY-ch.md +1 -1
- package/SECURITY.md +1 -1
- package/THIRD_PARTY_NOTICES.md +481 -1
- package/dist-library/{authoring-DJJjKYg9.js → authoring-DSC0VsNK.js} +58 -58
- package/dist-library/{compiler-UyPwGzJZ.js → compiler-CRD88BMt.js} +6218 -3363
- package/dist-library/react-Dk94rcOp.js +59658 -0
- package/dist-library/reactive-md-authoring.js +2 -2
- package/dist-library/reactive-md-editor.js +13 -0
- package/dist-library/reactive-md-react-unstyled.js +1 -1
- package/dist-library/reactive-md-react.js +1 -1
- package/dist-library/reactive-md.css +1 -1
- package/dist-library/reactive-md.js +123 -123
- package/dist-library/{runtime-DXtle_6c.js → runtime-D8KbnCd0.js} +151 -151
- package/dist-library/types/editor/types.d.ts +2 -0
- package/dist-library/types/local/code-block.d.ts +3 -1
- package/dist-library/types/local/code-languages.d.ts +7 -0
- package/dist-library/types/local/compiled-data.d.ts +6 -0
- package/dist-library/types/local/compiler.d.ts +1 -0
- package/dist-library/types/local/diagnostics.d.ts +31 -0
- package/dist-library/types/local/diagram-layout.d.ts +69 -0
- package/dist-library/types/local/html-names.d.ts +6 -0
- package/dist-library/types/local/html-table.d.ts +25 -0
- package/dist-library/types/local/math-display.d.ts +1 -0
- package/dist-library/types/local/table-surface.d.ts +10 -0
- package/dist-library/types/local/types.d.ts +2 -0
- package/dist-library/types/local/visuals.d.ts +9 -0
- package/dist-standalone/reactive-md-standalone.css +1 -1
- package/dist-standalone/reactive-md-standalone.js +75 -51
- package/docs/README.md +84 -0
- package/docs/{compatibility-ch.md → compatibility/compatibility-ch.md} +28 -18
- package/docs/{compatibility-en.md → compatibility/compatibility-en.md} +28 -18
- package/docs/{source-versioning-ch.md → compatibility/source-versioning-ch.md} +2 -2
- package/docs/{source-versioning-en.md → compatibility/source-versioning-en.md} +2 -2
- package/docs/{component-development-ch.md → development/component-development-ch.md} +7 -7
- package/docs/{component-development-en.md → development/component-development-en.md} +7 -7
- package/docs/{component-protocol-ch.md → development/component-protocol-ch.md} +17 -17
- package/docs/{component-protocol-en.md → development/component-protocol-en.md} +17 -17
- package/docs/{performance-ch.md → development/performance-ch.md} +2 -2
- package/docs/{performance-en.md → development/performance-en.md} +2 -2
- package/docs/{releasing-ch.md → development/releasing-ch.md} +12 -12
- package/docs/{releasing-en.md → development/releasing-en.md} +12 -12
- package/docs/guides/local-guide-ch.md +513 -0
- package/docs/guides/local-guide-en.md +513 -0
- package/docs/{author-tools-ch.md → integration/author-tools-ch.md} +8 -8
- package/docs/{author-tools-en.md → integration/author-tools-en.md} +8 -8
- package/docs/{editor-ch.md → integration/editor-ch.md} +7 -6
- package/docs/{editor-en.md → integration/editor-en.md} +7 -6
- package/docs/{local-integration-ch.md → integration/local-integration-ch.md} +33 -15
- package/docs/{local-integration-en.md → integration/local-integration-en.md} +33 -15
- package/docs/{shareable-export-ch.md → integration/shareable-export-ch.md} +16 -4
- package/docs/{shareable-export-en.md → integration/shareable-export-en.md} +16 -4
- package/docs/{computations-formatting-ch.md → reference/computations-formatting-ch.md} +2 -2
- package/docs/{computations-formatting-en.md → reference/computations-formatting-en.md} +2 -2
- package/docs/{constraints-collections-ch.md → reference/constraints-collections-ch.md} +2 -2
- package/docs/{constraints-collections-en.md → reference/constraints-collections-en.md} +2 -2
- package/docs/{diagnostics-counting-ch.md → reference/diagnostics-counting-ch.md} +22 -2
- package/docs/{diagnostics-counting-en.md → reference/diagnostics-counting-en.md} +22 -2
- package/docs/{html-compatibility-ch.md → reference/html-compatibility-ch.md} +42 -4
- package/docs/{html-compatibility-en.md → reference/html-compatibility-en.md} +42 -4
- package/docs/{local-components-v2-ch.md → reference/local-components-v2-ch.md} +2 -2
- package/docs/{local-components-v2-en.md → reference/local-components-v2-en.md} +2 -2
- package/docs/{local-interaction-syntax-ch.md → reference/local-interaction-syntax-ch.md} +26 -7
- package/docs/{local-interaction-syntax-en.md → reference/local-interaction-syntax-en.md} +26 -7
- package/docs/{theme-protocol-ch.md → reference/theme-protocol-ch.md} +1 -1
- package/docs/{theme-protocol-en.md → reference/theme-protocol-en.md} +1 -1
- package/docs/{release-0.4.0-ch.md → releases/release-0.4.0-ch.md} +6 -6
- package/docs/{release-0.4.0-en.md → releases/release-0.4.0-en.md} +6 -6
- package/docs/{release-0.4.1-ch.md → releases/release-0.4.1-ch.md} +2 -2
- package/docs/{release-0.4.1-en.md → releases/release-0.4.1-en.md} +2 -2
- package/docs/{release-0.5.0-ch.md → releases/release-0.5.0-ch.md} +4 -4
- package/docs/{release-0.5.0-en.md → releases/release-0.5.0-en.md} +4 -4
- package/docs/{release-0.5.1-ch.md → releases/release-0.5.1-ch.md} +4 -4
- package/docs/{release-0.5.1-en.md → releases/release-0.5.1-en.md} +4 -4
- package/docs/{release-0.5.2-ch.md → releases/release-0.5.2-ch.md} +3 -3
- package/docs/{release-0.5.2-en.md → releases/release-0.5.2-en.md} +3 -3
- package/docs/{release-0.5.3-ch.md → releases/release-0.5.3-ch.md} +1 -1
- package/docs/{release-0.5.3-en.md → releases/release-0.5.3-en.md} +1 -1
- package/docs/releases/release-0.6.0-ch.md +57 -0
- package/docs/releases/release-0.6.0-en.md +57 -0
- package/examples/conformance/README.md +4 -4
- package/examples/integration/README.md +10 -8
- package/examples/integration/worker/package.json +1 -1
- package/examples/local/README.md +5 -5
- package/examples/local/html-compat.reactive.md +19 -0
- package/package.json +9 -2
- package/dist-library/react-fizgU3i8.js +0 -12764
- package/docs/local-guide-ch.md +0 -967
- package/docs/local-guide-en.md +0 -967
package/docs/README.md
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# 文档导航 · Documentation
|
|
2
|
+
|
|
3
|
+
文档按用途分类,每个主题都有中文(`-ch.md`)和英文(`-en.md`)版本。
|
|
4
|
+
Documents are grouped by purpose, with Chinese and English versions of each topic.
|
|
5
|
+
|
|
6
|
+
| 目录 / Directory | 内容 / Contents |
|
|
7
|
+
| --- | --- |
|
|
8
|
+
| [guides/](guides/) | 入门指南 / Getting started |
|
|
9
|
+
| [reference/](reference/) | 语法、组件与主题参考 / Syntax, components and themes |
|
|
10
|
+
| [integration/](integration/) | 宿主集成、编辑器、作者工具与导出 / Integration, editor, author tools and export |
|
|
11
|
+
| [compatibility/](compatibility/) | 版本兼容、迁移与源码版本标记 / Compatibility, migration and source versioning |
|
|
12
|
+
| [development/](development/) | 组件开发、协议、性能与发布流程 / Development, protocols, performance and publishing |
|
|
13
|
+
| [releases/](releases/) | 各版本发布记录 / Release notes |
|
|
14
|
+
|
|
15
|
+
## 从这里开始 · Start here
|
|
16
|
+
|
|
17
|
+
- **编写文档 / Authors**:先读[入门指南](guides/local-guide-ch.md)([English](guides/local-guide-en.md)),再查语法参考;可运行的示例见 [examples/local](../examples/local/README.md)。
|
|
18
|
+
- **接入项目 / Integrators**:从[本地模式集成](integration/local-integration-ch.md)([English](integration/local-integration-en.md))开始,独立项目示例见 [examples/integration](../examples/integration/README.md)。
|
|
19
|
+
- **升级版本 / Upgrading**:先查[兼容性](compatibility/compatibility-ch.md)([English](compatibility/compatibility-en.md)),再读目标版本的发布记录。当前文档版本为 0.6.0;各版本记录保留当时的行为与迁移说明。
|
|
20
|
+
|
|
21
|
+
## 入门 · Guides
|
|
22
|
+
|
|
23
|
+
| 主题 / Topic | 中文 | English |
|
|
24
|
+
| --- | --- | --- |
|
|
25
|
+
| 新用户入门 / Beginner guide | [中文](guides/local-guide-ch.md) | [English](guides/local-guide-en.md) |
|
|
26
|
+
|
|
27
|
+
## 参考 · Reference
|
|
28
|
+
|
|
29
|
+
| 主题 / Topic | 中文 | English |
|
|
30
|
+
| --- | --- | --- |
|
|
31
|
+
| 本地交互语法 / Local interaction syntax | [中文](reference/local-interaction-syntax-ch.md) | [English](reference/local-interaction-syntax-en.md) |
|
|
32
|
+
| 本地组件 / Local components v2 | [中文](reference/local-components-v2-ch.md) | [English](reference/local-components-v2-en.md) |
|
|
33
|
+
| 计算与格式化 / Computations and formatting | [中文](reference/computations-formatting-ch.md) | [English](reference/computations-formatting-en.md) |
|
|
34
|
+
| 约束与集合 / Constraints and collections | [中文](reference/constraints-collections-ch.md) | [English](reference/constraints-collections-en.md) |
|
|
35
|
+
| 诊断与计数 / Diagnostics and counting | [中文](reference/diagnostics-counting-ch.md) | [English](reference/diagnostics-counting-en.md) |
|
|
36
|
+
| HTML 兼容 / HTML compatibility | [中文](reference/html-compatibility-ch.md) | [English](reference/html-compatibility-en.md) |
|
|
37
|
+
| 主题协议 / Theme protocol | [中文](reference/theme-protocol-ch.md) | [English](reference/theme-protocol-en.md) |
|
|
38
|
+
|
|
39
|
+
## 接入 · Integration
|
|
40
|
+
|
|
41
|
+
| 主题 / Topic | 中文 | English |
|
|
42
|
+
| --- | --- | --- |
|
|
43
|
+
| 本地模式集成 / Local mode integration | [中文](integration/local-integration-ch.md) | [English](integration/local-integration-en.md) |
|
|
44
|
+
| React 源码编辑器 / React source editor | [中文](integration/editor-ch.md) | [English](integration/editor-en.md) |
|
|
45
|
+
| 作者工具 / Author tools | [中文](integration/author-tools-ch.md) | [English](integration/author-tools-en.md) |
|
|
46
|
+
| 分享与静态导出 / Sharing and static export | [中文](integration/shareable-export-ch.md) | [English](integration/shareable-export-en.md) |
|
|
47
|
+
|
|
48
|
+
## 兼容与迁移 · Compatibility and migration
|
|
49
|
+
|
|
50
|
+
| 主题 / Topic | 中文 | English |
|
|
51
|
+
| --- | --- | --- |
|
|
52
|
+
| 版本与兼容性 / Versions and compatibility | [中文](compatibility/compatibility-ch.md) | [English](compatibility/compatibility-en.md) |
|
|
53
|
+
| 源码版本标记 / Source versioning | [中文](compatibility/source-versioning-ch.md) | [English](compatibility/source-versioning-en.md) |
|
|
54
|
+
|
|
55
|
+
## 开发维护 · Development
|
|
56
|
+
|
|
57
|
+
| 主题 / Topic | 中文 | English |
|
|
58
|
+
| --- | --- | --- |
|
|
59
|
+
| 组件开发 / Component development | [中文](development/component-development-ch.md) | [English](development/component-development-en.md) |
|
|
60
|
+
| 组件协议 / Component protocol | [中文](development/component-protocol-ch.md) | [English](development/component-protocol-en.md) |
|
|
61
|
+
| 性能 / Performance | [中文](development/performance-ch.md) | [English](development/performance-en.md) |
|
|
62
|
+
| 发布流程 / Publishing | [中文](development/releasing-ch.md) | [English](development/releasing-en.md) |
|
|
63
|
+
|
|
64
|
+
## 发布记录 · Releases
|
|
65
|
+
|
|
66
|
+
| 版本 / Version | 中文 | English |
|
|
67
|
+
| --- | --- | --- |
|
|
68
|
+
| 0.6.0 | [中文](releases/release-0.6.0-ch.md) | [English](releases/release-0.6.0-en.md) |
|
|
69
|
+
| 0.5.3 | [中文](releases/release-0.5.3-ch.md) | [English](releases/release-0.5.3-en.md) |
|
|
70
|
+
| 0.5.2 | [中文](releases/release-0.5.2-ch.md) | [English](releases/release-0.5.2-en.md) |
|
|
71
|
+
| 0.5.1 | [中文](releases/release-0.5.1-ch.md) | [English](releases/release-0.5.1-en.md) |
|
|
72
|
+
| 0.5.0 | [中文](releases/release-0.5.0-ch.md) | [English](releases/release-0.5.0-en.md) |
|
|
73
|
+
| 0.4.1 | [中文](releases/release-0.4.1-ch.md) | [English](releases/release-0.4.1-en.md) |
|
|
74
|
+
| 0.4.0 | [中文](releases/release-0.4.0-ch.md) | [English](releases/release-0.4.0-en.md) |
|
|
75
|
+
|
|
76
|
+
## 相关资料 · Related resources
|
|
77
|
+
|
|
78
|
+
- 项目概览 / Project overview:[中文](../README-ch.md) · [English](../README-en.md)
|
|
79
|
+
- 更新日志 / Changelog:[中文](../CHANGELOG-ch.md) · [English](../CHANGELOG.md)
|
|
80
|
+
- 贡献指南 / Contributing:[中文](../CONTRIBUTING-ch.md) · [English](../CONTRIBUTING.md)
|
|
81
|
+
- 一致性用例 / Conformance fixtures:[examples/conformance](../examples/conformance/README.md)
|
|
82
|
+
|
|
83
|
+
新增文档时放入对应目录,在本页补充中英文链接,并运行 `npm run test:docs` 检查本地链接和标题锚点。
|
|
84
|
+
When adding a topic, place both language versions in the matching directory, list them here, and run `npm run test:docs`.
|
|
@@ -1,23 +1,28 @@
|
|
|
1
1
|
# 版本与兼容性
|
|
2
2
|
|
|
3
|
-
Reactive MD 目前是 0.x 预览版。本页说明包版本、语法版本、可持久化的内容、诊断契约和当前平台范围。显式修订声明、迁移 API 与 `reactive-md migrate` 见[源码修订与迁移](source-versioning-ch.md),公开 API 与样式接入见[本地模式集成](local-integration-ch.md)
|
|
3
|
+
Reactive MD 目前是 0.x 预览版。本页说明包版本、语法版本、可持久化的内容、诊断契约和当前平台范围。显式修订声明、迁移 API 与 `reactive-md migrate` 见[源码修订与迁移](source-versioning-ch.md),公开 API 与样式接入见[本地模式集成](../integration/local-integration-ch.md),当前版本见[0.6.0 发布说明](../releases/release-0.6.0-ch.md),该 minor 系列见[0.4.0 发布与迁移](../releases/release-0.4.0-ch.md)。
|
|
4
4
|
|
|
5
5
|
## 版本对应
|
|
6
6
|
|
|
7
7
|
| 项目 | 当前值 | 说明 |
|
|
8
8
|
| --- | --- | --- |
|
|
9
|
-
| 包版本 | `0.
|
|
10
|
-
| 分发标签 | `latest` → `0.
|
|
9
|
+
| 包版本 | `0.6.0` | 0.x 预览版;0.6.0 同时提供于 `latest` 与 `next` |
|
|
10
|
+
| 分发标签 | `latest` → `0.6.0`;`next` → `0.6.0` | 默认安装使用 `latest` |
|
|
11
11
|
| 语法版本 | `local-draft-2` | `LOCAL_SYNTAX_VERSION`;当前构建只接受这一修订 |
|
|
12
12
|
| 源码修订指令 | 可选 `<!-- reactive-md: local-draft-2 -->` | 文档前导区中的一行;无指令源码继续按当前修订解析 |
|
|
13
|
-
| 组块协议 | `component-protocol-2` | 贡献与验收契约,见[组块协议](component-protocol-ch.md);不是运行时版本选择参数 |
|
|
13
|
+
| 组块协议 | `component-protocol-2` | 贡献与验收契约,见[组块协议](../development/component-protocol-ch.md);不是运行时版本选择参数 |
|
|
14
|
+
| 主题协议 | `reactive-md-theme-1` | 文档主题与宿主 CSS 接入 |
|
|
15
|
+
| 作者工具入口 | `reactive-md/authoring` | schema、目录与编辑辅助函数,不加载 React 或 CSS |
|
|
16
|
+
| 无样式 React 入口 | `reactive-md/react/unstyled` | 不依赖样式表的 React 渲染器 |
|
|
14
17
|
| 核心入口 | `reactive-md` | 编译、表达式与运行时,不加载 React |
|
|
15
18
|
| React 入口 | `reactive-md/react` | `LocalReactiveDocument`、`LocalDocumentView` |
|
|
16
19
|
| 编辑器入口 | `reactive-md/editor` | `ReactiveMarkdownEditor` 及其类型;需要 React 19 |
|
|
17
20
|
| 渲染器样式入口 | `reactive-md/styles.css` | 文档与组块样式,由宿主显式引入 |
|
|
21
|
+
| 屏幕样式入口 | `reactive-md/screen.css` | `reactive-md/styles.css` 的别名 |
|
|
22
|
+
| 打印样式入口 | `reactive-md/print.css` | 可选的文档打印布局与页边距 |
|
|
18
23
|
| 编辑器样式入口 | `reactive-md/editor/styles.css` | 独立编辑器样式,作用域限定在编辑器根节点 |
|
|
19
24
|
|
|
20
|
-
一个包版本只对应一个语法修订。升级包之前,记录应用使用的 `LOCAL_SYNTAX_VERSION`。如果文档源码来自另一个语法修订,保留旧包版本渲染,或按下面的迁移说明改写。`compileLocal(source, options?)` 不提供语法版本参数;宿主可以通过 `options.limits.maxSyntaxNodes` 调整单次编译的语法节点预算,见[本地模式集成](local-integration-ch.md)。
|
|
25
|
+
一个包版本只对应一个语法修订。升级包之前,记录应用使用的 `LOCAL_SYNTAX_VERSION`。如果文档源码来自另一个语法修订,保留旧包版本渲染,或按下面的迁移说明改写。`compileLocal(source, options?)` 不提供语法版本参数;宿主可以通过 `options.limits.maxSyntaxNodes` 调整单次编译的语法节点预算,见[本地模式集成](../integration/local-integration-ch.md)。
|
|
21
26
|
|
|
22
27
|
## 显式源码修订
|
|
23
28
|
|
|
@@ -28,7 +33,7 @@ Reactive MD 目前是 0.x 预览版。本页说明包版本、语法版本、可
|
|
|
28
33
|
## 0.x 的兼容规则
|
|
29
34
|
|
|
30
35
|
- 次版本(`0.3` 到 `0.4`)可能包含破坏性变更;补丁版本只做兼容修复和安全修复。
|
|
31
|
-
- 0.x 阶段不承诺固定弃用周期。每项破坏性变更都会写入 [变更记录](
|
|
36
|
+
- 0.x 阶段不承诺固定弃用周期。每项破坏性变更都会写入 [变更记录](../../CHANGELOG-ch.md),说明旧写法、新写法和迁移步骤。
|
|
32
37
|
- 1.0 之前,把每次升级都当成可能需要修改文档源码或宿主代码。
|
|
33
38
|
- 应用应固定包版本,保留原始 `.reactive.md` 源码,并在升级后用自己的文档和示例重新运行编译与渲染检查。
|
|
34
39
|
|
|
@@ -44,19 +49,23 @@ Reactive MD 目前是 0.x 预览版。本页说明包版本、语法版本、可
|
|
|
44
49
|
|
|
45
50
|
从 `local-draft-1` 升级到 `local-draft-2` 时,这一承诺适用于通过升级检查的共同语言子集。新增保留名和新激活标签需要人工修改源码;文本长度计数是必须显式接受的兼容例外,清单完成样式属于视觉例外。超出这些已记录例外的语义变化需要新的语法修订与迁移说明。
|
|
46
51
|
|
|
47
|
-
[历史语料](
|
|
52
|
+
[历史语料](../../examples/conformance/history/v0.3.1/provenance.json) 保留实际 `v0.3.1` 源码、来源提交和 SHA256。回归测试检查原一致性预期、公开值、非法写入拒绝、初始化、重置和迁移渲染;比较中明确排除内部 ID。
|
|
48
53
|
|
|
49
54
|
## 破坏性变更与迁移
|
|
50
55
|
|
|
51
|
-
`0.5.0` 新增 `reactive-md/editor` 入口及其独立样式表;`0.5.1` 新增编辑器视图、主题配色和 HTML 兼容。`local-draft-2`、`component-protocol-1` 和 `reactive-md-theme-1` 保持不变。现有 `reactive-md`、`reactive-md/react` 和 `reactive-md/styles.css` 导入继续有效,为 0.4.x 编写的文档无需迁移。编辑器需要 React 19;历史与渲染边界见[编辑器指南](editor-ch.md)。
|
|
56
|
+
`0.5.0` 新增 `reactive-md/editor` 入口及其独立样式表;`0.5.1` 新增编辑器视图、主题配色和 HTML 兼容。`local-draft-2`、`component-protocol-1` 和 `reactive-md-theme-1` 保持不变。现有 `reactive-md`、`reactive-md/react` 和 `reactive-md/styles.css` 导入继续有效,为 0.4.x 编写的文档无需迁移。编辑器需要 React 19;历史与渲染边界见[编辑器指南](../integration/editor-ch.md)。
|
|
52
57
|
|
|
53
|
-
`0.
|
|
58
|
+
`0.6.0` 新增原生 HTML 表格、`align` 与链接 `target`/`rel`、更多数学环境与命令、mhchem 化学式和扩展代码高亮,并把图解改为分层布局。无法解析的原生 HTML 改为按原文回退。`compileLocal` 的返回值只包含普通对象和数组,编辑器新增 `insertText`。语法、组块和主题修订均保持不变,现有导入继续有效。见[0.6.0 发布说明](../releases/release-0.6.0-ch.md)。
|
|
54
59
|
|
|
55
|
-
`0.
|
|
60
|
+
`0.5.3` 新增宿主作者工具、统一编译选项、数学降级诊断,以及独立的屏幕与打印样式。现有入口继续有效;需要文档打印布局时显式引入 `reactive-md/print.css`。语法、组块和主题修订均保持不变。见[0.5.3 发布说明](../releases/release-0.5.3-ch.md)。
|
|
56
61
|
|
|
57
|
-
`0.
|
|
62
|
+
`0.5.2` 新增可选的宿主组件扩展轴,并把组块协议提升到 `component-protocol-2`。语法修订和主题协议保持不变,现有导入继续有效,为 0.5.x 编写的文档无需迁移。见[0.5.2 发布说明](../releases/release-0.5.2-ch.md)。
|
|
58
63
|
|
|
59
|
-
`0.4.0`
|
|
64
|
+
`0.4.0` 新增[条件、校验与本地集合](../reference/constraints-collections-ch.md):`LocalRuntime.validate()`、可序列化的 `LocalValidation` 规则、数字数组及生成表格。自行实现运行时适配器的宿主需补充 `validate()`,值类型穷举需加入 `number-array`;与 `sum`、`average`、`minOf`、`maxOf` 同名的旧绑定应重命名。
|
|
65
|
+
|
|
66
|
+
`0.4.0` 新增[命名计算与格式化函数](../reference/computations-formatting-ch.md)。`computed`/`const` 使用现有本地标签形式;新函数名成为保留字,使用本版本前需重命名冲突的输入绑定并同步修改引用。`document.bindings` 和 `initialState` 继续只包含可写控件,快照同时提供成功求值的计算结果。
|
|
67
|
+
|
|
68
|
+
`0.4.0` 建立 `local-draft-2`。使用受支持 `local-draft-1` 写法的无指令源码继续有效;显式 `local-draft-1` 声明在迁移前会被拒绝。构建新增识别 15 个标签名:十个 `local-draft-2` 组块,以及 `computed`、`const`、`validation`、`data-table`、`column`。以前作为未知标签或普通文字显示的内容现在会解析为组块或声明;字面示例应移入行内代码或代码围栏。开头的 `<theme>` 声明是文档元数据,不计入组块。完整的重命名与升级清单见[0.4.0 发布与迁移](../releases/release-0.4.0-ch.md)。
|
|
60
69
|
|
|
61
70
|
作者可见的语法变化会建立新的语法修订,例如本次的 `local-draft-2`,并提升次版本、更新 `LOCAL_SYNTAX_VERSION`。核心或 React API 的变化也会记录在变更记录中。项目不自动改写文档正文。`reactive-md migrate` 迁移单份源码的元数据声明,并阻止正文级冲突;升级后由作者或宿主按记录完成其余源码修改。
|
|
62
71
|
|
|
@@ -85,7 +94,7 @@ Reactive MD 目前是 0.x 预览版。本页说明包版本、语法版本、可
|
|
|
85
94
|
- `message` 是默认英文显示文本,使用 `formatLocalDiagnostic(diagnostic, 'zh')` 可取得中文。文案可以改进;不要解析 message 或按完整文本做业务判断。语言切换保留机器字段。
|
|
86
95
|
- `severity` 为 `warning` 或 `error`。结构完整的未知标签保留源码并给出降级警告,编译仍可成功;脚注正常排版。编译错误会让 `result.ok` 为 `false` 并停用预览。运行时局部错误只影响对应内容。
|
|
87
96
|
|
|
88
|
-
完整规则和资源单位见[诊断与计数规则](diagnostics-counting-ch.md)。
|
|
97
|
+
完整规则和资源单位见[诊断与计数规则](../reference/diagnostics-counting-ch.md)。
|
|
89
98
|
|
|
90
99
|
## 平台与运行环境
|
|
91
100
|
|
|
@@ -95,15 +104,16 @@ Reactive MD 目前是 0.x 预览版。本页说明包版本、语法版本、可
|
|
|
95
104
|
| ESM | 唯一模块格式;不提供 CommonJS 入口 |
|
|
96
105
|
| React 19 | `reactive-md/react` 和 `reactive-md/editor` 的要求;核心入口不依赖 React |
|
|
97
106
|
| Microsoft Edge(Chromium 内核) | 本地浏览器验证使用 Edge |
|
|
98
|
-
| Playwright Chromium | Linux CI
|
|
99
|
-
| Firefox、
|
|
100
|
-
|
|
|
107
|
+
| Playwright Chromium | Linux CI 的完整浏览器验证 |
|
|
108
|
+
| Playwright Firefox、WebKit | 1280px、375px 核心流程,包含个人文档和交互 HTML 导出;纳入浏览器发布门禁与 CI |
|
|
109
|
+
| Apple 设备上的 Safari | 实机测试与 Playwright WebKit 引擎验证分开进行 |
|
|
110
|
+
| 可分享状态格式 | `reactive-md-state/v1`:公开参数、语法版本与源码摘要;见[可分享文档](../integration/shareable-export-ch.md) |
|
|
101
111
|
| 单文件 HTML 格式 | `reactive-md-html/v1`:交互或静态导出;仅交互模式内嵌独立运行时 |
|
|
102
112
|
| SSR | `react-dom/server` 静态渲染由 packed 检查覆盖。编辑器入口没有顶层 DOM 访问,可在服务端导入和渲染;编辑交互在客户端运行。单文件导出的静态首屏水合已在 Playwright Chromium/Edge 验证;通用 SSR 水合未验证,使用前需自行检查 |
|
|
103
113
|
|
|
104
114
|
Node 端消费指在 Node 中导入 `reactive-md`、调用 `compileLocal` 和 `createLocalRuntime`,不需要 DOM。React 渲染要求浏览器环境或宿主自行处理服务端输出。
|
|
105
115
|
|
|
106
|
-
语言范围见[语法规范](local-interaction-syntax-ch.md),安全边界与宿主责任见[安全策略](
|
|
116
|
+
语言范围见[语法规范](../reference/local-interaction-syntax-ch.md),安全边界与宿主责任见[安全策略](../../SECURITY-ch.md)。
|
|
107
117
|
|
|
108
118
|
|
|
109
|
-
新增组块、颜色、槽位状态与迁移规则见[local-draft-2 扩展说明](local-components-v2-ch.md),升级清单见[0.4.0 发布与迁移](release-0.4.0-ch.md)。0.
|
|
119
|
+
新增组块、颜色、槽位状态与迁移规则见[local-draft-2 扩展说明](../reference/local-components-v2-ch.md),升级清单见[0.4.0 发布与迁移](../releases/release-0.4.0-ch.md)。0.6.0 同时提供于 `latest` 与 `next`。
|
|
@@ -1,23 +1,28 @@
|
|
|
1
1
|
# Versions and compatibility
|
|
2
2
|
|
|
3
|
-
Reactive MD is currently a 0.x preview. This page covers package versions, syntax versions, what can be persisted, the diagnostics contract and the current platform scope. See [Source revisions and migration](source-versioning-en.md) for explicit revision declarations, the migration API and `reactive-md migrate`, [Local mode integration](local-integration-en.md) for the public API and style integration, [0.
|
|
3
|
+
Reactive MD is currently a 0.x preview. This page covers package versions, syntax versions, what can be persisted, the diagnostics contract and the current platform scope. See [Source revisions and migration](source-versioning-en.md) for explicit revision declarations, the migration API and `reactive-md migrate`, [Local mode integration](../integration/local-integration-en.md) for the public API and style integration, the [0.6.0 release notes](../releases/release-0.6.0-en.md) for the current release, and [0.4.0 release and migration](../releases/release-0.4.0-en.md) for that minor series.
|
|
4
4
|
|
|
5
5
|
## Version mapping
|
|
6
6
|
|
|
7
7
|
| Item | Current value | Notes |
|
|
8
8
|
| --- | --- | --- |
|
|
9
|
-
| Package version | `0.
|
|
10
|
-
| Distribution tags | `latest` → `0.
|
|
9
|
+
| Package version | `0.6.0` | 0.x preview; 0.6.0 is available on both `latest` and `next` |
|
|
10
|
+
| Distribution tags | `latest` → `0.6.0`; `next` → `0.6.0` | Default installs use `latest` |
|
|
11
11
|
| Syntax version | `local-draft-2` | `LOCAL_SYNTAX_VERSION`; the current build accepts only this revision |
|
|
12
12
|
| Source revision directive | Optional `<!-- reactive-md: local-draft-2 -->` | One line in the document prologue; unversioned source keeps current-revision behavior |
|
|
13
|
-
| Component protocol | `component-protocol-2` | Contribution and acceptance contract, see [Component protocol](component-protocol-en.md); not a runtime version selection parameter |
|
|
13
|
+
| Component protocol | `component-protocol-2` | Contribution and acceptance contract, see [Component protocol](../development/component-protocol-en.md); not a runtime version selection parameter |
|
|
14
|
+
| Theme protocol | `reactive-md-theme-1` | Document themes and host CSS integration |
|
|
15
|
+
| Authoring entry | `reactive-md/authoring` | Schema, catalog and editor helpers, without React or CSS |
|
|
16
|
+
| Unstyled React entry | `reactive-md/react/unstyled` | React renderer without a stylesheet dependency |
|
|
14
17
|
| Core entry | `reactive-md` | Compilation, expressions and runtime, without loading React |
|
|
15
18
|
| React entry | `reactive-md/react` | `LocalReactiveDocument`, `LocalDocumentView` |
|
|
16
19
|
| Editor entry | `reactive-md/editor` | `ReactiveMarkdownEditor` and its types; requires React 19 |
|
|
17
20
|
| Renderer style entry | `reactive-md/styles.css` | Document and component styles, explicitly imported by the host |
|
|
21
|
+
| Screen style entry | `reactive-md/screen.css` | Alias of `reactive-md/styles.css` |
|
|
22
|
+
| Print style entry | `reactive-md/print.css` | Optional document print layout and page margins |
|
|
18
23
|
| Editor style entry | `reactive-md/editor/styles.css` | Independent editor styles, scoped to the editor root |
|
|
19
24
|
|
|
20
|
-
One package version corresponds to exactly one syntax revision. Before upgrading the package, record the `LOCAL_SYNTAX_VERSION` your application uses. If document sources come from another syntax revision, keep rendering them with the old package version or rewrite them according to the migration notes below. `compileLocal(source, options?)` has no syntax version parameter; hosts can adjust the syntax node budget for a single compilation through `options.limits.maxSyntaxNodes`, see [Local mode integration](local-integration-en.md).
|
|
25
|
+
One package version corresponds to exactly one syntax revision. Before upgrading the package, record the `LOCAL_SYNTAX_VERSION` your application uses. If document sources come from another syntax revision, keep rendering them with the old package version or rewrite them according to the migration notes below. `compileLocal(source, options?)` has no syntax version parameter; hosts can adjust the syntax node budget for a single compilation through `options.limits.maxSyntaxNodes`, see [Local mode integration](../integration/local-integration-en.md).
|
|
21
26
|
|
|
22
27
|
## Explicit source revisions
|
|
23
28
|
|
|
@@ -28,7 +33,7 @@ Readers built before this directive existed, including `0.3.1`, treat it as an o
|
|
|
28
33
|
## Compatibility rules for 0.x
|
|
29
34
|
|
|
30
35
|
- Minor versions (`0.3` to `0.4`) may contain breaking changes; patch versions contain only compatibility and security fixes.
|
|
31
|
-
- The 0.x phase does not promise a fixed deprecation period. Every breaking change is recorded in the [changelog](
|
|
36
|
+
- The 0.x phase does not promise a fixed deprecation period. Every breaking change is recorded in the [changelog](../../CHANGELOG.md), with the old form, new form and migration steps.
|
|
32
37
|
- Before 1.0, treat every upgrade as potentially requiring changes to document sources or host code.
|
|
33
38
|
- Applications should pin the package version, keep the original `.reactive.md` sources, and rerun compile and render checks with their own documents and examples after upgrading.
|
|
34
39
|
|
|
@@ -44,19 +49,23 @@ Within a syntax revision, compatible package updates preserve the meaning of acc
|
|
|
44
49
|
|
|
45
50
|
From `local-draft-1` to `local-draft-2`, this promise covers the common supported language after upgrade checks. New reserved identifiers and newly active tags require manual source changes. Text-length counting is an explicit compatibility exception that the migrator requires you to accept; completed-checklist styling is a visual exception. A semantic change outside these recorded exceptions requires a syntax revision and migration notes.
|
|
46
51
|
|
|
47
|
-
Regression data in [the historical corpus](
|
|
52
|
+
Regression data in [the historical corpus](../../examples/conformance/history/v0.3.1/provenance.json) preserves actual `v0.3.1` sources, their source commit and SHA256 digests. The regression suite checks the original conformance expectations, public values, rejected writes, initialization, resets and migration rendering. Internal IDs are excluded from comparisons.
|
|
48
53
|
|
|
49
54
|
## Breaking changes and migration
|
|
50
55
|
|
|
51
|
-
`0.5.0` added the `reactive-md/editor` entry and its independent stylesheet. `0.5.1` adds editor views, theme palettes and HTML compatibility. They keep `local-draft-2`, `component-protocol-1` and `reactive-md-theme-1`. Existing `reactive-md`, `reactive-md/react` and `reactive-md/styles.css` imports keep working, and documents written for 0.4.x need no migration. The editor requires React 19; see the [editor guide](editor-en.md) for its history and rendering boundaries.
|
|
56
|
+
`0.5.0` added the `reactive-md/editor` entry and its independent stylesheet. `0.5.1` adds editor views, theme palettes and HTML compatibility. They keep `local-draft-2`, `component-protocol-1` and `reactive-md-theme-1`. Existing `reactive-md`, `reactive-md/react` and `reactive-md/styles.css` imports keep working, and documents written for 0.4.x need no migration. The editor requires React 19; see the [editor guide](../integration/editor-en.md) for its history and rendering boundaries.
|
|
52
57
|
|
|
53
|
-
`0.
|
|
58
|
+
`0.6.0` adds native HTML tables, `align` and link `target`/`rel`, more math environments and commands, mhchem chemistry and expanded code highlighting, and switches diagrams to a layered layout. Unparseable native HTML now falls back to source. `compileLocal` returns only plain objects and arrays, and the editor adds `insertText`. Syntax, component and theme revisions remain unchanged, and existing imports keep working. See the [0.6.0 release notes](../releases/release-0.6.0-en.md).
|
|
54
59
|
|
|
55
|
-
`0.
|
|
60
|
+
`0.5.3` adds host authoring tools, consistent compile options, math fallback diagnostics and separate screen/print stylesheets. Existing entries remain available; import `reactive-md/print.css` explicitly for document print layout. Syntax, component and theme revisions remain unchanged. See the [0.5.3 release notes](../releases/release-0.5.3-en.md).
|
|
56
61
|
|
|
57
|
-
`0.
|
|
62
|
+
`0.5.2` adds the opt-in host component extension axis and raises the component protocol to `component-protocol-2`. The syntax revision and theme protocol remain unchanged, existing imports keep working, and documents written for 0.5.x need no migration. See the [0.5.2 release notes](../releases/release-0.5.2-en.md).
|
|
58
63
|
|
|
59
|
-
`0.4.0`
|
|
64
|
+
`0.4.0` adds [constraints and collections](../reference/constraints-collections-en.md): `LocalRuntime.validate()`, serializable `LocalValidation` rules, numeric arrays and generated tables. Hosts implementing a runtime adapter need the new `validate()` method; exhaustive value-kind checks need `number-array`. Rename bindings colliding with `sum`, `average`, `minOf` or `maxOf`.
|
|
65
|
+
|
|
66
|
+
`0.4.0` adds [named calculations and formatting functions](../reference/computations-formatting-en.md). `computed`/`const` use the existing local tag syntax. The new built-in function names become reserved; rename colliding input bindings and their references before using this release. `document.bindings` and `initialState` still contain writable controls; snapshots also expose successful calculated values.
|
|
67
|
+
|
|
68
|
+
`0.4.0` establishes `local-draft-2`. Unversioned source that uses supported `local-draft-1` forms remains valid; an explicit `local-draft-1` declaration is rejected until migrated. The build now recognizes 15 additional tag names: the ten `local-draft-2` components plus `computed`, `const`, `validation`, `data-table` and `column`. Text that previously displayed as an unknown or literal tag now parses as a component or declaration; move literal examples into code spans or fences. The leading `<theme>` declaration is document metadata and is not counted as a component. See [0.4.0 release and migration](../releases/release-0.4.0-en.md) for the complete rename and upgrade checklist.
|
|
60
69
|
|
|
61
70
|
Author-visible syntax changes establish a new syntax revision, such as `local-draft-2`, and raise the minor version and update `LOCAL_SYNTAX_VERSION`. Changes to the core or React API are also recorded in the changelog. The project does not rewrite document bodies automatically. `reactive-md migrate` moves one source's metadata declaration and blocks body-level conflicts; after upgrading, authors or hosts complete any remaining source changes according to the record.
|
|
62
71
|
|
|
@@ -85,7 +94,7 @@ Persist the original `.reactive.md` source. A `reactive-md-state/v1` file may pr
|
|
|
85
94
|
- `message` contains default English display text. Use `formatLocalDiagnostic(diagnostic, 'zh')` for Chinese. Wording may improve; do not parse messages or make business decisions based on their complete text. Language changes preserve machine fields.
|
|
86
95
|
- `severity` is `warning` or `error`. Structurally complete unknown tags keep their source and produce fallback warnings, and compilation can still succeed; footnotes render normally. Compile errors make `result.ok` `false` and disable the preview. Runtime local errors affect only the corresponding content.
|
|
87
96
|
|
|
88
|
-
See [Diagnostics and counting rules](diagnostics-counting-en.md) for units and resource-budget scopes.
|
|
97
|
+
See [Diagnostics and counting rules](../reference/diagnostics-counting-en.md) for units and resource-budget scopes.
|
|
89
98
|
|
|
90
99
|
## Platforms and runtimes
|
|
91
100
|
|
|
@@ -95,15 +104,16 @@ See [Diagnostics and counting rules](diagnostics-counting-en.md) for units and r
|
|
|
95
104
|
| ESM | The only module format; no CommonJS entry |
|
|
96
105
|
| React 19 | Required by `reactive-md/react` and `reactive-md/editor`; the core entry does not depend on React |
|
|
97
106
|
| Microsoft Edge (Chromium-based) | Local browser verification has used Edge |
|
|
98
|
-
| Playwright Chromium | Linux CI browser
|
|
99
|
-
| Firefox
|
|
100
|
-
|
|
|
107
|
+
| Playwright Chromium | Full Linux CI browser suite |
|
|
108
|
+
| Playwright Firefox and WebKit | Core workflows at 1280px and 375px, including personal documents and interactive HTML export; included in the browser release gate and CI |
|
|
109
|
+
| Safari on Apple devices | Device testing remains separate from Playwright WebKit engine checks |
|
|
110
|
+
| Shareable state format | `reactive-md-state/v1`: public parameter values with a syntax version and source digest; see [Shareable documents](../integration/shareable-export-en.md) |
|
|
101
111
|
| Single-file HTML format | `reactive-md-html/v1`: interactive or static export, with an inline standalone runtime only in interactive mode |
|
|
102
112
|
| SSR | `react-dom/server` static rendering is covered by the packed check. The editor entry has no top-level DOM access and can be imported and rendered on the server; editing interactions run on the client. Static-first hydration of the single-file export is covered in Playwright Chromium/Edge; general SSR hydration is unverified and should be checked before use |
|
|
103
113
|
|
|
104
114
|
Node-side consumption means importing `reactive-md` in Node and calling `compileLocal` and `createLocalRuntime` without a DOM. React rendering requires a browser environment, or the host must handle server output itself.
|
|
105
115
|
|
|
106
|
-
See the [syntax specification](local-interaction-syntax-en.md) for the language scope, and the [security policy](
|
|
116
|
+
See the [syntax specification](../reference/local-interaction-syntax-en.md) for the language scope, and the [security policy](../../SECURITY.md) for the security boundary and host responsibilities.
|
|
107
117
|
|
|
108
118
|
|
|
109
|
-
See [local-draft-2 components and migration](local-components-v2-en.md) for new tags, colors and slot state, and [0.4.0 release and migration](release-0.4.0-en.md) for the upgrade checklist.
|
|
119
|
+
See [local-draft-2 components and migration](../reference/local-components-v2-en.md) for new tags, colors and slot state, and [0.4.0 release and migration](../releases/release-0.4.0-en.md) for the upgrade checklist. 0.6.0 is available on both `latest` and `next`.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# 源码修订与迁移
|
|
2
2
|
|
|
3
|
-
本文说明 `0.4.0` 中的显式源码修订、编译器的处理方式,以及纯核心 API 与 CLI 迁移工具。语法规则见[语法规范](local-interaction-syntax-ch.md),包版本与 API 兼容规则见[版本与兼容性](compatibility-ch.md),组块升级清单见[0.4.0 发布与迁移](release-0.4.0-ch.md)。
|
|
3
|
+
本文说明 `0.4.0` 中的显式源码修订、编译器的处理方式,以及纯核心 API 与 CLI 迁移工具。语法规则见[语法规范](../reference/local-interaction-syntax-ch.md),包版本与 API 兼容规则见[版本与兼容性](compatibility-ch.md),组块升级清单见[0.4.0 发布与迁移](../releases/release-0.4.0-ch.md)。
|
|
4
4
|
|
|
5
5
|
## 声明修订
|
|
6
6
|
|
|
@@ -156,4 +156,4 @@ reactive-md migrate old.reactive.md --from local-draft-1 --accept-semantic-chang
|
|
|
156
156
|
|
|
157
157
|
迁移处理声明的元数据变化,并检查正文能否跨越修订边界。它不是旧版读取器:不解释 YAML `state`/`data`/`computed`/`actions` 配置块、directive 或其他 draft 之前的语法,也不改写正文。在 `local-draft-2` 下已经无法编译的源码会保持阻止状态,直到作者修复报告的位置。
|
|
158
158
|
|
|
159
|
-
`0.
|
|
159
|
+
`0.6.0` 同时提供于 `latest` 与 `next` 渠道。本页说明从 `0.4.0` 起提供的迁移工具。
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Source revisions and migration
|
|
2
2
|
|
|
3
|
-
This page covers explicit source revisions, how the compiler treats them, and the pure core and CLI migration tools in `0.4.0`. Syntax rules are in the [syntax specification](local-interaction-syntax-en.md); package and API compatibility rules are in [Versions and compatibility](compatibility-en.md); the component upgrade checklist is in [0.4.0 release and migration](release-0.4.0-en.md).
|
|
3
|
+
This page covers explicit source revisions, how the compiler treats them, and the pure core and CLI migration tools in `0.4.0`. Syntax rules are in the [syntax specification](../reference/local-interaction-syntax-en.md); package and API compatibility rules are in [Versions and compatibility](compatibility-en.md); the component upgrade checklist is in [0.4.0 release and migration](../releases/release-0.4.0-en.md).
|
|
4
4
|
|
|
5
5
|
## Declaring a revision
|
|
6
6
|
|
|
@@ -156,4 +156,4 @@ The command migrates one source at a time. This build has no `--write` mode, no
|
|
|
156
156
|
|
|
157
157
|
Migration handles the declared metadata change and checks whether the body can cross the revision boundary. It is not a legacy reader: it does not interpret YAML `state`/`data`/`computed`/`actions` blocks, directives or other pre-draft syntax, and it does not rewrite the body. Source that already fails to compile under `local-draft-2` stays blocked until the author fixes the reported positions.
|
|
158
158
|
|
|
159
|
-
`0.
|
|
159
|
+
`0.6.0` is available on both the `latest` and `next` channels. This page documents the migration tools introduced in `0.4.0`.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# 组块开发指南
|
|
2
2
|
|
|
3
|
-
本指南面向为 Reactive MD 新增或修改组件的贡献者。组块包括输入控件、容器、可视化和结构子项。共同契约见[组块协议](component-protocol-ch.md),作者写法见[本地交互语法规范](local-interaction-syntax-ch.md)。
|
|
3
|
+
本指南面向为 Reactive MD 新增或修改组件的贡献者。组块包括输入控件、容器、可视化和结构子项。共同契约见[组块协议](component-protocol-ch.md),作者写法见[本地交互语法规范](../reference/local-interaction-syntax-ch.md)。
|
|
4
4
|
|
|
5
5
|
当前协议为 `component-protocol-2`,适用语法为 `local-draft-2`,当前包版本为 `0.5.2`,即发布在 `next` 渠道的预览版。这三个版本分别表示贡献契约、作者语法和 npm 发布。协议文档更新不自动改变语法或公开 API。
|
|
6
6
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
当前项目通过仓库内代码扩展组块。没有公开的运行时注册器、可装载组件 JSON 或作者导入语法;`LocalComponentSchema`、`LOCAL_COMPONENTS` 和渲染器内部上下文也不是稳定的插件 SDK。验收 JSON 是源码与预期结果,不是组件安装包。
|
|
12
12
|
|
|
13
|
-
组块继续遵守本地简单交互范围。输入通过 `bind` 命名,输出通过表达式读取。网络服务、作者脚本、任意 HTML、事件处理器、作者 CSS 和持久化状态不属于当前作者语言。图片与链接使用宿主控制的 URL 策略,详见[安全策略](
|
|
13
|
+
组块继续遵守本地简单交互范围。输入通过 `bind` 命名,输出通过表达式读取。网络服务、作者脚本、任意 HTML、事件处理器、作者 CSS 和持久化状态不属于当前作者语言。图片与链接使用宿主控制的 URL 策略,详见[安全策略](../../SECURITY-ch.md)。
|
|
14
14
|
|
|
15
15
|
## 2. 从提案到验收
|
|
16
16
|
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
| 可视化 | `src/local/visuals.tsx`、`src/local/math.ts` | `VISUAL_COMPONENTS`、绘图或表格语义、局部错误、计算预算、读数和重置 |
|
|
32
32
|
| 样式 | `src/local/local.css`、`src/local/visuals.css`、`src/theme.css` | 主题变量、类名前缀、焦点、窄屏和文档外样式影响 |
|
|
33
33
|
| 预算与类型 | `src/local/limits.ts`、`src/local/types.ts`、`src/local/render-types.ts` | 新增资源的边界;核心类型不依赖 React;内部节点不成为持久化格式 |
|
|
34
|
-
| 证据与文档 | `tests/`、[验收数据](
|
|
34
|
+
| 证据与文档 | `tests/`、[验收数据](../../examples/conformance/README.md)、[语法规范](../reference/local-interaction-syntax-ch.md) | 具体行为用例、可复制示例、迁移和检查记录 |
|
|
35
35
|
|
|
36
36
|
新增声明不会自动同步解析器、运行时和渲染器。反过来,已有通用校验足够时,也无需为了凑齐文件清单而添加分支。
|
|
37
37
|
|
|
38
38
|
## 3. 怎样判断兼容性
|
|
39
39
|
|
|
40
|
-
按[兼容说明](compatibility-ch.md)和协议 CP-COMPAT 条款判断。项目当前要求作者可见的语法变化建立新语法修订,并提升包次版本;“旧的合法写法仍可用”不等于可以在原语法修订内增加新标签。
|
|
40
|
+
按[兼容说明](../compatibility/compatibility-ch.md)和协议 CP-COMPAT 条款判断。项目当前要求作者可见的语法变化建立新语法修订,并提升包次版本;“旧的合法写法仍可用”不等于可以在原语法修订内增加新标签。
|
|
41
41
|
|
|
42
42
|
| 变化 | 处理 |
|
|
43
43
|
| --- | --- |
|
|
@@ -188,7 +188,7 @@ $$ y = a \sin x $$
|
|
|
188
188
|
|
|
189
189
|
## 6. 按影响选择检查
|
|
190
190
|
|
|
191
|
-
在根目录安装现有依赖后执行检查,环境和完整命令见[贡献指南](
|
|
191
|
+
在根目录安装现有依赖后执行检查,环境和完整命令见[贡献指南](../../CONTRIBUTING-ch.md)。行为变更必须有直接覆盖该行为的测试;以下选择用于确定检查范围。
|
|
192
192
|
|
|
193
193
|
| 改动 | 最小有用检查 |
|
|
194
194
|
| --- | --- |
|
|
@@ -200,11 +200,11 @@ $$ y = a \sin x $$
|
|
|
200
200
|
| 文档、语法、示例或版本 | `npm run test:docs`,对应示例编译及迁移核对 |
|
|
201
201
|
| 完整发布门禁 | `npm run verify:release`;覆盖 Node 端与浏览器检查、真实 tarball 消费和组合文档行为。发布前或改动横跨多行时使用 |
|
|
202
202
|
|
|
203
|
-
`npm run test:components` 执行协议的 `slider`、`tabs`、`plot` 代表性用例和原有语言验收数据。文件格式、字段含义和运行顺序见[验收说明](
|
|
203
|
+
`npm run test:components` 执行协议的 `slider`、`tabs`、`plot` 代表性用例和原有语言验收数据。文件格式、字段含义和运行顺序见[验收说明](../../examples/conformance/README.md)。新增组块继续补自己的用例;这个命令不证明全部 48 个标签名或全部浏览器行为已经认证。新增的 `tests/**/*.test.ts` 或 `.tsx` 也会由已有 `npm test` 和 CI 运行。
|
|
204
204
|
|
|
205
205
|
浏览器检查须记录具体环境和操作。按组件适用性检查真实键盘与焦点、输入法草稿、375px 布局、触控、主题、重置、隐藏与再次显示、计时暂停和卸载清理。已有自动浏览器检查可以提供对应行为的证据;读屏体验等尚未覆盖的项目需要人工检查。静态 SSR 只能证明服务器输出,不能证明真实输入、effect 生命周期或水合。
|
|
206
206
|
|
|
207
207
|
在 PR 中列出实际运行的命令和观察结果。未运行、失败、不适用分别写明,不把清单勾选当成验证证据。
|
|
208
208
|
|
|
209
209
|
|
|
210
|
-
新增组块、颜色、槽位状态与迁移规则见[local-draft-2 扩展说明](local-components-v2-ch.md)。`0.5.2` 是 `next` 渠道的预览版。
|
|
210
|
+
新增组块、颜色、槽位状态与迁移规则见[local-draft-2 扩展说明](../reference/local-components-v2-ch.md)。`0.5.2` 是 `next` 渠道的预览版。
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Component development guide
|
|
2
2
|
|
|
3
|
-
This guide is for contributors adding or changing components in Reactive MD. Components include input controls, containers, visualizations and structural children. The shared contract is in the [component protocol](component-protocol-en.md); the author syntax is in the [local interaction syntax specification](local-interaction-syntax-en.md).
|
|
3
|
+
This guide is for contributors adding or changing components in Reactive MD. Components include input controls, containers, visualizations and structural children. The shared contract is in the [component protocol](component-protocol-en.md); the author syntax is in the [local interaction syntax specification](../reference/local-interaction-syntax-en.md).
|
|
4
4
|
|
|
5
5
|
The current protocol is `component-protocol-2`, the applicable syntax is `local-draft-2`, and the current package version is `0.5.2`, the preview release on the `next` channel. These three versions represent the contribution contract, the author syntax and the npm release. Updating the protocol document does not automatically change the syntax or public API.
|
|
6
6
|
|
|
@@ -10,7 +10,7 @@ A complete component contribution includes a declaration, implementation, exampl
|
|
|
10
10
|
|
|
11
11
|
The project currently extends components through repository code. There is no public runtime registrar, loadable component JSON or author import syntax; `LocalComponentSchema`, `LOCAL_COMPONENTS` and renderer-internal contexts are not a stable plugin SDK either. Conformance JSON contains source and expected results, not a component installation package.
|
|
12
12
|
|
|
13
|
-
Components continue to follow the simple local interaction scope. Inputs are named with `bind`, and outputs are read through expressions. Network services, author scripts, arbitrary HTML, event handlers, author CSS and persisted state are not part of the current author language. Images and links use the host-controlled URL policy; see the [security policy](
|
|
13
|
+
Components continue to follow the simple local interaction scope. Inputs are named with `bind`, and outputs are read through expressions. Network services, author scripts, arbitrary HTML, event handlers, author CSS and persisted state are not part of the current author language. Images and links use the host-controlled URL policy; see the [security policy](../../SECURITY.md) for details.
|
|
14
14
|
|
|
15
15
|
## 2. From proposal to acceptance
|
|
16
16
|
|
|
@@ -31,13 +31,13 @@ Components continue to follow the simple local interaction scope. Inputs are nam
|
|
|
31
31
|
| Visualization | `src/local/visuals.tsx`, `src/local/math.ts` | `VISUAL_COMPONENTS`, plot or table semantics, local errors, computation budgets, readouts and reset |
|
|
32
32
|
| Styles | `src/local/local.css`, `src/local/visuals.css`, `src/theme.css` | Theme variables, class prefixes, focus, narrow screens and styling effects outside the document |
|
|
33
33
|
| Budgets and types | `src/local/limits.ts`, `src/local/types.ts`, `src/local/render-types.ts` | Boundaries for new resources; core types do not depend on React; internal nodes do not become a persistence format |
|
|
34
|
-
| Evidence and documentation | `tests/`, [conformance data](
|
|
34
|
+
| Evidence and documentation | `tests/`, [conformance data](../../examples/conformance/README.md), [syntax specification](../reference/local-interaction-syntax-en.md) | Concrete behavior cases, copyable examples, migration and check records |
|
|
35
35
|
|
|
36
36
|
A new declaration does not automatically synchronize the parser, runtime and renderer. Conversely, when existing generic validation is sufficient, there is no need to add branches just to complete the file checklist.
|
|
37
37
|
|
|
38
38
|
## 3. How to judge compatibility
|
|
39
39
|
|
|
40
|
-
Judge by the [compatibility notes](compatibility-en.md) and the CP-COMPAT clauses of the protocol. The project currently requires author-visible syntax changes to establish a new syntax revision and raise the package minor version; "the old valid form still works" does not mean a new tag can be added within the same syntax revision.
|
|
40
|
+
Judge by the [compatibility notes](../compatibility/compatibility-en.md) and the CP-COMPAT clauses of the protocol. The project currently requires author-visible syntax changes to establish a new syntax revision and raise the package minor version; "the old valid form still works" does not mean a new tag can be added within the same syntax revision.
|
|
41
41
|
|
|
42
42
|
| Change | Handling |
|
|
43
43
|
| --- | --- |
|
|
@@ -188,7 +188,7 @@ Proposals must satisfy applicable MUST clauses. SHOULD deviations record the rea
|
|
|
188
188
|
|
|
189
189
|
## 6. Choosing checks by impact
|
|
190
190
|
|
|
191
|
-
Install existing dependencies in the root directory before running checks; see the [contributing guide](
|
|
191
|
+
Install existing dependencies in the root directory before running checks; see the [contributing guide](../../CONTRIBUTING.md) for the environment and full commands. Behavior changes must have tests that directly cover the behavior; the table below is used to determine the scope of checks.
|
|
192
192
|
|
|
193
193
|
| Change | Minimum useful checks |
|
|
194
194
|
| --- | --- |
|
|
@@ -200,11 +200,11 @@ Install existing dependencies in the root directory before running checks; see t
|
|
|
200
200
|
| Documentation, syntax, examples or versions | `npm run test:docs`, compilation of the corresponding examples and a migration review |
|
|
201
201
|
| Full release gate | `npm run verify:release`; it covers the Node-side and browser checks, packed consumption and combined document behavior. Use it before release or when a change spans several of the rows above |
|
|
202
202
|
|
|
203
|
-
`npm run test:components` runs the protocol's representative `slider`, `tabs` and `plot` cases plus existing language conformance data. See the [conformance notes](
|
|
203
|
+
`npm run test:components` runs the protocol's representative `slider`, `tabs` and `plot` cases plus existing language conformance data. See the [conformance notes](../../examples/conformance/README.md) for file format, field meaning and execution order. New components keep adding their own cases; this command does not prove that all 48 tag names or all browser behavior are certified. Added `tests/**/*.test.ts` or `.tsx` files are also run by the existing `npm test` and CI.
|
|
204
204
|
|
|
205
205
|
Browser checks must record the specific environment and actions. Check real keyboard and focus, IME drafts, 375px layout, touch, themes, reset, hiding and showing again, timer pause and unmount cleanup as applicable to the component. Existing automated browser checks can provide evidence for corresponding behavior; items not yet covered, such as screen reader experience, require manual checks. Static SSR proves only server output, not real input, effect lifecycles or hydration.
|
|
206
206
|
|
|
207
207
|
List the commands actually run and observations in the PR. State not run, failed and not applicable separately; do not treat checked boxes as verification evidence.
|
|
208
208
|
|
|
209
209
|
|
|
210
|
-
See [local-draft-2 components and migration](local-components-v2-en.md) for new tags, colors and slot state. `0.5.2` is the preview release on the `next` channel.
|
|
210
|
+
See [local-draft-2 components and migration](../reference/local-components-v2-en.md) for new tags, colors and slot state. `0.5.2` is the preview release on the `next` channel.
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
协议修订 `component-protocol-2` · 适用语法 `local-draft-2` · 当前包版本 `0.5.2`(预览)
|
|
4
4
|
|
|
5
|
-
Reactive MD 的组块就是语言中的组件。本协议规定组块在贡献、实现和验收中的共同契约,连接作者语法、编译器、运行时、React 参考适配器和机器验收数据。作者写文档时以[本地交互语法规范](local-interaction-syntax-ch.md)为准;宿主接入以[本地模式集成](local-integration-ch.md)为准;本文供贡献者、评审和测试使用。
|
|
5
|
+
Reactive MD 的组块就是语言中的组件。本协议规定组块在贡献、实现和验收中的共同契约,连接作者语法、编译器、运行时、React 参考适配器和机器验收数据。作者写文档时以[本地交互语法规范](../reference/local-interaction-syntax-ch.md)为准;宿主接入以[本地模式集成](../integration/local-integration-ch.md)为准;本文供贡献者、评审和测试使用。
|
|
6
6
|
|
|
7
7
|
| 想了解 | 阅读 |
|
|
8
8
|
| --- | --- |
|
|
9
|
-
| 怎么写文档 | [新用户入门指南](local-guide-ch.md)、[语法规范](local-interaction-syntax-ch.md) |
|
|
9
|
+
| 怎么写文档 | [新用户入门指南](../guides/local-guide-ch.md)、[语法规范](../reference/local-interaction-syntax-ch.md) |
|
|
10
10
|
| 怎么新增或修改组块 | [组块开发指南](component-development-ch.md)、本文第 12、13 节 |
|
|
11
|
-
| 怎么运行验收 | [语言验收数据](
|
|
12
|
-
| 版本和迁移规则 | [版本与兼容性](compatibility-ch.md) |
|
|
13
|
-
| 安全边界 | [安全策略](
|
|
11
|
+
| 怎么运行验收 | [语言验收数据](../../examples/conformance/README.md)、本文第 11 节 |
|
|
12
|
+
| 版本和迁移规则 | [版本与兼容性](../compatibility/compatibility-ch.md) |
|
|
13
|
+
| 安全边界 | [安全策略](../../SECURITY-ch.md) |
|
|
14
14
|
|
|
15
15
|
## 1. 状态、术语与约束力
|
|
16
16
|
|
|
@@ -31,10 +31,10 @@ Reactive MD 分别维护以下版本轴:
|
|
|
31
31
|
|
|
32
32
|
本协议复述现有行为时,以下文件是权威来源:
|
|
33
33
|
|
|
34
|
-
- 作者语法:[本地交互语法规范](local-interaction-syntax-ch.md)。
|
|
35
|
-
- 核心与 React API:[本地模式集成](local-integration-ch.md)。
|
|
36
|
-
- 安全边界与宿主责任:[安全策略](
|
|
37
|
-
- 版本、诊断契约与平台范围:[版本与兼容性](compatibility-ch.md)。
|
|
34
|
+
- 作者语法:[本地交互语法规范](../reference/local-interaction-syntax-ch.md)。
|
|
35
|
+
- 核心与 React API:[本地模式集成](../integration/local-integration-ch.md)。
|
|
36
|
+
- 安全边界与宿主责任:[安全策略](../../SECURITY-ch.md)。
|
|
37
|
+
- 版本、诊断契约与平台范围:[版本与兼容性](../compatibility/compatibility-ch.md)。
|
|
38
38
|
- 实现代码:`src/local/` 下的解析器、声明表、编译器、运行时和渲染器。
|
|
39
39
|
|
|
40
40
|
本协议不复制完整属性表。属性默认值、允许值和静态/动态标记以 `src/local/schema.ts` 和语法规范为准。
|
|
@@ -81,7 +81,7 @@ Reactive MD 分别维护以下版本轴:
|
|
|
81
81
|
| 声明 | `computed`、`const`、`validation` | 按标签解析但不渲染为控件 |
|
|
82
82
|
| 生成数据与可视化 | `data-table`、`column`、`table`、`chart`、`plot`、`timeline`、`diagram`、`node`、`edge` | 生成行、表格、图表、函数曲线、时间轴和图解 |
|
|
83
83
|
|
|
84
|
-
`option`、`tab`、`disclosure`、`node`、`edge`、`step`、`column` 是结构子项,只在指定父组块内出现。`computed`、`const` 是不可见声明;`validation` 在规则不满足时生成可访问的提示。开头的 `<theme>` 声明是文档元数据,不是组块。完整名称和用途见[语法规范第 12 节](local-interaction-syntax-ch.md#12-组件速查与语法裁剪)。
|
|
84
|
+
`option`、`tab`、`disclosure`、`node`、`edge`、`step`、`column` 是结构子项,只在指定父组块内出现。`computed`、`const` 是不可见声明;`validation` 在规则不满足时生成可访问的提示。开头的 `<theme>` 声明是文档元数据,不是组块。完整名称和用途见[语法规范第 12 节](../reference/local-interaction-syntax-ch.md#12-组件速查与语法裁剪)。
|
|
85
85
|
|
|
86
86
|
### CP-MODEL-02 三种形态(现有)
|
|
87
87
|
|
|
@@ -212,7 +212,7 @@ $$ y = x^2 $$
|
|
|
212
212
|
| `steps` | 当前步骤 value,独占 | `steps` |
|
|
213
213
|
| `selection` | 稳定行标识,空字符串表示未选 | 带 key 的 `table`、`chart` |
|
|
214
214
|
|
|
215
|
-
range-slider 和 coordinate 的每个数值槽位也独占拥有绑定;范围、步长、默认值和原子批量写入见[扩展声明](local-components-v2-ch.md)。selection 允许表格和图表共享,但有序标识集合必须相同。新组件继续遵守以下初始化、拒绝写入、隐藏、重置和销毁条款。
|
|
215
|
+
range-slider 和 coordinate 的每个数值槽位也独占拥有绑定;范围、步长、默认值和原子批量写入见[扩展声明](../reference/local-components-v2-ch.md)。selection 允许表格和图表共享,但有序标识集合必须相同。新组件继续遵守以下初始化、拒绝写入、隐藏、重置和销毁条款。
|
|
216
216
|
|
|
217
217
|
`timer`、`checklist`、`tabs`、`diagram` 同时是独占 family:一个公开参数只能由一个组块拥有,其他控件不能声明同名绑定。宿主仍可通过所属节点调用公开的 `runtime.set`,写入遵守同一套校验。
|
|
218
218
|
|
|
@@ -351,7 +351,7 @@ range-slider 和 coordinate 的每个数值槽位也独占拥有绑定;范围
|
|
|
351
351
|
|
|
352
352
|
### CP-DIAG-06 诊断码稳定性(契约)
|
|
353
353
|
|
|
354
|
-
同一 0.x minor 系列内,现有诊断 `code` 的含义保持稳定;允许新增码。删除、改名或改变含义须在新 minor 版本中说明迁移。`message` 是可本地化的显示文案,测试和机器验收按 `code` 与结构化字段判断。计数单位与预算作用域见[诊断与计数规则](diagnostics-counting-ch.md)。
|
|
354
|
+
同一 0.x minor 系列内,现有诊断 `code` 的含义保持稳定;允许新增码。删除、改名或改变含义须在新 minor 版本中说明迁移。`message` 是可本地化的显示文案,测试和机器验收按 `code` 与结构化字段判断。计数单位与预算作用域见[诊断与计数规则](../reference/diagnostics-counting-ch.md)。
|
|
355
355
|
|
|
356
356
|
## 6. 可访问性、主题与样式
|
|
357
357
|
|
|
@@ -369,7 +369,7 @@ range-slider 和 coordinate 的每个数值槽位也独占拥有绑定;范围
|
|
|
369
369
|
|
|
370
370
|
### CP-STYLE-01 全局样式与主题(现有)
|
|
371
371
|
|
|
372
|
-
`reactive-md/styles.css` 是全局样式表,不通过 Shadow DOM 或 CSS Modules 隔离。宿主显式引入一次。主题变量声明在 `.md-document` 和 `.reactive-md-theme` 上。文档级主题选择、登记与深浅模式遵从[主题协议](theme-protocol-ch.md);`colorScheme="auto"` 读取最近祖先的显式模式或系统偏好,兼容 `data-theme="dark|light"`。
|
|
372
|
+
`reactive-md/styles.css` 是全局样式表,不通过 Shadow DOM 或 CSS Modules 隔离。宿主显式引入一次。主题变量声明在 `.md-document` 和 `.reactive-md-theme` 上。文档级主题选择、登记与深浅模式遵从[主题协议](../reference/theme-protocol-ch.md);`colorScheme="auto"` 读取最近祖先的显式模式或系统偏好,兼容 `data-theme="dark|light"`。
|
|
373
373
|
|
|
374
374
|
### CP-STYLE-02 样式钩子不是 API(现有)
|
|
375
375
|
|
|
@@ -450,7 +450,7 @@ range-slider 和 coordinate 的每个数值槽位也独占拥有绑定;范围
|
|
|
450
450
|
| 整份文档的生成单元格预算 | 10,000 |
|
|
451
451
|
| 生成表格文字 | 每张表 100,000 个 UTF-16 代码单元 |
|
|
452
452
|
|
|
453
|
-
表中的“字符”均指 UTF-16 代码单元;文本控件的 `min-length` / `max-length` 与字符串 `len()` 按 Unicode 码点计数。超限写入被拒绝,运行时保持上一次合法状态;编译期超限返回诊断。表达式和数学计算另有长度、节点、深度和记号预算,完整单位与累计范围见[诊断与计数规则](diagnostics-counting-ch.md)。隐藏区域仍计入绘图预算。宿主仍需控制请求大小、并发与超时。
|
|
453
|
+
表中的“字符”均指 UTF-16 代码单元;文本控件的 `min-length` / `max-length` 与字符串 `len()` 按 Unicode 码点计数。超限写入被拒绝,运行时保持上一次合法状态;编译期超限返回诊断。表达式和数学计算另有长度、节点、深度和记号预算,完整单位与累计范围见[诊断与计数规则](../reference/diagnostics-counting-ch.md)。隐藏区域仍计入绘图预算。宿主仍需控制请求大小、并发与超时。
|
|
454
454
|
|
|
455
455
|
### CP-SEC-04 宿主责任(现有)
|
|
456
456
|
|
|
@@ -565,7 +565,7 @@ range-slider 和 coordinate 的每个数值槽位也独占拥有绑定;范围
|
|
|
565
565
|
|
|
566
566
|
机器验收集的根对象只包含 `protocolVersion`、`syntaxVersion` 和非空 `cases`。现有作者组块集把前两者固定为 `component-protocol-1` 和 `local-draft-2`,并作为第 14 节所述的 v1 冻结基线;包版本由 `package.json` 标识,不从这两个字段推断。
|
|
567
567
|
|
|
568
|
-
每个 case 至少包含唯一字符串 `id`、组块名 `component`、源码 `source`、布尔 `ok` 和去重诊断码集合 `codes`。可选字段 `initial`、`bindingNames`、`actions`、`reset`、`text`、`expectedText`、`htmlIncludes`、`htmlExcludes` 按[语言验收数据说明](
|
|
568
|
+
每个 case 至少包含唯一字符串 `id`、组块名 `component`、源码 `source`、布尔 `ok` 和去重诊断码集合 `codes`。可选字段 `initial`、`bindingNames`、`actions`、`reset`、`text`、`expectedText`、`htmlIncludes`、`htmlExcludes` 按[语言验收数据说明](../../examples/conformance/README.md)和仓库附带的 JSON Schema 使用。完整格式以该说明和 Schema 为准,本协议只规定语义门槛。
|
|
569
569
|
|
|
570
570
|
运行器必须:
|
|
571
571
|
|
|
@@ -606,7 +606,7 @@ range-slider 和 coordinate 的每个数值槽位也独占拥有绑定;范围
|
|
|
606
606
|
|
|
607
607
|
### CP-ACCEPT-05 命令门槛与豁免(要求)
|
|
608
608
|
|
|
609
|
-
协议样例门槛使用 `npm run test:components`,运行 `examples/conformance/component-protocol-1.json` 和语言 conformance;它不替代完整测试、构建、文档检查或人工浏览器检查。完整检查命令见[贡献指南](
|
|
609
|
+
协议样例门槛使用 `npm run test:components`,运行 `examples/conformance/component-protocol-1.json` 和语言 conformance;它不替代完整测试、构建、文档检查或人工浏览器检查。完整检查命令见[贡献指南](../../CONTRIBUTING-ch.md)和[组块开发指南](component-development-ch.md)。
|
|
610
610
|
|
|
611
611
|
只有 SHOULD 条款可以豁免;豁免必须在提案中记录理由、替代证据和影响范围。MUST 条款不能豁免,只能通过协议修订改变。
|
|
612
612
|
|
|
@@ -744,4 +744,4 @@ React 视图把 `hostComponent` 节点分发给 `hostRenderer(node, data, ctx)`
|
|
|
744
744
|
| `component-protocol-1` | 2026-10-23 | 初版;最初适用于 `local-draft-1` 和包版本 `0.3.0`,定义组块贡献、验收和扩展边界。现在适用于 `local-draft-2` 和 `0.4.0` 预览版,MUST 条款和机器格式不变。 |
|
|
745
745
|
|
|
746
746
|
|
|
747
|
-
新增组块、颜色、槽位状态与迁移规则见[local-draft-2 扩展说明](local-components-v2-ch.md),升级清单见[0.4.0 发布与迁移](release-0.4.0-ch.md)。`0.
|
|
747
|
+
新增组块、颜色、槽位状态与迁移规则见[local-draft-2 扩展说明](../reference/local-components-v2-ch.md),升级清单见[0.4.0 发布与迁移](../releases/release-0.4.0-ch.md)。`0.6.0` 同时提供于 `latest` 与 `next` 渠道。
|