@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.
@@ -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.8",
14979
+ clientVersion: "24.0.0",
14980
14980
  currentUrl: window.location.toString(),
14981
14981
  screenResolution: `${window.screen.width}x${window.screen.height}`,
14982
14982
  timezone: getTimeZone(),
@@ -18123,6 +18123,14 @@ const SeamlyEventSubscriber = () => {
18123
18123
  const {
18124
18124
  emitEvent
18125
18125
  } = (0,seamly_hooks/* useSeamlyCommands */.Li)();
18126
+ const {
18127
+ hasPrompt,
18128
+ continueChat
18129
+ } = (0,seamly_hooks/* useSeamlyResumeConversationPrompt */.rC)();
18130
+ const hasResumeConversationPrompt = (0,hooks_.useRef)(hasPrompt);
18131
+ (0,hooks_.useEffect)(() => {
18132
+ hasResumeConversationPrompt.current = hasPrompt;
18133
+ }, [hasPrompt]);
18126
18134
  (0,hooks_.useEffect)(() => {
18127
18135
  if (conversation.socket) {
18128
18136
  conversation.onConnection(({
@@ -18267,6 +18275,9 @@ const SeamlyEventSubscriber = () => {
18267
18275
  dispatch((0,store_slice/* updateEvent */.qM)(event));
18268
18276
  break;
18269
18277
  }
18278
+ if (hasResumeConversationPrompt.current) {
18279
+ continueChat();
18280
+ }
18270
18281
  dispatch((0,store_slice/* addEvent */.W2)(event));
18271
18282
  break;
18272
18283
  }
@@ -18320,7 +18331,7 @@ const SeamlyEventSubscriber = () => {
18320
18331
  conversation.onMessage(eventRef.current);
18321
18332
  return true;
18322
18333
  });
18323
- }, [conversation, dispatch, emitEvent, endCountdown, eventBus, initCountdown]);
18334
+ }, [continueChat, conversation, dispatch, emitEvent, endCountdown, eventBus, initCountdown]);
18324
18335
  (0,hooks_.useEffect)(() => {
18325
18336
  conversation.onConnection(({
18326
18337
  connected