bstp-agent-widget 0.2.60 → 0.2.61
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/agent-widget.js +28 -16
- package/dist/agent-widget.js.map +1 -1
- package/dist/bstp-agent-widget.css +1 -1
- package/package.json +1 -1
package/dist/agent-widget.js
CHANGED
|
@@ -23971,27 +23971,33 @@ function XO({ opened: e, onClose: t, zIndex: n, withinPortal: r, withOverlay: i
|
|
|
23971
23971
|
}) });
|
|
23972
23972
|
}
|
|
23973
23973
|
var ZO = {
|
|
23974
|
-
root: "
|
|
23975
|
-
|
|
23976
|
-
|
|
23977
|
-
|
|
23978
|
-
|
|
23979
|
-
|
|
23980
|
-
|
|
23981
|
-
|
|
23974
|
+
root: "_root_rztv1_1",
|
|
23975
|
+
resizeHandle: "_resizeHandle_rztv1_11",
|
|
23976
|
+
header: "_header_rztv1_24",
|
|
23977
|
+
headerMeta: "_headerMeta_rztv1_36",
|
|
23978
|
+
statusDot: "_statusDot_rztv1_43",
|
|
23979
|
+
topSubHeader: "_topSubHeader_rztv1_50",
|
|
23980
|
+
body: "_body_rztv1_61",
|
|
23981
|
+
title: "_title_rztv1_69",
|
|
23982
|
+
footer: "_footer_rztv1_76"
|
|
23982
23983
|
};
|
|
23983
23984
|
//#endregion
|
|
23984
23985
|
//#region src/components/AgentChat/AgentChatPanel.tsx
|
|
23985
|
-
function QO({ visible: e, onClose: t, messages: n, composerText: r, onComposerTextChange: i, isLoading: a, error: o, canSend: s, onSubmit: c, isListening: l, isVoiceSupported: u, onToggleVoice: d, panelTitle: f, runtimeInfo: p, scrollViewportRef: m, panelWidth: h = 420, panelHeight: g = "100%", panelHeaderHeight: _ = 56 }) {
|
|
23986
|
-
let v = p.hasCustomerToken && p.hasGenaiToken;
|
|
23986
|
+
function QO({ visible: e, onClose: t, messages: n, composerText: r, onComposerTextChange: i, isLoading: a, error: o, canSend: s, onSubmit: c, isListening: l, isVoiceSupported: u, onToggleVoice: d, panelTitle: f, runtimeInfo: p, scrollViewportRef: m, panelWidth: h = 420, panelHeight: g = "100%", panelHeaderHeight: _ = 56, panelResizableWidth: v }) {
|
|
23987
|
+
let y = v ? Math.max(280, h + v.offset) : h, b = p.hasCustomerToken && p.hasGenaiToken;
|
|
23987
23988
|
return e ? /* @__PURE__ */ E(Y, {
|
|
23988
23989
|
className: ZO.root,
|
|
23989
23990
|
style: {
|
|
23990
|
-
width:
|
|
23991
|
+
width: y,
|
|
23991
23992
|
height: g,
|
|
23992
23993
|
"--agent-widget-panel-header-height": `${_}px`
|
|
23993
23994
|
},
|
|
23994
23995
|
children: [
|
|
23996
|
+
v && /* @__PURE__ */ T(Y, {
|
|
23997
|
+
onPointerDown: v.handlePointerDown,
|
|
23998
|
+
className: ZO.resizeHandle,
|
|
23999
|
+
style: v.style
|
|
24000
|
+
}),
|
|
23995
24001
|
/* @__PURE__ */ E(Y, {
|
|
23996
24002
|
className: ZO.header,
|
|
23997
24003
|
children: [/* @__PURE__ */ E(Y, { children: [/* @__PURE__ */ T(Xd, {
|
|
@@ -24001,11 +24007,11 @@ function QO({ visible: e, onClose: t, messages: n, composerText: r, onComposerTe
|
|
|
24001
24007
|
className: ZO.headerMeta,
|
|
24002
24008
|
children: [/* @__PURE__ */ T(Y, {
|
|
24003
24009
|
className: ZO.statusDot,
|
|
24004
|
-
style: { background:
|
|
24010
|
+
style: { background: b ? "#22c55e" : "#ef4444" }
|
|
24005
24011
|
}), /* @__PURE__ */ E(Xd, {
|
|
24006
24012
|
size: "10",
|
|
24007
24013
|
c: "dimmed",
|
|
24008
|
-
children: [
|
|
24014
|
+
children: [b ? "Online" : "Offline", " · Billing Intelligence"]
|
|
24009
24015
|
})]
|
|
24010
24016
|
})] }), /* @__PURE__ */ T(yl, {
|
|
24011
24017
|
variant: "default",
|
|
@@ -29351,9 +29357,14 @@ function eI({ ui: e }) {
|
|
|
29351
29357
|
}, oe = () => {
|
|
29352
29358
|
ee && L(), r();
|
|
29353
29359
|
};
|
|
29354
|
-
|
|
29360
|
+
f(() => {
|
|
29355
29361
|
i === "panel" && !t && re();
|
|
29356
|
-
}, [i])
|
|
29362
|
+
}, [i]);
|
|
29363
|
+
let z = UF({
|
|
29364
|
+
axis: "x",
|
|
29365
|
+
direction: -1
|
|
29366
|
+
});
|
|
29367
|
+
return i === "panel" ? /* @__PURE__ */ T(QO, {
|
|
29357
29368
|
visible: !0,
|
|
29358
29369
|
onClose: oe,
|
|
29359
29370
|
messages: y,
|
|
@@ -29371,7 +29382,8 @@ function eI({ ui: e }) {
|
|
|
29371
29382
|
scrollViewportRef: F,
|
|
29372
29383
|
panelWidth: h,
|
|
29373
29384
|
panelHeight: g,
|
|
29374
|
-
panelHeaderHeight: m
|
|
29385
|
+
panelHeaderHeight: m,
|
|
29386
|
+
panelResizableWidth: z
|
|
29375
29387
|
}) : /* @__PURE__ */ E(w, { children: [!t && /* @__PURE__ */ T(ik, {
|
|
29376
29388
|
onClick: () => void re(),
|
|
29377
29389
|
zIndex: a,
|