bstp-agent-widget 0.2.54 → 0.2.56
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 +7 -2
- package/dist/agent-widget.js.map +1 -1
- package/package.json +1 -1
package/dist/agent-widget.js
CHANGED
|
@@ -23767,8 +23767,13 @@ function XO({ opened: e, onClose: t, zIndex: n, withinPortal: r, withOverlay: i
|
|
|
23767
23767
|
}
|
|
23768
23768
|
return e[0] ?? null;
|
|
23769
23769
|
}, r = () => {
|
|
23770
|
-
let e = n()
|
|
23771
|
-
|
|
23770
|
+
let e = n();
|
|
23771
|
+
if (!e) {
|
|
23772
|
+
t.style.setProperty("--agent-widget-drawer-width", `${Math.max(0, Math.floor(j))}px`);
|
|
23773
|
+
return;
|
|
23774
|
+
}
|
|
23775
|
+
let r = e.getBoundingClientRect(), i = document.documentElement.clientWidth, a = Math.max(0, Math.ceil(i - r.left));
|
|
23776
|
+
t.style.setProperty("--agent-widget-drawer-width", `${a}px`);
|
|
23772
23777
|
};
|
|
23773
23778
|
r();
|
|
23774
23779
|
let i = n(), a = typeof ResizeObserver < "u" ? new ResizeObserver(() => {
|