@evlop/commons 1.0.76 → 1.0.80

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. package/dist/src/constants/iconInfo/index.d.ts +3 -0
  2. package/dist/src/constants/iconInfo/index.d.ts.map +1 -0
  3. package/dist/src/constants/iconInfo/index.js +4 -0
  4. package/dist/src/constants/iconInfo/index.js.map +1 -0
  5. package/dist/src/constants/iconInfo/index.native.d.ts +3 -0
  6. package/dist/src/constants/iconInfo/index.native.d.ts.map +1 -0
  7. package/dist/src/constants/iconInfo/index.native.js +8 -0
  8. package/dist/src/constants/iconInfo/index.native.js.map +1 -0
  9. package/dist/src/constants/iconInfo/index.web.d.ts +3 -0
  10. package/dist/src/constants/iconInfo/index.web.d.ts.map +1 -0
  11. package/dist/src/constants/iconInfo/index.web.js +8 -0
  12. package/dist/src/constants/iconInfo/index.web.js.map +1 -0
  13. package/dist/src/constants/{iconInfo.d.ts → iconInfo/reactNativeVectorIcons.d.ts} +3 -3
  14. package/dist/src/constants/iconInfo/reactNativeVectorIcons.d.ts.map +1 -0
  15. package/dist/src/constants/{iconInfo.js → iconInfo/reactNativeVectorIcons.js} +3 -3
  16. package/dist/src/constants/iconInfo/reactNativeVectorIcons.js.map +1 -0
  17. package/dist/src/constants/index.d.ts +1 -2
  18. package/dist/src/constants/index.d.ts.map +1 -1
  19. package/dist/src/constants/index.js +12 -3
  20. package/dist/src/constants/index.js.map +1 -1
  21. package/dist/src/constants/platformSpecific.d.ts +4 -0
  22. package/dist/src/constants/platformSpecific.d.ts.map +1 -0
  23. package/dist/src/constants/platformSpecific.js +7 -0
  24. package/dist/src/constants/platformSpecific.js.map +1 -0
  25. package/dist/src/constants/platformSpecific.native.d.ts +4 -0
  26. package/dist/src/constants/platformSpecific.native.d.ts.map +1 -0
  27. package/dist/src/constants/platformSpecific.native.js +9 -0
  28. package/dist/src/constants/platformSpecific.native.js.map +1 -0
  29. package/dist/src/hooks/useAction.d.ts.map +1 -1
  30. package/dist/src/hooks/useAction.js +4 -2
  31. package/dist/src/hooks/useAction.js.map +1 -1
  32. package/package.json +4 -2
  33. package/dist/src/constants/iconInfo.d.ts.map +0 -1
  34. package/dist/src/constants/iconInfo.js.map +0 -1
@@ -0,0 +1,3 @@
1
+ declare const _default: {};
2
+ export default _default;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/constants/iconInfo/index.ts"],"names":[],"mappings":";AAAA,wBAAiB"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {};
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/constants/iconInfo/index.ts"],"names":[],"mappings":";;AAAA,kBAAe,EAAE,CAAA"}
@@ -0,0 +1,3 @@
1
+ import reactNativeVectorIcons from "./reactNativeVectorIcons";
2
+ export default reactNativeVectorIcons;
3
+ //# sourceMappingURL=index.native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../../src/constants/iconInfo/index.native.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,MAAM,0BAA0B,CAAC;AAE9D,eAAe,sBAAsB,CAAC"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const reactNativeVectorIcons_1 = __importDefault(require("./reactNativeVectorIcons"));
7
+ exports.default = reactNativeVectorIcons_1.default;
8
+ //# sourceMappingURL=index.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.native.js","sourceRoot":"","sources":["../../../../src/constants/iconInfo/index.native.ts"],"names":[],"mappings":";;;;;AAAA,sFAA8D;AAE9D,kBAAe,gCAAsB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import reactNativeVectorIcons from "./reactNativeVectorIcons";
2
+ export default reactNativeVectorIcons;
3
+ //# sourceMappingURL=index.web.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.web.d.ts","sourceRoot":"","sources":["../../../../src/constants/iconInfo/index.web.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,MAAM,0BAA0B,CAAC;AAE9D,eAAe,sBAAsB,CAAC"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const reactNativeVectorIcons_1 = __importDefault(require("./reactNativeVectorIcons"));
7
+ exports.default = reactNativeVectorIcons_1.default;
8
+ //# sourceMappingURL=index.web.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.web.js","sourceRoot":"","sources":["../../../../src/constants/iconInfo/index.web.ts"],"names":[],"mappings":";;;;;AAAA,sFAA8D;AAE9D,kBAAe,gCAAsB,CAAC"}
@@ -1,4 +1,4 @@
1
- declare const iconInfo: {
1
+ declare const reactNativeVectorIcons: {
2
2
  [x: string]: {
3
3
  id: string;
4
4
  type: string;
@@ -12,5 +12,5 @@ declare const iconInfo: {
12
12
  character: never;
13
13
  };
14
14
  };
15
- export default iconInfo;
16
- //# sourceMappingURL=iconInfo.d.ts.map
15
+ export default reactNativeVectorIcons;
16
+ //# sourceMappingURL=reactNativeVectorIcons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reactNativeVectorIcons.d.ts","sourceRoot":"","sources":["../../../../src/constants/iconInfo/reactNativeVectorIcons.ts"],"names":[],"mappings":"AAmDA,QAAA,MAAO,sBAAsB;;;;;;;;;;;;;CAAgC,CAAC;AAE9D,eAAe,sBAAsB,CAAA"}
@@ -41,6 +41,6 @@ const vectorIcons = lodash_1.chain(iconLibraries)
41
41
  })))
