@evlop/commons 1.0.291 → 1.0.293

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.
@@ -1 +1 @@
1
- [["Roboto", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Open Sans", "300,regular,500,600,700,800,300italic,italic,500italic,600italic,700italic,800italic"], ["Lato", "100,100italic,300,300italic,regular,italic,700,700italic,900,900italic"], ["Montserrat", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Oswald", "200,300,regular,500,600,700"], ["Poppins", "100,100italic,200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic"], ["Merriweather", "300,300italic,regular,italic,700,700italic,900,900italic"], ["Raleway", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Nunito", "200,300,regular,500,600,700,800,900,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["PT Sans", "regular,italic,700,700italic"], ["Roboto Slab", "100,200,300,regular,500,600,700,800,900"], ["Ubuntu", "300,300italic,regular,italic,500,500italic,700,700italic"], ["Playfair Display", "regular,500,600,700,800,900,italic,500italic,600italic,700italic,800italic,900italic"], ["DM Sans", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Work Sans", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Inconsolata", "200,300,regular,500,600,700,800,900"], ["Spectral", "200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic,800,800italic"], ["Bitter", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Noto Sans", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Lora", "regular,500,600,700,italic,500italic,600italic,700italic"], ["Assistant", "200,300,regular,500,600,700,800"], ["Roboto Mono", "100,200,300,regular,500,600,700,100italic,200italic,300italic,italic,500italic,600italic,700italic"], ["Cabin", "regular,500,600,700,italic,500italic,600italic,700italic"], ["Dosis", "200,300,regular,500,600,700,800"], ["Heebo", "100,200,300,regular,500,600,700,800,900"], ["Mukta", "200,300,regular,500,600,700,800"], ["Arvo", "regular,italic,700,700italic"], ["Quicksand", "300,regular,500,600,700"], ["Cinzel", "regular,500,600,700,800,900"], ["Fira Sans", "100,100italic,200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic"], ["Nanum Gothic", "regular,700,800"], ["Overpass", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Zilla Slab", "300,300italic,regular,italic,500,500italic,600,600italic,700,700italic"], ["Libre Baskerville", "regular,italic,700"], ["Rokkitt", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Abel", "regular"], ["Asap", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Cardo", "regular,italic,700"], ["Manrope", "200,300,regular,500,600,700,800"], ["Red Hat Display", "300,regular,500,600,700,800,900,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Martel", "200,300,regular,600,700,800,900"], ["Jost", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["IBM Plex Sans", "100,200,300,regular,500,600,700,100italic,200italic,300italic,italic,500italic,600italic,700italic"], ["Alegreya", "regular,500,600,700,800,900,italic,500italic,600italic,700italic,800italic,900italic"], ["Noticia Text", "regular,italic,700,700italic"], ["Sarabun", "100,100italic,200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic,800,800italic"], ["Exo 2", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Mulish", "200,300,regular,500,600,700,800,900,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Anton", "regular"], ["Signika", "300,regular,500,600,700"], ["Inter", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Arimo", "regular,500,600,700,italic,500italic,600italic,700italic"], ["Crimson Text", "regular,italic,600,600italic,700,700italic"], ["Amatic SC", "regular,700"], ["Varela Round", "regular"], ["Balsamiq Sans", "regular,italic,700,700italic"], ["Cairo", "200,300,regular,500,600,700,800,900"], ["Karla", "200,300,regular,500,600,700,800,200italic,300italic,italic,500italic,600italic,700italic,800italic"], ["Acme", "regular"], ["Roboto Condensed", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Archivo", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Patua One", "regular"], ["Tinos", "regular,italic,700,700italic"], ["Cormorant Garamond", "300,300italic,regular,italic,500,500italic,600,600italic,700,700italic"], ["DM Serif Display", "regular,italic"], ["Chivo", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Old Standard TT", "regular,italic,700"], ["Rasa", "300,regular,500,600,700,300italic,italic,500italic,600italic,700italic"], ["Fjalla One", "regular"], ["Prata", "regular"], ["Itim", "regular"], ["Maven Pro", "regular,500,600,700,800,900"], ["Mukta Vaani", "200,300,regular,500,600,700,800"], ["Anonymous Pro", "regular,italic,700,700italic"], ["Sarabun", "100,100italic,200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic,800,800italic"], ["Recursive", "300,regular,500,600,700,800,900"], ["Fredericka the Great", "regular"], ["Gelasio", "regular,500,600,700,italic,500italic,600italic,700italic"], ["Atkinson Hyperlegible", "regular,italic,700,700italic"], ["Fira Mono", "regular,500,700"], ["Courier Prime", "regular,italic,700,700italic"], ["Libre Franklin", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Comfortaa", "300,regular,500,600,700"], ["Marcellus", "regular"], ["Roboto Flex", "regular"], ["Cormorant", "300,regular,500,600,700,300italic,italic,500italic,600italic,700italic"], ["Space Grotesk", "300,regular,500,600,700"], ["Tenor Sans", "regular"], ["Gothic A1", "100,200,300,regular,500,600,700,800,900"], ["Archivo Narrow", "regular,500,600,700,italic,500italic,600italic,700italic"], ["Federo", "regular"], ["Arapey", "regular,italic"], ["Newsreader", "200,300,regular,500,600,700,800,200italic,300italic,italic,500italic,600italic,700italic,800italic"], ["Cantarell", "regular,italic,700,700italic"], ["Public Sans", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Noto Serif", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Alfa Slab One", "regular"], ["Alata", "regular"], ["Teko", "300,regular,500,600,700"], ["Spectral SC", "200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic,800,800italic"], ["Rubik", "300,regular,500,600,700,800,900,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Belleza", "regular"], ["Coustard", "regular,900"], ["Instrument Sans", "regular,500,600,700,italic,500italic,600italic,700italic"], ["Instrument Serif", "regular,italic"], ["Albert Sans", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"]]
1
+ [["Roboto", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Open Sans", "300,regular,500,600,700,800,300italic,italic,500italic,600italic,700italic,800italic"], ["Lato", "100,100italic,300,300italic,regular,italic,700,700italic,900,900italic"], ["Montserrat", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Oswald", "200,300,regular,500,600,700"], ["Poppins", "100,100italic,200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic"], ["Merriweather", "300,regular,500,600,700,800,900,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Raleway", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Nunito", "200,300,regular,500,600,700,800,900,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["PT Sans", "regular,italic,700,700italic"], ["Roboto Slab", "100,200,300,regular,500,600,700,800,900"], ["Ubuntu", "300,300italic,regular,italic,500,500italic,700,700italic"], ["Playfair Display", "regular,500,600,700,800,900,italic,500italic,600italic,700italic,800italic,900italic"], ["DM Sans", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Work Sans", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Inconsolata", "200,300,regular,500,600,700,800,900"], ["Spectral", "200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic,800,800italic"], ["Bitter", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Noto Sans", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Lora", "regular,500,600,700,italic,500italic,600italic,700italic"], ["Assistant", "200,300,regular,500,600,700,800"], ["Roboto Mono", "100,200,300,regular,500,600,700,100italic,200italic,300italic,italic,500italic,600italic,700italic"], ["Cabin", "regular,500,600,700,italic,500italic,600italic,700italic"], ["Dosis", "200,300,regular,500,600,700,800"], ["Heebo", "100,200,300,regular,500,600,700,800,900"], ["Mukta", "200,300,regular,500,600,700,800"], ["Arvo", "regular,italic,700,700italic"], ["Quicksand", "300,regular,500,600,700"], ["Cinzel", "regular,500,600,700,800,900"], ["Fira Sans", "100,100italic,200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic"], ["Nanum Gothic", "regular,700,800"], ["Overpass", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Zilla Slab", "300,300italic,regular,italic,500,500italic,600,600italic,700,700italic"], ["Libre Baskerville", "regular,italic,700"], ["Rokkitt", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Abel", "regular"], ["Asap", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Cardo", "regular,italic,700"], ["Manrope", "200,300,regular,500,600,700,800"], ["Red Hat Display", "300,regular,500,600,700,800,900,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Martel", "200,300,regular,600,700,800,900"], ["Jost", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["IBM Plex Sans", "100,200,300,regular,500,600,700,100italic,200italic,300italic,italic,500italic,600italic,700italic"], ["Alegreya", "regular,500,600,700,800,900,italic,500italic,600italic,700italic,800italic,900italic"], ["Noticia Text", "regular,italic,700,700italic"], ["Sarabun", "100,100italic,200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic,800,800italic"], ["Exo 2", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Mulish", "200,300,regular,500,600,700,800,900,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Anton", "regular"], ["Signika", "300,regular,500,600,700"], ["Inter", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Arimo", "regular,500,600,700,italic,500italic,600italic,700italic"], ["Crimson Text", "regular,italic,600,600italic,700,700italic"], ["Amatic SC", "regular,700"], ["Varela Round", "regular"], ["Balsamiq Sans", "regular,italic,700,700italic"], ["Cairo", "200,300,regular,500,600,700,800,900"], ["Karla", "200,300,regular,500,600,700,800,200italic,300italic,italic,500italic,600italic,700italic,800italic"], ["Acme", "regular"], ["Roboto Condensed", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Archivo", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Patua One", "regular"], ["Tinos", "regular,italic,700,700italic"], ["Cormorant Garamond", "300,regular,500,600,700,300italic,italic,500italic,600italic,700italic"], ["DM Serif Display", "regular,italic"], ["Chivo", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Old Standard TT", "regular,italic,700"], ["Rasa", "300,regular,500,600,700,300italic,italic,500italic,600italic,700italic"], ["Fjalla One", "regular"], ["Prata", "regular"], ["Itim", "regular"], ["Maven Pro", "regular,500,600,700,800,900"], ["Mukta Vaani", "200,300,regular,500,600,700,800"], ["Anonymous Pro", "regular,italic,700,700italic"], ["Sarabun", "100,100italic,200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic,800,800italic"], ["Recursive", "300,regular,500,600,700,800,900"], ["Fredericka the Great", "regular"], ["Gelasio", "regular,500,600,700,italic,500italic,600italic,700italic"], ["Atkinson Hyperlegible", "regular,italic,700,700italic"], ["Fira Mono", "regular,500,700"], ["Courier Prime", "regular,italic,700,700italic"], ["Libre Franklin", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Comfortaa", "300,regular,500,600,700"], ["Marcellus", "regular"], ["Roboto Flex", "regular"], ["Cormorant", "300,regular,500,600,700,300italic,italic,500italic,600italic,700italic"], ["Space Grotesk", "300,regular,500,600,700"], ["Tenor Sans", "regular"], ["Gothic A1", "100,200,300,regular,500,600,700,800,900"], ["Archivo Narrow", "regular,500,600,700,italic,500italic,600italic,700italic"], ["Federo", "regular"], ["Arapey", "regular,italic"], ["Newsreader", "200,300,regular,500,600,700,800,200italic,300italic,italic,500italic,600italic,700italic,800italic"], ["Cantarell", "regular,italic,700,700italic"], ["Public Sans", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Noto Serif", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Alfa Slab One", "regular"], ["Alata", "regular"], ["Teko", "300,regular,500,600,700"], ["Spectral SC", "200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic,800,800italic"], ["Rubik", "300,regular,500,600,700,800,900,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Belleza", "regular"], ["Coustard", "regular,900"], ["Instrument Sans", "regular,500,600,700,italic,500italic,600italic,700italic"], ["Instrument Serif", "regular,italic"], ["Albert Sans", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"]]
@@ -1 +1 @@
1
- {"version":3,"file":"useNavigator.app.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useNavigator.app.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,0BAA0B,eAAgB,GAAG,QASzD,CAAC;AAEF,eAAO,MAAM,YAAY,WAGxB,CAAC;AAEF,eAAO,MAAM,aAAa,WAAe,CAAC"}
1
+ {"version":3,"file":"useNavigator.app.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useNavigator.app.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,0BAA0B,eAAgB,GAAG,QAezD,CAAC;AAEF,eAAO,MAAM,YAAY,WAGxB,CAAC;AAEF,eAAO,MAAM,aAAa,WAAe,CAAC"}
@@ -14,6 +14,10 @@ const useNavigatorWithNavigation = (navigation) => {
14
14
  openPage: (pageId, params) => navigation.navigate(dispatch(reducers_1.getPageRouteName(pageId)), params),
15
15
  openRoute: (route, params) => navigation.navigate(dispatch(reducers_1.getPageRouteName(route)), params),
16
16
  openURL: (url) => react_native_1.Linking.canOpenURL(url).then((s) => s && react_native_1.Linking.openURL(url)).catch(() => { console.log('url cant be openned'); }),
17
+ // stack actions (push, pop, replace) as dispatch if corresponding navigation methods are not available
18
+ push: (...params) => typeof navigation.push === 'function' ? navigation.push(...params) : navigation.dispatch(native_1.StackActions.push(...params)),
19
+ pop: (...params) => typeof navigation.pop === 'function' ? navigation.pop(...params) : navigation.dispatch(native_1.StackActions.pop(...params)),
20
+ replace: (...params) => typeof navigation.replace === 'function' ? navigation.replace(...params) : navigation.dispatch(native_1.StackActions.replace(...params)),
17
21
  }), [navigation]);
