react-native-stallion 1.1.2 → 2.0.0-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.
- package/android/src/main/java/com/stallion/Stallion.java +94 -10
- package/android/src/main/java/com/stallion/StallionApiUtil.java +58 -0
- package/android/src/main/java/com/stallion/StallionCommonUtil.java +25 -0
- package/android/src/main/java/com/stallion/StallionConstants.java +51 -15
- package/android/src/main/java/com/stallion/StallionDownloadCallback.java +7 -0
- package/android/src/main/java/com/stallion/StallionDownloadManager.java +121 -0
- package/android/src/main/java/com/stallion/StallionErrorBoundary.java +28 -4
- package/android/src/main/java/com/stallion/StallionEventEmitter.java +144 -0
- package/android/src/main/java/com/stallion/StallionFileUtil.java +129 -0
- package/android/src/main/java/com/stallion/StallionModule.java +100 -154
- package/android/src/main/java/com/stallion/StallionRollbackManager.java +82 -0
- package/android/src/main/java/com/stallion/StallionStorage.java +16 -6
- package/android/src/main/java/com/stallion/StallionSynManager.java +142 -0
- package/ios/main/Stallion-Bridging-Header.h +4 -0
- package/ios/main/Stallion.m +7 -5
- package/ios/main/Stallion.swift +80 -39
- package/ios/main/StallionConstants.swift +52 -10
- package/ios/main/StallionDownloader.swift +39 -52
- package/ios/main/StallionErrorBoundary.h +1 -1
- package/ios/main/StallionErrorBoundary.m +45 -28
- package/ios/main/StallionEventEmitter.swift +20 -0
- package/ios/main/StallionEventManager.h +21 -0
- package/ios/main/StallionEventManager.m +57 -0
- package/ios/main/StallionModule.m +107 -23
- package/ios/main/StallionObjConstants.h +46 -0
- package/ios/main/StallionObjConstants.m +124 -0
- package/ios/main/StallionObjUtil.h +14 -0
- package/ios/main/StallionObjUtil.m +22 -0
- package/ios/main/StallionRollbackHandler.h +22 -0
- package/ios/main/StallionRollbackHandler.m +128 -0
- package/ios/main/StallionSyncManager.swift +149 -0
- package/ios/main/StallionUtil.swift +2 -12
- package/package.json +6 -2
- package/src/index.js +5 -15
- package/src/index.js.map +1 -1
- package/src/main/components/common/ButtonFullWidth/styles.js +2 -2
- package/src/main/components/common/ButtonFullWidth/styles.js.map +1 -1
- package/src/main/components/common/Footer/index.js +24 -31
- package/src/main/components/common/Footer/index.js.map +1 -1
- package/src/main/components/common/Footer/styles.js +34 -33
- package/src/main/components/common/Footer/styles.js.map +1 -1
- package/src/main/components/common/Header/index.js +12 -8
- package/src/main/components/common/Header/index.js.map +1 -1
- package/src/main/components/common/Header/styles.js +10 -5
- package/src/main/components/common/Header/styles.js.map +1 -1
- package/src/main/components/common/ProfileOverlay/index.js +18 -7
- package/src/main/components/common/ProfileOverlay/index.js.map +1 -1
- package/src/main/components/common/ProfileOverlay/styles.js +41 -8
- package/src/main/components/common/ProfileOverlay/styles.js.map +1 -1
- package/src/main/components/common/Spinner/index.js +3 -1
- package/src/main/components/common/Spinner/index.js.map +1 -1
- package/src/main/components/modules/listing/components/BucketCard.js +3 -3
- package/src/main/components/modules/listing/components/BucketCard.js.map +1 -1
- package/src/main/components/modules/listing/components/BundleCard.js +9 -5
- package/src/main/components/modules/listing/components/BundleCard.js.map +1 -1
- package/src/main/components/modules/listing/components/BundleCardInfoSection.js +20 -12
- package/src/main/components/modules/listing/components/BundleCardInfoSection.js.map +1 -1
- package/src/main/components/modules/listing/components/CardDescriptionContent.js +3 -2
- package/src/main/components/modules/listing/components/CardDescriptionContent.js.map +1 -1
- package/src/main/components/modules/listing/components/MetaCard.js +38 -0
- package/src/main/components/modules/listing/components/MetaCard.js.map +1 -0
- package/src/main/components/modules/listing/components/SlotView.js +82 -0
- package/src/main/components/modules/listing/components/SlotView.js.map +1 -0
- package/src/main/components/modules/listing/components/styles/index.js +28 -9
- package/src/main/components/modules/listing/components/styles/index.js.map +1 -1
- package/src/main/components/modules/listing/hooks/useListing.js +9 -2
- package/src/main/components/modules/listing/hooks/useListing.js.map +1 -1
- package/src/main/components/modules/listing/index.js +12 -4
- package/src/main/components/modules/listing/index.js.map +1 -1
- package/src/main/components/modules/login/components/styles/index.js +4 -4
- package/src/main/components/modules/login/components/styles/index.js.map +1 -1
- package/src/main/components/modules/login/index.js +1 -1
- package/src/main/components/modules/login/index.js.map +1 -1
- package/src/main/components/modules/login/styles/index.js +7 -6
- package/src/main/components/modules/login/styles/index.js.map +1 -1
- package/src/main/components/modules/modal/StallionModal.js +13 -11
- package/src/main/components/modules/modal/StallionModal.js.map +1 -1
- package/src/main/components/modules/modal/hooks/useStallionModal.js +87 -24
- package/src/main/components/modules/modal/hooks/useStallionModal.js.map +1 -1
- package/src/main/components/modules/prod/index.js +3 -0
- package/src/main/components/modules/prod/index.js.map +1 -0
- package/src/main/components/modules/prod/prod.js +35 -0
- package/src/main/components/modules/prod/prod.js.map +1 -0
- package/src/main/components/modules/prod/styles/index.js +20 -0
- package/src/main/components/modules/prod/styles/index.js.map +1 -0
- package/src/main/constants/apiConstants.js +3 -1
- package/src/main/constants/apiConstants.js.map +1 -1
- package/src/main/constants/appConstants.js +40 -4
- package/src/main/constants/appConstants.js.map +1 -1
- package/src/main/constants/colors.js +8 -6
- package/src/main/constants/colors.js.map +1 -1
- package/src/main/state/actionCreators/useDownloadActions.js +17 -37
- package/src/main/state/actionCreators/useDownloadActions.js.map +1 -1
- package/src/main/state/actionCreators/useMetaActions.js +4 -5
- package/src/main/state/actionCreators/useMetaActions.js.map +1 -1
- package/src/main/state/actionCreators/useUpdateMetaActions.js +100 -0
- package/src/main/state/actionCreators/useUpdateMetaActions.js.map +1 -0
- package/src/main/state/actionCreators/useUserActions.js +4 -4
- package/src/main/state/actionCreators/useUserActions.js.map +1 -1
- package/src/main/state/index.js +15 -2
- package/src/main/state/index.js.map +1 -1
- package/src/main/state/reducers/updateMetaReducer.js +36 -0
- package/src/main/state/reducers/updateMetaReducer.js.map +1 -0
- package/src/main/utils/ErrorBoundary.js +15 -14
- package/src/main/utils/ErrorBoundary.js.map +1 -1
- package/src/main/utils/EventUtil.js +28 -0
- package/src/main/utils/EventUtil.js.map +1 -0
- package/src/main/utils/SharedDataManager.js +15 -12
- package/src/main/utils/SharedDataManager.js.map +1 -1
- package/src/main/utils/StallionEventEmitter.js +20 -0
- package/src/main/utils/StallionEventEmitter.js.map +1 -0
- package/src/main/utils/StallionNativeUtils.js +60 -0
- package/src/main/utils/StallionNativeUtils.js.map +1 -0
- package/src/main/utils/apiUtils.js +8 -0
- package/src/main/utils/apiUtils.js.map +1 -1
- package/src/main/utils/useStallionModal.js +4 -3
- package/src/main/utils/useStallionModal.js.map +1 -1
- package/src/main/utils/useStallionUpdate.js +13 -0
- package/src/main/utils/useStallionUpdate.js.map +1 -0
- package/src/main/utils/withStallion.js +1 -4
- package/src/main/utils/withStallion.js.map +1 -1
- package/src/types/meta.types.js +13 -0
- package/src/types/meta.types.js.map +1 -1
- package/src/types/updateMeta.types.js +7 -0
- package/src/types/updateMeta.types.js.map +1 -0
- package/types/index.d.ts +3 -0
- package/types/index.d.ts.map +1 -1
- package/types/main/components/common/Footer/index.d.ts +1 -4
- package/types/main/components/common/Footer/index.d.ts.map +1 -1
- package/types/main/components/common/Footer/styles.d.ts +30 -29
- package/types/main/components/common/Footer/styles.d.ts.map +1 -1
- package/types/main/components/common/Header/index.d.ts.map +1 -1
- package/types/main/components/common/Header/styles.d.ts +6 -1
- package/types/main/components/common/Header/styles.d.ts.map +1 -1
- package/types/main/components/common/ProfileOverlay/index.d.ts.map +1 -1
- package/types/main/components/common/ProfileOverlay/styles.d.ts +38 -5
- package/types/main/components/common/ProfileOverlay/styles.d.ts.map +1 -1
- package/types/main/components/common/Spinner/index.d.ts.map +1 -1
- package/types/main/components/modules/listing/components/BucketCard.d.ts.map +1 -1
- package/types/main/components/modules/listing/components/BundleCard.d.ts.map +1 -1
- package/types/main/components/modules/listing/components/BundleCardInfoSection.d.ts +2 -0
- package/types/main/components/modules/listing/components/BundleCardInfoSection.d.ts.map +1 -1
- package/types/main/components/modules/listing/components/CardDescriptionContent.d.ts.map +1 -1
- package/types/main/components/modules/listing/components/MetaCard.d.ts +8 -0
- package/types/main/components/modules/listing/components/MetaCard.d.ts.map +1 -0
- package/types/main/components/modules/listing/components/SlotView.d.ts +5 -0
- package/types/main/components/modules/listing/components/SlotView.d.ts.map +1 -0
- package/types/main/components/modules/listing/components/styles/index.d.ts +24 -5
- package/types/main/components/modules/listing/components/styles/index.d.ts.map +1 -1
- package/types/main/components/modules/listing/hooks/useListing.d.ts +2 -0
- package/types/main/components/modules/listing/hooks/useListing.d.ts.map +1 -1
- package/types/main/components/modules/listing/index.d.ts.map +1 -1
- package/types/main/components/modules/login/components/styles/index.d.ts +1 -1
- package/types/main/components/modules/login/styles/index.d.ts +4 -3
- package/types/main/components/modules/login/styles/index.d.ts.map +1 -1
- package/types/main/components/modules/modal/StallionModal.d.ts.map +1 -1
- package/types/main/components/modules/modal/hooks/useStallionModal.d.ts +2 -5
- package/types/main/components/modules/modal/hooks/useStallionModal.d.ts.map +1 -1
- package/types/main/components/modules/prod/index.d.ts +3 -0
- package/types/main/components/modules/prod/index.d.ts.map +1 -0
- package/types/main/components/modules/prod/prod.d.ts +4 -0
- package/types/main/components/modules/prod/prod.d.ts.map +1 -0
- package/types/main/components/modules/prod/styles/index.d.ts +16 -0
- package/types/main/components/modules/prod/styles/index.d.ts.map +1 -0
- package/types/main/constants/apiConstants.d.ts +4 -2
- package/types/main/constants/apiConstants.d.ts.map +1 -1
- package/types/main/constants/appConstants.d.ts +37 -4
- package/types/main/constants/appConstants.d.ts.map +1 -1
- package/types/main/constants/colors.d.ts +2 -0
- package/types/main/constants/colors.d.ts.map +1 -1
- package/types/main/index.d.ts +1 -1
- package/types/main/state/actionCreators/useDownloadActions.d.ts +3 -1
- package/types/main/state/actionCreators/useDownloadActions.d.ts.map +1 -1
- package/types/main/state/actionCreators/useMetaActions.d.ts +1 -1
- package/types/main/state/actionCreators/useMetaActions.d.ts.map +1 -1
- package/types/main/state/actionCreators/useUpdateMetaActions.d.ts +7 -0
- package/types/main/state/actionCreators/useUpdateMetaActions.d.ts.map +1 -0
- package/types/main/state/index.d.ts.map +1 -1
- package/types/main/state/reducers/updateMetaReducer.d.ts +9 -0
- package/types/main/state/reducers/updateMetaReducer.d.ts.map +1 -0
- package/types/main/utils/ErrorBoundary.d.ts +1 -1
- package/types/main/utils/ErrorBoundary.d.ts.map +1 -1
- package/types/main/utils/EventUtil.d.ts +9 -0
- package/types/main/utils/EventUtil.d.ts.map +1 -0
- package/types/main/utils/SharedDataManager.d.ts +8 -6
- package/types/main/utils/SharedDataManager.d.ts.map +1 -1
- package/types/main/utils/StallionEventEmitter.d.ts +14 -0
- package/types/main/utils/StallionEventEmitter.d.ts.map +1 -0
- package/types/main/utils/StallionNativeUtils.d.ts +15 -0
- package/types/main/utils/StallionNativeUtils.d.ts.map +1 -0
- package/types/main/utils/apiUtils.d.ts +5 -0
- package/types/main/utils/apiUtils.d.ts.map +1 -1
- package/types/main/utils/useStallionUpdate.d.ts +3 -0
- package/types/main/utils/useStallionUpdate.d.ts.map +1 -0
- package/types/main/utils/withStallion.d.ts +1 -2
- package/types/main/utils/withStallion.d.ts.map +1 -1
- package/types/types/globalProvider.types.d.ts +5 -1
- package/types/types/globalProvider.types.d.ts.map +1 -1
- package/types/types/meta.types.d.ts +19 -3
- package/types/types/meta.types.d.ts.map +1 -1
- package/types/types/updateMeta.types.d.ts +35 -0
- package/types/types/updateMeta.types.d.ts.map +1 -0
- package/types/types/utils.types.d.ts +9 -7
- package/types/types/utils.types.d.ts.map +1 -1
- package/android/src/main/java/com/stallion/StallionZip.java +0 -127
- package/src/main/utils/StallionNaitveUtils.js +0 -7
- package/src/main/utils/StallionNaitveUtils.js.map +0 -1
- package/types/main/utils/StallionNaitveUtils.d.ts +0 -7
- package/types/main/utils/StallionNaitveUtils.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["StyleSheet","HEADER_SLAB_HEIGHT","STD_MARGIN","COLORS","styles","create","cardContainer","margin","backgroundColor","white","borderRadius","shadowColor","black","shadowOffset","height","width","shadowOpacity","elevation","shadowRadius","infoSection","actionSection","flex","alignItems","rowContainer","flexDirection","justifyContent","appliedText","color","green","fontWeight","fontSize","container","divider","borderBottomWidth","opacity","
|
|
1
|
+
{"version":3,"names":["StyleSheet","HEADER_SLAB_HEIGHT","STD_MARGIN","COLORS","styles","create","cardContainer","margin","backgroundColor","white","borderRadius","shadowColor","black","shadowOffset","height","width","shadowOpacity","elevation","shadowRadius","borderWidth","borderColor","black2","infoSection","actionSection","flex","alignItems","rowContainer","flexDirection","justifyContent","padding","colContainer","downloadButton","appliedText","color","green","fontWeight","fontSize","container","metaConainer","divider","borderBottomWidth","opacity","marginBottom","subText","marginVertical","text_major","titleText","bold","releaseNoteText","releaseNoteDescriptionText","descContainer","black1"],"sourceRoot":"../../../../../../../../src","sources":["main/components/modules/listing/components/styles/index.ts"],"mappings":"AAAA,SAASA,UAAU,QAAQ,cAAc;AAEzC,SACEC,kBAAkB,EAClBC,UAAU,QACL,uCAAuC;AAC9C,SAASC,MAAM,QAAQ,iCAAiC;AAExD,MAAMC,MAAM,GAAGJ,UAAU,CAACK,MAAM,CAAC;EAC/BC,aAAa,EAAE;IACbC,MAAM,EAAEL,UAAU;IAClBM,eAAe,EAAEL,MAAM,CAACM,KAAK;IAC7BC,YAAY,EAAE,CAAC;IACfC,WAAW,EAAER,MAAM,CAACS,KAAK;IACzBC,YAAY,EAAE;MAAEC,MAAM,EAAE,CAAC;MAAEC,KAAK,EAAE;IAAE,CAAC;IACrCC,aAAa,EAAE,GAAG;IAClBC,SAAS,EAAE,CAAC;IACZC,YAAY,EAAE,CAAC;IACfC,WAAW,EAAE,GAAG;IAChBC,WAAW,EAAEjB,MAAM,CAACkB;EACtB,CAAC;EACDC,WAAW,EAAE;IACXP,KAAK,EAAE;EACT,CAAC;EACDQ,aAAa,EAAE;IACbC,IAAI,EAAE,CAAC;IACPC,UAAU,EAAE;EACd,CAAC;EACDC,YAAY,EAAE;IACZC,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE,eAAe;IAC/BH,UAAU,EAA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M,eAAe,EAAEL,MAAM,CAACgD;EAC1B;AACF,CAAC,CAAC;AAEF,eAAe/C,MAAM"}
|
|
@@ -5,6 +5,8 @@ const useListing = () => {
|
|
|
5
5
|
const {
|
|
6
6
|
bucketState,
|
|
7
7
|
bundleState,
|
|
8
|
+
metaState,
|
|
9
|
+
userState,
|
|
8
10
|
actions: {
|
|
9
11
|
fetchBuckets,
|
|
10
12
|
fetchBundles,
|
|
@@ -65,18 +67,23 @@ const useListing = () => {
|
|
|
65
67
|
}
|
|
66
68
|
}, [fetchBundles, bundlesListingEnabled, bundleState.selectedBucketId, bundleState.pageOffset, bundleState.isNextPageLoading, bundleState.isLoading]);
|
|
67
69
|
useEffect(() => {
|
|
70
|
+
var _userState$data;
|
|
68
71
|
fetchListing();
|
|
69
|
-
|
|
72
|
+
if (!((_userState$data = userState.data) !== null && _userState$data !== void 0 && _userState$data.email)) {
|
|
73
|
+
getUserProfile();
|
|
74
|
+
}
|
|
70
75
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
71
76
|
}, []);
|
|
72
77
|
return {
|
|
73
78
|
listingData,
|
|
74
79
|
listingError,
|
|
75
80
|
listingLoading,
|
|
81
|
+
metaState,
|
|
76
82
|
fetchListing,
|
|
77
83
|
setBucketSelection,
|
|
78
84
|
fetchNextPage,
|
|
79
|
-
nextPageLoading
|
|
85
|
+
nextPageLoading,
|
|
86
|
+
isBackEnabled: bundleState !== null && bundleState !== void 0 && bundleState.selectedBucketId ? true : false
|
|
80
87
|
};
|
|
81
88
|
};
|
|
82
89
|
export default useListing;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useCallback","useContext","useEffect","useMemo","CARD_TYPES","IS_ANDROID","VERSION_PREFIX","GlobalContext","useListing","bucketState","bundleState","actions","fetchBuckets","fetchBundles","selectBucket","getUserProfile","bundlesListingEnabled","selectedBucketId","listingLoading","isLoading","nextPageLoading","isNextPageLoading","listingData","_bucketState$data","_bundleState$data","data","map","bundleData","type","BUNDLE","id","version","name","description","releaseNote","updatedAt","author","fullName","downloadUrl","bucketItem","BUCKET","bundleCount","latestAndroidBundleVersion","latestIosBundleVersion","listingError","error","fetchListing","setBucketSelection","bucketId","fetchNextPage","pageOffset"],"sourceRoot":"../../../../../../../src","sources":["main/components/modules/listing/hooks/useListing.ts"],"mappings":"AAAA,SAASA,WAAW,EAAEC,UAAU,EAAEC,SAAS,EAAEC,OAAO,QAAQ,OAAO;AAEnE,SACEC,UAAU,EACVC,UAAU,EACVC,cAAc,QACT,oCAAoC;AAC3C,SAASC,aAAa,QAAQ,mBAAmB;AAIjD,MAAMC,UAAU,GAAGA,CAAA,KAAM;EACvB,MAAM;IACJC,WAAW;IACXC,WAAW;IACXC,OAAO,EAAE;MAAEC,YAAY;MAAEC,YAAY;MAAEC,YAAY;MAAEC;IAAe;EACtE,CAAC,
|
|
1
|
+
{"version":3,"names":["useCallback","useContext","useEffect","useMemo","CARD_TYPES","IS_ANDROID","VERSION_PREFIX","GlobalContext","useListing","bucketState","bundleState","metaState","userState","actions","fetchBuckets","fetchBundles","selectBucket","getUserProfile","bundlesListingEnabled","selectedBucketId","listingLoading","isLoading","nextPageLoading","isNextPageLoading","listingData","_bucketState$data","_bundleState$data","data","map","bundleData","type","BUNDLE","id","version","name","description","releaseNote","updatedAt","author","fullName","downloadUrl","bucketItem","BUCKET","bundleCount","latestAndroidBundleVersion","latestIosBundleVersion","listingError","error","fetchListing","setBucketSelection","bucketId","fetchNextPage","pageOffset","_userState$data","email","isBackEnabled"],"sourceRoot":"../../../../../../../src","sources":["main/components/modules/listing/hooks/useListing.ts"],"mappings":"AAAA,SAASA,WAAW,EAAEC,UAAU,EAAEC,SAAS,EAAEC,OAAO,QAAQ,OAAO;AAEnE,SACEC,UAAU,EACVC,UAAU,EACVC,cAAc,QACT,oCAAoC;AAC3C,SAASC,aAAa,QAAQ,mBAAmB;AAIjD,MAAMC,UAAU,GAAGA,CAAA,KAAM;EACvB,MAAM;IACJC,WAAW;IACXC,WA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C,QAAQ,CAAC;IACtBnC,YAAY,CAACmC,QAAQ,CAAC;EACxB,CAAC,EACD,CAAClC,YAAY,EAAED,YAAY,CAC7B,CAAC;EAED,MAAMoC,aAAa,GAAGnD,WAAW,CAAC,MAAM;IACtC,IACEkB,qBAAqB,IACrB,CAACR,WAAW,CAACa,iBAAiB,IAC9B,CAACb,WAAW,CAACW,SAAS,IACtBX,WAAW,CAAC0C,UAAU,EACtB;MACArC,YAAY,CAACL,WAAW,CAACS,gBAAgB,EAAET,WAAW,CAAC0C,UAAU,CAAC;IACpE;EACF,CAAC,EAAE,CACDrC,YAAY,EACZG,qBAAqB,EACrBR,WAAW,CAACS,gBAAgB,EAC5BT,WAAW,CAAC0C,UAAU,EACtB1C,WAAW,CAACa,iBAAiB,EAC7Bb,WAAW,CAACW,SAAS,CACtB,CAAC;EAEFnB,SAAS,CAAC,MAAM;IAAA,IAAAmD,eAAA;IACdL,YAAY,CAAC,CAAC;IACd,IAAI,GAAAK,eAAA,GAACzC,SAAS,CAACe,IAAI,cAAA0B,eAAA,eAAdA,eAAA,CAAgBC,KAAK,GAAE;MAC1BrC,cAAc,CAAC,CAAC;IAClB;IACA;EACF,CAAC,EAAE,EAAE,CAAC;EAEN,OAAO;IACLO,WAAW;IACXsB,YAAY;IACZ1B,cAAc;IACdT,SAAS;IACTqC,YAAY;IACZC,kBAAkB;IAClBE,aAAa;IACb7B,eAAe;IACfiC,aAAa,EAAE7C,WAAW,aAAXA,WAAW,eAAXA,WAAW,CAAES,gBAAgB,GAAG,IAAI,GAAG;EACxD,CAAC;AACH,CAAC;AAED,eAAeX,UAAU"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
import React, { memo } from 'react';
|
|
2
|
+
import React, { memo, useEffect, useState } from 'react';
|
|
3
3
|
import { RefreshControl, FlatList } from 'react-native';
|
|
4
4
|
import useListing from './hooks/useListing';
|
|
5
5
|
import ErrorView from '../../../components/common/ErrorView';
|
|
@@ -8,6 +8,7 @@ import { CARD_TYPES, END_REACH_THRESHOLD, IS_ANDROID } from '../../../constants/
|
|
|
8
8
|
import BundleCard from './components/BundleCard';
|
|
9
9
|
import FooterLoader from '../../common/FooterLoader';
|
|
10
10
|
import styles from './styles';
|
|
11
|
+
import SlotView from './components/SlotView';
|
|
11
12
|
const Listing = () => {
|
|
12
13
|
const {
|
|
13
14
|
listingData,
|
|
@@ -16,8 +17,14 @@ const Listing = () => {
|
|
|
16
17
|
fetchListing,
|
|
17
18
|
setBucketSelection,
|
|
18
19
|
fetchNextPage,
|
|
19
|
-
nextPageLoading
|
|
20
|
+
nextPageLoading,
|
|
21
|
+
metaState,
|
|
22
|
+
isBackEnabled
|
|
20
23
|
} = useListing();
|
|
24
|
+
const [isMounted, setIsMounted] = useState(false);
|
|
25
|
+
useEffect(() => {
|
|
26
|
+
setIsMounted(true);
|
|
27
|
+
}, [setIsMounted]);
|
|
21
28
|
if (listingError) {
|
|
22
29
|
return /*#__PURE__*/React.createElement(ErrorView, {
|
|
23
30
|
error: listingError,
|
|
@@ -27,7 +34,8 @@ const Listing = () => {
|
|
|
27
34
|
if (listingLoading && !listingData.length && !IS_ANDROID) {
|
|
28
35
|
return /*#__PURE__*/React.createElement(FooterLoader, null);
|
|
29
36
|
}
|
|
30
|
-
|
|
37
|
+
if (!isMounted) return null;
|
|
38
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, isBackEnabled ? null : /*#__PURE__*/React.createElement(SlotView, metaState.stageSlot), /*#__PURE__*/React.createElement(FlatList, {
|
|
31
39
|
style: styles.mainContainer,
|
|
32
40
|
contentContainerStyle: styles.mainListContainer,
|
|
33
41
|
refreshControl: /*#__PURE__*/React.createElement(RefreshControl, {
|
|
@@ -49,7 +57,7 @@ const Listing = () => {
|
|
|
49
57
|
ListFooterComponent: nextPageLoading ? /*#__PURE__*/React.createElement(FooterLoader, null) : null,
|
|
50
58
|
onEndReached: fetchNextPage,
|
|
51
59
|
onEndReachedThreshold: END_REACH_THRESHOLD
|
|
52
|
-
});
|
|
60
|
+
}));
|
|
53
61
|
};
|
|
54
62
|
export default /*#__PURE__*/memo(Listing);
|
|
55
63
|
const BucketOrBundle = /*#__PURE__*/memo(_ref2 => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","memo","RefreshControl","FlatList","useListing","ErrorView","BucketCard","CARD_TYPES","END_REACH_THRESHOLD","IS_ANDROID","BundleCard","FooterLoader","styles","Listing","listingData","listingLoading","listingError","fetchListing","setBucketSelection","fetchNextPage","nextPageLoading","createElement","error","onRetry","length","style","mainContainer","contentContainerStyle","mainListContainer","refreshControl","refreshing","onRefresh","data","renderItem","_ref","item","BucketOrBundle","key","id","keyExtractor","ListFooterComponent","onEndReached","onEndReachedThreshold","_ref2","type","BUCKET","_extends","handlePress","BUNDLE"],"sourceRoot":"../../../../../../src","sources":["main/components/modules/listing/index.tsx"],"mappings":";AAAA,OAAOA,KAAK,IAAIC,IAAI,QAAQ,OAAO;
|
|
1
|
+
{"version":3,"names":["React","memo","useEffect","useState","RefreshControl","FlatList","useListing","ErrorView","BucketCard","CARD_TYPES","END_REACH_THRESHOLD","IS_ANDROID","BundleCard","FooterLoader","styles","SlotView","Listing","listingData","listingLoading","listingError","fetchListing","setBucketSelection","fetchNextPage","nextPageLoading","metaState","isBackEnabled","isMounted","setIsMounted","createElement","error","onRetry","length","Fragment","stageSlot","style","mainContainer","contentContainerStyle","mainListContainer","refreshControl","refreshing","onRefresh","data","renderItem","_ref","item","BucketOrBundle","key","id","keyExtractor","ListFooterComponent","onEndReached","onEndReachedThreshold","_ref2","type","BUCKET","_extends","handlePress","BUNDLE"],"sourceRoot":"../../../../../../src","sources":["main/components/modules/listing/index.tsx"],"mappings":";AAAA,OAAOA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E,EAChD,CAAC,GAED,CAAAN,IAAI,aAAJA,IAAI,uBAAJA,IAAI,CAAEY,IAAI,MAAK5C,UAAU,CAACgD,MAAM,iBAC/BzD,KAAA,CAAA4B,aAAA,CAAChB,UAAU,EAAA2C,QAAA;IAACT,GAAG,EAAEL,IAAI,CAACM;EAAG,GAAKN,IAAI,CAAG,CACtC,IACC,IACH;AACH,CACF,CAAC"}
|
|
@@ -10,18 +10,18 @@ const styles = StyleSheet.create({
|
|
|
10
10
|
color: COLORS.text_major
|
|
11
11
|
},
|
|
12
12
|
textInp: {
|
|
13
|
-
width: '
|
|
13
|
+
width: '90%',
|
|
14
14
|
height: HEADER_SLAB_HEIGHT,
|
|
15
15
|
borderWidth: 1,
|
|
16
16
|
borderColor: COLORS.black2,
|
|
17
17
|
borderRadius: STD_MARGIN,
|
|
18
|
-
|
|
18
|
+
marginBottom: STD_MARGIN,
|
|
19
19
|
paddingHorizontal: STD_MARGIN * 2,
|
|
20
20
|
color: COLORS.text_major
|
|
21
21
|
},
|
|
22
22
|
buttonContainer: {
|
|
23
|
-
width: '
|
|
24
|
-
margin: STD_MARGIN
|
|
23
|
+
width: '90%',
|
|
24
|
+
margin: STD_MARGIN * 2
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
export default styles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["StyleSheet","HEADER_SLAB_HEIGHT","STD_MARGIN","COLORS","styles","create","center","justifyContent","alignItems","otpInfoText","color","text_major","textInp","width","height","borderWidth","borderColor","black2","borderRadius","
|
|
1
|
+
{"version":3,"names":["StyleSheet","HEADER_SLAB_HEIGHT","STD_MARGIN","COLORS","styles","create","center","justifyContent","alignItems","otpInfoText","color","text_major","textInp","width","height","borderWidth","borderColor","black2","borderRadius","marginBottom","paddingHorizontal","buttonContainer","margin"],"sourceRoot":"../../../../../../../../src","sources":["main/components/modules/login/components/styles/index.ts"],"mappings":"AAAA,SAASA,UAAU,QAAQ,cAAc;AAEzC,SACEC,kBAAkB,EAClBC,UAAU,QACL,uCAAuC;AAC9C,SAASC,MAAM,QAAQ,iCAAiC;AAExD,MAAMC,MAAM,GAAGJ,UAAU,CAACK,MAAM,CAAC;EAC/BC,MAAM,EAAE;IACNC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd,CAAC;EACDC,WAAW,EAAE;IACXC,KAAK,EAAEP,MAAM,CAACQ;EAChB,CAAC;EACDC,OAAO,EAAE;IACPC,KAAK,EAAE,KAAK;IACZC,MAAM,EAAEb,kBAAkB;IAC1Bc,WAAW,EAAE,CAAC;IACdC,WAAW,EAAEb,MAAM,CAACc,MAAM;IAC1BC,YAAY,EAAEhB,UAAU;IACxBiB,YAAY,EAAEjB,UAAU;IACxBkB,iBAAiB,EAAElB,UAAU,GAAG,CAAC;IACjCQ,KAAK,EAAEP,MAAM,CAACQ;EAChB,CAAC;EACDU,eAAe,EAAE;IACfR,KAAK,EAAE,KAAK;IACZS,MAAM,EAAEpB,UAAU,GAAG;EACvB;AACF,CAAC,CAAC;AAEF,eAAeE,MAAM"}
|
|
@@ -24,7 +24,7 @@ const Login = () => {
|
|
|
24
24
|
return /*#__PURE__*/React.createElement(View, {
|
|
25
25
|
style: styles.pageContainer
|
|
26
26
|
}, /*#__PURE__*/React.createElement(View, {
|
|
27
|
-
style: [styles.logoContainer
|
|
27
|
+
style: [styles.logoContainer]
|
|
28
28
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
29
29
|
style: styles.logoText
|
|
30
30
|
}, Login_TITLE)), /*#__PURE__*/React.createElement(KeyboardAvoidingView, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","Text","KeyboardAvoidingView","Otp","Email","DEFAULT_ERROR_PREFIX","KEYBOARD_AVOIDING_BEHAVIOUR","Login_TITLE","useLoginFlow","styles","Spinner","Login","email","password","otp","handleEmailChange","handlePasswordChange","handleOtpChange","handleEmailSubmit","handleOtpSubmit","isOtpRequested","userApiError","userApiIsLoading","handleBack","createElement","style","pageContainer","logoContainer","
|
|
1
|
+
{"version":3,"names":["React","View","Text","KeyboardAvoidingView","Otp","Email","DEFAULT_ERROR_PREFIX","KEYBOARD_AVOIDING_BEHAVIOUR","Login_TITLE","useLoginFlow","styles","Spinner","Login","email","password","otp","handleEmailChange","handlePasswordChange","handleOtpChange","handleEmailSubmit","handleOtpSubmit","isOtpRequested","userApiError","userApiIsLoading","handleBack","createElement","style","pageContainer","logoContainer","logoText","behavior","center","inputSection","handleSubmitClick","isEditable","spinnerContainer","errorText"],"sourceRoot":"../../../../../../src","sources":["main/components/modules/login/index.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,EAAEC,oBAAoB,QAAQ,cAAc;AAE/D,OAAOC,GAAG,MAAM,kBAAkB;AAClC,OAAOC,KAAK,MAAM,oBAAoB;AAEtC,SACEC,oBAAoB,EACpBC,2BAA2B,EAC3BC,WAAW,QACN,iCAAiC;AACxC,OAAOC,YAAY,MAAM,sBAAsB;AAC/C,OAAOC,MAAM,MAAM,UAAU;AAC7B,OAAOC,OAAO,MAAM,sBAAsB;AAE1C,MAAMC,KAAe,GAAGA,CAAA,KAAM;EAC5B,MAAM;IACJC,KAAK;IACLC,QAAQ;IACRC,GAAG;IACHC,iBAAiB;IACjBC,oBAAoB;IACpBC,eAAe;IACfC,iBAAiB;IACjBC,eAAe;IACfC,cAAc;IACdC,YAAY;IACZC,gBAAgB;IAChBC;EACF,CAAC,GAAGf,YAAY,CAAC,CAAC;EAClB,oBACET,KAAA,CAAAyB,aAAA,CAACxB,IAAI;IAACyB,KAAK,EAAEhB,MAAM,CAACiB;EAAc,gBAChC3B,KAAA,CAAAyB,aAAA,CAACxB,IAAI;IAACyB,KAAK,EAAE,CAAChB,MAAM,CAACkB,aAAa;EAAE,gBAClC5B,KAAA,CAAAyB,aAAA,CAACvB,IAAI;IAACwB,KAAK,EAAEhB,MAAM,CAACmB;EAAS,GAAErB,WAAkB,CAC7C,CAAC,eACPR,KAAA,CAAAyB,aAAA,CAACtB,oBAAoB;IACnB2B,QAAQ,EAAEvB,2BAA4B;IACtCmB,KAAK,EAAE,CAAChB,MAAM,CAACqB,MAAM,EAAErB,MAAM,CAACsB,YAAY;EAAE,GAE3CX,cAAc,gBACbrB,KAAA,CAAAyB,aAAA,CAACrB,GAAG;IACFW,GAAG,EAAEA,GAAI;IACTF,KAAK,EAAEA,KAAM;IACbK,eAAe,EAAEA,eAAgB;IACjCe,iBAAiB,EAAEb,eAAgB;IACnCI,UAAU,EAAEA,UAAW;IACvBU,UAAU,EAAE,CAACX;EAAiB,CAC/B,CAAC,gBAEFvB,KAAA,CAAAyB,aAAA,CAACpB,KAAK;IACJQ,KAAK,EAAEA,KAAM;IACbC,QAAQ,EAAEA,QAAS;IACnBoB,UAAU,EAAE,CAACX,gBAAiB;IAC9BP,iBAAiB,EAAEA,iBAAkB;IACrCC,oBAAoB,EAAEA,oBAAqB;IAC3CgB,iBAAiB,EAAEd;EAAkB,CACtC,CACF,EACAI,gBAAgB,gBACfvB,KAAA,CAAAyB,aAAA,CAACxB,IAAI;IAACyB,KAAK,EAAEhB,MAAM,CAACyB;EAAiB,gBACnCnC,KAAA,CAAAyB,aAAA,CAACd,OAAO,MAAE,CACN,CAAC,GACL,IAAI,EACPW,YAAY,gBACXtB,KAAA,CAAAyB,aAAA,CAACvB,IAAI;IAACwB,KAAK,EAAEhB,MAAM,CAAC0B;EAAU,GAC3B9B,oBAAoB,EACpBgB,YACG,CAAC,GACL,IACgB,CAClB,CAAC;AAEX,CAAC;AAED,eAAeV,KAAK"}
|
|
@@ -11,16 +11,17 @@ const styles = StyleSheet.create({
|
|
|
11
11
|
alignItems: 'center'
|
|
12
12
|
},
|
|
13
13
|
logoContainer: {
|
|
14
|
-
|
|
14
|
+
width: '90%',
|
|
15
|
+
alignSelf: 'center',
|
|
16
|
+
paddingVertical: HEADER_SLAB_HEIGHT / 2
|
|
15
17
|
},
|
|
16
18
|
logoText: {
|
|
17
|
-
fontSize: HEADER_SLAB_HEIGHT,
|
|
18
|
-
color: COLORS.
|
|
19
|
+
fontSize: HEADER_SLAB_HEIGHT / 2.5,
|
|
20
|
+
color: COLORS.black,
|
|
21
|
+
fontWeight: '500'
|
|
19
22
|
},
|
|
20
23
|
inputSection: {
|
|
21
|
-
|
|
22
|
-
justifyContent: 'flex-start',
|
|
23
|
-
paddingTop: HEADER_SLAB_HEIGHT
|
|
24
|
+
justifyContent: 'flex-start'
|
|
24
25
|
},
|
|
25
26
|
errorText: {
|
|
26
27
|
fontSize: HEADER_SLAB_HEIGHT / 4,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["StyleSheet","HEADER_SLAB_HEIGHT","COLORS","styles","create","pageContainer","flex","backgroundColor","white","center","justifyContent","alignItems","logoContainer","logoText","fontSize","color","
|
|
1
|
+
{"version":3,"names":["StyleSheet","HEADER_SLAB_HEIGHT","COLORS","styles","create","pageContainer","flex","backgroundColor","white","center","justifyContent","alignItems","logoContainer","width","alignSelf","paddingVertical","logoText","fontSize","color","black","fontWeight","inputSection","errorText","red","padding","spinnerContainer","margin"],"sourceRoot":"../../../../../../../src","sources":["main/components/modules/login/styles/index.ts"],"mappings":"AAAA,SAASA,UAAU,QAAQ,cAAc;AAEzC,SAASC,kBAAkB,QAAQ,oCAAoC;AACvE,SAASC,MAAM,QAAQ,8BAA8B;AAErD,MAAMC,MAAM,GAAGH,UAAU,CAACI,MAAM,CAAC;EAC/BC,aAAa,EAAE;IACbC,IAAI,EAAE,CAAC;IACPC,eAAe,EAAEL,MAAM,CAACM;EAC1B,CAAC;EACDC,MAAM,EAAE;IACNC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd,CAAC;EACDC,aAAa,EAAE;IACbC,KAAK,EAAE,KAAK;IACZC,SAAS,EAAE,QAAQ;IACnBC,eAAe,EAAEd,kBAAkB,GAAG;EACxC,CAAC;EACDe,QAAQ,EAAE;IACRC,QAAQ,EAAEhB,kBAAkB,GAAG,GAAG;IAClCiB,KAAK,EAAEhB,MAAM,CAACiB,KAAK;IACnBC,UAAU,EAAE;EACd,CAAC;EACDC,YAAY,EAAE;IACZX,cAAc,EAAE;EAClB,CAAC;EACDY,SAAS,EAAE;IACTL,QAAQ,EAAEhB,kBAAkB,GAAG,CAAC;IAChCiB,KAAK,EAAEhB,MAAM,CAACqB,GAAG;IACjBC,OAAO,EAAEvB,kBAAkB,GAAG;EAChC,CAAC;EACDwB,gBAAgB,EAAE;IAChBC,MAAM,EAAEzB,kBAAkB,GAAG;EAC/B;AACF,CAAC,CAAC;AAEF,eAAeE,MAAM"}
|
|
@@ -9,6 +9,8 @@ import Listing from '../listing';
|
|
|
9
9
|
import useStallionModal from './hooks/useStallionModal';
|
|
10
10
|
import OverlayLoader from '../../../components/common/OverlayLoader';
|
|
11
11
|
import ProfileOverlay from '../../common/ProfileOverlay';
|
|
12
|
+
import { SWITCH_STATES } from '../../../../types/meta.types';
|
|
13
|
+
import Prod from '../prod';
|
|
12
14
|
const StallionModal = () => {
|
|
13
15
|
var _userState$data, _userState$data2, _userState$data3;
|
|
14
16
|
const {
|
|
@@ -17,17 +19,17 @@ const StallionModal = () => {
|
|
|
17
19
|
onBackPress,
|
|
18
20
|
onClosePress,
|
|
19
21
|
loginRequired,
|
|
20
|
-
metaState,
|
|
21
22
|
isBackEnabled,
|
|
22
|
-
activeBucketMeta,
|
|
23
|
-
toggleStallionSwitch,
|
|
24
23
|
isDownloading,
|
|
25
24
|
downloadProgress,
|
|
26
|
-
downloadError,
|
|
27
25
|
showProfileSection,
|
|
26
|
+
metaState,
|
|
28
27
|
closeProfileSection,
|
|
29
28
|
presentProfileSection,
|
|
30
|
-
performLogout
|
|
29
|
+
performLogout,
|
|
30
|
+
downloadError,
|
|
31
|
+
handleSwitch,
|
|
32
|
+
isRestartRequired
|
|
31
33
|
} = useStallionModal();
|
|
32
34
|
return /*#__PURE__*/React.createElement(Modal, {
|
|
33
35
|
transparent: true,
|
|
@@ -44,18 +46,18 @@ const StallionModal = () => {
|
|
|
44
46
|
onProfilePress: presentProfileSection
|
|
45
47
|
}), /*#__PURE__*/React.createElement(View, {
|
|
46
48
|
style: styles.listingSection
|
|
47
|
-
}, loginRequired ? /*#__PURE__*/React.createElement(Login, null) : /*#__PURE__*/React.createElement(Listing, null), isDownloading ? /*#__PURE__*/React.createElement(OverlayLoader, {
|
|
49
|
+
}, loginRequired ? /*#__PURE__*/React.createElement(Login, null) : metaState.switchState === SWITCH_STATES.STAGE ? /*#__PURE__*/React.createElement(Listing, null) : /*#__PURE__*/React.createElement(Prod, null), isDownloading ? /*#__PURE__*/React.createElement(OverlayLoader, {
|
|
48
50
|
currentDownloadFraction: downloadProgress
|
|
49
51
|
}) : null, showProfileSection ? /*#__PURE__*/React.createElement(ProfileOverlay, {
|
|
50
52
|
fullName: (_userState$data2 = userState.data) === null || _userState$data2 === void 0 ? void 0 : _userState$data2.fullName,
|
|
51
53
|
email: (_userState$data3 = userState.data) === null || _userState$data3 === void 0 ? void 0 : _userState$data3.email,
|
|
52
54
|
onBackPress: closeProfileSection,
|
|
53
55
|
onLogoutPress: performLogout
|
|
54
|
-
}) : null), loginRequired ? null : /*#__PURE__*/React.createElement(Footer, {
|
|
55
|
-
switchIsOn: metaState.switchState,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
}) : null), loginRequired || showProfileSection ? null : /*#__PURE__*/React.createElement(Footer, {
|
|
57
|
+
switchIsOn: metaState.switchState === SWITCH_STATES.STAGE,
|
|
58
|
+
onSwitchToggle: handleSwitch,
|
|
59
|
+
errorMessage: downloadError,
|
|
60
|
+
isRestartRequired: isRestartRequired
|
|
59
61
|
})) : null);
|
|
60
62
|
};
|
|
61
63
|
const styles = StyleSheet.create({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Modal","SafeAreaView","StyleSheet","View","Login","Header","Footer","HEADER_TITLE","COLORS","Listing","useStallionModal","OverlayLoader","ProfileOverlay","StallionModal","_userState$data","_userState$data2","_userState$data3","userState","isModalVisible","onBackPress","onClosePress","loginRequired","
|
|
1
|
+
{"version":3,"names":["React","Modal","SafeAreaView","StyleSheet","View","Login","Header","Footer","HEADER_TITLE","COLORS","Listing","useStallionModal","OverlayLoader","ProfileOverlay","SWITCH_STATES","Prod","StallionModal","_userState$data","_userState$data2","_userState$data3","userState","isModalVisible","onBackPress","onClosePress","loginRequired","isBackEnabled","isDownloading","downloadProgress","showProfileSection","metaState","closeProfileSection","presentProfileSection","performLogout","downloadError","handleSwitch","isRestartRequired","createElement","transparent","animationType","visible","onRequestClose","style","styles","container","userName","data","fullName","title","onProfilePress","listingSection","switchState","STAGE","currentDownloadFraction","email","onLogoutPress","switchIsOn","onSwitchToggle","errorMessage","create","flex","justifyContent","alignContent","backgroundColor","white"],"sourceRoot":"../../../../../../src","sources":["main/components/modules/modal/StallionModal.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,KAAK,EAAEC,YAAY,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAEpE,OAAOC,KAAK,MAAM,UAAU;AAC5B,OAAOC,MAAM,MAAM,mCAAmC;AACtD,OAAOC,MAAM,MAAM,mCAAmC;AACtD,SAASC,YAAY,QAAQ,iCAAiC;AAE9D,SAASC,MAAM,QAAQ,2BAA2B;AAClD,OAAOC,OAAO,MAAM,YAAY;AAChC,OAAOC,gBAAgB,MAAM,0BAA0B;AACvD,OAAOC,aAAa,MAAM,0CAA0C;AACpE,OAAOC,cAAc,MAAM,6BAA6B;AACxD,SAASC,aAAa,QAAQ,8BAA8B;AAC5D,OAAOC,IAAI,MAAM,SAAS;AAE1B,MAAMC,aAAuB,GAAGA,CAAA,KAAM;EAAA,IAAAC,eAAA,EAAAC,gBAAA,EAAAC,gBAAA;EACpC,MAAM;IACJC,SAAS;IACTC,cAAc;IACdC,WAAW;IACXC,YAAY;IACZC,aAAa;IACbC,aAAa;IACbC,aAAa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B,cAAc;IACbiC,QAAQ,GAAA5B,gBAAA,GAAEE,SAAS,CAACyB,IAAI,cAAA3B,gBAAA,uBAAdA,gBAAA,CAAgB4B,QAAS;IACnCO,KAAK,GAAAlC,gBAAA,GAAEC,SAAS,CAACyB,IAAI,cAAA1B,gBAAA,uBAAdA,gBAAA,CAAgBkC,KAAM;IAC7B/B,WAAW,EAAEQ,mBAAoB;IACjCwB,aAAa,EAAEtB;EAAc,CAC9B,CAAC,GACA,IACA,CAAC,EACNR,aAAa,IAAII,kBAAkB,GAAG,IAAI,gBACzC5B,KAAA,CAAAoC,aAAA,CAAC7B,MAAM;IACLgD,UAAU,EAAE1B,SAAS,CAACqB,WAAW,KAAKpC,aAAa,CAACqC,KAAM;IAC1DK,cAAc,EAAEtB,YAAa;IAC7BuB,YAAY,EAAExB,aAAc;IAC5BE,iBAAiB,EAAEA;EAAkB,CACtC,CAES,CAAC,GACb,IACC,CAAC;AAEZ,CAAC;AAED,MAAMO,MAAM,GAAGvC,UAAU,CAACuD,MAAM,CAAC;EAC/Bf,SAAS,EAAE;IACTgB,IAAI,EAAE,CAAC;IACPC,cAAc,EAAE,YAAY;IAC5BC,YAAY,EAAE,QAAQ;IACtBC,eAAe,EAAErD,MAAM,CAACsD;EAC1B,CAAC;EACDd,cAAc,EAAE;IACdU,IAAI,EAAE;EACR;AACF,CAAC,CAAC;AAEF,eAAe3C,aAAa"}
|
|
@@ -1,21 +1,35 @@
|
|
|
1
1
|
import { useCallback, useContext, useEffect, useMemo, useState } from 'react';
|
|
2
|
+
import { NativeEventEmitter } from 'react-native';
|
|
2
3
|
import { GlobalContext } from '../../../../state';
|
|
3
|
-
import { getApiKeyNative, setApiKeyNative, toggleStallionSwitchNative } from '../../../../utils/
|
|
4
|
+
import { getApiKeyNative, getAppTokenNative, getProjectIdNative, getUidNative, onLaunchNative, setApiKeyNative, toggleStallionSwitchNative } from '../../../../utils/StallionNativeUtils';
|
|
4
5
|
import SharedDataManager from '../../../../utils/SharedDataManager';
|
|
6
|
+
import { SWITCH_STATES } from '../../../../../types/meta.types';
|
|
7
|
+
import StallionNativeModule from '../../../../../StallionNativeModule';
|
|
8
|
+
import { NativeEventTypesProd, NativeEventTypesStage, STALLION_NATIVE_EVENT } from '../../../../constants/appConstants';
|
|
9
|
+
import { fireEvent } from '../../../../utils/EventUtil';
|
|
10
|
+
import { stallionEventEmitter } from '../../../../utils/StallionEventEmitter';
|
|
11
|
+
const REFRESH_META_EVENTS = {
|
|
12
|
+
[NativeEventTypesProd.DOWNLOAD_COMPLETE_PROD]: true,
|
|
13
|
+
[NativeEventTypesProd.ROLLED_BACK_PROD]: true,
|
|
14
|
+
[NativeEventTypesProd.AUTO_ROLLED_BACK_PROD]: true,
|
|
15
|
+
[NativeEventTypesProd.STABILIZED_PROD]: true
|
|
16
|
+
};
|
|
5
17
|
const useStallionModal = () => {
|
|
6
|
-
var _downloadState$data2;
|
|
18
|
+
var _downloadState$data2, _metaState$prodSlot3;
|
|
7
19
|
const {
|
|
8
20
|
isModalVisible,
|
|
9
21
|
userState,
|
|
10
22
|
metaState,
|
|
11
|
-
bucketState,
|
|
12
23
|
bundleState,
|
|
13
24
|
downloadState,
|
|
25
|
+
updateMetaState,
|
|
14
26
|
actions: {
|
|
15
27
|
setIsModalVisible,
|
|
16
28
|
setUserRequiresLogin,
|
|
17
29
|
selectBucket,
|
|
18
|
-
refreshMeta
|
|
30
|
+
refreshMeta,
|
|
31
|
+
setProgress,
|
|
32
|
+
setDownloadErrorMessage
|
|
19
33
|
}
|
|
20
34
|
} = useContext(GlobalContext);
|
|
21
35
|
const onBackPress = useCallback(() => {
|
|
@@ -26,7 +40,7 @@ const useStallionModal = () => {
|
|
|
26
40
|
}, [setIsModalVisible]);
|
|
27
41
|
const loginRequired = userState === null || userState === void 0 ? void 0 : userState.loginRequired;
|
|
28
42
|
useEffect(() => {
|
|
29
|
-
getApiKeyNative(apiKey => {
|
|
43
|
+
getApiKeyNative().then(apiKey => {
|
|
30
44
|
if (apiKey) {
|
|
31
45
|
var _SharedDataManager$ge;
|
|
32
46
|
(_SharedDataManager$ge = SharedDataManager.getInstance()) === null || _SharedDataManager$ge === void 0 ? void 0 : _SharedDataManager$ge.setAccessToken(apiKey);
|
|
@@ -34,21 +48,51 @@ const useStallionModal = () => {
|
|
|
34
48
|
setUserRequiresLogin(true);
|
|
35
49
|
}
|
|
36
50
|
});
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
51
|
+
getAppTokenNative().then(appToken => {
|
|
52
|
+
var _SharedDataManager$ge2;
|
|
53
|
+
(_SharedDataManager$ge2 = SharedDataManager.getInstance()) === null || _SharedDataManager$ge2 === void 0 ? void 0 : _SharedDataManager$ge2.setAppToken(appToken);
|
|
54
|
+
});
|
|
55
|
+
getUidNative().then(uid => {
|
|
56
|
+
var _SharedDataManager$ge3;
|
|
57
|
+
(_SharedDataManager$ge3 = SharedDataManager.getInstance()) === null || _SharedDataManager$ge3 === void 0 ? void 0 : _SharedDataManager$ge3.setUid(uid);
|
|
58
|
+
});
|
|
59
|
+
getProjectIdNative().then(projectId => {
|
|
60
|
+
var _SharedDataManager$ge4;
|
|
61
|
+
(_SharedDataManager$ge4 = SharedDataManager.getInstance()) === null || _SharedDataManager$ge4 === void 0 ? void 0 : _SharedDataManager$ge4.setProjectId(projectId);
|
|
62
|
+
});
|
|
63
|
+
const eventEmitter = new NativeEventEmitter(StallionNativeModule);
|
|
64
|
+
eventEmitter.addListener(STALLION_NATIVE_EVENT, data => {
|
|
65
|
+
var _data$payload;
|
|
66
|
+
const eventType = data === null || data === void 0 ? void 0 : data.type;
|
|
67
|
+
if (REFRESH_META_EVENTS[eventType]) {
|
|
68
|
+
refreshMeta();
|
|
69
|
+
}
|
|
70
|
+
switch (eventType) {
|
|
71
|
+
case NativeEventTypesProd.DOWNLOAD_STARTED_PROD:
|
|
72
|
+
case NativeEventTypesProd.DOWNLOAD_COMPLETE_PROD:
|
|
73
|
+
case NativeEventTypesProd.DOWNLOAD_ERROR_PROD:
|
|
74
|
+
case NativeEventTypesProd.INSTALLED_PROD:
|
|
75
|
+
case NativeEventTypesProd.SYNC_ERROR_PROD:
|
|
76
|
+
case NativeEventTypesProd.ROLLED_BACK_PROD:
|
|
77
|
+
case NativeEventTypesProd.STABILIZED_PROD:
|
|
78
|
+
case NativeEventTypesProd.EXCEPTION_PROD:
|
|
79
|
+
case NativeEventTypesProd.AUTO_ROLLED_BACK_PROD:
|
|
80
|
+
stallionEventEmitter.emit(data);
|
|
81
|
+
fireEvent(data);
|
|
82
|
+
break;
|
|
83
|
+
case NativeEventTypesStage.DOWNLOAD_PROGRESS_STAGE:
|
|
84
|
+
const progress = data === null || data === void 0 ? void 0 : (_data$payload = data.payload) === null || _data$payload === void 0 ? void 0 : _data$payload.progress;
|
|
85
|
+
if (progress) {
|
|
86
|
+
setProgress(progress);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
onLaunchNative('Success');
|
|
91
|
+
return () => {
|
|
92
|
+
eventEmitter.removeAllListeners(STALLION_NATIVE_EVENT);
|
|
46
93
|
};
|
|
47
|
-
}, [
|
|
48
|
-
const
|
|
49
|
-
toggleStallionSwitchNative(!metaState.switchState);
|
|
50
|
-
refreshMeta();
|
|
51
|
-
}, [metaState.switchState, refreshMeta]);
|
|
94
|
+
}, [refreshMeta, setProgress, setUserRequiresLogin]);
|
|
95
|
+
const isBackEnabled = useMemo(() => bundleState.selectedBucketId ? true : false, [bundleState.selectedBucketId]);
|
|
52
96
|
const isDownloading = useMemo(() => {
|
|
53
97
|
return downloadState.isLoading;
|
|
54
98
|
}, [downloadState.isLoading]);
|
|
@@ -65,12 +109,31 @@ const useStallionModal = () => {
|
|
|
65
109
|
setShowProfileSection(true);
|
|
66
110
|
}, []);
|
|
67
111
|
const performLogout = useCallback(() => {
|
|
68
|
-
var _SharedDataManager$
|
|
112
|
+
var _SharedDataManager$ge5;
|
|
69
113
|
closeProfileSection();
|
|
70
114
|
setApiKeyNative('');
|
|
71
|
-
(_SharedDataManager$
|
|
115
|
+
(_SharedDataManager$ge5 = SharedDataManager.getInstance()) === null || _SharedDataManager$ge5 === void 0 ? void 0 : _SharedDataManager$ge5.setAccessToken('');
|
|
72
116
|
setUserRequiresLogin(true);
|
|
73
117
|
}, [setUserRequiresLogin, closeProfileSection]);
|
|
118
|
+
const handleSwitch = useCallback(newSwitchStatus => {
|
|
119
|
+
setDownloadErrorMessage('');
|
|
120
|
+
toggleStallionSwitchNative(newSwitchStatus ? SWITCH_STATES.STAGE : SWITCH_STATES.PROD);
|
|
121
|
+
refreshMeta();
|
|
122
|
+
if (!newSwitchStatus) {
|
|
123
|
+
selectBucket();
|
|
124
|
+
}
|
|
125
|
+
}, [refreshMeta, selectBucket, setDownloadErrorMessage]);
|
|
126
|
+
const [initialProdSlot, setInitialProdSlot] = useState();
|
|
127
|
+
useEffect(() => {
|
|
128
|
+
var _metaState$prodSlot;
|
|
129
|
+
if (metaState !== null && metaState !== void 0 && (_metaState$prodSlot = metaState.prodSlot) !== null && _metaState$prodSlot !== void 0 && _metaState$prodSlot.currentSlot && !initialProdSlot) {
|
|
130
|
+
var _metaState$prodSlot2;
|
|
131
|
+
setInitialProdSlot(metaState === null || metaState === void 0 ? void 0 : (_metaState$prodSlot2 = metaState.prodSlot) === null || _metaState$prodSlot2 === void 0 ? void 0 : _metaState$prodSlot2.currentSlot);
|
|
132
|
+
}
|
|
133
|
+
}, [metaState === null || metaState === void 0 ? void 0 : (_metaState$prodSlot3 = metaState.prodSlot) === null || _metaState$prodSlot3 === void 0 ? void 0 : _metaState$prodSlot3.currentSlot, initialProdSlot, metaState.switchState]);
|
|
134
|
+
const isRestartRequired = useMemo(() => {
|
|
135
|
+
return updateMetaState.slotHasChanged ? true : false;
|
|
136
|
+
}, [updateMetaState.slotHasChanged]);
|
|
74
137
|
return {
|
|
75
138
|
isModalVisible,
|
|
76
139
|
onBackPress,
|
|
@@ -78,8 +141,6 @@ const useStallionModal = () => {
|
|
|
78
141
|
loginRequired,
|
|
79
142
|
metaState,
|
|
80
143
|
isBackEnabled,
|
|
81
|
-
activeBucketMeta,
|
|
82
|
-
toggleStallionSwitch,
|
|
83
144
|
isDownloading,
|
|
84
145
|
downloadProgress,
|
|
85
146
|
downloadError,
|
|
@@ -87,7 +148,9 @@ const useStallionModal = () => {
|
|
|
87
148
|
showProfileSection,
|
|
88
149
|
closeProfileSection,
|
|
89
150
|
presentProfileSection,
|
|
90
|
-
performLogout
|
|
151
|
+
performLogout,
|
|
152
|
+
handleSwitch,
|
|
153
|
+
isRestartRequired
|
|
91
154
|
};
|
|
92
155
|
};
|
|
93
156
|
export default useStallionModal;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useCallback","useContext","useEffect","useMemo","useState","GlobalContext","getApiKeyNative","setApiKeyNative","toggleStallionSwitchNative","SharedDataManager","useStallionModal","_downloadState$data2","isModalVisible","userState","metaState","
|
|
1
|
+
{"version":3,"names":["useCallback","useContext","useEffect","useMemo","useState","NativeEventEmitter","GlobalContext","getApiKeyNative","getAppTokenNative","getProjectIdNative","getUidNative","onLaunchNative","setApiKeyNative","toggleStallionSwitchNative","SharedDataManager","SWITCH_STATES","StallionNativeModule","NativeEventTypesProd","NativeEventTypesStage","STALLION_NATIVE_EVENT","fireEvent","stallionEventEmitter","REFRESH_META_EVENTS","DOWNLOAD_COMPLETE_PROD","ROLLED_BACK_PROD","AUTO_ROLLED_BACK_PROD","STABILIZED_PROD","useStallionModal","_downloadState$data2","_metaState$prodSlot3","isModalVisible","userState","metaState","bundleState","downloadState","updateMetaState","actions","setIsModalVisible","setUserRequiresLogin","selectBucket","refreshMeta","setProgress","setDownloadErrorMessage","onBackPress","requestAnimationFrame","onClosePress","loginRequired","then","apiKey","_SharedDataManager$ge","getInstance","setAccessToken","appToken","_SharedDataManager$ge2","setAppToken","uid","_SharedDataManager$ge3","setUid","projectId","_SharedDataManager$ge4","setProjectId","eventEmitter","addListener","data","_data$payload","eventType","type","DOWNLOAD_STARTED_PROD","DOWNLOAD_ERROR_PROD","INSTALLED_PROD","SYNC_ERROR_PROD","EXCEPTION_PROD","emit","DOWNLOAD_PROGRESS_STAGE","progress","payload","removeAllListeners","isBackEnabled","selectedBucketId","isDownloading","isLoading","downloadProgress","_downloadState$data","currentProgress","downloadError","error","showProfileSection","setShowProfileSection","closeProfileSection","presentProfileSection","performLogout","_SharedDataManager$ge5","handleSwitch","newSwitchStatus","STAGE","PROD","initialProdSlot","setInitialProdSlot","_metaState$prodSlot","prodSlot","currentSlot","_metaState$prodSlot2","switchState","isRestartRequired","slotHasChanged"],"sourceRoot":"../../../../../../../src","sources":["main/components/modules/modal/hooks/useStallionModal.ts"],"mappings":"AAAA,SAASA,WAAW,EAAEC,UAAU,EAAEC,SAAS,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AAC7E,SAASC,kBAAkB,QAAQ,cAAc;AAEjD,SAASC,aAAa,QAAQ,mBAAmB;AACjD,SACEC,eAAe,EACfC,iBAAiB,EACjBC,kBAAkB,EAClBC,YAAY,EACZC,cAAc,EACdC,eAAe,EACfC,0BAA0B,QACrB,uCAAuC;AAC9C,OAAOC,iBAAiB,MAAM,qCAAqC;AACnE,SAASC,aAAa,QAAQ,iCAAiC;AAC/D,OAAOC,oBAAoB,MAAM,qCAAqC;AACtE,SACEC,oBAAoB,EACpBC,qBAAqB,EACrBC,qBAAqB,QAChB,oCAAoC;AAC3C,SAASC,SAAS,QAAQ,6BAA6B;AACvD,SAASC,oBAAoB,QAAQ,wCAAwC;AAG7E,MAAMC,mBAEL,GAAG;EACF,CAACL,oBAAoB,CAACM,sBAAsB,GAAG,IAAI;EACnD,CAACN,oBAAoB,CAACO,gBAAgB,GAAG,IAAI;EAC7C,CAACP,oBAAoB,CAACQ,qBAAqB,GAAG,IAAI;EAClD,CAACR,oBAAoB,CAACS,eAAe,GAAG;AAC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AS,CAAEmE,QAAQ,cAAAE,oBAAA,uBAAnBA,oBAAA,CAAqBD,WAAW,CAAC;IACtD;EACF,CAAC,EAAE,CACDpE,SAAS,aAATA,SAAS,wBAAAH,oBAAA,GAATG,SAAS,CAAEmE,QAAQ,cAAAtE,oBAAA,uBAAnBA,oBAAA,CAAqBuE,WAAW,EAChCJ,eAAe,EACfhE,SAAS,CAACsE,WAAW,CACtB,CAAC;EAEF,MAAMC,iBAAiB,GAAGpG,OAAO,CAAU,MAAM;IAC/C,OAAOgC,eAAe,CAACqE,cAAc,GAAG,IAAI,GAAG,KAAK;EACtD,CAAC,EAAE,CAACrE,eAAe,CAACqE,cAAc,CAAC,CAAC;EAEpC,OAAO;IACL1E,cAAc;IACda,WAAW;IACXE,YAAY;IACZC,aAAa;IACbd,SAAS;IACT6C,aAAa;IACbE,aAAa;IACbE,gBAAgB;IAChBG,aAAa;IACbrD,SAAS;IACTuD,kBAAkB;IAClBE,mBAAmB;IACnBC,qBAAqB;IACrBC,aAAa;IACbE,YAAY;IACZW;EACF,CAAC;AACH,CAAC;AAED,eAAe5E,gBAAgB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Prod"],"sourceRoot":"../../../../../../src","sources":["main/components/modules/prod/index.ts"],"mappings":"AAAA,OAAOA,IAAI,MAAM,QAAQ;AACzB,eAAeA,IAAI"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React, { useContext, useEffect } from 'react';
|
|
2
|
+
import { ScrollView, Text } from 'react-native';
|
|
3
|
+
import styles from './styles';
|
|
4
|
+
import { GlobalContext } from '../../../state';
|
|
5
|
+
import SlotView from '../listing/components/SlotView';
|
|
6
|
+
import MetaCard from '../listing/components/MetaCard';
|
|
7
|
+
const Prod = () => {
|
|
8
|
+
const {
|
|
9
|
+
metaState,
|
|
10
|
+
userState,
|
|
11
|
+
updateMetaState,
|
|
12
|
+
actions: {
|
|
13
|
+
getUserProfile
|
|
14
|
+
}
|
|
15
|
+
} = useContext(GlobalContext);
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
var _userState$data;
|
|
18
|
+
if (!((_userState$data = userState.data) !== null && _userState$data !== void 0 && _userState$data.email)) {
|
|
19
|
+
getUserProfile();
|
|
20
|
+
}
|
|
21
|
+
}, [userState.data, getUserProfile]);
|
|
22
|
+
return /*#__PURE__*/React.createElement(ScrollView, {
|
|
23
|
+
contentContainerStyle: styles.pageContainer
|
|
24
|
+
}, /*#__PURE__*/React.createElement(SlotView, metaState.prodSlot), updateMetaState.currentlyRunningBundle ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Text, {
|
|
25
|
+
style: styles.cardTitle
|
|
26
|
+
}, "Currently Active Bundle"), /*#__PURE__*/React.createElement(MetaCard, {
|
|
27
|
+
meta: updateMetaState.currentlyRunningBundle
|
|
28
|
+
})) : null, updateMetaState.newBundle ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Text, {
|
|
29
|
+
style: styles.cardTitle
|
|
30
|
+
}, "New Bundle"), /*#__PURE__*/React.createElement(MetaCard, {
|
|
31
|
+
meta: updateMetaState.newBundle
|
|
32
|
+
})) : null);
|
|
33
|
+
};
|
|
34
|
+
export default Prod;
|
|
35
|
+
//# sourceMappingURL=prod.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useContext","useEffect","ScrollView","Text","styles","GlobalContext","SlotView","MetaCard","Prod","metaState","userState","updateMetaState","actions","getUserProfile","_userState$data","data","email","createElement","contentContainerStyle","pageContainer","prodSlot","currentlyRunningBundle","Fragment","style","cardTitle","meta","newBundle"],"sourceRoot":"../../../../../../src","sources":["main/components/modules/prod/prod.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,UAAU,EAAEC,SAAS,QAAQ,OAAO;AACpD,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,OAAOC,MAAM,MAAM,UAAU;AAC7B,SAASC,aAAa,QAA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C,GACD,IACM,CAAC;AAEjB,CAAC;AAED,eAAelB,IAAI"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { StyleSheet } from 'react-native';
|
|
2
|
+
import { HEADER_SLAB_HEIGHT } from '../../../../constants/appConstants';
|
|
3
|
+
import { COLORS } from '../../../../constants/colors';
|
|
4
|
+
import { STD_MARGIN } from '../../../../constants/appConstants';
|
|
5
|
+
const styles = StyleSheet.create({
|
|
6
|
+
pageContainer: {
|
|
7
|
+
flex: 1,
|
|
8
|
+
flexDirection: 'column',
|
|
9
|
+
backgroundColor: COLORS.background_grey
|
|
10
|
+
},
|
|
11
|
+
cardTitle: {
|
|
12
|
+
marginTop: 3 * STD_MARGIN,
|
|
13
|
+
margin: STD_MARGIN,
|
|
14
|
+
color: COLORS.black,
|
|
15
|
+
fontSize: HEADER_SLAB_HEIGHT / 2.5,
|
|
16
|
+
fontWeight: 'bold'
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
export default styles;
|
|
20
|
+
//# sourceMappingURL=index.js.map
|