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
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { o as e } from "./latex-1w7aQgD5.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
2
|
+
import { o as t } from "./compile-D50B5_Ww.js";
|
|
3
|
+
import { d as n } from "./computations-CffoW7Ff.js";
|
|
4
|
+
import { a as r } from "./schema-core-4sd1Vu7V.js";
|
|
5
|
+
import { t as i } from "./compiler-DLkKUK4t.js";
|
|
6
|
+
import { r as a } from "./default-options-DU5dxuU6.js";
|
|
7
|
+
import { t as o } from "./parser-9yNJxGip.js";
|
|
8
8
|
// src/local/source/authoring-syntax.ts
|
|
9
9
|
var s = /^<(\/?)([A-Za-z][A-Za-z0-9_-]*)(?=[\s/>])/;
|
|
10
10
|
function c(e, t) {
|
|
@@ -124,12 +124,12 @@ function c(e, t) {
|
|
|
124
124
|
attrs: d
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
|
-
function l(e,
|
|
128
|
-
if (
|
|
129
|
-
let a = e.lastIndexOf("</",
|
|
127
|
+
function l(e, t, i) {
|
|
128
|
+
if (t.range.end <= i) return null;
|
|
129
|
+
let a = e.lastIndexOf("</", t.range.end - 1);
|
|
130
130
|
if (a < i) return null;
|
|
131
131
|
let o = c(e, a);
|
|
132
|
-
return !o || !o.closing || o.end >
|
|
132
|
+
return !o || !o.closing || o.end > t.range.end || o.name !== t.name && (!r.has(o.name.toLowerCase()) && !n.has(o.name.toLowerCase()) || o.name.toLowerCase() !== t.name?.toLowerCase()) ? null : o;
|
|
133
133
|
}
|
|
134
134
|
function u(e, t, n) {
|
|
135
135
|
let r = [];
|
|
@@ -176,38 +176,38 @@ function d(e, t) {
|
|
|
176
176
|
offsets: r
|
|
177
177
|
};
|
|
178
178
|
}
|
|
179
|
-
function f(e,
|
|
179
|
+
function f(e, n, r) {
|
|
180
180
|
let i = [];
|
|
181
|
-
for (let a =
|
|
182
|
-
let
|
|
183
|
-
if (
|
|
184
|
-
let
|
|
181
|
+
for (let a = n; a < r;) {
|
|
182
|
+
let n = e[a];
|
|
183
|
+
if (n === "\"" || n === "'") {
|
|
184
|
+
let t = n;
|
|
185
185
|
for (a += 1; a < r;) if (e[a] === "\\") a += 2;
|
|
186
186
|
else {
|
|
187
|
-
if (e[a] ===
|
|
187
|
+
if (e[a] === t) {
|
|
188
188
|
a += 1;
|
|
189
189
|
break;
|
|
190
190
|
}
|
|
191
191
|
a += 1;
|
|
192
192
|
}
|
|
193
193
|
} else {
|
|
194
|
-
if (/[0-9]/.test(
|
|
194
|
+
if (/[0-9]/.test(n) || n === "." && e[a + 1] !== void 0 && /[0-9]/.test(e[a + 1])) {
|
|
195
195
|
let t = /^(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?/.exec(e.slice(a, r));
|
|
196
196
|
if (t) {
|
|
197
197
|
a += t[0].length;
|
|
198
198
|
continue;
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
-
if (p(
|
|
202
|
-
let
|
|
201
|
+
if (p(n)) {
|
|
202
|
+
let n = a;
|
|
203
203
|
for (a += 1; a < r && m(e[a]);) a += 1;
|
|
204
|
-
let o = e.slice(
|
|
204
|
+
let o = e.slice(n, a), s = a;
|
|
205
205
|
for (; s < r && h(e[s]);) s += 1;
|
|
206
|
-
if (e[s] === "(" || o === "true" || o === "false" || o === "null" || o === "pi" || o === "e" ||
|
|
206
|
+
if (e[s] === "(" || o === "true" || o === "false" || o === "null" || o === "pi" || o === "e" || t.has(o)) continue;
|
|
207
207
|
i.push({
|
|
208
208
|
name: o,
|
|
209
209
|
range: {
|
|
210
|
-
start:
|
|
210
|
+
start: n,
|
|
211
211
|
end: a
|
|
212
212
|
}
|
|
213
213
|
});
|
|
@@ -236,7 +236,8 @@ var g = /^[A-Za-z_][A-Za-z0-9_]*$/, _ = 128, v = /* @__PURE__ */ new Set([
|
|
|
236
236
|
"footnoteDefinition",
|
|
237
237
|
"authorCss",
|
|
238
238
|
"authorJavaScript",
|
|
239
|
-
"extendedHtmlRaw"
|
|
239
|
+
"extendedHtmlRaw",
|
|
240
|
+
"rawBody"
|
|
240
241
|
]), y = /* @__PURE__ */ new Set([
|
|
241
242
|
"local.version.unsupported",
|
|
242
243
|
"local.version.malformed",
|
|
@@ -252,7 +253,7 @@ var g = /^[A-Za-z_][A-Za-z0-9_]*$/, _ = 128, v = /* @__PURE__ */ new Set([
|
|
|
252
253
|
"local.budget"
|
|
253
254
|
]);
|
|
254
255
|
function b(e) {
|
|
255
|
-
return e.length > 0 && e.length <= _ && g.test(e) && !
|
|
256
|
+
return e.length > 0 && e.length <= _ && g.test(e) && !t.has(e);
|
|
256
257
|
}
|
|
257
258
|
function x(e) {
|
|
258
259
|
return {
|
|
@@ -262,16 +263,16 @@ function x(e) {
|
|
|
262
263
|
}
|
|
263
264
|
function S(e, t) {
|
|
264
265
|
try {
|
|
265
|
-
return
|
|
266
|
+
return i(e, t).diagnostics;
|
|
266
267
|
} catch {
|
|
267
268
|
return [];
|
|
268
269
|
}
|
|
269
270
|
}
|
|
270
271
|
function C(e) {
|
|
271
|
-
return
|
|
272
|
+
return a(e).ok;
|
|
272
273
|
}
|
|
273
274
|
function w(e) {
|
|
274
|
-
let t =
|
|
275
|
+
let t = a(e);
|
|
275
276
|
return t.ok ? [...t.schemaByName.values()] : [];
|
|
276
277
|
}
|
|
277
278
|
function T(e, t) {
|
|
@@ -316,7 +317,7 @@ function D(e, t) {
|
|
|
316
317
|
function O(e, t) {
|
|
317
318
|
return t.find((t) => t.name === e)?.props;
|
|
318
319
|
}
|
|
319
|
-
function k(
|
|
320
|
+
function k(t, i, a, o) {
|
|
320
321
|
let s = [];
|
|
321
322
|
o?.themeRange && s.push({
|
|
322
323
|
type: "component",
|
|
@@ -330,27 +331,27 @@ function k(n, i, a, o) {
|
|
|
330
331
|
id: e.nodeId,
|
|
331
332
|
range: e.range
|
|
332
333
|
});
|
|
333
|
-
let p = s.length ? i.concat(s) : i, m = /* @__PURE__ */ new Set(), h = [], g = /* @__PURE__ */ new Map(), _ = [], y = [], S = (e,
|
|
334
|
-
for (let r of f(
|
|
334
|
+
let p = s.length ? i.concat(s) : i, m = /* @__PURE__ */ new Set(), h = [], g = /* @__PURE__ */ new Map(), _ = [], y = [], S = (e, n) => {
|
|
335
|
+
for (let r of f(t, e, n)) _.push(r);
|
|
335
336
|
}, C = (e, t) => {
|
|
336
337
|
let n = g.get(e);
|
|
337
338
|
n ? n.push(x(t)) : g.set(e, [x(t)]);
|
|
338
|
-
}, w = (e,
|
|
339
|
+
}, w = (e, n) => {
|
|
339
340
|
if (m.has(e.range.start)) return;
|
|
340
|
-
let r = c(
|
|
341
|
+
let r = c(t, e.range.start);
|
|
341
342
|
if (!r || r.closing) return;
|
|
342
343
|
m.add(e.range.start), h.push({
|
|
343
344
|
kind: "tag",
|
|
344
345
|
range: x(r.nameRange)
|
|
345
346
|
});
|
|
346
347
|
let i = a.find((t) => t.name === e.name);
|
|
347
|
-
for (let
|
|
348
|
+
for (let n of r.attrs) {
|
|
348
349
|
if (h.push({
|
|
349
350
|
kind: "attribute",
|
|
350
|
-
range: x(
|
|
351
|
-
}), !
|
|
352
|
-
let o = O(e.name ?? "", a)?.[
|
|
353
|
-
if (i?.rules?.some((e) => e.kind === "validation-rule" && e.fields ===
|
|
351
|
+
range: x(n.nameRange)
|
|
352
|
+
}), !n.valueRange) continue;
|
|
353
|
+
let o = O(e.name ?? "", a)?.[n.name], s = i !== void 0 && T(i, n.name) && Object.values(i.bindings ?? {}).some((e) => e.bind === n.name && (e.requiresAttributes ?? []).every((e) => r.attrs.some((t) => t.name === e))), c = (e.name === "computed" || e.name === "const" || e.name === "external") && n.name === "name", l = t.slice(n.valueRange.start, n.valueRange.end), p = d(t, n.valueRange);
|
|
354
|
+
if (i?.rules?.some((e) => e.kind === "validation-rule" && e.fields === n.name)) {
|
|
354
355
|
for (let e of p.text.matchAll(/\S+/g)) {
|
|
355
356
|
if (!b(e[0])) continue;
|
|
356
357
|
let t = {
|
|
@@ -370,45 +371,45 @@ function k(n, i, a, o) {
|
|
|
370
371
|
let m = o && !o.static ? u(p.text, 0, p.text.length) : [];
|
|
371
372
|
if (m.length > 0) {
|
|
372
373
|
let e = 0;
|
|
373
|
-
for (let
|
|
374
|
-
|
|
374
|
+
for (let t of m) {
|
|
375
|
+
t.start > e && h.push({
|
|
375
376
|
kind: "string",
|
|
376
377
|
range: {
|
|
377
378
|
start: p.offsets[e],
|
|
378
|
-
end: p.offsets[
|
|
379
|
+
end: p.offsets[t.start]
|
|
379
380
|
}
|
|
380
381
|
}), h.push({
|
|
381
382
|
kind: "expression",
|
|
382
383
|
range: {
|
|
383
|
-
start: p.offsets[
|
|
384
|
-
end: p.offsets[
|
|
384
|
+
start: p.offsets[t.start],
|
|
385
|
+
end: p.offsets[t.end]
|
|
385
386
|
}
|
|
386
387
|
});
|
|
387
|
-
for (let e of f(p.text,
|
|
388
|
+
for (let e of f(p.text, t.innerStart, t.innerEnd)) (!i?.rules?.some((e) => e.kind === "scoped-expressions" && e.scope === "row" && e.attributes.includes(n.name) || e.kind === "row-values" && e.key === n.name) || e.name !== "item" && e.name !== "index") && _.push({
|
|
388
389
|
name: e.name,
|
|
389
390
|
range: {
|
|
390
391
|
start: p.offsets[e.range.start],
|
|
391
392
|
end: p.offsets[e.range.end]
|
|
392
393
|
}
|
|
393
394
|
});
|
|
394
|
-
e =
|
|
395
|
+
e = t.end;
|
|
395
396
|
}
|
|
396
397
|
e < p.text.length && h.push({
|
|
397
398
|
kind: "string",
|
|
398
399
|
range: {
|
|
399
400
|
start: p.offsets[e],
|
|
400
|
-
end:
|
|
401
|
+
end: n.valueRange.end
|
|
401
402
|
}
|
|
402
403
|
});
|
|
403
404
|
} else (s || c) && b(l) ? (h.push({
|
|
404
405
|
kind: "binding",
|
|
405
|
-
range: x(
|
|
406
|
-
}), C(l,
|
|
406
|
+
range: x(n.valueRange)
|
|
407
|
+
}), C(l, n.valueRange)) : n.valueRange.end > n.valueRange.start && h.push({
|
|
407
408
|
kind: "string",
|
|
408
|
-
range: x(
|
|
409
|
+
range: x(n.valueRange)
|
|
409
410
|
});
|
|
410
411
|
}
|
|
411
|
-
let o = l(
|
|
412
|
+
let o = l(t, e, r.end);
|
|
412
413
|
o && h.push({
|
|
413
414
|
kind: "tag",
|
|
414
415
|
range: x(o.nameRange)
|
|
@@ -425,14 +426,14 @@ function k(n, i, a, o) {
|
|
|
425
426
|
kind: "math",
|
|
426
427
|
range: x(s.range)
|
|
427
428
|
}), a.find((e) => e.name === o)?.rules?.some((e) => e.kind === "inline-math-reads") && s.type === "math") {
|
|
428
|
-
let
|
|
429
|
+
let n = s.range.start + 2;
|
|
429
430
|
try {
|
|
430
|
-
for (let r of e(
|
|
431
|
+
for (let r of e(t.slice(n, s.range.end - 2))) {
|
|
431
432
|
let e = {
|
|
432
433
|
name: r.name,
|
|
433
434
|
range: {
|
|
434
|
-
start:
|
|
435
|
-
end:
|
|
435
|
+
start: n + r.range.start,
|
|
436
|
+
end: n + r.range.end
|
|
436
437
|
}
|
|
437
438
|
};
|
|
438
439
|
_.push(e), y.push(e);
|
|
@@ -446,9 +447,9 @@ function k(n, i, a, o) {
|
|
|
446
447
|
kind: "comment",
|
|
447
448
|
range: x(s.range)
|
|
448
449
|
});
|
|
449
|
-
if (!v.has(s.type) &&
|
|
450
|
-
let e = c(
|
|
451
|
-
e && !e.closing && (
|
|
450
|
+
if (!v.has(s.type) && t[s.range.start] === "<" && !m.has(s.range.start)) {
|
|
451
|
+
let e = c(t, s.range.start);
|
|
452
|
+
e && !e.closing && (r.has(e.name.toLowerCase()) || n.has(e.name.toLowerCase())) && w({
|
|
452
453
|
...s,
|
|
453
454
|
name: e.name
|
|
454
455
|
}, o);
|
|
@@ -457,7 +458,7 @@ function k(n, i, a, o) {
|
|
|
457
458
|
}
|
|
458
459
|
};
|
|
459
460
|
E(p);
|
|
460
|
-
for (let e of D(
|
|
461
|
+
for (let e of D(t, p)) h.push({
|
|
461
462
|
kind: "comment",
|
|
462
463
|
range: e
|
|
463
464
|
});
|
|
@@ -817,13 +818,13 @@ function W(e, t, n, r) {
|
|
|
817
818
|
if (typeof e != "string" || typeof t != "string" || typeof n != "string") throw Error("Rename requires string arguments.");
|
|
818
819
|
if (!C(r)) throw Error("Bindings cannot be renamed with invalid compile options.");
|
|
819
820
|
if (!b(n)) throw Error(`"${n}" is not a valid binding name. Use [A-Za-z_][A-Za-z0-9_]* and avoid reserved names.`);
|
|
820
|
-
let
|
|
821
|
+
let a = k(e, o(e, r).nodes, w(r)), s = a.bindings.find((e) => e.name === t);
|
|
821
822
|
if (!s || s.declarations.length === 0) throw Error(`Binding "${t}" is not declared in this document.`);
|
|
822
823
|
if (t === n) return {
|
|
823
824
|
source: e,
|
|
824
825
|
edits: []
|
|
825
826
|
};
|
|
826
|
-
if (
|
|
827
|
+
if (a.bindings.some((e) => e.name === n)) throw Error(`Binding "${n}" already exists.`);
|
|
827
828
|
if (S(e, r).some((e) => e.severity === "error" && y.has(e.code))) throw Error("The document cannot be renamed safely while parse errors remain.");
|
|
828
829
|
let c = /* @__PURE__ */ new Set(), l = [];
|
|
829
830
|
for (let e of [...s.declarations, ...s.references]) {
|
|
@@ -831,11 +832,11 @@ function W(e, t, n, r) {
|
|
|
831
832
|
c.has(t) || (c.add(t), l.push(x(e)));
|
|
832
833
|
}
|
|
833
834
|
l.sort((e, t) => e.start - t.start || e.end - t.end);
|
|
834
|
-
let u = new Set(
|
|
835
|
+
let u = new Set(a.mathReferences.filter((e) => e.name === t).map((e) => `${e.range.start}:${e.range.end}`)), d = l.map((e) => ({
|
|
835
836
|
range: x(e),
|
|
836
837
|
text: u.has(`${e.start}:${e.end}`) ? `\\mathrm{${n}}` : n
|
|
837
838
|
})), f = U(e, d);
|
|
838
|
-
if (
|
|
839
|
+
if (i(e, r).ok && !i(f, r).ok) throw Error("Rename could not preserve all binding references; the source was left unchanged.");
|
|
839
840
|
return {
|
|
840
841
|
source: f,
|
|
841
842
|
edits: d
|
|
@@ -852,18 +853,18 @@ function K(e, t) {
|
|
|
852
853
|
if (typeof e != "string" || !C(t)) return e;
|
|
853
854
|
let n;
|
|
854
855
|
try {
|
|
855
|
-
n =
|
|
856
|
+
n = i(e, t);
|
|
856
857
|
} catch {
|
|
857
858
|
return e;
|
|
858
859
|
}
|
|
859
860
|
if (n.diagnostics.some((e) => e.severity === "error")) return e;
|
|
860
|
-
let r = o(e, t),
|
|
861
|
+
let r = o(e, t), a = [], s = (t) => {
|
|
861
862
|
for (let n of t) {
|
|
862
863
|
if ((n.type === "component" || n.type === "hostComponent") && n.name) {
|
|
863
864
|
let t = c(e, n.range.start);
|
|
864
865
|
if (t && !t.closing && !/[\r\n]/.test(e.slice(t.start, t.end))) {
|
|
865
866
|
let n = G(e, t);
|
|
866
|
-
n !== e.slice(t.start, t.end) &&
|
|
867
|
+
n !== e.slice(t.start, t.end) && a.push({
|
|
867
868
|
start: t.start,
|
|
868
869
|
end: t.end,
|
|
869
870
|
text: n
|
|
@@ -873,7 +874,7 @@ function K(e, t) {
|
|
|
873
874
|
let r = l(e, n, t.end);
|
|
874
875
|
if (r && !/[\r\n]/.test(e.slice(r.start, r.end))) {
|
|
875
876
|
let t = `</${e.slice(r.nameRange.start, r.nameRange.end)}>`;
|
|
876
|
-
t !== e.slice(r.start, r.end) &&
|
|
877
|
+
t !== e.slice(r.start, r.end) && a.push({
|
|
877
878
|
start: r.start,
|
|
878
879
|
end: r.end,
|
|
879
880
|
text: t
|
|
@@ -884,9 +885,9 @@ function K(e, t) {
|
|
|
884
885
|
n.type !== "fallback" && n.children && s(n.children);
|
|
885
886
|
}
|
|
886
887
|
};
|
|
887
|
-
s(r.nodes),
|
|
888
|
+
s(r.nodes), a.sort((e, t) => e.start - t.start || e.end - t.end);
|
|
888
889
|
let u = "", d = 0;
|
|
889
|
-
for (let t of
|
|
890
|
+
for (let t of a) t.start < d || (u += e.slice(d, t.start) + t.text, d = t.end);
|
|
890
891
|
return u + e.slice(d);
|
|
891
892
|
}
|
|
892
893
|
export { W as i, H as n, K as r, A as t };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// src/components/chart/chart.css?inline
|
|
2
|
+
var e = "@layer rmd.components{.md-document .rmd-chart{box-sizing:border-box;min-inline-size:0;max-inline-size:100%;color:var(--ink);font-family:var(--font-sans);font-size:var(--text-xs)}.md-document .rmd-chart-stage{min-inline-size:0;max-inline-size:100%;position:relative}.md-document .rmd-chart-svg{width:100%;max-width:100%;height:auto;font-family:var(--font-sans);touch-action:pan-y;display:block;overflow:visible}.md-document .rmd-chart-svg:focus-visible{outline:var(--focus-outline);outline-offset:3px;border-radius:var(--radius-control)}.md-document .rmd-chart-tooltip{z-index:3;box-sizing:border-box;border:1px solid var(--line-strong);border-radius:var(--radius-control);background:var(--surface);width:230px;max-width:calc(100% - 16px);color:var(--ink);box-shadow:var(--shadow-md);font-size:var(--text-xs);line-height:var(--leading-snug);white-space:normal;overflow-wrap:anywhere;pointer-events:none;padding:10px 12px;position:absolute}.md-document .rmd-chart-tooltip-title{border-bottom:1px solid var(--line);color:var(--ink-soft);font-weight:var(--weight-medium);margin:0 0 8px;padding:0 0 8px}.md-document .rmd-chart-tooltip-row{justify-content:space-between;align-items:flex-start;gap:12px;margin:6px 0;display:flex}.md-document .rmd-chart-tooltip-label{overflow-wrap:anywhere;align-items:flex-start;gap:8px;min-inline-size:0;display:flex}.md-document .rmd-chart-tooltip-value{font-weight:var(--weight-semibold);font-variant-numeric:tabular-nums;white-space:nowrap;flex:none;margin-inline-start:auto}.md-document .rmd-chart-tooltip-dot{border-radius:var(--radius-circle);background:currentColor;flex:none;block-size:8px;inline-size:8px;margin-block-start:.4em;display:inline-block}.md-document .rmd-chart-tooltip-foot{color:var(--ink-muted);font-size:11px;line-height:var(--leading-snug);margin:8px 0 0}.md-document .rmd-chart-legend{flex-wrap:wrap;align-items:center;gap:4px 10px;margin:12px 0 6px;padding:0;list-style:none;display:flex}.md-document .rmd-chart-legend-item{box-sizing:border-box;border-radius:var(--radius-control);min-block-size:32px;min-inline-size:0;max-inline-size:100%;color:var(--ink);font:inherit;font-size:var(--text-xs);line-height:var(--leading-snug);text-align:start;cursor:pointer;transition:background-color var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard), color var(--motion-fast) var(--ease-standard), opacity var(--motion-fast) var(--ease-standard);background:0 0;border:1px solid #0000;align-items:center;gap:8px;margin:0;padding:6px 8px;display:inline-flex}@media (hover:hover) and (pointer:fine){.md-document .rmd-chart-legend-item:hover:not(.is-off):not(.is-selected){background:var(--surface-hover)}}.md-document .rmd-chart-legend-item:focus-visible{outline:var(--focus-outline);outline-offset:2px}.md-document .rmd-chart-legend-item:disabled{cursor:default}.md-document .rmd-chart-legend-item.is-off{opacity:.42;color:var(--ink-muted);text-decoration:line-through}.md-document .rmd-chart-legend-item.is-highlighted{background:var(--surface-hover);border-color:var(--line)}.md-document .rmd-chart-legend-item.is-selected{background:var(--accent-soft);border-color:var(--accent-line);color:var(--accent-text)}.md-document .rmd-chart-swatch{border-radius:var(--radius-xs);background:currentColor;flex:none;block-size:9px;inline-size:9px}.md-document .rmd-chart-legend-label{text-overflow:ellipsis;white-space:nowrap;flex:0 auto;min-inline-size:0;max-inline-size:100%;overflow:hidden}.md-document .rmd-chart-legend-share{color:var(--ink-muted);font-variant-numeric:tabular-nums;white-space:nowrap;flex:none;margin-inline-start:4px}.md-document .rmd-chart-svg [data-series],.md-document .rmd-chart :is(.local-visual-bar,.local-visual-point,.local-visual-donut-slice){transition:opacity var(--motion-fast) var(--ease-standard)}.md-document .rmd-chart .local-visual-donut-slice{transition:opacity var(--motion-fast) var(--ease-standard), transform .2s var(--ease-standard)}.md-document .rmd-chart-grid{stroke:var(--chart-grid);stroke-width:1px;stroke-dasharray:3 4}.md-document .rmd-chart-axis-label{fill:var(--chart-axis);font-variant-numeric:tabular-nums;font-size:11px}.md-document .rmd-chart-axis-title{fill:var(--ink-soft);font-size:var(--text-xs);font-weight:var(--weight-medium)}.md-document .rmd-chart-guide{stroke:var(--ink-muted);stroke-width:1px;stroke-dasharray:4 4;opacity:.65;pointer-events:none}.md-document .rmd-chart-readout{min-block-size:1.5em;margin:var(--space-2) 0;color:var(--ink-muted);font-size:var(--text-xs);line-height:var(--leading-snug);font-variant-numeric:tabular-nums}.md-document .rmd-chart-empty{box-sizing:border-box;min-block-size:140px;padding:var(--space-5);border:1px dashed var(--line);border-radius:var(--radius-card);background:var(--surface-subtle);color:var(--ink-muted);font-size:var(--text-xs);text-align:center;justify-content:center;align-items:center;margin:0;display:flex}@media print{.md-document .rmd-chart-tooltip,.md-document .rmd-chart-guide,.md-document .rmd-chart-readout{display:none!important}}@media (prefers-reduced-motion:reduce){.md-document .rmd-chart,.md-document .rmd-chart *{transition:none!important;animation:none!important}}}";
|
|
3
|
+
export { e as t };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// src/contracts/color-values.ts
|
|
2
|
+
var e = /* @__PURE__ */ new Set(/* @__PURE__ */ "aliceblue.antiquewhite.aqua.aquamarine.azure.beige.bisque.black.blanchedalmond.blue.blueviolet.brown.burlywood.cadetblue.chartreuse.chocolate.coral.cornflowerblue.cornsilk.crimson.cyan.darkblue.darkcyan.darkgoldenrod.darkgray.darkgreen.darkgrey.darkkhaki.darkmagenta.darkolivegreen.darkorange.darkorchid.darkred.darksalmon.darkseagreen.darkslateblue.darkslategray.darkslategrey.darkturquoise.darkviolet.deeppink.deepskyblue.dimgray.dimgrey.dodgerblue.firebrick.floralwhite.forestgreen.fuchsia.gainsboro.ghostwhite.gold.goldenrod.gray.green.greenyellow.grey.honeydew.hotpink.indianred.indigo.ivory.khaki.lavender.lavenderblush.lawngreen.lemonchiffon.lightblue.lightcoral.lightcyan.lightgoldenrodyellow.lightgray.lightgreen.lightgrey.lightpink.lightsalmon.lightseagreen.lightskyblue.lightslategray.lightslategrey.lightsteelblue.lightyellow.lime.limegreen.linen.magenta.maroon.mediumaquamarine.mediumblue.mediumorchid.mediumpurple.mediumseagreen.mediumslateblue.mediumspringgreen.mediumturquoise.mediumvioletred.midnightblue.mintcream.mistyrose.moccasin.navajowhite.navy.oldlace.olive.olivedrab.orange.orangered.orchid.palegoldenrod.palegreen.paleturquoise.palevioletred.papayawhip.peachpuff.peru.pink.plum.powderblue.purple.rebeccapurple.red.rosybrown.royalblue.saddlebrown.salmon.sandybrown.seagreen.seashell.sienna.silver.skyblue.slateblue.slategray.slategrey.snow.springgreen.steelblue.tan.teal.thistle.tomato.turquoise.violet.wheat.white.whitesmoke.yellow.yellowgreen".split(".")), t = /^#(?:[0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/;
|
|
3
|
+
function n(n) {
|
|
4
|
+
return typeof n == "string" ? t.test(n) || e.has(n.toLowerCase()) : !1;
|
|
5
|
+
}
|
|
6
|
+
export { n as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { C as e, T as t, o as n } from "./limits-CFERRrlC.js";
|
|
2
|
+
import { _ as r, l as i, o as a } from "./document-theme-DBAfnk7y.js";
|
|
3
3
|
// src/local/evaluation/expression/values.ts
|
|
4
4
|
var o = class extends Error {
|
|
5
5
|
offset;
|
|
@@ -28,37 +28,37 @@ var o = class extends Error {
|
|
|
28
28
|
"false",
|
|
29
29
|
"null",
|
|
30
30
|
...u
|
|
31
|
-
]), ne = 4e3, d =
|
|
31
|
+
]), ne = 4e3, d = e;
|
|
32
32
|
function f(r) {
|
|
33
33
|
if (r.length > 1e4) return {
|
|
34
34
|
code: "expression-budget",
|
|
35
|
-
...i("local.budget.value.array", { limit:
|
|
36
|
-
message: `Array exceeds the ${
|
|
35
|
+
...i("local.budget.value.array", { limit: n }),
|
|
36
|
+
message: `Array exceeds the ${n}-item limit.`
|
|
37
37
|
};
|
|
38
38
|
let a = null, o = 0;
|
|
39
|
-
for (let
|
|
39
|
+
for (let n of r) if (typeof n == "string") {
|
|
40
40
|
if (a === "number") return {
|
|
41
41
|
code: "expression-value",
|
|
42
42
|
key: "error.array.homogeneous",
|
|
43
43
|
message: "Array elements must all be strings or all be numbers."
|
|
44
44
|
};
|
|
45
|
-
if (a = "string",
|
|
45
|
+
if (a = "string", n.length > 1e5) return {
|
|
46
46
|
code: "expression-budget",
|
|
47
|
-
...i("local.budget.value.array-member", { limit:
|
|
48
|
-
message: `Array member exceeds the ${
|
|
47
|
+
...i("local.budget.value.array-member", { limit: e }),
|
|
48
|
+
message: `Array member exceeds the ${e}-character limit.`
|
|
49
49
|
};
|
|
50
|
-
if (o +=
|
|
50
|
+
if (o += n.length, o > 1e5) return {
|
|
51
51
|
code: "expression-budget",
|
|
52
|
-
...i("local.budget.value.array-contents", { limit:
|
|
53
|
-
message: `Array contents exceed the ${
|
|
52
|
+
...i("local.budget.value.array-contents", { limit: t }),
|
|
53
|
+
message: `Array contents exceed the ${t}-character limit.`
|
|
54
54
|
};
|
|
55
|
-
} else if (typeof
|
|
55
|
+
} else if (typeof n == "number") {
|
|
56
56
|
if (a === "string") return {
|
|
57
57
|
code: "expression-value",
|
|
58
58
|
key: "error.array.homogeneous",
|
|
59
59
|
message: "Array elements must all be strings or all be numbers."
|
|
60
60
|
};
|
|
61
|
-
if (a = "number", !Number.isFinite(
|
|
61
|
+
if (a = "number", !Number.isFinite(n)) return {
|
|
62
62
|
code: "expression-value",
|
|
63
63
|
key: "error.array.finite",
|
|
64
64
|
message: "Array members must be finite numbers."
|
|
@@ -70,11 +70,11 @@ function f(r) {
|
|
|
70
70
|
};
|
|
71
71
|
return null;
|
|
72
72
|
}
|
|
73
|
-
function p(
|
|
74
|
-
if (typeof
|
|
75
|
-
if (Array.isArray(
|
|
76
|
-
let
|
|
77
|
-
return
|
|
73
|
+
function p(t) {
|
|
74
|
+
if (typeof t == "string") return t.length > 1e5 ? i("local.budget.value.string", { limit: e }) : null;
|
|
75
|
+
if (Array.isArray(t)) {
|
|
76
|
+
let e = f(t);
|
|
77
|
+
return e ? i(e.key, e.params) : null;
|
|
78
78
|
}
|
|
79
79
|
return null;
|
|
80
80
|
}
|
|
@@ -536,9 +536,9 @@ var ce = class {
|
|
|
536
536
|
function y(e) {
|
|
537
537
|
throw new g("expression-domain", e);
|
|
538
538
|
}
|
|
539
|
-
function b(
|
|
540
|
-
if (
|
|
541
|
-
return
|
|
539
|
+
function b(t, n) {
|
|
540
|
+
if (t.length > 1e5) throw new g("expression-budget", `${n} exceeds the ${e}-character limit.`);
|
|
541
|
+
return t;
|
|
542
542
|
}
|
|
543
543
|
function x(e) {
|
|
544
544
|
return le.has(e) || y(`Unsupported locale "${e}"; expected one of ${_.join(", ")}.`), e;
|
|
@@ -784,25 +784,25 @@ function be(e, t) {
|
|
|
784
784
|
function xe(e, t) {
|
|
785
785
|
return e.endsWith(t);
|
|
786
786
|
}
|
|
787
|
-
function Se(
|
|
787
|
+
function Se(t, n, r) {
|
|
788
788
|
n.length === 0 && F("replace search text must not be empty.");
|
|
789
789
|
let i = r.length - n.length;
|
|
790
790
|
if (i > 0) {
|
|
791
791
|
let r = 0, a = 0;
|
|
792
792
|
for (;;) {
|
|
793
|
-
let
|
|
794
|
-
if (
|
|
795
|
-
r += 1, a =
|
|
793
|
+
let e = t.indexOf(n, a);
|
|
794
|
+
if (e < 0) break;
|
|
795
|
+
r += 1, a = e + n.length;
|
|
796
796
|
}
|
|
797
|
-
if (
|
|
797
|
+
if (t.length + r * i > 1e5) throw new g("expression-budget", `replace result would exceed the ${e}-character limit.`);
|
|
798
798
|
}
|
|
799
799
|
let a = "", o = 0;
|
|
800
800
|
for (;;) {
|
|
801
|
-
let
|
|
802
|
-
if (
|
|
803
|
-
a +=
|
|
801
|
+
let e = t.indexOf(n, o);
|
|
802
|
+
if (e < 0) break;
|
|
803
|
+
a += t.slice(o, e), a += r, o = e + n.length;
|
|
804
804
|
}
|
|
805
|
-
return a +=
|
|
805
|
+
return a += t.slice(o), b(a, "replace result");
|
|
806
806
|
}
|
|
807
807
|
function L(e, t) {
|
|
808
808
|
return e < 0 ? Math.max(t + e, 0) : Math.min(e, t);
|
|
@@ -1131,7 +1131,7 @@ function K(e, t, n, i) {
|
|
|
1131
1131
|
throw new o("expression-eval", "Unsupported expression.", 0);
|
|
1132
1132
|
}
|
|
1133
1133
|
// src/local/evaluation/expression/compile.ts
|
|
1134
|
-
var q =
|
|
1134
|
+
var q = e, Ie = 500, J = /* @__PURE__ */ new Map(), Y = /* @__PURE__ */ new WeakMap();
|
|
1135
1135
|
function Le(e, t) {
|
|
1136
1136
|
return Y.get(e)?.get(t);
|
|
1137
1137
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { d as e } from "./validation-XXlb-spV.js";
|
|
2
|
+
import { t } from "./types-daDo2c_w.js";
|
|
3
|
+
import { a as n } from "./version-B0G1699c.js";
|
|
4
|
+
import { t as r } from "./parser-standard-BPIy4HOu.js";
|
|
5
|
+
import i from "./reactive-md-default-preset.js";
|
|
6
|
+
import { r as a, t as o } from "./default-options-DU5dxuU6.js";
|
|
7
|
+
// src/local/compilation/cache-version.ts
|
|
8
|
+
var s = `rmd-compile/v1:${n}:${t}:2:4`;
|
|
9
|
+
// src/assemblies/compile-cache-key.ts
|
|
10
|
+
function c(t, n, c = {}) {
|
|
11
|
+
let { entry: l = "session", sourcePhase: u, policyVersion: d } = c;
|
|
12
|
+
if (typeof t != "string") throw TypeError("localCompileCacheKey requires a source string.");
|
|
13
|
+
if (u !== void 0 && u !== "final" && u !== "streaming") throw TypeError("sourcePhase must be \"streaming\" or \"final\".");
|
|
14
|
+
let f = l === "minimal" ? e(n) : l === "standard" ? e(n, i.components, r) : a(n);
|
|
15
|
+
if (!f.ok) throw TypeError(f.message);
|
|
16
|
+
let p = u ?? f.sourcePhase ?? (l === "session" ? "legacy" : "final"), m = f.legacyHostNames.size ? f.hostComponents.map(({ props: e, ...t }) => [t, Object.keys(e).sort().map((t) => [t, e[t]])]) : null;
|
|
17
|
+
return JSON.stringify([
|
|
18
|
+
s,
|
|
19
|
+
l,
|
|
20
|
+
p,
|
|
21
|
+
d ?? null,
|
|
22
|
+
f.componentConfigKey,
|
|
23
|
+
o(n),
|
|
24
|
+
m,
|
|
25
|
+
t
|
|
26
|
+
]);
|
|
27
|
+
}
|
|
28
|
+
export { c as t };
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { a as e, i as t, s as n } from "./latex-1w7aQgD5.js";
|
|
2
|
+
import { i as r, n as i } from "./compiler-core-Niqhp9wV.js";
|
|
3
|
+
import { n as a } from "./display-y4v9v0Qd.js";
|
|
4
|
+
import { i as o } from "./html-CCnvzan1.js";
|
|
5
|
+
import { r as s, t as c } from "./default-options-DU5dxuU6.js";
|
|
6
|
+
import { n as l, r as u, t as d } from "./observability-core-Bcu7vpnl.js";
|
|
7
|
+
// src/local/compilation/compile-status.ts
|
|
8
|
+
function f(e) {
|
|
9
|
+
return e.ok ? "ok" : e.diagnostics.some((e) => e.severity === "error" && (e.phase === "resource" || e.code.startsWith("local.budget"))) ? "budget-rejected" : "failed";
|
|
10
|
+
}
|
|
11
|
+
// src/local/compilation/compiler.ts
|
|
12
|
+
function p(e, t) {
|
|
13
|
+
let n = t?.observer, i = n?.onTrace ? d() : void 0, a = i ? globalThis.performance?.now() ?? Date.now() : 0, o, s, c, p = i ? (e) => {
|
|
14
|
+
e === "parse-start" && (o = globalThis.performance?.now() ?? Date.now()), e === "parseMs" && (s = globalThis.performance?.now() ?? Date.now()), e === "mathDisplayMs" && (c = globalThis.performance?.now() ?? Date.now());
|
|
15
|
+
} : void 0;
|
|
16
|
+
i && u(n, {
|
|
17
|
+
type: "compile-start",
|
|
18
|
+
traceId: i,
|
|
19
|
+
timestamp: Date.now()
|
|
20
|
+
});
|
|
21
|
+
let m = r(_(e, t, void 0, void 0, p));
|
|
22
|
+
if (n?.onDiagnostic) {
|
|
23
|
+
for (let e of m.diagnostics) l(n, e);
|
|
24
|
+
for (let e of m.transientDiagnostics ?? []) l(n, e);
|
|
25
|
+
}
|
|
26
|
+
if (i) {
|
|
27
|
+
let e = Math.max(0, Math.round((globalThis.performance?.now() ?? Date.now()) - a));
|
|
28
|
+
u(n, {
|
|
29
|
+
type: "compile-end",
|
|
30
|
+
traceId: i,
|
|
31
|
+
timestamp: Date.now(),
|
|
32
|
+
status: f(m),
|
|
33
|
+
durationMs: e,
|
|
34
|
+
...o === void 0 || s === void 0 ? {} : { parseMs: Math.max(0, Math.round(s - o)) },
|
|
35
|
+
...s === void 0 || c === void 0 ? {} : { semanticMs: Math.max(0, Math.round(c - s)) }
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
return m;
|
|
39
|
+
}
|
|
40
|
+
function m(e, t, n, r, i = !1) {
|
|
41
|
+
let a, o = () => globalThis.performance?.now?.() ?? Date.now(), s = o(), l = {}, u = s, d, f = (e) => {
|
|
42
|
+
if (e === "parse-start") {
|
|
43
|
+
i && (u = o());
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
let t = o();
|
|
47
|
+
l[e] = t - u, u = t, i && e === "parseMs" && (d = t), d !== void 0 && e === "mathDisplayMs" && (l.semanticMs = t - d);
|
|
48
|
+
};
|
|
49
|
+
n?.semantic?.begin(c(t));
|
|
50
|
+
let p = _(e, t, (e) => {
|
|
51
|
+
a = e;
|
|
52
|
+
}, n, f, r);
|
|
53
|
+
return l.totalMs = o() - s, {
|
|
54
|
+
result: p,
|
|
55
|
+
parsed: a,
|
|
56
|
+
...n?.semantic ? { semantic: n.semantic.stats } : {},
|
|
57
|
+
timings: l
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function h(e) {
|
|
61
|
+
return {
|
|
62
|
+
ok: !1,
|
|
63
|
+
diagnostics: [{
|
|
64
|
+
code: "local.options.invalid",
|
|
65
|
+
message: e.message,
|
|
66
|
+
severity: "error",
|
|
67
|
+
phase: "host",
|
|
68
|
+
recoverable: !1,
|
|
69
|
+
range: {
|
|
70
|
+
start: 0,
|
|
71
|
+
end: 0
|
|
72
|
+
},
|
|
73
|
+
line: 1,
|
|
74
|
+
column: 1,
|
|
75
|
+
messageKey: e.key,
|
|
76
|
+
...e.detail === void 0 ? {} : { params: { detail: e.detail } }
|
|
77
|
+
}]
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
function g(r) {
|
|
81
|
+
return {
|
|
82
|
+
...r?.parser ? { parser: r.parser } : {},
|
|
83
|
+
...r?.semantic ? { semantic: r.semantic } : {},
|
|
84
|
+
...r?.rowPlans ? { rowPlans: r.rowPlans } : {},
|
|
85
|
+
display: r?.semantic ? (e, t) => r.semantic.display(e, t) : a,
|
|
86
|
+
htmlFragment: o,
|
|
87
|
+
plotMath: {
|
|
88
|
+
kind: n,
|
|
89
|
+
gridSize: e,
|
|
90
|
+
compile: t
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
function _(e, t, n, r, a, o) {
|
|
95
|
+
let c = s(t);
|
|
96
|
+
return c.ok ? i(e, t, c, g(r), n, a, o) : h(c);
|
|
97
|
+
}
|
|
98
|
+
export { m as n, f as r, p as t };
|