reactive-md 0.9.1 → 0.9.3
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 +44 -0
- package/CHANGELOG.md +44 -0
- package/README-ch.md +7 -7
- package/README-en.md +6 -6
- package/README.md +7 -7
- package/cli/init.mjs +1 -1
- package/dist-library/LocalDocumentView-D6zQkTkt.js +112 -0
- package/dist-library/{LocalDocumentViewCore-GiWV3bey.js → LocalDocumentViewCore-CmJhemcA.js} +387 -9471
- package/dist-library/LocalReactiveDocumentCore-lAKOGAZ7.js +283 -0
- package/dist-library/LocalStaticDocumentView-2J7w0sKm.js +143 -0
- package/dist-library/{authoring-Dsune4Hy.js → authoring-B14SsOXZ.js} +68 -67
- package/dist-library/chart-B1TUtzm-.js +3 -0
- package/dist-library/color-values-r8Wf7ALn.js +6 -0
- package/dist-library/{compile-wUv8KEge.js → compile-D50B5_Ww.js} +32 -32
- package/dist-library/compile-cache-key-6GgpETz_.js +28 -0
- package/dist-library/compiler-DLkKUK4t.js +98 -0
- package/dist-library/{compiler-core-As_m-MNm.js → compiler-core-Niqhp9wV.js} +2963 -3283
- package/dist-library/{registry-core-Bbad9Bm2.js → component-kernel-IG4wOO0i.js} +72 -195
- package/dist-library/component-state-CwKX_SN5.js +763 -0
- package/dist-library/{component-state-C52ZFJGl.js → component-state-Ht-hOK0W.js} +15 -14
- package/dist-library/component-utils-eSj5IdG4.js +338 -0
- package/dist-library/computations-CffoW7Ff.js +340 -0
- package/dist-library/config-validation-Cpol91_M.js +456 -0
- package/dist-library/controls-B-CLSK8Q.js +5927 -0
- package/dist-library/controls-DWlx-AQl.js +3 -0
- package/dist-library/{coordinate-CWS9p5q_.js → coordinate-PyLPMIQK.js} +85 -85
- package/dist-library/data-BtFlkJzp.js +3 -0
- package/dist-library/{data-table-Bgccxd7h.js → data-table-Kv_ZA2Z2.js} +14 -13
- package/dist-library/data-visuals-_Z7QqYTk.js +384 -0
- package/dist-library/{default-components-BwQf0oP-.js → default-components-jugH7Ubr.js} +333 -331
- package/dist-library/{config-BadfhjdP.js → default-config-DIrRpuQz.js} +96 -79
- package/dist-library/default-options-DU5dxuU6.js +125 -0
- package/dist-library/{registry-B9NGct4d.js → default-registry-BlloaZi7.js} +4 -4
- package/dist-library/default-schema-Ch-Vznpm.js +33 -0
- package/dist-library/diagram-BLepzI8l.js +3 -0
- package/dist-library/{display-B-VhqVND.js → display-y4v9v0Qd.js} +1 -1
- package/dist-library/dist-Cueh1Psp.js +4761 -0
- package/dist-library/{config-validation-F47AcE6o.js → document-theme-DBAfnk7y.js} +248 -731
- package/dist-library/{export-BqVmTXm8.js → export-heVBqgxA.js} +46 -44
- package/dist-library/gallery-BC6FYTqw.js +3 -0
- package/dist-library/{gallery-CY6mTx8i.js → gallery-Q6VPS2ep.js} +1 -1
- package/dist-library/{html-CNT4KD-2.js → html-CCnvzan1.js} +56 -54
- package/dist-library/identity-BUx0Q_-d.js +40 -0
- package/dist-library/{incremental-Dv0FSp_U.js → incremental-Bzvh8_lB.js} +529 -380
- package/dist-library/{layout-C0YlEPGr.js → layout-BfUzzO2b.js} +147 -156
- package/dist-library/layout-BnfDeUNy.js +3 -0
- package/dist-library/limits-CFERRrlC.js +10 -0
- package/dist-library/localization-COdJ6lw2.js +6 -0
- package/dist-library/mafs-CnzDC5CR.js +3 -0
- package/dist-library/math-view-B0jthpRw.js +20 -0
- package/dist-library/motion-tokens-Czk0RDmS.js +283 -0
- package/dist-library/mount-preset-C_i37FvY.js +24 -0
- package/dist-library/numeric-sliders-CkWS0-ja.js +542 -0
- package/dist-library/observability-CYLuvFfL.js +502 -0
- package/dist-library/observability-core-Bcu7vpnl.js +24 -0
- package/dist-library/{package-core-WFK1RhAZ.js → package-core-9UK5ZdqB.js} +57 -46
- package/dist-library/parser-9yNJxGip.js +8 -0
- package/dist-library/parser-standard-BPIy4HOu.js +4872 -0
- package/dist-library/plugin-packs-CZb46nuv.js +19 -0
- package/dist-library/preset-core-BW3NWZJ9.js +1300 -0
- package/dist-library/props-pJRrfDc6.js +179 -0
- package/dist-library/react-BSo0o998.js +32 -0
- package/dist-library/reactive-md-authoring.js +274 -263
- package/dist-library/reactive-md-build.js +55 -20
- package/dist-library/reactive-md-compiler-session.js +4 -0
- package/dist-library/reactive-md-compiler-standard.js +6 -6
- package/dist-library/reactive-md-compiler.js +3 -3
- package/dist-library/reactive-md-contracts.js +6 -0
- package/dist-library/reactive-md-default-packs.js +31 -14
- package/dist-library/reactive-md-default-preset.js +7 -6
- package/dist-library/reactive-md-export.js +6 -5
- package/dist-library/reactive-md-minimal-preset.js +2 -2
- package/dist-library/reactive-md-minimal-react-preset.js +22 -20
- package/dist-library/reactive-md-minimal.css +1 -1
- package/dist-library/reactive-md-observability.js +126 -0
- package/dist-library/reactive-md-pack-style-manifest.js +797 -0
- package/dist-library/reactive-md-plugin-chart.js +6 -5
- package/dist-library/reactive-md-plugin-data.js +8 -8
- package/dist-library/reactive-md-plugin-diagram.js +7 -6
- package/dist-library/reactive-md-plugin-forms.js +14 -13
- package/dist-library/reactive-md-plugin-gallery.js +6 -5
- package/dist-library/reactive-md-plugin-navigation.js +9 -9
- package/dist-library/reactive-md-plugin-network.js +13 -12
- package/dist-library/reactive-md-plugin-plot.js +7 -6
- package/dist-library/reactive-md-react-component-accordion.js +10 -0
- package/dist-library/reactive-md-react-component-alert.js +10 -0
- package/dist-library/reactive-md-react-component-anchor.js +10 -0
- package/dist-library/reactive-md-react-component-badge.js +10 -0
- package/dist-library/reactive-md-react-component-card.js +10 -0
- package/dist-library/reactive-md-react-component-chart.js +22 -0
- package/dist-library/reactive-md-react-component-checkbox.js +10 -0
- package/dist-library/reactive-md-react-component-checklist.js +10 -0
- package/dist-library/reactive-md-react-component-choices.js +10 -0
- package/dist-library/reactive-md-react-component-column.js +6 -0
- package/dist-library/reactive-md-react-component-coordinate.js +21 -0
- package/dist-library/reactive-md-react-component-counter.js +10 -0
- package/dist-library/reactive-md-react-component-data-table.js +14 -0
- package/dist-library/reactive-md-react-component-date.js +10 -0
- package/dist-library/reactive-md-react-component-diagram.js +22 -0
- package/dist-library/reactive-md-react-component-disclosure.js +10 -0
- package/dist-library/reactive-md-react-component-edge.js +22 -0
- package/dist-library/reactive-md-react-component-gallery-item.js +10 -0
- package/dist-library/reactive-md-react-component-gallery.js +10 -0
- package/dist-library/reactive-md-react-component-grid.js +10 -0
- package/dist-library/reactive-md-react-component-if.js +10 -0
- package/dist-library/reactive-md-react-component-input.js +10 -0
- package/dist-library/reactive-md-react-component-jump.js +10 -0
- package/dist-library/reactive-md-react-component-multi-select.js +10 -0
- package/dist-library/reactive-md-react-component-node.js +22 -0
- package/dist-library/reactive-md-react-component-number.js +10 -0
- package/dist-library/reactive-md-react-component-option.js +10 -0
- package/dist-library/reactive-md-react-component-panel.js +10 -0
- package/dist-library/reactive-md-react-component-plot.js +26 -0
- package/dist-library/reactive-md-react-component-progress.js +10 -0
- package/dist-library/reactive-md-react-component-quiz.js +10 -0
- package/dist-library/reactive-md-react-component-radio-group.js +10 -0
- package/dist-library/reactive-md-react-component-range-slider.js +10 -0
- package/dist-library/reactive-md-react-component-section.js +10 -0
- package/dist-library/reactive-md-react-component-select.js +10 -0
- package/dist-library/reactive-md-react-component-slider.js +10 -0
- package/dist-library/reactive-md-react-component-step.js +10 -0
- package/dist-library/reactive-md-react-component-steps.js +10 -0
- package/dist-library/reactive-md-react-component-tab.js +10 -0
- package/dist-library/reactive-md-react-component-table.js +14 -0
- package/dist-library/reactive-md-react-component-tabs.js +10 -0
- package/dist-library/reactive-md-react-component-text.js +10 -0
- package/dist-library/reactive-md-react-component-textarea.js +10 -0
- package/dist-library/reactive-md-react-component-timeline.js +14 -0
- package/dist-library/reactive-md-react-component-timer.js +10 -0
- package/dist-library/reactive-md-react-component-toggle.js +10 -0
- package/dist-library/reactive-md-react-component-tooltip.js +10 -0
- package/dist-library/reactive-md-react-component-validation.js +10 -0
- package/dist-library/reactive-md-react-minimal.js +4 -4
- package/dist-library/reactive-md-react-pack-controls.js +44 -0
- package/dist-library/reactive-md-react-pack-data.js +21 -0
- package/dist-library/reactive-md-react-pack-layout.js +36 -0
- package/dist-library/reactive-md-react-pack-visuals.js +43 -0
- package/dist-library/reactive-md-react-packed.js +50 -0
- package/dist-library/reactive-md-react-server.js +26 -25
- package/dist-library/reactive-md-react-static-server.js +24 -0
- package/dist-library/reactive-md-react-static.js +1 -0
- package/dist-library/reactive-md-react-unstyled.js +15 -12
- package/dist-library/reactive-md-react.js +15 -12
- package/dist-library/reactive-md-runtime-browser.js +2 -1
- package/dist-library/reactive-md-runtime.js +4 -3
- package/dist-library/reactive-md-scan.js +1 -0
- package/dist-library/reactive-md-sdk.js +9 -8
- 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 +32 -32
- package/dist-library/reactive-md-testing.js +12 -12
- package/dist-library/reactive-md-worker-pool.js +401 -0
- package/dist-library/reactive-md.css +1 -1
- package/dist-library/reactive-md.js +84 -1361
- package/dist-library/registry-core-CziAIP5P.js +125 -0
- package/dist-library/render-nodes-DKjg_TR1.js +9369 -0
- package/dist-library/{resources-D2GDQS0p.js → requirements-DhIkxAbl.js} +37 -84
- package/dist-library/resources-B_nbROgj.js +74 -0
- package/dist-library/rmd-pack-controls.css +1032 -0
- package/dist-library/rmd-pack-data.css +724 -0
- package/dist-library/rmd-pack-layout.css +1825 -0
- package/dist-library/rmd-pack-resource-chart.css +300 -0
- package/dist-library/rmd-pack-resource-controls.css +781 -0
- package/dist-library/rmd-pack-resource-data-visuals.css +501 -0
- package/dist-library/rmd-pack-resource-diagram.css +106 -0
- package/dist-library/rmd-pack-resource-gallery.css +346 -0
- package/dist-library/rmd-pack-resource-graphics.css +516 -0
- package/dist-library/rmd-pack-resource-layout.css +1480 -0
- package/dist-library/rmd-pack-resource-mafs-core.css +124 -0
- package/dist-library/rmd-pack-resource-mafs.css +129 -0
- package/dist-library/rmd-pack-resource-visual-base.css +224 -0
- package/dist-library/rmd-pack-visuals.css +1394 -0
- package/dist-library/{runtime-B2fxeveq.js → runtime-BDnnimPA.js} +17 -16
- package/dist-library/{runtime-kcA7bG7G.js → runtime-CuJndKqK.js} +320 -313
- package/dist-library/runtime-requirement-C4-vNcf5.js +769 -0
- package/dist-library/schema-core-4sd1Vu7V.js +132 -0
- package/dist-library/{sdk-core-BoJT1SIt.js → sdk-core-BLsW9cCy.js} +494 -520
- package/dist-library/{session-core-nmJHuR9c.js → session-core-DLBRPV7f.js} +33 -31
- package/dist-library/{shareable-DpbE-59H.js → shareable-C6mUerpQ.js} +215 -209
- package/dist-library/shared-bTzN-F4g.js +3 -0
- package/dist-library/structural-views-30-YD_TJ.js +11 -0
- package/dist-library/table-surface-CfZn_tk-.js +13 -0
- package/dist-library/types/assemblies/compile-cache-key.d.ts +11 -0
- package/dist-library/types/assemblies/default-config.d.ts +35 -0
- package/dist-library/types/{local/configuration/options.d.ts → assemblies/default-options.d.ts} +4 -4
- package/dist-library/types/assemblies/default-registry.d.ts +18 -0
- package/dist-library/types/{local/configuration/schema.d.ts → assemblies/default-schema.d.ts} +4 -4
- package/dist-library/types/authoring/catalog.d.ts +11 -1
- package/dist-library/types/authoring/extensions.d.ts +1 -1
- package/dist-library/types/authoring/index.d.ts +3 -3
- package/dist-library/types/authoring/templates.d.ts +1 -1
- package/dist-library/types/build/diagnostics.d.ts +1 -1
- package/dist-library/types/compiler/index.d.ts +1 -0
- package/dist-library/types/compiler/session.d.ts +19 -0
- package/dist-library/types/compiler/standard.d.ts +1 -0
- package/dist-library/types/components/entries/accordion.d.ts +3 -0
- package/dist-library/types/components/entries/alert.d.ts +3 -0
- package/dist-library/types/components/entries/anchor.d.ts +3 -0
- package/dist-library/types/components/entries/badge.d.ts +3 -0
- package/dist-library/types/components/entries/card.d.ts +3 -0
- package/dist-library/types/components/entries/chart.d.ts +3 -0
- package/dist-library/types/components/entries/checkbox.d.ts +3 -0
- package/dist-library/types/components/entries/checklist.d.ts +3 -0
- package/dist-library/types/components/entries/choices.d.ts +3 -0
- package/dist-library/types/components/entries/column.d.ts +3 -0
- package/dist-library/types/components/entries/coordinate.d.ts +3 -0
- package/dist-library/types/components/entries/counter.d.ts +3 -0
- package/dist-library/types/components/entries/data-table.d.ts +3 -0
- package/dist-library/types/components/entries/date.d.ts +3 -0
- package/dist-library/types/components/entries/diagram.d.ts +3 -0
- package/dist-library/types/components/entries/disclosure.d.ts +3 -0
- package/dist-library/types/components/entries/edge.d.ts +3 -0
- package/dist-library/types/components/entries/gallery-item.d.ts +3 -0
- package/dist-library/types/components/entries/gallery.d.ts +3 -0
- package/dist-library/types/components/entries/grid.d.ts +3 -0
- package/dist-library/types/components/entries/if.d.ts +3 -0
- package/dist-library/types/components/entries/input.d.ts +3 -0
- package/dist-library/types/components/entries/jump.d.ts +3 -0
- package/dist-library/types/components/entries/multi-select.d.ts +3 -0
- package/dist-library/types/components/entries/node.d.ts +3 -0
- package/dist-library/types/components/entries/number.d.ts +3 -0
- package/dist-library/types/components/entries/option.d.ts +3 -0
- package/dist-library/types/components/entries/panel.d.ts +3 -0
- package/dist-library/types/components/entries/plot.d.ts +3 -0
- package/dist-library/types/components/entries/progress.d.ts +3 -0
- package/dist-library/types/components/entries/quiz.d.ts +3 -0
- package/dist-library/types/components/entries/radio-group.d.ts +3 -0
- package/dist-library/types/components/entries/range-slider.d.ts +3 -0
- package/dist-library/types/components/entries/section.d.ts +3 -0
- package/dist-library/types/components/entries/select.d.ts +3 -0
- package/dist-library/types/components/entries/slider.d.ts +3 -0
- package/dist-library/types/components/entries/step.d.ts +3 -0
- package/dist-library/types/components/entries/steps.d.ts +3 -0
- package/dist-library/types/components/entries/tab.d.ts +3 -0
- package/dist-library/types/components/entries/table.d.ts +3 -0
- package/dist-library/types/components/entries/tabs.d.ts +3 -0
- package/dist-library/types/components/entries/text.d.ts +3 -0
- package/dist-library/types/components/entries/textarea.d.ts +3 -0
- package/dist-library/types/components/entries/timeline.d.ts +3 -0
- package/dist-library/types/components/entries/timer.d.ts +3 -0
- package/dist-library/types/components/entries/toggle.d.ts +3 -0
- package/dist-library/types/components/entries/tooltip.d.ts +3 -0
- package/dist-library/types/components/entries/validation.d.ts +3 -0
- package/dist-library/types/components/layout/layout.d.ts +1 -3
- package/dist-library/types/components/layout/structural-views.d.ts +3 -0
- package/dist-library/types/components/mount-preset.d.ts +2 -0
- package/dist-library/types/components/packs/controls.d.ts +2 -0
- package/dist-library/types/components/packs/data.d.ts +2 -0
- package/dist-library/types/components/packs/layout.d.ts +2 -0
- package/dist-library/types/components/packs/visuals.d.ts +2 -0
- package/dist-library/types/components/shared/data-visuals.d.ts +3 -0
- package/dist-library/types/components/shared/table-surface.d.ts +10 -0
- package/dist-library/types/components/shared/visual-helpers.d.ts +24 -0
- package/dist-library/types/components/shared/visuals.d.ts +0 -2
- package/dist-library/types/components/table/data-table-model.d.ts +48 -0
- package/dist-library/types/components/table/data-table.d.ts +1 -48
- package/dist-library/types/{local/configuration → contracts}/component-kernel.d.ts +4 -2
- package/dist-library/types/contracts/index.d.ts +8 -0
- package/dist-library/types/{local/configuration → contracts}/limits.d.ts +9 -1
- package/dist-library/types/contracts/localization.d.ts +6 -0
- package/dist-library/types/contracts/runtime-types.d.ts +19 -0
- package/dist-library/types/local/compilation/cache-version.d.ts +1 -0
- package/dist-library/types/local/compilation/compile-status.d.ts +2 -0
- package/dist-library/types/local/compilation/compiler-bindings.d.ts +1 -1
- package/dist-library/types/local/compilation/compiler-capabilities.d.ts +4 -1
- package/dist-library/types/local/compilation/compiler-core.d.ts +1 -1
- package/dist-library/types/local/compilation/compiler-embedding.d.ts +20 -0
- package/dist-library/types/local/compilation/compiler-expressions.d.ts +5 -4
- package/dist-library/types/local/compilation/compiler-structure.d.ts +1 -1
- package/dist-library/types/local/compilation/compiler-tables.d.ts +3 -2
- package/dist-library/types/local/compilation/compiler-validation.d.ts +5 -9
- package/dist-library/types/local/compilation/compiler-values.d.ts +1 -1
- package/dist-library/types/local/compilation/compiler.d.ts +1 -1
- package/dist-library/types/local/compilation/component-usage.d.ts +2 -0
- package/dist-library/types/local/compilation/runtime-requirement.d.ts +3 -0
- package/dist-library/types/local/compilation/session/incremental.d.ts +5 -1
- package/dist-library/types/local/compilation/streaming.d.ts +1 -1
- package/dist-library/types/local/configuration/diagnostic-messages.d.ts +55 -0
- package/dist-library/types/local/configuration/embedding.d.ts +4 -0
- package/dist-library/types/local/configuration/kernel-value-rules.d.ts +1 -1
- package/dist-library/types/local/configuration/options-core.d.ts +8 -2
- package/dist-library/types/local/index.d.ts +12 -1
- package/dist-library/types/local/observability-codes.d.ts +2 -0
- package/dist-library/types/local/observability-core.d.ts +44 -0
- package/dist-library/types/local/observability-messages.d.ts +6 -0
- package/dist-library/types/local/observability.d.ts +45 -0
- package/dist-library/types/local/parsing/parse-budget.d.ts +18 -2
- package/dist-library/types/local/parsing/parser-internals.d.ts +2 -1
- package/dist-library/types/local/parsing/parser-region.d.ts +13 -2
- package/dist-library/types/local/parsing/parser-tags.d.ts +6 -1
- package/dist-library/types/local/parsing/rmd-recovery.d.ts +8 -0
- package/dist-library/types/local/performance-report.d.ts +70 -0
- package/dist-library/types/local/runtime/runtime-pool.d.ts +14 -0
- package/dist-library/types/local/transport/worker-handler.d.ts +3 -0
- package/dist-library/types/local/transport/worker-job.d.ts +12 -2
- package/dist-library/types/local/transport/worker-pool.d.ts +68 -0
- package/dist-library/types/local/transport/worker.d.ts +66 -1
- package/dist-library/types/local/types.d.ts +45 -25
- package/dist-library/types/observability.d.ts +8 -0
- package/dist-library/types/presets/default-semantics.d.ts +1 -1
- package/dist-library/types/presets/identity.d.ts +1 -8
- package/dist-library/types/presets/pack-style-entry.d.ts +3 -0
- package/dist-library/types/presets/pack-style-manifest.d.ts +11 -0
- package/dist-library/types/react/component-api.d.ts +3 -2
- package/dist-library/types/react/component-loader.d.ts +61 -0
- package/dist-library/types/react/component-primitives.d.ts +5 -5
- package/dist-library/types/react/index.d.ts +9 -5
- package/dist-library/types/react/localization.d.ts +5 -6
- package/dist-library/types/react/minimal.d.ts +2 -2
- package/dist-library/types/react/package-core.d.ts +3 -0
- package/dist-library/types/react/packed.d.ts +17 -0
- package/dist-library/types/react/render-lifecycle.d.ts +9 -0
- package/dist-library/types/{local → react}/rendering/document/ExtendedHtmlFragment.d.ts +1 -1
- package/dist-library/types/{local → react}/rendering/document/LocalDocumentViewCore.d.ts +11 -4
- package/dist-library/types/react/rendering/document/LocalPooledDocumentView.d.ts +8 -0
- package/dist-library/types/react/rendering/document/LocalReactiveDocumentCore.d.ts +6 -0
- package/dist-library/types/react/rendering/document/LocalStaticDocumentView.d.ts +18 -0
- package/dist-library/types/react/rendering/document/StaticExternalSlot.d.ts +25 -0
- package/dist-library/types/react/rendering/document/StaticHostData.d.ts +14 -0
- package/dist-library/types/{local → react}/rendering/document/render-nodes.d.ts +8 -8
- package/dist-library/types/react/rendering/document/static-runtime.d.ts +11 -0
- package/dist-library/types/{local → react}/rendering/document/use-author-script.d.ts +2 -2
- package/dist-library/types/{local → react}/rendering/document/validation-state.d.ts +2 -2
- package/dist-library/types/{local → react}/rendering/document/view-render-context.d.ts +40 -8
- package/dist-library/types/{local → react}/rendering/document/view-revision.d.ts +2 -2
- package/dist-library/types/{local → react}/rendering/render-types.d.ts +5 -5
- package/dist-library/types/react/rendering/table/data-table.d.ts +5 -0
- package/dist-library/types/{local → react}/rendering/table/table-numeric-columns.d.ts +3 -3
- package/dist-library/types/react/sdk-core.d.ts +12 -3
- package/dist-library/types/react/sdk.d.ts +2 -1
- package/dist-library/types/react/server.d.ts +3 -10
- package/dist-library/types/react/static-server.d.ts +12 -0
- package/dist-library/types/scan/index.d.ts +15 -0
- package/dist-library/types/sdk/config.d.ts +2 -35
- package/dist-library/types/sdk/default-identity.d.ts +3 -0
- package/dist-library/types/sdk/index.d.ts +1 -1
- package/dist-library/types/sdk/preset.d.ts +9 -0
- package/dist-library/types/sdk/props.d.ts +8 -3
- package/dist-library/types/sdk/registry-core.d.ts +2 -2
- package/dist-library/types/sdk/registry.d.ts +2 -18
- package/dist-library/types/sdk/types.d.ts +2 -2
- package/dist-library/types/sdk/version.d.ts +2 -0
- package/dist-library/types/standalone/session-core.d.ts +1 -1
- package/dist-library/{types-BeNtPqdY.js → types-Bza88SGK.js} +1 -1
- package/dist-library/types-daDo2c_w.js +3 -0
- package/dist-library/use-hydrated-W-laKPhY.js +22975 -0
- package/dist-library/validation-XXlb-spV.js +860 -0
- package/dist-library/version-B0G1699c.js +138 -0
- package/dist-library/visual-frame-y5RFhJ0_.js +19 -0
- package/dist-library/visual-helpers-CRmaqCHX.js +75 -0
- package/dist-library/visuals-CdHezgh5.js +3 -0
- package/dist-library/visuals-CoVSjVD8.js +49159 -0
- package/dist-library/worker-D6WMV8xJ.js +1632 -0
- package/dist-standalone/reactive-md-standalone.css +1 -1
- package/dist-standalone/reactive-md-standalone.js +119 -118
- package/docs/README-ch.md +8 -1
- package/docs/README.md +8 -1
- package/docs/compatibility/api-stability-ch.md +25 -0
- package/docs/compatibility/api-stability-en.md +25 -0
- package/docs/compatibility/compatibility-ch.md +32 -15
- package/docs/compatibility/compatibility-en.md +32 -15
- package/docs/compatibility/compatibility-manifest.schema.json +161 -0
- package/docs/compatibility/deprecation-ch.md +21 -0
- package/docs/compatibility/deprecation-en.md +21 -0
- package/docs/compatibility/source-versioning-ch.md +1 -1
- package/docs/compatibility/source-versioning-en.md +1 -1
- package/docs/compatibility/support-matrix-ch.md +108 -0
- package/docs/compatibility/support-matrix-en.md +108 -0
- package/docs/development/component-development-ch.md +2 -2
- package/docs/development/component-development-en.md +2 -2
- package/docs/development/component-development-reference-ch.md +16 -0
- package/docs/development/component-development-reference-en.md +16 -0
- package/docs/development/component-protocol-ch.md +31 -11
- package/docs/development/component-protocol-en.md +31 -11
- package/docs/integration/author-tools-ch.md +3 -1
- package/docs/integration/author-tools-en.md +3 -1
- package/docs/integration/compiler-ch.md +42 -1
- package/docs/integration/compiler-en.md +42 -1
- package/docs/integration/editor-ch.md +2 -2
- package/docs/integration/editor-en.md +2 -2
- package/docs/integration/extension-sdk-ch.md +6 -2
- package/docs/integration/extension-sdk-en.md +6 -2
- package/docs/integration/local-integration-ch.md +4 -2
- package/docs/integration/local-integration-en.md +4 -2
- package/docs/reference/public-api-ch.md +143 -7
- package/docs/reference/public-api-en.md +143 -7
- package/docs/releases/release-0.9.2-ch.md +33 -0
- package/docs/releases/release-0.9.2-en.md +33 -0
- package/docs/releases/release-0.9.3-ch.md +45 -0
- package/docs/releases/release-0.9.3-en.md +45 -0
- package/examples/integration/README-ch.md +36 -4
- package/examples/integration/README.md +36 -4
- package/examples/integration/chat-session/index.mjs +91 -0
- package/examples/integration/chat-session/package.json +10 -0
- package/examples/integration/static-embed/embed.mjs +44 -0
- package/examples/integration/static-embed/index.html +12 -0
- package/examples/integration/static-embed/main.mjs +24 -0
- package/examples/integration/static-embed/references.mjs +5 -0
- package/examples/integration/static-embed/render.mjs +10 -0
- package/package.json +67 -2
- package/dist-library/LocalDocumentView-sthUP0ct.js +0 -109
- package/dist-library/LocalReactiveDocumentCore-ZjQSGyHE.js +0 -275
- package/dist-library/compiler-eOfcinZs.js +0 -62
- package/dist-library/component-state-BoLCGee4.js +0 -801
- package/dist-library/controls-CcT6n7k_.js +0 -6740
- package/dist-library/mount-preset-KxvtKgJb.js +0 -13
- package/dist-library/options-1aDLK7JY.js +0 -121
- package/dist-library/parser-standard-Yuf3A_VI.js +0 -9630
- package/dist-library/plugin-packs-B1XPWcFs.js +0 -18
- package/dist-library/preset-core-CKc5YXSM.js +0 -1443
- package/dist-library/props-sJ8vk0cr.js +0 -183
- package/dist-library/react-D5iGiUdL.js +0 -7
- package/dist-library/schema-BufhKUSM.js +0 -40
- package/dist-library/types/local/rendering/document/LocalReactiveDocumentCore.d.ts +0 -6
- package/dist-library/types/local/rendering/table/data-table.d.ts +0 -13
- package/dist-library/validation-BEBA_HvS.js +0 -1121
- package/dist-library/visual-frame-CyV1FXzs.js +0 -48
- package/dist-library/visuals-BZbZYA7w.js +0 -72572
- /package/dist-library/types/{local/configuration → contracts}/color-values.d.ts +0 -0
- /package/dist-library/types/{local/html → contracts}/html-names.d.ts +0 -0
- /package/dist-library/types/{local/configuration → contracts}/schema-core.d.ts +0 -0
- /package/dist-library/types/{local → react}/rendering/code/code-block.d.ts +0 -0
- /package/dist-library/types/{local → react}/rendering/code/code-languages.d.ts +0 -0
- /package/dist-library/types/{local → react}/rendering/document/LocalDocumentView.d.ts +0 -0
- /package/dist-library/types/{local → react}/rendering/document/use-color-scheme.d.ts +0 -0
- /package/dist-library/types/{local → react}/rendering/image/image-view.d.ts +0 -0
- /package/dist-library/types/{local → react}/rendering/math-view.d.ts +0 -0
package/docs/README-ch.md
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
- **编写文档**:先读[入门指南](guides/local-guide-ch.md),再查语法参考;可运行的示例见 [examples/local](../examples/local/README-ch.md)。
|
|
20
20
|
- **接入项目**:先查[公开接口参考](reference/public-api-ch.md)确认入口,再读[本地模式集成](integration/local-integration-ch.md);独立项目示例见 [examples/integration](../examples/integration/README-ch.md)。
|
|
21
|
-
- 升级前请参阅[兼容性](compatibility/compatibility-ch.md)和目标版本的发布记录。主文档适用于 0.9.
|
|
21
|
+
- 升级前请参阅[兼容性](compatibility/compatibility-ch.md)和目标版本的发布记录。主文档适用于 0.9.3。
|
|
22
22
|
|
|
23
23
|
## 入门
|
|
24
24
|
|
|
@@ -54,6 +54,11 @@
|
|
|
54
54
|
| 主题 | 中文 |
|
|
55
55
|
| --- | --- |
|
|
56
56
|
| 版本与兼容性 | [中文](compatibility/compatibility-ch.md) |
|
|
57
|
+
| 支持矩阵 | [中文](compatibility/support-matrix-ch.md) |
|
|
58
|
+
| 稳定公共 API | [中文](compatibility/api-stability-ch.md) |
|
|
59
|
+
| 弃用与迁移政策 | [中文](compatibility/deprecation-ch.md) |
|
|
60
|
+
| 兼容性清单 | [JSON](https://github.com/yao1145/ReactiveMD/blob/main/docs/compatibility/compatibility-manifest.json) |
|
|
61
|
+
| 兼容性清单 schema | [JSON Schema](compatibility/compatibility-manifest.schema.json) |
|
|
57
62
|
| 源码版本标记 | [中文](compatibility/source-versioning-ch.md) |
|
|
58
63
|
|
|
59
64
|
## 开发维护
|
|
@@ -72,6 +77,8 @@
|
|
|
72
77
|
|
|
73
78
|
| 版本 | 中文 |
|
|
74
79
|
| --- | --- |
|
|
80
|
+
| 0.9.3 | [中文](releases/release-0.9.3-ch.md) |
|
|
81
|
+
| 0.9.2 | [中文](releases/release-0.9.2-ch.md) |
|
|
75
82
|
| 0.9.1 | [中文](releases/release-0.9.1-ch.md) |
|
|
76
83
|
| 0.9.0 | [中文](releases/release-0.9.0-ch.md) |
|
|
77
84
|
| 0.8.0 | [中文](releases/release-0.8.0-ch.md) |
|
package/docs/README.md
CHANGED
|
@@ -18,7 +18,7 @@ Documents are grouped by purpose. Each topic has an English version (`-en.md`);
|
|
|
18
18
|
|
|
19
19
|
- **Authors**: read the [beginner guide](guides/local-guide-en.md), then the syntax reference. Runnable examples are in [examples/local](../examples/local/README.md).
|
|
20
20
|
- **Integrators**: check the [public API reference](reference/public-api-en.md) for every entry, then read [local mode integration](integration/local-integration-en.md). Copyable projects are in [examples/integration](../examples/integration/README.md).
|
|
21
|
-
- If you are upgrading, check [compatibility](compatibility/compatibility-en.md) and the release notes for your target version. The main guides cover 0.9.
|
|
21
|
+
- If you are upgrading, check [compatibility](compatibility/compatibility-en.md) and the release notes for your target version. The main guides cover 0.9.3.
|
|
22
22
|
|
|
23
23
|
## Guides
|
|
24
24
|
|
|
@@ -54,6 +54,11 @@ Documents are grouped by purpose. Each topic has an English version (`-en.md`);
|
|
|
54
54
|
| Topic | English |
|
|
55
55
|
| --- | --- |
|
|
56
56
|
| Versions and compatibility | [English](compatibility/compatibility-en.md) |
|
|
57
|
+
| Support matrix | [English](compatibility/support-matrix-en.md) |
|
|
58
|
+
| Stable public API | [English](compatibility/api-stability-en.md) |
|
|
59
|
+
| Deprecation and migration policy | [English](compatibility/deprecation-en.md) |
|
|
60
|
+
| Compatibility manifest | [JSON](https://github.com/yao1145/ReactiveMD/blob/main/docs/compatibility/compatibility-manifest.json) |
|
|
61
|
+
| Compatibility manifest schema | [JSON Schema](compatibility/compatibility-manifest.schema.json) |
|
|
57
62
|
| Source versioning | [English](compatibility/source-versioning-en.md) |
|
|
58
63
|
|
|
59
64
|
## Development
|
|
@@ -72,6 +77,8 @@ Documents are grouped by purpose. Each topic has an English version (`-en.md`);
|
|
|
72
77
|
|
|
73
78
|
| Version | English |
|
|
74
79
|
| --- | --- |
|
|
80
|
+
| 0.9.3 | [English](releases/release-0.9.3-en.md) |
|
|
81
|
+
| 0.9.2 | [English](releases/release-0.9.2-en.md) |
|
|
75
82
|
| 0.9.1 | [English](releases/release-0.9.1-en.md) |
|
|
76
83
|
| 0.9.0 | [English](releases/release-0.9.0-en.md) |
|
|
77
84
|
| 0.8.0 | [English](releases/release-0.8.0-en.md) |
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# 稳定公共 API
|
|
2
|
+
|
|
3
|
+
**中文** · [English](api-stability-en.md)
|
|
4
|
+
|
|
5
|
+
本基线从 `reactive-md@0.9.2` 和 `reactive-md-editor@0.2.1` 生效。稳定范围包括两包的公开 ESM 入口、兼容别名和样式入口,以及[公开接口参考](../reference/public-api-ch.md)和[编辑器入口](https://github.com/yao1145/ReactiveMD-Editor#入口)记载的导出、类型与行为。包的 `exports` 声明负责入口解析。实现文件路径、构建 chunk 名称和内部模块随实现演进。
|
|
6
|
+
|
|
7
|
+
同一 0.x 次版本的补丁保持既有导入、声明与语义可用。补丁可以新增入口、可选字段和诊断码。必须字段、闭合联合类型、错误处理方式及已承诺的默认行为属于兼容性契约。重命名、移除和其它不兼容变化遵循[弃用与迁移政策](deprecation-ch.md)。
|
|
8
|
+
|
|
9
|
+
## 子系统契约
|
|
10
|
+
|
|
11
|
+
| 子系统 | 稳定范围 | 版本与边界 |
|
|
12
|
+
| --- | --- | --- |
|
|
13
|
+
| 编译器 | 根入口的 `compileLocal`、`LocalCompileOptions` 和 `LocalCompileResult`。两个 compiler 子入口的工厂、`Compiler` 和 `CompilerConfigurationError`。宿主可以按工厂结果的 `ok` 和 `status` 分支,并读取诊断、恢复记录与检查覆盖。编译成功时可读取 `document` 和 `program`。 | `local-draft-3` 的已接受语义遵循[版本与兼容性](compatibility-ch.md)。单次入口执行最终编译。会话和调度器的显式阶段参数及结果字段属于公开契约。程序对象及编译缓存面向当前版本的内存使用。自建 Worker 应使用公开的请求和响应类型及配套引擎。 |
|
|
14
|
+
| 运行时 | `createLocalRuntime`、`LocalRuntime` 的公开参数写入、订阅、重置和释放语义,以及 `reactive-md/runtime` 和 `reactive-md/runtime/browser` 的文档化接口。非法写入保留有效状态,多值写入原子提交。 | 持久化使用 `reactive-md-state/v1` 或文档化的组件状态格式。读取会校验源码摘要、修订及相应绑定或组件身份。内存快照、节点 ID、匿名键及具体调度方式属于运行实现。 |
|
|
15
|
+
| SDK | `reactive-md/sdk` 的组件和预设定义、配置校验、版本范围、绑定规则和声明的能力。扩展宿主可以依赖组件身份、名称、版本和契约检查。 | SDK 契约为 `0.7.0`,语法、组块和主题各自版本化。通过主机范围校验后仍按组件契约及配置验证恢复。扩展可通过[合规测试](../integration/extension-sdk-ch.md)验证能力。 |
|
|
16
|
+
| 导出 | `createShareableHtml`、`reactive-md/export` 的预检、HTML 与恢复接口,以及 `reactive-md/export-assets` 的协议、稳定资源 ID 和 `specifier` 含义。 | 基础 HTML 写出 v1,带恢复契约的 HTML 写出 v2。当前独立运行时读取这两个有效版本,要求 v2 带恢复契约,并在失配时拒绝恢复。已有的无 `sourceSemantics` 历史负载走对应的兼容路径。bundle、恢复要求和资源清单独立版本化。详见[可分享文档与静态导出](../integration/shareable-export-ch.md)。 |
|
|
17
|
+
| 诊断 | `Diagnostic` 的机器字段、原始源码 UTF-16 坐标、两级 `severity`(`error`、`warning`)与既有诊断码含义。观察入口公开 `LocalObserver`、`LocalTraceEvent`、`createDiagnosticReport` 和格式化接口。可选的 `recoverable` 表示当前操作能否继续。 | 同一 minor 可以增加码和可选元数据。报告 `reactive-md-diagnostic/v1` 的既有字段保持类型与含义,可增加可选字段或事件。读者应跳过未知字段、事件及枚举值,并先校验 schema。改变必需字段类型或已有含义时升级报告协议。显示文案可以调整。 |
|
|
18
|
+
|
|
19
|
+
## 编辑器契约
|
|
20
|
+
|
|
21
|
+
`reactive-md-editor`、`/codemirror` 和 `/commands` 是公开入口。组件及其公开 props、handle、选区类型、命令结果和样式入口随本包发行。根组件和 CodeMirror 别名指向同一组件。可选 observer 观察私有分析 Worker 的诊断和轨迹。更换 observer 会重建分析调度器。编辑器的引擎 peer 和验收组合见[版本与兼容性](compatibility-ch.md)。
|
|
22
|
+
|
|
23
|
+
## 发布检查
|
|
24
|
+
|
|
25
|
+
两包的 `npm run check` 验证公共入口、已打包文件及独立 NodeNext 消费。引擎额外验证编译入口隔离、旧宿主的两级诊断类型、公开协议标识和行为测试。跨仓库发布还运行 `npm run compatibility:verify`,并记录[支持矩阵](support-matrix-ch.md)里的实测环境。
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Stable public API
|
|
2
|
+
|
|
3
|
+
[中文](api-stability-ch.md) · **English**
|
|
4
|
+
|
|
5
|
+
This baseline takes effect with `reactive-md@0.9.2` and `reactive-md-editor@0.2.1`. It covers the packages' public ESM entries, compatibility aliases and stylesheet entries, along with the documented exports, types and behavior in the [public API reference](../reference/public-api-en.md) and [editor README](https://github.com/yao1145/ReactiveMD-Editor#entry-points). Package `exports` define import resolution. Implementation files, build chunk names and internal modules can change.
|
|
6
|
+
|
|
7
|
+
Patch releases within a 0.x minor line preserve existing imports, declarations and semantics. They may add compatible entries, optional fields and diagnostic codes. Required fields, closed unions, error handling and documented defaults form part of the contract. Renames, removals and other incompatible changes follow the [deprecation and migration policy](deprecation-en.md).
|
|
8
|
+
|
|
9
|
+
## Subsystem contracts
|
|
10
|
+
|
|
11
|
+
| Subsystem | Stable surface | Version and boundaries |
|
|
12
|
+
| --- | --- | --- |
|
|
13
|
+
| Compiler | Root `compileLocal`, `LocalCompileOptions` and `LocalCompileResult`. Both compiler subpaths' factories, `Compiler` and `CompilerConfigurationError`. Consumers can branch on the factory result's `ok` and `status`, inspect its diagnostics, recoveries and check coverage, and read `document` and `program` on success. | Accepted `local-draft-3` semantics follow [version compatibility](compatibility-en.md). One-shot compilers perform final compilation. The documented phase arguments and result fields of sessions and the scheduler are public. Program objects and caches are in-memory data for the current release. Custom Workers should use the public request and response types with the matching engine. |
|
|
14
|
+
| Runtime | `createLocalRuntime`, the public parameter writes, subscriptions, reset and disposal of `LocalRuntime`, and documented services in `reactive-md/runtime` and `reactive-md/runtime/browser`. Invalid writes preserve valid state and multi-value writes commit atomically. | Persist using `reactive-md-state/v1` or the documented component-state format. Readers validate the source digest, revision and the relevant bindings or component identity. In-memory snapshots, node IDs, anonymous keys and scheduling internals belong to the implementation. |
|
|
15
|
+
| SDK | Public component and preset definitions, configuration validation, version ranges, binding rules and declared capabilities in `reactive-md/sdk`. Extension hosts can rely on component identity, name, version and contract checks. | The SDK contract is `0.7.0`. Syntax, component and theme contracts have their own versions. Restoration checks the component contract and configuration after checking the supported range. Extensions can use the [conformance tests](../integration/extension-sdk-en.md) to verify capabilities. |
|
|
16
|
+
| Export | `createShareableHtml`, preflight and restoration in `reactive-md/export`, and the protocol, stable resource IDs and meaning of `specifier` in `reactive-md/export-assets`. | Basic HTML writes v1. HTML with restoration requirements writes v2. The current standalone runtime reads valid payloads in both formats, requires restoration metadata for v2 and rejects mismatched restoration. Legacy payloads without `sourceSemantics` use the documented compatibility path. Bundle manifests, restoration requirements and export asset manifests version independently. See the [shareable export guide](../integration/shareable-export-en.md). |
|
|
17
|
+
| Diagnostics | `Diagnostic` machine fields, original-source UTF-16 coordinates, `error` and `warning` severity, and the meanings of existing codes. The observation entry exposes `LocalObserver`, `LocalTraceEvent`, `createDiagnosticReport` and formatting. The optional `recoverable` flag describes whether the current operation can continue. | A minor line can add codes and optional metadata. `reactive-md-diagnostic/v1` preserves the types and meanings of existing fields and may add optional fields or events. Readers should check the schema and skip unknown fields, events and enumeration values. Changing a required field's type or an existing meaning requires a new report schema. Display wording can evolve. |
|
|
18
|
+
|
|
19
|
+
## Editor contract
|
|
20
|
+
|
|
21
|
+
`reactive-md-editor`, `/codemirror` and `/commands` are public entries. Components, their public props and handles, selection types, command results and stylesheet entries ship with the package. The root component and CodeMirror alias refer to the same component. The optional observer receives diagnostics and traces from private analysis. Replacing it recreates the analysis scheduler. See the [compatibility page](compatibility-en.md) for the editor's engine peer and tested pair.
|
|
22
|
+
|
|
23
|
+
## Release checks
|
|
24
|
+
|
|
25
|
+
Both packages run `npm run check` to verify public entries, packed files and an independent NodeNext consumer. The engine also checks compiler isolation, legacy consumers of the two-level diagnostic type, protocol identifiers and semantic regressions. Paired releases also run `npm run compatibility:verify` and record their tested environments in the [support matrix](support-matrix-en.md).
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
**中文** · [English](compatibility-en.md)
|
|
4
4
|
|
|
5
|
-
Reactive MD 目前是 0.x 预览版。本页说明包版本、语法版本、可持久化的内容、诊断契约和当前平台范围。显式修订声明、迁移 API 与 `reactive-md migrate` 见[源码修订与迁移](source-versioning-ch.md),公开 API 与样式接入见[本地模式集成](../integration/local-integration-ch.md),本版本见[0.9.1 发布说明](../releases/release-0.9.1-ch.md)
|
|
5
|
+
Reactive MD 目前是 0.x 预览版。本页说明包版本、语法版本、可持久化的内容、诊断契约和当前平台范围。显式修订声明、迁移 API 与 `reactive-md migrate` 见[源码修订与迁移](source-versioning-ch.md),公开 API 与样式接入见[本地模式集成](../integration/local-integration-ch.md),本版本见[0.9.3 发布说明](../releases/release-0.9.3-ch.md),上一版本见[0.9.2 发布说明](../releases/release-0.9.2-ch.md),更早版本见[0.9.1 发布说明](../releases/release-0.9.1-ch.md)和[0.9.0 发布说明](../releases/release-0.9.0-ch.md),该 minor 系列见[0.4.0 发布与迁移](../releases/release-0.4.0-ch.md)。
|
|
6
6
|
|
|
7
7
|
## 版本对应
|
|
8
8
|
|
|
9
9
|
| 项目 | 当前值 | 说明 |
|
|
10
10
|
| --- | --- | --- |
|
|
11
|
-
| 包版本 | `0.9.
|
|
12
|
-
| 分发标签 | `latest`:`0.9.
|
|
13
|
-
| SDK 契约 | `0.7.0` | `LOCAL_SDK_VERSION`;与包版本独立,`0.9.
|
|
11
|
+
| 包版本 | `0.9.3` | 稳定版,2026-11-27 |
|
|
12
|
+
| 分发标签 | `latest`:`0.9.3` | `next` 独立维护;使用该渠道前请查询 npm |
|
|
13
|
+
| SDK 契约 | `0.7.0` | `LOCAL_SDK_VERSION`;与包版本独立,`0.9.3` 不改变它 |
|
|
14
14
|
| 语法版本 | `local-draft-3` | `LOCAL_SYNTAX_VERSION`;本包只接受这一修订 |
|
|
15
15
|
| 源码修订指令 | 可选 `<!-- reactive-md: local-draft-3 -->` | 文档前导区中的一行;无指令源码继续按当前修订解析 |
|
|
16
16
|
| 组块协议 | `component-protocol-3` | 贡献与验收契约,见[组块协议](../development/component-protocol-ch.md);不是运行时版本选择参数 |
|
|
@@ -19,11 +19,21 @@ Reactive MD 目前是 0.x 预览版。本页说明包版本、语法版本、可
|
|
|
19
19
|
| 无样式 React 入口 | `reactive-md/react/unstyled` | 不依赖样式表的 React 渲染器 |
|
|
20
20
|
| 核心入口 | `reactive-md` | 编译、表达式与运行时,不加载 React |
|
|
21
21
|
| React 入口 | `reactive-md/react` | `LocalReactiveDocument`、`LocalDocumentView` |
|
|
22
|
-
| 编辑器入口 | `reactive-md-editor` | 独立 `0.2.
|
|
22
|
+
| 编辑器入口 | `reactive-md-editor` | 独立 `0.2.1` 包中的 `ReactiveMarkdownEditor` 及其类型,面向 `^0.9.2` 引擎系列;需要 React 19。引擎 0.8 及之后的版本不再导出 `reactive-md/editor` |
|
|
23
23
|
| 渲染器样式入口 | `reactive-md/styles.css` | 文档与组块样式,由宿主显式引入 |
|
|
24
24
|
| 屏幕样式入口 | `reactive-md/screen.css` | `reactive-md/styles.css` 的别名 |
|
|
25
25
|
| 打印样式入口 | `reactive-md/print.css` | 可选的文档打印布局与页边距 |
|
|
26
26
|
| 编辑器样式入口 | `reactive-md-editor/styles.css` | 独立编辑器样式,作用域限定在编辑器根节点 |
|
|
27
|
+
| 机器可读清单 | [compatibility-manifest.json](https://github.com/yao1145/ReactiveMD/blob/main/docs/compatibility/compatibility-manifest.json) | 跨包版本、协议、Demo 候选包、运行时版本与推荐安装组合。格式见 [compatibility-manifest.schema.json](compatibility-manifest.schema.json),可以用 `npm run compatibility:verify` 校验。 |
|
|
28
|
+
|
|
29
|
+
同一组版本标识记录在机器可读清单中,按 JSON Schema 校验,并对照引擎常量、已安装运行时版本、编辑器包与 Demo tarball 检查。声明范围与实测版本分别记录。
|
|
30
|
+
|
|
31
|
+
| 编辑器 | 引擎 peer | 配对引擎 |
|
|
32
|
+
| --- | --- | --- |
|
|
33
|
+
| `0.2.1` | `^0.9.2` | `0.9.2` |
|
|
34
|
+
| `0.2.0` | `^0.9.0` | `0.9.1`(上一组验收组合) |
|
|
35
|
+
|
|
36
|
+
成对发布前,从引擎仓库运行 `npm run compatibility:verify`。按清单中的产物先发布引擎,再比对 npm 上的引擎完整性值和编辑器锁定的候选包,随后发布编辑器。
|
|
27
37
|
|
|
28
38
|
一个包版本只对应一个语法修订。升级包之前,记录应用使用的 `LOCAL_SYNTAX_VERSION`。如果文档源码来自另一个语法修订,保留旧包版本渲染,或按下面的迁移说明改写。`compileLocal(source, options?)` 不提供语法版本参数;宿主可以通过 `options.limits.maxSyntaxNodes` 调整单次编译的语法节点预算,见[本地模式集成](../integration/local-integration-ch.md)。
|
|
29
39
|
|
|
@@ -35,9 +45,9 @@ Reactive MD 目前是 0.x 预览版。本页说明包版本、语法版本、可
|
|
|
35
45
|
|
|
36
46
|
## 0.x 的兼容规则
|
|
37
47
|
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
48
|
+
- 0.x 次版本可以按弃用政策引入破坏性变更。补丁版本保留已有稳定契约,可以加入兼容的能力和修复。
|
|
49
|
+
- [稳定公共 API](api-stability-ch.md) 定义两包的入口、类型和协议范围。
|
|
50
|
+
- [弃用与迁移政策](deprecation-ch.md) 定义公告、保留期、移除版本和迁移记录。
|
|
41
51
|
- 应用应固定包版本,保留原始 `.reactive.md` 源码,并在升级后用自己的文档和示例重新运行编译与渲染检查。
|
|
42
52
|
|
|
43
53
|
## 核心语义兼容范围
|
|
@@ -95,7 +105,7 @@ Reactive MD 目前是 0.x 预览版。本页说明包版本、语法版本、可
|
|
|
95
105
|
|
|
96
106
|
## 诊断契约
|
|
97
107
|
|
|
98
|
-
`Diagnostic` 包含 `code`、`message`、`severity`、`range`、`line` 和 `column
|
|
108
|
+
`Diagnostic` 包含 `code`、`message`、`severity`、`range`、`line` 和 `column`。诊断可附带 `phase`、`recoverable` 和结构化 `details`。宿主可以用 `recoverable` 判断当前操作能否继续。
|
|
99
109
|
|
|
100
110
|
- `line` 和 `column` 从 1 开始;列和 `range` 均按原始源码的 UTF-16 代码单元计数,范围为半开区间。
|
|
101
111
|
- `line`、`column` 和 `range` 可以用于程序定位和编辑器跳转。
|
|
@@ -107,23 +117,30 @@ Reactive MD 目前是 0.x 预览版。本页说明包版本、语法版本、可
|
|
|
107
117
|
|
|
108
118
|
## 平台与运行环境
|
|
109
119
|
|
|
120
|
+
[支持矩阵](support-matrix-ch.md)是这些环境的权威状态与验证页面。
|
|
121
|
+
|
|
110
122
|
| 环境 | 当前状态 |
|
|
111
123
|
| --- | --- |
|
|
112
|
-
| Node.js 22.
|
|
124
|
+
| Node.js 22.x | 开发和 Node 端消费的最低版本为 22.12.0;已在本地 22.17.0 验证 |
|
|
125
|
+
| Node.js 24.x | 声明支持;发布前在 Node 24 环境运行版本检查 |
|
|
113
126
|
| ESM | 唯一模块格式;不提供 CommonJS 入口 |
|
|
114
127
|
| React 19 | `reactive-md/react` 和独立的 `reactive-md-editor` 包的要求;核心入口不依赖 React |
|
|
115
128
|
| Vite 8 | `reactive-md` 的可选 peer,仅在使用的 `reactive-md/vite` 时需要 |
|
|
116
|
-
|
|
|
117
|
-
|
|
|
118
|
-
|
|
|
129
|
+
| Playwright Chromium | 内置浏览器检查可用;不在当前已验证集合内 |
|
|
130
|
+
| Google Chrome | 引擎浏览器 fixture 已通过本机 Chrome 渠道在本地验证 |
|
|
131
|
+
| Microsoft Edge(Chromium 内核) | 引擎浏览器 fixture 已通过本机 Edge 渠道在本地验证 |
|
|
132
|
+
| Playwright Firefox、WebKit | 引擎浏览器 fixture 可在本地运行,不在当前已验证集合内 |
|
|
119
133
|
| Apple 设备上的 Safari | 实机测试与 Playwright WebKit 引擎验证分开进行 |
|
|
120
134
|
| 可分享状态格式 | `reactive-md-state/v1`:公开参数、语法版本与源码摘要;见[可分享文档](../integration/shareable-export-ch.md) |
|
|
121
135
|
| 单文件 HTML 格式 | `reactive-md-html/v1`:交互或静态导出;仅交互模式内嵌独立运行时 |
|
|
122
|
-
| SSR | `react-dom/server` 静态渲染由 packed 检查覆盖。编辑器入口没有顶层 DOM
|
|
136
|
+
| SSR 静态渲染 | `react-dom/server` 静态渲染由 packed 检查覆盖。编辑器入口没有顶层 DOM 访问,可在服务端导入和渲染;编辑交互在客户端运行 |
|
|
137
|
+
| 交互式单文件 HTML 启动 | 导出的 `reactive-md-html/v1` 文件可离线启动内联运行时并响应交互;Demo 冒烟检查已在 Microsoft Edge 中验证。通用宿主水合不在支持范围内 |
|
|
138
|
+
| 引擎 Worker | `LocalCompileScheduler` 与 `LocalCompileWorker` 由引擎 Worker 单元测试套件覆盖 |
|
|
139
|
+
| 编辑器分析 Worker | 打包消费者检查产出的分析 Worker 资源及导入;浏览器行为见上方浏览器各行 |
|
|
123
140
|
|
|
124
141
|
Node 端消费指在 Node 中导入 `reactive-md`、调用 `compileLocal` 和 `createLocalRuntime`,不需要 DOM。React 渲染要求浏览器环境或宿主自行处理服务端输出。
|
|
125
142
|
|
|
126
143
|
语言范围见[语法规范](../reference/local-interaction-syntax-ch.md),安全边界与宿主责任见[安全策略](../../SECURITY-ch.md)。
|
|
127
144
|
|
|
128
145
|
|
|
129
|
-
当前语法修订的完整规则见[本地交互语法规范](../reference/local-interaction-syntax-ch.md),升级清单见[0.4.0 发布与迁移](../releases/release-0.4.0-ch.md)。`0.9.
|
|
146
|
+
当前语法修订的完整规则见[本地交互语法规范](../reference/local-interaction-syntax-ch.md),升级清单见[0.4.0 发布与迁移](../releases/release-0.4.0-ch.md)。`0.9.3` 使用 `latest` 渠道。
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
**English** · [中文](compatibility-ch.md)
|
|
4
4
|
|
|
5
|
-
Reactive MD is currently a 0.x preview. This page covers package versions, syntax versions, what can be persisted, the diagnostics contract and the current platform scope. See [Source revisions and migration](source-versioning-en.md) for explicit revision declarations, the migration API and `reactive-md migrate`, [Local mode integration](../integration/local-integration-en.md) for the public API and style integration, the [0.9.
|
|
5
|
+
Reactive MD is currently a 0.x preview. This page covers package versions, syntax versions, what can be persisted, the diagnostics contract and the current platform scope. See [Source revisions and migration](source-versioning-en.md) for explicit revision declarations, the migration API and `reactive-md migrate`, [Local mode integration](../integration/local-integration-en.md) for the public API and style integration, the [0.9.3 release notes](../releases/release-0.9.3-en.md) for this release, the [0.9.2 release notes](../releases/release-0.9.2-en.md) for the previous release, the [0.9.1 release notes](../releases/release-0.9.1-en.md), the [0.9.0 release notes](../releases/release-0.9.0-en.md), and [0.4.0 release and migration](../releases/release-0.4.0-en.md) for that minor series.
|
|
6
6
|
|
|
7
7
|
## Version mapping
|
|
8
8
|
|
|
9
9
|
| Item | Current value | Notes |
|
|
10
10
|
| --- | --- | --- |
|
|
11
|
-
| Package version | `0.9.
|
|
12
|
-
| Distribution tags | `latest`: `0.9.
|
|
13
|
-
| SDK contract | `0.7.0` | `LOCAL_SDK_VERSION`; independent of the package version and unchanged by `0.9.
|
|
11
|
+
| Package version | `0.9.3` | Stable release, 2026-11-27 |
|
|
12
|
+
| Distribution tags | `latest`: `0.9.3` | `next` is maintained independently; query npm when selecting that channel |
|
|
13
|
+
| SDK contract | `0.7.0` | `LOCAL_SDK_VERSION`; independent of the package version and unchanged by `0.9.3` |
|
|
14
14
|
| Syntax version | `local-draft-3` | `LOCAL_SYNTAX_VERSION`; this revision is the only one accepted by the package |
|
|
15
15
|
| Source revision directive | Optional `<!-- reactive-md: local-draft-3 -->` | One line in the document prologue; unversioned source keeps current-revision behavior |
|
|
16
16
|
| Component protocol | `component-protocol-3` | Contribution and acceptance contract, see [Component protocol](../development/component-protocol-en.md); not a runtime version selection parameter |
|
|
@@ -19,11 +19,21 @@ Reactive MD is currently a 0.x preview. This page covers package versions, synta
|
|
|
19
19
|
| Unstyled React entry | `reactive-md/react/unstyled` | React renderer without a stylesheet dependency |
|
|
20
20
|
| Core entry | `reactive-md` | Compilation, expressions and runtime, without loading React |
|
|
21
21
|
| React entry | `reactive-md/react` | `LocalReactiveDocument`, `LocalDocumentView` |
|
|
22
|
-
| Editor entry | `reactive-md-editor` | `ReactiveMarkdownEditor` and its types in the separate `0.2.
|
|
22
|
+
| Editor entry | `reactive-md-editor` | `ReactiveMarkdownEditor` and its types in the separate `0.2.1` package for the `^0.9.2` engine series; requires React 19. Engine 0.8 and later no longer export `reactive-md/editor` |
|
|
23
23
|
| Renderer style entry | `reactive-md/styles.css` | Document and component styles, explicitly imported by the host |
|
|
24
24
|
| Screen style entry | `reactive-md/screen.css` | Alias of `reactive-md/styles.css` |
|
|
25
25
|
| Print style entry | `reactive-md/print.css` | Optional document print layout and page margins |
|
|
26
26
|
| Editor style entry | `reactive-md-editor/styles.css` | Independent editor styles, scoped to the editor root |
|
|
27
|
+
| Machine-readable manifest | [compatibility-manifest.json](https://github.com/yao1145/ReactiveMD/blob/main/docs/compatibility/compatibility-manifest.json) | Cross-package versions, protocols, Demo candidates, runtime versions and the recommended install set. See the [schema](compatibility-manifest.schema.json). Run `npm run compatibility:verify` to check the manifest. |
|
|
28
|
+
|
|
29
|
+
The same identities are recorded in the machine-readable manifest, validated against its JSON Schema, and checked against the engine constants, installed runtime versions, the editor package and the Demo tarballs. Declared ranges and tested versions are stored separately.
|
|
30
|
+
|
|
31
|
+
| Editor | Engine peer | Paired engine |
|
|
32
|
+
| --- | --- | --- |
|
|
33
|
+
| `0.2.1` | `^0.9.2` | `0.9.2` |
|
|
34
|
+
| `0.2.0` | `^0.9.0` | `0.9.1` (previous verified pair) |
|
|
35
|
+
|
|
36
|
+
Run `npm run compatibility:verify` from the engine repository before a paired release. Publish the engine artifact listed in the manifest first. Compare its npm integrity value with the candidate pinned by the editor, then publish the editor.
|
|
27
37
|
|
|
28
38
|
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).
|
|
29
39
|
|
|
@@ -35,9 +45,9 @@ Readers built before this directive existed, including `0.3.1`, treat it as an o
|
|
|
35
45
|
|
|
36
46
|
## Compatibility rules for 0.x
|
|
37
47
|
|
|
38
|
-
-
|
|
39
|
-
- The
|
|
40
|
-
-
|
|
48
|
+
- A 0.x minor release can break compatibility under the deprecation policy. Patch releases preserve existing stable contracts and may add compatible capabilities and fixes.
|
|
49
|
+
- The [stable public API](api-stability-en.md) defines the supported entry points, types and protocols of both packages.
|
|
50
|
+
- The [deprecation and migration policy](deprecation-en.md) defines announcements, notice periods, removal releases and migration records.
|
|
41
51
|
- 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.
|
|
42
52
|
|
|
43
53
|
## Core semantic compatibility
|
|
@@ -95,7 +105,7 @@ Persist the original `.reactive.md` source. A `reactive-md-state/v1` file may pr
|
|
|
95
105
|
|
|
96
106
|
## Diagnostics contract
|
|
97
107
|
|
|
98
|
-
`Diagnostic` contains `code`, `message`, `severity`, `range`, `line` and `column`.
|
|
108
|
+
`Diagnostic` contains `code`, `message`, `severity`, `range`, `line` and `column`. Optional fields include `phase`, `recoverable` and structured `details`. Hosts can use `recoverable` to determine whether the current operation can continue.
|
|
99
109
|
|
|
100
110
|
- Lines and columns are one-based. Columns and half-open ranges count UTF-16 code units in the original source.
|
|
101
111
|
- `line`, `column` and `range` can be used for programmatic location and editor jumps.
|
|
@@ -107,23 +117,30 @@ See [Diagnostics and counting rules](../reference/diagnostics-counting-en.md) fo
|
|
|
107
117
|
|
|
108
118
|
## Platforms and runtimes
|
|
109
119
|
|
|
120
|
+
The [support matrix](support-matrix-en.md) is the authoritative status and verification page for these environments.
|
|
121
|
+
|
|
110
122
|
| Environment | Current status |
|
|
111
123
|
| --- | --- |
|
|
112
|
-
| Node.js 22.
|
|
124
|
+
| Node.js 22.x | Minimum 22.12.0 for development and Node-side consumption; verified locally on 22.17.0 |
|
|
125
|
+
| Node.js 24.x | Declared; run the version check on Node 24 in the release environment |
|
|
113
126
|
| ESM | The only module format; no CommonJS entry |
|
|
114
127
|
| React 19 | Required by `reactive-md/react` and the separate `reactive-md-editor` package; the core entry does not depend on React |
|
|
115
128
|
| Vite 8 | Optional peer of `reactive-md`, required only when using `reactive-md/vite` |
|
|
116
|
-
|
|
|
117
|
-
|
|
|
118
|
-
|
|
|
129
|
+
| Playwright Chromium | Bundled browser check available; outside the current verified set |
|
|
130
|
+
| Google Chrome | Engine browser fixture verified locally through the installed Chrome channel |
|
|
131
|
+
| Microsoft Edge (Chromium-based) | Engine browser fixture verified locally through the installed Edge channel |
|
|
132
|
+
| Playwright Firefox and WebKit | Engine browser fixtures available locally; outside the current verified set |
|
|
119
133
|
| Safari on Apple devices | Device testing remains separate from Playwright WebKit engine checks |
|
|
120
134
|
| 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) |
|
|
121
135
|
| Single-file HTML format | `reactive-md-html/v1`: interactive or static export, with an inline standalone runtime only in interactive mode |
|
|
122
|
-
| 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
|
|
136
|
+
| SSR static rendering | `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 |
|
|
137
|
+
| Interactive single-file HTML boot | The exported `reactive-md-html/v1` file boots its inline runtime offline and updates content after an interaction; verified in Microsoft Edge by the Demo smoke check. General host hydration is outside the supported scope |
|
|
138
|
+
| Engine Worker | `LocalCompileScheduler` and `LocalCompileWorker` are covered by the engine Worker unit suite |
|
|
139
|
+
| Editor analysis Worker | The packed consumer checks the emitted analysis Worker asset and imports; browser behavior follows the browser rows above |
|
|
123
140
|
|
|
124
141
|
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.
|
|
125
142
|
|
|
126
143
|
See the [syntax specification](../reference/local-interaction-syntax-en.md) for the language scope, and the [security policy](../../SECURITY.md) for the security boundary and host responsibilities.
|
|
127
144
|
|
|
128
145
|
|
|
129
|
-
See the [syntax specification](../reference/local-interaction-syntax-en.md) for new tags, colors and slot state, and [0.4.0 release and migration](../releases/release-0.4.0-en.md) for the upgrade checklist. `0.9.
|
|
146
|
+
See the [syntax specification](../reference/local-interaction-syntax-en.md) for new tags, colors and slot state, and [0.4.0 release and migration](../releases/release-0.4.0-en.md) for the upgrade checklist. `0.9.3` uses the `latest` channel.
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/yao1145/ReactiveMD/blob/main/docs/compatibility/compatibility-manifest.schema.json",
|
|
4
|
+
"title": "Reactive MD compatibility manifest",
|
|
5
|
+
"description": "Cross-package versions, protocols, Demo candidates, verified versions, the recommended install set and the optional previous verified combination.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["$schema", "schema", "engine", "editor", "demo", "protocols", "verified", "runtimes", "install"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"$schema": { "const": "./compatibility-manifest.schema.json" },
|
|
11
|
+
"schema": { "const": "reactive-md-compatibility/v1" },
|
|
12
|
+
"engine": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"additionalProperties": false,
|
|
15
|
+
"required": ["name", "version"],
|
|
16
|
+
"properties": {
|
|
17
|
+
"name": { "const": "reactive-md" },
|
|
18
|
+
"version": { "$ref": "#/$defs/semver" }
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"editor": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"additionalProperties": false,
|
|
24
|
+
"required": ["name", "version", "enginePeer", "repository"],
|
|
25
|
+
"properties": {
|
|
26
|
+
"name": { "const": "reactive-md-editor" },
|
|
27
|
+
"version": { "$ref": "#/$defs/semver" },
|
|
28
|
+
"enginePeer": { "type": "string", "pattern": "^\\^\\d+\\.\\d+\\.\\d+$" },
|
|
29
|
+
"repository": { "type": "string", "minLength": 1 }
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"previous": { "$ref": "#/$defs/previousCombination" },
|
|
33
|
+
"demo": {
|
|
34
|
+
"type": "object",
|
|
35
|
+
"additionalProperties": false,
|
|
36
|
+
"required": ["repository", "candidates"],
|
|
37
|
+
"properties": {
|
|
38
|
+
"repository": { "type": "string", "minLength": 1 },
|
|
39
|
+
"candidates": {
|
|
40
|
+
"type": "object",
|
|
41
|
+
"additionalProperties": false,
|
|
42
|
+
"required": ["engine", "editor"],
|
|
43
|
+
"properties": {
|
|
44
|
+
"engine": { "$ref": "#/$defs/candidate" },
|
|
45
|
+
"editor": { "$ref": "#/$defs/candidate" }
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"protocols": {
|
|
51
|
+
"type": "object",
|
|
52
|
+
"additionalProperties": false,
|
|
53
|
+
"required": ["sdk", "syntax", "component", "theme"],
|
|
54
|
+
"properties": {
|
|
55
|
+
"sdk": { "type": "string", "minLength": 1 },
|
|
56
|
+
"syntax": { "type": "string", "minLength": 1 },
|
|
57
|
+
"component": { "type": "string", "minLength": 1 },
|
|
58
|
+
"theme": { "type": "string", "minLength": 1 }
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"verified": {
|
|
62
|
+
"type": "object",
|
|
63
|
+
"additionalProperties": false,
|
|
64
|
+
"required": ["date", "node", "browsers"],
|
|
65
|
+
"properties": {
|
|
66
|
+
"date": { "type": "string", "pattern": "^\\d{4}-\\d{2}-\\d{2}$" },
|
|
67
|
+
"node": { "$ref": "#/$defs/semver" },
|
|
68
|
+
"browsers": {
|
|
69
|
+
"type": "array",
|
|
70
|
+
"minItems": 1,
|
|
71
|
+
"uniqueItems": true,
|
|
72
|
+
"items": {
|
|
73
|
+
"enum": [
|
|
74
|
+
"Google Chrome",
|
|
75
|
+
"Microsoft Edge",
|
|
76
|
+
"Playwright Chromium",
|
|
77
|
+
"Playwright Firefox",
|
|
78
|
+
"Playwright WebKit",
|
|
79
|
+
"Safari"
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"runtimes": {
|
|
86
|
+
"type": "object",
|
|
87
|
+
"additionalProperties": false,
|
|
88
|
+
"required": ["react", "react-dom", "vite"],
|
|
89
|
+
"properties": {
|
|
90
|
+
"react": { "$ref": "#/$defs/testedRuntime" },
|
|
91
|
+
"react-dom": { "$ref": "#/$defs/testedRuntime" },
|
|
92
|
+
"vite": { "$ref": "#/$defs/testedRuntime" }
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"install": {
|
|
96
|
+
"type": "object",
|
|
97
|
+
"additionalProperties": false,
|
|
98
|
+
"required": ["command", "packages", "optional"],
|
|
99
|
+
"properties": {
|
|
100
|
+
"command": { "type": "string", "minLength": 1 },
|
|
101
|
+
"packages": {
|
|
102
|
+
"type": "object",
|
|
103
|
+
"additionalProperties": false,
|
|
104
|
+
"required": ["reactive-md", "reactive-md-editor", "react", "react-dom"],
|
|
105
|
+
"properties": {
|
|
106
|
+
"reactive-md": { "type": "string", "minLength": 1 },
|
|
107
|
+
"reactive-md-editor": { "type": "string", "minLength": 1 },
|
|
108
|
+
"react": { "type": "string", "minLength": 1 },
|
|
109
|
+
"react-dom": { "type": "string", "minLength": 1 }
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"optional": {
|
|
113
|
+
"type": "object",
|
|
114
|
+
"additionalProperties": false,
|
|
115
|
+
"required": ["vite"],
|
|
116
|
+
"properties": {
|
|
117
|
+
"vite": { "type": "string", "minLength": 1 }
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"$defs": {
|
|
124
|
+
"semver": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"pattern": "^\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?$"
|
|
127
|
+
},
|
|
128
|
+
"candidate": {
|
|
129
|
+
"type": "object",
|
|
130
|
+
"additionalProperties": false,
|
|
131
|
+
"required": ["package", "version", "tarball", "sha256"],
|
|
132
|
+
"properties": {
|
|
133
|
+
"package": { "type": "string", "minLength": 1 },
|
|
134
|
+
"version": { "$ref": "#/$defs/semver" },
|
|
135
|
+
"tarball": { "type": "string", "pattern": "^vendor/.+\\.tgz$" },
|
|
136
|
+
"sha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" }
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"previousCombination": {
|
|
140
|
+
"description": "Previously verified engine and editor pairing. Historical tarballs are not required to be present.",
|
|
141
|
+
"type": "object",
|
|
142
|
+
"additionalProperties": false,
|
|
143
|
+
"required": ["engine", "editor", "enginePeer"],
|
|
144
|
+
"properties": {
|
|
145
|
+
"engine": { "$ref": "#/$defs/semver" },
|
|
146
|
+
"editor": { "$ref": "#/$defs/semver" },
|
|
147
|
+
"enginePeer": { "type": "string", "pattern": "^\\^\\d+\\.\\d+\\.\\d+$" }
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"testedRuntime": {
|
|
151
|
+
"type": "object",
|
|
152
|
+
"additionalProperties": false,
|
|
153
|
+
"required": ["declared", "tested"],
|
|
154
|
+
"properties": {
|
|
155
|
+
"declared": { "type": "string", "minLength": 1 },
|
|
156
|
+
"tested": { "$ref": "#/$defs/semver" },
|
|
157
|
+
"optional": { "type": "boolean" }
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# 弃用与迁移政策
|
|
2
|
+
|
|
3
|
+
**中文** · [English](deprecation-en.md)
|
|
4
|
+
|
|
5
|
+
本政策从 `reactive-md@0.9.2` 和 `reactive-md-editor@0.2.1` 生效,适用于[稳定公共 API](api-stability-ch.md)。两包独立计版本和弃用周期。
|
|
6
|
+
|
|
7
|
+
## 公告、保留与移除
|
|
8
|
+
|
|
9
|
+
1. 在版本变更记录和相应 API 文档中公告弃用。记录受影响的入口或符号、首次公告版本、建议替代项、最早移除版本,以及可执行的迁移步骤。可标记的 TypeScript 声明加上 `@deprecated`,并指向替代项。
|
|
10
|
+
2. 保留旧接口至少 90 天,并覆盖首次公告之后完整的一个 minor 发布线。旧接口继续在同一 minor 的补丁中接受兼容性和安全修复。
|
|
11
|
+
3. 两项保留条件均满足后,在后续的次版本或主版本移除,并在变更记录中确认移除版本和迁移方式。例如,在 `0.9.x` 公告的弃用应覆盖 `0.10.x`,最早在公告满 90 天后的 `0.11.0` 移除。
|
|
12
|
+
|
|
13
|
+
安全漏洞、数据损坏或外部平台强制变更需要缩短保留期时,在发布记录说明原因、影响范围和可用的回退或迁移路径。安全问题可以在修复发布时披露。0.x 次版本中的其它不兼容改动也须公开列出旧用法、新用法和适用版本。
|
|
14
|
+
|
|
15
|
+
## 当前宿主迁移
|
|
16
|
+
|
|
17
|
+
编辑器 `0.2.1` 的最低引擎版本为 `0.9.2`,peer 范围为 `^0.9.2`。已有安装可以成对升级,或在引擎 `0.9.0`、`0.9.1` 上继续使用编辑器 `0.2.0`。这是本次候选公开记录的配对要求变更。现有编辑器入口和组件导入仍可使用。
|
|
18
|
+
|
|
19
|
+
公开的 `LocalComponentPropValue` 是早期标量类型别名,已在声明中标记弃用。新的扩展应使用 `LocalComponentValue`,需要标量时先缩窄类型。该别名的保留期从本政策首次记录的发布开始计算。
|
|
20
|
+
|
|
21
|
+
源码迁移独立于宿主 API 弃用。跨语法修订时,先使用 [源码修订和迁移工具](source-versioning-ch.md) 检查源码。迁移后的源码应重新导出状态文件,以更新源码摘要。引擎 `0.9.3` 继续使用 `local-draft-3` 与 `reactive-md-state/v1`。
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Deprecation and migration policy
|
|
2
|
+
|
|
3
|
+
[中文](deprecation-ch.md) · **English**
|
|
4
|
+
|
|
5
|
+
This policy takes effect with `reactive-md@0.9.2` and `reactive-md-editor@0.2.1` for the [stable public API](api-stability-en.md). Each package tracks its own release versions and notice periods.
|
|
6
|
+
|
|
7
|
+
## Announcement, notice period and removal
|
|
8
|
+
|
|
9
|
+
1. Announce a deprecation in the changelog and the associated API documentation. Record the affected entry or symbol, first announced release, replacement, earliest possible removal and actionable migration steps. Mark applicable TypeScript declarations with `@deprecated` and point to the replacement.
|
|
10
|
+
2. Keep the deprecated interface for at least 90 days and for one complete minor release line after the initial announcement. It continues to receive compatibility and security fixes in patches on that line.
|
|
11
|
+
3. Remove the deprecated interface in a later minor or major release once both conditions are met. Record the removal and migration path in the changelog. For example, a deprecation announced in `0.9.x` stays available through `0.10.x` and can be removed in `0.11.0` once 90 days have elapsed.
|
|
12
|
+
|
|
13
|
+
Security vulnerabilities, data corruption and mandatory upstream platform changes can require a shorter window. Release notes record the reason, affected scope and available fallback or migration. A security issue may be disclosed when the fix ships. Other incompatible changes in 0.x minor releases also list the old usage, replacement and affected versions.
|
|
14
|
+
|
|
15
|
+
## Current host migrations
|
|
16
|
+
|
|
17
|
+
Editor `0.2.1` requires engine `0.9.2` or a later `0.9.x` release through its `^0.9.2` peer. Upgrade the packages together or keep editor `0.2.0` with engine `0.9.0` or `0.9.1`. This pairing change is documented for the current release. Existing editor entry points and component imports remain available.
|
|
18
|
+
|
|
19
|
+
`LocalComponentPropValue` is the deprecated phase-one scalar alias. New extensions can use `LocalComponentValue` and narrow it where a scalar is required. The notice period for the alias starts with its first recorded release under this policy.
|
|
20
|
+
|
|
21
|
+
Source migrations follow their own syntax revisions. Run the [source revision and migration tools](source-versioning-en.md) before upgrading across revisions. Export a fresh state file after migration to record the new source digest. Engine `0.9.3` keeps `local-draft-3` and `reactive-md-state/v1`.
|
|
@@ -159,4 +159,4 @@ reactive-md migrate old.reactive.md --from local-draft-1 --accept-semantic-chang
|
|
|
159
159
|
|
|
160
160
|
迁移处理声明的元数据变化,并检查正文能否跨越修订边界。它不是旧版读取器:不解释 YAML `state`/`data`/`computed`/`actions` 配置块、directive 或其他 draft 之前的语法,也不改写正文。在 `local-draft-3` 下已经无法编译的源码会保持阻止状态,直到作者修复报告的位置。
|
|
161
161
|
|
|
162
|
-
`0.8.0` 继续以 `local-draft-3` 作为唯一接受的修订,不新增源码修订。本页的指令规则、迁移 API 和 CLI 选项保持不变,因此在 `0.7.0` 下可编译的文档无需为 `0.8.0` 迁移。从 `local-draft-1` 或 `local-draft-2` 迁移仍以 `local-draft-3` 为目标;迁移 `local-draft-2` 文档时仍会阻止新激活的 `<external>` 标签,作者需要先把它们保存为字面代码。`latest` 渠道的 `0.9.
|
|
162
|
+
`0.8.0` 继续以 `local-draft-3` 作为唯一接受的修订,不新增源码修订。本页的指令规则、迁移 API 和 CLI 选项保持不变,因此在 `0.7.0` 下可编译的文档无需为 `0.8.0` 迁移。从 `local-draft-1` 或 `local-draft-2` 迁移仍以 `local-draft-3` 为目标;迁移 `local-draft-2` 文档时仍会阻止新激活的 `<external>` 标签,作者需要先把它们保存为字面代码。`latest` 渠道的 `0.9.3` 继续使用 `local-draft-3`。
|
|
@@ -159,4 +159,4 @@ The command migrates one source at a time. This build has no `--write` mode, no
|
|
|
159
159
|
|
|
160
160
|
Migration handles the declared metadata change and checks whether the body can cross the revision boundary. It is not a legacy reader: it does not interpret YAML `state`/`data`/`computed`/`actions` blocks, directives or other pre-draft syntax, and it does not rewrite the body. Source that already fails to compile under `local-draft-3` stays blocked until the author fixes the reported positions.
|
|
161
161
|
|
|
162
|
-
`0.8.0` keeps `local-draft-3` as the only accepted revision and adds no new source revision. The directive rules, migration API and CLI options on this page apply unchanged, so a document that compiles under `0.7.0` needs no migration for `0.8.0`. Migrating from `local-draft-1` or `local-draft-2` still targets `local-draft-3`; migration from `local-draft-2` continues to block newly active `<external>` tags and requires the author to preserve them as literal code first. `0.9.
|
|
162
|
+
`0.8.0` keeps `local-draft-3` as the only accepted revision and adds no new source revision. The directive rules, migration API and CLI options on this page apply unchanged, so a document that compiles under `0.7.0` needs no migration for `0.8.0`. Migrating from `local-draft-1` or `local-draft-2` still targets `local-draft-3`; migration from `local-draft-2` continues to block newly active `<external>` tags and requires the author to preserve them as literal code first. `0.9.3` is available on `latest` and continues to use `local-draft-3`.
|