42
42
  .keyBy('id')
43
43
  .value();
44
- const iconInfo = Object.assign(Object.assign({}, fa5Icons), vectorIcons);
45
- exports.default = iconInfo;
46
- //# sourceMappingURL=iconInfo.js.map
44
+ const reactNativeVectorIcons = Object.assign(Object.assign({}, fa5Icons), vectorIcons);
45
+ exports.default = reactNativeVectorIcons;
46
+ //# sourceMappingURL=reactNativeVectorIcons.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reactNativeVectorIcons.js","sourceRoot":"","sources":["../../../../src/constants/iconInfo/reactNativeVectorIcons.ts"],"names":[],"mappings":";;;;;AAAA,wGAA2E;AAC3E,kGAAqE;AACrE,wGAA0E;AAC1E,oGAAuE;AACvE,4GAA+E;AAC/E,gIAA+F;AAC/F,sHAAqF;AACrF,sGAAyE;AACzE,0GAA6E;AAC7E,sGAAwE;AACxE,kIAAgG;AAChG,gHAA8E;AAC9E,sGAAwE;AACxE,oHAAsF;AACtF,kGAAqE;AACrE,6CAAwC;AACxC,mCAAoC;AAEpC,MAAM,aAAa,GAAG,EAAC,SAAS,EAAT,wBAAS,EAAE,MAAM,EAAN,qBAAM,EAAE,QAAQ,EAAR,wBAAQ,EAAE,OAAO,EAAP,sBAAO,EAAE,WAAW,EAAX,0BAAW,EAAC,QAAQ,EAAR,uBAAQ,EAAE,UAAU,EAAV,yBAAU,EAAE,OAAO,EAAP,uBAAO,EAAE,iBAAiB,EAAjB,qCAAiB,EAAE,QAAQ,EAAR,4BAAQ,EAAE,OAAO,EAAP,uBAAO,EAAE,cAAc,EAAd,8BAAc,EAAE,MAAM,EAAN,qBAAM,EAAC,CAAC;AAEtK,MAAM,QAAQ,GAAG,cAAK,CAAC,oCAAiB,CAAC;KACpB,OAAO,CACJ,CAAC,SAAS,EAAE,OAAO,EAAE,EAAE,CAAC,YAAG,CACvB,SAAS,EACT,QAAQ,CAAC,EAAE,CAAC,CAAC;IACT,EAAE,EAAE,kBAAkB,OAAO,IAAI,QAAQ,EAAE;IAC3C,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,QAAQ;IACd,OAAO;IACP,SAAS,EAAE,+BAAY,CAAC,QAAQ,CAAC;CACpC,CAAC,CACL,CACJ;KACA,KAAK,CAAC,IAAI,CAAC;KACX,KAAK,EAAE,CAAC;AAE7B,MAAM,WAAW,GAAG,cAAK,CAAC,aAAa,CAAC;KAC3B,SAAS,CAAC,CAAC,YAAY,EAAC,EAAE,CAAA,YAAG,CAAC,YAAY,EAAE,CAAC,SAAS,EAAE,IAAI,EAAC,EAAE,CAAA,CAAC,EAAC,SAAS,EAAE,IAAI,EAAC,CAAC,CAAC,CAAC;KACpF,OAAO,CACJ,CAAC,kBAAkB,EAAE,WAAW,EAAC,EAAE,CAAC,YAAG,CAAC,kBAAkB,EACtD,CAAC,EAAC,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAC,EAAE,EAAE,CAAC,CAAC;IAC9B,EAAE,EAAE,GAAG,uBAAS,CAAC,WAAW,CAAC,IAAI,QAAQ,EAAE;IAC3C,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,uBAAS,CAAC,WAAW,CAAC;IAC5B,SAAS;CACZ,CAAC,CACL,CACJ;KACA,KAAK,CAAC,IAAI,CAAC;KACX,KAAK,EAAE,CAAC;AAErB,MAAO,sBAAsB,mCAAO,QAAQ,GAAK,WAAW,CAAC,CAAC;AAE9D,kBAAe,sBAAsB,CAAA"}
@@ -1,5 +1,3 @@
1
- export declare const API_BASE_URL: string;
2
- export declare const SOCKET_URL: string;
3
1
  export declare const IS_SSR: boolean;
