@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.
@@ -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.8",
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
- }, [visible]);
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,