@seamly/web-ui 24.0.0-beta.7 → 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 +15 -5
- 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/style-guide/components/static-core.tsx +3 -3
- package/src/javascripts/ui/components/core/seamly-instance-functions-loader.ts +17 -1
|
@@ -4355,7 +4355,7 @@ class API {
|
|
|
4355
4355
|
return {
|
|
4356
4356
|
clientName: "@seamly/web-ui",
|
|
4357
4357
|
clientVariant: this.#layoutMode,
|
|
4358
|
-
clientVersion: "24.0.0-beta.
|
|
4358
|
+
clientVersion: "24.0.0-beta.9",
|
|
4359
4359
|
currentUrl: window.location.toString(),
|
|
4360
4360
|
screenResolution: `${window.screen.width}x${window.screen.height}`,
|
|
4361
4361
|
timezone: getTimeZone(),
|
|
@@ -17615,6 +17615,11 @@ const SeamlyInstanceFunctionsLoader = () => {
|
|
|
17615
17615
|
const currentVisibility = (0,hooks_module/* useRef */.li)(visible);
|
|
17616
17616
|
const eventBus = event_bus_hooks();
|
|
17617
17617
|
const api = useSeamlyApiContext();
|
|
17618
|
+
const {
|
|
17619
|
+
hasPrompt,
|
|
17620
|
+
continueChat
|
|
17621
|
+
} = use_seamly_resume_conversation_prompt();
|
|
17622
|
+
const hasResumeConversationPrompt = (0,hooks_module/* useRef */.li)(hasPrompt);
|
|
17618
17623
|
const unreadCount = useSeamlyUnreadCount();
|
|
17619
17624
|
const previousUnreadCount = (0,hooks_module/* useRef */.li)(null);
|
|
17620
17625
|
const previousVisibilityState = (0,hooks_module/* useRef */.li)(null);
|
|
@@ -17632,8 +17637,12 @@ const SeamlyInstanceFunctionsLoader = () => {
|
|
|
17632
17637
|
} = useTranslations();
|
|
17633
17638
|
(0,hooks_module/* useEffect */.vJ)(() => {
|
|
17634
17639
|
currentVisibility.current = visible;
|
|
17635
|
-
|
|
17640
|
+
hasResumeConversationPrompt.current = hasPrompt;
|
|
17641
|
+
}, [hasPrompt, visible]);
|
|
17636
17642
|
useSeamlyInstanceFunction('askText', text => {
|
|
17643
|
+
if (hasResumeConversationPrompt.current) {
|
|
17644
|
+
continueChat();
|
|
17645
|
+
}
|
|
17637
17646
|
sendMessage({
|
|
17638
17647
|
body: text
|
|
17639
17648
|
});
|
|
@@ -17679,6 +17688,9 @@ const SeamlyInstanceFunctionsLoader = () => {
|
|
|
17679
17688
|
showSuggestions: false
|
|
17680
17689
|
}));
|
|
17681
17690
|
}
|
|
17691
|
+
if (hasResumeConversationPrompt.current) {
|
|
17692
|
+
continueChat();
|
|
17693
|
+
}
|
|
17682
17694
|
if (name && fallbackMessage) {
|
|
17683
17695
|
sendAction({
|
|
17684
17696
|
type: actionTypes.setTopic,
|