4
2
  export declare const DIRECTION_TOP = "direction/Top";
5
3
  export declare const DIRECTION_RIGHT = "direction/Right";
@@ -9,4 +7,5 @@ export declare const VERTICAL_LAYOUT = "layout/vertical";
9
7
  export declare const HORIZONTAL_LAYOUT = "layout/horizontal";
10
8
  export declare const TYPE_COMPONENT = "type/component";
11
9
  export { default as iconInfo } from './iconInfo';
10
+ export * from './platformSpecific';
12
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/index.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,QAAiE,CAAC;AAC3F,eAAO,MAAM,UAAU,QAA6E,CAAC;AACrG,eAAO,MAAM,MAAM,SAAgE,CAAC;AAEpF,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAG/C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AAErD,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAE/C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/index.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,SAAgE,CAAC;AAEpF,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,gBAAgB,qBAAqB,CAAC;AACnD,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAG/C,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AAErD,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAE/C,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,cAAc,oBAAoB,CAAC"}
@@ -1,11 +1,19 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
2
12
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
13
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
14
  };
5
15
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.iconInfo = exports.TYPE_COMPONENT = exports.HORIZONTAL_LAYOUT = exports.VERTICAL_LAYOUT = exports.DIRECTION_LEFT = exports.DIRECTION_BOTTOM = exports.DIRECTION_RIGHT = exports.DIRECTION_TOP = exports.IS_SSR = exports.SOCKET_URL = exports.API_BASE_URL = void 0;
7
- exports.API_BASE_URL = process.env.API_BASE_URL || process.env.REACT_APP_API_BASE_URL;
8
- exports.SOCKET_URL = process.env.SOCKET_URL || process.env.REACT_APP_SOCKET_URL || exports.API_BASE_URL;
16
+ exports.iconInfo = exports.TYPE_COMPONENT = exports.HORIZONTAL_LAYOUT = exports.VERTICAL_LAYOUT = exports.DIRECTION_LEFT = exports.DIRECTION_BOTTOM = exports.DIRECTION_RIGHT = exports.DIRECTION_TOP = exports.IS_SSR = void 0;
9
17
  exports.IS_SSR = ['true', '1'].includes(String(process.env.SSR).toLowerCase());
10
18
  exports.DIRECTION_TOP = "direction/Top";
11
19
  exports.DIRECTION_RIGHT = "direction/Right";
@@ -16,4 +24,5 @@ exports.HORIZONTAL_LAYOUT = 'layout/horizontal';
16
24
  exports.TYPE_COMPONENT = "type/component";
17
25
  var iconInfo_1 = require("./iconInfo");
18
26
  Object.defineProperty(exports, "iconInfo", { enumerable: true, get: function () { return __importDefault(iconInfo_1).default; } });
