@seamly/web-ui 24.0.0-beta.8 → 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 +13 -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 +13 -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 +13 -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 +13 -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 +13 -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-event-subscriber.ts +20 -1
|
@@ -839,7 +839,7 @@ class API {
|
|
|
839
839
|
return {
|
|
840
840
|
clientName: "@seamly/web-ui",
|
|
841
841
|
clientVariant: this.#layoutMode,
|
|
842
|
-
clientVersion: "24.0.0
|
|
842
|
+
clientVersion: "24.0.0",
|
|
843
843
|
currentUrl: window.location.toString(),
|
|
844
844
|
screenResolution: `${window.screen.width}x${window.screen.height}`,
|
|
845
845
|
timezone: (0,_utils__WEBPACK_IMPORTED_MODULE_10__.getTimeZone)(),
|
|
@@ -8307,6 +8307,14 @@ const SeamlyEventSubscriber = () => {
|
|
|
8307
8307
|
const {
|
|
8308
8308
|
emitEvent
|
|
8309
8309
|
} = (0,ui_hooks_seamly_hooks__WEBPACK_IMPORTED_MODULE_12__.useSeamlyCommands)();
|
|
8310
|
+
const {
|
|
8311
|
+
hasPrompt,
|
|
8312
|
+
continueChat
|
|
8313
|
+
} = (0,ui_hooks_seamly_hooks__WEBPACK_IMPORTED_MODULE_12__.useSeamlyResumeConversationPrompt)();
|
|
8314
|
+
const hasResumeConversationPrompt = (0,preact_hooks__WEBPACK_IMPORTED_MODULE_0__.useRef)(hasPrompt);
|
|
8315
|
+
(0,preact_hooks__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
|
|
8316
|
+
hasResumeConversationPrompt.current = hasPrompt;
|
|
8317
|
+
}, [hasPrompt]);
|
|
8310
8318
|
(0,preact_hooks__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
|
|
8311
8319
|
if (conversation.socket) {
|
|
8312
8320
|
conversation.onConnection(({
|
|
@@ -8451,6 +8459,9 @@ const SeamlyEventSubscriber = () => {
|
|
|
8451
8459
|
dispatch((0,domains_store_slice__WEBPACK_IMPORTED_MODULE_9__.updateEvent)(event));
|
|
8452
8460
|
break;
|
|
8453
8461
|
}
|
|
8462
|
+
if (hasResumeConversationPrompt.current) {
|
|
8463
|
+
continueChat();
|
|
8464
|
+
}
|
|
8454
8465
|
dispatch((0,domains_store_slice__WEBPACK_IMPORTED_MODULE_9__.addEvent)(event));
|
|
8455
8466
|
break;
|
|
8456
8467
|
}
|
|
@@ -8504,7 +8515,7 @@ const SeamlyEventSubscriber = () => {
|
|
|
8504
8515
|
conversation.onMessage(eventRef.current);
|
|
8505
8516
|
return true;
|
|
8506
8517
|
});
|
|
8507
|
-
}, [conversation, dispatch, emitEvent, endCountdown, eventBus, initCountdown]);
|
|
8518
|
+
}, [continueChat, conversation, dispatch, emitEvent, endCountdown, eventBus, initCountdown]);
|
|
8508
8519
|
(0,preact_hooks__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
|
|
8509
8520
|
conversation.onConnection(({
|
|
8510
8521
|
connected
|