@evlop/commons 1.0.289 → 1.0.291

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.
Files changed (56) hide show
  1. package/dist/cjs/src/constants/googleFonts/variants.min.json +1 -1
  2. package/dist/cjs/src/edl/elements/UseEffect.d.ts.map +1 -1
  3. package/dist/cjs/src/edl/elements/UseEffect.js +0 -4
  4. package/dist/cjs/src/edl/elements/UseEffect.js.map +1 -1
  5. package/dist/cjs/src/edl/elements/WhenFocused.app.d.ts +5 -0
  6. package/dist/cjs/src/edl/elements/WhenFocused.app.d.ts.map +1 -0
  7. package/dist/cjs/src/edl/elements/WhenFocused.app.js +11 -0
  8. package/dist/cjs/src/edl/elements/WhenFocused.app.js.map +1 -0
  9. package/dist/cjs/src/edl/elements/WhenFocused.d.ts +5 -0
  10. package/dist/cjs/src/edl/elements/WhenFocused.d.ts.map +1 -0
  11. package/dist/cjs/src/edl/elements/WhenFocused.js +7 -0
  12. package/dist/cjs/src/edl/elements/WhenFocused.js.map +1 -0
  13. package/dist/cjs/src/edl/elements/index.d.ts +3 -0
  14. package/dist/cjs/src/edl/elements/index.d.ts.map +1 -1
  15. package/dist/cjs/src/edl/elements/index.js +2 -0
  16. package/dist/cjs/src/edl/elements/index.js.map +1 -1
  17. package/dist/cjs/src/edl/index.d.ts +3 -0
  18. package/dist/cjs/src/edl/index.d.ts.map +1 -1
  19. package/dist/cjs/src/hooks/useConfig.d.ts +1 -1
  20. package/dist/cjs/src/hooks/useConfig.d.ts.map +1 -1
  21. package/dist/cjs/src/hooks/useConfig.js +11 -2
  22. package/dist/cjs/src/hooks/useConfig.js.map +1 -1
  23. package/dist/esm/src/constants/googleFonts/variants.min.json +1 -1
  24. package/dist/esm/src/edl/elements/UseEffect.d.ts.map +1 -1
  25. package/dist/esm/src/edl/elements/UseEffect.js +0 -4
  26. package/dist/esm/src/edl/elements/UseEffect.js.map +1 -1
  27. package/dist/esm/src/edl/elements/WhenFocused.app.d.ts +5 -0
  28. package/dist/esm/src/edl/elements/WhenFocused.app.d.ts.map +1 -0
  29. package/dist/esm/src/edl/elements/WhenFocused.app.js +9 -0
  30. package/dist/esm/src/edl/elements/WhenFocused.app.js.map +1 -0
  31. package/dist/esm/src/edl/elements/WhenFocused.d.ts +5 -0
  32. package/dist/esm/src/edl/elements/WhenFocused.d.ts.map +1 -0
  33. package/dist/esm/src/edl/elements/WhenFocused.js +5 -0
  34. package/dist/esm/src/edl/elements/WhenFocused.js.map +1 -0
  35. package/dist/esm/src/edl/elements/index.d.ts +3 -0
  36. package/dist/esm/src/edl/elements/index.d.ts.map +1 -1
  37. package/dist/esm/src/edl/elements/index.js +2 -0
  38. package/dist/esm/src/edl/elements/index.js.map +1 -1
  39. package/dist/esm/src/edl/index.d.ts +3 -0
  40. package/dist/esm/src/edl/index.d.ts.map +1 -1
  41. package/dist/esm/src/hooks/useConfig.d.ts +1 -1
  42. package/dist/esm/src/hooks/useConfig.d.ts.map +1 -1
  43. package/dist/esm/src/hooks/useConfig.js +11 -2
  44. package/dist/esm/src/hooks/useConfig.js.map +1 -1
  45. package/dist/types/src/edl/elements/UseEffect.d.ts.map +1 -1
  46. package/dist/types/src/edl/elements/WhenFocused.app.d.ts +5 -0
  47. package/dist/types/src/edl/elements/WhenFocused.app.d.ts.map +1 -0
  48. package/dist/types/src/edl/elements/WhenFocused.d.ts +5 -0
  49. package/dist/types/src/edl/elements/WhenFocused.d.ts.map +1 -0
  50. package/dist/types/src/edl/elements/index.d.ts +3 -0
  51. package/dist/types/src/edl/elements/index.d.ts.map +1 -1
  52. package/dist/types/src/edl/index.d.ts +3 -0
  53. package/dist/types/src/edl/index.d.ts.map +1 -1
  54. package/dist/types/src/hooks/useConfig.d.ts +1 -1
  55. package/dist/types/src/hooks/useConfig.d.ts.map +1 -1
  56. package/package.json +3 -2
