@coorpacademy/components 10.26.0 → 10.27.0

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 (177) hide show
  1. package/es/atom/choice/index.native.d.ts.map +1 -1
  2. package/es/atom/choice/index.native.js +6 -4
  3. package/es/atom/choice/index.native.js.map +1 -1
  4. package/es/atom/header-back-button/index.native.d.ts +1 -1
  5. package/es/atom/header-back-button/index.native.d.ts.map +1 -1
  6. package/es/atom/header-back-button/index.native.js.map +1 -1
  7. package/es/atom/html/index.native.d.ts.map +1 -1
  8. package/es/atom/html/index.native.js +8 -14
  9. package/es/atom/html/index.native.js.map +1 -1
  10. package/es/atom/image-background/index.native.d.ts.map +1 -1
  11. package/es/atom/image-background/index.native.js +0 -1
  12. package/es/atom/image-background/index.native.js.map +1 -1
  13. package/es/atom/provider/web-context.d.ts +3 -3
  14. package/es/atom/provider/web-context.d.ts.map +1 -1
  15. package/es/atom/provider/web-context.js +10 -11
  16. package/es/atom/provider/web-context.js.map +1 -1
  17. package/es/atom/review-header-step-item/index.native.d.ts.map +1 -1
  18. package/es/atom/review-header-step-item/index.native.js.map +1 -1
  19. package/es/atom/select-modal/index.native.js.map +1 -1
  20. package/es/hoc/modal/index.native.d.ts +1 -1
  21. package/es/hoc/modal/index.native.d.ts.map +1 -1
  22. package/es/hoc/modal/index.native.js.map +1 -1
  23. package/es/hoc/modal/select/index.native.d.ts.map +1 -1
  24. package/es/hoc/modal/select/index.native.js +3 -3
  25. package/es/hoc/modal/select/index.native.js.map +1 -1
  26. package/es/hoc/modal/select-item/index.native.d.ts +1 -1
  27. package/es/hoc/modal/select-item/index.native.d.ts.map +1 -1
  28. package/es/hoc/modal/select-item/index.native.js +1 -1
  29. package/es/hoc/modal/select-item/index.native.js.map +1 -1
  30. package/es/hoc/touchable/index.native.d.ts +5 -5
  31. package/es/hoc/touchable/index.native.d.ts.map +1 -1
  32. package/es/hoc/touchable/index.native.js.map +1 -1
  33. package/es/molecule/answer/prop-types.d.ts +2 -18
  34. package/es/molecule/answer/prop-types.d.ts.map +1 -1
  35. package/es/molecule/answer/prop-types.js.map +1 -1
  36. package/es/molecule/brand-logo/index.native.d.ts.map +1 -1
  37. package/es/molecule/brand-logo/index.native.js +4 -3
  38. package/es/molecule/brand-logo/index.native.js.map +1 -1
  39. package/es/molecule/questions/free-text/index.native.d.ts.map +1 -1
  40. package/es/molecule/questions/free-text/index.native.js +2 -2
  41. package/es/molecule/questions/free-text/index.native.js.map +1 -1
  42. package/es/molecule/questions/mobile/draggable/index.native.js +1 -1
  43. package/es/molecule/questions/mobile/draggable/index.native.js.map +1 -1
  44. package/es/molecule/questions/mobile/slider/index.native.js +3 -3
  45. package/es/molecule/questions/mobile/slider/index.native.js.map +1 -1
  46. package/es/molecule/questions/mobile/switch/index.native.js +2 -2
  47. package/es/molecule/questions/mobile/switch/index.native.js.map +1 -1
  48. package/es/molecule/questions/mobile/template/index.native.js +3 -3
  49. package/es/molecule/questions/mobile/template/index.native.js.map +1 -1
  50. package/es/molecule/questions/types.d.ts +10 -3
  51. package/es/molecule/questions/types.d.ts.map +1 -1
  52. package/es/molecule/questions/types.js.map +1 -1
  53. package/es/molecule/video-player/jwplayer.d.ts +1 -3
  54. package/es/molecule/video-player/jwplayer.d.ts.map +1 -1
  55. package/es/molecule/video-player/jwplayer.js +32 -34
  56. package/es/molecule/video-player/jwplayer.js.map +1 -1
  57. package/es/organism/header-v2/index.native.d.ts +3 -3
  58. package/es/organism/header-v2/index.native.d.ts.map +1 -1
  59. package/es/organism/header-v2/index.native.js.map +1 -1
  60. package/es/organism/mobile-navigation/index.native.d.ts +24 -2
  61. package/es/organism/mobile-navigation/index.native.d.ts.map +1 -1
  62. package/es/organism/mobile-navigation/index.native.js.map +1 -1
  63. package/es/organism/review-slide/index.native.d.ts.map +1 -1
  64. package/es/organism/review-slide/index.native.js +7 -8
  65. package/es/organism/review-slide/index.native.js.map +1 -1
  66. package/es/template/app-player/popin-header/index.js +4 -4
  67. package/es/template/app-player/popin-header/index.js.map +1 -1
  68. package/es/template/app-review/index.native.js +0 -2
  69. package/es/template/app-review/index.native.js.map +1 -1
  70. package/es/template/app-review/player/index.native.js +2 -5
  71. package/es/template/app-review/player/index.native.js.map +1 -1
  72. package/es/template/app-review/player/prop-types.d.ts.map +1 -1
  73. package/es/template/app-review/player/prop-types.js.map +1 -1
  74. package/es/template/app-review/template-context.d.ts +4 -3
  75. package/es/template/app-review/template-context.d.ts.map +1 -1
  76. package/es/template/app-review/template-context.js +3 -3
  77. package/es/template/app-review/template-context.js.map +1 -1
  78. package/es/variables/analytics.d.ts +4 -1
  79. package/es/variables/analytics.d.ts.map +1 -1
  80. package/es/variables/analytics.js.map +1 -1
  81. package/es/variables/brand.native.d.ts +1 -0
  82. package/es/variables/brand.native.d.ts.map +1 -1
  83. package/es/variables/brand.native.js +1 -1
  84. package/es/variables/brand.native.js.map +1 -1
  85. package/es/variables/theme.native.d.ts +0 -1
  86. package/es/variables/theme.native.d.ts.map +1 -1
  87. package/es/variables/theme.native.js +0 -1
  88. package/es/variables/theme.native.js.map +1 -1
  89. package/lib/atom/choice/index.native.d.ts.map +1 -1
  90. package/lib/atom/choice/index.native.js +6 -4
  91. package/lib/atom/choice/index.native.js.map +1 -1
  92. package/lib/atom/header-back-button/index.native.d.ts +1 -1
  93. package/lib/atom/header-back-button/index.native.d.ts.map +1 -1
  94. package/lib/atom/header-back-button/index.native.js.map +1 -1
  95. package/lib/atom/html/index.native.d.ts.map +1 -1
  96. package/lib/atom/html/index.native.js +7 -13
  97. package/lib/atom/html/index.native.js.map +1 -1
  98. package/lib/atom/image-background/index.native.d.ts.map +1 -1
  99. package/lib/atom/image-background/index.native.js +0 -1
  100. package/lib/atom/image-background/index.native.js.map +1 -1
  101. package/lib/atom/provider/web-context.d.ts +3 -3
  102. package/lib/atom/provider/web-context.d.ts.map +1 -1
  103. package/lib/atom/provider/web-context.js +10 -11
  104. package/lib/atom/provider/web-context.js.map +1 -1
  105. package/lib/atom/review-header-step-item/index.native.d.ts.map +1 -1
  106. package/lib/atom/review-header-step-item/index.native.js.map +1 -1
  107. package/lib/atom/select-modal/index.native.js.map +1 -1
  108. package/lib/hoc/modal/index.native.d.ts +1 -1
  109. package/lib/hoc/modal/index.native.d.ts.map +1 -1
  110. package/lib/hoc/modal/index.native.js.map +1 -1
  111. package/lib/hoc/modal/select/index.native.d.ts.map +1 -1
  112. package/lib/hoc/modal/select/index.native.js +3 -3
  113. package/lib/hoc/modal/select/index.native.js.map +1 -1
  114. package/lib/hoc/modal/select-item/index.native.d.ts +1 -1
  115. package/lib/hoc/modal/select-item/index.native.d.ts.map +1 -1
  116. package/lib/hoc/modal/select-item/index.native.js +1 -1
  117. package/lib/hoc/modal/select-item/index.native.js.map +1 -1
  118. package/lib/hoc/touchable/index.native.d.ts +5 -5
  119. package/lib/hoc/touchable/index.native.d.ts.map +1 -1
  120. package/lib/hoc/touchable/index.native.js.map +1 -1
  121. package/lib/molecule/answer/prop-types.d.ts +2 -18
  122. package/lib/molecule/answer/prop-types.d.ts.map +1 -1
  123. package/lib/molecule/answer/prop-types.js.map +1 -1
  124. package/lib/molecule/brand-logo/index.native.d.ts.map +1 -1
  125. package/lib/molecule/brand-logo/index.native.js +4 -3
  126. package/lib/molecule/brand-logo/index.native.js.map +1 -1
  127. package/lib/molecule/questions/free-text/index.native.d.ts.map +1 -1
  128. package/lib/molecule/questions/free-text/index.native.js +2 -2
  129. package/lib/molecule/questions/free-text/index.native.js.map +1 -1
  130. package/lib/molecule/questions/mobile/draggable/index.native.js +1 -1
  131. package/lib/molecule/questions/mobile/draggable/index.native.js.map +1 -1
  132. package/lib/molecule/questions/mobile/slider/index.native.js +3 -3
  133. package/lib/molecule/questions/mobile/slider/index.native.js.map +1 -1
  134. package/lib/molecule/questions/mobile/switch/index.native.js +2 -2
  135. package/lib/molecule/questions/mobile/switch/index.native.js.map +1 -1
  136. package/lib/molecule/questions/mobile/template/index.native.js +3 -3
  137. package/lib/molecule/questions/mobile/template/index.native.js.map +1 -1
  138. package/lib/molecule/questions/types.d.ts +10 -3
  139. package/lib/molecule/questions/types.d.ts.map +1 -1
  140. package/lib/molecule/questions/types.js.map +1 -1
  141. package/lib/molecule/video-player/jwplayer.d.ts +1 -3
  142. package/lib/molecule/video-player/jwplayer.d.ts.map +1 -1
  143. package/lib/molecule/video-player/jwplayer.js +32 -34
  144. package/lib/molecule/video-player/jwplayer.js.map +1 -1
  145. package/lib/organism/header-v2/index.native.d.ts +3 -3
  146. package/lib/organism/header-v2/index.native.d.ts.map +1 -1
  147. package/lib/organism/header-v2/index.native.js.map +1 -1
  148. package/lib/organism/mobile-navigation/index.native.d.ts +24 -2
  149. package/lib/organism/mobile-navigation/index.native.d.ts.map +1 -1
  150. package/lib/organism/mobile-navigation/index.native.js.map +1 -1
  151. package/lib/organism/review-slide/index.native.d.ts.map +1 -1
  152. package/lib/organism/review-slide/index.native.js +7 -8
  153. package/lib/organism/review-slide/index.native.js.map +1 -1
  154. package/lib/template/app-player/popin-header/index.js +4 -4
  155. package/lib/template/app-player/popin-header/index.js.map +1 -1
  156. package/lib/template/app-review/index.native.js +0 -2
  157. package/lib/template/app-review/index.native.js.map +1 -1
  158. package/lib/template/app-review/player/index.native.js +2 -5
  159. package/lib/template/app-review/player/index.native.js.map +1 -1
  160. package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
  161. package/lib/template/app-review/player/prop-types.js.map +1 -1
  162. package/lib/template/app-review/template-context.d.ts +4 -3
  163. package/lib/template/app-review/template-context.d.ts.map +1 -1
  164. package/lib/template/app-review/template-context.js +4 -3
  165. package/lib/template/app-review/template-context.js.map +1 -1
  166. package/lib/variables/analytics.d.ts +4 -1
  167. package/lib/variables/analytics.d.ts.map +1 -1
  168. package/lib/variables/analytics.js.map +1 -1
  169. package/lib/variables/brand.native.d.ts +1 -0
  170. package/lib/variables/brand.native.d.ts.map +1 -1
  171. package/lib/variables/brand.native.js +5 -0
  172. package/lib/variables/brand.native.js.map +1 -1
  173. package/lib/variables/theme.native.d.ts +0 -1
  174. package/lib/variables/theme.native.d.ts.map +1 -1
  175. package/lib/variables/theme.native.js +0 -1
  176. package/lib/variables/theme.native.js.map +1 -1
  177. package/package.json +6 -4
