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