@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,334 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Storybook stories for testing Phase 4 features
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { Playground } from '../components/Playground/Playground';
|
|
7
|
+
import { usePlaygroundStore } from '../store/playgroundStore';
|
|
8
|
+
const meta = {
|
|
9
|
+
title: 'StoryUI/Playground/Phase4',
|
|
10
|
+
component: Playground,
|
|
11
|
+
parameters: {
|
|
12
|
+
layout: 'fullscreen',
|
|
13
|
+
},
|
|
14
|
+
};
|
|
15
|
+
export default meta;
|
|
16
|
+
// Helper to create a complex component tree for testing
|
|
17
|
+
const createComplexTree = () => {
|
|
18
|
+
const store = usePlaygroundStore.getState();
|
|
19
|
+
store.components.clear();
|
|
20
|
+
// Root container using layout helper
|
|
21
|
+
store.addComponent({
|
|
22
|
+
id: 'root',
|
|
23
|
+
type: 'Container',
|
|
24
|
+
displayName: 'App Root',
|
|
25
|
+
props: {
|
|
26
|
+
style: {
|
|
27
|
+
padding: '24px',
|
|
28
|
+
minHeight: '100vh',
|
|
29
|
+
background: '#f8fafc'
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
children: []
|
|
33
|
+
});
|
|
34
|
+
// Header using HStack layout helper
|
|
35
|
+
store.addComponent({
|
|
36
|
+
id: 'header',
|
|
37
|
+
type: 'HStack',
|
|
38
|
+
displayName: 'Header',
|
|
39
|
+
parentId: 'root',
|
|
40
|
+
isHelper: true,
|
|
41
|
+
props: {
|
|
42
|
+
style: {
|
|
43
|
+
padding: '16px 24px',
|
|
44
|
+
background: 'white',
|
|
45
|
+
borderBottom: '1px solid #e2e8f0',
|
|
46
|
+
justifyContent: 'space-between',
|
|
47
|
+
alignItems: 'center',
|
|
48
|
+
marginBottom: '24px',
|
|
49
|
+
borderRadius: '8px',
|
|
50
|
+
boxShadow: '0 1px 3px rgba(0,0,0,0.1)'
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
children: []
|
|
54
|
+
});
|
|
55
|
+
// Logo
|
|
56
|
+
store.addComponent({
|
|
57
|
+
id: 'logo',
|
|
58
|
+
type: 'Heading',
|
|
59
|
+
displayName: 'Logo',
|
|
60
|
+
parentId: 'header',
|
|
61
|
+
textContent: 'StoryUI Playground',
|
|
62
|
+
props: {
|
|
63
|
+
style: {
|
|
64
|
+
fontSize: '20px',
|
|
65
|
+
fontWeight: 'bold',
|
|
66
|
+
color: '#1a202c'
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
// Nav using Flex helper
|
|
71
|
+
store.addComponent({
|
|
72
|
+
id: 'nav',
|
|
73
|
+
type: 'Flex',
|
|
74
|
+
displayName: 'Navigation',
|
|
75
|
+
parentId: 'header',
|
|
76
|
+
isHelper: true,
|
|
77
|
+
props: {
|
|
78
|
+
style: {
|
|
79
|
+
gap: '16px'
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
children: []
|
|
83
|
+
});
|
|
84
|
+
// Nav items
|
|
85
|
+
['Home', 'Features', 'Docs', 'Contact'].forEach((item, index) => {
|
|
86
|
+
store.addComponent({
|
|
87
|
+
id: `nav-${index}`,
|
|
88
|
+
type: 'Button',
|
|
89
|
+
displayName: item,
|
|
90
|
+
parentId: 'nav',
|
|
91
|
+
textContent: item,
|
|
92
|
+
props: {
|
|
93
|
+
style: {
|
|
94
|
+
background: 'transparent',
|
|
95
|
+
border: 'none',
|
|
96
|
+
padding: '8px 12px',
|
|
97
|
+
color: '#4a5568',
|
|
98
|
+
cursor: 'pointer',
|
|
99
|
+
fontSize: '14px'
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
// Main content area using Grid helper
|
|
105
|
+
store.addComponent({
|
|
106
|
+
id: 'main',
|
|
107
|
+
type: 'Grid',
|
|
108
|
+
displayName: 'Main Grid',
|
|
109
|
+
parentId: 'root',
|
|
110
|
+
isHelper: true,
|
|
111
|
+
props: {
|
|
112
|
+
style: {
|
|
113
|
+
display: 'grid',
|
|
114
|
+
gridTemplateColumns: 'repeat(3, 1fr)',
|
|
115
|
+
gap: '24px',
|
|
116
|
+
marginBottom: '24px'
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
children: []
|
|
120
|
+
});
|
|
121
|
+
// Cards using Box helper
|
|
122
|
+
['Feature 1', 'Feature 2', 'Feature 3'].forEach((title, index) => {
|
|
123
|
+
const cardId = `card-${index}`;
|
|
124
|
+
store.addComponent({
|
|
125
|
+
id: cardId,
|
|
126
|
+
type: 'Box',
|
|
127
|
+
displayName: `Card ${index + 1}`,
|
|
128
|
+
parentId: 'main',
|
|
129
|
+
isHelper: true,
|
|
130
|
+
props: {
|
|
131
|
+
style: {
|
|
132
|
+
padding: '24px',
|
|
133
|
+
background: 'white',
|
|
134
|
+
borderRadius: '12px',
|
|
135
|
+
boxShadow: '0 4px 6px rgba(0,0,0,0.07)'
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
children: []
|
|
139
|
+
});
|
|
140
|
+
// Card content using Stack helper
|
|
141
|
+
const stackId = `stack-${index}`;
|
|
142
|
+
store.addComponent({
|
|
143
|
+
id: stackId,
|
|
144
|
+
type: 'Stack',
|
|
145
|
+
displayName: 'Card Content',
|
|
146
|
+
parentId: cardId,
|
|
147
|
+
isHelper: true,
|
|
148
|
+
props: {
|
|
149
|
+
style: {
|
|
150
|
+
gap: '12px'
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
children: []
|
|
154
|
+
});
|
|
155
|
+
store.addComponent({
|
|
156
|
+
id: `title-${index}`,
|
|
157
|
+
type: 'Heading',
|
|
158
|
+
displayName: 'Card Title',
|
|
159
|
+
parentId: stackId,
|
|
160
|
+
textContent: title,
|
|
161
|
+
props: {
|
|
162
|
+
style: {
|
|
163
|
+
fontSize: '18px',
|
|
164
|
+
fontWeight: '600',
|
|
165
|
+
color: '#2d3748'
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
store.addComponent({
|
|
170
|
+
id: `desc-${index}`,
|
|
171
|
+
type: 'Text',
|
|
172
|
+
displayName: 'Card Description',
|
|
173
|
+
parentId: stackId,
|
|
174
|
+
textContent: 'This is a feature card demonstrating layout helpers and tree structure.',
|
|
175
|
+
props: {
|
|
176
|
+
style: {
|
|
177
|
+
fontSize: '14px',
|
|
178
|
+
color: '#718096',
|
|
179
|
+
lineHeight: '1.5'
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
});
|
|
184
|
+
// Footer using Center helper
|
|
185
|
+
store.addComponent({
|
|
186
|
+
id: 'footer',
|
|
187
|
+
type: 'Center',
|
|
188
|
+
displayName: 'Footer',
|
|
189
|
+
parentId: 'root',
|
|
190
|
+
isHelper: true,
|
|
191
|
+
props: {
|
|
192
|
+
style: {
|
|
193
|
+
padding: '24px',
|
|
194
|
+
background: 'white',
|
|
195
|
+
borderRadius: '8px',
|
|
196
|
+
marginTop: '24px'
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
children: []
|
|
200
|
+
});
|
|
201
|
+
store.addComponent({
|
|
202
|
+
id: 'copyright',
|
|
203
|
+
type: 'Text',
|
|
204
|
+
displayName: 'Copyright',
|
|
205
|
+
parentId: 'footer',
|
|
206
|
+
textContent: '© 2024 StoryUI. All rights reserved.',
|
|
207
|
+
props: {
|
|
208
|
+
style: {
|
|
209
|
+
fontSize: '13px',
|
|
210
|
+
color: '#a0aec0'
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
});
|
|
214
|
+
// Build the tree structure
|
|
215
|
+
const components = store.components;
|
|
216
|
+
const root = components.get('root');
|
|
217
|
+
const header = components.get('header');
|
|
218
|
+
const logo = components.get('logo');
|
|
219
|
+
const nav = components.get('nav');
|
|
220
|
+
const main = components.get('main');
|
|
221
|
+
const footer = components.get('footer');
|
|
222
|
+
const copyright = components.get('copyright');
|
|
223
|
+
if (root && header && main && footer) {
|
|
224
|
+
// Build nav children
|
|
225
|
+
nav.children = ['nav-0', 'nav-1', 'nav-2', 'nav-3'];
|
|
226
|
+
// Build header children
|
|
227
|
+
header.children = ['logo', 'nav'];
|
|
228
|
+
// Build card children
|
|
229
|
+
for (let i = 0; i < 3; i++) {
|
|
230
|
+
const card = components.get(`card-${i}`);
|
|
231
|
+
const stack = components.get(`stack-${i}`);
|
|
232
|
+
const title = components.get(`title-${i}`);
|
|
233
|
+
const desc = components.get(`desc-${i}`);
|
|
234
|
+
if (stack && title && desc) {
|
|
235
|
+
stack.children = [`title-${i}`, `desc-${i}`];
|
|
236
|
+
components.set(`stack-${i}`, stack);
|
|
237
|
+
}
|
|
238
|
+
if (card && stack) {
|
|
239
|
+
card.children = [`stack-${i}`];
|
|
240
|
+
components.set(`card-${i}`, card);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
// Build main children
|
|
244
|
+
main.children = ['card-0', 'card-1', 'card-2'];
|
|
245
|
+
// Build footer children
|
|
246
|
+
footer.children = ['copyright'];
|
|
247
|
+
// Build root children
|
|
248
|
+
root.children = ['header', 'main', 'footer'];
|
|
249
|
+
// Update components
|
|
250
|
+
components.set('nav', nav);
|
|
251
|
+
components.set('header', header);
|
|
252
|
+
components.set('main', main);
|
|
253
|
+
components.set('footer', footer);
|
|
254
|
+
components.set('root', root);
|
|
255
|
+
}
|
|
256
|
+
store.setMode('edit');
|
|
257
|
+
};
|
|
258
|
+
export const ComponentSearch = {
|
|
259
|
+
render: () => {
|
|
260
|
+
React.useEffect(() => {
|
|
261
|
+
createComplexTree();
|
|
262
|
+
const store = usePlaygroundStore.getState();
|
|
263
|
+
store.setSidebarTab('components');
|
|
264
|
+
}, []);
|
|
265
|
+
return _jsx(Playground, { initialMode: "edit" });
|
|
266
|
+
},
|
|
267
|
+
name: 'Component Search',
|
|
268
|
+
parameters: {
|
|
269
|
+
docs: {
|
|
270
|
+
description: {
|
|
271
|
+
story: 'Test the component search functionality. Type in the search box to filter components by name, type, or description.'
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
};
|
|
276
|
+
export const LayoutHelpers = {
|
|
277
|
+
render: () => {
|
|
278
|
+
React.useEffect(() => {
|
|
279
|
+
createComplexTree();
|
|
280
|
+
const store = usePlaygroundStore.getState();
|
|
281
|
+
store.setSidebarTab('components');
|
|
282
|
+
}, []);
|
|
283
|
+
return _jsx(Playground, { initialMode: "edit" });
|
|
284
|
+
},
|
|
285
|
+
name: 'Layout Helpers',
|
|
286
|
+
parameters: {
|
|
287
|
+
docs: {
|
|
288
|
+
description: {
|
|
289
|
+
story: 'Demonstrates layout helper components (Box, Stack, HStack, Grid, Flex, Center) that work across all design systems. These are marked with data-helper attributes.'
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
};
|
|
294
|
+
export const TreeView = {
|
|
295
|
+
render: () => {
|
|
296
|
+
React.useEffect(() => {
|
|
297
|
+
createComplexTree();
|
|
298
|
+
const store = usePlaygroundStore.getState();
|
|
299
|
+
store.setSidebarTab('structure');
|
|
300
|
+
}, []);
|
|
301
|
+
return _jsx(Playground, { initialMode: "edit" });
|
|
302
|
+
},
|
|
303
|
+
name: 'Tree View Navigation',
|
|
304
|
+
parameters: {
|
|
305
|
+
docs: {
|
|
306
|
+
description: {
|
|
307
|
+
story: 'Test the tree view component structure navigator. Expand/collapse nodes, search for components, and double-click to focus. The tree shows the full component hierarchy.'
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
};
|
|
312
|
+
export const CompletePhase4 = {
|
|
313
|
+
render: () => {
|
|
314
|
+
React.useEffect(() => {
|
|
315
|
+
createComplexTree();
|
|
316
|
+
const store = usePlaygroundStore.getState();
|
|
317
|
+
store.setSidebarTab('structure');
|
|
318
|
+
// Select a component to show properties
|
|
319
|
+
setTimeout(() => {
|
|
320
|
+
store.selectComponent('card-0');
|
|
321
|
+
}, 100);
|
|
322
|
+
}, []);
|
|
323
|
+
return _jsx(Playground, { initialMode: "edit" });
|
|
324
|
+
},
|
|
325
|
+
name: 'All Phase 4 Features',
|
|
326
|
+
parameters: {
|
|
327
|
+
docs: {
|
|
328
|
+
description: {
|
|
329
|
+
story: 'All Phase 4 features working together: Component search in palette, Layout helpers for cross-design-system support, and Tree view for structural navigation.'
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
};
|
|
334
|
+
//# sourceMappingURL=PlaygroundPhase4.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlaygroundPhase4.stories.js","sourceRoot":"","sources":["../../../playground/stories/PlaygroundPhase4.stories.tsx"],"names":[],"mappings":";AAAA;;GAEG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAE9D,MAAM,IAAI,GAA4B;IACpC,KAAK,EAAE,2BAA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U,CAAC,GAAG,EAAE;gBACd,KAAK,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;YAClC,CAAC,EAAE,GAAG,CAAC,CAAC;QACV,CAAC,EAAE,EAAE,CAAC,CAAC;QAEP,OAAO,KAAC,UAAU,IAAC,WAAW,EAAC,MAAM,GAAG,CAAC;IAC3C,CAAC;IACD,IAAI,EAAE,sBAAsB;IAC5B,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,WAAW,EAAE;gBACX,KAAK,EAAE,8JAA8J;aACtK;SACF;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Storybook stories for testing Phase 5 features
|
|
3
|
+
*/
|
|
4
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
5
|
+
import { Playground } from '../components/Playground/Playground';
|
|
6
|
+
declare const meta: Meta<typeof Playground>;
|
|
7
|
+
export default meta;
|
|
8
|
+
type Story = StoryObj<typeof Playground>;
|
|
9
|
+
export declare const CodeGeneration: Story;
|
|
10
|
+
export declare const UndoRedo: Story;
|
|
11
|
+
export declare const KeyboardShortcuts: Story;
|
|
12
|
+
export declare const ExportDialog: Story;
|
|
13
|
+
export declare const CompletePhase5: Story;
|
|
14
|
+
//# sourceMappingURL=PlaygroundPhase5.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlaygroundPhase5.stories.d.ts","sourceRoot":"","sources":["../../../playground/stories/PlaygroundPhase5.stories.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAGjE,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,UAAU,CAMjC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC;AAwazC,eAAO,MAAM,cAAc,EAAE,KAgB5B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAuBtB,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAgC/B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAkB1B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KA4B5B,CAAC"}
|