react-native-stallion 2.5.0-alpha.2 → 2.5.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/src/main/java/com/stallion/networkmanager/StallionApiConstants.java +4 -0
- package/android/src/main/java/com/stallion/networkmanager/StallionApiManager.java +2 -0
- package/android/src/main/java/com/stallion/networkmanager/StallionFileDownloader.java +8 -2
- package/android/src/main/java/com/stallion/networkmanager/StallionPatchHandler.java +4 -1
- package/android/src/main/java/com/stallion/networkmanager/StallionStageManager.java +7 -2
- package/android/src/main/java/com/stallion/networkmanager/StallionSyncHandler.java +14 -9
- package/android/src/main/java/com/stallion/storage/StallionConfig.java +2 -10
- package/android/src/main/java/com/stallion/utils/StallionSlotManager.java +1 -0
- package/ios/main/StallionConfig.m +2 -6
- package/ios/main/StallionConstants.swift +4 -0
- package/ios/main/StallionFileDownloader.swift +7 -3
- package/ios/main/StallionPatchHandler.swift +4 -1
- package/ios/main/StallionSlotManager.m +5 -4
- package/ios/main/StallionStageManager.swift +10 -4
- package/ios/main/StallionSyncHandler.swift +9 -2
- package/package.json +2 -2
- package/src/index.js +2 -0
- package/src/index.js.map +1 -1
- package/src/main/components/StallionDevMenu.js +69 -0
- package/src/main/components/StallionDevMenu.js.map +1 -0
- package/src/main/components/common/BackButton/index.js +19 -42
- package/src/main/components/common/BackButton/index.js.map +1 -1
- package/src/main/components/common/Chevron/index.js +64 -0
- package/src/main/components/common/Chevron/index.js.map +1 -0
- package/src/main/components/common/CrossButton/index.js +18 -11
- package/src/main/components/common/CrossButton/index.js.map +1 -1
- package/src/main/components/common/Header/index.js +3 -15
- package/src/main/components/common/Header/index.js.map +1 -1
- package/src/main/components/common/Header/styles.js +0 -22
- package/src/main/components/common/Header/styles.js.map +1 -1
- package/src/main/components/modules/devMenu/components/ActionButton.js +45 -0
- package/src/main/components/modules/devMenu/components/ActionButton.js.map +1 -0
- package/src/main/components/modules/devMenu/components/AppHeader.js +17 -0
- package/src/main/components/modules/devMenu/components/AppHeader.js.map +1 -0
- package/src/main/components/modules/devMenu/components/BucketRow.js +34 -0
- package/src/main/components/modules/devMenu/components/BucketRow.js.map +1 -0
- package/src/main/components/modules/devMenu/components/BundleHistoryCard.js +92 -0
- package/src/main/components/modules/devMenu/components/BundleHistoryCard.js.map +1 -0
- package/src/main/components/modules/devMenu/components/Chip.js +16 -0
- package/src/main/components/modules/devMenu/components/Chip.js.map +1 -0
- package/src/main/components/modules/devMenu/components/DetailHeader.js +32 -0
- package/src/main/components/modules/devMenu/components/DetailHeader.js.map +1 -0
- package/src/main/components/modules/devMenu/components/DeviceCard.js +31 -0
- package/src/main/components/modules/devMenu/components/DeviceCard.js.map +1 -0
- package/src/main/components/modules/devMenu/components/ErrorBanner.js +17 -0
- package/src/main/components/modules/devMenu/components/ErrorBanner.js.map +1 -0
- package/src/main/components/modules/devMenu/components/ModeToggle.js +54 -0
- package/src/main/components/modules/devMenu/components/ModeToggle.js.map +1 -0
- package/src/main/components/modules/devMenu/components/ProdBundleCard.js +47 -0
- package/src/main/components/modules/devMenu/components/ProdBundleCard.js.map +1 -0
- package/src/main/components/modules/devMenu/components/ReleaseNote.js +44 -0
- package/src/main/components/modules/devMenu/components/ReleaseNote.js.map +1 -0
- package/src/main/components/modules/devMenu/components/SectionLabel.js +13 -0
- package/src/main/components/modules/devMenu/components/SectionLabel.js.map +1 -0
- package/src/main/components/modules/devMenu/components/StateCard.js +30 -0
- package/src/main/components/modules/devMenu/components/StateCard.js.map +1 -0
- package/src/main/components/modules/devMenu/components/Wordmark.js +35 -0
- package/src/main/components/modules/devMenu/components/Wordmark.js.map +1 -0
- package/src/main/components/modules/devMenu/components/styles/index.js +403 -0
- package/src/main/components/modules/devMenu/components/styles/index.js.map +1 -0
- package/src/main/components/modules/devMenu/index.js +47 -0
- package/src/main/components/modules/devMenu/index.js.map +1 -0
- package/src/main/components/modules/devMenu/screens/BundleHistory.js +142 -0
- package/src/main/components/modules/devMenu/screens/BundleHistory.js.map +1 -0
- package/src/main/components/modules/devMenu/screens/Production.js +65 -0
- package/src/main/components/modules/devMenu/screens/Production.js.map +1 -0
- package/src/main/components/modules/devMenu/screens/TestingBuckets.js +81 -0
- package/src/main/components/modules/devMenu/screens/TestingBuckets.js.map +1 -0
- package/src/main/components/modules/devMenu/styles.js +50 -0
- package/src/main/components/modules/devMenu/styles.js.map +1 -0
- package/src/main/components/modules/modal/StallionModal.js +15 -51
- package/src/main/components/modules/modal/StallionModal.js.map +1 -1
- package/src/main/components/modules/modal/hooks/useStallionModal.js +21 -19
- package/src/main/components/modules/modal/hooks/useStallionModal.js.map +1 -1
- package/src/main/constants/appConstants.js +56 -53
- package/src/main/constants/appConstants.js.map +1 -1
- package/src/main/constants/colors.js +1 -10
- package/src/main/constants/colors.js.map +1 -1
- package/src/main/constants/designTokens.js +80 -0
- package/src/main/constants/designTokens.js.map +1 -0
- package/src/main/index.js +3 -1
- package/src/main/index.js.map +1 -1
- package/src/main/state/useStallionEvents.js.map +1 -1
- package/src/main/utils/useStallionConfig.js +14 -0
- package/src/main/utils/useStallionConfig.js.map +1 -0
- package/src/types/bundle.types.js +7 -0
- package/src/types/bundle.types.js.map +1 -1
- package/types/index.d.ts +2 -0
- package/types/index.d.ts.map +1 -1
- package/types/main/components/StallionDevMenu.d.ts +5 -0
- package/types/main/components/StallionDevMenu.d.ts.map +1 -0
- package/types/main/components/common/BackButton/index.d.ts +4 -3
- package/types/main/components/common/BackButton/index.d.ts.map +1 -1
- package/types/main/components/common/Chevron/index.d.ts +11 -0
- package/types/main/components/common/Chevron/index.d.ts.map +1 -0
- package/types/main/components/common/CrossButton/index.d.ts +4 -3
- package/types/main/components/common/CrossButton/index.d.ts.map +1 -1
- package/types/main/components/common/Header/index.d.ts +0 -2
- package/types/main/components/common/Header/index.d.ts.map +1 -1
- package/types/main/components/common/Header/styles.d.ts +0 -21
- package/types/main/components/common/Header/styles.d.ts.map +1 -1
- package/types/main/components/modules/devMenu/components/ActionButton.d.ts +19 -0
- package/types/main/components/modules/devMenu/components/ActionButton.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/components/AppHeader.d.ts +7 -0
- package/types/main/components/modules/devMenu/components/AppHeader.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/components/BucketRow.d.ts +11 -0
- package/types/main/components/modules/devMenu/components/BucketRow.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/components/BundleHistoryCard.d.ts +22 -0
- package/types/main/components/modules/devMenu/components/BundleHistoryCard.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/components/Chip.d.ts +9 -0
- package/types/main/components/modules/devMenu/components/Chip.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/components/DetailHeader.d.ts +10 -0
- package/types/main/components/modules/devMenu/components/DetailHeader.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/components/DeviceCard.d.ts +8 -0
- package/types/main/components/modules/devMenu/components/DeviceCard.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/components/ErrorBanner.d.ts +6 -0
- package/types/main/components/modules/devMenu/components/ErrorBanner.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/components/ModeToggle.d.ts +8 -0
- package/types/main/components/modules/devMenu/components/ModeToggle.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/components/ProdBundleCard.d.ts +13 -0
- package/types/main/components/modules/devMenu/components/ProdBundleCard.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/components/ReleaseNote.d.ts +11 -0
- package/types/main/components/modules/devMenu/components/ReleaseNote.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/components/SectionLabel.d.ts +6 -0
- package/types/main/components/modules/devMenu/components/SectionLabel.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/components/StateCard.d.ts +9 -0
- package/types/main/components/modules/devMenu/components/StateCard.d.ts.map +1 -0
- package/types/main/components/modules/{listing/index.d.ts → devMenu/components/Wordmark.d.ts} +1 -1
- package/types/main/components/modules/devMenu/components/Wordmark.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/components/styles/index.d.ts +353 -0
- package/types/main/components/modules/devMenu/components/styles/index.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/index.d.ts +14 -0
- package/types/main/components/modules/devMenu/index.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/screens/BundleHistory.d.ts +4 -0
- package/types/main/components/modules/devMenu/screens/BundleHistory.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/screens/Production.d.ts +4 -0
- package/types/main/components/modules/devMenu/screens/Production.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/screens/TestingBuckets.d.ts +4 -0
- package/types/main/components/modules/devMenu/screens/TestingBuckets.d.ts.map +1 -0
- package/types/main/components/modules/devMenu/styles.d.ts +46 -0
- package/types/main/components/modules/devMenu/styles.d.ts.map +1 -0
- package/types/main/components/modules/modal/StallionModal.d.ts.map +1 -1
- package/types/main/components/modules/modal/hooks/useStallionModal.d.ts +5 -6
- package/types/main/components/modules/modal/hooks/useStallionModal.d.ts.map +1 -1
- package/types/main/constants/appConstants.d.ts +46 -48
- package/types/main/constants/appConstants.d.ts.map +1 -1
- package/types/main/constants/colors.d.ts +0 -9
- package/types/main/constants/colors.d.ts.map +1 -1
- package/types/main/constants/designTokens.d.ts +73 -0
- package/types/main/constants/designTokens.d.ts.map +1 -0
- package/types/main/index.d.ts +1 -0
- package/types/main/index.d.ts.map +1 -1
- package/types/main/state/useStallionEvents.d.ts +2 -0
- package/types/main/state/useStallionEvents.d.ts.map +1 -1
- package/types/main/utils/useStallionConfig.d.ts +5 -0
- package/types/main/utils/useStallionConfig.d.ts.map +1 -0
- package/types/types/bundle.types.d.ts +7 -0
- package/types/types/bundle.types.d.ts.map +1 -1
- package/types/types/utils.types.d.ts +3 -0
- package/types/types/utils.types.d.ts.map +1 -1
- package/src/main/components/common/ErrorView/index.js +0 -24
- package/src/main/components/common/ErrorView/index.js.map +0 -1
- package/src/main/components/common/ErrorView/styles.js +0 -30
- package/src/main/components/common/ErrorView/styles.js.map +0 -1
- package/src/main/components/common/Footer/index.js +0 -50
- package/src/main/components/common/Footer/index.js.map +0 -1
- package/src/main/components/common/Footer/styles.js +0 -91
- package/src/main/components/common/Footer/styles.js.map +0 -1
- package/src/main/components/common/FooterLoader/index.js +0 -11
- package/src/main/components/common/FooterLoader/index.js.map +0 -1
- package/src/main/components/common/FooterLoader/styles.js +0 -12
- package/src/main/components/common/FooterLoader/styles.js.map +0 -1
- package/src/main/components/common/OverlayLoader/index.js +0 -26
- package/src/main/components/common/OverlayLoader/index.js.map +0 -1
- package/src/main/components/common/OverlayLoader/styles.js +0 -33
- package/src/main/components/common/OverlayLoader/styles.js.map +0 -1
- package/src/main/components/modules/listing/components/BucketCard.js +0 -33
- package/src/main/components/modules/listing/components/BucketCard.js.map +0 -1
- package/src/main/components/modules/listing/components/BucketCardInfoSection.js +0 -56
- package/src/main/components/modules/listing/components/BucketCardInfoSection.js.map +0 -1
- package/src/main/components/modules/listing/components/BundleCard.js +0 -42
- package/src/main/components/modules/listing/components/BundleCard.js.map +0 -1
- package/src/main/components/modules/listing/components/BundleCardInfoSection.js +0 -82
- package/src/main/components/modules/listing/components/BundleCardInfoSection.js.map +0 -1
- package/src/main/components/modules/listing/components/CardDescriptionContent.js +0 -36
- package/src/main/components/modules/listing/components/CardDescriptionContent.js.map +0 -1
- package/src/main/components/modules/listing/components/ConfigView.js +0 -29
- package/src/main/components/modules/listing/components/ConfigView.js.map +0 -1
- package/src/main/components/modules/listing/components/MetaCard.js +0 -39
- package/src/main/components/modules/listing/components/MetaCard.js.map +0 -1
- package/src/main/components/modules/listing/components/SlotView.js +0 -80
- package/src/main/components/modules/listing/components/SlotView.js.map +0 -1
- package/src/main/components/modules/listing/components/styles/index.js +0 -121
- package/src/main/components/modules/listing/components/styles/index.js.map +0 -1
- package/src/main/components/modules/listing/hooks/useListing.js +0 -84
- package/src/main/components/modules/listing/hooks/useListing.js.map +0 -1
- package/src/main/components/modules/listing/index.js +0 -75
- package/src/main/components/modules/listing/index.js.map +0 -1
- package/src/main/components/modules/listing/styles.js +0 -24
- package/src/main/components/modules/listing/styles.js.map +0 -1
- package/src/main/components/modules/prod/index.js +0 -3
- package/src/main/components/modules/prod/index.js.map +0 -1
- package/src/main/components/modules/prod/prod.js +0 -30
- package/src/main/components/modules/prod/prod.js.map +0 -1
- package/src/main/components/modules/prod/styles/index.js +0 -29
- package/src/main/components/modules/prod/styles/index.js.map +0 -1
- package/types/main/components/common/ErrorView/index.d.ts +0 -8
- package/types/main/components/common/ErrorView/index.d.ts.map +0 -1
- package/types/main/components/common/ErrorView/styles.d.ts +0 -27
- package/types/main/components/common/ErrorView/styles.d.ts.map +0 -1
- package/types/main/components/common/Footer/index.d.ts +0 -10
- package/types/main/components/common/Footer/index.d.ts.map +0 -1
- package/types/main/components/common/Footer/styles.d.ts +0 -88
- package/types/main/components/common/Footer/styles.d.ts.map +0 -1
- package/types/main/components/common/FooterLoader/index.d.ts +0 -4
- package/types/main/components/common/FooterLoader/index.d.ts.map +0 -1
- package/types/main/components/common/FooterLoader/styles.d.ts +0 -10
- package/types/main/components/common/FooterLoader/styles.d.ts.map +0 -1
- package/types/main/components/common/OverlayLoader/index.d.ts +0 -7
- package/types/main/components/common/OverlayLoader/index.d.ts.map +0 -1
- package/types/main/components/common/OverlayLoader/styles.d.ts +0 -30
- package/types/main/components/common/OverlayLoader/styles.d.ts.map +0 -1
- package/types/main/components/modules/listing/components/BucketCard.d.ts +0 -13
- package/types/main/components/modules/listing/components/BucketCard.d.ts.map +0 -1
- package/types/main/components/modules/listing/components/BucketCardInfoSection.d.ts +0 -11
- package/types/main/components/modules/listing/components/BucketCardInfoSection.d.ts.map +0 -1
- package/types/main/components/modules/listing/components/BundleCard.d.ts +0 -15
- package/types/main/components/modules/listing/components/BundleCard.d.ts.map +0 -1
- package/types/main/components/modules/listing/components/BundleCardInfoSection.d.ts +0 -15
- package/types/main/components/modules/listing/components/BundleCardInfoSection.d.ts.map +0 -1
- package/types/main/components/modules/listing/components/CardDescriptionContent.d.ts +0 -8
- package/types/main/components/modules/listing/components/CardDescriptionContent.d.ts.map +0 -1
- package/types/main/components/modules/listing/components/ConfigView.d.ts +0 -8
- package/types/main/components/modules/listing/components/ConfigView.d.ts.map +0 -1
- package/types/main/components/modules/listing/components/MetaCard.d.ts +0 -8
- package/types/main/components/modules/listing/components/MetaCard.d.ts.map +0 -1
- package/types/main/components/modules/listing/components/SlotView.d.ts +0 -5
- package/types/main/components/modules/listing/components/SlotView.d.ts.map +0 -1
- package/types/main/components/modules/listing/components/styles/index.d.ts +0 -118
- package/types/main/components/modules/listing/components/styles/index.d.ts.map +0 -1
- package/types/main/components/modules/listing/hooks/useListing.d.ts +0 -15
- package/types/main/components/modules/listing/hooks/useListing.d.ts.map +0 -1
- package/types/main/components/modules/listing/index.d.ts.map +0 -1
- package/types/main/components/modules/listing/styles.d.ts +0 -21
- package/types/main/components/modules/listing/styles.d.ts.map +0 -1
- package/types/main/components/modules/prod/index.d.ts +0 -3
- package/types/main/components/modules/prod/index.d.ts.map +0 -1
- package/types/main/components/modules/prod/prod.d.ts +0 -4
- package/types/main/components/modules/prod/prod.d.ts.map +0 -1
- package/types/main/components/modules/prod/styles/index.d.ts +0 -25
- package/types/main/components/modules/prod/styles/index.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useCallback","useContext","useMemo","GlobalContext","toggleStallionSwitchNative","SWITCH_STATES","
|
|
1
|
+
{"version":3,"names":["useCallback","useContext","useMemo","GlobalContext","toggleStallionSwitchNative","SWITCH_STATES","BUNDLE_COUNT_SUFFIX","BUNDLE_COUNT_SUFFIX_SINGULAR","IS_ANDROID","META_SEPARATOR","SWITCH_TEXTS","VERSION_PREFIX","useStallionModal","isModalVisible","configState","metaState","bucketState","bundleState","downloadState","actions","setIsModalVisible","selectBucket","refreshMeta","setDownloadErrorMessage","onBackPress","requestAnimationFrame","onClosePress","loginRequired","sdkToken","isTesting","switchState","STAGE","isBundleHistory","selectedBucketId","selectedBucket","_bucketState$data","data","find","bucket","id","bucketTitle","name","bucketSubtitle","ON","latestVersion","latestAndroidBundleVersion","latestIosBundleVersion","join","downloadError","error","handleSwitch","newSwitchStatus","PROD"],"sourceRoot":"../../../../../../../src","sources":["main/components/modules/modal/hooks/useStallionModal.ts"],"mappings":"AAAA,SAASA,WAAW,EAAEC,UAAU,EAAEC,OAAO,QAAQ,OAAO;AAExD,SAASC,aAAa,QAAQ,mBAAmB;AACjD,SAASC,0BAA0B,QAAQ,uCAAuC;AAClF,SAASC,aAAa,QAAQ,iCAAiC;AAC/D,SACEC,mBAAmB,EACnBC,4BAA4B,EAC5BC,UAAU,EACVC,cAAc,EACdC,YAAY,EACZC,cAAc,QACT,oCAAoC;AAE3C,MAAMC,gBAAgB,GAAGA,CAAA,KAAM;EAC7B,MAAM;IACJC,cAAc;IACdC,WAAW;IACXC,SAAS;IACTC,WAAW;IACXC,WAAW;IACXC,aAAa;IACbC,OAAO,EAAE;MACPC,iBAAiB;MACjBC,YAAY;MACZC,WAAW;MACXC;IACF;EACF,CAAC,GAAGtB,UAAU,CAACE,aAAa,CAAC;EAE7B,MAAMqB,WAAW,GAAGxB,WAAW,CAAC,MAAM;IACpCyB,qBAAqB,CAAC,MAAMJ,YAAY,CAAC,CAAC,CAAC;EAC7C,CAAC,EAAE,CAACA,YAAY,CAAC,CAAC;EAElB,MAAMK,YAAY,GAAG1B,WAAW,CAAC,MAAM;IACrCyB,qBAAqB,CAAC,MAAML,iBAAiB,CAAC,KAAK,CAAC,CAAC;EACvD,CAAC,EAAE,CAACA,iBAAiB,CAAC,CAAC;EAEvB,MAAMO,aAAa,GAAGb,WAAW,aAAXA,WAAW,eAAXA,WAAW,CAAEc,QAAQ,GAAG,KAAK,GAAG,IAAI;EAE1D,MAAMC,SAAS,GAAG,CAAAd,SAAS,aAATA,SAAS,uBAATA,SAAS,CAAEe,WAAW,MAAKzB,aAAa,CAAC0B,KAAK;;EAEhE;EACA,MAAMC,eAAe,GAAG9B,OA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,eAAe,GAAG9C,aAAa,CAAC0B,KAAK,GAAG1B,aAAa,CAAC+C,IACxD,CAAC;IACD9B,WAAW,CAAC,CAAC;IACb,IAAI,CAAC6B,eAAe,EAAE;MACpB9B,YAAY,CAAC,CAAC;IAChB;EACF,CAAC,EACD,CAACC,WAAW,EAAED,YAAY,EAAEE,uBAAuB,CACrD,CAAC;EAED,OAAO;IACLV,cAAc;IACdW,WAAW;IACXE,YAAY;IACZC,aAAa;IACbE,SAAS;IACTG,eAAe;IACfQ,WAAW;IACXE,cAAc;IACdM,aAAa;IACbE;EACF,CAAC;AACH,CAAC;AAED,eAAetC,gBAAgB"}
|
|
@@ -1,55 +1,24 @@
|
|
|
1
1
|
import { Platform } from 'react-native';
|
|
2
2
|
export const HEADER_TITLE = 'Stallion';
|
|
3
3
|
export const Login_TITLE = 'Login to continue';
|
|
4
|
-
export const PROFILE_TITLE = 'Profile';
|
|
5
4
|
export const HEADER_SLAB_HEIGHT = 50;
|
|
6
5
|
export const STD_MARGIN = HEADER_SLAB_HEIGHT / 5;
|
|
7
6
|
export const END_REACH_THRESHOLD = 0;
|
|
8
7
|
export const DOWNLOAD_BUTTON_TEXT = 'Download';
|
|
9
|
-
export const DOWNLOADED_TEXT = 'Downloaded';
|
|
10
|
-
export const APPLIED_TEXT = 'Applied';
|
|
11
|
-
export const LOGOUT_BUTTON_TEXT = 'Logout';
|
|
12
|
-
export const FOOTER_INFO_TITLE = 'Active Bucket: ';
|
|
13
|
-
export const FOOTER_INFO_SUBTITLE = 'Version: ';
|
|
14
8
|
export let SWITCH_TEXTS = /*#__PURE__*/function (SWITCH_TEXTS) {
|
|
15
|
-
SWITCH_TEXTS["ON"] = "Testing";
|
|
16
|
-
SWITCH_TEXTS["OFF"] = "Production";
|
|
9
|
+
SWITCH_TEXTS["ON"] = "Testing Mode";
|
|
10
|
+
SWITCH_TEXTS["OFF"] = "Production Mode";
|
|
17
11
|
return SWITCH_TEXTS;
|
|
18
12
|
}({});
|
|
19
|
-
export let FOOTER_SUB_TEXTS = /*#__PURE__*/function (FOOTER_SUB_TEXTS) {
|
|
20
|
-
FOOTER_SUB_TEXTS["PROD"] = "User facing version";
|
|
21
|
-
FOOTER_SUB_TEXTS["STAGE"] = "Internal sharing version";
|
|
22
|
-
return FOOTER_SUB_TEXTS;
|
|
23
|
-
}({});
|
|
24
|
-
export const SWITCH_TITLE = 'Switch ';
|
|
25
|
-
export const BUCKET_CARD_UPDATED_TEXT = 'Updated at: ';
|
|
26
|
-
export const BUCKET_CARD_BUNDLE_COUNT_TEXT = 'Bundles: ';
|
|
27
|
-
export const BUCKET_CARD_AUTHOR_TEXT = 'Author: ';
|
|
28
|
-
export const BUNDLE_CARD_RELEASE_NOTE = 'Release Note: ';
|
|
29
|
-
export const BUNDLE_CARD_AUTHOR = 'Author';
|
|
30
|
-
export const DOWNLOAD_PROGRESS_EVENT = 'StallionDownloadProgress';
|
|
31
13
|
export const DEFAULT_ERROR_MESSAGE = 'Something went wrong. Check your network connection';
|
|
32
14
|
export const EMPTY_ERROR_MESSAGE = 'No buckets found';
|
|
33
15
|
export const EMPTY_ERROR_MESSAGE_BUNDLE = 'No bundles found';
|
|
34
|
-
export const EMPTY_DOWNLOAD_MESSAGE = 'No bundle is downloaded yet';
|
|
35
16
|
export const DEFAULT_ERROR_PREFIX = 'Error: ';
|
|
36
17
|
export const VERSION_PREFIX = 'V';
|
|
37
18
|
export const RETRY_BUTTON_TEXT = 'Retry';
|
|
38
19
|
export const CURRENT_PLATFORM = Platform.OS;
|
|
39
20
|
export const IS_ANDROID = CURRENT_PLATFORM === 'android';
|
|
40
21
|
export const KEYBOARD_AVOIDING_BEHAVIOUR = IS_ANDROID ? 'height' : 'padding';
|
|
41
|
-
export let LOGIN_PAGE_KEYS = /*#__PURE__*/function (LOGIN_PAGE_KEYS) {
|
|
42
|
-
LOGIN_PAGE_KEYS["email"] = "Email";
|
|
43
|
-
LOGIN_PAGE_KEYS["password"] = "Password";
|
|
44
|
-
return LOGIN_PAGE_KEYS;
|
|
45
|
-
}({});
|
|
46
|
-
export let CARD_TYPES = /*#__PURE__*/function (CARD_TYPES) {
|
|
47
|
-
CARD_TYPES["BUNDLE"] = "BUNDLE";
|
|
48
|
-
CARD_TYPES["BUCKET"] = "BUCKET";
|
|
49
|
-
return CARD_TYPES;
|
|
50
|
-
}({});
|
|
51
|
-
export const BUNDLE_APPLIED_TEXT = 'Applied';
|
|
52
|
-
export const DOWNLOADING_TEXT = 'Downloading';
|
|
53
22
|
export const EMPTY_STATE = {
|
|
54
23
|
data: null,
|
|
55
24
|
isLoading: false,
|
|
@@ -57,30 +26,11 @@ export const EMPTY_STATE = {
|
|
|
57
26
|
};
|
|
58
27
|
export const PIN_LENGTH = 6;
|
|
59
28
|
export const SUBMIT_BUTTON_TEXT = 'Continue';
|
|
60
|
-
export const PIN_BACK_BUTTON_TEXT = 'BACK';
|
|
61
29
|
export const PIN_INPUT_KEY = 'Enter PIN';
|
|
62
30
|
export const NOT_APPLICABLE_TEXT = 'N/A';
|
|
63
|
-
export let BUCKET_CARD_TEXTS = /*#__PURE__*/function (BUCKET_CARD_TEXTS) {
|
|
64
|
-
BUCKET_CARD_TEXTS["DOWNLOADED"] = "Downloaded";
|
|
65
|
-
BUCKET_CARD_TEXTS["APPLIED"] = "Applied";
|
|
66
|
-
BUCKET_CARD_TEXTS["VERSION"] = "Version";
|
|
67
|
-
BUCKET_CARD_TEXTS["BUNDLES"] = "Bundles";
|
|
68
|
-
BUCKET_CARD_TEXTS["UPDATED"] = "Updated";
|
|
69
|
-
return BUCKET_CARD_TEXTS;
|
|
70
|
-
}({});
|
|
71
|
-
export let SWITCH_STATE_KEYS = /*#__PURE__*/function (SWITCH_STATE_KEYS) {
|
|
72
|
-
SWITCH_STATE_KEYS["Enabled"] = "True";
|
|
73
|
-
SWITCH_STATE_KEYS["Disabled"] = "False";
|
|
74
|
-
return SWITCH_STATE_KEYS;
|
|
75
|
-
}({});
|
|
76
|
-
export const NO_RELEASE_NOTE_TEXT = 'No release note provided';
|
|
77
31
|
export const STALLION_LOGO_URL = 'https://d2shjbuzwp1rpv.cloudfront.net/stallion_logo.png';
|
|
78
32
|
export const STALLION_EB_INFO = 'A crash occurred in the app. We have switched Stallion off. Check crash report below. Continue crash to invoke other exception handlers.';
|
|
79
33
|
export const STALLION_EB_BTN_TXT = 'Continue Crash';
|
|
80
|
-
export const DOWNLOAD_ALERT_HEADER = 'Download Successful';
|
|
81
|
-
export const DOWNLOAD_ALERT_SWITCH_MESSAGE = 'Stallion has been switched on. ';
|
|
82
|
-
export const DOWNLOAD_ALERT_MESSAGE = 'Restart the app for changes to take effect.';
|
|
83
|
-
export const DOWNLOAD_ALERT_BUTTON = 'Ok';
|
|
84
34
|
export let NATIVE_CONSTANTS = /*#__PURE__*/function (NATIVE_CONSTANTS) {
|
|
85
35
|
NATIVE_CONSTANTS["SDK_TOKEN"] = "x-sdk-access-token";
|
|
86
36
|
NATIVE_CONSTANTS["APP_TOKEN"] = "x-app-token";
|
|
@@ -116,6 +66,59 @@ export let NativeEventTypesStage = /*#__PURE__*/function (NativeEventTypesStage)
|
|
|
116
66
|
return NativeEventTypesStage;
|
|
117
67
|
}({});
|
|
118
68
|
export const STALLION_NATIVE_EVENT = 'STALLION_NATIVE_EVENT';
|
|
119
|
-
export const RESTART_REQUIRED_MESSAGE = 'Bundle change detected. Click to restart app.';
|
|
120
69
|
export const DEFAULT_STALLION_PARAMS = {};
|
|
70
|
+
|
|
71
|
+
/* ------------------------------------------------------------------ *
|
|
72
|
+
* Dev menu copy
|
|
73
|
+
* ------------------------------------------------------------------ */
|
|
74
|
+
|
|
75
|
+
export const WORDMARK_TEXT = 'STALLION';
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Captions name the mode the switch would move to, not the one it is in — the
|
|
79
|
+
* label above already states that. Flipping the switch only records the choice;
|
|
80
|
+
* the app keeps running its current bundle until it is restarted.
|
|
81
|
+
*/
|
|
82
|
+
export let TAB_CAPTIONS = /*#__PURE__*/function (TAB_CAPTIONS) {
|
|
83
|
+
TAB_CAPTIONS["STAGE"] = "Switch off to run Production Mode - what your customers run. Applies on restart.";
|
|
84
|
+
TAB_CAPTIONS["PROD"] = "Switch on to run Testing Mode - bundles shared with your team. Applies on restart.";
|
|
85
|
+
return TAB_CAPTIONS;
|
|
86
|
+
}({});
|
|
87
|
+
export let SECTION_LABELS = /*#__PURE__*/function (SECTION_LABELS) {
|
|
88
|
+
SECTION_LABELS["BUCKETS"] = "BUCKETS";
|
|
89
|
+
SECTION_LABELS["THIS_DEVICE"] = "THIS DEVICE";
|
|
90
|
+
SECTION_LABELS["NEW_BUNDLE"] = "NEW BUNDLE";
|
|
91
|
+
SECTION_LABELS["ACTIVE_BUNDLE"] = "ACTIVE BUNDLE";
|
|
92
|
+
return SECTION_LABELS;
|
|
93
|
+
}({});
|
|
94
|
+
export let CHIP_TEXTS = /*#__PURE__*/function (CHIP_TEXTS) {
|
|
95
|
+
CHIP_TEXTS["LATEST"] = "Latest";
|
|
96
|
+
CHIP_TEXTS["DOWNLOADED"] = "Downloaded";
|
|
97
|
+
CHIP_TEXTS["APPLIED"] = "Applied";
|
|
98
|
+
return CHIP_TEXTS;
|
|
99
|
+
}({});
|
|
100
|
+
export const RESTART_BUTTON_TEXT = 'Restart';
|
|
101
|
+
export const READ_MORE_TEXT = 'Read more';
|
|
102
|
+
export const READ_LESS_TEXT = 'Read less';
|
|
103
|
+
export let BUNDLE_META_STATES = /*#__PURE__*/function (BUNDLE_META_STATES) {
|
|
104
|
+
BUNDLE_META_STATES["NOT_APPLIED"] = "Not applied";
|
|
105
|
+
BUNDLE_META_STATES["APPLIES_ON_RESTART"] = "Applies on restart";
|
|
106
|
+
BUNDLE_META_STATES["APPLIED"] = "Applied";
|
|
107
|
+
return BUNDLE_META_STATES;
|
|
108
|
+
}({});
|
|
109
|
+
export const META_SEPARATOR = ' · ';
|
|
110
|
+
/** Bundle cards title versions lowercase ("v3"); bucket meta uses "V3". */
|
|
111
|
+
export const BUNDLE_VERSION_PREFIX = 'v';
|
|
112
|
+
export const BUCKET_UPDATED_PREFIX = 'Updated ';
|
|
113
|
+
export const BUNDLE_COUNT_SUFFIX = ' bundles';
|
|
114
|
+
export const BUNDLE_COUNT_SUFFIX_SINGULAR = ' bundle';
|
|
115
|
+
export const DEVICE_ROW_APP_VERSION = 'App Version';
|
|
116
|
+
export const DEVICE_ROW_UID = 'UID';
|
|
117
|
+
export const PROD_EMPTY_TITLE = 'No bundles in Production';
|
|
118
|
+
export const PROD_EMPTY_SUBTITLE = 'Promote a bundle from Testing and it will appear here.';
|
|
119
|
+
export const EMPTY_BUCKETS_TITLE = 'No buckets yet';
|
|
120
|
+
export const EMPTY_BUCKETS_SUBTITLE = 'Create a bucket from the Stallion dashboard and it will appear here.';
|
|
121
|
+
export const EMPTY_BUNDLES_TITLE = 'No bundles in this bucket';
|
|
122
|
+
export const EMPTY_BUNDLES_SUBTITLE = 'Upload a bundle from the Stallion CLI and it will appear here.';
|
|
123
|
+
export const GENERIC_ERROR_TITLE = 'Something went wrong';
|
|
121
124
|
//# sourceMappingURL=appConstants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Platform","HEADER_TITLE","Login_TITLE","
|
|
1
|
+
{"version":3,"names":["Platform","HEADER_TITLE","Login_TITLE","HEADER_SLAB_HEIGHT","STD_MARGIN","END_REACH_THRESHOLD","DOWNLOAD_BUTTON_TEXT","SWITCH_TEXTS","DEFAULT_ERROR_MESSAGE","EMPTY_ERROR_MESSAGE","EMPTY_ERROR_MESSAGE_BUNDLE","DEFAULT_ERROR_PREFIX","VERSION_PREFIX","RETRY_BUTTON_TEXT","CURRENT_PLATFORM","OS","IS_ANDROID","KEYBOARD_AVOIDING_BEHAVIOUR","EMPTY_STATE","data","isLoading","error","PIN_LENGTH","SUBMIT_BUTTON_TEXT","PIN_INPUT_KEY","NOT_APPLICABLE_TEXT","STALLION_LOGO_URL","STALLION_EB_INFO","STALLION_EB_BTN_TXT","NATIVE_CONSTANTS","NativeEventTypesProd","NativeEventTypesStage","STALLION_NATIVE_EVENT","DEFAULT_STALLION_PARAMS","WORDMARK_TEXT","TAB_CAPTIONS","SECTION_LABELS","CHIP_TEXTS","RESTART_BUTTON_TEXT","READ_MORE_TEXT","READ_LESS_TEXT","BUNDLE_META_STATES","META_SEPARATOR","BUNDLE_VERSION_PREFIX","BUCKET_UPDATED_PREFIX","BUNDLE_COUNT_SUFFIX","BUNDLE_COUNT_SUFFIX_SINGULAR","DEVICE_ROW_APP_VERSION","DEVICE_ROW_UID","PROD_EMPTY_TITLE","PROD_EMPTY_SUBTITLE","EMPTY_BUCKETS_TITLE","EMPTY_BUCKETS_SUBTITLE","EMPTY_BUNDLES_TITLE","EMPTY_BUNDLES_SUBTITLE","GENERIC_ERROR_TITLE"],"sourceRoot":"../../../../src","sources":["main/constants/appConstants.ts"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,cAAc;AAGvC,OAAO,MAAMC,YAAY,GAAG,UAAU;AACtC,OAAO,MAAMC,WAAW,GAAG,mBAAmB;AAC9C,OAAO,MAAMC,kBAAkB,GAAG,EAAE;AACpC,OAAO,MAAMC,UAAU,GAAGD,kBAAkB,GAAG,CAAC;AAChD,OAAO,MAAME,mBAAmB,GAAG,CAAC;AAEpC,OAAO,MAAMC,oBAAoB,GAAG,UAAU;AAE9C,WAAYC,YAAY,0BAAZA,YAAY;EAAZA,YAAY;EAAZA,YAAY;EAAA,OAAZA,YAAY;AAAA;AAKxB,OAAO,MAAMC,qBAAqB,GAChC,qDAAqD;AACvD,OAAO,MAAMC,mBAAmB,GAAG,kBAAkB;AACrD,OAAO,MAAMC,0BAA0B,GAAG,kBAAkB;AAC5D,OAAO,MAAMC,oBAAoB,GAAG,SAAS;AAC7C,OAAO,MAAMC,cAAc,GAAG,GAAG;AACjC,OAAO,MAAMC,iBAAiB,GAAG,OAAO;AAExC,OAAO,MAAMC,gBAAgB,GAAGd,QAAQ,CAACe,EAAE;AAC3C,OAAO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|
-
indigo: '#514AC3',
|
|
3
2
|
white: '#ffffff',
|
|
4
3
|
black: '#000000',
|
|
5
|
-
background_grey: '#f2f2f4',
|
|
6
|
-
error: '#FA6969',
|
|
7
|
-
green: '#1E9B21',
|
|
8
4
|
red: '#FA6969',
|
|
9
5
|
black7: 'rgba(0,0,0,0.7)',
|
|
10
6
|
black2: 'rgba(0,0,0,0.2)',
|
|
11
7
|
black5: 'rgba(0,0,0,0.5)',
|
|
12
|
-
|
|
13
|
-
white7: 'rgba(255,255,255,0.7)',
|
|
14
|
-
orange: '#ff6303',
|
|
15
|
-
blue: 'blue',
|
|
16
|
-
text_major: '#5F5F5F',
|
|
17
|
-
text_light: '#5F5F5F80'
|
|
8
|
+
text_major: '#5F5F5F'
|
|
18
9
|
};
|
|
19
10
|
//# sourceMappingURL=colors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["COLORS","
|
|
1
|
+
{"version":3,"names":["COLORS","white","black","red","black7","black2","black5","text_major"],"sourceRoot":"../../../../src","sources":["main/constants/colors.ts"],"mappings":"AAAA,OAAO,MAAMA,MAAM,GAAG;EACpBC,KAAK,EAAE,SAAS;EAChBC,KAAK,EAAE,SAAS;EAChBC,GAAG,EAAE,SAAS;EACdC,MAAM,EAAE,iBAAiB;EACzBC,MAAM,EAAE,iBAAiB;EACzBC,MAAM,EAAE,iBAAiB;EACzBC,UAAU,EAAE;AACd,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { Platform } from 'react-native';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Design tokens for the Stallion dev menu.
|
|
5
|
+
*/
|
|
6
|
+
export const DS_COLORS = {
|
|
7
|
+
indigo: '#4638E4',
|
|
8
|
+
indigoPressed: '#372BC4',
|
|
9
|
+
indigoTint: '#EEEDFD',
|
|
10
|
+
green: '#177A4C',
|
|
11
|
+
greenPressed: '#12603C',
|
|
12
|
+
greenTint: '#E4F4EB',
|
|
13
|
+
screenBg: '#FFFFFF',
|
|
14
|
+
cardBg: '#FFFFFF',
|
|
15
|
+
cardBorder: '#E5E5EC',
|
|
16
|
+
divider: '#F1F1F4',
|
|
17
|
+
headerHairline: '#ECECF0',
|
|
18
|
+
segmentTrack: '#F3F3F6',
|
|
19
|
+
outlineBorder: '#D9D9E0',
|
|
20
|
+
chevron: '#C4C4CC',
|
|
21
|
+
textPrimary: '#111827',
|
|
22
|
+
textSecondary: '#4B5563',
|
|
23
|
+
textBody: '#374151',
|
|
24
|
+
textMuted: '#6B7280',
|
|
25
|
+
textFaint: '#9CA3AF',
|
|
26
|
+
white: '#FFFFFF',
|
|
27
|
+
// Not part of the handoff palette — used only for the download error banner.
|
|
28
|
+
errorText: '#B42318',
|
|
29
|
+
errorTint: '#FEF3F2',
|
|
30
|
+
errorBorder: '#FECDCA',
|
|
31
|
+
contentBg: '#F5F5F7'
|
|
32
|
+
};
|
|
33
|
+
export const DS_RADII = {
|
|
34
|
+
card: 16,
|
|
35
|
+
button: 10,
|
|
36
|
+
segmentTrack: 12,
|
|
37
|
+
segment: 10,
|
|
38
|
+
pill: 999
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Compact toggle (46×28). On (Testing) uses brand green against the
|
|
43
|
+
* white header; off (Production) keeps a neutral outline track.
|
|
44
|
+
*/
|
|
45
|
+
export const DS_TOGGLE = {
|
|
46
|
+
width: 46,
|
|
47
|
+
height: 28,
|
|
48
|
+
thumb: 24,
|
|
49
|
+
inset: 2,
|
|
50
|
+
trackOff: DS_COLORS.outlineBorder,
|
|
51
|
+
trackOn: DS_COLORS.green
|
|
52
|
+
};
|
|
53
|
+
export const DS_SPACING = {
|
|
54
|
+
screen: 20,
|
|
55
|
+
cardVertical: 16,
|
|
56
|
+
cardHorizontal: 18,
|
|
57
|
+
section: 24,
|
|
58
|
+
labelGap: 10,
|
|
59
|
+
cardGap: 12
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
/** Monospace family for the UID value. */
|
|
63
|
+
export const DS_MONO_FONT = Platform.OS === 'ios' ? 'Menlo' : 'monospace';
|
|
64
|
+
|
|
65
|
+
/** Pads small glyph controls out to the 44px minimum touch target. */
|
|
66
|
+
export const DS_HIT_SLOP = {
|
|
67
|
+
top: 12,
|
|
68
|
+
bottom: 12,
|
|
69
|
+
left: 12,
|
|
70
|
+
right: 12
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
/** Pads buttons (≈32px tall) out to the 44px minimum touch target. */
|
|
74
|
+
export const DS_BUTTON_HIT_SLOP = {
|
|
75
|
+
top: 8,
|
|
76
|
+
bottom: 8,
|
|
77
|
+
left: 8,
|
|
78
|
+
right: 8
|
|
79
|
+
};
|
|
80
|
+
//# sourceMappingURL=designTokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Platform","DS_COLORS","indigo","indigoPressed","indigoTint","green","greenPressed","greenTint","screenBg","cardBg","cardBorder","divider","headerHairline","segmentTrack","outlineBorder","chevron","textPrimary","textSecondary","textBody","textMuted","textFaint","white","errorText","errorTint","errorBorder","contentBg","DS_RADII","card","button","segment","pill","DS_TOGGLE","width","height","thumb","inset","trackOff","trackOn","DS_SPACING","screen","cardVertical","cardHorizontal","section","labelGap","cardGap","DS_MONO_FONT","OS","DS_HIT_SLOP","top","bottom","left","right","DS_BUTTON_HIT_SLOP"],"sourceRoot":"../../../../src","sources":["main/constants/designTokens.ts"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,cAAc;;AAEvC;AACA;AACA;AACA,OAAO,MAAMC,SAAS,GAAG;EACvBC,MAAM,EAAE,SAAS;EACjBC,aAAa,EAAE,SAAS;EACxBC,UAAU,EAAE,SAAS;EACrBC,KAAK,EAAE,SAAS;EAChBC,YAAY,EAAE,SAAS;EACvBC,SAAS,EAAE,SAAS;EACpBC,QAAQ,EAAE,SAAS;EACnBC,MAAM,EAAE,SAAS;EACjBC,UAAU,EAAE,SAAS;EACrBC,OAAO,EAAE,SAAS;E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,GAAG,EAAE,CAAC;EAAEC,MAAM,EAAE,CAAC;EAAEC,IAAI,EAAE,CAAC;EAAEC,KAAK,EAAE;AAAE,CAAC"}
|
package/src/main/index.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import withStallion from '../main/utils/withStallion';
|
|
2
2
|
import useStallionModal from '../main/utils/useStallionModal';
|
|
3
|
+
import StallionDevMenu from '../main/components/StallionDevMenu';
|
|
3
4
|
export default {
|
|
4
5
|
withStallion,
|
|
5
|
-
useStallionModal
|
|
6
|
+
useStallionModal,
|
|
7
|
+
StallionDevMenu
|
|
6
8
|
};
|
|
7
9
|
//# sourceMappingURL=index.js.map
|
package/src/main/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["withStallion","useStallionModal"],"sourceRoot":"../../../src","sources":["main/index.ts"],"mappings":"AAAA,OAAOA,YAAY,MAAM,4BAA4B;AACrD,OAAOC,gBAAgB,MAAM,gCAAgC;
|
|
1
|
+
{"version":3,"names":["withStallion","useStallionModal","StallionDevMenu"],"sourceRoot":"../../../src","sources":["main/index.ts"],"mappings":"AAAA,OAAOA,YAAY,MAAM,4BAA4B;AACrD,OAAOC,gBAAgB,MAAM,gCAAgC;AAC7D,OAAOC,eAAe,MAAM,oCAAoC;AAEhE,eAAe;EACbF,YAAY;EACZC,gBAAgB;EAChBC;AACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useEffect","useCallback","useMemo","NativeEventEmitter","NativeEventTypesProd","STALLION_NATIVE_EVENT","NativeEventTypesStage","DEFAULT_STALLION_PARAMS","stallionEventEmitter","acknowledgeEventsNative","onLaunchNative","popEventsNative","hasCrashOccurredCheck","StallionNativeModule","useApiClient","API_PATHS","debounce","clearApiBaseUrlCache","UpdateMetaActionKind","REFRESH_META_EVENTS","DOWNLOAD_COMPLETE_PROD","ROLLED_BACK_PROD","AUTO_ROLLED_BACK_PROD","STABILIZED_PROD","DOWNLOAD_COMPLETE_STAGE","DOWNLOAD_ERROR_STAGE","INSTALLED_STAGE","STALLION_EVENT_DEBOUNCE_INTERVAL","processStallionEvent","eventString","JSON","parse","_","useStallionEvents","refreshMeta","setProgress","configState","updateMetaDispatch","stallionInitParams","getData","syncStallionEvents","stallionEvents","projectId","LOG_EVENTS","eventData","then","res","success","eventIds","map","event","eventId","eventIdString","stringify","popEvents","eventsString","eventsArr","length","requestAnimationFrame","popEventsDebounced","eventEmitter","addListener","nativeEventString","eventType","type","DOWNLOAD_STARTED_PROD","SET_PENDING_RELEASE_HASH","payload","releaseHash","emit","DOWNLOAD_PROGRESS_PROD","DOWNLOAD_ERROR_PROD","INSTALLED_PROD","SYNC_ERROR_PROD","EXCEPTION_PROD","DOWNLOAD_PROGRESS_STAGE","progress","Number","removeAllListeners","setTimeout","console","warn","Error"],"sourceRoot":"../../../../src","sources":["main/state/useStallionEvents.ts"],"mappings":"AAAA,SAASA,SAAS,EAAEC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AACvD,SAASC,kBAAkB,QAAQ,cAAc;AACjD,SACEC,oBAAoB,EACpBC,qBAAqB,EACrBC,qBAAqB,EACrBC,uBAAuB,QAClB,2BAA2B;AAClC,SAASC,oBAAoB,QAAQ,+BAA+B;AACpE,SACEC,uBAAuB,EACvBC,cAAc,EACdC,eAAe,QACV,8BAA8B;AACrC,SAASC,qBAAqB,QAAQ,qBAAqB;AAC3D,OAAOC,oBAAoB,MAAM,4BAA4B;AAE7D,SAASC,YAAY,QAAQ,uBAAuB;AACpD,SAASC,SAAS,QAAQ,2BAA2B;AACrD,OAAOC,QAAQ,MAAM,mBAAmB;AAExC,SAASC,oBAAoB,QAAQ,wBAAwB;AAC7D,SAEEC,oBAAoB,QACf,8BAA8B;AAErC,MAAMC,mBAEL,GAAG;EACF,CAACf,oBAAoB,CAACgB,sBAAsB,GAAG,IAAI;EACnD,CAAChB,oBAAoB,CAACiB,gBAAgB,GAAG,IAAI;EAC7C,CAACjB,oBAAoB,CAACkB,qBAAqB,GAAG,IAAI;EAClD,CAAClB,oBAAoB,CAACmB,eAAe,GAAG,IAAI;EAC5C,CAACjB,qBAAqB,CAACkB,uBAAuB,GAAG,IAAI;EACrD,CAAClB,qBAAqB,CAACmB,oBAAoB,GAAG,IAAI;EAClD,CAACnB,qBAAqB,CAACoB,eAAe,GAAG;AAC3C,CAAC;
|
|
1
|
+
{"version":3,"names":["useEffect","useCallback","useMemo","NativeEventEmitter","NativeEventTypesProd","STALLION_NATIVE_EVENT","NativeEventTypesStage","DEFAULT_STALLION_PARAMS","stallionEventEmitter","acknowledgeEventsNative","onLaunchNative","popEventsNative","hasCrashOccurredCheck","StallionNativeModule","useApiClient","API_PATHS","debounce","clearApiBaseUrlCache","UpdateMetaActionKind","REFRESH_META_EVENTS","DOWNLOAD_COMPLETE_PROD","ROLLED_BACK_PROD","AUTO_ROLLED_BACK_PROD","STABILIZED_PROD","DOWNLOAD_COMPLETE_STAGE","DOWNLOAD_ERROR_STAGE","INSTALLED_STAGE","STALLION_EVENT_DEBOUNCE_INTERVAL","processStallionEvent","eventString","JSON","parse","_","useStallionEvents","refreshMeta","setProgress","configState","updateMetaDispatch","stallionInitParams","getData","syncStallionEvents","stallionEvents","projectId","LOG_EVENTS","eventData","then","res","success","eventIds","map","event","eventId","eventIdString","stringify","popEvents","eventsString","eventsArr","length","requestAnimationFrame","popEventsDebounced","eventEmitter","addListener","nativeEventString","eventType","type","DOWNLOAD_STARTED_PROD","SET_PENDING_RELEASE_HASH","payload","releaseHash","emit","DOWNLOAD_PROGRESS_PROD","DOWNLOAD_ERROR_PROD","INSTALLED_PROD","SYNC_ERROR_PROD","EXCEPTION_PROD","DOWNLOAD_PROGRESS_STAGE","progress","Number","removeAllListeners","setTimeout","console","warn","Error"],"sourceRoot":"../../../../src","sources":["main/state/useStallionEvents.ts"],"mappings":"AAAA,SAASA,SAAS,EAAEC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AACvD,SAASC,kBAAkB,QAAQ,cA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gC,QAAQ,CAAC;YAC5C,IAAIA,QAAQ,EAAE;cACZzC,WAAW,CAACyC,QAAQ,CAAC;YACvB;UACF,CAAC,CAAC,OAAO5C,CAAC,EAAE,CAAC;UACb;MACJ;IACF,CACF,CAAC;IACD,OAAO,MAAM;MACX4B,YAAY,CAACkB,kBAAkB,CAACzE,qBAAqB,CAAC;IACxD,CAAC;EACH,CAAC,EAAE,CAAC6B,WAAW,EAAEC,WAAW,EAAEwB,kBAAkB,EAAEtB,kBAAkB,CAAC,CAAC;EAEtErC,SAAS,CAAC,MAAM;IACd+E,UAAU,CAAC,MAAM;MACf;MACA,IAAInE,qBAAqB,CAAC,CAAC,EAAE;QAC3BoE,OAAO,CAACC,IAAI,CACV,gEACF,CAAC;QACD;MACF;MACAhE,oBAAoB,CAAC,CAAC;MACtB,IAAIqB,kBAAkB,EAAE;QACtB,IAAI;UACF5B,cAAc,CAACoB,IAAI,CAACuB,SAAS,CAACf,kBAAkB,CAAC,CAAC;QACpD,CAAC,CAAC,OAAON,CAAC,EAAE;UACV,MAAM,IAAIkD,KAAK,CAAC,4CAA4C,CAAC;QAC/D;MACF,CAAC,MAAM;QACLxE,cAAc,CAACoB,IAAI,CAACuB,SAAS,CAAC9C,uBAAuB,CAAC,CAAC;MACzD;IACF,CAAC,EAAE,GAAG,CAAC;IACP;EACF,CAAC,EAAE,EAAE,CAAC;EAENP,SAAS,CAAC,MAAM;IACd2D,kBAAkB,CAAC,CAAC;EACtB,CAAC,EAAE,CAACA,kBAAkB,CAAC,CAAC;AAC1B,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useContext } from 'react';
|
|
2
|
+
import { GlobalContext } from '../state';
|
|
3
|
+
const useStallionConfig = () => {
|
|
4
|
+
const {
|
|
5
|
+
actions: {
|
|
6
|
+
refreshConfig
|
|
7
|
+
}
|
|
8
|
+
} = useContext(GlobalContext);
|
|
9
|
+
return {
|
|
10
|
+
updateStallionConfig: refreshConfig
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export default useStallionConfig;
|
|
14
|
+
//# sourceMappingURL=useStallionConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useContext","GlobalContext","useStallionConfig","actions","refreshConfig","updateStallionConfig"],"sourceRoot":"../../../../src","sources":["main/utils/useStallionConfig.ts"],"mappings":"AAAA,SAASA,UAAU,QAAQ,OAAO;AAClC,SAASC,aAAa,QAAQ,UAAU;AAExC,MAAMC,iBAAiB,GAAGA,CAAA,KAAM;EAC9B,MAAM;IACJC,OAAO,EAAE;MAAEC;IAAc;EAC3B,CAAC,GAAGJ,UAAU,CAACC,aAAa,CAAC;EAC7B,OAAO;IACLI,oBAAoB,EAAED;EACxB,CAAC;AACH,CAAC;AAED,eAAeF,iBAAiB"}
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
export let BUNDLE_STATUS = /*#__PURE__*/function (BUNDLE_STATUS) {
|
|
2
|
+
BUNDLE_STATUS["AVAILABLE"] = "available";
|
|
3
|
+
BUNDLE_STATUS["DOWNLOADING"] = "downloading";
|
|
4
|
+
BUNDLE_STATUS["DOWNLOADED"] = "downloaded";
|
|
5
|
+
BUNDLE_STATUS["ACTIVE"] = "active";
|
|
6
|
+
return BUNDLE_STATUS;
|
|
7
|
+
}({});
|
|
1
8
|
export let BundleActionKind = /*#__PURE__*/function (BundleActionKind) {
|
|
2
9
|
BundleActionKind["SET_BUNDLE_LOADING"] = "SET_BUNDLE_LOADING";
|
|
3
10
|
BundleActionKind["SET_BUNDLE_DATA"] = "SET_BUNDLE_DATA";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["BundleActionKind"],"sourceRoot":"../../../src","sources":["types/bundle.types.ts"],"mappings":"
|
|
1
|
+
{"version":3,"names":["BUNDLE_STATUS","BundleActionKind"],"sourceRoot":"../../../src","sources":["types/bundle.types.ts"],"mappings":"AAAA,WAAYA,aAAa,0BAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA;AA+BzB,WAAYC,gBAAgB,0BAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAA,OAAhBA,gBAAgB;AAAA"}
|
package/types/index.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
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 { default as StallionDevMenu } from './main/components/StallionDevMenu';
|
|
4
5
|
export { sync, restart } from './main/utils/StallionNativeUtils';
|
|
5
6
|
export { useStallionUpdate } from './main/utils/useStallionUpdate';
|
|
7
|
+
export { default as useStallionConfig } from './main/utils/useStallionConfig';
|
|
6
8
|
export declare const addEventListener: (listener: (data?: import("./main/state/useStallionEvents").IStallionNativeEventData | undefined) => void) => void;
|
|
7
9
|
export declare const removeEventListener: (listenerToRemove: (data?: import("./main/state/useStallionEvents").IStallionNativeEventData | undefined) => void) => void;
|
|
8
10
|
export declare const ACTIVE_RELEASE_HASH: string | null;
|
package/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAIvE,eAAO,IAAI,YAAY,EAAE,aAAa,CAAC;AACvC,eAAO,IAAI,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAWrD,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,eAAO,MAAM,gBAAgB,oHACqC,CAAC;AACnE,eAAO,MAAM,mBAAmB,4HACqC,CAAC;AAEtE,eAAO,MAAM,mBAAmB,eAA+B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAIvE,eAAO,IAAI,YAAY,EAAE,aAAa,CAAC;AACvC,eAAO,IAAI,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAWrD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAC/E,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAC9E,eAAO,MAAM,gBAAgB,oHACqC,CAAC;AACnE,eAAO,MAAM,mBAAmB,4HACqC,CAAC;AAEtE,eAAO,MAAM,mBAAmB,eAA+B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StallionDevMenu.d.ts","sourceRoot":"","sources":["../../../../src/main/components/StallionDevMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAUrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA2CpD,CAAC;AAqBF,eAAe,eAAe,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare const BUTTON_SIZE
|
|
2
|
+
export declare const BUTTON_SIZE = 20;
|
|
3
3
|
type BackButtonProps = {
|
|
4
4
|
onPress?: () => void;
|
|
5
5
|
size?: number;
|
|
6
|
+
color?: string;
|
|
6
7
|
};
|
|
7
|
-
declare const
|
|
8
|
-
export default
|
|
8
|
+
declare const _default: React.NamedExoticComponent<BackButtonProps>;
|
|
9
|
+
export default _default;
|
|
9
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/main/components/common/BackButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/main/components/common/BackButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAMpC,eAAO,MAAM,WAAW,KAAe,CAAC;AAExC,KAAK,eAAe,GAAG;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;;AAyBF,wBAAgC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const CHEVRON_SIZE = 20;
|
|
3
|
+
type ChevronProps = {
|
|
4
|
+
/** Defaults to a right-pointing chevron (list disclosure). */
|
|
5
|
+
direction?: 'left' | 'right';
|
|
6
|
+
size?: number;
|
|
7
|
+
color?: string;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: React.NamedExoticComponent<ChevronProps>;
|
|
10
|
+
export default _default;
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/main/components/common/Chevron/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAKpC,eAAO,MAAM,YAAY,KAAK,CAAC;AAE/B,KAAK,YAAY,GAAG;IAClB,8DAA8D;IAC9D,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;;AAwEF,wBAA6B"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare const BUTTON_SIZE
|
|
2
|
+
export declare const BUTTON_SIZE = 18;
|
|
3
3
|
type CrossButtonProps = {
|
|
4
4
|
onPress?: () => void;
|
|
5
5
|
size?: number;
|
|
6
|
+
color?: string;
|
|
6
7
|
};
|
|
7
|
-
declare const
|
|
8
|
-
export default
|
|
8
|
+
declare const _default: React.NamedExoticComponent<CrossButtonProps>;
|
|
9
|
+
export default _default;
|
|
9
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/main/components/common/CrossButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/main/components/common/CrossButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAKpC,eAAO,MAAM,WAAW,KAAK,CAAC;AAE9B,KAAK,gBAAgB,GAAG;IACtB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;;AAwCF,wBAAiC"}
|
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/main/components/common/Header/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAO3D,UAAU,OAAO;IACf,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;;AA+BD,wBAA4B"}
|
|
@@ -22,15 +22,6 @@ declare const styles: {
|
|
|
22
22
|
alignItems: "flex-end";
|
|
23
23
|
paddingHorizontal: number;
|
|
24
24
|
};
|
|
25
|
-
headerProfileButton: {
|
|
26
|
-
height: number;
|
|
27
|
-
width: number;
|
|
28
|
-
borderRadius: number;
|
|
29
|
-
justifyContent: "center";
|
|
30
|
-
alignItems: "center";
|
|
31
|
-
backgroundColor: string;
|
|
32
|
-
marginLeft: number;
|
|
33
|
-
};
|
|
34
25
|
headerCenterSection: {
|
|
35
26
|
flex: number;
|
|
36
27
|
justifyContent: "center";
|
|
@@ -41,14 +32,6 @@ declare const styles: {
|
|
|
41
32
|
color: string;
|
|
42
33
|
fontWeight: "bold";
|
|
43
34
|
};
|
|
44
|
-
actionButtonClickable: {
|
|
45
|
-
padding: number;
|
|
46
|
-
};
|
|
47
|
-
actionButtonText: {
|
|
48
|
-
fontSize: number;
|
|
49
|
-
color: string;
|
|
50
|
-
fontWeight: "bold";
|
|
51
|
-
};
|
|
52
35
|
alignStart: {
|
|
53
36
|
alignItems: "flex-start";
|
|
54
37
|
};
|
|
@@ -56,10 +39,6 @@ declare const styles: {
|
|
|
56
39
|
width: number;
|
|
57
40
|
flex: number;
|
|
58
41
|
};
|
|
59
|
-
profileInitial: {
|
|
60
|
-
fontSize: number;
|
|
61
|
-
color: string;
|
|
62
|
-
};
|
|
63
42
|
};
|
|
64
43
|
export default styles;
|
|
65
44
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -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":"AAQA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCV,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
export type TButtonVariant = 'primary' | 'success' | 'outline';
|
|
4
|
+
interface IActionButton {
|
|
5
|
+
label: string;
|
|
6
|
+
variant: TButtonVariant;
|
|
7
|
+
onPress?: () => void;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
style?: StyleProp<ViewStyle>;
|
|
10
|
+
/**
|
|
11
|
+
* 0–1. When set, the button doubles as its own progress bar: a tinted fill
|
|
12
|
+
* grows left to right behind the label. Designed for the `outline` variant,
|
|
13
|
+
* whose pale track is what makes the fill readable.
|
|
14
|
+
*/
|
|
15
|
+
progress?: number;
|
|
16
|
+
}
|
|
17
|
+
declare const _default: React.NamedExoticComponent<IActionButton>;
|
|
18
|
+
export default _default;
|
|
19
|
+
//# sourceMappingURL=ActionButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionButton.d.ts","sourceRoot":"","sources":["../../../../../../../src/main/components/modules/devMenu/components/ActionButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AACpC,OAAO,EAAa,SAAS,EAAc,SAAS,EAAE,MAAM,cAAc,CAAC;AAM3E,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;AAE/D,UAAU,aAAa;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,cAAc,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;;AA0DD,wBAAkC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppHeader.d.ts","sourceRoot":"","sources":["../../../../../../../src/main/components/modules/devMenu/components/AppHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAQpC,UAAU,UAAU;IAClB,YAAY,EAAE,MAAM,IAAI,CAAC;CAC1B;;AASD,wBAA+B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface IBucketRow {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
updatedAt: string;
|
|
6
|
+
latestVersion: number;
|
|
7
|
+
onPress: (bucketId: string) => void;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: React.NamedExoticComponent<IBucketRow>;
|
|
10
|
+
export default _default;
|
|
11
|
+
//# sourceMappingURL=BucketRow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BucketRow.d.ts","sourceRoot":"","sources":["../../../../../../../src/main/components/modules/devMenu/components/BucketRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAepC,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC;;AAqCD,wBAA+B"}
|