@adecore/agents-react 0.53.3 → 0.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agents/AgentIcon.js +1 -1
- package/dist/agents/AgentModelLabel.js +1 -1
- package/dist/agents/accounts.js +1 -1
- package/dist/chat/attachments.js +1 -1
- package/dist/chat/forks.js +1 -1
- package/dist/chat/logic/limit.js +1 -1
- package/dist/chat/logic/scrubber.js +1 -1
- package/dist/chat/logic/selection-switch.d.ts +6 -0
- package/dist/chat/logic/selection-switch.js +42 -0
- package/dist/chat/logic/timeline-target.d.ts +1 -1
- package/dist/chat/logic/timeline.d.ts +6 -1
- package/dist/chat/logic/timeline.js +16 -2
- package/dist/chat/logic/tool-looks.js +1 -1
- package/dist/chat/logic/tools.js +1 -1
- package/dist/chat/logic/workflow.js +1 -1
- package/dist/chat/preferences.js +1 -1
- package/dist/chat/runtime-modes.js +1 -1
- package/dist/chat/send-key.js +1 -1
- package/dist/chat/stash.js +2 -2
- package/dist/chat/subagent-list.js +1 -1
- package/dist/chat/ui/AccountPill.js +3 -3
- package/dist/chat/ui/BookmarkMarker.js +6 -6
- package/dist/chat/ui/BookmarkSubmenu.js +5 -5
- package/dist/chat/ui/ChatActivity.js +15 -14
- package/dist/chat/ui/CodeBlock.js +9 -7
- package/dist/chat/ui/Composer.js +13 -13
- package/dist/chat/ui/ComposerInput.d.ts +1 -1
- package/dist/chat/ui/ComposerInput.js +35 -18
- package/dist/chat/ui/DiffPool.js +1 -1
- package/dist/chat/ui/EditDiff.js +2 -2
- package/dist/chat/ui/GoalDock.js +5 -5
- package/dist/chat/ui/ImageView.js +4 -4
- package/dist/chat/ui/LimitState.js +12 -12
- package/dist/chat/ui/Markdown.d.ts +1 -1
- package/dist/chat/ui/Markdown.js +11 -10
- package/dist/chat/ui/MermaidBlock.js +7 -6
- package/dist/chat/ui/MessageActions.js +7 -7
- package/dist/chat/ui/ModelMarks.js +2 -2
- package/dist/chat/ui/Pickers.d.ts +1 -1
- package/dist/chat/ui/Pickers.js +32 -27
- package/dist/chat/ui/PromptComposer.d.ts +1 -1
- package/dist/chat/ui/PromptComposer.js +5 -5
- package/dist/chat/ui/PromptEditor.js +3 -3
- package/dist/chat/ui/QuoteButton.js +2 -2
- package/dist/chat/ui/ReferenceChip.js +3 -3
- package/dist/chat/ui/ReferenceTrail.js +2 -2
- package/dist/chat/ui/ResumeCompactionDock.js +3 -3
- package/dist/chat/ui/RunSettings.js +11 -11
- package/dist/chat/ui/Scrubber.js +4 -4
- package/dist/chat/ui/SessionLine.js +2 -2
- package/dist/chat/ui/ShellCommand.d.ts +1 -1
- package/dist/chat/ui/ShellCommand.js +2 -2
- package/dist/chat/ui/SubagentControls.js +3 -3
- package/dist/chat/ui/SubagentInfo.js +5 -5
- package/dist/chat/ui/SubagentStopButton.js +2 -2
- package/dist/chat/ui/SubagentTimeline.js +18 -16
- package/dist/chat/ui/Timeline.js +231 -145
- package/dist/chat/ui/TimelineMenu.js +7 -7
- package/dist/chat/ui/UnifiedDiff.js +2 -2
- package/dist/chat/ui/VisualDialogs.js +1 -1
- package/dist/chat/ui/VisualFrame.js +4 -4
- package/dist/chat/ui/WorkflowAgentLine.d.ts +1 -1
- package/dist/chat/ui/WorkflowAgentLine.js +3 -3
- package/dist/chat/ui/chip-clipboard.d.ts +1 -1
- package/dist/chat/ui/composer/ComposerControls.d.ts +1 -1
- package/dist/chat/ui/composer/ComposerControls.js +4 -4
- package/dist/chat/ui/composer/ComposerMenu.js +5 -4
- package/dist/chat/ui/composer/DraftParts.js +2 -2
- package/dist/chat/ui/composer/QueuedMessages.js +2 -2
- package/dist/chat/ui/composer/chip-paste.d.ts +1 -1
- package/dist/chat/ui/composer/chips.d.ts +1 -1
- package/dist/chat/ui/composer/chips.js +2 -2
- package/dist/chat/ui/composer/key-handler.js +1 -1
- package/dist/chat/ui/composer/placeholder.js +1 -1
- package/dist/chat/ui/composer/use-composer-menus.d.ts +1 -1
- package/dist/chat/ui/composer/use-composer-menus.js +1 -1
- package/dist/chat/ui/composer/use-composer-submit.d.ts +1 -1
- package/dist/chat/ui/composer/use-draft-files.d.ts +2 -2
- package/dist/chat/ui/composer/use-draft-files.js +1 -1
- package/dist/chat/ui/composer/use-effort-stepper.js +1 -1
- package/dist/chat/ui/composer/use-prompt-menus.d.ts +2 -2
- package/dist/chat/ui/composer/use-prompt-menus.js +1 -1
- package/dist/chat/ui/diff/ApprovalReview.js +2 -2
- package/dist/chat/ui/diff/DiffOmitted.js +1 -1
- package/dist/chat/ui/diff/DiffStack.js +2 -2
- package/dist/chat/ui/diff/EditorEditDiff.d.ts +1 -1
- package/dist/chat/ui/diff/EditorEditDiff.js +5 -5
- package/dist/chat/ui/diff/EditorPatchDiff.d.ts +1 -1
- package/dist/chat/ui/diff/EditorPatchDiff.js +1 -1
- package/dist/chat/ui/diff/LegacyEditDiff.js +47 -31
- package/dist/chat/ui/diff/LegacyUnifiedDiff.js +93 -69
- package/dist/chat/ui/diff/RawDiff.js +54 -35
- package/dist/chat/ui/diff/syntax-runtime.d.ts +1 -1
- package/dist/chat/ui/highlighter.d.ts +1 -1
- package/dist/chat/ui/highlighter.js +1 -1
- package/dist/chat/ui/icons.js +1 -1
- package/dist/chat/ui/intelligent-ui/UiBlockFrame.d.ts +1 -1
- package/dist/chat/ui/intelligent-ui/UiBlockFrame.js +4 -4
- package/dist/chat/ui/intelligent-ui/UiFallbackPart.js +2 -2
- package/dist/chat/ui/intelligent-ui/UiReply.d.ts +2 -2
- package/dist/chat/ui/intelligent-ui/UiReply.js +8 -8
- package/dist/chat/ui/intelligent-ui/node-text.d.ts +1 -1
- package/dist/chat/ui/intelligent-ui/render-context.d.ts +1 -1
- package/dist/chat/ui/intelligent-ui/renderers/chart.js +28 -15
- package/dist/chat/ui/intelligent-ui/renderers/choices.js +4 -4
- package/dist/chat/ui/intelligent-ui/renderers/content.js +6 -6
- package/dist/chat/ui/intelligent-ui/renderers/data.js +104 -87
- package/dist/chat/ui/intelligent-ui/renderers/inputs.js +3 -3
- package/dist/chat/ui/intelligent-ui/renderers/links.js +2 -2
- package/dist/chat/ui/intelligent-ui/renderers/map-view.js +4 -4
- package/dist/chat/ui/intelligent-ui/renderers/map.js +3 -3
- package/dist/chat/ui/intelligent-ui/renderers/structure.js +2 -2
- package/dist/chat/ui/intelligent-ui/renderers/text.js +5 -5
- package/dist/chat/ui/intelligent-ui/tones.d.ts +1 -1
- package/dist/chat/ui/intelligent-ui/use-ui-links.d.ts +1 -1
- package/dist/chat/ui/intelligent-ui/use-ui-links.js +2 -2
- package/dist/chat/ui/intelligent-ui/use-ui-queries.js +1 -1
- package/dist/chat/ui/reference-icons.d.ts +1 -1
- package/dist/chat/ui/reference-icons.js +2 -2
- package/dist/chat/ui/reply-context.d.ts +1 -1
- package/dist/chat/ui/rows/ForksRow.js +3 -3
- package/dist/chat/ui/rows/GeneratedImageRow.js +5 -5
- package/dist/chat/ui/rows/MessageRows.d.ts +6 -1
- package/dist/chat/ui/rows/MessageRows.js +151 -22
- package/dist/chat/ui/rows/Rows.js +39 -21
- package/dist/chat/ui/rows/SubagentRow.js +16 -16
- package/dist/chat/ui/rows/TaskRow.js +3 -3
- package/dist/chat/ui/rows/VisualRow.js +2 -2
- package/dist/chat/ui/rows/WorkRows.d.ts +2 -2
- package/dist/chat/ui/rows/WorkRows.js +37 -25
- package/dist/chat/ui/rows/WorkflowRow.js +8 -8
- package/dist/chat/ui/use-diff-source-tokens.js +1 -1
- package/dist/chat/ui/visual-theme.d.ts +1 -1
- package/dist/chat/ui/visual-theme.js +2 -2
- package/dist/chat/workflow-list.js +1 -1
- package/dist/host.d.ts +4 -4
- package/dist/host.js +1 -1
- package/dist/lazy.js +1 -1
- package/dist/locales/en/agent-chat.d.ts +4 -0
- package/dist/locales/en/agent-chat.js +4 -0
- package/dist/locales/nl/agent-chat.d.ts +4 -0
- package/dist/locales/nl/agent-chat.js +4 -0
- package/dist/port-transport.js +1 -1
- package/dist/prompts/logic/subjects.d.ts +1 -1
- package/dist/prompts/ui/ApprovalBody.js +16 -7
- package/dist/prompts/ui/PromptActions.js +2 -2
- package/dist/prompts/ui/PromptCard.js +5 -4
- package/dist/prompts/ui/PromptView.js +1 -1
- package/dist/prompts/ui/QuestionBody.js +4 -4
- package/dist/providers/AccountDetail.js +4 -4
- package/dist/providers/AccountOrderList.js +2 -2
- package/dist/providers/AccountVariables.js +3 -3
- package/dist/providers/AddAccountForm.js +6 -6
- package/dist/providers/CliDetail.js +8 -8
- package/dist/providers/InstallPage.js +3 -3
- package/dist/providers/ProviderList.js +2 -2
- package/dist/providers/ProvidersPane.d.ts +1 -1
- package/dist/providers/ProvidersPane.js +5 -5
- package/dist/providers/install-steps.d.ts +1 -1
- package/dist/settings/sections.d.ts +2 -2
- package/dist/state/chats.js +1 -1
- package/dist/state/usage.js +2 -2
- package/dist/theme.css +4 -4
- package/dist/transport.d.ts +1 -1
- package/dist/usage/LimitsList.js +4 -4
- package/dist/usage/UsageBreakdown.js +5 -5
- package/dist/usage/UsageChart.js +1 -1
- package/dist/usage/UsageDialog.js +1 -1
- package/dist/usage/UsageLimits.js +6 -6
- package/dist/usage/UsageLimitsCard.js +2 -2
- package/dist/usage/UsagePage.js +200 -189
- package/dist/usage/UsagePane.js +2 -2
- package/dist/usage/UsageSummary.js +1 -1
- package/dist/usage/UsageTiles.js +1 -1
- package/dist/usage/limit-groups.js +2 -2
- package/dist/usage/summary.js +1 -1
- package/package.json +9 -8
- package/src/agents/AgentIcon.tsx +1 -1
- package/src/agents/AgentModelLabel.tsx +2 -2
- package/src/agents/ProviderLogo.tsx +1 -1
- package/src/agents/accounts.ts +1 -1
- package/src/agents/option-words.ts +1 -1
- package/src/chat/attachments.ts +1 -1
- package/src/chat/bookmarks.ts +1 -1
- package/src/chat/drafts.ts +1 -1
- package/src/chat/forks.ts +1 -1
- package/src/chat/logic/fork.ts +1 -1
- package/src/chat/logic/limit.ts +1 -1
- package/src/chat/logic/scrubber.ts +1 -1
- package/src/chat/logic/selection-switch.ts +47 -0
- package/src/chat/logic/timeline-copy.ts +1 -1
- package/src/chat/logic/timeline-target.ts +1 -1
- package/src/chat/logic/timeline.ts +28 -4
- package/src/chat/logic/tool-looks.ts +1 -1
- package/src/chat/logic/tools.ts +1 -1
- package/src/chat/logic/workflow.ts +1 -1
- package/src/chat/pending-prompts.ts +1 -1
- package/src/chat/preferences.ts +1 -1
- package/src/chat/reading-width.ts +1 -1
- package/src/chat/runtime-modes.ts +1 -1
- package/src/chat/send-key.ts +1 -1
- package/src/chat/stash.ts +2 -2
- package/src/chat/subagent-conversation.ts +1 -1
- package/src/chat/subagent-list.ts +1 -1
- package/src/chat/subagent-view.ts +1 -1
- package/src/chat/thumbnails.ts +1 -1
- package/src/chat/ui/AccountPill.tsx +4 -4
- package/src/chat/ui/BookmarkMarker.tsx +6 -6
- package/src/chat/ui/BookmarkSubmenu.tsx +5 -5
- package/src/chat/ui/ChatActivity.tsx +15 -15
- package/src/chat/ui/CodeBlock.tsx +10 -8
- package/src/chat/ui/Composer.tsx +13 -13
- package/src/chat/ui/ComposerInput.tsx +10 -2
- package/src/chat/ui/DiffPool.tsx +1 -1
- package/src/chat/ui/EditDiff.tsx +3 -4
- package/src/chat/ui/GoalDock.tsx +6 -6
- package/src/chat/ui/ImageView.tsx +4 -4
- package/src/chat/ui/LimitState.tsx +13 -13
- package/src/chat/ui/Markdown.tsx +12 -12
- package/src/chat/ui/MermaidBlock.tsx +6 -6
- package/src/chat/ui/MessageActions.tsx +7 -7
- package/src/chat/ui/ModelMarks.tsx +2 -2
- package/src/chat/ui/Pickers.tsx +10 -10
- package/src/chat/ui/PromptComposer.tsx +6 -6
- package/src/chat/ui/PromptEditor.tsx +4 -4
- package/src/chat/ui/QuoteButton.tsx +2 -2
- package/src/chat/ui/ReferenceChip.tsx +3 -3
- package/src/chat/ui/ReferenceTrail.tsx +2 -2
- package/src/chat/ui/ResumeCompactionDock.tsx +3 -3
- package/src/chat/ui/RunSettings.tsx +13 -13
- package/src/chat/ui/Scrubber.tsx +4 -4
- package/src/chat/ui/SessionLine.tsx +2 -2
- package/src/chat/ui/ShellCommand.tsx +2 -2
- package/src/chat/ui/SubagentControls.tsx +3 -3
- package/src/chat/ui/SubagentInfo.tsx +5 -5
- package/src/chat/ui/SubagentStopButton.tsx +3 -3
- package/src/chat/ui/SubagentTimeline.tsx +20 -17
- package/src/chat/ui/Timeline.tsx +232 -143
- package/src/chat/ui/TimelineMenu.tsx +7 -7
- package/src/chat/ui/UnifiedDiff.tsx +3 -3
- package/src/chat/ui/VisualDialogs.tsx +2 -2
- package/src/chat/ui/VisualFrame.tsx +4 -4
- package/src/chat/ui/WorkflowAgentLine.tsx +4 -4
- package/src/chat/ui/chip-clipboard.ts +1 -1
- package/src/chat/ui/composer/ComposerControls.tsx +4 -4
- package/src/chat/ui/composer/ComposerMenu.tsx +6 -6
- package/src/chat/ui/composer/DraftParts.tsx +2 -2
- package/src/chat/ui/composer/QueuedMessages.tsx +2 -2
- package/src/chat/ui/composer/chip-paste.ts +1 -1
- package/src/chat/ui/composer/chips.ts +2 -2
- package/src/chat/ui/composer/key-handler.ts +2 -2
- package/src/chat/ui/composer/placeholder.ts +1 -1
- package/src/chat/ui/composer/use-chat-controls.ts +1 -1
- package/src/chat/ui/composer/use-compaction-offer.ts +1 -1
- package/src/chat/ui/composer/use-composer-menus.ts +2 -2
- package/src/chat/ui/composer/use-composer-submit.ts +2 -2
- package/src/chat/ui/composer/use-draft-files.ts +3 -3
- package/src/chat/ui/composer/use-effort-stepper.ts +2 -2
- package/src/chat/ui/composer/use-pending-requests.ts +1 -1
- package/src/chat/ui/composer/use-prompt-menus.ts +3 -3
- package/src/chat/ui/composer/use-take-back.ts +1 -1
- package/src/chat/ui/diff/ApprovalReview.tsx +3 -3
- package/src/chat/ui/diff/DiffOmitted.tsx +1 -1
- package/src/chat/ui/diff/DiffStack.tsx +2 -2
- package/src/chat/ui/diff/EditorEditDiff.tsx +5 -5
- package/src/chat/ui/diff/EditorPatchDiff.tsx +1 -1
- package/src/chat/ui/diff/LegacyDiffPool.tsx +1 -1
- package/src/chat/ui/diff/LegacyEditDiff.tsx +18 -9
- package/src/chat/ui/diff/LegacyUnifiedDiff.tsx +24 -13
- package/src/chat/ui/diff/RawDiff.tsx +8 -5
- package/src/chat/ui/diff/syntax-runtime.ts +1 -1
- package/src/chat/ui/highlighter.ts +1 -1
- package/src/chat/ui/icons.tsx +2 -2
- package/src/chat/ui/intelligent-ui/UiBlockFrame.tsx +5 -5
- package/src/chat/ui/intelligent-ui/UiFallbackPart.tsx +2 -2
- package/src/chat/ui/intelligent-ui/UiReply.tsx +18 -18
- package/src/chat/ui/intelligent-ui/node-text.ts +1 -1
- package/src/chat/ui/intelligent-ui/render-context.ts +1 -1
- package/src/chat/ui/intelligent-ui/renderers/chart.tsx +15 -7
- package/src/chat/ui/intelligent-ui/renderers/choices.tsx +4 -4
- package/src/chat/ui/intelligent-ui/renderers/content.tsx +7 -7
- package/src/chat/ui/intelligent-ui/renderers/data.tsx +8 -7
- package/src/chat/ui/intelligent-ui/renderers/inputs.tsx +3 -3
- package/src/chat/ui/intelligent-ui/renderers/links.tsx +4 -4
- package/src/chat/ui/intelligent-ui/renderers/map-view.tsx +4 -4
- package/src/chat/ui/intelligent-ui/renderers/map.tsx +5 -5
- package/src/chat/ui/intelligent-ui/renderers/structure.tsx +3 -3
- package/src/chat/ui/intelligent-ui/renderers/text.tsx +5 -5
- package/src/chat/ui/intelligent-ui/tones.ts +1 -1
- package/src/chat/ui/intelligent-ui/use-ui-links.ts +2 -2
- package/src/chat/ui/intelligent-ui/use-ui-queries.ts +1 -1
- package/src/chat/ui/reference-icons.ts +2 -2
- package/src/chat/ui/reply-context.ts +1 -1
- package/src/chat/ui/rows/ForksRow.tsx +3 -3
- package/src/chat/ui/rows/GeneratedImageRow.tsx +7 -7
- package/src/chat/ui/rows/MessageRows.tsx +57 -33
- package/src/chat/ui/rows/RowContainer.tsx +1 -1
- package/src/chat/ui/rows/Rows.tsx +7 -4
- package/src/chat/ui/rows/SubagentRow.tsx +16 -16
- package/src/chat/ui/rows/TaskRow.tsx +4 -4
- package/src/chat/ui/rows/VisualRow.tsx +2 -2
- package/src/chat/ui/rows/WorkRows.tsx +44 -32
- package/src/chat/ui/rows/WorkflowRow.tsx +9 -9
- package/src/chat/ui/rows/row-rhythm.ts +1 -1
- package/src/chat/ui/use-diff-source-tokens.ts +1 -1
- package/src/chat/ui/visual-theme.ts +2 -2
- package/src/chat/workflow-list.ts +1 -1
- package/src/host.ts +6 -6
- package/src/lazy.tsx +1 -1
- package/src/locales/en/agent-chat.ts +4 -0
- package/src/locales/nl/agent-chat.ts +4 -0
- package/src/port-transport.ts +1 -1
- package/src/prompts/logic/subjects.ts +1 -1
- package/src/prompts/ui/ApprovalBody.tsx +19 -9
- package/src/prompts/ui/PromptActions.tsx +2 -2
- package/src/prompts/ui/PromptCard.tsx +4 -4
- package/src/prompts/ui/PromptView.tsx +1 -1
- package/src/prompts/ui/QuestionBody.tsx +5 -5
- package/src/providers/AccountDetail.tsx +5 -5
- package/src/providers/AccountOrderList.tsx +2 -2
- package/src/providers/AccountVariables.tsx +4 -4
- package/src/providers/AddAccountForm.tsx +7 -7
- package/src/providers/CliDetail.tsx +9 -9
- package/src/providers/InstallPage.tsx +4 -4
- package/src/providers/ProviderList.tsx +4 -4
- package/src/providers/ProvidersPane.tsx +7 -7
- package/src/providers/account-actions.ts +1 -1
- package/src/providers/install-steps.ts +1 -1
- package/src/providers/parts.tsx +1 -1
- package/src/providers/provider-abilities.ts +1 -1
- package/src/providers/provider-groups.ts +1 -1
- package/src/providers/variables.ts +1 -1
- package/src/settings/sections.ts +2 -2
- package/src/state/chats.ts +2 -2
- package/src/state/provider-accounts.ts +1 -1
- package/src/state/providers.ts +1 -1
- package/src/state/usage.ts +2 -2
- package/src/theme.css +4 -4
- package/src/transport.ts +1 -1
- package/src/usage/LimitsList.tsx +5 -5
- package/src/usage/UsageBreakdown.tsx +6 -6
- package/src/usage/UsageChart.tsx +2 -2
- package/src/usage/UsageDialog.tsx +2 -2
- package/src/usage/UsageLimits.tsx +7 -7
- package/src/usage/UsageLimitsCard.tsx +2 -2
- package/src/usage/UsagePage.tsx +5 -5
- package/src/usage/UsagePane.tsx +2 -2
- package/src/usage/UsageSummary.tsx +2 -2
- package/src/usage/UsageTiles.tsx +1 -1
- package/src/usage/limit-groups.ts +2 -2
- package/src/usage/limits.ts +1 -1
- package/src/usage/summary.ts +1 -1
- package/dist/chat/logic/json.d.ts +0 -1
- package/dist/chat/logic/json.js +0 -4
- package/src/chat/logic/json.ts +0 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import { useTranslation } from 'react-i18next';
|
|
3
|
-
import { Clock, Copy, FastForward, Pencil, X } from 'lucide-react';
|
|
4
2
|
import { ButtonGroup, ContextMenu, copyText, Icon, IconButton } from '@adecore/ui';
|
|
3
|
+
import { Clock, Copy, FastForward, Pencil, X } from 'lucide-react';
|
|
4
|
+
import { useTranslation } from 'react-i18next';
|
|
5
5
|
import { useChatActions } from '../../actions.js';
|
|
6
6
|
import { scrollTimelineToEnd } from '../../timeline-scroll.js';
|
|
7
7
|
/* The messages waiting for the running turn to end, each with a way to send it now, edit it or drop it. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { EditorView } from '@codemirror/view';
|
|
2
|
-
import type { ChatDraft } from '../../drafts.js';
|
|
3
2
|
import type { Referable } from '../../chat-references.js';
|
|
3
|
+
import type { ChatDraft } from '../../drafts.js';
|
|
4
4
|
import { type ClipboardChips, type ReferenceToken, type TextRange } from '../../mentions.js';
|
|
5
5
|
export interface PasteChoices {
|
|
6
6
|
skills: readonly string[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type ComponentType } from 'react';
|
|
2
1
|
import { type Extension } from '@codemirror/state';
|
|
2
|
+
import { type ComponentType } from 'react';
|
|
3
3
|
import type { ReferenceIconProps } from '../../../host.js';
|
|
4
4
|
import type { ReferableKind, ReferenceStep } from '../../chat-references.js';
|
|
5
5
|
import { type ReferenceToken } from '../../mentions.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { createElement, Fragment } from 'react';
|
|
2
|
-
import { createRoot } from 'react-dom/client';
|
|
3
1
|
import { syntaxTree } from '@codemirror/language';
|
|
4
2
|
import { Facet, StateField } from '@codemirror/state';
|
|
5
3
|
import { Decoration, EditorView, WidgetType } from '@codemirror/view';
|
|
4
|
+
import { createElement, Fragment } from 'react';
|
|
5
|
+
import { createRoot } from 'react-dom/client';
|
|
6
6
|
import { chipRanges } from '../../mentions.js';
|
|
7
7
|
import { CHIP_IN_EDITOR, MENTION_TONE, REFERENCE_TONE, SKILL_TONE, TOKEN_ICON_IN_EDITOR } from '../chips.js';
|
|
8
8
|
import { referenceGlyph } from '../reference-icons.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { isModHeld, matchesShortcut } from '@adecore/ui';
|
|
1
2
|
import { indentLess, indentMore, insertNewline } from '@codemirror/commands';
|
|
2
3
|
import { ensureSyntaxTree, syntaxTree } from '@codemirror/language';
|
|
3
|
-
import { isModHeld, matchesShortcut } from '@adecore/ui';
|
|
4
4
|
import { STASH_SHORTCUT } from '../../stash.js';
|
|
5
5
|
import { pageTimeline } from '../../timeline-scroll.js';
|
|
6
6
|
import { enterAction, inCode, inFenceBody, inOpenFence, listItemAt, recallDirection, tabSpaces } from './keys.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
|
-
import { useChatScope } from '../../../scope.js';
|
|
5
4
|
import { useHostComposerPlaceholder } from '../../../host-hooks.js';
|
|
5
|
+
import { useChatScope } from '../../../scope.js';
|
|
6
6
|
/* The empty box names its sigils as key caps, so they read as keys to press rather than as punctuation. */
|
|
7
7
|
function hintedPlaceholder(lead, joiner, hints) {
|
|
8
8
|
const root = document.createElement('span');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type RefObject } from 'react';
|
|
2
1
|
import type { ChatInfo, ProviderCapabilities } from '@adecore/agent-contracts';
|
|
2
|
+
import { type RefObject } from 'react';
|
|
3
3
|
import type { ComposerInputHandle } from '../ComposerInput.js';
|
|
4
4
|
import type { ComposerDraft } from './use-composer-draft.js';
|
|
5
5
|
import { type PromptMenus } from './use-prompt-menus.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
2
|
import { useEffect, useState } from 'react';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
|
+
import { useHostReferables } from '../../../host-hooks.js';
|
|
4
5
|
import { useChatScope } from '../../../scope.js';
|
|
5
6
|
import { usePromptMenus } from './use-prompt-menus.js';
|
|
6
|
-
import { useHostReferables } from '../../../host-hooks.js';
|
|
7
7
|
// Commands the composer handles itself; the CLI's own ones are sent through as text.
|
|
8
8
|
export const LOCAL_COMMANDS = ['model', 'compact', 'clear'];
|
|
9
9
|
/* The pickers over a chat's composer, fed by what the chat's CLI has: its skills, its commands and its folder. */
|
|
@@ -5,9 +5,9 @@ import type { PromptGuard } from '../../guards.js';
|
|
|
5
5
|
import { type StashedPrompt } from '../../stash.js';
|
|
6
6
|
import type { ComposerInputHandle } from '../ComposerInput.js';
|
|
7
7
|
import type { ChatControls } from './use-chat-controls.js';
|
|
8
|
-
import type { NoticeTone } from './use-notice.js';
|
|
9
8
|
import type { ComposerDraft } from './use-composer-draft.js';
|
|
10
9
|
import type { ComposerMenus } from './use-composer-menus.js';
|
|
10
|
+
import type { NoticeTone } from './use-notice.js';
|
|
11
11
|
import type { PromptHistory } from './use-prompt-history.js';
|
|
12
12
|
import type { ComposerPromptHold } from './use-prompt-hold.js';
|
|
13
13
|
interface SubmitInput {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type DragEvent, type RefObject } from 'react';
|
|
2
|
-
import { EditorView } from '@codemirror/view';
|
|
3
1
|
import type { ProviderCapabilities } from '@adecore/agent-contracts';
|
|
2
|
+
import { EditorView } from '@codemirror/view';
|
|
3
|
+
import { type DragEvent, type RefObject } from 'react';
|
|
4
4
|
import type { Referable } from '../../chat-references.js';
|
|
5
5
|
import { type ReferenceToken } from '../../mentions.js';
|
|
6
6
|
import type { ComposerInputHandle } from '../ComposerInput.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
+
import { EditorView } from '@codemirror/view';
|
|
2
3
|
import { useRef, useState } from 'react';
|
|
3
4
|
import { useTranslation } from 'react-i18next';
|
|
4
|
-
import { EditorView } from '@codemirror/view';
|
|
5
5
|
import { useChatHost } from '../../../host.js';
|
|
6
6
|
import { checkAttachmentLimits, filesOf, readAttachments, uploadBytes } from '../../attachments.js';
|
|
7
7
|
import { pasteBecomesAttachment, pastedTextName } from '../../guards.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
2
|
import { useEffect, useRef } from 'react';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
|
-
import { useChatScope } from '../../../scope.js';
|
|
5
4
|
import { choiceWord } from '../../../agents/option-words.js';
|
|
5
|
+
import { useChatScope } from '../../../scope.js';
|
|
6
6
|
import { registerEffortStepper } from '../../composer-effort.js';
|
|
7
7
|
import { EFFORT_OPTION, stepEffort } from '../../logic/effort.js';
|
|
8
8
|
/* Lets a command of the host step this chat's reasoning effort, as picking it in the pill's menu does, and says where it landed. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type Dispatch, type RefObject, type SetStateAction } from 'react';
|
|
2
|
-
import type { EditorState } from '@codemirror/state';
|
|
3
1
|
import type { ChatSkill } from '@adecore/agent-contracts';
|
|
2
|
+
import type { EditorState } from '@codemirror/state';
|
|
3
|
+
import { type Dispatch, type RefObject, type SetStateAction } from 'react';
|
|
4
4
|
import { type Referable, type Referables } from '../../chat-references.js';
|
|
5
5
|
import type { ChatDraft } from '../../drafts.js';
|
|
6
6
|
import { type MentionQuery, type TextRange } from '../../mentions.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
+
import { ensureSyntaxTree, syntaxTree } from '@codemirror/language';
|
|
2
3
|
import { useEffect, useId, useState } from 'react';
|
|
3
4
|
import { useTranslation } from 'react-i18next';
|
|
4
|
-
import { ensureSyntaxTree, syntaxTree } from '@codemirror/language';
|
|
5
5
|
import { useChatHost } from '../../../host.js';
|
|
6
6
|
import { useHostExpandingCommands } from '../../../host-hooks.js';
|
|
7
7
|
import { useChatScope } from '../../../scope.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import { useState } from 'react';
|
|
3
|
-
import { useTranslation } from 'react-i18next';
|
|
4
2
|
import { Button } from '@adecore/ui';
|
|
5
3
|
import { formatNumber } from '@adecore/ui/format';
|
|
4
|
+
import { useState } from 'react';
|
|
5
|
+
import { useTranslation } from 'react-i18next';
|
|
6
6
|
import { ReviewDiff } from './ReviewDiff.js';
|
|
7
7
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
8
|
export function ApprovalReview(t0) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import { useReviewSettled } from './review-settle.js';
|
|
3
2
|
import { useTranslation } from 'react-i18next';
|
|
3
|
+
import { useReviewSettled } from './review-settle.js';
|
|
4
4
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
5
|
export function DiffOmitted(t0) {
|
|
6
6
|
const $ = _c(9);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import { useTranslation } from 'react-i18next';
|
|
3
2
|
import { Button } from '@adecore/ui';
|
|
3
|
+
import { useTranslation } from 'react-i18next';
|
|
4
|
+
import { reviewSize } from './review-plan.js';
|
|
4
5
|
import { ReviewSettleContext } from './review-settle.js';
|
|
5
6
|
import { ReviewDiff } from './ReviewDiff.js';
|
|
6
|
-
import { reviewSize } from './review-plan.js';
|
|
7
7
|
import { useReviewStack } from './use-review-stack.js';
|
|
8
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
9
|
export function ReviewStackView(t0) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
1
|
import type { EditorEngine } from '@adecore/editor';
|
|
3
2
|
import { type DiffSource } from '@adecore/editor-react';
|
|
4
3
|
import { type DiffDocument } from '@adecore/merge';
|
|
4
|
+
import { type ReactNode } from 'react';
|
|
5
5
|
import { type FileChange } from '../../logic/tools.js';
|
|
6
6
|
type EngineLoader = () => Promise<EditorEngine>;
|
|
7
7
|
export declare function EditorDocumentDiff({ document, path, loadEngine, fallback, wrap, fill, layout, maxHeight, numbered, onSource }: {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import { useReviewSettled } from './review-settle.js';
|
|
3
|
-
import { useEffect, useState } from 'react';
|
|
4
|
-
import { useTranslation } from 'react-i18next';
|
|
5
|
-
import { getFiletypeFromFileName } from '@pierre/diffs';
|
|
6
2
|
import { DiffView } from '@adecore/editor-react';
|
|
7
3
|
import { diffDocument, patchOf } from '@adecore/merge';
|
|
4
|
+
import { getFiletypeFromFileName } from '@pierre/diffs';
|
|
5
|
+
import { useEffect, useState } from 'react';
|
|
6
|
+
import { useTranslation } from 'react-i18next';
|
|
7
|
+
import { useHostCodeMode, useHostCodeThemes } from '../../../host-hooks.js';
|
|
8
8
|
import { diffTexts } from '../../logic/tools.js';
|
|
9
9
|
import { useDiffSourceTokens } from '../use-diff-source-tokens.js';
|
|
10
10
|
import { diffSourceBudget } from './diff-source-budget.js';
|
|
11
11
|
import { DiffOmitted } from './DiffOmitted.js';
|
|
12
12
|
import { canRenderEditorDiff, EDITOR_DIFF_LIMITS, EDITOR_DIFF_WORK } from './editor-edit-model.js';
|
|
13
|
-
import {
|
|
13
|
+
import { useReviewSettled } from './review-settle.js';
|
|
14
14
|
// Virtualized rows remount; retain the engine so their height does not return to the loading placeholder.
|
|
15
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
16
|
const engines = new WeakMap();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
1
|
import type { ChatFileChange } from '@adecore/agent-contracts';
|
|
3
2
|
import type { EditorEngine } from '@adecore/editor';
|
|
4
3
|
import type { DiffSource } from '@adecore/editor-react';
|
|
4
|
+
import { type ReactNode } from 'react';
|
|
5
5
|
import type { DiffContents } from '../full-diff.js';
|
|
6
6
|
export default function EditorPatchDiff({ change, sourceChecked, contents, ignoreWhitespace, wrap, fill, maxHeight, layout, loadEngine, fallback, onSource }: {
|
|
7
7
|
change: ChatFileChange;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useMemo } from 'react';
|
|
2
1
|
import { diffDocument, parsePatch } from '@adecore/merge';
|
|
2
|
+
import { useMemo } from 'react';
|
|
3
3
|
import { diffSourceBudget, patchSourceBudget } from './diff-source-budget.js';
|
|
4
4
|
import { DiffOmitted } from './DiffOmitted.js';
|
|
5
5
|
import { EditorDocumentDiff } from './EditorEditDiff.js';
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { useReviewSettled } from './review-settle.js';
|
|
2
|
+
import { ScrollArea } from '@adecore/ui';
|
|
4
3
|
import { MultiFileDiff } from '@pierre/diffs/react';
|
|
5
|
-
import { useDiffTheme } from '../diff-theme.js';
|
|
6
|
-
import { diffTexts } from '../../logic/tools.js';
|
|
7
4
|
import { useHostCodeMode } from '../../../host-hooks.js';
|
|
5
|
+
import { diffTexts } from '../../logic/tools.js';
|
|
6
|
+
import { useDiffTheme } from '../diff-theme.js';
|
|
7
|
+
import { LegacyDiffPool } from './LegacyDiffPool.js';
|
|
8
|
+
import { useReviewSettled } from './review-settle.js';
|
|
8
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
10
|
export default function LegacyEditDiff(t0) {
|
|
10
|
-
const $ = _c(
|
|
11
|
+
const $ = _c(23);
|
|
11
12
|
const {
|
|
12
13
|
change,
|
|
13
14
|
maxHeight
|
|
@@ -74,44 +75,59 @@ export default function LegacyEditDiff(t0) {
|
|
|
74
75
|
}
|
|
75
76
|
const options = t5;
|
|
76
77
|
let t6;
|
|
77
|
-
if ($[12] !==
|
|
78
|
-
t6 =
|
|
79
|
-
maxHeight,
|
|
80
|
-
overflow: "auto"
|
|
81
|
-
};
|
|
82
|
-
$[12] = maxHeight;
|
|
83
|
-
$[13] = t6;
|
|
84
|
-
} else {
|
|
85
|
-
t6 = $[13];
|
|
86
|
-
}
|
|
87
|
-
let t7;
|
|
88
|
-
if ($[14] !== newFile || $[15] !== oldFile || $[16] !== options) {
|
|
89
|
-
t7 = /*#__PURE__*/_jsx(LegacyDiffPool, {
|
|
78
|
+
if ($[12] !== newFile || $[13] !== oldFile || $[14] !== options) {
|
|
79
|
+
t6 = /*#__PURE__*/_jsx(LegacyDiffPool, {
|
|
90
80
|
children: /*#__PURE__*/_jsx(MultiFileDiff, {
|
|
91
81
|
oldFile: oldFile,
|
|
92
82
|
newFile: newFile,
|
|
93
83
|
options: options
|
|
94
84
|
})
|
|
95
85
|
});
|
|
96
|
-
$[
|
|
97
|
-
$[
|
|
98
|
-
$[
|
|
99
|
-
$[
|
|
86
|
+
$[12] = newFile;
|
|
87
|
+
$[13] = oldFile;
|
|
88
|
+
$[14] = options;
|
|
89
|
+
$[15] = t6;
|
|
100
90
|
} else {
|
|
101
|
-
|
|
91
|
+
t6 = $[15];
|
|
92
|
+
}
|
|
93
|
+
const body = t6;
|
|
94
|
+
if (maxHeight === undefined) {
|
|
95
|
+
let t7;
|
|
96
|
+
if ($[16] !== body) {
|
|
97
|
+
t7 = /*#__PURE__*/_jsx("div", {
|
|
98
|
+
className: "chat-diff select-text",
|
|
99
|
+
children: body
|
|
100
|
+
});
|
|
101
|
+
$[16] = body;
|
|
102
|
+
$[17] = t7;
|
|
103
|
+
} else {
|
|
104
|
+
t7 = $[17];
|
|
105
|
+
}
|
|
106
|
+
return t7;
|
|
107
|
+
}
|
|
108
|
+
let t7;
|
|
109
|
+
if ($[18] !== maxHeight) {
|
|
110
|
+
t7 = {
|
|
111
|
+
maxHeight
|
|
112
|
+
};
|
|
113
|
+
$[18] = maxHeight;
|
|
114
|
+
$[19] = t7;
|
|
115
|
+
} else {
|
|
116
|
+
t7 = $[19];
|
|
102
117
|
}
|
|
103
118
|
let t8;
|
|
104
|
-
if ($[
|
|
105
|
-
t8 = /*#__PURE__*/_jsx(
|
|
119
|
+
if ($[20] !== body || $[21] !== t7) {
|
|
120
|
+
t8 = /*#__PURE__*/_jsx(ScrollArea, {
|
|
121
|
+
axis: "both",
|
|
106
122
|
className: "chat-diff select-text",
|
|
107
|
-
style:
|
|
108
|
-
children:
|
|
123
|
+
style: t7,
|
|
124
|
+
children: body
|
|
109
125
|
});
|
|
110
|
-
$[
|
|
111
|
-
$[
|
|
112
|
-
$[
|
|
126
|
+
$[20] = body;
|
|
127
|
+
$[21] = t7;
|
|
128
|
+
$[22] = t8;
|
|
113
129
|
} else {
|
|
114
|
-
t8 = $[
|
|
130
|
+
t8 = $[22];
|
|
115
131
|
}
|
|
116
132
|
return t8;
|
|
117
133
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { useReviewSettled } from './review-settle.js';
|
|
4
|
-
import clsx from 'clsx';
|
|
2
|
+
import { ScrollArea } from '@adecore/ui';
|
|
5
3
|
import { FileDiff, PatchDiff } from '@pierre/diffs/react';
|
|
4
|
+
import clsx from 'clsx';
|
|
5
|
+
import { useHostCodeMode } from '../../../host-hooks.js';
|
|
6
6
|
import { useDiffTheme } from '../diff-theme.js';
|
|
7
7
|
import { fullFileDiff } from '../full-diff.js';
|
|
8
|
-
import {
|
|
8
|
+
import { LegacyDiffPool } from './LegacyDiffPool.js';
|
|
9
|
+
import { useReviewSettled } from './review-settle.js';
|
|
9
10
|
/*
|
|
10
11
|
* A patch the CLI reported itself. The renderer needs a file header, which a CLI that only sends hunks
|
|
11
12
|
* gets from the path we know; a diff without hunks is shown as its own lines, so nothing is swallowed.
|
|
@@ -40,7 +41,7 @@ function lineClass(line) {
|
|
|
40
41
|
return 'text-text-muted';
|
|
41
42
|
}
|
|
42
43
|
export default function LegacyUnifiedDiff(t0) {
|
|
43
|
-
const $ = _c(
|
|
44
|
+
const $ = _c(35);
|
|
44
45
|
const {
|
|
45
46
|
change,
|
|
46
47
|
overflow: t1,
|
|
@@ -102,63 +103,51 @@ export default function LegacyUnifiedDiff(t0) {
|
|
|
102
103
|
const options = t7;
|
|
103
104
|
if (patch === null) {
|
|
104
105
|
let t8;
|
|
105
|
-
if ($[12]
|
|
106
|
-
t8 =
|
|
107
|
-
|
|
108
|
-
};
|
|
109
|
-
$[12] = fill;
|
|
110
|
-
$[13] = maxHeight;
|
|
111
|
-
$[14] = t8;
|
|
106
|
+
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
107
|
+
t8 = /*#__PURE__*/_jsx("pre", {});
|
|
108
|
+
$[12] = t8;
|
|
112
109
|
} else {
|
|
113
|
-
t8 = $[
|
|
110
|
+
t8 = $[12];
|
|
114
111
|
}
|
|
115
112
|
let t9;
|
|
116
|
-
if ($[
|
|
117
|
-
t9 =
|
|
118
|
-
|
|
119
|
-
|
|
113
|
+
if ($[13] !== fill || $[14] !== maxHeight) {
|
|
114
|
+
t9 = fill ? undefined : {
|
|
115
|
+
maxHeight
|
|
116
|
+
};
|
|
117
|
+
$[13] = fill;
|
|
118
|
+
$[14] = maxHeight;
|
|
119
|
+
$[15] = t9;
|
|
120
120
|
} else {
|
|
121
|
-
t9 = $[
|
|
121
|
+
t9 = $[15];
|
|
122
122
|
}
|
|
123
123
|
let t10;
|
|
124
|
-
if ($[
|
|
125
|
-
t10 =
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
124
|
+
if ($[16] !== change.diff) {
|
|
125
|
+
t10 = change.diff.replace(/\n$/, "").split("\n").map(_temp);
|
|
126
|
+
$[16] = change.diff;
|
|
127
|
+
$[17] = t10;
|
|
128
|
+
} else {
|
|
129
|
+
t10 = $[17];
|
|
130
|
+
}
|
|
131
|
+
let t11;
|
|
132
|
+
if ($[18] !== t10 || $[19] !== t9) {
|
|
133
|
+
t11 = /*#__PURE__*/_jsx(ScrollArea, {
|
|
134
|
+
axis: "both",
|
|
135
|
+
render: t8,
|
|
136
|
+
viewportClassName: "max-h-64 px-3 py-2 font-mono text-code select-text",
|
|
137
|
+
style: t9,
|
|
138
|
+
children: t10
|
|
129
139
|
});
|
|
130
|
-
$[
|
|
131
|
-
$[
|
|
132
|
-
$[
|
|
140
|
+
$[18] = t10;
|
|
141
|
+
$[19] = t9;
|
|
142
|
+
$[20] = t11;
|
|
133
143
|
} else {
|
|
134
|
-
|
|
144
|
+
t11 = $[20];
|
|
135
145
|
}
|
|
136
|
-
return
|
|
146
|
+
return t11;
|
|
137
147
|
}
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
t9 = clsx("chat-diff select-text", t8);
|
|
142
|
-
$[20] = t8;
|
|
143
|
-
$[21] = t9;
|
|
144
|
-
} else {
|
|
145
|
-
t9 = $[21];
|
|
146
|
-
}
|
|
147
|
-
let t10;
|
|
148
|
-
if ($[22] !== fill || $[23] !== maxHeight) {
|
|
149
|
-
t10 = fill || maxHeight === undefined ? undefined : {
|
|
150
|
-
maxHeight,
|
|
151
|
-
overflow: "auto"
|
|
152
|
-
};
|
|
153
|
-
$[22] = fill;
|
|
154
|
-
$[23] = maxHeight;
|
|
155
|
-
$[24] = t10;
|
|
156
|
-
} else {
|
|
157
|
-
t10 = $[24];
|
|
158
|
-
}
|
|
159
|
-
let t11;
|
|
160
|
-
if ($[25] !== full || $[26] !== options || $[27] !== patch) {
|
|
161
|
-
t11 = /*#__PURE__*/_jsx(LegacyDiffPool, {
|
|
148
|
+
let t8;
|
|
149
|
+
if ($[21] !== full || $[22] !== options || $[23] !== patch) {
|
|
150
|
+
t8 = /*#__PURE__*/_jsx(LegacyDiffPool, {
|
|
162
151
|
children: full === null ? /*#__PURE__*/_jsx(PatchDiff, {
|
|
163
152
|
patch: patch,
|
|
164
153
|
options: options
|
|
@@ -167,28 +156,63 @@ export default function LegacyUnifiedDiff(t0) {
|
|
|
167
156
|
options: options
|
|
168
157
|
})
|
|
169
158
|
});
|
|
170
|
-
$[
|
|
171
|
-
$[
|
|
172
|
-
$[
|
|
173
|
-
$[
|
|
159
|
+
$[21] = full;
|
|
160
|
+
$[22] = options;
|
|
161
|
+
$[23] = patch;
|
|
162
|
+
$[24] = t8;
|
|
174
163
|
} else {
|
|
175
|
-
|
|
164
|
+
t8 = $[24];
|
|
176
165
|
}
|
|
177
|
-
|
|
178
|
-
if (
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
166
|
+
const body = t8;
|
|
167
|
+
if (fill || maxHeight === undefined) {
|
|
168
|
+
const t9 = fill && "flex grow flex-col";
|
|
169
|
+
let t10;
|
|
170
|
+
if ($[25] !== t9) {
|
|
171
|
+
t10 = clsx("chat-diff select-text", t9);
|
|
172
|
+
$[25] = t9;
|
|
173
|
+
$[26] = t10;
|
|
174
|
+
} else {
|
|
175
|
+
t10 = $[26];
|
|
176
|
+
}
|
|
177
|
+
let t11;
|
|
178
|
+
if ($[27] !== body || $[28] !== t10) {
|
|
179
|
+
t11 = /*#__PURE__*/_jsx("div", {
|
|
180
|
+
className: t10,
|
|
181
|
+
children: body
|
|
182
|
+
});
|
|
183
|
+
$[27] = body;
|
|
184
|
+
$[28] = t10;
|
|
185
|
+
$[29] = t11;
|
|
186
|
+
} else {
|
|
187
|
+
t11 = $[29];
|
|
188
|
+
}
|
|
189
|
+
return t11;
|
|
190
|
+
}
|
|
191
|
+
let t9;
|
|
192
|
+
if ($[30] !== maxHeight) {
|
|
193
|
+
t9 = {
|
|
194
|
+
maxHeight
|
|
195
|
+
};
|
|
196
|
+
$[30] = maxHeight;
|
|
186
197
|
$[31] = t9;
|
|
187
|
-
$[32] = t12;
|
|
188
198
|
} else {
|
|
189
|
-
|
|
199
|
+
t9 = $[31];
|
|
200
|
+
}
|
|
201
|
+
let t10;
|
|
202
|
+
if ($[32] !== body || $[33] !== t9) {
|
|
203
|
+
t10 = /*#__PURE__*/_jsx(ScrollArea, {
|
|
204
|
+
axis: "both",
|
|
205
|
+
className: "chat-diff select-text",
|
|
206
|
+
style: t9,
|
|
207
|
+
children: body
|
|
208
|
+
});
|
|
209
|
+
$[32] = body;
|
|
210
|
+
$[33] = t9;
|
|
211
|
+
$[34] = t10;
|
|
212
|
+
} else {
|
|
213
|
+
t10 = $[34];
|
|
190
214
|
}
|
|
191
|
-
return
|
|
215
|
+
return t10;
|
|
192
216
|
}
|
|
193
217
|
function _temp(line, index) {
|
|
194
218
|
return /*#__PURE__*/_jsx("div", {
|