react-native-inapp-inspector 2.5.10 → 2.5.12
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 +0 -8
- package/README.de.md +0 -8
- package/README.es.md +0 -8
- package/README.fr.md +0 -8
- package/README.hi.md +0 -8
- package/README.ja.md +0 -8
- package/README.ko.md +0 -8
- package/README.md +54 -26
- package/README.pt-BR.md +0 -8
- package/README.ru.md +0 -8
- package/README.zh-CN.md +0 -8
- package/dist/commonjs/components/ConsoleLogCard.js +32 -26
- package/dist/commonjs/components/ErrorBoundary.js +1 -1
- package/dist/commonjs/components/Inspector/ConsoleTab.js +19 -14
- package/dist/commonjs/components/Inspector/FloatingCaptureWidget.js +4 -4
- package/dist/commonjs/components/Inspector/InspectorHeader.js +73 -65
- package/dist/commonjs/components/Inspector/MainScreen.js +9 -6
- package/dist/commonjs/components/Inspector/MediaGalleryTab.js +187 -90
- package/dist/commonjs/components/Inspector/NetworkDetail.js +11 -8
- package/dist/commonjs/components/Inspector/NetworkTab.js +33 -31
- package/dist/commonjs/components/Inspector/PerformanceTab.d.ts +2 -0
- package/dist/commonjs/components/Inspector/PerformanceTab.js +652 -0
- package/dist/commonjs/components/Inspector/SettingsPanel.js +346 -245
- package/dist/commonjs/components/Inspector/TabBar.js +17 -16
- package/dist/commonjs/components/LogCard.js +11 -8
- package/dist/commonjs/components/ModuleErrorBoundary.js +1 -1
- package/dist/commonjs/components/NetworkIcons.d.ts +9 -0
- package/dist/commonjs/components/NetworkIcons.js +51 -6
- package/dist/commonjs/constants/index.d.ts +1 -0
- package/dist/commonjs/constants/index.js +1 -1
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -1
- package/dist/commonjs/customHooks/crashHandler.d.ts +9 -1
- package/dist/commonjs/customHooks/crashHandler.js +4 -4
- package/dist/commonjs/helpers/index.d.ts +3 -0
- package/dist/commonjs/helpers/index.js +8 -6
- package/dist/commonjs/helpers/performanceSampler.d.ts +88 -0
- package/dist/commonjs/helpers/performanceSampler.js +1 -0
- package/dist/commonjs/helpers/remoteConfig.d.ts +6 -0
- package/dist/commonjs/helpers/remoteConfig.js +1 -1
- package/dist/commonjs/helpers/telemetry.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.d.ts +4 -2
- package/dist/commonjs/index.js +3 -3
- package/dist/commonjs/styles/index.js +1 -1
- package/dist/commonjs/types/enums.d.ts +1 -0
- package/dist/commonjs/types/enums.js +1 -1
- package/dist/commonjs/types/interfaces.d.ts +28 -0
- package/dist/esm/components/ConsoleLogCard.js +67 -61
- package/dist/esm/components/ErrorBoundary.js +10 -10
- package/dist/esm/components/Inspector/ConsoleTab.js +33 -28
- package/dist/esm/components/Inspector/FloatingCaptureWidget.js +22 -22
- package/dist/esm/components/Inspector/InspectorHeader.js +194 -186
- package/dist/esm/components/Inspector/MainScreen.js +61 -58
- package/dist/esm/components/Inspector/MediaGalleryTab.js +254 -157
- package/dist/esm/components/Inspector/NetworkDetail.js +62 -59
- package/dist/esm/components/Inspector/NetworkTab.js +39 -37
- package/dist/esm/components/Inspector/PerformanceTab.d.ts +2 -0
- package/dist/esm/components/Inspector/PerformanceTab.js +652 -0
- package/dist/esm/components/Inspector/SettingsPanel.js +407 -306
- package/dist/esm/components/Inspector/TabBar.js +4 -3
- package/dist/esm/components/LogCard.js +37 -34
- package/dist/esm/components/ModuleErrorBoundary.js +1 -1
- package/dist/esm/components/NetworkIcons.d.ts +9 -0
- package/dist/esm/components/NetworkIcons.js +48 -3
- package/dist/esm/constants/index.d.ts +1 -0
- package/dist/esm/constants/index.js +1 -1
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/customHooks/crashHandler.d.ts +9 -1
- package/dist/esm/customHooks/crashHandler.js +6 -6
- package/dist/esm/helpers/index.d.ts +3 -0
- package/dist/esm/helpers/index.js +8 -6
- package/dist/esm/helpers/performanceSampler.d.ts +88 -0
- package/dist/esm/helpers/performanceSampler.js +1 -0
- package/dist/esm/helpers/remoteConfig.d.ts +6 -0
- package/dist/esm/helpers/remoteConfig.js +1 -1
- package/dist/esm/helpers/telemetry.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.d.ts +4 -2
- package/dist/esm/index.js +8 -8
- package/dist/esm/styles/index.js +1 -1
- package/dist/esm/types/enums.d.ts +1 -0
- package/dist/esm/types/enums.js +1 -1
- package/dist/esm/types/interfaces.d.ts +28 -0
- package/package.json +24 -1
|
@@ -1,330 +1,338 @@
|
|
|
1
|
-
import
|
|
2
|
-
<S style={[i.headerGradient,{minHeight:(e?44:48)+
|
|
1
|
+
import L,{useMemo as ee}from"react";import{Alert as qe,Linking as _e,Platform as ne,Pressable as Qe,StatusBar as Je,Text as T,TouchableOpacity as Te,useWindowDimensions as Ke,View as S}from"react-native";import Xe from"react-native-linear-gradient";import{useInspector as Ye}from"./InspectorContext";import E from"../TouchableScale";import{BrandCircleIcon as Ze}from"../BrandCircleIcon";import i from"../../styles";import{AppColors as t}from"../../styles/AppColors";import{AppFonts as I}from"../../styles/AppFonts";import{METHOD_COLORS as et}from"../../constants";import{LIB_VERSION as se}from"../../constants";import{getStatusColor as de,formatTime as tt,formatTimeShort as Ce,getSize as ze,formatByteSize as it,getAppVersionAndBuild as rt,showToast as O}from"../../helpers";import{triggerNativeHaptic as H}from"../../native/NativeInspector";import{ScreenCapture as F,generateCaptureId as ce}from"../../capture";import{MediaPreviewModal as St}from"./MediaPreviewModal";import{LanguageSelectorModal as Tt}from"./LanguageSelectorModal";import Ct from"../CountryFlag";import{WhiteBackNavigation as Vt,SettingsIcon as Dt,CloseWhite as Rt,ChevronDownIcon as Ve,ClockIcon as _,SizeIcon as De,AppleIcon as It,AndroidIcon as Mt,NpmIcon as $t,ResetIcon as Bt,InfoCircleIcon as Lt,EyeIcon as Wt}from"../NetworkIcons";import{useTranslation as vt,SUPPORTED_LANGUAGES as Re,getLanguage as Ht}from"../../i18n";const Ot=L.memo(()=>{const{t:D,language:ue}=vt(),{modalHeightPercent:te,appIcon:Pt,selected:R,setSelected:Ie,selectedEvent:B,setSelectedEvent:Me,selectedLog:W,setSelectedLog:$e,selectedReduxSlice:U,setSelectedReduxSlice:Be,selectedReduxAction:Q,setSelectedReduxAction:Le,reduxState:We,reduxLastActionMap:ve,clearAnim:At,runClearAllWithAnimation:Et,settingsPage:P,setSettingsPage:ie,isAboutOpen:re,setIsAboutOpen:he,resetToDefaults:He,closeModal:ge,minimizeInspector:Oe,detailTitle:Pe,activeTab:V,environment:pe,selectedCrash:M,setSelectedCrash:Ae,selectedPush:k,setSelectedPush:Ee,selectedSocket:z,setSelectedSocket:Fe,refreshMediaCount:N,peekMode:oe,setPeekMode:Ue,previewMediaItem:me,setPreviewMediaItem:j}=Ye(),{width:J}=Ke(),e=J<360,G=J<400,[Ft,Ut]=L.useState(!1),[Ne,fe]=L.useState(!1),[je]=L.useState(()=>rt().formatted),be=ee(()=>{const w=ue||Ht();return Re.find(C=>C.code===w)||Re[0]},[ue]),[K,X]=L.useState(!1),[Nt,le]=L.useState(0),A=L.useRef(null);L.useEffect(()=>{F.isRecording().then(w=>{X(w)}).catch(()=>{})},[]),L.useEffect(()=>(K?(le(0),A.current=setInterval(()=>{le(w=>w+1)},1e3)):(A.current&&(clearInterval(A.current),A.current=null),le(0)),()=>{A.current&&clearInterval(A.current)}),[K]);const jt=L.useCallback(async()=>{try{H("light");const w=await F.takeScreenshot({format:"png",quality:.9,hideInspector:!0});if(w){H("success");const C=ce("screenshot",w.format||"png"),v={id:C,type:"image",format:w.format,uri:w.uri,filename:w.uri.split("/").pop()||C,sizeBytes:w.sizeBytes,timestamp:w.timestamp,width:w.width,height:w.height};j(v),N?.().catch(()=>{}),O(D("header.screenshotCaptured"))}else O(D("header.screenshotFailed"))}catch{O(D("header.screenshotError"))}},[N,D]),Gt=L.useCallback(async()=>{try{if(K){H("medium");const w=await F.stopRecording();if(X(!1),w){H("success");const C=ce("video",w.format),v={id:C,type:w.format==="gif"?"gif":"video",format:w.format,uri:w.uri,filename:w.uri.split("/").pop()||C,sizeBytes:w.sizeBytes,timestamp:w.timestamp,durationMs:w.durationMs,width:w.width,height:w.height,hasAudio:w.hasAudio};j(v),N?.().catch(()=>{}),O(D("header.recordingSaved",{duration:(w.durationMs/1e3).toFixed(1)}))}}else H("medium"),await F.startRecording({fps:24,audioSource:"none"})?(X(!0),O(D("header.recordingStarted"))):O(D("header.recordingStartFailed"))}catch{O(D("header.recordingError")),X(!1)}},[K,D]),qt=w=>{const C=Math.floor(w/60),v=w%60;return`${C.toString().padStart(2,"0")}:${v.toString().padStart(2,"0")}`},_t=ee(()=>{const w=(pe||(__DEV__?"DEV":"PROD")).trim(),C=w.toUpperCase();return C==="DEV"||C.includes("DEV")||C==="LOCAL"?{label:w,bg:`${t.emerald500}40`,border:`${t.emerald400}8C`,text:t.mintGreenBorder}:C==="UAT"||C==="QA"||C==="TEST"?{label:w,bg:`${t.amber500}47`,border:`${t.amber400}99`,text:t.amberWarmBorder}:C==="PREPROD"||C==="STAGE"||C==="STAGING"?{label:w,bg:`${t.purple500}47`,border:`${t.purple400}99`,text:t.violetSoftBorder}:{label:w,bg:`${t.rose500}40`,border:`${t.roseBorder}8C`,text:t.errorBorder}},[pe]),Y=V==="apis"&&R!=null||V==="analytics"&&B!=null||V==="logs"&&W!=null||V==="redux"&&(U!=null||Q!=null)||V==="crash"&&M!=null||V==="push"&&k!=null||V==="socket"&&z!=null,Z=P!==null,ae=Y||Z||re,Ge=ee(()=>{switch(P){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"}},[P]),ye=ee(()=>ne.OS==="ios"?te>=98?J>=390?50:44:0:ne.OS==="android"&&te>=98?Je.currentHeight||24:0,[te,J]),$=e?24:G?25.5:26,Qt=e?36:G?38:40;return<>
|
|
2
|
+
<S style={[i.headerGradient,{minHeight:(e?44:48)+ye}]}>
|
|
3
3
|
|
|
4
4
|
<Xe colors={[t.indigo600,t.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
|
-
<S style={{paddingTop:
|
|
6
|
-
<S style={[i.header,{width:"100%",justifyContent:"space-between",paddingHorizontal:e?10
|
|
7
|
-
<S style={{flexDirection:"row",alignItems:"center",gap:e?
|
|
8
|
-
{ae&&<
|
|
9
|
-
<S style={{position:"absolute",width:e?
|
|
5
|
+
<S style={{paddingTop:ye,width:"100%"}}>
|
|
6
|
+
<S style={[i.header,{width:"100%",justifyContent:"space-between",paddingHorizontal:e?8:10,paddingVertical:5,minHeight:e?44:48}]}>
|
|
7
|
+
<S style={{flexDirection:"row",alignItems:"center",gap:e?6:8,flex:Y?void 0:1,flexShrink:Y?0:1,minWidth:0}}>
|
|
8
|
+
{ae&&<E onPress={()=>{if(re){he(!1);return}if(Z){ie(P==="main"?null:"main");return}Ie(null),Me(null),$e(null),Be(null),Le(null),Ae(null),Ee(null),Fe(null)}}hitSlop={15}style={{width:e?30:34,height:e?30:34,borderRadius:e?15:17,alignItems:"center",justifyContent:"center",backgroundColor:`${t.white}2E`,borderWidth:1,borderColor:`${t.white}4D`,flexShrink:0}}>
|
|
9
|
+
<S style={{position:"absolute",width:e?38:42,height:e?38:42,borderRadius:21,backgroundColor:`${t.white}1A`}}/>
|
|
10
10
|
<Vt/>
|
|
11
|
-
</
|
|
11
|
+
</E>}
|
|
12
12
|
|
|
13
|
-
{
|
|
13
|
+
{re?<S style={{gap:2.5,flex:1,minWidth:0,marginRight:6,justifyContent:"center"}}>
|
|
14
14
|
<S style={{flexDirection:"row",alignItems:"center",gap:6}}>
|
|
15
|
-
<
|
|
15
|
+
<T style={{fontFamily:I.interBold,fontSize:e?14.5:16,lineHeight:e?18:20,color:t.white,letterSpacing:-.2}}numberOfLines={1}>
|
|
16
16
|
About & Specs
|
|
17
|
-
</
|
|
17
|
+
</T>
|
|
18
18
|
<S style={{backgroundColor:`${t.white}26`,paddingHorizontal:e?5:6,paddingVertical:2,borderRadius:8,borderWidth:1,borderColor:`${t.white}20`}}>
|
|
19
|
-
<
|
|
20
|
-
v{
|
|
21
|
-
</
|
|
19
|
+
<T style={{fontFamily:I.interBold,fontSize:e?8.5:9.5,lineHeight:12,color:t.white}}>
|
|
20
|
+
v{se}
|
|
21
|
+
</T>
|
|
22
22
|
</S>
|
|
23
23
|
</S>
|
|
24
|
-
<
|
|
24
|
+
<T style={{fontFamily:I.interRegular,fontSize:e?10:11,lineHeight:e?13.5:14.5,color:`${t.white}CC`,marginTop:.5}}numberOfLines={1}ellipsizeMode="tail">
|
|
25
25
|
Package info, runtime specs & diagnostic payload
|
|
26
|
-
</
|
|
27
|
-
</S>:
|
|
26
|
+
</T>
|
|
27
|
+
</S>:Z?<S style={{gap:2.5,flex:1,minWidth:0,marginRight:6,justifyContent:"center"}}>
|
|
28
28
|
<S style={{flexDirection:"row",alignItems:"center",gap:6}}>
|
|
29
|
-
<
|
|
29
|
+
<T style={{fontFamily:I.interBold,fontSize:e?14.5:16,lineHeight:e?19:21,color:t.white,letterSpacing:-.2}}numberOfLines={1}>
|
|
30
30
|
{Ge}
|
|
31
|
-
</
|
|
32
|
-
{
|
|
33
|
-
<
|
|
34
|
-
v{
|
|
35
|
-
</
|
|
31
|
+
</T>
|
|
32
|
+
{P==="main"&&<S style={{backgroundColor:`${t.white}26`,paddingHorizontal:e?5:6,paddingVertical:2,borderRadius:8,borderWidth:1,borderColor:`${t.white}20`}}>
|
|
33
|
+
<T style={{fontFamily:I.interBold,fontSize:e?8.5:9.5,lineHeight:12,color:t.white}}>
|
|
34
|
+
v{se}
|
|
35
|
+
</T>
|
|
36
36
|
</S>}
|
|
37
37
|
</S>
|
|
38
|
-
<
|
|
39
|
-
{
|
|
40
|
-
</
|
|
41
|
-
</S>:ae?null:<S style={{flexDirection:"row",alignItems:"center",gap:e?8
|
|
42
|
-
<Ze size={e?
|
|
38
|
+
<T style={{fontFamily:I.interRegular,fontSize:e?10:11,lineHeight:e?14:15,color:`${t.white}CC`,marginTop:2}}numberOfLines={1}ellipsizeMode="tail">
|
|
39
|
+
{P==="main"?"Manage modules and preferences":"Configure module parameters"}
|
|
40
|
+
</T>
|
|
41
|
+
</S>:ae?null:<S style={{flexDirection:"row",alignItems:"center",gap:e?7:8.5,flex:1,minWidth:0,marginRight:6}}>
|
|
42
|
+
<Ze size={e?38:G?40:42}/>
|
|
43
43
|
<S style={{gap:3,flex:1,minWidth:0,justifyContent:"center"}}>
|
|
44
44
|
|
|
45
|
-
<
|
|
45
|
+
<T style={[i.headerTitle,{fontFamily:I.interBold,fontWeight:"700",fontSize:e?12.5:G?13:14,lineHeight:e?17:G?18:19,color:t.white,letterSpacing:-.2,paddingBottom:0}]}numberOfLines={1}ellipsizeMode="tail">
|
|
46
46
|
react-native-inapp-inspector
|
|
47
|
-
</
|
|
47
|
+
</T>
|
|
48
48
|
|
|
49
49
|
|
|
50
|
-
<S style={{flexDirection:"row",alignItems:"center",gap:4
|
|
50
|
+
<S style={{flexDirection:"row",alignItems:"center",gap:4,minWidth:0,marginTop:2,flexWrap:"nowrap",overflow:"hidden"}}>
|
|
51
51
|
|
|
52
|
-
<
|
|
53
|
-
<Ct code={
|
|
54
|
-
<
|
|
55
|
-
{
|
|
56
|
-
</
|
|
57
|
-
<Ve size={6
|
|
58
|
-
</
|
|
52
|
+
<E onPress={()=>{H("light"),fe(!0)}}hitSlop={6}accessible={!0}accessibilityRole="button"accessibilityLabel={D("settings.general.selectLanguage","Select Language")}style={{flexDirection:"row",alignItems:"center",backgroundColor:`${t.white}24`,borderRadius:5,paddingHorizontal:5,paddingVertical:1.5,gap:3,borderWidth:1,borderColor:`${t.white}38`,flexShrink:0}}>
|
|
53
|
+
<Ct code={be?.code||"en"}size={9}borderRadius={2}/>
|
|
54
|
+
<T style={{fontFamily:I.interBold,fontSize:8,lineHeight:10.5,color:t.white,letterSpacing:.2}}numberOfLines={1}>
|
|
55
|
+
{be?.code?.toUpperCase()||"EN"}
|
|
56
|
+
</T>
|
|
57
|
+
<Ve size={6}color={`${t.white}CC`}/>
|
|
58
|
+
</E>
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
<S style={{flexDirection:"row",alignItems:"center",backgroundColor:`${t.white}1F`,borderRadius:5,paddingHorizontal:5
|
|
62
|
-
{
|
|
63
|
-
<
|
|
61
|
+
<S style={{flexDirection:"row",alignItems:"center",backgroundColor:`${t.white}1F`,borderRadius:5,paddingHorizontal:5,paddingVertical:1.5,gap:3,borderWidth:1,borderColor:`${t.white}2E`,flexShrink:1,minWidth:0}}>
|
|
62
|
+
{ne.OS==="ios"?<It color={`${t.white}E6`}size={8.5}/>:<Mt color={`${t.white}E6`}size={8.5}/>}
|
|
63
|
+
<T style={{fontFamily:I.interMedium,fontSize:8,lineHeight:10.5,color:`${t.white}EB`,letterSpacing:.1}}numberOfLines={1}ellipsizeMode="tail">
|
|
64
64
|
{je}
|
|
65
|
-
</
|
|
65
|
+
</T>
|
|
66
66
|
</S>
|
|
67
67
|
|
|
68
68
|
|
|
69
|
-
<Qe onPress={()=>{
|
|
70
|
-
<$t size={
|
|
71
|
-
<
|
|
72
|
-
v{
|
|
73
|
-
</
|
|
69
|
+
<Qe onPress={()=>{_e.openURL("https://www.npmjs.com/package/react-native-inapp-inspector").catch(()=>{})}}style={{flexDirection:"row",alignItems:"center",backgroundColor:`${t.white}1F`,borderRadius:5,paddingHorizontal:5.5,paddingVertical:1.5,gap:3,borderWidth:1,borderColor:`${t.white}2E`,flexShrink:0}}>
|
|
70
|
+
<$t size={8.5}color={t.npmRedLight}/>
|
|
71
|
+
<T style={{fontFamily:I.interMedium,fontSize:8,lineHeight:10.5,color:`${t.white}EB`,letterSpacing:.1}}>
|
|
72
|
+
v{se}
|
|
73
|
+
</T>
|
|
74
74
|
</Qe>
|
|
75
75
|
</S>
|
|
76
76
|
</S>
|
|
77
77
|
</S>}
|
|
78
78
|
</S>
|
|
79
79
|
|
|
80
|
-
{
|
|
81
|
-
{V==="apis"&&
|
|
80
|
+
{Y&&<S style={[i.headerCenter,{flex:1,minWidth:0,flexShrink:1,paddingHorizontal:e?3:6,overflow:"hidden"}]}>
|
|
81
|
+
{V==="apis"&&R!=null?<S style={i.headerDetailCenter}>
|
|
82
82
|
<S style={i.headerDetailRow}>
|
|
83
|
-
<S style={[i.headerMethodBadge,{backgroundColor:et[
|
|
84
|
-
<
|
|
85
|
-
{
|
|
86
|
-
</
|
|
83
|
+
<S style={[i.headerMethodBadge,{backgroundColor:et[R.method]??t.grayText,paddingHorizontal:e?5:6,paddingVertical:e?2:3,flexShrink:0}]}>
|
|
84
|
+
<T style={[i.headerMethodText,{fontSize:e?9:10}]}>
|
|
85
|
+
{R.method}
|
|
86
|
+
</T>
|
|
87
87
|
</S>
|
|
88
|
-
<
|
|
89
|
-
{
|
|
90
|
-
</
|
|
88
|
+
<T style={[i.headerDetailTitle,{fontSize:e?13:14.5,flex:1,minWidth:0,flexShrink:1}]}numberOfLines={1}ellipsizeMode="middle">
|
|
89
|
+
{Pe}
|
|
90
|
+
</T>
|
|
91
91
|
</S>
|
|
92
92
|
<S style={{flexDirection:"row",alignItems:"center",gap:e?4:6,marginTop:3,paddingVertical:1}}>
|
|
93
|
-
<S style={{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:e?6:8,paddingVertical:2.5,borderRadius:20,backgroundColor:`${
|
|
94
|
-
<S style={[i.headerStatusDot,{backgroundColor:
|
|
95
|
-
<
|
|
96
|
-
{
|
|
97
|
-
</
|
|
93
|
+
<S style={{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:e?6:8,paddingVertical:2.5,borderRadius:20,backgroundColor:`${de(R.status)}26`,borderWidth:1,borderColor:`${de(R.status)}55`}}>
|
|
94
|
+
<S style={[i.headerStatusDot,{backgroundColor:de(R.status),width:e?6:7,height:e?6:7}]}/>
|
|
95
|
+
<T style={[i.headerSubTitle,{fontFamily:I.interBold,fontSize:e?10:11}]}>
|
|
96
|
+
{R.status===0?"Failed":R.status??"Pending"}
|
|
97
|
+
</T>
|
|
98
98
|
</S>
|
|
99
99
|
<S style={{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:e?6:8,paddingVertical:2.5,borderRadius:20,backgroundColor:`${t.white}29`}}>
|
|
100
100
|
<_ color={t.white}size={e?10:11}/>
|
|
101
|
-
<
|
|
102
|
-
{
|
|
103
|
-
</
|
|
101
|
+
<T style={[i.headerSubTitle,{fontSize:e?10:11}]}>
|
|
102
|
+
{R.duration!=null?`${R.duration}ms`:"\u2014"}
|
|
103
|
+
</T>
|
|
104
104
|
</S>
|
|
105
|
-
{
|
|
105
|
+
{R.response!=null&&<S style={{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:e?6:8,paddingVertical:2.5,borderRadius:20,backgroundColor:`${t.white}29`}}>
|
|
106
106
|
<De color={t.white}size={e?10:11}/>
|
|
107
|
-
<
|
|
108
|
-
{
|
|
109
|
-
</
|
|
107
|
+
<T style={[i.headerSubTitle,{fontSize:e?10:11}]}>
|
|
108
|
+
{ze(R.response)}
|
|
109
|
+
</T>
|
|
110
110
|
</S>}
|
|
111
111
|
</S>
|
|
112
|
-
</S>:V==="analytics"
|
|
112
|
+
</S>:V==="analytics"&&B!=null?<S style={i.headerDetailCenter}>
|
|
113
113
|
<S style={i.headerDetailRow}>
|
|
114
|
-
<S style={[i.headerMethodBadge,{backgroundColor
|
|
115
|
-
<
|
|
116
|
-
{
|
|
117
|
-
</
|
|
114
|
+
<S style={[i.headerMethodBadge,{backgroundColor:B.source==="firebase"?`${t.firebaseOrange}4D`:`${t.purple}4D`,paddingHorizontal:e?5:6,paddingVertical:e?2:3,flexShrink:0}]}>
|
|
115
|
+
<T style={[i.headerMethodText,{fontSize:e?9:10}]}>
|
|
116
|
+
{B.source==="firebase"?"FB":"MAN"}
|
|
117
|
+
</T>
|
|
118
118
|
</S>
|
|
119
|
-
<
|
|
120
|
-
#{
|
|
121
|
-
{
|
|
122
|
-
</
|
|
119
|
+
<T style={[i.headerDetailTitle,{fontSize:e?13:14.5,flex:1,minWidth:0,flexShrink:1}]}numberOfLines={1}ellipsizeMode="middle">
|
|
120
|
+
#{B.id!=null?B.id+1:1}{" "}
|
|
121
|
+
{B.name}
|
|
122
|
+
</T>
|
|
123
123
|
</S>
|
|
124
124
|
<S style={{flexDirection:"row",alignItems:"center",gap:e?4:6,marginTop:3,paddingVertical:1}}>
|
|
125
|
-
<S style={[i.headerStatusDot,{backgroundColor
|
|
126
|
-
<
|
|
127
|
-
{Object.keys(
|
|
128
|
-
{Object.keys(
|
|
125
|
+
<S style={[i.headerStatusDot,{backgroundColor:B.source==="firebase"?t.firebaseOrange:t.purple,width:e?6:7,height:e?6:7}]}/>
|
|
126
|
+
<T style={[i.headerSubTitle,{fontSize:e?10:11}]}>
|
|
127
|
+
{Object.keys(B.params).length} param
|
|
128
|
+
{Object.keys(B.params).length!==1?"s":""}
|
|
129
129
|
{" \xB7 "}
|
|
130
|
-
{
|
|
131
|
-
</
|
|
130
|
+
{B.source}
|
|
131
|
+
</T>
|
|
132
132
|
</S>
|
|
133
|
-
</S>:V==="logs"&&
|
|
133
|
+
</S>:V==="logs"&&W!=null?<S style={i.headerDetailCenter}>
|
|
134
134
|
<S style={i.headerDetailRow}>
|
|
135
|
-
<S style={[i.headerMethodBadge,{backgroundColor:
|
|
136
|
-
<
|
|
137
|
-
{
|
|
138
|
-
</
|
|
135
|
+
<S style={[i.headerMethodBadge,{backgroundColor:W.type==="error"?`${t.errorColor}4D`:W.type==="warn"?`${t.lightOrange}4D`:`${t.purple}4D`,paddingHorizontal:e?5:6,paddingVertical:e?2:3,flexShrink:0}]}>
|
|
136
|
+
<T style={[i.headerMethodText,{fontSize:e?9:10}]}>
|
|
137
|
+
{W.type.toUpperCase()}
|
|
138
|
+
</T>
|
|
139
139
|
</S>
|
|
140
|
-
<
|
|
141
|
-
#{
|
|
140
|
+
<T style={[i.headerDetailTitle,{fontSize:e?13:14.5,flex:1,minWidth:0,flexShrink:1}]}numberOfLines={1}ellipsizeMode="middle">
|
|
141
|
+
#{W.id!=null?W.id+1:1}{" "}
|
|
142
142
|
console.
|
|
143
|
-
{
|
|
144
|
-
</
|
|
143
|
+
{W.sourceMethod||W.type||"log"}
|
|
144
|
+
</T>
|
|
145
145
|
</S>
|
|
146
146
|
<S style={{flexDirection:"row",alignItems:"center",gap:e?4:6,marginTop:3,paddingVertical:1}}>
|
|
147
147
|
<S style={{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:e?6:8,paddingVertical:2.5,borderRadius:20,backgroundColor:`${t.white}29`}}>
|
|
148
148
|
<_ color={t.white}size={e?10:11}/>
|
|
149
|
-
<
|
|
150
|
-
{tt(
|
|
151
|
-
</
|
|
149
|
+
<T style={[i.headerSubTitle,{fontSize:e?10:11}]}>
|
|
150
|
+
{tt(W.timestamp)}
|
|
151
|
+
</T>
|
|
152
152
|
</S>
|
|
153
153
|
</S>
|
|
154
|
-
</S>:V==="redux"&&
|
|
154
|
+
</S>:V==="redux"&&U!=null?(()=>{const w=We?.[U],C=w&&typeof w=="object"?Object.keys(w).length:typeof w<"u"?1:0,v=ze(w),Se=ve[U];return<S style={i.headerDetailCenter}>
|
|
155
155
|
<S style={i.headerDetailRow}>
|
|
156
|
-
<S style={[i.headerMethodBadge,{backgroundColor:`${t.purple}4D`,paddingHorizontal:e?5:6,paddingVertical:e?2:3}]}>
|
|
157
|
-
<
|
|
156
|
+
<S style={[i.headerMethodBadge,{backgroundColor:`${t.purple}4D`,paddingHorizontal:e?5:6,paddingVertical:e?2:3,flexShrink:0}]}>
|
|
157
|
+
<T style={[i.headerMethodText,{fontSize:e?9:10}]}>
|
|
158
158
|
SLICE
|
|
159
|
-
</
|
|
159
|
+
</T>
|
|
160
160
|
</S>
|
|
161
|
-
<
|
|
162
|
-
{
|
|
163
|
-
</
|
|
161
|
+
<T style={[i.headerDetailTitle,{fontSize:e?13:14.5,flex:1,minWidth:0,flexShrink:1}]}numberOfLines={1}ellipsizeMode="middle">
|
|
162
|
+
{U}
|
|
163
|
+
</T>
|
|
164
164
|
</S>
|
|
165
165
|
<S style={{flexDirection:"row",alignItems:"center",gap:e?4:6,marginTop:3,paddingVertical:1}}>
|
|
166
166
|
<S style={[i.headerStatusDot,{backgroundColor:t.liveGreen,width:e?6:7,height:e?6:7}]}/>
|
|
167
|
-
<
|
|
167
|
+
<T style={[i.headerSubTitle,{fontSize:e?10:11}]}>
|
|
168
168
|
Live
|
|
169
|
-
</
|
|
170
|
-
<
|
|
169
|
+
</T>
|
|
170
|
+
<T style={[i.headerSubTitle,{opacity:.6,fontSize:e?10:11}]}>
|
|
171
171
|
•
|
|
172
|
-
</
|
|
173
|
-
<
|
|
174
|
-
{
|
|
175
|
-
</
|
|
176
|
-
<
|
|
172
|
+
</T>
|
|
173
|
+
<T style={[i.headerSubTitle,{fontSize:e?10:11}]}>
|
|
174
|
+
{C} keys
|
|
175
|
+
</T>
|
|
176
|
+
<T style={[i.headerSubTitle,{opacity:.6,fontSize:e?10:11}]}>
|
|
177
177
|
•
|
|
178
|
-
</
|
|
179
|
-
<
|
|
180
|
-
{
|
|
181
|
-
</
|
|
182
|
-
{
|
|
183
|
-
<
|
|
178
|
+
</T>
|
|
179
|
+
<T style={[i.headerSubTitle,{fontSize:e?10:11}]}>
|
|
180
|
+
{v}
|
|
181
|
+
</T>
|
|
182
|
+
{Se?.timestamp&&<>
|
|
183
|
+
<T style={[i.headerSubTitle,{opacity:.6,fontSize:e?10:11}]}>
|
|
184
184
|
•
|
|
185
|
-
</
|
|
185
|
+
</T>
|
|
186
186
|
<S style={{flexDirection:"row",alignItems:"center",gap:3}}>
|
|
187
187
|
<_ color={t.white}size={e?9:10}/>
|
|
188
|
-
<
|
|
189
|
-
{
|
|
190
|
-
</
|
|
188
|
+
<T style={[i.headerSubTitle,{fontSize:e?10:11}]}>
|
|
189
|
+
{Se.timestamp}
|
|
190
|
+
</T>
|
|
191
191
|
</S>
|
|
192
192
|
</>}
|
|
193
193
|
</S>
|
|
194
|
-
</S>})():V==="redux"&&
|
|
194
|
+
</S>})():V==="redux"&&Q!=null?<S style={i.headerDetailCenter}>
|
|
195
195
|
<S style={i.headerDetailRow}>
|
|
196
|
-
<S style={[i.headerMethodBadge,{backgroundColor:`${t.brandPurple}4D`,paddingHorizontal:e?5:6,paddingVertical:e?2:3}]}>
|
|
197
|
-
<
|
|
196
|
+
<S style={[i.headerMethodBadge,{backgroundColor:`${t.brandPurple}4D`,paddingHorizontal:e?5:6,paddingVertical:e?2:3,flexShrink:0}]}>
|
|
197
|
+
<T style={[i.headerMethodText,{fontSize:e?9:10}]}>
|
|
198
198
|
ACTION
|
|
199
|
-
</
|
|
199
|
+
</T>
|
|
200
200
|
</S>
|
|
201
|
-
<
|
|
202
|
-
{
|
|
203
|
-
</
|
|
201
|
+
<T style={[i.headerDetailTitle,{fontSize:e?13:14.5,flex:1,minWidth:0,flexShrink:1}]}numberOfLines={1}ellipsizeMode="middle">
|
|
202
|
+
{Q.type}
|
|
203
|
+
</T>
|
|
204
204
|
</S>
|
|
205
205
|
<S style={{flexDirection:"row",alignItems:"center",gap:e?4:6,marginTop:3,paddingVertical:1}}>
|
|
206
206
|
<S style={[i.headerStatusDot,{backgroundColor:t.purple,width:e?6:7,height:e?6:7}]}/>
|
|
207
|
-
<
|
|
208
|
-
{
|
|
209
|
-
</
|
|
207
|
+
<T style={[i.headerSubTitle,{fontSize:e?10:11}]}>
|
|
208
|
+
{Q.timestamp||"Dispatched"}
|
|
209
|
+
</T>
|
|
210
210
|
</S>
|
|
211
211
|
</S>:V==="crash"&&M!=null?<S style={i.headerDetailCenter}>
|
|
212
212
|
<S style={i.headerDetailRow}>
|
|
213
|
-
<S style={[i.headerMethodBadge,{backgroundColor:M.isFatal?t.red600:t.amber600,paddingHorizontal:e?5:6,paddingVertical:e?2:3}]}>
|
|
214
|
-
<
|
|
213
|
+
<S style={[i.headerMethodBadge,{backgroundColor:M.isFatal?t.red600:t.amber600,paddingHorizontal:e?5:6,paddingVertical:e?2:3,flexShrink:0}]}>
|
|
214
|
+
<T style={[i.headerMethodText,{fontSize:e?9:10}]}>
|
|
215
215
|
{M.isFatal?"FATAL":M.type.toUpperCase()}
|
|
216
|
-
</
|
|
216
|
+
</T>
|
|
217
217
|
</S>
|
|
218
|
-
<
|
|
218
|
+
<T style={[i.headerDetailTitle,{fontSize:e?13:14.5,flex:1,minWidth:0,flexShrink:1}]}numberOfLines={1}ellipsizeMode="middle">
|
|
219
219
|
{M.name||M.message}
|
|
220
|
-
</
|
|
220
|
+
</T>
|
|
221
221
|
</S>
|
|
222
222
|
<S style={{flexDirection:"row",alignItems:"center",gap:e?4:6,marginTop:3,paddingVertical:1}}>
|
|
223
223
|
<S style={[i.headerStatusDot,{backgroundColor:M.isFatal?t.red600:t.amber500,width:e?6:7,height:e?6:7}]}/>
|
|
224
|
-
<
|
|
224
|
+
<T style={[i.headerSubTitle,{fontSize:e?10:11}]}>
|
|
225
225
|
{M.timeStr||new Date(M.timestamp).toLocaleTimeString()}
|
|
226
|
-
</
|
|
226
|
+
</T>
|
|
227
227
|
{M.deviceInfo?.platform&&<>
|
|
228
|
-
<
|
|
228
|
+
<T style={[i.headerSubTitle,{opacity:.6,fontSize:e?10:11}]}>
|
|
229
229
|
•
|
|
230
|
-
</
|
|
231
|
-
<
|
|
230
|
+
</T>
|
|
231
|
+
<T style={[i.headerSubTitle,{fontSize:e?10:11}]}>
|
|
232
232
|
{M.deviceInfo.platform.toUpperCase()}
|
|
233
|
-
</
|
|
233
|
+
</T>
|
|
234
234
|
</>}
|
|
235
235
|
</S>
|
|
236
|
-
</S>:V==="push"&&
|
|
236
|
+
</S>:V==="push"&&k!=null?<S style={i.headerDetailCenter}>
|
|
237
237
|
<S style={i.headerDetailRow}>
|
|
238
|
-
<S style={[i.headerMethodBadge,{backgroundColor:t.brandPurple,paddingHorizontal:e?5:6,paddingVertical:e?2:3}]}>
|
|
239
|
-
<
|
|
240
|
-
{(
|
|
241
|
-
</
|
|
238
|
+
<S style={[i.headerMethodBadge,{backgroundColor:t.brandPurple,paddingHorizontal:e?5:6,paddingVertical:e?2:3,flexShrink:0}]}>
|
|
239
|
+
<T style={[i.headerMethodText,{fontSize:e?9:10}]}>
|
|
240
|
+
{(k.source||"PUSH").toUpperCase()}
|
|
241
|
+
</T>
|
|
242
242
|
</S>
|
|
243
|
-
<
|
|
244
|
-
{
|
|
245
|
-
</
|
|
243
|
+
<T style={[i.headerDetailTitle,{fontSize:e?13:14.5,flex:1,minWidth:0,flexShrink:1}]}numberOfLines={1}ellipsizeMode="tail">
|
|
244
|
+
{k.title||k.body||"Push Notification"}
|
|
245
|
+
</T>
|
|
246
246
|
</S>
|
|
247
247
|
<S style={{flexDirection:"row",alignItems:"center",gap:e?4:6,marginTop:3,paddingVertical:1,maxWidth:"100%"}}>
|
|
248
|
-
<S style={{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:e?6:8,paddingVertical:2,borderRadius:20,backgroundColor:`${
|
|
249
|
-
<S style={[i.headerStatusDot,{backgroundColor:
|
|
250
|
-
<
|
|
251
|
-
{
|
|
252
|
-
</
|
|
248
|
+
<S style={{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:e?6:8,paddingVertical:2,borderRadius:20,backgroundColor:`${k.appState==="foreground"?t.greenColor:k.appState==="background"?t.amber500:t.brandPurple}26`,borderWidth:1,borderColor:`${k.appState==="foreground"?t.greenColor:k.appState==="background"?t.amber500:t.brandPurple}55`}}>
|
|
249
|
+
<S style={[i.headerStatusDot,{backgroundColor:k.appState==="foreground"?t.greenColor:k.appState==="background"?t.amber500:t.brandPurple,width:e?6:7,height:e?6:7}]}/>
|
|
250
|
+
<T style={[i.headerSubTitle,{fontFamily:I.interBold,fontSize:e?9.5:10.5}]}>
|
|
251
|
+
{k.appState?k.appState.toUpperCase():"DELIVERED"}
|
|
252
|
+
</T>
|
|
253
253
|
</S>
|
|
254
254
|
<S style={{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:e?6:8,paddingVertical:2,borderRadius:20,backgroundColor:`${t.white}29`}}>
|
|
255
255
|
<_ color={t.white}size={e?9.5:10.5}/>
|
|
256
|
-
<
|
|
257
|
-
{
|
|
258
|
-
</
|
|
256
|
+
<T style={[i.headerSubTitle,{fontSize:e?9.5:10.5}]}>
|
|
257
|
+
{Ce(k.timestamp)}
|
|
258
|
+
</T>
|
|
259
259
|
</S>
|
|
260
260
|
</S>
|
|
261
261
|
</S>:V==="socket"&&z!=null?<S style={i.headerDetailCenter}>
|
|
262
262
|
<S style={i.headerDetailRow}>
|
|
263
|
-
<S style={[i.headerMethodBadge,{backgroundColor:z.client==="socket.io"||z.url.includes("/socket.io")?t.violet600:z.url.startsWith("wss://")?t.emerald600:t.blue600,paddingHorizontal:e?5:6,paddingVertical:e?2:3}]}>
|
|
264
|
-
<
|
|
263
|
+
<S style={[i.headerMethodBadge,{backgroundColor:z.client==="socket.io"||z.url.includes("/socket.io")?t.violet600:z.url.startsWith("wss://")?t.emerald600:t.blue600,paddingHorizontal:e?5:6,paddingVertical:e?2:3,flexShrink:0}]}>
|
|
264
|
+
<T style={[i.headerMethodText,{fontSize:e?9:10}]}>
|
|
265
265
|
{z.client==="socket.io"||z.url.includes("/socket.io")?"SIO":z.url.startsWith("wss://")?"WSS":"WS"}
|
|
266
|
-
</
|
|
266
|
+
</T>
|
|
267
267
|
</S>
|
|
268
|
-
<
|
|
268
|
+
<T style={[i.headerDetailTitle,{fontSize:e?13:14.5,flex:1,minWidth:0,flexShrink:1}]}numberOfLines={1}ellipsizeMode="middle">
|
|
269
269
|
{z.url}
|
|
270
|
-
</
|
|
270
|
+
</T>
|
|
271
271
|
</S>
|
|
272
272
|
<S style={{flexDirection:"row",alignItems:"center",gap:e?4:6,marginTop:3,paddingVertical:1}}>
|
|
273
273
|
<S style={{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:e?6:8,paddingVertical:2.5,borderRadius:20,backgroundColor:`${z.status==="open"?t.greenColor:z.status==="connecting"?t.amber600:z.status==="error"?t.errorColor:t.slate500}26`,borderWidth:1,borderColor:`${z.status==="open"?t.greenColor:z.status==="connecting"?t.amber600:z.status==="error"?t.errorColor:t.slate500}55`}}>
|
|
274
274
|
<S style={[i.headerStatusDot,{backgroundColor:z.status==="open"?t.greenColor:z.status==="connecting"?t.amber600:z.status==="error"?t.errorColor:t.slate500,width:e?6:7,height:e?6:7}]}/>
|
|
275
|
-
<
|
|
275
|
+
<T style={[i.headerSubTitle,{fontFamily:I.interBold,fontSize:e?10:11}]}>
|
|
276
276
|
{(z.status||"open").toUpperCase()}
|
|
277
|
-
</
|
|
277
|
+
</T>
|
|
278
278
|
</S>
|
|
279
279
|
<S style={{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:e?6:8,paddingVertical:2.5,borderRadius:20,backgroundColor:`${t.white}29`}}>
|
|
280
280
|
<_ color={t.white}size={e?10:11}/>
|
|
281
|
-
<
|
|
282
|
-
{z.duration!=null?`${z.duration}ms`:
|
|
283
|
-
</
|
|
281
|
+
<T style={[i.headerSubTitle,{fontSize:e?10:11}]}>
|
|
282
|
+
{z.duration!=null?`${z.duration}ms`:Ce(z.startTime)}
|
|
283
|
+
</T>
|
|
284
284
|
</S>
|
|
285
285
|
<S style={{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:e?6:8,paddingVertical:2.5,borderRadius:20,backgroundColor:`${t.white}29`}}>
|
|
286
286
|
<De color={t.white}size={e?10:11}/>
|
|
287
|
-
<
|
|
287
|
+
<T style={[i.headerSubTitle,{fontSize:e?10:11}]}>
|
|
288
288
|
{z.frames?.length||0} frames · {it((z.totalBytesSent||0)+(z.totalBytesReceived||0))}
|
|
289
|
-
</
|
|
289
|
+
</T>
|
|
290
290
|
</S>
|
|
291
291
|
</S>
|
|
292
292
|
</S>:null}
|
|
293
293
|
</S>}
|
|
294
294
|
|
|
295
|
-
<S style={[i.headerRight,{flexDirection:"row",alignItems:"center",justifyContent:"flex-end",flexShrink:0,gap:e?4
|
|
295
|
+
<S style={[i.headerRight,{flexDirection:"row",alignItems:"center",justifyContent:"flex-end",flexShrink:0,marginLeft:6,gap:e?3.5:4.5}]}>
|
|
296
296
|
|
|
297
|
-
{
|
|
298
|
-
<Bt color={t.white}size={e?12:14}/>
|
|
299
|
-
</G>:ae?null:<>
|
|
297
|
+
{Z?<>
|
|
300
298
|
|
|
301
|
-
<
|
|
302
|
-
<Lt color={t.white}size={e?
|
|
303
|
-
</
|
|
299
|
+
<E accessible={!0}accessibilityRole="button"accessibilityLabel={D("about.heroTitle","About & Specs")}onPress={()=>{H("light"),he(!0)}}hitSlop={15}style={[i.closeButtonSquare,{width:$,height:$,borderRadius:e?6:7,backgroundColor:"rgba(255, 255, 255, 0.22)",borderColor:"rgba(255, 255, 255, 0.45)",borderWidth:1}]}>
|
|
300
|
+
<Lt color={t.white}size={e?13:15}/>
|
|
301
|
+
</E>
|
|
304
302
|
|
|
305
303
|
|
|
306
|
-
<
|
|
304
|
+
<E onPress={()=>{qe.alert("Reset All Settings","This restores all module visibility and UI preferences to defaults. Continue?",[{text:"Cancel",style:"cancel"},{text:"Reset",style:"destructive",onPress:He}])}}hitSlop={15}style={[i.closeButtonSquare,{width:$,height:$,borderRadius:e?6:7,backgroundColor:"rgba(245, 158, 11, 0.26)",borderColor:"rgba(252, 211, 77, 0.45)",borderWidth:1}]}>
|
|
305
|
+
<Bt color={t.white}size={e?12:14}/>
|
|
306
|
+
</E>
|
|
307
|
+
</>:ae?null:<>
|
|
308
|
+
|
|
309
|
+
<E accessible={!0}accessibilityRole="button"accessibilityLabel={oe?"Disable peek-through":"Enable peek-through"}onPress={()=>{H("light"),Ue(w=>!w)}}hitSlop={15}style={[i.closeButtonSquare,{width:$,height:$,borderRadius:e?6:7,backgroundColor:oe?"rgba(6, 182, 212, 0.38)":"rgba(6, 182, 212, 0.18)",borderColor:oe?"rgba(103, 232, 249, 0.65)":"rgba(103, 232, 249, 0.35)",borderWidth:1}]}>
|
|
310
|
+
<Wt color={t.white}size={e?12:14}/>
|
|
311
|
+
</E>
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
<E accessible={!0}accessibilityRole="button"accessibilityLabel="Settings"onPress={()=>ie("main")}hitSlop={15}style={[i.closeButtonSquare,{width:$,height:$,borderRadius:e?6:7,backgroundColor:"rgba(168, 85, 247, 0.28)",borderColor:"rgba(216, 180, 254, 0.45)",borderWidth:1}]}>
|
|
307
315
|
<Dt color={t.white}size={e?12:14}/>
|
|
308
|
-
</
|
|
316
|
+
</E>
|
|
309
317
|
</>}
|
|
310
318
|
|
|
311
319
|
|
|
312
|
-
<
|
|
320
|
+
<Te testID="inspector.header.minimizeBtn"onPress={Oe||ge}hitSlop={{top:12,bottom:12,left:12,right:12}}activeOpacity={.7}accessibilityRole="button"accessibilityLabel={D("common.minimize","Minimize")}style={[i.closeButtonSquare,{width:$,height:$,borderRadius:e?6:7,backgroundColor:"rgba(56, 189, 248, 0.22)",borderColor:"rgba(125, 211, 252, 0.40)",borderWidth:1}]}>
|
|
313
321
|
<Ve size={e?14:16}color={t.white}/>
|
|
314
|
-
</
|
|
322
|
+
</Te>
|
|
315
323
|
|
|
316
324
|
|
|
317
|
-
<
|
|
318
|
-
<
|
|
319
|
-
</
|
|
325
|
+
<Te testID="inspector.header.closeBtn"onPress={ge}hitSlop={{top:12,bottom:12,left:12,right:12}}activeOpacity={.7}accessibilityRole="button"accessibilityLabel={D("common.close","Close")}style={[i.closeButtonSquare,{width:$,height:$,borderRadius:e?6:7,backgroundColor:"rgba(244, 63, 94, 0.28)",borderColor:"rgba(251, 113, 133, 0.48)",borderWidth:1}]}>
|
|
326
|
+
<Rt size={e?12:14}/>
|
|
327
|
+
</Te>
|
|
320
328
|
</S>
|
|
321
329
|
</S>
|
|
322
330
|
</S>
|
|
323
331
|
</S>
|
|
324
332
|
|
|
325
333
|
|
|
326
|
-
<Tt visible={Ne}onClose={()=>
|
|
334
|
+
<Tt visible={Ne}onClose={()=>fe(!1)}/>
|
|
327
335
|
|
|
328
336
|
|
|
329
|
-
<St item={
|
|
330
|
-
</>});export default
|
|
337
|
+
<St item={me}visible={!!me}onClose={()=>j(null)}onDelete={async w=>{await F.deleteMedia(w.uri),N?.().catch(()=>{}),j(null)}}onConvertToGif={async w=>{const C=await F.convertToGif(w.uri,{fps:12,width:480});if(C){N?.().catch(()=>{});const v=ce("anim","gif");j({id:v,type:"gif",format:"gif",uri:C.uri,filename:C.uri.split("/").pop()||v,sizeBytes:C.sizeBytes,timestamp:C.timestamp,durationMs:C.durationMs})}}}/>
|
|
338
|
+
</>});export default Ot;
|