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/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: "
|
|
46494
|
-
modalRoot: "
|
|
46495
|
-
inner: "
|
|
46496
|
-
overlay: "
|
|
46497
|
-
content: "
|
|
46498
|
-
header: "
|
|
46499
|
-
mantineTitle: "
|
|
46500
|
-
title: "
|
|
46501
|
-
subtitle: "
|
|
46502
|
-
close: "
|
|
46503
|
-
body: "
|
|
46504
|
-
bodyContent: "
|
|
46505
|
-
bodyScrollArea: "
|
|
46506
|
-
popupSections: "
|
|
46507
|
-
bodyText: "
|
|
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
|
|
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: !!(
|
|
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 !
|
|
46524
|
+
return !C || !b ? null : (0, sn.createPortal)(/* @__PURE__ */ (0, W.jsx)(J, {
|
|
46525
46525
|
className: nN.shell,
|
|
46526
|
-
style:
|
|
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:
|
|
46536
|
+
id: f,
|
|
46534
46537
|
className: nN.title,
|
|
46535
46538
|
component: "span",
|
|
46536
|
-
children:
|
|
46537
|
-
}),
|
|
46539
|
+
children: h
|
|
46540
|
+
}), g ? /* @__PURE__ */ (0, W.jsx)(Jf, {
|
|
46538
46541
|
className: nN.subtitle,
|
|
46539
46542
|
component: "span",
|
|
46540
|
-
children:
|
|
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:
|
|
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.
|
|
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":
|
|
46568
|
-
children:
|
|
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:
|
|
46580
|
+
comparisonModal: m,
|
|
46578
46581
|
fillHeight: !0,
|
|
46579
46582
|
isBusy: r,
|
|
46580
46583
|
onClose: t
|
|
46581
46584
|
})
|
|
46582
46585
|
})
|
|
46583
|
-
}) :
|
|
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:
|
|
46594
|
+
children: _
|
|
46592
46595
|
})
|
|
46593
46596
|
}) : null
|
|
46594
46597
|
})
|
|
46595
46598
|
})
|
|
46596
|
-
}),
|
|
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
|
});
|