@8wave/ai-elements 0.121.0-beta.50 → 0.121.0-beta.52
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 +30 -0
- package/dist/ai-elements.es.js +2062 -1850
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/PkChatbotViewConversations.js +1 -1
- package/dist-vue/PkChatbotViewFiles.js +1 -1
- package/dist-vue/PkChatbotViewProfile.js +1 -1
- package/dist-vue/_chunks/{PkChatbot-rM9EYhUu.js → PkChatbot-DgKkkbCs.js} +6 -6
- package/dist-vue/_chunks/{PkChatbot-rM9EYhUu.js.map → PkChatbot-DgKkkbCs.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-GiEjvFUZ.js → PkChatbotViewChat-58rvFSbr.js} +140 -127
- package/dist-vue/_chunks/PkChatbotViewChat-58rvFSbr.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewConversations-lf6kADE0.js → PkChatbotViewConversations-DP1zMA-B.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewConversations-lf6kADE0.js.map → PkChatbotViewConversations-DP1zMA-B.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-wJKiqU5k.js → PkChatbotViewFiles-DCo-erhU.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewFiles-wJKiqU5k.js.map → PkChatbotViewFiles-DCo-erhU.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-2nUnefc2.js → PkChatbotViewProfile-Da6iqXLn.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-2nUnefc2.js.map → PkChatbotViewProfile-Da6iqXLn.js.map} +1 -1
- package/dist-vue/_chunks/{useChatbotStore-Drb-YRsc.js → useChatbotStore-DhVxJwn6.js} +4 -4
- package/dist-vue/_chunks/useChatbotStore-DhVxJwn6.js.map +1 -0
- package/dist-vue/apps/web-component/src/components/EmbeddedChatWidget.ce.d.ts +7 -0
- package/dist-vue/apps/web-component/src/composables/usePageModal.d.ts +18 -0
- package/dist-vue/apps/web-component/src/lib.d.ts +3 -0
- package/dist-vue/composables.js +1 -1
- package/dist-vue/index.js +5 -5
- package/dist-vue/packages/components/src/chat/useWakeupWatch.d.ts +4 -1
- package/package.json +1 -1
- package/dist-vue/_chunks/PkChatbotViewChat-GiEjvFUZ.js.map +0 -1
- package/dist-vue/_chunks/useChatbotStore-Drb-YRsc.js.map +0 -1
|
@@ -32,6 +32,12 @@ type __VLS_Props = {
|
|
|
32
32
|
* (Agent Studio's assistant) keeps the chat in step with it.
|
|
33
33
|
*/
|
|
34
34
|
theme?: 'light' | 'dark';
|
|
35
|
+
/**
|
|
36
|
+
* While the page has a modal dialog open, the chat moves into it
|
|
37
|
+
* and stays usable, where the rest of the page is inert.
|
|
38
|
+
* Boolean or attribute string ("true"/"false").
|
|
39
|
+
*/
|
|
40
|
+
followPageDialogs?: boolean | string;
|
|
35
41
|
};
|
|
36
42
|
declare var __VLS_74: {}, __VLS_77: {}, __VLS_95: string, __VLS_96: {};
|
|
37
43
|
type __VLS_Slots = {} & {
|
|
@@ -65,6 +71,7 @@ declare const __VLS_base: DefineComponent<__VLS_Props, {
|
|
|
65
71
|
forwardedSlots: string;
|
|
66
72
|
cookieName: string;
|
|
67
73
|
displayMode: "widget" | "fullscreen" | "panel";
|
|
74
|
+
followPageDialogs: boolean | string;
|
|
68
75
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
69
76
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
70
77
|
declare const _default: typeof __VLS_export;
|
|
@@ -17,3 +17,21 @@ export declare function usePageModalStop(modal: ShallowRef<HTMLDialogElement | n
|
|
|
17
17
|
stopLabel: () => string;
|
|
18
18
|
onStop: () => void;
|
|
19
19
|
}): void;
|
|
20
|
+
/** The attribute of the element that keeps the widget's place in the page while it is in a dialog. */
|
|
21
|
+
export declare const DOCK_PLACEHOLDER_ATTRIBUTE = "data-agent-studio-placeholder";
|
|
22
|
+
/**
|
|
23
|
+
* The chat inside the page's modal dialog (spec `page-tools-improvements.md`,
|
|
24
|
+
* M11). A modal makes everything outside it inert, the widget too: while
|
|
25
|
+
* `enabled`, the widget moves into the dialog on top, fixed where it was on
|
|
26
|
+
* screen, over a placeholder that keeps its place in the page, and goes back
|
|
27
|
+
* when the dialog closes, fades out or leaves the page, or when its place goes
|
|
28
|
+
* out of sight (a panel the user closed). A browser without `moveBefore` keeps
|
|
29
|
+
* the widget where it is: a plain move would take it out of the page, and its
|
|
30
|
+
* state with it.
|
|
31
|
+
*
|
|
32
|
+
* Returns whether the widget is in the dialog and takes clicks there, which is
|
|
33
|
+
* checked on the first frame and again on every change the dock sees: until
|
|
34
|
+
* then, and wherever it does not, the card in the top layer and the stop in
|
|
35
|
+
* the page's dialog stay on.
|
|
36
|
+
*/
|
|
37
|
+
export declare function usePageModalDock(host: HTMLElement | null, enabled: MaybeRefOrGetter<boolean>): ShallowRef<boolean>;
|
|
@@ -28,6 +28,7 @@ export declare const EmbeddedChatWidgetCe: VueElementConstructor<{
|
|
|
28
28
|
displayMode?: "widget" | "fullscreen" | "panel";
|
|
29
29
|
systemTheme?: "light" | "dark";
|
|
30
30
|
theme?: "light" | "dark";
|
|
31
|
+
followPageDialogs?: boolean | string;
|
|
31
32
|
}>;
|
|
32
33
|
declare module 'vue' {
|
|
33
34
|
interface GlobalComponents {
|
|
@@ -116,6 +117,8 @@ export interface EmbeddedChatWidgetElement extends HTMLElement {
|
|
|
116
117
|
displayMode?: 'widget' | 'fullscreen' | 'panel';
|
|
117
118
|
/** The color scheme, over the agent's own setting too (`systemTheme` applies only to an agent set to automatic). */
|
|
118
119
|
theme?: 'light' | 'dark';
|
|
120
|
+
/** While the page has a modal dialog open, the chat moves into it and stays usable (spec `page-tools-improvements.md`, M11). */
|
|
121
|
+
followPageDialogs?: boolean;
|
|
119
122
|
forwardedSlots?: string;
|
|
120
123
|
customCss?: string;
|
|
121
124
|
sendMessage(text: string): void;
|
package/dist-vue/composables.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as e, h as t } from "./_chunks/Agent-BlWzW8Mg.js";
|
|
2
2
|
import { t as n } from "./_chunks/createChatbotApiClient-7i_D_crv.js";
|
|
3
|
-
import { n as r } from "./_chunks/useChatbotStore-
|
|
3
|
+
import { n as r } from "./_chunks/useChatbotStore-DhVxJwn6.js";
|
|
4
4
|
import { n as i } from "./_chunks/src-B-ZKEhTU.js";
|
|
5
5
|
import { a, j as o } from "./_chunks/utils-BpnTWYko.js";
|
|
6
6
|
import { t as s } from "./_chunks/useLocalizedString-Dmn92nix.js";
|
package/dist-vue/index.js
CHANGED
|
@@ -9,14 +9,14 @@ import { a as We, i as Ge, n as Ke } from "./_chunks/createChatbotApiClient-7i_D
|
|
|
9
9
|
import { t as qe } from "./_chunks/PkChatbotAuth-Btxg3TF0.js";
|
|
10
10
|
import { t as Je } from "./_chunks/VvButtonLocalized-C-vx25u4.js";
|
|
11
11
|
import { n as Ye, t as Xe } from "./_chunks/PkStreamingMarkdown-D00IssLd.js";
|
|
12
|
-
import { a as Ze, i as Qe, n as $e, r as et } from "./_chunks/useChatbotStore-
|
|
12
|
+
import { a as Ze, i as Qe, n as $e, r as et } from "./_chunks/useChatbotStore-DhVxJwn6.js";
|
|
13
13
|
import "./_chunks/src-B-ZKEhTU.js";
|
|
14
14
|
import { a as tt, l as nt, u as rt } from "./_chunks/message-DuibQyHy.js";
|
|
15
15
|
import { A as it, D as at, F as ot, I as st, N as ct, P as lt, f as ut, g as dt, m as ft, w as pt } from "./_chunks/utils-BpnTWYko.js";
|
|
16
16
|
import { t as mt } from "./_chunks/useSafeLocalStorage-a2eHEqAi.js";
|
|
17
17
|
import { t as ht } from "./_chunks/useDialogConfirm-CyD9VTKg.js";
|
|
18
|
-
import { n as gt, r as _t, t as vt } from "./_chunks/PkChatbotViewConversations-
|
|
19
|
-
import { i as yt, n as bt, r as xt, t as St } from "./_chunks/PkChatbotViewChat-
|
|
18
|
+
import { n as gt, r as _t, t as vt } from "./_chunks/PkChatbotViewConversations-DP1zMA-B.js";
|
|
19
|
+
import { i as yt, n as bt, r as xt, t as St } from "./_chunks/PkChatbotViewChat-58rvFSbr.js";
|
|
20
20
|
import { t as Ct } from "./_chunks/PkChatbotError-BS84xuiu.js";
|
|
21
21
|
import { t as wt } from "./_chunks/useImageFallback-HUe4GHah.js";
|
|
22
22
|
import { t as Tt } from "./_chunks/useLocalizedString-Dmn92nix.js";
|
|
@@ -36,8 +36,8 @@ import { t as Xn } from "./_chunks/PkChatbotStepPayload-jbQd7cML.js";
|
|
|
36
36
|
import { t as Zn } from "./_chunks/PkChatbotStepToolDetail-B1SJqhIt.js";
|
|
37
37
|
import { n as Qn, t as $n } from "./_chunks/PkChatbotInput-a36iJO_a.js";
|
|
38
38
|
import { t as er } from "./_chunks/PkChatbotEmptyState-XWzSF0W0.js";
|
|
39
|
-
import { t as tr } from "./_chunks/PkChatbotViewProfile-
|
|
40
|
-
import { t as nr } from "./_chunks/PkChatbot-
|
|
39
|
+
import { t as tr } from "./_chunks/PkChatbotViewProfile-Da6iqXLn.js";
|
|
40
|
+
import { t as nr } from "./_chunks/PkChatbot-DgKkkbCs.js";
|
|
41
41
|
import { i as rr, r as ir, t as ar } from "./_chunks/PkToolShowSources-B_4taLGg.js";
|
|
42
42
|
import { t as or } from "./_chunks/mcpOAuthReport-aR-W09MX.js";
|
|
43
43
|
import { t as sr } from "./_chunks/PkToolShowEmail-BehvoNsz.js";
|
|
@@ -8,7 +8,7 @@ import { ChatbotApiClient } from '../../../composable/src';
|
|
|
8
8
|
* which the seed carrying its id proves (the seed and the answer are written
|
|
9
9
|
* together). Then it reads the next one, if the turn scheduled it. The
|
|
10
10
|
* pending one is read when the chat changes and after every turn of the
|
|
11
|
-
* user, which may have scheduled it.
|
|
11
|
+
* user, typed or spoken, which may have scheduled it.
|
|
12
12
|
*
|
|
13
13
|
* While a wakeup waits, the page also tells the server it is in front of the
|
|
14
14
|
* user (Fase 1.2): every 30 seconds while the tab is visible, and at once
|
|
@@ -40,4 +40,7 @@ export declare function useWakeupWatch(options: {
|
|
|
40
40
|
check: () => Promise<void>;
|
|
41
41
|
reset: () => void;
|
|
42
42
|
stop: () => Promise<void>;
|
|
43
|
+
spokenTurnStarted: () => void;
|
|
44
|
+
spokenTurnsWritten: () => void;
|
|
45
|
+
forgetSpokenTurns: () => void;
|
|
43
46
|
};
|