@staylift-tech/conv-widget 0.0.6 → 0.0.9
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/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/staylift-widget.cjs.entry.js +13 -3
- package/dist/cjs/staylift-widget.cjs.js +1 -1
- package/dist/collection/components/staylift-widget/staylift-widget.js +71 -3
- package/dist/components/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/staylift-widget.entry.js +13 -3
- package/dist/esm/staylift-widget.js +1 -1
- package/dist/staylift-widget/{p-ed8515c7.entry.js → p-9f1eab0f.entry.js} +1 -1
- package/dist/staylift-widget/staylift-widget.esm.js +1 -1
- package/dist/types/components/staylift-widget/staylift-widget.d.ts +3 -0
- package/dist/types/components.d.ts +12 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,b as
|
|
1
|
+
import{p as t,b as e}from"./p-DAtfDq5B.js";export{s as setNonce}from"./p-DAtfDq5B.js";import{g as a}from"./p-DQuL1Twl.js";(()=>{const e=import.meta.url,a={};return""!==e&&(a.resourcesUrl=new URL(".",e).href),t(a)})().then((async t=>(await a(),e([["p-37510f2e",[[1,"staylift-orb",{inputVolume:[2,"input-volume"],outputVolume:[2,"output-volume"],isActive:[4,"is-active"],primaryColor:[1,"primary-color"],size:[8],animationFrame:[32]}]]],["p-9f1eab0f",[[1,"staylift-widget",{agentId:[1,"agent-id"],textAgentId:[1,"text-agent-id"],voiceAgentId:[1,"voice-agent-id"],positionX:[1,"position-x"],positionY:[1,"position-y"],variant:[1],mode:[1],primaryColor:[1,"primary-color"],brandName:[1,"brand-name"],language:[1],autoExpand:[4,"auto-expand"],showBranding:[4,"show-branding"],onlyText:[4,"only-text"],avatarUrl:[1,"avatar-url"],fabPrompt:[1,"fab-prompt"],fabButtonText:[1,"fab-button-text"],status:[32],isExpanded:[32],termsAccepted:[32],errorMessage:[32],inputVolume:[32],outputVolume:[32],messages:[32],inputText:[32],copiedIndex:[32],selectedMode:[32],startConversation:[64],endConversation:[64],getStatus:[64],sendMessage:[64]}]]]],t))));
|
|
@@ -12,6 +12,8 @@ interface ChatMessage {
|
|
|
12
12
|
export declare class StayliftWidget {
|
|
13
13
|
el: HTMLElement;
|
|
14
14
|
agentId: string;
|
|
15
|
+
textAgentId?: string;
|
|
16
|
+
voiceAgentId?: string;
|
|
15
17
|
positionX: WidgetPositionX;
|
|
16
18
|
positionY: WidgetPositionY;
|
|
17
19
|
variant: WidgetVariant;
|
|
@@ -21,6 +23,7 @@ export declare class StayliftWidget {
|
|
|
21
23
|
language: string;
|
|
22
24
|
autoExpand: boolean;
|
|
23
25
|
showBranding: boolean;
|
|
26
|
+
onlyText: boolean;
|
|
24
27
|
avatarUrl?: string;
|
|
25
28
|
fabPrompt: string;
|
|
26
29
|
fabButtonText: string;
|
|
@@ -59,6 +59,10 @@ export namespace Components {
|
|
|
59
59
|
* @default 'dark'
|
|
60
60
|
*/
|
|
61
61
|
"mode": WidgetMode;
|
|
62
|
+
/**
|
|
63
|
+
* @default false
|
|
64
|
+
*/
|
|
65
|
+
"onlyText": boolean;
|
|
62
66
|
/**
|
|
63
67
|
* @default 'right'
|
|
64
68
|
*/
|
|
@@ -77,10 +81,12 @@ export namespace Components {
|
|
|
77
81
|
*/
|
|
78
82
|
"showBranding": boolean;
|
|
79
83
|
"startConversation": (textOnly?: boolean) => Promise<void>;
|
|
84
|
+
"textAgentId"?: string;
|
|
80
85
|
/**
|
|
81
86
|
* @default 'floating'
|
|
82
87
|
*/
|
|
83
88
|
"variant": WidgetVariant;
|
|
89
|
+
"voiceAgentId"?: string;
|
|
84
90
|
}
|
|
85
91
|
}
|
|
86
92
|
export interface StayliftWidgetCustomEvent<T> extends CustomEvent<T> {
|
|
@@ -175,6 +181,10 @@ declare namespace LocalJSX {
|
|
|
175
181
|
"onMessageReceived"?: (event: StayliftWidgetCustomEvent<ChatMessage>) => void;
|
|
176
182
|
"onStatusChanged"?: (event: StayliftWidgetCustomEvent<WidgetStatus>) => void;
|
|
177
183
|
"onWidgetError"?: (event: StayliftWidgetCustomEvent<{ message: string; code?: string }>) => void;
|
|
184
|
+
/**
|
|
185
|
+
* @default false
|
|
186
|
+
*/
|
|
187
|
+
"onlyText"?: boolean;
|
|
178
188
|
/**
|
|
179
189
|
* @default 'right'
|
|
180
190
|
*/
|
|
@@ -191,10 +201,12 @@ declare namespace LocalJSX {
|
|
|
191
201
|
* @default true
|
|
192
202
|
*/
|
|
193
203
|
"showBranding"?: boolean;
|
|
204
|
+
"textAgentId"?: string;
|
|
194
205
|
/**
|
|
195
206
|
* @default 'floating'
|
|
196
207
|
*/
|
|
197
208
|
"variant"?: WidgetVariant;
|
|
209
|
+
"voiceAgentId"?: string;
|
|
198
210
|
}
|
|
199
211
|
interface IntrinsicElements {
|
|
200
212
|
"staylift-orb": StayliftOrb;
|