@evlop/commons 1.0.153 → 1.0.155

Sign up to get free protection for your applications and to get access to all the features.
@@ -33,7 +33,7 @@ const useActionable = () => {
33
33
  if (navigate)
34
34
  return navigator.navigate(...lodash_1.castArray(JSON.parse(template(JSON.stringify(navigate)))));
35
35
  if (push)
36
- return navigator.push(...lodash_1.castArray(JSON.parse(template(JSON.stringify(navigate)))));
36
+ return navigator.push(...lodash_1.castArray(JSON.parse(template(JSON.stringify(push)))));
37
37
  if (page) {
38
38
  const routeParams = lodash_2.mapValues(params, (paramValue) => template(paramValue.toString()));
39
39
  return navigator.openPage(page, routeParams);
@@ -1 +1 @@
1
- {"version":3,"file":"useActionable.js","sourceRoot":"","sources":["../../../src/hooks/useActionable.tsx"],"names":[],"mappings":";;;;;;AAAA,iCAA6C;AAC7C,6CAA0C;AAC1C,mCAAwC;AACxC,iDAA4C;AAC5C,yCAAoC;AACpC,gEAAwC;AACxC,mCAAiC;AAqBhC;;GAEG;AACG,MAAM,aAAa,GAAG,GAAE,EAAE;IAC7B,MAAM,SAAS,GAAG,2BAAY,EAAE,CAAC;IACjC,MAAM,QAAQ,GAAG,yBAAW,EAAE,CAAC;IAC/B,MAAM,KAAK,GAAG,mBAAQ,EAAE,CAAC;IACzB,MAAM,QAAQ,GAAG,qBAAW,EAAE,CAAC;IAE/B,MAAM,qBAAqB,GAAI,mBAAW,CAAC,CAAC,MAAc,EAAE,EAAE,CAAC,CAAC,KAAU,EAAE,EAAE;QAC1E,IAAI,WAAW,GAAG,MAAM,CAAC;QAEzB,OAAO,WAAW,IAAI,WAAW,CAAC,OAAO,EAAC;YACtC,WAAW,GAAG,YAAG,CAAC,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;SACjD;QAED,IAAG,OAAO,WAAW,KAAK,UAAU;YAAE,OAAO,WAAW,CAAC,KAAK,CAAC,CAAC;QAEhE,IAAG,WAAW,EAAE;YACZ,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MA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AO,SAAS,CAAC,IAAI,CAAC,GAAG,kBAAS,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAC1F,IAAI,IAAI,EAAC;gBACL,MAAM,WAAW,GAAG,kBAAS,CAAC,MAAM,EAAE,CAAC,UAAiB,EAAC,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAA;gBAC5F,OAAO,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC,CAAA;aAC/C;YAAA,CAAC;YACF,IAAI,KAAK;gBAAE,OAAO,SAAS,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;YACvD,IAAI,cAAc;gBAAE,OAAO,QAAQ,CAAC,cAAc,CAAC,CAAC;YACpD,IAAI,QAAQ;gBAAE,OAAO,QAAQ,CAAC,EAAC,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAC,CAAC,CAAC;SAC/D;IACL,CAAC,EAAE,CAAC,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC;IAE3C,OAAO,qBAAqB,CAAC;AACjC,CAAC,CAAC;AAhCW,QAAA,aAAa,iBAgCxB;AAEF,kBAAe,qBAAa,CAAC"}
@@ -51,20 +51,20 @@ const I18nProvider = ({ children }) => {
51
51
  i18ninstance_1.default.on("languageChanged", languageChangeHandeller);
52
52
  return () => i18ninstance_1.default.off("languageChanged", languageChangeHandeller);
53
53
  }, [setLanguage]);
54
- const updateVersioni18nResource = react_1.useCallback(lodash_1.debounce(() => setVersion(Date.now()), 250), []);
54
+ const updatei18nResourceVersion = react_1.useCallback(lodash_1.debounce(() => setVersion(Date.now()), 250), []);
55
55
  react_1.useEffect(() => {
56
- const resourceChangeHandeller = () => updateVersioni18nResource();
56
+ const resourceChangeHandeller = () => updatei18nResourceVersion();
57
57
  i18ninstance_1.default.on("added", resourceChangeHandeller);
58
58
  i18ninstance_1.default.on("removed", resourceChangeHandeller);
59
59
  return () => {
60
60
  i18ninstance_1.default.off("added", resourceChangeHandeller);
61
61
  i18ninstance_1.default.off("removed", resourceChangeHandeller);
62
62
  };
63
- }, [updateVersioni18nResource]);
63
+ }, [updatei18nResourceVersion]);
64
64
  react_1.useEffect(() => {
65
65
  lodash_1.forEach(i18nResources, (values, language) => i18ninstance_1.default.addResources(language, 'common', values));
66
- updateVersioni18nResource();
67
- }, [i18nResources, updateVersioni18nResource]);
66
+ updatei18nResourceVersion();
67
+ }, [i18nResources, updatei18nResourceVersion]);
68
68
  const i18nScope = react_1.useMemo(() => ({ v: version, language }), [version, language]);
69
69
  return (react_1.default.createElement(Scope_1.ScopeProvider, { name: "i18n", value: i18nScope }, children));
70
70
  };
package/package.json CHANGED
@@ -1,28 +1,15 @@
1
1
  {
2
2
  "name": "@evlop/commons",
3
- "version": "1.0.153",
3
+ "version": "1.0.155",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "peerDependencies": {
7
- "@mukti107/redux-rest": "^1.0.20",
8
- "handlebars": "^4.7.6",
7
+ "change-case": "^4.1.2",
8
+ "handlebars": "^4.7.7",
9
9
  "i18next": "^21.8.8",
10
- "change-case": "^4.1.1",
11
- "lodash": "latest",
12
- "polished": "latest",
13
- "react": "latest",
14
- "react-native": "latest",
15
- "@react-navigation/native": "latest",
16
- "react-router": "latest",
17
- "react-redux": "latest",
18
- "react-dnd": "latest",
19
- "recompose": "latest",
20
- "styled-components": "latest",
21
- "socket.io-client": "latest",
22
- "pluralize": "latest",
23
- "query-string": "latest",
24
- "@react-native-async-storage/async-storage": "latest",
25
- "react-native-vector-icons": "^9.0.0",
10
+ "lodash": "^4.17.21",
11
+ "react-native": "^0.68.2",
12
+ "react-native-vector-icons": "^9.1.0",
26
13
  "uuid": "^8.3.2"
27
14
  },
28
15
  "optionalDependencies": {},