@@ -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,100italic,200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,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,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 +1 @@
1
- {"version":3,"file":"UseEffect.d.ts","sourceRoot":"","sources":["../../../../../src/edl/elements/UseEffect.tsx"],"names":[],"mappings":"AAEA;;;GAGG;AACH,QAAA,MAAM,SAAS;;;SAcd,CAAA;AAOD,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"UseEffect.d.ts","sourceRoot":"","sources":["../../../../../src/edl/elements/UseEffect.tsx"],"names":[],"mappings":"AAEA;;;GAGG;AACH,QAAA,MAAM,SAAS;;;SAcd,CAAA;AAED,eAAe,SAAS,CAAC"}
@@ -20,9 +20,5 @@ const UseEffect = ({ ':function': fn, ':dependencies': deps }) => {
20
20
  }, dependencies);
21
21
  return null;
22
22
  };
23
- Object.assign(UseEffect, {
24
- isSelfClosing: true,
25
- propGroups: ['useEffect']
26
- });
27
23
  exports.default = UseEffect;
28
24
  //# sourceMappingURL=UseEffect.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UseEffect.js","sourceRoot":"","sources":["../../../../../src/edl/elements/UseEffect.tsx"],"names":[],"mappings":";;AAAA,iCAAyC;AAEzC;;;GAGG;AACH,MAAM,SAAS,GAAG,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,EAAE,EAAE;IAC7D,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;IAErD,iBAAS,CAAC,GAAG,EAAE;QACX,IAAI,OAAO,EAAE,IAAI,UAAU;YAAE,OAAO;QACpC,IAAI;YACA,OAAO,EAAE,EAAE,CAAC;SACf;QAAC,OAAO,CAAC,EAAE;YACR,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;SACpB;QACL,uDAAuD;IACvD,CAAC,EAAE,YAAY,CAAC,CAAC;IAEjB,OAAO,IAAI,CAAC;AAChB,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE;IACrB,aAAa,EAAE,IAAI;IACnB,UAAU,EAAE,CAAC,WAAW,CAAC;CAC1B,CAAC,CAAC;AAEL,kBAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"UseEffect.js","sourceRoot":"","sources":["../../../../../src/edl/elements/UseEffect.tsx"],"names":[],"mappings":";;AAAA,iCAAyC;AAEzC;;;GAGG;AACH,MAAM,SAAS,GAAG,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,EAAE,EAAE;IAC7D,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;IAErD,iBAAS,CAAC,GAAG,EAAE;QACX,IAAI,OAAO,EAAE,IAAI,UAAU;YAAE,OAAO;QACpC,IAAI;YACA,OAAO,EAAE,EAAE,CAAC;SACf;QAAC,OAAO,CAAC,EAAE;YACR,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;SACpB;QACL,uDAAuD;IACvD,CAAC,EAAE,YAAY,CAAC,CAAC;IAEjB,OAAO,IAAI,CAAC;AAChB,CAAC,CAAA;AAED,kBAAe,SAAS,CAAC"}
@@ -0,0 +1,5 @@
1
+ declare const WhenFocused: ({ children }: {
2
+ children: any;
3
+ }) => any;
4
+ export default WhenFocused;
5
+ //# sourceMappingURL=WhenFocused.app.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WhenFocused.app.d.ts","sourceRoot":"","sources":["../../../../../src/edl/elements/WhenFocused.app.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,WAAW;;SAIhB,CAAA;AAED,eAAe,WAAW,CAAC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const native_1 = require("@react-navigation/native");
4
+ const WhenFocused = ({ children }) => {
5
+ const isFocused = native_1.useIsFocused();
6
+ if (!isFocused)
7
+ return null;
8
+ return children;
9
+ };
10
+ exports.default = WhenFocused;
11
+ //# sourceMappingURL=WhenFocused.app.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WhenFocused.app.js","sourceRoot":"","sources":["../../../../../src/edl/elements/WhenFocused.app.ts"],"names":[],"mappings":";;AAAA,qDAAwD;AAExD,MAAM,WAAW,GAAG,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACjC,MAAM,SAAS,GAAG,qBAAY,EAAE,CAAC;IACjC,IAAG,CAAC,SAAS;QAAE,OAAO,IAAI,CAAC;IAC3B,OAAO,QAAQ,CAAC;AACpB,CAAC,CAAA;AAED,kBAAe,WAAW,CAAC"}
@@ -0,0 +1,5 @@
1
+ declare const WhenFocused: ({ children }: {
2
+ children: any;
3
+ }) => any;
4
+ export default WhenFocused;
5
+ //# sourceMappingURL=WhenFocused.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WhenFocused.d.ts","sourceRoot":"","sources":["../../../../../src/edl/elements/WhenFocused.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW;;SAEhB,CAAA;AAED,eAAe,WAAW,CAAC"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const WhenFocused = ({ children }) => {
4
+ return children;
5
+ };
6
+ exports.default = WhenFocused;
7
+ //# sourceMappingURL=WhenFocused.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WhenFocused.js","sourceRoot":"","sources":["../../../../../src/edl/elements/WhenFocused.ts"],"names":[],"mappings":";;AAAA,MAAM,WAAW,GAAG,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACjC,OAAO,QAAQ,CAAC;AACpB,CAAC,CAAA;AAED,kBAAe,WAAW,CAAC"}
@@ -13,6 +13,9 @@ declare const coreElements: {
13
13
  }) => any;
