@tpitre/story-ui 3.3.0 → 3.4.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/dist/cli/index.js +0 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/setup.js.map +1 -0
- package/dist/cloudflare-edge/src/mcp-session.js +462 -0
- package/dist/cloudflare-edge/src/types.js +4 -0
- package/dist/cloudflare-edge/src/worker.js +106 -0
- package/dist/cloudflare-pages/vite.config.js +14 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -0
- package/dist/mcp-server/index.js.map +1 -0
- package/dist/mcp-server/mcp-stdio-server.js.map +1 -0
- package/dist/mcp-server/routes/claude.js.map +1 -0
- package/dist/mcp-server/routes/components.js.map +1 -0
- package/dist/mcp-server/routes/generateStory.js.map +1 -0
- package/dist/mcp-server/routes/hybridStories.d.ts +18 -0
- package/dist/mcp-server/routes/hybridStories.d.ts.map +1 -0
- package/dist/mcp-server/routes/hybridStories.js +216 -0
- package/dist/mcp-server/routes/hybridStories.js.map +1 -0
- package/dist/mcp-server/routes/memoryStories.d.ts +26 -0
- package/dist/mcp-server/routes/memoryStories.d.ts.map +1 -0
- package/dist/mcp-server/routes/memoryStories.js +158 -0
- package/dist/mcp-server/routes/memoryStories.js.map +1 -0
- package/dist/mcp-server/routes/storySync.d.ts +26 -0
- package/dist/mcp-server/routes/storySync.d.ts.map +1 -0
- package/dist/mcp-server/routes/storySync.js +147 -0
- package/dist/mcp-server/routes/storySync.js.map +1 -0
- package/dist/mcp-server/routes/updateStory.js +246 -0
- package/dist/mcp-server/sessionManager.d.ts +50 -0
- package/dist/mcp-server/sessionManager.d.ts.map +1 -0
- package/dist/mcp-server/sessionManager.js +125 -0
- package/dist/mcp-server/sessionManager.js.map +1 -0
- package/dist/playground/components/AIAssistant/AIAssistant.d.ts +6 -0
- package/dist/playground/components/AIAssistant/AIAssistant.d.ts.map +1 -0
- package/dist/playground/components/AIAssistant/AIAssistant.js +109 -0
- package/dist/playground/components/AIAssistant/AIAssistant.js.map +1 -0
- package/dist/playground/components/AIAssistant/AIAssistant.module.css +166 -0
- package/dist/playground/components/Canvas/Canvas.d.ts +9 -0
- package/dist/playground/components/Canvas/Canvas.d.ts.map +1 -0
- package/dist/playground/components/Canvas/Canvas.js +58 -0
- package/dist/playground/components/Canvas/Canvas.js.map +1 -0
- package/dist/playground/components/Canvas/Canvas.module.css +189 -0
- package/dist/playground/components/Canvas/CanvasWithDnd.d.ts +9 -0
- package/dist/playground/components/Canvas/CanvasWithDnd.d.ts.map +1 -0
- package/dist/playground/components/Canvas/CanvasWithDnd.js +158 -0
- package/dist/playground/components/Canvas/CanvasWithDnd.js.map +1 -0
- package/dist/playground/components/Canvas/ComponentRenderer.d.ts +15 -0
- package/dist/playground/components/Canvas/ComponentRenderer.d.ts.map +1 -0
- package/dist/playground/components/Canvas/ComponentRenderer.js +177 -0
- package/dist/playground/components/Canvas/ComponentRenderer.js.map +1 -0
- package/dist/playground/components/Canvas/DraggableComponent.d.ts +15 -0
- package/dist/playground/components/Canvas/DraggableComponent.d.ts.map +1 -0
- package/dist/playground/components/Canvas/DraggableComponent.js +49 -0
- package/dist/playground/components/Canvas/DraggableComponent.js.map +1 -0
- package/dist/playground/components/Canvas/index.d.ts +9 -0
- package/dist/playground/components/Canvas/index.d.ts.map +1 -0
- package/dist/playground/components/Canvas/index.js +5 -0
- package/dist/playground/components/Canvas/index.js.map +1 -0
- package/dist/playground/components/CodeView/CodeView.d.ts +12 -0
- package/dist/playground/components/CodeView/CodeView.d.ts.map +1 -0
- package/dist/playground/components/CodeView/CodeView.js +77 -0
- package/dist/playground/components/CodeView/CodeView.js.map +1 -0
- package/dist/playground/components/CodeView/CodeView.module.css +178 -0
- package/dist/playground/components/ComponentPalette/ComponentPalette.d.ts +17 -0
- package/dist/playground/components/ComponentPalette/ComponentPalette.d.ts.map +1 -0
- package/dist/playground/components/ComponentPalette/ComponentPalette.js +138 -0
- package/dist/playground/components/ComponentPalette/ComponentPalette.js.map +1 -0
- package/dist/playground/components/ComponentPalette/ComponentPalette.module.css +217 -0
- package/dist/playground/components/ComponentPalette/index.d.ts +3 -0
- package/dist/playground/components/ComponentPalette/index.d.ts.map +1 -0
- package/dist/playground/components/ComponentPalette/index.js +2 -0
- package/dist/playground/components/ComponentPalette/index.js.map +1 -0
- package/dist/playground/components/DropZone/DropZone.d.ts +17 -0
- package/dist/playground/components/DropZone/DropZone.d.ts.map +1 -0
- package/dist/playground/components/DropZone/DropZone.js +73 -0
- package/dist/playground/components/DropZone/DropZone.js.map +1 -0
- package/dist/playground/components/DropZone/DropZone.module.css +86 -0
- package/dist/playground/components/ExportDialog/ExportDialog.d.ts +10 -0
- package/dist/playground/components/ExportDialog/ExportDialog.d.ts.map +1 -0
- package/dist/playground/components/ExportDialog/ExportDialog.js +57 -0
- package/dist/playground/components/ExportDialog/ExportDialog.js.map +1 -0
- package/dist/playground/components/ExportDialog/ExportDialog.module.css +328 -0
- package/dist/playground/components/LayoutHelpers/LayoutHelpers.d.ts +134 -0
- package/dist/playground/components/LayoutHelpers/LayoutHelpers.d.ts.map +1 -0
- package/dist/playground/components/LayoutHelpers/LayoutHelpers.js +254 -0
- package/dist/playground/components/LayoutHelpers/LayoutHelpers.js.map +1 -0
- package/dist/playground/components/LayoutHelpers/index.d.ts +3 -0
- package/dist/playground/components/LayoutHelpers/index.d.ts.map +1 -0
- package/dist/playground/components/LayoutHelpers/index.js +2 -0
- package/dist/playground/components/LayoutHelpers/index.js.map +1 -0
- package/dist/playground/components/Playground/Playground.d.ts +10 -0
- package/dist/playground/components/Playground/Playground.d.ts.map +1 -0
- package/dist/playground/components/Playground/Playground.js +128 -0
- package/dist/playground/components/Playground/Playground.js.map +1 -0
- package/dist/playground/components/Playground/Playground.module.css +308 -0
- package/dist/playground/components/PropertiesPanel/PropertiesPanel.d.ts +10 -0
- package/dist/playground/components/PropertiesPanel/PropertiesPanel.d.ts.map +1 -0
- package/dist/playground/components/PropertiesPanel/PropertiesPanel.js +150 -0
- package/dist/playground/components/PropertiesPanel/PropertiesPanel.js.map +1 -0
- package/dist/playground/components/PropertiesPanel/PropertiesPanel.module.css +155 -0
- package/dist/playground/components/PropertiesPanel/index.d.ts +3 -0
- package/dist/playground/components/PropertiesPanel/index.d.ts.map +1 -0
- package/dist/playground/components/PropertiesPanel/index.js +2 -0
- package/dist/playground/components/PropertiesPanel/index.js.map +1 -0
- package/dist/playground/components/PropertyEditors/BooleanEditor.d.ts +12 -0
- package/dist/playground/components/PropertyEditors/BooleanEditor.d.ts.map +1 -0
- package/dist/playground/components/PropertyEditors/BooleanEditor.js +14 -0
- package/dist/playground/components/PropertyEditors/BooleanEditor.js.map +1 -0
- package/dist/playground/components/PropertyEditors/ColorEditor.d.ts +12 -0
- package/dist/playground/components/PropertyEditors/ColorEditor.d.ts.map +1 -0
- package/dist/playground/components/PropertyEditors/ColorEditor.js +62 -0
- package/dist/playground/components/PropertyEditors/ColorEditor.js.map +1 -0
- package/dist/playground/components/PropertyEditors/IconEditor.d.ts +12 -0
- package/dist/playground/components/PropertyEditors/IconEditor.d.ts.map +1 -0
- package/dist/playground/components/PropertyEditors/IconEditor.js +123 -0
- package/dist/playground/components/PropertyEditors/IconEditor.js.map +1 -0
- package/dist/playground/components/PropertyEditors/NumberEditor.d.ts +15 -0
- package/dist/playground/components/PropertyEditors/NumberEditor.d.ts.map +1 -0
- package/dist/playground/components/PropertyEditors/NumberEditor.js +46 -0
- package/dist/playground/components/PropertyEditors/NumberEditor.js.map +1 -0
- package/dist/playground/components/PropertyEditors/PropertyEditors.module.css +432 -0
- package/dist/playground/components/PropertyEditors/SelectEditor.d.ts +19 -0
- package/dist/playground/components/PropertyEditors/SelectEditor.d.ts.map +1 -0
- package/dist/playground/components/PropertyEditors/SelectEditor.js +17 -0
- package/dist/playground/components/PropertyEditors/SelectEditor.js.map +1 -0
- package/dist/playground/components/PropertyEditors/SpacingEditor.d.ts +19 -0
- package/dist/playground/components/PropertyEditors/SpacingEditor.d.ts.map +1 -0
- package/dist/playground/components/PropertyEditors/SpacingEditor.js +162 -0
- package/dist/playground/components/PropertyEditors/SpacingEditor.js.map +1 -0
- package/dist/playground/components/PropertyEditors/SpacingEditor.module.css +214 -0
- package/dist/playground/components/PropertyEditors/TextEditor.d.ts +14 -0
- package/dist/playground/components/PropertyEditors/TextEditor.d.ts.map +1 -0
- package/dist/playground/components/PropertyEditors/TextEditor.js +38 -0
- package/dist/playground/components/PropertyEditors/TextEditor.js.map +1 -0
- package/dist/playground/components/PropertyEditors/TokenEditor.d.ts +23 -0
- package/dist/playground/components/PropertyEditors/TokenEditor.d.ts.map +1 -0
- package/dist/playground/components/PropertyEditors/TokenEditor.js +50 -0
- package/dist/playground/components/PropertyEditors/TokenEditor.js.map +1 -0
- package/dist/playground/components/PropertyEditors/index.d.ts +20 -0
- package/dist/playground/components/PropertyEditors/index.d.ts.map +1 -0
- package/dist/playground/components/PropertyEditors/index.js +12 -0
- package/dist/playground/components/PropertyEditors/index.js.map +1 -0
- package/dist/playground/components/TreeView/TreeView.d.ts +10 -0
- package/dist/playground/components/TreeView/TreeView.d.ts.map +1 -0
- package/dist/playground/components/TreeView/TreeView.js +146 -0
- package/dist/playground/components/TreeView/TreeView.js.map +1 -0
- package/dist/playground/components/TreeView/TreeView.module.css +214 -0
- package/dist/playground/components/TreeView/index.d.ts +3 -0
- package/dist/playground/components/TreeView/index.d.ts.map +1 -0
- package/dist/playground/components/TreeView/index.js +2 -0
- package/dist/playground/components/TreeView/index.js.map +1 -0
- package/dist/playground/config/propertyDefinitions.d.ts +73 -0
- package/dist/playground/config/propertyDefinitions.d.ts.map +1 -0
- package/dist/playground/config/propertyDefinitions.js +809 -0
- package/dist/playground/config/propertyDefinitions.js.map +1 -0
- package/dist/playground/hooks/useKeyboardShortcuts.d.ts +38 -0
- package/dist/playground/hooks/useKeyboardShortcuts.d.ts.map +1 -0
- package/dist/playground/hooks/useKeyboardShortcuts.js +191 -0
- package/dist/playground/hooks/useKeyboardShortcuts.js.map +1 -0
- package/dist/playground/index.d.ts +21 -0
- package/dist/playground/index.d.ts.map +1 -0
- package/dist/playground/index.js +23 -0
- package/dist/playground/index.js.map +1 -0
- package/dist/playground/services/CodeGenerator.d.ts +73 -0
- package/dist/playground/services/CodeGenerator.d.ts.map +1 -0
- package/dist/playground/services/CodeGenerator.js +359 -0
- package/dist/playground/services/CodeGenerator.js.map +1 -0
- package/dist/playground/services/DragDropManager.d.ts +95 -0
- package/dist/playground/services/DragDropManager.d.ts.map +1 -0
- package/dist/playground/services/DragDropManager.js +408 -0
- package/dist/playground/services/DragDropManager.js.map +1 -0
- package/dist/playground/services/StoryParser.d.ts +73 -0
- package/dist/playground/services/StoryParser.d.ts.map +1 -0
- package/dist/playground/services/StoryParser.js +419 -0
- package/dist/playground/services/StoryParser.js.map +1 -0
- package/dist/playground/store/playgroundStore.d.ts +86 -0
- package/dist/playground/store/playgroundStore.d.ts.map +1 -0
- package/dist/playground/store/playgroundStore.js +337 -0
- package/dist/playground/store/playgroundStore.js.map +1 -0
- package/dist/playground/stories/PlaygroundDragDrop.stories.d.ts +13 -0
- package/dist/playground/stories/PlaygroundDragDrop.stories.d.ts.map +1 -0
- package/dist/playground/stories/PlaygroundDragDrop.stories.js +227 -0
- package/dist/playground/stories/PlaygroundDragDrop.stories.js.map +1 -0
- package/dist/playground/stories/PlaygroundPhase4.stories.d.ts +13 -0
- package/dist/playground/stories/PlaygroundPhase4.stories.d.ts.map +1 -0
- package/dist/playground/stories/PlaygroundPhase4.stories.js +334 -0
- package/dist/playground/stories/PlaygroundPhase4.stories.js.map +1 -0
- package/dist/playground/stories/PlaygroundPhase5.stories.d.ts +14 -0
- package/dist/playground/stories/PlaygroundPhase5.stories.d.ts.map +1 -0
- package/dist/playground/stories/PlaygroundPhase5.stories.js +512 -0
- package/dist/playground/stories/PlaygroundPhase5.stories.js.map +1 -0
- package/dist/playground/stories/PlaygroundProperties.stories.d.ts +13 -0
- package/dist/playground/stories/PlaygroundProperties.stories.d.ts.map +1 -0
- package/dist/playground/stories/PlaygroundProperties.stories.js +342 -0
- package/dist/playground/stories/PlaygroundProperties.stories.js.map +1 -0
- package/dist/playground/types/index.d.ts +251 -0
- package/dist/playground/types/index.d.ts.map +1 -0
- package/dist/playground/types/index.js +5 -0
- package/dist/playground/types/index.js.map +1 -0
- package/dist/scripts/verify-framework-adapters.js +105 -0
- package/dist/story-generator/componentBlacklist.js.map +1 -0
- package/dist/story-generator/componentDiscovery.js.map +1 -0
- package/dist/story-generator/configLoader.js.map +1 -0
- package/dist/story-generator/considerationsLoader.js.map +1 -0
- package/dist/story-generator/documentation-sources.js.map +1 -0
- package/dist/story-generator/documentationLoader.js.map +1 -0
- package/dist/story-generator/dynamicPackageDiscovery.js.map +1 -0
- package/dist/story-generator/enhancedComponentDiscovery.js.map +1 -0
- package/dist/story-generator/generateStory.js.map +1 -0
- package/dist/story-generator/gitignoreManager.js.map +1 -0
- package/dist/story-generator/inMemoryStoryService.d.ts +89 -0
- package/dist/story-generator/inMemoryStoryService.d.ts.map +1 -0
- package/dist/story-generator/inMemoryStoryService.js +128 -0
- package/dist/story-generator/inMemoryStoryService.js.map +1 -0
- package/dist/story-generator/logger.js.map +1 -0
- package/dist/story-generator/postProcessStory.js.map +1 -0
- package/dist/story-generator/postgresStoryService.d.ts +56 -0
- package/dist/story-generator/postgresStoryService.d.ts.map +1 -0
- package/dist/story-generator/postgresStoryService.js +240 -0
- package/dist/story-generator/productionGitignoreManager.d.ts +91 -0
- package/dist/story-generator/productionGitignoreManager.d.ts.map +1 -0
- package/dist/story-generator/productionGitignoreManager.js +340 -0
- package/dist/story-generator/productionGitignoreManager.js.map +1 -0
- package/dist/story-generator/promptGenerator.js.map +1 -0
- package/dist/story-generator/providerPresets.d.ts +54 -0
- package/dist/story-generator/providerPresets.d.ts.map +1 -0
- package/dist/story-generator/providerPresets.js +214 -0
- package/dist/story-generator/storyHistory.js.map +1 -0
- package/dist/story-generator/storyServiceFactory.d.ts +22 -0
- package/dist/story-generator/storyServiceFactory.d.ts.map +1 -0
- package/dist/story-generator/storyServiceFactory.js +97 -0
- package/dist/story-generator/storyServiceInterface.d.ts +85 -0
- package/dist/story-generator/storyServiceInterface.d.ts.map +1 -0
- package/dist/story-generator/storyServiceInterface.js +5 -0
- package/dist/story-generator/storySync.d.ts +68 -0
- package/dist/story-generator/storySync.d.ts.map +1 -0
- package/dist/story-generator/storySync.js +201 -0
- package/dist/story-generator/storySync.js.map +1 -0
- package/dist/story-generator/storyTracker.js.map +1 -0
- package/dist/story-generator/storyValidator.js.map +1 -0
- package/dist/story-generator/test_validation.d.ts +2 -0
- package/dist/story-generator/test_validation.d.ts.map +1 -0
- package/dist/story-generator/test_validation.js +51 -0
- package/dist/story-generator/universalDesignSystemAdapter.js.map +1 -0
- package/dist/story-generator/urlRedirectService.js.map +1 -0
- package/dist/story-generator/validateStory.js.map +1 -0
- package/dist/story-ui.config.js.map +1 -0
- package/dist/story-ui.config.loader.d.ts +36 -0
- package/dist/story-ui.config.loader.d.ts.map +1 -0
- package/dist/story-ui.config.loader.js +205 -0
- package/dist/story-ui.config.loader.js.map +1 -0
- package/dist/temp/package/templates/StoryUI/StoryUIPanel.js +807 -0
- package/dist/temp/package/templates/StoryUI/StoryUIPanel.stories.js +37 -0
- package/dist/temp/package/templates/StoryUI/index.js +2 -0
- package/dist/templates/StoryUI/StoryUIPanel.js.map +1 -0
- package/dist/templates/StoryUI/StoryUIPanel.stories.js.map +1 -0
- package/dist/templates/StoryUI/index.js.map +1 -0
- package/dist/templates/StoryUI/manager.d.ts +14 -0
- package/dist/templates/StoryUI/manager.d.ts.map +1 -0
- package/dist/templates/production-app/src/App.d.ts +10 -0
- package/dist/templates/production-app/src/App.d.ts.map +1 -0
- package/dist/templates/production-app/src/App.js +653 -0
- package/dist/templates/production-app/src/LivePreviewRenderer.d.ts +24 -0
- package/dist/templates/production-app/src/LivePreviewRenderer.d.ts.map +1 -0
- package/dist/templates/production-app/src/LivePreviewRenderer.js +199 -0
- package/dist/templates/production-app/src/componentRegistry.d.ts +20 -0
- package/dist/templates/production-app/src/componentRegistry.d.ts.map +1 -0
- package/dist/templates/production-app/src/componentRegistry.js +316 -0
- package/dist/templates/production-app/src/main.d.ts +9 -0
- package/dist/templates/production-app/src/main.d.ts.map +1 -0
- package/dist/templates/production-app/src/main.js +18 -0
- package/dist/templates/production-app/vite.config.d.ts +3 -0
- package/dist/templates/production-app/vite.config.d.ts.map +1 -0
- package/dist/templates/production-app/vite.config.js +71 -0
- package/dist/test-storybooks/angular-material-storybook/src/main.js +66 -0
- package/dist/test-storybooks/chakra-storybook/vite.config.js +6 -0
- package/dist/test-storybooks/mantine-storybook/vite.config.js +93 -0
- package/dist/test-storybooks/web-components-shoelace/vite.config.js +9 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"propertyDefinitions.js","sourceRoot":"","sources":["../../../playground/config/propertyDefinitions.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,8CAA8C;AAC9C,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;AAC3E,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;AACxD,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAC7E,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;AACpE,MAAM,CAAC,MAAM,WAA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C3C,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,oBAAoB,CAAC,QAAgB;IACnD,OAAO,iBAAiB,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;AAC3C,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,QAAgB,EAAE,UAAiE;IACjH,QAAQ,UAAU,EAAE,CAAC;QACnB,KAAK,SAAS;YACZ,OAAO,kBAAkB,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAC1C,KAAK,QAAQ;YACX,OAAO,CAAC,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC;QACvC,KAAK,QAAQ;YACX,OAAO,CAAC,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC;QACvC,KAAK,OAAO;YACV,OAAO,gBAAgB,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QACxC,KAAK,SAAS;YACZ,OAAO,kBAAkB,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAC1C;YACE,OAAO,KAAK,CAAC;IACjB,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* useKeyboardShortcuts - Custom hook for keyboard shortcuts in the playground
|
|
3
|
+
*/
|
|
4
|
+
export declare const useKeyboardShortcuts: () => void;
|
|
5
|
+
/**
|
|
6
|
+
* Keyboard Shortcuts Reference:
|
|
7
|
+
*
|
|
8
|
+
* General:
|
|
9
|
+
* - Cmd/Ctrl + Z: Undo
|
|
10
|
+
* - Cmd/Ctrl + Shift + Z or Cmd/Ctrl + Y: Redo
|
|
11
|
+
* - Cmd/Ctrl + S: Save snapshot
|
|
12
|
+
* - Escape: Deselect all
|
|
13
|
+
*
|
|
14
|
+
* Selection:
|
|
15
|
+
* - Cmd/Ctrl + A: Select all
|
|
16
|
+
* - Delete/Backspace: Delete selected
|
|
17
|
+
* - Cmd/Ctrl + D: Duplicate selected
|
|
18
|
+
*
|
|
19
|
+
* Mode Switching:
|
|
20
|
+
* - 1: Edit mode
|
|
21
|
+
* - 2: Preview mode
|
|
22
|
+
* - 3: Code mode
|
|
23
|
+
*
|
|
24
|
+
* View:
|
|
25
|
+
* - Cmd/Ctrl + P: Toggle properties panel
|
|
26
|
+
* - Cmd/Ctrl + =: Zoom in
|
|
27
|
+
* - Cmd/Ctrl + -: Zoom out
|
|
28
|
+
* - Cmd/Ctrl + 0: Reset zoom
|
|
29
|
+
*
|
|
30
|
+
* Component Manipulation:
|
|
31
|
+
* - Arrow keys: Nudge selected components (1px)
|
|
32
|
+
* - Shift + Arrow keys: Nudge selected components (10px)
|
|
33
|
+
*
|
|
34
|
+
* Clipboard (TODO):
|
|
35
|
+
* - Cmd/Ctrl + C: Copy selected
|
|
36
|
+
* - Cmd/Ctrl + V: Paste
|
|
37
|
+
*/
|
|
38
|
+
//# sourceMappingURL=useKeyboardShortcuts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useKeyboardShortcuts.d.ts","sourceRoot":"","sources":["../../../playground/hooks/useKeyboardShortcuts.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,eAAO,MAAM,oBAAoB,YA6LhC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG"}
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* useKeyboardShortcuts - Custom hook for keyboard shortcuts in the playground
|
|
3
|
+
*/
|
|
4
|
+
import { useEffect } from 'react';
|
|
5
|
+
import { usePlaygroundStore } from '../store/playgroundStore';
|
|
6
|
+
export const useKeyboardShortcuts = () => {
|
|
7
|
+
const { undo, redo, deleteComponent, duplicateComponent, selectAll, deselectAll, selectedIds, setMode, mode, togglePropertiesPanel, saveSnapshot, canvasZoom, setCanvasZoom } = usePlaygroundStore();
|
|
8
|
+
useEffect(() => {
|
|
9
|
+
const handleKeyDown = (e) => {
|
|
10
|
+
// Check if user is typing in an input field
|
|
11
|
+
const target = e.target;
|
|
12
|
+
const isTyping = target.tagName === 'INPUT' ||
|
|
13
|
+
target.tagName === 'TEXTAREA' ||
|
|
14
|
+
target.contentEditable === 'true';
|
|
15
|
+
if (isTyping)
|
|
16
|
+
return;
|
|
17
|
+
const isMac = navigator.platform.toUpperCase().indexOf('MAC') >= 0;
|
|
18
|
+
const cmdOrCtrl = isMac ? e.metaKey : e.ctrlKey;
|
|
19
|
+
// Undo/Redo
|
|
20
|
+
if (cmdOrCtrl && e.key === 'z' && !e.shiftKey) {
|
|
21
|
+
e.preventDefault();
|
|
22
|
+
undo();
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
if ((cmdOrCtrl && e.key === 'z' && e.shiftKey) || (cmdOrCtrl && e.key === 'y')) {
|
|
26
|
+
e.preventDefault();
|
|
27
|
+
redo();
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
// Delete selected components
|
|
31
|
+
if ((e.key === 'Delete' || e.key === 'Backspace') && selectedIds.size > 0) {
|
|
32
|
+
e.preventDefault();
|
|
33
|
+
selectedIds.forEach(id => deleteComponent(id));
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
// Duplicate selected components
|
|
37
|
+
if (cmdOrCtrl && e.key === 'd' && selectedIds.size > 0) {
|
|
38
|
+
e.preventDefault();
|
|
39
|
+
selectedIds.forEach(id => duplicateComponent(id));
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
// Select All
|
|
43
|
+
if (cmdOrCtrl && e.key === 'a') {
|
|
44
|
+
e.preventDefault();
|
|
45
|
+
selectAll();
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
// Deselect All
|
|
49
|
+
if (e.key === 'Escape') {
|
|
50
|
+
e.preventDefault();
|
|
51
|
+
deselectAll();
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
// Mode switching
|
|
55
|
+
if (e.key === '1' && !cmdOrCtrl) {
|
|
56
|
+
e.preventDefault();
|
|
57
|
+
setMode('edit');
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
if (e.key === '2' && !cmdOrCtrl) {
|
|
61
|
+
e.preventDefault();
|
|
62
|
+
setMode('preview');
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
if (e.key === '3' && !cmdOrCtrl) {
|
|
66
|
+
e.preventDefault();
|
|
67
|
+
setMode('code');
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
// Properties panel toggle
|
|
71
|
+
if (cmdOrCtrl && e.key === 'p') {
|
|
72
|
+
e.preventDefault();
|
|
73
|
+
togglePropertiesPanel();
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
// Save snapshot
|
|
77
|
+
if (cmdOrCtrl && e.key === 's') {
|
|
78
|
+
e.preventDefault();
|
|
79
|
+
saveSnapshot('Manual save');
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
// Zoom controls
|
|
83
|
+
if (cmdOrCtrl && e.key === '=' && !e.shiftKey) {
|
|
84
|
+
e.preventDefault();
|
|
85
|
+
setCanvasZoom(Math.min(canvasZoom + 0.1, 4));
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
if (cmdOrCtrl && e.key === '-') {
|
|
89
|
+
e.preventDefault();
|
|
90
|
+
setCanvasZoom(Math.max(canvasZoom - 0.1, 0.25));
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
if (cmdOrCtrl && e.key === '0') {
|
|
94
|
+
e.preventDefault();
|
|
95
|
+
setCanvasZoom(1);
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
// Copy/Paste placeholders (would need clipboard API implementation)
|
|
99
|
+
if (cmdOrCtrl && e.key === 'c' && selectedIds.size > 0) {
|
|
100
|
+
e.preventDefault();
|
|
101
|
+
console.log('Copy components:', Array.from(selectedIds));
|
|
102
|
+
// TODO: Implement copy to clipboard
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
if (cmdOrCtrl && e.key === 'v') {
|
|
106
|
+
e.preventDefault();
|
|
107
|
+
console.log('Paste components');
|
|
108
|
+
// TODO: Implement paste from clipboard
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
// Arrow keys for nudging (when components are selected)
|
|
112
|
+
if (selectedIds.size > 0) {
|
|
113
|
+
const nudgeAmount = e.shiftKey ? 10 : 1;
|
|
114
|
+
if (e.key === 'ArrowUp') {
|
|
115
|
+
e.preventDefault();
|
|
116
|
+
// TODO: Implement nudge up
|
|
117
|
+
console.log(`Nudge up by ${nudgeAmount}px`);
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
if (e.key === 'ArrowDown') {
|
|
121
|
+
e.preventDefault();
|
|
122
|
+
// TODO: Implement nudge down
|
|
123
|
+
console.log(`Nudge down by ${nudgeAmount}px`);
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
if (e.key === 'ArrowLeft') {
|
|
127
|
+
e.preventDefault();
|
|
128
|
+
// TODO: Implement nudge left
|
|
129
|
+
console.log(`Nudge left by ${nudgeAmount}px`);
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
if (e.key === 'ArrowRight') {
|
|
133
|
+
e.preventDefault();
|
|
134
|
+
// TODO: Implement nudge right
|
|
135
|
+
console.log(`Nudge right by ${nudgeAmount}px`);
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
window.addEventListener('keydown', handleKeyDown);
|
|
141
|
+
return () => window.removeEventListener('keydown', handleKeyDown);
|
|
142
|
+
}, [
|
|
143
|
+
undo,
|
|
144
|
+
redo,
|
|
145
|
+
deleteComponent,
|
|
146
|
+
duplicateComponent,
|
|
147
|
+
selectAll,
|
|
148
|
+
deselectAll,
|
|
149
|
+
selectedIds,
|
|
150
|
+
setMode,
|
|
151
|
+
mode,
|
|
152
|
+
togglePropertiesPanel,
|
|
153
|
+
saveSnapshot,
|
|
154
|
+
canvasZoom,
|
|
155
|
+
setCanvasZoom
|
|
156
|
+
]);
|
|
157
|
+
};
|
|
158
|
+
/**
|
|
159
|
+
* Keyboard Shortcuts Reference:
|
|
160
|
+
*
|
|
161
|
+
* General:
|
|
162
|
+
* - Cmd/Ctrl + Z: Undo
|
|
163
|
+
* - Cmd/Ctrl + Shift + Z or Cmd/Ctrl + Y: Redo
|
|
164
|
+
* - Cmd/Ctrl + S: Save snapshot
|
|
165
|
+
* - Escape: Deselect all
|
|
166
|
+
*
|
|
167
|
+
* Selection:
|
|
168
|
+
* - Cmd/Ctrl + A: Select all
|
|
169
|
+
* - Delete/Backspace: Delete selected
|
|
170
|
+
* - Cmd/Ctrl + D: Duplicate selected
|
|
171
|
+
*
|
|
172
|
+
* Mode Switching:
|
|
173
|
+
* - 1: Edit mode
|
|
174
|
+
* - 2: Preview mode
|
|
175
|
+
* - 3: Code mode
|
|
176
|
+
*
|
|
177
|
+
* View:
|
|
178
|
+
* - Cmd/Ctrl + P: Toggle properties panel
|
|
179
|
+
* - Cmd/Ctrl + =: Zoom in
|
|
180
|
+
* - Cmd/Ctrl + -: Zoom out
|
|
181
|
+
* - Cmd/Ctrl + 0: Reset zoom
|
|
182
|
+
*
|
|
183
|
+
* Component Manipulation:
|
|
184
|
+
* - Arrow keys: Nudge selected components (1px)
|
|
185
|
+
* - Shift + Arrow keys: Nudge selected components (10px)
|
|
186
|
+
*
|
|
187
|
+
* Clipboard (TODO):
|
|
188
|
+
* - Cmd/Ctrl + C: Copy selected
|
|
189
|
+
* - Cmd/Ctrl + V: Paste
|
|
190
|
+
*/
|
|
191
|
+
//# sourceMappingURL=useKeyboardShortcuts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useKeyboardShortcuts.js","sourceRoot":"","sources":["../../../playground/hooks/useKeyboardShortcuts.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAE9D,MAAM,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AC;oBAC3B,CAAC,CAAC,cAAc,EAAE,CAAC;oBACnB,8BAA8B;oBAC9B,OAAO,CAAC,GAAG,CAAC,kBAAkB,WAAW,IAAI,CAAC,CAAC;oBAC/C,OAAO;gBACT,CAAC;YACH,CAAC;QACH,CAAC,CAAC;QAEF,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;QAClD,OAAO,GAAG,EAAE,CAAC,MAAM,CAAC,mBAAmB,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;IACpE,CAAC,EAAE;QACD,IAAI;QACJ,IAAI;QACJ,eAAe;QACf,kBAAkB;QAClB,SAAS;QACT,WAAW;QACX,WAAW;QACX,OAAO;QACP,IAAI;QACJ,qBAAqB;QACrB,YAAY;QACZ,UAAU;QACV,aAAa;KACd,CAAC,CAAC;AACL,CAAC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* StoryUI Playground - Visual Builder for AI-generated layouts
|
|
3
|
+
*/
|
|
4
|
+
export { Playground } from './components/Playground/Playground.js';
|
|
5
|
+
export type { PlaygroundProps } from './components/Playground/Playground.js';
|
|
6
|
+
export { Canvas } from './components/Canvas/Canvas.js';
|
|
7
|
+
export { CanvasWithDnd } from './components/Canvas/CanvasWithDnd.js';
|
|
8
|
+
export { ComponentRenderer } from './components/Canvas/ComponentRenderer.js';
|
|
9
|
+
export { DraggableComponent } from './components/Canvas/DraggableComponent.js';
|
|
10
|
+
export { DropZone as DropZoneComponent } from './components/DropZone/DropZone.js';
|
|
11
|
+
export type { DropZoneProps } from './components/DropZone/DropZone.js';
|
|
12
|
+
export { AIAssistant } from './components/AIAssistant/AIAssistant.js';
|
|
13
|
+
export { usePlaygroundStore } from './store/playgroundStore.js';
|
|
14
|
+
export type { PlaygroundState, PlaygroundActions } from './store/playgroundStore.js';
|
|
15
|
+
export { StoryParser } from './services/StoryParser.js';
|
|
16
|
+
export type { ParseResult, ImportStatement } from './services/StoryParser.js';
|
|
17
|
+
export { BooleanEditor, ColorEditor, IconEditor, NumberEditor, SelectEditor, SpacingEditor, TextEditor, TokenEditor, SPACING_TOKENS, SIZE_TOKENS } from './components/PropertyEditors/index.js';
|
|
18
|
+
export type { BooleanEditorProps, ColorEditorProps, IconEditorProps, NumberEditorProps, SelectEditorProps, SelectOption, SpacingEditorProps, SpacingValue, TextEditorProps, TokenEditorProps, TokenOption } from './components/PropertyEditors/index.js';
|
|
19
|
+
export type { PlaygroundComponent, ComponentDefinition, ComponentCategory, PropDefinition, PropType, PropOption, DraggedItem, DropZone, DropZoneDefinition, CanvasSnapshot, PlaygroundMode, SidebarTab, DropResult, AlignmentGuide, Template } from './types/index.js';
|
|
20
|
+
export declare const PLAYGROUND_VERSION = "1.0.0";
|
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../playground/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AACnE,YAAY,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAG7E,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAG/E,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAClF,YAAY,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAGvE,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAGtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,YAAY,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAGrF,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAG9E,OAAO,EACL,aAAa,EACb,WAAW,EACX,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,UAAU,EACV,WAAW,EACX,cAAc,EACd,WAAW,EACZ,MAAM,uCAAuC,CAAC;AAC/C,YAAY,EACV,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,YAAY,EACZ,kBAAkB,EAClB,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,WAAW,EACZ,MAAM,uCAAuC,CAAC;AAG/C,YAAY,EACV,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,cAAc,EACd,QAAQ,EACR,UAAU,EACV,WAAW,EACX,QAAQ,EACR,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,UAAU,EACV,UAAU,EACV,cAAc,EACd,QAAQ,EACT,MAAM,kBAAkB,CAAC;AAG1B,eAAO,MAAM,kBAAkB,UAAU,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* StoryUI Playground - Visual Builder for AI-generated layouts
|
|
3
|
+
*/
|
|
4
|
+
// Main components
|
|
5
|
+
export { Playground } from './components/Playground/Playground.js';
|
|
6
|
+
// Canvas components
|
|
7
|
+
export { Canvas } from './components/Canvas/Canvas.js';
|
|
8
|
+
export { CanvasWithDnd } from './components/Canvas/CanvasWithDnd.js';
|
|
9
|
+
export { ComponentRenderer } from './components/Canvas/ComponentRenderer.js';
|
|
10
|
+
export { DraggableComponent } from './components/Canvas/DraggableComponent.js';
|
|
11
|
+
// Drag and Drop components
|
|
12
|
+
export { DropZone as DropZoneComponent } from './components/DropZone/DropZone.js';
|
|
13
|
+
// AI Assistant
|
|
14
|
+
export { AIAssistant } from './components/AIAssistant/AIAssistant.js';
|
|
15
|
+
// Store
|
|
16
|
+
export { usePlaygroundStore } from './store/playgroundStore.js';
|
|
17
|
+
// Services
|
|
18
|
+
export { StoryParser } from './services/StoryParser.js';
|
|
19
|
+
// Property Editors
|
|
20
|
+
export { BooleanEditor, ColorEditor, IconEditor, NumberEditor, SelectEditor, SpacingEditor, TextEditor, TokenEditor, SPACING_TOKENS, SIZE_TOKENS } from './components/PropertyEditors/index.js';
|
|
21
|
+
// Version
|
|
22
|
+
export const PLAYGROUND_VERSION = '1.0.0';
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../playground/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,kBAAkB;AAClB,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAGnE,oBAAoB;AACpB,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAE/E,2BAA2B;AAC3B,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAGlF,eAAe;AACf,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAEtE,QAAQ;AACR,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAGhE,WAAW;AACX,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAGxD,mBAAmB;AACnB,OAAO,EACL,aAAa,EACb,WAAW,EACX,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,UAAU,EACV,WAAW,EACX,cAAc,EACd,WAAW,EACZ,MAAM,uCAAuC,CAAC;AAkC/C,UAAU;AACV,MAAM,CAAC,MAAM,kBAAkB,GAAG,OAAO,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CodeGenerator - Generates clean story code from visual edits
|
|
3
|
+
*/
|
|
4
|
+
import type { PlaygroundComponent } from '../types';
|
|
5
|
+
export interface GenerateOptions {
|
|
6
|
+
framework?: 'react' | 'vue' | 'angular';
|
|
7
|
+
designSystem?: string;
|
|
8
|
+
includeImports?: boolean;
|
|
9
|
+
includeHelpers?: boolean;
|
|
10
|
+
prettier?: boolean;
|
|
11
|
+
indentSize?: number;
|
|
12
|
+
useTypeScript?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare class CodeGenerator {
|
|
15
|
+
private options;
|
|
16
|
+
private imports;
|
|
17
|
+
private helperImports;
|
|
18
|
+
private componentMap;
|
|
19
|
+
constructor(options?: GenerateOptions);
|
|
20
|
+
/**
|
|
21
|
+
* Generate story code from components
|
|
22
|
+
*/
|
|
23
|
+
generateStoryCode(components: Map<string, PlaygroundComponent>, rootId: string, storyName?: string): string;
|
|
24
|
+
/**
|
|
25
|
+
* Generate JSX code for a component tree
|
|
26
|
+
*/
|
|
27
|
+
generateComponentCode(component: PlaygroundComponent, indent?: number): string;
|
|
28
|
+
/**
|
|
29
|
+
* Generate props string for a component
|
|
30
|
+
*/
|
|
31
|
+
private generateProps;
|
|
32
|
+
/**
|
|
33
|
+
* Generate style prop object
|
|
34
|
+
*/
|
|
35
|
+
private generateStyleProp;
|
|
36
|
+
/**
|
|
37
|
+
* Generate prop value string
|
|
38
|
+
*/
|
|
39
|
+
private generatePropValue;
|
|
40
|
+
/**
|
|
41
|
+
* Generate code for layout helpers
|
|
42
|
+
*/
|
|
43
|
+
private generateHelperCode;
|
|
44
|
+
/**
|
|
45
|
+
* Analyze component tree to determine imports
|
|
46
|
+
*/
|
|
47
|
+
private analyzeImports;
|
|
48
|
+
/**
|
|
49
|
+
* Generate import statements
|
|
50
|
+
*/
|
|
51
|
+
private generateImports;
|
|
52
|
+
/**
|
|
53
|
+
* Generate story metadata
|
|
54
|
+
*/
|
|
55
|
+
private generateStoryMeta;
|
|
56
|
+
/**
|
|
57
|
+
* Generate story component
|
|
58
|
+
*/
|
|
59
|
+
private generateStoryComponent;
|
|
60
|
+
/**
|
|
61
|
+
* Get component name (handle special cases)
|
|
62
|
+
*/
|
|
63
|
+
private getComponentName;
|
|
64
|
+
/**
|
|
65
|
+
* Get indent string
|
|
66
|
+
*/
|
|
67
|
+
private getIndent;
|
|
68
|
+
/**
|
|
69
|
+
* Convert string to PascalCase
|
|
70
|
+
*/
|
|
71
|
+
private toPascalCase;
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=CodeGenerator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodeGenerator.d.ts","sourceRoot":"","sources":["../../../playground/services/CodeGenerator.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEpD,MAAM,WAAW,eAAe;IAC9B,SAAS,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,SAAS,CAAC;IACxC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,qBAAa,aAAa;IACxB,OAAO,CAAC,OAAO,CAAkB;IACjC,OAAO,CAAC,OAAO,CAAc;IAC7B,OAAO,CAAC,aAAa,CAAc;IACnC,OAAO,CAAC,YAAY,CAAmC;gBAE3C,OAAO,GAAE,eAAoB;IAezC;;OAEG;IACH,iBAAiB,CACf,UAAU,EAAE,GAAG,CAAC,MAAM,EAAE,mBAAmB,CAAC,EAC5C,MAAM,EAAE,MAA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