@tpitre/story-ui 3.4.0 → 3.4.1

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 (282) hide show
  1. package/dist/cli/index.js +0 -0
  2. package/dist/mcp-server/index.js +32 -0
  3. package/package.json +2 -1
  4. package/dist/cli/index.js.map +0 -1
  5. package/dist/cli/setup.js.map +0 -1
  6. package/dist/cloudflare-edge/src/mcp-session.js +0 -462
  7. package/dist/cloudflare-edge/src/types.js +0 -4
  8. package/dist/cloudflare-edge/src/worker.js +0 -106
  9. package/dist/cloudflare-pages/vite.config.js +0 -14
  10. package/dist/index.d.ts +0 -13
  11. package/dist/index.d.ts.map +0 -1
  12. package/dist/index.js +0 -12
  13. package/dist/index.js.map +0 -1
  14. package/dist/mcp-server/index.js.map +0 -1
  15. package/dist/mcp-server/mcp-stdio-server.js.map +0 -1
  16. package/dist/mcp-server/routes/claude.js.map +0 -1
  17. package/dist/mcp-server/routes/components.js.map +0 -1
  18. package/dist/mcp-server/routes/generateStory.js.map +0 -1
  19. package/dist/mcp-server/routes/hybridStories.d.ts +0 -18
  20. package/dist/mcp-server/routes/hybridStories.d.ts.map +0 -1
  21. package/dist/mcp-server/routes/hybridStories.js +0 -216
  22. package/dist/mcp-server/routes/hybridStories.js.map +0 -1
  23. package/dist/mcp-server/routes/memoryStories.d.ts +0 -26
  24. package/dist/mcp-server/routes/memoryStories.d.ts.map +0 -1
  25. package/dist/mcp-server/routes/memoryStories.js +0 -158
  26. package/dist/mcp-server/routes/memoryStories.js.map +0 -1
  27. package/dist/mcp-server/routes/storySync.d.ts +0 -26
  28. package/dist/mcp-server/routes/storySync.d.ts.map +0 -1
  29. package/dist/mcp-server/routes/storySync.js +0 -147
  30. package/dist/mcp-server/routes/storySync.js.map +0 -1
  31. package/dist/mcp-server/routes/updateStory.js +0 -246
  32. package/dist/mcp-server/sessionManager.d.ts +0 -50
  33. package/dist/mcp-server/sessionManager.d.ts.map +0 -1
  34. package/dist/mcp-server/sessionManager.js +0 -125
  35. package/dist/mcp-server/sessionManager.js.map +0 -1
  36. package/dist/playground/components/AIAssistant/AIAssistant.d.ts +0 -6
  37. package/dist/playground/components/AIAssistant/AIAssistant.d.ts.map +0 -1
  38. package/dist/playground/components/AIAssistant/AIAssistant.js +0 -109
  39. package/dist/playground/components/AIAssistant/AIAssistant.js.map +0 -1
  40. package/dist/playground/components/AIAssistant/AIAssistant.module.css +0 -166
  41. package/dist/playground/components/Canvas/Canvas.d.ts +0 -9
  42. package/dist/playground/components/Canvas/Canvas.d.ts.map +0 -1
  43. package/dist/playground/components/Canvas/Canvas.js +0 -58
  44. package/dist/playground/components/Canvas/Canvas.js.map +0 -1
  45. package/dist/playground/components/Canvas/Canvas.module.css +0 -189
  46. package/dist/playground/components/Canvas/CanvasWithDnd.d.ts +0 -9
  47. package/dist/playground/components/Canvas/CanvasWithDnd.d.ts.map +0 -1
  48. package/dist/playground/components/Canvas/CanvasWithDnd.js +0 -158
  49. package/dist/playground/components/Canvas/CanvasWithDnd.js.map +0 -1
  50. package/dist/playground/components/Canvas/ComponentRenderer.d.ts +0 -15
  51. package/dist/playground/components/Canvas/ComponentRenderer.d.ts.map +0 -1
  52. package/dist/playground/components/Canvas/ComponentRenderer.js +0 -177
  53. package/dist/playground/components/Canvas/ComponentRenderer.js.map +0 -1
  54. package/dist/playground/components/Canvas/DraggableComponent.d.ts +0 -15
  55. package/dist/playground/components/Canvas/DraggableComponent.d.ts.map +0 -1
  56. package/dist/playground/components/Canvas/DraggableComponent.js +0 -49
  57. package/dist/playground/components/Canvas/DraggableComponent.js.map +0 -1
  58. package/dist/playground/components/Canvas/index.d.ts +0 -9
  59. package/dist/playground/components/Canvas/index.d.ts.map +0 -1
  60. package/dist/playground/components/Canvas/index.js +0 -5
  61. package/dist/playground/components/Canvas/index.js.map +0 -1
  62. package/dist/playground/components/CodeView/CodeView.d.ts +0 -12
  63. package/dist/playground/components/CodeView/CodeView.d.ts.map +0 -1
  64. package/dist/playground/components/CodeView/CodeView.js +0 -77
  65. package/dist/playground/components/CodeView/CodeView.js.map +0 -1
  66. package/dist/playground/components/CodeView/CodeView.module.css +0 -178
  67. package/dist/playground/components/ComponentPalette/ComponentPalette.d.ts +0 -17
  68. package/dist/playground/components/ComponentPalette/ComponentPalette.d.ts.map +0 -1
  69. package/dist/playground/components/ComponentPalette/ComponentPalette.js +0 -138
  70. package/dist/playground/components/ComponentPalette/ComponentPalette.js.map +0 -1
  71. package/dist/playground/components/ComponentPalette/ComponentPalette.module.css +0 -217
  72. package/dist/playground/components/ComponentPalette/index.d.ts +0 -3
  73. package/dist/playground/components/ComponentPalette/index.d.ts.map +0 -1
  74. package/dist/playground/components/ComponentPalette/index.js +0 -2
  75. package/dist/playground/components/ComponentPalette/index.js.map +0 -1
  76. package/dist/playground/components/DropZone/DropZone.d.ts +0 -17
  77. package/dist/playground/components/DropZone/DropZone.d.ts.map +0 -1
  78. package/dist/playground/components/DropZone/DropZone.js +0 -73
  79. package/dist/playground/components/DropZone/DropZone.js.map +0 -1
  80. package/dist/playground/components/DropZone/DropZone.module.css +0 -86
  81. package/dist/playground/components/ExportDialog/ExportDialog.d.ts +0 -10
  82. package/dist/playground/components/ExportDialog/ExportDialog.d.ts.map +0 -1
  83. package/dist/playground/components/ExportDialog/ExportDialog.js +0 -57
  84. package/dist/playground/components/ExportDialog/ExportDialog.js.map +0 -1
  85. package/dist/playground/components/ExportDialog/ExportDialog.module.css +0 -328
  86. package/dist/playground/components/LayoutHelpers/LayoutHelpers.d.ts +0 -134
  87. package/dist/playground/components/LayoutHelpers/LayoutHelpers.d.ts.map +0 -1
  88. package/dist/playground/components/LayoutHelpers/LayoutHelpers.js +0 -254
  89. package/dist/playground/components/LayoutHelpers/LayoutHelpers.js.map +0 -1
  90. package/dist/playground/components/LayoutHelpers/index.d.ts +0 -3
  91. package/dist/playground/components/LayoutHelpers/index.d.ts.map +0 -1
  92. package/dist/playground/components/LayoutHelpers/index.js +0 -2
  93. package/dist/playground/components/LayoutHelpers/index.js.map +0 -1
  94. package/dist/playground/components/Playground/Playground.d.ts +0 -10
  95. package/dist/playground/components/Playground/Playground.d.ts.map +0 -1
  96. package/dist/playground/components/Playground/Playground.js +0 -128
  97. package/dist/playground/components/Playground/Playground.js.map +0 -1
  98. package/dist/playground/components/Playground/Playground.module.css +0 -308
  99. package/dist/playground/components/PropertiesPanel/PropertiesPanel.d.ts +0 -10
  100. package/dist/playground/components/PropertiesPanel/PropertiesPanel.d.ts.map +0 -1
  101. package/dist/playground/components/PropertiesPanel/PropertiesPanel.js +0 -150
  102. package/dist/playground/components/PropertiesPanel/PropertiesPanel.js.map +0 -1
  103. package/dist/playground/components/PropertiesPanel/PropertiesPanel.module.css +0 -155
  104. package/dist/playground/components/PropertiesPanel/index.d.ts +0 -3
  105. package/dist/playground/components/PropertiesPanel/index.d.ts.map +0 -1
  106. package/dist/playground/components/PropertiesPanel/index.js +0 -2
  107. package/dist/playground/components/PropertiesPanel/index.js.map +0 -1
  108. package/dist/playground/components/PropertyEditors/BooleanEditor.d.ts +0 -12
  109. package/dist/playground/components/PropertyEditors/BooleanEditor.d.ts.map +0 -1
  110. package/dist/playground/components/PropertyEditors/BooleanEditor.js +0 -14
  111. package/dist/playground/components/PropertyEditors/BooleanEditor.js.map +0 -1
  112. package/dist/playground/components/PropertyEditors/ColorEditor.d.ts +0 -12
  113. package/dist/playground/components/PropertyEditors/ColorEditor.d.ts.map +0 -1
  114. package/dist/playground/components/PropertyEditors/ColorEditor.js +0 -62
  115. package/dist/playground/components/PropertyEditors/ColorEditor.js.map +0 -1
  116. package/dist/playground/components/PropertyEditors/IconEditor.d.ts +0 -12
  117. package/dist/playground/components/PropertyEditors/IconEditor.d.ts.map +0 -1
  118. package/dist/playground/components/PropertyEditors/IconEditor.js +0 -123
  119. package/dist/playground/components/PropertyEditors/IconEditor.js.map +0 -1
  120. package/dist/playground/components/PropertyEditors/NumberEditor.d.ts +0 -15
  121. package/dist/playground/components/PropertyEditors/NumberEditor.d.ts.map +0 -1
  122. package/dist/playground/components/PropertyEditors/NumberEditor.js +0 -46
  123. package/dist/playground/components/PropertyEditors/NumberEditor.js.map +0 -1
  124. package/dist/playground/components/PropertyEditors/PropertyEditors.module.css +0 -432
  125. package/dist/playground/components/PropertyEditors/SelectEditor.d.ts +0 -19
  126. package/dist/playground/components/PropertyEditors/SelectEditor.d.ts.map +0 -1
  127. package/dist/playground/components/PropertyEditors/SelectEditor.js +0 -17
  128. package/dist/playground/components/PropertyEditors/SelectEditor.js.map +0 -1
  129. package/dist/playground/components/PropertyEditors/SpacingEditor.d.ts +0 -19
  130. package/dist/playground/components/PropertyEditors/SpacingEditor.d.ts.map +0 -1
  131. package/dist/playground/components/PropertyEditors/SpacingEditor.js +0 -162
  132. package/dist/playground/components/PropertyEditors/SpacingEditor.js.map +0 -1
  133. package/dist/playground/components/PropertyEditors/SpacingEditor.module.css +0 -214
  134. package/dist/playground/components/PropertyEditors/TextEditor.d.ts +0 -14
  135. package/dist/playground/components/PropertyEditors/TextEditor.d.ts.map +0 -1
  136. package/dist/playground/components/PropertyEditors/TextEditor.js +0 -38
  137. package/dist/playground/components/PropertyEditors/TextEditor.js.map +0 -1
  138. package/dist/playground/components/PropertyEditors/TokenEditor.d.ts +0 -23
  139. package/dist/playground/components/PropertyEditors/TokenEditor.d.ts.map +0 -1
  140. package/dist/playground/components/PropertyEditors/TokenEditor.js +0 -50
  141. package/dist/playground/components/PropertyEditors/TokenEditor.js.map +0 -1
  142. package/dist/playground/components/PropertyEditors/index.d.ts +0 -20
  143. package/dist/playground/components/PropertyEditors/index.d.ts.map +0 -1
  144. package/dist/playground/components/PropertyEditors/index.js +0 -12
  145. package/dist/playground/components/PropertyEditors/index.js.map +0 -1
  146. package/dist/playground/components/TreeView/TreeView.d.ts +0 -10
  147. package/dist/playground/components/TreeView/TreeView.d.ts.map +0 -1
  148. package/dist/playground/components/TreeView/TreeView.js +0 -146
  149. package/dist/playground/components/TreeView/TreeView.js.map +0 -1
  150. package/dist/playground/components/TreeView/TreeView.module.css +0 -214
  151. package/dist/playground/components/TreeView/index.d.ts +0 -3
  152. package/dist/playground/components/TreeView/index.d.ts.map +0 -1
  153. package/dist/playground/components/TreeView/index.js +0 -2
  154. package/dist/playground/components/TreeView/index.js.map +0 -1
  155. package/dist/playground/config/propertyDefinitions.d.ts +0 -73
  156. package/dist/playground/config/propertyDefinitions.d.ts.map +0 -1
  157. package/dist/playground/config/propertyDefinitions.js +0 -809
  158. package/dist/playground/config/propertyDefinitions.js.map +0 -1
  159. package/dist/playground/hooks/useKeyboardShortcuts.d.ts +0 -38
  160. package/dist/playground/hooks/useKeyboardShortcuts.d.ts.map +0 -1
  161. package/dist/playground/hooks/useKeyboardShortcuts.js +0 -191
  162. package/dist/playground/hooks/useKeyboardShortcuts.js.map +0 -1
  163. package/dist/playground/index.d.ts +0 -21
  164. package/dist/playground/index.d.ts.map +0 -1
  165. package/dist/playground/index.js +0 -23
  166. package/dist/playground/index.js.map +0 -1
  167. package/dist/playground/services/CodeGenerator.d.ts +0 -73
  168. package/dist/playground/services/CodeGenerator.d.ts.map +0 -1
  169. package/dist/playground/services/CodeGenerator.js +0 -359
  170. package/dist/playground/services/CodeGenerator.js.map +0 -1
  171. package/dist/playground/services/DragDropManager.d.ts +0 -95
  172. package/dist/playground/services/DragDropManager.d.ts.map +0 -1
  173. package/dist/playground/services/DragDropManager.js +0 -408
  174. package/dist/playground/services/DragDropManager.js.map +0 -1
  175. package/dist/playground/services/StoryParser.d.ts +0 -73
  176. package/dist/playground/services/StoryParser.d.ts.map +0 -1
  177. package/dist/playground/services/StoryParser.js +0 -419
  178. package/dist/playground/services/StoryParser.js.map +0 -1
  179. package/dist/playground/store/playgroundStore.d.ts +0 -86
  180. package/dist/playground/store/playgroundStore.d.ts.map +0 -1
  181. package/dist/playground/store/playgroundStore.js +0 -337
  182. package/dist/playground/store/playgroundStore.js.map +0 -1
  183. package/dist/playground/stories/PlaygroundDragDrop.stories.d.ts +0 -13
  184. package/dist/playground/stories/PlaygroundDragDrop.stories.d.ts.map +0 -1
  185. package/dist/playground/stories/PlaygroundDragDrop.stories.js +0 -227
  186. package/dist/playground/stories/PlaygroundDragDrop.stories.js.map +0 -1
  187. package/dist/playground/stories/PlaygroundPhase4.stories.d.ts +0 -13
  188. package/dist/playground/stories/PlaygroundPhase4.stories.d.ts.map +0 -1
  189. package/dist/playground/stories/PlaygroundPhase4.stories.js +0 -334
  190. package/dist/playground/stories/PlaygroundPhase4.stories.js.map +0 -1
  191. package/dist/playground/stories/PlaygroundPhase5.stories.d.ts +0 -14
  192. package/dist/playground/stories/PlaygroundPhase5.stories.d.ts.map +0 -1
  193. package/dist/playground/stories/PlaygroundPhase5.stories.js +0 -512
  194. package/dist/playground/stories/PlaygroundPhase5.stories.js.map +0 -1
  195. package/dist/playground/stories/PlaygroundProperties.stories.d.ts +0 -13
  196. package/dist/playground/stories/PlaygroundProperties.stories.d.ts.map +0 -1
  197. package/dist/playground/stories/PlaygroundProperties.stories.js +0 -342
  198. package/dist/playground/stories/PlaygroundProperties.stories.js.map +0 -1
  199. package/dist/playground/types/index.d.ts +0 -251
  200. package/dist/playground/types/index.d.ts.map +0 -1
  201. package/dist/playground/types/index.js +0 -5
  202. package/dist/playground/types/index.js.map +0 -1
  203. package/dist/scripts/verify-framework-adapters.js +0 -105
  204. package/dist/story-generator/componentBlacklist.js.map +0 -1
  205. package/dist/story-generator/componentDiscovery.js.map +0 -1
  206. package/dist/story-generator/configLoader.js.map +0 -1
  207. package/dist/story-generator/considerationsLoader.js.map +0 -1
  208. package/dist/story-generator/documentation-sources.js.map +0 -1
  209. package/dist/story-generator/documentationLoader.js.map +0 -1
  210. package/dist/story-generator/dynamicPackageDiscovery.js.map +0 -1
  211. package/dist/story-generator/enhancedComponentDiscovery.js.map +0 -1
  212. package/dist/story-generator/generateStory.js.map +0 -1
  213. package/dist/story-generator/gitignoreManager.js.map +0 -1
  214. package/dist/story-generator/inMemoryStoryService.d.ts +0 -89
  215. package/dist/story-generator/inMemoryStoryService.d.ts.map +0 -1
  216. package/dist/story-generator/inMemoryStoryService.js +0 -128
  217. package/dist/story-generator/inMemoryStoryService.js.map +0 -1
  218. package/dist/story-generator/logger.js.map +0 -1
  219. package/dist/story-generator/postProcessStory.js.map +0 -1
  220. package/dist/story-generator/postgresStoryService.d.ts +0 -56
  221. package/dist/story-generator/postgresStoryService.d.ts.map +0 -1
  222. package/dist/story-generator/postgresStoryService.js +0 -240
  223. package/dist/story-generator/productionGitignoreManager.d.ts +0 -91
  224. package/dist/story-generator/productionGitignoreManager.d.ts.map +0 -1
  225. package/dist/story-generator/productionGitignoreManager.js +0 -340
  226. package/dist/story-generator/productionGitignoreManager.js.map +0 -1
  227. package/dist/story-generator/promptGenerator.js.map +0 -1
  228. package/dist/story-generator/providerPresets.d.ts +0 -54
  229. package/dist/story-generator/providerPresets.d.ts.map +0 -1
  230. package/dist/story-generator/providerPresets.js +0 -214
  231. package/dist/story-generator/storyHistory.js.map +0 -1
  232. package/dist/story-generator/storyServiceFactory.d.ts +0 -22
  233. package/dist/story-generator/storyServiceFactory.d.ts.map +0 -1
  234. package/dist/story-generator/storyServiceFactory.js +0 -97
  235. package/dist/story-generator/storyServiceInterface.d.ts +0 -85
  236. package/dist/story-generator/storyServiceInterface.d.ts.map +0 -1
  237. package/dist/story-generator/storyServiceInterface.js +0 -5
  238. package/dist/story-generator/storySync.d.ts +0 -68
  239. package/dist/story-generator/storySync.d.ts.map +0 -1
  240. package/dist/story-generator/storySync.js +0 -201
  241. package/dist/story-generator/storySync.js.map +0 -1
  242. package/dist/story-generator/storyTracker.js.map +0 -1
  243. package/dist/story-generator/storyValidator.js.map +0 -1
  244. package/dist/story-generator/test_validation.d.ts +0 -2
  245. package/dist/story-generator/test_validation.d.ts.map +0 -1
  246. package/dist/story-generator/test_validation.js +0 -51
  247. package/dist/story-generator/universalDesignSystemAdapter.js.map +0 -1
  248. package/dist/story-generator/urlRedirectService.js.map +0 -1
  249. package/dist/story-generator/validateStory.js.map +0 -1
  250. package/dist/story-ui.config.js.map +0 -1
  251. package/dist/story-ui.config.loader.d.ts +0 -36
  252. package/dist/story-ui.config.loader.d.ts.map +0 -1
  253. package/dist/story-ui.config.loader.js +0 -205
  254. package/dist/story-ui.config.loader.js.map +0 -1
  255. package/dist/temp/package/templates/StoryUI/StoryUIPanel.js +0 -807
  256. package/dist/temp/package/templates/StoryUI/StoryUIPanel.stories.js +0 -37
  257. package/dist/temp/package/templates/StoryUI/index.js +0 -2
  258. package/dist/templates/StoryUI/StoryUIPanel.js.map +0 -1
  259. package/dist/templates/StoryUI/StoryUIPanel.stories.js.map +0 -1
  260. package/dist/templates/StoryUI/index.js.map +0 -1
  261. package/dist/templates/StoryUI/manager.d.ts +0 -14
  262. package/dist/templates/StoryUI/manager.d.ts.map +0 -1
  263. package/dist/templates/production-app/src/App.d.ts +0 -10
  264. package/dist/templates/production-app/src/App.d.ts.map +0 -1
  265. package/dist/templates/production-app/src/App.js +0 -653
  266. package/dist/templates/production-app/src/LivePreviewRenderer.d.ts +0 -24
  267. package/dist/templates/production-app/src/LivePreviewRenderer.d.ts.map +0 -1
  268. package/dist/templates/production-app/src/LivePreviewRenderer.js +0 -199
  269. package/dist/templates/production-app/src/componentRegistry.d.ts +0 -20
  270. package/dist/templates/production-app/src/componentRegistry.d.ts.map +0 -1
  271. package/dist/templates/production-app/src/componentRegistry.js +0 -316
  272. package/dist/templates/production-app/src/main.d.ts +0 -9
  273. package/dist/templates/production-app/src/main.d.ts.map +0 -1
  274. package/dist/templates/production-app/src/main.js +0 -18
  275. package/dist/templates/production-app/vite.config.d.ts +0 -3
  276. package/dist/templates/production-app/vite.config.d.ts.map +0 -1
  277. package/dist/templates/production-app/vite.config.js +0 -71
  278. package/dist/test-storybooks/angular-material-storybook/src/main.js +0 -66
  279. package/dist/test-storybooks/chakra-storybook/vite.config.js +0 -6
  280. package/dist/test-storybooks/mantine-storybook/vite.config.js +0 -93
  281. package/dist/test-storybooks/web-components-shoelace/vite.config.js +0 -9
  282. package/dist/tsconfig.tsbuildinfo +0 -1
@@ -1,512 +0,0 @@
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
@@ -1 +0,0 @@
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,KAA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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
@@ -1 +0,0 @@
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"}