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.
Files changed (209) hide show
  1. package/android/src/main/java/com/stallion/Stallion.java +94 -10
  2. package/android/src/main/java/com/stallion/StallionApiUtil.java +58 -0
  3. package/android/src/main/java/com/stallion/StallionCommonUtil.java +25 -0
  4. package/android/src/main/java/com/stallion/StallionConstants.java +51 -15
  5. package/android/src/main/java/com/stallion/StallionDownloadCallback.java +7 -0
  6. package/android/src/main/java/com/stallion/StallionDownloadManager.java +121 -0
  7. package/android/src/main/java/com/stallion/StallionErrorBoundary.java +28 -4
  8. package/android/src/main/java/com/stallion/StallionEventEmitter.java +144 -0
  9. package/android/src/main/java/com/stallion/StallionFileUtil.java +129 -0
  10. package/android/src/main/java/com/stallion/StallionModule.java +100 -154
  11. package/android/src/main/java/com/stallion/StallionRollbackManager.java +82 -0
  12. package/android/src/main/java/com/stallion/StallionStorage.java +16 -6
  13. package/android/src/main/java/com/stallion/StallionSynManager.java +142 -0
  14. package/ios/main/Stallion-Bridging-Header.h +4 -0
  15. package/ios/main/Stallion.m +7 -5
  16. package/ios/main/Stallion.swift +80 -39
  17. package/ios/main/StallionConstants.swift +52 -10
  18. package/ios/main/StallionDownloader.swift +39 -52
  19. package/ios/main/StallionErrorBoundary.h +1 -1
  20. package/ios/main/StallionErrorBoundary.m +45 -28
  21. package/ios/main/StallionEventEmitter.swift +20 -0
  22. package/ios/main/StallionEventManager.h +21 -0
  23. package/ios/main/StallionEventManager.m +57 -0
  24. package/ios/main/StallionModule.m +107 -23
  25. package/ios/main/StallionObjConstants.h +46 -0
  26. package/ios/main/StallionObjConstants.m +124 -0
  27. package/ios/main/StallionObjUtil.h +14 -0
  28. package/ios/main/StallionObjUtil.m +22 -0
  29. package/ios/main/StallionRollbackHandler.h +22 -0
  30. package/ios/main/StallionRollbackHandler.m +128 -0
  31. package/ios/main/StallionSyncManager.swift +149 -0
  32. package/ios/main/StallionUtil.swift +2 -12
  33. package/package.json +6 -2
  34. package/src/index.js +5 -15
  35. package/src/index.js.map +1 -1
  36. package/src/main/components/common/ButtonFullWidth/styles.js +2 -2
  37. package/src/main/components/common/ButtonFullWidth/styles.js.map +1 -1
  38. package/src/main/components/common/Footer/index.js +24 -31
  39. package/src/main/components/common/Footer/index.js.map +1 -1
  40. package/src/main/components/common/Footer/styles.js +34 -33
  41. package/src/main/components/common/Footer/styles.js.map +1 -1
  42. package/src/main/components/common/Header/index.js +12 -8
  43. package/src/main/components/common/Header/index.js.map +1 -1
  44. package/src/main/components/common/Header/styles.js +10 -5
  45. package/src/main/components/common/Header/styles.js.map +1 -1
  46. package/src/main/components/common/ProfileOverlay/index.js +18 -7
  47. package/src/main/components/common/ProfileOverlay/index.js.map +1 -1
  48. package/src/main/components/common/ProfileOverlay/styles.js +41 -8
  49. package/src/main/components/common/ProfileOverlay/styles.js.map +1 -1
  50. package/src/main/components/common/Spinner/index.js +3 -1
  51. package/src/main/components/common/Spinner/index.js.map +1 -1
  52. package/src/main/components/modules/listing/components/BucketCard.js +3 -3
  53. package/src/main/components/modules/listing/components/BucketCard.js.map +1 -1
  54. package/src/main/components/modules/listing/components/BundleCard.js +9 -5
  55. package/src/main/components/modules/listing/components/BundleCard.js.map +1 -1
  56. package/src/main/components/modules/listing/components/BundleCardInfoSection.js +20 -12
  57. package/src/main/components/modules/listing/components/BundleCardInfoSection.js.map +1 -1
  58. package/src/main/components/modules/listing/components/CardDescriptionContent.js +3 -2
  59. package/src/main/components/modules/listing/components/CardDescriptionContent.js.map +1 -1
  60. package/src/main/components/modules/listing/components/MetaCard.js +38 -0
  61. package/src/main/components/modules/listing/components/MetaCard.js.map +1 -0
  62. package/src/main/components/modules/listing/components/SlotView.js +82 -0
  63. package/src/main/components/modules/listing/components/SlotView.js.map +1 -0
  64. package/src/main/components/modules/listing/components/styles/index.js +28 -9
  65. package/src/main/components/modules/listing/components/styles/index.js.map +1 -1
  66. package/src/main/components/modules/listing/hooks/useListing.js +9 -2
  67. package/src/main/components/modules/listing/hooks/useListing.js.map +1 -1
  68. package/src/main/components/modules/listing/index.js +12 -4
  69. package/src/main/components/modules/listing/index.js.map +1 -1
  70. package/src/main/components/modules/login/components/styles/index.js +4 -4
  71. package/src/main/components/modules/login/components/styles/index.js.map +1 -1
  72. package/src/main/components/modules/login/index.js +1 -1
  73. package/src/main/components/modules/login/index.js.map +1 -1
  74. package/src/main/components/modules/login/styles/index.js +7 -6
  75. package/src/main/components/modules/login/styles/index.js.map +1 -1
  76. package/src/main/components/modules/modal/StallionModal.js +13 -11
  77. package/src/main/components/modules/modal/StallionModal.js.map +1 -1
  78. package/src/main/components/modules/modal/hooks/useStallionModal.js +87 -24
  79. package/src/main/components/modules/modal/hooks/useStallionModal.js.map +1 -1
  80. package/src/main/components/modules/prod/index.js +3 -0
  81. package/src/main/components/modules/prod/index.js.map +1 -0
  82. package/src/main/components/modules/prod/prod.js +35 -0
  83. package/src/main/components/modules/prod/prod.js.map +1 -0
  84. package/src/main/components/modules/prod/styles/index.js +20 -0
  85. package/src/main/components/modules/prod/styles/index.js.map +1 -0
  86. package/src/main/constants/apiConstants.js +3 -1
  87. package/src/main/constants/apiConstants.js.map +1 -1
  88. package/src/main/constants/appConstants.js +40 -4
  89. package/src/main/constants/appConstants.js.map +1 -1
  90. package/src/main/constants/colors.js +8 -6
  91. package/src/main/constants/colors.js.map +1 -1
  92. package/src/main/state/actionCreators/useDownloadActions.js +17 -37
  93. package/src/main/state/actionCreators/useDownloadActions.js.map +1 -1
  94. package/src/main/state/actionCreators/useMetaActions.js +4 -5
  95. package/src/main/state/actionCreators/useMetaActions.js.map +1 -1
  96. package/src/main/state/actionCreators/useUpdateMetaActions.js +100 -0
  97. package/src/main/state/actionCreators/useUpdateMetaActions.js.map +1 -0
  98. package/src/main/state/actionCreators/useUserActions.js +4 -4
  99. package/src/main/state/actionCreators/useUserActions.js.map +1 -1
  100. package/src/main/state/index.js +15 -2
  101. package/src/main/state/index.js.map +1 -1
  102. package/src/main/state/reducers/updateMetaReducer.js +36 -0
  103. package/src/main/state/reducers/updateMetaReducer.js.map +1 -0
  104. package/src/main/utils/ErrorBoundary.js +15 -14
  105. package/src/main/utils/ErrorBoundary.js.map +1 -1
  106. package/src/main/utils/EventUtil.js +28 -0
  107. package/src/main/utils/EventUtil.js.map +1 -0
  108. package/src/main/utils/SharedDataManager.js +15 -12
  109. package/src/main/utils/SharedDataManager.js.map +1 -1
  110. package/src/main/utils/StallionEventEmitter.js +20 -0
  111. package/src/main/utils/StallionEventEmitter.js.map +1 -0
  112. package/src/main/utils/StallionNativeUtils.js +60 -0
  113. package/src/main/utils/StallionNativeUtils.js.map +1 -0
  114. package/src/main/utils/apiUtils.js +8 -0
  115. package/src/main/utils/apiUtils.js.map +1 -1
  116. package/src/main/utils/useStallionModal.js +4 -3
  117. package/src/main/utils/useStallionModal.js.map +1 -1
  118. package/src/main/utils/useStallionUpdate.js +13 -0
  119. package/src/main/utils/useStallionUpdate.js.map +1 -0
  120. package/src/main/utils/withStallion.js +1 -4
  121. package/src/main/utils/withStallion.js.map +1 -1
  122. package/src/types/meta.types.js +13 -0
  123. package/src/types/meta.types.js.map +1 -1
  124. package/src/types/updateMeta.types.js +7 -0
  125. package/src/types/updateMeta.types.js.map +1 -0
  126. package/types/index.d.ts +3 -0
  127. package/types/index.d.ts.map +1 -1
  128. package/types/main/components/common/Footer/index.d.ts +1 -4
  129. package/types/main/components/common/Footer/index.d.ts.map +1 -1
  130. package/types/main/components/common/Footer/styles.d.ts +30 -29
  131. package/types/main/components/common/Footer/styles.d.ts.map +1 -1
  132. package/types/main/components/common/Header/index.d.ts.map +1 -1
  133. package/types/main/components/common/Header/styles.d.ts +6 -1
  134. package/types/main/components/common/Header/styles.d.ts.map +1 -1
  135. package/types/main/components/common/ProfileOverlay/index.d.ts.map +1 -1
  136. package/types/main/components/common/ProfileOverlay/styles.d.ts +38 -5
  137. package/types/main/components/common/ProfileOverlay/styles.d.ts.map +1 -1
  138. package/types/main/components/common/Spinner/index.d.ts.map +1 -1
  139. package/types/main/components/modules/listing/components/BucketCard.d.ts.map +1 -1
  140. package/types/main/components/modules/listing/components/BundleCard.d.ts.map +1 -1
  141. package/types/main/components/modules/listing/components/BundleCardInfoSection.d.ts +2 -0
  142. package/types/main/components/modules/listing/components/BundleCardInfoSection.d.ts.map +1 -1
  143. package/types/main/components/modules/listing/components/CardDescriptionContent.d.ts.map +1 -1
  144. package/types/main/components/modules/listing/components/MetaCard.d.ts +8 -0
  145. package/types/main/components/modules/listing/components/MetaCard.d.ts.map +1 -0
  146. package/types/main/components/modules/listing/components/SlotView.d.ts +5 -0
  147. package/types/main/components/modules/listing/components/SlotView.d.ts.map +1 -0
  148. package/types/main/components/modules/listing/components/styles/index.d.ts +24 -5
  149. package/types/main/components/modules/listing/components/styles/index.d.ts.map +1 -1
  150. package/types/main/components/modules/listing/hooks/useListing.d.ts +2 -0
  151. package/types/main/components/modules/listing/hooks/useListing.d.ts.map +1 -1
  152. package/types/main/components/modules/listing/index.d.ts.map +1 -1
  153. package/types/main/components/modules/login/components/styles/index.d.ts +1 -1
  154. package/types/main/components/modules/login/styles/index.d.ts +4 -3
  155. package/types/main/components/modules/login/styles/index.d.ts.map +1 -1
  156. package/types/main/components/modules/modal/StallionModal.d.ts.map +1 -1
  157. package/types/main/components/modules/modal/hooks/useStallionModal.d.ts +2 -5
  158. package/types/main/components/modules/modal/hooks/useStallionModal.d.ts.map +1 -1
  159. package/types/main/components/modules/prod/index.d.ts +3 -0
  160. package/types/main/components/modules/prod/index.d.ts.map +1 -0
  161. package/types/main/components/modules/prod/prod.d.ts +4 -0
  162. package/types/main/components/modules/prod/prod.d.ts.map +1 -0
  163. package/types/main/components/modules/prod/styles/index.d.ts +16 -0
  164. package/types/main/components/modules/prod/styles/index.d.ts.map +1 -0
  165. package/types/main/constants/apiConstants.d.ts +4 -2
  166. package/types/main/constants/apiConstants.d.ts.map +1 -1
  167. package/types/main/constants/appConstants.d.ts +37 -4
  168. package/types/main/constants/appConstants.d.ts.map +1 -1
  169. package/types/main/constants/colors.d.ts +2 -0
  170. package/types/main/constants/colors.d.ts.map +1 -1
  171. package/types/main/index.d.ts +1 -1
  172. package/types/main/state/actionCreators/useDownloadActions.d.ts +3 -1
  173. package/types/main/state/actionCreators/useDownloadActions.d.ts.map +1 -1
  174. package/types/main/state/actionCreators/useMetaActions.d.ts +1 -1
  175. package/types/main/state/actionCreators/useMetaActions.d.ts.map +1 -1
  176. package/types/main/state/actionCreators/useUpdateMetaActions.d.ts +7 -0
  177. package/types/main/state/actionCreators/useUpdateMetaActions.d.ts.map +1 -0
  178. package/types/main/state/index.d.ts.map +1 -1
  179. package/types/main/state/reducers/updateMetaReducer.d.ts +9 -0
  180. package/types/main/state/reducers/updateMetaReducer.d.ts.map +1 -0
  181. package/types/main/utils/ErrorBoundary.d.ts +1 -1
  182. package/types/main/utils/ErrorBoundary.d.ts.map +1 -1
  183. package/types/main/utils/EventUtil.d.ts +9 -0
  184. package/types/main/utils/EventUtil.d.ts.map +1 -0
  185. package/types/main/utils/SharedDataManager.d.ts +8 -6
  186. package/types/main/utils/SharedDataManager.d.ts.map +1 -1
  187. package/types/main/utils/StallionEventEmitter.d.ts +14 -0
  188. package/types/main/utils/StallionEventEmitter.d.ts.map +1 -0
  189. package/types/main/utils/StallionNativeUtils.d.ts +15 -0
  190. package/types/main/utils/StallionNativeUtils.d.ts.map +1 -0
  191. package/types/main/utils/apiUtils.d.ts +5 -0
  192. package/types/main/utils/apiUtils.d.ts.map +1 -1
  193. package/types/main/utils/useStallionUpdate.d.ts +3 -0
  194. package/types/main/utils/useStallionUpdate.d.ts.map +1 -0
  195. package/types/main/utils/withStallion.d.ts +1 -2
  196. package/types/main/utils/withStallion.d.ts.map +1 -1
  197. package/types/types/globalProvider.types.d.ts +5 -1
  198. package/types/types/globalProvider.types.d.ts.map +1 -1
  199. package/types/types/meta.types.d.ts +19 -3
  200. package/types/types/meta.types.d.ts.map +1 -1
  201. package/types/types/updateMeta.types.d.ts +35 -0
  202. package/types/types/updateMeta.types.d.ts.map +1 -0
  203. package/types/types/utils.types.d.ts +9 -7
  204. package/types/types/utils.types.d.ts.map +1 -1
  205. package/android/src/main/java/com/stallion/StallionZip.java +0 -127
  206. package/src/main/utils/StallionNaitveUtils.js +0 -7
  207. package/src/main/utils/StallionNaitveUtils.js.map +0 -1
  208. package/types/main/utils/StallionNaitveUtils.d.ts +0 -7
  209. 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;AAG1B,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;AAaF,eAAe,sBAAsB,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,8 @@
