@staylift-tech/conv-widget 0.0.5 → 0.0.7

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.
@@ -1 +1 @@
1
- import{p as t,b as a}from"./p-DAtfDq5B.js";export{s as setNonce}from"./p-DAtfDq5B.js";import{g as e}from"./p-DQuL1Twl.js";(()=>{const a=import.meta.url,e={};return""!==a&&(e.resourcesUrl=new URL(".",a).href),t(e)})().then((async t=>(await e(),a([["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-b9c3aeae",[[1,"staylift-widget",{agentId:[1,"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"],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))));
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-2656bb5a",[[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"],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;
@@ -77,10 +77,12 @@ export namespace Components {
77
77
  */
78
78
  "showBranding": boolean;
79
79
  "startConversation": (textOnly?: boolean) => Promise<void>;
80
+ "textAgentId"?: string;
80
81
  /**
81
82
  * @default 'floating'
82
83
  */
83
84
  "variant": WidgetVariant;
85
+ "voiceAgentId"?: string;
84
86
  }
85
87
  }
86
88
  export interface StayliftWidgetCustomEvent<T> extends CustomEvent<T> {
@@ -191,10 +193,12 @@ declare namespace LocalJSX {
191
193
  * @default true
192
194
  */
193
195
  "showBranding"?: boolean;
196
+ "textAgentId"?: string;
194
197
  /**
195
198
  * @default 'floating'
196
199
  */
197
200
  "variant"?: WidgetVariant;
201
+ "voiceAgentId"?: string;
198
202
  }
199
203
  interface IntrinsicElements {
200
204
  "staylift-orb": StayliftOrb;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staylift-tech/conv-widget",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "Staylift Conversational Widget - Embeddable agents for hotels",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",