reactive-md 0.9.3 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG-ch.md +34 -0
- package/CHANGELOG.md +34 -0
- package/README-ch.md +7 -7
- package/README-en.md +7 -7
- package/README.md +7 -7
- package/THIRD_PARTY_NOTICES.md +0 -57
- package/cli/help.mjs +6 -4
- package/cli/init.mjs +1 -1
- package/cli/migrate.mjs +1 -1
- package/dist-library/{LocalDocumentView-D6zQkTkt.js → LocalDocumentView-CP2QG86k.js} +46 -44
- package/dist-library/{LocalDocumentViewCore-CmJhemcA.js → LocalDocumentViewCore-Cd6yMEkg.js} +284 -265
- package/dist-library/{LocalReactiveDocumentCore-lAKOGAZ7.js → LocalReactiveDocumentCore-VuYpZqdn.js} +7 -7
- package/dist-library/LocalStaticDocumentView-DfX6bemE.js +147 -0
- package/dist-library/authoring-Bwu_zCWs.js +768 -0
- package/dist-library/choice-values-BItGjPD2.js +58 -0
- package/dist-library/compile-B35rfzKr.js +1742 -0
- package/dist-library/{compile-cache-key-6GgpETz_.js → compile-cache-key-D21X2Obx.js} +5 -5
- package/dist-library/{compiler-DLkKUK4t.js → compiler-DBwLawMZ.js} +4 -4
- package/dist-library/{compiler-core-Niqhp9wV.js → compiler-core-kkDiQ1RK.js} +3146 -2055
- package/dist-library/{component-kernel-IG4wOO0i.js → component-kernel-CsJSabHX.js} +42 -26
- package/dist-library/{component-state-Ht-hOK0W.js → component-state-Da0G8Ajc.js} +1 -1
- package/dist-library/{component-utils-eSj5IdG4.js → component-utils-ZM3jUJNy.js} +80 -79
- package/dist-library/conditional-branches-CIhJXasR.js +17 -0
- package/dist-library/{config-validation-Cpol91_M.js → config-validation-DbmsWAEV.js} +165 -152
- package/dist-library/{controls-B-CLSK8Q.js → controls-DRy5rzzN.js} +271 -228
- package/dist-library/{coordinate-PyLPMIQK.js → coordinate-c54pHfgf.js} +29 -29
- package/dist-library/data-table-CSAkm1eU.js +290 -0
- package/dist-library/data-table-model-DruztQFt.js +391 -0
- package/dist-library/{data-visuals-_Z7QqYTk.js → data-visuals-rZQUeQM0.js} +14 -14
- package/dist-library/{default-components-jugH7Ubr.js → default-components-B-39etG9.js} +233 -71
- package/dist-library/{default-config-DIrRpuQz.js → default-config-CCa8rm2k.js} +236 -216
- package/dist-library/default-options-By16CVw1.js +131 -0
- package/dist-library/{default-registry-BlloaZi7.js → default-registry-DXJy66xj.js} +3 -3
- package/dist-library/{default-schema-Ch-Vznpm.js → default-schema-CeYiEW1K.js} +3 -3
- package/dist-library/display-Bb6hAG5T.js +2065 -0
- package/dist-library/{document-theme-DBAfnk7y.js → document-theme-CJvN-nC1.js} +190 -3
- package/dist-library/{export-heVBqgxA.js → export-BSV4E0jv.js} +105 -106
- package/dist-library/font-aliases-CKYjwn4o.js +4 -0
- package/dist-library/{gallery-Q6VPS2ep.js → gallery-DM2yTVZJ.js} +1 -1
- package/dist-library/{html-CCnvzan1.js → html-CY9mC3Sr.js} +5 -5
- package/dist-library/{incremental-Bzvh8_lB.js → incremental-B-wW4H3F.js} +251 -245
- package/dist-library/{display-y4v9v0Qd.js → katex-4ukd4ZxT.js} +1555 -3618
- package/dist-library/layout-CPQggKxk.js +592 -0
- package/dist-library/{layout-BnfDeUNy.js → layout-CaDWsDof.js} +1 -1
- package/dist-library/{math-view-B0jthpRw.js → math-view-CyGTS6kv.js} +1 -1
- package/dist-library/{mount-preset-C_i37FvY.js → mount-preset-DtrCX4G8.js} +4 -4
- package/dist-library/{numeric-sliders-CkWS0-ja.js → numeric-sliders-BmJ1LCLx.js} +190 -190
- package/dist-library/{observability-CYLuvFfL.js → observability-BVQ16ByQ.js} +5 -4
- package/dist-library/{package-core-9UK5ZdqB.js → package-core-Cu_r_qs7.js} +7 -6
- package/dist-library/{parser-9yNJxGip.js → parser-BHl9Lxbw.js} +2 -2
- package/dist-library/{parser-standard-BPIy4HOu.js → parser-standard-DDAKv_DZ.js} +247 -247
- package/dist-library/{plugin-packs-CZb46nuv.js → plugin-packs-CkI0floL.js} +3 -3
- package/dist-library/{preset-core-BW3NWZJ9.js → preset-core-BKPbH_Nv.js} +377 -306
- package/dist-library/{props-pJRrfDc6.js → props-0iDqxlTk.js} +56 -61
- package/dist-library/{react-BSo0o998.js → react-74jdGBmu.js} +2 -2
- package/dist-library/reactive-md-authoring.js +277 -269
- package/dist-library/reactive-md-build.js +327 -33
- package/dist-library/reactive-md-compiler-session.js +3 -3
- package/dist-library/reactive-md-compiler-standard.js +10 -10
- package/dist-library/reactive-md-compiler.js +3 -3
- package/dist-library/reactive-md-contracts.js +4 -4
- package/dist-library/reactive-md-default-packs.js +4 -3
- package/dist-library/reactive-md-default-preset.js +3 -3
- package/dist-library/reactive-md-export.js +6 -6
- package/dist-library/reactive-md-minimal-preset.js +3 -2
- package/dist-library/reactive-md-minimal-react-preset.js +18 -17
- package/dist-library/reactive-md-minimal.css +1 -1
- package/dist-library/reactive-md-observability.js +2 -2
- package/dist-library/reactive-md-pack-style-manifest.js +8 -0
- package/dist-library/reactive-md-plugin-chart.js +13 -9
- package/dist-library/reactive-md-plugin-data.js +4 -4
- package/dist-library/reactive-md-plugin-diagram.js +3 -3
- package/dist-library/reactive-md-plugin-forms.js +5 -5
- package/dist-library/reactive-md-plugin-gallery.js +3 -3
- package/dist-library/reactive-md-plugin-navigation.js +10 -10
- package/dist-library/reactive-md-plugin-network.js +5 -5
- package/dist-library/reactive-md-plugin-plot.js +4 -4
- package/dist-library/reactive-md-react-component-accordion.js +3 -3
- package/dist-library/reactive-md-react-component-alert.js +3 -3
- package/dist-library/reactive-md-react-component-anchor.js +3 -3
- package/dist-library/reactive-md-react-component-badge.js +3 -3
- package/dist-library/reactive-md-react-component-card.js +3 -3
- package/dist-library/reactive-md-react-component-chart.js +2 -2
- package/dist-library/reactive-md-react-component-checkbox.js +2 -2
- package/dist-library/reactive-md-react-component-checklist.js +2 -2
- package/dist-library/reactive-md-react-component-choices.js +2 -2
- package/dist-library/reactive-md-react-component-column.js +1 -1
- package/dist-library/reactive-md-react-component-coordinate.js +2 -2
- package/dist-library/reactive-md-react-component-counter.js +2 -2
- package/dist-library/reactive-md-react-component-data-table.js +2 -2
- package/dist-library/reactive-md-react-component-date.js +2 -2
- package/dist-library/reactive-md-react-component-diagram.js +2 -2
- package/dist-library/reactive-md-react-component-disclosure.js +3 -3
- package/dist-library/reactive-md-react-component-edge.js +1 -1
- package/dist-library/reactive-md-react-component-else.js +10 -0
- package/dist-library/reactive-md-react-component-gallery-item.js +2 -2
- package/dist-library/reactive-md-react-component-gallery.js +2 -2
- package/dist-library/reactive-md-react-component-grid.js +3 -3
- package/dist-library/reactive-md-react-component-if.js +3 -3
- package/dist-library/reactive-md-react-component-input.js +2 -2
- package/dist-library/reactive-md-react-component-jump.js +3 -3
- package/dist-library/reactive-md-react-component-multi-select.js +2 -2
- package/dist-library/reactive-md-react-component-node.js +2 -2
- package/dist-library/reactive-md-react-component-number.js +2 -2
- package/dist-library/reactive-md-react-component-option.js +1 -1
- package/dist-library/reactive-md-react-component-panel.js +3 -3
- package/dist-library/reactive-md-react-component-plot.js +2 -2
- package/dist-library/reactive-md-react-component-progress.js +2 -2
- package/dist-library/reactive-md-react-component-quiz.js +2 -2
- package/dist-library/reactive-md-react-component-radio-group.js +2 -2
- package/dist-library/reactive-md-react-component-range-slider.js +2 -2
- package/dist-library/reactive-md-react-component-section.js +3 -3
- package/dist-library/reactive-md-react-component-select.js +2 -2
- package/dist-library/reactive-md-react-component-slider.js +2 -2
- package/dist-library/reactive-md-react-component-step.js +3 -3
- package/dist-library/reactive-md-react-component-steps.js +3 -3
- package/dist-library/reactive-md-react-component-tab.js +3 -3
- package/dist-library/reactive-md-react-component-table.js +2 -2
- package/dist-library/reactive-md-react-component-tabs.js +3 -3
- package/dist-library/reactive-md-react-component-text.js +3 -3
- package/dist-library/reactive-md-react-component-textarea.js +2 -2
- package/dist-library/reactive-md-react-component-timeline.js +2 -2
- package/dist-library/reactive-md-react-component-timer.js +2 -2
- package/dist-library/reactive-md-react-component-toggle.js +2 -2
- package/dist-library/reactive-md-react-component-tooltip.js +3 -3
- package/dist-library/reactive-md-react-component-validation.js +3 -3
- package/dist-library/reactive-md-react-minimal.js +4 -4
- package/dist-library/reactive-md-react-pack-controls.js +4 -4
- package/dist-library/reactive-md-react-pack-data.js +3 -3
- package/dist-library/reactive-md-react-pack-layout.js +25 -24
- package/dist-library/reactive-md-react-pack-visuals.js +2 -2
- package/dist-library/reactive-md-react-packed.js +6 -6
- package/dist-library/reactive-md-react-server.js +37 -36
- package/dist-library/reactive-md-react-static-server.js +2 -2
- package/dist-library/reactive-md-react-static.js +1 -1
- package/dist-library/reactive-md-react-unstyled.js +12 -12
- package/dist-library/reactive-md-react.js +12 -12
- package/dist-library/reactive-md-scan.js +1 -1
- package/dist-library/reactive-md-sdk.js +23 -9
- package/dist-library/reactive-md-standalone-configured.js +2 -2
- package/dist-library/reactive-md-standalone-host.js +2 -2
- package/dist-library/reactive-md-testing-browser.js +2 -2
- package/dist-library/reactive-md-testing-react.js +6 -6
- package/dist-library/reactive-md-testing.js +6 -6
- package/dist-library/reactive-md-vite.js +25 -9
- package/dist-library/reactive-md-worker-pool.js +3 -3
- package/dist-library/reactive-md.css +1 -1
- package/dist-library/reactive-md.js +52 -43
- package/dist-library/{registry-core-CziAIP5P.js → registry-core-DxEaxhJ6.js} +3 -2
- package/dist-library/{render-nodes-DKjg_TR1.js → render-nodes-B6j6Ip5I.js} +766 -731
- package/dist-library/{requirements-DhIkxAbl.js → requirements-C56sFIEs.js} +2 -2
- package/dist-library/{resources-B_nbROgj.js → resources-6VaNgk-h.js} +2 -2
- package/dist-library/rmd-pack-layout.css +9 -0
- package/dist-library/rmd-pack-resource-layout.css +9 -0
- package/dist-library/runtime-BHeuLOv_.js +1369 -0
- package/dist-library/{runtime-requirement-C4-vNcf5.js → runtime-requirement-DzPO8raU.js} +166 -163
- package/dist-library/{schema-core-4sd1Vu7V.js → schema-core-CDXfxdID.js} +24 -1
- package/dist-library/{sdk-core-BLsW9cCy.js → sdk-core-CnE-n0Z7.js} +469 -314
- package/dist-library/{session-core-DLBRPV7f.js → session-core-C071yQwV.js} +140 -127
- package/dist-library/{validation-XXlb-spV.js → sha256-utf16-Bmandi_H.js} +392 -315
- package/dist-library/shareable-CHCDnl6j.js +844 -0
- package/dist-library/types/authoring/catalog.d.ts +3 -1
- package/dist-library/types/authoring/index.d.ts +1 -1
- package/dist-library/types/components/chart/default-chart-types.d.ts +3 -0
- package/dist-library/types/components/chart/default-chart.d.ts +7 -0
- package/dist-library/types/components/entries/else.d.ts +3 -0
- package/dist-library/types/components/layout/layout.d.ts +5 -0
- package/dist-library/types/components/shared/visuals.d.ts +1 -1
- package/dist-library/types/components/table/data-table-model.d.ts +95 -2
- package/dist-library/types/components/table/data-table.d.ts +2 -2
- package/dist-library/types/contracts/component-kernel.d.ts +5 -0
- package/dist-library/types/contracts/font-aliases.d.ts +18 -0
- package/dist-library/types/contracts/number-literal.d.ts +2 -0
- package/dist-library/types/contracts/sha256-utf16.d.ts +2 -0
- package/dist-library/types/export/index.d.ts +4 -1
- package/dist-library/types/local/compilation/compiler-choices.d.ts +4 -0
- package/dist-library/types/local/compilation/compiler-declarations.d.ts +2 -1
- package/dist-library/types/local/compilation/compiler-expressions.d.ts +12 -1
- package/dist-library/types/local/compilation/compiler-macros.d.ts +18 -0
- package/dist-library/types/local/compilation/compiler-structure.d.ts +8 -2
- package/dist-library/types/local/compilation/compiler-tables.d.ts +1 -0
- package/dist-library/types/local/compilation/compiler-validation.d.ts +11 -0
- package/dist-library/types/local/compilation/compiler-values.d.ts +1 -2
- package/dist-library/types/local/configuration/diagnostic-messages.d.ts +173 -2
- package/dist-library/types/local/configuration/diagnostic-runtime-messages.d.ts +40 -0
- package/dist-library/types/local/evaluation/choice-values.d.ts +22 -0
- package/dist-library/types/local/evaluation/computations.d.ts +13 -5
- package/dist-library/types/local/evaluation/dataset.d.ts +4 -0
- package/dist-library/types/local/evaluation/expression/collection-functions.d.ts +13 -0
- package/dist-library/types/local/evaluation/expression/compile.d.ts +11 -4
- package/dist-library/types/local/evaluation/expression/data-functions.d.ts +23 -0
- package/dist-library/types/local/evaluation/expression/evaluation.d.ts +3 -1
- package/dist-library/types/local/evaluation/expression/internal-names.d.ts +8 -0
- package/dist-library/types/local/evaluation/expression/syntax.d.ts +19 -2
- package/dist-library/types/local/evaluation/expression/transform-budget.d.ts +13 -0
- package/dist-library/types/local/evaluation/expression/values.d.ts +9 -1
- package/dist-library/types/local/evaluation/validation.d.ts +8 -6
- package/dist-library/types/local/index.d.ts +4 -3
- package/dist-library/types/local/parsing/conditional-branches.d.ts +4 -0
- package/dist-library/types/local/parsing/source-revision.d.ts +3 -0
- package/dist-library/types/local/runtime/runtime-choices.d.ts +11 -0
- package/dist-library/types/local/runtime/runtime.d.ts +3 -1
- package/dist-library/types/local/runtime/state.d.ts +30 -15
- package/dist-library/types/local/source/authoring-requirements.d.ts +3 -0
- package/dist-library/types/local/source/authoring-syntax.d.ts +3 -2
- package/dist-library/types/local/source/authoring.d.ts +10 -0
- package/dist-library/types/local/source/source-migration.d.ts +1 -0
- package/dist-library/types/local/types.d.ts +33 -2
- package/dist-library/types/react/component-api.d.ts +21 -2
- package/dist-library/types/react/component-utils.d.ts +11 -0
- package/dist-library/types/react/font-aliases.d.ts +2 -0
- package/dist-library/types/react/package-core.d.ts +3 -0
- package/dist-library/types/react/rendering/document/validation-state.d.ts +1 -1
- package/dist-library/types/react/rendering/document/view-revision.d.ts +3 -12
- package/dist-library/types/react/rendering/table/data-table.d.ts +1 -1
- package/dist-library/types/react/sdk-core.d.ts +3 -1
- package/dist-library/types/sdk/assembly.d.ts +3 -0
- package/dist-library/types/sdk/font.d.ts +13 -0
- package/dist-library/types/sdk/index.d.ts +1 -0
- package/dist-library/types/sdk/theme.d.ts +5 -0
- package/dist-library/types/sdk/types.d.ts +6 -0
- package/dist-library/types/sdk/version.d.ts +1 -1
- package/dist-library/types/shareable.d.ts +15 -3
- package/dist-library/types/standalone/prepare.d.ts +4 -2
- package/dist-library/types/standalone/session-core.d.ts +4 -1
- package/dist-library/types/vite/index.d.ts +3 -0
- package/dist-library/types/vite/registration.d.ts +1 -0
- package/dist-library/{types-Bza88SGK.js → types-B4qG8J4S.js} +1 -1
- package/dist-library/types-FYhRWRn9.js +3 -0
- package/dist-library/use-hydrated-D1gFY2Dq.js +2655 -0
- package/dist-library/validation-DRuW0Wl9.js +433 -0
- package/dist-library/{version-B0G1699c.js → version-4wzhbvDG.js} +1 -1
- package/dist-library/{visual-helpers-CRmaqCHX.js → visual-helpers-UU6xiL8g.js} +3 -3
- package/dist-library/visuals-7xzoL9ql.js +49340 -0
- package/dist-library/{worker-D6WMV8xJ.js → worker-3ldRjOEG.js} +9 -9
- package/dist-standalone/reactive-md-standalone.css +1 -1
- package/dist-standalone/reactive-md-standalone.js +128 -368
- package/docs/README-ch.md +3 -1
- package/docs/README.md +3 -1
- package/docs/compatibility/api-stability-ch.md +1 -1
- package/docs/compatibility/api-stability-en.md +1 -1
- package/docs/compatibility/compatibility-ch.md +15 -15
- package/docs/compatibility/compatibility-en.md +15 -15
- package/docs/compatibility/compatibility-manifest.schema.json +3 -2
- package/docs/compatibility/deprecation-ch.md +2 -2
- package/docs/compatibility/deprecation-en.md +2 -2
- package/docs/compatibility/source-versioning-ch.md +22 -14
- package/docs/compatibility/source-versioning-en.md +22 -13
- package/docs/compatibility/support-matrix-ch.md +4 -3
- package/docs/compatibility/support-matrix-en.md +4 -3
- package/docs/development/component-development-ch.md +2 -2
- package/docs/development/component-development-en.md +2 -2
- package/docs/development/component-protocol-ch.md +18 -18
- package/docs/development/component-protocol-en.md +14 -14
- package/docs/guides/local-guide-ch.md +109 -20
- package/docs/guides/local-guide-en.md +109 -20
- package/docs/integration/author-tools-ch.md +1 -1
- package/docs/integration/author-tools-en.md +1 -1
- package/docs/integration/editor-ch.md +3 -3
- package/docs/integration/editor-en.md +3 -3
- package/docs/integration/extension-sdk-ch.md +29 -3
- package/docs/integration/extension-sdk-en.md +29 -3
- package/docs/integration/local-integration-ch.md +3 -3
- package/docs/integration/local-integration-en.md +3 -3
- package/docs/integration/pdf-export-ch.md +42 -0
- package/docs/integration/pdf-export-en.md +42 -0
- package/docs/integration/shareable-export-ch.md +11 -19
- package/docs/integration/shareable-export-en.md +11 -19
- package/docs/reference/diagnostics-counting-ch.md +24 -1
- package/docs/reference/diagnostics-counting-en.md +24 -1
- package/docs/reference/local-interaction-syntax-ch.md +222 -33
- package/docs/reference/local-interaction-syntax-en.md +220 -31
- package/docs/reference/public-api-ch.md +24 -18
- package/docs/reference/public-api-en.md +24 -18
- package/docs/reference/theme-protocol-ch.md +1 -1
- package/docs/reference/theme-protocol-en.md +1 -1
- package/docs/releases/release-0.10.0-ch.md +45 -0
- package/docs/releases/release-0.10.0-en.md +45 -0
- package/examples/conformance/README-ch.md +3 -3
- package/examples/conformance/README.md +3 -3
- package/examples/conformance/local-draft-4.json +441 -0
- package/examples/integration/README-ch.md +3 -3
- package/examples/integration/README.md +3 -3
- package/examples/integration/chat-session/package.json +1 -1
- package/examples/local/README-ch.md +1 -1
- package/examples/local/README.md +1 -1
- package/package.json +6 -1
- package/dist-library/LocalStaticDocumentView-2J7w0sKm.js +0 -143
- package/dist-library/authoring-B14SsOXZ.js +0 -893
- package/dist-library/compile-D50B5_Ww.js +0 -1249
- package/dist-library/computations-CffoW7Ff.js +0 -340
- package/dist-library/data-table-Kv_ZA2Z2.js +0 -297
- package/dist-library/default-options-DU5dxuU6.js +0 -125
- package/dist-library/layout-BfUzzO2b.js +0 -553
- package/dist-library/runtime-CuJndKqK.js +0 -1289
- package/dist-library/shareable-C6mUerpQ.js +0 -817
- package/dist-library/types-daDo2c_w.js +0 -3
- package/dist-library/use-hydrated-W-laKPhY.js +0 -22975
- package/dist-library/visuals-CoVSjVD8.js +0 -49159
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { a as e, i as t, r as n, s as r } from "./latex-1w7aQgD5.js";
|
|
2
2
|
import "./limits-CFERRrlC.js";
|
|
3
|
-
import { _ as i, a, c as o, d as s, i as c, l, m as u, n as d, o as f, p, r as m, s as ee, t as te, u as h } from "./document-theme-
|
|
4
|
-
import {
|
|
5
|
-
import { t as _ } from "./types-
|
|
6
|
-
import { t as v } from "./compiler-
|
|
7
|
-
import { t as re } from "./default-options-
|
|
8
|
-
import { n as ie, r as
|
|
9
|
-
import { i as
|
|
10
|
-
import { t as
|
|
11
|
-
import { n as
|
|
12
|
-
import { t as
|
|
13
|
-
import { a as
|
|
14
|
-
import { i as
|
|
15
|
-
import { a as
|
|
16
|
-
import { i as
|
|
17
|
-
import { _ as
|
|
18
|
-
import { n as
|
|
19
|
-
import { t as
|
|
3
|
+
import { _ as i, a, c as o, d as s, i as c, l, m as u, n as d, o as f, p, r as m, s as ee, t as te, u as h } from "./document-theme-CJvN-nC1.js";
|
|
4
|
+
import { _ as g, t as ne } from "./compile-B35rfzKr.js";
|
|
5
|
+
import { t as _ } from "./types-FYhRWRn9.js";
|
|
6
|
+
import { t as v } from "./compiler-DBwLawMZ.js";
|
|
7
|
+
import { t as re } from "./default-options-By16CVw1.js";
|
|
8
|
+
import { n as ie, r as ae, t as oe } from "./observability-core-Bcu7vpnl.js";
|
|
9
|
+
import { i as y, n as b, r as x, t as S } from "./authoring-Bwu_zCWs.js";
|
|
10
|
+
import { t as C } from "./parser-BHl9Lxbw.js";
|
|
11
|
+
import { n as w, t as T } from "./incremental-B-wW4H3F.js";
|
|
12
|
+
import { t as E } from "./compile-cache-key-D21X2Obx.js";
|
|
13
|
+
import { a as D, n as O, o as k, r as A, s as j } from "./runtime-BHeuLOv_.js";
|
|
14
|
+
import { i as M } from "./identity-BUx0Q_-d.js";
|
|
15
|
+
import { a as N, b as P, c as F, g as I, h as L, i as R, m as z, n as B, o as V, t as H, v as U, y as W } from "./worker-3ldRjOEG.js";
|
|
16
|
+
import { i as G, n as K, r as q, t as se } from "./sample-bP4zHB3L.js";
|
|
17
|
+
import { C as ce, S as le, _ as ue, a as de, b as fe, g as pe, h as me, i as he, m as ge, n as _e, o as ve, p as ye, r as be, t as xe, v as Se, w as Ce, x as we, y as Te } from "./shareable-CHCDnl6j.js";
|
|
18
|
+
import { n as Ee, t as De } from "./observability-BVQ16ByQ.js";
|
|
19
|
+
import { t as Oe } from "./component-state-Da0G8Ajc.js";
|
|
20
20
|
// src/local/runtime/runtime-pool.ts
|
|
21
|
-
function
|
|
21
|
+
function ke(e, t) {
|
|
22
22
|
return [.../* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(t)])].every((n) => Object.is(e[n], t[n]));
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function Ae({ idleDisposeMs: e = 0, maxIdle: t = 8 } = {}) {
|
|
25
25
|
if (!Number.isInteger(t) || t < 0 || !Number.isFinite(e) || e < 0 || e > 2147483647) throw RangeError("Invalid runtime pool capacity or idle delay.");
|
|
26
26
|
let n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), i = !1;
|
|
27
27
|
function a(e) {
|
|
@@ -30,9 +30,9 @@ function we({ idleDisposeMs: e = 0, maxIdle: t = 8 } = {}) {
|
|
|
30
30
|
return {
|
|
31
31
|
acquire(o, s = {}) {
|
|
32
32
|
if (i) throw Error("The local runtime pool is disposed.");
|
|
33
|
-
let c = [...n].find((e) => e.runtime.document.source === o.source &&
|
|
33
|
+
let c = [...n].find((e) => e.runtime.document.source === o.source && ke(e.options, s) && P(e.runtime.document, o));
|
|
34
34
|
c || (c = {
|
|
35
|
-
runtime:
|
|
35
|
+
runtime: O(o, s),
|
|
36
36
|
options: { ...s },
|
|
37
37
|
leases: 0
|
|
38
38
|
}, n.add(c));
|
|
@@ -56,7 +56,7 @@ function we({ idleDisposeMs: e = 0, maxIdle: t = 8 } = {}) {
|
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
58
|
// src/local/source/source-migration.ts
|
|
59
|
-
var
|
|
59
|
+
var J = /* @__PURE__ */ new Set([
|
|
60
60
|
"sum",
|
|
61
61
|
"average",
|
|
62
62
|
"minOf",
|
|
@@ -74,7 +74,12 @@ var Y = /* @__PURE__ */ new Set([
|
|
|
74
74
|
"slice",
|
|
75
75
|
"dateCompare",
|
|
76
76
|
"dateDiff"
|
|
77
|
-
]),
|
|
77
|
+
]), je = /* @__PURE__ */ new Set([
|
|
78
|
+
...J,
|
|
79
|
+
"filter",
|
|
80
|
+
"map",
|
|
81
|
+
"sortBy"
|
|
82
|
+
]), Y = /* @__PURE__ */ new Set([
|
|
78
83
|
"jump",
|
|
79
84
|
"anchor",
|
|
80
85
|
"text",
|
|
@@ -90,26 +95,30 @@ var Y = /* @__PURE__ */ new Set([
|
|
|
90
95
|
"validation",
|
|
91
96
|
"data-table",
|
|
92
97
|
"column",
|
|
93
|
-
"external"
|
|
94
|
-
|
|
98
|
+
"external",
|
|
99
|
+
"else",
|
|
100
|
+
"dataset"
|
|
101
|
+
]), Me = /* @__PURE__ */ new Set(["external"]), X = /* @__PURE__ */ new Set(["else", "dataset"]), Ne = /* @__PURE__ */ new Set([...Me, ...X]), Pe = /* @__PURE__ */ new Set([
|
|
95
102
|
"local-draft-1",
|
|
96
103
|
"local-draft-2",
|
|
104
|
+
"local-draft-3",
|
|
97
105
|
_
|
|
98
106
|
]), Z = `<!-- reactive-md: ${_} -->`;
|
|
99
107
|
function Q(e) {
|
|
100
108
|
let t = e.diagnostics.filter((t) => t.code.startsWith("local.version.") || t.code === "local.budget" || t.code === "local.parse" && !e.nodes.length), n = e.versionDeclaration?.version ?? null;
|
|
101
109
|
return {
|
|
102
110
|
declaredVersion: n,
|
|
103
|
-
effectiveVersion: n ?? "local-draft-
|
|
111
|
+
effectiveVersion: n ?? "local-draft-4",
|
|
104
112
|
supported: !t.some((e) => e.severity === "error"),
|
|
105
113
|
range: e.versionDeclaration ? { ...e.versionDeclaration.range } : null,
|
|
106
|
-
diagnostics: t
|
|
114
|
+
diagnostics: t,
|
|
115
|
+
...e.versionDeclaration?.features ? { features: e.versionDeclaration.features } : {}
|
|
107
116
|
};
|
|
108
117
|
}
|
|
109
|
-
function
|
|
110
|
-
return Q(
|
|
118
|
+
function Fe(e) {
|
|
119
|
+
return Q(C(e));
|
|
111
120
|
}
|
|
112
|
-
function
|
|
121
|
+
function Ie(e, t, n, r, i = "error") {
|
|
113
122
|
let a = l(t, r), o = e.slice(0, n.start), s = o.lastIndexOf("\n");
|
|
114
123
|
return {
|
|
115
124
|
code: t,
|
|
@@ -123,11 +132,11 @@ function Oe(e, t, n, r, i = "error") {
|
|
|
123
132
|
};
|
|
124
133
|
}
|
|
125
134
|
function $(e, t = {}) {
|
|
126
|
-
let n =
|
|
135
|
+
let n = C(e), r = Q(n), i = typeof t == "object" && !!t && !Array.isArray(t), a = i ? t.fromVersion ?? r.effectiveVersion : r.effectiveVersion, o = typeof a == "string" ? a : "", s = {
|
|
127
136
|
ok: !1,
|
|
128
137
|
fromVersion: o,
|
|
129
138
|
toVersion: _,
|
|
130
|
-
needsMigration: !n.versionDeclaration || o !== "local-draft-
|
|
139
|
+
needsMigration: !n.versionDeclaration || o !== "local-draft-4",
|
|
131
140
|
diagnostics: r.diagnostics.filter((e) => e.code !== "local.version.unsupported")
|
|
132
141
|
}, c = {
|
|
133
142
|
report: s,
|
|
@@ -147,15 +156,15 @@ function $(e, t = {}) {
|
|
|
147
156
|
}
|
|
148
157
|
s.diagnostics.push(e);
|
|
149
158
|
}, d = (t, n, r, i) => {
|
|
150
|
-
u(
|
|
159
|
+
u(Ie(e, t, n, r, i));
|
|
151
160
|
};
|
|
152
|
-
if (!i || typeof a != "string" || !
|
|
161
|
+
if (!i || typeof a != "string" || !Pe.has(o) || t.allowSemanticChanges !== void 0 && typeof t.allowSemanticChanges != "boolean" || t.fromVersion !== void 0 && r.declaredVersion !== null && o !== r.declaredVersion) return d("local.upgrade.from-version", l, {
|
|
153
162
|
from: o,
|
|
154
|
-
detail: "use local-draft-1, local-draft-2 or local-draft-
|
|
163
|
+
detail: "use local-draft-1, local-draft-2, local-draft-3 or local-draft-4 and match the source declaration"
|
|
155
164
|
}), c;
|
|
156
|
-
let f = n.versionDeclaration ? e.slice(0, l.start) + e.slice(l.start, l.end).replace(/[^\r\n]/g, " ") + e.slice(l.end) : e, p =
|
|
157
|
-
if (o
|
|
158
|
-
let e = o === "local-draft-1" ?
|
|
165
|
+
let f = n.versionDeclaration && !n.versionDeclaration.features ? e.slice(0, l.start) + e.slice(l.start, l.end).replace(/[^\r\n]/g, " ") + e.slice(l.end) : e, p = f === e ? n : C(f);
|
|
166
|
+
if (o !== "local-draft-4") {
|
|
167
|
+
let e = o === "local-draft-1" ? Y : o === "local-draft-2" ? Ne : X, n = (r) => {
|
|
159
168
|
for (let i of r) if (i.name && e.has(i.name)) d("local.upgrade.tag", i.range, { name: i.name });
|
|
160
169
|
else {
|
|
161
170
|
if (o === "local-draft-1") {
|
|
@@ -167,13 +176,13 @@ function $(e, t = {}) {
|
|
|
167
176
|
"bind-y"
|
|
168
177
|
]) {
|
|
169
178
|
let t = i.attrs?.[e];
|
|
170
|
-
t &&
|
|
179
|
+
t && J.has(t) && d("local.upgrade.reserved-binding", i.range, { name: t });
|
|
171
180
|
}
|
|
172
181
|
(i.name === "input" || i.name === "textarea") && (i.attrs?.["max-length"] !== void 0 || Number(i.attrs?.["min-length"] ?? 0) > 0) && d("local.upgrade.text-length", i.range, void 0, t.allowSemanticChanges ? "warning" : "error");
|
|
173
182
|
let e = [...i.type === "interpolation" ? [i.value ?? ""] : [], ...Object.values(i.attrs ?? {}).flatMap((e) => [...e.matchAll(/\{\{([\s\S]*?)\}\}/g)].map((e) => e[1]))];
|
|
174
183
|
for (let t of e) {
|
|
175
184
|
let e = t.replace(/'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"/g, "");
|
|
176
|
-
(e.includes("[") || [...
|
|
185
|
+
(e.includes("[") || [...je].some((t) => RegExp(`\\b${t}\\s*\\(`).test(e))) && d("local.upgrade.expression", i.range);
|
|
177
186
|
}
|
|
178
187
|
}
|
|
179
188
|
i.type !== "fallback" && i.children && n(i.children);
|
|
@@ -189,10 +198,10 @@ function $(e, t = {}) {
|
|
|
189
198
|
end: +(e.charCodeAt(0) === 65279)
|
|
190
199
|
}, { version: _ }, "warning"), s.ok = !0), c;
|
|
191
200
|
}
|
|
192
|
-
function
|
|
201
|
+
function Le(e, t) {
|
|
193
202
|
return $(e, t).report;
|
|
194
203
|
}
|
|
195
|
-
function
|
|
204
|
+
function Re(e, t) {
|
|
196
205
|
let { report: n, declaration: r } = $(e, t), i = {
|
|
197
206
|
...n,
|
|
198
207
|
source: e,
|
|
@@ -214,4 +223,4 @@ function Ae(e, t) {
|
|
|
214
223
|
}]
|
|
215
224
|
};
|
|
216
225
|
}
|
|
217
|
-
export { te as DEFAULT_LOCAL_THEME,
|
|
226
|
+
export { te as DEFAULT_LOCAL_THEME, N as LOCAL_COMPILE_DELAY_MS, V as LOCAL_COMPILE_PREPARATION_DELAY_MS, a as LOCAL_DIAGNOSTIC_CODES, ye as LOCAL_MACRO_STATE_FORMAT, p as LOCAL_OBSERVABILITY_MESSAGES, z as LOCAL_RESULT_PATCH_PROTOCOL, ge as LOCAL_STATE_FORMAT, _ as LOCAL_SYNTAX_VERSION, d as LOCAL_THEME_PROTOCOL, H as LocalCompileScheduler, T as LocalCompileSession, g as LocalExpressionError, xe as SHAREABLE_HTML_FORMAT, _e as SHAREABLE_HTML_FORMAT_V2, S as analyzeLocalSource, L as applyLocalResultPatch, me as applyLocalState, k as applyLocalStateRetention, I as applySourceEdit, pe as captureLocalMacroState, Le as checkLocalUpgrade, ne as compileExpression, B as compileFailureDiagnostic, n as compileLatex, v as compileLocal, t as compilePlotFormula, b as completeLocalSource, i as countLocalCodePoints, De as createDiagnosticReport, w as createLocalCompileSession, ue as createLocalMacroStateFile, Ee as createLocalObservabilityDiagnostic, O as createLocalRuntime, Ae as createLocalRuntimePool, Se as createLocalStateFile, oe as createLocalTraceId, be as createShareableHtml, U as diffSourceEdit, ie as emitLocalDiagnostic, ae as emitLocalTrace, W as encodeLocalResultPatch, he as escapeInlineScript, Te as exportLocalState, ee as formatLocalDiagnostic, x as formatLocalSource, u as formatObservabilityMessage, e as implicitGridSize, fe as importLocalState, Fe as inspectLocalSourceVersion, o as isLocalDiagnosticCode, m as isLocalThemeName, E as localCompileCacheKey, re as localCompileOptionsKey, h as localDiagnosticTemplate, s as localDiagnosticTemplateKeys, M as localSourceDigest, F as localWorkerOptionsKey, Re as migrateLocalSource, A as notifyLocalRuntime, we as parseLocalMacroState, le as parseLocalState, j as planLocalStateRetention, r as plotFormulaKind, y as renameLocalBinding, Oe as resolveLocalComponentStateExport, ce as resolveLocalState, de as resolveLocalStateBaseline, c as resolveLocalTheme, se as sampleImplicit, K as sampleParametric, q as samplePlot, G as samplePolar, ve as serializeForScript, Ce as serializeLocalState, R as startLocalCompileWorker, D as updateLocalRuntime };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as e } from "./preset-core-
|
|
2
|
-
import { b as t } from "./component-kernel-
|
|
1
|
+
import { j as e } from "./preset-core-BKPbH_Nv.js";
|
|
2
|
+
import { b as t } from "./component-kernel-CsJSabHX.js";
|
|
3
3
|
// src/sdk/registry-core.ts
|
|
4
4
|
var n = /* @__PURE__ */ new WeakMap();
|
|
5
5
|
function r(e) {
|
|
@@ -16,6 +16,7 @@ function r(e) {
|
|
|
16
16
|
...e.max === void 0 ? {} : { max: e.max },
|
|
17
17
|
...e.integer === !0 ? { integer: !0 } : {},
|
|
18
18
|
...e.positive === !0 ? { positive: !0 } : {},
|
|
19
|
+
...e.allowPositiveNumber === !0 ? { allowPositiveNumber: !0 } : {},
|
|
19
20
|
...e.color === !0 ? { color: !0 } : {},
|
|
20
21
|
...e.coerce === void 0 ? {} : { coerce: e.coerce }
|
|
21
22
|
};
|