1
+ import React from 'react';
2
+ import { IUpdateMeta } from '../../../../../types/updateMeta.types';
3
+ interface IMetaCard {
4
+ meta: IUpdateMeta;
5
+ }
6
+ declare const MetaCard: React.FC<IMetaCard>;
7
+ export default MetaCard;
8
+ //# sourceMappingURL=MetaCard.d.ts.map
@@ -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,5 @@
1
+ import React from 'react';
2
+ import { IStallionSlotData } from '../../../../../types/meta.types';
3
+ declare const SlotView: React.FC<IStallionSlotData>;
4
+ export default SlotView;
5
+ //# sourceMappingURL=SlotView.d.ts.map
@@ -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
- marginVertical: number;
53
+ marginBottom: number;
39
54
  };
40
55
  subText: {
41
56
  fontSize: number;
42
- marginBottom: number;
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuDV,CAAC;AAEH,eAAe,MAAM,CAAC"}
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;;;;;oCA6DA,MAAM,GAAG,IAAI;;;CAwC5B,CAAC;AAEF,eAAe,UAAU,CAAC"}
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,KAAe,MAAM,OAAO,CAAC;;AAwDpC,wBAA6B"}
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"}
@@ -12,7 +12,7 @@ declare const styles: {
12
12
  borderWidth: number;
13
13
  borderColor: string;
14
14
  borderRadius: number;
15
- margin: number;
15
+ marginBottom: number;
16
16
  paddingHorizontal: number;
17
17
  color: string;
18
18
  };
@@ -8,16 +8,17 @@ declare const styles: {
8
8
  alignItems: "center";
9
9
  };
10
10
  logoContainer: {
11
- flex: number;
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BV,CAAC;AAEH,eAAe,MAAM,CAAC"}
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;AAc1B,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EA6D1B,CAAC;AAcF,eAAe,aAAa,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":"AAUA,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;CAqGrB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
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,3 @@
1
+ import Prod from './prod';
2
+ export default Prod;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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,4 @@
1
+ import React from 'react';
2
+ declare const Prod: React.FC;
3
+ export default Prod;
4
+ //# sourceMappingURL=prod.d.ts.map
@@ -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://stallion-api.redhorse.tech";
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,uCAAuC,CAAC;AAEjE,oBAAY,SAAS;IACnB,KAAK,6BAA6B;IAClC,UAAU,4BAA4B;IACtC,aAAa,6BAA6B;IAC1C,aAAa,wBAAwB;IACrC,sBAAsB,6BAA6B;IACnD,YAAY,6BAA6B;CAC1C;AACD,eAAO,MAAM,oBAAoB,KAAK,CAAC"}
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 = "Enabled",
16
- OFF = "Disabled"
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 = "SUBMIT";
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,UAAU,CAAC;AACnC,eAAO,MAAM,aAAa,YAAY,CAAC;AACvC,eAAO,MAAM,kBAAkB,KAAK,CAAC;AACrC,eAAO,MAAM,UAAU,QAAyB,CAAC;AACjD,eAAO,MAAM,mBAAmB,IAAI,CAAC;AAErC,eAAO,MAAM,iBAAiB,UAAU,CAAC;AACzC,eAAO,MAAM,gBAAgB,SAAS,CAAC;AACvC,eAAO,MAAM,oBAAoB,aAAa,CAAC;AAC/C,eAAO,MAAM,eAAe,eAAe,CAAC;AAC5C,eAAO,MAAM,kBAAkB,WAAW,CAAC;AAE3C,eAAO,MAAM,iBAAiB,oBAAoB,CAAC;AACnD,eAAO,MAAM,oBAAoB,cAAc,CAAC;AAChD,oBAAY,YAAY;IACtB,EAAE,YAAY;IACd,GAAG,aAAa;CACjB;AAED,eAAO,MAAM,YAAY,YAAY,CAAC;AACtC,eAAO,MAAM,wBAAwB,iBAAiB,C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AEpD,eAAO,MAAM,qBAAqB,wBAAwB,CAAC;AAC3D,eAAO,MAAM,6BAA6B,oCAAoC,CAAC;AAC/E,eAAO,MAAM,sBAAsB,gDACY,CAAC;AAChD,eAAO,MAAM,qBAAqB,OAAO,CAAC;AAE1C,oBAAY,gBAAgB;IAC1B,SAAS,uBAAuB;IAChC,SAAS,gBAAgB;IACzB,wBAAwB,gBAAgB;IACxC,cAAc,kBAAkB;IAChC,eAAe,mBAAmB;IAClC,gBAAgB,UAAU;IAC1B,eAAe,iBAAiB;IAChC,kBAAkB,oBAAoB;IACtC,mBAAmB,aAAa;IAChC,qBAAqB,4BAA4B;IACjD,sBAAsB,6BAA6B;CACpD;AAED,oBAAY,oBAAoB;IAC9B,qBAAqB,0BAA0B;IAC/C,mBAAmB,wBAAwB;IAC3C,sBAAsB,2BAA2B;IACjD,sBAAsB,2BAA2B;IACjD,eAAe,oBAAoB;IACnC,gBAAgB,qBAAqB;IACrC,cAAc,mBAAmB;IACjC,eAAe,oBAAoB;IACnC,cAAc,mBAAmB;IACjC,qBAAqB,0BAA0B;CAChD;AACD,oBAAY,qBAAqB;IAC/B,oBAAoB,yBAAyB;IAC7C,uBAAuB,4BAA4B;IACnD,uBAAuB,4BAA4B;CACpD;AAED,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAE7D,eAAO,MAAM,wBAAwB,yCAAyC,CAAC"}
@@ -9,8 +9,10 @@ export declare const COLORS: {
9
9
  black7: string;
10
10
  black2: string;
11
11
  black5: string;
12
+ black1: string;
12
13
  orange: string;
13
14
  blue: string;
14
15
  text_major: string;
16
+ text_light: string;
15
17
  };
16
18
  //# sourceMappingURL=colors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../src/main/constants/colors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;CAclB,CAAC"}
1
+ {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../src/main/constants/colors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;CAgBlB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  declare const _default: {
3
- withStallion: <T>(BaseComponent: import("react").ComponentType<T>, initPrams?: import("../types/utils.types").IStallionInitParams | undefined) => import("react").FC<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: (version: number, bucketId: string, apiDownloadUrl: string) => void;
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,KAAiC,MAAM,OAAO,CAAC;AAwBtD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,QAAA,MAAM,kBAAkB,aACZ,MAAM,QAAQ,CAAC,eAAe,CAAC,uBACpB,MAAM,IAAI;8BAInB,MAAM,YAAY,MAAM,kBAAkB,MAAM;CA+D7D,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
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;;CAe5D,CAAC;AAEF,eAAe,cAAc,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;AAenE,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAIlE,eAAO,MAAM,aAAa,+BAAsC,CAAC;AAEjE,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EA0D3B,CAAC;AAEF,eAAe,cAAc,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;AAiBzC,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;IAOtC,iBAAiB,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAuBrC,aAAa;IAGb,MAAM;CAyBP;AAED,eAAe,aAAa,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,9 @@
1
+ interface IEventData {
2
+ type: string;
3
+ payload: {
4
+ [key: string]: any;
5
+ };
6
+ }
7
+ export declare const fireEvent: (data: IEventData) => void;
8
+ export {};
9
+ //# sourceMappingURL=EventUtil.d.ts.map
@@ -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
- _configProjectId?: string;
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
- getConfigProjectId(): string;
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,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,MAAM,CAAC,WAAW,IAAI,iBAAiB,GAAG,IAAI,GAAG,SAAS;IAQ1D,YAAY,IAAI,MAAM;IAItB,kBAAkB,IAAI,MAAM;IAI5B,kBAAkB,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAIpC,gBAAgB,IAAI,MAAM;IAI1B,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAIlC,cAAc,IAAI,MAAM;IAIxB,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;CAG1C"}
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,3 @@
1
+ import { IUseStallionUpdate } from '../../types/utils.types';
2
+ export declare const useStallionUpdate: () => IUseStallionUpdate;
3
+ //# sourceMappingURL=useStallionUpdate.d.ts.map
@@ -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
- import { IStallionInitParams } from '../../types/utils.types';
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;AAQ7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D,QAAA,MAAM,YAAY,yDAEJ,mBAAmB,gBAchC,CAAC;AAEF,eAAe,YAAY,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"}