@staylift-tech/conv-widget 0.0.1 → 0.0.3

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 o}from"./p-DQuL1Twl.js";(()=>{const a=import.meta.url,o={};return""!==a&&(o.resourcesUrl=new URL(".",a).href),t(o)})().then((async t=>(await o(),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-94923740",[[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],startConversation:[64],endConversation:[64],getStatus:[64],sendMessage:[64]}]]]],t))));
1
+ import{p as t,b as a}from"./p-DAtfDq5B.js";export{s as setNonce}from"./p-DAtfDq5B.js";import{g as o}from"./p-DQuL1Twl.js";(()=>{const a=import.meta.url,o={};return""!==a&&(o.resourcesUrl=new URL(".",a).href),t(o)})().then((async t=>(await o(),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-eaa47469",[[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))));
@@ -4,6 +4,7 @@ export type WidgetPositionX = 'left' | 'center' | 'right';
4
4
  export type WidgetPositionY = 'top' | 'bottom';
5
5
  export type WidgetVariant = 'floating' | 'inline';
6
6
  export type WidgetMode = 'light' | 'dark';
7
+ export type ConversationMode = 'text' | 'voice';
7
8
  interface ChatMessage {
8
9
  role: 'user' | 'assistant';
9
10
  content: string;
@@ -32,6 +33,7 @@ export declare class StayliftWidget {
32
33
  messages: ChatMessage[];
33
34
  inputText: string;
34
35
  copiedIndex: number | null;
36
+ selectedMode: ConversationMode;
35
37
  conversationStarted: EventEmitter<void>;
36
38
  conversationEnded: EventEmitter<void>;
37
39
  widgetError: EventEmitter<{
@@ -58,6 +60,7 @@ export declare class StayliftWidget {
58
60
  private pendingMessage;
59
61
  private handleSendText;
60
62
  private handleVoiceButton;
63
+ private handleTextButton;
61
64
  private handleInputKeyDown;
62
65
  private handleInputChange;
63
66
  private startVolumeMonitoring;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@staylift-tech/conv-widget",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "Staylift Conversational Widget - Embeddable agents for hotels",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",