rc-lib-ui 1.1.49 → 1.1.53

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,20 +1,20 @@
1
1
  import { UseRequestSocketOptions } from './useRequestSocketApi.types';
2
2
  import { BasePayloadSocket } from '../../SocketApi.types';
3
3
  export declare const useRequestSocketApi: <P extends BasePayloadSocket, Data extends BasePayloadSocket>(payload: P, options?: UseRequestSocketOptions<Data>) => {
4
+ refetch: () => Promise<void>;
5
+ abort: () => void;
4
6
  data: Data | null;
5
- error: Error | null;
7
+ error: string;
6
8
  isLoading: boolean;
7
9
  isError: boolean;
8
10
  isSuccess: boolean;
9
- refetch: () => Promise<void>;
10
- abort: () => void;
11
11
  };
12
12
  export declare const createRequestSocketApi: <P extends BasePayloadSocket, D extends BasePayloadSocket>(p: P, d?: UseRequestSocketOptions<D>) => {
13
+ refetch: () => Promise<void>;
14
+ abort: () => void;
13
15
  data: D | null;
14
- error: Error | null;
16
+ error: string;
15
17
  isLoading: boolean;
16
18
  isError: boolean;
17
19
  isSuccess: boolean;
18
- refetch: () => Promise<void>;
19
- abort: () => void;
20
20
  };
@@ -2,11 +2,11 @@ export interface UseRequestSocketOptions<Data = any> {
2
2
  skip?: boolean;
3
3
  timeout?: number;
4
4
  onSuccess?: (data: Data) => void;
5
- onError?: (error: Error) => void;
5
+ onError?: (error: string) => void;
6
6
  }
