@ng-prism/core 22.5.0 → 22.7.0-beta.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/README.md +13 -9
- package/dist/app/canvas/canvas-bg.styles.d.ts +1 -1
- package/dist/app/canvas/canvas-bg.styles.d.ts.map +1 -1
- package/dist/app/canvas/canvas-bg.styles.js +1 -1
- package/dist/app/canvas/canvas-overlay-tokens.d.ts +12 -0
- package/dist/app/canvas/canvas-overlay-tokens.d.ts.map +1 -0
- package/dist/app/canvas/canvas-overlay-tokens.js +52 -0
- package/dist/app/canvas/prism-canvas-bg-pill.component.js +2 -2
- package/dist/app/canvas/prism-canvas-pin-row.component.js +2 -2
- package/dist/app/canvas/prism-canvas-rulers.component.d.ts +2 -0
- package/dist/app/canvas/prism-canvas-rulers.component.d.ts.map +1 -1
- package/dist/app/canvas/prism-canvas-rulers.component.js +17 -12
- package/dist/app/canvas/prism-canvas-toolbar.component.d.ts +25 -3
- package/dist/app/canvas/prism-canvas-toolbar.component.d.ts.map +1 -1
- package/dist/app/canvas/prism-canvas-toolbar.component.js +154 -89
- package/dist/app/canvas/prism-template-popover.component.d.ts.map +1 -1
- package/dist/app/canvas/prism-template-popover.component.js +16 -7
- package/dist/app/canvas/state-chips.d.ts +50 -0
- package/dist/app/canvas/state-chips.d.ts.map +1 -0
- package/dist/app/canvas/state-chips.js +40 -0
- package/dist/app/component-head/head-metrics.d.ts +35 -19
- package/dist/app/component-head/head-metrics.d.ts.map +1 -1
- package/dist/app/component-head/head-metrics.js +57 -27
- package/dist/app/component-head/pipe-facts.d.ts +9 -0
- package/dist/app/component-head/pipe-facts.d.ts.map +1 -0
- package/dist/app/component-head/pipe-facts.js +15 -0
- package/dist/app/component-head/prism-component-head.component.d.ts +20 -22
- package/dist/app/component-head/prism-component-head.component.d.ts.map +1 -1
- package/dist/app/component-head/prism-component-head.component.js +85 -96
- package/dist/app/component-head/prism-head-gauge.component.d.ts +8 -12
- package/dist/app/component-head/prism-head-gauge.component.d.ts.map +1 -1
- package/dist/app/component-head/prism-head-gauge.component.js +51 -67
- package/dist/app/component-head/prism-head-info.component.d.ts +14 -2
- package/dist/app/component-head/prism-head-info.component.d.ts.map +1 -1
- package/dist/app/component-head/prism-head-info.component.js +84 -20
- package/dist/app/component-head/prism-stat.component.d.ts +4 -5
- package/dist/app/component-head/prism-stat.component.d.ts.map +1 -1
- package/dist/app/component-head/prism-stat.component.js +16 -12
- package/dist/app/component-head/service-facts.d.ts +8 -0
- package/dist/app/component-head/service-facts.d.ts.map +1 -0
- package/dist/app/component-head/service-facts.js +11 -0
- package/dist/app/controls/boolean-control.component.js +2 -2
- package/dist/app/controls/json-control.component.js +2 -2
- package/dist/app/controls/union-control.component.js +4 -3
- package/dist/app/directives/resize-value.d.ts +1 -1
- package/dist/app/directives/resize-value.js +1 -1
- package/dist/app/discovery-manifest.d.ts +2 -2
- package/dist/app/discovery-manifest.d.ts.map +1 -1
- package/dist/app/discovery-manifest.js +15 -3
- package/dist/app/header/header-brand.d.ts +25 -0
- package/dist/app/header/header-brand.d.ts.map +1 -0
- package/dist/app/header/header-brand.js +10 -0
- package/dist/app/header/prism-header.component.d.ts +2 -2
- package/dist/app/header/prism-header.component.d.ts.map +1 -1
- package/dist/app/header/prism-header.component.js +73 -57
- package/dist/app/icons/icon-registry.d.ts.map +1 -1
- package/dist/app/icons/icon-registry.js +4 -1
- package/dist/app/index.d.ts +12 -0
- package/dist/app/index.d.ts.map +1 -1
- package/dist/app/index.js +12 -1
- package/dist/app/layout-menu/prism-layout-menu.component.d.ts +3 -0
- package/dist/app/layout-menu/prism-layout-menu.component.d.ts.map +1 -1
- package/dist/app/layout-menu/prism-layout-menu.component.js +72 -58
- package/dist/app/overview/open-in-playground.d.ts +19 -0
- package/dist/app/overview/open-in-playground.d.ts.map +1 -0
- package/dist/app/overview/open-in-playground.js +25 -0
- package/dist/app/overview/overview-matrix.d.ts +85 -0
- package/dist/app/overview/overview-matrix.d.ts.map +1 -0
- package/dist/app/overview/overview-matrix.js +98 -0
- package/dist/app/overview/overview-visibility.d.ts +10 -2
- package/dist/app/overview/overview-visibility.d.ts.map +1 -1
- package/dist/app/overview/overview-visibility.js +14 -3
- package/dist/app/overview/prism-overview-cell.component.d.ts +27 -2
- package/dist/app/overview/prism-overview-cell.component.d.ts.map +1 -1
- package/dist/app/overview/prism-overview-cell.component.js +145 -28
- package/dist/app/overview/prism-overview-matrix.component.d.ts +29 -0
- package/dist/app/overview/prism-overview-matrix.component.d.ts.map +1 -0
- package/dist/app/overview/prism-overview-matrix.component.js +155 -0
- package/dist/app/overview/prism-overview.component.d.ts +4 -0
- package/dist/app/overview/prism-overview.component.d.ts.map +1 -1
- package/dist/app/overview/prism-overview.component.js +37 -14
- package/dist/app/page-renderer/prism-page-renderer.component.js +2 -2
- package/dist/app/panels/a11y/a11y-core.plugin.d.ts.map +1 -1
- package/dist/app/panels/a11y/a11y-core.plugin.js +0 -1
- package/dist/app/panels/a11y/a11y-header-badge.component.d.ts +1 -4
- package/dist/app/panels/a11y/a11y-header-badge.component.d.ts.map +1 -1
- package/dist/app/panels/a11y/a11y-header-badge.component.js +8 -19
- package/dist/app/panels/a11y/a11y-keyboard-overlay.component.js +2 -2
- package/dist/app/panels/a11y/a11y-overlay-host.component.d.ts +1 -0
- package/dist/app/panels/a11y/a11y-overlay-host.component.d.ts.map +1 -1
- package/dist/app/panels/a11y/a11y-overlay-host.component.js +4 -3
- package/dist/app/panels/a11y/a11y-panel.component.d.ts +4 -1
- package/dist/app/panels/a11y/a11y-panel.component.d.ts.map +1 -1
- package/dist/app/panels/a11y/a11y-panel.component.js +32 -54
- package/dist/app/panels/a11y/a11y-score.component.d.ts +8 -3
- package/dist/app/panels/a11y/a11y-score.component.d.ts.map +1 -1
- package/dist/app/panels/a11y/a11y-score.component.js +19 -35
- package/dist/app/panels/a11y/a11y-sr-overlay.component.js +2 -2
- package/dist/app/panels/a11y/a11y-sr.component.js +2 -2
- package/dist/app/panels/a11y/a11y-summary.d.ts.map +1 -1
- package/dist/app/panels/a11y/a11y-summary.js +8 -1
- package/dist/app/panels/a11y/a11y-tree.component.js +2 -2
- package/dist/app/panels/a11y/a11y-violations.component.d.ts +23 -2
- package/dist/app/panels/a11y/a11y-violations.component.d.ts.map +1 -1
- package/dist/app/panels/a11y/a11y-violations.component.js +104 -89
- package/dist/app/panels/a11y/severity.d.ts +9 -0
- package/dist/app/panels/a11y/severity.d.ts.map +1 -0
- package/dist/app/panels/a11y/severity.js +12 -0
- package/dist/app/panels/controls/controls-plugin.d.ts.map +1 -1
- package/dist/app/panels/controls/controls-plugin.js +1 -2
- package/dist/app/panels/controls/non-editable-input-types.d.ts +9 -1
- package/dist/app/panels/controls/non-editable-input-types.d.ts.map +1 -1
- package/dist/app/panels/controls/non-editable-input-types.js +18 -0
- package/dist/app/panels/controls/prism-controls-panel.component.d.ts +2 -1
- package/dist/app/panels/controls/prism-controls-panel.component.d.ts.map +1 -1
- package/dist/app/panels/controls/prism-controls-panel.component.js +77 -59
- package/dist/app/panels/events/events-plugin.d.ts.map +1 -1
- package/dist/app/panels/events/events-plugin.js +1 -2
- package/dist/app/panels/events/prism-events-panel.component.d.ts +2 -0
- package/dist/app/panels/events/prism-events-panel.component.d.ts.map +1 -1
- package/dist/app/panels/events/prism-events-panel.component.js +20 -7
- package/dist/app/panels/events/prism-json-node.utils.d.ts +6 -0
- package/dist/app/panels/events/prism-json-node.utils.d.ts.map +1 -1
- package/dist/app/panels/events/prism-json-node.utils.js +8 -0
- package/dist/app/panels/panel-host/addon-panels.d.ts +11 -0
- package/dist/app/panels/panel-host/addon-panels.d.ts.map +1 -0
- package/dist/app/panels/panel-host/addon-panels.js +12 -0
- package/dist/app/panels/panel-host/panel-badge.d.ts +22 -0
- package/dist/app/panels/panel-host/panel-badge.d.ts.map +1 -1
- package/dist/app/panels/panel-host/panel-badge.js +56 -11
- package/dist/app/panels/panel-host/prism-panel-host.component.d.ts +4 -1
- package/dist/app/panels/panel-host/prism-panel-host.component.d.ts.map +1 -1
- package/dist/app/panels/panel-host/prism-panel-host.component.js +36 -70
- package/dist/app/pseudo/pseudo-state-marker.d.ts +32 -10
- package/dist/app/pseudo/pseudo-state-marker.d.ts.map +1 -1
- package/dist/app/pseudo/pseudo-state-marker.js +83 -67
- package/dist/app/pseudo/pseudo-targets.d.ts +11 -0
- package/dist/app/pseudo/pseudo-targets.d.ts.map +1 -0
- package/dist/app/pseudo/pseudo-targets.js +46 -0
- package/dist/app/pseudo/state-fit.d.ts +28 -0
- package/dist/app/pseudo/state-fit.d.ts.map +1 -0
- package/dist/app/pseudo/state-fit.js +97 -0
- package/dist/app/renderer/composition.d.ts +20 -0
- package/dist/app/renderer/composition.d.ts.map +1 -0
- package/dist/app/renderer/composition.js +26 -0
- package/dist/app/renderer/input-bindings.d.ts +28 -0
- package/dist/app/renderer/input-bindings.d.ts.map +1 -0
- package/dist/app/renderer/input-bindings.js +42 -0
- package/dist/app/renderer/known-inputs.d.ts +8 -1
- package/dist/app/renderer/known-inputs.d.ts.map +1 -1
- package/dist/app/renderer/known-inputs.js +13 -5
- package/dist/app/renderer/prism-renderer.component.d.ts +18 -4
- package/dist/app/renderer/prism-renderer.component.d.ts.map +1 -1
- package/dist/app/renderer/prism-renderer.component.js +78 -44
- package/dist/app/renderer/projectable-content.d.ts +8 -1
- package/dist/app/renderer/projectable-content.d.ts.map +1 -1
- package/dist/app/renderer/projectable-content.js +40 -29
- package/dist/app/renderer/rendered-key.d.ts +20 -6
- package/dist/app/renderer/rendered-key.d.ts.map +1 -1
- package/dist/app/renderer/rendered-key.js +25 -8
- package/dist/app/renderer/snippet-generator.d.ts +14 -2
- package/dist/app/renderer/snippet-generator.d.ts.map +1 -1
- package/dist/app/renderer/snippet-generator.js +138 -81
- package/dist/app/services/navigation-item.d.ts +10 -0
- package/dist/app/services/navigation-item.d.ts.map +1 -0
- package/dist/app/services/navigation-item.js +20 -0
- package/dist/app/services/navigation-item.types.d.ts +8 -0
- package/dist/app/services/navigation-item.types.d.ts.map +1 -1
- package/dist/app/services/prism-layout.service.d.ts +12 -0
- package/dist/app/services/prism-layout.service.d.ts.map +1 -1
- package/dist/app/services/prism-layout.service.js +17 -7
- package/dist/app/services/prism-manifest.service.d.ts +4 -0
- package/dist/app/services/prism-manifest.service.d.ts.map +1 -1
- package/dist/app/services/prism-manifest.service.js +4 -0
- package/dist/app/services/prism-navigation.service.d.ts +12 -0
- package/dist/app/services/prism-navigation.service.d.ts.map +1 -1
- package/dist/app/services/prism-navigation.service.js +85 -19
- package/dist/app/services/prism-panel.service.d.ts +7 -3
- package/dist/app/services/prism-panel.service.d.ts.map +1 -1
- package/dist/app/services/prism-panel.service.js +13 -4
- package/dist/app/services/prism-pseudo-state.service.d.ts +59 -14
- package/dist/app/services/prism-pseudo-state.service.d.ts.map +1 -1
- package/dist/app/services/prism-pseudo-state.service.js +86 -29
- package/dist/app/services/prism-renderer.service.d.ts +23 -0
- package/dist/app/services/prism-renderer.service.d.ts.map +1 -1
- package/dist/app/services/prism-renderer.service.js +77 -8
- package/dist/app/services/prism-search.service.d.ts +4 -0
- package/dist/app/services/prism-search.service.d.ts.map +1 -1
- package/dist/app/services/prism-search.service.js +29 -6
- package/dist/app/services/prism-theme.service.d.ts +11 -3
- package/dist/app/services/prism-theme.service.d.ts.map +1 -1
- package/dist/app/services/prism-theme.service.js +27 -19
- package/dist/app/services/prism-url-state.service.d.ts.map +1 -1
- package/dist/app/services/prism-url-state.service.js +81 -12
- package/dist/app/shared/badge.types.d.ts +7 -0
- package/dist/app/shared/badge.types.d.ts.map +1 -0
- package/dist/app/shared/badge.types.js +9 -0
- package/dist/app/shared/brand-mark.d.ts +35 -0
- package/dist/app/shared/brand-mark.d.ts.map +1 -0
- package/dist/app/shared/brand-mark.js +52 -0
- package/dist/app/shared/metric-bar.d.ts +6 -0
- package/dist/app/shared/metric-bar.d.ts.map +1 -0
- package/dist/app/shared/metric-bar.js +7 -0
- package/dist/app/shared/prism-badge.component.d.ts +21 -0
- package/dist/app/shared/prism-badge.component.d.ts.map +1 -0
- package/dist/app/shared/prism-badge.component.js +68 -0
- package/dist/app/shared/prism-button.component.d.ts +12 -0
- package/dist/app/shared/prism-button.component.d.ts.map +1 -0
- package/dist/app/shared/prism-button.component.js +28 -0
- package/dist/app/shared/prism-icon-button.component.d.ts +17 -0
- package/dist/app/shared/prism-icon-button.component.d.ts.map +1 -0
- package/dist/app/shared/prism-icon-button.component.js +37 -0
- package/dist/app/shared/prism-list-row.component.d.ts +17 -0
- package/dist/app/shared/prism-list-row.component.d.ts.map +1 -0
- package/dist/app/shared/prism-list-row.component.js +57 -0
- package/dist/app/shared/prism-logo.component.d.ts +24 -0
- package/dist/app/shared/prism-logo.component.d.ts.map +1 -0
- package/dist/app/shared/prism-logo.component.js +77 -0
- package/dist/app/shared/prism-metric-badge.component.d.ts +9 -4
- package/dist/app/shared/prism-metric-badge.component.d.ts.map +1 -1
- package/dist/app/shared/prism-metric-badge.component.js +33 -12
- package/dist/app/shared/prism-metric-card.component.d.ts +30 -0
- package/dist/app/shared/prism-metric-card.component.d.ts.map +1 -0
- package/dist/app/shared/prism-metric-card.component.js +111 -0
- package/dist/app/shared/prism-panel-toolbar.component.d.ts +13 -0
- package/dist/app/shared/prism-panel-toolbar.component.d.ts.map +1 -0
- package/dist/app/shared/prism-panel-toolbar.component.js +28 -0
- package/dist/app/shared/prism-segmented.component.d.ts +25 -0
- package/dist/app/shared/prism-segmented.component.d.ts.map +1 -0
- package/dist/app/shared/prism-segmented.component.js +77 -0
- package/dist/app/shared/prism-tabs.component.d.ts +44 -0
- package/dist/app/shared/prism-tabs.component.d.ts.map +1 -0
- package/dist/app/shared/prism-tabs.component.js +134 -0
- package/dist/app/shared/roving-focus.d.ts +13 -0
- package/dist/app/shared/roving-focus.d.ts.map +1 -0
- package/dist/app/shared/roving-focus.js +34 -0
- package/dist/app/shell/prism-shell.component.d.ts +13 -0
- package/dist/app/shell/prism-shell.component.d.ts.map +1 -1
- package/dist/app/shell/prism-shell.component.js +57 -28
- package/dist/app/shell/should-select-first.d.ts +17 -0
- package/dist/app/shell/should-select-first.d.ts.map +1 -0
- package/dist/app/shell/should-select-first.js +13 -0
- package/dist/app/sidebar/navigation-decorations.d.ts +23 -1
- package/dist/app/sidebar/navigation-decorations.d.ts.map +1 -1
- package/dist/app/sidebar/navigation-decorations.js +33 -2
- package/dist/app/sidebar/prism-sidebar.component.d.ts +5 -15
- package/dist/app/sidebar/prism-sidebar.component.d.ts.map +1 -1
- package/dist/app/sidebar/prism-sidebar.component.js +89 -77
- package/dist/app/theme/deprecated-tokens.d.ts +15 -0
- package/dist/app/theme/deprecated-tokens.d.ts.map +1 -0
- package/dist/app/theme/deprecated-tokens.js +22 -0
- package/dist/app/theme/favicon.d.ts +3 -0
- package/dist/app/theme/favicon.d.ts.map +1 -0
- package/dist/app/theme/favicon.js +3 -0
- package/dist/app/theme/prism-default-theme.d.ts.map +1 -1
- package/dist/app/theme/prism-default-theme.js +122 -66
- package/dist/app/theme/resolve-theme-tokens.d.ts +29 -0
- package/dist/app/theme/resolve-theme-tokens.d.ts.map +1 -0
- package/dist/app/theme/resolve-theme-tokens.js +43 -0
- package/dist/app/variant-ribbon/prism-variant-ribbon.component.d.ts +4 -7
- package/dist/app/variant-ribbon/prism-variant-ribbon.component.d.ts.map +1 -1
- package/dist/app/variant-ribbon/prism-variant-ribbon.component.js +31 -69
- package/dist/app/view-tab-bar/next-view-id.d.ts +7 -1
- package/dist/app/view-tab-bar/next-view-id.d.ts.map +1 -1
- package/dist/app/view-tab-bar/next-view-id.js +9 -1
- package/dist/app/view-tab-bar/panel-inputs.d.ts +28 -0
- package/dist/app/view-tab-bar/panel-inputs.d.ts.map +1 -0
- package/dist/app/view-tab-bar/panel-inputs.js +41 -0
- package/dist/app/view-tab-bar/prism-view-panel-host.component.d.ts +2 -3
- package/dist/app/view-tab-bar/prism-view-panel-host.component.d.ts.map +1 -1
- package/dist/app/view-tab-bar/prism-view-panel-host.component.js +9 -9
- package/dist/app/view-tab-bar/prism-view-tab-bar.component.d.ts +6 -0
- package/dist/app/view-tab-bar/prism-view-tab-bar.component.d.ts.map +1 -1
- package/dist/app/view-tab-bar/prism-view-tab-bar.component.js +22 -29
- package/dist/builder/config-loader/deprecated-options.d.ts +9 -0
- package/dist/builder/config-loader/deprecated-options.d.ts.map +1 -0
- package/dist/builder/config-loader/deprecated-options.js +34 -0
- package/dist/builder/manifest/composition-wrapper.generator.d.ts +14 -0
- package/dist/builder/manifest/composition-wrapper.generator.d.ts.map +1 -0
- package/dist/builder/manifest/composition-wrapper.generator.js +66 -0
- package/dist/builder/manifest/host-parser.d.ts +2 -0
- package/dist/builder/manifest/host-parser.d.ts.map +1 -1
- package/dist/builder/manifest/host-parser.js +9 -4
- package/dist/builder/manifest/manifest-imports.d.ts +34 -0
- package/dist/builder/manifest/manifest-imports.d.ts.map +1 -0
- package/dist/builder/manifest/manifest-imports.js +91 -0
- package/dist/builder/manifest/runtime-manifest.generator.d.ts +13 -0
- package/dist/builder/manifest/runtime-manifest.generator.d.ts.map +1 -1
- package/dist/builder/manifest/runtime-manifest.generator.js +137 -65
- package/dist/builder/manifest/selector-element.d.ts +16 -0
- package/dist/builder/manifest/selector-element.d.ts.map +1 -0
- package/dist/builder/manifest/selector-element.js +46 -0
- package/dist/builder/manifest/template-literal.d.ts +3 -0
- package/dist/builder/manifest/template-literal.d.ts.map +1 -0
- package/dist/builder/manifest/template-literal.js +4 -0
- package/dist/builder/plugin-runner/plugin-runner.d.ts.map +1 -1
- package/dist/builder/plugin-runner/plugin-runner.js +29 -26
- package/dist/builder/scanner/api/angular-decorators.d.ts +84 -0
- package/dist/builder/scanner/api/angular-decorators.d.ts.map +1 -0
- package/dist/builder/scanner/api/angular-decorators.js +157 -0
- package/dist/builder/scanner/api/component-api.extractor.d.ts +13 -0
- package/dist/builder/scanner/api/component-api.extractor.d.ts.map +1 -0
- package/dist/builder/scanner/api/component-api.extractor.js +104 -0
- package/dist/builder/scanner/api/doc-tags.d.ts +13 -0
- package/dist/builder/scanner/api/doc-tags.d.ts.map +1 -0
- package/dist/builder/scanner/api/doc-tags.js +101 -0
- package/dist/builder/scanner/api/export-index.d.ts +18 -0
- package/dist/builder/scanner/api/export-index.d.ts.map +1 -0
- package/dist/builder/scanner/api/export-index.js +22 -0
- package/dist/builder/scanner/api/member.extractor.d.ts +90 -0
- package/dist/builder/scanner/api/member.extractor.d.ts.map +1 -0
- package/dist/builder/scanner/api/member.extractor.js +270 -0
- package/dist/builder/scanner/api/pipe-api.extractor.d.ts +12 -0
- package/dist/builder/scanner/api/pipe-api.extractor.d.ts.map +1 -0
- package/dist/builder/scanner/api/pipe-api.extractor.js +52 -0
- package/dist/builder/scanner/api/service-api.extractor.d.ts +14 -0
- package/dist/builder/scanner/api/service-api.extractor.d.ts.map +1 -0
- package/dist/builder/scanner/api/service-api.extractor.js +119 -0
- package/dist/builder/scanner/api/setup.reader.d.ts +26 -0
- package/dist/builder/scanner/api/setup.reader.d.ts.map +1 -0
- package/dist/builder/scanner/api/setup.reader.js +89 -0
- package/dist/builder/scanner/api/type-collector.d.ts +24 -0
- package/dist/builder/scanner/api/type-collector.d.ts.map +1 -0
- package/dist/builder/scanner/api/type-collector.js +211 -0
- package/dist/builder/scanner/ast-utils.d.ts +8 -0
- package/dist/builder/scanner/ast-utils.d.ts.map +1 -1
- package/dist/builder/scanner/ast-utils.js +37 -1
- package/dist/builder/scanner/class-hierarchy.d.ts +5 -3
- package/dist/builder/scanner/class-hierarchy.d.ts.map +1 -1
- package/dist/builder/scanner/class-hierarchy.js +12 -6
- package/dist/builder/scanner/component.scanner.d.ts +60 -6
- package/dist/builder/scanner/component.scanner.d.ts.map +1 -1
- package/dist/builder/scanner/component.scanner.js +229 -58
- package/dist/builder/scanner/composition/compose-template.d.ts +36 -0
- package/dist/builder/scanner/composition/compose-template.d.ts.map +1 -0
- package/dist/builder/scanner/composition/compose-template.js +187 -0
- package/dist/builder/scanner/composition/declarables.d.ts +54 -0
- package/dist/builder/scanner/composition/declarables.d.ts.map +1 -0
- package/dist/builder/scanner/composition/declarables.js +182 -0
- package/dist/builder/scanner/composition/match-declarables.d.ts +43 -0
- package/dist/builder/scanner/composition/match-declarables.d.ts.map +1 -0
- package/dist/builder/scanner/composition/match-declarables.js +131 -0
- package/dist/builder/scanner/composition/read-composition.d.ts +77 -0
- package/dist/builder/scanner/composition/read-composition.d.ts.map +1 -0
- package/dist/builder/scanner/composition/read-composition.js +302 -0
- package/dist/builder/scanner/composition/template-elements.d.ts +12 -0
- package/dist/builder/scanner/composition/template-elements.d.ts.map +1 -0
- package/dist/builder/scanner/composition/template-elements.js +41 -0
- package/dist/builder/scanner/entry-point-discovery.d.ts +5 -0
- package/dist/builder/scanner/entry-point-discovery.d.ts.map +1 -1
- package/dist/builder/scanner/entry-point-discovery.js +14 -0
- package/dist/builder/scanner/entry-point.scanner.d.ts +3 -1
- package/dist/builder/scanner/entry-point.scanner.d.ts.map +1 -1
- package/dist/builder/scanner/entry-point.scanner.js +7 -6
- package/dist/builder/scanner/index.d.ts +4 -0
- package/dist/builder/scanner/index.d.ts.map +1 -1
- package/dist/builder/scanner/index.js +2 -0
- package/dist/builder/scanner/input.extractor.d.ts +31 -2
- package/dist/builder/scanner/input.extractor.d.ts.map +1 -1
- package/dist/builder/scanner/input.extractor.js +73 -17
- package/dist/builder/scanner/pipe.scanner.d.ts +29 -0
- package/dist/builder/scanner/pipe.scanner.d.ts.map +1 -0
- package/dist/builder/scanner/pipe.scanner.js +65 -0
- package/dist/builder/scanner/pseudo-states.d.ts +1 -0
- package/dist/builder/scanner/pseudo-states.d.ts.map +1 -1
- package/dist/builder/scanner/pseudo-states.js +1 -1
- package/dist/builder/scanner/scanner.d.ts +27 -3
- package/dist/builder/scanner/scanner.d.ts.map +1 -1
- package/dist/builder/scanner/scanner.js +68 -24
- package/dist/builder/scanner/service/angular-decorators.d.ts +80 -0
- package/dist/builder/scanner/service/angular-decorators.d.ts.map +1 -0
- package/dist/builder/scanner/service/angular-decorators.js +154 -0
- package/dist/builder/scanner/service/doc-tags.d.ts +13 -0
- package/dist/builder/scanner/service/doc-tags.d.ts.map +1 -0
- package/dist/builder/scanner/service/doc-tags.js +97 -0
- package/dist/builder/scanner/service/export-index.d.ts +18 -0
- package/dist/builder/scanner/service/export-index.d.ts.map +1 -0
- package/dist/builder/scanner/service/export-index.js +22 -0
- package/dist/builder/scanner/service/member.extractor.d.ts +65 -0
- package/dist/builder/scanner/service/member.extractor.d.ts.map +1 -0
- package/dist/builder/scanner/service/member.extractor.js +216 -0
- package/dist/builder/scanner/service/pipe-api.extractor.d.ts +12 -0
- package/dist/builder/scanner/service/pipe-api.extractor.d.ts.map +1 -0
- package/dist/builder/scanner/service/pipe-api.extractor.js +72 -0
- package/dist/builder/scanner/service/service-api.extractor.d.ts +14 -0
- package/dist/builder/scanner/service/service-api.extractor.d.ts.map +1 -0
- package/dist/builder/scanner/service/service-api.extractor.js +119 -0
- package/dist/builder/scanner/service/setup.reader.d.ts +26 -0
- package/dist/builder/scanner/service/setup.reader.d.ts.map +1 -0
- package/dist/builder/scanner/service/setup.reader.js +89 -0
- package/dist/builder/scanner/service/type-collector.d.ts +23 -0
- package/dist/builder/scanner/service/type-collector.d.ts.map +1 -0
- package/dist/builder/scanner/service/type-collector.js +210 -0
- package/dist/builder/scanner/service.scanner.d.ts +26 -0
- package/dist/builder/scanner/service.scanner.d.ts.map +1 -0
- package/dist/builder/scanner/service.scanner.js +61 -0
- package/dist/builder/scanner/showcase-diagnostics.d.ts +60 -1
- package/dist/builder/scanner/showcase-diagnostics.d.ts.map +1 -1
- package/dist/builder/scanner/showcase-diagnostics.js +123 -10
- package/dist/builder/scanner/showcase-states.d.ts +17 -0
- package/dist/builder/scanner/showcase-states.d.ts.map +1 -0
- package/dist/builder/scanner/showcase-states.js +58 -0
- package/dist/builder/scanner/source-file-cache.d.ts +26 -0
- package/dist/builder/scanner/source-file-cache.d.ts.map +1 -0
- package/dist/builder/scanner/source-file-cache.js +60 -0
- package/dist/builder/shared/prism-pipeline.d.ts +6 -0
- package/dist/builder/shared/prism-pipeline.d.ts.map +1 -1
- package/dist/builder/shared/prism-pipeline.js +71 -18
- package/dist/decorator/index.d.ts +1 -1
- package/dist/decorator/index.d.ts.map +1 -1
- package/dist/decorator/showcase.types.d.ts +102 -9
- package/dist/decorator/showcase.types.d.ts.map +1 -1
- package/dist/plugin/index.d.ts +6 -1
- package/dist/plugin/index.d.ts.map +1 -1
- package/dist/plugin/index.js +4 -0
- package/dist/plugin/pipe.types.d.ts +36 -0
- package/dist/plugin/pipe.types.d.ts.map +1 -0
- package/dist/plugin/pipe.types.js +1 -0
- package/dist/plugin/plugin.types.d.ts +184 -8
- package/dist/plugin/plugin.types.d.ts.map +1 -1
- package/dist/plugin/service.types.d.ts +124 -0
- package/dist/plugin/service.types.d.ts.map +1 -0
- package/dist/plugin/service.types.js +1 -0
- package/dist/plugin/status.d.ts +27 -0
- package/dist/plugin/status.d.ts.map +1 -0
- package/dist/plugin/status.js +26 -0
- package/dist/shared/composition.d.ts +30 -0
- package/dist/shared/composition.d.ts.map +1 -0
- package/dist/shared/composition.js +29 -0
- package/dist/shared/pseudo-state.type.d.ts +2 -1
- package/dist/shared/pseudo-state.type.d.ts.map +1 -1
- package/dist/shared/void-elements.d.ts +3 -0
- package/dist/shared/void-elements.d.ts.map +1 -0
- package/dist/shared/void-elements.js +2 -0
- package/package.json +1 -1
- package/src/builder/build/schema.json +6 -6
- package/src/builder/serve/schema.json +6 -6
|
@@ -1,20 +1,33 @@
|
|
|
1
1
|
import type { Provider, Type } from '@angular/core';
|
|
2
|
+
import type { ShowcaseImport } from '../decorator/showcase.types.js';
|
|
2
3
|
import type { CanvasBg } from '../shared/canvas-bg.type.js';
|
|
3
4
|
import type { ForcedPseudoStates } from '../shared/pseudo-state.type.js';
|
|
4
5
|
import type { StyleguidePage } from './page.types.js';
|
|
6
|
+
import type { RuntimePipe, ScannedPipe } from './pipe.types.js';
|
|
7
|
+
import type { ApiDocTags, ApiMethod, ApiTypeDoc, ApiTypeRef, PanelTarget, RuntimeService, ScannedService } from './service.types.js';
|
|
5
8
|
export interface NgPrismPlugin {
|
|
6
9
|
/** Unique plugin name, used for debugging and conflict detection */
|
|
7
10
|
name: string;
|
|
8
11
|
onComponentScanned?: (component: ScannedComponent) => ScannedComponent | void | Promise<ScannedComponent | void>;
|
|
12
|
+
onServiceScanned?: (service: ScannedService) => ScannedService | void | Promise<ScannedService | void>;
|
|
13
|
+
onPipeScanned?: (pipe: ScannedPipe) => ScannedPipe | void | Promise<ScannedPipe | void>;
|
|
9
14
|
onPageScanned?: (page: StyleguidePage) => StyleguidePage | void | Promise<StyleguidePage | void>;
|
|
10
15
|
onManifestReady?: (manifest: PrismManifest) => PrismManifest | void | Promise<PrismManifest | void>;
|
|
16
|
+
/**
|
|
17
|
+
* Set when a hook or a panel of the plugin reads {@link ScannedComponent.api}. The scan only reads the API of the
|
|
18
|
+
* components, and the manifest only carries it, when a plugin in the config sets this. Read from the plugin's
|
|
19
|
+
* Node entry, like the build-time hooks.
|
|
20
|
+
*
|
|
21
|
+
* @experimental Experimental until 23.0.0, like {@link ComponentApi}: it may change in a 22.x minor release.
|
|
22
|
+
*/
|
|
23
|
+
componentApi?: boolean;
|
|
11
24
|
panels?: PanelDefinition[];
|
|
12
25
|
controls?: ControlDefinition[];
|
|
13
26
|
/** Header widgets rendered in the Prism shell header bar */
|
|
14
27
|
headerWidgets?: HeaderWidgetDefinition[];
|
|
15
28
|
/** Markers contributed to each component's navigation item. */
|
|
16
29
|
navigationDecorations?: NavigationDecorationDefinition[];
|
|
17
|
-
/**
|
|
30
|
+
/** @deprecated Deprecated since 22.6.0, removed in 23.0.0. It has never had an effect: nothing reads it. */
|
|
18
31
|
wrapComponent?: Type<unknown>;
|
|
19
32
|
}
|
|
20
33
|
export interface HeaderWidgetDefinition {
|
|
@@ -32,13 +45,26 @@ export interface HeaderWidgetDefinition {
|
|
|
32
45
|
/** Sort order within the same placement (lower = earlier). Default: 0. */
|
|
33
46
|
order?: number;
|
|
34
47
|
}
|
|
35
|
-
/**
|
|
48
|
+
/**
|
|
49
|
+
* A short marker on a panel's tab.
|
|
50
|
+
*
|
|
51
|
+
* Two kinds, and a filled badge means exactly one thing: `issues` is a number of
|
|
52
|
+
* open findings, drawn as a pill in its tone and hidden at zero; `count` is a
|
|
53
|
+
* plain quantity, drawn as a muted figure without a fill.
|
|
54
|
+
*/
|
|
36
55
|
export interface PanelBadge {
|
|
56
|
+
/** Defaults from `variant` for badges written before 22.7: a judgement is `issues`, anything else `count`. Since 22.7.0. */
|
|
57
|
+
kind?: 'count' | 'issues';
|
|
37
58
|
/** Kept to a couple of characters because the tab bar scrolls horizontally. */
|
|
38
59
|
text: string;
|
|
60
|
+
/** Tone of an `issues` badge. Default `'danger'`. Since 22.7.0. */
|
|
61
|
+
tone?: 'primary' | 'warn' | 'danger';
|
|
62
|
+
/** Read after the tab's label by assistive technology, e.g. `'1 violation'`. Defaults to `text`. Since 22.7.0. */
|
|
63
|
+
label?: string;
|
|
39
64
|
/**
|
|
40
|
-
*
|
|
41
|
-
*
|
|
65
|
+
* @deprecated Deprecated since 22.7.0, removed in 23.0.0. Use `kind` and `tone`:
|
|
66
|
+
* `warn`/`danger` map to `kind: 'issues'` with that tone, `default` to `kind: 'count'`,
|
|
67
|
+
* and `ok` is not rendered.
|
|
42
68
|
*/
|
|
43
69
|
variant?: 'default' | 'ok' | 'warn' | 'danger';
|
|
44
70
|
}
|
|
@@ -83,9 +109,22 @@ export interface PanelDefinition {
|
|
|
83
109
|
overlayComponent?: Type<unknown>;
|
|
84
110
|
loadOverlayComponent?: () => Promise<Type<unknown>>;
|
|
85
111
|
icon?: string;
|
|
112
|
+
/** @deprecated Deprecated since 22.6.0, removed in 23.0.0. It has never had an effect: nothing reads it. Where a panel appears is `placement`. */
|
|
86
113
|
position?: 'bottom' | 'right';
|
|
87
|
-
/** Where this panel appears: 'addon' (
|
|
114
|
+
/** Where this panel appears: 'addon' (the tab bar below the canvas) or 'view' (top view toolbar). Default: 'addon' */
|
|
88
115
|
placement?: 'addon' | 'view';
|
|
116
|
+
/**
|
|
117
|
+
* Where this panel appears. Default: `['component']`. A panel with `'component'`
|
|
118
|
+
* gets the input `activeComponent`, one with `'service'` gets the input
|
|
119
|
+
* `activeService` (`RuntimeService | null`), one with `'pipe'` gets the input
|
|
120
|
+
* `activePipe` (`RuntimePipe | null`). `isVisible` and `badge` are only
|
|
121
|
+
* called for components.
|
|
122
|
+
*
|
|
123
|
+
* `'service'` and `'pipe'` only count on a view panel (`placement: 'view'`): a
|
|
124
|
+
* service or pipe page has no addon area, so an addon panel shows on component
|
|
125
|
+
* pages alone, and only when it applies to `'component'`. Since 22.7.0.
|
|
126
|
+
*/
|
|
127
|
+
appliesTo?: readonly PanelTarget[];
|
|
89
128
|
/** Providers injected into a child EnvironmentInjector scoped to this panel */
|
|
90
129
|
providers?: Provider[];
|
|
91
130
|
/** When provided, the panel tab is only shown if this returns true for the active component */
|
|
@@ -118,6 +157,8 @@ export interface ControlDefinition {
|
|
|
118
157
|
}
|
|
119
158
|
export interface PrismManifest {
|
|
120
159
|
components: ScannedComponent[];
|
|
160
|
+
services?: ScannedService[];
|
|
161
|
+
pipes?: ScannedPipe[];
|
|
121
162
|
pages?: StyleguidePage[];
|
|
122
163
|
/** Library-wide plugin metadata (e.g. aggregate coverage totals). */
|
|
123
164
|
meta?: Record<string, unknown>;
|
|
@@ -144,24 +185,121 @@ export interface ScannedComponent {
|
|
|
144
185
|
className: string;
|
|
145
186
|
filePath: string;
|
|
146
187
|
}[];
|
|
188
|
+
/**
|
|
189
|
+
* What the API page needs beyond `inputs` and `outputs`. Read only when a
|
|
190
|
+
* plugin in the config sets {@link NgPrismPlugin.componentApi}. Absent
|
|
191
|
+
* without one, when the scan cannot read it, when a plugin hook builds the
|
|
192
|
+
* component, or in the manifest of an older core.
|
|
193
|
+
*
|
|
194
|
+
* @experimental Experimental until 23.0.0: the shape may change in a 22.x minor release.
|
|
195
|
+
*/
|
|
196
|
+
api?: ComponentApi;
|
|
197
|
+
/**
|
|
198
|
+
* The compositions of the showcase: what its variants render, written as Angular templates. Absent when no variant
|
|
199
|
+
* declares a `template` or a host template, and when a plugin hook builds the component. Since 22.7.0.
|
|
200
|
+
*/
|
|
201
|
+
composition?: ComponentComposition;
|
|
147
202
|
/** Arbitrary plugin metadata */
|
|
148
203
|
meta?: Record<string, unknown>;
|
|
149
204
|
}
|
|
205
|
+
/**
|
|
206
|
+
* One distinct composition of a showcase, the markup of one or more variants as the generated wrapper renders it in a
|
|
207
|
+
* `@case`. Since 22.7.0.
|
|
208
|
+
*
|
|
209
|
+
* @experimental Experimental until 23.0.0: the shape may change in a 22.x minor release.
|
|
210
|
+
*/
|
|
211
|
+
export interface CompositionCase {
|
|
212
|
+
/**
|
|
213
|
+
* The markup as written, the subject element included, with `COMPOSITION_SUBJECT_SLOT` at the end of the start tag
|
|
214
|
+
* of the subject.
|
|
215
|
+
*/
|
|
216
|
+
template: string;
|
|
217
|
+
/**
|
|
218
|
+
* The inputs of the subject that the wrapper does not bind in this case: `'template'` when the template sets the
|
|
219
|
+
* input itself, `'default'` when its default could not be read and the variant does not set it. Controls show
|
|
220
|
+
* them as not editable. `name` is the member name.
|
|
221
|
+
*/
|
|
222
|
+
unbound: {
|
|
223
|
+
name: string;
|
|
224
|
+
reason: 'template' | 'default';
|
|
225
|
+
}[];
|
|
226
|
+
/**
|
|
227
|
+
* Where the case comes from, as `file:line` and the variants: for the comments and errors of the generated code.
|
|
228
|
+
* Set by the scan at build time, absent in the runtime manifest.
|
|
229
|
+
*/
|
|
230
|
+
origin?: string;
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* The compositions of a showcase: the distinct ones, and which one each variant uses. Since 22.7.0.
|
|
234
|
+
*
|
|
235
|
+
* @experimental Experimental until 23.0.0: the shape may change in a 22.x minor release.
|
|
236
|
+
*/
|
|
237
|
+
export interface ComponentComposition {
|
|
238
|
+
/**
|
|
239
|
+
* One entry per variant, or one for a showcase without variants, which renders as one implicit variant. Each is
|
|
240
|
+
* the index into `cases`, or `-1` for a variant without a composition, which renders as it did before.
|
|
241
|
+
*/
|
|
242
|
+
variantCases: number[];
|
|
243
|
+
cases: CompositionCase[];
|
|
244
|
+
/**
|
|
245
|
+
* Every class the generated wrapper imports besides the subject: the library classes the templates use, matched
|
|
246
|
+
* by selector, the showcase's `imports`, and the class of a directive's object host. Set by the scan, and in the
|
|
247
|
+
* runtime manifest as well, so that a usage example in the browser can name them.
|
|
248
|
+
*/
|
|
249
|
+
imports?: ShowcaseImport[];
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* What the API page of a component or directive needs beyond `inputs` and `outputs`.
|
|
253
|
+
*
|
|
254
|
+
* @experimental Experimental until 23.0.0: the shape may change in a 22.x minor release.
|
|
255
|
+
*/
|
|
256
|
+
export interface ComponentApi {
|
|
257
|
+
/** The class's own description (Markdown, `{@link}` kept), as for services and pipes. */
|
|
258
|
+
description?: string;
|
|
259
|
+
tags: ApiDocTags;
|
|
260
|
+
/** The type of each input by member name, as written, with links. */
|
|
261
|
+
inputTypes: Record<string, ApiTypeRef>;
|
|
262
|
+
/** The payload type of each `output()` by member name. */
|
|
263
|
+
outputTypes: Record<string, ApiTypeRef>;
|
|
264
|
+
/** One entry per `model()` input: the change output Angular adds for it. `input` is the member name. */
|
|
265
|
+
modelChanges: {
|
|
266
|
+
input: string;
|
|
267
|
+
event: string;
|
|
268
|
+
type: ApiTypeRef;
|
|
269
|
+
}[];
|
|
270
|
+
/** Public methods with JSDoc of their own or inherited, signatures from the code. */
|
|
271
|
+
methods: ApiMethod[];
|
|
272
|
+
types: ApiTypeDoc[];
|
|
273
|
+
}
|
|
150
274
|
export interface InputMeta {
|
|
275
|
+
/** The class member. Variants and controls use this name. */
|
|
151
276
|
name: string;
|
|
277
|
+
/** The public name Angular binds the input by, when an `alias` makes it differ from `name`. */
|
|
278
|
+
alias?: string;
|
|
152
279
|
type: 'string' | 'number' | 'boolean' | 'union' | 'array' | 'object' | 'unknown';
|
|
153
280
|
rawType?: string;
|
|
154
281
|
values?: string[];
|
|
155
282
|
defaultValue?: unknown;
|
|
283
|
+
/**
|
|
284
|
+
* The input starts out with a value the scan could not evaluate, such as the result of a function call: it has a
|
|
285
|
+
* default, but `defaultValue` cannot say which. Not set for `input<string>()`, which starts out `undefined`.
|
|
286
|
+
* Since 22.7.0.
|
|
287
|
+
*/
|
|
288
|
+
defaultUnreadable?: true;
|
|
156
289
|
required: boolean;
|
|
157
290
|
doc?: string;
|
|
158
291
|
}
|
|
159
292
|
export interface OutputMeta {
|
|
293
|
+
/** The class member. */
|
|
160
294
|
name: string;
|
|
295
|
+
/** The public event name, when an `alias` makes it differ from `name`. */
|
|
296
|
+
alias?: string;
|
|
161
297
|
doc?: string;
|
|
162
298
|
}
|
|
163
299
|
export interface RuntimeManifest {
|
|
164
300
|
components: RuntimeComponent[];
|
|
301
|
+
services?: RuntimeService[];
|
|
302
|
+
pipes?: RuntimePipe[];
|
|
165
303
|
pages?: StyleguidePage[];
|
|
166
304
|
/** Library-wide plugin metadata, mirrored from the build-time PrismManifest. */
|
|
167
305
|
meta?: Record<string, unknown>;
|
|
@@ -169,14 +307,21 @@ export interface RuntimeManifest {
|
|
|
169
307
|
export interface RuntimeComponent {
|
|
170
308
|
meta: ScannedComponent;
|
|
171
309
|
type: Type<unknown>;
|
|
310
|
+
/**
|
|
311
|
+
* The generated wrapper that renders the compositions of the showcase, for a component with
|
|
312
|
+
* {@link ScannedComponent.composition}. It is set to the index of the variant through its `__prismVariant__` input.
|
|
313
|
+
* When every variant is composed, `type` is this wrapper too. Since 22.7.0.
|
|
314
|
+
*/
|
|
315
|
+
composition?: Type<unknown>;
|
|
172
316
|
}
|
|
173
317
|
/**
|
|
174
318
|
* The shape external tooling reads from `globalThis.__PRISM_MANIFEST__`.
|
|
175
319
|
*
|
|
176
320
|
* A thin, JSON-safe projection of the runtime manifest: enough to enumerate and
|
|
177
|
-
* address every variant, plus the `@Showcase` metadata
|
|
178
|
-
* to treat one. It carries no Angular class
|
|
179
|
-
* cannot survive a structured clone are
|
|
321
|
+
* address every variant and component-level state, plus the `@Showcase` metadata
|
|
322
|
+
* a tool needs to decide how to treat one. It carries no Angular class
|
|
323
|
+
* references, and `meta` values that cannot survive a structured clone are
|
|
324
|
+
* dropped rather than half-serialised.
|
|
180
325
|
*/
|
|
181
326
|
export interface DiscoveryManifest {
|
|
182
327
|
components: DiscoveryComponent[];
|
|
@@ -187,6 +332,16 @@ export interface DiscoveryComponent {
|
|
|
187
332
|
/** `ShowcaseConfig.title`, i.e. the display name, not the class name. */
|
|
188
333
|
title: string;
|
|
189
334
|
variants: DiscoveryVariant[];
|
|
335
|
+
/**
|
|
336
|
+
* `ShowcaseConfig.states`: the component-level states, one entry per declared
|
|
337
|
+
* slot. Omitted when the component declares none. A component without
|
|
338
|
+
* `variants` lists them next to its single `Default` variant.
|
|
339
|
+
*
|
|
340
|
+
* Whether a state fits a variant is not part of the manifest, because that is
|
|
341
|
+
* only known once the variant renders; the render marker reports it
|
|
342
|
+
* (`data-prism-excluded`).
|
|
343
|
+
*/
|
|
344
|
+
states?: DiscoveryState[];
|
|
190
345
|
/** Sanitised `ShowcaseConfig.meta`. Omitted when empty. */
|
|
191
346
|
meta?: Record<string, unknown>;
|
|
192
347
|
}
|
|
@@ -211,6 +366,23 @@ export interface DiscoveryVariant {
|
|
|
211
366
|
* without any action on the runner's side.
|
|
212
367
|
*/
|
|
213
368
|
pseudo?: ForcedPseudoStates;
|
|
369
|
+
/**
|
|
370
|
+
* `false` when the variant opts out of the component's `states` (`Variant.states`).
|
|
371
|
+
* Omitted otherwise. Nothing is forced for a state on such a variant, and the
|
|
372
|
+
* render marker still reports its cell as excluded.
|
|
373
|
+
*/
|
|
374
|
+
states?: false;
|
|
375
|
+
}
|
|
376
|
+
export interface DiscoveryState {
|
|
377
|
+
name: string;
|
|
378
|
+
/** 0-based index into the `states` array (the `?state=` URL value). */
|
|
379
|
+
index: number;
|
|
380
|
+
/**
|
|
381
|
+
* The pseudo states the state forces, exactly as declared. An empty object
|
|
382
|
+
* for a slot that forces nothing, for example one the scanner could not
|
|
383
|
+
* evaluate: the slot stays listed so the indices behind it keep their value.
|
|
384
|
+
*/
|
|
385
|
+
pseudo: ForcedPseudoStates;
|
|
214
386
|
}
|
|
215
387
|
export interface DiscoveryPage {
|
|
216
388
|
title: string;
|
|
@@ -229,7 +401,9 @@ export interface NgPrismConfig {
|
|
|
229
401
|
};
|
|
230
402
|
title?: string;
|
|
231
403
|
subtitle?: string;
|
|
404
|
+
/** @deprecated Deprecated since 22.6.0, removed in 23.0.0. It has never had an effect: nothing reads it. */
|
|
232
405
|
themeStylesheet?: string;
|
|
406
|
+
/** @deprecated Deprecated since 22.6.0, removed in 23.0.0. It has never had an effect: nothing reads it. */
|
|
233
407
|
ui?: {
|
|
234
408
|
header?: Type<unknown>;
|
|
235
409
|
sidebar?: Type<unknown>;
|
|
@@ -239,7 +413,9 @@ export interface NgPrismConfig {
|
|
|
239
413
|
eventsPanel?: Type<unknown>;
|
|
240
414
|
footer?: Type<unknown>;
|
|
241
415
|
};
|
|
416
|
+
/** @deprecated Deprecated since 22.6.0, removed in 23.0.0. It has never had an effect: nothing reads it. */
|
|
242
417
|
headless?: boolean;
|
|
418
|
+
/** @deprecated Deprecated since 22.6.0, removed in 23.0.0. It has never had an effect: nothing reads it. */
|
|
243
419
|
appComponent?: Type<unknown>;
|
|
244
420
|
/** When false, disables URL state sync (default: true). */
|
|
245
421
|
urlState?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.types.d.ts","sourceRoot":"","sources":["../../src/plugin/plugin.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,K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OAAO,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACxB,eAAe,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAChC,QAAQ,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACzB,aAAa,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9B,WAAW,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5B,MAAM,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;KAC1B,CAAC;IACF,4GAA4G;IAC5G,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,4GAA4G;IAC5G,YAAY,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IAC7B,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,6EAA6E;IAC7E,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE;QACR,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,2EAA2E;IAC3E,IAAI,CAAC,EAAE,OAAO,kCAAkC,EAAE,iBAAiB,CAAC;IACpE;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC5B"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import type { ShowcaseConfig } from '../decorator/showcase.types.js';
|
|
2
|
+
/** How a service reaches the injector: on its own, or through a providers array. */
|
|
3
|
+
export type ServiceProvision = 'auto' | 'manual';
|
|
4
|
+
/** Where a panel appears: on component pages, on service pages, on pipe pages, or on several. */
|
|
5
|
+
export type PanelTarget = 'component' | 'service' | 'pipe';
|
|
6
|
+
/** @experimental Experimental until 23.0.0: the shape may change in a 22.x minor release. */
|
|
7
|
+
export interface ApiDocTags {
|
|
8
|
+
deprecated?: string | true;
|
|
9
|
+
since?: string;
|
|
10
|
+
/** From `@version`. */
|
|
11
|
+
version?: string;
|
|
12
|
+
see?: string[];
|
|
13
|
+
example?: string[];
|
|
14
|
+
/** From `@default`. Prose such as "Default `x`." is not read. */
|
|
15
|
+
default?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* A type as written, plus the ids of documented types it mentions.
|
|
19
|
+
*
|
|
20
|
+
* @experimental Experimental until 23.0.0: the shape may change in a 22.x minor release.
|
|
21
|
+
*/
|
|
22
|
+
export interface ApiTypeRef {
|
|
23
|
+
/** Display text, e.g. `ToastOptions`, `Signal<boolean>`, `number | null`. */
|
|
24
|
+
text: string;
|
|
25
|
+
/** Ids of the entries in the page's `types` (service, pipe or component) whose names occur in `text`. Omitted when none. */
|
|
26
|
+
links?: string[];
|
|
27
|
+
}
|
|
28
|
+
/** @experimental Experimental until 23.0.0: the shape may change in a 22.x minor release. */
|
|
29
|
+
export interface ApiParam {
|
|
30
|
+
name: string;
|
|
31
|
+
type: ApiTypeRef;
|
|
32
|
+
optional: boolean;
|
|
33
|
+
rest?: true;
|
|
34
|
+
/** The initializer as written, e.g. `{}`. */
|
|
35
|
+
defaultValue?: string;
|
|
36
|
+
/** From `@param`. */
|
|
37
|
+
description?: string;
|
|
38
|
+
}
|
|
39
|
+
/** @experimental Experimental until 23.0.0: the shape may change in a 22.x minor release. */
|
|
40
|
+
export interface ApiMethod {
|
|
41
|
+
name: string;
|
|
42
|
+
params: ApiParam[];
|
|
43
|
+
returnType: ApiTypeRef;
|
|
44
|
+
description?: string;
|
|
45
|
+
tags: ApiDocTags;
|
|
46
|
+
}
|
|
47
|
+
/** @experimental Experimental until 23.0.0: the shape may change in a 22.x minor release. */
|
|
48
|
+
export interface ApiProperty {
|
|
49
|
+
name: string;
|
|
50
|
+
type: ApiTypeRef;
|
|
51
|
+
readonly: boolean;
|
|
52
|
+
/** `?` on an interface member. */
|
|
53
|
+
optional?: true;
|
|
54
|
+
description?: string;
|
|
55
|
+
tags: ApiDocTags;
|
|
56
|
+
}
|
|
57
|
+
/** @experimental Experimental until 23.0.0: the shape may change in a 22.x minor release. */
|
|
58
|
+
export interface ApiTypeDoc {
|
|
59
|
+
/** Unique within one page's `types` (service, pipe or component): the name, or `${name}@${importPath}` when two reachable types share a name. */
|
|
60
|
+
id: string;
|
|
61
|
+
name: string;
|
|
62
|
+
kind: 'interface' | 'class' | 'type' | 'enum';
|
|
63
|
+
importPath: string;
|
|
64
|
+
description?: string;
|
|
65
|
+
tags: ApiDocTags;
|
|
66
|
+
/** Interfaces, classes and object-literal type aliases. */
|
|
67
|
+
properties?: ApiProperty[];
|
|
68
|
+
/** Interfaces and classes. */
|
|
69
|
+
methods?: ApiMethod[];
|
|
70
|
+
/** A type alias of a literal union: each member as written, e.g. `'top-left'`. */
|
|
71
|
+
union?: string[];
|
|
72
|
+
/** Any other type alias: the aliased type as written. */
|
|
73
|
+
text?: string;
|
|
74
|
+
/** Enums. */
|
|
75
|
+
members?: {
|
|
76
|
+
name: string;
|
|
77
|
+
value?: string;
|
|
78
|
+
description?: string;
|
|
79
|
+
}[];
|
|
80
|
+
/** Where the type was first reached, e.g. `parameter of show()`, `via options.action`. */
|
|
81
|
+
reachedFrom?: string;
|
|
82
|
+
}
|
|
83
|
+
/** @experimental Experimental until 23.0.0: the shape may change in a 22.x minor release. */
|
|
84
|
+
export interface ApiSetupEntry {
|
|
85
|
+
name: string;
|
|
86
|
+
kind: 'function' | 'token';
|
|
87
|
+
importPath: string;
|
|
88
|
+
description?: string;
|
|
89
|
+
tags: ApiDocTags;
|
|
90
|
+
/** Functions only. */
|
|
91
|
+
params?: ApiParam[];
|
|
92
|
+
returnType?: ApiTypeRef;
|
|
93
|
+
/** Tokens only: `InjectionToken<T>` as written. */
|
|
94
|
+
tokenType?: ApiTypeRef;
|
|
95
|
+
/** The properties of the first parameter's object type (function) or of `T` (token). */
|
|
96
|
+
config?: ApiProperty[];
|
|
97
|
+
}
|
|
98
|
+
/** @experimental Experimental until 23.0.0: the shape may change in a 22.x minor release. */
|
|
99
|
+
export interface ServiceApi {
|
|
100
|
+
description?: string;
|
|
101
|
+
tags: ApiDocTags;
|
|
102
|
+
properties: ApiProperty[];
|
|
103
|
+
methods: ApiMethod[];
|
|
104
|
+
setup: ApiSetupEntry[];
|
|
105
|
+
types: ApiTypeDoc[];
|
|
106
|
+
}
|
|
107
|
+
export interface ScannedService {
|
|
108
|
+
className: string;
|
|
109
|
+
filePath: string;
|
|
110
|
+
/** Import path of the entry point that exports the service. */
|
|
111
|
+
importPath?: string;
|
|
112
|
+
/** Only the fields that apply to services: title, description, category, categoryOrder, componentOrder, section, sectionOrder, tags, meta, status. */
|
|
113
|
+
showcaseConfig: ShowcaseConfig;
|
|
114
|
+
provision: ServiceProvision;
|
|
115
|
+
/** @experimental Experimental until 23.0.0: the shape may change in a 22.x minor release. */
|
|
116
|
+
api: ServiceApi;
|
|
117
|
+
/** Arbitrary plugin metadata */
|
|
118
|
+
meta?: Record<string, unknown>;
|
|
119
|
+
}
|
|
120
|
+
/** A service in the runtime manifest. Carries data only: the class is never imported into the styleguide. */
|
|
121
|
+
export interface RuntimeService {
|
|
122
|
+
meta: ScannedService;
|
|
123
|
+
}
|
|
124
|
+
//# sourceMappingURL=service.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.types.d.ts","sourceRoot":"","sources":["../../src/plugin/service.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAErE,oFAAoF;AACpF,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEjD,iGAAiG;AACjG,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG,SAAS,GAAG,MAAM,CAAC;AAE3D,6FAA6F;AAC7F,MAAM,WAAW,UAAU;IACvB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uBAAuB;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAA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AM,CAAC;IACjB,+DAA+D;IAC/D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,sJAAsJ;IACtJ,cAAc,EAAE,cAAc,CAAC;IAC/B,SAAS,EAAE,gBAAgB,CAAC;IAC5B,6FAA6F;IAC7F,GAAG,EAAE,UAAU,CAAC;IAChB,gCAAgC;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AAED,6GAA6G;AAC7G,MAAM,WAAW,cAAc;IAC3B,IAAI,EAAE,cAAc,CAAC;CACxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One grading rule for every key figure the styleguide shows.
|
|
3
|
+
*
|
|
4
|
+
* Framework-free on purpose: plugins grade at build time in Node
|
|
5
|
+
* (`onComponentScanned` writes the sidebar's verdict into the meta) and the app
|
|
6
|
+
* grades live values in the browser, and the two must never disagree about
|
|
7
|
+
* the same number. Thresholds come from whoever owns the figure: the a11y
|
|
8
|
+
* config, the coverage plugin, the visual regression plugin.
|
|
9
|
+
*/
|
|
10
|
+
export type StatusTone = 'ok' | 'warn' | 'danger';
|
|
11
|
+
/** How far below a single target a value may fall before it is critical. */
|
|
12
|
+
export declare const STATUS_DANGER_RATIO = 0.75;
|
|
13
|
+
/**
|
|
14
|
+
* `higher` (default): ok from `ok` up, warn from `warn` up, below that danger.
|
|
15
|
+
* `lower`: ok up to `ok`, warn up to `warn`, above that danger.
|
|
16
|
+
*/
|
|
17
|
+
export interface StatusThreshold {
|
|
18
|
+
ok: number;
|
|
19
|
+
warn: number;
|
|
20
|
+
direction?: 'higher' | 'lower';
|
|
21
|
+
}
|
|
22
|
+
export declare function statusFor(value: number, threshold: StatusThreshold): StatusTone;
|
|
23
|
+
/** A threshold from a single target: ok at the target, warn down to {@link STATUS_DANGER_RATIO} of it. */
|
|
24
|
+
export declare function thresholdFromTarget(target: number): StatusThreshold;
|
|
25
|
+
/** The most severe of several verdicts; `ok` when there are none. */
|
|
26
|
+
export declare function worstTone(tones: Iterable<StatusTone>): StatusTone;
|
|
27
|
+
//# sourceMappingURL=status.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../src/plugin/status.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,MAAM,UAAU,GAAG,IAAI,GAAG,MAAM,GAAG,QAAQ,CAAC;AAElD,4EAA4E;AAC5E,eAAO,MAAM,mBAAmB,OAAO,CAAC;AAExC;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;CAClC;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,GAAG,UAAU,CAO/E;AAED,0GAA0G;AAC1G,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,eAAe,CAEnE;AAID,qEAAqE;AACrE,wBAAgB,SAAS,CAAC,KAAK,EAAE,QAAQ,CAAC,UAAU,CAAC,GAAG,UAAU,CAOjE"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/** How far below a single target a value may fall before it is critical. */
|
|
2
|
+
export const STATUS_DANGER_RATIO = 0.75;
|
|
3
|
+
export function statusFor(value, threshold) {
|
|
4
|
+
if (threshold.direction === 'lower') {
|
|
5
|
+
if (value <= threshold.ok)
|
|
6
|
+
return 'ok';
|
|
7
|
+
return value <= threshold.warn ? 'warn' : 'danger';
|
|
8
|
+
}
|
|
9
|
+
if (value >= threshold.ok)
|
|
10
|
+
return 'ok';
|
|
11
|
+
return value >= threshold.warn ? 'warn' : 'danger';
|
|
12
|
+
}
|
|
13
|
+
/** A threshold from a single target: ok at the target, warn down to {@link STATUS_DANGER_RATIO} of it. */
|
|
14
|
+
export function thresholdFromTarget(target) {
|
|
15
|
+
return { ok: target, warn: target * STATUS_DANGER_RATIO };
|
|
16
|
+
}
|
|
17
|
+
const SEVERITY = { ok: 0, warn: 1, danger: 2 };
|
|
18
|
+
/** The most severe of several verdicts; `ok` when there are none. */
|
|
19
|
+
export function worstTone(tones) {
|
|
20
|
+
let worst = 'ok';
|
|
21
|
+
for (const tone of tones) {
|
|
22
|
+
if (SEVERITY[tone] > SEVERITY[worst])
|
|
23
|
+
worst = tone;
|
|
24
|
+
}
|
|
25
|
+
return worst;
|
|
26
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where the subject element of a composition takes the attributes and bindings ng-prism gives it: the end of its start
|
|
3
|
+
* tag, in `CompositionCase.template`. Snippets replace it with the current values, the generated wrapper with the
|
|
4
|
+
* bindings. A private-use character, so that it cannot occur in the markup an author wrote. Since 22.7.0.
|
|
5
|
+
*
|
|
6
|
+
* @experimental Experimental until 23.0.0: it may change in a 22.x minor release.
|
|
7
|
+
*/
|
|
8
|
+
export declare const COMPOSITION_SUBJECT_SLOT = "\uE000";
|
|
9
|
+
/**
|
|
10
|
+
* Attribute the generated wrapper puts on the subject element, which is how the styleguide finds it in the rendered
|
|
11
|
+
* composition. Since 22.7.0.
|
|
12
|
+
*
|
|
13
|
+
* @experimental Experimental until 23.0.0: it may change in a 22.x minor release.
|
|
14
|
+
*/
|
|
15
|
+
export declare const COMPOSITION_SUBJECT_ATTR = "data-prism-subject";
|
|
16
|
+
/**
|
|
17
|
+
* Attribute an author puts on the one of several elements matching the subject's selector that is the subject. It is
|
|
18
|
+
* removed from the generated template and from snippets. Since 22.7.0.
|
|
19
|
+
*
|
|
20
|
+
* @experimental Experimental until 23.0.0: it may change in a 22.x minor release.
|
|
21
|
+
*/
|
|
22
|
+
export declare const SUBJECT_MARKER_ATTR = "prism-subject";
|
|
23
|
+
/**
|
|
24
|
+
* The input a composition wrapper declares to switch between its cases: the index of the variant, which the wrapper
|
|
25
|
+
* maps onto a case. Since 22.7.0.
|
|
26
|
+
*
|
|
27
|
+
* @experimental Experimental until 23.0.0: it may change in a 22.x minor release.
|
|
28
|
+
*/
|
|
29
|
+
export declare const PRISM_VARIANT_INPUT = "__prismVariant__";
|
|
30
|
+
//# sourceMappingURL=composition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composition.d.ts","sourceRoot":"","sources":["../../src/shared/composition.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,WAAW,CAAC;AAEjD;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,uBAAuB,CAAC;AAE7D;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,kBAAkB,CAAC;AAEnD;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where the subject element of a composition takes the attributes and bindings ng-prism gives it: the end of its start
|
|
3
|
+
* tag, in `CompositionCase.template`. Snippets replace it with the current values, the generated wrapper with the
|
|
4
|
+
* bindings. A private-use character, so that it cannot occur in the markup an author wrote. Since 22.7.0.
|
|
5
|
+
*
|
|
6
|
+
* @experimental Experimental until 23.0.0: it may change in a 22.x minor release.
|
|
7
|
+
*/
|
|
8
|
+
export const COMPOSITION_SUBJECT_SLOT = '\uE000';
|
|
9
|
+
/**
|
|
10
|
+
* Attribute the generated wrapper puts on the subject element, which is how the styleguide finds it in the rendered
|
|
11
|
+
* composition. Since 22.7.0.
|
|
12
|
+
*
|
|
13
|
+
* @experimental Experimental until 23.0.0: it may change in a 22.x minor release.
|
|
14
|
+
*/
|
|
15
|
+
export const COMPOSITION_SUBJECT_ATTR = 'data-prism-subject';
|
|
16
|
+
/**
|
|
17
|
+
* Attribute an author puts on the one of several elements matching the subject's selector that is the subject. It is
|
|
18
|
+
* removed from the generated template and from snippets. Since 22.7.0.
|
|
19
|
+
*
|
|
20
|
+
* @experimental Experimental until 23.0.0: it may change in a 22.x minor release.
|
|
21
|
+
*/
|
|
22
|
+
export const SUBJECT_MARKER_ATTR = 'prism-subject';
|
|
23
|
+
/**
|
|
24
|
+
* The input a composition wrapper declares to switch between its cases: the index of the variant, which the wrapper
|
|
25
|
+
* maps onto a case. Since 22.7.0.
|
|
26
|
+
*
|
|
27
|
+
* @experimental Experimental until 23.0.0: it may change in a 22.x minor release.
|
|
28
|
+
*/
|
|
29
|
+
export const PRISM_VARIANT_INPUT = '__prismVariant__';
|
|
@@ -14,7 +14,8 @@ export declare const PSEUDO_STATES: readonly PseudoState[];
|
|
|
14
14
|
*
|
|
15
15
|
* `true` puts it on every element of the rendered component, the host
|
|
16
16
|
* included. A selector, or a list of them, limits it to the matching elements,
|
|
17
|
-
* resolved against the host and everything inside it
|
|
17
|
+
* resolved against what is rendered: the host and everything inside it, or the
|
|
18
|
+
* whole composition for a variant with a `template` or a host template.
|
|
18
19
|
*/
|
|
19
20
|
export type PseudoTarget = true | string | readonly string[];
|
|
20
21
|
/** The pseudo states a variant forces, each with the elements it applies to. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pseudo-state.type.d.ts","sourceRoot":"","sources":["../../src/shared/pseudo-state.type.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,eAAe,GAAG,cAAc,CAAC;AAE1F,uFAAuF;AACvF,eAAO,MAAM,aAAa,EAAE,SAAS,WAAW,EAA2E,CAAC;AAE5H
|
|
1
|
+
{"version":3,"file":"pseudo-state.type.d.ts","sourceRoot":"","sources":["../../src/shared/pseudo-state.type.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,eAAe,GAAG,cAAc,CAAC;AAE1F,uFAAuF;AACvF,eAAO,MAAM,aAAa,EAAE,SAAS,WAAW,EAA2E,CAAC;AAE5H;;;;;;;GAOG;AACH,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,MAAM,GAAG,SAAS,MAAM,EAAE,CAAC;AAE7D,gFAAgF;AAChF,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"void-elements.d.ts","sourceRoot":"","sources":["../../src/shared/void-elements.ts"],"names":[],"mappings":"AAAA,4HAA4H;AAC5H,eAAO,MAAM,aAAa,EAAE,WAAW,CAAC,MAAM,CAAmH,CAAC"}
|
package/package.json
CHANGED