@seamly/web-ui 24.0.0-beta.8 → 24.0.0

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.8",
4024
+ clientVersion: "24.0.0",
4025
4025
  currentUrl: window.location.toString(),
4026
4026
  screenResolution: `${window.screen.width}x${window.screen.height}`,
4027
4027
  timezone: getTimeZone(),
@@ -16816,6 +16816,14 @@ const SeamlyEventSubscriber = () => {
16816
16816
  const {
16817
16817
  emitEvent
16818
16818
  } = use_seamly_commands();
16819
+ const {
16820
+ hasPrompt,
16821
+ continueChat
16822
+ } = use_seamly_resume_conversation_prompt();
16823
+ const hasResumeConversationPrompt = (0,hooks_.useRef)(hasPrompt);
16824
+ (0,hooks_.useEffect)(() => {
16825
+ hasResumeConversationPrompt.current = hasPrompt;
16826
+ }, [hasPrompt]);
16819
16827
  (0,hooks_.useEffect)(() => {
16820
16828
  if (conversation.socket) {
16821
16829
  conversation.onConnection(({
@@ -16960,6 +16968,9 @@ const SeamlyEventSubscriber = () => {
16960
16968
  dispatch(updateEvent(event));
16961
16969
  break;
16962
16970
  }
16971
+ if (hasResumeConversationPrompt.current) {
16972
+ continueChat();
16973
+ }
16963
16974
  dispatch(addEvent(event));
16964
16975
  break;
16965
16976
  }
@@ -17013,7 +17024,7 @@ const SeamlyEventSubscriber = () => {
17013
17024
  conversation.onMessage(eventRef.current);
17014
17025
  return true;
17015
17026
  });
17016
- }, [conversation, dispatch, emitEvent, endCountdown, eventBus, initCountdown]);
17027
+ }, [continueChat, conversation, dispatch, emitEvent, endCountdown, eventBus, initCountdown]);
17017
17028
  (0,hooks_.useEffect)(() => {
17018
17029
  conversation.onConnection(({
17019
17030
  connected