@object-ui/plugin-chatbot 6.2.2 → 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 (94) hide show
  1. package/CHANGELOG.md +103 -0
  2. package/README.md +60 -4
  3. package/dist/{packages/plugin-chatbot/src/AiPendingActionsInbox.d.ts → AiPendingActionsInbox.d.ts} +17 -1
  4. package/dist/AiPendingActionsInbox.d.ts.map +1 -0
  5. package/dist/ChatbotEnhanced.d.ts +568 -0
  6. package/dist/ChatbotEnhanced.d.ts.map +1 -0
  7. package/dist/{packages/plugin-chatbot/src/FloatingChatbot.d.ts → FloatingChatbot.d.ts} +1 -1
  8. package/dist/FloatingChatbot.d.ts.map +1 -0
  9. package/dist/{packages/plugin-chatbot/src/FloatingChatbotPanel.d.ts → FloatingChatbotPanel.d.ts} +1 -1
  10. package/dist/FloatingChatbotPanel.d.ts.map +1 -0
  11. package/dist/{packages/plugin-chatbot/src/FloatingChatbotProvider.d.ts → FloatingChatbotProvider.d.ts} +1 -1
  12. package/dist/FloatingChatbotProvider.d.ts.map +1 -0
  13. package/dist/{packages/plugin-chatbot/src/FloatingChatbotTrigger.d.ts → FloatingChatbotTrigger.d.ts} +2 -1
  14. package/dist/FloatingChatbotTrigger.d.ts.map +1 -0
  15. package/dist/agentAliases.d.ts +57 -0
  16. package/dist/agentAliases.d.ts.map +1 -0
  17. package/dist/{packages/plugin-chatbot/src/elements → elements}/code-block.d.ts +2 -2
  18. package/dist/elements/code-block.d.ts.map +1 -0
  19. package/dist/{packages/plugin-chatbot/src/elements → elements}/conversation.d.ts +4 -4
  20. package/dist/elements/conversation.d.ts.map +1 -0
  21. package/dist/elements/index.d.ts.map +1 -0
  22. package/dist/{packages/plugin-chatbot/src/elements → elements}/loader.d.ts +1 -1
  23. package/dist/elements/loader.d.ts.map +1 -0
  24. package/dist/{packages/plugin-chatbot/src/elements → elements}/message.d.ts +14 -14
  25. package/dist/elements/message.d.ts.map +1 -0
  26. package/dist/{packages/plugin-chatbot/src/elements → elements}/prompt-input.d.ts +38 -37
  27. package/dist/elements/prompt-input.d.ts.map +1 -0
  28. package/dist/{packages/plugin-chatbot/src/elements → elements}/reasoning.d.ts +3 -3
  29. package/dist/elements/reasoning.d.ts.map +1 -0
  30. package/dist/{packages/plugin-chatbot/src/elements → elements}/shimmer.d.ts +2 -2
  31. package/dist/elements/shimmer.d.ts.map +1 -0
  32. package/dist/{packages/plugin-chatbot/src/elements → elements}/sources.d.ts +4 -4
  33. package/dist/elements/sources.d.ts.map +1 -0
  34. package/dist/{packages/plugin-chatbot/src/elements → elements}/suggestion.d.ts +2 -2
  35. package/dist/elements/suggestion.d.ts.map +1 -0
  36. package/dist/{packages/plugin-chatbot/src/elements → elements}/tool.d.ts +5 -5
  37. package/dist/elements/tool.d.ts.map +1 -0
  38. package/dist/{packages/plugin-chatbot/src/elements → elements}/ui/button-group.d.ts +3 -3
  39. package/dist/elements/ui/button-group.d.ts.map +1 -0
  40. package/dist/{packages/plugin-chatbot/src/elements → elements}/ui/input-group.d.ts +6 -6
  41. package/dist/elements/ui/input-group.d.ts.map +1 -0
  42. package/dist/index.d.ts +70 -2
  43. package/dist/index.d.ts.map +1 -0
  44. package/dist/index.js +2004 -987
  45. package/dist/index.umd.cjs +1 -1
  46. package/dist/mapMessages.d.ts +147 -0
  47. package/dist/mapMessages.d.ts.map +1 -0
  48. package/dist/renderer.d.ts.map +1 -0
  49. package/dist/{packages/plugin-chatbot/src/tool-display.d.ts → tool-display.d.ts} +23 -0
  50. package/dist/tool-display.d.ts.map +1 -0
  51. package/dist/{packages/plugin-chatbot/src/useAgents.d.ts → useAgents.d.ts} +28 -0
  52. package/dist/useAgents.d.ts.map +1 -0
  53. package/dist/useHitlInChat.d.ts.map +1 -0
  54. package/dist/{packages/plugin-chatbot/src/useObjectChat.d.ts → useObjectChat.d.ts} +37 -1
  55. package/dist/useObjectChat.d.ts.map +1 -0
  56. package/dist/usePendingActions.d.ts.map +1 -0
  57. package/dist/utils.d.ts.map +1 -0
  58. package/package.json +16 -16
  59. package/dist/packages/plugin-chatbot/src/AiPendingActionsInbox.d.ts.map +0 -1
  60. package/dist/packages/plugin-chatbot/src/ChatbotEnhanced.d.ts +0 -171
  61. package/dist/packages/plugin-chatbot/src/ChatbotEnhanced.d.ts.map +0 -1
  62. package/dist/packages/plugin-chatbot/src/FloatingChatbot.d.ts.map +0 -1
  63. package/dist/packages/plugin-chatbot/src/FloatingChatbotPanel.d.ts.map +0 -1
  64. package/dist/packages/plugin-chatbot/src/FloatingChatbotProvider.d.ts.map +0 -1
  65. package/dist/packages/plugin-chatbot/src/FloatingChatbotTrigger.d.ts.map +0 -1
  66. package/dist/packages/plugin-chatbot/src/elements/code-block.d.ts.map +0 -1
  67. package/dist/packages/plugin-chatbot/src/elements/conversation.d.ts.map +0 -1
  68. package/dist/packages/plugin-chatbot/src/elements/index.d.ts.map +0 -1
  69. package/dist/packages/plugin-chatbot/src/elements/loader.d.ts.map +0 -1
  70. package/dist/packages/plugin-chatbot/src/elements/message.d.ts.map +0 -1
  71. package/dist/packages/plugin-chatbot/src/elements/prompt-input.d.ts.map +0 -1
  72. package/dist/packages/plugin-chatbot/src/elements/reasoning.d.ts.map +0 -1
  73. package/dist/packages/plugin-chatbot/src/elements/shimmer.d.ts.map +0 -1
  74. package/dist/packages/plugin-chatbot/src/elements/sources.d.ts.map +0 -1
  75. package/dist/packages/plugin-chatbot/src/elements/suggestion.d.ts.map +0 -1
  76. package/dist/packages/plugin-chatbot/src/elements/tool.d.ts.map +0 -1
  77. package/dist/packages/plugin-chatbot/src/elements/ui/button-group.d.ts.map +0 -1
  78. package/dist/packages/plugin-chatbot/src/elements/ui/input-group.d.ts.map +0 -1
  79. package/dist/packages/plugin-chatbot/src/index.d.ts +0 -68
  80. package/dist/packages/plugin-chatbot/src/index.d.ts.map +0 -1
  81. package/dist/packages/plugin-chatbot/src/mapMessages.d.ts +0 -45
  82. package/dist/packages/plugin-chatbot/src/mapMessages.d.ts.map +0 -1
  83. package/dist/packages/plugin-chatbot/src/renderer.d.ts.map +0 -1
  84. package/dist/packages/plugin-chatbot/src/tool-display.d.ts.map +0 -1
  85. package/dist/packages/plugin-chatbot/src/useAgents.d.ts.map +0 -1
  86. package/dist/packages/plugin-chatbot/src/useHitlInChat.d.ts.map +0 -1
  87. package/dist/packages/plugin-chatbot/src/useObjectChat.d.ts.map +0 -1
  88. package/dist/packages/plugin-chatbot/src/usePendingActions.d.ts.map +0 -1
  89. package/dist/packages/plugin-chatbot/src/utils.d.ts.map +0 -1
  90. /package/dist/{packages/plugin-chatbot/src/elements → elements}/index.d.ts +0 -0
  91. /package/dist/{packages/plugin-chatbot/src/renderer.d.ts → renderer.d.ts} +0 -0
  92. /package/dist/{packages/plugin-chatbot/src/useHitlInChat.d.ts → useHitlInChat.d.ts} +0 -0
  93. /package/dist/{packages/plugin-chatbot/src/usePendingActions.d.ts → usePendingActions.d.ts} +0 -0
  94. /package/dist/{packages/plugin-chatbot/src/utils.d.ts → utils.d.ts} +0 -0
