react-native-stallion 2.4.2-alpha.1 → 2.4.3-alpha.1

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 (232) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +1 -0
  3. package/src/index.js.map +1 -1
  4. package/src/main/components/StallionDevMenu.js +69 -0
  5. package/src/main/components/StallionDevMenu.js.map +1 -0
  6. package/src/main/components/common/BackButton/index.js +19 -42
  7. package/src/main/components/common/BackButton/index.js.map +1 -1
  8. package/src/main/components/common/Chevron/index.js +64 -0
  9. package/src/main/components/common/Chevron/index.js.map +1 -0
  10. package/src/main/components/common/CrossButton/index.js +18 -11
  11. package/src/main/components/common/CrossButton/index.js.map +1 -1
  12. package/src/main/components/common/Header/index.js +3 -15
  13. package/src/main/components/common/Header/index.js.map +1 -1
  14. package/src/main/components/common/Header/styles.js +0 -22
  15. package/src/main/components/common/Header/styles.js.map +1 -1
  16. package/src/main/components/modules/devMenu/components/ActionButton.js +45 -0
  17. package/src/main/components/modules/devMenu/components/ActionButton.js.map +1 -0
  18. package/src/main/components/modules/devMenu/components/AppHeader.js +17 -0
  19. package/src/main/components/modules/devMenu/components/AppHeader.js.map +1 -0
  20. package/src/main/components/modules/devMenu/components/BucketRow.js +34 -0
  21. package/src/main/components/modules/devMenu/components/BucketRow.js.map +1 -0
  22. package/src/main/components/modules/devMenu/components/BundleHistoryCard.js +92 -0
  23. package/src/main/components/modules/devMenu/components/BundleHistoryCard.js.map +1 -0
  24. package/src/main/components/modules/devMenu/components/Chip.js +16 -0
  25. package/src/main/components/modules/devMenu/components/Chip.js.map +1 -0
  26. package/src/main/components/modules/devMenu/components/DetailHeader.js +32 -0
  27. package/src/main/components/modules/devMenu/components/DetailHeader.js.map +1 -0
  28. package/src/main/components/modules/devMenu/components/DeviceCard.js +31 -0
  29. package/src/main/components/modules/devMenu/components/DeviceCard.js.map +1 -0
  30. package/src/main/components/modules/devMenu/components/ErrorBanner.js +17 -0
  31. package/src/main/components/modules/devMenu/components/ErrorBanner.js.map +1 -0
  32. package/src/main/components/modules/devMenu/components/ModeToggle.js +54 -0
  33. package/src/main/components/modules/devMenu/components/ModeToggle.js.map +1 -0
  34. package/src/main/components/modules/devMenu/components/ProdBundleCard.js +47 -0
  35. package/src/main/components/modules/devMenu/components/ProdBundleCard.js.map +1 -0
  36. package/src/main/components/modules/devMenu/components/ReleaseNote.js +44 -0
  37. package/src/main/components/modules/devMenu/components/ReleaseNote.js.map +1 -0
  38. package/src/main/components/modules/devMenu/components/SectionLabel.js +13 -0
  39. package/src/main/components/modules/devMenu/components/SectionLabel.js.map +1 -0
  40. package/src/main/components/modules/devMenu/components/StateCard.js +30 -0
  41. package/src/main/components/modules/devMenu/components/StateCard.js.map +1 -0
  42. package/src/main/components/modules/devMenu/components/Wordmark.js +35 -0
  43. package/src/main/components/modules/devMenu/components/Wordmark.js.map +1 -0
  44. package/src/main/components/modules/devMenu/components/styles/index.js +403 -0
  45. package/src/main/components/modules/devMenu/components/styles/index.js.map +1 -0
  46. package/src/main/components/modules/devMenu/index.js +47 -0
  47. package/src/main/components/modules/devMenu/index.js.map +1 -0
  48. package/src/main/components/modules/devMenu/screens/BundleHistory.js +142 -0
  49. package/src/main/components/modules/devMenu/screens/BundleHistory.js.map +1 -0
  50. package/src/main/components/modules/devMenu/screens/Production.js +65 -0
  51. package/src/main/components/modules/devMenu/screens/Production.js.map +1 -0
  52. package/src/main/components/modules/devMenu/screens/TestingBuckets.js +81 -0
  53. package/src/main/components/modules/devMenu/screens/TestingBuckets.js.map +1 -0
  54. package/src/main/components/modules/devMenu/styles.js +50 -0
  55. package/src/main/components/modules/devMenu/styles.js.map +1 -0
  56. package/src/main/components/modules/modal/StallionModal.js +15 -51
  57. package/src/main/components/modules/modal/StallionModal.js.map +1 -1
  58. package/src/main/components/modules/modal/hooks/useStallionModal.js +21 -19
  59. package/src/main/components/modules/modal/hooks/useStallionModal.js.map +1 -1
  60. package/src/main/constants/appConstants.js +56 -53
  61. package/src/main/constants/appConstants.js.map +1 -1
  62. package/src/main/constants/colors.js +1 -10
  63. package/src/main/constants/colors.js.map +1 -1
  64. package/src/main/constants/designTokens.js +80 -0
  65. package/src/main/constants/designTokens.js.map +1 -0
  66. package/src/main/index.js +3 -1
  67. package/src/main/index.js.map +1 -1
  68. package/src/main/utils/useStallionConfig.js +2 -2
  69. package/src/main/utils/useStallionConfig.js.map +1 -1
  70. package/src/types/bundle.types.js +7 -0
  71. package/src/types/bundle.types.js.map +1 -1
  72. package/types/index.d.ts +1 -0
  73. package/types/index.d.ts.map +1 -1
  74. package/types/main/components/StallionDevMenu.d.ts +5 -0
  75. package/types/main/components/StallionDevMenu.d.ts.map +1 -0
  76. package/types/main/components/common/BackButton/index.d.ts +4 -3
  77. package/types/main/components/common/BackButton/index.d.ts.map +1 -1
  78. package/types/main/components/common/Chevron/index.d.ts +11 -0
  79. package/types/main/components/common/Chevron/index.d.ts.map +1 -0
  80. package/types/main/components/common/CrossButton/index.d.ts +4 -3
  81. package/types/main/components/common/CrossButton/index.d.ts.map +1 -1
  82. package/types/main/components/common/Header/index.d.ts +0 -2
  83. package/types/main/components/common/Header/index.d.ts.map +1 -1
  84. package/types/main/components/common/Header/styles.d.ts +0 -21
  85. package/types/main/components/common/Header/styles.d.ts.map +1 -1
  86. package/types/main/components/modules/devMenu/components/ActionButton.d.ts +19 -0
  87. package/types/main/components/modules/devMenu/components/ActionButton.d.ts.map +1 -0
  88. package/types/main/components/modules/devMenu/components/AppHeader.d.ts +7 -0
  89. package/types/main/components/modules/devMenu/components/AppHeader.d.ts.map +1 -0
  90. package/types/main/components/modules/devMenu/components/BucketRow.d.ts +11 -0
  91. package/types/main/components/modules/devMenu/components/BucketRow.d.ts.map +1 -0
  92. package/types/main/components/modules/devMenu/components/BundleHistoryCard.d.ts +22 -0
  93. package/types/main/components/modules/devMenu/components/BundleHistoryCard.d.ts.map +1 -0
  94. package/types/main/components/modules/devMenu/components/Chip.d.ts +9 -0
  95. package/types/main/components/modules/devMenu/components/Chip.d.ts.map +1 -0
  96. package/types/main/components/modules/devMenu/components/DetailHeader.d.ts +10 -0
  97. package/types/main/components/modules/devMenu/components/DetailHeader.d.ts.map +1 -0
  98. package/types/main/components/modules/devMenu/components/DeviceCard.d.ts +8 -0
  99. package/types/main/components/modules/devMenu/components/DeviceCard.d.ts.map +1 -0
  100. package/types/main/components/modules/devMenu/components/ErrorBanner.d.ts +6 -0
  101. package/types/main/components/modules/devMenu/components/ErrorBanner.d.ts.map +1 -0
  102. package/types/main/components/modules/devMenu/components/ModeToggle.d.ts +8 -0
  103. package/types/main/components/modules/devMenu/components/ModeToggle.d.ts.map +1 -0
  104. package/types/main/components/modules/devMenu/components/ProdBundleCard.d.ts +13 -0
  105. package/types/main/components/modules/devMenu/components/ProdBundleCard.d.ts.map +1 -0
  106. package/types/main/components/modules/devMenu/components/ReleaseNote.d.ts +11 -0
  107. package/types/main/components/modules/devMenu/components/ReleaseNote.d.ts.map +1 -0
  108. package/types/main/components/modules/devMenu/components/SectionLabel.d.ts +6 -0
  109. package/types/main/components/modules/devMenu/components/SectionLabel.d.ts.map +1 -0
  110. package/types/main/components/modules/devMenu/components/StateCard.d.ts +9 -0
  111. package/types/main/components/modules/devMenu/components/StateCard.d.ts.map +1 -0
  112. package/types/main/components/modules/{listing/index.d.ts → devMenu/components/Wordmark.d.ts} +1 -1
  113. package/types/main/components/modules/devMenu/components/Wordmark.d.ts.map +1 -0
  114. package/types/main/components/modules/devMenu/components/styles/index.d.ts +353 -0
  115. package/types/main/components/modules/devMenu/components/styles/index.d.ts.map +1 -0
  116. package/types/main/components/modules/devMenu/index.d.ts +14 -0
  117. package/types/main/components/modules/devMenu/index.d.ts.map +1 -0
  118. package/types/main/components/modules/devMenu/screens/BundleHistory.d.ts +4 -0
  119. package/types/main/components/modules/devMenu/screens/BundleHistory.d.ts.map +1 -0
  120. package/types/main/components/modules/devMenu/screens/Production.d.ts +4 -0
  121. package/types/main/components/modules/devMenu/screens/Production.d.ts.map +1 -0
  122. package/types/main/components/modules/devMenu/screens/TestingBuckets.d.ts +4 -0
  123. package/types/main/components/modules/devMenu/screens/TestingBuckets.d.ts.map +1 -0
  124. package/types/main/components/modules/devMenu/styles.d.ts +46 -0
  125. package/types/main/components/modules/devMenu/styles.d.ts.map +1 -0
  126. package/types/main/components/modules/modal/StallionModal.d.ts.map +1 -1
  127. package/types/main/components/modules/modal/hooks/useStallionModal.d.ts +5 -6
  128. package/types/main/components/modules/modal/hooks/useStallionModal.d.ts.map +1 -1
  129. package/types/main/constants/appConstants.d.ts +46 -48
  130. package/types/main/constants/appConstants.d.ts.map +1 -1
  131. package/types/main/constants/colors.d.ts +0 -9
  132. package/types/main/constants/colors.d.ts.map +1 -1
  133. package/types/main/constants/designTokens.d.ts +73 -0
  134. package/types/main/constants/designTokens.d.ts.map +1 -0
  135. package/types/main/index.d.ts +1 -0
  136. package/types/main/index.d.ts.map +1 -1
  137. package/types/main/utils/useStallionConfig.d.ts.map +1 -1
  138. package/types/types/bundle.types.d.ts +7 -0
  139. package/types/types/bundle.types.d.ts.map +1 -1
  140. package/types/types/utils.types.d.ts +3 -0
  141. package/types/types/utils.types.d.ts.map +1 -1
  142. package/src/main/components/common/ErrorView/index.js +0 -24
  143. package/src/main/components/common/ErrorView/index.js.map +0 -1
  144. package/src/main/components/common/ErrorView/styles.js +0 -30
  145. package/src/main/components/common/ErrorView/styles.js.map +0 -1
  146. package/src/main/components/common/Footer/index.js +0 -50
  147. package/src/main/components/common/Footer/index.js.map +0 -1
  148. package/src/main/components/common/Footer/styles.js +0 -91
  149. package/src/main/components/common/Footer/styles.js.map +0 -1
  150. package/src/main/components/common/FooterLoader/index.js +0 -11
  151. package/src/main/components/common/FooterLoader/index.js.map +0 -1
  152. package/src/main/components/common/FooterLoader/styles.js +0 -12
  153. package/src/main/components/common/FooterLoader/styles.js.map +0 -1
  154. package/src/main/components/common/OverlayLoader/index.js +0 -26
  155. package/src/main/components/common/OverlayLoader/index.js.map +0 -1
  156. package/src/main/components/common/OverlayLoader/styles.js +0 -33
  157. package/src/main/components/common/OverlayLoader/styles.js.map +0 -1
  158. package/src/main/components/modules/listing/components/BucketCard.js +0 -33
  159. package/src/main/components/modules/listing/components/BucketCard.js.map +0 -1
  160. package/src/main/components/modules/listing/components/BucketCardInfoSection.js +0 -56
  161. package/src/main/components/modules/listing/components/BucketCardInfoSection.js.map +0 -1
  162. package/src/main/components/modules/listing/components/BundleCard.js +0 -42
  163. package/src/main/components/modules/listing/components/BundleCard.js.map +0 -1
  164. package/src/main/components/modules/listing/components/BundleCardInfoSection.js +0 -82
  165. package/src/main/components/modules/listing/components/BundleCardInfoSection.js.map +0 -1
  166. package/src/main/components/modules/listing/components/CardDescriptionContent.js +0 -36
  167. package/src/main/components/modules/listing/components/CardDescriptionContent.js.map +0 -1
  168. package/src/main/components/modules/listing/components/ConfigView.js +0 -29
  169. package/src/main/components/modules/listing/components/ConfigView.js.map +0 -1
  170. package/src/main/components/modules/listing/components/MetaCard.js +0 -39
  171. package/src/main/components/modules/listing/components/MetaCard.js.map +0 -1
  172. package/src/main/components/modules/listing/components/SlotView.js +0 -80
  173. package/src/main/components/modules/listing/components/SlotView.js.map +0 -1
  174. package/src/main/components/modules/listing/components/styles/index.js +0 -121
  175. package/src/main/components/modules/listing/components/styles/index.js.map +0 -1
  176. package/src/main/components/modules/listing/hooks/useListing.js +0 -84
  177. package/src/main/components/modules/listing/hooks/useListing.js.map +0 -1
  178. package/src/main/components/modules/listing/index.js +0 -75
  179. package/src/main/components/modules/listing/index.js.map +0 -1
  180. package/src/main/components/modules/listing/styles.js +0 -24
  181. package/src/main/components/modules/listing/styles.js.map +0 -1
  182. package/src/main/components/modules/prod/index.js +0 -3
  183. package/src/main/components/modules/prod/index.js.map +0 -1
  184. package/src/main/components/modules/prod/prod.js +0 -30
  185. package/src/main/components/modules/prod/prod.js.map +0 -1
  186. package/src/main/components/modules/prod/styles/index.js +0 -29
  187. package/src/main/components/modules/prod/styles/index.js.map +0 -1
  188. package/types/main/components/common/ErrorView/index.d.ts +0 -8
  189. package/types/main/components/common/ErrorView/index.d.ts.map +0 -1
  190. package/types/main/components/common/ErrorView/styles.d.ts +0 -27
  191. package/types/main/components/common/ErrorView/styles.d.ts.map +0 -1
  192. package/types/main/components/common/Footer/index.d.ts +0 -10
  193. package/types/main/components/common/Footer/index.d.ts.map +0 -1
  194. package/types/main/components/common/Footer/styles.d.ts +0 -88
  195. package/types/main/components/common/Footer/styles.d.ts.map +0 -1
  196. package/types/main/components/common/FooterLoader/index.d.ts +0 -4
  197. package/types/main/components/common/FooterLoader/index.d.ts.map +0 -1
  198. package/types/main/components/common/FooterLoader/styles.d.ts +0 -10
  199. package/types/main/components/common/FooterLoader/styles.d.ts.map +0 -1
  200. package/types/main/components/common/OverlayLoader/index.d.ts +0 -7
  201. package/types/main/components/common/OverlayLoader/index.d.ts.map +0 -1
  202. package/types/main/components/common/OverlayLoader/styles.d.ts +0 -30
  203. package/types/main/components/common/OverlayLoader/styles.d.ts.map +0 -1
  204. package/types/main/components/modules/listing/components/BucketCard.d.ts +0 -13
  205. package/types/main/components/modules/listing/components/BucketCard.d.ts.map +0 -1
  206. package/types/main/components/modules/listing/components/BucketCardInfoSection.d.ts +0 -11
  207. package/types/main/components/modules/listing/components/BucketCardInfoSection.d.ts.map +0 -1
  208. package/types/main/components/modules/listing/components/BundleCard.d.ts +0 -15
  209. package/types/main/components/modules/listing/components/BundleCard.d.ts.map +0 -1
  210. package/types/main/components/modules/listing/components/BundleCardInfoSection.d.ts +0 -15
  211. package/types/main/components/modules/listing/components/BundleCardInfoSection.d.ts.map +0 -1
  212. package/types/main/components/modules/listing/components/CardDescriptionContent.d.ts +0 -8
  213. package/types/main/components/modules/listing/components/CardDescriptionContent.d.ts.map +0 -1
  214. package/types/main/components/modules/listing/components/ConfigView.d.ts +0 -8
  215. package/types/main/components/modules/listing/components/ConfigView.d.ts.map +0 -1
  216. package/types/main/components/modules/listing/components/MetaCard.d.ts +0 -8
  217. package/types/main/components/modules/listing/components/MetaCard.d.ts.map +0 -1
  218. package/types/main/components/modules/listing/components/SlotView.d.ts +0 -5
  219. package/types/main/components/modules/listing/components/SlotView.d.ts.map +0 -1
  220. package/types/main/components/modules/listing/components/styles/index.d.ts +0 -118
  221. package/types/main/components/modules/listing/components/styles/index.d.ts.map +0 -1
  222. package/types/main/components/modules/listing/hooks/useListing.d.ts +0 -15
  223. package/types/main/components/modules/listing/hooks/useListing.d.ts.map +0 -1
  224. package/types/main/components/modules/listing/index.d.ts.map +0 -1
  225. package/types/main/components/modules/listing/styles.d.ts +0 -21
  226. package/types/main/components/modules/listing/styles.d.ts.map +0 -1
  227. package/types/main/components/modules/prod/index.d.ts +0 -3
  228. package/types/main/components/modules/prod/index.d.ts.map +0 -1
  229. package/types/main/components/modules/prod/prod.d.ts +0 -4
  230. package/types/main/components/modules/prod/prod.d.ts.map +0 -1
  231. package/types/main/components/modules/prod/styles/index.d.ts +0 -25
  232. package/types/main/components/modules/prod/styles/index.d.ts.map +0 -1
