lr-chatbot 0.13.0 → 0.13.1
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/custom-elements.json +1 -1
- package/index.js +5 -4
- package/index.js.map +1 -1
- package/package.json +1 -1
package/custom-elements.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"schemaVersion":"1.0.0","readme":"","modules":[{"kind":"javascript-module","path":"/builds/laredoute/digital/apps/uxeng/components/uxeng-gui-front/libs/shared/client/features/chatbot/src/components/chatbot/Chatbot.ts","declarations":[{"kind":"class","description":"","name":"Chatbot","members":[{"kind":"field","name":"apiUrl","type":{"text":"string"},"default":"''","attribute":"apiUrl"},{"kind":"field","name":"opened","type":{"text":"boolean"},"default":"false","attribute":"opened","reflects":true},{"kind":"field","name":"minimized","type":{"text":"boolean"},"default":"false","attribute":"minimized","reflects":true},{"kind":"field","name":"sticky","type":{"text":"boolean"},"default":"false","attribute":"sticky"},{"kind":"field","name":"exitOverlay","type":{"text":"boolean"},"default":"false","attribute":"exitOverlay"},{"kind":"field","name":"deepChat","type":{"text":"DeepChat | undefined"},"privacy":"private"},{"kind":"field","name":"_closeClickCount","type":{"text":"number"},"privacy":"private","default":"0"},{"kind":"field","name":"_broadcastController","privacy":"private","default":"new BroadcastController<ChatbotBroadcastMessage>( this, LR_CHATBOT_BROADCAST_CHANNEL_ID )"},{"kind":"field","name":"_conversationHistoryTask","privacy":"private"},{"kind":"method","name":"getVersion"},{"kind":"method","name":"registerBroadcastMessages","privacy":"private"},{"kind":"method","name":"handleDeepChatLoad","privacy":"private","parameters":[{"name":"deepChat","optional":true,"type":{"text":"Element"}}]},{"kind":"method","name":"getCurrentConversationId","privacy":"private"},{"kind":"method","name":"createConversationHistoryTask","privacy":"private"},{"kind":"method","name":"tryGetConversationHistory","privacy":"private"},{"kind":"method","name":"setDeepChatHistory","privacy":"private","return":{"type":{"text":"Promise<void>"}}},{"kind":"method","name":"setDeepChatTranslations","privacy":"private"},{"kind":"method","name":"setDeepChatStyle","privacy":"private"},{"kind":"method","name":"setChatConnection","privacy":"private"},{"kind":"method","name":"disableDeepChatTextInput","privacy":"private"},{"kind":"method","name":"enableDeepChatTextInput","privacy":"private"},{"kind":"method","name":"handleClosure","privacy":"private"},{"kind":"method","name":"handleReturnConversation","privacy":"private"},{"kind":"method","name":"minimize"},{"kind":"method","name":"open"},{"kind":"method","name":"close"},{"kind":"method","name":"renderExitOverlay"},{"kind":"method","name":"renderOpenedChat"},{"kind":"method","name":"renderMinimizedChat"},{"kind":"method","name":"renderElement"}],"attributes":[{"name":"apiUrl","type":{"text":"string"},"default":"''","fieldName":"apiUrl"},{"name":"opened","type":{"text":"boolean"},"default":"false","fieldName":"opened"},{"name":"minimized","type":{"text":"boolean"},"default":"false","fieldName":"minimized"},{"name":"sticky","type":{"text":"boolean"},"default":"false","fieldName":"sticky"},{"name":"exitOverlay","type":{"text":"boolean"},"default":"false","fieldName":"exitOverlay"}],"superclass":{"name":"SuperElement","module":"//builds/laredoute/digital/apps/uxeng/components/uxeng-gui-front/libs/shared/client/features/chatbot/src/components/super/SuperElement"},"tagName":"lr-chatbot","customElement":true}],"exports":[{"kind":"js","name":"Chatbot","declaration":{"name":"Chatbot","module":"/builds/laredoute/digital/apps/uxeng/components/uxeng-gui-front/libs/shared/client/features/chatbot/src/components/chatbot/Chatbot.ts"}},{"kind":"custom-element-definition","name":"lr-chatbot","declaration":{"name":"Chatbot","module":"/builds/laredoute/digital/apps/uxeng/components/uxeng-gui-front/libs/shared/client/features/chatbot/src/components/chatbot/Chatbot.ts"}}]}]}
|
|
1
|
+
{"schemaVersion":"1.0.0","readme":"","modules":[{"kind":"javascript-module","path":"/builds/laredoute/digital/apps/uxeng/components/uxeng-gui-front/libs/shared/client/features/chatbot/src/components/chatbot/Chatbot.ts","declarations":[{"kind":"class","description":"","name":"Chatbot","members":[{"kind":"field","name":"apiUrl","type":{"text":"string"},"default":"'/bff'","attribute":"apiUrl"},{"kind":"field","name":"opened","type":{"text":"boolean"},"default":"false","attribute":"opened","reflects":true},{"kind":"field","name":"minimized","type":{"text":"boolean"},"default":"false","attribute":"minimized","reflects":true},{"kind":"field","name":"sticky","type":{"text":"boolean"},"default":"false","attribute":"sticky"},{"kind":"field","name":"exitOverlay","type":{"text":"boolean"},"default":"false","attribute":"exitOverlay"},{"kind":"field","name":"deepChat","type":{"text":"DeepChat | undefined"},"privacy":"private"},{"kind":"field","name":"_closeClickCount","type":{"text":"number"},"privacy":"private","default":"0"},{"kind":"field","name":"_broadcastController","privacy":"private","default":"new BroadcastController<ChatbotBroadcastMessage>( this, LR_CHATBOT_BROADCAST_CHANNEL_ID )"},{"kind":"field","name":"_conversationHistoryTask","privacy":"private"},{"kind":"method","name":"getVersion"},{"kind":"method","name":"registerBroadcastMessages","privacy":"private"},{"kind":"method","name":"handleDeepChatLoad","privacy":"private","parameters":[{"name":"deepChat","optional":true,"type":{"text":"Element"}}]},{"kind":"method","name":"getCurrentConversationId","privacy":"private"},{"kind":"method","name":"createConversationHistoryTask","privacy":"private"},{"kind":"method","name":"tryGetConversationHistory","privacy":"private"},{"kind":"method","name":"setDeepChatHistory","privacy":"private","return":{"type":{"text":"Promise<void>"}}},{"kind":"method","name":"setDeepChatTranslations","privacy":"private"},{"kind":"method","name":"setDeepChatStyle","privacy":"private"},{"kind":"method","name":"setChatConnection","privacy":"private"},{"kind":"method","name":"disableDeepChatTextInput","privacy":"private"},{"kind":"method","name":"enableDeepChatTextInput","privacy":"private"},{"kind":"method","name":"handleClosure","privacy":"private"},{"kind":"method","name":"handleReturnConversation","privacy":"private"},{"kind":"method","name":"minimize"},{"kind":"method","name":"open"},{"kind":"method","name":"close"},{"kind":"method","name":"renderExitOverlay"},{"kind":"method","name":"renderOpenedChat"},{"kind":"method","name":"renderMinimizedChat"},{"kind":"method","name":"renderElement"}],"attributes":[{"name":"apiUrl","type":{"text":"string"},"default":"'/bff'","fieldName":"apiUrl"},{"name":"opened","type":{"text":"boolean"},"default":"false","fieldName":"opened"},{"name":"minimized","type":{"text":"boolean"},"default":"false","fieldName":"minimized"},{"name":"sticky","type":{"text":"boolean"},"default":"false","fieldName":"sticky"},{"name":"exitOverlay","type":{"text":"boolean"},"default":"false","fieldName":"exitOverlay"}],"superclass":{"name":"SuperElement","module":"//builds/laredoute/digital/apps/uxeng/components/uxeng-gui-front/libs/shared/client/features/chatbot/src/components/super/SuperElement"},"tagName":"lr-chatbot","customElement":true}],"exports":[{"kind":"js","name":"Chatbot","declaration":{"name":"Chatbot","module":"/builds/laredoute/digital/apps/uxeng/components/uxeng-gui-front/libs/shared/client/features/chatbot/src/components/chatbot/Chatbot.ts"}},{"kind":"custom-element-definition","name":"lr-chatbot","declaration":{"name":"Chatbot","module":"/builds/laredoute/digital/apps/uxeng/components/uxeng-gui-front/libs/shared/client/features/chatbot/src/components/chatbot/Chatbot.ts"}}]}]}
|
package/index.js
CHANGED
|
@@ -18907,7 +18907,7 @@ const zi = /* @__PURE__ */ new WeakMap(), Ov = Ka(class extends Ic {
|
|
|
18907
18907
|
bottom: 0;
|
|
18908
18908
|
right: 0;
|
|
18909
18909
|
width: 100;
|
|
18910
|
-
z-index:
|
|
18910
|
+
z-index: 10001;
|
|
18911
18911
|
box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.16), 0px 4px 8px 2px rgba(0, 0, 0, 0.08);
|
|
18912
18912
|
@media (min-width: ${A(C.devices.mobile.max)}px) {
|
|
18913
18913
|
width: var(--chat-sticky-width);
|
|
@@ -18950,7 +18950,7 @@ const zi = /* @__PURE__ */ new WeakMap(), Ov = Ka(class extends Ic {
|
|
|
18950
18950
|
height: var(--chat-sticky-minimized-size);
|
|
18951
18951
|
bottom: 5%;
|
|
18952
18952
|
right: calc(var(--chat-sticky-offset-right) + var(--chat-sticky-width) / 2 - var(--chat-sticky-minimized-size));
|
|
18953
|
-
z-index:
|
|
18953
|
+
z-index: 10001;
|
|
18954
18954
|
background-color: ${A(C.colors.base.coral.tone300)};
|
|
18955
18955
|
border-radius: 16px;
|
|
18956
18956
|
color: white;
|
|
@@ -18979,6 +18979,7 @@ const zi = /* @__PURE__ */ new WeakMap(), Ov = Ka(class extends Ic {
|
|
|
18979
18979
|
#chat-wrapper-content {
|
|
18980
18980
|
position: relative;
|
|
18981
18981
|
overflow: hidden;
|
|
18982
|
+
background-color: ${A(C.colors.base.white)};
|
|
18982
18983
|
}
|
|
18983
18984
|
|
|
18984
18985
|
#exit-overlay {
|
|
@@ -21111,7 +21112,7 @@ var e2 = Object.defineProperty, t2 = Object.getOwnPropertyDescriptor, ru = (n) =
|
|
|
21111
21112
|
const n2 = "lr.chatbot.broadcast_channel." + document.location.hostname, Qi = "lr.chatbot.conversation_id";
|
|
21112
21113
|
let pt = class extends Te {
|
|
21113
21114
|
constructor() {
|
|
21114
|
-
super(new Y1()), fn(this, Sr, ""), fn(this, _r, !1), fn(this, Cr, !1), fn(this, Er, !1), fn(this, xr, !1), this._closeClickCount = 0, this._broadcastController = new Q1(
|
|
21115
|
+
super(new Y1()), fn(this, Sr, "/bff"), fn(this, _r, !1), fn(this, Cr, !1), fn(this, Er, !1), fn(this, xr, !1), this._closeClickCount = 0, this._broadcastController = new Q1(
|
|
21115
21116
|
this,
|
|
21116
21117
|
n2
|
|
21117
21118
|
), this._conversationHistoryTask = this.createConversationHistoryTask(), this.registerBroadcastMessages();
|
|
@@ -21147,7 +21148,7 @@ let pt = class extends Te {
|
|
|
21147
21148
|
mn(this, xr, n);
|
|
21148
21149
|
}
|
|
21149
21150
|
getVersion() {
|
|
21150
|
-
return "LR Chatbot - 0.13.
|
|
21151
|
+
return "LR Chatbot - 0.13.1";
|
|
21151
21152
|
}
|
|
21152
21153
|
async connectedCallback() {
|
|
21153
21154
|
super.connectedCallback(), await this._conversationHistoryTask.run(), await this._conversationHistoryTask.taskComplete && ((() => {
|