@adminforth/agent 1.44.1 → 1.44.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/build.log
CHANGED
|
@@ -62,5 +62,5 @@ custom/speech_recognition_frontend/voiceActivityDetection.ts
|
|
|
62
62
|
custom/speech_recognition_frontend/types/
|
|
63
63
|
custom/speech_recognition_frontend/types/voice-activity-detection.d.ts
|
|
64
64
|
|
|
65
|
-
sent 1,667,
|
|
66
|
-
total size is 1,663,
|
|
65
|
+
sent 1,667,675 bytes received 921 bytes 3,337,192.00 bytes/sec
|
|
66
|
+
total size is 1,663,522 speedup is 1.00
|
package/custom/ChatSurface.vue
CHANGED
|
@@ -106,7 +106,13 @@ onMounted(async () => {
|
|
|
106
106
|
if( coreStore.isMobile ) {
|
|
107
107
|
agentStore.setIsTeleportedToBody(false);
|
|
108
108
|
} else {
|
|
109
|
-
|
|
109
|
+
const shouldTeleportToBody = isTeleportedToBodyFromLocalStorage || props.meta.stickByDefault;
|
|
110
|
+
const savedIsChatOpen = agentStore.getLocalStorageItem('isChatOpen');
|
|
111
|
+
|
|
112
|
+
agentStore.setIsTeleportedToBody(shouldTeleportToBody);
|
|
113
|
+
if (shouldTeleportToBody && savedIsChatOpen === null) {
|
|
114
|
+
agentStore.setIsChatOpen(true);
|
|
115
|
+
}
|
|
110
116
|
}
|
|
111
117
|
await agentStore.fetchSessionsList();
|
|
112
118
|
});
|
|
@@ -174,7 +174,10 @@ export const useAgentStore = defineStore('agent', () => {
|
|
|
174
174
|
if (!coreStore.isMobile) {
|
|
175
175
|
const savedIsTeleportedToBody = getLocalStorageItem('isTeleportedToBody');
|
|
176
176
|
const savedIsTeleportedToBodyBeforeFullScreen = getLocalStorageItem('isTeleportedToBodyBeforeFullScreen');
|
|
177
|
-
|
|
177
|
+
let isTeleportedToBodyFromLocalStorage = true;
|
|
178
|
+
if (savedIsTeleportedToBody !== null || savedIsTeleportedToBodyBeforeFullScreen !== null) {
|
|
179
|
+
isTeleportedToBodyFromLocalStorage = savedIsTeleportedToBody === 'true' || savedIsTeleportedToBodyBeforeFullScreen === 'true';
|
|
180
|
+
}
|
|
178
181
|
const savedIsChatOpen = getLocalStorageItem('isChatOpen');
|
|
179
182
|
|
|
180
183
|
setIsTeleportedToBody(isTeleportedToBodyFromLocalStorage);
|
|
@@ -374,4 +377,4 @@ export const useAgentStore = defineStore('agent', () => {
|
|
|
374
377
|
setCurrentChatStatus,
|
|
375
378
|
updateLastAgentMessage
|
|
376
379
|
}
|
|
377
|
-
})
|
|
380
|
+
})
|
|
@@ -106,7 +106,13 @@ onMounted(async () => {
|
|
|
106
106
|
if( coreStore.isMobile ) {
|
|
107
107
|
agentStore.setIsTeleportedToBody(false);
|
|
108
108
|
} else {
|
|
109
|
-
|
|
109
|
+
const shouldTeleportToBody = isTeleportedToBodyFromLocalStorage || props.meta.stickByDefault;
|
|
110
|
+
const savedIsChatOpen = agentStore.getLocalStorageItem('isChatOpen');
|
|
111
|
+
|
|
112
|
+
agentStore.setIsTeleportedToBody(shouldTeleportToBody);
|
|
113
|
+
if (shouldTeleportToBody && savedIsChatOpen === null) {
|
|
114
|
+
agentStore.setIsChatOpen(true);
|
|
115
|
+
}
|
|
110
116
|
}
|
|
111
117
|
await agentStore.fetchSessionsList();
|
|
112
118
|
});
|
|
@@ -174,7 +174,10 @@ export const useAgentStore = defineStore('agent', () => {
|
|
|
174
174
|
if (!coreStore.isMobile) {
|
|
175
175
|
const savedIsTeleportedToBody = getLocalStorageItem('isTeleportedToBody');
|
|
176
176
|
const savedIsTeleportedToBodyBeforeFullScreen = getLocalStorageItem('isTeleportedToBodyBeforeFullScreen');
|
|
177
|
-
|
|
177
|
+
let isTeleportedToBodyFromLocalStorage = true;
|
|
178
|
+
if (savedIsTeleportedToBody !== null || savedIsTeleportedToBodyBeforeFullScreen !== null) {
|
|
179
|
+
isTeleportedToBodyFromLocalStorage = savedIsTeleportedToBody === 'true' || savedIsTeleportedToBodyBeforeFullScreen === 'true';
|
|
180
|
+
}
|
|
178
181
|
const savedIsChatOpen = getLocalStorageItem('isChatOpen');
|
|
179
182
|
|
|
180
183
|
setIsTeleportedToBody(isTeleportedToBodyFromLocalStorage);
|
|
@@ -374,4 +377,4 @@ export const useAgentStore = defineStore('agent', () => {
|
|
|
374
377
|
setCurrentChatStatus,
|
|
375
378
|
updateLastAgentMessage
|
|
376
379
|
}
|
|
377
|
-
})
|
|
380
|
+
})
|