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":["React","Component","View","StyleSheet","Text","ScrollView","SafeAreaView","Header","ButtonFullWidth","
|
|
1
|
+
{"version":3,"names":["React","Component","View","StyleSheet","Text","ScrollView","SafeAreaView","Header","ButtonFullWidth","getStallionMetaNative","STALLION_EB_BTN_TXT","STALLION_EB_INFO","STD_MARGIN","COLORS","SWITCH_STATES","ErrorBoundary","constructor","props","state","errorText","continueCrash","bind","componentDidCatch","error","_error$cause","errorString","name","message","cause","toString","stack","join","console","meta","switchState","STAGE","setState","requestAnimationFrame","Error","render","createElement","style","styles","ebContainer","ebContentContainer","ebInfoTextContainer","ebInfoText","buttonText","onPress","ebScrollContainer","contentContainerStyle","ebScrollContentContainer","ebErrorText","children","create","flex","flexDirection","justifyContent","alignItems","paddingHorizontal","width","marginVertical","flexGrow","textAlign","backgroundColor","black7","color","white"],"sourceRoot":"../../../../src","sources":["main/utils/ErrorBoundary.tsx"],"mappings":"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"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Platform } from 'react-native';
|
|
2
|
+
import { API_BASE_URL, API_PATHS } from '../constants/apiConstants';
|
|
3
|
+
import { getAppHeaders } from './apiUtils';
|
|
4
|
+
import SharedDataManager from './SharedDataManager';
|
|
5
|
+
export const fireEvent = data => {
|
|
6
|
+
if (data !== null && data !== void 0 && data.type && data !== null && data !== void 0 && data.payload) {
|
|
7
|
+
const dataManager = SharedDataManager.getInstance();
|
|
8
|
+
const projectId = dataManager === null || dataManager === void 0 ? void 0 : dataManager.getProjectId();
|
|
9
|
+
const body = {
|
|
10
|
+
projectId,
|
|
11
|
+
eventData: {
|
|
12
|
+
...data.payload,
|
|
13
|
+
type: data.type,
|
|
14
|
+
uid: dataManager === null || dataManager === void 0 ? void 0 : dataManager.getUid(),
|
|
15
|
+
platform: Platform.OS,
|
|
16
|
+
projectId
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
fetch(API_BASE_URL + API_PATHS.LOG_EVENT, {
|
|
20
|
+
method: 'POST',
|
|
21
|
+
body: JSON.stringify(body),
|
|
22
|
+
headers: getAppHeaders()
|
|
23
|
+
}).catch(err => {
|
|
24
|
+
console.error('Stallion: Error in events API ', err);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=EventUtil.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Platform","API_BASE_URL","API_PATHS","getAppHeaders","SharedDataManager","fireEvent","data","type","payload","dataManager","getInstance","projectId","getProjectId","body","eventData","uid","getUid","platform","OS","fetch","LOG_EVENT","method","JSON","stringify","headers","catch","err","console","error"],"sourceRoot":"../../../../src","sources":["main/utils/EventUtil.ts"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,cAAc;AACvC,SAASC,YAAY,EAAEC,SAAS,QAAQ,2BAA2B;AACnE,SAASC,aAAa,QAAQ,YAAY;AAC1C,OAAOC,iBAAiB,MAAM,qBAAqB;AASnD,OAAO,MAAMC,SAAS,GAAIC,IAAgB,IAAK;EAC7C,IAAIA,IAAI,aAAJA,IAAI,eAAJA,IAAI,CAAEC,IAAI,IAAID,IAAI,aAAJA,IAAI,eAAJA,IAAI,CAAEE,OAAO,EAAE;IAC/B,MAAMC,WAAW,GAAGL,iBAAiB,CAACM,WAAW,CAAC,CAAC;IACnD,MAAMC,SAAS,GAAGF,WAAW,aAAXA,WAAW,uBAAXA,WAAW,CAAEG,YAAY,CAAC,CAAC;IAC7C,MAAMC,IAAI,GAAG;MACXF,SAAS;MACTG,SAAS,EAAE;QACT,GAAGR,IAAI,CAACE,OAAO;QACfD,IAAI,EAAED,IAAI,CAACC,IAAI;QACfQ,GAAG,EAAEN,WAAW,aAAXA,WAAW,uBAAXA,WAAW,CAAEO,MAAM,CAAC,CAAC;QAC1BC,QAAQ,EAAEjB,QAAQ,CAACkB,EAAE;QACrBP;MACF;IACF,CAAC;IACDQ,KAAK,CAAClB,YAAY,GAAGC,SAAS,CAACkB,SAAS,EAAE;MACxCC,MAAM,EAAE,MAAM;MACdR,IAAI,EAAES,IAAI,CAACC,SAAS,CAACV,IAAI,CAAC;MAC1BW,OAAO,EAAErB,aAAa,CAAC;IACzB,CAAC,CAAC,CAACsB,KAAK,CAAEC,GAAG,IAAK;MAChBC,OAAO,CAACC,KAAK,CAAC,gCAAgC,EAAEF,GAAG,CAAC;IACtD,CAAC,CAAC;EACJ;AACF,CAAC"}
|
|
@@ -10,19 +10,10 @@ export default class SharedDataManager {
|
|
|
10
10
|
return this._instance;
|
|
11
11
|
}
|
|
12
12
|
getProjectId() {
|
|
13
|
-
return this.
|
|
13
|
+
return this._projectId || '';
|
|
14
14
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
setConfigProjectId(id) {
|
|
19
|
-
this._configProjectId = id;
|
|
20
|
-
}
|
|
21
|
-
getInitProjectId() {
|
|
22
|
-
return this._initProjectId || '';
|
|
23
|
-
}
|
|
24
|
-
setInitProjectId(id) {
|
|
25
|
-
this._initProjectId = id;
|
|
15
|
+
setProjectId(id) {
|
|
16
|
+
this._projectId = id;
|
|
26
17
|
}
|
|
27
18
|
getAccessToken() {
|
|
28
19
|
return this._accessToken || '';
|
|
@@ -30,5 +21,17 @@ export default class SharedDataManager {
|
|
|
30
21
|
setAccessToken(accessToken) {
|
|
31
22
|
this._accessToken = accessToken;
|
|
32
23
|
}
|
|
24
|
+
getUid() {
|
|
25
|
+
return this._uniqueId || '';
|
|
26
|
+
}
|
|
27
|
+
setUid(uid) {
|
|
28
|
+
this._uniqueId = uid;
|
|
29
|
+
}
|
|
30
|
+
getAppToken() {
|
|
31
|
+
return this._appToken || '';
|
|
32
|
+
}
|
|
33
|
+
setAppToken(appToken) {
|
|
34
|
+
this._appToken = appToken;
|
|
35
|
+
}
|
|
33
36
|
}
|
|
34
37
|
//# sourceMappingURL=SharedDataManager.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["SharedDataManager","_instance","getInstance","getProjectId","
|
|
1
|
+
{"version":3,"names":["SharedDataManager","_instance","getInstance","getProjectId","_projectId","setProjectId","id","getAccessToken","_accessToken","setAccessToken","accessToken","getUid","_uniqueId","setUid","uid","getAppToken","_appToken","setAppToken","appToken"],"sourceRoot":"../../../../src","sources":["main/utils/SharedDataManager.ts"],"mappings":"AAAA,eAAe,MAAMA,iBAAiB,CAAC;EACrC,OAAOC,SAAS,GAA8B,IAAI;EAOlD;AACF;AACA;EACE,OAAOC,WAAWA,CAAA,EAAyC;IACzD,IAAIF,iBAAiB,CAACC,SAAS,KAAK,IAAI,EAAE;MACxCD,iBAAiB,CAACC,SAAS,GAAG,IAAID,iBAAiB,CAAC,CAAC;IACvD;IAEA,OAAO,IAAI,CAACC,SAAS;EACvB;EAEAE,YAAYA,CAAA,EAAW;IACrB,OAAO,IAAI,CAACC,UAAU,IAAI,EAAE;EAC9B;EAEAC,YAAYA,CAACC,EAAU,EAAQ;IAC7B,IAAI,CAACF,UAAU,GAAGE,EAAE;EACtB;EAEAC,cAAcA,CAAA,EAAW;IACvB,OAAO,IAAI,CAACC,YAAY,IAAI,EAAE;EAChC;EAEAC,cAAcA,CAACC,WAAmB,EAAQ;IACxC,IAAI,CAACF,YAAY,GAAGE,WAAW;EACjC;EAEAC,MAAMA,CAAA,EAAW;IACf,OAAO,IAAI,CAACC,SAAS,IAAI,EAAE;EAC7B;EAEAC,MAAMA,CAACC,GAAW,EAAQ;IACxB,IAAI,CAACF,SAAS,GAAGE,GAAG;EACtB;EAEAC,WAAWA,CAAA,EAAW;IACpB,OAAO,IAAI,CAACC,SAAS,IAAI,EAAE;EAC7B;EAEAC,WAAWA,CAACC,QAAgB,EAAQ;IAClC,IAAI,CAACF,SAAS,GAAGE,QAAQ;EAC3B;AACF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
class EventEmitter {
|
|
2
|
+
events = [];
|
|
3
|
+
|
|
4
|
+
// Method to add event listener
|
|
5
|
+
addEventListener(listener) {
|
|
6
|
+
this.events.push(listener);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
// Method to remove event listener
|
|
10
|
+
removeEventListener(listenerToRemove) {
|
|
11
|
+
this.events = this.events.filter(listener => listener !== listenerToRemove);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// Method to emit an event
|
|
15
|
+
emit(data) {
|
|
16
|
+
this.events.forEach(listener => listener(data));
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export const stallionEventEmitter = new EventEmitter();
|
|
20
|
+
//# sourceMappingURL=StallionEventEmitter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["EventEmitter","events","addEventListener","listener","push","removeEventListener","listenerToRemove","filter","emit","data","forEach","stallionEventEmitter"],"sourceRoot":"../../../../src","sources":["main/utils/StallionEventEmitter.ts"],"mappings":"AAOA,MAAMA,YAAY,CAAC;EACTC,MAAM,GAAoB,EAAE;;EAEpC;EACAC,gBAAgBA,CAACC,QAAuB,EAAQ;IAC9C,IAAI,CAACF,MAAM,CAACG,IAAI,CAACD,QAAQ,CAAC;EAC5B;;EAEA;EACAE,mBAAmBA,CAACC,gBAA+B,EAAQ;IACzD,IAAI,CAACL,MAAM,GAAG,IAAI,CAACA,MAAM,CAACM,MAAM,CAC7BJ,QAAQ,IAAKA,QAAQ,KAAKG,gBAC7B,CAAC;EACH;;EAEA;EACAE,IAAIA,CAACC,IAAyB,EAAQ;IACpC,IAAI,CAACR,MAAM,CAACS,OAAO,CAAEP,QAAQ,IAAKA,QAAQ,CAACM,IAAI,CAAC,CAAC;EACnD;AACF;AAEA,OAAO,MAAME,oBAAoB,GAAG,IAAIX,YAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import StallionNativeModule from '../../StallionNativeModule';
|
|
2
|
+
import { NATIVE_CONSTANTS } from '../constants/appConstants';
|
|
3
|
+
export const setApiKeyNative = apiKey => {
|
|
4
|
+
StallionNativeModule === null || StallionNativeModule === void 0 ? void 0 : StallionNativeModule.setStorage(NATIVE_CONSTANTS.SDK_TOKEN, apiKey);
|
|
5
|
+
};
|
|
6
|
+
export const getApiKeyNative = async () => {
|
|
7
|
+
return await getStorageNative(NATIVE_CONSTANTS.SDK_TOKEN);
|
|
8
|
+
};
|
|
9
|
+
export const getStorageNative = key => {
|
|
10
|
+
return new Promise(res => {
|
|
11
|
+
StallionNativeModule === null || StallionNativeModule === void 0 ? void 0 : StallionNativeModule.getStorage(key, value => {
|
|
12
|
+
res(value);
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
export const getStallionMetaNative = async () => {
|
|
17
|
+
return {
|
|
18
|
+
switchState: await getStorageNative(NATIVE_CONSTANTS.SWITCH_STATE_INDENTIFIER),
|
|
19
|
+
stageSlot: {
|
|
20
|
+
currentSlot: await getStorageNative(NATIVE_CONSTANTS.CURRENT_STAGE_SLOT_KEY),
|
|
21
|
+
new: await getStorageNative(NATIVE_CONSTANTS.STAGE_DIRECTORY + NATIVE_CONSTANTS.NEW_FOLDER_SLOT),
|
|
22
|
+
temp: await getStorageNative(NATIVE_CONSTANTS.STAGE_DIRECTORY + NATIVE_CONSTANTS.TEMP_FOLDER_SLOT)
|
|
23
|
+
},
|
|
24
|
+
prodSlot: {
|
|
25
|
+
currentSlot: await getStorageNative(NATIVE_CONSTANTS.CURRENT_PROD_SLOT_KEY),
|
|
26
|
+
new: await getStorageNative(NATIVE_CONSTANTS.PROD_DIRECTORY + NATIVE_CONSTANTS.NEW_FOLDER_SLOT),
|
|
27
|
+
stable: await getStorageNative(NATIVE_CONSTANTS.PROD_DIRECTORY + NATIVE_CONSTANTS.STABLE_FOLDER_SLOT),
|
|
28
|
+
temp: await getStorageNative(NATIVE_CONSTANTS.PROD_DIRECTORY + NATIVE_CONSTANTS.TEMP_FOLDER_SLOT)
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export const toggleStallionSwitchNative = newSwitchState => {
|
|
33
|
+
StallionNativeModule === null || StallionNativeModule === void 0 ? void 0 : StallionNativeModule.setStorage(NATIVE_CONSTANTS.SWITCH_STATE_INDENTIFIER, newSwitchState);
|
|
34
|
+
};
|
|
35
|
+
export const downloadBundleNative = StallionNativeModule === null || StallionNativeModule === void 0 ? void 0 : StallionNativeModule.downloadPackage;
|
|
36
|
+
export const onLaunchNative = StallionNativeModule === null || StallionNativeModule === void 0 ? void 0 : StallionNativeModule.onLaunch;
|
|
37
|
+
export const sync = StallionNativeModule === null || StallionNativeModule === void 0 ? void 0 : StallionNativeModule.sync;
|
|
38
|
+
export const getUidNative = async () => {
|
|
39
|
+
return new Promise(resolve => {
|
|
40
|
+
StallionNativeModule === null || StallionNativeModule === void 0 ? void 0 : StallionNativeModule.getUniqueId(uid => {
|
|
41
|
+
resolve(uid);
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
export const getProjectIdNative = async () => {
|
|
46
|
+
return new Promise(resolve => {
|
|
47
|
+
StallionNativeModule === null || StallionNativeModule === void 0 ? void 0 : StallionNativeModule.getProjectId(projectId => {
|
|
48
|
+
resolve(projectId);
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
export const getAppTokenNative = async () => {
|
|
53
|
+
return new Promise(resolve => {
|
|
54
|
+
StallionNativeModule === null || StallionNativeModule === void 0 ? void 0 : StallionNativeModule.getAppToken(appToken => {
|
|
55
|
+
resolve(appToken);
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
export const syncNative = StallionNativeModule === null || StallionNativeModule === void 0 ? void 0 : StallionNativeModule.sync;
|
|
60
|
+
//# sourceMappingURL=StallionNativeUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StallionNativeModule","NATIVE_CONSTANTS","setApiKeyNative","apiKey","setStorage","SDK_TOKEN","getApiKeyNative","getStorageNative","key","Promise","res","getStorage","value","getStallionMetaNative","switchState","SWITCH_STATE_INDENTIFIER","stageSlot","currentSlot","CURRENT_STAGE_SLOT_KEY","new","STAGE_DIRECTORY","NEW_FOLDER_SLOT","temp","TEMP_FOLDER_SLOT","prodSlot","CURRENT_PROD_SLOT_KEY","PROD_DIRECTORY","stable","STABLE_FOLDER_SLOT","toggleStallionSwitchNative","newSwitchState","downloadBundleNative","downloadPackage","onLaunchNative","onLaunch","sync","getUidNative","resolve","getUniqueId","uid","getProjectIdNative","getProjectId","projectId","getAppTokenNative","getAppToken","appToken","syncNative"],"sourceRoot":"../../../../src","sources":["main/utils/StallionNativeUtils.ts"],"mappings":"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"}
|
|
@@ -7,6 +7,14 @@ export const getApiHeaders = () => {
|
|
|
7
7
|
'x-sdk-access-token': ((_SharedDataManager$ge = SharedDataManager.getInstance()) === null || _SharedDataManager$ge === void 0 ? void 0 : _SharedDataManager$ge.getAccessToken()) || ''
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
|
+
export const getAppHeaders = () => {
|
|
11
|
+
var _SharedDataManager$ge2;
|
|
12
|
+
return {
|
|
13
|
+
'Accept': 'application/json',
|
|
14
|
+
'Content-Type': 'application/json',
|
|
15
|
+
'x-app-token': ((_SharedDataManager$ge2 = SharedDataManager.getInstance()) === null || _SharedDataManager$ge2 === void 0 ? void 0 : _SharedDataManager$ge2.getAppToken()) || ''
|
|
16
|
+
};
|
|
17
|
+
};
|
|
10
18
|
export const apiAuthMiddleware = (res, setUserRequiresLogin) => {
|
|
11
19
|
if (res.status === 401) {
|
|
12
20
|
setUserRequiresLogin(true);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["SharedDataManager","getApiHeaders","_SharedDataManager$ge","getInstance","getAccessToken","apiAuthMiddleware","res","setUserRequiresLogin","status","json"],"sourceRoot":"../../../../src","sources":["main/utils/apiUtils.ts"],"mappings":"AAAA,OAAOA,iBAAiB,MAAM,qBAAqB;AAEnD,OAAO,MAAMC,aAAa,GAAGA,CAAA,KAAM;EAAA,IAAAC,qBAAA;EACjC,OAAO;IACL,QAAQ,EAAE,kBAAkB;IAC5B,cAAc,EAAE,kBAAkB;IAClC,oBAAoB,EAClB,EAAAA,qBAAA,GAAAF,iBAAiB,CAACG,WAAW,CAAC,CAAC,cAAAD,qBAAA,uBAA/BA,qBAAA,CAAiCE,cAAc,CAAC,CAAC,KAAI;EACzD,CAAC;AACH,CAAC;AAED,OAAO,MAAMC,iBAAiB,GAAGA,CAC/BC,GAAa,EACbC,oBAAsD,KACnD;EACH,IAAID,GAAG,CAACE,MAAM,KAAK,GAAG,EAAE;IACtBD,oBAAoB,CAAC,IAAI,CAAC;EAC5B;EACA,OAAOD,GAAG,CAACG,IAAI,CAAC,CAAC;AACnB,CAAC"}
|
|
1
|
+
{"version":3,"names":["SharedDataManager","getApiHeaders","_SharedDataManager$ge","getInstance","getAccessToken","getAppHeaders","_SharedDataManager$ge2","getAppToken","apiAuthMiddleware","res","setUserRequiresLogin","status","json"],"sourceRoot":"../../../../src","sources":["main/utils/apiUtils.ts"],"mappings":"AAAA,OAAOA,iBAAiB,MAAM,qBAAqB;AAEnD,OAAO,MAAMC,aAAa,GAAGA,CAAA,KAAM;EAAA,IAAAC,qBAAA;EACjC,OAAO;IACL,QAAQ,EAAE,kBAAkB;IAC5B,cAAc,EAAE,kBAAkB;IAClC,oBAAoB,EAClB,EAAAA,qBAAA,GAAAF,iBAAiB,CAACG,WAAW,CAAC,CAAC,cAAAD,qBAAA,uBAA/BA,qBAAA,CAAiCE,cAAc,CAAC,CAAC,KAAI;EACzD,CAAC;AACH,CAAC;AAED,OAAO,MAAMC,aAAa,GAAGA,CAAA,KAAM;EAAA,IAAAC,sBAAA;EACjC,OAAO;IACL,QAAQ,EAAE,kBAAkB;IAC5B,cAAc,EAAE,kBAAkB;IAClC,aAAa,EAAE,EAAAA,sBAAA,GAAAN,iBAAiB,CAACG,WAAW,CAAC,CAAC,cAAAG,sBAAA,uBAA/BA,sBAAA,CAAiCC,WAAW,CAAC,CAAC,KAAI;EACnE,CAAC;AACH,CAAC;AAED,OAAO,MAAMC,iBAAiB,GAAGA,CAC/BC,GAAa,EACbC,oBAAsD,KACnD;EACH,IAAID,GAAG,CAACE,MAAM,KAAK,GAAG,EAAE;IACtBD,oBAAoB,CAAC,IAAI,CAAC;EAC5B;EACA,OAAOD,GAAG,CAACG,IAAI,CAAC,CAAC;AACnB,CAAC"}
|
|
@@ -3,13 +3,14 @@ import { GlobalContext } from '../../main/state';
|
|
|
3
3
|
const useStallionModal = () => {
|
|
4
4
|
const {
|
|
5
5
|
actions: {
|
|
6
|
-
setIsModalVisible
|
|
6
|
+
setIsModalVisible,
|
|
7
|
+
refreshMeta
|
|
7
8
|
}
|
|
8
9
|
} = useContext(GlobalContext);
|
|
9
10
|
const showModal = useCallback(() => {
|
|
10
11
|
setIsModalVisible(true);
|
|
11
|
-
|
|
12
|
-
}, []);
|
|
12
|
+
refreshMeta();
|
|
13
|
+
}, [setIsModalVisible, refreshMeta]);
|
|
13
14
|
return {
|
|
14
15
|
showModal
|
|
15
16
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useContext","useCallback","GlobalContext","useStallionModal","actions","setIsModalVisible","showModal"],"sourceRoot":"../../../../src","sources":["main/utils/useStallionModal.ts"],"mappings":"AAAA,SAASA,UAAU,EAAEC,WAAW,QAAQ,OAAO;AAE/C,SAASC,aAAa,QAAQ,kBAAkB;AAGhD,MAAMC,gBAAgB,GAAGA,CAAA,KAAyB;EAChD,MAAM;IACJC,OAAO,EAAE;MAAEC;
|
|
1
|
+
{"version":3,"names":["useContext","useCallback","GlobalContext","useStallionModal","actions","setIsModalVisible","refreshMeta","showModal"],"sourceRoot":"../../../../src","sources":["main/utils/useStallionModal.ts"],"mappings":"AAAA,SAASA,UAAU,EAAEC,WAAW,QAAQ,OAAO;AAE/C,SAASC,aAAa,QAAQ,kBAAkB;AAGhD,MAAMC,gBAAgB,GAAGA,CAAA,KAAyB;EAChD,MAAM;IACJC,OAAO,EAAE;MAAEC,iBAAiB;MAAEC;IAAY;EAC5C,CAAC,GAAGN,UAAU,CAACE,aAAa,CAAC;EAC7B,MAAMK,SAAS,GAAGN,WAAW,CAAC,MAAM;IAClCI,iBAAiB,CAAC,IAAI,CAAC;IACvBC,WAAW,CAAC,CAAC;EACf,CAAC,EAAE,CAACD,iBAAiB,EAAEC,WAAW,CAAC,CAAC;EACpC,OAAO;IACLC;EACF,CAAC;AACH,CAAC;AAED,eAAeJ,gBAAgB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { useContext } from 'react';
|
|
2
|
+
import { GlobalContext } from '../state';
|
|
3
|
+
export const useStallionUpdate = () => {
|
|
4
|
+
const {
|
|
5
|
+
updateMetaState
|
|
6
|
+
} = useContext(GlobalContext);
|
|
7
|
+
return {
|
|
8
|
+
isRestartRequired: updateMetaState.slotHasChanged ? true : false,
|
|
9
|
+
currentlyRunningBundle: updateMetaState.currentlyRunningBundle,
|
|
10
|
+
newReleaseBundle: updateMetaState.newBundle
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=useStallionUpdate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useContext","GlobalContext","useStallionUpdate","updateMetaState","isRestartRequired","slotHasChanged","currentlyRunningBundle","newReleaseBundle","newBundle"],"sourceRoot":"../../../../src","sources":["main/utils/useStallionUpdate.ts"],"mappings":"AAAA,SAASA,UAAU,QAAQ,OAAO;AAElC,SAASC,aAAa,QAAQ,UAAU;AAGxC,OAAO,MAAMC,iBAAiB,GAAGA,CAAA,KAA0B;EACzD,MAAM;IAAEC;EAAgB,CAAC,GAAGH,UAAU,CAACC,aAAa,CAAC;EACrD,OAAO;IACLG,iBAAiB,EAAED,eAAe,CAACE,cAAc,GAAG,IAAI,GAAG,KAAK;IAChEC,sBAAsB,EAAEH,eAAe,CAACG,sBAAsB;IAC9DC,gBAAgB,EAAEJ,eAAe,CAACK;EACpC,CAAC;AACH,CAAC"}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import GlobalProvider from '../state';
|
|
3
3
|
import ErrorBoundary from './ErrorBoundary';
|
|
4
|
-
import SharedDataManager from './SharedDataManager';
|
|
5
4
|
import StallionModal from '../components/modules/modal/StallionModal';
|
|
6
|
-
const withStallion =
|
|
7
|
-
var _SharedDataManager$ge;
|
|
8
|
-
(_SharedDataManager$ge = SharedDataManager.getInstance()) === null || _SharedDataManager$ge === void 0 ? void 0 : _SharedDataManager$ge.setInitProjectId((initPrams === null || initPrams === void 0 ? void 0 : initPrams.projectId) || '');
|
|
5
|
+
const withStallion = BaseComponent => {
|
|
9
6
|
const StallionProvider = _ref => {
|
|
10
7
|
let {
|
|
11
8
|
children,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","GlobalProvider","ErrorBoundary","
|
|
1
|
+
{"version":3,"names":["React","GlobalProvider","ErrorBoundary","StallionModal","withStallion","BaseComponent","StallionProvider","_ref","children","props","createElement"],"sourceRoot":"../../../../src","sources":["main/utils/withStallion.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAyB,OAAO;AAE5C,OAAOC,cAAc,MAAM,UAAU;AACrC,OAAOC,aAAa,MAAM,iBAAiB;AAE3C,OAAOC,aAAa,MAAM,2CAA2C;AAErE,MAAMC,YAAY,GAAQC,aAA+B,IAAK;EAC5D,MAAMC,gBAA6B,GAAGC,IAAA,IAA4B;IAAA,IAA3B;MAAEC,QAAQ;MAAE,GAAGC;IAAM,CAAC,GAAAF,IAAA;IAC3D,oBACEP,KAAA,CAAAU,aAAA,CAACR,aAAa,qBACZF,KAAA,CAAAU,aAAA,CAACT,cAAc,qBACbD,KAAA,CAAAU,aAAA,CAACL,aAAa,EAAMI,KAAK,EAASD,QAAwB,CAAC,eAC3DR,KAAA,CAAAU,aAAA,CAACP,aAAa,MAAE,CACF,CACH,CAAC;EAEpB,CAAC;EACD,OAAOG,gBAAgB;AACzB,CAAC;AAED,eAAeF,YAAY"}
|
package/src/types/meta.types.js
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
import { NATIVE_CONSTANTS } from '../main/constants/appConstants';
|
|
2
|
+
export let SWITCH_STATES = /*#__PURE__*/function (SWITCH_STATES) {
|
|
3
|
+
SWITCH_STATES["PROD"] = "PROD";
|
|
4
|
+
SWITCH_STATES["STAGE"] = "STAGE";
|
|
5
|
+
return SWITCH_STATES;
|
|
6
|
+
}({});
|
|
7
|
+
export let SLOT_STATES = function (SLOT_STATES) {
|
|
8
|
+
SLOT_STATES[SLOT_STATES["STABLE"] = NATIVE_CONSTANTS.STABLE_FOLDER_SLOT] = "STABLE";
|
|
9
|
+
SLOT_STATES[SLOT_STATES["NEW"] = NATIVE_CONSTANTS.NEW_FOLDER_SLOT] = "NEW";
|
|
10
|
+
SLOT_STATES[SLOT_STATES["DEFAULT"] = NATIVE_CONSTANTS.DEFAULT_FOLDER_SLOT] = "DEFAULT";
|
|
11
|
+
SLOT_STATES[SLOT_STATES["TEMP"] = NATIVE_CONSTANTS.TEMP_FOLDER_SLOT] = "TEMP";
|
|
12
|
+
return SLOT_STATES;
|
|
13
|
+
}({});
|
|
1
14
|
export let MetaActionKind = /*#__PURE__*/function (MetaActionKind) {
|
|
2
15
|
MetaActionKind["SET_META"] = "SET_META";
|
|
3
16
|
MetaActionKind["GET_META"] = "GET_META";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["MetaActionKind"],"sourceRoot":"../../../src","sources":["types/meta.types.ts"],"mappings":"
|
|
1
|
+
{"version":3,"names":["NATIVE_CONSTANTS","SWITCH_STATES","SLOT_STATES","STABLE_FOLDER_SLOT","NEW_FOLDER_SLOT","DEFAULT_FOLDER_SLOT","TEMP_FOLDER_SLOT","MetaActionKind"],"sourceRoot":"../../../src","sources":["types/meta.types.ts"],"mappings":"AAAA,SAASA,gBAAgB,QAAQ,gCAAgC;AAEjE,WAAYC,aAAa,0BAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA;AAKzB,WAAYC,WAAW,aAAXA,WAAW;EAAXA,WAAW,CAAXA,WAAW,aACZF,gBAAgB,CAACG,kBAAkB;EADlCD,WAAW,CAAXA,WAAW,UAEfF,gBAAgB,CAACI,eAAe;EAF5BF,WAAW,CAAXA,WAAW,cAGXF,gBAAgB,CAACK,mBAAmB;EAHpCH,WAAW,CAAXA,WAAW,WAIdF,gBAAgB,CAACM,gBAAgB;EAAA,OAJ9BJ,WAAW;AAAA;AAoBvB,WAAYK,cAAc,0BAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAA,OAAdA,cAAc;AAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export let UpdateMetaActionKind = /*#__PURE__*/function (UpdateMetaActionKind) {
|
|
2
|
+
UpdateMetaActionKind["SET_CURRENTLY_RUNNING_META"] = "SET_CURRENTLY_RUNNING_META";
|
|
3
|
+
UpdateMetaActionKind["SET_NEW_BUNDLE_META"] = "SET_NEW_BUNDLE_META";
|
|
4
|
+
UpdateMetaActionKind["SET_SLOT_CHANGED"] = "SET_SLOT_CHANGED";
|
|
5
|
+
return UpdateMetaActionKind;
|
|
6
|
+
}({});
|
|
7
|
+
//# sourceMappingURL=updateMeta.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["UpdateMetaActionKind"],"sourceRoot":"../../../src","sources":["types/updateMeta.types.ts"],"mappings":"AAgBA,WAAYA,oBAAoB,0BAApBA,oBAAoB;EAApBA,oBAAoB;EAApBA,oBAAoB;EAApBA,oBAAoB;EAAA,OAApBA,oBAAoB;AAAA"}
|
package/types/index.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { IUseStallionModal, IWithStallion } from './types/utils.types';
|
|
2
2
|
export declare let withStallion: IWithStallion;
|
|
3
3
|
export declare let useStallionModal: () => IUseStallionModal;
|
|
4
|
+
export { sync } from './main/utils/StallionNativeUtils';
|
|
5
|
+
export { useStallionUpdate } from './main/utils/useStallionUpdate';
|
|
6
|
+
export declare const addEventListener: (listener: (data?: import("./main/utils/StallionEventEmitter").IStallionEventData | undefined) => void) => void;
|
|
4
7
|
//# sourceMappingURL=index.d.ts.map
|
package/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGvE,eAAO,IAAI,YAAY,EAAE,aAAa,CAAC;AACvC,eAAO,IAAI,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAWrD,OAAO,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,eAAO,MAAM,gBAAgB,iHACqC,CAAC"}
|
|
@@ -2,11 +2,8 @@ import React from 'react';
|
|
|
2
2
|
interface IFooter {
|
|
3
3
|
switchIsOn?: boolean;
|
|
4
4
|
onSwitchToggle?: (newSwitchStatus: boolean) => void;
|
|
5
|
-
activeBundle?: {
|
|
6
|
-
bucketName: string;
|
|
7
|
-
version: string;
|
|
8
|
-
};
|
|
9
5
|
errorMessage?: string | null;
|
|
6
|
+
isRestartRequired?: boolean;
|
|
10
7
|
}
|
|
11
8
|
declare const _default: React.NamedExoticComponent<IFooter>;
|
|
12
9
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/main/components/common/Footer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/main/components/common/Footer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAUjD,UAAU,OAAO;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,CAAC,eAAe,EAAE,OAAO,KAAK,IAAI,CAAC;IACpD,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;;AAgED,wBAA4B"}
|
|
@@ -22,54 +22,55 @@ declare const styles: {
|
|
|
22
22
|
alignItems: "center";
|
|
23
23
|
justifyContent: "center";
|
|
24
24
|
};
|
|
25
|
-
|
|
25
|
+
restartInfoSection: {
|
|
26
|
+
height: number;
|
|
27
|
+
backgroundColor: string;
|
|
28
|
+
alignItems: "center";
|
|
29
|
+
justifyContent: "center";
|
|
30
|
+
};
|
|
31
|
+
ribbonMessage: {
|
|
26
32
|
fontSize: number;
|
|
27
33
|
color: string;
|
|
28
34
|
marginHorizontal: number;
|
|
35
|
+
fontWeight: "bold";
|
|
29
36
|
};
|
|
30
37
|
footerContainer: {
|
|
31
38
|
paddingHorizontal: number;
|
|
32
39
|
paddingVertical: number;
|
|
33
40
|
flexDirection: "row";
|
|
34
|
-
justifyContent: "
|
|
41
|
+
justifyContent: "center";
|
|
35
42
|
alignItems: "center";
|
|
36
43
|
backgroundColor: string;
|
|
37
44
|
};
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
marginTop: number;
|
|
45
|
-
color: string;
|
|
46
|
-
};
|
|
47
|
-
alignCenter: {
|
|
45
|
+
switchContainer: {
|
|
46
|
+
borderWidth: number;
|
|
47
|
+
borderColor: string;
|
|
48
|
+
padding: number;
|
|
49
|
+
flexDirection: "row";
|
|
50
|
+
justifyContent: "center";
|
|
48
51
|
alignItems: "center";
|
|
52
|
+
borderRadius: number;
|
|
49
53
|
};
|
|
50
|
-
|
|
51
|
-
flex: number;
|
|
52
|
-
justifyContent: "flex-start";
|
|
53
|
-
};
|
|
54
|
-
dividerSection2: {
|
|
54
|
+
tabContainer: {
|
|
55
55
|
flex: number;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
flexDirection: "column";
|
|
57
|
+
justifyContent: "center";
|
|
58
|
+
alignContent: "center";
|
|
59
|
+
padding: number;
|
|
60
|
+
borderRadius: number;
|
|
60
61
|
};
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
color: string;
|
|
62
|
+
tabSelected: {
|
|
63
|
+
backgroundColor: string;
|
|
64
64
|
};
|
|
65
|
-
|
|
65
|
+
titleSelected: {
|
|
66
|
+
fontSize: number;
|
|
66
67
|
color: string;
|
|
67
68
|
};
|
|
68
|
-
|
|
69
|
+
titleBasic: {
|
|
70
|
+
textAlign: "center";
|
|
71
|
+
fontSize: number;
|
|
69
72
|
color: string;
|
|
70
|
-
|
|
71
|
-
switchButton: {
|
|
72
|
-
marginTop: number;
|
|
73
|
+
fontWeight: "bold";
|
|
73
74
|
};
|
|
74
75
|
};
|
|
75
76
|
export default styles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/main/components/common/Footer/styles.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/main/components/common/Footer/styles.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuEV,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/main/components/common/Header/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAW3D,UAAU,OAAO;IACf,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,WAAW,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;CAC7B;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/main/components/common/Header/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAW3D,UAAU,OAAO;IACf,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,WAAW,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;CAC7B;;AAoED,wBAA4B"}
|
|
@@ -20,7 +20,6 @@ declare const styles: {
|
|
|
20
20
|
flex: number;
|
|
21
21
|
justifyContent: "center";
|
|
22
22
|
alignItems: "flex-end";
|
|
23
|
-
padding: number;
|
|
24
23
|
};
|
|
25
24
|
headerProfileButton: {
|
|
26
25
|
height: number;
|
|
@@ -29,6 +28,7 @@ declare const styles: {
|
|
|
29
28
|
justifyContent: "center";
|
|
30
29
|
alignItems: "center";
|
|
31
30
|
backgroundColor: string;
|
|
31
|
+
marginLeft: number;
|
|
32
32
|
};
|
|
33
33
|
headerCenterSection: {
|
|
34
34
|
flex: number;
|
|
@@ -40,9 +40,14 @@ declare const styles: {
|
|
|
40
40
|
color: string;
|
|
41
41
|
fontWeight: "bold";
|
|
42
42
|
};
|
|
43
|
+
actionButtonClickable: {
|
|
44
|
+
padding: number;
|
|
45
|
+
};
|
|
43
46
|
actionButtonText: {
|
|
44
47
|
fontSize: number;
|
|
45
48
|
color: string;
|
|
49
|
+
fontWeight: "bold";
|
|
50
|
+
textDecorationLine: "underline";
|
|
46
51
|
};
|
|
47
52
|
alignStart: {
|
|
48
53
|
alignItems: "flex-start";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/main/components/common/Header/styles.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/main/components/common/Header/styles.ts"],"names":[],"mappings":"AAUA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2DV,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/main/components/common/ProfileOverlay/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/main/components/common/ProfileOverlay/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAW7C,UAAU,eAAe;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B;;AAyCD,wBAAoC"}
|
|
@@ -14,22 +14,55 @@ declare const styles: {
|
|
|
14
14
|
};
|
|
15
15
|
profileInfoText: {
|
|
16
16
|
fontSize: number;
|
|
17
|
-
marginVertical: number;
|
|
18
17
|
color: string;
|
|
18
|
+
fontWeight: "bold";
|
|
19
|
+
};
|
|
20
|
+
profileSubInfoText: {
|
|
21
|
+
fontSize: number;
|
|
22
|
+
color: string;
|
|
23
|
+
marginTop: number;
|
|
24
|
+
};
|
|
25
|
+
bold: {
|
|
26
|
+
fontWeight: "bold";
|
|
27
|
+
};
|
|
28
|
+
uidTitle: {
|
|
29
|
+
fontSize: number;
|
|
30
|
+
color: string;
|
|
31
|
+
marginTop: number;
|
|
32
|
+
textAlign: "center";
|
|
33
|
+
};
|
|
34
|
+
uidText: {
|
|
35
|
+
fontSize: number;
|
|
36
|
+
color: string;
|
|
37
|
+
textAlign: "center";
|
|
19
38
|
};
|
|
20
39
|
buttonContainer: {
|
|
21
40
|
width: string;
|
|
22
|
-
|
|
41
|
+
marginBottom: number;
|
|
23
42
|
};
|
|
24
43
|
titleContainer: {
|
|
25
|
-
|
|
26
|
-
|
|
44
|
+
justifyContent: "center";
|
|
45
|
+
alignItems: "center";
|
|
46
|
+
backgroundColor: string;
|
|
47
|
+
width: number;
|
|
48
|
+
height: number;
|
|
49
|
+
borderRadius: number;
|
|
50
|
+
marginVertical: number;
|
|
27
51
|
};
|
|
28
52
|
infoContainer: {
|
|
29
|
-
flex: number;
|
|
30
53
|
justifyContent: "center";
|
|
31
54
|
alignItems: "center";
|
|
32
55
|
width: string;
|
|
56
|
+
borderWidth: number;
|
|
57
|
+
borderColor: string;
|
|
58
|
+
borderRadius: number;
|
|
59
|
+
paddingVertical: number;
|
|
60
|
+
marginBottom: number;
|
|
61
|
+
};
|
|
62
|
+
detailContainer: {
|
|
63
|
+
marginVertical: number;
|
|
64
|
+
justifyContent: "center";
|
|
65
|
+
alignItems: "center";
|
|
33
66
|
};
|
|
34
67
|
};
|
|
35
68
|
export default styles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/main/components/common/ProfileOverlay/styles.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../src/main/components/common/ProfileOverlay/styles.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkEV,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/main/components/common/Spinner/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/main/components/common/Spinner/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;;AAQpC,wBAA6B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BucketCard.d.ts","sourceRoot":"","sources":["../../../../../../../src/main/components/modules/listing/components/BucketCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAMzD,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"BucketCard.d.ts","sourceRoot":"","sources":["../../../../../../../src/main/components/modules/listing/components/BucketCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAMzD,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAIhE,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;CAC1B;;AA6BD,wBAAgC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BundleCard.d.ts","sourceRoot":"","sources":["../../../../../../../src/main/components/modules/listing/components/BundleCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"BundleCard.d.ts","sourceRoot":"","sources":["../../../../../../../src/main/components/modules/listing/components/BundleCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAMzD,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAGhE,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;CACrB;;AAqCD,wBAAgC"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
interface IBundleCardInfoSection {
|
|
3
|
+
id: string;
|
|
3
4
|
name: string;
|
|
4
5
|
updatedAt: string;
|
|
5
6
|
description?: string;
|
|
6
7
|
version?: number;
|
|
7
8
|
author?: string;
|
|
9
|
+
isDownloaded?: boolean;
|
|
8
10
|
isApplied?: boolean;
|
|
9
11
|
downloadUrl: string;
|
|
10
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BundleCardInfoSection.d.ts","sourceRoot":"","sources":["../../../../../../../src/main/components/modules/listing/components/BundleCardInfoSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiD,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"BundleCardInfoSection.d.ts","sourceRoot":"","sources":["../../../../../../../src/main/components/modules/listing/components/BundleCardInfoSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAuBtE,UAAU,sBAAsB;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB;;AAsFD,wBAA2C"}
|