react-native-stallion 2.5.0-alpha.1 → 2.5.0-alpha.3
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.
- package/README.md +45 -16
- package/android/src/main/java/com/stallion/networkmanager/StallionApiConstants.java +4 -0
- package/android/src/main/java/com/stallion/networkmanager/StallionApiManager.java +2 -0
- package/android/src/main/java/com/stallion/networkmanager/StallionFileDownloader.java +8 -2
- package/android/src/main/java/com/stallion/networkmanager/StallionPatchHandler.java +4 -1
- package/android/src/main/java/com/stallion/networkmanager/StallionStageManager.java +7 -2
- package/android/src/main/java/com/stallion/networkmanager/StallionSyncHandler.java +14 -9
- package/android/src/main/java/com/stallion/storage/StallionConfig.java +2 -10
- package/android/src/main/java/com/stallion/utils/StallionSlotManager.java +1 -0
- package/ios/main/StallionConfig.m +2 -6
- package/ios/main/StallionConstants.swift +4 -0
- package/ios/main/StallionFileDownloader.swift +7 -3
- package/ios/main/StallionPatchHandler.swift +4 -1
- package/ios/main/StallionSlotManager.m +5 -4
- package/ios/main/StallionStageManager.swift +10 -4
- package/ios/main/StallionSyncHandler.swift +9 -2
- package/package.json +12 -4
- package/src/index.js +2 -0
- package/src/index.js.map +1 -1
- package/src/main/components/StallionDevMenu.js +69 -0
- package/src/main/components/StallionDevMenu.js.map +1 -0
- package/src/main/components/common/BackButton/index.js +19 -42
- package/src/main/components/common/BackButton/index.js.map +1 -1
- package/src/main/components/common/Chevron/index.js +64 -0
- package/src/main/components/common/Chevron/index.js.map +1 -0
- package/src/main/components/common/CrossButton/index.js +18 -11
- package/src/main/components/common/CrossButton/index.js.map +1 -1
- package/src/main/components/common/Header/index.js +3 -15
- package/src/main/components/common/Header/index.js.map +1 -1
- package/src/main/components/common/Header/styles.js +0 -22
- package/src/main/components/common/Header/styles.js.map +1 -1
- package/src/main/components/modules/devMenu/components/ActionButton.js +45 -0
- package/src/main/components/modules/devMenu/components/ActionButton.js.map +1 -0
- package/src/main/components/modules/devMenu/components/AppHeader.js +17 -0
- package/src/main/components/modules/devMenu/components/AppHeader.js.map +1 -0
- package/src/main/components/modules/devMenu/components/BucketRow.js +34 -0
- package/src/main/components/modules/devMenu/components/BucketRow.js.map +1 -0
- package/src/main/components/modules/devMenu/components/BundleHistoryCard.js +92 -0
- package/src/main/components/modules/devMenu/components/BundleHistoryCard.js.map +1 -0
- package/src/main/components/modules/devMenu/components/Chip.js +16 -0
- package/src/main/components/modules/devMenu/components/Chip.js.map +1 -0
- package/src/main/components/modules/devMenu/components/DetailHeader.js +32 -0
- package/src/main/components/modules/devMenu/components/DetailHeader.js.map +1 -0
- package/src/main/components/modules/devMenu/components/DeviceCard.js +31 -0
- package/src/main/components/modules/devMenu/components/DeviceCard.js.map +1 -0
- package/src/main/components/modules/devMenu/components/ErrorBanner.js +17 -0
- package/src/main/components/modules/devMenu/components/ErrorBanner.js.map +1 -0
- package/src/main/components/modules/devMenu/components/ModeToggle.js +54 -0
- package/src/main/components/modules/devMenu/components/ModeToggle.js.map +1 -0
- package/src/main/components/modules/devMenu/components/ProdBundleCard.js +47 -0
- package/src/main/components/modules/devMenu/components/ProdBundleCard.js.map +1 -0
- package/src/main/components/modules/devMenu/components/ReleaseNote.js +44 -0
- package/src/main/components/modules/devMenu/components/ReleaseNote.js.map +1 -0
- package/src/main/components/modules/devMenu/components/SectionLabel.js +13 -0
- package/src/main/components/modules/devMenu/components/SectionLabel.js.map +1 -0
- package/src/main/components/modules/devMenu/components/StateCard.js +30 -0
- package/src/main/components/modules/devMenu/components/StateCard.js.map +1 -0
- package/src/main/components/modules/devMenu/components/Wordmark.js +35 -0
- package/src/main/components/modules/devMenu/components/Wordmark.js.map +1 -0
- package/src/main/components/modules/devMenu/components/styles/index.js +403 -0
- package/src/main/components/modules/devMenu/components/styles/index.js.map +1 -0
- package/src/main/components/modules/devMenu/index.js +47 -0
- package/src/main/components/modules/devMenu/index.js.map +1 -0
- package/src/main/components/modules/devMenu/screens/BundleHistory.js +142 -0
- package/src/main/components/modules/devMenu/screens/BundleHistory.js.map +1 -0
- package/src/main/components/modules/devMenu/screens/Production.js +65 -0
- package/src/main/components/modules/devMenu/screens/Production.js.map +1 -0
- package/src/main/components/modules/devMenu/screens/TestingBuckets.js +81 -0
- package/src/main/components/modules/devMenu/screens/TestingBuckets.js.map +1 -0
- package/src/main/components/modules/devMenu/styles.js +50 -0
- package/src/main/components/modules/devMenu/styles.js.map +1 -0
- package/src/main/components/modules/modal/StallionModal.js +15 -51
- package/src/main/components/modules/modal/StallionModal.js.map +1 -1
- package/src/main/components/modules/modal/hooks/useStallionModal.js +21 -19
- package/src/main/components/modules/modal/hooks/useStallionModal.js.map +1 -1
- package/src/main/constants/appConstants.js +56 -53
- package/src/main/constants/appConstants.js.map +1 -1
- package/src/main/constants/colors.js +1 -10
- package/src/main/constants/colors.js.map +1 -1
- package/src/main/constants/designTokens.js +80 -0
- package/src/main/constants/designTokens.js.map +1 -0
- package/src/main/index.js +3 -1
- package/src/main/index.js.map +1 -1
- package/src/main/state/useStallionEvents.js.map +1 -1
- package/src/main/utils/useStallionConfig.js +14 -0
- package/src/main/utils/useStallionConfig.js.map +1 -0
- package/src/types/bundle.types.js +7 -0
- package/src/types/bundle.types.js.map +1 -1
- package/types/index.d.ts +2 -0
- package/types/index.d.ts.map +1 -1
- package/types/main/components/StallionDevMenu.d.ts +5 -0
- package/types/main/components/StallionDevMenu.d.ts.map +1 -0
- package/types/main/components/common/BackButton/index.d.ts +4 -3
- package/types/main/components/common/BackButton/index.d.ts.map +1 -1
- package/types/main/components/common/Chevron/index.d.ts +11 -0
- package/types/main/components/common/Chevron/index.d.ts.map +1 -0
- package/types/main/components/common/CrossButton/index.d.ts +4 -3
- package/types/main/components/common/CrossButton/index.d.ts.map +1 -1
- package/types/main/components/common/Header/index.d.ts +0 -2
- package/types/main/components/common/Header/index.d.ts.map +1 -1
- package/types/main/components/common/Header/styles.d.ts +0 -21
- package/types/main/components/common/Header/styles.d.ts.map +1 -1
- package/types/main/components/modules/devMenu/components/ActionButton.d.ts +19 -0
- package/types/main/components/modules/devMenu/components/ActionButton.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/components/AppHeader.d.ts +7 -0
- package/types/main/components/modules/devMenu/components/AppHeader.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/components/BucketRow.d.ts +11 -0
- package/types/main/components/modules/devMenu/components/BucketRow.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/components/BundleHistoryCard.d.ts +22 -0
- package/types/main/components/modules/devMenu/components/BundleHistoryCard.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/components/Chip.d.ts +9 -0
- package/types/main/components/modules/devMenu/components/Chip.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/components/DetailHeader.d.ts +10 -0
- package/types/main/components/modules/devMenu/components/DetailHeader.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/components/DeviceCard.d.ts +8 -0
- package/types/main/components/modules/devMenu/components/DeviceCard.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/components/ErrorBanner.d.ts +6 -0
- package/types/main/components/modules/devMenu/components/ErrorBanner.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/components/ModeToggle.d.ts +8 -0
- package/types/main/components/modules/devMenu/components/ModeToggle.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/components/ProdBundleCard.d.ts +13 -0
- package/types/main/components/modules/devMenu/components/ProdBundleCard.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/components/ReleaseNote.d.ts +11 -0
- package/types/main/components/modules/devMenu/components/ReleaseNote.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/components/SectionLabel.d.ts +6 -0
- package/types/main/components/modules/devMenu/components/SectionLabel.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/components/StateCard.d.ts +9 -0
- package/types/main/components/modules/devMenu/components/StateCard.d.ts.map +1 -0
- package/types/main/components/modules/{listing/index.d.ts → devMenu/components/Wordmark.d.ts} +1 -1
- package/types/main/components/modules/devMenu/components/Wordmark.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/components/styles/index.d.ts +353 -0
- package/types/main/components/modules/devMenu/components/styles/index.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/index.d.ts +14 -0
- package/types/main/components/modules/devMenu/index.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/screens/BundleHistory.d.ts +4 -0
- package/types/main/components/modules/devMenu/screens/BundleHistory.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/screens/Production.d.ts +4 -0
- package/types/main/components/modules/devMenu/screens/Production.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/screens/TestingBuckets.d.ts +4 -0
- package/types/main/components/modules/devMenu/screens/TestingBuckets.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/styles.d.ts +46 -0
- package/types/main/components/modules/devMenu/styles.d.ts.map +1 -0
- package/types/main/components/modules/modal/StallionModal.d.ts.map +1 -1
- package/types/main/components/modules/modal/hooks/useStallionModal.d.ts +5 -6
- package/types/main/components/modules/modal/hooks/useStallionModal.d.ts.map +1 -1
- package/types/main/constants/appConstants.d.ts +46 -48
- package/types/main/constants/appConstants.d.ts.map +1 -1
- package/types/main/constants/colors.d.ts +0 -9
- package/types/main/constants/colors.d.ts.map +1 -1
- package/types/main/constants/designTokens.d.ts +73 -0
- package/types/main/constants/designTokens.d.ts.map +1 -0
- package/types/main/index.d.ts +1 -0
- package/types/main/index.d.ts.map +1 -1
- package/types/main/state/useStallionEvents.d.ts +2 -0
- package/types/main/state/useStallionEvents.d.ts.map +1 -1
- package/types/main/utils/useStallionConfig.d.ts +5 -0
- package/types/main/utils/useStallionConfig.d.ts.map +1 -0
- package/types/types/bundle.types.d.ts +7 -0
- package/types/types/bundle.types.d.ts.map +1 -1
- package/types/types/utils.types.d.ts +3 -0
- package/types/types/utils.types.d.ts.map +1 -1
- package/src/main/components/common/ErrorView/index.js +0 -24
- package/src/main/components/common/ErrorView/index.js.map +0 -1
- package/src/main/components/common/ErrorView/styles.js +0 -30
- package/src/main/components/common/ErrorView/styles.js.map +0 -1
- package/src/main/components/common/Footer/index.js +0 -50
- package/src/main/components/common/Footer/index.js.map +0 -1
- package/src/main/components/common/Footer/styles.js +0 -91
- package/src/main/components/common/Footer/styles.js.map +0 -1
- package/src/main/components/common/FooterLoader/index.js +0 -11
- package/src/main/components/common/FooterLoader/index.js.map +0 -1
- package/src/main/components/common/FooterLoader/styles.js +0 -12
- package/src/main/components/common/FooterLoader/styles.js.map +0 -1
- package/src/main/components/common/OverlayLoader/index.js +0 -26
- package/src/main/components/common/OverlayLoader/index.js.map +0 -1
- package/src/main/components/common/OverlayLoader/styles.js +0 -33
- package/src/main/components/common/OverlayLoader/styles.js.map +0 -1
- package/src/main/components/modules/listing/components/BucketCard.js +0 -33
- package/src/main/components/modules/listing/components/BucketCard.js.map +0 -1
- package/src/main/components/modules/listing/components/BucketCardInfoSection.js +0 -56
- package/src/main/components/modules/listing/components/BucketCardInfoSection.js.map +0 -1
- package/src/main/components/modules/listing/components/BundleCard.js +0 -42
- package/src/main/components/modules/listing/components/BundleCard.js.map +0 -1
- package/src/main/components/modules/listing/components/BundleCardInfoSection.js +0 -82
- package/src/main/components/modules/listing/components/BundleCardInfoSection.js.map +0 -1
- package/src/main/components/modules/listing/components/CardDescriptionContent.js +0 -36
- package/src/main/components/modules/listing/components/CardDescriptionContent.js.map +0 -1
- package/src/main/components/modules/listing/components/ConfigView.js +0 -29
- package/src/main/components/modules/listing/components/ConfigView.js.map +0 -1
- package/src/main/components/modules/listing/components/MetaCard.js +0 -39
- package/src/main/components/modules/listing/components/MetaCard.js.map +0 -1
- package/src/main/components/modules/listing/components/SlotView.js +0 -80
- package/src/main/components/modules/listing/components/SlotView.js.map +0 -1
- package/src/main/components/modules/listing/components/styles/index.js +0 -121
- package/src/main/components/modules/listing/components/styles/index.js.map +0 -1
- package/src/main/components/modules/listing/hooks/useListing.js +0 -84
- package/src/main/components/modules/listing/hooks/useListing.js.map +0 -1
- package/src/main/components/modules/listing/index.js +0 -75
- package/src/main/components/modules/listing/index.js.map +0 -1
- package/src/main/components/modules/listing/styles.js +0 -24
- package/src/main/components/modules/listing/styles.js.map +0 -1
- package/src/main/components/modules/prod/index.js +0 -3
- package/src/main/components/modules/prod/index.js.map +0 -1
- package/src/main/components/modules/prod/prod.js +0 -30
- package/src/main/components/modules/prod/prod.js.map +0 -1
- package/src/main/components/modules/prod/styles/index.js +0 -29
- package/src/main/components/modules/prod/styles/index.js.map +0 -1
- package/types/__tests__/parseTokenRegion.test.d.ts +0 -2
- package/types/__tests__/parseTokenRegion.test.d.ts.map +0 -1
- package/types/main/components/common/ErrorView/index.d.ts +0 -8
- package/types/main/components/common/ErrorView/index.d.ts.map +0 -1
- package/types/main/components/common/ErrorView/styles.d.ts +0 -27
- package/types/main/components/common/ErrorView/styles.d.ts.map +0 -1
- package/types/main/components/common/Footer/index.d.ts +0 -10
- package/types/main/components/common/Footer/index.d.ts.map +0 -1
- package/types/main/components/common/Footer/styles.d.ts +0 -88
- package/types/main/components/common/Footer/styles.d.ts.map +0 -1
- package/types/main/components/common/FooterLoader/index.d.ts +0 -4
- package/types/main/components/common/FooterLoader/index.d.ts.map +0 -1
- package/types/main/components/common/FooterLoader/styles.d.ts +0 -10
- package/types/main/components/common/FooterLoader/styles.d.ts.map +0 -1
- package/types/main/components/common/OverlayLoader/index.d.ts +0 -7
- package/types/main/components/common/OverlayLoader/index.d.ts.map +0 -1
- package/types/main/components/common/OverlayLoader/styles.d.ts +0 -30
- package/types/main/components/common/OverlayLoader/styles.d.ts.map +0 -1
- package/types/main/components/modules/listing/components/BucketCard.d.ts +0 -13
- package/types/main/components/modules/listing/components/BucketCard.d.ts.map +0 -1
- package/types/main/components/modules/listing/components/BucketCardInfoSection.d.ts +0 -11
- package/types/main/components/modules/listing/components/BucketCardInfoSection.d.ts.map +0 -1
- package/types/main/components/modules/listing/components/BundleCard.d.ts +0 -15
- package/types/main/components/modules/listing/components/BundleCard.d.ts.map +0 -1
- package/types/main/components/modules/listing/components/BundleCardInfoSection.d.ts +0 -15
- package/types/main/components/modules/listing/components/BundleCardInfoSection.d.ts.map +0 -1
- package/types/main/components/modules/listing/components/CardDescriptionContent.d.ts +0 -8
- package/types/main/components/modules/listing/components/CardDescriptionContent.d.ts.map +0 -1
- package/types/main/components/modules/listing/components/ConfigView.d.ts +0 -8
- package/types/main/components/modules/listing/components/ConfigView.d.ts.map +0 -1
- package/types/main/components/modules/listing/components/MetaCard.d.ts +0 -8
- package/types/main/components/modules/listing/components/MetaCard.d.ts.map +0 -1
- package/types/main/components/modules/listing/components/SlotView.d.ts +0 -5
- package/types/main/components/modules/listing/components/SlotView.d.ts.map +0 -1
- package/types/main/components/modules/listing/components/styles/index.d.ts +0 -118
- package/types/main/components/modules/listing/components/styles/index.d.ts.map +0 -1
- package/types/main/components/modules/listing/hooks/useListing.d.ts +0 -15
- package/types/main/components/modules/listing/hooks/useListing.d.ts.map +0 -1
- package/types/main/components/modules/listing/index.d.ts.map +0 -1
- package/types/main/components/modules/listing/styles.d.ts +0 -21
- package/types/main/components/modules/listing/styles.d.ts.map +0 -1
- package/types/main/components/modules/prod/index.d.ts +0 -3
- package/types/main/components/modules/prod/index.d.ts.map +0 -1
- package/types/main/components/modules/prod/prod.d.ts +0 -4
- package/types/main/components/modules/prod/prod.d.ts.map +0 -1
- package/types/main/components/modules/prod/styles/index.d.ts +0 -25
- package/types/main/components/modules/prod/styles/index.d.ts.map +0 -1
|
@@ -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"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,WAAW,EAAEC,SAAS,EAAEC,MAAM,QAAQ,OAAO;AACnE,SAASC,QAAQ,EAAEC,SAAS,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAE9D,SAASC,YAAY,EAAEC,YAAY,QAAQ,oCAAoC;AAC/E,SAASC,SAAS,QAAQ,oCAAoC;AAE9D,OAAOC,MAAM,MAAM,UAAU;AAO7B,MAAMC,YAAY,GAAGF,SAAS,CAACG,KAAK,GAAGH,SAAS,CAACI,KAAK,GAAGJ,SAAS,CAACK,KAAK,GAAG,CAAC;;AAE5E;AACA;AACA;AACA;AACA,MAAMC,UAAiC,GAAGC,IAAA,IAA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AAE,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;EACF,CAAC,GAAAN,IAAA;EACC,MAAMO,SAAS,GAAGJ,OAAO,KAAK,SAAS;EAEvC,MAAMK,QAAQ,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C,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,WAA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Y,EAAEf,aAAc;IAC5BgB,yBAAyB,EAAC,qBAAqB;IAC/CC,2BAA2B,EAAE;EAAK,GAEjCvB,IACG,CAAC,GACL,IACA,CAAC,EACNY,SAAS,gBACR1B,KAAA,CAAA2B,aAAA,CAACvB,SAAS;IACRkC,iBAAiB,EAAC,QAAQ;IAC1BC,OAAO,EAAEvB,cAAe;IACxBwB,OAAO,EAAE/B;EAAmB,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"}
|