14
14
  DataSource: typeof DataSource;
15
15
  IfElse: import("react").FC<import("./IfElse").IfElseProps>;
16
+ WhenFocused: ({ children }: {
17
+ children: any;
18
+ }) => any;
16
19
  };
17
20
  export default coreElements;
18
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/edl/elements/index.ts"],"names":[],"mappings":"AAEA,OAAO,UAAU,MAAM,cAAc,CAAC;AAGtC,QAAA,MAAM,YAAY;;;;;;;;;;;;;;CAMjB,CAAA;AAED,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/edl/elements/index.ts"],"names":[],"mappings":"AAEA,OAAO,UAAU,MAAM,cAAc,CAAC;AAItC,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;CAOjB,CAAA;AAED,eAAe,YAAY,CAAC"}
@@ -7,12 +7,14 @@ const UseEffect_1 = __importDefault(require("./UseEffect"));
7
7
  const Fragment_1 = __importDefault(require("./Fragment"));
8
8
  const DataSource_1 = __importDefault(require("./DataSource"));
9
9
  const IfElse_1 = __importDefault(require("./IfElse"));
10
+ const WhenFocused_1 = __importDefault(require("./WhenFocused"));
10
11
  const coreElements = {
11
12
  UseEffect: UseEffect_1.default,
12
13
  Script: UseEffect_1.default,
13
14
  Fragment: Fragment_1.default,
14
15
  DataSource: DataSource_1.default,
15
16
  IfElse: IfElse_1.default,
17
+ WhenFocused: WhenFocused_1.default,
16
18
  };
17
19
  exports.default = coreElements;
18
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/edl/elements/index.ts"],"names":[],"mappings":";;;;;AAAA,4DAAoC;AACpC,0DAAkC;AAClC,8DAAsC;AACtC,sDAA8B;AAE9B,MAAM,YAAY,GAAG;IACjB,SAAS,EAAT,mBAAS;IACT,MAAM,EAAE,mBAAS;IACjB,QAAQ,EAAR,kBAAQ;IACR,UAAU,EAAV,oBAAU;IACV,MAAM,EAAN,gBAAM;CACT,CAAA;AAED,kBAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/edl/elements/index.ts"],"names":[],"mappings":";;;;;AAAA,4DAAoC;AACpC,0DAAkC;AAClC,8DAAsC;AACtC,sDAA8B;AAC9B,gEAAwC;AAExC,MAAM,YAAY,GAAG;IACjB,SAAS,EAAT,mBAAS;IACT,MAAM,EAAE,mBAAS;IACjB,QAAQ,EAAR,kBAAQ;IACR,UAAU,EAAV,oBAAU;IACV,MAAM,EAAN,gBAAM;IACN,WAAW,EAAX,qBAAW;CACd,CAAA;AAED,kBAAe,YAAY,CAAC"}
@@ -55,6 +55,9 @@ export declare const EDL: {
55
55
  }) => any;
56
56
  DataSource: typeof import("./elements/DataSource").default;
57
57
  IfElse: React.FC<import("./elements/IfElse").IfElseProps>;
58
+ WhenFocused: ({ children }: {
59
+ children: any;
60
+ }) => any;
58
61
  };
59
62
  parse: ((edl: any) => import("./parser").EdlNode[]) & lodash.MemoizedFunction;
