bstp-agent-widget 0.2.131 → 0.2.132

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.
package/dist/element.mjs CHANGED
@@ -46490,30 +46490,30 @@ function tN({ hostContainerSelector: e, opened: t, hasComparison: n, hasContent:
46490
46490
  };
46491
46491
  }
46492
46492
  var nN = {
46493
- shell: "_shell_fjxge_1",
46494
- modalRoot: "_modalRoot_fjxge_6",
46495
- inner: "_inner_fjxge_12",
46496
- overlay: "_overlay_fjxge_19",
46497
- content: "_content_fjxge_26",
46498
- header: "_header_fjxge_36",
46499
- mantineTitle: "_mantineTitle_fjxge_40",
46500
- title: "_title_fjxge_44",
46501
- subtitle: "_subtitle_fjxge_53",
46502
- close: "_close_fjxge_60",
46503
- body: "_body_fjxge_74",
46504
- bodyContent: "_bodyContent_fjxge_81",
46505
- bodyScrollArea: "_bodyScrollArea_fjxge_88",
46506
- popupSections: "_popupSections_fjxge_92",
46507
- bodyText: "_bodyText_fjxge_96"
46493
+ shell: "_shell_1ms0b_1",
46494
+ modalRoot: "_modalRoot_1ms0b_6",
46495
+ inner: "_inner_1ms0b_12",
46496
+ overlay: "_overlay_1ms0b_19",
46497
+ content: "_content_1ms0b_27",
46498
+ header: "_header_1ms0b_41",
46499
+ mantineTitle: "_mantineTitle_1ms0b_48",
46500
+ title: "_title_1ms0b_52",
46501
+ subtitle: "_subtitle_1ms0b_61",
46502
+ close: "_close_1ms0b_68",
46503
+ body: "_body_1ms0b_82",
46504
+ bodyContent: "_bodyContent_1ms0b_90",
46505
+ bodyScrollArea: "_bodyScrollArea_1ms0b_97",
46506
+ popupSections: "_popupSections_1ms0b_101",
46507
+ bodyText: "_bodyText_1ms0b_105"
46508
46508
  };
46509
46509
  //#endregion
46510
46510
  //#region package/src/internal/components/AgentChatPopup/AgentChatPopup.tsx
