@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.
@@ -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-beta.7",
14979
+ clientVersion: "24.0.0-beta.9",
14980
14980
  currentUrl: window.location.toString(),
14981
14981
  screenResolution: `${window.screen.width}x${window.screen.height}`,
14982
14982
  timezone: getTimeZone(),
@@ -18596,6 +18596,11 @@ const SeamlyInstanceFunctionsLoader = () => {
18596
18596
  const currentVisibility = (0,hooks_.useRef)(visible);
18597
18597
  const eventBus = (0,event_bus_hooks/* default */.A)();
18598
18598
  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);
18599
18604
  const unreadCount = (0,seamly_hooks/* useSeamlyUnreadCount */.Dp)();
18600
18605
  const previousUnreadCount = (0,hooks_.useRef)(null);
18601
18606
  const previousVisibilityState = (0,hooks_.useRef)(null);
@@ -18613,8 +18618,12 @@ const SeamlyInstanceFunctionsLoader = () => {
18613
18618
  } = (0,translations_hooks/* useTranslations */.c3)();
18614
18619
  (0,hooks_.useEffect)(() => {
18615
18620
  currentVisibility.current = visible;
18616
- }, [visible]);
18621
+ hasResumeConversationPrompt.current = hasPrompt;
18622
+ }, [hasPrompt, visible]);
18617
18623
  useSeamlyInstanceFunction('askText', text => {
18624
+ if (hasResumeConversationPrompt.current) {
18625
+ continueChat();
18626
+ }
18618
18627
  sendMessage({
18619
18628
  body: text
18620
18629
  });
@@ -18660,6 +18669,9 @@ const SeamlyInstanceFunctionsLoader = () => {
18660
18669
  showSuggestions: false
18661
18670
  }));
18662
18671
  }
18672
+ if (hasResumeConversationPrompt.current) {
18673
+ continueChat();
18674
+ }
18663
18675
  if (name && fallbackMessage) {
18664
18676
  sendAction({
18665
18677
  type: seamly_utils/* actionTypes */.QN.setTopic,