@chatsdk-dev/elements 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +43 -0
- package/dist/chunk-2LHKM7RD.js +14 -0
- package/dist/chunk-5UMYP6MD.js +10 -0
- package/dist/chunk-AP4MG32M.js +36 -0
- package/dist/chunk-CFM57HOS.js +358 -0
- package/dist/chunk-EGIUE7H2.js +37 -0
- package/dist/chunk-M5OONVIO.js +90 -0
- package/dist/chunk-MXTBCHYC.js +31 -0
- package/dist/chunk-NIC3MOMY.js +55 -0
- package/dist/chunk-QTRMNIG3.js +83 -0
- package/dist/chunk-R7G3RQLU.js +36 -0
- package/dist/chunk-RJG5D2TM.js +113 -0
- package/dist/chunk-SLJNKQ2G.js +125 -0
- package/dist/chunk-TDEFIW2L.js +9 -0
- package/dist/chunk-TDP6D7U7.js +551 -0
- package/dist/chunk-V2ITXC65.js +24 -0
- package/dist/chunk-VS55HRUS.js +16 -0
- package/dist/chunk-VYDYCGJL.js +25 -0
- package/dist/chunk-X5YUF2YM.js +113 -0
- package/dist/chunk-YX46JVQN.js +78 -0
- package/dist/chunk-YXAMLTTT.js +16 -0
- package/dist/chunk-YXFVHSY4.js +51 -0
- package/dist/chunk-ZCSZX3OI.js +4 -0
- package/dist/common/use-copy-to-clipboard.d.ts +3 -0
- package/dist/common/use-copy-to-clipboard.js +33 -0
- package/dist/common/utilts.d.ts +8 -0
- package/dist/common/utilts.js +28 -0
- package/dist/components/ai-elements/actions.d.ts +13 -0
- package/dist/components/ai-elements/actions.js +42 -0
- package/dist/components/ai-elements/agent.d.ts +31 -0
- package/dist/components/ai-elements/agent.js +77 -0
- package/dist/components/ai-elements/artifact.d.ts +27 -0
- package/dist/components/ai-elements/artifact.js +108 -0
- package/dist/components/ai-elements/attachments.d.ts +57 -0
- package/dist/components/ai-elements/attachments.js +258 -0
- package/dist/components/ai-elements/audio-player.d.ts +33 -0
- package/dist/components/ai-elements/audio-player.js +199 -0
- package/dist/components/ai-elements/canvas.d.ts +10 -0
- package/dist/components/ai-elements/canvas.js +24 -0
- package/dist/components/ai-elements/chain-of-thought.d.ts +34 -0
- package/dist/components/ai-elements/chain-of-thought.js +159 -0
- package/dist/components/ai-elements/checkpoint.d.ts +16 -0
- package/dist/components/ai-elements/checkpoint.js +47 -0
- package/dist/components/ai-elements/code-block.d.ts +48 -0
- package/dist/components/ai-elements/code-block.js +1 -0
- package/dist/components/ai-elements/commit.d.ts +68 -0
- package/dist/components/ai-elements/commit.js +314 -0
- package/dist/components/ai-elements/confirmation.d.ts +52 -0
- package/dist/components/ai-elements/confirmation.js +76 -0
- package/dist/components/ai-elements/connection.d.ts +5 -0
- package/dist/components/ai-elements/connection.js +34 -0
- package/dist/components/ai-elements/context.d.ts +36 -0
- package/dist/components/ai-elements/context.js +320 -0
- package/dist/components/ai-elements/controls.d.ts +8 -0
- package/dist/components/ai-elements/controls.js +17 -0
- package/dist/components/ai-elements/conversation.d.ts +27 -0
- package/dist/components/ai-elements/conversation.js +119 -0
- package/dist/components/ai-elements/edge.d.ts +9 -0
- package/dist/components/ai-elements/edge.js +111 -0
- package/dist/components/ai-elements/environment-variables.d.ts +42 -0
- package/dist/components/ai-elements/environment-variables.js +208 -0
- package/dist/components/ai-elements/file-tree.d.ts +30 -0
- package/dist/components/ai-elements/file-tree.js +212 -0
- package/dist/components/ai-elements/image.d.ts +10 -0
- package/dist/components/ai-elements/image.js +23 -0
- package/dist/components/ai-elements/inline-citation.d.ts +42 -0
- package/dist/components/ai-elements/inline-citation.js +203 -0
- package/dist/components/ai-elements/jsx-preview.d.ts +33 -0
- package/dist/components/ai-elements/jsx-preview.js +206 -0
- package/dist/components/ai-elements/loader.d.ts +9 -0
- package/dist/components/ai-elements/loader.js +115 -0
- package/dist/components/ai-elements/message.d.ts +42 -0
- package/dist/components/ai-elements/message.js +259 -0
- package/dist/components/ai-elements/mic-selector.d.ts +49 -0
- package/dist/components/ai-elements/mic-selector.js +252 -0
- package/dist/components/ai-elements/model-selector.d.ts +39 -0
- package/dist/components/ai-elements/model-selector.js +73 -0
- package/dist/components/ai-elements/node.d.ts +25 -0
- package/dist/components/ai-elements/node.js +41 -0
- package/dist/components/ai-elements/open-in-chat.d.ts +32 -0
- package/dist/components/ai-elements/open-in-chat.js +366 -0
- package/dist/components/ai-elements/package-info.d.ts +32 -0
- package/dist/components/ai-elements/package-info.js +162 -0
- package/dist/components/ai-elements/panel.d.ts +8 -0
- package/dist/components/ai-elements/panel.js +17 -0
- package/dist/components/ai-elements/persona.d.ts +50 -0
- package/dist/components/ai-elements/persona.js +209 -0
- package/dist/components/ai-elements/plan.d.ts +29 -0
- package/dist/components/ai-elements/plan.js +95 -0
- package/dist/components/ai-elements/prompt-input.d.ts +153 -0
- package/dist/components/ai-elements/prompt-input.js +939 -0
- package/dist/components/ai-elements/queue.d.ts +65 -0
- package/dist/components/ai-elements/queue.js +179 -0
- package/dist/components/ai-elements/reasoning.d.ts +30 -0
- package/dist/components/ai-elements/reasoning.js +161 -0
- package/dist/components/ai-elements/response.d.ts +9 -0
- package/dist/components/ai-elements/response.js +33 -0
- package/dist/components/ai-elements/sandbox.d.ts +28 -0
- package/dist/components/ai-elements/sandbox.js +98 -0
- package/dist/components/ai-elements/schema-display.d.ts +58 -0
- package/dist/components/ai-elements/schema-display.js +313 -0
- package/dist/components/ai-elements/shimmer.d.ts +14 -0
- package/dist/components/ai-elements/shimmer.js +1 -0
- package/dist/components/ai-elements/snippet.d.ts +22 -0
- package/dist/components/ai-elements/snippet.js +90 -0
- package/dist/components/ai-elements/sources.d.ts +16 -0
- package/dist/components/ai-elements/sources.js +62 -0
- package/dist/components/ai-elements/speech-input.d.ts +57 -0
- package/dist/components/ai-elements/speech-input.js +206 -0
- package/dist/components/ai-elements/stack-trace.d.ts +42 -0
- package/dist/components/ai-elements/stack-trace.js +377 -0
- package/dist/components/ai-elements/suggestion.d.ts +14 -0
- package/dist/components/ai-elements/suggestion.js +41 -0
- package/dist/components/ai-elements/task.d.ts +18 -0
- package/dist/components/ai-elements/task.js +60 -0
- package/dist/components/ai-elements/terminal.d.ts +31 -0
- package/dist/components/ai-elements/terminal.js +203 -0
- package/dist/components/ai-elements/test-results.d.ts +61 -0
- package/dist/components/ai-elements/test-results.js +349 -0
- package/dist/components/ai-elements/tool.d.ts +35 -0
- package/dist/components/ai-elements/tool.js +2 -0
- package/dist/components/ai-elements/toolbar.d.ts +8 -0
- package/dist/components/ai-elements/toolbar.js +18 -0
- package/dist/components/ai-elements/transcription.d.ts +19 -0
- package/dist/components/ai-elements/transcription.js +90 -0
- package/dist/components/ai-elements/voice-selector.d.ts +66 -0
- package/dist/components/ai-elements/voice-selector.js +332 -0
- package/dist/components/ai-elements/web-preview.d.ts +38 -0
- package/dist/components/ai-elements/web-preview.js +214 -0
- package/dist/components/info-card.d.ts +14 -0
- package/dist/components/info-card.js +1 -0
- package/dist/components/responsive-alert-dialog.d.ts +19 -0
- package/dist/components/responsive-alert-dialog.js +1 -0
- package/dist/components/responsive-dialog.d.ts +14 -0
- package/dist/components/responsive-dialog.js +1 -0
- package/dist/config-IcWUmjwj.d.ts +239 -0
- package/dist/features/chat/chat-card.d.ts +5 -0
- package/dist/features/chat/chat-card.js +14 -0
- package/dist/features/chat/chat-element/chat-element.d.ts +8 -0
- package/dist/features/chat/chat-element/chat-element.js +14 -0
- package/dist/features/chat/chat-element/use-chat.d.ts +21 -0
- package/dist/features/chat/chat-element/use-chat.js +14 -0
- package/dist/features/chat/chat-element/use-initial-messages.d.ts +20 -0
- package/dist/features/chat/chat-element/use-initial-messages.js +14 -0
- package/dist/features/chat/chat-header/chat-header.d.ts +8 -0
- package/dist/features/chat/chat-header/chat-header.js +14 -0
- package/dist/features/chat/chat-header/chat-menu.d.ts +5 -0
- package/dist/features/chat/chat-header/chat-menu.js +2 -0
- package/dist/features/chat/chat-history/chat-history-empty.d.ts +5 -0
- package/dist/features/chat/chat-history/chat-history-empty.js +1 -0
- package/dist/features/chat/chat-history/chat-history.d.ts +5 -0
- package/dist/features/chat/chat-history/chat-history.js +14 -0
- package/dist/features/chat/chat-message.d.ts +10 -0
- package/dist/features/chat/chat-message.js +1 -0
- package/dist/features/chat/chat-molecule.d.ts +35 -0
- package/dist/features/chat/chat-molecule.js +14 -0
- package/dist/features/chat/chat-prompt-input.d.ts +16 -0
- package/dist/features/chat/chat-prompt-input.js +14 -0
- package/dist/features/chat/chat.context.d.ts +26 -0
- package/dist/features/chat/chat.context.js +13 -0
- package/dist/features/chat/index.d.ts +14 -0
- package/dist/features/chat/index.js +14 -0
- package/dist/features/chat/queries/query-keys.d.ts +8 -0
- package/dist/features/chat/queries/query-keys.js +1 -0
- package/dist/features/chat/queries/use-create-conversation-mutation.d.ts +29 -0
- package/dist/features/chat/queries/use-create-conversation-mutation.js +38 -0
- package/dist/features/chat/queries/use-get-chat-query.d.ts +9 -0
- package/dist/features/chat/queries/use-get-chat-query.js +14 -0
- package/dist/features/chat/queries/use-get-conversation-query.d.ts +62 -0
- package/dist/features/chat/queries/use-get-conversation-query.js +14 -0
- package/dist/features/chat/queries/use-list-conversations-query.d.ts +29 -0
- package/dist/features/chat/queries/use-list-conversations-query.js +14 -0
- package/dist/features/chat/store.d.ts +13 -0
- package/dist/features/chat/store.js +1 -0
- package/dist/features/chat/utils.d.ts +5 -0
- package/dist/features/chat/utils.js +1 -0
- package/dist/features/data-fetching/use-api-client.d.ts +5 -0
- package/dist/features/data-fetching/use-api-client.js +14 -0
- package/dist/features/logger/logger.d.ts +9 -0
- package/dist/features/logger/logger.js +1 -0
- package/dist/features/molecule/chatsdk-provider.d.ts +19 -0
- package/dist/features/molecule/chatsdk-provider.js +26 -0
- package/dist/features/molecule/constants.d.ts +3 -0
- package/dist/features/molecule/constants.js +1 -0
- package/dist/features/molecule/molecule-provider.d.ts +39 -0
- package/dist/features/molecule/molecule-provider.js +1 -0
- package/dist/features/molecule/store.d.ts +53 -0
- package/dist/features/molecule/store.js +3 -0
- package/dist/features/molecule/types/api.d.ts +8 -0
- package/dist/features/molecule/types/api.js +1 -0
- package/dist/features/molecule/types/callbacks.d.ts +22 -0
- package/dist/features/molecule/types/callbacks.js +1 -0
- package/dist/features/molecule/types/config.d.ts +10 -0
- package/dist/features/molecule/types/config.js +1 -0
- package/dist/features/molecule/types/context.d.ts +11 -0
- package/dist/features/molecule/types/context.js +1 -0
- package/dist/features/molecule/types/locale.d.ts +9 -0
- package/dist/features/molecule/types/locale.js +1 -0
- package/dist/features/molecule/types/theme.d.ts +38 -0
- package/dist/features/molecule/types/theme.js +1 -0
- package/dist/features/molecule/types/translations.d.ts +10 -0
- package/dist/features/molecule/types/translations.js +1 -0
- package/dist/features/molecule/use-merge-global-config.d.ts +22 -0
- package/dist/features/molecule/use-merge-global-config.js +5 -0
- package/dist/features/molecule/use-molecule-config.d.ts +41 -0
- package/dist/features/molecule/use-molecule-config.js +6 -0
- package/dist/features/molecule/utils.d.ts +10 -0
- package/dist/features/molecule/utils.js +1 -0
- package/dist/i18n/config.d.ts +61 -0
- package/dist/i18n/config.js +1 -0
- package/dist/i18n/i18next.d.ts +11 -0
- package/dist/i18n/i18next.js +2 -0
- package/dist/i18n/utils.d.ts +11 -0
- package/dist/i18n/utils.js +6 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +20 -0
- package/dist/styles.css +6811 -0
- package/package.json +123 -0
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
import { Badge } from '@chatsdk-dev/ui/components/badge';
|
|
2
|
+
import { Collapsible, CollapsibleTrigger, CollapsibleContent } from '@chatsdk-dev/ui/components/collapsible';
|
|
3
|
+
import { cn } from '@chatsdk-dev/ui/lib/utils';
|
|
4
|
+
import { ChevronRightIcon } from 'lucide-react';
|
|
5
|
+
import { createContext, useContext, useMemo } from 'react';
|
|
6
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
7
|
+
|
|
8
|
+
var SchemaDisplayContext = createContext({
|
|
9
|
+
method: "GET",
|
|
10
|
+
path: ""
|
|
11
|
+
});
|
|
12
|
+
var methodStyles = {
|
|
13
|
+
DELETE: "bg-red-100 text-red-700 dark:bg-red-900/30 dark:text-red-400",
|
|
14
|
+
GET: "bg-green-100 text-green-700 dark:bg-green-900/30 dark:text-green-400",
|
|
15
|
+
PATCH: "bg-yellow-100 text-yellow-700 dark:bg-yellow-900/30 dark:text-yellow-400",
|
|
16
|
+
POST: "bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-400",
|
|
17
|
+
PUT: "bg-orange-100 text-orange-700 dark:bg-orange-900/30 dark:text-orange-400"
|
|
18
|
+
};
|
|
19
|
+
var SchemaDisplayHeader = ({
|
|
20
|
+
className,
|
|
21
|
+
children,
|
|
22
|
+
...props
|
|
23
|
+
}) => /* @__PURE__ */ jsx(
|
|
24
|
+
"div",
|
|
25
|
+
{
|
|
26
|
+
className: cn("flex items-center gap-3 border-b px-4 py-3", className),
|
|
27
|
+
...props,
|
|
28
|
+
children
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
var SchemaDisplayMethod = ({
|
|
32
|
+
className,
|
|
33
|
+
children,
|
|
34
|
+
...props
|
|
35
|
+
}) => {
|
|
36
|
+
const { method } = useContext(SchemaDisplayContext);
|
|
37
|
+
return /* @__PURE__ */ jsx(
|
|
38
|
+
Badge,
|
|
39
|
+
{
|
|
40
|
+
className: cn("font-mono text-xs", methodStyles[method], className),
|
|
41
|
+
variant: "secondary",
|
|
42
|
+
...props,
|
|
43
|
+
children: children ?? method
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
};
|
|
47
|
+
var SchemaDisplayPath = ({
|
|
48
|
+
className,
|
|
49
|
+
children,
|
|
50
|
+
...props
|
|
51
|
+
}) => {
|
|
52
|
+
const { path } = useContext(SchemaDisplayContext);
|
|
53
|
+
const highlightedPath = path.replaceAll(
|
|
54
|
+
/\{([^}]+)\}/g,
|
|
55
|
+
'<span class="text-blue-600 dark:text-blue-400">{$1}</span>'
|
|
56
|
+
);
|
|
57
|
+
return /* @__PURE__ */ jsx(
|
|
58
|
+
"span",
|
|
59
|
+
{
|
|
60
|
+
className: cn("font-mono text-sm", className),
|
|
61
|
+
dangerouslySetInnerHTML: { __html: children ?? highlightedPath },
|
|
62
|
+
...props
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
};
|
|
66
|
+
var SchemaDisplayDescription = ({
|
|
67
|
+
className,
|
|
68
|
+
children,
|
|
69
|
+
...props
|
|
70
|
+
}) => {
|
|
71
|
+
const { description } = useContext(SchemaDisplayContext);
|
|
72
|
+
return /* @__PURE__ */ jsx(
|
|
73
|
+
"p",
|
|
74
|
+
{
|
|
75
|
+
className: cn(
|
|
76
|
+
"border-b px-4 py-3 text-muted-foreground text-sm",
|
|
77
|
+
className
|
|
78
|
+
),
|
|
79
|
+
...props,
|
|
80
|
+
children: children ?? description
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
};
|
|
84
|
+
var SchemaDisplayContent = ({
|
|
85
|
+
className,
|
|
86
|
+
children,
|
|
87
|
+
...props
|
|
88
|
+
}) => /* @__PURE__ */ jsx("div", { className: cn("divide-y", className), ...props, children });
|
|
89
|
+
var SchemaDisplayParameter = ({
|
|
90
|
+
name,
|
|
91
|
+
type,
|
|
92
|
+
required,
|
|
93
|
+
description,
|
|
94
|
+
location,
|
|
95
|
+
className,
|
|
96
|
+
...props
|
|
97
|
+
}) => /* @__PURE__ */ jsxs("div", { className: cn("px-4 py-3 pl-10", className), ...props, children: [
|
|
98
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
99
|
+
/* @__PURE__ */ jsx("span", { className: "font-mono text-sm", children: name }),
|
|
100
|
+
/* @__PURE__ */ jsx(Badge, { className: "text-xs", variant: "outline", children: type }),
|
|
101
|
+
location && /* @__PURE__ */ jsx(Badge, { className: "text-xs", variant: "secondary", children: location }),
|
|
102
|
+
required && /* @__PURE__ */ jsx(
|
|
103
|
+
Badge,
|
|
104
|
+
{
|
|
105
|
+
className: "bg-red-100 text-red-700 text-xs dark:bg-red-900/30 dark:text-red-400",
|
|
106
|
+
variant: "secondary",
|
|
107
|
+
children: "required"
|
|
108
|
+
}
|
|
109
|
+
)
|
|
110
|
+
] }),
|
|
111
|
+
description && /* @__PURE__ */ jsx("p", { className: "mt-1 text-muted-foreground text-sm", children: description })
|
|
112
|
+
] });
|
|
113
|
+
var SchemaDisplayParameters = ({
|
|
114
|
+
className,
|
|
115
|
+
children,
|
|
116
|
+
...props
|
|
117
|
+
}) => {
|
|
118
|
+
const { parameters } = useContext(SchemaDisplayContext);
|
|
119
|
+
return /* @__PURE__ */ jsxs(Collapsible, { className: cn(className), defaultOpen: true, ...props, children: [
|
|
120
|
+
/* @__PURE__ */ jsxs(CollapsibleTrigger, { className: "group flex w-full items-center gap-2 px-4 py-3 text-left transition-colors hover:bg-muted/50", children: [
|
|
121
|
+
/* @__PURE__ */ jsx(ChevronRightIcon, { className: "size-4 shrink-0 text-muted-foreground transition-transform group-data-[state=open]:rotate-90" }),
|
|
122
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium text-sm", children: "Parameters" }),
|
|
123
|
+
/* @__PURE__ */ jsx(Badge, { className: "ml-auto text-xs", variant: "secondary", children: parameters?.length })
|
|
124
|
+
] }),
|
|
125
|
+
/* @__PURE__ */ jsx(CollapsibleContent, { children: /* @__PURE__ */ jsx("div", { className: "divide-y border-t", children: children ?? parameters?.map((param) => /* @__PURE__ */ jsx(SchemaDisplayParameter, { ...param }, param.name)) }) })
|
|
126
|
+
] });
|
|
127
|
+
};
|
|
128
|
+
var SchemaDisplayProperty = ({
|
|
129
|
+
name,
|
|
130
|
+
type,
|
|
131
|
+
required,
|
|
132
|
+
description,
|
|
133
|
+
properties,
|
|
134
|
+
items,
|
|
135
|
+
depth = 0,
|
|
136
|
+
className,
|
|
137
|
+
...props
|
|
138
|
+
}) => {
|
|
139
|
+
const hasChildren = properties || items;
|
|
140
|
+
const paddingLeft = 40 + depth * 16;
|
|
141
|
+
if (hasChildren) {
|
|
142
|
+
return /* @__PURE__ */ jsxs(Collapsible, { defaultOpen: depth < 2, children: [
|
|
143
|
+
/* @__PURE__ */ jsxs(
|
|
144
|
+
CollapsibleTrigger,
|
|
145
|
+
{
|
|
146
|
+
className: cn(
|
|
147
|
+
"group flex w-full items-center gap-2 py-3 text-left transition-colors hover:bg-muted/50",
|
|
148
|
+
className
|
|
149
|
+
),
|
|
150
|
+
style: { paddingLeft },
|
|
151
|
+
children: [
|
|
152
|
+
/* @__PURE__ */ jsx(ChevronRightIcon, { className: "size-4 shrink-0 text-muted-foreground transition-transform group-data-[state=open]:rotate-90" }),
|
|
153
|
+
/* @__PURE__ */ jsx("span", { className: "font-mono text-sm", children: name }),
|
|
154
|
+
/* @__PURE__ */ jsx(Badge, { className: "text-xs", variant: "outline", children: type }),
|
|
155
|
+
required && /* @__PURE__ */ jsx(
|
|
156
|
+
Badge,
|
|
157
|
+
{
|
|
158
|
+
className: "bg-red-100 text-red-700 text-xs dark:bg-red-900/30 dark:text-red-400",
|
|
159
|
+
variant: "secondary",
|
|
160
|
+
children: "required"
|
|
161
|
+
}
|
|
162
|
+
)
|
|
163
|
+
]
|
|
164
|
+
}
|
|
165
|
+
),
|
|
166
|
+
description && /* @__PURE__ */ jsx(
|
|
167
|
+
"p",
|
|
168
|
+
{
|
|
169
|
+
className: "pb-2 text-muted-foreground text-sm",
|
|
170
|
+
style: { paddingLeft: paddingLeft + 24 },
|
|
171
|
+
children: description
|
|
172
|
+
}
|
|
173
|
+
),
|
|
174
|
+
/* @__PURE__ */ jsx(CollapsibleContent, { children: /* @__PURE__ */ jsxs("div", { className: "divide-y border-t", children: [
|
|
175
|
+
properties?.map((prop) => /* @__PURE__ */ jsx(
|
|
176
|
+
SchemaDisplayProperty,
|
|
177
|
+
{
|
|
178
|
+
...prop,
|
|
179
|
+
depth: depth + 1
|
|
180
|
+
},
|
|
181
|
+
prop.name
|
|
182
|
+
)),
|
|
183
|
+
items && /* @__PURE__ */ jsx(
|
|
184
|
+
SchemaDisplayProperty,
|
|
185
|
+
{
|
|
186
|
+
...items,
|
|
187
|
+
depth: depth + 1,
|
|
188
|
+
name: `${name}[]`
|
|
189
|
+
}
|
|
190
|
+
)
|
|
191
|
+
] }) })
|
|
192
|
+
] });
|
|
193
|
+
}
|
|
194
|
+
return /* @__PURE__ */ jsxs(
|
|
195
|
+
"div",
|
|
196
|
+
{
|
|
197
|
+
className: cn("py-3 pr-4", className),
|
|
198
|
+
style: { paddingLeft },
|
|
199
|
+
...props,
|
|
200
|
+
children: [
|
|
201
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
202
|
+
/* @__PURE__ */ jsx("span", { className: "size-4" }),
|
|
203
|
+
/* @__PURE__ */ jsx("span", { className: "font-mono text-sm", children: name }),
|
|
204
|
+
/* @__PURE__ */ jsx(Badge, { className: "text-xs", variant: "outline", children: type }),
|
|
205
|
+
required && /* @__PURE__ */ jsx(
|
|
206
|
+
Badge,
|
|
207
|
+
{
|
|
208
|
+
className: "bg-red-100 text-red-700 text-xs dark:bg-red-900/30 dark:text-red-400",
|
|
209
|
+
variant: "secondary",
|
|
210
|
+
children: "required"
|
|
211
|
+
}
|
|
212
|
+
)
|
|
213
|
+
] }),
|
|
214
|
+
description && /* @__PURE__ */ jsx("p", { className: "mt-1 pl-6 text-muted-foreground text-sm", children: description })
|
|
215
|
+
]
|
|
216
|
+
}
|
|
217
|
+
);
|
|
218
|
+
};
|
|
219
|
+
var SchemaDisplayRequest = ({
|
|
220
|
+
className,
|
|
221
|
+
children,
|
|
222
|
+
...props
|
|
223
|
+
}) => {
|
|
224
|
+
const { requestBody } = useContext(SchemaDisplayContext);
|
|
225
|
+
return /* @__PURE__ */ jsxs(Collapsible, { className: cn(className), defaultOpen: true, ...props, children: [
|
|
226
|
+
/* @__PURE__ */ jsxs(CollapsibleTrigger, { className: "group flex w-full items-center gap-2 px-4 py-3 text-left transition-colors hover:bg-muted/50", children: [
|
|
227
|
+
/* @__PURE__ */ jsx(ChevronRightIcon, { className: "size-4 shrink-0 text-muted-foreground transition-transform group-data-[state=open]:rotate-90" }),
|
|
228
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium text-sm", children: "Request Body" })
|
|
229
|
+
] }),
|
|
230
|
+
/* @__PURE__ */ jsx(CollapsibleContent, { children: /* @__PURE__ */ jsx("div", { className: "border-t", children: children ?? requestBody?.map((prop) => /* @__PURE__ */ jsx(SchemaDisplayProperty, { ...prop, depth: 0 }, prop.name)) }) })
|
|
231
|
+
] });
|
|
232
|
+
};
|
|
233
|
+
var SchemaDisplayResponse = ({
|
|
234
|
+
className,
|
|
235
|
+
children,
|
|
236
|
+
...props
|
|
237
|
+
}) => {
|
|
238
|
+
const { responseBody } = useContext(SchemaDisplayContext);
|
|
239
|
+
return /* @__PURE__ */ jsxs(Collapsible, { className: cn(className), defaultOpen: true, ...props, children: [
|
|
240
|
+
/* @__PURE__ */ jsxs(CollapsibleTrigger, { className: "group flex w-full items-center gap-2 px-4 py-3 text-left transition-colors hover:bg-muted/50", children: [
|
|
241
|
+
/* @__PURE__ */ jsx(ChevronRightIcon, { className: "size-4 shrink-0 text-muted-foreground transition-transform group-data-[state=open]:rotate-90" }),
|
|
242
|
+
/* @__PURE__ */ jsx("span", { className: "font-medium text-sm", children: "Response" })
|
|
243
|
+
] }),
|
|
244
|
+
/* @__PURE__ */ jsx(CollapsibleContent, { children: /* @__PURE__ */ jsx("div", { className: "border-t", children: children ?? responseBody?.map((prop) => /* @__PURE__ */ jsx(SchemaDisplayProperty, { ...prop, depth: 0 }, prop.name)) }) })
|
|
245
|
+
] });
|
|
246
|
+
};
|
|
247
|
+
var SchemaDisplay = ({
|
|
248
|
+
method,
|
|
249
|
+
path,
|
|
250
|
+
description,
|
|
251
|
+
parameters,
|
|
252
|
+
requestBody,
|
|
253
|
+
responseBody,
|
|
254
|
+
className,
|
|
255
|
+
children,
|
|
256
|
+
...props
|
|
257
|
+
}) => {
|
|
258
|
+
const contextValue = useMemo(
|
|
259
|
+
() => ({
|
|
260
|
+
description,
|
|
261
|
+
method,
|
|
262
|
+
parameters,
|
|
263
|
+
path,
|
|
264
|
+
requestBody,
|
|
265
|
+
responseBody
|
|
266
|
+
}),
|
|
267
|
+
[description, method, parameters, path, requestBody, responseBody]
|
|
268
|
+
);
|
|
269
|
+
return /* @__PURE__ */ jsx(SchemaDisplayContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx(
|
|
270
|
+
"div",
|
|
271
|
+
{
|
|
272
|
+
className: cn(
|
|
273
|
+
"overflow-hidden rounded-lg border bg-background",
|
|
274
|
+
className
|
|
275
|
+
),
|
|
276
|
+
...props,
|
|
277
|
+
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
278
|
+
/* @__PURE__ */ jsx(SchemaDisplayHeader, { children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
279
|
+
/* @__PURE__ */ jsx(SchemaDisplayMethod, {}),
|
|
280
|
+
/* @__PURE__ */ jsx(SchemaDisplayPath, {})
|
|
281
|
+
] }) }),
|
|
282
|
+
description && /* @__PURE__ */ jsx(SchemaDisplayDescription, {}),
|
|
283
|
+
/* @__PURE__ */ jsxs(SchemaDisplayContent, { children: [
|
|
284
|
+
parameters && parameters.length > 0 && /* @__PURE__ */ jsx(SchemaDisplayParameters, {}),
|
|
285
|
+
requestBody && requestBody.length > 0 && /* @__PURE__ */ jsx(SchemaDisplayRequest, {}),
|
|
286
|
+
responseBody && responseBody.length > 0 && /* @__PURE__ */ jsx(SchemaDisplayResponse, {})
|
|
287
|
+
] })
|
|
288
|
+
] })
|
|
289
|
+
}
|
|
290
|
+
) });
|
|
291
|
+
};
|
|
292
|
+
var SchemaDisplayBody = ({
|
|
293
|
+
className,
|
|
294
|
+
children,
|
|
295
|
+
...props
|
|
296
|
+
}) => /* @__PURE__ */ jsx("div", { className: cn("divide-y", className), ...props, children });
|
|
297
|
+
var SchemaDisplayExample = ({
|
|
298
|
+
className,
|
|
299
|
+
children,
|
|
300
|
+
...props
|
|
301
|
+
}) => /* @__PURE__ */ jsx(
|
|
302
|
+
"pre",
|
|
303
|
+
{
|
|
304
|
+
className: cn(
|
|
305
|
+
"mx-4 mb-4 overflow-auto rounded-md bg-muted p-4 font-mono text-sm",
|
|
306
|
+
className
|
|
307
|
+
),
|
|
308
|
+
...props,
|
|
309
|
+
children
|
|
310
|
+
}
|
|
311
|
+
);
|
|
312
|
+
|
|
313
|
+
export { SchemaDisplay, SchemaDisplayBody, SchemaDisplayContent, SchemaDisplayDescription, SchemaDisplayExample, SchemaDisplayHeader, SchemaDisplayMethod, SchemaDisplayParameter, SchemaDisplayParameters, SchemaDisplayPath, SchemaDisplayProperty, SchemaDisplayRequest, SchemaDisplayResponse };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ElementType } from 'react';
|
|
3
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
interface TextShimmerProps {
|
|
6
|
+
children: string;
|
|
7
|
+
as?: ElementType;
|
|
8
|
+
className?: string;
|
|
9
|
+
duration?: number;
|
|
10
|
+
spread?: number;
|
|
11
|
+
}
|
|
12
|
+
declare const Shimmer: react.MemoExoticComponent<({ children, as: Component, className, duration, spread, }: TextShimmerProps) => react_jsx_runtime.JSX.Element>;
|
|
13
|
+
|
|
14
|
+
export { Shimmer, type TextShimmerProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Shimmer } from '../../chunk-NIC3MOMY.js';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText } from '@chatsdk-dev/ui/components/input-group';
|
|
3
|
+
import { ComponentProps } from 'react';
|
|
4
|
+
|
|
5
|
+
type SnippetProps = ComponentProps<typeof InputGroup> & {
|
|
6
|
+
code: string;
|
|
7
|
+
};
|
|
8
|
+
declare const Snippet: ({ code, className, children, ...props }: SnippetProps) => react_jsx_runtime.JSX.Element;
|
|
9
|
+
type SnippetAddonProps = ComponentProps<typeof InputGroupAddon>;
|
|
10
|
+
declare const SnippetAddon: (props: SnippetAddonProps) => react_jsx_runtime.JSX.Element;
|
|
11
|
+
type SnippetTextProps = ComponentProps<typeof InputGroupText>;
|
|
12
|
+
declare const SnippetText: ({ className, ...props }: SnippetTextProps) => react_jsx_runtime.JSX.Element;
|
|
13
|
+
type SnippetInputProps = Omit<ComponentProps<typeof InputGroupInput>, "readOnly" | "value">;
|
|
14
|
+
declare const SnippetInput: ({ className, ...props }: SnippetInputProps) => react_jsx_runtime.JSX.Element;
|
|
15
|
+
type SnippetCopyButtonProps = ComponentProps<typeof InputGroupButton> & {
|
|
16
|
+
onCopy?: () => void;
|
|
17
|
+
onError?: (error: Error) => void;
|
|
18
|
+
timeout?: number;
|
|
19
|
+
};
|
|
20
|
+
declare const SnippetCopyButton: ({ onCopy, onError, timeout, children, className, ...props }: SnippetCopyButtonProps) => react_jsx_runtime.JSX.Element;
|
|
21
|
+
|
|
22
|
+
export { Snippet, SnippetAddon, type SnippetAddonProps, SnippetCopyButton, type SnippetCopyButtonProps, SnippetInput, type SnippetInputProps, type SnippetProps, SnippetText, type SnippetTextProps };
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { InputGroup, InputGroupAddon, InputGroupText, InputGroupInput, InputGroupButton } from '@chatsdk-dev/ui/components/input-group';
|
|
2
|
+
import { cn } from '@chatsdk-dev/ui/lib/utils';
|
|
3
|
+
import { CheckIcon, CopyIcon } from 'lucide-react';
|
|
4
|
+
import { createContext, useMemo, useContext, useState, useRef, useCallback, useEffect } from 'react';
|
|
5
|
+
import { jsx } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
var SnippetContext = createContext({
|
|
8
|
+
code: ""
|
|
9
|
+
});
|
|
10
|
+
var Snippet = ({
|
|
11
|
+
code,
|
|
12
|
+
className,
|
|
13
|
+
children,
|
|
14
|
+
...props
|
|
15
|
+
}) => {
|
|
16
|
+
const contextValue = useMemo(() => ({ code }), [code]);
|
|
17
|
+
return /* @__PURE__ */ jsx(SnippetContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx(InputGroup, { className: cn("font-mono", className), ...props, children }) });
|
|
18
|
+
};
|
|
19
|
+
var SnippetAddon = (props) => /* @__PURE__ */ jsx(InputGroupAddon, { ...props });
|
|
20
|
+
var SnippetText = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
21
|
+
InputGroupText,
|
|
22
|
+
{
|
|
23
|
+
className: cn("pl-2 font-normal text-muted-foreground", className),
|
|
24
|
+
...props
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
var SnippetInput = ({ className, ...props }) => {
|
|
28
|
+
const { code } = useContext(SnippetContext);
|
|
29
|
+
return /* @__PURE__ */ jsx(
|
|
30
|
+
InputGroupInput,
|
|
31
|
+
{
|
|
32
|
+
className: cn("text-foreground", className),
|
|
33
|
+
readOnly: true,
|
|
34
|
+
value: code,
|
|
35
|
+
...props
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
};
|
|
39
|
+
var SnippetCopyButton = ({
|
|
40
|
+
onCopy,
|
|
41
|
+
onError,
|
|
42
|
+
timeout = 2e3,
|
|
43
|
+
children,
|
|
44
|
+
className,
|
|
45
|
+
...props
|
|
46
|
+
}) => {
|
|
47
|
+
const [isCopied, setIsCopied] = useState(false);
|
|
48
|
+
const timeoutRef = useRef(0);
|
|
49
|
+
const { code } = useContext(SnippetContext);
|
|
50
|
+
const copyToClipboard = useCallback(async () => {
|
|
51
|
+
if (typeof window === "undefined" || !navigator?.clipboard?.writeText) {
|
|
52
|
+
onError?.(new Error("Clipboard API not available"));
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
try {
|
|
56
|
+
if (!isCopied) {
|
|
57
|
+
await navigator.clipboard.writeText(code);
|
|
58
|
+
setIsCopied(true);
|
|
59
|
+
onCopy?.();
|
|
60
|
+
timeoutRef.current = window.setTimeout(
|
|
61
|
+
() => setIsCopied(false),
|
|
62
|
+
timeout
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
} catch (error) {
|
|
66
|
+
onError?.(error);
|
|
67
|
+
}
|
|
68
|
+
}, [code, onCopy, onError, timeout, isCopied]);
|
|
69
|
+
useEffect(
|
|
70
|
+
() => () => {
|
|
71
|
+
window.clearTimeout(timeoutRef.current);
|
|
72
|
+
},
|
|
73
|
+
[]
|
|
74
|
+
);
|
|
75
|
+
const Icon = isCopied ? CheckIcon : CopyIcon;
|
|
76
|
+
return /* @__PURE__ */ jsx(
|
|
77
|
+
InputGroupButton,
|
|
78
|
+
{
|
|
79
|
+
"aria-label": "Copy",
|
|
80
|
+
className,
|
|
81
|
+
onClick: copyToClipboard,
|
|
82
|
+
size: "icon-sm",
|
|
83
|
+
title: "Copy",
|
|
84
|
+
...props,
|
|
85
|
+
children: children ?? /* @__PURE__ */ jsx(Icon, { className: "size-3.5", size: 14 })
|
|
86
|
+
}
|
|
87
|
+
);
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
export { Snippet, SnippetAddon, SnippetCopyButton, SnippetInput, SnippetText };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { CollapsibleContent, CollapsibleTrigger } from '@chatsdk-dev/ui/components/collapsible';
|
|
3
|
+
import { ComponentProps } from 'react';
|
|
4
|
+
|
|
5
|
+
type SourcesProps = ComponentProps<"div">;
|
|
6
|
+
declare const Sources: ({ className, ...props }: SourcesProps) => react_jsx_runtime.JSX.Element;
|
|
7
|
+
type SourcesTriggerProps = ComponentProps<typeof CollapsibleTrigger> & {
|
|
8
|
+
count: number;
|
|
9
|
+
};
|
|
10
|
+
declare const SourcesTrigger: ({ className, count, children, ...props }: SourcesTriggerProps) => react_jsx_runtime.JSX.Element;
|
|
11
|
+
type SourcesContentProps = ComponentProps<typeof CollapsibleContent>;
|
|
12
|
+
declare const SourcesContent: ({ className, ...props }: SourcesContentProps) => react_jsx_runtime.JSX.Element;
|
|
13
|
+
type SourceProps = ComponentProps<"a">;
|
|
14
|
+
declare const Source: ({ href, title, children, ...props }: SourceProps) => react_jsx_runtime.JSX.Element;
|
|
15
|
+
|
|
16
|
+
export { Source, type SourceProps, Sources, SourcesContent, type SourcesContentProps, type SourcesProps, SourcesTrigger, type SourcesTriggerProps };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Collapsible, CollapsibleTrigger, CollapsibleContent } from '@chatsdk-dev/ui/components/collapsible';
|
|
2
|
+
import { cn } from '@chatsdk-dev/ui/lib/utils';
|
|
3
|
+
import { ChevronDownIcon, BookIcon } from 'lucide-react';
|
|
4
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
var Sources = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
7
|
+
Collapsible,
|
|
8
|
+
{
|
|
9
|
+
className: cn("not-prose mb-4 text-primary text-xs", className),
|
|
10
|
+
...props
|
|
11
|
+
}
|
|
12
|
+
);
|
|
13
|
+
var SourcesTrigger = ({
|
|
14
|
+
className,
|
|
15
|
+
count,
|
|
16
|
+
children,
|
|
17
|
+
...props
|
|
18
|
+
}) => /* @__PURE__ */ jsx(
|
|
19
|
+
CollapsibleTrigger,
|
|
20
|
+
{
|
|
21
|
+
className: cn("flex items-center gap-2", className),
|
|
22
|
+
...props,
|
|
23
|
+
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
24
|
+
/* @__PURE__ */ jsxs("p", { className: "font-medium", children: [
|
|
25
|
+
"Used ",
|
|
26
|
+
count,
|
|
27
|
+
" sources"
|
|
28
|
+
] }),
|
|
29
|
+
/* @__PURE__ */ jsx(ChevronDownIcon, { className: "h-4 w-4" })
|
|
30
|
+
] })
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
var SourcesContent = ({
|
|
34
|
+
className,
|
|
35
|
+
...props
|
|
36
|
+
}) => /* @__PURE__ */ jsx(
|
|
37
|
+
CollapsibleContent,
|
|
38
|
+
{
|
|
39
|
+
className: cn(
|
|
40
|
+
"mt-3 flex w-fit flex-col gap-2",
|
|
41
|
+
"data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",
|
|
42
|
+
className
|
|
43
|
+
),
|
|
44
|
+
...props
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
var Source = ({ href, title, children, ...props }) => /* @__PURE__ */ jsx(
|
|
48
|
+
"a",
|
|
49
|
+
{
|
|
50
|
+
className: "flex items-center gap-2",
|
|
51
|
+
href,
|
|
52
|
+
rel: "noreferrer",
|
|
53
|
+
target: "_blank",
|
|
54
|
+
...props,
|
|
55
|
+
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
56
|
+
/* @__PURE__ */ jsx(BookIcon, { className: "h-4 w-4" }),
|
|
57
|
+
/* @__PURE__ */ jsx("span", { className: "block font-medium", children: title })
|
|
58
|
+
] })
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
|
|
62
|
+
export { Source, Sources, SourcesContent, SourcesTrigger };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { Button } from '@chatsdk-dev/ui/components/button';
|
|
3
|
+
import { ComponentProps } from 'react';
|
|
4
|
+
|
|
5
|
+
interface SpeechRecognition extends EventTarget {
|
|
6
|
+
continuous: boolean;
|
|
7
|
+
interimResults: boolean;
|
|
8
|
+
lang: string;
|
|
9
|
+
start(): void;
|
|
10
|
+
stop(): void;
|
|
11
|
+
onstart: ((this: SpeechRecognition, ev: Event) => void) | null;
|
|
12
|
+
onend: ((this: SpeechRecognition, ev: Event) => void) | null;
|
|
13
|
+
onresult: ((this: SpeechRecognition, ev: SpeechRecognitionEvent) => void) | null;
|
|
14
|
+
onerror: ((this: SpeechRecognition, ev: SpeechRecognitionErrorEvent) => void) | null;
|
|
15
|
+
}
|
|
16
|
+
interface SpeechRecognitionEvent extends Event {
|
|
17
|
+
results: SpeechRecognitionResultList;
|
|
18
|
+
resultIndex: number;
|
|
19
|
+
}
|
|
20
|
+
interface SpeechRecognitionResultList {
|
|
21
|
+
readonly length: number;
|
|
22
|
+
item(index: number): SpeechRecognitionResult;
|
|
23
|
+
[index: number]: SpeechRecognitionResult;
|
|
24
|
+
}
|
|
25
|
+
interface SpeechRecognitionResult {
|
|
26
|
+
readonly length: number;
|
|
27
|
+
item(index: number): SpeechRecognitionAlternative;
|
|
28
|
+
[index: number]: SpeechRecognitionAlternative;
|
|
29
|
+
isFinal: boolean;
|
|
30
|
+
}
|
|
31
|
+
interface SpeechRecognitionAlternative {
|
|
32
|
+
transcript: string;
|
|
33
|
+
confidence: number;
|
|
34
|
+
}
|
|
35
|
+
interface SpeechRecognitionErrorEvent extends Event {
|
|
36
|
+
error: string;
|
|
37
|
+
}
|
|
38
|
+
declare global {
|
|
39
|
+
interface Window {
|
|
40
|
+
SpeechRecognition: new () => SpeechRecognition;
|
|
41
|
+
webkitSpeechRecognition: new () => SpeechRecognition;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
type SpeechInputProps = ComponentProps<typeof Button> & {
|
|
45
|
+
onTranscriptionChange?: (text: string) => void;
|
|
46
|
+
/**
|
|
47
|
+
* Callback for when audio is recorded using MediaRecorder fallback.
|
|
48
|
+
* This is called in browsers that don't support the Web Speech API (Firefox, Safari).
|
|
49
|
+
* The callback receives an audio Blob that should be sent to a transcription service.
|
|
50
|
+
* Return the transcribed text, which will be passed to onTranscriptionChange.
|
|
51
|
+
*/
|
|
52
|
+
onAudioRecorded?: (audioBlob: Blob) => Promise<string>;
|
|
53
|
+
lang?: string;
|
|
54
|
+
};
|
|
55
|
+
declare const SpeechInput: ({ className, onTranscriptionChange, onAudioRecorded, lang, ...props }: SpeechInputProps) => react_jsx_runtime.JSX.Element;
|
|
56
|
+
|
|
57
|
+
export { SpeechInput, type SpeechInputProps };
|