corp-chat-library-antd-react-socket 1.2.6 → 1.2.7

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -10497,7 +10497,7 @@ const Mg = ({ open: e, onOk: t, onCancel: r, positionCorner: n }) => {
10497
10497
  console.log(`/api/sms/read/${X}`);
10498
10498
  }, [h, g, v, P, ye]);
10499
10499
  return de(() => {
10500
- if (We && s && u && f && h) {
10500
+ if (We && s && u && f && h && g) {
10501
10501
  const q = setTimeout(() => {
10502
10502
  we(), Ke(null).then();
10503
10503
  }, 0);
@@ -10511,7 +10511,7 @@ const Mg = ({ open: e, onOk: t, onCancel: r, positionCorner: n }) => {
10511
10511
  hasBFF_PORT: !!f,
10512
10512
  hasCSRF_TOKEN: !!h
10513
10513
  });
10514
- }, [s, u, f, h, We, we, Ke]), de(() => {
10514
+ }, [s, u, f, h, We, we, Ke, g]), de(() => {
10515
10515
  W.current = B;
10516
10516
  }, [B]), de(() => {
10517
10517
  k.current = I;
@@ -10591,7 +10591,7 @@ const Mg = ({ open: e, onOk: t, onCancel: r, positionCorner: n }) => {
10591
10591
  } = rr();
10592
10592
  return de(() => {
10593
10593
  let g = !1, y = !1, E = !1, C = !1, O = !1;
10594
- e && i(e), e && (g = !0), t && t?.HTTP_HOST && o(t?.HTTP_HOST), t && t?.CSRF_TOKEN && s(t?.CSRF_TOKEN), t && t?.PRODMODE && c(t?.PRODMODE), t && t?.BFF_PORT && l(t?.BFF_PORT), t && t?.HTTP_HOST && t?.CSRF_TOKEN && t?.PRODMODE && t?.BFF_PORT && (y = !0), r && r?.fetchChatsListPath && u(r?.fetchChatsListPath), r && r?.fetchChatMessagesPath && d(r?.fetchChatMessagesPath), r && r?.sendSmsPath && h(r?.sendSmsPath), r && r?.markMessagesAsReadPath && p(r?.markMessagesAsReadPath), r && r?.fetchChatsListPath && r?.fetchChatMessagesPath && r?.sendSmsPath && r?.markMessagesAsReadPath && (E = !0), n && n?.subscribeToChat && v(n?.subscribeToChat), n && n?.subscribeToChat && (C = !0), a && a?.newSms && m(a?.newSms), a && a?.updateSms && f(a?.updateSms), a && a?.newSms && a?.updateSms && (O = !0), g && y && E && C && O && S(!0);
10594
+ e && i(e), e && (g = !0), t && t?.HTTP_HOST && o(t?.HTTP_HOST), t && t?.CSRF_TOKEN && s(t?.CSRF_TOKEN), t && typeof t?.PRODMODE == "boolean" && c(t?.PRODMODE), t && typeof t?.BFF_PORT == "number" && l(t?.BFF_PORT), t && t?.HTTP_HOST && t?.CSRF_TOKEN && typeof t?.PRODMODE == "boolean" && typeof t?.BFF_PORT == "number" && (y = !0), r && r?.fetchChatsListPath && u(r?.fetchChatsListPath), r && r?.fetchChatMessagesPath && d(r?.fetchChatMessagesPath), r && r?.sendSmsPath && h(r?.sendSmsPath), r && r?.markMessagesAsReadPath && p(r?.markMessagesAsReadPath), r && r?.fetchChatsListPath && r?.fetchChatMessagesPath && r?.sendSmsPath && r?.markMessagesAsReadPath && (E = !0), n && n?.subscribeToChat && v(n?.subscribeToChat), n && n?.subscribeToChat && (C = !0), a && a?.newSms && m(a?.newSms), a && a?.updateSms && f(a?.updateSms), a && a?.newSms && a?.updateSms && (O = !0), g && y && E && C && O && S(!0);
10595
10595
  }, [
10596
10596
  e,
10597
10597
  t,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "corp-chat-library-antd-react-socket",
3
3
  "description": "React chat component with Ant Design and Socket.io support",
4
- "version": "1.2.6",
4
+ "version": "1.2.7",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",