@deepagents/react-genai 7.0.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.
Files changed (173) hide show
  1. package/dist/index.d.ts +38 -0
  2. package/dist/index.d.ts.map +1 -0
  3. package/dist/index.js +7085 -0
  4. package/dist/index.js.map +1 -0
  5. package/dist/lib/chat/agent-context.d.ts +49 -0
  6. package/dist/lib/chat/agent-context.d.ts.map +1 -0
  7. package/dist/lib/chat/chat-manager.d.ts +92 -0
  8. package/dist/lib/chat/chat-manager.d.ts.map +1 -0
  9. package/dist/lib/chat/chat.d.ts +51 -0
  10. package/dist/lib/chat/chat.d.ts.map +1 -0
  11. package/dist/lib/chat/citations.d.ts +18 -0
  12. package/dist/lib/chat/citations.d.ts.map +1 -0
  13. package/dist/lib/chat/client-tool-output.d.ts +11 -0
  14. package/dist/lib/chat/client-tool-output.d.ts.map +1 -0
  15. package/dist/lib/chat/markdown-paragraph.d.ts +5 -0
  16. package/dist/lib/chat/markdown-paragraph.d.ts.map +1 -0
  17. package/dist/lib/chat/message-parts.d.ts +22 -0
  18. package/dist/lib/chat/message-parts.d.ts.map +1 -0
  19. package/dist/lib/chat/prefill.d.ts +8 -0
  20. package/dist/lib/chat/prefill.d.ts.map +1 -0
  21. package/dist/lib/chat/read-only-transport.d.ts +12 -0
  22. package/dist/lib/chat/read-only-transport.d.ts.map +1 -0
  23. package/dist/lib/chat/tool-abort.d.ts +5 -0
  24. package/dist/lib/chat/tool-abort.d.ts.map +1 -0
  25. package/dist/lib/chat/tools-schema.d.ts +8 -0
  26. package/dist/lib/chat/tools-schema.d.ts.map +1 -0
  27. package/dist/lib/chat/trajectory/IndexProgressSegment.d.ts +46 -0
  28. package/dist/lib/chat/trajectory/IndexProgressSegment.d.ts.map +1 -0
  29. package/dist/lib/chat/trajectory/compact-disclosure.d.ts +5 -0
  30. package/dist/lib/chat/trajectory/compact-disclosure.d.ts.map +1 -0
  31. package/dist/lib/chat/trajectory/index.d.ts +14 -0
  32. package/dist/lib/chat/trajectory/index.d.ts.map +1 -0
  33. package/dist/lib/chat/trajectory/messages-context.d.ts +18 -0
  34. package/dist/lib/chat/trajectory/messages-context.d.ts.map +1 -0
  35. package/dist/lib/chat/trajectory/nested-trajectory.d.ts +16 -0
  36. package/dist/lib/chat/trajectory/nested-trajectory.d.ts.map +1 -0
  37. package/dist/lib/chat/trajectory/segments/index.d.ts +72 -0
  38. package/dist/lib/chat/trajectory/segments/index.d.ts.map +1 -0
  39. package/dist/lib/chat/trajectory/tool-label.d.ts +24 -0
  40. package/dist/lib/chat/trajectory/tool-label.d.ts.map +1 -0
  41. package/dist/lib/chat/trajectory/trajectories/collapsible-disclosure.d.ts +12 -0
  42. package/dist/lib/chat/trajectory/trajectories/collapsible-disclosure.d.ts.map +1 -0
  43. package/dist/lib/chat/trajectory/trajectories/compact-messages.d.ts +103 -0
  44. package/dist/lib/chat/trajectory/trajectories/compact-messages.d.ts.map +1 -0
  45. package/dist/lib/chat/trajectory/trajectories/message-actions.d.ts +15 -0
  46. package/dist/lib/chat/trajectory/trajectories/message-actions.d.ts.map +1 -0
  47. package/dist/lib/chat/trajectory/trajectories/messages-error.d.ts +5 -0
  48. package/dist/lib/chat/trajectory/trajectories/messages-error.d.ts.map +1 -0
  49. package/dist/lib/chat/trajectory/trajectories/messages-shell.d.ts +20 -0
  50. package/dist/lib/chat/trajectory/trajectories/messages-shell.d.ts.map +1 -0
  51. package/dist/lib/chat/trajectory/trajectories/messages.d.ts +23 -0
  52. package/dist/lib/chat/trajectory/trajectories/messages.d.ts.map +1 -0
  53. package/dist/lib/chat/trajectory/trajectories/thinking-hint.d.ts +3 -0
  54. package/dist/lib/chat/trajectory/trajectories/thinking-hint.d.ts.map +1 -0
  55. package/dist/lib/chat/trajectory/trajectories/timeline-dot.d.ts +4 -0
  56. package/dist/lib/chat/trajectory/trajectories/timeline-dot.d.ts.map +1 -0
  57. package/dist/lib/chat/trajectory/trajectories/timeline-item.d.ts +7 -0
  58. package/dist/lib/chat/trajectory/trajectories/timeline-item.d.ts.map +1 -0
  59. package/dist/lib/chat/trajectory/trajectories/timeline.d.ts +23 -0
  60. package/dist/lib/chat/trajectory/trajectories/timeline.d.ts.map +1 -0
  61. package/dist/lib/chat/trajectory/trajectories/timelined-messages.d.ts +22 -0
  62. package/dist/lib/chat/trajectory/trajectories/timelined-messages.d.ts.map +1 -0
  63. package/dist/lib/chat/trajectory/trajectories/trajectory-thinking.d.ts +2 -0
  64. package/dist/lib/chat/trajectory/trajectories/trajectory-thinking.d.ts.map +1 -0
  65. package/dist/lib/chat/trajectory/trajectories/user-message.d.ts +11 -0
  66. package/dist/lib/chat/trajectory/trajectories/user-message.d.ts.map +1 -0
  67. package/dist/lib/chat/trajectory/trajectory-segments.d.ts +37 -0
  68. package/dist/lib/chat/trajectory/trajectory-segments.d.ts.map +1 -0
  69. package/dist/lib/chat/usage.d.ts +18 -0
  70. package/dist/lib/chat/usage.d.ts.map +1 -0
  71. package/dist/lib/chat/zukhruf-chat-transport.d.ts +51 -0
  72. package/dist/lib/chat/zukhruf-chat-transport.d.ts.map +1 -0
  73. package/dist/lib/components/ChatAction.d.ts +8 -0
  74. package/dist/lib/components/ChatAction.d.ts.map +1 -0
  75. package/dist/lib/components/ChatComposer.d.ts +24 -0
  76. package/dist/lib/components/ChatComposer.d.ts.map +1 -0
  77. package/dist/lib/components/ChatTextarea.d.ts +7 -0
  78. package/dist/lib/components/ChatTextarea.d.ts.map +1 -0
  79. package/dist/lib/components/CitationPill.d.ts +6 -0
  80. package/dist/lib/components/CitationPill.d.ts.map +1 -0
  81. package/dist/lib/components/InteractiveResponse.d.ts +8 -0
  82. package/dist/lib/components/InteractiveResponse.d.ts.map +1 -0
  83. package/dist/lib/components/PendingToolInput.d.ts +12 -0
  84. package/dist/lib/components/PendingToolInput.d.ts.map +1 -0
  85. package/dist/lib/components/SubmitButton.d.ts +8 -0
  86. package/dist/lib/components/SubmitButton.d.ts.map +1 -0
  87. package/dist/lib/components/Tip/TipLine.d.ts +4 -0
  88. package/dist/lib/components/Tip/TipLine.d.ts.map +1 -0
  89. package/dist/lib/components/Tip/TipProvider.d.ts +21 -0
  90. package/dist/lib/components/Tip/TipProvider.d.ts.map +1 -0
  91. package/dist/lib/components/Tip/index.d.ts +4 -0
  92. package/dist/lib/components/Tip/index.d.ts.map +1 -0
  93. package/dist/lib/components/queue.d.ts +29 -0
  94. package/dist/lib/components/queue.d.ts.map +1 -0
  95. package/dist/lib/components/text-shimmer.d.ts +11 -0
  96. package/dist/lib/components/text-shimmer.d.ts.map +1 -0
  97. package/dist/lib/components/tool-debug.d.ts +8 -0
  98. package/dist/lib/components/tool-debug.d.ts.map +1 -0
  99. package/dist/lib/components/tool-error.d.ts +11 -0
  100. package/dist/lib/components/tool-error.d.ts.map +1 -0
  101. package/dist/lib/copy/assistant-snapshot.d.ts +10 -0
  102. package/dist/lib/copy/assistant-snapshot.d.ts.map +1 -0
  103. package/dist/lib/copy/copy-image.d.ts +19 -0
  104. package/dist/lib/copy/copy-image.d.ts.map +1 -0
  105. package/dist/lib/copy/snapshot-context.d.ts +9 -0
  106. package/dist/lib/copy/snapshot-context.d.ts.map +1 -0
  107. package/dist/lib/copy/snapshot-render.d.ts +20 -0
  108. package/dist/lib/copy/snapshot-render.d.ts.map +1 -0
  109. package/dist/lib/copy/use-copy-element-as-image.d.ts +21 -0
  110. package/dist/lib/copy/use-copy-element-as-image.d.ts.map +1 -0
  111. package/dist/lib/dynamic-ui/DynamicRenderer.d.ts +8 -0
  112. package/dist/lib/dynamic-ui/DynamicRenderer.d.ts.map +1 -0
  113. package/dist/lib/dynamic-ui/error-boundary.d.ts +23 -0
  114. package/dist/lib/dynamic-ui/error-boundary.d.ts.map +1 -0
  115. package/dist/lib/dynamic-ui/index.d.ts +8 -0
  116. package/dist/lib/dynamic-ui/index.d.ts.map +1 -0
  117. package/dist/lib/dynamic-ui/safe-scope.d.ts +4 -0
  118. package/dist/lib/dynamic-ui/safe-scope.d.ts.map +1 -0
  119. package/dist/lib/dynamic-ui/transpiler.d.ts +10 -0
  120. package/dist/lib/dynamic-ui/transpiler.d.ts.map +1 -0
  121. package/dist/lib/elements/ChainOfThought.d.ts +28 -0
  122. package/dist/lib/elements/ChainOfThought.d.ts.map +1 -0
  123. package/dist/lib/elements/CodeBlock.d.ts +21 -0
  124. package/dist/lib/elements/CodeBlock.d.ts.map +1 -0
  125. package/dist/lib/elements/Conversation.d.ts +16 -0
  126. package/dist/lib/elements/Conversation.d.ts.map +1 -0
  127. package/dist/lib/elements/Message.d.ts +20 -0
  128. package/dist/lib/elements/Message.d.ts.map +1 -0
  129. package/dist/lib/elements/PromptInput.d.ts +184 -0
  130. package/dist/lib/elements/PromptInput.d.ts.map +1 -0
  131. package/dist/lib/elements/Response.d.ts +5 -0
  132. package/dist/lib/elements/Response.d.ts.map +1 -0
  133. package/dist/lib/elements/Task.d.ts +15 -0
  134. package/dist/lib/elements/Task.d.ts.map +1 -0
  135. package/dist/lib/elements/Tool.d.ts +24 -0
  136. package/dist/lib/elements/Tool.d.ts.map +1 -0
  137. package/dist/lib/elements/ToolDebug.d.ts +8 -0
  138. package/dist/lib/elements/ToolDebug.d.ts.map +1 -0
  139. package/dist/lib/elements/interactive-element.d.ts +17 -0
  140. package/dist/lib/elements/interactive-element.d.ts.map +1 -0
  141. package/dist/lib/elements/normalize-streamdown-children.d.ts +2 -0
  142. package/dist/lib/elements/normalize-streamdown-children.d.ts.map +1 -0
  143. package/dist/lib/elements/table-panel-extension.d.ts +26 -0
  144. package/dist/lib/elements/table-panel-extension.d.ts.map +1 -0
  145. package/dist/lib/hooks/use-async-generator.d.ts +10 -0
  146. package/dist/lib/hooks/use-async-generator.d.ts.map +1 -0
  147. package/dist/lib/hooks/use-auto-resize-textarea.d.ts +11 -0
  148. package/dist/lib/hooks/use-auto-resize-textarea.d.ts.map +1 -0
  149. package/dist/lib/hooks/use-element-event.d.ts +2 -0
  150. package/dist/lib/hooks/use-element-event.d.ts.map +1 -0
  151. package/dist/lib/hooks/use-keyboard.d.ts +8 -0
  152. package/dist/lib/hooks/use-keyboard.d.ts.map +1 -0
  153. package/dist/lib/renderers/icon-picker.d.ts +16 -0
  154. package/dist/lib/renderers/icon-picker.d.ts.map +1 -0
  155. package/dist/lib/renderers/render-part.d.ts +5 -0
  156. package/dist/lib/renderers/render-part.d.ts.map +1 -0
  157. package/dist/lib/tools/helpers.d.ts +15 -0
  158. package/dist/lib/tools/helpers.d.ts.map +1 -0
  159. package/dist/lib/tools/index.d.ts +3 -0
  160. package/dist/lib/tools/index.d.ts.map +1 -0
  161. package/dist/lib/tools/registry.d.ts +37 -0
  162. package/dist/lib/tools/registry.d.ts.map +1 -0
  163. package/dist/lib/ui/ArrowUpIcon.d.ts +11 -0
  164. package/dist/lib/ui/ArrowUpIcon.d.ts.map +1 -0
  165. package/dist/lib/ui/TablePanel.d.ts +17 -0
  166. package/dist/lib/ui/TablePanel.d.ts.map +1 -0
  167. package/dist/lib/ui/TheButton.d.ts +106 -0
  168. package/dist/lib/ui/TheButton.d.ts.map +1 -0
  169. package/dist/lib/ui/UnicodeSpinner.d.ts +25 -0
  170. package/dist/lib/ui/UnicodeSpinner.d.ts.map +1 -0
  171. package/dist/lib/ui/use-copy-feedback.d.ts +2 -0
  172. package/dist/lib/ui/use-copy-feedback.d.ts.map +1 -0
  173. package/package.json +87 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Task.d.ts","sourceRoot":"","sources":["../../../src/lib/elements/Task.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EAEnB,MAAM,0BAA0B,CAAC;AAElC,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEtD,eAAO,MAAM,YAAY,GAAI,mCAI1B,iBAAiB,gCAUnB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAElD,eAAO,MAAM,QAAQ,GAAI,mCAAmC,aAAa,gCAIxE,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,cAAc,CAAC,OAAO,WAAW,CAAC,CAAC;AAE3D,eAAO,MAAM,IAAI,GAAI,sCAIlB,SAAS,gCASX,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,OAAO,kBAAkB,CAAC,GAAG;IACzE,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,0CAKzB,gBAAgB,gCAUlB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEzE,eAAO,MAAM,WAAW,GAAI,mCAIzB,gBAAgB,gCAYlB,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { ToolUIPart } from 'ai';
