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
|
@@ -0,0 +1,433 @@
|
|
|
1
|
+
import { b as e, f as t, o as n } from "./limits-CFERRrlC.js";
|
|
2
|
+
import { v as r } from "./document-theme-CJvN-nC1.js";
|
|
3
|
+
import { _ as i, a, b as o, c as s, n as c, t as l } from "./compile-B35rfzKr.js";
|
|
4
|
+
import { d as u, p as d } from "./choice-values-BItGjPD2.js";
|
|
5
|
+
import { o as f } from "./schema-core-CDXfxdID.js";
|
|
6
|
+
import { d as p } from "./component-kernel-CsJSabHX.js";
|
|
7
|
+
// node_modules/devlop/lib/default.js
|
|
8
|
+
function m() {}
|
|
9
|
+
// src/local/html/html-table-names.ts
|
|
10
|
+
var h = /* @__PURE__ */ new Set([
|
|
11
|
+
"table",
|
|
12
|
+
"caption",
|
|
13
|
+
"colgroup",
|
|
14
|
+
"col",
|
|
15
|
+
"thead",
|
|
16
|
+
"tbody",
|
|
17
|
+
"tfoot",
|
|
18
|
+
"tr",
|
|
19
|
+
"th",
|
|
20
|
+
"td"
|
|
21
|
+
]), g = {
|
|
22
|
+
colgroup: /* @__PURE__ */ new Set(["span"]),
|
|
23
|
+
col: /* @__PURE__ */ new Set(["span"]),
|
|
24
|
+
td: /* @__PURE__ */ new Set([
|
|
25
|
+
"colspan",
|
|
26
|
+
"rowspan",
|
|
27
|
+
"headers",
|
|
28
|
+
"align"
|
|
29
|
+
]),
|
|
30
|
+
th: /* @__PURE__ */ new Set([
|
|
31
|
+
"colspan",
|
|
32
|
+
"rowspan",
|
|
33
|
+
"headers",
|
|
34
|
+
"scope",
|
|
35
|
+
"abbr",
|
|
36
|
+
"align"
|
|
37
|
+
])
|
|
38
|
+
};
|
|
39
|
+
function _(e, t) {
|
|
40
|
+
let n = t.trim();
|
|
41
|
+
return [
|
|
42
|
+
"colspan",
|
|
43
|
+
"rowspan",
|
|
44
|
+
"span"
|
|
45
|
+
].includes(e) ? /^\d{1,5}$/.test(n) && Number(n) <= (e === "rowspan" ? 65534 : 1e3) && Number(n) >= (e === "rowspan" ? 0 : 1) : e === "align" ? f(t) !== null : e !== "scope" || [
|
|
46
|
+
"row",
|
|
47
|
+
"col",
|
|
48
|
+
"rowgroup",
|
|
49
|
+
"colgroup"
|
|
50
|
+
].includes(n.toLowerCase());
|
|
51
|
+
}
|
|
52
|
+
// src/local/configuration/capability-policy.ts
|
|
53
|
+
var v = Object.freeze({
|
|
54
|
+
enableCss: !0,
|
|
55
|
+
enableJavaScript: !1,
|
|
56
|
+
enableExtendedHtml: !1
|
|
57
|
+
});
|
|
58
|
+
function y(e, t) {
|
|
59
|
+
return {
|
|
60
|
+
enableCss: e?.enableCss === !0 && (t?.enableCss ?? v.enableCss) === !0,
|
|
61
|
+
enableJavaScript: e?.enableJavaScript === !0 && t?.enableJavaScript === !0,
|
|
62
|
+
enableExtendedHtml: e?.enableExtendedHtml === !0 && t?.enableExtendedHtml === !0
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
// src/local/configuration/kernel-value-rules.ts
|
|
66
|
+
function b(e) {
|
|
67
|
+
let t = {};
|
|
68
|
+
for (let [n, r] of Object.entries(e)) r !== void 0 && (t[n] = r);
|
|
69
|
+
return t;
|
|
70
|
+
}
|
|
71
|
+
function x(e) {
|
|
72
|
+
let t = [];
|
|
73
|
+
for (let n of p(e)) switch (n.kind) {
|
|
74
|
+
case "value-date":
|
|
75
|
+
t.push(b({
|
|
76
|
+
kind: "date",
|
|
77
|
+
min: n.min,
|
|
78
|
+
max: n.max,
|
|
79
|
+
required: n.required
|
|
80
|
+
}));
|
|
81
|
+
break;
|
|
82
|
+
case "value-length":
|
|
83
|
+
t.push(b({
|
|
84
|
+
kind: "length",
|
|
85
|
+
min: n.min,
|
|
86
|
+
max: n.max
|
|
87
|
+
})), (n.email !== void 0 || n.emailType !== void 0) && t.push(b({
|
|
88
|
+
kind: "email",
|
|
89
|
+
type: n.email ?? "type",
|
|
90
|
+
value: n.emailType ?? "email"
|
|
91
|
+
}));
|
|
92
|
+
break;
|
|
93
|
+
case "value-email":
|
|
94
|
+
t.push(b({
|
|
95
|
+
kind: "email",
|
|
96
|
+
type: n.type ?? "type",
|
|
97
|
+
value: n.value ?? "email"
|
|
98
|
+
}));
|
|
99
|
+
break;
|
|
100
|
+
case "value-required": t.push({
|
|
101
|
+
kind: "required",
|
|
102
|
+
required: n.required
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
return t;
|
|
106
|
+
}
|
|
107
|
+
function S(e) {
|
|
108
|
+
if (!e || typeof e != "object") return;
|
|
109
|
+
let t = e.kernel;
|
|
110
|
+
if (t && typeof t == "object") return t;
|
|
111
|
+
}
|
|
112
|
+
var C = /^[A-Za-z_][A-Za-z0-9_-]*$/;
|
|
113
|
+
function w(e) {
|
|
114
|
+
return C.test(e);
|
|
115
|
+
}
|
|
116
|
+
function T(e, t, n) {
|
|
117
|
+
let r = [];
|
|
118
|
+
for (let i of e) {
|
|
119
|
+
let e = i.target;
|
|
120
|
+
e ? e.startsWith("#") || /\s/.test(e) ? r.push({
|
|
121
|
+
code: "local.jump.target",
|
|
122
|
+
message: `<${i.name}> target "${e}" must be a bare heading slug or anchor id without "#" or whitespace.`,
|
|
123
|
+
start: i.offset,
|
|
124
|
+
key: "local.jump.bad-target",
|
|
125
|
+
params: { target: e }
|
|
126
|
+
}) : !t.has(e) && !n.has(e) && r.push({
|
|
127
|
+
code: "local.jump.target",
|
|
128
|
+
message: `<${i.name}> target "${e}" does not resolve to a heading or explicit anchor in this document.`,
|
|
129
|
+
start: i.offset,
|
|
130
|
+
key: "local.jump.unresolved",
|
|
131
|
+
params: { target: e }
|
|
132
|
+
}) : r.push({
|
|
133
|
+
code: "local.jump.target",
|
|
134
|
+
message: "<jump> target cannot be empty.",
|
|
135
|
+
start: i.offset,
|
|
136
|
+
key: "local.jump.empty"
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
return r;
|
|
140
|
+
}
|
|
141
|
+
Object.freeze({
|
|
142
|
+
arrayLength: n,
|
|
143
|
+
dataTableColumns: 20,
|
|
144
|
+
plotCurves: 16,
|
|
145
|
+
plotPoints: e
|
|
146
|
+
});
|
|
147
|
+
// src/local/evaluation/computations.ts
|
|
148
|
+
function E(e, t, n) {
|
|
149
|
+
let r = t ? c(t, n) : void 0;
|
|
150
|
+
return e.expressionOffset + (r ?? Math.max(0, e.source.indexOf(n)));
|
|
151
|
+
}
|
|
152
|
+
function D(e) {
|
|
153
|
+
return e.code.startsWith("local.transform.") || e.code === "local.budget.transform";
|
|
154
|
+
}
|
|
155
|
+
function O(e, t, n, r = "local.expression") {
|
|
156
|
+
if (t instanceof i) {
|
|
157
|
+
let i = n + (Number.isFinite(t.offset) ? t.offset : 0);
|
|
158
|
+
if (D(t)) {
|
|
159
|
+
e(t.code, `Expression error: ${t.message}`, i, void 0, {
|
|
160
|
+
key: "local.expression.error",
|
|
161
|
+
params: {
|
|
162
|
+
detail: t.message,
|
|
163
|
+
code: t.code
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
e(`${r}.${t.code || "invalid"}`, `Expression error: ${t.message}`, i);
|
|
169
|
+
} else e(`${r}.invalid`, `Expression error: ${t instanceof Error ? t.message : String(t)}`, n);
|
|
170
|
+
}
|
|
171
|
+
function k(e) {
|
|
172
|
+
return e instanceof i ? e : new i("expression-eval", e instanceof Error ? e.message : String(e), 0);
|
|
173
|
+
}
|
|
174
|
+
function A(e, t) {
|
|
175
|
+
let n = new Set(e), r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
|
|
176
|
+
for (let t of e) r.set(t, 0);
|
|
177
|
+
for (let a of e) for (let e of t(a)) {
|
|
178
|
+
if (!n.has(e)) continue;
|
|
179
|
+
r.set(a, (r.get(a) ?? 0) + 1);
|
|
180
|
+
let t = i.get(e);
|
|
181
|
+
t ? t.push(a) : i.set(e, [a]);
|
|
182
|
+
}
|
|
183
|
+
let a = [];
|
|
184
|
+
for (let t of e) (r.get(t) ?? 0) === 0 && a.push(t);
|
|
185
|
+
let o = [];
|
|
186
|
+
for (let e = 0; e < a.length; e += 1) {
|
|
187
|
+
let t = a[e];
|
|
188
|
+
o.push(t);
|
|
189
|
+
for (let e of i.get(t) ?? []) {
|
|
190
|
+
let t = (r.get(e) ?? 0) - 1;
|
|
191
|
+
r.set(e, t), t === 0 && a.push(e);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
let s = new Set(o);
|
|
195
|
+
return {
|
|
196
|
+
order: o,
|
|
197
|
+
cyclic: e.filter((e) => !s.has(e))
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
function j(e) {
|
|
201
|
+
let t = Object.keys(e), n = new Set(t);
|
|
202
|
+
return A(t, (t) => {
|
|
203
|
+
let r = e[t];
|
|
204
|
+
return r ? r.dependencies.filter((e) => n.has(e)) : [];
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
function M(e, t, n, r = /* @__PURE__ */ new Set(), i) {
|
|
208
|
+
let s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map(), f = [], p = /* @__PURE__ */ new Set();
|
|
209
|
+
for (let t of e) d.has(t.name) || (d.set(t.name, t), f.push(t.name));
|
|
210
|
+
let m = new Set(f);
|
|
211
|
+
for (let e of f) {
|
|
212
|
+
let t = d.get(e);
|
|
213
|
+
if (t.value !== void 0) {
|
|
214
|
+
c.set(e, []);
|
|
215
|
+
continue;
|
|
216
|
+
}
|
|
217
|
+
let r;
|
|
218
|
+
try {
|
|
219
|
+
r = i?.expression(t.source) ?? l(t.source);
|
|
220
|
+
} catch (r) {
|
|
221
|
+
O(n, r, t.expressionOffset), p.add(e);
|
|
222
|
+
continue;
|
|
223
|
+
}
|
|
224
|
+
s.set(e, r), c.set(e, [...r.dependencies]);
|
|
225
|
+
}
|
|
226
|
+
for (let e of f) if (!p.has(e)) for (let r of c.get(e) ?? []) {
|
|
227
|
+
if (m.has(r) || Object.hasOwn(t, r)) continue;
|
|
228
|
+
let i = u(r), a = d.get(e), o = s.get(e), c = i !== void 0 && o ? a.datasetRange?.(o, r) : void 0, l = c?.start ?? E(a, o, r);
|
|
229
|
+
n(i === void 0 ? "local.computation.unknown" : "local.dataset.unknown", i === void 0 ? `Reference to undeclared parameter ${r} in computation "${e}".` : {
|
|
230
|
+
key: "dataset.unknown",
|
|
231
|
+
params: { name: i }
|
|
232
|
+
}, l, i === void 0 ? void 0 : c?.end ?? l + i.length), p.add(e);
|
|
233
|
+
break;
|
|
234
|
+
}
|
|
235
|
+
let h = /* @__PURE__ */ new Set();
|
|
236
|
+
for (let e of f) {
|
|
237
|
+
if (p.has(e)) continue;
|
|
238
|
+
let i = d.get(e);
|
|
239
|
+
if (i.kind === "const") for (let a of c.get(e) ?? []) {
|
|
240
|
+
let o = m.has(a) ? d.get(a).kind : null;
|
|
241
|
+
Object.hasOwn(t, a) ? (n("local.computation.const", `Constant "${e}" cannot depend on ${r.has(a) ? "external data" : "control parameter"} "${a}".`, E(i, s.get(e), a)), h.add(e)) : o === "computed" && (n("local.computation.const", `Constant "${e}" cannot depend on computed value "${a}".`, E(i, s.get(e), a)), h.add(e));
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
let { order: g, cyclic: _ } = A(f, (e) => c.get(e) ?? []);
|
|
245
|
+
if (_.length > 0) {
|
|
246
|
+
let e = new Set(_), t = [], r = /* @__PURE__ */ new Map(), i = _[0];
|
|
247
|
+
for (; !r.has(i);) {
|
|
248
|
+
r.set(i, t.length), t.push(i);
|
|
249
|
+
let n = (c.get(i) ?? []).find((t) => e.has(t));
|
|
250
|
+
if (n === void 0) break;
|
|
251
|
+
i = n;
|
|
252
|
+
}
|
|
253
|
+
let a = r.has(i) ? t.slice(r.get(i)) : [_[0]], o = a.slice(0, 12).join(" → ") + (a.length > 12 ? " → …" : ` → ${a[0]}`);
|
|
254
|
+
for (let e of a.slice(0, 100)) {
|
|
255
|
+
let t = d.get(e);
|
|
256
|
+
n("local.computation.cycle", `Computation "${e}" is part of a dependency cycle: ${o}.`, t.range.start, t.range.end);
|
|
257
|
+
}
|
|
258
|
+
for (let e of _) p.add(e);
|
|
259
|
+
}
|
|
260
|
+
for (let e of g) if (!p.has(e) && !(d.get(e).kind !== "const" || h.has(e)) && (c.get(e) ?? []).some((e) => m.has(e) ? d.get(e).kind === "const" && h.has(e) : !1)) {
|
|
261
|
+
let t = d.get(e);
|
|
262
|
+
n("local.computation.const", `Constant "${e}" indirectly depends on a value that is not a constant.`, t.expressionOffset), h.add(e);
|
|
263
|
+
}
|
|
264
|
+
let v = {}, y = { ...t };
|
|
265
|
+
for (let e of g) {
|
|
266
|
+
if (p.has(e)) continue;
|
|
267
|
+
let t = d.get(e);
|
|
268
|
+
if ((c.get(e) ?? []).some((e) => p.has(e))) {
|
|
269
|
+
p.add(e);
|
|
270
|
+
continue;
|
|
271
|
+
}
|
|
272
|
+
let r = s.get(e);
|
|
273
|
+
try {
|
|
274
|
+
let n = t.value === void 0 ? i ? i.infer(r, y) : r.inferType(y) : "array";
|
|
275
|
+
v[e] = n, y[e] = n;
|
|
276
|
+
} catch (r) {
|
|
277
|
+
O(n, r, t.expressionOffset), p.add(e);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
let b = a(), x = {}, S = {}, C = /* @__PURE__ */ Error("failed constant read"), w = (e) => {
|
|
281
|
+
p.add(e), Object.defineProperty(S, e, {
|
|
282
|
+
enumerable: !0,
|
|
283
|
+
configurable: !0,
|
|
284
|
+
get() {
|
|
285
|
+
throw C;
|
|
286
|
+
}
|
|
287
|
+
});
|
|
288
|
+
};
|
|
289
|
+
for (let e of g) {
|
|
290
|
+
if (p.has(e) || d.get(e).kind !== "const" || h.has(e)) continue;
|
|
291
|
+
let t = d.get(e), r = s.get(e);
|
|
292
|
+
try {
|
|
293
|
+
let i = t.value ?? r.evaluate(S, b), a = o(i);
|
|
294
|
+
if (a) {
|
|
295
|
+
n("local.computation.budget", `Constant "${e}": ${a}`, t.expressionOffset), w(e);
|
|
296
|
+
continue;
|
|
297
|
+
}
|
|
298
|
+
x[e] = Array.isArray(i) ? i.slice() : i, S[e] = x[e];
|
|
299
|
+
} catch (r) {
|
|
300
|
+
if (r === C) {
|
|
301
|
+
w(e);
|
|
302
|
+
continue;
|
|
303
|
+
}
|
|
304
|
+
let i = k(r);
|
|
305
|
+
n("local.computation.expression", `Constant "${e}" cannot be evaluated: ${i.message}`, t.expressionOffset + (Number.isFinite(i.offset) ? i.offset : 0)), w(e);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
let T = {};
|
|
309
|
+
for (let e of f) {
|
|
310
|
+
let t = d.get(e);
|
|
311
|
+
if (p.has(e) || v[e] === void 0) continue;
|
|
312
|
+
let n = {
|
|
313
|
+
name: e,
|
|
314
|
+
kind: t.kind,
|
|
315
|
+
source: t.source,
|
|
316
|
+
dependencies: [...c.get(e) ?? []],
|
|
317
|
+
type: v[e],
|
|
318
|
+
nodeId: t.nodeId,
|
|
319
|
+
range: { ...t.range }
|
|
320
|
+
};
|
|
321
|
+
t.kind === "const" && Object.hasOwn(x, e) && (n.value = x[e]), T[e] = n;
|
|
322
|
+
}
|
|
323
|
+
return {
|
|
324
|
+
computations: T,
|
|
325
|
+
kinds: v,
|
|
326
|
+
order: g.filter((e) => !p.has(e)),
|
|
327
|
+
expressions: s,
|
|
328
|
+
constValues: x
|
|
329
|
+
};
|
|
330
|
+
}
|
|
331
|
+
function N(e, t, n, r, c, l = /* @__PURE__ */ new Map(), f) {
|
|
332
|
+
let p = {}, m = f ?? a(), h = {};
|
|
333
|
+
for (let [e, t] of Object.entries(r)) h[e] = t;
|
|
334
|
+
for (let [e, t] of l) Object.defineProperty(h, e, {
|
|
335
|
+
enumerable: !0,
|
|
336
|
+
configurable: !0,
|
|
337
|
+
get() {
|
|
338
|
+
throw t;
|
|
339
|
+
}
|
|
340
|
+
});
|
|
341
|
+
for (let [e, t] of Object.entries(c)) u(e) === void 0 && (p[e] = t), h[e] = t;
|
|
342
|
+
for (let r of t) {
|
|
343
|
+
let t = e[r];
|
|
344
|
+
if (!t || t.kind === "const") continue;
|
|
345
|
+
let a = n.get(r);
|
|
346
|
+
if (!a) continue;
|
|
347
|
+
let c = (e = m) => {
|
|
348
|
+
let t = a.evaluate(h, e), n = o(t);
|
|
349
|
+
if (n) throw new i("expression-budget", n, 0);
|
|
350
|
+
return t;
|
|
351
|
+
};
|
|
352
|
+
if (d(r)) {
|
|
353
|
+
let e;
|
|
354
|
+
Object.defineProperty(h, r, { get() {
|
|
355
|
+
if (!e) try {
|
|
356
|
+
e = { value: c(s() ?? m) };
|
|
357
|
+
} catch (t) {
|
|
358
|
+
e = { error: k(t) };
|
|
359
|
+
}
|
|
360
|
+
if ("error" in e) throw e.error;
|
|
361
|
+
return e.value;
|
|
362
|
+
} });
|
|
363
|
+
} else try {
|
|
364
|
+
p[r] = h[r] = c();
|
|
365
|
+
} catch (e) {
|
|
366
|
+
let t = k(e);
|
|
367
|
+
Object.defineProperty(h, r, {
|
|
368
|
+
configurable: !0,
|
|
369
|
+
get() {
|
|
370
|
+
throw t;
|
|
371
|
+
}
|
|
372
|
+
});
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
return {
|
|
376
|
+
values: p,
|
|
377
|
+
environment: h
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
// src/local/evaluation/validation.ts
|
|
381
|
+
var P = "local.validation.failed", F = "local.validation.expression", I = "Validation failed.";
|
|
382
|
+
function L(e) {
|
|
383
|
+
return `${e.start}:${e.end}`;
|
|
384
|
+
}
|
|
385
|
+
function R(e) {
|
|
386
|
+
let t = /* @__PURE__ */ new Map();
|
|
387
|
+
for (let [n, r] of e.entries()) {
|
|
388
|
+
let e = L(r.range);
|
|
389
|
+
t.set(e, t.has(e) ? null : n);
|
|
390
|
+
}
|
|
391
|
+
return t;
|
|
392
|
+
}
|
|
393
|
+
function z(e) {
|
|
394
|
+
let t = e.details?.validationNodeId;
|
|
395
|
+
return typeof t == "string" ? t : void 0;
|
|
396
|
+
}
|
|
397
|
+
function B(e) {
|
|
398
|
+
return e.length > 2e3 ? `${r(e, t - 1)}…` : e;
|
|
399
|
+
}
|
|
400
|
+
function V(e) {
|
|
401
|
+
let t = e.trim();
|
|
402
|
+
return t ? t.split(/\s+/) : [];
|
|
403
|
+
}
|
|
404
|
+
function H(e) {
|
|
405
|
+
let t = [0];
|
|
406
|
+
for (let n = 0; n < e.length; n += 1) e[n] === "\n" && t.push(n + 1);
|
|
407
|
+
return t;
|
|
408
|
+
}
|
|
409
|
+
function U(e) {
|
|
410
|
+
if (!e || typeof e != "object") return !1;
|
|
411
|
+
let t = e, n = t.range;
|
|
412
|
+
return typeof t.expression == "string" && typeof t.message == "string" && Array.isArray(t.fields) && !!n && Number.isFinite(n.start) && Number.isFinite(n.end);
|
|
413
|
+
}
|
|
414
|
+
function W(e, t, { range: n, nodeId: r }, i, a) {
|
|
415
|
+
let o = e.length, s = Math.max(0, Math.min(o, Math.trunc(n.start))), c = Math.max(s + 1, Math.min(o, Math.trunc(n.end))), l = 0, u = Math.max(0, t.length - 1);
|
|
416
|
+
for (; l < u;) {
|
|
417
|
+
let e = Math.ceil((l + u) / 2);
|
|
418
|
+
t[e] <= s ? l = e : u = e - 1;
|
|
419
|
+
}
|
|
420
|
+
return {
|
|
421
|
+
code: i,
|
|
422
|
+
message: a,
|
|
423
|
+
severity: "error",
|
|
424
|
+
range: {
|
|
425
|
+
start: s,
|
|
426
|
+
end: c
|
|
427
|
+
},
|
|
428
|
+
line: l + 1,
|
|
429
|
+
column: s - t[l] + 1,
|
|
430
|
+
...typeof r == "string" ? { details: { validationNodeId: r } } : {}
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
export { _ as C, h as S, T as _, U as a, y as b, W as c, R as d, N as f, S as g, w as h, B as i, z as l, M as m, P as n, H as o, j as p, I as r, V as s, F as t, L as u, x as v, m as w, g as x, v as y };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/sdk/version.ts
|
|
2
|
-
var e = "0.7.0", t = "0.
|
|
2
|
+
var e = "0.7.0", t = "0.10.0", n = "reactive-md-component/v1", r = "reactive-md-config/v1", i = "reactive-md-config/v2", a = "reactive-md-preset/v1", o = "reactive-md-react-preset/v1", s = "reactive-md-assembly/v1", c = "reactive-md-extensions/v1", l = 128, u = 8, d = /^(\d+)\.(\d+)\.(\d+)(?:-([0-9A-Za-z.-]+))?(?:\+[0-9A-Za-z.-]+)?$/, f = /^0\d+$/;
|
|
3
3
|
function p(e) {
|
|
4
4
|
if (e === void 0) return Object.freeze([]);
|
|
5
5
|
let t = e.split("."), n = [];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { I as e, M as t, j as n, k as r } from "./component-utils-ZM3jUJNy.js";
|
|
2
2
|
import { t as i } from "./visual-frame-y5RFhJ0_.js";
|
|
3
3
|
import { Children as a, cloneElement as o, isValidElement as s } from "react";
|
|
4
4
|
import { Fragment as c, jsx as l } from "react/jsx-runtime";
|
|
@@ -60,9 +60,9 @@ function v({ notes: e }) {
|
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
function y({ context: u, children: d }) {
|
|
63
|
-
let f =
|
|
63
|
+
let f = t(u), p = e(u), m = u.source.attributes(), h = n(u), g = u.authorStyle ? a.map(d, (e) => s(e) && e.type === i ? o(e, { authorRoot: h() }) : e) : d, _ = p.invalid ? /* @__PURE__ */ l("div", {
|
|
64
64
|
role: "group",
|
|
65
|
-
"aria-label":
|
|
65
|
+
"aria-label": r(u, "label", r(u, "title", f.t("Selection", "选择"))),
|
|
66
66
|
"aria-invalid": p.invalid || void 0,
|
|
67
67
|
"aria-describedby": p.describedBy,
|
|
68
68
|
children: g
|