@m4l/core 0.1.51 → 0.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.
- package/contexts/DomainContext/{index.ecd8b5ac.js → index.b2ad3c8b.js} +2 -2
- package/contexts/EnvironmentContext/{index.421e4f74.js → index.bf218dae.js} +4 -4
- package/contexts/ModuleDictionaryContext/{index.08e23b57.js → index.bdd3fe87.js} +14 -14
- package/contexts/ModulePrivilegesContext/{index.ec71c5bb.js → index.9a52e3ac.js} +1 -1
- package/contexts/NetworkContext/{index.583e4f85.js → index.5be06f78.js} +1 -1
- package/hooks/useDomain/{index.2ef00a51.js → index.14f7e890.js} +1 -1
- package/hooks/useEnvironment/{index.f4050a0c.js → index.131ac8f5.js} +1 -1
- package/hooks/useModuleDictionary/{index.bc6c6b93.js → index.90247f7e.js} +1 -1
- package/hooks/useModulePrivileges/{index.125a7496.js → index.3f7ea901.js} +1 -1
- package/hooks/useNetwork/{index.e1736c31.js → index.b8ba4a7a.js} +1 -1
- package/hooks/usePaginate/{index.13fa70ac.js → index.8c7ff3cb.js} +1 -1
- package/index.js +11 -11
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createContext as f, useState as s, useEffect as p } from "react";
|
|
2
2
|
import { u as g } from "../../hooks/useFlags/index.a986729d.js";
|
|
3
|
-
import { u as D } from "../../hooks/useEnvironment/index.
|
|
4
|
-
import { u as v } from "../../hooks/useNetwork/index.
|
|
3
|
+
import { u as D } from "../../hooks/useEnvironment/index.131ac8f5.js";
|
|
4
|
+
import { u as v } from "../../hooks/useNetwork/index.b8ba4a7a.js";
|
|
5
5
|
import { C as y } from "../../types/index.42c24946.js";
|
|
6
6
|
import { jsx as h } from "react/jsx-runtime";
|
|
7
7
|
const $ = f(null);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createContext as i, useCallback as l, useState as u } from "react";
|
|
2
2
|
import { jsx as a } from "react/jsx-runtime";
|
|
3
|
-
const
|
|
3
|
+
const m = i(null);
|
|
4
4
|
function f(e) {
|
|
5
5
|
const {
|
|
6
6
|
children: o,
|
|
@@ -13,17 +13,17 @@ function f(e) {
|
|
|
13
13
|
throw new Error("mfProps is required");
|
|
14
14
|
return e?.isLocalhost ? `https://${window.location.hostname}:${e.mfProps.debugPort}/module/assets/icons/${t}` : `module/${e.mfProps.moduleId}/module/assets/icons/${t}`;
|
|
15
15
|
} else
|
|
16
|
-
return `
|
|
16
|
+
return `mf/assets/icons/${t}`;
|
|
17
17
|
}, []), [r] = u({
|
|
18
18
|
...s,
|
|
19
19
|
getModuleUrlIconAsset: n
|
|
20
20
|
});
|
|
21
|
-
return /* @__PURE__ */ a(
|
|
21
|
+
return /* @__PURE__ */ a(m.Provider, {
|
|
22
22
|
value: r,
|
|
23
23
|
children: o
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
export {
|
|
27
|
-
|
|
27
|
+
m as E,
|
|
28
28
|
f as a
|
|
29
29
|
};
|
|
@@ -2,9 +2,9 @@ import { createContext as y, useState as F, useEffect as L, useCallback as u } f
|
|
|
2
2
|
import { C as M } from "../../types/index.42c24946.js";
|
|
3
3
|
import { jsx as N } from "react/jsx-runtime";
|
|
4
4
|
import { u as P } from "../../hooks/useFlags/index.a986729d.js";
|
|
5
|
-
import { u as _ } from "../../hooks/useEnvironment/index.
|
|
5
|
+
import { u as _ } from "../../hooks/useEnvironment/index.131ac8f5.js";
|
|
6
6
|
import { u as x } from "../../hooks/useHostTools/index.66d9a667.js";
|
|
7
|
-
import { u as A } from "../../hooks/useNetwork/index.
|
|
7
|
+
import { u as A } from "../../hooks/useNetwork/index.b8ba4a7a.js";
|
|
8
8
|
const E = y(null);
|
|
9
9
|
function j(l) {
|
|
10
10
|
const {
|
|
@@ -25,7 +25,7 @@ function j(l) {
|
|
|
25
25
|
networkOperation: v
|
|
26
26
|
} = A();
|
|
27
27
|
L(() => {
|
|
28
|
-
let
|
|
28
|
+
let t = !0;
|
|
29
29
|
return D(), v({
|
|
30
30
|
method: "GET",
|
|
31
31
|
endPoint: a ? `dictionaries/${i}` : `na/dictionaries/${i}`,
|
|
@@ -35,28 +35,28 @@ function j(l) {
|
|
|
35
35
|
domain_token: g
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
}).then((
|
|
39
|
-
|
|
40
|
-
...
|
|
41
|
-
}),
|
|
38
|
+
}).then((o) => {
|
|
39
|
+
t && (p({
|
|
40
|
+
...o
|
|
41
|
+
}), f(M.FLAG_DICTIONARY_LOADED));
|
|
42
42
|
}).finally(() => {
|
|
43
43
|
h();
|
|
44
44
|
}), function() {
|
|
45
|
-
|
|
45
|
+
t = !1;
|
|
46
46
|
};
|
|
47
47
|
}, [d]);
|
|
48
|
-
const n = u((
|
|
48
|
+
const n = u((t) => {
|
|
49
49
|
if (e === void 0)
|
|
50
50
|
return "";
|
|
51
|
-
if (
|
|
51
|
+
if (t === "")
|
|
52
52
|
return "No key";
|
|
53
|
-
let
|
|
54
|
-
const r =
|
|
53
|
+
let o;
|
|
54
|
+
const r = t.split(".");
|
|
55
55
|
try {
|
|
56
|
-
r.length === 1 && (
|
|
56
|
+
r.length === 1 && (o = e.data[t]), r.length === 2 && (o = e[r[0]][r[1]]);
|
|
57
57
|
} catch {
|
|
58
58
|
}
|
|
59
|
-
return
|
|
59
|
+
return o || `N_D:[${t}]`;
|
|
60
60
|
}, [e]), C = u(() => n(s), [s, n]);
|
|
61
61
|
return /* @__PURE__ */ N(E.Provider, {
|
|
62
62
|
value: {
|
|
@@ -3,7 +3,7 @@ import { C as i } from "../../types/index.42c24946.js";
|
|
|
3
3
|
import { jsx as v } from "react/jsx-runtime";
|
|
4
4
|
import { u as E } from "../../hooks/useFlags/index.a986729d.js";
|
|
5
5
|
import { u as h } from "../../hooks/useHostTools/index.66d9a667.js";
|
|
6
|
-
import { u as L } from "../../hooks/useNetwork/index.
|
|
6
|
+
import { u as L } from "../../hooks/useNetwork/index.b8ba4a7a.js";
|
|
7
7
|
const C = g(null);
|
|
8
8
|
function _(n) {
|
|
9
9
|
const {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createContext as i, useCallback as c } from "react";
|
|
2
|
-
import { u as m } from "../../hooks/useEnvironment/index.
|
|
2
|
+
import { u as m } from "../../hooks/useEnvironment/index.131ac8f5.js";
|
|
3
3
|
import { u } from "../../hooks/useHostTools/index.66d9a667.js";
|
|
4
4
|
import { jsx as l } from "react/jsx-runtime";
|
|
5
5
|
const p = i(null);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useContext as t } from "react";
|
|
2
|
-
import { D as n } from "../../contexts/DomainContext/index.
|
|
2
|
+
import { D as n } from "../../contexts/DomainContext/index.b2ad3c8b.js";
|
|
3
3
|
import { D as e } from "../../contexts/DomainCountryContext/index.3cdf9462.js";
|
|
4
4
|
const m = () => {
|
|
5
5
|
const o = t(n);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState as s, useRef as G, useCallback as H, useEffect as p } from "react";
|
|
2
2
|
import { u as L } from "../useHostTools/index.66d9a667.js";
|
|
3
|
-
import { u as N } from "../useNetwork/index.
|
|
3
|
+
import { u as N } from "../useNetwork/index.b8ba4a7a.js";
|
|
4
4
|
const a = {
|
|
5
5
|
page: 0,
|
|
6
6
|
rowsPerPage: 25,
|
package/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { C as m, E as u } from "./types/index.42c24946.js";
|
|
2
2
|
import { B as p, a as l } from "./contexts/BaseContext/index.f9cdc955.js";
|
|
3
|
-
import { E as d, a as v } from "./contexts/EnvironmentContext/index.
|
|
3
|
+
import { E as d, a as v } from "./contexts/EnvironmentContext/index.bf218dae.js";
|
|
4
4
|
import { H as P, a as C } from "./contexts/HostToolsContext/index.499db832.js";
|
|
5
|
-
import { N as D, a as S } from "./contexts/NetworkContext/index.
|
|
5
|
+
import { N as D, a as S } from "./contexts/NetworkContext/index.5be06f78.js";
|
|
6
6
|
import { F as y, a as F } from "./contexts/FlagsContext/index.5f795859.js";
|
|
7
|
-
import { D as k, a as B } from "./contexts/DomainContext/index.
|
|
8
|
-
import { M as H, a as N } from "./contexts/ModuleDictionaryContext/index.
|
|
9
|
-
import { M as T, a as h } from "./contexts/ModulePrivilegesContext/index.
|
|
7
|
+
import { D as k, a as B } from "./contexts/DomainContext/index.b2ad3c8b.js";
|
|
8
|
+
import { M as H, a as N } from "./contexts/ModuleDictionaryContext/index.bdd3fe87.js";
|
|
9
|
+
import { M as T, a as h } from "./contexts/ModulePrivilegesContext/index.9a52e3ac.js";
|
|
10
10
|
import { M as O, a as b } from "./contexts/ModuleSkeletonContext/index.45963775.js";
|
|
11
11
|
import { D as q, a as z } from "./contexts/DomainCountryContext/index.3cdf9462.js";
|
|
12
12
|
import { u as G } from "./hooks/useBase/index.4375dcef.js";
|
|
13
|
-
import { u as J } from "./hooks/useEnvironment/index.
|
|
13
|
+
import { u as J } from "./hooks/useEnvironment/index.131ac8f5.js";
|
|
14
14
|
import { u as Q, a as R } from "./hooks/useFlags/index.a986729d.js";
|
|
15
15
|
import { u as V } from "./hooks/useHostTools/index.66d9a667.js";
|
|
16
|
-
import { u as Y, a as Z } from "./hooks/useDomain/index.
|
|
16
|
+
import { u as Y, a as Z } from "./hooks/useDomain/index.14f7e890.js";
|
|
17
17
|
import { u as $, a as oo } from "./hooks/useLocalStorage/index.48b47dca.js";
|
|
18
|
-
import { u as ro } from "./hooks/useModuleDictionary/index.
|
|
19
|
-
import { u as to } from "./hooks/useModulePrivileges/index.
|
|
18
|
+
import { u as ro } from "./hooks/useModuleDictionary/index.90247f7e.js";
|
|
19
|
+
import { u as to } from "./hooks/useModulePrivileges/index.3f7ea901.js";
|
|
20
20
|
import { u as io } from "./hooks/useModuleSkeleton/index.739fd422.js";
|
|
21
|
-
import { u as mo } from "./hooks/useNetwork/index.
|
|
22
|
-
import { i as xo, u as po } from "./hooks/usePaginate/index.
|
|
21
|
+
import { u as mo } from "./hooks/useNetwork/index.b8ba4a7a.js";
|
|
22
|
+
import { i as xo, u as po } from "./hooks/usePaginate/index.8c7ff3cb.js";
|
|
23
23
|
import { u as fo } from "./hooks/usePropageteMF/index.c440b829.js";
|
|
24
24
|
import { e as go, a as Po, g as Co, s as Mo, v as Do } from "./utils/index.c7370abf.js";
|
|
25
25
|
import { a as co } from "./utils/axiosOperation.30c7cc9d.js";
|