@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,9 +1,10 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
+
import { ScrollArea } from '@adecore/ui';
|
|
2
3
|
import clsx from 'clsx';
|
|
3
4
|
import { useReviewSettled } from './review-settle.js';
|
|
4
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
6
|
export function RawDiff(t0) {
|
|
6
|
-
const $ = _c(
|
|
7
|
+
const $ = _c(16);
|
|
7
8
|
const {
|
|
8
9
|
text,
|
|
9
10
|
overflow,
|
|
@@ -11,57 +12,75 @@ export function RawDiff(t0) {
|
|
|
11
12
|
maxHeight
|
|
12
13
|
} = t0;
|
|
13
14
|
useReviewSettled();
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
if ($[0] !== t1 || $[1] !== t2) {
|
|
18
|
-
t3 = clsx("overflow-auto px-3 py-2 font-mono text-code text-text-muted select-text", t1, t2);
|
|
15
|
+
let t1;
|
|
16
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
17
|
+
t1 = /*#__PURE__*/_jsx("pre", {});
|
|
19
18
|
$[0] = t1;
|
|
19
|
+
} else {
|
|
20
|
+
t1 = $[0];
|
|
21
|
+
}
|
|
22
|
+
const t2 = fill && "h-full";
|
|
23
|
+
let t3;
|
|
24
|
+
if ($[1] !== t2) {
|
|
25
|
+
t3 = clsx(t2);
|
|
20
26
|
$[1] = t2;
|
|
21
27
|
$[2] = t3;
|
|
22
28
|
} else {
|
|
23
29
|
t3 = $[2];
|
|
24
30
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
31
|
+
const t4 = overflow === "wrap" ? "whitespace-pre-wrap" : "whitespace-pre";
|
|
32
|
+
let t5;
|
|
33
|
+
if ($[3] !== t4) {
|
|
34
|
+
t5 = clsx("px-3 py-2 font-mono text-code text-text-muted select-text", t4);
|
|
35
|
+
$[3] = t4;
|
|
36
|
+
$[4] = t5;
|
|
37
|
+
} else {
|
|
38
|
+
t5 = $[4];
|
|
39
|
+
}
|
|
40
|
+
let t6;
|
|
41
|
+
if ($[5] !== fill || $[6] !== maxHeight) {
|
|
42
|
+
t6 = fill ? undefined : {
|
|
28
43
|
maxHeight: maxHeight ?? 256
|
|
29
44
|
};
|
|
30
|
-
$[
|
|
31
|
-
$[
|
|
32
|
-
$[
|
|
45
|
+
$[5] = fill;
|
|
46
|
+
$[6] = maxHeight;
|
|
47
|
+
$[7] = t6;
|
|
33
48
|
} else {
|
|
34
|
-
|
|
49
|
+
t6 = $[7];
|
|
35
50
|
}
|
|
36
|
-
let
|
|
37
|
-
if ($[
|
|
38
|
-
let
|
|
39
|
-
if ($[
|
|
40
|
-
|
|
41
|
-
$[
|
|
51
|
+
let t7;
|
|
52
|
+
if ($[8] !== text) {
|
|
53
|
+
let t8;
|
|
54
|
+
if ($[10] === Symbol.for("react.memo_cache_sentinel")) {
|
|
55
|
+
t8 = /\n$/;
|
|
56
|
+
$[10] = t8;
|
|
42
57
|
} else {
|
|
43
|
-
|
|
58
|
+
t8 = $[10];
|
|
44
59
|
}
|
|
45
|
-
|
|
46
|
-
$[
|
|
47
|
-
$[
|
|
60
|
+
t7 = text.replace(t8, "");
|
|
61
|
+
$[8] = text;
|
|
62
|
+
$[9] = t7;
|
|
48
63
|
} else {
|
|
49
|
-
|
|
64
|
+
t7 = $[9];
|
|
50
65
|
}
|
|
51
|
-
let
|
|
52
|
-
if ($[
|
|
53
|
-
|
|
66
|
+
let t8;
|
|
67
|
+
if ($[11] !== t3 || $[12] !== t5 || $[13] !== t6 || $[14] !== t7) {
|
|
68
|
+
t8 = /*#__PURE__*/_jsx(ScrollArea, {
|
|
69
|
+
axis: "both",
|
|
70
|
+
render: t1,
|
|
54
71
|
"data-diff-raw": true,
|
|
55
72
|
className: t3,
|
|
56
|
-
|
|
57
|
-
|
|
73
|
+
viewportClassName: t5,
|
|
74
|
+
style: t6,
|
|
75
|
+
children: t7
|
|
58
76
|
});
|
|
59
|
-
$[
|
|
60
|
-
$[
|
|
61
|
-
$[
|
|
62
|
-
$[
|
|
77
|
+
$[11] = t3;
|
|
78
|
+
$[12] = t5;
|
|
79
|
+
$[13] = t6;
|
|
80
|
+
$[14] = t7;
|
|
81
|
+
$[15] = t8;
|
|
63
82
|
} else {
|
|
64
|
-
|
|
83
|
+
t8 = $[15];
|
|
65
84
|
}
|
|
66
|
-
return
|
|
85
|
+
return t8;
|
|
67
86
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Highlighter, ThemeRegistration } from 'shiki';
|
|
2
1
|
import { type DiffSyntaxDocument, type DiffSyntaxTokens } from '@adecore/editor/shiki-worker';
|
|
2
|
+
import type { Highlighter, ThemeRegistration } from 'shiki';
|
|
3
3
|
import type { ChatHost } from '../../../host.js';
|
|
4
4
|
export interface DiffSyntaxSession {
|
|
5
5
|
request(index: number): Promise<DiffSyntaxTokens | null>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CSSProperties } from 'react';
|
|
2
2
|
import type { Highlighter } from 'shiki';
|
|
3
|
-
import { type CodeToken, type Tokenize } from './code-lines.js';
|
|
4
3
|
import { type ChatHost } from '../../host.js';
|
|
4
|
+
import { type CodeToken, type Tokenize } from './code-lines.js';
|
|
5
5
|
export type { Highlighter };
|
|
6
6
|
export type GrammarState = ReturnType<Highlighter['getLastGrammarState']>;
|
|
7
7
|
export interface CodeHighlighter {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import { TokenCache } from './code-lines.js';
|
|
3
2
|
import { useChatHost } from '../../host.js';
|
|
3
|
+
import { TokenCache } from './code-lines.js';
|
|
4
4
|
import { shikiThemeOf } from './code-theme.js';
|
|
5
5
|
// A plain language needs no grammar; shiki draws it in the theme's own foreground.
|
|
6
6
|
const PLAIN = 'text';
|
package/dist/chat/ui/icons.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { Icon } from '@adecore/ui';
|
|
1
2
|
import { Hammer, Wrench } from 'lucide-react';
|
|
2
3
|
import { toolEntry } from '../logic/tool-catalog.js';
|
|
3
|
-
import { Icon } from '@adecore/ui';
|
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
5
|
const SIZE = 12;
|
|
6
6
|
/* The gutter every row in the thread opens with: 16 wide, on the line box of its first row of text,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Icon, KEY_SHORTCUTS, matchesShortcut, Skeleton, Spinner, Tooltip, useTickingText } from '@adecore/ui';
|
|
3
|
+
import { formatAgo, formatMoment } from '@adecore/ui/format';
|
|
3
4
|
import clsx from 'clsx';
|
|
4
|
-
import { useTranslation } from 'react-i18next';
|
|
5
5
|
import { Info, Lock, Radio, TriangleAlert } from 'lucide-react';
|
|
6
|
-
import {
|
|
6
|
+
import { useId, useLayoutEffect, useRef, useState } from 'react';
|
|
7
|
+
import { useTranslation } from 'react-i18next';
|
|
7
8
|
import { useChatHost } from '../../../host.js';
|
|
8
|
-
import { formatAgo, formatMoment } from '@adecore/ui/format';
|
|
9
9
|
import { uiBlockHead, uiReasonText } from './node-text.js';
|
|
10
10
|
import { UiHeadContext } from './render-context.js';
|
|
11
11
|
import { useLater } from './use-later.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import { useTranslation } from 'react-i18next';
|
|
3
|
-
import { Info } from 'lucide-react';
|
|
4
2
|
import { Icon } from '@adecore/ui';
|
|
3
|
+
import { Info } from 'lucide-react';
|
|
4
|
+
import { useTranslation } from 'react-i18next';
|
|
5
5
|
import { Markdown } from '../Markdown.js';
|
|
6
6
|
/*
|
|
7
7
|
* One part of a block as the markdown it stands for, on a card in a quiet tile under a line that says why.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type ComponentProps, type ReactNode } from 'react';
|
|
2
|
-
import { type UiBlock } from '@adecore/intelligent-ui';
|
|
3
1
|
import type { ChatUiAnswer, ChatUiQueryState } from '@adecore/agent-contracts';
|
|
2
|
+
import { type UiBlock } from '@adecore/intelligent-ui';
|
|
3
|
+
import { type ComponentProps, type ReactNode } from 'react';
|
|
4
4
|
import { ReplyMarkdown } from '../Markdown.js';
|
|
5
5
|
import type { UiRenderContext } from './render-context.js';
|
|
6
6
|
type UiBlockIdentity = Pick<UiRenderContext, 'scopeId' | 'chatId' | 'itemId' | 'blockId' | 'phase'>;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import { Component, createContext, Fragment, memo, useContext, useEffect, useMemo, useRef, useState, useSyncExternalStore } from 'react';
|
|
3
|
-
import ReactMarkdown from 'react-markdown';
|
|
4
|
-
import { useTranslation } from 'react-i18next';
|
|
5
2
|
import { evaluateUiBlock, uiInputValues, isUiComponent, UI_CATALOG_VERSION, UiState } from '@adecore/intelligent-ui';
|
|
6
3
|
import { ErrorBoundary, Tooltip } from '@adecore/ui';
|
|
4
|
+
import { Component, createContext, Fragment, memo, useContext, useEffect, useMemo, useRef, useState, useSyncExternalStore } from 'react';
|
|
5
|
+
import { useTranslation } from 'react-i18next';
|
|
6
|
+
import ReactMarkdown from 'react-markdown';
|
|
7
7
|
import { useChatHost } from '../../../host.js';
|
|
8
|
-
import { UiReplyNavigationContext } from '../reply-context.js';
|
|
9
8
|
import { ReplyMarkdown } from '../Markdown.js';
|
|
10
9
|
import { rehypeFadeWords } from '../rehype-fade.js';
|
|
11
|
-
import {
|
|
10
|
+
import { UiReplyNavigationContext } from '../reply-context.js';
|
|
12
11
|
import { UiPageMemory } from './block-local.js';
|
|
12
|
+
import { uiChildrenOf, revealUiSource, uiLiveChoiceReason, uiUrlDomain } from './node-text.js';
|
|
13
|
+
import { UI_RENDERERS } from './registry.js';
|
|
14
|
+
import { UiSourceCitation } from './renderers/content.js';
|
|
15
|
+
import { uiReplyParts } from './reply-parts.js';
|
|
13
16
|
import { UiBlockFrame } from './UiBlockFrame.js';
|
|
14
17
|
import { UiFallbackPart } from './UiFallbackPart.js';
|
|
15
18
|
import { useUiLinks } from './use-ui-links.js';
|
|
16
19
|
import { useUiQueries, useUiLiveValues } from './use-ui-queries.js';
|
|
17
|
-
import { UiSourceCitation } from './renderers/content.js';
|
|
18
|
-
import { uiChildrenOf, revealUiSource, uiLiveChoiceReason, uiUrlDomain } from './node-text.js';
|
|
19
|
-
import { uiReplyParts } from './reply-parts.js';
|
|
20
20
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
21
|
const localStates = new UiPageMemory(64);
|
|
22
22
|
function localState(key, block, answered) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { TFunction } from 'i18next';
|
|
2
1
|
import { type UiComponentName, type UiProps, type UiViewNode } from '@adecore/intelligent-ui';
|
|
2
|
+
import type { TFunction } from 'i18next';
|
|
3
3
|
import type { UiLiveStatus } from './render-context.js';
|
|
4
4
|
export declare function uiNodeText(node: UiViewNode): string;
|
|
5
5
|
export declare function uiNodeLabel(node: UiViewNode): string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
1
|
import type { UiComponentName, UiProps, UiViewNode } from '@adecore/intelligent-ui';
|
|
3
2
|
import type { UiLinkTarget } from '@adecore/intelligent-ui/links';
|
|
3
|
+
import { type ReactNode } from 'react';
|
|
4
4
|
export type { UiLinkTarget };
|
|
5
5
|
export interface UiLink {
|
|
6
6
|
state: 'chip' | 'plain';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Button, ScrollArea, SegmentBar, Tooltip, useMeasuredWidth } from '@adecore/ui';
|
|
3
|
+
import { formatNumber, formatRounded } from '@adecore/ui/format';
|
|
3
4
|
import clsx from 'clsx';
|
|
5
|
+
import { useState } from 'react';
|
|
4
6
|
import { useTranslation } from 'react-i18next';
|
|
5
|
-
import { Button, SegmentBar, Tooltip, useMeasuredWidth } from '@adecore/ui';
|
|
6
|
-
import { formatNumber, formatRounded } from '@adecore/ui/format';
|
|
7
7
|
import { useBlockLocal } from '../block-local.js';
|
|
8
8
|
import { UI_CHART_CHARACTER, UI_CHART_ROWS, uiChartCharacter, uiChartAxis, uiChartData, uiChartRange, uiChartText, uiChartTextWidth, uiChartValues } from '../chart-data.js';
|
|
9
9
|
import { uiWithUnit } from '../node-text.js';
|
|
10
|
-
import { useTruncated } from '../use-truncated.js';
|
|
11
10
|
import { UiFallbackPart } from '../UiFallbackPart.js';
|
|
11
|
+
import { useTruncated } from '../use-truncated.js';
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
13
13
|
const HEIGHT = 160;
|
|
14
14
|
const HBAR_ROW = 24;
|
|
@@ -149,7 +149,7 @@ function _temp2(series, index) {
|
|
|
149
149
|
}, series.key);
|
|
150
150
|
}
|
|
151
151
|
function ValuesTable(t0) {
|
|
152
|
-
const $ = _c(
|
|
152
|
+
const $ = _c(36);
|
|
153
153
|
const {
|
|
154
154
|
values,
|
|
155
155
|
unit,
|
|
@@ -287,20 +287,33 @@ function ValuesTable(t0) {
|
|
|
287
287
|
t12 = $[31];
|
|
288
288
|
}
|
|
289
289
|
const table = t12;
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
290
|
+
if (!shown) {
|
|
291
|
+
let t13;
|
|
292
|
+
if ($[32] !== table) {
|
|
293
|
+
t13 = /*#__PURE__*/_jsx("div", {
|
|
294
|
+
className: "sr-only",
|
|
295
|
+
children: table
|
|
296
|
+
});
|
|
297
|
+
$[32] = table;
|
|
298
|
+
$[33] = t13;
|
|
299
|
+
} else {
|
|
300
|
+
t13 = $[33];
|
|
301
|
+
}
|
|
302
|
+
return t13;
|
|
303
|
+
}
|
|
304
|
+
let t13;
|
|
305
|
+
if ($[34] !== table) {
|
|
306
|
+
t13 = /*#__PURE__*/_jsx(ScrollArea, {
|
|
307
|
+
axis: "both",
|
|
308
|
+
className: "max-h-80 w-full rounded-md border border-border-soft",
|
|
295
309
|
children: table
|
|
296
310
|
});
|
|
297
|
-
$[
|
|
298
|
-
$[
|
|
299
|
-
$[34] = t14;
|
|
311
|
+
$[34] = table;
|
|
312
|
+
$[35] = t13;
|
|
300
313
|
} else {
|
|
301
|
-
|
|
314
|
+
t13 = $[35];
|
|
302
315
|
}
|
|
303
|
-
return
|
|
316
|
+
return t13;
|
|
304
317
|
}
|
|
305
318
|
/* The values of one category beside the pointer. */
|
|
306
319
|
function Readout(t0) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import { useId, useState } from 'react';
|
|
3
|
-
import clsx from 'clsx';
|
|
4
|
-
import { useTranslation } from 'react-i18next';
|
|
5
|
-
import { Check } from 'lucide-react';
|
|
6
2
|
import { uiChoiceLabel } from '@adecore/intelligent-ui';
|
|
7
3
|
import { DisabledReason, formatShortcut, Icon, KEY_SHORTCUTS, Spinner, Tooltip } from '@adecore/ui';
|
|
4
|
+
import clsx from 'clsx';
|
|
5
|
+
import { Check } from 'lucide-react';
|
|
6
|
+
import { useId, useState } from 'react';
|
|
7
|
+
import { useTranslation } from 'react-i18next';
|
|
8
8
|
import { useChatHost } from '../../../../host.js';
|
|
9
9
|
import { UiFallbackPart } from '../UiFallbackPart.js';
|
|
10
10
|
import { useLater } from '../use-later.js';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
+
import { ErrorBoundary, Icon, Pill, PreviewCard, Tooltip, Wipe } from '@adecore/ui';
|
|
3
|
+
import { formatNumber } from '@adecore/ui/format';
|
|
2
4
|
import clsx from 'clsx';
|
|
5
|
+
import { Box } from 'lucide-react';
|
|
3
6
|
import { createContext, useContext, useId, useState } from 'react';
|
|
4
7
|
import { useTranslation } from 'react-i18next';
|
|
5
|
-
import { Box } from 'lucide-react';
|
|
6
|
-
import { ErrorBoundary, Icon, Pill, PreviewCard, Tooltip, Wipe } from '@adecore/ui';
|
|
7
|
-
import { formatNumber } from '@adecore/ui/format';
|
|
8
8
|
import { useChatHost } from '../../../../host.js';
|
|
9
|
-
import {
|
|
9
|
+
import { useHostAttachmentUrl } from '../../../../host-hooks.js';
|
|
10
10
|
import { CodeStreamingContext } from '../../code-streaming.js';
|
|
11
|
+
import { CodeBlock } from '../../CodeBlock.js';
|
|
12
|
+
import { DisplayImage } from '../../DisplayImage.js';
|
|
11
13
|
import { ImageGroup, ImageThumb } from '../../ImageView.js';
|
|
12
14
|
import { uiChildrenOf, uiNodeLabel, uiNodeText, uiUrlDomain } from '../node-text.js';
|
|
13
15
|
import { useTruncated } from '../use-truncated.js';
|
|
14
|
-
import { useHostAttachmentUrl } from '../../../../host-hooks.js';
|
|
15
|
-
import { DisplayImage } from '../../DisplayImage.js';
|
|
16
16
|
// The number of every source by its node id, which the list counts in its own order.
|
|
17
17
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
18
18
|
const SourceNumbers = createContext(new Map());
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Button, Icon, KeyValueList, Pill, ScrollArea, Tooltip } from '@adecore/ui';
|
|
3
|
+
import { formatBytes, formatDuration, formatMoment, formatNumber, formatPercent, formatRounded } from '@adecore/ui/format';
|
|
3
4
|
import clsx from 'clsx';
|
|
4
|
-
import { useTranslation } from 'react-i18next';
|
|
5
5
|
import { ArrowDown, ArrowRight, ArrowUp } from 'lucide-react';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { createContext, useContext } from 'react';
|
|
7
|
+
import { useTranslation } from 'react-i18next';
|
|
8
8
|
import { useBlockLocal } from '../block-local.js';
|
|
9
9
|
import { uiChildrenOf, uiWithUnit } from '../node-text.js';
|
|
10
10
|
import { isNumericColumn, UI_TABLE_ROWS, uiTableCell, uiTableColumns } from '../table-data.js';
|
|
@@ -471,7 +471,7 @@ function Cell(t0) {
|
|
|
471
471
|
* arrive one by one while the block streams, without animation; past fifty a person asks for the rest.
|
|
472
472
|
*/
|
|
473
473
|
export function TableRenderer(t0) {
|
|
474
|
-
const $ = _c(
|
|
474
|
+
const $ = _c(41);
|
|
475
475
|
const {
|
|
476
476
|
node,
|
|
477
477
|
context
|
|
@@ -480,6 +480,7 @@ export function TableRenderer(t0) {
|
|
|
480
480
|
t
|
|
481
481
|
} = useTranslation("agent-chat");
|
|
482
482
|
const [all, setAll] = useBlockLocal(context, node.id, _temp);
|
|
483
|
+
let T0;
|
|
483
484
|
let rows;
|
|
484
485
|
let t1;
|
|
485
486
|
let t2;
|
|
@@ -488,48 +489,53 @@ export function TableRenderer(t0) {
|
|
|
488
489
|
let t5;
|
|
489
490
|
let t6;
|
|
490
491
|
let t7;
|
|
492
|
+
let t8;
|
|
493
|
+
let t9;
|
|
491
494
|
if ($[0] !== all || $[1] !== context || $[2] !== node || $[3] !== t) {
|
|
492
|
-
|
|
495
|
+
t9 = Symbol.for("react.early_return_sentinel");
|
|
493
496
|
bb0: {
|
|
494
497
|
const columns = uiTableColumns(node);
|
|
495
498
|
if (columns.length === 0) {
|
|
496
|
-
let
|
|
497
|
-
if ($[
|
|
498
|
-
|
|
499
|
+
let t10;
|
|
500
|
+
if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
|
|
501
|
+
t10 = {
|
|
499
502
|
kind: "failed"
|
|
500
503
|
};
|
|
501
|
-
$[
|
|
504
|
+
$[15] = t10;
|
|
502
505
|
} else {
|
|
503
|
-
|
|
506
|
+
t10 = $[15];
|
|
504
507
|
}
|
|
505
|
-
let
|
|
506
|
-
if ($[
|
|
507
|
-
|
|
508
|
+
let t11;
|
|
509
|
+
if ($[16] !== node.fallback) {
|
|
510
|
+
t11 = /*#__PURE__*/_jsx(UiFallbackPart, {
|
|
508
511
|
fallback: node.fallback,
|
|
509
|
-
problem:
|
|
512
|
+
problem: t10
|
|
510
513
|
});
|
|
511
|
-
$[
|
|
512
|
-
$[
|
|
514
|
+
$[16] = node.fallback;
|
|
515
|
+
$[17] = t11;
|
|
513
516
|
} else {
|
|
514
|
-
|
|
517
|
+
t11 = $[17];
|
|
515
518
|
}
|
|
516
|
-
|
|
519
|
+
t9 = t11;
|
|
517
520
|
break bb0;
|
|
518
521
|
}
|
|
519
522
|
({
|
|
520
523
|
rows
|
|
521
524
|
} = node.props);
|
|
522
525
|
const shown = all ? rows : rows.slice(0, UI_TABLE_ROWS);
|
|
523
|
-
|
|
524
|
-
|
|
526
|
+
t8 = "flex flex-col items-start gap-1.5";
|
|
527
|
+
T0 = ScrollArea;
|
|
528
|
+
t5 = "both";
|
|
529
|
+
t6 = "chat-ui-flat max-h-80 w-full rounded-xl bg-ui-tile";
|
|
530
|
+
t7 = "chat-ui-flat px-1.5 pb-1.5";
|
|
525
531
|
t2 = t("blocks.table.label", {
|
|
526
532
|
columns: columns.map(_temp2).join(", ")
|
|
527
533
|
});
|
|
528
|
-
if ($[
|
|
534
|
+
if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
|
|
529
535
|
t3 = clsx("w-full border-separate border-spacing-0 text-xs tabular-nums", "[&_tbody_tr:first-child_td:first-child]:rounded-tl-lg [&_tbody_tr:first-child_td:last-child]:rounded-tr-lg", "[&_tbody_tr:last-child_td:first-child]:rounded-bl-lg [&_tbody_tr:last-child_td:last-child]:rounded-br-lg");
|
|
530
|
-
$[
|
|
536
|
+
$[18] = t3;
|
|
531
537
|
} else {
|
|
532
|
-
t3 = $[
|
|
538
|
+
t3 = $[18];
|
|
533
539
|
}
|
|
534
540
|
t4 = /*#__PURE__*/_jsx("thead", {
|
|
535
541
|
className: "sticky top-0 z-1 bg-ui-tile",
|
|
@@ -552,67 +558,78 @@ export function TableRenderer(t0) {
|
|
|
552
558
|
$[1] = context;
|
|
553
559
|
$[2] = node;
|
|
554
560
|
$[3] = t;
|
|
555
|
-
$[4] =
|
|
556
|
-
$[5] =
|
|
557
|
-
$[6] =
|
|
558
|
-
$[7] =
|
|
559
|
-
$[8] =
|
|
560
|
-
$[9] =
|
|
561
|
-
$[10] =
|
|
562
|
-
$[11] =
|
|
561
|
+
$[4] = T0;
|
|
562
|
+
$[5] = rows;
|
|
563
|
+
$[6] = t1;
|
|
564
|
+
$[7] = t2;
|
|
565
|
+
$[8] = t3;
|
|
566
|
+
$[9] = t4;
|
|
567
|
+
$[10] = t5;
|
|
568
|
+
$[11] = t6;
|
|
569
|
+
$[12] = t7;
|
|
570
|
+
$[13] = t8;
|
|
571
|
+
$[14] = t9;
|
|
563
572
|
} else {
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
573
|
+
T0 = $[4];
|
|
574
|
+
rows = $[5];
|
|
575
|
+
t1 = $[6];
|
|
576
|
+
t2 = $[7];
|
|
577
|
+
t3 = $[8];
|
|
578
|
+
t4 = $[9];
|
|
579
|
+
t5 = $[10];
|
|
580
|
+
t6 = $[11];
|
|
581
|
+
t7 = $[12];
|
|
582
|
+
t8 = $[13];
|
|
583
|
+
t9 = $[14];
|
|
572
584
|
}
|
|
573
|
-
if (
|
|
574
|
-
return
|
|
585
|
+
if (t9 !== Symbol.for("react.early_return_sentinel")) {
|
|
586
|
+
return t9;
|
|
575
587
|
}
|
|
576
|
-
let
|
|
577
|
-
if ($[
|
|
578
|
-
|
|
588
|
+
let t10;
|
|
589
|
+
if ($[19] !== t1) {
|
|
590
|
+
t10 = /*#__PURE__*/_jsx("tbody", {
|
|
579
591
|
children: t1
|
|
580
592
|
});
|
|
581
|
-
$[
|
|
582
|
-
$[
|
|
593
|
+
$[19] = t1;
|
|
594
|
+
$[20] = t10;
|
|
583
595
|
} else {
|
|
584
|
-
|
|
596
|
+
t10 = $[20];
|
|
585
597
|
}
|
|
586
|
-
let
|
|
587
|
-
if ($[
|
|
588
|
-
|
|
598
|
+
let t11;
|
|
599
|
+
if ($[21] !== t10 || $[22] !== t2 || $[23] !== t3 || $[24] !== t4) {
|
|
600
|
+
t11 = /*#__PURE__*/_jsxs("table", {
|
|
589
601
|
"aria-label": t2,
|
|
590
602
|
className: t3,
|
|
591
|
-
children: [t4,
|
|
603
|
+
children: [t4, t10]
|
|
592
604
|
});
|
|
593
|
-
$[
|
|
594
|
-
$[
|
|
595
|
-
$[
|
|
596
|
-
$[
|
|
597
|
-
$[
|
|
605
|
+
$[21] = t10;
|
|
606
|
+
$[22] = t2;
|
|
607
|
+
$[23] = t3;
|
|
608
|
+
$[24] = t4;
|
|
609
|
+
$[25] = t11;
|
|
598
610
|
} else {
|
|
599
|
-
|
|
611
|
+
t11 = $[25];
|
|
600
612
|
}
|
|
601
|
-
let
|
|
602
|
-
if ($[
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
613
|
+
let t12;
|
|
614
|
+
if ($[26] !== T0 || $[27] !== t11 || $[28] !== t5 || $[29] !== t6 || $[30] !== t7) {
|
|
615
|
+
t12 = /*#__PURE__*/_jsx(T0, {
|
|
616
|
+
axis: t5,
|
|
617
|
+
className: t6,
|
|
618
|
+
viewportClassName: t7,
|
|
619
|
+
children: t11
|
|
606
620
|
});
|
|
607
|
-
$[
|
|
608
|
-
$[
|
|
609
|
-
$[
|
|
621
|
+
$[26] = T0;
|
|
622
|
+
$[27] = t11;
|
|
623
|
+
$[28] = t5;
|
|
624
|
+
$[29] = t6;
|
|
625
|
+
$[30] = t7;
|
|
626
|
+
$[31] = t12;
|
|
610
627
|
} else {
|
|
611
|
-
|
|
628
|
+
t12 = $[31];
|
|
612
629
|
}
|
|
613
|
-
let
|
|
614
|
-
if ($[
|
|
615
|
-
|
|
630
|
+
let t13;
|
|
631
|
+
if ($[32] !== all || $[33] !== rows || $[34] !== setAll || $[35] !== t) {
|
|
632
|
+
t13 = !all && rows.length > UI_TABLE_ROWS && /*#__PURE__*/_jsx(Button, {
|
|
616
633
|
size: "xs",
|
|
617
634
|
variant: "secondary",
|
|
618
635
|
onClick: () => setAll(true),
|
|
@@ -620,28 +637,28 @@ export function TableRenderer(t0) {
|
|
|
620
637
|
total: formatNumber(rows.length)
|
|
621
638
|
})
|
|
622
639
|
});
|
|
623
|
-
$[
|
|
624
|
-
$[
|
|
625
|
-
$[
|
|
626
|
-
$[
|
|
627
|
-
$[
|
|
640
|
+
$[32] = all;
|
|
641
|
+
$[33] = rows;
|
|
642
|
+
$[34] = setAll;
|
|
643
|
+
$[35] = t;
|
|
644
|
+
$[36] = t13;
|
|
628
645
|
} else {
|
|
629
|
-
|
|
646
|
+
t13 = $[36];
|
|
630
647
|
}
|
|
631
|
-
let
|
|
632
|
-
if ($[
|
|
633
|
-
|
|
634
|
-
className:
|
|
635
|
-
children: [
|
|
648
|
+
let t14;
|
|
649
|
+
if ($[37] !== t12 || $[38] !== t13 || $[39] !== t8) {
|
|
650
|
+
t14 = /*#__PURE__*/_jsxs("div", {
|
|
651
|
+
className: t8,
|
|
652
|
+
children: [t12, t13]
|
|
636
653
|
});
|
|
637
|
-
$[
|
|
638
|
-
$[
|
|
639
|
-
$[
|
|
640
|
-
$[
|
|
654
|
+
$[37] = t12;
|
|
655
|
+
$[38] = t13;
|
|
656
|
+
$[39] = t8;
|
|
657
|
+
$[40] = t14;
|
|
641
658
|
} else {
|
|
642
|
-
|
|
659
|
+
t14 = $[40];
|
|
643
660
|
}
|
|
644
|
-
return
|
|
661
|
+
return t14;
|
|
645
662
|
}
|
|
646
663
|
function _temp3(column_0) {
|
|
647
664
|
return /*#__PURE__*/_jsx("th", {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
import { createContext, useContext, useId } from 'react';
|
|
3
|
-
import clsx from 'clsx';
|
|
4
|
-
import { useTranslation } from 'react-i18next';
|
|
5
2
|
import { Button, Checkbox, Input, Segmented, Select, Slider, Switch, Tooltip } from '@adecore/ui';
|
|
6
3
|
import { formatNumber } from '@adecore/ui/format';
|
|
4
|
+
import clsx from 'clsx';
|
|
5
|
+
import { createContext, useContext, useId } from 'react';
|
|
6
|
+
import { useTranslation } from 'react-i18next';
|
|
7
7
|
import { uiChildrenOf, uiNodeLabel, uiOwnLabel, uiWithUnit } from '../node-text.js';
|
|
8
8
|
import { useTruncated } from '../use-truncated.js';
|
|
9
9
|
import { bindingOf, PENDING } from './binding.js';
|