18
22
  };
19
23
  exports.useNavigatorWithNavigation = useNavigatorWithNavigation;
@@ -1 +1 @@
1
- {"version":3,"file":"useNavigator.app.js","sourceRoot":"","sources":["../../../../src/hooks/useNavigator.app.tsx"],"names":[],"mappings":";;;AAAA,qDAA4E;AAC5E,mCAAgC;AAChC,iCAAwC;AACxC,+CAAuC;AACvC,6CAA0C;AAC1C,0CAA+C;AAExC,MAAM,0BAA0B,GAAG,CAAC,UAAe,EAAC,EAAE;IACzD,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,MAAW,EAAE,MAAW,EAAE,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,2BAAgB,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC;QACvG,SAAS,EAAE,CAAC,KAAU,EAAE,MAAW,EAAE,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,2BAAgB,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC;QACtG,OAAO,EAAE,CAAC,GAAQ,EAAE,EAAE,CAAC,sBAAO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;IACrC,OAAO,kCAA0B,CAAC,UAAU,CAAC,CAAC;AAClD,CAAC,CAAC;AAHW,QAAA,YAAY,gBAGvB;AAEW,QAAA,aAAa,GAAG,oBAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useTemplate.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useTemplate.tsx"],"names":[],"mappings":"AAcA,eAAO,MAAM,WAAW,oBAAqB,MAAM,QAqBlD,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"useTemplate.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useTemplate.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,WAAW,oBAAqB,MAAM,QAqBlD,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -4,16 +4,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.useTemplate = void 0;
7
+ const handlebars_min_js_1 = __importDefault(require("handlebars/dist/handlebars.min.js"));
8
+ const lodash_1 = require("lodash");
7
9
  const react_1 = require("react");
