@m4l/core 0.1.46 → 0.1.48
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/DomainCountryContext/{index.5bc030dc.js → index.85791bcb.js} +3 -3
- package/contexts/ModuleDictionaryContext/{index.9ddf623f.js → index.b7c026b1.js} +22 -22
- package/contexts/ModulePrivilegesContext/{index.00d6c33d.js → index.7abed4dc.js} +3 -3
- package/contexts/ModuleSkeletonContext/{index.7504b2e4.js → index.18801a35.js} +3 -3
- package/hooks/useDomain/{index.61164dd5.js → index.9e5dc4a4.js} +1 -1
- package/hooks/useModuleDictionary/{index.c4454f46.js → index.93177cf8.js} +1 -1
- package/hooks/useModulePrivileges/{index.7a9da551.js → index.4b22874b.js} +1 -1
- package/hooks/useModuleSkeleton/{index.07843a4f.js → index.0429108c.js} +1 -1
- package/index.js +8 -8
- package/package.json +1 -1
|
@@ -4,9 +4,9 @@ import "../EnvironmentContext/index.7045c64f.js";
|
|
|
4
4
|
import "../FlagsContext/index.5f795859.js";
|
|
5
5
|
import { u as T } from "../../hooks/useHostTools/index.66d9a667.js";
|
|
6
6
|
import "../DomainContext/index.8d81b39c.js";
|
|
7
|
-
import "../ModuleDictionaryContext/index.
|
|
8
|
-
import "../ModulePrivilegesContext/index.
|
|
9
|
-
import "../ModuleSkeletonContext/index.
|
|
7
|
+
import "../ModuleDictionaryContext/index.b7c026b1.js";
|
|
8
|
+
import "../ModulePrivilegesContext/index.7abed4dc.js";
|
|
9
|
+
import "../ModuleSkeletonContext/index.18801a35.js";
|
|
10
10
|
import "../NetworkContext/index.d1dfbc3a.js";
|
|
11
11
|
import { u as f } from "../../hooks/usePropageteMF/index.c440b829.js";
|
|
12
12
|
import { E as i } from "../../types/index.42c24946.js";
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { createContext as y, useState as F, useEffect as L, useCallback as
|
|
1
|
+
import { createContext as y, useState as F, useEffect as L, useCallback as m } from "react";
|
|
2
2
|
import "../BaseContext/index.f9cdc955.js";
|
|
3
3
|
import { u as M } from "../../hooks/useEnvironment/index.04dca988.js";
|
|
4
4
|
import { u as N } from "../../hooks/useFlags/index.a986729d.js";
|
|
5
5
|
import { u as P } from "../../hooks/useHostTools/index.66d9a667.js";
|
|
6
6
|
import "../DomainContext/index.8d81b39c.js";
|
|
7
|
-
import "../ModulePrivilegesContext/index.
|
|
8
|
-
import "../ModuleSkeletonContext/index.
|
|
7
|
+
import "../ModulePrivilegesContext/index.7abed4dc.js";
|
|
8
|
+
import "../ModuleSkeletonContext/index.18801a35.js";
|
|
9
9
|
import { u as _ } from "../../hooks/useNetwork/index.acbf28d5.js";
|
|
10
|
-
import "../DomainCountryContext/index.
|
|
10
|
+
import "../DomainCountryContext/index.85791bcb.js";
|
|
11
11
|
import { C as x } from "../../types/index.42c24946.js";
|
|
12
12
|
import { jsx as A } from "react/jsx-runtime";
|
|
13
13
|
const E = y(null);
|
|
14
|
-
function
|
|
14
|
+
function Y(u) {
|
|
15
15
|
const {
|
|
16
|
-
children:
|
|
16
|
+
children: l,
|
|
17
17
|
componentsDictionary: c,
|
|
18
18
|
moduleId: i,
|
|
19
19
|
moduleNameField: s = "module_name",
|
|
20
20
|
currentLang: d = "en",
|
|
21
21
|
isAuth: a = !0
|
|
22
|
-
} =
|
|
22
|
+
} = u, {
|
|
23
23
|
addFlag: p
|
|
24
24
|
} = N(), [r, f] = F(void 0), {
|
|
25
25
|
domain_token: g
|
|
@@ -30,7 +30,7 @@ function U(l) {
|
|
|
30
30
|
networkOperation: v
|
|
31
31
|
} = _();
|
|
32
32
|
L(() => {
|
|
33
|
-
let
|
|
33
|
+
let t = !0;
|
|
34
34
|
return D(), v({
|
|
35
35
|
method: "GET",
|
|
36
36
|
endPoint: a ? `dictionaries/${i}` : `na/dictionaries/${i}`,
|
|
@@ -40,39 +40,39 @@ function U(l) {
|
|
|
40
40
|
domain_token: g
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
}).then((
|
|
44
|
-
|
|
45
|
-
...
|
|
46
|
-
}),
|
|
43
|
+
}).then((o) => {
|
|
44
|
+
t && (f({
|
|
45
|
+
...o
|
|
46
|
+
}), p(x.FLAG_DICTIONARY_LOADED));
|
|
47
47
|
}).finally(() => {
|
|
48
48
|
h();
|
|
49
49
|
}), function() {
|
|
50
|
-
|
|
50
|
+
t = !1;
|
|
51
51
|
};
|
|
52
52
|
}, [d]);
|
|
53
|
-
const n =
|
|
53
|
+
const n = m((t) => {
|
|
54
54
|
if (r === void 0)
|
|
55
55
|
return "";
|
|
56
|
-
if (
|
|
56
|
+
if (t === "")
|
|
57
57
|
return "No key";
|
|
58
|
-
let
|
|
59
|
-
const e =
|
|
58
|
+
let o;
|
|
59
|
+
const e = t.split(".");
|
|
60
60
|
try {
|
|
61
|
-
e.length === 1 && (
|
|
61
|
+
e.length === 1 && (o = r.data[t]), e.length === 2 && (o = r[e[0]][e[1]]);
|
|
62
62
|
} catch {
|
|
63
63
|
}
|
|
64
|
-
return
|
|
65
|
-
}, [r]), C =
|
|
64
|
+
return o || `N_D:[${t}]`;
|
|
65
|
+
}, [r]), C = m(() => n(s), [s, n]);
|
|
66
66
|
return /* @__PURE__ */ A(E.Provider, {
|
|
67
67
|
value: {
|
|
68
68
|
moduleDictionary: r,
|
|
69
69
|
getLabel: n,
|
|
70
70
|
getModuleLabel: C
|
|
71
71
|
},
|
|
72
|
-
children:
|
|
72
|
+
children: l
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
75
|
export {
|
|
76
76
|
E as M,
|
|
77
|
-
|
|
77
|
+
Y as a
|
|
78
78
|
};
|
|
@@ -4,10 +4,10 @@ import "../EnvironmentContext/index.7045c64f.js";
|
|
|
4
4
|
import { u as v } from "../../hooks/useFlags/index.a986729d.js";
|
|
5
5
|
import { u as E } from "../../hooks/useHostTools/index.66d9a667.js";
|
|
6
6
|
import "../DomainContext/index.8d81b39c.js";
|
|
7
|
-
import "../ModuleDictionaryContext/index.
|
|
8
|
-
import "../ModuleSkeletonContext/index.
|
|
7
|
+
import "../ModuleDictionaryContext/index.b7c026b1.js";
|
|
8
|
+
import "../ModuleSkeletonContext/index.18801a35.js";
|
|
9
9
|
import { u as h } from "../../hooks/useNetwork/index.acbf28d5.js";
|
|
10
|
-
import "../DomainCountryContext/index.
|
|
10
|
+
import "../DomainCountryContext/index.85791bcb.js";
|
|
11
11
|
import { C as i } from "../../types/index.42c24946.js";
|
|
12
12
|
import { jsx as L } from "react/jsx-runtime";
|
|
13
13
|
const C = f(null);
|
|
@@ -4,10 +4,10 @@ import "../EnvironmentContext/index.7045c64f.js";
|
|
|
4
4
|
import { a as m } from "../../hooks/useFlags/index.a986729d.js";
|
|
5
5
|
import "../HostToolsContext/index.499db832.js";
|
|
6
6
|
import "../DomainContext/index.8d81b39c.js";
|
|
7
|
-
import "../ModuleDictionaryContext/index.
|
|
8
|
-
import "../ModulePrivilegesContext/index.
|
|
7
|
+
import "../ModuleDictionaryContext/index.b7c026b1.js";
|
|
8
|
+
import "../ModulePrivilegesContext/index.7abed4dc.js";
|
|
9
9
|
import "../NetworkContext/index.d1dfbc3a.js";
|
|
10
|
-
import "../DomainCountryContext/index.
|
|
10
|
+
import "../DomainCountryContext/index.85791bcb.js";
|
|
11
11
|
import { jsx as n } from "react/jsx-runtime";
|
|
12
12
|
const p = i(null);
|
|
13
13
|
function P(o) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useContext as t } from "react";
|
|
2
2
|
import { D as n } from "../../contexts/DomainContext/index.8d81b39c.js";
|
|
3
|
-
import { D as e } from "../../contexts/DomainCountryContext/index.
|
|
3
|
+
import { D as e } from "../../contexts/DomainCountryContext/index.85791bcb.js";
|
|
4
4
|
const m = () => {
|
|
5
5
|
const o = t(n);
|
|
6
6
|
if (!o)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState as n, useContext as s, useEffect as u } from "react";
|
|
2
|
-
import { M as r } from "../../contexts/ModuleSkeletonContext/index.
|
|
2
|
+
import { M as r } from "../../contexts/ModuleSkeletonContext/index.18801a35.js";
|
|
3
3
|
const S = () => {
|
|
4
4
|
const [t, o] = n(!0), e = s(r);
|
|
5
5
|
if (!e)
|
package/index.js
CHANGED
|
@@ -4,20 +4,20 @@ import { E as p, a as l } from "./contexts/EnvironmentContext/index.7045c64f.js"
|
|
|
4
4
|
import { F as d, a as v } from "./contexts/FlagsContext/index.5f795859.js";
|
|
5
5
|
import { H as P, a as C } from "./contexts/HostToolsContext/index.499db832.js";
|
|
6
6
|
import { D, a as S } from "./contexts/DomainContext/index.8d81b39c.js";
|
|
7
|
-
import { M as y, a as F } from "./contexts/ModuleDictionaryContext/index.
|
|
8
|
-
import { M as k, a as B } from "./contexts/ModulePrivilegesContext/index.
|
|
9
|
-
import { M as H, a as N } from "./contexts/ModuleSkeletonContext/index.
|
|
7
|
+
import { M as y, a as F } from "./contexts/ModuleDictionaryContext/index.b7c026b1.js";
|
|
8
|
+
import { M as k, a as B } from "./contexts/ModulePrivilegesContext/index.7abed4dc.js";
|
|
9
|
+
import { M as H, a as N } from "./contexts/ModuleSkeletonContext/index.18801a35.js";
|
|
10
10
|
import { N as T, a as h } from "./contexts/NetworkContext/index.d1dfbc3a.js";
|
|
11
|
-
import { D as O, a as b } from "./contexts/DomainCountryContext/index.
|
|
11
|
+
import { D as O, a as b } from "./contexts/DomainCountryContext/index.85791bcb.js";
|
|
12
12
|
import { u as q } from "./hooks/useBase/index.4375dcef.js";
|
|
13
13
|
import { u as A } from "./hooks/useEnvironment/index.04dca988.js";
|
|
14
14
|
import { u as I, a as J } from "./hooks/useFlags/index.a986729d.js";
|
|
15
15
|
import { u as Q } from "./hooks/useHostTools/index.66d9a667.js";
|
|
16
|
-
import { u as U, a as V } from "./hooks/useDomain/index.
|
|
16
|
+
import { u as U, a as V } from "./hooks/useDomain/index.9e5dc4a4.js";
|
|
17
17
|
import { u as Y, a as Z } from "./hooks/useLocalStorage/index.48b47dca.js";
|
|
18
|
-
import { u as $ } from "./hooks/useModuleDictionary/index.
|
|
19
|
-
import { u as eo } from "./hooks/useModulePrivileges/index.
|
|
20
|
-
import { u as ao } from "./hooks/useModuleSkeleton/index.
|
|
18
|
+
import { u as $ } from "./hooks/useModuleDictionary/index.93177cf8.js";
|
|
19
|
+
import { u as eo } from "./hooks/useModulePrivileges/index.4b22874b.js";
|
|
20
|
+
import { u as ao } from "./hooks/useModuleSkeleton/index.0429108c.js";
|
|
21
21
|
import { u as so } from "./hooks/useNetwork/index.acbf28d5.js";
|
|
22
22
|
import { i as no, u as mo } from "./hooks/usePaginate/index.030f3b27.js";
|
|
23
23
|
import { u as xo } from "./hooks/usePropageteMF/index.c440b829.js";
|