27
+ __exportStar(require("./platformSpecific"), exports);
19
28
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/constants/index.tsx"],"names":[],"mappings":";;;;;;AAAa,QAAA,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,I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ASE_URL: string;
2
+ export declare const SOCKET_URL: string;
3
+ export declare const APP_NAME = "";
4
+ //# sourceMappingURL=platformSpecific.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"platformSpecific.d.ts","sourceRoot":"","sources":["../../../src/constants/platformSpecific.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,QAAiE,CAAC;AAC3F,eAAO,MAAM,UAAU,QAA6E,CAAC;AACrG,eAAO,MAAM,QAAQ,KAAK,CAAC"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.APP_NAME = exports.SOCKET_URL = exports.API_BASE_URL = void 0;
4
+ exports.API_BASE_URL = process.env.API_BASE_URL || process.env.REACT_APP_API_BASE_URL;
5
+ exports.SOCKET_URL = process.env.SOCKET_URL || process.env.REACT_APP_SOCKET_URL || exports.API_BASE_URL;
6
+ exports.APP_NAME = "";
7
+ //# sourceMappingURL=platformSpecific.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"platformSpecific.js","sourceRoot":"","sources":["../../../src/constants/platformSpecific.ts"],"names":[],"mappings":";;;AAAa,QAAA,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,IAAI,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC;AAC9E,QAAA,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,IAAI,OAAO,CAAC,GAAG,CAAC,oBAAoB,IAAI,oBAAY,CAAC;AACxF,QAAA,QAAQ,GAAG,EAAE,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const API_BASE_URL: any;
2
+ export declare const SOCKET_URL: any;
3
+ export declare const APP_NAME: any;
4
+ //# sourceMappingURL=platformSpecific.native.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"platformSpecific.native.d.ts","sourceRoot":"","sources":["../../../src/constants/platformSpecific.native.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,KAAiG,CAAC;AAC3H,eAAO,MAAM,UAAU,KAA6E,CAAC;AACrG,eAAO,MAAM,QAAQ,KAA4B,CAAC"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.APP_NAME = exports.SOCKET_URL = exports.API_BASE_URL = void 0;
4
+ const react_native_1 = require("react-native");
5
+ const { AppConstants } = react_native_1.NativeModules;
6
+ exports.API_BASE_URL = AppConstants.getApiBaseUrl() || process.env.API_BASE_URL || process.env.REACT_APP_API_BASE_URL;
7
+ exports.SOCKET_URL = process.env.SOCKET_URL || process.env.REACT_APP_SOCKET_URL || exports.API_BASE_URL;
8
+ exports.APP_NAME = AppConstants.getAppName();
9
+ //# sourceMappingURL=platformSpecific.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"platformSpecific.native.js","sourceRoot":"","sources":["../../../src/constants/platformSpecific.native.ts"],"names":[],"mappings":";;;AAAA,+CAA2C;AAC3C,MAAM,EAAC,YAAY,EAAC,GAAG,4BAAa,CAAC;AAExB,QAAA,YAAY,GAAG,YAAY,CAAC,aAAa,EAAE,IAAI,OAAO,CAAC,GAAG,CAAC,YAAY,IAAI,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC;AAC9G,QAAA,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,IAAI,OAAO,CAAC,GAAG,CAAC,oBAAoB,IAAI,oBAAY,CAAC;AACxF,QAAA,QAAQ,GAAG,YAAY,CAAC,UAAU,EAAE,CAAC"}
@@ -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,QA+BvC,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,QAgCvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -24,11 +24,13 @@ const useAction = (action) => {
24
24
  if (typeof actionToUse === 'function')
25
25
  return actionToUse;
26
26
  if (actionToUse) {
27
- const { link, navigate, page, params, dispatch: dispatchAction, route, callback } = actionToUse;
27
+ const { link, navigate, push, page, params, dispatch: dispatchAction, route, callback } = actionToUse;
28
28
  if (link)
29
29
  return () => navigator.openURL(template(link));
30
30
  if (navigate)
31
- return () => navigator.navigate(...lodash_1.castArray(navigate));
31
+ return () => navigator.navigate(...lodash_1.castArray(JSON.parse(template(JSON.stringify(navigate)))));
32
+ if (push)
33
+ return () => navigator.push(...lodash_1.castArray(JSON.parse(template(JSON.stringify(navigate)))));
32
34
  if (page)
33
35
  return ()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YAC7D,IAAI,cAAc;gBAAE,OAAO,GAAG,EAAE,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;YAC1D,IAAI,QAAQ;gBAAE,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,QAAQ,CAAC,EAAC,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAC,CAAC,CAAC;SAC1E;IACL,CAAC,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC;AACtC,CAAC,CAAC;AAhCW,QAAA,SAAS,aAgCpB;AAEF,kBAAe,iBAAS,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evlop/commons",
3
- "version": "1.0.76",
3
+ "version": "1.0.80",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "peerDependencies": {
@@ -20,10 +20,12 @@
20
20
  "socket.io-client": "latest",
21
21
  "pluralize": "latest",
22
22
  "query-string": "latest",
23
- "@react-native-async-storage/async-storage": "latest"
23
+ "@react-native-async-storage/async-storage": "latest",
24
+ "react-native-vector-icons": "^9.0.0"
24
25
  },
25
26
  "optionalDependencies": {},
26
27
  "dependencies": {
28
+ "@evlop/web-components": "^1.0.21",
27
29
  "moment": "^2.29.1"
28
30
  },
29
31
  "scripts": {
@@ -1 +0,0 @@
1
- {"version":3,"file":"iconInfo.d.ts","sourceRoot":"","sources":["../../../src/constants/iconInfo.ts"],"names":[],"mappings":"AAmDA,QAAA,MAAO,QAAQ;;;;;;;;;;;;;CAAgC,CAAC;AAEhD,eAAe,QAAQ,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"iconInfo.js","sourceRoot":"","sources":["../../../src/constants/iconInfo.ts"],"names":[],"mappings":";;;;;AAAA,wGAA2E;AAC3E,kGAAqE;AACrE,wGAA0E;AAC1E,oGAAuE;AACvE,4GAA+E;AAC/E,gIAA+F;AAC/F,sHAAqF;AACrF,sGAAyE;AACzE,0GAA6E;AAC7E,sGAAwE;AACxE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