@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.
Files changed (281) hide show
  1. package/dist/cli/index.js +0 -0
  2. package/dist/cli/index.js.map +1 -0
  3. package/dist/cli/setup.js.map +1 -0
  4. package/dist/cloudflare-edge/src/mcp-session.js +462 -0
  5. package/dist/cloudflare-edge/src/types.js +4 -0
  6. package/dist/cloudflare-edge/src/worker.js +106 -0
  7. package/dist/cloudflare-pages/vite.config.js +14 -0
  8. package/dist/index.d.ts +13 -0
  9. package/dist/index.d.ts.map +1 -0
  10. package/dist/index.js +12 -0
  11. package/dist/index.js.map +1 -0
  12. package/dist/mcp-server/index.js.map +1 -0
  13. package/dist/mcp-server/mcp-stdio-server.js.map +1 -0
  14. package/dist/mcp-server/routes/claude.js.map +1 -0
  15. package/dist/mcp-server/routes/components.js.map +1 -0
  16. package/dist/mcp-server/routes/generateStory.js.map +1 -0
  17. package/dist/mcp-server/routes/hybridStories.d.ts +18 -0
  18. package/dist/mcp-server/routes/hybridStories.d.ts.map +1 -0
  19. package/dist/mcp-server/routes/hybridStories.js +216 -0
  20. package/dist/mcp-server/routes/hybridStories.js.map +1 -0
  21. package/dist/mcp-server/routes/memoryStories.d.ts +26 -0
  22. package/dist/mcp-server/routes/memoryStories.d.ts.map +1 -0
  23. package/dist/mcp-server/routes/memoryStories.js +158 -0
  24. package/dist/mcp-server/routes/memoryStories.js.map +1 -0
  25. package/dist/mcp-server/routes/storySync.d.ts +26 -0
  26. package/dist/mcp-server/routes/storySync.d.ts.map +1 -0
  27. package/dist/mcp-server/routes/storySync.js +147 -0
  28. package/dist/mcp-server/routes/storySync.js.map +1 -0
  29. package/dist/mcp-server/routes/updateStory.js +246 -0
  30. package/dist/mcp-server/sessionManager.d.ts +50 -0
  31. package/dist/mcp-server/sessionManager.d.ts.map +1 -0
  32. package/dist/mcp-server/sessionManager.js +125 -0
  33. package/dist/mcp-server/sessionManager.js.map +1 -0
  34. package/dist/playground/components/AIAssistant/AIAssistant.d.ts +6 -0
  35. package/dist/playground/components/AIAssistant/AIAssistant.d.ts.map +1 -0
  36. package/dist/playground/components/AIAssistant/AIAssistant.js +109 -0
  37. package/dist/playground/components/AIAssistant/AIAssistant.js.map +1 -0
  38. package/dist/playground/components/AIAssistant/AIAssistant.module.css +166 -0
  39. package/dist/playground/components/Canvas/Canvas.d.ts +9 -0
  40. package/dist/playground/components/Canvas/Canvas.d.ts.map +1 -0
  41. package/dist/playground/components/Canvas/Canvas.js +58 -0
  42. package/dist/playground/components/Canvas/Canvas.js.map +1 -0
  43. package/dist/playground/components/Canvas/Canvas.module.css +189 -0
  44. package/dist/playground/components/Canvas/CanvasWithDnd.d.ts +9 -0
  45. package/dist/playground/components/Canvas/CanvasWithDnd.d.ts.map +1 -0
  46. package/dist/playground/components/Canvas/CanvasWithDnd.js +158 -0
  47. package/dist/playground/components/Canvas/CanvasWithDnd.js.map +1 -0
  48. package/dist/playground/components/Canvas/ComponentRenderer.d.ts +15 -0
  49. package/dist/playground/components/Canvas/ComponentRenderer.d.ts.map +1 -0
  50. package/dist/playground/components/Canvas/ComponentRenderer.js +177 -0
  51. package/dist/playground/components/Canvas/ComponentRenderer.js.map +1 -0
  52. package/dist/playground/components/Canvas/DraggableComponent.d.ts +15 -0
  53. package/dist/playground/components/Canvas/DraggableComponent.d.ts.map +1 -0
  54. package/dist/playground/components/Canvas/DraggableComponent.js +49 -0
  55. package/dist/playground/components/Canvas/DraggableComponent.js.map +1 -0
  56. package/dist/playground/components/Canvas/index.d.ts +9 -0
  57. package/dist/playground/components/Canvas/index.d.ts.map +1 -0
  58. package/dist/playground/components/Canvas/index.js +5 -0
  59. package/dist/playground/components/Canvas/index.js.map +1 -0
  60. package/dist/playground/components/CodeView/CodeView.d.ts +12 -0
  61. package/dist/playground/components/CodeView/CodeView.d.ts.map +1 -0
  62. package/dist/playground/components/CodeView/CodeView.js +77 -0
  63. package/dist/playground/components/CodeView/CodeView.js.map +1 -0
  64. package/dist/playground/components/CodeView/CodeView.module.css +178 -0
  65. package/dist/playground/components/ComponentPalette/ComponentPalette.d.ts +17 -0
  66. package/dist/playground/components/ComponentPalette/ComponentPalette.d.ts.map +1 -0
  67. package/dist/playground/components/ComponentPalette/ComponentPalette.js +138 -0
  68. package/dist/playground/components/ComponentPalette/ComponentPalette.js.map +1 -0
  69. package/dist/playground/components/ComponentPalette/ComponentPalette.module.css +217 -0
  70. package/dist/playground/components/ComponentPalette/index.d.ts +3 -0
  71. package/dist/playground/components/ComponentPalette/index.d.ts.map +1 -0
  72. package/dist/playground/components/ComponentPalette/index.js +2 -0
  73. package/dist/playground/components/ComponentPalette/index.js.map +1 -0
  74. package/dist/playground/components/DropZone/DropZone.d.ts +17 -0
  75. package/dist/playground/components/DropZone/DropZone.d.ts.map +1 -0
  76. package/dist/playground/components/DropZone/DropZone.js +73 -0
  77. package/dist/playground/components/DropZone/DropZone.js.map +1 -0
  78. package/dist/playground/components/DropZone/DropZone.module.css +86 -0
  79. package/dist/playground/components/ExportDialog/ExportDialog.d.ts +10 -0
  80. package/dist/playground/components/ExportDialog/ExportDialog.d.ts.map +1 -0
  81. package/dist/playground/components/ExportDialog/ExportDialog.js +57 -0
  82. package/dist/playground/components/ExportDialog/ExportDialog.js.map +1 -0
  83. package/dist/playground/components/ExportDialog/ExportDialog.module.css +328 -0
  84. package/dist/playground/components/LayoutHelpers/LayoutHelpers.d.ts +134 -0
  85. package/dist/playground/components/LayoutHelpers/LayoutHelpers.d.ts.map +1 -0
  86. package/dist/playground/components/LayoutHelpers/LayoutHelpers.js +254 -0
  87. package/dist/playground/components/LayoutHelpers/LayoutHelpers.js.map +1 -0
  88. package/dist/playground/components/LayoutHelpers/index.d.ts +3 -0
  89. package/dist/playground/components/LayoutHelpers/index.d.ts.map +1 -0
  90. package/dist/playground/components/LayoutHelpers/index.js +2 -0
  91. package/dist/playground/components/LayoutHelpers/index.js.map +1 -0
  92. package/dist/playground/components/Playground/Playground.d.ts +10 -0
  93. package/dist/playground/components/Playground/Playground.d.ts.map +1 -0
  94. package/dist/playground/components/Playground/Playground.js +128 -0
  95. package/dist/playground/components/Playground/Playground.js.map +1 -0
  96. package/dist/playground/components/Playground/Playground.module.css +308 -0
  97. package/dist/playground/components/PropertiesPanel/PropertiesPanel.d.ts +10 -0
  98. package/dist/playground/components/PropertiesPanel/PropertiesPanel.d.ts.map +1 -0
  99. package/dist/playground/components/PropertiesPanel/PropertiesPanel.js +150 -0
  100. package/dist/playground/components/PropertiesPanel/PropertiesPanel.js.map +1 -0
  101. package/dist/playground/components/PropertiesPanel/PropertiesPanel.module.css +155 -0
  102. package/dist/playground/components/PropertiesPanel/index.d.ts +3 -0
  103. package/dist/playground/components/PropertiesPanel/index.d.ts.map +1 -0
  104. package/dist/playground/components/PropertiesPanel/index.js +2 -0
  105. package/dist/playground/components/PropertiesPanel/index.js.map +1 -0
  106. package/dist/playground/components/PropertyEditors/BooleanEditor.d.ts +12 -0
  107. package/dist/playground/components/PropertyEditors/BooleanEditor.d.ts.map +1 -0
  108. package/dist/playground/components/PropertyEditors/BooleanEditor.js +14 -0
  109. package/dist/playground/components/PropertyEditors/BooleanEditor.js.map +1 -0
  110. package/dist/playground/components/PropertyEditors/ColorEditor.d.ts +12 -0
  111. package/dist/playground/components/PropertyEditors/ColorEditor.d.ts.map +1 -0
  112. package/dist/playground/components/PropertyEditors/ColorEditor.js +62 -0
  113. package/dist/playground/components/PropertyEditors/ColorEditor.js.map +1 -0
  114. package/dist/playground/components/PropertyEditors/IconEditor.d.ts +12 -0
  115. package/dist/playground/components/PropertyEditors/IconEditor.d.ts.map +1 -0
  116. package/dist/playground/components/PropertyEditors/IconEditor.js +123 -0
  117. package/dist/playground/components/PropertyEditors/IconEditor.js.map +1 -0
  118. package/dist/playground/components/PropertyEditors/NumberEditor.d.ts +15 -0
  119. package/dist/playground/components/PropertyEditors/NumberEditor.d.ts.map +1 -0
  120. package/dist/playground/components/PropertyEditors/NumberEditor.js +46 -0
  121. package/dist/playground/components/PropertyEditors/NumberEditor.js.map +1 -0
  122. package/dist/playground/components/PropertyEditors/PropertyEditors.module.css +432 -0
  123. package/dist/playground/components/PropertyEditors/SelectEditor.d.ts +19 -0
  124. package/dist/playground/components/PropertyEditors/SelectEditor.d.ts.map +1 -0
  125. package/dist/playground/components/PropertyEditors/SelectEditor.js +17 -0
  126. package/dist/playground/components/PropertyEditors/SelectEditor.js.map +1 -0
  127. package/dist/playground/components/PropertyEditors/SpacingEditor.d.ts +19 -0
  128. package/dist/playground/components/PropertyEditors/SpacingEditor.d.ts.map +1 -0
  129. package/dist/playground/components/PropertyEditors/SpacingEditor.js +162 -0
  130. package/dist/playground/components/PropertyEditors/SpacingEditor.js.map +1 -0
  131. package/dist/playground/components/PropertyEditors/SpacingEditor.module.css +214 -0
  132. package/dist/playground/components/PropertyEditors/TextEditor.d.ts +14 -0
  133. package/dist/playground/components/PropertyEditors/TextEditor.d.ts.map +1 -0
  134. package/dist/playground/components/PropertyEditors/TextEditor.js +38 -0
  135. package/dist/playground/components/PropertyEditors/TextEditor.js.map +1 -0
  136. package/dist/playground/components/PropertyEditors/TokenEditor.d.ts +23 -0
  137. package/dist/playground/components/PropertyEditors/TokenEditor.d.ts.map +1 -0
  138. package/dist/playground/components/PropertyEditors/TokenEditor.js +50 -0
  139. package/dist/playground/components/PropertyEditors/TokenEditor.js.map +1 -0
  140. package/dist/playground/components/PropertyEditors/index.d.ts +20 -0
  141. package/dist/playground/components/PropertyEditors/index.d.ts.map +1 -0
  142. package/dist/playground/components/PropertyEditors/index.js +12 -0
  143. package/dist/playground/components/PropertyEditors/index.js.map +1 -0
  144. package/dist/playground/components/TreeView/TreeView.d.ts +10 -0
  145. package/dist/playground/components/TreeView/TreeView.d.ts.map +1 -0
  146. package/dist/playground/components/TreeView/TreeView.js +146 -0
  147. package/dist/playground/components/TreeView/TreeView.js.map +1 -0
  148. package/dist/playground/components/TreeView/TreeView.module.css +214 -0
  149. package/dist/playground/components/TreeView/index.d.ts +3 -0
  150. package/dist/playground/components/TreeView/index.d.ts.map +1 -0
  151. package/dist/playground/components/TreeView/index.js +2 -0
  152. package/dist/playground/components/TreeView/index.js.map +1 -0
  153. package/dist/playground/config/propertyDefinitions.d.ts +73 -0
  154. package/dist/playground/config/propertyDefinitions.d.ts.map +1 -0
  155. package/dist/playground/config/propertyDefinitions.js +809 -0
  156. package/dist/playground/config/propertyDefinitions.js.map +1 -0
  157. package/dist/playground/hooks/useKeyboardShortcuts.d.ts +38 -0
  158. package/dist/playground/hooks/useKeyboardShortcuts.d.ts.map +1 -0
  159. package/dist/playground/hooks/useKeyboardShortcuts.js +191 -0
  160. package/dist/playground/hooks/useKeyboardShortcuts.js.map +1 -0
  161. package/dist/playground/index.d.ts +21 -0
  162. package/dist/playground/index.d.ts.map +1 -0
  163. package/dist/playground/index.js +23 -0
  164. package/dist/playground/index.js.map +1 -0
  165. package/dist/playground/services/CodeGenerator.d.ts +73 -0
  166. package/dist/playground/services/CodeGenerator.d.ts.map +1 -0
  167. package/dist/playground/services/CodeGenerator.js +359 -0
  168. package/dist/playground/services/CodeGenerator.js.map +1 -0
  169. package/dist/playground/services/DragDropManager.d.ts +95 -0
  170. package/dist/playground/services/DragDropManager.d.ts.map +1 -0
  171. package/dist/playground/services/DragDropManager.js +408 -0
  172. package/dist/playground/services/DragDropManager.js.map +1 -0
  173. package/dist/playground/services/StoryParser.d.ts +73 -0
  174. package/dist/playground/services/StoryParser.d.ts.map +1 -0
  175. package/dist/playground/services/StoryParser.js +419 -0
  176. package/dist/playground/services/StoryParser.js.map +1 -0
  177. package/dist/playground/store/playgroundStore.d.ts +86 -0
  178. package/dist/playground/store/playgroundStore.d.ts.map +1 -0
  179. package/dist/playground/store/playgroundStore.js +337 -0
  180. package/dist/playground/store/playgroundStore.js.map +1 -0
  181. package/dist/playground/stories/PlaygroundDragDrop.stories.d.ts +13 -0
  182. package/dist/playground/stories/PlaygroundDragDrop.stories.d.ts.map +1 -0
  183. package/dist/playground/stories/PlaygroundDragDrop.stories.js +227 -0
  184. package/dist/playground/stories/PlaygroundDragDrop.stories.js.map +1 -0
  185. package/dist/playground/stories/PlaygroundPhase4.stories.d.ts +13 -0
  186. package/dist/playground/stories/PlaygroundPhase4.stories.d.ts.map +1 -0
  187. package/dist/playground/stories/PlaygroundPhase4.stories.js +334 -0
  188. package/dist/playground/stories/PlaygroundPhase4.stories.js.map +1 -0
  189. package/dist/playground/stories/PlaygroundPhase5.stories.d.ts +14 -0
  190. package/dist/playground/stories/PlaygroundPhase5.stories.d.ts.map +1 -0
  191. package/dist/playground/stories/PlaygroundPhase5.stories.js +512 -0
  192. package/dist/playground/stories/PlaygroundPhase5.stories.js.map +1 -0
  193. package/dist/playground/stories/PlaygroundProperties.stories.d.ts +13 -0
  194. package/dist/playground/stories/PlaygroundProperties.stories.d.ts.map +1 -0
  195. package/dist/playground/stories/PlaygroundProperties.stories.js +342 -0
  196. package/dist/playground/stories/PlaygroundProperties.stories.js.map +1 -0
  197. package/dist/playground/types/index.d.ts +251 -0
  198. package/dist/playground/types/index.d.ts.map +1 -0
  199. package/dist/playground/types/index.js +5 -0
  200. package/dist/playground/types/index.js.map +1 -0
  201. package/dist/scripts/verify-framework-adapters.js +105 -0
  202. package/dist/story-generator/componentBlacklist.js.map +1 -0
  203. package/dist/story-generator/componentDiscovery.js.map +1 -0
  204. package/dist/story-generator/configLoader.js.map +1 -0
  205. package/dist/story-generator/considerationsLoader.js.map +1 -0
  206. package/dist/story-generator/documentation-sources.js.map +1 -0
  207. package/dist/story-generator/documentationLoader.js.map +1 -0
  208. package/dist/story-generator/dynamicPackageDiscovery.js.map +1 -0
  209. package/dist/story-generator/enhancedComponentDiscovery.js.map +1 -0
  210. package/dist/story-generator/generateStory.js.map +1 -0
  211. package/dist/story-generator/gitignoreManager.js.map +1 -0
  212. package/dist/story-generator/inMemoryStoryService.d.ts +89 -0
  213. package/dist/story-generator/inMemoryStoryService.d.ts.map +1 -0
  214. package/dist/story-generator/inMemoryStoryService.js +128 -0
  215. package/dist/story-generator/inMemoryStoryService.js.map +1 -0
  216. package/dist/story-generator/logger.js.map +1 -0
  217. package/dist/story-generator/postProcessStory.js.map +1 -0
  218. package/dist/story-generator/postgresStoryService.d.ts +56 -0
  219. package/dist/story-generator/postgresStoryService.d.ts.map +1 -0
  220. package/dist/story-generator/postgresStoryService.js +240 -0
  221. package/dist/story-generator/productionGitignoreManager.d.ts +91 -0
  222. package/dist/story-generator/productionGitignoreManager.d.ts.map +1 -0
  223. package/dist/story-generator/productionGitignoreManager.js +340 -0
  224. package/dist/story-generator/productionGitignoreManager.js.map +1 -0
  225. package/dist/story-generator/promptGenerator.js.map +1 -0
  226. package/dist/story-generator/providerPresets.d.ts +54 -0
  227. package/dist/story-generator/providerPresets.d.ts.map +1 -0
  228. package/dist/story-generator/providerPresets.js +214 -0
  229. package/dist/story-generator/storyHistory.js.map +1 -0
  230. package/dist/story-generator/storyServiceFactory.d.ts +22 -0
  231. package/dist/story-generator/storyServiceFactory.d.ts.map +1 -0
  232. package/dist/story-generator/storyServiceFactory.js +97 -0
  233. package/dist/story-generator/storyServiceInterface.d.ts +85 -0
  234. package/dist/story-generator/storyServiceInterface.d.ts.map +1 -0
  235. package/dist/story-generator/storyServiceInterface.js +5 -0
  236. package/dist/story-generator/storySync.d.ts +68 -0
  237. package/dist/story-generator/storySync.d.ts.map +1 -0
  238. package/dist/story-generator/storySync.js +201 -0
  239. package/dist/story-generator/storySync.js.map +1 -0
  240. package/dist/story-generator/storyTracker.js.map +1 -0
  241. package/dist/story-generator/storyValidator.js.map +1 -0
  242. package/dist/story-generator/test_validation.d.ts +2 -0
  243. package/dist/story-generator/test_validation.d.ts.map +1 -0
  244. package/dist/story-generator/test_validation.js +51 -0
  245. package/dist/story-generator/universalDesignSystemAdapter.js.map +1 -0
  246. package/dist/story-generator/urlRedirectService.js.map +1 -0
  247. package/dist/story-generator/validateStory.js.map +1 -0
  248. package/dist/story-ui.config.js.map +1 -0
  249. package/dist/story-ui.config.loader.d.ts +36 -0
  250. package/dist/story-ui.config.loader.d.ts.map +1 -0
  251. package/dist/story-ui.config.loader.js +205 -0
  252. package/dist/story-ui.config.loader.js.map +1 -0
  253. package/dist/temp/package/templates/StoryUI/StoryUIPanel.js +807 -0
  254. package/dist/temp/package/templates/StoryUI/StoryUIPanel.stories.js +37 -0
  255. package/dist/temp/package/templates/StoryUI/index.js +2 -0
  256. package/dist/templates/StoryUI/StoryUIPanel.js.map +1 -0
  257. package/dist/templates/StoryUI/StoryUIPanel.stories.js.map +1 -0
  258. package/dist/templates/StoryUI/index.js.map +1 -0
  259. package/dist/templates/StoryUI/manager.d.ts +14 -0
  260. package/dist/templates/StoryUI/manager.d.ts.map +1 -0
  261. package/dist/templates/production-app/src/App.d.ts +10 -0
  262. package/dist/templates/production-app/src/App.d.ts.map +1 -0
  263. package/dist/templates/production-app/src/App.js +653 -0
  264. package/dist/templates/production-app/src/LivePreviewRenderer.d.ts +24 -0
  265. package/dist/templates/production-app/src/LivePreviewRenderer.d.ts.map +1 -0
  266. package/dist/templates/production-app/src/LivePreviewRenderer.js +199 -0
  267. package/dist/templates/production-app/src/componentRegistry.d.ts +20 -0
  268. package/dist/templates/production-app/src/componentRegistry.d.ts.map +1 -0
  269. package/dist/templates/production-app/src/componentRegistry.js +316 -0
  270. package/dist/templates/production-app/src/main.d.ts +9 -0
  271. package/dist/templates/production-app/src/main.d.ts.map +1 -0
  272. package/dist/templates/production-app/src/main.js +18 -0
  273. package/dist/templates/production-app/vite.config.d.ts +3 -0
  274. package/dist/templates/production-app/vite.config.d.ts.map +1 -0
  275. package/dist/templates/production-app/vite.config.js +71 -0
  276. package/dist/test-storybooks/angular-material-storybook/src/main.js +66 -0
  277. package/dist/test-storybooks/chakra-storybook/vite.config.js +6 -0
  278. package/dist/test-storybooks/mantine-storybook/vite.config.js +93 -0
  279. package/dist/test-storybooks/web-components-shoelace/vite.config.js +9 -0
  280. package/dist/tsconfig.tsbuildinfo +1 -0
  281. package/package.json +1 -1
