padorixnpm 0.0.62 → 0.0.63

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.
@@ -1 +1 @@
1
- {"version":3,"file":"chat-float-container.d.ts","sourceRoot":"","sources":["../../../lib/chats/chatScreen/chat-float-container.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AASzB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAEtD,KAAK,KAAK,GAAG;IACT,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,kBAAkB,CAAA;CAClC,CAAA;AACD,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,KAAK,EAAE,KAAK,4BAyNtD"}
1
+ {"version":3,"file":"chat-float-container.d.ts","sourceRoot":"","sources":["../../../lib/chats/chatScreen/chat-float-container.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AASzB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAEtD,KAAK,KAAK,GAAG;IACT,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,kBAAkB,CAAA;CAClC,CAAA;AACD,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,KAAK,EAAE,KAAK,4BAgNtD"}
@@ -2158,7 +2158,7 @@ function vt(e) {
2158
2158
  }, [x, b]), c.useEffect(() => {
2159
2159
  h.current.clear(), g.current = null;
2160
2160
  }, [r]), c.useEffect(() => {
2161
- if (z) {
2161
+ if (z.connected) {
2162
2162
  let t = {
2163
2163
  workspaceId: e.workspaceId,
2164
2164
  origin: window.location.origin,
@@ -2176,26 +2176,13 @@ function vt(e) {
2176
2176
  d,
2177
2177
  f,
2178
2178
  u
2179
- ]), c.useEffect(() => (z.on(B.connected, S), z.on(B.check_workspace_origin, w), z.on(B.error, y), z.on("connect_error", y), ue(), z.connected && z.emit(B.check_workspace_origin, {
2180
- workspaceId: e.workspaceId,
2181
- origin: window.location.origin,
2182
- currentPage: r,
2183
- userTeam: navigator.userAgent,
2184
- visitorId: u,
2185
- referrerUrl: d,
2186
- utmSource: f
2187
- }), () => {
2179
+ ]), c.useEffect(() => (z.on(B.connected, S), z.on(B.check_workspace_origin, w), z.on(B.error, y), z.on("connect_error", y), ue(), () => {
2188
2180
  z.off(B.connected, S), z.off(B.check_workspace_origin, w), z.off(B.error, y), z.off("connect_error", y);
2189
2181
  }), [
2190
2182
  S,
2191
2183
  w,
2192
- y,
2193
- e.workspaceId,
2194
- r,
2195
- u,
2196
- d,
2197
- f
2198
- ]), e.displayMode === "inline" ? null : /* @__PURE__ */ O("div", {
2184
+ y
2185
+ ]), e.displayMode === "inline" || !n?.widget ? null : /* @__PURE__ */ O("div", {
2199
2186
  onClick: v,
2200
2187
  style: {
2201
2188
  ..._?.position === "left" ? { left: `${_.sidePosition ?? 20}px` } : { right: `${_?.sidePosition ?? 20}px` },