@m4l/core 0.1.27 → 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.
@@ -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.0c69445f.js";
8
- import "../ModulePrivilegesContext/index.40fc9b6b.js";
9
- import "../ModuleSkeletonContext/index.1f894dc3.js";
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 L, useEffect as M, useCallback as u } from "react";
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 N } from "../../hooks/useEnvironment/index.04dca988.js";
4
- import { u as P } from "../../hooks/useFlags/index.a986729d.js";
5
- import { u as _ } from "../../hooks/useHostTools/index.66d9a667.js";
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.40fc9b6b.js";
8
- import "../ModuleSkeletonContext/index.1f894dc3.js";
9
- import { u as x } from "../../hooks/useNetwork/index.acbf28d5.js";
10
- import "../DomainCountryContext/index.de35d791.js";
11
- import { C as A } from "../../types/index.5f1b0c45.js";
12
- import { jsx as E } from "react/jsx-runtime";
13
- const F = y(null);
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
- moduleName: s = "module_name",
19
+ moduleNameField: s = "module_name",
20
20
  currentLang: a = "en",
21
21
  isAuth: m = !0
22
22
  } = l, {
23
23
  addFlag: p
24
- } = P(), [r, f] = L(void 0), {
24
+ } = N(), [r, f] = F(void 0), {
25
25
  domain_token: g
26
- } = N(), {
26
+ } = M(), {
27
27
  startProgress: D,
28
28
  stopProgress: h
29
- } = _(), {
29
+ } = P(), {
30
30
  networkOperation: v
31
- } = x();
32
- M(() => {
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(A.FLAG_DICTIONARY_LOADED));
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(F.Provider, {
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
- F as M,
77
+ E as M,
78
78
  Y as a
79
79
  };
@@ -4,7 +4,7 @@ export interface ModuleDictionaryProviderProps {
4
4
  currentLang?: string;
5
5
  isAuth?: boolean;
6
6
  moduleId: string;
7
- moduleName?: string;
7
+ moduleNameField?: string;
8
8
  componentsDictionary: string[];
9
9
  children: ReactNode;
10
10
  }
@@ -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.0c69445f.js";
8
- import "../ModuleSkeletonContext/index.1f894dc3.js";
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.de35d791.js";
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.0c69445f.js";
8
- import "../ModulePrivilegesContext/index.40fc9b6b.js";
7
+ import "../ModuleDictionaryContext/index.f41571ce.js";
8
+ import "../ModulePrivilegesContext/index.d3d30a03.js";
9
9
  import "../NetworkContext/index.d1dfbc3a.js";
10
- import "../DomainCountryContext/index.de35d791.js";
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) {
@@ -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.de35d791.js";
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 { useContext as t } from "react";
2
- import { M as e } from "../../contexts/ModuleDictionaryContext/index.0c69445f.js";
2
+ import { M as e } from "../../contexts/ModuleDictionaryContext/index.f41571ce.js";
3
3
  const n = () => {
4
4
  const o = t(e);
5
5
  if (!o)
@@ -1,5 +1,5 @@
1
1
  import { useContext as o } from "react";
2
- import { M as t } from "../../contexts/ModulePrivilegesContext/index.40fc9b6b.js";
2
+ import { M as t } from "../../contexts/ModulePrivilegesContext/index.d3d30a03.js";
3
3
  const i = () => {
4
4
  const e = o(t);
5
5
  if (!e)
@@ -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.1f894dc3.js";
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.0c69445f.js";
7
- import { M as N, a as h } from "./contexts/ModulePrivilegesContext/index.40fc9b6b.js";
8
- import { M as b, a as j } from "./contexts/ModuleSkeletonContext/index.1f894dc3.js";
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.de35d791.js";
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.1971480c.js";
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.2dc80b62.js";
18
- import { u as ao } from "./hooks/useModulePrivileges/index.f1272511.js";
19
- import { u as no } from "./hooks/useModuleSkeleton/index.c1c6e2cc.js";
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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/core",
3
- "version": "0.1.27",
3
+ "version": "0.1.28",
4
4
  "license": "UNLICENSED",
5
5
  "author": "M4L Team",
6
6
  "peerDependencies": {