@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,366 +0,0 @@
|
|
|
1
|
-
import { Button } from '@chatsdk-dev/ui/components/button';
|
|
2
|
-
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger } from '@chatsdk-dev/ui/components/dropdown-menu';
|
|
3
|
-
import { cn } from '@chatsdk-dev/ui/lib/utils';
|
|
4
|
-
import { ChevronDownIcon, ExternalLinkIcon, MessageCircleIcon } from 'lucide-react';
|
|
5
|
-
import { createContext, useMemo, useContext } from 'react';
|
|
6
|
-
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
7
|
-
|
|
8
|
-
var providers = {
|
|
9
|
-
chatgpt: {
|
|
10
|
-
createUrl: (prompt) => `https://chatgpt.com/?${new URLSearchParams({
|
|
11
|
-
hints: "search",
|
|
12
|
-
prompt
|
|
13
|
-
})}`,
|
|
14
|
-
icon: /* @__PURE__ */ jsxs(
|
|
15
|
-
"svg",
|
|
16
|
-
{
|
|
17
|
-
fill: "currentColor",
|
|
18
|
-
role: "img",
|
|
19
|
-
viewBox: "0 0 24 24",
|
|
20
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
21
|
-
children: [
|
|
22
|
-
/* @__PURE__ */ jsx("title", { children: "OpenAI" }),
|
|
23
|
-
/* @__PURE__ */ jsx("path", { d: "M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z" })
|
|
24
|
-
]
|
|
25
|
-
}
|
|
26
|
-
),
|
|
27
|
-
title: "Open in ChatGPT"
|
|
28
|
-
},
|
|
29
|
-
claude: {
|
|
30
|
-
createUrl: (q) => `https://claude.ai/new?${new URLSearchParams({
|
|
31
|
-
q
|
|
32
|
-
})}`,
|
|
33
|
-
icon: /* @__PURE__ */ jsxs(
|
|
34
|
-
"svg",
|
|
35
|
-
{
|
|
36
|
-
fill: "currentColor",
|
|
37
|
-
role: "img",
|
|
38
|
-
viewBox: "0 0 12 12",
|
|
39
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
40
|
-
children: [
|
|
41
|
-
/* @__PURE__ */ jsx("title", { children: "Claude" }),
|
|
42
|
-
/* @__PURE__ */ jsx(
|
|
43
|
-
"path",
|
|
44
|
-
{
|
|
45
|
-
clipRule: "evenodd",
|
|
46
|
-
d: "M2.3545 7.9775L4.7145 6.654L4.7545 6.539L4.7145 6.475H4.6L4.205 6.451L2.856 6.4145L1.6865 6.366L0.5535 6.305L0.268 6.2445L0 5.892L0.0275 5.716L0.2675 5.5555L0.6105 5.5855L1.3705 5.637L2.5095 5.716L3.3355 5.7645L4.56 5.892H4.7545L4.782 5.8135L4.715 5.7645L4.6635 5.716L3.4845 4.918L2.2085 4.074L1.5405 3.588L1.1785 3.3425L0.9965 3.1115L0.9175 2.6075L1.2455 2.2465L1.686 2.2765L1.7985 2.307L2.245 2.65L3.199 3.388L4.4445 4.3045L4.627 4.4565L4.6995 4.405L4.709 4.3685L4.627 4.2315L3.9495 3.0085L3.2265 1.7635L2.9045 1.2475L2.8195 0.938C2.78711 0.819128 2.76965 0.696687 2.7675 0.5735L3.1415 0.067L3.348 0L3.846 0.067L4.056 0.249L4.366 0.956L4.867 2.0705L5.6445 3.5855L5.8725 4.0345L5.994 4.4505L6.0395 4.578H6.1185V4.505L6.1825 3.652L6.301 2.6045L6.416 1.257L6.456 0.877L6.644 0.422L7.0175 0.176L7.3095 0.316L7.5495 0.6585L7.516 0.8805L7.373 1.806L7.0935 3.2575L6.9115 4.2285H7.0175L7.139 4.1075L7.6315 3.4545L8.4575 2.4225L8.8225 2.0125L9.2475 1.5605L9.521 1.345H10.0375L10.4175 1.9095L10.2475 2.4925L9.7155 3.166L9.275 3.737L8.643 4.587L8.248 5.267L8.2845 5.322L8.3785 5.312L9.8065 5.009L10.578 4.869L11.4985 4.7115L11.915 4.9055L11.9605 5.103L11.7965 5.5065L10.812 5.7495L9.6575 5.9805L7.938 6.387L7.917 6.402L7.9415 6.4325L8.716 6.5055L9.047 6.5235H9.858L11.368 6.636L11.763 6.897L12 7.216L11.9605 7.4585L11.353 7.7685L10.533 7.574L8.6185 7.119L7.9625 6.9545H7.8715V7.0095L8.418 7.5435L9.421 8.4485L10.6755 9.6135L10.739 9.9025L10.578 10.13L10.408 10.1055L9.3055 9.277L8.88 8.9035L7.917 8.0935H7.853V8.1785L8.075 8.503L9.2475 10.2635L9.3085 10.8035L9.2235 10.98L8.9195 11.0865L8.5855 11.0255L7.8985 10.063L7.191 8.9795L6.6195 8.008L6.5495 8.048L6.2125 11.675L6.0545 11.86L5.69 12L5.3865 11.7695L5.2255 11.396L5.3865 10.658L5.581 9.696L5.7385 8.931L5.8815 7.981L5.9665 7.665L5.9605 7.644L5.8905 7.653L5.1735 8.6365L4.0835 10.109L3.2205 11.0315L3.0135 11.1135L2.655 10.9285L2.6885 10.5975L2.889 10.303L4.083 8.785L4.803 7.844L5.268 7.301L5.265 7.222H5.2375L2.066 9.28L1.501 9.353L1.2575 9.125L1.288 8.752L1.4035 8.6305L2.3575 7.9745L2.3545 7.9775Z",
|
|
47
|
-
fillRule: "evenodd"
|
|
48
|
-
}
|
|
49
|
-
)
|
|
50
|
-
]
|
|
51
|
-
}
|
|
52
|
-
),
|
|
53
|
-
title: "Open in Claude"
|
|
54
|
-
},
|
|
55
|
-
cursor: {
|
|
56
|
-
createUrl: (text) => {
|
|
57
|
-
const url = new URL("https://cursor.com/link/prompt");
|
|
58
|
-
url.searchParams.set("text", text);
|
|
59
|
-
return url.toString();
|
|
60
|
-
},
|
|
61
|
-
icon: /* @__PURE__ */ jsxs(
|
|
62
|
-
"svg",
|
|
63
|
-
{
|
|
64
|
-
version: "1.1",
|
|
65
|
-
viewBox: "0 0 466.73 532.09",
|
|
66
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
67
|
-
children: [
|
|
68
|
-
/* @__PURE__ */ jsx("title", { children: "Cursor" }),
|
|
69
|
-
/* @__PURE__ */ jsx(
|
|
70
|
-
"path",
|
|
71
|
-
{
|
|
72
|
-
d: "M457.43,125.94L244.42,2.96c-6.84-3.95-15.28-3.95-22.12,0L9.3,125.94c-5.75,3.32-9.3,9.46-9.3,16.11v247.99c0,6.65,3.55,12.79,9.3,16.11l213.01,122.98c6.84,3.95,15.28,3.95,22.12,0l213.01-122.98c5.75-3.32,9.3-9.46,9.3-16.11v-247.99c0-6.65-3.55-12.79-9.3-16.11h-.01ZM444.05,151.99l-205.63,356.16c-1.39,2.4-5.06,1.42-5.06-1.36v-233.21c0-4.66-2.49-8.97-6.53-11.31L24.87,145.67c-2.4-1.39-1.42-5.06,1.36-5.06h411.26c5.84,0,9.49,6.33,6.57,11.39h-.01Z",
|
|
73
|
-
fill: "currentColor"
|
|
74
|
-
}
|
|
75
|
-
)
|
|
76
|
-
]
|
|
77
|
-
}
|
|
78
|
-
),
|
|
79
|
-
title: "Open in Cursor"
|
|
80
|
-
},
|
|
81
|
-
scira: {
|
|
82
|
-
createUrl: (q) => `https://scira.ai/?${new URLSearchParams({
|
|
83
|
-
q
|
|
84
|
-
})}`,
|
|
85
|
-
icon: /* @__PURE__ */ jsxs(
|
|
86
|
-
"svg",
|
|
87
|
-
{
|
|
88
|
-
fill: "none",
|
|
89
|
-
height: "934",
|
|
90
|
-
viewBox: "0 0 910 934",
|
|
91
|
-
width: "910",
|
|
92
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
93
|
-
children: [
|
|
94
|
-
/* @__PURE__ */ jsx("title", { children: "Scira AI" }),
|
|
95
|
-
/* @__PURE__ */ jsx(
|
|
96
|
-
"path",
|
|
97
|
-
{
|
|
98
|
-
d: "M647.664 197.775C569.13 189.049 525.5 145.419 516.774 66.8849C508.048 145.419 464.418 189.049 385.884 197.775C464.418 206.501 508.048 250.131 516.774 328.665C525.5 250.131 569.13 206.501 647.664 197.775Z",
|
|
99
|
-
fill: "currentColor",
|
|
100
|
-
stroke: "currentColor",
|
|
101
|
-
strokeLinejoin: "round",
|
|
102
|
-
strokeWidth: "8"
|
|
103
|
-
}
|
|
104
|
-
),
|
|
105
|
-
/* @__PURE__ */ jsx(
|
|
106
|
-
"path",
|
|
107
|
-
{
|
|
108
|
-
d: "M516.774 304.217C510.299 275.491 498.208 252.087 480.335 234.214C462.462 216.341 439.058 204.251 410.333 197.775C439.059 191.3 462.462 179.209 480.335 161.336C498.208 143.463 510.299 120.06 516.774 91.334C523.25 120.059 535.34 143.463 553.213 161.336C571.086 179.209 594.49 191.3 623.216 197.775C594.49 204.251 571.086 216.341 553.213 234.214C535.34 252.087 523.25 275.491 516.774 304.217Z",
|
|
109
|
-
fill: "currentColor",
|
|
110
|
-
stroke: "currentColor",
|
|
111
|
-
strokeLinejoin: "round",
|
|
112
|
-
strokeWidth: "8"
|
|
113
|
-
}
|
|
114
|
-
),
|
|
115
|
-
/* @__PURE__ */ jsx(
|
|
116
|
-
"path",
|
|
117
|
-
{
|
|
118
|
-
d: "M857.5 508.116C763.259 497.644 710.903 445.288 700.432 351.047C689.961 445.288 637.605 497.644 543.364 508.116C637.605 518.587 689.961 570.943 700.432 665.184C710.903 570.943 763.259 518.587 857.5 508.116Z",
|
|
119
|
-
stroke: "currentColor",
|
|
120
|
-
strokeLinejoin: "round",
|
|
121
|
-
strokeWidth: "20"
|
|
122
|
-
}
|
|
123
|
-
),
|
|
124
|
-
/* @__PURE__ */ jsx(
|
|
125
|
-
"path",
|
|
126
|
-
{
|
|
127
|
-
d: "M700.432 615.957C691.848 589.05 678.575 566.357 660.383 548.165C642.191 529.973 619.499 516.7 592.593 508.116C619.499 499.533 642.191 486.258 660.383 468.066C678.575 449.874 691.848 427.181 700.432 400.274C709.015 427.181 722.289 449.874 740.481 468.066C758.673 486.258 781.365 499.533 808.271 508.116C781.365 516.7 758.673 529.973 740.481 548.165C722.289 566.357 709.015 589.05 700.432 615.957Z",
|
|
128
|
-
stroke: "currentColor",
|
|
129
|
-
strokeLinejoin: "round",
|
|
130
|
-
strokeWidth: "20"
|
|
131
|
-
}
|
|
132
|
-
),
|
|
133
|
-
/* @__PURE__ */ jsx(
|
|
134
|
-
"path",
|
|
135
|
-
{
|
|
136
|
-
d: "M889.949 121.237C831.049 114.692 798.326 81.9698 791.782 23.0692C785.237 81.9698 752.515 114.692 693.614 121.237C752.515 127.781 785.237 160.504 791.782 219.404C798.326 160.504 831.049 127.781 889.949 121.237Z",
|
|
137
|
-
fill: "currentColor",
|
|
138
|
-
stroke: "currentColor",
|
|
139
|
-
strokeLinejoin: "round",
|
|
140
|
-
strokeWidth: "8"
|
|
141
|
-
}
|
|
142
|
-
),
|
|
143
|
-
/* @__PURE__ */ jsx(
|
|
144
|
-
"path",
|
|
145
|
-
{
|
|
146
|
-
d: "M791.782 196.795C786.697 176.937 777.869 160.567 765.16 147.858C752.452 135.15 736.082 126.322 716.226 121.237C736.082 116.152 752.452 107.324 765.16 94.6152C777.869 81.9065 786.697 65.5368 791.782 45.6797C796.867 65.5367 805.695 81.9066 818.403 94.6152C831.112 107.324 847.481 116.152 867.338 121.237C847.481 126.322 831.112 135.15 818.403 147.858C805.694 160.567 796.867 176.937 791.782 196.795Z",
|
|
147
|
-
fill: "currentColor",
|
|
148
|
-
stroke: "currentColor",
|
|
149
|
-
strokeLinejoin: "round",
|
|
150
|
-
strokeWidth: "8"
|
|
151
|
-
}
|
|
152
|
-
),
|
|
153
|
-
/* @__PURE__ */ jsx(
|
|
154
|
-
"path",
|
|
155
|
-
{
|
|
156
|
-
d: "M760.632 764.337C720.719 814.616 669.835 855.1 611.872 882.692C553.91 910.285 490.404 924.255 426.213 923.533C362.022 922.812 298.846 907.419 241.518 878.531C184.19 849.643 134.228 808.026 95.4548 756.863C56.6815 705.7 30.1238 646.346 17.8129 583.343C5.50207 520.339 7.76433 455.354 24.4266 393.359C41.089 331.364 71.7099 274.001 113.947 225.658C156.184 177.315 208.919 139.273 268.117 114.442",
|
|
157
|
-
stroke: "currentColor",
|
|
158
|
-
strokeLinecap: "round",
|
|
159
|
-
strokeLinejoin: "round",
|
|
160
|
-
strokeWidth: "30"
|
|
161
|
-
}
|
|
162
|
-
)
|
|
163
|
-
]
|
|
164
|
-
}
|
|
165
|
-
),
|
|
166
|
-
title: "Open in Scira"
|
|
167
|
-
},
|
|
168
|
-
t3: {
|
|
169
|
-
createUrl: (q) => `https://t3.chat/new?${new URLSearchParams({
|
|
170
|
-
q
|
|
171
|
-
})}`,
|
|
172
|
-
icon: /* @__PURE__ */ jsx(MessageCircleIcon, {}),
|
|
173
|
-
title: "Open in T3 Chat"
|
|
174
|
-
},
|
|
175
|
-
v0: {
|
|
176
|
-
createUrl: (q) => `https://v0.app?${new URLSearchParams({
|
|
177
|
-
q
|
|
178
|
-
})}`,
|
|
179
|
-
icon: /* @__PURE__ */ jsxs(
|
|
180
|
-
"svg",
|
|
181
|
-
{
|
|
182
|
-
fill: "currentColor",
|
|
183
|
-
viewBox: "0 0 147 70",
|
|
184
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
185
|
-
children: [
|
|
186
|
-
/* @__PURE__ */ jsx("title", { children: "v0" }),
|
|
187
|
-
/* @__PURE__ */ jsx("path", { d: "M56 50.2031V14H70V60.1562C70 65.5928 65.5928 70 60.1562 70C57.5605 70 54.9982 68.9992 53.1562 67.1573L0 14H19.7969L56 50.2031Z" }),
|
|
188
|
-
/* @__PURE__ */ jsx("path", { d: "M147 56H133V23.9531L100.953 56H133V70H96.6875C85.8144 70 77 61.1856 77 50.3125V14H91V46.1562L123.156 14H91V0H127.312C138.186 0 147 8.81439 147 19.6875V56Z" })
|
|
189
|
-
]
|
|
190
|
-
}
|
|
191
|
-
),
|
|
192
|
-
title: "Open in v0"
|
|
193
|
-
}
|
|
194
|
-
};
|
|
195
|
-
var OpenInContext = createContext(void 0);
|
|
196
|
-
var useOpenInContext = () => {
|
|
197
|
-
const context = useContext(OpenInContext);
|
|
198
|
-
if (!context) {
|
|
199
|
-
throw new Error("OpenIn components must be used within an OpenIn provider");
|
|
200
|
-
}
|
|
201
|
-
return context;
|
|
202
|
-
};
|
|
203
|
-
var OpenIn = ({ query, ...props }) => {
|
|
204
|
-
const contextValue = useMemo(() => ({ query }), [query]);
|
|
205
|
-
return /* @__PURE__ */ jsx(OpenInContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx(DropdownMenu, { ...props }) });
|
|
206
|
-
};
|
|
207
|
-
var OpenInContent = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
208
|
-
DropdownMenuContent,
|
|
209
|
-
{
|
|
210
|
-
align: "start",
|
|
211
|
-
className: cn("w-[240px]", className),
|
|
212
|
-
...props
|
|
213
|
-
}
|
|
214
|
-
);
|
|
215
|
-
var OpenInItem = (props) => /* @__PURE__ */ jsx(DropdownMenuItem, { ...props });
|
|
216
|
-
var OpenInLabel = (props) => /* @__PURE__ */ jsx(DropdownMenuLabel, { ...props });
|
|
217
|
-
var OpenInSeparator = (props) => /* @__PURE__ */ jsx(DropdownMenuSeparator, { ...props });
|
|
218
|
-
var OpenInTrigger = ({ children, ...props }) => /* @__PURE__ */ jsx(
|
|
219
|
-
DropdownMenuTrigger,
|
|
220
|
-
{
|
|
221
|
-
...props,
|
|
222
|
-
render: () => children ? /* @__PURE__ */ jsx(Fragment, { children }) : /* @__PURE__ */ jsxs(Button, { type: "button", variant: "outline", children: [
|
|
223
|
-
"Open in chat",
|
|
224
|
-
/* @__PURE__ */ jsx(ChevronDownIcon, { className: "size-4" })
|
|
225
|
-
] })
|
|
226
|
-
}
|
|
227
|
-
);
|
|
228
|
-
var OpenInChatGPT = (props) => {
|
|
229
|
-
const { query } = useOpenInContext();
|
|
230
|
-
return /* @__PURE__ */ jsx(
|
|
231
|
-
DropdownMenuItem,
|
|
232
|
-
{
|
|
233
|
-
...props,
|
|
234
|
-
render: () => /* @__PURE__ */ jsxs(
|
|
235
|
-
"a",
|
|
236
|
-
{
|
|
237
|
-
className: "flex items-center gap-2",
|
|
238
|
-
href: providers.chatgpt.createUrl(query),
|
|
239
|
-
rel: "noopener",
|
|
240
|
-
target: "_blank",
|
|
241
|
-
children: [
|
|
242
|
-
/* @__PURE__ */ jsx("span", { className: "shrink-0", children: providers.chatgpt.icon }),
|
|
243
|
-
/* @__PURE__ */ jsx("span", { className: "flex-1", children: providers.chatgpt.title }),
|
|
244
|
-
/* @__PURE__ */ jsx(ExternalLinkIcon, { className: "size-4 shrink-0" })
|
|
245
|
-
]
|
|
246
|
-
}
|
|
247
|
-
)
|
|
248
|
-
}
|
|
249
|
-
);
|
|
250
|
-
};
|
|
251
|
-
var OpenInClaude = (props) => {
|
|
252
|
-
const { query } = useOpenInContext();
|
|
253
|
-
return /* @__PURE__ */ jsx(
|
|
254
|
-
DropdownMenuItem,
|
|
255
|
-
{
|
|
256
|
-
render: () => /* @__PURE__ */ jsxs(
|
|
257
|
-
"a",
|
|
258
|
-
{
|
|
259
|
-
className: "flex items-center gap-2",
|
|
260
|
-
href: providers.claude.createUrl(query),
|
|
261
|
-
rel: "noopener",
|
|
262
|
-
target: "_blank",
|
|
263
|
-
children: [
|
|
264
|
-
/* @__PURE__ */ jsx("span", { className: "shrink-0", children: providers.claude.icon }),
|
|
265
|
-
/* @__PURE__ */ jsx("span", { className: "flex-1", children: providers.claude.title }),
|
|
266
|
-
/* @__PURE__ */ jsx(ExternalLinkIcon, { className: "size-4 shrink-0" })
|
|
267
|
-
]
|
|
268
|
-
}
|
|
269
|
-
)
|
|
270
|
-
}
|
|
271
|
-
);
|
|
272
|
-
};
|
|
273
|
-
var OpenInT3 = (props) => {
|
|
274
|
-
const { query } = useOpenInContext();
|
|
275
|
-
return /* @__PURE__ */ jsx(
|
|
276
|
-
DropdownMenuItem,
|
|
277
|
-
{
|
|
278
|
-
...props,
|
|
279
|
-
render: () => /* @__PURE__ */ jsxs(
|
|
280
|
-
"a",
|
|
281
|
-
{
|
|
282
|
-
className: "flex items-center gap-2",
|
|
283
|
-
href: providers.t3.createUrl(query),
|
|
284
|
-
rel: "noopener",
|
|
285
|
-
target: "_blank",
|
|
286
|
-
children: [
|
|
287
|
-
/* @__PURE__ */ jsx("span", { className: "shrink-0", children: providers.t3.icon }),
|
|
288
|
-
/* @__PURE__ */ jsx("span", { className: "flex-1", children: providers.t3.title }),
|
|
289
|
-
/* @__PURE__ */ jsx(ExternalLinkIcon, { className: "size-4 shrink-0" })
|
|
290
|
-
]
|
|
291
|
-
}
|
|
292
|
-
)
|
|
293
|
-
}
|
|
294
|
-
);
|
|
295
|
-
};
|
|
296
|
-
var OpenInScira = (props) => {
|
|
297
|
-
const { query } = useOpenInContext();
|
|
298
|
-
return /* @__PURE__ */ jsx(
|
|
299
|
-
DropdownMenuItem,
|
|
300
|
-
{
|
|
301
|
-
...props,
|
|
302
|
-
render: () => /* @__PURE__ */ jsxs(
|
|
303
|
-
"a",
|
|
304
|
-
{
|
|
305
|
-
className: "flex items-center gap-2",
|
|
306
|
-
href: providers.scira.createUrl(query),
|
|
307
|
-
rel: "noopener",
|
|
308
|
-
target: "_blank",
|
|
309
|
-
children: [
|
|
310
|
-
/* @__PURE__ */ jsx("span", { className: "shrink-0", children: providers.scira.icon }),
|
|
311
|
-
/* @__PURE__ */ jsx("span", { className: "flex-1", children: providers.scira.title }),
|
|
312
|
-
/* @__PURE__ */ jsx(ExternalLinkIcon, { className: "size-4 shrink-0" })
|
|
313
|
-
]
|
|
314
|
-
}
|
|
315
|
-
)
|
|
316
|
-
}
|
|
317
|
-
);
|
|
318
|
-
};
|
|
319
|
-
var OpenInv0 = (props) => {
|
|
320
|
-
const { query } = useOpenInContext();
|
|
321
|
-
return /* @__PURE__ */ jsx(
|
|
322
|
-
DropdownMenuItem,
|
|
323
|
-
{
|
|
324
|
-
...props,
|
|
325
|
-
render: () => /* @__PURE__ */ jsxs(
|
|
326
|
-
"a",
|
|
327
|
-
{
|
|
328
|
-
className: "flex items-center gap-2",
|
|
329
|
-
href: providers.v0.createUrl(query),
|
|
330
|
-
rel: "noopener",
|
|
331
|
-
target: "_blank",
|
|
332
|
-
children: [
|
|
333
|
-
/* @__PURE__ */ jsx("span", { className: "shrink-0", children: providers.v0.icon }),
|
|
334
|
-
/* @__PURE__ */ jsx("span", { className: "flex-1", children: providers.v0.title }),
|
|
335
|
-
/* @__PURE__ */ jsx(ExternalLinkIcon, { className: "size-4 shrink-0" })
|
|
336
|
-
]
|
|
337
|
-
}
|
|
338
|
-
)
|
|
339
|
-
}
|
|
340
|
-
);
|
|
341
|
-
};
|
|
342
|
-
var OpenInCursor = (props) => {
|
|
343
|
-
const { query } = useOpenInContext();
|
|
344
|
-
return /* @__PURE__ */ jsx(
|
|
345
|
-
DropdownMenuItem,
|
|
346
|
-
{
|
|
347
|
-
...props,
|
|
348
|
-
render: () => /* @__PURE__ */ jsxs(
|
|
349
|
-
"a",
|
|
350
|
-
{
|
|
351
|
-
className: "flex items-center gap-2",
|
|
352
|
-
href: providers.cursor.createUrl(query),
|
|
353
|
-
rel: "noopener",
|
|
354
|
-
target: "_blank",
|
|
355
|
-
children: [
|
|
356
|
-
/* @__PURE__ */ jsx("span", { className: "shrink-0", children: providers.cursor.icon }),
|
|
357
|
-
/* @__PURE__ */ jsx("span", { className: "flex-1", children: providers.cursor.title }),
|
|
358
|
-
/* @__PURE__ */ jsx(ExternalLinkIcon, { className: "size-4 shrink-0" })
|
|
359
|
-
]
|
|
360
|
-
}
|
|
361
|
-
)
|
|
362
|
-
}
|
|
363
|
-
);
|
|
364
|
-
};
|
|
365
|
-
|
|
366
|
-
export { OpenIn, OpenInChatGPT, OpenInClaude, OpenInContent, OpenInCursor, OpenInItem, OpenInLabel, OpenInScira, OpenInSeparator, OpenInT3, OpenInTrigger, OpenInv0 };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { HTMLAttributes } from 'react';
|
|
3
|
-
|
|
4
|
-
type ChangeType = "major" | "minor" | "patch" | "added" | "removed";
|
|
5
|
-
type PackageInfoHeaderProps = HTMLAttributes<HTMLDivElement>;
|
|
6
|
-
declare const PackageInfoHeader: ({ className, children, ...props }: PackageInfoHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
7
|
-
type PackageInfoNameProps = HTMLAttributes<HTMLDivElement>;
|
|
8
|
-
declare const PackageInfoName: ({ className, children, ...props }: PackageInfoNameProps) => react_jsx_runtime.JSX.Element;
|
|
9
|
-
type PackageInfoChangeTypeProps = HTMLAttributes<HTMLDivElement>;
|
|
10
|
-
declare const PackageInfoChangeType: ({ className, children, ...props }: PackageInfoChangeTypeProps) => react_jsx_runtime.JSX.Element | null;
|
|
11
|
-
type PackageInfoVersionProps = HTMLAttributes<HTMLDivElement>;
|
|
12
|
-
declare const PackageInfoVersion: ({ className, children, ...props }: PackageInfoVersionProps) => react_jsx_runtime.JSX.Element | null;
|
|
13
|
-
type PackageInfoProps = HTMLAttributes<HTMLDivElement> & {
|
|
14
|
-
name: string;
|
|
15
|
-
currentVersion?: string;
|
|
16
|
-
newVersion?: string;
|
|
17
|
-
changeType?: ChangeType;
|
|
18
|
-
};
|
|
19
|
-
declare const PackageInfo: ({ name, currentVersion, newVersion, changeType, className, children, ...props }: PackageInfoProps) => react_jsx_runtime.JSX.Element;
|
|
20
|
-
type PackageInfoDescriptionProps = HTMLAttributes<HTMLParagraphElement>;
|
|
21
|
-
declare const PackageInfoDescription: ({ className, children, ...props }: PackageInfoDescriptionProps) => react_jsx_runtime.JSX.Element;
|
|
22
|
-
type PackageInfoContentProps = HTMLAttributes<HTMLDivElement>;
|
|
23
|
-
declare const PackageInfoContent: ({ className, children, ...props }: PackageInfoContentProps) => react_jsx_runtime.JSX.Element;
|
|
24
|
-
type PackageInfoDependenciesProps = HTMLAttributes<HTMLDivElement>;
|
|
25
|
-
declare const PackageInfoDependencies: ({ className, children, ...props }: PackageInfoDependenciesProps) => react_jsx_runtime.JSX.Element;
|
|
26
|
-
type PackageInfoDependencyProps = HTMLAttributes<HTMLDivElement> & {
|
|
27
|
-
name: string;
|
|
28
|
-
version?: string;
|
|
29
|
-
};
|
|
30
|
-
declare const PackageInfoDependency: ({ name, version, className, children, ...props }: PackageInfoDependencyProps) => react_jsx_runtime.JSX.Element;
|
|
31
|
-
|
|
32
|
-
export { PackageInfo, PackageInfoChangeType, type PackageInfoChangeTypeProps, PackageInfoContent, type PackageInfoContentProps, PackageInfoDependencies, type PackageInfoDependenciesProps, PackageInfoDependency, type PackageInfoDependencyProps, PackageInfoDescription, type PackageInfoDescriptionProps, PackageInfoHeader, type PackageInfoHeaderProps, PackageInfoName, type PackageInfoNameProps, type PackageInfoProps, PackageInfoVersion, type PackageInfoVersionProps };
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
import { Badge } from '@chatsdk-dev/ui/components/badge';
|
|
2
|
-
import { cn } from '@chatsdk-dev/ui/lib/utils';
|
|
3
|
-
import { PackageIcon, ArrowRightIcon, MinusIcon, PlusIcon } from 'lucide-react';
|
|
4
|
-
import { createContext, useContext, useMemo } from 'react';
|
|
5
|
-
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
6
|
-
|
|
7
|
-
var PackageInfoContext = createContext({
|
|
8
|
-
name: ""
|
|
9
|
-
});
|
|
10
|
-
var PackageInfoHeader = ({
|
|
11
|
-
className,
|
|
12
|
-
children,
|
|
13
|
-
...props
|
|
14
|
-
}) => /* @__PURE__ */ jsx(
|
|
15
|
-
"div",
|
|
16
|
-
{
|
|
17
|
-
className: cn("flex items-center justify-between gap-2", className),
|
|
18
|
-
...props,
|
|
19
|
-
children
|
|
20
|
-
}
|
|
21
|
-
);
|
|
22
|
-
var PackageInfoName = ({
|
|
23
|
-
className,
|
|
24
|
-
children,
|
|
25
|
-
...props
|
|
26
|
-
}) => {
|
|
27
|
-
const { name } = useContext(PackageInfoContext);
|
|
28
|
-
return /* @__PURE__ */ jsxs("div", { className: cn("flex items-center gap-2", className), ...props, children: [
|
|
29
|
-
/* @__PURE__ */ jsx(PackageIcon, { className: "size-4 text-muted-foreground" }),
|
|
30
|
-
/* @__PURE__ */ jsx("span", { className: "font-medium font-mono text-sm", children: children ?? name })
|
|
31
|
-
] });
|
|
32
|
-
};
|
|
33
|
-
var changeTypeStyles = {
|
|
34
|
-
added: "bg-blue-100 text-blue-700 dark:bg-blue-900/30 dark:text-blue-400",
|
|
35
|
-
major: "bg-red-100 text-red-700 dark:bg-red-900/30 dark:text-red-400",
|
|
36
|
-
minor: "bg-yellow-100 text-yellow-700 dark:bg-yellow-900/30 dark:text-yellow-400",
|
|
37
|
-
patch: "bg-green-100 text-green-700 dark:bg-green-900/30 dark:text-green-400",
|
|
38
|
-
removed: "bg-gray-100 text-gray-700 dark:bg-gray-900/30 dark:text-gray-400"
|
|
39
|
-
};
|
|
40
|
-
var changeTypeIcons = {
|
|
41
|
-
added: /* @__PURE__ */ jsx(PlusIcon, { className: "size-3" }),
|
|
42
|
-
major: /* @__PURE__ */ jsx(ArrowRightIcon, { className: "size-3" }),
|
|
43
|
-
minor: /* @__PURE__ */ jsx(ArrowRightIcon, { className: "size-3" }),
|
|
44
|
-
patch: /* @__PURE__ */ jsx(ArrowRightIcon, { className: "size-3" }),
|
|
45
|
-
removed: /* @__PURE__ */ jsx(MinusIcon, { className: "size-3" })
|
|
46
|
-
};
|
|
47
|
-
var PackageInfoChangeType = ({
|
|
48
|
-
className,
|
|
49
|
-
children,
|
|
50
|
-
...props
|
|
51
|
-
}) => {
|
|
52
|
-
const { changeType } = useContext(PackageInfoContext);
|
|
53
|
-
if (!changeType) {
|
|
54
|
-
return null;
|
|
55
|
-
}
|
|
56
|
-
return /* @__PURE__ */ jsxs(
|
|
57
|
-
Badge,
|
|
58
|
-
{
|
|
59
|
-
className: cn(
|
|
60
|
-
"gap-1 text-xs capitalize",
|
|
61
|
-
changeTypeStyles[changeType],
|
|
62
|
-
className
|
|
63
|
-
),
|
|
64
|
-
variant: "secondary",
|
|
65
|
-
...props,
|
|
66
|
-
children: [
|
|
67
|
-
changeTypeIcons[changeType],
|
|
68
|
-
children ?? changeType
|
|
69
|
-
]
|
|
70
|
-
}
|
|
71
|
-
);
|
|
72
|
-
};
|
|
73
|
-
var PackageInfoVersion = ({
|
|
74
|
-
className,
|
|
75
|
-
children,
|
|
76
|
-
...props
|
|
77
|
-
}) => {
|
|
78
|
-
const { currentVersion, newVersion } = useContext(PackageInfoContext);
|
|
79
|
-
if (!(currentVersion || newVersion)) {
|
|
80
|
-
return null;
|
|
81
|
-
}
|
|
82
|
-
return /* @__PURE__ */ jsx(
|
|
83
|
-
"div",
|
|
84
|
-
{
|
|
85
|
-
className: cn(
|
|
86
|
-
"mt-2 flex items-center gap-2 font-mono text-muted-foreground text-sm",
|
|
87
|
-
className
|
|
88
|
-
),
|
|
89
|
-
...props,
|
|
90
|
-
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
91
|
-
currentVersion && /* @__PURE__ */ jsx("span", { children: currentVersion }),
|
|
92
|
-
currentVersion && newVersion && /* @__PURE__ */ jsx(ArrowRightIcon, { className: "size-3" }),
|
|
93
|
-
newVersion && /* @__PURE__ */ jsx("span", { className: "font-medium text-foreground", children: newVersion })
|
|
94
|
-
] })
|
|
95
|
-
}
|
|
96
|
-
);
|
|
97
|
-
};
|
|
98
|
-
var PackageInfo = ({
|
|
99
|
-
name,
|
|
100
|
-
currentVersion,
|
|
101
|
-
newVersion,
|
|
102
|
-
changeType,
|
|
103
|
-
className,
|
|
104
|
-
children,
|
|
105
|
-
...props
|
|
106
|
-
}) => {
|
|
107
|
-
const contextValue = useMemo(
|
|
108
|
-
() => ({ changeType, currentVersion, name, newVersion }),
|
|
109
|
-
[changeType, currentVersion, name, newVersion]
|
|
110
|
-
);
|
|
111
|
-
return /* @__PURE__ */ jsx(PackageInfoContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx(
|
|
112
|
-
"div",
|
|
113
|
-
{
|
|
114
|
-
className: cn("rounded-lg border bg-background p-4", className),
|
|
115
|
-
...props,
|
|
116
|
-
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
117
|
-
/* @__PURE__ */ jsxs(PackageInfoHeader, { children: [
|
|
118
|
-
/* @__PURE__ */ jsx(PackageInfoName, {}),
|
|
119
|
-
changeType && /* @__PURE__ */ jsx(PackageInfoChangeType, {})
|
|
120
|
-
] }),
|
|
121
|
-
(currentVersion || newVersion) && /* @__PURE__ */ jsx(PackageInfoVersion, {})
|
|
122
|
-
] })
|
|
123
|
-
}
|
|
124
|
-
) });
|
|
125
|
-
};
|
|
126
|
-
var PackageInfoDescription = ({
|
|
127
|
-
className,
|
|
128
|
-
children,
|
|
129
|
-
...props
|
|
130
|
-
}) => /* @__PURE__ */ jsx("p", { className: cn("mt-2 text-muted-foreground text-sm", className), ...props, children });
|
|
131
|
-
var PackageInfoContent = ({
|
|
132
|
-
className,
|
|
133
|
-
children,
|
|
134
|
-
...props
|
|
135
|
-
}) => /* @__PURE__ */ jsx("div", { className: cn("mt-3 border-t pt-3", className), ...props, children });
|
|
136
|
-
var PackageInfoDependencies = ({
|
|
137
|
-
className,
|
|
138
|
-
children,
|
|
139
|
-
...props
|
|
140
|
-
}) => /* @__PURE__ */ jsxs("div", { className: cn("space-y-2", className), ...props, children: [
|
|
141
|
-
/* @__PURE__ */ jsx("span", { className: "font-medium text-muted-foreground text-xs uppercase tracking-wide", children: "Dependencies" }),
|
|
142
|
-
/* @__PURE__ */ jsx("div", { className: "space-y-1", children })
|
|
143
|
-
] });
|
|
144
|
-
var PackageInfoDependency = ({
|
|
145
|
-
name,
|
|
146
|
-
version,
|
|
147
|
-
className,
|
|
148
|
-
children,
|
|
149
|
-
...props
|
|
150
|
-
}) => /* @__PURE__ */ jsx(
|
|
151
|
-
"div",
|
|
152
|
-
{
|
|
153
|
-
className: cn("flex items-center justify-between text-sm", className),
|
|
154
|
-
...props,
|
|
155
|
-
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
156
|
-
/* @__PURE__ */ jsx("span", { className: "font-mono text-muted-foreground", children: name }),
|
|
157
|
-
version && /* @__PURE__ */ jsx("span", { className: "font-mono text-xs", children: version })
|
|
158
|
-
] })
|
|
159
|
-
}
|
|
160
|
-
);
|
|
161
|
-
|
|
162
|
-
export { PackageInfo, PackageInfoChangeType, PackageInfoContent, PackageInfoDependencies, PackageInfoDependency, PackageInfoDescription, PackageInfoHeader, PackageInfoName, PackageInfoVersion };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { Panel as Panel$1 } from '@xyflow/react';
|
|
3
|
-
import { ComponentProps } from 'react';
|
|
4
|
-
|
|
5
|
-
type PanelProps = ComponentProps<typeof Panel$1>;
|
|
6
|
-
declare const Panel: ({ className, ...props }: PanelProps) => react_jsx_runtime.JSX.Element;
|
|
7
|
-
|
|
8
|
-
export { Panel };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { cn } from '@chatsdk-dev/ui/lib/utils';
|
|
2
|
-
import { Panel as Panel$1 } from '@xyflow/react';
|
|
3
|
-
import { jsx } from 'react/jsx-runtime';
|
|
4
|
-
|
|
5
|
-
// src/components/ai-elements/panel.tsx
|
|
6
|
-
var Panel = ({ className, ...props }) => /* @__PURE__ */ jsx(
|
|
7
|
-
Panel$1,
|
|
8
|
-
{
|
|
9
|
-
className: cn(
|
|
10
|
-
"m-4 overflow-hidden rounded-md border bg-card p-1",
|
|
11
|
-
className
|
|
12
|
-
),
|
|
13
|
-
...props
|
|
14
|
-
}
|
|
15
|
-
);
|
|
16
|
-
|
|
17
|
-
export { Panel };
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { RiveParameters } from '@rive-app/react-webgl2';
|
|
2
|
-
import { FC } from 'react';
|
|
3
|
-
|
|
4
|
-
type PersonaState = "idle" | "listening" | "thinking" | "speaking" | "asleep";
|
|
5
|
-
interface PersonaProps {
|
|
6
|
-
state: PersonaState;
|
|
7
|
-
onLoad?: RiveParameters["onLoad"];
|
|
8
|
-
onLoadError?: RiveParameters["onLoadError"];
|
|
9
|
-
onReady?: () => void;
|
|
10
|
-
onPause?: RiveParameters["onPause"];
|
|
11
|
-
onPlay?: RiveParameters["onPlay"];
|
|
12
|
-
onStop?: RiveParameters["onStop"];
|
|
13
|
-
className?: string;
|
|
14
|
-
variant?: keyof typeof sources;
|
|
15
|
-
}
|
|
16
|
-
declare const sources: {
|
|
17
|
-
command: {
|
|
18
|
-
dynamicColor: boolean;
|
|
19
|
-
hasModel: boolean;
|
|
20
|
-
source: string;
|
|
21
|
-
};
|
|
22
|
-
glint: {
|
|
23
|
-
dynamicColor: boolean;
|
|
24
|
-
hasModel: boolean;
|
|
25
|
-
source: string;
|
|
26
|
-
};
|
|
27
|
-
halo: {
|
|
28
|
-
dynamicColor: boolean;
|
|
29
|
-
hasModel: boolean;
|
|
30
|
-
source: string;
|
|
31
|
-
};
|
|
32
|
-
mana: {
|
|
33
|
-
dynamicColor: boolean;
|
|
34
|
-
hasModel: boolean;
|
|
35
|
-
source: string;
|
|
36
|
-
};
|
|
37
|
-
obsidian: {
|
|
38
|
-
dynamicColor: boolean;
|
|
39
|
-
hasModel: boolean;
|
|
40
|
-
source: string;
|
|
41
|
-
};
|
|
42
|
-
opal: {
|
|
43
|
-
dynamicColor: boolean;
|
|
44
|
-
hasModel: boolean;
|
|
45
|
-
source: string;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
declare const Persona: FC<PersonaProps>;
|
|
49
|
-
|
|
50
|
-
export { Persona, type PersonaState };
|