@parhelia/core 0.1.11004 → 0.1.11007
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/dist/agents-view/AgentCard.d.ts +12 -0
- package/dist/dist/agents-view/AgentCard.js +30 -0
- package/dist/dist/agents-view/AgentCard.js.map +1 -0
- package/dist/dist/agents-view/AgentsView.d.ts +5 -0
- package/dist/dist/agents-view/AgentsView.js +255 -0
- package/dist/dist/agents-view/AgentsView.js.map +1 -0
- package/dist/dist/agents-view/ProfileAgentsGroup.d.ts +17 -0
- package/dist/dist/agents-view/ProfileAgentsGroup.js +13 -0
- package/dist/dist/agents-view/ProfileAgentsGroup.js.map +1 -0
- package/dist/dist/client-components/api.d.ts +1 -0
- package/dist/dist/client-components/api.js +4 -0
- package/dist/dist/client-components/api.js.map +1 -0
- package/dist/dist/client-components/index.d.ts +17 -0
- package/dist/dist/client-components/index.js +18 -0
- package/dist/dist/client-components/index.js.map +1 -0
- package/dist/dist/components/ActionButton.d.ts +14 -0
- package/dist/dist/components/ActionButton.js +6 -0
- package/dist/dist/components/ActionButton.js.map +1 -0
- package/dist/dist/components/Error.d.ts +9 -0
- package/dist/dist/components/Error.js +24 -0
- package/dist/dist/components/Error.js.map +1 -0
- package/dist/dist/components/FilterInput.d.ts +22 -0
- package/dist/dist/components/FilterInput.js +29 -0
- package/dist/dist/components/FilterInput.js.map +1 -0
- package/dist/dist/components/index.d.ts +7 -0
- package/dist/dist/components/index.js +5 -0
- package/dist/dist/components/index.js.map +1 -0
- package/dist/dist/components/ui/CardConnector.d.ts +4 -0
- package/dist/dist/components/ui/CardConnector.js +6 -0
- package/dist/dist/components/ui/CardConnector.js.map +1 -0
- package/dist/dist/components/ui/LanguageSelector.d.ts +8 -0
- package/dist/dist/components/ui/LanguageSelector.js +53 -0
- package/dist/dist/components/ui/LanguageSelector.js.map +1 -0
- package/dist/dist/components/ui/PlaceholderInput.d.ts +41 -0
- package/dist/dist/components/ui/PlaceholderInput.js +160 -0
- package/dist/dist/components/ui/PlaceholderInput.js.map +1 -0
- package/dist/dist/components/ui/PlaceholderInputTypes.d.ts +41 -0
- package/dist/dist/components/ui/PlaceholderInputTypes.js +48 -0
- package/dist/dist/components/ui/PlaceholderInputTypes.js.map +1 -0
- package/dist/dist/components/ui/PlaceholderItemSelector.d.ts +7 -0
- package/dist/dist/components/ui/PlaceholderItemSelector.js +154 -0
- package/dist/dist/components/ui/PlaceholderItemSelector.js.map +1 -0
- package/dist/dist/components/ui/alert.d.ts +7 -0
- package/dist/dist/components/ui/alert.js +21 -0
- package/dist/dist/components/ui/alert.js.map +1 -0
- package/dist/dist/components/ui/badge.d.ts +9 -0
- package/dist/dist/components/ui/badge.js +23 -0
- package/dist/dist/components/ui/badge.js.map +1 -0
- package/dist/dist/components/ui/button.d.ts +10 -0
- package/dist/dist/components/ui/button.js +33 -0
- package/dist/dist/components/ui/button.js.map +1 -0
- package/dist/dist/components/ui/calendar.d.ts +7 -0
- package/dist/dist/components/ui/calendar.js +58 -0
- package/dist/dist/components/ui/calendar.js.map +1 -0
- package/dist/dist/components/ui/card.d.ts +19 -0
- package/dist/dist/components/ui/card.js +78 -0
- package/dist/dist/components/ui/card.js.map +1 -0
- package/dist/dist/components/ui/checkbox.d.ts +4 -0
- package/dist/dist/components/ui/checkbox.js +10 -0
- package/dist/dist/components/ui/checkbox.js.map +1 -0
- package/dist/dist/components/ui/command.d.ts +18 -0
- package/dist/dist/components/ui/command.js +35 -0
- package/dist/dist/components/ui/command.js.map +1 -0
- package/dist/dist/components/ui/context-menu.d.ts +53 -0
- package/dist/dist/components/ui/context-menu.js +290 -0
- package/dist/dist/components/ui/context-menu.js.map +1 -0
- package/dist/dist/components/ui/copy-button.d.ts +10 -0
- package/dist/dist/components/ui/copy-button.js +61 -0
- package/dist/dist/components/ui/copy-button.js.map +1 -0
- package/dist/dist/components/ui/dialog.d.ts +16 -0
- package/dist/dist/components/ui/dialog.js +37 -0
- package/dist/dist/components/ui/dialog.js.map +1 -0
- package/dist/dist/components/ui/dropdown-menu.d.ts +25 -0
- package/dist/dist/components/ui/dropdown-menu.js +52 -0
- package/dist/dist/components/ui/dropdown-menu.js.map +1 -0
- package/dist/dist/components/ui/input.d.ts +3 -0
- package/dist/dist/components/ui/input.js +9 -0
- package/dist/dist/components/ui/input.js.map +1 -0
- package/dist/dist/components/ui/label.d.ts +5 -0
- package/dist/dist/components/ui/label.js +9 -0
- package/dist/dist/components/ui/label.js.map +1 -0
- package/dist/dist/components/ui/menubar.d.ts +26 -0
- package/dist/dist/components/ui/menubar.js +55 -0
- package/dist/dist/components/ui/menubar.js.map +1 -0
- package/dist/dist/components/ui/paste-button.d.ts +14 -0
- package/dist/dist/components/ui/paste-button.js +114 -0
- package/dist/dist/components/ui/paste-button.js.map +1 -0
- package/dist/dist/components/ui/popover.d.ts +11 -0
- package/dist/dist/components/ui/popover.js +66 -0
- package/dist/dist/components/ui/popover.js.map +1 -0
- package/dist/dist/components/ui/progress.d.ts +7 -0
- package/dist/dist/components/ui/progress.js +9 -0
- package/dist/dist/components/ui/progress.js.map +1 -0
- package/dist/dist/components/ui/select.d.ts +18 -0
- package/dist/dist/components/ui/select.js +34 -0
- package/dist/dist/components/ui/select.js.map +1 -0
- package/dist/dist/components/ui/sonner.d.ts +3 -0
- package/dist/dist/components/ui/sonner.js +16 -0
- package/dist/dist/components/ui/sonner.js.map +1 -0
- package/dist/dist/components/ui/switch.d.ts +4 -0
- package/dist/dist/components/ui/switch.js +9 -0
- package/dist/dist/components/ui/switch.js.map +1 -0
- package/dist/dist/components/ui/tabs.d.ts +17 -0
- package/dist/dist/components/ui/tabs.js +27 -0
- package/dist/dist/components/ui/tabs.js.map +1 -0
- package/dist/dist/components/ui/textarea.d.ts +3 -0
- package/dist/dist/components/ui/textarea.js +11 -0
- package/dist/dist/components/ui/textarea.js.map +1 -0
- package/dist/dist/components/ui/tooltip.d.ts +9 -0
- package/dist/dist/components/ui/tooltip.js +18 -0
- package/dist/dist/components/ui/tooltip.js.map +1 -0
- package/dist/dist/components/ui/upload-button.d.ts +15 -0
- package/dist/dist/components/ui/upload-button.js +56 -0
- package/dist/dist/components/ui/upload-button.js.map +1 -0
- package/dist/dist/config/config.d.ts +24 -0
- package/dist/dist/config/config.js +1088 -0
- package/dist/dist/config/config.js.map +1 -0
- package/dist/dist/config/types.d.ts +244 -0
- package/dist/dist/config/types.js +2 -0
- package/dist/dist/config/types.js.map +1 -0
- package/dist/dist/editor/AspectRatioSelector.d.ts +13 -0
- package/dist/dist/editor/AspectRatioSelector.js +71 -0
- package/dist/dist/editor/AspectRatioSelector.js.map +1 -0
- package/dist/dist/editor/ComponentInfo.d.ts +4 -0
- package/dist/dist/editor/ComponentInfo.js +41 -0
- package/dist/dist/editor/ComponentInfo.js.map +1 -0
- package/dist/dist/editor/ConfirmationDialog.d.ts +19 -0
- package/dist/dist/editor/ConfirmationDialog.js +31 -0
- package/dist/dist/editor/ConfirmationDialog.js.map +1 -0
- package/dist/dist/editor/ContentTree.d.ts +39 -0
- package/dist/dist/editor/ContentTree.js +602 -0
- package/dist/dist/editor/ContentTree.js.map +1 -0
- package/dist/dist/editor/ContextMenu.d.ts +15 -0
- package/dist/dist/editor/ContextMenu.js +239 -0
- package/dist/dist/editor/ContextMenu.js.map +1 -0
- package/dist/dist/editor/Editor.d.ts +12 -0
- package/dist/dist/editor/Editor.js +116 -0
- package/dist/dist/editor/Editor.js.map +1 -0
- package/dist/dist/editor/EditorWarning.d.ts +5 -0
- package/dist/dist/editor/EditorWarning.js +12 -0
- package/dist/dist/editor/EditorWarning.js.map +1 -0
- package/dist/dist/editor/EditorWarnings.d.ts +9 -0
- package/dist/dist/editor/EditorWarnings.js +19 -0
- package/dist/dist/editor/EditorWarnings.js.map +1 -0
- package/dist/dist/editor/FieldActionsOverlay.d.ts +18 -0
- package/dist/dist/editor/FieldActionsOverlay.js +201 -0
- package/dist/dist/editor/FieldActionsOverlay.js.map +1 -0
- package/dist/dist/editor/FieldEditorPopup.d.ts +10 -0
- package/dist/dist/editor/FieldEditorPopup.js +23 -0
- package/dist/dist/editor/FieldEditorPopup.js.map +1 -0
- package/dist/dist/editor/FieldHistory.d.ts +7 -0
- package/dist/dist/editor/FieldHistory.js +45 -0
- package/dist/dist/editor/FieldHistory.js.map +1 -0
- package/dist/dist/editor/FieldList.d.ts +19 -0
- package/dist/dist/editor/FieldList.js +90 -0
- package/dist/dist/editor/FieldList.js.map +1 -0
- package/dist/dist/editor/FieldListField.d.ts +16 -0
- package/dist/dist/editor/FieldListField.js +286 -0
- package/dist/dist/editor/FieldListField.js.map +1 -0
- package/dist/dist/editor/FieldListFieldWithFallbacks.d.ts +11 -0
- package/dist/dist/editor/FieldListFieldWithFallbacks.js +120 -0
- package/dist/dist/editor/FieldListFieldWithFallbacks.js.map +1 -0
- package/dist/dist/editor/FloatingToolbar.d.ts +7 -0
- package/dist/dist/editor/FloatingToolbar.js +91 -0
- package/dist/dist/editor/FloatingToolbar.js.map +1 -0
- package/dist/dist/editor/ImageEditButton.d.ts +27 -0
- package/dist/dist/editor/ImageEditButton.js +22 -0
- package/dist/dist/editor/ImageEditButton.js.map +1 -0
- package/dist/dist/editor/ImageEditor.d.ts +5 -0
- package/dist/dist/editor/ImageEditor.js +76 -0
- package/dist/dist/editor/ImageEditor.js.map +1 -0
- package/dist/dist/editor/ItemInfo.d.ts +4 -0
- package/dist/dist/editor/ItemInfo.js +60 -0
- package/dist/dist/editor/ItemInfo.js.map +1 -0
- package/dist/dist/editor/LinkEditorDialog.d.ts +18 -0
- package/dist/dist/editor/LinkEditorDialog.js +101 -0
- package/dist/dist/editor/LinkEditorDialog.js.map +1 -0
- package/dist/dist/editor/MainLayout.d.ts +12 -0
- package/dist/dist/editor/MainLayout.js +124 -0
- package/dist/dist/editor/MainLayout.js.map +1 -0
- package/dist/dist/editor/MobileLayout.d.ts +2 -0
- package/dist/dist/editor/MobileLayout.js +34 -0
- package/dist/dist/editor/MobileLayout.js.map +1 -0
- package/dist/dist/editor/NewEditorClient.d.ts +5 -0
- package/dist/dist/editor/NewEditorClient.js +7 -0
- package/dist/dist/editor/NewEditorClient.js.map +1 -0
- package/dist/dist/editor/PictureCropper.d.ts +6 -0
- package/dist/dist/editor/PictureCropper.js +722 -0
- package/dist/dist/editor/PictureCropper.js.map +1 -0
- package/dist/dist/editor/PictureEditor.d.ts +9 -0
- package/dist/dist/editor/PictureEditor.js +180 -0
- package/dist/dist/editor/PictureEditor.js.map +1 -0
- package/dist/dist/editor/PictureEditorDialog.d.ts +8 -0
- package/dist/dist/editor/PictureEditorDialog.js +195 -0
- package/dist/dist/editor/PictureEditorDialog.js.map +1 -0
- package/dist/dist/editor/QuickItemSwitcher.d.ts +9 -0
- package/dist/dist/editor/QuickItemSwitcher.js +78 -0
- package/dist/dist/editor/QuickItemSwitcher.js.map +1 -0
- package/dist/dist/editor/ScrollingContentTree.d.ts +10 -0
- package/dist/dist/editor/ScrollingContentTree.js +48 -0
- package/dist/dist/editor/ScrollingContentTree.js.map +1 -0
- package/dist/dist/editor/SetupLoadingScreen.d.ts +5 -0
- package/dist/dist/editor/SetupLoadingScreen.js +11 -0
- package/dist/dist/editor/SetupLoadingScreen.js.map +1 -0
- package/dist/dist/editor/Titlebar.d.ts +1 -0
- package/dist/dist/editor/Titlebar.js +46 -0
- package/dist/dist/editor/Titlebar.js.map +1 -0
- package/dist/dist/editor/ai/AgentCostDisplay.d.ts +32 -0
- package/dist/dist/editor/ai/AgentCostDisplay.js +93 -0
- package/dist/dist/editor/ai/AgentCostDisplay.js.map +1 -0
- package/dist/dist/editor/ai/AgentDocumentList.d.ts +8 -0
- package/dist/dist/editor/ai/AgentDocumentList.js +132 -0
- package/dist/dist/editor/ai/AgentDocumentList.js.map +1 -0
- package/dist/dist/editor/ai/AgentHistory.d.ts +11 -0
- package/dist/dist/editor/ai/AgentHistory.js +12 -0
- package/dist/dist/editor/ai/AgentHistory.js.map +1 -0
- package/dist/dist/editor/ai/AgentProfilesOverview.d.ts +9 -0
- package/dist/dist/editor/ai/AgentProfilesOverview.js +16 -0
- package/dist/dist/editor/ai/AgentProfilesOverview.js.map +1 -0
- package/dist/dist/editor/ai/AgentStatusBadge.d.ts +26 -0
- package/dist/dist/editor/ai/AgentStatusBadge.js +126 -0
- package/dist/dist/editor/ai/AgentStatusBadge.js.map +1 -0
- package/dist/dist/editor/ai/AgentTerminal.d.ts +14 -0
- package/dist/dist/editor/ai/AgentTerminal.js +3012 -0
- package/dist/dist/editor/ai/AgentTerminal.js.map +1 -0
- package/dist/dist/editor/ai/Agents.d.ts +4 -0
- package/dist/dist/editor/ai/Agents.js +891 -0
- package/dist/dist/editor/ai/Agents.js.map +1 -0
- package/dist/dist/editor/ai/AiResponseMessage.d.ts +18 -0
- package/dist/dist/editor/ai/AiResponseMessage.js +684 -0
- package/dist/dist/editor/ai/AiResponseMessage.js.map +1 -0
- package/dist/dist/editor/ai/ContextInfoBar.d.ts +14 -0
- package/dist/dist/editor/ai/ContextInfoBar.js +432 -0
- package/dist/dist/editor/ai/ContextInfoBar.js.map +1 -0
- package/dist/dist/editor/ai/DancingDots.d.ts +1 -0
- package/dist/dist/editor/ai/DancingDots.js +6 -0
- package/dist/dist/editor/ai/DancingDots.js.map +1 -0
- package/dist/dist/editor/ai/MediaImage.d.ts +6 -0
- package/dist/dist/editor/ai/MediaImage.js +38 -0
- package/dist/dist/editor/ai/MediaImage.js.map +1 -0
- package/dist/dist/editor/ai/ToolCallDisplay.d.ts +45 -0
- package/dist/dist/editor/ai/ToolCallDisplay.js +292 -0
- package/dist/dist/editor/ai/ToolCallDisplay.js.map +1 -0
- package/dist/dist/editor/ai/aiPageModel.d.ts +24 -0
- package/dist/dist/editor/ai/aiPageModel.js +97 -0
- package/dist/dist/editor/ai/aiPageModel.js.map +1 -0
- package/dist/dist/editor/ai/editorAiContext.d.ts +10 -0
- package/dist/dist/editor/ai/editorAiContext.js +10 -0
- package/dist/dist/editor/ai/editorAiContext.js.map +1 -0
- package/dist/dist/editor/ai/types.d.ts +30 -0
- package/dist/dist/editor/ai/types.js +2 -0
- package/dist/dist/editor/ai/types.js.map +1 -0
- package/dist/dist/editor/ai/useAgentStatus.d.ts +14 -0
- package/dist/dist/editor/ai/useAgentStatus.js +203 -0
- package/dist/dist/editor/ai/useAgentStatus.js.map +1 -0
- package/dist/dist/editor/client/AboutDialog.d.ts +2 -0
- package/dist/dist/editor/client/AboutDialog.js +23 -0
- package/dist/dist/editor/client/AboutDialog.js.map +1 -0
- package/dist/dist/editor/client/EditorShell.d.ts +37 -0
- package/dist/dist/editor/client/EditorShell.js +2283 -0
- package/dist/dist/editor/client/EditorShell.js.map +1 -0
- package/dist/dist/editor/client/GenericDialog.d.ts +10 -0
- package/dist/dist/editor/client/GenericDialog.js +25 -0
- package/dist/dist/editor/client/GenericDialog.js.map +1 -0
- package/dist/dist/editor/client/editContext.d.ts +262 -0
- package/dist/dist/editor/client/editContext.js +29 -0
- package/dist/dist/editor/client/editContext.js.map +1 -0
- package/dist/dist/editor/client/fieldModificationStore.d.ts +25 -0
- package/dist/dist/editor/client/fieldModificationStore.js +184 -0
- package/dist/dist/editor/client/fieldModificationStore.js.map +1 -0
- package/dist/dist/editor/client/helpers.d.ts +12 -0
- package/dist/dist/editor/client/helpers.js +29 -0
- package/dist/dist/editor/client/helpers.js.map +1 -0
- package/dist/dist/editor/client/hooks/useEditorUrlSync.d.ts +18 -0
- package/dist/dist/editor/client/hooks/useEditorUrlSync.js +56 -0
- package/dist/dist/editor/client/hooks/useEditorUrlSync.js.map +1 -0
- package/dist/dist/editor/client/hooks/useEditorWebSocket.d.ts +11 -0
- package/dist/dist/editor/client/hooks/useEditorWebSocket.js +86 -0
- package/dist/dist/editor/client/hooks/useEditorWebSocket.js.map +1 -0
- package/dist/dist/editor/client/hooks/useGlobalEditorKeyDown.d.ts +1 -0
- package/dist/dist/editor/client/hooks/useGlobalEditorKeyDown.js +12 -0
- package/dist/dist/editor/client/hooks/useGlobalEditorKeyDown.js.map +1 -0
- package/dist/dist/editor/client/hooks/useMediaQuery.d.ts +1 -0
- package/dist/dist/editor/client/hooks/useMediaQuery.js +19 -0
- package/dist/dist/editor/client/hooks/useMediaQuery.js.map +1 -0
- package/dist/dist/editor/client/hooks/useMediaSelector.d.ts +12 -0
- package/dist/dist/editor/client/hooks/useMediaSelector.js +30 -0
- package/dist/dist/editor/client/hooks/useMediaSelector.js.map +1 -0
- package/dist/dist/editor/client/hooks/useQuota.d.ts +29 -0
- package/dist/dist/editor/client/hooks/useQuota.js +53 -0
- package/dist/dist/editor/client/hooks/useQuota.js.map +1 -0
- package/dist/dist/editor/client/hooks/useSocketMessageHandler.d.ts +35 -0
- package/dist/dist/editor/client/hooks/useSocketMessageHandler.js +241 -0
- package/dist/dist/editor/client/hooks/useSocketMessageHandler.js.map +1 -0
- package/dist/dist/editor/client/hooks/useWorkbox.d.ts +9 -0
- package/dist/dist/editor/client/hooks/useWorkbox.js +52 -0
- package/dist/dist/editor/client/hooks/useWorkbox.js.map +1 -0
- package/dist/dist/editor/client/itemsRepository.d.ts +38 -0
- package/dist/dist/editor/client/itemsRepository.js +482 -0
- package/dist/dist/editor/client/itemsRepository.js.map +1 -0
- package/dist/dist/editor/client/operations.d.ts +69 -0
- package/dist/dist/editor/client/operations.js +633 -0
- package/dist/dist/editor/client/operations.js.map +1 -0
- package/dist/dist/editor/client/pageModelBuilder.d.ts +6 -0
- package/dist/dist/editor/client/pageModelBuilder.js +171 -0
- package/dist/dist/editor/client/pageModelBuilder.js.map +1 -0
- package/dist/dist/editor/client/ui/EditorChrome.d.ts +12 -0
- package/dist/dist/editor/client/ui/EditorChrome.js +30 -0
- package/dist/dist/editor/client/ui/EditorChrome.js.map +1 -0
- package/dist/dist/editor/client/ui/FullscreenControls.d.ts +7 -0
- package/dist/dist/editor/client/ui/FullscreenControls.js +21 -0
- package/dist/dist/editor/client/ui/FullscreenControls.js.map +1 -0
- package/dist/dist/editor/commands/agentCommands.d.ts +9 -0
- package/dist/dist/editor/commands/agentCommands.js +30 -0
- package/dist/dist/editor/commands/agentCommands.js.map +1 -0
- package/dist/dist/editor/commands/commands.d.ts +19 -0
- package/dist/dist/editor/commands/commands.js +2 -0
- package/dist/dist/editor/commands/commands.js.map +1 -0
- package/dist/dist/editor/commands/componentCommands.d.ts +12 -0
- package/dist/dist/editor/commands/componentCommands.js +367 -0
- package/dist/dist/editor/commands/componentCommands.js.map +1 -0
- package/dist/dist/editor/commands/createVersionCommand.d.ts +4 -0
- package/dist/dist/editor/commands/createVersionCommand.js +24 -0
- package/dist/dist/editor/commands/createVersionCommand.js.map +1 -0
- package/dist/dist/editor/commands/deleteVersionCommand.d.ts +4 -0
- package/dist/dist/editor/commands/deleteVersionCommand.js +53 -0
- package/dist/dist/editor/commands/deleteVersionCommand.js.map +1 -0
- package/dist/dist/editor/commands/itemCommands.d.ts +29 -0
- package/dist/dist/editor/commands/itemCommands.js +448 -0
- package/dist/dist/editor/commands/itemCommands.js.map +1 -0
- package/dist/dist/editor/commands/localizeItem/LocalizeItemDialog.d.ts +8 -0
- package/dist/dist/editor/commands/localizeItem/LocalizeItemDialog.js +91 -0
- package/dist/dist/editor/commands/localizeItem/LocalizeItemDialog.js.map +1 -0
- package/dist/dist/editor/commands/undo.d.ts +15 -0
- package/dist/dist/editor/commands/undo.js +29 -0
- package/dist/dist/editor/commands/undo.js.map +1 -0
- package/dist/dist/editor/componentTreeHelper.d.ts +18 -0
- package/dist/dist/editor/componentTreeHelper.js +123 -0
- package/dist/dist/editor/componentTreeHelper.js.map +1 -0
- package/dist/dist/editor/context-menu/CopyMoveMenu.d.ts +7 -0
- package/dist/dist/editor/context-menu/CopyMoveMenu.js +58 -0
- package/dist/dist/editor/context-menu/CopyMoveMenu.js.map +1 -0
- package/dist/dist/editor/context-menu/InsertMenu.d.ts +9 -0
- package/dist/dist/editor/context-menu/InsertMenu.js +229 -0
- package/dist/dist/editor/context-menu/InsertMenu.js.map +1 -0
- package/dist/dist/editor/control-center/About.d.ts +1 -0
- package/dist/dist/editor/control-center/About.js +8 -0
- package/dist/dist/editor/control-center/About.js.map +1 -0
- package/dist/dist/editor/control-center/AllAgentsPanel.d.ts +5 -0
- package/dist/dist/editor/control-center/AllAgentsPanel.js +126 -0
- package/dist/dist/editor/control-center/AllAgentsPanel.js.map +1 -0
- package/dist/dist/editor/control-center/ControlCenterMenu.d.ts +1 -0
- package/dist/dist/editor/control-center/ControlCenterMenu.js +66 -0
- package/dist/dist/editor/control-center/ControlCenterMenu.js.map +1 -0
- package/dist/dist/editor/control-center/IndexOverview.d.ts +1 -0
- package/dist/dist/editor/control-center/IndexOverview.js +323 -0
- package/dist/dist/editor/control-center/IndexOverview.js.map +1 -0
- package/dist/dist/editor/control-center/Info.d.ts +1 -0
- package/dist/dist/editor/control-center/Info.js +10 -0
- package/dist/dist/editor/control-center/Info.js.map +1 -0
- package/dist/dist/editor/control-center/LatestFeedback.d.ts +1 -0
- package/dist/dist/editor/control-center/LatestFeedback.js +136 -0
- package/dist/dist/editor/control-center/LatestFeedback.js.map +1 -0
- package/dist/dist/editor/control-center/QuotaInfo.d.ts +1 -0
- package/dist/dist/editor/control-center/QuotaInfo.js +102 -0
- package/dist/dist/editor/control-center/QuotaInfo.js.map +1 -0
- package/dist/dist/editor/control-center/Setup.d.ts +1 -0
- package/dist/dist/editor/control-center/Setup.js +174 -0
- package/dist/dist/editor/control-center/Setup.js.map +1 -0
- package/dist/dist/editor/control-center/Status.d.ts +1 -0
- package/dist/dist/editor/control-center/Status.js +79 -0
- package/dist/dist/editor/control-center/Status.js.map +1 -0
- package/dist/dist/editor/control-center/WebSocketMessages.d.ts +1 -0
- package/dist/dist/editor/control-center/WebSocketMessages.js +71 -0
- package/dist/dist/editor/control-center/WebSocketMessages.js.map +1 -0
- package/dist/dist/editor/control-center/parhelia-setup/Overview.d.ts +1 -0
- package/dist/dist/editor/control-center/parhelia-setup/Overview.js +91 -0
- package/dist/dist/editor/control-center/parhelia-setup/Overview.js.map +1 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/EmbeddingsModelSection.d.ts +2 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/EmbeddingsModelSection.js +195 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/EmbeddingsModelSection.js.map +1 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/index.d.ts +2 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/index.js +22 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/index.js.map +1 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/provider/ProviderSection.d.ts +1 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/provider/ProviderSection.js +233 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/provider/ProviderSection.js.map +1 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/required-containers/RequiredContainersList.d.ts +15 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/required-containers/RequiredContainersList.js +14 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/required-containers/RequiredContainersList.js.map +1 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/required-containers/RequiredContainersSection.d.ts +1 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/required-containers/RequiredContainersSection.js +94 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/required-containers/RequiredContainersSection.js.map +1 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/tools/GenerateToolsSection.d.ts +1 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/tools/GenerateToolsSection.js +367 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/tools/GenerateToolsSection.js.map +1 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/types.d.ts +1 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/types.js +2 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/types.js.map +1 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/utils.d.ts +5 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/utils.js +44 -0
- package/dist/dist/editor/control-center/setup-steps/AiSetupStep/utils.js.map +1 -0
- package/dist/dist/editor/control-center/setup-steps/DbSetupStep.d.ts +2 -0
- package/dist/dist/editor/control-center/setup-steps/DbSetupStep.js +46 -0
- package/dist/dist/editor/control-center/setup-steps/DbSetupStep.js.map +1 -0
- package/dist/dist/editor/control-center/setup-steps/IndexSetupStep.d.ts +2 -0
- package/dist/dist/editor/control-center/setup-steps/IndexSetupStep.js +36 -0
- package/dist/dist/editor/control-center/setup-steps/IndexSetupStep.js.map +1 -0
- package/dist/dist/editor/control-center/setup-steps/SettingsSetupStep.d.ts +2 -0
- package/dist/dist/editor/control-center/setup-steps/SettingsSetupStep.js +111 -0
- package/dist/dist/editor/control-center/setup-steps/SettingsSetupStep.js.map +1 -0
- package/dist/dist/editor/control-center/setup-steps/SetupOverview.d.ts +14 -0
- package/dist/dist/editor/control-center/setup-steps/SetupOverview.js +38 -0
- package/dist/dist/editor/control-center/setup-steps/SetupOverview.js.map +1 -0
- package/dist/dist/editor/editor-warnings/ItemLocked.d.ts +2 -0
- package/dist/dist/editor/editor-warnings/ItemLocked.js +38 -0
- package/dist/dist/editor/editor-warnings/ItemLocked.js.map +1 -0
- package/dist/dist/editor/editor-warnings/NoLanguageWriteAccess.d.ts +2 -0
- package/dist/dist/editor/editor-warnings/NoLanguageWriteAccess.js +14 -0
- package/dist/dist/editor/editor-warnings/NoLanguageWriteAccess.js.map +1 -0
- package/dist/dist/editor/editor-warnings/NoWorkflowWriteAccess.d.ts +2 -0
- package/dist/dist/editor/editor-warnings/NoWorkflowWriteAccess.js +14 -0
- package/dist/dist/editor/editor-warnings/NoWorkflowWriteAccess.js.map +1 -0
- package/dist/dist/editor/editor-warnings/NoWriteAccess.d.ts +2 -0
- package/dist/dist/editor/editor-warnings/NoWriteAccess.js +14 -0
- package/dist/dist/editor/editor-warnings/NoWriteAccess.js.map +1 -0
- package/dist/dist/editor/editor-warnings/ValidationErrors.d.ts +2 -0
- package/dist/dist/editor/editor-warnings/ValidationErrors.js +28 -0
- package/dist/dist/editor/editor-warnings/ValidationErrors.js.map +1 -0
- package/dist/dist/editor/field-types/AttachmentEditor.d.ts +9 -0
- package/dist/dist/editor/field-types/AttachmentEditor.js +68 -0
- package/dist/dist/editor/field-types/AttachmentEditor.js.map +1 -0
- package/dist/dist/editor/field-types/CheckboxEditor.d.ts +5 -0
- package/dist/dist/editor/field-types/CheckboxEditor.js +30 -0
- package/dist/dist/editor/field-types/CheckboxEditor.js.map +1 -0
- package/dist/dist/editor/field-types/DateFieldEditor.d.ts +5 -0
- package/dist/dist/editor/field-types/DateFieldEditor.js +93 -0
- package/dist/dist/editor/field-types/DateFieldEditor.js.map +1 -0
- package/dist/dist/editor/field-types/DateTimeFieldEditor.d.ts +5 -0
- package/dist/dist/editor/field-types/DateTimeFieldEditor.js +151 -0
- package/dist/dist/editor/field-types/DateTimeFieldEditor.js.map +1 -0
- package/dist/dist/editor/field-types/DropLinkEditor.d.ts +5 -0
- package/dist/dist/editor/field-types/DropLinkEditor.js +42 -0
- package/dist/dist/editor/field-types/DropLinkEditor.js.map +1 -0
- package/dist/dist/editor/field-types/DropListEditor.d.ts +5 -0
- package/dist/dist/editor/field-types/DropListEditor.js +46 -0
- package/dist/dist/editor/field-types/DropListEditor.js.map +1 -0
- package/dist/dist/editor/field-types/ImageFieldEditor.d.ts +5 -0
- package/dist/dist/editor/field-types/ImageFieldEditor.js +34 -0
- package/dist/dist/editor/field-types/ImageFieldEditor.js.map +1 -0
- package/dist/dist/editor/field-types/InternalLinkFieldEditor.d.ts +5 -0
- package/dist/dist/editor/field-types/InternalLinkFieldEditor.js +172 -0
- package/dist/dist/editor/field-types/InternalLinkFieldEditor.js.map +1 -0
- package/dist/dist/editor/field-types/LinkFieldEditor.d.ts +5 -0
- package/dist/dist/editor/field-types/LinkFieldEditor.js +62 -0
- package/dist/dist/editor/field-types/LinkFieldEditor.js.map +1 -0
- package/dist/dist/editor/field-types/MultiLineText.d.ts +7 -0
- package/dist/dist/editor/field-types/MultiLineText.js +48 -0
- package/dist/dist/editor/field-types/MultiLineText.js.map +1 -0
- package/dist/dist/editor/field-types/NameValueListEditor.d.ts +7 -0
- package/dist/dist/editor/field-types/NameValueListEditor.js +101 -0
- package/dist/dist/editor/field-types/NameValueListEditor.js.map +1 -0
- package/dist/dist/editor/field-types/PictureFieldEditor.d.ts +5 -0
- package/dist/dist/editor/field-types/PictureFieldEditor.js +58 -0
- package/dist/dist/editor/field-types/PictureFieldEditor.js.map +1 -0
- package/dist/dist/editor/field-types/RawEditor.d.ts +6 -0
- package/dist/dist/editor/field-types/RawEditor.js +31 -0
- package/dist/dist/editor/field-types/RawEditor.js.map +1 -0
- package/dist/dist/editor/field-types/ReactQuill.d.ts +125 -0
- package/dist/dist/editor/field-types/ReactQuill.js +385 -0
- package/dist/dist/editor/field-types/ReactQuill.js.map +1 -0
- package/dist/dist/editor/field-types/RichTextEditor.d.ts +7 -0
- package/dist/dist/editor/field-types/RichTextEditor.js +21 -0
- package/dist/dist/editor/field-types/RichTextEditor.js.map +1 -0
- package/dist/dist/editor/field-types/RichTextEditorComponent.d.ts +8 -0
- package/dist/dist/editor/field-types/RichTextEditorComponent.js +88 -0
- package/dist/dist/editor/field-types/RichTextEditorComponent.js.map +1 -0
- package/dist/dist/editor/field-types/SingleLineText.d.ts +7 -0
- package/dist/dist/editor/field-types/SingleLineText.js +113 -0
- package/dist/dist/editor/field-types/SingleLineText.js.map +1 -0
- package/dist/dist/editor/field-types/TreeListEditor.d.ts +5 -0
- package/dist/dist/editor/field-types/TreeListEditor.js +387 -0
- package/dist/dist/editor/field-types/TreeListEditor.js.map +1 -0
- package/dist/dist/editor/field-types/richtext/components/EditorDropdown.css +82 -0
- package/dist/dist/editor/field-types/richtext/components/EditorDropdown.d.ts +11 -0
- package/dist/dist/editor/field-types/richtext/components/EditorDropdown.js +83 -0
- package/dist/dist/editor/field-types/richtext/components/EditorDropdown.js.map +1 -0
- package/dist/dist/editor/field-types/richtext/components/ReactSlate.css +208 -0
- package/dist/dist/editor/field-types/richtext/components/ReactSlate.d.ts +5 -0
- package/dist/dist/editor/field-types/richtext/components/ReactSlate.js +607 -0
- package/dist/dist/editor/field-types/richtext/components/ReactSlate.js.map +1 -0
- package/dist/dist/editor/field-types/richtext/components/SimpleDropdown.d.ts +18 -0
- package/dist/dist/editor/field-types/richtext/components/SimpleDropdown.js +71 -0
- package/dist/dist/editor/field-types/richtext/components/SimpleDropdown.js.map +1 -0
- package/dist/dist/editor/field-types/richtext/components/SimpleRichTextEditor.css +325 -0
- package/dist/dist/editor/field-types/richtext/components/SimpleRichTextEditor.d.ts +5 -0
- package/dist/dist/editor/field-types/richtext/components/SimpleRichTextEditor.js +359 -0
- package/dist/dist/editor/field-types/richtext/components/SimpleRichTextEditor.js.map +1 -0
- package/dist/dist/editor/field-types/richtext/components/SimpleToolbar.d.ts +16 -0
- package/dist/dist/editor/field-types/richtext/components/SimpleToolbar.js +181 -0
- package/dist/dist/editor/field-types/richtext/components/SimpleToolbar.js.map +1 -0
- package/dist/dist/editor/field-types/richtext/components/SimpleToolbarButton.d.ts +9 -0
- package/dist/dist/editor/field-types/richtext/components/SimpleToolbarButton.js +14 -0
- package/dist/dist/editor/field-types/richtext/components/SimpleToolbarButton.js.map +1 -0
- package/dist/dist/editor/field-types/richtext/components/ToolbarButton.d.ts +3 -0
- package/dist/dist/editor/field-types/richtext/components/ToolbarButton.js +6 -0
- package/dist/dist/editor/field-types/richtext/components/ToolbarButton.js.map +1 -0
- package/dist/dist/editor/field-types/richtext/config/pluginFactory.d.ts +19 -0
- package/dist/dist/editor/field-types/richtext/config/pluginFactory.js +17 -0
- package/dist/dist/editor/field-types/richtext/config/pluginFactory.js.map +1 -0
- package/dist/dist/editor/field-types/richtext/contextMenuFactory.d.ts +4 -0
- package/dist/dist/editor/field-types/richtext/contextMenuFactory.js +201 -0
- package/dist/dist/editor/field-types/richtext/contextMenuFactory.js.map +1 -0
- package/dist/dist/editor/field-types/richtext/hooks/useProfileCache.d.ts +68 -0
- package/dist/dist/editor/field-types/richtext/hooks/useProfileCache.js +214 -0
- package/dist/dist/editor/field-types/richtext/hooks/useProfileCache.js.map +1 -0
- package/dist/dist/editor/field-types/richtext/hooks/useRichTextProfile.d.ts +25 -0
- package/dist/dist/editor/field-types/richtext/hooks/useRichTextProfile.js +64 -0
- package/dist/dist/editor/field-types/richtext/hooks/useRichTextProfile.js.map +1 -0
- package/dist/dist/editor/field-types/richtext/index.d.ts +6 -0
- package/dist/dist/editor/field-types/richtext/index.js +7 -0
- package/dist/dist/editor/field-types/richtext/index.js.map +1 -0
- package/dist/dist/editor/field-types/richtext/types.d.ts +288 -0
- package/dist/dist/editor/field-types/richtext/types.js +107 -0
- package/dist/dist/editor/field-types/richtext/types.js.map +1 -0
- package/dist/dist/editor/field-types/richtext/utils/conversion.d.ts +7 -0
- package/dist/dist/editor/field-types/richtext/utils/conversion.js +762 -0
- package/dist/dist/editor/field-types/richtext/utils/conversion.js.map +1 -0
- package/dist/dist/editor/field-types/richtext/utils/plugins.d.ts +170 -0
- package/dist/dist/editor/field-types/richtext/utils/plugins.js +490 -0
- package/dist/dist/editor/field-types/richtext/utils/plugins.js.map +1 -0
- package/dist/dist/editor/field-types/richtext/utils/profileMapper.d.ts +38 -0
- package/dist/dist/editor/field-types/richtext/utils/profileMapper.js +386 -0
- package/dist/dist/editor/field-types/richtext/utils/profileMapper.js.map +1 -0
- package/dist/dist/editor/field-types/richtext/utils/profileServiceCache.d.ts +37 -0
- package/dist/dist/editor/field-types/richtext/utils/profileServiceCache.js +119 -0
- package/dist/dist/editor/field-types/richtext/utils/profileServiceCache.js.map +1 -0
- package/dist/dist/editor/fieldTypes.d.ts +129 -0
- package/dist/dist/editor/fieldTypes.js +2 -0
- package/dist/dist/editor/fieldTypes.js.map +1 -0
- package/dist/dist/editor/hooks/useEditorSettings.d.ts +17 -0
- package/dist/dist/editor/hooks/useEditorSettings.js +61 -0
- package/dist/dist/editor/hooks/useEditorSettings.js.map +1 -0
- package/dist/dist/editor/hooks/useParheliaSettings.d.ts +17 -0
- package/dist/dist/editor/hooks/useParheliaSettings.js +61 -0
- package/dist/dist/editor/hooks/useParheliaSettings.js.map +1 -0
- package/dist/dist/editor/media-selector/AiImageSearch.d.ts +4 -0
- package/dist/dist/editor/media-selector/AiImageSearch.js +164 -0
- package/dist/dist/editor/media-selector/AiImageSearch.js.map +1 -0
- package/dist/dist/editor/media-selector/AiImageSearchPrompt.d.ts +3 -0
- package/dist/dist/editor/media-selector/AiImageSearchPrompt.js +57 -0
- package/dist/dist/editor/media-selector/AiImageSearchPrompt.js.map +1 -0
- package/dist/dist/editor/media-selector/MediaFolderBrowser.d.ts +5 -0
- package/dist/dist/editor/media-selector/MediaFolderBrowser.js +182 -0
- package/dist/dist/editor/media-selector/MediaFolderBrowser.js.map +1 -0
- package/dist/dist/editor/media-selector/MediaSelector.d.ts +9 -0
- package/dist/dist/editor/media-selector/MediaSelector.js +8 -0
- package/dist/dist/editor/media-selector/MediaSelector.js.map +1 -0
- package/dist/dist/editor/media-selector/Preview.d.ts +4 -0
- package/dist/dist/editor/media-selector/Preview.js +19 -0
- package/dist/dist/editor/media-selector/Preview.js.map +1 -0
- package/dist/dist/editor/media-selector/Thumbnails.d.ts +8 -0
- package/dist/dist/editor/media-selector/Thumbnails.js +10 -0
- package/dist/dist/editor/media-selector/Thumbnails.js.map +1 -0
- package/dist/dist/editor/media-selector/TreeSelector.d.ts +7 -0
- package/dist/dist/editor/media-selector/TreeSelector.js +183 -0
- package/dist/dist/editor/media-selector/TreeSelector.js.map +1 -0
- package/dist/dist/editor/media-selector/UploadZone.d.ts +4 -0
- package/dist/dist/editor/media-selector/UploadZone.js +81 -0
- package/dist/dist/editor/media-selector/UploadZone.js.map +1 -0
- package/dist/dist/editor/media-selector/index.d.ts +8 -0
- package/dist/dist/editor/media-selector/index.js +9 -0
- package/dist/dist/editor/media-selector/index.js.map +1 -0
- package/dist/dist/editor/menubar/ActiveUsers.d.ts +1 -0
- package/dist/dist/editor/menubar/ActiveUsers.js +120 -0
- package/dist/dist/editor/menubar/ActiveUsers.js.map +1 -0
- package/dist/dist/editor/menubar/ApproveAndPublish.d.ts +1 -0
- package/dist/dist/editor/menubar/ApproveAndPublish.js +13 -0
- package/dist/dist/editor/menubar/ApproveAndPublish.js.map +1 -0
- package/dist/dist/editor/menubar/FavoritesControls.d.ts +8 -0
- package/dist/dist/editor/menubar/FavoritesControls.js +217 -0
- package/dist/dist/editor/menubar/FavoritesControls.js.map +1 -0
- package/dist/dist/editor/menubar/GenericToolbar.d.ts +11 -0
- package/dist/dist/editor/menubar/GenericToolbar.js +10 -0
- package/dist/dist/editor/menubar/GenericToolbar.js.map +1 -0
- package/dist/dist/editor/menubar/ItemActionsMenu.d.ts +3 -0
- package/dist/dist/editor/menubar/ItemActionsMenu.js +23 -0
- package/dist/dist/editor/menubar/ItemActionsMenu.js.map +1 -0
- package/dist/dist/editor/menubar/ItemLanguageVersion.d.ts +1 -0
- package/dist/dist/editor/menubar/ItemLanguageVersion.js +54 -0
- package/dist/dist/editor/menubar/ItemLanguageVersion.js.map +1 -0
- package/dist/dist/editor/menubar/ItemToolbar.d.ts +1 -0
- package/dist/dist/editor/menubar/ItemToolbar.js +11 -0
- package/dist/dist/editor/menubar/ItemToolbar.js.map +1 -0
- package/dist/dist/editor/menubar/NavButtons.d.ts +1 -0
- package/dist/dist/editor/menubar/NavButtons.js +40 -0
- package/dist/dist/editor/menubar/NavButtons.js.map +1 -0
- package/dist/dist/editor/menubar/PageSelector.d.ts +4 -0
- package/dist/dist/editor/menubar/PageSelector.js +152 -0
- package/dist/dist/editor/menubar/PageSelector.js.map +1 -0
- package/dist/dist/editor/menubar/Separator.d.ts +3 -0
- package/dist/dist/editor/menubar/Separator.js +6 -0
- package/dist/dist/editor/menubar/Separator.js.map +1 -0
- package/dist/dist/editor/menubar/SiteInfo.d.ts +1 -0
- package/dist/dist/editor/menubar/SiteInfo.js +24 -0
- package/dist/dist/editor/menubar/SiteInfo.js.map +1 -0
- package/dist/dist/editor/menubar/ToolbarFactory.d.ts +2 -0
- package/dist/dist/editor/menubar/ToolbarFactory.js +55 -0
- package/dist/dist/editor/menubar/ToolbarFactory.js.map +1 -0
- package/dist/dist/editor/menubar/User.d.ts +4 -0
- package/dist/dist/editor/menubar/User.js +18 -0
- package/dist/dist/editor/menubar/User.js.map +1 -0
- package/dist/dist/editor/menubar/VersionSelector.d.ts +10 -0
- package/dist/dist/editor/menubar/VersionSelector.js +53 -0
- package/dist/dist/editor/menubar/VersionSelector.js.map +1 -0
- package/dist/dist/editor/menubar/WorkflowButton.d.ts +1 -0
- package/dist/dist/editor/menubar/WorkflowButton.js +93 -0
- package/dist/dist/editor/menubar/WorkflowButton.js.map +1 -0
- package/dist/dist/editor/menubar/toolbar-sections/CompareControls.d.ts +1 -0
- package/dist/dist/editor/menubar/toolbar-sections/CompareControls.js +11 -0
- package/dist/dist/editor/menubar/toolbar-sections/CompareControls.js.map +1 -0
- package/dist/dist/editor/menubar/toolbar-sections/EditControls.d.ts +7 -0
- package/dist/dist/editor/menubar/toolbar-sections/EditControls.js +15 -0
- package/dist/dist/editor/menubar/toolbar-sections/EditControls.js.map +1 -0
- package/dist/dist/editor/menubar/toolbar-sections/InsertControls.d.ts +1 -0
- package/dist/dist/editor/menubar/toolbar-sections/InsertControls.js +15 -0
- package/dist/dist/editor/menubar/toolbar-sections/InsertControls.js.map +1 -0
- package/dist/dist/editor/menubar/toolbar-sections/ReviewCommands.d.ts +1 -0
- package/dist/dist/editor/menubar/toolbar-sections/ReviewCommands.js +41 -0
- package/dist/dist/editor/menubar/toolbar-sections/ReviewCommands.js.map +1 -0
- package/dist/dist/editor/menubar/toolbar-sections/UtilityControls.d.ts +1 -0
- package/dist/dist/editor/menubar/toolbar-sections/UtilityControls.js +17 -0
- package/dist/dist/editor/menubar/toolbar-sections/UtilityControls.js.map +1 -0
- package/dist/dist/editor/menubar/toolbar-sections/ViewportControls.d.ts +1 -0
- package/dist/dist/editor/menubar/toolbar-sections/ViewportControls.js +21 -0
- package/dist/dist/editor/menubar/toolbar-sections/ViewportControls.js.map +1 -0
- package/dist/dist/editor/menubar/toolbar-sections/index.d.ts +6 -0
- package/dist/dist/editor/menubar/toolbar-sections/index.js +7 -0
- package/dist/dist/editor/menubar/toolbar-sections/index.js.map +1 -0
- package/dist/dist/editor/page-editor-chrome/CommentHighlighting.d.ts +6 -0
- package/dist/dist/editor/page-editor-chrome/CommentHighlighting.js +270 -0
- package/dist/dist/editor/page-editor-chrome/CommentHighlighting.js.map +1 -0
- package/dist/dist/editor/page-editor-chrome/CommentHighlightings.d.ts +4 -0
- package/dist/dist/editor/page-editor-chrome/CommentHighlightings.js +15 -0
- package/dist/dist/editor/page-editor-chrome/CommentHighlightings.js.map +1 -0
- package/dist/dist/editor/page-editor-chrome/FieldActionIndicator.d.ts +4 -0
- package/dist/dist/editor/page-editor-chrome/FieldActionIndicator.js +35 -0
- package/dist/dist/editor/page-editor-chrome/FieldActionIndicator.js.map +1 -0
- package/dist/dist/editor/page-editor-chrome/FieldActionIndicators.d.ts +1 -0
- package/dist/dist/editor/page-editor-chrome/FieldActionIndicators.js +13 -0
- package/dist/dist/editor/page-editor-chrome/FieldActionIndicators.js.map +1 -0
- package/dist/dist/editor/page-editor-chrome/FieldEditedIndicator.d.ts +8 -0
- package/dist/dist/editor/page-editor-chrome/FieldEditedIndicator.js +26 -0
- package/dist/dist/editor/page-editor-chrome/FieldEditedIndicator.js.map +1 -0
- package/dist/dist/editor/page-editor-chrome/FieldEditedIndicators.d.ts +6 -0
- package/dist/dist/editor/page-editor-chrome/FieldEditedIndicators.js +14 -0
- package/dist/dist/editor/page-editor-chrome/FieldEditedIndicators.js.map +1 -0
- package/dist/dist/editor/page-editor-chrome/FrameMenu.d.ts +7 -0
- package/dist/dist/editor/page-editor-chrome/FrameMenu.js +346 -0
- package/dist/dist/editor/page-editor-chrome/FrameMenu.js.map +1 -0
- package/dist/dist/editor/page-editor-chrome/FrameMenus.d.ts +5 -0
- package/dist/dist/editor/page-editor-chrome/FrameMenus.js +22 -0
- package/dist/dist/editor/page-editor-chrome/FrameMenus.js.map +1 -0
- package/dist/dist/editor/page-editor-chrome/InlineEditor.d.ts +5 -0
- package/dist/dist/editor/page-editor-chrome/InlineEditor.js +704 -0
- package/dist/dist/editor/page-editor-chrome/InlineEditor.js.map +1 -0
- package/dist/dist/editor/page-editor-chrome/LockedFieldIndicator.d.ts +1 -0
- package/dist/dist/editor/page-editor-chrome/LockedFieldIndicator.js +33 -0
- package/dist/dist/editor/page-editor-chrome/LockedFieldIndicator.js.map +1 -0
- package/dist/dist/editor/page-editor-chrome/NoLayout.d.ts +1 -0
- package/dist/dist/editor/page-editor-chrome/NoLayout.js +19 -0
- package/dist/dist/editor/page-editor-chrome/NoLayout.js.map +1 -0
- package/dist/dist/editor/page-editor-chrome/PageEditorChrome.d.ts +6 -0
- package/dist/dist/editor/page-editor-chrome/PageEditorChrome.js +64 -0
- package/dist/dist/editor/page-editor-chrome/PageEditorChrome.js.map +1 -0
- package/dist/dist/editor/page-editor-chrome/PictureEditorOverlay.d.ts +1 -0
- package/dist/dist/editor/page-editor-chrome/PictureEditorOverlay.js +190 -0
- package/dist/dist/editor/page-editor-chrome/PictureEditorOverlay.js.map +1 -0
- package/dist/dist/editor/page-editor-chrome/PlaceholderDropZone.d.ts +18 -0
- package/dist/dist/editor/page-editor-chrome/PlaceholderDropZone.js +122 -0
- package/dist/dist/editor/page-editor-chrome/PlaceholderDropZone.js.map +1 -0
- package/dist/dist/editor/page-editor-chrome/PlaceholderDropZones.d.ts +5 -0
- package/dist/dist/editor/page-editor-chrome/PlaceholderDropZones.js +289 -0
- package/dist/dist/editor/page-editor-chrome/PlaceholderDropZones.js.map +1 -0
- package/dist/dist/editor/page-editor-chrome/SuggestionHighlighting.d.ts +6 -0
- package/dist/dist/editor/page-editor-chrome/SuggestionHighlighting.js +224 -0
- package/dist/dist/editor/page-editor-chrome/SuggestionHighlighting.js.map +1 -0
- package/dist/dist/editor/page-editor-chrome/SuggestionHighlightings.d.ts +4 -0
- package/dist/dist/editor/page-editor-chrome/SuggestionHighlightings.js +16 -0
- package/dist/dist/editor/page-editor-chrome/SuggestionHighlightings.js.map +1 -0
- package/dist/dist/editor/page-editor-chrome/useInlineAICompletion.d.ts +7 -0
- package/dist/dist/editor/page-editor-chrome/useInlineAICompletion.js +699 -0
- package/dist/dist/editor/page-editor-chrome/useInlineAICompletion.js.map +1 -0
- package/dist/dist/editor/page-viewer/DeviceToolbar.d.ts +6 -0
- package/dist/dist/editor/page-viewer/DeviceToolbar.js +21 -0
- package/dist/dist/editor/page-viewer/DeviceToolbar.js.map +1 -0
- package/dist/dist/editor/page-viewer/EditorForm.d.ts +8 -0
- package/dist/dist/editor/page-viewer/EditorForm.js +264 -0
- package/dist/dist/editor/page-viewer/EditorForm.js.map +1 -0
- package/dist/dist/editor/page-viewer/EditorFormPopup.d.ts +11 -0
- package/dist/dist/editor/page-viewer/EditorFormPopup.js +41 -0
- package/dist/dist/editor/page-viewer/EditorFormPopup.js.map +1 -0
- package/dist/dist/editor/page-viewer/MiniMap.d.ts +9 -0
- package/dist/dist/editor/page-viewer/MiniMap.js +234 -0
- package/dist/dist/editor/page-viewer/MiniMap.js.map +1 -0
- package/dist/dist/editor/page-viewer/PageViewer.d.ts +10 -0
- package/dist/dist/editor/page-viewer/PageViewer.js +67 -0
- package/dist/dist/editor/page-viewer/PageViewer.js.map +1 -0
- package/dist/dist/editor/page-viewer/PageViewerFrame.d.ts +11 -0
- package/dist/dist/editor/page-viewer/PageViewerFrame.js +846 -0
- package/dist/dist/editor/page-viewer/PageViewerFrame.js.map +1 -0
- package/dist/dist/editor/page-viewer/pageModelSkeletonBuilder.d.ts +3 -0
- package/dist/dist/editor/page-viewer/pageModelSkeletonBuilder.js +349 -0
- package/dist/dist/editor/page-viewer/pageModelSkeletonBuilder.js.map +1 -0
- package/dist/dist/editor/page-viewer/pageViewContext.d.ts +40 -0
- package/dist/dist/editor/page-viewer/pageViewContext.js +155 -0
- package/dist/dist/editor/page-viewer/pageViewContext.js.map +1 -0
- package/dist/dist/editor/pageModel.d.ts +223 -0
- package/dist/dist/editor/pageModel.js +2 -0
- package/dist/dist/editor/pageModel.js.map +1 -0
- package/dist/dist/editor/picture-shared.d.ts +16 -0
- package/dist/dist/editor/picture-shared.js +25 -0
- package/dist/dist/editor/picture-shared.js.map +1 -0
- package/dist/dist/editor/reviews/Comment.d.ts +8 -0
- package/dist/dist/editor/reviews/Comment.js +162 -0
- package/dist/dist/editor/reviews/Comment.js.map +1 -0
- package/dist/dist/editor/reviews/CommentDisplayPopover.d.ts +9 -0
- package/dist/dist/editor/reviews/CommentDisplayPopover.js +104 -0
- package/dist/dist/editor/reviews/CommentDisplayPopover.js.map +1 -0
- package/dist/dist/editor/reviews/CommentEditor.d.ts +20 -0
- package/dist/dist/editor/reviews/CommentEditor.js +57 -0
- package/dist/dist/editor/reviews/CommentEditor.js.map +1 -0
- package/dist/dist/editor/reviews/CommentPopover.d.ts +22 -0
- package/dist/dist/editor/reviews/CommentPopover.js +145 -0
- package/dist/dist/editor/reviews/CommentPopover.js.map +1 -0
- package/dist/dist/editor/reviews/CommentView.d.ts +21 -0
- package/dist/dist/editor/reviews/CommentView.js +52 -0
- package/dist/dist/editor/reviews/CommentView.js.map +1 -0
- package/dist/dist/editor/reviews/Comments.d.ts +3 -0
- package/dist/dist/editor/reviews/Comments.js +118 -0
- package/dist/dist/editor/reviews/Comments.js.map +1 -0
- package/dist/dist/editor/reviews/CreateReviewDialog.d.ts +9 -0
- package/dist/dist/editor/reviews/CreateReviewDialog.js +454 -0
- package/dist/dist/editor/reviews/CreateReviewDialog.js.map +1 -0
- package/dist/dist/editor/reviews/DecisionsMatrix.d.ts +29 -0
- package/dist/dist/editor/reviews/DecisionsMatrix.js +739 -0
- package/dist/dist/editor/reviews/DecisionsMatrix.js.map +1 -0
- package/dist/dist/editor/reviews/DiffView.d.ts +17 -0
- package/dist/dist/editor/reviews/DiffView.js +57 -0
- package/dist/dist/editor/reviews/DiffView.js.map +1 -0
- package/dist/dist/editor/reviews/EditReviewSettingsDialog.d.ts +20 -0
- package/dist/dist/editor/reviews/EditReviewSettingsDialog.js +208 -0
- package/dist/dist/editor/reviews/EditReviewSettingsDialog.js.map +1 -0
- package/dist/dist/editor/reviews/ItemTreeSelector.d.ts +9 -0
- package/dist/dist/editor/reviews/ItemTreeSelector.js +43 -0
- package/dist/dist/editor/reviews/ItemTreeSelector.js.map +1 -0
- package/dist/dist/editor/reviews/MultiReviewManager.d.ts +1 -0
- package/dist/dist/editor/reviews/MultiReviewManager.js +50 -0
- package/dist/dist/editor/reviews/MultiReviewManager.js.map +1 -0
- package/dist/dist/editor/reviews/PagesPanel.d.ts +21 -0
- package/dist/dist/editor/reviews/PagesPanel.js +124 -0
- package/dist/dist/editor/reviews/PagesPanel.js.map +1 -0
- package/dist/dist/editor/reviews/PreconfiguredReviewerSelector.d.ts +9 -0
- package/dist/dist/editor/reviews/PreconfiguredReviewerSelector.js +55 -0
- package/dist/dist/editor/reviews/PreconfiguredReviewerSelector.js.map +1 -0
- package/dist/dist/editor/reviews/PreviewInfo.d.ts +1 -0
- package/dist/dist/editor/reviews/PreviewInfo.js +12 -0
- package/dist/dist/editor/reviews/PreviewInfo.js.map +1 -0
- package/dist/dist/editor/reviews/ReviewDetail.d.ts +8 -0
- package/dist/dist/editor/reviews/ReviewDetail.js +189 -0
- package/dist/dist/editor/reviews/ReviewDetail.js.map +1 -0
- package/dist/dist/editor/reviews/ReviewersPanel.d.ts +14 -0
- package/dist/dist/editor/reviews/ReviewersPanel.js +216 -0
- package/dist/dist/editor/reviews/ReviewersPanel.js.map +1 -0
- package/dist/dist/editor/reviews/Reviews.d.ts +1 -0
- package/dist/dist/editor/reviews/Reviews.js +6 -0
- package/dist/dist/editor/reviews/Reviews.js.map +1 -0
- package/dist/dist/editor/reviews/ReviewsList.d.ts +11 -0
- package/dist/dist/editor/reviews/ReviewsList.js +134 -0
- package/dist/dist/editor/reviews/ReviewsList.js.map +1 -0
- package/dist/dist/editor/reviews/SuggestedEdit.d.ts +4 -0
- package/dist/dist/editor/reviews/SuggestedEdit.js +200 -0
- package/dist/dist/editor/reviews/SuggestedEdit.js.map +1 -0
- package/dist/dist/editor/reviews/SuggestionDisplayPopover.d.ts +9 -0
- package/dist/dist/editor/reviews/SuggestionDisplayPopover.js +204 -0
- package/dist/dist/editor/reviews/SuggestionDisplayPopover.js.map +1 -0
- package/dist/dist/editor/reviews/commentAi.d.ts +7 -0
- package/dist/dist/editor/reviews/commentAi.js +100 -0
- package/dist/dist/editor/reviews/commentAi.js.map +1 -0
- package/dist/dist/editor/reviews/reviewCommands.d.ts +3 -0
- package/dist/dist/editor/reviews/reviewCommands.js +38 -0
- package/dist/dist/editor/reviews/reviewCommands.js.map +1 -0
- package/dist/dist/editor/reviews/useMultiReview.d.ts +42 -0
- package/dist/dist/editor/reviews/useMultiReview.js +377 -0
- package/dist/dist/editor/reviews/useMultiReview.js.map +1 -0
- package/dist/dist/editor/reviews/useReviews.d.ts +12 -0
- package/dist/dist/editor/reviews/useReviews.js +43 -0
- package/dist/dist/editor/reviews/useReviews.js.map +1 -0
- package/dist/dist/editor/services/agentService.d.ts +368 -0
- package/dist/dist/editor/services/agentService.js +721 -0
- package/dist/dist/editor/services/agentService.js.map +1 -0
- package/dist/dist/editor/services/aiService.d.ts +111 -0
- package/dist/dist/editor/services/aiService.js +294 -0
- package/dist/dist/editor/services/aiService.js.map +1 -0
- package/dist/dist/editor/services/componentDesignerService.d.ts +46 -0
- package/dist/dist/editor/services/componentDesignerService.js +72 -0
- package/dist/dist/editor/services/componentDesignerService.js.map +1 -0
- package/dist/dist/editor/services/contentService.d.ts +79 -0
- package/dist/dist/editor/services/contentService.js +127 -0
- package/dist/dist/editor/services/contentService.js.map +1 -0
- package/dist/dist/editor/services/contextService.d.ts +26 -0
- package/dist/dist/editor/services/contextService.js +103 -0
- package/dist/dist/editor/services/contextService.js.map +1 -0
- package/dist/dist/editor/services/editService.d.ts +66 -0
- package/dist/dist/editor/services/editService.js +325 -0
- package/dist/dist/editor/services/editService.js.map +1 -0
- package/dist/dist/editor/services/favouritesService.d.ts +47 -0
- package/dist/dist/editor/services/favouritesService.js +28 -0
- package/dist/dist/editor/services/favouritesService.js.map +1 -0
- package/dist/dist/editor/services/iconService.d.ts +8 -0
- package/dist/dist/editor/services/iconService.js +6 -0
- package/dist/dist/editor/services/iconService.js.map +1 -0
- package/dist/dist/editor/services/indexService.d.ts +13 -0
- package/dist/dist/editor/services/indexService.js +45 -0
- package/dist/dist/editor/services/indexService.js.map +1 -0
- package/dist/dist/editor/services/reviewsService.d.ts +53 -0
- package/dist/dist/editor/services/reviewsService.js +130 -0
- package/dist/dist/editor/services/reviewsService.js.map +1 -0
- package/dist/dist/editor/services/searchService.d.ts +17 -0
- package/dist/dist/editor/services/searchService.js +25 -0
- package/dist/dist/editor/services/searchService.js.map +1 -0
- package/dist/dist/editor/services/serviceHelper.d.ts +10 -0
- package/dist/dist/editor/services/serviceHelper.js +118 -0
- package/dist/dist/editor/services/serviceHelper.js.map +1 -0
- package/dist/dist/editor/services/setupService.d.ts +30 -0
- package/dist/dist/editor/services/setupService.js +17 -0
- package/dist/dist/editor/services/setupService.js.map +1 -0
- package/dist/dist/editor/services/suggestedEditsService.d.ts +18 -0
- package/dist/dist/editor/services/suggestedEditsService.js +44 -0
- package/dist/dist/editor/services/suggestedEditsService.js.map +1 -0
- package/dist/dist/editor/services/systemService.d.ts +4 -0
- package/dist/dist/editor/services/systemService.js +11 -0
- package/dist/dist/editor/services/systemService.js.map +1 -0
- package/dist/dist/editor/services-server/api.d.ts +19 -0
- package/dist/dist/editor/services-server/api.js +111 -0
- package/dist/dist/editor/services-server/api.js.map +1 -0
- package/dist/dist/editor/services-server/graphQL.d.ts +29 -0
- package/dist/dist/editor/services-server/graphQL.js +53 -0
- package/dist/dist/editor/services-server/graphQL.js.map +1 -0
- package/dist/dist/editor/sidebar/Completions.d.ts +1 -0
- package/dist/dist/editor/sidebar/Completions.js +55 -0
- package/dist/dist/editor/sidebar/Completions.js.map +1 -0
- package/dist/dist/editor/sidebar/ComponentPalette.d.ts +1 -0
- package/dist/dist/editor/sidebar/ComponentPalette.js +86 -0
- package/dist/dist/editor/sidebar/ComponentPalette.js.map +1 -0
- package/dist/dist/editor/sidebar/ComponentTree.d.ts +1 -0
- package/dist/dist/editor/sidebar/ComponentTree.js +691 -0
- package/dist/dist/editor/sidebar/ComponentTree.js.map +1 -0
- package/dist/dist/editor/sidebar/Debug.d.ts +1 -0
- package/dist/dist/editor/sidebar/Debug.js +71 -0
- package/dist/dist/editor/sidebar/Debug.js.map +1 -0
- package/dist/dist/editor/sidebar/DictionaryEditor.d.ts +1 -0
- package/dist/dist/editor/sidebar/DictionaryEditor.js +158 -0
- package/dist/dist/editor/sidebar/DictionaryEditor.js.map +1 -0
- package/dist/dist/editor/sidebar/Divider.d.ts +6 -0
- package/dist/dist/editor/sidebar/Divider.js +6 -0
- package/dist/dist/editor/sidebar/Divider.js.map +1 -0
- package/dist/dist/editor/sidebar/EditHistory.d.ts +1 -0
- package/dist/dist/editor/sidebar/EditHistory.js +80 -0
- package/dist/dist/editor/sidebar/EditHistory.js.map +1 -0
- package/dist/dist/editor/sidebar/GraphQL.d.ts +2 -0
- package/dist/dist/editor/sidebar/GraphQL.js +234 -0
- package/dist/dist/editor/sidebar/GraphQL.js.map +1 -0
- package/dist/dist/editor/sidebar/Insert.d.ts +1 -0
- package/dist/dist/editor/sidebar/Insert.js +22 -0
- package/dist/dist/editor/sidebar/Insert.js.map +1 -0
- package/dist/dist/editor/sidebar/LeftToolbar.d.ts +1 -0
- package/dist/dist/editor/sidebar/LeftToolbar.js +16 -0
- package/dist/dist/editor/sidebar/LeftToolbar.js.map +1 -0
- package/dist/dist/editor/sidebar/MainContentTree.d.ts +5 -0
- package/dist/dist/editor/sidebar/MainContentTree.js +70 -0
- package/dist/dist/editor/sidebar/MainContentTree.js.map +1 -0
- package/dist/dist/editor/sidebar/Performance.d.ts +1 -0
- package/dist/dist/editor/sidebar/Performance.js +32 -0
- package/dist/dist/editor/sidebar/Performance.js.map +1 -0
- package/dist/dist/editor/sidebar/SEOInfo.d.ts +1 -0
- package/dist/dist/editor/sidebar/SEOInfo.js +158 -0
- package/dist/dist/editor/sidebar/SEOInfo.js.map +1 -0
- package/dist/dist/editor/sidebar/Sessions.d.ts +1 -0
- package/dist/dist/editor/sidebar/Sessions.js +29 -0
- package/dist/dist/editor/sidebar/Sessions.js.map +1 -0
- package/dist/dist/editor/sidebar/Sidebar.d.ts +1 -0
- package/dist/dist/editor/sidebar/Sidebar.js +13 -0
- package/dist/dist/editor/sidebar/Sidebar.js.map +1 -0
- package/dist/dist/editor/sidebar/SidebarView.d.ts +13 -0
- package/dist/dist/editor/sidebar/SidebarView.js +53 -0
- package/dist/dist/editor/sidebar/SidebarView.js.map +1 -0
- package/dist/dist/editor/sidebar/Validation.d.ts +1 -0
- package/dist/dist/editor/sidebar/Validation.js +51 -0
- package/dist/dist/editor/sidebar/Validation.js.map +1 -0
- package/dist/dist/editor/sidebar/ViewSelector.d.ts +4 -0
- package/dist/dist/editor/sidebar/ViewSelector.js +191 -0
- package/dist/dist/editor/sidebar/ViewSelector.js.map +1 -0
- package/dist/dist/editor/sidebar/Workbox.d.ts +1 -0
- package/dist/dist/editor/sidebar/Workbox.js +79 -0
- package/dist/dist/editor/sidebar/Workbox.js.map +1 -0
- package/dist/dist/editor/ui/CenteredMessage.d.ts +3 -0
- package/dist/dist/editor/ui/CenteredMessage.js +5 -0
- package/dist/dist/editor/ui/CenteredMessage.js.map +1 -0
- package/dist/dist/editor/ui/CopyMoveTargetSelectorDialog.d.ts +10 -0
- package/dist/dist/editor/ui/CopyMoveTargetSelectorDialog.js +38 -0
- package/dist/dist/editor/ui/CopyMoveTargetSelectorDialog.js.map +1 -0
- package/dist/dist/editor/ui/DialogButtons.d.ts +4 -0
- package/dist/dist/editor/ui/DialogButtons.js +6 -0
- package/dist/dist/editor/ui/DialogButtons.js.map +1 -0
- package/dist/dist/editor/ui/DragPreview.d.ts +14 -0
- package/dist/dist/editor/ui/DragPreview.js +33 -0
- package/dist/dist/editor/ui/DragPreview.js.map +1 -0
- package/dist/dist/editor/ui/IconSelectorDialog.d.ts +5 -0
- package/dist/dist/editor/ui/IconSelectorDialog.js +239 -0
- package/dist/dist/editor/ui/IconSelectorDialog.js.map +1 -0
- package/dist/dist/editor/ui/Icons.d.ts +74 -0
- package/dist/dist/editor/ui/Icons.js +106 -0
- package/dist/dist/editor/ui/Icons.js.map +1 -0
- package/dist/dist/editor/ui/ItemList.d.ts +16 -0
- package/dist/dist/editor/ui/ItemList.js +19 -0
- package/dist/dist/editor/ui/ItemList.js.map +1 -0
- package/dist/dist/editor/ui/ItemNameDialogNew.d.ts +10 -0
- package/dist/dist/editor/ui/ItemNameDialogNew.js +82 -0
- package/dist/dist/editor/ui/ItemNameDialogNew.js.map +1 -0
- package/dist/dist/editor/ui/ItemSearch.d.ts +25 -0
- package/dist/dist/editor/ui/ItemSearch.js +92 -0
- package/dist/dist/editor/ui/ItemSearch.js.map +1 -0
- package/dist/dist/editor/ui/PerfectTree.d.ts +78 -0
- package/dist/dist/editor/ui/PerfectTree.js +860 -0
- package/dist/dist/editor/ui/PerfectTree.js.map +1 -0
- package/dist/dist/editor/ui/Section.d.ts +4 -0
- package/dist/dist/editor/ui/Section.js +12 -0
- package/dist/dist/editor/ui/Section.js.map +1 -0
- package/dist/dist/editor/ui/SimpleIconButton.d.ts +14 -0
- package/dist/dist/editor/ui/SimpleIconButton.js +15 -0
- package/dist/dist/editor/ui/SimpleIconButton.js.map +1 -0
- package/dist/dist/editor/ui/SimpleMenu.d.ts +6 -0
- package/dist/dist/editor/ui/SimpleMenu.js +7 -0
- package/dist/dist/editor/ui/SimpleMenu.js.map +1 -0
- package/dist/dist/editor/ui/SimpleTable.d.ts +14 -0
- package/dist/dist/editor/ui/SimpleTable.js +9 -0
- package/dist/dist/editor/ui/SimpleTable.js.map +1 -0
- package/dist/dist/editor/ui/SimpleTabs.d.ts +16 -0
- package/dist/dist/editor/ui/SimpleTabs.js +20 -0
- package/dist/dist/editor/ui/SimpleTabs.js.map +1 -0
- package/dist/dist/editor/ui/SimpleToolbar.d.ts +3 -0
- package/dist/dist/editor/ui/SimpleToolbar.js +5 -0
- package/dist/dist/editor/ui/SimpleToolbar.js.map +1 -0
- package/dist/dist/editor/ui/Spinner.d.ts +4 -0
- package/dist/dist/editor/ui/Spinner.js +18 -0
- package/dist/dist/editor/ui/Spinner.js.map +1 -0
- package/dist/dist/editor/ui/Splitter.d.ts +22 -0
- package/dist/dist/editor/ui/Splitter.js +443 -0
- package/dist/dist/editor/ui/Splitter.js.map +1 -0
- package/dist/dist/editor/ui/TemplateSelectorDialog.d.ts +8 -0
- package/dist/dist/editor/ui/TemplateSelectorDialog.js +138 -0
- package/dist/dist/editor/ui/TemplateSelectorDialog.js.map +1 -0
- package/dist/dist/editor/ui/Toolbar.d.ts +3 -0
- package/dist/dist/editor/ui/Toolbar.js +5 -0
- package/dist/dist/editor/ui/Toolbar.js.map +1 -0
- package/dist/dist/editor/utils/id-helper.d.ts +1 -0
- package/dist/dist/editor/utils/id-helper.js +5 -0
- package/dist/dist/editor/utils/id-helper.js.map +1 -0
- package/dist/dist/editor/utils/insertOptions.d.ts +3 -0
- package/dist/dist/editor/utils/insertOptions.js +43 -0
- package/dist/dist/editor/utils/insertOptions.js.map +1 -0
- package/dist/dist/editor/utils/itemConverters.d.ts +3 -0
- package/dist/dist/editor/utils/itemConverters.js +53 -0
- package/dist/dist/editor/utils/itemConverters.js.map +1 -0
- package/dist/dist/editor/utils/itemutils.d.ts +3 -0
- package/dist/dist/editor/utils/itemutils.js +24 -0
- package/dist/dist/editor/utils/itemutils.js.map +1 -0
- package/dist/dist/editor/utils/jsonCleaner.d.ts +8 -0
- package/dist/dist/editor/utils/jsonCleaner.js +76 -0
- package/dist/dist/editor/utils/jsonCleaner.js.map +1 -0
- package/dist/dist/editor/utils/keyboardNavigation.d.ts +34 -0
- package/dist/dist/editor/utils/keyboardNavigation.js +237 -0
- package/dist/dist/editor/utils/keyboardNavigation.js.map +1 -0
- package/dist/dist/editor/utils/urlUtils.d.ts +9 -0
- package/dist/dist/editor/utils/urlUtils.js +25 -0
- package/dist/dist/editor/utils/urlUtils.js.map +1 -0
- package/dist/dist/editor/utils/useMemoDebug.d.ts +1 -0
- package/dist/dist/editor/utils/useMemoDebug.js +18 -0
- package/dist/dist/editor/utils/useMemoDebug.js.map +1 -0
- package/dist/dist/editor/utils.d.ts +65 -0
- package/dist/dist/editor/utils.js +488 -0
- package/dist/dist/editor/utils.js.map +1 -0
- package/dist/dist/editor/views/CompareView.d.ts +1 -0
- package/dist/dist/editor/views/CompareView.js +148 -0
- package/dist/dist/editor/views/CompareView.js.map +1 -0
- package/dist/dist/editor/views/EditView.d.ts +1 -0
- package/dist/dist/editor/views/EditView.js +15 -0
- package/dist/dist/editor/views/EditView.js.map +1 -0
- package/dist/dist/editor/views/ItemEditor.d.ts +7 -0
- package/dist/dist/editor/views/ItemEditor.js +29 -0
- package/dist/dist/editor/views/ItemEditor.js.map +1 -0
- package/dist/dist/editor/views/MediaFolderEditView.d.ts +4 -0
- package/dist/dist/editor/views/MediaFolderEditView.js +40 -0
- package/dist/dist/editor/views/MediaFolderEditView.js.map +1 -0
- package/dist/dist/editor/views/ParheliaView.d.ts +5 -0
- package/dist/dist/editor/views/ParheliaView.js +163 -0
- package/dist/dist/editor/views/ParheliaView.js.map +1 -0
- package/dist/dist/editor/views/SingleEditView.d.ts +9 -0
- package/dist/dist/editor/views/SingleEditView.js +33 -0
- package/dist/dist/editor/views/SingleEditView.js.map +1 -0
- package/dist/dist/images/bg-shape-black.webp +0 -0
- package/dist/dist/images/wizard-bg.png +0 -0
- package/dist/dist/images/wizard-tour.png +0 -0
- package/dist/dist/images/wizard.png +0 -0
- package/dist/dist/index.d.ts +67 -0
- package/dist/dist/index.js +57 -0
- package/dist/dist/index.js.map +1 -0
- package/dist/dist/lib/safelist.d.ts +1 -0
- package/dist/dist/lib/safelist.js +5 -0
- package/dist/dist/lib/safelist.js.map +1 -0
- package/dist/dist/lib/utils.d.ts +2 -0
- package/dist/dist/lib/utils.js +6 -0
- package/dist/dist/lib/utils.js.map +1 -0
- package/dist/dist/revision.d.ts +2 -0
- package/dist/dist/revision.js +3 -0
- package/dist/dist/revision.js.map +1 -0
- package/dist/dist/setup/SetupWizardPage.d.ts +5 -0
- package/dist/dist/setup/SetupWizardPage.js +8 -0
- package/dist/dist/setup/SetupWizardPage.js.map +1 -0
- package/dist/dist/setup/services/setupWizardService.d.ts +89 -0
- package/dist/dist/setup/services/setupWizardService.js +92 -0
- package/dist/dist/setup/services/setupWizardService.js.map +1 -0
- package/dist/dist/setup/utils/modelPricing.d.ts +7 -0
- package/dist/dist/setup/utils/modelPricing.js +106 -0
- package/dist/dist/setup/utils/modelPricing.js.map +1 -0
- package/dist/dist/setup/wizard/SetupWizard.d.ts +27 -0
- package/dist/dist/setup/wizard/SetupWizard.js +92 -0
- package/dist/dist/setup/wizard/SetupWizard.js.map +1 -0
- package/dist/dist/setup/wizard/index.d.ts +6 -0
- package/dist/dist/setup/wizard/index.js +6 -0
- package/dist/dist/setup/wizard/index.js.map +1 -0
- package/dist/dist/setup/wizard/steps/AgentsStep.d.ts +2 -0
- package/dist/dist/setup/wizard/steps/AgentsStep.js +117 -0
- package/dist/dist/setup/wizard/steps/AgentsStep.js.map +1 -0
- package/dist/dist/setup/wizard/steps/EndpointsStep.d.ts +2 -0
- package/dist/dist/setup/wizard/steps/EndpointsStep.js +94 -0
- package/dist/dist/setup/wizard/steps/EndpointsStep.js.map +1 -0
- package/dist/dist/setup/wizard/steps/ModelsStep.d.ts +2 -0
- package/dist/dist/setup/wizard/steps/ModelsStep.js +287 -0
- package/dist/dist/setup/wizard/steps/ModelsStep.js.map +1 -0
- package/dist/dist/setup/wizard/steps/SearchStep.d.ts +2 -0
- package/dist/dist/setup/wizard/steps/SearchStep.js +95 -0
- package/dist/dist/setup/wizard/steps/SearchStep.js.map +1 -0
- package/dist/dist/splash-screen/ModernSplashScreen.d.ts +8 -0
- package/dist/dist/splash-screen/ModernSplashScreen.js +36 -0
- package/dist/dist/splash-screen/ModernSplashScreen.js.map +1 -0
- package/dist/dist/splash-screen/NewPage.d.ts +3 -0
- package/dist/dist/splash-screen/NewPage.js +145 -0
- package/dist/dist/splash-screen/NewPage.js.map +1 -0
- package/dist/dist/splash-screen/OpenPage.d.ts +1 -0
- package/dist/dist/splash-screen/OpenPage.js +56 -0
- package/dist/dist/splash-screen/OpenPage.js.map +1 -0
- package/dist/dist/splash-screen/ParheliaAssistantChat.d.ts +8 -0
- package/dist/dist/splash-screen/ParheliaAssistantChat.js +169 -0
- package/dist/dist/splash-screen/ParheliaAssistantChat.js.map +1 -0
- package/dist/dist/splash-screen/ParheliaLogo.d.ts +5 -0
- package/dist/dist/splash-screen/ParheliaLogo.js +71 -0
- package/dist/dist/splash-screen/ParheliaLogo.js.map +1 -0
- package/dist/dist/splash-screen/RecentAgents.d.ts +7 -0
- package/dist/dist/splash-screen/RecentAgents.js +76 -0
- package/dist/dist/splash-screen/RecentAgents.js.map +1 -0
- package/dist/dist/splash-screen/RecentPages.d.ts +1 -0
- package/dist/dist/splash-screen/RecentPages.js +59 -0
- package/dist/dist/splash-screen/RecentPages.js.map +1 -0
- package/dist/dist/splash-screen/SectionHeadline.d.ts +4 -0
- package/dist/dist/splash-screen/SectionHeadline.js +7 -0
- package/dist/dist/splash-screen/SectionHeadline.js.map +1 -0
- package/dist/dist/styles.css +6035 -0
- package/dist/dist/tour/Tour.d.ts +3 -0
- package/dist/dist/tour/Tour.js +426 -0
- package/dist/dist/tour/Tour.js.map +1 -0
- package/dist/dist/tour/default-tour.d.ts +9 -0
- package/dist/dist/tour/default-tour.js +302 -0
- package/dist/dist/tour/default-tour.js.map +1 -0
- package/dist/dist/tour/preview-tour.d.ts +2 -0
- package/dist/dist/tour/preview-tour.js +93 -0
- package/dist/dist/tour/preview-tour.js.map +1 -0
- package/dist/dist/types.d.ts +490 -0
- package/dist/dist/types.js +2 -0
- package/dist/dist/types.js.map +1 -0
- package/dist/editor/control-center/parhelia-setup/Overview.d.ts +1 -0
- package/dist/editor/control-center/parhelia-setup/Overview.js +91 -0
- package/dist/editor/control-center/parhelia-setup/Overview.js.map +1 -0
- package/dist/editor/hooks/useEditorSettings.d.ts +17 -0
- package/dist/editor/hooks/useEditorSettings.js +61 -0
- package/dist/editor/hooks/useEditorSettings.js.map +1 -0
- package/dist/editor/page-viewer/EditorFormPopup.d.ts +11 -0
- package/dist/editor/page-viewer/EditorFormPopup.js +41 -0
- package/dist/editor/page-viewer/EditorFormPopup.js.map +1 -0
- package/dist/revision.d.ts +2 -2
- package/dist/revision.js +2 -2
- package/dist/revision.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,739 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useEffect, useMemo, useCallback } from "react";
|
|
3
|
+
import { SimpleToolbar } from "../ui/SimpleToolbar";
|
|
4
|
+
import { SimpleIconButton } from "../ui/SimpleIconButton";
|
|
5
|
+
import { Button } from "../../components/ui/button";
|
|
6
|
+
import { Checkbox } from "../../components/ui/checkbox";
|
|
7
|
+
import { Check, X, Clock, Filter, Plus, Trash2, MessageSquare, Lightbulb, } from "lucide-react";
|
|
8
|
+
import { formatDate } from "../utils";
|
|
9
|
+
import { Badge } from "../../components/ui/badge";
|
|
10
|
+
import { Popover, PopoverContent, PopoverTrigger, } from "../../components/ui/popover";
|
|
11
|
+
import { Loader2 } from "lucide-react";
|
|
12
|
+
import { ItemTreeSelector } from "./ItemTreeSelector";
|
|
13
|
+
import { useEditContext } from "../client/editContext";
|
|
14
|
+
import { getComments } from "../services/reviewsService";
|
|
15
|
+
import { getSuggestedEdits } from "../services/suggestedEditsService";
|
|
16
|
+
export function DecisionsMatrix({ items, assignments, onMakeDecision, loading, reviewId, language, finalDecision, onSetFinalDecision, onAddPages, onRemovePages, allReviewersResponded, selectedReviewerId, currentUserEmail, requiredApprovals = 1, }) {
|
|
17
|
+
const [filter, setFilter] = useState("all");
|
|
18
|
+
const [isAddPopoverOpen, setIsAddPopoverOpen] = useState(false);
|
|
19
|
+
const [selectedItems, setSelectedItems] = useState([]);
|
|
20
|
+
const [selectedPagesForRemoval, setSelectedPagesForRemoval] = useState(new Set());
|
|
21
|
+
const editContext = useEditContext();
|
|
22
|
+
const isLimitedPreviewUser = editContext?.user?.isLimitedPreviewUser ?? false;
|
|
23
|
+
const [commentsData, setCommentsData] = useState(new Map());
|
|
24
|
+
const [suggestionsData, setSuggestionsData] = useState(new Map());
|
|
25
|
+
const [loadingCounts, setLoadingCounts] = useState(false);
|
|
26
|
+
const [itemDetailsCache, setItemDetailsCache] = useState(new Map());
|
|
27
|
+
// Filter assignments based on selection
|
|
28
|
+
// For limited preview users, only show their own assignment
|
|
29
|
+
const displayAssignments = (() => {
|
|
30
|
+
let filtered = assignments;
|
|
31
|
+
// If limited preview user, only show their own assignment
|
|
32
|
+
if (isLimitedPreviewUser && currentUserEmail) {
|
|
33
|
+
filtered = filtered.filter((a) => a.reviewerEmail.toLowerCase() === currentUserEmail.toLowerCase());
|
|
34
|
+
}
|
|
35
|
+
// Apply reviewer selection filter if specified
|
|
36
|
+
if (selectedReviewerId) {
|
|
37
|
+
filtered = filtered.filter((a) => a.assignmentId === selectedReviewerId);
|
|
38
|
+
}
|
|
39
|
+
return filtered;
|
|
40
|
+
})();
|
|
41
|
+
// Combine items from the original items list AND items that have decisions
|
|
42
|
+
const allItemsWithDecisions = useMemo(() => {
|
|
43
|
+
const itemsMap = new Map();
|
|
44
|
+
// Add all original items
|
|
45
|
+
items.forEach((item) => {
|
|
46
|
+
const key = `${item.itemId}-${item.language}`;
|
|
47
|
+
itemsMap.set(key, item);
|
|
48
|
+
});
|
|
49
|
+
// Add items from decisions that aren't already in the list
|
|
50
|
+
assignments.forEach((assignment) => {
|
|
51
|
+
assignment.decisions?.forEach((decision) => {
|
|
52
|
+
const key = `${decision.itemId}-${decision.itemLanguage}`;
|
|
53
|
+
if (!itemsMap.has(key)) {
|
|
54
|
+
// Check if we have cached details for this item
|
|
55
|
+
const cachedDetails = itemDetailsCache.get(key);
|
|
56
|
+
// Create a synthetic item entry for this decision
|
|
57
|
+
itemsMap.set(key, {
|
|
58
|
+
itemId: decision.itemId,
|
|
59
|
+
language: decision.itemLanguage,
|
|
60
|
+
includeSubitems: false,
|
|
61
|
+
name: cachedDetails?.name,
|
|
62
|
+
path: cachedDetails?.path,
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
return Array.from(itemsMap.values());
|
|
68
|
+
}, [items, assignments, itemDetailsCache]);
|
|
69
|
+
// Fetch item details for synthetic items that don't have names/paths
|
|
70
|
+
useEffect(() => {
|
|
71
|
+
const fetchItemDetails = async () => {
|
|
72
|
+
if (!editContext?.itemsRepository)
|
|
73
|
+
return;
|
|
74
|
+
const itemsToFetch = [];
|
|
75
|
+
// Find synthetic items that need details
|
|
76
|
+
assignments.forEach((assignment) => {
|
|
77
|
+
assignment.decisions?.forEach((decision) => {
|
|
78
|
+
const key = `${decision.itemId}-${decision.itemLanguage}`;
|
|
79
|
+
// Check if this item is not in the original items list
|
|
80
|
+
const isOriginalItem = items.some((item) => item.itemId === decision.itemId &&
|
|
81
|
+
item.language === decision.itemLanguage);
|
|
82
|
+
// Check if we already have cached details
|
|
83
|
+
const hasCachedDetails = itemDetailsCache.has(key);
|
|
84
|
+
// Only fetch if it's not an original item and we don't have cached details
|
|
85
|
+
if (!isOriginalItem && !hasCachedDetails) {
|
|
86
|
+
itemsToFetch.push({
|
|
87
|
+
key,
|
|
88
|
+
descriptor: {
|
|
89
|
+
id: decision.itemId,
|
|
90
|
+
language: decision.itemLanguage,
|
|
91
|
+
version: 0,
|
|
92
|
+
},
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
if (itemsToFetch.length === 0)
|
|
98
|
+
return;
|
|
99
|
+
try {
|
|
100
|
+
// Fetch items in batches
|
|
101
|
+
const fetchedItems = await Promise.all(itemsToFetch.map(({ descriptor }) => editContext.itemsRepository.getItem(descriptor)));
|
|
102
|
+
// Update cache with fetched details
|
|
103
|
+
const newCache = new Map(itemDetailsCache);
|
|
104
|
+
itemsToFetch.forEach(({ key }, index) => {
|
|
105
|
+
const fetchedItem = fetchedItems[index];
|
|
106
|
+
if (fetchedItem) {
|
|
107
|
+
newCache.set(key, {
|
|
108
|
+
name: fetchedItem.name,
|
|
109
|
+
path: fetchedItem.path,
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
if (newCache.size > itemDetailsCache.size) {
|
|
114
|
+
setItemDetailsCache(newCache);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
catch (err) {
|
|
118
|
+
console.error("Failed to fetch item details:", err);
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
fetchItemDetails();
|
|
122
|
+
}, [assignments, items, itemDetailsCache, editContext?.itemsRepository]);
|
|
123
|
+
const getDecision = (assignment, itemId, itemLanguage) => {
|
|
124
|
+
return assignment.decisions?.find((d) => d.itemId === itemId && d.itemLanguage === itemLanguage);
|
|
125
|
+
};
|
|
126
|
+
// Calculate approval count for an item
|
|
127
|
+
const getApprovalCount = (itemId, itemLanguage) => {
|
|
128
|
+
return assignments.filter((assignment) => {
|
|
129
|
+
const decision = getDecision(assignment, itemId, itemLanguage);
|
|
130
|
+
return decision?.decision === "Approved";
|
|
131
|
+
}).length;
|
|
132
|
+
};
|
|
133
|
+
// Get approval status for an item
|
|
134
|
+
const getItemApprovalStatus = (itemId, itemLanguage) => {
|
|
135
|
+
const approvalCount = getApprovalCount(itemId, itemLanguage);
|
|
136
|
+
const rejectionCount = assignments.filter((assignment) => {
|
|
137
|
+
const decision = getDecision(assignment, itemId, itemLanguage);
|
|
138
|
+
return decision?.decision === "Rejected";
|
|
139
|
+
}).length;
|
|
140
|
+
const totalReviewers = assignments.length;
|
|
141
|
+
const pendingCount = totalReviewers - approvalCount - rejectionCount;
|
|
142
|
+
if (approvalCount >= requiredApprovals) {
|
|
143
|
+
return "approved";
|
|
144
|
+
}
|
|
145
|
+
// If it's impossible to reach the threshold, mark as rejected
|
|
146
|
+
if (approvalCount + pendingCount < requiredApprovals) {
|
|
147
|
+
return "rejected";
|
|
148
|
+
}
|
|
149
|
+
return "pending";
|
|
150
|
+
};
|
|
151
|
+
const handleLoadItem = (itemId, itemLanguage) => {
|
|
152
|
+
console.log("[DecisionsMatrix.handleLoadItem] Loading item from decisions matrix:", {
|
|
153
|
+
itemId,
|
|
154
|
+
itemLanguage,
|
|
155
|
+
isLimitedPreviewUser,
|
|
156
|
+
currentUserEmail,
|
|
157
|
+
timestamp: new Date().toISOString(),
|
|
158
|
+
});
|
|
159
|
+
if (editContext?.loadItem) {
|
|
160
|
+
// Handle "*" language (All Languages mode) - use default language
|
|
161
|
+
const languageToLoad = itemLanguage === "*"
|
|
162
|
+
? editContext?.currentItemDescriptor?.language || "en"
|
|
163
|
+
: itemLanguage;
|
|
164
|
+
editContext.loadItem({
|
|
165
|
+
id: itemId,
|
|
166
|
+
language: languageToLoad,
|
|
167
|
+
version: 0,
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
else {
|
|
171
|
+
console.error("[DecisionsMatrix.handleLoadItem] editContext.loadItem is not available");
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
const getDecisionCell = (assignment, item) => {
|
|
175
|
+
const decision = getDecision(assignment, item.itemId, item.language);
|
|
176
|
+
if (decision) {
|
|
177
|
+
if (decision.decision === "Approved") {
|
|
178
|
+
return (_jsx("div", { className: "flex items-center justify-center p-1", children: _jsxs("div", { className: "flex flex-col items-center gap-0.5", children: [_jsxs("div", { className: "flex items-center gap-1", children: [_jsx(Check, { className: "h-3.5 w-3.5 text-green-500" }), _jsx("span", { className: "text-xs leading-tight text-gray-500", children: formatDate(new Date(decision.decisionDate)) })] }), decision.itemVersion !== undefined && (_jsxs("span", { className: "text-xs leading-tight text-gray-400", children: ["v", decision.itemVersion] }))] }) }));
|
|
179
|
+
}
|
|
180
|
+
else {
|
|
181
|
+
return (_jsx("div", { className: "flex items-center justify-center p-1", children: _jsxs("div", { className: "flex items-center gap-1", children: [_jsx(X, { className: "h-3.5 w-3.5 text-red-500" }), _jsx("span", { className: "text-xs leading-tight text-gray-500", children: formatDate(new Date(decision.decisionDate)) })] }) }));
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
// Show pending indicator
|
|
185
|
+
return (_jsx("div", { className: "flex items-center justify-center p-1", children: _jsx(Clock, { className: "h-3.5 w-3.5 text-gray-400" }) }));
|
|
186
|
+
};
|
|
187
|
+
const filteredItems = allItemsWithDecisions.filter((item) => {
|
|
188
|
+
if (filter === "all")
|
|
189
|
+
return true;
|
|
190
|
+
if (filter === "pending") {
|
|
191
|
+
return displayAssignments.some((a) => !getDecision(a, item.itemId, item.language));
|
|
192
|
+
}
|
|
193
|
+
if (filter === "rejected") {
|
|
194
|
+
return displayAssignments.some((a) => getDecision(a, item.itemId, item.language)?.decision === "Rejected");
|
|
195
|
+
}
|
|
196
|
+
if (filter === "approved") {
|
|
197
|
+
return displayAssignments.every((a) => getDecision(a, item.itemId, item.language)?.decision === "Approved");
|
|
198
|
+
}
|
|
199
|
+
return true;
|
|
200
|
+
});
|
|
201
|
+
const handleMakeDecision = async (assignmentId, itemId, itemLanguage, decision) => {
|
|
202
|
+
// Try to get the version of the item being decided on
|
|
203
|
+
let itemVersion = undefined;
|
|
204
|
+
// First, check if the current item matches
|
|
205
|
+
const currentItem = editContext?.currentItemDescriptor;
|
|
206
|
+
if (currentItem &&
|
|
207
|
+
currentItem.id === itemId &&
|
|
208
|
+
(currentItem.language === itemLanguage ||
|
|
209
|
+
itemLanguage === "*" ||
|
|
210
|
+
currentItem.language === "*")) {
|
|
211
|
+
itemVersion = currentItem.version;
|
|
212
|
+
}
|
|
213
|
+
else {
|
|
214
|
+
// Try to fetch the item to get its version
|
|
215
|
+
if (editContext?.itemsRepository) {
|
|
216
|
+
try {
|
|
217
|
+
const item = await editContext.itemsRepository.getItem({
|
|
218
|
+
id: itemId,
|
|
219
|
+
language: itemLanguage === "*" ? "en" : itemLanguage,
|
|
220
|
+
version: 0, // Get latest version
|
|
221
|
+
});
|
|
222
|
+
if (item) {
|
|
223
|
+
itemVersion = item.version;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
catch (err) {
|
|
227
|
+
console.warn(`Failed to fetch item version for ${itemId}:`, err);
|
|
228
|
+
// Continue with undefined version (version-null decision)
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
await onMakeDecision(assignmentId, itemId, itemLanguage, itemVersion, decision);
|
|
233
|
+
};
|
|
234
|
+
const handleApproveCurrentPage = async () => {
|
|
235
|
+
const currentItem = editContext?.currentItemDescriptor;
|
|
236
|
+
if (!currentItem || !currentUserEmail)
|
|
237
|
+
return;
|
|
238
|
+
// Find current user's assignment
|
|
239
|
+
const userAssignment = assignments.find((a) => a.reviewerEmail.toLowerCase() === currentUserEmail.toLowerCase());
|
|
240
|
+
if (!userAssignment)
|
|
241
|
+
return;
|
|
242
|
+
await handleMakeDecision(userAssignment.assignmentId, currentItem.id, currentItem.language || "en", "Approved");
|
|
243
|
+
};
|
|
244
|
+
const handleRejectCurrentPage = async () => {
|
|
245
|
+
const currentItem = editContext?.currentItemDescriptor;
|
|
246
|
+
if (!currentItem || !currentUserEmail)
|
|
247
|
+
return;
|
|
248
|
+
// Find current user's assignment
|
|
249
|
+
const userAssignment = assignments.find((a) => a.reviewerEmail.toLowerCase() === currentUserEmail.toLowerCase());
|
|
250
|
+
if (!userAssignment)
|
|
251
|
+
return;
|
|
252
|
+
await handleMakeDecision(userAssignment.assignmentId, currentItem.id, currentItem.language || "en", "Rejected");
|
|
253
|
+
};
|
|
254
|
+
const handleItemsChange = (descriptors) => {
|
|
255
|
+
setSelectedItems(descriptors);
|
|
256
|
+
};
|
|
257
|
+
const handleAddSelectedPages = async () => {
|
|
258
|
+
if (selectedItems.length > 0) {
|
|
259
|
+
const itemsToAdd = selectedItems.map((desc) => ({
|
|
260
|
+
descriptor: desc,
|
|
261
|
+
includeSubitems: false,
|
|
262
|
+
}));
|
|
263
|
+
await onAddPages(itemsToAdd);
|
|
264
|
+
setSelectedItems([]);
|
|
265
|
+
setIsAddPopoverOpen(false);
|
|
266
|
+
}
|
|
267
|
+
};
|
|
268
|
+
const handleRemovePage = async (itemId, itemLanguage) => {
|
|
269
|
+
const item = allItemsWithDecisions.find((i) => i.itemId === itemId && i.language === itemLanguage);
|
|
270
|
+
const itemName = item?.name || item?.path || itemId;
|
|
271
|
+
editContext?.confirm({
|
|
272
|
+
header: "Remove Page",
|
|
273
|
+
message: `Are you sure you want to remove "${itemName}" from this review?`,
|
|
274
|
+
acceptLabel: "Remove",
|
|
275
|
+
showCancel: true,
|
|
276
|
+
accept: async () => {
|
|
277
|
+
await onRemovePages([
|
|
278
|
+
{
|
|
279
|
+
id: itemId,
|
|
280
|
+
language: itemLanguage,
|
|
281
|
+
version: 1,
|
|
282
|
+
},
|
|
283
|
+
]);
|
|
284
|
+
},
|
|
285
|
+
});
|
|
286
|
+
};
|
|
287
|
+
const togglePageSelection = (itemId, language) => {
|
|
288
|
+
const key = `${itemId}-${language}`;
|
|
289
|
+
const newSelection = new Set(selectedPagesForRemoval);
|
|
290
|
+
if (newSelection.has(key)) {
|
|
291
|
+
newSelection.delete(key);
|
|
292
|
+
}
|
|
293
|
+
else {
|
|
294
|
+
newSelection.add(key);
|
|
295
|
+
}
|
|
296
|
+
setSelectedPagesForRemoval(newSelection);
|
|
297
|
+
};
|
|
298
|
+
const handleRemoveSelectedPages = async () => {
|
|
299
|
+
if (selectedPagesForRemoval.size === 0)
|
|
300
|
+
return;
|
|
301
|
+
const pagesToRemove = Array.from(selectedPagesForRemoval)
|
|
302
|
+
.map((key) => {
|
|
303
|
+
const [itemId, language] = key.split("-");
|
|
304
|
+
return { itemId, language };
|
|
305
|
+
})
|
|
306
|
+
.filter(({ itemId, language }) => itemId && language);
|
|
307
|
+
const itemDescriptors = pagesToRemove.map(({ itemId, language }) => ({
|
|
308
|
+
id: itemId,
|
|
309
|
+
language: language,
|
|
310
|
+
version: 1,
|
|
311
|
+
}));
|
|
312
|
+
const pageNames = pagesToRemove.map(({ itemId, language }) => {
|
|
313
|
+
const item = allItemsWithDecisions.find((i) => i.itemId === itemId && i.language === language);
|
|
314
|
+
return item?.name || item?.path || itemId;
|
|
315
|
+
});
|
|
316
|
+
const message = selectedPagesForRemoval.size === 1
|
|
317
|
+
? `Are you sure you want to remove "${pageNames[0]}" from this review?`
|
|
318
|
+
: `Are you sure you want to remove ${selectedPagesForRemoval.size} pages from this review?`;
|
|
319
|
+
editContext?.confirm({
|
|
320
|
+
header: "Remove Pages",
|
|
321
|
+
message,
|
|
322
|
+
acceptLabel: "Remove",
|
|
323
|
+
showCancel: true,
|
|
324
|
+
accept: async () => {
|
|
325
|
+
await onRemovePages(itemDescriptors);
|
|
326
|
+
setSelectedPagesForRemoval(new Set());
|
|
327
|
+
},
|
|
328
|
+
});
|
|
329
|
+
};
|
|
330
|
+
const hasSelectedPages = selectedPagesForRemoval.size > 0;
|
|
331
|
+
// Helper function to refresh counts for a specific item
|
|
332
|
+
const refreshItemCounts = useCallback(async (itemId, itemLanguage) => {
|
|
333
|
+
const key = `${itemId}-${itemLanguage}`;
|
|
334
|
+
// Check if this item is in our review
|
|
335
|
+
const itemInReview = allItemsWithDecisions.some((item) => item.itemId === itemId &&
|
|
336
|
+
(item.language === itemLanguage ||
|
|
337
|
+
item.language === "*" ||
|
|
338
|
+
itemLanguage === "*"));
|
|
339
|
+
if (!itemInReview) {
|
|
340
|
+
return;
|
|
341
|
+
}
|
|
342
|
+
try {
|
|
343
|
+
// Fetch updated comments
|
|
344
|
+
const commentsResult = await getComments(itemId, itemLanguage === "*" ? "en" : itemLanguage, 0, reviewId);
|
|
345
|
+
if (commentsResult.data) {
|
|
346
|
+
setCommentsData((prev) => {
|
|
347
|
+
const newMap = new Map(prev);
|
|
348
|
+
newMap.set(key, commentsResult.data);
|
|
349
|
+
return newMap;
|
|
350
|
+
});
|
|
351
|
+
}
|
|
352
|
+
// Fetch updated suggestions
|
|
353
|
+
const suggestionsResult = await getSuggestedEdits(itemId, itemLanguage === "*" ? "en" : itemLanguage, 0, reviewId);
|
|
354
|
+
if (suggestionsResult.data) {
|
|
355
|
+
setSuggestionsData((prev) => {
|
|
356
|
+
const newMap = new Map(prev);
|
|
357
|
+
newMap.set(key, suggestionsResult.data);
|
|
358
|
+
return newMap;
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
catch (err) {
|
|
363
|
+
console.error(`Failed to refresh counts for ${key}:`, err);
|
|
364
|
+
}
|
|
365
|
+
}, [allItemsWithDecisions, reviewId]);
|
|
366
|
+
// Fetch comments and suggestions for all items
|
|
367
|
+
useEffect(() => {
|
|
368
|
+
const fetchCounts = async () => {
|
|
369
|
+
if (allItemsWithDecisions.length === 0) {
|
|
370
|
+
setCommentsData(new Map());
|
|
371
|
+
setSuggestionsData(new Map());
|
|
372
|
+
return;
|
|
373
|
+
}
|
|
374
|
+
setLoadingCounts(true);
|
|
375
|
+
const commentsMap = new Map();
|
|
376
|
+
const suggestionsMap = new Map();
|
|
377
|
+
try {
|
|
378
|
+
await Promise.all(allItemsWithDecisions.map(async (item) => {
|
|
379
|
+
const key = `${item.itemId}-${item.language}`;
|
|
380
|
+
// Fetch comments (using version 0 as default, or we could track version)
|
|
381
|
+
// Pass reviewId to filter server-side by review creation date
|
|
382
|
+
try {
|
|
383
|
+
const commentsResult = await getComments(item.itemId, item.language, 0, reviewId);
|
|
384
|
+
if (commentsResult.data) {
|
|
385
|
+
commentsMap.set(key, commentsResult.data);
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
catch (err) {
|
|
389
|
+
console.error(`Failed to fetch comments for ${key}:`, err);
|
|
390
|
+
}
|
|
391
|
+
// Fetch suggestions
|
|
392
|
+
// Pass reviewId to filter server-side by review creation date
|
|
393
|
+
try {
|
|
394
|
+
const suggestionsResult = await getSuggestedEdits(item.itemId, item.language, 0, reviewId);
|
|
395
|
+
if (suggestionsResult.data) {
|
|
396
|
+
suggestionsMap.set(key, suggestionsResult.data);
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
catch (err) {
|
|
400
|
+
console.error(`Failed to fetch suggestions for ${key}:`, err);
|
|
401
|
+
}
|
|
402
|
+
}));
|
|
403
|
+
setCommentsData(commentsMap);
|
|
404
|
+
setSuggestionsData(suggestionsMap);
|
|
405
|
+
}
|
|
406
|
+
catch (err) {
|
|
407
|
+
console.error("Failed to fetch counts:", err);
|
|
408
|
+
}
|
|
409
|
+
finally {
|
|
410
|
+
setLoadingCounts(false);
|
|
411
|
+
}
|
|
412
|
+
};
|
|
413
|
+
fetchCounts();
|
|
414
|
+
}, [allItemsWithDecisions, reviewId]);
|
|
415
|
+
// Listen for websocket messages to update counts in real-time
|
|
416
|
+
useEffect(() => {
|
|
417
|
+
if (!editContext?.addSocketMessageListener) {
|
|
418
|
+
return;
|
|
419
|
+
}
|
|
420
|
+
const unsubscribe = editContext.addSocketMessageListener((message) => {
|
|
421
|
+
try {
|
|
422
|
+
// Handle comment updates
|
|
423
|
+
if (message.type === "comment-updated" && message.payload?.comment) {
|
|
424
|
+
const comment = message.payload.comment;
|
|
425
|
+
const itemId = comment.mainItemId;
|
|
426
|
+
const itemLanguage = comment.language || "en";
|
|
427
|
+
// Refresh counts for this item
|
|
428
|
+
refreshItemCounts(itemId, itemLanguage);
|
|
429
|
+
}
|
|
430
|
+
// Handle comment deletions
|
|
431
|
+
if (message.type === "comment-deleted" && message.payload?.commentId) {
|
|
432
|
+
// Find which item(s) this comment belonged to by checking our cache
|
|
433
|
+
const deletedCommentId = message.payload.commentId;
|
|
434
|
+
const itemsToRefresh = new Set();
|
|
435
|
+
commentsData.forEach((comments, key) => {
|
|
436
|
+
if (comments.some((c) => c.id === deletedCommentId)) {
|
|
437
|
+
itemsToRefresh.add(key);
|
|
438
|
+
}
|
|
439
|
+
});
|
|
440
|
+
// If we found the comment in our cache, refresh only those items
|
|
441
|
+
if (itemsToRefresh.size > 0) {
|
|
442
|
+
itemsToRefresh.forEach((key) => {
|
|
443
|
+
const parts = key.split("-");
|
|
444
|
+
if (parts.length >= 2) {
|
|
445
|
+
const itemId = parts[0];
|
|
446
|
+
const itemLanguage = parts.slice(1).join("-"); // Handle language codes with dashes
|
|
447
|
+
refreshItemCounts(itemId, itemLanguage);
|
|
448
|
+
}
|
|
449
|
+
});
|
|
450
|
+
}
|
|
451
|
+
else {
|
|
452
|
+
// If not found in cache, refresh all items to be safe
|
|
453
|
+
allItemsWithDecisions.forEach((item) => {
|
|
454
|
+
refreshItemCounts(item.itemId, item.language);
|
|
455
|
+
});
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
// Handle suggested edit updates
|
|
459
|
+
if (message.type === "suggested-edit-updated" &&
|
|
460
|
+
message.payload?.suggestedEdit) {
|
|
461
|
+
const suggestion = message.payload.suggestedEdit;
|
|
462
|
+
const itemId = suggestion.mainItemId;
|
|
463
|
+
const itemLanguage = suggestion.mainItemLanguage || "en";
|
|
464
|
+
// Refresh counts for this item
|
|
465
|
+
refreshItemCounts(itemId, itemLanguage);
|
|
466
|
+
}
|
|
467
|
+
// Handle suggested edit deletions
|
|
468
|
+
if (message.type === "suggested-edit-deleted" && message.payload?.id) {
|
|
469
|
+
// Find which item(s) this suggestion belonged to by checking our cache
|
|
470
|
+
const deletedSuggestionId = message.payload.id;
|
|
471
|
+
const itemsToRefresh = new Set();
|
|
472
|
+
suggestionsData.forEach((suggestions, key) => {
|
|
473
|
+
if (suggestions.some((s) => s.id === deletedSuggestionId)) {
|
|
474
|
+
itemsToRefresh.add(key);
|
|
475
|
+
}
|
|
476
|
+
});
|
|
477
|
+
// If we found the suggestion in our cache, refresh only those items
|
|
478
|
+
if (itemsToRefresh.size > 0) {
|
|
479
|
+
itemsToRefresh.forEach((key) => {
|
|
480
|
+
const parts = key.split("-");
|
|
481
|
+
if (parts.length >= 2) {
|
|
482
|
+
const itemId = parts[0];
|
|
483
|
+
const itemLanguage = parts.slice(1).join("-"); // Handle language codes with dashes
|
|
484
|
+
refreshItemCounts(itemId, itemLanguage);
|
|
485
|
+
}
|
|
486
|
+
});
|
|
487
|
+
}
|
|
488
|
+
else {
|
|
489
|
+
// If not found in cache, refresh all items to be safe
|
|
490
|
+
allItemsWithDecisions.forEach((item) => {
|
|
491
|
+
refreshItemCounts(item.itemId, item.language);
|
|
492
|
+
});
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
catch (err) {
|
|
497
|
+
console.error("Error handling websocket message:", err);
|
|
498
|
+
}
|
|
499
|
+
});
|
|
500
|
+
return () => {
|
|
501
|
+
unsubscribe();
|
|
502
|
+
};
|
|
503
|
+
}, [
|
|
504
|
+
editContext?.addSocketMessageListener,
|
|
505
|
+
refreshItemCounts,
|
|
506
|
+
allItemsWithDecisions,
|
|
507
|
+
commentsData,
|
|
508
|
+
suggestionsData,
|
|
509
|
+
]);
|
|
510
|
+
// Helper function to get comment count for an item by reviewer email
|
|
511
|
+
const getCommentCount = (itemId, itemLanguage, reviewerEmail) => {
|
|
512
|
+
const key = `${itemId}-${itemLanguage}`;
|
|
513
|
+
const comments = commentsData.get(key) || [];
|
|
514
|
+
return comments.filter((c) => c.author?.toLowerCase() === reviewerEmail.toLowerCase()).length;
|
|
515
|
+
};
|
|
516
|
+
// Helper function to get suggestion count for an item by reviewer email
|
|
517
|
+
const getSuggestionCount = (itemId, itemLanguage, reviewerEmail) => {
|
|
518
|
+
const key = `${itemId}-${itemLanguage}`;
|
|
519
|
+
const suggestions = suggestionsData.get(key) || [];
|
|
520
|
+
return suggestions.filter((s) => s.author?.toLowerCase() === reviewerEmail.toLowerCase()).length;
|
|
521
|
+
};
|
|
522
|
+
// Helper function to get total comment count for an item
|
|
523
|
+
const getTotalCommentCount = (itemId, itemLanguage) => {
|
|
524
|
+
const key = `${itemId}-${itemLanguage}`;
|
|
525
|
+
const comments = commentsData.get(key) || [];
|
|
526
|
+
return comments.length;
|
|
527
|
+
};
|
|
528
|
+
// Helper function to get total suggestion count for an item
|
|
529
|
+
const getTotalSuggestionCount = (itemId, itemLanguage) => {
|
|
530
|
+
const key = `${itemId}-${itemLanguage}`;
|
|
531
|
+
const suggestions = suggestionsData.get(key) || [];
|
|
532
|
+
return suggestions.length;
|
|
533
|
+
};
|
|
534
|
+
const currentItem = editContext?.currentItemDescriptor;
|
|
535
|
+
const currentFullItem = editContext?.contentEditorItem; // FullItem has path and parentId
|
|
536
|
+
const userAssignment = assignments.find((a) => currentUserEmail &&
|
|
537
|
+
a.reviewerEmail.toLowerCase() === currentUserEmail.toLowerCase());
|
|
538
|
+
const currentItemDecision = userAssignment && currentItem
|
|
539
|
+
? getDecision(userAssignment, currentItem.id, currentItem.language || "en")
|
|
540
|
+
: undefined;
|
|
541
|
+
// Check if current page is in the review (either directly or as a subitem)
|
|
542
|
+
const isCurrentPageInReview = useMemo(() => {
|
|
543
|
+
if (!currentItem || !currentFullItem) {
|
|
544
|
+
console.log("[DecisionsMatrix] No current item or full item");
|
|
545
|
+
return false;
|
|
546
|
+
}
|
|
547
|
+
const currentPath = currentFullItem.path;
|
|
548
|
+
const currentId = currentItem.id;
|
|
549
|
+
const currentLanguage = currentItem.language || "en";
|
|
550
|
+
console.log("[DecisionsMatrix] Checking if current page is in review:", {
|
|
551
|
+
currentItemId: currentId,
|
|
552
|
+
currentItemPath: currentPath,
|
|
553
|
+
currentItemLanguage: currentLanguage,
|
|
554
|
+
parentId: currentFullItem.parentId,
|
|
555
|
+
itemsCount: items.length,
|
|
556
|
+
items: items.map((i) => ({
|
|
557
|
+
id: i.itemId,
|
|
558
|
+
path: i.path,
|
|
559
|
+
includeSubitems: i.includeSubitems,
|
|
560
|
+
language: i.language,
|
|
561
|
+
})),
|
|
562
|
+
});
|
|
563
|
+
// Check if current item is directly in the items list
|
|
564
|
+
const isDirectMatch = items.some((item) => item.itemId === currentId &&
|
|
565
|
+
(item.language === currentLanguage ||
|
|
566
|
+
item.language === "*" ||
|
|
567
|
+
currentLanguage === "*"));
|
|
568
|
+
console.log("[DecisionsMatrix] Is direct match:", isDirectMatch);
|
|
569
|
+
if (isDirectMatch) {
|
|
570
|
+
console.log("[DecisionsMatrix] Current item is directly in review");
|
|
571
|
+
return true;
|
|
572
|
+
}
|
|
573
|
+
// Check if it's a subitem of any item with includeSubitems: true
|
|
574
|
+
const isSubitem = items.some((item) => {
|
|
575
|
+
if (!item.includeSubitems) {
|
|
576
|
+
return false;
|
|
577
|
+
}
|
|
578
|
+
console.log(`[DecisionsMatrix] Checking if ${currentId} is subitem of ${item.itemId}`, {
|
|
579
|
+
currentPath: currentPath,
|
|
580
|
+
itemPath: item.path,
|
|
581
|
+
currentParentId: currentFullItem.parentId,
|
|
582
|
+
itemId: item.itemId,
|
|
583
|
+
});
|
|
584
|
+
// Method 1: Check by path if both are available
|
|
585
|
+
if (currentPath && item.path) {
|
|
586
|
+
// Normalize paths - remove trailing slashes and ensure consistent format
|
|
587
|
+
const normalizedCurrentPath = currentPath
|
|
588
|
+
.replace(/\/$/, "")
|
|
589
|
+
.replace(/\\$/, "");
|
|
590
|
+
const normalizedItemPath = item.path
|
|
591
|
+
.replace(/\/$/, "")
|
|
592
|
+
.replace(/\\$/, "");
|
|
593
|
+
// Check if current path starts with item path and is deeper
|
|
594
|
+
const isSubPath = normalizedCurrentPath.startsWith(normalizedItemPath + "/") ||
|
|
595
|
+
normalizedCurrentPath.startsWith(normalizedItemPath + "\\");
|
|
596
|
+
if (isSubPath && normalizedCurrentPath !== normalizedItemPath) {
|
|
597
|
+
console.log(`[DecisionsMatrix] Found subitem match by path: ${normalizedCurrentPath} is under ${normalizedItemPath}`);
|
|
598
|
+
return true;
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
// Method 2: Check if current item's parent ID matches the review item ID
|
|
602
|
+
if (currentFullItem.parentId &&
|
|
603
|
+
item.itemId === currentFullItem.parentId) {
|
|
604
|
+
console.log(`[DecisionsMatrix] Found subitem match by parent ID: ${currentId} has parent ${currentFullItem.parentId} which matches ${item.itemId}`);
|
|
605
|
+
return true;
|
|
606
|
+
}
|
|
607
|
+
// Method 3: Check if item ID is in the current path
|
|
608
|
+
if (currentPath && item.itemId) {
|
|
609
|
+
const pathContainsId = currentPath.includes(`/${item.itemId}/`) ||
|
|
610
|
+
currentPath.includes(`\\${item.itemId}\\`) ||
|
|
611
|
+
currentPath.endsWith(`/${item.itemId}`) ||
|
|
612
|
+
currentPath.endsWith(`\\${item.itemId}`);
|
|
613
|
+
if (pathContainsId && currentId !== item.itemId) {
|
|
614
|
+
console.log(`[DecisionsMatrix] Found subitem match by ID in path: ${currentPath} contains ${item.itemId}`);
|
|
615
|
+
return true;
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
return false;
|
|
619
|
+
});
|
|
620
|
+
console.log("[DecisionsMatrix] Is in review result:", isDirectMatch || isSubitem);
|
|
621
|
+
return isDirectMatch || isSubitem;
|
|
622
|
+
}, [currentItem, currentFullItem, items]);
|
|
623
|
+
const showCurrentPageButtons = currentItem && userAssignment && isCurrentPageInReview;
|
|
624
|
+
// Debug logging
|
|
625
|
+
useEffect(() => {
|
|
626
|
+
console.log("[DecisionsMatrix] Button visibility check:", {
|
|
627
|
+
isLimitedPreviewUser,
|
|
628
|
+
hasCurrentItem: !!currentItem,
|
|
629
|
+
hasCurrentFullItem: !!currentFullItem,
|
|
630
|
+
hasUserAssignment: !!userAssignment,
|
|
631
|
+
isCurrentPageInReview,
|
|
632
|
+
showCurrentPageButtons,
|
|
633
|
+
currentItem: currentItem
|
|
634
|
+
? {
|
|
635
|
+
id: currentItem.id,
|
|
636
|
+
path: currentItem.path,
|
|
637
|
+
language: currentItem.language,
|
|
638
|
+
}
|
|
639
|
+
: null,
|
|
640
|
+
currentFullItem: currentFullItem
|
|
641
|
+
? {
|
|
642
|
+
id: currentFullItem.id,
|
|
643
|
+
path: currentFullItem.path,
|
|
644
|
+
parentId: currentFullItem.parentId,
|
|
645
|
+
}
|
|
646
|
+
: null,
|
|
647
|
+
userAssignment: userAssignment
|
|
648
|
+
? {
|
|
649
|
+
assignmentId: userAssignment.assignmentId,
|
|
650
|
+
reviewerEmail: userAssignment.reviewerEmail,
|
|
651
|
+
}
|
|
652
|
+
: null,
|
|
653
|
+
});
|
|
654
|
+
}, [
|
|
655
|
+
isLimitedPreviewUser,
|
|
656
|
+
currentItem,
|
|
657
|
+
currentFullItem,
|
|
658
|
+
userAssignment,
|
|
659
|
+
isCurrentPageInReview,
|
|
660
|
+
showCurrentPageButtons,
|
|
661
|
+
]);
|
|
662
|
+
return (_jsxs("div", { className: "flex h-full flex-col", children: [_jsxs(SimpleToolbar, { children: [!isLimitedPreviewUser && (_jsxs(Popover, { open: isAddPopoverOpen, onOpenChange: setIsAddPopoverOpen, children: [_jsx(PopoverTrigger, { asChild: true, children: _jsx(SimpleIconButton, { label: "Add Pages", icon: _jsx(Plus, { className: "h-4 w-4" }), onClick: () => setIsAddPopoverOpen(true) }) }), _jsx(PopoverContent, { className: "m-2 w-[600px] p-0", align: "start", children: _jsxs("div", { className: "flex flex-col gap-2 p-2", children: [_jsx("div", { className: "text-sm font-medium", children: "Select Pages" }), _jsx(ItemTreeSelector, { selectedItems: selectedItems, onItemsChange: handleItemsChange, language: language, height: "350px" }), _jsxs("div", { className: "flex justify-end gap-2 border-t pt-2", children: [_jsx(Button, { variant: "outline", size: "sm", onClick: () => {
|
|
663
|
+
setSelectedItems([]);
|
|
664
|
+
setIsAddPopoverOpen(false);
|
|
665
|
+
}, children: "Cancel" }), _jsxs(Button, { size: "sm", onClick: handleAddSelectedPages, disabled: selectedItems.length === 0 || loading, children: [_jsx(Plus, { className: "mr-2 h-4 w-4" }), "Add", " ", selectedItems.length > 0 ? `${selectedItems.length} ` : "", "Page", selectedItems.length !== 1 ? "s" : ""] })] })] }) })] })), _jsxs("div", { className: "flex items-center gap-2", children: [_jsx(Filter, { className: "h-4 w-4" }), _jsxs("select", { value: filter, onChange: (e) => setFilter(e.target.value), className: "rounded border px-2 py-1 text-xs", children: [_jsx("option", { value: "all", children: "All Items" }), _jsx("option", { value: "pending", children: "Pending" }), _jsx("option", { value: "rejected", children: "Rejected" }), _jsx("option", { value: "approved", children: "All Approved" })] })] }), hasSelectedPages && (_jsx(SimpleIconButton, { label: "Remove Selected", icon: _jsx(Trash2, { className: "h-4 w-4" }), onClick: handleRemoveSelectedPages, disabled: loading })), showCurrentPageButtons && (_jsxs("div", { className: "ml-auto flex items-center gap-2", children: [_jsx("div", { className: "mx-1 h-6 border-l border-gray-300" }), _jsx(SimpleIconButton, { label: `Approve Current Page`, icon: _jsx(Check, { className: "h-4 w-4" }), onClick: handleApproveCurrentPage, disabled: loading, className: currentItemDecision?.decision === "Approved"
|
|
666
|
+
? "text-green-600"
|
|
667
|
+
: "" }), _jsx(SimpleIconButton, { label: `Reject Current Page`, icon: _jsx(X, { className: "h-4 w-4" }), onClick: handleRejectCurrentPage, disabled: loading, className: currentItemDecision?.decision === "Rejected"
|
|
668
|
+
? "text-red-600"
|
|
669
|
+
: "" })] }))] }), _jsx("div", { className: "flex-1 overflow-auto", children: allItemsWithDecisions.length === 0 ? (_jsx("div", { className: "flex h-full items-center justify-center text-sm text-gray-500", children: "No items in review" })) : (_jsx("div", { className: "overflow-x-auto", children: _jsxs("table", { className: "w-full border-collapse text-xs", children: [_jsx("thead", { className: "sticky top-0 border-b bg-white", children: _jsxs("tr", { children: [!isLimitedPreviewUser && (_jsx("th", { className: "w-12 border p-2 text-center font-medium", children: _jsx(Checkbox, { checked: filteredItems.length > 0 &&
|
|
670
|
+
filteredItems.every((item) => selectedPagesForRemoval.has(`${item.itemId}-${item.language}`)), onCheckedChange: (checked) => {
|
|
671
|
+
const newSelection = new Set();
|
|
672
|
+
if (checked) {
|
|
673
|
+
filteredItems.forEach((item) => {
|
|
674
|
+
newSelection.add(`${item.itemId}-${item.language}`);
|
|
675
|
+
});
|
|
676
|
+
}
|
|
677
|
+
setSelectedPagesForRemoval(newSelection);
|
|
678
|
+
}, className: "h-4 w-4" }) })), _jsx("th", { className: "border p-2 text-left font-medium", children: "Item" }), displayAssignments.map((assignment) => (_jsx("th", { className: "min-w-[120px] border p-2 text-center font-medium", children: _jsxs("div", { className: "flex flex-col", children: [_jsx("span", { className: "font-medium", children: assignment.reviewerName }), _jsx("span", { className: "text-xs font-normal text-gray-500", children: assignment.reviewerEmail })] }) }, assignment.assignmentId))), _jsx("th", { className: "min-w-[60px] border p-2 text-center font-medium", children: _jsxs("div", { className: "flex items-center justify-center gap-1.5", children: [_jsx("div", { title: "Total comments", children: _jsx(MessageSquare, { className: "h-3.5 w-3.5" }) }), _jsx("div", { title: "Total suggestions", children: _jsx(Lightbulb, { className: "h-3.5 w-3.5" }) })] }) }), _jsx("th", { className: "min-w-[120px] border p-2 text-center font-medium", children: _jsx("span", { children: "Actions" }) })] }) }), _jsx("tbody", { children: filteredItems.map((item, itemIndex) => {
|
|
679
|
+
const itemKey = `${item.itemId}-${item.language}`;
|
|
680
|
+
const isSelected = selectedPagesForRemoval.has(itemKey);
|
|
681
|
+
const currentItemLanguage = currentItem?.language || "en";
|
|
682
|
+
const itemLanguage = item.language === "*" ? currentItemLanguage : item.language;
|
|
683
|
+
const isCurrentItem = currentItem &&
|
|
684
|
+
currentItem.id === item.itemId &&
|
|
685
|
+
currentItemLanguage === itemLanguage;
|
|
686
|
+
return (_jsxs("tr", { className: isCurrentItem ? "bg-blue-50" : "", children: [!isLimitedPreviewUser && (_jsx("td", { className: "border p-1 text-center", children: _jsx(Checkbox, { checked: isSelected, onCheckedChange: () => togglePageSelection(item.itemId, item.language), onClick: (e) => e.stopPropagation(), className: "h-4 w-4" }) })), _jsx("td", { className: "border p-2", children: _jsxs("div", { className: "-m-1 flex cursor-pointer flex-col rounded p-1 hover:bg-gray-50", onClick: () => handleLoadItem(item.itemId, item.language), title: "Click to load item", children: [_jsxs("div", { className: "flex items-center gap-2", children: [_jsx("span", { className: "font-medium", children: item.name || item.path || item.itemId }), item.language === "*" ? (_jsx(Badge, { variant: "outline", className: "text-xs", children: "All Languages" })) : (_jsx("span", { className: "text-xs text-gray-500", children: item.language.toUpperCase() }))] }), item.includeSubitems && (_jsx("span", { className: "text-xs text-gray-500", children: "(with subitems)" })), !isLimitedPreviewUser &&
|
|
687
|
+
(() => {
|
|
688
|
+
const approvalCount = getApprovalCount(item.itemId, item.language);
|
|
689
|
+
const status = getItemApprovalStatus(item.itemId, item.language);
|
|
690
|
+
return (_jsxs("div", { className: "mt-1 flex items-center gap-1", children: [_jsxs("span", { className: `text-xs ${status === "approved"
|
|
691
|
+
? "font-semibold text-green-600"
|
|
692
|
+
: status === "rejected"
|
|
693
|
+
? "font-semibold text-red-600"
|
|
694
|
+
: "text-gray-500"}`, children: [approvalCount, "/", requiredApprovals, " ", "approvals"] }), status === "approved" && (_jsx(Check, { className: "h-3 w-3 text-green-600" })), status === "rejected" && (_jsx(X, { className: "h-3 w-3 text-red-600" }))] }));
|
|
695
|
+
})()] }) }), displayAssignments.map((assignment) => {
|
|
696
|
+
return (_jsx("td", { className: "border p-1 text-center", children: getDecisionCell(assignment, item) }, assignment.assignmentId));
|
|
697
|
+
}), _jsx("td", { className: "border p-1 text-center", children: loadingCounts ? (_jsx(Loader2, { className: "mx-auto h-3 w-3 animate-spin" })) : (_jsx("div", { className: "flex items-center justify-center gap-2 text-xs", children: (() => {
|
|
698
|
+
// If a reviewer is selected, filter counts by that reviewer
|
|
699
|
+
// Otherwise, show total counts for all reviewers
|
|
700
|
+
let commentCount;
|
|
701
|
+
let suggestionCount;
|
|
702
|
+
if (selectedReviewerId) {
|
|
703
|
+
// Find the selected reviewer's assignment
|
|
704
|
+
const selectedAssignment = assignments.find((a) => a.assignmentId === selectedReviewerId);
|
|
705
|
+
if (selectedAssignment) {
|
|
706
|
+
commentCount = getCommentCount(item.itemId, item.language, selectedAssignment.reviewerEmail);
|
|
707
|
+
suggestionCount = getSuggestionCount(item.itemId, item.language, selectedAssignment.reviewerEmail);
|
|
708
|
+
}
|
|
709
|
+
else {
|
|
710
|
+
// Fallback to total counts if assignment not found
|
|
711
|
+
commentCount = getTotalCommentCount(item.itemId, item.language);
|
|
712
|
+
suggestionCount = getTotalSuggestionCount(item.itemId, item.language);
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
else {
|
|
716
|
+
// No reviewer selected, show total counts
|
|
717
|
+
commentCount = getTotalCommentCount(item.itemId, item.language);
|
|
718
|
+
suggestionCount = getTotalSuggestionCount(item.itemId, item.language);
|
|
719
|
+
}
|
|
720
|
+
return (_jsxs(_Fragment, { children: [commentCount > 0 && (_jsxs("div", { className: "flex items-center gap-0.5", title: `${commentCount} comment${commentCount !== 1 ? "s" : ""}`, children: [_jsx(MessageSquare, { className: "h-3 w-3" }), _jsx("span", { children: commentCount })] })), suggestionCount > 0 && (_jsxs("div", { className: "flex items-center gap-0.5", title: `${suggestionCount} suggestion${suggestionCount !== 1 ? "s" : ""}`, children: [_jsx(Lightbulb, { className: "h-3 w-3" }), _jsx("span", { children: suggestionCount })] })), commentCount === 0 &&
|
|
721
|
+
suggestionCount === 0 && (_jsx("span", { className: "text-xs text-gray-400", children: "-" }))] }));
|
|
722
|
+
})() })) }), _jsx("td", { className: "border p-1 text-center", children: _jsxs("div", { className: "flex items-center justify-center gap-1", children: [(() => {
|
|
723
|
+
// Find the current user's assignment for this item (check all assignments, not just displayed ones)
|
|
724
|
+
const currentUserAssignment = assignments.find((a) => currentUserEmail &&
|
|
725
|
+
a.reviewerEmail.toLowerCase() ===
|
|
726
|
+
currentUserEmail.toLowerCase());
|
|
727
|
+
if (currentUserAssignment) {
|
|
728
|
+
const decision = getDecision(currentUserAssignment, item.itemId, item.language);
|
|
729
|
+
return (_jsxs(_Fragment, { children: [_jsx(SimpleIconButton, { label: "Approve", icon: _jsx(Check, { className: "h-4 w-4" }), onClick: () => handleMakeDecision(currentUserAssignment.assignmentId, item.itemId, item.language, "Approved"), disabled: loading, className: decision?.decision === "Approved"
|
|
730
|
+
? "text-green-600"
|
|
731
|
+
: "" }), _jsx(SimpleIconButton, { label: "Reject", icon: _jsx(X, { className: "h-4 w-4" }), onClick: () => handleMakeDecision(currentUserAssignment.assignmentId, item.itemId, item.language, "Rejected"), disabled: loading, className: decision?.decision === "Rejected"
|
|
732
|
+
? "text-red-600"
|
|
733
|
+
: "" })] }));
|
|
734
|
+
}
|
|
735
|
+
return null;
|
|
736
|
+
})(), !isLimitedPreviewUser && (_jsx(Button, { size: "sm", variant: "ghost", className: "h-6 w-6 p-0", onClick: () => handleRemovePage(item.itemId, item.language), disabled: loading, title: "Remove page", children: _jsx(Trash2, { className: "h-3 w-3" }) }))] }) })] }, `${item.itemId}-${item.language}-${itemIndex}`));
|
|
737
|
+
}) })] }) })) })] }));
|
|
738
|
+
}
|
|
739
|
+
//# sourceMappingURL=DecisionsMatrix.js.map
|