@m4l/core 0.1.54 → 0.1.55
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.191fe5d0.js → index.e24c22eb.js} +2 -2
- package/contexts/EnvironmentContext/index.7a3e7832.js +29 -0
- package/contexts/ModuleDictionaryContext/{index.3acb60fd.js → index.02bf4808.js} +2 -2
- package/contexts/ModulePrivilegesContext/{index.2b5a78db.js → index.d3520d63.js} +1 -1
- package/contexts/NetworkContext/{index.fac5bf0f.js → index.611d762f.js} +1 -1
- package/hooks/useDomain/{index.609145b5.js → index.4bcd994f.js} +1 -1
- package/hooks/useEnvironment/{index.ffe9fb07.js → index.a2e0af14.js} +1 -1
- package/hooks/useModuleDictionary/{index.232db9e0.js → index.b4e028ef.js} +1 -1
- package/hooks/useModulePrivileges/{index.426a67a9.js → index.4a679647.js} +1 -1
- package/hooks/useNetwork/{index.eff91747.js → index.65526925.js} +1 -1
- package/hooks/usePaginate/{index.95627497.js → index.cb46986d.js} +1 -1
- package/index.js +11 -11
- package/package.json +1 -1
- package/contexts/EnvironmentContext/index.07e998f7.js +0 -29
|
@@ -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.a2e0af14.js";
|
|
4
|
+
import { u as v } from "../../hooks/useNetwork/index.65526925.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);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { createContext as i, useCallback as l, useState as u } from "react";
|
|
2
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
3
|
+
const m = i(null);
|
|
4
|
+
function d(e) {
|
|
5
|
+
const {
|
|
6
|
+
children: o,
|
|
7
|
+
...s
|
|
8
|
+
} = e, n = l((t) => {
|
|
9
|
+
if (e.isIsolatation)
|
|
10
|
+
return `${e.host}/module/assets/icons/${t}`;
|
|
11
|
+
if (e?.isMicroFrontend) {
|
|
12
|
+
if (!e.mfProps)
|
|
13
|
+
throw new Error("mfProps is required");
|
|
14
|
+
return e?.isLocalhost ? `https://${window.location.hostname}:${e.mfProps.debugPort}/module/assets/icons/${t}` : `mf/${e.mfProps.moduleId}/assets/icons/${t}`;
|
|
15
|
+
} else
|
|
16
|
+
return `mf/module/assets/icons/${t}`;
|
|
17
|
+
}, []), [r] = u({
|
|
18
|
+
...s,
|
|
19
|
+
getModuleUrlIconAsset: n
|
|
20
|
+
});
|
|
21
|
+
return /* @__PURE__ */ a(m.Provider, {
|
|
22
|
+
value: r,
|
|
23
|
+
children: o
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
m as E,
|
|
28
|
+
d as a
|
|
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.a2e0af14.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.65526925.js";
|
|
8
8
|
const E = y(null);
|
|
9
9
|
function j(l) {
|
|
10
10
|
const {
|
|
@@ -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.65526925.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.a2e0af14.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.e24c22eb.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.65526925.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.7a3e7832.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.611d762f.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.e24c22eb.js";
|
|
8
|
+
import { M as H, a as N } from "./contexts/ModuleDictionaryContext/index.02bf4808.js";
|
|
9
|
+
import { M as T, a as h } from "./contexts/ModulePrivilegesContext/index.d3520d63.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.a2e0af14.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.4bcd994f.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.b4e028ef.js";
|
|
19
|
+
import { u as to } from "./hooks/useModulePrivileges/index.4a679647.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.65526925.js";
|
|
22
|
+
import { i as xo, u as po } from "./hooks/usePaginate/index.cb46986d.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";
|
package/package.json
CHANGED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { createContext as i, useCallback as l, useState as u } from "react";
|
|
2
|
-
import { jsx as a } from "react/jsx-runtime";
|
|
3
|
-
const d = i(null);
|
|
4
|
-
function f(t) {
|
|
5
|
-
const {
|
|
6
|
-
children: o,
|
|
7
|
-
...s
|
|
8
|
-
} = t, n = l((e) => {
|
|
9
|
-
if (t.isIsolatation)
|
|
10
|
-
return `${t.host}/module/assets/icons/${e}`;
|
|
11
|
-
if (t?.isMicroFrontend) {
|
|
12
|
-
if (!t.mfProps)
|
|
13
|
-
throw new Error("mfProps is required");
|
|
14
|
-
return t?.isLocalhost ? `https://${window.location.hostname}:${t.mfProps.debugPort}/module/assets/icons/${e}` : `module/${t.mfProps.moduleId}/module/assets/icons/${e}`;
|
|
15
|
-
} else
|
|
16
|
-
return `https://${window.location.host}/mf/assets/icons/${e}`;
|
|
17
|
-
}, []), [r] = u({
|
|
18
|
-
...s,
|
|
19
|
-
getModuleUrlIconAsset: n
|
|
20
|
-
});
|
|
21
|
-
return /* @__PURE__ */ a(d.Provider, {
|
|
22
|
-
value: r,
|
|
23
|
-
children: o
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
export {
|
|
27
|
-
d as E,
|
|
28
|
-
f as a
|
|
29
|
-
};
|