@flanksource/clicky-ui 0.3.59 → 0.3.61
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/NOTICE.md +62 -0
- package/dist/chat.cjs +7 -1
- package/dist/chat.js +4 -2
- package/dist/comments/AnnotationSurface.cjs +317 -0
- package/dist/comments/AnnotationSurface.cjs.map +1 -0
- package/dist/comments/AnnotationSurface.d.ts +19 -0
- package/dist/comments/AnnotationSurface.d.ts.map +1 -0
- package/dist/comments/AnnotationSurface.js +317 -0
- package/dist/comments/AnnotationSurface.js.map +1 -0
- package/dist/comments/CapturePin.cjs +26 -0
- package/dist/comments/CapturePin.cjs.map +1 -0
- package/dist/comments/CapturePin.d.ts +12 -0
- package/dist/comments/CapturePin.d.ts.map +1 -0
- package/dist/comments/CapturePin.js +26 -0
- package/dist/comments/CapturePin.js.map +1 -0
- package/dist/comments/CommentAuthor.cjs +17 -3
- package/dist/comments/CommentAuthor.cjs.map +1 -1
- package/dist/comments/CommentAuthor.d.ts +3 -0
- package/dist/comments/CommentAuthor.d.ts.map +1 -1
- package/dist/comments/CommentAuthor.js +18 -5
- package/dist/comments/CommentAuthor.js.map +1 -1
- package/dist/comments/CommentCard.cjs +98 -52
- package/dist/comments/CommentCard.cjs.map +1 -1
- package/dist/comments/CommentCard.d.ts +3 -0
- package/dist/comments/CommentCard.d.ts.map +1 -1
- package/dist/comments/CommentCard.js +100 -54
- package/dist/comments/CommentCard.js.map +1 -1
- package/dist/comments/CommentCardParts.cjs +76 -0
- package/dist/comments/CommentCardParts.cjs.map +1 -1
- package/dist/comments/CommentCardParts.d.ts.map +1 -1
- package/dist/comments/CommentCardParts.js +76 -0
- package/dist/comments/CommentCardParts.js.map +1 -1
- package/dist/comments/CommentComposer.cjs +71 -34
- package/dist/comments/CommentComposer.cjs.map +1 -1
- package/dist/comments/CommentComposer.d.ts +2 -1
- package/dist/comments/CommentComposer.d.ts.map +1 -1
- package/dist/comments/CommentComposer.js +72 -35
- package/dist/comments/CommentComposer.js.map +1 -1
- package/dist/comments/CommentDraftCard.cjs +68 -0
- package/dist/comments/CommentDraftCard.cjs.map +1 -0
- package/dist/comments/CommentDraftCard.d.ts +7 -0
- package/dist/comments/CommentDraftCard.d.ts.map +1 -0
- package/dist/comments/CommentDraftCard.js +68 -0
- package/dist/comments/CommentDraftCard.js.map +1 -0
- package/dist/comments/CommentDraftPopover.cjs +60 -0
- package/dist/comments/CommentDraftPopover.cjs.map +1 -0
- package/dist/comments/CommentDraftPopover.d.ts +6 -0
- package/dist/comments/CommentDraftPopover.d.ts.map +1 -0
- package/dist/comments/CommentDraftPopover.js +60 -0
- package/dist/comments/CommentDraftPopover.js.map +1 -0
- package/dist/comments/CommentEditor.cjs +350 -0
- package/dist/comments/CommentEditor.cjs.map +1 -0
- package/dist/comments/CommentEditor.d.ts +10 -0
- package/dist/comments/CommentEditor.d.ts.map +1 -0
- package/dist/comments/CommentEditor.js +350 -0
- package/dist/comments/CommentEditor.js.map +1 -0
- package/dist/comments/CommentMarkdown.cjs +28 -13
- package/dist/comments/CommentMarkdown.cjs.map +1 -1
- package/dist/comments/CommentMarkdown.d.ts +4 -1
- package/dist/comments/CommentMarkdown.d.ts.map +1 -1
- package/dist/comments/CommentMarkdown.js +28 -13
- package/dist/comments/CommentMarkdown.js.map +1 -1
- package/dist/comments/CommentPersistenceBoundary.cjs +55 -0
- package/dist/comments/CommentPersistenceBoundary.cjs.map +1 -0
- package/dist/comments/CommentPersistenceBoundary.d.ts +6 -0
- package/dist/comments/CommentPersistenceBoundary.d.ts.map +1 -0
- package/dist/comments/CommentPersistenceBoundary.js +55 -0
- package/dist/comments/CommentPersistenceBoundary.js.map +1 -0
- package/dist/comments/CommentPreview.cjs +45 -0
- package/dist/comments/CommentPreview.cjs.map +1 -0
- package/dist/comments/CommentPreview.d.ts +7 -0
- package/dist/comments/CommentPreview.d.ts.map +1 -0
- package/dist/comments/CommentPreview.js +45 -0
- package/dist/comments/CommentPreview.js.map +1 -0
- package/dist/comments/CommentProvider.cjs +34 -9
- package/dist/comments/CommentProvider.cjs.map +1 -1
- package/dist/comments/CommentProvider.d.ts +3 -1
- package/dist/comments/CommentProvider.d.ts.map +1 -1
- package/dist/comments/CommentProvider.js +34 -9
- package/dist/comments/CommentProvider.js.map +1 -1
- package/dist/comments/CommentRail.cjs +83 -0
- package/dist/comments/CommentRail.cjs.map +1 -0
- package/dist/comments/CommentRail.d.ts +18 -0
- package/dist/comments/CommentRail.d.ts.map +1 -0
- package/dist/comments/CommentRail.js +83 -0
- package/dist/comments/CommentRail.js.map +1 -0
- package/dist/comments/CommentReplyInput.cjs +73 -0
- package/dist/comments/CommentReplyInput.cjs.map +1 -0
- package/dist/comments/CommentReplyInput.d.ts +9 -0
- package/dist/comments/CommentReplyInput.d.ts.map +1 -0
- package/dist/comments/CommentReplyInput.js +73 -0
- package/dist/comments/CommentReplyInput.js.map +1 -0
- package/dist/comments/CommentSidePanel.cjs +22 -6
- package/dist/comments/CommentSidePanel.cjs.map +1 -1
- package/dist/comments/CommentSidePanel.d.ts +4 -1
- package/dist/comments/CommentSidePanel.d.ts.map +1 -1
- package/dist/comments/CommentSidePanel.js +22 -6
- package/dist/comments/CommentSidePanel.js.map +1 -1
- package/dist/comments/CommentThread.cjs +4 -1
- package/dist/comments/CommentThread.cjs.map +1 -1
- package/dist/comments/CommentThread.d.ts +3 -2
- package/dist/comments/CommentThread.d.ts.map +1 -1
- package/dist/comments/CommentThread.js +4 -1
- package/dist/comments/CommentThread.js.map +1 -1
- package/dist/comments/CommentThreadList.cjs +55 -86
- package/dist/comments/CommentThreadList.cjs.map +1 -1
- package/dist/comments/CommentThreadList.d.ts +4 -3
- package/dist/comments/CommentThreadList.d.ts.map +1 -1
- package/dist/comments/CommentThreadList.js +56 -87
- package/dist/comments/CommentThreadList.js.map +1 -1
- package/dist/comments/ElementOutline.cjs +20 -0
- package/dist/comments/ElementOutline.cjs.map +1 -0
- package/dist/comments/ElementOutline.d.ts +6 -0
- package/dist/comments/ElementOutline.d.ts.map +1 -0
- package/dist/comments/ElementOutline.js +20 -0
- package/dist/comments/ElementOutline.js.map +1 -0
- package/dist/comments/VocabularyChip.cjs +50 -0
- package/dist/comments/VocabularyChip.cjs.map +1 -0
- package/dist/comments/VocabularyChip.d.ts +6 -0
- package/dist/comments/VocabularyChip.d.ts.map +1 -0
- package/dist/comments/VocabularyChip.js +50 -0
- package/dist/comments/VocabularyChip.js.map +1 -0
- package/dist/comments/VocabularyPreview.cjs +15 -0
- package/dist/comments/VocabularyPreview.cjs.map +1 -0
- package/dist/comments/VocabularyPreview.d.ts +7 -0
- package/dist/comments/VocabularyPreview.d.ts.map +1 -0
- package/dist/comments/VocabularyPreview.js +15 -0
- package/dist/comments/VocabularyPreview.js.map +1 -0
- package/dist/comments/agent-delivery.cjs +23 -0
- package/dist/comments/agent-delivery.cjs.map +1 -0
- package/dist/comments/agent-delivery.d.ts +15 -0
- package/dist/comments/agent-delivery.d.ts.map +1 -0
- package/dist/comments/agent-delivery.js +22 -0
- package/dist/comments/agent-delivery.js.map +1 -0
- package/dist/comments/anchoring/CommentAnchorBridge.cjs +36 -0
- package/dist/comments/anchoring/CommentAnchorBridge.cjs.map +1 -0
- package/dist/comments/anchoring/CommentAnchorBridge.d.ts +8 -0
- package/dist/comments/anchoring/CommentAnchorBridge.d.ts.map +1 -0
- package/dist/comments/anchoring/CommentAnchorBridge.js +36 -0
- package/dist/comments/anchoring/CommentAnchorBridge.js.map +1 -0
- package/dist/comments/anchoring/dom-anchor.cjs +402 -0
- package/dist/comments/anchoring/dom-anchor.cjs.map +1 -0
- package/dist/comments/anchoring/dom-anchor.d.ts +82 -0
- package/dist/comments/anchoring/dom-anchor.d.ts.map +1 -0
- package/dist/comments/anchoring/dom-anchor.js +384 -0
- package/dist/comments/anchoring/dom-anchor.js.map +1 -0
- package/dist/comments/anchoring/index.d.ts +6 -0
- package/dist/comments/anchoring/index.d.ts.map +1 -0
- package/dist/comments/anchoring/markdown-anchor.cjs +188 -0
- package/dist/comments/anchoring/markdown-anchor.cjs.map +1 -0
- package/dist/comments/anchoring/markdown-anchor.d.ts +37 -0
- package/dist/comments/anchoring/markdown-anchor.d.ts.map +1 -0
- package/dist/comments/anchoring/markdown-anchor.js +181 -0
- package/dist/comments/anchoring/markdown-anchor.js.map +1 -0
- package/dist/comments/anchoring/model.cjs +11 -0
- package/dist/comments/anchoring/model.cjs.map +1 -0
- package/dist/comments/anchoring/model.d.ts +30 -0
- package/dist/comments/anchoring/model.d.ts.map +1 -0
- package/dist/comments/anchoring/model.js +8 -0
- package/dist/comments/anchoring/model.js.map +1 -0
- package/dist/comments/anchoring/patch-anchor.cjs +86 -0
- package/dist/comments/anchoring/patch-anchor.cjs.map +1 -0
- package/dist/comments/anchoring/patch-anchor.d.ts +26 -0
- package/dist/comments/anchoring/patch-anchor.d.ts.map +1 -0
- package/dist/comments/anchoring/patch-anchor.js +80 -0
- package/dist/comments/anchoring/patch-anchor.js.map +1 -0
- package/dist/comments/annotation-screenshot.cjs +191 -0
- package/dist/comments/annotation-screenshot.cjs.map +1 -0
- package/dist/comments/annotation-screenshot.d.ts +16 -0
- package/dist/comments/annotation-screenshot.d.ts.map +1 -0
- package/dist/comments/annotation-screenshot.js +189 -0
- package/dist/comments/annotation-screenshot.js.map +1 -0
- package/dist/comments/annotation-types.d.ts +36 -0
- package/dist/comments/annotation-types.d.ts.map +1 -0
- package/dist/comments/comment-context.cjs.map +1 -1
- package/dist/comments/comment-context.d.ts +1 -1
- package/dist/comments/comment-context.d.ts.map +1 -1
- package/dist/comments/comment-context.js.map +1 -1
- package/dist/comments/comment-detail.d.ts +14 -0
- package/dist/comments/comment-detail.d.ts.map +1 -0
- package/dist/comments/comment-persistence.cjs +102 -0
- package/dist/comments/comment-persistence.cjs.map +1 -0
- package/dist/comments/comment-persistence.d.ts +29 -0
- package/dist/comments/comment-persistence.d.ts.map +1 -0
- package/dist/comments/comment-persistence.js +99 -0
- package/dist/comments/comment-persistence.js.map +1 -0
- package/dist/comments/comment-types.cjs.map +1 -1
- package/dist/comments/comment-types.d.ts +18 -0
- package/dist/comments/comment-types.d.ts.map +1 -1
- package/dist/comments/comment-types.js.map +1 -1
- package/dist/comments/comment-utils.cjs +3 -1
- package/dist/comments/comment-utils.cjs.map +1 -1
- package/dist/comments/comment-utils.d.ts.map +1 -1
- package/dist/comments/comment-utils.js +3 -1
- package/dist/comments/comment-utils.js.map +1 -1
- package/dist/comments/comment-vocabulary.cjs +38 -0
- package/dist/comments/comment-vocabulary.cjs.map +1 -0
- package/dist/comments/comment-vocabulary.d.ts +33 -0
- package/dist/comments/comment-vocabulary.d.ts.map +1 -0
- package/dist/comments/comment-vocabulary.js +34 -0
- package/dist/comments/comment-vocabulary.js.map +1 -0
- package/dist/comments/element-picker.cjs +47 -0
- package/dist/comments/element-picker.cjs.map +1 -0
- package/dist/comments/element-picker.d.ts +28 -0
- package/dist/comments/element-picker.d.ts.map +1 -0
- package/dist/comments/element-picker.js +46 -0
- package/dist/comments/element-picker.js.map +1 -0
- package/dist/comments/use-comment-rail-width.cjs +28 -0
- package/dist/comments/use-comment-rail-width.cjs.map +1 -0
- package/dist/comments/use-comment-rail-width.d.ts +2 -0
- package/dist/comments/use-comment-rail-width.d.ts.map +1 -0
- package/dist/comments/use-comment-rail-width.js +28 -0
- package/dist/comments/use-comment-rail-width.js.map +1 -0
- package/dist/comments/vocabulary-capture.cjs +47 -0
- package/dist/comments/vocabulary-capture.cjs.map +1 -0
- package/dist/comments/vocabulary-capture.d.ts +10 -0
- package/dist/comments/vocabulary-capture.d.ts.map +1 -0
- package/dist/comments/vocabulary-capture.js +47 -0
- package/dist/comments/vocabulary-capture.js.map +1 -0
- package/dist/comments.cjs +87 -6
- package/dist/comments.d.ts +18 -1
- package/dist/comments.d.ts.map +1 -1
- package/dist/comments.js +26 -7
- package/dist/components/DateField.d.ts +1 -1
- package/dist/components/DatePicker.d.ts +1 -1
- package/dist/components/DateTimePicker.d.ts +1 -1
- package/dist/components/SplitButton.cjs +2 -2
- package/dist/components/SplitButton.cjs.map +1 -1
- package/dist/components/SplitButton.js +2 -2
- package/dist/components/SplitButton.js.map +1 -1
- package/dist/components/mdx-editor-callout-model.d.ts +1 -1
- package/dist/components/mdx-editor-field-plugins.cjs +11 -2
- package/dist/components/mdx-editor-field-plugins.cjs.map +1 -1
- package/dist/components/mdx-editor-field-plugins.d.ts.map +1 -1
- package/dist/components/mdx-editor-field-plugins.js +11 -2
- package/dist/components/mdx-editor-field-plugins.js.map +1 -1
- package/dist/components/mdx-editor-options.d.ts +7 -0
- package/dist/components/mdx-editor-options.d.ts.map +1 -1
- package/dist/components.cjs +2 -0
- package/dist/components.d.ts +1 -0
- package/dist/components.d.ts.map +1 -1
- package/dist/components.js +2 -1
- package/dist/data/Clicky.cjs +2 -1
- package/dist/data/Clicky.cjs.map +1 -1
- package/dist/data/Clicky.d.ts +2 -0
- package/dist/data/Clicky.d.ts.map +1 -1
- package/dist/data/Clicky.js +2 -1
- package/dist/data/Clicky.js.map +1 -1
- package/dist/data/ImagePreview.cjs +42 -0
- package/dist/data/ImagePreview.cjs.map +1 -0
- package/dist/data/ImagePreview.d.ts +13 -0
- package/dist/data/ImagePreview.d.ts.map +1 -0
- package/dist/data/ImagePreview.js +42 -0
- package/dist/data/ImagePreview.js.map +1 -0
- package/dist/data/Markdown.cjs +31 -2
- package/dist/data/Markdown.cjs.map +1 -1
- package/dist/data/Markdown.d.ts +3 -1
- package/dist/data/Markdown.d.ts.map +1 -1
- package/dist/data/Markdown.js +31 -2
- package/dist/data/Markdown.js.map +1 -1
- package/dist/data/MarkdownEditor.model.d.ts +1 -1
- package/dist/data/PromptBanner.model.cjs +10 -0
- package/dist/data/PromptBanner.model.cjs.map +1 -1
- package/dist/data/PromptBanner.model.d.ts +2 -0
- package/dist/data/PromptBanner.model.d.ts.map +1 -1
- package/dist/data/PromptBanner.model.js +10 -1
- package/dist/data/PromptBanner.model.js.map +1 -1
- package/dist/data/PromptDialog.cjs +16 -49
- package/dist/data/PromptDialog.cjs.map +1 -1
- package/dist/data/PromptDialog.d.ts +7 -1
- package/dist/data/PromptDialog.d.ts.map +1 -1
- package/dist/data/PromptDialog.js +17 -50
- package/dist/data/PromptDialog.js.map +1 -1
- package/dist/data/PromptForm.cjs +79 -0
- package/dist/data/PromptForm.cjs.map +1 -0
- package/dist/data/PromptForm.d.ts +26 -0
- package/dist/data/PromptForm.d.ts.map +1 -0
- package/dist/data/PromptForm.js +79 -0
- package/dist/data/PromptForm.js.map +1 -0
- package/dist/data/PromptIndicator.cjs +82 -0
- package/dist/data/PromptIndicator.cjs.map +1 -0
- package/dist/data/PromptIndicator.d.ts +19 -0
- package/dist/data/PromptIndicator.d.ts.map +1 -0
- package/dist/data/PromptIndicator.js +82 -0
- package/dist/data/PromptIndicator.js.map +1 -0
- package/dist/data/PromptList.cjs +67 -0
- package/dist/data/PromptList.cjs.map +1 -0
- package/dist/data/PromptList.d.ts +13 -0
- package/dist/data/PromptList.d.ts.map +1 -0
- package/dist/data/PromptList.js +67 -0
- package/dist/data/PromptList.js.map +1 -0
- package/dist/data/Tree.cjs +17 -9
- package/dist/data/Tree.cjs.map +1 -1
- package/dist/data/Tree.d.ts +5 -1
- package/dist/data/Tree.d.ts.map +1 -1
- package/dist/data/Tree.js +17 -9
- package/dist/data/Tree.js.map +1 -1
- package/dist/data/TreeNode.cjs +32 -9
- package/dist/data/TreeNode.cjs.map +1 -1
- package/dist/data/TreeNode.d.ts +5 -1
- package/dist/data/TreeNode.d.ts.map +1 -1
- package/dist/data/TreeNode.js +32 -9
- package/dist/data/TreeNode.js.map +1 -1
- package/dist/data/ai/RuntimeModePicker.cjs +1 -1
- package/dist/data/ai/RuntimeModePicker.js +1 -1
- package/dist/data/ai/SessionInspector.summary.cjs +1 -1
- package/dist/data/ai/SessionInspector.summary.js +1 -1
- package/dist/data/ai/SpecRuntimeEditor/ModelSection.cjs +1 -1
- package/dist/data/ai/SpecRuntimeEditor/ModelSection.js +1 -1
- package/dist/data/chat/AgentIdentity.cjs +56 -0
- package/dist/data/chat/AgentIdentity.cjs.map +1 -0
- package/dist/data/chat/AgentIdentity.d.ts +17 -0
- package/dist/data/chat/AgentIdentity.d.ts.map +1 -0
- package/dist/data/chat/AgentIdentity.js +55 -0
- package/dist/data/chat/AgentIdentity.js.map +1 -0
- package/dist/data/chat/Chat.cjs +1 -1
- package/dist/data/chat/Chat.js +1 -1
- package/dist/data/chat/ContextMeter.bar.cjs +2 -2
- package/dist/data/chat/ContextMeter.bar.js +2 -2
- package/dist/data/chat/ContextMeter.model.cjs +41 -13
- package/dist/data/chat/ContextMeter.model.cjs.map +1 -1
- package/dist/data/chat/ContextMeter.model.d.ts +2 -0
- package/dist/data/chat/ContextMeter.model.d.ts.map +1 -1
- package/dist/data/chat/ContextMeter.model.js +41 -14
- package/dist/data/chat/ContextMeter.model.js.map +1 -1
- package/dist/data/chat/ModelSelector.cjs +1 -1
- package/dist/data/chat/ModelSelector.js +1 -1
- package/dist/data/chat/agent-identity-context.cjs +5 -0
- package/dist/data/chat/agent-identity-context.cjs.map +1 -0
- package/dist/data/chat/agent-identity-context.d.ts +7 -0
- package/dist/data/chat/agent-identity-context.d.ts.map +1 -0
- package/dist/data/chat/agent-identity-context.js +6 -0
- package/dist/data/chat/agent-identity-context.js.map +1 -0
- package/dist/data/chat/index.d.ts +3 -0
- package/dist/data/chat/index.d.ts.map +1 -1
- package/dist/data/diagnostics/ActionError.cjs +26 -0
- package/dist/data/diagnostics/ActionError.cjs.map +1 -0
- package/dist/data/diagnostics/ActionError.d.ts +10 -0
- package/dist/data/diagnostics/ActionError.d.ts.map +1 -0
- package/dist/data/diagnostics/ActionError.js +26 -0
- package/dist/data/diagnostics/ActionError.js.map +1 -0
- package/dist/data/diagnostics/error-diagnostics.cjs +7 -0
- package/dist/data/diagnostics/error-diagnostics.cjs.map +1 -1
- package/dist/data/diagnostics/error-diagnostics.d.ts.map +1 -1
- package/dist/data/diagnostics/error-diagnostics.js +7 -0
- package/dist/data/diagnostics/error-diagnostics.js.map +1 -1
- package/dist/data/git/GitChangeList.cjs +11 -4
- package/dist/data/git/GitChangeList.cjs.map +1 -1
- package/dist/data/git/GitChangeList.d.ts +2 -35
- package/dist/data/git/GitChangeList.d.ts.map +1 -1
- package/dist/data/git/GitChangeList.js +11 -4
- package/dist/data/git/GitChangeList.js.map +1 -1
- package/dist/data/git/GitLink.cjs +13 -0
- package/dist/data/git/GitLink.cjs.map +1 -0
- package/dist/data/git/GitLink.d.ts +8 -0
- package/dist/data/git/GitLink.d.ts.map +1 -0
- package/dist/data/git/GitLink.js +13 -0
- package/dist/data/git/GitLink.js.map +1 -0
- package/dist/data/git/git-links.cjs +54 -0
- package/dist/data/git/git-links.cjs.map +1 -0
- package/dist/data/git/git-links.d.ts +4 -0
- package/dist/data/git/git-links.d.ts.map +1 -0
- package/dist/data/git/git-links.js +53 -0
- package/dist/data/git/git-links.js.map +1 -0
- package/dist/data/git/index.d.ts +3 -0
- package/dist/data/git/index.d.ts.map +1 -1
- package/dist/data/git/types.d.ts +54 -0
- package/dist/data/git/types.d.ts.map +1 -0
- package/dist/data/markdown-urls.cjs +14 -0
- package/dist/data/markdown-urls.cjs.map +1 -0
- package/dist/data/markdown-urls.d.ts +9 -0
- package/dist/data/markdown-urls.d.ts.map +1 -0
- package/dist/data/markdown-urls.js +14 -0
- package/dist/data/markdown-urls.js.map +1 -0
- package/dist/data/runtime/RuntimeBar.model.cjs +1 -1
- package/dist/data/runtime/RuntimeBar.model.js +1 -1
- package/dist/data/test-runner/MatrixMarks.cjs +4 -3
- package/dist/data/test-runner/MatrixMarks.cjs.map +1 -1
- package/dist/data/test-runner/MatrixMarks.d.ts +7 -4
- package/dist/data/test-runner/MatrixMarks.d.ts.map +1 -1
- package/dist/data/test-runner/MatrixMarks.js +4 -3
- package/dist/data/test-runner/MatrixMarks.js.map +1 -1
- package/dist/data/test-runner/TestRunSummary.cjs +1 -1
- package/dist/data/test-runner/TestRunSummary.cjs.map +1 -1
- package/dist/data/test-runner/TestRunSummary.js +1 -1
- package/dist/data/test-runner/TestRunSummary.js.map +1 -1
- package/dist/data/test-runner/TestTree.cjs +1 -1
- package/dist/data/test-runner/TestTree.cjs.map +1 -1
- package/dist/data/test-runner/TestTree.js +1 -1
- package/dist/data/test-runner/TestTree.js.map +1 -1
- package/dist/data/test-runner/TestTreeNode.cjs +2 -2
- package/dist/data/test-runner/TestTreeNode.cjs.map +1 -1
- package/dist/data/test-runner/TestTreeNode.js +2 -2
- package/dist/data/test-runner/TestTreeNode.js.map +1 -1
- package/dist/data/test-runner/adapter.cjs +7 -0
- package/dist/data/test-runner/adapter.cjs.map +1 -1
- package/dist/data/test-runner/adapter.d.ts +7 -0
- package/dist/data/test-runner/adapter.d.ts.map +1 -1
- package/dist/data/test-runner/adapter.js +7 -0
- package/dist/data/test-runner/adapter.js.map +1 -1
- package/dist/data/test-runner/index.d.ts +1 -1
- package/dist/data/test-runner/index.d.ts.map +1 -1
- package/dist/data/test-runner/marks.cjs +3 -3
- package/dist/data/test-runner/marks.cjs.map +1 -1
- package/dist/data/test-runner/marks.js +3 -3
- package/dist/data/test-runner/marks.js.map +1 -1
- package/dist/data/test-runner/matrix-marks.cjs +12 -3
- package/dist/data/test-runner/matrix-marks.cjs.map +1 -1
- package/dist/data/test-runner/matrix-marks.d.ts +13 -0
- package/dist/data/test-runner/matrix-marks.d.ts.map +1 -1
- package/dist/data/test-runner/matrix-marks.js +12 -3
- package/dist/data/test-runner/matrix-marks.js.map +1 -1
- package/dist/data/test-runner/status.cjs +1 -1
- package/dist/data/test-runner/status.cjs.map +1 -1
- package/dist/data/test-runner/status.js +1 -1
- package/dist/data/test-runner/status.js.map +1 -1
- package/dist/data/test-runner/types.d.ts +2 -0
- package/dist/data/test-runner/types.d.ts.map +1 -1
- package/dist/data/verification/adapterViews.cjs +3 -1
- package/dist/data/verification/adapterViews.cjs.map +1 -1
- package/dist/data/verification/adapterViews.d.ts +5 -2
- package/dist/data/verification/adapterViews.d.ts.map +1 -1
- package/dist/data/verification/adapterViews.js +4 -2
- package/dist/data/verification/adapterViews.js.map +1 -1
- package/dist/data/verification/adapters.cjs +28 -7
- package/dist/data/verification/adapters.cjs.map +1 -1
- package/dist/data/verification/adapters.d.ts +7 -1
- package/dist/data/verification/adapters.d.ts.map +1 -1
- package/dist/data/verification/adapters.js +28 -7
- package/dist/data/verification/adapters.js.map +1 -1
- package/dist/data/verification/stepKind.cjs +1 -0
- package/dist/data/verification/stepKind.cjs.map +1 -1
- package/dist/data/verification/stepKind.d.ts.map +1 -1
- package/dist/data/verification/stepKind.js +1 -0
- package/dist/data/verification/stepKind.js.map +1 -1
- package/dist/data/verification/stepKindViews.cjs +17 -0
- package/dist/data/verification/stepKindViews.cjs.map +1 -1
- package/dist/data/verification/stepKindViews.d.ts +4 -0
- package/dist/data/verification/stepKindViews.d.ts.map +1 -1
- package/dist/data/verification/stepKindViews.js +17 -1
- package/dist/data/verification/stepKindViews.js.map +1 -1
- package/dist/data/version-info.cjs +3 -3
- package/dist/data/version-info.js +3 -3
- package/dist/data.cjs +124 -0
- package/dist/data.d.ts +5 -0
- package/dist/data.d.ts.map +1 -1
- package/dist/data.js +55 -1
- package/dist/file-findings/AnnotatedCode.cjs +44 -3
- package/dist/file-findings/AnnotatedCode.cjs.map +1 -1
- package/dist/file-findings/AnnotatedCode.d.ts +7 -0
- package/dist/file-findings/AnnotatedCode.d.ts.map +1 -1
- package/dist/file-findings/AnnotatedCode.js +44 -3
- package/dist/file-findings/AnnotatedCode.js.map +1 -1
- package/dist/file-findings/FileFindingsView.cjs +188 -82
- package/dist/file-findings/FileFindingsView.cjs.map +1 -1
- package/dist/file-findings/FileFindingsView.d.ts +87 -14
- package/dist/file-findings/FileFindingsView.d.ts.map +1 -1
- package/dist/file-findings/FileFindingsView.js +189 -83
- package/dist/file-findings/FileFindingsView.js.map +1 -1
- package/dist/file-findings/FolderFindings.cjs +144 -0
- package/dist/file-findings/FolderFindings.cjs.map +1 -0
- package/dist/file-findings/FolderFindings.d.ts +39 -0
- package/dist/file-findings/FolderFindings.d.ts.map +1 -0
- package/dist/file-findings/FolderFindings.js +144 -0
- package/dist/file-findings/FolderFindings.js.map +1 -0
- package/dist/file-findings/NodeActions.cjs +50 -0
- package/dist/file-findings/NodeActions.cjs.map +1 -0
- package/dist/file-findings/NodeActions.d.ts +15 -0
- package/dist/file-findings/NodeActions.d.ts.map +1 -0
- package/dist/file-findings/NodeActions.js +50 -0
- package/dist/file-findings/NodeActions.js.map +1 -0
- package/dist/file-findings/SeverityCounts.cjs +22 -0
- package/dist/file-findings/SeverityCounts.cjs.map +1 -0
- package/dist/file-findings/SeverityCounts.d.ts +6 -0
- package/dist/file-findings/SeverityCounts.d.ts.map +1 -0
- package/dist/file-findings/SeverityCounts.js +22 -0
- package/dist/file-findings/SeverityCounts.js.map +1 -0
- package/dist/file-findings/adapters.cjs +43 -16
- package/dist/file-findings/adapters.cjs.map +1 -1
- package/dist/file-findings/adapters.d.ts +8 -7
- package/dist/file-findings/adapters.d.ts.map +1 -1
- package/dist/file-findings/adapters.js +43 -16
- package/dist/file-findings/adapters.js.map +1 -1
- package/dist/file-findings/file-review/CommentDraft.cjs +10 -43
- package/dist/file-findings/file-review/CommentDraft.cjs.map +1 -1
- package/dist/file-findings/file-review/CommentDraft.d.ts +4 -2
- package/dist/file-findings/file-review/CommentDraft.d.ts.map +1 -1
- package/dist/file-findings/file-review/CommentDraft.js +11 -44
- package/dist/file-findings/file-review/CommentDraft.js.map +1 -1
- package/dist/file-findings/file-review/EditThreads.cjs +85 -0
- package/dist/file-findings/file-review/EditThreads.cjs.map +1 -0
- package/dist/file-findings/file-review/EditThreads.d.ts +40 -0
- package/dist/file-findings/file-review/EditThreads.d.ts.map +1 -0
- package/dist/file-findings/file-review/EditThreads.js +85 -0
- package/dist/file-findings/file-review/EditThreads.js.map +1 -0
- package/dist/file-findings/file-review/FileReview.cjs +559 -54
- package/dist/file-findings/file-review/FileReview.cjs.map +1 -1
- package/dist/file-findings/file-review/FileReview.d.ts +67 -9
- package/dist/file-findings/file-review/FileReview.d.ts.map +1 -1
- package/dist/file-findings/file-review/FileReview.js +562 -57
- package/dist/file-findings/file-review/FileReview.js.map +1 -1
- package/dist/file-findings/file-review/FileThreads.cjs +96 -0
- package/dist/file-findings/file-review/FileThreads.cjs.map +1 -0
- package/dist/file-findings/file-review/FileThreads.d.ts +50 -0
- package/dist/file-findings/file-review/FileThreads.d.ts.map +1 -0
- package/dist/file-findings/file-review/FileThreads.js +94 -0
- package/dist/file-findings/file-review/FileThreads.js.map +1 -0
- package/dist/file-findings/file-review/InlineThread.cjs +2 -1
- package/dist/file-findings/file-review/InlineThread.cjs.map +1 -1
- package/dist/file-findings/file-review/InlineThread.d.ts +9 -2
- package/dist/file-findings/file-review/InlineThread.d.ts.map +1 -1
- package/dist/file-findings/file-review/InlineThread.js +2 -1
- package/dist/file-findings/file-review/InlineThread.js.map +1 -1
- package/dist/file-findings/file-review/ProblemsList.cjs +67 -56
- package/dist/file-findings/file-review/ProblemsList.cjs.map +1 -1
- package/dist/file-findings/file-review/ProblemsList.d.ts +7 -0
- package/dist/file-findings/file-review/ProblemsList.d.ts.map +1 -1
- package/dist/file-findings/file-review/ProblemsList.js +68 -58
- package/dist/file-findings/file-review/ProblemsList.js.map +1 -1
- package/dist/file-findings/file-review/SourceView.cjs +2 -1
- package/dist/file-findings/file-review/SourceView.cjs.map +1 -1
- package/dist/file-findings/file-review/SourceView.js +3 -2
- package/dist/file-findings/file-review/SourceView.js.map +1 -1
- package/dist/file-findings/file-review/geometry.cjs +36 -7
- package/dist/file-findings/file-review/geometry.cjs.map +1 -1
- package/dist/file-findings/file-review/geometry.d.ts +9 -3
- package/dist/file-findings/file-review/geometry.d.ts.map +1 -1
- package/dist/file-findings/file-review/geometry.js +36 -7
- package/dist/file-findings/file-review/geometry.js.map +1 -1
- package/dist/file-findings/file-review/hooks.cjs +36 -3
- package/dist/file-findings/file-review/hooks.cjs.map +1 -1
- package/dist/file-findings/file-review/hooks.d.ts +15 -1
- package/dist/file-findings/file-review/hooks.d.ts.map +1 -1
- package/dist/file-findings/file-review/hooks.js +37 -5
- package/dist/file-findings/file-review/hooks.js.map +1 -1
- package/dist/file-findings/file-review/patch-comments.cjs +65 -0
- package/dist/file-findings/file-review/patch-comments.cjs.map +1 -0
- package/dist/file-findings/file-review/patch-comments.d.ts +29 -0
- package/dist/file-findings/file-review/patch-comments.d.ts.map +1 -0
- package/dist/file-findings/file-review/patch-comments.js +60 -0
- package/dist/file-findings/file-review/patch-comments.js.map +1 -0
- package/dist/file-findings/file-review/post-actions.cjs +33 -0
- package/dist/file-findings/file-review/post-actions.cjs.map +1 -0
- package/dist/file-findings/file-review/post-actions.d.ts +20 -0
- package/dist/file-findings/file-review/post-actions.d.ts.map +1 -0
- package/dist/file-findings/file-review/post-actions.js +30 -0
- package/dist/file-findings/file-review/post-actions.js.map +1 -0
- package/dist/file-findings/file-review/problem-filters.cjs +6 -0
- package/dist/file-findings/file-review/problem-filters.cjs.map +1 -1
- package/dist/file-findings/file-review/problem-filters.d.ts +2 -0
- package/dist/file-findings/file-review/problem-filters.d.ts.map +1 -1
- package/dist/file-findings/file-review/problem-filters.js +6 -1
- package/dist/file-findings/file-review/problem-filters.js.map +1 -1
- package/dist/file-findings/file-review/selection-lines.cjs +47 -0
- package/dist/file-findings/file-review/selection-lines.cjs.map +1 -0
- package/dist/file-findings/file-review/selection-lines.d.ts +19 -0
- package/dist/file-findings/file-review/selection-lines.d.ts.map +1 -0
- package/dist/file-findings/file-review/selection-lines.js +46 -0
- package/dist/file-findings/file-review/selection-lines.js.map +1 -0
- package/dist/file-findings/file-review/views.cjs +16 -0
- package/dist/file-findings/file-review/views.cjs.map +1 -0
- package/dist/file-findings/file-review/views.d.ts +8 -0
- package/dist/file-findings/file-review/views.d.ts.map +1 -0
- package/dist/file-findings/file-review/views.js +14 -0
- package/dist/file-findings/file-review/views.js.map +1 -0
- package/dist/file-findings/file-urls.cjs +60 -0
- package/dist/file-findings/file-urls.cjs.map +1 -0
- package/dist/file-findings/file-urls.d.ts +20 -0
- package/dist/file-findings/file-urls.d.ts.map +1 -0
- package/dist/file-findings/file-urls.js +57 -0
- package/dist/file-findings/file-urls.js.map +1 -0
- package/dist/file-findings/types.cjs +5 -0
- package/dist/file-findings/types.cjs.map +1 -1
- package/dist/file-findings/types.d.ts +8 -2
- package/dist/file-findings/types.d.ts.map +1 -1
- package/dist/file-findings/types.js +5 -1
- package/dist/file-findings/types.js.map +1 -1
- package/dist/file-findings.cjs +24 -0
- package/dist/file-findings.d.ts +9 -4
- package/dist/file-findings.d.ts.map +1 -1
- package/dist/file-findings.js +8 -3
- package/dist/git.cjs +6 -0
- package/dist/git.d.ts +4 -0
- package/dist/git.d.ts.map +1 -0
- package/dist/git.js +3 -0
- package/dist/hooks/use-prompts.cjs +18 -11
- package/dist/hooks/use-prompts.cjs.map +1 -1
- package/dist/hooks/use-prompts.d.ts.map +1 -1
- package/dist/hooks/use-prompts.js +18 -11
- package/dist/hooks/use-prompts.js.map +1 -1
- package/dist/icons/components/UiApi.cjs +37 -0
- package/dist/icons/components/UiApi.cjs.map +1 -0
- package/dist/icons/components/UiApi.d.ts +9 -0
- package/dist/icons/components/UiApi.d.ts.map +1 -0
- package/dist/icons/components/UiApi.js +35 -0
- package/dist/icons/components/UiApi.js.map +1 -0
- package/dist/icons/components/UiApiBridge.cjs +38 -0
- package/dist/icons/components/UiApiBridge.cjs.map +1 -0
- package/dist/icons/components/UiApiBridge.d.ts +9 -0
- package/dist/icons/components/UiApiBridge.d.ts.map +1 -0
- package/dist/icons/components/UiApiBridge.js +36 -0
- package/dist/icons/components/UiApiBridge.js.map +1 -0
- package/dist/icons/components/UiApiGateway.cjs +33 -0
- package/dist/icons/components/UiApiGateway.cjs.map +1 -0
- package/dist/icons/components/UiApiGateway.d.ts +9 -0
- package/dist/icons/components/UiApiGateway.d.ts.map +1 -0
- package/dist/icons/components/UiApiGateway.js +31 -0
- package/dist/icons/components/UiApiGateway.js.map +1 -0
- package/dist/icons/components/UiApiRequest.cjs +37 -0
- package/dist/icons/components/UiApiRequest.cjs.map +1 -0
- package/dist/icons/components/UiApiRequest.d.ts +9 -0
- package/dist/icons/components/UiApiRequest.d.ts.map +1 -0
- package/dist/icons/components/UiApiRequest.js +35 -0
- package/dist/icons/components/UiApiRequest.js.map +1 -0
- package/dist/icons/components/UiArrowDecision.cjs +51 -0
- package/dist/icons/components/UiArrowDecision.cjs.map +1 -0
- package/dist/icons/components/UiArrowDecision.d.ts +15 -0
- package/dist/icons/components/UiArrowDecision.d.ts.map +1 -0
- package/dist/icons/components/UiArrowDecision.js +48 -0
- package/dist/icons/components/UiArrowDecision.js.map +1 -0
- package/dist/icons/components/UiArrowSquareIn.cjs +51 -0
- package/dist/icons/components/UiArrowSquareIn.cjs.map +1 -0
- package/dist/icons/components/UiArrowSquareIn.d.ts +15 -0
- package/dist/icons/components/UiArrowSquareIn.d.ts.map +1 -0
- package/dist/icons/components/UiArrowSquareIn.js +48 -0
- package/dist/icons/components/UiArrowSquareIn.js.map +1 -0
- package/dist/icons/components/UiBatchCheck.cjs +55 -0
- package/dist/icons/components/UiBatchCheck.cjs.map +1 -0
- package/dist/icons/components/UiBatchCheck.d.ts +15 -0
- package/dist/icons/components/UiBatchCheck.d.ts.map +1 -0
- package/dist/icons/components/UiBatchCheck.js +52 -0
- package/dist/icons/components/UiBatchCheck.js.map +1 -0
- package/dist/icons/components/UiBatchJob.cjs +39 -0
- package/dist/icons/components/UiBatchJob.cjs.map +1 -0
- package/dist/icons/components/UiBatchJob.d.ts +9 -0
- package/dist/icons/components/UiBatchJob.d.ts.map +1 -0
- package/dist/icons/components/UiBatchJob.js +37 -0
- package/dist/icons/components/UiBatchJob.js.map +1 -0
- package/dist/icons/components/UiBatchRequest.cjs +39 -0
- package/dist/icons/components/UiBatchRequest.cjs.map +1 -0
- package/dist/icons/components/UiBatchRequest.d.ts +9 -0
- package/dist/icons/components/UiBatchRequest.d.ts.map +1 -0
- package/dist/icons/components/UiBatchRequest.js +37 -0
- package/dist/icons/components/UiBatchRequest.js.map +1 -0
- package/dist/icons/components/UiBpmnConditional.cjs +29 -0
- package/dist/icons/components/UiBpmnConditional.cjs.map +1 -0
- package/dist/icons/components/UiBpmnConditional.d.ts +9 -0
- package/dist/icons/components/UiBpmnConditional.d.ts.map +1 -0
- package/dist/icons/components/UiBpmnConditional.js +27 -0
- package/dist/icons/components/UiBpmnConditional.js.map +1 -0
- package/dist/icons/components/UiBranchFlow.cjs +33 -0
- package/dist/icons/components/UiBranchFlow.cjs.map +1 -0
- package/dist/icons/components/UiBranchFlow.d.ts +9 -0
- package/dist/icons/components/UiBranchFlow.d.ts.map +1 -0
- package/dist/icons/components/UiBranchFlow.js +31 -0
- package/dist/icons/components/UiBranchFlow.js.map +1 -0
- package/dist/icons/components/UiChecks.cjs +51 -0
- package/dist/icons/components/UiChecks.cjs.map +1 -0
- package/dist/icons/components/UiChecks.d.ts +15 -0
- package/dist/icons/components/UiChecks.d.ts.map +1 -0
- package/dist/icons/components/UiChecks.js +48 -0
- package/dist/icons/components/UiChecks.js.map +1 -0
- package/dist/icons/components/UiClassicBatch.cjs +29 -0
- package/dist/icons/components/UiClassicBatch.cjs.map +1 -0
- package/dist/icons/components/UiClassicBatch.d.ts +9 -0
- package/dist/icons/components/UiClassicBatch.d.ts.map +1 -0
- package/dist/icons/components/UiClassicBatch.js +27 -0
- package/dist/icons/components/UiClassicBatch.js.map +1 -0
- package/dist/icons/components/UiCodeFile.cjs +29 -0
- package/dist/icons/components/UiCodeFile.cjs.map +1 -0
- package/dist/icons/components/UiCodeFile.d.ts +9 -0
- package/dist/icons/components/UiCodeFile.d.ts.map +1 -0
- package/dist/icons/components/UiCodeFile.js +27 -0
- package/dist/icons/components/UiCodeFile.js.map +1 -0
- package/dist/icons/components/UiColumnsLayout.cjs +29 -0
- package/dist/icons/components/UiColumnsLayout.cjs.map +1 -0
- package/dist/icons/components/UiColumnsLayout.d.ts +9 -0
- package/dist/icons/components/UiColumnsLayout.d.ts.map +1 -0
- package/dist/icons/components/UiColumnsLayout.js +27 -0
- package/dist/icons/components/UiColumnsLayout.js.map +1 -0
- package/dist/icons/components/UiCondition.cjs +37 -0
- package/dist/icons/components/UiCondition.cjs.map +1 -0
- package/dist/icons/components/UiCondition.d.ts +9 -0
- package/dist/icons/components/UiCondition.d.ts.map +1 -0
- package/dist/icons/components/UiCondition.js +35 -0
- package/dist/icons/components/UiCondition.js.map +1 -0
- package/dist/icons/components/UiConditions.cjs +29 -0
- package/dist/icons/components/UiConditions.cjs.map +1 -0
- package/dist/icons/components/UiConditions.d.ts +9 -0
- package/dist/icons/components/UiConditions.d.ts.map +1 -0
- package/dist/icons/components/UiConditions.js +27 -0
- package/dist/icons/components/UiConditions.js.map +1 -0
- package/dist/icons/components/UiDelayQueue.cjs +40 -0
- package/dist/icons/components/UiDelayQueue.cjs.map +1 -0
- package/dist/icons/components/UiDelayQueue.d.ts +9 -0
- package/dist/icons/components/UiDelayQueue.d.ts.map +1 -0
- package/dist/icons/components/UiDelayQueue.js +38 -0
- package/dist/icons/components/UiDelayQueue.js.map +1 -0
- package/dist/icons/components/UiDynamicForm.cjs +51 -0
- package/dist/icons/components/UiDynamicForm.cjs.map +1 -0
- package/dist/icons/components/UiDynamicForm.d.ts +15 -0
- package/dist/icons/components/UiDynamicForm.d.ts.map +1 -0
- package/dist/icons/components/UiDynamicForm.js +48 -0
- package/dist/icons/components/UiDynamicForm.js.map +1 -0
- package/dist/icons/components/UiFlowArrow.cjs +51 -0
- package/dist/icons/components/UiFlowArrow.cjs.map +1 -0
- package/dist/icons/components/UiFlowArrow.d.ts +15 -0
- package/dist/icons/components/UiFlowArrow.d.ts.map +1 -0
- package/dist/icons/components/UiFlowArrow.js +48 -0
- package/dist/icons/components/UiFlowArrow.js.map +1 -0
- package/dist/icons/components/UiFormFields.cjs +33 -0
- package/dist/icons/components/UiFormFields.cjs.map +1 -0
- package/dist/icons/components/UiFormFields.d.ts +9 -0
- package/dist/icons/components/UiFormFields.d.ts.map +1 -0
- package/dist/icons/components/UiFormFields.js +31 -0
- package/dist/icons/components/UiFormFields.js.map +1 -0
- package/dist/icons/components/UiFormStep.cjs +38 -0
- package/dist/icons/components/UiFormStep.cjs.map +1 -0
- package/dist/icons/components/UiFormStep.d.ts +9 -0
- package/dist/icons/components/UiFormStep.d.ts.map +1 -0
- package/dist/icons/components/UiFormStep.js +36 -0
- package/dist/icons/components/UiFormStep.js.map +1 -0
- package/dist/icons/components/UiGatewayApi.cjs +32 -0
- package/dist/icons/components/UiGatewayApi.cjs.map +1 -0
- package/dist/icons/components/UiGatewayApi.d.ts +9 -0
- package/dist/icons/components/UiGatewayApi.d.ts.map +1 -0
- package/dist/icons/components/UiGatewayApi.js +30 -0
- package/dist/icons/components/UiGatewayApi.js.map +1 -0
- package/dist/icons/components/UiImportArrow.cjs +29 -0
- package/dist/icons/components/UiImportArrow.cjs.map +1 -0
- package/dist/icons/components/UiImportArrow.d.ts +9 -0
- package/dist/icons/components/UiImportArrow.d.ts.map +1 -0
- package/dist/icons/components/UiImportArrow.js +27 -0
- package/dist/icons/components/UiImportArrow.js.map +1 -0
- package/dist/icons/components/UiInputField.cjs +33 -0
- package/dist/icons/components/UiInputField.cjs.map +1 -0
- package/dist/icons/components/UiInputField.d.ts +9 -0
- package/dist/icons/components/UiInputField.d.ts.map +1 -0
- package/dist/icons/components/UiInputField.js +31 -0
- package/dist/icons/components/UiInputField.js.map +1 -0
- package/dist/icons/components/UiInsertTable.cjs +29 -0
- package/dist/icons/components/UiInsertTable.cjs.map +1 -0
- package/dist/icons/components/UiInsertTable.d.ts +9 -0
- package/dist/icons/components/UiInsertTable.d.ts.map +1 -0
- package/dist/icons/components/UiInsertTable.js +27 -0
- package/dist/icons/components/UiInsertTable.js.map +1 -0
- package/dist/icons/components/UiLayoutTemplate.cjs +32 -0
- package/dist/icons/components/UiLayoutTemplate.cjs.map +1 -0
- package/dist/icons/components/UiLayoutTemplate.d.ts +9 -0
- package/dist/icons/components/UiLayoutTemplate.d.ts.map +1 -0
- package/dist/icons/components/UiLayoutTemplate.js +30 -0
- package/dist/icons/components/UiLayoutTemplate.js.map +1 -0
- package/dist/icons/components/UiLayoutWindow.cjs +56 -0
- package/dist/icons/components/UiLayoutWindow.cjs.map +1 -0
- package/dist/icons/components/UiLayoutWindow.d.ts +15 -0
- package/dist/icons/components/UiLayoutWindow.d.ts.map +1 -0
- package/dist/icons/components/UiLayoutWindow.js +53 -0
- package/dist/icons/components/UiLayoutWindow.js.map +1 -0
- package/dist/icons/components/UiListEnd.cjs +33 -0
- package/dist/icons/components/UiListEnd.cjs.map +1 -0
- package/dist/icons/components/UiListEnd.d.ts +9 -0
- package/dist/icons/components/UiListEnd.d.ts.map +1 -0
- package/dist/icons/components/UiListEnd.js +31 -0
- package/dist/icons/components/UiListEnd.js.map +1 -0
- package/dist/icons/components/UiListEndLine.cjs +51 -0
- package/dist/icons/components/UiListEndLine.cjs.map +1 -0
- package/dist/icons/components/UiListEndLine.d.ts +15 -0
- package/dist/icons/components/UiListEndLine.d.ts.map +1 -0
- package/dist/icons/components/UiListEndLine.js +48 -0
- package/dist/icons/components/UiListEndLine.js.map +1 -0
- package/dist/icons/components/UiListNumbers.cjs +51 -0
- package/dist/icons/components/UiListNumbers.cjs.map +1 -0
- package/dist/icons/components/UiListNumbers.d.ts +15 -0
- package/dist/icons/components/UiListNumbers.d.ts.map +1 -0
- package/dist/icons/components/UiListNumbers.js +48 -0
- package/dist/icons/components/UiListNumbers.js.map +1 -0
- package/dist/icons/components/UiLowPriority.cjs +29 -0
- package/dist/icons/components/UiLowPriority.cjs.map +1 -0
- package/dist/icons/components/UiLowPriority.d.ts +9 -0
- package/dist/icons/components/UiLowPriority.d.ts.map +1 -0
- package/dist/icons/components/UiLowPriority.js +27 -0
- package/dist/icons/components/UiLowPriority.js.map +1 -0
- package/dist/icons/components/UiMergeQueue.cjs +38 -0
- package/dist/icons/components/UiMergeQueue.cjs.map +1 -0
- package/dist/icons/components/UiMergeQueue.d.ts +9 -0
- package/dist/icons/components/UiMergeQueue.d.ts.map +1 -0
- package/dist/icons/components/UiMergeQueue.js +36 -0
- package/dist/icons/components/UiMergeQueue.js.map +1 -0
- package/dist/icons/components/UiPaperPlaneRight.cjs +51 -0
- package/dist/icons/components/UiPaperPlaneRight.cjs.map +1 -0
- package/dist/icons/components/UiPaperPlaneRight.d.ts +15 -0
- package/dist/icons/components/UiPaperPlaneRight.d.ts.map +1 -0
- package/dist/icons/components/UiPaperPlaneRight.js +48 -0
- package/dist/icons/components/UiPaperPlaneRight.js.map +1 -0
- package/dist/icons/components/UiPipelineStage.cjs +33 -0
- package/dist/icons/components/UiPipelineStage.cjs.map +1 -0
- package/dist/icons/components/UiPipelineStage.d.ts +9 -0
- package/dist/icons/components/UiPipelineStage.d.ts.map +1 -0
- package/dist/icons/components/UiPipelineStage.js +31 -0
- package/dist/icons/components/UiPipelineStage.js.map +1 -0
- package/dist/icons/components/UiPlaylistRemove.cjs +29 -0
- package/dist/icons/components/UiPlaylistRemove.cjs.map +1 -0
- package/dist/icons/components/UiPlaylistRemove.d.ts +9 -0
- package/dist/icons/components/UiPlaylistRemove.d.ts.map +1 -0
- package/dist/icons/components/UiPlaylistRemove.js +27 -0
- package/dist/icons/components/UiPlaylistRemove.js.map +1 -0
- package/dist/icons/components/UiReportForms.cjs +51 -0
- package/dist/icons/components/UiReportForms.cjs.map +1 -0
- package/dist/icons/components/UiReportForms.d.ts +15 -0
- package/dist/icons/components/UiReportForms.d.ts.map +1 -0
- package/dist/icons/components/UiReportForms.js +48 -0
- package/dist/icons/components/UiReportForms.js.map +1 -0
- package/dist/icons/components/UiScreenTemplate.cjs +29 -0
- package/dist/icons/components/UiScreenTemplate.cjs.map +1 -0
- package/dist/icons/components/UiScreenTemplate.d.ts +9 -0
- package/dist/icons/components/UiScreenTemplate.d.ts.map +1 -0
- package/dist/icons/components/UiScreenTemplate.js +27 -0
- package/dist/icons/components/UiScreenTemplate.js.map +1 -0
- package/dist/icons/components/UiServices.cjs +29 -0
- package/dist/icons/components/UiServices.cjs.map +1 -0
- package/dist/icons/components/UiServices.d.ts +9 -0
- package/dist/icons/components/UiServices.d.ts.map +1 -0
- package/dist/icons/components/UiServices.js +27 -0
- package/dist/icons/components/UiServices.js.map +1 -0
- package/dist/icons/components/UiSkipCircle.cjs +51 -0
- package/dist/icons/components/UiSkipCircle.cjs.map +1 -0
- package/dist/icons/components/UiSkipCircle.d.ts +15 -0
- package/dist/icons/components/UiSkipCircle.d.ts.map +1 -0
- package/dist/icons/components/UiSkipCircle.js +48 -0
- package/dist/icons/components/UiSkipCircle.js.map +1 -0
- package/dist/icons/components/UiTaskBatch.cjs +33 -0
- package/dist/icons/components/UiTaskBatch.cjs.map +1 -0
- package/dist/icons/components/UiTaskBatch.d.ts +9 -0
- package/dist/icons/components/UiTaskBatch.d.ts.map +1 -0
- package/dist/icons/components/UiTaskBatch.js +31 -0
- package/dist/icons/components/UiTaskBatch.js.map +1 -0
- package/dist/icons/components/UiTodoList.cjs +29 -0
- package/dist/icons/components/UiTodoList.cjs.map +1 -0
- package/dist/icons/components/UiTodoList.d.ts +9 -0
- package/dist/icons/components/UiTodoList.d.ts.map +1 -0
- package/dist/icons/components/UiTodoList.js +27 -0
- package/dist/icons/components/UiTodoList.js.map +1 -0
- package/dist/icons/components/UiTrayArrowDown.cjs +51 -0
- package/dist/icons/components/UiTrayArrowDown.cjs.map +1 -0
- package/dist/icons/components/UiTrayArrowDown.d.ts +15 -0
- package/dist/icons/components/UiTrayArrowDown.d.ts.map +1 -0
- package/dist/icons/components/UiTrayArrowDown.js +48 -0
- package/dist/icons/components/UiTrayArrowDown.js.map +1 -0
- package/dist/icons/components/UiVault.cjs +51 -0
- package/dist/icons/components/UiVault.cjs.map +1 -0
- package/dist/icons/components/UiVault.d.ts +15 -0
- package/dist/icons/components/UiVault.d.ts.map +1 -0
- package/dist/icons/components/UiVault.js +48 -0
- package/dist/icons/components/UiVault.js.map +1 -0
- package/dist/icons/components/UiWebServiceDefinition.cjs +39 -0
- package/dist/icons/components/UiWebServiceDefinition.cjs.map +1 -0
- package/dist/icons/components/UiWebServiceDefinition.d.ts +9 -0
- package/dist/icons/components/UiWebServiceDefinition.d.ts.map +1 -0
- package/dist/icons/components/UiWebServiceDefinition.js +37 -0
- package/dist/icons/components/UiWebServiceDefinition.js.map +1 -0
- package/dist/icons/components/UiWebhook.cjs +29 -0
- package/dist/icons/components/UiWebhook.cjs.map +1 -0
- package/dist/icons/components/UiWebhook.d.ts +9 -0
- package/dist/icons/components/UiWebhook.d.ts.map +1 -0
- package/dist/icons/components/UiWebhook.js +27 -0
- package/dist/icons/components/UiWebhook.js.map +1 -0
- package/dist/icons/components/UiWebhookLine.cjs +51 -0
- package/dist/icons/components/UiWebhookLine.cjs.map +1 -0
- package/dist/icons/components/UiWebhookLine.d.ts +15 -0
- package/dist/icons/components/UiWebhookLine.d.ts.map +1 -0
- package/dist/icons/components/UiWebhookLine.js +48 -0
- package/dist/icons/components/UiWebhookLine.js.map +1 -0
- package/dist/icons/index.d.ts +62 -0
- package/dist/icons/index.d.ts.map +1 -1
- package/dist/icons/registry.cjs +94 -0
- package/dist/icons/registry.cjs.map +1 -1
- package/dist/icons/registry.d.ts.map +1 -1
- package/dist/icons/registry.js +94 -0
- package/dist/icons/registry.js.map +1 -1
- package/dist/icons.cjs +109 -0
- package/dist/icons.js +48 -1
- package/dist/index.cjs +213 -6
- package/dist/index.js +81 -7
- package/dist/layout/ResizeHandle.cjs +58 -0
- package/dist/layout/ResizeHandle.cjs.map +1 -0
- package/dist/layout/ResizeHandle.d.ts +13 -0
- package/dist/layout/ResizeHandle.d.ts.map +1 -0
- package/dist/layout/ResizeHandle.js +58 -0
- package/dist/layout/ResizeHandle.js.map +1 -0
- package/dist/monaco/DocumentEditor.cjs +275 -0
- package/dist/monaco/DocumentEditor.cjs.map +1 -0
- package/dist/monaco/DocumentEditor.d.ts +60 -0
- package/dist/monaco/DocumentEditor.d.ts.map +1 -0
- package/dist/monaco/DocumentEditor.js +273 -0
- package/dist/monaco/DocumentEditor.js.map +1 -0
- package/dist/monaco/document-source.cjs +122 -0
- package/dist/monaco/document-source.cjs.map +1 -0
- package/dist/monaco/document-source.d.ts +19 -0
- package/dist/monaco/document-source.d.ts.map +1 -0
- package/dist/monaco/document-source.js +120 -0
- package/dist/monaco/document-source.js.map +1 -0
- package/dist/monaco/source-comments.cjs +34 -0
- package/dist/monaco/source-comments.cjs.map +1 -0
- package/dist/monaco/source-comments.d.ts +19 -0
- package/dist/monaco/source-comments.d.ts.map +1 -0
- package/dist/monaco/source-comments.js +34 -0
- package/dist/monaco/source-comments.js.map +1 -0
- package/dist/monaco.cjs +6 -0
- package/dist/monaco.d.ts +2 -0
- package/dist/monaco.d.ts.map +1 -1
- package/dist/monaco.js +3 -1
- package/dist/overlay/DropdownMenu.cjs +17 -14
- package/dist/overlay/DropdownMenu.cjs.map +1 -1
- package/dist/overlay/DropdownMenu.d.ts +1 -0
- package/dist/overlay/DropdownMenu.d.ts.map +1 -1
- package/dist/overlay/DropdownMenu.js +18 -15
- package/dist/overlay/DropdownMenu.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +11 -1
|
@@ -5,6 +5,7 @@ const require_comment_stage = require("../../lib/comment-stage.cjs");
|
|
|
5
5
|
const require_UiEye = require("../../icons/components/UiEye.cjs");
|
|
6
6
|
const require_UiDotsVertical = require("../../icons/components/UiDotsVertical.cjs");
|
|
7
7
|
const require_UiCheck = require("../../icons/components/UiCheck.cjs");
|
|
8
|
+
const require_UiComment = require("../../icons/components/UiComment.cjs");
|
|
8
9
|
const require_UiFileCode = require("../../icons/components/UiFileCode.cjs");
|
|
9
10
|
const require_UiGitCommit = require("../../icons/components/UiGitCommit.cjs");
|
|
10
11
|
const require_UiListChecks = require("../../icons/components/UiListChecks.cjs");
|
|
@@ -15,8 +16,15 @@ const require_DropdownMenu = require("../../overlay/DropdownMenu.cjs");
|
|
|
15
16
|
const require_code_highlight = require("../../data/code-highlight.cjs");
|
|
16
17
|
const require_Markdown = require("../../data/Markdown.cjs");
|
|
17
18
|
const require_Tabs = require("../../layout/Tabs.cjs");
|
|
19
|
+
const require_ImagePreview = require("../../data/ImagePreview.cjs");
|
|
18
20
|
const require_ProblemActions = require("../../data/diagnostics/ProblemActions.cjs");
|
|
21
|
+
const require_comment_persistence = require("../../comments/comment-persistence.cjs");
|
|
22
|
+
const require_CommentRail = require("../../comments/CommentRail.cjs");
|
|
23
|
+
const require_comment_assign = require("../../comments/comment-assign.cjs");
|
|
19
24
|
const require_CommentThread = require("../../comments/CommentThread.cjs");
|
|
25
|
+
const require_element_picker = require("../../comments/element-picker.cjs");
|
|
26
|
+
const require_dom_anchor = require("../../comments/anchoring/dom-anchor.cjs");
|
|
27
|
+
const require_patch_anchor = require("../../comments/anchoring/patch-anchor.cjs");
|
|
20
28
|
const require_findings_comments = require("../findings-comments.cjs");
|
|
21
29
|
const require_LazyAnnotatedCode = require("../LazyAnnotatedCode.cjs");
|
|
22
30
|
const require_mdx_source = require("../mdx-source.cjs");
|
|
@@ -32,11 +40,19 @@ const require_source_anchor = require("./source-anchor.cjs");
|
|
|
32
40
|
const require_InlineThread = require("./InlineThread.cjs");
|
|
33
41
|
const require_InlineAuthors = require("./InlineAuthors.cjs");
|
|
34
42
|
const require_CommentDraft = require("./CommentDraft.cjs");
|
|
43
|
+
const require_views = require("./views.cjs");
|
|
44
|
+
const require_FileThreads = require("./FileThreads.cjs");
|
|
45
|
+
const require_EditThreads = require("./EditThreads.cjs");
|
|
46
|
+
const require_patch_comments = require("./patch-comments.cjs");
|
|
47
|
+
const require_post_actions = require("./post-actions.cjs");
|
|
48
|
+
const require_selection_lines = require("./selection-lines.cjs");
|
|
35
49
|
let react = require("react");
|
|
36
50
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
37
51
|
// src/file-findings/file-review/FileReview.tsx
|
|
38
52
|
var DEFAULT_CONFIG = { statuses: require_comment_types.DEFAULT_COMMENT_STATUSES };
|
|
39
53
|
var ESTIMATED_CARD_HEIGHT = 96;
|
|
54
|
+
/** The rail key of the composer for a new comment on the whole file; never a thread anchor. */
|
|
55
|
+
var FILE_DRAFT_CARD = "file-draft";
|
|
40
56
|
/** How long the pointer rests on a highlight before its inline box opens. */
|
|
41
57
|
var HOVER_OPEN_MS = 450;
|
|
42
58
|
/** Grace period for the pointer to travel from a highlight into its inline box. */
|
|
@@ -46,12 +62,19 @@ var BAR_HOVER_WIDTH = 16;
|
|
|
46
62
|
var NO_FINDINGS = [];
|
|
47
63
|
var NO_COMMENTS = [];
|
|
48
64
|
var NO_CALLBACKS = {};
|
|
65
|
+
var NO_TABS = [];
|
|
49
66
|
/** Findings anchor on their line (`lineAnchor`); people's threads on a quote. */
|
|
50
67
|
var FINDING_ANCHOR_PREFIX = require_findings_comments.lineAnchor(1).replace(/\d+$/, "");
|
|
51
68
|
var isFindingAnchor = (anchor) => anchor.startsWith(FINDING_ANCHOR_PREFIX);
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
69
|
+
/** An edit-mode draft is composed in the thread rail beside the editor, so it has no floating position. */
|
|
70
|
+
var NO_POSITION = {
|
|
71
|
+
top: 0,
|
|
72
|
+
bottom: 0,
|
|
73
|
+
left: 0
|
|
74
|
+
};
|
|
75
|
+
var isMarkdownPath = (path) => /\.(md|mdx|markdown)$/i.test(path);
|
|
76
|
+
/** Anchors that highlight text in Source: quoted words (`q:`), source characters (`s:`) or whole lines (`r:`). */
|
|
77
|
+
var isTextAnchor = (anchor) => anchor.startsWith("q:") || anchor.startsWith("s:") || anchor.startsWith("r:");
|
|
55
78
|
var quoteDraft = (locator) => ({
|
|
56
79
|
anchor: require_quote_anchor.quoteAnchor(locator),
|
|
57
80
|
label: require_quote_anchor.describeQuote(locator)
|
|
@@ -60,7 +83,14 @@ function boxClass({ mode, active }) {
|
|
|
60
83
|
if (mode === "block") return require_utils.cn("border-l-[3px] border-amber-400", active ? "bg-amber-200/50 [[data-theme=dark]_&]:bg-amber-400/20" : "bg-amber-100/30 [[data-theme=dark]_&]:bg-amber-400/5");
|
|
61
84
|
return require_utils.cn("rounded-sm", active ? "bg-amber-300 [[data-theme=dark]_&]:bg-amber-400/50" : "bg-amber-200/60 [[data-theme=dark]_&]:bg-amber-400/25");
|
|
62
85
|
}
|
|
63
|
-
|
|
86
|
+
/**
|
|
87
|
+
* A thread's label. An r: anchor carries its own hunk, so one not among the placed threads
|
|
88
|
+
* (a just-posted comment the host has not yet fed back) is placed against `raw` here.
|
|
89
|
+
*/
|
|
90
|
+
function anchorLabel({ anchor, found, placements, raw }) {
|
|
91
|
+
if (anchor === "__document__") return "File";
|
|
92
|
+
if (anchor.startsWith("e:")) return found ? "Element" : "Element not found";
|
|
93
|
+
if (anchor.startsWith("r:")) return require_patch_comments.patchLabel(placements.get(anchor) ?? require_patch_comments.placePatches(raw, [anchor]).get(anchor));
|
|
64
94
|
const label = anchor.startsWith("q:") ? require_quote_anchor.describeQuote(require_quote_anchor.parseQuoteAnchor(anchor)) : anchor.startsWith("s:") ? require_source_anchor.describeSource(require_source_anchor.parseSourceAnchor(anchor)) : anchor.replace("line:", "line ");
|
|
65
95
|
return found ? label : `Text not found · ${label}`;
|
|
66
96
|
}
|
|
@@ -81,6 +111,16 @@ function wordAt(x, y) {
|
|
|
81
111
|
range.setEnd(node, end);
|
|
82
112
|
return range;
|
|
83
113
|
}
|
|
114
|
+
function threadOptions(comments, people) {
|
|
115
|
+
if (!comments) return {};
|
|
116
|
+
return {
|
|
117
|
+
...comments.previewLines !== void 0 ? { previewLines: comments.previewLines } : {},
|
|
118
|
+
...comments.detailTabs ? { detailTabs: comments.detailTabs } : {},
|
|
119
|
+
...comments.onMaximizedChange ? { onMaximizedChange: comments.onMaximizedChange } : {},
|
|
120
|
+
...people && comments.createActions ? { createActions: comments.createActions } : {},
|
|
121
|
+
...people && comments.extraAssignItems ? { extraAssignItems: comments.extraAssignItems } : {}
|
|
122
|
+
};
|
|
123
|
+
}
|
|
84
124
|
var LAYOUTS = [{
|
|
85
125
|
id: "inline",
|
|
86
126
|
label: "Inline comments"
|
|
@@ -105,17 +145,28 @@ var REVEAL_OFFSET = 48;
|
|
|
105
145
|
* (quote highlights and threads), text selection to comment, `blame`, and an
|
|
106
146
|
* editable source.
|
|
107
147
|
*/
|
|
108
|
-
function FileReview({ path, source:
|
|
148
|
+
function FileReview({ sidebarWidth, onSidebarWidthChange, resolveUrl, path, source: sourceProp, imageUrl, view, onViewChange, findings: findingsProp, problemFilters, onProblemFiltersChange, comments, mode = "text", selectToComment = false, authorFilter = false, layout = "margin", onLayoutChange, onSourceChange, blame, line, onLineChange, getFindingActions, tabs = NO_TABS, toolbar, className }) {
|
|
109
149
|
const lint = findingsProp !== void 0;
|
|
110
150
|
const findings = findingsProp ?? NO_FINDINGS;
|
|
111
151
|
const prose = isMarkdownPath(path);
|
|
152
|
+
if (sourceProp === void 0 && !imageUrl) throw new Error(`FileReview: ${path} needs \`source\` unless \`imageUrl\` is set`);
|
|
153
|
+
if (imageUrl && prose) throw new Error(`FileReview: \`imageUrl\` is for image files, got markdown ${path}`);
|
|
154
|
+
const hasSource = sourceProp !== void 0;
|
|
155
|
+
const raw = sourceProp ?? "";
|
|
156
|
+
for (const tab of tabs) if (require_views.isBuiltinFileReviewView(tab.id)) throw new Error(`FileReview: host tab id ${JSON.stringify(tab.id)} collides with a built-in tab`);
|
|
157
|
+
const hostTab = tabs.find((tab) => tab.id === view);
|
|
158
|
+
if (!hostTab && !require_views.isBuiltinFileReviewView(view)) throw new Error(`FileReview: view ${JSON.stringify(view)} is neither a built-in tab nor one of \`tabs\` (${tabs.map((t) => t.id).join(", ") || "none"})`);
|
|
159
|
+
if ((view === "source" || view === "problems") && !hasSource) throw new Error(`FileReview: view ${JSON.stringify(view)} needs \`source\`, ${path} is shown as an image only`);
|
|
112
160
|
if (view === "problems" && !lint) throw new Error("FileReview: view \"problems\" needs `findings`");
|
|
113
161
|
if (view === "problems" && (!problemFilters || !onProblemFiltersChange)) throw new Error("FileReview: view \"problems\" needs `problemFilters` and `onProblemFiltersChange`");
|
|
114
|
-
if (view === "preview" && !prose) throw new Error(`FileReview: view "preview" needs a markdown file, got ${path}`);
|
|
162
|
+
if (view === "preview" && !prose && !imageUrl) throw new Error(`FileReview: view "preview" needs a markdown file, got ${path}`);
|
|
115
163
|
const [showBlame, setShowBlame] = (0, react.useState)(false);
|
|
116
164
|
const [showFindings, setShowFindings] = (0, react.useState)(true);
|
|
165
|
+
const [editMode, setEditMode] = (0, react.useState)(true);
|
|
117
166
|
const blaming = showBlame && blame !== void 0;
|
|
118
|
-
const editing = onSourceChange !== void 0 && !blaming;
|
|
167
|
+
const editing = onSourceChange !== void 0 && editMode && !blaming;
|
|
168
|
+
const patchMode = comments?.anchoring === "patch";
|
|
169
|
+
const targets = comments?.targets;
|
|
119
170
|
const people = comments?.items ?? NO_COMMENTS;
|
|
120
171
|
const callbacks = comments?.callbacks ?? NO_CALLBACKS;
|
|
121
172
|
const hostConfig = comments?.config ?? DEFAULT_CONFIG;
|
|
@@ -156,11 +207,23 @@ function FileReview({ path, source: raw, view, onViewChange, findings: findingsP
|
|
|
156
207
|
theme
|
|
157
208
|
]);
|
|
158
209
|
const sourceTokens = tokens?.source === source ? tokens.lines : null;
|
|
159
|
-
const [align, setAlign] = (
|
|
160
|
-
const [focused, setFocused] = (
|
|
210
|
+
const [align, setAlign] = require_comment_persistence.useCommentState(`file:${path}:align`, "line");
|
|
211
|
+
const [focused, setFocused] = require_comment_persistence.useCommentState(`file:${path}:focused`, null);
|
|
161
212
|
const [hovered, setHovered] = (0, react.useState)(null);
|
|
162
213
|
const [draft, setDraft] = (0, react.useState)(null);
|
|
163
|
-
|
|
214
|
+
/** A new comment on the whole file is being written, in the file-level list. */
|
|
215
|
+
const [fileDraft, setFileDraft] = (0, react.useState)(false);
|
|
216
|
+
/** The element an `e:` draft was picked on, so a screenshot can capture it. */
|
|
217
|
+
const draftElement = (0, react.useRef)(null);
|
|
218
|
+
const discardCommentDraft = require_comment_persistence.useDiscardCommentDraft();
|
|
219
|
+
const [savedDraft, saveDraft] = require_comment_persistence.useCommentState(`file:${path}:selection`, null);
|
|
220
|
+
(0, react.useEffect)(() => {
|
|
221
|
+
if (draft?.expanded && draft.surface !== "edit") {
|
|
222
|
+
const { position: _position, ...selection } = draft;
|
|
223
|
+
saveDraft(selection);
|
|
224
|
+
}
|
|
225
|
+
}, [draft, saveDraft]);
|
|
226
|
+
const [filter, setFilter] = require_comment_persistence.useCommentState(`file:${path}:filter`, "all");
|
|
164
227
|
const [editorLine, setEditorLine] = (0, react.useState)(void 0);
|
|
165
228
|
/** A finding picked from Source or Problems: the preview scrolls to it once its box is measured. */
|
|
166
229
|
const [revealing, setRevealing] = (0, react.useState)(null);
|
|
@@ -176,20 +239,123 @@ function FileReview({ path, source: raw, view, onViewChange, findings: findingsP
|
|
|
176
239
|
const findingComments = (0, react.useMemo)(() => require_findings_comments.findingsToComments(findings), [findings]);
|
|
177
240
|
const all = (0, react.useMemo)(() => [...findingComments, ...people], [findingComments, people]);
|
|
178
241
|
const findingById = (0, react.useMemo)(() => new Map(findingComments.map((c, i) => [c.id, findings[i]])), [findingComments, findings]);
|
|
242
|
+
const commentOfFinding = (0, react.useMemo)(() => new Map(findings.map((f, i) => [f, findingComments[i]])), [findingComments, findings]);
|
|
243
|
+
const [assignError, setAssignError] = (0, react.useState)(null);
|
|
244
|
+
const assignable = Boolean(callbacks.onCreate) && (config.assignees?.length ?? 0) > 0;
|
|
245
|
+
/** The quoted text of a finding's first line, as a people's anchor (a `line:` anchor would read as a finding). */
|
|
246
|
+
function promotedAnchor(finding) {
|
|
247
|
+
const text = sourceLines[finding.line - 1];
|
|
248
|
+
if (text === void 0) throw new Error(`line ${finding.line} is outside ${path} (${sourceLines.length} lines)`);
|
|
249
|
+
const indent = text.length - text.trimStart().length;
|
|
250
|
+
const lineEnd = text.trimEnd().length;
|
|
251
|
+
const start = finding.column ? finding.column - 1 : indent;
|
|
252
|
+
const end = (finding.endLine ?? finding.line) === finding.line && finding.endColumn ? finding.endColumn - 1 : lineEnd;
|
|
253
|
+
const [from, to] = end > start ? [start, end] : [indent, lineEnd];
|
|
254
|
+
if (prose) {
|
|
255
|
+
const locator = markdown.current && require_quote_anchor.locateSourceSelection(markdown.current, sourceLines, {
|
|
256
|
+
line: finding.line,
|
|
257
|
+
start: from,
|
|
258
|
+
end: to
|
|
259
|
+
});
|
|
260
|
+
if (!locator) throw new Error(`line ${finding.line} of ${path} has no rendered text to anchor a thread on`);
|
|
261
|
+
return require_quote_anchor.quoteAnchor(locator);
|
|
262
|
+
}
|
|
263
|
+
const locator = require_source_anchor.locateSource(source, {
|
|
264
|
+
line: finding.line,
|
|
265
|
+
column: from
|
|
266
|
+
}, {
|
|
267
|
+
line: finding.line,
|
|
268
|
+
column: to
|
|
269
|
+
});
|
|
270
|
+
if (!locator) throw new Error(`line ${finding.line} of ${path} is blank; there is no text to anchor a thread on`);
|
|
271
|
+
return require_source_anchor.sourceAnchor(locator);
|
|
272
|
+
}
|
|
273
|
+
const findingActions = (0, react.useMemo)(() => {
|
|
274
|
+
const onCreate = callbacks.onCreate;
|
|
275
|
+
if (!getFindingActions && !(assignable && onCreate)) return void 0;
|
|
276
|
+
const run = (verb, action) => {
|
|
277
|
+
setAssignError(null);
|
|
278
|
+
Promise.resolve().then(action).catch((error) => setAssignError(`Could not ${verb}: ${error instanceof Error ? error.message : String(error)}`));
|
|
279
|
+
};
|
|
280
|
+
return (finding) => [...assignable && onCreate ? require_comment_assign.assignmentMenuItems({
|
|
281
|
+
comment: commentOfFinding.get(finding),
|
|
282
|
+
config,
|
|
283
|
+
onAssign: async (assignee) => {
|
|
284
|
+
if (!assignee) throw new Error("a finding has no assignee to clear");
|
|
285
|
+
await onCreate({
|
|
286
|
+
body: commentOfFinding.get(finding).body,
|
|
287
|
+
anchor: promotedAnchor(finding),
|
|
288
|
+
assignee
|
|
289
|
+
});
|
|
290
|
+
},
|
|
291
|
+
run
|
|
292
|
+
}) : [], ...getFindingActions?.(finding) ?? []];
|
|
293
|
+
}, [
|
|
294
|
+
getFindingActions,
|
|
295
|
+
assignable,
|
|
296
|
+
callbacks.onCreate,
|
|
297
|
+
commentOfFinding,
|
|
298
|
+
config,
|
|
299
|
+
source,
|
|
300
|
+
sourceLines,
|
|
301
|
+
prose,
|
|
302
|
+
path
|
|
303
|
+
]);
|
|
304
|
+
const hostRootDetails = comments?.renderRootDetails;
|
|
179
305
|
const renderRootDetails = (0, react.useMemo)(() => {
|
|
180
|
-
if (!
|
|
306
|
+
if (!findingActions && !hostRootDetails) return void 0;
|
|
181
307
|
return (comment) => {
|
|
182
308
|
const finding = findingById.get(comment.id);
|
|
183
|
-
|
|
309
|
+
if (finding) return findingActions ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ProblemActions.ProblemActions, { items: findingActions(finding) }) : null;
|
|
310
|
+
return hostRootDetails?.(comment) ?? null;
|
|
184
311
|
};
|
|
185
|
-
}, [
|
|
312
|
+
}, [
|
|
313
|
+
findingActions,
|
|
314
|
+
hostRootDetails,
|
|
315
|
+
findingById
|
|
316
|
+
]);
|
|
317
|
+
const peopleThreads = (0, react.useMemo)(() => threadOptions(comments, true), [comments]);
|
|
318
|
+
const findingThreads = (0, react.useMemo)(() => threadOptions(comments, false), [comments]);
|
|
186
319
|
const filtered = (0, react.useMemo)(() => all.filter((c) => c.parentId || filter === "all" || (c.author?.kind ?? "user") === filter), [all, filter]);
|
|
187
320
|
const open = (0, react.useMemo)(() => require_comment_stage.selectCommentThreadsByStage(filtered, config, "active"), [filtered, config]);
|
|
188
321
|
const resolvedCount = require_comment_utils.getRoots(filtered).filter((c) => require_comment_stage.resolveCommentStage(config, c.status) !== "active").length;
|
|
189
|
-
const
|
|
190
|
-
const
|
|
322
|
+
const documentThreads = Boolean(targets?.document);
|
|
323
|
+
const threadAnchors = (0, react.useMemo)(() => [...new Set(require_comment_utils.getRoots(open).map((c) => c.anchor || (documentThreads ? "__document__" : "")))].filter(Boolean), [open, documentThreads]);
|
|
324
|
+
const draftAnchor = draft?.expanded ? draft.anchor : savedDraft?.anchor ?? null;
|
|
191
325
|
const unposted = draftAnchor && !threadAnchors.includes(draftAnchor) ? draftAnchor : null;
|
|
192
|
-
const
|
|
326
|
+
const allAnchors = (0, react.useMemo)(() => unposted ? [...threadAnchors, unposted] : threadAnchors, [threadAnchors, unposted]);
|
|
327
|
+
const patchPlacements = (0, react.useMemo)(() => require_patch_comments.placePatches(raw, allAnchors), [raw, allAnchors]);
|
|
328
|
+
const patchRanges = (0, react.useMemo)(() => require_patch_comments.patchLineRanges(patchPlacements), [patchPlacements]);
|
|
329
|
+
const foundElements = require_hooks.useFoundElements({
|
|
330
|
+
markdown,
|
|
331
|
+
anchors: allAnchors
|
|
332
|
+
});
|
|
333
|
+
const fileLevel = (0, react.useMemo)(() => new Set(threadAnchors.filter((anchor) => anchor === "__document__" || require_patch_anchor.isPatchAnchor(anchor) && patchPlacements.get(anchor)?.match.state !== "matched" || anchor.startsWith("e:") && !foundElements.has(anchor))), [
|
|
334
|
+
threadAnchors,
|
|
335
|
+
patchPlacements,
|
|
336
|
+
foundElements
|
|
337
|
+
]);
|
|
338
|
+
const anchors = (0, react.useMemo)(() => allAnchors.filter((anchor) => !fileLevel.has(anchor)), [allAnchors, fileLevel]);
|
|
339
|
+
const cardAnchors = (0, react.useMemo)(() => threadAnchors.filter((anchor) => !fileLevel.has(anchor)), [threadAnchors, fileLevel]);
|
|
340
|
+
const fileEntries = (0, react.useMemo)(() => threadAnchors.filter((anchor) => fileLevel.has(anchor)).map((anchor) => {
|
|
341
|
+
const placement = patchPlacements.get(anchor);
|
|
342
|
+
return {
|
|
343
|
+
anchor,
|
|
344
|
+
label: anchorLabel({
|
|
345
|
+
anchor,
|
|
346
|
+
found: false,
|
|
347
|
+
placements: patchPlacements,
|
|
348
|
+
raw
|
|
349
|
+
}),
|
|
350
|
+
note: placement ? require_patch_comments.patchNote(placement.match) : anchor.startsWith("e:") ? "The element this was written on is no longer in the rendered document." : null,
|
|
351
|
+
thread: require_comment_utils.selectAnchorThreads(open, anchor)
|
|
352
|
+
};
|
|
353
|
+
}), [
|
|
354
|
+
threadAnchors,
|
|
355
|
+
fileLevel,
|
|
356
|
+
patchPlacements,
|
|
357
|
+
open
|
|
358
|
+
]);
|
|
193
359
|
const severity = (0, react.useMemo)(() => {
|
|
194
360
|
const worst = /* @__PURE__ */ new Map();
|
|
195
361
|
for (const c of require_comment_utils.getRoots(open)) {
|
|
@@ -205,15 +371,51 @@ function FileReview({ path, source: raw, view, onViewChange, findings: findingsP
|
|
|
205
371
|
markdown,
|
|
206
372
|
anchors,
|
|
207
373
|
mode,
|
|
374
|
+
patchRanges,
|
|
208
375
|
visible: view === "preview"
|
|
209
376
|
});
|
|
377
|
+
(0, react.useEffect)(() => {
|
|
378
|
+
if (draft || !savedDraft || savedDraft.surface !== "preview") return;
|
|
379
|
+
const box = boxes.get(savedDraft.anchor)?.[0];
|
|
380
|
+
if (box) setDraft({
|
|
381
|
+
...savedDraft,
|
|
382
|
+
position: {
|
|
383
|
+
top: box.top,
|
|
384
|
+
bottom: box.top + box.height,
|
|
385
|
+
left: box.left + box.width / 2
|
|
386
|
+
}
|
|
387
|
+
});
|
|
388
|
+
}, [
|
|
389
|
+
boxes,
|
|
390
|
+
draft,
|
|
391
|
+
savedDraft
|
|
392
|
+
]);
|
|
210
393
|
const sourceOrigin = (0, react.useRef)(null);
|
|
211
394
|
const [sourceWidth, setSourceWidth] = (0, react.useState)(0);
|
|
212
395
|
const [sourceMarks, setSourceMarks] = (0, react.useState)([]);
|
|
396
|
+
(0, react.useEffect)(() => {
|
|
397
|
+
if (draft || !savedDraft || savedDraft.surface !== "source" || !sourceOrigin.current) return;
|
|
398
|
+
const element = [...sourceOrigin.current.querySelectorAll("[data-source-comment]")].find((node) => require_source_marks.markAnchors(node).includes(savedDraft.anchor));
|
|
399
|
+
if (!element) return;
|
|
400
|
+
const rect = element.getBoundingClientRect();
|
|
401
|
+
const base = sourceOrigin.current.getBoundingClientRect();
|
|
402
|
+
setDraft({
|
|
403
|
+
...savedDraft,
|
|
404
|
+
position: {
|
|
405
|
+
top: rect.top - base.top,
|
|
406
|
+
bottom: rect.bottom - base.top,
|
|
407
|
+
left: rect.left - base.left + rect.width / 2
|
|
408
|
+
}
|
|
409
|
+
});
|
|
410
|
+
}, [
|
|
411
|
+
draft,
|
|
412
|
+
savedDraft,
|
|
413
|
+
sourceMarks
|
|
414
|
+
]);
|
|
213
415
|
(0, react.useLayoutEffect)(() => {
|
|
214
416
|
if (view !== "source" || !sourceOrigin.current) return;
|
|
215
417
|
const root = markdown.current;
|
|
216
|
-
const mark = () => setSourceMarks(anchors.flatMap((anchor) => {
|
|
418
|
+
const mark = () => setSourceMarks([...anchors.flatMap((anchor) => {
|
|
217
419
|
if (anchor.startsWith("s:")) return [{
|
|
218
420
|
anchor,
|
|
219
421
|
spans: require_source_anchor.resolveSource(source, require_source_anchor.parseSourceAnchor(anchor))
|
|
@@ -223,7 +425,7 @@ function FileReview({ path, source: raw, view, onViewChange, findings: findingsP
|
|
|
223
425
|
spans: require_quote_anchor.sourceSpans(root, sourceLines, require_quote_anchor.parseQuoteAnchor(anchor))
|
|
224
426
|
}];
|
|
225
427
|
return [];
|
|
226
|
-
}).filter((m) => m.spans.length > 0));
|
|
428
|
+
}).filter((m) => m.spans.length > 0), ...require_patch_comments.patchSourceMarks(raw, patchPlacements)]);
|
|
227
429
|
mark();
|
|
228
430
|
const renders = new MutationObserver(mark);
|
|
229
431
|
if (root) renders.observe(root, {
|
|
@@ -243,7 +445,9 @@ function FileReview({ path, source: raw, view, onViewChange, findings: findingsP
|
|
|
243
445
|
anchors,
|
|
244
446
|
source,
|
|
245
447
|
sourceLines,
|
|
246
|
-
editing
|
|
448
|
+
editing,
|
|
449
|
+
raw,
|
|
450
|
+
patchPlacements
|
|
247
451
|
]);
|
|
248
452
|
const hoverTimer = (0, react.useRef)(null);
|
|
249
453
|
/** The anchor the pointer is heading for; `hovered` catches up once the timer fires. */
|
|
@@ -287,14 +491,19 @@ function FileReview({ path, source: raw, view, onViewChange, findings: findingsP
|
|
|
287
491
|
(0, react.useEffect)(() => {
|
|
288
492
|
const pane = scroller.current;
|
|
289
493
|
if (view !== "source" || !revealing || !pane) return;
|
|
290
|
-
const
|
|
494
|
+
const match = patchPlacements.get(revealing)?.match;
|
|
495
|
+
const line = isFindingAnchor(revealing) ? revealing.slice(FINDING_ANCHOR_PREFIX.length) : match?.state === "matched" ? String(match.startLine) : null;
|
|
291
496
|
const row = line ? pane.querySelector(`[data-source-line="${line}"]`) : null;
|
|
292
497
|
if (row) {
|
|
293
498
|
const top = row.getBoundingClientRect().top - pane.getBoundingClientRect().top + pane.scrollTop;
|
|
294
499
|
if (!(top >= pane.scrollTop && top + row.offsetHeight <= pane.scrollTop + pane.clientHeight)) pane.scrollTop = top - REVEAL_OFFSET;
|
|
295
500
|
}
|
|
296
501
|
setRevealing(null);
|
|
297
|
-
}, [
|
|
502
|
+
}, [
|
|
503
|
+
view,
|
|
504
|
+
revealing,
|
|
505
|
+
patchPlacements
|
|
506
|
+
]);
|
|
298
507
|
const sidebarScrolls = layout === "margin" && !narrow;
|
|
299
508
|
/** Aligned cards sit at their anchor's offset, so matching the document's scroll puts each level with its line. */
|
|
300
509
|
const levelSidebar = () => {
|
|
@@ -338,18 +547,28 @@ function FileReview({ path, source: raw, view, onViewChange, findings: findingsP
|
|
|
338
547
|
setRevealing(anchor);
|
|
339
548
|
setEditorLine(line);
|
|
340
549
|
}, [line]);
|
|
550
|
+
const fileDrafting = fileDraft && Boolean(callbacks.onCreate);
|
|
551
|
+
const marginRail = Boolean(comments) && prose && layout === "margin" && view === "preview";
|
|
552
|
+
const editRail = editing && view === "source" && patchMode;
|
|
553
|
+
const marginFiles = marginRail ? [...fileDrafting ? [FILE_DRAFT_CARD] : [], ...fileEntries.map((entry) => entry.anchor)] : [];
|
|
554
|
+
const railAnchors = [...marginFiles, ...cardAnchors];
|
|
341
555
|
const documentOrder = [...boxes.keys()];
|
|
342
556
|
const tops = require_geometry.layoutCards({
|
|
343
|
-
cards:
|
|
557
|
+
cards: [...marginFiles.map((anchor, index) => ({
|
|
558
|
+
anchor,
|
|
559
|
+
desired: 0,
|
|
560
|
+
order: index - marginFiles.length,
|
|
561
|
+
height: heights[anchor] ?? ESTIMATED_CARD_HEIGHT
|
|
562
|
+
})), ...cardAnchors.map((anchor) => ({
|
|
344
563
|
anchor,
|
|
345
564
|
desired: boxes.get(anchor)?.[0]?.top ?? height,
|
|
346
565
|
order: boxes.has(anchor) ? documentOrder.indexOf(anchor) : documentOrder.length,
|
|
347
566
|
height: heights[anchor] ?? ESTIMATED_CARD_HEIGHT
|
|
348
|
-
})),
|
|
567
|
+
}))],
|
|
349
568
|
focused
|
|
350
569
|
});
|
|
351
|
-
const railHeight = Math.max(height, ...
|
|
352
|
-
const ordered = [...
|
|
570
|
+
const railHeight = Math.max(height, ...railAnchors.map((a) => (tops.get(a) ?? 0) + (heights[a] ?? ESTIMATED_CARD_HEIGHT)));
|
|
571
|
+
const ordered = [...railAnchors].sort((a, b) => (tops.get(a) ?? 0) - (tops.get(b) ?? 0));
|
|
353
572
|
/**
|
|
354
573
|
* The anchor under the pointer, preferring an exact quote over the block holding it.
|
|
355
574
|
* A click takes the whole block; a hover only an exact quote or a block's severity
|
|
@@ -381,6 +600,10 @@ function FileReview({ path, source: raw, view, onViewChange, findings: findingsP
|
|
|
381
600
|
* anchors on the source characters.
|
|
382
601
|
*/
|
|
383
602
|
function locate(surface, range) {
|
|
603
|
+
if (patchMode) {
|
|
604
|
+
const covered = surface === "preview" ? markdown.current && require_selection_lines.previewSelectionLines(range, markdown.current) : require_selection_lines.sourceSelectionLines(range);
|
|
605
|
+
return covered ? require_patch_comments.patchDraft(raw, covered) : null;
|
|
606
|
+
}
|
|
384
607
|
if (!prose) {
|
|
385
608
|
const covered = require_source_marks.sourceRangeOf(range);
|
|
386
609
|
const locator = covered && require_source_anchor.locateSource(source, covered.start, covered.end);
|
|
@@ -500,7 +723,12 @@ function FileReview({ path, source: raw, view, onViewChange, findings: findingsP
|
|
|
500
723
|
});
|
|
501
724
|
window.getSelection()?.removeAllRanges();
|
|
502
725
|
}
|
|
503
|
-
const closeDraft = (
|
|
726
|
+
const closeDraft = () => {
|
|
727
|
+
if (draft) discardCommentDraft(draft.anchor);
|
|
728
|
+
draftElement.current = null;
|
|
729
|
+
setDraft(null);
|
|
730
|
+
saveDraft(null);
|
|
731
|
+
};
|
|
504
732
|
/** An open card follows its measured highlight, so a reflow (width, layout) keeps it beside the text. */
|
|
505
733
|
function draftPosition(current) {
|
|
506
734
|
const list = current.expanded && current.surface === "preview" ? boxes.get(current.anchor) : void 0;
|
|
@@ -513,9 +741,133 @@ function FileReview({ path, source: raw, view, onViewChange, findings: findingsP
|
|
|
513
741
|
left: first.left + first.width / 2
|
|
514
742
|
};
|
|
515
743
|
}
|
|
516
|
-
|
|
744
|
+
const hostActions = peopleThreads.createActions;
|
|
745
|
+
const draftActions = (0, react.useMemo)(() => require_post_actions.composerActions({
|
|
746
|
+
host: hostActions,
|
|
747
|
+
screenshot: Boolean(targets?.screenshot)
|
|
748
|
+
}), [hostActions, targets?.screenshot]);
|
|
749
|
+
/** What "Post with screenshot" captures: the picked element, the anchored boxes in Preview, else the whole pane. */
|
|
750
|
+
function regionOf(anchor) {
|
|
751
|
+
const element = draftElement.current;
|
|
752
|
+
if (element?.isConnected && draft?.anchor === anchor) return element;
|
|
753
|
+
const base = origin.current;
|
|
754
|
+
const list = view === "preview" ? boxes.get(anchor) : void 0;
|
|
755
|
+
if (base && list && list.length > 0) {
|
|
756
|
+
const frame = base.getBoundingClientRect();
|
|
757
|
+
const left = Math.min(...list.map((box) => box.left));
|
|
758
|
+
const top = Math.min(...list.map((box) => box.top));
|
|
759
|
+
const right = Math.max(...list.map((box) => box.left + box.width));
|
|
760
|
+
const bottom = Math.max(...list.map((box) => box.top + box.height));
|
|
761
|
+
return {
|
|
762
|
+
rect: {
|
|
763
|
+
x: frame.left + left,
|
|
764
|
+
y: frame.top + top,
|
|
765
|
+
width: right - left,
|
|
766
|
+
height: bottom - top
|
|
767
|
+
},
|
|
768
|
+
isLive: () => base.isConnected
|
|
769
|
+
};
|
|
770
|
+
}
|
|
771
|
+
if (!scroller.current) throw new Error("FileReview: there is nothing mounted to capture");
|
|
772
|
+
return scroller.current;
|
|
773
|
+
}
|
|
774
|
+
async function postDraft(anchor, input, action) {
|
|
517
775
|
const onCreate = callbacks.onCreate;
|
|
518
|
-
if (!onCreate)
|
|
776
|
+
if (!onCreate) throw new Error("FileReview: comment creation is not configured");
|
|
777
|
+
await require_post_actions.createComment({
|
|
778
|
+
onCreate,
|
|
779
|
+
input,
|
|
780
|
+
action,
|
|
781
|
+
hostActions,
|
|
782
|
+
region: () => regionOf(anchor)
|
|
783
|
+
});
|
|
784
|
+
}
|
|
785
|
+
async function postFileDraft(input, action) {
|
|
786
|
+
await postDraft(require_comment_types.DOCUMENT_ANCHOR, input, action);
|
|
787
|
+
setFileDraft(false);
|
|
788
|
+
}
|
|
789
|
+
const picker = require_element_picker.useElementPicker({
|
|
790
|
+
root: origin,
|
|
791
|
+
accepts: (element) => markdown.current?.contains(element) ?? false,
|
|
792
|
+
onPick: (element) => {
|
|
793
|
+
const root = markdown.current;
|
|
794
|
+
if (!root || !origin.current) return;
|
|
795
|
+
const locators = require_dom_anchor.captureLocators(element, root);
|
|
796
|
+
if (locators.length === 0) return setAssignError("Could not comment on that element: it cannot be told apart from the rest of the page");
|
|
797
|
+
const base = origin.current.getBoundingClientRect();
|
|
798
|
+
const rect = element.getBoundingClientRect();
|
|
799
|
+
draftElement.current = element;
|
|
800
|
+
setFileDraft(false);
|
|
801
|
+
setDraft({
|
|
802
|
+
anchor: require_dom_anchor.elementAnchor(locators),
|
|
803
|
+
label: require_element_picker.elementLabel(element),
|
|
804
|
+
position: {
|
|
805
|
+
top: rect.top - base.top,
|
|
806
|
+
bottom: rect.bottom - base.top,
|
|
807
|
+
left: rect.left - base.left + rect.width / 2
|
|
808
|
+
},
|
|
809
|
+
expanded: true,
|
|
810
|
+
surface: "preview"
|
|
811
|
+
});
|
|
812
|
+
}
|
|
813
|
+
});
|
|
814
|
+
const targetMenuItems = [...targets?.element && prose ? [{
|
|
815
|
+
label: "Comment on element",
|
|
816
|
+
onSelect: () => {
|
|
817
|
+
onViewChange("preview");
|
|
818
|
+
picker.setPicking(true);
|
|
819
|
+
}
|
|
820
|
+
}] : [], ...targets?.document && hasSource ? [{
|
|
821
|
+
label: "Comment on file",
|
|
822
|
+
onSelect: () => {
|
|
823
|
+
setDraft(null);
|
|
824
|
+
setFileDraft(true);
|
|
825
|
+
}
|
|
826
|
+
}] : []];
|
|
827
|
+
const editEntries = (0, react.useMemo)(() => cardAnchors.flatMap((anchor) => {
|
|
828
|
+
const placement = patchPlacements.get(anchor);
|
|
829
|
+
return placement?.match.state === "matched" ? [{
|
|
830
|
+
anchor,
|
|
831
|
+
label: require_patch_comments.patchLabel(placement),
|
|
832
|
+
startLine: placement.match.startLine,
|
|
833
|
+
thread: require_comment_utils.selectAnchorThreads(open, anchor)
|
|
834
|
+
}] : [];
|
|
835
|
+
}).sort((a, b) => a.startLine - b.startLine), [
|
|
836
|
+
cardAnchors,
|
|
837
|
+
patchPlacements,
|
|
838
|
+
open
|
|
839
|
+
]);
|
|
840
|
+
const sourceComments = (0, react.useMemo)(() => {
|
|
841
|
+
if (!patchMode || !editing) return void 0;
|
|
842
|
+
return {
|
|
843
|
+
ranges: editEntries.map((entry) => {
|
|
844
|
+
const match = patchPlacements.get(entry.anchor).match;
|
|
845
|
+
if (match.state !== "matched") throw new Error(`FileReview: edit thread ${entry.anchor} is not placed`);
|
|
846
|
+
return {
|
|
847
|
+
id: entry.anchor,
|
|
848
|
+
startLine: match.startLine,
|
|
849
|
+
endLine: match.endLine
|
|
850
|
+
};
|
|
851
|
+
}),
|
|
852
|
+
onSelect: setFocused,
|
|
853
|
+
...canComment ? { onCreate: (lines) => setDraft({
|
|
854
|
+
...require_patch_comments.patchDraft(raw, lines),
|
|
855
|
+
position: NO_POSITION,
|
|
856
|
+
expanded: true,
|
|
857
|
+
surface: "edit"
|
|
858
|
+
}) } : {}
|
|
859
|
+
};
|
|
860
|
+
}, [
|
|
861
|
+
patchMode,
|
|
862
|
+
editing,
|
|
863
|
+
editEntries,
|
|
864
|
+
patchPlacements,
|
|
865
|
+
canComment,
|
|
866
|
+
raw,
|
|
867
|
+
setFocused
|
|
868
|
+
]);
|
|
869
|
+
function renderDraft(current, containerWidth) {
|
|
870
|
+
if (!callbacks.onCreate) return null;
|
|
519
871
|
const { anchor, label } = current;
|
|
520
872
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_CommentDraft.CommentDraft, {
|
|
521
873
|
anchor,
|
|
@@ -526,9 +878,11 @@ function FileReview({ path, source: raw, view, onViewChange, findings: findingsP
|
|
|
526
878
|
config,
|
|
527
879
|
onExpand: expandDraft,
|
|
528
880
|
onClose: closeDraft,
|
|
529
|
-
|
|
530
|
-
|
|
881
|
+
...draftActions ? { createActions: draftActions } : {},
|
|
882
|
+
onCreate: async (input, action) => {
|
|
883
|
+
await postDraft(anchor, input, action);
|
|
531
884
|
setDraft(null);
|
|
885
|
+
saveDraft(null);
|
|
532
886
|
setFocused(anchor);
|
|
533
887
|
}
|
|
534
888
|
}, anchor);
|
|
@@ -542,6 +896,11 @@ function FileReview({ path, source: raw, view, onViewChange, findings: findingsP
|
|
|
542
896
|
className: "flex shrink-0 flex-wrap items-center gap-2 text-xs text-muted-foreground",
|
|
543
897
|
children: [
|
|
544
898
|
toolbar,
|
|
899
|
+
assignError && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
900
|
+
role: "alert",
|
|
901
|
+
className: "text-destructive",
|
|
902
|
+
children: assignError
|
|
903
|
+
}),
|
|
545
904
|
(comments || lint) && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", { children: [
|
|
546
905
|
require_comment_utils.getRoots(open).length,
|
|
547
906
|
" open · ",
|
|
@@ -550,6 +909,10 @@ function FileReview({ path, source: raw, view, onViewChange, findings: findingsP
|
|
|
550
909
|
] }),
|
|
551
910
|
comments && layout === "inline" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: "· hover a highlight to view or reply" }),
|
|
552
911
|
canComment && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: "· select or right-click text to comment" }),
|
|
912
|
+
picker.picking && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
913
|
+
role: "status",
|
|
914
|
+
children: "· click an element to comment on it, Esc to cancel"
|
|
915
|
+
}),
|
|
553
916
|
authorFilter && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
554
917
|
role: "radiogroup",
|
|
555
918
|
"aria-label": "Authors",
|
|
@@ -580,24 +943,53 @@ function FileReview({ path, source: raw, view, onViewChange, findings: findingsP
|
|
|
580
943
|
setDraft(null);
|
|
581
944
|
},
|
|
582
945
|
tabs: [
|
|
583
|
-
...prose ? [{
|
|
946
|
+
...prose || imageUrl ? [{
|
|
584
947
|
id: "preview",
|
|
585
948
|
label: "Preview",
|
|
586
949
|
icon: require_UiEye.UiEye
|
|
587
950
|
}] : [],
|
|
588
|
-
{
|
|
951
|
+
...hasSource ? [{
|
|
589
952
|
id: "source",
|
|
590
953
|
label: "Source",
|
|
591
954
|
icon: require_UiFileCode.UiFileCode
|
|
592
|
-
},
|
|
593
|
-
...lint ? [{
|
|
955
|
+
}] : [],
|
|
956
|
+
...lint && hasSource ? [{
|
|
594
957
|
id: "problems",
|
|
595
958
|
label: "Problems",
|
|
596
959
|
icon: require_UiListChecks.UiListChecks,
|
|
597
960
|
count: findings.length
|
|
598
|
-
}] : []
|
|
961
|
+
}] : [],
|
|
962
|
+
...tabs.map(({ render: _render, ...tab }) => tab)
|
|
599
963
|
]
|
|
600
964
|
}),
|
|
965
|
+
onSourceChange && hasSource && view === "source" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
966
|
+
role: "group",
|
|
967
|
+
"aria-label": "Source mode",
|
|
968
|
+
className: "mr-1 inline-flex shrink-0 rounded-md border border-border p-0.5 text-xs",
|
|
969
|
+
children: ["edit", "review"].map((value) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
970
|
+
type: "button",
|
|
971
|
+
"aria-pressed": editing === (value === "edit"),
|
|
972
|
+
title: value === "edit" ? "Edit the source in the editor" : "Read the source and its comment threads",
|
|
973
|
+
onClick: () => {
|
|
974
|
+
setEditMode(value === "edit");
|
|
975
|
+
if (value === "edit") setShowBlame(false);
|
|
976
|
+
},
|
|
977
|
+
className: require_utils.cn("rounded px-2 py-0.5 font-medium", editing === (value === "edit") ? "bg-primary text-primary-foreground" : "hover:text-foreground"),
|
|
978
|
+
children: value === "edit" ? "Edit" : "Review"
|
|
979
|
+
}, value))
|
|
980
|
+
}),
|
|
981
|
+
callbacks.onCreate && targetMenuItems.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_DropdownMenu.DropdownMenu, {
|
|
982
|
+
align: "right",
|
|
983
|
+
icon: require_UiComment.UiComment,
|
|
984
|
+
label: "Comment",
|
|
985
|
+
hideChevron: true,
|
|
986
|
+
variant: "ghost",
|
|
987
|
+
size: "sm",
|
|
988
|
+
title: "Comment on an element or the whole file",
|
|
989
|
+
menuLabel: "Comment",
|
|
990
|
+
className: "shrink-0",
|
|
991
|
+
items: targetMenuItems
|
|
992
|
+
}),
|
|
601
993
|
lint && findings.length > 0 && view === "source" && !editing && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_button.Button, {
|
|
602
994
|
size: "sm",
|
|
603
995
|
variant: showFindings ? "secondary" : "ghost",
|
|
@@ -641,18 +1033,72 @@ function FileReview({ path, source: raw, view, onViewChange, findings: findingsP
|
|
|
641
1033
|
})
|
|
642
1034
|
]
|
|
643
1035
|
}),
|
|
1036
|
+
comments && !marginRail && !editRail && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_FileThreads.FileThreads, {
|
|
1037
|
+
entries: fileEntries,
|
|
1038
|
+
drafting: fileDrafting,
|
|
1039
|
+
config,
|
|
1040
|
+
callbacks,
|
|
1041
|
+
options: peopleThreads,
|
|
1042
|
+
renderRootDetails,
|
|
1043
|
+
composerActions: draftActions,
|
|
1044
|
+
onCreate: postFileDraft,
|
|
1045
|
+
onDiscardDraft: () => setFileDraft(false)
|
|
1046
|
+
}),
|
|
644
1047
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
645
1048
|
ref: scroller,
|
|
646
1049
|
className: require_utils.cn("relative min-h-0 flex-1 rounded-md border border-border bg-background", editing && view === "source" ? "overflow-hidden" : "overflow-y-auto"),
|
|
647
1050
|
children: [
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
1051
|
+
hostTab && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
1052
|
+
"data-file-review-tab": hostTab.id,
|
|
1053
|
+
className: "h-full",
|
|
1054
|
+
children: hostTab.render({
|
|
1055
|
+
path,
|
|
1056
|
+
source: raw,
|
|
1057
|
+
findings,
|
|
1058
|
+
...onSourceChange ? { onSourceChange } : {}
|
|
1059
|
+
})
|
|
1060
|
+
}),
|
|
1061
|
+
editing && view === "source" && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
1062
|
+
className: "flex h-full min-h-0",
|
|
1063
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
1064
|
+
className: "h-full min-w-0 flex-1",
|
|
1065
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_LazyAnnotatedCode.AnnotatedCode, {
|
|
1066
|
+
path,
|
|
1067
|
+
source: raw,
|
|
1068
|
+
findings,
|
|
1069
|
+
line: editorLine,
|
|
1070
|
+
onLineChange: setEditorLine,
|
|
1071
|
+
onChange: onSourceChange,
|
|
1072
|
+
inlineChips: true,
|
|
1073
|
+
sourceComments
|
|
1074
|
+
})
|
|
1075
|
+
}), patchMode && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_EditThreads.EditThreads, {
|
|
1076
|
+
entries: editEntries,
|
|
1077
|
+
draft: draft?.surface === "edit" ? draft : null,
|
|
1078
|
+
focused,
|
|
1079
|
+
config,
|
|
1080
|
+
callbacks,
|
|
1081
|
+
options: peopleThreads,
|
|
1082
|
+
renderRootDetails,
|
|
1083
|
+
composerActions: draftActions,
|
|
1084
|
+
onFocus: (entry) => {
|
|
1085
|
+
setFocused(entry.anchor);
|
|
1086
|
+
setEditorLine(entry.startLine);
|
|
1087
|
+
},
|
|
1088
|
+
onCreate: async (input, action) => {
|
|
1089
|
+
if (!draft) throw new Error("FileReview: no edit-mode comment is being written");
|
|
1090
|
+
await postDraft(draft.anchor, input, action);
|
|
1091
|
+
setFocused(draft.anchor);
|
|
1092
|
+
setDraft(null);
|
|
1093
|
+
},
|
|
1094
|
+
onDiscardDraft: closeDraft,
|
|
1095
|
+
files: {
|
|
1096
|
+
entries: fileEntries,
|
|
1097
|
+
drafting: fileDrafting,
|
|
1098
|
+
onCreate: postFileDraft,
|
|
1099
|
+
onDiscardDraft: () => setFileDraft(false)
|
|
1100
|
+
}
|
|
1101
|
+
})]
|
|
656
1102
|
}),
|
|
657
1103
|
!editing && view === "source" && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
658
1104
|
ref: sourceOrigin,
|
|
@@ -676,19 +1122,26 @@ function FileReview({ path, source: raw, view, onViewChange, findings: findingsP
|
|
|
676
1122
|
setFocused(require_findings_comments.lineAnchor(f.line));
|
|
677
1123
|
onLineChange?.(f.line);
|
|
678
1124
|
},
|
|
679
|
-
getFindingActions,
|
|
1125
|
+
getFindingActions: findingActions,
|
|
680
1126
|
onFocus: setFocused
|
|
681
1127
|
}),
|
|
682
1128
|
draft?.surface === "source" && renderDraft(draft, sourceWidth),
|
|
683
1129
|
sourceThread && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_InlineThread.InlineThread, {
|
|
684
1130
|
seamless: true,
|
|
685
1131
|
anchor: sourceThread.anchor,
|
|
686
|
-
label: anchorLabel(
|
|
1132
|
+
label: anchorLabel({
|
|
1133
|
+
anchor: sourceThread.anchor,
|
|
1134
|
+
found: true,
|
|
1135
|
+
placements: patchPlacements,
|
|
1136
|
+
raw
|
|
1137
|
+
}),
|
|
687
1138
|
boxes: sourceThread.boxes,
|
|
688
1139
|
containerWidth: sourceWidth,
|
|
689
1140
|
thread: require_comment_utils.selectAnchorThreads(open, sourceThread.anchor),
|
|
690
1141
|
config,
|
|
691
1142
|
callbacks,
|
|
1143
|
+
renderRootDetails,
|
|
1144
|
+
detailOptions: peopleThreads,
|
|
692
1145
|
pinned: focused === sourceThread.anchor,
|
|
693
1146
|
onPin: () => setFocused(sourceThread.anchor),
|
|
694
1147
|
onClose: closeInlineThread,
|
|
@@ -705,7 +1158,12 @@ function FileReview({ path, source: raw, view, onViewChange, findings: findingsP
|
|
|
705
1158
|
onFiltersChange: onProblemFiltersChange,
|
|
706
1159
|
onOpen: openFinding,
|
|
707
1160
|
openLabel: prose ? "Open in preview" : "Open in source",
|
|
708
|
-
getFindingActions
|
|
1161
|
+
getFindingActions: findingActions
|
|
1162
|
+
}),
|
|
1163
|
+
imageUrl && view === "preview" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_ImagePreview.ImagePreview, {
|
|
1164
|
+
src: imageUrl,
|
|
1165
|
+
alt: path,
|
|
1166
|
+
className: "h-full"
|
|
709
1167
|
}),
|
|
710
1168
|
prose && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
711
1169
|
className: require_utils.cn("flex", narrow ? "flex-col gap-4 p-4" : "h-full", view !== "preview" && "hidden"),
|
|
@@ -721,7 +1179,9 @@ function FileReview({ path, source: raw, view, onViewChange, findings: findingsP
|
|
|
721
1179
|
onClick: focusAt,
|
|
722
1180
|
onMouseMove: hoverAt,
|
|
723
1181
|
onMouseLeave: () => layout === "inline" && hoverTo(null),
|
|
1182
|
+
...picker.rootProps,
|
|
724
1183
|
children: [
|
|
1184
|
+
picker.outline,
|
|
725
1185
|
[...boxes].flatMap(([anchor, list]) => {
|
|
726
1186
|
const active = anchor === focused || anchor === hovered || anchor === draftAnchor;
|
|
727
1187
|
if (isFindingAnchor(anchor)) {
|
|
@@ -788,7 +1248,8 @@ function FileReview({ path, source: raw, view, onViewChange, findings: findingsP
|
|
|
788
1248
|
className: "relative z-10 pl-4",
|
|
789
1249
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_Markdown.Markdown, {
|
|
790
1250
|
sourceBlocks: true,
|
|
791
|
-
text: source
|
|
1251
|
+
text: source,
|
|
1252
|
+
resolveUrl
|
|
792
1253
|
})
|
|
793
1254
|
}),
|
|
794
1255
|
comments && layout === "inline" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_InlineAuthors.InlineAuthors, {
|
|
@@ -800,13 +1261,19 @@ function FileReview({ path, source: raw, view, onViewChange, findings: findingsP
|
|
|
800
1261
|
draft?.surface === "preview" && renderDraft(draft, width),
|
|
801
1262
|
layout === "inline" && inlineAnchor && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_InlineThread.InlineThread, {
|
|
802
1263
|
anchor: inlineAnchor,
|
|
803
|
-
label: anchorLabel(
|
|
1264
|
+
label: anchorLabel({
|
|
1265
|
+
anchor: inlineAnchor,
|
|
1266
|
+
found: true,
|
|
1267
|
+
placements: patchPlacements,
|
|
1268
|
+
raw
|
|
1269
|
+
}),
|
|
804
1270
|
boxes: boxes.get(inlineAnchor) ?? [],
|
|
805
1271
|
containerWidth: width,
|
|
806
1272
|
thread: require_comment_utils.selectAnchorThreads(open, inlineAnchor),
|
|
807
1273
|
config,
|
|
808
1274
|
callbacks: isFindingAnchor(inlineAnchor) ? NO_CALLBACKS : callbacks,
|
|
809
1275
|
renderRootDetails,
|
|
1276
|
+
detailOptions: isFindingAnchor(inlineAnchor) ? findingThreads : peopleThreads,
|
|
810
1277
|
pinned: focused === inlineAnchor,
|
|
811
1278
|
onPin: () => setFocused(inlineAnchor),
|
|
812
1279
|
onClose: closeInlineThread,
|
|
@@ -815,16 +1282,48 @@ function FileReview({ path, source: raw, view, onViewChange, findings: findingsP
|
|
|
815
1282
|
}, inlineAnchor)
|
|
816
1283
|
]
|
|
817
1284
|
})
|
|
818
|
-
}), layout === "margin" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
1285
|
+
}), layout === "margin" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_CommentRail.CommentRail, {
|
|
1286
|
+
scrollRef: sidebarPane,
|
|
1287
|
+
stacked: narrow,
|
|
1288
|
+
...sidebarWidth !== void 0 ? { width: sidebarWidth } : {},
|
|
1289
|
+
...onSidebarWidthChange ? { onWidthChange: onSidebarWidthChange } : {},
|
|
822
1290
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
823
|
-
|
|
1291
|
+
"data-comment-sidebar": narrow ? "below" : align,
|
|
1292
|
+
className: require_utils.cn("relative mx-2 my-4", (narrow || align === "stack") && "space-y-2"),
|
|
824
1293
|
style: sidebarScrolls && align === "line" ? { height: railHeight } : void 0,
|
|
825
1294
|
children: ordered.map((anchor) => {
|
|
826
1295
|
const thread = require_comment_utils.selectAnchorThreads(open, anchor);
|
|
827
1296
|
const isFocused = anchor === focused;
|
|
1297
|
+
const placement = sidebarScrolls && align === "line" ? { top: tops.get(anchor) ?? 0 } : void 0;
|
|
1298
|
+
const positioned = sidebarScrolls && align === "line" && "absolute inset-x-0";
|
|
1299
|
+
if (anchor === FILE_DRAFT_CARD) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
1300
|
+
ref: refFor(anchor),
|
|
1301
|
+
"data-comment-draft": "__document__",
|
|
1302
|
+
style: placement,
|
|
1303
|
+
className: require_utils.cn("rounded-lg border border-primary/50 bg-card shadow-lg", positioned),
|
|
1304
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_FileThreads.FileDraftCard, {
|
|
1305
|
+
config,
|
|
1306
|
+
composerActions: draftActions,
|
|
1307
|
+
onCreate: postFileDraft,
|
|
1308
|
+
onDiscard: () => setFileDraft(false)
|
|
1309
|
+
})
|
|
1310
|
+
}, anchor);
|
|
1311
|
+
const fileEntry = fileEntries.find((entry) => entry.anchor === anchor);
|
|
1312
|
+
if (fileEntry) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
1313
|
+
ref: refFor(anchor),
|
|
1314
|
+
"data-card-anchor": anchor,
|
|
1315
|
+
"data-file-thread": anchor,
|
|
1316
|
+
onClick: () => setFocused(anchor),
|
|
1317
|
+
style: placement,
|
|
1318
|
+
className: require_utils.cn("rounded-lg border bg-card", positioned, isFocused ? "z-10 -translate-x-2 border-primary/50 shadow-lg" : "border-border shadow-sm"),
|
|
1319
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_FileThreads.FileThreadCard, {
|
|
1320
|
+
entry: fileEntry,
|
|
1321
|
+
config,
|
|
1322
|
+
callbacks,
|
|
1323
|
+
options: peopleThreads,
|
|
1324
|
+
renderRootDetails
|
|
1325
|
+
})
|
|
1326
|
+
}, `${anchor}:${isFocused}`);
|
|
828
1327
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
829
1328
|
ref: refFor(anchor),
|
|
830
1329
|
"data-card-anchor": anchor,
|
|
@@ -835,8 +1334,14 @@ function FileReview({ path, source: raw, view, onViewChange, findings: findingsP
|
|
|
835
1334
|
style: sidebarScrolls && align === "line" ? { top: tops.get(anchor) ?? 0 } : void 0,
|
|
836
1335
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
837
1336
|
className: "truncate px-2 pt-2 text-[11px] text-muted-foreground",
|
|
838
|
-
children: anchorLabel(
|
|
1337
|
+
children: anchorLabel({
|
|
1338
|
+
anchor,
|
|
1339
|
+
found: boxes.has(anchor),
|
|
1340
|
+
placements: patchPlacements,
|
|
1341
|
+
raw
|
|
1342
|
+
})
|
|
839
1343
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_CommentThread.CommentThread, {
|
|
1344
|
+
...isFindingAnchor(anchor) ? findingThreads : peopleThreads,
|
|
840
1345
|
comments: thread,
|
|
841
1346
|
config,
|
|
842
1347
|
anchor,
|