bstp-agent-widget 0.2.69 → 0.2.71
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 +17 -12
- 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 +2 -23
package/dist/agent-widget.js
CHANGED
|
@@ -23917,10 +23917,10 @@ function UO(e = {}) {
|
|
|
23917
23917
|
};
|
|
23918
23918
|
}
|
|
23919
23919
|
var WO = {
|
|
23920
|
-
root: "
|
|
23921
|
-
button: "
|
|
23922
|
-
icon: "
|
|
23923
|
-
label: "
|
|
23920
|
+
root: "_root_qxd5o_1",
|
|
23921
|
+
button: "_button_qxd5o_7",
|
|
23922
|
+
icon: "_icon_qxd5o_28",
|
|
23923
|
+
label: "_label_qxd5o_34"
|
|
23924
23924
|
};
|
|
23925
23925
|
//#endregion
|
|
23926
23926
|
//#region src/components/AgentChat/AgentChatFab.tsx
|
|
@@ -29075,17 +29075,22 @@ function UF({ ui: e }) {
|
|
|
29075
29075
|
if (e === null ? t.style.removeProperty("--agent-widget-panel-width") : t.style.setProperty("--agent-widget-panel-width", `${e}px`), typeof window > "u") return;
|
|
29076
29076
|
if (e === null) {
|
|
29077
29077
|
if (P.current) {
|
|
29078
|
-
let { element: e, inlinePaddingBefore: t
|
|
29079
|
-
e.style.paddingRight = t,
|
|
29078
|
+
let { element: e, inlinePaddingBefore: t } = P.current;
|
|
29079
|
+
e.style.paddingRight = t, P.current = null;
|
|
29080
29080
|
}
|
|
29081
29081
|
return;
|
|
29082
29082
|
}
|
|
29083
|
-
|
|
29084
|
-
|
|
29085
|
-
|
|
29086
|
-
|
|
29087
|
-
|
|
29088
|
-
|
|
29083
|
+
if (!P.current || !document.contains(P.current.element)) {
|
|
29084
|
+
let e = F();
|
|
29085
|
+
if (!e) return;
|
|
29086
|
+
P.current = {
|
|
29087
|
+
element: e,
|
|
29088
|
+
inlinePaddingBefore: e.style.paddingRight,
|
|
29089
|
+
widthApplied: 0
|
|
29090
|
+
};
|
|
29091
|
+
}
|
|
29092
|
+
let { element: n, inlinePaddingBefore: r, widthApplied: i } = P.current;
|
|
29093
|
+
e !== i && (n.style.paddingRight = r, n.style.paddingRight = `calc(${r || "0px"} + ${e}px)`, P.current.widthApplied = e);
|
|
29089
29094
|
}, [F]), te = v(!1), I = () => {
|
|
29090
29095
|
D && A(), j(), g(d);
|
|
29091
29096
|
}, L = () => {
|