8
10
  const useScope_1 = require("./useScope");
9
- const lodash_1 = require("lodash");
10
- const uuid_1 = require("uuid");
11
- const handlebars_min_js_1 = __importDefault(require("handlebars/dist/handlebars.min.js"));
12
- const handlebarsCompile = lodash_1.memoize((stringValue) => handlebars_min_js_1.default.compile(stringValue, { noEscape: true }), (stringValue) => {
13
- if (lodash_1.size(stringValue) < 100)
14
- return stringValue;
15
- return uuid_1.v5(stringValue, '060c30f4-309d-4054-a62e-7d7390c63cce');
16
- });
11
+ const handlebarsCompile = lodash_1.memoize((stringValue) => handlebars_min_js_1.default.compile(stringValue, { noEscape: true }));
17
12
  const useTemplate = (templateString) => {
18
13
  const scope = useScope_1.useScope();
19
14
  const applyTemplate = react_1.useCallback((stringValue) => {
@@ -1 +1 @@
1
- {"version":3,"file":"useTemplate.js","sourceRoot":"","sources":["../../../../src/hooks/useTemplate.tsx"],"names":[],"mapp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kBAAe,mBAAW,CAAC"}
1
+ {"version":3,"file":"useTemplate.js","sourceRoot":"","sources":["../../../../src/hooks/useTemplate.tsx"],"names":[],"mappings":";;;;;;AAAA,0FAA2D;AAC3D,mCAA2C;AAC3C,iCAA6C;AAC7C,yCAAsC;AAEtC,MAAM,iBAAiB,GAAG,gBAAO,CAAC,CAAC,WAAkB,EAAE,EAAE,CAAC,2BAAU,CAAC,OAAO,CAAC,WAAW,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,CAAC,CAAA;AAErG,MAAM,WAAW,GAAG,CAAC,cAAuB,EAAC,EAAE;IAElD,MAAM,KAAK,GAAG,mBAAQ,EAAE,CAAC;IACzB,MAAM,aAAa,GAAG,mBAAW,CAAC,CAAC,WAAmB,EAAC,EAAE;QACrD,IAAG,iBAAQ,CAAC,WAAW,CAAC,EAAE;YACtB,IAAG;gBACC,MAAM,QAAQ,GAAG,iBAAiB,CAAC,WAAW,CAAC,CAAC;gBAChD,OAAO,QAAQ,CAAC,KAAK,EAAE,EAAC,0BAA0B,EAAE,IAAI,EAAE,6BAA6B,EAAE,IAAI,EAAC,CAAC,CAAC;aACnG;YAAC,OAAM,CAAC,EAAC,GAAE;SACf;QACD,OAAO,WAAW,CAAC;IACvB,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAA;IAEX,MAAM,UAAU,GAAG,eAAO,CAAC,GAAE,EAAE;QAC3B,IAAG,cAAc;YAAE,OAAO,aAAa,CAAC,cAAc,CAAC,CAAC;QACxD,OAAO,cAAc,CAAC;IAC1B,CAAC,EAAE,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC,CAAC;IAEpC,IAAG,cAAc,KAAK,SAAS;QAAE,OAAO,aAAa,CAAC;IAEtD,OAAO,UAAU,CAAC;AACtB,CAAC,CAAC;AArBW,QAAA,WAAW,eAqBtB;AAEF,kBAAe,mBAAW,CAAC"}
@@ -1 +1 @@
1
- [["Roboto", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Open Sans", "300,regular,500,600,700,800,300italic,italic,500italic,600italic,700italic,800italic"], ["Lato", "100,100italic,300,300italic,regular,italic,700,700italic,900,900italic"], ["Montserrat", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Oswald", "200,300,regular,500,600,700"], ["Poppins", "100,100italic,200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic"], ["Merriweather", "300,300italic,regular,italic,700,700italic,900,900italic"], ["Raleway", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Nunito", "200,300,regular,500,600,700,800,900,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["PT Sans", "regular,italic,700,700italic"], ["Roboto Slab", "100,200,300,regular,500,600,700,800,900"], ["Ubuntu", "300,300italic,regular,italic,500,500italic,700,700italic"], ["Playfair Display", "regular,500,600,700,800,900,italic,500italic,600italic,700italic,800italic,900italic"], ["DM Sans", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Work Sans", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Inconsolata", "200,300,regular,500,600,700,800,900"], ["Spectral", "200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic,800,800italic"], ["Bitter", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Noto Sans", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Lora", "regular,500,600,700,italic,500italic,600italic,700italic"], ["Assistant", "200,300,regular,500,600,700,800"], ["Roboto Mono", "100,200,300,regular,500,600,700,100italic,200italic,300italic,italic,500italic,600italic,700italic"], ["Cabin", "regular,500,600,700,italic,500italic,600italic,700italic"], ["Dosis", "200,300,regular,500,600,700,800"], ["Heebo", "100,200,300,regular,500,600,700,800,900"], ["Mukta", "200,300,regular,500,600,700,800"], ["Arvo", "regular,italic,700,700italic"], ["Quicksand", "300,regular,500,600,700"], ["Cinzel", "regular,500,600,700,800,900"], ["Fira Sans", "100,100italic,200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic"], ["Nanum Gothic", "regular,700,800"], ["Overpass", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Zilla Slab", "300,300italic,regular,italic,500,500italic,600,600italic,700,700italic"], ["Libre Baskerville", "regular,italic,700"], ["Rokkitt", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Abel", "regular"], ["Asap", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Cardo", "regular,italic,700"], ["Manrope", "200,300,regular,500,600,700,800"], ["Red Hat Display", "300,regular,500,600,700,800,900,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Martel", "200,300,regular,600,700,800,900"], ["Jost", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["IBM Plex Sans", "100,200,300,regular,500,600,700,100italic,200italic,300italic,italic,500italic,600italic,700italic"], ["Alegreya", "regular,500,600,700,800,900,italic,500italic,600italic,700italic,800italic,900italic"], ["Noticia Text", "regular,italic,700,700italic"], ["Sarabun", "100,100italic,200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic,800,800italic"], ["Exo 2", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Mulish", "200,300,regular,500,600,700,800,900,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Anton", "regular"], ["Signika", "300,regular,500,600,700"], ["Inter", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Arimo", "regular,500,600,700,italic,500italic,600italic,700italic"], ["Crimson Text", "regular,italic,600,600italic,700,700italic"], ["Amatic SC", "regular,700"], ["Varela Round", "regular"], ["Balsamiq Sans", "regular,italic,700,700italic"], ["Cairo", "200,300,regular,500,600,700,800,900"], ["Karla", "200,300,regular,500,600,700,800,200italic,300italic,italic,500italic,600italic,700italic,800italic"], ["Acme", "regular"], ["Roboto Condensed", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Archivo", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Patua One", "regular"], ["Tinos", "regular,italic,700,700italic"], ["Cormorant Garamond", "300,300italic,regular,italic,500,500italic,600,600italic,700,700italic"], ["DM Serif Display", "regular,italic"], ["Chivo", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Old Standard TT", "regular,italic,700"], ["Rasa", "300,regular,500,600,700,300italic,italic,500italic,600italic,700italic"], ["Fjalla One", "regular"], ["Prata", "regular"], ["Itim", "regular"], ["Maven Pro", "regular,500,600,700,800,900"], ["Mukta Vaani", "200,300,regular,500,600,700,800"], ["Anonymous Pro", "regular,italic,700,700italic"], ["Sarabun", "100,100italic,200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic,800,800italic"], ["Recursive", "300,regular,500,600,700,800,900"], ["Fredericka the Great", "regular"], ["Gelasio", "regular,500,600,700,italic,500italic,600italic,700italic"], ["Atkinson Hyperlegible", "regular,italic,700,700italic"], ["Fira Mono", "regular,500,700"], ["Courier Prime", "regular,italic,700,700italic"], ["Libre Franklin", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Comfortaa", "300,regular,500,600,700"], ["Marcellus", "regular"], ["Roboto Flex", "regular"], ["Cormorant", "300,regular,500,600,700,300italic,italic,500italic,600italic,700italic"], ["Space Grotesk", "300,regular,500,600,700"], ["Tenor Sans", "regular"], ["Gothic A1", "100,200,300,regular,500,600,700,800,900"], ["Archivo Narrow", "regular,500,600,700,italic,500italic,600italic,700italic"], ["Federo", "regular"], ["Arapey", "regular,italic"], ["Newsreader", "200,300,regular,500,600,700,800,200italic,300italic,italic,500italic,600italic,700italic,800italic"], ["Cantarell", "regular,italic,700,700italic"], ["Public Sans", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Noto Serif", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Alfa Slab One", "regular"], ["Alata", "regular"], ["Teko", "300,regular,500,600,700"], ["Spectral SC", "200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic,800,800italic"], ["Rubik", "300,regular,500,600,700,800,900,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Belleza", "regular"], ["Coustard", "regular,900"], ["Instrument Sans", "regular,500,600,700,italic,500italic,600italic,700italic"], ["Instrument Serif", "regular,italic"], ["Albert Sans", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"]]
1
+ [["Roboto", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Open Sans", "300,regular,500,600,700,800,300italic,italic,500italic,600italic,700italic,800italic"], ["Lato", "100,100italic,300,300italic,regular,italic,700,700italic,900,900italic"], ["Montserrat", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Oswald", "200,300,regular,500,600,700"], ["Poppins", "100,100italic,200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic"], ["Merriweather", "300,regular,500,600,700,800,900,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Raleway", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Nunito", "200,300,regular,500,600,700,800,900,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["PT Sans", "regular,italic,700,700italic"], ["Roboto Slab", "100,200,300,regular,500,600,700,800,900"], ["Ubuntu", "300,300italic,regular,italic,500,500italic,700,700italic"], ["Playfair Display", "regular,500,600,700,800,900,italic,500italic,600italic,700italic,800italic,900italic"], ["DM Sans", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Work Sans", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Inconsolata", "200,300,regular,500,600,700,800,900"], ["Spectral", "200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic,800,800italic"], ["Bitter", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Noto Sans", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Lora", "regular,500,600,700,italic,500italic,600italic,700italic"], ["Assistant", "200,300,regular,500,600,700,800"], ["Roboto Mono", "100,200,300,regular,500,600,700,100italic,200italic,300italic,italic,500italic,600italic,700italic"], ["Cabin", "regular,500,600,700,italic,500italic,600italic,700italic"], ["Dosis", "200,300,regular,500,600,700,800"], ["Heebo", "100,200,300,regular,500,600,700,800,900"], ["Mukta", "200,300,regular,500,600,700,800"], ["Arvo", "regular,italic,700,700italic"], ["Quicksand", "300,regular,500,600,700"], ["Cinzel", "regular,500,600,700,800,900"], ["Fira Sans", "100,100italic,200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic"], ["Nanum Gothic", "regular,700,800"], ["Overpass", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Zilla Slab", "300,300italic,regular,italic,500,500italic,600,600italic,700,700italic"], ["Libre Baskerville", "regular,italic,700"], ["Rokkitt", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Abel", "regular"], ["Asap", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Cardo", "regular,italic,700"], ["Manrope", "200,300,regular,500,600,700,800"], ["Red Hat Display", "300,regular,500,600,700,800,900,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Martel", "200,300,regular,600,700,800,900"], ["Jost", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["IBM Plex Sans", "100,200,300,regular,500,600,700,100italic,200italic,300italic,italic,500italic,600italic,700italic"], ["Alegreya", "regular,500,600,700,800,900,italic,500italic,600italic,700italic,800italic,900italic"], ["Noticia Text", "regular,italic,700,700italic"], ["Sarabun", "100,100italic,200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic,800,800italic"], ["Exo 2", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Mulish", "200,300,regular,500,600,700,800,900,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Anton", "regular"], ["Signika", "300,regular,500,600,700"], ["Inter", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Arimo", "regular,500,600,700,italic,500italic,600italic,700italic"], ["Crimson Text", "regular,italic,600,600italic,700,700italic"], ["Amatic SC", "regular,700"], ["Varela Round", "regular"], ["Balsamiq Sans", "regular,italic,700,700italic"], ["Cairo", "200,300,regular,500,600,700,800,900"], ["Karla", "200,300,regular,500,600,700,800,200italic,300italic,italic,500italic,600italic,700italic,800italic"], ["Acme", "regular"], ["Roboto Condensed", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Archivo", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Patua One", "regular"], ["Tinos", "regular,italic,700,700italic"], ["Cormorant Garamond", "300,regular,500,600,700,300italic,italic,500italic,600italic,700italic"], ["DM Serif Display", "regular,italic"], ["Chivo", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Old Standard TT", "regular,italic,700"], ["Rasa", "300,regular,500,600,700,300italic,italic,500italic,600italic,700italic"], ["Fjalla One", "regular"], ["Prata", "regular"], ["Itim", "regular"], ["Maven Pro", "regular,500,600,700,800,900"], ["Mukta Vaani", "200,300,regular,500,600,700,800"], ["Anonymous Pro", "regular,italic,700,700italic"], ["Sarabun", "100,100italic,200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic,800,800italic"], ["Recursive", "300,regular,500,600,700,800,900"], ["Fredericka the Great", "regular"], ["Gelasio", "regular,500,600,700,italic,500italic,600italic,700italic"], ["Atkinson Hyperlegible", "regular,italic,700,700italic"], ["Fira Mono", "regular,500,700"], ["Courier Prime", "regular,italic,700,700italic"], ["Libre Franklin", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Comfortaa", "300,regular,500,600,700"], ["Marcellus", "regular"], ["Roboto Flex", "regular"], ["Cormorant", "300,regular,500,600,700,300italic,italic,500italic,600italic,700italic"], ["Space Grotesk", "300,regular,500,600,700"], ["Tenor Sans", "regular"], ["Gothic A1", "100,200,300,regular,500,600,700,800,900"], ["Archivo Narrow", "regular,500,600,700,italic,500italic,600italic,700italic"], ["Federo", "regular"], ["Arapey", "regular,italic"], ["Newsreader", "200,300,regular,500,600,700,800,200italic,300italic,italic,500italic,600italic,700italic,800italic"], ["Cantarell", "regular,italic,700,700italic"], ["Public Sans", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Noto Serif", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Alfa Slab One", "regular"], ["Alata", "regular"], ["Teko", "300,regular,500,600,700"], ["Spectral SC", "200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic,800,800italic"], ["Rubik", "300,regular,500,600,700,800,900,300italic,italic,500italic,600italic,700italic,800italic,900italic"], ["Belleza", "regular"], ["Coustard", "regular,900"], ["Instrument Sans", "regular,500,600,700,italic,500italic,600italic,700italic"], ["Instrument Serif", "regular,italic"], ["Albert Sans", "100,200,300,regular,500,600,700,800,900,100italic,200italic,300italic,italic,500italic,600italic,700italic,800italic,900italic"]]
@@ -1 +1 @@
1
- {"version":3,"file":"useNavigator.app.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useNavigator.app.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,0BAA0B,eAAgB,GAAG,QASzD,CAAC;AAEF,eAAO,MAAM,YAAY,WAGxB,CAAC;AAEF,eAAO,MAAM,aAAa,WAAe,CAAC"}
1
+ {"version":3,"file":"useNavigator.app.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useNavigator.app.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,0BAA0B,eAAgB,GAAG,QAezD,CAAC;AAEF,eAAO,MAAM,YAAY,WAGxB,CAAC;AAEF,eAAO,MAAM,aAAa,WAAe,CAAC"}
@@ -1,4 +1,4 @@
1
- import { useNavigation as useRNNavigation } from '@react-navigation/native';
1
+ import { useNavigation as useRNNavigation, StackActions } from '@react-navigation/native';
2
2
  import { assign } from 'lodash';
3
3
  import { useMemo, useRef } from 'react';
4
4
  import { Linking } from 'react-native';
@@ -11,6 +11,10 @@ export const useNavigatorWithNavigation = (navigation) => {
11
11
  openPage: (pageId, params) => navigation.navigate(dispatch(getPageRouteName(pageId)), params),
12
12
  openRoute: (route, params) => navigation.navigate(dispatch(getPageRouteName(route)), params),
13
13
  openURL: (url) => Linking.canOpenURL(url).then((s) => s && Linking.openURL(url)).catch(() => { console.log('url cant be openned'); }),
14
+ // stack actions (push, pop, replace) as dispatch if corresponding navigation methods are not available
15
+ push: (...params) => typeof navigation.push === 'function' ? navigation.push(...params) : navigation.dispatch(StackActions.push(...params)),
16
+ pop: (...params) => typeof navigation.pop === 'function' ? navigation.pop(...params) : navigation.dispatch(StackActions.pop(...params)),
17
+ replace: (...params) => typeof navigation.replace === 'function' ? navigation.replace(...params) : navigation.dispatch(StackActions.replace(...params)),
14
18
  }), [navigation]);
15
19
  };
16
20
  export const useNavigator = () => {
@@ -1 +1 @@
1
- {"version":3,"file":"useNavigator.app.js","sourceRoot":"","sources":["../../../../src/hooks/useNavigator.app.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC5E,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,UAAe,EAAC,EAAE;IACzD,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,MAAM,SAAS,GAAG,MAAM,CAAM,EAAE,CAAC,CAAC;IAElC,OAAO,OAAO,CAAC,GAAE,EAAE,CAAA,MAAM,CAAC,SAAS,CAAC,OAAO,EAAE,UAAU,EAAE;QACrD,QAAQ,EAAE,CAAC,MAAW,EAAE,MAAW,EAAE,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC;QACvG,SAAS,EAAE,CAAC,K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,GAAG,MAAa,EAAE,EAAE,CAAC,OAAO,UAAU,CAAC,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,MAAM,CAAC,CAAC;KAEjK,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;AACtB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,GAAE,EAAE;IAC5B,MAAM,UAAU,GAAG,eAAe,EAAE,CAAC;IACrC,OAAO,0BAA0B,CAAC,UAAU,CAAC,CAAC;AAClD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useTemplate.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useTemplate.tsx"],"names":[],"mappings":"AAcA,eAAO,MAAM,WAAW,oBAAqB,MAAM,QAqBlD,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"useTemplate.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useTemplate.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,WAAW,oBAAqB,MAAM,QAqBlD,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1,13 +1,8 @@
1
- import { useMemo, useCallback } from 'react';
2
- import { useScope } from "./useScope";
3
- import { isString, memoize, size } from 'lodash';
4
- import { v5 as uuidv5 } from 'uuid';
5
1
  import Handlebars from 'handlebars/dist/handlebars.min.js';
6
- const handlebarsCompile = memoize((stringValue) => Handlebars.compile(stringValue, { noEscape: true }), (stringValue) => {
7
- if (size(stringValue) < 100)
8
- return stringValue;
9
- return uuidv5(stringValue, '060c30f4-309d-4054-a62e-7d7390c63cce');
10
- });
2
+ import { isString, memoize } from 'lodash';
3
+ import { useCallback, useMemo } from 'react';
4
+ import { useScope } from "./useScope";
5
+ const handlebarsCompile = memoize((stringValue) => Handlebars.compile(stringValue, { noEscape: true }));
11
6
  export const useTemplate = (templateString) => {
12
7
  const scope = useScope();
13
8
  const applyTemplate = useCallback((stringValue) => {
@@ -1 +1 @@
1
- {"version":3,"file":"useTemplate.js","sourceRoot":"","sources":["../../../../src/hooks/useTemplate.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAE,WAAW,EAAC,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACjD,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,UAAU,MAAM,mCAAmC,CAAC;AAE3D,MAAM,iBAAiB,GAAG,OAAO,CACzB,CAAC,WAAkB,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,WAAW,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC,EACzE,CAAC,WAAW,EAAE,EAAE;IACZ,IAAG,IAAI,CAAC,WAAW,CAAC,GAAC,GAAG;QAAE,OAAO,WAAW,CAAA;IAC5C,OAAO,MAAM,CAAC,WAAW,EAAE,sCAAsC,CAAC,CAAA;AACtE,CAAC,CACJ,CAAA;AAEL,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,cAAuB,EAAC,EAAE;IAElD,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,aAAa,GAAG,WAAW,CAAC,CAAC,WAAmB,EAAC,EAAE;QACrD,IAAG,QAAQ,CAAC,WAAW,CAAC,EAAE;YACtB,IAAG;gBACC,MAAM,QAAQ,GAAG,iBAAiB,CAAC,WAAW,CAAC,CAAC;gBAChD,OAAO,QAAQ,CAAC,KAAK,EAAE,EAAC,0BAA0B,EAAE,IAAI,EAAE,6BAA6B,EAAE,IAAI,EAAC,CAAC,CAAC;aACnG;YAAC,OAAM,C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AI,EAAC,CAAC,CAAC;aACnG;YAAC,OAAM,CAAC,EAAC,GAAE;SACf;QACD,OAAO,WAAW,CAAC;IACvB,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAA;IAEX,MAAM,UAAU,GAAG,OAAO,CAAC,GAAE,EAAE;QAC3B,IAAG,cAAc;YAAE,OAAO,aAAa,CAAC,cAAc,CAAC,CAAC;QACxD,OAAO,cAAc,CAAC;IAC1B,CAAC,EAAE,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC,CAAC;IAEpC,IAAG,cAAc,KAAK,SAAS;QAAE,OAAO,aAAa,CAAC;IAEtD,OAAO,UAAU,CAAC;AACtB,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useNavigator.app.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useNavigator.app.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,0BAA0B,eAAgB,GAAG,QASzD,CAAC;AAEF,eAAO,MAAM,YAAY,WAGxB,CAAC;AAEF,eAAO,MAAM,aAAa,WAAe,CAAC"}
1
+ {"version":3,"file":"useNavigator.app.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useNavigator.app.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,0BAA0B,eAAgB,GAAG,QAezD,CAAC;AAEF,eAAO,MAAM,YAAY,WAGxB,CAAC;AAEF,eAAO,MAAM,aAAa,WAAe,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"useTemplate.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useTemplate.tsx"],"names":[],"mappings":"AAcA,eAAO,MAAM,WAAW,oBAAqB,MAAM,QAqBlD,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"useTemplate.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useTemplate.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,WAAW,oBAAqB,MAAM,QAqBlD,CAAC;AAEF,eAAe,WAAW,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evlop/commons",
3
- "version": "1.0.291",
3
+ "version": "1.0.293",
4
4
  "description": "",
5
5
  "main": "dist/cjs/main.js",
6
6
  "module": "dist/esm/main.js",