bstp-agent-widget 0.2.71 → 0.2.73
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 +20 -15
- 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
|
@@ -23917,23 +23917,28 @@ function UO(e = {}) {
|
|
|
23917
23917
|
};
|
|
23918
23918
|
}
|
|
23919
23919
|
var WO = {
|
|
23920
|
-
root: "
|
|
23921
|
-
button: "
|
|
23922
|
-
icon: "
|
|
23923
|
-
label: "
|
|
23920
|
+
root: "_root_1r0du_1",
|
|
23921
|
+
button: "_button_1r0du_5",
|
|
23922
|
+
icon: "_icon_1r0du_22",
|
|
23923
|
+
label: "_label_1r0du_28"
|
|
23924
23924
|
};
|
|
23925
23925
|
//#endregion
|
|
23926
23926
|
//#region src/components/AgentChat/AgentChatFab.tsx
|
|
23927
23927
|
function GO({ onClick: e, zIndex: t, position: n, color: r, label: i }) {
|
|
23928
|
-
let { handlePointerDown: a, style: o } = UO({ skipSelector: "" }), { transform: s, cursor: c, touchAction: l } = o, u =
|
|
23928
|
+
let { handlePointerDown: a, style: o } = UO({ skipSelector: "" }), { transform: s, cursor: c, touchAction: l } = o, u = _(() => ({
|
|
23929
|
+
transform: s,
|
|
23930
|
+
touchAction: l,
|
|
23931
|
+
zIndex: t,
|
|
23932
|
+
...n
|
|
23933
|
+
}), [
|
|
23934
|
+
n,
|
|
23935
|
+
l,
|
|
23936
|
+
s,
|
|
23937
|
+
t
|
|
23938
|
+
]), d = r ? r.includes("linear-gradient") ? r : `linear-gradient(135deg, ${r}, ${r})` : void 0;
|
|
23929
23939
|
return /* @__PURE__ */ T("div", {
|
|
23930
23940
|
className: WO.root,
|
|
23931
|
-
style:
|
|
23932
|
-
transform: s,
|
|
23933
|
-
touchAction: l,
|
|
23934
|
-
zIndex: t,
|
|
23935
|
-
...n
|
|
23936
|
-
},
|
|
23941
|
+
style: u,
|
|
23937
23942
|
children: /* @__PURE__ */ T(_v, {
|
|
23938
23943
|
label: "Open agent widget",
|
|
23939
23944
|
position: "left",
|
|
@@ -23941,8 +23946,8 @@ function GO({ onClick: e, zIndex: t, position: n, color: r, label: i }) {
|
|
|
23941
23946
|
type: "button",
|
|
23942
23947
|
onClick: e,
|
|
23943
23948
|
onPointerDown: a,
|
|
23944
|
-
style:
|
|
23945
|
-
background:
|
|
23949
|
+
style: d ? {
|
|
23950
|
+
background: d,
|
|
23946
23951
|
cursor: c ?? "pointer"
|
|
23947
23952
|
} : { cursor: c ?? "pointer" },
|
|
23948
23953
|
className: WO.button,
|
|
@@ -29048,8 +29053,8 @@ var BF = {
|
|
|
29048
29053
|
function UF({ ui: e }) {
|
|
29049
29054
|
RF();
|
|
29050
29055
|
let t = e?.panelWidth ?? 420, n = e?.panelHeight ?? "100%", r = e?.panelHeaderHeight ?? 56, i = e?.zIndex ?? VF, a = {
|
|
29051
|
-
bottom: e?.fabBottomOffset ?? BF.bottom,
|
|
29052
|
-
right: e?.fabRightOffset ?? BF.right
|
|
29056
|
+
...typeof e?.fabTopOffset == "number" ? { top: e.fabTopOffset } : { bottom: e?.fabBottomOffset ?? BF.bottom },
|
|
29057
|
+
...typeof e?.fabLeftOffset == "number" ? { left: e.fabLeftOffset } : { right: e?.fabRightOffset ?? BF.right }
|
|
29053
29058
|
}, { isOpen: o, open: s, close: c } = zF({
|
|
29054
29059
|
defaultOpen: !1,
|
|
29055
29060
|
persist: !0
|