60
63
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/edl/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAS9D,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAQjC,aAAK,yBAAyB,GAAG;IAC/B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAA;AAOD,aAAK,kBAAkB,GAAG,MAAM,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,CAAC,CAAC;AAS7E,aAAK,UAAU,GAAG;IAChB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAA;AASD,iBAAS,eAAe,CAAC,IAAI,KAAA,EAAE,OAAO,KAAA,QAErC;AAED,iBAAS,gBAAgB,CAAC,WAAW,KAAA,QAEpC;AAGD,iBAAS,6BAA6B,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,QAG9D;AAED,iBAAS,8BAA8B,CAAC,gBAAgB,EAAE,yBAAyB,QAGlF;AAED,iBAAS,0BAA0B,CAAC,KAAK,EAAE,kBAAkB,QAS5D;AAED,iBAAS,2BAA2B,CAAC,MAAM,EAAE,kBAAkB,EAAE,QAEhE;AAED,iBAAS,UAAU,CAAC,UAAU,EAAE,UAAU,QAEzC;AAKD,UAAU,cAAc;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,GAAG,CAAC;IACV,WAAW,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IACpC,MAAM,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACnC,YAAY,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CAC1C;AA8GD,eAAO,MAAM,GAAG;8JA5GkJ,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;CAyH/K,CAAC;AAEF,eAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/edl/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAS9D,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAQjC,aAAK,yBAAyB,GAAG;IAC/B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAA;AAOD,aAAK,kBAAkB,GAAG,MAAM,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,CAAC,CAAC;AAS7E,aAAK,UAAU,GAAG;IAChB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAA;AASD,iBAAS,eAAe,CAAC,IAAI,KAAA,EAAE,OAAO,KAAA,QAErC;AAED,iBAAS,gBAAgB,CAAC,WAAW,KAAA,QAEpC;AAGD,iBAAS,6BAA6B,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,QAG9D;AAED,iBAAS,8BAA8B,CAAC,gBAAgB,EAAE,yBAAyB,QAGlF;AAED,iBAAS,0BAA0B,CAAC,KAAK,EAAE,kBAAkB,QAS5D;AAED,iBAAS,2BAA2B,CAAC,MAAM,EAAE,kBAAkB,EAAE,QAEhE;AAED,iBAAS,UAAU,CAAC,UAAU,EAAE,UAAU,QAEzC;AAKD,UAAU,cAAc;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,GAAG,CAAC;IACV,WAAW,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IACpC,MAAM,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACnC,YAAY,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CAC1C;AA8GD,eAAO,MAAM,GAAG;8JA5GkJ,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyH/K,CAAC;AAEF,eAAe,GAAG,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const useConfig: (configName?: string) => any;
1
+ export declare const useConfig: (configSelector?: string | Function) => any;
2
2
  //# sourceMappingURL=useConfig.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useConfig.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useConfig.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS,gBAAiB,MAAM,QAE5C,CAAC"}
1
+ {"version":3,"file":"useConfig.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useConfig.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS,oBAAqB,MAAM,GAAG,QAAQ,QAW3D,CAAC"}
@@ -3,8 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useConfig = void 0;
4
4
  const react_redux_1 = require("react-redux");
5
5
  const lodash_1 = require("lodash");
6
- const useConfig = (configName) => {
7
- return react_redux_1.useSelector((s) => configName ? lodash_1.get(s.config.data, configName) : s.config.data);
6
+ const useConfig = (configSelector) => {
7
+ return react_redux_1.useSelector((s) => {
8
+ switch (typeof configSelector) {
9
+ case 'string':
10
+ return lodash_1.get(s.config.data, configSelector);
11
+ case 'function':
12
+ return configSelector(s.config.data);
13
+ default:
14
+ return s.config.data;
15
+ }
16
+ });
8
17
  };
9
18
  exports.useConfig = useConfig;
10
19
  //# sourceMappingURL=useConfig.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useConfig.js","sourceRoot":"","sources":["../../../../src/hooks/useConfig.tsx"],"names":[],"mappings":";;;AAAA,6CAA0C;AAC1C,mCAA2B;AAEpB,MAAM,SAAS,GAAG,CAAC,UAAmB,EAAC,EAAE;IAC5C,OAAO,yBAAW,CAAC,CAAC,CAA8B,EAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,YAAG,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAE,CAAC;AACxH,CAAC,CAAC;AAFW,QAAA,SAAS,aAEpB"}
1
+ {"version":3,"file":"useConfig.js","sourceRoot":"","sources":["../../../../src/hooks/useConfig.tsx"],"names":[],"mappings":";;;AAAA,6CAA0C;AAC1C,mCAA2B;AAEpB,MAAM,SAAS,GAAG,CAAC,cAAkC,EAAC,EAAE;IAC3D,OAAO,yBAAW,CAAC,CAAC,CAA8B,EAAC,EAAE;QACjD,QAAO,OAAO,cAAc,EAAC;YACzB,KAAK,QAAQ;gBACT,OAAO,YAAG,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;YAC9C,KAAK,UAAU;gBACX,OAAO,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;YACzC;gBACI,OAAO,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC;SAC5B;IACL,CAAC,CAAE,CAAC;AACR,CAAC,CAAC;AAXW,QAAA,SAAS,aAWpB"}
@@ -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,100italic,200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,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,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 +1 @@
1
- {"version":3,"file":"UseEffect.d.ts","sourceRoot":"","sources":["../../../../../src/edl/elements/UseEffect.tsx"],"names":[],"mappings":"AAEA;;;GAGG;AACH,QAAA,MAAM,SAAS;;;SAcd,CAAA;AAOD,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"UseEffect.d.ts","sourceRoot":"","sources":["../../../../../src/edl/elements/UseEffect.tsx"],"names":[],"mappings":"AAEA;;;GAGG;AACH,QAAA,MAAM,SAAS;;;SAcd,CAAA;AAED,eAAe,SAAS,CAAC"}
@@ -18,9 +18,5 @@ const UseEffect = ({ ':function': fn, ':dependencies': deps }) => {
18
18
  }, dependencies);
19
19
  return null;
20
20
  };
