@m4l/core 0.1.26 → 0.1.28
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/BaseContext/index.d.ts +2 -2
- package/contexts/DomainCountryContext/{index.de35d791.js → index.ecb611fc.js} +3 -3
- package/contexts/ModuleDictionaryContext/{index.0c69445f.js → index.f41571ce.js} +20 -20
- package/contexts/ModuleDictionaryContext/types.d.ts +1 -1
- package/contexts/ModulePrivilegesContext/{index.40fc9b6b.js → index.d3d30a03.js} +3 -3
- package/contexts/ModuleSkeletonContext/{index.1f894dc3.js → index.149e2a51.js} +3 -3
- package/hooks/useBase/index.d.ts +1 -2
- package/hooks/useDomain/{index.1971480c.js → index.5038ca3e.js} +1 -1
- package/hooks/useModuleDictionary/{index.2dc80b62.js → index.0c7bc6a3.js} +1 -1
- package/hooks/useModulePrivileges/{index.f1272511.js → index.9bb35cc7.js} +1 -1
- package/hooks/useModuleSkeleton/{index.c1c6e2cc.js → index.30755a98.js} +1 -1
- package/index.js +8 -8
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
declare const BaseContext: import("react").Context<
|
|
2
|
+
import { BaseProviderProps } from './types';
|
|
3
|
+
declare const BaseContext: import("react").Context<unknown>;
|
|
4
4
|
declare function BaseProvider<T>(props: BaseProviderProps<T>): JSX.Element;
|
|
5
5
|
export { BaseProvider, BaseContext };
|
|
@@ -4,9 +4,9 @@ import "../EnvironmentContext/index.7045c64f.js";
|
|
|
4
4
|
import "../FlagsContext/index.5f795859.js";
|
|
5
5
|
import { u as N } from "../../hooks/useHostTools/index.66d9a667.js";
|
|
6
6
|
import "../DomainContext/index.d09ee435.js";
|
|
7
|
-
import "../ModuleDictionaryContext/index.
|
|
8
|
-
import "../ModulePrivilegesContext/index.
|
|
9
|
-
import "../ModuleSkeletonContext/index.
|
|
7
|
+
import "../ModuleDictionaryContext/index.f41571ce.js";
|
|
8
|
+
import "../ModulePrivilegesContext/index.d3d30a03.js";
|
|
9
|
+
import "../ModuleSkeletonContext/index.149e2a51.js";
|
|
10
10
|
import "../NetworkContext/index.d1dfbc3a.js";
|
|
11
11
|
import { E as n } from "../../types/index.5f1b0c45.js";
|
|
12
12
|
import { jsx as f } from "react/jsx-runtime";
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { createContext as y, useState as
|
|
1
|
+
import { createContext as y, useState as F, useEffect as L, useCallback as u } from "react";
|
|
2
2
|
import "../../index.js";
|
|
3
|
-
import { u as
|
|
4
|
-
import { u as
|
|
5
|
-
import { u as
|
|
3
|
+
import { u as M } from "../../hooks/useEnvironment/index.04dca988.js";
|
|
4
|
+
import { u as N } from "../../hooks/useFlags/index.a986729d.js";
|
|
5
|
+
import { u as P } from "../../hooks/useHostTools/index.66d9a667.js";
|
|
6
6
|
import "../DomainContext/index.d09ee435.js";
|
|
7
|
-
import "../ModulePrivilegesContext/index.
|
|
8
|
-
import "../ModuleSkeletonContext/index.
|
|
9
|
-
import { u as
|
|
10
|
-
import "../DomainCountryContext/index.
|
|
11
|
-
import { C as
|
|
12
|
-
import { jsx as
|
|
13
|
-
const
|
|
7
|
+
import "../ModulePrivilegesContext/index.d3d30a03.js";
|
|
8
|
+
import "../ModuleSkeletonContext/index.149e2a51.js";
|
|
9
|
+
import { u as _ } from "../../hooks/useNetwork/index.acbf28d5.js";
|
|
10
|
+
import "../DomainCountryContext/index.ecb611fc.js";
|
|
11
|
+
import { C as x } from "../../types/index.5f1b0c45.js";
|
|
12
|
+
import { jsx as A } from "react/jsx-runtime";
|
|
13
|
+
const E = y(null);
|
|
14
14
|
function Y(l) {
|
|
15
15
|
const {
|
|
16
16
|
children: c,
|
|
17
17
|
componentsDictionary: d,
|
|
18
18
|
moduleId: i,
|
|
19
|
-
|
|
19
|
+
moduleNameField: s = "module_name",
|
|
20
20
|
currentLang: a = "en",
|
|
21
21
|
isAuth: m = !0
|
|
22
22
|
} = l, {
|
|
23
23
|
addFlag: p
|
|
24
|
-
} =
|
|
24
|
+
} = N(), [r, f] = F(void 0), {
|
|
25
25
|
domain_token: g
|
|
26
|
-
} =
|
|
26
|
+
} = M(), {
|
|
27
27
|
startProgress: D,
|
|
28
28
|
stopProgress: h
|
|
29
|
-
} =
|
|
29
|
+
} = P(), {
|
|
30
30
|
networkOperation: v
|
|
31
|
-
} =
|
|
32
|
-
|
|
31
|
+
} = _();
|
|
32
|
+
L(() => {
|
|
33
33
|
let t = !0;
|
|
34
34
|
return D(), v({
|
|
35
35
|
method: "GET",
|
|
@@ -44,7 +44,7 @@ function Y(l) {
|
|
|
44
44
|
}).then((o) => {
|
|
45
45
|
t && (f({
|
|
46
46
|
...o
|
|
47
|
-
}), p(
|
|
47
|
+
}), p(x.FLAG_DICTIONARY_LOADED));
|
|
48
48
|
}).finally(() => {
|
|
49
49
|
h();
|
|
50
50
|
}), function() {
|
|
@@ -64,7 +64,7 @@ function Y(l) {
|
|
|
64
64
|
}
|
|
65
65
|
return o || `N_D:[${t}]`;
|
|
66
66
|
}, [r]), C = u(() => n(s), [s, n]);
|
|
67
|
-
return /* @__PURE__ */ E
|
|
67
|
+
return /* @__PURE__ */ A(E.Provider, {
|
|
68
68
|
value: {
|
|
69
69
|
moduleDictionary: r,
|
|
70
70
|
getLabel: n,
|
|
@@ -74,6 +74,6 @@ function Y(l) {
|
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
76
|
export {
|
|
77
|
-
|
|
77
|
+
E as M,
|
|
78
78
|
Y as a
|
|
79
79
|
};
|
|
@@ -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.d09ee435.js";
|
|
7
|
-
import "../ModuleDictionaryContext/index.
|
|
8
|
-
import "../ModuleSkeletonContext/index.
|
|
7
|
+
import "../ModuleDictionaryContext/index.f41571ce.js";
|
|
8
|
+
import "../ModuleSkeletonContext/index.149e2a51.js";
|
|
9
9
|
import { u as h } from "../../hooks/useNetwork/index.acbf28d5.js";
|
|
10
|
-
import "../DomainCountryContext/index.
|
|
10
|
+
import "../DomainCountryContext/index.ecb611fc.js";
|
|
11
11
|
import { C as i } from "../../types/index.5f1b0c45.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.d09ee435.js";
|
|
7
|
-
import "../ModuleDictionaryContext/index.
|
|
8
|
-
import "../ModulePrivilegesContext/index.
|
|
7
|
+
import "../ModuleDictionaryContext/index.f41571ce.js";
|
|
8
|
+
import "../ModulePrivilegesContext/index.d3d30a03.js";
|
|
9
9
|
import "../NetworkContext/index.d1dfbc3a.js";
|
|
10
|
-
import "../DomainCountryContext/index.
|
|
10
|
+
import "../DomainCountryContext/index.ecb611fc.js";
|
|
11
11
|
import { jsx as n } from "react/jsx-runtime";
|
|
12
12
|
const p = i(null);
|
|
13
13
|
function P(o) {
|
package/hooks/useBase/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useContext as t } from "react";
|
|
2
2
|
import { D as n } from "../../contexts/DomainContext/index.d09ee435.js";
|
|
3
|
-
import { D as e } from "../../contexts/DomainCountryContext/index.
|
|
3
|
+
import { D as e } from "../../contexts/DomainCountryContext/index.ecb611fc.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.149e2a51.js";
|
|
3
3
|
const S = () => {
|
|
4
4
|
const [t, o] = n(!0), e = s(r);
|
|
5
5
|
if (!e)
|
package/index.js
CHANGED
|
@@ -3,20 +3,20 @@ import { E as g, a as C } from "./contexts/EnvironmentContext/index.7045c64f.js"
|
|
|
3
3
|
import { F as c, a as M } from "./contexts/FlagsContext/index.5f795859.js";
|
|
4
4
|
import { H as S, a as y } from "./contexts/HostToolsContext/index.499db832.js";
|
|
5
5
|
import { D as F, a as k } from "./contexts/DomainContext/index.d09ee435.js";
|
|
6
|
-
import { M as w, a as L } from "./contexts/ModuleDictionaryContext/index.
|
|
7
|
-
import { M as N, a as h } from "./contexts/ModulePrivilegesContext/index.
|
|
8
|
-
import { M as b, a as j } from "./contexts/ModuleSkeletonContext/index.
|
|
6
|
+
import { M as w, a as L } from "./contexts/ModuleDictionaryContext/index.f41571ce.js";
|
|
7
|
+
import { M as N, a as h } from "./contexts/ModulePrivilegesContext/index.d3d30a03.js";
|
|
8
|
+
import { M as b, a as j } from "./contexts/ModuleSkeletonContext/index.149e2a51.js";
|
|
9
9
|
import { N as W, a as q } from "./contexts/NetworkContext/index.d1dfbc3a.js";
|
|
10
|
-
import { D as A, a as G } from "./contexts/DomainCountryContext/index.
|
|
10
|
+
import { D as A, a as G } from "./contexts/DomainCountryContext/index.ecb611fc.js";
|
|
11
11
|
import { jsx as n } from "react/jsx-runtime";
|
|
12
12
|
import { u as J } from "./hooks/useEnvironment/index.04dca988.js";
|
|
13
13
|
import { u as Q, a as R } from "./hooks/useFlags/index.a986729d.js";
|
|
14
14
|
import { u as V } from "./hooks/useHostTools/index.66d9a667.js";
|
|
15
|
-
import { u as Y, a as Z } from "./hooks/useDomain/index.
|
|
15
|
+
import { u as Y, a as Z } from "./hooks/useDomain/index.5038ca3e.js";
|
|
16
16
|
import { u as $, a as oo } from "./hooks/useLocalStorage/index.281b7ae8.js";
|
|
17
|
-
import { u as ro } from "./hooks/useModuleDictionary/index.
|
|
18
|
-
import { u as ao } from "./hooks/useModulePrivileges/index.
|
|
19
|
-
import { u as no } from "./hooks/useModuleSkeleton/index.
|
|
17
|
+
import { u as ro } from "./hooks/useModuleDictionary/index.0c7bc6a3.js";
|
|
18
|
+
import { u as ao } from "./hooks/useModulePrivileges/index.9bb35cc7.js";
|
|
19
|
+
import { u as no } from "./hooks/useModuleSkeleton/index.30755a98.js";
|
|
20
20
|
import { u as uo } from "./hooks/useNetwork/index.acbf28d5.js";
|
|
21
21
|
import { i as xo, u as lo } from "./hooks/usePaginate/index.7cb17527.js";
|
|
22
22
|
import { C as fo, E as vo } from "./types/index.5f1b0c45.js";
|