corp-chat-library-antd-react-socket 1.1.2 → 1.1.3
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.
|
@@ -31,7 +31,6 @@ interface ChatSocketContextType {
|
|
|
31
31
|
SET_PRODMODE: (mode: boolean) => void;
|
|
32
32
|
SET_BFF_PORT: (port: number) => void;
|
|
33
33
|
PROD_AXIOS_INSTANCE: AxiosInstance | null;
|
|
34
|
-
SET_PROD_AXIOS_INSTANCE: (instance: AxiosInstance) => void;
|
|
35
34
|
setFetchChatsListPath: (path: string | null) => void;
|
|
36
35
|
setFetchChatMessagesPath: (path: string | null) => void;
|
|
37
36
|
setSendSmsPath: (path: string | null) => void;
|
package/dist/index.js
CHANGED
|
@@ -8649,7 +8649,7 @@ const Mt = /* @__PURE__ */ ii(fh), Us = Zr(void 0), gh = ({ children: e }) => {
|
|
|
8649
8649
|
baseURL: c,
|
|
8650
8650
|
timeout: 3e5
|
|
8651
8651
|
});
|
|
8652
|
-
p(q);
|
|
8652
|
+
console.log(q), p(q);
|
|
8653
8653
|
}, [c]);
|
|
8654
8654
|
const Ae = Ke(async (q = null) => {
|
|
8655
8655
|
if (console.log("fetchChatsList"), console.log("PROD_AXIOS_INSTANCE:", y), console.log("post method exists:", y?.post), console.log("typeof post:", typeof y?.post), de(!0), m)
|
|
@@ -8852,7 +8852,6 @@ const Mt = /* @__PURE__ */ ii(fh), Us = Zr(void 0), gh = ({ children: e }) => {
|
|
|
8852
8852
|
SET_CSRF_TOKEN: g,
|
|
8853
8853
|
SET_PRODMODE: v,
|
|
8854
8854
|
SET_BFF_PORT: f,
|
|
8855
|
-
SET_PROD_AXIOS_INSTANCE: p,
|
|
8856
8855
|
setFetchChatsListPath: O,
|
|
8857
8856
|
setFetchChatMessagesPath: _,
|
|
8858
8857
|
setSendSmsPath: P,
|
|
@@ -9722,20 +9721,19 @@ const Th = ({ open: e, onOk: t, onCancel: r, positionCorner: n }) => {
|
|
|
9722
9721
|
SET_CSRF_TOKEN: s,
|
|
9723
9722
|
SET_PRODMODE: l,
|
|
9724
9723
|
SET_BFF_PORT: c,
|
|
9725
|
-
|
|
9726
|
-
|
|
9727
|
-
|
|
9728
|
-
|
|
9729
|
-
|
|
9730
|
-
|
|
9731
|
-
|
|
9732
|
-
|
|
9733
|
-
setInit: p
|
|
9724
|
+
setFetchChatsListPath: u,
|
|
9725
|
+
setFetchChatMessagesPath: d,
|
|
9726
|
+
setSendSmsPath: g,
|
|
9727
|
+
setMarkMessagesAsReadPath: m,
|
|
9728
|
+
setSubscribeToChat: v,
|
|
9729
|
+
setNewSms: h,
|
|
9730
|
+
setUpdateSms: f,
|
|
9731
|
+
setInit: y
|
|
9734
9732
|
} = tr();
|
|
9735
9733
|
return fe(() => {
|
|
9736
9734
|
console.log("CORP-CHAT userdata", e), console.log("CORP-CHAT httpParams", t), console.log("CORP-CHAT fetchParams", r), console.log("CORP-CHAT socketSubscribe", n), console.log("CORP-CHAT socketActions", a);
|
|
9737
|
-
let
|
|
9738
|
-
e && o(e), e && (
|
|
9735
|
+
let p = !1, S = !1, O = !1, C = !1, _ = !1;
|
|
9736
|
+
e && o(e), e && (p = !0), t && t?.HTTP_HOST && i(t?.HTTP_HOST), t && t?.CSRF_TOKEN && s(t?.CSRF_TOKEN), t && t?.PRODMODE && l(t?.PRODMODE), t && t?.BFF_PORT && c(t?.BFF_PORT), t && t?.HTTP_HOST && t?.CSRF_TOKEN && t?.PRODMODE && t?.BFF_PORT && (S = !0), r && r?.fetchChatsListPath && u(r?.fetchChatsListPath), r && r?.fetchChatMessagesPath && d(r?.fetchChatMessagesPath), r && r?.sendSmsPath && g(r?.sendSmsPath), r && r?.markMessagesAsReadPath && m(r?.markMessagesAsReadPath), r && r?.fetchChatsListPath && r?.fetchChatMessagesPath && r?.sendSmsPath && r?.markMessagesAsReadPath && (O = !0), n && n?.subscribeToChat && v(n?.subscribeToChat), n && n?.subscribeToChat && (C = !0), a && a?.newSms && h(a?.newSms), a && a?.updateSms && f(a?.updateSms), a && a?.newSms && a?.updateSms && (_ = !0), p && S && O && C && _ && y(!0);
|
|
9739
9737
|
}, [
|
|
9740
9738
|
e,
|
|
9741
9739
|
t,
|
|
@@ -9754,8 +9752,7 @@ const Th = ({ open: e, onOk: t, onCancel: r, positionCorner: n }) => {
|
|
|
9754
9752
|
v,
|
|
9755
9753
|
h,
|
|
9756
9754
|
f,
|
|
9757
|
-
y
|
|
9758
|
-
p
|
|
9755
|
+
y
|
|
9759
9756
|
]), /* @__PURE__ */ N(Ph, { userdata: e });
|
|
9760
9757
|
}, Bh = (e) => {
|
|
9761
9758
|
const {
|
package/package.json
CHANGED