@m4l/core 1.1.0 → 1.1.1

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.
@@ -4,7 +4,7 @@ import { jsx as v } from "react/jsx-runtime";
4
4
  import { u as D } from "../../hooks/useHostTools/index.66d9a667.js";
5
5
  import { u as N } from "../../hooks/useNetwork/index.3d79002b.js";
6
6
  import { u as O } from "../../hooks/useEnvironment/index.25f83176.js";
7
- import { u as S } from "../../hooks/useLocalStorage/index.7dbb3411.js";
7
+ import { u as S } from "../../hooks/useLocalStorage/index.91bc0791.js";
8
8
  import { g as U, s as u } from "../../utils/index.f9db04a8.js";
9
9
  var s = /* @__PURE__ */ ((t) => (t.Initial = "INITIALIZE", t.Login = "LOGIN", t.Logout = "LOGOUT", t))(s || {});
10
10
  const w = {
@@ -1,5 +1,5 @@
1
1
  import { useContext as o } from "react";
2
- import { A as e } from "../../contexts/AuthContext/index.717a8c86.js";
2
+ import { A as e } from "../../contexts/AuthContext/index.c8918b5a.js";
3
3
  const n = () => {
4
4
  const t = o(e);
5
5
  if (!t)
@@ -31,9 +31,7 @@ function u(o, e) {
31
31
  const t = (r) => {
32
32
  if (r.storageArea === localStorage && r.key === o)
33
33
  try {
34
- r.newValue && s(
35
- typeof e == "string" ? r.newValue : JSON.parse(r.newValue)
36
- );
34
+ r.newValue && s(typeof e == "string" ? r.newValue : JSON.parse(r.newValue));
37
35
  } catch {
38
36
  }
39
37
  };
@@ -1,2 +1,3 @@
1
- export declare function useLocalStorageWithListener<ValueType>(key: string, initialValue: ValueType): any[];
1
+ export declare type SetStateType<ValueType> = (newValue: ValueType) => void;
2
+ export declare function useLocalStorageWithListener<ValueType>(key: string, initialValue: ValueType): [ValueType, SetStateType<ValueType>];
2
3
  export default useLocalStorageWithListener;
package/index.js CHANGED
@@ -3,7 +3,7 @@ import { B as d, a as v } from "./contexts/BaseContext/index.f9cdc955.js";
3
3
  import { E as P, a as C } from "./contexts/EnvironmentContext/index.b33784cd.js";
4
4
  import { H as D, a as S } from "./contexts/HostToolsContext/index.499db832.js";
5
5
  import { N as y, a as F } from "./contexts/NetworkContext/index.ec7405cd.js";
6
- import { A as k, a as h } from "./contexts/AuthContext/index.717a8c86.js";
6
+ import { A as k, a as h } from "./contexts/AuthContext/index.c8918b5a.js";
7
7
  import { F as L, a as A } from "./contexts/FlagsContext/index.5b096265.js";
8
8
  import { D as N, a as w } from "./contexts/DomainContext/index.2ed56159.js";
9
9
  import { M as W, a as O } from "./contexts/ModuleDictionaryContext/index.44448b0d.js";
@@ -15,14 +15,14 @@ import { u as X } from "./hooks/useEnvironment/index.25f83176.js";
15
15
  import { a as Z, u as _ } from "./hooks/useFlagsStore/index.f7c613ac.js";
16
16
  import { u as oo } from "./hooks/useHostTools/index.66d9a667.js";
17
17
  import { u as ro, a as to } from "./hooks/useDomain/index.dd6909f6.js";
18
- import { a as so, u as io } from "./hooks/useLocalStorage/index.7dbb3411.js";
18
+ import { a as so, u as io } from "./hooks/useLocalStorage/index.91bc0791.js";
19
19
  import { u as no } from "./hooks/useModuleDictionary/index.eec95f41.js";
20
20
  import { u as xo } from "./hooks/useModulePrivileges/index.e93abed8.js";
21
21
  import { u as lo } from "./hooks/useModuleSkeleton/index.a8238d1d.js";
22
22
  import { u as vo } from "./hooks/useNetwork/index.3d79002b.js";
23
23
  import { i as Po, u as Co } from "./hooks/usePaginate/index.1306b0de.js";
24
24
  import { u as Do } from "./hooks/usePropageteMF/index.c440b829.js";
25
- import { u as co } from "./hooks/useAuth/index.5356a5e9.js";
25
+ import { u as co } from "./hooks/useAuth/index.bd0fb946.js";
26
26
  import { e as Fo, g as Eo, a as ko, s as ho, v as Bo } from "./utils/index.f9db04a8.js";
27
27
  import { a as Ao } from "./utils/axiosOperation.ce4250d4.js";
28
28
  import "react";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/core",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "license": "UNLICENSED",
5
5
  "author": "M4L Team",
6
6
  "private": false,