46511
- function rN({ opened: e, onClose: t, message: n, isAssistantStreaming: r = !1, size: i, zIndex: a, layoutTop: o = "var(--mantine-custom-space-150)", layoutHeight: s = "calc(100vh - var(--mantine-custom-space-150) - var(--mantine-custom-space-150))", layoutLeftOffset: c = "var(--mantine-custom-space-150)", layoutRightOffset: l = "0px", hostContainerSelector: u }) {
46512
- let d = (0, U.useId)(), f = n?.popup, p = f?.comparisonModal, m = f?.title ?? p?.title, h = f?.subtitle ?? p?.subtitle, g = f?.body ?? n?.text, _ = !!p, { portalTarget: v, resolvedSize: y, shellStyle: b, shouldRender: x } = tN({
46511
+ function rN({ opened: e, onClose: t, message: n, isAssistantStreaming: r = !1, size: i, zIndex: a, layoutTop: o = "var(--mantine-custom-space-150)", layoutHeight: s = "calc(100vh - var(--mantine-custom-space-150) - var(--mantine-custom-space-150))", layoutLeftOffset: c = "var(--mantine-custom-space-150)", layoutRightOffset: l = "0px", hostContainerSelector: u, panelBorderRadius: d }) {
46512
+ let f = (0, U.useId)(), p = n?.popup, m = p?.comparisonModal, h = p?.title ?? m?.title, g = p?.subtitle ?? m?.subtitle, _ = p?.body ?? n?.text, v = !!m, y = typeof d == "number" ? `${d}px` : d, { portalTarget: b, resolvedSize: x, shellStyle: S, shouldRender: C } = tN({
46513
46513
  hostContainerSelector: u,
46514
46514
  opened: e,
46515
- hasComparison: _,
46516
- hasContent: !!(p || g || f),
46515
+ hasComparison: v,
46516
+ hasContent: !!(m || _ || p),
46517
46517
  size: i,
46518
46518
  zIndex: a,
46519
46519
  layoutTop: o,
@@ -46521,23 +46521,26 @@ function rN({ opened: e, onClose: t, message: n, isAssistantStreaming: r = !1, s
46521
46521
  layoutLeftOffset: c,
46522
46522
  layoutRightOffset: l
46523
46523
  });
46524
- return !x || !v ? null : (0, sn.createPortal)(/* @__PURE__ */ (0, W.jsx)(J, {
46524
+ return !C || !b ? null : (0, sn.createPortal)(/* @__PURE__ */ (0, W.jsx)(J, {
46525
46525
  className: nN.shell,
46526
- style: b,
46526
+ style: {
46527
+ ...S,
46528
+ "--agent-widget-popup-radius": y
46529
+ },
46527
46530
  children: /* @__PURE__ */ (0, W.jsx)(mg, {
46528
46531
  opened: e,
46529
46532
  onClose: t,
46530
46533
  title: /* @__PURE__ */ (0, W.jsxs)(zy, {
46531
46534
  gap: 4,
46532
46535
  children: [/* @__PURE__ */ (0, W.jsx)(Jf, {
46533
- id: d,
46536
+ id: f,
46534
46537
  className: nN.title,
46535
46538
  component: "span",
46536
- children: m
46537
- }), h ? /* @__PURE__ */ (0, W.jsx)(Jf, {
46539
+ children: h
46540
+ }), g ? /* @__PURE__ */ (0, W.jsx)(Jf, {
46538
46541
  className: nN.subtitle,
46539
46542
  component: "span",
46540
- children: h
46543
+ children: g
46541
46544
  }) : null]
46542
46545
  }),
46543
46546
  withCloseButton: !0,
@@ -46546,7 +46549,7 @@ function rN({ opened: e, onClose: t, message: n, isAssistantStreaming: r = !1, s
46546
46549
  lockScroll: !1,
46547
46550
  closeOnClickOutside: !1,
46548
46551
  trapFocus: !1,
46549
- size: y,
46552
+ size: x,
46550
46553
  scrollAreaComponent: al.Autosize,
46551
46554
  classNames: {
46552
46555
  root: nN.modalRoot,
@@ -46559,13 +46562,13 @@ function rN({ opened: e, onClose: t, message: n, isAssistantStreaming: r = !1, s
46559
46562
  title: nN.mantineTitle
46560
46563
  },
46561
46564
  overlayProps: {
46562
- backgroundOpacity: gA.lg,
46565
+ backgroundOpacity: gA.md,
46563
46566
  blur: 6
46564
46567
  },
46565
46568
  children: /* @__PURE__ */ (0, W.jsx)(J, {
46566
46569
  className: nN.bodyContent,
46567
- "data-layout": _ ? "comparison" : "text",
46568
- children: _ ? /* @__PURE__ */ (0, W.jsx)(al.Autosize, {
46570
+ "data-layout": v ? "comparison" : "text",
46571
+ children: v ? /* @__PURE__ */ (0, W.jsx)(al.Autosize, {
46569
46572
  mah: "100%",
46570
46573
  offsetScrollbars: !0,
46571
46574
  scrollbarSize: 8,
@@ -46574,13 +46577,13 @@ function rN({ opened: e, onClose: t, message: n, isAssistantStreaming: r = !1, s
46574
46577
  gap: "md",
46575
46578
  className: nN.popupSections,
46576
46579
  children: /* @__PURE__ */ (0, W.jsx)(QM, {
46577
- comparisonModal: p,
46580
+ comparisonModal: m,
46578
46581
  fillHeight: !0,
46579
46582
  isBusy: r,
46580
46583
  onClose: t
46581
46584
  })
46582
46585
  })
46583
- }) : g ? /* @__PURE__ */ (0, W.jsx)(al.Autosize, {
46586
+ }) : _ ? /* @__PURE__ */ (0, W.jsx)(al.Autosize, {
46584
46587
  mah: "100%",
46585
46588
  offsetScrollbars: !0,
46586
46589
  scrollbarSize: 8,
@@ -46588,12 +46591,12 @@ function rN({ opened: e, onClose: t, message: n, isAssistantStreaming: r = !1, s
46588
46591
  children: /* @__PURE__ */ (0, W.jsx)(Jf, {
46589
46592
  className: nN.bodyText,
46590
46593
  component: "p",
46591
- children: g
46594
+ children: _
46592
46595
  })
46593
46596
  }) : null
46594
46597
  })
46595
46598
  })
46596
- }), v);
46599
+ }), b);
46597
46600
  }
46598
46601
  //#endregion
46599
46602
  //#region node_modules/.bun/dompurify@3.3.3/node_modules/dompurify/dist/purify.es.mjs
@@ -55515,7 +55518,8 @@ function BU({ visible: e, onClose: t, messages: n, composerText: r, onComposerTe
55515
55518
  layoutHeight: x,
55516
55519
  layoutLeftOffset: C,
55517
55520
  layoutRightOffset: ie,
55518
- hostContainerSelector: N
55521
+ hostContainerSelector: N,
55522
+ panelBorderRadius: D
55519
55523
  }) : null
55520
55524
  ]
55521
55525
  });