@chatsdk-dev/elements 0.0.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/api-CIYPz72L.d.ts +10 -0
- package/dist/api-CIYPz72L.d.ts.map +1 -0
- package/dist/callbacks-PIvHXeEI.d.ts +24 -0
- package/dist/callbacks-PIvHXeEI.d.ts.map +1 -0
- package/dist/chat-element-CCsDDFif.js +441 -0
- package/dist/chat-element-CCsDDFif.js.map +1 -0
- package/dist/chat-element-CSpa62Te.d.ts +53 -0
- package/dist/chat-element-CSpa62Te.d.ts.map +1 -0
- package/dist/chatsdk-provider-BhlChLFd.d.ts +15 -0
- package/dist/chatsdk-provider-BhlChLFd.d.ts.map +1 -0
- package/dist/common/utils.d.ts +14 -0
- package/dist/common/utils.d.ts.map +1 -0
- package/dist/common/utils.js +26 -0
- package/dist/common/utils.js.map +1 -0
- package/dist/components/info-card.d.ts +20 -11
- package/dist/components/info-card.d.ts.map +1 -0
- package/dist/components/info-card.js +38 -1
- package/dist/components/info-card.js.map +1 -0
- package/dist/config-BigIL6TQ.js +29 -0
- package/dist/config-BigIL6TQ.js.map +1 -0
- package/dist/config-CqihvSgz.d.ts +150 -0
- package/dist/config-CqihvSgz.d.ts.map +1 -0
- package/dist/config-D_jVTH_D.d.ts +58 -0
- package/dist/config-D_jVTH_D.d.ts.map +1 -0
- package/dist/context-aSaHw-ac.d.ts +13 -0
- package/dist/context-aSaHw-ac.d.ts.map +1 -0
- package/dist/element-provider-C_nBsftD.d.ts +40 -0
- package/dist/element-provider-C_nBsftD.d.ts.map +1 -0
- package/dist/features/chat/chat-card.d.ts +5 -3
- package/dist/features/chat/chat-card.d.ts.map +1 -0
- package/dist/features/chat/chat-card.js +2 -14
- package/dist/features/chat/chat-element.d.ts +2 -0
- package/dist/features/chat/chat-element.js +2 -0
- package/dist/features/chat/chat-header/chat-header.d.ts +8 -4
- package/dist/features/chat/chat-header/chat-header.d.ts.map +1 -0
- package/dist/features/chat/chat-header/chat-header.js +2 -14
- package/dist/features/chat/chat-header/chat-menu.d.ts +5 -3
- package/dist/features/chat/chat-header/chat-menu.d.ts.map +1 -0
- package/dist/features/chat/chat-header/chat-menu.js +29 -2
- package/dist/features/chat/chat-header/chat-menu.js.map +1 -0
- package/dist/features/chat/chat-history/chat-history-empty.d.ts +5 -3
- package/dist/features/chat/chat-history/chat-history-empty.d.ts.map +1 -0
- package/dist/features/chat/chat-history/chat-history-empty.js +24 -1
- package/dist/features/chat/chat-history/chat-history-empty.js.map +1 -0
- package/dist/features/chat/chat-history/chat-history.d.ts +5 -3
- package/dist/features/chat/chat-history/chat-history.d.ts.map +1 -0
- package/dist/features/chat/chat-history/chat-history.js +2 -14
- package/dist/features/chat/chat-main/chat-main.d.ts +10 -0
- package/dist/features/chat/chat-main/chat-main.d.ts.map +1 -0
- package/dist/features/chat/chat-main/chat-main.js +3 -0
- package/dist/features/chat/chat-main/use-chat.d.ts +23 -0
- package/dist/features/chat/chat-main/use-chat.d.ts.map +1 -0
- package/dist/features/chat/chat-main/use-chat.js +3 -0
- package/dist/features/chat/chat-main/use-initial-messages.d.ts +22 -0
- package/dist/features/chat/chat-main/use-initial-messages.d.ts.map +1 -0
- package/dist/features/chat/chat-main/use-initial-messages.js +2 -0
- package/dist/features/chat/chat-prompt-input.d.ts +20 -12
- package/dist/features/chat/chat-prompt-input.d.ts.map +1 -0
- package/dist/features/chat/chat-prompt-input.js +3 -14
- package/dist/features/chat/chat.context.d.ts +17 -15
- package/dist/features/chat/chat.context.d.ts.map +1 -0
- package/dist/features/chat/chat.context.js +9 -12
- package/dist/features/chat/chat.context.js.map +1 -0
- package/dist/features/chat/index.d.ts +2 -14
- package/dist/features/chat/index.js +2 -14
- package/dist/features/chat/queries/query-keys.d.ts +7 -5
- package/dist/features/chat/queries/query-keys.d.ts.map +1 -0
- package/dist/features/chat/queries/query-keys.js +19 -1
- package/dist/features/chat/queries/query-keys.js.map +1 -0
- package/dist/features/chat/queries/use-create-conversation-mutation.d.ts +27 -23
- package/dist/features/chat/queries/use-create-conversation-mutation.d.ts.map +1 -0
- package/dist/features/chat/queries/use-create-conversation-mutation.js +17 -36
- package/dist/features/chat/queries/use-create-conversation-mutation.js.map +1 -0
- package/dist/features/chat/queries/use-get-chat-query.d.ts +9 -5
- package/dist/features/chat/queries/use-get-chat-query.d.ts.map +1 -0
- package/dist/features/chat/queries/use-get-chat-query.js +2 -14
- package/dist/features/chat/queries/use-get-conversation-query.d.ts +56 -46
- package/dist/features/chat/queries/use-get-conversation-query.d.ts.map +1 -0
- package/dist/features/chat/queries/use-get-conversation-query.js +2 -14
- package/dist/features/chat/queries/use-list-conversations-query.d.ts +27 -23
- package/dist/features/chat/queries/use-list-conversations-query.d.ts.map +1 -0
- package/dist/features/chat/queries/use-list-conversations-query.js +2 -14
- package/dist/features/chat/store.d.ts +10 -8
- package/dist/features/chat/store.d.ts.map +1 -0
- package/dist/features/chat/store.js +15 -1
- package/dist/features/chat/store.js.map +1 -0
- package/dist/features/chat/utils.d.ts +4 -2
- package/dist/features/chat/utils.d.ts.map +1 -0
- package/dist/features/chat/utils.js +15 -1
- package/dist/features/chat/utils.js.map +1 -0
- package/dist/features/data-fetching/use-api-client.d.ts +5 -3
- package/dist/features/data-fetching/use-api-client.d.ts.map +1 -0
- package/dist/features/data-fetching/use-api-client.js +2 -14
- package/dist/features/element/chatsdk-provider.d.ts +2 -0
- package/dist/features/element/chatsdk-provider.js +23 -0
- package/dist/features/element/chatsdk-provider.js.map +1 -0
- package/dist/features/element/constants.d.ts +5 -0
- package/dist/features/element/constants.d.ts.map +1 -0
- package/dist/features/element/constants.js +6 -0
- package/dist/features/element/constants.js.map +1 -0
- package/dist/features/element/element-provider.d.ts +2 -0
- package/dist/features/element/element-provider.js +83 -0
- package/dist/features/element/element-provider.js.map +1 -0
- package/dist/features/element/store.d.ts +2 -0
- package/dist/features/element/store.js +112 -0
- package/dist/features/element/store.js.map +1 -0
- package/dist/features/element/types/api.d.ts +2 -0
- package/dist/features/element/types/api.js +1 -0
- package/dist/features/element/types/callbacks.d.ts +2 -0
- package/dist/features/element/types/callbacks.js +1 -0
- package/dist/features/element/types/config.d.ts +2 -0
- package/dist/features/element/types/config.js +1 -0
- package/dist/features/element/types/context.d.ts +2 -0
- package/dist/features/element/types/context.js +1 -0
- package/dist/features/element/types/locale.d.ts +2 -0
- package/dist/features/element/types/locale.js +1 -0
- package/dist/features/element/types/theme.d.ts +2 -0
- package/dist/features/element/types/theme.js +1 -0
- package/dist/features/element/types/translations.d.ts +2 -0
- package/dist/features/element/types/translations.js +1 -0
- package/dist/features/element/use-element-config.d.ts +40 -0
- package/dist/features/element/use-element-config.d.ts.map +1 -0
- package/dist/features/element/use-element-config.js +39 -0
- package/dist/features/element/use-element-config.js.map +1 -0
- package/dist/features/element/use-merge-global-config.d.ts +20 -0
- package/dist/features/element/use-merge-global-config.d.ts.map +1 -0
- package/dist/features/element/use-merge-global-config.js +34 -0
- package/dist/features/element/use-merge-global-config.js.map +1 -0
- package/dist/features/element/utils.d.ts +2 -0
- package/dist/features/element/utils.js +86 -0
- package/dist/features/element/utils.js.map +1 -0
- package/dist/features/logger/logger.d.ts +2 -9
- package/dist/features/logger/logger.js +15 -1
- package/dist/features/logger/logger.js.map +1 -0
- package/dist/i18n/config.d.ts +2 -61
- package/dist/i18n/config.js +2 -1
- package/dist/i18n/i18next.d.ts +1382 -10
- package/dist/i18n/i18next.d.ts.map +1 -0
- package/dist/i18n/i18next.js +27 -2
- package/dist/i18n/i18next.js.map +1 -0
- package/dist/i18n/utils.d.ts +4 -3
- package/dist/i18n/utils.d.ts.map +1 -0
- package/dist/i18n/utils.js +10 -3
- package/dist/i18n/utils.js.map +1 -0
- package/dist/index.d.ts +5 -20
- package/dist/index.js +68 -20
- package/dist/index.js.map +1 -0
- package/dist/locale-W5Kyyi4X.d.ts +11 -0
- package/dist/locale-W5Kyyi4X.d.ts.map +1 -0
- package/dist/logger-BvmhODdq.d.ts +11 -0
- package/dist/logger-BvmhODdq.d.ts.map +1 -0
- package/dist/store-CGX9oRlE.d.ts +46 -0
- package/dist/store-CGX9oRlE.d.ts.map +1 -0
- package/dist/styles.css +1954 -1963
- package/dist/theme-Cb-RBWbR.d.ts +38 -0
- package/dist/theme-Cb-RBWbR.d.ts.map +1 -0
- package/package.json +18 -50
- package/dist/chunk-2LHKM7RD.js +0 -14
- package/dist/chunk-5UMYP6MD.js +0 -10
- package/dist/chunk-AP4MG32M.js +0 -36
- package/dist/chunk-CFM57HOS.js +0 -358
- package/dist/chunk-EGIUE7H2.js +0 -37
- package/dist/chunk-M5OONVIO.js +0 -90
- package/dist/chunk-MXTBCHYC.js +0 -31
- package/dist/chunk-NIC3MOMY.js +0 -55
- package/dist/chunk-QTRMNIG3.js +0 -83
- package/dist/chunk-R7G3RQLU.js +0 -36
- package/dist/chunk-RJG5D2TM.js +0 -113
- package/dist/chunk-SLJNKQ2G.js +0 -125
- package/dist/chunk-TDEFIW2L.js +0 -9
- package/dist/chunk-TDP6D7U7.js +0 -551
- package/dist/chunk-V2ITXC65.js +0 -24
- package/dist/chunk-VS55HRUS.js +0 -16
- package/dist/chunk-VYDYCGJL.js +0 -25
- package/dist/chunk-X5YUF2YM.js +0 -113
- package/dist/chunk-YX46JVQN.js +0 -78
- package/dist/chunk-YXAMLTTT.js +0 -16
- package/dist/chunk-YXFVHSY4.js +0 -51
- package/dist/chunk-ZCSZX3OI.js +0 -4
- package/dist/common/use-copy-to-clipboard.d.ts +0 -3
- package/dist/common/use-copy-to-clipboard.js +0 -33
- package/dist/common/utilts.d.ts +0 -8
- package/dist/common/utilts.js +0 -28
- package/dist/components/ai-elements/actions.d.ts +0 -13
- package/dist/components/ai-elements/actions.js +0 -42
- package/dist/components/ai-elements/agent.d.ts +0 -31
- package/dist/components/ai-elements/agent.js +0 -77
- package/dist/components/ai-elements/artifact.d.ts +0 -27
- package/dist/components/ai-elements/artifact.js +0 -108
- package/dist/components/ai-elements/attachments.d.ts +0 -57
- package/dist/components/ai-elements/attachments.js +0 -258
- package/dist/components/ai-elements/audio-player.d.ts +0 -33
- package/dist/components/ai-elements/audio-player.js +0 -199
- package/dist/components/ai-elements/canvas.d.ts +0 -10
- package/dist/components/ai-elements/canvas.js +0 -24
- package/dist/components/ai-elements/chain-of-thought.d.ts +0 -34
- package/dist/components/ai-elements/chain-of-thought.js +0 -159
- package/dist/components/ai-elements/checkpoint.d.ts +0 -16
- package/dist/components/ai-elements/checkpoint.js +0 -47
- package/dist/components/ai-elements/code-block.d.ts +0 -48
- package/dist/components/ai-elements/code-block.js +0 -1
- package/dist/components/ai-elements/commit.d.ts +0 -68
- package/dist/components/ai-elements/commit.js +0 -314
- package/dist/components/ai-elements/confirmation.d.ts +0 -52
- package/dist/components/ai-elements/confirmation.js +0 -76
- package/dist/components/ai-elements/connection.d.ts +0 -5
- package/dist/components/ai-elements/connection.js +0 -34
- package/dist/components/ai-elements/context.d.ts +0 -36
- package/dist/components/ai-elements/context.js +0 -320
- package/dist/components/ai-elements/controls.d.ts +0 -8
- package/dist/components/ai-elements/controls.js +0 -17
- package/dist/components/ai-elements/conversation.d.ts +0 -27
- package/dist/components/ai-elements/conversation.js +0 -119
- package/dist/components/ai-elements/edge.d.ts +0 -9
- package/dist/components/ai-elements/edge.js +0 -111
- package/dist/components/ai-elements/environment-variables.d.ts +0 -42
- package/dist/components/ai-elements/environment-variables.js +0 -208
- package/dist/components/ai-elements/file-tree.d.ts +0 -30
- package/dist/components/ai-elements/file-tree.js +0 -212
- package/dist/components/ai-elements/image.d.ts +0 -10
- package/dist/components/ai-elements/image.js +0 -23
- package/dist/components/ai-elements/inline-citation.d.ts +0 -42
- package/dist/components/ai-elements/inline-citation.js +0 -203
- package/dist/components/ai-elements/jsx-preview.d.ts +0 -33
- package/dist/components/ai-elements/jsx-preview.js +0 -206
- package/dist/components/ai-elements/loader.d.ts +0 -9
- package/dist/components/ai-elements/loader.js +0 -115
- package/dist/components/ai-elements/message.d.ts +0 -42
- package/dist/components/ai-elements/message.js +0 -259
- package/dist/components/ai-elements/mic-selector.d.ts +0 -49
- package/dist/components/ai-elements/mic-selector.js +0 -252
- package/dist/components/ai-elements/model-selector.d.ts +0 -39
- package/dist/components/ai-elements/model-selector.js +0 -73
- package/dist/components/ai-elements/node.d.ts +0 -25
- package/dist/components/ai-elements/node.js +0 -41
- package/dist/components/ai-elements/open-in-chat.d.ts +0 -32
- package/dist/components/ai-elements/open-in-chat.js +0 -366
- package/dist/components/ai-elements/package-info.d.ts +0 -32
- package/dist/components/ai-elements/package-info.js +0 -162
- package/dist/components/ai-elements/panel.d.ts +0 -8
- package/dist/components/ai-elements/panel.js +0 -17
- package/dist/components/ai-elements/persona.d.ts +0 -50
- package/dist/components/ai-elements/persona.js +0 -209
- package/dist/components/ai-elements/plan.d.ts +0 -29
- package/dist/components/ai-elements/plan.js +0 -95
- package/dist/components/ai-elements/prompt-input.d.ts +0 -153
- package/dist/components/ai-elements/prompt-input.js +0 -939
- package/dist/components/ai-elements/queue.d.ts +0 -65
- package/dist/components/ai-elements/queue.js +0 -179
- package/dist/components/ai-elements/reasoning.d.ts +0 -30
- package/dist/components/ai-elements/reasoning.js +0 -161
- package/dist/components/ai-elements/response.d.ts +0 -9
- package/dist/components/ai-elements/response.js +0 -33
- package/dist/components/ai-elements/sandbox.d.ts +0 -28
- package/dist/components/ai-elements/sandbox.js +0 -98
- package/dist/components/ai-elements/schema-display.d.ts +0 -58
- package/dist/components/ai-elements/schema-display.js +0 -313
- package/dist/components/ai-elements/shimmer.d.ts +0 -14
- package/dist/components/ai-elements/shimmer.js +0 -1
- package/dist/components/ai-elements/snippet.d.ts +0 -22
- package/dist/components/ai-elements/snippet.js +0 -90
- package/dist/components/ai-elements/sources.d.ts +0 -16
- package/dist/components/ai-elements/sources.js +0 -62
- package/dist/components/ai-elements/speech-input.d.ts +0 -57
- package/dist/components/ai-elements/speech-input.js +0 -206
- package/dist/components/ai-elements/stack-trace.d.ts +0 -42
- package/dist/components/ai-elements/stack-trace.js +0 -377
- package/dist/components/ai-elements/suggestion.d.ts +0 -14
- package/dist/components/ai-elements/suggestion.js +0 -41
- package/dist/components/ai-elements/task.d.ts +0 -18
- package/dist/components/ai-elements/task.js +0 -60
- package/dist/components/ai-elements/terminal.d.ts +0 -31
- package/dist/components/ai-elements/terminal.js +0 -203
- package/dist/components/ai-elements/test-results.d.ts +0 -61
- package/dist/components/ai-elements/test-results.js +0 -349
- package/dist/components/ai-elements/tool.d.ts +0 -35
- package/dist/components/ai-elements/tool.js +0 -2
- package/dist/components/ai-elements/toolbar.d.ts +0 -8
- package/dist/components/ai-elements/toolbar.js +0 -18
- package/dist/components/ai-elements/transcription.d.ts +0 -19
- package/dist/components/ai-elements/transcription.js +0 -90
- package/dist/components/ai-elements/voice-selector.d.ts +0 -66
- package/dist/components/ai-elements/voice-selector.js +0 -332
- package/dist/components/ai-elements/web-preview.d.ts +0 -38
- package/dist/components/ai-elements/web-preview.js +0 -214
- package/dist/components/responsive-alert-dialog.d.ts +0 -19
- package/dist/components/responsive-alert-dialog.js +0 -1
- package/dist/components/responsive-dialog.d.ts +0 -14
- package/dist/components/responsive-dialog.js +0 -1
- package/dist/config-IcWUmjwj.d.ts +0 -239
- package/dist/features/chat/chat-element/chat-element.d.ts +0 -8
- package/dist/features/chat/chat-element/chat-element.js +0 -14
- package/dist/features/chat/chat-element/use-chat.d.ts +0 -21
- package/dist/features/chat/chat-element/use-chat.js +0 -14
- package/dist/features/chat/chat-element/use-initial-messages.d.ts +0 -20
- package/dist/features/chat/chat-element/use-initial-messages.js +0 -14
- package/dist/features/chat/chat-message.d.ts +0 -10
- package/dist/features/chat/chat-message.js +0 -1
- package/dist/features/chat/chat-molecule.d.ts +0 -35
- package/dist/features/chat/chat-molecule.js +0 -14
- package/dist/features/molecule/chatsdk-provider.d.ts +0 -19
- package/dist/features/molecule/chatsdk-provider.js +0 -26
- package/dist/features/molecule/constants.d.ts +0 -3
- package/dist/features/molecule/constants.js +0 -1
- package/dist/features/molecule/molecule-provider.d.ts +0 -39
- package/dist/features/molecule/molecule-provider.js +0 -1
- package/dist/features/molecule/store.d.ts +0 -53
- package/dist/features/molecule/store.js +0 -3
- package/dist/features/molecule/types/api.d.ts +0 -8
- package/dist/features/molecule/types/api.js +0 -1
- package/dist/features/molecule/types/callbacks.d.ts +0 -22
- package/dist/features/molecule/types/callbacks.js +0 -1
- package/dist/features/molecule/types/config.d.ts +0 -10
- package/dist/features/molecule/types/config.js +0 -1
- package/dist/features/molecule/types/context.d.ts +0 -11
- package/dist/features/molecule/types/context.js +0 -1
- package/dist/features/molecule/types/locale.d.ts +0 -9
- package/dist/features/molecule/types/locale.js +0 -1
- package/dist/features/molecule/types/theme.d.ts +0 -38
- package/dist/features/molecule/types/theme.js +0 -1
- package/dist/features/molecule/types/translations.d.ts +0 -10
- package/dist/features/molecule/types/translations.js +0 -1
- package/dist/features/molecule/use-merge-global-config.d.ts +0 -22
- package/dist/features/molecule/use-merge-global-config.js +0 -5
- package/dist/features/molecule/use-molecule-config.d.ts +0 -41
- package/dist/features/molecule/use-molecule-config.js +0 -6
- package/dist/features/molecule/utils.d.ts +0 -10
- package/dist/features/molecule/utils.js +0 -1
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
import { cn } from '@chatsdk-dev/ui/lib/utils';
|
|
2
|
-
import { useViewModel, useViewModelInstance, useViewModelInstanceColor, useRive, useStateMachineInput } from '@rive-app/react-webgl2';
|
|
3
|
-
import { memo, useEffect, useRef, useMemo, useState } from 'react';
|
|
4
|
-
import { jsx } from 'react/jsx-runtime';
|
|
5
|
-
|
|
6
|
-
var useStrictModeSafeInit = () => {
|
|
7
|
-
const [ready, setReady] = useState(false);
|
|
8
|
-
useEffect(() => {
|
|
9
|
-
const id = requestAnimationFrame(() => setReady(true));
|
|
10
|
-
return () => {
|
|
11
|
-
cancelAnimationFrame(id);
|
|
12
|
-
setReady(false);
|
|
13
|
-
};
|
|
14
|
-
}, []);
|
|
15
|
-
return ready;
|
|
16
|
-
};
|
|
17
|
-
var stateMachine = "default";
|
|
18
|
-
var sources = {
|
|
19
|
-
command: {
|
|
20
|
-
dynamicColor: true,
|
|
21
|
-
hasModel: true,
|
|
22
|
-
source: "https://ejiidnob33g9ap1r.public.blob.vercel-storage.com/command-2.0.riv"
|
|
23
|
-
},
|
|
24
|
-
glint: {
|
|
25
|
-
dynamicColor: true,
|
|
26
|
-
hasModel: true,
|
|
27
|
-
source: "https://ejiidnob33g9ap1r.public.blob.vercel-storage.com/glint-2.0.riv"
|
|
28
|
-
},
|
|
29
|
-
halo: {
|
|
30
|
-
dynamicColor: true,
|
|
31
|
-
hasModel: true,
|
|
32
|
-
source: "https://ejiidnob33g9ap1r.public.blob.vercel-storage.com/halo-2.0.riv"
|
|
33
|
-
},
|
|
34
|
-
mana: {
|
|
35
|
-
dynamicColor: false,
|
|
36
|
-
hasModel: true,
|
|
37
|
-
source: "https://ejiidnob33g9ap1r.public.blob.vercel-storage.com/mana-2.0.riv"
|
|
38
|
-
},
|
|
39
|
-
obsidian: {
|
|
40
|
-
dynamicColor: true,
|
|
41
|
-
hasModel: true,
|
|
42
|
-
source: "https://ejiidnob33g9ap1r.public.blob.vercel-storage.com/obsidian-2.0.riv"
|
|
43
|
-
},
|
|
44
|
-
opal: {
|
|
45
|
-
dynamicColor: false,
|
|
46
|
-
hasModel: false,
|
|
47
|
-
source: "https://ejiidnob33g9ap1r.public.blob.vercel-storage.com/orb-1.2.riv"
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
var getCurrentTheme = () => {
|
|
51
|
-
if (typeof window !== "undefined") {
|
|
52
|
-
if (document.documentElement.classList.contains("dark")) {
|
|
53
|
-
return "dark";
|
|
54
|
-
}
|
|
55
|
-
if (window.matchMedia?.("(prefers-color-scheme: dark)").matches) {
|
|
56
|
-
return "dark";
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
return "light";
|
|
60
|
-
};
|
|
61
|
-
var useTheme = (enabled) => {
|
|
62
|
-
const [theme, setTheme] = useState(getCurrentTheme);
|
|
63
|
-
useEffect(() => {
|
|
64
|
-
if (!enabled) {
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
|
-
const observer = new MutationObserver(() => {
|
|
68
|
-
setTheme(getCurrentTheme());
|
|
69
|
-
});
|
|
70
|
-
observer.observe(document.documentElement, {
|
|
71
|
-
attributeFilter: ["class"],
|
|
72
|
-
attributes: true
|
|
73
|
-
});
|
|
74
|
-
let mql = null;
|
|
75
|
-
const handleMediaChange = () => {
|
|
76
|
-
setTheme(getCurrentTheme());
|
|
77
|
-
};
|
|
78
|
-
if (window.matchMedia) {
|
|
79
|
-
mql = window.matchMedia("(prefers-color-scheme: dark)");
|
|
80
|
-
mql.addEventListener("change", handleMediaChange);
|
|
81
|
-
}
|
|
82
|
-
return () => {
|
|
83
|
-
observer.disconnect();
|
|
84
|
-
if (mql) {
|
|
85
|
-
mql.removeEventListener("change", handleMediaChange);
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
}, [enabled]);
|
|
89
|
-
return theme;
|
|
90
|
-
};
|
|
91
|
-
var PersonaWithModel = memo(
|
|
92
|
-
({ rive, source, children }) => {
|
|
93
|
-
const theme = useTheme(source.dynamicColor);
|
|
94
|
-
const viewModel = useViewModel(rive, { useDefault: true });
|
|
95
|
-
const viewModelInstance = useViewModelInstance(viewModel, {
|
|
96
|
-
rive,
|
|
97
|
-
useDefault: true
|
|
98
|
-
});
|
|
99
|
-
const viewModelInstanceColor = useViewModelInstanceColor(
|
|
100
|
-
"color",
|
|
101
|
-
viewModelInstance
|
|
102
|
-
);
|
|
103
|
-
useEffect(() => {
|
|
104
|
-
if (!(viewModelInstanceColor && source.dynamicColor)) {
|
|
105
|
-
return;
|
|
106
|
-
}
|
|
107
|
-
const [r, g, b] = theme === "dark" ? [255, 255, 255] : [0, 0, 0];
|
|
108
|
-
viewModelInstanceColor.setRgb(r, g, b);
|
|
109
|
-
}, [viewModelInstanceColor, theme, source.dynamicColor]);
|
|
110
|
-
return children;
|
|
111
|
-
}
|
|
112
|
-
);
|
|
113
|
-
PersonaWithModel.displayName = "PersonaWithModel";
|
|
114
|
-
var PersonaWithoutModel = memo(
|
|
115
|
-
({ children }) => children
|
|
116
|
-
);
|
|
117
|
-
PersonaWithoutModel.displayName = "PersonaWithoutModel";
|
|
118
|
-
var Persona = memo(
|
|
119
|
-
({
|
|
120
|
-
variant = "obsidian",
|
|
121
|
-
state = "idle",
|
|
122
|
-
onLoad,
|
|
123
|
-
onLoadError,
|
|
124
|
-
onReady,
|
|
125
|
-
onPause,
|
|
126
|
-
onPlay,
|
|
127
|
-
onStop,
|
|
128
|
-
className
|
|
129
|
-
}) => {
|
|
130
|
-
const source = sources[variant];
|
|
131
|
-
if (!source) {
|
|
132
|
-
throw new Error(`Invalid variant: ${variant}`);
|
|
133
|
-
}
|
|
134
|
-
const callbacksRef = useRef({
|
|
135
|
-
onLoad,
|
|
136
|
-
onLoadError,
|
|
137
|
-
onPause,
|
|
138
|
-
onPlay,
|
|
139
|
-
onReady,
|
|
140
|
-
onStop
|
|
141
|
-
});
|
|
142
|
-
useEffect(() => {
|
|
143
|
-
callbacksRef.current = {
|
|
144
|
-
onLoad,
|
|
145
|
-
onLoadError,
|
|
146
|
-
onPause,
|
|
147
|
-
onPlay,
|
|
148
|
-
onReady,
|
|
149
|
-
onStop
|
|
150
|
-
};
|
|
151
|
-
}, [onLoad, onLoadError, onPause, onPlay, onReady, onStop]);
|
|
152
|
-
const stableCallbacks = useMemo(
|
|
153
|
-
() => ({
|
|
154
|
-
onLoad: ((loadedRive) => callbacksRef.current.onLoad?.(
|
|
155
|
-
loadedRive
|
|
156
|
-
)),
|
|
157
|
-
onLoadError: ((err) => callbacksRef.current.onLoadError?.(
|
|
158
|
-
err
|
|
159
|
-
)),
|
|
160
|
-
onPause: ((event) => callbacksRef.current.onPause?.(event)),
|
|
161
|
-
onPlay: ((event) => callbacksRef.current.onPlay?.(event)),
|
|
162
|
-
onReady: () => callbacksRef.current.onReady?.(),
|
|
163
|
-
onStop: ((event) => callbacksRef.current.onStop?.(event))
|
|
164
|
-
}),
|
|
165
|
-
[]
|
|
166
|
-
);
|
|
167
|
-
const ready = useStrictModeSafeInit();
|
|
168
|
-
const { rive, RiveComponent } = useRive(
|
|
169
|
-
ready ? {
|
|
170
|
-
autoplay: true,
|
|
171
|
-
onLoad: stableCallbacks.onLoad,
|
|
172
|
-
onLoadError: stableCallbacks.onLoadError,
|
|
173
|
-
onPause: stableCallbacks.onPause,
|
|
174
|
-
onPlay: stableCallbacks.onPlay,
|
|
175
|
-
onRiveReady: stableCallbacks.onReady,
|
|
176
|
-
onStop: stableCallbacks.onStop,
|
|
177
|
-
src: source.source,
|
|
178
|
-
stateMachines: stateMachine
|
|
179
|
-
} : null
|
|
180
|
-
);
|
|
181
|
-
const listeningInput = useStateMachineInput(
|
|
182
|
-
rive,
|
|
183
|
-
stateMachine,
|
|
184
|
-
"listening"
|
|
185
|
-
);
|
|
186
|
-
const thinkingInput = useStateMachineInput(rive, stateMachine, "thinking");
|
|
187
|
-
const speakingInput = useStateMachineInput(rive, stateMachine, "speaking");
|
|
188
|
-
const asleepInput = useStateMachineInput(rive, stateMachine, "asleep");
|
|
189
|
-
useEffect(() => {
|
|
190
|
-
if (listeningInput) {
|
|
191
|
-
listeningInput.value = state === "listening";
|
|
192
|
-
}
|
|
193
|
-
if (thinkingInput) {
|
|
194
|
-
thinkingInput.value = state === "thinking";
|
|
195
|
-
}
|
|
196
|
-
if (speakingInput) {
|
|
197
|
-
speakingInput.value = state === "speaking";
|
|
198
|
-
}
|
|
199
|
-
if (asleepInput) {
|
|
200
|
-
asleepInput.value = state === "asleep";
|
|
201
|
-
}
|
|
202
|
-
}, [state, listeningInput, thinkingInput, speakingInput, asleepInput]);
|
|
203
|
-
const Component = source.hasModel ? PersonaWithModel : PersonaWithoutModel;
|
|
204
|
-
return /* @__PURE__ */ jsx(Component, { rive, source, children: /* @__PURE__ */ jsx(RiveComponent, { className: cn("size-16 shrink-0", className) }) });
|
|
205
|
-
}
|
|
206
|
-
);
|
|
207
|
-
Persona.displayName = "Persona";
|
|
208
|
-
|
|
209
|
-
export { Persona };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { CardAction, CardContent, CardDescription, CardHeader, CardTitle } from '@chatsdk-dev/ui/components/card';
|
|
3
|
-
import { Collapsible, CollapsibleTrigger } from '@chatsdk-dev/ui/components/collapsible';
|
|
4
|
-
import { ComponentProps } from 'react';
|
|
5
|
-
|
|
6
|
-
type PlanProps = ComponentProps<typeof Collapsible> & {
|
|
7
|
-
isStreaming?: boolean;
|
|
8
|
-
};
|
|
9
|
-
declare const Plan: ({ className, isStreaming, children, ...props }: PlanProps) => react_jsx_runtime.JSX.Element;
|
|
10
|
-
type PlanHeaderProps = ComponentProps<typeof CardHeader>;
|
|
11
|
-
declare const PlanHeader: ({ className, ...props }: PlanHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
12
|
-
type PlanTitleProps = Omit<ComponentProps<typeof CardTitle>, "children"> & {
|
|
13
|
-
children: string;
|
|
14
|
-
};
|
|
15
|
-
declare const PlanTitle: ({ children, ...props }: PlanTitleProps) => react_jsx_runtime.JSX.Element;
|
|
16
|
-
type PlanDescriptionProps = Omit<ComponentProps<typeof CardDescription>, "children"> & {
|
|
17
|
-
children: string;
|
|
18
|
-
};
|
|
19
|
-
declare const PlanDescription: ({ className, children, ...props }: PlanDescriptionProps) => react_jsx_runtime.JSX.Element;
|
|
20
|
-
type PlanActionProps = ComponentProps<typeof CardAction>;
|
|
21
|
-
declare const PlanAction: (props: PlanActionProps) => react_jsx_runtime.JSX.Element;
|
|
22
|
-
type PlanContentProps = ComponentProps<typeof CardContent>;
|
|
23
|
-
declare const PlanContent: (props: PlanContentProps) => react_jsx_runtime.JSX.Element;
|
|
24
|
-
type PlanFooterProps = ComponentProps<"div">;
|
|
25
|
-
declare const PlanFooter: (props: PlanFooterProps) => react_jsx_runtime.JSX.Element;
|
|
26
|
-
type PlanTriggerProps = ComponentProps<typeof CollapsibleTrigger>;
|
|
27
|
-
declare const PlanTrigger: ({ className, render, ...props }: PlanTriggerProps) => react_jsx_runtime.JSX.Element;
|
|
28
|
-
|
|
29
|
-
export { Plan, PlanAction, type PlanActionProps, PlanContent, type PlanContentProps, PlanDescription, type PlanDescriptionProps, PlanFooter, type PlanFooterProps, PlanHeader, type PlanHeaderProps, type PlanProps, PlanTitle, type PlanTitleProps, PlanTrigger, type PlanTriggerProps };
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { Shimmer } from '../../chunk-NIC3MOMY.js';
|
|
2
|
-
import { Button } from '@chatsdk-dev/ui/components/button';
|
|
3
|
-
import { Card, CardHeader, CardTitle, CardDescription, CardAction, CardContent, CardFooter } from '@chatsdk-dev/ui/components/card';
|
|
4
|
-
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from '@chatsdk-dev/ui/components/collapsible';
|
|
5
|
-
import { cn } from '@chatsdk-dev/ui/lib/utils';
|
|
6
|
-
import { ChevronsUpDownIcon } from 'lucide-react';
|
|
7
|
-
import { createContext, useMemo, useContext } from 'react';
|
|
8
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
9
|
-
|
|
10
|
-
var PlanContext = createContext(null);
|
|
11
|
-
var usePlan = () => {
|
|
12
|
-
const context = useContext(PlanContext);
|
|
13
|
-
if (!context) {
|
|
14
|
-
throw new Error("Plan components must be used within Plan");
|
|
15
|
-
}
|
|
16
|
-
return context;
|
|
17
|
-
};
|
|
18
|
-
var Plan = ({
|
|
19
|
-
className,
|
|
20
|
-
isStreaming = false,
|
|
21
|
-
children,
|
|
22
|
-
...props
|
|
23
|
-
}) => {
|
|
24
|
-
const contextValue = useMemo(() => ({ isStreaming }), [isStreaming]);
|
|
25
|
-
return /* @__PURE__ */ jsx(PlanContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx(
|
|
26
|
-
Collapsible,
|
|
27
|
-
{
|
|
28
|
-
...props,
|
|
29
|
-
render: () => /* @__PURE__ */ jsx(Card, { className: cn("shadow-none", className), children })
|
|
30
|
-
}
|
|
31
|
-
) });
|
|
32
|
-
};
|
|
33
|
-
var PlanHeader = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
34
|
-
CardHeader,
|
|
35
|
-
{
|
|
36
|
-
className: cn("flex items-start justify-between", className),
|
|
37
|
-
"data-slot": "plan-header",
|
|
38
|
-
...props
|
|
39
|
-
}
|
|
40
|
-
);
|
|
41
|
-
var PlanTitle = ({ children, ...props }) => {
|
|
42
|
-
const { isStreaming } = usePlan();
|
|
43
|
-
return /* @__PURE__ */ jsx(CardTitle, { "data-slot": "plan-title", ...props, children: isStreaming ? /* @__PURE__ */ jsx(Shimmer, { children }) : children });
|
|
44
|
-
};
|
|
45
|
-
var PlanDescription = ({
|
|
46
|
-
className,
|
|
47
|
-
children,
|
|
48
|
-
...props
|
|
49
|
-
}) => {
|
|
50
|
-
const { isStreaming } = usePlan();
|
|
51
|
-
return /* @__PURE__ */ jsx(
|
|
52
|
-
CardDescription,
|
|
53
|
-
{
|
|
54
|
-
className: cn("text-balance", className),
|
|
55
|
-
"data-slot": "plan-description",
|
|
56
|
-
...props,
|
|
57
|
-
children: isStreaming ? /* @__PURE__ */ jsx(Shimmer, { children }) : children
|
|
58
|
-
}
|
|
59
|
-
);
|
|
60
|
-
};
|
|
61
|
-
var PlanAction = (props) => /* @__PURE__ */ jsx(CardAction, { "data-slot": "plan-action", ...props });
|
|
62
|
-
var PlanContent = (props) => /* @__PURE__ */ jsx(
|
|
63
|
-
CollapsibleContent,
|
|
64
|
-
{
|
|
65
|
-
...props,
|
|
66
|
-
render: () => /* @__PURE__ */ jsx(CardContent, { "data-slot": "plan-content", ...props })
|
|
67
|
-
}
|
|
68
|
-
);
|
|
69
|
-
var PlanFooter = (props) => /* @__PURE__ */ jsx(CardFooter, { "data-slot": "plan-footer", ...props });
|
|
70
|
-
var PlanTrigger = ({
|
|
71
|
-
className,
|
|
72
|
-
render,
|
|
73
|
-
...props
|
|
74
|
-
}) => /* @__PURE__ */ jsx(
|
|
75
|
-
CollapsibleTrigger,
|
|
76
|
-
{
|
|
77
|
-
...props,
|
|
78
|
-
render: () => /* @__PURE__ */ jsxs(
|
|
79
|
-
Button,
|
|
80
|
-
{
|
|
81
|
-
className: cn("size-8", className),
|
|
82
|
-
"data-slot": "plan-trigger",
|
|
83
|
-
size: "icon",
|
|
84
|
-
variant: "ghost",
|
|
85
|
-
...props,
|
|
86
|
-
children: [
|
|
87
|
-
/* @__PURE__ */ jsx(ChevronsUpDownIcon, { className: "size-4" }),
|
|
88
|
-
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Toggle plan" })
|
|
89
|
-
]
|
|
90
|
-
}
|
|
91
|
-
)
|
|
92
|
-
}
|
|
93
|
-
);
|
|
94
|
-
|
|
95
|
-
export { Plan, PlanAction, PlanContent, PlanDescription, PlanFooter, PlanHeader, PlanTitle, PlanTrigger };
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { RefObject, HTMLAttributes, ComponentProps, ReactNode, PropsWithChildren } from 'react';
|
|
3
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator } from '@chatsdk-dev/ui/components/command';
|
|
5
|
-
import { DropdownMenuItem, DropdownMenu, DropdownMenuContent } from '@chatsdk-dev/ui/components/dropdown-menu';
|
|
6
|
-
import { HoverCard, HoverCardContent, HoverCardTrigger } from '@chatsdk-dev/ui/components/hover-card';
|
|
7
|
-
import { InputGroupButton, InputGroupAddon, InputGroupTextarea } from '@chatsdk-dev/ui/components/input-group';
|
|
8
|
-
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@chatsdk-dev/ui/components/select';
|
|
9
|
-
import { TooltipContent } from '@chatsdk-dev/ui/components/tooltip';
|
|
10
|
-
import { FileUIPart, SourceDocumentUIPart, ChatStatus } from 'ai';
|
|
11
|
-
|
|
12
|
-
interface AttachmentsContext {
|
|
13
|
-
files: (FileUIPart & {
|
|
14
|
-
id: string;
|
|
15
|
-
})[];
|
|
16
|
-
add: (files: File[] | FileList) => void;
|
|
17
|
-
remove: (id: string) => void;
|
|
18
|
-
clear: () => void;
|
|
19
|
-
openFileDialog: () => void;
|
|
20
|
-
fileInputRef: RefObject<HTMLInputElement | null>;
|
|
21
|
-
}
|
|
22
|
-
interface TextInputContext {
|
|
23
|
-
value: string;
|
|
24
|
-
setInput: (v: string) => void;
|
|
25
|
-
clear: () => void;
|
|
26
|
-
}
|
|
27
|
-
interface PromptInputControllerProps {
|
|
28
|
-
textInput: TextInputContext;
|
|
29
|
-
attachments: AttachmentsContext;
|
|
30
|
-
/** INTERNAL: Allows PromptInput to register its file textInput + "open" callback */
|
|
31
|
-
__registerFileInput: (ref: RefObject<HTMLInputElement | null>, open: () => void) => void;
|
|
32
|
-
}
|
|
33
|
-
declare const usePromptInputController: () => PromptInputControllerProps;
|
|
34
|
-
declare const useProviderAttachments: () => AttachmentsContext;
|
|
35
|
-
type PromptInputProviderProps = PropsWithChildren<{
|
|
36
|
-
initialInput?: string;
|
|
37
|
-
}>;
|
|
38
|
-
/**
|
|
39
|
-
* Optional global provider that lifts PromptInput state outside of PromptInput.
|
|
40
|
-
* If you don't use it, PromptInput stays fully self-managed.
|
|
41
|
-
*/
|
|
42
|
-
declare const PromptInputProvider: ({ initialInput: initialTextInput, children, }: PromptInputProviderProps) => react_jsx_runtime.JSX.Element;
|
|
43
|
-
declare const usePromptInputAttachments: () => AttachmentsContext;
|
|
44
|
-
interface ReferencedSourcesContext {
|
|
45
|
-
sources: (SourceDocumentUIPart & {
|
|
46
|
-
id: string;
|
|
47
|
-
})[];
|
|
48
|
-
add: (sources: SourceDocumentUIPart[] | SourceDocumentUIPart) => void;
|
|
49
|
-
remove: (id: string) => void;
|
|
50
|
-
clear: () => void;
|
|
51
|
-
}
|
|
52
|
-
declare const LocalReferencedSourcesContext: react.Context<ReferencedSourcesContext | null>;
|
|
53
|
-
declare const usePromptInputReferencedSources: () => ReferencedSourcesContext;
|
|
54
|
-
type PromptInputActionAddAttachmentsProps = ComponentProps<typeof DropdownMenuItem> & {
|
|
55
|
-
label?: string;
|
|
56
|
-
};
|
|
57
|
-
declare const PromptInputActionAddAttachments: ({ label, ...props }: PromptInputActionAddAttachmentsProps) => react_jsx_runtime.JSX.Element;
|
|
58
|
-
type PromptInputActionAddScreenshotProps = ComponentProps<typeof DropdownMenuItem> & {
|
|
59
|
-
label?: string;
|
|
60
|
-
};
|
|
61
|
-
declare const PromptInputActionAddScreenshot: ({ label, onSelect, ...props }: PromptInputActionAddScreenshotProps) => react_jsx_runtime.JSX.Element;
|
|
62
|
-
interface PromptInputMessage {
|
|
63
|
-
text: string;
|
|
64
|
-
files: FileUIPart[];
|
|
65
|
-
}
|
|
66
|
-
type PromptInputProps = Omit<HTMLAttributes<HTMLFormElement>, "onSubmit" | "onError"> & {
|
|
67
|
-
accept?: string;
|
|
68
|
-
multiple?: boolean;
|
|
69
|
-
globalDrop?: boolean;
|
|
70
|
-
syncHiddenInput?: boolean;
|
|
71
|
-
maxFiles?: number;
|
|
72
|
-
maxFileSize?: number;
|
|
73
|
-
onError?: (err: {
|
|
74
|
-
code: "max_files" | "max_file_size" | "accept";
|
|
75
|
-
message: string;
|
|
76
|
-
}) => void;
|
|
77
|
-
onSubmit: (message: PromptInputMessage, event: React.SubmitEvent<HTMLFormElement>) => void | Promise<void>;
|
|
78
|
-
};
|
|
79
|
-
declare const PromptInput: ({ className, accept, multiple, globalDrop, syncHiddenInput, maxFiles, maxFileSize, onError, onSubmit, children, ...props }: PromptInputProps) => react_jsx_runtime.JSX.Element;
|
|
80
|
-
type PromptInputBodyProps = HTMLAttributes<HTMLDivElement>;
|
|
81
|
-
declare const PromptInputBody: ({ className, ...props }: PromptInputBodyProps) => react_jsx_runtime.JSX.Element;
|
|
82
|
-
type PromptInputTextareaProps = ComponentProps<typeof InputGroupTextarea>;
|
|
83
|
-
declare const PromptInputTextarea: ({ onChange, onKeyDown, className, placeholder, ...props }: PromptInputTextareaProps) => react_jsx_runtime.JSX.Element;
|
|
84
|
-
type PromptInputHeaderProps = Omit<ComponentProps<typeof InputGroupAddon>, "align">;
|
|
85
|
-
declare const PromptInputHeader: ({ className, ...props }: PromptInputHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
86
|
-
type PromptInputFooterProps = Omit<ComponentProps<typeof InputGroupAddon>, "align">;
|
|
87
|
-
declare const PromptInputFooter: ({ className, ...props }: PromptInputFooterProps) => react_jsx_runtime.JSX.Element;
|
|
88
|
-
type PromptInputToolsProps = HTMLAttributes<HTMLDivElement>;
|
|
89
|
-
declare const PromptInputTools: ({ className, ...props }: PromptInputToolsProps) => react_jsx_runtime.JSX.Element;
|
|
90
|
-
type PromptInputButtonTooltip = string | {
|
|
91
|
-
content: ReactNode;
|
|
92
|
-
shortcut?: string;
|
|
93
|
-
side?: ComponentProps<typeof TooltipContent>["side"];
|
|
94
|
-
};
|
|
95
|
-
type PromptInputButtonProps = ComponentProps<typeof InputGroupButton> & {
|
|
96
|
-
tooltip?: PromptInputButtonTooltip;
|
|
97
|
-
};
|
|
98
|
-
declare const PromptInputButton: ({ variant, className, size, tooltip, ...props }: PromptInputButtonProps) => react_jsx_runtime.JSX.Element;
|
|
99
|
-
type PromptInputActionMenuProps = ComponentProps<typeof DropdownMenu>;
|
|
100
|
-
declare const PromptInputActionMenu: (props: PromptInputActionMenuProps) => react_jsx_runtime.JSX.Element;
|
|
101
|
-
type PromptInputActionMenuTriggerProps = PromptInputButtonProps;
|
|
102
|
-
declare const PromptInputActionMenuTrigger: ({ className, children, ...props }: PromptInputActionMenuTriggerProps) => react_jsx_runtime.JSX.Element;
|
|
103
|
-
type PromptInputActionMenuContentProps = ComponentProps<typeof DropdownMenuContent>;
|
|
104
|
-
declare const PromptInputActionMenuContent: ({ className, ...props }: PromptInputActionMenuContentProps) => react_jsx_runtime.JSX.Element;
|
|
105
|
-
type PromptInputActionMenuItemProps = ComponentProps<typeof DropdownMenuItem>;
|
|
106
|
-
declare const PromptInputActionMenuItem: ({ className, ...props }: PromptInputActionMenuItemProps) => react_jsx_runtime.JSX.Element;
|
|
107
|
-
type PromptInputSubmitProps = ComponentProps<typeof InputGroupButton> & {
|
|
108
|
-
status?: ChatStatus;
|
|
109
|
-
onStop?: () => void;
|
|
110
|
-
};
|
|
111
|
-
declare const PromptInputSubmit: ({ className, variant, size, status, onStop, onClick, children, ...props }: PromptInputSubmitProps) => react_jsx_runtime.JSX.Element;
|
|
112
|
-
type PromptInputSelectProps = ComponentProps<typeof Select>;
|
|
113
|
-
declare const PromptInputSelect: (props: PromptInputSelectProps) => react_jsx_runtime.JSX.Element;
|
|
114
|
-
type PromptInputSelectTriggerProps = ComponentProps<typeof SelectTrigger>;
|
|
115
|
-
declare const PromptInputSelectTrigger: ({ className, ...props }: PromptInputSelectTriggerProps) => react_jsx_runtime.JSX.Element;
|
|
116
|
-
type PromptInputSelectContentProps = ComponentProps<typeof SelectContent>;
|
|
117
|
-
declare const PromptInputSelectContent: ({ className, ...props }: PromptInputSelectContentProps) => react_jsx_runtime.JSX.Element;
|
|
118
|
-
type PromptInputSelectItemProps = ComponentProps<typeof SelectItem>;
|
|
119
|
-
declare const PromptInputSelectItem: ({ className, ...props }: PromptInputSelectItemProps) => react_jsx_runtime.JSX.Element;
|
|
120
|
-
type PromptInputSelectValueProps = ComponentProps<typeof SelectValue>;
|
|
121
|
-
declare const PromptInputSelectValue: ({ className, ...props }: PromptInputSelectValueProps) => react_jsx_runtime.JSX.Element;
|
|
122
|
-
type PromptInputHoverCardProps = ComponentProps<typeof HoverCard>;
|
|
123
|
-
declare const PromptInputHoverCard: ({ ...props }: PromptInputHoverCardProps) => react_jsx_runtime.JSX.Element;
|
|
124
|
-
type PromptInputHoverCardTriggerProps = ComponentProps<typeof HoverCardTrigger>;
|
|
125
|
-
declare const PromptInputHoverCardTrigger: (props: PromptInputHoverCardTriggerProps) => react_jsx_runtime.JSX.Element;
|
|
126
|
-
type PromptInputHoverCardContentProps = ComponentProps<typeof HoverCardContent>;
|
|
127
|
-
declare const PromptInputHoverCardContent: ({ align, ...props }: PromptInputHoverCardContentProps) => react_jsx_runtime.JSX.Element;
|
|
128
|
-
type PromptInputTabsListProps = HTMLAttributes<HTMLDivElement>;
|
|
129
|
-
declare const PromptInputTabsList: ({ className, ...props }: PromptInputTabsListProps) => react_jsx_runtime.JSX.Element;
|
|
130
|
-
type PromptInputTabProps = HTMLAttributes<HTMLDivElement>;
|
|
131
|
-
declare const PromptInputTab: ({ className, ...props }: PromptInputTabProps) => react_jsx_runtime.JSX.Element;
|
|
132
|
-
type PromptInputTabLabelProps = HTMLAttributes<HTMLHeadingElement>;
|
|
133
|
-
declare const PromptInputTabLabel: ({ className, ...props }: PromptInputTabLabelProps) => react_jsx_runtime.JSX.Element;
|
|
134
|
-
type PromptInputTabBodyProps = HTMLAttributes<HTMLDivElement>;
|
|
135
|
-
declare const PromptInputTabBody: ({ className, ...props }: PromptInputTabBodyProps) => react_jsx_runtime.JSX.Element;
|
|
136
|
-
type PromptInputTabItemProps = HTMLAttributes<HTMLDivElement>;
|
|
137
|
-
declare const PromptInputTabItem: ({ className, ...props }: PromptInputTabItemProps) => react_jsx_runtime.JSX.Element;
|
|
138
|
-
type PromptInputCommandProps = ComponentProps<typeof Command>;
|
|
139
|
-
declare const PromptInputCommand: ({ className, ...props }: PromptInputCommandProps) => react_jsx_runtime.JSX.Element;
|
|
140
|
-
type PromptInputCommandInputProps = ComponentProps<typeof CommandInput>;
|
|
141
|
-
declare const PromptInputCommandInput: ({ className, ...props }: PromptInputCommandInputProps) => react_jsx_runtime.JSX.Element;
|
|
142
|
-
type PromptInputCommandListProps = ComponentProps<typeof CommandList>;
|
|
143
|
-
declare const PromptInputCommandList: ({ className, ...props }: PromptInputCommandListProps) => react_jsx_runtime.JSX.Element;
|
|
144
|
-
type PromptInputCommandEmptyProps = ComponentProps<typeof CommandEmpty>;
|
|
145
|
-
declare const PromptInputCommandEmpty: ({ className, ...props }: PromptInputCommandEmptyProps) => react_jsx_runtime.JSX.Element;
|
|
146
|
-
type PromptInputCommandGroupProps = ComponentProps<typeof CommandGroup>;
|
|
147
|
-
declare const PromptInputCommandGroup: ({ className, ...props }: PromptInputCommandGroupProps) => react_jsx_runtime.JSX.Element;
|
|
148
|
-
type PromptInputCommandItemProps = ComponentProps<typeof CommandItem>;
|
|
149
|
-
declare const PromptInputCommandItem: ({ className, ...props }: PromptInputCommandItemProps) => react_jsx_runtime.JSX.Element;
|
|
150
|
-
type PromptInputCommandSeparatorProps = ComponentProps<typeof CommandSeparator>;
|
|
151
|
-
declare const PromptInputCommandSeparator: ({ className, ...props }: PromptInputCommandSeparatorProps) => react_jsx_runtime.JSX.Element;
|
|
152
|
-
|
|
153
|
-
export { type AttachmentsContext, LocalReferencedSourcesContext, PromptInput, PromptInputActionAddAttachments, type PromptInputActionAddAttachmentsProps, PromptInputActionAddScreenshot, type PromptInputActionAddScreenshotProps, PromptInputActionMenu, PromptInputActionMenuContent, type PromptInputActionMenuContentProps, PromptInputActionMenuItem, type PromptInputActionMenuItemProps, type PromptInputActionMenuProps, PromptInputActionMenuTrigger, type PromptInputActionMenuTriggerProps, PromptInputBody, type PromptInputBodyProps, PromptInputButton, type PromptInputButtonProps, type PromptInputButtonTooltip, PromptInputCommand, PromptInputCommandEmpty, type PromptInputCommandEmptyProps, PromptInputCommandGroup, type PromptInputCommandGroupProps, PromptInputCommandInput, type PromptInputCommandInputProps, PromptInputCommandItem, type PromptInputCommandItemProps, PromptInputCommandList, type PromptInputCommandListProps, type PromptInputCommandProps, PromptInputCommandSeparator, type PromptInputCommandSeparatorProps, type PromptInputControllerProps, PromptInputFooter, type PromptInputFooterProps, PromptInputHeader, type PromptInputHeaderProps, PromptInputHoverCard, PromptInputHoverCardContent, type PromptInputHoverCardContentProps, type PromptInputHoverCardProps, PromptInputHoverCardTrigger, type PromptInputHoverCardTriggerProps, type PromptInputMessage, type PromptInputProps, PromptInputProvider, type PromptInputProviderProps, PromptInputSelect, PromptInputSelectContent, type PromptInputSelectContentProps, PromptInputSelectItem, type PromptInputSelectItemProps, type PromptInputSelectProps, PromptInputSelectTrigger, type PromptInputSelectTriggerProps, PromptInputSelectValue, type PromptInputSelectValueProps, PromptInputSubmit, type PromptInputSubmitProps, PromptInputTab, PromptInputTabBody, type PromptInputTabBodyProps, PromptInputTabItem, type PromptInputTabItemProps, PromptInputTabLabel, type PromptInputTabLabelProps, type PromptInputTabProps, PromptInputTabsList, type PromptInputTabsListProps, PromptInputTextarea, type PromptInputTextareaProps, PromptInputTools, type PromptInputToolsProps, type ReferencedSourcesContext, type TextInputContext, usePromptInputAttachments, usePromptInputController, usePromptInputReferencedSources, useProviderAttachments };
|