2
+ import { ComponentProps } from 'react';
3
+ import { Collapsible, CollapsibleContent } from '@deepagents/react-shadcn';
4
+ export type ToolProps = ComponentProps<typeof Collapsible>;
5
+ export declare const Tool: ({ className, ...props }: ToolProps) => import("react").JSX.Element;
6
+ export type ToolHeaderProps = {
7
+ title?: string;
8
+ type: ToolUIPart['type'];
9
+ state: ToolUIPart['state'];
10
+ className?: string;
11
+ };
12
+ export declare const ToolHeader: ({ className, title, type, state, ...props }: ToolHeaderProps) => import("react").JSX.Element;
13
+ export type ToolContentProps = ComponentProps<typeof CollapsibleContent>;
14
+ export declare const ToolContent: ({ className, ...props }: ToolContentProps) => import("react").JSX.Element;
15
+ export type ToolInputProps = ComponentProps<'div'> & {
16
+ input: ToolUIPart['input'];
17
+ };
18
+ export declare const ToolInput: ({ className, input, ...props }: ToolInputProps) => import("react").JSX.Element;
19
+ export type ToolOutputProps = ComponentProps<'div'> & {
20
+ output: ToolUIPart['output'];
21
+ errorText: ToolUIPart['errorText'];
22
+ };
23
+ export declare const ToolOutput: ({ className, output, errorText, ...props }: ToolOutputProps) => import("react").JSX.Element | null;
24
+ //# sourceMappingURL=Tool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tool.d.ts","sourceRoot":"","sources":["../../../src/lib/elements/Tool.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AASrC,OAAO,KAAK,EAAE,cAAc,EAAa,MAAM,OAAO,CAAC;AAGvD,OAAO,EAEL,WAAW,EACX,kBAAkB,EAGnB,MAAM,0BAA0B,CAAC;AAIlC,MAAM,MAAM,SAAS,GAAG,cAAc,CAAC,OAAO,WAAW,CAAC,CAAC;AAE3D,eAAO,MAAM,IAAI,GAAI,yBAAyB,SAAS,gCAKtD,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;IACzB,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AA2CF,eAAO,MAAM,UAAU,GAAI,6CAMxB,eAAe,gCAiBjB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEzE,eAAO,MAAM,WAAW,GAAI,yBAAyB,gBAAgB,gCAQpE,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IACnD,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,gCAAgC,cAAc,gCASvE,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IACpD,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;IAC7B,SAAS,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;CACpC,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,4CAKxB,eAAe,uCAiCjB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { DynamicToolUIPart, ToolUIPart } from 'ai';
2
+ export declare function ToolDebug({ part }: {
3
+ part: ToolUIPart;
4
+ }): import("react").JSX.Element;
5
+ export declare function DynamicToolDebug({ part }: {
6
+ part: DynamicToolUIPart;
7
+ }): import("react").JSX.Element;
8
+ //# sourceMappingURL=ToolDebug.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToolDebug.d.ts","sourceRoot":"","sources":["../../../src/lib/elements/ToolDebug.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,UAAU,EAAE,MAAM,IAAI,CAAC;AAW7D,wBAAgB,SAAS,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,+BAmBvD;AACD,wBAAgB,gBAAgB,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,iBAAiB,CAAA;CAAE,+BAmBrE"}
@@ -0,0 +1,17 @@
1
+ import { ComponentType } from 'react';
2
+ import { ElementDescriptor } from '@deepagents/elements';
3
+ export type ToolTip = {
4
+ text: string;
5
+ cooldown: 'frequent' | 'moderate' | 'rare';
6
+ visibility?: 'always' | 'before-interaction' | 'after-interaction';
7
+ };
8
+ /**
9
+ * A platform-neutral {@link ElementDescriptor} paired with the React
10
+ * component that renders it. Only the descriptor projection crosses the
11
+ * network (see `toDescriptor`); `component` and `tips` stay client-side.
12
+ */
13
+ export interface GenAIInteractiveElement extends ElementDescriptor {
14
+ component: ComponentType<any>;
15
+ tips?: ToolTip[];
16
+ }
17
+ //# sourceMappingURL=interactive-element.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interactive-element.d.ts","sourceRoot":"","sources":["../../../src/lib/elements/interactive-element.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,MAAM,MAAM,OAAO,GAAG;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,UAAU,GAAG,UAAU,GAAG,MAAM,CAAC;IAC3C,UAAU,CAAC,EAAE,QAAQ,GAAG,oBAAoB,GAAG,mBAAmB,CAAC;CACpE,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,uBAAwB,SAAQ,iBAAiB;IAEhE,SAAS,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;IAC9B,IAAI,CAAC,EAAE,OAAO,EAAE,CAAC;CAClB"}
@@ -0,0 +1,2 @@
1
+ export declare function normalizeStreamdownChildren(children: string | undefined, tagNames?: string[]): string | undefined;
2
+ //# sourceMappingURL=normalize-streamdown-children.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalize-streamdown-children.d.ts","sourceRoot":"","sources":["../../../src/lib/elements/normalize-streamdown-children.ts"],"names":[],"mappings":"AAaA,wBAAgB,2BAA2B,CACzC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,QAAQ,CAAC,EAAE,MAAM,EAAE,sBAqBpB"}
@@ -0,0 +1,26 @@
1
+ import { Table } from 'mdast';
2
+ import { ComponentProps } from 'react';
3
+ import { Streamdown } from 'streamdown';
4
+ import * as React from 'react';
5
+ export type TablePanelStreamdownProps = Omit<ComponentProps<typeof Streamdown>, 'parseMarkdownIntoBlocksFn'> & {
6
+ tableActions?: React.ReactNode;
7
+ };
8
+ interface TablePanelNode {
9
+ type: 'tablePanel';
10
+ data: {
11
+ hName: string;
12
+ hProperties?: Record<string, string>;
13
+ };
14
+ children: [Table];
15
+ }
16
+ declare module 'mdast' {
17
+ interface BlockContentMap {
18
+ tablePanel: TablePanelNode;
19
+ }
20
+ interface RootContentMap {
21
+ tablePanel: TablePanelNode;
22
+ }
23
+ }
24
+ export declare function TablePanelStreamdown({ allowedTags, BlockComponent, children, components, controls, dir, mode, remarkPlugins, tableActions, ...props }: TablePanelStreamdownProps): React.JSX.Element;
25
+ export {};
26
+ //# sourceMappingURL=table-panel-extension.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-panel-extension.d.ts","sourceRoot":"","sources":["../../../src/lib/elements/table-panel-extension.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,KAAK,EAAE,MAAM,OAAO,CAAC;AAGzC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,cAAc,EAAW,MAAM,OAAO,CAAC;AAIrD,OAAO,EAKL,UAAU,EAMX,MAAM,YAAY,CAAC;AASpB,MAAM,MAAM,yBAAyB,GAAG,IAAI,CAC1C,cAAc,CAAC,OAAO,UAAU,CAAC,EACjC,2BAA2B,CAC5B,GAAG;IACF,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAChC,CAAC;AAaF,UAAU,cAAc;IACtB,IAAI,EAAE,YAAY,CAAC;IACnB,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;KACtC,CAAC;IACF,QAAQ,EAAE,CAAC,KAAK,CAAC,CAAC;CACnB;AAED,OAAO,QAAQ,OAAO,CAAC;IACrB,UAAU,eAAe;QACvB,UAAU,EAAE,cAAc,CAAC;KAC5B;IAED,UAAU,cAAc;QACtB,UAAU,EAAE,cAAc,CAAC;KAC5B;CACF;AAwRD,wBAAgB,oBAAoB,CAAC,EACnC,WAAW,EACX,cAAc,EACd,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,GAAG,EACH,IAAI,EACJ,aAAa,EACb,YAAY,EACZ,GAAG,KAAK,EACT,EAAE,yBAAyB,qBA0D3B"}
@@ -0,0 +1,10 @@
1
+ export type OnClickYieldResult = {
2
+ loading: boolean;
3
+ error?: unknown;
4
+ };
5
+ export declare function useAsyncGenerator(): {
6
+ execute: (generator: AsyncGenerator<OnClickYieldResult>) => Promise<void>;
7
+ loading: boolean;
8
+ error?: unknown;
9
+ };
10
+ //# sourceMappingURL=use-async-generator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-async-generator.d.ts","sourceRoot":"","sources":["../../../src/lib/hooks/use-async-generator.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,wBAAgB,iBAAiB;yBAMG,cAAc,CAAC,kBAAkB,CAAC;aAV3D,OAAO;YACR,OAAO;EAuBhB"}
@@ -0,0 +1,11 @@
1
+ interface UseAutoResizeTextareaProps {
2
+ minHeight: number;
3
+ maxHeight?: number;
4
+ value?: string;
5
+ }
6
+ export declare function useAutoResizeTextarea({ minHeight, maxHeight, value, }: UseAutoResizeTextareaProps): {
7
+ textareaRef: import('react').RefObject<HTMLTextAreaElement | null>;
8
+ adjustHeight: (reset?: boolean) => void;
9
+ };
10
+ export {};
11
+ //# sourceMappingURL=use-auto-resize-textarea.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-auto-resize-textarea.d.ts","sourceRoot":"","sources":["../../../src/lib/hooks/use-auto-resize-textarea.ts"],"names":[],"mappings":"AAEA,UAAU,0BAA0B;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,qBAAqB,CAAC,EACpC,SAAS,EACT,SAAS,EACT,KAAK,GACN,EAAE,0BAA0B;;2BAIhB,OAAO;EAuCnB"}
@@ -0,0 +1,2 @@
1
+ export declare function useEventListener(eventName: string, handler: EventListener, selector: string): void;
2
+ //# sourceMappingURL=use-element-event.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-element-event.d.ts","sourceRoot":"","sources":["../../../src/lib/hooks/use-element-event.ts"],"names":[],"mappings":"AAEA,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,aAAa,EACtB,QAAQ,EAAE,MAAM,QAUjB"}
@@ -0,0 +1,8 @@
1
+ type KeyHandler = (e: KeyboardEvent) => void;
2
+ interface UseKeyboardOptions {
3
+ enabled?: boolean;
4
+ handlers: Record<string, KeyHandler>;
5
+ }
6
+ export declare function useKeyboard({ enabled, handlers }: UseKeyboardOptions): void;
7
+ export {};
8
+ //# sourceMappingURL=use-keyboard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-keyboard.d.ts","sourceRoot":"","sources":["../../../src/lib/hooks/use-keyboard.ts"],"names":[],"mappings":"AAEA,KAAK,UAAU,GAAG,CAAC,CAAC,EAAE,aAAa,KAAK,IAAI,CAAC;AAE7C,UAAU,kBAAkB;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;CACtC;AAgBD,wBAAgB,WAAW,CAAC,EAAE,OAAc,EAAE,QAAQ,EAAE,EAAE,kBAAkB,QAsB3E"}
@@ -0,0 +1,16 @@
1
+ import { default as React } from 'react';
2
+ type Icons = {
3
+ name: string;
4
+ friendly_name: string;
5
+ Component: React.FC<React.ComponentPropsWithoutRef<'svg'>>;
6
+ };
7
+ export declare const useIconPicker: () => {
8
+ search: string;
9
+ setSearch: React.Dispatch<React.SetStateAction<string>>;
10
+ icons: Icons[];
11
+ };
12
+ export declare const IconRenderer: ({ icon, ...rest }: {
13
+ icon: string;
14
+ } & React.ComponentPropsWithoutRef<"svg">) => React.JSX.Element | null;
15
+ export {};
16
+ //# sourceMappingURL=icon-picker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-picker.d.ts","sourceRoot":"","sources":["../../../src/lib/renderers/icon-picker.tsx"],"names":[],"mappings":"AACA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAEjD,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC,CAAC;CAC5D,CAAC;AAEF,eAAO,MAAM,aAAa,QAAO;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACxD,KAAK,EAAE,KAAK,EAAE,CAAC;CAiChB,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,mBAG1B;IACD,IAAI,EAAE,MAAM,CAAC;CACd,GAAG,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,6BAUxC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { ToolUIPart } from 'ai';
2
+ export declare function RenderPart({ part }: {
3
+ part: ToolUIPart;
4
+ }): import("react").JSX.Element;
5
+ //# sourceMappingURL=render-part.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"render-part.d.ts","sourceRoot":"","sources":["../../../src/lib/renderers/render-part.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,IAAI,CAAC;AA6DrC,wBAAgB,UAAU,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,+BAiCxD"}
@@ -0,0 +1,15 @@
1
+ import { ToolUIPart, UIMessage } from 'ai';
2
+ import { ComponentRegistry } from './registry.ts';
3
+ /**
4
+ * A subagent call is identified by the `toolMetadata` the backend attaches to
5
+ * the tool definition, never by tool name — so every tool built by the subagent
6
+ * factory renders as a chip without the UI enumerating them.
7
+ */
8
+ export declare function isSubagentPart(part: UIMessage['parts'][number]): boolean;
9
+ export declare function subagentDisplayName(part: ToolUIPart): string;
10
+ export declare function resolveToolEntry(part: Pick<UIMessage['parts'][number], 'type'>, registry: ComponentRegistry | undefined): {
11
+ toolKey: string;
12
+ toolEntry: import('./registry.ts').StaticTool | import('./registry.ts').ComponentTool<import('zod').ZodType<unknown, unknown, import('zod/v4/core').$ZodTypeInternals<unknown, unknown>>> | undefined;
13
+ };
14
+ export declare function isActiveClientInputTool(toolEntry: ComponentRegistry[string] | undefined, state: ToolUIPart['state'] | undefined): boolean;
15
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/lib/tools/helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAGhD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAEvD;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,WAE9D;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,UAAU,UAGnD;AAED,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,EAC9C,QAAQ,EAAE,iBAAiB,GAAG,SAAS;;;EAKxC;AAED,wBAAgB,uBAAuB,CACrC,SAAS,EAAE,iBAAiB,CAAC,MAAM,CAAC,GAAG,SAAS,EAChD,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC,GAAG,SAAS,GACrC,OAAO,CAMT"}
@@ -0,0 +1,3 @@
1
+ export * from './helpers.ts';
2
+ export * from './registry.ts';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/tools/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
@@ -0,0 +1,37 @@
1
+ import { ToolUIPart } from 'ai';
2
+ import { ComponentType } from 'react';
3
+ import { ZodTypeAny } from 'zod';
4
+ import { ToolTip } from '../elements/interactive-element.ts';
5
+ export type ToolLabel = {
6
+ name: string;
7
+ icon?: ComponentType<{
8
+ className?: string;
9
+ }>;
10
+ actions?: ComponentType<{
11
+ part: ToolUIPart;
12
+ }>;
13
+ args?: Record<string, string | undefined>;
14
+ isError?: boolean;
15
+ detail?: string;
16
+ };
17
+ export type StaticTool = {
18
+ component: ComponentType<{
19
+ part: ToolUIPart;
20
+ }>;
21
+ label?: (part: ToolUIPart) => ToolLabel;
22
+ tips?: ToolTip[];
23
+ static: true;
24
+ };
25
+ export type ComponentTool<TSchema extends ZodTypeAny = ZodTypeAny> = {
26
+ component: ComponentType<{
27
+ part: ToolUIPart;
28
+ }>;
29
+ label?: (part: ToolUIPart) => ToolLabel;
30
+ inputSchema: TSchema;
31
+ description: string;
32
+ requiresUserInput?: boolean;
33
+ tips?: ToolTip[];
34
+ static?: false;
35
+ };
36
+ export type ComponentRegistry = Record<string, ComponentTool | StaticTool>;
37
+ //# sourceMappingURL=registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/lib/tools/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AACrC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAEtC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC;AAElE,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,aAAa,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC7C,OAAO,CAAC,EAAE,aAAa,CAAC;QAAE,IAAI,EAAE,UAAU,CAAA;KAAE,CAAC,CAAC;IAC9C,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;IAC1C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,SAAS,EAAE,aAAa,CAAC;QAAE,IAAI,EAAE,UAAU,CAAA;KAAE,CAAC,CAAC;IAC/C,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,SAAS,CAAC;IACxC,IAAI,CAAC,EAAE,OAAO,EAAE,CAAC;IACjB,MAAM,EAAE,IAAI,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,aAAa,CAAC,OAAO,SAAS,UAAU,GAAG,UAAU,IAAI;IACnE,SAAS,EAAE,aAAa,CAAC;QAAE,IAAI,EAAE,UAAU,CAAA;KAAE,CAAC,CAAC;IAC/C,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,SAAS,CAAC;IACxC,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,IAAI,CAAC,EAAE,OAAO,EAAE,CAAC;IACjB,MAAM,CAAC,EAAE,KAAK,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,aAAa,GAAG,UAAU,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { HTMLAttributes } from 'react';
2
+ export interface ArrowUpIconHandle {
3
+ startAnimation: () => void;
4
+ stopAnimation: () => void;
5
+ }
6
+ interface ArrowUpIconProps extends HTMLAttributes<HTMLDivElement> {
7
+ size?: number;
8
+ }
9
+ declare const ArrowUpIcon: import('react').ForwardRefExoticComponent<ArrowUpIconProps & import('react').RefAttributes<ArrowUpIconHandle>>;
10
+ export { ArrowUpIcon };
11
+ //# sourceMappingURL=ArrowUpIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ArrowUpIcon.d.ts","sourceRoot":"","sources":["../../../src/lib/ui/ArrowUpIcon.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAK5C,MAAM,WAAW,iBAAiB;IAChC,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B;AAED,UAAU,gBAAiB,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC/D,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAuBD,QAAA,MAAM,WAAW,gHAoEhB,CAAC;AAIF,OAAO,EAAE,WAAW,EAAE,CAAC"}
@@ -0,0 +1,17 @@
1
+ import * as React from 'react';
2
+ declare function TablePanelHeader({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
3
+ declare function TablePanelHeading({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
4
+ declare function TablePanelTitle({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
5
+ declare function TablePanelDescription({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
6
+ declare function TablePanelActions({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
7
+ declare function TablePanelContent({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
8
+ export declare const TablePanel: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>> & {
9
+ Header: typeof TablePanelHeader;
10
+ Heading: typeof TablePanelHeading;
11
+ Title: typeof TablePanelTitle;
12
+ Description: typeof TablePanelDescription;
13
+ Actions: typeof TablePanelActions;
14
+ Content: typeof TablePanelContent;
15
+ };
16
+ export {};
17
+ //# sourceMappingURL=TablePanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TablePanel.d.ts","sourceRoot":"","sources":["../../../src/lib/ui/TablePanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA+B/B,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAW7B;AAED,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAQ7B;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAW5E;AAED,iBAAS,qBAAqB,CAAC,EAC7B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAW7B;AAED,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAQ7B;AAED,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBAQ7B;AAED,eAAO,MAAM,UAAU;;;;;;;CAOrB,CAAC"}
@@ -0,0 +1,106 @@
1
+ import { 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
@@ -0,0 +1 @@
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;AAgJD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
@@ -0,0 +1,25 @@
1
+ declare const spinners: {
2
+ readonly braille: {
3
+ readonly frames: readonly ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"];
4
+ readonly interval: 80;
5
+ };
6
+ readonly pulse: {
7
+ readonly frames: readonly ["⠁", "⠉", "⠋", "⠛", "⠟", "⠿", "⡿", "⣿", "⡿", "⠿", "⠟", "⠛", "⠋", "⠉", "⠁", "⠀"];
8
+ readonly interval: 80;
9
+ };
10
+ readonly clock: {
11
+ readonly frames: readonly ["⠁", "⠈", "⠐", "⠠", "⢀", "⡀", "⠄", "⠂"];
12
+ readonly interval: 100;
13
+ };
14
+ readonly limerence: {
15
+ readonly frames: readonly ["⠁", "⠃", "⠇", "⡇", "⣇", "⣇", "⣆", "⣄", "⣀", "⢀", "⠀"];
16
+ readonly interval: 100;
17
+ };
18
+ };
19
+ type SpinnerVariant = keyof typeof spinners;
20
+ declare function UnicodeSpinner({ className, variant, ...props }: Omit<React.ComponentProps<'span'>, 'children'> & {
21
+ variant?: SpinnerVariant;
22
+ }): import("react").JSX.Element;
23
+ export { UnicodeSpinner };
24
+ export type { SpinnerVariant };
25
+ //# sourceMappingURL=UnicodeSpinner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UnicodeSpinner.d.ts","sourceRoot":"","sources":["../../../src/lib/ui/UnicodeSpinner.tsx"],"names":[],"mappings":"AAIA,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;CAkCJ,CAAC;AAEX,KAAK,cAAc,GAAG,MAAM,OAAO,QAAQ,CAAC;AAE5C,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,OAAmB,EACnB,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC,GAAG;IAClD,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B,+BAwBA;AAED,OAAO,EAAE,cAAc,EAAE,CAAC;AAC1B,YAAY,EAAE,cAAc,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function useCopyFeedback(timeout?: number): readonly [boolean, (value: string) => Promise<void>];
2
+ //# sourceMappingURL=use-copy-feedback.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-copy-feedback.d.ts","sourceRoot":"","sources":["../../../src/lib/ui/use-copy-feedback.ts"],"names":[],"mappings":"AAEA,wBAAgB,eAAe,CAAC,OAAO,SAAO,8BAUjB,MAAM,oBAQlC"}
package/package.json ADDED
@@ -0,0 +1,87 @@
1
+ {
2
+ "name": "@deepagents/react-genai",
3
+ "version": "7.0.0",
4
+ "license": "MIT",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/JanuaryLabs/deepagents",
8
+ "directory": "packages/react/genai"
9
+ },
10
+ "type": "module",
11
+ "main": "./dist/index.js",
12
+ "module": "./dist/index.js",
13
+ "types": "./dist/index.d.ts",
14
+ "files": [
15
+ "dist",
16
+ "!dist/spec/**",
17
+ "!**/*.tsbuildinfo"
18
+ ],
19
+ "publishConfig": {
20
+ "access": "public"
21
+ },
22
+ "exports": {
23
+ "./package.json": "./package.json",
24
+ ".": {
25
+ "types": "./dist/index.d.ts",
26
+ "import": "./dist/index.js",
27
+ "default": "./dist/index.js"
28
+ }
29
+ },
30
+ "dependencies": {
31
+ "@ai-sdk/react": "4.0.88",
32
+ "@deepagents/context": "7.0.0",
33
+ "@deepagents/elements": "7.0.0",
34
+ "@deepagents/react-formatters": "7.0.0",
35
+ "@deepagents/react-input": "7.0.0",
36
+ "@deepagents/react-shadcn": "7.0.0",
37
+ "@radix-ui/react-use-controllable-state": "^1.2.2",
38
+ "@types/mdast": "^4.0.4",
39
+ "ai": "7.0.85",
40
+ "class-variance-authority": "^0.7.1",
41
+ "html-to-image": "1.11.13",
42
+ "lodash-es": "^4.18.1",
43
+ "lucide-react": "^0.575.0",
44
+ "mdast-util-directive": "^3.1.0",
45
+ "mdast-util-to-string": "^4.0.0",
46
+ "motion": "^12.42.2",
47
+ "nanoid": "5.1.14",
48
+ "react-syntax-highlighter": "16.1.1",
49
+ "remark-directive": "^4.0.0",
50
+ "remark-gfm": "^4.0.1",
51
+ "remark-parse": "^11.0.0",
52
+ "streamdown": "^2.5.0",
53
+ "sucrase": "^3.35.0",
54
+ "unified": "^11.0.5",
55
+ "unist-util-visit": "^5.1.0",
56
+ "use-stick-to-bottom": "^1.1.3",
57
+ "zod": "^4.4.3"
58
+ },
59
+ "peerDependencies": {
60
+ "react": "19.2.8",
61
+ "react-dom": "19.2.8"
62
+ },
63
+ "devDependencies": {
64
+ "@rolldown/plugin-babel": "^0.2.3",
65
+ "@tailwindcss/vite": "^4.3.3",
66
+ "@tanstack/react-query": "^5.101.2",
67
+ "@testing-library/jest-dom": "^6.9.1",
68
+ "@testing-library/react": "^16.3.2",
69
+ "@testing-library/user-event": "^14.6.1",
70
+ "@types/lodash-es": "^4.17.12",
71
+ "@types/react": "19.2.18",
72
+ "@types/react-dom": "19.2.5",
73
+ "@types/react-syntax-highlighter": "^15.5.13",
74
+ "@vitejs/plugin-react": "^6.0.3",
75
+ "babel-plugin-react-compiler": "^1.0.0",
76
+ "happy-dom": "20.11.2",
77
+ "react": "19.2.8",
78
+ "react-dom": "19.2.8",
79
+ "typescript": "6.0.3",
80
+ "vite": "8.1.5",
81
+ "vite-plugin-dts": "~4.5.0",
82
+ "vitest": "4.1.10"
83
+ },
84
+ "engines": {
85
+ "node": ">=20"
86
+ }
87
+ }