21
- Object.assign(UseEffect, {
22
- isSelfClosing: true,
23
- propGroups: ['useEffect']
24
- });
25
21
  export default UseEffect;
26
22
  //# sourceMappingURL=UseEffect.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"UseEffect.js","sourceRoot":"","sources":["../../../../../src/edl/elements/UseEffect.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC;;;GAGG;AACH,MAAM,SAAS,GAAG,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,EAAE,EAAE;IAC7D,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;IAErD,SAAS,CAAC,GAAG,EAAE;QACX,IAAI,OAAO,EAAE,IAAI,UAAU;YAAE,OAAO;QACpC,IAAI;YACA,OAAO,EAAE,EAAE,CAAC;SACf;QAAC,OAAO,CAAC,EAAE;YACR,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;SACpB;QACL,uDAAuD;IACvD,CAAC,EAAE,YAAY,CAAC,CAAC;IAEjB,OAAO,IAAI,CAAC;AAChB,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE;IACrB,aAAa,EAAE,IAAI;IACnB,UAAU,EAAE,CAAC,WAAW,CAAC;CAC1B,CAAC,CAAC;AAEL,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"UseEffect.js","sourceRoot":"","sources":["../../../../../src/edl/elements/UseEffect.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC;;;GAGG;AACH,MAAM,SAAS,GAAG,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,EAAE,EAAE;IAC7D,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;IAErD,SAAS,CAAC,GAAG,EAAE;QACX,IAAI,OAAO,EAAE,IAAI,UAAU;YAAE,OAAO;QACpC,IAAI;YACA,OAAO,EAAE,EAAE,CAAC;SACf;QAAC,OAAO,CAAC,EAAE;YACR,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;SACpB;QACL,uDAAuD;IACvD,CAAC,EAAE,YAAY,CAAC,CAAC;IAEjB,OAAO,IAAI,CAAC;AAChB,CAAC,CAAA;AAED,eAAe,SAAS,CAAC"}
@@ -0,0 +1,5 @@
1
+ declare const WhenFocused: ({ children }: {
2
+ children: any;
3
+ }) => any;
4
+ export default WhenFocused;
5
+ //# sourceMappingURL=WhenFocused.app.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WhenFocused.app.d.ts","sourceRoot":"","sources":["../../../../../src/edl/elements/WhenFocused.app.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,WAAW;;SAIhB,CAAA;AAED,eAAe,WAAW,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { useIsFocused } from '@react-navigation/native';
2
+ const WhenFocused = ({ children }) => {
3
+ const isFocused = useIsFocused();
4
+ if (!isFocused)
5
+ return null;
6
+ return children;
7
+ };
8
+ export default WhenFocused;
9
+ //# sourceMappingURL=WhenFocused.app.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WhenFocused.app.js","sourceRoot":"","sources":["../../../../../src/edl/elements/WhenFocused.app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,MAAM,WAAW,GAAG,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACjC,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;IACjC,IAAG,CAAC,SAAS;QAAE,OAAO,IAAI,CAAC;IAC3B,OAAO,QAAQ,CAAC;AACpB,CAAC,CAAA;AAED,eAAe,WAAW,CAAC"}
@@ -0,0 +1,5 @@
1
+ declare const WhenFocused: ({ children }: {
2
+ children: any;
3
+ }) => any;
4
+ export default WhenFocused;
5
+ //# sourceMappingURL=WhenFocused.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WhenFocused.d.ts","sourceRoot":"","sources":["../../../../../src/edl/elements/WhenFocused.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW;;SAEhB,CAAA;AAED,eAAe,WAAW,CAAC"}
@@ -0,0 +1,5 @@
1
+ const WhenFocused = ({ children }) => {
2
+ return children;
3
+ };
4
+ export default WhenFocused;
5
+ //# sourceMappingURL=WhenFocused.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WhenFocused.js","sourceRoot":"","sources":["../../../../../src/edl/elements/WhenFocused.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,GAAG,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACjC,OAAO,QAAQ,CAAC;AACpB,CAAC,CAAA;AAED,eAAe,WAAW,CAAC"}
@@ -13,6 +13,9 @@ declare const coreElements: {
13
13
  }) => any;