@@ -0,0 +1,73 @@
1
+ /**
2
+ * Design tokens for the Stallion dev menu.
3
+ */
4
+ export declare const DS_COLORS: {
5
+ indigo: string;
6
+ indigoPressed: string;
7
+ indigoTint: string;
8
+ green: string;
9
+ greenPressed: string;
10
+ greenTint: string;
11
+ screenBg: string;
12
+ cardBg: string;
13
+ cardBorder: string;
14
+ divider: string;
15
+ headerHairline: string;
16
+ segmentTrack: string;
17
+ outlineBorder: string;
18
+ chevron: string;
19
+ textPrimary: string;
20
+ textSecondary: string;
21
+ textBody: string;
22
+ textMuted: string;
23
+ textFaint: string;
24
+ white: string;
25
+ errorText: string;
26
+ errorTint: string;
27
+ errorBorder: string;
28
+ contentBg: string;
29
+ };
30
+ export declare const DS_RADII: {
31
+ card: number;
32
+ button: number;
33
+ segmentTrack: number;
34
+ segment: number;
35
+ pill: number;
36
+ };
37
+ /**
38
+ * Compact toggle (46×28). On (Testing) uses brand green against the
39
+ * white header; off (Production) keeps a neutral outline track.
40
+ */
41
+ export declare const DS_TOGGLE: {
42
+ width: number;
43
+ height: number;
44
+ thumb: number;
45
+ inset: number;
46
+ trackOff: string;
47
+ trackOn: string;
48
+ };
49
+ export declare const DS_SPACING: {
50
+ screen: number;
51
+ cardVertical: number;
52
+ cardHorizontal: number;
53
+ section: number;
54
+ labelGap: number;
55
+ cardGap: number;
56
+ };
57
+ /** Monospace family for the UID value. */
58
+ export declare const DS_MONO_FONT: string;
59
+ /** Pads small glyph controls out to the 44px minimum touch target. */
60
+ export declare const DS_HIT_SLOP: {
61
+ top: number;
62
+ bottom: number;
63
+ left: number;
64
+ right: number;
65
+ };
66
+ /** Pads buttons (≈32px tall) out to the 44px minimum touch target. */
67
+ export declare const DS_BUTTON_HIT_SLOP: {
68
+ top: number;
69
+ bottom: number;
70
+ left: number;
71
+ right: number;
72
+ };
73
+ //# sourceMappingURL=designTokens.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"designTokens.d.ts","sourceRoot":"","sources":["../../../../src/main/constants/designTokens.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;CA0BrB,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;;;CAMpB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,SAAS;;;;;;;CAOrB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;CAOtB,CAAC;AAEF,0CAA0C;AAC1C,eAAO,MAAM,YAAY,QAAgD,CAAC;AAE1E,sEAAsE;AACtE,eAAO,MAAM,WAAW;;;;;CAA+C,CAAC;AAExE,sEAAsE;AACtE,eAAO,MAAM,kBAAkB;;;;;CAA2C,CAAC"}
@@ -2,6 +2,7 @@
2
2
  declare const _default: {
3
3
  withStallion: <T>(BaseComponent: import("react").ComponentType<T>, initPrams?: import("../types/utils.types").IStallionInitParams | undefined) => import("react").FC<T>;
4
4
  useStallionModal: () => import("../types/utils.types").IUseStallionModal;
5
+ StallionDevMenu: import("react").FC<import("../types/utils.types").IStallionDevMenuProps>;
5
6
  };
