@parhelia/core 0.1.12881 → 0.1.12882
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/components/ui/card.d.ts +1 -3
- package/dist/components/ui/card.js +2 -2
- package/dist/components/ui/card.js.map +1 -1
- package/dist/components/ui/context-menu.js +2 -2
- package/dist/config/config.js +7 -8
- package/dist/config/config.js.map +1 -1
- package/dist/config/types.d.ts +7 -0
- package/dist/config/types.js.map +1 -1
- package/dist/editor/FieldActionsOverlay.d.ts +1 -0
- package/dist/editor/FieldActionsOverlay.js +45 -1
- package/dist/editor/FieldActionsOverlay.js.map +1 -1
- package/dist/editor/FieldListField.d.ts +1 -1
- package/dist/editor/FieldListField.js +18 -20
- package/dist/editor/FieldListField.js.map +1 -1
- package/dist/editor/ImageEditor.d.ts +1 -6
- package/dist/editor/ImageEditor.js +3 -19
- package/dist/editor/ImageEditor.js.map +1 -1
- package/dist/editor/PictureEditor.d.ts +1 -2
- package/dist/editor/PictureEditor.js +14 -5
- package/dist/editor/PictureEditor.js.map +1 -1
- package/dist/editor/ai/Agents.js +2 -2
- package/dist/editor/ai/Agents.js.map +1 -1
- package/dist/editor/ai/GuidanceOverlay.js +11 -1
- package/dist/editor/ai/GuidanceOverlay.js.map +1 -1
- package/dist/editor/ai/InlineAiDialog.js +11 -22
- package/dist/editor/ai/InlineAiDialog.js.map +1 -1
- package/dist/editor/ai/InlineAiTrigger.js +57 -17
- package/dist/editor/ai/InlineAiTrigger.js.map +1 -1
- package/dist/editor/ai/dialogs/capturePageDom.js +36 -66
- package/dist/editor/ai/dialogs/capturePageDom.js.map +1 -1
- package/dist/editor/ai/dialogs/capturePageScreenshot.js +162 -281
- package/dist/editor/ai/dialogs/capturePageScreenshot.js.map +1 -1
- package/dist/editor/ai/terminal/agentSessionState.d.ts +0 -3
- package/dist/editor/ai/terminal/agentSessionState.js +1 -3
- package/dist/editor/ai/terminal/agentSessionState.js.map +1 -1
- package/dist/editor/ai/terminal/agentStartRequest.d.ts +1 -2
- package/dist/editor/ai/terminal/agentStartRequest.js +1 -2
- package/dist/editor/ai/terminal/agentStartRequest.js.map +1 -1
- package/dist/editor/ai/terminal/components/AgentCostDisplay.js +1 -1
- package/dist/editor/ai/terminal/components/AgentCostDisplay.js.map +1 -1
- package/dist/editor/ai/terminal/components/AgentDocumentList.d.ts +0 -7
- package/dist/editor/ai/terminal/components/AgentDocumentList.js +13 -55
- package/dist/editor/ai/terminal/components/AgentDocumentList.js.map +1 -1
- package/dist/editor/ai/terminal/components/AgentFullPromptControls.d.ts +1 -3
- package/dist/editor/ai/terminal/components/AgentFullPromptControls.js +14 -22
- package/dist/editor/ai/terminal/components/AgentFullPromptControls.js.map +1 -1
- package/dist/editor/ai/terminal/components/AgentModeSelector.js +4 -4
- package/dist/editor/ai/terminal/components/AgentModeSelector.js.map +1 -1
- package/dist/editor/ai/terminal/components/AgentPromptActionButtons.js +4 -4
- package/dist/editor/ai/terminal/components/AgentPromptActionButtons.js.map +1 -1
- package/dist/editor/ai/terminal/components/AgentPromptComposer.js +1 -1
- package/dist/editor/ai/terminal/components/AgentPromptComposer.js.map +1 -1
- package/dist/editor/ai/terminal/components/AgentPromptInputArea.d.ts +1 -2
- package/dist/editor/ai/terminal/components/AgentPromptInputArea.js +11 -8
- package/dist/editor/ai/terminal/components/AgentPromptInputArea.js.map +1 -1
- package/dist/editor/ai/terminal/components/AgentPromptTrayPopovers.d.ts +4 -1
- package/dist/editor/ai/terminal/components/AgentPromptTrayPopovers.js +14 -31
- package/dist/editor/ai/terminal/components/AgentPromptTrayPopovers.js.map +1 -1
- package/dist/editor/ai/terminal/components/AgentSettingsPopover.js +1 -1
- package/dist/editor/ai/terminal/components/AgentSettingsPopover.js.map +1 -1
- package/dist/editor/ai/terminal/components/AgentTerminalFullLayout.d.ts +1 -2
- package/dist/editor/ai/terminal/components/AgentTerminalFullLayout.js +4 -2
- package/dist/editor/ai/terminal/components/AgentTerminalFullLayout.js.map +1 -1
- package/dist/editor/ai/terminal/components/AgentTerminalMessageGroups.js +1 -1
- package/dist/editor/ai/terminal/components/AgentTerminalMessageGroups.js.map +1 -1
- package/dist/editor/ai/terminal/components/AgentTerminalView.js +2 -13
- package/dist/editor/ai/terminal/components/AgentTerminalView.js.map +1 -1
- package/dist/editor/ai/terminal/components/AiResponseMessage.js +14 -16
- package/dist/editor/ai/terminal/components/AiResponseMessage.js.map +1 -1
- package/dist/editor/ai/terminal/components/ContextInfoBar.js +2 -22
- package/dist/editor/ai/terminal/components/ContextInfoBar.js.map +1 -1
- package/dist/editor/ai/terminal/components/QueuedPromptsPanel.js +26 -37
- package/dist/editor/ai/terminal/components/QueuedPromptsPanel.js.map +1 -1
- package/dist/editor/ai/terminal/components/UserMessage.d.ts +1 -2
- package/dist/editor/ai/terminal/components/UserMessage.js +8 -144
- package/dist/editor/ai/terminal/components/UserMessage.js.map +1 -1
- package/dist/editor/ai/terminal/useAgentPromptComposerHandlers.js +1 -1
- package/dist/editor/ai/terminal/useAgentPromptComposerHandlers.js.map +1 -1
- package/dist/editor/ai/terminal/useAgentSessionSync.d.ts +0 -1
- package/dist/editor/ai/terminal/useAgentSubmitHandlers.d.ts +1 -3
- package/dist/editor/ai/terminal/useAgentSubmitHandlers.js +3 -9
- package/dist/editor/ai/terminal/useAgentSubmitHandlers.js.map +1 -1
- package/dist/editor/ai/terminal/useAgentTerminalController.js +0 -7
- package/dist/editor/ai/terminal/useAgentTerminalController.js.map +1 -1
- package/dist/editor/ai/terminal/useAgentTerminalUiState.js +1 -1
- package/dist/editor/ai/terminal/useAgentTerminalUiState.js.map +1 -1
- package/dist/editor/ai/terminal/useAgentUserMessageSocketHandler.js +1 -3
- package/dist/editor/ai/terminal/useAgentUserMessageSocketHandler.js.map +1 -1
- package/dist/editor/ai/useInlineAiPosition.d.ts +1 -1
- package/dist/editor/ai/useInlineAiPosition.js +52 -22
- package/dist/editor/ai/useInlineAiPosition.js.map +1 -1
- package/dist/editor/ai-image-editor/AiImageResultOverlay.js +62 -30
- package/dist/editor/ai-image-editor/AiImageResultOverlay.js.map +1 -1
- package/dist/editor/client/EditorShell.d.ts +1 -5
- package/dist/editor/client/EditorShell.js +136 -285
- package/dist/editor/client/EditorShell.js.map +1 -1
- package/dist/editor/client/editContext.d.ts +5 -33
- package/dist/editor/client/editContext.js.map +1 -1
- package/dist/editor/client/hooks/useSocketMessageHandler.js +17 -14
- package/dist/editor/client/hooks/useSocketMessageHandler.js.map +1 -1
- package/dist/editor/client/itemsRepository.d.ts +0 -2
- package/dist/editor/client/itemsRepository.js +8 -15
- package/dist/editor/client/itemsRepository.js.map +1 -1
- package/dist/editor/client/operations.d.ts +1 -1
- package/dist/editor/client/operations.js +17 -41
- package/dist/editor/client/operations.js.map +1 -1
- package/dist/editor/client/pageModelBuilder.js +7 -24
- package/dist/editor/client/pageModelBuilder.js.map +1 -1
- package/dist/editor/commands/handlers/uiActionHandlers.js +5 -1
- package/dist/editor/commands/handlers/uiActionHandlers.js.map +1 -1
- package/dist/editor/editor-warnings/FinalWorkflowStateReadOnly.js +5 -0
- package/dist/editor/editor-warnings/FinalWorkflowStateReadOnly.js.map +1 -1
- package/dist/editor/editor-warnings/ItemLocked.js +6 -3
- package/dist/editor/editor-warnings/ItemLocked.js.map +1 -1
- package/dist/editor/field-types/MultiLineText.js +3 -10
- package/dist/editor/field-types/MultiLineText.js.map +1 -1
- package/dist/editor/field-types/RawEditor.js +1 -8
- package/dist/editor/field-types/RawEditor.js.map +1 -1
- package/dist/editor/field-types/RichTextEditorComponent.js +45 -156
- package/dist/editor/field-types/RichTextEditorComponent.js.map +1 -1
- package/dist/editor/field-types/SingleLineText.js +3 -10
- package/dist/editor/field-types/SingleLineText.js.map +1 -1
- package/dist/editor/field-types/richtext/components/ReactSlate.js +2 -8
- package/dist/editor/field-types/richtext/components/ReactSlate.js.map +1 -1
- package/dist/editor/field-types/richtext/contextMenuFactory.d.ts +2 -1
- package/dist/editor/field-types/richtext/contextMenuFactory.js +303 -100
- package/dist/editor/field-types/richtext/contextMenuFactory.js.map +1 -1
- package/dist/editor/field-types/richtext/types.d.ts +0 -2
- package/dist/editor/field-types/richtext/types.js.map +1 -1
- package/dist/editor/media-selector/MediaFolderBrowser.d.ts +2 -1
- package/dist/editor/media-selector/MediaFolderBrowser.js +19 -9
- package/dist/editor/media-selector/MediaFolderBrowser.js.map +1 -1
- package/dist/editor/media-selector/TreeSelector.js +30 -24
- package/dist/editor/media-selector/TreeSelector.js.map +1 -1
- package/dist/editor/media-selector/UploadZone.d.ts +2 -1
- package/dist/editor/media-selector/UploadZone.js +21 -9
- package/dist/editor/media-selector/UploadZone.js.map +1 -1
- package/dist/editor/menubar/PageSelector.js +2 -8
- package/dist/editor/menubar/PageSelector.js.map +1 -1
- package/dist/editor/menubar/VersionPreviewCard.js +249 -4
- package/dist/editor/menubar/VersionPreviewCard.js.map +1 -1
- package/dist/editor/menubar/toolbar-sections/EditControls.js +2 -2
- package/dist/editor/menubar/toolbar-sections/EditControls.js.map +1 -1
- package/dist/editor/menubar/toolbar-sections/ManualBrowser.d.ts +10 -0
- package/dist/editor/menubar/toolbar-sections/ManualBrowser.js +462 -63
- package/dist/editor/menubar/toolbar-sections/ManualBrowser.js.map +1 -1
- package/dist/editor/menubar/toolbar-sections/ViewportControls.js +1 -1
- package/dist/editor/page-editor-chrome/CommentHighlightings.d.ts +2 -5
- package/dist/editor/page-editor-chrome/CommentHighlightings.js +215 -340
- package/dist/editor/page-editor-chrome/CommentHighlightings.js.map +1 -1
- package/dist/editor/page-editor-chrome/FeedbackHighlightBadge.d.ts +1 -5
- package/dist/editor/page-editor-chrome/FeedbackHighlightBadge.js +4 -11
- package/dist/editor/page-editor-chrome/FeedbackHighlightBadge.js.map +1 -1
- package/dist/editor/page-editor-chrome/FieldActionIndicator.js +13 -21
- package/dist/editor/page-editor-chrome/FieldActionIndicator.js.map +1 -1
- package/dist/editor/page-editor-chrome/FieldEditedIndicator.js +29 -23
- package/dist/editor/page-editor-chrome/FieldEditedIndicator.js.map +1 -1
- package/dist/editor/page-editor-chrome/FrameMenu.js +19 -110
- package/dist/editor/page-editor-chrome/FrameMenu.js.map +1 -1
- package/dist/editor/page-editor-chrome/InlineEditor.d.ts +7 -0
- package/dist/editor/page-editor-chrome/InlineEditor.js +1719 -0
- package/dist/editor/page-editor-chrome/InlineEditor.js.map +1 -0
- package/dist/editor/page-editor-chrome/LockedFieldIndicator.d.ts +2 -3
- package/dist/editor/page-editor-chrome/LockedFieldIndicator.js +45 -148
- package/dist/editor/page-editor-chrome/LockedFieldIndicator.js.map +1 -1
- package/dist/editor/page-editor-chrome/PageEditorChrome.d.ts +0 -2
- package/dist/editor/page-editor-chrome/PageEditorChrome.js +21 -25
- package/dist/editor/page-editor-chrome/PageEditorChrome.js.map +1 -1
- package/dist/editor/page-editor-chrome/PictureEditorOverlay.js +128 -163
- package/dist/editor/page-editor-chrome/PictureEditorOverlay.js.map +1 -1
- package/dist/editor/page-editor-chrome/PlaceholderDropZone.d.ts +1 -1
- package/dist/editor/page-editor-chrome/PlaceholderDropZone.js +3 -6
- package/dist/editor/page-editor-chrome/PlaceholderDropZone.js.map +1 -1
- package/dist/editor/page-editor-chrome/PlaceholderDropZones.d.ts +2 -1
- package/dist/editor/page-editor-chrome/PlaceholderDropZones.js +146 -83
- package/dist/editor/page-editor-chrome/PlaceholderDropZones.js.map +1 -1
- package/dist/editor/page-editor-chrome/SuggestionHighlightings.d.ts +2 -5
- package/dist/editor/page-editor-chrome/SuggestionHighlightings.js +63 -144
- package/dist/editor/page-editor-chrome/SuggestionHighlightings.js.map +1 -1
- package/dist/editor/page-editor-chrome/VersionDiffHighlightings.d.ts +2 -1
- package/dist/editor/page-editor-chrome/VersionDiffHighlightings.js +30 -101
- package/dist/editor/page-editor-chrome/VersionDiffHighlightings.js.map +1 -1
- package/dist/editor/page-editor-chrome/overlay/IframeOverlayProvider.d.ts +1 -10
- package/dist/editor/page-editor-chrome/overlay/IframeOverlayProvider.js +122 -105
- package/dist/editor/page-editor-chrome/overlay/IframeOverlayProvider.js.map +1 -1
- package/dist/editor/page-editor-chrome/overlay/geometry.d.ts +4 -11
- package/dist/editor/page-editor-chrome/overlay/geometry.js +36 -139
- package/dist/editor/page-editor-chrome/overlay/geometry.js.map +1 -1
- package/dist/editor/page-editor-chrome/overlay/iframeAccess.d.ts +2 -0
- package/dist/editor/page-editor-chrome/overlay/iframeAccess.js +21 -0
- package/dist/editor/page-editor-chrome/overlay/iframeAccess.js.map +1 -0
- package/dist/editor/page-editor-chrome/useInlineAICompletion.d.ts +7 -0
- package/dist/editor/page-editor-chrome/useInlineAICompletion.js +758 -0
- package/dist/editor/page-editor-chrome/useInlineAICompletion.js.map +1 -0
- package/dist/editor/page-viewer/EditorForm.js +1 -17
- package/dist/editor/page-viewer/EditorForm.js.map +1 -1
- package/dist/editor/page-viewer/MiniMap.d.ts +2 -2
- package/dist/editor/page-viewer/MiniMap.js +364 -176
- package/dist/editor/page-viewer/MiniMap.js.map +1 -1
- package/dist/editor/page-viewer/PageViewer.js +13 -40
- package/dist/editor/page-viewer/PageViewer.js.map +1 -1
- package/dist/editor/page-viewer/PageViewerFrame.d.ts +5 -0
- package/dist/editor/page-viewer/PageViewerFrame.js +1509 -1527
- package/dist/editor/page-viewer/PageViewerFrame.js.map +1 -1
- package/dist/editor/page-viewer/pageModelSkeletonBuilder.d.ts +3 -0
- package/dist/editor/page-viewer/pageModelSkeletonBuilder.js +796 -0
- package/dist/editor/page-viewer/pageModelSkeletonBuilder.js.map +1 -0
- package/dist/editor/page-viewer/pageViewContext.d.ts +0 -32
- package/dist/editor/page-viewer/pageViewContext.js +6 -37
- package/dist/editor/page-viewer/pageViewContext.js.map +1 -1
- package/dist/editor/reviews/Comment.d.ts +1 -2
- package/dist/editor/reviews/Comment.js +4 -9
- package/dist/editor/reviews/Comment.js.map +1 -1
- package/dist/editor/reviews/CommentEditor.js +1 -1
- package/dist/editor/reviews/CommentEditor.js.map +1 -1
- package/dist/editor/reviews/CommentPopover.js +9 -68
- package/dist/editor/reviews/CommentPopover.js.map +1 -1
- package/dist/editor/reviews/CommentView.js +4 -24
- package/dist/editor/reviews/CommentView.js.map +1 -1
- package/dist/editor/reviews/Comments.d.ts +2 -0
- package/dist/editor/reviews/Comments.js +30 -29
- package/dist/editor/reviews/Comments.js.map +1 -1
- package/dist/editor/reviews/FeedbackCard.d.ts +2 -4
- package/dist/editor/reviews/FeedbackCard.js +5 -5
- package/dist/editor/reviews/FeedbackCard.js.map +1 -1
- package/dist/editor/reviews/SuggestedEdit.js +6 -4
- package/dist/editor/reviews/SuggestedEdit.js.map +1 -1
- package/dist/editor/reviews/SuggestionDisplayPopover.js +2 -3
- package/dist/editor/reviews/SuggestionDisplayPopover.js.map +1 -1
- package/dist/editor/reviews/commentAi.js +27 -96
- package/dist/editor/reviews/commentAi.js.map +1 -1
- package/dist/editor/reviews/feedbackSelection.js +4 -32
- package/dist/editor/reviews/feedbackSelection.js.map +1 -1
- package/dist/editor/services/agentService.d.ts +0 -15
- package/dist/editor/services/agentService.js +1 -11
- package/dist/editor/services/agentService.js.map +1 -1
- package/dist/editor/services/contentService.d.ts +1 -0
- package/dist/editor/services/contentService.js.map +1 -1
- package/dist/editor/services/reviewsService.d.ts +2 -2
- package/dist/editor/services/reviewsService.js.map +1 -1
- package/dist/editor/settings/SettingsView.js +2 -2
- package/dist/editor/settings/SettingsView.js.map +1 -1
- package/dist/editor/settings/panels/ProjectTemplatesPanel.js +1 -1
- package/dist/editor/settings/panels/ProjectTemplatesPanel.js.map +1 -1
- package/dist/editor/settings/panels/ProvidersPanel.js +3 -2
- package/dist/editor/settings/panels/ProvidersPanel.js.map +1 -1
- package/dist/editor/sidebar/MorePanelsButton.js +1 -1
- package/dist/editor/sidebar/MorePanelsButton.js.map +1 -1
- package/dist/editor/sidebar/Workbox.js +1 -1
- package/dist/editor/sidebar/Workbox.js.map +1 -1
- package/dist/editor/ui/IconSelectorDialog.js +1 -1
- package/dist/editor/ui/IconSelectorDialog.js.map +1 -1
- package/dist/editor/ui/SimpleIconButton.d.ts +2 -2
- package/dist/editor/ui/SimpleIconButton.js +1 -1
- package/dist/editor/ui/SimpleIconButton.js.map +1 -1
- package/dist/editor/utils.d.ts +17 -1
- package/dist/editor/utils.js +143 -0
- package/dist/editor/utils.js.map +1 -1
- package/dist/editor/version-diff/versionDiffTargets.d.ts +8 -3
- package/dist/editor/version-diff/versionDiffTargets.js +94 -37
- package/dist/editor/version-diff/versionDiffTargets.js.map +1 -1
- package/dist/editor/views/MediaFolderEditView.js +1 -1
- package/dist/editor/views/MediaFolderEditView.js.map +1 -1
- package/dist/revision.d.ts +2 -2
- package/dist/revision.js +2 -2
- package/dist/splash-screen/DialogWrappers.js +2 -2
- package/dist/splash-screen/DialogWrappers.js.map +1 -1
- package/dist/splash-screen/ModernSplashScreen.js +3 -11
- package/dist/splash-screen/ModernSplashScreen.js.map +1 -1
- package/dist/splash-screen/NewPage.js +5 -7
- package/dist/splash-screen/NewPage.js.map +1 -1
- package/dist/splash-screen/OpenPage.js +3 -5
- package/dist/splash-screen/OpenPage.js.map +1 -1
- package/dist/splash-screen/RecentPages.js +3 -3
- package/dist/splash-screen/RecentPages.js.map +1 -1
- package/package.json +1 -2
- package/styles.css +0 -49
- package/dist/editor/ai/terminal/components/AgentEditHistoryButton.d.ts +0 -5
- package/dist/editor/ai/terminal/components/AgentEditHistoryButton.js +0 -12
- package/dist/editor/ai/terminal/components/AgentEditHistoryButton.js.map +0 -1
- package/dist/editor/bridge/BridgeClient.d.ts +0 -80
- package/dist/editor/bridge/BridgeClient.js +0 -417
- package/dist/editor/bridge/BridgeClient.js.map +0 -1
- package/dist/editor/field-types/useFormFieldCaretPresence.d.ts +0 -13
- package/dist/editor/field-types/useFormFieldCaretPresence.js +0 -92
- package/dist/editor/field-types/useFormFieldCaretPresence.js.map +0 -1
- package/dist/editor/page-editor-chrome/BridgeInlineFormatOverlay.d.ts +0 -6
- package/dist/editor/page-editor-chrome/BridgeInlineFormatOverlay.js +0 -123
- package/dist/editor/page-editor-chrome/BridgeInlineFormatOverlay.js.map +0 -1
- package/dist/editor/page-editor-chrome/useBridgeInlineEditing.d.ts +0 -26
- package/dist/editor/page-editor-chrome/useBridgeInlineEditing.js +0 -222
- package/dist/editor/page-editor-chrome/useBridgeInlineEditing.js.map +0 -1
- package/dist/editor/page-viewer/bridgeFieldPatch.d.ts +0 -20
- package/dist/editor/page-viewer/bridgeFieldPatch.js +0 -33
- package/dist/editor/page-viewer/bridgeFieldPatch.js.map +0 -1
- package/dist/editor/reviews/commentTransientSelection.d.ts +0 -23
- package/dist/editor/reviews/commentTransientSelection.js +0 -7
- package/dist/editor/reviews/commentTransientSelection.js.map +0 -1
- package/dist/editor/reviews/feedbackOrdering.d.ts +0 -5
- package/dist/editor/reviews/feedbackOrdering.js +0 -27
- package/dist/editor/reviews/feedbackOrdering.js.map +0 -1
- package/dist/editor/reviews/suggestedEditState.d.ts +0 -12
- package/dist/editor/reviews/suggestedEditState.js +0 -90
- package/dist/editor/reviews/suggestedEditState.js.map +0 -1
- package/dist/editor/reviews/suggestionDisplayValue.d.ts +0 -43
- package/dist/editor/reviews/suggestionDisplayValue.js +0 -93
- package/dist/editor/reviews/suggestionDisplayValue.js.map +0 -1
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { SuggestedEdit } from "../../types";
|
|
2
|
-
type UpsertSuggestedEditOptions = {
|
|
3
|
-
/**
|
|
4
|
-
* Save acknowledgements should only replace local state if the user has not
|
|
5
|
-
* typed a newer value while the request was in flight.
|
|
6
|
-
*/
|
|
7
|
-
expectedNewValue?: string;
|
|
8
|
-
source?: "local" | "save-ack" | "socket";
|
|
9
|
-
};
|
|
10
|
-
export declare function upsertSuggestedEdit(suggestedEdits: SuggestedEdit[], incoming: SuggestedEdit, options?: UpsertSuggestedEditOptions): SuggestedEdit[];
|
|
11
|
-
export declare function replacePendingSuggestionForSameField(suggestedEdits: SuggestedEdit[], incoming: SuggestedEdit): SuggestedEdit[];
|
|
12
|
-
export {};
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
const locallyEditedSuggestedEdits = new Map();
|
|
2
|
-
function toTime(value) {
|
|
3
|
-
if (!value)
|
|
4
|
-
return 0;
|
|
5
|
-
const timestamp = new Date(value).getTime();
|
|
6
|
-
return Number.isFinite(timestamp) ? timestamp : 0;
|
|
7
|
-
}
|
|
8
|
-
function isIncomingOlder(current, incoming) {
|
|
9
|
-
const currentTime = toTime(current.updated);
|
|
10
|
-
const incomingTime = toTime(incoming.updated);
|
|
11
|
-
return currentTime > 0 && incomingTime > 0 && currentTime > incomingTime;
|
|
12
|
-
}
|
|
13
|
-
function rememberLocalSuggestedEdit(edit) {
|
|
14
|
-
locallyEditedSuggestedEdits.set(edit.id, {
|
|
15
|
-
author: edit.author,
|
|
16
|
-
fieldId: edit.fieldId,
|
|
17
|
-
itemId: edit.itemId,
|
|
18
|
-
mainItemLanguage: edit.mainItemLanguage,
|
|
19
|
-
mainItemVersion: edit.mainItemVersion,
|
|
20
|
-
newValue: edit.newValue,
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
function forgetLocalSuggestedEdit(edit) {
|
|
24
|
-
if (edit.status !== "pending") {
|
|
25
|
-
locallyEditedSuggestedEdits.delete(edit.id);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
function hasNewerLocalSuggestionValue(current, incoming, options) {
|
|
29
|
-
if (options.source !== "socket")
|
|
30
|
-
return false;
|
|
31
|
-
const local = locallyEditedSuggestedEdits.get(incoming.id);
|
|
32
|
-
if (!local)
|
|
33
|
-
return false;
|
|
34
|
-
if (local.newValue === incoming.newValue)
|
|
35
|
-
return false;
|
|
36
|
-
return (current.newValue === local.newValue &&
|
|
37
|
-
incoming.status === "pending" &&
|
|
38
|
-
incoming.author === local.author &&
|
|
39
|
-
incoming.fieldId === local.fieldId &&
|
|
40
|
-
incoming.itemId === local.itemId &&
|
|
41
|
-
incoming.mainItemLanguage === local.mainItemLanguage &&
|
|
42
|
-
incoming.mainItemVersion === local.mainItemVersion);
|
|
43
|
-
}
|
|
44
|
-
function shouldAcceptSuggestedEditUpdate(current, incoming, options) {
|
|
45
|
-
if (!current)
|
|
46
|
-
return true;
|
|
47
|
-
if (hasNewerLocalSuggestionValue(current, incoming, options)) {
|
|
48
|
-
return false;
|
|
49
|
-
}
|
|
50
|
-
if (options.expectedNewValue !== undefined &&
|
|
51
|
-
current.newValue !== options.expectedNewValue) {
|
|
52
|
-
return false;
|
|
53
|
-
}
|
|
54
|
-
return !isIncomingOlder(current, incoming);
|
|
55
|
-
}
|
|
56
|
-
export function upsertSuggestedEdit(suggestedEdits, incoming, options = {}) {
|
|
57
|
-
const index = suggestedEdits.findIndex((edit) => edit.id === incoming.id);
|
|
58
|
-
if (index !== -1) {
|
|
59
|
-
const acceptUpdate = shouldAcceptSuggestedEditUpdate(suggestedEdits[index], incoming, options);
|
|
60
|
-
if (!acceptUpdate) {
|
|
61
|
-
return suggestedEdits;
|
|
62
|
-
}
|
|
63
|
-
const updated = [...suggestedEdits];
|
|
64
|
-
updated[index] = incoming;
|
|
65
|
-
if (options.source === "local") {
|
|
66
|
-
rememberLocalSuggestedEdit(incoming);
|
|
67
|
-
}
|
|
68
|
-
else {
|
|
69
|
-
forgetLocalSuggestedEdit(incoming);
|
|
70
|
-
}
|
|
71
|
-
return updated;
|
|
72
|
-
}
|
|
73
|
-
if (options.source === "local") {
|
|
74
|
-
rememberLocalSuggestedEdit(incoming);
|
|
75
|
-
}
|
|
76
|
-
return [...suggestedEdits, incoming];
|
|
77
|
-
}
|
|
78
|
-
export function replacePendingSuggestionForSameField(suggestedEdits, incoming) {
|
|
79
|
-
return [
|
|
80
|
-
...suggestedEdits.filter((edit) => !(edit.status === "pending" &&
|
|
81
|
-
edit.mainItemId === incoming.mainItemId &&
|
|
82
|
-
edit.mainItemLanguage === incoming.mainItemLanguage &&
|
|
83
|
-
edit.mainItemVersion === incoming.mainItemVersion &&
|
|
84
|
-
edit.itemId === incoming.itemId &&
|
|
85
|
-
edit.fieldId === incoming.fieldId &&
|
|
86
|
-
edit.author === incoming.author)),
|
|
87
|
-
incoming,
|
|
88
|
-
];
|
|
89
|
-
}
|
|
90
|
-
//# sourceMappingURL=suggestedEditState.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"suggestedEditState.js","sourceRoot":"","sources":["../../../src/editor/reviews/suggestedEditState.ts"],"names":[],"mappings":"AAkBA,MAAM,2BAA2B,GAAG,IAAI,GAAG,EAAmC,CAAC;AAE/E,SAAS,MAAM,CAAC,KAAyB;IACvC,IAAI,CAAC,KAAK;QAAE,OAAO,CAAC,CAAC;IACrB,MAAM,SAAS,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC;IAC5C,OAAO,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;AACpD,CAAC;AAED,SAAS,eAAe,CAAC,OAAsB,EAAE,QAAuB;IACtE,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAC5C,MAAM,YAAY,GAAG,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IAC9C,OAAO,WAAW,GAAG,CAAC,IAAI,YAAY,GAAG,CAAC,IAAI,WAAW,GAAG,YAAY,CAAC;AAC3E,CAAC;AAED,SAAS,0BAA0B,CAAC,IAAmB;IACrD,2BAA2B,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,EAAE;QACvC,MAAM,EAAE,IAAI,CAAC,MAAM;QACnB,OAAO,EAAE,IAAI,CAAC,OAAO;QACrB,MAAM,EAAE,IAAI,CAAC,MAAM;QACnB,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;QACvC,eAAe,EAAE,IAAI,CAAC,eAAe;QACrC,QAAQ,EAAE,IAAI,CAAC,QAAQ;KACxB,CAAC,CAAC;AACL,CAAC;AAED,SAAS,w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B,KAAK,QAAQ,CAAC,gBAAgB;YACnD,IAAI,CAAC,eAAe,KAAK,QAAQ,CAAC,eAAe;YACjD,IAAI,CAAC,MAAM,KAAK,QAAQ,CAAC,MAAM;YAC/B,IAAI,CAAC,OAAO,KAAK,QAAQ,CAAC,OAAO;YACjC,IAAI,CAAC,MAAM,KAAK,QAAQ,CAAC,MAAM,CAChC,CACJ;QACD,QAAQ;KACT,CAAC;AACJ,CAAC"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { SuggestedEdit } from "../../types";
|
|
2
|
-
export type SuggestionDisplayMode = "baseline" | "suggestions";
|
|
3
|
-
export type SuggestionDisplayFormat = "plain" | "diff";
|
|
4
|
-
export type SuggestionDisplayField = {
|
|
5
|
-
fieldId: string;
|
|
6
|
-
itemId: string;
|
|
7
|
-
language: string;
|
|
8
|
-
version: number;
|
|
9
|
-
pageItemId?: string;
|
|
10
|
-
pageItemVersion?: number | null;
|
|
11
|
-
};
|
|
12
|
-
export type SuggestionDisplayModifiedField = {
|
|
13
|
-
fieldId: string;
|
|
14
|
-
item: {
|
|
15
|
-
id: string;
|
|
16
|
-
language: string;
|
|
17
|
-
version: number;
|
|
18
|
-
};
|
|
19
|
-
value: string | null;
|
|
20
|
-
};
|
|
21
|
-
export type SuggestionDisplayResult = {
|
|
22
|
-
baselineValue: string;
|
|
23
|
-
mergedValue: string;
|
|
24
|
-
displayValue: string;
|
|
25
|
-
suggestions: SuggestedEdit[];
|
|
26
|
-
hasSuggestions: boolean;
|
|
27
|
-
};
|
|
28
|
-
export declare function getPendingFieldSuggestions(suggestedEdits: SuggestedEdit[], field: SuggestionDisplayField): SuggestedEdit[];
|
|
29
|
-
export declare function getBaselineFieldValue({ repositoryValue, modifiedFields, field, }: {
|
|
30
|
-
repositoryValue: string | null | undefined;
|
|
31
|
-
modifiedFields?: SuggestionDisplayModifiedField[];
|
|
32
|
-
field: SuggestionDisplayField;
|
|
33
|
-
}): string;
|
|
34
|
-
export declare function mergePendingSuggestionValues(baselineValue: string, suggestions: SuggestedEdit[]): string;
|
|
35
|
-
export declare function getSuggestionDiffHtml(baselineValue: string, mergedValue: string): string;
|
|
36
|
-
export declare function getSuggestionDisplayValue({ repositoryValue, modifiedFields, suggestedEdits, field, mode, format, }: {
|
|
37
|
-
repositoryValue: string | null | undefined;
|
|
38
|
-
modifiedFields?: SuggestionDisplayModifiedField[];
|
|
39
|
-
suggestedEdits: SuggestedEdit[];
|
|
40
|
-
field: SuggestionDisplayField;
|
|
41
|
-
mode: SuggestionDisplayMode;
|
|
42
|
-
format?: SuggestionDisplayFormat;
|
|
43
|
-
}): SuggestionDisplayResult;
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { applyPatch, createPatch, diffWords } from "diff";
|
|
2
|
-
function toTimestamp(value) {
|
|
3
|
-
if (!value)
|
|
4
|
-
return 0;
|
|
5
|
-
const timestamp = new Date(value).getTime();
|
|
6
|
-
return Number.isFinite(timestamp) ? timestamp : 0;
|
|
7
|
-
}
|
|
8
|
-
function matchesFieldSuggestion(suggestion, field) {
|
|
9
|
-
const pageVersion = field.pageItemVersion;
|
|
10
|
-
const versionMatches = pageVersion != null
|
|
11
|
-
? suggestion.mainItemVersion === pageVersion ||
|
|
12
|
-
suggestion.mainItemVersion === 0
|
|
13
|
-
: suggestion.mainItemVersion === field.version;
|
|
14
|
-
return (suggestion.status === "pending" &&
|
|
15
|
-
suggestion.fieldId === field.fieldId &&
|
|
16
|
-
suggestion.itemId === field.itemId &&
|
|
17
|
-
suggestion.mainItemLanguage === field.language &&
|
|
18
|
-
(!field.pageItemId || suggestion.mainItemId === field.pageItemId) &&
|
|
19
|
-
versionMatches);
|
|
20
|
-
}
|
|
21
|
-
export function getPendingFieldSuggestions(suggestedEdits, field) {
|
|
22
|
-
return suggestedEdits
|
|
23
|
-
.filter((suggestion) => matchesFieldSuggestion(suggestion, field))
|
|
24
|
-
.sort((left, right) => {
|
|
25
|
-
const timeDelta = toTimestamp(left.created) - toTimestamp(right.created);
|
|
26
|
-
return timeDelta || left.id.localeCompare(right.id);
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
export function getBaselineFieldValue({ repositoryValue, modifiedFields, field, }) {
|
|
30
|
-
const modifiedField = modifiedFields?.find((candidate) => candidate.fieldId === field.fieldId &&
|
|
31
|
-
candidate.item.id === field.itemId &&
|
|
32
|
-
candidate.item.language === field.language &&
|
|
33
|
-
candidate.item.version === field.version);
|
|
34
|
-
return modifiedField ? (modifiedField.value ?? "") : (repositoryValue ?? "");
|
|
35
|
-
}
|
|
36
|
-
export function mergePendingSuggestionValues(baselineValue, suggestions) {
|
|
37
|
-
let mergedValue = baselineValue;
|
|
38
|
-
for (const suggestion of suggestions) {
|
|
39
|
-
const patch = createPatch("field", suggestion.oldValue, suggestion.newValue);
|
|
40
|
-
const patchedCandidate = applyPatch(mergedValue, patch);
|
|
41
|
-
mergedValue =
|
|
42
|
-
patchedCandidate !== false && typeof patchedCandidate === "string"
|
|
43
|
-
? patchedCandidate
|
|
44
|
-
: suggestion.newValue;
|
|
45
|
-
}
|
|
46
|
-
return mergedValue;
|
|
47
|
-
}
|
|
48
|
-
function escapeHtml(value) {
|
|
49
|
-
return value
|
|
50
|
-
.replaceAll("&", "&")
|
|
51
|
-
.replaceAll("<", "<")
|
|
52
|
-
.replaceAll(">", ">")
|
|
53
|
-
.replaceAll('"', """)
|
|
54
|
-
.replaceAll("'", "'");
|
|
55
|
-
}
|
|
56
|
-
export function getSuggestionDiffHtml(baselineValue, mergedValue) {
|
|
57
|
-
return diffWords(baselineValue, mergedValue)
|
|
58
|
-
.map((part) => {
|
|
59
|
-
let style = "color: gray;";
|
|
60
|
-
if (part.added) {
|
|
61
|
-
style = "color: green;";
|
|
62
|
-
}
|
|
63
|
-
else if (part.removed) {
|
|
64
|
-
style = "color: red; text-decoration: line-through;";
|
|
65
|
-
}
|
|
66
|
-
return `<span style="${style}">${escapeHtml(part.value)}</span>`;
|
|
67
|
-
})
|
|
68
|
-
.join("");
|
|
69
|
-
}
|
|
70
|
-
export function getSuggestionDisplayValue({ repositoryValue, modifiedFields, suggestedEdits, field, mode, format = "plain", }) {
|
|
71
|
-
const baselineValue = getBaselineFieldValue({
|
|
72
|
-
repositoryValue,
|
|
73
|
-
modifiedFields,
|
|
74
|
-
field,
|
|
75
|
-
});
|
|
76
|
-
const suggestions = mode === "suggestions"
|
|
77
|
-
? getPendingFieldSuggestions(suggestedEdits, field)
|
|
78
|
-
: [];
|
|
79
|
-
const mergedValue = suggestions.length
|
|
80
|
-
? mergePendingSuggestionValues(baselineValue, suggestions)
|
|
81
|
-
: baselineValue;
|
|
82
|
-
const displayValue = mode === "suggestions" && suggestions.length && format === "diff"
|
|
83
|
-
? getSuggestionDiffHtml(baselineValue, mergedValue)
|
|
84
|
-
: mergedValue;
|
|
85
|
-
return {
|
|
86
|
-
baselineValue,
|
|
87
|
-
mergedValue,
|
|
88
|
-
displayValue,
|
|
89
|
-
suggestions,
|
|
90
|
-
hasSuggestions: suggestions.length > 0,
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
//# sourceMappingURL=suggestionDisplayValue.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"suggestionDisplayValue.js","sourceRoot":"","sources":["../../../src/editor/reviews/suggestionDisplayValue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAiC1D,SAAS,WAAW,CAAC,KAAyB;IAC5C,IAAI,CAAC,KAAK;QAAE,OAAO,CAAC,CAAC;IACrB,MAAM,SAAS,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC;IAC5C,OAAO,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;AACpD,CAAC;AAED,SAAS,sBAAsB,CAC7B,UAAyB,EACzB,KAA6B;IAE7B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