@parhelia/core 0.1.12903 → 0.1.12905
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 -8
- package/dist/agents-view/AgentCard.js +175 -80
- package/dist/agents-view/AgentCard.js.map +1 -1
- package/dist/agents-view/AgentsInbox.d.ts +26 -0
- package/dist/agents-view/AgentsInbox.js +31 -0
- package/dist/agents-view/AgentsInbox.js.map +1 -0
- package/dist/agents-view/AgentsSidebar.d.ts +11 -4
- package/dist/agents-view/AgentsSidebar.js +14 -10
- package/dist/agents-view/AgentsSidebar.js.map +1 -1
- package/dist/agents-view/AgentsTitlebar.d.ts +3 -2
- package/dist/agents-view/AgentsTitlebar.js +7 -6
- package/dist/agents-view/AgentsTitlebar.js.map +1 -1
- package/dist/agents-view/AgentsView.d.ts +7 -27
- package/dist/agents-view/AgentsView.js +294 -126
- package/dist/agents-view/AgentsView.js.map +1 -1
- package/dist/agents-view/AgentsWorkspaceView.d.ts +1 -1
- package/dist/agents-view/AgentsWorkspaceView.js +106 -150
- package/dist/agents-view/AgentsWorkspaceView.js.map +1 -1
- package/dist/agents-view/CreateAgentView.d.ts +1 -1
- package/dist/agents-view/CreateAgentView.js +2 -2
- package/dist/agents-view/CreateAgentView.js.map +1 -1
- package/dist/agents-view/ProfileAgentsGroup.d.ts +4 -4
- package/dist/agents-view/ProfileAgentsGroup.js +10 -22
- package/dist/agents-view/ProfileAgentsGroup.js.map +1 -1
- package/dist/components/Error.d.ts +9 -0
- package/dist/components/Error.js +24 -0
- package/dist/components/Error.js.map +1 -0
- package/dist/components/FilterInput.d.ts +22 -0
- package/dist/components/FilterInput.js +29 -0
- package/dist/components/FilterInput.js.map +1 -0
- package/dist/components/MarkdownDisplay.js +16 -29
- package/dist/components/MarkdownDisplay.js.map +1 -1
- package/dist/components/PageHeader.d.ts +1 -5
- package/dist/components/PageHeader.js +3 -3
- package/dist/components/PageHeader.js.map +1 -1
- package/dist/components/index.d.ts +2 -4
- package/dist/components/index.js +1 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/ui/LanguageSelector.d.ts +1 -6
- package/dist/components/ui/LanguageSelector.js +6 -10
- package/dist/components/ui/LanguageSelector.js.map +1 -1
- package/dist/components/ui/PlaceholderInput.d.ts +8 -0
- package/dist/components/ui/PlaceholderInput.js +43 -2
- package/dist/components/ui/PlaceholderInput.js.map +1 -1
- package/dist/components/ui/PlaceholderInputTypes.d.ts +1 -1
- package/dist/components/ui/PlaceholderInputTypes.js +1 -1
- package/dist/components/ui/PlaceholderInputTypes.js.map +1 -1
- package/dist/components/ui/PlaceholderItemSelector.js +3 -3
- package/dist/components/ui/PlaceholderItemSelector.js.map +1 -1
- package/dist/components/ui/alert-dialog.d.ts +1 -1
- package/dist/components/ui/alert-dialog.js +8 -8
- package/dist/components/ui/alert-dialog.js.map +1 -1
- package/dist/components/ui/alert.d.ts +2 -3
- package/dist/components/ui/alert.js +4 -9
- package/dist/components/ui/alert.js.map +1 -1
- package/dist/components/ui/badge.d.ts +3 -8
- package/dist/components/ui/badge.js +8 -18
- package/dist/components/ui/badge.js.map +1 -1
- package/dist/components/ui/breadcrumb.d.ts +1 -1
- package/dist/components/ui/breadcrumb.js +5 -5
- package/dist/components/ui/breadcrumb.js.map +1 -1
- package/dist/components/ui/button.d.ts +4 -9
- package/dist/components/ui/button.js +14 -20
- package/dist/components/ui/button.js.map +1 -1
- package/dist/components/ui/card.d.ts +1 -4
- package/dist/components/ui/card.js +4 -4
- package/dist/components/ui/card.js.map +1 -1
- package/dist/components/ui/checkbox.js +1 -1
- package/dist/components/ui/checkbox.js.map +1 -1
- package/dist/components/ui/command.d.ts +1 -2
- package/dist/components/ui/command.js +4 -8
- package/dist/components/ui/command.js.map +1 -1
- package/dist/components/ui/context-menu.d.ts +3 -17
- package/dist/components/ui/context-menu.js +68 -132
- package/dist/components/ui/context-menu.js.map +1 -1
- package/dist/components/ui/copy-button.js +3 -4
- package/dist/components/ui/copy-button.js.map +1 -1
- package/dist/components/ui/dialog.d.ts +3 -3
- package/dist/components/ui/dialog.js +7 -30
- package/dist/components/ui/dialog.js.map +1 -1
- package/dist/components/ui/dropdown-menu.js +5 -5
- package/dist/components/ui/dropdown-menu.js.map +1 -1
- package/dist/components/ui/input.js +2 -2
- package/dist/components/ui/input.js.map +1 -1
- package/dist/components/ui/label.js +1 -1
- package/dist/components/ui/menubar.d.ts +26 -0
- package/dist/components/ui/menubar.js +55 -0
- package/dist/components/ui/menubar.js.map +1 -0
- 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 +4 -22
- package/dist/components/ui/popover.js.map +1 -1
- package/dist/components/ui/progress.js +2 -2
- package/dist/components/ui/progress.js.map +1 -1
- package/dist/components/ui/select.js +4 -3
- package/dist/components/ui/select.js.map +1 -1
- package/dist/components/ui/sonner.js +2 -28
- package/dist/components/ui/sonner.js.map +1 -1
- package/dist/components/ui/styled-dialog-title.js +2 -2
- package/dist/components/ui/styled-dialog-title.js.map +1 -1
- package/dist/components/ui/switch.js +1 -1
- package/dist/components/ui/switch.js.map +1 -1
- package/dist/components/ui/tabs.js +3 -3
- package/dist/components/ui/tabs.js.map +1 -1
- package/dist/components/ui/textarea.js +2 -2
- package/dist/components/ui/textarea.js.map +1 -1
- package/dist/components/ui/tooltip.js +1 -1
- package/dist/components/ui/tooltip.js.map +1 -1
- package/dist/config/config.js +69 -313
- package/dist/config/config.js.map +1 -1
- package/dist/config/notificationRoutes.js +10 -111
- package/dist/config/notificationRoutes.js.map +1 -1
- package/dist/config/types/index.d.ts +2 -0
- package/dist/config/types/index.js +4 -0
- package/dist/config/types/index.js.map +1 -0
- package/dist/config/types/sidebar.d.ts +0 -4
- package/dist/config/types/workspace.d.ts +2 -13
- package/dist/config/types.d.ts +3 -17
- package/dist/config/types.js.map +1 -1
- package/dist/editor/AdminRequiredView.js +2 -4
- package/dist/editor/AdminRequiredView.js.map +1 -1
- package/dist/editor/AspectRatioSelector.js +25 -28
- package/dist/editor/AspectRatioSelector.js.map +1 -1
- package/dist/editor/ConcurrentUserLimitDialog.js +4 -11
- package/dist/editor/ConcurrentUserLimitDialog.js.map +1 -1
- package/dist/editor/ConfirmationDialog.js +2 -6
- package/dist/editor/ConfirmationDialog.js.map +1 -1
- package/dist/editor/ContentTree.d.ts +1 -19
- package/dist/editor/ContentTree.js +30 -99
- package/dist/editor/ContentTree.js.map +1 -1
- package/dist/editor/ContextMenu.d.ts +0 -1
- package/dist/editor/ContextMenu.js +11 -9
- package/dist/editor/ContextMenu.js.map +1 -1
- package/dist/editor/DeleteItemsWarning.js +2 -2
- package/dist/editor/DeleteItemsWarning.js.map +1 -1
- package/dist/editor/Editor.d.ts +1 -1
- package/dist/editor/Editor.js +9 -29
- package/dist/editor/Editor.js.map +1 -1
- package/dist/editor/EditorWarning.js +4 -4
- package/dist/editor/EditorWarning.js.map +1 -1
- package/dist/editor/FieldActionsOverlay.d.ts +1 -0
- package/dist/editor/FieldActionsOverlay.js +25 -8
- package/dist/editor/FieldActionsOverlay.js.map +1 -1
- package/dist/editor/FieldEditorPopup.js +2 -2
- package/dist/editor/FieldEditorPopup.js.map +1 -1
- package/dist/editor/FieldHistory.d.ts +1 -2
- package/dist/editor/FieldHistory.js +15 -23
- package/dist/editor/FieldHistory.js.map +1 -1
- package/dist/editor/FieldList.js +2 -2
- package/dist/editor/FieldList.js.map +1 -1
- package/dist/editor/FieldListField.d.ts +1 -1
- package/dist/editor/FieldListField.js +60 -69
- package/dist/editor/FieldListField.js.map +1 -1
- package/dist/editor/FieldListFieldWithFallbacks.js +3 -4
- package/dist/editor/FieldListFieldWithFallbacks.js.map +1 -1
- package/dist/editor/FloatingToolbar.d.ts +7 -0
- package/dist/editor/FloatingToolbar.js +91 -0
- package/dist/editor/FloatingToolbar.js.map +1 -0
- package/dist/editor/GlobalMenuBar.js +19 -28
- package/dist/editor/GlobalMenuBar.js.map +1 -1
- package/dist/editor/ImageEditButton.js +3 -3
- package/dist/editor/ImageEditButton.js.map +1 -1
- package/dist/editor/ImageEditor.d.ts +1 -6
- package/dist/editor/ImageEditor.js +4 -21
- package/dist/editor/ImageEditor.js.map +1 -1
- package/dist/editor/ItemInfo.js +7 -10
- package/dist/editor/ItemInfo.js.map +1 -1
- package/dist/editor/LinkEditorDialog.d.ts +2 -9
- package/dist/editor/LinkEditorDialog.js +60 -183
- package/dist/editor/LinkEditorDialog.js.map +1 -1
- package/dist/editor/MainLayout.js +16 -121
- package/dist/editor/MainLayout.js.map +1 -1
- package/dist/editor/MigrationsView.js +35 -16
- package/dist/editor/MigrationsView.js.map +1 -1
- package/dist/editor/MobileLayout.js +3 -35
- package/dist/editor/MobileLayout.js.map +1 -1
- package/dist/editor/NewEditorClient.d.ts +5 -0
- package/dist/editor/NewEditorClient.js +7 -0
- package/dist/editor/NewEditorClient.js.map +1 -0
- package/dist/editor/PictureCropper.js +58 -116
- package/dist/editor/PictureCropper.js.map +1 -1
- package/dist/editor/PictureEditor.d.ts +1 -2
- package/dist/editor/PictureEditor.js +19 -17
- package/dist/editor/PictureEditor.js.map +1 -1
- package/dist/editor/PictureEditorDialog.d.ts +8 -0
- package/dist/editor/PictureEditorDialog.js +198 -0
- package/dist/editor/PictureEditorDialog.js.map +1 -0
- package/dist/editor/QuickItemSwitcher.js +9 -9
- package/dist/editor/QuickItemSwitcher.js.map +1 -1
- package/dist/editor/SetupLoadingScreen.d.ts +5 -0
- package/dist/editor/SetupLoadingScreen.js +11 -0
- package/dist/editor/SetupLoadingScreen.js.map +1 -0
- package/dist/editor/SetupWizard.js +13 -17
- package/dist/editor/SetupWizard.js.map +1 -1
- package/dist/editor/Titlebar.d.ts +1 -1
- package/dist/editor/Titlebar.js +2 -2
- package/dist/editor/Titlebar.js.map +1 -1
- package/dist/editor/ai/AgentBanners.js +16 -0
- package/dist/editor/ai/AgentBanners.js.map +1 -0
- package/dist/editor/ai/AgentCostDisplay.js +116 -0
- package/dist/editor/ai/AgentCostDisplay.js.map +1 -0
- package/dist/editor/ai/AgentDocumentList.d.ts +12 -0
- package/dist/editor/ai/AgentDocumentList.js +335 -0
- package/dist/editor/ai/AgentDocumentList.js.map +1 -0
- package/dist/editor/ai/AgentGreeting.d.ts +8 -0
- package/dist/editor/ai/AgentGreeting.js +14 -0
- package/dist/editor/ai/AgentGreeting.js.map +1 -0
- package/dist/editor/ai/AgentInlineDialogContent.js +2 -2
- package/dist/editor/ai/AgentInlineDialogContent.js.map +1 -1
- package/dist/editor/ai/AgentPanesGrid.js +7 -8
- package/dist/editor/ai/AgentPanesGrid.js.map +1 -1
- package/dist/editor/ai/AgentProfileSelector.d.ts +0 -1
- package/dist/editor/ai/AgentProfileSelector.js +9 -11
- package/dist/editor/ai/AgentProfileSelector.js.map +1 -1
- package/dist/editor/ai/AgentSharingSection.js +9 -22
- package/dist/editor/ai/AgentSharingSection.js.map +1 -1
- package/dist/editor/ai/AgentStatusBadge.js +21 -13
- package/dist/editor/ai/AgentStatusBadge.js.map +1 -1
- package/dist/editor/ai/AgentTerminal.d.ts +38 -2
- package/dist/editor/ai/AgentTerminal.js +6503 -6
- package/dist/editor/ai/AgentTerminal.js.map +1 -1
- package/dist/editor/ai/AgentTerminalStatusBar.d.ts +72 -0
- package/dist/editor/ai/AgentTerminalStatusBar.js +888 -0
- package/dist/editor/ai/AgentTerminalStatusBar.js.map +1 -0
- package/dist/editor/ai/Agents.js +397 -278
- package/dist/editor/ai/Agents.js.map +1 -1
- package/dist/editor/ai/AiResponseMessage.d.ts +33 -0
- package/dist/editor/ai/AiResponseMessage.js +1239 -0
- package/dist/editor/ai/AiResponseMessage.js.map +1 -0
- package/dist/editor/ai/ContentInspectorPopover.js +19 -24
- package/dist/editor/ai/ContentInspectorPopover.js.map +1 -1
- package/dist/editor/ai/ContextInfoBar.d.ts +14 -0
- package/dist/editor/ai/ContextInfoBar.js +653 -0
- package/dist/editor/ai/ContextInfoBar.js.map +1 -0
- package/dist/editor/ai/DancingDots.d.ts +1 -0
- package/dist/editor/ai/DancingDots.js +6 -0
- package/dist/editor/ai/DancingDots.js.map +1 -0
- package/dist/editor/ai/EditOperationsPanel.d.ts +7 -0
- package/dist/editor/ai/EditOperationsPanel.js +91 -0
- package/dist/editor/ai/EditOperationsPanel.js.map +1 -0
- package/dist/editor/ai/GuidanceOverlay.js +19 -12
- package/dist/editor/ai/GuidanceOverlay.js.map +1 -1
- package/dist/editor/ai/HeartbeatDiagnosticsPanel.d.ts +2 -2
- package/dist/editor/ai/HeartbeatDiagnosticsPanel.js +31 -55
- package/dist/editor/ai/HeartbeatDiagnosticsPanel.js.map +1 -1
- package/dist/editor/ai/HeartbeatMessage.d.ts +4 -0
- package/dist/editor/ai/HeartbeatMessage.js +7 -0
- package/dist/editor/ai/HeartbeatMessage.js.map +1 -0
- package/dist/editor/ai/InitialThinkingSplash.d.ts +3 -0
- package/dist/editor/ai/InitialThinkingSplash.js +9 -0
- package/dist/editor/ai/InitialThinkingSplash.js.map +1 -0
- package/dist/editor/ai/InlineAiDialog.d.ts +0 -6
- package/dist/editor/ai/InlineAiDialog.js +277 -411
- package/dist/editor/ai/InlineAiDialog.js.map +1 -1
- package/dist/editor/ai/InlineAiTrigger.js +37 -242
- package/dist/editor/ai/InlineAiTrigger.js.map +1 -1
- package/dist/editor/ai/MediaImage.js +5 -5
- package/dist/editor/ai/MediaImage.js.map +1 -1
- package/dist/editor/ai/QueuedPromptsPanel.d.ts +4 -0
- package/dist/editor/ai/QueuedPromptsPanel.js +37 -0
- package/dist/editor/ai/QueuedPromptsPanel.js.map +1 -0
- package/dist/editor/ai/SpawnedAgentsPanel.d.ts +6 -0
- package/dist/editor/ai/SpawnedAgentsPanel.js +101 -0
- package/dist/editor/ai/SpawnedAgentsPanel.js.map +1 -0
- package/dist/editor/ai/TimeWithTooltip.js +4 -2
- package/dist/editor/ai/TimeWithTooltip.js.map +1 -1
- package/dist/editor/ai/TodoListPanel.d.ts +5 -0
- package/dist/editor/ai/TodoListPanel.js +113 -0
- package/dist/editor/ai/TodoListPanel.js.map +1 -0
- package/dist/editor/ai/ToolCallDisplay.d.ts +80 -0
- package/dist/editor/ai/ToolCallDisplay.js +865 -0
- package/dist/editor/ai/ToolCallDisplay.js.map +1 -0
- package/dist/editor/ai/UserMessage.d.ts +4 -0
- package/dist/editor/ai/UserMessage.js +42 -0
- package/dist/editor/ai/UserMessage.js.map +1 -0
- package/dist/editor/ai/agentDiagnostics.d.ts +0 -26
- package/dist/editor/ai/agentDiagnostics.js +1 -41
- package/dist/editor/ai/agentDiagnostics.js.map +1 -1
- package/dist/editor/ai/agentDiagnostics.test.js +181 -0
- package/dist/editor/ai/agentDiagnostics.test.js.map +1 -0
- package/dist/editor/ai/agentDialogRegistry.js.map +1 -1
- package/dist/editor/ai/agentMessageHelpers.js.map +1 -1
- package/dist/editor/ai/agentMessageMarkdown.js +10 -10
- package/dist/editor/ai/agentMessageMarkdown.js.map +1 -1
- package/dist/editor/ai/agentTodoExtraction.d.ts +1 -7
- package/dist/editor/ai/agentTodoExtraction.js +0 -33
- package/dist/editor/ai/agentTodoExtraction.js.map +1 -1
- package/dist/editor/ai/agentWatchdogStatusRegistry.d.ts +0 -1
- package/dist/editor/ai/agentWatchdogStatusRegistry.js.map +1 -1
- package/dist/editor/ai/dialogs/AgentDialogHandler.js +13 -89
- package/dist/editor/ai/dialogs/AgentDialogHandler.js.map +1 -1
- package/dist/editor/ai/dialogs/ComponentTypeSelectorInline.js +12 -13
- package/dist/editor/ai/dialogs/ComponentTypeSelectorInline.js.map +1 -1
- package/dist/editor/ai/dialogs/QuestionnaireInline.js +84 -58
- package/dist/editor/ai/dialogs/QuestionnaireInline.js.map +1 -1
- package/dist/editor/ai/dialogs/agentDialogTypes.d.ts +0 -18
- package/dist/editor/ai/dialogs/agentDialogTypes.js +0 -5
- package/dist/editor/ai/dialogs/agentDialogTypes.js.map +1 -1
- package/dist/editor/ai/dialogs/browserBoundCapture.d.ts +9 -6
- package/dist/editor/ai/dialogs/browserBoundCapture.js +27 -18
- package/dist/editor/ai/dialogs/browserBoundCapture.js.map +1 -1
- package/dist/editor/ai/dialogs/capturePageDom.js +35 -50
- package/dist/editor/ai/dialogs/capturePageDom.js.map +1 -1
- package/dist/editor/ai/dialogs/capturePageScreenshot.d.ts +1 -27
- package/dist/editor/ai/dialogs/capturePageScreenshot.js +159 -270
- package/dist/editor/ai/dialogs/capturePageScreenshot.js.map +1 -1
- package/dist/editor/ai/types.d.ts +1 -1
- package/dist/editor/ai/useAgentPanes.d.ts +1 -1
- package/dist/editor/ai/useAgentPanes.js +5 -33
- package/dist/editor/ai/useAgentPanes.js.map +1 -1
- package/dist/editor/ai/useAgentPanes.test.d.ts +1 -0
- package/dist/editor/ai/useAgentPanes.test.js +198 -0
- package/dist/editor/ai/useAgentPanes.test.js.map +1 -0
- package/dist/editor/ai/useAgentStatus.js +1 -3
- package/dist/editor/ai/useAgentStatus.js.map +1 -1
- package/dist/editor/ai/useInlineAiPosition.d.ts +2 -10
- package/dist/editor/ai/useInlineAiPosition.js +86 -69
- package/dist/editor/ai/useInlineAiPosition.js.map +1 -1
- package/dist/editor/ai-image-editor/AiImageEditorDialog.js +26 -137
- package/dist/editor/ai-image-editor/AiImageEditorDialog.js.map +1 -1
- package/dist/editor/ai-image-editor/AiImageResultOverlay.js +64 -32
- package/dist/editor/ai-image-editor/AiImageResultOverlay.js.map +1 -1
- package/dist/editor/client/AboutDialog.js +6 -18
- package/dist/editor/client/AboutDialog.js.map +1 -1
- package/dist/editor/client/EditorShell.d.ts +5 -2
- package/dist/editor/client/EditorShell.js +253 -736
- package/dist/editor/client/EditorShell.js.map +1 -1
- package/dist/editor/client/GenericDialog.d.ts +10 -0
- package/dist/editor/client/GenericDialog.js +25 -0
- package/dist/editor/client/GenericDialog.js.map +1 -0
- package/dist/editor/client/OperationDialogContent.js +3 -3
- package/dist/editor/client/OperationDialogContent.js.map +1 -1
- package/dist/editor/client/editContext.d.ts +13 -127
- package/dist/editor/client/editContext.js +7 -3
- package/dist/editor/client/editContext.js.map +1 -1
- package/dist/editor/client/fieldModificationStore.d.ts +2 -6
- package/dist/editor/client/fieldModificationStore.js +23 -38
- package/dist/editor/client/fieldModificationStore.js.map +1 -1
- package/dist/editor/client/helpers.js +3 -3
- package/dist/editor/client/helpers.js.map +1 -1
- package/dist/editor/client/hooks/useEditorWebSocket.d.ts +0 -3
- package/dist/editor/client/hooks/useEditorWebSocket.js +18 -224
- package/dist/editor/client/hooks/useEditorWebSocket.js.map +1 -1
- package/dist/editor/client/hooks/useMediaSelector.js.map +1 -1
- package/dist/editor/client/hooks/useSocketMessageHandler.d.ts +0 -4
- package/dist/editor/client/hooks/useSocketMessageHandler.js +86 -127
- package/dist/editor/client/hooks/useSocketMessageHandler.js.map +1 -1
- package/dist/editor/client/hooks/useWorkbox.d.ts +0 -2
- package/dist/editor/client/hooks/useWorkbox.js +33 -76
- package/dist/editor/client/hooks/useWorkbox.js.map +1 -1
- package/dist/editor/client/itemsRepository.d.ts +5 -10
- package/dist/editor/client/itemsRepository.js +46 -48
- package/dist/editor/client/itemsRepository.js.map +1 -1
- package/dist/editor/client/operations.d.ts +5 -20
- package/dist/editor/client/operations.js +136 -407
- package/dist/editor/client/operations.js.map +1 -1
- package/dist/editor/client/pageModelBuilder.d.ts +0 -2
- package/dist/editor/client/pageModelBuilder.js +20 -89
- package/dist/editor/client/pageModelBuilder.js.map +1 -1
- package/dist/editor/client/ui/DevModeIndicator.js +1 -1
- package/dist/editor/client/ui/DevModeIndicator.js.map +1 -1
- package/dist/editor/client/ui/EditorChrome.js +4 -11
- package/dist/editor/client/ui/EditorChrome.js.map +1 -1
- package/dist/editor/client/ui/FullscreenControls.js +5 -5
- package/dist/editor/client/ui/FullscreenControls.js.map +1 -1
- package/dist/editor/client/waitForEditOperationTerminal.d.ts +0 -1
- package/dist/editor/client/waitForEditOperationTerminal.js +1 -1
- package/dist/editor/client/waitForEditOperationTerminal.js.map +1 -1
- package/dist/editor/commands/agentCommands.js +1 -1
- package/dist/editor/commands/agentCommands.js.map +1 -1
- package/dist/editor/commands/commands.js.map +1 -1
- package/dist/editor/commands/componentCommands.d.ts +3 -13
- package/dist/editor/commands/componentCommands.js +7 -77
- package/dist/editor/commands/componentCommands.js.map +1 -1
- package/dist/editor/commands/createVersionCommand.js +2 -6
- package/dist/editor/commands/createVersionCommand.js.map +1 -1
- package/dist/editor/commands/customCommandConverter.js +8 -10
- package/dist/editor/commands/customCommandConverter.js.map +1 -1
- package/dist/editor/commands/handlers/agentHandler.js.map +1 -1
- package/dist/editor/commands/handlers/uiActionHandlers.d.ts +0 -1
- package/dist/editor/commands/handlers/uiActionHandlers.js +3 -30
- package/dist/editor/commands/handlers/uiActionHandlers.js.map +1 -1
- package/dist/editor/commands/itemCommands.js +27 -24
- package/dist/editor/commands/itemCommands.js.map +1 -1
- package/dist/editor/commands/keyboardCommands.d.ts +0 -6
- package/dist/editor/commands/keyboardCommands.js +2 -78
- package/dist/editor/commands/keyboardCommands.js.map +1 -1
- package/dist/editor/commands/localizeItem/LocalizeItemDialog.d.ts +8 -0
- package/dist/editor/commands/localizeItem/LocalizeItemDialog.js +91 -0
- package/dist/editor/commands/localizeItem/LocalizeItemDialog.js.map +1 -0
- package/dist/editor/commands/templateBuilderCommands.js.map +1 -1
- package/dist/editor/commands/undo.js +6 -10
- package/dist/editor/commands/undo.js.map +1 -1
- package/dist/editor/content-tree/IndicatorSettings.js +4 -5
- package/dist/editor/content-tree/IndicatorSettings.js.map +1 -1
- package/dist/editor/content-tree/TreeOptions.js +1 -1
- package/dist/editor/content-tree/TreeSettingsMenu.js +3 -7
- package/dist/editor/content-tree/TreeSettingsMenu.js.map +1 -1
- package/dist/editor/content-tree/index.d.ts +3 -0
- package/dist/editor/content-tree/index.js +4 -0
- package/dist/editor/content-tree/index.js.map +1 -0
- package/dist/editor/context-menu/CopyMoveMenu.d.ts +7 -0
- package/dist/editor/context-menu/CopyMoveMenu.js +58 -0
- package/dist/editor/context-menu/CopyMoveMenu.js.map +1 -0
- package/dist/editor/context-menu/InsertMenu.js +9 -9
- package/dist/editor/context-menu/InsertMenu.js.map +1 -1
- package/dist/editor/editor-warnings/FinalWorkflowStateReadOnly.js +0 -5
- package/dist/editor/editor-warnings/FinalWorkflowStateReadOnly.js.map +1 -1
- package/dist/editor/editor-warnings/ItemLocked.js +3 -6
- package/dist/editor/editor-warnings/ItemLocked.js.map +1 -1
- package/dist/editor/field-types/AttachmentEditor.js +4 -42
- package/dist/editor/field-types/AttachmentEditor.js.map +1 -1
- package/dist/editor/field-types/CheckboxEditor.js +1 -3
- package/dist/editor/field-types/CheckboxEditor.js.map +1 -1
- package/dist/editor/field-types/DateFieldEditor.js +1 -1
- package/dist/editor/field-types/DateFieldEditor.js.map +1 -1
- package/dist/editor/field-types/DateTimeFieldEditor.js +1 -1
- package/dist/editor/field-types/DateTimeFieldEditor.js.map +1 -1
- package/dist/editor/field-types/DropLinkEditor.js +16 -31
- package/dist/editor/field-types/DropLinkEditor.js.map +1 -1
- package/dist/editor/field-types/DropListEditor.js +1 -1
- package/dist/editor/field-types/DropListEditor.js.map +1 -1
- package/dist/editor/field-types/ImageFieldEditor.js +1 -1
- package/dist/editor/field-types/ImageFieldEditor.js.map +1 -1
- package/dist/editor/field-types/InternalLinkFieldEditor.js +9 -18
- package/dist/editor/field-types/InternalLinkFieldEditor.js.map +1 -1
- package/dist/editor/field-types/LinkFieldEditor.js +3 -15
- package/dist/editor/field-types/LinkFieldEditor.js.map +1 -1
- package/dist/editor/field-types/MultiLineText.js +9 -35
- package/dist/editor/field-types/MultiLineText.js.map +1 -1
- package/dist/editor/field-types/NameValueListEditor.js +3 -7
- package/dist/editor/field-types/NameValueListEditor.js.map +1 -1
- package/dist/editor/field-types/PictureFieldEditor.js +13 -19
- package/dist/editor/field-types/PictureFieldEditor.js.map +1 -1
- package/dist/editor/field-types/RawEditor.js +2 -9
- package/dist/editor/field-types/RawEditor.js.map +1 -1
- package/dist/editor/field-types/RichTextEditor.js +10 -31
- package/dist/editor/field-types/RichTextEditor.js.map +1 -1
- package/dist/editor/field-types/RichTextEditorComponent.js +81 -194
- package/dist/editor/field-types/RichTextEditorComponent.js.map +1 -1
- package/dist/editor/field-types/SingleLineText.js +5 -31
- package/dist/editor/field-types/SingleLineText.js.map +1 -1
- package/dist/editor/field-types/TreeListEditor.js +9 -72
- package/dist/editor/field-types/TreeListEditor.js.map +1 -1
- package/dist/editor/field-types/richtext/components/EditorDropdown.css +6 -7
- package/dist/editor/field-types/richtext/components/EditorDropdown.d.ts +5 -5
- package/dist/editor/field-types/richtext/components/EditorDropdown.js +20 -21
- package/dist/editor/field-types/richtext/components/EditorDropdown.js.map +1 -1
- package/dist/editor/field-types/richtext/components/ReactSlate.css +31 -108
- package/dist/editor/field-types/richtext/components/ReactSlate.js +50 -240
- package/dist/editor/field-types/richtext/components/ReactSlate.js.map +1 -1
- package/dist/editor/field-types/richtext/components/SimpleDropdown.js +6 -11
- package/dist/editor/field-types/richtext/components/SimpleDropdown.js.map +1 -1
- package/dist/editor/field-types/richtext/components/SimpleRichTextEditor.css +16 -32
- package/dist/editor/field-types/richtext/components/SimpleRichTextEditor.js +2 -26
- package/dist/editor/field-types/richtext/components/SimpleRichTextEditor.js.map +1 -1
- package/dist/editor/field-types/richtext/components/SimpleToolbar.js +4 -5
- package/dist/editor/field-types/richtext/components/SimpleToolbar.js.map +1 -1
- package/dist/editor/field-types/richtext/components/SimpleToolbarButton.js +2 -4
- package/dist/editor/field-types/richtext/components/SimpleToolbarButton.js.map +1 -1
- package/dist/editor/field-types/richtext/components/ToolbarButton.js +3 -3
- package/dist/editor/field-types/richtext/components/ToolbarButton.js.map +1 -1
- package/dist/editor/field-types/richtext/config/pluginFactory.d.ts +1 -1
- package/dist/editor/field-types/richtext/config/pluginFactory.js +1 -1
- package/dist/editor/field-types/richtext/config/pluginFactory.js.map +1 -1
- package/dist/editor/field-types/richtext/contextMenuFactory.d.ts +14 -2
- package/dist/editor/field-types/richtext/contextMenuFactory.js +379 -4
- package/dist/editor/field-types/richtext/contextMenuFactory.js.map +1 -1
- package/dist/editor/field-types/richtext/hooks/useProfileCache.d.ts +1 -1
- package/dist/editor/field-types/richtext/hooks/useProfileCache.js +19 -19
- package/dist/editor/field-types/richtext/hooks/useProfileCache.js.map +1 -1
- package/dist/editor/field-types/richtext/hooks/useRichTextProfile.d.ts +2 -5
- package/dist/editor/field-types/richtext/hooks/useRichTextProfile.js +13 -41
- package/dist/editor/field-types/richtext/hooks/useRichTextProfile.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/conversion.d.ts +2 -2
- package/dist/editor/field-types/richtext/utils/conversion.js +214 -298
- package/dist/editor/field-types/richtext/utils/conversion.js.map +1 -1
- package/dist/editor/field-types/richtext/utils/plugins.js +69 -96
- package/dist/editor/field-types/richtext/utils/plugins.js.map +1 -1
- package/dist/editor/field-types/richtext/utils/profileMapper.d.ts +1 -1
- package/dist/editor/field-types/richtext/utils/profileMapper.js +171 -186
- package/dist/editor/field-types/richtext/utils/profileMapper.js.map +1 -1
- package/dist/editor/field-types/textContextMenuFactory.js +1 -1
- package/dist/editor/field-types/textContextMenuFactory.js.map +1 -1
- package/dist/editor/fieldTypes.d.ts +0 -2
- package/dist/editor/hooks/useNavigationPanelLogic.d.ts +3 -3
- package/dist/editor/hooks/useNavigationPanelLogic.js +5 -5
- package/dist/editor/hooks/useNavigationPanelLogic.js.map +1 -1
- package/dist/editor/hooks/useParheliaSettings.js +7 -8
- package/dist/editor/hooks/useParheliaSettings.js.map +1 -1
- package/dist/editor/insertMenuItems.d.ts +0 -11
- package/dist/editor/insertMenuItems.js +1 -10
- package/dist/editor/insertMenuItems.js.map +1 -1
- package/dist/editor/manualActionEvents.js +1 -3
- package/dist/editor/manualActionEvents.js.map +1 -1
- package/dist/editor/media-selector/AiImageSearchPrompt.js +3 -3
- package/dist/editor/media-selector/MediaFolderBrowser.d.ts +1 -2
- package/dist/editor/media-selector/MediaFolderBrowser.js +49 -318
- package/dist/editor/media-selector/MediaFolderBrowser.js.map +1 -1
- package/dist/editor/media-selector/MediaSelector.js +2 -4
- package/dist/editor/media-selector/MediaSelector.js.map +1 -1
- package/dist/editor/media-selector/Preview.d.ts +1 -2
- package/dist/editor/media-selector/Preview.js +6 -53
- package/dist/editor/media-selector/Preview.js.map +1 -1
- package/dist/editor/media-selector/Thumbnails.d.ts +1 -5
- package/dist/editor/media-selector/Thumbnails.js +11 -72
- package/dist/editor/media-selector/Thumbnails.js.map +1 -1
- package/dist/editor/media-selector/TreeSelector.js +41 -155
- package/dist/editor/media-selector/TreeSelector.js.map +1 -1
- package/dist/editor/media-selector/UploadZone.d.ts +1 -3
- package/dist/editor/media-selector/UploadZone.js +23 -27
- package/dist/editor/media-selector/UploadZone.js.map +1 -1
- package/dist/editor/menubar/ActiveUsers.js +36 -32
- package/dist/editor/menubar/ActiveUsers.js.map +1 -1
- package/dist/editor/menubar/ApproveAndPublish.d.ts +1 -0
- package/dist/editor/menubar/ApproveAndPublish.js +13 -0
- package/dist/editor/menubar/ApproveAndPublish.js.map +1 -0
- package/dist/editor/menubar/FavoritesControls.js +30 -51
- package/dist/editor/menubar/FavoritesControls.js.map +1 -1
- package/dist/editor/menubar/GenericToolbar.js +1 -2
- package/dist/editor/menubar/GenericToolbar.js.map +1 -1
- package/dist/editor/menubar/ItemActionsMenu.js +1 -1
- package/dist/editor/menubar/ItemActionsMenu.js.map +1 -1
- package/dist/editor/menubar/ItemLanguageVersion.d.ts +1 -4
- package/dist/editor/menubar/ItemLanguageVersion.js +18 -17
- package/dist/editor/menubar/ItemLanguageVersion.js.map +1 -1
- package/dist/editor/menubar/ItemToolbar.d.ts +1 -0
- package/dist/editor/menubar/ItemToolbar.js +12 -0
- package/dist/editor/menubar/ItemToolbar.js.map +1 -0
- package/dist/editor/menubar/NavButtons.d.ts +1 -0
- package/dist/editor/menubar/NavButtons.js +40 -0
- package/dist/editor/menubar/NavButtons.js.map +1 -0
- package/dist/editor/menubar/PageSelector.js +5 -11
- package/dist/editor/menubar/PageSelector.js.map +1 -1
- package/dist/editor/menubar/PreviewDatePicker.js +21 -40
- package/dist/editor/menubar/PreviewDatePicker.js.map +1 -1
- package/dist/editor/menubar/Separator.d.ts +1 -2
- package/dist/editor/menubar/Separator.js +2 -2
- package/dist/editor/menubar/Separator.js.map +1 -1
- package/dist/editor/menubar/SiteInfo.d.ts +1 -0
- package/dist/editor/menubar/SiteInfo.js +27 -0
- package/dist/editor/menubar/SiteInfo.js.map +1 -0
- package/dist/editor/menubar/ToolbarFactory.js +19 -30
- package/dist/editor/menubar/ToolbarFactory.js.map +1 -1
- package/dist/editor/menubar/User.js +7 -2
- package/dist/editor/menubar/User.js.map +1 -1
- package/dist/editor/menubar/UserMenu.d.ts +5 -0
- package/dist/editor/menubar/UserMenu.js +33 -0
- package/dist/editor/menubar/UserMenu.js.map +1 -0
- package/dist/editor/menubar/VersionPreviewCard.js +231 -11
- package/dist/editor/menubar/VersionPreviewCard.js.map +1 -1
- package/dist/editor/menubar/VersionSelector.d.ts +2 -4
- package/dist/editor/menubar/VersionSelector.js +24 -70
- package/dist/editor/menubar/VersionSelector.js.map +1 -1
- package/dist/editor/menubar/WorkflowButton.js +28 -23
- package/dist/editor/menubar/WorkflowButton.js.map +1 -1
- package/dist/editor/menubar/toolbar-sections/CompareControls.js +1 -3
- package/dist/editor/menubar/toolbar-sections/CompareControls.js.map +1 -1
- package/dist/editor/menubar/toolbar-sections/CustomCommandsToolbar.js +1 -1
- package/dist/editor/menubar/toolbar-sections/CustomCommandsToolbar.js.map +1 -1
- package/dist/editor/menubar/toolbar-sections/EditControls.d.ts +2 -4
- package/dist/editor/menubar/toolbar-sections/EditControls.js +11 -82
- package/dist/editor/menubar/toolbar-sections/EditControls.js.map +1 -1
- package/dist/editor/menubar/toolbar-sections/InsertControls.js +1 -1
- package/dist/editor/menubar/toolbar-sections/InsertControls.js.map +1 -1
- package/dist/editor/menubar/toolbar-sections/ManualBrowser.d.ts +0 -22
- package/dist/editor/menubar/toolbar-sections/ManualBrowser.js +161 -935
- package/dist/editor/menubar/toolbar-sections/ManualBrowser.js.map +1 -1
- package/dist/editor/menubar/toolbar-sections/ReviewCommands.js +1 -2
- package/dist/editor/menubar/toolbar-sections/ReviewCommands.js.map +1 -1
- package/dist/editor/menubar/toolbar-sections/UndoRedoControls.js +31 -58
- package/dist/editor/menubar/toolbar-sections/UndoRedoControls.js.map +1 -1
- package/dist/editor/menubar/toolbar-sections/UtilityControls.d.ts +1 -3
- package/dist/editor/menubar/toolbar-sections/UtilityControls.js +4 -14
- package/dist/editor/menubar/toolbar-sections/UtilityControls.js.map +1 -1
- package/dist/editor/menubar/toolbar-sections/ViewportControls.d.ts +0 -1
- package/dist/editor/menubar/toolbar-sections/ViewportControls.js +38 -100
- package/dist/editor/menubar/toolbar-sections/ViewportControls.js.map +1 -1
- package/dist/editor/menubar/toolbar-sections/index.d.ts +2 -4
- package/dist/editor/menubar/toolbar-sections/index.js +2 -4
- package/dist/editor/menubar/toolbar-sections/index.js.map +1 -1
- package/dist/editor/notifications/NotificationCenter.d.ts +1 -4
- package/dist/editor/notifications/NotificationCenter.js +30 -41
- package/dist/editor/notifications/NotificationCenter.js.map +1 -1
- package/dist/editor/notifications/NotificationItem.js +15 -100
- package/dist/editor/notifications/NotificationItem.js.map +1 -1
- package/dist/editor/notifications/WatchButton.d.ts +4 -5
- package/dist/editor/notifications/WatchButton.js +61 -105
- package/dist/editor/notifications/WatchButton.js.map +1 -1
- package/dist/editor/notifications/notificationListState.js +1 -4
- package/dist/editor/notifications/notificationListState.js.map +1 -1
- package/dist/editor/notifications/notificationRoutes.js.map +1 -1
- package/dist/editor/notifications/useNotificationSubscriptions.d.ts +0 -8
- package/dist/editor/notifications/useNotificationSubscriptions.js +1 -25
- package/dist/editor/notifications/useNotificationSubscriptions.js.map +1 -1
- package/dist/editor/notifications/useNotifications.js +22 -58
- package/dist/editor/notifications/useNotifications.js.map +1 -1
- package/dist/editor/page-editor-chrome/CommentHighlighting.d.ts +6 -0
- package/dist/editor/page-editor-chrome/CommentHighlighting.js +316 -0
- package/dist/editor/page-editor-chrome/CommentHighlighting.js.map +1 -0
- package/dist/editor/page-editor-chrome/CommentHighlightings.d.ts +4 -6
- package/dist/editor/page-editor-chrome/CommentHighlightings.js +11 -497
- package/dist/editor/page-editor-chrome/CommentHighlightings.js.map +1 -1
- package/dist/editor/page-editor-chrome/FieldActionIndicator.js +68 -30
- package/dist/editor/page-editor-chrome/FieldActionIndicator.js.map +1 -1
- package/dist/editor/page-editor-chrome/FieldEditedIndicator.d.ts +3 -1
- package/dist/editor/page-editor-chrome/FieldEditedIndicator.js +101 -38
- package/dist/editor/page-editor-chrome/FieldEditedIndicator.js.map +1 -1
- package/dist/editor/page-editor-chrome/FieldEditedIndicators.d.ts +3 -1
- package/dist/editor/page-editor-chrome/FieldEditedIndicators.js +2 -2
- package/dist/editor/page-editor-chrome/FieldEditedIndicators.js.map +1 -1
- package/dist/editor/page-editor-chrome/FrameMenu.d.ts +4 -7
- package/dist/editor/page-editor-chrome/FrameMenu.js +223 -264
- package/dist/editor/page-editor-chrome/FrameMenu.js.map +1 -1
- package/dist/editor/page-editor-chrome/FrameMenus.d.ts +1 -1
- package/dist/editor/page-editor-chrome/FrameMenus.js +18 -72
- package/dist/editor/page-editor-chrome/FrameMenus.js.map +1 -1
- package/dist/editor/page-editor-chrome/InlineEditor.d.ts +5 -0
- package/dist/editor/page-editor-chrome/InlineEditor.js +832 -0
- package/dist/editor/page-editor-chrome/InlineEditor.js.map +1 -0
- package/dist/editor/page-editor-chrome/LockedFieldIndicator.d.ts +2 -3
- package/dist/editor/page-editor-chrome/LockedFieldIndicator.js +20 -191
- package/dist/editor/page-editor-chrome/LockedFieldIndicator.js.map +1 -1
- package/dist/editor/page-editor-chrome/NoLayout.js +1 -1
- package/dist/editor/page-editor-chrome/PageEditorChrome.d.ts +2 -6
- package/dist/editor/page-editor-chrome/PageEditorChrome.js +48 -141
- package/dist/editor/page-editor-chrome/PageEditorChrome.js.map +1 -1
- package/dist/editor/page-editor-chrome/PictureEditorOverlay.js +147 -167
- package/dist/editor/page-editor-chrome/PictureEditorOverlay.js.map +1 -1
- package/dist/editor/page-editor-chrome/PlaceholderDropZone.d.ts +3 -34
- package/dist/editor/page-editor-chrome/PlaceholderDropZone.js +65 -175
- package/dist/editor/page-editor-chrome/PlaceholderDropZone.js.map +1 -1
- package/dist/editor/page-editor-chrome/PlaceholderDropZones.d.ts +5 -13
- package/dist/editor/page-editor-chrome/PlaceholderDropZones.js +305 -120
- package/dist/editor/page-editor-chrome/PlaceholderDropZones.js.map +1 -1
- package/dist/editor/page-editor-chrome/SuggestionHighlighting.d.ts +6 -0
- package/dist/editor/page-editor-chrome/SuggestionHighlighting.js +224 -0
- package/dist/editor/page-editor-chrome/SuggestionHighlighting.js.map +1 -0
- package/dist/editor/page-editor-chrome/SuggestionHighlightings.d.ts +4 -6
- package/dist/editor/page-editor-chrome/SuggestionHighlightings.js +12 -304
- package/dist/editor/page-editor-chrome/SuggestionHighlightings.js.map +1 -1
- package/dist/editor/page-editor-chrome/VersionDiffHighlightings.d.ts +3 -1
- package/dist/editor/page-editor-chrome/VersionDiffHighlightings.js +123 -160
- package/dist/editor/page-editor-chrome/VersionDiffHighlightings.js.map +1 -1
- package/dist/editor/page-editor-chrome/useInlineAICompletion.d.ts +7 -0
- package/dist/editor/page-editor-chrome/useInlineAICompletion.js +728 -0
- package/dist/editor/page-editor-chrome/useInlineAICompletion.js.map +1 -0
- package/dist/editor/page-viewer/DeviceToolbar.js +2 -2
- package/dist/editor/page-viewer/DeviceToolbar.js.map +1 -1
- package/dist/editor/page-viewer/EditorForm.js +24 -55
- package/dist/editor/page-viewer/EditorForm.js.map +1 -1
- package/dist/editor/page-viewer/EditorFormHintPopover.d.ts +2 -2
- package/dist/editor/page-viewer/EditorFormHintPopover.js +4 -4
- package/dist/editor/page-viewer/EditorFormHintPopover.js.map +1 -1
- package/dist/editor/page-viewer/MiniMap.d.ts +2 -29
- package/dist/editor/page-viewer/MiniMap.js +340 -375
- package/dist/editor/page-viewer/MiniMap.js.map +1 -1
- package/dist/editor/page-viewer/PageViewer.d.ts +2 -4
- package/dist/editor/page-viewer/PageViewer.js +21 -202
- package/dist/editor/page-viewer/PageViewer.js.map +1 -1
- package/dist/editor/page-viewer/PageViewerFrame.d.ts +7 -4
- package/dist/editor/page-viewer/PageViewerFrame.js +1269 -2219
- package/dist/editor/page-viewer/PageViewerFrame.js.map +1 -1
- package/dist/editor/page-viewer/RenderingParametersSection.js +7 -13
- package/dist/editor/page-viewer/RenderingParametersSection.js.map +1 -1
- package/dist/editor/page-viewer/pageModelSkeletonBuilder.d.ts +3 -0
- package/dist/editor/page-viewer/pageModelSkeletonBuilder.js +423 -0
- package/dist/editor/page-viewer/pageModelSkeletonBuilder.js.map +1 -0
- package/dist/editor/page-viewer/pageViewContext.d.ts +0 -35
- package/dist/editor/page-viewer/pageViewContext.js +3 -40
- package/dist/editor/page-viewer/pageViewContext.js.map +1 -1
- package/dist/editor/pageModel.d.ts +0 -4
- package/dist/editor/pageModel.js +1 -12
- package/dist/editor/pageModel.js.map +1 -1
- package/dist/editor/personalization/ActionList.js +2 -2
- package/dist/editor/personalization/ActionList.js.map +1 -1
- package/dist/editor/personalization/ConditionTreeEditor.js +9 -9
- package/dist/editor/personalization/ConditionTreeEditor.js.map +1 -1
- package/dist/editor/personalization/PersonalizationPanel.d.ts +1 -3
- package/dist/editor/personalization/PersonalizationPanel.js +18 -39
- package/dist/editor/personalization/PersonalizationPanel.js.map +1 -1
- package/dist/editor/personalization/RuleElementPicker.js +4 -5
- package/dist/editor/personalization/RuleElementPicker.js.map +1 -1
- package/dist/editor/personalization/RuleList.js +10 -13
- package/dist/editor/personalization/RuleList.js.map +1 -1
- package/dist/editor/personalization/RuleParameterInput.js +7 -10
- package/dist/editor/personalization/RuleParameterInput.js.map +1 -1
- package/dist/editor/personalization/TreeItemPicker.js +6 -4
- package/dist/editor/personalization/TreeItemPicker.js.map +1 -1
- package/dist/editor/personalization/utils.js.map +1 -1
- package/dist/editor/picture-shared.d.ts +16 -0
- package/dist/editor/picture-shared.js +25 -0
- package/dist/editor/picture-shared.js.map +1 -0
- package/dist/editor/registry/SidebarRegistry.d.ts +96 -0
- package/dist/editor/registry/SidebarRegistry.js +166 -0
- package/dist/editor/registry/SidebarRegistry.js.map +1 -0
- package/dist/editor/registry/WorkspaceRegistry.d.ts +71 -0
- package/dist/editor/registry/WorkspaceRegistry.js +112 -0
- package/dist/editor/registry/WorkspaceRegistry.js.map +1 -0
- package/dist/editor/registry/index.d.ts +2 -0
- package/dist/editor/registry/index.js +4 -0
- package/dist/editor/registry/index.js.map +1 -0
- package/dist/editor/reviews/Comment.d.ts +1 -6
- package/dist/editor/reviews/Comment.js +103 -64
- package/dist/editor/reviews/Comment.js.map +1 -1
- package/dist/editor/reviews/CommentDisplayPopover.js +78 -244
- package/dist/editor/reviews/CommentDisplayPopover.js.map +1 -1
- package/dist/editor/reviews/CommentEditor.d.ts +2 -7
- package/dist/editor/reviews/CommentEditor.js +8 -45
- package/dist/editor/reviews/CommentEditor.js.map +1 -1
- package/dist/editor/reviews/CommentPopover.d.ts +0 -4
- package/dist/editor/reviews/CommentPopover.js +15 -92
- package/dist/editor/reviews/CommentPopover.js.map +1 -1
- package/dist/editor/reviews/CommentView.d.ts +1 -4
- package/dist/editor/reviews/CommentView.js +38 -60
- package/dist/editor/reviews/CommentView.js.map +1 -1
- package/dist/editor/reviews/Comments.d.ts +2 -0
- package/dist/editor/reviews/Comments.js +51 -269
- package/dist/editor/reviews/Comments.js.map +1 -1
- package/dist/editor/reviews/CommentsAndFeedback.d.ts +8 -2
- package/dist/editor/reviews/CommentsAndFeedback.js +43 -10
- package/dist/editor/reviews/CommentsAndFeedback.js.map +1 -1
- package/dist/editor/reviews/CreateReviewConfirmStep.js +2 -2
- package/dist/editor/reviews/CreateReviewConfirmStep.js.map +1 -1
- package/dist/editor/reviews/CreateReviewDetailsStep.js +9 -9
- package/dist/editor/reviews/CreateReviewDetailsStep.js.map +1 -1
- package/dist/editor/reviews/CreateReviewDialog.js +1 -1
- package/dist/editor/reviews/CreateReviewDialog.js.map +1 -1
- package/dist/editor/reviews/CreateReviewSuccessStep.js +2 -2
- package/dist/editor/reviews/CreateReviewSuccessStep.js.map +1 -1
- package/dist/editor/reviews/DecisionsMatrix.js +26 -34
- package/dist/editor/reviews/DecisionsMatrix.js.map +1 -1
- package/dist/editor/reviews/DiffView.js +6 -6
- package/dist/editor/reviews/DiffView.js.map +1 -1
- package/dist/editor/reviews/EditReviewSettingsDialog.js +54 -68
- package/dist/editor/reviews/EditReviewSettingsDialog.js.map +1 -1
- package/dist/editor/reviews/ItemTreeSelector.js +1 -1
- package/dist/editor/reviews/ItemTreeSelector.js.map +1 -1
- package/dist/editor/reviews/LatestFeedback.js +49 -26
- package/dist/editor/reviews/LatestFeedback.js.map +1 -1
- package/dist/editor/reviews/PagesPanel.d.ts +21 -0
- package/dist/editor/reviews/PagesPanel.js +140 -0
- package/dist/editor/reviews/PagesPanel.js.map +1 -0
- package/dist/editor/reviews/PreconfiguredReviewerSelector.js +1 -1
- package/dist/editor/reviews/PreconfiguredReviewerSelector.js.map +1 -1
- package/dist/editor/reviews/PreviewInfo.d.ts +1 -0
- package/dist/editor/reviews/PreviewInfo.js +9 -0
- package/dist/editor/reviews/PreviewInfo.js.map +1 -0
- package/dist/editor/reviews/ReviewCard.js +11 -12
- package/dist/editor/reviews/ReviewCard.js.map +1 -1
- package/dist/editor/reviews/ReviewDetail.js +5 -5
- package/dist/editor/reviews/ReviewDetail.js.map +1 -1
- package/dist/editor/reviews/ReviewersPanel.js +19 -33
- package/dist/editor/reviews/ReviewersPanel.js.map +1 -1
- package/dist/editor/reviews/ReviewsList.js +3 -4
- package/dist/editor/reviews/ReviewsList.js.map +1 -1
- package/dist/editor/reviews/SuggestedEdit.d.ts +1 -4
- package/dist/editor/reviews/SuggestedEdit.js +61 -101
- package/dist/editor/reviews/SuggestedEdit.js.map +1 -1
- package/dist/editor/reviews/SuggestionDisplayPopover.js +47 -45
- package/dist/editor/reviews/SuggestionDisplayPopover.js.map +1 -1
- package/dist/editor/reviews/commentAi.js +27 -96
- package/dist/editor/reviews/commentAi.js.map +1 -1
- package/dist/editor/reviews/reviewCommands.js +2 -2
- package/dist/editor/reviews/reviewCommands.js.map +1 -1
- package/dist/editor/reviews/useMultiReview.js +4 -5
- package/dist/editor/reviews/useMultiReview.js.map +1 -1
- package/dist/editor/services/agentDialogService.test.d.ts +1 -0
- package/dist/editor/services/agentDialogService.test.js +56 -0
- package/dist/editor/services/agentDialogService.test.js.map +1 -0
- package/dist/editor/services/agentService.d.ts +27 -75
- package/dist/editor/services/agentService.js +33 -105
- package/dist/editor/services/agentService.js.map +1 -1
- package/dist/editor/services/agentStatus.js +1 -1
- package/dist/editor/services/agentStatus.js.map +1 -1
- package/dist/editor/services/agentSubscriptionRegistry.js +13 -12
- package/dist/editor/services/agentSubscriptionRegistry.js.map +1 -1
- package/dist/editor/services/agentSubscriptionRegistry.test.d.ts +1 -0
- package/dist/editor/services/agentSubscriptionRegistry.test.js +104 -0
- package/dist/editor/services/agentSubscriptionRegistry.test.js.map +1 -0
- package/dist/editor/services/aiService.d.ts +38 -8
- package/dist/editor/services/aiService.js +64 -7
- package/dist/editor/services/aiService.js.map +1 -1
- package/dist/editor/services/contentService.d.ts +1 -11
- package/dist/editor/services/contentService.js +20 -7
- package/dist/editor/services/contentService.js.map +1 -1
- package/dist/editor/services/contextService.js.map +1 -1
- package/dist/editor/services/customCommandsService.js.map +1 -1
- package/dist/editor/services/editService.d.ts +0 -16
- package/dist/editor/services/editService.js +3 -8
- package/dist/editor/services/editService.js.map +1 -1
- package/dist/editor/services/indexService.js.map +1 -1
- package/dist/editor/services/indicatorService.js.map +1 -1
- package/dist/editor/services/localStorageService.js +3 -3
- package/dist/editor/services/localStorageService.js.map +1 -1
- package/dist/editor/services/notificationService.d.ts +0 -4
- package/dist/editor/services/notificationService.js +1 -5
- package/dist/editor/services/notificationService.js.map +1 -1
- package/dist/editor/services/personalizationService.js.map +1 -1
- package/dist/editor/services/reviewsService.d.ts +3 -6
- package/dist/editor/services/reviewsService.js +2 -10
- package/dist/editor/services/reviewsService.js.map +1 -1
- package/dist/editor/services/serviceHelper.d.ts +0 -8
- package/dist/editor/services/serviceHelper.js +0 -59
- package/dist/editor/services/serviceHelper.js.map +1 -1
- package/dist/editor/services/suggestedEditsService.js.map +1 -1
- package/dist/editor/services/systemService.d.ts +0 -49
- package/dist/editor/services/systemService.js +0 -32
- package/dist/editor/services/systemService.js.map +1 -1
- package/dist/editor/services/templateBuilderService.js +6 -5
- package/dist/editor/services/templateBuilderService.js.map +1 -1
- package/dist/editor/services-server/api.d.ts +18 -0
- package/dist/editor/services-server/api.js +116 -0
- package/dist/editor/services-server/api.js.map +1 -0
- package/dist/editor/settings/About.js +32 -219
- package/dist/editor/settings/About.js.map +1 -1
- package/dist/editor/settings/IndexOverview.js +9 -10
- package/dist/editor/settings/IndexOverview.js.map +1 -1
- package/dist/editor/settings/Info.d.ts +1 -0
- package/dist/editor/settings/Info.js +11 -0
- package/dist/editor/settings/Info.js.map +1 -0
- package/dist/editor/settings/QuotaInfo.js +69 -90
- package/dist/editor/settings/QuotaInfo.js.map +1 -1
- package/dist/editor/settings/QuotaUserPicker.js +55 -15
- package/dist/editor/settings/QuotaUserPicker.js.map +1 -1
- package/dist/editor/settings/SettingsBreadcrumb.d.ts +6 -3
- package/dist/editor/settings/SettingsBreadcrumb.js +2 -18
- package/dist/editor/settings/SettingsBreadcrumb.js.map +1 -1
- package/dist/editor/settings/SettingsHeaderActionsContext.d.ts +3 -9
- package/dist/editor/settings/SettingsHeaderActionsContext.js +6 -6
- package/dist/editor/settings/SettingsHeaderActionsContext.js.map +1 -1
- package/dist/editor/settings/SettingsView.js +28 -25
- package/dist/editor/settings/SettingsView.js.map +1 -1
- package/dist/editor/settings/Status.d.ts +1 -0
- package/dist/editor/settings/Status.js +89 -0
- package/dist/editor/settings/Status.js.map +1 -0
- package/dist/editor/settings/StatusSummary.js +27 -17
- package/dist/editor/settings/StatusSummary.js.map +1 -1
- package/dist/editor/settings/WebSocketMessages.d.ts +1 -0
- package/dist/editor/settings/WebSocketMessages.js +74 -0
- package/dist/editor/settings/WebSocketMessages.js.map +1 -0
- package/dist/editor/settings/index/AdvancedSettings.d.ts +1 -1
- package/dist/editor/settings/index/AdvancedSettings.js +11 -13
- package/dist/editor/settings/index/AdvancedSettings.js.map +1 -1
- package/dist/editor/settings/index/CollectionWarningsDisplay.js +1 -1
- package/dist/editor/settings/index/CollectionWarningsDisplay.js.map +1 -1
- package/dist/editor/settings/index/EmbeddingProviderInfo.js +5 -7
- package/dist/editor/settings/index/EmbeddingProviderInfo.js.map +1 -1
- package/dist/editor/settings/index/IndexStatusCards.js +2 -3
- package/dist/editor/settings/index/IndexStatusCards.js.map +1 -1
- package/dist/editor/settings/index/LatestEmbeddingsList.js +1 -3
- package/dist/editor/settings/index/LatestEmbeddingsList.js.map +1 -1
- package/dist/editor/settings/index/QueueErrorsDisplay.js +1 -1
- package/dist/editor/settings/index/QueueErrorsDisplay.js.map +1 -1
- package/dist/editor/settings/index/RebuildIndexSection.js +22 -24
- package/dist/editor/settings/index/RebuildIndexSection.js.map +1 -1
- package/dist/editor/settings/index/RecentBatchesList.js +18 -20
- package/dist/editor/settings/index/RecentBatchesList.js.map +1 -1
- package/dist/editor/settings/index/types.d.ts +2 -0
- package/dist/editor/settings/index/useIndexStatus.js +2 -10
- package/dist/editor/settings/index/useIndexStatus.js.map +1 -1
- package/dist/editor/settings/index/utils.js +16 -16
- package/dist/editor/settings/index/utils.js.map +1 -1
- package/dist/editor/settings/panels/AgentProfileConfigPanel.d.ts +1 -2
- package/dist/editor/settings/panels/AgentProfileConfigPanel.js +3 -7
- package/dist/editor/settings/panels/AgentProfileConfigPanel.js.map +1 -1
- package/dist/editor/settings/panels/AgentProfileEditorPanel.d.ts +0 -1
- package/dist/editor/settings/panels/AgentProfileEditorPanel.js +1 -1
- package/dist/editor/settings/panels/AgentProfileEditorPanel.js.map +1 -1
- package/dist/editor/settings/panels/AgentsPanel.js +8 -30
- package/dist/editor/settings/panels/AgentsPanel.js.map +1 -1
- package/dist/editor/settings/panels/ClusterInstancesPanel.js +54 -49
- package/dist/editor/settings/panels/ClusterInstancesPanel.js.map +1 -1
- package/dist/editor/settings/panels/CreateAgentProfileDialog.js +2 -2
- package/dist/editor/settings/panels/CreateAgentProfileDialog.js.map +1 -1
- package/dist/editor/settings/panels/CreateJavaScriptToolDialog.js +3 -3
- package/dist/editor/settings/panels/CreateJavaScriptToolDialog.js.map +1 -1
- package/dist/editor/settings/panels/GroupedFieldConfigPanel.js +5 -7
- package/dist/editor/settings/panels/GroupedFieldConfigPanel.js.map +1 -1
- package/dist/editor/settings/panels/ItemConfigPanel.js +3 -4
- package/dist/editor/settings/panels/ItemConfigPanel.js.map +1 -1
- package/dist/editor/settings/panels/JavaScriptToolAgentPanel.js +2 -4
- package/dist/editor/settings/panels/JavaScriptToolAgentPanel.js.map +1 -1
- package/dist/editor/settings/panels/JavaScriptToolConfigPanel.js +1 -1
- package/dist/editor/settings/panels/JavaScriptToolConfigPanel.js.map +1 -1
- package/dist/editor/settings/panels/JavaScriptToolsPanel.js +13 -27
- package/dist/editor/settings/panels/JavaScriptToolsPanel.js.map +1 -1
- package/dist/editor/settings/panels/McpToolsPanel.js +16 -36
- package/dist/editor/settings/panels/McpToolsPanel.js.map +1 -1
- package/dist/editor/settings/panels/ModelConfigPanel.js +1 -1
- package/dist/editor/settings/panels/ModelConfigPanel.js.map +1 -1
- package/dist/editor/settings/panels/ModelsPanel.js +41 -178
- package/dist/editor/settings/panels/ModelsPanel.js.map +1 -1
- package/dist/editor/settings/panels/PersistentLogsPanel.js +14 -25
- package/dist/editor/settings/panels/PersistentLogsPanel.js.map +1 -1
- package/dist/editor/settings/panels/ProjectTemplateAgentPanel.d.ts +1 -2
- package/dist/editor/settings/panels/ProjectTemplateAgentPanel.js +3 -6
- package/dist/editor/settings/panels/ProjectTemplateAgentPanel.js.map +1 -1
- package/dist/editor/settings/panels/ProjectTemplateSelector.js +42 -9
- package/dist/editor/settings/panels/ProjectTemplateSelector.js.map +1 -1
- package/dist/editor/settings/panels/ProjectTemplatesPanel.js +90 -119
- package/dist/editor/settings/panels/ProjectTemplatesPanel.js.map +1 -1
- package/dist/editor/settings/panels/ProviderIcon.js +8 -8
- package/dist/editor/settings/panels/ProviderIcon.js.map +1 -1
- package/dist/editor/settings/panels/ProvidersPanel.js +35 -55
- package/dist/editor/settings/panels/ProvidersPanel.js.map +1 -1
- package/dist/editor/settings/panels/SearchConfigPanel.js +11 -13
- package/dist/editor/settings/panels/SearchConfigPanel.js.map +1 -1
- package/dist/editor/settings/panels/SettingsPanel.js +2 -3
- package/dist/editor/settings/panels/SettingsPanel.js.map +1 -1
- package/dist/editor/settings/panels/StatusPanel.js +14 -39
- package/dist/editor/settings/panels/StatusPanel.js.map +1 -1
- package/dist/editor/settings/panels/index.d.ts +0 -5
- package/dist/editor/settings/panels/index.js +0 -5
- package/dist/editor/settings/panels/index.js.map +1 -1
- package/dist/editor/settings/panels/useSidebarEditor.d.ts +15 -0
- package/dist/editor/settings/panels/useSidebarEditor.js +24 -0
- package/dist/editor/settings/panels/useSidebarEditor.js.map +1 -0
- package/dist/editor/settings/status/coreStatusChecks.js +7 -118
- package/dist/editor/settings/status/coreStatusChecks.js.map +1 -1
- package/dist/editor/settings/status/useStartupChecks.js +1 -1
- package/dist/editor/settings/status/useStartupChecks.js.map +1 -1
- package/dist/editor/setup-wizard/steps/CompleteStep.js +7 -12
- package/dist/editor/setup-wizard/steps/CompleteStep.js.map +1 -1
- package/dist/editor/setup-wizard/steps/CreateSettingsStep.d.ts +1 -1
- package/dist/editor/setup-wizard/steps/CreateSettingsStep.js +3 -5
- package/dist/editor/setup-wizard/steps/CreateSettingsStep.js.map +1 -1
- package/dist/editor/setup-wizard/steps/LicenseActivationStep.js +31 -102
- package/dist/editor/setup-wizard/steps/LicenseActivationStep.js.map +1 -1
- package/dist/editor/setup-wizard/steps/LicenseEmailStep.d.ts +1 -2
- package/dist/editor/setup-wizard/steps/LicenseEmailStep.js +5 -13
- package/dist/editor/setup-wizard/steps/LicenseEmailStep.js.map +1 -1
- package/dist/editor/setup-wizard/steps/ModelSelectionStep.d.ts +1 -1
- package/dist/editor/setup-wizard/steps/ModelSelectionStep.js +59 -64
- package/dist/editor/setup-wizard/steps/ModelSelectionStep.js.map +1 -1
- package/dist/editor/setup-wizard/steps/ProviderStep.js +30 -84
- package/dist/editor/setup-wizard/steps/ProviderStep.js.map +1 -1
- package/dist/editor/setup-wizard/steps/WelcomeStep.js +1 -2
- package/dist/editor/setup-wizard/steps/WelcomeStep.js.map +1 -1
- package/dist/editor/sidebar/Completions.js +1 -1
- package/dist/editor/sidebar/Completions.js.map +1 -1
- package/dist/editor/sidebar/ComponentPalette.d.ts +1 -1
- package/dist/editor/sidebar/ComponentPalette.js +26 -61
- package/dist/editor/sidebar/ComponentPalette.js.map +1 -1
- package/dist/editor/sidebar/ComponentTree.js +40 -208
- package/dist/editor/sidebar/ComponentTree.js.map +1 -1
- package/dist/editor/sidebar/DictionaryEditor.js +1 -1
- package/dist/editor/sidebar/DictionaryEditor.js.map +1 -1
- package/dist/editor/sidebar/Divider.d.ts +6 -0
- package/dist/editor/sidebar/Divider.js +6 -0
- package/dist/editor/sidebar/Divider.js.map +1 -0
- package/dist/editor/sidebar/EditHistory.js +4 -17
- package/dist/editor/sidebar/EditHistory.js.map +1 -1
- package/dist/editor/sidebar/Favorites.d.ts +1 -5
- package/dist/editor/sidebar/Favorites.js +57 -41
- package/dist/editor/sidebar/Favorites.js.map +1 -1
- package/dist/editor/sidebar/Insert.js +1 -1
- package/dist/editor/sidebar/LabelButton.d.ts +5 -0
- package/dist/editor/sidebar/LabelButton.js +12 -0
- package/dist/editor/sidebar/LabelButton.js.map +1 -0
- package/dist/editor/sidebar/MainContentTree.js +2 -5
- package/dist/editor/sidebar/MainContentTree.js.map +1 -1
- package/dist/editor/sidebar/MobileWorkspacePopover.d.ts +2 -2
- package/dist/editor/sidebar/MobileWorkspacePopover.js +3 -3
- package/dist/editor/sidebar/MobileWorkspacePopover.js.map +1 -1
- package/dist/editor/sidebar/MorePanelsButton.js +2 -2
- package/dist/editor/sidebar/MorePanelsButton.js.map +1 -1
- package/dist/editor/sidebar/NavigationPanelItem.js +5 -6
- package/dist/editor/sidebar/NavigationPanelItem.js.map +1 -1
- package/dist/editor/sidebar/NavigationPanelMenuItem.js +2 -2
- package/dist/editor/sidebar/NavigationPanelMenuItem.js.map +1 -1
- package/dist/editor/sidebar/OperationItem.js +25 -111
- package/dist/editor/sidebar/OperationItem.js.map +1 -1
- package/dist/editor/sidebar/Performance.d.ts +1 -0
- package/dist/editor/sidebar/Performance.js +32 -0
- package/dist/editor/sidebar/Performance.js.map +1 -0
- package/dist/editor/sidebar/SEOInfo.d.ts +1 -0
- package/dist/editor/sidebar/SEOInfo.js +158 -0
- package/dist/editor/sidebar/SEOInfo.js.map +1 -0
- package/dist/editor/sidebar/Sidebar.d.ts +1 -0
- package/dist/editor/sidebar/Sidebar.js +11 -0
- package/dist/editor/sidebar/Sidebar.js.map +1 -0
- package/dist/editor/sidebar/SidebarPanel.js +15 -21
- package/dist/editor/sidebar/SidebarPanel.js.map +1 -1
- package/dist/editor/sidebar/SidebarStack.js +0 -2
- package/dist/editor/sidebar/SidebarStack.js.map +1 -1
- package/dist/editor/sidebar/TimelineView.js +3 -3
- package/dist/editor/sidebar/TimelineView.js.map +1 -1
- package/dist/editor/sidebar/Validation.js +3 -6
- package/dist/editor/sidebar/Validation.js.map +1 -1
- package/dist/editor/sidebar/Workbox.js +77 -36
- package/dist/editor/sidebar/Workbox.js.map +1 -1
- package/dist/editor/sidebar/WorkspaceButton.d.ts +1 -3
- package/dist/editor/sidebar/WorkspaceButton.js +8 -16
- package/dist/editor/sidebar/WorkspaceButton.js.map +1 -1
- package/dist/editor/sidebar/WorkspaceRail.js +25 -30
- package/dist/editor/sidebar/WorkspaceRail.js.map +1 -1
- package/dist/editor/sidebar/WorkspaceRailMobile.js +14 -5
- package/dist/editor/sidebar/WorkspaceRailMobile.js.map +1 -1
- package/dist/editor/template-wizard/TemplateBuilderDialog.js +1 -1
- package/dist/editor/template-wizard/TemplateBuilderDialog.js.map +1 -1
- package/dist/editor/template-wizard/TemplateStructureInlineEditor.js +97 -164
- package/dist/editor/template-wizard/TemplateStructureInlineEditor.js.map +1 -1
- package/dist/editor/tree-indicators/GutterColumns.js +22 -13
- package/dist/editor/tree-indicators/GutterColumns.js.map +1 -1
- package/dist/editor/tree-indicators/GutterContext.js +1 -5
- package/dist/editor/tree-indicators/GutterContext.js.map +1 -1
- package/dist/editor/ui/CenteredMessage.js +1 -1
- package/dist/editor/ui/CenteredMessage.js.map +1 -1
- package/dist/editor/ui/CopyMoveTargetSelectorDialog.js +3 -3
- package/dist/editor/ui/CopyMoveTargetSelectorDialog.js.map +1 -1
- package/dist/editor/ui/DialogButtons.d.ts +1 -3
- package/dist/editor/ui/DialogButtons.js +2 -3
- package/dist/editor/ui/DialogButtons.js.map +1 -1
- package/dist/editor/ui/DragPreview.d.ts +0 -7
- package/dist/editor/ui/DragPreview.js +10 -107
- package/dist/editor/ui/DragPreview.js.map +1 -1
- package/dist/editor/ui/ExportItemsDialog.js +1 -1
- package/dist/editor/ui/ExportItemsDialog.js.map +1 -1
- package/dist/editor/ui/HomeButton.js +1 -1
- package/dist/editor/ui/HomeButton.js.map +1 -1
- package/dist/editor/ui/IconSelectorDialog.js +8 -8
- package/dist/editor/ui/IconSelectorDialog.js.map +1 -1
- package/dist/editor/ui/Icons.d.ts +1 -1
- package/dist/editor/ui/Icons.js +10 -10
- package/dist/editor/ui/Icons.js.map +1 -1
- package/dist/editor/ui/ImportItemsDialog.js +1 -1
- package/dist/editor/ui/ImportItemsDialog.js.map +1 -1
- package/dist/editor/ui/ItemCollectionEditor.d.ts +3 -27
- package/dist/editor/ui/ItemCollectionEditor.js +10 -54
- package/dist/editor/ui/ItemCollectionEditor.js.map +1 -1
- package/dist/editor/ui/ItemList.js +1 -1
- package/dist/editor/ui/ItemList.js.map +1 -1
- package/dist/editor/ui/ItemNameDialogNew.js +1 -1
- package/dist/editor/ui/ItemNameDialogNew.js.map +1 -1
- package/dist/editor/ui/ItemSearch.d.ts +0 -1
- package/dist/editor/ui/ItemSearch.js +4 -4
- package/dist/editor/ui/ItemSearch.js.map +1 -1
- package/dist/editor/ui/PerfectTree.d.ts +1 -24
- package/dist/editor/ui/PerfectTree.js +19 -39
- package/dist/editor/ui/PerfectTree.js.map +1 -1
- package/dist/editor/ui/PublishItemDialog.d.ts +1 -1
- package/dist/editor/ui/PublishItemDialog.js +75 -40
- package/dist/editor/ui/PublishItemDialog.js.map +1 -1
- package/dist/editor/ui/PublishRestrictionsDialog.js +64 -70
- package/dist/editor/ui/PublishRestrictionsDialog.js.map +1 -1
- package/dist/editor/ui/Section.js +5 -5
- package/dist/editor/ui/Section.js.map +1 -1
- package/dist/editor/ui/SharedFolderSelectorDialog.js +1 -1
- package/dist/editor/ui/SharedFolderSelectorDialog.js.map +1 -1
- package/dist/editor/ui/SimpleIconButton.d.ts +2 -9
- package/dist/editor/ui/SimpleIconButton.js +5 -20
- package/dist/editor/ui/SimpleIconButton.js.map +1 -1
- package/dist/editor/ui/SimpleMenu.js +6 -7
- package/dist/editor/ui/SimpleMenu.js.map +1 -1
- package/dist/editor/ui/SimpleTable.js +1 -1
- package/dist/editor/ui/SimpleTable.js.map +1 -1
- package/dist/editor/ui/SimpleTabs.d.ts +2 -6
- package/dist/editor/ui/SimpleTabs.js +19 -54
- package/dist/editor/ui/SimpleTabs.js.map +1 -1
- package/dist/editor/ui/SimpleToolbar.js +1 -1
- package/dist/editor/ui/SimpleToolbar.js.map +1 -1
- package/dist/editor/ui/Spinner.d.ts +1 -14
- package/dist/editor/ui/Spinner.js.map +1 -1
- package/dist/editor/ui/Splitter.d.ts +0 -2
- package/dist/editor/ui/Splitter.js +15 -147
- package/dist/editor/ui/Splitter.js.map +1 -1
- package/dist/editor/ui/TemplateSelectorDialog.js +5 -5
- package/dist/editor/ui/TemplateSelectorDialog.js.map +1 -1
- package/dist/editor/ui/Toolbar.d.ts +3 -0
- package/dist/editor/ui/Toolbar.js +5 -0
- package/dist/editor/ui/Toolbar.js.map +1 -0
- package/dist/editor/ui/TreeListSelector.js +1 -1
- package/dist/editor/ui/TreeListSelector.js.map +1 -1
- package/dist/editor/utils/jsonCleaner.js +10 -10
- package/dist/editor/utils/jsonCleaner.js.map +1 -1
- package/dist/editor/utils/keyboardNavigation.js +1 -2
- package/dist/editor/utils/keyboardNavigation.js.map +1 -1
- package/dist/editor/utils/selectionContext.js.map +1 -1
- package/dist/editor/utils/useMemoDebug.d.ts +1 -0
- package/dist/editor/utils/useMemoDebug.js +18 -0
- package/dist/editor/utils/useMemoDebug.js.map +1 -0
- package/dist/editor/utils/versionAtDate.js.map +1 -1
- package/dist/editor/utils.d.ts +17 -7
- package/dist/editor/utils.js +145 -35
- package/dist/editor/utils.js.map +1 -1
- package/dist/editor/version-diff/versionDiffHighlightStyles.d.ts +6 -6
- package/dist/editor/version-diff/versionDiffHighlightStyles.js +6 -6
- package/dist/editor/version-diff/versionDiffHighlightStyles.js.map +1 -1
- package/dist/editor/version-diff/versionDiffTargets.d.ts +8 -3
- package/dist/editor/version-diff/versionDiffTargets.js +96 -38
- package/dist/editor/version-diff/versionDiffTargets.js.map +1 -1
- package/dist/editor/views/CompareView.js +3 -3
- 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 +6 -7
- package/dist/editor/views/EditorSlot.js.map +1 -1
- package/dist/editor/views/ItemEditor.js +2 -2
- package/dist/editor/views/ItemEditor.js.map +1 -1
- package/dist/editor/views/MediaFolderEditView.js +2 -2
- package/dist/editor/views/MediaFolderEditView.js.map +1 -1
- package/dist/editor/views/ParheliaView.d.ts +5 -0
- package/dist/editor/views/ParheliaView.js +181 -0
- package/dist/editor/views/ParheliaView.js.map +1 -0
- package/dist/editor/views/SingleEditView.js +6 -15
- package/dist/editor/views/SingleEditView.js.map +1 -1
- package/dist/editor/views/editorSlotContext.d.ts +0 -2
- package/dist/editor/views/editorSlotContext.js +1 -10
- package/dist/editor/views/editorSlotContext.js.map +1 -1
- package/dist/index.d.ts +6 -39
- package/dist/index.js +3 -23
- package/dist/index.js.map +1 -1
- package/dist/lib/safelist.js +1 -1
- package/dist/lib/safelist.js.map +1 -1
- package/dist/lib/sanitize.js +11 -79
- package/dist/lib/sanitize.js.map +1 -1
- package/dist/lib/viewTransition.js +1 -7
- package/dist/lib/viewTransition.js.map +1 -1
- package/dist/licensing/EmailEntry.js +1 -2
- package/dist/licensing/EmailEntry.js.map +1 -1
- package/dist/licensing/FeatureGate.js +6 -6
- package/dist/licensing/FeatureGate.js.map +1 -1
- package/dist/licensing/LicenseActivationForm.js +1 -2
- package/dist/licensing/LicenseActivationForm.js.map +1 -1
- package/dist/licensing/LicenseCodeEntry.js +3 -7
- package/dist/licensing/LicenseCodeEntry.js.map +1 -1
- package/dist/licensing/LicenseContext.js +4 -3
- package/dist/licensing/LicenseContext.js.map +1 -1
- package/dist/licensing/LicenseOverlay.js +1 -3
- package/dist/licensing/LicenseOverlay.js.map +1 -1
- package/dist/licensing/licenseService.js +3 -4
- package/dist/licensing/licenseService.js.map +1 -1
- package/dist/licensing/types.d.ts +1 -1
- package/dist/licensing/types.js +1 -3
- package/dist/licensing/types.js.map +1 -1
- package/dist/revision.d.ts +2 -2
- package/dist/revision.js +2 -2
- package/dist/setup/services/setupWizardService.d.ts +0 -12
- package/dist/setup/services/setupWizardService.js +13 -47
- package/dist/setup/services/setupWizardService.js.map +1 -1
- package/dist/setup/utils/modelPricing.d.ts +7 -0
- package/dist/setup/utils/modelPricing.js +106 -0
- package/dist/setup/utils/modelPricing.js.map +1 -0
- package/dist/setup/wizard/steps/AddModelDialog.js +8 -8
- package/dist/setup/wizard/steps/AddModelDialog.js.map +1 -1
- package/dist/setup/wizard/steps/ImportModelDialog.js +87 -38
- package/dist/setup/wizard/steps/ImportModelDialog.js.map +1 -1
- package/dist/splash-screen/DialogWrappers.js +2 -2
- package/dist/splash-screen/DialogWrappers.js.map +1 -1
- package/dist/splash-screen/ModernSplashScreen.d.ts +0 -7
- package/dist/splash-screen/ModernSplashScreen.js +62 -582
- package/dist/splash-screen/ModernSplashScreen.js.map +1 -1
- package/dist/splash-screen/NewPage.js +17 -41
- package/dist/splash-screen/NewPage.js.map +1 -1
- package/dist/splash-screen/OpenPage.js +21 -17
- package/dist/splash-screen/OpenPage.js.map +1 -1
- package/dist/splash-screen/ParheliaAssistantChat.js +12 -13
- package/dist/splash-screen/ParheliaAssistantChat.js.map +1 -1
- package/dist/splash-screen/ParheliaLogo.d.ts +4 -0
- package/dist/splash-screen/ParheliaLogo.js +134 -0
- package/dist/splash-screen/ParheliaLogo.js.map +1 -0
- package/dist/splash-screen/RecentPages.d.ts +1 -4
- package/dist/splash-screen/RecentPages.js +26 -29
- package/dist/splash-screen/RecentPages.js.map +1 -1
- package/dist/splash-screen/SectionHeadline.d.ts +4 -0
- package/dist/splash-screen/SectionHeadline.js +7 -0
- package/dist/splash-screen/SectionHeadline.js.map +1 -0
- package/dist/task-board/TaskBoardWorkspace.js +196 -402
- package/dist/task-board/TaskBoardWorkspace.js.map +1 -1
- package/dist/task-board/components/AddDependencyDialog.js +2 -5
- package/dist/task-board/components/AddDependencyDialog.js.map +1 -1
- package/dist/task-board/components/CommentsList.js +9 -22
- package/dist/task-board/components/CommentsList.js.map +1 -1
- package/dist/task-board/components/CreateProjectDialog.js +10 -10
- package/dist/task-board/components/CreateProjectDialog.js.map +1 -1
- package/dist/task-board/components/CreateTaskDialog.js +8 -13
- package/dist/task-board/components/CreateTaskDialog.js.map +1 -1
- package/dist/task-board/components/ItemCollectionEditorDialog.js +1 -1
- package/dist/task-board/components/ItemCollectionEditorDialog.js.map +1 -1
- package/dist/task-board/components/ItemCollectionPicker.js +3 -3
- package/dist/task-board/components/ItemCollectionPicker.js.map +1 -1
- package/dist/task-board/components/ProjectAgentsPanel.d.ts +4 -0
- package/dist/task-board/components/ProjectAgentsPanel.js +156 -0
- package/dist/task-board/components/ProjectAgentsPanel.js.map +1 -0
- package/dist/task-board/components/ProjectDashboard.d.ts +21 -21
- package/dist/task-board/components/ProjectDashboard.js +127 -217
- package/dist/task-board/components/ProjectDashboard.js.map +1 -1
- package/dist/task-board/components/ProjectExecutionUserPicker.js +61 -15
- package/dist/task-board/components/ProjectExecutionUserPicker.js.map +1 -1
- package/dist/task-board/components/ProjectListContent.d.ts +0 -1
- package/dist/task-board/components/ProjectListContent.js +10 -12
- package/dist/task-board/components/ProjectListContent.js.map +1 -1
- package/dist/task-board/components/ProjectOverviewContent.js +84 -15
- package/dist/task-board/components/ProjectOverviewContent.js.map +1 -1
- package/dist/task-board/components/ProjectPropertiesPanel.d.ts +0 -2
- package/dist/task-board/components/ProjectPropertiesPanel.js +13 -17
- package/dist/task-board/components/ProjectPropertiesPanel.js.map +1 -1
- package/dist/task-board/components/ProjectSelector.d.ts +20 -0
- package/dist/task-board/components/ProjectSelector.js +10 -0
- package/dist/task-board/components/ProjectSelector.js.map +1 -0
- package/dist/task-board/components/ProjectSettingsDialog.d.ts +0 -18
- package/dist/task-board/components/ProjectSettingsDialog.js +48 -66
- package/dist/task-board/components/ProjectSettingsDialog.js.map +1 -1
- package/dist/task-board/components/TaskAgentPanel.d.ts +0 -4
- package/dist/task-board/components/TaskAgentPanel.js +8 -23
- package/dist/task-board/components/TaskAgentPanel.js.map +1 -1
- package/dist/task-board/components/TaskAssigneePicker.js +7 -18
- package/dist/task-board/components/TaskAssigneePicker.js.map +1 -1
- package/dist/task-board/components/TaskAttachmentsSection.d.ts +0 -1
- package/dist/task-board/components/TaskAttachmentsSection.js +41 -19
- package/dist/task-board/components/TaskAttachmentsSection.js.map +1 -1
- package/dist/task-board/components/TaskBoardMyTasksSidebar.js +29 -26
- package/dist/task-board/components/TaskBoardMyTasksSidebar.js.map +1 -1
- package/dist/task-board/components/TaskBoardProjectListSidebar.js +14 -70
- package/dist/task-board/components/TaskBoardProjectListSidebar.js.map +1 -1
- package/dist/task-board/components/TaskBoardTitlebar.js +13 -8
- package/dist/task-board/components/TaskBoardTitlebar.js.map +1 -1
- package/dist/task-board/components/TaskCard.js +10 -29
- package/dist/task-board/components/TaskCard.js.map +1 -1
- package/dist/task-board/components/TaskDetailDialog.d.ts +12 -0
- package/dist/task-board/components/TaskDetailDialog.js +8 -0
- package/dist/task-board/components/TaskDetailDialog.js.map +1 -0
- package/dist/task-board/components/TaskDetailPanel.d.ts +0 -1
- package/dist/task-board/components/TaskDetailPanel.js +32 -45
- package/dist/task-board/components/TaskDetailPanel.js.map +1 -1
- package/dist/task-board/components/TaskReviewActions.d.ts +0 -1
- package/dist/task-board/components/TaskReviewActions.js +4 -7
- package/dist/task-board/components/TaskReviewActions.js.map +1 -1
- package/dist/task-board/components/TaskRow.js +18 -17
- package/dist/task-board/components/TaskRow.js.map +1 -1
- package/dist/task-board/components/TaskboardPersistentLogPanel.js +10 -17
- package/dist/task-board/components/TaskboardPersistentLogPanel.js.map +1 -1
- package/dist/task-board/components/WizardCommunicationCards.js +5 -7
- package/dist/task-board/components/WizardCommunicationCards.js.map +1 -1
- package/dist/task-board/components/WizardCommunicationCenter.d.ts +1 -7
- package/dist/task-board/components/WizardCommunicationCenter.js +7 -14
- package/dist/task-board/components/WizardCommunicationCenter.js.map +1 -1
- package/dist/task-board/components/WizardCommunicationShared.js +22 -22
- package/dist/task-board/components/WizardCommunicationShared.js.map +1 -1
- package/dist/task-board/components/WizardTask.d.ts +1 -5
- package/dist/task-board/components/WizardTask.js +31 -14
- package/dist/task-board/components/WizardTask.js.map +1 -1
- package/dist/task-board/components/WizardTaskDetailsPanel.d.ts +2 -10
- package/dist/task-board/components/WizardTaskDetailsPanel.js +11 -57
- package/dist/task-board/components/WizardTaskDetailsPanel.js.map +1 -1
- package/dist/task-board/index.d.ts +15 -0
- package/dist/task-board/index.js +18 -0
- package/dist/task-board/index.js.map +1 -0
- package/dist/task-board/persistentLogCopy.js +1 -3
- package/dist/task-board/persistentLogCopy.js.map +1 -1
- package/dist/task-board/persistentLogLabels.js.map +1 -1
- package/dist/task-board/services/taskService.d.ts +0 -7
- package/dist/task-board/services/taskService.js +2 -8
- package/dist/task-board/services/taskService.js.map +1 -1
- package/dist/task-board/taskAgentConfig.js +2 -6
- package/dist/task-board/taskAgentConfig.js.map +1 -1
- package/dist/task-board/taskAgentLink.js +3 -1
- package/dist/task-board/taskAgentLink.js.map +1 -1
- package/dist/task-board/taskBoardNavStore.d.ts +2 -4
- package/dist/task-board/taskBoardNavStore.js +2 -45
- package/dist/task-board/taskBoardNavStore.js.map +1 -1
- package/dist/task-board/taskExecutionRecords.js.map +1 -1
- package/dist/task-board/taskExecutionStatus.js +19 -14
- package/dist/task-board/taskExecutionStatus.js.map +1 -1
- package/dist/task-board/taskStatus.js +2 -2
- package/dist/task-board/taskStatus.js.map +1 -1
- package/dist/task-board/useTaskBoardAgentPanelState.js +3 -1
- package/dist/task-board/useTaskBoardAgentPanelState.js.map +1 -1
- package/dist/task-board/utils/projectHierarchy.js.map +1 -1
- package/dist/task-board/utils/taskDependencyOrdering.js +1 -2
- package/dist/task-board/utils/taskDependencyOrdering.js.map +1 -1
- package/dist/task-board/views/DependencyGraphView.d.ts +1 -42
- package/dist/task-board/views/DependencyGraphView.js +74 -239
- package/dist/task-board/views/DependencyGraphView.js.map +1 -1
- package/dist/task-board/views/KanbanView.js +49 -312
- package/dist/task-board/views/KanbanView.js.map +1 -1
- package/dist/task-board/views/ListView.js +5 -6
- package/dist/task-board/views/ListView.js.map +1 -1
- package/dist/task-board/views/PlanningView.d.ts +7 -0
- package/dist/task-board/views/PlanningView.js +112 -0
- package/dist/task-board/views/PlanningView.js.map +1 -0
- package/dist/task-board/views/WizardView.d.ts +0 -2
- package/dist/task-board/views/WizardView.js +29 -36
- package/dist/task-board/views/WizardView.js.map +1 -1
- package/dist/test/setup.d.ts +0 -0
- package/dist/test/setup.js +37 -0
- package/dist/test/setup.js.map +1 -0
- package/dist/tour/Tour.js +7 -7
- package/dist/tour/Tour.js.map +1 -1
- package/dist/tour/default-tour.js +17 -169
- package/dist/tour/default-tour.js.map +1 -1
- package/dist/tour/preview-tour.js +1 -1
- package/dist/tour/preview-tour.js.map +1 -1
- package/dist/types.d.ts +1 -16
- package/images/bg-shape-black.webp +0 -0
- package/images/parhelia-logo-1.jpg +0 -0
- package/images/phlogo.png +0 -0
- package/images/wizard-bg.png +0 -0
- package/package.json +1 -13
- package/styles.css +843 -320
- package/dist/agents-view/AgentGalleryCard.d.ts +0 -12
- package/dist/agents-view/AgentGalleryCard.js +0 -12
- package/dist/agents-view/AgentGalleryCard.js.map +0 -1
- package/dist/agents-view/AgentGalleryView.d.ts +0 -18
- package/dist/agents-view/AgentGalleryView.js +0 -88
- package/dist/agents-view/AgentGalleryView.js.map +0 -1
- package/dist/agents-view/AgentProfileIcon.d.ts +0 -9
- package/dist/agents-view/AgentProfileIcon.js +0 -32
- package/dist/agents-view/AgentProfileIcon.js.map +0 -1
- package/dist/agents-view/DateAgentsGroup.d.ts +0 -17
- package/dist/agents-view/DateAgentsGroup.js +0 -19
- package/dist/agents-view/DateAgentsGroup.js.map +0 -1
- package/dist/agents-view/RenameAgentDialog.d.ts +0 -12
- package/dist/agents-view/RenameAgentDialog.js +0 -40
- package/dist/agents-view/RenameAgentDialog.js.map +0 -1
- package/dist/agents-view/agentsNavStore.d.ts +0 -8
- package/dist/agents-view/agentsNavStore.js +0 -24
- package/dist/agents-view/agentsNavStore.js.map +0 -1
- package/dist/components/SearchInput.d.ts +0 -28
- package/dist/components/SearchInput.js +0 -38
- package/dist/components/SearchInput.js.map +0 -1
- package/dist/components/ui/LanguageSelectionGrid.d.ts +0 -27
- package/dist/components/ui/LanguageSelectionGrid.js +0 -41
- package/dist/components/ui/LanguageSelectionGrid.js.map +0 -1
- package/dist/components/ui/PlaceholderInputParser.d.ts +0 -9
- package/dist/components/ui/PlaceholderInputParser.js +0 -98
- package/dist/components/ui/PlaceholderInputParser.js.map +0 -1
- package/dist/components/ui/UserPicker.d.ts +0 -34
- package/dist/components/ui/UserPicker.js +0 -73
- package/dist/components/ui/UserPicker.js.map +0 -1
- package/dist/components/ui/accordion.d.ts +0 -7
- package/dist/components/ui/accordion.js +0 -17
- package/dist/components/ui/accordion.js.map +0 -1
- package/dist/components/ui/avatar.d.ts +0 -30
- package/dist/components/ui/avatar.js +0 -46
- package/dist/components/ui/avatar.js.map +0 -1
- package/dist/components/ui/close-button.d.ts +0 -13
- package/dist/components/ui/close-button.js +0 -29
- package/dist/components/ui/close-button.js.map +0 -1
- package/dist/components/ui/close-icon.d.ts +0 -7
- package/dist/components/ui/close-icon.js +0 -14
- package/dist/components/ui/close-icon.js.map +0 -1
- package/dist/components/ui/delete-button.d.ts +0 -13
- package/dist/components/ui/delete-button.js +0 -36
- package/dist/components/ui/delete-button.js.map +0 -1
- package/dist/components/ui/delete-icon.d.ts +0 -7
- package/dist/components/ui/delete-icon.js +0 -14
- package/dist/components/ui/delete-icon.js.map +0 -1
- package/dist/components/ui/mention-textarea.d.ts +0 -10
- package/dist/components/ui/mention-textarea.js +0 -180
- package/dist/components/ui/mention-textarea.js.map +0 -1
- package/dist/components/ui/multi-switch-button.d.ts +0 -22
- package/dist/components/ui/multi-switch-button.js +0 -12
- package/dist/components/ui/multi-switch-button.js.map +0 -1
- package/dist/editor/EditorLoadingOverlay.d.ts +0 -1
- package/dist/editor/EditorLoadingOverlay.js +0 -7
- package/dist/editor/EditorLoadingOverlay.js.map +0 -1
- package/dist/editor/WorkspaceTitleSwitcher.d.ts +0 -5
- package/dist/editor/WorkspaceTitleSwitcher.js +0 -67
- package/dist/editor/WorkspaceTitleSwitcher.js.map +0 -1
- package/dist/editor/ai/InlineAiTextEditTooltip.d.ts +0 -8
- package/dist/editor/ai/InlineAiTextEditTooltip.js +0 -10
- package/dist/editor/ai/InlineAiTextEditTooltip.js.map +0 -1
- package/dist/editor/ai/agentActivitySummary.d.ts +0 -108
- package/dist/editor/ai/agentActivitySummary.js +0 -390
- package/dist/editor/ai/agentActivitySummary.js.map +0 -1
- package/dist/editor/ai/dialogs/captureShared.d.ts +0 -10
- package/dist/editor/ai/dialogs/captureShared.js +0 -39
- package/dist/editor/ai/dialogs/captureShared.js.map +0 -1
- package/dist/editor/ai/dialogs/offscreenPageCapture.d.ts +0 -44
- package/dist/editor/ai/dialogs/offscreenPageCapture.js +0 -300
- package/dist/editor/ai/dialogs/offscreenPageCapture.js.map +0 -1
- package/dist/editor/ai/inlineAiTextEditLabels.d.ts +0 -2
- package/dist/editor/ai/inlineAiTextEditLabels.js +0 -8
- package/dist/editor/ai/inlineAiTextEditLabels.js.map +0 -1
- package/dist/editor/ai/prepareInlineAiTextSelection.d.ts +0 -5
- package/dist/editor/ai/prepareInlineAiTextSelection.js +0 -86
- package/dist/editor/ai/prepareInlineAiTextSelection.js.map +0 -1
- package/dist/editor/ai/terminal/agentContextMerge.d.ts +0 -14
- package/dist/editor/ai/terminal/agentContextMerge.js +0 -111
- package/dist/editor/ai/terminal/agentContextMerge.js.map +0 -1
- package/dist/editor/ai/terminal/agentOptimisticMessage.d.ts +0 -1
- package/dist/editor/ai/terminal/agentOptimisticMessage.js +0 -4
- package/dist/editor/ai/terminal/agentOptimisticMessage.js.map +0 -1
- package/dist/editor/ai/terminal/agentPromptPlaceholders.d.ts +0 -5
- package/dist/editor/ai/terminal/agentPromptPlaceholders.js +0 -8
- package/dist/editor/ai/terminal/agentPromptPlaceholders.js.map +0 -1
- package/dist/editor/ai/terminal/agentQuestionnaireRecap.d.ts +0 -82
- package/dist/editor/ai/terminal/agentQuestionnaireRecap.js +0 -277
- package/dist/editor/ai/terminal/agentQuestionnaireRecap.js.map +0 -1
- package/dist/editor/ai/terminal/agentQuestionnaireTranscriptRecovery.d.ts +0 -13
- package/dist/editor/ai/terminal/agentQuestionnaireTranscriptRecovery.js +0 -87
- package/dist/editor/ai/terminal/agentQuestionnaireTranscriptRecovery.js.map +0 -1
- package/dist/editor/ai/terminal/agentSessionCostLimit.d.ts +0 -7
- package/dist/editor/ai/terminal/agentSessionCostLimit.js +0 -27
- package/dist/editor/ai/terminal/agentSessionCostLimit.js.map +0 -1
- package/dist/editor/ai/terminal/agentSessionLiveTotals.d.ts +0 -11
- package/dist/editor/ai/terminal/agentSessionLiveTotals.js +0 -127
- package/dist/editor/ai/terminal/agentSessionLiveTotals.js.map +0 -1
- package/dist/editor/ai/terminal/agentSessionMetadata.d.ts +0 -2
- package/dist/editor/ai/terminal/agentSessionMetadata.js +0 -24
- package/dist/editor/ai/terminal/agentSessionMetadata.js.map +0 -1
- package/dist/editor/ai/terminal/agentSessionSelectors.d.ts +0 -65
- package/dist/editor/ai/terminal/agentSessionSelectors.js +0 -232
- package/dist/editor/ai/terminal/agentSessionSelectors.js.map +0 -1
- package/dist/editor/ai/terminal/agentSessionSnapshot.d.ts +0 -16
- package/dist/editor/ai/terminal/agentSessionSnapshot.js +0 -77
- package/dist/editor/ai/terminal/agentSessionSnapshot.js.map +0 -1
- package/dist/editor/ai/terminal/agentSessionState.d.ts +0 -162
- package/dist/editor/ai/terminal/agentSessionState.js +0 -830
- package/dist/editor/ai/terminal/agentSessionState.js.map +0 -1
- package/dist/editor/ai/terminal/agentStartRequest.d.ts +0 -15
- package/dist/editor/ai/terminal/agentStartRequest.js +0 -25
- package/dist/editor/ai/terminal/agentStartRequest.js.map +0 -1
- package/dist/editor/ai/terminal/agentSubmitErrors.d.ts +0 -1
- package/dist/editor/ai/terminal/agentSubmitErrors.js +0 -9
- package/dist/editor/ai/terminal/agentSubmitErrors.js.map +0 -1
- package/dist/editor/ai/terminal/components/ActivitySummaryCell.d.ts +0 -21
- package/dist/editor/ai/terminal/components/ActivitySummaryCell.js +0 -133
- package/dist/editor/ai/terminal/components/ActivitySummaryCell.js.map +0 -1
- package/dist/editor/ai/terminal/components/AgentActivityOverviewPanel.d.ts +0 -7
- package/dist/editor/ai/terminal/components/AgentActivityOverviewPanel.js +0 -145
- package/dist/editor/ai/terminal/components/AgentActivityOverviewPanel.js.map +0 -1
- package/dist/editor/ai/terminal/components/AgentBanners.js +0 -16
- package/dist/editor/ai/terminal/components/AgentBanners.js.map +0 -1
- package/dist/editor/ai/terminal/components/AgentContextItemPicker.d.ts +0 -11
- package/dist/editor/ai/terminal/components/AgentContextItemPicker.js +0 -81
- package/dist/editor/ai/terminal/components/AgentContextItemPicker.js.map +0 -1
- package/dist/editor/ai/terminal/components/AgentCostDisplay.js +0 -116
- package/dist/editor/ai/terminal/components/AgentCostDisplay.js.map +0 -1
- package/dist/editor/ai/terminal/components/AgentDocumentList.d.ts +0 -32
- package/dist/editor/ai/terminal/components/AgentDocumentList.js +0 -404
- package/dist/editor/ai/terminal/components/AgentDocumentList.js.map +0 -1
- package/dist/editor/ai/terminal/components/AgentEditHistoryButton.d.ts +0 -5
- package/dist/editor/ai/terminal/components/AgentEditHistoryButton.js +0 -12
- package/dist/editor/ai/terminal/components/AgentEditHistoryButton.js.map +0 -1
- package/dist/editor/ai/terminal/components/AgentFullPromptControls.d.ts +0 -39
- package/dist/editor/ai/terminal/components/AgentFullPromptControls.js +0 -42
- package/dist/editor/ai/terminal/components/AgentFullPromptControls.js.map +0 -1
- package/dist/editor/ai/terminal/components/AgentGreeting.d.ts +0 -8
- package/dist/editor/ai/terminal/components/AgentGreeting.js +0 -14
- package/dist/editor/ai/terminal/components/AgentGreeting.js.map +0 -1
- package/dist/editor/ai/terminal/components/AgentLoadingContent.d.ts +0 -1
- package/dist/editor/ai/terminal/components/AgentLoadingContent.js +0 -6
- package/dist/editor/ai/terminal/components/AgentLoadingContent.js.map +0 -1
- package/dist/editor/ai/terminal/components/AgentMobileStatusPopover.d.ts +0 -7
- package/dist/editor/ai/terminal/components/AgentMobileStatusPopover.js +0 -8
- package/dist/editor/ai/terminal/components/AgentMobileStatusPopover.js.map +0 -1
- package/dist/editor/ai/terminal/components/AgentModeSelector.d.ts +0 -8
- package/dist/editor/ai/terminal/components/AgentModeSelector.js +0 -90
- package/dist/editor/ai/terminal/components/AgentModeSelector.js.map +0 -1
- package/dist/editor/ai/terminal/components/AgentParentLink.d.ts +0 -6
- package/dist/editor/ai/terminal/components/AgentParentLink.js +0 -9
- package/dist/editor/ai/terminal/components/AgentParentLink.js.map +0 -1
- package/dist/editor/ai/terminal/components/AgentPredefinedPromptsButton.d.ts +0 -8
- package/dist/editor/ai/terminal/components/AgentPredefinedPromptsButton.js +0 -10
- package/dist/editor/ai/terminal/components/AgentPredefinedPromptsButton.js.map +0 -1
- package/dist/editor/ai/terminal/components/AgentProfileModelSettingsSection.d.ts +0 -16
- package/dist/editor/ai/terminal/components/AgentProfileModelSettingsSection.js +0 -15
- package/dist/editor/ai/terminal/components/AgentProfileModelSettingsSection.js.map +0 -1
- package/dist/editor/ai/terminal/components/AgentProjectProgress.d.ts +0 -12
- package/dist/editor/ai/terminal/components/AgentProjectProgress.js +0 -207
- package/dist/editor/ai/terminal/components/AgentProjectProgress.js.map +0 -1
- package/dist/editor/ai/terminal/components/AgentPromptActionButtons.d.ts +0 -14
- package/dist/editor/ai/terminal/components/AgentPromptActionButtons.js +0 -17
- package/dist/editor/ai/terminal/components/AgentPromptActionButtons.js.map +0 -1
- package/dist/editor/ai/terminal/components/AgentPromptComposer.d.ts +0 -8
- package/dist/editor/ai/terminal/components/AgentPromptComposer.js +0 -10
- package/dist/editor/ai/terminal/components/AgentPromptComposer.js.map +0 -1
- package/dist/editor/ai/terminal/components/AgentPromptInputArea.d.ts +0 -39
- package/dist/editor/ai/terminal/components/AgentPromptInputArea.js +0 -27
- package/dist/editor/ai/terminal/components/AgentPromptInputArea.js.map +0 -1
- package/dist/editor/ai/terminal/components/AgentPromptTrayPopovers.d.ts +0 -18
- package/dist/editor/ai/terminal/components/AgentPromptTrayPopovers.js +0 -106
- package/dist/editor/ai/terminal/components/AgentPromptTrayPopovers.js.map +0 -1
- package/dist/editor/ai/terminal/components/AgentReadOnlyNotice.d.ts +0 -5
- package/dist/editor/ai/terminal/components/AgentReadOnlyNotice.js +0 -7
- package/dist/editor/ai/terminal/components/AgentReadOnlyNotice.js.map +0 -1
- package/dist/editor/ai/terminal/components/AgentRunStatusBanners.d.ts +0 -8
- package/dist/editor/ai/terminal/components/AgentRunStatusBanners.js +0 -32
- package/dist/editor/ai/terminal/components/AgentRunStatusBanners.js.map +0 -1
- package/dist/editor/ai/terminal/components/AgentSettingsContent.d.ts +0 -53
- package/dist/editor/ai/terminal/components/AgentSettingsContent.js +0 -9
- package/dist/editor/ai/terminal/components/AgentSettingsContent.js.map +0 -1
- package/dist/editor/ai/terminal/components/AgentSettingsPopover.d.ts +0 -7
- package/dist/editor/ai/terminal/components/AgentSettingsPopover.js +0 -14
- package/dist/editor/ai/terminal/components/AgentSettingsPopover.js.map +0 -1
- package/dist/editor/ai/terminal/components/AgentSettingsSections.d.ts +0 -43
- package/dist/editor/ai/terminal/components/AgentSettingsSections.js +0 -33
- package/dist/editor/ai/terminal/components/AgentSettingsSections.js.map +0 -1
- package/dist/editor/ai/terminal/components/AgentSkillSettingsSection.d.ts +0 -21
- package/dist/editor/ai/terminal/components/AgentSkillSettingsSection.js +0 -48
- package/dist/editor/ai/terminal/components/AgentSkillSettingsSection.js.map +0 -1
- package/dist/editor/ai/terminal/components/AgentSuggestionBanner.d.ts +0 -16
- package/dist/editor/ai/terminal/components/AgentSuggestionBanner.js +0 -41
- package/dist/editor/ai/terminal/components/AgentSuggestionBanner.js.map +0 -1
- package/dist/editor/ai/terminal/components/AgentSummaryAssistantResponse.d.ts +0 -26
- package/dist/editor/ai/terminal/components/AgentSummaryAssistantResponse.js +0 -10
- package/dist/editor/ai/terminal/components/AgentSummaryAssistantResponse.js.map +0 -1
- package/dist/editor/ai/terminal/components/AgentSummaryErrorNotice.d.ts +0 -6
- package/dist/editor/ai/terminal/components/AgentSummaryErrorNotice.js +0 -10
- package/dist/editor/ai/terminal/components/AgentSummaryErrorNotice.js.map +0 -1
- package/dist/editor/ai/terminal/components/AgentSummaryPlaceholder.d.ts +0 -10
- package/dist/editor/ai/terminal/components/AgentSummaryPlaceholder.js +0 -13
- package/dist/editor/ai/terminal/components/AgentSummaryPlaceholder.js.map +0 -1
- package/dist/editor/ai/terminal/components/AgentSummaryPromptActions.d.ts +0 -12
- package/dist/editor/ai/terminal/components/AgentSummaryPromptActions.js +0 -21
- package/dist/editor/ai/terminal/components/AgentSummaryPromptActions.js.map +0 -1
- package/dist/editor/ai/terminal/components/AgentTerminalContextChrome.d.ts +0 -24
- package/dist/editor/ai/terminal/components/AgentTerminalContextChrome.js +0 -13
- package/dist/editor/ai/terminal/components/AgentTerminalContextChrome.js.map +0 -1
- package/dist/editor/ai/terminal/components/AgentTerminalContextPanels.d.ts +0 -23
- package/dist/editor/ai/terminal/components/AgentTerminalContextPanels.js +0 -66
- package/dist/editor/ai/terminal/components/AgentTerminalContextPanels.js.map +0 -1
- package/dist/editor/ai/terminal/components/AgentTerminalDialogHost.d.ts +0 -13
- package/dist/editor/ai/terminal/components/AgentTerminalDialogHost.js +0 -10
- package/dist/editor/ai/terminal/components/AgentTerminalDialogHost.js.map +0 -1
- package/dist/editor/ai/terminal/components/AgentTerminalFullLayout.d.ts +0 -24
- package/dist/editor/ai/terminal/components/AgentTerminalFullLayout.js +0 -24
- package/dist/editor/ai/terminal/components/AgentTerminalFullLayout.js.map +0 -1
- package/dist/editor/ai/terminal/components/AgentTerminalFullPromptControls.d.ts +0 -5
- package/dist/editor/ai/terminal/components/AgentTerminalFullPromptControls.js +0 -7
- package/dist/editor/ai/terminal/components/AgentTerminalFullPromptControls.js.map +0 -1
- package/dist/editor/ai/terminal/components/AgentTerminalFullUpperContent.d.ts +0 -62
- package/dist/editor/ai/terminal/components/AgentTerminalFullUpperContent.js +0 -98
- package/dist/editor/ai/terminal/components/AgentTerminalFullUpperContent.js.map +0 -1
- package/dist/editor/ai/terminal/components/AgentTerminalMessageGroups.d.ts +0 -18
- package/dist/editor/ai/terminal/components/AgentTerminalMessageGroups.js +0 -44
- package/dist/editor/ai/terminal/components/AgentTerminalMessageGroups.js.map +0 -1
- package/dist/editor/ai/terminal/components/AgentTerminalStatusBar.d.ts +0 -81
- package/dist/editor/ai/terminal/components/AgentTerminalStatusBar.js +0 -910
- package/dist/editor/ai/terminal/components/AgentTerminalStatusBar.js.map +0 -1
- package/dist/editor/ai/terminal/components/AgentTerminalSummaryLayout.d.ts +0 -42
- package/dist/editor/ai/terminal/components/AgentTerminalSummaryLayout.js +0 -18
- package/dist/editor/ai/terminal/components/AgentTerminalSummaryLayout.js.map +0 -1
- package/dist/editor/ai/terminal/components/AgentTerminalView.d.ts +0 -18
- package/dist/editor/ai/terminal/components/AgentTerminalView.js +0 -42
- package/dist/editor/ai/terminal/components/AgentTerminalView.js.map +0 -1
- package/dist/editor/ai/terminal/components/AgentThinkingDots.d.ts +0 -5
- package/dist/editor/ai/terminal/components/AgentThinkingDots.js +0 -9
- package/dist/editor/ai/terminal/components/AgentThinkingDots.js.map +0 -1
- package/dist/editor/ai/terminal/components/AiResponseMessage.d.ts +0 -25
- package/dist/editor/ai/terminal/components/AiResponseMessage.js +0 -1557
- package/dist/editor/ai/terminal/components/AiResponseMessage.js.map +0 -1
- package/dist/editor/ai/terminal/components/ContextInfoBar.d.ts +0 -17
- package/dist/editor/ai/terminal/components/ContextInfoBar.js +0 -588
- package/dist/editor/ai/terminal/components/ContextInfoBar.js.map +0 -1
- package/dist/editor/ai/terminal/components/EditOperationsPanel.d.ts +0 -9
- package/dist/editor/ai/terminal/components/EditOperationsPanel.js +0 -102
- package/dist/editor/ai/terminal/components/EditOperationsPanel.js.map +0 -1
- package/dist/editor/ai/terminal/components/HeartbeatMessage.d.ts +0 -4
- package/dist/editor/ai/terminal/components/HeartbeatMessage.js +0 -7
- package/dist/editor/ai/terminal/components/HeartbeatMessage.js.map +0 -1
- package/dist/editor/ai/terminal/components/InitialThinkingSplash.d.ts +0 -1
- package/dist/editor/ai/terminal/components/InitialThinkingSplash.js +0 -5
- package/dist/editor/ai/terminal/components/InitialThinkingSplash.js.map +0 -1
- package/dist/editor/ai/terminal/components/QuestionnaireRecap.d.ts +0 -9
- package/dist/editor/ai/terminal/components/QuestionnaireRecap.js +0 -56
- package/dist/editor/ai/terminal/components/QuestionnaireRecap.js.map +0 -1
- package/dist/editor/ai/terminal/components/QueuedPromptsPanel.d.ts +0 -8
- package/dist/editor/ai/terminal/components/QueuedPromptsPanel.js +0 -49
- package/dist/editor/ai/terminal/components/QueuedPromptsPanel.js.map +0 -1
- package/dist/editor/ai/terminal/components/SpawnedAgentsPanel.d.ts +0 -7
- package/dist/editor/ai/terminal/components/SpawnedAgentsPanel.js +0 -105
- package/dist/editor/ai/terminal/components/SpawnedAgentsPanel.js.map +0 -1
- package/dist/editor/ai/terminal/components/TodoListPanel.d.ts +0 -6
- package/dist/editor/ai/terminal/components/TodoListPanel.js +0 -117
- package/dist/editor/ai/terminal/components/TodoListPanel.js.map +0 -1
- package/dist/editor/ai/terminal/components/ToolCallDisplay.d.ts +0 -83
- package/dist/editor/ai/terminal/components/ToolCallDisplay.js +0 -784
- package/dist/editor/ai/terminal/components/ToolCallDisplay.js.map +0 -1
- package/dist/editor/ai/terminal/components/UserMessage.d.ts +0 -6
- package/dist/editor/ai/terminal/components/UserMessage.js +0 -243
- package/dist/editor/ai/terminal/components/UserMessage.js.map +0 -1
- package/dist/editor/ai/terminal/components/toolCallApprovalGate.d.ts +0 -21
- package/dist/editor/ai/terminal/components/toolCallApprovalGate.js +0 -32
- package/dist/editor/ai/terminal/components/toolCallApprovalGate.js.map +0 -1
- package/dist/editor/ai/terminal/contextBreakdown.d.ts +0 -17
- package/dist/editor/ai/terminal/contextBreakdown.js +0 -58
- package/dist/editor/ai/terminal/contextBreakdown.js.map +0 -1
- package/dist/editor/ai/terminal/types.d.ts +0 -136
- package/dist/editor/ai/terminal/types.js +0 -2
- package/dist/editor/ai/terminal/types.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentActiveStreaming.d.ts +0 -6
- package/dist/editor/ai/terminal/useAgentActiveStreaming.js +0 -9
- package/dist/editor/ai/terminal/useAgentActiveStreaming.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentAssignedSkillsSync.d.ts +0 -5
- package/dist/editor/ai/terminal/useAgentAssignedSkillsSync.js +0 -19
- package/dist/editor/ai/terminal/useAgentAssignedSkillsSync.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentAutoStartOnCreate.d.ts +0 -29
- package/dist/editor/ai/terminal/useAgentAutoStartOnCreate.js +0 -68
- package/dist/editor/ai/terminal/useAgentAutoStartOnCreate.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentContentChunkHandler.d.ts +0 -15
- package/dist/editor/ai/terminal/useAgentContentChunkHandler.js +0 -96
- package/dist/editor/ai/terminal/useAgentContentChunkHandler.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentContextDisplayNames.d.ts +0 -9
- package/dist/editor/ai/terminal/useAgentContextDisplayNames.js +0 -98
- package/dist/editor/ai/terminal/useAgentContextDisplayNames.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentContextUpdateHandler.d.ts +0 -7
- package/dist/editor/ai/terminal/useAgentContextUpdateHandler.js +0 -29
- package/dist/editor/ai/terminal/useAgentContextUpdateHandler.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentCostLimitActions.d.ts +0 -15
- package/dist/editor/ai/terminal/useAgentCostLimitActions.js +0 -41
- package/dist/editor/ai/terminal/useAgentCostLimitActions.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentCostLimitWatcher.d.ts +0 -11
- package/dist/editor/ai/terminal/useAgentCostLimitWatcher.js +0 -58
- package/dist/editor/ai/terminal/useAgentCostLimitWatcher.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentDraftInitializer.d.ts +0 -25
- package/dist/editor/ai/terminal/useAgentDraftInitializer.js +0 -121
- package/dist/editor/ai/terminal/useAgentDraftInitializer.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentEditorContext.d.ts +0 -12
- package/dist/editor/ai/terminal/useAgentEditorContext.js +0 -166
- package/dist/editor/ai/terminal/useAgentEditorContext.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentEditorContextPipeline.d.ts +0 -19
- package/dist/editor/ai/terminal/useAgentEditorContextPipeline.js +0 -16
- package/dist/editor/ai/terminal/useAgentEditorContextPipeline.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentEffectiveModelName.d.ts +0 -7
- package/dist/editor/ai/terminal/useAgentEffectiveModelName.js +0 -10
- package/dist/editor/ai/terminal/useAgentEffectiveModelName.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentHeartbeatMessages.d.ts +0 -16
- package/dist/editor/ai/terminal/useAgentHeartbeatMessages.js +0 -55
- package/dist/editor/ai/terminal/useAgentHeartbeatMessages.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentInfoSocketHandler.d.ts +0 -12
- package/dist/editor/ai/terminal/useAgentInfoSocketHandler.js +0 -55
- package/dist/editor/ai/terminal/useAgentInfoSocketHandler.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentInitialMetadataMerge.d.ts +0 -6
- package/dist/editor/ai/terminal/useAgentInitialMetadataMerge.js +0 -18
- package/dist/editor/ai/terminal/useAgentInitialMetadataMerge.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentInitialPrompt.d.ts +0 -16
- package/dist/editor/ai/terminal/useAgentInitialPrompt.js +0 -51
- package/dist/editor/ai/terminal/useAgentInitialPrompt.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentInlineDialogEvents.d.ts +0 -23
- package/dist/editor/ai/terminal/useAgentInlineDialogEvents.js +0 -196
- package/dist/editor/ai/terminal/useAgentInlineDialogEvents.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentInlineDialogPipeline.d.ts +0 -23
- package/dist/editor/ai/terminal/useAgentInlineDialogPipeline.js +0 -28
- package/dist/editor/ai/terminal/useAgentInlineDialogPipeline.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentInlineDialogState.d.ts +0 -22
- package/dist/editor/ai/terminal/useAgentInlineDialogState.js +0 -78
- package/dist/editor/ai/terminal/useAgentInlineDialogState.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentLoadErrorHandler.d.ts +0 -14
- package/dist/editor/ai/terminal/useAgentLoadErrorHandler.js +0 -26
- package/dist/editor/ai/terminal/useAgentLoadErrorHandler.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentLoadLifecycle.d.ts +0 -7
- package/dist/editor/ai/terminal/useAgentLoadLifecycle.js +0 -21
- package/dist/editor/ai/terminal/useAgentLoadLifecycle.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentLoadPipeline.d.ts +0 -40
- package/dist/editor/ai/terminal/useAgentLoadPipeline.js +0 -75
- package/dist/editor/ai/terminal/useAgentLoadPipeline.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentLoadedRunStateSync.d.ts +0 -13
- package/dist/editor/ai/terminal/useAgentLoadedRunStateSync.js +0 -31
- package/dist/editor/ai/terminal/useAgentLoadedRunStateSync.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentLoader.d.ts +0 -27
- package/dist/editor/ai/terminal/useAgentLoader.js +0 -80
- package/dist/editor/ai/terminal/useAgentLoader.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentMessageCompletionNotifier.d.ts +0 -6
- package/dist/editor/ai/terminal/useAgentMessageCompletionNotifier.js +0 -23
- package/dist/editor/ai/terminal/useAgentMessageCompletionNotifier.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentModeState.d.ts +0 -13
- package/dist/editor/ai/terminal/useAgentModeState.js +0 -52
- package/dist/editor/ai/terminal/useAgentModeState.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentOperationHistoryLoader.d.ts +0 -8
- package/dist/editor/ai/terminal/useAgentOperationHistoryLoader.js +0 -26
- package/dist/editor/ai/terminal/useAgentOperationHistoryLoader.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentOperationSocketHandler.d.ts +0 -6
- package/dist/editor/ai/terminal/useAgentOperationSocketHandler.js +0 -19
- package/dist/editor/ai/terminal/useAgentOperationSocketHandler.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentPendingApprovals.d.ts +0 -6
- package/dist/editor/ai/terminal/useAgentPendingApprovals.js +0 -35
- package/dist/editor/ai/terminal/useAgentPendingApprovals.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentPendingDialogRecovery.d.ts +0 -18
- package/dist/editor/ai/terminal/useAgentPendingDialogRecovery.js +0 -115
- package/dist/editor/ai/terminal/useAgentPendingDialogRecovery.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentPendingInitialPrompt.d.ts +0 -19
- package/dist/editor/ai/terminal/useAgentPendingInitialPrompt.js +0 -60
- package/dist/editor/ai/terminal/useAgentPendingInitialPrompt.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentProfileSelection.d.ts +0 -17
- package/dist/editor/ai/terminal/useAgentProfileSelection.js +0 -61
- package/dist/editor/ai/terminal/useAgentProfileSelection.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentPromptComposerHandlers.d.ts +0 -37
- package/dist/editor/ai/terminal/useAgentPromptComposerHandlers.js +0 -206
- package/dist/editor/ai/terminal/useAgentPromptComposerHandlers.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentPromptComposerProps.d.ts +0 -26
- package/dist/editor/ai/terminal/useAgentPromptComposerProps.js +0 -51
- package/dist/editor/ai/terminal/useAgentPromptComposerProps.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentPromptComposerSurface.d.ts +0 -27
- package/dist/editor/ai/terminal/useAgentPromptComposerSurface.js +0 -29
- package/dist/editor/ai/terminal/useAgentPromptComposerSurface.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentPromptDraft.d.ts +0 -11
- package/dist/editor/ai/terminal/useAgentPromptDraft.js +0 -39
- package/dist/editor/ai/terminal/useAgentPromptDraft.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentPromptQueueSocketHandler.d.ts +0 -6
- package/dist/editor/ai/terminal/useAgentPromptQueueSocketHandler.js +0 -22
- package/dist/editor/ai/terminal/useAgentPromptQueueSocketHandler.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentQuestionnaireDialogRecovery.d.ts +0 -12
- package/dist/editor/ai/terminal/useAgentQuestionnaireDialogRecovery.js +0 -49
- package/dist/editor/ai/terminal/useAgentQuestionnaireDialogRecovery.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentQueuedPromptReset.d.ts +0 -5
- package/dist/editor/ai/terminal/useAgentQueuedPromptReset.js +0 -10
- package/dist/editor/ai/terminal/useAgentQueuedPromptReset.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentQuickActions.d.ts +0 -15
- package/dist/editor/ai/terminal/useAgentQuickActions.js +0 -109
- package/dist/editor/ai/terminal/useAgentQuickActions.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentRunCompletionSocketHandler.d.ts +0 -22
- package/dist/editor/ai/terminal/useAgentRunCompletionSocketHandler.js +0 -67
- package/dist/editor/ai/terminal/useAgentRunCompletionSocketHandler.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentRunDeltaRouter.d.ts +0 -18
- package/dist/editor/ai/terminal/useAgentRunDeltaRouter.js +0 -53
- package/dist/editor/ai/terminal/useAgentRunDeltaRouter.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentRunDeltaSocketHandler.d.ts +0 -24
- package/dist/editor/ai/terminal/useAgentRunDeltaSocketHandler.js +0 -66
- package/dist/editor/ai/terminal/useAgentRunDeltaSocketHandler.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentRunDiagnostics.d.ts +0 -22
- package/dist/editor/ai/terminal/useAgentRunDiagnostics.js +0 -70
- package/dist/editor/ai/terminal/useAgentRunDiagnostics.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentRunMessagePipeline.d.ts +0 -42
- package/dist/editor/ai/terminal/useAgentRunMessagePipeline.js +0 -39
- package/dist/editor/ai/terminal/useAgentRunMessagePipeline.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentRunRefs.d.ts +0 -17
- package/dist/editor/ai/terminal/useAgentRunRefs.js +0 -44
- package/dist/editor/ai/terminal/useAgentRunRefs.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentRunResyncSocketHandler.d.ts +0 -15
- package/dist/editor/ai/terminal/useAgentRunResyncSocketHandler.js +0 -118
- package/dist/editor/ai/terminal/useAgentRunResyncSocketHandler.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentRunSequenceGuard.d.ts +0 -11
- package/dist/editor/ai/terminal/useAgentRunSequenceGuard.js +0 -22
- package/dist/editor/ai/terminal/useAgentRunSequenceGuard.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentRunStartSocketHandler.d.ts +0 -25
- package/dist/editor/ai/terminal/useAgentRunStartSocketHandler.js +0 -74
- package/dist/editor/ai/terminal/useAgentRunStartSocketHandler.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentRunStatusSocketHandler.d.ts +0 -36
- package/dist/editor/ai/terminal/useAgentRunStatusSocketHandler.js +0 -360
- package/dist/editor/ai/terminal/useAgentRunStatusSocketHandler.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentRuntimeStatus.d.ts +0 -11
- package/dist/editor/ai/terminal/useAgentRuntimeStatus.js +0 -9
- package/dist/editor/ai/terminal/useAgentRuntimeStatus.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentServerReconciler.d.ts +0 -5
- package/dist/editor/ai/terminal/useAgentServerReconciler.js +0 -22
- package/dist/editor/ai/terminal/useAgentServerReconciler.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentSession.d.ts +0 -50
- package/dist/editor/ai/terminal/useAgentSession.js +0 -181
- package/dist/editor/ai/terminal/useAgentSession.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentSessionCommandBindings.d.ts +0 -13
- package/dist/editor/ai/terminal/useAgentSessionCommandBindings.js +0 -26
- package/dist/editor/ai/terminal/useAgentSessionCommandBindings.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentSessionErrorBridge.d.ts +0 -10
- package/dist/editor/ai/terminal/useAgentSessionErrorBridge.js +0 -14
- package/dist/editor/ai/terminal/useAgentSessionErrorBridge.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentSessionFacade.d.ts +0 -49
- package/dist/editor/ai/terminal/useAgentSessionFacade.js +0 -127
- package/dist/editor/ai/terminal/useAgentSessionFacade.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentSessionSocketSource.d.ts +0 -8
- package/dist/editor/ai/terminal/useAgentSessionSocketSource.js +0 -17
- package/dist/editor/ai/terminal/useAgentSessionSocketSource.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentSessionSync.d.ts +0 -102
- package/dist/editor/ai/terminal/useAgentSessionSync.js +0 -179
- package/dist/editor/ai/terminal/useAgentSessionSync.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentSettingsCommands.d.ts +0 -49
- package/dist/editor/ai/terminal/useAgentSettingsCommands.js +0 -210
- package/dist/editor/ai/terminal/useAgentSettingsCommands.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentSettingsData.d.ts +0 -46
- package/dist/editor/ai/terminal/useAgentSettingsData.js +0 -380
- package/dist/editor/ai/terminal/useAgentSettingsData.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentSettingsNavigation.d.ts +0 -10
- package/dist/editor/ai/terminal/useAgentSettingsNavigation.js +0 -33
- package/dist/editor/ai/terminal/useAgentSettingsNavigation.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentSettingsPanel.d.ts +0 -87
- package/dist/editor/ai/terminal/useAgentSettingsPanel.js +0 -92
- package/dist/editor/ai/terminal/useAgentSettingsPanel.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentSettingsSelectOptions.d.ts +0 -15
- package/dist/editor/ai/terminal/useAgentSettingsSelectOptions.js +0 -45
- package/dist/editor/ai/terminal/useAgentSettingsSelectOptions.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentSettleCompletedRun.d.ts +0 -35
- package/dist/editor/ai/terminal/useAgentSettleCompletedRun.js +0 -51
- package/dist/editor/ai/terminal/useAgentSettleCompletedRun.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentSkillActions.d.ts +0 -33
- package/dist/editor/ai/terminal/useAgentSkillActions.js +0 -210
- package/dist/editor/ai/terminal/useAgentSkillActions.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentSocketMessageRouter.d.ts +0 -16
- package/dist/editor/ai/terminal/useAgentSocketMessageRouter.js +0 -57
- package/dist/editor/ai/terminal/useAgentSocketMessageRouter.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentStatusBarContent.d.ts +0 -36
- package/dist/editor/ai/terminal/useAgentStatusBarContent.js +0 -70
- package/dist/editor/ai/terminal/useAgentStatusBarContent.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentStopCommand.d.ts +0 -28
- package/dist/editor/ai/terminal/useAgentStopCommand.js +0 -55
- package/dist/editor/ai/terminal/useAgentStopCommand.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentStopGuardState.d.ts +0 -7
- package/dist/editor/ai/terminal/useAgentStopGuardState.js +0 -40
- package/dist/editor/ai/terminal/useAgentStopGuardState.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentStreamMessageFactory.d.ts +0 -5
- package/dist/editor/ai/terminal/useAgentStreamMessageFactory.js +0 -31
- package/dist/editor/ai/terminal/useAgentStreamMessageFactory.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentStreamPipeline.d.ts +0 -66
- package/dist/editor/ai/terminal/useAgentStreamPipeline.js +0 -169
- package/dist/editor/ai/terminal/useAgentStreamPipeline.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentStreamSubscription.d.ts +0 -27
- package/dist/editor/ai/terminal/useAgentStreamSubscription.js +0 -70
- package/dist/editor/ai/terminal/useAgentStreamSubscription.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentStreamWatchdog.d.ts +0 -38
- package/dist/editor/ai/terminal/useAgentStreamWatchdog.js +0 -228
- package/dist/editor/ai/terminal/useAgentStreamWatchdog.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentSubmitContextBuilder.d.ts +0 -14
- package/dist/editor/ai/terminal/useAgentSubmitContextBuilder.js +0 -85
- package/dist/editor/ai/terminal/useAgentSubmitContextBuilder.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentSubmitHandlers.d.ts +0 -57
- package/dist/editor/ai/terminal/useAgentSubmitHandlers.js +0 -402
- package/dist/editor/ai/terminal/useAgentSubmitHandlers.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentSubmitLifecycle.d.ts +0 -31
- package/dist/editor/ai/terminal/useAgentSubmitLifecycle.js +0 -45
- package/dist/editor/ai/terminal/useAgentSubmitLifecycle.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentSubmitResponseHandler.d.ts +0 -20
- package/dist/editor/ai/terminal/useAgentSubmitResponseHandler.js +0 -57
- package/dist/editor/ai/terminal/useAgentSubmitResponseHandler.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentSuggestionSocketHandler.d.ts +0 -25
- package/dist/editor/ai/terminal/useAgentSuggestionSocketHandler.js +0 -35
- package/dist/editor/ai/terminal/useAgentSuggestionSocketHandler.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentSummaryQuestionnaireScroll.d.ts +0 -5
- package/dist/editor/ai/terminal/useAgentSummaryQuestionnaireScroll.js +0 -32
- package/dist/editor/ai/terminal/useAgentSummaryQuestionnaireScroll.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentTerminalActions.d.ts +0 -23
- package/dist/editor/ai/terminal/useAgentTerminalActions.js +0 -54
- package/dist/editor/ai/terminal/useAgentTerminalActions.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentTerminalBackgroundEvents.d.ts +0 -15
- package/dist/editor/ai/terminal/useAgentTerminalBackgroundEvents.js +0 -16
- package/dist/editor/ai/terminal/useAgentTerminalBackgroundEvents.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentTerminalChrome.d.ts +0 -30
- package/dist/editor/ai/terminal/useAgentTerminalChrome.js +0 -12
- package/dist/editor/ai/terminal/useAgentTerminalChrome.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentTerminalController.d.ts +0 -2
- package/dist/editor/ai/terminal/useAgentTerminalController.js +0 -900
- package/dist/editor/ai/terminal/useAgentTerminalController.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentTerminalControls.d.ts +0 -19
- package/dist/editor/ai/terminal/useAgentTerminalControls.js +0 -21
- package/dist/editor/ai/terminal/useAgentTerminalControls.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentTerminalElementRefs.d.ts +0 -14
- package/dist/editor/ai/terminal/useAgentTerminalElementRefs.js +0 -17
- package/dist/editor/ai/terminal/useAgentTerminalElementRefs.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentTerminalNotices.d.ts +0 -10
- package/dist/editor/ai/terminal/useAgentTerminalNotices.js +0 -11
- package/dist/editor/ai/terminal/useAgentTerminalNotices.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentTerminalReadyEvents.d.ts +0 -7
- package/dist/editor/ai/terminal/useAgentTerminalReadyEvents.js +0 -29
- package/dist/editor/ai/terminal/useAgentTerminalReadyEvents.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentTerminalScroll.d.ts +0 -15
- package/dist/editor/ai/terminal/useAgentTerminalScroll.js +0 -63
- package/dist/editor/ai/terminal/useAgentTerminalScroll.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentTerminalUiState.d.ts +0 -27
- package/dist/editor/ai/terminal/useAgentTerminalUiState.js +0 -43
- package/dist/editor/ai/terminal/useAgentTerminalUiState.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentTerminalViewProps.d.ts +0 -19
- package/dist/editor/ai/terminal/useAgentTerminalViewProps.js +0 -22
- package/dist/editor/ai/terminal/useAgentTerminalViewProps.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentTerminalViewState.d.ts +0 -32
- package/dist/editor/ai/terminal/useAgentTerminalViewState.js +0 -44
- package/dist/editor/ai/terminal/useAgentTerminalViewState.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentTextareaDropHandlers.d.ts +0 -25
- package/dist/editor/ai/terminal/useAgentTextareaDropHandlers.js +0 -187
- package/dist/editor/ai/terminal/useAgentTextareaDropHandlers.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentToolApprovalResolvedEvents.d.ts +0 -14
- package/dist/editor/ai/terminal/useAgentToolApprovalResolvedEvents.js +0 -65
- package/dist/editor/ai/terminal/useAgentToolApprovalResolvedEvents.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentToolApprovalSupersede.d.ts +0 -8
- package/dist/editor/ai/terminal/useAgentToolApprovalSupersede.js +0 -53
- package/dist/editor/ai/terminal/useAgentToolApprovalSupersede.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentToolCallHandler.d.ts +0 -12
- package/dist/editor/ai/terminal/useAgentToolCallHandler.js +0 -84
- package/dist/editor/ai/terminal/useAgentToolCallHandler.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentToolResultHandler.d.ts +0 -18
- package/dist/editor/ai/terminal/useAgentToolResultHandler.js +0 -127
- package/dist/editor/ai/terminal/useAgentToolResultHandler.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentToolUiEvents.d.ts +0 -5
- package/dist/editor/ai/terminal/useAgentToolUiEvents.js +0 -24
- package/dist/editor/ai/terminal/useAgentToolUiEvents.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentUserMessageSocketHandler.d.ts +0 -9
- package/dist/editor/ai/terminal/useAgentUserMessageSocketHandler.js +0 -44
- package/dist/editor/ai/terminal/useAgentUserMessageSocketHandler.js.map +0 -1
- package/dist/editor/ai/terminal/useAgentVoiceInput.d.ts +0 -16
- package/dist/editor/ai/terminal/useAgentVoiceInput.js +0 -231
- package/dist/editor/ai/terminal/useAgentVoiceInput.js.map +0 -1
- package/dist/editor/ai/terminal/useSuppressedQueuedPrompts.d.ts +0 -6
- package/dist/editor/ai/terminal/useSuppressedQueuedPrompts.js +0 -57
- package/dist/editor/ai/terminal/useSuppressedQueuedPrompts.js.map +0 -1
- package/dist/editor/ai/useActiveAgentConversation.d.ts +0 -5
- package/dist/editor/ai/useActiveAgentConversation.js +0 -52
- package/dist/editor/ai/useActiveAgentConversation.js.map +0 -1
- package/dist/editor/bridge/BridgeClient.d.ts +0 -73
- package/dist/editor/bridge/BridgeClient.js +0 -415
- package/dist/editor/bridge/BridgeClient.js.map +0 -1
- package/dist/editor/bridge/protocol.d.ts +0 -564
- package/dist/editor/bridge/protocol.js +0 -200
- package/dist/editor/bridge/protocol.js.map +0 -1
- package/dist/editor/client/SessionExpiredOverlay.d.ts +0 -1
- package/dist/editor/client/SessionExpiredOverlay.js +0 -25
- package/dist/editor/client/SessionExpiredOverlay.js.map +0 -1
- package/dist/editor/client/hooks/feedbackSocketState.d.ts +0 -6
- package/dist/editor/client/hooks/feedbackSocketState.js +0 -16
- package/dist/editor/client/hooks/feedbackSocketState.js.map +0 -1
- package/dist/editor/client/hooks/useReducedMotion.d.ts +0 -8
- package/dist/editor/client/hooks/useReducedMotion.js +0 -12
- package/dist/editor/client/hooks/useReducedMotion.js.map +0 -1
- package/dist/editor/client/hooks/workboxDescriptors.d.ts +0 -6
- package/dist/editor/client/hooks/workboxDescriptors.js +0 -49
- package/dist/editor/client/hooks/workboxDescriptors.js.map +0 -1
- package/dist/editor/client/manualShowMeFocus.d.ts +0 -17
- package/dist/editor/client/manualShowMeFocus.js +0 -32
- package/dist/editor/client/manualShowMeFocus.js.map +0 -1
- package/dist/editor/client/operationToasts.d.ts +0 -2
- package/dist/editor/client/operationToasts.js +0 -35
- package/dist/editor/client/operationToasts.js.map +0 -1
- package/dist/editor/client/realtime/realtimeTransport.d.ts +0 -56
- package/dist/editor/client/realtime/realtimeTransport.js +0 -197
- package/dist/editor/client/realtime/realtimeTransport.js.map +0 -1
- package/dist/editor/commands/placeholderCommands.d.ts +0 -17
- package/dist/editor/commands/placeholderCommands.js +0 -37
- package/dist/editor/commands/placeholderCommands.js.map +0 -1
- package/dist/editor/commands/reorderComponent.d.ts +0 -20
- package/dist/editor/commands/reorderComponent.js +0 -40
- package/dist/editor/commands/reorderComponent.js.map +0 -1
- package/dist/editor/componentFrameColors.d.ts +0 -11
- package/dist/editor/componentFrameColors.js +0 -47
- package/dist/editor/componentFrameColors.js.map +0 -1
- package/dist/editor/field-types/richtext/bridgeRichTextProfile.d.ts +0 -21
- package/dist/editor/field-types/richtext/bridgeRichTextProfile.js +0 -96
- package/dist/editor/field-types/richtext/bridgeRichTextProfile.js.map +0 -1
- package/dist/editor/field-types/richtext/richTextToolbarIcons.d.ts +0 -7
- package/dist/editor/field-types/richtext/richTextToolbarIcons.js +0 -49
- package/dist/editor/field-types/richtext/richTextToolbarIcons.js.map +0 -1
- package/dist/editor/field-types/useFormFieldCaretPresence.d.ts +0 -13
- package/dist/editor/field-types/useFormFieldCaretPresence.js +0 -92
- package/dist/editor/field-types/useFormFieldCaretPresence.js.map +0 -1
- package/dist/editor/field-types/useTextCompletion.d.ts +0 -20
- package/dist/editor/field-types/useTextCompletion.js +0 -166
- package/dist/editor/field-types/useTextCompletion.js.map +0 -1
- package/dist/editor/media-selector/mediaFileType.d.ts +0 -12
- package/dist/editor/media-selector/mediaFileType.js +0 -95
- package/dist/editor/media-selector/mediaFileType.js.map +0 -1
- package/dist/editor/media-selector/mediaSelectionPath.d.ts +0 -5
- package/dist/editor/media-selector/mediaSelectionPath.js +0 -21
- package/dist/editor/media-selector/mediaSelectionPath.js.map +0 -1
- package/dist/editor/media-selector/mediaUpload.d.ts +0 -30
- package/dist/editor/media-selector/mediaUpload.js +0 -155
- package/dist/editor/media-selector/mediaUpload.js.map +0 -1
- package/dist/editor/menubar/OpenInNewTabButton.d.ts +0 -15
- package/dist/editor/menubar/OpenInNewTabButton.js +0 -42
- package/dist/editor/menubar/OpenInNewTabButton.js.map +0 -1
- package/dist/editor/menubar/OperationsIndicator.d.ts +0 -7
- package/dist/editor/menubar/OperationsIndicator.js +0 -87
- package/dist/editor/menubar/OperationsIndicator.js.map +0 -1
- package/dist/editor/menubar/toolbar-sections/ContentTreeToggle.d.ts +0 -1
- package/dist/editor/menubar/toolbar-sections/ContentTreeToggle.js +0 -13
- package/dist/editor/menubar/toolbar-sections/ContentTreeToggle.js.map +0 -1
- package/dist/editor/menubar/toolbar-sections/DeviceSwitchToolbar.d.ts +0 -7
- package/dist/editor/menubar/toolbar-sections/DeviceSwitchToolbar.js +0 -132
- package/dist/editor/menubar/toolbar-sections/DeviceSwitchToolbar.js.map +0 -1
- package/dist/editor/menubar/toolbar-sections/FullscreenControl.d.ts +0 -1
- package/dist/editor/menubar/toolbar-sections/FullscreenControl.js +0 -15
- package/dist/editor/menubar/toolbar-sections/FullscreenControl.js.map +0 -1
- package/dist/editor/notifications/watchEventOptions.d.ts +0 -13
- package/dist/editor/notifications/watchEventOptions.js +0 -113
- package/dist/editor/notifications/watchEventOptions.js.map +0 -1
- package/dist/editor/page-editor-chrome/BridgeInlineFormatOverlay.d.ts +0 -8
- package/dist/editor/page-editor-chrome/BridgeInlineFormatOverlay.js +0 -526
- package/dist/editor/page-editor-chrome/BridgeInlineFormatOverlay.js.map +0 -1
- package/dist/editor/page-editor-chrome/ComponentOperationBubble.d.ts +0 -8
- package/dist/editor/page-editor-chrome/ComponentOperationBubble.js +0 -8
- package/dist/editor/page-editor-chrome/ComponentOperationBubble.js.map +0 -1
- package/dist/editor/page-editor-chrome/DragInsertionOverlay.d.ts +0 -36
- package/dist/editor/page-editor-chrome/DragInsertionOverlay.js +0 -1067
- package/dist/editor/page-editor-chrome/DragInsertionOverlay.js.map +0 -1
- package/dist/editor/page-editor-chrome/FeedbackHighlightBadge.d.ts +0 -22
- package/dist/editor/page-editor-chrome/FeedbackHighlightBadge.js +0 -40
- package/dist/editor/page-editor-chrome/FeedbackHighlightBadge.js.map +0 -1
- package/dist/editor/page-editor-chrome/InsertComponentMenu.d.ts +0 -26
- package/dist/editor/page-editor-chrome/InsertComponentMenu.js +0 -35
- package/dist/editor/page-editor-chrome/InsertComponentMenu.js.map +0 -1
- package/dist/editor/page-editor-chrome/bridgeInlineFormatToolbarLayout.d.ts +0 -24
- package/dist/editor/page-editor-chrome/bridgeInlineFormatToolbarLayout.js +0 -90
- package/dist/editor/page-editor-chrome/bridgeInlineFormatToolbarLayout.js.map +0 -1
- package/dist/editor/page-editor-chrome/componentDragObject.d.ts +0 -10
- package/dist/editor/page-editor-chrome/componentDragObject.js +0 -22
- package/dist/editor/page-editor-chrome/componentDragObject.js.map +0 -1
- package/dist/editor/page-editor-chrome/insertTargetLabel.d.ts +0 -6
- package/dist/editor/page-editor-chrome/insertTargetLabel.js +0 -21
- package/dist/editor/page-editor-chrome/insertTargetLabel.js.map +0 -1
- package/dist/editor/page-editor-chrome/overlay/IframeOverlayProvider.d.ts +0 -62
- package/dist/editor/page-editor-chrome/overlay/IframeOverlayProvider.js +0 -306
- package/dist/editor/page-editor-chrome/overlay/IframeOverlayProvider.js.map +0 -1
- package/dist/editor/page-editor-chrome/overlay/InsertionLine.d.ts +0 -44
- package/dist/editor/page-editor-chrome/overlay/InsertionLine.js +0 -160
- package/dist/editor/page-editor-chrome/overlay/InsertionLine.js.map +0 -1
- package/dist/editor/page-editor-chrome/overlay/geometry.d.ts +0 -83
- package/dist/editor/page-editor-chrome/overlay/geometry.js +0 -349
- package/dist/editor/page-editor-chrome/overlay/geometry.js.map +0 -1
- package/dist/editor/page-editor-chrome/overlay/placeholderZones.d.ts +0 -67
- package/dist/editor/page-editor-chrome/overlay/placeholderZones.js +0 -279
- package/dist/editor/page-editor-chrome/overlay/placeholderZones.js.map +0 -1
- package/dist/editor/page-editor-chrome/overlay/useOverlayMeasurement.d.ts +0 -10
- package/dist/editor/page-editor-chrome/overlay/useOverlayMeasurement.js +0 -28
- package/dist/editor/page-editor-chrome/overlay/useOverlayMeasurement.js.map +0 -1
- package/dist/editor/page-editor-chrome/useBridgeInlineEditing.d.ts +0 -29
- package/dist/editor/page-editor-chrome/useBridgeInlineEditing.js +0 -334
- package/dist/editor/page-editor-chrome/useBridgeInlineEditing.js.map +0 -1
- package/dist/editor/page-editor-chrome/useComponentDragHandle.d.ts +0 -23
- package/dist/editor/page-editor-chrome/useComponentDragHandle.js +0 -41
- package/dist/editor/page-editor-chrome/useComponentDragHandle.js.map +0 -1
- package/dist/editor/page-editor-chrome/useDragInsertionGesture.d.ts +0 -23
- package/dist/editor/page-editor-chrome/useDragInsertionGesture.js +0 -207
- package/dist/editor/page-editor-chrome/useDragInsertionGesture.js.map +0 -1
- package/dist/editor/page-editor-chrome/usePinnedHoveredComponentId.d.ts +0 -2
- package/dist/editor/page-editor-chrome/usePinnedHoveredComponentId.js +0 -18
- package/dist/editor/page-editor-chrome/usePinnedHoveredComponentId.js.map +0 -1
- package/dist/editor/page-viewer/MinimapDropTargets.d.ts +0 -13
- package/dist/editor/page-viewer/MinimapDropTargets.js +0 -140
- package/dist/editor/page-viewer/MinimapDropTargets.js.map +0 -1
- package/dist/editor/page-viewer/bridgeFieldPatch.d.ts +0 -19
- package/dist/editor/page-viewer/bridgeFieldPatch.js +0 -33
- package/dist/editor/page-viewer/bridgeFieldPatch.js.map +0 -1
- package/dist/editor/page-viewer/bridgeKeyboardShortcuts.d.ts +0 -3
- package/dist/editor/page-viewer/bridgeKeyboardShortcuts.js +0 -36
- package/dist/editor/page-viewer/bridgeKeyboardShortcuts.js.map +0 -1
- package/dist/editor/page-viewer/renderUrl.d.ts +0 -14
- package/dist/editor/page-viewer/renderUrl.js +0 -83
- package/dist/editor/page-viewer/renderUrl.js.map +0 -1
- package/dist/editor/reviews/FeedbackCard.d.ts +0 -23
- package/dist/editor/reviews/FeedbackCard.js +0 -32
- package/dist/editor/reviews/FeedbackCard.js.map +0 -1
- package/dist/editor/reviews/FeedbackModeIntro.d.ts +0 -15
- package/dist/editor/reviews/FeedbackModeIntro.js +0 -22
- package/dist/editor/reviews/FeedbackModeIntro.js.map +0 -1
- package/dist/editor/reviews/MentionText.d.ts +0 -3
- package/dist/editor/reviews/MentionText.js +0 -139
- package/dist/editor/reviews/MentionText.js.map +0 -1
- package/dist/editor/reviews/SuggestionCommentThread.d.ts +0 -14
- package/dist/editor/reviews/SuggestionCommentThread.js +0 -151
- package/dist/editor/reviews/SuggestionCommentThread.js.map +0 -1
- package/dist/editor/reviews/commentTransientSelection.d.ts +0 -23
- package/dist/editor/reviews/commentTransientSelection.js +0 -7
- package/dist/editor/reviews/commentTransientSelection.js.map +0 -1
- package/dist/editor/reviews/feedbackAvatar.d.ts +0 -14
- package/dist/editor/reviews/feedbackAvatar.js +0 -86
- package/dist/editor/reviews/feedbackAvatar.js.map +0 -1
- package/dist/editor/reviews/feedbackCommentRules.d.ts +0 -3
- package/dist/editor/reviews/feedbackCommentRules.js +0 -15
- package/dist/editor/reviews/feedbackCommentRules.js.map +0 -1
- package/dist/editor/reviews/feedbackOrdering.d.ts +0 -5
- package/dist/editor/reviews/feedbackOrdering.js +0 -27
- package/dist/editor/reviews/feedbackOrdering.js.map +0 -1
- package/dist/editor/reviews/feedbackScrollTarget.d.ts +0 -19
- package/dist/editor/reviews/feedbackScrollTarget.js +0 -171
- package/dist/editor/reviews/feedbackScrollTarget.js.map +0 -1
- package/dist/editor/reviews/feedbackSelection.d.ts +0 -3
- package/dist/editor/reviews/feedbackSelection.js +0 -65
- package/dist/editor/reviews/feedbackSelection.js.map +0 -1
- package/dist/editor/reviews/feedbackSidebarText.d.ts +0 -2
- package/dist/editor/reviews/feedbackSidebarText.js +0 -3
- package/dist/editor/reviews/feedbackSidebarText.js.map +0 -1
- package/dist/editor/reviews/latestFeedbackData.d.ts +0 -11
- package/dist/editor/reviews/latestFeedbackData.js +0 -40
- package/dist/editor/reviews/latestFeedbackData.js.map +0 -1
- package/dist/editor/reviews/openCommentsFeedback.d.ts +0 -35
- package/dist/editor/reviews/openCommentsFeedback.js +0 -89
- package/dist/editor/reviews/openCommentsFeedback.js.map +0 -1
- package/dist/editor/reviews/suggestedEditState.d.ts +0 -14
- package/dist/editor/reviews/suggestedEditState.js +0 -110
- package/dist/editor/reviews/suggestedEditState.js.map +0 -1
- package/dist/editor/reviews/suggestionContentChange.d.ts +0 -2
- package/dist/editor/reviews/suggestionContentChange.js +0 -29
- package/dist/editor/reviews/suggestionContentChange.js.map +0 -1
- package/dist/editor/reviews/suggestionDisplayValue.d.ts +0 -43
- package/dist/editor/reviews/suggestionDisplayValue.js +0 -93
- package/dist/editor/reviews/suggestionDisplayValue.js.map +0 -1
- package/dist/editor/services/manualService.d.ts +0 -31
- package/dist/editor/services/manualService.js +0 -77
- package/dist/editor/services/manualService.js.map +0 -1
- package/dist/editor/services/userResolution.d.ts +0 -18
- package/dist/editor/services/userResolution.js +0 -86
- package/dist/editor/services/userResolution.js.map +0 -1
- package/dist/editor/services/userService.d.ts +0 -14
- package/dist/editor/services/userService.js +0 -39
- package/dist/editor/services/userService.js.map +0 -1
- package/dist/editor/settings/SettingsCard.d.ts +0 -4
- package/dist/editor/settings/SettingsCard.js +0 -7
- package/dist/editor/settings/SettingsCard.js.map +0 -1
- package/dist/editor/settings/SettingsPanelLayout.d.ts +0 -28
- package/dist/editor/settings/SettingsPanelLayout.js +0 -24
- package/dist/editor/settings/SettingsPanelLayout.js.map +0 -1
- package/dist/editor/settings/panels/AgentToolsPanel.d.ts +0 -2
- package/dist/editor/settings/panels/AgentToolsPanel.js +0 -178
- package/dist/editor/settings/panels/AgentToolsPanel.js.map +0 -1
- package/dist/editor/settings/panels/CreateMcpServerDialog.d.ts +0 -7
- package/dist/editor/settings/panels/CreateMcpServerDialog.js +0 -79
- package/dist/editor/settings/panels/CreateMcpServerDialog.js.map +0 -1
- package/dist/editor/settings/panels/FieldTypeSerializersPanel.d.ts +0 -2
- package/dist/editor/settings/panels/FieldTypeSerializersPanel.js +0 -52
- package/dist/editor/settings/panels/FieldTypeSerializersPanel.js.map +0 -1
- package/dist/editor/settings/panels/NotificationSubscriptionsPanel.d.ts +0 -2
- package/dist/editor/settings/panels/NotificationSubscriptionsPanel.js +0 -156
- package/dist/editor/settings/panels/NotificationSubscriptionsPanel.js.map +0 -1
- package/dist/editor/settings/panels/ProjectTemplateSelectorList.d.ts +0 -13
- package/dist/editor/settings/panels/ProjectTemplateSelectorList.js +0 -43
- package/dist/editor/settings/panels/ProjectTemplateSelectorList.js.map +0 -1
- package/dist/editor/settings/panels/SystemSettingsPanel.d.ts +0 -2
- package/dist/editor/settings/panels/SystemSettingsPanel.js +0 -69
- package/dist/editor/settings/panels/SystemSettingsPanel.js.map +0 -1
- package/dist/editor/settings/panels/UserPreferencesPanel.d.ts +0 -2
- package/dist/editor/settings/panels/UserPreferencesPanel.js +0 -66
- package/dist/editor/settings/panels/UserPreferencesPanel.js.map +0 -1
- package/dist/editor/setup-wizard/SetupStepError.d.ts +0 -8
- package/dist/editor/setup-wizard/SetupStepError.js +0 -7
- package/dist/editor/setup-wizard/SetupStepError.js.map +0 -1
- package/dist/editor/setup-wizard/SetupStepHeader.d.ts +0 -15
- package/dist/editor/setup-wizard/SetupStepHeader.js +0 -6
- package/dist/editor/setup-wizard/SetupStepHeader.js.map +0 -1
- package/dist/editor/setup-wizard/SetupStepLayout.d.ts +0 -33
- package/dist/editor/setup-wizard/SetupStepLayout.js +0 -16
- package/dist/editor/setup-wizard/SetupStepLayout.js.map +0 -1
- package/dist/editor/sidebar/ContentTreePanel.d.ts +0 -3
- package/dist/editor/sidebar/ContentTreePanel.js +0 -14
- package/dist/editor/sidebar/ContentTreePanel.js.map +0 -1
- package/dist/editor/sidebar/contentTreeConstants.d.ts +0 -2
- package/dist/editor/sidebar/contentTreeConstants.js +0 -3
- package/dist/editor/sidebar/contentTreeConstants.js.map +0 -1
- package/dist/editor/ui/HomeListRow.d.ts +0 -11
- package/dist/editor/ui/HomeListRow.js +0 -11
- package/dist/editor/ui/HomeListRow.js.map +0 -1
- package/dist/editor/ui/LoadingState.d.ts +0 -11
- package/dist/editor/ui/LoadingState.js +0 -27
- package/dist/editor/ui/LoadingState.js.map +0 -1
- package/dist/editor/ui/PublishDialog.d.ts +0 -11
- package/dist/editor/ui/PublishDialog.js +0 -101
- package/dist/editor/ui/PublishDialog.js.map +0 -1
- package/dist/editor/ui/WorkboxItemsTable.d.ts +0 -15
- package/dist/editor/ui/WorkboxItemsTable.js +0 -142
- package/dist/editor/ui/WorkboxItemsTable.js.map +0 -1
- package/dist/editor/ui/animationSettle.d.ts +0 -32
- package/dist/editor/ui/animationSettle.js +0 -85
- package/dist/editor/ui/animationSettle.js.map +0 -1
- package/dist/editor/ui/splitterResizeEvent.d.ts +0 -9
- package/dist/editor/ui/splitterResizeEvent.js +0 -13
- package/dist/editor/ui/splitterResizeEvent.js.map +0 -1
- package/dist/editor/utils/dedupeInflight.d.ts +0 -1
- package/dist/editor/utils/dedupeInflight.js +0 -13
- package/dist/editor/utils/dedupeInflight.js.map +0 -1
- package/dist/editor/utils/expandSelectionAtCaret.d.ts +0 -15
- package/dist/editor/utils/expandSelectionAtCaret.js +0 -183
- package/dist/editor/utils/expandSelectionAtCaret.js.map +0 -1
- package/dist/editor/views/ItemEditorPane.d.ts +0 -11
- package/dist/editor/views/ItemEditorPane.js +0 -19
- package/dist/editor/views/ItemEditorPane.js.map +0 -1
- package/dist/editor/workflowFields.d.ts +0 -1
- package/dist/editor/workflowFields.js +0 -16
- package/dist/editor/workflowFields.js.map +0 -1
- package/dist/lib/pointerDrag.d.ts +0 -20
- package/dist/lib/pointerDrag.js +0 -57
- package/dist/lib/pointerDrag.js.map +0 -1
- package/dist/logging/consolePrefix.d.ts +0 -2
- package/dist/logging/consolePrefix.js +0 -62
- package/dist/logging/consolePrefix.js.map +0 -1
- package/dist/logging/index.d.ts +0 -1
- package/dist/logging/index.js +0 -2
- package/dist/logging/index.js.map +0 -1
- package/dist/logging/install-browser-console.js +0 -3
- package/dist/logging/install-browser-console.js.map +0 -1
- package/dist/task-board/components/FinishedProjectCard.d.ts +0 -5
- package/dist/task-board/components/FinishedProjectCard.js +0 -8
- package/dist/task-board/components/FinishedProjectCard.js.map +0 -1
- package/dist/task-board/components/TaskAssigneeBadge.d.ts +0 -16
- package/dist/task-board/components/TaskAssigneeBadge.js +0 -21
- package/dist/task-board/components/TaskAssigneeBadge.js.map +0 -1
- package/dist/task-board/components/TaskAttachmentDropZone.d.ts +0 -11
- package/dist/task-board/components/TaskAttachmentDropZone.js +0 -100
- package/dist/task-board/components/TaskAttachmentDropZone.js.map +0 -1
- package/dist/task-board/components/TaskBoardBreadcrumb.d.ts +0 -17
- package/dist/task-board/components/TaskBoardBreadcrumb.js +0 -14
- package/dist/task-board/components/TaskBoardBreadcrumb.js.map +0 -1
- package/dist/task-board/components/TaskBoardFilterBox.d.ts +0 -4
- package/dist/task-board/components/TaskBoardFilterBox.js +0 -7
- package/dist/task-board/components/TaskBoardFilterBox.js.map +0 -1
- package/dist/task-board/components/TaskBoardHomeView.d.ts +0 -7
- package/dist/task-board/components/TaskBoardHomeView.js +0 -21
- package/dist/task-board/components/TaskBoardHomeView.js.map +0 -1
- package/dist/task-board/components/TaskBoardProjectSelector.d.ts +0 -8
- package/dist/task-board/components/TaskBoardProjectSelector.js +0 -20
- package/dist/task-board/components/TaskBoardProjectSelector.js.map +0 -1
- package/dist/task-board/taskPriority.d.ts +0 -4
- package/dist/task-board/taskPriority.js +0 -19
- package/dist/task-board/taskPriority.js.map +0 -1
- package/images/Parhelia-Onboarding-BG.jpg +0 -0
- /package/dist/editor/ai/{terminal/components/AgentBanners.d.ts → AgentBanners.d.ts} +0 -0
- /package/dist/editor/ai/{terminal/components/AgentCostDisplay.d.ts → AgentCostDisplay.d.ts} +0 -0
- /package/dist/{logging/install-browser-console.d.ts → editor/ai/agentDiagnostics.test.d.ts} +0 -0
|
@@ -1,73 +1,26 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import React, { useState, useEffect, useCallback, useMemo, useRef, } from "react";
|
|
3
|
-
import { Book, BookOpen, Loader2, Edit, ArrowLeft, ArrowRight, ChevronDown, ChevronRight, LocateFixed, Rocket, FileEdit, } from "lucide-react";
|
|
4
|
-
import {
|
|
5
|
-
import { loadManualToc, loadManualSection, invalidateManualSectionCache, } from "../../services/manualService";
|
|
3
|
+
import { Book, BookOpen, Loader2, Edit, ArrowLeft, ArrowRight, ChevronDown, ChevronRight, LocateFixed, Rocket, FileEdit, X, } from "lucide-react";
|
|
4
|
+
import { loadManualToc, loadManualSection, invalidateManualSectionCache, } from "../../services/aiService";
|
|
6
5
|
import { executeSearch } from "../../services/searchService";
|
|
7
|
-
import {
|
|
6
|
+
import { FilterInput } from "../../../components/FilterInput";
|
|
8
7
|
import { MarkdownDisplay, } from "../../../components/MarkdownDisplay";
|
|
9
8
|
import { Tooltip, TooltipTrigger, TooltipContent, } from "../../../components/ui/tooltip";
|
|
10
9
|
import { useEditContext } from "../../client/editContext";
|
|
11
10
|
import { cn } from "../../../lib/utils";
|
|
12
11
|
import { sanitizeSvg } from "../../../lib/sanitize";
|
|
13
12
|
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, } from "../../../components/ui/dropdown-menu";
|
|
14
|
-
import { waitForSelectorAnimations } from "../../ui/animationSettle";
|
|
15
13
|
/** Render a sanitized SVG string at a specific pixel size. */
|
|
16
14
|
function SvgIcon({ svg, size, className, }) {
|
|
17
15
|
const sanitizedSvg = sanitizeSvg(svg).trim();
|
|
18
16
|
return (_jsx("span", { className: cn("inline-flex items-center justify-center [&>svg]:block [&>svg]:h-full [&>svg]:w-full", className), style: { width: size, height: size }, dangerouslySetInnerHTML: { __html: sanitizedSvg } }));
|
|
19
17
|
}
|
|
20
18
|
const HIGHLIGHT_DURATION_MS = 2000;
|
|
21
|
-
const EDITOR_FORM_SLIDER_SELECTOR = '[data-testid="editor-form-slider"]';
|
|
22
|
-
const EDITOR_FORM_HIDDEN_ATTRIBUTE = "aria-hidden";
|
|
23
|
-
const CLOSE_PANE_LABEL = "Close pane";
|
|
24
|
-
function waitForDelay(delayMs) {
|
|
25
|
-
return new Promise((resolve) => {
|
|
26
|
-
window.setTimeout(resolve, delayMs);
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
function getEditorFormSlider(elements = []) {
|
|
30
|
-
for (const element of elements) {
|
|
31
|
-
const slider = element.closest(EDITOR_FORM_SLIDER_SELECTOR);
|
|
32
|
-
if (slider) {
|
|
33
|
-
return slider;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
return document.querySelector(EDITOR_FORM_SLIDER_SELECTOR);
|
|
37
|
-
}
|
|
38
|
-
function isEditorFormSliderHidden(slider) {
|
|
39
|
-
return slider?.getAttribute(EDITOR_FORM_HIDDEN_ATTRIBUTE) === "true";
|
|
40
|
-
}
|
|
41
|
-
async function waitForResolvedElements(resolveElements, selector, timeoutMs = 1000) {
|
|
42
|
-
const startedAt = Date.now();
|
|
43
|
-
while (Date.now() - startedAt < timeoutMs) {
|
|
44
|
-
const elements = resolveElements(selector);
|
|
45
|
-
if (elements.length > 0) {
|
|
46
|
-
return elements;
|
|
47
|
-
}
|
|
48
|
-
await waitForDelay(50);
|
|
49
|
-
}
|
|
50
|
-
return resolveElements(selector);
|
|
51
|
-
}
|
|
52
|
-
// Wait until at least one element for the selector is actually VISIBLE (not just
|
|
53
|
-
// present). After a reveal/animation a target can be in the DOM but not yet laid
|
|
54
|
-
// out, which would otherwise cause highlightElement to skip it.
|
|
55
|
-
async function waitForVisibleElements(selector, timeoutMs = 1000) {
|
|
56
|
-
const startedAt = Date.now();
|
|
57
|
-
while (Date.now() - startedAt < timeoutMs) {
|
|
58
|
-
const elements = getVisibleElementsForSelector(selector);
|
|
59
|
-
if (elements.length > 0) {
|
|
60
|
-
return elements;
|
|
61
|
-
}
|
|
62
|
-
await waitForDelay(50);
|
|
63
|
-
}
|
|
64
|
-
return getVisibleElementsForSelector(selector);
|
|
65
|
-
}
|
|
66
19
|
const manualMarkdownComponents = {
|
|
67
|
-
h1: ({ children }) => (_jsx("h1", { className: "
|
|
68
|
-
h2: ({ children }) => (_jsx("h2", { className: "
|
|
69
|
-
h3: ({ children }) => (_jsx("h3", { className: "
|
|
70
|
-
h4: ({ children }) => (_jsx("h4", { className: "
|
|
20
|
+
h1: ({ children }) => (_jsx("h1", { className: "mt-4 mb-0 text-xl font-bold text-gray-900", children: children })),
|
|
21
|
+
h2: ({ children }) => (_jsx("h2", { className: "mt-3 mb-0 text-lg font-semibold text-gray-800", children: children })),
|
|
22
|
+
h3: ({ children }) => (_jsx("h3", { className: "mt-2 mb-0 text-base font-semibold text-gray-700", children: children })),
|
|
23
|
+
h4: ({ children }) => (_jsx("h4", { className: "mt-2 mb-0 text-sm font-semibold text-gray-700", children: children })),
|
|
71
24
|
};
|
|
72
25
|
// Parse the uiSelectors field
|
|
73
26
|
// Formats:
|
|
@@ -98,15 +51,7 @@ export function parseUiSelectors(uiSelectors) {
|
|
|
98
51
|
let beforeAction;
|
|
99
52
|
let afterAction;
|
|
100
53
|
let availabilitySelector;
|
|
101
|
-
let selectorOverride;
|
|
102
|
-
let tab;
|
|
103
|
-
let closeMode;
|
|
104
54
|
for (const segment of segments) {
|
|
105
|
-
if (segment.startsWith("close=")) {
|
|
106
|
-
const value = segment.substring("close=".length).trim();
|
|
107
|
-
closeMode = value === "auto" ? "auto" : "click";
|
|
108
|
-
continue;
|
|
109
|
-
}
|
|
110
55
|
if (segment.startsWith("beforeAction=")) {
|
|
111
56
|
beforeAction = segment.substring("beforeAction=".length).trim();
|
|
112
57
|
continue;
|
|
@@ -121,14 +66,6 @@ export function parseUiSelectors(uiSelectors) {
|
|
|
121
66
|
.trim();
|
|
122
67
|
continue;
|
|
123
68
|
}
|
|
124
|
-
if (segment.startsWith("selector=")) {
|
|
125
|
-
selectorOverride = segment.substring("selector=".length).trim();
|
|
126
|
-
continue;
|
|
127
|
-
}
|
|
128
|
-
if (segment.startsWith("tab=")) {
|
|
129
|
-
tab = segment.substring("tab=".length).trim();
|
|
130
|
-
continue;
|
|
131
|
-
}
|
|
132
69
|
if (!notFoundMessage) {
|
|
133
70
|
notFoundMessage = segment;
|
|
134
71
|
}
|
|
@@ -142,16 +79,14 @@ export function parseUiSelectors(uiSelectors) {
|
|
|
142
79
|
: undefined;
|
|
143
80
|
const parsed = {
|
|
144
81
|
name,
|
|
145
|
-
selector: isSidebarOnly ? "" :
|
|
82
|
+
selector: isSidebarOnly ? "" : `@${name}`, // Empty selector for sidebar-only
|
|
146
83
|
availabilitySelector,
|
|
147
|
-
tab,
|
|
148
84
|
description,
|
|
149
85
|
notFoundMessage: notFoundMessage || undefined,
|
|
150
86
|
location: isSidebarOnly ? sidebarId : undefined, // Use actual sidebar ID (without -sidebar suffix) for sidebar-only
|
|
151
87
|
isSidebarOnly,
|
|
152
88
|
beforeAction,
|
|
153
89
|
afterAction,
|
|
154
|
-
closeMode,
|
|
155
90
|
};
|
|
156
91
|
// Primary key remains the selector name
|
|
157
92
|
map.set(name, parsed);
|
|
@@ -163,8 +98,7 @@ function parseSelectorToken(selectorToken) {
|
|
|
163
98
|
if (!selectorToken.startsWith("@"))
|
|
164
99
|
return { selector: selectorToken };
|
|
165
100
|
const raw = selectorToken.slice(1);
|
|
166
|
-
// Preserve iframe: selectors
|
|
167
|
-
// goes through the editing bridge instead of same-origin iframe probing.
|
|
101
|
+
// Preserve iframe: selectors (handled specially by expandSelector/highlightElement)
|
|
168
102
|
if (raw.startsWith("iframe:"))
|
|
169
103
|
return { selector: selectorToken };
|
|
170
104
|
// Check for sidebar-only syntax: @sidebar-id-sidebar (e.g., @reviews-sidebar)
|
|
@@ -200,6 +134,7 @@ export function expandSelector(selectorShorthand) {
|
|
|
200
134
|
return selector;
|
|
201
135
|
}
|
|
202
136
|
if (selector.startsWith("iframe:")) {
|
|
137
|
+
// Iframe selector: @iframe:selector → iframe:selector (handled by GuidanceOverlay)
|
|
203
138
|
return selector;
|
|
204
139
|
}
|
|
205
140
|
// Default: data-testid selector: @name → [data-testid="name"]
|
|
@@ -208,49 +143,14 @@ export function expandSelector(selectorShorthand) {
|
|
|
208
143
|
function getElementsForSelector(selector) {
|
|
209
144
|
const cssSelector = expandSelector(selector);
|
|
210
145
|
if (cssSelector.startsWith("iframe:")) {
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
// Determine whether an element is genuinely visible to the user, not merely
|
|
216
|
-
// present in the DOM. A target sitting inside a collapsed panel, a hidden
|
|
217
|
-
// sidebar (aria-hidden), or with `display:none` / `visibility:hidden` / zero
|
|
218
|
-
// size counts as NOT visible.
|
|
219
|
-
function isElementVisible(element) {
|
|
220
|
-
// Treat anything inside an explicitly aria-hidden container (e.g. a collapsed
|
|
221
|
-
// editor form slider) as not visible.
|
|
222
|
-
if (element.closest('[aria-hidden="true"]')) {
|
|
223
|
-
return false;
|
|
224
|
-
}
|
|
225
|
-
const candidate = element;
|
|
226
|
-
if (typeof candidate.checkVisibility === "function") {
|
|
227
|
-
if (!candidate.checkVisibility({
|
|
228
|
-
checkOpacity: true,
|
|
229
|
-
checkVisibilityCSS: true,
|
|
230
|
-
})) {
|
|
231
|
-
return false;
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
else {
|
|
235
|
-
// Fallback for environments without Element.checkVisibility (e.g. jsdom).
|
|
236
|
-
const style = window.getComputedStyle(element);
|
|
237
|
-
if (style.display === "none" ||
|
|
238
|
-
style.visibility === "hidden" ||
|
|
239
|
-
style.visibility === "collapse") {
|
|
240
|
-
return false;
|
|
241
|
-
}
|
|
242
|
-
// position:fixed elements have a null offsetParent but can still be visible.
|
|
243
|
-
if (element.offsetParent === null && style.position !== "fixed") {
|
|
244
|
-
return false;
|
|
146
|
+
const iframeSelector = cssSelector.substring(7);
|
|
147
|
+
const iframe = document.querySelector("iframe.page-iframe");
|
|
148
|
+
if (!iframe?.contentDocument) {
|
|
149
|
+
return [];
|
|
245
150
|
}
|
|
151
|
+
return Array.from(iframe.contentDocument.querySelectorAll(iframeSelector));
|
|
246
152
|
}
|
|
247
|
-
|
|
248
|
-
const rect = element.getBoundingClientRect();
|
|
249
|
-
return rect.width > 0 && rect.height > 0;
|
|
250
|
-
}
|
|
251
|
-
// Return only the elements matching a selector that are currently visible.
|
|
252
|
-
function getVisibleElementsForSelector(selector) {
|
|
253
|
-
return getElementsForSelector(selector).filter(isElementVisible);
|
|
153
|
+
return Array.from(document.querySelectorAll(cssSelector));
|
|
254
154
|
}
|
|
255
155
|
function shouldSkipHighlightScroll(element) {
|
|
256
156
|
const rect = element.getBoundingClientRect();
|
|
@@ -303,12 +203,9 @@ async function scrollElementForHighlight(element) {
|
|
|
303
203
|
// Highlight an element temporarily
|
|
304
204
|
export async function highlightElement(selector, duration = HIGHLIGHT_DURATION_MS) {
|
|
305
205
|
const cssSelector = expandSelector(selector);
|
|
306
|
-
|
|
307
|
-
// collapsed panel or hidden sidebar must not receive a stray overlay.
|
|
308
|
-
const elements = getElementsForSelector(selector).filter(isElementVisible);
|
|
206
|
+
const elements = getElementsForSelector(selector);
|
|
309
207
|
if (elements.length === 0)
|
|
310
208
|
return;
|
|
311
|
-
const overlayLifetimes = [];
|
|
312
209
|
if (cssSelector.startsWith("iframe:")) {
|
|
313
210
|
const iframe = document.querySelector("iframe.page-iframe");
|
|
314
211
|
const iframeRect = iframe?.getBoundingClientRect();
|
|
@@ -317,9 +214,8 @@ export async function highlightElement(selector, duration = HIGHLIGHT_DURATION_M
|
|
|
317
214
|
}
|
|
318
215
|
elements.forEach((element) => {
|
|
319
216
|
const elementRect = element.getBoundingClientRect();
|
|
320
|
-
|
|
217
|
+
showHighlightOverlay(elementRect.left + (iframeRect?.left ?? 0), elementRect.top + (iframeRect?.top ?? 0), elementRect.width, elementRect.height, duration);
|
|
321
218
|
});
|
|
322
|
-
await Promise.all(overlayLifetimes);
|
|
323
219
|
return;
|
|
324
220
|
}
|
|
325
221
|
if (elements[0]) {
|
|
@@ -327,52 +223,14 @@ export async function highlightElement(selector, duration = HIGHLIGHT_DURATION_M
|
|
|
327
223
|
}
|
|
328
224
|
elements.forEach((element) => {
|
|
329
225
|
const rect = element.getBoundingClientRect();
|
|
330
|
-
|
|
226
|
+
showHighlightOverlay(rect.left, rect.top, rect.width, rect.height, duration);
|
|
331
227
|
});
|
|
332
|
-
await Promise.all(overlayLifetimes);
|
|
333
228
|
}
|
|
334
|
-
// Check if an element is currently
|
|
335
|
-
function
|
|
229
|
+
// Check if an element is currently available in the DOM
|
|
230
|
+
function isElementAvailable(selector) {
|
|
336
231
|
return getElementsForSelector(selector).length > 0;
|
|
337
232
|
}
|
|
338
|
-
//
|
|
339
|
-
function isElementVisibleBySelector(selector) {
|
|
340
|
-
return getVisibleElementsForSelector(selector).length > 0;
|
|
341
|
-
}
|
|
342
|
-
export function deriveSelectorState(params) {
|
|
343
|
-
if (!params.isAnchorReachable) {
|
|
344
|
-
return "disabled";
|
|
345
|
-
}
|
|
346
|
-
// Sidebar-only selectors have no element to "see"; opening the sidebar is the action.
|
|
347
|
-
if (params.isSidebarOnly) {
|
|
348
|
-
return "show-action";
|
|
349
|
-
}
|
|
350
|
-
if (params.isTargetVisible) {
|
|
351
|
-
return "show";
|
|
352
|
-
}
|
|
353
|
-
if (params.hasRevealPath) {
|
|
354
|
-
return "show-action";
|
|
355
|
-
}
|
|
356
|
-
return "disabled";
|
|
357
|
-
}
|
|
358
|
-
export function shouldResetActiveReveal(params) {
|
|
359
|
-
if (!params.hasReveal || !params.isRevealStillOpen) {
|
|
360
|
-
return true;
|
|
361
|
-
}
|
|
362
|
-
return params.hasAvailabilitySelector && !params.isAnchorPresent;
|
|
363
|
-
}
|
|
364
|
-
// Finishers for every highlight overlay currently on screen. Lets a superseding
|
|
365
|
-
// reveal wipe the previous reveal's highlight immediately so it does not keep
|
|
366
|
-
// pulsing over the close/re-open transition (the "uncoordinated animation").
|
|
367
|
-
const activeHighlightFinishers = new Set();
|
|
368
|
-
// Remove all active highlight overlays right now (resolving their lifetimes).
|
|
369
|
-
function clearActiveHighlightOverlays() {
|
|
370
|
-
for (const finish of [...activeHighlightFinishers]) {
|
|
371
|
-
finish();
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
// Create a temporary highlight overlay. Resolves when its finite "life"
|
|
375
|
-
// animation ends and the overlay has been removed (event-driven, not a timer).
|
|
233
|
+
// Create a temporary highlight overlay
|
|
376
234
|
function showHighlightOverlay(x, y, width, height, duration) {
|
|
377
235
|
const padding = 4;
|
|
378
236
|
const viewportWidth = window.innerWidth;
|
|
@@ -389,24 +247,22 @@ function showHighlightOverlay(x, y, width, height, duration) {
|
|
|
389
247
|
const clampedHeight = bottom - top;
|
|
390
248
|
// Skip if target is fully outside the viewport after clamping.
|
|
391
249
|
if (clampedWidth <= 0 || clampedHeight <= 0)
|
|
392
|
-
return
|
|
250
|
+
return;
|
|
393
251
|
const overlay = document.createElement("div");
|
|
394
252
|
overlay.className = "selector-highlight-overlay";
|
|
395
|
-
// Two animations: the infinite pulse for the visual, and a finite "life"
|
|
396
|
-
// animation whose animationend drives removal (single source of duration).
|
|
397
253
|
overlay.style.cssText = `
|
|
398
254
|
position: fixed;
|
|
399
255
|
left: ${left}px;
|
|
400
256
|
top: ${top}px;
|
|
401
257
|
width: ${clampedWidth}px;
|
|
402
258
|
height: ${clampedHeight}px;
|
|
403
|
-
border: 2px solid
|
|
259
|
+
border: 2px solid #3b82f6;
|
|
404
260
|
border-radius: 4px;
|
|
405
|
-
background:
|
|
261
|
+
background: rgba(59, 130, 246, 0.1);
|
|
406
262
|
pointer-events: none;
|
|
407
263
|
z-index: 999999;
|
|
408
|
-
animation: pulse-highlight 1s ease-in-out infinite
|
|
409
|
-
box-shadow: 0 0 0 4px
|
|
264
|
+
animation: pulse-highlight 1s ease-in-out infinite;
|
|
265
|
+
box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
|
|
410
266
|
`;
|
|
411
267
|
// Add animation keyframes if not already added
|
|
412
268
|
if (!document.querySelector("#selector-highlight-style")) {
|
|
@@ -414,748 +270,130 @@ function showHighlightOverlay(x, y, width, height, duration) {
|
|
|
414
270
|
style.id = "selector-highlight-style";
|
|
415
271
|
style.textContent = `
|
|
416
272
|
@keyframes pulse-highlight {
|
|
417
|
-
0%, 100% { box-shadow: 0 0 0 4px
|
|
418
|
-
50% { box-shadow: 0 0 0 8px
|
|
419
|
-
}
|
|
420
|
-
@keyframes selector-highlight-life {
|
|
421
|
-
from { opacity: 1; }
|
|
422
|
-
to { opacity: 1; }
|
|
273
|
+
0%, 100% { box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2); }
|
|
274
|
+
50% { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.1); }
|
|
423
275
|
}
|
|
424
276
|
`;
|
|
425
277
|
document.head.appendChild(style);
|
|
426
278
|
}
|
|
427
279
|
document.body.appendChild(overlay);
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
if (finished)
|
|
432
|
-
return;
|
|
433
|
-
finished = true;
|
|
434
|
-
activeHighlightFinishers.delete(finish);
|
|
435
|
-
overlay.removeEventListener("animationend", onAnimationEnd);
|
|
436
|
-
overlay.remove();
|
|
437
|
-
resolve();
|
|
438
|
-
};
|
|
439
|
-
const onAnimationEnd = (event) => {
|
|
440
|
-
// Ignore the infinite pulse; only the finite life animation ends.
|
|
441
|
-
if (event.animationName === "selector-highlight-life") {
|
|
442
|
-
finish();
|
|
443
|
-
}
|
|
444
|
-
};
|
|
445
|
-
overlay.addEventListener("animationend", onAnimationEnd);
|
|
446
|
-
// Allow a superseding reveal to wipe this overlay immediately.
|
|
447
|
-
activeHighlightFinishers.add(finish);
|
|
448
|
-
// Guardrail: if animationend is ever missed, remove shortly after duration.
|
|
449
|
-
window.setTimeout(finish, duration + 500);
|
|
450
|
-
});
|
|
451
|
-
}
|
|
452
|
-
export function hasStatefulRevealSurface(surfaceKeys) {
|
|
453
|
-
return surfaceKeys.some((key) => !key.startsWith("custom:"));
|
|
454
|
-
}
|
|
455
|
-
// Whether a superseding reveal should keep (hand off) the previous reveal's
|
|
456
|
-
// already-open editor-form slider instead of closing and reopening it. The
|
|
457
|
-
// slider is a controlled surface (not dismiss-on-outside), so it can persist
|
|
458
|
-
// across reveals: when the incoming reveal is non-sidebar and the slider is
|
|
459
|
-
// already open, we carry the surface forward to avoid a visible close-reopen
|
|
460
|
-
// flicker. Mirrors the `shouldOpenEditorForm` gate but on the "already open"
|
|
461
|
-
// state (there is only something to carry when it is open).
|
|
462
|
-
export function shouldCarryEditorFormSurface(params) {
|
|
463
|
-
return !params.isSidebarOnly && params.sliderExists && params.isSliderOpen;
|
|
464
|
-
}
|
|
465
|
-
let activeRevealController = null;
|
|
466
|
-
let revealControllerSeq = 0;
|
|
467
|
-
// Serialize Show-me reveal clicks across ALL buttons so overlapping rapid clicks
|
|
468
|
-
// can never interleave. Each click chains behind the previous handler and grabs
|
|
469
|
-
// a monotonic token. This closes the race where, during the
|
|
470
|
-
// `await superseded.close()` teardown window, no global controller is registered:
|
|
471
|
-
// without serialization a faster later click could start, become active, and
|
|
472
|
-
// then be overwritten by this (older, still-awaiting) handler — i.e. NOT
|
|
473
|
-
// "last click wins". With the chain, a newer click waits for this one to fully
|
|
474
|
-
// settle (and is then properly superseded), and an older handler that has been
|
|
475
|
-
// overtaken while waiting discards its work via the token check.
|
|
476
|
-
let revealClickChain = Promise.resolve();
|
|
477
|
-
let revealClickSeq = 0;
|
|
478
|
-
// Store the new active reveal. Superseding the previous one is done explicitly
|
|
479
|
-
// at click start (see supersedeActiveReveal), so this only records state.
|
|
480
|
-
function registerActiveReveal(controller) {
|
|
481
|
-
activeRevealController = controller;
|
|
482
|
-
}
|
|
483
|
-
// Detach and return the currently active reveal unless it belongs to exceptId.
|
|
484
|
-
// The caller is responsible for closing it (and awaiting its teardown).
|
|
485
|
-
function supersedeActiveReveal(exceptId) {
|
|
486
|
-
const current = activeRevealController;
|
|
487
|
-
if (current && current.id !== exceptId) {
|
|
488
|
-
activeRevealController = null;
|
|
489
|
-
return current;
|
|
490
|
-
}
|
|
491
|
-
return null;
|
|
492
|
-
}
|
|
493
|
-
function clearActiveReveal(id) {
|
|
494
|
-
if (activeRevealController?.id === id) {
|
|
495
|
-
activeRevealController = null;
|
|
496
|
-
}
|
|
497
|
-
}
|
|
498
|
-
// The surface key for the Agents panel depends on HOW it opens (mirrors the
|
|
499
|
-
// open logic in config.tsx `openAgentsPanel`): the dedicated far-right panel on
|
|
500
|
-
// desktop ("agents-panel") vs. a left sidebar stack on mobile / contexts without
|
|
501
|
-
// `setShowAgentsPanel` ("sidebar:agents-panel"). Used for de-duplication within
|
|
502
|
-
// a reveal and to keep the surface key self-documenting.
|
|
503
|
-
function agentsPanelSurfaceKey(editContext) {
|
|
504
|
-
if (editContext &&
|
|
505
|
-
!editContext.isMobile &&
|
|
506
|
-
typeof editContext.setShowAgentsPanel === "function") {
|
|
507
|
-
return "agents-panel";
|
|
508
|
-
}
|
|
509
|
-
return "sidebar:agents-panel";
|
|
510
|
-
}
|
|
511
|
-
// Close the More-panels flyout if it is currently open (inverse of open-more-sidebars).
|
|
512
|
-
function isMorePanelsExpanded() {
|
|
513
|
-
return !!document.querySelector('[data-testid="more-sidebars-button"][aria-expanded="true"]');
|
|
514
|
-
}
|
|
515
|
-
function closeMorePanelsIfOpen() {
|
|
516
|
-
if (!isMorePanelsExpanded())
|
|
517
|
-
return;
|
|
518
|
-
const trigger = document.querySelector('[data-testid="more-sidebars-button"]');
|
|
519
|
-
trigger?.click();
|
|
520
|
-
}
|
|
521
|
-
function closeVersionSelectorIfOpen() {
|
|
522
|
-
if (!isElementPresent("@version-selector-list"))
|
|
523
|
-
return;
|
|
524
|
-
const list = document.querySelector('[data-testid="version-selector-list"]');
|
|
525
|
-
if (list) {
|
|
526
|
-
list.dispatchEvent(new KeyboardEvent("keydown", {
|
|
527
|
-
key: "Escape",
|
|
528
|
-
code: "Escape",
|
|
529
|
-
bubbles: true,
|
|
530
|
-
cancelable: true,
|
|
531
|
-
}));
|
|
532
|
-
return;
|
|
533
|
-
}
|
|
534
|
-
const trigger = document.querySelector('[data-testid="version-selector"][aria-expanded="true"]') ??
|
|
535
|
-
document.querySelector('[data-testid="version-selector"]');
|
|
536
|
-
trigger?.click();
|
|
537
|
-
}
|
|
538
|
-
function isNotificationCenterExpanded() {
|
|
539
|
-
return !!document.querySelector('[data-testid="notification-center-trigger"][aria-expanded="true"]');
|
|
540
|
-
}
|
|
541
|
-
function closeNotificationCenterIfOpen() {
|
|
542
|
-
if (!isElementPresent("@notification-center-list"))
|
|
543
|
-
return;
|
|
544
|
-
const list = document.querySelector('[data-testid="notification-center-list"]');
|
|
545
|
-
if (list) {
|
|
546
|
-
list.dispatchEvent(new KeyboardEvent("keydown", {
|
|
547
|
-
key: "Escape",
|
|
548
|
-
code: "Escape",
|
|
549
|
-
bubbles: true,
|
|
550
|
-
cancelable: true,
|
|
551
|
-
}));
|
|
552
|
-
return;
|
|
553
|
-
}
|
|
554
|
-
const trigger = document.querySelector('[data-testid="notification-center-trigger"][aria-expanded="true"]') ??
|
|
555
|
-
document.querySelector('[data-testid="notification-center-trigger"]');
|
|
556
|
-
trigger?.click();
|
|
557
|
-
}
|
|
558
|
-
// Resolve once the More-panels popover is fully closed: its list is gone AND
|
|
559
|
-
// the trigger no longer reports aria-expanded="true". This lets a superseding
|
|
560
|
-
// More-panels reveal reopen from a truly closed state instead of sampling
|
|
561
|
-
// present-but-closing menu items.
|
|
562
|
-
async function waitForMorePanelsClosed(timeoutMs = 1000) {
|
|
563
|
-
const isStillOpen = () => isElementPresent("@more-sidebars-panel") || isMorePanelsExpanded();
|
|
564
|
-
const waitUntilClosed = async () => {
|
|
565
|
-
const startedAt = Date.now();
|
|
566
|
-
while (Date.now() - startedAt < timeoutMs && isStillOpen()) {
|
|
567
|
-
await waitForDelay(50);
|
|
568
|
-
}
|
|
569
|
-
return !isStillOpen();
|
|
570
|
-
};
|
|
571
|
-
if (await waitUntilClosed())
|
|
572
|
-
return;
|
|
573
|
-
// If the first close signal was missed, try one guarded close again. The
|
|
574
|
-
// guard prevents toggling a panel that is already closing or closed.
|
|
575
|
-
closeMorePanelsIfOpen();
|
|
576
|
-
await waitForSelectorAnimations('[data-testid="more-sidebars-panel"]');
|
|
577
|
-
await waitUntilClosed();
|
|
578
|
-
}
|
|
579
|
-
// Resolve once the version-selector popover is fully closed: its list is gone
|
|
580
|
-
// AND the trigger no longer reports aria-expanded="true". The supersede close
|
|
581
|
-
// awaits this so the next reveal's open-version-selector (which early-returns
|
|
582
|
-
// when it believes the popover is still open/visible) always starts from a
|
|
583
|
-
// truly closed state, making the close-then-reopen deterministic.
|
|
584
|
-
async function waitForVersionSelectorClosed(timeoutMs = 1000) {
|
|
585
|
-
const startedAt = Date.now();
|
|
586
|
-
const isStillOpen = () => isElementPresent("@version-selector-list") ||
|
|
587
|
-
!!document.querySelector('[data-testid="version-selector"][aria-expanded="true"]');
|
|
588
|
-
while (Date.now() - startedAt < timeoutMs && isStillOpen()) {
|
|
589
|
-
await waitForDelay(50);
|
|
590
|
-
}
|
|
591
|
-
}
|
|
592
|
-
async function waitForNotificationCenterClosed(timeoutMs = 1000) {
|
|
593
|
-
const startedAt = Date.now();
|
|
594
|
-
const isStillOpen = () => isElementPresent("@notification-center-list") ||
|
|
595
|
-
isNotificationCenterExpanded();
|
|
596
|
-
while (Date.now() - startedAt < timeoutMs && isStillOpen()) {
|
|
597
|
-
await waitForDelay(50);
|
|
598
|
-
}
|
|
599
|
-
}
|
|
600
|
-
function isAgentsPanelOpen() {
|
|
601
|
-
const trigger = document.querySelector('[data-testid="agents-panel-button"]');
|
|
602
|
-
return (trigger?.getAttribute("aria-pressed") === "true" ||
|
|
603
|
-
isElementVisibleBySelector("@sidebar-panel-agents-panel"));
|
|
280
|
+
setTimeout(() => {
|
|
281
|
+
overlay.remove();
|
|
282
|
+
}, duration);
|
|
604
283
|
}
|
|
605
284
|
// Button component for "Show me" functionality with availability detection
|
|
606
285
|
function SelectorButton({ selectorDef, keyProp, }) {
|
|
607
286
|
const editContext = useEditContext();
|
|
608
287
|
const manualActions = editContext?.configuration.editor.manualActions;
|
|
609
|
-
const
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
const
|
|
615
|
-
//
|
|
616
|
-
const
|
|
617
|
-
editContextRef.current = editContext;
|
|
288
|
+
const availabilitySelector = selectorDef.availabilitySelector || selectorDef.selector;
|
|
289
|
+
// For sidebar-only selectors, we don't need to check for an element
|
|
290
|
+
const isSidebarOnly = selectorDef.isSidebarOnly;
|
|
291
|
+
// Initialize to true for sidebar-only, false otherwise to avoid hydration mismatch
|
|
292
|
+
// (document.querySelector doesn't exist during SSR)
|
|
293
|
+
const [isAvailable, setIsAvailable] = useState(isSidebarOnly ? true : false);
|
|
294
|
+
// Can open sidebar if: sidebar-only selector
|
|
295
|
+
const canAutoOpenSidebar = Boolean(isSidebarOnly && editContext?.openSidebar && selectorDef.location);
|
|
618
296
|
const hasBeforeAction = Boolean(selectorDef.beforeAction &&
|
|
619
297
|
manualActions?.[selectorDef.beforeAction] &&
|
|
620
298
|
editContext);
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
editContext?.openSidebar &&
|
|
626
|
-
editContext.workspace?.supportsSidebars &&
|
|
627
|
-
editContext.availableSidebars?.some((s) => s.id === selectorDef.location));
|
|
628
|
-
// Presence/visibility probes, kept up to date by the effect below.
|
|
629
|
-
// The anchor gates "is this relevant in the current context", so it checks
|
|
630
|
-
// presence (it may itself be a currently-collapsed container). The target
|
|
631
|
-
// checks visibility to distinguish "show" from "show-action".
|
|
632
|
-
const [isTargetPresent, setIsTargetPresent] = useState(false);
|
|
633
|
-
const [isTargetVisible, setIsTargetVisible] = useState(false);
|
|
634
|
-
const [isAnchorPresent, setIsAnchorPresent] = useState(false);
|
|
635
|
-
// True while THIS button has revealed a container (State 3 active -> green).
|
|
636
|
-
const [isActiveReveal, setIsActiveReveal] = useState(false);
|
|
637
|
-
const controllerIdRef = useRef(0);
|
|
638
|
-
const revealRef = useRef(null);
|
|
639
|
-
const isAnchorReachable = hasAvailabilitySelector
|
|
640
|
-
? isAnchorPresent
|
|
641
|
-
: isSidebarOnly
|
|
642
|
-
? canAutoOpenSidebar
|
|
643
|
-
: isTargetPresent || hasBeforeAction;
|
|
644
|
-
const hasRevealPath = isSidebarOnly || hasBeforeAction || canAutoOpenSidebar || isTargetPresent;
|
|
645
|
-
const state = deriveSelectorState({
|
|
646
|
-
isSidebarOnly,
|
|
647
|
-
isAnchorReachable,
|
|
648
|
-
isTargetVisible,
|
|
649
|
-
hasRevealPath,
|
|
650
|
-
});
|
|
651
|
-
const isDisabled = state === "disabled";
|
|
652
|
-
// Reset active (green) state WITHOUT running the undo steps. Used when the
|
|
653
|
-
// revealed container was closed by some other means.
|
|
654
|
-
const resetActiveState = useCallback(() => {
|
|
655
|
-
clearActiveReveal(controllerIdRef.current);
|
|
656
|
-
revealRef.current = null;
|
|
657
|
-
setIsActiveReveal(false);
|
|
658
|
-
}, []);
|
|
659
|
-
// Tear down this reveal: wipe its highlight, reset the button, and close every
|
|
660
|
-
// owned surface (reverse open order so nested surfaces close first) EXCEPT
|
|
661
|
-
// those whose key is in `keepKeys`. Kept (still-open) surfaces are returned so
|
|
662
|
-
// a superseding reveal can adopt them instead of closing+reopening them.
|
|
663
|
-
// Used for explicit close (2nd click, auto timer), external-close handling,
|
|
664
|
-
// and being superseded by another reveal.
|
|
665
|
-
const runRestoreKeeping = useCallback(async (keepKeys = []) => {
|
|
666
|
-
const reveal = revealRef.current;
|
|
667
|
-
// Remove the highlight immediately so it does not keep pulsing over the
|
|
668
|
-
// close/re-open transition while the next reveal builds up.
|
|
669
|
-
clearActiveHighlightOverlays();
|
|
670
|
-
// Reset button state immediately (button turns blue) while the surface
|
|
671
|
-
// teardown animation plays out; the promise resolves once settled.
|
|
672
|
-
clearActiveReveal(reveal?.id ?? controllerIdRef.current);
|
|
673
|
-
revealRef.current = null;
|
|
674
|
-
setIsActiveReveal(false);
|
|
675
|
-
if (!reveal)
|
|
676
|
-
return [];
|
|
677
|
-
const kept = [];
|
|
678
|
-
// Close in reverse open order (nested surfaces close first).
|
|
679
|
-
for (let i = reveal.surfaceOps.length - 1; i >= 0; i -= 1) {
|
|
680
|
-
const op = reveal.surfaceOps[i];
|
|
681
|
-
if (!op)
|
|
682
|
-
continue;
|
|
683
|
-
if (keepKeys.includes(op.key) && op.isOpen()) {
|
|
684
|
-
kept.push(op);
|
|
685
|
-
continue;
|
|
686
|
-
}
|
|
687
|
-
try {
|
|
688
|
-
await op.close();
|
|
689
|
-
}
|
|
690
|
-
catch {
|
|
691
|
-
// ignore individual close failures
|
|
692
|
-
}
|
|
693
|
-
}
|
|
694
|
-
// Returned in open order so the adopting reveal can splice them back in.
|
|
695
|
-
return kept.reverse();
|
|
696
|
-
}, []);
|
|
697
|
-
const runRestore = useCallback(async () => {
|
|
698
|
-
await runRestoreKeeping([]);
|
|
699
|
-
}, [runRestoreKeeping]);
|
|
700
|
-
const runRestoreRef = useRef(runRestore);
|
|
701
|
-
runRestoreRef.current = runRestore;
|
|
702
|
-
const runRestoreKeepingRef = useRef(runRestoreKeeping);
|
|
703
|
-
runRestoreKeepingRef.current = runRestoreKeeping;
|
|
704
|
-
// Keep the presence/visibility probes fresh.
|
|
299
|
+
const isActionable = isSidebarOnly
|
|
300
|
+
? canAutoOpenSidebar || hasBeforeAction
|
|
301
|
+
: isAvailable || canAutoOpenSidebar || hasBeforeAction;
|
|
302
|
+
// Monitor for element availability changes (skip for sidebar-only selectors)
|
|
705
303
|
useEffect(() => {
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
304
|
+
// Sidebar-only selectors are always "available" if openSidebar exists
|
|
305
|
+
if (isSidebarOnly) {
|
|
306
|
+
setIsAvailable(true);
|
|
307
|
+
return;
|
|
308
|
+
}
|
|
309
|
+
// Initial check
|
|
310
|
+
const initialAvailable = isElementAvailable(availabilitySelector);
|
|
311
|
+
setIsAvailable(initialAvailable);
|
|
312
|
+
// Set up MutationObserver to watch for DOM changes
|
|
313
|
+
const checkAvailability = () => {
|
|
314
|
+
const available = isElementAvailable(availabilitySelector);
|
|
315
|
+
setIsAvailable(available);
|
|
710
316
|
};
|
|
711
|
-
|
|
712
|
-
const
|
|
713
|
-
"data-testid",
|
|
714
|
-
"class",
|
|
715
|
-
"id",
|
|
716
|
-
"style",
|
|
717
|
-
"hidden",
|
|
718
|
-
"aria-hidden",
|
|
719
|
-
];
|
|
720
|
-
const observer = new MutationObserver(check);
|
|
317
|
+
// Watch the main document for changes
|
|
318
|
+
const observer = new MutationObserver(checkAvailability);
|
|
721
319
|
observer.observe(document.body, {
|
|
722
320
|
childList: true,
|
|
723
321
|
subtree: true,
|
|
724
322
|
attributes: true,
|
|
725
|
-
attributeFilter,
|
|
323
|
+
attributeFilter: ["data-testid", "class", "id"],
|
|
726
324
|
});
|
|
325
|
+
// Also watch the iframe if it exists (for iframe: selectors)
|
|
727
326
|
let iframeObserver = null;
|
|
728
327
|
const iframe = document.querySelector("iframe.page-iframe");
|
|
729
328
|
if (iframe?.contentDocument?.body) {
|
|
730
|
-
iframeObserver = new MutationObserver(
|
|
329
|
+
iframeObserver = new MutationObserver(checkAvailability);
|
|
731
330
|
iframeObserver.observe(iframe.contentDocument.body, {
|
|
732
331
|
childList: true,
|
|
733
332
|
subtree: true,
|
|
734
333
|
attributes: true,
|
|
735
|
-
attributeFilter,
|
|
334
|
+
attributeFilter: ["data-testid", "class", "id"],
|
|
736
335
|
});
|
|
737
336
|
}
|
|
738
|
-
|
|
337
|
+
// Also poll periodically as a fallback (iframe might load after mount)
|
|
338
|
+
const intervalId = setInterval(checkAvailability, 1000);
|
|
739
339
|
return () => {
|
|
740
340
|
observer.disconnect();
|
|
741
341
|
iframeObserver?.disconnect();
|
|
742
342
|
clearInterval(intervalId);
|
|
743
343
|
};
|
|
744
|
-
}, [
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
const check = () => {
|
|
751
|
-
const reveal = revealRef.current;
|
|
752
|
-
const anchorPresent = anchorSelector
|
|
753
|
-
? isElementPresent(anchorSelector)
|
|
754
|
-
: isAnchorPresent;
|
|
755
|
-
if (shouldResetActiveReveal({
|
|
756
|
-
hasReveal: Boolean(reveal),
|
|
757
|
-
isRevealStillOpen: reveal?.isStillOpen() ?? false,
|
|
758
|
-
hasAvailabilitySelector,
|
|
759
|
-
isAnchorPresent: anchorPresent,
|
|
760
|
-
})) {
|
|
761
|
-
resetActiveState();
|
|
762
|
-
}
|
|
763
|
-
};
|
|
764
|
-
const observer = new MutationObserver(check);
|
|
765
|
-
observer.observe(document.body, {
|
|
766
|
-
childList: true,
|
|
767
|
-
subtree: true,
|
|
768
|
-
attributes: true,
|
|
769
|
-
attributeFilter: [
|
|
770
|
-
EDITOR_FORM_HIDDEN_ATTRIBUTE,
|
|
771
|
-
"class",
|
|
772
|
-
"style",
|
|
773
|
-
"data-testid",
|
|
774
|
-
],
|
|
775
|
-
});
|
|
776
|
-
const intervalId = setInterval(check, 500);
|
|
777
|
-
return () => {
|
|
778
|
-
observer.disconnect();
|
|
779
|
-
clearInterval(intervalId);
|
|
780
|
-
};
|
|
781
|
-
}, [
|
|
782
|
-
anchorSelector,
|
|
783
|
-
hasAvailabilitySelector,
|
|
784
|
-
isActiveReveal,
|
|
785
|
-
isAnchorPresent,
|
|
786
|
-
resetActiveState,
|
|
787
|
-
]);
|
|
788
|
-
// Clear the global active controller if this button unmounts while active.
|
|
789
|
-
useEffect(() => {
|
|
790
|
-
return () => {
|
|
791
|
-
clearActiveReveal(controllerIdRef.current);
|
|
792
|
-
};
|
|
793
|
-
}, []);
|
|
794
|
-
const tooltipText = isActiveReveal
|
|
795
|
-
? CLOSE_PANE_LABEL
|
|
796
|
-
: isDisabled
|
|
797
|
-
? selectorDef.notFoundMessage || selectorDef.description
|
|
798
|
-
: selectorDef.description;
|
|
799
|
-
return (_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("button", { "data-manual-show-me": "true", "data-manual-show-me-before-action": selectorDef.beforeAction || undefined, "aria-label": isActiveReveal ? CLOSE_PANE_LABEL : "Show me", onClick: async () => {
|
|
800
|
-
// Second click while active -> restore (close=click behaviour).
|
|
801
|
-
if (isActiveReveal) {
|
|
802
|
-
runRestore();
|
|
803
|
-
return;
|
|
804
|
-
}
|
|
805
|
-
if (isDisabled)
|
|
344
|
+
}, [availabilitySelector, isSidebarOnly]);
|
|
345
|
+
const tooltipText = isActionable
|
|
346
|
+
? selectorDef.description
|
|
347
|
+
: selectorDef.notFoundMessage || selectorDef.description;
|
|
348
|
+
return (_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs("button", { "aria-label": "Show me", onClick: async () => {
|
|
349
|
+
if (!isActionable)
|
|
806
350
|
return;
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
// closes the teardown-window race where, during
|
|
813
|
-
// `await superseded.close()`, no global controller is registered.
|
|
814
|
-
const clickToken = ++revealClickSeq;
|
|
815
|
-
const previousClick = revealClickChain;
|
|
816
|
-
let releaseClick = () => { };
|
|
817
|
-
revealClickChain = new Promise((resolve) => {
|
|
818
|
-
releaseClick = resolve;
|
|
819
|
-
});
|
|
820
|
-
try {
|
|
821
|
-
await previousClick;
|
|
822
|
-
// A newer click superseded this one while we waited our turn.
|
|
823
|
-
if (clickToken !== revealClickSeq) {
|
|
351
|
+
const runId = globalThis.crypto?.randomUUID?.() ??
|
|
352
|
+
`manual-${Date.now()}-${Math.random().toString(36).slice(2)}`;
|
|
353
|
+
const resolveElements = (selector = selectorDef.selector) => selector ? getElementsForSelector(selector) : [];
|
|
354
|
+
const runManualAction = async (actionName, elements) => {
|
|
355
|
+
if (!actionName || !editContext || !manualActions?.[actionName]) {
|
|
824
356
|
return;
|
|
825
357
|
}
|
|
826
|
-
const
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
// serialized above, the superseded controller is always the
|
|
835
|
-
// previous fully-settled reveal (no race here).
|
|
836
|
-
//
|
|
837
|
-
// Exception: if this reveal would only reopen the same editor-form
|
|
838
|
-
// slider, hand the already-open surface off instead of closing it,
|
|
839
|
-
// so the slider does not visibly close and reopen. We then own it
|
|
840
|
-
// and close it on our own restore.
|
|
841
|
-
const carrySlider = getEditorFormSlider([
|
|
842
|
-
...resolveElements(),
|
|
843
|
-
...(anchorSelector ? resolveElements(anchorSelector) : []),
|
|
844
|
-
]);
|
|
845
|
-
const keepKeys = shouldCarryEditorFormSurface({
|
|
846
|
-
isSidebarOnly,
|
|
847
|
-
sliderExists: carrySlider !== null,
|
|
848
|
-
isSliderOpen: !isEditorFormSliderHidden(carrySlider),
|
|
849
|
-
})
|
|
850
|
-
? ["editor-form"]
|
|
851
|
-
: [];
|
|
852
|
-
const superseded = supersedeActiveReveal(controllerIdRef.current);
|
|
853
|
-
let carriedSurfaceOps = [];
|
|
854
|
-
if (superseded) {
|
|
855
|
-
try {
|
|
856
|
-
carriedSurfaceOps = await superseded.closeKeeping(keepKeys);
|
|
857
|
-
}
|
|
858
|
-
catch {
|
|
859
|
-
// ignore supersede failures
|
|
860
|
-
carriedSurfaceOps = [];
|
|
861
|
-
}
|
|
862
|
-
}
|
|
863
|
-
const runId = globalThis.crypto?.randomUUID?.() ??
|
|
864
|
-
`manual-${Date.now()}-${Math.random().toString(36).slice(2)}`;
|
|
865
|
-
const runManualAction = async (actionName, elements) => {
|
|
866
|
-
if (!actionName ||
|
|
867
|
-
!editContext ||
|
|
868
|
-
!manualActions?.[actionName]) {
|
|
869
|
-
return;
|
|
870
|
-
}
|
|
871
|
-
const action = manualActions[actionName];
|
|
872
|
-
const actionProps = {
|
|
873
|
-
editContext,
|
|
874
|
-
selectorDef,
|
|
875
|
-
duration: HIGHLIGHT_DURATION_MS,
|
|
876
|
-
runId,
|
|
877
|
-
elements,
|
|
878
|
-
resolveElements,
|
|
879
|
-
};
|
|
880
|
-
await action(actionProps);
|
|
881
|
-
};
|
|
882
|
-
// Surfaces this reveal owns, in open order. Closed in reverse on
|
|
883
|
-
// restore. Any surface handed off by the superseded reveal (the
|
|
884
|
-
// already-open editor-form slider) is adopted here, so we keep it
|
|
885
|
-
// open instead of reopening it and still close it on our restore.
|
|
886
|
-
const surfaceOps = [...carriedSurfaceOps];
|
|
887
|
-
// Register a surface unless one with the same key was already
|
|
888
|
-
// pushed by an earlier step in this same reveal.
|
|
889
|
-
const pushSurface = (op) => {
|
|
890
|
-
if (surfaceOps.some((existing) => existing.key === op.key)) {
|
|
891
|
-
return;
|
|
892
|
-
}
|
|
893
|
-
surfaceOps.push(op);
|
|
358
|
+
const action = manualActions[actionName];
|
|
359
|
+
const actionProps = {
|
|
360
|
+
editContext,
|
|
361
|
+
selectorDef,
|
|
362
|
+
duration: HIGHLIGHT_DURATION_MS,
|
|
363
|
+
runId,
|
|
364
|
+
elements,
|
|
365
|
+
resolveElements,
|
|
894
366
|
};
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
forceClose: true,
|
|
909
|
-
});
|
|
910
|
-
await editContextRef.current?.waitForSurfaceSettled?.(`sidebar:${sidebarId}`);
|
|
911
|
-
},
|
|
912
|
-
isOpen: () => !!editContextRef.current?.openSidebars?.includes(sidebarId),
|
|
913
|
-
});
|
|
914
|
-
// Wait for the sidebar's open animation to finish before querying.
|
|
915
|
-
await editContext.waitForSurfaceSettled?.(`sidebar:${sidebarId}`);
|
|
916
|
-
}
|
|
917
|
-
}
|
|
918
|
-
const availabilityElements = anchorSelector
|
|
919
|
-
? resolveElements(anchorSelector)
|
|
920
|
-
: [];
|
|
921
|
-
const relevantElements = !isSidebarOnly
|
|
922
|
-
? [...resolveElements(), ...availabilityElements]
|
|
923
|
-
: availabilityElements;
|
|
924
|
-
const formSlider = getEditorFormSlider(relevantElements);
|
|
925
|
-
const shouldOpenEditorForm = !isSidebarOnly &&
|
|
926
|
-
!!formSlider &&
|
|
927
|
-
isEditorFormSliderHidden(formSlider);
|
|
928
|
-
if (selectorDef.tab) {
|
|
929
|
-
editContext?.setActiveEditorTab(selectorDef.tab);
|
|
930
|
-
}
|
|
931
|
-
// 2. Editor form slider.
|
|
932
|
-
if (shouldOpenEditorForm && editContext) {
|
|
933
|
-
const slotId = editContext.getActiveSlotId();
|
|
934
|
-
editContext.setEditorFormHiddenForSlot(slotId, false);
|
|
935
|
-
pushSurface({
|
|
936
|
-
key: "editor-form",
|
|
937
|
-
close: async () => {
|
|
938
|
-
editContextRef.current?.setEditorFormHiddenForSlot(slotId, true);
|
|
939
|
-
await editContextRef.current?.waitForSurfaceSettled?.("editor-form");
|
|
940
|
-
},
|
|
941
|
-
isOpen: () => {
|
|
942
|
-
const slider = getEditorFormSlider();
|
|
943
|
-
return slider !== null && !isEditorFormSliderHidden(slider);
|
|
944
|
-
},
|
|
945
|
-
});
|
|
946
|
-
await editContext.waitForSurfaceSettled?.("editor-form");
|
|
947
|
-
}
|
|
948
|
-
else if (selectorDef.tab) {
|
|
949
|
-
await waitForNextFrame();
|
|
950
|
-
}
|
|
951
|
-
// 3. beforeAction (may open the More-panels flyout, reveal fields, etc.).
|
|
952
|
-
const resolvedElements = !isSidebarOnly
|
|
953
|
-
? await waitForResolvedElements(resolveElements, selectorDef.selector)
|
|
954
|
-
: [];
|
|
955
|
-
const actionElements = resolvedElements.length > 0
|
|
956
|
-
? resolvedElements
|
|
957
|
-
: availabilityElements;
|
|
958
|
-
const morePanelsWasOpen = isElementPresent("@more-sidebars-panel");
|
|
959
|
-
const versionSelectorWasOpen = isElementPresent("@version-selector-list");
|
|
960
|
-
const notificationCenterWasOpen = isElementPresent("@notification-center-list");
|
|
961
|
-
// Capture pre-reveal state for the AI Assistant reveals so we only
|
|
962
|
-
// restore (close) what THIS button actually opened.
|
|
963
|
-
const agentsPanelWasOpen = isAgentsPanelOpen();
|
|
964
|
-
const agentSettingsWasOpen = !!selectorDef.selector &&
|
|
965
|
-
isElementPresent(selectorDef.selector) &&
|
|
966
|
-
selectorDef.beforeAction === "open-agent-settings";
|
|
967
|
-
await runManualAction(selectorDef.beforeAction, actionElements);
|
|
968
|
-
if (selectorDef.beforeAction === "open-more-sidebars") {
|
|
969
|
-
const morePanelsNowOpen = isElementPresent("@more-sidebars-panel");
|
|
970
|
-
if (!morePanelsWasOpen && morePanelsNowOpen) {
|
|
971
|
-
pushSurface({
|
|
972
|
-
key: "more-sidebars-panel",
|
|
973
|
-
close: async () => {
|
|
974
|
-
closeMorePanelsIfOpen();
|
|
975
|
-
await waitForSelectorAnimations('[data-testid="more-sidebars-panel"]');
|
|
976
|
-
await waitForMorePanelsClosed();
|
|
977
|
-
},
|
|
978
|
-
isOpen: () => isElementPresent("@more-sidebars-panel"),
|
|
979
|
-
});
|
|
980
|
-
}
|
|
981
|
-
}
|
|
982
|
-
if (selectorDef.beforeAction === "open-version-selector") {
|
|
983
|
-
const versionSelectorNowOpen = isElementPresent("@version-selector-list");
|
|
984
|
-
if (!versionSelectorWasOpen && versionSelectorNowOpen) {
|
|
985
|
-
pushSurface({
|
|
986
|
-
key: "version-selector",
|
|
987
|
-
close: async () => {
|
|
988
|
-
closeVersionSelectorIfOpen();
|
|
989
|
-
await waitForSelectorAnimations('[data-testid="version-selector-list"]');
|
|
990
|
-
// Gate until the popover is truly gone so the next
|
|
991
|
-
// reveal's open-version-selector reopens from a closed
|
|
992
|
-
// state (deterministic close-then-reopen).
|
|
993
|
-
await waitForVersionSelectorClosed();
|
|
994
|
-
},
|
|
995
|
-
isOpen: () => isElementPresent("@version-selector-list"),
|
|
996
|
-
});
|
|
997
|
-
}
|
|
998
|
-
}
|
|
999
|
-
if (selectorDef.beforeAction === "open-notification-center") {
|
|
1000
|
-
const notificationCenterNowOpen = isElementPresent("@notification-center-list");
|
|
1001
|
-
if (!notificationCenterWasOpen && notificationCenterNowOpen) {
|
|
1002
|
-
pushSurface({
|
|
1003
|
-
key: "notification-center",
|
|
1004
|
-
close: async () => {
|
|
1005
|
-
closeNotificationCenterIfOpen();
|
|
1006
|
-
await waitForSelectorAnimations('[data-testid="notification-center-list"]');
|
|
1007
|
-
await waitForNotificationCenterClosed();
|
|
1008
|
-
},
|
|
1009
|
-
isOpen: () => isElementPresent("@notification-center-list"),
|
|
1010
|
-
});
|
|
1011
|
-
}
|
|
1012
|
-
}
|
|
1013
|
-
if (selectorDef.beforeAction === "open-agents-panel" ||
|
|
1014
|
-
selectorDef.beforeAction === "open-agent-settings") {
|
|
1015
|
-
// The beforeAction already awaited the panel/popover open
|
|
1016
|
-
// animation (see config openAgentsPanel/openAgentSettings), so
|
|
1017
|
-
// no polling here.
|
|
1018
|
-
const agentsPanelNowOpen = isAgentsPanelOpen();
|
|
1019
|
-
// Push the panel surface first so that, since surfaces close in
|
|
1020
|
-
// reverse, the settings popover is closed before the panel.
|
|
1021
|
-
if (!agentsPanelWasOpen && agentsPanelNowOpen) {
|
|
1022
|
-
pushSurface({
|
|
1023
|
-
key: agentsPanelSurfaceKey(editContext),
|
|
1024
|
-
close: async () => {
|
|
1025
|
-
if (editContextRef.current?.isMobile) {
|
|
1026
|
-
editContextRef.current?.toggleSidebar?.("agents-panel", {
|
|
1027
|
-
forceClose: true,
|
|
1028
|
-
});
|
|
1029
|
-
await editContextRef.current?.waitForSurfaceSettled?.("sidebar:agents-panel");
|
|
1030
|
-
}
|
|
1031
|
-
else {
|
|
1032
|
-
editContextRef.current?.setShowAgentsPanel?.(false);
|
|
1033
|
-
await editContextRef.current?.waitForSurfaceSettled?.("agents-panel");
|
|
1034
|
-
}
|
|
1035
|
-
},
|
|
1036
|
-
isOpen: () => isAgentsPanelOpen(),
|
|
1037
|
-
});
|
|
1038
|
-
}
|
|
1039
|
-
if (selectorDef.beforeAction === "open-agent-settings") {
|
|
1040
|
-
const settingsTargetNowOpen = !!selectorDef.selector &&
|
|
1041
|
-
isElementPresent(selectorDef.selector);
|
|
1042
|
-
if (!agentSettingsWasOpen && settingsTargetNowOpen) {
|
|
1043
|
-
pushSurface({
|
|
1044
|
-
key: "agent-settings",
|
|
1045
|
-
close: async () => {
|
|
1046
|
-
const trigger = document.querySelector('[data-testid="agent-settings-popover-trigger"]');
|
|
1047
|
-
if (trigger &&
|
|
1048
|
-
selectorDef.selector &&
|
|
1049
|
-
isElementPresent(selectorDef.selector)) {
|
|
1050
|
-
trigger.click();
|
|
1051
|
-
await waitForSelectorAnimations('[data-testid="agent-settings-popover-content"]');
|
|
1052
|
-
}
|
|
1053
|
-
},
|
|
1054
|
-
isOpen: () => selectorDef.selector
|
|
1055
|
-
? isElementPresent(selectorDef.selector)
|
|
1056
|
-
: false,
|
|
1057
|
-
});
|
|
1058
|
-
}
|
|
1059
|
-
}
|
|
1060
|
-
}
|
|
1061
|
-
// afterAction is the declared inverse for custom reveals (e.g.
|
|
1062
|
-
// field actions). It is a restore-only step with no open surface,
|
|
1063
|
-
// so it uses a "custom:" key and is excluded from the still-open
|
|
1064
|
-
// check below.
|
|
1065
|
-
if (selectorDef.afterAction) {
|
|
1066
|
-
pushSurface({
|
|
1067
|
-
key: "custom:afterAction",
|
|
1068
|
-
close: async () => {
|
|
1069
|
-
await runManualAction(selectorDef.afterAction, !isSidebarOnly ? resolveElements() : availabilityElements);
|
|
1070
|
-
},
|
|
1071
|
-
isOpen: () => true,
|
|
1072
|
-
});
|
|
1073
|
-
}
|
|
1074
|
-
// Highlight the target. For sidebar-only selectors there is no
|
|
1075
|
-
// inner target, so we highlight the opened sidebar panel itself.
|
|
1076
|
-
// Wait for it to become visible first, since a just-revealed
|
|
1077
|
-
// element may be present but not yet laid out (highlightElement
|
|
1078
|
-
// skips invisible ones).
|
|
1079
|
-
const highlightSelector = isSidebarOnly
|
|
1080
|
-
? selectorDef.location
|
|
1081
|
-
? `@sidebar-panel-${selectorDef.location}`
|
|
1082
|
-
: ""
|
|
1083
|
-
: selectorDef.selector;
|
|
1084
|
-
// The highlight runs a finite CSS animation; highlightElement
|
|
1085
|
-
// resolves on its animationend. Stateful reveals register below
|
|
1086
|
-
// without awaiting it; close=auto chains restore onto this lifetime.
|
|
1087
|
-
let highlightLifetime = Promise.resolve();
|
|
1088
|
-
if (highlightSelector) {
|
|
1089
|
-
const highlightTargets = await waitForVisibleElements(highlightSelector, 1500);
|
|
1090
|
-
if (highlightTargets.length > 0) {
|
|
1091
|
-
highlightLifetime = highlightElement(highlightSelector, HIGHLIGHT_DURATION_MS);
|
|
1092
|
-
}
|
|
1093
|
-
}
|
|
1094
|
-
const hasStatefulSurface = hasStatefulRevealSurface(surfaceOps.map((op) => op.key));
|
|
1095
|
-
if (surfaceOps.length > 0 && !hasStatefulSurface) {
|
|
1096
|
-
// Restore-only custom actions (for example field action reveals)
|
|
1097
|
-
// should clean up after the highlight, but they do not represent
|
|
1098
|
-
// an opened pane/popover that needs a green "close" state.
|
|
1099
|
-
void highlightLifetime.then(async () => {
|
|
1100
|
-
for (let i = surfaceOps.length - 1; i >= 0; i -= 1) {
|
|
1101
|
-
const op = surfaceOps[i];
|
|
1102
|
-
if (!op)
|
|
1103
|
-
continue;
|
|
1104
|
-
try {
|
|
1105
|
-
await op.close();
|
|
1106
|
-
}
|
|
1107
|
-
catch {
|
|
1108
|
-
// ignore individual restore failures
|
|
1109
|
-
}
|
|
1110
|
-
}
|
|
1111
|
-
});
|
|
1112
|
-
}
|
|
1113
|
-
// If we opened a real surface, this was a State-3 reveal: keep the
|
|
1114
|
-
// button active (green) and register it for mutual exclusion.
|
|
1115
|
-
if (hasStatefulSurface) {
|
|
1116
|
-
const id = ++revealControllerSeq;
|
|
1117
|
-
controllerIdRef.current = id;
|
|
1118
|
-
revealRef.current = {
|
|
1119
|
-
id,
|
|
1120
|
-
surfaceOps,
|
|
1121
|
-
// Restore-only "custom:" surfaces (e.g. afterAction) have no
|
|
1122
|
-
// open state and must not keep the reveal "open" forever.
|
|
1123
|
-
isStillOpen: () => {
|
|
1124
|
-
const tracked = surfaceOps.filter((op) => !op.key.startsWith("custom:"));
|
|
1125
|
-
return tracked.length === 0
|
|
1126
|
-
? true
|
|
1127
|
-
: tracked.some((op) => op.isOpen());
|
|
1128
|
-
},
|
|
1129
|
-
};
|
|
1130
|
-
registerActiveReveal({
|
|
1131
|
-
id,
|
|
1132
|
-
close: () => runRestoreRef.current(),
|
|
1133
|
-
closeKeeping: (keepKeys) => runRestoreKeepingRef.current(keepKeys),
|
|
1134
|
-
isStillOpen: () => revealRef.current?.isStillOpen() ?? false,
|
|
1135
|
-
});
|
|
1136
|
-
setIsActiveReveal(true);
|
|
1137
|
-
if (closeMode === "auto") {
|
|
1138
|
-
// Restore right after the highlight animation completes,
|
|
1139
|
-
// instead of racing a duration-matched timer.
|
|
1140
|
-
void highlightLifetime.then(() => {
|
|
1141
|
-
if (controllerIdRef.current === id) {
|
|
1142
|
-
void runRestoreRef.current();
|
|
1143
|
-
}
|
|
1144
|
-
});
|
|
1145
|
-
}
|
|
367
|
+
await action(actionProps);
|
|
368
|
+
};
|
|
369
|
+
// If this selector is sidebar-only, open the sidebar before highlighting.
|
|
370
|
+
// For sidebar-only selectors, location is the sidebar ID (without -sidebar suffix)
|
|
371
|
+
if (selectorDef.isSidebarOnly &&
|
|
372
|
+
editContext?.openSidebar &&
|
|
373
|
+
selectorDef.location) {
|
|
374
|
+
const sidebarId = selectorDef.location;
|
|
375
|
+
const isSidebarAlreadyOpen = !!editContext.openSidebars?.includes(sidebarId);
|
|
376
|
+
if (!isSidebarAlreadyOpen) {
|
|
377
|
+
editContext.openSidebar(sidebarId);
|
|
378
|
+
// Give the sidebar a moment to render before querying/highlighting.
|
|
379
|
+
await new Promise((resolve) => setTimeout(resolve, 150));
|
|
1146
380
|
}
|
|
1147
381
|
}
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
382
|
+
const resolvedElements = !isSidebarOnly ? resolveElements() : [];
|
|
383
|
+
await runManualAction(selectorDef.beforeAction, resolvedElements);
|
|
384
|
+
// For sidebar-only selectors, we just open the sidebar (done above)
|
|
385
|
+
// For regular selectors, also highlight the element
|
|
386
|
+
if (!isSidebarOnly && selectorDef.selector) {
|
|
387
|
+
await highlightElement(selectorDef.selector, HIGHLIGHT_DURATION_MS);
|
|
388
|
+
}
|
|
389
|
+
if (selectorDef.afterAction) {
|
|
390
|
+
window.setTimeout(() => {
|
|
391
|
+
void runManualAction(selectorDef.afterAction, !isSidebarOnly ? resolveElements() : []);
|
|
392
|
+
}, HIGHLIGHT_DURATION_MS);
|
|
1153
393
|
}
|
|
1154
|
-
}, disabled:
|
|
1155
|
-
? "border-
|
|
1156
|
-
:
|
|
1157
|
-
? "border-feedback-blue bg-feedback-blue-light text-feedback-blue hover:bg-feedback-blue-light cursor-pointer"
|
|
1158
|
-
: "border-border-default bg-neutral-grey-5 text-neutral-grey-50 cursor-not-allowed"), children: [_jsx(LocateFixed, { className: "h-3.5 w-3.5", strokeWidth: 1.5 }), _jsx("span", { className: "sr-only", children: "Show me" })] }, keyProp) }), _jsx(TooltipContent, { children: tooltipText })] }));
|
|
394
|
+
}, disabled: !isActionable, className: cn("inline-flex h-5 w-5 items-center justify-center rounded border transition-colors", isActionable
|
|
395
|
+
? "cursor-pointer border-blue-200 bg-blue-50 text-blue-700 hover:bg-blue-100"
|
|
396
|
+
: "cursor-not-allowed border-gray-200 bg-gray-100 text-gray-400"), children: [_jsx(LocateFixed, { className: "h-3.5 w-3.5", strokeWidth: 1.5 }), _jsx("span", { className: "sr-only", children: "Show me" })] }, keyProp) }), _jsx(TooltipContent, { children: tooltipText })] }));
|
|
1159
397
|
}
|
|
1160
398
|
// Render markdown content with clickable selectors
|
|
1161
399
|
// Supports both {{selectorName}} syntax (looks up in uiSelectors) and legacy @selector syntax
|
|
@@ -1182,10 +420,10 @@ function renderLineWithSelectors(text, uiSelectors, manualLinkTargets, onManualL
|
|
|
1182
420
|
}
|
|
1183
421
|
const targetId = manualLinkTargets.get(linkTitle.toLowerCase());
|
|
1184
422
|
if (targetId) {
|
|
1185
|
-
parts.push(_jsx("button", { type: "button", onClick: () => onManualLinkClick(targetId), className: "text-
|
|
423
|
+
parts.push(_jsx("button", { type: "button", onClick: () => onManualLinkClick(targetId), className: "cursor-pointer text-blue-600 underline decoration-blue-300 underline-offset-2 hover:text-blue-700", title: `Open "${linkTitle}"`, children: linkTitle }, `manual-link-${match.index}`));
|
|
1186
424
|
}
|
|
1187
425
|
else {
|
|
1188
|
-
parts.push(_jsx("span", { className: "text-
|
|
426
|
+
parts.push(_jsx("span", { className: "text-orange-600", title: `Manual section not found: ${linkTitle}`, children: fullMatch }, `manual-link-missing-${match.index}`));
|
|
1189
427
|
}
|
|
1190
428
|
lastIndex = match.index + fullMatch.length;
|
|
1191
429
|
}
|
|
@@ -1198,10 +436,10 @@ function renderLineWithSelectors(text, uiSelectors, manualLinkTargets, onManualL
|
|
|
1198
436
|
function renderInlineSelectorsAndFormatting(text, uiSelectors) {
|
|
1199
437
|
const parts = [];
|
|
1200
438
|
let lastIndex = 0;
|
|
1201
|
-
// Combined regex for {{namedSelector}}, @selector, and **bold
|
|
1202
|
-
// @selector can include -sidebar suffix for sidebar-only selectors
|
|
1203
|
-
//
|
|
1204
|
-
//
|
|
439
|
+
// Combined regex for {{namedSelector}}, @selector, and **bold**
|
|
440
|
+
// Note: @selector can include -sidebar suffix for sidebar-only selectors
|
|
441
|
+
// Also supports @iframe:selector syntax (iframe: is special and allowed)
|
|
442
|
+
// Now also matches optional parentheses around selectors: ({{name}}) or (@selector)
|
|
1205
443
|
const regex = /(\()?(\{\{([\w\-]+)\}\})|(\()?(@(?:iframe:[\w\-\.#\[\]=]*[\w\-#\[\]=]|[\w\-\.#\[\]=]*[\w\-#\[\]=]))|(\*\*(.+?)\*\*)/g;
|
|
1206
444
|
let match;
|
|
1207
445
|
while ((match = regex.exec(text)) !== null) {
|
|
@@ -1232,7 +470,7 @@ function renderInlineSelectorsAndFormatting(text, uiSelectors) {
|
|
|
1232
470
|
}
|
|
1233
471
|
else {
|
|
1234
472
|
// Unknown selector, render as text (keep parens if present)
|
|
1235
|
-
parts.push(_jsxs("span", { className: "text-
|
|
473
|
+
parts.push(_jsxs("span", { className: "text-orange-600", title: "Unknown selector", children: [hasOpenParen ? "(" : "", selectorName, text[match.index + match[0].length] === ")" ? ")" : ""] }, match.index));
|
|
1236
474
|
}
|
|
1237
475
|
}
|
|
1238
476
|
else if (match[5]) {
|
|
@@ -1316,39 +554,39 @@ function findNearestNavigableAncestor(path) {
|
|
|
1316
554
|
const SECTION_THEMES = {
|
|
1317
555
|
"getting started": {
|
|
1318
556
|
icon: Rocket,
|
|
1319
|
-
color: "text-
|
|
1320
|
-
bg: "bg-
|
|
1321
|
-
border: "border-
|
|
1322
|
-
accent: "bg-
|
|
557
|
+
color: "text-emerald-600",
|
|
558
|
+
bg: "bg-emerald-50",
|
|
559
|
+
border: "border-emerald-100",
|
|
560
|
+
accent: "bg-emerald-500",
|
|
1323
561
|
},
|
|
1324
562
|
"page editing": {
|
|
1325
563
|
icon: FileEdit,
|
|
1326
|
-
color: "text-
|
|
1327
|
-
bg: "bg-
|
|
1328
|
-
border: "border-
|
|
1329
|
-
accent: "bg-
|
|
564
|
+
color: "text-blue-600",
|
|
565
|
+
bg: "bg-blue-50",
|
|
566
|
+
border: "border-blue-100",
|
|
567
|
+
accent: "bg-blue-500",
|
|
1330
568
|
},
|
|
1331
569
|
"managing content": {
|
|
1332
570
|
icon: BookOpen,
|
|
1333
|
-
color: "text-
|
|
1334
|
-
bg: "bg-
|
|
1335
|
-
border: "border-
|
|
1336
|
-
accent: "bg-
|
|
571
|
+
color: "text-amber-600",
|
|
572
|
+
bg: "bg-amber-50",
|
|
573
|
+
border: "border-amber-100",
|
|
574
|
+
accent: "bg-amber-500",
|
|
1337
575
|
},
|
|
1338
576
|
"ai assistant": {
|
|
1339
577
|
icon: BookOpen,
|
|
1340
|
-
color: "text-
|
|
1341
|
-
bg: "bg-
|
|
1342
|
-
border: "border-
|
|
1343
|
-
accent: "bg-
|
|
578
|
+
color: "text-violet-600",
|
|
579
|
+
bg: "bg-violet-50",
|
|
580
|
+
border: "border-violet-100",
|
|
581
|
+
accent: "bg-violet-500",
|
|
1344
582
|
},
|
|
1345
583
|
};
|
|
1346
584
|
const DEFAULT_THEME = {
|
|
1347
585
|
icon: BookOpen,
|
|
1348
|
-
color: "text-
|
|
1349
|
-
bg: "bg-
|
|
1350
|
-
border: "border-
|
|
1351
|
-
accent: "bg-
|
|
586
|
+
color: "text-violet-600",
|
|
587
|
+
bg: "bg-violet-50",
|
|
588
|
+
border: "border-violet-100",
|
|
589
|
+
accent: "bg-violet-500",
|
|
1352
590
|
};
|
|
1353
591
|
function getSectionTheme(title) {
|
|
1354
592
|
if (!title)
|
|
@@ -1359,7 +597,7 @@ function TocSectionCard({ section, onSelect, onToggleCollapse, isCollapsed, }) {
|
|
|
1359
597
|
const theme = getSectionTheme(section.title);
|
|
1360
598
|
const Icon = theme.icon;
|
|
1361
599
|
const hasChildren = !!(section.children && section.children.length > 0);
|
|
1362
|
-
return (_jsxs("div", { className: "group", children: [_jsx("button", { type: "button", onClick: () => onSelect(section.id), className: cn("w-full rounded-lg p-3 text-left transition-all", "hover:bg-
|
|
600
|
+
return (_jsxs("div", { className: "group", children: [_jsx("button", { type: "button", onClick: () => onSelect(section.id), className: cn("w-full rounded-lg p-3 text-left transition-all", "bg-white hover:bg-gray-50/50"), children: _jsxs("div", { className: "flex items-start gap-3", children: [_jsx("div", { className: cn("flex h-9 w-9 shrink-0 items-center justify-center rounded-lg", theme.bg), children: section.svgIcon ? (_jsx(SvgIcon, { svg: section.svgIcon, size: 24, className: theme.color })) : (_jsx(Icon, { className: cn("h-[18px] w-[18px]", theme.color), strokeWidth: 1.75 })) }), _jsxs("div", { className: "min-w-0 flex-1", children: [_jsx("div", { className: "flex items-center gap-2", children: _jsx("span", { className: "text-sm font-semibold text-gray-900", children: section.title || "Untitled" }) }), section.summary && (_jsx("p", { className: "mt-0.5 line-clamp-2 text-xs leading-relaxed text-gray-500", children: section.summary }))] })] }) }), hasChildren && (_jsxs("div", { className: "mt-1", children: [_jsxs("button", { type: "button", onClick: () => onToggleCollapse(section.id), className: "ml-[60px] flex w-fit items-center gap-1.5 rounded-md py-1 text-xs text-gray-400 transition-colors hover:text-gray-600", children: [_jsx(ChevronRight, { className: cn("h-3 w-3 shrink-0 transition-transform", !isCollapsed && "rotate-90") }), _jsx("span", { children: isCollapsed ? "Show articles" : "Hide articles" })] }), !isCollapsed && (_jsx("div", { className: "mt-0.5 ml-[60px] space-y-px border-l-2 border-gray-100 pl-3", children: section.children.map((child) => (_jsxs("button", { type: "button", onClick: () => onSelect(child.id), className: "flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm text-gray-600 transition-colors hover:bg-gray-50 hover:text-gray-900", children: [_jsx("span", { className: cn("h-1.5 w-1.5 shrink-0 rounded-full", theme.accent, "opacity-40 transition-opacity group-hover:opacity-70") }), _jsx("span", { className: "truncate", children: child.title || "Untitled" })] }, child.id))) }))] }))] }));
|
|
1363
601
|
}
|
|
1364
602
|
function renderTocTree(sections, onSelect, onToggleCollapse, collapsedSectionIds, depth = 0) {
|
|
1365
603
|
if (depth === 0) {
|
|
@@ -1368,10 +606,10 @@ function renderTocTree(sections, onSelect, onToggleCollapse, collapsedSectionIds
|
|
|
1368
606
|
return (_jsx(TocSectionCard, { section: section, onSelect: onSelect, onToggleCollapse: onToggleCollapse, isCollapsed: isCollapsed }, section.id));
|
|
1369
607
|
}) }));
|
|
1370
608
|
}
|
|
1371
|
-
return (_jsx("div", { className: cn(depth > 0 && "
|
|
609
|
+
return (_jsx("div", { className: cn(depth > 0 && "ml-3 border-l border-gray-100 pl-2"), children: sections.map((section) => {
|
|
1372
610
|
const hasChildren = !!(section.children && section.children.length > 0);
|
|
1373
611
|
const isCollapsed = hasChildren && collapsedSectionIds.has(section.id);
|
|
1374
|
-
return (_jsxs("div", { className: "my-0.5", children: [_jsxs("div", { className: cn("group
|
|
612
|
+
return (_jsxs("div", { className: "my-0.5", children: [_jsxs("div", { className: cn("group flex w-full items-center gap-1.5 rounded-md px-2 py-1.5 transition-colors hover:bg-gray-50", "text-sm text-gray-500 hover:text-gray-700"), children: [hasChildren ? (_jsx("button", { type: "button", onClick: () => onToggleCollapse(section.id), className: "rounded p-0.5 text-gray-300 transition-colors hover:bg-gray-100 hover:text-gray-500", "aria-label": isCollapsed
|
|
1375
613
|
? `Expand ${section.title || "section"}`
|
|
1376
614
|
: `Collapse ${section.title || "section"}`, title: isCollapsed ? "Expand section" : "Collapse section", children: _jsx(ChevronRight, { className: cn("h-3.5 w-3.5 shrink-0 transition-transform", !isCollapsed && "rotate-90") }) })) : (_jsx("span", { className: "h-3.5 w-3.5 shrink-0" })), _jsx("button", { type: "button", onClick: () => onSelect(section.id), className: "flex-1 text-left", children: section.title || "Untitled" })] }), hasChildren &&
|
|
1377
615
|
!isCollapsed &&
|
|
@@ -1403,15 +641,15 @@ function InChapterDropdown({ toc, currentTocPath, selectedSectionId, onSelect, }
|
|
|
1403
641
|
if (!chapter || chapterOptions.length <= 1)
|
|
1404
642
|
return null;
|
|
1405
643
|
const selectedTitle = chapterOptions.find((o) => o.section.id === selectedSectionId)?.section.title;
|
|
1406
|
-
return (_jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsxs("button", { type: "button", className: "
|
|
644
|
+
return (_jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsxs("button", { type: "button", className: "inline-flex w-full items-center justify-between gap-2 rounded-md border border-gray-200 bg-white px-2.5 py-1.5 text-xs transition-colors hover:bg-gray-50", children: [_jsxs("span", { className: "truncate text-gray-500", children: [_jsx("span", { className: "font-medium text-gray-700", children: selectedTitle ?? chapter.title }), " ", _jsxs("span", { className: "text-gray-400", children: ["\u2014 in ", chapter.title] })] }), _jsx(ChevronDown, { className: "h-3.5 w-3.5 shrink-0 text-gray-400" })] }) }), _jsxs(DropdownMenuContent, { align: "start", className: "max-h-80 w-[--radix-dropdown-menu-trigger-width] overflow-y-auto", children: [allChapters.length > 0 && (_jsxs(_Fragment, { children: [_jsx(DropdownMenuLabel, { className: "text-[11px] font-semibold tracking-wide text-gray-400 uppercase", children: "Chapters" }), allChapters.map((c) => {
|
|
1407
645
|
const isCurrent = c.id === chapter?.id;
|
|
1408
646
|
const theme = getSectionTheme(c.title);
|
|
1409
647
|
const Icon = theme.icon;
|
|
1410
|
-
return (_jsxs(DropdownMenuItem, { onClick: () => !isCurrent && onSelect(c.id), className: cn(isCurrent && "bg-
|
|
1411
|
-
}), _jsx(DropdownMenuSeparator, {}), _jsxs(DropdownMenuLabel, { className: "text-
|
|
648
|
+
return (_jsxs(DropdownMenuItem, { onClick: () => !isCurrent && onSelect(c.id), className: cn(isCurrent && "bg-blue-50 font-medium"), children: [c.svgIcon ? (_jsx(SvgIcon, { svg: c.svgIcon, size: 14, className: cn("mr-1.5 shrink-0", theme.color) })) : (_jsx(Icon, { className: cn("mr-1.5 h-3.5 w-3.5 shrink-0", theme.color), strokeWidth: 1.75 })), _jsx("span", { className: "truncate", children: c.title })] }, c.id));
|
|
649
|
+
}), _jsx(DropdownMenuSeparator, {}), _jsxs(DropdownMenuLabel, { className: "text-[11px] font-semibold tracking-wide text-gray-400 uppercase", children: ["In ", chapter.title] })] })), chapterOptions.map(({ section, depth }) => {
|
|
1412
650
|
const isActive = section.id === selectedSectionId;
|
|
1413
651
|
const navigable = isDirectlyNavigableSection(section);
|
|
1414
|
-
return (_jsx(DropdownMenuItem, { disabled: !navigable, onClick: () => navigable && onSelect(section.id), className: cn(isActive && "bg-
|
|
652
|
+
return (_jsx(DropdownMenuItem, { disabled: !navigable, onClick: () => navigable && onSelect(section.id), className: cn(isActive && "bg-blue-50 font-medium", !navigable && "pointer-events-none opacity-60"), style: { paddingLeft: `${8 + depth * 16}px` }, children: _jsx("span", { className: "truncate", children: section.title || "Untitled" }) }, section.id));
|
|
1415
653
|
})] })] }));
|
|
1416
654
|
}
|
|
1417
655
|
function flattenSections(sections) {
|
|
@@ -1437,10 +675,8 @@ function flattenNavigableSections(sections) {
|
|
|
1437
675
|
return flattened;
|
|
1438
676
|
}
|
|
1439
677
|
const MANUAL_SECTION_TEMPLATE_ID = "c5f1e8a2-9b50-4fe2-9b6d-3db00c3b3b8a";
|
|
1440
|
-
const MANUAL_SEARCH_DEBOUNCE_MS = 600;
|
|
1441
678
|
export function ManualBrowser({ onClose }) {
|
|
1442
679
|
const editContext = useEditContext();
|
|
1443
|
-
const editContextRef = useRef(editContext);
|
|
1444
680
|
const [toc, setToc] = useState([]);
|
|
1445
681
|
const selectedSectionId = editContext?.selectedHelpSectionId ?? null;
|
|
1446
682
|
const [currentSection, setCurrentSection] = useState(null);
|
|
@@ -1503,7 +739,6 @@ export function ManualBrowser({ onClose }) {
|
|
|
1503
739
|
}
|
|
1504
740
|
return map;
|
|
1505
741
|
}, [toc]);
|
|
1506
|
-
const manualSectionsByIdRef = useRef(manualSectionsById);
|
|
1507
742
|
const backTargetSectionId = manualBackHistory.length > 0
|
|
1508
743
|
? manualBackHistory[manualBackHistory.length - 1]
|
|
1509
744
|
: null;
|
|
@@ -1516,8 +751,6 @@ export function ManualBrowser({ onClose }) {
|
|
|
1516
751
|
? `Back to ${backTargetSection.title}`
|
|
1517
752
|
: "Back to contents";
|
|
1518
753
|
const backButtonText = backTargetSectionId === null ? "Contents" : "Back";
|
|
1519
|
-
editContextRef.current = editContext;
|
|
1520
|
-
manualSectionsByIdRef.current = manualSectionsById;
|
|
1521
754
|
// Keep selectedSectionId ref in sync
|
|
1522
755
|
useEffect(() => {
|
|
1523
756
|
selectedSectionIdRef.current = selectedSectionId;
|
|
@@ -1638,23 +871,17 @@ export function ManualBrowser({ onClose }) {
|
|
|
1638
871
|
useEffect(() => {
|
|
1639
872
|
let cancelled = false;
|
|
1640
873
|
const trimmedQuery = searchQuery.trim();
|
|
1641
|
-
if (!trimmedQuery || !
|
|
874
|
+
if (!trimmedQuery || !editContext) {
|
|
1642
875
|
setSearching(false);
|
|
1643
876
|
setSearchResults([]);
|
|
1644
877
|
return;
|
|
1645
878
|
}
|
|
1646
879
|
const timeoutId = window.setTimeout(async () => {
|
|
1647
|
-
const latestEditContext = editContextRef.current;
|
|
1648
|
-
if (!latestEditContext) {
|
|
1649
|
-
setSearching(false);
|
|
1650
|
-
setSearchResults([]);
|
|
1651
|
-
return;
|
|
1652
|
-
}
|
|
1653
880
|
setSearching(true);
|
|
1654
881
|
try {
|
|
1655
882
|
const result = await executeSearch({
|
|
1656
883
|
query: `${trimmedQuery}|template:${MANUAL_SECTION_TEMPLATE_ID}`,
|
|
1657
|
-
editContext
|
|
884
|
+
editContext,
|
|
1658
885
|
maxResults: 20,
|
|
1659
886
|
index: "master",
|
|
1660
887
|
skipValidation: true,
|
|
@@ -1663,9 +890,8 @@ export function ManualBrowser({ onClose }) {
|
|
|
1663
890
|
return;
|
|
1664
891
|
if (result.type === "success") {
|
|
1665
892
|
const items = result.data || [];
|
|
1666
|
-
const latestManualSectionsById = manualSectionsByIdRef.current;
|
|
1667
893
|
const mapped = items
|
|
1668
|
-
.map((item) =>
|
|
894
|
+
.map((item) => manualSectionsById.get(String(item.id || "").toLowerCase()))
|
|
1669
895
|
.filter((section) => !!section);
|
|
1670
896
|
const unique = Array.from(new Map(mapped.map((section) => [section.id, section])).values());
|
|
1671
897
|
setSearchResults(unique);
|
|
@@ -1686,12 +912,12 @@ export function ManualBrowser({ onClose }) {
|
|
|
1686
912
|
setSearching(false);
|
|
1687
913
|
}
|
|
1688
914
|
}
|
|
1689
|
-
},
|
|
915
|
+
}, 300);
|
|
1690
916
|
return () => {
|
|
1691
917
|
cancelled = true;
|
|
1692
918
|
window.clearTimeout(timeoutId);
|
|
1693
919
|
};
|
|
1694
|
-
}, [searchQuery]);
|
|
920
|
+
}, [searchQuery, editContext, manualSectionsById]);
|
|
1695
921
|
// Listen for websocket messages to auto-refresh when manual items change
|
|
1696
922
|
// Use ref for selectedSectionId to avoid stale closures and only re-register when selection actually changes
|
|
1697
923
|
useEffect(() => {
|
|
@@ -1763,15 +989,15 @@ export function ManualBrowser({ onClose }) {
|
|
|
1763
989
|
editContext.setSelectedHelpSectionId(normalizeHistorySectionId(previousSectionId));
|
|
1764
990
|
}, [editContext, normalizeHistorySectionId, selectedSectionId]);
|
|
1765
991
|
if (loadingToc) {
|
|
1766
|
-
return (_jsx("div", { className: "flex items-center justify-center py-8", children: _jsx(Loader2, { className: "
|
|
992
|
+
return (_jsx("div", { className: "flex items-center justify-center py-8", children: _jsx(Loader2, { className: "h-5 w-5 animate-spin text-gray-400" }) }));
|
|
1767
993
|
}
|
|
1768
994
|
if (error) {
|
|
1769
|
-
return (_jsx("div", { className: "
|
|
995
|
+
return (_jsx("div", { className: "px-4 py-8 text-center text-sm text-red-500", children: error }));
|
|
1770
996
|
}
|
|
1771
997
|
if (toc.length === 0) {
|
|
1772
|
-
return (_jsxs("div", { className: "
|
|
998
|
+
return (_jsxs("div", { className: "px-4 py-8 text-center text-sm text-gray-500", children: [_jsx(Book, { className: "mx-auto mb-2 h-8 w-8 text-gray-300" }), _jsx("p", { children: "No manual content available yet." })] }));
|
|
1773
999
|
}
|
|
1774
|
-
return (_jsxs("div", { className: "flex h-full flex-col", children: [_jsxs("div", { className: "
|
|
1000
|
+
return (_jsxs("div", { className: "flex h-full flex-col", children: [_jsxs("div", { className: "shrink-0 border-b border-gray-200/60 bg-linear-to-b from-gray-50 to-white px-4 py-3", children: [_jsxs("div", { className: "flex items-center justify-between gap-2", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx("div", { className: "flex h-7 w-7 items-center justify-center rounded-lg bg-blue-50", children: _jsx(Book, { className: "h-4 w-4 text-blue-600", strokeWidth: 1.75 }) }), _jsx("h2", { className: "text-base font-semibold text-gray-900", children: "User Manual" })] }), onClose && (_jsx("button", { onClick: onClose, className: "shrink-0 rounded p-1 text-gray-400 transition-colors hover:bg-gray-200 hover:text-gray-600", "aria-label": "Close", children: _jsx(X, { size: 16, strokeWidth: 1.5 }) }))] }), _jsx("div", { className: "mt-2", children: _jsx(FilterInput, { value: searchQuery, onChange: setSearchQuery, placeholder: "Search manual pages...", size: "xs", loading: searching }) }), selectedSectionId && (_jsx("div", { className: "mt-2", children: _jsx(InChapterDropdown, { toc: toc, currentTocPath: currentTocPath, selectedSectionId: selectedSectionId, onSelect: handleSelectSection }) })), searchQuery.trim().length > 0 && (_jsx("div", { className: "mt-2 max-h-52 overflow-y-auto rounded-lg border border-gray-200 bg-white shadow-sm", children: searching ? (_jsxs("div", { className: "flex items-center gap-2 px-3 py-3 text-xs text-gray-500", children: [_jsx(Loader2, { className: "h-3 w-3 animate-spin" }), "Searching manual..."] })) : searchResults.length > 0 ? (searchResults.map((section) => (_jsxs("button", { type: "button", onClick: () => handleSelectSearchResult(section.id), className: "group block w-full border-b border-gray-50 px-3 py-2.5 text-left transition-colors last:border-b-0 hover:bg-blue-50/50", children: [_jsx("span", { className: "block text-sm font-medium text-gray-900 transition-colors group-hover:text-blue-700", children: section.title || "Untitled" }), section.summary && (_jsx("span", { className: "mt-0.5 line-clamp-2 block text-xs leading-relaxed text-gray-500", children: section.summary }))] }, section.id)))) : (_jsx("div", { className: "px-3 py-3 text-center text-xs text-gray-500", children: "No manual pages matched your search." })) }))] }), _jsx("div", { className: "flex-1 overflow-y-auto p-4 select-text", children: loadingSection ? (_jsx("div", { className: "flex items-center justify-center py-8", children: _jsx(Loader2, { className: "h-5 w-5 animate-spin text-gray-400" }) })) : !selectedSectionId ? (_jsx("div", { children: renderTocTree(toc, handleSelectSection, handleToggleTocSection, collapsedTocSectionIds) })) : currentSection ? (_jsxs("div", { children: [_jsxs("div", { className: "mb-1 flex items-center justify-between", children: [_jsxs("button", { type: "button", onClick: handleGoBack, className: "inline-flex shrink-0 items-center gap-1 rounded px-2 py-1 text-sm text-gray-600 transition-colors hover:bg-gray-100 hover:text-gray-900", "aria-label": backButtonLabel, title: backButtonLabel, children: [_jsx(ArrowLeft, { className: "h-4 w-4" }), _jsx("span", { className: "hidden sm:inline", children: backButtonText })] }), editContext?.user?.isAdministrator && editContext?.loadItem && (_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx("button", { type: "button", onClick: async (e) => {
|
|
1775
1001
|
e.preventDefault();
|
|
1776
1002
|
e.stopPropagation();
|
|
1777
1003
|
if (!editContext?.loadItem) {
|
|
@@ -1793,20 +1019,20 @@ export function ManualBrowser({ onClose }) {
|
|
|
1793
1019
|
catch (error) {
|
|
1794
1020
|
console.error("Failed to load manual section:", error);
|
|
1795
1021
|
}
|
|
1796
|
-
}, className: "text-
|
|
1022
|
+
}, className: "shrink-0 rounded p-1.5 text-gray-500 transition-colors hover:bg-gray-100 hover:text-gray-700", "aria-label": "Edit item", title: "Edit item", children: _jsx(Edit, { className: "h-4 w-4" }) }) }), _jsx(TooltipContent, { children: "Edit item" })] }))] }), _jsxs("h2", { className: "my-2 flex items-center gap-2 text-xl font-bold text-gray-900", children: [currentSection.svgIcon && (_jsx(SvgIcon, { svg: currentSection.svgIcon, size: 24, className: "shrink-0 text-gray-500" })), currentSection.title] }), currentSection.summary &&
|
|
1797
1023
|
(() => {
|
|
1798
1024
|
const theme = parentTocSection
|
|
1799
1025
|
? getSectionTheme(parentTocSection.title)
|
|
1800
1026
|
: getSectionTheme(currentSection.title);
|
|
1801
|
-
return (_jsx("p", { className: cn("
|
|
1027
|
+
return (_jsx("p", { className: cn("my-4 mb-8 border-l-2 pl-3 text-sm text-gray-500 italic", theme.border), children: currentSection.summary }));
|
|
1802
1028
|
})(), _jsx("div", { className: "prose prose-sm max-w-none select-text", children: renderMarkdownWithSelectors(currentSection.content || "", parseUiSelectors(currentSection.uiSelectors), manualLinkTargets, handleSelectSection) }), currentSection.subsections &&
|
|
1803
|
-
currentSection.subsections.length > 0 && (_jsxs("div", { className: "
|
|
1029
|
+
currentSection.subsections.length > 0 && (_jsxs("div", { className: "mt-8 border-t border-gray-100 pt-4", children: [_jsx("h3", { className: "mb-3 text-[11px] font-bold tracking-widest text-gray-400 uppercase", children: "In this section" }), _jsx("div", { className: "space-y-0.5", children: currentSection.subsections.map((subsection) => {
|
|
1804
1030
|
const theme = getSectionTheme(currentSection.title);
|
|
1805
|
-
return (_jsxs("button", { onClick: () => handleSelectSection(subsection.id), className: "group
|
|
1806
|
-
}) })] }))] })) : (_jsx("div", { className: "
|
|
1031
|
+
return (_jsxs("button", { onClick: () => handleSelectSection(subsection.id), className: "group flex w-full items-center gap-2.5 rounded-lg px-3 py-2 text-left text-sm text-gray-600 transition-all hover:bg-gray-50 hover:text-gray-900", children: [_jsx("span", { className: cn("h-1.5 w-1.5 shrink-0 rounded-full transition-transform group-hover:scale-125", theme.accent, "opacity-50 group-hover:opacity-80") }), _jsx("span", { className: "flex-1 truncate font-medium", children: subsection.title }), _jsx(ChevronRight, { className: "h-3.5 w-3.5 shrink-0 text-gray-300 transition-colors group-hover:text-gray-500" })] }, subsection.id));
|
|
1032
|
+
}) })] }))] })) : (_jsx("div", { className: "py-8 text-center text-sm text-gray-500", children: "Select a section to view its content" })) }), selectedSectionId &&
|
|
1807
1033
|
currentSection &&
|
|
1808
|
-
(chapterNavigation.previous || chapterNavigation.next) && (_jsx("div", { className: "
|
|
1809
|
-
handleSelectSection(chapterNavigation.previous.id), className: "group
|
|
1810
|
-
handleSelectSection(chapterNavigation.next.id), className: "group
|
|
1034
|
+
(chapterNavigation.previous || chapterNavigation.next) && (_jsx("div", { className: "shrink-0 border-t border-gray-200/60 bg-white px-4 py-3", children: _jsxs("div", { className: "grid grid-cols-2 gap-2", children: [chapterNavigation.previous ? (_jsxs("button", { type: "button", onClick: () => chapterNavigation.previous &&
|
|
1035
|
+
handleSelectSection(chapterNavigation.previous.id), className: "group rounded-lg border border-gray-200 px-3 py-2 text-left transition-all hover:border-blue-200 hover:bg-blue-50/30", children: [_jsxs("span", { className: "mb-0.5 inline-flex items-center gap-1 text-xs font-medium text-gray-400 transition-colors group-hover:text-blue-500", children: [_jsx(ArrowLeft, { className: "h-3 w-3" }), "Previous"] }), _jsx("span", { className: "block truncate text-sm font-medium text-gray-700 transition-colors group-hover:text-gray-900", children: chapterNavigation.previous.title })] })) : (_jsx("div", {})), chapterNavigation.next ? (_jsxs("button", { type: "button", onClick: () => chapterNavigation.next &&
|
|
1036
|
+
handleSelectSection(chapterNavigation.next.id), className: "group rounded-lg border border-gray-200 px-3 py-2 text-right transition-all hover:border-blue-200 hover:bg-blue-50/30", children: [_jsxs("span", { className: "mb-0.5 inline-flex items-center justify-end gap-1 text-xs font-medium text-gray-400 transition-colors group-hover:text-blue-500", children: ["Next", _jsx(ArrowRight, { className: "h-3 w-3" })] }), _jsx("span", { className: "block truncate text-sm font-medium text-gray-700 transition-colors group-hover:text-gray-900", children: chapterNavigation.next.title })] })) : (_jsx("div", {}))] }) }))] }));
|
|
1811
1037
|
}
|
|
1812
1038
|
//# sourceMappingURL=ManualBrowser.js.map
|