@knowbl_ai/nexus-chat 1.7.1 → 1.7.2
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/package.json +1 -1
- package/widget.js +1 -1
- package/widget.umd.js +1 -1
package/package.json
CHANGED
package/widget.js
CHANGED
|
@@ -124,7 +124,7 @@ return N(y,{children:/* @__PURE__ */N("div",{class:e.embedded?A:`${A} ncw:shadow
|
|
|
124
124
|
/* @__PURE__ */N(is,{events:t.events.value,welcomeMessage:e.messages?.welcomeMessage,ttsConfig:e.features?.tts,ttsEnabled:t.isTTSEnabled.value,onTTSStateChange:e=>{t.setTTSSpeaking(e)},onMessageSpoken:t.markMessageAsSpoken,isMessageSpoken:t.isMessageSpoken,readOnly:t.isReadOnly.value,readOnlyAllowCopy:t.readOnlyAllowCopy.value,bubbleConfig:e.bubbles,messagesConfig:e.messages,linkConfig:w,apiUrl:e.apiUrl,experienceId:e.experienceId,sessionId:t.currentSessionId.value,config:e,store:t,eventEmitter:n,onFeedbackChange:(e,n)=>{t.updateEvent(e,{feedback:n})},onDisclaimerAccept:()=>{t.acceptDisclaimer(),Fi(e.experienceId),n&&n.emit("disclaimerAccept",{timestamp:/* @__PURE__ */(new Date).toISOString(),sessionId:t.currentSessionId.value,experienceId:e.experienceId})},customProtocolHandlers:f}),
|
|
125
125
|
/* @__PURE__ */N("div",{ref:o})]}),
|
|
126
126
|
/* @__PURE__ */N("div",{style:{flexShrink:0},children:[
|
|
127
|
-
/* @__PURE__ */N("div",{class:x,style:b,children:/* @__PURE__ */N("div",{class:"ncw:p-
|
|
127
|
+
/* @__PURE__ */N("div",{class:x,style:b,children:/* @__PURE__ */N("div",{class:"ncw:p-3",children:t.isSessionExpired.value?!1!==e.sessionExpired?.showButton?/* @__PURE__ */N(js,{config:e,store:t}):null:/* @__PURE__ */N(qs,{ref:i,value:t.inputValue.value,onChange:t.setInputValue,onSend:()=>{(async()=>{const r=t.inputValue.value.trim();!r||t.isLoading.value||t.isReadOnly.value||(t.setInputValue(""),await Ae(r,e,t,n))})()},placeholder:e.input?.placeholder||"Type your message...",disabled:t.isLoading.value||t.isReadOnly.value||!h||E,isLoading:t.isLoading.value,config:e,eventEmitter:n,sessionId:t.currentSessionId.value,widgetContainer:r})})}),e.disclaimer?.content&&!e.disclaimer?.required&&"event"!==e.disclaimer?.displayMode&&/* @__PURE__ */N("div",{class:"ncw:border-t ncw:border-gray-200 dark:ncw:border-gray-700",style:{backgroundColor:e.disclaimer.backgroundColor||("dark"===e.theme?"#1a1a1a":"#f9fafb")},children:!1!==e.disclaimer.collapsible?/* @__PURE__ */N("div",{children:[
|
|
128
128
|
/* @__PURE__ */N("button",{onClick:()=>d(!c),class:"ncw:w-full ncw:px-4 ncw:py-2 ncw:flex ncw:items-center ncw:justify-between ncw:text-xs ncw:text-gray-600 dark:ncw:text-gray-400 hover:ncw:bg-gray-100 dark:hover:ncw:bg-gray-800 ncw:transition-colors","aria-expanded":c,children:[
|
|
129
129
|
/* @__PURE__ */N("span",{class:"ncw:font-medium",children:"Disclaimer"}),
|
|
130
130
|
/* @__PURE__ */N("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"currentColor",class:"ncw:transition-transform "+(c?"ncw:rotate-180":""),children:/* @__PURE__ */N("path",{d:"M6 7.5L2.5 4l.7-.7L6 6.1l2.8-2.8.7.7L6 7.5z"})})]}),c&&/* @__PURE__ */N("div",{class:"ncw:px-4 ncw:pb-3 ncw:text-xs",style:{color:e.disclaimer.textColor||("dark"===e.theme?"#9ca3af":"#6b7280")},children:[
|