@evlop/commons 1.0.112 → 1.0.115

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"version":3,"file":"themeHelpers.d.ts","sourceRoot":"","sources":["../../../src/helpers/themeHelpers.tsx"],"names":[],"mappings":"AA+BA,eAAO,MAAM,iBAAiB,aAAa,MAAM,YAAY;IAAC,KAAK,EAAC,MAAM,CAAC;IAAC,MAAK,MAAM,CAAA;CAAC,EAAE,OAGpF,CAAC;AAGP,eAAO,MAAM,cAAc;;;GAgB1B,CAAA;AAED,eAAO,MAAM,iBAAiB,iBAAkB,MAAM,OAAoD,CAAC;AAG3G,eAAO,MAAM,kBAAkB;;;GAAwD,CAAC;AACxF,eAAO,MAAM,mBAAmB,iBAAkB,MAAM,OAAwD,CAAC;AAGjH,eAAO,MAAM,iBAAiB;;;GAmB7B,CAAA;AAED,eAAO,MAAM,oBAAoB,gBAAiB,MAAM,OAAsD,CAAC;AAqC/G,wBAAgB,gBAAgB,CAAC,MAAM,EAAE;IAAC,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAA;CAAC;;EAuCrE"}
1
+ {"version":3,"file":"themeHelpers.d.ts","sourceRoot":"","sources":["../../../src/helpers/themeHelpers.tsx"],"names":[],"mappings":"AA+BA,eAAO,MAAM,iBAAiB,aAAa,MAAM,YAAY;IAAC,KAAK,EAAC,MAAM,CAAC;IAAC,MAAK,MAAM,CAAA;CAAC,EAAE,OAGpF,CAAC;AAGP,eAAO,MAAM,cAAc;;;GAiB1B,CAAA;AAED,eAAO,MAAM,iBAAiB,iBAAkB,MAAM,OAAoD,CAAC;AAG3G,eAAO,MAAM,kBAAkB;;;GAAwD,CAAC;AACxF,eAAO,MAAM,mBAAmB,iBAAkB,MAAM,OAAwD,CAAC;AAGjH,eAAO,MAAM,iBAAiB;;;GAmB7B,CAAA;AAED,eAAO,MAAM,oBAAoB,gBAAiB,MAAM,OAAsD,CAAC;AAqC/G,wBAAgB,gBAAgB,CAAC,MAAM,EAAE;IAAC,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAA;CAAC;;EAuCrE"}
@@ -30,7 +30,8 @@ const generateSizeScale = (baseSize, variants) => variants.reduce((sizes, { name
30
30
  exports.generateSizeScale = generateSizeScale;
31
31
  // font sizes
32
32
  exports.fontVariations = [
33
- { scale: 10 / 15, name: 'xxxs' },
33
+ { scale: 10 / 15, name: 'xxxxs' },
34
+ { scale: 11 / 15, name: 'xxxs' },
34
35
  { scale: 12 / 15, name: 'xxs' },
35
36
  { scale: 13 / 15, name: 'xs' },
36
37
  { scale: 14 / 15, name: 'sm' },
@@ -1 +1 @@
1
- {"version":3,"file":"themeHelpers.js","sourceRoot":"","sources":["../../../src/helpers/themeHelpers.tsx"],"names":[],"mappings":";;;AAAA,mCAA+C;AAC/C,uCAAiH;AAEjH,SAAS,UAAU,CAAC,GAAG,EAAE,SAAS;IAC9B,MAAM,KAAK,GAAG,qBAAU,CAAC,GAAG,CAAC,CAAC;IAE9B,IAAI,CAAC,KAAK,EAAE;QACV,OAAO,EAAE,CAAC;KACX;IAED,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC,GAAG,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC,CAAC;IAChE,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,GAAG,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,CAAC;IACpE,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,GAAG,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,CAAC;IAElE,OAAO,cAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AACtB,CAAC;AAED,SAAS,SAAS,CAAC,GAAG,EAAE,SAAS;IAC/B,MAAM,KAAK,GAAG,qBAAU,CAAC,GAAG,CAAC,CA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AW,CAAC,CAAC;wBAClC,MAAM;oBACV,KAAK,WAAW;wBACZ,WAAW,GAAG,oBAAS,CAAC,WAAW,CAAC,CAAC;wBACrC,MAAM;oBACV,KAAK,OAAO;wBACR,MAAM,UAAU,GAAG,WAAW,CAAC,KAAK,EAAE,CAAC;wBACvC,WAAW,GAAG,2BAA2B,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,CAAA;oBACvE,QAAQ;iBACX;aACJ;YAED,OAAO,WAAW,CAAC;QACvB,CAAC;QACD,GAAG,KAAI,OAAO,KAAK,CAAA,CAAC,CAAC;KACxB,CAAC,CAAA;AACN,CAAC;AAvCD,4CAuCC"}
@@ -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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AC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACtG,IAAI,IAAI;gBAAE,OAAO,SAAS,CAAC,IAAI,CAAC,GAAG,kBAAS,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAC9F,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,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,MAAM,YAAY,GAAG,GAAE,EAAE;IAC5B,MAAM,UAAU,GAAG,sBAAe,EAAE,CAAC;IACrC,MAAM,KAAK,GAAG,iBAAQ,EAAE,CAAC;IACzB,MAAM,QAAQ,GAAG,yBAAW,EAAE,CAAC;IAC/B,MAAM,SAAS,GAAG,cAAM,CAAM,EAAE,CAAC,CAAC;IAElC,OAAO,eAAO,CAAC,GAAE,EAAE,CAAA,eAAM,CAAC,SAAS,CAAC,OAAO,EAAE,UAAU,EAAE;QACrD,QAAQ,EAAE,CAAC,IAAS,EAAE,EAAE,CAAC,YAAG,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC;QAChD,QAAQ,EAAE,CAAC,MAAW,EAAE,MAAW,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,2BAAgB,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC;QACnG,SAAS,EAAE,CAAC,KAAU,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,2BAAgB,CAAC,KAAK,CAAC,CAAC,CAAC;QAC7E,OAAO,EAAE,CAAC,GAAQ,EAAE,EAAE,CAAC,sBAAO,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAM,EAAC,EAAE,CAAC,CAAC,IAAI,sBAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,KA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EAAE,CAAC,CAAC,IAAI,sBAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,GAAE,EAAE,GAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAA,CAAA,CAAC,CAAC;KAC5I,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;AACtB,CAAC,CAAC;AAZW,QAAA,YAAY,gBAYvB;AAEW,QAAA,aAAa,GAAG,oBAAY,CAAC"}
@@ -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 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/reducers/pages/index.tsx"],"names":[],"mappings":"AAeA,QAAA,MAAM,KAAK;yBAA2C,GAAG;;CA0HxD,CAAC;AAIF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/reducers/pages/index.tsx"],"names":[],"mappings":"AAiBA,QAAA,MAAM,KAAK;yBAA2C,GAAG;;CAkJxD,CAAC;AAIF,eAAe,KAAK,CAAC"}
@@ -14,6 +14,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
14
14
  return (mod && mod.__esModule) ? mod : { "default": mod };
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ const lodash_1 = require("lodash");
17
18
  const initialState_1 = __importDefault(require("./initialState"));
18
19
  const REST_LIST_PAGES_SUCCESS = "REST_LIST_PAGES_SUCCESS";
19
20
  const REST_FIND_PAGE_SUCCESS = "REST_FIND_PAGE_SUCCESS";
@@ -24,6 +25,7 @@ const REST_DELETE_PAGE_SUCCESS = "REST_DELETE_PAGE_SUCCESS";
24
25
  const REST_QUERY_PAGE_RUNNING = "REST_QUERY_PAGE_RUNNING";
25
26
  const REST_QUERY_PAGE_FAILED = "REST_QUERY_PAGE_FAILED";
26
27
  const PAGE_BLOCKS_UPDATED = "PAGE_BLOCKS_UPDATED";
28
+ const PAGE_DATA_UPDATED = "PAGE_DATA_UPDATED";
27
29
  // reducer copied from @mukti107/redux-rest
28
30
  const initialState = initialState_1.default;
29
31
  const pages = function (state = initialState, action) {
@@ -93,6 +95,21 @@ const pages = function (state = initialState, action) {
93
95
  }
94
96
  return Object.assign(Object.assign({}, state), { collection: newCollection, records: Object.assign(Object.assign({}, oldRecordState), { data: newData }) });
95
97
  }
98
+ case PAGE_DATA_UPDATED: {
99
+ const { records: oldRecordState = {}, collection = {} } = state;
100
+ const { data: oldData = [] } = oldRecordState;
101
+ const newData = [...oldData];
102
+ const newCollection = Object.assign({}, collection);
103
+ const updates = action.updates;
104
+ const pageId = action.pageId;
105
+ const itemIndex = newData.findIndex(_item => _item.id === pageId);
106
+ if (itemIndex > -1) {
107
+ const newItem = lodash_1.assign({}, newData[itemIndex], updates);
108
+ newData.splice(itemIndex, 1, newItem);
109
+ newCollection[pageId] = newItem;
110
+ }
111
+ return Object.assign(Object.assign({}, state), { collection: newCollection, records: Object.assign(Object.assign({}, oldRecordState), { data: newData }) });
112
+ }
96
113
  default:
97
114
  return state;
98
115
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/reducers/pages/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAA+C;AAE/C,MAAM,uBAAuB,GAAG,yBAAyB,CAAC;AAC1D,MAAM,sBAAsB,GAAG,wBAAwB,CAAC;AACxD,MAAM,yBAAyB,GAAG,2BAA2B,CAAC;AAC9D,MAAM,qBAAqB,GAAG,uBAAuB,CAAC;AACtD,MAAM,wBAAwB,GAAG,0BAA0B,CAAC;AAC5D,MAAM,wBAAwB,GAAG,0BAA0B,CAAC;AAC5D,MAAM,uBAAuB,GAAG,yBAAyB,CAAC;AAC1D,MAAM,sBAAsB,GAAG,wBAAwB,CAAC;AACxD,MAAM,mBAAmB,GAAG,qBAAqB,CAAC;AAElD,2CAA2C;AAE3C,MAAM,YAAY,GAAO,sBAAiB,CAAA;AAC1C,MAAM,KAAK,GAAG,UAAU,KAAK,GAAG,YAAY,EAAE,MAAW;IACjD,QAAQ,MAAM,CAAC,IAAI,EAAE;QACjB,KAAK,sBAAsB,CAAC;QAC5B,KAAK,uBAAuB,CAAC,CAAC;YAC1B,MAAM,KAAsB,MAAM,CAAC,QAAQ,EAArC,EAAC,IAAI,OAAgC,EAA3B,QAAQ,cAAlB,QAAmB,CAAkB,CAAC;YAC5C,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAA,EAAE,CAAA,iBAAE,EAAE,EAAC,IAAI,CAAC,GAAG,IAAK,IAAI,EAAE,CAAC,CAAC;YACzD,MAAM,EAAC,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,cAAc,GAAG,EAAE,EAAE,UAAU,GAAG,EAAE,EAAC,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jB,IAAI,EAAE,OAAO,OAEnB;SACL;QACD,KAAK,iBAAiB,CAAC,CAAA;YACnB,MAAM,EAAC,OAAO,EAAE,cAAc,GAAG,EAAE,EAAE,UAAU,GAAG,EAAE,EAAC,GAAG,KAAK,CAAC;YAC9D,MAAM,EAAC,IAAI,EAAE,OAAO,GAAG,EAAE,EAAC,GAAG,cAAc,CAAC;YAC5C,MAAM,OAAO,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC;YAC7B,MAAM,aAAa,qBAAO,UAAU,CAAC,CAAC;YACtC,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;YAC/B,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;YAC7B,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,MAAM,CAAC,CAAA;YAEjE,IAAI,SAAS,GAAG,CAAC,CAAC,EAAC;gBACf,MAAM,OAAO,GAAG,eAAM,CAAC,EAAE,EAAE,OAAO,CAAC,SAAS,CAAC,EAAC,OAAO,CAAC,CAAC;gBACvD,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC,EAAE,OAAO,CAAC,CAAA;gBACrC,aAAa,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC;aACnC;YAED,uCACO,KAAK,KACR,UAAU,EAAE,aAAa,EACzB,OAAO,kCACA,cAAc,KACjB,IAAI,EAAE,OAAO,OAEnB;SACL;QACD;YACI,OAAO,KAAK,CAAC;KACpB;AAET,CAAC,CAAC;AAEF,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC;AAErB,kBAAe,KAAK,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.112",
3
+ "version": "1.0.115",
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",