@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
package/build/dist/lib/utils.js
CHANGED
|
@@ -14976,7 +14976,7 @@ class API {
|
|
|
14976
14976
|
return {
|
|
14977
14977
|
clientName: "@seamly/web-ui",
|
|
14978
14978
|
clientVariant: this.#layoutMode,
|
|
14979
|
-
clientVersion: "24.0.0
|
|
14979
|
+
clientVersion: "24.0.0",
|
|
14980
14980
|
currentUrl: window.location.toString(),
|
|
14981
14981
|
screenResolution: `${window.screen.width}x${window.screen.height}`,
|
|
14982
14982
|
timezone: getTimeZone(),
|
|
@@ -18123,6 +18123,14 @@ const SeamlyEventSubscriber = () => {
|
|
|
18123
18123
|
const {
|
|
18124
18124
|
emitEvent
|
|
18125
18125
|
} = (0,seamly_hooks/* useSeamlyCommands */.Li)();
|
|
18126
|
+
const {
|
|
18127
|
+
hasPrompt,
|
|
18128
|
+
continueChat
|
|
18129
|
+
} = (0,seamly_hooks/* useSeamlyResumeConversationPrompt */.rC)();
|
|
18130
|
+
const hasResumeConversationPrompt = (0,hooks_.useRef)(hasPrompt);
|
|
18131
|
+
(0,hooks_.useEffect)(() => {
|
|
18132
|
+
hasResumeConversationPrompt.current = hasPrompt;
|
|
18133
|
+
}, [hasPrompt]);
|
|
18126
18134
|
(0,hooks_.useEffect)(() => {
|
|
18127
18135
|
if (conversation.socket) {
|
|
18128
18136
|
conversation.onConnection(({
|
|
@@ -18267,6 +18275,9 @@ const SeamlyEventSubscriber = () => {
|
|
|
18267
18275
|
dispatch((0,store_slice/* updateEvent */.qM)(event));
|
|
18268
18276
|
break;
|
|
18269
18277
|
}
|
|
18278
|
+
if (hasResumeConversationPrompt.current) {
|
|
18279
|
+
continueChat();
|
|
18280
|
+
}
|
|
18270
18281
|
dispatch((0,store_slice/* addEvent */.W2)(event));
|
|
18271
18282
|
break;
|
|
18272
18283
|
}
|
|
@@ -18320,7 +18331,7 @@ const SeamlyEventSubscriber = () => {
|
|
|
18320
18331
|
conversation.onMessage(eventRef.current);
|
|
18321
18332
|
return true;
|
|
18322
18333
|
});
|
|
18323
|
-
}, [conversation, dispatch, emitEvent, endCountdown, eventBus, initCountdown]);
|
|
18334
|
+
}, [continueChat, conversation, dispatch, emitEvent, endCountdown, eventBus, initCountdown]);
|
|
18324
18335
|
(0,hooks_.useEffect)(() => {
|
|
18325
18336
|
conversation.onConnection(({
|
|
18326
18337
|
connected
|
|
@@ -18596,11 +18607,6 @@ const SeamlyInstanceFunctionsLoader = () => {
|
|
|
18596
18607
|
const currentVisibility = (0,hooks_.useRef)(visible);
|
|
18597
18608
|
const eventBus = (0,event_bus_hooks/* default */.A)();
|
|
18598
18609
|
const api = (0,seamly_hooks/* useSeamlyApiContext */.iv)();
|
|
18599
|
-
const {
|
|
18600
|
-
hasPrompt,
|
|
18601
|
-
continueChat
|
|
18602
|
-
} = (0,seamly_hooks/* useSeamlyResumeConversationPrompt */.rC)();
|
|
18603
|
-
const hasResumeConversationPrompt = (0,hooks_.useRef)(hasPrompt);
|
|
18604
18610
|
const unreadCount = (0,seamly_hooks/* useSeamlyUnreadCount */.Dp)();
|
|
18605
18611
|
const previousUnreadCount = (0,hooks_.useRef)(null);
|
|
18606
18612
|
const previousVisibilityState = (0,hooks_.useRef)(null);
|
|
@@ -18618,12 +18624,8 @@ const SeamlyInstanceFunctionsLoader = () => {
|
|
|
18618
18624
|
} = (0,translations_hooks/* useTranslations */.c3)();
|
|
18619
18625
|
(0,hooks_.useEffect)(() => {
|
|
18620
18626
|
currentVisibility.current = visible;
|
|
18621
|
-
|
|
18622
|
-
}, [hasPrompt, visible]);
|
|
18627
|
+
}, [visible]);
|
|
18623
18628
|
useSeamlyInstanceFunction('askText', text => {
|
|
18624
|
-
if (hasResumeConversationPrompt.current) {
|
|
18625
|
-
continueChat();
|
|
18626
|
-
}
|
|
18627
18629
|
sendMessage({
|
|
18628
18630
|
body: text
|
|
18629
18631
|
});
|
|
@@ -18669,9 +18671,6 @@ const SeamlyInstanceFunctionsLoader = () => {
|
|
|
18669
18671
|
showSuggestions: false
|
|
18670
18672
|
}));
|
|
18671
18673
|
}
|
|
18672
|
-
if (hasResumeConversationPrompt.current) {
|
|
18673
|
-
continueChat();
|
|
18674
|
-
}
|
|
18675
18674
|
if (name && fallbackMessage) {
|
|
18676
18675
|
sendAction({
|
|
18677
18676
|
type: seamly_utils/* actionTypes */.QN.setTopic,
|