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,92 @@
1
+ import React, { memo, useCallback } from 'react';
2
+ import { Text, View } from 'react-native';
3
+ import ActionButton from './ActionButton';
4
+ import Chip from './Chip';
5
+ import ReleaseNote from './ReleaseNote';
6
+ import { BUNDLE_META_STATES, BUNDLE_VERSION_PREFIX, CHIP_TEXTS, DOWNLOAD_BUTTON_TEXT, META_SEPARATOR, RESTART_BUTTON_TEXT } from '../../../../constants/appConstants';
7
+ import { BUNDLE_STATUS } from '../../../../../types/bundle.types';
8
+ import { parseDateTime } from '../../../../utils/dateUtil';
9
+ import { getDigitalStorageSize } from '../../../../utils/getSize';
10
+ import styles from './styles';
11
+ const META_STATE_BY_STATUS = {
12
+ [BUNDLE_STATUS.AVAILABLE]: BUNDLE_META_STATES.NOT_APPLIED,
13
+ [BUNDLE_STATUS.DOWNLOADING]: BUNDLE_META_STATES.NOT_APPLIED,
14
+ [BUNDLE_STATUS.DOWNLOADED]: BUNDLE_META_STATES.APPLIES_ON_RESTART,
15
+ [BUNDLE_STATUS.ACTIVE]: BUNDLE_META_STATES.APPLIED
16
+ };
17
+ const getChip = (status, isLatest) => {
18
+ if (status === BUNDLE_STATUS.DOWNLOADED) return {
19
+ label: CHIP_TEXTS.DOWNLOADED,
20
+ tone: 'green'
21
+ };
22
+ if (status === BUNDLE_STATUS.ACTIVE) return {
23
+ label: CHIP_TEXTS.APPLIED,
24
+ tone: 'indigo'
25
+ };
26
+ if (isLatest) return {
27
+ label: CHIP_TEXTS.LATEST,
28
+ tone: 'indigo'
29
+ };
30
+ return null;
31
+ };
32
+ const BundleHistoryCard = _ref => {
33
+ let {
34
+ id,
35
+ version,
36
+ releaseNote,
37
+ author,
38
+ updatedAt,
39
+ size,
40
+ isLatest,
41
+ status,
42
+ progress,
43
+ expanded,
44
+ onToggleExpand,
45
+ onDownload,
46
+ onRestart
47
+ } = _ref;
48
+ const handleToggleExpand = useCallback(() => onToggleExpand(id), [onToggleExpand, id]);
49
+ const handleDownload = useCallback(() => onDownload(id), [onDownload, id]);
50
+ const chip = getChip(status, isLatest);
51
+ // Applied keeps the indigo border; downloaded-pending keeps green. Latest
52
+ // is badge-only — no border highlight.
53
+ const isIndigo = status === BUNDLE_STATUS.ACTIVE;
54
+ const isGreen = status === BUNDLE_STATUS.DOWNLOADED;
55
+ const meta = [author, parseDateTime(updatedAt), size ? getDigitalStorageSize(size) : null, META_STATE_BY_STATUS[status]].filter(Boolean).join(META_SEPARATOR);
56
+ return /*#__PURE__*/React.createElement(View, {
57
+ style: [styles.card, isIndigo && styles.cardHighlightIndigo, isGreen && styles.cardHighlightGreen]
58
+ }, /*#__PURE__*/React.createElement(View, {
59
+ style: styles.cardTopRow
60
+ }, /*#__PURE__*/React.createElement(View, {
61
+ style: styles.cardTitleRow
62
+ }, /*#__PURE__*/React.createElement(Text, {
63
+ style: styles.cardTitle
64
+ }, `${BUNDLE_VERSION_PREFIX}${version}`), chip ? /*#__PURE__*/React.createElement(Chip, {
65
+ label: chip.label,
66
+ tone: chip.tone
67
+ }) : null), status === BUNDLE_STATUS.DOWNLOADED ? /*#__PURE__*/React.createElement(ActionButton, {
68
+ label: RESTART_BUTTON_TEXT,
69
+ variant: "success",
70
+ onPress: onRestart
71
+ }) : status === BUNDLE_STATUS.DOWNLOADING ? /*#__PURE__*/React.createElement(ActionButton, {
72
+ label: `${Math.round((progress || 0) * 100)}%`
73
+ // The outline track is what the fill reads against.
74
+ ,
75
+ variant: "outline",
76
+ disabled: true,
77
+ progress: progress || 0,
78
+ style: styles.buttonProgress
79
+ }) : status === BUNDLE_STATUS.AVAILABLE ? /*#__PURE__*/React.createElement(ActionButton, {
80
+ label: DOWNLOAD_BUTTON_TEXT,
81
+ variant: "outline",
82
+ onPress: handleDownload
83
+ }) : null), releaseNote ? /*#__PURE__*/React.createElement(ReleaseNote, {
84
+ text: releaseNote,
85
+ expanded: expanded,
86
+ onToggleExpand: handleToggleExpand
87
+ }) : null, /*#__PURE__*/React.createElement(Text, {
88
+ style: styles.cardMeta
89
+ }, meta));
90
+ };
91
+ export default /*#__PURE__*/memo(BundleHistoryCard);
92
+ //# sourceMappingURL=BundleHistoryCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","memo","useCallback","Text","View","ActionButton","Chip","ReleaseNote","BUNDLE_META_STATES","BUNDLE_VERSION_PREFIX","CHIP_TEXTS","DOWNLOAD_BUTTON_TEXT","META_SEPARATOR","RESTART_BUTTON_TEXT","BUNDLE_STATUS","parseDateTime","getDigitalStorageSize","styles","META_STATE_BY_STATUS","AVAILABLE","NOT_APPLIED","DOWNLOADING","DOWNLOADED","APPLIES_ON_RESTART","ACTIVE","APPLIED","getChip","status","isLatest","label","tone","LATEST","BundleHistoryCard","_ref","id","version","releaseNote","author","updatedAt","size","progress","expanded","onToggleExpand","onDownload","onRestart","handleToggleExpand","handleDownload","chip","isIndigo","isGreen","meta","filter","Boolean","join","createElement","style","card","cardHighlightIndigo","cardHighlightGreen","cardTopRow","cardTitleRow","cardTitle","variant","onPress","Math","round","disabled","buttonProgress","text","cardMeta"],"sourceRoot":"../../../../../../../src","sources":["main/components/modules/devMenu/components/BundleHistoryCard.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,WAAW,QAAQ,OAAO;AAChD,SAASC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAEzC,OAAOC,YAAY,MAAM,gBAAgB;AACzC,OAAOC,IAAI,MAAqB,QAAQ;AACxC,OAAOC,WAAW,MAAM,eAAe;AAEvC,SACEC,kBAAkB,EAClBC,qBAAqB,EACrBC,UAAU,EACVC,oBAAoB,EACpBC,cAAc,EACdC,mBAAmB,QACd,oCAAoC;AAC3C,SAASC,aAAa,QAAQ,mCAAmC;AACjE,SAASC,aAAa,QAAQ,4BAA4B;AAC1D,SAASC,qBAAqB,QAAQ,2BAA2B;AAEjE,OAAOC,MAAM,MAAM,UAAU;AAoB7B,MAAMC,oBAA+D,GAAG;EACtE,CAACJ,aAAa,CAACK,SAAS,GAAGX,kBAAkB,CAACY,WAAW;EACzD,CAACN,aAAa,CAACO,WAAW,GAAGb,kBAAkB,CAACY,WAAW;EAC3D,CAACN,aAAa,CAACQ,UAAU,GAAGd,kBAAkB,CAACe,kBAAkB;EACjE,CAACT,aAAa,CAACU,MAAM,GAAGhB,kBAAkB,CAACiB;AAC7C,CAAC;AAED,MAAMC,OAAO,GAAGA,CACdC,MAAqB,EACrBC,QAAiB,KAC6B;EAC9C,IAAID,MAAM,KAAKb,aAAa,CAACQ,UAAU,EACrC,OAAO;IAAEO,KAAK,EAAEnB,UAAU,CAACY,UAAU;IAAEQ,IAAI,EAAE;EAAQ,CAAC;EACxD,IAAIH,MAAM,KAAKb,aAAa,CAACU,MAAM,EACjC,OAAO;IAAEK,KAAK,EAAEnB,UAAU,CAACe,OAAO;IAAEK,IAAI,EAAE;EAAS,CAAC;EACtD,IAAIF,QAAQ,EAAE,OAAO;IAAEC,KAAK,EAAEnB,UAAU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BC,cAAc,EAAEG;EAAmB,CACpC,CAAC,GACA,IAAI,eACR7C,KAAA,CAAAsD,aAAA,CAACnD,IAAI;IAACoD,KAAK,EAAEtC,MAAM,CAACoD;EAAS,GAAEnB,IAAW,CACtC,CAAC;AAEX,CAAC;AAED,4BAAejD,IAAI,CAAC+B,iBAAiB,CAAC"}
@@ -0,0 +1,16 @@
1
+ import React, { memo } from 'react';
2
+ import { Text, View } from 'react-native';
3
+ import styles from './styles';
4
+ const Chip = _ref => {
5
+ let {
6
+ label,
7
+ tone
8
+ } = _ref;
9
+ return /*#__PURE__*/React.createElement(View, {
10
+ style: [styles.chip, tone === 'green' ? styles.chipGreen : styles.chipIndigo]
11
+ }, /*#__PURE__*/React.createElement(Text, {
12
+ style: [styles.chipText, tone === 'green' ? styles.chipTextGreen : styles.chipTextIndigo]
13
+ }, label));
14
+ };
15
+ export default /*#__PURE__*/memo(Chip);
16
+ //# sourceMappingURL=Chip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","memo","Text","View","styles","Chip","_ref","label","tone","createElement","style","chip","chipGreen","chipIndigo","chipText","chipTextGreen","chipTextIndigo"],"sourceRoot":"../../../../../../../src","sources":["main/components/modules/devMenu/components/Chip.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,IAAI,QAAQ,OAAO;AACnC,SAASC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAEzC,OAAOC,MAAM,MAAM,UAAU;AAS7B,MAAMC,IAAqB,GAAGC,IAAA;EAAA,IAAC;IAAEC,KAAK;IAAEC;EAAK,CAAC,GAAAF,IAAA;EAAA,oBAC5CN,KAAA,CAAAS,aAAA,CAACN,IAAI;IACHO,KAAK,EAAE,CACLN,MAAM,CAACO,IAAI,EACXH,IAAI,KAAK,OAAO,GAAGJ,MAAM,CAACQ,SAAS,GAAGR,MAAM,CAACS,UAAU;EACvD,gBAEFb,KAAA,CAAAS,aAAA,CAACP,IAAI;IACHQ,KAAK,EAAE,CACLN,MAAM,CAACU,QAAQ,EACfN,IAAI,KAAK,OAAO,GAAGJ,MAAM,CAACW,aAAa,GAAGX,MAAM,CAACY,cAAc;EAC/D,GAEDT,KACG,CACF,CAAC;AAAA,CACR;AAED,4BAAeN,IAAI,CAACI,IAAI,CAAC"}
@@ -0,0 +1,32 @@
1
+ import React, { memo } from 'react';
2
+ import { Text, View } from 'react-native';
3
+ import BackButton from '../../../common/BackButton';
4
+ import CrossButton from '../../../common/CrossButton';
5
+ import styles from './styles';
6
+ const DetailHeader = _ref => {
7
+ let {
8
+ title,
9
+ subtitle,
10
+ onBackPress,
11
+ onClosePress
12
+ } = _ref;
13
+ return /*#__PURE__*/React.createElement(View, {
14
+ style: styles.detailHeader
15
+ }, /*#__PURE__*/React.createElement(View, {
16
+ style: styles.backButton
17
+ }, /*#__PURE__*/React.createElement(BackButton, {
18
+ onPress: onBackPress
19
+ })), /*#__PURE__*/React.createElement(View, {
20
+ style: styles.detailTitleBlock
21
+ }, /*#__PURE__*/React.createElement(Text, {
22
+ style: styles.detailTitle,
23
+ numberOfLines: 1
24
+ }, title), subtitle ? /*#__PURE__*/React.createElement(Text, {
25
+ style: styles.detailSubtitle,
26
+ numberOfLines: 1
27
+ }, subtitle) : null), /*#__PURE__*/React.createElement(CrossButton, {
28
+ onPress: onClosePress
29
+ }));
30
+ };
31
+ export default /*#__PURE__*/memo(DetailHeader);
32
+ //# sourceMappingURL=DetailHeader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","memo","Text","View","BackButton","CrossButton","styles","DetailHeader","_ref","title","subtitle","onBackPress","onClosePress","createElement","style","detailHeader","backButton","onPress","detailTitleBlock","detailTitle","numberOfLines","detailSubtitle"],"sourceRoot":"../../../../../../../src","sources":["main/components/modules/devMenu/components/DetailHeader.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,IAAI,QAAQ,OAAO;AACnC,SAASC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAEzC,OAAOC,UAAU,MAAM,4BAA4B;AACnD,OAAOC,WAAW,MAAM,6BAA6B;AAErD,OAAOC,MAAM,MAAM,UAAU;AAS7B,MAAMC,YAAqC,GAAGC,IAAA;EAAA,IAAC;IAC7CC,KAAK;IACLC,QAAQ;IACRC,WAAW;IACXC;EACF,CAAC,GAAAJ,IAAA;EAAA,oBACCR,KAAA,CAAAa,aAAA,CAACV,IAAI;IAACW,KAAK,EAAER,MAAM,CAACS;EAAa,gBAC/Bf,KAAA,CAAAa,aAAA,CAACV,IAAI;IAACW,KAAK,EAAER,MAAM,CAACU;EAAW,gBAC7BhB,KAAA,CAAAa,aAAA,CAACT,UAAU;IAACa,OAAO,EAAEN;EAAY,CAAE,CAC/B,CAAC,eACPX,KAAA,CAAAa,aAAA,CAACV,IAAI;IAACW,KAAK,EAAER,MAAM,CAACY;EAAiB,gBACnClB,KAAA,CAAAa,aAAA,CAACX,IAAI;IAACY,KAAK,EAAER,MAAM,CAACa,WAAY;IAACC,aAAa,EAAE;EAAE,GAC/CX,KACG,CAAC,EACNC,QAAQ,gBACPV,KAAA,CAAAa,aAAA,CAACX,IAAI;IAACY,KAAK,EAAER,MAAM,CAACe,cAAe;IAACD,aAAa,EAAE;EAAE,GAClDV,QACG,CAAC,GACL,IACA,CAAC,eACPV,KAAA,CAAAa,aAAA,CAACR,WAAW;IAACY,OAAO,EAAEL;EAAa,CAAE,CACjC,CAAC;AAAA,CACR;AAED,4BAAeX,IAAI,CAACM,YAAY,CAAC"}
@@ -0,0 +1,31 @@
1
+ import React, { memo } from 'react';
2
+ import { Text, View } from 'react-native';
3
+ import { DEVICE_ROW_APP_VERSION, DEVICE_ROW_UID, NOT_APPLICABLE_TEXT } from '../../../../constants/appConstants';
4
+ import styles from './styles';
5
+ const DeviceCard = _ref => {
6
+ let {
7
+ appVersion,
8
+ uid
9
+ } = _ref;
10
+ return /*#__PURE__*/React.createElement(View, {
11
+ style: styles.card
12
+ }, /*#__PURE__*/React.createElement(View, {
13
+ style: styles.deviceRow
14
+ }, /*#__PURE__*/React.createElement(Text, {
15
+ style: styles.deviceLabel
16
+ }, DEVICE_ROW_APP_VERSION), /*#__PURE__*/React.createElement(Text, {
17
+ style: styles.deviceValue,
18
+ numberOfLines: 1
19
+ }, appVersion || NOT_APPLICABLE_TEXT)), /*#__PURE__*/React.createElement(View, {
20
+ style: styles.deviceDivider
21
+ }), /*#__PURE__*/React.createElement(View, {
22
+ style: styles.deviceRow
23
+ }, /*#__PURE__*/React.createElement(Text, {
24
+ style: styles.deviceLabel
25
+ }, DEVICE_ROW_UID), /*#__PURE__*/React.createElement(Text, {
26
+ style: [styles.deviceValue, styles.deviceValueMono],
27
+ numberOfLines: 1
28
+ }, uid || NOT_APPLICABLE_TEXT)));
29
+ };
30
+ export default /*#__PURE__*/memo(DeviceCard);
31
+ //# sourceMappingURL=DeviceCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","memo","Text","View","DEVICE_ROW_APP_VERSION","DEVICE_ROW_UID","NOT_APPLICABLE_TEXT","styles","DeviceCard","_ref","appVersion","uid","createElement","style","card","deviceRow","deviceLabel","deviceValue","numberOfLines","deviceDivider","deviceValueMono"],"sourceRoot":"../../../../../../../src","sources":["main/components/modules/devMenu/components/DeviceCard.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,IAAI,QAAQ,OAAO;AACnC,SAASC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAEzC,SACEC,sBAAsB,EACtBC,cAAc,EACdC,mBAAmB,QACd,oCAAoC;AAE3C,OAAOC,MAAM,MAAM,UAAU;AAO7B,MAAMC,UAAiC,GAAGC,IAAA;EAAA,IAAC;IAAEC,UAAU;IAAEC;EAAI,CAAC,GAAAF,IAAA;EAAA,oBAC5DT,KAAA,CAAAY,aAAA,CAACT,IAAI;IAACU,KAAK,EAAEN,MAAM,CAACO;EAAK,gBACvBd,KAAA,CAAAY,aAAA,CAACT,IAAI;IAACU,KAAK,EAAEN,MAAM,CAACQ;EAAU,gBAC5Bf,KAAA,CAAAY,aAAA,CAACV,IAAI;IAACW,KAAK,EAAEN,MAAM,CAACS;EAAY,GAAEZ,sBAA6B,CAAC,eAChEJ,KAAA,CAAAY,aAAA,CAACV,IAAI;IAACW,KAAK,EAAEN,MAAM,CAACU,WAAY;IAACC,aAAa,EAAE;EAAE,GAC/CR,UAAU,IAAIJ,mBACX,CACF,CAAC,eACPN,KAAA,CAAAY,aAAA,CAACT,IAAI;IAACU,KAAK,EAAEN,MAAM,CAACY;EAAc,CAAE,CAAC,eACrCnB,KAAA,CAAAY,aAAA,CAACT,IAAI;IAACU,KAAK,EAAEN,MAAM,CAACQ;EAAU,gBAC5Bf,KAAA,CAAAY,aAAA,CAACV,IAAI;IAACW,KAAK,EAAEN,MAAM,CAACS;EAAY,GAAEX,cAAqB,CAAC,eACxDL,KAAA,CAAAY,aAAA,CAACV,IAAI;IACHW,KAAK,EAAE,CAACN,MAAM,CAACU,WAAW,EAAEV,MAAM,CAACa,eAAe,CAAE;IACpDF,aAAa,EAAE;EAAE,GAEhBP,GAAG,IAAIL,mBACJ,CACF,CACF,CAAC;AAAA,CACR;AAED,4BAAeL,IAAI,CAACO,UAAU,CAAC"}
@@ -0,0 +1,17 @@
1
+ import React, { memo } from 'react';
2
+ import { Text, View } from 'react-native';
3
+ import { DEFAULT_ERROR_PREFIX } from '../../../../constants/appConstants';
4
+ import styles from './styles';
5
+ const ErrorBanner = _ref => {
6
+ let {
7
+ message
8
+ } = _ref;
9
+ return /*#__PURE__*/React.createElement(View, {
10
+ style: styles.errorBanner
11
+ }, /*#__PURE__*/React.createElement(Text, {
12
+ style: styles.errorBannerText,
13
+ numberOfLines: 2
14
+ }, DEFAULT_ERROR_PREFIX, message));
15
+ };
16
+ export default /*#__PURE__*/memo(ErrorBanner);
17
+ //# sourceMappingURL=ErrorBanner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","memo","Text","View","DEFAULT_ERROR_PREFIX","styles","ErrorBanner","_ref","message","createElement","style","errorBanner","errorBannerText","numberOfLines"],"sourceRoot":"../../../../../../../src","sources":["main/components/modules/devMenu/components/ErrorBanner.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,IAAI,QAAQ,OAAO;AACnC,SAASC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAEzC,SAASC,oBAAoB,QAAQ,oCAAoC;AAEzE,OAAOC,MAAM,MAAM,UAAU;AAE7B,MAAMC,WAA0C,GAAGC,IAAA;EAAA,IAAC;IAAEC;EAAQ,CAAC,GAAAD,IAAA;EAAA,oBAC7DP,KAAA,CAAAS,aAAA,CAACN,IAAI;IAACO,KAAK,EAAEL,MAAM,CAACM;EAAY,gBAC9BX,KAAA,CAAAS,aAAA,CAACP,IAAI;IAACQ,KAAK,EAAEL,MAAM,CAACO,eAAgB;IAACC,aAAa,EAAE;EAAE,GACnDT,oBAAoB,EACpBI,OACG,CACF,CAAC;AAAA,CACR;AAED,4BAAeP,IAAI,CAACK,WAAW,CAAC"}
@@ -0,0 +1,54 @@
1
+ import React, { memo, useCallback, useEffect, useRef } from 'react';
2
+ import { Animated, Pressable, Text, View } from 'react-native';
3
+ import { SWITCH_TEXTS, TAB_CAPTIONS } from '../../../../constants/appConstants';
4
+ import { DS_TOGGLE } from '../../../../constants/designTokens';
5
+ import styles from './styles';
6
+ const THUMB_TRAVEL = DS_TOGGLE.width - DS_TOGGLE.thumb - DS_TOGGLE.inset * 2;
7
+
8
+ /**
9
+ * Off is Production (the default), on is Testing — green means the
10
+ * staging switch is engaged.
11
+ */
12
+ const ModeToggle = _ref => {
13
+ let {
14
+ isTesting,
15
+ onChange
16
+ } = _ref;
17
+ const thumbX = useRef(new Animated.Value(isTesting ? THUMB_TRAVEL : 0)).current;
18
+ useEffect(() => {
19
+ Animated.spring(thumbX, {
20
+ toValue: isTesting ? THUMB_TRAVEL : 0,
21
+ useNativeDriver: true,
22
+ bounciness: 0,
23
+ speed: 20
24
+ }).start();
25
+ }, [isTesting, thumbX]);
26
+ const handlePress = useCallback(() => onChange(!isTesting), [isTesting, onChange]);
27
+ return /*#__PURE__*/React.createElement(View, {
28
+ style: styles.toggleRow
29
+ }, /*#__PURE__*/React.createElement(View, {
30
+ style: styles.toggleTextBlock
31
+ }, /*#__PURE__*/React.createElement(Text, {
32
+ style: styles.toggleLabel
33
+ }, isTesting ? SWITCH_TEXTS.ON : SWITCH_TEXTS.OFF), /*#__PURE__*/React.createElement(Text, {
34
+ style: styles.toggleCaption
35
+ }, isTesting ? TAB_CAPTIONS.STAGE : TAB_CAPTIONS.PROD)), /*#__PURE__*/React.createElement(Pressable, {
36
+ accessibilityRole: "switch",
37
+ accessibilityLabel: isTesting ? SWITCH_TEXTS.ON : SWITCH_TEXTS.OFF,
38
+ accessibilityHint: isTesting ? TAB_CAPTIONS.STAGE : TAB_CAPTIONS.PROD,
39
+ accessibilityState: {
40
+ checked: isTesting
41
+ },
42
+ onPress: handlePress,
43
+ hitSlop: 8,
44
+ style: [styles.toggleTrack, isTesting ? styles.toggleTrackOn : styles.toggleTrackOff]
45
+ }, /*#__PURE__*/React.createElement(Animated.View, {
46
+ style: [styles.toggleThumb, {
47
+ transform: [{
48
+ translateX: thumbX
49
+ }]
50
+ }]
51
+ })));
52
+ };
53
+ export default /*#__PURE__*/memo(ModeToggle);
54
+ //# sourceMappingURL=ModeToggle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","memo","useCallback","useEffect","useRef","Animated","Pressable","Text","View","SWITCH_TEXTS","TAB_CAPTIONS","DS_TOGGLE","styles","THUMB_TRAVEL","width","thumb","inset","ModeToggle","_ref","isTesting","onChange","thumbX","Value","current","spring","toValue","useNativeDriver","bounciness","speed","start","handlePress","createElement","style","toggleRow","toggleTextBlock","toggleLabel","ON","OFF","toggleCaption","STAGE","PROD","accessibilityRole","accessibilityLabel","accessibilityHint","accessibilityState","checked","onPress","hitSlop","toggleTrack","toggleTrackOn","toggleTrackOff","toggleThumb","transform","translateX"],"sourceRoot":"../../../../../../../src","sources":["main/components/modules/devMenu/components/ModeToggle.tsx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BAClClC,KAAA,CAAA+B,aAAA,CAACxB,IAAI;IAACyB,KAAK,EAAEpB,MAAM,CAACuB;EAAY,GAC7BhB,SAAS,GAAGV,YAAY,CAAC2B,EAAE,GAAG3B,YAAY,CAAC4B,GACxC,CAAC,eACPrC,KAAA,CAAA+B,aAAA,CAACxB,IAAI;IAACyB,KAAK,EAAEpB,MAAM,CAAC0B;EAAc,GAC/BnB,SAAS,GAAGT,YAAY,CAAC6B,KAAK,GAAG7B,YAAY,CAAC8B,IAC3C,CACF,CAAC,eACPxC,KAAA,CAAA+B,aAAA,CAACzB,SAAS;IACRmC,iBAAiB,EAAC,QAAQ;IAC1BC,kBAAkB,EAAEvB,SAAS,GAAGV,YAAY,CAAC2B,EAAE,GAAG3B,YAAY,CAAC4B,GAAI;IACnEM,iBAAiB,EAAExB,SAAS,GAAGT,YAAY,CAAC6B,KAAK,GAAG7B,YAAY,CAAC8B,IAAK;IACtEI,kBAAkB,EAAE;MAAEC,OAAO,EAAE1B;IAAU,CAAE;IAC3C2B,OAAO,EAAEhB,WAAY;IACrBiB,OAAO,EAAE,CAAE;IACXf,KAAK,EAAE,CACLpB,MAAM,CAACoC,WAAW,EAClB7B,SAAS,GAAGP,MAAM,CAACqC,aAAa,GAAGrC,MAAM,CAACsC,cAAc;EACxD,gBAEFlD,KAAA,CAAA+B,aAAA,CAAC1B,QAAQ,CAACG,IAAI;IACZwB,KAAK,EAAE,CAACpB,MAAM,CAACuC,WAAW,EAAE;MAAEC,SAAS,EAAE,CAAC;QAAEC,UAAU,EAAEhC;MAAO,CAAC;IAAE,CAAC;EAAE,CACtE,CACQ,CACP,CAAC;AAEX,CAAC;AAED,4BAAepB,IAAI,CAACgB,UAAU,CAAC"}
@@ -0,0 +1,47 @@
1
+ import React, { memo } from 'react';
2
+ import { Text, View } from 'react-native';
3
+ import ActionButton from './ActionButton';
4
+ import Chip from './Chip';
5
+ import ReleaseNote from './ReleaseNote';
6
+ import { BUNDLE_META_STATES, BUNDLE_VERSION_PREFIX, CHIP_TEXTS, META_SEPARATOR, RESTART_BUTTON_TEXT } from '../../../../constants/appConstants';
7
+ import { parseDateTime } from '../../../../utils/dateUtil';
8
+ import { getDigitalStorageSize } from '../../../../utils/getSize';
9
+ import styles from './styles';
10
+ const CHECKSUM_DISPLAY_LENGTH = 12;
11
+ const ProdBundleCard = _ref => {
12
+ var _meta$sha256Checksum;
13
+ let {
14
+ meta,
15
+ variant,
16
+ expanded,
17
+ onToggleExpand,
18
+ onRestart
19
+ } = _ref;
20
+ const isPending = variant === 'pending';
21
+ const metaLine = [(_meta$sha256Checksum = meta.sha256Checksum) === null || _meta$sha256Checksum === void 0 ? void 0 : _meta$sha256Checksum.substring(0, CHECKSUM_DISPLAY_LENGTH), parseDateTime(meta.updatedAt), meta.size ? getDigitalStorageSize(meta.size) : null, isPending ? BUNDLE_META_STATES.APPLIES_ON_RESTART : BUNDLE_META_STATES.APPLIED].filter(Boolean).join(META_SEPARATOR);
22
+ return /*#__PURE__*/React.createElement(View, {
23
+ style: [styles.card, styles.cardPaddedEven, isPending && styles.cardHighlightGreen, !isPending && styles.cardHighlightIndigo]
24
+ }, /*#__PURE__*/React.createElement(View, {
25
+ style: styles.cardTopRow
26
+ }, /*#__PURE__*/React.createElement(View, {
27
+ style: styles.cardTitleRow
28
+ }, /*#__PURE__*/React.createElement(Text, {
29
+ style: [styles.cardTitle, styles.cardTitleLarge]
30
+ }, `${BUNDLE_VERSION_PREFIX}${meta.version}`), /*#__PURE__*/React.createElement(Chip, {
31
+ label: isPending ? CHIP_TEXTS.DOWNLOADED : CHIP_TEXTS.APPLIED,
32
+ tone: isPending ? 'green' : 'indigo'
33
+ })), isPending ? /*#__PURE__*/React.createElement(ActionButton, {
34
+ label: RESTART_BUTTON_TEXT,
35
+ variant: "success",
36
+ onPress: onRestart
37
+ }) : null), meta.releaseNote ? /*#__PURE__*/React.createElement(ReleaseNote, {
38
+ text: meta.releaseNote,
39
+ expanded: expanded,
40
+ onToggleExpand: onToggleExpand,
41
+ tight: true
42
+ }) : null, /*#__PURE__*/React.createElement(Text, {
43
+ style: styles.cardMeta
44
+ }, metaLine));
45
+ };
46
+ export default /*#__PURE__*/memo(ProdBundleCard);
47
+ //# sourceMappingURL=ProdBundleCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","memo","Text","View","ActionButton","Chip","ReleaseNote","BUNDLE_META_STATES","BUNDLE_VERSION_PREFIX","CHIP_TEXTS","META_SEPARATOR","RESTART_BUTTON_TEXT","parseDateTime","getDigitalStorageSize","styles","CHECKSUM_DISPLAY_LENGTH","ProdBundleCard","_ref","_meta$sha256Checksum","meta","variant","expanded","onToggleExpand","onRestart","isPending","metaLine","sha256Checksum","substring","updatedAt","size","APPLIES_ON_RESTART","APPLIED","filter","Boolean","join","createElement","style","card","cardPaddedEven","cardHighlightGreen","cardHighlightIndigo","cardTopRow","cardTitleRow","cardTitle","cardTitleLarge","version","label","DOWNLOADED","tone","onPress","releaseNote","text","tight","cardMeta"],"sourceRoot":"../../../../../../../src","sources":["main/components/modules/devMenu/components/ProdBundleCard.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,IAAI,QAAQ,OAAO;AACnC,SAASC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAEzC,OAAOC,YAAY,MAAM,gBAAgB;AACzC,OAAOC,IAAI,MAAM,QAAQ;AACzB,OAAOC,WAAW,MAAM,eAAe;AAEvC,SACEC,kBAAkB,EAClBC,qBAAqB,EACrBC,UAAU,EACVC,cAAc,EACdC,mBAAmB,QACd,oCAAoC;AAE3C,SAASC,aAAa,QAAQ,4BAA4B;AAC1D,SAASC,qBAAqB,QAAQ,2BAA2B;AAEjE,OAAOC,MAAM,MAAM,UAAU;AAE7B,MAAMC,uBAAuB,GAAG,EAAE;AAWlC,MAAMC,cAAyC,GAAGC,IAAA,IAM5C;EAAA,IAAAC,oBAAA;EAAA,IAN6C;IACjDC,IAAI;IACJC,OAAO;IACPC,QAAQ;IACRC,cAAc;IACdC;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,GAAG;EAAS,CACtC,CACG,CAAC,EACNA,SAAS,gBACRxB,KAAA,CAAAmC,aAAA,CAAC/B,YAAY;IACX0C,KAAK,EAAEnC,mBAAoB;IAC3BS,OAAO,EAAC,SAAS;IACjB6B,OAAO,EAAE1B;EAAU,CACpB,CAAC,GACA,IACA,CAAC,EACNJ,IAAI,CAAC+B,WAAW,gBACflD,KAAA,CAAAmC,aAAA,CAAC7B,WAAW;IACV6C,IAAI,EAAEhC,IAAI,CAAC+B,WAAY;IACvB7B,QAAQ,EAAEA,QAAS;IACnBC,cAAc,EAAEA,cAAe;IAC/B8B,KAAK,EAAE;EAAK,CACb,CAAC,GACA,IAAI,eACRpD,KAAA,CAAAmC,aAAA,CAACjC,IAAI;IAACkC,KAAK,EAAEtB,MAAM,CAACuC;EAAS,GAAE5B,QAAe,CAC1C,CAAC;AAEX,CAAC;AAED,4BAAexB,IAAI,CAACe,cAAc,CAAC"}
@@ -0,0 +1,44 @@
1
+ import React, { memo, useCallback, useState } from 'react';
2
+ import { Pressable, Text, View } from 'react-native';
3
+ import { READ_LESS_TEXT, READ_MORE_TEXT } from '../../../../constants/appConstants';
4
+ import { DS_BUTTON_HIT_SLOP } from '../../../../constants/designTokens';
5
+ import styles from './styles';
6
+ const CLAMP_LINES = 2;
7
+ /**
8
+ * Release note clamped to two lines with an in-place "Read more" toggle. An
9
+ * invisible unclamped copy is laid out once to learn whether the note actually
10
+ * overflows — RN cannot report that from the clamped Text itself.
11
+ */
12
+ const ReleaseNote = _ref => {
13
+ let {
14
+ text,
15
+ expanded,
16
+ onToggleExpand,
17
+ tight
18
+ } = _ref;
19
+ const [lineCount, setLineCount] = useState(null);
20
+ const handleMeasure = useCallback(event => {
21
+ setLineCount(event.nativeEvent.lines.length);
22
+ }, []);
23
+ const isOverflowing = (lineCount ?? 0) > CLAMP_LINES;
24
+ const canToggle = isOverflowing && !!onToggleExpand;
25
+ return /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(View, {
26
+ style: [styles.noteWrapper, tight && styles.noteTight]
27
+ }, /*#__PURE__*/React.createElement(Text, {
28
+ style: styles.note,
29
+ numberOfLines: expanded ? undefined : CLAMP_LINES
30
+ }, text), lineCount === null ? /*#__PURE__*/React.createElement(Text, {
31
+ style: [styles.note, styles.noteMeasure],
32
+ onTextLayout: handleMeasure,
33
+ importantForAccessibility: "no-hide-descendants",
34
+ accessibilityElementsHidden: true
35
+ }, text) : null), canToggle ? /*#__PURE__*/React.createElement(Pressable, {
36
+ accessibilityRole: "button",
37
+ onPress: onToggleExpand,
38
+ hitSlop: DS_BUTTON_HIT_SLOP
39
+ }, /*#__PURE__*/React.createElement(Text, {
40
+ style: styles.readMore
41
+ }, expanded ? READ_LESS_TEXT : READ_MORE_TEXT)) : null);
42
+ };
43
+ export default /*#__PURE__*/memo(ReleaseNote);
44
+ //# sourceMappingURL=ReleaseNote.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","memo","useCallback","useState","Pressable","Text","View","READ_LESS_TEXT","READ_MORE_TEXT","DS_BUTTON_HIT_SLOP","styles","CLAMP_LINES","ReleaseNote","_ref","text","expanded","onToggleExpand","tight","lineCount","setLineCount","handleMeasure","event","nativeEvent","lines","length","isOverflowing","canToggle","createElement","style","noteWrapper","noteTight","note","numberOfLines","undefined","noteMeasure","onTextLayout","importantForAccessibility","accessibilityElementsHidden","accessibilityRole","onPress","hitSlop","readMore"],"sourceRoot":"../../../../../../../src","sources":["main/components/modules/devMenu/components/ReleaseNote.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,WAAW,EAAEC,QAAQ,QAAQ,OAAO;AAC1D,SAEEC,SAAS,EACTC,IAAI,EAEJC,IAAI,QACC,cAAc;AAErB,SACEC,cAAc,EACdC,cAAc,QACT,oCAAoC;AAC3C,SAASC,kBAAkB,QAAQ,oCAAoC;AAEvE,OAAOC,MAAM,MAAM,UAAU;AAE7B,MAAMC,WAAW,GAAG,CAAC;AAUrB;AACA;AACA;A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AmB,gBAE5BT,KAAA,CAAA2B,aAAA,CAACtB,IAAI;IAACuB,KAAK,EAAElB,MAAM,CAAC+B;EAAS,GAC1B1B,QAAQ,GAAGR,cAAc,GAAGC,cACzB,CACG,CAAC,GACV,IACA,CAAC;AAEX,CAAC;AAED,4BAAeP,IAAI,CAACW,WAAW,CAAC"}
@@ -0,0 +1,13 @@
1
+ import React, { memo } from 'react';
2
+ import { Text } from 'react-native';
3
+ import styles from './styles';
4
+ const SectionLabel = _ref => {
5
+ let {
6
+ label
7
+ } = _ref;
8
+ return /*#__PURE__*/React.createElement(Text, {
9
+ style: styles.sectionLabel
10
+ }, label);
11
+ };
12
+ export default /*#__PURE__*/memo(SectionLabel);
13
+ //# sourceMappingURL=SectionLabel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","memo","Text","styles","SectionLabel","_ref","label","createElement","style","sectionLabel"],"sourceRoot":"../../../../../../../src","sources":["main/components/modules/devMenu/components/SectionLabel.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,IAAI,QAAQ,OAAO;AACnC,SAASC,IAAI,QAAQ,cAAc;AAEnC,OAAOC,MAAM,MAAM,UAAU;AAE7B,MAAMC,YAAyC,GAAGC,IAAA;EAAA,IAAC;IAAEC;EAAM,CAAC,GAAAD,IAAA;EAAA,oBAC1DL,KAAA,CAAAO,aAAA,CAACL,IAAI;IAACM,KAAK,EAAEL,MAAM,CAACM;EAAa,GAAEH,KAAY,CAAC;AAAA,CACjD;AAED,4BAAeL,IAAI,CAACG,YAAY,CAAC"}
@@ -0,0 +1,30 @@
1
+ import React, { memo } from 'react';
2
+ import { Text, View } from 'react-native';
3
+ import ActionButton from './ActionButton';
4
+ import { RETRY_BUTTON_TEXT } from '../../../../constants/appConstants';
5
+ import styles from './styles';
6
+ /**
7
+ * Dashed placeholder card — the Production empty state from the handoff,
8
+ * reused for empty and error states elsewhere in the menu.
9
+ */
10
+ const StateCard = _ref => {
11
+ let {
12
+ title,
13
+ subtitle,
14
+ onRetry
15
+ } = _ref;
16
+ return /*#__PURE__*/React.createElement(View, {
17
+ style: styles.stateCard
18
+ }, /*#__PURE__*/React.createElement(Text, {
19
+ style: styles.stateTitle
20
+ }, title), subtitle ? /*#__PURE__*/React.createElement(Text, {
21
+ style: styles.stateSubtitle
22
+ }, subtitle) : null, onRetry ? /*#__PURE__*/React.createElement(ActionButton, {
23
+ label: RETRY_BUTTON_TEXT,
24
+ variant: "outline",
25
+ onPress: onRetry,
26
+ style: styles.stateAction
27
+ }) : null);
28
+ };
29
+ export default /*#__PURE__*/memo(StateCard);
30
+ //# sourceMappingURL=StateCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","memo","Text","View","ActionButton","RETRY_BUTTON_TEXT","styles","StateCard","_ref","title","subtitle","onRetry","createElement","style","stateCard","stateTitle","stateSubtitle","label","variant","onPress","stateAction"],"sourceRoot":"../../../../../../../src","sources":["main/components/modules/devMenu/components/StateCard.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,IAAI,QAAQ,OAAO;AACnC,SAASC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAEzC,OAAOC,YAAY,MAAM,gBAAgB;AACzC,SAASC,iBAAiB,QAAQ,oCAAoC;AAEtE,OAAOC,MAAM,MAAM,UAAU;AAQ7B;AACA;AACA;AACA;AACA,MAAMC,SAA+B,GAAGC,IAAA;EAAA,IAAC;IAAEC,KAAK;IAAEC,QAAQ;IAAEC;EAAQ,CAAC,GAAAH,IAAA;EAAA,oBACnER,KAAA,CAAAY,aAAA,CAACT,IAAI;IAACU,KAAK,EAAEP,MAAM,CAACQ;EAAU,gBAC5Bd,KAAA,CAAAY,aAAA,CAACV,IAAI;IAACW,KAAK,EAAEP,MAAM,CAACS;EAAW,GAAEN,KAAY,CAAC,EAC7CC,QAAQ,gBAAGV,KAAA,CAAAY,aAAA,CAACV,IAAI;IAACW,KAAK,EAAEP,MAAM,CAACU;EAAc,GAAEN,QAAe,CAAC,GAAG,IAAI,EACtEC,OAAO,gBACNX,KAAA,CAAAY,aAAA,CAACR,YAAY;IACXa,KAAK,EAAEZ,iBAAkB;IACzBa,OAAO,EAAC,SAAS;IACjBC,OAAO,EAAER,OAAQ;IACjBE,KAAK,EAAEP,MAAM,CAACc;EAAY,CAC3B,CAAC,GACA,IACA,CAAC;AAAA,CACR;AAED,4BAAenB,IAAI,CAACM,SAAS,CAAC"}
@@ -0,0 +1,35 @@
1
+ import React, { memo, useCallback, useState } from 'react';
2
+ import { Image, Text, View } from 'react-native';
3
+ import { STALLION_LOGO_URL, WORDMARK_TEXT } from '../../../../constants/appConstants';
4
+ import styles from './styles';
5
+
6
+ /**
7
+ * The shipped Stallion asset is a horse + wordmark lockup, so it stands in for
8
+ * both the diamond placeholder and the "STALLION" text from the design. If the
9
+ * remote asset fails to load we fall back to the diamond + wordmark spec.
10
+ */
11
+ const Wordmark = () => {
12
+ const [logoFailed, setLogoFailed] = useState(false);
13
+ const handleLogoError = useCallback(() => setLogoFailed(true), []);
14
+ if (logoFailed) {
15
+ return /*#__PURE__*/React.createElement(View, {
16
+ style: styles.wordmarkRow
17
+ }, /*#__PURE__*/React.createElement(View, {
18
+ style: styles.wordmarkDiamond
19
+ }), /*#__PURE__*/React.createElement(Text, {
20
+ style: styles.wordmarkText
21
+ }, WORDMARK_TEXT));
22
+ }
23
+ return /*#__PURE__*/React.createElement(Image, {
24
+ accessibilityRole: "image",
25
+ accessibilityLabel: WORDMARK_TEXT,
26
+ source: {
27
+ uri: STALLION_LOGO_URL
28
+ },
29
+ style: styles.wordmarkLogo,
30
+ resizeMode: "contain",
31
+ onError: handleLogoError
32
+ });
33
+ };
34
+ export default /*#__PURE__*/memo(Wordmark);
35
+ //# sourceMappingURL=Wordmark.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","memo","useCallback","useState","Image","Text","View","STALLION_LOGO_URL","WORDMARK_TEXT","styles","Wordmark","logoFailed","setLogoFailed","handleLogoError","createElement","style","wordmarkRow","wordmarkDiamond","wordmarkText","accessibilityRole","accessibilityLabel","source","uri","wordmarkLogo","resizeMode","onError"],"sourceRoot":"../../../../../../../src","sources":["main/components/modules/devMenu/components/Wordmark.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,WAAW,EAAEC,QAAQ,QAAQ,OAAO;AAC1D,SAASC,KAAK,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAEhD,SACEC,iBAAiB,EACjBC,aAAa,QACR,oCAAoC;AAE3C,OAAOC,MAAM,MAAM,UAAU;;AAE7B;AACA;AACA;AACA;AACA;AACA,MAAMC,QAAkB,GAAGA,CAAA,KAAM;EAC/B,MAAM,CAACC,UAAU,EAAEC,aAAa,CAAC,GAAGT,QAAQ,CAAC,KAAK,CAAC;EACnD,MAAMU,eAAe,GAAGX,WAAW,CAAC,MAAMU,aAAa,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC;EAElE,IAAID,UAAU,EAAE;IACd,oBACEX,KAAA,CAAAc,aAAA,CAACR,IAAI;MAACS,KAAK,EAAEN,MAAM,CAACO;IAAY,gBAC9BhB,KAAA,CAAAc,aAAA,CAACR,IAAI;MAACS,KAAK,EAAEN,MAAM,CAACQ;IAAgB,CAAE,CAAC,eACvCjB,KAAA,CAAAc,aAAA,CAACT,IAAI;MAACU,KAAK,EAAEN,MAAM,CAACS;IAAa,GAAEV,aAAoB,CACnD,CAAC;EAEX;EAEA,oBACER,KAAA,CAAAc,aAAA,CAACV,KAAK;IACJe,iBAAiB,EAAC,OAAO;IACzBC,kBAAkB,EAAEZ,aAAc;IAClCa,MAAM,EAAE;MAAEC,GAAG,EAAEf;IAAkB,CAAE;IACnCQ,KAAK,EAAEN,MAAM,CAACc,YAAa;IAC3BC,UAAU,EAAC,SAAS;IACpBC,OAAO,EAAEZ;EAAgB,CAC1B,CAAC;AAEN,CAAC;AAED,4BAAeZ,IAAI,CAACS,QAAQ,CAAC"}