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.
@@ -23917,10 +23917,10 @@ function UO(e = {}) {
23917
23917
  };
23918
23918
  }
23919
23919
  var WO = {
23920
- root: "_root_76f4f_2",
23921
- button: "_button_76f4f_7",
23922
- icon: "_icon_76f4f_24",
23923
- label: "_label_76f4f_30"
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, inlineWidthBefore: n } = P.current;
29079
- e.style.paddingRight = t, e.style.width = n, P.current = null;
29078
+ let { element: e, inlinePaddingBefore: t } = P.current;
29079
+ e.style.paddingRight = t, P.current = null;
29080
29080
  }
29081
29081
  return;
29082
29082
  }
29083
- let n = P.current?.element ?? null;
29084
- (!n || !document.contains(n)) && (n = F(), P.current = null), n && (P.current ||= {
29085
- element: n,
29086
- inlinePaddingBefore: n.style.paddingRight,
29087
- inlineWidthBefore: n.style.width
29088
- }, n.style.paddingRight = "", n.style.width = `max(0px, calc(100vw - ${e}px))`);
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 = () => {