14
14
  DataSource: typeof DataSource;
15
15
  IfElse: import("react").FC<import("./IfElse").IfElseProps>;
16
+ WhenFocused: ({ children }: {
17
+ children: any;
18
+ }) => any;
16
19
  };
17
20
  export default coreElements;
18
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/edl/elements/index.ts"],"names":[],"mappings":"AAEA,OAAO,UAAU,MAAM,cAAc,CAAC;AAGtC,QAAA,MAAM,YAAY;;;;;;;;;;;;;;CAMjB,CAAA;AAED,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/edl/elements/index.ts"],"names":[],"mappings":"AAEA,OAAO,UAAU,MAAM,cAAc,CAAC;AAItC,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;CAOjB,CAAA;AAED,eAAe,YAAY,CAAC"}
@@ -2,12 +2,14 @@ import UseEffect from './UseEffect';
2
2
  import Fragment from './Fragment';
3
3
  import DataSource from './DataSource';
4
4
  import IfElse from './IfElse';
5
+ import WhenFocused from './WhenFocused';
5
6
  const coreElements = {
6
7
  UseEffect,
7
8
  Script: UseEffect,
8
9
  Fragment,
9
10
  DataSource,
10
11
  IfElse,
12
+ WhenFocused,
11
13
  };
12
14
  export default coreElements;
13
15
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/edl/elements/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,MAAM,YAAY,GAAG;IACjB,SAAS;IACT,MAAM,EAAE,SAAS;IACjB,QAAQ;IACR,UAAU;IACV,MAAM;CACT,CAAA;AAED,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/edl/elements/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,WAAW,MAAM,eAAe,CAAC;AAExC,MAAM,YAAY,GAAG;IACjB,SAAS;IACT,MAAM,EAAE,SAAS;IACjB,QAAQ;IACR,UAAU;IACV,MAAM;IACN,WAAW;CACd,CAAA;AAED,eAAe,YAAY,CAAC"}
@@ -55,6 +55,9 @@ export declare const EDL: {
55
55
  }) => any;
56
56
  DataSource: typeof import("./elements/DataSource").default;
57
57
  IfElse: React.FC<import("./elements/IfElse").IfElseProps>;
58
+ WhenFocused: ({ children }: {
59
+ children: any;
60
+ }) => any;
58
61
  };
59
62
  parse: ((edl: any) => import("./parser").EdlNode[]) & lodash.MemoizedFunction;
60
63
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/edl/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAS9D,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAQjC,aAAK,yBAAyB,GAAG;IAC/B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAA;AAOD,aAAK,kBAAkB,GAAG,MAAM,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,CAAC,CAAC;AAS7E,aAAK,UAAU,GAAG;IAChB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAA;AASD,iBAAS,eAAe,CAAC,IAAI,KAAA,EAAE,OAAO,KAAA,QAErC;AAED,iBAAS,gBAAgB,CAAC,WAAW,KAAA,QAEpC;AAGD,iBAAS,6BAA6B,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,QAG9D;AAED,iBAAS,8BAA8B,CAAC,gBAAgB,EAAE,yBAAyB,QAGlF;AAED,iBAAS,0BAA0B,CAAC,KAAK,EAAE,kBAAkB,QAS5D;AAED,iBAAS,2BAA2B,CAAC,MAAM,EAAE,kBAAkB,EAAE,QAEhE;AAED,iBAAS,UAAU,CAAC,UAAU,EAAE,UAAU,QAEzC;AAKD,UAAU,cAAc;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,GAAG,CAAC;IACV,WAAW,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IACpC,MAAM,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACnC,YAAY,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CAC1C;AA8GD,eAAO,MAAM,GAAG;8JA5GkJ,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;CAyH/K,CAAC;AAEF,eAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/edl/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAS9D,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAQjC,aAAK,yBAAyB,GAAG;IAC/B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAA;AAOD,aAAK,kBAAkB,GAAG,MAAM,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,CAAC,CAAC;AAS7E,aAAK,UAAU,GAAG;IAChB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAA;AASD,iBAAS,eAAe,CAAC,IAAI,KAAA,EAAE,OAAO,KAAA,QAErC;AAED,iBAAS,gBAAgB,CAAC,WAAW,KAAA,QAEpC;AAGD,iBAAS,6BAA6B,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,QAG9D;AAED,iBAAS,8BAA8B,CAAC,gBAAgB,EAAE,yBAAyB,QAGlF;AAED,iBAAS,0BAA0B,CAAC,KAAK,EAAE,kBAAkB,QAS5D;AAED,iBAAS,2BAA2B,CAAC,MAAM,EAAE,kBAAkB,EAAE,QAEhE;AAED,iBAAS,UAAU,CAAC,UAAU,EAAE,UAAU,QAEzC;AAKD,UAAU,cAAc;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,GAAG,CAAC;IACV,WAAW,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IACpC,MAAM,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACnC,YAAY,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CAC1C;AA8GD,eAAO,MAAM,GAAG;8JA5GkJ,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyH/K,CAAC;AAEF,eAAe,GAAG,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const useConfig: (configName?: string) => any;
1
+ export declare const useConfig: (configSelector?: string | Function) => any;
2
2
  //# sourceMappingURL=useConfig.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useConfig.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useConfig.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS,gBAAiB,MAAM,QAE5C,CAAC"}
