@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.
- package/dist/cli/index.js +0 -0
- package/dist/mcp-server/index.js +32 -0
- package/package.json +2 -1
- package/dist/cli/index.js.map +0 -1
- package/dist/cli/setup.js.map +0 -1
- package/dist/cloudflare-edge/src/mcp-session.js +0 -462
- package/dist/cloudflare-edge/src/types.js +0 -4
- package/dist/cloudflare-edge/src/worker.js +0 -106
- package/dist/cloudflare-pages/vite.config.js +0 -14
- package/dist/index.d.ts +0 -13
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -12
- package/dist/index.js.map +0 -1
- package/dist/mcp-server/index.js.map +0 -1
- package/dist/mcp-server/mcp-stdio-server.js.map +0 -1
- package/dist/mcp-server/routes/claude.js.map +0 -1
- package/dist/mcp-server/routes/components.js.map +0 -1
- package/dist/mcp-server/routes/generateStory.js.map +0 -1
- package/dist/mcp-server/routes/hybridStories.d.ts +0 -18
- package/dist/mcp-server/routes/hybridStories.d.ts.map +0 -1
- package/dist/mcp-server/routes/hybridStories.js +0 -216
- package/dist/mcp-server/routes/hybridStories.js.map +0 -1
- package/dist/mcp-server/routes/memoryStories.d.ts +0 -26
- package/dist/mcp-server/routes/memoryStories.d.ts.map +0 -1
- package/dist/mcp-server/routes/memoryStories.js +0 -158
- package/dist/mcp-server/routes/memoryStories.js.map +0 -1
- package/dist/mcp-server/routes/storySync.d.ts +0 -26
- package/dist/mcp-server/routes/storySync.d.ts.map +0 -1
- package/dist/mcp-server/routes/storySync.js +0 -147
- package/dist/mcp-server/routes/storySync.js.map +0 -1
- package/dist/mcp-server/routes/updateStory.js +0 -246
- package/dist/mcp-server/sessionManager.d.ts +0 -50
- package/dist/mcp-server/sessionManager.d.ts.map +0 -1
- package/dist/mcp-server/sessionManager.js +0 -125
- package/dist/mcp-server/sessionManager.js.map +0 -1
- package/dist/playground/components/AIAssistant/AIAssistant.d.ts +0 -6
- package/dist/playground/components/AIAssistant/AIAssistant.d.ts.map +0 -1
- package/dist/playground/components/AIAssistant/AIAssistant.js +0 -109
- package/dist/playground/components/AIAssistant/AIAssistant.js.map +0 -1
- package/dist/playground/components/AIAssistant/AIAssistant.module.css +0 -166
- package/dist/playground/components/Canvas/Canvas.d.ts +0 -9
- package/dist/playground/components/Canvas/Canvas.d.ts.map +0 -1
- package/dist/playground/components/Canvas/Canvas.js +0 -58
- package/dist/playground/components/Canvas/Canvas.js.map +0 -1
- package/dist/playground/components/Canvas/Canvas.module.css +0 -189
- package/dist/playground/components/Canvas/CanvasWithDnd.d.ts +0 -9
- package/dist/playground/components/Canvas/CanvasWithDnd.d.ts.map +0 -1
- package/dist/playground/components/Canvas/CanvasWithDnd.js +0 -158
- package/dist/playground/components/Canvas/CanvasWithDnd.js.map +0 -1
- package/dist/playground/components/Canvas/ComponentRenderer.d.ts +0 -15
- package/dist/playground/components/Canvas/ComponentRenderer.d.ts.map +0 -1
- package/dist/playground/components/Canvas/ComponentRenderer.js +0 -177
- package/dist/playground/components/Canvas/ComponentRenderer.js.map +0 -1
- package/dist/playground/components/Canvas/DraggableComponent.d.ts +0 -15
- package/dist/playground/components/Canvas/DraggableComponent.d.ts.map +0 -1
- package/dist/playground/components/Canvas/DraggableComponent.js +0 -49
- package/dist/playground/components/Canvas/DraggableComponent.js.map +0 -1
- package/dist/playground/components/Canvas/index.d.ts +0 -9
- package/dist/playground/components/Canvas/index.d.ts.map +0 -1
- package/dist/playground/components/Canvas/index.js +0 -5
- package/dist/playground/components/Canvas/index.js.map +0 -1
- package/dist/playground/components/CodeView/CodeView.d.ts +0 -12
- package/dist/playground/components/CodeView/CodeView.d.ts.map +0 -1
- package/dist/playground/components/CodeView/CodeView.js +0 -77
- package/dist/playground/components/CodeView/CodeView.js.map +0 -1
- package/dist/playground/components/CodeView/CodeView.module.css +0 -178
- package/dist/playground/components/ComponentPalette/ComponentPalette.d.ts +0 -17
- package/dist/playground/components/ComponentPalette/ComponentPalette.d.ts.map +0 -1
- package/dist/playground/components/ComponentPalette/ComponentPalette.js +0 -138
- package/dist/playground/components/ComponentPalette/ComponentPalette.js.map +0 -1
- package/dist/playground/components/ComponentPalette/ComponentPalette.module.css +0 -217
- package/dist/playground/components/ComponentPalette/index.d.ts +0 -3
- package/dist/playground/components/ComponentPalette/index.d.ts.map +0 -1
- package/dist/playground/components/ComponentPalette/index.js +0 -2
- package/dist/playground/components/ComponentPalette/index.js.map +0 -1
- package/dist/playground/components/DropZone/DropZone.d.ts +0 -17
- package/dist/playground/components/DropZone/DropZone.d.ts.map +0 -1
- package/dist/playground/components/DropZone/DropZone.js +0 -73
- package/dist/playground/components/DropZone/DropZone.js.map +0 -1
- package/dist/playground/components/DropZone/DropZone.module.css +0 -86
- package/dist/playground/components/ExportDialog/ExportDialog.d.ts +0 -10
- package/dist/playground/components/ExportDialog/ExportDialog.d.ts.map +0 -1
- package/dist/playground/components/ExportDialog/ExportDialog.js +0 -57
- package/dist/playground/components/ExportDialog/ExportDialog.js.map +0 -1
- package/dist/playground/components/ExportDialog/ExportDialog.module.css +0 -328
- package/dist/playground/components/LayoutHelpers/LayoutHelpers.d.ts +0 -134
- package/dist/playground/components/LayoutHelpers/LayoutHelpers.d.ts.map +0 -1
- package/dist/playground/components/LayoutHelpers/LayoutHelpers.js +0 -254
- package/dist/playground/components/LayoutHelpers/LayoutHelpers.js.map +0 -1
- package/dist/playground/components/LayoutHelpers/index.d.ts +0 -3
- package/dist/playground/components/LayoutHelpers/index.d.ts.map +0 -1
- package/dist/playground/components/LayoutHelpers/index.js +0 -2
- package/dist/playground/components/LayoutHelpers/index.js.map +0 -1
- package/dist/playground/components/Playground/Playground.d.ts +0 -10
- package/dist/playground/components/Playground/Playground.d.ts.map +0 -1
- package/dist/playground/components/Playground/Playground.js +0 -128
- package/dist/playground/components/Playground/Playground.js.map +0 -1
- package/dist/playground/components/Playground/Playground.module.css +0 -308
- package/dist/playground/components/PropertiesPanel/PropertiesPanel.d.ts +0 -10
- package/dist/playground/components/PropertiesPanel/PropertiesPanel.d.ts.map +0 -1
- package/dist/playground/components/PropertiesPanel/PropertiesPanel.js +0 -150
- package/dist/playground/components/PropertiesPanel/PropertiesPanel.js.map +0 -1
- package/dist/playground/components/PropertiesPanel/PropertiesPanel.module.css +0 -155
- package/dist/playground/components/PropertiesPanel/index.d.ts +0 -3
- package/dist/playground/components/PropertiesPanel/index.d.ts.map +0 -1
- package/dist/playground/components/PropertiesPanel/index.js +0 -2
- package/dist/playground/components/PropertiesPanel/index.js.map +0 -1
- package/dist/playground/components/PropertyEditors/BooleanEditor.d.ts +0 -12
- package/dist/playground/components/PropertyEditors/BooleanEditor.d.ts.map +0 -1
- package/dist/playground/components/PropertyEditors/BooleanEditor.js +0 -14
- package/dist/playground/components/PropertyEditors/BooleanEditor.js.map +0 -1
- package/dist/playground/components/PropertyEditors/ColorEditor.d.ts +0 -12
- package/dist/playground/components/PropertyEditors/ColorEditor.d.ts.map +0 -1
- package/dist/playground/components/PropertyEditors/ColorEditor.js +0 -62
- package/dist/playground/components/PropertyEditors/ColorEditor.js.map +0 -1
- package/dist/playground/components/PropertyEditors/IconEditor.d.ts +0 -12
- package/dist/playground/components/PropertyEditors/IconEditor.d.ts.map +0 -1
- package/dist/playground/components/PropertyEditors/IconEditor.js +0 -123
- package/dist/playground/components/PropertyEditors/IconEditor.js.map +0 -1
- package/dist/playground/components/PropertyEditors/NumberEditor.d.ts +0 -15
- package/dist/playground/components/PropertyEditors/NumberEditor.d.ts.map +0 -1
- package/dist/playground/components/PropertyEditors/NumberEditor.js +0 -46
- package/dist/playground/components/PropertyEditors/NumberEditor.js.map +0 -1
- package/dist/playground/components/PropertyEditors/PropertyEditors.module.css +0 -432
- package/dist/playground/components/PropertyEditors/SelectEditor.d.ts +0 -19
- package/dist/playground/components/PropertyEditors/SelectEditor.d.ts.map +0 -1
- package/dist/playground/components/PropertyEditors/SelectEditor.js +0 -17
- package/dist/playground/components/PropertyEditors/SelectEditor.js.map +0 -1
- package/dist/playground/components/PropertyEditors/SpacingEditor.d.ts +0 -19
- package/dist/playground/components/PropertyEditors/SpacingEditor.d.ts.map +0 -1
- package/dist/playground/components/PropertyEditors/SpacingEditor.js +0 -162
- package/dist/playground/components/PropertyEditors/SpacingEditor.js.map +0 -1
- package/dist/playground/components/PropertyEditors/SpacingEditor.module.css +0 -214
- package/dist/playground/components/PropertyEditors/TextEditor.d.ts +0 -14
- package/dist/playground/components/PropertyEditors/TextEditor.d.ts.map +0 -1
- package/dist/playground/components/PropertyEditors/TextEditor.js +0 -38
- package/dist/playground/components/PropertyEditors/TextEditor.js.map +0 -1
- package/dist/playground/components/PropertyEditors/TokenEditor.d.ts +0 -23
- package/dist/playground/components/PropertyEditors/TokenEditor.d.ts.map +0 -1
- package/dist/playground/components/PropertyEditors/TokenEditor.js +0 -50
- package/dist/playground/components/PropertyEditors/TokenEditor.js.map +0 -1
- package/dist/playground/components/PropertyEditors/index.d.ts +0 -20
- package/dist/playground/components/PropertyEditors/index.d.ts.map +0 -1
- package/dist/playground/components/PropertyEditors/index.js +0 -12
- package/dist/playground/components/PropertyEditors/index.js.map +0 -1
- package/dist/playground/components/TreeView/TreeView.d.ts +0 -10
- package/dist/playground/components/TreeView/TreeView.d.ts.map +0 -1
- package/dist/playground/components/TreeView/TreeView.js +0 -146
- package/dist/playground/components/TreeView/TreeView.js.map +0 -1
- package/dist/playground/components/TreeView/TreeView.module.css +0 -214
- package/dist/playground/components/TreeView/index.d.ts +0 -3
- package/dist/playground/components/TreeView/index.d.ts.map +0 -1
- package/dist/playground/components/TreeView/index.js +0 -2
- package/dist/playground/components/TreeView/index.js.map +0 -1
- package/dist/playground/config/propertyDefinitions.d.ts +0 -73
- package/dist/playground/config/propertyDefinitions.d.ts.map +0 -1
- package/dist/playground/config/propertyDefinitions.js +0 -809
- package/dist/playground/config/propertyDefinitions.js.map +0 -1
- package/dist/playground/hooks/useKeyboardShortcuts.d.ts +0 -38
- package/dist/playground/hooks/useKeyboardShortcuts.d.ts.map +0 -1
- package/dist/playground/hooks/useKeyboardShortcuts.js +0 -191
- package/dist/playground/hooks/useKeyboardShortcuts.js.map +0 -1
- package/dist/playground/index.d.ts +0 -21
- package/dist/playground/index.d.ts.map +0 -1
- package/dist/playground/index.js +0 -23
- package/dist/playground/index.js.map +0 -1
- package/dist/playground/services/CodeGenerator.d.ts +0 -73
- package/dist/playground/services/CodeGenerator.d.ts.map +0 -1
- package/dist/playground/services/CodeGenerator.js +0 -359
- package/dist/playground/services/CodeGenerator.js.map +0 -1
- package/dist/playground/services/DragDropManager.d.ts +0 -95
- package/dist/playground/services/DragDropManager.d.ts.map +0 -1
- package/dist/playground/services/DragDropManager.js +0 -408
- package/dist/playground/services/DragDropManager.js.map +0 -1
- package/dist/playground/services/StoryParser.d.ts +0 -73
- package/dist/playground/services/StoryParser.d.ts.map +0 -1
- package/dist/playground/services/StoryParser.js +0 -419
- package/dist/playground/services/StoryParser.js.map +0 -1
- package/dist/playground/store/playgroundStore.d.ts +0 -86
- package/dist/playground/store/playgroundStore.d.ts.map +0 -1
- package/dist/playground/store/playgroundStore.js +0 -337
- package/dist/playground/store/playgroundStore.js.map +0 -1
- package/dist/playground/stories/PlaygroundDragDrop.stories.d.ts +0 -13
- package/dist/playground/stories/PlaygroundDragDrop.stories.d.ts.map +0 -1
- package/dist/playground/stories/PlaygroundDragDrop.stories.js +0 -227
- package/dist/playground/stories/PlaygroundDragDrop.stories.js.map +0 -1
- package/dist/playground/stories/PlaygroundPhase4.stories.d.ts +0 -13
- package/dist/playground/stories/PlaygroundPhase4.stories.d.ts.map +0 -1
- package/dist/playground/stories/PlaygroundPhase4.stories.js +0 -334
- package/dist/playground/stories/PlaygroundPhase4.stories.js.map +0 -1
- package/dist/playground/stories/PlaygroundPhase5.stories.d.ts +0 -14
- package/dist/playground/stories/PlaygroundPhase5.stories.d.ts.map +0 -1
- package/dist/playground/stories/PlaygroundPhase5.stories.js +0 -512
- package/dist/playground/stories/PlaygroundPhase5.stories.js.map +0 -1
- package/dist/playground/stories/PlaygroundProperties.stories.d.ts +0 -13
- package/dist/playground/stories/PlaygroundProperties.stories.d.ts.map +0 -1
- package/dist/playground/stories/PlaygroundProperties.stories.js +0 -342
- package/dist/playground/stories/PlaygroundProperties.stories.js.map +0 -1
- package/dist/playground/types/index.d.ts +0 -251
- package/dist/playground/types/index.d.ts.map +0 -1
- package/dist/playground/types/index.js +0 -5
- package/dist/playground/types/index.js.map +0 -1
- package/dist/scripts/verify-framework-adapters.js +0 -105
- package/dist/story-generator/componentBlacklist.js.map +0 -1
- package/dist/story-generator/componentDiscovery.js.map +0 -1
- package/dist/story-generator/configLoader.js.map +0 -1
- package/dist/story-generator/considerationsLoader.js.map +0 -1
- package/dist/story-generator/documentation-sources.js.map +0 -1
- package/dist/story-generator/documentationLoader.js.map +0 -1
- package/dist/story-generator/dynamicPackageDiscovery.js.map +0 -1
- package/dist/story-generator/enhancedComponentDiscovery.js.map +0 -1
- package/dist/story-generator/generateStory.js.map +0 -1
- package/dist/story-generator/gitignoreManager.js.map +0 -1
- package/dist/story-generator/inMemoryStoryService.d.ts +0 -89
- package/dist/story-generator/inMemoryStoryService.d.ts.map +0 -1
- package/dist/story-generator/inMemoryStoryService.js +0 -128
- package/dist/story-generator/inMemoryStoryService.js.map +0 -1
- package/dist/story-generator/logger.js.map +0 -1
- package/dist/story-generator/postProcessStory.js.map +0 -1
- package/dist/story-generator/postgresStoryService.d.ts +0 -56
- package/dist/story-generator/postgresStoryService.d.ts.map +0 -1
- package/dist/story-generator/postgresStoryService.js +0 -240
- package/dist/story-generator/productionGitignoreManager.d.ts +0 -91
- package/dist/story-generator/productionGitignoreManager.d.ts.map +0 -1
- package/dist/story-generator/productionGitignoreManager.js +0 -340
- package/dist/story-generator/productionGitignoreManager.js.map +0 -1
- package/dist/story-generator/promptGenerator.js.map +0 -1
- package/dist/story-generator/providerPresets.d.ts +0 -54
- package/dist/story-generator/providerPresets.d.ts.map +0 -1
- package/dist/story-generator/providerPresets.js +0 -214
- package/dist/story-generator/storyHistory.js.map +0 -1
- package/dist/story-generator/storyServiceFactory.d.ts +0 -22
- package/dist/story-generator/storyServiceFactory.d.ts.map +0 -1
- package/dist/story-generator/storyServiceFactory.js +0 -97
- package/dist/story-generator/storyServiceInterface.d.ts +0 -85
- package/dist/story-generator/storyServiceInterface.d.ts.map +0 -1
- package/dist/story-generator/storyServiceInterface.js +0 -5
- package/dist/story-generator/storySync.d.ts +0 -68
- package/dist/story-generator/storySync.d.ts.map +0 -1
- package/dist/story-generator/storySync.js +0 -201
- package/dist/story-generator/storySync.js.map +0 -1
- package/dist/story-generator/storyTracker.js.map +0 -1
- package/dist/story-generator/storyValidator.js.map +0 -1
- package/dist/story-generator/test_validation.d.ts +0 -2
- package/dist/story-generator/test_validation.d.ts.map +0 -1
- package/dist/story-generator/test_validation.js +0 -51
- package/dist/story-generator/universalDesignSystemAdapter.js.map +0 -1
- package/dist/story-generator/urlRedirectService.js.map +0 -1
- package/dist/story-generator/validateStory.js.map +0 -1
- package/dist/story-ui.config.js.map +0 -1
- package/dist/story-ui.config.loader.d.ts +0 -36
- package/dist/story-ui.config.loader.d.ts.map +0 -1
- package/dist/story-ui.config.loader.js +0 -205
- package/dist/story-ui.config.loader.js.map +0 -1
- package/dist/temp/package/templates/StoryUI/StoryUIPanel.js +0 -807
- package/dist/temp/package/templates/StoryUI/StoryUIPanel.stories.js +0 -37
- package/dist/temp/package/templates/StoryUI/index.js +0 -2
- package/dist/templates/StoryUI/StoryUIPanel.js.map +0 -1
- package/dist/templates/StoryUI/StoryUIPanel.stories.js.map +0 -1
- package/dist/templates/StoryUI/index.js.map +0 -1
- package/dist/templates/StoryUI/manager.d.ts +0 -14
- package/dist/templates/StoryUI/manager.d.ts.map +0 -1
- package/dist/templates/production-app/src/App.d.ts +0 -10
- package/dist/templates/production-app/src/App.d.ts.map +0 -1
- package/dist/templates/production-app/src/App.js +0 -653
- package/dist/templates/production-app/src/LivePreviewRenderer.d.ts +0 -24
- package/dist/templates/production-app/src/LivePreviewRenderer.d.ts.map +0 -1
- package/dist/templates/production-app/src/LivePreviewRenderer.js +0 -199
- package/dist/templates/production-app/src/componentRegistry.d.ts +0 -20
- package/dist/templates/production-app/src/componentRegistry.d.ts.map +0 -1
- package/dist/templates/production-app/src/componentRegistry.js +0 -316
- package/dist/templates/production-app/src/main.d.ts +0 -9
- package/dist/templates/production-app/src/main.d.ts.map +0 -1
- package/dist/templates/production-app/src/main.js +0 -18
- package/dist/templates/production-app/vite.config.d.ts +0 -3
- package/dist/templates/production-app/vite.config.d.ts.map +0 -1
- package/dist/templates/production-app/vite.config.js +0 -71
- package/dist/test-storybooks/angular-material-storybook/src/main.js +0 -66
- package/dist/test-storybooks/chakra-storybook/vite.config.js +0 -6
- package/dist/test-storybooks/mantine-storybook/vite.config.js +0 -93
- package/dist/test-storybooks/web-components-shoelace/vite.config.js +0 -9
- package/dist/tsconfig.tsbuildinfo +0 -1
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export { Canvas } from './Canvas';
|
|
2
|
-
export { CanvasWithDnd } from './CanvasWithDnd';
|
|
3
|
-
export { ComponentRenderer } from './ComponentRenderer';
|
|
4
|
-
export { DraggableComponent } from './DraggableComponent';
|
|
5
|
-
export type { CanvasProps } from './Canvas';
|
|
6
|
-
export type { CanvasWithDndProps } from './CanvasWithDnd';
|
|
7
|
-
export type { ComponentRendererProps } from './ComponentRenderer';
|
|
8
|
-
export type { DraggableComponentProps } from './DraggableComponent';
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../playground/components/Canvas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC5C,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,YAAY,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAClE,YAAY,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../playground/components/Canvas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CodeView - Displays generated story code with syntax highlighting
|
|
3
|
-
*/
|
|
4
|
-
import React from 'react';
|
|
5
|
-
export interface CodeViewProps {
|
|
6
|
-
storyName?: string;
|
|
7
|
-
framework?: 'react' | 'vue' | 'angular';
|
|
8
|
-
includeImports?: boolean;
|
|
9
|
-
includeHelpers?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export declare const CodeView: React.FC<CodeViewProps>;
|
|
12
|
-
//# sourceMappingURL=CodeView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CodeView.d.ts","sourceRoot":"","sources":["../../../../playground/components/CodeView/CodeView.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAyC,MAAM,OAAO,CAAC;AAK9D,MAAM,WAAW,aAAa;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,SAAS,CAAC;IACxC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAwJ5C,CAAC"}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* CodeView - Displays generated story code with syntax highlighting
|
|
4
|
-
*/
|
|
5
|
-
import { useMemo, useState, useCallback } from 'react';
|
|
6
|
-
import { usePlaygroundStore } from '../../store/playgroundStore';
|
|
7
|
-
import { CodeGenerator } from '../../services/CodeGenerator';
|
|
8
|
-
import styles from './CodeView.module.css';
|
|
9
|
-
export const CodeView = ({ storyName = 'MyStory', framework = 'react', includeImports = true, includeHelpers = true }) => {
|
|
10
|
-
const { components, rootId } = usePlaygroundStore();
|
|
11
|
-
const [copied, setCopied] = useState(false);
|
|
12
|
-
const [showLineNumbers, setShowLineNumbers] = useState(true);
|
|
13
|
-
// Generate code
|
|
14
|
-
const generatedCode = useMemo(() => {
|
|
15
|
-
try {
|
|
16
|
-
const generator = new CodeGenerator({
|
|
17
|
-
framework,
|
|
18
|
-
includeImports,
|
|
19
|
-
includeHelpers,
|
|
20
|
-
prettier: true,
|
|
21
|
-
indentSize: 2,
|
|
22
|
-
useTypeScript: true
|
|
23
|
-
});
|
|
24
|
-
return generator.generateStoryCode(components, rootId, storyName);
|
|
25
|
-
}
|
|
26
|
-
catch (error) {
|
|
27
|
-
console.error('Code generation error:', error);
|
|
28
|
-
return '// Error generating code\n// ' + error.message;
|
|
29
|
-
}
|
|
30
|
-
}, [components, rootId, storyName, framework, includeImports, includeHelpers]);
|
|
31
|
-
// Copy to clipboard
|
|
32
|
-
const handleCopy = useCallback(() => {
|
|
33
|
-
navigator.clipboard.writeText(generatedCode).then(() => {
|
|
34
|
-
setCopied(true);
|
|
35
|
-
setTimeout(() => setCopied(false), 2000);
|
|
36
|
-
});
|
|
37
|
-
}, [generatedCode]);
|
|
38
|
-
// Export as file
|
|
39
|
-
const handleExport = useCallback(() => {
|
|
40
|
-
const blob = new Blob([generatedCode], { type: 'text/javascript' });
|
|
41
|
-
const url = URL.createObjectURL(blob);
|
|
42
|
-
const a = document.createElement('a');
|
|
43
|
-
a.href = url;
|
|
44
|
-
a.download = `${storyName}.stories.${framework === 'react' ? 'tsx' : 'js'}`;
|
|
45
|
-
document.body.appendChild(a);
|
|
46
|
-
a.click();
|
|
47
|
-
document.body.removeChild(a);
|
|
48
|
-
URL.revokeObjectURL(url);
|
|
49
|
-
}, [generatedCode, storyName, framework]);
|
|
50
|
-
// Add line numbers
|
|
51
|
-
const codeWithLineNumbers = useMemo(() => {
|
|
52
|
-
const lines = generatedCode.split('\n');
|
|
53
|
-
return lines.map((line, index) => {
|
|
54
|
-
const lineNum = (index + 1).toString().padStart(3, ' ');
|
|
55
|
-
return `${lineNum} │ ${line}`;
|
|
56
|
-
}).join('\n');
|
|
57
|
-
}, [generatedCode]);
|
|
58
|
-
// Syntax highlighting (basic)
|
|
59
|
-
const highlightedCode = useMemo(() => {
|
|
60
|
-
let code = showLineNumbers ? codeWithLineNumbers : generatedCode;
|
|
61
|
-
// Keywords
|
|
62
|
-
code = code.replace(/\b(import|export|from|const|let|var|function|return|if|else|for|while|default|interface|type)\b/g, '<span class="keyword">$1</span>');
|
|
63
|
-
// Strings
|
|
64
|
-
code = code.replace(/(["'`])(?:(?=(\\?))\2.)*?\1/g, '<span class="string">$&</span>');
|
|
65
|
-
// Comments
|
|
66
|
-
code = code.replace(/(\/\/.*$|\/\*[\s\S]*?\*\/)/gm, '<span class="comment">$1</span>');
|
|
67
|
-
// JSX tags
|
|
68
|
-
code = code.replace(/(<\/?[A-Z][a-zA-Z]*)(.*?)(\/?>)/g, '<span class="tag">$1</span>$2<span class="tag">$3</span>');
|
|
69
|
-
// Props
|
|
70
|
-
code = code.replace(/\b([a-zA-Z]+)=/g, '<span class="prop">$1</span>=');
|
|
71
|
-
// Numbers
|
|
72
|
-
code = code.replace(/\b(\d+)\b/g, '<span class="number">$1</span>');
|
|
73
|
-
return code;
|
|
74
|
-
}, [generatedCode, codeWithLineNumbers, showLineNumbers]);
|
|
75
|
-
return (_jsxs("div", { className: styles.codeView, children: [_jsxs("div", { className: styles.toolbar, children: [_jsx("div", { className: styles.title, children: "Generated Story Code" }), _jsxs("div", { className: styles.actions, children: [_jsx("button", { className: styles.actionButton, onClick: () => setShowLineNumbers(!showLineNumbers), title: showLineNumbers ? 'Hide line numbers' : 'Show line numbers', children: "#" }), _jsx("button", { className: `${styles.actionButton} ${copied ? styles.copied : ''}`, onClick: handleCopy, title: "Copy to clipboard", children: copied ? '✓' : '📋' }), _jsx("button", { className: styles.actionButton, onClick: handleExport, title: "Export as file", children: "\uD83D\uDCBE" })] })] }), _jsx("div", { className: styles.codeContainer, children: _jsx("pre", { className: styles.code, children: _jsx("code", { dangerouslySetInnerHTML: { __html: highlightedCode } }) }) }), _jsxs("div", { className: styles.footer, children: [_jsxs("span", { className: styles.info, children: [generatedCode.split('\n').length, " lines"] }), _jsxs("span", { className: styles.info, children: [generatedCode.length, " characters"] }), _jsx("span", { className: styles.info, children: framework === 'react' ? 'React/TSX' : framework })] })] }));
|
|
76
|
-
};
|
|
77
|
-
//# sourceMappingURL=CodeView.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CodeView.js","sourceRoot":"","sources":["../../../../playground/components/CodeView/CodeView.tsx"],"names":[],"mappings":";AAAA;;GAEG;AAEH,OAAc,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAS3C,MAAM,CAAC,MAAM,QAAQ,GAA4B,CAAC,EAChD,SAAS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ACE,SAAS,EAAE,GAAG,MAAM,CAAC,YAAY,IAAI,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,EAClE,OAAO,EAAE,UAAU,EACnB,KAAK,EAAC,mBAAmB,YAExB,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,GACb,EACT,iBACE,SAAS,EAAE,MAAM,CAAC,YAAY,EAC9B,OAAO,EAAE,YAAY,EACrB,KAAK,EAAC,gBAAgB,6BAGf,IACL,IACF,EAEN,cAAK,SAAS,EAAE,MAAM,CAAC,aAAa,YAClC,cAAK,SAAS,EAAE,MAAM,CAAC,IAAI,YACzB,eACE,uBAAuB,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,GACpD,GACE,GACF,EAEN,eAAK,SAAS,EAAE,MAAM,CAAC,MAAM,aAC3B,gBAAM,SAAS,EAAE,MAAM,CAAC,IAAI,aACzB,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,cAC5B,EACP,gBAAM,SAAS,EAAE,MAAM,CAAC,IAAI,aACzB,aAAa,CAAC,MAAM,mBAChB,EACP,eAAM,SAAS,EAAE,MAAM,CAAC,IAAI,YACzB,SAAS,KAAK,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,GAC3C,IACH,IACF,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CodeView - Styles for code display with syntax highlighting
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
.codeView {
|
|
6
|
-
display: flex;
|
|
7
|
-
flex-direction: column;
|
|
8
|
-
height: 100%;
|
|
9
|
-
background: #1e1e1e;
|
|
10
|
-
border-radius: 8px;
|
|
11
|
-
overflow: hidden;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.toolbar {
|
|
15
|
-
display: flex;
|
|
16
|
-
justify-content: space-between;
|
|
17
|
-
align-items: center;
|
|
18
|
-
padding: 12px 16px;
|
|
19
|
-
background: #2d2d2d;
|
|
20
|
-
border-bottom: 1px solid #3e3e3e;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.title {
|
|
24
|
-
font-size: 14px;
|
|
25
|
-
font-weight: 600;
|
|
26
|
-
color: #cccccc;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.actions {
|
|
30
|
-
display: flex;
|
|
31
|
-
gap: 8px;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.actionButton {
|
|
35
|
-
padding: 6px 10px;
|
|
36
|
-
background: #3e3e3e;
|
|
37
|
-
border: 1px solid #4e4e4e;
|
|
38
|
-
border-radius: 4px;
|
|
39
|
-
color: #cccccc;
|
|
40
|
-
font-size: 14px;
|
|
41
|
-
cursor: pointer;
|
|
42
|
-
transition: all 0.2s;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.actionButton:hover {
|
|
46
|
-
background: #4e4e4e;
|
|
47
|
-
border-color: #5e5e5e;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.actionButton.copied {
|
|
51
|
-
background: #2ea043;
|
|
52
|
-
border-color: #3fb950;
|
|
53
|
-
color: white;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.codeContainer {
|
|
57
|
-
flex: 1;
|
|
58
|
-
overflow: auto;
|
|
59
|
-
padding: 16px;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.code {
|
|
63
|
-
margin: 0;
|
|
64
|
-
font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
|
|
65
|
-
font-size: 13px;
|
|
66
|
-
line-height: 1.6;
|
|
67
|
-
color: #d4d4d4;
|
|
68
|
-
white-space: pre;
|
|
69
|
-
tab-size: 2;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/* Syntax highlighting classes */
|
|
73
|
-
.code :global(.keyword) {
|
|
74
|
-
color: #569cd6;
|
|
75
|
-
font-weight: 500;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.code :global(.string) {
|
|
79
|
-
color: #ce9178;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.code :global(.comment) {
|
|
83
|
-
color: #6a9955;
|
|
84
|
-
font-style: italic;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.code :global(.tag) {
|
|
88
|
-
color: #4ec9b0;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.code :global(.prop) {
|
|
92
|
-
color: #9cdcfe;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.code :global(.number) {
|
|
96
|
-
color: #b5cea8;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.footer {
|
|
100
|
-
display: flex;
|
|
101
|
-
justify-content: space-between;
|
|
102
|
-
align-items: center;
|
|
103
|
-
padding: 8px 16px;
|
|
104
|
-
background: #2d2d2d;
|
|
105
|
-
border-top: 1px solid #3e3e3e;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.info {
|
|
109
|
-
font-size: 12px;
|
|
110
|
-
color: #858585;
|
|
111
|
-
margin-right: 16px;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.info:last-child {
|
|
115
|
-
margin-right: 0;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/* Light theme support */
|
|
119
|
-
.codeView.light {
|
|
120
|
-
background: #ffffff;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.codeView.light .toolbar {
|
|
124
|
-
background: #f6f8fa;
|
|
125
|
-
border-bottom-color: #d1d5da;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.codeView.light .title {
|
|
129
|
-
color: #24292e;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.codeView.light .actionButton {
|
|
133
|
-
background: #ffffff;
|
|
134
|
-
border-color: #d1d5da;
|
|
135
|
-
color: #24292e;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.codeView.light .actionButton:hover {
|
|
139
|
-
background: #f6f8fa;
|
|
140
|
-
border-color: #c8c8c8;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
.codeView.light .code {
|
|
144
|
-
color: #24292e;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.codeView.light .code :global(.keyword) {
|
|
148
|
-
color: #d73a49;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.codeView.light .code :global(.string) {
|
|
152
|
-
color: #032f62;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.codeView.light .code :global(.comment) {
|
|
156
|
-
color: #6a737d;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.codeView.light .code :global(.tag) {
|
|
160
|
-
color: #22863a;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.codeView.light .code :global(.prop) {
|
|
164
|
-
color: #005cc5;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
.codeView.light .code :global(.number) {
|
|
168
|
-
color: #005cc5;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.codeView.light .footer {
|
|
172
|
-
background: #f6f8fa;
|
|
173
|
-
border-top-color: #d1d5da;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.codeView.light .info {
|
|
177
|
-
color: #586069;
|
|
178
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ComponentPalette - Draggable component library
|
|
3
|
-
*/
|
|
4
|
-
import React from 'react';
|
|
5
|
-
export interface PaletteItem {
|
|
6
|
-
type: string;
|
|
7
|
-
category: string;
|
|
8
|
-
label: string;
|
|
9
|
-
icon?: string;
|
|
10
|
-
description?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface ComponentPaletteProps {
|
|
13
|
-
searchQuery?: string;
|
|
14
|
-
onItemSelect?: (item: PaletteItem) => void;
|
|
15
|
-
}
|
|
16
|
-
export declare const ComponentPalette: React.FC<ComponentPaletteProps>;
|
|
17
|
-
//# sourceMappingURL=ComponentPalette.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ComponentPalette.d.ts","sourceRoot":"","sources":["../../../../playground/components/ComponentPalette/ComponentPalette.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAA4B,MAAM,OAAO,CAAC;AAIjD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAyGD,MAAM,WAAW,qBAAqB;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;CAC5C;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAmJ5D,CAAC"}
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* ComponentPalette - Draggable component library
|
|
4
|
-
*/
|
|
5
|
-
import { useState, useMemo } from 'react';
|
|
6
|
-
import { useDraggable } from '@dnd-kit/core';
|
|
7
|
-
import styles from './ComponentPalette.module.css';
|
|
8
|
-
// Enhanced component palette with real Ant Design components
|
|
9
|
-
const PALETTE_ITEMS = [
|
|
10
|
-
// Layout Components (Helpers)
|
|
11
|
-
{ type: 'Box', category: 'Layout', label: 'Box', description: 'Flexible container', icon: '📦' },
|
|
12
|
-
{ type: 'Stack', category: 'Layout', label: 'Stack', description: 'Vertical stack', icon: '📚' },
|
|
13
|
-
{ type: 'HStack', category: 'Layout', label: 'HStack', description: 'Horizontal stack', icon: '🔗' },
|
|
14
|
-
{ type: 'Grid', category: 'Layout', label: 'Grid', description: 'Grid layout', icon: '⚏' },
|
|
15
|
-
{ type: 'Container', category: 'Layout', label: 'Container', description: 'Centered container', icon: '🔲' },
|
|
16
|
-
{ type: 'Flex', category: 'Layout', label: 'Flex', description: 'Flexbox container', icon: '↔️' },
|
|
17
|
-
{ type: 'Center', category: 'Layout', label: 'Center', description: 'Centers content', icon: '⊡' },
|
|
18
|
-
{ type: 'Spacer', category: 'Layout', label: 'Spacer', description: 'Creates space', icon: '↕️' },
|
|
19
|
-
{ type: 'Divider', category: 'Layout', label: 'Divider', description: 'Visual separator', icon: '─' },
|
|
20
|
-
{ type: 'Row', category: 'Layout', label: 'Row', description: 'Ant Design grid row', icon: '⬌' },
|
|
21
|
-
{ type: 'Col', category: 'Layout', label: 'Col', description: 'Ant Design grid column', icon: '⬍' },
|
|
22
|
-
{ type: 'Space', category: 'Layout', label: 'Space', description: 'Ant Design spacing', icon: '↔️' },
|
|
23
|
-
// Ant Design Form Components
|
|
24
|
-
{ type: 'Button', category: 'Form', label: 'Button', description: 'Ant Design button', icon: '🔘' },
|
|
25
|
-
{ type: 'Input', category: 'Form', label: 'Input', description: 'Ant Design text input', icon: '📝' },
|
|
26
|
-
{ type: 'Select', category: 'Form', label: 'Select', description: 'Ant Design selector', icon: '📋' },
|
|
27
|
-
{ type: 'Checkbox', category: 'Form', label: 'Checkbox', description: 'Ant Design checkbox', icon: '☑️' },
|
|
28
|
-
{ type: 'Radio', category: 'Form', label: 'Radio', description: 'Ant Design radio', icon: '🔘' },
|
|
29
|
-
{ type: 'Switch', category: 'Form', label: 'Switch', description: 'Ant Design toggle switch', icon: '🔀' },
|
|
30
|
-
{ type: 'Slider', category: 'Form', label: 'Slider', description: 'Ant Design range slider', icon: '🎚️' },
|
|
31
|
-
{ type: 'DatePicker', category: 'Form', label: 'Date Picker', description: 'Ant Design date picker', icon: '📅' },
|
|
32
|
-
{ type: 'TimePicker', category: 'Form', label: 'Time Picker', description: 'Ant Design time picker', icon: '🕐' },
|
|
33
|
-
{ type: 'Upload', category: 'Form', label: 'Upload', description: 'Ant Design file upload', icon: '📁' },
|
|
34
|
-
{ type: 'Rate', category: 'Form', label: 'Rate', description: 'Ant Design rating', icon: '⭐' },
|
|
35
|
-
// Ant Design Display Components
|
|
36
|
-
{ type: 'Typography', category: 'Display', label: 'Typography', description: 'Ant Design text', icon: '📄' },
|
|
37
|
-
{ type: 'Title', category: 'Display', label: 'Title', description: 'Ant Design heading', icon: '📋' },
|
|
38
|
-
{ type: 'Text', category: 'Display', label: 'Text', description: 'Ant Design text content', icon: '📝' },
|
|
39
|
-
{ type: 'Paragraph', category: 'Display', label: 'Paragraph', description: 'Ant Design paragraph', icon: '📄' },
|
|
40
|
-
{ type: 'Image', category: 'Display', label: 'Image', description: 'Ant Design image', icon: '🖼️' },
|
|
41
|
-
{ type: 'Card', category: 'Display', label: 'Card', description: 'Ant Design content card', icon: '🃏' },
|
|
42
|
-
{ type: 'Badge', category: 'Display', label: 'Badge', description: 'Ant Design status badge', icon: '🏷️' },
|
|
43
|
-
{ type: 'Tag', category: 'Display', label: 'Tag', description: 'Ant Design tag component', icon: '🏷️' },
|
|
44
|
-
{ type: 'Alert', category: 'Display', label: 'Alert', description: 'Ant Design alert message', icon: '⚠️' },
|
|
45
|
-
{ type: 'Tooltip', category: 'Display', label: 'Tooltip', description: 'Ant Design tooltip', icon: '💬' },
|
|
46
|
-
{ type: 'Popover', category: 'Display', label: 'Popover', description: 'Ant Design popover', icon: '💭' },
|
|
47
|
-
{ type: 'Progress', category: 'Display', label: 'Progress', description: 'Ant Design progress bar', icon: '📊' },
|
|
48
|
-
{ type: 'Spin', category: 'Display', label: 'Spin', description: 'Ant Design loading spinner', icon: '🔄' },
|
|
49
|
-
{ type: 'Skeleton', category: 'Display', label: 'Skeleton', description: 'Ant Design skeleton loading', icon: '⬜' },
|
|
50
|
-
// Ant Design Data Components
|
|
51
|
-
{ type: 'Table', category: 'Data', label: 'Table', description: 'Ant Design data table', icon: '📊' },
|
|
52
|
-
{ type: 'List', category: 'Data', label: 'List', description: 'Ant Design list container', icon: '📝' },
|
|
53
|
-
{ type: 'Avatar', category: 'Data', label: 'Avatar', description: 'Ant Design user avatar', icon: '👤' },
|
|
54
|
-
{ type: 'Calendar', category: 'Data', label: 'Calendar', description: 'Ant Design calendar', icon: '📅' },
|
|
55
|
-
{ type: 'Tree', category: 'Data', label: 'Tree', description: 'Ant Design tree view', icon: '🌳' },
|
|
56
|
-
{ type: 'Descriptions', category: 'Data', label: 'Descriptions', description: 'Ant Design description list', icon: '📋' },
|
|
57
|
-
{ type: 'Statistic', category: 'Data', label: 'Statistic', description: 'Ant Design statistic display', icon: '📈' },
|
|
58
|
-
// Ant Design Navigation Components
|
|
59
|
-
{ type: 'Menu', category: 'Navigation', label: 'Menu', description: 'Ant Design navigation menu', icon: '📋' },
|
|
60
|
-
{ type: 'Breadcrumb', category: 'Navigation', label: 'Breadcrumb', description: 'Ant Design breadcrumb', icon: '🔗' },
|
|
61
|
-
{ type: 'Pagination', category: 'Navigation', label: 'Pagination', description: 'Ant Design pagination', icon: '📄' },
|
|
62
|
-
{ type: 'Steps', category: 'Navigation', label: 'Steps', description: 'Ant Design step indicator', icon: '👣' },
|
|
63
|
-
{ type: 'Tabs', category: 'Navigation', label: 'Tabs', description: 'Ant Design tab container', icon: '🗂️' },
|
|
64
|
-
{ type: 'Dropdown', category: 'Navigation', label: 'Dropdown', description: 'Ant Design dropdown menu', icon: '⬇️' },
|
|
65
|
-
// Ant Design Feedback Components
|
|
66
|
-
{ type: 'Modal', category: 'Feedback', label: 'Modal', description: 'Ant Design modal dialog', icon: '🪟' },
|
|
67
|
-
{ type: 'Drawer', category: 'Feedback', label: 'Drawer', description: 'Ant Design side drawer', icon: '📂' },
|
|
68
|
-
{ type: 'Popconfirm', category: 'Feedback', label: 'Popconfirm', description: 'Ant Design confirmation popup', icon: '❓' },
|
|
69
|
-
{ type: 'notification', category: 'Feedback', label: 'Notification', description: 'Ant Design notification', icon: '🔔' },
|
|
70
|
-
{ type: 'message', category: 'Feedback', label: 'Message', description: 'Ant Design message', icon: '💬' },
|
|
71
|
-
{ type: 'Result', category: 'Feedback', label: 'Result', description: 'Ant Design result page', icon: '✅' },
|
|
72
|
-
{ type: 'Empty', category: 'Feedback', label: 'Empty', description: 'Ant Design empty state', icon: '📭' },
|
|
73
|
-
];
|
|
74
|
-
const DraggableItem = ({ item }) => {
|
|
75
|
-
const { attributes, listeners, setNodeRef, isDragging } = useDraggable({
|
|
76
|
-
id: `palette-${item.type}`,
|
|
77
|
-
data: {
|
|
78
|
-
type: 'component',
|
|
79
|
-
componentType: item.type
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
return (_jsxs("div", { ref: setNodeRef, className: `${styles.paletteItem} ${isDragging ? styles.dragging : ''}`, ...listeners, ...attributes, children: [_jsx("div", { className: styles.itemIcon, children: item.icon || item.label[0] }), _jsx("div", { className: styles.itemLabel, children: item.label }), item.description && (_jsx("div", { className: styles.itemDescription, children: item.description }))] }));
|
|
83
|
-
};
|
|
84
|
-
export const ComponentPalette = ({ searchQuery: externalSearchQuery = '', onItemSelect }) => {
|
|
85
|
-
const [selectedCategory, setSelectedCategory] = useState('all');
|
|
86
|
-
const [expandedCategories, setExpandedCategories] = useState(new Set(['Layout', 'Form', 'Display', 'Data', 'Navigation', 'Feedback']));
|
|
87
|
-
const [internalSearchQuery, setInternalSearchQuery] = useState('');
|
|
88
|
-
// Use external search query if provided, otherwise use internal
|
|
89
|
-
const searchQuery = externalSearchQuery || internalSearchQuery;
|
|
90
|
-
const categories = useMemo(() => {
|
|
91
|
-
const cats = new Set();
|
|
92
|
-
PALETTE_ITEMS.forEach(item => cats.add(item.category));
|
|
93
|
-
return Array.from(cats);
|
|
94
|
-
}, []);
|
|
95
|
-
const filteredItems = useMemo(() => {
|
|
96
|
-
let items = PALETTE_ITEMS;
|
|
97
|
-
// Filter by search query
|
|
98
|
-
if (searchQuery) {
|
|
99
|
-
const query = searchQuery.toLowerCase();
|
|
100
|
-
items = items.filter(item => item.label.toLowerCase().includes(query) ||
|
|
101
|
-
item.type.toLowerCase().includes(query) ||
|
|
102
|
-
item.description?.toLowerCase().includes(query));
|
|
103
|
-
}
|
|
104
|
-
// Filter by category
|
|
105
|
-
if (selectedCategory !== 'all') {
|
|
106
|
-
items = items.filter(item => item.category === selectedCategory);
|
|
107
|
-
}
|
|
108
|
-
return items;
|
|
109
|
-
}, [searchQuery, selectedCategory]);
|
|
110
|
-
const itemsByCategory = useMemo(() => {
|
|
111
|
-
const grouped = {};
|
|
112
|
-
filteredItems.forEach(item => {
|
|
113
|
-
if (!grouped[item.category]) {
|
|
114
|
-
grouped[item.category] = [];
|
|
115
|
-
}
|
|
116
|
-
grouped[item.category].push(item);
|
|
117
|
-
});
|
|
118
|
-
return grouped;
|
|
119
|
-
}, [filteredItems]);
|
|
120
|
-
const toggleCategory = (category) => {
|
|
121
|
-
setExpandedCategories(prev => {
|
|
122
|
-
const next = new Set(prev);
|
|
123
|
-
if (next.has(category)) {
|
|
124
|
-
next.delete(category);
|
|
125
|
-
}
|
|
126
|
-
else {
|
|
127
|
-
next.add(category);
|
|
128
|
-
}
|
|
129
|
-
return next;
|
|
130
|
-
});
|
|
131
|
-
};
|
|
132
|
-
return (_jsxs("div", { className: styles.palette, children: [_jsxs("div", { className: styles.searchBox, children: [_jsx("input", { type: "text", className: styles.searchInput, placeholder: "Search components...", value: internalSearchQuery, onChange: (e) => setInternalSearchQuery(e.target.value) }), internalSearchQuery && (_jsx("button", { className: styles.clearButton, onClick: () => setInternalSearchQuery(''), title: "Clear search", children: "\u2715" }))] }), _jsxs("div", { className: styles.categoryTabs, children: [_jsx("button", { className: `${styles.categoryTab} ${selectedCategory === 'all' ? styles.active : ''}`, onClick: () => setSelectedCategory('all'), children: "All" }), categories.map(cat => (_jsx("button", { className: `${styles.categoryTab} ${selectedCategory === cat ? styles.active : ''}`, onClick: () => setSelectedCategory(cat), children: cat }, cat)))] }), _jsx("div", { className: styles.componentList, children: filteredItems.length === 0 ? (_jsxs("div", { className: styles.emptyState, children: [_jsx("p", { children: "No components found" }), searchQuery && (_jsx("p", { children: "Try adjusting your search term" }))] })) : selectedCategory === 'all' ? (
|
|
133
|
-
// Show categorized view
|
|
134
|
-
Object.entries(itemsByCategory).map(([category, items]) => (_jsxs("div", { className: styles.categorySection, children: [_jsxs("button", { className: styles.categoryHeader, onClick: () => toggleCategory(category), children: [_jsx("span", { className: styles.categoryArrow, children: expandedCategories.has(category) ? '▼' : '▶' }), category, _jsx("span", { className: styles.categoryCount, children: items.length })] }), expandedCategories.has(category) && (_jsx("div", { className: styles.categoryItems, children: items.map(item => (_jsx(DraggableItem, { item: item }, item.type))) }))] }, category)))) : (
|
|
135
|
-
// Show flat view for single category
|
|
136
|
-
_jsx("div", { className: styles.categoryItems, children: filteredItems.map(item => (_jsx(DraggableItem, { item: item }, item.type))) })) })] }));
|
|
137
|
-
};
|
|
138
|
-
//# sourceMappingURL=ComponentPalette.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ComponentPalette.js","sourceRoot":"","sources":["../../../../playground/components/ComponentPalette/ComponentPalette.tsx"],"names":[],"mappings":";AAAA;;GAEG;AAEH,OAAc,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,MAAM,MAAM,+BAA+B,CAAC;AAUnD,6DAA6D;AAC7D,MAAM,aAAa,GAAkB;IACnC,8BAA8B;IAC9B,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,oBAAoB,EAAE,IAAI,EAAE,IAAI,EAAE;IAChG,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,IAAI,EAAE,IAAI,EAAE;IAChG,EAAE,IAAI,EAAE,Q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