@skippr/live-agent-sdk 0.117.0 → 0.118.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.
@@ -10605,7 +10605,7 @@ function ChatInput({ sendChatMessage, isSendingChat, autoFocus = false }) {
10605
10605
  return /* @__PURE__ */ jsxs24("form", {
10606
10606
  onSubmit: handleSubmit,
10607
10607
  "data-skippr-no-drag": "",
10608
- className: "skippr:flex skippr:items-center skippr:gap-[7px] skippr:border-t skippr:border-[rgba(45,45,63,0.08)] skippr:bg-white skippr:p-[9px]",
10608
+ className: "skippr:flex skippr:shrink-0 skippr:items-center skippr:gap-[7px] skippr:border-t skippr:border-[rgba(45,45,63,0.08)] skippr:bg-white skippr:p-[9px]",
10609
10609
  children: [
10610
10610
  /* @__PURE__ */ jsx31("textarea", {
10611
10611
  ref: textareaRef,
@@ -10738,17 +10738,20 @@ function LinkCard({ card, onDismiss }) {
10738
10738
  href: card.url,
10739
10739
  target: "_blank",
10740
10740
  rel: "noopener noreferrer",
10741
- className: "skippr:inline-flex skippr:flex-1 skippr:items-center skippr:justify-center skippr:gap-2 skippr:rounded-md skippr:bg-primary skippr:py-2 skippr:text-sm skippr:font-medium skippr:text-primary-foreground skippr:transition-all skippr:hover:bg-primary/90 skippr:focus-visible:outline-none skippr:focus-visible:ring-2 skippr:focus-visible:ring-ring skippr:focus-visible:ring-offset-2",
10741
+ className: "skippr:inline-flex skippr:min-w-0 skippr:flex-1 skippr:items-center skippr:justify-center skippr:gap-2 skippr:rounded-md skippr:bg-primary skippr:py-2 skippr:text-xs skippr:font-medium skippr:text-primary-foreground skippr:transition-all skippr:hover:bg-primary/90 skippr:focus-visible:outline-none skippr:focus-visible:ring-2 skippr:focus-visible:ring-ring skippr:focus-visible:ring-offset-2",
10742
10742
  children: [
10743
10743
  /* @__PURE__ */ jsx33(ExternalLink, {
10744
- className: "skippr:size-4"
10744
+ className: "skippr:size-4 skippr:shrink-0"
10745
10745
  }),
10746
- copy.cardOpenLink
10746
+ /* @__PURE__ */ jsx33("span", {
10747
+ className: "skippr:truncate",
10748
+ children: copy.cardOpenLink
10749
+ })
10747
10750
  ]
10748
10751
  }),
10749
10752
  /* @__PURE__ */ jsxs26(Button, {
10750
10753
  variant: "outline",
10751
- className: "skippr:flex-1 skippr:py-2",
10754
+ className: "skippr:px-2 skippr:py-2 skippr:text-xs",
10752
10755
  onClick: handleCopy,
10753
10756
  "aria-label": copy.cardCopyLink,
10754
10757
  children: [
@@ -10776,21 +10779,21 @@ var APPROVING_RESET_MS = 8000;
10776
10779
  function StepIcon({ status }) {
10777
10780
  if (status === "done") {
10778
10781
  return /* @__PURE__ */ jsx34(CircleCheck, {
10779
- className: "skippr:size-4 skippr:text-chart-3"
10782
+ className: "skippr:size-4 skippr:shrink-0 skippr:text-chart-3"
10780
10783
  });
10781
10784
  }
10782
10785
  if (status === "failed") {
10783
10786
  return /* @__PURE__ */ jsx34(CircleX, {
10784
- className: "skippr:size-4 skippr:text-destructive"
10787
+ className: "skippr:size-4 skippr:shrink-0 skippr:text-destructive"
10785
10788
  });
10786
10789
  }
10787
10790
  if (status === "active") {
10788
10791
  return /* @__PURE__ */ jsx34(Circle, {
10789
- className: "skippr:size-4 skippr:fill-primary/30 skippr:text-primary"
10792
+ className: "skippr:size-4 skippr:shrink-0 skippr:fill-primary/30 skippr:text-primary"
10790
10793
  });
10791
10794
  }
10792
10795
  return /* @__PURE__ */ jsx34(Circle, {
10793
- className: "skippr:size-4 skippr:text-muted-foreground/30"
10796
+ className: "skippr:size-4 skippr:shrink-0 skippr:text-muted-foreground/30"
10794
10797
  });
10795
10798
  }
10796
10799
  function PlanCard({ plan, sendChatMessage, onDismiss }) {
@@ -10822,14 +10825,14 @@ function PlanCard({ plan, sendChatMessage, onDismiss }) {
10822
10825
  return () => clearTimeout(timer);
10823
10826
  }, [plan.state, onDismiss]);
10824
10827
  return /* @__PURE__ */ jsxs27("div", {
10825
- className: "skippr:rounded-2xl skippr:rounded-tl-md skippr:bg-card skippr:p-3.5 skippr:ring-2 skippr:ring-brand",
10828
+ className: "skippr:flex skippr:min-h-0 skippr:min-w-0 skippr:flex-1 skippr:flex-col skippr:rounded-2xl skippr:rounded-tl-md skippr:bg-card skippr:p-3.5 skippr:ring-2 skippr:ring-brand",
10826
10829
  children: [
10827
10830
  /* @__PURE__ */ jsx34("p", {
10828
- className: "skippr:mb-3 skippr:text-xs skippr:font-semibold skippr:leading-snug skippr:text-foreground",
10831
+ className: "skippr:mb-3 skippr:shrink-0 skippr:text-xs skippr:font-semibold skippr:leading-snug skippr:text-foreground",
10829
10832
  children: copy.planTitle
10830
10833
  }),
10831
10834
  /* @__PURE__ */ jsx34("div", {
10832
- className: "skippr:max-h-[132px] skippr:space-y-2 skippr:overflow-y-auto skippr:overscroll-contain",
10835
+ className: "skippr:min-h-0 skippr:max-h-[132px] skippr:space-y-2 skippr:overflow-y-auto skippr:overscroll-contain",
10833
10836
  children: plan.steps.map((step) => /* @__PURE__ */ jsxs27("div", {
10834
10837
  className: "skippr:flex skippr:items-center skippr:gap-2",
10835
10838
  children: [
@@ -10844,22 +10847,25 @@ function PlanCard({ plan, sendChatMessage, onDismiss }) {
10844
10847
  }, step.index))
10845
10848
  }),
10846
10849
  awaitingApproval && /* @__PURE__ */ jsxs27("div", {
10847
- className: "skippr:mt-3.5 skippr:flex skippr:gap-2",
10850
+ className: "skippr:mt-3.5 skippr:flex skippr:shrink-0 skippr:gap-2",
10848
10851
  children: [
10849
10852
  /* @__PURE__ */ jsxs27(Button, {
10850
- className: "skippr:flex-1 skippr:gap-1.5 skippr:py-2",
10853
+ className: "skippr:min-w-0 skippr:flex-1 skippr:gap-1.5 skippr:px-3 skippr:py-2 skippr:text-xs",
10851
10854
  disabled: isApproving,
10852
10855
  onClick: approve,
10853
10856
  children: [
10854
10857
  isApproving && /* @__PURE__ */ jsx34("span", {
10855
10858
  className: "skippr:size-3 skippr:shrink-0 skippr:animate-spin skippr:rounded-full skippr:border-2 skippr:border-white/30 skippr:border-t-white"
10856
10859
  }),
10857
- isApproving ? copy.planApproving : copy.planApprove
10860
+ /* @__PURE__ */ jsx34("span", {
10861
+ className: "skippr:truncate",
10862
+ children: isApproving ? copy.planApproving : copy.planApprove
10863
+ })
10858
10864
  ]
10859
10865
  }),
10860
10866
  /* @__PURE__ */ jsx34(Button, {
10861
10867
  variant: "outline",
10862
- className: "skippr:flex-1 skippr:py-2",
10868
+ className: "skippr:px-3 skippr:py-2 skippr:text-xs",
10863
10869
  disabled: isApproving,
10864
10870
  onClick: () => sendChatMessage(CANCEL_MESSAGE),
10865
10871
  children: copy.planCancel
@@ -11000,7 +11006,7 @@ function MessageList({
11000
11006
  }),
11001
11007
  isPlanShowing && /* @__PURE__ */ jsx36("div", {
11002
11008
  "data-skippr-no-drag": "",
11003
- className: "skippr:shrink-0 skippr:border-t skippr:border-border skippr:p-3",
11009
+ className: "skippr:flex skippr:min-h-0 skippr:border-t skippr:border-border skippr:p-3",
11004
11010
  children: /* @__PURE__ */ jsx36(PlanCard, {
11005
11011
  plan,
11006
11012
  sendChatMessage,