@m4l/core 0.1.37 → 0.1.39
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 +1 -1
- package/contexts/DomainContext/{index.d34b500f.js → index.8d81b39c.js} +8 -7
- package/contexts/DomainContext/index.d.ts +1 -1
- package/contexts/DomainContext/types.d.ts +1 -0
- package/contexts/DomainCountryContext/{index.5f46a11a.js → index.85791bcb.js} +4 -4
- package/contexts/DomainCountryContext/index.d.ts +1 -1
- package/contexts/EnvironmentContext/index.d.ts +1 -1
- package/contexts/FlagsContext/index.d.ts +1 -1
- package/contexts/HostToolsContext/index.d.ts +1 -1
- package/contexts/ModuleDictionaryContext/{index.8ba9981b.js → index.b7c026b1.js} +4 -4
- package/contexts/ModuleDictionaryContext/index.d.ts +1 -1
- package/contexts/ModulePrivilegesContext/{index.d1286210.js → index.7abed4dc.js} +4 -4
- package/contexts/ModulePrivilegesContext/index.d.ts +1 -1
- package/contexts/ModuleSkeletonContext/{index.f3fbaa68.js → index.18801a35.js} +4 -4
- package/contexts/ModuleSkeletonContext/index.d.ts +1 -1
- package/contexts/NetworkContext/index.d.ts +1 -1
- package/hooks/useDomain/{index.af32231a.js → index.9e5dc4a4.js} +2 -2
- package/hooks/useModuleDictionary/{index.a3bb2d5e.js → index.93177cf8.js} +1 -1
- package/hooks/useModulePrivileges/{index.5a1a1a1e.js → index.4b22874b.js} +1 -1
- package/hooks/useModuleSkeleton/{index.8e948037.js → index.0429108c.js} +1 -1
- package/index.js +9 -9
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { BaseProviderProps } from './types';
|
|
3
3
|
declare const BaseContext: import("react").Context<unknown>;
|
|
4
|
-
declare function BaseProvider<T>(props: BaseProviderProps<T>): JSX.Element;
|
|
4
|
+
declare function BaseProvider<T>(props: BaseProviderProps<T>): import("react").JSX.Element;
|
|
5
5
|
export { BaseProvider, BaseContext };
|
|
@@ -11,30 +11,31 @@ function A(e) {
|
|
|
11
11
|
} = e, {
|
|
12
12
|
domain_token: r,
|
|
13
13
|
host_static_assets: n,
|
|
14
|
-
environment_assets:
|
|
14
|
+
environment_assets: a
|
|
15
15
|
} = D(), {
|
|
16
16
|
addFlag: l
|
|
17
17
|
} = g(), [i, c] = s(!1), [_, u] = s({
|
|
18
18
|
company_logo_small_url: "",
|
|
19
19
|
company_logo_normal_url: "",
|
|
20
|
-
name: ""
|
|
20
|
+
name: "",
|
|
21
|
+
slogan: ""
|
|
21
22
|
}), {
|
|
22
23
|
networkOperation: d
|
|
23
24
|
} = v();
|
|
24
25
|
return p(() => {
|
|
25
|
-
let
|
|
26
|
+
let t = !0;
|
|
26
27
|
return d({
|
|
27
28
|
method: "GET",
|
|
28
29
|
endPoint: `na/info/${r}`
|
|
29
30
|
}).then((o) => {
|
|
30
|
-
|
|
31
|
+
t && (u({
|
|
31
32
|
...o.data,
|
|
32
|
-
company_logo_normal_url: o.data.company_logo_normal_url ?? `${n}/${
|
|
33
|
-
company_logo_small_url: o.data.company_logo_small_url ?? `${n}/${
|
|
33
|
+
company_logo_normal_url: o.data.company_logo_normal_url ?? `${n}/${a}/frontend/commons/assets/icons/isologo.svg`,
|
|
34
|
+
company_logo_small_url: o.data.company_logo_small_url ?? `${n}/${a}/frontend/commons/assets/icons/isotipo_m4l.svg`
|
|
34
35
|
}), l(y.FLAG_DOMAIN_LOADED), c(!0));
|
|
35
36
|
}).finally(() => {
|
|
36
37
|
}), function() {
|
|
37
|
-
|
|
38
|
+
t = !1;
|
|
38
39
|
};
|
|
39
40
|
}, []), /* @__PURE__ */ h($.Provider, {
|
|
40
41
|
value: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { DomainProviderProps, Domain } from './types';
|
|
3
3
|
declare const DomainContext: import("react").Context<Domain | null>;
|
|
4
|
-
declare function DomainProvider(props: DomainProviderProps): JSX.Element;
|
|
4
|
+
declare function DomainProvider(props: DomainProviderProps): import("react").JSX.Element;
|
|
5
5
|
export { DomainProvider, DomainContext };
|
|
@@ -3,10 +3,10 @@ import "../BaseContext/index.f9cdc955.js";
|
|
|
3
3
|
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
|
-
import "../DomainContext/index.
|
|
7
|
-
import "../ModuleDictionaryContext/index.
|
|
8
|
-
import "../ModulePrivilegesContext/index.
|
|
9
|
-
import "../ModuleSkeletonContext/index.
|
|
6
|
+
import "../DomainContext/index.8d81b39c.js";
|
|
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,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { DomainCountryContextType, DomainCountryProviderProps } from './types';
|
|
3
3
|
declare const DomainCountryContext: import("react").Context<DomainCountryContextType | null>;
|
|
4
|
-
declare function DomainCountryProvider(props: DomainCountryProviderProps): JSX.Element;
|
|
4
|
+
declare function DomainCountryProvider(props: DomainCountryProviderProps): import("react").JSX.Element;
|
|
5
5
|
export { DomainCountryProvider, DomainCountryContext };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { EnvironmentProviderProps } from './types';
|
|
3
3
|
declare const EnvironmentContext: import("react").Context<import("../..").EnvironmentType | null>;
|
|
4
|
-
declare function EnvironmentProvider(props: EnvironmentProviderProps): JSX.Element;
|
|
4
|
+
declare function EnvironmentProvider(props: EnvironmentProviderProps): import("react").JSX.Element;
|
|
5
5
|
export { EnvironmentProvider, EnvironmentContext };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { FlagsContextProps, FlagsProviderProps } from './types';
|
|
3
3
|
declare const FlagsContext: import("react").Context<FlagsContextProps | null>;
|
|
4
|
-
declare function FlagsProvider({ children }: FlagsProviderProps): JSX.Element;
|
|
4
|
+
declare function FlagsProvider({ children }: FlagsProviderProps): import("react").JSX.Element;
|
|
5
5
|
export { FlagsProvider, FlagsContext };
|
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
import { HostToolsType } from '../../types';
|
|
3
3
|
import type { HostToolsProviderProps } from './types';
|
|
4
4
|
declare const HostToolsContext: import("react").Context<HostToolsType | null>;
|
|
5
|
-
declare function HostToolsProvider(props: HostToolsProviderProps): JSX.Element;
|
|
5
|
+
declare function HostToolsProvider(props: HostToolsProviderProps): import("react").JSX.Element;
|
|
6
6
|
export { HostToolsProvider, HostToolsContext };
|
|
@@ -3,11 +3,11 @@ 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
|
-
import "../DomainContext/index.
|
|
7
|
-
import "../ModulePrivilegesContext/index.
|
|
8
|
-
import "../ModuleSkeletonContext/index.
|
|
6
|
+
import "../DomainContext/index.8d81b39c.js";
|
|
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);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ModuleDictionaryContextProps, ModuleDictionaryProviderProps } from './types';
|
|
3
3
|
declare const ModuleDictionaryContext: import("react").Context<ModuleDictionaryContextProps | null>;
|
|
4
|
-
declare function ModuleDictionaryProvider(props: ModuleDictionaryProviderProps): JSX.Element;
|
|
4
|
+
declare function ModuleDictionaryProvider(props: ModuleDictionaryProviderProps): import("react").JSX.Element;
|
|
5
5
|
export { ModuleDictionaryProvider, ModuleDictionaryContext };
|
|
@@ -3,11 +3,11 @@ import "../BaseContext/index.f9cdc955.js";
|
|
|
3
3
|
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
|
-
import "../DomainContext/index.
|
|
7
|
-
import "../ModuleDictionaryContext/index.
|
|
8
|
-
import "../ModuleSkeletonContext/index.
|
|
6
|
+
import "../DomainContext/index.8d81b39c.js";
|
|
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);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ModulePrivilegesContextProps, ModulePrivilegesProviderProps } from './types';
|
|
3
3
|
declare const ModulePrivilegesContext: import("react").Context<ModulePrivilegesContextProps | null>;
|
|
4
|
-
declare function ModulePrivilegesProvider(props: ModulePrivilegesProviderProps): JSX.Element;
|
|
4
|
+
declare function ModulePrivilegesProvider(props: ModulePrivilegesProviderProps): import("react").JSX.Element;
|
|
5
5
|
export { ModulePrivilegesProvider, ModulePrivilegesContext };
|
|
@@ -3,11 +3,11 @@ import "../BaseContext/index.f9cdc955.js";
|
|
|
3
3
|
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
|
-
import "../DomainContext/index.
|
|
7
|
-
import "../ModuleDictionaryContext/index.
|
|
8
|
-
import "../ModulePrivilegesContext/index.
|
|
6
|
+
import "../DomainContext/index.8d81b39c.js";
|
|
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,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ModuleSkeletonContextProps, ModuleSkeletonProviderProps } from './types';
|
|
3
3
|
declare const ModuleSkeletonContext: import("react").Context<ModuleSkeletonContextProps | null>;
|
|
4
|
-
declare function ModuleSkeletonProvider(props: ModuleSkeletonProviderProps): JSX.Element;
|
|
4
|
+
declare function ModuleSkeletonProvider(props: ModuleSkeletonProviderProps): import("react").JSX.Element;
|
|
5
5
|
export { ModuleSkeletonProvider, ModuleSkeletonContext };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { NetworkProviderProps } from './types';
|
|
3
3
|
declare const NetworkContext: import("react").Context<import("./types").NetworkType | null>;
|
|
4
|
-
declare function NetworkProvider(props: NetworkProviderProps): JSX.Element;
|
|
4
|
+
declare function NetworkProvider(props: NetworkProviderProps): import("react").JSX.Element;
|
|
5
5
|
export { NetworkProvider, NetworkContext };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useContext as t } from "react";
|
|
2
|
-
import { D as n } from "../../contexts/DomainContext/index.
|
|
3
|
-
import { D as e } from "../../contexts/DomainCountryContext/index.
|
|
2
|
+
import { D as n } from "../../contexts/DomainContext/index.8d81b39c.js";
|
|
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
|
@@ -3,21 +3,21 @@ import { B as i, a as n } from "./contexts/BaseContext/index.f9cdc955.js";
|
|
|
3
3
|
import { E as u, a as x } from "./contexts/EnvironmentContext/index.7045c64f.js";
|
|
4
4
|
import { F as l, a as f } from "./contexts/FlagsContext/index.5f795859.js";
|
|
5
5
|
import { H as g, a as v } from "./contexts/HostToolsContext/index.499db832.js";
|
|
6
|
-
import { D as C, a as M } from "./contexts/DomainContext/index.
|
|
7
|
-
import { M as S, a as c } from "./contexts/ModuleDictionaryContext/index.
|
|
8
|
-
import { M as F, a as E } from "./contexts/ModulePrivilegesContext/index.
|
|
9
|
-
import { M as B, a as L } from "./contexts/ModuleSkeletonContext/index.
|
|
6
|
+
import { D as C, a as M } from "./contexts/DomainContext/index.8d81b39c.js";
|
|
7
|
+
import { M as S, a as c } from "./contexts/ModuleDictionaryContext/index.b7c026b1.js";
|
|
8
|
+
import { M as F, a as E } from "./contexts/ModulePrivilegesContext/index.7abed4dc.js";
|
|
9
|
+
import { M as B, a as L } from "./contexts/ModuleSkeletonContext/index.18801a35.js";
|
|
10
10
|
import { N, a as w } from "./contexts/NetworkContext/index.d1dfbc3a.js";
|
|
11
|
-
import { D as h, a as O } from "./contexts/DomainCountryContext/index.
|
|
11
|
+
import { D as h, a as O } from "./contexts/DomainCountryContext/index.85791bcb.js";
|
|
12
12
|
import { u as b } from "./hooks/useBase/index.4375dcef.js";
|
|
13
13
|
import { u as q } from "./hooks/useEnvironment/index.04dca988.js";
|
|
14
14
|
import { u as A, a as G } from "./hooks/useFlags/index.a986729d.js";
|
|
15
15
|
import { u as J } from "./hooks/useHostTools/index.66d9a667.js";
|
|
16
|
-
import { u as Q, a as R } from "./hooks/useDomain/index.
|
|
16
|
+
import { u as Q, a as R } from "./hooks/useDomain/index.9e5dc4a4.js";
|
|
17
17
|
import { u as V, a as X } from "./hooks/useLocalStorage/index.48b47dca.js";
|
|
18
|
-
import { u as Z } from "./hooks/useModuleDictionary/index.
|
|
19
|
-
import { u as $ } from "./hooks/useModulePrivileges/index.
|
|
20
|
-
import { u as eo } from "./hooks/useModuleSkeleton/index.
|
|
18
|
+
import { u as Z } from "./hooks/useModuleDictionary/index.93177cf8.js";
|
|
19
|
+
import { u as $ } from "./hooks/useModulePrivileges/index.4b22874b.js";
|
|
20
|
+
import { u as eo } from "./hooks/useModuleSkeleton/index.0429108c.js";
|
|
21
21
|
import { u as ao } from "./hooks/useNetwork/index.acbf28d5.js";
|
|
22
22
|
import { i as so, u as io } from "./hooks/usePaginate/index.7cb17527.js";
|
|
23
23
|
import { u as mo } from "./hooks/usePropageteMF/index.c440b829.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.39",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"author": "M4L Team",
|
|
6
6
|
"peerDependencies": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"files": [
|
|
17
17
|
"*"
|
|
18
18
|
],
|
|
19
|
-
"source": "
|
|
19
|
+
"source": "./index.js",
|
|
20
20
|
"main": "./index.js",
|
|
21
21
|
"module": "./index.js",
|
|
22
22
|
"type": "module",
|