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