@agents24/chat-react 0.5.23 → 0.5.24

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.
@@ -1,4 +1,5 @@
1
1
  // scaffold/src/app.tsx
2
+ import { createBrowserVisibility } from "@agents24/client/browser";
2
3
  import {
3
4
  useAgentChatRuntime
4
5
  } from "@agents24/chat-react/runtime";
@@ -2292,6 +2293,7 @@ var GUEST_CHAT_IDENTITY = { state: "guest" };
2292
2293
  // scaffold/src/app.tsx
2293
2294
  import { jsx as jsx25 } from "react/jsx-runtime";
2294
2295
  var createBrowserAbortController = () => new AbortController();
2296
+ var browserVisibility = createBrowserVisibility();
2295
2297
  function RuntimeChat({
2296
2298
  components,
2297
2299
  identity = GUEST_CHAT_IDENTITY,
@@ -2305,7 +2307,7 @@ function RuntimeChat({
2305
2307
  }
2306
2308
  function App(props) {
2307
2309
  const identity = props.identity || GUEST_CHAT_IDENTITY;
2308
- return /* @__PURE__ */ jsx25(Agents24Provider, { client: props.client, createAbortController: createBrowserAbortController, children: /* @__PURE__ */ jsx25(RuntimeChat, { ...props }, identity.state) });
2310
+ return /* @__PURE__ */ jsx25(Agents24Provider, { client: props.client, createAbortController: createBrowserAbortController, visibility: browserVisibility, children: /* @__PURE__ */ jsx25(RuntimeChat, { ...props }, identity.state) });
2309
2311
  }
2310
2312
 
2311
2313
  // scaffold/src/index.tsx