@skippr/live-agent-sdk 0.20.0 → 0.21.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.
@@ -1856,25 +1856,27 @@ function LiveAgent({
1856
1856
  auth.logout,
1857
1857
  auth.isSubmitting
1858
1858
  ]);
1859
- const widgetContent = /* @__PURE__ */ jsxs12(Fragment3, {
1859
+ const sdkWidgets = /* @__PURE__ */ jsxs12(Fragment3, {
1860
1860
  children: [
1861
1861
  connection && /* @__PURE__ */ jsx16(RoomAudioRenderer, {}),
1862
1862
  isMinimized && /* @__PURE__ */ jsx16(MinimizedBubble, {}),
1863
1863
  /* @__PURE__ */ jsx16(SidebarTrigger, {}),
1864
- /* @__PURE__ */ jsx16(Sidebar, {}),
1865
- children
1864
+ /* @__PURE__ */ jsx16(Sidebar, {})
1866
1865
  ]
1867
1866
  });
1868
- return /* @__PURE__ */ jsx16(LiveAgentContext.Provider, {
1867
+ return /* @__PURE__ */ jsxs12(LiveAgentContext.Provider, {
1869
1868
  value: ctx,
1870
- children: connection ? /* @__PURE__ */ jsx16(LiveKitRoom, {
1871
- serverUrl: connection.livekitUrl,
1872
- token: connection.token,
1873
- connect: shouldConnect,
1874
- audio: true,
1875
- onDisconnected: disconnect,
1876
- children: widgetContent
1877
- }) : widgetContent
1869
+ children: [
1870
+ connection ? /* @__PURE__ */ jsx16(LiveKitRoom, {
1871
+ serverUrl: connection.livekitUrl,
1872
+ token: connection.token,
1873
+ connect: shouldConnect,
1874
+ audio: true,
1875
+ onDisconnected: disconnect,
1876
+ children: sdkWidgets
1877
+ }) : sdkWidgets,
1878
+ children
1879
+ ]
1878
1880
  });
1879
1881
  }
1880
1882
  export {