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,"file":"CardDescriptionContent.d.ts","sourceRoot":"","sources":["../../../../../../../src/main/components/modules/listing/components/CardDescriptionContent.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CardDescriptionContent.d.ts","sourceRoot":"","sources":["../../../../../../../src/main/components/modules/listing/components/CardDescriptionContent.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,uBAAuB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;CAC3B;AACD,QAAA,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAU7D,CAAC;AAiBF,eAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MetaCard.d.ts","sourceRoot":"","sources":["../../../../../../../src/main/components/modules/listing/components/MetaCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAOvC,OAAO,EAAE,WAAW,EAAE,MAAM,uCAAuC,CAAC;AAEpE,UAAU,SAAS;IACjB,IAAI,EAAE,WAAW,CAAC;CACnB;AAED,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAqBjC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SlotView.d.ts","sourceRoot":"","sources":["../../../../../../../src/main/components/modules/listing/components/SlotView.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAkDpE,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAiCzC,CAAC;AA2BF,eAAe,QAAQ,CAAC"}
|
|
@@ -11,6 +11,8 @@ declare const styles: {
|
|
|
11
11
|
shadowOpacity: number;
|
|
12
12
|
elevation: number;
|
|
13
13
|
shadowRadius: number;
|
|
14
|
+
borderWidth: number;
|
|
15
|
+
borderColor: string;
|
|
14
16
|
};
|
|
15
17
|
infoSection: {
|
|
16
18
|
width: string;
|
|
@@ -23,23 +25,36 @@ declare const styles: {
|
|
|
23
25
|
flexDirection: "row";
|
|
24
26
|
justifyContent: "space-between";
|
|
25
27
|
alignItems: "center";
|
|
28
|
+
padding: number;
|
|
29
|
+
};
|
|
30
|
+
colContainer: {
|
|
31
|
+
flexDirection: "column";
|
|
32
|
+
};
|
|
33
|
+
downloadButton: {
|
|
34
|
+
backgroundColor: string;
|
|
35
|
+
padding: number;
|
|
36
|
+
borderRadius: number;
|
|
26
37
|
};
|
|
27
38
|
appliedText: {
|
|
28
39
|
color: string;
|
|
29
40
|
fontWeight: "bold";
|
|
30
41
|
fontSize: number;
|
|
31
42
|
};
|
|
32
|
-
container: {
|
|
43
|
+
container: {};
|
|
44
|
+
metaConainer: {
|
|
45
|
+
backgroundColor: string;
|
|
33
46
|
margin: number;
|
|
47
|
+
borderRadius: number;
|
|
48
|
+
padding: number;
|
|
34
49
|
};
|
|
35
50
|
divider: {
|
|
36
51
|
borderBottomWidth: number;
|
|
37
52
|
opacity: number;
|
|
38
|
-
|
|
53
|
+
marginBottom: number;
|
|
39
54
|
};
|
|
40
55
|
subText: {
|
|
41
56
|
fontSize: number;
|
|
42
|
-
|
|
57
|
+
marginVertical: number;
|
|
43
58
|
color: string;
|
|
44
59
|
};
|
|
45
60
|
titleText: {
|
|
@@ -52,14 +67,18 @@ declare const styles: {
|
|
|
52
67
|
releaseNoteText: {
|
|
53
68
|
fontSize: number;
|
|
54
69
|
fontWeight: "500";
|
|
55
|
-
marginTop: number;
|
|
56
70
|
color: string;
|
|
57
71
|
};
|
|
58
72
|
releaseNoteDescriptionText: {
|
|
59
73
|
fontSize: number;
|
|
60
|
-
marginTop: number;
|
|
61
74
|
color: string;
|
|
62
75
|
};
|
|
76
|
+
descContainer: {
|
|
77
|
+
flexDirection: "row";
|
|
78
|
+
alignItems: "center";
|
|
79
|
+
padding: number;
|
|
80
|
+
backgroundColor: string;
|
|
81
|
+
};
|
|
63
82
|
};
|
|
64
83
|
export default styles;
|
|
65
84
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/main/components/modules/listing/components/styles/index.ts"],"names":[],"mappings":"AAQA,QAAA,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/main/components/modules/listing/components/styles/index.ts"],"names":[],"mappings":"AAQA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0EV,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
|
@@ -4,10 +4,12 @@ declare const useListing: () => {
|
|
|
4
4
|
listingData: (IBucketCard | IBundleCard)[];
|
|
5
5
|
listingError: string | null | undefined;
|
|
6
6
|
listingLoading: boolean;
|
|
7
|
+
metaState: import("../../../../../types/meta.types").IStallionMeta;
|
|
7
8
|
fetchListing: () => void;
|
|
8
9
|
setBucketSelection: (bucketId?: string | null) => void;
|
|
9
10
|
fetchNextPage: () => void;
|
|
10
11
|
nextPageLoading: boolean | undefined;
|
|
12
|
+
isBackEnabled: boolean;
|
|
11
13
|
};
|
|
12
14
|
export default useListing;
|
|
13
15
|
//# sourceMappingURL=useListing.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useListing.d.ts","sourceRoot":"","sources":["../../../../../../../src/main/components/modules/listing/hooks/useListing.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvD,QAAA,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"useListing.d.ts","sourceRoot":"","sources":["../../../../../../../src/main/components/modules/listing/hooks/useListing.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEvD,QAAA,MAAM,UAAU;;;;;;oCA+DA,MAAM,GAAG,IAAI;;;;CA4C5B,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/main/components/modules/listing/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/main/components/modules/listing/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;;AAsEzD,wBAA6B"}
|
|
@@ -8,16 +8,17 @@ declare const styles: {
|
|
|
8
8
|
alignItems: "center";
|
|
9
9
|
};
|
|
10
10
|
logoContainer: {
|
|
11
|
-
|
|
11
|
+
width: string;
|
|
12
|
+
alignSelf: "center";
|
|
13
|
+
paddingVertical: number;
|
|
12
14
|
};
|
|
13
15
|
logoText: {
|
|
14
16
|
fontSize: number;
|
|
15
17
|
color: string;
|
|
18
|
+
fontWeight: "500";
|
|
16
19
|
};
|
|
17
20
|
inputSection: {
|
|
18
|
-
flex: number;
|
|
19
21
|
justifyContent: "flex-start";
|
|
20
|
-
paddingTop: number;
|
|
21
22
|
};
|
|
22
23
|
errorText: {
|
|
23
24
|
fontSize: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/main/components/modules/login/styles/index.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/main/components/modules/login/styles/index.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BV,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StallionModal.d.ts","sourceRoot":"","sources":["../../../../../../src/main/components/modules/modal/StallionModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"StallionModal.d.ts","sourceRoot":"","sources":["../../../../../../src/main/components/modules/modal/StallionModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAgB1B,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAmE1B,CAAC;AAcF,eAAe,aAAa,CAAC"}
|
|
@@ -5,11 +5,6 @@ declare const useStallionModal: () => {
|
|
|
5
5
|
loginRequired: boolean | undefined;
|
|
6
6
|
metaState: import("../../../../../types/meta.types").IStallionMeta;
|
|
7
7
|
isBackEnabled: boolean;
|
|
8
|
-
activeBucketMeta: {
|
|
9
|
-
bucketName: string;
|
|
10
|
-
version: string;
|
|
11
|
-
};
|
|
12
|
-
toggleStallionSwitch: () => void;
|
|
13
8
|
isDownloading: boolean;
|
|
14
9
|
downloadProgress: number;
|
|
15
10
|
downloadError: string | null | undefined;
|
|
@@ -18,6 +13,8 @@ declare const useStallionModal: () => {
|
|
|
18
13
|
closeProfileSection: () => void;
|
|
19
14
|
presentProfileSection: () => void;
|
|
20
15
|
performLogout: () => void;
|
|
16
|
+
handleSwitch: (newSwitchStatus: any) => void;
|
|
17
|
+
isRestartRequired: boolean;
|
|
21
18
|
};
|
|
22
19
|
export default useStallionModal;
|
|
23
20
|
//# sourceMappingURL=useStallionModal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStallionModal.d.ts","sourceRoot":"","sources":["../../../../../../../src/main/components/modules/modal/hooks/useStallionModal.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useStallionModal.d.ts","sourceRoot":"","sources":["../../../../../../../src/main/components/modules/modal/hooks/useStallionModal.ts"],"names":[],"mappings":"AAkCA,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;CA2JrB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/main/components/modules/prod/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prod.d.ts","sourceRoot":"","sources":["../../../../../../src/main/components/modules/prod/prod.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAOrD,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EA6BjB,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
declare const styles: {
|
|
2
|
+
pageContainer: {
|
|
3
|
+
flex: number;
|
|
4
|
+
flexDirection: "column";
|
|
5
|
+
backgroundColor: string;
|
|
6
|
+
};
|
|
7
|
+
cardTitle: {
|
|
8
|
+
marginTop: number;
|
|
9
|
+
margin: number;
|
|
10
|
+
color: string;
|
|
11
|
+
fontSize: number;
|
|
12
|
+
fontWeight: "bold";
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default styles;
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/main/components/modules/prod/styles/index.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,MAAM;;;;;;;;;;;;;CAaV,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
export declare const API_BASE_URL = "https://
|
|
1
|
+
export declare const API_BASE_URL = "https://api.stalliontech.io";
|
|
2
2
|
export declare enum API_PATHS {
|
|
3
3
|
LOGIN = "/api/v1/sdk/client-login",
|
|
4
4
|
VERIFY_OTP = "/api/v1/auth/verify-otp",
|
|
5
5
|
FETCH_BUCKETS = "/api/v1/sdk/list-buckets",
|
|
6
6
|
FETCH_BUNDLES = "/api/v1/bundle/list",
|
|
7
7
|
FETCH_BUNDLES_ADVANCED = "/api/v1/sdk/list-bundles",
|
|
8
|
-
USER_PROFILE = "/api/v1/sdk/user-profile"
|
|
8
|
+
USER_PROFILE = "/api/v1/sdk/user-profile",
|
|
9
|
+
LOG_EVENT = "/api/v1/analytics/log-published-event",
|
|
10
|
+
GET_META_FROM_HASH = "/api/v1/sdk/get-meta-from-hash"
|
|
9
11
|
}
|
|
10
12
|
export declare const BUNDLE_API_PAGE_SIZE = 10;
|
|
11
13
|
//# sourceMappingURL=apiConstants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apiConstants.d.ts","sourceRoot":"","sources":["../../../../src/main/constants/apiConstants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"apiConstants.d.ts","sourceRoot":"","sources":["../../../../src/main/constants/apiConstants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,gCAAgC,CAAC;AAE1D,oBAAY,SAAS;IACnB,KAAK,6BAA6B;IAClC,UAAU,4BAA4B;IACtC,aAAa,6BAA6B;IAC1C,aAAa,wBAAwB;IACrC,sBAAsB,6BAA6B;IACnD,YAAY,6BAA6B;IACzC,SAAS,0CAA0C;IACnD,kBAAkB,mCAAmC;CACtD;AACD,eAAO,MAAM,oBAAoB,KAAK,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const HEADER_TITLE = "Stallion";
|
|
2
|
-
export declare const Login_TITLE = "Login";
|
|
2
|
+
export declare const Login_TITLE = "Login to continue";
|
|
3
3
|
export declare const PROFILE_TITLE = "Profile";
|
|
4
4
|
export declare const HEADER_SLAB_HEIGHT = 50;
|
|
5
5
|
export declare const STD_MARGIN: number;
|
|
@@ -8,12 +8,13 @@ export declare const CLOSE_BUTTON_TEXT = "close";
|
|
|
8
8
|
export declare const BACK_BUTTON_TEXT = "back";
|
|
9
9
|
export declare const DOWNLOAD_BUTTON_TEXT = "Download";
|
|
10
10
|
export declare const DOWNLOADED_TEXT = "Downloaded";
|
|
11
|
+
export declare const APPLIED_TEXT = "Applied";
|
|
11
12
|
export declare const LOGOUT_BUTTON_TEXT = "Logout";
|
|
12
13
|
export declare const FOOTER_INFO_TITLE = "Active Bucket: ";
|
|
13
14
|
export declare const FOOTER_INFO_SUBTITLE = "Version: ";
|
|
14
15
|
export declare enum SWITCH_TEXTS {
|
|
15
|
-
ON = "
|
|
16
|
-
OFF = "
|
|
16
|
+
ON = "STAGE",
|
|
17
|
+
OFF = "PROD"
|
|
17
18
|
}
|
|
18
19
|
export declare const SWITCH_TITLE = "Switch ";
|
|
19
20
|
export declare const BUCKET_CARD_UPDATED_TEXT = "Updated at: ";
|
|
@@ -48,7 +49,7 @@ export declare const EMPTY_STATE: {
|
|
|
48
49
|
error: null;
|
|
49
50
|
};
|
|
50
51
|
export declare const OTP_LENGTH = 6;
|
|
51
|
-
export declare const SUBMIT_BUTTON_TEXT = "
|
|
52
|
+
export declare const SUBMIT_BUTTON_TEXT = "Continue";
|
|
52
53
|
export declare const OTP_BACK_BUTTON_TEXT = "BACK";
|
|
53
54
|
export declare const OTP_INPUT_KEY = "Enter OTP";
|
|
54
55
|
export declare const NOT_APPLICABLE_TEXT = "N/A";
|
|
@@ -71,4 +72,36 @@ export declare const DOWNLOAD_ALERT_HEADER = "Download Successful";
|
|
|
71
72
|
export declare const DOWNLOAD_ALERT_SWITCH_MESSAGE = "Stallion has been switched on. ";
|
|
72
73
|
export declare const DOWNLOAD_ALERT_MESSAGE = "Restart the app for changes to take effect.";
|
|
73
74
|
export declare const DOWNLOAD_ALERT_BUTTON = "Ok";
|
|
75
|
+
export declare enum NATIVE_CONSTANTS {
|
|
76
|
+
SDK_TOKEN = "x-sdk-access-token",
|
|
77
|
+
APP_TOKEN = "x-app-token",
|
|
78
|
+
SWITCH_STATE_INDENTIFIER = "switchState",
|
|
79
|
+
PROD_DIRECTORY = "/StallionProd",
|
|
80
|
+
STAGE_DIRECTORY = "/StallionStage",
|
|
81
|
+
TEMP_FOLDER_SLOT = "/temp",
|
|
82
|
+
NEW_FOLDER_SLOT = "/StallionNew",
|
|
83
|
+
STABLE_FOLDER_SLOT = "/StallionStable",
|
|
84
|
+
DEFAULT_FOLDER_SLOT = "/Default",
|
|
85
|
+
CURRENT_PROD_SLOT_KEY = "stallionProdCurrentSlot",
|
|
86
|
+
CURRENT_STAGE_SLOT_KEY = "stallionStageCurrentSlot"
|
|
87
|
+
}
|
|
88
|
+
export declare enum NativeEventTypesProd {
|
|
89
|
+
DOWNLOAD_STARTED_PROD = "DOWNLOAD_STARTED_PROD",
|
|
90
|
+
DOWNLOAD_ERROR_PROD = "DOWNLOAD_ERROR_PROD",
|
|
91
|
+
DOWNLOAD_PROGRESS_PROD = "DOWNLOAD_PROGRESS_PROD",
|
|
92
|
+
DOWNLOAD_COMPLETE_PROD = "DOWNLOAD_COMPLETE_PROD",
|
|
93
|
+
SYNC_ERROR_PROD = "SYNC_ERROR_PROD",
|
|
94
|
+
ROLLED_BACK_PROD = "ROLLED_BACK_PROD",
|
|
95
|
+
INSTALLED_PROD = "INSTALLED_PROD",
|
|
96
|
+
STABILIZED_PROD = "STABILIZED_PROD",
|
|
97
|
+
EXCEPTION_PROD = "EXCEPTION_PROD",
|
|
98
|
+
AUTO_ROLLED_BACK_PROD = "AUTO_ROLLED_BACK_PROD"
|
|
99
|
+
}
|
|
100
|
+
export declare enum NativeEventTypesStage {
|
|
101
|
+
DOWNLOAD_ERROR_STAGE = "DOWNLOAD_ERROR_STAGE",
|
|
102
|
+
DOWNLOAD_PROGRESS_STAGE = "DOWNLOAD_PROGRESS_STAGE",
|
|
103
|
+
DOWNLOAD_COMPLETE_STAGE = "DOWNLOAD_COMPLETE_STAGE"
|
|
104
|
+
}
|
|
105
|
+
export declare const STALLION_NATIVE_EVENT = "STALLION_NATIVE_EVENT";
|
|
106
|
+
export declare const RESTART_REQUIRED_MESSAGE = "Restart required. Bundle has changed";
|
|
74
107
|
//# sourceMappingURL=appConstants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appConstants.d.ts","sourceRoot":"","sources":["../../../../src/main/constants/appConstants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,aAAa,CAAC;AACvC,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"appConstants.d.ts","sourceRoot":"","sources":["../../../../src/main/constants/appConstants.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../src/main/constants/colors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../src/main/constants/colors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;CAgBlB,CAAC"}
|
package/types/main/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
declare const _default: {
|
|
3
|
-
withStallion: <T>(BaseComponent: import("react").ComponentType<T
|
|
3
|
+
withStallion: <T>(BaseComponent: import("react").ComponentType<T>) => import("react").FC<T>;
|
|
4
4
|
useStallionModal: () => import("../types/utils.types").IUseStallionModal;
|
|
5
5
|
};
|
|
6
6
|
export default _default;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IDownloadAction } from '../../../types/download.types';
|
|
3
3
|
declare const useDownloadActions: (dispatch: React.Dispatch<IDownloadAction>, refreshStallionMeta: () => void) => {
|
|
4
|
-
downloadBundle: (
|
|
4
|
+
downloadBundle: (apiDownloadUrl: string, hash: string) => void;
|
|
5
|
+
setProgress: (newProgress: number) => void;
|
|
6
|
+
setDownloadErrorMessage: (message: string) => void;
|
|
5
7
|
};
|
|
6
8
|
export default useDownloadActions;
|
|
7
9
|
//# sourceMappingURL=useDownloadActions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDownloadActions.d.ts","sourceRoot":"","sources":["../../../../../src/main/state/actionCreators/useDownloadActions.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"useDownloadActions.d.ts","sourceRoot":"","sources":["../../../../../src/main/state/actionCreators/useDownloadActions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAU3C,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,QAAA,MAAM,kBAAkB,aACZ,MAAM,QAAQ,CAAC,eAAe,CAAC,uBACpB,MAAM,IAAI;qCAIZ,MAAM,QAAQ,MAAM;+BA0BvB,MAAM;uCAUoB,MAAM;CASjD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IMetaAction } from '../../../types/meta.types';
|
|
3
3
|
declare const useMetaActions: (dispatch: React.Dispatch<IMetaAction>) => {
|
|
4
|
-
refreshMeta: () => void
|
|
4
|
+
refreshMeta: () => Promise<void>;
|
|
5
5
|
};
|
|
6
6
|
export default useMetaActions;
|
|
7
7
|
//# sourceMappingURL=useMetaActions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMetaActions.d.ts","sourceRoot":"","sources":["../../../../../src/main/state/actionCreators/useMetaActions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAiC,MAAM,OAAO,CAAC;AAKtD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD,QAAA,MAAM,cAAc,aAAc,MAAM,QAAQ,CAAC,WAAW,CAAC;;
|
|
1
|
+
{"version":3,"file":"useMetaActions.d.ts","sourceRoot":"","sources":["../../../../../src/main/state/actionCreators/useMetaActions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAiC,MAAM,OAAO,CAAC;AAKtD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD,QAAA,MAAM,cAAc,aAAc,MAAM,QAAQ,CAAC,WAAW,CAAC;;CAc5D,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IStallionMeta } from '../../../types/meta.types';
|
|
3
|
+
import { IUpdateMetaAction } from '../../../types/updateMeta.types';
|
|
4
|
+
import { IUpdateMetaState } from '../reducers/updateMetaReducer';
|
|
5
|
+
declare const useUpdateMetaActions: (updateMetaState: IUpdateMetaState, metaState: IStallionMeta, updateMetaDispatch: React.Dispatch<IUpdateMetaAction>) => void;
|
|
6
|
+
export default useUpdateMetaActions;
|
|
7
|
+
//# sourceMappingURL=useUpdateMetaActions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useUpdateMetaActions.d.ts","sourceRoot":"","sources":["../../../../../src/main/state/actionCreators/useUpdateMetaActions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAEzE,OAAO,EACL,aAAa,EAGd,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,iBAAiB,EAElB,MAAM,iCAAiC,CAAC;AAIzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEjE,QAAA,MAAM,oBAAoB,oBACP,gBAAgB,aACtB,aAAa,sBACJ,MAAM,QAAQ,CAAC,iBAAiB,CAAC,SAoHtD,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/main/state/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8C,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/main/state/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8C,MAAM,OAAO,CAAC;AAgBnE,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAKlE,eAAO,MAAM,aAAa,+BAAsC,CAAC;AAEjE,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAoE3B,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IUpdateMeta, IUpdateMetaAction } from '../../../types/updateMeta.types';
|
|
2
|
+
export interface IUpdateMetaState {
|
|
3
|
+
currentlyRunningBundle: IUpdateMeta | null;
|
|
4
|
+
newBundle: IUpdateMeta | null;
|
|
5
|
+
slotHasChanged: boolean | null;
|
|
6
|
+
}
|
|
7
|
+
declare const updateMetaReducer: (state: IUpdateMetaState, action: IUpdateMetaAction) => IUpdateMetaState;
|
|
8
|
+
export default updateMetaReducer;
|
|
9
|
+
//# sourceMappingURL=updateMetaReducer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateMetaReducer.d.ts","sourceRoot":"","sources":["../../../../../src/main/state/reducers/updateMetaReducer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,iBAAiB,EAElB,MAAM,iCAAiC,CAAC;AAEzC,MAAM,WAAW,gBAAgB;IAC/B,sBAAsB,EAAE,WAAW,GAAG,IAAI,CAAC;IAC3C,SAAS,EAAE,WAAW,GAAG,IAAI,CAAC;IAC9B,cAAc,EAAE,OAAO,GAAG,IAAI,CAAC;CAChC;AAED,QAAA,MAAM,iBAAiB,UACd,gBAAgB,UACf,iBAAiB,KACxB,gBA0BF,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -6,7 +6,7 @@ interface IErrorBoundaryState {
|
|
|
6
6
|
}
|
|
7
7
|
declare class ErrorBoundary extends Component<IErrorBoundaryProps, IErrorBoundaryState> {
|
|
8
8
|
constructor(props: IErrorBoundaryProps);
|
|
9
|
-
componentDidCatch(error: Error): void
|
|
9
|
+
componentDidCatch(error: Error): Promise<void>;
|
|
10
10
|
continueCrash(): void;
|
|
11
11
|
render(): React.ReactNode;
|
|
12
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorBoundary.d.ts","sourceRoot":"","sources":["../../../../src/main/utils/ErrorBoundary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ErrorBoundary.d.ts","sourceRoot":"","sources":["../../../../src/main/utils/ErrorBoundary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAezC,UAAU,mBAAmB;CAAG;AAChC,UAAU,mBAAmB;IAC3B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,cAAM,aAAc,SAAQ,SAAS,CACnC,mBAAmB,EACnB,mBAAmB,CACpB;gBACa,KAAK,EAAE,mBAAmB;IAQhC,iBAAiB,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,IAAI,CAAC;IAoBpD,aAAa;IAGb,MAAM;CAyBP;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventUtil.d.ts","sourceRoot":"","sources":["../../../../src/main/utils/EventUtil.ts"],"names":[],"mappings":"AAKA,UAAU,UAAU;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE;QACP,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;CACH;AAED,eAAO,MAAM,SAAS,SAAU,UAAU,SAsBzC,CAAC"}
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
export default class SharedDataManager {
|
|
2
2
|
static _instance?: SharedDataManager | null;
|
|
3
|
-
|
|
4
|
-
_initProjectId?: string;
|
|
3
|
+
_projectId?: string;
|
|
5
4
|
_accessToken?: string;
|
|
5
|
+
_uniqueId?: string;
|
|
6
|
+
_appToken?: string;
|
|
6
7
|
/**
|
|
7
8
|
* @returns {SharedDataManager}
|
|
8
9
|
*/
|
|
9
10
|
static getInstance(): SharedDataManager | null | undefined;
|
|
10
11
|
getProjectId(): string;
|
|
11
|
-
|
|
12
|
-
setConfigProjectId(id: string): void;
|
|
13
|
-
getInitProjectId(): string;
|
|
14
|
-
setInitProjectId(id: string): void;
|
|
12
|
+
setProjectId(id: string): void;
|
|
15
13
|
getAccessToken(): string;
|
|
16
14
|
setAccessToken(accessToken: string): void;
|
|
15
|
+
getUid(): string;
|
|
16
|
+
setUid(uid: string): void;
|
|
17
|
+
getAppToken(): string;
|
|
18
|
+
setAppToken(appToken: string): void;
|
|
17
19
|
}
|
|
18
20
|
//# sourceMappingURL=SharedDataManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SharedDataManager.d.ts","sourceRoot":"","sources":["../../../../src/main/utils/SharedDataManager.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,OAAO,iBAAiB;IACpC,MAAM,CAAC,SAAS,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAQ;IAEnD,
|
|
1
|
+
{"version":3,"file":"SharedDataManager.d.ts","sourceRoot":"","sources":["../../../../src/main/utils/SharedDataManager.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,OAAO,iBAAiB;IACpC,MAAM,CAAC,SAAS,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAQ;IAEnD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,CAAC,WAAW,IAAI,iBAAiB,GAAG,IAAI,GAAG,SAAS;IAQ1D,YAAY,IAAI,MAAM;IAItB,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAI9B,cAAc,IAAI,MAAM;IAIxB,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;IAIzC,MAAM,IAAI,MAAM;IAIhB,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAIzB,WAAW,IAAI,MAAM;IAIrB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;CAGpC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type EventListener = (data?: IStallionEventData) => void;
|
|
2
|
+
export interface IStallionEventData {
|
|
3
|
+
type: string;
|
|
4
|
+
payload: any;
|
|
5
|
+
}
|
|
6
|
+
declare class EventEmitter {
|
|
7
|
+
private events;
|
|
8
|
+
addEventListener(listener: EventListener): void;
|
|
9
|
+
removeEventListener(listenerToRemove: EventListener): void;
|
|
10
|
+
emit(data?: IStallionEventData): void;
|
|
11
|
+
}
|
|
12
|
+
export declare const stallionEventEmitter: EventEmitter;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=StallionEventEmitter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StallionEventEmitter.d.ts","sourceRoot":"","sources":["../../../../src/main/utils/StallionEventEmitter.ts"],"names":[],"mappings":"AAAA,KAAK,aAAa,GAAG,CAAC,IAAI,CAAC,EAAE,kBAAkB,KAAK,IAAI,CAAC;AAEzD,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,GAAG,CAAC;CACd;AAED,cAAM,YAAY;IAChB,OAAO,CAAC,MAAM,CAAuB;IAGrC,gBAAgB,CAAC,QAAQ,EAAE,aAAa,GAAG,IAAI;IAK/C,mBAAmB,CAAC,gBAAgB,EAAE,aAAa,GAAG,IAAI;IAO1D,IAAI,CAAC,IAAI,CAAC,EAAE,kBAAkB,GAAG,IAAI;CAGtC;AAED,eAAO,MAAM,oBAAoB,cAAqB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TDownloadBundleNative, TSetApiKeyNative, TToggleStallionSwitchNative, TOnLaunchBundleNative } from 'src/types/utils.types';
|
|
2
|
+
import { IStallionMeta } from '../../types/meta.types';
|
|
3
|
+
export declare const setApiKeyNative: TSetApiKeyNative;
|
|
4
|
+
export declare const getApiKeyNative: () => Promise<string>;
|
|
5
|
+
export declare const getStorageNative: (key: string) => Promise<string>;
|
|
6
|
+
export declare const getStallionMetaNative: () => Promise<IStallionMeta>;
|
|
7
|
+
export declare const toggleStallionSwitchNative: TToggleStallionSwitchNative;
|
|
8
|
+
export declare const downloadBundleNative: TDownloadBundleNative;
|
|
9
|
+
export declare const onLaunchNative: TOnLaunchBundleNative;
|
|
10
|
+
export declare const sync: () => void;
|
|
11
|
+
export declare const getUidNative: () => Promise<string>;
|
|
12
|
+
export declare const getProjectIdNative: () => Promise<string>;
|
|
13
|
+
export declare const getAppTokenNative: () => Promise<string>;
|
|
14
|
+
export declare const syncNative: any;
|
|
15
|
+
//# sourceMappingURL=StallionNativeUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StallionNativeUtils.d.ts","sourceRoot":"","sources":["../../../../src/main/utils/StallionNativeUtils.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,2BAA2B,EAC3B,qBAAqB,EACtB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,aAAa,EAGd,MAAM,wBAAwB,CAAC;AAEhC,eAAO,MAAM,eAAe,EAAE,gBAE7B,CAAC;AAEF,eAAO,MAAM,eAAe,QAAa,QAAQ,MAAM,CAEtD,CAAC;AAEF,eAAO,MAAM,gBAAgB,QAAS,MAAM,KAAG,QAAQ,MAAM,CAM5D,CAAC;AAEF,eAAO,MAAM,qBAAqB,QAAa,QAAQ,aAAa,CA+BnE,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,2BAOxC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,qBACI,CAAC;AAExC,eAAO,MAAM,cAAc,EAAE,qBACG,CAAC;AAEjC,eAAO,MAAM,IAAI,EAAE,MAAM,IAAiC,CAAC;AAE3D,eAAO,MAAM,YAAY,QAAa,QAAQ,MAAM,CAMnD,CAAC;AAEF,eAAO,MAAM,kBAAkB,QAAa,QAAQ,MAAM,CAMzD,CAAC;AAEF,eAAO,MAAM,iBAAiB,QAAa,QAAQ,MAAM,CAMxD,CAAC;AAEF,eAAO,MAAM,UAAU,KAA6B,CAAC"}
|
|
@@ -3,5 +3,10 @@ export declare const getApiHeaders: () => {
|
|
|
3
3
|
'Content-Type': string;
|
|
4
4
|
'x-sdk-access-token': string;
|
|
5
5
|
};
|
|
6
|
+
export declare const getAppHeaders: () => {
|
|
7
|
+
Accept: string;
|
|
8
|
+
'Content-Type': string;
|
|
9
|
+
'x-app-token': string;
|
|
10
|
+
};
|
|
6
11
|
export declare const apiAuthMiddleware: (res: Response, setUserRequiresLogin: (requiresLogin: boolean) => void) => Promise<any>;
|
|
7
12
|
//# sourceMappingURL=apiUtils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apiUtils.d.ts","sourceRoot":"","sources":["../../../../src/main/utils/apiUtils.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa;;;;CAOzB,CAAC;AAEF,eAAO,MAAM,iBAAiB,QACvB,QAAQ,wCACyB,OAAO,KAAK,IAAI,iBAMvD,CAAC"}
|
|
1
|
+
{"version":3,"file":"apiUtils.d.ts","sourceRoot":"","sources":["../../../../src/main/utils/apiUtils.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa;;;;CAOzB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;CAMzB,CAAC;AAEF,eAAO,MAAM,iBAAiB,QACvB,QAAQ,wCACyB,OAAO,KAAK,IAAI,iBAMvD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useStallionUpdate.d.ts","sourceRoot":"","sources":["../../../../src/main/utils/useStallionUpdate.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,eAAO,MAAM,iBAAiB,QAAO,kBAOpC,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React, { ComponentType } from 'react';
|
|
2
|
-
|
|
3
|
-
declare const withStallion: <T>(BaseComponent: React.ComponentType<T>, initPrams?: IStallionInitParams) => React.FC<T>;
|
|
2
|
+
declare const withStallion: <T>(BaseComponent: React.ComponentType<T>) => React.FC<T>;
|
|
4
3
|
export default withStallion;
|
|
5
4
|
//# sourceMappingURL=withStallion.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withStallion.d.ts","sourceRoot":"","sources":["../../../../src/main/utils/withStallion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"withStallion.d.ts","sourceRoot":"","sources":["../../../../src/main/utils/withStallion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAO7C,QAAA,MAAM,YAAY,2DAYjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|