@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
|
@@ -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-beta.
|
|
842
|
+
clientVersion: "24.0.0-beta.9",
|
|
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)(),
|
|
@@ -8851,6 +8851,11 @@ const SeamlyInstanceFunctionsLoader = () => {
|
|
|
8851
8851
|
const currentVisibility = (0,preact_hooks__WEBPACK_IMPORTED_MODULE_0__.useRef)(visible);
|
|
8852
8852
|
const eventBus = (0,ui_hooks_event_bus_hooks__WEBPACK_IMPORTED_MODULE_8__["default"])();
|
|
8853
8853
|
const api = (0,ui_hooks_seamly_hooks__WEBPACK_IMPORTED_MODULE_9__.useSeamlyApiContext)();
|
|
8854
|
+
const {
|
|
8855
|
+
hasPrompt,
|
|
8856
|
+
continueChat
|
|
8857
|
+
} = (0,ui_hooks_seamly_hooks__WEBPACK_IMPORTED_MODULE_9__.useSeamlyResumeConversationPrompt)();
|
|
8858
|
+
const hasResumeConversationPrompt = (0,preact_hooks__WEBPACK_IMPORTED_MODULE_0__.useRef)(hasPrompt);
|
|
8854
8859
|
const unreadCount = (0,ui_hooks_seamly_hooks__WEBPACK_IMPORTED_MODULE_9__.useSeamlyUnreadCount)();
|
|
8855
8860
|
const previousUnreadCount = (0,preact_hooks__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
|
|
8856
8861
|
const previousVisibilityState = (0,preact_hooks__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
|
|
@@ -8868,8 +8873,12 @@ const SeamlyInstanceFunctionsLoader = () => {
|
|
|
8868
8873
|
} = (0,domains_translations_hooks__WEBPACK_IMPORTED_MODULE_5__.useTranslations)();
|
|
8869
8874
|
(0,preact_hooks__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
|
|
8870
8875
|
currentVisibility.current = visible;
|
|
8871
|
-
|
|
8876
|
+
hasResumeConversationPrompt.current = hasPrompt;
|
|
8877
|
+
}, [hasPrompt, visible]);
|
|
8872
8878
|
useSeamlyInstanceFunction('askText', text => {
|
|
8879
|
+
if (hasResumeConversationPrompt.current) {
|
|
8880
|
+
continueChat();
|
|
8881
|
+
}
|
|
8873
8882
|
sendMessage({
|
|
8874
8883
|
body: text
|
|
8875
8884
|
});
|
|
@@ -8915,6 +8924,9 @@ const SeamlyInstanceFunctionsLoader = () => {
|
|
|
8915
8924
|
showSuggestions: false
|
|
8916
8925
|
}));
|
|
8917
8926
|
}
|
|
8927
|
+
if (hasResumeConversationPrompt.current) {
|
|
8928
|
+
continueChat();
|
|
8929
|
+
}
|
|
8918
8930
|
if (name && fallbackMessage) {
|
|
8919
8931
|
sendAction({
|
|
8920
8932
|
type: ui_utils_seamly_utils__WEBPACK_IMPORTED_MODULE_10__.actionTypes.setTopic,
|