1
+ {"version":3,"file":"useConfig.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useConfig.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS,oBAAqB,MAAM,GAAG,QAAQ,QAW3D,CAAC"}
@@ -1,6 +1,15 @@
1
1
  import { useSelector } from 'react-redux';
2
2
  import { get } from 'lodash';
3
- export const useConfig = (configName) => {
4
- return useSelector((s) => configName ? get(s.config.data, configName) : s.config.data);
3
+ export const useConfig = (configSelector) => {
4
+ return useSelector((s) => {
5
+ switch (typeof configSelector) {
6
+ case 'string':
7
+ return get(s.config.data, configSelector);
8
+ case 'function':
9
+ return configSelector(s.config.data);
10
+ default:
11
+ return s.config.data;
12
+ }
13
+ });
5
14
  };
6
15
  //# sourceMappingURL=useConfig.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useConfig.js","sourceRoot":"","sources":["../../../../src/hooks/useConfig.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAC,GAAG,EAAC,MAAM,QAAQ,CAAC;AAE3B,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,UAAmB,EAAC,EAAE;IAC5C,OAAO,WAAW,CAAC,CAAC,CAA8B,EAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAE,CAAC;AACxH,CAAC,CAAC"}
1
+ {"version":3,"file":"useConfig.js","sourceRoot":"","sources":["../../../../src/hooks/useConfig.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAC,GAAG,EAAC,MAAM,QAAQ,CAAC;AAE3B,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,cAAkC,EAAC,EAAE;IAC3D,OAAO,WAAW,CAAC,CAAC,CAA8B,EAAC,EAAE;QACjD,QAAO,OAAO,cAAc,EAAC;YACzB,KAAK,QAAQ;gBACT,OAAO,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;YAC9C,KAAK,UAAU;gBACX,OAAO,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;YACzC;gBACI,OAAO,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC;SAC5B;IACL,CAAC,CAAE,CAAC;AACR,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"UseEffect.d.ts","sourceRoot":"","sources":["../../../../../src/edl/elements/UseEffect.tsx"],"names":[],"mappings":"AAEA;;;GAGG;AACH,QAAA,MAAM,SAAS;;;SAcd,CAAA;AAOD,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"UseEffect.d.ts","sourceRoot":"","sources":["../../../../../src/edl/elements/UseEffect.tsx"],"names":[],"mappings":"AAEA;;;GAGG;AACH,QAAA,MAAM,SAAS;;;SAcd,CAAA;AAED,eAAe,SAAS,CAAC"}
@@ -0,0 +1,5 @@
1
+ declare const WhenFocused: ({ children }: {
2
+ children: any;
3
+ }) => any;
4
+ export default WhenFocused;
5
+ //# sourceMappingURL=WhenFocused.app.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WhenFocused.app.d.ts","sourceRoot":"","sources":["../../../../../src/edl/elements/WhenFocused.app.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,WAAW;;SAIhB,CAAA;AAED,eAAe,WAAW,CAAC"}
@@ -0,0 +1,5 @@
1
+ declare const WhenFocused: ({ children }: {
2
+ children: any;
3
+ }) => any;
4
+ export default WhenFocused;
5
+ //# sourceMappingURL=WhenFocused.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WhenFocused.d.ts","sourceRoot":"","sources":["../../../../../src/edl/elements/WhenFocused.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW;;SAEhB,CAAA;AAED,eAAe,WAAW,CAAC"}
@@ -13,6 +13,9 @@ declare const coreElements: {
13
13
  }) => any;
14
14
  DataSource: typeof DataSource;
15
15
  IfElse: import("react").FC<import("./IfElse").IfElseProps>;
16
+ WhenFocused: ({ children }: {
17
+ children: any;
18
+ }) => any;
16
19
  };
17
20
  export default coreElements;
