@m4l/core 0.1.52 → 0.1.54
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.191fe5d0.js} +2 -2
- package/contexts/EnvironmentContext/{index.421e4f74.js → index.07e998f7.js} +8 -8
- package/contexts/ModuleDictionaryContext/{index.e6103934.js → index.3acb60fd.js} +2 -2
- package/contexts/ModulePrivilegesContext/{index.ec71c5bb.js → index.2b5a78db.js} +1 -1
- package/contexts/NetworkContext/{index.583e4f85.js → index.fac5bf0f.js} +1 -1
- package/hooks/useDomain/{index.2ef00a51.js → index.609145b5.js} +1 -1
- package/hooks/useEnvironment/{index.f4050a0c.js → index.ffe9fb07.js} +1 -1
- package/hooks/useModuleDictionary/{index.ee9282aa.js → index.232db9e0.js} +1 -1
- package/hooks/useModulePrivileges/{index.125a7496.js → index.426a67a9.js} +1 -1
- package/hooks/useNetwork/{index.e1736c31.js → index.eff91747.js} +1 -1
- package/hooks/usePaginate/{index.13fa70ac.js → index.95627497.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.ffe9fb07.js";
|
|
4
|
+
import { u as v } from "../../hooks/useNetwork/index.eff91747.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,19 +1,19 @@
|
|
|
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
3
|
const d = i(null);
|
|
4
|
-
function f(
|
|
4
|
+
function f(t) {
|
|
5
5
|
const {
|
|
6
6
|
children: o,
|
|
7
7
|
...s
|
|
8
|
-
} =
|
|
9
|
-
if (
|
|
10
|
-
return `${
|
|
11
|
-
if (
|
|
12
|
-
if (!
|
|
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
13
|
throw new Error("mfProps is required");
|
|
14
|
-
return
|
|
14
|
+
return t?.isLocalhost ? `https://${window.location.hostname}:${t.mfProps.debugPort}/module/assets/icons/${e}` : `module/${t.mfProps.moduleId}/module/assets/icons/${e}`;
|
|
15
15
|
} else
|
|
16
|
-
return `
|
|
16
|
+
return `https://${window.location.host}/mf/assets/icons/${e}`;
|
|
17
17
|
}, []), [r] = u({
|
|
18
18
|
...s,
|
|
19
19
|
getModuleUrlIconAsset: n
|
|
@@ -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.ffe9fb07.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.eff91747.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.eff91747.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.ffe9fb07.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.191fe5d0.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.eff91747.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.07e998f7.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.fac5bf0f.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.191fe5d0.js";
|
|
8
|
+
import { M as H, a as N } from "./contexts/ModuleDictionaryContext/index.3acb60fd.js";
|
|
9
|
+
import { M as T, a as h } from "./contexts/ModulePrivilegesContext/index.2b5a78db.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.ffe9fb07.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.609145b5.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.232db9e0.js";
|
|
19
|
+
import { u as to } from "./hooks/useModulePrivileges/index.426a67a9.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.eff91747.js";
|
|
22
|
+
import { i as xo, u as po } from "./hooks/usePaginate/index.95627497.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";
|