@evlop/commons 1.0.113 → 1.0.116

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"version":3,"file":"useAction.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAction.tsx"],"names":[],"mappings":"AASA;;;;GAIG;AAEF,UAAU,YAAY;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;IACjC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;IAC7B,QAAQ,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC5B,QAAQ,EAAE,QAAQ,CAAC;CACtB;AAED,aAAK,MAAM,GAAG,YAAY,GAAG,QAAQ,GAAG,GAAG,CAAA;AAE5C,eAAO,MAAM,SAAS,WAAY,MAAM,wBAgCvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"useAction.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAction.tsx"],"names":[],"mappings":"AASA;;;;GAIG;AAEF,UAAU,YAAY;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;IACjC,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;IAC7B,QAAQ,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC5B,QAAQ,EAAE,QAAQ,CAAC;CACtB;AAED,aAAK,MAAM,GAAG,YAAY,GAAG,QAAQ,GAAG,GAAG,CAAA;AAE5C,eAAO,MAAM,SAAS,WAAY,MAAM,wBA+BvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -32,7 +32,6 @@ const useAction = (action) => {
32
32
  if (push)
33
33
  return navigator.push(...lodash_1.castArray(JSON.parse(template(JSON.stringify(navigate)))));
34
34
  if (page) {
35
- console.log(page, params);
36
35
  const routeParams = lodash_2.mapValues(params, (paramValue) => template(paramValue.toString()));
37
36
  return navigator.openPage(page, routeParams);
38
37
  }
@@ -1 +1 @@
1
- {"version":3,"file":"useAction.js","sourceRoot":"","sources":["../../../src/hooks/useAction.tsx"],"names":[],"mappings":";;;;;;AAAA,iCAA6C;AAC7C,6CAA0C;AAC1C,mCAAwC;AACxC,iDAA4C;AAC5C,yCAAoC;AACpC,gEAAwC;AACxC,mCAAiC;AAqB1B,MAAM,SAAS,GAAG,CAAC,MAAc,EAAC,EAAE;IAEvC,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,OAAO,mBAAW,CAAC,CAAC,KAAK,EAAC,EAAE;QACxB,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,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,KAAK,EAAE,QAAQ,EAAC,GAAG,WAAW,CAAC;YAErG,IAAI,IAAI;gBAAE,OAAO,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;YACnD,IAAI,QAAQ;gBAAE,OAAO,SAAS,CAAC,QAAQ,CAAC,GAAG,kBAAS,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ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AC,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,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC;AACvD,CAAC,CAAC;AA/BW,QAAA,SAAS,aA+BpB;AAEF,kBAAe,iBAAS,CAAC"}
@@ -14,8 +14,8 @@ const useNavigator = () => {
14
14
  const navigator = react_1.useRef({});
15
15
  return react_1.useMemo(() => lodash_1.assign(navigator.current, navigation, {
16
16
  getParam: (name) => lodash_1.get(route.params, name),
17
- openPage: (pageId, params) => navigation.push(dispatch(reducers_1.getPageRouteName(pageId)), params),
18
- openRoute: (route) => navigation.push(dispatch(reducers_1.getPageRouteName(route))),
17
+ openPage: (pageId, params) => navigation.navigate(dispatch(reducers_1.getPageRouteName(pageId)), params),
18
+ openRoute: (route, params) => navigation.navigate(dispatch(reducers_1.getPageRouteName(route)), params),
19
19
  openURL: (url) => react_native_1.Linking.canOpenURL(url).then((s) => s && react_native_1.Linking.openURL(url)).catch(() => { console.log('url cant be openned'); }),
20
20
  }), [navigation]);
21
21
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useNavigator.app.js","sourceRoot":"","sources":["../../../src/hooks/useNavigator.app.tsx"],"names":[],"mappings":";;;AAAA,qDAAsF;AACtF,mCAAqC;AACrC,iCAAwC;AACxC,+CAAuC;AACvC,6CAAwC;AACxC,0CAA+C;AAExC,M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":["../../../src/hooks/useScope.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ,mBAAoB,MAAM,iBAAiB,GAAG,QAOlE,CAAC;AAEF,OAAO,EAAC,QAAQ,IAAI,OAAO,EAAC,CAAC"}
1
+ {"version":3,"file":"useScope.d.ts","sourceRoot":"","sources":["../../../src/hooks/useScope.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,QAAQ,mBAAoB,MAAM,iBAAiB,GAAG,QAMlE,CAAC;AAEF,OAAO,EAAC,QAAQ,IAAI,OAAO,EAAC,CAAC"}
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useData = exports.useScope = void 0;
4
+ const lodash_1 = require("lodash");
4
5
  const react_1 = require("react");
5
6
  const contexts_1 = require("../contexts");
6
7
  const useScope = (scopeVariable, defaultValue) => {
7
8
  const scope = react_1.useContext(contexts_1.DataContext);
8
9
  if (scopeVariable) {
9
- const { [scopeVariable]: value = defaultValue } = scope;
10
- return value;
10
+ return lodash_1.get(scope, scopeVariable, defaultValue);
11
11
  }
12
12
  return scope;
13
13
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useScope.js","sourceRoot":"","sources":["../../../src/hooks/useScope.tsx"],"names":[],"mappings":";;;AAAA,iCAAmC;AACnC,0CAA0C;AAEnC,MAAM,QAAQ,GAAG,CAAC,aAAsB,EAAE,YAAkB,EAAC,EAAE;IAClE,MAAM,KAAK,GAAS,kBAAU,CAAC,sBAAW,CAAC,CAAC;IAC5C,IAAG,aAAa,EAAC;QACb,MAAM,EAAC,CAAC,aAAa,CAAC,EAAE,KAAK,GAAG,YAAY,EAAC,GAAG,KAAK,CAAC;QACtD,OAAO,KAAK,CAAC;KAChB;IACD,OAAO,KAAK,CAAC;AACjB,CAAC,CAAC;AAPW,QAAA,QAAQ,YAOnB;AAEkB,kBATP,gBAAQ,CASM"}
1
+ {"version":3,"file":"useScope.js","sourceRoot":"","sources":["../../../src/hooks/useScope.tsx"],"names":[],"mappings":";;;AAAA,mCAA6B;AAC7B,iCAAmC;AACnC,0CAA0C;AAEnC,MAAM,QAAQ,GAAG,CAAC,aAAsB,EAAE,YAAkB,EAAC,EAAE;IAClE,MAAM,KAAK,GAAS,kBAAU,CAAC,sBAAW,CAAC,CAAC;IAC5C,IAAG,aAAa,EAAC;QACb,OAAO,YAAG,CAAC,KAAK,EAAE,aAAa,EAAE,YAAY,CAAC,CAAC;KAClD;IACD,OAAO,KAAK,CAAC;AACjB,CAAC,CAAC;AANW,QAAA,QAAQ,YAMnB;AAEkB,kBARP,gBAAQ,CAQM"}
@@ -1 +1 @@
1
- {"version":3,"file":"initialState.native.d.ts","sourceRoot":"","sources":["../../../../src/reducers/config/initialState.native.tsx"],"names":[],"mappings":"AAcA,QAAA,MAAM,kBAAkB;;;CAGvB,CAAA;AAED,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"initialState.native.d.ts","sourceRoot":"","sources":["../../../../src/reducers/config/initialState.native.tsx"],"names":[],"mappings":"AAeA,QAAA,MAAM,kBAAkB;;;CAGvB,CAAA;AAED,eAAe,kBAAkB,CAAC"}
@@ -1,14 +1,18 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  const react_native_1 = require("react-native");
4
7
  const { AppConstants } = react_native_1.NativeModules;
5
- const configDataJSON = AppConstants.getConfigDataJSON();
8
+ const react_native_base64_1 = __importDefault(require("react-native-base64"));
6
9
  let configData = null;
7
10
  try {
8
- configData = JSON.parse(configDataJSON);
11
+ const configDataJSONBase64 = AppConstants.getConfigDataJSONBase64();
12
+ configData = JSON.parse(react_native_base64_1.default.decode(configDataJSONBase64));
9
13
  }
10
14
  catch (e) {
11
- console.log('Error redux initial state for config');
15
+ console.log('Error redux initial state for config', e);
12
16
  configData = {};
13
17
  }
14
18
  const configInitialState = {
@@ -1 +1 @@
1
- {"version":3,"file":"initialState.native.js","sourceRoot":"","sources":["../../../../src/reducers/config/initialState.native.tsx"],"names":[],"mappings":";;AAAA,+CAA2C;AAC3C,MAAM,EAAC,YAAY,EAAC,GAAG,4BAAa,CAAC;AAErC,MAAM,cAAc,GAAG,YAAY,CAAC,iBAAiB,EAAE,CAAC;AAExD,IAAI,UAAU,GAAG,IAAI,CAAC;AAEtB,IAAG;IACC,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;CAC3C;AAAA,OAAM,CAAC,EAAC;IACL,OAAO,CAAC,GAAG,CAAC,sCAAsC,CAAC,CAAC;IACpD,UAAU,GAAG,EAAE,CAAA;CAClB;AAED,MAAM,kBAAkB,GAAG;IACvB,MAAM,EAAE,EAAE;IACV,IAAI,EAAC,UAAU;CAClB,CAAA;AAED,kBAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"initialState.native.js","sourceRoot":"","sources":["../../../../src/reducers/config/initialState.native.tsx"],"names":[],"mappings":";;;;;AAAA,+CAA2C;AAC3C,MAAM,EAAC,YAAY,EAAC,GAAG,4BAAa,CAAC;AACrC,8EAAyC;AAGzC,IAAI,UAAU,GAAG,IAAI,CAAC;AAEtB,IAAG;IACC,MAAM,oBAAoB,GAAG,YAAY,CAAC,uBAAuB,EAAE,CAAC;IACpE,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,6BAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC,CAAC;CAChE;AAAA,OAAM,CAAC,EAAC;IACL,OAAO,CAAC,GAAG,CAAC,sCAAsC,EAAE,CAAC,CAAC,CAAC;IACvD,UAAU,GAAG,EAAE,CAAA;CAClB;AAED,MAAM,kBAAkB,GAAG;IACvB,MAAM,EAAE,EAAE;IACV,IAAI,EAAC,UAAU;CAClB,CAAA;AAED,kBAAe,kBAAkB,CAAC"}
@@ -1,19 +1,23 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  const lodash_1 = require("lodash");
4
7
  const react_native_1 = require("react-native");
5
8
  const { AppConstants } = react_native_1.NativeModules;
6
- const configDataJSON = AppConstants.getPagesJSON();
9
+ const react_native_base64_1 = __importDefault(require("react-native-base64"));
7
10
  let pagesArray = [];
8
11
  let pagesById = {};
9
12
  try {
10
- pagesArray = JSON.parse(configDataJSON);
13
+ const configDataJSONBase64 = AppConstants.getPagesJSONBase64();
14
+ pagesArray = JSON.parse(react_native_base64_1.default.decode(configDataJSONBase64));
11
15
  if (!Array.isArray(pagesArray))
12
16
  throw new Error('Pages must be an array');
13
17
  pagesById = lodash_1.keyBy(pagesArray, 'id');
14
18
  }
15
19
  catch (e) {
16
- console.log('Error redux initial state for pages');
20
+ console.log('Error redux initial state for pages', e);
17
21
  pagesArray = [];
18
22
  pagesById = {};
19
23
  }
@@ -1 +1 @@
1
- {"version":3,"file":"initialState.native.js","sourceRoot":"","sources":["../../../../src/reducers/pages/initialState.native.tsx"],"names":[],"mappings":";;AAAA,mCAA+B;AAC/B,+CAA2C;AAC3C,MAAM,EAAC,YAAY,EAAC,GAAG,4BAAa,CAAC;AAErC,MAAM,cAAc,GAAG,YAAY,CAAC,YAAY,EAAE,CAAC;AAEnD,IAAI,UAAU,GAAQ,EAAE,CAAC;AACzB,IAAI,SAAS,GAAQ,EAAE,CAAC;AAExB,IAAG;IACC,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;IACxC,IAAG,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;IACzE,SAAS,GAAG,cAAK,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;CACvC;AAAA,OAAM,CAAC,EAAC;IACL,OAAO,CAAC,GAAG,CAAC,qCAAqC,CAAC,CAAC;IACnD,UAAU,GAAG,EAAE,CAAC;IAChB,SAAS,GAAG,EAAE,CAAC;CAClB;AAED,MAAM,iBAAiB,GAAG,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,EAAE,CAAA;AAElH,kBAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"initialState.native.js","sourceRoot":"","sources":["../../../../src/reducers/pages/initialState.native.tsx"],"names":[],"mappings":";;;;;AAAA,mCAA+B;AAC/B,+CAA2C;AAC3C,MAAM,EAAC,YAAY,EAAC,GAAG,4BAAa,CAAC;AACrC,8EAAyC;AAEzC,IAAI,UAAU,GAAQ,EAAE,CAAC;AACzB,IAAI,SAAS,GAAQ,EAAE,CAAC;AAExB,IAAG;IACC,MAAM,oBAAoB,GAAG,YAAY,CAAC,kBAAkB,EAAE,CAAC;IAC/D,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,6BAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC,CAAC;IAC7D,IAAG,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;IACzE,SAAS,GAAG,cAAK,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;CACvC;AAAA,OAAM,CAAC,EAAC;IACL,OAAO,CAAC,GAAG,CAAC,qCAAqC,EAAE,CAAC,CAAC,CAAC;IACtD,UAAU,GAAG,EAAE,CAAC;IAChB,SAAS,GAAG,EAAE,CAAC;CAClB;AAED,MAAM,iBAAiB,GAAG,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,EAAE,CAAA;AAElH,kBAAe,iBAAiB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evlop/commons",
3
- "version": "1.0.113",
3
+ "version": "1.0.116",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "peerDependencies": {
@@ -27,7 +27,8 @@
27
27
  "optionalDependencies": {},
28
28
  "dependencies": {
29
29
  "@evlop/web-components": "^1.0.21",
30
- "moment": "^2.29.1"
30
+ "moment": "^2.29.1",
31
+ "react-native-base64": "^0.2.1"
31
32
  },
32
33
  "scripts": {
33
34
  "prepack": " rm -rf dist && tsc",