react-native-inapp-inspector 2.5.8 → 2.5.10
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/dist/commonjs/components/BrandCircleIcon.js +8 -3
- package/dist/commonjs/components/Inspector/ConsoleExportModal.d.ts +10 -0
- package/dist/commonjs/components/Inspector/ConsoleExportModal.js +317 -0
- package/dist/commonjs/components/Inspector/ConsoleTab.js +20 -15
- package/dist/commonjs/components/Inspector/FabLauncher.js +8 -8
- package/dist/commonjs/components/Inspector/FloatingCaptureWidget.js +4 -4
- package/dist/commonjs/components/Inspector/InspectorHeader.js +30 -45
- package/dist/commonjs/components/Inspector/MainScreen.js +1 -1
- package/dist/commonjs/components/Inspector/MediaGalleryTab.js +34 -20
- package/dist/commonjs/components/Inspector/MediaPreviewModal.js +49 -44
- package/dist/commonjs/components/Inspector/NpmUpdateToast.js +5 -5
- package/dist/commonjs/components/Inspector/SkeletonPlaceholder.js +3 -3
- package/dist/commonjs/components/SkeletonPlaceholder.js +3 -3
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -1
- package/dist/commonjs/customHooks/networkLogger.d.ts +1 -17
- package/dist/commonjs/customHooks/networkLogger.js +1 -1
- package/dist/commonjs/helpers/shareFormatter.d.ts +15 -0
- package/dist/commonjs/helpers/shareFormatter.js +15 -8
- 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/styles/index.d.ts +3 -0
- package/dist/commonjs/styles/index.js +1 -1
- package/dist/commonjs/types/interfaces.d.ts +4 -2
- package/dist/esm/components/BrandCircleIcon.js +9 -4
- package/dist/esm/components/Inspector/ConsoleExportModal.d.ts +10 -0
- package/dist/esm/components/Inspector/ConsoleExportModal.js +317 -0
- package/dist/esm/components/Inspector/ConsoleTab.js +38 -33
- package/dist/esm/components/Inspector/FabLauncher.js +1 -1
- package/dist/esm/components/Inspector/FloatingCaptureWidget.js +9 -9
- package/dist/esm/components/Inspector/InspectorHeader.js +75 -90
- package/dist/esm/components/Inspector/MainScreen.js +1 -1
- package/dist/esm/components/Inspector/MediaGalleryTab.js +88 -74
- package/dist/esm/components/Inspector/MediaPreviewModal.js +178 -173
- package/dist/esm/components/Inspector/NpmUpdateToast.js +18 -18
- package/dist/esm/components/Inspector/SkeletonPlaceholder.js +11 -11
- package/dist/esm/components/SkeletonPlaceholder.js +11 -11
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/customHooks/networkLogger.d.ts +1 -17
- package/dist/esm/customHooks/networkLogger.js +1 -1
- package/dist/esm/helpers/shareFormatter.d.ts +15 -0
- package/dist/esm/helpers/shareFormatter.js +15 -8
- 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 +4 -4
- package/dist/esm/styles/index.d.ts +3 -0
- package/dist/esm/styles/index.js +1 -1
- package/dist/esm/types/interfaces.d.ts +4 -2
- package/package.json +1 -1
|
@@ -1,123 +1,111 @@
|
|
|
1
|
-
import B,{useMemo as Z}from"react";import{Alert as
|
|
2
|
-
<S style={[i.headerGradient,{minHeight:(e?44:48)+
|
|
1
|
+
import B,{useMemo as Z}from"react";import{Alert as _e,Linking as qe,Platform as le,Pressable as Qe,StatusBar as Je,Text as C,TouchableOpacity as Se,useWindowDimensions as Ke,View as S}from"react-native";import Xe from"react-native-linear-gradient";import{useInspector as Ye}from"./InspectorContext";import G 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 ne}from"../../constants";import{getStatusColor as se,formatTime as tt,formatTimeShort as Te,getSize as Ce,formatByteSize as it,getAppVersionAndBuild as rt,showToast as v}from"../../helpers";import{triggerNativeHaptic as P}from"../../native/NativeInspector";import{ScreenCapture as E,generateCaptureId as de}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 It,ChevronDownIcon as Ve,ClockIcon as _,SizeIcon as De,AppleIcon as Rt,AndroidIcon as Mt,NpmIcon as $t,ResetIcon as Bt,EyeIcon as Lt}from"../NetworkIcons";import{useTranslation as Ht,SUPPORTED_LANGUAGES as ke,getLanguage as Ot}from"../../i18n";const vt=B.memo(()=>{const{t:R,language:ce}=Ht(),{modalHeightPercent:ee,appIcon:Pt,selected:k,setSelected:Ie,selectedEvent:$,setSelectedEvent:Re,selectedLog:L,setSelectedLog:Me,selectedReduxSlice:F,setSelectedReduxSlice:$e,selectedReduxAction:q,setSelectedReduxAction:Be,reduxState:Le,reduxLastActionMap:He,clearAnim:At,runClearAllWithAnimation:Wt,settingsPage:A,setSettingsPage:te,isAboutOpen:ie,setIsAboutOpen:Oe,resetToDefaults:ve,closeModal:ue,minimizeInspector:Pe,detailTitle:Ae,activeTab:V,environment:ge,selectedCrash:M,setSelectedCrash:We,selectedPush:D,setSelectedPush:Ee,selectedSocket:z,setSelectedSocket:Fe,refreshMediaCount:U,peekMode:re,setPeekMode:Ue,previewMediaItem:he,setPreviewMediaItem:N}=Ye(),{width:Q}=Ke(),e=Q<360,j=Q<400,[Et,Ft]=B.useState(!1),[Ne,pe]=B.useState(!1),[je]=B.useState(()=>rt().formatted),me=Z(()=>{const T=ce||Ot();return ke.find(x=>x.code===T)||ke[0]},[ce]),[J,K]=B.useState(!1),[Ut,oe]=B.useState(0),W=B.useRef(null);B.useEffect(()=>{E.isRecording().then(T=>{K(T)}).catch(()=>{})},[]),B.useEffect(()=>(J?(oe(0),W.current=setInterval(()=>{oe(T=>T+1)},1e3)):(W.current&&(clearInterval(W.current),W.current=null),oe(0)),()=>{W.current&&clearInterval(W.current)}),[J]);const Nt=B.useCallback(async()=>{try{P("light");const T=await E.takeScreenshot({format:"png",quality:.9,hideInspector:!0});if(T){P("success");const x=de("screenshot",T.format||"png"),O={id:x,type:"image",format:T.format,uri:T.uri,filename:T.uri.split("/").pop()||x,sizeBytes:T.sizeBytes,timestamp:T.timestamp,width:T.width,height:T.height};N(O),U?.().catch(()=>{}),v(R("header.screenshotCaptured"))}else v(R("header.screenshotFailed"))}catch{v(R("header.screenshotError"))}},[U,R]),jt=B.useCallback(async()=>{try{if(J){P("medium");const T=await E.stopRecording();if(K(!1),T){P("success");const x=de("video",T.format),O={id:x,type:T.format==="gif"?"gif":"video",format:T.format,uri:T.uri,filename:T.uri.split("/").pop()||x,sizeBytes:T.sizeBytes,timestamp:T.timestamp,durationMs:T.durationMs,width:T.width,height:T.height,hasAudio:T.hasAudio};N(O),U?.().catch(()=>{}),v(R("header.recordingSaved",{duration:(T.durationMs/1e3).toFixed(1)}))}}else P("medium"),await E.startRecording({fps:24,audioSource:"none"})?(K(!0),v(R("header.recordingStarted"))):v(R("header.recordingStartFailed"))}catch{v(R("header.recordingError")),K(!1)}},[J,R]),Gt=T=>{const x=Math.floor(T/60),O=T%60;return`${x.toString().padStart(2,"0")}:${O.toString().padStart(2,"0")}`},_t=Z(()=>{const T=(ge||(__DEV__?"DEV":"PROD")).trim(),x=T.toUpperCase();return x==="DEV"||x.includes("DEV")||x==="LOCAL"?{label:T,bg:`${t.emerald500}40`,border:`${t.emerald400}8C`,text:t.mintGreenBorder}:x==="UAT"||x==="QA"||x==="TEST"?{label:T,bg:`${t.amber500}47`,border:`${t.amber400}99`,text:t.amberWarmBorder}:x==="PREPROD"||x==="STAGE"||x==="STAGING"?{label:T,bg:`${t.purple500}47`,border:`${t.purple400}99`,text:t.violetSoftBorder}:{label:T,bg:`${t.rose500}40`,border:`${t.roseBorder}8C`,text:t.errorBorder}},[ge]),X=V==="apis"&&k!=null||V==="analytics"&&$!=null||V==="logs"&&L!=null||V==="redux"&&(F!=null||q!=null)||V==="crash"&&M!=null||V==="push"&&D!=null||V==="socket"&&z!=null,Y=A!==null,ae=X||Y||ie,Ge=Z(()=>{switch(A){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"}},[A]),fe=Z(()=>le.OS==="ios"?ee>=98?Q>=390?50:44:0:le.OS==="android"&&ee>=98?Je.currentHeight||24:0,[ee,Q]),H=e?25:j?26.5:27,qt=e?36:j?38:40;return<>
|
|
2
|
+
<S style={[i.headerGradient,{minHeight:(e?44:48)+fe}]}>
|
|
3
3
|
|
|
4
|
-
<
|
|
5
|
-
<S style={{paddingTop:
|
|
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:fe,width:"100%"}}>
|
|
6
6
|
<S style={[i.header,{width:"100%",justifyContent:"space-between",paddingHorizontal:e?10:12,paddingVertical:5.5,minHeight:e?44:48}]}>
|
|
7
7
|
<S style={{flexDirection:"row",alignItems:"center",gap:e?7:8,flex:X?void 0:1,flexShrink:X?0:1,minWidth:0}}>
|
|
8
|
-
{
|
|
8
|
+
{ae&&<G onPress={()=>{if(ie){Oe(!1);return}if(Y){te(A==="main"?null:"main");return}Ie(null),Re(null),Me(null),$e(null),Be(null),We(null),Ee(null),Fe(null)}}hitSlop={15}style={{width:e?32:36,height:e?32:36,borderRadius:e?16:18,alignItems:"center",justifyContent:"center",backgroundColor:`${t.white}2E`,borderWidth:1,borderColor:`${t.white}4D`}}>
|
|
9
9
|
<S style={{position:"absolute",width:e?40:44,height:e?40:44,borderRadius:22,backgroundColor:`${t.white}1A`}}/>
|
|
10
|
-
|
|
10
|
+
<Vt/>
|
|
11
11
|
</G>}
|
|
12
12
|
|
|
13
|
-
{
|
|
13
|
+
{ie?<S style={{gap:3,flex:1,minWidth:0,justifyContent:"center"}}>
|
|
14
14
|
<S style={{flexDirection:"row",alignItems:"center",gap:6}}>
|
|
15
|
-
<C style={{fontFamily:
|
|
15
|
+
<C style={{fontFamily:I.interBold,fontSize:e?15:16.5,lineHeight:e?19:21,color:t.white,letterSpacing:-.2}}numberOfLines={1}>
|
|
16
16
|
About & Specs
|
|
17
17
|
</C>
|
|
18
18
|
<S style={{backgroundColor:`${t.white}26`,paddingHorizontal:e?5:6,paddingVertical:2,borderRadius:8,borderWidth:1,borderColor:`${t.white}20`}}>
|
|
19
|
-
<C style={{fontFamily:
|
|
20
|
-
v{
|
|
19
|
+
<C style={{fontFamily:I.interBold,fontSize:e?8.5:9.5,lineHeight:12,color:t.white}}>
|
|
20
|
+
v{ne}
|
|
21
21
|
</C>
|
|
22
22
|
</S>
|
|
23
23
|
</S>
|
|
24
|
-
<C style={{fontFamily:
|
|
24
|
+
<C style={{fontFamily:I.interRegular,fontSize:e?10:11,lineHeight:e?14:15,color:`${t.white}CC`,marginTop:1}}numberOfLines={1}>
|
|
25
25
|
Package info, runtime specs & diagnostic payload
|
|
26
26
|
</C>
|
|
27
27
|
</S>:Y?<S style={{gap:3,flex:1,minWidth:0,justifyContent:"center"}}>
|
|
28
28
|
<S style={{flexDirection:"row",alignItems:"center",gap:6}}>
|
|
29
|
-
<C style={{fontFamily:
|
|
30
|
-
{
|
|
29
|
+
<C style={{fontFamily:I.interBold,fontSize:e?15:16.5,lineHeight:e?19:21,color:t.white,letterSpacing:-.2}}numberOfLines={1}>
|
|
30
|
+
{Ge}
|
|
31
31
|
</C>
|
|
32
|
-
{
|
|
33
|
-
<C style={{fontFamily:
|
|
34
|
-
v{
|
|
32
|
+
{A==="main"&&<S style={{backgroundColor:`${t.white}26`,paddingHorizontal:e?5:6,paddingVertical:2,borderRadius:8,borderWidth:1,borderColor:`${t.white}20`}}>
|
|
33
|
+
<C style={{fontFamily:I.interBold,fontSize:e?8.5:9.5,lineHeight:12,color:t.white}}>
|
|
34
|
+
v{ne}
|
|
35
35
|
</C>
|
|
36
36
|
</S>}
|
|
37
37
|
</S>
|
|
38
|
-
<C style={{fontFamily:
|
|
39
|
-
{
|
|
38
|
+
<C style={{fontFamily:I.interRegular,fontSize:e?10:11,lineHeight:e?14:15,color:`${t.white}CC`,marginTop:1}}numberOfLines={1}>
|
|
39
|
+
{A==="main"?"Manage modules and preferences":"Configure module parameters"}
|
|
40
40
|
</C>
|
|
41
|
-
</S>:
|
|
42
|
-
<
|
|
41
|
+
</S>:ae?null:<S style={{flexDirection:"row",alignItems:"center",gap:e?8:10,flex:1,minWidth:0,marginRight:4}}>
|
|
42
|
+
<Ze size={e?44:j?46:48}/>
|
|
43
43
|
<S style={{gap:3,flex:1,minWidth:0,justifyContent:"center"}}>
|
|
44
44
|
|
|
45
|
-
<C style={[i.headerTitle,{fontFamily:
|
|
45
|
+
<C style={[i.headerTitle,{fontFamily:I.interBold,fontWeight:"700",fontSize:e?13:j?13.5:14.5,lineHeight:e?17:j?18:19.5,color:t.white,letterSpacing:-.2,paddingBottom:0}]}numberOfLines={1}ellipsizeMode="tail">
|
|
46
46
|
react-native-inapp-inspector
|
|
47
47
|
</C>
|
|
48
48
|
|
|
49
49
|
|
|
50
50
|
<S style={{flexDirection:"row",alignItems:"center",gap:4.5,minWidth:0,marginTop:1.5}}>
|
|
51
51
|
|
|
52
|
-
<G onPress={()=>{
|
|
53
|
-
<
|
|
54
|
-
<C style={{fontFamily:
|
|
55
|
-
{
|
|
52
|
+
<G onPress={()=>{P("light"),pe(!0)}}hitSlop={6}accessible={!0}accessibilityRole="button"accessibilityLabel={R("settings.general.selectLanguage","Select Language")}style={{flexDirection:"row",alignItems:"center",backgroundColor:`${t.white}24`,borderRadius:5,paddingHorizontal:5.5,paddingVertical:2,gap:3.5,borderWidth:1,borderColor:`${t.white}38`,flexShrink:0}}>
|
|
53
|
+
<Ct code={me?.code||"en"}size={9.5}borderRadius={2}/>
|
|
54
|
+
<C style={{fontFamily:I.interBold,fontSize:8.5,lineHeight:11,color:t.white,letterSpacing:.2}}numberOfLines={1}>
|
|
55
|
+
{me?.code?.toUpperCase()||"EN"}
|
|
56
56
|
</C>
|
|
57
57
|
<Ve size={6.5}color={`${t.white}CC`}/>
|
|
58
58
|
</G>
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
<S style={{flexDirection:"row",alignItems:"center",backgroundColor:`${t.white}1F`,borderRadius:5,paddingHorizontal:5.5,paddingVertical:2,gap:3.5,borderWidth:1,borderColor:`${t.white}2E`,flexShrink:1,minWidth:0}}>
|
|
62
|
-
{
|
|
63
|
-
<C style={{fontFamily:
|
|
64
|
-
{
|
|
62
|
+
{le.OS==="ios"?<Rt color={`${t.white}E6`}size={9}/>:<Mt color={`${t.white}E6`}size={9}/>}
|
|
63
|
+
<C style={{fontFamily:I.interMedium,fontSize:8.5,lineHeight:11,color:`${t.white}EB`,letterSpacing:.1}}numberOfLines={1}ellipsizeMode="tail">
|
|
64
|
+
{je}
|
|
65
65
|
</C>
|
|
66
66
|
</S>
|
|
67
67
|
|
|
68
68
|
|
|
69
|
-
<
|
|
70
|
-
|
|
71
|
-
<C style={{fontFamily:
|
|
72
|
-
v{
|
|
69
|
+
<Qe onPress={()=>{qe.openURL("https://www.npmjs.com/package/react-native-inapp-inspector").catch(()=>{})}}style={{flexDirection:"row",alignItems:"center",backgroundColor:`${t.white}1F`,borderRadius:5,paddingHorizontal:6,paddingVertical:2,gap:3.5,borderWidth:1,borderColor:`${t.white}2E`,flexShrink:0}}>
|
|
70
|
+
<$t size={9}color={t.npmRedLight}/>
|
|
71
|
+
<C style={{fontFamily:I.interMedium,fontSize:8.5,lineHeight:11,color:`${t.white}EB`,letterSpacing:.1}}>
|
|
72
|
+
v{ne}
|
|
73
73
|
</C>
|
|
74
|
-
|
|
75
|
-
●
|
|
76
|
-
</C>}
|
|
77
|
-
</Se>
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
{te&&<Se hitSlop={10}onPress={()=>ae(!0)}style={{flexDirection:"row",alignItems:"center",backgroundColor:t.warningAmber,borderRadius:5,paddingHorizontal:4.5,paddingVertical:1.5,gap:3,shadowColor:t.warningAmber,shadowOffset:{width:0,height:1.5},shadowOpacity:.35,shadowRadius:3,elevation:3,flexShrink:0}}>
|
|
81
|
-
<Xe.View style={{width:4.5,height:4.5,borderRadius:2.25,backgroundColor:t.white,opacity:He,transform:[{scale:Oe}]}}/>
|
|
82
|
-
{!e&&<C style={{fontFamily:D.interBold,fontSize:8,lineHeight:10,color:t.white,letterSpacing:.3}}>
|
|
83
|
-
UPDATE
|
|
84
|
-
</C>}
|
|
85
|
-
<Wt size={e?7.5:8.5}color={t.white}/>
|
|
86
|
-
</Se>}
|
|
74
|
+
</Qe>
|
|
87
75
|
</S>
|
|
88
76
|
</S>
|
|
89
77
|
</S>}
|
|
90
78
|
</S>
|
|
91
79
|
|
|
92
80
|
{X&&<S style={[i.headerCenter,{paddingHorizontal:e?2:6}]}>
|
|
93
|
-
{V==="apis"&&
|
|
81
|
+
{V==="apis"&&k!=null?<S style={i.headerDetailCenter}>
|
|
94
82
|
<S style={i.headerDetailRow}>
|
|
95
|
-
<S style={[i.headerMethodBadge,{backgroundColor:
|
|
83
|
+
<S style={[i.headerMethodBadge,{backgroundColor:et[k.method]??t.grayText,paddingHorizontal:e?5:6,paddingVertical:e?2:3}]}>
|
|
96
84
|
<C style={[i.headerMethodText,{fontSize:e?9:10}]}>
|
|
97
|
-
{
|
|
85
|
+
{k.method}
|
|
98
86
|
</C>
|
|
99
87
|
</S>
|
|
100
88
|
<C style={[i.headerDetailTitle,{fontSize:e?13.5:15}]}numberOfLines={1}ellipsizeMode="middle">
|
|
101
|
-
{
|
|
89
|
+
{Ae}
|
|
102
90
|
</C>
|
|
103
91
|
</S>
|
|
104
92
|
<S style={{flexDirection:"row",alignItems:"center",gap:e?4:6,marginTop:3,paddingVertical:1}}>
|
|
105
|
-
<S style={{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:e?6:8,paddingVertical:2.5,borderRadius:20,backgroundColor:`${
|
|
106
|
-
<S style={[i.headerStatusDot,{backgroundColor:
|
|
107
|
-
<C style={[i.headerSubTitle,{fontFamily:
|
|
108
|
-
{
|
|
93
|
+
<S style={{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:e?6:8,paddingVertical:2.5,borderRadius:20,backgroundColor:`${se(k.status)}26`,borderWidth:1,borderColor:`${se(k.status)}55`}}>
|
|
94
|
+
<S style={[i.headerStatusDot,{backgroundColor:se(k.status),width:e?6:7,height:e?6:7}]}/>
|
|
95
|
+
<C style={[i.headerSubTitle,{fontFamily:I.interBold,fontSize:e?10:11}]}>
|
|
96
|
+
{k.status===0?"Failed":k.status??"Pending"}
|
|
109
97
|
</C>
|
|
110
98
|
</S>
|
|
111
99
|
<S style={{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:e?6:8,paddingVertical:2.5,borderRadius:20,backgroundColor:`${t.white}29`}}>
|
|
112
100
|
<_ color={t.white}size={e?10:11}/>
|
|
113
101
|
<C style={[i.headerSubTitle,{fontSize:e?10:11}]}>
|
|
114
|
-
{
|
|
102
|
+
{k.duration!=null?`${k.duration}ms`:"\u2014"}
|
|
115
103
|
</C>
|
|
116
104
|
</S>
|
|
117
|
-
{
|
|
105
|
+
{k.response!=null&&<S style={{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:e?6:8,paddingVertical:2.5,borderRadius:20,backgroundColor:`${t.white}29`}}>
|
|
118
106
|
<De color={t.white}size={e?10:11}/>
|
|
119
107
|
<C style={[i.headerSubTitle,{fontSize:e?10:11}]}>
|
|
120
|
-
{
|
|
108
|
+
{Ce(k.response)}
|
|
121
109
|
</C>
|
|
122
110
|
</S>}
|
|
123
111
|
</S>
|
|
@@ -159,11 +147,11 @@ import B,{useMemo as Z}from"react";import{Alert as Ke,Animated as Xe,Linking as
|
|
|
159
147
|
<S style={{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:e?6:8,paddingVertical:2.5,borderRadius:20,backgroundColor:`${t.white}29`}}>
|
|
160
148
|
<_ color={t.white}size={e?10:11}/>
|
|
161
149
|
<C style={[i.headerSubTitle,{fontSize:e?10:11}]}>
|
|
162
|
-
{
|
|
150
|
+
{tt(L.timestamp)}
|
|
163
151
|
</C>
|
|
164
152
|
</S>
|
|
165
153
|
</S>
|
|
166
|
-
</S>:V==="redux"&&F!=null?(()=>{const T=Le?.[F],x=T&&typeof T=="object"?Object.keys(T).length:typeof T<"u"?1:0,
|
|
154
|
+
</S>:V==="redux"&&F!=null?(()=>{const T=Le?.[F],x=T&&typeof T=="object"?Object.keys(T).length:typeof T<"u"?1:0,O=Ce(T),be=He[F];return<S style={i.headerDetailCenter}>
|
|
167
155
|
<S style={i.headerDetailRow}>
|
|
168
156
|
<S style={[i.headerMethodBadge,{backgroundColor:`${t.purple}4D`,paddingHorizontal:e?5:6,paddingVertical:e?2:3}]}>
|
|
169
157
|
<C style={[i.headerMethodText,{fontSize:e?9:10}]}>
|
|
@@ -189,16 +177,16 @@ import B,{useMemo as Z}from"react";import{Alert as Ke,Animated as Xe,Linking as
|
|
|
189
177
|
•
|
|
190
178
|
</C>
|
|
191
179
|
<C style={[i.headerSubTitle,{fontSize:e?10:11}]}>
|
|
192
|
-
{
|
|
180
|
+
{O}
|
|
193
181
|
</C>
|
|
194
|
-
{
|
|
182
|
+
{be?.timestamp&&<>
|
|
195
183
|
<C style={[i.headerSubTitle,{opacity:.6,fontSize:e?10:11}]}>
|
|
196
184
|
•
|
|
197
185
|
</C>
|
|
198
186
|
<S style={{flexDirection:"row",alignItems:"center",gap:3}}>
|
|
199
187
|
<_ color={t.white}size={e?9:10}/>
|
|
200
188
|
<C style={[i.headerSubTitle,{fontSize:e?10:11}]}>
|
|
201
|
-
{
|
|
189
|
+
{be.timestamp}
|
|
202
190
|
</C>
|
|
203
191
|
</S>
|
|
204
192
|
</>}
|
|
@@ -245,28 +233,28 @@ import B,{useMemo as Z}from"react";import{Alert as Ke,Animated as Xe,Linking as
|
|
|
245
233
|
</C>
|
|
246
234
|
</>}
|
|
247
235
|
</S>
|
|
248
|
-
</S>:V==="push"&&
|
|
236
|
+
</S>:V==="push"&&D!=null?<S style={i.headerDetailCenter}>
|
|
249
237
|
<S style={i.headerDetailRow}>
|
|
250
238
|
<S style={[i.headerMethodBadge,{backgroundColor:t.brandPurple,paddingHorizontal:e?5:6,paddingVertical:e?2:3}]}>
|
|
251
239
|
<C style={[i.headerMethodText,{fontSize:e?9:10}]}>
|
|
252
|
-
{(
|
|
240
|
+
{(D.source||"PUSH").toUpperCase()}
|
|
253
241
|
</C>
|
|
254
242
|
</S>
|
|
255
243
|
<C style={[i.headerDetailTitle,{fontSize:e?13:14.5,flex:1,minWidth:0}]}numberOfLines={1}ellipsizeMode="tail">
|
|
256
|
-
{
|
|
244
|
+
{D.title||D.body||"Push Notification"}
|
|
257
245
|
</C>
|
|
258
246
|
</S>
|
|
259
247
|
<S style={{flexDirection:"row",alignItems:"center",gap:e?4:6,marginTop:3,paddingVertical:1,maxWidth:"100%"}}>
|
|
260
|
-
<S style={{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:e?6:8,paddingVertical:2,borderRadius:20,backgroundColor:`${
|
|
261
|
-
<S style={[i.headerStatusDot,{backgroundColor:
|
|
262
|
-
<C style={[i.headerSubTitle,{fontFamily:
|
|
263
|
-
{
|
|
248
|
+
<S style={{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:e?6:8,paddingVertical:2,borderRadius:20,backgroundColor:`${D.appState==="foreground"?t.greenColor:D.appState==="background"?t.amber500:t.brandPurple}26`,borderWidth:1,borderColor:`${D.appState==="foreground"?t.greenColor:D.appState==="background"?t.amber500:t.brandPurple}55`}}>
|
|
249
|
+
<S style={[i.headerStatusDot,{backgroundColor:D.appState==="foreground"?t.greenColor:D.appState==="background"?t.amber500:t.brandPurple,width:e?6:7,height:e?6:7}]}/>
|
|
250
|
+
<C style={[i.headerSubTitle,{fontFamily:I.interBold,fontSize:e?9.5:10.5}]}>
|
|
251
|
+
{D.appState?D.appState.toUpperCase():"DELIVERED"}
|
|
264
252
|
</C>
|
|
265
253
|
</S>
|
|
266
254
|
<S style={{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:e?6:8,paddingVertical:2,borderRadius:20,backgroundColor:`${t.white}29`}}>
|
|
267
255
|
<_ color={t.white}size={e?9.5:10.5}/>
|
|
268
256
|
<C style={[i.headerSubTitle,{fontSize:e?9.5:10.5}]}>
|
|
269
|
-
{
|
|
257
|
+
{Te(D.timestamp)}
|
|
270
258
|
</C>
|
|
271
259
|
</S>
|
|
272
260
|
</S>
|
|
@@ -284,20 +272,20 @@ import B,{useMemo as Z}from"react";import{Alert as Ke,Animated as Xe,Linking as
|
|
|
284
272
|
<S style={{flexDirection:"row",alignItems:"center",gap:e?4:6,marginTop:3,paddingVertical:1}}>
|
|
285
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`}}>
|
|
286
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}]}/>
|
|
287
|
-
<C style={[i.headerSubTitle,{fontFamily:
|
|
275
|
+
<C style={[i.headerSubTitle,{fontFamily:I.interBold,fontSize:e?10:11}]}>
|
|
288
276
|
{(z.status||"open").toUpperCase()}
|
|
289
277
|
</C>
|
|
290
278
|
</S>
|
|
291
279
|
<S style={{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:e?6:8,paddingVertical:2.5,borderRadius:20,backgroundColor:`${t.white}29`}}>
|
|
292
280
|
<_ color={t.white}size={e?10:11}/>
|
|
293
281
|
<C style={[i.headerSubTitle,{fontSize:e?10:11}]}>
|
|
294
|
-
{z.duration!=null?`${z.duration}ms`:
|
|
282
|
+
{z.duration!=null?`${z.duration}ms`:Te(z.startTime)}
|
|
295
283
|
</C>
|
|
296
284
|
</S>
|
|
297
285
|
<S style={{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:e?6:8,paddingVertical:2.5,borderRadius:20,backgroundColor:`${t.white}29`}}>
|
|
298
286
|
<De color={t.white}size={e?10:11}/>
|
|
299
287
|
<C style={[i.headerSubTitle,{fontSize:e?10:11}]}>
|
|
300
|
-
{z.frames?.length||0} frames · {
|
|
288
|
+
{z.frames?.length||0} frames · {it((z.totalBytesSent||0)+(z.totalBytesReceived||0))}
|
|
301
289
|
</C>
|
|
302
290
|
</S>
|
|
303
291
|
</S>
|
|
@@ -306,40 +294,37 @@ import B,{useMemo as Z}from"react";import{Alert as Ke,Animated as Xe,Linking as
|
|
|
306
294
|
|
|
307
295
|
<S style={[i.headerRight,{flexDirection:"row",alignItems:"center",justifyContent:"flex-end",flexShrink:0,gap:e?4:5}]}>
|
|
308
296
|
|
|
309
|
-
{Y?<G onPress={()=>{
|
|
310
|
-
<
|
|
311
|
-
</G>:
|
|
297
|
+
{Y?<G onPress={()=>{_e.alert("Reset All Settings","This restores all module visibility and UI preferences to defaults. Continue?",[{text:"Cancel",style:"cancel"},{text:"Reset",style:"destructive",onPress:ve}])}}hitSlop={15}style={[i.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}]}>
|
|
298
|
+
<Bt color={t.white}size={e?12:14}/>
|
|
299
|
+
</G>:ae?null:<>
|
|
312
300
|
|
|
313
|
-
<G accessible={!0}accessibilityRole="button"accessibilityLabel={
|
|
314
|
-
<
|
|
301
|
+
<G accessible={!0}accessibilityRole="button"accessibilityLabel={re?"Disable peek-through":"Enable peek-through"}onPress={()=>{P("light"),Ue(T=>!T)}}hitSlop={15}style={[i.closeButtonSquare,{width:H,height:H,borderRadius:e?6:7,backgroundColor:re?"rgba(6, 182, 212, 0.38)":"rgba(6, 182, 212, 0.18)",borderColor:re?"rgba(103, 232, 249, 0.65)":"rgba(103, 232, 249, 0.35)",borderWidth:1}]}>
|
|
302
|
+
<Lt color={t.white}size={e?12:14}/>
|
|
315
303
|
</G>
|
|
316
304
|
|
|
317
305
|
|
|
318
|
-
<G accessible={!0}accessibilityRole="button"accessibilityLabel="Settings"onPress={()=>
|
|
319
|
-
<
|
|
306
|
+
<G accessible={!0}accessibilityRole="button"accessibilityLabel="Settings"onPress={()=>te("main")}hitSlop={15}style={[i.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}]}>
|
|
307
|
+
<Dt color={t.white}size={e?12:14}/>
|
|
320
308
|
</G>
|
|
321
309
|
</>}
|
|
322
310
|
|
|
323
311
|
|
|
324
|
-
<
|
|
312
|
+
<Se testID="inspector.header.minimizeBtn"onPress={Pe||ue}hitSlop={{top:12,bottom:12,left:12,right:12}}activeOpacity={.7}accessibilityRole="button"accessibilityLabel={R("common.minimize","Minimize")}style={[i.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}]}>
|
|
325
313
|
<Ve size={e?14:16}color={t.white}/>
|
|
326
|
-
</
|
|
314
|
+
</Se>
|
|
327
315
|
|
|
328
316
|
|
|
329
|
-
<
|
|
330
|
-
<
|
|
331
|
-
</
|
|
317
|
+
<Se testID="inspector.header.closeBtn"onPress={ue}hitSlop={{top:12,bottom:12,left:12,right:12}}activeOpacity={.7}accessibilityRole="button"accessibilityLabel={R("common.close","Close")}style={[i.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}]}>
|
|
318
|
+
<It size={e?12:14}/>
|
|
319
|
+
</Se>
|
|
332
320
|
</S>
|
|
333
321
|
</S>
|
|
334
322
|
</S>
|
|
335
323
|
</S>
|
|
336
324
|
|
|
337
325
|
|
|
338
|
-
<
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
<Mt visible={qe}onClose={()=>fe(!1)}/>
|
|
326
|
+
<Tt visible={Ne}onClose={()=>pe(!1)}/>
|
|
342
327
|
|
|
343
328
|
|
|
344
|
-
<
|
|
345
|
-
</>});export default
|
|
329
|
+
<St item={he}visible={!!he}onClose={()=>N(null)}onDelete={async T=>{await E.deleteMedia(T.uri),U?.().catch(()=>{}),N(null)}}onConvertToGif={async T=>{const x=await E.convertToGif(T.uri,{fps:12,width:480});if(x){U?.().catch(()=>{});const O=de("anim","gif");N({id:O,type:"gif",format:"gif",uri:x.uri,filename:x.uri.split("/").pop()||O,sizeBytes:x.sizeBytes,timestamp:x.timestamp,durationMs:x.durationMs})}}}/>
|
|
330
|
+
</>});export default vt;
|
|
@@ -4,7 +4,7 @@ import se,{useEffect as P,useRef as L}from"react";import{Animated as o,Modal as
|
|
|
4
4
|
<Me onClose={M}>
|
|
5
5
|
<B style={[H.modalBackdrop,{zIndex:999999,elevation:999999}]}>
|
|
6
6
|
<Be style={H.modalBackdropPressable}onPress={M}/>
|
|
7
|
-
<B style={[H.modalContentCard,{height:`${O}%`,borderTopLeftRadius:O>=100?0:20,borderTopRightRadius:O>=100?0:20,opacity:le?Math.max(.05,Math.min(1,typeof $=="number"?$:.
|
|
7
|
+
<B style={[H.modalContentCard,{height:`${O}%`,borderTopLeftRadius:O>=100?0:20,borderTopRightRadius:O>=100?0:20,opacity:le?Math.max(.05,Math.min(1,typeof $=="number"?$:.3)):1,zIndex:9999999,elevation:999999}]}>
|
|
8
8
|
<Ce translucent backgroundColor="transparent"barStyle="light-content"/>
|
|
9
9
|
|
|
10
10
|
<Re/>
|