@seamly/web-ui 24.0.0-beta.8 → 24.0.0-beta.9
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 -2
- 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 -2
- 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 -2
- 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 -2
- 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 -2
- 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-instance-functions-loader.ts +17 -1
|
@@ -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-beta.
|
|
4024
|
+
clientVersion: "24.0.0-beta.9",
|
|
4025
4025
|
currentUrl: window.location.toString(),
|
|
4026
4026
|
screenResolution: `${window.screen.width}x${window.screen.height}`,
|
|
4027
4027
|
timezone: getTimeZone(),
|
|
@@ -17281,6 +17281,11 @@ const SeamlyInstanceFunctionsLoader = () => {
|
|
|
17281
17281
|
const currentVisibility = (0,hooks_.useRef)(visible);
|
|
17282
17282
|
const eventBus = event_bus_hooks();
|
|
17283
17283
|
const api = useSeamlyApiContext();
|
|
17284
|
+
const {
|
|
17285
|
+
hasPrompt,
|
|
17286
|
+
continueChat
|
|
17287
|
+
} = use_seamly_resume_conversation_prompt();
|
|
17288
|
+
const hasResumeConversationPrompt = (0,hooks_.useRef)(hasPrompt);
|
|
17284
17289
|
const unreadCount = useSeamlyUnreadCount();
|
|
17285
17290
|
const previousUnreadCount = (0,hooks_.useRef)(null);
|
|
17286
17291
|
const previousVisibilityState = (0,hooks_.useRef)(null);
|
|
@@ -17298,8 +17303,12 @@ const SeamlyInstanceFunctionsLoader = () => {
|
|
|
17298
17303
|
} = useTranslations();
|
|
17299
17304
|
(0,hooks_.useEffect)(() => {
|
|
17300
17305
|
currentVisibility.current = visible;
|
|
17301
|
-
|
|
17306
|
+
hasResumeConversationPrompt.current = hasPrompt;
|
|
17307
|
+
}, [hasPrompt, visible]);
|
|
17302
17308
|
useSeamlyInstanceFunction('askText', text => {
|
|
17309
|
+
if (hasResumeConversationPrompt.current) {
|
|
17310
|
+
continueChat();
|
|
17311
|
+
}
|
|
17303
17312
|
sendMessage({
|
|
17304
17313
|
body: text
|
|
17305
17314
|
});
|
|
@@ -17345,6 +17354,9 @@ const SeamlyInstanceFunctionsLoader = () => {
|
|
|
17345
17354
|
showSuggestions: false
|
|
17346
17355
|
}));
|
|
17347
17356
|
}
|
|
17357
|
+
if (hasResumeConversationPrompt.current) {
|
|
17358
|
+
continueChat();
|
|
17359
|
+
}
|
|
17348
17360
|
if (name && fallbackMessage) {
|
|
17349
17361
|
sendAction({
|
|
17350
17362
|
type: actionTypes.setTopic,
|