react-native-inapp-inspector 2.5.0 → 2.5.2
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/README.ar.md +151 -53
- package/README.de.md +150 -52
- package/README.es.md +139 -42
- package/README.fr.md +151 -53
- package/README.hi.md +141 -43
- package/README.ja.md +150 -69
- package/README.ko.md +153 -55
- package/README.md +73 -14
- package/README.pt-BR.md +152 -54
- package/README.ru.md +153 -55
- package/README.zh-CN.md +95 -219
- package/android/src/main/java/com/inappinspector/NetworkInspectorModule.kt +154 -9
- package/dist/commonjs/capture.d.ts +5 -2
- package/dist/commonjs/capture.js +1 -1
- package/dist/commonjs/components/Inspector/FabLauncher.js +12 -12
- package/dist/commonjs/components/Inspector/FloatingCaptureWidget.js +17 -17
- package/dist/commonjs/components/Inspector/InspectorHeader.js +41 -41
- package/dist/commonjs/components/Inspector/MainScreen.js +15 -15
- package/dist/commonjs/components/Inspector/MediaGalleryTab.js +52 -34
- package/dist/commonjs/components/Inspector/MediaPreviewModal.d.ts +20 -18
- package/dist/commonjs/components/Inspector/MediaPreviewModal.js +744 -304
- package/dist/commonjs/components/NetworkIcons.d.ts +12 -0
- package/dist/commonjs/components/NetworkIcons.js +56 -3
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -1
- package/dist/commonjs/i18n/locales/ar.json +1 -1
- package/dist/commonjs/i18n/locales/bn.json +1 -1
- package/dist/commonjs/i18n/locales/de.json +1 -1
- package/dist/commonjs/i18n/locales/en.json +1 -1
- package/dist/commonjs/i18n/locales/es.json +1 -1
- package/dist/commonjs/i18n/locales/fr.json +1 -1
- package/dist/commonjs/i18n/locales/gu.json +1 -1
- package/dist/commonjs/i18n/locales/hi.json +1 -1
- package/dist/commonjs/i18n/locales/id.json +1 -1
- package/dist/commonjs/i18n/locales/it.json +1 -1
- package/dist/commonjs/i18n/locales/ja.json +1 -1
- package/dist/commonjs/i18n/locales/kn.json +1 -1
- package/dist/commonjs/i18n/locales/ko.json +1 -1
- package/dist/commonjs/i18n/locales/ml.json +1 -1
- package/dist/commonjs/i18n/locales/mr.json +1 -1
- package/dist/commonjs/i18n/locales/nl.json +1 -1
- package/dist/commonjs/i18n/locales/pa.json +1 -1
- package/dist/commonjs/i18n/locales/pl.json +1 -1
- package/dist/commonjs/i18n/locales/pt.json +1 -1
- package/dist/commonjs/i18n/locales/ru.json +1 -1
- package/dist/commonjs/i18n/locales/ta.json +1 -1
- package/dist/commonjs/i18n/locales/te.json +1 -1
- package/dist/commonjs/i18n/locales/tr.json +1 -1
- package/dist/commonjs/i18n/locales/vi.json +1 -1
- package/dist/commonjs/i18n/locales/zh.json +1 -1
- package/dist/commonjs/index.js +1 -1
- package/dist/commonjs/native/NativeInspector.d.ts +4 -0
- package/dist/commonjs/native/NativeInspector.js +1 -1
- package/dist/commonjs/native/NativeNetworkInspector.d.ts +1 -0
- package/dist/commonjs/types/interfaces.d.ts +2 -0
- package/dist/esm/capture.d.ts +5 -2
- package/dist/esm/capture.js +1 -1
- package/dist/esm/components/Inspector/FabLauncher.js +37 -37
- package/dist/esm/components/Inspector/FloatingCaptureWidget.js +30 -30
- package/dist/esm/components/Inspector/InspectorHeader.js +34 -34
- package/dist/esm/components/Inspector/MainScreen.js +51 -51
- package/dist/esm/components/Inspector/MediaGalleryTab.js +100 -82
- package/dist/esm/components/Inspector/MediaPreviewModal.d.ts +20 -18
- package/dist/esm/components/Inspector/MediaPreviewModal.js +774 -334
- package/dist/esm/components/NetworkIcons.d.ts +12 -0
- package/dist/esm/components/NetworkIcons.js +256 -203
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/i18n/locales/ar.json +1 -1
- package/dist/esm/i18n/locales/bn.json +1 -1
- package/dist/esm/i18n/locales/de.json +1 -1
- package/dist/esm/i18n/locales/en.json +1 -1
- package/dist/esm/i18n/locales/es.json +1 -1
- package/dist/esm/i18n/locales/fr.json +1 -1
- package/dist/esm/i18n/locales/gu.json +1 -1
- package/dist/esm/i18n/locales/hi.json +1 -1
- package/dist/esm/i18n/locales/id.json +1 -1
- package/dist/esm/i18n/locales/it.json +1 -1
- package/dist/esm/i18n/locales/ja.json +1 -1
- package/dist/esm/i18n/locales/kn.json +1 -1
- package/dist/esm/i18n/locales/ko.json +1 -1
- package/dist/esm/i18n/locales/ml.json +1 -1
- package/dist/esm/i18n/locales/mr.json +1 -1
- package/dist/esm/i18n/locales/nl.json +1 -1
- package/dist/esm/i18n/locales/pa.json +1 -1
- package/dist/esm/i18n/locales/pl.json +1 -1
- package/dist/esm/i18n/locales/pt.json +1 -1
- package/dist/esm/i18n/locales/ru.json +1 -1
- package/dist/esm/i18n/locales/ta.json +1 -1
- package/dist/esm/i18n/locales/te.json +1 -1
- package/dist/esm/i18n/locales/tr.json +1 -1
- package/dist/esm/i18n/locales/vi.json +1 -1
- package/dist/esm/i18n/locales/zh.json +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/native/NativeInspector.d.ts +4 -0
- package/dist/esm/native/NativeInspector.js +1 -1
- package/dist/esm/native/NativeNetworkInspector.d.ts +1 -0
- package/dist/esm/types/interfaces.d.ts +2 -0
- package/ios/NetworkInspectorModule.mm +487 -224
- package/package.json +1 -1
- package/react-native-inapp-inspector.podspec +1 -1
- package/src/native/NativeInspector.ts +22 -0
- package/src/native/NativeNetworkInspector.ts +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(
|
|
1
|
+
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(r,l,n,s){s===void 0&&(s=n);var i=Object.getOwnPropertyDescriptor(l,n);(!i||("get"in i?!l.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return l[n]}}),Object.defineProperty(r,s,i)}):(function(r,l,n,s){s===void 0&&(s=n),r[s]=l[n]})),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?(function(r,l){Object.defineProperty(r,"default",{enumerable:!0,value:l})}):function(r,l){r.default=l}),__importStar=this&&this.__importStar||(function(){var r=function(l){return r=Object.getOwnPropertyNames||function(n){var s=[];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(s[s.length]=i);return s},r(l)};return function(l){if(l&&l.__esModule)return l;var n={};if(l!=null)for(var s=r(l),i=0;i<s.length;i++)s[i]!=="default"&&__createBinding(n,l,s[i]);return __setModuleDefault(n,l),n}})(),__importDefault=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importStar(require("react")),react_native_1=require("react-native"),react_native_linear_gradient_1=__importDefault(require("react-native-linear-gradient")),InspectorContext_1=require("./InspectorContext"),TouchableScale_1=__importDefault(require("../TouchableScale")),BrandCircleIcon_1=require("../BrandCircleIcon"),styles_1=__importDefault(require("../../styles")),AppColors_1=require("../../styles/AppColors"),AppFonts_1=require("../../styles/AppFonts"),constants_1=require("../../constants"),constants_2=require("../../constants"),helpers_1=require("../../helpers"),NativeInspector_1=require("../../native/NativeInspector"),capture_1=require("../../capture"),UpdateAvailableModal_1=require("./UpdateAvailableModal"),MediaPreviewModal_1=require("./MediaPreviewModal"),LanguageSelectorModal_1=require("./LanguageSelectorModal"),NetworkIcons_1=require("../NetworkIcons"),i18n_1=require("../../i18n"),InspectorHeader=react_1.default.memo(()=>{const{t:r,language:l}=(0,i18n_1.useTranslation)(),{modalHeightPercent:n,appIcon:s,selected:i,setSelected:W,selectedEvent:u,setSelectedEvent:N,selectedLog:g,setSelectedLog:q,selectedReduxSlice:b,setSelectedReduxSlice:U,selectedReduxAction:S,setSelectedReduxAction:j,reduxState:G,reduxLastActionMap:K,updateAvailable:z,latestNpmVersion:Q,clearAnim:ce,activePulseAnim:J,unreadPulseAnim:X,runClearAllWithAnimation:pe,settingsPage:w,setSettingsPage:D,isAboutOpen:I,setIsAboutOpen:Y,resetToDefaults:Z,closeModal:B,minimizeInspector:ee,detailTitle:te,activeTab:d,environment:P,selectedCrash:p,setSelectedCrash:re,selectedPush:c,setSelectedPush:ie,selectedSocket:o,setSelectedSocket:ae,refreshMediaCount:C,peekMode:M,setPeekMode:oe,previewMediaItem:H,setPreviewMediaItem:m}=(0,InspectorContext_1.useInspector)(),{width:T}=(0,react_native_1.useWindowDimensions)(),e=T<360,y=T<400,[le,R]=react_1.default.useState(!1),[ue,ge]=react_1.default.useState(!1),[ne,L]=react_1.default.useState(!1),[se]=react_1.default.useState(()=>(0,helpers_1.getAppVersionAndBuild)().formatted),$=(0,react_1.useMemo)(()=>{const t=l||(0,i18n_1.getLanguage)();return i18n_1.SUPPORTED_LANGUAGES.find(a=>a.code===t)||i18n_1.SUPPORTED_LANGUAGES[0]},[l]),[v,x]=react_1.default.useState(!1),[he,k]=react_1.default.useState(0),_=react_1.default.useRef(null);react_1.default.useEffect(()=>{capture_1.ScreenCapture.isRecording().then(t=>{x(t)}).catch(()=>{})},[]),react_1.default.useEffect(()=>(v?(k(0),_.current=setInterval(()=>{k(t=>t+1)},1e3)):(_.current&&(clearInterval(_.current),_.current=null),k(0)),()=>{_.current&&clearInterval(_.current)}),[v]);const fe=react_1.default.useCallback(async()=>{try{(0,NativeInspector_1.triggerNativeHaptic)("light");const t=await capture_1.ScreenCapture.takeScreenshot({format:"png",quality:.9,hideInspector:!0});if(t){(0,NativeInspector_1.triggerNativeHaptic)("success");const a=(0,capture_1.generateCaptureId)("screenshot",t.format||"png"),f={id:a,type:"image",format:t.format,uri:t.uri,filename:t.uri.split("/").pop()||a,sizeBytes:t.sizeBytes,timestamp:t.timestamp,width:t.width,height:t.height};m(f),C?.().catch(()=>{}),(0,helpers_1.showToast)(r("header.screenshotCaptured"))}else(0,helpers_1.showToast)(r("header.screenshotFailed"))}catch{(0,helpers_1.showToast)(r("header.screenshotError"))}},[C,r]),we=react_1.default.useCallback(async()=>{try{if(v){(0,NativeInspector_1.triggerNativeHaptic)("medium");const t=await capture_1.ScreenCapture.stopRecording();if(x(!1),t){(0,NativeInspector_1.triggerNativeHaptic)("success");const a=(0,capture_1.generateCaptureId)("video",t.format),f={id:a,type:t.format==="gif"?"gif":"video",format:t.format,uri:t.uri,filename:t.uri.split("/").pop()||a,sizeBytes:t.sizeBytes,timestamp:t.timestamp,durationMs:t.durationMs,width:t.width,height:t.height,hasAudio:t.hasAudio};m(f),C?.().catch(()=>{}),(0,helpers_1.showToast)(r("header.recordingSaved",{duration:(t.durationMs/1e3).toFixed(1)}))}}else(0,NativeInspector_1.triggerNativeHaptic)("medium"),await capture_1.ScreenCapture.startRecording({fps:24,audioSource:"none"})?(x(!0),(0,helpers_1.showToast)(r("header.recordingStarted"))):(0,helpers_1.showToast)(r("header.recordingStartFailed"))}catch{(0,helpers_1.showToast)(r("header.recordingError")),x(!1)}},[v,r]),_e=t=>{const a=Math.floor(t/60),f=t%60;return`${a.toString().padStart(2,"0")}:${f.toString().padStart(2,"0")}`},be=(0,react_1.useMemo)(()=>{const t=(P||(__DEV__?"DEV":"PROD")).trim(),a=t.toUpperCase();return a==="DEV"||a.includes("DEV")||a==="LOCAL"?{label:t,bg:`${AppColors_1.AppColors.emerald500}40`,border:`${AppColors_1.AppColors.emerald400}8C`,text:AppColors_1.AppColors.mintGreenBorder}:a==="UAT"||a==="QA"||a==="TEST"?{label:t,bg:`${AppColors_1.AppColors.amber500}47`,border:`${AppColors_1.AppColors.amber400}99`,text:AppColors_1.AppColors.amberWarmBorder}:a==="PREPROD"||a==="STAGE"||a==="STAGING"?{label:t,bg:`${AppColors_1.AppColors.purple500}47`,border:`${AppColors_1.AppColors.purple400}99`,text:AppColors_1.AppColors.violetSoftBorder}:{label:t,bg:`${AppColors_1.AppColors.rose500}40`,border:`${AppColors_1.AppColors.roseBorder}8C`,text:AppColors_1.AppColors.errorBorder}},[P]),V=d==="apis"&&i!=null||d==="analytics"&&u!=null||d==="logs"&&g!=null||d==="redux"&&(b!=null||S!=null)||d==="crash"&&p!=null||d==="push"&&c!=null||d==="socket"&&o!=null,A=w!==null,O=V||A||I,de=(0,react_1.useMemo)(()=>{switch(w){case"apis":return"APIs (Network)";case"logs":return"Console Logs";case"crash":return"Crash Protection";case"analytics":return"Analytics Logger";case"redux":return"Redux Inspector";case"media":return"Screencast (Media)";case"push":return"Push Notifications";default:return"Settings & Modules"}},[w]),F=(0,react_1.useMemo)(()=>react_native_1.Platform.OS==="ios"?n>=98?T>=390?50:44:0:react_native_1.Platform.OS==="android"&&n>=98?react_native_1.StatusBar.currentHeight||24:0,[n,T]),h=e?25:y?26.5:27,Ce=e?36:y?38:40;return<>
|
|
2
2
|
<react_native_1.View style={[styles_1.default.headerGradient,{minHeight:(e?44:48)+F}]}>
|
|
3
3
|
|
|
4
4
|
<react_native_linear_gradient_1.default colors={[AppColors_1.AppColors.indigo600,AppColors_1.AppColors.violet600]}start={{x:0,y:0}}end={{x:1,y:1}}style={{position:"absolute",top:0,left:0,right:0,bottom:0,borderTopLeftRadius:20,borderTopRightRadius:20}}pointerEvents="none"/>
|
|
5
5
|
<react_native_1.View style={{paddingTop:F,width:"100%"}}>
|
|
6
6
|
<react_native_1.View style={[styles_1.default.header,{width:"100%",justifyContent:"space-between",paddingHorizontal:e?10:12,paddingVertical:5.5,minHeight:e?44:48}]}>
|
|
7
|
-
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:e?7:8,flex:
|
|
8
|
-
{
|
|
7
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:e?7:8,flex:V?void 0:1,flexShrink:V?0:1,minWidth:0}}>
|
|
8
|
+
{O&&<TouchableScale_1.default onPress={()=>{if(I){Y(!1);return}if(A){D(w==="main"?null:"main");return}W(null),N(null),q(null),U(null),j(null),re(null),ie(null),ae(null)}}hitSlop={15}style={{width:e?32:36,height:e?32:36,borderRadius:e?16:18,alignItems:"center",justifyContent:"center",backgroundColor:`${AppColors_1.AppColors.white}2E`,borderWidth:1,borderColor:`${AppColors_1.AppColors.white}4D`}}>
|
|
9
9
|
<react_native_1.View style={{position:"absolute",width:e?40:44,height:e?40:44,borderRadius:22,backgroundColor:`${AppColors_1.AppColors.white}1A`}}/>
|
|
10
10
|
<NetworkIcons_1.WhiteBackNavigation/>
|
|
11
11
|
</TouchableScale_1.default>}
|
|
12
12
|
|
|
13
|
-
{
|
|
13
|
+
{I?<react_native_1.View style={{gap:3,flex:1,minWidth:0,justifyContent:"center"}}>
|
|
14
14
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:6}}>
|
|
15
15
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:e?15:16.5,lineHeight:e?19:21,color:AppColors_1.AppColors.white,letterSpacing:-.2}}numberOfLines={1}>
|
|
16
16
|
About & Specs
|
|
@@ -24,37 +24,37 @@
|
|
|
24
24
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:e?10:11,lineHeight:e?14:15,color:`${AppColors_1.AppColors.white}CC`,marginTop:1}}numberOfLines={1}>
|
|
25
25
|
Package info, runtime specs & diagnostic payload
|
|
26
26
|
</react_native_1.Text>
|
|
27
|
-
</react_native_1.View>:
|
|
27
|
+
</react_native_1.View>:A?<react_native_1.View style={{gap:3,flex:1,minWidth:0,justifyContent:"center"}}>
|
|
28
28
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:6}}>
|
|
29
29
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:e?15:16.5,lineHeight:e?19:21,color:AppColors_1.AppColors.white,letterSpacing:-.2}}numberOfLines={1}>
|
|
30
30
|
{de}
|
|
31
31
|
</react_native_1.Text>
|
|
32
|
-
{
|
|
32
|
+
{w==="main"&&<react_native_1.View style={{backgroundColor:`${AppColors_1.AppColors.white}26`,paddingHorizontal:e?5:6,paddingVertical:2,borderRadius:8,borderWidth:1,borderColor:`${AppColors_1.AppColors.white}20`}}>
|
|
33
33
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:e?8.5:9.5,lineHeight:12,color:AppColors_1.AppColors.white}}>
|
|
34
34
|
v{constants_2.LIB_VERSION}
|
|
35
35
|
</react_native_1.Text>
|
|
36
36
|
</react_native_1.View>}
|
|
37
37
|
</react_native_1.View>
|
|
38
38
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:e?10:11,lineHeight:e?14:15,color:`${AppColors_1.AppColors.white}CC`,marginTop:1}}numberOfLines={1}>
|
|
39
|
-
{
|
|
39
|
+
{w==="main"?"Manage modules and preferences":"Configure module parameters"}
|
|
40
40
|
</react_native_1.Text>
|
|
41
|
-
</react_native_1.View>:
|
|
42
|
-
<BrandCircleIcon_1.BrandCircleIcon size={e?44:
|
|
41
|
+
</react_native_1.View>:O?null:<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:e?8:10,flex:1,minWidth:0,marginRight:4}}>
|
|
42
|
+
<BrandCircleIcon_1.BrandCircleIcon size={e?44:y?46:48}/>
|
|
43
43
|
<react_native_1.View style={{gap:3,flex:1,minWidth:0,justifyContent:"center"}}>
|
|
44
44
|
|
|
45
|
-
<react_native_1.Text style={[styles_1.default.headerTitle,{fontFamily:AppFonts_1.AppFonts.interBold,fontWeight:"700",fontSize:e?13:
|
|
45
|
+
<react_native_1.Text style={[styles_1.default.headerTitle,{fontFamily:AppFonts_1.AppFonts.interBold,fontWeight:"700",fontSize:e?13:y?13.5:14.5,lineHeight:e?17:y?18:19.5,color:AppColors_1.AppColors.white,letterSpacing:-.2,paddingBottom:0}]}numberOfLines={1}ellipsizeMode="tail">
|
|
46
46
|
react-native-inapp-inspector
|
|
47
47
|
</react_native_1.Text>
|
|
48
48
|
|
|
49
49
|
|
|
50
50
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:4.5,minWidth:0,marginTop:1.5}}>
|
|
51
51
|
|
|
52
|
-
<TouchableScale_1.default onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),
|
|
52
|
+
<TouchableScale_1.default onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),L(!0)}}hitSlop={6}accessible={!0}accessibilityRole="button"accessibilityLabel={r("settings.general.selectLanguage","Select Language")}style={{flexDirection:"row",alignItems:"center",backgroundColor:`${AppColors_1.AppColors.white}24`,borderRadius:5,paddingHorizontal:5.5,paddingVertical:2,gap:3.5,borderWidth:1,borderColor:`${AppColors_1.AppColors.white}38`,flexShrink:0}}>
|
|
53
53
|
<react_native_1.Text style={{fontSize:9,lineHeight:11}}>
|
|
54
|
-
{
|
|
54
|
+
{$?.flag||"\u{1F310}"}
|
|
55
55
|
</react_native_1.Text>
|
|
56
56
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8.5,lineHeight:11,color:AppColors_1.AppColors.white,letterSpacing:.2}}numberOfLines={1}>
|
|
57
|
-
{
|
|
57
|
+
{$?.code?.toUpperCase()||"EN"}
|
|
58
58
|
</react_native_1.Text>
|
|
59
59
|
<NetworkIcons_1.ChevronDownIcon size={6.5}color={`${AppColors_1.AppColors.white}CC`}/>
|
|
60
60
|
</TouchableScale_1.default>
|
|
@@ -68,18 +68,18 @@
|
|
|
68
68
|
</react_native_1.View>
|
|
69
69
|
|
|
70
70
|
|
|
71
|
-
<react_native_1.Pressable onPress={()=>{
|
|
71
|
+
<react_native_1.Pressable onPress={()=>{z?R(!0):react_native_1.Linking.openURL("https://www.npmjs.com/package/react-native-inapp-inspector").catch(()=>{})}}style={{flexDirection:"row",alignItems:"center",backgroundColor:`${AppColors_1.AppColors.white}1F`,borderRadius:5,paddingHorizontal:6,paddingVertical:2,gap:3.5,borderWidth:1,borderColor:`${AppColors_1.AppColors.white}2E`,flexShrink:0}}>
|
|
72
72
|
<NetworkIcons_1.NpmIcon size={9}color={AppColors_1.AppColors.npmRedLight}/>
|
|
73
73
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:8.5,lineHeight:11,color:`${AppColors_1.AppColors.white}EB`,letterSpacing:.1}}>
|
|
74
74
|
v{constants_2.LIB_VERSION}
|
|
75
75
|
</react_native_1.Text>
|
|
76
|
-
{
|
|
76
|
+
{z&&<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8,color:AppColors_1.AppColors.warningAmber}}>
|
|
77
77
|
●
|
|
78
78
|
</react_native_1.Text>}
|
|
79
79
|
</react_native_1.Pressable>
|
|
80
80
|
|
|
81
81
|
|
|
82
|
-
{
|
|
82
|
+
{z&&<react_native_1.Pressable hitSlop={10}onPress={()=>R(!0)}style={{flexDirection:"row",alignItems:"center",backgroundColor:AppColors_1.AppColors.warningAmber,borderRadius:5,paddingHorizontal:4.5,paddingVertical:1.5,gap:3,shadowColor:AppColors_1.AppColors.warningAmber,shadowOffset:{width:0,height:1.5},shadowOpacity:.35,shadowRadius:3,elevation:3,flexShrink:0}}>
|
|
83
83
|
<react_native_1.Animated.View style={{width:4.5,height:4.5,borderRadius:2.25,backgroundColor:AppColors_1.AppColors.white,opacity:J,transform:[{scale:X}]}}/>
|
|
84
84
|
{!e&&<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8,lineHeight:10,color:AppColors_1.AppColors.white,letterSpacing:.3}}>
|
|
85
85
|
UPDATE
|
|
@@ -91,12 +91,12 @@
|
|
|
91
91
|
</react_native_1.View>}
|
|
92
92
|
</react_native_1.View>
|
|
93
93
|
|
|
94
|
-
{
|
|
95
|
-
{d==="apis"&&
|
|
94
|
+
{V&&<react_native_1.View style={[styles_1.default.headerCenter,{paddingHorizontal:e?2:6}]}>
|
|
95
|
+
{d==="apis"&&i!=null?<react_native_1.View style={styles_1.default.headerDetailCenter}>
|
|
96
96
|
<react_native_1.View style={styles_1.default.headerDetailRow}>
|
|
97
|
-
<react_native_1.View style={[styles_1.default.headerMethodBadge,{backgroundColor:constants_1.METHOD_COLORS[
|
|
97
|
+
<react_native_1.View style={[styles_1.default.headerMethodBadge,{backgroundColor:constants_1.METHOD_COLORS[i.method]??AppColors_1.AppColors.grayText,paddingHorizontal:e?5:6,paddingVertical:e?2:3}]}>
|
|
98
98
|
<react_native_1.Text style={[styles_1.default.headerMethodText,{fontSize:e?9:10}]}>
|
|
99
|
-
{
|
|
99
|
+
{i.method}
|
|
100
100
|
</react_native_1.Text>
|
|
101
101
|
</react_native_1.View>
|
|
102
102
|
<react_native_1.Text style={[styles_1.default.headerDetailTitle,{fontSize:e?13.5:15}]}numberOfLines={1}ellipsizeMode="middle">
|
|
@@ -104,22 +104,22 @@
|
|
|
104
104
|
</react_native_1.Text>
|
|
105
105
|
</react_native_1.View>
|
|
106
106
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:e?4:6,marginTop:3,paddingVertical:1}}>
|
|
107
|
-
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:e?6:8,paddingVertical:2.5,borderRadius:20,backgroundColor:`${(0,helpers_1.getStatusColor)(
|
|
108
|
-
<react_native_1.View style={[styles_1.default.headerStatusDot,{backgroundColor:(0,helpers_1.getStatusColor)(
|
|
107
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:e?6:8,paddingVertical:2.5,borderRadius:20,backgroundColor:`${(0,helpers_1.getStatusColor)(i.status)}26`,borderWidth:1,borderColor:`${(0,helpers_1.getStatusColor)(i.status)}55`}}>
|
|
108
|
+
<react_native_1.View style={[styles_1.default.headerStatusDot,{backgroundColor:(0,helpers_1.getStatusColor)(i.status),width:e?6:7,height:e?6:7}]}/>
|
|
109
109
|
<react_native_1.Text style={[styles_1.default.headerSubTitle,{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:e?10:11}]}>
|
|
110
|
-
{
|
|
110
|
+
{i.status===0?"Failed":i.status??"Pending"}
|
|
111
111
|
</react_native_1.Text>
|
|
112
112
|
</react_native_1.View>
|
|
113
113
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:e?6:8,paddingVertical:2.5,borderRadius:20,backgroundColor:`${AppColors_1.AppColors.white}29`}}>
|
|
114
114
|
<NetworkIcons_1.ClockIcon color={AppColors_1.AppColors.white}size={e?10:11}/>
|
|
115
115
|
<react_native_1.Text style={[styles_1.default.headerSubTitle,{fontSize:e?10:11}]}>
|
|
116
|
-
{
|
|
116
|
+
{i.duration!=null?`${i.duration}ms`:"\u2014"}
|
|
117
117
|
</react_native_1.Text>
|
|
118
118
|
</react_native_1.View>
|
|
119
|
-
{
|
|
119
|
+
{i.response!=null&&<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:e?6:8,paddingVertical:2.5,borderRadius:20,backgroundColor:`${AppColors_1.AppColors.white}29`}}>
|
|
120
120
|
<NetworkIcons_1.SizeIcon color={AppColors_1.AppColors.white}size={e?10:11}/>
|
|
121
121
|
<react_native_1.Text style={[styles_1.default.headerSubTitle,{fontSize:e?10:11}]}>
|
|
122
|
-
{(0,helpers_1.getSize)(
|
|
122
|
+
{(0,helpers_1.getSize)(i.response)}
|
|
123
123
|
</react_native_1.Text>
|
|
124
124
|
</react_native_1.View>}
|
|
125
125
|
</react_native_1.View>
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
</react_native_1.Text>
|
|
166
166
|
</react_native_1.View>
|
|
167
167
|
</react_native_1.View>
|
|
168
|
-
</react_native_1.View>:d==="redux"&&
|
|
168
|
+
</react_native_1.View>:d==="redux"&&b!=null?(()=>{const t=G?.[b],a=t&&typeof t=="object"?Object.keys(t).length:typeof t<"u"?1:0,f=(0,helpers_1.getSize)(t),E=K[b];return<react_native_1.View style={styles_1.default.headerDetailCenter}>
|
|
169
169
|
<react_native_1.View style={styles_1.default.headerDetailRow}>
|
|
170
170
|
<react_native_1.View style={[styles_1.default.headerMethodBadge,{backgroundColor:`${AppColors_1.AppColors.purple}4D`,paddingHorizontal:e?5:6,paddingVertical:e?2:3}]}>
|
|
171
171
|
<react_native_1.Text style={[styles_1.default.headerMethodText,{fontSize:e?9:10}]}>
|
|
@@ -173,7 +173,7 @@
|
|
|
173
173
|
</react_native_1.Text>
|
|
174
174
|
</react_native_1.View>
|
|
175
175
|
<react_native_1.Text style={[styles_1.default.headerDetailTitle,{fontSize:e?13.5:15}]}numberOfLines={1}ellipsizeMode="middle">
|
|
176
|
-
{
|
|
176
|
+
{b}
|
|
177
177
|
</react_native_1.Text>
|
|
178
178
|
</react_native_1.View>
|
|
179
179
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:e?4:6,marginTop:3,paddingVertical:1}}>
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
•
|
|
192
192
|
</react_native_1.Text>
|
|
193
193
|
<react_native_1.Text style={[styles_1.default.headerSubTitle,{fontSize:e?10:11}]}>
|
|
194
|
-
{
|
|
194
|
+
{f}
|
|
195
195
|
</react_native_1.Text>
|
|
196
196
|
{E?.timestamp&&<>
|
|
197
197
|
<react_native_1.Text style={[styles_1.default.headerSubTitle,{opacity:.6,fontSize:e?10:11}]}>
|
|
@@ -205,7 +205,7 @@
|
|
|
205
205
|
</react_native_1.View>
|
|
206
206
|
</>}
|
|
207
207
|
</react_native_1.View>
|
|
208
|
-
</react_native_1.View>})():d==="redux"&&
|
|
208
|
+
</react_native_1.View>})():d==="redux"&&S!=null?<react_native_1.View style={styles_1.default.headerDetailCenter}>
|
|
209
209
|
<react_native_1.View style={styles_1.default.headerDetailRow}>
|
|
210
210
|
<react_native_1.View style={[styles_1.default.headerMethodBadge,{backgroundColor:`${AppColors_1.AppColors.brandPurple}4D`,paddingHorizontal:e?5:6,paddingVertical:e?2:3}]}>
|
|
211
211
|
<react_native_1.Text style={[styles_1.default.headerMethodText,{fontSize:e?9:10}]}>
|
|
@@ -213,13 +213,13 @@
|
|
|
213
213
|
</react_native_1.Text>
|
|
214
214
|
</react_native_1.View>
|
|
215
215
|
<react_native_1.Text style={[styles_1.default.headerDetailTitle,{fontSize:e?13.5:15}]}numberOfLines={1}ellipsizeMode="middle">
|
|
216
|
-
{
|
|
216
|
+
{S.type}
|
|
217
217
|
</react_native_1.Text>
|
|
218
218
|
</react_native_1.View>
|
|
219
219
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:e?4:6,marginTop:3,paddingVertical:1}}>
|
|
220
220
|
<react_native_1.View style={[styles_1.default.headerStatusDot,{backgroundColor:AppColors_1.AppColors.purple,width:e?6:7,height:e?6:7}]}/>
|
|
221
221
|
<react_native_1.Text style={[styles_1.default.headerSubTitle,{fontSize:e?10:11}]}>
|
|
222
|
-
{
|
|
222
|
+
{S.timestamp||"Dispatched"}
|
|
223
223
|
</react_native_1.Text>
|
|
224
224
|
</react_native_1.View>
|
|
225
225
|
</react_native_1.View>:d==="crash"&&p!=null?<react_native_1.View style={styles_1.default.headerDetailCenter}>
|
|
@@ -308,27 +308,27 @@
|
|
|
308
308
|
|
|
309
309
|
<react_native_1.View style={[styles_1.default.headerRight,{flexDirection:"row",alignItems:"center",justifyContent:"flex-end",flexShrink:0,gap:e?4:5}]}>
|
|
310
310
|
|
|
311
|
-
{
|
|
311
|
+
{A?<TouchableScale_1.default onPress={()=>{react_native_1.Alert.alert("Reset All Settings","This restores all module visibility and UI preferences to defaults. Continue?",[{text:"Cancel",style:"cancel"},{text:"Reset",style:"destructive",onPress:Z}])}}hitSlop={15}style={[styles_1.default.closeButtonSquare,{width:h,height:h,borderRadius:e?6:7,backgroundColor:"rgba(245, 158, 11, 0.26)",borderColor:"rgba(252, 211, 77, 0.45)",borderWidth:1}]}>
|
|
312
312
|
<NetworkIcons_1.ResetIcon color={AppColors_1.AppColors.white}size={e?12:14}/>
|
|
313
|
-
</TouchableScale_1.default>:
|
|
313
|
+
</TouchableScale_1.default>:O?null:<>
|
|
314
314
|
|
|
315
|
-
<TouchableScale_1.default accessible={!0}accessibilityRole="button"accessibilityLabel={
|
|
315
|
+
<TouchableScale_1.default accessible={!0}accessibilityRole="button"accessibilityLabel={M?"Disable peek-through":"Enable peek-through"}onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),oe(t=>!t)}}hitSlop={15}style={[styles_1.default.closeButtonSquare,{width:h,height:h,borderRadius:e?6:7,backgroundColor:M?"rgba(6, 182, 212, 0.38)":"rgba(6, 182, 212, 0.18)",borderColor:M?"rgba(103, 232, 249, 0.65)":"rgba(103, 232, 249, 0.35)",borderWidth:1}]}>
|
|
316
316
|
<NetworkIcons_1.EyeIcon color={AppColors_1.AppColors.white}size={e?12:14}/>
|
|
317
317
|
</TouchableScale_1.default>
|
|
318
318
|
|
|
319
319
|
|
|
320
|
-
<TouchableScale_1.default accessible={!0}accessibilityRole="button"accessibilityLabel="Settings"onPress={()=>
|
|
320
|
+
<TouchableScale_1.default accessible={!0}accessibilityRole="button"accessibilityLabel="Settings"onPress={()=>D("main")}hitSlop={15}style={[styles_1.default.closeButtonSquare,{width:h,height:h,borderRadius:e?6:7,backgroundColor:"rgba(168, 85, 247, 0.28)",borderColor:"rgba(216, 180, 254, 0.45)",borderWidth:1}]}>
|
|
321
321
|
<NetworkIcons_1.SettingsIcon color={AppColors_1.AppColors.white}size={e?12:14}/>
|
|
322
322
|
</TouchableScale_1.default>
|
|
323
323
|
</>}
|
|
324
324
|
|
|
325
325
|
|
|
326
|
-
<react_native_1.TouchableOpacity onPress={ee||
|
|
326
|
+
<react_native_1.TouchableOpacity onPress={ee||B}hitSlop={{top:12,bottom:12,left:12,right:12}}activeOpacity={.7}accessibilityRole="button"accessibilityLabel={r("common.minimize","Minimize")}style={[styles_1.default.closeButtonSquare,{width:h,height:h,borderRadius:e?6:7,backgroundColor:"rgba(56, 189, 248, 0.22)",borderColor:"rgba(125, 211, 252, 0.40)",borderWidth:1}]}>
|
|
327
327
|
<NetworkIcons_1.ChevronDownIcon size={e?14:16}color={AppColors_1.AppColors.white}/>
|
|
328
328
|
</react_native_1.TouchableOpacity>
|
|
329
329
|
|
|
330
330
|
|
|
331
|
-
<react_native_1.TouchableOpacity onPress={
|
|
331
|
+
<react_native_1.TouchableOpacity onPress={B}hitSlop={{top:12,bottom:12,left:12,right:12}}activeOpacity={.7}accessibilityRole="button"accessibilityLabel={r("common.close","Close")}style={[styles_1.default.closeButtonSquare,{width:h,height:h,borderRadius:e?6:7,backgroundColor:"rgba(244, 63, 94, 0.28)",borderColor:"rgba(251, 113, 133, 0.48)",borderWidth:1}]}>
|
|
332
332
|
<NetworkIcons_1.CloseWhite size={e?12:14}/>
|
|
333
333
|
</react_native_1.TouchableOpacity>
|
|
334
334
|
</react_native_1.View>
|
|
@@ -337,11 +337,11 @@
|
|
|
337
337
|
</react_native_1.View>
|
|
338
338
|
|
|
339
339
|
|
|
340
|
-
<UpdateAvailableModal_1.UpdateAvailableModal visible={le}latestVersion={Q}onClose={()=>
|
|
340
|
+
<UpdateAvailableModal_1.UpdateAvailableModal visible={le}latestVersion={Q}onClose={()=>R(!1)}/>
|
|
341
341
|
|
|
342
342
|
|
|
343
|
-
<LanguageSelectorModal_1.LanguageSelectorModal visible={ne}onClose={()=>
|
|
343
|
+
<LanguageSelectorModal_1.LanguageSelectorModal visible={ne}onClose={()=>L(!1)}/>
|
|
344
344
|
|
|
345
345
|
|
|
346
|
-
<MediaPreviewModal_1.MediaPreviewModal item={
|
|
346
|
+
<MediaPreviewModal_1.MediaPreviewModal item={H}visible={!!H}onClose={()=>m(null)}onDelete={async t=>{await capture_1.ScreenCapture.deleteMedia(t.uri),C?.().catch(()=>{}),m(null)}}onConvertToGif={async t=>{const a=await capture_1.ScreenCapture.convertToGif(t.uri,{fps:12,width:480});if(a){C?.().catch(()=>{});const f=(0,capture_1.generateCaptureId)("anim","gif");m({id:f,type:"gif",format:"gif",uri:a.uri,filename:a.uri.split("/").pop()||f,sizeBytes:a.sizeBytes,timestamp:a.timestamp,durationMs:a.durationMs})}}}/>
|
|
347
347
|
</>});exports.default=InspectorHeader;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(o,e,r,a){a===void 0&&(a=r);var
|
|
2
|
-
{(react_native_1.Platform.OS==="ios"||react_native_1.Platform.OS==="android")&&
|
|
1
|
+
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(o,e,r,a){a===void 0&&(a=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(o,a,i)}):(function(o,e,r,a){a===void 0&&(a=r),o[a]=e[r]})),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?(function(o,e){Object.defineProperty(o,"default",{enumerable:!0,value:e})}):function(o,e){o.default=e}),__importStar=this&&this.__importStar||(function(){var o=function(e){return o=Object.getOwnPropertyNames||function(r){var a=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(a[a.length]=i);return a},o(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var a=o(e),i=0;i<a.length;i++)a[i]!=="default"&&__createBinding(r,e,a[i]);return __setModuleDefault(r,e),r}})(),__importDefault=this&&this.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importStar(require("react")),react_native_1=require("react-native"),InspectorContext_1=require("./InspectorContext"),ErrorBoundary_1=__importDefault(require("../ErrorBoundary")),ModuleErrorBoundary_1=__importDefault(require("../ModuleErrorBoundary")),FabLauncher_1=__importDefault(require("./FabLauncher")),InspectorHeader_1=__importDefault(require("./InspectorHeader")),SecondaryTelemetryStrip_1=require("./SecondaryTelemetryStrip"),TabBar_1=__importDefault(require("./TabBar")),NetworkTab_1=__importDefault(require("./NetworkTab")),NetworkDetail_1=__importDefault(require("./NetworkDetail")),LogDetail_1=__importDefault(require("./LogDetail")),ConsoleTab_1=__importDefault(require("./ConsoleTab")),AnalyticsTab_1=__importDefault(require("./AnalyticsTab")),AnalyticsDetail_1=__importDefault(require("../AnalyticsDetail")),ReduxTab_1=__importDefault(require("./ReduxTab")),ReduxDetail_1=__importDefault(require("./ReduxDetail")),CrashTab_1=__importDefault(require("./CrashTab")),CrashDetail_1=__importDefault(require("./CrashDetail")),PushTab_1=__importDefault(require("./PushTab")),PushDetail_1=__importDefault(require("./PushDetail")),SocketTab_1=__importDefault(require("./SocketTab")),SocketDetail_1=__importDefault(require("./SocketDetail")),DeviceInfoTab_1=__importDefault(require("./DeviceInfoTab")),StorageTab_1=__importDefault(require("./StorageTab")),DebuggingTab_1=__importDefault(require("./DebuggingTab")),MediaGalleryTab_1=require("./MediaGalleryTab"),SettingsPanel_1=__importDefault(require("./SettingsPanel")),AboutModal_1=__importDefault(require("./AboutModal")),SupportPage_1=require("./SupportPage"),ConfirmationModal_1=require("./ConfirmationModal"),FloatingCaptureWidget_1=require("./FloatingCaptureWidget"),NpmUpdateToast_1=__importDefault(require("./NpmUpdateToast")),NpmStarPrompt_1=__importDefault(require("./NpmStarPrompt")),Toast_1=__importDefault(require("../Toast")),styles_1=__importDefault(require("../../styles")),AppColors_1=require("../../styles/AppColors"),NavigationTracker_1=__importDefault(require("./NavigationTracker")),helpers_1=require("../../helpers"),MainScreen=()=>{const{visible:o,modalAnimationType:e,closeModal:r,modalHeightPercent:a,selected:i,selectedEvent:p,selectedLog:y,selectedReduxSlice:S,selectedReduxAction:w,selectedCrash:_,selectedPush:m,setSelectedPush:C,selectedSocket:g,setSelectedSocket:v,settingsPage:n,isAboutOpen:u,setIsAboutOpen:A,isSupportOpen:s,setIsSupportOpen:k,activeTab:t,isReady:V,enabled:B,isDismissed:M,hasNavigationContext:D,setNavState:T,confirmModal:l,setConfirmModal:N,peekMode:q,peekOpacity:b}=(0,InspectorContext_1.useInspector)(),h=t==="apis"&&i!=null||t==="analytics"&&p!=null||t==="logs"&&y!=null||t==="redux"&&(S!=null||w!=null)||t==="crash"&&_!=null||t==="push"&&m!=null||t==="socket"&&g!=null,d=(0,react_1.useRef)(new react_native_1.Animated.Value(0)).current;(0,react_1.useEffect)(()=>{n!==null&&(d.setValue(0),react_native_1.Animated.spring(d,{toValue:1,friction:8,tension:65,useNativeDriver:!1}).start())},[n!==null]);const c=(0,react_1.useRef)(new react_native_1.Animated.Value(0)).current;(0,react_1.useEffect)(()=>{u&&(c.setValue(0),react_native_1.Animated.spring(c,{toValue:1,friction:8,tension:65,useNativeDriver:!1}).start())},[u]);const f=(0,react_1.useRef)(new react_native_1.Animated.Value(0)).current;return(0,react_1.useEffect)(()=>{s&&(f.setValue(0),react_native_1.Animated.spring(f,{toValue:1,friction:8,tension:65,useNativeDriver:!1}).start())},[s]),<>
|
|
2
|
+
{(react_native_1.Platform.OS==="ios"||react_native_1.Platform.OS==="android")&&B&&!M&&!o&&<FabLauncher_1.default/>}
|
|
3
3
|
<react_native_1.Modal visible={o}animationType={e}transparent statusBarTranslucent={!0}onRequestClose={r}>
|
|
4
4
|
<ErrorBoundary_1.default onClose={r}>
|
|
5
5
|
<react_native_1.View style={[styles_1.default.modalBackdrop,{zIndex:999999,elevation:999999}]}>
|
|
6
6
|
<react_native_1.Pressable style={styles_1.default.modalBackdropPressable}onPress={r}/>
|
|
7
|
-
<react_native_1.View style={[styles_1.default.modalContentCard,{height:`${a}%`,borderTopLeftRadius:a>=100?0:20,borderTopRightRadius:a>=100?0:20,
|
|
7
|
+
<react_native_1.View style={[styles_1.default.modalContentCard,{height:`${a}%`,borderTopLeftRadius:a>=100?0:20,borderTopRightRadius:a>=100?0:20,opacity:q?Math.max(.05,Math.min(1,typeof b=="number"?b:.75)):1,zIndex:9999999,elevation:999999}]}>
|
|
8
8
|
<react_native_1.StatusBar translucent backgroundColor="transparent"barStyle="light-content"/>
|
|
9
9
|
|
|
10
10
|
<InspectorHeader_1.default/>
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
|
|
13
13
|
<react_native_1.View style={{flex:1,overflow:"hidden",backgroundColor:AppColors_1.AppColors.grayBackground}}>
|
|
14
14
|
|
|
15
|
-
<react_native_1.View style={{flex:1}}pointerEvents={
|
|
15
|
+
<react_native_1.View style={{flex:1}}pointerEvents={h||n!==null||u||s?"none":"auto"}>
|
|
16
16
|
<TabBar_1.default/>
|
|
17
|
-
{
|
|
17
|
+
{V?<react_native_1.View style={{flex:1}}>
|
|
18
18
|
{t==="apis"&&<ModuleErrorBoundary_1.default moduleName="Network API Monitor">
|
|
19
19
|
<NetworkTab_1.default/>
|
|
20
20
|
</ModuleErrorBoundary_1.default>}
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
</react_native_1.View>
|
|
53
53
|
|
|
54
54
|
|
|
55
|
-
{
|
|
56
|
-
{t==="apis"&&
|
|
55
|
+
{h&&<react_native_1.View style={[react_native_1.StyleSheet.absoluteFill,{backgroundColor:AppColors_1.AppColors.contentBg,zIndex:10}]}>
|
|
56
|
+
{t==="apis"&&i!=null&&<ModuleErrorBoundary_1.default moduleName="Network Request Details">
|
|
57
57
|
<NetworkDetail_1.default/>
|
|
58
58
|
</ModuleErrorBoundary_1.default>}
|
|
59
59
|
{t==="analytics"&&p!=null&&<ModuleErrorBoundary_1.default moduleName="Analytics Event Details">
|
|
@@ -68,11 +68,11 @@
|
|
|
68
68
|
{t==="crash"&&_!=null&&<ModuleErrorBoundary_1.default moduleName="Crash Log Details">
|
|
69
69
|
<CrashDetail_1.default/>
|
|
70
70
|
</ModuleErrorBoundary_1.default>}
|
|
71
|
-
{t==="push"&&
|
|
72
|
-
<PushDetail_1.default item={
|
|
71
|
+
{t==="push"&&m!=null&&<ModuleErrorBoundary_1.default moduleName="Push Notification Details">
|
|
72
|
+
<PushDetail_1.default item={m}onClose={()=>C(null)}/>
|
|
73
73
|
</ModuleErrorBoundary_1.default>}
|
|
74
|
-
{t==="socket"&&
|
|
75
|
-
<SocketDetail_1.default item={
|
|
74
|
+
{t==="socket"&&g!=null&&<ModuleErrorBoundary_1.default moduleName="WebSocket & Socket.IO Details">
|
|
75
|
+
<SocketDetail_1.default item={g}onClose={()=>v(null)}/>
|
|
76
76
|
</ModuleErrorBoundary_1.default>}
|
|
77
77
|
</react_native_1.View>}
|
|
78
78
|
|
|
@@ -86,14 +86,14 @@
|
|
|
86
86
|
|
|
87
87
|
{u&&<react_native_1.Animated.View style={[react_native_1.StyleSheet.absoluteFill,{backgroundColor:AppColors_1.AppColors.primaryLight,opacity:c,transform:[{translateY:c.interpolate({inputRange:[0,1],outputRange:[24,0]})}]}]}>
|
|
88
88
|
<ModuleErrorBoundary_1.default moduleName="About & Diagnostics">
|
|
89
|
-
<AboutModal_1.default onClose={()=>
|
|
89
|
+
<AboutModal_1.default onClose={()=>A(!1)}/>
|
|
90
90
|
</ModuleErrorBoundary_1.default>
|
|
91
91
|
</react_native_1.Animated.View>}
|
|
92
92
|
|
|
93
93
|
|
|
94
94
|
{s&&<react_native_1.Animated.View style={[react_native_1.StyleSheet.absoluteFill,{backgroundColor:AppColors_1.AppColors.primaryLight,opacity:f,transform:[{translateY:f.interpolate({inputRange:[0,1],outputRange:[24,0]})}]}]}>
|
|
95
95
|
<ModuleErrorBoundary_1.default moduleName="Support & Community">
|
|
96
|
-
<SupportPage_1.SupportPage onClose={()=>
|
|
96
|
+
<SupportPage_1.SupportPage onClose={()=>k(!1)}/>
|
|
97
97
|
</ModuleErrorBoundary_1.default>
|
|
98
98
|
</react_native_1.Animated.View>}
|
|
99
99
|
</react_native_1.View>
|
|
@@ -111,11 +111,11 @@
|
|
|
111
111
|
<FloatingCaptureWidget_1.FloatingCaptureWidget/>
|
|
112
112
|
|
|
113
113
|
|
|
114
|
-
<ConfirmationModal_1.ConfirmationModal visible={
|
|
114
|
+
<ConfirmationModal_1.ConfirmationModal visible={l.visible}title={l.title}message={l.message}confirmText={l.confirmText}cancelText={l.cancelText}isDestructive={!0}icon="trash"onConfirm={l.onConfirm}onCancel={()=>N(R=>({...R,visible:!1}))}/>
|
|
115
115
|
</react_native_1.View>
|
|
116
116
|
</react_native_1.View>
|
|
117
117
|
</ErrorBoundary_1.default>
|
|
118
|
-
{
|
|
118
|
+
{D&&<NavigationTracker_1.default onStateChange={T}/>}
|
|
119
119
|
</react_native_1.Modal>
|
|
120
120
|
</>},MainScreenSkeleton=react_1.default.memo(function(){const e=(0,react_1.useRef)(new react_native_1.Animated.Value(.35)).current;return(0,react_1.useEffect)(()=>{const r=react_native_1.Animated.loop(react_native_1.Animated.sequence([react_native_1.Animated.timing(e,{toValue:.85,duration:750,useNativeDriver:!1}),react_native_1.Animated.timing(e,{toValue:.35,duration:750,useNativeDriver:!1})]));return r.start(),()=>r.stop()},[e]),<react_native_1.View style={skeletonStyles.container}>
|
|
121
121
|
|