@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.
@@ -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.7",
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
- }, [visible]);
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,
@@ -24341,7 +24353,6 @@ const web_ui_namespaceObject = require("@seamly/web-ui");
24341
24353
 
24342
24354
 
24343
24355
 
24344
-
24345
24356
  const bareApi = {
24346
24357
  send: () => {
24347
24358
  // do nothing
@@ -24437,8 +24448,7 @@ const SeamlyStaticCore = ({
24437
24448
  children: /*#__PURE__*/(0,jsx_runtime_namespaceObject.jsx)(web_ui_namespaceObject.SeamlyLiveRegionContext.Provider, {
24438
24449
  value: liveMsgRef.current,
24439
24450
  children: /*#__PURE__*/(0,jsx_runtime_namespaceObject.jsx)(web_ui_namespaceObject.ComponentFilter, {
24440
- children: /*#__PURE__*/(0,jsx_runtime_namespaceObject.jsx)(seamly_activity_event_context.Provider, {
24441
- value: () => {},
24451
+ children: /*#__PURE__*/(0,jsx_runtime_namespaceObject.jsx)(web_ui_namespaceObject.SeamlyActivityMonitor, {
24442
24452
  children: /*#__PURE__*/(0,jsx_runtime_namespaceObject.jsx)(web_ui_namespaceObject.SeamlyFileUpload, {
24443
24453
  children: children
24444
24454
  })