@@ -1 +1 @@
1
- {"version":3,"file":"prop-types.js","names":["propTypes","header","PropTypes","shape","ReviewHeaderPropTypes","stack","StackedSlidesPropTypes","reviewBackgroundAriaLabel","ReviewBackgroundPropTypes","congrats","ReviewCongratsPropTypes","quitPopin","CmPopin"],"sources":["../../../../src/template/app-review/player/prop-types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\n\nimport {CMPopinProps} from '../../../molecule/cm-popin/types';\nimport ReviewCongratsPropTypes, {ReviewCongratsProps} from '../../../organism/review-congrats/prop-types';\n\nimport ReviewBackgroundPropTypes from '../../../atom/review-background/prop-types';\nimport ReviewHeaderPropTypes, {HeaderProps} from '../../../organism/review-header/types';\nimport CmPopin from '../../../molecule/cm-popin';\nimport StackedSlidesPropTypes, {\n ReviewStackProps\n} from '../../../organism/review-stacked-slides/prop-types';\n\nconst propTypes = {\n header: PropTypes.shape(ReviewHeaderPropTypes),\n stack: PropTypes.shape(StackedSlidesPropTypes),\n reviewBackgroundAriaLabel: ReviewBackgroundPropTypes['aria-label'],\n congrats: PropTypes.shape(ReviewCongratsPropTypes),\n quitPopin: PropTypes.shape({...CmPopin.propTypes})\n};\n\nexport default propTypes;\n\nexport type ReviewPlayerProps = {\n header: HeaderProps;\n stack: ReviewStackProps;\n reviewBackgroundAriaLabel?: string;\n congrats?: ReviewCongratsProps;\n quitPopin?: CMPopinProps;\n};\n"],"mappings":";;;;;AAAA;;AAGA;;AAEA;;AACA;;AACA;;AACA;;;;;;AAIA,MAAMA,SAAS,GAAG;EAChBC,MAAM,EAAEC,kBAAA,CAAUC,KAAV,CAAgBC,cAAhB,CADQ;EAEhBC,KAAK,EAAEH,kBAAA,CAAUC,KAAV,CAAgBG,mBAAhB,CAFS;EAGhBC,yBAAyB,EAAEC,mBAAA,CAA0B,YAA1B,CAHX;EAIhBC,QAAQ,EAAEP,kBAAA,CAAUC,KAAV,CAAgBO,mBAAhB,CAJM;EAKhBC,SAAS,EAAET,kBAAA,CAAUC,KAAV,cAAoBS,gBAAA,CAAQZ,SAA5B;AALK,CAAlB;eAQeA,S"}
1
+ {"version":3,"file":"prop-types.js","names":["propTypes","header","PropTypes","shape","ReviewHeaderPropTypes","stack","StackedSlidesPropTypes","reviewBackgroundAriaLabel","ReviewBackgroundPropTypes","congrats","ReviewCongratsPropTypes","quitPopin","CmPopin"],"sources":["../../../../src/template/app-review/player/prop-types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\n\nimport {CMPopinProps} from '../../../molecule/cm-popin/types';\nimport ReviewCongratsPropTypes, {\n ReviewCongratsProps\n} from '../../../organism/review-congrats/prop-types';\n\nimport ReviewBackgroundPropTypes from '../../../atom/review-background/prop-types';\nimport ReviewHeaderPropTypes, {HeaderProps} from '../../../organism/review-header/types';\nimport CmPopin from '../../../molecule/cm-popin';\nimport StackedSlidesPropTypes, {\n ReviewStackProps\n} from '../../../organism/review-stacked-slides/prop-types';\n\nconst propTypes = {\n header: PropTypes.shape(ReviewHeaderPropTypes),\n stack: PropTypes.shape(StackedSlidesPropTypes),\n reviewBackgroundAriaLabel: ReviewBackgroundPropTypes['aria-label'],\n congrats: PropTypes.shape(ReviewCongratsPropTypes),\n quitPopin: PropTypes.shape({...CmPopin.propTypes})\n};\n\nexport default propTypes;\n\nexport type ReviewPlayerProps = {\n header: HeaderProps;\n stack: ReviewStackProps;\n reviewBackgroundAriaLabel?: string;\n congrats?: ReviewCongratsProps;\n quitPopin?: CMPopinProps;\n};\n"],"mappings":";;;;;AAAA;;AAGA;;AAIA;;AACA;;AACA;;AACA;;;;;;AAIA,MAAMA,SAAS,GAAG;EAChBC,MAAM,EAAEC,kBAAA,CAAUC,KAAV,CAAgBC,cAAhB,CADQ;EAEhBC,KAAK,EAAEH,kBAAA,CAAUC,KAAV,CAAgBG,mBAAhB,CAFS;EAGhBC,yBAAyB,EAAEC,mBAAA,CAA0B,YAA1B,CAHX;EAIhBC,QAAQ,EAAEP,kBAAA,CAAUC,KAAV,CAAgBO,mBAAhB,CAJM;EAKhBC,SAAS,EAAET,kBAAA,CAAUC,KAAV,cAAoBS,gBAAA,CAAQZ,SAA5B;AALK,CAAlB;eAQeA,S"}
@@ -1,6 +1,7 @@
1
- /// <reference types="react" />
1
+ import { ReactNode } from 'react';
2
2
  import { Translations } from '../../types/translations';
