@deepagents/react-genai 7.1.1 → 7.1.3
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/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1658 -1771
- package/dist/index.js.map +1 -1
- package/dist/lib/chat/agent-context.d.ts +6 -6
- package/dist/lib/chat/agent-context.d.ts.map +1 -1
- package/dist/lib/chat/chat-manager.d.ts +12 -25
- package/dist/lib/chat/chat-manager.d.ts.map +1 -1
- package/dist/lib/chat/chat.d.ts +21 -8
- package/dist/lib/chat/chat.d.ts.map +1 -1
- package/dist/lib/chat/citations.d.ts +1 -1
- package/dist/lib/chat/client-tool-output.d.ts +4 -4
- package/dist/lib/chat/client-tool-output.d.ts.map +1 -1
- package/dist/lib/chat/markdown-paragraph.d.ts +1 -1
- package/dist/lib/chat/message-parts.d.ts +2 -2
- package/dist/lib/chat/message-parts.d.ts.map +1 -1
- package/dist/lib/chat/read-only-transport.d.ts +1 -1
- package/dist/lib/chat/tool-abort.d.ts +1 -1
- package/dist/lib/chat/tools-schema.d.ts +1 -1
- package/dist/lib/chat/trajectory/IndexProgressSegment.d.ts +2 -2
- package/dist/lib/chat/trajectory/IndexProgressSegment.d.ts.map +1 -1
- package/dist/lib/chat/trajectory/compact-disclosure.d.ts.map +1 -1
- package/dist/lib/chat/trajectory/messages-context.d.ts +4 -4
- package/dist/lib/chat/trajectory/nested-trajectory.d.ts +1 -1
- package/dist/lib/chat/trajectory/nested-trajectory.d.ts.map +1 -1
- package/dist/lib/chat/trajectory/segments/index.d.ts +6 -6
- package/dist/lib/chat/trajectory/segments/index.d.ts.map +1 -1
- package/dist/lib/chat/trajectory/tool-label.d.ts +3 -3
- package/dist/lib/chat/trajectory/tool-label.d.ts.map +1 -1
- package/dist/lib/chat/trajectory/trajectories/collapsible-disclosure.d.ts +1 -1
- package/dist/lib/chat/trajectory/trajectories/collapsible-disclosure.d.ts.map +1 -1
- package/dist/lib/chat/trajectory/trajectories/compact-messages.d.ts +5 -5
- package/dist/lib/chat/trajectory/trajectories/compact-messages.d.ts.map +1 -1
- package/dist/lib/chat/trajectory/trajectories/message-actions.d.ts +1 -1
- package/dist/lib/chat/trajectory/trajectories/message-actions.d.ts.map +1 -1
- package/dist/lib/chat/trajectory/trajectories/messages-shell.d.ts +2 -2
- package/dist/lib/chat/trajectory/trajectories/messages-shell.d.ts.map +1 -1
- package/dist/lib/chat/trajectory/trajectories/messages.d.ts +2 -2
- package/dist/lib/chat/trajectory/trajectories/messages.d.ts.map +1 -1
- package/dist/lib/chat/trajectory/trajectories/thinking-hint.d.ts +1 -1
- package/dist/lib/chat/trajectory/trajectories/timeline-item.d.ts +1 -1
- package/dist/lib/chat/trajectory/trajectories/timeline-item.d.ts.map +1 -1
- package/dist/lib/chat/trajectory/trajectories/timeline.d.ts +3 -3
- package/dist/lib/chat/trajectory/trajectories/timeline.d.ts.map +1 -1
- package/dist/lib/chat/trajectory/trajectories/timelined-messages.d.ts +2 -2
- package/dist/lib/chat/trajectory/trajectories/timelined-messages.d.ts.map +1 -1
- package/dist/lib/chat/trajectory/trajectories/user-message.d.ts +2 -2
- package/dist/lib/chat/trajectory/trajectories/user-message.d.ts.map +1 -1
- package/dist/lib/chat/trajectory/trajectory-segments.d.ts +1 -1
- package/dist/lib/chat/zukhruf-chat-transport.d.ts +3 -3
- package/dist/lib/components/ChatAction.d.ts +1 -1
- package/dist/lib/components/ChatAction.d.ts.map +1 -1
- package/dist/lib/components/ChatComposer.d.ts +4 -4
- package/dist/lib/components/ChatComposer.d.ts.map +1 -1
- package/dist/lib/components/ChatTextarea.d.ts +1 -1
- package/dist/lib/components/ChatTextarea.d.ts.map +1 -1
- package/dist/lib/components/CitationPill.d.ts +1 -1
- package/dist/lib/components/InteractiveResponse.d.ts +2 -2
- package/dist/lib/components/PendingToolInput.d.ts +3 -3
- package/dist/lib/components/PendingToolInput.d.ts.map +1 -1
- package/dist/lib/components/SubmitButton.d.ts +1 -1
- package/dist/lib/components/SubmitButton.d.ts.map +1 -1
- package/dist/lib/components/Tip/TipLine.d.ts.map +1 -1
- package/dist/lib/components/Tip/TipProvider.d.ts +1 -2
- package/dist/lib/components/queue.d.ts +1 -1
- package/dist/lib/components/queue.d.ts.map +1 -1
- package/dist/lib/components/text-shimmer.d.ts +1 -1
- package/dist/lib/components/text-shimmer.d.ts.map +1 -1
- package/dist/lib/components/tool-debug.d.ts +1 -1
- package/dist/lib/components/tool-error.d.ts +2 -2
- package/dist/lib/components/tool-error.d.ts.map +1 -1
- package/dist/lib/copy/assistant-snapshot.d.ts +2 -2
- package/dist/lib/copy/assistant-snapshot.d.ts.map +1 -1
- package/dist/lib/copy/snapshot-context.d.ts +1 -1
- package/dist/lib/copy/snapshot-render.d.ts +2 -2
- package/dist/lib/copy/use-copy-element-as-image.d.ts +2 -2
- package/dist/lib/dynamic-ui/error-boundary.d.ts.map +1 -1
- package/dist/lib/dynamic-ui/safe-scope.d.ts.map +1 -1
- package/dist/lib/elements/ChainOfThought.d.ts +9 -9
- package/dist/lib/elements/ChainOfThought.d.ts.map +1 -1
- package/dist/lib/elements/CodeBlock.d.ts +2 -2
- package/dist/lib/elements/CodeBlock.d.ts.map +1 -1
- package/dist/lib/elements/Conversation.d.ts +2 -2
- package/dist/lib/elements/Conversation.d.ts.map +1 -1
- package/dist/lib/elements/Message.d.ts +5 -5
- package/dist/lib/elements/Message.d.ts.map +1 -1
- package/dist/lib/elements/PromptInput.d.ts +3 -3
- package/dist/lib/elements/PromptInput.d.ts.map +1 -1
- package/dist/lib/elements/Response.d.ts +1 -1
- package/dist/lib/elements/Response.d.ts.map +1 -1
- package/dist/lib/elements/Task.d.ts +2 -2
- package/dist/lib/elements/Task.d.ts.map +1 -1
- package/dist/lib/elements/Tool.d.ts +3 -3
- package/dist/lib/elements/Tool.d.ts.map +1 -1
- package/dist/lib/elements/ToolDebug.d.ts +1 -1
- package/dist/lib/elements/interactive-element.d.ts +2 -2
- package/dist/lib/elements/table-panel-extension.d.ts +3 -3
- package/dist/lib/elements/table-panel-extension.d.ts.map +1 -1
- package/dist/lib/hooks/use-auto-resize-textarea.d.ts +1 -1
- package/dist/lib/renderers/render-part.d.ts +1 -1
- package/dist/lib/renderers/render-part.d.ts.map +1 -1
- package/dist/lib/tools/helpers.d.ts +3 -3
- package/dist/lib/tools/registry.d.ts +4 -4
- package/dist/lib/ui/ArrowUpIcon.d.ts +2 -2
- package/dist/lib/ui/ArrowUpIcon.d.ts.map +1 -1
- package/dist/lib/ui/TablePanel.d.ts.map +1 -1
- package/dist/lib/ui/UnicodeSpinner.d.ts.map +1 -1
- package/package.json +11 -8
- package/dist/lib/ui/TheButton.d.ts +0 -106
- package/dist/lib/ui/TheButton.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepagents/react-genai",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -22,22 +22,25 @@
|
|
|
22
22
|
"exports": {
|
|
23
23
|
"./package.json": "./package.json",
|
|
24
24
|
".": {
|
|
25
|
+
"@deepagents/source": "./src/index.ts",
|
|
25
26
|
"types": "./dist/index.d.ts",
|
|
26
27
|
"import": "./dist/index.js",
|
|
27
28
|
"default": "./dist/index.js"
|
|
28
29
|
}
|
|
29
30
|
},
|
|
30
31
|
"dependencies": {
|
|
31
|
-
"@ai-sdk/react": "4.0.
|
|
32
|
-
"@deepagents/context": "7.1.
|
|
33
|
-
"@deepagents/elements": "7.1.
|
|
34
|
-
"@deepagents/react-formatters": "7.1.
|
|
35
|
-
"@deepagents/react-input": "7.1.
|
|
36
|
-
"@deepagents/react-shadcn": "7.1.1",
|
|
32
|
+
"@ai-sdk/react": "4.0.151",
|
|
33
|
+
"@deepagents/context": "7.1.3",
|
|
34
|
+
"@deepagents/elements": "7.1.3",
|
|
35
|
+
"@deepagents/react-formatters": "7.1.3",
|
|
36
|
+
"@deepagents/react-input": "7.1.3",
|
|
37
37
|
"@radix-ui/react-use-controllable-state": "^1.2.2",
|
|
38
38
|
"@types/mdast": "^4.0.4",
|
|
39
|
-
"
|
|
39
|
+
"@zukhruf/shadcn": "^0.3.31",
|
|
40
|
+
"@zukhruf/ui": "^0.3.31",
|
|
41
|
+
"ai": "7.0.147",
|
|
40
42
|
"class-variance-authority": "^0.7.1",
|
|
43
|
+
"cn": "^0.4.0",
|
|
41
44
|
"html-to-image": "1.11.13",
|
|
42
45
|
"lodash-es": "^4.18.1",
|
|
43
46
|
"lucide-react": "^0.575.0",
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { type LucideIcon } from 'lucide-react';
|
|
2
|
-
import { Button } from '@deepagents/react-shadcn';
|
|
3
|
-
interface TheButtonProps extends React.ComponentProps<typeof Button> {
|
|
4
|
-
/**
|
|
5
|
-
* Shows a loading spinner after the delay period.
|
|
6
|
-
* Disables the button while loading.
|
|
7
|
-
*/
|
|
8
|
-
loading?: boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Icon to display before the button text.
|
|
11
|
-
* Can be a React node or a Lucide icon component.
|
|
12
|
-
*/
|
|
13
|
-
icon?: React.ReactNode | LucideIcon;
|
|
14
|
-
/**
|
|
15
|
-
* Delay in milliseconds before showing the loading spinner.
|
|
16
|
-
* @default 300
|
|
17
|
-
*/
|
|
18
|
-
delay?: number;
|
|
19
|
-
/**
|
|
20
|
-
* Tooltip text shown on hover. When provided with `size="icon"`,
|
|
21
|
-
* creates an icon-only button with tooltip.
|
|
22
|
-
*/
|
|
23
|
-
tooltip?: string;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* A versatile button component with loading state and tooltip support.
|
|
27
|
-
*
|
|
28
|
-
* Supports all standard Button variants and sizes from shadcn/ui,
|
|
29
|
-
* plus additional features for loading states and icon-only buttons.
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
* // Basic button
|
|
33
|
-
* <TheButton>Click me</TheButton>
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
* // Primary button with loading state
|
|
37
|
-
* <TheButton loading={isSubmitting}>
|
|
38
|
-
* Submit
|
|
39
|
-
* </TheButton>
|
|
40
|
-
*
|
|
41
|
-
* @example
|
|
42
|
-
* // Button with icon
|
|
43
|
-
* <TheButton icon={<Save className="size-4" />}>
|
|
44
|
-
* Save Changes
|
|
45
|
-
* </TheButton>
|
|
46
|
-
*
|
|
47
|
-
* @example
|
|
48
|
-
* // Using Lucide icon directly
|
|
49
|
-
* <TheButton icon={Trash}>
|
|
50
|
-
* Delete
|
|
51
|
-
* </TheButton>
|
|
52
|
-
*
|
|
53
|
-
* @example
|
|
54
|
-
* // Icon-only button with tooltip
|
|
55
|
-
* <TheButton
|
|
56
|
-
* size="icon"
|
|
57
|
-
* variant="outline"
|
|
58
|
-
* icon={Settings}
|
|
59
|
-
* tooltip="Open settings"
|
|
60
|
-
* />
|
|
61
|
-
*
|
|
62
|
-
* @example
|
|
63
|
-
* // Destructive variant
|
|
64
|
-
* <TheButton variant="destructive" icon={Trash}>
|
|
65
|
-
* Delete Item
|
|
66
|
-
* </TheButton>
|
|
67
|
-
*
|
|
68
|
-
* @example
|
|
69
|
-
* // Ghost variant (for toolbars, menus)
|
|
70
|
-
* <TheButton variant="ghost" size="sm">
|
|
71
|
-
* Cancel
|
|
72
|
-
* </TheButton>
|
|
73
|
-
*
|
|
74
|
-
* @example
|
|
75
|
-
* // Secondary variant
|
|
76
|
-
* <TheButton variant="secondary">
|
|
77
|
-
* Secondary Action
|
|
78
|
-
* </TheButton>
|
|
79
|
-
*
|
|
80
|
-
* @example
|
|
81
|
-
* // Link variant
|
|
82
|
-
* <TheButton variant="link">
|
|
83
|
-
* Learn more
|
|
84
|
-
* </TheButton>
|
|
85
|
-
*
|
|
86
|
-
* @example
|
|
87
|
-
* // Outline variant with custom delay
|
|
88
|
-
* <TheButton variant="outline" loading={isPending} delay={500}>
|
|
89
|
-
* Processing...
|
|
90
|
-
* </TheButton>
|
|
91
|
-
*
|
|
92
|
-
* @example
|
|
93
|
-
* // Small size
|
|
94
|
-
* <TheButton size="sm" icon={Plus}>
|
|
95
|
-
* Add Item
|
|
96
|
-
* </TheButton>
|
|
97
|
-
*
|
|
98
|
-
* @example
|
|
99
|
-
* // Large size
|
|
100
|
-
* <TheButton size="lg">
|
|
101
|
-
* Get Started
|
|
102
|
-
* </TheButton>
|
|
103
|
-
*/
|
|
104
|
-
export declare function TheButton({ loading, disabled, children, delay, icon, tooltip, size, ...props }: TheButtonProps): import("react").JSX.Element;
|
|
105
|
-
export {};
|
|
106
|
-
//# sourceMappingURL=TheButton.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TheButton.d.ts","sourceRoot":"","sources":["../../../src/lib/ui/TheButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAGxD,OAAO,EACL,MAAM,EAKP,MAAM,0BAA0B,CAAC;AAElC,UAAU,cAAe,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC;IAClE;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,UAAU,CAAC;IACpC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAiJD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8EG;AACH,wBAAgB,SAAS,CAAC,EACxB,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,KAAW,EACX,IAAI,EACJ,OAAO,EACP,IAAI,EACJ,GAAG,KAAK,EACT,EAAE,cAAc,+BAsBhB"}
|