@@ -0,0 +1,512 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /**
3
+ * Storybook stories for testing Phase 5 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/Phase5',
10
+ component: Playground,
11
+ parameters: {
12
+ layout: 'fullscreen',
13
+ },
14
+ };
15
+ export default meta;
16
+ // Helper to create test components for code generation
17
+ const createTestComponents = () => {
18
+ const store = usePlaygroundStore.getState();
19
+ store.components.clear();
20
+ // Root container
21
+ store.addComponent({
22
+ id: 'root',
23
+ type: 'Container',
24
+ displayName: 'Dashboard',
25
+ props: {
26
+ style: {
27
+ padding: '32px',
28
+ minHeight: '100vh',
29
+ background: 'linear-gradient(135deg, #667eea 0%, #764ba2 100%)'
30
+ }
31
+ },
32
+ children: []
33
+ });
34
+ // Header with layout helpers
35
+ store.addComponent({
36
+ id: 'header',
37
+ type: 'Box',
38
+ displayName: 'Header',
39
+ parentId: 'root',
40
+ isHelper: true,
41
+ props: {
42
+ style: {
43
+ padding: '24px',
44
+ background: 'white',
45
+ borderRadius: '12px',
46
+ marginBottom: '32px',
47
+ boxShadow: '0 10px 30px rgba(0,0,0,0.1)'
48
+ }
49
+ },
50
+ children: []
51
+ });
52
+ // Title
53
+ store.addComponent({
54
+ id: 'title',
55
+ type: 'Heading',
56
+ displayName: 'Dashboard Title',
57
+ parentId: 'header',
58
+ textContent: 'Analytics Dashboard',
59
+ props: {
60
+ style: {
61
+ fontSize: '28px',
62
+ fontWeight: 'bold',
63
+ color: '#1a202c',
64
+ marginBottom: '8px'
65
+ }
66
+ }
67
+ });
68
+ // Subtitle
69
+ store.addComponent({
70
+ id: 'subtitle',
71
+ type: 'Text',
72
+ displayName: 'Subtitle',
73
+ parentId: 'header',
74
+ textContent: 'Real-time insights and performance metrics',
75
+ props: {
76
+ style: {
77
+ fontSize: '16px',
78
+ color: '#718096'
79
+ }
80
+ }
81
+ });
82
+ // Stats Grid using Grid helper
83
+ store.addComponent({
84
+ id: 'stats-grid',
85
+ type: 'Grid',
86
+ displayName: 'Stats Grid',
87
+ parentId: 'root',
88
+ isHelper: true,
89
+ props: {
90
+ style: {
91
+ display: 'grid',
92
+ gridTemplateColumns: 'repeat(4, 1fr)',
93
+ gap: '24px',
94
+ marginBottom: '32px'
95
+ }
96
+ },
97
+ children: []
98
+ });
99
+ // Create stat cards
100
+ const stats = [
101
+ { label: 'Total Users', value: '12,543', change: '+12%' },
102
+ { label: 'Revenue', value: '$45,678', change: '+23%' },
103
+ { label: 'Conversion', value: '3.45%', change: '+5%' },
104
+ { label: 'Active Now', value: '1,234', change: '+8%' }
105
+ ];
106
+ stats.forEach((stat, index) => {
107
+ const cardId = `stat-card-${index}`;
108
+ store.addComponent({
109
+ id: cardId,
110
+ type: 'Box',
111
+ displayName: `Stat Card: ${stat.label}`,
112
+ parentId: 'stats-grid',
113
+ isHelper: true,
114
+ props: {
115
+ style: {
116
+ padding: '20px',
117
+ background: 'white',
118
+ borderRadius: '8px',
119
+ boxShadow: '0 4px 6px rgba(0,0,0,0.07)'
120
+ }
121
+ },
122
+ children: []
123
+ });
124
+ const stackId = `stat-stack-${index}`;
125
+ store.addComponent({
126
+ id: stackId,
127
+ type: 'Stack',
128
+ displayName: 'Stat Content',
129
+ parentId: cardId,
130
+ isHelper: true,
131
+ props: {
132
+ style: {
133
+ gap: '8px'
134
+ }
135
+ },
136
+ children: []
137
+ });
138
+ store.addComponent({
139
+ id: `stat-label-${index}`,
140
+ type: 'Text',
141
+ displayName: 'Stat Label',
142
+ parentId: stackId,
143
+ textContent: stat.label,
144
+ props: {
145
+ style: {
146
+ fontSize: '14px',
147
+ color: '#718096',
148
+ fontWeight: '500'
149
+ }
150
+ }
151
+ });
152
+ store.addComponent({
153
+ id: `stat-value-${index}`,
154
+ type: 'Heading',
155
+ displayName: 'Stat Value',
156
+ parentId: stackId,
157
+ textContent: stat.value,
158
+ props: {
159
+ style: {
160
+ fontSize: '24px',
161
+ fontWeight: 'bold',
162
+ color: '#2d3748'
163
+ }
164
+ }
165
+ });
166
+ store.addComponent({
167
+ id: `stat-change-${index}`,
168
+ type: 'Badge',
169
+ displayName: 'Stat Change',
170
+ parentId: stackId,
171
+ textContent: stat.change,
172
+ props: {
173
+ style: {
174
+ fontSize: '12px',
175
+ color: '#48bb78',
176
+ background: '#c6f6d5',
177
+ padding: '2px 8px',
178
+ borderRadius: '4px',
179
+ display: 'inline-block'
180
+ }
181
+ }
182
+ });
183
+ });
184
+ // Main content area with charts
185
+ store.addComponent({
186
+ id: 'charts-container',
187
+ type: 'HStack',
188
+ displayName: 'Charts Container',
189
+ parentId: 'root',
190
+ isHelper: true,
191
+ props: {
192
+ style: {
193
+ gap: '24px',
194
+ alignItems: 'stretch'
195
+ }
196
+ },
197
+ children: []
198
+ });
199
+ // Chart 1
200
+ store.addComponent({
201
+ id: 'chart-1',
202
+ type: 'Box',
203
+ displayName: 'Revenue Chart',
204
+ parentId: 'charts-container',
205
+ isHelper: true,
206
+ props: {
207
+ style: {
208
+ flex: '2',
209
+ padding: '24px',
210
+ background: 'white',
211
+ borderRadius: '8px',
212
+ boxShadow: '0 4px 6px rgba(0,0,0,0.07)'
213
+ }
214
+ },
215
+ children: []
216
+ });
217
+ store.addComponent({
218
+ id: 'chart-1-title',
219
+ type: 'Heading',
220
+ displayName: 'Chart Title',
221
+ parentId: 'chart-1',
222
+ textContent: 'Revenue Trend',
223
+ props: {
224
+ style: {
225
+ fontSize: '18px',
226
+ fontWeight: '600',
227
+ color: '#2d3748',
228
+ marginBottom: '16px'
229
+ }
230
+ }
231
+ });
232
+ store.addComponent({
233
+ id: 'chart-1-placeholder',
234
+ type: 'Center',
235
+ displayName: 'Chart Placeholder',
236
+ parentId: 'chart-1',
237
+ isHelper: true,
238
+ props: {
239
+ style: {
240
+ height: '200px',
241
+ background: 'linear-gradient(135deg, #667eea 0%, #764ba2 100%)',
242
+ borderRadius: '8px',
243
+ color: 'white',
244
+ fontSize: '14px',
245
+ fontWeight: '500'
246
+ }
247
+ },
248
+ children: []
249
+ });
250
+ store.addComponent({
251
+ id: 'chart-1-text',
252
+ type: 'Text',
253
+ displayName: 'Chart Text',
254
+ parentId: 'chart-1-placeholder',
255
+ textContent: 'Chart Component Here',
256
+ props: {
257
+ style: {
258
+ color: 'white'
259
+ }
260
+ }
261
+ });
262
+ // Chart 2
263
+ store.addComponent({
264
+ id: 'chart-2',
265
+ type: 'Box',
266
+ displayName: 'Activity Chart',
267
+ parentId: 'charts-container',
268
+ isHelper: true,
269
+ props: {
270
+ style: {
271
+ flex: '1',
272
+ padding: '24px',
273
+ background: 'white',
274
+ borderRadius: '8px',
275
+ boxShadow: '0 4px 6px rgba(0,0,0,0.07)'
276
+ }
277
+ },
278
+ children: []
279
+ });
280
+ store.addComponent({
281
+ id: 'chart-2-title',
282
+ type: 'Heading',
283
+ displayName: 'Activity Title',
284
+ parentId: 'chart-2',
285
+ textContent: 'Recent Activity',
286
+ props: {
287
+ style: {
288
+ fontSize: '18px',
289
+ fontWeight: '600',
290
+ color: '#2d3748',
291
+ marginBottom: '16px'
292
+ }
293
+ }
294
+ });
295
+ // Activity list
296
+ const activities = [
297
+ 'New user registered',
298
+ 'Payment received',
299
+ 'Order completed',
300
+ 'Review posted',
301
+ 'Support ticket closed'
302
+ ];
303
+ const listId = 'activity-list';
304
+ store.addComponent({
305
+ id: listId,
306
+ type: 'Stack',
307
+ displayName: 'Activity List',
308
+ parentId: 'chart-2',
309
+ isHelper: true,
310
+ props: {
311
+ style: {
312
+ gap: '12px'
313
+ }
314
+ },
315
+ children: []
316
+ });
317
+ activities.forEach((activity, index) => {
318
+ store.addComponent({
319
+ id: `activity-${index}`,
320
+ type: 'Text',
321
+ displayName: `Activity ${index + 1}`,
322
+ parentId: listId,
323
+ textContent: `• ${activity}`,
324
+ props: {
325
+ style: {
326
+ fontSize: '14px',
327
+ color: '#4a5568'
328
+ }
329
+ }
330
+ });
331
+ });
332
+ // Build the tree structure
333
+ const components = store.components;
334
+ const root = components.get('root');
335
+ const header = components.get('header');
336
+ const title = components.get('title');
337
+ const subtitle = components.get('subtitle');
338
+ const statsGrid = components.get('stats-grid');
339
+ const chartsContainer = components.get('charts-container');
340
+ const chart1 = components.get('chart-1');
341
+ const chart2 = components.get('chart-2');
342
+ if (root && header && statsGrid && chartsContainer) {
343
+ // Build header children
344
+ header.children = ['title', 'subtitle'];
345
+ // Build stat cards
346
+ for (let i = 0; i < 4; i++) {
347
+ const card = components.get(`stat-card-${i}`);
348
+ const stack = components.get(`stat-stack-${i}`);
349
+ const label = components.get(`stat-label-${i}`);
350
+ const value = components.get(`stat-value-${i}`);
351
+ const change = components.get(`stat-change-${i}`);
352
+ if (stack && label && value && change) {
353
+ stack.children = [`stat-label-${i}`, `stat-value-${i}`, `stat-change-${i}`];
354
+ components.set(`stat-stack-${i}`, stack);
355
+ }
356
+ if (card && stack) {
357
+ card.children = [`stat-stack-${i}`];
358
+ components.set(`stat-card-${i}`, card);
359
+ }
360
+ }
361
+ // Build stats grid
362
+ statsGrid.children = ['stat-card-0', 'stat-card-1', 'stat-card-2', 'stat-card-3'];
363
+ // Build chart 1
364
+ const chart1Title = components.get('chart-1-title');
365
+ const chart1Placeholder = components.get('chart-1-placeholder');
366
+ const chart1Text = components.get('chart-1-text');
367
+ if (chart1Placeholder && chart1Text) {
368
+ chart1Placeholder.children = ['chart-1-text'];
369
+ components.set('chart-1-placeholder', chart1Placeholder);
370
+ }
371
+ if (chart1 && chart1Title && chart1Placeholder) {
372
+ chart1.children = ['chart-1-title', 'chart-1-placeholder'];
373
+ components.set('chart-1', chart1);
374
+ }
375
+ // Build chart 2
376
+ const chart2Title = components.get('chart-2-title');
377
+ const activityList = components.get('activity-list');
378
+ if (activityList) {
379
+ activityList.children = ['activity-0', 'activity-1', 'activity-2', 'activity-3', 'activity-4'];
380
+ components.set('activity-list', activityList);
381
+ }
382
+ if (chart2 && chart2Title && activityList) {
383
+ chart2.children = ['chart-2-title', 'activity-list'];
384
+ components.set('chart-2', chart2);
385
+ }
386
+ // Build charts container
387
+ chartsContainer.children = ['chart-1', 'chart-2'];
388
+ // Build root
389
+ root.children = ['header', 'stats-grid', 'charts-container'];
390
+ // Update all components
391
+ components.set('header', header);
392
+ components.set('stats-grid', statsGrid);
393
+ components.set('charts-container', chartsContainer);
394
+ components.set('root', root);
395
+ }
396
+ store.setMode('code');
397
+ };
398
+ export const CodeGeneration = {
399
+ render: () => {
400
+ React.useEffect(() => {
401
+ createTestComponents();
402
+ }, []);
403
+ return _jsx(Playground, { initialMode: "code" });
404
+ },
405
+ name: 'Code Generation & Export',
406
+ parameters: {
407
+ docs: {
408
+ description: {
409
+ story: 'Test the code generation feature. Switch to Code mode to see generated story code. Click Export to download or copy the code. Uses layout helpers and various component types.'
410
+ }
411
+ }
412
+ }
413
+ };
414
+ export const UndoRedo = {
415
+ render: () => {
416
+ React.useEffect(() => {
417
+ createTestComponents();
418
+ const store = usePlaygroundStore.getState();
419
+ store.setMode('edit');
420
+ // Show undo/redo in action
421
+ setTimeout(() => {
422
+ store.saveSnapshot('Initial state');
423
+ }, 100);
424
+ }, []);
425
+ return _jsx(Playground, { initialMode: "edit" });
426
+ },
427
+ name: 'Undo/Redo Functionality',
428
+ parameters: {
429
+ docs: {
430
+ description: {
431
+ story: 'Test undo/redo functionality. Use Cmd/Ctrl+Z to undo and Cmd/Ctrl+Shift+Z to redo. Make changes to components and test the history navigation.'
432
+ }
433
+ }
434
+ }
435
+ };
436
+ export const KeyboardShortcuts = {
437
+ render: () => {
438
+ React.useEffect(() => {
439
+ createTestComponents();
440
+ const store = usePlaygroundStore.getState();
441
+ store.setMode('edit');
442
+ // Select a component to test shortcuts
443
+ setTimeout(() => {
444
+ store.selectComponent('stat-card-0');
445
+ }, 100);
446
+ }, []);
447
+ return _jsx(Playground, { initialMode: "edit" });
448
+ },
449
+ name: 'Keyboard Shortcuts',
450
+ parameters: {
451
+ docs: {
452
+ description: {
453
+ story: `Test keyboard shortcuts:
454
+ - Cmd/Ctrl+Z: Undo
455
+ - Cmd/Ctrl+Shift+Z: Redo
456
+ - Delete: Delete selected
457
+ - Cmd/Ctrl+D: Duplicate selected
458
+ - Cmd/Ctrl+A: Select all
459
+ - Escape: Deselect all
460
+ - 1/2/3: Switch modes (Edit/Preview/Code)
461
+ - Cmd/Ctrl+P: Toggle properties panel
462
+ - Cmd/Ctrl+=/−/0: Zoom controls`
463
+ }
464
+ }
465
+ }
466
+ };
467
+ export const ExportDialog = {
468
+ render: () => {
469
+ React.useEffect(() => {
470
+ createTestComponents();
471
+ const store = usePlaygroundStore.getState();
472
+ store.setMode('edit');
473
+ }, []);
474
+ return _jsx(Playground, { initialMode: "edit" });
475
+ },
476
+ name: 'Export Dialog',
477
+ parameters: {
478
+ docs: {
479
+ description: {
480
+ story: 'Test the export dialog. Click the Export button in the header to open the dialog. Configure export options and download the generated story file.'
481
+ }
482
+ }
483
+ }
484
+ };
485
+ export const CompletePhase5 = {
486
+ render: () => {
487
+ React.useEffect(() => {
488
+ createTestComponents();
489
+ const store = usePlaygroundStore.getState();
490
+ store.setMode('code');
491
+ // Show all features working together
492
+ console.log('Phase 5 Features:');
493
+ console.log('1. Code Generation ✅');
494
+ console.log('2. Code View with Syntax Highlighting ✅');
495
+ console.log('3. Undo/Redo Functionality ✅');
496
+ console.log('4. Keyboard Shortcuts ✅');
497
+ console.log('5. Export Dialog ✅');
498
+ console.log('6. Copy to Clipboard ✅');
499
+ console.log('7. File Download ✅');
500
+ }, []);
501
+ return _jsx(Playground, { initialMode: "code" });
502
+ },
503
+ name: 'All Phase 5 Features',
504
+ parameters: {
505
+ docs: {
506
+ description: {
507
+ story: 'All Phase 5 features working together: Code generation from visual edits, syntax highlighting, undo/redo history, keyboard shortcuts, and export functionality. This completes the Polish & Export phase.'
508
+ }
509
+ }
510
+ }
511
+ };
512
+ //# sourceMappingURL=PlaygroundPhase5.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlaygroundPhase5.stories.js","sourceRoot":"","sources":["../../../playground/stories/PlaygroundPhase5.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,2BAA2B;IAClC,SAAS,EAAE,UAAU;IACrB,UAAU,EAAE;QACV,MAAM,EAAE,YAAY;KACrB;CACF,CAAC;AAEF,eAAe,IAAI,CAAC;AAGpB,uDAAuD;AACvD,MAAM,oBAAoB,GAAG,GAAG,EAAE;IAChC,MAAM,KAAK,GAAG,kBAAkB,CAAC,QAAQ,EAAE,CAAC;IAE5C,KAAK,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;IAEzB,iBAAiB;IACjB,KAAK,CAAC,YAAY,CAAC;QACjB,EAAE,EAAE,MAAM;QACV,IAAI,EAAE,WAAW;QACjB,WAAW,EAAE,WAAW;QACxB,KAAK,EAAE;YACL,KAAK,EAAE;gBACL,OAAO,EAAE,MAAM;gBACf,SAAS,EAAE,OAAO;gBAClB,UAAU,EAAE,mDAAmD;aAChE;SACF;QACD,QAAQ,EAAE,EAAE;KACb,CAAC,CAAC;IAEH,6BAA6B;IAC7B,KAAK,CAAC,YAAY,CAAC;QACjB,EAAE,EAAE,QAAQ;QACZ,IAAI,EAAE,KAAK;QACX,WAAW,EAAE,QAAQ;QACrB,QAAQ,EAAE,MAAM;QAChB,QAAQ,EAAE,IAAI;QACd,KAAK,EAAE;YACL,KAAK,EAAE;gBACL,OAAO,EAAE,MAAM;gBACf,UAAU,EAAE,OAAO;gBACnB,YAAY,EAAE,MAAM;gBACpB,YAAY,EAAE,MAAM;gBACpB,SAAS,EAAE,6BAA6B;aACzC;SACF;QACD,QAA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AC,CAAC;YACpC,OAAO,CAAC,GAAG,CAAC,yCAAyC,CAAC,CAAC;YACvD,OAAO,CAAC,GAAG,CAAC,8BAA8B,CAAC,CAAC;YAC5C,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;YACvC,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;YAClC,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;YACtC,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;QACpC,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,2MAA2M;aACnN;SACF;KACF;CACF,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Storybook stories for testing Properties Panel functionality
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 SpacingEditor: Story;
10
+ export declare const AllPropertyTypes: Story;
11
+ export declare const RealTimeUpdates: Story;
12
+ export declare const StyleGroups: Story;
13
+ //# sourceMappingURL=PlaygroundProperties.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlaygroundProperties.stories.d.ts","sourceRoot":"","sources":["../../../playground/stories/PlaygroundProperties.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;AAoKzC,eAAO,MAAM,aAAa,EAAE,KAgB3B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAgB9B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KA8E7B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAuFzB,CAAC"}