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,14 +1,14 @@
|
|
|
1
|
-
import { O as e } from "./preset-core-
|
|
2
|
-
import "./version-
|
|
3
|
-
import { f as t, l as n, u as r } from "./config-validation-
|
|
1
|
+
import { O as e } from "./preset-core-BKPbH_Nv.js";
|
|
2
|
+
import "./version-4wzhbvDG.js";
|
|
3
|
+
import { f as t, l as n, u as r } from "./config-validation-DbmsWAEV.js";
|
|
4
4
|
import { a as i, n as a, r as o, t as s } from "./dist-Cueh1Psp.js";
|
|
5
|
-
import { b as c, l, s as u } from "./default-config-
|
|
6
|
-
import { n as d } from "./default-registry-
|
|
7
|
-
import {
|
|
8
|
-
import { n as
|
|
9
|
-
import { t as
|
|
5
|
+
import { b as c, l, s as u } from "./default-config-CCa8rm2k.js";
|
|
6
|
+
import { n as d } from "./default-registry-DXJy66xj.js";
|
|
7
|
+
import { C as f, c as p, l as m, r as h, s as g, u as _ } from "./shareable-CHCDnl6j.js";
|
|
8
|
+
import { n as v, r as y, t as b } from "./requirements-C56sFIEs.js";
|
|
9
|
+
import { t as ee } from "./resources-6VaNgk-h.js";
|
|
10
10
|
// src/export/render-markup.ts
|
|
11
|
-
var
|
|
11
|
+
var x = "data-rmd-extension-error", S = "data-local-extension-error", C = "data-local-host-component", w = "local-sdk-unavailable", T = 300, te = /(?:data-rmd-extension-error|data-local-extension-error|local-sdk-unavailable)/i;
|
|
12
12
|
function E(e, t) {
|
|
13
13
|
for (let n of e.attrs) if (n.name.toLowerCase() === t) return n.value;
|
|
14
14
|
}
|
|
@@ -18,10 +18,10 @@ function D(e, t) {
|
|
|
18
18
|
}
|
|
19
19
|
function O(e) {
|
|
20
20
|
let t = e?.replace(/\s+/g, " ").trim();
|
|
21
|
-
if (t) return t.length >
|
|
21
|
+
if (t) return t.length > T ? `${t.slice(0, T)}…` : t;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
24
|
-
let t = E(e,
|
|
23
|
+
function ne(e) {
|
|
24
|
+
let t = E(e, x);
|
|
25
25
|
if (t !== void 0) {
|
|
26
26
|
let e = O(t);
|
|
27
27
|
return {
|
|
@@ -29,9 +29,9 @@ function k(e) {
|
|
|
29
29
|
...e === void 0 ? {} : { detail: e }
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
if (E(e,
|
|
33
|
-
let n = E(e,
|
|
34
|
-
if (n !== void 0 && D(e,
|
|
32
|
+
if (E(e, S) !== void 0) return { reason: "extension-error" };
|
|
33
|
+
let n = E(e, C);
|
|
34
|
+
if (n !== void 0 && D(e, w)) {
|
|
35
35
|
let e = O(n);
|
|
36
36
|
return {
|
|
37
37
|
reason: "sdk-unavailable",
|
|
@@ -39,8 +39,8 @@ function k(e) {
|
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
if (typeof e != "string" || e.trim() === "" || !
|
|
42
|
+
function k(e) {
|
|
43
|
+
if (typeof e != "string" || e.trim() === "" || !te.test(e)) return null;
|
|
44
44
|
let t;
|
|
45
45
|
try {
|
|
46
46
|
t = a(e, { scriptingEnabled: !1 });
|
|
@@ -48,24 +48,24 @@ function A(e) {
|
|
|
48
48
|
return null;
|
|
49
49
|
}
|
|
50
50
|
let n = [];
|
|
51
|
-
for (
|
|
51
|
+
for (A(t, n); n.length > 0;) {
|
|
52
52
|
let e = n.pop();
|
|
53
53
|
if (!i.isElementNode(e)) continue;
|
|
54
|
-
let t =
|
|
54
|
+
let t = ne(e);
|
|
55
55
|
if (t) return t;
|
|
56
56
|
let r = e.tagName.toLowerCase() === "template" ? i.getTemplateContent(e).childNodes : e.childNodes;
|
|
57
57
|
for (let e = r.length - 1; e >= 0; --e) n.push(r[e]);
|
|
58
58
|
}
|
|
59
59
|
return null;
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function A(e, t) {
|
|
62
62
|
for (let n = e.childNodes.length - 1; n >= 0; --n) t.push(e.childNodes[n]);
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function j(e) {
|
|
65
65
|
return e.reason === "sdk-unavailable" ? e.component ? `Rendered output leaves host component <${e.component}> unavailable.` : "Rendered output leaves a host component unavailable." : e.detail ? `Rendered output contains an unavailable extension component: ${e.detail}` : "Rendered output contains an unavailable extension component.";
|
|
66
66
|
}
|
|
67
67
|
// src/export/print-document.ts
|
|
68
|
-
var
|
|
68
|
+
var M = "reactive-md-native-document", N = "reactive-md-native-frame", P = "reactive-md-export-root", F = "local-extended-fragment-frame", re = "http://www.w3.org/1999/xhtml", ie = /* @__PURE__ */ new Set(/* @__PURE__ */ "article.section.header.footer.div.p.span.figure.figcaption.h1.h2.h3.h4.h5.h6.blockquote.pre.code.br.hr.b.strong.i.em.u.s.del.mark.sub.sup.img.dl.dd.dt.ol.ul.li.table.caption.colgroup.col.thead.tbody.tfoot.tr.th.td".split(".")), ae = /* @__PURE__ */ new Set([
|
|
69
69
|
"alt",
|
|
70
70
|
"title",
|
|
71
71
|
"dir",
|
|
@@ -74,11 +74,11 @@ var N = "reactive-md-native-document", P = "reactive-md-native-frame", F = "reac
|
|
|
74
74
|
"colspan",
|
|
75
75
|
"rowspan",
|
|
76
76
|
"scope"
|
|
77
|
-
]), oe = /^data:image\/(?:png|jpeg|gif|webp);base64,[a-z0-9+/]+=*$/i, se = /^reactive-md-html\/v[0-9]+$/, ce = /^\s*<!doctype html>/i,
|
|
77
|
+
]), oe = /^data:image\/(?:png|jpeg|gif|webp);base64,[a-z0-9+/]+=*$/i, se = /^reactive-md-html\/v[0-9]+$/, ce = /^\s*<!doctype html>/i, I = /* @__PURE__ */ new Set([
|
|
78
78
|
"script",
|
|
79
79
|
"base",
|
|
80
80
|
"link"
|
|
81
|
-
]),
|
|
81
|
+
]), L = /* @__PURE__ */ new Set([
|
|
82
82
|
"src",
|
|
83
83
|
"srcset",
|
|
84
84
|
"poster",
|
|
@@ -86,54 +86,54 @@ var N = "reactive-md-native-document", P = "reactive-md-native-frame", F = "reac
|
|
|
86
86
|
"xlink:href",
|
|
87
87
|
"background"
|
|
88
88
|
]);
|
|
89
|
-
function
|
|
89
|
+
function R(e) {
|
|
90
90
|
return i.isElementNode(e);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function z(e) {
|
|
93
93
|
return i.isTextNode(e);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function B(e) {
|
|
96
96
|
return i.getTemplateContent(e);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function V(e, t) {
|
|
99
99
|
return e.attrs.find((e) => e.name.toLowerCase() === t)?.value;
|
|
100
100
|
}
|
|
101
|
-
function
|
|
102
|
-
let t =
|
|
101
|
+
function H(e) {
|
|
102
|
+
let t = V(e, "class");
|
|
103
103
|
return t === void 0 ? [] : t.split(/\s+/).filter(Boolean);
|
|
104
104
|
}
|
|
105
|
-
function
|
|
106
|
-
return
|
|
105
|
+
function U(e, t) {
|
|
106
|
+
return H(e).includes(t);
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
for (let n of e.childNodes) if (
|
|
108
|
+
function W(e, t) {
|
|
109
|
+
for (let n of e.childNodes) if (R(n) && n.tagName.toLowerCase() === t) return n;
|
|
110
110
|
return null;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
for (let n of e.childNodes) if (
|
|
112
|
+
function G(e, t) {
|
|
113
|
+
for (let n of e.childNodes) if (R(n) && n.tagName === "meta" && V(n, "name")?.trim().toLowerCase() === t) return V(n, "content");
|
|
114
114
|
}
|
|
115
115
|
function le(e) {
|
|
116
|
-
let t =
|
|
117
|
-
return t !== void 0 && se.test(t.trim()) &&
|
|
116
|
+
let t = G(e, "reactive-md-html-format");
|
|
117
|
+
return t !== void 0 && se.test(t.trim()) && G(e, "reactive-md-output")?.trim().toLowerCase() === "static";
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
let t = e.childNodes.filter((e) => !(
|
|
121
|
-
return t.length === 1 &&
|
|
119
|
+
function K(e) {
|
|
120
|
+
let t = e.childNodes.filter((e) => !(z(e) && e.value.trim() === ""));
|
|
121
|
+
return t.length === 1 && R(t[0]) ? t[0] : null;
|
|
122
122
|
}
|
|
123
|
-
function
|
|
124
|
-
let t = e.childNodes.find((e) =>
|
|
125
|
-
if (!t || !
|
|
126
|
-
let n =
|
|
127
|
-
if (!n || !
|
|
128
|
-
let r =
|
|
129
|
-
if (!r || r.tagName !== "iframe" || !
|
|
130
|
-
let i =
|
|
131
|
-
if (!(i === void 0 || /\ballow-(?:same-origin|scripts)\b/i.test(i))) return
|
|
123
|
+
function q(e) {
|
|
124
|
+
let t = e.childNodes.find((e) => R(e) && U(e, P));
|
|
125
|
+
if (!t || !R(t)) return;
|
|
126
|
+
let n = K(t);
|
|
127
|
+
if (!n || !U(n, M)) return;
|
|
128
|
+
let r = K(n);
|
|
129
|
+
if (!r || r.tagName !== "iframe" || !U(r, N)) return;
|
|
130
|
+
let i = V(r, "sandbox");
|
|
131
|
+
if (!(i === void 0 || /\ballow-(?:same-origin|scripts)\b/i.test(i))) return V(r, "srcdoc");
|
|
132
132
|
}
|
|
133
133
|
function J(e) {
|
|
134
|
-
return e.childNodes.some((e) =>
|
|
134
|
+
return e.childNodes.some((e) => R(e) && e.tagName === "meta" && V(e, "http-equiv")?.trim().toLowerCase() === "content-security-policy");
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function ue(e) {
|
|
137
137
|
return e.split(/[\s,]+/).some((e) => {
|
|
138
138
|
let t = e.trim();
|
|
139
139
|
if (t === "" || t.startsWith("#") || t.startsWith("//")) return t.startsWith("//");
|
|
@@ -144,17 +144,17 @@ function de(e) {
|
|
|
144
144
|
function Y(e) {
|
|
145
145
|
let t = [];
|
|
146
146
|
for (let n of e) {
|
|
147
|
-
if (!
|
|
147
|
+
if (!R(n)) {
|
|
148
148
|
t.push(n);
|
|
149
149
|
continue;
|
|
150
150
|
}
|
|
151
151
|
let e = n.tagName.toLowerCase();
|
|
152
|
-
if (!(
|
|
152
|
+
if (!(I.has(e) || e === "meta" && V(n, "http-equiv") !== void 0)) {
|
|
153
153
|
if (n.attrs = n.attrs.filter((e) => {
|
|
154
154
|
let t = e.name.toLowerCase();
|
|
155
|
-
return t.startsWith("on") ? !1 : !
|
|
155
|
+
return t.startsWith("on") ? !1 : !L.has(t) || !ue(e.value);
|
|
156
156
|
}), e === "template") {
|
|
157
|
-
let e =
|
|
157
|
+
let e = B(n);
|
|
158
158
|
e.childNodes = Y(e.childNodes);
|
|
159
159
|
}
|
|
160
160
|
n.childNodes = Y(n.childNodes), t.push(n);
|
|
@@ -163,12 +163,12 @@ function Y(e) {
|
|
|
163
163
|
return t;
|
|
164
164
|
}
|
|
165
165
|
function X(e, t) {
|
|
166
|
-
let n =
|
|
166
|
+
let n = V(e, "srcdoc"), r = V(e, "sandbox");
|
|
167
167
|
if (n && r !== void 0 && !/\ballow-(?:same-origin|scripts)\b/i.test(r) && t < 5) {
|
|
168
|
-
let e =
|
|
168
|
+
let e = W(s(n, { scriptingEnabled: !1 }), "html"), r = e && W(e, "head"), i = e && W(e, "body");
|
|
169
169
|
if (r && i && J(r)) return Z(i.childNodes, t + 1);
|
|
170
170
|
}
|
|
171
|
-
let i =
|
|
171
|
+
let i = V(e, "title");
|
|
172
172
|
return i ? [{
|
|
173
173
|
nodeName: "#text",
|
|
174
174
|
value: i,
|
|
@@ -178,18 +178,18 @@ function X(e, t) {
|
|
|
178
178
|
function Z(e, t) {
|
|
179
179
|
let n = [];
|
|
180
180
|
for (let r of e) {
|
|
181
|
-
if (
|
|
181
|
+
if (z(r)) {
|
|
182
182
|
n.push(r);
|
|
183
183
|
continue;
|
|
184
184
|
}
|
|
185
|
-
if (!
|
|
185
|
+
if (!R(r) || r.namespaceURI !== re) continue;
|
|
186
186
|
if (r.tagName === "iframe") {
|
|
187
187
|
let e = i.createElement("div", r.namespaceURI, []);
|
|
188
188
|
for (let n of X(r, t)) i.appendChild(e, n);
|
|
189
189
|
n.push(e);
|
|
190
190
|
continue;
|
|
191
191
|
}
|
|
192
|
-
if (
|
|
192
|
+
if (I.has(r.tagName) || r.tagName === "style" || r.tagName === "template") continue;
|
|
193
193
|
let e = Z(r.childNodes, t);
|
|
194
194
|
ie.has(r.tagName) ? (r.attrs = r.attrs.filter(({ name: e, value: t, namespace: n }) => !n && (ae.has(e) || r.tagName === "img" && e === "src" && oe.test(t))), r.childNodes = e, n.push(r)) : n.push(...e);
|
|
195
195
|
}
|
|
@@ -198,26 +198,26 @@ function Z(e, t) {
|
|
|
198
198
|
function Q(e) {
|
|
199
199
|
let t = !1;
|
|
200
200
|
for (let n of e.childNodes) {
|
|
201
|
-
if (!
|
|
202
|
-
if (
|
|
201
|
+
if (!R(n)) continue;
|
|
202
|
+
if (V(n, "data-extended-html") !== "sandbox") {
|
|
203
203
|
Q(n) && (t = !0);
|
|
204
204
|
continue;
|
|
205
205
|
}
|
|
206
|
-
let e =
|
|
207
|
-
e && e.tagName === "iframe" &&
|
|
206
|
+
let e = K(n);
|
|
207
|
+
e && e.tagName === "iframe" && U(e, F) && (n.childNodes = X(e, 0), t = !0);
|
|
208
208
|
}
|
|
209
209
|
return t;
|
|
210
210
|
}
|
|
211
|
-
function
|
|
212
|
-
if (!(e.includes(
|
|
213
|
-
let t = s(e, { scriptingEnabled: !1 }), n =
|
|
211
|
+
function de(e) {
|
|
212
|
+
if (!(e.includes(M) && e.includes(N)) && !e.includes(F)) return e;
|
|
213
|
+
let t = s(e, { scriptingEnabled: !1 }), n = W(t, "html"), r = n && W(n, "head"), a = n && W(n, "body");
|
|
214
214
|
if (!r || !a || !le(r)) return e;
|
|
215
|
-
let c =
|
|
215
|
+
let c = q(a);
|
|
216
216
|
if (!c || !ce.test(c)) {
|
|
217
|
-
let n = a.childNodes.find((e) =>
|
|
218
|
-
return n &&
|
|
217
|
+
let n = a.childNodes.find((e) => R(e) && U(e, P));
|
|
218
|
+
return n && R(n) && Q(n) ? o(t, { scriptingEnabled: !1 }) : e;
|
|
219
219
|
}
|
|
220
|
-
let l = s(c, { scriptingEnabled: !1 }), u =
|
|
220
|
+
let l = s(c, { scriptingEnabled: !1 }), u = W(l, "html"), d = u && W(u, "head"), f = u && W(u, "body");
|
|
221
221
|
if (!d || !f || !J(d)) return e;
|
|
222
222
|
let p = i.createElement("meta", r.namespaceURI, [{
|
|
223
223
|
name: "http-equiv",
|
|
@@ -225,15 +225,15 @@ function fe(e) {
|
|
|
225
225
|
}, {
|
|
226
226
|
name: "content",
|
|
227
227
|
value: "default-src 'none'; style-src 'unsafe-inline'; img-src data:; font-src data:; frame-src about: data: blob:; base-uri 'none'; form-action 'none'"
|
|
228
|
-
}]), m = r.childNodes.filter((e) =>
|
|
228
|
+
}]), m = r.childNodes.filter((e) => R(e) && e.tagName === "style"), h = d.childNodes.filter((e) => R(e) && e.tagName === "style");
|
|
229
229
|
return d.childNodes = [
|
|
230
230
|
p,
|
|
231
|
-
...r.childNodes.filter((e) =>
|
|
231
|
+
...r.childNodes.filter((e) => R(e) && (e.tagName === "meta" || e.tagName === "title") && V(e, "http-equiv")?.toLowerCase() !== "refresh"),
|
|
232
232
|
...m,
|
|
233
233
|
...Y(h)
|
|
234
234
|
], f.childNodes = Y(f.childNodes), o(l, { scriptingEnabled: !1 });
|
|
235
235
|
}
|
|
236
|
-
async function
|
|
236
|
+
async function fe(e) {
|
|
237
237
|
let t = /[\u0000-\u001f\u007f-\u009f]/g, n = (e, n) => {
|
|
238
238
|
let r = typeof e.alt == "string" ? e.alt.replace(t, " ").trim() : "", i = r === "" || /^[a-z][a-z0-9+.-]*:/i.test(r) || r.startsWith("//") ? "" : r, a = i === "" ? `#${n + 1}` : i;
|
|
239
239
|
return a.length > 120 ? `${a.slice(0, 117)}...` : a;
|
|
@@ -264,7 +264,7 @@ async function pe(e) {
|
|
|
264
264
|
}), s;
|
|
265
265
|
}
|
|
266
266
|
// src/export/index.ts
|
|
267
|
-
function
|
|
267
|
+
function pe(t, n) {
|
|
268
268
|
let r = u(n);
|
|
269
269
|
if (typeof t != "string" || !t.trim() || t.length > 33554432) throw TypeError("A standalone bundle must contain a nonempty script of at most 32 MiB.");
|
|
270
270
|
return Object.freeze({
|
|
@@ -285,8 +285,8 @@ function $(e) {
|
|
|
285
285
|
let i = u(e.config), a = e.document.extensions ?? {
|
|
286
286
|
protocol: "reactive-md-extensions/v1",
|
|
287
287
|
components: []
|
|
288
|
-
}, o =
|
|
289
|
-
o.push(...l(e.document, i)), o.push(...
|
|
288
|
+
}, o = y(a, i);
|
|
289
|
+
o.push(...l(e.document, i)), o.push(...v({
|
|
290
290
|
document: e.document,
|
|
291
291
|
installed: d(i),
|
|
292
292
|
externalNames: new Set(i.components.map((e) => e.name))
|
|
@@ -306,66 +306,65 @@ function $(e) {
|
|
|
306
306
|
"interactive",
|
|
307
307
|
"offline"
|
|
308
308
|
] : [f];
|
|
309
|
-
for (let e of n) t.capabilities[e] || o.push(
|
|
309
|
+
for (let e of n) t.capabilities[e] || o.push(b("local.extension.export-capability", `${t.id}@${t.version} does not support ${e} for ${f} export.`));
|
|
310
310
|
}
|
|
311
311
|
if (f === "offline") {
|
|
312
|
-
if (!e.bundle?.script?.trim()) o.push(
|
|
312
|
+
if (!e.bundle?.script?.trim()) o.push(b("local.extension.bundle-missing", "Offline output requires an explicitly built standalone bundle."));
|
|
313
313
|
else {
|
|
314
|
-
o.push(...
|
|
314
|
+
o.push(...y(e.bundle.extensions, i));
|
|
315
315
|
let s = e.bundle.seal;
|
|
316
|
-
if (s && (s.protocol !== "reactive-md-bundle/v1" || s.sdkVersion !== "0.7.0" || !t(i, s.configKey) || s.scriptDigest !==
|
|
316
|
+
if (s && (s.protocol !== "reactive-md-bundle/v1" || s.sdkVersion !== "0.7.0" || !t(i, s.configKey) || s.scriptDigest !== m(e.bundle.script)) && o.push(b("local.extension.bundle-integrity", "The bundle script or installed configuration differs from its sealed build manifest.")), s?.assembly !== void 0) {
|
|
317
317
|
let e = n(i);
|
|
318
|
-
(JSON.stringify(s.assembly) !== JSON.stringify(e) || s.seal !== void 0 && s.seal !== r(i)) && o.push(
|
|
318
|
+
(JSON.stringify(s.assembly) !== JSON.stringify(e) || s.seal !== void 0 && s.seal !== r(i)) && o.push(b("local.extension.bundle-assembly", "The bundle assembly identity differs from the installed assembly."));
|
|
319
319
|
}
|
|
320
|
-
for (let t of a.components) e.bundle.extensions.components.some((e) => e.id === t.id && e.digest === t.digest) || o.push(
|
|
320
|
+
for (let t of a.components) e.bundle.extensions.components.some((e) => e.id === t.id && e.digest === t.digest) || o.push(b("local.extension.bundle-mismatch", `The standalone bundle does not include ${t.id}@${t.version}.`));
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
|
-
let
|
|
324
|
-
if (f === "offline" &&
|
|
323
|
+
let p = e.document.theme ?? "default", h = i.themes.find((e) => e.name === p);
|
|
324
|
+
if (f === "offline" && h && e.bundle?.seal) {
|
|
325
325
|
let t = e.bundle.seal.themes;
|
|
326
|
-
Array.isArray(t) && t.some((e) => e.id ===
|
|
326
|
+
Array.isArray(t) && t.some((e) => e.id === h.id && e.name === h.name && e.version === h.version && e.digest === _(h)) || o.push(b("local.extension.bundle-theme", `Bundle theme ${h.id}@${h.version} differs from the selected export theme. Rebuild the bundle.`));
|
|
327
327
|
}
|
|
328
|
-
|
|
329
|
-
let
|
|
330
|
-
o.push(...
|
|
331
|
-
let
|
|
332
|
-
for (let e of s)
|
|
333
|
-
let
|
|
328
|
+
p !== "default" && !h && o.push(b("local.extension.theme-missing", `Theme ${p} is not installed for export.`));
|
|
329
|
+
let g = ee([...e.resources ?? [], ...h?.css ?? []]);
|
|
330
|
+
o.push(...g.diagnostics);
|
|
331
|
+
let x = new Map(g.resources.map((e) => [e.id, e]));
|
|
332
|
+
for (let e of s) x.has(e) || o.push(b("local.extension.resource-missing", `Required style resource ${e} is missing.`));
|
|
333
|
+
let S = Object.freeze([...x.values()]);
|
|
334
334
|
return Object.freeze({
|
|
335
335
|
target: f,
|
|
336
336
|
extensions: a,
|
|
337
|
-
resources:
|
|
338
|
-
css: `${c}\n${
|
|
337
|
+
resources: S,
|
|
338
|
+
css: `${c}\n${S.map((e) => e.css).join("\n")}`,
|
|
339
339
|
diagnostics: Object.freeze(o),
|
|
340
340
|
ok: o.length === 0
|
|
341
341
|
});
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function me(e) {
|
|
344
344
|
if (e.document.source !== e.source) throw TypeError("The compiled document does not belong to this source.");
|
|
345
|
-
let t = f(e.state);
|
|
346
|
-
if (!t.ok) throw TypeError(t.diagnostics.map((e) => `[${e.code}] ${e.message}`).join("\n"));
|
|
347
|
-
let n = m(e.document, t.file);
|
|
345
|
+
let t = e.mode === "static", n = f(e.document, e.state, t ? { externalValues: e.externalValues } : { macroState: e.macroState });
|
|
348
346
|
if (!n.ok) throw TypeError(n.diagnostics.map((e) => `[${e.code}] ${e.message}`).join("\n"));
|
|
349
347
|
let r = u(e.config);
|
|
350
348
|
if (e.compileOptions?.hostComponents !== void 0 || e.compileOptions?.config && u(e.compileOptions.config).key !== r.key) throw TypeError("Conflicting export component configuration.");
|
|
351
349
|
let i = $({
|
|
352
350
|
...e,
|
|
353
|
-
target:
|
|
351
|
+
target: t ? "static" : "offline"
|
|
354
352
|
});
|
|
355
353
|
if (!i.ok) throw TypeError(i.diagnostics.map((e) => `[${e.code}] ${e.message}`).join("\n"));
|
|
356
|
-
let a =
|
|
357
|
-
if (a) throw TypeError(
|
|
358
|
-
return
|
|
354
|
+
let a = k(e.staticMarkup);
|
|
355
|
+
if (a) throw TypeError(j(a));
|
|
356
|
+
return h({
|
|
359
357
|
...e,
|
|
358
|
+
state: n.file,
|
|
360
359
|
compileOptions: {
|
|
361
360
|
...e.compileOptions,
|
|
362
361
|
config: r
|
|
363
362
|
},
|
|
364
363
|
extensions: i.extensions,
|
|
365
|
-
restoration:
|
|
364
|
+
restoration: p(e.document, r, i.target, i.resources),
|
|
366
365
|
resources: i.resources,
|
|
367
366
|
runtimeScript: e.bundle?.script,
|
|
368
367
|
css: `${e.css}\n${i.css}`
|
|
369
368
|
});
|
|
370
369
|
}
|
|
371
|
-
export {
|
|
370
|
+
export { fe as a, de as i, me as n, k as o, pe as r, j as s, $ as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { j as e } from "./component-utils-ZM3jUJNy.js";
|
|
2
2
|
import { useCallback as t, useEffect as n, useId as r, useRef as i, useState as a } from "react";
|
|
3
3
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
4
4
|
// src/components/gallery/gallery.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./limits-CFERRrlC.js";
|
|
2
|
-
import { l as e } from "./document-theme-
|
|
3
|
-
import {
|
|
4
|
-
import { i, o as a, r as o, s } from "./schema-core-
|
|
2
|
+
import { l as e } from "./document-theme-CJvN-nC1.js";
|
|
3
|
+
import { C as t, S as n, x as r } from "./validation-DRuW0Wl9.js";
|
|
4
|
+
import { i, o as a, r as o, s } from "./schema-core-CDXfxdID.js";
|
|
5
5
|
import { a as c, i as l, n as u, t as d } from "./dist-Cueh1Psp.js";
|
|
6
6
|
// src/local/html/html.ts
|
|
7
7
|
var f = "http://www.w3.org/1999/xhtml", p = /* @__PURE__ */ new Set([
|
|
@@ -36,7 +36,7 @@ var f = "http://www.w3.org/1999/xhtml", p = /* @__PURE__ */ new Set([
|
|
|
36
36
|
"li",
|
|
37
37
|
"a",
|
|
38
38
|
"img",
|
|
39
|
-
...
|
|
39
|
+
...n
|
|
40
40
|
]), m = /* @__PURE__ */ new Set([
|
|
41
41
|
"html",
|
|
42
42
|
"head",
|
|
@@ -357,7 +357,7 @@ function J(e, r, i, c) {
|
|
|
357
357
|
let l = [], u = !1, d = !0;
|
|
358
358
|
for (let s of e.attrs) {
|
|
359
359
|
let f = s.name.toLowerCase(), p = s.prefix ? `${s.prefix}:${s.name}` : s.name, m = ie(e, s, c);
|
|
360
|
-
if (i &&
|
|
360
|
+
if (i && n.has(r) && !t(f, s.value)) {
|
|
361
361
|
d = !1, w(c, "local.html.table", `Invalid value for ${f} on native HTML <${r}>.`, m.start, m.end, {
|
|
362
362
|
key: "html.table.value",
|
|
363
363
|
params: {
|