@openviking/react 0.1.3 → 0.1.4
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/LICENSE.arco-design +21 -0
- package/README.md +25 -15
- package/dist/0~0.js +19 -0
- package/dist/2~0.js +2267 -29
- package/dist/2~0.js.LICENSE.txt +23 -0
- package/dist/3c~0.js +2206 -0
- package/dist/3~0.js +1205 -1982
- package/dist/4~0.js +18 -0
- package/dist/9~0.js +43 -0
- package/dist/{1~0.js → ae~0.js} +5 -24
- package/dist/ark-message-list-view~0.js +530 -119
- package/dist/a~0.js +1289 -10
- package/dist/c7~0.js +38 -2
- package/dist/ck~0.js +23 -0
- package/dist/client/provider.d.ts +5 -3
- package/dist/client/types.d.ts +5 -5
- package/dist/client.js +2 -1
- package/dist/components/agent-connect/agent-connect-copy.d.ts +19 -33
- package/dist/components/agent-connect/agent-connect-design.d.ts +1935 -167
- package/dist/components/agent-connect/agent-connect-instructions.d.ts +135 -0
- package/dist/components/agent-connect/locales/en-US.d.ts +20 -0
- package/dist/components/agent-connect/locales/zh-CN.d.ts +3 -0
- package/dist/components/agent-connect/style.css +14 -2
- package/dist/components/agent-connect/types.d.ts +2 -1
- package/dist/components/directory-tour/directory-tour.d.ts +3 -0
- package/dist/components/directory-tour/index.d.ts +3 -0
- package/dist/components/directory-tour/locales/en-US.d.ts +3 -0
- package/dist/components/directory-tour/locales/zh-CN.d.ts +3 -0
- package/dist/components/directory-tour/steps.d.ts +5 -0
- package/dist/components/directory-tour/style.css +237 -0
- package/dist/components/directory-tour/style.js +0 -0
- package/dist/components/directory-tour/types.d.ts +42 -0
- package/dist/components/directory-tour/use-tour-anchor.d.ts +5 -0
- package/dist/components/directory-tour/use-tour-position.d.ts +12 -0
- package/dist/components/directory-tour.js +40 -0
- package/dist/components/file-browser-entries/file-browser-entries.d.ts +5 -5
- package/dist/components/file-browser-entries/labels.d.ts +3 -0
- package/dist/components/file-browser-entries/locales/en-US.d.ts +6 -0
- package/dist/components/file-browser-entries/locales/zh-CN.d.ts +6 -0
- package/dist/components/file-browser-entries/style.css +752 -2
- package/dist/components/file-browser-entries/types.d.ts +34 -16
- package/dist/components/file-preview/file-preview-adapters.d.ts +2 -1
- package/dist/components/file-preview/file-preview-body.d.ts +2 -1
- package/dist/components/file-preview/file-preview-breadcrumb-menu.d.ts +2 -1
- package/dist/components/file-preview/file-preview-breadcrumb.d.ts +2 -1
- package/dist/components/file-preview/file-preview-directory.d.ts +2 -1
- package/dist/components/file-preview/file-preview-handle-adapters.d.ts +2 -1
- package/dist/components/file-preview/file-preview-header.d.ts +6 -2
- package/dist/components/file-preview/file-preview-image-frame.d.ts +5 -0
- package/dist/components/file-preview/file-preview-labels.d.ts +2 -14
- package/dist/components/file-preview/file-preview-level-tabs.d.ts +7 -0
- package/dist/components/file-preview/file-preview-markdown-images.d.ts +13 -0
- package/dist/components/file-preview/file-preview-panels.d.ts +5 -2
- package/dist/components/file-preview/file-preview-viewer.d.ts +2 -1
- package/dist/components/file-preview/file-preview.d.ts +0 -1
- package/dist/components/file-preview/index.d.ts +2 -1
- package/dist/components/file-preview/locales/en-US.d.ts +16 -0
- package/dist/components/file-preview/locales/zh-CN.d.ts +16 -0
- package/dist/components/file-preview/style.css +160 -2
- package/dist/components/file-preview/types.d.ts +34 -10
- package/dist/components/file-preview/use-file-preview-levels.d.ts +7 -0
- package/dist/components/file-preview/use-file-preview-view-state.d.ts +15 -0
- package/dist/components/file-preview.js +1 -1
- package/dist/components/file-tree/file-tree-info-labels.d.ts +0 -15
- package/dist/components/file-tree/file-tree-labels.d.ts +4 -0
- package/dist/components/file-tree/file-tree-row-shared.d.ts +2 -12
- package/dist/components/file-tree/file-tree-toolbar.d.ts +11 -0
- package/dist/components/file-tree/locales/en-US.d.ts +69 -0
- package/dist/components/file-tree/locales/zh-CN.d.ts +69 -0
- package/dist/components/file-tree/style.css +143 -15
- package/dist/components/file-tree/types.d.ts +38 -10
- package/dist/components/file-tree/use-file-tree-actions.d.ts +4 -1
- package/dist/components/scope-switcher/labels.d.ts +3 -0
- package/dist/components/scope-switcher/locales/en-US.d.ts +8 -0
- package/dist/components/scope-switcher/locales/zh-CN.d.ts +8 -0
- package/dist/components/scope-switcher/scope-panel.d.ts +1 -1
- package/dist/components/scope-switcher/scope-switcher.d.ts +1 -1
- package/dist/components/scope-switcher/style.css +14 -2
- package/dist/components/scope-switcher/types.d.ts +11 -5
- package/dist/components/style.css +9851 -6812
- package/dist/components/tui/locales/en-US.d.ts +35 -0
- package/dist/components/tui/locales/zh-CN.d.ts +35 -0
- package/dist/components/tui/style.css +310 -18
- package/dist/components/tui/tui-copy-button.d.ts +1 -1
- package/dist/components/tui/tui-empty.d.ts +25 -0
- package/dist/components/tui/tui-labels.d.ts +2 -2
- package/dist/components/tui/tui.d.ts +1 -1
- package/dist/components/tui/types.d.ts +35 -12
- package/dist/components/tui.js +1 -1
- package/dist/components/viking-bot/ark-adapter.d.ts +2 -0
- package/dist/components/viking-bot/ark-message-body.d.ts +1 -7
- package/dist/components/viking-bot/ark-message-list-view.d.ts +1 -1
- package/dist/components/viking-bot/ark-message-row.d.ts +3 -1
- package/dist/components/viking-bot/bot-popover.d.ts +9 -0
- package/dist/components/viking-bot/capabilities.d.ts +49 -0
- package/dist/components/viking-bot/composer-attachments.d.ts +13 -0
- package/dist/components/viking-bot/composer-controls.d.ts +10 -0
- package/dist/components/viking-bot/composer-footer.d.ts +17 -0
- package/dist/components/viking-bot/composer-references.d.ts +20 -0
- package/dist/components/viking-bot/composer-text.d.ts +10 -0
- package/dist/components/viking-bot/index.d.ts +3 -1
- package/dist/components/viking-bot/interaction/ask-human-fields.d.ts +1 -1
- package/dist/components/viking-bot/interaction/labels.d.ts +2 -1
- package/dist/components/viking-bot/interaction/locales/en-US.d.ts +17 -0
- package/dist/components/viking-bot/interaction/locales/zh-CN.d.ts +17 -0
- package/dist/components/viking-bot/interaction/types.d.ts +8 -3
- package/dist/components/viking-bot/interaction/viking-bot-interaction.d.ts +1 -1
- package/dist/components/viking-bot/labels.d.ts +2 -0
- package/dist/components/viking-bot/locales/en-US.d.ts +40 -0
- package/dist/components/viking-bot/locales/zh-CN.d.ts +40 -0
- package/dist/components/viking-bot/markdown-links.d.ts +27 -0
- package/dist/components/viking-bot/message-activity.d.ts +7 -0
- package/dist/components/viking-bot/message-code-block.d.ts +8 -0
- package/dist/components/viking-bot/message-footer.d.ts +8 -0
- package/dist/components/viking-bot/message-markdown.d.ts +9 -0
- package/dist/components/viking-bot/model.d.ts +37 -3
- package/dist/components/viking-bot/quick-input-tracker.d.ts +16 -0
- package/dist/components/viking-bot/quick-inputs.d.ts +6 -0
- package/dist/components/viking-bot/reference-picker.d.ts +16 -0
- package/dist/components/viking-bot/session-actions.d.ts +11 -0
- package/dist/components/viking-bot/style.css +1486 -48
- package/dist/components/viking-bot/tool-activity.d.ts +9 -0
- package/dist/components/viking-bot/tool-result-links.d.ts +6 -0
- package/dist/components/viking-bot/types.d.ts +21 -9
- package/dist/components/viking-bot/use-quick-input.d.ts +17 -0
- package/dist/components/viking-bot/viking-bot.d.ts +1 -6
- package/dist/components/viking-bot/welcome.d.ts +8 -0
- package/dist/components/viking-bot.js +1 -1
- package/dist/c~0.js +533 -66
- package/dist/e~0.js +333 -0
- package/dist/file-preview-viewer~0.js +90 -8
- package/dist/f~0.js +39 -47
- package/dist/h~0.js +5 -1
- package/dist/icons/console-icons.d.ts +12 -0
- package/dist/icons/index.d.ts +2 -0
- package/dist/icons/viking-bot-icons.d.ts +6 -0
- package/dist/icons.js +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -1
- package/dist/k~0.js +1 -0
- package/dist/lg~0.js +155 -0
- package/dist/lk~0.js +37 -8
- package/dist/l~0.js +102 -119
- package/dist/modules/console/command-messages.d.ts +19 -0
- package/dist/modules/console/command-parser.d.ts +15 -0
- package/dist/modules/console/command-specs.d.ts +15 -0
- package/dist/modules/console/commands.d.ts +6 -0
- package/dist/modules/console/console-history.d.ts +10 -0
- package/dist/modules/console/console-toolbar.d.ts +18 -0
- package/dist/modules/console/console.d.ts +1 -3
- package/dist/modules/console/controller.d.ts +17 -0
- package/dist/modules/console/index.d.ts +2 -0
- package/dist/modules/console/labels.d.ts +61 -0
- package/dist/modules/console/locales/en-US.d.ts +49 -0
- package/dist/modules/console/locales/zh-CN.d.ts +3 -0
- package/dist/modules/console/localize-records.d.ts +11 -0
- package/dist/modules/console/results.d.ts +2 -0
- package/dist/modules/console/style.css +10905 -15
- package/dist/modules/console/types.d.ts +59 -80
- package/dist/modules/console/use-console.d.ts +3 -0
- package/dist/modules/console.js +1 -1
- package/dist/modules/file-browser/file-browser-detail.d.ts +2 -1
- package/dist/modules/file-browser/file-browser-labels.d.ts +11 -12
- package/dist/modules/file-browser/file-browser-toolbar.d.ts +3 -4
- package/dist/modules/file-browser/file-browser-tree-pane.d.ts +7 -5
- package/dist/modules/file-browser/file-browser.d.ts +1 -1
- package/dist/modules/file-browser/fs-read-directory.d.ts +2 -6
- package/dist/modules/file-browser/locales/en-US.d.ts +25 -0
- package/dist/modules/file-browser/locales/zh-CN.d.ts +25 -0
- package/dist/modules/file-browser/style.css +1581 -126
- package/dist/modules/file-browser/types.d.ts +38 -29
- package/dist/modules/file-browser/use-file-browser.d.ts +6 -1
- package/dist/modules/file-browser/use-fs-preview.d.ts +15 -1
- package/dist/modules/scope-cascade/labels.d.ts +6 -0
- package/dist/modules/scope-cascade/locales/en-US.d.ts +6 -0
- package/dist/modules/scope-cascade/locales/zh-CN.d.ts +3 -0
- package/dist/modules/scope-cascade/scope-cascade.d.ts +1 -1
- package/dist/modules/scope-cascade/style.css +14 -2
- package/dist/modules/scope-cascade/types.d.ts +3 -0
- package/dist/modules/style.css +15853 -3484
- package/dist/nx~0.js +15 -0
- package/dist/n~0.js +238 -83
- package/dist/o~0.js +10 -7
- package/dist/p~0.js +27 -0
- package/dist/rslib-runtime~0.js +42 -0
- package/dist/r~0.js +152 -0
- package/dist/shared/components/drawer/drawer.d.ts +13 -0
- package/dist/shared/components/drawer/index.d.ts +1 -0
- package/dist/shared/components/overlay/use-overlay-position.d.ts +2 -2
- package/dist/shared/components/tooltip/use-portal-theme.d.ts +3 -0
- package/dist/shared/locale.d.ts +6 -0
- package/dist/style.css +26056 -10636
- package/dist/u~0.js +75 -58
- package/dist/viking-bot-composer~0.js +434 -77
- package/dist/viking-bot-interaction~0.js +11 -11
- package/package.json +13 -4
- package/dist/30~0.js +0 -1332
- package/dist/components/tui/tui-labels-zh.d.ts +0 -2
- package/dist/modules/file-browser/tree-info-copy.d.ts +0 -15
- package/dist/modules/file-browser/tree-info-copy.zh-CN.d.ts +0 -15
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ActivityItemRenderContext, McpToolCallActivityItem } from '@ark-design/ui/activity-timeline';
|
|
2
|
+
import type { VikingBotLabels, VikingBotToolResultLink } from './model.js';
|
|
3
|
+
/** Keep Ark's tool row/icon; supply the reference version's input/output details. */
|
|
4
|
+
export declare function ToolActivity({ context, labels, onOpenUri, results, }: {
|
|
5
|
+
context: ActivityItemRenderContext<McpToolCallActivityItem>;
|
|
6
|
+
labels: VikingBotLabels;
|
|
7
|
+
onOpenUri?: (uri: string) => void;
|
|
8
|
+
results?: readonly VikingBotToolResultLink[];
|
|
9
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { VikingBotLabels, VikingBotToolResultLink } from './model.js';
|
|
2
|
+
export declare function ToolResultLinks({ results, labels, onOpenUri, }: {
|
|
3
|
+
results: readonly VikingBotToolResultLink[];
|
|
4
|
+
labels: VikingBotLabels;
|
|
5
|
+
onOpenUri?: (uri: string) => void;
|
|
6
|
+
}): import("react").JSX.Element;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
+
import type { Locale } from '../../shared/locale.js';
|
|
1
2
|
import type { HTMLAttributes, ReactNode, RefObject } from 'react';
|
|
2
3
|
import type { VikingBotInteractionProps } from './interaction/types.js';
|
|
4
|
+
import type { VikingBotInputFeatures, VikingBotSessions } from './capabilities.js';
|
|
3
5
|
import type { VikingBotAttachment, VikingBotDraft, VikingBotLabels, VikingBotMessage, VikingBotStreamingState } from './model.js';
|
|
4
6
|
/** 消息列表的公开接口。Public interface of the message list. */
|
|
5
7
|
export interface VikingBotMessageListProps {
|
|
6
8
|
/** 当前会话的消息。Messages in the current session. */
|
|
7
9
|
messages: readonly VikingBotMessage[];
|
|
10
|
+
/** 内置中英文文案的语言。Language of the built-in interface copy. */
|
|
11
|
+
locale: Locale;
|
|
8
12
|
/** 附加到根元素的类名。Class name applied to the root element. */
|
|
9
13
|
className?: string;
|
|
10
14
|
/** 助手仍在生成时追加的片段。Parts appended while the assistant is still streaming. */
|
|
@@ -21,7 +25,7 @@ export interface VikingBotMessageListProps {
|
|
|
21
25
|
onMessageAction?: (messageId: string, actionKey: string) => void;
|
|
22
26
|
/** 消息正文的替换渲染,用于宿主自带 Markdown 渲染器。Replaces message bodies. */
|
|
23
27
|
renderMessage?: (message: VikingBotMessage) => ReactNode;
|
|
24
|
-
/**
|
|
28
|
+
/** 可替换文案,未提供的项使用当前 locale 的内置文案。Replaceable copy; omitted fields follow locale. */
|
|
25
29
|
labels?: VikingBotLabels;
|
|
26
30
|
}
|
|
27
31
|
/** 输入区的命令式入口。Imperative handle of the composer. */
|
|
@@ -34,15 +38,17 @@ export interface VikingBotComposerRef {
|
|
|
34
38
|
addFiles: (files: readonly File[]) => void;
|
|
35
39
|
/** 是否已达到附件数量上限。Whether the attachment limit has been reached. */
|
|
36
40
|
isAttachmentLimitReached: () => boolean;
|
|
37
|
-
/**
|
|
41
|
+
/** 清空输入文本;附件与引用由宿主重置。Clears text; the host resets attachments and references. */
|
|
38
42
|
clear: () => void;
|
|
39
43
|
/** 聚焦输入框。Focuses the input. */
|
|
40
44
|
focus: () => void;
|
|
41
45
|
}
|
|
42
46
|
/** 输入区的公开接口。Public interface of the composer. */
|
|
43
|
-
export interface VikingBotComposerProps {
|
|
47
|
+
export interface VikingBotComposerProps extends VikingBotInputFeatures {
|
|
44
48
|
/** 受控的草稿文本。Controlled draft text. */
|
|
45
49
|
value: string;
|
|
50
|
+
/** 内置中英文文案的语言。Language of the built-in interface copy. */
|
|
51
|
+
locale: Locale;
|
|
46
52
|
/** 附加到根元素的类名。Class name applied to the root element. */
|
|
47
53
|
className?: string;
|
|
48
54
|
/** 宿主已选中的附件。Attachments already selected by the host. */
|
|
@@ -71,13 +77,19 @@ export interface VikingBotComposerProps {
|
|
|
71
77
|
onSend?: (draft: VikingBotDraft) => void;
|
|
72
78
|
/** 停止正在进行的回复。省略时不展示停止动作。Stops the streaming reply. */
|
|
73
79
|
onCancel?: () => void;
|
|
74
|
-
/**
|
|
80
|
+
/** 可替换文案,未提供的项使用当前 locale 的内置文案。Replaceable copy; omitted fields follow locale. */
|
|
75
81
|
labels?: VikingBotLabels;
|
|
76
82
|
}
|
|
77
83
|
/** 完整对话区的公开接口。Public interface of the whole conversation view. */
|
|
78
|
-
export interface VikingBotProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onCopy' | 'onSubmit'> {
|
|
84
|
+
export interface VikingBotProps extends VikingBotInputFeatures, Omit<HTMLAttributes<HTMLDivElement>, 'onCopy' | 'onSubmit'> {
|
|
79
85
|
/** 当前会话的消息。Messages in the current session. */
|
|
80
86
|
messages: readonly VikingBotMessage[];
|
|
87
|
+
/** 内置中英文文案的语言。Language of the built-in interface copy. */
|
|
88
|
+
locale: Locale;
|
|
89
|
+
/** Host-owned session history and actions. */
|
|
90
|
+
sessions?: VikingBotSessions;
|
|
91
|
+
/** Optional extension controls, such as a host-provided More menu. */
|
|
92
|
+
headerActions?: ReactNode;
|
|
81
93
|
/** 附加到根元素的类名。Class name applied to the root element. */
|
|
82
94
|
className?: string;
|
|
83
95
|
/** 助手仍在生成时追加的片段。Parts appended while the assistant is still streaming. */
|
|
@@ -92,7 +104,7 @@ export interface VikingBotProps extends Omit<HTMLAttributes<HTMLDivElement>, 'on
|
|
|
92
104
|
isAvailable?: boolean;
|
|
93
105
|
/** 不可用时的说明。Message shown while the bot is unavailable. */
|
|
94
106
|
unavailableMessage?: string;
|
|
95
|
-
/**
|
|
107
|
+
/** 首条消息前的内容;undefined 使用欢迎页,null 隐藏。Empty content: undefined uses welcome; null hides it. */
|
|
96
108
|
emptyState?: ReactNode;
|
|
97
109
|
/** 头部插槽,例如会话标题或历史按钮。Header slot. */
|
|
98
110
|
header?: ReactNode;
|
|
@@ -100,7 +112,7 @@ export interface VikingBotProps extends Omit<HTMLAttributes<HTMLDivElement>, 'on
|
|
|
100
112
|
footer?: ReactNode;
|
|
101
113
|
/** 替换整个主体,用于宿主自定义组合。Replaces the whole body. */
|
|
102
114
|
children?: ReactNode;
|
|
103
|
-
/**
|
|
115
|
+
/** 替换消息列表,优先于空态;null 隐藏。Replaces the list, including empty state; null hides it. */
|
|
104
116
|
messageList?: ReactNode;
|
|
105
117
|
/** 替换输入区,用于宿主自带输入组件。Replaces the composer. */
|
|
106
118
|
composer?: ReactNode;
|
|
@@ -108,7 +120,7 @@ export interface VikingBotProps extends Omit<HTMLAttributes<HTMLDivElement>, 'on
|
|
|
108
120
|
* 待确认交互的配置;存在时替代输入区。
|
|
109
121
|
* Configuration of a pending interaction; replaces the composer.
|
|
110
122
|
*/
|
|
111
|
-
interaction?: VikingBotInteractionProps
|
|
123
|
+
interaction?: Omit<VikingBotInteractionProps, 'locale'>;
|
|
112
124
|
/**
|
|
113
125
|
* 整块替换交互区;传值时忽略 `interaction` 的内置渲染,宿主自行渲染。
|
|
114
126
|
* Replaces the whole interaction area; when set, the built-in rendering of
|
|
@@ -135,6 +147,6 @@ export interface VikingBotProps extends Omit<HTMLAttributes<HTMLDivElement>, 'on
|
|
|
135
147
|
onCopy?: (text: string) => void;
|
|
136
148
|
/** 触发一条消息声明的动作。Fires a message action. */
|
|
137
149
|
onMessageAction?: (messageId: string, actionKey: string) => void;
|
|
138
|
-
/**
|
|
150
|
+
/** 可替换文案,未提供的项使用当前 locale 的内置文案。Replaceable copy; omitted fields follow locale. */
|
|
139
151
|
labels?: VikingBotLabels;
|
|
140
152
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { VikingBotQuickInput } from './capabilities.js';
|
|
2
|
+
export declare const QuickInputScope: import("react").Context<{
|
|
3
|
+
snapshot: () => import("./quick-input-tracker.js").PromptSnapshot;
|
|
4
|
+
edit: (next: string, caret?: number) => void;
|
|
5
|
+
release(): void;
|
|
6
|
+
insert(value: string, prompt: string): string;
|
|
7
|
+
} | null>;
|
|
8
|
+
/** Track only the prompt this instance inserted, leaving custom text intact. */
|
|
9
|
+
export declare function useQuickInput(value: string, onChange: (text: string) => void, onSelect?: (input: VikingBotQuickInput) => void, ownsScope?: boolean): {
|
|
10
|
+
tracker: {
|
|
11
|
+
snapshot: () => import("./quick-input-tracker.js").PromptSnapshot;
|
|
12
|
+
edit: (next: string, caret?: number) => void;
|
|
13
|
+
release(): void;
|
|
14
|
+
insert(value: string, prompt: string): string;
|
|
15
|
+
};
|
|
16
|
+
select(input: VikingBotQuickInput): void;
|
|
17
|
+
};
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import type { VikingBotProps } from './types.js';
|
|
2
2
|
/**
|
|
3
|
-
* 占位组件:仅按 props 契约渲染可用视图,未经设计评审,真实实现待重写。
|
|
4
|
-
*
|
|
5
3
|
* 完整对话区。消息列表、输入区与待确认交互都可被宿主替换:
|
|
6
4
|
* 传 `messageList`、`composer` 或 `interaction` 时使用宿主的渲染底座,
|
|
7
5
|
* 不传时使用内置实现。
|
|
8
6
|
*
|
|
9
|
-
* Placeholder: renders a working view against the props contract only, pending
|
|
10
|
-
* design review; the real implementation will be rewritten.
|
|
11
|
-
*
|
|
12
7
|
* The whole conversation view. The message list, the composer and the pending
|
|
13
8
|
* interaction can each be replaced by the host; the built-in implementations
|
|
14
9
|
* are used when they are omitted.
|
|
15
10
|
*/
|
|
16
|
-
export declare function VikingBot({ messages, className, streaming, draft, attachments, isSending, isAvailable, unavailableMessage, emptyState, header, footer, children, messageList, composer, interaction, interactionSlot, listKey, composerRef, onDraftChange, onFilesAdded, onAttachmentRemove, onSend, onCancel, onOpenUri, onCopy, onMessageAction, labels: overrides, ...rest }: VikingBotProps): import("react").JSX.Element;
|
|
11
|
+
export declare function VikingBot({ messages, className, streaming, draft, attachments, isSending, isAvailable, unavailableMessage, emptyState, header, sessions, headerActions, locale, quickInputs, onQuickInputSelect, references, footer, children, messageList, composer, interaction, interactionSlot, listKey, composerRef, onDraftChange, onFilesAdded, onAttachmentRemove, onSend, onCancel, onOpenUri, onCopy, onMessageAction, labels: overrides, ...rest }: VikingBotProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { VikingBotQuickInput } from './capabilities.js';
|
|
2
|
+
import type { VikingBotLabels } from './model.js';
|
|
3
|
+
export declare function VikingBotWelcome({ labels, quickInputs, onSelect, disabled, }: {
|
|
4
|
+
labels: Required<VikingBotLabels>;
|
|
5
|
+
quickInputs?: readonly VikingBotQuickInput[];
|
|
6
|
+
onSelect: (input: VikingBotQuickInput) => void;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}): import("react").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { DEFAULT_INTERACTION_LABELS } from "../c7~0.js";
|
|
2
|
-
export { DEFAULT_LABELS, VikingBot, VikingBotComposer, VikingBotMessageList } from "../c~0.js";
|
|
2
|
+
export { DEFAULT_LABELS, VikingBot, VikingBotComposer, VikingBotMessageList, VikingBotSessionActions } from "../c~0.js";
|
|
3
3
|
export { VikingBotInteraction } from "../w~0.js";
|
|
4
4
|
export { groupByActivity, groupMessages, messageText } from "../h~0.js";
|