6
7
  export default _default;
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/main/index.ts"],"names":[],"mappings":";;;;;AAGA,wBAGE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/main/index.ts"],"names":[],"mappings":";;;;;;AAIA,wBAIE"}
@@ -1 +1 @@
1
- {"version":3,"file":"useStallionConfig.d.ts","sourceRoot":"","sources":["../../../../src/main/utils/useStallionConfig.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,iBAAiB;;CAKtB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"useStallionConfig.d.ts","sourceRoot":"","sources":["../../../../src/main/utils/useStallionConfig.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,iBAAiB;;CAOtB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -1,3 +1,9 @@
1
+ export declare enum BUNDLE_STATUS {
2
+ AVAILABLE = "available",
3
+ DOWNLOADING = "downloading",
4
+ DOWNLOADED = "downloaded",
5
+ ACTIVE = "active"
6
+ }
1
7
  export interface IBundleData {
2
8
  version: number;
3
9
  id: string;
@@ -8,6 +14,7 @@ export interface IBundleData {
8
14
  };
9
15
  releaseNote: string;
10
16
  downloadUrl: string;
17
+ size?: number;
11
18
  }
12
19
  export type IBundleDataList = IBundleData[];
13
20
  export interface IBundleState {
@@ -1 +1 @@
1
- {"version":3,"file":"bundle.types.d.ts","sourceRoot":"","sources":["../../../src/types/bundle.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE;QACN,QAAQ,EAAE,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yB,8BAA8B;IACvD,qBAAqB,0BAA0B;CAChD;AAED,UAAU,oBAAoB;IAC5B,IAAI,EAAE,gBAAgB,CAAC,kBAAkB,CAAC;CAC3C;AAED,UAAU,iBAAiB;IACzB,IAAI,EAAE,gBAAgB,CAAC,eAAe,CAAC;IACvC,OAAO,EAAE,eAAe,CAAC;CAC1B;AAED,UAAU,kBAAkB;IAC1B,IAAI,EAAE,gBAAgB,CAAC,gBAAgB,CAAC;IACxC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,2BAA2B;IACnC,IAAI,EAAE,gBAAgB,CAAC,mBAAmB,CAAC;IAC3C,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAED,UAAU,6BAA6B;IACrC,IAAI,EAAE,gBAAgB,CAAC,qBAAqB,CAAC;IAC7C,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAED,UAAU,gCAAgC;IACxC,IAAI,EAAE,gBAAgB,CAAC,yBAAyB,CAAC;IACjD,OAAO,EAAE,eAAe,CAAC;CAC1B;AAED,UAAU,4BAA4B;IACpC,IAAI,EAAE,gBAAgB,CAAC,qBAAqB,CAAC;IAC7C,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,MAAM,aAAa,GACrB,oBAAoB,GACpB,iBAAiB,GACjB,kBAAkB,GAClB,2BAA2B,GAC3B,6BAA6B,GAC7B,gCAAgC,GAChC,4BAA4B,CAAC"}
@@ -18,6 +18,9 @@ export interface IStallionConfig {
18
18
  export interface IUseStallionModal {
19
19
  showModal: () => void;
20
20
  }
21
+ export interface IStallionDevMenuProps {
22
+ onClosePress: () => void;
23
+ }
21
24
  export type TextChangeEventType = NativeSyntheticEvent<TextInputChangeEventData>;
22
25
  export type TSetSdkTokenNative = (sdkToken: string) => Promise<string>;
23
26
  export type TGetStallionMetaNative = () => Promise<IStallionMeta>;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.types.d.ts","sourceRoot":"","sources":["../../../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CAAC;AAEvE,MAAM,MAAM,sBAAsB,GAAG,MAAM,OAAO,CAAC,aAAa,CAAC,CAAC;AAElE,MAAM,MAAM,wBAAwB,GAAG,MAAM,OAAO,CAAC,mBAAmB,CAAC,CAAC;AAE1E,MAAM,MAAM,2BAA2B,GAAG,CACxC,WAAW,EAAE,aAAa,KACvB,OAAO,CAAC,MAAM,CAAC,CAAC;AAErB,MAAM,MAAM,qBAAqB,GAAG,CAClC,UAAU,EAAE,WAAW,KACpB,OAAO,CAAC,MAAM,CAAC,CAAC;AAErB,MAAM,MAAM,qBAAqB,GAAG,CAAC,kBAAkB,EAAE,MAAM,KAAK,IAAI,CAAC;AAEzE,MAAM,MAAM,2BAA2B,GAAG,MAAM,MAAM,GAAG,IAAI,CAAC;AAE9D,MAAM,WAAW,kBAAkB;IACjC,iBAAiB,EAAE,OAAO,CAAC;IAC3B,sBAAsB,EAAE,WAAW,GAAG,IAAI,CAAC;IAC3C,gBAAgB,EAAE,WAAW,GAAG,IAAI,CAAC;CACtC"}
@@ -1,24 +0,0 @@
1
- import React, { memo } from 'react';
2
- import { View, Text, TouchableOpacity } from 'react-native';
3
- import styles from './styles';
4
- import { DEFAULT_ERROR_PREFIX, RETRY_BUTTON_TEXT } from '../../../constants/appConstants';
5
- const ErrorView = _ref => {
6
- let {
7
- error,
8
- onRetry
9
- } = _ref;
10
- return /*#__PURE__*/React.createElement(View, {
11
- style: styles.errorContainer
12
- }, error ? /*#__PURE__*/React.createElement(Text, {
13
- style: styles.errorText
14
- }, /*#__PURE__*/React.createElement(Text, {
15
- style: styles.boldText
16
- }, DEFAULT_ERROR_PREFIX), error) : null, onRetry ? /*#__PURE__*/React.createElement(TouchableOpacity, {
17
- style: styles.retryButtonContainer,
18
- onPress: onRetry
19
- }, /*#__PURE__*/React.createElement(Text, {
20
- style: [styles.retryText]
21
- }, RETRY_BUTTON_TEXT)) : null);
22
- };
23
- export default /*#__PURE__*/memo(ErrorView);
24
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","memo","View","Text","TouchableOpacity","styles","DEFAULT_ERROR_PREFIX","RETRY_BUTTON_TEXT","ErrorView","_ref","error","onRetry","createElement","style","errorContainer","errorText","boldText","retryButtonContainer","onPress","retryText"],"sourceRoot":"../../../../../../src","sources":["main/components/common/ErrorView/index.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,IAAI,QAAQ,OAAO;AACnC,SAASC,IAAI,EAAEC,IAAI,EAAEC,gBAAgB,QAAQ,cAAc;AAE3D,OAAOC,MAAM,MAAM,UAAU;AAC7B,SACEC,oBAAoB,EACpBC,iBAAiB,QACZ,iCAAiC;AAOxC,MAAMC,SAA+B,GAAGC,IAAA,IAAwB;EAAA,IAAvB;IAAEC,KAAK;IAAEC;EAAQ,CAAC,GAAAF,IAAA;EACzD,oBACET,KAAA,CAAAY,aAAA,CAACV,IAAI;IAACW,KAAK,EAAER,MAAM,CAACS;EAAe,GAChCJ,KAAK,gBACJV,KAAA,CAAAY,aAAA,CAACT,IAAI;IAACU,KAAK,EAAER,MAAM,CAACU;EAAU,gBAC5Bf,KAAA,CAAAY,aAAA,CAACT,IAAI;IAACU,KAAK,EAAER,MAAM,CAACW;EAAS,GAAEV,oBAA2B,CAAC,EAC1DI,KACG,CAAC,GACL,IAAI,EACPC,OAAO,gBACNX,KAAA,CAAAY,aAAA,CAACR,gBAAgB;IAACS,KAAK,EAAER,MAAM,CAACY,oBAAqB;IAACC,OAAO,EAAEP;EAAQ,gBACrEX,KAAA,CAAAY,aAAA,CAACT,IAAI;IAACU,KAAK,EAAE,CAACR,MAAM,CAACc,SAAS;EAAE,GAAEZ,iBAAwB,CAC1C,CAAC,GACjB,IACA,CAAC;AAEX,CAAC;AAED,4BAAeN,IAAI,CAACO,SAAS,CAAC"}
@@ -1,30 +0,0 @@
1
- import { StyleSheet } from 'react-native';
2
- import { HEADER_SLAB_HEIGHT, STD_MARGIN } from '../../../constants/appConstants';
3
- import { COLORS } from '../../../constants/colors';
4
- const styles = StyleSheet.create({
5
- errorContainer: {
6
- flex: 1,
7
- justifyContent: 'center',
8
- alignItems: 'center',
9
- padding: HEADER_SLAB_HEIGHT / 2,
10
- backgroundColor: COLORS.background_grey
11
- },
12
- errorText: {
13
- color: COLORS.error,
14
- fontSize: STD_MARGIN * 2
15
- },
16
- boldText: {
17
- fontWeight: 'bold'
18
- },
19
- retryButtonContainer: {
20
- alignSelf: 'center',
21
- marginVertical: STD_MARGIN * 2,
22
- justifyContent: 'center',
23
- alignItems: 'center'
24
- },
25
- retryText: {
26
- fontSize: STD_MARGIN * 1.5
27
- }
28
- });
29
- export default styles;
30
- //# sourceMappingURL=styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["StyleSheet","HEADER_SLAB_HEIGHT","STD_MARGIN","COLORS","styles","create","errorContainer","flex","justifyContent","alignItems","padding","backgroundColor","background_grey","errorText","color","error","fontSize","boldText","fontWeight","retryButtonContainer","alignSelf","marginVertical","retryText"],"sourceRoot":"../../../../../../src","sources":["main/components/common/ErrorView/styles.ts"],"mappings":"AAAA,SAASA,UAAU,QAAQ,cAAc;AAEzC,SACEC,kBAAkB,EAClBC,UAAU,QACL,iCAAiC;AACxC,SAASC,MAAM,QAAQ,2BAA2B;AAElD,MAAMC,MAAM,GAAGJ,UAAU,CAACK,MAAM,CAAC;EAC/BC,cAAc,EAAE;IACdC,IAAI,EAAE,CAAC;IACPC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE,QAAQ;IACpBC,OAAO,EAAET,kBAAkB,GAAG,CAAC;IAC/BU,eAAe,EAAER,MAAM,CAACS;EAC1B,CAAC;EACDC,SAAS,EAAE;IACTC,KAAK,EAAEX,MAAM,CAACY,KAAK;IACnBC,QAAQ,EAAEd,UAAU,GAAG;EACzB,CAAC;EACDe,QAAQ,EAAE;IACRC,UAAU,EAAE;EACd,CAAC;EACDC,oBAAoB,EAAE;IACpBC,SAAS,EAAE,QAAQ;IACnBC,cAAc,EAAEnB,UAAU,GAAG,CAAC;IAC9BM,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd,CAAC;EACDa,SAAS,EAAE;IACTN,QAAQ,EAAEd,UAAU,GAAG;EACzB;AACF,CAAC,CAAC;AAEF,eAAeE,MAAM"}
@@ -1,50 +0,0 @@
1
- import React, { useCallback, memo } from 'react';
2
- import { View, Text, TouchableOpacity } from 'react-native';
3
- import { SWITCH_TEXTS, RESTART_REQUIRED_MESSAGE, FOOTER_SUB_TEXTS } from '../../../constants/appConstants';
4
- import styles from './styles';
5
- import { restart } from '../../../utils/StallionNativeUtils';
6
- const Footer = _ref => {
7
- let {
8
- switchIsOn,
9
- onSwitchToggle,
10
- errorMessage,
11
- isRestartRequired
12
- } = _ref;
13
- const handleToggle = useCallback(newSwitchStatus => {
14
- onSwitchToggle === null || onSwitchToggle === void 0 ? void 0 : onSwitchToggle(newSwitchStatus);
15
- }, [onSwitchToggle]);
16
- return /*#__PURE__*/React.createElement(React.Fragment, null, errorMessage ? /*#__PURE__*/React.createElement(View, {
17
- style: [styles.errorInfoSection]
18
- }, /*#__PURE__*/React.createElement(Text, {
19
- style: styles.ribbonMessage,
20
- numberOfLines: 1
21
- }, errorMessage)) : null, isRestartRequired ? /*#__PURE__*/React.createElement(TouchableOpacity, {
22
- style: [styles.restartInfoSection],
23
- onPress: () => {
24
- restart === null || restart === void 0 ? void 0 : restart();
25
- }
26
- }, /*#__PURE__*/React.createElement(Text, {
27
- style: styles.ribbonMessage,
28
- numberOfLines: 1
29
- }, RESTART_REQUIRED_MESSAGE)) : null, /*#__PURE__*/React.createElement(View, {
30
- style: [styles.footerContainer, styles.shadowContainer]
31
- }, /*#__PURE__*/React.createElement(View, {
32
- style: styles.switchContainer
33
- }, /*#__PURE__*/React.createElement(TouchableOpacity, {
34
- onPress: () => handleToggle(true),
35
- style: [styles.tabContainer, switchIsOn ? styles.tabSelected : {}]
36
- }, /*#__PURE__*/React.createElement(Text, {
37
- style: [styles.titleBasic, switchIsOn ? styles.titleSelected : {}]
38
- }, SWITCH_TEXTS.ON), switchIsOn ? /*#__PURE__*/React.createElement(Text, {
39
- style: [styles.subTitleBasic, switchIsOn ? styles.subTitleSelected : {}]
40
- }, FOOTER_SUB_TEXTS.STAGE) : null), /*#__PURE__*/React.createElement(TouchableOpacity, {
41
- onPress: () => handleToggle(false),
42
- style: [styles.tabContainer, !switchIsOn ? styles.tabSelected : {}]
43
- }, /*#__PURE__*/React.createElement(Text, {
44
- style: [styles.titleBasic, !switchIsOn ? styles.titleSelected : {}]
45
- }, SWITCH_TEXTS.OFF), !switchIsOn ? /*#__PURE__*/React.createElement(Text, {
46
- style: [styles.subTitleBasic, !switchIsOn ? styles.subTitleSelected : {}]
47
- }, FOOTER_SUB_TEXTS.PROD) : null))));
48
- };
49
- export default /*#__PURE__*/memo(Footer);
50
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","useCallback","memo","View","Text","TouchableOpacity","SWITCH_TEXTS","RESTART_REQUIRED_MESSAGE","FOOTER_SUB_TEXTS","styles","restart","Footer","_ref","switchIsOn","onSwitchToggle","errorMessage","isRestartRequired","handleToggle","newSwitchStatus","createElement","Fragment","style","errorInfoSection","ribbonMessage","numberOfLines","restartInfoSection","onPress","footerContainer","shadowContainer","switchContainer","tabContainer","tabSelected","titleBasic","titleSelected","ON","subTitleBasic","subTitleSelected","STAGE","OFF","PROD"],"sourceRoot":"../../../../../../src","sources":["main/components/common/Footer/index.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,IAAI,QAAQ,OAAO;AAChD,SAASC,IAAI,EAAEC,IAAI,EAAEC,gBAAgB,QAAQ,cAAc;AAE3D,SACEC,YAAY,EACZC,wBAAwB,EACxBC,gBAAgB,QACX,iCAAiC;AAExC,OAAOC,MAAM,MAAM,UAAU;AAC7B,SAASC,OAAO,QAAQ,oCAAoC;AAS5D,MAAMC,MAAyB,GAAGC,IAAA,IAK5B;EAAA,IAL6B;IACjCC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D_MARGIN } from '../../../constants/appConstants';
3
- import { COLORS } from '../../../constants/colors';
4
- const styles = StyleSheet.create({
5
- shadowContainer: {
6
- elevation: 5,
7
- zIndex: 5,
8
- shadowOpacity: 0.1,
9
- shadowOffset: {
10
- height: -20,
11
- width: 0
12
- },
13
- shadowRadius: 10
14
- },
15
- noDownloadContainer: {
16
- justifyContent: 'center',
17
- alignItems: 'center',
18
- width: '100%',
19
- paddingHorizontal: STD_MARGIN,
20
- paddingVertical: STD_MARGIN / 2
21
- },
22
- errorInfoSection: {
23
- height: STD_MARGIN * 2.5,
24
- backgroundColor: COLORS.error,
25
- alignItems: 'center',
26
- justifyContent: 'center'
27
- },
28
- restartInfoSection: {
29
- height: STD_MARGIN * 3.5,
30
- backgroundColor: COLORS.indigo,
31
- alignItems: 'center',
32
- justifyContent: 'center'
33
- },
34
- ribbonMessage: {
35
- fontSize: STD_MARGIN * 1.2,
36
- color: COLORS.white,
37
- marginHorizontal: STD_MARGIN / 2,
38
- fontWeight: 'bold'
39
- },
40
- footerContainer: {
41
- paddingHorizontal: STD_MARGIN,
42
- paddingVertical: STD_MARGIN / 2,
43
- flexDirection: 'row',
44
- justifyContent: 'center',
45
- alignItems: 'center',
46
- backgroundColor: COLORS.white
47
- },
48
- switchContainer: {
49
- borderWidth: 0.5,
50
- borderColor: COLORS.black5,
51
- padding: STD_MARGIN / 2,
52
- flexDirection: 'row',
53
- justifyContent: 'center',
54
- alignItems: 'center',
55
- borderRadius: STD_MARGIN
56
- },
57
- tabContainer: {
58
- flex: 1,
59
- flexDirection: 'column',
60
- justifyContent: 'center',
61
- alignContent: 'center',
62
- padding: STD_MARGIN,
63
- borderRadius: STD_MARGIN,
64
- opacity: 0.5
65
- },
66
- tabSelected: {
67
- backgroundColor: COLORS.black,
68
- opacity: 1
69
- },
70
- titleSelected: {
71
- color: COLORS.white
72
- },
73
- subTitleSelected: {
74
- color: COLORS.white7
75
- },
76
- titleBasic: {
77
- textAlign: 'center',
78
- fontSize: STD_MARGIN * 1.5,
79
- color: COLORS.black,
80
- fontWeight: 'bold'
81
- },
82
- subTitleBasic: {
83
- textAlign: 'center',
84
- fontSize: STD_MARGIN * 1.1,
85
- marginTop: STD_MARGIN / 4,
86
- color: COLORS.black7,
87
- fontWeight: 'bold'
88
- }
89
- });
90
- export default styles;
91
- //# sourceMappingURL=styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["StyleSheet","STD_MARGIN","COLORS","styles","create","shadowContainer","elevation","zIndex","shadowOpacity","shadowOffset","height","width","shadowRadius","noDownloadContainer","justifyContent","alignItems","paddingHorizontal","paddingVertical","errorInfoSection","backgroundColor","error","restartInfoSection","indigo","ribbonMessage","fontSize","color","white","marginHorizontal","fontWeight","footerContainer","flexDirection","switchContainer","borderWidth","borderColor","black5","padding","borderRadius","tabContainer","flex","alignContent","opacity","tabSelected","black","titleSelected","subTitleSelected","white7","titleBasic","textAlign","subTitleBasic","marginTop","black7"],"sourceRoot":"../../../../../../src","sources":["main/components/common/Footer/styles.ts"],"mappings":"AAAA,SAASA,UAAU,QAAQ,cAAc;AAEzC,SAASC,UAAU,QAAQ,iCAAiC;AAC5D,SAASC,MAAM,QAAQ,2BAA2B;AAElD,MAAMC,MAAM,GAAGH,UAAU,CAACI,MAAM,CAAC;EAC/BC,eAAe,EAAE;IACfC,SAAS,EAAE,CAAC;IACZC,MAAM,EAAE,CAAC;IACTC,aAAa,EAAE,GAAG;IAClBC,YAAY,EAAE;MAAEC,MAAM,EAAE,CAAC,EAAE;MAAEC,KAAK,EAAE;IAAE,CAAC;IACvCC,YAAY,EAAE;EAChB,CAAC;EACDC,mBAAmB,EAAE;IACnBC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE,QAAQ;IACpBJ,KAAK,EAAE,MAAM;IACbK,iBAAiB,EAAEf,UAAU;IAC7BgB,eAAe,EAAEhB,UAAU,GAAG;EAChC,CAAC;EACDiB,gBAAgB,EAAE;IAChBR,MAAM,EAAET,UAAU,GAAG,GAAG;IAC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,CAACwB;EAChB,CAAC;EACDkB,gBAAgB,EAAE;IAChBnB,KAAK,EAAEvB,MAAM,CAAC2C;EAChB,CAAC;EACDC,UAAU,EAAE;IACVC,SAAS,EAAE,QAAQ;IACnBvB,QAAQ,EAAEvB,UAAU,GAAG,GAAG;IAC1BwB,KAAK,EAAEvB,MAAM,CAACwC,KAAK;IACnBd,UAAU,EAAE;EACd,CAAC;EACDoB,aAAa,EAAE;IACbD,SAAS,EAAE,QAAQ;IACnBvB,QAAQ,EAAEvB,UAAU,GAAG,GAAG;IAC1BgD,SAAS,EAAEhD,UAAU,GAAG,CAAC;IACzBwB,KAAK,EAAEvB,MAAM,CAACgD,MAAM;IACpBtB,UAAU,EAAE;EACd;AACF,CAAC,CAAC;AAEF,eAAezB,MAAM"}
@@ -1,11 +0,0 @@
1
- import React, { memo } from 'react';
2
- import { View } from 'react-native';
3
- import Spinner from '../Spinner';
4
- import styles from './styles';
5
- const FooterLoader = () => {
6
- return /*#__PURE__*/React.createElement(View, {
7
- style: styles.loaderContainer
8
- }, /*#__PURE__*/React.createElement(Spinner, null));
9
- };
10
- export default /*#__PURE__*/memo(FooterLoader);
11
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","memo","View","Spinner","styles","FooterLoader","createElement","style","loaderContainer"],"sourceRoot":"../../../../../../src","sources":["main/components/common/FooterLoader/index.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,IAAI,QAAQ,OAAO;AACnC,SAASC,IAAI,QAAQ,cAAc;AAEnC,OAAOC,OAAO,MAAM,YAAY;AAEhC,OAAOC,MAAM,MAAM,UAAU;AAE7B,MAAMC,YAAY,GAAGA,CAAA,KAAM;EACzB,oBACEL,KAAA,CAAAM,aAAA,CAACJ,IAAI;IAACK,KAAK,EAAEH,MAAM,CAACI;EAAgB,gBAClCR,KAAA,CAAAM,aAAA,CAACH,OAAO,MAAE,CACN,CAAC;AAEX,CAAC;AAED,4BAAeF,IAAI,CAACI,YAAY,CAAC"}
@@ -1,12 +0,0 @@
1
- import { StyleSheet } from 'react-native';
2
- import { STD_MARGIN } from '../../../constants/appConstants';
3
- const styles = StyleSheet.create({
4
- loaderContainer: {
5
- width: '100%',
6
- paddingVertical: STD_MARGIN * 2,
7
- justifyContent: 'center',
8
- alignItems: 'center'
9
- }
10
- });
11
- export default styles;
12
- //# sourceMappingURL=styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["StyleSheet","STD_MARGIN","styles","create","loaderContainer","width","paddingVertical","justifyContent","alignItems"],"sourceRoot":"../../../../../../src","sources":["main/components/common/FooterLoader/styles.ts"],"mappings":"AAAA,SAASA,UAAU,QAAQ,cAAc;AAEzC,SAASC,UAAU,QAAQ,iCAAiC;AAE5D,MAAMC,MAAM,GAAGF,UAAU,CAACG,MAAM,CAAC;EAC/BC,eAAe,EAAE;IACfC,KAAK,EAAE,MAAM;IACbC,eAAe,EAAEL,UAAU,GAAG,CAAC;IAC/BM,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd;AACF,CAAC,CAAC;AAEF,eAAeN,MAAM"}
@@ -1,26 +0,0 @@
1
- import React, { memo } from 'react';
2
- import { View, Text, ActivityIndicator } from 'react-native';
3
- import { COLORS } from '../../../constants/colors';
4
- import { DOWNLOADING_TEXT } from '../../../constants/appConstants';
5
- import styles from './styles';
6
- const OverlayLoader = _ref => {
7
- let {
8
- currentDownloadFraction
9
- } = _ref;
10
- return /*#__PURE__*/React.createElement(View, {
11
- style: styles.loaderContainer
12
- }, currentDownloadFraction > 0 ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Text, {
13
- style: styles.downloadingText
14
- }, DOWNLOADING_TEXT), /*#__PURE__*/React.createElement(View, {
15
- style: styles.progressOuter
16
- }, /*#__PURE__*/React.createElement(View, {
17
- style: [styles.progressInner, {
18
- width: `${currentDownloadFraction * 100}%`
19
- }]
20
- }))) : /*#__PURE__*/React.createElement(ActivityIndicator, {
21
- color: COLORS.indigo,
22
- size: 'large'
23
- }));
24
- };
25
- export default /*#__PURE__*/memo(OverlayLoader);
26
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","memo","View","Text","ActivityIndicator","COLORS","DOWNLOADING_TEXT","styles","OverlayLoader","_ref","currentDownloadFraction","createElement","style","loaderContainer","Fragment","downloadingText","progressOuter","progressInner","width","color","indigo","size"],"sourceRoot":"../../../../../../src","sources":["main/components/common/OverlayLoader/index.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,IAAI,QAAQ,OAAO;AACnC,SAASC,IAAI,EAAEC,IAAI,EAAEC,iBAAiB,QAAQ,cAAc;AAE5D,SAASC,MAAM,QAAQ,2BAA2B;AAClD,SAASC,gBAAgB,QAAQ,iCAAiC;AAElE,OAAOC,MAAM,MAAM,UAAU;AAM7B,MAAMC,aAAuC,GAAGC,IAAA,IAE1C;EAAA,IAF2C;IAC/CC;EACF,CAAC,GAAAD,IAAA;EACC,oBACET,KAAA,CAAAW,aAAA,CAACT,IAAI;IAACU,KAAK,EAAEL,MAAM,CAACM;EAAgB,GACjCH,uBAAuB,GAAG,CAAC,gBAC1BV,KAAA,CAAAW,aAAA,CAAAX,KAAA,CAAAc,QAAA,qBACEd,KAAA,CAAAW,aAAA,CAACR,IAAI;IAACS,KAAK,EAAEL,MAAM,CAACQ;EAAgB,GAAET,gBAAuB,CAAC,eAC9DN,KAAA,CAAAW,aAAA,CAACT,IAAI;IAACU,KAAK,EAAEL,MAAM,CAACS;EAAc,gBAChChB,KAAA,CAAAW,aAAA,CAACT,IAAI;IACHU,KAAK,EAAE,CACLL,MAAM,CAACU,aAAa,EACpB;MACEC,KAAK,EAAG,GAAER,uBAAuB,GAAG,GAAI;IAC1C,CAAC;EACD,CACH,CACG,CACN,CAAC,gBAEHV,KAAA,CAAAW,aAAA,CAACP,iBAAiB;IAACe,KAAK,EAAEd,MAAM,CAACe,MAAO;IAACC,IAAI,EAAE;EAAQ,CAAE,CAEvD,CAAC;AAEX,CAAC;AAED,4BAAepB,IAAI,CAACO,aAAa,CAAC"}
@@ -1,33 +0,0 @@
1
- import { StyleSheet } from 'react-native';
2
- import { STD_MARGIN } from '../../../constants/appConstants';
3
- import { COLORS } from '../../../constants/colors';
4
- const styles = StyleSheet.create({
5
- loaderContainer: {
6
- position: 'absolute',
7
- height: '100%',
8
- width: '100%',
9
- backgroundColor: COLORS.black5,
10
- justifyContent: 'center',
11
- alignItems: 'center'
12
- },
13
- progressOuter: {
14
- width: '80%',
15
- height: STD_MARGIN,
16
- borderRadius: STD_MARGIN / 2,
17
- backgroundColor: COLORS.black5,
18
- justifyContent: 'flex-start',
19
- flexDirection: 'row',
20
- margin: STD_MARGIN
21
- },
22
- progressInner: {
23
- height: STD_MARGIN,
24
- borderRadius: STD_MARGIN / 2,
25
- backgroundColor: COLORS.indigo
26
- },
27
- downloadingText: {
28
- color: COLORS.white,
29
- fontSize: STD_MARGIN * 2
30
- }
31
- });
32
- export default styles;
33
- //# sourceMappingURL=styles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["StyleSheet","STD_MARGIN","COLORS","styles","create","loaderContainer","position","height","width","backgroundColor","black5","justifyContent","alignItems","progressOuter","borderRadius","flexDirection","margin","progressInner","indigo","downloadingText","color","white","fontSize"],"sourceRoot":"../../../../../../src","sources":["main/components/common/OverlayLoader/styles.ts"],"mappings":"AAAA,SAASA,UAAU,QAAQ,cAAc;AAEzC,SAASC,UAAU,QAAQ,iCAAiC;AAC5D,SAASC,MAAM,QAAQ,2BAA2B;AAElD,MAAMC,MAAM,GAAGH,UAAU,CAACI,MAAM,CAAC;EAC/BC,eAAe,EAAE;IACfC,QAAQ,EAAE,UAAU;IACpBC,MAAM,EAAE,MAAM;IACdC,KAAK,EAAE,MAAM;IACbC,eAAe,EAAEP,MAAM,CAACQ,MAAM;IAC9BC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd,CAAC;EACDC,aAAa,EAAE;IACbL,KAAK,EAAE,KAAK;IACZD,MAAM,EAAEN,UAAU;IAClBa,YAAY,EAAEb,UAAU,GAAG,CAAC;IAC5BQ,eAAe,EAAEP,MAAM,CAACQ,MAAM;IAC9BC,cAAc,EAAE,YAAY;IAC5BI,aAAa,EAAE,KAAK;IACpBC,MAAM,EAAEf;EACV,CAAC;EACDgB,aAAa,EAAE;IACbV,MAAM,EAAEN,UAAU;IAClBa,YAAY,EAAEb,UAAU,GAAG,CAAC;IAC5BQ,eAAe,EAAEP,MAAM,CAACgB;EAC1B,CAAC;EACDC,eAAe,EAAE;IACfC,KAAK,EAAElB,MAAM,CAACmB,KAAK;IACnBC,QAAQ,EAAErB,UAAU,GAAG;EACzB;AACF,CAAC,CAAC;AAEF,eAAeE,MAAM"}
@@ -1,33 +0,0 @@
1
- import React, { memo, useContext, useMemo } from 'react';
2
- import { View, TouchableOpacity } from 'react-native';
3
- import { GlobalContext } from '../../../../state';
4
- import BucketCardInfoSection from './BucketCardInfoSection';
5
- import styles from './styles';
6
- import { SWITCH_STATES } from '../../../../../types/meta.types';
7
- const BucketCard = _ref => {
8
- let {
9
- name,
10
- updatedAt,
11
- bundleCount,
12
- handlePress
13
- } = _ref;
14
- const {
15
- metaState
16
- } = useContext(GlobalContext);
17
- const isApplied = useMemo(() => false, []);
18
- return /*#__PURE__*/React.createElement(TouchableOpacity, {
19
- style: styles.cardContainer,
20
- onPress: handlePress,
21
- activeOpacity: 0.5
22
- }, /*#__PURE__*/React.createElement(View, {
23
- style: styles.infoSection
24
- }, /*#__PURE__*/React.createElement(BucketCardInfoSection, {
25
- name: name,
26
- updatedAt: updatedAt,
27
- bundleCount: bundleCount === null || bundleCount === void 0 ? void 0 : bundleCount.toString(),
28
- isApplied: isApplied,
29
- switchState: (metaState === null || metaState === void 0 ? void 0 : metaState.switchState) === SWITCH_STATES.STAGE
30
- })));
31
- };
32
- export default /*#__PURE__*/memo(BucketCard);
33
- //# sourceMappingURL=BucketCard.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","memo","useContext","useMemo","View","TouchableOpacity","GlobalContext","BucketCardInfoSection","styles","SWITCH_STATES","BucketCard","_ref","name","updatedAt","bundleCount","handlePress","metaState","isApplied","createElement","style","cardContainer","onPress","activeOpacity","infoSection","toString","switchState","STAGE"],"sourceRoot":"../../../../../../../src","sources":["main/components/modules/listing/components/BucketCard.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,UAAU,EAAEC,OAAO,QAAQ,OAAO;AACxD,SAASC,IAAI,EAAEC,gBAAgB,QAAQ,cAAc;AAErD,SAASC,aAAa,QAAQ,mBAAmB;AACjD,OAAOC,qBAAqB,MAAM,yBAAyB;AAG3D,OAAOC,MAAM,MAAM,UAAU;AAC7B,SAASC,aAAa,QAAQ,iCAAiC;AAW/D,MAAMC,UAAiC,GAAGC,IAAA,IAKpC;EAAA,IALqC;IACzCC,IAAI;IACJC,SAAS;IACTC,WAAW;IACXC;EACF,CAAC,GAAAJ,IAAA;EACC,MAAM;IAAEK;EAAU,CAAC,GAAGd,UAAU,CAACI,aAAa,CAAC;EAC/C,MAAMW,SAAS,GAAGd,OAAO,CAAU,MAAM,KAAK,EAAE,EAAE,CAAC;EACnD,oBACEH,KAAA,CAAAkB,aAAA,CAACb,gBAAgB;IACfc,KAAK,EAAEX,MAAM,CAACY,aAAc;IAC5BC,OAAO,EAAEN,WAAY;IACrBO,aAAa,EAAE;EAAI,gBAEnBtB,KAAA,CAAAkB,aAAA,CAACd,IAAI;IAACe,KAAK,EAAEX,MAAM,CAACe;EAAY,gBAC9BvB,KAAA,CAAAkB,aAAA,CAACX,qBAAqB;IACpBK,IAAI,EAAEA,IAAK;IACXC,SAAS,EAAEA,SAAU;IACrBC,WAAW,EAAEA,WAAW,aAAXA,WAAW,uBAAXA,WAAW,CAAEU,QAAQ,CAAC,CAAE;IACrCP,SAAS,EAAEA,SAAU;IACrBQ,WAAW,EAAE,CAAAT,SAAS,aAATA,SAAS,uBAATA,SAAS,CAAES,WAAW,MAAKhB,aAAa,CAACiB;EAAM,CAC7D,CACG,CACU,CAAC;AAEvB,CAAC;AAED,4BAAezB,IAAI,CAACS,UAAU,CAAC"}
@@ -1,56 +0,0 @@
1
- import React, { useMemo } from 'react';
2
- import { Text, View } from 'react-native';
3
- import CardDescriptionContent from './CardDescriptionContent';
4
- import { parseDateTime } from '../../../../utils/dateUtil';
5
- import { COLORS } from '../../../../constants/colors';
6
- import { BUCKET_CARD_TEXTS, NOT_APPLICABLE_TEXT, VERSION_PREFIX } from '../../../../constants/appConstants';
7
- import styles from './styles';
8
- const BucketCardInfoSection = _ref => {
9
- let {
10
- name,
11
- updatedAt,
12
- bundleCount,
13
- isApplied,
14
- switchState
15
- } = _ref;
16
- const renderStateText = useMemo(() => {
17
- if (isApplied && !switchState) return {
18
- text: BUCKET_CARD_TEXTS.DOWNLOADED,
19
- color: COLORS.orange
20
- };
21
- if (isApplied && switchState) return {
22
- text: BUCKET_CARD_TEXTS.APPLIED,
23
- color: COLORS.green
24
- };
25
- return null;
26
- }, [isApplied, switchState]);
27
- const updatedAtText = useMemo(() => {
28
- return parseDateTime(updatedAt);
29
- }, [updatedAt]);
30
- return /*#__PURE__*/React.createElement(View, {
31
- style: styles.container
32
- }, /*#__PURE__*/React.createElement(View, {
33
- style: styles.rowContainer
34
- }, /*#__PURE__*/React.createElement(Text, {
35
- style: [styles.titleText, styles.bold]
36
- }, name), /*#__PURE__*/React.createElement(Text, {
37
- style: [styles.appliedText, {
38
- color: renderStateText === null || renderStateText === void 0 ? void 0 : renderStateText.color
39
- }]
40
- }, renderStateText === null || renderStateText === void 0 ? void 0 : renderStateText.text)), /*#__PURE__*/React.createElement(View, {
41
- style: styles.divider
42
- }), /*#__PURE__*/React.createElement(View, {
43
- style: styles.rowContainer
44
- }, /*#__PURE__*/React.createElement(CardDescriptionContent, {
45
- title: BUCKET_CARD_TEXTS.VERSION,
46
- subtitle: bundleCount && +bundleCount ? `${VERSION_PREFIX}${bundleCount}` : NOT_APPLICABLE_TEXT
47
- }), /*#__PURE__*/React.createElement(CardDescriptionContent, {
48
- title: BUCKET_CARD_TEXTS.BUNDLES,
49
- subtitle: bundleCount && +bundleCount ? bundleCount : 0
50
- }), /*#__PURE__*/React.createElement(CardDescriptionContent, {
51
- title: BUCKET_CARD_TEXTS.UPDATED,
52
- subtitle: updatedAtText
53
- })));
54
- };
55
- export default BucketCardInfoSection;
56
- //# sourceMappingURL=BucketCardInfoSection.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","useMemo","Text","View","CardDescriptionContent","parseDateTime","COLORS","BUCKET_CARD_TEXTS","NOT_APPLICABLE_TEXT","VERSION_PREFIX","styles","BucketCardInfoSection","_ref","name","updatedAt","bundleCount","isApplied","switchState","renderStateText","text","DOWNLOADED","color","orange","APPLIED","green","updatedAtText","createElement","style","container","rowContainer","titleText","bold","appliedText","divider","title","VERSION","subtitle","BUNDLES","UPDATED"],"sourceRoot":"../../../../../../../src","sources":["main/components/modules/listing/components/BucketCardInfoSection.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AACtC,SAASC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAEzC,OAAOC,sBAAsB,MAAM,0BAA0B;AAC7D,SAASC,aAAa,QAAQ,4BAA4B;AAE1D,SAASC,MAAM,QAAQ,8BAA8B;AACrD,SACEC,iBAAiB,EACjBC,mBAAmB,EACnBC,cAAc,QACT,oCAAoC;AAE3C,OAAOC,MAAM,MAAM,UAAU;AAU7B,MAAMC,qBAAuD,GAAGC,IAAA,IAM1D;EAAA,IAN2D;IAC/DC,IAAI;IACJC,SAAS;IACTC,WAAW;IACXC,SAAS;IACTC;EACF,CAAC,GAAAL,IAAA;EACC,MAAMM,eAAe,GAAGjB,OAAO,CAAC,MAAM;IACpC,IAAIe,SAAS,IAAI,CAACC,WAAW,EAC3B,OAAO;MAAEE,IAAI,EAAEZ,iBAAiB,CAACa,UAAU;MAAEC,KAAK,EAAEf,MAAM,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,GAAEN,cAAe,GAAEM,WAAY,EAAC,GACjCP;EACL,CACF,CAAC,eACFR,KAAA,CAAA0B,aAAA,CAACtB,sBAAsB;IACrB8B,KAAK,EAAE3B,iBAAiB,CAAC8B,OAAQ;IACjCD,QAAQ,EAAErB,WAAW,IAAI,CAACA,WAAW,GAAGA,WAAW,GAAG;EAAE,CACzD,CAAC,eACFf,KAAA,CAAA0B,aAAA,CAACtB,sBAAsB;IACrB8B,KAAK,EAAE3B,iBAAiB,CAAC+B,OAAQ;IACjCF,QAAQ,EAAEX;EAAc,CACzB,CACG,CACF,CAAC;AAEX,CAAC;AAED,eAAed,qBAAqB"}
@@ -1,42 +0,0 @@
1
- import React, { useContext, useMemo, memo } from 'react';
2
- import { View } from 'react-native';
3
- import BundleCardInfoSection from './BundleCardInfoSection';
4
- import styles from './styles';
5
- import { GlobalContext } from '../../../../state';
6
- const BundleCard = _ref => {
7
- let {
8
- id,
9
- version,
10
- name,
11
- description,
12
- updatedAt,
13
- author,
14
- downloadUrl
15
- } = _ref;
16
- const {
17
- metaState
18
- } = useContext(GlobalContext);
19
- const isApplied = useMemo(() => {
20
- return metaState.stageSlot.newHash === id;
21
- }, [metaState.stageSlot.newHash, id]);
22
- const isDownloaded = useMemo(() => {
23
- return metaState.stageSlot.tempHash === id;
24
- }, [metaState.stageSlot.tempHash, id]);
25
- return /*#__PURE__*/React.createElement(View, {
26
- style: styles.cardContainer
27
- }, /*#__PURE__*/React.createElement(View, {
28
- style: styles.infoSection
29
- }, /*#__PURE__*/React.createElement(BundleCardInfoSection, {
30
- name: name,
31
- id: id,
32
- version: version,
33
- description: description,
34
- author: author,
35
- updatedAt: updatedAt,
36
- isApplied: isApplied,
37
- isDownloaded: isDownloaded,
38
- downloadUrl: downloadUrl
39
- })));
40
- };
41
- export default /*#__PURE__*/memo(BundleCard);
42
- //# sourceMappingURL=BundleCard.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","useContext","useMemo","memo","View","BundleCardInfoSection","styles","GlobalContext","BundleCard","_ref","id","version","name","description","updatedAt","author","downloadUrl","metaState","isApplied","stageSlot","newHash","isDownloaded","tempHash","createElement","style","cardContainer","infoSection"],"sourceRoot":"../../../../../../../src","sources":["main/components/modules/listing/components/BundleCard.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,UAAU,EAAEC,OAAO,EAAEC,IAAI,QAAQ,OAAO;AACxD,SAASC,IAAI,QAAQ,cAAc;AAEnC,OAAOC,qBAAqB,MAAM,yBAAyB;AAE3D,OAAOC,MAAM,MAAM,UAAU;AAE7B,SAASC,aAAa,QAAQ,mBAAmB;AAajD,MAAMC,UAAiC,GAAGC,IAAA,IAQpC;EAAA,IARqC;IACzCC,EAAE;IACFC,OAAO;IACPC,IAAI;IACJC,WAAW;IACXC,SAAS;IACTC,MAAM;IACNC;EACF,CAAC,GAAAP,IAAA;EACC,MAAM;IAAEQ;EAAU,CAAC,GAAGhB,UAAU,CAACM,aAAa,CAAC;EAC/C,MAAMW,SAAS,GAAGhB,OAAO,CAAU,MAAM;IACvC,OAAOe,SAAS,CAACE,SAAS,CAACC,OAAO,KAAKV,EAAE;EAC3C,CAAC,EAAE,CAACO,SAAS,CAACE,SAAS,CAACC,OAAO,EAAEV,EAAE,CAAC,CAAC;EACrC,MAAMW,YAAY,GAAGnB,OAAO,CAAU,MAAM;IAC1C,OAAOe,SAAS,CAACE,SAAS,CAACG,QAAQ,KAAKZ,EAAE;EAC5C,CAAC,EAAE,CAACO,SAAS,CAACE,SAAS,CAACG,QAAQ,EAAEZ,EAAE,CAAC,CAAC;EACtC,oBACEV,KAAA,CAAAuB,aAAA,CAACnB,IAAI;IAACoB,KAAK,EAAElB,MAAM,CAACmB;EAAc,gBAChCzB,KAAA,CAAAuB,aAAA,CAACnB,IAAI;IAACoB,KAAK,EAAElB,MAAM,CAACoB;EAAY,gBAC9B1B,KAAA,CAAAuB,aAAA,CAAClB,qBAAqB;IACpBO,IAAI,EAAEA,IAAK;IACXF,EAAE,EAAEA,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