7
7
  export interface ResultUseRequestSocketApi<Data = any> {
8
8
  data: Data | null;
9
- error: Error | null;
9
+ error: string;
10
10
  isLoading: boolean;
11
11
  isError: boolean;
12
12
  isSuccess: boolean;
package/dist/socket.js CHANGED
@@ -1,33 +1,33 @@
1
- import './socket.css';var z = Object.defineProperty;
2
- var G = (o, t, e) => t in o ? z(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
3
- var r = (o, t, e) => G(o, typeof t != "symbol" ? t + "" : t, e);
4
- import { jsx as M } from "react/jsx-runtime";
5
- import k, { useState as A, useRef as $, useCallback as q, useEffect as N } from "react";
6
- import { styled as x, Collapse as V } from "@mui/material";
7
- import U from "classnames";
8
- const T = (o) => {
1
+ import './socket.css';var j = Object.defineProperty;
2
+ var J = (n, t, e) => t in n ? j(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
+ var r = (n, t, e) => J(n, typeof t != "symbol" ? t + "" : t, e);
4
+ import { jsx as D } from "react/jsx-runtime";
5
+ import k, { useState as z, useRef as x, useCallback as N, useEffect as O } from "react";
6
+ import { styled as M, Collapse as G } from "@mui/material";
7
+ import W from "classnames";
8
+ const B = (n) => {
9
9
  let t;
10
- const e = /* @__PURE__ */ new Set(), n = (u, h) => {
10
+ const e = /* @__PURE__ */ new Set(), o = (u, h) => {
11
11
  const f = typeof u == "function" ? u(t) : u;
12
12
  if (!Object.is(f, t)) {
13
- const d = t;
14
- t = h ?? (typeof f != "object" || f === null) ? f : Object.assign({}, t, f), e.forEach((C) => C(t, d));
13
+ const v = t;
14
+ t = h ?? (typeof f != "object" || f === null) ? f : Object.assign({}, t, f), e.forEach((b) => b(t, v));
15
15
  }
16
- }, i = () => t, l = { setState: n, getState: i, getInitialState: () => S, subscribe: (u) => (e.add(u), () => e.delete(u)) }, S = t = o(n, i, l);
17
- return l;
18
- }, K = (o) => o ? T(o) : T, Q = (o) => o;
19
- function X(o, t = Q) {
16
+ }, i = () => t, a = { setState: o, getState: i, getInitialState: () => S, subscribe: (u) => (e.add(u), () => e.delete(u)) }, S = t = n(o, i, a);
17
+ return a;
18
+ }, $ = (n) => n ? B(n) : B, V = (n) => n;
19
+ function K(n, t = V) {
20
20
  const e = k.useSyncExternalStore(
21
- o.subscribe,
22
- k.useCallback(() => t(o.getState()), [o, t]),
23
- k.useCallback(() => t(o.getInitialState()), [o, t])
21
+ n.subscribe,
22
+ k.useCallback(() => t(n.getState()), [n, t]),
23
+ k.useCallback(() => t(n.getInitialState()), [n, t])
24
24
  );
25
25
  return k.useDebugValue(e), e;
26
26
  }
27
- const W = (o) => {
28
- const t = K(o), e = (n) => X(t, n);
27
+ const T = (n) => {
28
+ const t = $(n), e = (o) => K(t, o);
29
29
  return Object.assign(e, t), e;
30
- }, Y = (o) => o ? W(o) : W, P = {
30
+ }, Q = (n) => n ? T(n) : T, U = {
31
31
  statusConnect: "disconnect",
32
32
  isOfflineSocket: !1,
33
33
  //Текущее состояние сокета. Зависит от события timeOffReConnect и если задаёться isDisableConnectSocket: true
@@ -39,31 +39,31 @@ const W = (o) => {
39
39
  isSelectOffline: !1
40
40
  //Для того что бы 2й раз окно не показывать
41
41
  }
42
- }, Z = JSON.parse(JSON.stringify(P)), w = Y(() => P), p = {
43
- resetState: () => w.setState(Z),
44
- setStatusConnectSocket: ({ statusConnect: o }) => w.setState({ statusConnect: o }),
45
- setStatusIsReConnectSocket: ({ isReConnectSocket: o }) => w.setState({ isReConnectSocket: o }),
46
- setStatusReady: ({ isReadySocket: o }) => w.setState({ isReadySocket: o }),
47
- setIsOfflineSocket: ({ isOfflineSocket: o }) => w.setState({ isOfflineSocket: o }),
48
- setInfoNoConnectServer: (o) => w.setState((t) => ({ infoNoConnectServer: { ...t.infoNoConnectServer, ...o } })),
49
- setIsDisableConnectSocket: ({ isDisableConnectSocket: o }) => w.setState({ isDisableConnectSocket: o })
50
- }, I = {
51
- getStatusConnectSocket: (o) => o.statusConnect,
52
- getStatusIsReConnectSocket: (o) => o.isReConnectSocket,
53
- getStatusReady: (o) => o.isReadySocket,
54
- getIsOfflineSocket: (o) => o.isOfflineSocket,
55
- getInfoNoConnectServer: (o) => o.infoNoConnectServer,
56
- getIsDisableConnectSocket: (o) => o.isDisableConnectSocket
57
- }, y = (o) => w(o), _ = x("span")({
42
+ }, X = JSON.parse(JSON.stringify(U)), w = Q(() => U), p = {
43
+ resetState: () => w.setState(X),
44
+ setStatusConnectSocket: ({ statusConnect: n }) => w.setState({ statusConnect: n }),
45
+ setStatusIsReConnectSocket: ({ isReConnectSocket: n }) => w.setState({ isReConnectSocket: n }),
46
+ setStatusReady: ({ isReadySocket: n }) => w.setState({ isReadySocket: n }),
47
+ setIsOfflineSocket: ({ isOfflineSocket: n }) => w.setState({ isOfflineSocket: n }),
48
+ setInfoNoConnectServer: (n) => w.setState((t) => ({ infoNoConnectServer: { ...t.infoNoConnectServer, ...n } })),
49
+ setIsDisableConnectSocket: ({ isDisableConnectSocket: n }) => w.setState({ isDisableConnectSocket: n })
50
+ }, R = {
51
+ getStatusConnectSocket: (n) => n.statusConnect,
52
+ getStatusIsReConnectSocket: (n) => n.isReConnectSocket,
53
+ getStatusReady: (n) => n.isReadySocket,
54
+ getIsOfflineSocket: (n) => n.isOfflineSocket,
55
+ getInfoNoConnectServer: (n) => n.infoNoConnectServer,
56
+ getIsDisableConnectSocket: (n) => n.isDisableConnectSocket
57
+ }, m = (n) => w(n), Y = M("span")({
58
58
  backgroundColor: "rgba(0,0,0,0.3)",
59
59
  color: "#fff",
60
60
  display: "flex",
61
61
  alignItems: "center",
62
62
  padding: "1px 10px",
63
63
  borderRadius: "3px 3px 3px 3px"
64
- }), F = x(
65
- ({ children: o, ...t }) => /* @__PURE__ */ M(V, { ...t, unmountOnExit: !0, children: /* @__PURE__ */ M(_, { children: o }) })
66
- )(({ theme: o }) => ({
64
+ }), P = M(
65
+ ({ children: n, ...t }) => /* @__PURE__ */ D(G, { ...t, unmountOnExit: !0, children: /* @__PURE__ */ D(Y, { children: n }) })
66
+ )(({ theme: n }) => ({
67
67
  fontSize: 10,
68
68
  position: "absolute",
69
69
  left: 0,
@@ -79,14 +79,14 @@ const W = (o) => {
79
79
  color: "#151616",
80
80
  letterSpacing: 1
81
81
  }
82
- })), tt = "_connect-server-anim_1lp7f_1", et = "_loading-stripes_1lp7f_1", st = {
82
+ })), Z = "_connect-server-anim_1lp7f_1", _ = "_loading-stripes_1lp7f_1", tt = {
83
83
  "connect-server-anim": "_connect-server-anim_1lp7f_1",
84
- connectServerAnim: tt,
84
+ connectServerAnim: Z,
85
85
  "loading-stripes": "_loading-stripes_1lp7f_1",
86
- loadingStripes: et
87
- }, nt = x(F, {
88
- shouldForwardProp: (o) => ![""].includes(o)
89
- })(({ theme: o }) => ({
86
+ loadingStripes: _
87
+ }, et = M(P, {
88
+ shouldForwardProp: (n) => ![""].includes(n)
89
+ })(({ theme: n }) => ({
90
90
  top: "100%",
91
91
  "& .MuiCollapse-wrapper": {
92
92
  height: 10
@@ -94,58 +94,58 @@ const W = (o) => {
94
94
  "& span": {
95
95
  height: "100%"
96
96
  }
97
- })), ot = ({ text: o = "Происходит подключение к серверу", className: t, ...e }) => {
98
- const i = y(I.getStatusConnectSocket) === "pending";
99
- return /* @__PURE__ */ M(
100
- nt,
97
+ })), st = ({ text: n = "Происходит подключение к серверу", className: t, ...e }) => {
98
+ const i = m(R.getStatusConnectSocket) === "pending";
99
+ return /* @__PURE__ */ D(
100
+ et,
101
101
  {
102
102
  in: i,
103
103
  collapsedSize: "1px",
104
- className: U(st["connect-server-anim"], t),
104
+ className: W(tt["connect-server-anim"], t),
105
105
  unmountOnExit: !0,
106
106
  ...e,
107
- children: o
107
+ children: n
108
108
  }
109
109
  );
110
- }, it = k.memo(ot), rt = /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
111
- function ct(o) {
112
- return rt.test(o);
110
+ }, nt = k.memo(st), ot = /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
111
+ function it(n) {
112
+ return ot.test(n);
113
113
  }
114
114
  function L() {
115
- var o = URL.createObjectURL(new Blob()), t = o.toString();
116
- return URL.revokeObjectURL(o), t.split(/[:\/]/g).pop().toLowerCase();
115
+ var n = URL.createObjectURL(new Blob()), t = n.toString();
116
+ return URL.revokeObjectURL(n), t.split(/[:\/]/g).pop().toLowerCase();
117
117
  }
118
- L.valid = ct;
119
- class at {
118
+ L.valid = it;
119
+ class rt {
120
120
  constructor() {
121
121
  r(this, "defaultProps", {
122
122
  interval: 5e3
123
123
  });
124
124
  r(this, "startActionEvery", (t, e = this.defaultProps) => {
125
- const n = (f) => {
125
+ const o = (f) => {
126
126
  e != null && e.watchIdInterval && (e == null || e.watchIdInterval(f));
127
127
  }, i = (f) => {
128
128
  e != null && e.controlAction && (e == null || e.controlAction(f));
129
129
  };
130
- let c = !0, a, l, S;
130
+ let c = !0, l, a, S;
131
131
  const u = (f = !0) => {
132
- const d = "Ручное завершение startActionEvery";
133
- c = !1, clearInterval(a), n(null), f ? l && l({ status: f, msg: d + ": (true)" }) : S && S({ status: f, msg: d + ": (false)" });
132
+ const v = "Ручное завершение startActionEvery";
133
+ c = !1, clearInterval(l), o(null), f ? a && a({ status: f, msg: v + ": (true)" }) : S && S({ status: f, msg: v + ": (false)" });
134
134
  };
135
135
  return {
136
- promise: new Promise((f, d) => {
137
- l = f, S = d;
138
- let C = 0, m = 0;
139
- a = setInterval(
136
+ promise: new Promise((f, v) => {
137
+ a = f, S = v;
138
+ let b = 0, d = 0;
139
+ l = setInterval(
140
140
  () => {
141
- if (C += e.interval, m += 1, e != null && e.cutoffTime && C > e.cutoffTime || e != null && e.countAction && (e == null ? void 0 : e.countAction) < m) {
142
- c = !1, clearInterval(a), n(null), d({ status: !1, msg: Error("Время загрузки истекло") });
141
+ if (b += e.interval, d += 1, e != null && e.cutoffTime && b > e.cutoffTime || e != null && e.countAction && (e == null ? void 0 : e.countAction) < d) {
142
+ c = !1, clearInterval(l), o(null), v({ status: !1, msg: Error("Время загрузки истекло") });
143
143
  return;
144
144
  }
145
- t() && (c = !1, clearInterval(a), n(null), f({ status: !0, msg: "cb вернул true" }));
145
+ t() && (c = !1, clearInterval(l), o(null), f({ status: !0, msg: "cb вернул true" }));
146
146
  },
147
147
  e.interval < 200 ? 200 : e.interval
148
- ), n(a), i({
148
+ ), o(l), i({
149
149
  getIsActiveEvent: () => c,
150
150
  stop: u
151
151
  });
@@ -153,51 +153,51 @@ class at {
153
153
  stop: u
154
154
  };
155
155
  });
156
- r(this, "oneOf", (t, e, { second: n }) => {
156
+ r(this, "oneOf", (t, e, { second: o }) => {
157
157
  let i = 1;
158
158
  t().then(() => {
159
159
  i === 1 && (i = 0);
160
160
  });
161
161
  let c = setInterval(() => {
162
162
  i === 1 && e(), clearInterval(c);
163
- }, n * 1e3);
163
+ }, o * 1e3);
164
164
  });
165
- r(this, "oneOfPromise", (t, e, { second: n }) => new Promise((i, c) => {
166
- let a = 1, l = { status: !1, msg: "" };
165
+ r(this, "oneOfPromise", (t, e, { second: o }) => new Promise((i, c) => {
166
+ let l = 1, a = { status: !1, msg: "" };
167
167
  t().then((u) => {
168
- a === 1 && (a = 0, i(u));
168
+ l === 1 && (l = 0, i(u));
169
169
  }).catch((u) => {
170
- a === 1 && (a = 0, l.msg = u, c(u));
170
+ l === 1 && (l = 0, a.msg = u, c(u));
171
171
  });
172
172
  let S = setInterval(() => {
173
- if (a === 1) {
174
- if (a = 0, typeof e == "function") {
175
- c({ status: !1, msg: "", ...e(l) });
173
+ if (l === 1) {
174
+ if (l = 0, typeof e == "function") {
175
+ c({ status: !1, msg: "", ...e(a) });
176
176
  return;
177
177
  }
178
178
  c({ status: !1, msg: "oneOfPromise reject" });
179
179
  }
180
180
  clearInterval(S);
181
- }, n * 1e3);
181
+ }, o * 1e3);
182
182
  }));
183
183
  }
184
184
  }
185
- class H {
185
+ class F {
186
186
  constructor(t) {
187
187
  r(this, "subscribersEvents", {});
188
188
  r(this, "getListNameEvents", () => Object.keys(this.subscribersEvents));
189
189
  r(this, "getSubscribers", () => this.subscribersEvents);
190
190
  r(this, "subscribe", (t, e) => {
191
- var n;
192
- (n = this.subscribersEvents[t]) == null || n.push(e);
191
+ var o;
192
+ (o = this.subscribersEvents[t]) == null || o.push(e);
193
193
  });
194
194
  r(this, "unsubscribe", (t, e) => {
195
- var n;
196
- this.subscribersEvents[t] && (this.subscribersEvents[t] = (n = this.subscribersEvents[t]) == null ? void 0 : n.filter((i) => i !== e));
195
+ var o;
196
+ this.subscribersEvents[t] && (this.subscribersEvents[t] = (o = this.subscribersEvents[t]) == null ? void 0 : o.filter((i) => i !== e));
197
197
  });
198
198
  r(this, "publish", (t, e) => {
199
- var n;
200
- this.subscribersEvents[t] && ((n = this.subscribersEvents[t]) == null || n.forEach((i) => {
199
+ var o;
200
+ this.subscribersEvents[t] && ((o = this.subscribersEvents[t]) == null || o.forEach((i) => {
201
201
  i(e);
202
202
  }));
203
203
  });
@@ -211,7 +211,7 @@ class H {
211
211
  });
212
212
  }
213
213
  }
214
- class lt {
214
+ class ct {
215
215
  constructor(t) {
216
216
  r(this, "networkInfo");
217
217
  r(this, "listUrls", []);
@@ -221,7 +221,7 @@ class lt {
221
221
  checkIntervalId: null
222
222
  });
223
223
  r(this, "getIsNetwork", (t) => !["unknown", "none"].includes(t));
224
- r(this, "getTypeNetwork", ({ effectiveType: t, type: e }, n) => (n || n === null) && (t || e) || "none");
224
+ r(this, "getTypeNetwork", (t, e) => e || e === null ? "4g" : "none");
225
225
  /*-----------------------------------------------------------------------------*/
226
226
  r(this, "controllersEvents", {
227
227
  online: null,
@@ -246,26 +246,16 @@ class lt {
246
246
  getState() {
247
247
  return this.state;
248
248
  }
249
- // private getFetchOptions = (controller: AbortController) => ({
250
- // method: 'HEAD',
251
- // cache: 'no-store',
252
- // signal: controller.signal,
253
- // headers: {
254
- // 'Cache-Control': 'no-cache, no-store, must-revalidate',
255
- // 'Pragma': 'no-cache',
256
- // 'Expires': '0'
257
- // }
258
- // } as const);
259
249
  getConnection() {
260
250
  var t;
261
251
  return (t = window == null ? void 0 : window.navigator) == null ? void 0 : t.connection;
262
252
  }
263
253
  updateState(t, e) {
264
- const n = {
254
+ const o = {
265
255
  isNetwork: t,
266
256
  typeNetwork: this.getTypeNetwork(this.getConnection(), t)
267
257
  };
268
- this.networkInfo = n, typeof e == "function" && e(n);
258
+ this.networkInfo = o, typeof e == "function" && e(o);
269
259
  }
270
260
  getControllersEvents() {
271
261
  return this.controllersEvents;
@@ -274,45 +264,45 @@ class lt {
274
264
  this.controllersEvents = { ...this.controllersEvents, ...t };
275
265
  }
276
266
  startEvents(t) {
277
- var l, S, u, h;
267
+ var a, S, u, h;
278
268
  const { isActiveEvents: e } = this.getState();
279
269
  if (e)
280
270
  return;
281
271
  this.setState({ isActiveEvents: !0 });
282
- const n = {
272
+ const o = {
283
273
  online: new AbortController(),
284
274
  offline: new AbortController(),
285
275
  change: new AbortController()
286
276
  };
287
- this.setControllersEvents(n);
288
- const i = this.getConnection(), c = this.getTypeNetwork(i, window.navigator.onLine), a = this.getIsNetwork(c);
289
- this.updateState(a, t), window.addEventListener("online", () => {
277
+ this.setControllersEvents(o);
278
+ const i = this.getConnection(), c = this.getTypeNetwork(i, window.navigator.onLine), l = this.getIsNetwork(c);
279
+ this.updateState(l, t), window.addEventListener("online", () => {
290
280
  this.updateState(!0, t);
291
- }, { signal: (l = n.online) == null ? void 0 : l.signal }), window.addEventListener("offline", () => {
281
+ }, { signal: (a = o.online) == null ? void 0 : a.signal }), window.addEventListener("offline", () => {
292
282
  this.updateState(!1, t);
293
- }, { signal: (S = n.offline) == null ? void 0 : S.signal }), (u = this.getConnection()) != null && u.addEventListener && this.getConnection().addEventListener("change", () => {
294
- const f = this.getConnection(), d = this.getTypeNetwork(f, null), C = this.getIsNetwork(d);
295
- this.updateState(C, t);
296
- }, { signal: (h = n.change) == null ? void 0 : h.signal });
283
+ }, { signal: (S = o.offline) == null ? void 0 : S.signal }), (u = this.getConnection()) != null && u.addEventListener && this.getConnection().addEventListener("change", () => {
284
+ const f = this.getConnection(), v = this.getTypeNetwork(f, null), b = this.getIsNetwork(v);
285
+ this.updateState(b, t);
286
+ }, { signal: (h = o.change) == null ? void 0 : h.signal });
297
287
  }
298
288
  stopEvents() {
299
289
  const { isActiveEvents: t } = this.getState();
300
290
  if (t) {
301
291
  this.setState({ isActiveEvents: !1 });
302
292
  const e = this.getControllersEvents();
303
- for (const n of Object.values(e))
304
- n == null || n.abort();
293
+ for (const o of Object.values(e))
294
+ o == null || o.abort();
305
295
  }
306
296
  }
307
297
  /*-----------------------------------------------------------------------------*/
308
298
  async requestByUrls(t, e) {
309
- const n = await this.checkConnection(e);
310
- this.updateState(n, t);
299
+ const o = await this.checkConnection(e);
300
+ this.updateState(o, t);
311
301
  }
312
302
  async checkConnection(t = {}) {
313
303
  for (const e of this.listUrls)
314
304
  try {
315
- const n = new AbortController(), i = setTimeout(() => n.abort(), (t == null ? void 0 : t.timeout) || 5e3), c = await window.fetch(e);
305
+ const o = new AbortController(), i = setTimeout(() => o.abort(), (t == null ? void 0 : t.timeout) || 5e3), c = await window.fetch(e);
316
306
  if (clearTimeout(i), c.status >= 200 && c.status < 400)
317
307
  return !0;
318
308
  } catch {
@@ -327,8 +317,8 @@ class lt {
327
317
  this.controllersFetching = { ...this.controllersFetching, ...t };
328
318
  }
329
319
  startFetching(t, { interval: e = 5e3 }) {
330
- const { isMonitoring: n } = this.getState();
331
- if (n)
320
+ const { isMonitoring: o } = this.getState();
321
+ if (o)
332
322
  return;
333
323
  this.setState({ isMonitoring: !0 });
334
324
  const i = {
@@ -343,8 +333,8 @@ class lt {
343
333
  stopFetching() {
344
334
  const { isMonitoring: t, checkIntervalId: e } = this.getState();
345
335
  if (!t) return;
346
- const n = this.getControllersMonitoring();
347
- for (const i of Object.values(n))
336
+ const o = this.getControllersMonitoring();
337
+ for (const i of Object.values(o))
348
338
  i == null || i.abort();
349
339
  e && clearInterval(e), this.setState({ isMonitoring: !1, checkIntervalId: null });
350
340
  }
@@ -362,7 +352,7 @@ class lt {
362
352
  return this.networkInfo;
363
353
  }
364
354
  }
365
- class ut {
355
+ class at {
366
356
  constructor() {
367
357
  r(this, "options", {
368
358
  timeReConnect: 5e3,
@@ -375,10 +365,10 @@ class ut {
375
365
  arrSaveReq: []
376
366
  });
377
367
  r(this, "initOptions", !1);
378
- r(this, "events", new H(["status", "msg", "error"]));
368
+ r(this, "events", new F(["status", "msg", "error"]));
379
369
  r(this, "stateDefault", this.copyState(this.state));
380
370
  r(this, "eventListener", (t) => {
381
- var n, i;
371
+ var o, i;
382
372
  const e = [
383
373
  ["open", this.openHandler],
384
374
  ["close", this.closeHandler],
@@ -386,8 +376,8 @@ class ut {
386
376
  ["error", this.errHandler]
387
377
  ];
388
378
  for (let c = 0; c < e.length; c++) {
389
- const [a, l] = e[c];
390
- t === "add" ? (n = this.state.ws) == null || n.addEventListener(a, l) : (i = this.state.ws) == null || i.removeEventListener(a, l);
379
+ const [l, a] = e[c];
380
+ t === "add" ? (o = this.state.ws) == null || o.addEventListener(l, a) : (i = this.state.ws) == null || i.removeEventListener(l, a);
391
381
  }
392
382
  });
393
383
  r(this, "openHandler", () => {
@@ -399,13 +389,13 @@ class ut {
399
389
  r(this, "msgHandler", (t) => {
400
390
  const e = JSON.parse(t.data ? t.data : "{}");
401
391
  try {
402
- const { action: n } = e, i = this.findDataRequestByAction(n);
392
+ const { action: o } = e, i = this.findDataRequestByAction(o);
403
393
  if (i) {
404
- const { cb: c, ...a } = i, { payload: l, ...S } = a;
405
- this.events.publish("msg", { ...e, request: { ...S, ...l } });
394
+ const { cb: c, ...l } = i, { payload: a, ...S } = l;
395
+ this.events.publish("msg", { ...e, request: { ...S, ...a } });
406
396
  } else
407
397
  this.events.publish("msg", e);
408
- n && this.filterSaveItemsByResponse(e);
398
+ o && this.filterSaveItemsByResponse(e);
409
399
  } catch {
410
400
  this.events.publish("msg", {});
411
401
  }
@@ -451,12 +441,12 @@ class ut {
451
441
  return JSON.parse(JSON.stringify(t));
452
442
  }
453
443
  filterSaveItemsByResponse(t) {
454
- const e = this.getRequestSave(), n = [];
444
+ const e = this.getRequestSave(), o = [];
455
445
  for (let i = 0; i < e.length; i++) {
456
446
  const c = e[i];
457
- c.payload.action !== t.action ? n.push(c) : c.cb && c.cb(t);
447
+ c.payload.action !== t.action ? o.push(c) : c.cb && c.cb(t);
458
448
  }
459
- this.state.arrSaveReq = n;
449
+ this.state.arrSaveReq = o;
460
450
  }
461
451
  connect() {
462
452
  this.initOptions && (this.close(), this.setState({
@@ -471,21 +461,21 @@ class ut {
471
461
  this.close(), this.setStatus("disconnect"), this.resetState(), this.events.resetSubscribers();
472
462
  }
473
463
  send(t) {
474
- var n;
464
+ var o;
475
465
  const e = JSON.stringify(t);
476
- (n = this.state.ws) == null || n.send(e);
466
+ (o = this.state.ws) == null || o.send(e);
477
467
  }
478
468
  setRequestSave(t) {
479
469
  if ("action" in t.payload) {
480
- const e = this.state.arrSaveReq.findIndex((n) => n.payload.action === t.payload.action);
470
+ const e = this.state.arrSaveReq.findIndex((o) => o.payload.action === t.payload.action);
481
471
  ~e ? this.state.arrSaveReq[e] = t : this.state.arrSaveReq.push(t);
482
472
  }
483
473
  }
484
474
  //INFO: Запросов может быть несколько. И время запроса разное
485
475
  getItemsRequestSaveByAction(t) {
486
476
  return this.getRequestSave().filter((e) => {
487
- var n;
488
- return ((n = e == null ? void 0 : e.payload) == null ? void 0 : n.action) === t;
477
+ var o;
478
+ return ((o = e == null ? void 0 : e.payload) == null ? void 0 : o.action) === t;
489
479
  });
490
480
  }
491
481
  }
@@ -512,16 +502,16 @@ const s = class s {
512
502
  s.state.isDisconnect || (s.setState({ isDisconnect: !0 }), console.log("DISCONNECT WS"), s.wsApi.disconnect(), s.resetState(), s.events.resetSubscribers());
513
503
  }
514
504
  static send(t, e) {
515
- const { action: n, ...i } = t, c = i != null && i.request_id ? i.request_id : L(), a = Date.now();
505
+ const { action: o, ...i } = t, c = i != null && i.request_id ? i.request_id : L(), l = Date.now();
516
506
  s.wsApi.setRequestSave({
517
- requestAction: n,
507
+ requestAction: o,
518
508
  request_id: c,
519
- requestTime: a,
520
- payload: { action: n, ...i },
509
+ requestTime: l,
510
+ payload: { action: o, ...i },
521
511
  cb: e
522
512
  });
523
- const l = s.wsApi.getSocket();
524
- if (!l || l.readyState !== 1) {
513
+ const a = s.wsApi.getSocket();
514
+ if (!a || a.readyState !== 1) {
525
515
  console.log("Нет подключения к сокету. Запрос сохранён в setRequestSave");
526
516
  return;
527
517
  }
@@ -531,41 +521,41 @@ const s = class s {
531
521
  console.dir("функция stop не присвоена к stopReConnect");
532
522
  }
533
523
  static async request(t, e = {}) {
534
- return new Promise((n, i) => {
535
- var m, E;
536
- if ((m = e == null ? void 0 : e.signal) != null && m.aborted) {
524
+ return new Promise((o, i) => {
525
+ var d, y;
526
+ if ((d = e == null ? void 0 : e.signal) != null && d.aborted) {
537
527
  i(new DOMException("Aborted", "AbortError"));
538
528
  return;
539
529
  }
540
- const c = t.action, a = t.request_id ? t.request_id : L(), l = Date.now();
530
+ const c = t.action, l = t.request_id ? t.request_id : L(), a = Date.now();
541
531
  s.wsApi.setRequestSave({
542
532
  requestAction: c,
543
- request_id: a,
544
- requestTime: l,
533
+ request_id: l,
534
+ requestTime: a,
545
535
  payload: t,
546
536
  cb: void 0
547
537
  });
548
538
  let S;
549
539
  e != null && e.timeout && (S = setTimeout(() => {
550
- d(), i(new Error("Request timeout"));
540
+ v(), i(new Error("Request timeout"));
551
541
  }, e.timeout));
552
- const u = (v) => {
553
- d(), i(v);
554
- }, h = (v) => {
555
- var R;
556
- const b = this.wsApi.findDataRequestByAction(c);
557
- !b || ((R = v == null ? void 0 : v.request) == null ? void 0 : R.requestAction) !== b.requestAction || (d(), n({ ...v }));
542
+ const u = (g) => {
543
+ v(), i(g);
544
+ }, h = (g) => {
545
+ var A;
546
+ const E = this.wsApi.findDataRequestByAction(c);
547
+ !E || ((A = g == null ? void 0 : g.request) == null ? void 0 : A.requestAction) !== E.requestAction || (v(), o({ ...g }));
558
548
  }, f = () => {
559
- d(), i(new DOMException("Aborted", "AbortError"));
560
- }, d = () => {
561
- var v;
562
- s.off("msg", h), s.off("error", u), S && clearTimeout(S), (v = e == null ? void 0 : e.signal) == null || v.removeEventListener("abort", f);
549
+ v(), i(new DOMException("Aborted", "AbortError"));
550
+ }, v = () => {
551
+ var g;
552
+ s.off("msg", h), s.off("error", u), S && clearTimeout(S), (g = e == null ? void 0 : e.signal) == null || g.removeEventListener("abort", f);
563
553
  };
564
- s.on("msg", h), s.on("error", u), (E = e == null ? void 0 : e.signal) == null || E.addEventListener("abort", f);
565
- const C = s.wsApi.getSocket();
566
- if (!C || C.readyState !== 1) {
567
- const v = "Нет подключения к сокету";
568
- console.error(v), d(), i(new Error(v));
554
+ s.on("msg", h), s.on("error", u), (y = e == null ? void 0 : e.signal) == null || y.addEventListener("abort", f);
555
+ const b = s.wsApi.getSocket();
556
+ if (!b || b.readyState !== 1) {
557
+ const g = "Нет подключения к сокету";
558
+ console.error(g), v(), i(new Error(g));
569
559
  return;
570
560
  }
571
561
  s.wsApi.send(t);
@@ -582,8 +572,8 @@ r(s, "state", {
582
572
  }), r(s, "options", {
583
573
  isReConnectNetworkOnline: !1,
584
574
  listUrlsCheckConnectNetwork: ["https://jsonplaceholder.typicode.com/posts/1"]
585
- }), r(s, "wsApi", new ut()), r(s, "delay", new at()), // private static internetControl:NetworkControls | null = null
586
- r(s, "networkTicker", null), r(s, "events", new H(["timeOffReConnect", "reConnect", "network"])), r(s, "saveID", {
575
+ }), r(s, "wsApi", new at()), r(s, "delay", new rt()), // private static internetControl:NetworkControls | null = null
576
+ r(s, "networkTicker", null), r(s, "events", new F(["timeOffReConnect", "reConnect", "network"])), r(s, "saveID", {
587
577
  idReConnect: null,
588
578
  checkConnect: null
589
579
  }), r(s, "stateDefault", s.copyState(s.state)), r(s, "setInfoConnect", (t) => {
@@ -594,9 +584,9 @@ r(s, "networkTicker", null), r(s, "events", new H(["timeOffReConnect", "reConnec
594
584
  }), r(s, "offline", () => {
595
585
  s.state.isActiveReConnect && s.stopReConnect(!1);
596
586
  }), r(s, "splitOptions", (t) => Object.entries(t).reduce(
597
- (e, [n, i]) => {
587
+ (e, [o, i]) => {
598
588
  const c = s.wsApi.getOptions();
599
- return n in c ? { ...e, WsOptions: { ...e.WsOptions, [n]: i } } : { ...e, SocketApiOptions: { ...e.SocketApiOptions, [n]: i } };
589
+ return o in c ? { ...e, WsOptions: { ...e.WsOptions, [o]: i } } : { ...e, SocketApiOptions: { ...e.SocketApiOptions, [o]: i } };
600
590
  },
601
591
  { WsOptions: {}, SocketApiOptions: {} }
602
592
  )), /*---------------------------------------------------------------------------------------------------------------------------*/
@@ -610,10 +600,10 @@ r(s, "getState", () => s.state), r(s, "getOptions", () => ({ ...s.options, ...s.
610
600
  r(s, "setNetworkStatus", (t) => {
611
601
  s.events.publish("network", t), t.isNetwork ? s.online() : s.offline();
612
602
  }), r(s, "init", (t) => {
613
- const { WsOptions: e, SocketApiOptions: n } = s.splitOptions(t);
614
- s.networkTicker = new lt(n.listUrlsCheckConnectNetwork ?? []), s.networkTicker.startEvents((i) => {
603
+ const { WsOptions: e, SocketApiOptions: o } = s.splitOptions(t);
604
+ s.networkTicker = new ct(o.listUrlsCheckConnectNetwork ?? []), s.networkTicker.startEvents((i) => {
615
605
  s.setNetworkStatus(i);
616
- }), s.setOptions(n), s.wsApi.init(e), s.wsApi.events.subscribe("status", (i) => {
606
+ }), s.setOptions(o), s.wsApi.init(e), s.wsApi.events.subscribe("status", (i) => {
617
607
  s.setState({ isOfflineSocket: i !== "ready" });
618
608
  });
619
609
  }), /*------------------------------------------------------------------------------------------------------*/
@@ -629,125 +619,162 @@ r(s, "socketReConnect", () => {
629
619
  {
630
620
  interval: t,
631
621
  countAction: i,
632
- watchIdInterval: (a) => {
633
- s.saveID.idReConnect = a;
622
+ watchIdInterval: (l) => {
623
+ s.saveID.idReConnect = l;
634
624
  },
635
- controlAction: ({ stop: a, getIsActiveEvent: l }) => {
636
- s.stopReConnect = a;
625
+ controlAction: ({ stop: l, getIsActiveEvent: a }) => {
626
+ s.stopReConnect = l;
637
627
  }
638
628
  }
639
- ).promise.then((a) => {
640
- s.setInfoConnect(a);
641
- }).catch((a) => {
629
+ ).promise.then((l) => {
630
+ s.setInfoConnect(l);
631
+ }).catch((l) => {
642
632
  if (s.wsApi.getStatusSocket() === "ready") {
643
633
  console.log("Сокет успел подключиться, игнорируем ошибку таймаута"), s.setInfoConnect({ status: !0, msg: "Подключено (восстановлено)" });
644
634
  return;
645
635
  }
646
- s.setInfoConnect(a);
636
+ s.setInfoConnect(l);
647
637
  });
648
638
  }
649
639
  });
650
- let g = s;
651
- const ft = (o, t = {}) => {
652
- const e = o.action, { skip: n = !1, timeout: i = 5e3, onSuccess: c, onError: a } = t, [l, S] = A(null), [u, h] = A(null), [f, d] = A(!1), [C, m] = A(!1), [E, v] = A(!1), b = $(null), R = q(async () => {
653
- if (n) return;
654
- d(!0), m(!1), v(!1), h(null), S(null), b.current = new AbortController();
655
- const D = b.current.signal;
640
+ let C = s;
641
+ const lt = (n, t = {}) => {
642
+ const e = n.action, { skip: o = !1, timeout: i = 5e3 } = t, [c, l] = z({
643
+ data: null,
644
+ error: "",
645
+ isLoading: !1,
646
+ isError: !1,
647
+ isSuccess: !1
648
+ }), a = m(R.getStatusReady), S = m(R.getStatusConnectSocket), u = x(null), h = x(t);
649
+ h.current = t;
650
+ const f = N(async () => {
651
+ var y, g, E, A;
652
+ if (o) return;
653
+ l((I) => ({
654
+ ...I,
655
+ isLoading: !0,
656
+ isError: !1,
657
+ isSuccess: !1,
658
+ error: "",
659
+ data: null
660
+ })), u.current = new AbortController();
661
+ const d = u.current.signal;
656
662
  try {
657
- const O = await g.request(
658
- o,
659
- { timeout: i, signal: D }
660
- );
661
- if (D.aborted) return;
662
- S(O), v(!0), c == null || c(O);
663
- } catch (O) {
664
- if (D.aborted) return;
665
- const B = O instanceof Error ? O : new Error(String(O));
666
- h(B), m(!0), a == null || a(B);
667
- } finally {
668
- D.aborted || d(!1);
663
+ const I = await C.request(n, { timeout: i, signal: d });
664
+ if (d.aborted) return;
665
+ l((q) => ({
666
+ ...q,
667
+ data: I,
668
+ isSuccess: !0,
669
+ isLoading: !1
670
+ })), (g = (y = h.current).onSuccess) == null || g.call(y, I);
671
+ } catch (I) {
672
+ if (d.aborted) return;
673
+ const q = I instanceof Error ? I.message : String(I);
674
+ l((H) => ({
675
+ ...H,
676
+ error: q,
677
+ isError: !0,
678
+ isLoading: !1
679
+ })), (A = (E = h.current).onError) == null || A.call(E, q);
669
680
  }
670
- }, [n, e, o, i, c, a]);
671
- N(() => (n || R(), () => {
672
- b.current && b.current.abort();
673
- }), [R, n]);
674
- const j = q(() => (b.current && b.current.abort(), R()), [R]), J = q(() => {
675
- b.current && (b.current.abort(), d(!1));
681
+ }, [o, e, n, i]);
682
+ O(() => (!o && a && f(), () => {
683
+ var d;
684
+ (d = u.current) == null || d.abort();
685
+ }), [f, o, a]), O(() => {
686
+ !a && S === "pending" && l((d) => ({
687
+ ...d,
688
+ isError: !1,
689
+ isSuccess: !1,
690
+ error: "Потеряно соединение с сервером"
691
+ }));
692
+ }, [a, S]);
693
+ const v = N(() => {
694
+ var d;
695
+ return (d = u.current) == null || d.abort(), f();
696
+ }, [f]), b = N(() => {
697
+ var d;
698
+ (d = u.current) == null || d.abort(), l((y) => ({ ...y, isLoading: !1 }));
676
699
  }, []);
677
- return { data: l, error: u, isLoading: f, isError: C, isSuccess: E, refetch: j, abort: J };
678
- }, Ot = (o, t) => ft(o, t), St = (o) => {
679
- const { isNetwork: t, typeNetwork: e } = o, { isModal: n } = y(I.getInfoNoConnectServer), i = y(I.getStatusIsReConnectSocket), c = y(I.getIsDisableConnectSocket), a = y(I.getStatusConnectSocket);
680
- return N(() => (g.init(o.init), typeof o.onMount == "function" && o.onMount(), g.on("status", (l) => {
700
+ return {
701
+ ...c,
702
+ refetch: v,
703
+ abort: b
704
+ };
705
+ }, yt = (n, t) => lt(n, t), ut = (n) => {
706
+ const { isNetwork: t, typeNetwork: e } = n, { isModal: o } = m(R.getInfoNoConnectServer), i = m(R.getStatusIsReConnectSocket), c = m(R.getIsDisableConnectSocket), l = m(R.getStatusConnectSocket);
707
+ return O(() => (C.init(n.init), typeof n.onMount == "function" && n.onMount(), C.on("status", (a) => {
681
708
  const S = w.getState(), { isReadySocket: u, infoNoConnectServer: { isModal: h }, isOfflineSocket: f } = S;
682
- l !== "ready" && u && p.setStatusReady({ isReadySocket: !1 }), !u && l === "ready" && (p.setStatusReady({ isReadySocket: !0 }), h && f && (console.log("Вырубаем модалку т.к. сокет законектился после окончания timeOffReConnect"), p.setInfoNoConnectServer({ isModal: !1 }), p.setIsOfflineSocket({ isOfflineSocket: !1 }))), p.setStatusConnectSocket({ statusConnect: l });
683
- }), g.on("error", (l) => {
684
- console.log("error: ", l);
685
- }), g.on("reConnect", (l) => {
686
- console.log('on"reConnect" (status): ', l);
709
+ a !== "ready" && u && p.setStatusReady({ isReadySocket: !1 }), !u && a === "ready" && (p.setStatusReady({ isReadySocket: !0 }), h && f && (console.log("Вырубаем модалку т.к. сокет законектился после окончания timeOffReConnect"), p.setInfoNoConnectServer({ isModal: !1 }), p.setIsOfflineSocket({ isOfflineSocket: !1 }))), p.setStatusConnectSocket({ statusConnect: a });
710
+ }), C.on("error", (a) => {
711
+ console.log("error: ", a);
712
+ }), C.on("reConnect", (a) => {
713
+ console.log('on"reConnect" (status): ', a);
687
714
  const S = w.getState(), { isReConnectSocket: u, infoNoConnectServer: { isModal: h } } = S;
688
- u !== l && p.setStatusIsReConnectSocket({ isReConnectSocket: l }), h && l && p.setInfoNoConnectServer({ isModal: !1 });
689
- }), g.on("timeOffReConnect", (l) => {
690
- if (console.log("timeOffReConnect: ", l), p.setIsOfflineSocket({ isOfflineSocket: !l.status }), !l.status) {
715
+ u !== a && p.setStatusIsReConnectSocket({ isReConnectSocket: a }), h && a && p.setInfoNoConnectServer({ isModal: !1 });
716
+ }), C.on("timeOffReConnect", (a) => {
717
+ if (console.log("timeOffReConnect: ", a), p.setIsOfflineSocket({ isOfflineSocket: !a.status }), !a.status) {
691
718
  const S = w.getState(), { infoNoConnectServer: { isModal: u, isSelectOffline: h } } = S;
692
719
  let f = !1;
693
720
  !u && !h && (f = !0), f && p.setInfoNoConnectServer({ isModal: f });
694
721
  }
695
- }), g.connect(), () => {
696
- typeof o.onUnmount == "function" && o.onUnmount(), console.dir("disconnect"), g.disconnect();
697
- }), []), N(() => {
698
- t && !c && !n && !i && ["close"].includes(a) && e !== "none" && (console.log("Запущен socketReConnect"), g.socketReConnect());
699
- }, [c, n, i, a, e, t]), N(() => {
700
- i && (!t || a === "ready") && (console.log("Запущен stopReConnect"), g.stopReConnect());
701
- }, [i, t, a]), N(() => {
702
- c && (console.log("isDisableConnectSocket: ", c), p.setIsOfflineSocket({ isOfflineSocket: !0 }), g.close());
722
+ }), C.connect(), () => {
723
+ typeof n.onUnmount == "function" && n.onUnmount(), console.dir("disconnect"), C.disconnect();
724
+ }), []), O(() => {
725
+ t && !c && !o && !i && ["close"].includes(l) && e !== "none" && (console.log("Запущен socketReConnect"), C.socketReConnect());
726
+ }, [c, o, i, l, e, t]), O(() => {
727
+ i && (!t || l === "ready") && (console.log("Запущен stopReConnect"), C.stopReConnect());
728
+ }, [i, t, l]), O(() => {
729
+ c && (console.log("isDisableConnectSocket: ", c), p.setIsOfflineSocket({ isOfflineSocket: !0 }), C.close());
703
730
  }, [c]), null;
704
- }, dt = k.memo(St), ht = x(F, {
705
- shouldForwardProp: (o) => ![""].includes(o)
706
- })(({ theme: o }) => ({
731
+ }, ft = k.memo(ut), St = M(P, {
732
+ shouldForwardProp: (n) => ![""].includes(n)
733
+ })(({ theme: n }) => ({
707
734
  bottom: "100%",
708
- backgroundColor: o.palette.error.light,
735
+ backgroundColor: n.palette.error.light,
709
736
  backgroundImage: "linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, 0))",
710
737
  "& .MuiCollapse-wrapper": {},
711
738
  "& span": {
712
739
  padding: "1px 10px"
713
740
  }
714
- })), vt = ({ children: o, className: t, isNetwork: e, ...n }) => {
715
- const i = y(I.getIsOfflineSocket), c = y(I.getIsDisableConnectSocket), a = i || !e, l = "Оффлайн";
716
- return /* @__PURE__ */ M(
717
- ht,
741
+ })), dt = ({ children: n, className: t, isNetwork: e, ...o }) => {
742
+ const i = m(R.getIsOfflineSocket), c = m(R.getIsDisableConnectSocket), l = i || !e, a = "Оффлайн";
743
+ return /* @__PURE__ */ D(
744
+ St,
718
745
  {
719
- in: a,
720
- className: U("socket-offline", t),
721
- ...n,
722
- children: typeof o == "function" ? o({ isDisableConnectSocket: c }) : c ? `Режим ${l}` : l
746
+ in: l,
747
+ className: W("socket-offline", t),
748
+ ...o,
749
+ children: typeof n == "function" ? n({ isDisableConnectSocket: c }) : c ? `Режим ${a}` : a
723
750
  }
724
751
  );
725
- }, pt = k.memo(vt), gt = ({ children: o }) => {
726
- const t = q(() => {
752
+ }, ht = k.memo(dt), vt = ({ children: n }) => {
753
+ const t = N(() => {
727
754
  p.setInfoNoConnectServer({ isModal: !1, isSelectOffline: !1 });
728
755
  }, []);
729
- return o({ reConnect: t });
730
- }, Ct = k.memo(gt), bt = ({ children: o }) => {
731
- const t = q(() => {
756
+ return n({ reConnect: t });
757
+ }, gt = k.memo(vt), pt = ({ children: n }) => {
758
+ const t = N(() => {
732
759
  p.setInfoNoConnectServer({ isModal: !1, isSelectOffline: !0 }), p.setIsDisableConnectSocket({ isDisableConnectSocket: !0 });
733
760
  }, []);
734
- return o({ offlineActive: t });
735
- }, wt = k.memo(bt), Et = {
736
- ConnectDetection: it,
737
- OfflineDetection: pt,
761
+ return n({ offlineActive: t });
762
+ }, Ct = k.memo(pt), It = {
763
+ ConnectDetection: nt,
764
+ OfflineDetection: ht,
738
765
  Buttons: {
739
- OfflineActive: wt,
740
- ReConnect: Ct
766
+ OfflineActive: Ct,
767
+ ReConnect: gt
741
768
  },
742
- Initialization: dt
769
+ Initialization: ft
743
770
  };
744
771
  export {
745
- Et as Socket,
746
- g as SocketApi,
747
- Ot as createRequestSocketApi,
772
+ It as Socket,
773
+ C as SocketApi,
774
+ yt as createRequestSocketApi,
748
775
  p as socketActions,
749
- I as socketSelectors,
776
+ R as socketSelectors,
750
777
  w as socketStore,
751
- ft as useRequestSocketApi,
752
- y as useSocketSelector
778
+ lt as useRequestSocketApi,
779
+ m as useSocketSelector
753
780
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rc-lib-ui",
3
3
  "private": false,
4
- "version": "1.1.49",
4
+ "version": "1.1.53",
5
5
  "author": "SinGlEBW",
6
6
  "license": "MIT",
7
7
  "type": "module",