forgebook 0.1.7 → 0.2.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 +906 -23
- package/dist/bin/forgebook/agentClient.d.ts +30 -1
- package/dist/bin/forgebook/agentClient.js +155 -14
- package/dist/bin/forgebook/agentLoopCommands.d.mts +0 -1
- package/dist/bin/forgebook/agentLoopCommands.mjs +161 -40
- package/dist/bin/forgebook/agentText.d.ts +74 -3
- package/dist/bin/forgebook/agentText.js +192 -8
- package/dist/bin/forgebook/agents.md +145 -7
- package/dist/bin/forgebook/agentsText.d.ts +7 -3
- package/dist/bin/forgebook/agentsText.js +7 -3
- package/dist/bin/forgebook/builtCatalogue.d.ts +31 -0
- package/dist/bin/forgebook/builtCatalogue.js +96 -0
- package/dist/bin/forgebook/catalogueCommands.d.ts +22 -3
- package/dist/bin/forgebook/catalogueCommands.js +21 -2
- package/dist/bin/forgebook/catalogueVite.d.ts +51 -9
- package/dist/bin/forgebook/catalogueVite.js +95 -9
- package/dist/bin/forgebook/checkCodeRun.d.ts +8 -0
- package/dist/bin/forgebook/checkCodeRun.js +27 -0
- package/dist/bin/forgebook/commandServer.d.ts +11 -0
- package/dist/bin/forgebook/commandServer.js +39 -0
- package/dist/bin/forgebook/compileCache.d.ts +7 -0
- package/dist/bin/forgebook/compileCache.js +24 -0
- package/dist/bin/forgebook/devCommands.d.mts +14 -0
- package/dist/bin/forgebook/devCommands.mjs +104 -0
- package/dist/bin/forgebook/errorsRun.d.ts +0 -1
- package/dist/bin/forgebook/errorsRun.js +0 -1
- package/dist/bin/forgebook/forgebook.d.mts +0 -1
- package/dist/bin/forgebook/forgebook.mjs +18 -302
- package/dist/bin/forgebook/forgebookCommands.d.mts +1 -0
- package/dist/bin/forgebook/forgebookCommands.mjs +292 -0
- package/dist/bin/forgebook/importers/storybook.d.ts +10 -4
- package/dist/bin/forgebook/importers/storybook.js +71 -45
- package/dist/bin/forgebook/importers/storybookAngular.d.ts +15 -0
- package/dist/bin/forgebook/importers/storybookAngular.js +97 -0
- package/dist/bin/forgebook/importers/storybookFrameworks.d.ts +53 -0
- package/dist/bin/forgebook/importers/storybookFrameworks.js +180 -0
- package/dist/bin/forgebook/importers/storybookReactNative.d.ts +40 -0
- package/dist/bin/forgebook/importers/storybookReactNative.js +179 -0
- package/dist/bin/forgebook/initCommands.d.mts +0 -1
- package/dist/bin/forgebook/initCommands.mjs +23 -12
- package/dist/bin/forgebook/initConfig.d.ts +0 -1
- package/dist/bin/forgebook/initConfig.js +17 -3
- package/dist/bin/forgebook/mcpCommand.d.mts +8 -0
- package/dist/bin/forgebook/mcpCommand.mjs +99 -0
- package/dist/bin/forgebook/mcpPreview.d.ts +32 -0
- package/dist/bin/forgebook/mcpPreview.js +107 -0
- package/dist/bin/forgebook/mcpToolParts.d.ts +28 -0
- package/dist/bin/forgebook/mcpToolParts.js +24 -0
- package/dist/bin/forgebook/mcpTools.d.ts +12 -6
- package/dist/bin/forgebook/mcpTools.js +148 -27
- package/dist/bin/forgebook/newStories.d.ts +2 -3
- package/dist/bin/forgebook/newStories.js +4 -3
- package/dist/bin/forgebook/newStoriesFile.d.ts +3 -4
- package/dist/bin/forgebook/newStoriesFile.js +23 -11
- package/dist/bin/forgebook/pageTools.d.ts +8 -0
- package/dist/bin/forgebook/pageTools.js +71 -0
- package/dist/bin/forgebook/pagesCommands.d.mts +14 -0
- package/dist/bin/forgebook/pagesCommands.mjs +109 -0
- package/dist/bin/forgebook/prebundleChild.d.ts +1 -0
- package/dist/bin/forgebook/prebundleChild.js +34 -0
- package/dist/bin/forgebook/prebundleRun.d.ts +22 -0
- package/dist/bin/forgebook/prebundleRun.js +49 -0
- package/dist/bin/forgebook/prebundleStart.d.ts +44 -0
- package/dist/bin/forgebook/prebundleStart.js +82 -0
- package/dist/bin/forgebook/semanticOptions.d.ts +45 -0
- package/dist/bin/forgebook/semanticOptions.js +36 -0
- package/dist/bin/forgebook/storyCheckCommands.d.mts +13 -0
- package/dist/bin/forgebook/storyCheckCommands.mjs +69 -0
- package/dist/bin/forgebook/storyCheckRun.d.ts +40 -6
- package/dist/bin/forgebook/storyCheckRun.js +90 -16
- package/dist/bin/forgebook/tokensRun.d.ts +41 -0
- package/dist/bin/forgebook/tokensRun.js +42 -0
- package/dist/bin/forgebook/touchWindowRun.d.ts +0 -1
- package/dist/bin/forgebook/touchWindowRun.js +0 -1
- package/dist/bin/forgebook/visualCommands.d.mts +37 -0
- package/dist/bin/forgebook/visualCommands.mjs +162 -0
- package/dist/bin/forgebook/viteCache.d.ts +48 -0
- package/dist/bin/forgebook/viteCache.js +112 -0
- package/dist/bin/forgebook-docs/catalogueDocs.d.ts +1 -2
- package/dist/bin/forgebook-docs/catalogueDocs.js +8 -5
- package/dist/bin/forgebook-docs/catalogueDocs.types.d.ts +24 -3
- package/dist/bin/forgebook-docs/catalogueDocs.types.js +0 -1
- package/dist/bin/forgebook-docs/catalogueMarkdown.d.ts +0 -1
- package/dist/bin/forgebook-docs/catalogueMarkdown.js +88 -24
- package/dist/bin/forgebook-docs/catalogueOptions.d.ts +1 -2
- package/dist/bin/forgebook-docs/catalogueOptions.js +8 -2
- package/dist/bin/forgebook-docs/collectDocs.d.ts +4 -4
- package/dist/bin/forgebook-docs/collectDocs.js +128 -29
- package/dist/bin/forgebook-docs/forgebook-docs.d.mts +0 -1
- package/dist/bin/forgebook-docs/forgebook-docs.mjs +0 -1
- package/dist/bin/forgebook-docs/llmsText.d.ts +5 -1
- package/dist/bin/forgebook-docs/llmsText.js +5 -2
- package/dist/bin/forgebook-docs/moduleDocs.d.ts +0 -1
- package/dist/bin/forgebook-docs/moduleDocs.js +0 -1
- package/dist/bin/forgebook-docs/sassDocs.d.ts +0 -1
- package/dist/bin/forgebook-docs/sassDocs.js +0 -1
- package/dist/bin/forgebook-texts/forgebook-texts.d.mts +0 -1
- package/dist/bin/forgebook-texts/forgebook-texts.mjs +1 -2
- package/dist/bin/forgebook-texts/storyTextsReport.d.ts +0 -1
- package/dist/bin/forgebook-texts/storyTextsReport.js +0 -1
- package/dist/bin/forgebook-texts/storyTextsReport.types.d.ts +0 -1
- package/dist/bin/forgebook-texts/storyTextsReport.types.js +0 -1
- package/dist/bin/frameworkDocs.d.ts +0 -1
- package/dist/bin/frameworkDocs.js +0 -1
- package/dist/src/a11y.d.ts +0 -1
- package/dist/src/a11y.js +0 -1
- package/dist/src/addressArgs.d.ts +74 -0
- package/dist/src/addressArgs.js +109 -0
- package/dist/src/addressTexts.d.ts +35 -0
- package/dist/src/addressTexts.js +51 -0
- package/dist/src/argTypes.d.ts +0 -1
- package/dist/src/argTypes.js +2 -2
- package/dist/src/audiences.d.ts +17 -0
- package/dist/src/audiences.js +15 -0
- package/dist/src/backdrops.d.ts +39 -40
- package/dist/src/backdrops.js +37 -174
- package/dist/src/catalogue.d.ts +57 -21
- package/dist/src/catalogue.js +34 -15
- package/dist/src/codeLiteral.d.ts +41 -0
- package/dist/src/codeLiteral.js +51 -0
- package/dist/src/componentDocs.d.ts +86 -1
- package/dist/src/componentDocs.js +33 -3
- package/dist/src/controlKeys.d.ts +0 -1
- package/dist/src/controlKeys.js +2 -2
- package/dist/src/deviceDrawing.d.ts +114 -0
- package/dist/src/deviceDrawing.js +358 -0
- package/dist/src/deviceMenuView.d.ts +17 -0
- package/dist/src/deviceMenuView.js +22 -0
- package/dist/src/devicePicture.d.ts +57 -0
- package/dist/src/devicePicture.js +104 -0
- package/dist/src/deviceView.d.ts +172 -0
- package/dist/src/deviceView.js +111 -0
- package/dist/src/devices.d.ts +115 -0
- package/dist/src/devices.js +135 -0
- package/dist/src/docAnchors.d.ts +27 -0
- package/dist/src/docAnchors.js +33 -0
- package/dist/src/docPages.d.ts +203 -0
- package/dist/src/docPages.js +169 -0
- package/dist/src/embed.d.ts +32 -0
- package/dist/src/embed.js +24 -0
- package/dist/src/embedCode.d.ts +31 -0
- package/dist/src/embedCode.js +88 -0
- package/dist/src/frame/backdropPictures.d.ts +29 -0
- package/dist/src/frame/backdropPictures.js +187 -0
- package/dist/src/frame/checkStory.d.ts +6 -3
- package/dist/src/frame/checkStory.js +76 -5
- package/dist/src/frame/followTouch.d.ts +9 -0
- package/dist/src/frame/followTouch.js +43 -0
- package/dist/src/frame/frame.css +8 -3
- package/dist/src/frame/frameClock.d.ts +0 -1
- package/dist/src/frame/frameClock.js +0 -1
- package/dist/src/frame/frameStatus.d.ts +2 -1
- package/dist/src/frame/frameStatus.js +2 -1
- package/dist/src/frame/frameView.d.ts +0 -1
- package/dist/src/frame/frameView.js +1 -2
- package/dist/src/frame/matrixLayout.d.ts +0 -1
- package/dist/src/frame/matrixLayout.js +0 -1
- package/dist/src/frame/measureTools.d.ts +0 -1
- package/dist/src/frame/measureTools.js +0 -1
- package/dist/src/frame/mountFrame.d.ts +10 -3
- package/dist/src/frame/mountFrame.js +162 -63
- package/dist/src/frame/playStory.d.ts +0 -1
- package/dist/src/frame/playStory.js +0 -1
- package/dist/src/frame/pluginFrames.d.ts +31 -0
- package/dist/src/frame/pluginFrames.js +23 -0
- package/dist/src/frame/renderer.d.ts +50 -12
- package/dist/src/frame/renderer.js +27 -6
- package/dist/src/frame/settle.d.ts +0 -1
- package/dist/src/frame/settle.js +0 -1
- package/dist/src/frame/shellChannel.d.ts +47 -0
- package/dist/src/frame/shellChannel.js +39 -0
- package/dist/src/frame/spillOutline.d.ts +0 -1
- package/dist/src/frame/spillOutline.js +0 -1
- package/dist/src/frame/staleModule.d.ts +14 -2
- package/dist/src/frame/staleModule.js +19 -2
- package/dist/src/frame/storyCanvas.d.ts +0 -1
- package/dist/src/frame/storyCanvas.js +0 -1
- package/dist/src/frame/storyHooks.d.ts +0 -1
- package/dist/src/frame/storyHooks.js +0 -1
- package/dist/src/frame/storyModule.d.ts +13 -2
- package/dist/src/frame/storyModule.js +45 -3
- package/dist/src/frame/storyRun.d.ts +21 -4
- package/dist/src/frame/storyRun.js +100 -19
- package/dist/src/frame/touchDots.d.ts +0 -1
- package/dist/src/frame/touchDots.js +0 -1
- package/dist/src/frame/touchEvents.d.ts +0 -1
- package/dist/src/frame/touchEvents.js +0 -1
- package/dist/src/frame/touchGesture.d.ts +0 -1
- package/dist/src/frame/touchGesture.js +0 -1
- package/dist/src/frame/touchLayer.d.ts +3 -3
- package/dist/src/frame/touchLayer.js +4 -30
- package/dist/src/frame/touchScroll.d.ts +0 -1
- package/dist/src/frame/touchScroll.js +0 -1
- package/dist/src/frameOrigins.d.ts +62 -0
- package/dist/src/frameOrigins.js +49 -0
- package/dist/src/hotModules.d.ts +48 -0
- package/dist/src/hotModules.js +53 -0
- package/dist/src/jsxCode.d.ts +22 -0
- package/dist/src/jsxCode.js +36 -0
- package/dist/src/languages.d.ts +0 -1
- package/dist/src/languages.js +0 -1
- package/dist/src/liveErrors.d.ts +0 -1
- package/dist/src/liveErrors.js +0 -1
- package/dist/src/matrix.d.ts +0 -1
- package/dist/src/matrix.js +0 -1
- package/dist/src/messages.d.ts +28 -2
- package/dist/src/messages.js +24 -3
- package/dist/src/namedValues.d.ts +11 -1
- package/dist/src/namedValues.js +25 -2
- package/dist/src/namedViews.d.ts +1 -13
- package/dist/src/namedViews.js +30 -7
- package/dist/src/packedText.d.ts +21 -0
- package/dist/src/packedText.js +36 -0
- package/dist/src/pageAddress.d.ts +26 -0
- package/dist/src/pageAddress.js +39 -0
- package/dist/src/pageConfig.d.ts +3 -1
- package/dist/src/pageConfig.js +0 -1
- package/dist/src/pageTree.d.ts +79 -0
- package/dist/src/pageTree.js +108 -0
- package/dist/src/playTrace.d.ts +0 -1
- package/dist/src/playTrace.js +0 -1
- package/dist/src/plugin.d.ts +230 -0
- package/dist/src/plugin.js +12 -0
- package/dist/src/pluginReact.d.ts +23 -0
- package/dist/src/pluginReact.js +24 -0
- package/dist/src/previewRelay.d.ts +40 -0
- package/dist/src/previewRelay.js +69 -0
- package/dist/src/previewTexts.d.ts +26 -0
- package/dist/src/previewTexts.js +33 -0
- package/dist/src/previewView.d.ts +31 -0
- package/dist/src/previewView.js +264 -0
- package/dist/src/propGroups.d.ts +46 -0
- package/dist/src/propGroups.js +59 -0
- package/dist/src/realTouch.d.ts +1 -2
- package/dist/src/realTouch.js +1 -2
- package/dist/src/safeAreaParameter.d.ts +42 -0
- package/dist/src/safeAreaParameter.js +50 -0
- package/dist/src/search.d.ts +154 -0
- package/dist/src/search.js +265 -0
- package/dist/src/searchIndex.d.ts +61 -0
- package/dist/src/searchIndex.js +55 -0
- package/dist/src/searchMarks.d.ts +29 -0
- package/dist/src/searchMarks.js +165 -0
- package/dist/src/searchMatch.d.ts +58 -0
- package/dist/src/searchMatch.js +127 -0
- package/dist/src/shell/A11yTab.d.ts +0 -7
- package/dist/src/shell/A11yTab.js +4 -15
- package/dist/src/shell/AnchorScroll.d.ts +25 -0
- package/dist/src/shell/AnchorScroll.js +10 -0
- package/dist/src/shell/ApiReference.d.ts +12 -4
- package/dist/src/shell/ApiReference.js +74 -19
- package/dist/src/shell/AppearanceMenu.d.ts +1 -2
- package/dist/src/shell/AppearanceMenu.js +8 -5
- package/dist/src/shell/AudienceSections.d.ts +106 -0
- package/dist/src/shell/AudienceSections.js +154 -0
- package/dist/src/shell/AuthoredHome.d.ts +37 -0
- package/dist/src/shell/AuthoredHome.js +96 -0
- package/dist/src/shell/BoxWidth.d.ts +0 -1
- package/dist/src/shell/BoxWidth.js +0 -1
- package/dist/src/shell/ClockBar.d.ts +19 -0
- package/dist/src/shell/ClockBar.js +15 -0
- package/dist/src/shell/ClockControls.d.ts +5 -9
- package/dist/src/shell/ClockControls.js +13 -16
- package/dist/src/shell/Code.d.ts +0 -1
- package/dist/src/shell/Code.js +0 -1
- package/dist/src/shell/CodeTab.d.ts +0 -1
- package/dist/src/shell/CodeTab.js +2 -2
- package/dist/src/shell/CodeText.d.ts +0 -1
- package/dist/src/shell/CodeText.js +0 -1
- package/dist/src/shell/CompareGrid.d.ts +37 -0
- package/dist/src/shell/CompareGrid.js +24 -0
- package/dist/src/shell/ComponentPage.d.ts +45 -7
- package/dist/src/shell/ComponentPage.js +107 -49
- package/dist/src/shell/ControlKeyField.d.ts +0 -1
- package/dist/src/shell/ControlKeyField.js +3 -4
- package/dist/src/shell/ControlRow.d.ts +4 -4
- package/dist/src/shell/ControlRow.js +5 -5
- package/dist/src/shell/DeviceControl.d.ts +31 -0
- package/dist/src/shell/DeviceControl.js +33 -0
- package/dist/src/shell/DeviceSlot.d.ts +114 -0
- package/dist/src/shell/DeviceSlot.js +134 -0
- package/dist/src/shell/DocBlocks.d.ts +100 -0
- package/dist/src/shell/DocBlocks.js +206 -0
- package/dist/src/shell/DocContainers.d.ts +70 -0
- package/dist/src/shell/DocContainers.js +94 -0
- package/dist/src/shell/DocContents.d.ts +29 -0
- package/dist/src/shell/DocContents.js +88 -0
- package/dist/src/shell/DocPage.d.ts +69 -0
- package/dist/src/shell/DocPage.js +141 -0
- package/dist/src/shell/Dock.d.ts +1 -2
- package/dist/src/shell/Dock.js +1 -2
- package/dist/src/shell/DroppedArgsList.d.ts +26 -0
- package/dist/src/shell/DroppedArgsList.js +8 -0
- package/dist/src/shell/DroppedArgsNote.d.ts +14 -0
- package/dist/src/shell/DroppedArgsNote.js +10 -0
- package/dist/src/shell/EmbedButton.d.ts +19 -0
- package/dist/src/shell/EmbedButton.js +96 -0
- package/dist/src/shell/EmbedPage.d.ts +23 -0
- package/dist/src/shell/EmbedPage.js +168 -0
- package/dist/src/shell/EmbedPanel.d.ts +25 -0
- package/dist/src/shell/EmbedPanel.js +46 -0
- package/dist/src/shell/EventsTab.d.ts +0 -1
- package/dist/src/shell/EventsTab.js +2 -3
- package/dist/src/shell/Example.d.ts +20 -2
- package/dist/src/shell/Example.js +75 -22
- package/dist/src/shell/FrameView.d.ts +1 -2
- package/dist/src/shell/FrameView.js +4 -4
- package/dist/src/shell/HomePage.d.ts +78 -4
- package/dist/src/shell/HomePage.js +53 -14
- package/dist/src/shell/HomePieces.d.ts +40 -0
- package/dist/src/shell/HomePieces.js +29 -0
- package/dist/src/shell/InfoTip.d.ts +0 -1
- package/dist/src/shell/InfoTip.js +0 -1
- package/dist/src/shell/InteractionsTab.d.ts +0 -7
- package/dist/src/shell/InteractionsTab.js +3 -9
- package/dist/src/shell/LazyHost.d.ts +16 -0
- package/dist/src/shell/LazyHost.js +42 -0
- package/dist/src/shell/LazyPage.d.ts +24 -0
- package/dist/src/shell/LazyPage.js +9 -0
- package/dist/src/shell/LogicMark.d.ts +9 -0
- package/dist/src/shell/LogicMark.js +5 -0
- package/dist/src/shell/MatrixPicker.d.ts +0 -1
- package/dist/src/shell/MatrixPicker.js +0 -1
- package/dist/src/shell/NamedViews.d.ts +0 -1
- package/dist/src/shell/NamedViews.js +4 -5
- package/dist/src/shell/PackageHtml.d.ts +0 -1
- package/dist/src/shell/PackageHtml.js +0 -1
- package/dist/src/shell/PartsTab.d.ts +0 -7
- package/dist/src/shell/PartsTab.js +3 -13
- package/dist/src/shell/PinnedControl.d.ts +0 -1
- package/dist/src/shell/PinnedControl.js +2 -2
- package/dist/src/shell/PluginBlockHost.d.ts +46 -0
- package/dist/src/shell/PluginBlockHost.js +39 -0
- package/dist/src/shell/PluginTabHost.d.ts +32 -0
- package/dist/src/shell/PluginTabHost.js +25 -0
- package/dist/src/shell/PluginViewHost.d.ts +37 -0
- package/dist/src/shell/PluginViewHost.js +89 -0
- package/dist/src/shell/PropFields.d.ts +0 -1
- package/dist/src/shell/PropFields.js +0 -1
- package/dist/src/shell/PropsTab.d.ts +11 -2
- package/dist/src/shell/PropsTab.js +31 -5
- package/dist/src/shell/SearchPanel.d.ts +63 -0
- package/dist/src/shell/SearchPanel.js +209 -0
- package/dist/src/shell/Segmented.d.ts +0 -1
- package/dist/src/shell/Segmented.js +0 -1
- package/dist/src/shell/Shell.d.ts +34 -6
- package/dist/src/shell/Shell.js +292 -84
- package/dist/src/shell/Sidebar.d.ts +20 -5
- package/dist/src/shell/Sidebar.js +23 -56
- package/dist/src/shell/SidebarDocs.d.ts +38 -0
- package/dist/src/shell/SidebarDocs.js +30 -0
- package/dist/src/shell/SidebarEntries.d.ts +10 -2
- package/dist/src/shell/SidebarEntries.js +3 -3
- package/dist/src/shell/SidebarHandle.d.ts +0 -1
- package/dist/src/shell/SidebarHandle.js +0 -1
- package/dist/src/shell/SidebarSearch.d.ts +40 -0
- package/dist/src/shell/SidebarSearch.js +85 -0
- package/dist/src/shell/SignatureReference.d.ts +25 -0
- package/dist/src/shell/SignatureReference.js +25 -0
- package/dist/src/shell/Stage.d.ts +9 -4
- package/dist/src/shell/Stage.js +121 -60
- package/dist/src/shell/StageCompare.d.ts +14 -0
- package/dist/src/shell/StageCompare.js +11 -0
- package/dist/src/shell/StageTools.d.ts +0 -1
- package/dist/src/shell/StageTools.js +0 -1
- package/dist/src/shell/StageViewport.d.ts +7 -3
- package/dist/src/shell/StageViewport.js +4 -5
- package/dist/src/shell/StoryBar.d.ts +40 -0
- package/dist/src/shell/StoryBar.js +23 -0
- package/dist/src/shell/StoryCodeBlock.d.ts +1 -2
- package/dist/src/shell/StoryCodeBlock.js +0 -1
- package/dist/src/shell/StoryCoverage.d.ts +36 -0
- package/dist/src/shell/StoryCoverage.js +126 -0
- package/dist/src/shell/StoryPicker.d.ts +0 -1
- package/dist/src/shell/StoryPicker.js +0 -1
- package/dist/src/shell/Toolbar.d.ts +9 -3
- package/dist/src/shell/Toolbar.js +12 -7
- package/dist/src/shell/ToolbarControl.d.ts +6 -8
- package/dist/src/shell/ToolbarControl.js +28 -20
- package/dist/src/shell/UsedIn.d.ts +5 -6
- package/dist/src/shell/UsedIn.js +7 -20
- package/dist/src/shell/ViewMenu.d.ts +7 -7
- package/dist/src/shell/ViewMenu.js +61 -176
- package/dist/src/shell/ViewMenuPanel.d.ts +41 -0
- package/dist/src/shell/ViewMenuPanel.js +199 -0
- package/dist/src/shell/WidthField.d.ts +3 -2
- package/dist/src/shell/WidthField.js +2 -3
- package/dist/src/shell/asideStory.d.ts +34 -0
- package/dist/src/shell/asideStory.js +55 -0
- package/dist/src/shell/audienceLayout.d.ts +39 -0
- package/dist/src/shell/audienceLayout.js +33 -0
- package/dist/src/shell/audiencePage.d.ts +113 -0
- package/dist/src/shell/audiencePage.js +144 -0
- package/dist/src/shell/audienceSections.css +95 -0
- package/dist/src/shell/catalogueContext.d.ts +24 -2
- package/dist/src/shell/catalogueContext.js +12 -9
- package/dist/src/shell/codeTokens.d.ts +0 -1
- package/dist/src/shell/codeTokens.js +0 -1
- package/dist/src/shell/codeWriter.d.ts +0 -1
- package/dist/src/shell/codeWriter.js +0 -1
- package/dist/src/shell/compareVariants.d.ts +3 -3
- package/dist/src/shell/compareVariants.js +6 -5
- package/dist/src/shell/controlCycle.d.ts +0 -1
- package/dist/src/shell/controlCycle.js +13 -1
- package/dist/src/shell/controlLabel.d.ts +7 -0
- package/dist/src/shell/controlLabel.js +17 -0
- package/dist/src/shell/device/deviceFrame.css +42 -0
- package/dist/src/shell/device/deviceParts.d.ts +90 -0
- package/dist/src/shell/device/deviceParts.js +120 -0
- package/dist/src/shell/docPage.css +451 -0
- package/dist/src/shell/dockTabs.d.ts +15 -4
- package/dist/src/shell/dockTabs.js +69 -26
- package/dist/src/shell/embed.css +74 -0
- package/dist/src/shell/filesCode.d.ts +21 -0
- package/dist/src/shell/filesCode.js +37 -0
- package/dist/src/shell/forgebookMark.d.ts +15 -0
- package/dist/src/shell/forgebookMark.js +28 -0
- package/dist/src/shell/framesOrigin.d.ts +23 -0
- package/dist/src/shell/framesOrigin.js +69 -0
- package/dist/src/shell/icons.d.ts +4 -1
- package/dist/src/shell/icons.js +4 -1
- package/dist/src/shell/keyboard.d.ts +0 -1
- package/dist/src/shell/keyboard.js +0 -1
- package/dist/src/shell/laterStrings.d.ts +91 -0
- package/dist/src/shell/laterStrings.js +102 -0
- package/dist/src/shell/lazyModule.d.ts +49 -0
- package/dist/src/shell/lazyModule.js +72 -0
- package/dist/src/shell/lazyTab.d.ts +21 -0
- package/dist/src/shell/lazyTab.js +9 -0
- package/dist/src/shell/logicView.d.ts +24 -0
- package/dist/src/shell/logicView.js +39 -0
- package/dist/src/shell/mountShell.d.ts +5 -3
- package/dist/src/shell/mountShell.js +43 -12
- package/dist/src/shell/pageStrings.d.ts +24 -0
- package/dist/src/shell/pageStrings.js +26 -0
- package/dist/src/shell/pluginHosts.d.ts +9 -0
- package/dist/src/shell/pluginHosts.js +6 -0
- package/dist/src/shell/pluginHostsContext.d.ts +20 -0
- package/dist/src/shell/pluginHostsContext.js +16 -0
- package/dist/src/shell/pluginTabs.d.ts +63 -0
- package/dist/src/shell/pluginTabs.js +60 -0
- package/dist/src/shell/search.css +172 -0
- package/dist/src/shell/searchStrings.d.ts +24 -0
- package/dist/src/shell/searchStrings.js +31 -0
- package/dist/src/shell/shell.css +310 -136
- package/dist/src/shell/shellScheme.d.ts +37 -0
- package/dist/src/shell/shellScheme.js +32 -0
- package/dist/src/shell/storyTouch.d.ts +19 -6
- package/dist/src/shell/storyTouch.js +26 -4
- package/dist/src/shell/strings.d.ts +62 -80
- package/dist/src/shell/strings.js +60 -79
- package/dist/src/shell/switchView.d.ts +0 -1
- package/dist/src/shell/switchView.js +0 -1
- package/dist/src/shell/tabSummaries.d.ts +31 -0
- package/dist/src/shell/tabSummaries.js +27 -0
- package/dist/src/shell/treeSearch.d.ts +39 -3
- package/dist/src/shell/treeSearch.js +27 -1
- package/dist/src/shell/useAddressArgs.d.ts +55 -0
- package/dist/src/shell/useAddressArgs.js +62 -0
- package/dist/src/shell/useAnchorScroll.d.ts +24 -0
- package/dist/src/shell/useAnchorScroll.js +90 -0
- package/dist/src/shell/useAppearance.d.ts +7 -2
- package/dist/src/shell/useAppearance.js +14 -5
- package/dist/src/shell/useComponentDocs.d.ts +0 -1
- package/dist/src/shell/useComponentDocs.js +0 -1
- package/dist/src/shell/useControlKeys.d.ts +2 -1
- package/dist/src/shell/useControlKeys.js +2 -3
- package/dist/src/shell/useCopy.d.ts +2 -1
- package/dist/src/shell/useCopy.js +11 -6
- package/dist/src/shell/useFold.d.ts +0 -1
- package/dist/src/shell/useFold.js +0 -1
- package/dist/src/shell/useFrameMessages.d.ts +19 -4
- package/dist/src/shell/useFrameMessages.js +23 -7
- package/dist/src/shell/useFrameQueue.d.ts +7 -3
- package/dist/src/shell/useFrameQueue.js +39 -22
- package/dist/src/shell/useFullPage.d.ts +0 -1
- package/dist/src/shell/useFullPage.js +0 -1
- package/dist/src/shell/useLiveView.d.ts +0 -1
- package/dist/src/shell/useLiveView.js +0 -1
- package/dist/src/shell/useLoaded.d.ts +1 -2
- package/dist/src/shell/useLoaded.js +28 -6
- package/dist/src/shell/usePageDoc.d.ts +0 -1
- package/dist/src/shell/usePageDoc.js +0 -1
- package/dist/src/shell/usePageFrames.d.ts +46 -0
- package/dist/src/shell/usePageFrames.js +50 -0
- package/dist/src/shell/usePluginTabs.d.ts +18 -0
- package/dist/src/shell/usePluginTabs.js +45 -0
- package/dist/src/shell/usePopover.d.ts +0 -1
- package/dist/src/shell/usePopover.js +0 -1
- package/dist/src/shell/useProseLinks.d.ts +14 -0
- package/dist/src/shell/useProseLinks.js +30 -0
- package/dist/src/shell/useRecentPages.d.ts +3 -4
- package/dist/src/shell/useRecentPages.js +1 -2
- package/dist/src/shell/useScrollMemory.d.ts +9 -1
- package/dist/src/shell/useScrollMemory.js +2 -3
- package/dist/src/shell/useSearchIndex.d.ts +24 -0
- package/dist/src/shell/useSearchIndex.js +51 -0
- package/dist/src/shell/useShownView.d.ts +35 -0
- package/dist/src/shell/useShownView.js +36 -0
- package/dist/src/shell/useSidebarLayout.d.ts +0 -1
- package/dist/src/shell/useSidebarLayout.js +0 -1
- package/dist/src/shell/useStored.d.ts +13 -1
- package/dist/src/shell/useStored.js +13 -5
- package/dist/src/shell/useStoryCheck.d.ts +20 -0
- package/dist/src/shell/useStoryCheck.js +33 -0
- package/dist/src/shell/useStoryCode.d.ts +0 -1
- package/dist/src/shell/useStoryCode.js +0 -1
- package/dist/src/shell/useStoryHeights.d.ts +0 -1
- package/dist/src/shell/useStoryHeights.js +0 -1
- package/dist/src/shell/useStoryIdsElement.d.ts +0 -1
- package/dist/src/shell/useStoryIdsElement.js +0 -1
- package/dist/src/shell/useStoryKeys.d.ts +0 -1
- package/dist/src/shell/useStoryKeys.js +0 -1
- package/dist/src/shell/useSyncedTab.d.ts +8 -0
- package/dist/src/shell/useSyncedTab.js +60 -0
- package/dist/src/shell/useSystemDark.d.ts +0 -1
- package/dist/src/shell/useSystemDark.js +0 -1
- package/dist/src/shell/useToolbarLayout.d.ts +0 -1
- package/dist/src/shell/useToolbarLayout.js +0 -1
- package/dist/src/shell/useToolbarOverflow.d.ts +0 -1
- package/dist/src/shell/useToolbarOverflow.js +0 -1
- package/dist/src/shell/useWorstCase.d.ts +0 -1
- package/dist/src/shell/useWorstCase.js +2 -2
- package/dist/src/shell/worstArgs.d.ts +0 -1
- package/dist/src/shell/worstArgs.js +0 -1
- package/dist/src/shellTheme.d.ts +64 -0
- package/dist/src/shellTheme.js +274 -0
- package/dist/src/shellTheme.types.d.ts +93 -0
- package/dist/src/shellTheme.types.js +10 -0
- package/dist/src/sourceFiles.d.ts +17 -3
- package/dist/src/sourceFiles.js +27 -1
- package/dist/src/spills.d.ts +0 -1
- package/dist/src/spills.js +0 -1
- package/dist/src/storyBackground.d.ts +0 -1
- package/dist/src/storyBackground.js +0 -1
- package/dist/src/storyCheck.d.ts +88 -2
- package/dist/src/storyCheck.js +12 -2
- package/dist/src/storyClock.d.ts +0 -1
- package/dist/src/storyClock.js +0 -1
- package/dist/src/storyGlobals.d.ts +0 -1
- package/dist/src/storyGlobals.js +0 -1
- package/dist/src/storyHeights.d.ts +0 -1
- package/dist/src/storyHeights.js +0 -1
- package/dist/src/storyIds.d.ts +36 -0
- package/dist/src/storyIds.js +52 -0
- package/dist/src/storyIdsElement.d.ts +0 -1
- package/dist/src/storyIdsElement.js +0 -1
- package/dist/src/storyTexts.d.ts +11 -5
- package/dist/src/storyTexts.js +16 -5
- package/dist/src/storyTree.d.ts +88 -25
- package/dist/src/storyTree.js +219 -126
- package/dist/src/switches.d.ts +0 -1
- package/dist/src/switches.js +6 -2
- package/dist/src/toolbarLayout.d.ts +0 -1
- package/dist/src/toolbarLayout.js +0 -1
- package/dist/src/treePlaces.d.ts +60 -0
- package/dist/src/treePlaces.js +89 -0
- package/dist/src/usedIn.d.ts +28 -1
- package/dist/src/usedIn.js +93 -3
- package/dist/src/viewState.d.ts +37 -9
- package/dist/src/viewState.js +67 -9
- package/dist/src/viewWords.d.ts +0 -13
- package/dist/src/viewWords.js +41 -3
- package/dist/src/vite/adapter.d.ts +62 -1
- package/dist/src/vite/adapter.js +20 -2
- package/dist/src/vite/agent.types.d.ts +281 -7
- package/dist/src/vite/agent.types.js +11 -1
- package/dist/src/vite/agentApi.d.ts +55 -2
- package/dist/src/vite/agentApi.js +131 -8
- package/dist/src/vite/agentIds.d.ts +25 -0
- package/dist/src/vite/agentIds.js +41 -0
- package/dist/src/vite/agentIndex.d.ts +63 -0
- package/dist/src/vite/agentIndex.js +91 -0
- package/dist/src/vite/agentIndexRoute.d.ts +10 -0
- package/dist/src/vite/agentIndexRoute.js +35 -0
- package/dist/src/vite/agentRoutes.d.ts +80 -19
- package/dist/src/vite/agentRoutes.js +167 -24
- package/dist/src/vite/autoTitle.d.ts +0 -1
- package/dist/src/vite/autoTitle.js +0 -1
- package/dist/src/vite/axeScript.d.ts +20 -0
- package/dist/src/vite/axeScript.js +60 -0
- package/dist/src/vite/builtTexts.d.ts +75 -0
- package/dist/src/vite/builtTexts.js +142 -0
- package/dist/src/vite/catalogueConfig.d.ts +10 -0
- package/dist/src/vite/catalogueConfig.js +64 -0
- package/dist/src/vite/checkCode.d.ts +67 -0
- package/dist/src/vite/checkCode.js +145 -0
- package/dist/src/vite/closeWatch.d.ts +96 -0
- package/dist/src/vite/closeWatch.js +219 -0
- package/dist/src/vite/codeFence.d.ts +78 -0
- package/dist/src/vite/codeFence.js +267 -0
- package/dist/src/vite/componentImport.d.ts +8 -0
- package/dist/src/vite/componentImport.js +35 -0
- package/dist/src/vite/componentPage.d.ts +15 -2
- package/dist/src/vite/componentPage.js +55 -16
- package/dist/src/vite/config.d.ts +51 -3
- package/dist/src/vite/config.js +0 -1
- package/dist/src/vite/configFile.d.ts +65 -9
- package/dist/src/vite/configFile.js +182 -28
- package/dist/src/vite/designTokens.d.ts +75 -0
- package/dist/src/vite/designTokens.js +382 -0
- package/dist/src/vite/diskCache.d.ts +51 -0
- package/dist/src/vite/diskCache.js +211 -0
- package/dist/src/vite/docDirectives.d.ts +116 -0
- package/dist/src/vite/docDirectives.js +425 -0
- package/dist/src/vite/docMarkdown.d.ts +76 -0
- package/dist/src/vite/docMarkdown.js +150 -0
- package/dist/src/vite/docPageBlocks.d.ts +64 -0
- package/dist/src/vite/docPageBlocks.js +322 -0
- package/dist/src/vite/docPageLinks.d.ts +72 -0
- package/dist/src/vite/docPageLinks.js +135 -0
- package/dist/src/vite/docPageMarkdown.d.ts +86 -0
- package/dist/src/vite/docPageMarkdown.js +133 -0
- package/dist/src/vite/docPageRender.d.ts +27 -0
- package/dist/src/vite/docPageRender.js +199 -0
- package/dist/src/vite/docPageTokens.d.ts +91 -0
- package/dist/src/vite/docPageTokens.js +186 -0
- package/dist/src/vite/docPagesModule.d.ts +50 -0
- package/dist/src/vite/docPagesModule.js +118 -0
- package/dist/src/vite/docPagesRoute.d.ts +38 -0
- package/dist/src/vite/docPagesRoute.js +154 -0
- package/dist/src/vite/docsDependencies.d.ts +6 -0
- package/dist/src/vite/docsDependencies.js +150 -0
- package/dist/src/vite/docsExtractor.d.ts +44 -3
- package/dist/src/vite/docsExtractor.js +160 -26
- package/dist/src/vite/docsProgram.d.ts +89 -9
- package/dist/src/vite/docsProgram.js +413 -50
- package/dist/src/vite/docsWorker.d.ts +0 -1
- package/dist/src/vite/docsWorker.js +49 -15
- package/dist/src/vite/figmaLink.d.ts +26 -0
- package/dist/src/vite/figmaLink.js +92 -0
- package/dist/src/vite/findComponent.d.ts +32 -0
- package/dist/src/vite/findComponent.js +52 -0
- package/dist/src/vite/findRoute.d.ts +14 -0
- package/dist/src/vite/findRoute.js +62 -0
- package/dist/src/vite/forcedStates.d.ts +0 -1
- package/dist/src/vite/forcedStates.js +0 -1
- package/dist/src/vite/forgebookPlugin.d.ts +1 -2
- package/dist/src/vite/forgebookPlugin.js +330 -263
- package/dist/src/vite/framesConfig.d.ts +89 -0
- package/dist/src/vite/framesConfig.js +149 -0
- package/dist/src/vite/framesServer.d.ts +43 -0
- package/dist/src/vite/framesServer.js +326 -0
- package/dist/src/vite/functionComponentDocs.d.ts +26 -0
- package/dist/src/vite/functionComponentDocs.js +193 -0
- package/dist/src/vite/gitChange.d.ts +56 -0
- package/dist/src/vite/gitChange.js +86 -0
- package/dist/src/vite/heightsRoute.d.ts +24 -0
- package/dist/src/vite/heightsRoute.js +42 -0
- package/dist/src/vite/highlightCode.d.ts +0 -1
- package/dist/src/vite/highlightCode.js +8 -27
- package/dist/src/vite/hotSnippets.d.ts +86 -0
- package/dist/src/vite/hotSnippets.js +168 -0
- package/dist/src/vite/indexFields.d.ts +61 -0
- package/dist/src/vite/indexFields.js +149 -0
- package/dist/src/vite/indexStoryFile.d.ts +20 -19
- package/dist/src/vite/indexStoryFile.js +172 -201
- package/dist/src/vite/indexedParameters.d.ts +10 -0
- package/dist/src/vite/indexedParameters.js +110 -0
- package/dist/src/vite/mcpProtocol.d.ts +36 -2
- package/dist/src/vite/mcpProtocol.js +100 -15
- package/dist/src/vite/moduleSummary.d.ts +17 -0
- package/dist/src/vite/moduleSummary.js +40 -0
- package/dist/src/vite/nearestToken.d.ts +50 -0
- package/dist/src/vite/nearestToken.js +295 -0
- package/dist/src/vite/originGuard.d.ts +87 -0
- package/dist/src/vite/originGuard.js +163 -0
- package/dist/src/vite/packedModule.d.ts +40 -0
- package/dist/src/vite/packedModule.js +74 -0
- package/dist/src/vite/pages.d.ts +63 -10
- package/dist/src/vite/pages.js +264 -33
- package/dist/src/vite/parsedFiles.d.ts +18 -0
- package/dist/src/vite/parsedFiles.js +91 -0
- package/dist/src/vite/plainGrammars.d.ts +20 -0
- package/dist/src/vite/plainGrammars.js +113 -0
- package/dist/src/vite/pluginConfig.d.ts +47 -0
- package/dist/src/vite/pluginConfig.js +220 -0
- package/dist/src/vite/pluginIds.d.ts +20 -0
- package/dist/src/vite/pluginIds.js +61 -0
- package/dist/src/vite/pluginModules.d.ts +140 -0
- package/dist/src/vite/pluginModules.js +176 -0
- package/dist/src/vite/prebundled.d.ts +18 -5
- package/dist/src/vite/prebundled.js +28 -18
- package/dist/src/vite/previewPages.d.ts +14 -0
- package/dist/src/vite/previewPages.js +81 -0
- package/dist/src/vite/previewRoute.d.ts +8 -0
- package/dist/src/vite/previewRoute.js +8 -0
- package/dist/src/vite/previewRunner.d.ts +56 -0
- package/dist/src/vite/previewRunner.js +207 -0
- package/dist/src/vite/propDocs.d.ts +60 -0
- package/dist/src/vite/propDocs.js +387 -0
- package/dist/src/vite/searchModule.d.ts +40 -0
- package/dist/src/vite/searchModule.js +212 -0
- package/dist/src/vite/searchRoute.d.ts +7 -0
- package/dist/src/vite/searchRoute.js +79 -0
- package/dist/src/vite/serverConditions.d.ts +31 -0
- package/dist/src/vite/serverConditions.js +69 -0
- package/dist/src/vite/signatureDocs.d.ts +18 -0
- package/dist/src/vite/signatureDocs.js +64 -0
- package/dist/src/vite/sourceTokens.d.ts +57 -0
- package/dist/src/vite/sourceTokens.js +164 -0
- package/dist/src/vite/storyCode.d.ts +0 -1
- package/dist/src/vite/storyCode.js +2 -3
- package/dist/src/vite/storyExports.d.ts +32 -0
- package/dist/src/vite/storyExports.js +27 -0
- package/dist/src/vite/storyFilesModule.d.ts +56 -4
- package/dist/src/vite/storyFilesModule.js +122 -34
- package/dist/src/vite/storyMeta.d.ts +20 -11
- package/dist/src/vite/storyMeta.js +74 -38
- package/dist/src/vite/storyParse.d.ts +18 -0
- package/dist/src/vite/storyParse.js +20 -0
- package/dist/src/vite/storyPlay.d.ts +29 -0
- package/dist/src/vite/storyPlay.js +54 -0
- package/dist/src/vite/storyReach.d.ts +42 -0
- package/dist/src/vite/storyReach.js +43 -0
- package/dist/src/vite/storylessRoutes.d.ts +29 -0
- package/dist/src/vite/storylessRoutes.js +126 -0
- package/dist/src/vite/textModules.d.ts +63 -0
- package/dist/src/vite/textModules.js +132 -0
- package/dist/src/vite/textQueries.d.ts +20 -0
- package/dist/src/vite/textQueries.js +20 -0
- package/dist/src/vite/themeFromTokens.d.ts +35 -0
- package/dist/src/vite/themeFromTokens.js +73 -0
- package/dist/src/vite/tokenAnswers.d.ts +20 -0
- package/dist/src/vite/tokenAnswers.js +86 -0
- package/dist/src/vite/tokenClashes.d.ts +44 -0
- package/dist/src/vite/tokenClashes.js +45 -0
- package/dist/src/vite/touchMedia.d.ts +0 -1
- package/dist/src/vite/touchMedia.js +0 -1
- package/dist/src/vite/typeScriptPieces.d.ts +0 -1
- package/dist/src/vite/typeScriptPieces.js +2 -3
- package/dist/src/vite/usageGraph.d.ts +6 -1
- package/dist/src/vite/usageGraph.js +41 -7
- package/dist/src/vite/usageGuidance.d.ts +33 -0
- package/dist/src/vite/usageGuidance.js +45 -0
- package/dist/src/vite/usageModule.d.ts +0 -1
- package/dist/src/vite/usageModule.js +0 -1
- package/dist/src/vite/vitePaths.d.ts +53 -0
- package/dist/src/vite/vitePaths.js +53 -0
- package/dist/src/worstCase.d.ts +0 -1
- package/dist/src/worstCase.js +0 -1
- package/package.json +66 -3
- package/dist/bin/forgebook/agentClient.d.ts.map +0 -1
- package/dist/bin/forgebook/agentClient.js.map +0 -1
- package/dist/bin/forgebook/agentLoopCommands.d.mts.map +0 -1
- package/dist/bin/forgebook/agentLoopCommands.mjs.map +0 -1
- package/dist/bin/forgebook/agentText.d.ts.map +0 -1
- package/dist/bin/forgebook/agentText.js.map +0 -1
- package/dist/bin/forgebook/agentsText.d.ts.map +0 -1
- package/dist/bin/forgebook/agentsText.js.map +0 -1
- package/dist/bin/forgebook/catalogueCommands.d.ts.map +0 -1
- package/dist/bin/forgebook/catalogueCommands.js.map +0 -1
- package/dist/bin/forgebook/catalogueVite.d.ts.map +0 -1
- package/dist/bin/forgebook/catalogueVite.js.map +0 -1
- package/dist/bin/forgebook/errorsRun.d.ts.map +0 -1
- package/dist/bin/forgebook/errorsRun.js.map +0 -1
- package/dist/bin/forgebook/forgebook.d.mts.map +0 -1
- package/dist/bin/forgebook/forgebook.mjs.map +0 -1
- package/dist/bin/forgebook/importers/storybook.d.ts.map +0 -1
- package/dist/bin/forgebook/importers/storybook.js.map +0 -1
- package/dist/bin/forgebook/initCommands.d.mts.map +0 -1
- package/dist/bin/forgebook/initCommands.mjs.map +0 -1
- package/dist/bin/forgebook/initConfig.d.ts.map +0 -1
- package/dist/bin/forgebook/initConfig.js.map +0 -1
- package/dist/bin/forgebook/mcpTools.d.ts.map +0 -1
- package/dist/bin/forgebook/mcpTools.js.map +0 -1
- package/dist/bin/forgebook/newStories.d.ts.map +0 -1
- package/dist/bin/forgebook/newStories.js.map +0 -1
- package/dist/bin/forgebook/newStoriesFile.d.ts.map +0 -1
- package/dist/bin/forgebook/newStoriesFile.js.map +0 -1
- package/dist/bin/forgebook/storyCheckRun.d.ts.map +0 -1
- package/dist/bin/forgebook/storyCheckRun.js.map +0 -1
- package/dist/bin/forgebook/touchWindowRun.d.ts.map +0 -1
- package/dist/bin/forgebook/touchWindowRun.js.map +0 -1
- package/dist/bin/forgebook-docs/catalogueDocs.d.ts.map +0 -1
- package/dist/bin/forgebook-docs/catalogueDocs.js.map +0 -1
- package/dist/bin/forgebook-docs/catalogueDocs.types.d.ts.map +0 -1
- package/dist/bin/forgebook-docs/catalogueDocs.types.js.map +0 -1
- package/dist/bin/forgebook-docs/catalogueMarkdown.d.ts.map +0 -1
- package/dist/bin/forgebook-docs/catalogueMarkdown.js.map +0 -1
- package/dist/bin/forgebook-docs/catalogueOptions.d.ts.map +0 -1
- package/dist/bin/forgebook-docs/catalogueOptions.js.map +0 -1
- package/dist/bin/forgebook-docs/collectDocs.d.ts.map +0 -1
- package/dist/bin/forgebook-docs/collectDocs.js.map +0 -1
- package/dist/bin/forgebook-docs/forgebook-docs.d.mts.map +0 -1
- package/dist/bin/forgebook-docs/forgebook-docs.mjs.map +0 -1
- package/dist/bin/forgebook-docs/llmsText.d.ts.map +0 -1
- package/dist/bin/forgebook-docs/llmsText.js.map +0 -1
- package/dist/bin/forgebook-docs/moduleDocs.d.ts.map +0 -1
- package/dist/bin/forgebook-docs/moduleDocs.js.map +0 -1
- package/dist/bin/forgebook-docs/sassDocs.d.ts.map +0 -1
- package/dist/bin/forgebook-docs/sassDocs.js.map +0 -1
- package/dist/bin/forgebook-docs/sourceId.d.ts +0 -9
- package/dist/bin/forgebook-docs/sourceId.d.ts.map +0 -1
- package/dist/bin/forgebook-docs/sourceId.js +0 -45
- package/dist/bin/forgebook-docs/sourceId.js.map +0 -1
- package/dist/bin/forgebook-texts/forgebook-texts.d.mts.map +0 -1
- package/dist/bin/forgebook-texts/forgebook-texts.mjs.map +0 -1
- package/dist/bin/forgebook-texts/storyTextsReport.d.ts.map +0 -1
- package/dist/bin/forgebook-texts/storyTextsReport.js.map +0 -1
- package/dist/bin/forgebook-texts/storyTextsReport.types.d.ts.map +0 -1
- package/dist/bin/forgebook-texts/storyTextsReport.types.js.map +0 -1
- package/dist/bin/frameworkDocs.d.ts.map +0 -1
- package/dist/bin/frameworkDocs.js.map +0 -1
- package/dist/src/a11y.d.ts.map +0 -1
- package/dist/src/a11y.js.map +0 -1
- package/dist/src/argTypes.d.ts.map +0 -1
- package/dist/src/argTypes.js.map +0 -1
- package/dist/src/backdrops.d.ts.map +0 -1
- package/dist/src/backdrops.js.map +0 -1
- package/dist/src/catalogue.d.ts.map +0 -1
- package/dist/src/catalogue.js.map +0 -1
- package/dist/src/componentDocs.d.ts.map +0 -1
- package/dist/src/componentDocs.js.map +0 -1
- package/dist/src/controlKeys.d.ts.map +0 -1
- package/dist/src/controlKeys.js.map +0 -1
- package/dist/src/frame/checkStory.d.ts.map +0 -1
- package/dist/src/frame/checkStory.js.map +0 -1
- package/dist/src/frame/frameClock.d.ts.map +0 -1
- package/dist/src/frame/frameClock.js.map +0 -1
- package/dist/src/frame/frameStatus.d.ts.map +0 -1
- package/dist/src/frame/frameStatus.js.map +0 -1
- package/dist/src/frame/frameView.d.ts.map +0 -1
- package/dist/src/frame/frameView.js.map +0 -1
- package/dist/src/frame/matrixLayout.d.ts.map +0 -1
- package/dist/src/frame/matrixLayout.js.map +0 -1
- package/dist/src/frame/measureTools.d.ts.map +0 -1
- package/dist/src/frame/measureTools.js.map +0 -1
- package/dist/src/frame/mountFrame.d.ts.map +0 -1
- package/dist/src/frame/mountFrame.js.map +0 -1
- package/dist/src/frame/playStory.d.ts.map +0 -1
- package/dist/src/frame/playStory.js.map +0 -1
- package/dist/src/frame/renderer.d.ts.map +0 -1
- package/dist/src/frame/renderer.js.map +0 -1
- package/dist/src/frame/settle.d.ts.map +0 -1
- package/dist/src/frame/settle.js.map +0 -1
- package/dist/src/frame/spillOutline.d.ts.map +0 -1
- package/dist/src/frame/spillOutline.js.map +0 -1
- package/dist/src/frame/staleModule.d.ts.map +0 -1
- package/dist/src/frame/staleModule.js.map +0 -1
- package/dist/src/frame/storyCanvas.d.ts.map +0 -1
- package/dist/src/frame/storyCanvas.js.map +0 -1
- package/dist/src/frame/storyHooks.d.ts.map +0 -1
- package/dist/src/frame/storyHooks.js.map +0 -1
- package/dist/src/frame/storyModule.d.ts.map +0 -1
- package/dist/src/frame/storyModule.js.map +0 -1
- package/dist/src/frame/storyRun.d.ts.map +0 -1
- package/dist/src/frame/storyRun.js.map +0 -1
- package/dist/src/frame/touchDots.d.ts.map +0 -1
- package/dist/src/frame/touchDots.js.map +0 -1
- package/dist/src/frame/touchEvents.d.ts.map +0 -1
- package/dist/src/frame/touchEvents.js.map +0 -1
- package/dist/src/frame/touchGesture.d.ts.map +0 -1
- package/dist/src/frame/touchGesture.js.map +0 -1
- package/dist/src/frame/touchLayer.d.ts.map +0 -1
- package/dist/src/frame/touchLayer.js.map +0 -1
- package/dist/src/frame/touchScroll.d.ts.map +0 -1
- package/dist/src/frame/touchScroll.js.map +0 -1
- package/dist/src/languages.d.ts.map +0 -1
- package/dist/src/languages.js.map +0 -1
- package/dist/src/liveErrors.d.ts.map +0 -1
- package/dist/src/liveErrors.js.map +0 -1
- package/dist/src/matrix.d.ts.map +0 -1
- package/dist/src/matrix.js.map +0 -1
- package/dist/src/messages.d.ts.map +0 -1
- package/dist/src/messages.js.map +0 -1
- package/dist/src/namedValues.d.ts.map +0 -1
- package/dist/src/namedValues.js.map +0 -1
- package/dist/src/namedViews.d.ts.map +0 -1
- package/dist/src/namedViews.js.map +0 -1
- package/dist/src/pageConfig.d.ts.map +0 -1
- package/dist/src/pageConfig.js.map +0 -1
- package/dist/src/playTrace.d.ts.map +0 -1
- package/dist/src/playTrace.js.map +0 -1
- package/dist/src/realTouch.d.ts.map +0 -1
- package/dist/src/realTouch.js.map +0 -1
- package/dist/src/shell/A11yTab.d.ts.map +0 -1
- package/dist/src/shell/A11yTab.js.map +0 -1
- package/dist/src/shell/ApiReference.d.ts.map +0 -1
- package/dist/src/shell/ApiReference.js.map +0 -1
- package/dist/src/shell/AppearanceMenu.d.ts.map +0 -1
- package/dist/src/shell/AppearanceMenu.js.map +0 -1
- package/dist/src/shell/BoxWidth.d.ts.map +0 -1
- package/dist/src/shell/BoxWidth.js.map +0 -1
- package/dist/src/shell/ClockControls.d.ts.map +0 -1
- package/dist/src/shell/ClockControls.js.map +0 -1
- package/dist/src/shell/Code.d.ts.map +0 -1
- package/dist/src/shell/Code.js.map +0 -1
- package/dist/src/shell/CodeTab.d.ts.map +0 -1
- package/dist/src/shell/CodeTab.js.map +0 -1
- package/dist/src/shell/CodeText.d.ts.map +0 -1
- package/dist/src/shell/CodeText.js.map +0 -1
- package/dist/src/shell/ComponentPage.d.ts.map +0 -1
- package/dist/src/shell/ComponentPage.js.map +0 -1
- package/dist/src/shell/ControlKeyField.d.ts.map +0 -1
- package/dist/src/shell/ControlKeyField.js.map +0 -1
- package/dist/src/shell/ControlRow.d.ts.map +0 -1
- package/dist/src/shell/ControlRow.js.map +0 -1
- package/dist/src/shell/Dock.d.ts.map +0 -1
- package/dist/src/shell/Dock.js.map +0 -1
- package/dist/src/shell/EventsTab.d.ts.map +0 -1
- package/dist/src/shell/EventsTab.js.map +0 -1
- package/dist/src/shell/Example.d.ts.map +0 -1
- package/dist/src/shell/Example.js.map +0 -1
- package/dist/src/shell/FrameView.d.ts.map +0 -1
- package/dist/src/shell/FrameView.js.map +0 -1
- package/dist/src/shell/HomePage.d.ts.map +0 -1
- package/dist/src/shell/HomePage.js.map +0 -1
- package/dist/src/shell/InfoTip.d.ts.map +0 -1
- package/dist/src/shell/InfoTip.js.map +0 -1
- package/dist/src/shell/InteractionsTab.d.ts.map +0 -1
- package/dist/src/shell/InteractionsTab.js.map +0 -1
- package/dist/src/shell/MatrixPicker.d.ts.map +0 -1
- package/dist/src/shell/MatrixPicker.js.map +0 -1
- package/dist/src/shell/NamedViews.d.ts.map +0 -1
- package/dist/src/shell/NamedViews.js.map +0 -1
- package/dist/src/shell/PackageHtml.d.ts.map +0 -1
- package/dist/src/shell/PackageHtml.js.map +0 -1
- package/dist/src/shell/PartsTab.d.ts.map +0 -1
- package/dist/src/shell/PartsTab.js.map +0 -1
- package/dist/src/shell/PinnedControl.d.ts.map +0 -1
- package/dist/src/shell/PinnedControl.js.map +0 -1
- package/dist/src/shell/PropFields.d.ts.map +0 -1
- package/dist/src/shell/PropFields.js.map +0 -1
- package/dist/src/shell/PropsTab.d.ts.map +0 -1
- package/dist/src/shell/PropsTab.js.map +0 -1
- package/dist/src/shell/Segmented.d.ts.map +0 -1
- package/dist/src/shell/Segmented.js.map +0 -1
- package/dist/src/shell/Shell.d.ts.map +0 -1
- package/dist/src/shell/Shell.js.map +0 -1
- package/dist/src/shell/Sidebar.d.ts.map +0 -1
- package/dist/src/shell/Sidebar.js.map +0 -1
- package/dist/src/shell/SidebarEntries.d.ts.map +0 -1
- package/dist/src/shell/SidebarEntries.js.map +0 -1
- package/dist/src/shell/SidebarHandle.d.ts.map +0 -1
- package/dist/src/shell/SidebarHandle.js.map +0 -1
- package/dist/src/shell/Stage.d.ts.map +0 -1
- package/dist/src/shell/Stage.js.map +0 -1
- package/dist/src/shell/StageTools.d.ts.map +0 -1
- package/dist/src/shell/StageTools.js.map +0 -1
- package/dist/src/shell/StageViewport.d.ts.map +0 -1
- package/dist/src/shell/StageViewport.js.map +0 -1
- package/dist/src/shell/StoryCodeBlock.d.ts.map +0 -1
- package/dist/src/shell/StoryCodeBlock.js.map +0 -1
- package/dist/src/shell/StoryPicker.d.ts.map +0 -1
- package/dist/src/shell/StoryPicker.js.map +0 -1
- package/dist/src/shell/Toolbar.d.ts.map +0 -1
- package/dist/src/shell/Toolbar.js.map +0 -1
- package/dist/src/shell/ToolbarControl.d.ts.map +0 -1
- package/dist/src/shell/ToolbarControl.js.map +0 -1
- package/dist/src/shell/UsedIn.d.ts.map +0 -1
- package/dist/src/shell/UsedIn.js.map +0 -1
- package/dist/src/shell/ViewMenu.d.ts.map +0 -1
- package/dist/src/shell/ViewMenu.js.map +0 -1
- package/dist/src/shell/WidthField.d.ts.map +0 -1
- package/dist/src/shell/WidthField.js.map +0 -1
- package/dist/src/shell/catalogueContext.d.ts.map +0 -1
- package/dist/src/shell/catalogueContext.js.map +0 -1
- package/dist/src/shell/codeTokens.d.ts.map +0 -1
- package/dist/src/shell/codeTokens.js.map +0 -1
- package/dist/src/shell/codeWriter.d.ts.map +0 -1
- package/dist/src/shell/codeWriter.js.map +0 -1
- package/dist/src/shell/compareVariants.d.ts.map +0 -1
- package/dist/src/shell/compareVariants.js.map +0 -1
- package/dist/src/shell/controlCycle.d.ts.map +0 -1
- package/dist/src/shell/controlCycle.js.map +0 -1
- package/dist/src/shell/dockTabs.d.ts.map +0 -1
- package/dist/src/shell/dockTabs.js.map +0 -1
- package/dist/src/shell/icons.d.ts.map +0 -1
- package/dist/src/shell/icons.js.map +0 -1
- package/dist/src/shell/keyboard.d.ts.map +0 -1
- package/dist/src/shell/keyboard.js.map +0 -1
- package/dist/src/shell/mountShell.d.ts.map +0 -1
- package/dist/src/shell/mountShell.js.map +0 -1
- package/dist/src/shell/storyTouch.d.ts.map +0 -1
- package/dist/src/shell/storyTouch.js.map +0 -1
- package/dist/src/shell/strings.d.ts.map +0 -1
- package/dist/src/shell/strings.js.map +0 -1
- package/dist/src/shell/switchView.d.ts.map +0 -1
- package/dist/src/shell/switchView.js.map +0 -1
- package/dist/src/shell/treeSearch.d.ts.map +0 -1
- package/dist/src/shell/treeSearch.js.map +0 -1
- package/dist/src/shell/useAppearance.d.ts.map +0 -1
- package/dist/src/shell/useAppearance.js.map +0 -1
- package/dist/src/shell/useComponentDocs.d.ts.map +0 -1
- package/dist/src/shell/useComponentDocs.js.map +0 -1
- package/dist/src/shell/useControlKeys.d.ts.map +0 -1
- package/dist/src/shell/useControlKeys.js.map +0 -1
- package/dist/src/shell/useCopy.d.ts.map +0 -1
- package/dist/src/shell/useCopy.js.map +0 -1
- package/dist/src/shell/useFold.d.ts.map +0 -1
- package/dist/src/shell/useFold.js.map +0 -1
- package/dist/src/shell/useFrameMessages.d.ts.map +0 -1
- package/dist/src/shell/useFrameMessages.js.map +0 -1
- package/dist/src/shell/useFrameQueue.d.ts.map +0 -1
- package/dist/src/shell/useFrameQueue.js.map +0 -1
- package/dist/src/shell/useFullPage.d.ts.map +0 -1
- package/dist/src/shell/useFullPage.js.map +0 -1
- package/dist/src/shell/useLiveView.d.ts.map +0 -1
- package/dist/src/shell/useLiveView.js.map +0 -1
- package/dist/src/shell/useLoaded.d.ts.map +0 -1
- package/dist/src/shell/useLoaded.js.map +0 -1
- package/dist/src/shell/usePageDoc.d.ts.map +0 -1
- package/dist/src/shell/usePageDoc.js.map +0 -1
- package/dist/src/shell/usePopover.d.ts.map +0 -1
- package/dist/src/shell/usePopover.js.map +0 -1
- package/dist/src/shell/useRecentPages.d.ts.map +0 -1
- package/dist/src/shell/useRecentPages.js.map +0 -1
- package/dist/src/shell/useScrollMemory.d.ts.map +0 -1
- package/dist/src/shell/useScrollMemory.js.map +0 -1
- package/dist/src/shell/useSidebarLayout.d.ts.map +0 -1
- package/dist/src/shell/useSidebarLayout.js.map +0 -1
- package/dist/src/shell/useStored.d.ts.map +0 -1
- package/dist/src/shell/useStored.js.map +0 -1
- package/dist/src/shell/useStoryCode.d.ts.map +0 -1
- package/dist/src/shell/useStoryCode.js.map +0 -1
- package/dist/src/shell/useStoryHeights.d.ts.map +0 -1
- package/dist/src/shell/useStoryHeights.js.map +0 -1
- package/dist/src/shell/useStoryIdsElement.d.ts.map +0 -1
- package/dist/src/shell/useStoryIdsElement.js.map +0 -1
- package/dist/src/shell/useStoryKeys.d.ts.map +0 -1
- package/dist/src/shell/useStoryKeys.js.map +0 -1
- package/dist/src/shell/useSystemDark.d.ts.map +0 -1
- package/dist/src/shell/useSystemDark.js.map +0 -1
- package/dist/src/shell/useToolbarLayout.d.ts.map +0 -1
- package/dist/src/shell/useToolbarLayout.js.map +0 -1
- package/dist/src/shell/useToolbarOverflow.d.ts.map +0 -1
- package/dist/src/shell/useToolbarOverflow.js.map +0 -1
- package/dist/src/shell/useWorstCase.d.ts.map +0 -1
- package/dist/src/shell/useWorstCase.js.map +0 -1
- package/dist/src/shell/worstArgs.d.ts.map +0 -1
- package/dist/src/shell/worstArgs.js.map +0 -1
- package/dist/src/sourceFiles.d.ts.map +0 -1
- package/dist/src/sourceFiles.js.map +0 -1
- package/dist/src/spills.d.ts.map +0 -1
- package/dist/src/spills.js.map +0 -1
- package/dist/src/storyBackground.d.ts.map +0 -1
- package/dist/src/storyBackground.js.map +0 -1
- package/dist/src/storyCheck.d.ts.map +0 -1
- package/dist/src/storyCheck.js.map +0 -1
- package/dist/src/storyClock.d.ts.map +0 -1
- package/dist/src/storyClock.js.map +0 -1
- package/dist/src/storyGlobals.d.ts.map +0 -1
- package/dist/src/storyGlobals.js.map +0 -1
- package/dist/src/storyHeights.d.ts.map +0 -1
- package/dist/src/storyHeights.js.map +0 -1
- package/dist/src/storyIdsElement.d.ts.map +0 -1
- package/dist/src/storyIdsElement.js.map +0 -1
- package/dist/src/storyTexts.d.ts.map +0 -1
- package/dist/src/storyTexts.js.map +0 -1
- package/dist/src/storyTree.d.ts.map +0 -1
- package/dist/src/storyTree.js.map +0 -1
- package/dist/src/switches.d.ts.map +0 -1
- package/dist/src/switches.js.map +0 -1
- package/dist/src/toolbarLayout.d.ts.map +0 -1
- package/dist/src/toolbarLayout.js.map +0 -1
- package/dist/src/usedIn.d.ts.map +0 -1
- package/dist/src/usedIn.js.map +0 -1
- package/dist/src/viewState.d.ts.map +0 -1
- package/dist/src/viewState.js.map +0 -1
- package/dist/src/viewWords.d.ts.map +0 -1
- package/dist/src/viewWords.js.map +0 -1
- package/dist/src/vite/adapter.d.ts.map +0 -1
- package/dist/src/vite/adapter.js.map +0 -1
- package/dist/src/vite/agent.types.d.ts.map +0 -1
- package/dist/src/vite/agent.types.js.map +0 -1
- package/dist/src/vite/agentApi.d.ts.map +0 -1
- package/dist/src/vite/agentApi.js.map +0 -1
- package/dist/src/vite/agentRoutes.d.ts.map +0 -1
- package/dist/src/vite/agentRoutes.js.map +0 -1
- package/dist/src/vite/autoTitle.d.ts.map +0 -1
- package/dist/src/vite/autoTitle.js.map +0 -1
- package/dist/src/vite/componentPage.d.ts.map +0 -1
- package/dist/src/vite/componentPage.js.map +0 -1
- package/dist/src/vite/config.d.ts.map +0 -1
- package/dist/src/vite/config.js.map +0 -1
- package/dist/src/vite/configFile.d.ts.map +0 -1
- package/dist/src/vite/configFile.js.map +0 -1
- package/dist/src/vite/docsExtractor.d.ts.map +0 -1
- package/dist/src/vite/docsExtractor.js.map +0 -1
- package/dist/src/vite/docsProgram.d.ts.map +0 -1
- package/dist/src/vite/docsProgram.js.map +0 -1
- package/dist/src/vite/docsWorker.d.ts.map +0 -1
- package/dist/src/vite/docsWorker.js.map +0 -1
- package/dist/src/vite/forcedStates.d.ts.map +0 -1
- package/dist/src/vite/forcedStates.js.map +0 -1
- package/dist/src/vite/forgebookPlugin.d.ts.map +0 -1
- package/dist/src/vite/forgebookPlugin.js.map +0 -1
- package/dist/src/vite/highlightCode.d.ts.map +0 -1
- package/dist/src/vite/highlightCode.js.map +0 -1
- package/dist/src/vite/indexStoryFile.d.ts.map +0 -1
- package/dist/src/vite/indexStoryFile.js.map +0 -1
- package/dist/src/vite/mcpProtocol.d.ts.map +0 -1
- package/dist/src/vite/mcpProtocol.js.map +0 -1
- package/dist/src/vite/pages.d.ts.map +0 -1
- package/dist/src/vite/pages.js.map +0 -1
- package/dist/src/vite/prebundled.d.ts.map +0 -1
- package/dist/src/vite/prebundled.js.map +0 -1
- package/dist/src/vite/storyCode.d.ts.map +0 -1
- package/dist/src/vite/storyCode.js.map +0 -1
- package/dist/src/vite/storyFilesModule.d.ts.map +0 -1
- package/dist/src/vite/storyFilesModule.js.map +0 -1
- package/dist/src/vite/storyMeta.d.ts.map +0 -1
- package/dist/src/vite/storyMeta.js.map +0 -1
- package/dist/src/vite/touchMedia.d.ts.map +0 -1
- package/dist/src/vite/touchMedia.js.map +0 -1
- package/dist/src/vite/typeScriptPieces.d.ts.map +0 -1
- package/dist/src/vite/typeScriptPieces.js.map +0 -1
- package/dist/src/vite/usageGraph.d.ts.map +0 -1
- package/dist/src/vite/usageGraph.js.map +0 -1
- package/dist/src/vite/usageModule.d.ts.map +0 -1
- package/dist/src/vite/usageModule.js.map +0 -1
- package/dist/src/worstCase.d.ts.map +0 -1
- package/dist/src/worstCase.js.map +0 -1
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
@layer catalogue {
|
|
2
|
+
.forgebook-embed {
|
|
3
|
+
min-height: 100vh;
|
|
4
|
+
background: var(--forgebook-surface);
|
|
5
|
+
}
|
|
6
|
+
.forgebook-embed__story {
|
|
7
|
+
max-width: 100%;
|
|
8
|
+
margin-inline: auto;
|
|
9
|
+
}
|
|
10
|
+
.forgebook-embed__message {
|
|
11
|
+
margin: 0;
|
|
12
|
+
padding: 1rem;
|
|
13
|
+
font: 400 0.8125rem/1.4 var(--forgebook-font-sans);
|
|
14
|
+
color: var(--forgebook-text-secondary);
|
|
15
|
+
}
|
|
16
|
+
.forgebook-embed__message[data-failed] {
|
|
17
|
+
color: var(--forgebook-danger-text);
|
|
18
|
+
}
|
|
19
|
+
.forgebook-embed__detail {
|
|
20
|
+
margin: 0.25rem 0 0;
|
|
21
|
+
color: var(--forgebook-text-secondary);
|
|
22
|
+
overflow-wrap: anywhere;
|
|
23
|
+
}
|
|
24
|
+
.forgebook-popover--embed {
|
|
25
|
+
box-sizing: border-box;
|
|
26
|
+
width: min(26rem, 100vw - 1.5rem);
|
|
27
|
+
max-height: calc(100vh - 1.5rem);
|
|
28
|
+
overflow-y: auto;
|
|
29
|
+
white-space: normal;
|
|
30
|
+
}
|
|
31
|
+
.forgebook-embed-panel__hint {
|
|
32
|
+
margin: 0;
|
|
33
|
+
font: 400 0.6875rem/1.35 var(--forgebook-font-sans);
|
|
34
|
+
color: var(--forgebook-text-secondary);
|
|
35
|
+
}
|
|
36
|
+
.forgebook-embed-panel__hint[data-warning] {
|
|
37
|
+
color: var(--forgebook-danger-text);
|
|
38
|
+
}
|
|
39
|
+
.forgebook-embed-field {
|
|
40
|
+
display: grid;
|
|
41
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
42
|
+
gap: 0.25rem 0.5rem;
|
|
43
|
+
align-items: center;
|
|
44
|
+
}
|
|
45
|
+
.forgebook-embed-field__label {
|
|
46
|
+
grid-column: 1/-1;
|
|
47
|
+
font: 500 0.75rem/1.3 var(--forgebook-font-sans);
|
|
48
|
+
color: var(--forgebook-text-secondary);
|
|
49
|
+
}
|
|
50
|
+
.forgebook-embed-field__value {
|
|
51
|
+
box-sizing: border-box;
|
|
52
|
+
width: 100%;
|
|
53
|
+
min-width: 0;
|
|
54
|
+
padding: 0.375rem 0.5rem;
|
|
55
|
+
border: 0;
|
|
56
|
+
border-radius: var(--forgebook-radius-control);
|
|
57
|
+
font: 400 0.6875rem/1.6 var(--forgebook-font-mono);
|
|
58
|
+
color: var(--forgebook-text);
|
|
59
|
+
background: var(--forgebook-fill-quiet);
|
|
60
|
+
box-shadow: inset 0 0 0 1px var(--forgebook-edge-field);
|
|
61
|
+
}
|
|
62
|
+
.forgebook-embed-field__value:focus-visible {
|
|
63
|
+
outline: 2px solid color-mix(in srgb, var(--forgebook-accent) 35%, transparent);
|
|
64
|
+
outline-offset: 0;
|
|
65
|
+
box-shadow: inset 0 0 0 1px var(--forgebook-accent);
|
|
66
|
+
}
|
|
67
|
+
.forgebook-embed-panel__follow {
|
|
68
|
+
display: flex;
|
|
69
|
+
gap: 0.5rem;
|
|
70
|
+
align-items: center;
|
|
71
|
+
font: 500 0.75rem/1.3 var(--forgebook-font-sans);
|
|
72
|
+
color: var(--forgebook-text);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The code of a component whose stories come from several files, as one loader: the Code cards of its page read each
|
|
3
|
+
* story's code by its export, whichever file it is in.
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* The loader of a component in one file is the source's own, unchanged. One in several files is made once per list of
|
|
7
|
+
* files and kept, since the page loads the code again whenever its loader changes.
|
|
8
|
+
*
|
|
9
|
+
* @module
|
|
10
|
+
*/
|
|
11
|
+
/** A source's loaders of its files' code, by file. */
|
|
12
|
+
type CodeLoaders = Readonly<Record<string, () => Promise<unknown>>>;
|
|
13
|
+
/**
|
|
14
|
+
* One loader for the code of several files: each file's code, a story's export found in the first file that has it.
|
|
15
|
+
*
|
|
16
|
+
* @param loaders - the source's loaders of its files' code.
|
|
17
|
+
* @param files - the component's files, its first file first.
|
|
18
|
+
* @returns the loader; `undefined` when no file has one.
|
|
19
|
+
*/
|
|
20
|
+
export declare const filesCodeLoader: (loaders: CodeLoaders, files: readonly string[]) => (() => Promise<unknown>) | undefined;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The code of a component whose stories come from several files, as one loader: the Code cards of its page read each
|
|
3
|
+
* story's code by its export, whichever file it is in.
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* The loader of a component in one file is the source's own, unchanged. One in several files is made once per list of
|
|
7
|
+
* files and kept, since the page loads the code again whenever its loader changes.
|
|
8
|
+
*
|
|
9
|
+
* @module
|
|
10
|
+
*/
|
|
11
|
+
/** The loaders made so far, by the source's loaders, then by the files joined. */
|
|
12
|
+
const MADE = new WeakMap();
|
|
13
|
+
/**
|
|
14
|
+
* One loader for the code of several files: each file's code, a story's export found in the first file that has it.
|
|
15
|
+
*
|
|
16
|
+
* @param loaders - the source's loaders of its files' code.
|
|
17
|
+
* @param files - the component's files, its first file first.
|
|
18
|
+
* @returns the loader; `undefined` when no file has one.
|
|
19
|
+
*/
|
|
20
|
+
export const filesCodeLoader = (loaders, files) => {
|
|
21
|
+
const own = files.flatMap((file) => {
|
|
22
|
+
const load = loaders[file];
|
|
23
|
+
return load === undefined ? [] : [load];
|
|
24
|
+
});
|
|
25
|
+
if (own.length <= 1)
|
|
26
|
+
return own[0];
|
|
27
|
+
const made = MADE.get(loaders) ?? new Map();
|
|
28
|
+
MADE.set(loaders, made);
|
|
29
|
+
const key = files.join("\n");
|
|
30
|
+
const known = made.get(key);
|
|
31
|
+
if (known !== undefined)
|
|
32
|
+
return known;
|
|
33
|
+
// the last file is assigned first, so a story of an earlier file wins; an `error` of any file stays and is shown
|
|
34
|
+
const load = () => Promise.all(own.map((each) => each())).then((codes) => Object.assign({}, ...codes.reverse()));
|
|
35
|
+
made.set(key, load);
|
|
36
|
+
return load;
|
|
37
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Forgebook's own mark: an open book whose two pages rise into a flame, in an ember gradient. The sidebar shows it for
|
|
3
|
+
* a catalogue without a logo of its own, and the page's icon uses it then (`mountShell.tsx`).
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* One SVG text, drawn as an image (a data address), so its gradients never clash with ids in the page and the
|
|
7
|
+
* sidebar and the icon cannot drift apart. `assets/forgebook-logo.svg` at the repository's root is the same drawing,
|
|
8
|
+
* for the READMEs.
|
|
9
|
+
*
|
|
10
|
+
* @module
|
|
11
|
+
*/
|
|
12
|
+
/** The mark's SVG, on a 64 × 64 grid. */
|
|
13
|
+
export declare const FORGEBOOK_MARK_SVG: string;
|
|
14
|
+
/** The mark as an image's address. */
|
|
15
|
+
export declare const FORGEBOOK_MARK_URL: string;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Forgebook's own mark: an open book whose two pages rise into a flame, in an ember gradient. The sidebar shows it for
|
|
3
|
+
* a catalogue without a logo of its own, and the page's icon uses it then (`mountShell.tsx`).
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* One SVG text, drawn as an image (a data address), so its gradients never clash with ids in the page and the
|
|
7
|
+
* sidebar and the icon cannot drift apart. `assets/forgebook-logo.svg` at the repository's root is the same drawing,
|
|
8
|
+
* for the READMEs.
|
|
9
|
+
*
|
|
10
|
+
* @module
|
|
11
|
+
*/
|
|
12
|
+
/** The mark's SVG, on a 64 × 64 grid. */
|
|
13
|
+
export const FORGEBOOK_MARK_SVG = [
|
|
14
|
+
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">',
|
|
15
|
+
"<defs>",
|
|
16
|
+
'<linearGradient id="ember" x1="0" y1="1" x2="0.6" y2="0">',
|
|
17
|
+
'<stop offset="0" stop-color="#E0115F"/><stop offset="0.5" stop-color="#FF5A1F"/><stop offset="1" stop-color="#FFB020"/>',
|
|
18
|
+
"</linearGradient>",
|
|
19
|
+
'<linearGradient id="ember-dark" x1="0" y1="1" x2="0.6" y2="0">',
|
|
20
|
+
'<stop offset="0" stop-color="#B00E4C"/><stop offset="1" stop-color="#F0441A"/>',
|
|
21
|
+
"</linearGradient>",
|
|
22
|
+
"</defs>",
|
|
23
|
+
'<path d="M30.5 56C16 53 8 41 13 27C15.5 20 20 15 23 8C24.5 20 28 25 30.5 31Z" fill="url(#ember-dark)"/>',
|
|
24
|
+
'<path d="M33.5 56C48 53 57 40 51 25C48.5 18 44 13 42 4C39.5 18 36 24 33.5 31Z" fill="url(#ember)"/>',
|
|
25
|
+
"</svg>"
|
|
26
|
+
].join("");
|
|
27
|
+
/** The mark as an image's address. */
|
|
28
|
+
export const FORGEBOOK_MARK_URL = `data:image/svg+xml,${encodeURIComponent(FORGEBOOK_MARK_SVG)}`;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sets the frames' origin, before the shell renders.
|
|
3
|
+
*
|
|
4
|
+
* @param origin - the frames' origin (`http://localhost:5174`).
|
|
5
|
+
*/
|
|
6
|
+
export declare const setFramesOrigin: (origin: string) => void;
|
|
7
|
+
/** The frames' origin: the catalogue's own until `mountShell` sets it. */
|
|
8
|
+
export declare const framesOrigin: () => string;
|
|
9
|
+
/**
|
|
10
|
+
* Whether a message comes from the frames' origin.
|
|
11
|
+
*
|
|
12
|
+
* @param event - the message's event.
|
|
13
|
+
*/
|
|
14
|
+
export declare const isFromFrames: (event: MessageEvent) => boolean;
|
|
15
|
+
/** What a story's frame element is given, wherever the shell draws one. */
|
|
16
|
+
export type StoryFrameAttributes = {
|
|
17
|
+
/** The browser features it may use. */
|
|
18
|
+
readonly allow: string;
|
|
19
|
+
/** Its sandbox; none on the catalogue's own origin. */
|
|
20
|
+
readonly sandbox: string | undefined;
|
|
21
|
+
};
|
|
22
|
+
/** The attributes of a story's frame element: the features it is delegated, and its sandbox off the catalogue's origin. */
|
|
23
|
+
export declare const storyFrameAttributes: () => StoryFrameAttributes;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The shell's side of the messages with the stories' frames: the frames' origin, the only one the shell sends to and
|
|
3
|
+
* listens to, and what each frame element the shell draws is allowed (the stage's, a page's, the design comparison's).
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* A page holds one shell, and its frames run on one origin for the page's life, so the origin is a fact of the page,
|
|
7
|
+
* set once by `mountShell` before anything renders, as the page's address is. A message from anywhere else is not a
|
|
8
|
+
* frame's, and a message sent with the frames' origin never reaches a document that is not one of them.
|
|
9
|
+
*
|
|
10
|
+
* @module
|
|
11
|
+
*/
|
|
12
|
+
/** The frames' origin, once `mountShell` set it. */
|
|
13
|
+
let pageFramesOrigin;
|
|
14
|
+
/**
|
|
15
|
+
* Sets the frames' origin, before the shell renders.
|
|
16
|
+
*
|
|
17
|
+
* @param origin - the frames' origin (`http://localhost:5174`).
|
|
18
|
+
*/
|
|
19
|
+
export const setFramesOrigin = (origin) => {
|
|
20
|
+
pageFramesOrigin = origin;
|
|
21
|
+
};
|
|
22
|
+
/** The frames' origin: the catalogue's own until `mountShell` sets it. */
|
|
23
|
+
export const framesOrigin = () => pageFramesOrigin ?? window.location.origin;
|
|
24
|
+
/**
|
|
25
|
+
* Whether a message comes from the frames' origin.
|
|
26
|
+
*
|
|
27
|
+
* @param event - the message's event.
|
|
28
|
+
*/
|
|
29
|
+
export const isFromFrames = (event) => event.origin === framesOrigin();
|
|
30
|
+
/**
|
|
31
|
+
* The browser features a story may use, delegated to its frame. A frame on the catalogue's own origin had each of them;
|
|
32
|
+
* on an origin of its own it gets only those its element allows (a copy button, a video's full screen, a scanner's
|
|
33
|
+
* camera).
|
|
34
|
+
*/
|
|
35
|
+
const FRAME_PERMISSIONS = [
|
|
36
|
+
"clipboard-read",
|
|
37
|
+
"clipboard-write",
|
|
38
|
+
"fullscreen",
|
|
39
|
+
"camera",
|
|
40
|
+
"microphone",
|
|
41
|
+
"geolocation",
|
|
42
|
+
"display-capture",
|
|
43
|
+
"autoplay",
|
|
44
|
+
"picture-in-picture",
|
|
45
|
+
"encrypted-media",
|
|
46
|
+
"screen-wake-lock"
|
|
47
|
+
].join("; ");
|
|
48
|
+
/**
|
|
49
|
+
* What a story's frame may do, as a sandbox: everything a page does but navigate the catalogue's tab, which a story's
|
|
50
|
+
* link could otherwise send to any address. The frames keep their own origin (`allow-same-origin`): it is not the
|
|
51
|
+
* catalogue's, so the pair gives the story nothing of the catalogue's. Frames on the catalogue's own origin get none:
|
|
52
|
+
* there the pair would let a story lift its own sandbox, and browsers warn of it.
|
|
53
|
+
*/
|
|
54
|
+
const FRAME_SANDBOX = [
|
|
55
|
+
"allow-scripts",
|
|
56
|
+
"allow-same-origin",
|
|
57
|
+
"allow-forms",
|
|
58
|
+
"allow-modals",
|
|
59
|
+
"allow-popups",
|
|
60
|
+
"allow-popups-to-escape-sandbox",
|
|
61
|
+
"allow-downloads",
|
|
62
|
+
"allow-pointer-lock",
|
|
63
|
+
"allow-presentation"
|
|
64
|
+
].join(" ");
|
|
65
|
+
/** The attributes of a story's frame element: the features it is delegated, and its sandbox off the catalogue's origin. */
|
|
66
|
+
export const storyFrameAttributes = () => ({
|
|
67
|
+
allow: FRAME_PERMISSIONS,
|
|
68
|
+
sandbox: framesOrigin() === window.location.origin ? undefined : FRAME_SANDBOX
|
|
69
|
+
});
|
|
@@ -25,8 +25,11 @@ declare const PATHS: {
|
|
|
25
25
|
readonly ruler: "M2 10.5 10.5 2l3.5 3.5L5.5 14zM5 8l1.5 1.5M7 6l1 1M9 4l1.5 1.5";
|
|
26
26
|
readonly sidebar: "M2 3h12v10H2zM6 3v10";
|
|
27
27
|
readonly close: "M4 4l8 8M12 4l-8 8";
|
|
28
|
+
readonly embed: "M5.5 4.5 2 8l3.5 3.5M10.5 4.5 14 8l-3.5 3.5";
|
|
28
29
|
readonly external: "M9 2.5h4.5V7M13.5 2.5 8 8M11.5 9.5v4h-9v-9h4";
|
|
29
30
|
readonly width: "M2 4v8M14 4v8M4.5 8h7M6 6.5 4.5 8 6 9.5M10 6.5l1.5 1.5-1.5 1.5";
|
|
31
|
+
readonly turn: "M2.5 9.5h7a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1h-7a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1ZM12 12.5a2.5 2.5 0 0 0 2.5-2.5V8.5M13.5 10l1-1.5 1 1.5";
|
|
32
|
+
readonly device: "M5.5 1.5h5a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1h-5a1 1 0 0 1-1-1v-11a1 1 0 0 1 1-1ZM7.25 3.5h1.5";
|
|
30
33
|
readonly plus: "M8 3.5v9M3.5 8h9";
|
|
31
34
|
readonly minus: "M3.5 8h9";
|
|
32
35
|
readonly hash: "M6 2.5 5 13.5M11 2.5l-1 11M3 6h10.5M2.5 10H13";
|
|
@@ -36,6 +39,7 @@ declare const PATHS: {
|
|
|
36
39
|
readonly grip: "M6 4h0M10 4h0M6 8h0M10 8h0M6 12h0M10 12h0";
|
|
37
40
|
readonly pin: "M6 2.5h4M7 2.5V6.5L4.5 9.5h7L9 6.5V2.5M8 9.5v4";
|
|
38
41
|
readonly eye: "M2 8s2.2-4 6-4 6 4 6 4-2.2 4-6 4-6-4-6-4ZM8 6.5a1.5 1.5 0 1 0 0 3a1.5 1.5 0 0 0 0-3Z";
|
|
42
|
+
readonly function: "M10.5 2.5c-1.6 0-2.3.9-2.6 2.6L6.6 11c-.3 1.7-1 2.5-2.6 2.5M5 6.5h5";
|
|
39
43
|
readonly info: "M8 1.75a6.25 6.25 0 1 0 0 12.5a6.25 6.25 0 0 0 0-12.5ZM8 7.25v4M8 4.9v.1";
|
|
40
44
|
readonly eyeOff: "M2 8s2.2-4 6-4 6 4 6 4-2.2 4-6 4-6-4-6-4ZM8 6.5a1.5 1.5 0 1 0 0 3a1.5 1.5 0 0 0 0-3ZM3 13 13 3";
|
|
41
45
|
};
|
|
@@ -51,4 +55,3 @@ export declare const Icon: ({ name, size }: {
|
|
|
51
55
|
readonly size?: number;
|
|
52
56
|
}) => ReactNode;
|
|
53
57
|
export {};
|
|
54
|
-
//# sourceMappingURL=icons.d.ts.map
|
package/dist/src/shell/icons.js
CHANGED
|
@@ -20,8 +20,11 @@ const PATHS = {
|
|
|
20
20
|
ruler: "M2 10.5 10.5 2l3.5 3.5L5.5 14zM5 8l1.5 1.5M7 6l1 1M9 4l1.5 1.5",
|
|
21
21
|
sidebar: "M2 3h12v10H2zM6 3v10",
|
|
22
22
|
close: "M4 4l8 8M12 4l-8 8",
|
|
23
|
+
embed: "M5.5 4.5 2 8l3.5 3.5M10.5 4.5 14 8l-3.5 3.5",
|
|
23
24
|
external: "M9 2.5h4.5V7M13.5 2.5 8 8M11.5 9.5v4h-9v-9h4",
|
|
24
25
|
width: "M2 4v8M14 4v8M4.5 8h7M6 6.5 4.5 8 6 9.5M10 6.5l1.5 1.5-1.5 1.5",
|
|
26
|
+
turn: "M2.5 9.5h7a1 1 0 0 0 1-1v-4a1 1 0 0 0-1-1h-7a1 1 0 0 0-1 1v4a1 1 0 0 0 1 1ZM12 12.5a2.5 2.5 0 0 0 2.5-2.5V8.5M13.5 10l1-1.5 1 1.5",
|
|
27
|
+
device: "M5.5 1.5h5a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1h-5a1 1 0 0 1-1-1v-11a1 1 0 0 1 1-1ZM7.25 3.5h1.5",
|
|
25
28
|
plus: "M8 3.5v9M3.5 8h9",
|
|
26
29
|
minus: "M3.5 8h9",
|
|
27
30
|
hash: "M6 2.5 5 13.5M11 2.5l-1 11M3 6h10.5M2.5 10H13",
|
|
@@ -31,6 +34,7 @@ const PATHS = {
|
|
|
31
34
|
grip: "M6 4h0M10 4h0M6 8h0M10 8h0M6 12h0M10 12h0",
|
|
32
35
|
pin: "M6 2.5h4M7 2.5V6.5L4.5 9.5h7L9 6.5V2.5M8 9.5v4",
|
|
33
36
|
eye: "M2 8s2.2-4 6-4 6 4 6 4-2.2 4-6 4-6-4-6-4ZM8 6.5a1.5 1.5 0 1 0 0 3a1.5 1.5 0 0 0 0-3Z",
|
|
37
|
+
function: "M10.5 2.5c-1.6 0-2.3.9-2.6 2.6L6.6 11c-.3 1.7-1 2.5-2.6 2.5M5 6.5h5",
|
|
34
38
|
info: "M8 1.75a6.25 6.25 0 1 0 0 12.5a6.25 6.25 0 0 0 0-12.5ZM8 7.25v4M8 4.9v.1",
|
|
35
39
|
eyeOff: "M2 8s2.2-4 6-4 6 4 6 4-2.2 4-6 4-6-4-6-4ZM8 6.5a1.5 1.5 0 1 0 0 3a1.5 1.5 0 0 0 0-3ZM3 13 13 3"
|
|
36
40
|
};
|
|
@@ -40,4 +44,3 @@ const PATHS = {
|
|
|
40
44
|
* @param props - the icon and its size in px.
|
|
41
45
|
*/
|
|
42
46
|
export const Icon = ({ name, size = 16 }) => (_jsx("svg", { width: size, height: size, viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: _jsx("path", { d: PATHS[name] }) }));
|
|
43
|
-
//# sourceMappingURL=icons.js.map
|
|
@@ -33,4 +33,3 @@ export declare const storyStep: (event: Pick<KeyboardEvent, "key" | "metaKey" |
|
|
|
33
33
|
* @param firstOfPage - on a component's page, the id of its first story.
|
|
34
34
|
*/
|
|
35
35
|
export declare const steppedStory: (ids: readonly string[], currentId: string | undefined, step: StoryStep, firstOfPage: string | undefined) => string | undefined;
|
|
36
|
-
//# sourceMappingURL=keyboard.d.ts.map
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/** The later parts' texts, as shown: Forgebook's, with the catalogue's replacements. */
|
|
2
|
+
export declare const LATER_STRINGS: {
|
|
3
|
+
audienceError: string;
|
|
4
|
+
controlKey: (control: string, key: string | undefined) => string;
|
|
5
|
+
changeKey: string;
|
|
6
|
+
pressAKey: string;
|
|
7
|
+
namedViews: string;
|
|
8
|
+
saveView: string;
|
|
9
|
+
viewName: string;
|
|
10
|
+
removeView: (name: string) => string;
|
|
11
|
+
resetView: string;
|
|
12
|
+
viewInAddress: string;
|
|
13
|
+
pinControl: (label: string) => string;
|
|
14
|
+
hideControl: (label: string) => string;
|
|
15
|
+
showControl: (label: string) => string;
|
|
16
|
+
moveControl: (label: string) => string;
|
|
17
|
+
moveControlHint: string;
|
|
18
|
+
controlMoved: (label: string, position: number, count: number) => string;
|
|
19
|
+
pinnedNoRoom: string;
|
|
20
|
+
resetToolbar: string;
|
|
21
|
+
wrapToolbar: string;
|
|
22
|
+
hiddenControls: (count: number, pinned: number) => string;
|
|
23
|
+
toolbarInBrowser: string;
|
|
24
|
+
compareCell: (labels: readonly string[]) => string;
|
|
25
|
+
embedHint: string;
|
|
26
|
+
embedLink: string;
|
|
27
|
+
embedCode: string;
|
|
28
|
+
embedFollow: string;
|
|
29
|
+
embedFollowHint: string;
|
|
30
|
+
embedLocal: string;
|
|
31
|
+
embedCopyFailed: string;
|
|
32
|
+
embedNoStory: string;
|
|
33
|
+
embedUnknownStory: (id: string) => string;
|
|
34
|
+
pluginLoading: string;
|
|
35
|
+
pluginError: string;
|
|
36
|
+
playTitle: string;
|
|
37
|
+
playTime: (ms: number) => string;
|
|
38
|
+
playAgain: string;
|
|
39
|
+
playNoSteps: string;
|
|
40
|
+
codeFromArgs: string;
|
|
41
|
+
codeRender: string;
|
|
42
|
+
copy: string;
|
|
43
|
+
a11yCheck: string;
|
|
44
|
+
a11yRunning: string;
|
|
45
|
+
a11yNone: string;
|
|
46
|
+
a11yError: string;
|
|
47
|
+
a11yNotInCompare: string;
|
|
48
|
+
clockLabel: string;
|
|
49
|
+
clockPause: string;
|
|
50
|
+
clockResume: string;
|
|
51
|
+
clockRestart: string;
|
|
52
|
+
clockSpeed: string;
|
|
53
|
+
clockRate: (rate: number) => string;
|
|
54
|
+
apiReference: string;
|
|
55
|
+
apiProp: string;
|
|
56
|
+
apiEvent: string;
|
|
57
|
+
apiSignature: string;
|
|
58
|
+
apiDefault: string;
|
|
59
|
+
apiMember: string;
|
|
60
|
+
memberCount: (count: number) => string;
|
|
61
|
+
membersOf: (type: string) => string;
|
|
62
|
+
showCode: string;
|
|
63
|
+
hideCode: string;
|
|
64
|
+
openStory: string;
|
|
65
|
+
usedIn: string;
|
|
66
|
+
usedInThrough: string;
|
|
67
|
+
usedInMore: (count: number) => string;
|
|
68
|
+
usedInStories: (count: number) => string;
|
|
69
|
+
openStoryNamed: (name: string) => string;
|
|
70
|
+
touch: string;
|
|
71
|
+
touchNamed: (name: string) => string;
|
|
72
|
+
fillPage: string;
|
|
73
|
+
fillPageNamed: (name: string) => string;
|
|
74
|
+
backToPlace: string;
|
|
75
|
+
backToPlaceNamed: (name: string) => string;
|
|
76
|
+
examples: string;
|
|
77
|
+
pageError: string;
|
|
78
|
+
droppedArgs: string;
|
|
79
|
+
droppedArgReasons: {
|
|
80
|
+
undeclared: string;
|
|
81
|
+
type: string;
|
|
82
|
+
};
|
|
83
|
+
removeDroppedArgs: string;
|
|
84
|
+
events: string;
|
|
85
|
+
calls: string;
|
|
86
|
+
noCalls: string;
|
|
87
|
+
clearCalls: string;
|
|
88
|
+
partsList: string;
|
|
89
|
+
styleHooks: string;
|
|
90
|
+
testIds: string;
|
|
91
|
+
};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The texts of the shell's parts that load after the first screen, but for the home and the docs pages
|
|
3
|
+
* (`pageStrings.ts`): a component's page, the panel's tabs but Props, the View menu's panel, the embed panel and page,
|
|
4
|
+
* the comparison, the story clock's bar, the plugins' hosts and the note on args a link dropped. They load with the
|
|
5
|
+
* first of those parts, so a first load carries none of them.
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* Each keeps the plain name it would have in `STRINGS`, so a catalogue replaces it the same way
|
|
9
|
+
* (`strings: { copy: "Copia" }`): the replacements set before the shell drew apply when this module loads
|
|
10
|
+
* (`lateStrings`).
|
|
11
|
+
*
|
|
12
|
+
* @module
|
|
13
|
+
*/
|
|
14
|
+
import { lateStrings } from "./strings.js";
|
|
15
|
+
/** The later parts' texts, as shown: Forgebook's, with the catalogue's replacements. */
|
|
16
|
+
export const LATER_STRINGS = lateStrings({
|
|
17
|
+
audienceError: "This part of the page could not be loaded",
|
|
18
|
+
controlKey: (control, key) => key === undefined ? `${control}: no key` : `${control}: key ${key.toUpperCase()}`,
|
|
19
|
+
changeKey: "Change the key: press it, then the new key; Backspace takes it away",
|
|
20
|
+
pressAKey: "Press a key",
|
|
21
|
+
namedViews: "Views",
|
|
22
|
+
saveView: "Save view…",
|
|
23
|
+
viewName: "View name",
|
|
24
|
+
removeView: (name) => `Remove the view ${name}`,
|
|
25
|
+
resetView: "Reset to defaults",
|
|
26
|
+
viewInAddress: "Saved in the address",
|
|
27
|
+
pinControl: (label) => `Pin ${label} to the toolbar`,
|
|
28
|
+
hideControl: (label) => `Hide ${label} in View`,
|
|
29
|
+
showControl: (label) => `Show ${label}`,
|
|
30
|
+
moveControl: (label) => `Move ${label}`,
|
|
31
|
+
moveControlHint: "Drag, or press the arrow keys",
|
|
32
|
+
controlMoved: (label, position, count) => `${label}, ${position} of ${count}`,
|
|
33
|
+
pinnedNoRoom: "Pinned: back on the toolbar when there is room",
|
|
34
|
+
resetToolbar: "Reset toolbar",
|
|
35
|
+
wrapToolbar: "Wrap the toolbar onto more lines when it is full",
|
|
36
|
+
hiddenControls: (count, pinned) => pinned === 0 ? `${count} hidden` : `${count} hidden · ${pinned} on the toolbar`,
|
|
37
|
+
toolbarInBrowser: "The toolbar is kept in this browser",
|
|
38
|
+
compareCell: (labels) => labels.join(" · "),
|
|
39
|
+
embedHint: "Paste the link in a wiki or Notion, the HTML in a page of your own.",
|
|
40
|
+
embedLink: "Link",
|
|
41
|
+
embedCode: "HTML",
|
|
42
|
+
embedFollow: "Follow the story's height",
|
|
43
|
+
embedFollowHint: "Adds a script, which some pages remove: the frame then keeps the height written in it.",
|
|
44
|
+
embedLocal: "This address opens only on this computer: copy it from the published catalogue.",
|
|
45
|
+
embedCopyFailed: "Selected: copy it with your keys",
|
|
46
|
+
embedNoStory: "This address names no story.",
|
|
47
|
+
embedUnknownStory: (id) => `No story "${id}": it may have been renamed.`,
|
|
48
|
+
pluginLoading: "Loading the tab…",
|
|
49
|
+
pluginError: "This tab could not be loaded",
|
|
50
|
+
playTitle: "Play function",
|
|
51
|
+
playTime: (ms) => `${ms} ms`,
|
|
52
|
+
playAgain: "Run again",
|
|
53
|
+
playNoSteps: "The play names no steps: wrap its parts in step(label, run) to see them here.",
|
|
54
|
+
codeFromArgs: "from the args",
|
|
55
|
+
codeRender: "the story's render",
|
|
56
|
+
copy: "Copy",
|
|
57
|
+
a11yCheck: "Check the story",
|
|
58
|
+
a11yRunning: "Checking…",
|
|
59
|
+
a11yNone: "No WCAG 2.2 A or AA rule is broken in the story as it is now.",
|
|
60
|
+
a11yError: "The check could not run",
|
|
61
|
+
a11yNotInCompare: "One story at a time: leave Compare to check it",
|
|
62
|
+
clockLabel: "Story clock",
|
|
63
|
+
clockPause: "Pause the clock",
|
|
64
|
+
clockResume: "Resume the clock",
|
|
65
|
+
clockRestart: "Restart",
|
|
66
|
+
clockSpeed: "Clock speed",
|
|
67
|
+
clockRate: (rate) => `×${rate}`,
|
|
68
|
+
apiReference: "API reference",
|
|
69
|
+
apiProp: "Prop",
|
|
70
|
+
apiEvent: "Event",
|
|
71
|
+
apiSignature: "Signature",
|
|
72
|
+
apiDefault: "Default",
|
|
73
|
+
apiMember: "Member",
|
|
74
|
+
memberCount: (count) => `${count} ${count === 1 ? "member" : "members"}`,
|
|
75
|
+
membersOf: (type) => `Members of ${type}`,
|
|
76
|
+
showCode: "Show code",
|
|
77
|
+
hideCode: "Hide code",
|
|
78
|
+
openStory: "Open the story",
|
|
79
|
+
usedIn: "Used in",
|
|
80
|
+
usedInThrough: "through another component",
|
|
81
|
+
usedInMore: (count) => `and ${count} more`,
|
|
82
|
+
usedInStories: (count) => (count === 1 ? "1 story" : `${count} stories`),
|
|
83
|
+
openStoryNamed: (name) => `Open the story ${name}`,
|
|
84
|
+
touch: "Touch",
|
|
85
|
+
touchNamed: (name) => `Touch ${name} with a finger`,
|
|
86
|
+
fillPage: "Fill the page",
|
|
87
|
+
fillPageNamed: (name) => `Fill the page with ${name}`,
|
|
88
|
+
backToPlace: "Back to its place",
|
|
89
|
+
backToPlaceNamed: (name) => `Put ${name} back in its place`,
|
|
90
|
+
examples: "Examples",
|
|
91
|
+
pageError: "The component's page could not be read",
|
|
92
|
+
droppedArgs: "The link sets values this story does not take; they were left out:",
|
|
93
|
+
droppedArgReasons: { undeclared: "not one of its props", type: "not of the prop's type" },
|
|
94
|
+
removeDroppedArgs: "Remove them from the address",
|
|
95
|
+
events: "Events",
|
|
96
|
+
calls: "Calls",
|
|
97
|
+
noCalls: "No call yet",
|
|
98
|
+
clearCalls: "Clear",
|
|
99
|
+
partsList: "Parts",
|
|
100
|
+
styleHooks: "Styling attributes",
|
|
101
|
+
testIds: "Test ids"
|
|
102
|
+
});
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A part of the shell whose module loads the first time it is drawn: a page other than a story's (the home, a
|
|
3
|
+
* component's page, a docs page), a tab of the story's panel. What a first screen does not show stays out of the first
|
|
4
|
+
* load.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* The load is watched here rather than through `React.lazy` and `Suspense`, for two reasons. Once a Suspense boundary
|
|
8
|
+
* has shown its fallback, React holds the content back for 300 ms so a page does not flash, which would put that delay
|
|
9
|
+
* on every first visit to a page or a tab; here the content replaces its fallback the moment its code arrives. And the
|
|
10
|
+
* shell has no error boundary: a module that is gone (a page left open across a new build) must cost that part, not
|
|
11
|
+
* the whole page. Once loaded, the part draws at once wherever it is drawn again.
|
|
12
|
+
*
|
|
13
|
+
* @module
|
|
14
|
+
*/
|
|
15
|
+
import { type ComponentType, type ReactNode } from "react";
|
|
16
|
+
/** A part's module: how to load its component, and the component once loaded. */
|
|
17
|
+
export type LazyModule<TProps> = {
|
|
18
|
+
/** Loads the part's component. */
|
|
19
|
+
readonly load: () => Promise<ComponentType<TProps>>;
|
|
20
|
+
/** The component, once a load gave it. */
|
|
21
|
+
loaded: ComponentType<TProps> | undefined;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* A part's module, not loaded yet.
|
|
25
|
+
*
|
|
26
|
+
* @param load - loads the part's component.
|
|
27
|
+
*/
|
|
28
|
+
export declare const lazyModule: <TProps>(load: () => Promise<ComponentType<TProps>>) => LazyModule<TProps>;
|
|
29
|
+
/** The props of a part drawn from its module. */
|
|
30
|
+
export type LazyViewProps<TProps> = {
|
|
31
|
+
/** The part's module. */
|
|
32
|
+
readonly module: LazyModule<TProps>;
|
|
33
|
+
/** The part's own props. */
|
|
34
|
+
readonly props: TProps;
|
|
35
|
+
/** What is drawn while it loads. */
|
|
36
|
+
readonly loading: ReactNode;
|
|
37
|
+
/** What is drawn when it cannot load, from the reason. */
|
|
38
|
+
readonly failed: (message: string) => ReactNode;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* A part drawn once its module is there.
|
|
42
|
+
*
|
|
43
|
+
* @remarks
|
|
44
|
+
* One place may be given another part's module (the dock draws each chosen tab in the same place): its state is that
|
|
45
|
+
* module's, never the last one's.
|
|
46
|
+
*
|
|
47
|
+
* @param props - the part's module, its own props, and what to draw until it is there.
|
|
48
|
+
*/
|
|
49
|
+
export declare const LazyView: <TProps extends object>({ module, props, loading, failed }: LazyViewProps<TProps>) => ReactNode;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* A part of the shell whose module loads the first time it is drawn: a page other than a story's (the home, a
|
|
4
|
+
* component's page, a docs page), a tab of the story's panel. What a first screen does not show stays out of the first
|
|
5
|
+
* load.
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* The load is watched here rather than through `React.lazy` and `Suspense`, for two reasons. Once a Suspense boundary
|
|
9
|
+
* has shown its fallback, React holds the content back for 300 ms so a page does not flash, which would put that delay
|
|
10
|
+
* on every first visit to a page or a tab; here the content replaces its fallback the moment its code arrives. And the
|
|
11
|
+
* shell has no error boundary: a module that is gone (a page left open across a new build) must cost that part, not
|
|
12
|
+
* the whole page. Once loaded, the part draws at once wherever it is drawn again.
|
|
13
|
+
*
|
|
14
|
+
* @module
|
|
15
|
+
*/
|
|
16
|
+
import { useEffect, useState } from "react";
|
|
17
|
+
/**
|
|
18
|
+
* A part's module, not loaded yet.
|
|
19
|
+
*
|
|
20
|
+
* @param load - loads the part's component.
|
|
21
|
+
*/
|
|
22
|
+
export const lazyModule = (load) => ({
|
|
23
|
+
load,
|
|
24
|
+
loaded: undefined
|
|
25
|
+
});
|
|
26
|
+
/**
|
|
27
|
+
* A part's state as its module first gives it: drawn at once when an earlier draw loaded it.
|
|
28
|
+
*
|
|
29
|
+
* @param module - the part's module.
|
|
30
|
+
*/
|
|
31
|
+
const initialState = (module) => module.loaded === undefined ? { status: "loading" } : { status: "ready", value: module.loaded };
|
|
32
|
+
/**
|
|
33
|
+
* A part drawn once its module is there.
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
* One place may be given another part's module (the dock draws each chosen tab in the same place): its state is that
|
|
37
|
+
* module's, never the last one's.
|
|
38
|
+
*
|
|
39
|
+
* @param props - the part's module, its own props, and what to draw until it is there.
|
|
40
|
+
*/
|
|
41
|
+
export const LazyView = ({ module, props, loading, failed }) => {
|
|
42
|
+
const [state, setState] = useState(() => ({ module, part: initialState(module) }));
|
|
43
|
+
if (state.module !== module)
|
|
44
|
+
setState({ module, part: initialState(module) });
|
|
45
|
+
const part = state.module === module ? state.part : initialState(module);
|
|
46
|
+
useEffect(() => {
|
|
47
|
+
if (part.status !== "loading")
|
|
48
|
+
return;
|
|
49
|
+
let isCurrent = true;
|
|
50
|
+
module
|
|
51
|
+
.load()
|
|
52
|
+
.then((value) => {
|
|
53
|
+
module.loaded = value;
|
|
54
|
+
if (isCurrent)
|
|
55
|
+
setState({ module, part: { status: "ready", value } });
|
|
56
|
+
})
|
|
57
|
+
.catch((error) => {
|
|
58
|
+
if (isCurrent) {
|
|
59
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
60
|
+
setState({ module, part: { status: "error", message } });
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
return () => {
|
|
64
|
+
isCurrent = false;
|
|
65
|
+
};
|
|
66
|
+
}, [module, part.status]);
|
|
67
|
+
if (part.status === "ready") {
|
|
68
|
+
const Part = part.value;
|
|
69
|
+
return _jsx(Part, { ...props });
|
|
70
|
+
}
|
|
71
|
+
return part.status === "error" ? failed(part.message) : loading;
|
|
72
|
+
};
|