@@ -0,0 +1,57 @@
1
+ /**
2
+ * ObjectUI
3
+ * Copyright (c) 2024-present ObjectStack Inc.
4
+ *
5
+ * Agent alias resolution — the bridge between human-friendly console routes
6
+ * (`/ai/build`, `/ai/ask`) and the platform's built-in agent identifiers.
7
+ *
8
+ * The built-in agents are being renamed (Path A): `metadata_assistant`→`build`
9
+ * (the authoring "magic moment" agent) and `data_chat`→`ask` (the data-query
10
+ * agent). That rename spans three repos and rolls out gradually, so at any
11
+ * moment the live agent catalog (`GET /api/v1/ai/agents`) may expose EITHER the
12
+ * new id or the legacy one, and existing bookmarks/links may carry the legacy
13
+ * id directly.
14
+ *
15
+ * Every alias group lists equivalent names with the FRIENDLY (canonical URL)
16
+ * name first. Resolution always picks whichever member the live catalog
17
+ * actually serves, so one route works before, during, and after the rename —
18
+ * no hard cutover, no dead links. Custom user agents (`*.agent.ts`) are not in
19
+ * any group and route by their own name, unchanged.
20
+ */
21
+ /** Equivalent names per built-in agent, friendly (URL) name first. */
22
+ export declare const AGENT_ALIAS_GROUPS: readonly (readonly string[])[];
23
+ /**
24
+ * All names equivalent to `name` (including itself), friendly-first. Returns a
25
+ * singleton `[name]` for custom agents that belong to no group.
26
+ */
27
+ export declare function agentAliasGroup(name: string): readonly string[];
28
+ /**
29
+ * The preferred URL segment for an agent — the friendly alias for a built-in,
30
+ * otherwise the agent's own name. Use this to BUILD `/ai/:agent` links so they
31
+ * read nicely and stay stable across the rename.
32
+ */
33
+ export declare function agentRouteName(name: string): string;
34
+ /**
35
+ * Resolve a `/ai/:agent` route param to a concrete agent name that the catalog
36
+ * actually serves. Tries, in order: an exact catalog match → any alias-group
37
+ * sibling present in the catalog. Returns `undefined` when the param is not an
38
+ * agent at all (e.g. a legacy bare `/ai/:conversationId` link), letting callers
39
+ * distinguish an agent segment from a conversation id.
40
+ *
41
+ * @param param the first path segment after `/ai/`
42
+ * @param catalog agent names the backend currently exposes
43
+ */
44
+ export declare function resolveAgentParam(param: string | undefined, catalog: readonly string[]): string | undefined;
45
+ /**
46
+ * True when `name` is a KNOWN built-in agent identifier (a friendly name or a
47
+ * legacy id in an alias group: build/metadata_assistant, ask/data_chat) —
48
+ * regardless of whether the live catalog currently serves it. Lets a router
49
+ * tell "an agent that's simply not deployed here" (fall back to the default
50
+ * surface) apart from "a bare conversation id" (resolve its own agent).
51
+ */
52
+ export declare function isBuiltinAgentName(name: string | undefined): boolean;
53
+ /** True when `name` is the authoring/build agent (either `build` or `metadata_assistant`). */
54
+ export declare function isBuildAgent(name: string | undefined): boolean;
55
+ /** True when `name` is the data-query/ask agent (either `ask` or `data_chat`). */
56
+ export declare function isAskAgent(name: string | undefined): boolean;
57
+ //# sourceMappingURL=agentAliases.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agentAliases.d.ts","sourceRoot":"","sources":["../src/agentAliases.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,sEAAsE;AACtE,eAAO,MAAM,kBAAkB,EAAE,SAAS,CAAC,SAAS,MAAM,EAAE,CAAC,EAG5D,CAAC;AAEF;;;GAGG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,CAG/D;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEnD;AAED;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,OAAO,EAAE,SAAS,MAAM,EAAE,GACzB,MAAM,GAAG,SAAS,CAOpB;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAEpE;AAED,8FAA8F;AAC9F,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAE9D;AAED,kFAAkF;AAClF,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAE5D"}
@@ -7,12 +7,12 @@ type CodeBlockProps = HTMLAttributes<HTMLDivElement> & {
7
7
  showLineNumbers?: boolean;
8
8
  };
9
9
  export declare function highlightCode(code: string, language: BundledLanguage, showLineNumbers?: boolean): Promise<[string, string]>;
