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