@skippr/live-agent-sdk 0.93.0 → 0.94.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.
@@ -8,7 +8,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
8
8
 
9
9
  // src/components/LiveAgent.tsx
10
10
  import { LiveKitRoom, RoomAudioRenderer } from "@livekit/components-react";
11
- import { useCallback as useCallback32, useEffect as useEffect49, useMemo as useMemo7, useRef as useRef42, useState as useState39 } from "react";
11
+ import { Fragment as Fragment7, useCallback as useCallback32, useEffect as useEffect49, useMemo as useMemo7, useRef as useRef42, useState as useState39 } from "react";
12
12
  // ../../node_modules/.bun/lucide-react@1.8.0+83d5fd7b249dbeef/node_modules/lucide-react/dist/esm/createLucideIcon.js
13
13
  import { forwardRef as forwardRef2, createElement as createElement3 } from "react";
14
14
 
@@ -11083,7 +11083,7 @@ function VoiceBar({ revealed }) {
11083
11083
  }
11084
11084
 
11085
11085
  // src/components/LiveAgent.tsx
11086
- import { jsx as jsx47, jsxs as jsxs39, Fragment as Fragment7 } from "react/jsx-runtime";
11086
+ import { jsx as jsx47, jsxs as jsxs39, Fragment as Fragment8 } from "react/jsx-runtime";
11087
11087
  function readSavedPosition() {
11088
11088
  try {
11089
11089
  const saved = localStorage.getItem("skippr_widget_position");
@@ -11607,68 +11607,72 @@ function LiveAgent(props) {
11607
11607
  audio: true,
11608
11608
  onDisconnected: handleRoomDisconnected,
11609
11609
  children: [
11610
- connection && !textMode && /* @__PURE__ */ jsx47(RoomAudioRenderer, {}),
11611
- /* @__PURE__ */ jsxs39(SessionHoldProvider, {
11610
+ /* @__PURE__ */ jsxs39(Fragment7, {
11612
11611
  children: [
11613
- connection && captureMode === CAPTURE_MODE.Screenshare && /* @__PURE__ */ jsx47(AutoStartMedia, {
11614
- pendingScreenStream,
11615
- pushOrTapMicMode: isRequestResponseMicMode(agentControls?.micMode)
11616
- }),
11617
- connection && captureMode === CAPTURE_MODE.Auto && /* @__PURE__ */ jsx47(DomCapture, {
11618
- pushOrTapMicMode: isRequestResponseMicMode(agentControls?.micMode)
11619
- }),
11620
- /* @__PURE__ */ jsxs39(ShadowHost, {
11621
- accentColor: appearance?.accentColor ?? null,
11612
+ connection && !textMode && /* @__PURE__ */ jsx47(RoomAudioRenderer, {}),
11613
+ /* @__PURE__ */ jsxs39(SessionHoldProvider, {
11622
11614
  children: [
11623
- connection && captureMode === CAPTURE_MODE.Auto && agentControls?.highlight && /* @__PURE__ */ jsx47(HighlightOverlay, {}),
11624
- connection && captureMode === CAPTURE_MODE.Auto && agentControls?.actions && /* @__PURE__ */ jsx47(PageActionHandler, {}),
11625
- connection && captureMode === CAPTURE_MODE.Auto && agentControls?.actions && /* @__PURE__ */ jsx47(PlanPanelOpener, {}),
11626
- connection && captureMode === CAPTURE_MODE.Auto && (agentControls?.highlight || agentControls?.actions) && /* @__PURE__ */ jsx47(AgentCursorMount, {
11627
- animated: shouldAnimateCursor
11615
+ connection && captureMode === CAPTURE_MODE.Screenshare && /* @__PURE__ */ jsx47(AutoStartMedia, {
11616
+ pendingScreenStream,
11617
+ pushOrTapMicMode: isRequestResponseMicMode(agentControls?.micMode)
11628
11618
  }),
11629
- /* @__PURE__ */ jsx47(VoiceTurnProvider, {
11630
- children: /* @__PURE__ */ jsx47(TranscriptionsProvider, {
11631
- children: /* @__PURE__ */ jsx47("div", {
11632
- id: WIDGET_ROOT_ID,
11633
- children: variant === "sidebar" ? /* @__PURE__ */ jsxs39(Fragment7, {
11634
- children: [
11635
- isMinimized && !showControlBar && isLauncherRevealed && /* @__PURE__ */ jsx47(MinimizedBubble, {
11636
- welcomeMessage,
11637
- welcomeDismissed,
11638
- onDismissWelcome: dismissWelcome
11639
- }),
11640
- showControlBar && !hideControls && /* @__PURE__ */ jsx47(SessionControlBar, {}),
11641
- /* @__PURE__ */ jsx47(SidebarTrigger, {}),
11642
- /* @__PURE__ */ jsx47(Sidebar, {
11643
- hideControls,
11644
- hideHeader,
11645
- startSessionLabel
11646
- })
11647
- ]
11648
- }) : !isLauncherRevealed ? null : buddyActive ? /* @__PURE__ */ jsx47(BuddyVoiceBar, {
11649
- revealed: isLauncherRevealed
11650
- }) : /* @__PURE__ */ jsxs39(Fragment7, {
11651
- children: [
11652
- /* @__PURE__ */ jsx47(VoiceBar, {
11619
+ connection && captureMode === CAPTURE_MODE.Auto && /* @__PURE__ */ jsx47(DomCapture, {
11620
+ pushOrTapMicMode: isRequestResponseMicMode(agentControls?.micMode)
11621
+ }),
11622
+ /* @__PURE__ */ jsxs39(ShadowHost, {
11623
+ accentColor: appearance?.accentColor ?? null,
11624
+ children: [
11625
+ connection && captureMode === CAPTURE_MODE.Auto && agentControls?.highlight && /* @__PURE__ */ jsx47(HighlightOverlay, {}),
11626
+ connection && captureMode === CAPTURE_MODE.Auto && agentControls?.actions && /* @__PURE__ */ jsx47(PageActionHandler, {}),
11627
+ connection && captureMode === CAPTURE_MODE.Auto && agentControls?.actions && /* @__PURE__ */ jsx47(PlanPanelOpener, {}),
11628
+ connection && captureMode === CAPTURE_MODE.Auto && (agentControls?.highlight || agentControls?.actions) && /* @__PURE__ */ jsx47(AgentCursorMount, {
11629
+ animated: shouldAnimateCursor
11630
+ }),
11631
+ /* @__PURE__ */ jsx47(VoiceTurnProvider, {
11632
+ children: /* @__PURE__ */ jsx47(TranscriptionsProvider, {
11633
+ children: /* @__PURE__ */ jsx47("div", {
11634
+ id: WIDGET_ROOT_ID,
11635
+ children: variant === "sidebar" ? /* @__PURE__ */ jsxs39(Fragment8, {
11636
+ children: [
11637
+ isMinimized && !showControlBar && isLauncherRevealed && /* @__PURE__ */ jsx47(MinimizedBubble, {
11638
+ welcomeMessage,
11639
+ welcomeDismissed,
11640
+ onDismissWelcome: dismissWelcome
11641
+ }),
11642
+ showControlBar && !hideControls && /* @__PURE__ */ jsx47(SessionControlBar, {}),
11643
+ /* @__PURE__ */ jsx47(SidebarTrigger, {}),
11644
+ /* @__PURE__ */ jsx47(Sidebar, {
11645
+ hideControls,
11646
+ hideHeader,
11647
+ startSessionLabel
11648
+ })
11649
+ ]
11650
+ }) : !isLauncherRevealed ? null : buddyActive ? /* @__PURE__ */ jsx47(BuddyVoiceBar, {
11653
11651
  revealed: isLauncherRevealed
11654
- }),
11655
- (agentControls?.chat ?? DEFAULT_CHAT_SURFACE) === CHAT_SURFACE.Room && /* @__PURE__ */ jsx47(Sidebar, {
11656
- hideControls,
11657
- hideHeader,
11658
- startSessionLabel
11652
+ }) : /* @__PURE__ */ jsxs39(Fragment8, {
11653
+ children: [
11654
+ /* @__PURE__ */ jsx47(VoiceBar, {
11655
+ revealed: isLauncherRevealed
11656
+ }),
11657
+ (agentControls?.chat ?? DEFAULT_CHAT_SURFACE) === CHAT_SURFACE.Room && /* @__PURE__ */ jsx47(Sidebar, {
11658
+ hideControls,
11659
+ hideHeader,
11660
+ startSessionLabel
11661
+ })
11662
+ ]
11659
11663
  })
11660
- ]
11664
+ })
11661
11665
  })
11662
11666
  })
11663
- })
11667
+ ]
11664
11668
  })
11665
11669
  ]
11666
- }),
11667
- children
11670
+ })
11668
11671
  ]
11669
- })
11672
+ }, connection?.token),
11673
+ children
11670
11674
  ]
11671
- }, connection?.token)
11675
+ })
11672
11676
  });
11673
11677
  }
11674
11678
  // src/hooks/useIsLocalSpeaking.ts