@seamly/web-ui 24.0.0-beta.9 → 24.0.0
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/dist/lib/index.debug.js +14 -15
- package/build/dist/lib/index.debug.js.map +1 -1
- package/build/dist/lib/index.debug.min.js +1 -1
- package/build/dist/lib/index.debug.min.js.map +1 -1
- package/build/dist/lib/index.js +14 -15
- package/build/dist/lib/index.js.map +1 -1
- package/build/dist/lib/index.min.js +1 -1
- package/build/dist/lib/index.min.js.map +1 -1
- package/build/dist/lib/standalone.js +14 -15
- package/build/dist/lib/standalone.js.map +1 -1
- package/build/dist/lib/standalone.min.js +1 -1
- package/build/dist/lib/standalone.min.js.map +1 -1
- package/build/dist/lib/style-guide.js +14 -15
- package/build/dist/lib/style-guide.js.map +1 -1
- package/build/dist/lib/style-guide.min.js +1 -1
- package/build/dist/lib/style-guide.min.js.map +1 -1
- package/build/dist/lib/utils.js +14 -15
- package/build/dist/lib/utils.js.map +1 -1
- package/build/dist/lib/utils.min.js +1 -1
- package/build/dist/lib/utils.min.js.map +1 -1
- package/package.json +1 -1
- package/src/javascripts/ui/components/core/seamly-event-subscriber.ts +20 -1
- package/src/javascripts/ui/components/core/seamly-instance-functions-loader.ts +1 -17
|
@@ -4021,7 +4021,7 @@ class API {
|
|
|
4021
4021
|
return {
|
|
4022
4022
|
clientName: "@seamly/web-ui",
|
|
4023
4023
|
clientVariant: this.#layoutMode,
|
|
4024
|
-
clientVersion: "24.0.0
|
|
4024
|
+
clientVersion: "24.0.0",
|
|
4025
4025
|
currentUrl: window.location.toString(),
|
|
4026
4026
|
screenResolution: `${window.screen.width}x${window.screen.height}`,
|
|
4027
4027
|
timezone: getTimeZone(),
|
|
@@ -16816,6 +16816,14 @@ const SeamlyEventSubscriber = () => {
|
|
|
16816
16816
|
const {
|
|
16817
16817
|
emitEvent
|
|
16818
16818
|
} = use_seamly_commands();
|
|
16819
|
+
const {
|
|
16820
|
+
hasPrompt,
|
|
16821
|
+
continueChat
|
|
16822
|
+
} = use_seamly_resume_conversation_prompt();
|
|
16823
|
+
const hasResumeConversationPrompt = (0,hooks_.useRef)(hasPrompt);
|
|
16824
|
+
(0,hooks_.useEffect)(() => {
|
|
16825
|
+
hasResumeConversationPrompt.current = hasPrompt;
|
|
16826
|
+
}, [hasPrompt]);
|
|
16819
16827
|
(0,hooks_.useEffect)(() => {
|
|
16820
16828
|
if (conversation.socket) {
|
|
16821
16829
|
conversation.onConnection(({
|
|
@@ -16960,6 +16968,9 @@ const SeamlyEventSubscriber = () => {
|
|
|
16960
16968
|
dispatch(updateEvent(event));
|
|
16961
16969
|
break;
|
|
16962
16970
|
}
|
|
16971
|
+
if (hasResumeConversationPrompt.current) {
|
|
16972
|
+
continueChat();
|
|
16973
|
+
}
|
|
16963
16974
|
dispatch(addEvent(event));
|
|
16964
16975
|
break;
|
|
16965
16976
|
}
|
|
@@ -17013,7 +17024,7 @@ const SeamlyEventSubscriber = () => {
|
|
|
17013
17024
|
conversation.onMessage(eventRef.current);
|
|
17014
17025
|
return true;
|
|
17015
17026
|
});
|
|
17016
|
-
}, [conversation, dispatch, emitEvent, endCountdown, eventBus, initCountdown]);
|
|
17027
|
+
}, [continueChat, conversation, dispatch, emitEvent, endCountdown, eventBus, initCountdown]);
|
|
17017
17028
|
(0,hooks_.useEffect)(() => {
|
|
17018
17029
|
conversation.onConnection(({
|
|
17019
17030
|
connected
|
|
@@ -17281,11 +17292,6 @@ const SeamlyInstanceFunctionsLoader = () => {
|
|
|
17281
17292
|
const currentVisibility = (0,hooks_.useRef)(visible);
|
|
17282
17293
|
const eventBus = event_bus_hooks();
|
|
17283
17294
|
const api = useSeamlyApiContext();
|
|
17284
|
-
const {
|
|
17285
|
-
hasPrompt,
|
|
17286
|
-
continueChat
|
|
17287
|
-
} = use_seamly_resume_conversation_prompt();
|
|
17288
|
-
const hasResumeConversationPrompt = (0,hooks_.useRef)(hasPrompt);
|
|
17289
17295
|
const unreadCount = useSeamlyUnreadCount();
|
|
17290
17296
|
const previousUnreadCount = (0,hooks_.useRef)(null);
|
|
17291
17297
|
const previousVisibilityState = (0,hooks_.useRef)(null);
|
|
@@ -17303,12 +17309,8 @@ const SeamlyInstanceFunctionsLoader = () => {
|
|
|
17303
17309
|
} = useTranslations();
|
|
17304
17310
|
(0,hooks_.useEffect)(() => {
|
|
17305
17311
|
currentVisibility.current = visible;
|
|
17306
|
-
|
|
17307
|
-
}, [hasPrompt, visible]);
|
|
17312
|
+
}, [visible]);
|
|
17308
17313
|
useSeamlyInstanceFunction('askText', text => {
|
|
17309
|
-
if (hasResumeConversationPrompt.current) {
|
|
17310
|
-
continueChat();
|
|
17311
|
-
}
|
|
17312
17314
|
sendMessage({
|
|
17313
17315
|
body: text
|
|
17314
17316
|
});
|
|
@@ -17354,9 +17356,6 @@ const SeamlyInstanceFunctionsLoader = () => {
|
|
|
17354
17356
|
showSuggestions: false
|
|
17355
17357
|
}));
|
|
17356
17358
|
}
|
|
17357
|
-
if (hasResumeConversationPrompt.current) {
|
|
17358
|
-
continueChat();
|
|
17359
|
-
}
|
|
17360
17359
|
if (name && fallbackMessage) {
|
|
17361
17360
|
sendAction({
|
|
17362
17361
|
type: actionTypes.setTopic,
|