@8wave/ai-elements 0.121.0-beta.57 → 0.121.0-beta.58
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 +16 -1
- package/dist/_chunks/Agent-FDL4Wq0B.js.map +1 -1
- package/dist/ai-elements.es.js +1284 -994
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/_chunks/Agent-CZUFbLo7.js.map +1 -1
- package/dist-vue/apps/web-component/src/components/EmbeddedChatWidget.ce.d.ts +4 -4
- package/dist-vue/apps/web-component/src/composables/usePagePresence.d.ts +17 -0
- package/dist-vue/apps/web-component/src/composables/usePageTools.d.ts +4 -3
- package/dist-vue/apps/web-component/src/pageTools/index.d.ts +11 -1
- package/dist-vue/composables.js +2 -2
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +1 -1
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +2 -2
- package/dist-vue/packages/components/src/chat/PkAgentPresence.d.ts +34 -0
- package/dist-vue/packages/components/src/chat/PkWorkingAurora.d.ts +25 -0
- package/package.json +1 -1
package/dist-vue/locales.js
CHANGED
|
@@ -486,7 +486,7 @@ var e = {
|
|
|
486
486
|
widgetAppearanceGlass: "The site shows through the chat, blurred; on a phone it stays solid.",
|
|
487
487
|
widgetAppearanceSolid: "The chat has the theme's solid background.",
|
|
488
488
|
hideFloatingButton: "The chat opens only from a button on your site, which you add: it calls open() on the widget, see the README.",
|
|
489
|
-
workingGlow: "
|
|
489
|
+
workingGlow: "While the agent acts on the page, a light rises from the chat's corner. In the Copilot layout it runs along the site's edges instead, and along the chat's while the agent works.",
|
|
490
490
|
copilotPageCss: "Added to your site's page while the chat is open beside it: move a fixed header aside with right: var(--chatbot-copilot-width).",
|
|
491
491
|
customCss: "CSS injected into the widget shadow DOM. Allows styling the chat interface from the outside.",
|
|
492
492
|
greeting: "On the chat page, in large type above the message field until the user writes. Left empty, the suggested text shows. {'{'}name{'}'} becomes the user's name.",
|
|
@@ -1291,7 +1291,7 @@ var e = {
|
|
|
1291
1291
|
widgetAppearanceGlass: "Il sito si vede sfocato dietro la chat; sul telefono resta piena.",
|
|
1292
1292
|
widgetAppearanceSolid: "La chat ha lo sfondo pieno del tema.",
|
|
1293
1293
|
hideFloatingButton: "La chat si apre solo da un pulsante del sito, che va aggiunto: chiama open() sul widget, vedi il README.",
|
|
1294
|
-
workingGlow: "
|
|
1294
|
+
workingGlow: "Mentre l'agente agisce sulla pagina, una luce sale dall'angolo della chat. Nel layout Copilot percorre invece il bordo del sito, e quello della chat mentre l'agente lavora.",
|
|
1295
1295
|
copilotPageCss: "Aggiunto alla pagina del sito mentre la chat è aperta accanto: sposta un'intestazione fissa con right: var(--chatbot-copilot-width).",
|
|
1296
1296
|
customCss: "CSS iniettato nello shadow DOM del widget. Permette di personalizzare l'interfaccia della chat dall'esterno.",
|
|
1297
1297
|
greeting: "Nella pagina della chat, in grande sopra il campo del messaggio finché l'utente non scrive. Se è vuoto si vede il testo suggerito. {'{'}name{'}'} diventa il nome dell'utente.",
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* The agent on the page as a collaborator, while it acts on it (spec
|
|
4
|
+
* `page-tools-improvements.md`, M12): a cursor in its color with its name
|
|
5
|
+
* and the name of what it acts on, as in a shared editor, and a ring on
|
|
6
|
+
* that element, drawn as the system draws keyboard focus. The cursor
|
|
7
|
+
* leaves the chat, glides to the element and clicks; the ring settles
|
|
8
|
+
* there and follows the agent to the next element. A layer of its own
|
|
9
|
+
* over the page, its dialogs too, letting every click through.
|
|
10
|
+
* Decoration only, hidden from assistive technology: the chat says what
|
|
11
|
+
* the agent does.
|
|
12
|
+
*/
|
|
13
|
+
type __VLS_Props = {
|
|
14
|
+
/** Shown while true: the agent controls the page. */
|
|
15
|
+
active: boolean;
|
|
16
|
+
/** The element the agent acts on, and its name; the last one between two actions. */
|
|
17
|
+
target?: {
|
|
18
|
+
element: Element;
|
|
19
|
+
name: string;
|
|
20
|
+
};
|
|
21
|
+
/** The agent's name, beside the cursor. */
|
|
22
|
+
agentName?: string;
|
|
23
|
+
/** The chat, where the cursor comes from and goes back to. */
|
|
24
|
+
home?: () => Element | null | undefined;
|
|
25
|
+
/** A dialog of the page the layer stays above: it opens over everything shown before it. */
|
|
26
|
+
above?: Element | null;
|
|
27
|
+
};
|
|
28
|
+
declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
29
|
+
arrived: (clicked: boolean) => any;
|
|
30
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
31
|
+
onArrived?: ((clicked: boolean) => any) | undefined;
|
|
32
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
33
|
+
declare const _default: typeof __VLS_export;
|
|
34
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* A light in the window's corner where the chat sits, while the agent
|
|
4
|
+
* acts on the page (spec `page-tools-improvements.md`, M12): a small
|
|
5
|
+
* bright light is born in that corner and grows into an aurora that
|
|
6
|
+
* sways and breathes while the agent works, glints at each of its
|
|
7
|
+
* clicks, and draws back into the corner when it lets go. The parent
|
|
8
|
+
* gives it a positioned box as large as the window. Decoration only,
|
|
9
|
+
* hidden from assistive technology: the chat already says what the
|
|
10
|
+
* agent is doing.
|
|
11
|
+
*/
|
|
12
|
+
type __VLS_Props = {
|
|
13
|
+
/** Shown while true, growing in and drawing back out. */
|
|
14
|
+
active: boolean;
|
|
15
|
+
/** The corner it grows from: the chat's side. */
|
|
16
|
+
side?: 'left' | 'right';
|
|
17
|
+
/** Each new value is a click of the agent on the page: a glint from the corner. */
|
|
18
|
+
pulse?: number;
|
|
19
|
+
};
|
|
20
|
+
declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
21
|
+
side: "left" | "right";
|
|
22
|
+
pulse: number;
|
|
23
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
declare const _default: typeof __VLS_export;
|
|
25
|
+
export default _default;
|