forgebook 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +136 -2
- package/dist/bin/forgebook/catalogueVite.d.ts +16 -0
- package/dist/bin/forgebook/catalogueVite.d.ts.map +1 -0
- package/dist/bin/forgebook/catalogueVite.js +15 -0
- package/dist/bin/forgebook/catalogueVite.js.map +1 -0
- package/dist/bin/forgebook/forgebook.d.mts +3 -0
- package/dist/bin/forgebook/forgebook.d.mts.map +1 -0
- package/dist/bin/forgebook/forgebook.mjs +93 -0
- package/dist/bin/forgebook/forgebook.mjs.map +1 -0
- package/dist/bin/forgebook-docs/catalogueDocs.types.d.ts +90 -0
- package/dist/bin/forgebook-docs/catalogueDocs.types.d.ts.map +1 -0
- package/dist/bin/forgebook-docs/catalogueDocs.types.js +1 -0
- package/dist/bin/forgebook-docs/catalogueDocs.types.js.map +1 -0
- package/dist/bin/forgebook-docs/catalogueMarkdown.d.ts +9 -0
- package/dist/bin/forgebook-docs/catalogueMarkdown.d.ts.map +1 -0
- package/dist/bin/forgebook-docs/catalogueMarkdown.js +132 -0
- package/dist/bin/forgebook-docs/catalogueMarkdown.js.map +1 -0
- package/dist/bin/forgebook-docs/collectDocs.d.ts +17 -0
- package/dist/bin/forgebook-docs/collectDocs.d.ts.map +1 -0
- package/dist/bin/forgebook-docs/collectDocs.js +115 -0
- package/dist/bin/forgebook-docs/collectDocs.js.map +1 -0
- package/dist/bin/forgebook-docs/forgebook-docs.d.mts +3 -0
- package/dist/bin/forgebook-docs/forgebook-docs.d.mts.map +1 -0
- package/dist/bin/forgebook-docs/forgebook-docs.mjs +115 -0
- package/dist/bin/forgebook-docs/forgebook-docs.mjs.map +1 -0
- package/dist/bin/forgebook-docs/moduleDocs.d.ts +9 -0
- package/dist/bin/forgebook-docs/moduleDocs.d.ts.map +1 -0
- package/dist/bin/forgebook-docs/moduleDocs.js +62 -0
- package/dist/bin/forgebook-docs/moduleDocs.js.map +1 -0
- package/dist/bin/forgebook-docs/sassDocs.d.ts +20 -0
- package/dist/bin/forgebook-docs/sassDocs.d.ts.map +1 -0
- package/dist/bin/forgebook-docs/sassDocs.js +77 -0
- package/dist/bin/forgebook-docs/sassDocs.js.map +1 -0
- package/dist/bin/forgebook-texts/forgebook-texts.d.mts +3 -0
- package/dist/bin/forgebook-texts/forgebook-texts.d.mts.map +1 -0
- package/dist/bin/forgebook-texts/forgebook-texts.mjs +94 -0
- package/dist/bin/forgebook-texts/forgebook-texts.mjs.map +1 -0
- package/dist/bin/forgebook-texts/storyTextsReport.d.ts +26 -0
- package/dist/bin/forgebook-texts/storyTextsReport.d.ts.map +1 -0
- package/dist/bin/forgebook-texts/storyTextsReport.js +35 -0
- package/dist/bin/forgebook-texts/storyTextsReport.js.map +1 -0
- package/dist/bin/forgebook-texts/storyTextsReport.types.d.ts +25 -0
- package/dist/bin/forgebook-texts/storyTextsReport.types.d.ts.map +1 -0
- package/dist/bin/forgebook-texts/storyTextsReport.types.js +7 -0
- package/dist/bin/forgebook-texts/storyTextsReport.types.js.map +1 -0
- package/dist/src/a11y.d.ts +28 -0
- package/dist/src/a11y.d.ts.map +1 -0
- package/dist/src/a11y.js +29 -0
- package/dist/src/a11y.js.map +1 -0
- package/dist/src/argTypes.d.ts +114 -0
- package/dist/src/argTypes.d.ts.map +1 -0
- package/dist/src/argTypes.js +254 -0
- package/dist/src/argTypes.js.map +1 -0
- package/dist/src/backdrops.d.ts +88 -0
- package/dist/src/backdrops.d.ts.map +1 -0
- package/dist/src/backdrops.js +202 -0
- package/dist/src/backdrops.js.map +1 -0
- package/dist/src/catalogue.d.ts +120 -0
- package/dist/src/catalogue.d.ts.map +1 -0
- package/dist/src/catalogue.js +80 -0
- package/dist/src/catalogue.js.map +1 -0
- package/dist/src/componentDocs.d.ts +98 -0
- package/dist/src/componentDocs.d.ts.map +1 -0
- package/dist/src/componentDocs.js +47 -0
- package/dist/src/componentDocs.js.map +1 -0
- package/dist/src/frame/checkStory.d.ts +20 -0
- package/dist/src/frame/checkStory.d.ts.map +1 -0
- package/dist/src/frame/checkStory.js +31 -0
- package/dist/src/frame/checkStory.js.map +1 -0
- package/dist/src/frame/frame.css +51 -0
- package/dist/src/frame/frameClock.d.ts +53 -0
- package/dist/src/frame/frameClock.d.ts.map +1 -0
- package/dist/src/frame/frameClock.js +80 -0
- package/dist/src/frame/frameClock.js.map +1 -0
- package/dist/src/frame/frameStatus.d.ts +8 -0
- package/dist/src/frame/frameStatus.d.ts.map +1 -0
- package/dist/src/frame/frameStatus.js +8 -0
- package/dist/src/frame/frameStatus.js.map +1 -0
- package/dist/src/frame/frameView.d.ts +33 -0
- package/dist/src/frame/frameView.d.ts.map +1 -0
- package/dist/src/frame/frameView.js +134 -0
- package/dist/src/frame/frameView.js.map +1 -0
- package/dist/src/frame/matrixLayout.d.ts +36 -0
- package/dist/src/frame/matrixLayout.d.ts.map +1 -0
- package/dist/src/frame/matrixLayout.js +87 -0
- package/dist/src/frame/matrixLayout.js.map +1 -0
- package/dist/src/frame/measureTools.d.ts +24 -0
- package/dist/src/frame/measureTools.d.ts.map +1 -0
- package/dist/src/frame/measureTools.js +141 -0
- package/dist/src/frame/measureTools.js.map +1 -0
- package/dist/src/frame/mountFrame.d.ts +47 -0
- package/dist/src/frame/mountFrame.d.ts.map +1 -0
- package/dist/src/frame/mountFrame.js +229 -0
- package/dist/src/frame/mountFrame.js.map +1 -0
- package/dist/src/frame/playStory.d.ts +40 -0
- package/dist/src/frame/playStory.d.ts.map +1 -0
- package/dist/src/frame/playStory.js +55 -0
- package/dist/src/frame/playStory.js.map +1 -0
- package/dist/src/frame/renderer.d.ts +85 -0
- package/dist/src/frame/renderer.d.ts.map +1 -0
- package/dist/src/frame/renderer.js +18 -0
- package/dist/src/frame/renderer.js.map +1 -0
- package/dist/src/frame/settle.d.ts +24 -0
- package/dist/src/frame/settle.d.ts.map +1 -0
- package/dist/src/frame/settle.js +25 -0
- package/dist/src/frame/settle.js.map +1 -0
- package/dist/src/frame/staleModule.d.ts +40 -0
- package/dist/src/frame/staleModule.d.ts.map +1 -0
- package/dist/src/frame/staleModule.js +74 -0
- package/dist/src/frame/staleModule.js.map +1 -0
- package/dist/src/frame/storyCanvas.d.ts +21 -0
- package/dist/src/frame/storyCanvas.d.ts.map +1 -0
- package/dist/src/frame/storyCanvas.js +30 -0
- package/dist/src/frame/storyCanvas.js.map +1 -0
- package/dist/src/frame/storyHooks.d.ts +31 -0
- package/dist/src/frame/storyHooks.d.ts.map +1 -0
- package/dist/src/frame/storyHooks.js +59 -0
- package/dist/src/frame/storyHooks.js.map +1 -0
- package/dist/src/frame/storyModule.d.ts +104 -0
- package/dist/src/frame/storyModule.d.ts.map +1 -0
- package/dist/src/frame/storyModule.js +205 -0
- package/dist/src/frame/storyModule.js.map +1 -0
- package/dist/src/frame/storyRun.d.ts +96 -0
- package/dist/src/frame/storyRun.d.ts.map +1 -0
- package/dist/src/frame/storyRun.js +318 -0
- package/dist/src/frame/storyRun.js.map +1 -0
- package/dist/src/languages.d.ts +15 -0
- package/dist/src/languages.d.ts.map +1 -0
- package/dist/src/languages.js +8 -0
- package/dist/src/languages.js.map +1 -0
- package/dist/src/matrix.d.ts +56 -0
- package/dist/src/matrix.d.ts.map +1 -0
- package/dist/src/matrix.js +61 -0
- package/dist/src/matrix.js.map +1 -0
- package/dist/src/messages.d.ts +203 -0
- package/dist/src/messages.d.ts.map +1 -0
- package/dist/src/messages.js +193 -0
- package/dist/src/messages.js.map +1 -0
- package/dist/src/namedValues.d.ts +38 -0
- package/dist/src/namedValues.d.ts.map +1 -0
- package/dist/src/namedValues.js +48 -0
- package/dist/src/namedValues.js.map +1 -0
- package/dist/src/pageConfig.d.ts +23 -0
- package/dist/src/pageConfig.d.ts.map +1 -0
- package/dist/src/pageConfig.js +1 -0
- package/dist/src/pageConfig.js.map +1 -0
- package/dist/src/playTrace.d.ts +41 -0
- package/dist/src/playTrace.d.ts.map +1 -0
- package/dist/src/playTrace.js +35 -0
- package/dist/src/playTrace.js.map +1 -0
- package/dist/src/shell/A11yTab.d.ts +44 -0
- package/dist/src/shell/A11yTab.d.ts.map +1 -0
- package/dist/src/shell/A11yTab.js +30 -0
- package/dist/src/shell/A11yTab.js.map +1 -0
- package/dist/src/shell/ApiReference.d.ts +18 -0
- package/dist/src/shell/ApiReference.d.ts.map +1 -0
- package/dist/src/shell/ApiReference.js +41 -0
- package/dist/src/shell/ApiReference.js.map +1 -0
- package/dist/src/shell/ClockControls.d.ts +43 -0
- package/dist/src/shell/ClockControls.d.ts.map +1 -0
- package/dist/src/shell/ClockControls.js +53 -0
- package/dist/src/shell/ClockControls.js.map +1 -0
- package/dist/src/shell/Code.d.ts +16 -0
- package/dist/src/shell/Code.d.ts.map +1 -0
- package/dist/src/shell/Code.js +9 -0
- package/dist/src/shell/Code.js.map +1 -0
- package/dist/src/shell/CodeTab.d.ts +17 -0
- package/dist/src/shell/CodeTab.d.ts.map +1 -0
- package/dist/src/shell/CodeTab.js +17 -0
- package/dist/src/shell/CodeTab.js.map +1 -0
- package/dist/src/shell/CodeText.d.ts +16 -0
- package/dist/src/shell/CodeText.d.ts.map +1 -0
- package/dist/src/shell/CodeText.js +10 -0
- package/dist/src/shell/CodeText.js.map +1 -0
- package/dist/src/shell/ComponentPage.d.ts +38 -0
- package/dist/src/shell/ComponentPage.d.ts.map +1 -0
- package/dist/src/shell/ComponentPage.js +146 -0
- package/dist/src/shell/ComponentPage.js.map +1 -0
- package/dist/src/shell/Dock.d.ts +42 -0
- package/dist/src/shell/Dock.d.ts.map +1 -0
- package/dist/src/shell/Dock.js +90 -0
- package/dist/src/shell/Dock.js.map +1 -0
- package/dist/src/shell/EventsTab.d.ts +25 -0
- package/dist/src/shell/EventsTab.d.ts.map +1 -0
- package/dist/src/shell/EventsTab.js +26 -0
- package/dist/src/shell/EventsTab.js.map +1 -0
- package/dist/src/shell/FrameView.d.ts +49 -0
- package/dist/src/shell/FrameView.d.ts.map +1 -0
- package/dist/src/shell/FrameView.js +29 -0
- package/dist/src/shell/FrameView.js.map +1 -0
- package/dist/src/shell/HomePage.d.ts +39 -0
- package/dist/src/shell/HomePage.d.ts.map +1 -0
- package/dist/src/shell/HomePage.js +85 -0
- package/dist/src/shell/HomePage.js.map +1 -0
- package/dist/src/shell/InteractionsTab.d.ts +28 -0
- package/dist/src/shell/InteractionsTab.d.ts.map +1 -0
- package/dist/src/shell/InteractionsTab.js +17 -0
- package/dist/src/shell/InteractionsTab.js.map +1 -0
- package/dist/src/shell/MatrixPicker.d.ts +24 -0
- package/dist/src/shell/MatrixPicker.d.ts.map +1 -0
- package/dist/src/shell/MatrixPicker.js +29 -0
- package/dist/src/shell/MatrixPicker.js.map +1 -0
- package/dist/src/shell/PackageHtml.d.ts +17 -0
- package/dist/src/shell/PackageHtml.d.ts.map +1 -0
- package/dist/src/shell/PackageHtml.js +13 -0
- package/dist/src/shell/PackageHtml.js.map +1 -0
- package/dist/src/shell/PartsTab.d.ts +23 -0
- package/dist/src/shell/PartsTab.d.ts.map +1 -0
- package/dist/src/shell/PartsTab.js +23 -0
- package/dist/src/shell/PartsTab.js.map +1 -0
- package/dist/src/shell/PropFields.d.ts +31 -0
- package/dist/src/shell/PropFields.d.ts.map +1 -0
- package/dist/src/shell/PropFields.js +81 -0
- package/dist/src/shell/PropFields.js.map +1 -0
- package/dist/src/shell/PropsTab.d.ts +45 -0
- package/dist/src/shell/PropsTab.d.ts.map +1 -0
- package/dist/src/shell/PropsTab.js +81 -0
- package/dist/src/shell/PropsTab.js.map +1 -0
- package/dist/src/shell/SchemeSwitches.d.ts +24 -0
- package/dist/src/shell/SchemeSwitches.d.ts.map +1 -0
- package/dist/src/shell/SchemeSwitches.js +36 -0
- package/dist/src/shell/SchemeSwitches.js.map +1 -0
- package/dist/src/shell/Segmented.d.ts +41 -0
- package/dist/src/shell/Segmented.d.ts.map +1 -0
- package/dist/src/shell/Segmented.js +19 -0
- package/dist/src/shell/Segmented.js.map +1 -0
- package/dist/src/shell/Shell.d.ts +49 -0
- package/dist/src/shell/Shell.d.ts.map +1 -0
- package/dist/src/shell/Shell.js +279 -0
- package/dist/src/shell/Shell.js.map +1 -0
- package/dist/src/shell/Sidebar.d.ts +52 -0
- package/dist/src/shell/Sidebar.d.ts.map +1 -0
- package/dist/src/shell/Sidebar.js +132 -0
- package/dist/src/shell/Sidebar.js.map +1 -0
- package/dist/src/shell/SidebarHandle.d.ts +29 -0
- package/dist/src/shell/SidebarHandle.d.ts.map +1 -0
- package/dist/src/shell/SidebarHandle.js +46 -0
- package/dist/src/shell/SidebarHandle.js.map +1 -0
- package/dist/src/shell/Stage.d.ts +68 -0
- package/dist/src/shell/Stage.d.ts.map +1 -0
- package/dist/src/shell/Stage.js +218 -0
- package/dist/src/shell/Stage.js.map +1 -0
- package/dist/src/shell/StageTools.d.ts +27 -0
- package/dist/src/shell/StageTools.d.ts.map +1 -0
- package/dist/src/shell/StageTools.js +34 -0
- package/dist/src/shell/StageTools.js.map +1 -0
- package/dist/src/shell/StageViewport.d.ts +47 -0
- package/dist/src/shell/StageViewport.d.ts.map +1 -0
- package/dist/src/shell/StageViewport.js +174 -0
- package/dist/src/shell/StageViewport.js.map +1 -0
- package/dist/src/shell/StoryCodeBlock.d.ts +35 -0
- package/dist/src/shell/StoryCodeBlock.d.ts.map +1 -0
- package/dist/src/shell/StoryCodeBlock.js +27 -0
- package/dist/src/shell/StoryCodeBlock.js.map +1 -0
- package/dist/src/shell/StoryPicker.d.ts +26 -0
- package/dist/src/shell/StoryPicker.d.ts.map +1 -0
- package/dist/src/shell/StoryPicker.js +32 -0
- package/dist/src/shell/StoryPicker.js.map +1 -0
- package/dist/src/shell/Toolbar.d.ts +40 -0
- package/dist/src/shell/Toolbar.d.ts.map +1 -0
- package/dist/src/shell/Toolbar.js +125 -0
- package/dist/src/shell/Toolbar.js.map +1 -0
- package/dist/src/shell/WidthField.d.ts +24 -0
- package/dist/src/shell/WidthField.d.ts.map +1 -0
- package/dist/src/shell/WidthField.js +40 -0
- package/dist/src/shell/WidthField.js.map +1 -0
- package/dist/src/shell/catalogueContext.d.ts +6 -0
- package/dist/src/shell/catalogueContext.d.ts.map +1 -0
- package/dist/src/shell/catalogueContext.js +14 -0
- package/dist/src/shell/catalogueContext.js.map +1 -0
- package/dist/src/shell/codeTokens.d.ts +23 -0
- package/dist/src/shell/codeTokens.d.ts.map +1 -0
- package/dist/src/shell/codeTokens.js +48 -0
- package/dist/src/shell/codeTokens.js.map +1 -0
- package/dist/src/shell/codeWriter.d.ts +6 -0
- package/dist/src/shell/codeWriter.d.ts.map +1 -0
- package/dist/src/shell/codeWriter.js +14 -0
- package/dist/src/shell/codeWriter.js.map +1 -0
- package/dist/src/shell/compareVariants.d.ts +35 -0
- package/dist/src/shell/compareVariants.d.ts.map +1 -0
- package/dist/src/shell/compareVariants.js +68 -0
- package/dist/src/shell/compareVariants.js.map +1 -0
- package/dist/src/shell/dockTabs.d.ts +63 -0
- package/dist/src/shell/dockTabs.d.ts.map +1 -0
- package/dist/src/shell/dockTabs.js +140 -0
- package/dist/src/shell/dockTabs.js.map +1 -0
- package/dist/src/shell/icons.d.ts +47 -0
- package/dist/src/shell/icons.d.ts.map +1 -0
- package/dist/src/shell/icons.js +36 -0
- package/dist/src/shell/icons.js.map +1 -0
- package/dist/src/shell/keyboard.d.ts +35 -0
- package/dist/src/shell/keyboard.d.ts.map +1 -0
- package/dist/src/shell/keyboard.js +51 -0
- package/dist/src/shell/keyboard.js.map +1 -0
- package/dist/src/shell/mountShell.d.ts +22 -0
- package/dist/src/shell/mountShell.d.ts.map +1 -0
- package/dist/src/shell/mountShell.js +39 -0
- package/dist/src/shell/mountShell.js.map +1 -0
- package/dist/src/shell/shell.css +1831 -0
- package/dist/src/shell/strings.d.ts +184 -0
- package/dist/src/shell/strings.d.ts.map +1 -0
- package/dist/src/shell/strings.js +188 -0
- package/dist/src/shell/strings.js.map +1 -0
- package/dist/src/shell/switchView.d.ts +23 -0
- package/dist/src/shell/switchView.d.ts.map +1 -0
- package/dist/src/shell/switchView.js +19 -0
- package/dist/src/shell/switchView.js.map +1 -0
- package/dist/src/shell/treeSearch.d.ts +35 -0
- package/dist/src/shell/treeSearch.d.ts.map +1 -0
- package/dist/src/shell/treeSearch.js +60 -0
- package/dist/src/shell/treeSearch.js.map +1 -0
- package/dist/src/shell/useComponentDocs.d.ts +16 -0
- package/dist/src/shell/useComponentDocs.d.ts.map +1 -0
- package/dist/src/shell/useComponentDocs.js +25 -0
- package/dist/src/shell/useComponentDocs.js.map +1 -0
- package/dist/src/shell/useCopy.d.ts +10 -0
- package/dist/src/shell/useCopy.d.ts.map +1 -0
- package/dist/src/shell/useCopy.js +23 -0
- package/dist/src/shell/useCopy.js.map +1 -0
- package/dist/src/shell/useFrameMessages.d.ts +54 -0
- package/dist/src/shell/useFrameMessages.d.ts.map +1 -0
- package/dist/src/shell/useFrameMessages.js +90 -0
- package/dist/src/shell/useFrameMessages.js.map +1 -0
- package/dist/src/shell/useFrameQueue.d.ts +29 -0
- package/dist/src/shell/useFrameQueue.d.ts.map +1 -0
- package/dist/src/shell/useFrameQueue.js +72 -0
- package/dist/src/shell/useFrameQueue.js.map +1 -0
- package/dist/src/shell/useLiveView.d.ts +29 -0
- package/dist/src/shell/useLiveView.d.ts.map +1 -0
- package/dist/src/shell/useLiveView.js +51 -0
- package/dist/src/shell/useLiveView.js.map +1 -0
- package/dist/src/shell/useLoaded.d.ts +20 -0
- package/dist/src/shell/useLoaded.d.ts.map +1 -0
- package/dist/src/shell/useLoaded.js +40 -0
- package/dist/src/shell/useLoaded.js.map +1 -0
- package/dist/src/shell/usePageDoc.d.ts +20 -0
- package/dist/src/shell/usePageDoc.d.ts.map +1 -0
- package/dist/src/shell/usePageDoc.js +21 -0
- package/dist/src/shell/usePageDoc.js.map +1 -0
- package/dist/src/shell/usePopover.d.ts +23 -0
- package/dist/src/shell/usePopover.d.ts.map +1 -0
- package/dist/src/shell/usePopover.js +39 -0
- package/dist/src/shell/usePopover.js.map +1 -0
- package/dist/src/shell/useRecentPages.d.ts +21 -0
- package/dist/src/shell/useRecentPages.d.ts.map +1 -0
- package/dist/src/shell/useRecentPages.js +62 -0
- package/dist/src/shell/useRecentPages.js.map +1 -0
- package/dist/src/shell/useScrollMemory.d.ts +40 -0
- package/dist/src/shell/useScrollMemory.d.ts.map +1 -0
- package/dist/src/shell/useScrollMemory.js +69 -0
- package/dist/src/shell/useScrollMemory.js.map +1 -0
- package/dist/src/shell/useSidebarLayout.d.ts +14 -0
- package/dist/src/shell/useSidebarLayout.d.ts.map +1 -0
- package/dist/src/shell/useSidebarLayout.js +19 -0
- package/dist/src/shell/useSidebarLayout.js.map +1 -0
- package/dist/src/shell/useStored.d.ts +11 -0
- package/dist/src/shell/useStored.d.ts.map +1 -0
- package/dist/src/shell/useStored.js +68 -0
- package/dist/src/shell/useStored.js.map +1 -0
- package/dist/src/shell/useStoryCode.d.ts +14 -0
- package/dist/src/shell/useStoryCode.d.ts.map +1 -0
- package/dist/src/shell/useStoryCode.js +29 -0
- package/dist/src/shell/useStoryCode.js.map +1 -0
- package/dist/src/shell/useStoryHeights.d.ts +9 -0
- package/dist/src/shell/useStoryHeights.d.ts.map +1 -0
- package/dist/src/shell/useStoryHeights.js +31 -0
- package/dist/src/shell/useStoryHeights.js.map +1 -0
- package/dist/src/shell/useStoryIdsElement.d.ts +7 -0
- package/dist/src/shell/useStoryIdsElement.d.ts.map +1 -0
- package/dist/src/shell/useStoryIdsElement.js +29 -0
- package/dist/src/shell/useStoryIdsElement.js.map +1 -0
- package/dist/src/shell/useStoryKeys.d.ts +11 -0
- package/dist/src/shell/useStoryKeys.d.ts.map +1 -0
- package/dist/src/shell/useStoryKeys.js +40 -0
- package/dist/src/shell/useStoryKeys.js.map +1 -0
- package/dist/src/shell/useSystemDark.d.ts +3 -0
- package/dist/src/shell/useSystemDark.d.ts.map +1 -0
- package/dist/src/shell/useSystemDark.js +19 -0
- package/dist/src/shell/useSystemDark.js.map +1 -0
- package/dist/src/sourceFiles.d.ts +18 -0
- package/dist/src/sourceFiles.d.ts.map +1 -0
- package/dist/src/sourceFiles.js +22 -0
- package/dist/src/sourceFiles.js.map +1 -0
- package/dist/src/storyBackground.d.ts +21 -0
- package/dist/src/storyBackground.d.ts.map +1 -0
- package/dist/src/storyBackground.js +27 -0
- package/dist/src/storyBackground.js.map +1 -0
- package/dist/src/storyClock.d.ts +62 -0
- package/dist/src/storyClock.d.ts.map +1 -0
- package/dist/src/storyClock.js +51 -0
- package/dist/src/storyClock.js.map +1 -0
- package/dist/src/storyGlobals.d.ts +60 -0
- package/dist/src/storyGlobals.d.ts.map +1 -0
- package/dist/src/storyGlobals.js +117 -0
- package/dist/src/storyGlobals.js.map +1 -0
- package/dist/src/storyHeights.d.ts +37 -0
- package/dist/src/storyHeights.d.ts.map +1 -0
- package/dist/src/storyHeights.js +53 -0
- package/dist/src/storyHeights.js.map +1 -0
- package/dist/src/storyIdsElement.d.ts +9 -0
- package/dist/src/storyIdsElement.d.ts.map +1 -0
- package/dist/src/storyIdsElement.js +9 -0
- package/dist/src/storyIdsElement.js.map +1 -0
- package/dist/src/storyTexts.d.ts +43 -0
- package/dist/src/storyTexts.d.ts.map +1 -0
- package/dist/src/storyTexts.js +71 -0
- package/dist/src/storyTexts.js.map +1 -0
- package/dist/src/storyTree.d.ts +215 -0
- package/dist/src/storyTree.d.ts.map +1 -0
- package/dist/src/storyTree.js +308 -0
- package/dist/src/storyTree.js.map +1 -0
- package/dist/src/switches.d.ts +156 -0
- package/dist/src/switches.d.ts.map +1 -0
- package/dist/src/switches.js +193 -0
- package/dist/src/switches.js.map +1 -0
- package/dist/src/viewState.d.ts +194 -0
- package/dist/src/viewState.d.ts.map +1 -0
- package/dist/src/viewState.js +303 -0
- package/dist/src/viewState.js.map +1 -0
- package/dist/src/vite/adapter.d.ts +70 -0
- package/dist/src/vite/adapter.d.ts.map +1 -0
- package/dist/src/vite/adapter.js +22 -0
- package/dist/src/vite/adapter.js.map +1 -0
- package/dist/src/vite/autoTitle.d.ts +28 -0
- package/dist/src/vite/autoTitle.d.ts.map +1 -0
- package/dist/src/vite/autoTitle.js +44 -0
- package/dist/src/vite/autoTitle.js.map +1 -0
- package/dist/src/vite/componentPage.d.ts +34 -0
- package/dist/src/vite/componentPage.d.ts.map +1 -0
- package/dist/src/vite/componentPage.js +94 -0
- package/dist/src/vite/componentPage.js.map +1 -0
- package/dist/src/vite/config.d.ts +72 -0
- package/dist/src/vite/config.d.ts.map +1 -0
- package/dist/src/vite/config.js +25 -0
- package/dist/src/vite/config.js.map +1 -0
- package/dist/src/vite/configFile.d.ts +76 -0
- package/dist/src/vite/configFile.d.ts.map +1 -0
- package/dist/src/vite/configFile.js +190 -0
- package/dist/src/vite/configFile.js.map +1 -0
- package/dist/src/vite/docsExtractor.d.ts +46 -0
- package/dist/src/vite/docsExtractor.d.ts.map +1 -0
- package/dist/src/vite/docsExtractor.js +88 -0
- package/dist/src/vite/docsExtractor.js.map +1 -0
- package/dist/src/vite/docsProgram.d.ts +42 -0
- package/dist/src/vite/docsProgram.d.ts.map +1 -0
- package/dist/src/vite/docsProgram.js +144 -0
- package/dist/src/vite/docsProgram.js.map +1 -0
- package/dist/src/vite/docsWorker.d.ts +2 -0
- package/dist/src/vite/docsWorker.d.ts.map +1 -0
- package/dist/src/vite/docsWorker.js +68 -0
- package/dist/src/vite/docsWorker.js.map +1 -0
- package/dist/src/vite/forcedStates.d.ts +27 -0
- package/dist/src/vite/forcedStates.d.ts.map +1 -0
- package/dist/src/vite/forcedStates.js +60 -0
- package/dist/src/vite/forcedStates.js.map +1 -0
- package/dist/src/vite/forgebookPlugin.d.ts +28 -0
- package/dist/src/vite/forgebookPlugin.d.ts.map +1 -0
- package/dist/src/vite/forgebookPlugin.js +375 -0
- package/dist/src/vite/forgebookPlugin.js.map +1 -0
- package/dist/src/vite/highlightCode.d.ts +16 -0
- package/dist/src/vite/highlightCode.d.ts.map +1 -0
- package/dist/src/vite/highlightCode.js +82 -0
- package/dist/src/vite/highlightCode.js.map +1 -0
- package/dist/src/vite/indexStoryFile.d.ts +35 -0
- package/dist/src/vite/indexStoryFile.d.ts.map +1 -0
- package/dist/src/vite/indexStoryFile.js +458 -0
- package/dist/src/vite/indexStoryFile.js.map +1 -0
- package/dist/src/vite/pages.d.ts +49 -0
- package/dist/src/vite/pages.d.ts.map +1 -0
- package/dist/src/vite/pages.js +171 -0
- package/dist/src/vite/pages.js.map +1 -0
- package/dist/src/vite/prebundled.d.ts +30 -0
- package/dist/src/vite/prebundled.d.ts.map +1 -0
- package/dist/src/vite/prebundled.js +81 -0
- package/dist/src/vite/prebundled.js.map +1 -0
- package/dist/src/vite/storyCode.d.ts +28 -0
- package/dist/src/vite/storyCode.d.ts.map +1 -0
- package/dist/src/vite/storyCode.js +80 -0
- package/dist/src/vite/storyCode.js.map +1 -0
- package/dist/src/vite/storyFilesModule.d.ts +17 -0
- package/dist/src/vite/storyFilesModule.d.ts.map +1 -0
- package/dist/src/vite/storyFilesModule.js +64 -0
- package/dist/src/vite/storyFilesModule.js.map +1 -0
- package/dist/src/vite/storyMeta.d.ts +34 -0
- package/dist/src/vite/storyMeta.d.ts.map +1 -0
- package/dist/src/vite/storyMeta.js +74 -0
- package/dist/src/vite/storyMeta.js.map +1 -0
- package/dist/src/vite/typeScriptPieces.d.ts +23 -0
- package/dist/src/vite/typeScriptPieces.d.ts.map +1 -0
- package/dist/src/vite/typeScriptPieces.js +236 -0
- package/dist/src/vite/typeScriptPieces.js.map +1 -0
- package/package.json +202 -3
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** What a coloured piece of code is, which is its colour. */
|
|
2
|
+
export type CodeRole = "keyword" | "string" | "number" | "comment" | "type" | "function" | "property" | "tag" | "attribute";
|
|
3
|
+
/** A slice of a block of code, with what it is when it is coloured. */
|
|
4
|
+
export type CodePiece = {
|
|
5
|
+
/** The slice, as written. */
|
|
6
|
+
readonly text: string;
|
|
7
|
+
/** What it is; none leaves it plain. */
|
|
8
|
+
readonly role?: CodeRole;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Whether a fence name is of the TypeScript family, coloured here.
|
|
12
|
+
*
|
|
13
|
+
* @param language - the fence name (`tsx`, `ts`, `js`), in any case.
|
|
14
|
+
*/
|
|
15
|
+
export declare const isTypeScriptLanguage: (language: string) => boolean;
|
|
16
|
+
/**
|
|
17
|
+
* A block of the TypeScript family as pieces, in order, covering it whole.
|
|
18
|
+
*
|
|
19
|
+
* @param code - the block.
|
|
20
|
+
* @param language - its fence name (`tsx`, `ts`, `js`, `jsx`…); one outside the family is read as TSX.
|
|
21
|
+
*/
|
|
22
|
+
export declare const typeScriptPieces: (code: string, language: string) => CodePiece[];
|
|
23
|
+
//# sourceMappingURL=typeScriptPieces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typeScriptPieces.d.ts","sourceRoot":"","sources":["../../../src/vite/typeScriptPieces.ts"],"names":[],"mappings":"AAsBA,6DAA6D;AAC7D,MAAM,MAAM,QAAQ,GAChB,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,MAAM,GACN,UAAU,GACV,UAAU,GACV,KAAK,GACL,WAAW,CAAC;AAEhB,uEAAuE;AACvE,MAAM,MAAM,SAAS,GAAG;IACtB,6BAA6B;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,wCAAwC;IACxC,QAAQ,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC;CAC1B,CAAC;AA2CF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAAI,UAAU,MAAM,KAAG,OACH,CAAC;AA4HtD;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAAI,MAAM,MAAM,EAAE,UAAU,MAAM,KAAG,SAAS,EAkC1E,CAAC"}
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Code of the TypeScript family (TypeScript, TSX, JavaScript, JSX) split into the pieces a reader tells apart, from
|
|
3
|
+
* the TypeScript compiler's syntactic classifications, for `highlightCode.ts` to colour (D-690).
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* highlight.js has no JSX grammar: it reads JSX as HTML, so an attribute holding a function or a `>` ends the tag
|
|
7
|
+
* early and the rest of the example is left plain. The compiler parses JSX as the language defines it.
|
|
8
|
+
*
|
|
9
|
+
* One language service in syntactic mode, created on the first block and kept: it parses the block alone (no
|
|
10
|
+
* program, no library, no type checker), so a block costs a parse, not a type check. Its classifications tell
|
|
11
|
+
* keywords, literals (a regular expression among the strings), comments, JSX and the names declared by a class, an
|
|
12
|
+
* interface, an enum, a namespace or a type parameter apart; a name they leave as a plain identifier is placed from
|
|
13
|
+
* the block's syntax tree: a type where a type is written, a function where it is called or declared, a property
|
|
14
|
+
* where it is read or declared (D-691). The rest (operators, punctuation, plain names, JSX text) stays plain.
|
|
15
|
+
*
|
|
16
|
+
* The pieces are slices of the code, in order, covering it whole: the caller escapes each one, so a coloured piece
|
|
17
|
+
* never splits an HTML entity.
|
|
18
|
+
*
|
|
19
|
+
* @module
|
|
20
|
+
*/
|
|
21
|
+
import ts from "typescript-6";
|
|
22
|
+
/** The fence names of the TypeScript family, and the kind of file each one is parsed as. */
|
|
23
|
+
const SCRIPT_KINDS = {
|
|
24
|
+
ts: ts.ScriptKind.TS,
|
|
25
|
+
typescript: ts.ScriptKind.TS,
|
|
26
|
+
mts: ts.ScriptKind.TS,
|
|
27
|
+
cts: ts.ScriptKind.TS,
|
|
28
|
+
tsx: ts.ScriptKind.TSX,
|
|
29
|
+
js: ts.ScriptKind.JS,
|
|
30
|
+
javascript: ts.ScriptKind.JS,
|
|
31
|
+
mjs: ts.ScriptKind.JS,
|
|
32
|
+
cjs: ts.ScriptKind.JS,
|
|
33
|
+
jsx: ts.ScriptKind.JSX
|
|
34
|
+
};
|
|
35
|
+
/** The name the block is parsed under, for each kind of file: the extension tells the parser whether JSX is read. */
|
|
36
|
+
const FILE_NAMES = new Map([
|
|
37
|
+
[ts.ScriptKind.TS, "/block.ts"],
|
|
38
|
+
[ts.ScriptKind.TSX, "/block.tsx"],
|
|
39
|
+
[ts.ScriptKind.JS, "/block.js"],
|
|
40
|
+
[ts.ScriptKind.JSX, "/block.jsx"]
|
|
41
|
+
]);
|
|
42
|
+
/** The compiler's classifications that colour a piece by themselves; the others are placed or left plain. */
|
|
43
|
+
const CLASSIFICATION_ROLES = new Map([
|
|
44
|
+
[ts.ClassificationType.keyword, "keyword"],
|
|
45
|
+
[ts.ClassificationType.stringLiteral, "string"],
|
|
46
|
+
[ts.ClassificationType.jsxAttributeStringLiteralValue, "string"],
|
|
47
|
+
[ts.ClassificationType.numericLiteral, "number"],
|
|
48
|
+
[ts.ClassificationType.bigintLiteral, "number"],
|
|
49
|
+
[ts.ClassificationType.comment, "comment"],
|
|
50
|
+
[ts.ClassificationType.className, "type"],
|
|
51
|
+
[ts.ClassificationType.enumName, "type"],
|
|
52
|
+
[ts.ClassificationType.interfaceName, "type"],
|
|
53
|
+
[ts.ClassificationType.typeParameterName, "type"],
|
|
54
|
+
[ts.ClassificationType.moduleName, "type"],
|
|
55
|
+
[ts.ClassificationType.jsxOpenTagName, "tag"],
|
|
56
|
+
[ts.ClassificationType.jsxCloseTagName, "tag"],
|
|
57
|
+
[ts.ClassificationType.jsxSelfClosingTagName, "tag"],
|
|
58
|
+
[ts.ClassificationType.jsxAttribute, "attribute"]
|
|
59
|
+
]);
|
|
60
|
+
/**
|
|
61
|
+
* Whether a fence name is of the TypeScript family, coloured here.
|
|
62
|
+
*
|
|
63
|
+
* @param language - the fence name (`tsx`, `ts`, `js`), in any case.
|
|
64
|
+
*/
|
|
65
|
+
export const isTypeScriptLanguage = (language) => Object.hasOwn(SCRIPT_KINDS, language.toLowerCase());
|
|
66
|
+
/** The block being classified: the language service reads it through its host. */
|
|
67
|
+
const current = { fileName: "/block.tsx", text: "", version: 0 };
|
|
68
|
+
/** The language service, created on the first block. */
|
|
69
|
+
let service;
|
|
70
|
+
/** The language service over the current block, in syntactic mode: it parses, never type-checks. */
|
|
71
|
+
const languageService = () => {
|
|
72
|
+
if (service !== undefined)
|
|
73
|
+
return service;
|
|
74
|
+
const host = {
|
|
75
|
+
getCompilationSettings: () => ({ jsx: ts.JsxEmit.Preserve, allowJs: true }),
|
|
76
|
+
getScriptFileNames: () => [current.fileName],
|
|
77
|
+
getScriptVersion: () => String(current.version),
|
|
78
|
+
getScriptSnapshot: (fileName) => fileName === current.fileName ? ts.ScriptSnapshot.fromString(current.text) : undefined,
|
|
79
|
+
getCurrentDirectory: () => "/",
|
|
80
|
+
getDefaultLibFileName: () => "/lib.d.ts",
|
|
81
|
+
readFile: () => undefined,
|
|
82
|
+
fileExists: (fileName) => fileName === current.fileName
|
|
83
|
+
};
|
|
84
|
+
service = ts.createLanguageService(host, undefined, ts.LanguageServiceMode.Syntactic);
|
|
85
|
+
return service;
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* The name a node writes in a type's place: a type reference, a type alias, a heritage clause, the class of a `new`,
|
|
89
|
+
* a name imported as a type.
|
|
90
|
+
*
|
|
91
|
+
* @param node - any node of the block.
|
|
92
|
+
*/
|
|
93
|
+
const typeName = (node) => {
|
|
94
|
+
if (ts.isTypeReferenceNode(node))
|
|
95
|
+
return node.typeName;
|
|
96
|
+
if (ts.isTypeAliasDeclaration(node))
|
|
97
|
+
return node.name;
|
|
98
|
+
if (ts.isExpressionWithTypeArguments(node) || ts.isNewExpression(node))
|
|
99
|
+
return node.expression;
|
|
100
|
+
if (ts.isImportSpecifier(node) && (node.isTypeOnly || node.parent.parent.isTypeOnly))
|
|
101
|
+
return node.name;
|
|
102
|
+
return undefined;
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* The name a node calls or declares as a function: a call, a tagged template, a function or method, a variable
|
|
106
|
+
* holding an arrow or a function expression.
|
|
107
|
+
*
|
|
108
|
+
* @param node - any node of the block.
|
|
109
|
+
*/
|
|
110
|
+
const functionName = (node) => {
|
|
111
|
+
if (ts.isCallExpression(node))
|
|
112
|
+
return node.expression;
|
|
113
|
+
if (ts.isTaggedTemplateExpression(node))
|
|
114
|
+
return node.tag;
|
|
115
|
+
if (ts.isFunctionDeclaration(node) || ts.isMethodDeclaration(node) || ts.isMethodSignature(node)) {
|
|
116
|
+
return node.name;
|
|
117
|
+
}
|
|
118
|
+
if (!ts.isVariableDeclaration(node) || node.initializer === undefined)
|
|
119
|
+
return undefined;
|
|
120
|
+
const isFunction = ts.isArrowFunction(node.initializer) || ts.isFunctionExpression(node.initializer);
|
|
121
|
+
return isFunction ? node.name : undefined;
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* The name a node reads or declares as a property: a member read, a property of an object, a type or a class, an
|
|
125
|
+
* accessor.
|
|
126
|
+
*
|
|
127
|
+
* @param node - any node of the block.
|
|
128
|
+
*/
|
|
129
|
+
const propertyName = (node) => {
|
|
130
|
+
if (ts.isPropertyAccessExpression(node))
|
|
131
|
+
return node.name;
|
|
132
|
+
const isDeclaration = ts.isPropertyAssignment(node) ||
|
|
133
|
+
ts.isPropertySignature(node) ||
|
|
134
|
+
ts.isPropertyDeclaration(node) ||
|
|
135
|
+
ts.isGetAccessorDeclaration(node) ||
|
|
136
|
+
ts.isSetAccessorDeclaration(node);
|
|
137
|
+
return isDeclaration ? node.name : undefined;
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* Where each name the classifications leave plain stands, by its start: a type, a function or a property.
|
|
141
|
+
*
|
|
142
|
+
* @remarks
|
|
143
|
+
* The first role found wins, and a node is read before its children: a call places its member as a function
|
|
144
|
+
* (`items.map(…)`) before the member read under it would place it as a property.
|
|
145
|
+
*
|
|
146
|
+
* @param sourceFile - the block, parsed with its parents set.
|
|
147
|
+
*/
|
|
148
|
+
const nameRoles = (sourceFile) => {
|
|
149
|
+
const roles = new Map();
|
|
150
|
+
const mark = (node, role) => {
|
|
151
|
+
// a dotted name (`React.ReactNode`, `items.map`) takes the role on its last part
|
|
152
|
+
if (node === undefined)
|
|
153
|
+
return;
|
|
154
|
+
if (ts.isPropertyAccessExpression(node))
|
|
155
|
+
mark(node.name, role);
|
|
156
|
+
else if (ts.isQualifiedName(node))
|
|
157
|
+
mark(node.right, role);
|
|
158
|
+
else if (ts.isIdentifier(node) || ts.isPrivateIdentifier(node)) {
|
|
159
|
+
const start = node.getStart(sourceFile);
|
|
160
|
+
if (!roles.has(start))
|
|
161
|
+
roles.set(start, role);
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
const visit = (node) => {
|
|
165
|
+
mark(typeName(node), "type");
|
|
166
|
+
mark(functionName(node), "function");
|
|
167
|
+
mark(propertyName(node), "property");
|
|
168
|
+
ts.forEachChild(node, visit);
|
|
169
|
+
};
|
|
170
|
+
visit(sourceFile);
|
|
171
|
+
return roles;
|
|
172
|
+
};
|
|
173
|
+
/**
|
|
174
|
+
* Where the comment a comment span opens ends: a block comment after its closing `*` `/`, a line comment at its
|
|
175
|
+
* line's end. The compiler splits a documentation comment into its tags and names (and gives one of its pieces
|
|
176
|
+
* twice); the comment is coloured whole instead, as one piece, as it reads.
|
|
177
|
+
*
|
|
178
|
+
* @param code - the block.
|
|
179
|
+
* @param start - where the span starts.
|
|
180
|
+
* @param end - where the span ends: the answer for a span that does not open a comment.
|
|
181
|
+
*/
|
|
182
|
+
const commentEnd = (code, start, end) => {
|
|
183
|
+
if (code.startsWith("/*", start)) {
|
|
184
|
+
const close = code.indexOf("*/", start + 2);
|
|
185
|
+
return close === -1 ? code.length : close + 2;
|
|
186
|
+
}
|
|
187
|
+
if (!code.startsWith("//", start))
|
|
188
|
+
return end;
|
|
189
|
+
const lineEnd = code.slice(start).search(/[\r\n]/);
|
|
190
|
+
return lineEnd === -1 ? code.length : start + lineEnd;
|
|
191
|
+
};
|
|
192
|
+
/**
|
|
193
|
+
* A block of the TypeScript family as pieces, in order, covering it whole.
|
|
194
|
+
*
|
|
195
|
+
* @param code - the block.
|
|
196
|
+
* @param language - its fence name (`tsx`, `ts`, `js`, `jsx`…); one outside the family is read as TSX.
|
|
197
|
+
*/
|
|
198
|
+
export const typeScriptPieces = (code, language) => {
|
|
199
|
+
const scriptKind = SCRIPT_KINDS[language.toLowerCase()] ?? ts.ScriptKind.TSX;
|
|
200
|
+
current.fileName = FILE_NAMES.get(scriptKind) ?? "/block.tsx";
|
|
201
|
+
current.text = code;
|
|
202
|
+
current.version += 1;
|
|
203
|
+
const { spans } = languageService().getEncodedSyntacticClassifications(current.fileName, {
|
|
204
|
+
start: 0,
|
|
205
|
+
length: code.length
|
|
206
|
+
});
|
|
207
|
+
const roles = nameRoles(ts.createSourceFile(current.fileName, code, ts.ScriptTarget.Latest, true, scriptKind));
|
|
208
|
+
const pieces = [];
|
|
209
|
+
let cursor = 0;
|
|
210
|
+
const push = (end, role) => {
|
|
211
|
+
if (end <= cursor)
|
|
212
|
+
return;
|
|
213
|
+
const text = code.slice(cursor, end);
|
|
214
|
+
pieces.push(role === undefined ? { text } : { text, role });
|
|
215
|
+
cursor = end;
|
|
216
|
+
};
|
|
217
|
+
// the spans come as triples: start, length, classification
|
|
218
|
+
for (let index = 0; index + 2 < spans.length; index += 3) {
|
|
219
|
+
const start = spans[index] ?? 0;
|
|
220
|
+
const end = start + (spans[index + 1] ?? 0);
|
|
221
|
+
const classification = spans[index + 2] ?? ts.ClassificationType.text;
|
|
222
|
+
// a span inside a piece already written (a comment taken whole) is part of it
|
|
223
|
+
if (start < cursor)
|
|
224
|
+
continue;
|
|
225
|
+
push(start);
|
|
226
|
+
if (classification === ts.ClassificationType.comment)
|
|
227
|
+
push(commentEnd(code, start, end), "comment");
|
|
228
|
+
else if (classification === ts.ClassificationType.identifier)
|
|
229
|
+
push(end, roles.get(start));
|
|
230
|
+
else
|
|
231
|
+
push(end, CLASSIFICATION_ROLES.get(classification));
|
|
232
|
+
}
|
|
233
|
+
push(code.length);
|
|
234
|
+
return pieces;
|
|
235
|
+
};
|
|
236
|
+
//# sourceMappingUR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AI,CAAC,CAAC,CAAC;QAC5C,MAAM,cAAc,GAA0B,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,kBAAkB,CAAC,IAAI,CAAC;QAC7F,8EAA8E;QAC9E,IAAI,KAAK,GAAG,MAAM;YAAE,SAAS;QAC7B,IAAI,CAAC,KAAK,CAAC,CAAC;QACZ,IAAI,cAAc,KAAK,EAAE,CAAC,kBAAkB,CAAC,OAAO;YAAE,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,CAAC,EAAE,SAAS,CAAC,CAAC;aAC/F,IAAI,cAAc,KAAK,EAAE,CAAC,kBAAkB,CAAC,UAAU;YAAE,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;;YACrF,IAAI,CAAC,GAAG,EAAE,oBAAoB,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC;IAC3D,CAAC;IACD,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAClB,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,205 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "forgebook",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "See every component in every theme, contrast, language and width: CSF stories, one frame per story, and a props table from the components' types.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"react",
|
|
7
|
+
"catalogue",
|
|
8
|
+
"stories",
|
|
9
|
+
"csf",
|
|
10
|
+
"design-system"
|
|
11
|
+
],
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"author": "Jason Scoppetta",
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/Ensiria/forgebook.git",
|
|
17
|
+
"directory": "packages/forgebook"
|
|
18
|
+
},
|
|
19
|
+
"type": "module",
|
|
20
|
+
"files": [
|
|
21
|
+
"dist"
|
|
22
|
+
],
|
|
23
|
+
"engines": {
|
|
24
|
+
"node": ">=22.18"
|
|
25
|
+
},
|
|
26
|
+
"sideEffects": [
|
|
27
|
+
"*.css",
|
|
28
|
+
"*.scss"
|
|
29
|
+
],
|
|
30
|
+
"bin": {
|
|
31
|
+
"forgebook": "./dist/bin/forgebook/forgebook.mjs",
|
|
32
|
+
"forgebook-docs": "./dist/bin/forgebook-docs/forgebook-docs.mjs",
|
|
33
|
+
"forgebook-texts": "./dist/bin/forgebook-texts/forgebook-texts.mjs"
|
|
34
|
+
},
|
|
35
|
+
"exports": {
|
|
36
|
+
".": {
|
|
37
|
+
"types": "./dist/src/vite/config.d.ts",
|
|
38
|
+
"default": "./dist/src/vite/config.js"
|
|
39
|
+
},
|
|
40
|
+
"./story-tree": {
|
|
41
|
+
"types": "./dist/src/storyTree.d.ts",
|
|
42
|
+
"default": "./dist/src/storyTree.js"
|
|
43
|
+
},
|
|
44
|
+
"./shell": {
|
|
45
|
+
"types": "./dist/src/shell/mountShell.d.ts",
|
|
46
|
+
"default": "./dist/src/shell/mountShell.js"
|
|
47
|
+
},
|
|
48
|
+
"./frame": {
|
|
49
|
+
"types": "./dist/src/frame/mountFrame.d.ts",
|
|
50
|
+
"default": "./dist/src/frame/mountFrame.js"
|
|
51
|
+
},
|
|
52
|
+
"./vite": {
|
|
53
|
+
"types": "./dist/src/vite/forgebookPlugin.d.ts",
|
|
54
|
+
"default": "./dist/src/vite/forgebookPlugin.js"
|
|
55
|
+
},
|
|
56
|
+
"./renderer": {
|
|
57
|
+
"types": "./dist/src/frame/renderer.d.ts",
|
|
58
|
+
"default": "./dist/src/frame/renderer.js"
|
|
59
|
+
},
|
|
60
|
+
"./story-hooks": {
|
|
61
|
+
"types": "./dist/src/frame/storyHooks.d.ts",
|
|
62
|
+
"default": "./dist/src/frame/storyHooks.js"
|
|
63
|
+
},
|
|
64
|
+
"./story-module": {
|
|
65
|
+
"types": "./dist/src/frame/storyModule.d.ts",
|
|
66
|
+
"default": "./dist/src/frame/storyModule.js"
|
|
67
|
+
},
|
|
68
|
+
"./messages": {
|
|
69
|
+
"types": "./dist/src/messages.d.ts",
|
|
70
|
+
"default": "./dist/src/messages.js"
|
|
71
|
+
},
|
|
72
|
+
"./component-docs": {
|
|
73
|
+
"types": "./dist/src/componentDocs.d.ts",
|
|
74
|
+
"default": "./dist/src/componentDocs.js"
|
|
75
|
+
},
|
|
76
|
+
"./vite/adapter": {
|
|
77
|
+
"types": "./dist/src/vite/adapter.d.ts",
|
|
78
|
+
"default": "./dist/src/vite/adapter.js"
|
|
79
|
+
},
|
|
80
|
+
"./vite/docs-program": {
|
|
81
|
+
"types": "./dist/src/vite/docsProgram.d.ts",
|
|
82
|
+
"default": "./dist/src/vite/docsProgram.js"
|
|
83
|
+
},
|
|
84
|
+
"./vite/story-meta": {
|
|
85
|
+
"types": "./dist/src/vite/storyMeta.d.ts",
|
|
86
|
+
"default": "./dist/src/vite/storyMeta.js"
|
|
87
|
+
},
|
|
88
|
+
"./catalogue-docs": {
|
|
89
|
+
"types": "./dist/bin/forgebook-docs/collectDocs.d.ts",
|
|
90
|
+
"default": "./dist/bin/forgebook-docs/collectDocs.js"
|
|
91
|
+
},
|
|
92
|
+
"./catalogue-markdown": {
|
|
93
|
+
"types": "./dist/bin/forgebook-docs/catalogueMarkdown.d.ts",
|
|
94
|
+
"default": "./dist/bin/forgebook-docs/catalogueMarkdown.js"
|
|
95
|
+
},
|
|
96
|
+
"./a11y": {
|
|
97
|
+
"types": "./dist/src/a11y.d.ts",
|
|
98
|
+
"default": "./dist/src/a11y.js"
|
|
99
|
+
},
|
|
100
|
+
"./frame-status": {
|
|
101
|
+
"types": "./dist/src/frame/frameStatus.d.ts",
|
|
102
|
+
"default": "./dist/src/frame/frameStatus.js"
|
|
103
|
+
},
|
|
104
|
+
"./story-heights": {
|
|
105
|
+
"types": "./dist/src/storyHeights.d.ts",
|
|
106
|
+
"default": "./dist/src/storyHeights.js"
|
|
107
|
+
},
|
|
108
|
+
"./story-ids-element": {
|
|
109
|
+
"types": "./dist/src/storyIdsElement.d.ts",
|
|
110
|
+
"default": "./dist/src/storyIdsElement.js"
|
|
111
|
+
},
|
|
112
|
+
"./view-state": {
|
|
113
|
+
"types": "./dist/src/viewState.d.ts",
|
|
114
|
+
"default": "./dist/src/viewState.js"
|
|
115
|
+
},
|
|
116
|
+
"./frame-clock": {
|
|
117
|
+
"types": "./dist/src/frame/frameClock.d.ts",
|
|
118
|
+
"default": "./dist/src/frame/frameClock.js"
|
|
119
|
+
},
|
|
120
|
+
"./source-files": {
|
|
121
|
+
"types": "./dist/src/sourceFiles.d.ts",
|
|
122
|
+
"default": "./dist/src/sourceFiles.js"
|
|
123
|
+
},
|
|
124
|
+
"./story-clock": {
|
|
125
|
+
"types": "./dist/src/storyClock.d.ts",
|
|
126
|
+
"default": "./dist/src/storyClock.js"
|
|
127
|
+
},
|
|
128
|
+
"./story-texts": {
|
|
129
|
+
"types": "./dist/src/storyTexts.d.ts",
|
|
130
|
+
"default": "./dist/src/storyTexts.js"
|
|
131
|
+
},
|
|
132
|
+
"./vite/auto-title": {
|
|
133
|
+
"types": "./dist/src/vite/autoTitle.d.ts",
|
|
134
|
+
"default": "./dist/src/vite/autoTitle.js"
|
|
135
|
+
},
|
|
136
|
+
"./vite/index-story-file": {
|
|
137
|
+
"types": "./dist/src/vite/indexStoryFile.d.ts",
|
|
138
|
+
"default": "./dist/src/vite/indexStoryFile.js"
|
|
139
|
+
},
|
|
140
|
+
"./vite/story-files-module": {
|
|
141
|
+
"types": "./dist/src/vite/storyFilesModule.d.ts",
|
|
142
|
+
"default": "./dist/src/vite/storyFilesModule.js"
|
|
143
|
+
},
|
|
144
|
+
"./switches": {
|
|
145
|
+
"types": "./dist/src/switches.d.ts",
|
|
146
|
+
"default": "./dist/src/switches.js"
|
|
147
|
+
},
|
|
148
|
+
"./catalogue": {
|
|
149
|
+
"types": "./dist/src/catalogue.d.ts",
|
|
150
|
+
"default": "./dist/src/catalogue.js"
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"dependencies": {
|
|
154
|
+
"@ensiria/cli-kit": "^0.1.1",
|
|
155
|
+
"axe-core": "4.14.0",
|
|
156
|
+
"highlight.js": "11.12.0",
|
|
157
|
+
"lightningcss": "1.33.0",
|
|
158
|
+
"marked": "18.1.0",
|
|
159
|
+
"typescript-6": "npm:typescript@6.0.3",
|
|
160
|
+
"@forgebook/story-format": "0.1.0"
|
|
161
|
+
},
|
|
162
|
+
"peerDependencies": {
|
|
163
|
+
"@testing-library/dom": "^10.4.0",
|
|
164
|
+
"@testing-library/user-event": "^14.6.0",
|
|
165
|
+
"react": "^19.0.0",
|
|
166
|
+
"react-dom": "^19.0.0",
|
|
167
|
+
"sass-embedded": "^1.80.0",
|
|
168
|
+
"vite": "^8.0.0"
|
|
169
|
+
},
|
|
170
|
+
"devDependencies": {
|
|
171
|
+
"@testing-library/dom": "10.4.2",
|
|
172
|
+
"@testing-library/user-event": "14.6.8",
|
|
173
|
+
"@types/node": "24.19.2",
|
|
174
|
+
"@types/react": "19.3.0",
|
|
175
|
+
"@types/react-dom": "19.3.0",
|
|
176
|
+
"happy-dom": "21.0.4",
|
|
177
|
+
"react": "19.3.0",
|
|
178
|
+
"react-dom": "19.3.0",
|
|
179
|
+
"sass-embedded": "1.106.1",
|
|
180
|
+
"vite": "8.3.5",
|
|
181
|
+
"vitest": "5.0.5",
|
|
182
|
+
"@forgebook/tools": "0.0.0",
|
|
183
|
+
"@forgebook/typescript-config": "0.0.0"
|
|
184
|
+
},
|
|
185
|
+
"peerDependenciesMeta": {
|
|
186
|
+
"@testing-library/dom": {
|
|
187
|
+
"optional": true
|
|
188
|
+
},
|
|
189
|
+
"@testing-library/user-event": {
|
|
190
|
+
"optional": true
|
|
191
|
+
},
|
|
192
|
+
"sass-embedded": {
|
|
193
|
+
"optional": true
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"publishConfig": {
|
|
197
|
+
"access": "public"
|
|
198
|
+
},
|
|
199
|
+
"scripts": {
|
|
200
|
+
"build": "package-build build",
|
|
201
|
+
"manifest": "package-build manifest",
|
|
202
|
+
"test": "vitest run",
|
|
203
|
+
"typecheck": "tsc -p src && tsc -p src/vite && tsc -p bin && tsc -p test"
|
|
204
|
+
}
|
|
6
205
|
}
|