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
|
@@ -14,6 +14,7 @@ import type { LocalComponentRequires, LocalConfig } from '../sdk/types.js';
|
|
|
14
14
|
export interface LocalComponentCatalogProp {
|
|
15
15
|
readonly name: string;
|
|
16
16
|
readonly kind: LocalPropKind;
|
|
17
|
+
/** Whether the component requires the attribute in its source. */
|
|
17
18
|
readonly required: boolean;
|
|
18
19
|
readonly static: boolean;
|
|
19
20
|
readonly dynamic: boolean;
|
|
@@ -81,6 +82,7 @@ export interface LocalTagAuthoring {
|
|
|
81
82
|
export interface LocalAttributeAuthoring {
|
|
82
83
|
readonly name: string;
|
|
83
84
|
readonly kind: LocalPropKind;
|
|
85
|
+
/** Whether the component requires the attribute in its source. */
|
|
84
86
|
readonly required: boolean;
|
|
85
87
|
readonly static: boolean;
|
|
86
88
|
readonly dynamic: boolean;
|
|
@@ -174,4 +176,4 @@ export declare function localCatalogAncestors(source: string, offset: number, op
|
|
|
174
176
|
* templates and keywords come from preset authoring data; external titles,
|
|
175
177
|
* descriptions, templates and property help come from the same manifests.
|
|
176
178
|
*/
|
|
177
|
-
export declare function createLocalAuthoringLookup(options?: LocalCompileOptions, locale?: EditorLocale): LocalAuthoringLookup;
|
|
179
|
+
export declare function createLocalAuthoringLookup(options?: LocalCompileOptions, locale?: EditorLocale, theme?: string): LocalAuthoringLookup;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* components, limits and HTML mode stay consistent.
|
|
13
13
|
*/
|
|
14
14
|
export { analyzeLocalSource, completeLocalSource, formatLocalSource, renameLocalBinding, } from '../local/source/authoring.js';
|
|
15
|
-
export type { AuthorAnalysis, AuthorBinding, AuthorCompletion, AuthorCompletionKind, AuthorRename, AuthorToken, } from '../local/source/authoring.js';
|
|
15
|
+
export type { AuthorAnalysis, AuthorBinding, AuthorCompletion, AuthorCompletionKind, AuthorMacroDefinition, AuthorRename, AuthorToken, } from '../local/source/authoring.js';
|
|
16
16
|
export { createLocalAuthoringLookup, createLocalComponentCatalog, createLocalComponentCatalogForOptions, filterLocalComponentCatalog, insertLocalComponent, insertLocalComponentFromOptions, localCatalogAncestors, localComponentCatalogGroups, localComponentCatalogKey, localComponentHelp, } from './extensions.js';
|
|
17
17
|
export { validateLocalComponentInsertTemplates } from './conformance.js';
|
|
18
18
|
export type { LocalAttributeAuthoring, LocalAuthoringLookup, LocalComponentBodyKind, LocalComponentCatalogEntry, LocalComponentCatalogFilter, LocalComponentCatalogGroup, LocalComponentCatalogProp, LocalTagAuthoring, } from './extensions.js';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { DataTableColumnSpec } from '../table/data-table-model.js';
|
|
1
2
|
/** Private view contract; compilation, validation and selection writes stay in ChartView. */
|
|
2
3
|
export interface DefaultChartRow {
|
|
3
4
|
index: number;
|
|
@@ -14,6 +15,8 @@ export interface DefaultChartProps {
|
|
|
14
15
|
rows: readonly DefaultChartRow[];
|
|
15
16
|
seriesNames: readonly string[];
|
|
16
17
|
numericX: boolean;
|
|
18
|
+
/** Authored column declarations for the y series, aligned with `seriesNames`. */
|
|
19
|
+
valueFormats?: readonly DataTableColumnSpec[];
|
|
17
20
|
selectionEnabled: boolean;
|
|
18
21
|
selectedRowKey: string;
|
|
19
22
|
onSelect(key: string): void;
|
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
import type { DefaultChartProps } from './default-chart-types.js';
|
|
2
|
+
import { type DataTableColumnSpec } from '../table/data-table-model.js';
|
|
3
|
+
/**
|
|
4
|
+
* Readout text for one chart value. An authored generated-column format wins
|
|
5
|
+
* when it produces text; plain or failed formats keep the compact chart text.
|
|
6
|
+
* Axis ticks never use this helper.
|
|
7
|
+
*/
|
|
8
|
+
export declare function formatChartValue(value: number, spec?: DataTableColumnSpec): string;
|
|
2
9
|
export declare function DefaultChart(props: DefaultChartProps): import("react").JSX.Element;
|
|
@@ -11,6 +11,11 @@ export declare function StepView(): null;
|
|
|
11
11
|
export declare function AccordionView(context: LocalComponentContext): import("react").JSX.Element;
|
|
12
12
|
export declare function DisclosureView(context: LocalComponentContext): import("react").JSX.Element;
|
|
13
13
|
export declare function IfView(context: LocalComponentContext): import("react").JSX.Element;
|
|
14
|
+
/**
|
|
15
|
+
* Alternative branch. The renderer provides the decision for this node only,
|
|
16
|
+
* so a detached branch cannot use an ancestor chain's selection.
|
|
17
|
+
*/
|
|
18
|
+
export declare function ElseView(context: LocalComponentContext): import("react").JSX.Element;
|
|
14
19
|
export declare function AlertView(context: LocalComponentContext): import("react").JSX.Element;
|
|
15
20
|
export declare function BadgeView(context: LocalComponentContext): import("react").JSX.Element;
|
|
16
21
|
export declare function TooltipView(context: LocalComponentContext): import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type LocalComponentContext } from '../../react/component-api.js';
|
|
2
2
|
export declare function ChartView(context: LocalComponentContext): import("react").JSX.Element;
|
|
3
3
|
export declare function PlotView(context: LocalComponentContext): import("react").JSX.Element;
|
|
4
4
|
export declare function DiagramView(context: LocalComponentContext): import("react").JSX.Element;
|
|
@@ -1,21 +1,52 @@
|
|
|
1
1
|
import type { LocalValue } from '../../contracts/runtime-types.js';
|
|
2
|
+
import { type TransformStage } from '../../local/evaluation/expression/compile.js';
|
|
2
3
|
type Localize = (english: string, chinese: string) => string;
|
|
3
4
|
export type DataTableFailure = 'label' | 'columns' | 'max-rows' | 'rows' | 'rows-budget' | 'key' | 'text-budget';
|
|
4
5
|
export declare class DataTableFailureError extends Error {
|
|
5
6
|
readonly failure: DataTableFailure;
|
|
6
7
|
constructor(failure: DataTableFailure);
|
|
7
8
|
}
|
|
9
|
+
/** Display formats a generated column may declare. `plain` keeps source text. */
|
|
10
|
+
export declare const DATA_TABLE_COLUMN_FORMATS: readonly ['plain', 'number', 'percent', 'scientific', 'currency'];
|
|
11
|
+
export type DataTableColumnFormat = (typeof DATA_TABLE_COLUMN_FORMATS)[number];
|
|
12
|
+
/** Cell alignment for generated tables. `center` is the default. */
|
|
13
|
+
export declare const DATA_TABLE_ALIGNMENTS: readonly ['left', 'center', 'right'];
|
|
14
|
+
export type DataTableAlign = (typeof DATA_TABLE_ALIGNMENTS)[number];
|
|
15
|
+
/** A raw scalar kept alongside the display text for later chart consumption. */
|
|
16
|
+
export type DataTableCellValue = string | number | boolean | null;
|
|
8
17
|
export interface DataTableCell {
|
|
18
|
+
/** False when evaluation or formatting failed; `text` stays empty. */
|
|
9
19
|
ok: boolean;
|
|
20
|
+
/** Display text: formatted for typed columns, plain otherwise. */
|
|
10
21
|
text: string;
|
|
22
|
+
/** Raw scalar value; never the formatted text. */
|
|
23
|
+
value: DataTableCellValue;
|
|
24
|
+
/** Finite numeric value when the raw value is a number, otherwise null. */
|
|
25
|
+
numeric: number | null;
|
|
11
26
|
}
|
|
12
27
|
export interface DataTableRow {
|
|
28
|
+
/** Internal encoded identity used as the React key and duplicate guard. */
|
|
13
29
|
key: string;
|
|
30
|
+
/** Scalar key exposed through the selection binding text. */
|
|
31
|
+
keyValue: string | number;
|
|
14
32
|
cells: DataTableCell[];
|
|
33
|
+
/** Row-level alignment from the dynamic `row-align` expression, when valid. */
|
|
34
|
+
align?: DataTableAlign | null;
|
|
15
35
|
}
|
|
16
36
|
export interface DataTableColumnSpec {
|
|
17
37
|
label: string;
|
|
18
38
|
value: string;
|
|
39
|
+
summary?: 'sum' | 'average' | 'count';
|
|
40
|
+
/** Static column alignment; overrides the row and table alignment. */
|
|
41
|
+
align?: DataTableAlign;
|
|
42
|
+
/** Defaults to `plain`. Unknown values fall back to plain text. */
|
|
43
|
+
format?: DataTableColumnFormat;
|
|
44
|
+
/** Fraction digit count, 0-20; each format applies its own default. */
|
|
45
|
+
digits?: number;
|
|
46
|
+
/** Three-letter uppercase currency code for `currency`; defaults to USD. */
|
|
47
|
+
currency?: string;
|
|
48
|
+
/** Supported `Intl` locale; defaults to en-US. */
|
|
49
|
+
locale?: string;
|
|
19
50
|
}
|
|
20
51
|
export interface DataTableModel {
|
|
21
52
|
columns: string[];
|
|
@@ -32,17 +63,79 @@ export type DataTableBuildResult = {
|
|
|
32
63
|
export interface DataTableBuildOptions {
|
|
33
64
|
readonly rows: readonly LocalValue[];
|
|
34
65
|
readonly columns: readonly DataTableColumnSpec[];
|
|
35
|
-
|
|
66
|
+
/** Required for selection tables; generated charts omit it and key by index. */
|
|
67
|
+
readonly keyExpression?: string;
|
|
68
|
+
/** Dynamic per-row alignment expression; evaluated with `item` and `index`. */
|
|
69
|
+
readonly rowAlign?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Author text for the empty-state cell of a genuinely empty data source.
|
|
72
|
+
* Charged against the text budget instead of the default no-rows message.
|
|
73
|
+
*/
|
|
74
|
+
readonly emptyText?: string;
|
|
36
75
|
readonly runtime: {
|
|
37
76
|
evaluate(expression: string): LocalValue;
|
|
38
77
|
};
|
|
39
78
|
readonly maxRows?: number;
|
|
40
79
|
readonly budget?: number;
|
|
80
|
+
/**
|
|
81
|
+
* Shared transform stage for every expression this build evaluates. Omitted
|
|
82
|
+
* creates one for the call so a standalone build keeps the stage limit.
|
|
83
|
+
*/
|
|
84
|
+
readonly stage?: TransformStage;
|
|
41
85
|
}
|
|
86
|
+
/** Display a numeric value with a generated column format; null for plain. */
|
|
87
|
+
export declare function formatDataTableNumber(value: number, spec: DataTableColumnSpec): string | null;
|
|
88
|
+
export declare function isDataTableColumnFormat(value: unknown): value is DataTableColumnFormat;
|
|
42
89
|
export declare function encodeDataTableKey(value: LocalValue): string | null;
|
|
90
|
+
/** Public selection text for one row: the scalar key as a string. */
|
|
91
|
+
export declare function dataTableSelectionText(row: DataTableRow): string;
|
|
92
|
+
/** Write a row's scalar key through the selection binding. */
|
|
93
|
+
export declare function writeDataTableSelection(row: DataTableRow, write: (value: string) => void): string;
|
|
94
|
+
/** Resolve the stored selection text to one row; unknown text selects nothing. */
|
|
95
|
+
export declare function selectedDataTableRow(model: DataTableModel, stored: string): DataTableRow | null;
|
|
43
96
|
export declare function evaluateDataTableRows(runtime: {
|
|
44
97
|
evaluate(expression: string): LocalValue;
|
|
45
|
-
}, expression: string): LocalValue[];
|
|
98
|
+
}, expression: string, stage?: TransformStage): LocalValue[];
|
|
46
99
|
export declare function buildDataTableModel(options: DataTableBuildOptions): DataTableBuildResult;
|
|
100
|
+
export interface DataTableSortState {
|
|
101
|
+
readonly column: number;
|
|
102
|
+
readonly direction: 'asc' | 'desc';
|
|
103
|
+
}
|
|
104
|
+
export interface DataTablePageOptions {
|
|
105
|
+
/** Case-insensitive search over computed cell display text. */
|
|
106
|
+
readonly search?: string;
|
|
107
|
+
readonly sort?: DataTableSortState | null;
|
|
108
|
+
/** One-based page number; clamped to the available pages. */
|
|
109
|
+
readonly page?: number;
|
|
110
|
+
/** Positive integer page size; null or undefined disables paging. */
|
|
111
|
+
readonly pageSize?: number | null;
|
|
112
|
+
}
|
|
113
|
+
export interface DataTablePage {
|
|
114
|
+
/** Rows on the current page after search and sort. */
|
|
115
|
+
readonly rows: DataTableRow[];
|
|
116
|
+
/** All matched rows in source order, before sorting and pagination. */
|
|
117
|
+
readonly filteredRows: readonly DataTableRow[];
|
|
118
|
+
/** True when every non-empty computed cell of the column holds a finite number. */
|
|
119
|
+
readonly numericColumns: boolean[];
|
|
120
|
+
/** Row count after search and before paging. */
|
|
121
|
+
readonly total: number;
|
|
122
|
+
/** Clamped, one-based page number. */
|
|
123
|
+
readonly page: number;
|
|
124
|
+
readonly pageCount: number;
|
|
125
|
+
readonly pageSize: number | null;
|
|
126
|
+
readonly sort: DataTableSortState | null;
|
|
127
|
+
readonly searching: boolean;
|
|
128
|
+
}
|
|
129
|
+
export declare function dataTableNumericColumns(model: DataTableModel): boolean[];
|
|
130
|
+
/** Cycle one header through ascending, descending and source order. */
|
|
131
|
+
export declare function cycleDataTableSort(current: DataTableSortState | null, column: number): DataTableSortState | null;
|
|
132
|
+
export declare function buildDataTablePage(model: DataTableModel, options?: DataTablePageOptions): DataTablePage;
|
|
133
|
+
export declare function dataTableSummaries(rows: readonly DataTableRow[], columns: readonly DataTableColumnSpec[]): (string | null)[];
|
|
134
|
+
/**
|
|
135
|
+
* Text of the single empty-state cell. A genuinely empty data source shows the
|
|
136
|
+
* author's `empty` text when supplied and the localized default otherwise; a
|
|
137
|
+
* search that matches no row keeps the localized no-matching message.
|
|
138
|
+
*/
|
|
139
|
+
export declare function dataTableEmptyMessage(model: Pick<DataTableModel, 'empty'>, emptyText: string | undefined, t: Localize): string;
|
|
47
140
|
export declare function dataTableFailureMessage(t: Localize, failure: DataTableFailure): string;
|
|
48
141
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type LocalComponentContext } from '../../react/component-api.js';
|
|
3
3
|
export * from './data-table-model.js';
|
|
4
4
|
export declare function DataTableView(context: LocalComponentContext): ReactNode;
|
|
@@ -12,6 +12,8 @@ export interface KernelPropSchema {
|
|
|
12
12
|
dynamic?: boolean;
|
|
13
13
|
values?: readonly string[];
|
|
14
14
|
enum?: readonly string[];
|
|
15
|
+
/** Also accept finite positive numeric literals as strings for enum props. */
|
|
16
|
+
allowPositiveNumber?: boolean;
|
|
15
17
|
default?: LocalValue;
|
|
16
18
|
integer?: boolean;
|
|
17
19
|
positive?: boolean;
|
|
@@ -78,6 +80,9 @@ export interface KernelStructure {
|
|
|
78
80
|
content?: 'markdown' | 'task-list';
|
|
79
81
|
}
|
|
80
82
|
export type KernelRule = {
|
|
83
|
+
kind: 'required-one-of';
|
|
84
|
+
attributes: readonly string[];
|
|
85
|
+
} | {
|
|
81
86
|
kind: 'numeric-range';
|
|
82
87
|
min?: string;
|
|
83
88
|
max?: string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** Maps stable source names to CSS font-family names. Font files belong to style resources. */
|
|
2
|
+
export type LocalFontAliases = Readonly<Record<string, string>>;
|
|
3
|
+
export declare const LOCAL_TEXT_FONT_CHOICES: readonly ['sans', 'serif', 'mono'];
|
|
4
|
+
export declare const LOCAL_TEXT_COMPONENT_ID = "reactive-md/text";
|
|
5
|
+
/** Validate metadata without reading a stylesheet or loading any font. */
|
|
6
|
+
export declare function readLocalFontAliases(value: unknown, path: string): LocalFontAliases | undefined;
|
|
7
|
+
interface FontRegistry {
|
|
8
|
+
readonly fonts?: LocalFontAliases;
|
|
9
|
+
readonly themes: readonly {
|
|
10
|
+
readonly name: string;
|
|
11
|
+
readonly fonts?: LocalFontAliases;
|
|
12
|
+
}[];
|
|
13
|
+
}
|
|
14
|
+
export declare function activeLocalFontAliases(config: FontRegistry | undefined, theme?: string): LocalFontAliases;
|
|
15
|
+
export declare function localTextFontChoices(aliases: LocalFontAliases, base?: readonly string[]): readonly string[];
|
|
16
|
+
/** Font family or resource changes do not change compile semantics. */
|
|
17
|
+
export declare function localFontAvailabilityKey(config: FontRegistry): string;
|
|
18
|
+
export {};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { type ShareableHtmlOptions } from '../shareable.js';
|
|
2
2
|
import type { LocalStyleResource } from '../sdk/theme.js';
|
|
3
3
|
import type { LocalConfig, LocalExtensionRequirements } from '../sdk/types.js';
|
|
4
|
-
import type { Diagnostic, LocalDocument } from '../local/types.js';
|
|
4
|
+
import type { Diagnostic, LocalDocument, LocalValue } from '../local/types.js';
|
|
5
5
|
import { type LocalStandaloneBundleManifest } from './restoration.js';
|
|
6
6
|
export * from './restoration.js';
|
|
7
7
|
export * from './component-state.js';
|
|
8
|
+
export { escapeInlineScript } from '../shareable.js';
|
|
8
9
|
export { readLocalExportResources } from './resources.js';
|
|
9
10
|
export { prepareLocalPrintHtml, waitForLocalPrintImages } from './print-document.js';
|
|
10
11
|
export { validateLocalComponentContracts, validateLocalExtensionRequirements, } from './requirements.js';
|
|
@@ -40,6 +41,8 @@ export declare function createLocalExportPlan(options: LocalExportPlanOptions):
|
|
|
40
41
|
export interface LocalExtensionShareableOptions extends Omit<ShareableHtmlOptions, 'runtimeScript' | 'extensions'> {
|
|
41
42
|
readonly document: LocalDocument;
|
|
42
43
|
readonly config: LocalConfig;
|
|
44
|
+
/** Host data used to validate state for static markup rendered with the same values. */
|
|
45
|
+
readonly externalValues?: Readonly<Record<string, LocalValue>>;
|
|
43
46
|
readonly bundle?: LocalStandaloneBundle;
|
|
44
47
|
readonly resources?: readonly LocalStyleResource[];
|
|
45
48
|
readonly requiredResources?: readonly string[];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { LocalBinding, LocalChoiceConstraint, LocalNode } from '../types.js';
|
|
2
|
+
import type { CompileState } from './compiler-services.js';
|
|
3
|
+
/** Publish the domains and their order alongside the compiled bindings. */
|
|
4
|
+
export declare function collectChoiceConstraints(state: CompileState, bindings: Record<string, LocalBinding>, reject?: (node: LocalNode) => void): LocalChoiceConstraint[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { CompileState } from './compiler-services.js';
|
|
2
2
|
import type { LocalBinding, LocalNode } from '../types.js';
|
|
3
|
+
import type { ReportForNode } from './compiler-embedding.js';
|
|
3
4
|
/**
|
|
4
5
|
* Resolve the independent, exclusive slot bindings of `<range-slider>` and
|
|
5
6
|
* `<coordinate>`. Each slot registers its own binding key, so `setMany` can
|
|
@@ -14,7 +15,7 @@ export declare function slotMap(state: CompileState): Record<string, Record<stri
|
|
|
14
15
|
* bindings are already resolved; the graph walk and type inference live in
|
|
15
16
|
* `computations.ts`.
|
|
16
17
|
*/
|
|
17
|
-
export declare function resolveComputations(state: CompileState): void;
|
|
18
|
+
export declare function resolveComputations(state: CompileState, reportForNode?: ReportForNode): void;
|
|
18
19
|
/** Declaration tags never reach the published tree; they are metadata only. */
|
|
19
20
|
export declare function stripDeclarationNodes(nodes: LocalNode[]): LocalNode[];
|
|
20
21
|
/**
|
|
@@ -16,12 +16,23 @@ interface ScopedExpression {
|
|
|
16
16
|
/** Null when dependencies were missing or inference was not requested. */
|
|
17
17
|
kind: LocalValueKind | null;
|
|
18
18
|
}
|
|
19
|
+
export declare function authoredDatasetRange(source: string, attribute: {
|
|
20
|
+
node: LocalNode;
|
|
21
|
+
name: string;
|
|
22
|
+
segment?: number;
|
|
23
|
+
}, expression: LocalExpression, dependency: string): {
|
|
24
|
+
start: number;
|
|
25
|
+
end: number;
|
|
26
|
+
} | undefined;
|
|
19
27
|
/**
|
|
20
28
|
* Compile one expression against a caller-provided type environment. Used by
|
|
21
29
|
* the row scope of data tables and by validation rules; ordinary attributes
|
|
22
30
|
* keep using the document environment in validateExpressions.
|
|
23
31
|
*/
|
|
24
|
-
export declare function validateScopedExpression(state: CompileState, expression: string, base: number, env: Record<string, LocalValueKind>, infer: boolean
|
|
32
|
+
export declare function validateScopedExpression(state: CompileState, expression: string, base: number, env: Record<string, LocalValueKind>, infer: boolean, attribute: {
|
|
33
|
+
node: LocalNode;
|
|
34
|
+
name: string;
|
|
35
|
+
}): ScopedExpression | null;
|
|
25
36
|
/** Require a whole-value `{{ expression }}` attribute; returns its expression. */
|
|
26
37
|
export declare function fullExpressionAttribute(info: AttrState | undefined, code: string, component: string, attribute: string, state: CompileState): {
|
|
27
38
|
expression: string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type NormalizedComponent } from '../../contracts/component-kernel.js';
|
|
2
|
+
import type { LocalDiagnosticRelatedRange, LocalNode, SourceRange } from '../types.js';
|
|
3
|
+
import type { ReportDiagnostic } from './compiler-structure.js';
|
|
4
|
+
/** Expand once before semantic passes. Private keys and argument plans are ordinary compiler declarations. */
|
|
5
|
+
export interface LocalMacroExpansion {
|
|
6
|
+
nodes: LocalNode[];
|
|
7
|
+
origins: MacroOrigin[];
|
|
8
|
+
mappings: ReadonlyMap<string, MacroOutputOrigin[]>;
|
|
9
|
+
}
|
|
10
|
+
interface MacroOrigin {
|
|
11
|
+
range: SourceRange;
|
|
12
|
+
related: readonly LocalDiagnosticRelatedRange[];
|
|
13
|
+
}
|
|
14
|
+
interface MacroOutputOrigin extends MacroOrigin {
|
|
15
|
+
path: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function expandLocalMacros(nodes: LocalNode[], source: string, schemas: ReadonlyMap<string, NormalizedComponent>, parsedNodes: number, maxNodes: number, report: ReportDiagnostic): LocalMacroExpansion | null;
|
|
18
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { LocalBinding, LocalNode, LocalValue } from '../types.js';
|
|
1
|
+
import type { LocalBinding, LocalDiagnosticRelatedRange, LocalNode, LocalValue } from '../types.js';
|
|
2
2
|
import { type NormalizedComponent } from '../../contracts/component-kernel.js';
|
|
3
3
|
import { type KernelValueRule } from '../configuration/kernel-value-rules.js';
|
|
4
4
|
import { type LocalComponentDefinition, type LocalExtensionRequirements } from '../../sdk/types.js';
|
|
@@ -25,7 +25,7 @@ export interface ChecklistInfo {
|
|
|
25
25
|
ids: string[];
|
|
26
26
|
checked: string[];
|
|
27
27
|
}
|
|
28
|
-
export type ReportDiagnostic = (code: string, message: string | LocalDiagnosticDetails, start: number, end?: number, details?: LocalDiagnosticDetails) => void;
|
|
28
|
+
export type ReportDiagnostic = (code: string, message: string | LocalDiagnosticDetails, start: number, end?: number, details?: LocalDiagnosticDetails, relatedRanges?: readonly LocalDiagnosticRelatedRange[], bindingNodeId?: string) => void;
|
|
29
29
|
/**
|
|
30
30
|
* Minimal state the structure pass reads and writes. `CompileState` extends
|
|
31
31
|
* this view so the compiler and the pass share one state shape.
|
|
@@ -45,6 +45,12 @@ export interface StructureState {
|
|
|
45
45
|
}
|
|
46
46
|
export declare function projectionMap(state: StructureState, kind: 'options' | 'tabs' | 'steps' | 'diagram-nodes'): Map<string, string[]>;
|
|
47
47
|
export declare function validateChildren(entry: Entry, state: StructureState): void;
|
|
48
|
+
/**
|
|
49
|
+
* `<else>` is a sibling branch, not a child of `<if>`: it must directly follow
|
|
50
|
+
* an `<if>` or a conditional `<else>` in the same container. Pairing is validated on the parsed
|
|
51
|
+
* tree, before embedding transforms can replace either side.
|
|
52
|
+
*/
|
|
53
|
+
export declare function validateConditionalBranches(state: CompileState): void;
|
|
48
54
|
export declare function validateChecklist(entry: Entry, state: StructureState, itemLimit?: number): ChecklistInfo;
|
|
49
55
|
export declare function collectLegacyFences(nodes: LocalNode[]): LocalNode[];
|
|
50
56
|
export declare function collectEntries(nodes: LocalNode[], parent: Entry | null, out: Entry[], state: CompileState): void;
|
|
@@ -15,6 +15,7 @@ export interface TableShape {
|
|
|
15
15
|
header: string[];
|
|
16
16
|
rows: LocalNode[][];
|
|
17
17
|
}
|
|
18
|
+
export declare function readDatasetTable(table: LocalNode, entry: Entry, report: ReportDiagnostic): TableShape | null;
|
|
18
19
|
export declare function validateTables(document: TableCompileState, reportForNode?: ReportForNode): void;
|
|
19
20
|
/**
|
|
20
21
|
* Projects the compiler's table shapes onto the document as plain, frozen
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
import type { CompileState } from './compiler-services.js';
|
|
2
2
|
import type { ReportForNode } from './compiler-embedding.js';
|
|
3
3
|
import type { LocalNode, LocalValidation } from '../types.js';
|
|
4
|
+
/**
|
|
5
|
+
* Validate the dynamic `options` expression on select/choices/radio-group/
|
|
6
|
+
* multi-select. Static option children are validated by the structure pass.
|
|
7
|
+
*/
|
|
8
|
+
export declare function validateDynamicOptions(document: CompileState, reject?: (node: LocalNode) => void): void;
|
|
9
|
+
/**
|
|
10
|
+
* A chart with `rows` reads generated column children instead of a Markdown
|
|
11
|
+
* table. Validate the row source and each column expression with the same
|
|
12
|
+
* item/index scope as `data-table`.
|
|
13
|
+
*/
|
|
14
|
+
export declare function validateGeneratedCharts(document: CompileState, reject?: (node: LocalNode) => void): void;
|
|
4
15
|
export declare function validateDataTables(document: CompileState, reject?: (node: LocalNode) => void): void;
|
|
5
16
|
/**
|
|
6
17
|
* Validate `<validation>` rules and build their source-ordered metadata. The
|
|
@@ -3,7 +3,7 @@ import type { AttrMap, Entry } from './compiler-structure.js';
|
|
|
3
3
|
import type { CompileState } from './compiler-services.js';
|
|
4
4
|
import { type KernelBindingSchema, type KernelNumericConstraints } from '../../contracts/component-kernel.js';
|
|
5
5
|
import type { Group, GroupMember } from './compiler-bindings.js';
|
|
6
|
-
export
|
|
6
|
+
export { parseNumberLiteral as parseNumberText } from '../../contracts/number-literal.js';
|
|
7
7
|
export declare function meaningful(nodes: LocalNode[] | undefined): LocalNode[];
|
|
8
8
|
export declare function hasComponent(node: LocalNode): boolean;
|
|
9
9
|
/** Static numeric attribute value, or the manifest prop default. */
|
|
@@ -44,4 +44,3 @@ export declare function numericConstraints(entry: Entry, attrs: AttrMap): Numeri
|
|
|
44
44
|
*/
|
|
45
45
|
export declare function validateStaticInitial(group: Group, initial: LocalValue, state: CompileState, initialOffset?: number): void;
|
|
46
46
|
export declare function validateInitialValue(group: Group, first: GroupMember, value: LocalValue, binding: KernelBindingSchema, options: string[], constraints: NumericConstraints | undefined, state: CompileState): void;
|
|
47
|
-
export {};
|