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