10
- export declare const CodeBlock: ({ code, language, showLineNumbers, className, children, ...props }: CodeBlockProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const CodeBlock: ({ code, language, showLineNumbers, className, children, ...props }: CodeBlockProps) => import("react").JSX.Element;
11
11
  export type CodeBlockCopyButtonProps = ComponentProps<typeof Button> & {
12
12
  onCopy?: () => void;
13
13
  onError?: (error: Error) => void;
14
14
  timeout?: number;
15
15
  };
16
- export declare const CodeBlockCopyButton: ({ onCopy, onError, timeout, children, className, ...props }: CodeBlockCopyButtonProps) => import("react/jsx-runtime").JSX.Element;
16
+ export declare const CodeBlockCopyButton: ({ onCopy, onError, timeout, children, className, ...props }: CodeBlockCopyButtonProps) => import("react").JSX.Element;
17
17
  export {};
18
18
  //# sourceMappingURL=code-block.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"code-block.d.ts","sourceRoot":"","sources":["../../src/elements/code-block.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAG/C,OAAO,EACL,KAAK,cAAc,EAEnB,KAAK,cAAc,EAKpB,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,KAAK,eAAe,EAAqC,MAAM,OAAO,CAAC;AAEhF,KAAK,cAAc,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IACrD,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,eAAe,CAAC;IAC1B,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AA+BF,wBAAsB,aAAa,CACjC,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,eAAe,EACzB,eAAe,UAAQ,6BAkBxB;AAED,eAAO,MAAM,SAAS,GAAI,oEAOvB,cAAc,gCAgDhB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,OAAO,MAAM,CAAC,GAAG;IACrE,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,6DAOjC,wBAAwB,gCAiC1B,CAAC"}
@@ -2,15 +2,15 @@ import { Button } from '@object-ui/components';
2
2
  import { ComponentProps } from 'react';
3
3
  import { StickToBottom } from 'use-stick-to-bottom';
4
4
  export type ConversationProps = ComponentProps<typeof StickToBottom>;
5
- export declare const Conversation: ({ className, ...props }: ConversationProps) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const Conversation: ({ className, ...props }: ConversationProps) => import("react").JSX.Element;
6
6
  export type ConversationContentProps = ComponentProps<typeof StickToBottom.Content>;
7
- export declare const ConversationContent: ({ className, ...props }: ConversationContentProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const ConversationContent: ({ className, ...props }: ConversationContentProps) => import("react").JSX.Element;
8
8
  export type ConversationEmptyStateProps = ComponentProps<"div"> & {
9
9
  title?: string;
10
10
  description?: string;
11
11
  icon?: React.ReactNode;
12
12
  };
13
- export declare const ConversationEmptyState: ({ className, title, description, icon, children, ...props }: ConversationEmptyStateProps) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const ConversationEmptyState: ({ className, title, description, icon, children, ...props }: ConversationEmptyStateProps) => import("react").JSX.Element;
14
14
  export type ConversationScrollButtonProps = ComponentProps<typeof Button>;
15
- export declare const ConversationScrollButton: ({ className, ...props }: ConversationScrollButtonProps) => false | import("react/jsx-runtime").JSX.Element;
15
+ export declare const ConversationScrollButton: ({ className, ...props }: ConversationScrollButtonProps) => false | import("react").JSX.Element;
16
16
  //# sourceMappingURL=conversation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../src/elements/conversation.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAG/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAE,aAAa,EAA2B,MAAM,qBAAqB,CAAC;AAE7E,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,OAAO,aAAa,CAAC,CAAC;AAErE,eAAO,MAAM,YAAY,GAAI,yBAAyB,iBAAiB,gCAQtE,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,cAAc,CACnD,OAAO,aAAa,CAAC,OAAO,CAC7B,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,yBAGjC,wBAAwB,gCAK1B,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG;IAChE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,6DAOpC,2BAA2B,gCAoB7B,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC;AAE1E,eAAO,MAAM,wBAAwB,GAAI,yBAGtC,6BAA6B,wCAwB/B,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/elements/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC"}
@@ -2,5 +2,5 @@ import { HTMLAttributes } from 'react';
2
2
  export type LoaderProps = HTMLAttributes<HTMLDivElement> & {
3
3
  size?: number;
4
4
  };
5
- export declare const Loader: ({ className, size, ...props }: LoaderProps) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const Loader: ({ className, size, ...props }: LoaderProps) => import("react").JSX.Element;
6
6
  //# sourceMappingURL=loader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../../src/elements/loader.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAgF5C,MAAM,MAAM,WAAW,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IACzD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,MAAM,GAAI,+BAAoC,WAAW,gCAUrE,CAAC"}
@@ -5,43 +5,43 @@ import { Streamdown } from 'streamdown';
5
5
  export type MessageProps = HTMLAttributes<HTMLDivElement> & {
6
6
  from: UIMessage["role"];
7
7
  };
8
- export declare const Message: ({ className, from, ...props }: MessageProps) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const Message: ({ className, from, ...props }: MessageProps) => import("react").JSX.Element;
9
9
  export type MessageContentProps = HTMLAttributes<HTMLDivElement>;
10
- export declare const MessageContent: ({ children, className, ...props }: MessageContentProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const MessageContent: ({ children, className, ...props }: MessageContentProps) => import("react").JSX.Element;
11
11
  export type MessageActionsProps = ComponentProps<"div">;
12
- export declare const MessageActions: ({ className, children, ...props }: MessageActionsProps) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const MessageActions: ({ className, children, ...props }: MessageActionsProps) => import("react").JSX.Element;
13
13
  export type MessageActionProps = ComponentProps<typeof Button> & {
14
14
  tooltip?: string;
15
15
  label?: string;
16
16
  };
17
- export declare const MessageAction: ({ tooltip, children, label, variant, size, ...props }: MessageActionProps) => import("react/jsx-runtime").JSX.Element;
17
+ export declare const MessageAction: ({ tooltip, children, label, variant, size, ...props }: MessageActionProps) => import("react").JSX.Element;
18
18
  export type MessageBranchProps = HTMLAttributes<HTMLDivElement> & {
19
19
  defaultBranch?: number;
20
20
  onBranchChange?: (branchIndex: number) => void;
21
21
  };
22
- export declare const MessageBranch: ({ defaultBranch, onBranchChange, className, ...props }: MessageBranchProps) => import("react/jsx-runtime").JSX.Element;
22
+ export declare const MessageBranch: ({ defaultBranch, onBranchChange, className, ...props }: MessageBranchProps) => import("react").JSX.Element;
23
23
  export type MessageBranchContentProps = HTMLAttributes<HTMLDivElement>;
24
- export declare const MessageBranchContent: ({ children, ...props }: MessageBranchContentProps) => import("react/jsx-runtime").JSX.Element[];
24
+ export declare const MessageBranchContent: ({ children, ...props }: MessageBranchContentProps) => import("react").JSX.Element[];
25
25
  export type MessageBranchSelectorProps = HTMLAttributes<HTMLDivElement> & {
26
26
  from: UIMessage["role"];
27
27
  };
28
- export declare const MessageBranchSelector: ({ className, from, ...props }: MessageBranchSelectorProps) => import("react/jsx-runtime").JSX.Element | null;
28
+ export declare const MessageBranchSelector: ({ className, from, ...props }: MessageBranchSelectorProps) => import("react").JSX.Element | null;
29
29
  export type MessageBranchPreviousProps = ComponentProps<typeof Button>;
30
- export declare const MessageBranchPrevious: ({ children, ...props }: MessageBranchPreviousProps) => import("react/jsx-runtime").JSX.Element;
30
+ export declare const MessageBranchPrevious: ({ children, ...props }: MessageBranchPreviousProps) => import("react").JSX.Element;
31
31
  export type MessageBranchNextProps = ComponentProps<typeof Button>;
32
- export declare const MessageBranchNext: ({ children, className, ...props }: MessageBranchNextProps) => import("react/jsx-runtime").JSX.Element;
32
+ export declare const MessageBranchNext: ({ children, className, ...props }: MessageBranchNextProps) => import("react").JSX.Element;
33
33
  export type MessageBranchPageProps = HTMLAttributes<HTMLSpanElement>;
34
- export declare const MessageBranchPage: ({ className, ...props }: MessageBranchPageProps) => import("react/jsx-runtime").JSX.Element;
34
+ export declare const MessageBranchPage: ({ className, ...props }: MessageBranchPageProps) => import("react").JSX.Element;
35
35
  export type MessageResponseProps = ComponentProps<typeof Streamdown>;
36
- export declare const MessageResponse: import('react').MemoExoticComponent<({ className, ...props }: MessageResponseProps) => import("react/jsx-runtime").JSX.Element>;
36
+ export declare const MessageResponse: import('react').MemoExoticComponent<({ className, ...props }: MessageResponseProps) => import("react").JSX.Element>;
37
37
  export type MessageAttachmentProps = HTMLAttributes<HTMLDivElement> & {
38
38
  data: FileUIPart;
39
39
  className?: string;
40
40
  onRemove?: () => void;
41
41
  };
42
- export declare function MessageAttachment({ data, className, onRemove, ...props }: MessageAttachmentProps): import("react/jsx-runtime").JSX.Element;
42
+ export declare function MessageAttachment({ data, className, onRemove, ...props }: MessageAttachmentProps): import("react").JSX.Element;
43
43
  export type MessageAttachmentsProps = ComponentProps<"div">;
44
- export declare function MessageAttachments({ children, className, ...props }: MessageAttachmentsProps): import("react/jsx-runtime").JSX.Element | null;
44
+ export declare function MessageAttachments({ children, className, ...props }: MessageAttachmentsProps): import("react").JSX.Element | null;
45
45
  export type MessageToolbarProps = ComponentProps<"div">;
46
- export declare const MessageToolbar: ({ className, children, ...props }: MessageToolbarProps) => import("react/jsx-runtime").JSX.Element;
46
+ export declare const MessageToolbar: ({ className, children, ...props }: MessageToolbarProps) => import("react").JSX.Element;
47
47
  //# sourceMappingURL=message.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../src/elements/message.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAY/C,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAOhD,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAgB,MAAM,OAAO,CAAC;AAE1E,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC,MAAM,MAAM,YAAY,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IAC1D,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,+BAA+B,YAAY,gCASlE,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;AAEjE,eAAO,MAAM,cAAc,GAAI,mCAI5B,mBAAmB,gCAYrB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAExD,eAAO,MAAM,cAAc,GAAI,mCAI5B,mBAAmB,gCAIrB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,OAAO,MAAM,CAAC,GAAG;IAC/D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC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B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,EAChC,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,sBAAsB,+BAuExB;AAED,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAE5D,wBAAgB,kBAAkB,CAAC,EACjC,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,uBAAuB,sCAgBzB;AAED,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAExD,eAAO,MAAM,cAAc,GAAI,mCAI5B,mBAAmB,gCAUrB,CAAC"}
@@ -32,7 +32,7 @@ export type PromptInputProviderProps = PropsWithChildren<{
32
32
  * Optional global provider that lifts PromptInput state outside of PromptInput.
33
33
  * If you don't use it, PromptInput stays fully self-managed.
34
34
  */
35
- export declare function PromptInputProvider({ initialInput: initialTextInput, children, }: PromptInputProviderProps): import("react/jsx-runtime").JSX.Element;
35
+ export declare function PromptInputProvider({ initialInput: initialTextInput, children, }: PromptInputProviderProps): import("react").JSX.Element;
36
36
  export declare const usePromptInputAttachments: () => AttachmentsContext;
37
37
  export type PromptInputAttachmentProps = HTMLAttributes<HTMLDivElement> & {
38
38
  data: FileUIPart & {
@@ -40,17 +40,17 @@ export type PromptInputAttachmentProps = HTMLAttributes<HTMLDivElement> & {
40
40
  };
41
41
  className?: string;
42
42
  };
43
- export declare function PromptInputAttachment({ data, className, ...props }: PromptInputAttachmentProps): import("react/jsx-runtime").JSX.Element;
43
+ export declare function PromptInputAttachment({ data, className, ...props }: PromptInputAttachmentProps): import("react").JSX.Element;
44
44
  export type PromptInputAttachmentsProps = Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
45
45
  children: (attachment: FileUIPart & {
46
46
  id: string;
47
47
  }) => ReactNode;
48
48
  };
49
- export declare function PromptInputAttachments({ children, className, ...props }: PromptInputAttachmentsProps): import("react/jsx-runtime").JSX.Element | null;
49
+ export declare function PromptInputAttachments({ children, className, ...props }: PromptInputAttachmentsProps): import("react").JSX.Element | null;
50
50
  export type PromptInputActionAddAttachmentsProps = ComponentProps<typeof DropdownMenuItem> & {
51
51
  label?: string;
52
52
  };
53
- export declare const PromptInputActionAddAttachments: ({ label, ...props }: PromptInputActionAddAttachmentsProps) => import("react/jsx-runtime").JSX.Element;
53
+ export declare const PromptInputActionAddAttachments: ({ label, ...props }: PromptInputActionAddAttachmentsProps) => import("react").JSX.Element;
54
54
  export type PromptInputMessage = {
55
55
  text: string;
56
56
  files: FileUIPart[];
@@ -58,6 +58,7 @@ export type PromptInputMessage = {
58
58
  export type PromptInputProps = Omit<HTMLAttributes<HTMLFormElement>, "onSubmit" | "onError"> & {
59
59
  accept?: string;
60
60
  multiple?: boolean;
61
+ fileInputLabel?: string;
61
62
  globalDrop?: boolean;
62
63
  syncHiddenInput?: boolean;
63
64
  maxFiles?: number;
@@ -68,31 +69,31 @@ export type PromptInputProps = Omit<HTMLAttributes<HTMLFormElement>, "onSubmit"
68
69
  }) => void;
69
70
  onSubmit: (message: PromptInputMessage, event: FormEvent<HTMLFormElement>) => void | Promise<void>;
70
71
  };
71
- export declare const PromptInput: ({ className, accept, multiple, globalDrop, syncHiddenInput, maxFiles, maxFileSize, onError, onSubmit, children, ...props }: PromptInputProps) => import("react/jsx-runtime").JSX.Element;
72
+ export declare const PromptInput: ({ className, accept, multiple, fileInputLabel, globalDrop, syncHiddenInput, maxFiles, maxFileSize, onError, onSubmit, children, ...props }: PromptInputProps) => import("react").JSX.Element;
72
73
  export type PromptInputBodyProps = HTMLAttributes<HTMLDivElement>;
73
- export declare const PromptInputBody: ({ className, ...props }: PromptInputBodyProps) => import("react/jsx-runtime").JSX.Element;
74
+ export declare const PromptInputBody: ({ className, ...props }: PromptInputBodyProps) => import("react").JSX.Element;
74
75
  export type PromptInputTextareaProps = ComponentProps<typeof InputGroupTextarea>;
75
- export declare const PromptInputTextarea: ({ onChange, className, placeholder, ...props }: PromptInputTextareaProps) => import("react/jsx-runtime").JSX.Element;
76
+ export declare const PromptInputTextarea: ({ onChange, className, placeholder, ...props }: PromptInputTextareaProps) => import("react").JSX.Element;
76
77
  export type PromptInputHeaderProps = Omit<ComponentProps<typeof InputGroupAddon>, "align">;
77
- export declare const PromptInputHeader: ({ className, ...props }: PromptInputHeaderProps) => import("react/jsx-runtime").JSX.Element;
78
+ export declare const PromptInputHeader: ({ className, ...props }: PromptInputHeaderProps) => import("react").JSX.Element;
78
79
  export type PromptInputFooterProps = Omit<ComponentProps<typeof InputGroupAddon>, "align">;
79
- export declare const PromptInputFooter: ({ className, ...props }: PromptInputFooterProps) => import("react/jsx-runtime").JSX.Element;
80
+ export declare const PromptInputFooter: ({ className, ...props }: PromptInputFooterProps) => import("react").JSX.Element;
80
81
  export type PromptInputToolsProps = HTMLAttributes<HTMLDivElement>;
81
- export declare const PromptInputTools: ({ className, ...props }: PromptInputToolsProps) => import("react/jsx-runtime").JSX.Element;
82
+ export declare const PromptInputTools: ({ className, ...props }: PromptInputToolsProps) => import("react").JSX.Element;
82
83
  export type PromptInputButtonProps = ComponentProps<typeof InputGroupButton>;
83
- export declare const PromptInputButton: ({ variant, className, size, ...props }: PromptInputButtonProps) => import("react/jsx-runtime").JSX.Element;
84
+ export declare const PromptInputButton: ({ variant, className, size, ...props }: PromptInputButtonProps) => import("react").JSX.Element;
84
85
  export type PromptInputActionMenuProps = ComponentProps<typeof DropdownMenu>;
85
- export declare const PromptInputActionMenu: (props: PromptInputActionMenuProps) => import("react/jsx-runtime").JSX.Element;
86
+ export declare const PromptInputActionMenu: (props: PromptInputActionMenuProps) => import("react").JSX.Element;
86
87
  export type PromptInputActionMenuTriggerProps = PromptInputButtonProps;
87
- export declare const PromptInputActionMenuTrigger: ({ className, children, ...props }: PromptInputActionMenuTriggerProps) => import("react/jsx-runtime").JSX.Element;
88
+ export declare const PromptInputActionMenuTrigger: ({ className, children, ...props }: PromptInputActionMenuTriggerProps) => import("react").JSX.Element;
88
89
  export type PromptInputActionMenuContentProps = ComponentProps<typeof DropdownMenuContent>;
89
- export declare const PromptInputActionMenuContent: ({ className, ...props }: PromptInputActionMenuContentProps) => import("react/jsx-runtime").JSX.Element;
90
+ export declare const PromptInputActionMenuContent: ({ className, ...props }: PromptInputActionMenuContentProps) => import("react").JSX.Element;
90
91
  export type PromptInputActionMenuItemProps = ComponentProps<typeof DropdownMenuItem>;
91
- export declare const PromptInputActionMenuItem: ({ className, ...props }: PromptInputActionMenuItemProps) => import("react/jsx-runtime").JSX.Element;
92
+ export declare const PromptInputActionMenuItem: ({ className, ...props }: PromptInputActionMenuItemProps) => import("react").JSX.Element;
92
93
  export type PromptInputSubmitProps = ComponentProps<typeof InputGroupButton> & {
93
94
  status?: ChatStatus;
94
95
  };
95
- export declare const PromptInputSubmit: ({ className, variant, size, status, children, ...props }: PromptInputSubmitProps) => import("react/jsx-runtime").JSX.Element;
96
+ export declare const PromptInputSubmit: ({ className, variant, size, status, children, ...props }: PromptInputSubmitProps) => import("react").JSX.Element;
96
97
  interface SpeechRecognition extends EventTarget {
97
98
  continuous: boolean;
98
99
  interimResults: boolean;
@@ -140,46 +141,46 @@ export type PromptInputSpeechButtonProps = ComponentProps<typeof PromptInputButt
140
141
  textareaRef?: RefObject<HTMLTextAreaElement | null>;
141
142
  onTranscriptionChange?: (text: string) => void;
142
143
  };
143
- export declare const PromptInputSpeechButton: ({ className, textareaRef, onTranscriptionChange, ...props }: PromptInputSpeechButtonProps) => import("react/jsx-runtime").JSX.Element;
144
+ export declare const PromptInputSpeechButton: ({ className, textareaRef, onTranscriptionChange, ...props }: PromptInputSpeechButtonProps) => import("react").JSX.Element;
144
145
  export type PromptInputSelectProps = ComponentProps<typeof Select>;
145
- export declare const PromptInputSelect: (props: PromptInputSelectProps) => import("react/jsx-runtime").JSX.Element;
146
+ export declare const PromptInputSelect: (props: PromptInputSelectProps) => import("react").JSX.Element;
146
147
  export type PromptInputSelectTriggerProps = ComponentProps<typeof SelectTrigger>;
147
- export declare const PromptInputSelectTrigger: ({ className, ...props }: PromptInputSelectTriggerProps) => import("react/jsx-runtime").JSX.Element;
148
+ export declare const PromptInputSelectTrigger: ({ className, ...props }: PromptInputSelectTriggerProps) => import("react").JSX.Element;
148
149
  export type PromptInputSelectContentProps = ComponentProps<typeof SelectContent>;
149
- export declare const PromptInputSelectContent: ({ className, ...props }: PromptInputSelectContentProps) => import("react/jsx-runtime").JSX.Element;
150
+ export declare const PromptInputSelectContent: ({ className, ...props }: PromptInputSelectContentProps) => import("react").JSX.Element;
150
151
  export type PromptInputSelectItemProps = ComponentProps<typeof SelectItem>;
151
- export declare const PromptInputSelectItem: ({ className, ...props }: PromptInputSelectItemProps) => import("react/jsx-runtime").JSX.Element;
152
+ export declare const PromptInputSelectItem: ({ className, ...props }: PromptInputSelectItemProps) => import("react").JSX.Element;
152
153
  export type PromptInputSelectValueProps = ComponentProps<typeof SelectValue>;
153
- export declare const PromptInputSelectValue: ({ className, ...props }: PromptInputSelectValueProps) => import("react/jsx-runtime").JSX.Element;
154
+ export declare const PromptInputSelectValue: ({ className, ...props }: PromptInputSelectValueProps) => import("react").JSX.Element;
154
155
  export type PromptInputHoverCardProps = ComponentProps<typeof HoverCard>;
155
- export declare const PromptInputHoverCard: ({ openDelay, closeDelay, ...props }: PromptInputHoverCardProps) => import("react/jsx-runtime").JSX.Element;
156
+ export declare const PromptInputHoverCard: ({ openDelay, closeDelay, ...props }: PromptInputHoverCardProps) => import("react").JSX.Element;
156
157
  export type PromptInputHoverCardTriggerProps = ComponentProps<typeof HoverCardTrigger>;
157
- export declare const PromptInputHoverCardTrigger: (props: PromptInputHoverCardTriggerProps) => import("react/jsx-runtime").JSX.Element;
158
+ export declare const PromptInputHoverCardTrigger: (props: PromptInputHoverCardTriggerProps) => import("react").JSX.Element;
158
159
  export type PromptInputHoverCardContentProps = ComponentProps<typeof HoverCardContent>;
159
- export declare const PromptInputHoverCardContent: ({ align, ...props }: PromptInputHoverCardContentProps) => import("react/jsx-runtime").JSX.Element;
160
+ export declare const PromptInputHoverCardContent: ({ align, ...props }: PromptInputHoverCardContentProps) => import("react").JSX.Element;
160
161
  export type PromptInputTabsListProps = HTMLAttributes<HTMLDivElement>;
161
- export declare const PromptInputTabsList: ({ className, ...props }: PromptInputTabsListProps) => import("react/jsx-runtime").JSX.Element;
162
+ export declare const PromptInputTabsList: ({ className, ...props }: PromptInputTabsListProps) => import("react").JSX.Element;
162
163
  export type PromptInputTabProps = HTMLAttributes<HTMLDivElement>;
163
- export declare const PromptInputTab: ({ className, ...props }: PromptInputTabProps) => import("react/jsx-runtime").JSX.Element;
164
+ export declare const PromptInputTab: ({ className, ...props }: PromptInputTabProps) => import("react").JSX.Element;
164
165
  export type PromptInputTabLabelProps = HTMLAttributes<HTMLHeadingElement>;
165
- export declare const PromptInputTabLabel: ({ className, ...props }: PromptInputTabLabelProps) => import("react/jsx-runtime").JSX.Element;
166
+ export declare const PromptInputTabLabel: ({ className, ...props }: PromptInputTabLabelProps) => import("react").JSX.Element;
166
167
  export type PromptInputTabBodyProps = HTMLAttributes<HTMLDivElement>;
167
- export declare const PromptInputTabBody: ({ className, ...props }: PromptInputTabBodyProps) => import("react/jsx-runtime").JSX.Element;
168
+ export declare const PromptInputTabBody: ({ className, ...props }: PromptInputTabBodyProps) => import("react").JSX.Element;
168
169
  export type PromptInputTabItemProps = HTMLAttributes<HTMLDivElement>;
169
- export declare const PromptInputTabItem: ({ className, ...props }: PromptInputTabItemProps) => import("react/jsx-runtime").JSX.Element;
170
+ export declare const PromptInputTabItem: ({ className, ...props }: PromptInputTabItemProps) => import("react").JSX.Element;
170
171
  export type PromptInputCommandProps = ComponentProps<typeof Command>;
171
- export declare const PromptInputCommand: ({ className, ...props }: PromptInputCommandProps) => import("react/jsx-runtime").JSX.Element;
172
+ export declare const PromptInputCommand: ({ className, ...props }: PromptInputCommandProps) => import("react").JSX.Element;
172
173
  export type PromptInputCommandInputProps = ComponentProps<typeof CommandInput>;
173
- export declare const PromptInputCommandInput: ({ className, ...props }: PromptInputCommandInputProps) => import("react/jsx-runtime").JSX.Element;
174
+ export declare const PromptInputCommandInput: ({ className, ...props }: PromptInputCommandInputProps) => import("react").JSX.Element;
174
175
  export type PromptInputCommandListProps = ComponentProps<typeof CommandList>;
175
- export declare const PromptInputCommandList: ({ className, ...props }: PromptInputCommandListProps) => import("react/jsx-runtime").JSX.Element;
176
+ export declare const PromptInputCommandList: ({ className, ...props }: PromptInputCommandListProps) => import("react").JSX.Element;
176
177
  export type PromptInputCommandEmptyProps = ComponentProps<typeof CommandEmpty>;
177
- export declare const PromptInputCommandEmpty: ({ className, ...props }: PromptInputCommandEmptyProps) => import("react/jsx-runtime").JSX.Element;
178
+ export declare const PromptInputCommandEmpty: ({ className, ...props }: PromptInputCommandEmptyProps) => import("react").JSX.Element;
178
179
  export type PromptInputCommandGroupProps = ComponentProps<typeof CommandGroup>;
179
- export declare const PromptInputCommandGroup: ({ className, ...props }: PromptInputCommandGroupProps) => import("react/jsx-runtime").JSX.Element;
180
+ export declare const PromptInputCommandGroup: ({ className, ...props }: PromptInputCommandGroupProps) => import("react").JSX.Element;
180
181
  export type PromptInputCommandItemProps = ComponentProps<typeof CommandItem>;
181
- export declare const PromptInputCommandItem: ({ className, ...props }: PromptInputCommandItemProps) => import("react/jsx-runtime").JSX.Element;
182
+ export declare const PromptInputCommandItem: ({ className, ...props }: PromptInputCommandItemProps) => import("react").JSX.Element;
182
183
  export type PromptInputCommandSeparatorProps = ComponentProps<typeof CommandSeparator>;
183
- export declare const PromptInputCommandSeparator: ({ className, ...props }: PromptInputCommandSeparatorProps) => import("react/jsx-runtime").JSX.Element;
184
+ export declare const PromptInputCommandSeparator: ({ className, ...props }: PromptInputCommandSeparatorProps) => import("react").JSX.Element;
184
185
  export {};
185
186
  //# sourceMappingURL=prompt-input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"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yBAGhC,uBAAuB,gCAAqD,CAAC;AAEhF,MAAM,MAAM,4BAA4B,GAAG,cAAc,CAAC,OAAO,YAAY,CAAC,CAAC;AAE/E,eAAO,MAAM,uBAAuB,GAAI,yBAGrC,4BAA4B,gCAE9B,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,cAAc,CAAC,OAAO,WAAW,CAAC,CAAC;AAE7E,eAAO,MAAM,sBAAsB,GAAI,yBAGpC,2BAA2B,gCAE7B,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,cAAc,CAAC,OAAO,YAAY,CAAC,CAAC;AAE/E,eAAO,MAAM,uBAAuB,GAAI,yBAGrC,4BAA4B,gCAE9B,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,cAAc,CAAC,OAAO,YAAY,CAAC,CAAC;AAE/E,eAAO,MAAM,uBAAuB,GAAI,yBAGrC,4BAA4B,gCAE9B,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,cAAc,CAAC,OAAO,WAAW,CAAC,CAAC;AAE7E,eAAO,MAAM,sBAAsB,GAAI,yBAGpC,2BAA2B,gCAE7B,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG,cAAc,CAC3D,OAAO,gBAAgB,CACxB,CAAC;AAEF,eAAO,MAAM,2BAA2B,GAAI,yBAGzC,gCAAgC,gCAElC,CAAC"}
@@ -14,14 +14,14 @@ export type ReasoningProps = ComponentProps<typeof Collapsible> & {
14
14
  onOpenChange?: (open: boolean) => void;
15
15
  duration?: number;
16
16
  };
17
- export declare const Reasoning: import('react').MemoExoticComponent<({ className, isStreaming, open, defaultOpen, onOpenChange, duration: durationProp, children, ...props }: ReasoningProps) => import("react/jsx-runtime").JSX.Element>;
17
+ export declare const Reasoning: import('react').MemoExoticComponent<({ className, isStreaming, open, defaultOpen, onOpenChange, duration: durationProp, children, ...props }: ReasoningProps) => import("react").JSX.Element>;
18
18
  export type ReasoningTriggerProps = ComponentProps<typeof CollapsibleTrigger> & {
19
19
  getThinkingMessage?: (isStreaming: boolean, duration?: number) => ReactNode;
20
20
  };
21
- export declare const ReasoningTrigger: import('react').MemoExoticComponent<({ className, children, getThinkingMessage, ...props }: ReasoningTriggerProps) => import("react/jsx-runtime").JSX.Element>;
21
+ export declare const ReasoningTrigger: import('react').MemoExoticComponent<({ className, children, getThinkingMessage, ...props }: ReasoningTriggerProps) => import("react").JSX.Element>;
22
22
  export type ReasoningContentProps = ComponentProps<typeof CollapsibleContent> & {
23
23
  children: string;
24
24
  };
25
- export declare const ReasoningContent: import('react').MemoExoticComponent<({ className, children, ...props }: ReasoningContentProps) => import("react/jsx-runtime").JSX.Element>;
25
+ export declare const ReasoningContent: import('react').MemoExoticComponent<({ className, children, ...props }: ReasoningContentProps) => import("react").JSX.Element>;
26
26
  export {};
27
27
  //# sourceMappingURL=reasoning.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reasoning.d.ts","sourceRoot":"","sources":["../../src/elements/reasoning.tsx"],"names":[],"mappings":"AASA,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvD,KAAK,qBAAqB,GAAG;IAC3B,WAAW,EAAE,OAAO,CAAC;IACrB,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAC;AAIF,eAAO,MAAM,YAAY,6BAMxB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,cAAc,CAAC,OAAO,WAAW,CAAC,GAAG;IAChE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAKF,eAAO,MAAM,SAAS,gJAUjB,cAAc,iCA0DlB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC,OAAO,kBAAkB,CAAC,GAAG;IAC9E,kBAAkB,CAAC,EAAE,CAAC,WAAW,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,SAAS,CAAC;CAC7E,CAAC;AAYF,eAAO,MAAM,gBAAgB,8FACyD,qBAAqB,iCA0B1G,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAChD,OAAO,kBAAkB,CAC1B,GAAG;IACF,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,gBAAgB,0EACS,qBAAqB,iCAY1D,CAAC"}
@@ -1,4 +1,4 @@
1
- import { ElementType } from 'react';
1
+ import { ElementType, JSX } from 'react';
2
2
  export type TextShimmerProps = {
3
3
  children: string;
4
4
  as?: ElementType;
@@ -6,5 +6,5 @@ export type TextShimmerProps = {
6
6
  duration?: number;
7
7
  spread?: number;
8
8
  };
9
- export declare const Shimmer: import('react').MemoExoticComponent<({ children, as: Component, className, duration, spread, }: TextShimmerProps) => import("react/jsx-runtime").JSX.Element>;
9
+ export declare const Shimmer: import('react').MemoExoticComponent<({ children, as: Component, className, duration, spread, }: TextShimmerProps) => JSX.Element>;
10
10
  //# sourceMappingURL=shimmer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shimmer.d.ts","sourceRoot":"","sources":["../../src/elements/shimmer.tsx"],"names":[],"mappings":"AAUA,OAAO,EAEL,KAAK,WAAW,EAChB,KAAK,GAAG,EAGT,MAAM,OAAO,CAAC;AAEf,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,EAAE,CAAC,EAAE,WAAW,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AA6CF,eAAO,MAAM,OAAO,kGArCjB,gBAAgB,iBAqC0B,CAAC"}
@@ -1,13 +1,13 @@
1
1
  import { CollapsibleContent, CollapsibleTrigger } from '@object-ui/components';
2
2
  import { ComponentProps } from 'react';
3
3
  export type SourcesProps = ComponentProps<"div">;
4
- export declare const Sources: ({ className, ...props }: SourcesProps) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const Sources: ({ className, ...props }: SourcesProps) => import("react").JSX.Element;
5
5
  export type SourcesTriggerProps = ComponentProps<typeof CollapsibleTrigger> & {
6
6
  count: number;
7
7
  };
8
- export declare const SourcesTrigger: ({ className, count, children, ...props }: SourcesTriggerProps) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const SourcesTrigger: ({ className, count, children, ...props }: SourcesTriggerProps) => import("react").JSX.Element;
9
9
  export type SourcesContentProps = ComponentProps<typeof CollapsibleContent>;
10
- export declare const SourcesContent: ({ className, ...props }: SourcesContentProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const SourcesContent: ({ className, ...props }: SourcesContentProps) => import("react").JSX.Element;
11
11
  export type SourceProps = ComponentProps<"a">;
12
- export declare const Source: ({ href, title, children, ...props }: SourceProps) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const Source: ({ href, title, children, ...props }: SourceProps) => import("react").JSX.Element;
13
13
  //# sourceMappingURL=sources.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sources.d.ts","sourceRoot":"","sources":["../../src/elements/sources.tsx"],"names":[],"mappings":"AAQA,OAAO,EAEL,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,YAAY,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEjD,eAAO,MAAM,OAAO,GAAI,yBAAyB,YAAY,gCAK5D,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,OAAO,kBAAkB,CAAC,GAAG;IAC5E,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,0CAK5B,mBAAmB,gCAYrB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE5E,eAAO,MAAM,cAAc,GAAI,yBAG5B,mBAAmB,gCASrB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC;AAE9C,eAAO,MAAM,MAAM,GAAI,qCAAqC,WAAW,gCAetE,CAAC"}
@@ -1,10 +1,10 @@
1
1
  import { Button, ScrollArea } from '@object-ui/components';
2
2
  import { ComponentProps } from 'react';
3
3
  export type SuggestionsProps = ComponentProps<typeof ScrollArea>;
4
- export declare const Suggestions: ({ className, children, ...props }: SuggestionsProps) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const Suggestions: ({ className, children, ...props }: SuggestionsProps) => import("react").JSX.Element;
5
5
  export type SuggestionProps = Omit<ComponentProps<typeof Button>, "onClick"> & {
6
6
  suggestion: string;
7
7
  onClick?: (suggestion: string) => void;
8
8
  };
9
- export declare const Suggestion: ({ suggestion, onClick, className, variant, size, children, ...props }: SuggestionProps) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const Suggestion: ({ suggestion, onClick, className, variant, size, children, ...props }: SuggestionProps) => import("react").JSX.Element;
10
10
  //# sourceMappingURL=suggestion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"suggestion.d.ts","sourceRoot":"","sources":["../../src/elements/suggestion.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EACL,UAAU,EAEX,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,OAAO,UAAU,CAAC,CAAC;AAEjE,eAAO,MAAM,WAAW,GAAI,mCAIzB,gBAAgB,gCAOlB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,EAAE,SAAS,CAAC,GAAG;IAC7E,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,uEAQxB,eAAe,gCAiBjB,CAAC"}
@@ -2,23 +2,23 @@ import { Collapsible, CollapsibleContent } from '@object-ui/components';
2
2
  import { ToolUIPart } from 'ai';
3
3
  import { ComponentProps, ReactNode } from 'react';
4
4
  export type ToolProps = ComponentProps<typeof Collapsible>;
5
- export declare const Tool: ({ className, ...props }: ToolProps) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const Tool: ({ className, ...props }: ToolProps) => import("react").JSX.Element;
6
6
  export type ToolHeaderProps = {
7
7
  title?: ReactNode;
8
8
  type: ToolUIPart["type"];
9
9
  state: ToolUIPart["state"];
10
10
  className?: string;
11
11
  };
12
- export declare const ToolHeader: ({ className, title, type, state, ...props }: ToolHeaderProps) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const ToolHeader: ({ className, title, type, state, ...props }: ToolHeaderProps) => import("react").JSX.Element;
13
13
  export type ToolContentProps = ComponentProps<typeof CollapsibleContent>;
14
- export declare const ToolContent: ({ className, ...props }: ToolContentProps) => import("react/jsx-runtime").JSX.Element;
14
+ export declare const ToolContent: ({ className, ...props }: ToolContentProps) => import("react").JSX.Element;
15
15
  export type ToolInputProps = ComponentProps<"div"> & {
16
16
  input: ToolUIPart["input"];
17
17
  };
18
- export declare const ToolInput: ({ className, input, ...props }: ToolInputProps) => import("react/jsx-runtime").JSX.Element;
18
+ export declare const ToolInput: ({ className, input, ...props }: ToolInputProps) => import("react").JSX.Element;
19
19
  export type ToolOutputProps = ComponentProps<"div"> & {
20
20
  output: ToolUIPart["output"];
21
21
  errorText: ToolUIPart["errorText"];
22
22
  };
23
- export declare const ToolOutput: ({ className, output, errorText, ...props }: ToolOutputProps) => import("react/jsx-runtime").JSX.Element | null;
23
+ export declare const ToolOutput: ({ className, output, errorText, ...props }: ToolOutputProps) => import("react").JSX.Element | null;
24
24
  //# sourceMappingURL=tool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool.d.ts","sourceRoot":"","sources":["../../src/elements/tool.tsx"],"names":[],"mappings":"AASA,OAAO,EACL,WAAW,EACX,kBAAkB,EAEnB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AASrC,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvD,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,SAAS,CAAC;IAClB,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC;IACzB,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAiCF,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"}
@@ -3,10 +3,10 @@ import { Separator } from '@object-ui/components';
3
3
  declare const buttonGroupVariants: (props?: ({
4
4
  orientation?: "horizontal" | "vertical" | null | undefined;
5
5
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
- declare function ButtonGroup({ className, orientation, ...props }: React.ComponentProps<"div"> & VariantProps<typeof buttonGroupVariants>): import("react/jsx-runtime").JSX.Element;
6
+ declare function ButtonGroup({ className, orientation, ...props }: React.ComponentProps<"div"> & VariantProps<typeof buttonGroupVariants>): import("react").JSX.Element;
7
7
  declare function ButtonGroupText({ className, asChild, ...props }: React.ComponentProps<"div"> & {
8
8
  asChild?: boolean;
9
- }): import("react/jsx-runtime").JSX.Element;
10
- declare function ButtonGroupSeparator({ className, orientation, ...props }: React.ComponentProps<typeof Separator>): import("react/jsx-runtime").JSX.Element;
9
+ }): import("react").JSX.Element;
10
+ declare function ButtonGroupSeparator({ className, orientation, ...props }: React.ComponentProps<typeof Separator>): import("react").JSX.Element;
11
11
  export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants, };
12
12
  //# sourceMappingURL=button-group.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button-group.d.ts","sourceRoot":"","sources":["../../../src/elements/ui/button-group.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAIjE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,QAAA,MAAM,mBAAmB;;8EAexB,CAAA;AAED,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,WAAW,EACX,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,OAAO,mBAAmB,CAAC,+BAUxE;AAED,iBAAS,eAAe,CAAC,EACvB,SAAS,EACT,OAAe,EACf,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,+BAYA;AAED,iBAAS,oBAAoB,CAAC,EAC5B,SAAS,EACT,WAAwB,EACxB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,+BAYxC;AAED,OAAO,EACL,WAAW,EACX,oBAAoB,EACpB,eAAe,EACf,mBAAmB,GACpB,CAAA"}
@@ -1,17 +1,17 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import { Button } from '@object-ui/components';
3
3
  import * as React from "react";
4
- declare function InputGroup({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
4
+ declare function InputGroup({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
5
5
  declare const inputGroupAddonVariants: (props?: ({
6
6
  align?: "inline-start" | "inline-end" | "block-start" | "block-end" | null | undefined;
7
7
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
8
- declare function InputGroupAddon({ className, align, ...props }: React.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): import("react/jsx-runtime").JSX.Element;
8
+ declare function InputGroupAddon({ className, align, ...props }: React.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): React.JSX.Element;
9
9
  declare const inputGroupButtonVariants: (props?: ({
10
10
  size?: "sm" | "xs" | "icon-xs" | "icon-sm" | null | undefined;
11
11
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
12
- declare function InputGroupButton({ className, type, variant, size, ...props }: Omit<React.ComponentProps<typeof Button>, "size"> & VariantProps<typeof inputGroupButtonVariants>): import("react/jsx-runtime").JSX.Element;
13
- declare function InputGroupText({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
14
- declare function InputGroupInput({ className, ...props }: React.ComponentProps<"input">): import("react/jsx-runtime").JSX.Element;
15
- declare function InputGroupTextarea({ className, ...props }: React.ComponentProps<"textarea">): import("react/jsx-runtime").JSX.Element;
12
+ declare function InputGroupButton({ className, type, variant, size, ...props }: Omit<React.ComponentProps<typeof Button>, "size"> & VariantProps<typeof inputGroupButtonVariants>): React.JSX.Element;
13
+ declare function InputGroupText({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
14
+ declare function InputGroupInput({ className, ...props }: React.ComponentProps<"input">): React.JSX.Element;
15
+ declare function InputGroupTextarea({ className, ...props }: React.ComponentProps<"textarea">): React.JSX.Element;
16
16
  export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupText, InputGroupInput, InputGroupTextarea, };
17
17
  //# sourceMappingURL=input-group.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input-group.d.ts","sourceRoot":"","sources":["../../../src/elements/ui/input-group.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAGjE,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAI9C,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,qBA0BvE;AAED,QAAA,MAAM,uBAAuB;;8EAmB5B,CAAA;AAED,iBAAS,eAAe,CAAC,EACvB,SAAS,EACT,KAAsB,EACtB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,OAAO,uBAAuB,CAAC,qBAgB5E;AAED,QAAA,MAAM,wBAAwB;;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