@tangle-network/ui 11.8.0 → 11.10.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/CHANGELOG.md +28 -0
- package/README.md +14 -0
- package/dist/auth.js +3 -2
- package/dist/chat.js +10 -9
- package/dist/{chunk-WUQDUBJG.js → chunk-3XXBZL53.js} +7 -1
- package/dist/{chunk-MKTSMWVD.js → chunk-42PAH5D2.js} +4 -1
- package/dist/{chunk-LDLOJKPC.js → chunk-55WHV7SS.js} +49 -30
- package/dist/{chunk-3M7BPSSW.js → chunk-BEBXZPHW.js} +4 -4
- package/dist/{chunk-X53RZSX6.js → chunk-C5WF4WMV.js} +12 -6
- package/dist/{chunk-NWECTSOH.js → chunk-HMAPIH7L.js} +9 -3
- package/dist/{chunk-QGTIBEPX.js → chunk-K5XFRUS4.js} +9 -3
- package/dist/{chunk-NKDZ7GZE.js → chunk-KFQGHD73.js} +8 -2
- package/dist/{chunk-GYPQXTJU.js → chunk-M3QZK62R.js} +5 -2
- package/dist/{chunk-P5F43A65.js → chunk-OL5GYLHV.js} +3 -2
- package/dist/{chunk-Q7ZR6LSD.js → chunk-QGFYBNSO.js} +2 -2
- package/dist/{chunk-KNYSKNZX.js → chunk-R7B3UWPF.js} +2 -2
- package/dist/{chunk-Q56BYXQF.js → chunk-R7SUY4E3.js} +8 -4
- package/dist/chunk-WKWBTL2V.js +15 -0
- package/dist/{chunk-BWOUSEHM.js → chunk-X7CU776B.js} +1 -1
- package/dist/{chunk-OXZRCXJK.js → chunk-YU4E5J2N.js} +3 -3
- package/dist/{chunk-XGOWUDDW.js → chunk-YZ6AK25N.js} +20 -9
- package/dist/document-editor-pane-QHDOBA43.js +13 -0
- package/dist/editor.js +5 -4
- package/dist/files.js +5 -4
- package/dist/hooks.js +7 -6
- package/dist/index.d.ts +2 -1
- package/dist/index.js +28 -16
- package/dist/markdown.d.ts +4 -1
- package/dist/markdown.js +3 -2
- package/dist/openui.js +6 -5
- package/dist/primitives.d.ts +2 -0
- package/dist/primitives.js +6 -5
- package/dist/run.js +10 -9
- package/dist/sdk-hooks.js +7 -6
- package/dist/tool-previews.js +3 -2
- package/dist/utils.d.ts +54 -1
- package/dist/utils.js +13 -1
- package/package.json +3 -3
- package/src/auth/auth.tsx +5 -1
- package/src/chat/agent-timeline.tsx +6 -1
- package/src/chat/chat-container.tsx +2 -1
- package/src/editor/document-editor-pane.test.tsx +3 -1
- package/src/editor/document-editor-pane.tsx +5 -1
- package/src/editor/markdown-document-editor.test.tsx +9 -4
- package/src/files/file-artifact-pane.tsx +3 -2
- package/src/files/file-preview.tsx +3 -1
- package/src/files/file-tabs.tsx +9 -2
- package/src/lib/focus.ts +63 -0
- package/src/markdown/code-block.tsx +5 -1
- package/src/markdown/markdown.test.tsx +26 -2
- package/src/markdown/markdown.tsx +5 -2
- package/src/primitives/badge.tsx +2 -1
- package/src/primitives/button.tsx +2 -1
- package/src/primitives/card.tsx +1 -2
- package/src/primitives/dialog.tsx +7 -1
- package/src/primitives/input.tsx +15 -14
- package/src/primitives/segmented-control.tsx +5 -3
- package/src/primitives/select.tsx +3 -1
- package/src/primitives/switch.tsx +3 -1
- package/src/primitives/tabs.tsx +6 -4
- package/src/primitives/terminal-display.tsx +6 -8
- package/src/primitives/toast.tsx +5 -1
- package/src/tool-previews/command-preview.tsx +5 -1
- package/src/tool-previews/web-search-preview.tsx +2 -1
- package/src/utils/index.ts +7 -0
- package/dist/document-editor-pane-A3JURPW5.js +0 -12
- /package/dist/{chunk-XGKULLYE.js → chunk-SNLR2AEA.js} +0 -0
package/src/primitives/toast.tsx
CHANGED
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
X,
|
|
10
10
|
} from "lucide-react";
|
|
11
11
|
import * as React from "react";
|
|
12
|
+
import { focusRing } from "../lib/focus";
|
|
12
13
|
import { cn } from "../lib/utils";
|
|
13
14
|
|
|
14
15
|
const toastVariants = cva(
|
|
@@ -76,7 +77,10 @@ function ToastComponent({
|
|
|
76
77
|
<button
|
|
77
78
|
type="button"
|
|
78
79
|
onClick={() => onDismiss(id)}
|
|
79
|
-
className=
|
|
80
|
+
className={cn(
|
|
81
|
+
"shrink-0 rounded-md p-1 opacity-70 transition-[opacity,box-shadow] hover:opacity-100 focus-visible:opacity-100",
|
|
82
|
+
focusRing,
|
|
83
|
+
)}
|
|
80
84
|
aria-label="Dismiss notification"
|
|
81
85
|
>
|
|
82
86
|
<X className="h-4 w-4" />
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
ChevronRight,
|
|
6
6
|
Loader2,
|
|
7
7
|
} from "lucide-react";
|
|
8
|
+
import { focusRing } from "../lib/focus";
|
|
8
9
|
import { cn } from "../lib/utils";
|
|
9
10
|
import type { ToolPart } from "../types/parts";
|
|
10
11
|
import { PreviewCard, PreviewError, PreviewLoading } from "./preview-primitives";
|
|
@@ -76,7 +77,10 @@ export const CommandPreview = memo(({ part }: CommandPreviewProps) => {
|
|
|
76
77
|
>
|
|
77
78
|
<button
|
|
78
79
|
onClick={() => setExpanded((value) => !value)}
|
|
79
|
-
className=
|
|
80
|
+
className={cn(
|
|
81
|
+
"flex w-full items-center gap-2 rounded-[var(--radius-md)] border border-border bg-muted px-3 py-2 text-left transition-colors hover:border-[var(--border-strong)] hover:bg-accent/45",
|
|
82
|
+
focusRing,
|
|
83
|
+
)}
|
|
80
84
|
>
|
|
81
85
|
<code className="min-w-0 flex-1 truncate text-xs font-mono text-foreground">
|
|
82
86
|
{command}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { memo, useMemo } from "react";
|
|
2
2
|
import { Globe } from "lucide-react";
|
|
3
|
+
import { focusRing } from "../lib/focus";
|
|
3
4
|
import type { ToolPart } from "../types/parts";
|
|
4
5
|
import { PreviewCard, PreviewEmpty, PreviewError, PreviewLoading } from "./preview-primitives";
|
|
5
6
|
|
|
@@ -94,7 +95,7 @@ export const WebSearchPreview = memo(({ part }: WebSearchPreviewProps) => {
|
|
|
94
95
|
href={result.url}
|
|
95
96
|
target="_blank"
|
|
96
97
|
rel="noreferrer"
|
|
97
|
-
className=
|
|
98
|
+
className={`block rounded-[var(--radius-md)] border border-border bg-muted/55 px-3 py-3 transition-colors hover:border-[var(--border-strong)] hover:bg-accent/50 ${focusRing}`}
|
|
98
99
|
>
|
|
99
100
|
<div className="text-sm font-medium text-foreground">
|
|
100
101
|
{result.title}
|
package/src/utils/index.ts
CHANGED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {
|
|
3
|
-
DocumentEditorPane
|
|
4
|
-
} from "./chunk-QGTIBEPX.js";
|
|
5
|
-
import "./chunk-Q56BYXQF.js";
|
|
6
|
-
import "./chunk-LTEKI7YJ.js";
|
|
7
|
-
import "./chunk-P5F43A65.js";
|
|
8
|
-
import "./chunk-WUQDUBJG.js";
|
|
9
|
-
import "./chunk-RQHJBTEU.js";
|
|
10
|
-
export {
|
|
11
|
-
DocumentEditorPane
|
|
12
|
-
};
|
|
File without changes
|