3
3
  import { Analytics } from '../../variables/analytics';
4
+ import { Brand } from '../../variables/brand.native';
4
5
  import { Theme } from '../../variables/theme.native';
5
6
  import { Vibration } from '../../variables/vibration';
6
7
  export declare type HandleBlur = () => void;
@@ -8,7 +9,7 @@ export declare type HandleFocus = (id: string) => () => void;
8
9
  export declare type FocusedSelectId = string | null;
9
10
  export declare type TemplateContextValues = {
10
11
  analytics?: Analytics;
11
- brandTheme?: any;
12
+ brandTheme: Brand;
12
13
  theme: Theme;
13
14
  translations: Translations;
14
15
  vibration?: Vibration;
@@ -24,7 +25,7 @@ export declare type TemplateContextValues = {
24
25
  };
25
26
  declare type Props = {
26
27
  values: TemplateContextValues;
27
- children: any;
28
+ children: ReactNode;
28
29
  };
29
30
  declare const useTemplateContext: () => TemplateContextValues;
30
31
  declare const TemplateContext: ({ values, children }: Props) => JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"template-context.d.ts","sourceRoot":"","sources":["../../../src/template/app-review/template-context.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,YAAY,EAAC,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAC,SAAS,EAAC,MAAM,2BAA2B,CAAC;AACpD,OAAqB,EAAC,KAAK,EAAC,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAC,SAAS,EAAC,MAAM,2BAA2B,CAAC;AAEpD,oBAAY,UAAU,GAAG,MAAM,IAAI,CAAC;AACpC,oBAAY,WAAW,GAAG,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,IAAI,CAAC;AACrD,oBAAY,eAAe,GAAG,MAAM,GAAG,IAAI,CAAC;AAE5C,oBAAY,qBAAqB,GAAG;IAClC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,KAAK,EAAE,KAAK,CAAC;IACb,YAAY,EAAE,YAAY,CAAC;IAC3B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,OAAO,EAAE;QACP,YAAY,EAAE,MAAM,CAAC;QACrB,eAAe,EAAE,MAAM,CAAC;KACzB,CAAC;IACF,KAAK,EAAE;QACL,eAAe,CAAC,EAAE,eAAe,CAAC;QAClC,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,WAAW,CAAC,EAAE,WAAW,CAAC;KAC3B,CAAC;CACH,CAAC;AAEF,aAAK,KAAK,GAAG;IAAC,MAAM,EAAE,qBAAqB,CAAC;IAAC,QAAQ,EAAE,GAAG,CAAA;CAAC,CAAC;AAY5D,QAAA,MAAM,kBAAkB,QAAO,qBAU9B,CAAC;AAEF,QAAA,MAAM,eAAe,yBAAwB,KAAK,gBAEjD,CAAC;AAEF,OAAO,EAAC,eAAe,EAAE,kBAAkB,EAAC,CAAC"}
1
+ {"version":3,"file":"template-context.d.ts","sourceRoot":"","sources":["../../../src/template/app-review/template-context.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAgB,SAAS,EAAa,MAAM,OAAO,CAAC;AAClE,OAAO,EAAC,YAAY,EAAC,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAC,SAAS,EAAC,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAC,KAAK,EAAoB,MAAM,8BAA8B,CAAC;AACtE,OAAqB,EAAC,KAAK,EAAC,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAC,SAAS,EAAC,MAAM,2BAA2B,CAAC;AAEpD,oBAAY,UAAU,GAAG,MAAM,IAAI,CAAC;AACpC,oBAAY,WAAW,GAAG,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,IAAI,CAAC;AACrD,oBAAY,eAAe,GAAG,MAAM,GAAG,IAAI,CAAC;AAE5C,oBAAY,qBAAqB,GAAG;IAClC,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,UAAU,EAAE,KAAK,CAAC;IAClB,KAAK,EAAE,KAAK,CAAC;IACb,YAAY,EAAE,YAAY,CAAC;IAC3B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,OAAO,EAAE;QACP,YAAY,EAAE,MAAM,CAAC;QACrB,eAAe,EAAE,MAAM,CAAC;KACzB,CAAC;IACF,KAAK,EAAE;QACL,eAAe,CAAC,EAAE,eAAe,CAAC;QAClC,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,WAAW,CAAC,EAAE,WAAW,CAAC;KAC3B,CAAC;CACH,CAAC;AAEF,aAAK,KAAK,GAAG;IAAC,MAAM,EAAE,qBAAqB,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAC,CAAC;AAalE,QAAA,MAAM,kBAAkB,QAAO,qBAU9B,CAAC;AAEF,QAAA,MAAM,eAAe,yBAAwB,KAAK,gBAEjD,CAAC;AAEF,OAAO,EAAC,eAAe,EAAE,kBAAkB,EAAC,CAAC"}
@@ -5,6 +5,8 @@ exports.useTemplateContext = exports.TemplateContext = void 0;
5
5
 
6
6
  var _react = _interopRequireWildcard(require("react"));
7
7
 
8
+ var _brand = require("../../variables/brand.native");
9
+
8
10
  var _theme = _interopRequireDefault(require("../../variables/theme.native"));
9
11
 
10
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -13,10 +15,9 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
13
15
 
14
16
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
17
 
16
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
17
-
18
18
  const Context = /*#__PURE__*/(0, _react.createContext)({
19
19
  theme: _theme.default,
20
+ brandTheme: _brand.defaultBrandTheme,
20
21
  translations: {},
21
22
  display: {
22
23
  headerHeight: 67,
@@ -42,7 +43,7 @@ const TemplateContext = ({
42
43
  children
43
44
  }) => {
44
45
  return /*#__PURE__*/_react.default.createElement(Context.Provider, {
45
- value: _extends({}, values)
46
+ value: values
46
47
  }, children);
47
48
  };
48
49
 
@@ -1 +1 @@
1
- {"version":3,"file":"template-context.js","names":["Context","createContext","theme","defaultTheme","translations","display","headerHeight","statusBarHeight","store","useTemplateContext","context","useContext","Error","TemplateContext","values","children"],"sources":["../../../src/template/app-review/template-context.tsx"],"sourcesContent":["import React, {createContext, useContext} from 'react';\nimport {Translations} from '../../types/translations';\nimport {Analytics} from '../../variables/analytics';\nimport defaultTheme, {Theme} from '../../variables/theme.native';\nimport {Vibration} from '../../variables/vibration';\n\nexport type HandleBlur = () => void;\nexport type HandleFocus = (id: string) => () => void;\nexport type FocusedSelectId = string | null;\n\nexport type TemplateContextValues = {\n analytics?: Analytics;\n brandTheme?: any;\n theme: Theme;\n translations: Translations;\n vibration?: Vibration;\n display: {\n headerHeight: number;\n statusBarHeight: number;\n };\n store: {\n focusedSelectId?: FocusedSelectId;\n handleBlur?: HandleBlur;\n handleFocus?: HandleFocus;\n };\n};\n\ntype Props = {values: TemplateContextValues; children: any};\n\nconst Context = createContext({\n theme: defaultTheme,\n translations: {},\n display: {\n headerHeight: 67,\n statusBarHeight: 42\n },\n store: {}\n});\n\nconst useTemplateContext = (): TemplateContextValues => {\n const context = useContext(Context);\n\n if (!context) {\n throw new Error(\n `❌ [TemplateContext] useTemplateContext must be used within a provider <TemplateContext>`\n );\n }\n\n return context;\n};\n\nconst TemplateContext = ({values, children}: Props) => {\n return <Context.Provider value={{...values}}>{children}</Context.Provider>;\n};\n\nexport {TemplateContext, useTemplateContext};\n"],"mappings":";;;;;AAAA;;AAGA;;;;;;;;;;AA0BA,MAAMA,OAAO,gBAAG,IAAAC,oBAAA,EAAc;EAC5BC,KAAK,EAAEC,cADqB;EAE5BC,YAAY,EAAE,EAFc;EAG5BC,OAAO,EAAE;IACPC,YAAY,EAAE,EADP;IAEPC,eAAe,EAAE;EAFV,CAHmB;EAO5BC,KAAK,EAAE;AAPqB,CAAd,CAAhB;;AAUA,MAAMC,kBAAkB,GAAG,MAA6B;EACtD,MAAMC,OAAO,GAAG,IAAAC,iBAAA,EAAWX,OAAX,CAAhB;;EAEA,IAAI,CAACU,OAAL,EAAc;IACZ,MAAM,IAAIE,KAAJ,CACH,yFADG,CAAN;EAGD;;EAED,OAAOF,OAAP;AACD,CAVD;;;;AAYA,MAAMG,eAAe,GAAG,CAAC;EAACC,MAAD;EAASC;AAAT,CAAD,KAA+B;EACrD,oBAAO,6BAAC,OAAD,CAAS,QAAT;IAAkB,KAAK,eAAMD,MAAN;EAAvB,GAAuCC,QAAvC,CAAP;AACD,CAFD"}
1
+ {"version":3,"file":"template-context.js","names":["Context","createContext","theme","defaultTheme","brandTheme","defaultBrandTheme","translations","display","headerHeight","statusBarHeight","store","useTemplateContext","context","useContext","Error","TemplateContext","values","children"],"sources":["../../../src/template/app-review/template-context.tsx"],"sourcesContent":["import React, {createContext, ReactNode, useContext} from 'react';\nimport {Translations} from '../../types/translations';\nimport {Analytics} from '../../variables/analytics';\nimport {Brand, defaultBrandTheme} from '../../variables/brand.native';\nimport defaultTheme, {Theme} from '../../variables/theme.native';\nimport {Vibration} from '../../variables/vibration';\n\nexport type HandleBlur = () => void;\nexport type HandleFocus = (id: string) => () => void;\nexport type FocusedSelectId = string | null;\n\nexport type TemplateContextValues = {\n analytics?: Analytics;\n brandTheme: Brand;\n theme: Theme;\n translations: Translations;\n vibration?: Vibration;\n display: {\n headerHeight: number;\n statusBarHeight: number;\n };\n store: {\n focusedSelectId?: FocusedSelectId;\n handleBlur?: HandleBlur;\n handleFocus?: HandleFocus;\n };\n};\n\ntype Props = {values: TemplateContextValues; children: ReactNode};\n\nconst Context = createContext({\n theme: defaultTheme,\n brandTheme: defaultBrandTheme,\n translations: {},\n display: {\n headerHeight: 67,\n statusBarHeight: 42\n },\n store: {}\n});\n\nconst useTemplateContext = (): TemplateContextValues => {\n const context = useContext(Context);\n\n if (!context) {\n throw new Error(\n `❌ [TemplateContext] useTemplateContext must be used within a provider <TemplateContext>`\n );\n }\n\n return context;\n};\n\nconst TemplateContext = ({values, children}: Props) => {\n return <Context.Provider value={values}>{children}</Context.Provider>;\n};\n\nexport {TemplateContext, useTemplateContext};\n"],"mappings":";;;;;AAAA;;AAGA;;AACA;;;;;;;;AA0BA,MAAMA,OAAO,gBAAG,IAAAC,oBAAA,EAAc;EAC5BC,KAAK,EAAEC,cADqB;EAE5BC,UAAU,EAAEC,wBAFgB;EAG5BC,YAAY,EAAE,EAHc;EAI5BC,OAAO,EAAE;IACPC,YAAY,EAAE,EADP;IAEPC,eAAe,EAAE;EAFV,CAJmB;EAQ5BC,KAAK,EAAE;AARqB,CAAd,CAAhB;;AAWA,MAAMC,kBAAkB,GAAG,MAA6B;EACtD,MAAMC,OAAO,GAAG,IAAAC,iBAAA,EAAWb,OAAX,CAAhB;;EAEA,IAAI,CAACY,OAAL,EAAc;IACZ,MAAM,IAAIE,KAAJ,CACH,yFADG,CAAN;EAGD;;EAED,OAAOF,OAAP;AACD,CAVD;;;;AAYA,MAAMG,eAAe,GAAG,CAAC;EAACC,MAAD;EAASC;AAAT,CAAD,KAA+B;EACrD,oBAAO,6BAAC,OAAD,CAAS,QAAT;IAAkB,KAAK,EAAED;EAAzB,GAAkCC,QAAlC,CAAP;AACD,CAFD"}
@@ -20,7 +20,10 @@ export declare const ANALYTICS_EVENT_TYPE: {
20
20
  NOTIFICATIONS: string;
21
21
  };
22
22
  export declare type Analytics = {
23
- logEvent: Function;
23
+ logEvent: (name: string, options: {
24
+ id?: string;
25
+ questionType?: string;
26
+ }) => void;
24
27
  };
25
28
  export declare type AnalyticsEventParams = {
26
29
  [key: string]: string | number;
@@ -1 +1 @@
1
- {"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../../src/variables/analytics.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;CAoBhC,CAAC;AAEF,oBAAY,SAAS,GAAG;IACtB,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF,oBAAY,oBAAoB,GAAG;IACjC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;CAChC,CAAC"}
1
+ {"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../../src/variables/analytics.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;CAoBhC,CAAC;AAEF,oBAAY,SAAS,GAAG;IACtB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE;QAAC,EAAE,CAAC,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAA;KAAC,KAAK,IAAI,CAAC;CACjF,CAAC;AAEF,oBAAY,oBAAoB,GAAG;IACjC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;CAChC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"analytics.js","names":["ANALYTICS_EVENT_TYPE","PRESS","SWIPE","LONG_PRESS","SLIDE","MEDIA_VIEWED","START_PROGRESSION","OPEN_SELECT","CLOSE_SELECT","INPUT_BLUR","INPUT_FOCUS","FINISH_PROGRESSION","SIGN_IN","SIGN_OUT","NAVIGATE","VALIDATE_ANSWER","PERMISSION","NOTIFICATIONS_MAYBE_LATER","NOTIFICATIONS_YES_NOTIFY_ME","NOTIFICATIONS"],"sources":["../../src/variables/analytics.tsx"],"sourcesContent":["export const ANALYTICS_EVENT_TYPE = {\n PRESS: 'press',\n SWIPE: 'swipe',\n LONG_PRESS: 'longPress',\n SLIDE: 'slide',\n MEDIA_VIEWED: 'mediaViewed',\n START_PROGRESSION: 'startProgression',\n OPEN_SELECT: 'openSelect',\n CLOSE_SELECT: 'closeSelect',\n INPUT_BLUR: 'inputBlur',\n INPUT_FOCUS: 'inputFocus',\n FINISH_PROGRESSION: 'finishProgression',\n SIGN_IN: 'signIn',\n SIGN_OUT: 'signOut',\n NAVIGATE: 'navigate',\n VALIDATE_ANSWER: 'validateAnswer',\n PERMISSION: 'permission',\n NOTIFICATIONS_MAYBE_LATER: 'notificationsMaybeLater',\n NOTIFICATIONS_YES_NOTIFY_ME: 'notificationsYesNotifyMe',\n NOTIFICATIONS: 'notifications'\n};\n\nexport type Analytics = {\n logEvent: Function;\n};\n\nexport type AnalyticsEventParams = {\n [key: string]: string | number;\n};\n"],"mappings":";;;;AAAO,MAAMA,oBAAoB,GAAG;EAClCC,KAAK,EAAE,OAD2B;EAElCC,KAAK,EAAE,OAF2B;EAGlCC,UAAU,EAAE,WAHsB;EAIlCC,KAAK,EAAE,OAJ2B;EAKlCC,YAAY,EAAE,aALoB;EAMlCC,iBAAiB,EAAE,kBANe;EAOlCC,WAAW,EAAE,YAPqB;EAQlCC,YAAY,EAAE,aARoB;EASlCC,UAAU,EAAE,WATsB;EAUlCC,WAAW,EAAE,YAVqB;EAWlCC,kBAAkB,EAAE,mBAXc;EAYlCC,OAAO,EAAE,QAZyB;EAalCC,QAAQ,EAAE,SAbwB;EAclCC,QAAQ,EAAE,UAdwB;EAelCC,eAAe,EAAE,gBAfiB;EAgBlCC,UAAU,EAAE,YAhBsB;EAiBlCC,yBAAyB,EAAE,yBAjBO;EAkBlCC,2BAA2B,EAAE,0BAlBK;EAmBlCC,aAAa,EAAE;AAnBmB,CAA7B"}
1
+ {"version":3,"file":"analytics.js","names":["ANALYTICS_EVENT_TYPE","PRESS","SWIPE","LONG_PRESS","SLIDE","MEDIA_VIEWED","START_PROGRESSION","OPEN_SELECT","CLOSE_SELECT","INPUT_BLUR","INPUT_FOCUS","FINISH_PROGRESSION","SIGN_IN","SIGN_OUT","NAVIGATE","VALIDATE_ANSWER","PERMISSION","NOTIFICATIONS_MAYBE_LATER","NOTIFICATIONS_YES_NOTIFY_ME","NOTIFICATIONS"],"sources":["../../src/variables/analytics.tsx"],"sourcesContent":["export const ANALYTICS_EVENT_TYPE = {\n PRESS: 'press',\n SWIPE: 'swipe',\n LONG_PRESS: 'longPress',\n SLIDE: 'slide',\n MEDIA_VIEWED: 'mediaViewed',\n START_PROGRESSION: 'startProgression',\n OPEN_SELECT: 'openSelect',\n CLOSE_SELECT: 'closeSelect',\n INPUT_BLUR: 'inputBlur',\n INPUT_FOCUS: 'inputFocus',\n FINISH_PROGRESSION: 'finishProgression',\n SIGN_IN: 'signIn',\n SIGN_OUT: 'signOut',\n NAVIGATE: 'navigate',\n VALIDATE_ANSWER: 'validateAnswer',\n PERMISSION: 'permission',\n NOTIFICATIONS_MAYBE_LATER: 'notificationsMaybeLater',\n NOTIFICATIONS_YES_NOTIFY_ME: 'notificationsYesNotifyMe',\n NOTIFICATIONS: 'notifications'\n};\n\nexport type Analytics = {\n logEvent: (name: string, options: {id?: string; questionType?: string}) => void;\n};\n\nexport type AnalyticsEventParams = {\n [key: string]: string | number;\n};\n"],"mappings":";;;;AAAO,MAAMA,oBAAoB,GAAG;EAClCC,KAAK,EAAE,OAD2B;EAElCC,KAAK,EAAE,OAF2B;EAGlCC,UAAU,EAAE,WAHsB;EAIlCC,KAAK,EAAE,OAJ2B;EAKlCC,YAAY,EAAE,aALoB;EAMlCC,iBAAiB,EAAE,kBANe;EAOlCC,WAAW,EAAE,YAPqB;EAQlCC,YAAY,EAAE,aARoB;EASlCC,UAAU,EAAE,WATsB;EAUlCC,WAAW,EAAE,YAVqB;EAWlCC,kBAAkB,EAAE,mBAXc;EAYlCC,OAAO,EAAE,QAZyB;EAalCC,QAAQ,EAAE,SAbwB;EAclCC,QAAQ,EAAE,UAdwB;EAelCC,eAAe,EAAE,gBAfiB;EAgBlCC,UAAU,EAAE,YAhBsB;EAiBlCC,yBAAyB,EAAE,yBAjBO;EAkBlCC,2BAA2B,EAAE,0BAlBK;EAmBlCC,aAAa,EAAE;AAnBmB,CAA7B"}
@@ -16,4 +16,5 @@ export declare type Brand = {
16
16
  defaultLanguage?: string;
17
17
  env?: string;
18
18
  };
19
+ export declare const defaultBrandTheme: Brand;
19
20
  //# sourceMappingURL=brand.native.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"brand.native.d.ts","sourceRoot":"","sources":["../../src/variables/brand.native.ts"],"names":[],"mappings":"AAAA,oBAAY,KAAK,GAAG;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,MAAM,CAAC,EAAE;QACP,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE;QACP,aAAa,EAAE,MAAM,CAAC;KACvB,CAAC;IACF,OAAO,CAAC,EAAE;QACR,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,kBAAkB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACnC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC"}
1
+ {"version":3,"file":"brand.native.d.ts","sourceRoot":"","sources":["../../src/variables/brand.native.ts"],"names":[],"mappings":"AAAA,oBAAY,KAAK,GAAG;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,MAAM,CAAC,EAAE;QACP,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE;QACP,aAAa,EAAE,MAAM,CAAC;KACvB,CAAC;IACF,OAAO,CAAC,EAAE;QACR,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,kBAAkB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACnC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAAU,CAAC"}
@@ -1,2 +1,7 @@
1
1
  "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.defaultBrandTheme = void 0;
5
+ const defaultBrandTheme = {};
6
+ exports.defaultBrandTheme = defaultBrandTheme;
2
7
  //# sourceMappingURL=brand.native.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"brand.native.js","names":[],"sources":["../../src/variables/brand.native.ts"],"sourcesContent":["export type Brand = {\n name?: string;\n host?: string;\n contentCategoryName?: string;\n colors?: {\n primary: string;\n };\n hero?: string;\n images?: {\n 'logo-mobile': string;\n };\n youtube?: {\n apiKey: string;\n };\n supportedLanguages?: Array<string>;\n defaultLanguage?: string;\n env?: string;\n};\n"],"mappings":""}
1
+ {"version":3,"file":"brand.native.js","names":["defaultBrandTheme"],"sources":["../../src/variables/brand.native.ts"],"sourcesContent":["export type Brand = {\n name?: string;\n host?: string;\n contentCategoryName?: string;\n colors?: {\n primary: string;\n };\n hero?: string;\n images?: {\n 'logo-mobile': string;\n };\n youtube?: {\n apiKey: string;\n };\n supportedLanguages?: Array<string>;\n defaultLanguage?: string;\n env?: string;\n};\n\nexport const defaultBrandTheme: Brand = {};\n"],"mappings":";;;;AAmBO,MAAMA,iBAAwB,GAAG,EAAjC"}
@@ -2,7 +2,6 @@ import { TextStyle } from 'react-native';
2
2
  export declare type SpaceType = 'micro' | 'tiny' | 'small' | 'base' | 'medium' | 'large' | 'xlarge';
3
3
  export declare const HTML_ANCHOR_TEXT_COLOR = "#002BDB";
4
4
  export declare type Colors = {
5
- background?: any;
6
5
  border: string;
7
6
  gray: {
8
7
  extra: string;
@@ -1 +1 @@
1
- {"version":3,"file":"theme.native.d.ts","sourceRoot":"","sources":["../../src/variables/theme.native.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAEvC,oBAAY,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;AAG5F,eAAO,MAAM,sBAAsB,YAAY,CAAC;AAEhD,oBAAY,MAAM,GAAG;IACnB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,EAAE,MAAM,CAAC;QACpB,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,IAAI,EAAE;QACJ,OAAO,EAAE,SAAS,CAAC;KACpB,CAAC;IACF,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,oBAAY,KAAK,GAAG;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,MAAM,EAAE;QACN,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,MAAM,CAAC;QACf,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,UAAU,EAAE;QACV,OAAO,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;QACjC,QAAQ,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;QAClC,IAAI,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;QAC9B,SAAS,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;KACpC,CAAC;IACF,QAAQ,EAAE;QACR,UAAU,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;QAClC,KAAK,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;QAC7B,MAAM,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;QAC9B,OAAO,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;QAC/B,KAAK,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;QAC7B,MAAM,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;QAC9B,OAAO,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;QAC/B,QAAQ,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;KACjC,CAAC;IACF,aAAa,EAAE;QACb,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;CACH,CAAC;AAEF,QAAA,MAAM,YAAY,EAAE,KA8DnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"theme.native.d.ts","sourceRoot":"","sources":["../../src/variables/theme.native.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAGvC,oBAAY,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;AAE5F,eAAO,MAAM,sBAAsB,YAAY,CAAC;AAEhD,oBAAY,MAAM,GAAG;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,EAAE,MAAM,CAAC;QACpB,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,IAAI,EAAE;QACJ,OAAO,EAAE,SAAS,CAAC;KACpB,CAAC;IACF,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,oBAAY,KAAK,GAAG;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,MAAM,EAAE;QACN,MAAM,EAAE,MAAM,CAAC;QACf,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,MAAM,CAAC;QACf,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,UAAU,EAAE;QACV,OAAO,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;QACjC,QAAQ,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;QAClC,IAAI,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;QAC9B,SAAS,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;KACpC,CAAC;IACF,QAAQ,EAAE;QACR,UAAU,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;QAClC,KAAK,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;QAC7B,MAAM,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;QAC9B,OAAO,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;QAC/B,KAAK,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;QAC7B,MAAM,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;QAC9B,OAAO,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;QAC/B,QAAQ,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;KACjC,CAAC;IACF,aAAa,EAAE;QACb,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;CACH,CAAC;AAEF,QAAA,MAAM,YAAY,EAAE,KA6DnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -22,7 +22,6 @@ const defaultTheme = {
22
22
  text: {
23
23
  primary: '#06265B'
24
24
  },
25
- background: {},
26
25
  cta: '#0061FF',
27
26
  negative: _colors.COLORS.negative,
28
27
  positive: _colors.COLORS.positive,
@@ -1 +1 @@
1
- {"version":3,"file":"theme.native.js","names":["HTML_ANCHOR_TEXT_COLOR","defaultTheme","colors","border","gray","extra","lighter","light","lightMedium","medium","dark","extraDark","text","primary","background","cta","negative","COLORS","positive","white","black","battle","notification","salmon","spacing","micro","tiny","small","base","large","xlarge","radius","common","card","regular","search","button","thumbnail","fontWeight","semiBold","bold","extraBold","fontSize","extraSmall","xxlarge","xxxlarge","letterSpacing","header"],"sources":["../../src/variables/theme.native.ts"],"sourcesContent":["import {TextStyle} from 'react-native';\n\nexport type SpaceType = 'micro' | 'tiny' | 'small' | 'base' | 'medium' | 'large' | 'xlarge';\nimport {COLORS} from './colors';\n\nexport const HTML_ANCHOR_TEXT_COLOR = '#002BDB';\n\nexport type Colors = {\n background?: any;\n border: string;\n gray: {\n extra: string;\n light: string;\n lighter: string;\n lightMedium: string;\n medium: string;\n dark: string;\n extraDark: string;\n };\n text: {\n primary: '#06265B';\n };\n cta: string;\n negative: string;\n positive: string;\n white: string;\n black: string;\n battle: string;\n notification: string;\n salmon: string;\n};\n\nexport type Theme = {\n colors: Colors;\n spacing: {\n micro: number;\n tiny: number;\n small: number;\n base: number;\n medium: number;\n large: number;\n xlarge: number;\n };\n radius: {\n button: number;\n common: number;\n card: number;\n medium: number;\n regular: number;\n search: number;\n thumbnail: number;\n };\n fontWeight: {\n regular: TextStyle['fontWeight'];\n semiBold: TextStyle['fontWeight'];\n bold: TextStyle['fontWeight'];\n extraBold: TextStyle['fontWeight'];\n };\n fontSize: {\n extraSmall: TextStyle['fontSize'];\n small: TextStyle['fontSize'];\n medium: TextStyle['fontSize'];\n regular: TextStyle['fontSize'];\n large: TextStyle['fontSize'];\n xlarge: TextStyle['fontSize'];\n xxlarge: TextStyle['fontSize'];\n xxxlarge: TextStyle['fontSize'];\n };\n letterSpacing: {\n header: number;\n };\n};\n\nconst defaultTheme: Theme = {\n colors: {\n border: 'rgba(0, 0, 0, 0.1)',\n gray: {\n extra: '#FAFAFA',\n lighter: '#F4F4F5',\n light: '#ededed',\n lightMedium: '#CFD8DC',\n medium: '#90A4AE',\n dark: '#546E7A',\n extraDark: '#323232'\n },\n text: {\n primary: '#06265B'\n },\n background: {},\n cta: '#0061FF',\n negative: COLORS.negative,\n positive: COLORS.positive,\n white: '#FFFFFF',\n black: '#14171A',\n battle: '#FFDE03',\n notification: '#FF7043',\n salmon: '#FDE2E5'\n },\n spacing: {\n micro: 4,\n tiny: 8,\n small: 16,\n base: 24,\n medium: 32,\n large: 48,\n xlarge: 64\n },\n radius: {\n common: 3,\n card: 5,\n regular: 8,\n medium: 12,\n search: 24,\n button: 32,\n thumbnail: 1000\n },\n fontWeight: {\n regular: '400',\n semiBold: '500',\n bold: '700',\n extraBold: '900'\n },\n fontSize: {\n extraSmall: 10,\n small: 12,\n medium: 13,\n regular: 15,\n large: 17,\n xlarge: 22,\n xxlarge: 28,\n xxxlarge: 40\n },\n letterSpacing: {\n header: 5\n }\n};\n\nexport default defaultTheme;\n"],"mappings":";;;;;AAGA;;AAEO,MAAMA,sBAAsB,GAAG,SAA/B;;AAoEP,MAAMC,YAAmB,GAAG;EAC1BC,MAAM,EAAE;IACNC,MAAM,EAAE,oBADF;IAENC,IAAI,EAAE;MACJC,KAAK,EAAE,SADH;MAEJC,OAAO,EAAE,SAFL;MAGJC,KAAK,EAAE,SAHH;MAIJC,WAAW,EAAE,SAJT;MAKJC,MAAM,EAAE,SALJ;MAMJC,IAAI,EAAE,SANF;MAOJC,SAAS,EAAE;IAPP,CAFA;IAWNC,IAAI,EAAE;MACJC,OAAO,EAAE;IADL,CAXA;IAcNC,UAAU,EAAE,EAdN;IAeNC,GAAG,EAAE,SAfC;IAgBNC,QAAQ,EAAEC,cAAA,CAAOD,QAhBX;IAiBNE,QAAQ,EAAED,cAAA,CAAOC,QAjBX;IAkBNC,KAAK,EAAE,SAlBD;IAmBNC,KAAK,EAAE,SAnBD;IAoBNC,MAAM,EAAE,SApBF;IAqBNC,YAAY,EAAE,SArBR;IAsBNC,MAAM,EAAE;EAtBF,CADkB;EAyB1BC,OAAO,EAAE;IACPC,KAAK,EAAE,CADA;IAEPC,IAAI,EAAE,CAFC;IAGPC,KAAK,EAAE,EAHA;IAIPC,IAAI,EAAE,EAJC;IAKPnB,MAAM,EAAE,EALD;IAMPoB,KAAK,EAAE,EANA;IAOPC,MAAM,EAAE;EAPD,CAzBiB;EAkC1BC,MAAM,EAAE;IACNC,MAAM,EAAE,CADF;IAENC,IAAI,EAAE,CAFA;IAGNC,OAAO,EAAE,CAHH;IAINzB,MAAM,EAAE,EAJF;IAKN0B,MAAM,EAAE,EALF;IAMNC,MAAM,EAAE,EANF;IAONC,SAAS,EAAE;EAPL,CAlCkB;EA2C1BC,UAAU,EAAE;IACVJ,OAAO,EAAE,KADC;IAEVK,QAAQ,EAAE,KAFA;IAGVC,IAAI,EAAE,KAHI;IAIVC,SAAS,EAAE;EAJD,CA3Cc;EAiD1BC,QAAQ,EAAE;IACRC,UAAU,EAAE,EADJ;IAERhB,KAAK,EAAE,EAFC;IAGRlB,MAAM,EAAE,EAHA;IAIRyB,OAAO,EAAE,EAJD;IAKRL,KAAK,EAAE,EALC;IAMRC,MAAM,EAAE,EANA;IAORc,OAAO,EAAE,EAPD;IAQRC,QAAQ,EAAE;EARF,CAjDgB;EA2D1BC,aAAa,EAAE;IACbC,MAAM,EAAE;EADK;AA3DW,CAA5B;eAgEe9C,Y"}
1
+ {"version":3,"file":"theme.native.js","names":["HTML_ANCHOR_TEXT_COLOR","defaultTheme","colors","border","gray","extra","lighter","light","lightMedium","medium","dark","extraDark","text","primary","cta","negative","COLORS","positive","white","black","battle","notification","salmon","spacing","micro","tiny","small","base","large","xlarge","radius","common","card","regular","search","button","thumbnail","fontWeight","semiBold","bold","extraBold","fontSize","extraSmall","xxlarge","xxxlarge","letterSpacing","header"],"sources":["../../src/variables/theme.native.ts"],"sourcesContent":["import {TextStyle} from 'react-native';\nimport {COLORS} from './colors';\n\nexport type SpaceType = 'micro' | 'tiny' | 'small' | 'base' | 'medium' | 'large' | 'xlarge';\n\nexport const HTML_ANCHOR_TEXT_COLOR = '#002BDB';\n\nexport type Colors = {\n border: string;\n gray: {\n extra: string;\n light: string;\n lighter: string;\n lightMedium: string;\n medium: string;\n dark: string;\n extraDark: string;\n };\n text: {\n primary: '#06265B';\n };\n cta: string;\n negative: string;\n positive: string;\n white: string;\n black: string;\n battle: string;\n notification: string;\n salmon: string;\n};\n\nexport type Theme = {\n colors: Colors;\n spacing: {\n micro: number;\n tiny: number;\n small: number;\n base: number;\n medium: number;\n large: number;\n xlarge: number;\n };\n radius: {\n button: number;\n common: number;\n card: number;\n medium: number;\n regular: number;\n search: number;\n thumbnail: number;\n };\n fontWeight: {\n regular: TextStyle['fontWeight'];\n semiBold: TextStyle['fontWeight'];\n bold: TextStyle['fontWeight'];\n extraBold: TextStyle['fontWeight'];\n };\n fontSize: {\n extraSmall: TextStyle['fontSize'];\n small: TextStyle['fontSize'];\n medium: TextStyle['fontSize'];\n regular: TextStyle['fontSize'];\n large: TextStyle['fontSize'];\n xlarge: TextStyle['fontSize'];\n xxlarge: TextStyle['fontSize'];\n xxxlarge: TextStyle['fontSize'];\n };\n letterSpacing: {\n header: number;\n };\n};\n\nconst defaultTheme: Theme = {\n colors: {\n border: 'rgba(0, 0, 0, 0.1)',\n gray: {\n extra: '#FAFAFA',\n lighter: '#F4F4F5',\n light: '#ededed',\n lightMedium: '#CFD8DC',\n medium: '#90A4AE',\n dark: '#546E7A',\n extraDark: '#323232'\n },\n text: {\n primary: '#06265B'\n },\n cta: '#0061FF',\n negative: COLORS.negative,\n positive: COLORS.positive,\n white: '#FFFFFF',\n black: '#14171A',\n battle: '#FFDE03',\n notification: '#FF7043',\n salmon: '#FDE2E5'\n },\n spacing: {\n micro: 4,\n tiny: 8,\n small: 16,\n base: 24,\n medium: 32,\n large: 48,\n xlarge: 64\n },\n radius: {\n common: 3,\n card: 5,\n regular: 8,\n medium: 12,\n search: 24,\n button: 32,\n thumbnail: 1000\n },\n fontWeight: {\n regular: '400',\n semiBold: '500',\n bold: '700',\n extraBold: '900'\n },\n fontSize: {\n extraSmall: 10,\n small: 12,\n medium: 13,\n regular: 15,\n large: 17,\n xlarge: 22,\n xxlarge: 28,\n xxxlarge: 40\n },\n letterSpacing: {\n header: 5\n }\n};\n\nexport default defaultTheme;\n"],"mappings":";;;;;AACA;;AAIO,MAAMA,sBAAsB,GAAG,SAA/B;;AAmEP,MAAMC,YAAmB,GAAG;EAC1BC,MAAM,EAAE;IACNC,MAAM,EAAE,oBADF;IAENC,IAAI,EAAE;MACJC,KAAK,EAAE,SADH;MAEJC,OAAO,EAAE,SAFL;MAGJC,KAAK,EAAE,SAHH;MAIJC,WAAW,EAAE,SAJT;MAKJC,MAAM,EAAE,SALJ;MAMJC,IAAI,EAAE,SANF;MAOJC,SAAS,EAAE;IAPP,CAFA;IAWNC,IAAI,EAAE;MACJC,OAAO,EAAE;IADL,CAXA;IAcNC,GAAG,EAAE,SAdC;IAeNC,QAAQ,EAAEC,cAAA,CAAOD,QAfX;IAgBNE,QAAQ,EAAED,cAAA,CAAOC,QAhBX;IAiBNC,KAAK,EAAE,SAjBD;IAkBNC,KAAK,EAAE,SAlBD;IAmBNC,MAAM,EAAE,SAnBF;IAoBNC,YAAY,EAAE,SApBR;IAqBNC,MAAM,EAAE;EArBF,CADkB;EAwB1BC,OAAO,EAAE;IACPC,KAAK,EAAE,CADA;IAEPC,IAAI,EAAE,CAFC;IAGPC,KAAK,EAAE,EAHA;IAIPC,IAAI,EAAE,EAJC;IAKPlB,MAAM,EAAE,EALD;IAMPmB,KAAK,EAAE,EANA;IAOPC,MAAM,EAAE;EAPD,CAxBiB;EAiC1BC,MAAM,EAAE;IACNC,MAAM,EAAE,CADF;IAENC,IAAI,EAAE,CAFA;IAGNC,OAAO,EAAE,CAHH;IAINxB,MAAM,EAAE,EAJF;IAKNyB,MAAM,EAAE,EALF;IAMNC,MAAM,EAAE,EANF;IAONC,SAAS,EAAE;EAPL,CAjCkB;EA0C1BC,UAAU,EAAE;IACVJ,OAAO,EAAE,KADC;IAEVK,QAAQ,EAAE,KAFA;IAGVC,IAAI,EAAE,KAHI;IAIVC,SAAS,EAAE;EAJD,CA1Cc;EAgD1BC,QAAQ,EAAE;IACRC,UAAU,EAAE,EADJ;IAERhB,KAAK,EAAE,EAFC;IAGRjB,MAAM,EAAE,EAHA;IAIRwB,OAAO,EAAE,EAJD;IAKRL,KAAK,EAAE,EALC;IAMRC,MAAM,EAAE,EANA;IAORc,OAAO,EAAE,EAPD;IAQRC,QAAQ,EAAE;EARF,CAhDgB;EA0D1BC,aAAa,EAAE;IACbC,MAAM,EAAE;EADK;AA1DW,CAA5B;eA+De7C,Y"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coorpacademy/components",
3
- "version": "10.26.0",
3
+ "version": "10.27.0",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -39,7 +39,7 @@
39
39
  "lint": "npm run eslint && npm run typecheck",
40
40
  "test": "npm run lint && npm run test:unit",
41
41
  "test:unit": "nyc npm run ava",
42
- "eslint": "eslint . --ext .js,.json --cache --cache-location \"node_modules/.cache/.eslintcache\"",
42
+ "eslint": "eslint . --ext .js,.json,.ts,.tsx --cache --cache-location \"node_modules/.cache/.eslintcache\"",
43
43
  "typecheck": "tsc --noEmit true"
44
44
  },
45
45
  "engines": {
@@ -57,6 +57,7 @@
57
57
  ],
58
58
  "dependencies": {
59
59
  "@coorpacademy/nova-icons": "3.11.12",
60
+ "@jwplayer/jwplayer-react": "^1.1.0",
60
61
  "@types/react": "^17.0.50",
61
62
  "@types/react-dom": "^17.0.17",
62
63
  "autoprefixer": "^10.4.12",
@@ -76,7 +77,6 @@
76
77
  "qs": "6.11.0",
77
78
  "react-autosuggest": "^10.0.2",
78
79
  "react-dropzone": "^9.0.0",
79
- "react-jw-player": "1.19.1",
80
80
  "react-tooltip": "^4.2.6"
81
81
  },
82
82
  "peerDependencies": {
@@ -118,6 +118,8 @@
118
118
  "@testing-library/react": "12.1.5",
119
119
  "@testing-library/react-native": "^10.1.1",
120
120
  "@types/react-native": "~0.68.7",
121
+ "@typescript-eslint/eslint-plugin": "^5.39.0",
122
+ "@typescript-eslint/parser": "^5.39.0",
121
123
  "@wojtekmaj/enzyme-adapter-react-17": "^0.6.7",
122
124
  "ava": "^4.3.3",
123
125
  "babel-loader": "^8.2.5",
@@ -155,5 +157,5 @@
155
157
  "last 2 versions",
156
158
  "IE 11"
157
159
  ],
158
- "gitHead": "dd58aa89c267084ec7338274ff946b3af97730b3"
160
+ "gitHead": "1d0fae07e26ce0943039363b3639b754329a36b7"
159
161
  }