bstp-agent-widget 0.2.47 → 0.2.48
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 +47 -32
- package/dist/agent-widget.js.map +1 -1
- package/dist/bstp-agent-widget.css +1 -1
- package/package.json +1 -1
- package/src/lib/index.d.ts +1 -0
package/dist/agent-widget.js
CHANGED
|
@@ -15691,12 +15691,15 @@ var ub = ({ ...e }) => {
|
|
|
15691
15691
|
};
|
|
15692
15692
|
ub.Body = cb, ub.Footer = lb;
|
|
15693
15693
|
var db = {
|
|
15694
|
-
root: "
|
|
15695
|
-
inner: "
|
|
15696
|
-
content: "
|
|
15697
|
-
header: "
|
|
15698
|
-
|
|
15699
|
-
|
|
15694
|
+
root: "_root_1i7u8_1",
|
|
15695
|
+
inner: "_inner_1i7u8_6",
|
|
15696
|
+
content: "_content_1i7u8_12",
|
|
15697
|
+
header: "_header_1i7u8_20",
|
|
15698
|
+
headerMeta: "_headerMeta_1i7u8_32",
|
|
15699
|
+
statusDot: "_statusDot_1i7u8_39",
|
|
15700
|
+
topSubHeader: "_topSubHeader_1i7u8_46",
|
|
15701
|
+
body: "_body_1i7u8_57",
|
|
15702
|
+
title: "_title_1i7u8_62"
|
|
15700
15703
|
};
|
|
15701
15704
|
//#endregion
|
|
15702
15705
|
//#region node_modules/marked/lib/marked.esm.js
|
|
@@ -23748,7 +23751,7 @@ function YO({ ...e }) {
|
|
|
23748
23751
|
//#endregion
|
|
23749
23752
|
//#region src/components/AgentChat/AgentChatDrawer.tsx
|
|
23750
23753
|
function XO({ opened: e, onClose: t, zIndex: n, withinPortal: r, withOverlay: i = !0, messages: a, composerText: o, onComposerTextChange: s, isLoading: c, error: l, canSend: u, onSubmit: d, isListening: p, isVoiceSupported: m, onToggleVoice: h, drawerTitle: g, runtimeInfo: _, scrollViewportRef: v, drawerDraggable: y, drawerResizableWidth: b, drawerResizableHeight: x, drawerBaseWidth: S = 420, topOffset: C = 0, drawerRightOffset: D = 0, drawerBorderRadius: O = 0, drawerShadow: k = !1 }) {
|
|
23751
|
-
let A = Math.max(280, S + b.offset);
|
|
23754
|
+
let A = Math.max(280, S + b.offset), j = _.hasCustomerToken && _.hasGenaiToken;
|
|
23752
23755
|
return f(() => {
|
|
23753
23756
|
if (typeof document > "u") return;
|
|
23754
23757
|
let t = document.documentElement;
|
|
@@ -23789,30 +23792,42 @@ function XO({ opened: e, onClose: t, zIndex: n, withinPortal: r, withOverlay: i
|
|
|
23789
23792
|
borderRadius: O,
|
|
23790
23793
|
boxShadow: k ? "0 16px 40px rgba(15, 23, 42, 0.24)" : "none"
|
|
23791
23794
|
} },
|
|
23792
|
-
title: /* @__PURE__ */
|
|
23793
|
-
|
|
23794
|
-
|
|
23795
|
-
|
|
23796
|
-
|
|
23797
|
-
|
|
23798
|
-
|
|
23799
|
-
|
|
23800
|
-
|
|
23801
|
-
|
|
23802
|
-
|
|
23803
|
-
|
|
23804
|
-
|
|
23805
|
-
|
|
23806
|
-
children: _.hasCustomerToken ? "cust✓" : "cust✗"
|
|
23807
|
-
}),
|
|
23808
|
-
/* @__PURE__ */ T(Xd, {
|
|
23809
|
-
size: "xs",
|
|
23810
|
-
c: _.hasGenaiToken ? "green" : "red",
|
|
23811
|
-
children: _.hasGenaiToken ? "genai✓" : "genai✗"
|
|
23812
|
-
})
|
|
23813
|
-
]
|
|
23814
|
-
}) }),
|
|
23795
|
+
title: /* @__PURE__ */ E(Y, { children: [/* @__PURE__ */ T(Xd, {
|
|
23796
|
+
className: db.title,
|
|
23797
|
+
children: g
|
|
23798
|
+
}), /* @__PURE__ */ E(Y, {
|
|
23799
|
+
className: db.headerMeta,
|
|
23800
|
+
children: [/* @__PURE__ */ T(Y, {
|
|
23801
|
+
className: db.statusDot,
|
|
23802
|
+
style: { background: j ? "#22c55e" : "#ef4444" }
|
|
23803
|
+
}), /* @__PURE__ */ E(Xd, {
|
|
23804
|
+
size: "10",
|
|
23805
|
+
c: "dimmed",
|
|
23806
|
+
children: [j ? "Online" : "Offline", " · Billing Intelligence"]
|
|
23807
|
+
})]
|
|
23808
|
+
})] }),
|
|
23815
23809
|
children: [
|
|
23810
|
+
/* @__PURE__ */ E(Y, {
|
|
23811
|
+
className: db.topSubHeader,
|
|
23812
|
+
children: [/* @__PURE__ */ T(Xd, {
|
|
23813
|
+
size: "10",
|
|
23814
|
+
fw: 700,
|
|
23815
|
+
c: "white",
|
|
23816
|
+
children: "Exceeder SelfCare agent"
|
|
23817
|
+
}), /* @__PURE__ */ E(kl, {
|
|
23818
|
+
gap: 8,
|
|
23819
|
+
wrap: "nowrap",
|
|
23820
|
+
children: [/* @__PURE__ */ T(Xd, {
|
|
23821
|
+
size: "10",
|
|
23822
|
+
c: _.hasCustomerToken ? "white" : "rgba(255,255,255,0.65)",
|
|
23823
|
+
children: "Billing Dispute"
|
|
23824
|
+
}), /* @__PURE__ */ T(Xd, {
|
|
23825
|
+
size: "10",
|
|
23826
|
+
c: _.hasGenaiToken ? "white" : "rgba(255,255,255,0.65)",
|
|
23827
|
+
children: "Active"
|
|
23828
|
+
})]
|
|
23829
|
+
})]
|
|
23830
|
+
}),
|
|
23816
23831
|
/* @__PURE__ */ E(ub.Body, { children: [l && /* @__PURE__ */ T(Xd, {
|
|
23817
23832
|
size: "xs",
|
|
23818
23833
|
c: "red",
|
|
@@ -29136,8 +29151,8 @@ function QF({ ui: e }) {
|
|
|
29136
29151
|
onTextChange: h
|
|
29137
29152
|
}), ee = _(() => /* @__PURE__ */ T(Xd, {
|
|
29138
29153
|
fw: 800,
|
|
29139
|
-
children: "Agent Chat"
|
|
29140
|
-
}), []), te = async () => {
|
|
29154
|
+
children: e?.drawerTitle ?? e?.fabButtonLabel ?? "Agent Chat"
|
|
29155
|
+
}), [e?.drawerTitle, e?.fabButtonLabel]), te = async () => {
|
|
29141
29156
|
n(), await C(), await b();
|
|
29142
29157
|
};
|
|
29143
29158
|
return /* @__PURE__ */ E(w, { children: [!t && /* @__PURE__ */ T(nk, {
|