@chatsdk-dev/elements 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +43 -0
- package/dist/chunk-2LHKM7RD.js +14 -0
- package/dist/chunk-5UMYP6MD.js +10 -0
- package/dist/chunk-AP4MG32M.js +36 -0
- package/dist/chunk-CFM57HOS.js +358 -0
- package/dist/chunk-EGIUE7H2.js +37 -0
- package/dist/chunk-M5OONVIO.js +90 -0
- package/dist/chunk-MXTBCHYC.js +31 -0
- package/dist/chunk-NIC3MOMY.js +55 -0
- package/dist/chunk-QTRMNIG3.js +83 -0
- package/dist/chunk-R7G3RQLU.js +36 -0
- package/dist/chunk-RJG5D2TM.js +113 -0
- package/dist/chunk-SLJNKQ2G.js +125 -0
- package/dist/chunk-TDEFIW2L.js +9 -0
- package/dist/chunk-TDP6D7U7.js +551 -0
- package/dist/chunk-V2ITXC65.js +24 -0
- package/dist/chunk-VS55HRUS.js +16 -0
- package/dist/chunk-VYDYCGJL.js +25 -0
- package/dist/chunk-X5YUF2YM.js +113 -0
- package/dist/chunk-YX46JVQN.js +78 -0
- package/dist/chunk-YXAMLTTT.js +16 -0
- package/dist/chunk-YXFVHSY4.js +51 -0
- package/dist/chunk-ZCSZX3OI.js +4 -0
- package/dist/common/use-copy-to-clipboard.d.ts +3 -0
- package/dist/common/use-copy-to-clipboard.js +33 -0
- package/dist/common/utilts.d.ts +8 -0
- package/dist/common/utilts.js +28 -0
- package/dist/components/ai-elements/actions.d.ts +13 -0
- package/dist/components/ai-elements/actions.js +42 -0
- package/dist/components/ai-elements/agent.d.ts +31 -0
- package/dist/components/ai-elements/agent.js +77 -0
- package/dist/components/ai-elements/artifact.d.ts +27 -0
- package/dist/components/ai-elements/artifact.js +108 -0
- package/dist/components/ai-elements/attachments.d.ts +57 -0
- package/dist/components/ai-elements/attachments.js +258 -0
- package/dist/components/ai-elements/audio-player.d.ts +33 -0
- package/dist/components/ai-elements/audio-player.js +199 -0
- package/dist/components/ai-elements/canvas.d.ts +10 -0
- package/dist/components/ai-elements/canvas.js +24 -0
- package/dist/components/ai-elements/chain-of-thought.d.ts +34 -0
- package/dist/components/ai-elements/chain-of-thought.js +159 -0
- package/dist/components/ai-elements/checkpoint.d.ts +16 -0
- package/dist/components/ai-elements/checkpoint.js +47 -0
- package/dist/components/ai-elements/code-block.d.ts +48 -0
- package/dist/components/ai-elements/code-block.js +1 -0
- package/dist/components/ai-elements/commit.d.ts +68 -0
- package/dist/components/ai-elements/commit.js +314 -0
- package/dist/components/ai-elements/confirmation.d.ts +52 -0
- package/dist/components/ai-elements/confirmation.js +76 -0
- package/dist/components/ai-elements/connection.d.ts +5 -0
- package/dist/components/ai-elements/connection.js +34 -0
- package/dist/components/ai-elements/context.d.ts +36 -0
- package/dist/components/ai-elements/context.js +320 -0
- package/dist/components/ai-elements/controls.d.ts +8 -0
- package/dist/components/ai-elements/controls.js +17 -0
- package/dist/components/ai-elements/conversation.d.ts +27 -0
- package/dist/components/ai-elements/conversation.js +119 -0
- package/dist/components/ai-elements/edge.d.ts +9 -0
- package/dist/components/ai-elements/edge.js +111 -0
- package/dist/components/ai-elements/environment-variables.d.ts +42 -0
- package/dist/components/ai-elements/environment-variables.js +208 -0
- package/dist/components/ai-elements/file-tree.d.ts +30 -0
- package/dist/components/ai-elements/file-tree.js +212 -0
- package/dist/components/ai-elements/image.d.ts +10 -0
- package/dist/components/ai-elements/image.js +23 -0
- package/dist/components/ai-elements/inline-citation.d.ts +42 -0
- package/dist/components/ai-elements/inline-citation.js +203 -0
- package/dist/components/ai-elements/jsx-preview.d.ts +33 -0
- package/dist/components/ai-elements/jsx-preview.js +206 -0
- package/dist/components/ai-elements/loader.d.ts +9 -0
- package/dist/components/ai-elements/loader.js +115 -0
- package/dist/components/ai-elements/message.d.ts +42 -0
- package/dist/components/ai-elements/message.js +259 -0
- package/dist/components/ai-elements/mic-selector.d.ts +49 -0
- package/dist/components/ai-elements/mic-selector.js +252 -0
- package/dist/components/ai-elements/model-selector.d.ts +39 -0
- package/dist/components/ai-elements/model-selector.js +73 -0
- package/dist/components/ai-elements/node.d.ts +25 -0
- package/dist/components/ai-elements/node.js +41 -0
- package/dist/components/ai-elements/open-in-chat.d.ts +32 -0
- package/dist/components/ai-elements/open-in-chat.js +366 -0
- package/dist/components/ai-elements/package-info.d.ts +32 -0
- package/dist/components/ai-elements/package-info.js +162 -0
- package/dist/components/ai-elements/panel.d.ts +8 -0
- package/dist/components/ai-elements/panel.js +17 -0
- package/dist/components/ai-elements/persona.d.ts +50 -0
- package/dist/components/ai-elements/persona.js +209 -0
- package/dist/components/ai-elements/plan.d.ts +29 -0
- package/dist/components/ai-elements/plan.js +95 -0
- package/dist/components/ai-elements/prompt-input.d.ts +153 -0
- package/dist/components/ai-elements/prompt-input.js +939 -0
- package/dist/components/ai-elements/queue.d.ts +65 -0
- package/dist/components/ai-elements/queue.js +179 -0
- package/dist/components/ai-elements/reasoning.d.ts +30 -0
- package/dist/components/ai-elements/reasoning.js +161 -0
- package/dist/components/ai-elements/response.d.ts +9 -0
- package/dist/components/ai-elements/response.js +33 -0
- package/dist/components/ai-elements/sandbox.d.ts +28 -0
- package/dist/components/ai-elements/sandbox.js +98 -0
- package/dist/components/ai-elements/schema-display.d.ts +58 -0
- package/dist/components/ai-elements/schema-display.js +313 -0
- package/dist/components/ai-elements/shimmer.d.ts +14 -0
- package/dist/components/ai-elements/shimmer.js +1 -0
- package/dist/components/ai-elements/snippet.d.ts +22 -0
- package/dist/components/ai-elements/snippet.js +90 -0
- package/dist/components/ai-elements/sources.d.ts +16 -0
- package/dist/components/ai-elements/sources.js +62 -0
- package/dist/components/ai-elements/speech-input.d.ts +57 -0
- package/dist/components/ai-elements/speech-input.js +206 -0
- package/dist/components/ai-elements/stack-trace.d.ts +42 -0
- package/dist/components/ai-elements/stack-trace.js +377 -0
- package/dist/components/ai-elements/suggestion.d.ts +14 -0
- package/dist/components/ai-elements/suggestion.js +41 -0
- package/dist/components/ai-elements/task.d.ts +18 -0
- package/dist/components/ai-elements/task.js +60 -0
- package/dist/components/ai-elements/terminal.d.ts +31 -0
- package/dist/components/ai-elements/terminal.js +203 -0
- package/dist/components/ai-elements/test-results.d.ts +61 -0
- package/dist/components/ai-elements/test-results.js +349 -0
- package/dist/components/ai-elements/tool.d.ts +35 -0
- package/dist/components/ai-elements/tool.js +2 -0
- package/dist/components/ai-elements/toolbar.d.ts +8 -0
- package/dist/components/ai-elements/toolbar.js +18 -0
- package/dist/components/ai-elements/transcription.d.ts +19 -0
- package/dist/components/ai-elements/transcription.js +90 -0
- package/dist/components/ai-elements/voice-selector.d.ts +66 -0
- package/dist/components/ai-elements/voice-selector.js +332 -0
- package/dist/components/ai-elements/web-preview.d.ts +38 -0
- package/dist/components/ai-elements/web-preview.js +214 -0
- package/dist/components/info-card.d.ts +14 -0
- package/dist/components/info-card.js +1 -0
- package/dist/components/responsive-alert-dialog.d.ts +19 -0
- package/dist/components/responsive-alert-dialog.js +1 -0
- package/dist/components/responsive-dialog.d.ts +14 -0
- package/dist/components/responsive-dialog.js +1 -0
- package/dist/config-IcWUmjwj.d.ts +239 -0
- package/dist/features/chat/chat-card.d.ts +5 -0
- package/dist/features/chat/chat-card.js +14 -0
- package/dist/features/chat/chat-element/chat-element.d.ts +8 -0
- package/dist/features/chat/chat-element/chat-element.js +14 -0
- package/dist/features/chat/chat-element/use-chat.d.ts +21 -0
- package/dist/features/chat/chat-element/use-chat.js +14 -0
- package/dist/features/chat/chat-element/use-initial-messages.d.ts +20 -0
- package/dist/features/chat/chat-element/use-initial-messages.js +14 -0
- package/dist/features/chat/chat-header/chat-header.d.ts +8 -0
- package/dist/features/chat/chat-header/chat-header.js +14 -0
- package/dist/features/chat/chat-header/chat-menu.d.ts +5 -0
- package/dist/features/chat/chat-header/chat-menu.js +2 -0
- package/dist/features/chat/chat-history/chat-history-empty.d.ts +5 -0
- package/dist/features/chat/chat-history/chat-history-empty.js +1 -0
- package/dist/features/chat/chat-history/chat-history.d.ts +5 -0
- package/dist/features/chat/chat-history/chat-history.js +14 -0
- package/dist/features/chat/chat-message.d.ts +10 -0
- package/dist/features/chat/chat-message.js +1 -0
- package/dist/features/chat/chat-molecule.d.ts +35 -0
- package/dist/features/chat/chat-molecule.js +14 -0
- package/dist/features/chat/chat-prompt-input.d.ts +16 -0
- package/dist/features/chat/chat-prompt-input.js +14 -0
- package/dist/features/chat/chat.context.d.ts +26 -0
- package/dist/features/chat/chat.context.js +13 -0
- package/dist/features/chat/index.d.ts +14 -0
- package/dist/features/chat/index.js +14 -0
- package/dist/features/chat/queries/query-keys.d.ts +8 -0
- package/dist/features/chat/queries/query-keys.js +1 -0
- package/dist/features/chat/queries/use-create-conversation-mutation.d.ts +29 -0
- package/dist/features/chat/queries/use-create-conversation-mutation.js +38 -0
- package/dist/features/chat/queries/use-get-chat-query.d.ts +9 -0
- package/dist/features/chat/queries/use-get-chat-query.js +14 -0
- package/dist/features/chat/queries/use-get-conversation-query.d.ts +62 -0
- package/dist/features/chat/queries/use-get-conversation-query.js +14 -0
- package/dist/features/chat/queries/use-list-conversations-query.d.ts +29 -0
- package/dist/features/chat/queries/use-list-conversations-query.js +14 -0
- package/dist/features/chat/store.d.ts +13 -0
- package/dist/features/chat/store.js +1 -0
- package/dist/features/chat/utils.d.ts +5 -0
- package/dist/features/chat/utils.js +1 -0
- package/dist/features/data-fetching/use-api-client.d.ts +5 -0
- package/dist/features/data-fetching/use-api-client.js +14 -0
- package/dist/features/logger/logger.d.ts +9 -0
- package/dist/features/logger/logger.js +1 -0
- package/dist/features/molecule/chatsdk-provider.d.ts +19 -0
- package/dist/features/molecule/chatsdk-provider.js +26 -0
- package/dist/features/molecule/constants.d.ts +3 -0
- package/dist/features/molecule/constants.js +1 -0
- package/dist/features/molecule/molecule-provider.d.ts +39 -0
- package/dist/features/molecule/molecule-provider.js +1 -0
- package/dist/features/molecule/store.d.ts +53 -0
- package/dist/features/molecule/store.js +3 -0
- package/dist/features/molecule/types/api.d.ts +8 -0
- package/dist/features/molecule/types/api.js +1 -0
- package/dist/features/molecule/types/callbacks.d.ts +22 -0
- package/dist/features/molecule/types/callbacks.js +1 -0
- package/dist/features/molecule/types/config.d.ts +10 -0
- package/dist/features/molecule/types/config.js +1 -0
- package/dist/features/molecule/types/context.d.ts +11 -0
- package/dist/features/molecule/types/context.js +1 -0
- package/dist/features/molecule/types/locale.d.ts +9 -0
- package/dist/features/molecule/types/locale.js +1 -0
- package/dist/features/molecule/types/theme.d.ts +38 -0
- package/dist/features/molecule/types/theme.js +1 -0
- package/dist/features/molecule/types/translations.d.ts +10 -0
- package/dist/features/molecule/types/translations.js +1 -0
- package/dist/features/molecule/use-merge-global-config.d.ts +22 -0
- package/dist/features/molecule/use-merge-global-config.js +5 -0
- package/dist/features/molecule/use-molecule-config.d.ts +41 -0
- package/dist/features/molecule/use-molecule-config.js +6 -0
- package/dist/features/molecule/utils.d.ts +10 -0
- package/dist/features/molecule/utils.js +1 -0
- package/dist/i18n/config.d.ts +61 -0
- package/dist/i18n/config.js +1 -0
- package/dist/i18n/i18next.d.ts +11 -0
- package/dist/i18n/i18next.js +2 -0
- package/dist/i18n/utils.d.ts +11 -0
- package/dist/i18n/utils.js +6 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +20 -0
- package/dist/styles.css +6811 -0
- package/package.json +123 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { deepMerge, mergeApi, mergeConfigs, mergeContext, mergeFont, mergeLocale, mergeLogger, mergeObjectsOneLevel, mergeTheme, mergeTranslations } from '../../chunk-RJG5D2TM.js';
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { Namespace } from 'i18next';
|
|
2
|
+
|
|
3
|
+
var chat = {
|
|
4
|
+
"chat-card": {
|
|
5
|
+
"insufficient-credits-error": "This AI Chat is currently unavailable. If you are the owner, please check your account."
|
|
6
|
+
},
|
|
7
|
+
header: {
|
|
8
|
+
"history-tab-label": "History",
|
|
9
|
+
menu: {
|
|
10
|
+
"new-conversation-menu-item-label": "Start New Chat",
|
|
11
|
+
"history-menu-item-label": "View History"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
history: {
|
|
15
|
+
empty: {
|
|
16
|
+
title: "No conversations yet...",
|
|
17
|
+
description: "Start a conversation to see your history here"
|
|
18
|
+
},
|
|
19
|
+
"unitled-conversation": "Untitled conversation",
|
|
20
|
+
"new-conversation": "Start New Conversation"
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
var en = {
|
|
24
|
+
chat: chat
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
type Locale = (typeof languages)[number];
|
|
28
|
+
type Formality = "formal" | "informal";
|
|
29
|
+
type Resource = typeof en;
|
|
30
|
+
declare const cookieName: "i18next";
|
|
31
|
+
declare const headerName: "x-i18next-current-language";
|
|
32
|
+
declare const fallbackLng: "en";
|
|
33
|
+
declare const languages: readonly ["en"];
|
|
34
|
+
declare const namespaces: Namespace[];
|
|
35
|
+
declare const defaultNamespace = "chat";
|
|
36
|
+
declare const resources: {
|
|
37
|
+
en: {
|
|
38
|
+
chat: {
|
|
39
|
+
"chat-card": {
|
|
40
|
+
"insufficient-credits-error": string;
|
|
41
|
+
};
|
|
42
|
+
header: {
|
|
43
|
+
"history-tab-label": string;
|
|
44
|
+
menu: {
|
|
45
|
+
"new-conversation-menu-item-label": string;
|
|
46
|
+
"history-menu-item-label": string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
history: {
|
|
50
|
+
empty: {
|
|
51
|
+
title: string;
|
|
52
|
+
description: string;
|
|
53
|
+
};
|
|
54
|
+
"unitled-conversation": string;
|
|
55
|
+
"new-conversation": string;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export { type Formality, type Locale, type Resource, cookieName, defaultNamespace, fallbackLng, headerName, languages, namespaces, resources };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { cookieName, defaultNamespace, fallbackLng, headerName, languages, namespaces, resources } from '../chunk-R7G3RQLU.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Locale } from './config.js';
|
|
2
|
+
import 'i18next';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Given a locale such as "en-GB", returns an array containing the language only and full code, e.g. ["en", "en-GB"]
|
|
6
|
+
* @param locale Locale string such as "en-GB"
|
|
7
|
+
* @returns Array of ["en", "en-GB"]
|
|
8
|
+
*/
|
|
9
|
+
declare function getLocaleChainFromLocale(locale?: Locale): Locale[];
|
|
10
|
+
|
|
11
|
+
export { getLocaleChainFromLocale };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export { ChatMolecule, MoleculeProvider, useMolecule, useMoleculeCallbacks, useMoleculeComponent, useMoleculeConfig } from './features/chat/chat-molecule.js';
|
|
2
|
+
export { InfoCard, InfoCardProps } from './components/info-card.js';
|
|
3
|
+
export { ResponsiveDialog, ResponsiveDialogProps } from './components/responsive-dialog.js';
|
|
4
|
+
export { ResponsiveAlertDialog, ResponsiveAlertDialogProps } from './components/responsive-alert-dialog.js';
|
|
5
|
+
export { Formality, Locale, Resource, cookieName, defaultNamespace, fallbackLng, headerName, languages, namespaces, resources } from './i18n/config.js';
|
|
6
|
+
import './i18n/i18next.js';
|
|
7
|
+
import './features/molecule/types/callbacks.js';
|
|
8
|
+
import './config-IcWUmjwj.js';
|
|
9
|
+
import './features/logger/logger.js';
|
|
10
|
+
import './features/molecule/types/api.js';
|
|
11
|
+
import '@chatsdk-dev/api-client';
|
|
12
|
+
import './features/molecule/types/context.js';
|
|
13
|
+
import './features/molecule/types/locale.js';
|
|
14
|
+
import '@chatsdk-dev/elements/i18n/config';
|
|
15
|
+
import './features/molecule/types/theme.js';
|
|
16
|
+
import '@chatsdk-dev/ui/components/typography/text';
|
|
17
|
+
import 'react/jsx-runtime';
|
|
18
|
+
import './features/molecule/molecule-provider.js';
|
|
19
|
+
import 'react';
|
|
20
|
+
import 'i18next';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export { ChatMolecule, MoleculeProvider, useMolecule, useMoleculeCallbacks, useMoleculeComponent, useMoleculeConfig } from './chunk-TDP6D7U7.js';
|
|
2
|
+
import './chunk-AP4MG32M.js';
|
|
3
|
+
import './chunk-YXAMLTTT.js';
|
|
4
|
+
import './chunk-TDEFIW2L.js';
|
|
5
|
+
import './chunk-M5OONVIO.js';
|
|
6
|
+
import './chunk-VYDYCGJL.js';
|
|
7
|
+
import './chunk-MXTBCHYC.js';
|
|
8
|
+
import './chunk-2LHKM7RD.js';
|
|
9
|
+
import './chunk-5UMYP6MD.js';
|
|
10
|
+
import './chunk-VS55HRUS.js';
|
|
11
|
+
import './chunk-YX46JVQN.js';
|
|
12
|
+
import './chunk-RJG5D2TM.js';
|
|
13
|
+
import './chunk-ZCSZX3OI.js';
|
|
14
|
+
import './chunk-SLJNKQ2G.js';
|
|
15
|
+
export { InfoCard } from './chunk-EGIUE7H2.js';
|
|
16
|
+
export { ResponsiveAlertDialog } from './chunk-QTRMNIG3.js';
|
|
17
|
+
export { ResponsiveDialog } from './chunk-YXFVHSY4.js';
|
|
18
|
+
export { i18n } from './chunk-V2ITXC65.js';
|
|
19
|
+
export { cookieName, defaultNamespace, fallbackLng, headerName, languages, namespaces, resources } from './chunk-R7G3RQLU.js';
|
|
20
|
+
import './styles.css';
|