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,15 +1,15 @@
|
|
|
1
|
-
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(r,a,s,n){n===void 0&&(n=s);var i=Object.getOwnPropertyDescriptor(a,s);(!i||("get"in i?!a.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(r,n,i)}):(function(r,a,s,n){n===void 0&&(n=s),r[n]=a[s]})),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?(function(r,a){Object.defineProperty(r,"default",{enumerable:!0,value:a})}):function(r,a){r.default=a}),__importStar=this&&this.__importStar||(function(){var r=function(a){return r=Object.getOwnPropertyNames||function(s){var n=[];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[n.length]=i);return n},r(a)};return function(a){if(a&&a.__esModule)return a;var s={};if(a!=null)for(var n=r(a),i=0;i<n.length;i++)n[i]!=="default"&&__createBinding(s,a,n[i]);return __setModuleDefault(s,a),s}})(),__importDefault=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.FloatingCaptureWidget=void 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")),NetworkIcons_1=require("../NetworkIcons"),capture_1=require("../../capture"),NativeInspector_1=require("../../native/NativeInspector"),toast_1=require("../../helpers/toast"),AppColors_1=require("../../styles/AppColors"),AppFonts_1=require("../../styles/AppFonts"),i18n_1=require("../../i18n"),MediaPreviewModal_1=require("./MediaPreviewModal"),FloatingCaptureWidget=()=>{const{refreshMediaCount:r,captureFps:a,captureScale:s,captureBitrate:n,captureMaxDurationSeconds:i,captureAudioMode:S,
|
|
1
|
+
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(r,a,s,n){n===void 0&&(n=s);var i=Object.getOwnPropertyDescriptor(a,s);(!i||("get"in i?!a.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return a[s]}}),Object.defineProperty(r,n,i)}):(function(r,a,s,n){n===void 0&&(n=s),r[n]=a[s]})),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?(function(r,a){Object.defineProperty(r,"default",{enumerable:!0,value:a})}):function(r,a){r.default=a}),__importStar=this&&this.__importStar||(function(){var r=function(a){return r=Object.getOwnPropertyNames||function(s){var n=[];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(n[n.length]=i);return n},r(a)};return function(a){if(a&&a.__esModule)return a;var s={};if(a!=null)for(var n=r(a),i=0;i<n.length;i++)n[i]!=="default"&&__createBinding(s,a,n[i]);return __setModuleDefault(s,a),s}})(),__importDefault=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.FloatingCaptureWidget=void 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")),NetworkIcons_1=require("../NetworkIcons"),capture_1=require("../../capture"),NativeInspector_1=require("../../native/NativeInspector"),toast_1=require("../../helpers/toast"),AppColors_1=require("../../styles/AppColors"),AppFonts_1=require("../../styles/AppFonts"),i18n_1=require("../../i18n"),MediaPreviewModal_1=require("./MediaPreviewModal"),FloatingCaptureWidget=()=>{const{refreshMediaCount:r,captureFps:a,captureScale:s,captureBitrate:n,captureMaxDurationSeconds:i,captureAudioMode:S,captureWidgetEnabled:T,activeTab:M,settingsPage:V,peekMode:k,previewMediaItem:y,setPreviewMediaItem:p,isUpdatePopupVisible:P}=(0,InspectorContext_1.useInspector)(),{t:d}=(0,i18n_1.useTranslation)(),[f,h]=(0,react_1.useState)(!1),[D,w]=(0,react_1.useState)(!1),[F,_]=(0,react_1.useState)(0),u=(0,react_1.useRef)(null),g=(0,react_1.useRef)(new react_native_1.Animated.Value(1)).current,v=(0,react_1.useRef)(new react_native_1.Animated.Value(0)).current,c=(0,react_1.useRef)(new react_native_1.Animated.ValueXY({x:0,y:0})).current,l=(0,react_1.useRef)({x:0,y:0});(0,react_1.useEffect)(()=>{const e=c.x.addListener(o=>l.current.x=o.value),t=c.y.addListener(o=>l.current.y=o.value);return()=>{c.x.removeListener(e),c.y.removeListener(t)}},[c]);const m=(0,react_1.useRef)(!1),O=(0,react_1.useRef)(react_native_1.PanResponder.create({onStartShouldSetPanResponder:()=>!0,onStartShouldSetPanResponderCapture:()=>!1,onMoveShouldSetPanResponder:(e,t)=>Math.abs(t.dx)>2||Math.abs(t.dy)>2,onMoveShouldSetPanResponderCapture:(e,t)=>Math.abs(t.dx)>4||Math.abs(t.dy)>4,onPanResponderGrant:()=>{m.current=!0,c.setOffset({x:l.current.x,y:l.current.y}),c.setValue({x:0,y:0})},onPanResponderMove:react_native_1.Animated.event([null,{dx:c.x,dy:c.y}],{useNativeDriver:!1}),onPanResponderTerminationRequest:()=>!1,onShouldBlockNativeResponder:()=>!0,onPanResponderRelease:()=>{c.flattenOffset(),setTimeout(()=>{m.current=!1},100);const{width:e,height:t}=react_native_1.Dimensions.get("window"),o=e/2-20,x=-o,R=20,A=-(t-140),b=l.current.x,C=l.current.y;if(b<x||b>o||C<A||C>R){const N=Math.min(Math.max(b,x),o),j=Math.min(Math.max(C,A),R);react_native_1.Animated.spring(c,{toValue:{x:N,y:j},friction:7,tension:50,useNativeDriver:!1}).start()}},onPanResponderTerminate:()=>{c.flattenOffset(),m.current=!1}})).current;(0,react_1.useEffect)(()=>{capture_1.ScreenCapture.isRecording().then(e=>{h(e)}).catch(()=>{})},[]),(0,react_1.useEffect)(()=>{let e=null;return f?(_(0),u.current=setInterval(()=>{_(t=>t+1)},1e3),e=react_native_1.Animated.loop(react_native_1.Animated.sequence([react_native_1.Animated.timing(g,{toValue:1.15,duration:500,useNativeDriver:!0}),react_native_1.Animated.timing(g,{toValue:1,duration:500,useNativeDriver:!0})])),e.start()):(u.current&&(clearInterval(u.current),u.current=null),_(0),g.setValue(1)),()=>{u.current&&clearInterval(u.current),e&&e.stop()}},[f,g]);const q=(0,react_1.useCallback)(async()=>{if(!m.current)try{(0,NativeInspector_1.triggerNativeHaptic)("light"),w(!0),await new Promise(t=>setTimeout(t,60));const e=await capture_1.ScreenCapture.takeScreenshot({format:"png",quality:.9,hideInspector:!1});if(w(!1),react_native_1.Animated.sequence([react_native_1.Animated.timing(v,{toValue:.65,duration:70,useNativeDriver:!0}),react_native_1.Animated.timing(v,{toValue:0,duration:200,useNativeDriver:!0})]).start(),e){(0,NativeInspector_1.triggerNativeHaptic)("success");const t=(0,capture_1.generateCaptureId)("screenshot",e.format||"png"),o={id:t,type:"image",format:e.format,uri:e.uri,filename:e.uri.split("/").pop()||t,sizeBytes:e.sizeBytes,timestamp:e.timestamp,width:e.width,height:e.height};p(o),r?.().catch(()=>{}),(0,toast_1.showToast)(d("header.screenshotCaptured","Screenshot captured"))}else(0,toast_1.showToast)(d("header.screenshotFailed","Failed to capture screenshot"))}catch{w(!1),(0,toast_1.showToast)(d("header.screenshotError","Error capturing screenshot"))}},[r,v,d]),I=(0,react_1.useCallback)(async()=>{if(!m.current)try{if(f){(0,NativeInspector_1.triggerNativeHaptic)("medium");const e=await capture_1.ScreenCapture.stopRecording();if(h(!1),e){(0,NativeInspector_1.triggerNativeHaptic)("success");const t=(0,capture_1.generateCaptureId)("video",e.format),o={id:t,type:e.format==="gif"?"gif":"video",format:e.format,uri:e.uri,filename:e.uri.split("/").pop()||t,sizeBytes:e.sizeBytes,timestamp:e.timestamp,durationMs:e.durationMs,width:e.width,height:e.height,hasAudio:e.hasAudio,thumbnailUri:e.thumbnailUri};p(o),r?.().catch(()=>{}),(0,toast_1.showToast)(d("header.recordingSaved",{duration:(e.durationMs/1e3).toFixed(1),defaultValue:`Recording saved (${(e.durationMs/1e3).toFixed(1)}s)`}))}}else(0,NativeInspector_1.triggerNativeHaptic)("medium"),h(!0),await capture_1.ScreenCapture.startRecording({fps:a,scale:s,audioSource:S,bitrate:n>0?n:void 0,maxDurationSeconds:i})?(0,toast_1.showToast)(d("header.recordingStarted","Recording started")):(h(!1),(0,toast_1.showToast)(d("header.recordingStartFailed","Failed to start recording")))}catch{(0,toast_1.showToast)(d("header.recordingError","Error during screen recording")),h(!1)}},[f,a,s,n,i,S,r,d]),B=e=>{const t=Math.floor(e/60),o=e%60;return`${t<10?"0":""}${t}:${o<10?"0":""}${o}`};return!T||M==="media"||V==="media"||P?null:<>
|
|
2
2
|
|
|
3
3
|
<react_native_1.Animated.View pointerEvents="none"style={[styles.flashOverlay,{opacity:v}]}/>
|
|
4
4
|
|
|
5
|
-
{!
|
|
5
|
+
{!D&&!y&&<react_native_1.Animated.View{...O.panHandlers}style={[styles.container,{transform:c.getTranslateTransform()}]}>
|
|
6
6
|
|
|
7
7
|
{f?<react_native_1.View style={styles.recordingShadowWrapper}>
|
|
8
8
|
<TouchableScale_1.default onPress={I}style={styles.recordingPillWrapper}>
|
|
9
9
|
<react_native_linear_gradient_1.default colors={[AppColors_1.AppColors.rose600,AppColors_1.AppColors.rose700]}start={{x:0,y:0}}end={{x:1,y:0}}style={styles.recordingPill}>
|
|
10
10
|
<react_native_1.Animated.View style={[styles.recordingDot,{transform:[{scale:g}]}]}/>
|
|
11
11
|
<react_native_1.Text style={styles.recordingText}>
|
|
12
|
-
REC {
|
|
12
|
+
REC {B(F)}
|
|
13
13
|
</react_native_1.Text>
|
|
14
14
|
<react_native_1.View style={styles.stopIconBadge}>
|
|
15
15
|
<react_native_1.View style={styles.stopIconSquare}/>
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
</react_native_1.View>:<react_native_1.View style={styles.dockShadowWrapper}>
|
|
20
20
|
<react_native_linear_gradient_1.default colors={[AppColors_1.AppColors.navy900,AppColors_1.AppColors.navy800,AppColors_1.AppColors.navy900]}start={{x:0,y:0}}end={{x:1,y:0}}style={styles.dockBar}>
|
|
21
21
|
|
|
22
|
-
<TouchableScale_1.default onPress={
|
|
22
|
+
<TouchableScale_1.default onPress={q}style={styles.menuItemBtn}accessible={!0}accessibilityLabel="Take Screenshot">
|
|
23
23
|
<react_native_1.View style={[styles.menuItemIconCircle,{backgroundColor:`${AppColors_1.AppColors.sky400}38`}]}>
|
|
24
24
|
<NetworkIcons_1.ScreenshotCaptureIcon size={14}color={AppColors_1.AppColors.sky400}/>
|
|
25
25
|
</react_native_1.View>
|
|
@@ -1,18 +1,18 @@
|
|
|
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"),MediaPreviewModal_1=require("./MediaPreviewModal"),LanguageSelectorModal_1=require("./LanguageSelectorModal"),CountryFlag_1=__importDefault(require("../CountryFlag")),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:F,selectedEvent:
|
|
2
|
-
<react_native_1.View style={[styles_1.default.headerGradient,{minHeight:(e?44:48)+
|
|
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"),MediaPreviewModal_1=require("./MediaPreviewModal"),LanguageSelectorModal_1=require("./LanguageSelectorModal"),CountryFlag_1=__importDefault(require("../CountryFlag")),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:F,selectedEvent:h,setSelectedEvent:E,selectedLog:g,setSelectedLog:N,selectedReduxSlice:b,setSelectedReduxSlice:q,selectedReduxAction:S,setSelectedReduxAction:j,reduxState:U,reduxLastActionMap:G,clearAnim:ae,runClearAllWithAnimation:oe,settingsPage:_,setSettingsPage:z,isAboutOpen:D,setIsAboutOpen:M,resetToDefaults:K,closeModal:B,minimizeInspector:Q,detailTitle:J,activeTab:d,environment:O,selectedCrash:p,setSelectedCrash:X,selectedPush:c,setSelectedPush:Y,selectedSocket:o,setSelectedSocket:Z,refreshMediaCount:C,peekMode:I,setPeekMode:ee,previewMediaItem:L,setPreviewMediaItem:m}=(0,InspectorContext_1.useInspector)(),{width:T}=(0,react_native_1.useWindowDimensions)(),e=T<360,y=T<400,[le,ne]=react_1.default.useState(!1),[te,P]=react_1.default.useState(!1),[re]=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]),[x,v]=react_1.default.useState(!1),[se,k]=react_1.default.useState(0),w=react_1.default.useRef(null);react_1.default.useEffect(()=>{capture_1.ScreenCapture.isRecording().then(t=>{v(t)}).catch(()=>{})},[]),react_1.default.useEffect(()=>(x?(k(0),w.current=setInterval(()=>{k(t=>t+1)},1e3)):(w.current&&(clearInterval(w.current),w.current=null),k(0)),()=>{w.current&&clearInterval(w.current)}),[x]);const de=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]),ce=react_1.default.useCallback(async()=>{try{if(x){(0,NativeInspector_1.triggerNativeHaptic)("medium");const t=await capture_1.ScreenCapture.stopRecording();if(v(!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"})?(v(!0),(0,helpers_1.showToast)(r("header.recordingStarted"))):(0,helpers_1.showToast)(r("header.recordingStartFailed"))}catch{(0,helpers_1.showToast)(r("header.recordingError")),v(!1)}},[x,r]),pe=t=>{const a=Math.floor(t/60),f=t%60;return`${a.toString().padStart(2,"0")}:${f.toString().padStart(2,"0")}`},ue=(0,react_1.useMemo)(()=>{const t=(O||(__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}},[O]),V=d==="apis"&&i!=null||d==="analytics"&&h!=null||d==="logs"&&g!=null||d==="redux"&&(b!=null||S!=null)||d==="crash"&&p!=null||d==="push"&&c!=null||d==="socket"&&o!=null,A=_!==null,R=V||A||D,ie=(0,react_1.useMemo)(()=>{switch(_){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"}},[_]),H=(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]),u=e?24:y?25.5:26,he=e?36:y?38:40;return<>
|
|
2
|
+
<react_native_1.View style={[styles_1.default.headerGradient,{minHeight:(e?44:48)+H}]}>
|
|
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
|
-
<react_native_1.View style={{paddingTop:
|
|
6
|
-
<react_native_1.View style={[styles_1.default.header,{width:"100%",justifyContent:"space-between",paddingHorizontal:e?10
|
|
7
|
-
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:e?
|
|
8
|
-
{
|
|
9
|
-
<react_native_1.View style={{position:"absolute",width:e?
|
|
5
|
+
<react_native_1.View style={{paddingTop:H,width:"100%"}}>
|
|
6
|
+
<react_native_1.View style={[styles_1.default.header,{width:"100%",justifyContent:"space-between",paddingHorizontal:e?8:10,paddingVertical:5,minHeight:e?44:48}]}>
|
|
7
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:e?6:8,flex:V?void 0:1,flexShrink:V?0:1,minWidth:0}}>
|
|
8
|
+
{R&&<TouchableScale_1.default onPress={()=>{if(D){M(!1);return}if(A){z(_==="main"?null:"main");return}F(null),E(null),N(null),q(null),j(null),X(null),Y(null),Z(null)}}hitSlop={15}style={{width:e?30:34,height:e?30:34,borderRadius:e?15:17,alignItems:"center",justifyContent:"center",backgroundColor:`${AppColors_1.AppColors.white}2E`,borderWidth:1,borderColor:`${AppColors_1.AppColors.white}4D`,flexShrink:0}}>
|
|
9
|
+
<react_native_1.View style={{position:"absolute",width:e?38:42,height:e?38:42,borderRadius:21,backgroundColor:`${AppColors_1.AppColors.white}1A`}}/>
|
|
10
10
|
<NetworkIcons_1.WhiteBackNavigation/>
|
|
11
11
|
</TouchableScale_1.default>}
|
|
12
12
|
|
|
13
|
-
{D?<react_native_1.View style={{gap:
|
|
13
|
+
{D?<react_native_1.View style={{gap:2.5,flex:1,minWidth:0,marginRight:6,justifyContent:"center"}}>
|
|
14
14
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:6}}>
|
|
15
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:e?
|
|
15
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:e?14.5:16,lineHeight:e?18:20,color:AppColors_1.AppColors.white,letterSpacing:-.2}}numberOfLines={1}>
|
|
16
16
|
About & Specs
|
|
17
17
|
</react_native_1.Text>
|
|
18
18
|
<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`}}>
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
</react_native_1.Text>
|
|
22
22
|
</react_native_1.View>
|
|
23
23
|
</react_native_1.View>
|
|
24
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:e?10:11,lineHeight:e?14
|
|
24
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:e?10:11,lineHeight:e?13.5:14.5,color:`${AppColors_1.AppColors.white}CC`,marginTop:.5}}numberOfLines={1}ellipsizeMode="tail">
|
|
25
25
|
Package info, runtime specs & diagnostic payload
|
|
26
26
|
</react_native_1.Text>
|
|
27
|
-
</react_native_1.View>:A?<react_native_1.View style={{gap:
|
|
27
|
+
</react_native_1.View>:A?<react_native_1.View style={{gap:2.5,flex:1,minWidth:0,marginRight:6,justifyContent:"center"}}>
|
|
28
28
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:6}}>
|
|
29
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:e?
|
|
29
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:e?14.5:16,lineHeight:e?19:21,color:AppColors_1.AppColors.white,letterSpacing:-.2}}numberOfLines={1}>
|
|
30
30
|
{ie}
|
|
31
31
|
</react_native_1.Text>
|
|
32
32
|
{_==="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`}}>
|
|
@@ -35,40 +35,40 @@
|
|
|
35
35
|
</react_native_1.Text>
|
|
36
36
|
</react_native_1.View>}
|
|
37
37
|
</react_native_1.View>
|
|
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:
|
|
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:2}}numberOfLines={1}ellipsizeMode="tail">
|
|
39
39
|
{_==="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?
|
|
41
|
+
</react_native_1.View>:R?null:<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:e?7:8.5,flex:1,minWidth:0,marginRight:6}}>
|
|
42
|
+
<BrandCircleIcon_1.BrandCircleIcon size={e?38:y?40:42}/>
|
|
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?
|
|
45
|
+
<react_native_1.Text style={[styles_1.default.headerTitle,{fontFamily:AppFonts_1.AppFonts.interBold,fontWeight:"700",fontSize:e?12.5:y?13:14,lineHeight:e?17:y?18:19,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
|
-
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:4
|
|
50
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:4,minWidth:0,marginTop:2,flexWrap:"nowrap",overflow:"hidden"}}>
|
|
51
51
|
|
|
52
|
-
<TouchableScale_1.default onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),
|
|
53
|
-
<CountryFlag_1.default code={$?.code||"en"}size={9
|
|
54
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8
|
|
52
|
+
<TouchableScale_1.default onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),P(!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,paddingVertical:1.5,gap:3,borderWidth:1,borderColor:`${AppColors_1.AppColors.white}38`,flexShrink:0}}>
|
|
53
|
+
<CountryFlag_1.default code={$?.code||"en"}size={9}borderRadius={2}/>
|
|
54
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8,lineHeight:10.5,color:AppColors_1.AppColors.white,letterSpacing:.2}}numberOfLines={1}>
|
|
55
55
|
{$?.code?.toUpperCase()||"EN"}
|
|
56
56
|
</react_native_1.Text>
|
|
57
|
-
<NetworkIcons_1.ChevronDownIcon size={6
|
|
57
|
+
<NetworkIcons_1.ChevronDownIcon size={6}color={`${AppColors_1.AppColors.white}CC`}/>
|
|
58
58
|
</TouchableScale_1.default>
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
<react_native_1.View style={{flexDirection:"row",alignItems:"center",backgroundColor:`${AppColors_1.AppColors.white}1F`,borderRadius:5,paddingHorizontal:5
|
|
62
|
-
{react_native_1.Platform.OS==="ios"?<NetworkIcons_1.AppleIcon color={`${AppColors_1.AppColors.white}E6`}size={
|
|
63
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:8
|
|
61
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",backgroundColor:`${AppColors_1.AppColors.white}1F`,borderRadius:5,paddingHorizontal:5,paddingVertical:1.5,gap:3,borderWidth:1,borderColor:`${AppColors_1.AppColors.white}2E`,flexShrink:1,minWidth:0}}>
|
|
62
|
+
{react_native_1.Platform.OS==="ios"?<NetworkIcons_1.AppleIcon color={`${AppColors_1.AppColors.white}E6`}size={8.5}/>:<NetworkIcons_1.AndroidIcon color={`${AppColors_1.AppColors.white}E6`}size={8.5}/>}
|
|
63
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:8,lineHeight:10.5,color:`${AppColors_1.AppColors.white}EB`,letterSpacing:.1}}numberOfLines={1}ellipsizeMode="tail">
|
|
64
64
|
{re}
|
|
65
65
|
</react_native_1.Text>
|
|
66
66
|
</react_native_1.View>
|
|
67
67
|
|
|
68
68
|
|
|
69
|
-
<react_native_1.Pressable onPress={()=>{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:
|
|
70
|
-
<NetworkIcons_1.NpmIcon size={
|
|
71
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:8
|
|
69
|
+
<react_native_1.Pressable onPress={()=>{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:5.5,paddingVertical:1.5,gap:3,borderWidth:1,borderColor:`${AppColors_1.AppColors.white}2E`,flexShrink:0}}>
|
|
70
|
+
<NetworkIcons_1.NpmIcon size={8.5}color={AppColors_1.AppColors.npmRedLight}/>
|
|
71
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:8,lineHeight:10.5,color:`${AppColors_1.AppColors.white}EB`,letterSpacing:.1}}>
|
|
72
72
|
v{constants_2.LIB_VERSION}
|
|
73
73
|
</react_native_1.Text>
|
|
74
74
|
</react_native_1.Pressable>
|
|
@@ -77,15 +77,15 @@
|
|
|
77
77
|
</react_native_1.View>}
|
|
78
78
|
</react_native_1.View>
|
|
79
79
|
|
|
80
|
-
{
|
|
80
|
+
{V&&<react_native_1.View style={[styles_1.default.headerCenter,{flex:1,minWidth:0,flexShrink:1,paddingHorizontal:e?3:6,overflow:"hidden"}]}>
|
|
81
81
|
{d==="apis"&&i!=null?<react_native_1.View style={styles_1.default.headerDetailCenter}>
|
|
82
82
|
<react_native_1.View style={styles_1.default.headerDetailRow}>
|
|
83
|
-
<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}]}>
|
|
83
|
+
<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,flexShrink:0}]}>
|
|
84
84
|
<react_native_1.Text style={[styles_1.default.headerMethodText,{fontSize:e?9:10}]}>
|
|
85
85
|
{i.method}
|
|
86
86
|
</react_native_1.Text>
|
|
87
87
|
</react_native_1.View>
|
|
88
|
-
<react_native_1.Text style={[styles_1.default.headerDetailTitle,{fontSize:e?13.5:
|
|
88
|
+
<react_native_1.Text style={[styles_1.default.headerDetailTitle,{fontSize:e?13:14.5,flex:1,minWidth:0,flexShrink:1}]}numberOfLines={1}ellipsizeMode="middle">
|
|
89
89
|
{J}
|
|
90
90
|
</react_native_1.Text>
|
|
91
91
|
</react_native_1.View>
|
|
@@ -109,35 +109,35 @@
|
|
|
109
109
|
</react_native_1.Text>
|
|
110
110
|
</react_native_1.View>}
|
|
111
111
|
</react_native_1.View>
|
|
112
|
-
</react_native_1.View>:d==="analytics"&&
|
|
112
|
+
</react_native_1.View>:d==="analytics"&&h!=null?<react_native_1.View style={styles_1.default.headerDetailCenter}>
|
|
113
113
|
<react_native_1.View style={styles_1.default.headerDetailRow}>
|
|
114
|
-
<react_native_1.View style={[styles_1.default.headerMethodBadge,{backgroundColor:
|
|
114
|
+
<react_native_1.View style={[styles_1.default.headerMethodBadge,{backgroundColor:h.source==="firebase"?`${AppColors_1.AppColors.firebaseOrange}4D`:`${AppColors_1.AppColors.purple}4D`,paddingHorizontal:e?5:6,paddingVertical:e?2:3,flexShrink:0}]}>
|
|
115
115
|
<react_native_1.Text style={[styles_1.default.headerMethodText,{fontSize:e?9:10}]}>
|
|
116
|
-
{
|
|
116
|
+
{h.source==="firebase"?"FB":"MAN"}
|
|
117
117
|
</react_native_1.Text>
|
|
118
118
|
</react_native_1.View>
|
|
119
|
-
<react_native_1.Text style={[styles_1.default.headerDetailTitle,{fontSize:e?13.5:
|
|
120
|
-
#{
|
|
121
|
-
{
|
|
119
|
+
<react_native_1.Text style={[styles_1.default.headerDetailTitle,{fontSize:e?13:14.5,flex:1,minWidth:0,flexShrink:1}]}numberOfLines={1}ellipsizeMode="middle">
|
|
120
|
+
#{h.id!=null?h.id+1:1}{" "}
|
|
121
|
+
{h.name}
|
|
122
122
|
</react_native_1.Text>
|
|
123
123
|
</react_native_1.View>
|
|
124
124
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:e?4:6,marginTop:3,paddingVertical:1}}>
|
|
125
|
-
<react_native_1.View style={[styles_1.default.headerStatusDot,{backgroundColor:
|
|
125
|
+
<react_native_1.View style={[styles_1.default.headerStatusDot,{backgroundColor:h.source==="firebase"?AppColors_1.AppColors.firebaseOrange:AppColors_1.AppColors.purple,width:e?6:7,height:e?6:7}]}/>
|
|
126
126
|
<react_native_1.Text style={[styles_1.default.headerSubTitle,{fontSize:e?10:11}]}>
|
|
127
|
-
{Object.keys(
|
|
128
|
-
{Object.keys(
|
|
127
|
+
{Object.keys(h.params).length} param
|
|
128
|
+
{Object.keys(h.params).length!==1?"s":""}
|
|
129
129
|
{" \xB7 "}
|
|
130
|
-
{
|
|
130
|
+
{h.source}
|
|
131
131
|
</react_native_1.Text>
|
|
132
132
|
</react_native_1.View>
|
|
133
133
|
</react_native_1.View>:d==="logs"&&g!=null?<react_native_1.View style={styles_1.default.headerDetailCenter}>
|
|
134
134
|
<react_native_1.View style={styles_1.default.headerDetailRow}>
|
|
135
|
-
<react_native_1.View style={[styles_1.default.headerMethodBadge,{backgroundColor:g.type==="error"?`${AppColors_1.AppColors.errorColor}4D`:g.type==="warn"?`${AppColors_1.AppColors.lightOrange}4D`:`${AppColors_1.AppColors.purple}4D`,paddingHorizontal:e?5:6,paddingVertical:e?2:3}]}>
|
|
135
|
+
<react_native_1.View style={[styles_1.default.headerMethodBadge,{backgroundColor:g.type==="error"?`${AppColors_1.AppColors.errorColor}4D`:g.type==="warn"?`${AppColors_1.AppColors.lightOrange}4D`:`${AppColors_1.AppColors.purple}4D`,paddingHorizontal:e?5:6,paddingVertical:e?2:3,flexShrink:0}]}>
|
|
136
136
|
<react_native_1.Text style={[styles_1.default.headerMethodText,{fontSize:e?9:10}]}>
|
|
137
137
|
{g.type.toUpperCase()}
|
|
138
138
|
</react_native_1.Text>
|
|
139
139
|
</react_native_1.View>
|
|
140
|
-
<react_native_1.Text style={[styles_1.default.headerDetailTitle,{fontSize:e?13.5:
|
|
140
|
+
<react_native_1.Text style={[styles_1.default.headerDetailTitle,{fontSize:e?13:14.5,flex:1,minWidth:0,flexShrink:1}]}numberOfLines={1}ellipsizeMode="middle">
|
|
141
141
|
#{g.id!=null?g.id+1:1}{" "}
|
|
142
142
|
console.
|
|
143
143
|
{g.sourceMethod||g.type||"log"}
|
|
@@ -151,14 +151,14 @@
|
|
|
151
151
|
</react_native_1.Text>
|
|
152
152
|
</react_native_1.View>
|
|
153
153
|
</react_native_1.View>
|
|
154
|
-
</react_native_1.View>:d==="redux"&&b!=null?(()=>{const t=
|
|
154
|
+
</react_native_1.View>:d==="redux"&&b!=null?(()=>{const t=U?.[b],a=t&&typeof t=="object"?Object.keys(t).length:typeof t<"u"?1:0,f=(0,helpers_1.getSize)(t),W=G[b];return<react_native_1.View style={styles_1.default.headerDetailCenter}>
|
|
155
155
|
<react_native_1.View style={styles_1.default.headerDetailRow}>
|
|
156
|
-
<react_native_1.View style={[styles_1.default.headerMethodBadge,{backgroundColor:`${AppColors_1.AppColors.purple}4D`,paddingHorizontal:e?5:6,paddingVertical:e?2:3}]}>
|
|
156
|
+
<react_native_1.View style={[styles_1.default.headerMethodBadge,{backgroundColor:`${AppColors_1.AppColors.purple}4D`,paddingHorizontal:e?5:6,paddingVertical:e?2:3,flexShrink:0}]}>
|
|
157
157
|
<react_native_1.Text style={[styles_1.default.headerMethodText,{fontSize:e?9:10}]}>
|
|
158
158
|
SLICE
|
|
159
159
|
</react_native_1.Text>
|
|
160
160
|
</react_native_1.View>
|
|
161
|
-
<react_native_1.Text style={[styles_1.default.headerDetailTitle,{fontSize:e?13.5:
|
|
161
|
+
<react_native_1.Text style={[styles_1.default.headerDetailTitle,{fontSize:e?13:14.5,flex:1,minWidth:0,flexShrink:1}]}numberOfLines={1}ellipsizeMode="middle">
|
|
162
162
|
{b}
|
|
163
163
|
</react_native_1.Text>
|
|
164
164
|
</react_native_1.View>
|
|
@@ -179,26 +179,26 @@
|
|
|
179
179
|
<react_native_1.Text style={[styles_1.default.headerSubTitle,{fontSize:e?10:11}]}>
|
|
180
180
|
{f}
|
|
181
181
|
</react_native_1.Text>
|
|
182
|
-
{
|
|
182
|
+
{W?.timestamp&&<>
|
|
183
183
|
<react_native_1.Text style={[styles_1.default.headerSubTitle,{opacity:.6,fontSize:e?10:11}]}>
|
|
184
184
|
•
|
|
185
185
|
</react_native_1.Text>
|
|
186
186
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:3}}>
|
|
187
187
|
<NetworkIcons_1.ClockIcon color={AppColors_1.AppColors.white}size={e?9:10}/>
|
|
188
188
|
<react_native_1.Text style={[styles_1.default.headerSubTitle,{fontSize:e?10:11}]}>
|
|
189
|
-
{
|
|
189
|
+
{W.timestamp}
|
|
190
190
|
</react_native_1.Text>
|
|
191
191
|
</react_native_1.View>
|
|
192
192
|
</>}
|
|
193
193
|
</react_native_1.View>
|
|
194
194
|
</react_native_1.View>})():d==="redux"&&S!=null?<react_native_1.View style={styles_1.default.headerDetailCenter}>
|
|
195
195
|
<react_native_1.View style={styles_1.default.headerDetailRow}>
|
|
196
|
-
<react_native_1.View style={[styles_1.default.headerMethodBadge,{backgroundColor:`${AppColors_1.AppColors.brandPurple}4D`,paddingHorizontal:e?5:6,paddingVertical:e?2:3}]}>
|
|
196
|
+
<react_native_1.View style={[styles_1.default.headerMethodBadge,{backgroundColor:`${AppColors_1.AppColors.brandPurple}4D`,paddingHorizontal:e?5:6,paddingVertical:e?2:3,flexShrink:0}]}>
|
|
197
197
|
<react_native_1.Text style={[styles_1.default.headerMethodText,{fontSize:e?9:10}]}>
|
|
198
198
|
ACTION
|
|
199
199
|
</react_native_1.Text>
|
|
200
200
|
</react_native_1.View>
|
|
201
|
-
<react_native_1.Text style={[styles_1.default.headerDetailTitle,{fontSize:e?13.5:
|
|
201
|
+
<react_native_1.Text style={[styles_1.default.headerDetailTitle,{fontSize:e?13:14.5,flex:1,minWidth:0,flexShrink:1}]}numberOfLines={1}ellipsizeMode="middle">
|
|
202
202
|
{S.type}
|
|
203
203
|
</react_native_1.Text>
|
|
204
204
|
</react_native_1.View>
|
|
@@ -210,12 +210,12 @@
|
|
|
210
210
|
</react_native_1.View>
|
|
211
211
|
</react_native_1.View>:d==="crash"&&p!=null?<react_native_1.View style={styles_1.default.headerDetailCenter}>
|
|
212
212
|
<react_native_1.View style={styles_1.default.headerDetailRow}>
|
|
213
|
-
<react_native_1.View style={[styles_1.default.headerMethodBadge,{backgroundColor:p.isFatal?AppColors_1.AppColors.red600:AppColors_1.AppColors.amber600,paddingHorizontal:e?5:6,paddingVertical:e?2:3}]}>
|
|
213
|
+
<react_native_1.View style={[styles_1.default.headerMethodBadge,{backgroundColor:p.isFatal?AppColors_1.AppColors.red600:AppColors_1.AppColors.amber600,paddingHorizontal:e?5:6,paddingVertical:e?2:3,flexShrink:0}]}>
|
|
214
214
|
<react_native_1.Text style={[styles_1.default.headerMethodText,{fontSize:e?9:10}]}>
|
|
215
215
|
{p.isFatal?"FATAL":p.type.toUpperCase()}
|
|
216
216
|
</react_native_1.Text>
|
|
217
217
|
</react_native_1.View>
|
|
218
|
-
<react_native_1.Text style={[styles_1.default.headerDetailTitle,{fontSize:e?13.5:
|
|
218
|
+
<react_native_1.Text style={[styles_1.default.headerDetailTitle,{fontSize:e?13:14.5,flex:1,minWidth:0,flexShrink:1}]}numberOfLines={1}ellipsizeMode="middle">
|
|
219
219
|
{p.name||p.message}
|
|
220
220
|
</react_native_1.Text>
|
|
221
221
|
</react_native_1.View>
|
|
@@ -235,12 +235,12 @@
|
|
|
235
235
|
</react_native_1.View>
|
|
236
236
|
</react_native_1.View>:d==="push"&&c!=null?<react_native_1.View style={styles_1.default.headerDetailCenter}>
|
|
237
237
|
<react_native_1.View style={styles_1.default.headerDetailRow}>
|
|
238
|
-
<react_native_1.View style={[styles_1.default.headerMethodBadge,{backgroundColor:AppColors_1.AppColors.brandPurple,paddingHorizontal:e?5:6,paddingVertical:e?2:3}]}>
|
|
238
|
+
<react_native_1.View style={[styles_1.default.headerMethodBadge,{backgroundColor:AppColors_1.AppColors.brandPurple,paddingHorizontal:e?5:6,paddingVertical:e?2:3,flexShrink:0}]}>
|
|
239
239
|
<react_native_1.Text style={[styles_1.default.headerMethodText,{fontSize:e?9:10}]}>
|
|
240
240
|
{(c.source||"PUSH").toUpperCase()}
|
|
241
241
|
</react_native_1.Text>
|
|
242
242
|
</react_native_1.View>
|
|
243
|
-
<react_native_1.Text style={[styles_1.default.headerDetailTitle,{fontSize:e?13:14.5,flex:1,minWidth:0}]}numberOfLines={1}ellipsizeMode="tail">
|
|
243
|
+
<react_native_1.Text style={[styles_1.default.headerDetailTitle,{fontSize:e?13:14.5,flex:1,minWidth:0,flexShrink:1}]}numberOfLines={1}ellipsizeMode="tail">
|
|
244
244
|
{c.title||c.body||"Push Notification"}
|
|
245
245
|
</react_native_1.Text>
|
|
246
246
|
</react_native_1.View>
|
|
@@ -260,12 +260,12 @@
|
|
|
260
260
|
</react_native_1.View>
|
|
261
261
|
</react_native_1.View>:d==="socket"&&o!=null?<react_native_1.View style={styles_1.default.headerDetailCenter}>
|
|
262
262
|
<react_native_1.View style={styles_1.default.headerDetailRow}>
|
|
263
|
-
<react_native_1.View style={[styles_1.default.headerMethodBadge,{backgroundColor:o.client==="socket.io"||o.url.includes("/socket.io")?AppColors_1.AppColors.violet600:o.url.startsWith("wss://")?AppColors_1.AppColors.emerald600:AppColors_1.AppColors.blue600,paddingHorizontal:e?5:6,paddingVertical:e?2:3}]}>
|
|
263
|
+
<react_native_1.View style={[styles_1.default.headerMethodBadge,{backgroundColor:o.client==="socket.io"||o.url.includes("/socket.io")?AppColors_1.AppColors.violet600:o.url.startsWith("wss://")?AppColors_1.AppColors.emerald600:AppColors_1.AppColors.blue600,paddingHorizontal:e?5:6,paddingVertical:e?2:3,flexShrink:0}]}>
|
|
264
264
|
<react_native_1.Text style={[styles_1.default.headerMethodText,{fontSize:e?9:10}]}>
|
|
265
265
|
{o.client==="socket.io"||o.url.includes("/socket.io")?"SIO":o.url.startsWith("wss://")?"WSS":"WS"}
|
|
266
266
|
</react_native_1.Text>
|
|
267
267
|
</react_native_1.View>
|
|
268
|
-
<react_native_1.Text style={[styles_1.default.headerDetailTitle,{fontSize:e?13.5:
|
|
268
|
+
<react_native_1.Text style={[styles_1.default.headerDetailTitle,{fontSize:e?13:14.5,flex:1,minWidth:0,flexShrink:1}]}numberOfLines={1}ellipsizeMode="middle">
|
|
269
269
|
{o.url}
|
|
270
270
|
</react_native_1.Text>
|
|
271
271
|
</react_native_1.View>
|
|
@@ -292,29 +292,37 @@
|
|
|
292
292
|
</react_native_1.View>:null}
|
|
293
293
|
</react_native_1.View>}
|
|
294
294
|
|
|
295
|
-
<react_native_1.View style={[styles_1.default.headerRight,{flexDirection:"row",alignItems:"center",justifyContent:"flex-end",flexShrink:0,gap:e?4
|
|
295
|
+
<react_native_1.View style={[styles_1.default.headerRight,{flexDirection:"row",alignItems:"center",justifyContent:"flex-end",flexShrink:0,marginLeft:6,gap:e?3.5:4.5}]}>
|
|
296
296
|
|
|
297
|
-
{A
|
|
298
|
-
<NetworkIcons_1.ResetIcon color={AppColors_1.AppColors.white}size={e?12:14}/>
|
|
299
|
-
</TouchableScale_1.default>:M?null:<>
|
|
297
|
+
{A?<>
|
|
300
298
|
|
|
301
|
-
<TouchableScale_1.default accessible={!0}accessibilityRole="button"accessibilityLabel={
|
|
299
|
+
<TouchableScale_1.default accessible={!0}accessibilityRole="button"accessibilityLabel={r("about.heroTitle","About & Specs")}onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),M(!0)}}hitSlop={15}style={[styles_1.default.closeButtonSquare,{width:u,height:u,borderRadius:e?6:7,backgroundColor:"rgba(255, 255, 255, 0.22)",borderColor:"rgba(255, 255, 255, 0.45)",borderWidth:1}]}>
|
|
300
|
+
<NetworkIcons_1.InfoCircleIcon color={AppColors_1.AppColors.white}size={e?13:15}/>
|
|
301
|
+
</TouchableScale_1.default>
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
<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:K}])}}hitSlop={15}style={[styles_1.default.closeButtonSquare,{width:u,height:u,borderRadius:e?6:7,backgroundColor:"rgba(245, 158, 11, 0.26)",borderColor:"rgba(252, 211, 77, 0.45)",borderWidth:1}]}>
|
|
305
|
+
<NetworkIcons_1.ResetIcon color={AppColors_1.AppColors.white}size={e?12:14}/>
|
|
306
|
+
</TouchableScale_1.default>
|
|
307
|
+
</>:R?null:<>
|
|
308
|
+
|
|
309
|
+
<TouchableScale_1.default accessible={!0}accessibilityRole="button"accessibilityLabel={I?"Disable peek-through":"Enable peek-through"}onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),ee(t=>!t)}}hitSlop={15}style={[styles_1.default.closeButtonSquare,{width:u,height:u,borderRadius:e?6:7,backgroundColor:I?"rgba(6, 182, 212, 0.38)":"rgba(6, 182, 212, 0.18)",borderColor:I?"rgba(103, 232, 249, 0.65)":"rgba(103, 232, 249, 0.35)",borderWidth:1}]}>
|
|
302
310
|
<NetworkIcons_1.EyeIcon color={AppColors_1.AppColors.white}size={e?12:14}/>
|
|
303
311
|
</TouchableScale_1.default>
|
|
304
312
|
|
|
305
313
|
|
|
306
|
-
<TouchableScale_1.default accessible={!0}accessibilityRole="button"accessibilityLabel="Settings"onPress={()=>z("main")}hitSlop={15}style={[styles_1.default.closeButtonSquare,{width:
|
|
314
|
+
<TouchableScale_1.default accessible={!0}accessibilityRole="button"accessibilityLabel="Settings"onPress={()=>z("main")}hitSlop={15}style={[styles_1.default.closeButtonSquare,{width:u,height:u,borderRadius:e?6:7,backgroundColor:"rgba(168, 85, 247, 0.28)",borderColor:"rgba(216, 180, 254, 0.45)",borderWidth:1}]}>
|
|
307
315
|
<NetworkIcons_1.SettingsIcon color={AppColors_1.AppColors.white}size={e?12:14}/>
|
|
308
316
|
</TouchableScale_1.default>
|
|
309
317
|
</>}
|
|
310
318
|
|
|
311
319
|
|
|
312
|
-
<react_native_1.TouchableOpacity testID="inspector.header.minimizeBtn"onPress={Q||
|
|
320
|
+
<react_native_1.TouchableOpacity testID="inspector.header.minimizeBtn"onPress={Q||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:u,height:u,borderRadius:e?6:7,backgroundColor:"rgba(56, 189, 248, 0.22)",borderColor:"rgba(125, 211, 252, 0.40)",borderWidth:1}]}>
|
|
313
321
|
<NetworkIcons_1.ChevronDownIcon size={e?14:16}color={AppColors_1.AppColors.white}/>
|
|
314
322
|
</react_native_1.TouchableOpacity>
|
|
315
323
|
|
|
316
324
|
|
|
317
|
-
<react_native_1.TouchableOpacity testID="inspector.header.closeBtn"onPress={
|
|
325
|
+
<react_native_1.TouchableOpacity testID="inspector.header.closeBtn"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:u,height:u,borderRadius:e?6:7,backgroundColor:"rgba(244, 63, 94, 0.28)",borderColor:"rgba(251, 113, 133, 0.48)",borderWidth:1}]}>
|
|
318
326
|
<NetworkIcons_1.CloseWhite size={e?12:14}/>
|
|
319
327
|
</react_native_1.TouchableOpacity>
|
|
320
328
|
</react_native_1.View>
|
|
@@ -323,8 +331,8 @@
|
|
|
323
331
|
</react_native_1.View>
|
|
324
332
|
|
|
325
333
|
|
|
326
|
-
<LanguageSelectorModal_1.LanguageSelectorModal visible={te}onClose={()=>
|
|
334
|
+
<LanguageSelectorModal_1.LanguageSelectorModal visible={te}onClose={()=>P(!1)}/>
|
|
327
335
|
|
|
328
336
|
|
|
329
|
-
<MediaPreviewModal_1.MediaPreviewModal item={
|
|
337
|
+
<MediaPreviewModal_1.MediaPreviewModal item={L}visible={!!L}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})}}}/>
|
|
330
338
|
</>});exports.default=InspectorHeader;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(o,e,r,a){a===void 0&&(a=r);var l=Object.getOwnPropertyDescriptor(e,r);(!l||("get"in l?!e.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(o,a,l)}):(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 l in r)Object.prototype.hasOwnProperty.call(r,l)&&(a[a.length]=l);return a},o(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var a=o(e),l=0;l<a.length;l++)a[l]!=="default"&&__createBinding(r,e,a[l]);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:l,selectedEvent:p,selectedLog:_,selectedReduxSlice:S,selectedReduxAction:w,selectedCrash:b,selectedPush:m,setSelectedPush:C,selectedSocket:g,setSelectedSocket:v,settingsPage:n,isAboutOpen:u,setIsAboutOpen:A,isSupportOpen:
|
|
1
|
+
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(o,e,r,a){a===void 0&&(a=r);var l=Object.getOwnPropertyDescriptor(e,r);(!l||("get"in l?!e.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(o,a,l)}):(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 l in r)Object.prototype.hasOwnProperty.call(r,l)&&(a[a.length]=l);return a},o(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var a=o(e),l=0;l<a.length;l++)a[l]!=="default"&&__createBinding(r,e,a[l]);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")),PerformanceTab_1=require("./PerformanceTab"),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:l,selectedEvent:p,selectedLog:_,selectedReduxSlice:S,selectedReduxAction:w,selectedCrash:b,selectedPush:m,setSelectedPush:C,selectedSocket:g,setSelectedSocket:v,settingsPage:n,isAboutOpen:u,setIsAboutOpen:A,isSupportOpen:d,setIsSupportOpen:k,activeTab:t,isReady:V,enabled:B,isDismissed:M,hasNavigationContext:T,setNavState:D,confirmModal:i,setConfirmModal:N,peekMode:q,peekOpacity:h}=(0,InspectorContext_1.useInspector)(),y=t==="apis"&&l!=null||t==="analytics"&&p!=null||t==="logs"&&_!=null||t==="redux"&&(S!=null||w!=null)||t==="crash"&&b!=null||t==="push"&&m!=null||t==="socket"&&g!=null,s=(0,react_1.useRef)(new react_native_1.Animated.Value(0)).current;(0,react_1.useEffect)(()=>{n!==null&&(s.setValue(0),react_native_1.Animated.spring(s,{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)(()=>{d&&(f.setValue(0),react_native_1.Animated.spring(f,{toValue:1,friction:8,tension:65,useNativeDriver:!1}).start())},[d]),<>
|
|
2
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}>
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
<react_native_1.StatusBar translucent backgroundColor="transparent"barStyle="light-content"/>
|
|
9
9
|
|
|
10
10
|
<InspectorHeader_1.default/>
|
|
11
|
-
{!y&&n===null&&!u&&!
|
|
11
|
+
{!y&&n===null&&!u&&!d&&<SecondaryTelemetryStrip_1.SecondaryTelemetryStrip/>}
|
|
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={y||n!==null||u||
|
|
15
|
+
<react_native_1.View style={{flex:1}}pointerEvents={y||n!==null||u||d?"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">
|
|
@@ -21,6 +21,9 @@
|
|
|
21
21
|
{t==="logs"&&<ModuleErrorBoundary_1.default moduleName="Console Logs Monitor">
|
|
22
22
|
<ConsoleTab_1.default/>
|
|
23
23
|
</ModuleErrorBoundary_1.default>}
|
|
24
|
+
{t==="perf"&&<ModuleErrorBoundary_1.default moduleName="Performance & FPS Profiler">
|
|
25
|
+
<PerformanceTab_1.PerformanceTab/>
|
|
26
|
+
</ModuleErrorBoundary_1.default>}
|
|
24
27
|
{t==="analytics"&&<ModuleErrorBoundary_1.default moduleName="Analytics Event Tracker">
|
|
25
28
|
<AnalyticsTab_1.default/>
|
|
26
29
|
</ModuleErrorBoundary_1.default>}
|
|
@@ -77,7 +80,7 @@
|
|
|
77
80
|
</react_native_1.View>}
|
|
78
81
|
|
|
79
82
|
|
|
80
|
-
{n!==null&&<react_native_1.Animated.View style={[react_native_1.StyleSheet.absoluteFill,{backgroundColor:AppColors_1.AppColors.grayBackground,opacity:
|
|
83
|
+
{n!==null&&<react_native_1.Animated.View style={[react_native_1.StyleSheet.absoluteFill,{backgroundColor:AppColors_1.AppColors.grayBackground,opacity:s,transform:[{translateY:s.interpolate({inputRange:[0,1],outputRange:[24,0]})}]}]}>
|
|
81
84
|
<ModuleErrorBoundary_1.default moduleName="Settings Panel">
|
|
82
85
|
<SettingsPanel_1.default/>
|
|
83
86
|
</ModuleErrorBoundary_1.default>
|
|
@@ -91,7 +94,7 @@
|
|
|
91
94
|
</react_native_1.Animated.View>}
|
|
92
95
|
|
|
93
96
|
|
|
94
|
-
{
|
|
97
|
+
{d&&<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
98
|
<ModuleErrorBoundary_1.default moduleName="Support & Community">
|
|
96
99
|
<SupportPage_1.SupportPage onClose={()=>k(!1)}/>
|
|
97
100
|
</ModuleErrorBoundary_1.default>
|
|
@@ -115,7 +118,7 @@
|
|
|
115
118
|
</react_native_1.View>
|
|
116
119
|
</react_native_1.View>
|
|
117
120
|
</ErrorBoundary_1.default>
|
|
118
|
-
{
|
|
121
|
+
{T&&<NavigationTracker_1.default onStateChange={D}/>}
|
|
119
122
|
</react_native_1.Modal>
|
|
120
123
|
</>},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
124
|
|