18
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/edl/elements/index.ts"],"names":[],"mappings":"AAEA,OAAO,UAAU,MAAM,cAAc,CAAC;AAGtC,QAAA,MAAM,YAAY;;;;;;;;;;;;;;CAMjB,CAAA;AAED,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/edl/elements/index.ts"],"names":[],"mappings":"AAEA,OAAO,UAAU,MAAM,cAAc,CAAC;AAItC,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;CAOjB,CAAA;AAED,eAAe,YAAY,CAAC"}
@@ -55,6 +55,9 @@ export declare const EDL: {
55
55
  }) => any;
56
56
  DataSource: typeof import("./elements/DataSource").default;
57
57
  IfElse: React.FC<import("./elements/IfElse").IfElseProps>;
58
+ WhenFocused: ({ children }: {
59
+ children: any;
60
+ }) => any;
58
61
  };
59
62
  parse: ((edl: any) => import("./parser").EdlNode[]) & lodash.MemoizedFunction;
60
63
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/edl/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAS9D,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAQjC,aAAK,yBAAyB,GAAG;IAC/B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAA;AAOD,aAAK,kBAAkB,GAAG,MAAM,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,CAAC,CAAC;AAS7E,aAAK,UAAU,GAAG;IAChB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAA;AASD,iBAAS,eAAe,CAAC,IAAI,KAAA,EAAE,OAAO,KAAA,QAErC;AAED,iBAAS,gBAAgB,CAAC,WAAW,KAAA,QAEpC;AAGD,iBAAS,6BAA6B,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,QAG9D;AAED,iBAAS,8BAA8B,CAAC,gBAAgB,EAAE,yBAAyB,QAGlF;AAED,iBAAS,0BAA0B,CAAC,KAAK,EAAE,kBAAkB,QAS5D;AAED,iBAAS,2BAA2B,CAAC,MAAM,EAAE,kBAAkB,EAAE,QAEhE;AAED,iBAAS,UAAU,CAAC,UAAU,EAAE,UAAU,QAEzC;AAKD,UAAU,cAAc;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,GAAG,CAAC;IACV,WAAW,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IACpC,MAAM,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACnC,YAAY,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CAC1C;AA8GD,eAAO,MAAM,GAAG;8JA5GkJ,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;CAyH/K,CAAC;AAEF,eAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/edl/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAS9D,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAQjC,aAAK,yBAAyB,GAAG;IAC/B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAA;AAOD,aAAK,kBAAkB,GAAG,MAAM,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,CAAC,CAAC;AAS7E,aAAK,UAAU,GAAG;IAChB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAA;AASD,iBAAS,eAAe,CAAC,IAAI,KAAA,EAAE,OAAO,KAAA,QAErC;AAED,iBAAS,gBAAgB,CAAC,WAAW,KAAA,QAEpC;AAGD,iBAAS,6BAA6B,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,QAG9D;AAED,iBAAS,8BAA8B,CAAC,gBAAgB,EAAE,yBAAyB,QAGlF;AAED,iBAAS,0BAA0B,CAAC,KAAK,EAAE,kBAAkB,QAS5D;AAED,iBAAS,2BAA2B,CAAC,MAAM,EAAE,kBAAkB,EAAE,QAEhE;AAED,iBAAS,UAAU,CAAC,UAAU,EAAE,UAAU,QAEzC;AAKD,UAAU,cAAc;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,GAAG,CAAC;IACV,WAAW,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IACpC,MAAM,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACnC,YAAY,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CAC1C;AA8GD,eAAO,MAAM,GAAG;8JA5GkJ,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyH/K,CAAC;AAEF,eAAe,GAAG,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const useConfig: (configName?: string) => any;
1
+ export declare const useConfig: (configSelector?: string | Function) => any;
2
2
  //# sourceMappingURL=useConfig.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useConfig.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useConfig.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS,gBAAiB,MAAM,QAE5C,CAAC"}
1
+ {"version":3,"file":"useConfig.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useConfig.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS,oBAAqB,MAAM,GAAG,QAAQ,QAW3D,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evlop/commons",
3
- "version": "1.0.289",
3
+ "version": "1.0.291",
4
4
  "description": "",
5
5
  "main": "dist/cjs/main.js",
6
6
  "module": "dist/esm/main.js",
@@ -8,7 +8,8 @@
8
8
  "exports": {
9
9
  ".": "./dist/cjs/main.js",
10
10
  "./helpers/*": "./dist/cjs/src/helpers/*.js",
11
- "./constants/*": "./dist/cjs/src/constants/*.js"
11
+ "./constants/*": "./dist/cjs/src/constants/*.js",
12
+ "./edl/*": "./dist/cjs/src/edl/*.js"
12
13
  },
13
14
  "peerDependencies": {
14
15
  "change-case": ">=4.1.2",