@oicl/openbridge-webcomponents-full-bundle 2.2.0-next.22 → 2.2.0-next.23
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/custom-elements-manifest.config.mjs +2 -1
- package/custom-elements.json +312 -17
- package/llms/components/obc-accordion-card.md +141 -0
- package/llms/components/obc-accordion-item.md +90 -0
- package/llms/components/obc-advice-button.md +87 -0
- package/llms/components/obc-advice-floating-item.md +113 -0
- package/llms/components/obc-advice-menu-item.md +87 -0
- package/llms/components/obc-advice-message-item.md +138 -0
- package/llms/components/obc-alert-button-item.md +117 -0
- package/llms/components/obc-alert-button.md +134 -0
- package/llms/components/obc-alert-counter-item.md +74 -0
- package/llms/components/obc-alert-detail-page.md +45 -0
- package/llms/components/obc-alert-floating-item.md +53 -0
- package/llms/components/obc-alert-frame.md +142 -0
- package/llms/components/obc-alert-icon.md +79 -0
- package/llms/components/obc-alert-list-details-experimental.md +89 -0
- package/llms/components/obc-alert-list-details.md +38 -0
- package/llms/components/obc-alert-list-page-small.md +39 -0
- package/llms/components/obc-alert-list.md +37 -0
- package/llms/components/obc-alert-menu-item.md +128 -0
- package/llms/components/obc-alert-menu.md +115 -0
- package/llms/components/obc-alert-subsystem-button.md +88 -0
- package/llms/components/obc-alert-subsystem-counter.md +110 -0
- package/llms/components/obc-analog-threeway-valve.md +106 -0
- package/llms/components/obc-analog-valve.md +74 -0
- package/llms/components/obc-app-button.md +83 -0
- package/llms/components/obc-app-menu.md +69 -0
- package/llms/components/obc-area-graph.md +333 -0
- package/llms/components/obc-attachment-list-item.md +49 -0
- package/llms/components/obc-audio-output.md +59 -0
- package/llms/components/obc-audio-recording-item.md +91 -0
- package/llms/components/obc-automation-badge.md +66 -0
- package/llms/components/obc-automation-button-readout-stack.md +71 -0
- package/llms/components/obc-automation-button.md +86 -0
- package/llms/components/obc-automation-input-modal.md +48 -0
- package/llms/components/obc-automation-readout.md +32 -0
- package/llms/components/obc-automation-tank.md +156 -0
- package/llms/components/obc-azimuth-thruster-labeled.md +56 -0
- package/llms/components/obc-azimuth-thruster.md +80 -0
- package/llms/components/obc-badge-command.md +26 -0
- package/llms/components/obc-badge.md +151 -0
- package/llms/components/obc-bar-horizontal.md +123 -0
- package/llms/components/obc-bar-vertical.md +125 -0
- package/llms/components/obc-battery-icon.md +38 -0
- package/llms/components/obc-bearing-indicator.md +27 -0
- package/llms/components/obc-bipolar-transistor.md +64 -0
- package/llms/components/obc-breadcrumb.md +58 -0
- package/llms/components/obc-brilliance-menu.md +115 -0
- package/llms/components/obc-bus.md +64 -0
- package/llms/components/obc-button.md +110 -0
- package/llms/components/obc-calendar.md +91 -0
- package/llms/components/obc-capacitor.md +64 -0
- package/llms/components/obc-card.md +103 -0
- package/llms/components/obc-chart-object-vessel-button.md +103 -0
- package/llms/components/obc-chat-message.md +35 -0
- package/llms/components/obc-check-button.md +104 -0
- package/llms/components/obc-checkbox-item.md +95 -0
- package/llms/components/obc-checkbox-list.md +73 -0
- package/llms/components/obc-checkbox.md +97 -0
- package/llms/components/obc-circular-progress.md +36 -0
- package/llms/components/obc-clock.md +86 -0
- package/llms/components/obc-command-button.md +56 -0
- package/llms/components/obc-command-menu.md +135 -0
- package/llms/components/obc-communication-table.md +31 -0
- package/llms/components/obc-compass-flat.md +79 -0
- package/llms/components/obc-compass-indicator.md +61 -0
- package/llms/components/obc-compass-sector.md +110 -0
- package/llms/components/obc-compass.md +157 -0
- package/llms/components/obc-context-menu-input.md +191 -0
- package/llms/components/obc-converter.md +64 -0
- package/llms/components/obc-corner-line.md +29 -0
- package/llms/components/obc-current.md +79 -0
- package/llms/components/obc-damper.md +62 -0
- package/llms/components/obc-date-item.md +66 -0
- package/llms/components/obc-depth-actual.md +69 -0
- package/llms/components/obc-depth-indicator.md +31 -0
- package/llms/components/obc-depth-top-band.md +43 -0
- package/llms/components/obc-depth.md +94 -0
- package/llms/components/obc-diagnostic-button.md +71 -0
- package/llms/components/obc-diagnostic-menu.md +88 -0
- package/llms/components/obc-digital-threeway-valve.md +112 -0
- package/llms/components/obc-digital-valve.md +78 -0
- package/llms/components/obc-diodes.md +64 -0
- package/llms/components/obc-direction-line.md +28 -0
- package/llms/components/obc-divider.md +44 -0
- package/llms/components/obc-donut-chart.md +116 -0
- package/llms/components/obc-draft-trim.md +67 -0
- package/llms/components/obc-dropdown-button.md +99 -0
- package/llms/components/obc-electricity-battery.md +83 -0
- package/llms/components/obc-elevated-card-radio-group.md +103 -0
- package/llms/components/obc-elevated-card-radio.md +104 -0
- package/llms/components/obc-elevated-card.md +146 -0
- package/llms/components/obc-end-point-line.md +29 -0
- package/llms/components/obc-event-item.md +47 -0
- package/llms/components/obc-event-list.md +37 -0
- package/llms/components/obc-fan.md +68 -0
- package/llms/components/obc-filter-chip.md +91 -0
- package/llms/components/obc-filter.md +64 -0
- package/llms/components/obc-floating-item.md +125 -0
- package/llms/components/obc-form-container.md +45 -0
- package/llms/components/obc-form-footer-container.md +34 -0
- package/llms/components/obc-form-group.md +80 -0
- package/llms/components/obc-form-item.md +95 -0
- package/llms/components/obc-gauge-bar-indicator.md +46 -0
- package/llms/components/obc-gauge-generator.md +102 -0
- package/llms/components/obc-gauge-horizontal.md +169 -0
- package/llms/components/obc-gauge-motors-and-pumps.md +110 -0
- package/llms/components/obc-gauge-proportional.md +134 -0
- package/llms/components/obc-gauge-radial-indicator.md +76 -0
- package/llms/components/obc-gauge-radial.md +163 -0
- package/llms/components/obc-gauge-trend-indicator.md +53 -0
- package/llms/components/obc-gauge-trend.md +271 -0
- package/llms/components/obc-gauge-valve.md +114 -0
- package/llms/components/obc-gauge-vertical.md +169 -0
- package/llms/components/obc-gnss-skyplot.md +80 -0
- package/llms/components/obc-graph-mini.md +28 -0
- package/llms/components/obc-ground.md +64 -0
- package/llms/components/obc-heading-indicator.md +42 -0
- package/llms/components/obc-heading.md +106 -0
- package/llms/components/obc-heat-exchanger.md +80 -0
- package/llms/components/obc-heat-pump.md +79 -0
- package/llms/components/obc-heave-indicator.md +38 -0
- package/llms/components/obc-heave.md +60 -0
- package/llms/components/obc-horizontal-line.md +29 -0
- package/llms/components/obc-hydraulic-check-valve.md +36 -0
- package/llms/components/obc-hydraulic-separator.md +80 -0
- package/llms/components/obc-hydraulic-valve-4-3.md +71 -0
- package/llms/components/obc-hydraulic-valve-x-2.md +68 -0
- package/llms/components/obc-icon-button.md +117 -0
- package/llms/components/obc-icon-check-button.md +85 -0
- package/llms/components/obc-indicator-battery.md +69 -0
- package/llms/components/obc-indicator-engine.md +39 -0
- package/llms/components/obc-indicator-generator.md +59 -0
- package/llms/components/obc-indicator-graph.md +33 -0
- package/llms/components/obc-indicator-tank-atmospheric.md +69 -0
- package/llms/components/obc-input-chip.md +96 -0
- package/llms/components/obc-instrument-field.md +172 -0
- package/llms/components/obc-instrument-radial.md +77 -0
- package/llms/components/obc-integration-app-bar.md +41 -0
- package/llms/components/obc-integration-bar-dropdown.md +71 -0
- package/llms/components/obc-integration-bar.md +72 -0
- package/llms/components/obc-integration-button.md +62 -0
- package/llms/components/obc-integration-dropdown-button.md +75 -0
- package/llms/components/obc-integration-fleet-button.md +41 -0
- package/llms/components/obc-integration-tabs.md +28 -0
- package/llms/components/obc-integration-vessel-menu.md +58 -0
- package/llms/components/obc-integration-vessel-selector.md +32 -0
- package/llms/components/obc-keyboard-full.md +175 -0
- package/llms/components/obc-keyboard-numeric.md +77 -0
- package/llms/components/obc-line-cross.md +28 -0
- package/llms/components/obc-line-graph.md +164 -0
- package/llms/components/obc-line-overlap.md +28 -0
- package/llms/components/obc-logic.md +64 -0
- package/llms/components/obc-main-engine-indicator.md +55 -0
- package/llms/components/obc-main-engine.md +54 -0
- package/llms/components/obc-menu-button.md +158 -0
- package/llms/components/obc-message-menu-item.md +165 -0
- package/llms/components/obc-modal-window.md +139 -0
- package/llms/components/obc-mosfet.md +64 -0
- package/llms/components/obc-motor.md +73 -0
- package/llms/components/obc-navigation-item-group.md +82 -0
- package/llms/components/obc-navigation-item.md +138 -0
- package/llms/components/obc-navigation-menu.md +135 -0
- package/llms/components/obc-non-return-valve.md +79 -0
- package/llms/components/obc-notification-badge-button.md +87 -0
- package/llms/components/obc-notification-button.md +92 -0
- package/llms/components/obc-notification-floating-item.md +121 -0
- package/llms/components/obc-notification-menu-item.md +87 -0
- package/llms/components/obc-notification-message-item.md +127 -0
- package/llms/components/obc-number-input-field.md +97 -0
- package/llms/components/obc-pagination.md +95 -0
- package/llms/components/obc-pie-chart.md +120 -0
- package/llms/components/obc-pitch-indicator.md +39 -0
- package/llms/components/obc-pitch-roll-heave.md +86 -0
- package/llms/components/obc-pitch-roll-yaw.md +72 -0
- package/llms/components/obc-pitch-roll.md +63 -0
- package/llms/components/obc-pitch.md +81 -0
- package/llms/components/obc-pivot-item-group.md +79 -0
- package/llms/components/obc-pivot-item.md +75 -0
- package/llms/components/obc-poi-aton.md +68 -0
- package/llms/components/obc-poi-button-aton.md +54 -0
- package/llms/components/obc-poi-button-data.md +53 -0
- package/llms/components/obc-poi-button-vessel.md +55 -0
- package/llms/components/obc-poi-button.md +94 -0
- package/llms/components/obc-poi-card-header.md +90 -0
- package/llms/components/obc-poi-card.md +110 -0
- package/llms/components/obc-poi-controller.md +151 -0
- package/llms/components/obc-poi-data.md +72 -0
- package/llms/components/obc-poi-graphic-line.md +70 -0
- package/llms/components/obc-poi-group.md +85 -0
- package/llms/components/obc-poi-header.md +71 -0
- package/llms/components/obc-poi-layer-stack.md +85 -0
- package/llms/components/obc-poi-layer.md +110 -0
- package/llms/components/obc-poi-line.md +70 -0
- package/llms/components/obc-poi-object-aton.md +45 -0
- package/llms/components/obc-poi-object-data.md +48 -0
- package/llms/components/obc-poi-object-vessel.md +95 -0
- package/llms/components/obc-poi-object.md +82 -0
- package/llms/components/obc-poi-pointer.md +70 -0
- package/llms/components/obc-poi-selection-frame.md +66 -0
- package/llms/components/obc-poi-vessel.md +70 -0
- package/llms/components/obc-poi.md +140 -0
- package/llms/components/obc-polar-chart.md +126 -0
- package/llms/components/obc-position-deviation.md +84 -0
- package/llms/components/obc-pressure-reduction-valve.md +88 -0
- package/llms/components/obc-pressure-sustain-valve.md +85 -0
- package/llms/components/obc-progress-bar.md +102 -0
- package/llms/components/obc-progress-button.md +111 -0
- package/llms/components/obc-progress-indicator-dots.md +57 -0
- package/llms/components/obc-propulsion-azimuth-indicator.md +48 -0
- package/llms/components/obc-pump.md +76 -0
- package/llms/components/obc-radial-bar-chart.md +103 -0
- package/llms/components/obc-radio.md +82 -0
- package/llms/components/obc-rate-of-turn.md +95 -0
- package/llms/components/obc-readout-block.md +137 -0
- package/llms/components/obc-readout-list-item.md +142 -0
- package/llms/components/obc-readout-list.md +85 -0
- package/llms/components/obc-readout.md +169 -0
- package/llms/components/obc-resistor.md +64 -0
- package/llms/components/obc-rich-button.md +92 -0
- package/llms/components/obc-roll-indicator.md +38 -0
- package/llms/components/obc-roll.md +56 -0
- package/llms/components/obc-rot-indicator.md +32 -0
- package/llms/components/obc-rot-linear.md +68 -0
- package/llms/components/obc-rot-sector.md +125 -0
- package/llms/components/obc-router.md +64 -0
- package/llms/components/obc-rudder-indicator.md +54 -0
- package/llms/components/obc-rudder.md +112 -0
- package/llms/components/obc-ruler-pointer.md +57 -0
- package/llms/components/obc-scrollbar.md +57 -0
- package/llms/components/obc-sequence-card.md +119 -0
- package/llms/components/obc-sequence-connector.md +70 -0
- package/llms/components/obc-sequence-item.md +64 -0
- package/llms/components/obc-sequence-loading-spinner.md +70 -0
- package/llms/components/obc-sequence-modal.md +89 -0
- package/llms/components/obc-sequence-step.md +48 -0
- package/llms/components/obc-sequence-toolbar.md +108 -0
- package/llms/components/obc-slide-button.md +111 -0
- package/llms/components/obc-slider-double.md +137 -0
- package/llms/components/obc-slider.md +143 -0
- package/llms/components/obc-source.md +64 -0
- package/llms/components/obc-speed-arrows.md +39 -0
- package/llms/components/obc-speed-directions.md +66 -0
- package/llms/components/obc-speed-gauge.md +124 -0
- package/llms/components/obc-speed-indicator.md +37 -0
- package/llms/components/obc-split-button.md +144 -0
- package/llms/components/obc-start-stop-switch.md +126 -0
- package/llms/components/obc-status-indicator.md +30 -0
- package/llms/components/obc-stepper-box.md +90 -0
- package/llms/components/obc-surge-sway-yaw.md +95 -0
- package/llms/components/obc-switch.md +69 -0
- package/llms/components/obc-system-button.md +112 -0
- package/llms/components/obc-system-menu.md +67 -0
- package/llms/components/obc-tab-item.md +161 -0
- package/llms/components/obc-tab-row.md +151 -0
- package/llms/components/obc-tabbed-card.md +148 -0
- package/llms/components/obc-table-header-item.md +42 -0
- package/llms/components/obc-table.md +124 -0
- package/llms/components/obc-tag.md +41 -0
- package/llms/components/obc-text-input-field.md +94 -0
- package/llms/components/obc-textarea-field.md +186 -0
- package/llms/components/obc-textbox.md +80 -0
- package/llms/components/obc-three-way-line.md +29 -0
- package/llms/components/obc-thruster.md +64 -0
- package/llms/components/obc-title-container.md +81 -0
- package/llms/components/obc-toggle-button-group.md +184 -0
- package/llms/components/obc-toggle-button-option.md +126 -0
- package/llms/components/obc-toggle-button-three-state.md +38 -0
- package/llms/components/obc-toggle-button-vertical-group.md +142 -0
- package/llms/components/obc-toggle-button-vertical-option.md +110 -0
- package/llms/components/obc-toggle-switch.md +126 -0
- package/llms/components/obc-toggletip.md +135 -0
- package/llms/components/obc-tooltip.md +106 -0
- package/llms/components/obc-top-bar.md +194 -0
- package/llms/components/obc-top-view-propulsion.md +84 -0
- package/llms/components/obc-topbar-message-item.md +150 -0
- package/llms/components/obc-transformer.md +64 -0
- package/llms/components/obc-transmitter-button.md +101 -0
- package/llms/components/obc-transmitter-stack.md +79 -0
- package/llms/components/obc-transmitter.md +114 -0
- package/llms/components/obc-tree-navigation-group.md +69 -0
- package/llms/components/obc-tree-navigation-item.md +110 -0
- package/llms/components/obc-tree-navigation.md +73 -0
- package/llms/components/obc-tunnel-thruster.md +59 -0
- package/llms/components/obc-user-button.md +107 -0
- package/llms/components/obc-user-menu.md +154 -0
- package/llms/components/obc-valve-analog-three-way-icon.md +69 -0
- package/llms/components/obc-valve-analog-two-way-icon.md +39 -0
- package/llms/components/obc-velocity-projection-plot.md +34 -0
- package/llms/components/obc-vendor-button.md +63 -0
- package/llms/components/obc-vertical-line.md +33 -0
- package/llms/components/obc-watch-flat.md +54 -0
- package/llms/components/obc-watch.md +206 -0
- package/llms/components/obc-wind-indicator.md +52 -0
- package/llms/components/obc-wind-propulsion.md +92 -0
- package/llms/components/obc-wind.md +46 -0
- package/llms/docs/ar-poi-projection.md +36 -0
- package/llms/docs/automation-sequence-step-diagram-playground.md +13 -0
- package/llms/docs/building-blocks-advice.md +31 -0
- package/llms/docs/building-blocks-external-scale.md +138 -0
- package/llms/docs/building-blocks-setpoint.md +119 -0
- package/llms/docs/introduction-advice-system.md +161 -0
- package/llms/docs/introduction-getting-started.md +94 -0
- package/llms/docs/introduction-introduction.md +27 -0
- package/llms/docs/introduction-join-the-project.md +11 -0
- package/llms/docs/introduction-migration-guide-2-0-to-2-1.md +126 -0
- package/llms/docs/introduction-migration-guide-2-1-to-2-2.md +106 -0
- package/llms/docs/introduction-migration-guide.md +1063 -0
- package/llms/docs/palettes-categorical-colour.md +9 -0
- package/llms/llms-full.txt +28380 -0
- package/llms/llms.txt +368 -0
- package/package.json +12 -2
- package/script/cem-plugins/lifecycle.d.mts +6 -0
- package/script/cem-plugins/lifecycle.mjs +48 -0
- package/script/cem-plugins.test.ts +52 -1
- package/script/generate-llms-txt.ts +34 -0
- package/script/llms/channel.test.ts +69 -0
- package/script/llms/channel.ts +63 -0
- package/script/llms/generate.test.ts +143 -0
- package/script/llms/generate.ts +229 -0
- package/script/llms/manifest.test.ts +160 -0
- package/script/llms/manifest.ts +109 -0
- package/script/llms/markdown.test.ts +22 -0
- package/script/llms/markdown.ts +37 -0
- package/script/llms/mdx.test.ts +172 -0
- package/script/llms/mdx.ts +171 -0
- package/script/llms/render-component.test.ts +290 -0
- package/script/llms/render-component.ts +208 -0
- package/script/llms/render-guides.test.ts +105 -0
- package/script/llms/render-guides.ts +51 -0
- package/script/llms/render-llms-txt.test.ts +222 -0
- package/script/llms/render-llms-txt.ts +185 -0
- package/script/llms/sources.test.ts +118 -0
- package/script/llms/sources.ts +89 -0
- package/script/llms/stories.test.ts +193 -0
- package/script/llms/stories.ts +256 -0
- package/script/llms/types.ts +95 -0
- package/script/prepare-full-bundle.ts +1 -0
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import fs from 'node:fs';
|
|
2
|
+
import os from 'node:os';
|
|
3
|
+
import path from 'node:path';
|
|
4
|
+
import {afterEach, beforeEach, describe, expect, it, vi} from 'vitest';
|
|
5
|
+
import {resolveChannel} from './channel.js';
|
|
6
|
+
import {
|
|
7
|
+
docsPageUrl,
|
|
8
|
+
readStoriesFile,
|
|
9
|
+
storiesIndex,
|
|
10
|
+
storyPageUrl,
|
|
11
|
+
} from './stories.js';
|
|
12
|
+
|
|
13
|
+
let dir: string;
|
|
14
|
+
beforeEach(() => {
|
|
15
|
+
dir = fs.mkdtempSync(path.join(os.tmpdir(), 'llms-stories-'));
|
|
16
|
+
});
|
|
17
|
+
afterEach(() => {
|
|
18
|
+
fs.rmSync(dir, {recursive: true, force: true});
|
|
19
|
+
});
|
|
20
|
+
const write = (name: string, text: string): string => {
|
|
21
|
+
const file = path.join(dir, name);
|
|
22
|
+
fs.mkdirSync(path.dirname(file), {recursive: true});
|
|
23
|
+
fs.writeFileSync(file, text);
|
|
24
|
+
return file;
|
|
25
|
+
};
|
|
26
|
+
const next = resolveChannel('next', {});
|
|
27
|
+
|
|
28
|
+
describe('readStoriesFile', () => {
|
|
29
|
+
it('reads title, component and stories with docs', () => {
|
|
30
|
+
const file = write(
|
|
31
|
+
'a.stories.ts',
|
|
32
|
+
[
|
|
33
|
+
"import type {Meta, StoryObj} from '@storybook/web-components-vite';",
|
|
34
|
+
'const meta: Meta = {',
|
|
35
|
+
" title: 'Bars and Graphs/Bar Vertical',",
|
|
36
|
+
" component: 'obc-bar-vertical',",
|
|
37
|
+
" parameters: {docs: {description: {component: 'Comp docs'}}},",
|
|
38
|
+
'} satisfies Meta;',
|
|
39
|
+
'export default meta;',
|
|
40
|
+
'type Story = StoryObj;',
|
|
41
|
+
'/** Each band carries its icon.',
|
|
42
|
+
' *',
|
|
43
|
+
' * More. */',
|
|
44
|
+
'export const WithAdviceIcons: Story = {args: {}};',
|
|
45
|
+
'export const Named: Story = {',
|
|
46
|
+
" name: 'Default (right side)',",
|
|
47
|
+
" parameters: {docs: {description: {story: 'Story docs'}}},",
|
|
48
|
+
'};',
|
|
49
|
+
'const helper = 1;',
|
|
50
|
+
'export {helper};',
|
|
51
|
+
].join('\n')
|
|
52
|
+
);
|
|
53
|
+
expect(readStoriesFile(file, () => {})).toEqual({
|
|
54
|
+
file,
|
|
55
|
+
title: 'Bars and Graphs/Bar Vertical',
|
|
56
|
+
componentTag: 'obc-bar-vertical',
|
|
57
|
+
componentDocs: 'Comp docs',
|
|
58
|
+
docsPage: true,
|
|
59
|
+
stories: [
|
|
60
|
+
{
|
|
61
|
+
exportName: 'WithAdviceIcons',
|
|
62
|
+
name: 'With Advice Icons',
|
|
63
|
+
doc: 'Each band carries its icon.\n\nMore.',
|
|
64
|
+
},
|
|
65
|
+
{exportName: 'Named', name: 'Default (right side)', doc: 'Story docs'},
|
|
66
|
+
],
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
it('keeps every paragraph of a story description', () => {
|
|
71
|
+
const file = write(
|
|
72
|
+
'g.stories.ts',
|
|
73
|
+
[
|
|
74
|
+
"export default {title: 'X/G', component: 'obc-g'};",
|
|
75
|
+
'/**',
|
|
76
|
+
' * Scales like a vector.',
|
|
77
|
+
' *',
|
|
78
|
+
' * - **false**: reacts to properties',
|
|
79
|
+
' * - **true**: scales as a whole',
|
|
80
|
+
' */',
|
|
81
|
+
'export const Fixed = {args: {}};',
|
|
82
|
+
'export const Params = {',
|
|
83
|
+
" parameters: {docs: {description: {story: 'One.\\n\\nTwo.'}}},",
|
|
84
|
+
'};',
|
|
85
|
+
].join('\n')
|
|
86
|
+
);
|
|
87
|
+
expect(readStoriesFile(file, () => {}).stories.map((s) => s.doc)).toEqual([
|
|
88
|
+
'Scales like a vector.\n\n- **false**: reacts to properties\n- **true**: scales as a whole',
|
|
89
|
+
'One.\n\nTwo.',
|
|
90
|
+
]);
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
it('records whether Storybook builds a docs page for the file', () => {
|
|
94
|
+
const on = write(
|
|
95
|
+
'h.stories.ts',
|
|
96
|
+
"export default {title: 'X/H', component: 'obc-h', tags: ['beta']};"
|
|
97
|
+
);
|
|
98
|
+
const off = write(
|
|
99
|
+
'i.stories.ts',
|
|
100
|
+
"const meta = {title: 'X/I', component: 'obc-i', tags: ['!autodocs', '6.0']};\nexport default meta;"
|
|
101
|
+
);
|
|
102
|
+
expect(readStoriesFile(on, () => {}).docsPage).toBe(true);
|
|
103
|
+
expect(readStoriesFile(off, () => {}).docsPage).toBe(false);
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
it('does not take description.component for the component tag', () => {
|
|
107
|
+
const file = write(
|
|
108
|
+
'b.stories.ts',
|
|
109
|
+
"const meta = {title: 'Building Blocks/Setpoint', parameters: {docs: {description: {component: `# Setpoint\n\nText.`}}}};\nexport default meta;"
|
|
110
|
+
);
|
|
111
|
+
const info = readStoriesFile(file, () => {});
|
|
112
|
+
expect(info.componentTag).toBeUndefined();
|
|
113
|
+
expect(info.componentDocs).toBe('# Setpoint\n\nText.');
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
it('records a moduleDocs() or classDocs() reference', () => {
|
|
117
|
+
const file = write(
|
|
118
|
+
'c.stories.ts',
|
|
119
|
+
"export default {title: 'Building Blocks/External Scale', parameters: {docs: {description: {component: moduleDocs('building-blocks/external-scale/external-scale.ts')}}}};"
|
|
120
|
+
);
|
|
121
|
+
expect(readStoriesFile(file, () => {}).componentDocs).toEqual({
|
|
122
|
+
kind: 'moduleDocs',
|
|
123
|
+
arg: 'building-blocks/external-scale/external-scale.ts',
|
|
124
|
+
});
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
it('warns on a non-literal title and leaves it undefined', () => {
|
|
128
|
+
const file = write(
|
|
129
|
+
'd.stories.ts',
|
|
130
|
+
"const x = 'B';\nconst meta = {title: `A/${x}`, component: 'obc-a'};\nexport default meta;"
|
|
131
|
+
);
|
|
132
|
+
const warn = vi.fn();
|
|
133
|
+
const info = readStoriesFile(file, warn);
|
|
134
|
+
expect(info.title).toBeUndefined();
|
|
135
|
+
expect(info.componentTag).toBe('obc-a');
|
|
136
|
+
expect(warn).toHaveBeenCalledOnce();
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
it('keeps stories that reference a shared object', () => {
|
|
140
|
+
const file = write(
|
|
141
|
+
'f.stories.ts',
|
|
142
|
+
"import {shared} from './shared.js';\nexport default {title: 'X/F', component: 'obc-f'};\n/** The default. */\nexport const Default = shared.Default;\nexport const Whole = shared;\nexport const N = 5;"
|
|
143
|
+
);
|
|
144
|
+
expect(readStoriesFile(file, () => {}).stories).toEqual([
|
|
145
|
+
{exportName: 'Default', name: 'Default', doc: 'The default.'},
|
|
146
|
+
{exportName: 'Whole', name: 'Whole', doc: undefined},
|
|
147
|
+
]);
|
|
148
|
+
});
|
|
149
|
+
|
|
150
|
+
it('skips exports that are not story objects', () => {
|
|
151
|
+
const file = write(
|
|
152
|
+
'e.stories.ts',
|
|
153
|
+
"export default {title: 'X/Y', component: 'obc-y'};\nexport const SAMPLE = [1, 2];\nexport function helper() {}\nexport const Default = {args: {}};"
|
|
154
|
+
);
|
|
155
|
+
expect(
|
|
156
|
+
readStoriesFile(file, () => {}).stories.map((s) => s.exportName)
|
|
157
|
+
).toEqual(['Default']);
|
|
158
|
+
});
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
describe('storiesIndex', () => {
|
|
162
|
+
it('reads every stories file under the directory', () => {
|
|
163
|
+
write(
|
|
164
|
+
'a/a.stories.ts',
|
|
165
|
+
"export default {title: 'A/A', component: 'obc-a'};"
|
|
166
|
+
);
|
|
167
|
+
write(
|
|
168
|
+
'b/c/b.stories.ts',
|
|
169
|
+
"export default {title: 'B/B', component: 'obc-b'};"
|
|
170
|
+
);
|
|
171
|
+
write('b/b.spec.ts', 'export const x = 1;');
|
|
172
|
+
expect(storiesIndex(dir, () => {}).map((i) => i.componentTag)).toEqual([
|
|
173
|
+
'obc-a',
|
|
174
|
+
'obc-b',
|
|
175
|
+
]);
|
|
176
|
+
});
|
|
177
|
+
});
|
|
178
|
+
|
|
179
|
+
describe('urls', () => {
|
|
180
|
+
it('builds Storybook urls', () => {
|
|
181
|
+
expect(docsPageUrl(next, 'Bars and Graphs/Bar Vertical')).toBe(
|
|
182
|
+
'https://openbridge-next-storybook.web.app/?path=/docs/bars-and-graphs-bar-vertical--docs'
|
|
183
|
+
);
|
|
184
|
+
expect(
|
|
185
|
+
storyPageUrl(next, 'Bars and Graphs/Bar Vertical', 'DefaultRight')
|
|
186
|
+
).toBe(
|
|
187
|
+
'https://openbridge-next-storybook.web.app/?path=/story/bars-and-graphs-bar-vertical--default-right'
|
|
188
|
+
);
|
|
189
|
+
expect(storyPageUrl(next, 'Building Blocks/Setpoint', 'NotEqual')).toBe(
|
|
190
|
+
'https://openbridge-next-storybook.web.app/?path=/story/building-blocks-setpoint--not-equal'
|
|
191
|
+
);
|
|
192
|
+
});
|
|
193
|
+
});
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import fs from 'node:fs';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import {sanitize, storyNameFromExport, toId} from 'storybook/internal/csf';
|
|
4
|
+
import ts from 'typescript';
|
|
5
|
+
import {siteUrl, type Channel} from './channel.js';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Stories as the docs generator sees them
|
|
9
|
+
*
|
|
10
|
+
* Read from the TypeScript AST rather than by regex: a story file's `title`
|
|
11
|
+
* and `component` are literals (`storybook-title-case` keeps them so), and
|
|
12
|
+
* the docs an agent can use are the JSDoc above an exported story or its
|
|
13
|
+
* `parameters.docs.description`. Nothing here is Storybook's own index; it
|
|
14
|
+
* runs before any build.
|
|
15
|
+
*/
|
|
16
|
+
export interface StoryInfo {
|
|
17
|
+
exportName: string;
|
|
18
|
+
name: string;
|
|
19
|
+
doc: string | undefined;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export type DocsRef = {kind: 'moduleDocs' | 'classDocs'; arg: string};
|
|
23
|
+
|
|
24
|
+
export interface StoriesInfo {
|
|
25
|
+
file: string;
|
|
26
|
+
title: string | undefined;
|
|
27
|
+
componentTag: string | undefined;
|
|
28
|
+
componentDocs: string | DocsRef | undefined;
|
|
29
|
+
/** False when `meta.tags` carries `!autodocs`; the preview turns autodocs on for every other file. */
|
|
30
|
+
docsPage: boolean;
|
|
31
|
+
stories: StoryInfo[];
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function docsPageUrl(ch: Channel, title: string): string {
|
|
35
|
+
return siteUrl(ch, `/?path=/docs/${sanitize(title)}--docs`);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/** The file's docs page, or its first story when Storybook builds no docs page for it. */
|
|
39
|
+
export function storybookUrl(
|
|
40
|
+
ch: Channel,
|
|
41
|
+
info: StoriesInfo
|
|
42
|
+
): string | undefined {
|
|
43
|
+
if (!info.title) return undefined;
|
|
44
|
+
if (info.docsPage) return docsPageUrl(ch, info.title);
|
|
45
|
+
const first = info.stories[0];
|
|
46
|
+
return first && storyPageUrl(ch, info.title, first.exportName);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/** Storybook derives a story's id from its export name, whatever `name:` says. */
|
|
50
|
+
export function storyPageUrl(
|
|
51
|
+
ch: Channel,
|
|
52
|
+
title: string,
|
|
53
|
+
exportName: string
|
|
54
|
+
): string {
|
|
55
|
+
return siteUrl(
|
|
56
|
+
ch,
|
|
57
|
+
`/?path=/story/${toId(title, storyNameFromExport(exportName))}`
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function storiesIndex(
|
|
62
|
+
srcDir: string,
|
|
63
|
+
warn: (msg: string) => void
|
|
64
|
+
): StoriesInfo[] {
|
|
65
|
+
return fs
|
|
66
|
+
.readdirSync(srcDir, {recursive: true, encoding: 'utf8'})
|
|
67
|
+
.filter((f) => f.endsWith('.stories.ts'))
|
|
68
|
+
.sort()
|
|
69
|
+
.map((f) => readStoriesFile(path.join(srcDir, f), warn));
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function readStoriesFile(
|
|
73
|
+
file: string,
|
|
74
|
+
warn: (msg: string) => void
|
|
75
|
+
): StoriesInfo {
|
|
76
|
+
const text = fs.readFileSync(file, 'utf8');
|
|
77
|
+
const sf = ts.createSourceFile(file, text, ts.ScriptTarget.ES2022, true);
|
|
78
|
+
const meta = metaObject(sf);
|
|
79
|
+
|
|
80
|
+
let title: string | undefined;
|
|
81
|
+
const titleNode = meta && property(meta, 'title');
|
|
82
|
+
if (titleNode) {
|
|
83
|
+
title = stringValue(titleNode);
|
|
84
|
+
if (title === undefined) {
|
|
85
|
+
warn(`llms.txt: ${file} has a non-literal title; no story links`);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
const componentNode = meta && property(meta, 'component');
|
|
89
|
+
const docsNode =
|
|
90
|
+
meta &&
|
|
91
|
+
propertyPath(meta, ['parameters', 'docs', 'description', 'component']);
|
|
92
|
+
const tagsNode = meta && property(meta, 'tags');
|
|
93
|
+
const tags =
|
|
94
|
+
tagsNode && ts.isArrayLiteralExpression(unwrap(tagsNode))
|
|
95
|
+
? (unwrap(tagsNode) as ts.ArrayLiteralExpression).elements.map(
|
|
96
|
+
stringValue
|
|
97
|
+
)
|
|
98
|
+
: [];
|
|
99
|
+
|
|
100
|
+
return {
|
|
101
|
+
file,
|
|
102
|
+
title,
|
|
103
|
+
componentTag: componentNode ? stringValue(componentNode) : undefined,
|
|
104
|
+
componentDocs: docsNode ? docsValue(docsNode) : undefined,
|
|
105
|
+
docsPage: !tags.includes('!autodocs'),
|
|
106
|
+
stories: exportedStories(sf, text),
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
function unwrap(node: ts.Expression): ts.Expression {
|
|
111
|
+
let n = node;
|
|
112
|
+
for (;;) {
|
|
113
|
+
if (ts.isSatisfiesExpression(n) || ts.isAsExpression(n)) n = n.expression;
|
|
114
|
+
else if (ts.isParenthesizedExpression(n)) n = n.expression;
|
|
115
|
+
else return n;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
function asObject(
|
|
120
|
+
node: ts.Expression | undefined
|
|
121
|
+
): ts.ObjectLiteralExpression | undefined {
|
|
122
|
+
if (!node) return undefined;
|
|
123
|
+
const n = unwrap(node);
|
|
124
|
+
return ts.isObjectLiteralExpression(n) ? n : undefined;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/** The default export's object literal, or the `const meta = {…}` it refers to. */
|
|
128
|
+
function metaObject(sf: ts.SourceFile): ts.ObjectLiteralExpression | undefined {
|
|
129
|
+
for (const stmt of sf.statements) {
|
|
130
|
+
if (!ts.isExportAssignment(stmt) || stmt.isExportEquals) continue;
|
|
131
|
+
const direct = asObject(stmt.expression);
|
|
132
|
+
if (direct) return direct;
|
|
133
|
+
const expr = unwrap(stmt.expression);
|
|
134
|
+
if (ts.isIdentifier(expr)) return variableObject(sf, expr.text);
|
|
135
|
+
}
|
|
136
|
+
return undefined;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
function variableObject(
|
|
140
|
+
sf: ts.SourceFile,
|
|
141
|
+
name: string
|
|
142
|
+
): ts.ObjectLiteralExpression | undefined {
|
|
143
|
+
for (const stmt of sf.statements) {
|
|
144
|
+
if (!ts.isVariableStatement(stmt)) continue;
|
|
145
|
+
for (const decl of stmt.declarationList.declarations) {
|
|
146
|
+
if (ts.isIdentifier(decl.name) && decl.name.text === name) {
|
|
147
|
+
return asObject(decl.initializer);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
return undefined;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
function property(
|
|
155
|
+
obj: ts.ObjectLiteralExpression,
|
|
156
|
+
name: string
|
|
157
|
+
): ts.Expression | undefined {
|
|
158
|
+
for (const p of obj.properties) {
|
|
159
|
+
if (!ts.isPropertyAssignment(p)) continue;
|
|
160
|
+
const key =
|
|
161
|
+
ts.isIdentifier(p.name) || ts.isStringLiteral(p.name)
|
|
162
|
+
? p.name.text
|
|
163
|
+
: undefined;
|
|
164
|
+
if (key === name) return p.initializer;
|
|
165
|
+
}
|
|
166
|
+
return undefined;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
function propertyPath(
|
|
170
|
+
obj: ts.ObjectLiteralExpression,
|
|
171
|
+
names: string[]
|
|
172
|
+
): ts.Expression | undefined {
|
|
173
|
+
let current: ts.ObjectLiteralExpression | undefined = obj;
|
|
174
|
+
let value: ts.Expression | undefined;
|
|
175
|
+
for (const name of names) {
|
|
176
|
+
if (!current) return undefined;
|
|
177
|
+
value = property(current, name);
|
|
178
|
+
current = asObject(value);
|
|
179
|
+
}
|
|
180
|
+
return value;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
function stringValue(node: ts.Expression): string | undefined {
|
|
184
|
+
const n = unwrap(node);
|
|
185
|
+
return ts.isStringLiteral(n) || ts.isNoSubstitutionTemplateLiteral(n)
|
|
186
|
+
? n.text
|
|
187
|
+
: undefined;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
function docsValue(node: ts.Expression): string | DocsRef | undefined {
|
|
191
|
+
const text = stringValue(node);
|
|
192
|
+
if (text !== undefined) return text;
|
|
193
|
+
const n = unwrap(node);
|
|
194
|
+
if (ts.isCallExpression(n) && ts.isIdentifier(n.expression)) {
|
|
195
|
+
const kind = n.expression.text;
|
|
196
|
+
const arg = n.arguments[0] && stringValue(n.arguments[0]);
|
|
197
|
+
if ((kind === 'moduleDocs' || kind === 'classDocs') && arg !== undefined) {
|
|
198
|
+
return {kind, arg};
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
return undefined;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
function exportedStories(sf: ts.SourceFile, text: string): StoryInfo[] {
|
|
205
|
+
const stories: StoryInfo[] = [];
|
|
206
|
+
for (const stmt of sf.statements) {
|
|
207
|
+
if (!ts.isVariableStatement(stmt)) continue;
|
|
208
|
+
if (!stmt.modifiers?.some((m) => m.kind === ts.SyntaxKind.ExportKeyword))
|
|
209
|
+
continue;
|
|
210
|
+
for (const decl of stmt.declarationList.declarations) {
|
|
211
|
+
if (!ts.isIdentifier(decl.name) || !decl.initializer) continue;
|
|
212
|
+
const obj = asObject(decl.initializer);
|
|
213
|
+
// A story is an object literal, or a reference to one shared between files.
|
|
214
|
+
if (!obj && !isReference(unwrap(decl.initializer))) continue;
|
|
215
|
+
const exportName = decl.name.text;
|
|
216
|
+
const nameNode = obj && property(obj, 'name');
|
|
217
|
+
const name =
|
|
218
|
+
(nameNode && stringValue(nameNode)) ?? storyNameFromExport(exportName);
|
|
219
|
+
const storyDocs =
|
|
220
|
+
obj &&
|
|
221
|
+
propertyPath(obj, ['parameters', 'docs', 'description', 'story']);
|
|
222
|
+
const doc =
|
|
223
|
+
storyDoc(leadingJsDoc(text, stmt)) ??
|
|
224
|
+
storyDoc(storyDocs && stringValue(storyDocs));
|
|
225
|
+
stories.push({exportName, name, doc});
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
return stories;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
function isReference(node: ts.Expression): boolean {
|
|
232
|
+
return ts.isIdentifier(node) || ts.isPropertyAccessExpression(node);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
function leadingJsDoc(text: string, node: ts.Node): string | undefined {
|
|
236
|
+
const ranges = ts.getLeadingCommentRanges(text, node.getFullStart()) ?? [];
|
|
237
|
+
const block = ranges
|
|
238
|
+
.map((r) => text.slice(r.pos, r.end))
|
|
239
|
+
.filter((raw) => raw.startsWith('/**'))
|
|
240
|
+
.pop();
|
|
241
|
+
return block
|
|
242
|
+
?.replace(/^\/\*\*/, '')
|
|
243
|
+
.replace(/\*\/$/, '')
|
|
244
|
+
.split('\n')
|
|
245
|
+
.map((l) => l.replace(/^\s*\*\s?/, '').trimEnd())
|
|
246
|
+
.join('\n');
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
function storyDoc(text: string | undefined): string | undefined {
|
|
250
|
+
const doc = text
|
|
251
|
+
?.split('\n')
|
|
252
|
+
.map((l) => l.trimEnd())
|
|
253
|
+
.join('\n')
|
|
254
|
+
.trim();
|
|
255
|
+
return doc || undefined;
|
|
256
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shapes shared by the llms.txt generator
|
|
3
|
+
*
|
|
4
|
+
* The manifest slice is what `generate-llms-txt.ts` reads from
|
|
5
|
+
* `custom-elements.json`; it names only the fields the output uses.
|
|
6
|
+
*/
|
|
7
|
+
export type Lifecycle = 'stable' | 'beta' | 'experimental' | 'deprecated';
|
|
8
|
+
|
|
9
|
+
export type FamilyId =
|
|
10
|
+
| 'components'
|
|
11
|
+
| 'navigation-instruments'
|
|
12
|
+
| 'bars-graphs'
|
|
13
|
+
| 'building-blocks'
|
|
14
|
+
| 'automation'
|
|
15
|
+
| 'ar'
|
|
16
|
+
| 'integration-systems'
|
|
17
|
+
| 'pages';
|
|
18
|
+
|
|
19
|
+
export interface Family {
|
|
20
|
+
id: FamilyId;
|
|
21
|
+
title: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface ManifestType {
|
|
25
|
+
text?: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface ManifestMember {
|
|
29
|
+
kind?: string;
|
|
30
|
+
name: string;
|
|
31
|
+
description?: string;
|
|
32
|
+
type?: ManifestType;
|
|
33
|
+
default?: string;
|
|
34
|
+
static?: boolean;
|
|
35
|
+
privacy?: 'public' | 'private' | 'protected';
|
|
36
|
+
inheritedFrom?: {name?: string};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface ManifestAttribute {
|
|
40
|
+
name: string;
|
|
41
|
+
fieldName?: string;
|
|
42
|
+
description?: string;
|
|
43
|
+
type?: ManifestType;
|
|
44
|
+
default?: string;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface ManifestEvent {
|
|
48
|
+
name: string;
|
|
49
|
+
description?: string;
|
|
50
|
+
type?: ManifestType;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface ManifestNamed {
|
|
54
|
+
name: string;
|
|
55
|
+
description?: string;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface ManifestDeclaration {
|
|
59
|
+
kind: string;
|
|
60
|
+
name?: string;
|
|
61
|
+
tagName?: string;
|
|
62
|
+
description?: string;
|
|
63
|
+
summary?: string;
|
|
64
|
+
lifecycle?: Lifecycle;
|
|
65
|
+
deprecated?: string | boolean;
|
|
66
|
+
members?: ManifestMember[];
|
|
67
|
+
attributes?: ManifestAttribute[];
|
|
68
|
+
events?: ManifestEvent[];
|
|
69
|
+
slots?: ManifestNamed[];
|
|
70
|
+
cssParts?: ManifestNamed[];
|
|
71
|
+
cssProperties?: ManifestNamed[];
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export interface ManifestModule {
|
|
75
|
+
path: string;
|
|
76
|
+
summary?: string;
|
|
77
|
+
description?: string;
|
|
78
|
+
declarations?: ManifestDeclaration[];
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export interface Manifest {
|
|
82
|
+
modules: ManifestModule[];
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export interface ComponentEntry {
|
|
86
|
+
tag: string;
|
|
87
|
+
className: string;
|
|
88
|
+
modulePath: string;
|
|
89
|
+
family: FamilyId;
|
|
90
|
+
summary: string | undefined;
|
|
91
|
+
lifecycle: Lifecycle | undefined;
|
|
92
|
+
deprecatedNote: string | undefined;
|
|
93
|
+
description: string;
|
|
94
|
+
declaration: ManifestDeclaration;
|
|
95
|
+
}
|