@parhelia/core 0.1.12554 → 0.1.12555
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/agents-view/AgentCard.d.ts +4 -6
- package/dist/agents-view/AgentCard.js +24 -143
- package/dist/agents-view/AgentCard.js.map +1 -1
- package/dist/agents-view/AgentsInbox.d.ts +1 -1
- package/dist/agents-view/AgentsInbox.js +92 -7
- package/dist/agents-view/AgentsInbox.js.map +1 -1
- package/dist/agents-view/AgentsTitlebar.js +2 -3
- package/dist/agents-view/AgentsTitlebar.js.map +1 -1
- package/dist/agents-view/AgentsView.d.ts +7 -6
- package/dist/agents-view/AgentsView.js +98 -187
- package/dist/agents-view/AgentsView.js.map +1 -1
- package/dist/agents-view/AgentsWorkspaceView.d.ts +6 -2
- package/dist/agents-view/AgentsWorkspaceView.js +113 -266
- package/dist/agents-view/AgentsWorkspaceView.js.map +1 -1
- package/dist/agents-view/ProfileAgentsGroup.d.ts +1 -2
- package/dist/agents-view/ProfileAgentsGroup.js +3 -4
- package/dist/agents-view/ProfileAgentsGroup.js.map +1 -1
- package/dist/components/ActionButton.d.ts +1 -1
- package/dist/components/ActionButton.js.map +1 -1
- package/dist/components/FilterInput.d.ts +1 -1
- package/dist/components/FilterInput.js +1 -1
- package/dist/components/FilterInput.js.map +1 -1
- package/dist/components/ui/LanguageSelector.js +4 -2
- package/dist/components/ui/LanguageSelector.js.map +1 -1
- package/dist/components/ui/PlaceholderInput.js +3 -3
- package/dist/components/ui/PlaceholderInput.js.map +1 -1
- package/dist/components/ui/PlaceholderInputTypes.js +1 -1
- package/dist/components/ui/PlaceholderInputTypes.js.map +1 -1
- package/dist/components/ui/alert-dialog.d.ts +1 -1
- package/dist/components/ui/alert-dialog.js +10 -6
- package/dist/components/ui/alert-dialog.js.map +1 -1
- package/dist/components/ui/button.d.ts +4 -4
- package/dist/components/ui/button.js +1 -4
- package/dist/components/ui/button.js.map +1 -1
- package/dist/components/ui/context-menu.d.ts +1 -1
- package/dist/components/ui/context-menu.js +4 -12
- package/dist/components/ui/context-menu.js.map +1 -1
- package/dist/components/ui/copy-button.d.ts +1 -2
- package/dist/components/ui/copy-button.js +2 -2
- package/dist/components/ui/copy-button.js.map +1 -1
- package/dist/components/ui/dialog.d.ts +1 -1
- package/dist/components/ui/dialog.js +126 -21
- package/dist/components/ui/dialog.js.map +1 -1
- package/dist/components/ui/input.d.ts +1 -1
- package/dist/components/ui/input.js +3 -5
- package/dist/components/ui/input.js.map +1 -1
- package/dist/components/ui/paste-button.d.ts +1 -2
- package/dist/components/ui/paste-button.js +2 -2
- package/dist/components/ui/paste-button.js.map +1 -1
- package/dist/components/ui/popover.js +9 -1
- package/dist/components/ui/popover.js.map +1 -1
- package/dist/components/ui/select.js +1 -1
- package/dist/components/ui/select.js.map +1 -1
- package/dist/components/ui/styled-dialog-title.js +1 -1
- package/dist/components/ui/styled-dialog-title.js.map +1 -1
- package/dist/components/ui/tabs.d.ts +1 -1
- package/dist/components/ui/tabs.js +11 -4
- package/dist/components/ui/tabs.js.map +1 -1
- package/dist/config/config.d.ts +2 -4
- package/dist/config/config.js +70 -250
- package/dist/config/config.js.map +1 -1
- package/dist/config/types/workspace.d.ts +0 -6
- package/dist/config/types.d.ts +12 -63
- package/dist/config/types.js.map +1 -1
- package/dist/editor/ComponentInfo.d.ts +4 -0
- package/dist/editor/ComponentInfo.js +41 -0
- package/dist/editor/ComponentInfo.js.map +1 -0
- package/dist/editor/ConfirmationDialog.js +4 -20
- package/dist/editor/ConfirmationDialog.js.map +1 -1
- package/dist/editor/ContentTree.d.ts +1 -2
- package/dist/editor/ContentTree.js +32 -93
- package/dist/editor/ContentTree.js.map +1 -1
- package/dist/editor/Editor.js +22 -87
- package/dist/editor/Editor.js.map +1 -1
- package/dist/editor/FieldHistory.js +36 -84
- package/dist/editor/FieldHistory.js.map +1 -1
- package/dist/editor/FieldListField.js +9 -21
- package/dist/editor/FieldListField.js.map +1 -1
- package/dist/editor/FieldListFieldWithFallbacks.js +2 -23
- package/dist/editor/FieldListFieldWithFallbacks.js.map +1 -1
- package/dist/editor/GlobalMenuBar.js +2 -29
- package/dist/editor/GlobalMenuBar.js.map +1 -1
- package/dist/editor/ImageEditor.js +2 -5
- package/dist/editor/ImageEditor.js.map +1 -1
- package/dist/editor/ItemInfo.js +1 -36
- package/dist/editor/ItemInfo.js.map +1 -1
- package/dist/editor/LinkEditorDialog.js +0 -3
- package/dist/editor/LinkEditorDialog.js.map +1 -1
- package/dist/editor/MainLayout.d.ts +2 -0
- package/dist/editor/MainLayout.js +8 -65
- package/dist/editor/MainLayout.js.map +1 -1
- package/dist/editor/MigrationsView.js +5 -29
- package/dist/editor/MigrationsView.js.map +1 -1
- package/dist/editor/MobileLayout.js +12 -37
- package/dist/editor/MobileLayout.js.map +1 -1
- package/dist/editor/PictureCropper.js +45 -54
- package/dist/editor/PictureCropper.js.map +1 -1
- package/dist/editor/PictureEditor.js +15 -17
- package/dist/editor/PictureEditor.js.map +1 -1
- package/dist/editor/QuickItemSwitcher.js +21 -21
- package/dist/editor/QuickItemSwitcher.js.map +1 -1
- package/dist/editor/SetupWizard.js +12 -52
- package/dist/editor/SetupWizard.js.map +1 -1
- package/dist/editor/Titlebar.js +2 -7
- package/dist/editor/Titlebar.js.map +1 -1
- package/dist/editor/ai/AgentCostDisplay.d.ts +0 -1
- package/dist/editor/ai/AgentCostDisplay.js +1 -1
- package/dist/editor/ai/AgentCostDisplay.js.map +1 -1
- package/dist/editor/ai/AgentDocumentList.js +14 -32
- package/dist/editor/ai/AgentDocumentList.js.map +1 -1
- package/dist/editor/ai/AgentGreeting.js +2 -3
- package/dist/editor/ai/AgentGreeting.js.map +1 -1
- package/dist/editor/ai/AgentProfileSelector.js +1 -2
- package/dist/editor/ai/AgentProfileSelector.js.map +1 -1
- package/dist/editor/ai/AgentStatusBadge.d.ts +5 -0
- package/dist/editor/ai/AgentStatusBadge.js +65 -67
- package/dist/editor/ai/AgentStatusBadge.js.map +1 -1
- package/dist/editor/ai/AgentTerminal.d.ts +2 -14
- package/dist/editor/ai/AgentTerminal.js +483 -2377
- package/dist/editor/ai/AgentTerminal.js.map +1 -1
- package/dist/editor/ai/AgentTerminalStatusBar.d.ts +3 -8
- package/dist/editor/ai/AgentTerminalStatusBar.js +56 -460
- package/dist/editor/ai/AgentTerminalStatusBar.js.map +1 -1
- package/dist/editor/ai/Agents.js +113 -150
- package/dist/editor/ai/Agents.js.map +1 -1
- package/dist/editor/ai/AiResponseMessage.d.ts +1 -10
- package/dist/editor/ai/AiResponseMessage.js +23 -238
- package/dist/editor/ai/AiResponseMessage.js.map +1 -1
- package/dist/editor/ai/ContextInfoBar.d.ts +3 -2
- package/dist/editor/ai/ContextInfoBar.js +7 -64
- package/dist/editor/ai/ContextInfoBar.js.map +1 -1
- package/dist/editor/ai/GuidanceOverlay.js +11 -17
- package/dist/editor/ai/GuidanceOverlay.js.map +1 -1
- package/dist/editor/ai/HelpTerminal.d.ts +5 -0
- package/dist/editor/ai/HelpTerminal.js +166 -0
- package/dist/editor/ai/HelpTerminal.js.map +1 -0
- package/dist/editor/ai/InlineAiDialog.d.ts +1 -1
- package/dist/editor/ai/InlineAiDialog.js +192 -514
- package/dist/editor/ai/InlineAiDialog.js.map +1 -1
- package/dist/editor/ai/InlineAiTrigger.js +12 -115
- package/dist/editor/ai/InlineAiTrigger.js.map +1 -1
- package/dist/editor/ai/MediaImage.js +8 -40
- package/dist/editor/ai/MediaImage.js.map +1 -1
- package/dist/editor/ai/SpawnedAgentsPanel.js +12 -10
- package/dist/editor/ai/SpawnedAgentsPanel.js.map +1 -1
- package/dist/editor/ai/ToolCallDisplay.d.ts +2 -22
- package/dist/editor/ai/ToolCallDisplay.js +147 -518
- package/dist/editor/ai/ToolCallDisplay.js.map +1 -1
- package/dist/editor/ai/dialogs/AgentDialogHandler.d.ts +8 -1
- package/dist/editor/ai/dialogs/AgentDialogHandler.js +42 -379
- package/dist/editor/ai/dialogs/AgentDialogHandler.js.map +1 -1
- package/dist/editor/ai/dialogs/QuestionnaireInline.d.ts +1 -5
- package/dist/editor/ai/dialogs/QuestionnaireInline.js +60 -628
- package/dist/editor/ai/dialogs/QuestionnaireInline.js.map +1 -1
- package/dist/editor/ai/dialogs/agentDialogTypes.d.ts +0 -115
- package/dist/editor/ai/dialogs/agentDialogTypes.js +0 -2
- package/dist/editor/ai/dialogs/agentDialogTypes.js.map +1 -1
- package/dist/editor/ai/types.d.ts +1 -3
- package/dist/editor/ai/useAgentStatus.d.ts +1 -2
- package/dist/editor/ai/useAgentStatus.js +99 -86
- package/dist/editor/ai/useAgentStatus.js.map +1 -1
- package/dist/editor/ai/useInlineAiPosition.js +5 -45
- package/dist/editor/ai/useInlineAiPosition.js.map +1 -1
- package/dist/editor/client/AboutDialog.js +2 -4
- package/dist/editor/client/AboutDialog.js.map +1 -1
- package/dist/editor/client/EditorShell.d.ts +1 -4
- package/dist/editor/client/EditorShell.js +230 -730
- package/dist/editor/client/EditorShell.js.map +1 -1
- package/dist/editor/client/editContext.d.ts +19 -33
- package/dist/editor/client/editContext.js.map +1 -1
- package/dist/editor/client/helpers.js +0 -6
- package/dist/editor/client/helpers.js.map +1 -1
- package/dist/editor/client/hooks/useEditorUrlSync.js +2 -1
- package/dist/editor/client/hooks/useEditorUrlSync.js.map +1 -1
- package/dist/editor/client/hooks/useEditorWebSocket.d.ts +0 -10
- package/dist/editor/client/hooks/useEditorWebSocket.js +14 -209
- package/dist/editor/client/hooks/useEditorWebSocket.js.map +1 -1
- package/dist/editor/client/hooks/useQuota.d.ts +0 -8
- package/dist/editor/client/hooks/useQuota.js.map +1 -1
- package/dist/editor/client/hooks/useSocketMessageHandler.js +7 -68
- package/dist/editor/client/hooks/useSocketMessageHandler.js.map +1 -1
- package/dist/editor/client/itemsRepository.js +6 -10
- package/dist/editor/client/itemsRepository.js.map +1 -1
- package/dist/editor/client/operations.d.ts +3 -6
- package/dist/editor/client/operations.js +30 -208
- package/dist/editor/client/operations.js.map +1 -1
- package/dist/editor/client/pageModelBuilder.js +31 -4
- package/dist/editor/client/pageModelBuilder.js.map +1 -1
- package/dist/editor/client/ui/DevModeIndicator.js +2 -2
- package/dist/editor/client/ui/DevModeIndicator.js.map +1 -1
- package/dist/editor/client/ui/EditorChrome.d.ts +6 -0
- package/dist/editor/client/ui/EditorChrome.js +72 -55
- package/dist/editor/client/ui/EditorChrome.js.map +1 -1
- package/dist/editor/client/ui/FullscreenControls.js +3 -5
- package/dist/editor/client/ui/FullscreenControls.js.map +1 -1
- package/dist/editor/commands/commands.d.ts +1 -11
- package/dist/editor/commands/commands.js +1 -12
- package/dist/editor/commands/commands.js.map +1 -1
- package/dist/editor/commands/componentCommands.js +55 -109
- package/dist/editor/commands/componentCommands.js.map +1 -1
- package/dist/editor/commands/customCommandConverter.d.ts +1 -8
- package/dist/editor/commands/customCommandConverter.js +5 -35
- package/dist/editor/commands/customCommandConverter.js.map +1 -1
- package/dist/editor/commands/handlers/agentHandler.js +1 -2
- package/dist/editor/commands/handlers/agentHandler.js.map +1 -1
- package/dist/editor/commands/itemCommands.d.ts +0 -3
- package/dist/editor/commands/itemCommands.js +10 -93
- package/dist/editor/commands/itemCommands.js.map +1 -1
- package/dist/editor/commands/undo.d.ts +15 -9
- package/dist/editor/commands/undo.js +0 -24
- package/dist/editor/commands/undo.js.map +1 -1
- package/dist/editor/context-menu/InsertMenu.js +39 -83
- package/dist/editor/context-menu/InsertMenu.js.map +1 -1
- package/dist/editor/field-types/MultiLineText.js +1 -1
- package/dist/editor/field-types/MultiLineText.js.map +1 -1
- package/dist/editor/field-types/RawEditor.js +1 -1
- package/dist/editor/field-types/ReactQuill.d.ts +125 -0
- package/dist/editor/field-types/ReactQuill.js +385 -0
- package/dist/editor/field-types/ReactQuill.js.map +1 -0
- package/dist/editor/field-types/RichTextEditor.js +5 -13
- package/dist/editor/field-types/RichTextEditor.js.map +1 -1
- package/dist/editor/field-types/RichTextEditorComponent.js +3 -37
- package/dist/editor/field-types/RichTextEditorComponent.js.map +1 -1
- package/dist/editor/field-types/SingleLineText.js +1 -1
- package/dist/editor/field-types/TreeListEditor.js +2 -3
- package/dist/editor/field-types/TreeListEditor.js.map +1 -1
- package/dist/editor/field-types/richtext/components/ReactSlate.css +5 -23
- package/dist/editor/field-types/richtext/components/ReactSlate.d.ts +0 -2
- package/dist/editor/field-types/richtext/components/ReactSlate.js +4 -28
- package/dist/editor/field-types/richtext/components/ReactSlate.js.map +1 -1
- package/dist/editor/field-types/richtext/components/ToolbarButton.js +2 -4
- package/dist/editor/field-types/richtext/components/ToolbarButton.js.map +1 -1
- package/dist/editor/field-types/richtext/contextMenuFactory.d.ts +0 -13
- package/dist/editor/field-types/richtext/contextMenuFactory.js +24 -181
- package/dist/editor/field-types/richtext/contextMenuFactory.js.map +1 -1
- package/dist/editor/field-types/richtext/types.d.ts +0 -2
- package/dist/editor/field-types/richtext/types.js.map +1 -1
- package/dist/editor/field-types/richtext/utils/plugins.js +0 -4
- package/dist/editor/field-types/richtext/utils/plugins.js.map +1 -1
- package/dist/editor/field-types/textContextMenuFactory.js +2 -3
- package/dist/editor/field-types/textContextMenuFactory.js.map +1 -1
- package/dist/editor/media-selector/AiImageSearchPrompt.js +2 -4
- package/dist/editor/media-selector/AiImageSearchPrompt.js.map +1 -1
- package/dist/editor/media-selector/MediaFolderBrowser.js +1 -1
- package/dist/editor/media-selector/MediaFolderBrowser.js.map +1 -1
- package/dist/editor/media-selector/MediaSelector.js +1 -7
- package/dist/editor/media-selector/MediaSelector.js.map +1 -1
- package/dist/editor/media-selector/TreeSelector.js +35 -40
- package/dist/editor/media-selector/TreeSelector.js.map +1 -1
- package/dist/editor/menubar/ActiveUsers.js +1 -1
- package/dist/editor/menubar/ActiveUsers.js.map +1 -1
- package/dist/editor/menubar/GenericToolbar.js +2 -4
- package/dist/editor/menubar/GenericToolbar.js.map +1 -1
- package/dist/editor/menubar/ItemLanguageVersion.js +2 -2
- package/dist/editor/menubar/ItemLanguageVersion.js.map +1 -1
- package/dist/editor/menubar/PageSelector.js +147 -26
- package/dist/editor/menubar/PageSelector.js.map +1 -1
- package/dist/editor/menubar/Separator.js +1 -1
- package/dist/editor/menubar/VersionSelector.js +4 -2
- package/dist/editor/menubar/VersionSelector.js.map +1 -1
- package/dist/editor/menubar/WorkflowButton.js +12 -39
- package/dist/editor/menubar/WorkflowButton.js.map +1 -1
- package/dist/editor/menubar/toolbar-sections/CustomCommandsToolbar.js +38 -16
- package/dist/editor/menubar/toolbar-sections/CustomCommandsToolbar.js.map +1 -1
- package/dist/editor/menubar/toolbar-sections/EditControls.js +3 -3
- package/dist/editor/menubar/toolbar-sections/EditControls.js.map +1 -1
- package/dist/editor/menubar/toolbar-sections/HelpButton.js +0 -1
- package/dist/editor/menubar/toolbar-sections/HelpButton.js.map +1 -1
- package/dist/editor/menubar/toolbar-sections/ManualBrowser.d.ts +10 -6
- package/dist/editor/menubar/toolbar-sections/ManualBrowser.js +220 -597
- package/dist/editor/menubar/toolbar-sections/ManualBrowser.js.map +1 -1
- package/dist/editor/menubar/toolbar-sections/UtilityControls.js +2 -13
- package/dist/editor/menubar/toolbar-sections/UtilityControls.js.map +1 -1
- package/dist/editor/page-editor-chrome/CommentHighlighting.js +1 -42
- package/dist/editor/page-editor-chrome/CommentHighlighting.js.map +1 -1
- package/dist/editor/page-editor-chrome/FrameMenu.js +1 -1
- package/dist/editor/page-editor-chrome/FrameMenu.js.map +1 -1
- package/dist/editor/page-editor-chrome/InlineEditor.js +48 -97
- package/dist/editor/page-editor-chrome/InlineEditor.js.map +1 -1
- package/dist/editor/page-editor-chrome/PlaceholderDropZone.js +17 -38
- package/dist/editor/page-editor-chrome/PlaceholderDropZone.js.map +1 -1
- package/dist/editor/page-editor-chrome/PlaceholderDropZones.js +11 -17
- package/dist/editor/page-editor-chrome/PlaceholderDropZones.js.map +1 -1
- package/dist/editor/page-editor-chrome/useInlineAICompletion.js +301 -301
- package/dist/editor/page-editor-chrome/useInlineAICompletion.js.map +1 -1
- package/dist/editor/page-viewer/DeviceToolbar.js +1 -1
- package/dist/editor/page-viewer/DeviceToolbar.js.map +1 -1
- package/dist/editor/page-viewer/EditorForm.js +11 -69
- package/dist/editor/page-viewer/EditorForm.js.map +1 -1
- package/dist/editor/page-viewer/MiniMap.d.ts +4 -2
- package/dist/editor/page-viewer/MiniMap.js +28 -91
- package/dist/editor/page-viewer/MiniMap.js.map +1 -1
- package/dist/editor/page-viewer/PageViewer.d.ts +1 -3
- package/dist/editor/page-viewer/PageViewer.js +19 -92
- package/dist/editor/page-viewer/PageViewer.js.map +1 -1
- package/dist/editor/page-viewer/PageViewerFrame.d.ts +1 -2
- package/dist/editor/page-viewer/PageViewerFrame.js +115 -348
- package/dist/editor/page-viewer/PageViewerFrame.js.map +1 -1
- package/dist/editor/page-viewer/pageModelSkeletonBuilder.js +49 -114
- package/dist/editor/page-viewer/pageModelSkeletonBuilder.js.map +1 -1
- package/dist/editor/page-viewer/pageViewContext.d.ts +0 -1
- package/dist/editor/page-viewer/pageViewContext.js +14 -51
- package/dist/editor/page-viewer/pageViewContext.js.map +1 -1
- package/dist/editor/pageModel.d.ts +1 -14
- package/dist/editor/reviews/Comment.js +12 -26
- package/dist/editor/reviews/Comment.js.map +1 -1
- package/dist/editor/reviews/CommentDisplayPopover.js +5 -7
- package/dist/editor/reviews/CommentDisplayPopover.js.map +1 -1
- package/dist/editor/reviews/CommentView.js +4 -19
- package/dist/editor/reviews/CommentView.js.map +1 -1
- package/dist/editor/reviews/Comments.js +72 -89
- package/dist/editor/reviews/Comments.js.map +1 -1
- package/dist/editor/reviews/CreateReviewDialog.js +177 -281
- package/dist/editor/reviews/CreateReviewDialog.js.map +1 -1
- package/dist/editor/reviews/DecisionsMatrix.js +25 -96
- package/dist/editor/reviews/DecisionsMatrix.js.map +1 -1
- package/dist/editor/reviews/DiffView.js +14 -7
- package/dist/editor/reviews/DiffView.js.map +1 -1
- package/dist/editor/reviews/EditReviewSettingsDialog.js +4 -6
- package/dist/editor/reviews/EditReviewSettingsDialog.js.map +1 -1
- package/dist/editor/reviews/MultiReviewManager.js +3 -25
- package/dist/editor/reviews/MultiReviewManager.js.map +1 -1
- package/dist/editor/reviews/PagesPanel.js +15 -31
- package/dist/editor/reviews/PagesPanel.js.map +1 -1
- package/dist/editor/reviews/PreviewInfo.js +4 -1
- package/dist/editor/reviews/PreviewInfo.js.map +1 -1
- package/dist/editor/reviews/ReviewCard.js +7 -13
- package/dist/editor/reviews/ReviewCard.js.map +1 -1
- package/dist/editor/reviews/ReviewDetail.js +2 -3
- package/dist/editor/reviews/ReviewDetail.js.map +1 -1
- package/dist/editor/reviews/ReviewsList.js +3 -7
- package/dist/editor/reviews/ReviewsList.js.map +1 -1
- package/dist/editor/reviews/SuggestedEdit.js +3 -34
- package/dist/editor/reviews/SuggestedEdit.js.map +1 -1
- package/dist/editor/reviews/SuggestionDisplayPopover.js +5 -31
- package/dist/editor/reviews/SuggestionDisplayPopover.js.map +1 -1
- package/dist/editor/reviews/commentAi.js +6 -25
- package/dist/editor/reviews/commentAi.js.map +1 -1
- package/dist/editor/reviews/reviewCommands.js +1 -4
- package/dist/editor/reviews/reviewCommands.js.map +1 -1
- package/dist/editor/reviews/useMultiReview.js +2 -2
- package/dist/editor/reviews/useMultiReview.js.map +1 -1
- package/dist/editor/reviews/useReviews.d.ts +2 -2
- package/dist/editor/reviews/useReviews.js +30 -12
- package/dist/editor/reviews/useReviews.js.map +1 -1
- package/dist/editor/services/agentService.d.ts +5 -229
- package/dist/editor/services/agentService.js +39 -292
- package/dist/editor/services/agentService.js.map +1 -1
- package/dist/editor/services/aiService.d.ts +1 -57
- package/dist/editor/services/aiService.js +6 -79
- package/dist/editor/services/aiService.js.map +1 -1
- package/dist/editor/services/contentService.d.ts +3 -6
- package/dist/editor/services/contentService.js +12 -13
- package/dist/editor/services/contentService.js.map +1 -1
- package/dist/editor/services/editService.d.ts +1 -52
- package/dist/editor/services/editService.js +2 -94
- package/dist/editor/services/editService.js.map +1 -1
- package/dist/editor/services/indexService.js +1 -1
- package/dist/editor/services/indexService.js.map +1 -1
- package/dist/editor/services/reviewsService.d.ts +6 -3
- package/dist/editor/services/reviewsService.js +11 -2
- package/dist/editor/services/reviewsService.js.map +1 -1
- package/dist/editor/services/serviceHelper.d.ts +1 -2
- package/dist/editor/services/serviceHelper.js +20 -112
- package/dist/editor/services/serviceHelper.js.map +1 -1
- package/dist/editor/services/systemService.d.ts +1 -2
- package/dist/editor/services/systemService.js +0 -3
- package/dist/editor/services/systemService.js.map +1 -1
- package/dist/editor/services-server/api.d.ts +2 -1
- package/dist/editor/services-server/api.js +6 -11
- package/dist/editor/services-server/api.js.map +1 -1
- package/dist/editor/services-server/graphQL.d.ts +29 -0
- package/dist/editor/services-server/graphQL.js +53 -0
- package/dist/editor/services-server/graphQL.js.map +1 -0
- package/dist/editor/settings/About.js +3 -317
- package/dist/editor/settings/About.js.map +1 -1
- package/dist/editor/settings/AllAgentsPanel.d.ts +5 -0
- package/dist/editor/settings/AllAgentsPanel.js +139 -0
- package/dist/editor/settings/AllAgentsPanel.js.map +1 -0
- package/dist/editor/settings/LatestFeedback.d.ts +1 -0
- package/dist/editor/settings/LatestFeedback.js +136 -0
- package/dist/editor/settings/LatestFeedback.js.map +1 -0
- package/dist/editor/settings/QuotaInfo.js +4 -210
- package/dist/editor/settings/QuotaInfo.js.map +1 -1
- package/dist/editor/settings/SettingsView.js +23 -25
- package/dist/editor/settings/SettingsView.js.map +1 -1
- package/dist/editor/settings/Setup.d.ts +1 -0
- package/dist/editor/settings/Setup.js +211 -0
- package/dist/editor/settings/Setup.js.map +1 -0
- package/dist/editor/settings/Status.js +6 -7
- package/dist/editor/settings/Status.js.map +1 -1
- package/dist/editor/settings/index/useIndexStatus.js +22 -20
- package/dist/editor/settings/index/useIndexStatus.js.map +1 -1
- package/dist/editor/settings/panels/AgentsPanel.d.ts +4 -0
- package/dist/editor/settings/panels/AgentsPanel.js +121 -95
- package/dist/editor/settings/panels/AgentsPanel.js.map +1 -1
- package/dist/editor/settings/panels/DatabasePanel.d.ts +6 -0
- package/dist/editor/settings/panels/DatabasePanel.js +50 -0
- package/dist/editor/settings/panels/DatabasePanel.js.map +1 -0
- package/dist/editor/settings/panels/ModelsPanel.js +108 -329
- package/dist/editor/settings/panels/ModelsPanel.js.map +1 -1
- package/dist/editor/settings/panels/ProvidersPanel.d.ts +1 -1
- package/dist/editor/settings/panels/ProvidersPanel.js +59 -86
- package/dist/editor/settings/panels/ProvidersPanel.js.map +1 -1
- package/dist/editor/settings/panels/SearchConfigPanel.js +4 -4
- package/dist/editor/settings/panels/SearchConfigPanel.js.map +1 -1
- package/dist/editor/settings/panels/index.d.ts +2 -3
- package/dist/editor/settings/panels/index.js +2 -3
- package/dist/editor/settings/panels/index.js.map +1 -1
- package/dist/editor/settings/setup-steps/AiSetupStep/EmbeddingsModelSection.d.ts +2 -0
- package/dist/editor/settings/setup-steps/AiSetupStep/EmbeddingsModelSection.js +195 -0
- package/dist/editor/settings/setup-steps/AiSetupStep/EmbeddingsModelSection.js.map +1 -0
- package/dist/editor/settings/setup-steps/AiSetupStep/index.d.ts +2 -0
- package/dist/editor/settings/setup-steps/AiSetupStep/index.js +21 -0
- package/dist/editor/settings/setup-steps/AiSetupStep/index.js.map +1 -0
- package/dist/editor/settings/setup-steps/AiSetupStep/provider/ProviderSection.d.ts +1 -0
- package/dist/editor/settings/setup-steps/AiSetupStep/provider/ProviderSection.js +233 -0
- package/dist/editor/settings/setup-steps/AiSetupStep/provider/ProviderSection.js.map +1 -0
- package/dist/editor/settings/setup-steps/AiSetupStep/required-containers/RequiredContainersList.d.ts +15 -0
- package/dist/editor/settings/setup-steps/AiSetupStep/required-containers/RequiredContainersList.js +14 -0
- package/dist/editor/settings/setup-steps/AiSetupStep/required-containers/RequiredContainersList.js.map +1 -0
- package/dist/editor/settings/setup-steps/AiSetupStep/required-containers/RequiredContainersSection.d.ts +1 -0
- package/dist/editor/settings/setup-steps/AiSetupStep/required-containers/RequiredContainersSection.js +94 -0
- package/dist/editor/settings/setup-steps/AiSetupStep/required-containers/RequiredContainersSection.js.map +1 -0
- package/dist/editor/settings/setup-steps/AiSetupStep/types.d.ts +1 -0
- package/dist/editor/settings/setup-steps/AiSetupStep/types.js +2 -0
- package/dist/editor/settings/setup-steps/AiSetupStep/types.js.map +1 -0
- package/dist/editor/settings/setup-steps/AiSetupStep/utils.d.ts +5 -0
- package/dist/editor/settings/setup-steps/AiSetupStep/utils.js +44 -0
- package/dist/editor/settings/setup-steps/AiSetupStep/utils.js.map +1 -0
- package/dist/editor/settings/setup-steps/IndexSetupStep.d.ts +2 -0
- package/dist/editor/settings/setup-steps/IndexSetupStep.js +36 -0
- package/dist/editor/settings/setup-steps/IndexSetupStep.js.map +1 -0
- package/dist/editor/settings/setup-steps/SettingsSetupStep.d.ts +2 -0
- package/dist/editor/settings/setup-steps/SettingsSetupStep.js +111 -0
- package/dist/editor/settings/setup-steps/SettingsSetupStep.js.map +1 -0
- package/dist/editor/settings/setup-steps/SetupOverview.d.ts +14 -0
- package/dist/editor/settings/setup-steps/SetupOverview.js +38 -0
- package/dist/editor/settings/setup-steps/SetupOverview.js.map +1 -0
- package/dist/editor/settings/status/coreStatusChecks.js +19 -124
- package/dist/editor/settings/status/coreStatusChecks.js.map +1 -1
- package/dist/editor/settings/status/useStartupChecks.d.ts +1 -3
- package/dist/editor/settings/status/useStartupChecks.js +5 -9
- package/dist/editor/settings/status/useStartupChecks.js.map +1 -1
- package/dist/editor/setup-wizard/steps/CompleteStep.d.ts +1 -2
- package/dist/editor/setup-wizard/steps/CompleteStep.js +1 -2
- package/dist/editor/setup-wizard/steps/CompleteStep.js.map +1 -1
- package/dist/editor/sidebar/ComponentPalette.js +1 -2
- package/dist/editor/sidebar/ComponentPalette.js.map +1 -1
- package/dist/editor/sidebar/ComponentTree.d.ts +1 -8
- package/dist/editor/sidebar/ComponentTree.js +69 -216
- package/dist/editor/sidebar/ComponentTree.js.map +1 -1
- package/dist/editor/sidebar/Debug.d.ts +1 -0
- package/dist/editor/sidebar/Debug.js +70 -0
- package/dist/editor/sidebar/Debug.js.map +1 -0
- package/dist/editor/sidebar/EditHistory.js +46 -22
- package/dist/editor/sidebar/EditHistory.js.map +1 -1
- package/dist/editor/sidebar/Favorites.js +8 -4
- package/dist/editor/sidebar/Favorites.js.map +1 -1
- package/dist/editor/sidebar/GraphQL.d.ts +2 -0
- package/dist/editor/sidebar/GraphQL.js +234 -0
- package/dist/editor/sidebar/GraphQL.js.map +1 -0
- package/dist/editor/sidebar/LeftToolbar.d.ts +1 -0
- package/dist/editor/sidebar/LeftToolbar.js +12 -0
- package/dist/editor/sidebar/LeftToolbar.js.map +1 -0
- package/dist/editor/sidebar/MainContentTree.js +3 -4
- package/dist/editor/sidebar/MainContentTree.js.map +1 -1
- package/dist/editor/sidebar/NavigationSidebar.d.ts +4 -0
- package/dist/editor/sidebar/NavigationSidebar.js +254 -0
- package/dist/editor/sidebar/NavigationSidebar.js.map +1 -0
- package/dist/editor/sidebar/OperationItem.js +7 -21
- package/dist/editor/sidebar/OperationItem.js.map +1 -1
- package/dist/editor/sidebar/SidebarPanel.d.ts +1 -3
- package/dist/editor/sidebar/SidebarPanel.js +12 -44
- package/dist/editor/sidebar/SidebarPanel.js.map +1 -1
- package/dist/editor/sidebar/SidebarStack.d.ts +1 -2
- package/dist/editor/sidebar/SidebarStack.js +3 -4
- package/dist/editor/sidebar/SidebarStack.js.map +1 -1
- package/dist/editor/sidebar/Validation.js +12 -22
- package/dist/editor/sidebar/Validation.js.map +1 -1
- package/dist/editor/sidebar/Workbox.js +3 -53
- package/dist/editor/sidebar/Workbox.js.map +1 -1
- package/dist/editor/sidebar/WorkspaceRail.d.ts +1 -0
- package/dist/editor/sidebar/WorkspaceRail.js +167 -56
- package/dist/editor/sidebar/WorkspaceRail.js.map +1 -1
- package/dist/editor/tree-indicators/GutterColumns.d.ts +1 -3
- package/dist/editor/tree-indicators/GutterColumns.js +5 -26
- package/dist/editor/tree-indicators/GutterColumns.js.map +1 -1
- package/dist/editor/tree-indicators/GutterContext.d.ts +0 -4
- package/dist/editor/tree-indicators/GutterContext.js +0 -23
- package/dist/editor/tree-indicators/GutterContext.js.map +1 -1
- package/dist/editor/tree-indicators/GutterSelector.d.ts +5 -0
- package/dist/editor/tree-indicators/GutterSelector.js +91 -0
- package/dist/editor/tree-indicators/GutterSelector.js.map +1 -0
- package/dist/editor/tree-indicators/index.d.ts +1 -0
- package/dist/editor/tree-indicators/index.js +1 -0
- package/dist/editor/tree-indicators/index.js.map +1 -1
- package/dist/editor/tree-indicators/types.d.ts +1 -12
- package/dist/editor/ui/CopyMoveTargetSelectorDialog.js +1 -1
- package/dist/editor/ui/CopyMoveTargetSelectorDialog.js.map +1 -1
- package/dist/editor/ui/Icons.js +1 -1
- package/dist/editor/ui/Icons.js.map +1 -1
- package/dist/editor/ui/ItemNameDialogNew.d.ts +0 -2
- package/dist/editor/ui/ItemNameDialogNew.js +17 -33
- package/dist/editor/ui/ItemNameDialogNew.js.map +1 -1
- package/dist/editor/ui/ItemSearch.js +11 -7
- package/dist/editor/ui/ItemSearch.js.map +1 -1
- package/dist/editor/ui/SimpleIconButton.js +1 -1
- package/dist/editor/ui/SimpleIconButton.js.map +1 -1
- package/dist/editor/ui/SimpleTabs.d.ts +0 -1
- package/dist/editor/ui/SimpleTabs.js +25 -45
- package/dist/editor/ui/SimpleTabs.js.map +1 -1
- package/dist/editor/ui/Splitter.d.ts +0 -1
- package/dist/editor/ui/Splitter.js +86 -102
- package/dist/editor/ui/Splitter.js.map +1 -1
- package/dist/editor/ui/TemplateSelectorDialog.js +4 -4
- package/dist/editor/ui/TemplateSelectorDialog.js.map +1 -1
- package/dist/editor/ui/TreeListSelector.d.ts +1 -6
- package/dist/editor/ui/TreeListSelector.js +2 -2
- package/dist/editor/ui/TreeListSelector.js.map +1 -1
- package/dist/editor/utils/keyboardNavigation.d.ts +20 -6
- package/dist/editor/utils/keyboardNavigation.js +140 -48
- package/dist/editor/utils/keyboardNavigation.js.map +1 -1
- package/dist/editor/utils.js +9 -19
- package/dist/editor/utils.js.map +1 -1
- package/dist/editor/views/CompareView.d.ts +1 -3
- package/dist/editor/views/CompareView.js +5 -7
- package/dist/editor/views/CompareView.js.map +1 -1
- package/dist/editor/views/EditView.js +1 -1
- package/dist/editor/views/EditView.js.map +1 -1
- package/dist/editor/views/EditorSlot.js +34 -27
- package/dist/editor/views/EditorSlot.js.map +1 -1
- package/dist/editor/views/ItemEditor.js +3 -7
- package/dist/editor/views/ItemEditor.js.map +1 -1
- package/dist/editor/views/MediaFolderEditView.js +1 -1
- package/dist/editor/views/MediaFolderEditView.js.map +1 -1
- package/dist/editor/views/ParheliaView.js +6 -5
- package/dist/editor/views/ParheliaView.js.map +1 -1
- package/dist/editor/views/SingleEditView.d.ts +1 -2
- package/dist/editor/views/SingleEditView.js +8 -10
- package/dist/editor/views/SingleEditView.js.map +1 -1
- package/dist/editor/views/editorSlotContext.js +6 -35
- package/dist/editor/views/editorSlotContext.js.map +1 -1
- package/dist/index.d.ts +2 -16
- package/dist/index.js +0 -11
- package/dist/index.js.map +1 -1
- package/dist/revision.d.ts +2 -2
- package/dist/revision.js +2 -2
- package/dist/setup/services/setupWizardService.d.ts +13 -40
- package/dist/setup/services/setupWizardService.js +17 -32
- package/dist/setup/services/setupWizardService.js.map +1 -1
- package/dist/setup/wizard/steps/AddModelDialog.js +3 -12
- package/dist/setup/wizard/steps/AddModelDialog.js.map +1 -1
- package/dist/setup/wizard/steps/ImportModelDialog.js +22 -39
- package/dist/setup/wizard/steps/ImportModelDialog.js.map +1 -1
- package/dist/splash-screen/ModernSplashScreen.js +32 -112
- package/dist/splash-screen/ModernSplashScreen.js.map +1 -1
- package/dist/splash-screen/NewPage.js +50 -33
- package/dist/splash-screen/NewPage.js.map +1 -1
- package/dist/splash-screen/OpenPage.js +6 -2
- package/dist/splash-screen/OpenPage.js.map +1 -1
- package/dist/splash-screen/ParheliaAssistantChat.js +29 -12
- package/dist/splash-screen/ParheliaAssistantChat.js.map +1 -1
- package/dist/splash-screen/ParheliaLogo.js +37 -87
- package/dist/splash-screen/ParheliaLogo.js.map +1 -1
- package/dist/splash-screen/RecentPages.js +3 -3
- package/dist/splash-screen/RecentPages.js.map +1 -1
- package/dist/tour/Tour.d.ts +1 -2
- package/dist/tour/Tour.js +75 -256
- package/dist/tour/Tour.js.map +1 -1
- package/dist/tour/default-tour.js +96 -222
- package/dist/tour/default-tour.js.map +1 -1
- package/dist/types.d.ts +29 -63
- package/package.json +15 -19
- package/styles.css +10 -14
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStartupChecks.js","sourceRoot":"","sources":["../../../../src/editor/settings/status/useStartupChecks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"useStartupChecks.js","sourceRoot":"","sources":["../../../../src/editor/settings/status/useStartupChecks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAgBjE;;;GAGG;AACH,MAAM,UAAU,gBAAgB,CAC9B,YAAuC;IAEvC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAoB,MAAM,CAAC,CAAC;IAC9D,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAsB,EAAE,CAAC,CAAC;IAC9D,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAE7B,iCAAiC;IACjC,MAAM,cAAc,GAAG,YAAY,EAAE,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;IAE/E,MAAM,SAAS,GAAG,WAAW,CAAC,KAAK,IAAI,EAAE;QACvC,IAAI,cAAc,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC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ACN,OAAO,EAAE,SAAS;KACnB,CAAC;AACJ,CAAC"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
interface CompleteStepProps {
|
|
2
|
-
licenseConfigured: boolean;
|
|
3
2
|
chatModelId?: string;
|
|
4
3
|
imageModelId?: string;
|
|
5
4
|
embeddingsModelId?: string;
|
|
6
5
|
onFinish: () => void;
|
|
7
6
|
onBack: () => void;
|
|
8
7
|
}
|
|
9
|
-
export declare function CompleteStep({
|
|
8
|
+
export declare function CompleteStep({ chatModelId, imageModelId, embeddingsModelId, onFinish, onBack, }: CompleteStepProps): import("react/jsx-runtime").JSX.Element;
|
|
10
9
|
export {};
|
|
@@ -3,7 +3,7 @@ import { useState, useCallback } from "react";
|
|
|
3
3
|
import { Button } from "../../../components/ui/button";
|
|
4
4
|
import { setupWizardService } from "../../../setup/services/setupWizardService";
|
|
5
5
|
import { CheckCircle, PartyPopper, RefreshCw, ArrowRight, AlertCircle, } from "lucide-react";
|
|
6
|
-
export function CompleteStep({
|
|
6
|
+
export function CompleteStep({ chatModelId, imageModelId, embeddingsModelId, onFinish, onBack, }) {
|
|
7
7
|
const [finishing, setFinishing] = useState(false);
|
|
8
8
|
const handleFinish = useCallback(async () => {
|
|
9
9
|
try {
|
|
@@ -31,7 +31,6 @@ export function CompleteStep({ licenseConfigured, chatModelId, imageModelId, emb
|
|
|
31
31
|
}
|
|
32
32
|
}, [chatModelId, imageModelId, embeddingsModelId, onFinish]);
|
|
33
33
|
return (_jsxs("div", { className: "flex h-full flex-col items-center p-12 text-center", children: [_jsx("div", { className: "mb-8 animate-bounce rounded-full bg-green-50 p-6 shadow-xl ring-1 shadow-green-500/10 ring-green-100", children: _jsx(PartyPopper, { className: "h-16 w-12 text-green-600", strokeWidth: 1.5 }) }), _jsx("h2", { className: "mb-4 text-4xl font-bold tracking-tight text-gray-900", children: "You're Ready!" }), _jsx("p", { className: "mb-10 max-w-md leading-relaxed text-gray-500", children: "Parhelia is now configured and ready to transform your content workflow. Let's get to work." }), _jsxs("div", { className: "mb-12 w-full max-w-sm space-y-3 rounded-2xl border border-gray-100 bg-gray-50/50 p-6 text-left shadow-inner", children: [_jsx("h3", { className: "mb-4 text-center text-[10px] font-bold tracking-[0.2em] text-gray-400 uppercase", children: "Final Configuration" }), _jsx("div", { className: "space-y-2", children: [
|
|
34
|
-
{ label: "License", value: licenseConfigured ? "configured" : undefined },
|
|
35
34
|
{ label: "Chat", value: chatModelId },
|
|
36
35
|
{ label: "Image", value: imageModelId },
|
|
37
36
|
{ label: "Embeddings", value: embeddingsModelId },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompleteStep.js","sourceRoot":"","sources":["../../../../src/editor/setup-wizard/steps/CompleteStep.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,EACL,WAAW,EACX,WAAW,EACX,SAAS,EACT,UAAU,EAEV,WAAW,GACZ,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"CompleteStep.js","sourceRoot":"","sources":["../../../../src/editor/setup-wizard/steps/CompleteStep.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,EACL,WAAW,EACX,WAAW,EACX,SAAS,EACT,UAAU,EAEV,WAAW,GACZ,MAAM,cAAc,CAAC;AAUtB,MAAM,UAAU,YAAY,CAAC,EAC3B,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,QAAQ,EACR,MAAM,GACY;IAClB,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAA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ui/Icons";
|
|
4
4
|
import { getAbsoluteIconUrl, useCollapsedSections } from "../utils";
|
|
5
5
|
import { cn } from "../../lib/utils";
|
|
6
|
-
import { sanitizeSvg } from "../../lib/sanitize";
|
|
7
6
|
import { useEditContext } from "../client/editContext";
|
|
8
7
|
import { FilterInput, highlightMatch } from "../../components/FilterInput";
|
|
9
8
|
import { useState, useRef, useEffect } from "react";
|
|
@@ -85,7 +84,7 @@ export function ComponentPalette({}) {
|
|
|
85
84
|
editContext.setSelectedForInsertion(option.typeId);
|
|
86
85
|
}, draggable: isDraggable, onDragStart: handleDragStart, onDragEnd: handleDragEnd, className: cn("relative flex flex-col items-center justify-center gap-2 rounded border border-gray-200 p-2 text-center text-xs break-all", isDraggable ? "cursor-grab" : "", editContext.selectedForInsertion === option.typeId
|
|
87
86
|
? "border-sky-500"
|
|
88
|
-
: ""), "data-testid": "insert-component-option", children: [option.svg && (_jsx("div", { className: "h-8 w-8", draggable: false, onDragStart: (e) => e.preventDefault(), dangerouslySetInnerHTML: { __html:
|
|
87
|
+
: ""), "data-testid": "insert-component-option", children: [option.svg && (_jsx("div", { className: "h-8 w-8", draggable: false, onDragStart: (e) => e.preventDefault(), dangerouslySetInnerHTML: { __html: option.svg } })), !option.svg && (_jsx("img", { src: getAbsoluteIconUrl(option.thumbnail || option.icon), draggable: false, onDragStart: (e) => e.preventDefault() })), _jsx("div", { className: "text-xs", children: highlightMatch(option.name, filter) }), option.isInvalid && (_jsx("span", { title: option.message, children: _jsx(AlertTriangle, { className: "absolute top-0 right-0 h-4 w-4 text-red-500" }) }))] }, option.typeId));
|
|
89
88
|
}) }))] }, group));
|
|
90
89
|
}) }) })] }));
|
|
91
90
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComponentPalette.js","sourceRoot":"","sources":["../../../src/editor/sidebar/ComponentPalette.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,wBAAwB,CAAC;AAC7E,OAAO,E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,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,cAAc,EAAE,EACtC,uBAAuB,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,EAAE,GAC1C,CACR,EACA,CAAC,MAAM,CAAC,GAAG,IAAI,CACd,cACE,GAAG,EAAE,kBAAkB,CACrB,MAAM,CAAC,SAAS,IAAI,MAAM,CAAC,IAAI,CAChC,EACD,SAAS,EAAE,KAAK,EAChB,WAAW,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,cAAc,EAAE,GACjC,CACR,EAED,cAAK,SAAS,EAAC,SAAS,YACrB,cAAc,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,GAChC,EAEL,MAAM,CAAC,SAAS,IAAI,CACnB,eAAM,KAAK,EAAE,MAAM,CAAC,OAAO,YACzB,KAAC,aAAa,IAAC,SAAS,EAAC,6CAA6C,GAAG,GACpE,CACR,KA7BI,MAAM,CAAC,MAAM,CA8Bd,CACP,CAAC;oCACJ,CAAC,CAAC,GACE,CACP,KA1FI,KAAK,CA2FN,CACP,CAAC;oBACJ,CAAC,CAAC,GACA,GACF,IACF,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { FullItem, ItemDescriptor } from "../pageModel";
|
|
3
|
-
export declare function ComponentTree({ pageViewContext, itemDescriptor, item, isLoading, }: {
|
|
4
|
-
pageViewContext?: PageViewContext;
|
|
5
|
-
itemDescriptor?: ItemDescriptor;
|
|
6
|
-
item?: FullItem;
|
|
7
|
-
isLoading?: boolean;
|
|
8
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare function ComponentTree({}: {}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,39 +1,24 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useEditContext, useEditContextRef } from "../client/editContext";
|
|
4
|
-
import { useCallback, useEffect,
|
|
4
|
+
import { useCallback, useEffect, useRef, useState } from "react";
|
|
5
5
|
import { getComponentCommands } from "../commands/componentCommands";
|
|
6
6
|
import ConfirmationDialog from "../ConfirmationDialog";
|
|
7
|
-
import { useSlotContext } from "../views/editorSlotContext";
|
|
8
7
|
import { PerfectTree } from "../ui/PerfectTree";
|
|
9
8
|
import { isValidPlaceholder } from "../componentTreeHelper";
|
|
10
|
-
import { buildInsertMenuItems, getVisibleInsertOptions
|
|
9
|
+
import { buildInsertMenuItems, getVisibleInsertOptions } from "../insertMenuItems";
|
|
11
10
|
import { Plus, LayoutTemplate, Pentagon, Folder, Square, ChevronRight, Circle, File, Home, } from "lucide-react";
|
|
12
11
|
import { SimpleIconButton } from "../ui/SimpleIconButton";
|
|
13
12
|
import { Spinner } from "../ui/Spinner";
|
|
14
|
-
|
|
15
|
-
export function ComponentTree({ pageViewContext, itemDescriptor, item, isLoading, }) {
|
|
13
|
+
export function ComponentTree({}) {
|
|
16
14
|
const [expandedKeys, setExpandedKeys] = useState(["page"]);
|
|
17
15
|
const [selectedKeys, setSelectedKeys] = useState(["page"]);
|
|
18
|
-
const [filter, setFilter] = useState("");
|
|
19
16
|
const [rootNodes, setRootNodes] = useState([]);
|
|
20
17
|
const [nodeDictionary, setNodeDictionary] = useState({});
|
|
21
18
|
const [isTreeReady, setIsTreeReady] = useState(false);
|
|
22
19
|
const [treeKey, setTreeKey] = useState(null);
|
|
23
20
|
let editContextRef = useEditContextRef();
|
|
24
21
|
const editContext = useEditContext();
|
|
25
|
-
const slotContext = useSlotContext();
|
|
26
|
-
// Prefer the nearest slot context so multiple visible trees can render the
|
|
27
|
-
// correct page instead of following the globally active slot.
|
|
28
|
-
const page = pageViewContext?.page ?? slotContext?.primaryPageViewContext.page ?? editContext?.page;
|
|
29
|
-
const pageItemDescriptor = itemDescriptor ?? page?.item ?? slotContext?.itemDescriptor ?? editContext?.currentItemDescriptor;
|
|
30
|
-
const resolvedItem = item ?? slotContext?.item ?? editContext?.item;
|
|
31
|
-
const isSlotLoading = isLoading ??
|
|
32
|
-
slotContext?.isLoading ??
|
|
33
|
-
editContext?.getActiveSlotContext?.()?.isLoading ??
|
|
34
|
-
false;
|
|
35
|
-
const pageLanguage = page?.item.language ?? pageItemDescriptor?.language;
|
|
36
|
-
const pageVersion = page?.item.version ?? pageItemDescriptor?.version;
|
|
37
22
|
const treeRef = useRef(null);
|
|
38
23
|
const confirmDialogRef = useRef(null);
|
|
39
24
|
const pendingDragStartTimeoutRef = useRef(null);
|
|
@@ -84,16 +69,8 @@ export function ComponentTree({ pageViewContext, itemDescriptor, item, isLoading
|
|
|
84
69
|
}
|
|
85
70
|
useEffect(() => {
|
|
86
71
|
if (treeRef.current) {
|
|
87
|
-
const selectedNodeKey = selectedKeys[0];
|
|
88
|
-
|
|
89
|
-
if (selectedNodeKey) {
|
|
90
|
-
try {
|
|
91
|
-
selectedNodeElement = treeRef.current.querySelector(`[data-node-key="${CSS.escape(selectedNodeKey)}"]`);
|
|
92
|
-
}
|
|
93
|
-
catch {
|
|
94
|
-
selectedNodeElement = treeRef.current.querySelector(`[data-node-key="${selectedNodeKey}"]`);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
72
|
+
const selectedNodeKey = Object.keys(selectedKeys || {})[0];
|
|
73
|
+
const selectedNodeElement = treeRef.current.querySelector(`[data-id="${selectedNodeKey}"]`);
|
|
97
74
|
if (selectedNodeElement) {
|
|
98
75
|
selectedNodeElement.scrollIntoView({
|
|
99
76
|
behavior: "smooth",
|
|
@@ -105,24 +82,13 @@ export function ComponentTree({ pageViewContext, itemDescriptor, item, isLoading
|
|
|
105
82
|
useEffect(() => {
|
|
106
83
|
if (editContext?.selection && editContext.selection.length > 0) {
|
|
107
84
|
setSelectedKeys(editContext.selection);
|
|
108
|
-
return;
|
|
109
85
|
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
const current = prev[0];
|
|
115
|
-
if (current) {
|
|
116
|
-
const node = nodeDictionary[current];
|
|
117
|
-
if (node && node.type !== "component") {
|
|
118
|
-
return prev;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
return ["page"];
|
|
123
|
-
});
|
|
124
|
-
}, [editContext?.selection, nodeDictionary]);
|
|
86
|
+
else {
|
|
87
|
+
setSelectedKeys(["page"]);
|
|
88
|
+
}
|
|
89
|
+
}, [editContext?.selection]);
|
|
125
90
|
const selection = editContext?.selection || [];
|
|
91
|
+
const page = editContext?.page;
|
|
126
92
|
useEffect(() => {
|
|
127
93
|
const newExpandedKeys = [...expandedKeys];
|
|
128
94
|
for (const id of selection) {
|
|
@@ -135,28 +101,6 @@ export function ComponentTree({ pageViewContext, itemDescriptor, item, isLoading
|
|
|
135
101
|
setExpandedKeys(newExpandedKeys);
|
|
136
102
|
}
|
|
137
103
|
}, [selection, nodeDictionary]);
|
|
138
|
-
function appendNodeClassName(node, className) {
|
|
139
|
-
node.className = `${node.className || ""} ${className}`.trim();
|
|
140
|
-
}
|
|
141
|
-
function reparentVisibleNodes(nodes, parent, inheritedClassName) {
|
|
142
|
-
return nodes.map((node) => {
|
|
143
|
-
node.parent = parent;
|
|
144
|
-
if (inheritedClassName) {
|
|
145
|
-
appendNodeClassName(node, inheritedClassName);
|
|
146
|
-
}
|
|
147
|
-
return node;
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
function mapVisibleComponentNodes(component, parent, inheritedClassName) {
|
|
151
|
-
const componentNode = mapComponentNode(component, parent);
|
|
152
|
-
if (inheritedClassName) {
|
|
153
|
-
appendNodeClassName(componentNode, inheritedClassName);
|
|
154
|
-
}
|
|
155
|
-
if (!component.layoutId) {
|
|
156
|
-
return [componentNode];
|
|
157
|
-
}
|
|
158
|
-
return reparentVisibleNodes((componentNode.children || []), parent, inheritedClassName);
|
|
159
|
-
}
|
|
160
104
|
function mapPlaceholderNode(p, parent) {
|
|
161
105
|
const rawLabel = p.description || p.name;
|
|
162
106
|
let cleanedLabel = cleanPlaceholderLabel(rawLabel);
|
|
@@ -188,8 +132,12 @@ export function ComponentTree({ pageViewContext, itemDescriptor, item, isLoading
|
|
|
188
132
|
});
|
|
189
133
|
}
|
|
190
134
|
if (!editContext?.showLayoutComponents) {
|
|
191
|
-
//
|
|
192
|
-
|
|
135
|
+
// Map components and filter out layout components when hidden
|
|
136
|
+
const mappedComponents = p.components.map((c) => mapComponentNode(c, node));
|
|
137
|
+
node.children = mappedComponents.filter((componentNode) => {
|
|
138
|
+
const component = componentNode.data;
|
|
139
|
+
return !component.layoutId;
|
|
140
|
+
});
|
|
193
141
|
}
|
|
194
142
|
else {
|
|
195
143
|
// Always map components, but filter based on editability and descendants
|
|
@@ -221,12 +169,22 @@ export function ComponentTree({ pageViewContext, itemDescriptor, item, isLoading
|
|
|
221
169
|
const allComponents = [];
|
|
222
170
|
const seenKeys = new Set();
|
|
223
171
|
for (const placeholder of placeholdersToShow) {
|
|
224
|
-
const
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
172
|
+
const mappedComponents = placeholder.components.map((c) => {
|
|
173
|
+
const componentNode = mapComponentNode(c, parent);
|
|
174
|
+
// Apply gray styling to components in non-editable placeholders
|
|
175
|
+
if (!placeholder.editable) {
|
|
176
|
+
componentNode.className =
|
|
177
|
+
(componentNode.className || "") + " text-gray-400";
|
|
178
|
+
}
|
|
179
|
+
return componentNode;
|
|
180
|
+
});
|
|
181
|
+
// Filter out layout components when not showing them
|
|
182
|
+
const filteredComponents = mappedComponents.filter((componentNode) => {
|
|
183
|
+
const component = componentNode.data;
|
|
184
|
+
return !component.layoutId && (component.editable || true);
|
|
185
|
+
});
|
|
228
186
|
// Add only components we haven't seen yet to prevent duplicate keys
|
|
229
|
-
for (const componentNode of
|
|
187
|
+
for (const componentNode of filteredComponents) {
|
|
230
188
|
if (!seenKeys.has(componentNode.key)) {
|
|
231
189
|
seenKeys.add(componentNode.key);
|
|
232
190
|
allComponents.push(componentNode);
|
|
@@ -404,22 +362,6 @@ export function ComponentTree({ pageViewContext, itemDescriptor, item, isLoading
|
|
|
404
362
|
setNodeDictionary(dict);
|
|
405
363
|
setIsTreeReady(true);
|
|
406
364
|
}, [page, editContext?.showLayoutComponents]);
|
|
407
|
-
const { visibleRootNodes, effectiveExpandedKeys, isFiltering } = useMemo(() => {
|
|
408
|
-
const query = filter.trim();
|
|
409
|
-
if (!query) {
|
|
410
|
-
return {
|
|
411
|
-
visibleRootNodes: rootNodes,
|
|
412
|
-
effectiveExpandedKeys: expandedKeys,
|
|
413
|
-
isFiltering: false,
|
|
414
|
-
};
|
|
415
|
-
}
|
|
416
|
-
const filteredTree = filterComponentTreeNodes(rootNodes, query);
|
|
417
|
-
return {
|
|
418
|
-
visibleRootNodes: filteredTree.nodes,
|
|
419
|
-
effectiveExpandedKeys: filteredTree.expandedKeys,
|
|
420
|
-
isFiltering: true,
|
|
421
|
-
};
|
|
422
|
-
}, [expandedKeys, filter, rootNodes]);
|
|
423
365
|
const handleTreeSelection = useCallback((key, event) => {
|
|
424
366
|
let newKeys = [];
|
|
425
367
|
// Helper: gather visible component keys using current tree data and expanded state
|
|
@@ -429,12 +371,12 @@ export function ComponentTree({ pageViewContext, itemDescriptor, item, isLoading
|
|
|
429
371
|
for (const n of nodes) {
|
|
430
372
|
if (n.type === "component")
|
|
431
373
|
keys.push(n.key);
|
|
432
|
-
if (n.children &&
|
|
374
|
+
if (n.children && expandedKeys.includes(n.key)) {
|
|
433
375
|
visit(n.children);
|
|
434
376
|
}
|
|
435
377
|
}
|
|
436
378
|
};
|
|
437
|
-
visit(
|
|
379
|
+
visit(rootNodes);
|
|
438
380
|
return keys;
|
|
439
381
|
};
|
|
440
382
|
if (event.shiftKey) {
|
|
@@ -475,7 +417,6 @@ export function ComponentTree({ pageViewContext, itemDescriptor, item, isLoading
|
|
|
475
417
|
else {
|
|
476
418
|
newKeys = [key];
|
|
477
419
|
}
|
|
478
|
-
setSelectedKeys(newKeys);
|
|
479
420
|
const selectedComponentIds = Array.from(new Set(newKeys
|
|
480
421
|
.filter((k) => nodeDictionary[k]?.type === "component")
|
|
481
422
|
.map((k) => nodeDictionary[k].componentId)));
|
|
@@ -483,7 +424,7 @@ export function ComponentTree({ pageViewContext, itemDescriptor, item, isLoading
|
|
|
483
424
|
if (selectedComponentIds.length === 1) {
|
|
484
425
|
editContextRef.current?.setScrollIntoView(selectedComponentIds[0]);
|
|
485
426
|
}
|
|
486
|
-
}, [selectedKeys, nodeDictionary, editContextRef
|
|
427
|
+
}, [selectedKeys, nodeDictionary, editContextRef]);
|
|
487
428
|
// Handle tree context menu
|
|
488
429
|
const handleTreeContextMenu = async (node, event) => {
|
|
489
430
|
const componentId = nodeDictionary[node.key]?.componentId;
|
|
@@ -525,7 +466,7 @@ export function ComponentTree({ pageViewContext, itemDescriptor, item, isLoading
|
|
|
525
466
|
const insertOptions = getVisibleInsertOptions(placeholder.insertOptions);
|
|
526
467
|
const insertMenuItems = buildInsertMenuItems(insertOptions, async (x) => {
|
|
527
468
|
await editContextRef.current?.operations.addComponent(x.typeId, placeholder.key, 0, // Insert at the beginning by default
|
|
528
|
-
|
|
469
|
+
editContextRef.current?.currentItemDescriptor);
|
|
529
470
|
});
|
|
530
471
|
if (insertMenuItems.length > 0) {
|
|
531
472
|
// Add separator if there are existing menu items
|
|
@@ -544,7 +485,7 @@ export function ComponentTree({ pageViewContext, itemDescriptor, item, isLoading
|
|
|
544
485
|
editContextRef.current?.showContextMenu(event, menu);
|
|
545
486
|
};
|
|
546
487
|
// Convert expanded keys for PerfectTree
|
|
547
|
-
const expandedItems =
|
|
488
|
+
const expandedItems = expandedKeys;
|
|
548
489
|
// Convert selected keys for PerfectTree
|
|
549
490
|
const selectedItems = selectedKeys;
|
|
550
491
|
const handleCollapseItem = useCallback((key) => {
|
|
@@ -711,10 +652,8 @@ export function ComponentTree({ pageViewContext, itemDescriptor, item, isLoading
|
|
|
711
652
|
if (!component?.datasourceItem)
|
|
712
653
|
return;
|
|
713
654
|
pendingDragStartTimeoutRef.current = setTimeout(() => {
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
const language = pageLanguage;
|
|
717
|
-
const version = pageVersion;
|
|
655
|
+
const language = editContext.page.item.language;
|
|
656
|
+
const version = editContext.page.item.version;
|
|
718
657
|
const selectedIds = (editContext?.selection?.length || 0) > 1 &&
|
|
719
658
|
editContext.selection.includes(component.id)
|
|
720
659
|
? editContext.selection
|
|
@@ -754,32 +693,38 @@ export function ComponentTree({ pageViewContext, itemDescriptor, item, isLoading
|
|
|
754
693
|
}, []);
|
|
755
694
|
// Check if we have a valid page model
|
|
756
695
|
const hasPageModel = page && page.rootComponent && page.item;
|
|
696
|
+
// Check if the active slot is still loading its item/page
|
|
697
|
+
const activeSlotContext = editContext?.getActiveSlotContext?.();
|
|
698
|
+
const isSlotLoading = activeSlotContext?.isLoading ?? false;
|
|
757
699
|
const isRefreshing = editContext?.isRefreshing ?? false;
|
|
758
|
-
// Check if the page model failed to load (invalid page model)
|
|
759
|
-
// Only show error if page model is missing, not if page is just empty (no components)
|
|
760
|
-
const hasInvalidPageModel = !hasPageModel;
|
|
761
|
-
// Check if the tree is empty (no components/placeholders) - this is valid, not an error
|
|
762
|
-
const hasEmptyTree = !!hasPageModel &&
|
|
763
|
-
(!page?.rootComponent?.placeholders ||
|
|
764
|
-
page.rootComponent.placeholders.length === 0) &&
|
|
765
|
-
rootNodes.length <= 1 &&
|
|
766
|
-
(rootNodes.length === 0 || rootNodes[0]?.key === "page");
|
|
767
700
|
if (!page) {
|
|
768
701
|
// If item has no versions, show appropriate message instead of spinner
|
|
769
|
-
if (
|
|
702
|
+
if (editContext?.item?.versions === 0) {
|
|
770
703
|
return (_jsx("div", { className: "flex h-full items-center justify-center text-xs text-gray-500", children: "Item has no versions." }));
|
|
771
704
|
}
|
|
772
|
-
if (
|
|
705
|
+
if (editContext?.item?.hasLayout || isSlotLoading || isRefreshing) {
|
|
773
706
|
return (_jsx("div", { className: "flex h-full items-center justify-center text-xs text-gray-500", children: _jsx(Spinner, {}) }));
|
|
774
707
|
}
|
|
775
708
|
return (_jsx("div", { className: "flex h-full items-center justify-center text-xs text-gray-500", children: "This item has no layout." }));
|
|
776
709
|
}
|
|
710
|
+
// Check if the page model failed to load (invalid page model)
|
|
711
|
+
// Only show error if page model is missing, not if page is just empty (no components)
|
|
712
|
+
const hasInvalidPageModel = !hasPageModel;
|
|
713
|
+
// Check if the tree is empty (no components/placeholders) - this is valid, not an error
|
|
714
|
+
const hasEmptyTree = hasPageModel &&
|
|
715
|
+
(!page.rootComponent?.placeholders ||
|
|
716
|
+
page.rootComponent.placeholders.length === 0) &&
|
|
717
|
+
rootNodes.length <= 1 &&
|
|
718
|
+
(rootNodes.length === 0 || rootNodes[0]?.key === "page");
|
|
777
719
|
// If the page model is incomplete but we're still loading, show a spinner instead of error
|
|
778
720
|
if (hasInvalidPageModel && (!isTreeReady || isSlotLoading || isRefreshing)) {
|
|
779
721
|
return (_jsx("div", { className: "flex h-full items-center justify-center text-xs text-gray-500", children: _jsx(Spinner, {}) }));
|
|
780
722
|
}
|
|
781
|
-
|
|
782
|
-
|
|
723
|
+
// Get canWriteItem from active slot context if available, fallback to editContext.page
|
|
724
|
+
// Calculate once and reuse in both error and normal states
|
|
725
|
+
const canWriteItem = activeSlotContext?.primaryPageViewContext.page?.item.canWriteItem ??
|
|
726
|
+
activeSlotContext?.item?.canWriteItem ??
|
|
727
|
+
editContext?.page?.item.canWriteItem ??
|
|
783
728
|
false;
|
|
784
729
|
// Get insert mode state for toggle button
|
|
785
730
|
const insertMode = editContext?.insertMode ?? false;
|
|
@@ -801,57 +746,19 @@ export function ComponentTree({ pageViewContext, itemDescriptor, item, isLoading
|
|
|
801
746
|
return (_jsxs("div", { className: "flex h-full flex-col", children: [_jsxs("div", { className: "flex items-center justify-between border-b border-gray-200 px-2 py-1", children: [_jsx("div", { className: "flex items-center gap-1", children: _jsx(SimpleIconButton, { icon: _jsx(Plus, { strokeWidth: 1, className: "h-4 w-4" }), label: "Add component", size: "small", "data-testid": "component-tree-add-component", selected: insertMode, disabled: !canWriteItem ||
|
|
802
747
|
!editContext ||
|
|
803
748
|
editContext.readonly ||
|
|
804
|
-
editContext.mode !== "edit", onClick: toggleInsertMode }) }), _jsx("div", { className: "flex items-center gap-1", children: _jsx(SimpleIconButton, { icon: _jsx(LayoutTemplate, { strokeWidth: 1, className: "h-4 w-4" }), label: editContext?.showLayoutComponents ? "Hide layout" : "Show layout", size: "small", selected: editContext?.showLayoutComponents, "data-testid": "component-tree-toggle-layout", onClick: () => editContext?.setShowLayoutComponents(!editContext.showLayoutComponents) }) })] }), _jsx("div", { className: "
|
|
805
|
-
}
|
|
806
|
-
function renderNode(node, filter = "") {
|
|
807
|
-
const trimmedFilter = filter.trim();
|
|
808
|
-
const filterDetails = trimmedFilter ? getNodeFilterDetails(node) : null;
|
|
809
|
-
return (_jsxs("div", { className: `component-tree-node ${node.type ? `component-tree-${node.type}` : ""}`, "data-component-node": node.type === "component" ? "true" : undefined, "data-testid": "component-tree-node", "data-component-key": node.key, "data-component-type": node.type, children: [_jsxs("div", { className: "flex items-center gap-2 text-[12px] text-gray-600", children: [typeof node.icon === "string" ? (_jsx("i", { className: node.icon })) : (node.icon), _jsx("span", { className: node.className, "data-testid": "component-tree-node-label", children: highlightSearchMatch(node.label, trimmedFilter) }), node.tags?.map((x) => (_jsx("div", { children: _jsxs("span", { id: `id-${node.key}-${x.id}`, className: "ml-2 flex rounded p-0.5 px-1.5 text-xs text-white", style: {
|
|
810
|
-
backgroundColor: x.color,
|
|
811
|
-
marginLeft: "8px",
|
|
812
|
-
fontSize: "10px",
|
|
813
|
-
}, title: x.tooltip, onClick: x.onClick
|
|
814
|
-
? (e) => {
|
|
815
|
-
e.stopPropagation();
|
|
816
|
-
x.onClick();
|
|
817
|
-
}
|
|
818
|
-
: undefined, children: [x.icon, highlightSearchMatch(x.value, trimmedFilter)] }) }, `tag-${node.key}-${x.id}`)))] }), filterDetails ? (_jsx("div", { className: "ml-6 mt-0.5 truncate text-[10px] text-gray-400", title: filterDetails, children: highlightSearchMatch(filterDetails, trimmedFilter) })) : null] }));
|
|
819
|
-
}
|
|
820
|
-
function highlightSearchMatch(text, filter) {
|
|
821
|
-
if (!filter.trim())
|
|
822
|
-
return text;
|
|
823
|
-
const regex = new RegExp(`(${filter.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")})`, "gi");
|
|
824
|
-
return text.split(regex).map((part, index) => part.toLowerCase() === filter.toLowerCase() && part ? (_jsx("span", { className: "bg-yellow-200/80", children: part }, `${part}-${index}`)) : (part));
|
|
749
|
+
editContext.mode !== "edit", onClick: toggleInsertMode }) }), _jsx("div", { className: "flex items-center gap-1", children: _jsx(SimpleIconButton, { icon: _jsx(LayoutTemplate, { strokeWidth: 1, className: "h-4 w-4" }), label: editContext?.showLayoutComponents ? "Hide layout" : "Show layout", size: "small", selected: editContext?.showLayoutComponents, "data-testid": "component-tree-toggle-layout", onClick: () => editContext?.setShowLayoutComponents(!editContext.showLayoutComponents) }) })] }), _jsx("div", { className: "flex-1 p-2", ref: treeRef, "data-testid": "component-tree", children: _jsx(PerfectTree, { nodes: rootNodes, isDragging: !!editContext?.dragObject, multiDragNoun: "components", selectedKeys: selectedItems, expandedKeys: expandedItems, onToggleExpand: handleToggle, onSelect: handleTreeSelection, onContextMenu: handleTreeContextMenu, enableDragAndDrop: true, onDragOverZone: handleDragOverZone, isValidDropZone: handleIsValidDropZone, onStartDrag: handleStartDrag, onDragEnd: handleDragEnd, onDrop: handleDropZone, renderNode: (node) => renderNode(node) }) }), _jsx(ConfirmationDialog, { ref: confirmDialogRef })] }));
|
|
825
750
|
}
|
|
826
|
-
function
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
? `Placeholder: ${component.parentPlaceholder.key}`
|
|
838
|
-
: "",
|
|
839
|
-
]
|
|
840
|
-
.filter(Boolean)
|
|
841
|
-
.join(" | ");
|
|
842
|
-
}
|
|
843
|
-
if (node.type === "placeholder" && node.data) {
|
|
844
|
-
const placeholder = node.data;
|
|
845
|
-
return [
|
|
846
|
-
placeholder.key ? `Key: ${placeholder.key}` : "",
|
|
847
|
-
placeholder.description
|
|
848
|
-
? `Description: ${placeholder.description}`
|
|
849
|
-
: "",
|
|
850
|
-
]
|
|
851
|
-
.filter(Boolean)
|
|
852
|
-
.join(" | ");
|
|
853
|
-
}
|
|
854
|
-
return node.componentId ? `ID: ${node.componentId}` : null;
|
|
751
|
+
function renderNode(node) {
|
|
752
|
+
return (_jsx("div", { className: `component-tree-node ${node.type ? `component-tree-${node.type}` : ""}`, "data-component-node": node.type === "component" ? "true" : undefined, children: _jsxs("div", { className: "flex items-center gap-2 text-[12px] text-gray-600", children: [typeof node.icon === "string" ? (_jsx("i", { className: node.icon })) : (node.icon), _jsx("span", { className: node.className, children: node.label }), node.tags?.map((x) => (_jsx("div", { children: _jsxs("span", { id: `id-${node.key}-${x.id}`, className: "ml-2 flex rounded p-0.5 px-1.5 text-xs text-white", style: {
|
|
753
|
+
backgroundColor: x.color,
|
|
754
|
+
marginLeft: "8px",
|
|
755
|
+
fontSize: "10px",
|
|
756
|
+
}, title: x.tooltip, onClick: x.onClick
|
|
757
|
+
? (e) => {
|
|
758
|
+
e.stopPropagation();
|
|
759
|
+
x.onClick();
|
|
760
|
+
}
|
|
761
|
+
: undefined, children: [x.icon, x.value] }) }, `tag-${node.key}-${x.id}`)))] }) }));
|
|
855
762
|
}
|
|
856
763
|
function createMap(treeNodes, nodeDictionary) {
|
|
857
764
|
treeNodes.forEach((n) => {
|
|
@@ -880,58 +787,4 @@ function hasSameProps(obj1, obj2) {
|
|
|
880
787
|
}
|
|
881
788
|
return false;
|
|
882
789
|
}
|
|
883
|
-
function addSearchValue(values, value) {
|
|
884
|
-
if (!value)
|
|
885
|
-
return;
|
|
886
|
-
const trimmed = value.trim();
|
|
887
|
-
if (trimmed) {
|
|
888
|
-
values.push(trimmed);
|
|
889
|
-
}
|
|
890
|
-
}
|
|
891
|
-
function getNodeSearchText(node) {
|
|
892
|
-
const values = [];
|
|
893
|
-
addSearchValue(values, node.label);
|
|
894
|
-
addSearchValue(values, getNodeFilterDetails(node));
|
|
895
|
-
addSearchValue(values, node.type);
|
|
896
|
-
node.tags?.forEach((tag) => {
|
|
897
|
-
addSearchValue(values, tag.id);
|
|
898
|
-
addSearchValue(values, tag.value);
|
|
899
|
-
});
|
|
900
|
-
return values.join(" ").toLowerCase();
|
|
901
|
-
}
|
|
902
|
-
function filterComponentTreeNodes(nodes, filter) {
|
|
903
|
-
const normalizedFilter = filter.trim().toLowerCase();
|
|
904
|
-
if (!normalizedFilter) {
|
|
905
|
-
return { nodes, expandedKeys: [] };
|
|
906
|
-
}
|
|
907
|
-
const expandedKeys = new Set();
|
|
908
|
-
const filterNode = (node, ancestors) => {
|
|
909
|
-
const filteredChildren = Array.isArray(node.children)
|
|
910
|
-
? node.children
|
|
911
|
-
.map((child) => filterNode(child, [...ancestors, node.key]))
|
|
912
|
-
.filter((child) => child !== null)
|
|
913
|
-
: node.children;
|
|
914
|
-
const hasMatchingChildren = Array.isArray(filteredChildren) && filteredChildren.length > 0;
|
|
915
|
-
const nodeMatches = getNodeSearchText(node).includes(normalizedFilter);
|
|
916
|
-
if (!nodeMatches && !hasMatchingChildren) {
|
|
917
|
-
return null;
|
|
918
|
-
}
|
|
919
|
-
ancestors.forEach((ancestorKey) => expandedKeys.add(ancestorKey));
|
|
920
|
-
if (hasMatchingChildren) {
|
|
921
|
-
expandedKeys.add(node.key);
|
|
922
|
-
}
|
|
923
|
-
return {
|
|
924
|
-
...node,
|
|
925
|
-
children: Array.isArray(node.children)
|
|
926
|
-
? filteredChildren
|
|
927
|
-
: node.children,
|
|
928
|
-
};
|
|
929
|
-
};
|
|
930
|
-
return {
|
|
931
|
-
nodes: nodes
|
|
932
|
-
.map((node) => filterNode(node, []))
|
|
933
|
-
.filter((node) => node !== null),
|
|
934
|
-
expandedKeys: Array.from(expandedKeys),
|
|
935
|
-
};
|
|
936
|
-
}
|
|
937
790
|
//# sourceMappingURL=ComponentTree.js.map
|