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,59 +1,68 @@
|
|
|
1
|
-
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(
|
|
2
|
-
`);(0,helpers_1.copyToClipboard)(
|
|
1
|
+
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(o,i,n,l){l===void 0&&(l=n);var a=Object.getOwnPropertyDescriptor(i,n);(!a||("get"in a?!i.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return i[n]}}),Object.defineProperty(o,l,a)}):(function(o,i,n,l){l===void 0&&(l=n),o[l]=i[n]})),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?(function(o,i){Object.defineProperty(o,"default",{enumerable:!0,value:i})}):function(o,i){o.default=i}),__importStar=this&&this.__importStar||(function(){var o=function(i){return o=Object.getOwnPropertyNames||function(n){var l=[];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(l[l.length]=a);return l},o(i)};return function(i){if(i&&i.__esModule)return i;var n={};if(i!=null)for(var l=o(i),a=0;a<l.length;a++)l[a]!=="default"&&__createBinding(n,i,l[a]);return __setModuleDefault(n,i),n}})(),__importDefault=this&&this.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.MediaGalleryTab=void 0;const react_1=__importStar(require("react")),react_native_1=require("react-native"),AppColors_1=require("../../styles/AppColors"),AppFonts_1=require("../../styles/AppFonts"),TouchableScale_1=__importDefault(require("../TouchableScale")),NetworkIcons_1=require("../NetworkIcons"),MediaPreviewModal_1=require("./MediaPreviewModal"),capture_1=require("../../capture"),helpers_1=require("../../helpers"),NativeInspector_1=require("../../native/NativeInspector"),toast_1=require("../../helpers/toast"),i18n_1=require("../../i18n"),InspectorContext_1=require("./InspectorContext"),ConfirmationModal_1=require("./ConfirmationModal"),MediaGalleryTab=()=>{const{t:o}=(0,i18n_1.useTranslation)(),{refreshMediaCount:i,switchActiveTab:n,previewMediaItem:l,setPreviewMediaItem:a}=(0,InspectorContext_1.useInspector)(),[s,I]=(0,react_1.useState)([]),[W,z]=(0,react_1.useState)(!1),[d,$]=(0,react_1.useState)("all"),[p,w]=(0,react_1.useState)(new Set),[h,R]=(0,react_1.useState)("grid"),[g,_]=(0,react_1.useState)(!1),[F,v]=(0,react_1.useState)(0),C=react_1.default.useRef(null),[f,b]=(0,react_1.useState)({visible:!1,title:"",message:"",onConfirm:()=>{}}),c=(0,react_1.useCallback)(async()=>{try{const e=await capture_1.ScreenCapture.getMediaList();I(e),i?.().catch(()=>{})}catch{I([])}},[i]);(0,react_1.useEffect)(()=>{c()},[c]),(0,react_1.useEffect)(()=>{capture_1.ScreenCapture.isRecording().then(e=>_(e)).catch(()=>{})},[]),(0,react_1.useEffect)(()=>(g?(v(0),C.current=setInterval(()=>{v(e=>e+1)},1e3)):(C.current&&(clearInterval(C.current),C.current=null),v(0)),()=>{C.current&&clearInterval(C.current)}),[g]);const G=async()=>{z(!0),await c(),z(!1)},m=(0,react_1.useMemo)(()=>{let e=0,t=0,r=0;return s.forEach(u=>{u.type==="image"?e++:u.type==="video"?t++:u.type==="gif"&&r++}),{all:s.length,image:e,video:t,gif:r}},[s]),x=(0,react_1.useMemo)(()=>d==="all"?s:s.filter(e=>e.type===d),[s,d]),A=(0,react_1.useMemo)(()=>s.reduce((e,t)=>e+(t.sizeBytes||0),0),[s]),M=(0,react_1.useCallback)(async()=>{try{(0,NativeInspector_1.triggerNativeHaptic)("light");const e=await capture_1.ScreenCapture.takeScreenshot({format:"png",quality:.9,hideInspector:!0});if(e){(0,NativeInspector_1.triggerNativeHaptic)("success");const t=(0,capture_1.generateCaptureId)("screenshot",e.format||"png"),r={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};a(r),await c(),i?.().catch(()=>{}),(0,toast_1.showToast)(o("header.screenshotCaptured","Screenshot captured & saved"))}else(0,toast_1.showToast)(o("header.screenshotFailed","Failed to capture screenshot"))}catch{(0,toast_1.showToast)(o("header.screenshotError","Error capturing screenshot"))}},[c,i,a,o]),S=(0,react_1.useCallback)(async()=>{try{if(g){(0,NativeInspector_1.triggerNativeHaptic)("medium");const e=await capture_1.ScreenCapture.stopRecording();if(_(!1),e){(0,NativeInspector_1.triggerNativeHaptic)("success");const t=(0,capture_1.generateCaptureId)("video",e.format),r={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};a(r),await c(),i?.().catch(()=>{}),(0,toast_1.showToast)(o("header.recordingSaved",{duration:(e.durationMs/1e3).toFixed(1),defaultValue:`Recording saved (${(e.durationMs/1e3).toFixed(1)}s)`}))}}else(0,NativeInspector_1.triggerNativeHaptic)("medium"),await capture_1.ScreenCapture.startRecording({fps:24,audioSource:"none"})?(_(!0),(0,toast_1.showToast)(o("header.recordingStarted","Screen recording started"))):(0,toast_1.showToast)(o("header.recordingStartFailed","Failed to start screen recording"))}catch{(0,toast_1.showToast)(o("header.recordingError","Screen recording error")),_(!1)}},[g,c,i,a,o]),P=async()=>{try{(0,NativeInspector_1.triggerNativeHaptic)("light");const e=d==="image"?"image":d==="video"?"video":"any",t=await capture_1.ScreenCapture.pickMedia({mediaType:e});t&&((0,NativeInspector_1.triggerNativeHaptic)("success"),await c(),i?.().catch(()=>{}),(0,toast_1.showToast)(t.type==="video"?o("mediaGallery.importedVideo","Video imported from Camera Roll"):o("mediaGallery.importedPhoto","Photo imported from Camera Roll")),a(t))}catch{(0,toast_1.showToast)(o("mediaGallery.importFailed","Failed to import media"))}},D=(0,react_1.useCallback)(e=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),w(t=>{const r=new Set(t);return r.has(e)?r.delete(e):r.add(e),r})},[]),O=async e=>{(0,NativeInspector_1.triggerNativeHaptic)("medium"),await capture_1.ScreenCapture.deleteMedia(e.uri),w(t=>{const r=new Set(t);return r.delete(e.id),r}),await c(),await i?.(),(0,toast_1.showToast)(o("mediaGallery.deleted","Media deleted"))},H=e=>{e?.uri&&((0,NativeInspector_1.triggerNativeHaptic)("light"),(0,helpers_1.copyImageOrMediaToClipboard)(e.uri,e.type==="image"?"Image":"Media"))},q=()=>{const e=s.filter(r=>p.has(r.id));if(e.length===0)return;(0,NativeInspector_1.triggerNativeHaptic)("light");const t=e.map(r=>r.uri).join(`
|
|
2
|
+
`);(0,helpers_1.copyToClipboard)(t,`${e.length} Media URIs`),(0,toast_1.showToast)(`${e.length} file URIs copied to clipboard`)},N=async e=>{try{(0,NativeInspector_1.triggerNativeHaptic)("light");const t=e.uri.startsWith("file://")||e.uri.startsWith("content://")||e.uri.startsWith("http")?e.uri:`file://${e.uri}`;await react_native_1.Share.share({url:t,title:e.filename,message:e.filename})}catch{(0,toast_1.showToast)(o("mediaGallery.shareUnavailable","Sharing not available on this device"))}},j=async()=>{const e=s.filter(t=>p.has(t.id));if(e.length!==0)try{(0,NativeInspector_1.triggerNativeHaptic)("light");const t=e[0],r=t.uri.startsWith("file://")||t.uri.startsWith("content://")||t.uri.startsWith("http")?t.uri:`file://${t.uri}`;await react_native_1.Share.share({url:r,title:t.filename,message:e.length===1?t.filename:`${e.length} items: ${e.map(u=>u.filename).join(", ")}`})}catch{(0,toast_1.showToast)(o("mediaGallery.shareUnavailable","Sharing not available on this device"))}},L=()=>{const e=p.size;e!==0&&b({visible:!0,title:o("mediaGallery.deleteSelectedTitle","Delete Selected Media"),message:o("mediaGallery.deleteSelectedMessage",{count:e,defaultValue:`Are you sure you want to permanently delete ${e} media items?`}),confirmText:o("mediaGallery.delete","Delete"),cancelText:o("common.cancel","Cancel"),onConfirm:async()=>{b(r=>({...r,visible:!1}));const t=s.filter(r=>p.has(r.id));for(const r of t)await capture_1.ScreenCapture.deleteMedia(r.uri);w(new Set),await c(),await i?.(),(0,toast_1.showToast)(o("mediaGallery.deletedCount",{count:t.length,defaultValue:`Deleted ${t.length} items`}))}})},U=()=>{b({visible:!0,title:o("mediaGallery.purgeTitle","Purge Gallery"),message:o("mediaGallery.purgeMessage",{count:s.length,size:(0,helpers_1.formatBytes)(A),defaultValue:`Are you sure you want to delete all ${s.length} media files (${(0,helpers_1.formatBytes)(A)})? This cannot be undone.`}),confirmText:o("common.clearAll","Clear All"),cancelText:o("common.cancel","Cancel"),onConfirm:async()=>{b(e=>({...e,visible:!1})),await capture_1.ScreenCapture.clearAllMedia(),w(new Set),await c(),await i?.(),(0,toast_1.showToast)(o("mediaGallery.allPurged","All screencast files deleted"))}})},E=async e=>{await capture_1.ScreenCapture.convertToGif(e.uri,{fps:12,width:480})&&(await c(),i?.().catch(()=>{}))},B=e=>{const t=Math.floor(e/60),r=e%60;return`${t.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}`},Y=({item:e})=>{if(!e)return null;const t=e.type==="video",r=e.type==="gif",u=t&&e.thumbnailUri||e.uri,y=!!(e.id&&p.has(e.id)),k=(e.format||(t?"mp4":r?"gif":"png")).toUpperCase(),V=e.filename||(e.uri?e.uri.split("/").pop():"")||"Capture",T=e.timestamp?new Date(e.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):"";return<TouchableScale_1.default onPress={()=>a(e)}style={[galleryStyles.card,y&&galleryStyles.cardSelected]}>
|
|
3
3
|
<react_native_1.View style={galleryStyles.thumbnailContainer}>
|
|
4
|
-
{
|
|
5
|
-
{
|
|
4
|
+
{u?<react_native_1.Image source={{uri:u}}style={galleryStyles.thumbnail}resizeMode="cover"/>:<react_native_1.View style={galleryStyles.thumbnailFallback}>
|
|
5
|
+
{t?<NetworkIcons_1.FilmIcon size={28}color={AppColors_1.AppColors.sky500}/>:<NetworkIcons_1.ImageIcon size={28}color={AppColors_1.AppColors.grayTextWeak}/>}
|
|
6
6
|
</react_native_1.View>}
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
<react_native_1.TouchableOpacity onPress={()=>e.id&&
|
|
10
|
-
{y&&<NetworkIcons_1.CheckIcon size={
|
|
9
|
+
<react_native_1.TouchableOpacity onPress={()=>e.id&&D(e.id)}style={[galleryStyles.checkbox,y&&galleryStyles.checkboxSelected]}hitSlop={{top:8,bottom:8,left:8,right:8}}>
|
|
10
|
+
{y&&<NetworkIcons_1.CheckIcon size={11}color={AppColors_1.AppColors.white}/>}
|
|
11
11
|
</react_native_1.TouchableOpacity>
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
|
|
14
|
+
{t&&<react_native_1.View style={galleryStyles.miniPlayCircle}>
|
|
14
15
|
<NetworkIcons_1.PlayIcon size={14}color={AppColors_1.AppColors.white}/>
|
|
15
16
|
</react_native_1.View>}
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
<react_native_1.View style={[galleryStyles.typeBadge,{backgroundColor:t?"rgba(14, 165, 233, 0.88)":r?"rgba(245, 158, 11, 0.88)":"rgba(16, 185, 129, 0.88)"}]}>
|
|
18
20
|
<react_native_1.Text style={galleryStyles.typeBadgeText}>
|
|
19
|
-
{
|
|
21
|
+
{k}
|
|
20
22
|
</react_native_1.Text>
|
|
21
23
|
</react_native_1.View>
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
{t&&e.durationMs?<react_native_1.View style={galleryStyles.durationBadge}>
|
|
27
|
+
<react_native_1.Text style={galleryStyles.durationBadgeText}>
|
|
28
|
+
{B(Math.round(e.durationMs/1e3))}
|
|
29
|
+
</react_native_1.Text>
|
|
30
|
+
</react_native_1.View>:null}
|
|
22
31
|
</react_native_1.View>
|
|
23
32
|
|
|
24
33
|
<react_native_1.View style={galleryStyles.cardInfo}>
|
|
25
34
|
<react_native_1.Text style={galleryStyles.cardTitle}numberOfLines={1}>
|
|
26
|
-
{
|
|
35
|
+
{V}
|
|
27
36
|
</react_native_1.Text>
|
|
28
37
|
<react_native_1.View style={galleryStyles.cardMetaRow}>
|
|
29
38
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:4,flex:1,minWidth:0}}>
|
|
30
39
|
<react_native_1.Text style={galleryStyles.cardMeta}numberOfLines={1}>
|
|
31
40
|
{(0,helpers_1.formatBytes)(e.sizeBytes||0)}
|
|
32
41
|
</react_native_1.Text>
|
|
33
|
-
{
|
|
42
|
+
{T?<>
|
|
34
43
|
<react_native_1.Text style={galleryStyles.cardMetaDot}>•</react_native_1.Text>
|
|
35
44
|
<react_native_1.Text style={galleryStyles.cardMeta}numberOfLines={1}>
|
|
36
|
-
{
|
|
45
|
+
{T}
|
|
37
46
|
</react_native_1.Text>
|
|
38
47
|
</>:null}
|
|
39
48
|
</react_native_1.View>
|
|
40
|
-
<react_native_1.TouchableOpacity onPress={()=>
|
|
41
|
-
<NetworkIcons_1.CopyIcon size={11}color={AppColors_1.AppColors.
|
|
49
|
+
<react_native_1.TouchableOpacity onPress={()=>H(e)}style={galleryStyles.gridCopyBtn}hitSlop={{top:6,bottom:6,left:6,right:6}}>
|
|
50
|
+
<NetworkIcons_1.CopyIcon size={11}color={AppColors_1.AppColors.grayText}/>
|
|
42
51
|
</react_native_1.TouchableOpacity>
|
|
43
52
|
</react_native_1.View>
|
|
44
53
|
</react_native_1.View>
|
|
45
|
-
</TouchableScale_1.default>},
|
|
54
|
+
</TouchableScale_1.default>},K=({item:e})=>{if(!e)return null;const t=e.type==="video",r=e.type==="gif",u=t&&e.thumbnailUri||e.uri,y=!!(e.id&&p.has(e.id)),k=(e.format||(t?"mp4":r?"gif":"png")).toUpperCase(),V=e.filename||(e.uri?e.uri.split("/").pop():"")||"Capture",T=e.timestamp?`${new Date(e.timestamp).toLocaleDateString([],{month:"short",day:"numeric"})} ${new Date(e.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}`:"";return<TouchableScale_1.default onPress={()=>a(e)}style={[galleryStyles.listRow,y&&galleryStyles.listRowSelected]}>
|
|
46
55
|
|
|
47
|
-
<react_native_1.TouchableOpacity onPress={()=>e.id&&
|
|
48
|
-
{y&&<NetworkIcons_1.CheckIcon size={
|
|
56
|
+
<react_native_1.TouchableOpacity onPress={()=>e.id&&D(e.id)}style={[galleryStyles.listCheckbox,y&&galleryStyles.checkboxSelected]}hitSlop={{top:8,bottom:8,left:8,right:8}}>
|
|
57
|
+
{y&&<NetworkIcons_1.CheckIcon size={11}color={AppColors_1.AppColors.white}/>}
|
|
49
58
|
</react_native_1.TouchableOpacity>
|
|
50
59
|
|
|
51
60
|
|
|
52
61
|
<react_native_1.View style={galleryStyles.listThumbContainer}>
|
|
53
|
-
{
|
|
54
|
-
{
|
|
62
|
+
{u?<react_native_1.Image source={{uri:u}}style={galleryStyles.listThumb}resizeMode="cover"/>:<react_native_1.View style={galleryStyles.listThumbFallback}>
|
|
63
|
+
{t?<NetworkIcons_1.FilmIcon size={18}color={AppColors_1.AppColors.sky500}/>:<NetworkIcons_1.ImageIcon size={18}color={AppColors_1.AppColors.grayTextWeak}/>}
|
|
55
64
|
</react_native_1.View>}
|
|
56
|
-
{
|
|
65
|
+
{t&&<react_native_1.View style={galleryStyles.listMiniPlay}>
|
|
57
66
|
<NetworkIcons_1.PlayIcon size={10}color={AppColors_1.AppColors.white}/>
|
|
58
67
|
</react_native_1.View>}
|
|
59
68
|
</react_native_1.View>
|
|
@@ -61,22 +70,21 @@
|
|
|
61
70
|
|
|
62
71
|
<react_native_1.View style={galleryStyles.listInfo}>
|
|
63
72
|
<react_native_1.Text style={galleryStyles.listTitle}numberOfLines={1}>
|
|
64
|
-
{
|
|
73
|
+
{V}
|
|
65
74
|
</react_native_1.Text>
|
|
66
75
|
<react_native_1.View style={galleryStyles.listMetaRow}>
|
|
67
|
-
<react_native_1.View style={galleryStyles.listBadge}>
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
{T}
|
|
76
|
+
<react_native_1.View style={[galleryStyles.listBadge,{backgroundColor:t?`${AppColors_1.AppColors.sky500}18`:r?`${AppColors_1.AppColors.amber500}18`:`${AppColors_1.AppColors.green600}18`}]}>
|
|
77
|
+
<react_native_1.Text style={[galleryStyles.listBadgeText,{color:t?AppColors_1.AppColors.sky600:r?AppColors_1.AppColors.amber500:AppColors_1.AppColors.green600}]}>
|
|
78
|
+
{k}
|
|
71
79
|
</react_native_1.Text>
|
|
72
80
|
</react_native_1.View>
|
|
73
81
|
<react_native_1.Text style={galleryStyles.cardMeta}>
|
|
74
82
|
{(0,helpers_1.formatBytes)(e.sizeBytes||0)}
|
|
75
83
|
</react_native_1.Text>
|
|
76
|
-
{
|
|
84
|
+
{T?<>
|
|
77
85
|
<react_native_1.Text style={galleryStyles.cardMetaDot}>•</react_native_1.Text>
|
|
78
86
|
<react_native_1.Text style={galleryStyles.cardMeta}>
|
|
79
|
-
{
|
|
87
|
+
{T}
|
|
80
88
|
</react_native_1.Text>
|
|
81
89
|
</>:null}
|
|
82
90
|
</react_native_1.View>
|
|
@@ -84,119 +92,208 @@
|
|
|
84
92
|
|
|
85
93
|
|
|
86
94
|
<react_native_1.View style={galleryStyles.listActionsRow}>
|
|
87
|
-
<react_native_1.TouchableOpacity onPress={()=>
|
|
88
|
-
<NetworkIcons_1.CopyIcon size={13}color={AppColors_1.AppColors.
|
|
95
|
+
<react_native_1.TouchableOpacity onPress={()=>H(e)}style={galleryStyles.listActionBtn}hitSlop={{top:8,bottom:8,left:8,right:8}}>
|
|
96
|
+
<NetworkIcons_1.CopyIcon size={13}color={AppColors_1.AppColors.grayText}/>
|
|
89
97
|
</react_native_1.TouchableOpacity>
|
|
90
98
|
|
|
91
|
-
<react_native_1.TouchableOpacity onPress={()=>
|
|
92
|
-
<NetworkIcons_1.ShareIcon size={13}color={AppColors_1.AppColors.
|
|
99
|
+
<react_native_1.TouchableOpacity onPress={()=>N(e)}style={galleryStyles.listActionBtn}hitSlop={{top:8,bottom:8,left:8,right:8}}>
|
|
100
|
+
<NetworkIcons_1.ShareIcon size={13}color={AppColors_1.AppColors.sky600}/>
|
|
93
101
|
</react_native_1.TouchableOpacity>
|
|
94
102
|
|
|
95
|
-
<react_native_1.TouchableOpacity onPress={()=>
|
|
103
|
+
<react_native_1.TouchableOpacity onPress={()=>O(e)}style={galleryStyles.listActionBtn}hitSlop={{top:8,bottom:8,left:8,right:8}}>
|
|
96
104
|
<NetworkIcons_1.TrashIcon size={13}color={AppColors_1.AppColors.red500}/>
|
|
97
105
|
</react_native_1.TouchableOpacity>
|
|
98
106
|
</react_native_1.View>
|
|
99
107
|
</TouchableScale_1.default>};return<react_native_1.View style={galleryStyles.container}>
|
|
100
108
|
|
|
101
109
|
<react_native_1.View style={galleryStyles.topHeaderBar}>
|
|
102
|
-
<react_native_1.TouchableOpacity onPress={()=>
|
|
103
|
-
<NetworkIcons_1.WhiteBackNavigation size={
|
|
110
|
+
<react_native_1.TouchableOpacity onPress={()=>n("apis")}style={galleryStyles.backToTabBtn}accessibilityLabel="Back to Inspector"hitSlop={{top:8,bottom:8,left:8,right:8}}>
|
|
111
|
+
<NetworkIcons_1.WhiteBackNavigation size={14}color={AppColors_1.AppColors.purple}/>
|
|
104
112
|
<react_native_1.Text style={galleryStyles.backToTabText}>
|
|
105
|
-
{
|
|
113
|
+
{o("common.back","Back")}
|
|
106
114
|
</react_native_1.Text>
|
|
107
115
|
</react_native_1.TouchableOpacity>
|
|
108
116
|
|
|
109
|
-
<react_native_1.
|
|
110
|
-
<NetworkIcons_1.
|
|
117
|
+
<react_native_1.View style={galleryStyles.headerCenterTitle}>
|
|
118
|
+
<NetworkIcons_1.ScreencastIcon size={15}color={AppColors_1.AppColors.purple}/>
|
|
119
|
+
<react_native_1.Text style={galleryStyles.headerStudioTitle}>
|
|
120
|
+
{o("tabs.media","Screencast")}
|
|
121
|
+
</react_native_1.Text>
|
|
122
|
+
{m.all>0&&<react_native_1.View style={galleryStyles.headerBadge}>
|
|
123
|
+
<react_native_1.Text style={galleryStyles.headerBadgeText}>{m.all}</react_native_1.Text>
|
|
124
|
+
</react_native_1.View>}
|
|
125
|
+
</react_native_1.View>
|
|
126
|
+
|
|
127
|
+
<react_native_1.TouchableOpacity onPress={()=>n("apis")}style={galleryStyles.closeCircleBtn}accessibilityLabel="Close Screencast"hitSlop={{top:8,bottom:8,left:8,right:8}}>
|
|
128
|
+
<NetworkIcons_1.CloseWhite size={12}color={AppColors_1.AppColors.grayTextStrong}/>
|
|
111
129
|
</react_native_1.TouchableOpacity>
|
|
112
130
|
</react_native_1.View>
|
|
113
131
|
|
|
114
132
|
|
|
133
|
+
{g&&<react_native_1.View style={galleryStyles.recordingBanner}>
|
|
134
|
+
<react_native_1.View style={galleryStyles.recordingDot}/>
|
|
135
|
+
<react_native_1.Text style={galleryStyles.recordingBannerText}>
|
|
136
|
+
{o("header.recordingScreen","Screen Recording Active")} • {B(F)}
|
|
137
|
+
</react_native_1.Text>
|
|
138
|
+
<react_native_1.TouchableOpacity onPress={S}style={galleryStyles.stopRecordBtn}activeOpacity={.8}>
|
|
139
|
+
<react_native_1.View style={galleryStyles.stopSquare}/>
|
|
140
|
+
<react_native_1.Text style={galleryStyles.stopRecordBtnText}>Stop & Save</react_native_1.Text>
|
|
141
|
+
</react_native_1.TouchableOpacity>
|
|
142
|
+
</react_native_1.View>}
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
<react_native_1.View style={galleryStyles.quickActionsBar}>
|
|
146
|
+
<TouchableScale_1.default onPress={M}style={[galleryStyles.quickBtn,{backgroundColor:`${AppColors_1.AppColors.purple}10`,borderColor:`${AppColors_1.AppColors.purple}30`}]}>
|
|
147
|
+
<NetworkIcons_1.CameraIcon size={14}color={AppColors_1.AppColors.purple}/>
|
|
148
|
+
<react_native_1.Text style={[galleryStyles.quickBtnText,{color:AppColors_1.AppColors.purple}]}>
|
|
149
|
+
{o("header.screenshot","Screenshot")}
|
|
150
|
+
</react_native_1.Text>
|
|
151
|
+
</TouchableScale_1.default>
|
|
152
|
+
|
|
153
|
+
<TouchableScale_1.default onPress={S}style={[galleryStyles.quickBtn,g?{backgroundColor:`${AppColors_1.AppColors.red500}18`,borderColor:AppColors_1.AppColors.red500}:{backgroundColor:`${AppColors_1.AppColors.sky600}10`,borderColor:`${AppColors_1.AppColors.sky600}30`}]}>
|
|
154
|
+
<NetworkIcons_1.VideoCameraIcon size={14}color={g?AppColors_1.AppColors.red500:AppColors_1.AppColors.sky600}/>
|
|
155
|
+
<react_native_1.Text style={[galleryStyles.quickBtnText,{color:g?AppColors_1.AppColors.red500:AppColors_1.AppColors.sky600}]}>
|
|
156
|
+
{g?`Stop (${B(F)})`:o("header.videoRecord","Record Video")}
|
|
157
|
+
</react_native_1.Text>
|
|
158
|
+
</TouchableScale_1.default>
|
|
159
|
+
|
|
160
|
+
<TouchableScale_1.default onPress={P}style={[galleryStyles.quickBtn,{backgroundColor:`${AppColors_1.AppColors.emerald500}10`,borderColor:`${AppColors_1.AppColors.emerald500}30`}]}>
|
|
161
|
+
<NetworkIcons_1.CameraRollIcon size={14}color={AppColors_1.AppColors.green600}/>
|
|
162
|
+
<react_native_1.Text style={[galleryStyles.quickBtnText,{color:AppColors_1.AppColors.green600}]}>
|
|
163
|
+
{o("common.import","Import")}
|
|
164
|
+
</react_native_1.Text>
|
|
165
|
+
</TouchableScale_1.default>
|
|
166
|
+
</react_native_1.View>
|
|
167
|
+
|
|
168
|
+
|
|
115
169
|
<react_native_1.View style={galleryStyles.filterBar}>
|
|
116
170
|
<react_native_1.View style={galleryStyles.chipGroup}>
|
|
117
|
-
{["all","
|
|
118
|
-
{
|
|
119
|
-
|
|
120
|
-
{i}
|
|
171
|
+
{[{key:"all",label:o("common.all","All"),count:m.all},{key:"image",label:o("mediaGallery.photos","Photos"),count:m.image},{key:"video",label:o("mediaGallery.videos","Videos"),count:m.video},{key:"gif",label:o("mediaGallery.gifs","GIFs"),count:m.gif}].map(e=>{const t=d===e.key;return<react_native_1.TouchableOpacity key={e.key}onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),$(e.key)}}style={[galleryStyles.chip,t&&galleryStyles.chipActive]}>
|
|
172
|
+
<react_native_1.Text style={[galleryStyles.chipText,t&&galleryStyles.chipTextActive]}>
|
|
173
|
+
{e.label}
|
|
121
174
|
</react_native_1.Text>
|
|
175
|
+
<react_native_1.View style={[galleryStyles.chipBadge,t&&galleryStyles.chipBadgeActive]}>
|
|
176
|
+
<react_native_1.Text style={[galleryStyles.chipBadgeText,t&&galleryStyles.chipBadgeTextActive]}>
|
|
177
|
+
{e.count}
|
|
178
|
+
</react_native_1.Text>
|
|
179
|
+
</react_native_1.View>
|
|
122
180
|
</react_native_1.TouchableOpacity>})}
|
|
123
181
|
</react_native_1.View>
|
|
124
182
|
|
|
125
183
|
|
|
126
|
-
<react_native_1.View style={galleryStyles.
|
|
127
|
-
<react_native_1.TouchableOpacity onPress={
|
|
128
|
-
<NetworkIcons_1.
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
184
|
+
<react_native_1.View style={galleryStyles.viewToggleContainer}>
|
|
185
|
+
<react_native_1.TouchableOpacity onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),R("grid")}}style={[galleryStyles.viewToggleBtn,h==="grid"&&galleryStyles.viewToggleBtnActive]}>
|
|
186
|
+
<NetworkIcons_1.GridIcon size={13}color={h==="grid"?AppColors_1.AppColors.white:AppColors_1.AppColors.grayText}/>
|
|
187
|
+
</react_native_1.TouchableOpacity>
|
|
188
|
+
<react_native_1.TouchableOpacity onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),R("list")}}style={[galleryStyles.viewToggleBtn,h==="list"&&galleryStyles.viewToggleBtnActive]}>
|
|
189
|
+
<NetworkIcons_1.ListIcon size={13}color={h==="list"?AppColors_1.AppColors.white:AppColors_1.AppColors.grayText}/>
|
|
132
190
|
</react_native_1.TouchableOpacity>
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
<react_native_1.View style={galleryStyles.viewToggleContainer}>
|
|
136
|
-
<react_native_1.TouchableOpacity onPress={()=>S("grid")}style={[galleryStyles.viewToggleBtn,u==="grid"&&galleryStyles.viewToggleBtnActive]}>
|
|
137
|
-
<NetworkIcons_1.GridIcon size={13}color={u==="grid"?AppColors_1.AppColors.white:AppColors_1.AppColors.slate400}/>
|
|
138
|
-
</react_native_1.TouchableOpacity>
|
|
139
|
-
<react_native_1.TouchableOpacity onPress={()=>S("list")}style={[galleryStyles.viewToggleBtn,u==="list"&&galleryStyles.viewToggleBtnActive]}>
|
|
140
|
-
<NetworkIcons_1.ListIcon size={13}color={u==="list"?AppColors_1.AppColors.white:AppColors_1.AppColors.slate400}/>
|
|
141
|
-
</react_native_1.TouchableOpacity>
|
|
142
|
-
</react_native_1.View>
|
|
143
191
|
</react_native_1.View>
|
|
144
192
|
</react_native_1.View>
|
|
145
193
|
|
|
146
194
|
|
|
147
|
-
{
|
|
195
|
+
{s.length>0&&<react_native_1.View style={galleryStyles.subBar}>
|
|
148
196
|
<react_native_1.View style={galleryStyles.resultCountWrapper}>
|
|
149
|
-
<react_native_1.Text style={[galleryStyles.resultCountText,
|
|
150
|
-
{
|
|
197
|
+
<react_native_1.Text style={[galleryStyles.resultCountText,p.size>0&&galleryStyles.resultCountTextSelected]}>
|
|
198
|
+
{p.size>0?`${p.size} of ${x.length} selected`:`${x.length} ${x.length===1?"item":"items"} \u2022 ${(0,helpers_1.formatBytes)(A)}`}
|
|
151
199
|
</react_native_1.Text>
|
|
152
200
|
</react_native_1.View>
|
|
153
201
|
|
|
154
202
|
<react_native_1.View style={galleryStyles.actionsGroup}>
|
|
155
|
-
{
|
|
156
|
-
<react_native_1.TouchableOpacity onPress={
|
|
157
|
-
<NetworkIcons_1.CopyIcon size={
|
|
203
|
+
{p.size>0?<>
|
|
204
|
+
<react_native_1.TouchableOpacity onPress={q}style={galleryStyles.copySelectedBtn}hitSlop={{top:8,bottom:8,left:8,right:8}}>
|
|
205
|
+
<NetworkIcons_1.CopyIcon size={11}color={AppColors_1.AppColors.grayTextStrong}/>
|
|
158
206
|
<react_native_1.Text style={galleryStyles.copySelectedBtnText}>
|
|
159
|
-
|
|
207
|
+
Copy
|
|
160
208
|
</react_native_1.Text>
|
|
161
209
|
</react_native_1.TouchableOpacity>
|
|
162
210
|
|
|
163
|
-
<react_native_1.TouchableOpacity onPress={
|
|
164
|
-
<NetworkIcons_1.ShareIcon size={
|
|
211
|
+
<react_native_1.TouchableOpacity onPress={j}style={galleryStyles.shareSelectedBtn}hitSlop={{top:8,bottom:8,left:8,right:8}}>
|
|
212
|
+
<NetworkIcons_1.ShareIcon size={11}color={AppColors_1.AppColors.sky600}/>
|
|
165
213
|
<react_native_1.Text style={galleryStyles.shareSelectedBtnText}>
|
|
166
|
-
|
|
214
|
+
Share
|
|
167
215
|
</react_native_1.Text>
|
|
168
216
|
</react_native_1.TouchableOpacity>
|
|
169
217
|
|
|
170
|
-
<react_native_1.TouchableOpacity onPress={
|
|
171
|
-
<NetworkIcons_1.TrashIcon size={
|
|
218
|
+
<react_native_1.TouchableOpacity onPress={L}style={galleryStyles.deleteBtn}hitSlop={{top:8,bottom:8,left:8,right:8}}>
|
|
219
|
+
<NetworkIcons_1.TrashIcon size={11}color={AppColors_1.AppColors.red500}/>
|
|
172
220
|
<react_native_1.Text style={galleryStyles.deleteBtnText}>
|
|
173
|
-
|
|
221
|
+
Delete ({p.size})
|
|
174
222
|
</react_native_1.Text>
|
|
175
223
|
</react_native_1.TouchableOpacity>
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
</react_native_1.Text>
|
|
183
|
-
</react_native_1.TouchableOpacity>
|
|
224
|
+
</>:<react_native_1.TouchableOpacity onPress={U}style={galleryStyles.clearBtn}hitSlop={{top:8,bottom:8,left:8,right:8}}>
|
|
225
|
+
<NetworkIcons_1.TrashIcon size={11}color={AppColors_1.AppColors.red500}/>
|
|
226
|
+
<react_native_1.Text style={galleryStyles.clearBtnText}>
|
|
227
|
+
Purge All
|
|
228
|
+
</react_native_1.Text>
|
|
229
|
+
</react_native_1.TouchableOpacity>}
|
|
184
230
|
</react_native_1.View>
|
|
185
231
|
</react_native_1.View>}
|
|
186
232
|
|
|
187
233
|
|
|
188
|
-
<react_native_1.FlatList key={
|
|
189
|
-
<
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
</react_native_1.
|
|
234
|
+
<react_native_1.FlatList key={h}data={x}keyExtractor={e=>e.id}renderItem={h==="grid"?Y:K}numColumns={h==="grid"?2:1}columnWrapperStyle={h==="grid"?galleryStyles.columnWrapper:void 0}style={{flex:1}}contentContainerStyle={[galleryStyles.listContent,{flexGrow:1}]}nestedScrollEnabled={!0}keyboardShouldPersistTaps="handled"refreshControl={<react_native_1.RefreshControl refreshing={W}onRefresh={G}tintColor={AppColors_1.AppColors.purple}/>}ListEmptyComponent={<react_native_1.View style={galleryStyles.emptyHeroCard}>
|
|
235
|
+
<react_native_1.View style={galleryStyles.emptyIconCircle}>
|
|
236
|
+
<NetworkIcons_1.ScreencastIcon size={32}color={AppColors_1.AppColors.purple}/>
|
|
237
|
+
</react_native_1.View>
|
|
238
|
+
|
|
239
|
+
<react_native_1.Text style={galleryStyles.emptyHeroTitle}>
|
|
240
|
+
{d==="image"?"No Screenshots Yet":d==="video"?"No Screen Recordings Yet":d==="gif"?"No Animated GIFs Yet":"Screencast & Media Studio"}
|
|
241
|
+
</react_native_1.Text>
|
|
242
|
+
|
|
243
|
+
<react_native_1.Text style={galleryStyles.emptyHeroSubtitle}>
|
|
244
|
+
{d==="image"?"Take a full-screen application snapshot or import photos from your device library.":d==="video"?"Record high-FPS screen videos with audio narration to reproduce and debug issues.":"Capture pixel-perfect screenshots, record 60fps screen videos, and export GIF animations with zero background overhead."}
|
|
245
|
+
</react_native_1.Text>
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
<react_native_1.View style={galleryStyles.emptyActionsGrid}>
|
|
249
|
+
<TouchableScale_1.default onPress={M}style={galleryStyles.emptyActionCard}>
|
|
250
|
+
<react_native_1.View style={[galleryStyles.actionCardIconBox,{backgroundColor:`${AppColors_1.AppColors.purple}14`}]}>
|
|
251
|
+
<NetworkIcons_1.CameraIcon size={18}color={AppColors_1.AppColors.purple}/>
|
|
252
|
+
</react_native_1.View>
|
|
253
|
+
<react_native_1.View style={galleryStyles.actionCardTextBox}>
|
|
254
|
+
<react_native_1.Text style={galleryStyles.actionCardTitle}>Take Screenshot</react_native_1.Text>
|
|
255
|
+
<react_native_1.Text style={galleryStyles.actionCardDesc}>Full-window lossless PNG</react_native_1.Text>
|
|
256
|
+
</react_native_1.View>
|
|
257
|
+
</TouchableScale_1.default>
|
|
258
|
+
|
|
259
|
+
<TouchableScale_1.default onPress={S}style={galleryStyles.emptyActionCard}>
|
|
260
|
+
<react_native_1.View style={[galleryStyles.actionCardIconBox,{backgroundColor:`${AppColors_1.AppColors.sky600}14`}]}>
|
|
261
|
+
<NetworkIcons_1.VideoCameraIcon size={18}color={AppColors_1.AppColors.sky600}/>
|
|
262
|
+
</react_native_1.View>
|
|
263
|
+
<react_native_1.View style={galleryStyles.actionCardTextBox}>
|
|
264
|
+
<react_native_1.Text style={galleryStyles.actionCardTitle}>Record Screen Video</react_native_1.Text>
|
|
265
|
+
<react_native_1.Text style={galleryStyles.actionCardDesc}>High-FPS MP4 with audio</react_native_1.Text>
|
|
266
|
+
</react_native_1.View>
|
|
267
|
+
</TouchableScale_1.default>
|
|
268
|
+
|
|
269
|
+
<TouchableScale_1.default onPress={P}style={galleryStyles.emptyActionCard}>
|
|
270
|
+
<react_native_1.View style={[galleryStyles.actionCardIconBox,{backgroundColor:`${AppColors_1.AppColors.emerald500}14`}]}>
|
|
271
|
+
<NetworkIcons_1.CameraRollIcon size={18}color={AppColors_1.AppColors.green600}/>
|
|
272
|
+
</react_native_1.View>
|
|
273
|
+
<react_native_1.View style={galleryStyles.actionCardTextBox}>
|
|
274
|
+
<react_native_1.Text style={galleryStyles.actionCardTitle}>Import from Camera Roll</react_native_1.Text>
|
|
275
|
+
<react_native_1.Text style={galleryStyles.actionCardDesc}>Device photos & videos</react_native_1.Text>
|
|
276
|
+
</react_native_1.View>
|
|
277
|
+
</TouchableScale_1.default>
|
|
278
|
+
</react_native_1.View>
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
<react_native_1.View style={galleryStyles.featurePillsRow}>
|
|
282
|
+
<react_native_1.View style={galleryStyles.featurePill}>
|
|
283
|
+
<react_native_1.Text style={galleryStyles.featurePillText}>⚡ Zero Overhead</react_native_1.Text>
|
|
284
|
+
</react_native_1.View>
|
|
285
|
+
<react_native_1.View style={galleryStyles.featurePill}>
|
|
286
|
+
<react_native_1.Text style={galleryStyles.featurePillText}>✂️ Crop & Annotate</react_native_1.Text>
|
|
287
|
+
</react_native_1.View>
|
|
288
|
+
<react_native_1.View style={galleryStyles.featurePill}>
|
|
289
|
+
<react_native_1.Text style={galleryStyles.featurePillText}>🎞️ Convert to GIF</react_native_1.Text>
|
|
290
|
+
</react_native_1.View>
|
|
291
|
+
</react_native_1.View>
|
|
196
292
|
</react_native_1.View>}/>
|
|
197
293
|
|
|
198
294
|
|
|
199
|
-
<MediaPreviewModal_1.MediaPreviewModal item={
|
|
295
|
+
<MediaPreviewModal_1.MediaPreviewModal item={l}visible={!!l}onClose={()=>a(null)}onDelete={O}onConvertToGif={E}/>
|
|
200
296
|
|
|
201
|
-
|
|
202
|
-
|
|
297
|
+
|
|
298
|
+
<ConfirmationModal_1.ConfirmationModal visible={f.visible}title={f.title}message={f.message}confirmText={f.confirmText}cancelText={f.cancelText}isDestructive={!0}icon="trash"onConfirm={f.onConfirm}onCancel={()=>b(e=>({...e,visible:!1}))}/>
|
|
299
|
+
</react_native_1.View>};exports.MediaGalleryTab=MediaGalleryTab;const{width:WINDOW_WIDTH}=react_native_1.Dimensions.get("window"),CARD_WIDTH=(WINDOW_WIDTH-36)/2,galleryStyles=react_native_1.StyleSheet.create({container:{flex:1,backgroundColor:AppColors_1.AppColors.grayBackground},topHeaderBar:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,paddingVertical:10,backgroundColor:AppColors_1.AppColors.primaryLight,borderBottomWidth:1,borderBottomColor:AppColors_1.AppColors.grayBorderSecondary},backToTabBtn:{flexDirection:"row",alignItems:"center",gap:4,paddingVertical:4,paddingHorizontal:8,borderRadius:8,backgroundColor:`${AppColors_1.AppColors.purple}12`},backToTabText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11.5,color:AppColors_1.AppColors.purple},headerCenterTitle:{flexDirection:"row",alignItems:"center",gap:6},headerStudioTitle:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:13.5,color:AppColors_1.AppColors.grayTextStrong},headerBadge:{backgroundColor:`${AppColors_1.AppColors.purple}1A`,paddingHorizontal:6,paddingVertical:1.5,borderRadius:10},headerBadgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,color:AppColors_1.AppColors.purple},closeCircleBtn:{width:26,height:26,borderRadius:13,backgroundColor:AppColors_1.AppColors.grayBackground,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,alignItems:"center",justifyContent:"center"},recordingBanner:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",backgroundColor:`${AppColors_1.AppColors.red500}15`,borderBottomWidth:1,borderBottomColor:`${AppColors_1.AppColors.red500}30`,paddingHorizontal:14,paddingVertical:8},recordingDot:{width:8,height:8,borderRadius:4,backgroundColor:AppColors_1.AppColors.red500,marginRight:6},recordingBannerText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12,color:AppColors_1.AppColors.red500,flex:1},stopRecordBtn:{flexDirection:"row",alignItems:"center",gap:5,backgroundColor:AppColors_1.AppColors.red500,paddingHorizontal:10,paddingVertical:4.5,borderRadius:6},stopSquare:{width:8,height:8,backgroundColor:AppColors_1.AppColors.white,borderRadius:1},stopRecordBtnText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,color:AppColors_1.AppColors.white},quickActionsBar:{flexDirection:"row",alignItems:"center",gap:8,paddingHorizontal:12,paddingTop:10,paddingBottom:6},quickBtn:{flex:1,flexDirection:"row",alignItems:"center",justifyContent:"center",gap:5,paddingVertical:7,paddingHorizontal:4,borderRadius:8,borderWidth:1},quickBtnText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11},filterBar:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,paddingVertical:8,borderBottomWidth:1,borderBottomColor:AppColors_1.AppColors.grayBorderSecondary,gap:8},chipGroup:{flexDirection:"row",alignItems:"center",gap:6,flexShrink:1},chip:{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:8,paddingVertical:4.5,borderRadius:8,backgroundColor:AppColors_1.AppColors.primaryLight,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary},chipActive:{backgroundColor:`${AppColors_1.AppColors.purple}14`,borderColor:AppColors_1.AppColors.purple},chipText:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:11,color:AppColors_1.AppColors.grayText},chipTextActive:{fontFamily:AppFonts_1.AppFonts.interBold,color:AppColors_1.AppColors.purple},chipBadge:{backgroundColor:AppColors_1.AppColors.grayBackground,paddingHorizontal:4.5,paddingVertical:1,borderRadius:6},chipBadgeActive:{backgroundColor:AppColors_1.AppColors.purple},chipBadgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9,color:AppColors_1.AppColors.grayTextWeak},chipBadgeTextActive:{color:AppColors_1.AppColors.white},viewToggleContainer:{flexDirection:"row",backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:8,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,padding:2},viewToggleBtn:{paddingHorizontal:7,paddingVertical:4,borderRadius:6},viewToggleBtnActive:{backgroundColor:AppColors_1.AppColors.purple},subBar:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,paddingVertical:6.5,backgroundColor:AppColors_1.AppColors.primaryLight,borderBottomWidth:1,borderBottomColor:AppColors_1.AppColors.grayBorderSecondary},resultCountWrapper:{flex:1},resultCountText:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:11,color:AppColors_1.AppColors.grayTextWeak},resultCountTextSelected:{fontFamily:AppFonts_1.AppFonts.interBold,color:AppColors_1.AppColors.purple},actionsGroup:{flexDirection:"row",alignItems:"center",gap:6},copySelectedBtn:{flexDirection:"row",alignItems:"center",gap:3.5,paddingHorizontal:7,paddingVertical:3.5,borderRadius:6,backgroundColor:AppColors_1.AppColors.grayBackground,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary},copySelectedBtnText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10,color:AppColors_1.AppColors.grayTextStrong},shareSelectedBtn:{flexDirection:"row",alignItems:"center",gap:3.5,paddingHorizontal:7,paddingVertical:3.5,borderRadius:6,backgroundColor:`${AppColors_1.AppColors.sky600}14`,borderWidth:1,borderColor:`${AppColors_1.AppColors.sky600}30`},shareSelectedBtnText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10,color:AppColors_1.AppColors.sky600},deleteBtn:{flexDirection:"row",alignItems:"center",gap:3.5,paddingHorizontal:7,paddingVertical:3.5,borderRadius:6,backgroundColor:`${AppColors_1.AppColors.red500}14`,borderWidth:1,borderColor:`${AppColors_1.AppColors.red500}30`},deleteBtnText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10,color:AppColors_1.AppColors.red500},clearBtn:{flexDirection:"row",alignItems:"center",gap:3.5,paddingHorizontal:7,paddingVertical:3.5,borderRadius:6,backgroundColor:`${AppColors_1.AppColors.red500}10`},clearBtnText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10,color:AppColors_1.AppColors.red500},listContent:{padding:12,paddingBottom:40},columnWrapper:{justifyContent:"space-between",marginBottom:10},card:{width:CARD_WIDTH,backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:12,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,overflow:"hidden",shadowColor:AppColors_1.AppColors.black,shadowOffset:{width:0,height:2},shadowOpacity:.04,shadowRadius:4,elevation:2},cardSelected:{borderColor:AppColors_1.AppColors.purple,borderWidth:2},thumbnailContainer:{width:"100%",height:110,backgroundColor:AppColors_1.AppColors.grayBackground,position:"relative"},thumbnail:{width:"100%",height:"100%"},thumbnailFallback:{flex:1,alignItems:"center",justifyContent:"center"},checkbox:{position:"absolute",top:7,left:7,width:19,height:19,borderRadius:5,backgroundColor:"rgba(0, 0, 0, 0.45)",borderWidth:1.5,borderColor:AppColors_1.AppColors.white,alignItems:"center",justifyContent:"center",zIndex:5},checkboxSelected:{backgroundColor:AppColors_1.AppColors.purple,borderColor:AppColors_1.AppColors.purple},miniPlayCircle:{position:"absolute",top:"50%",left:"50%",transform:[{translateX:-16},{translateY:-16}],width:32,height:32,borderRadius:16,backgroundColor:"rgba(0, 0, 0, 0.65)",alignItems:"center",justifyContent:"center"},typeBadge:{position:"absolute",top:7,right:7,paddingHorizontal:5,paddingVertical:2,borderRadius:4},typeBadgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8.5,color:AppColors_1.AppColors.white,letterSpacing:.3},durationBadge:{position:"absolute",bottom:6,right:6,backgroundColor:"rgba(0, 0, 0, 0.72)",paddingHorizontal:5,paddingVertical:1.5,borderRadius:4},durationBadgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9,color:AppColors_1.AppColors.white},cardInfo:{padding:8,gap:4},cardTitle:{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:11,color:AppColors_1.AppColors.grayTextStrong},cardMetaRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},cardMeta:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:10,color:AppColors_1.AppColors.grayTextWeak},cardMetaDot:{fontSize:9,color:AppColors_1.AppColors.grayTextWeak},gridCopyBtn:{padding:2},listRow:{flexDirection:"row",alignItems:"center",backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:10,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,padding:8,marginBottom:8,gap:10},listRowSelected:{borderColor:AppColors_1.AppColors.purple,borderWidth:1.5},listCheckbox:{width:18,height:18,borderRadius:4,borderWidth:1.5,borderColor:AppColors_1.AppColors.grayBorderSecondary,alignItems:"center",justifyContent:"center"},listThumbContainer:{width:48,height:48,borderRadius:8,backgroundColor:AppColors_1.AppColors.grayBackground,overflow:"hidden",position:"relative"},listThumb:{width:"100%",height:"100%"},listThumbFallback:{flex:1,alignItems:"center",justifyContent:"center"},listMiniPlay:{position:"absolute",bottom:2,right:2,backgroundColor:"rgba(0, 0, 0, 0.65)",borderRadius:3,padding:1.5},listInfo:{flex:1,gap:3},listTitle:{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:12,color:AppColors_1.AppColors.grayTextStrong},listMetaRow:{flexDirection:"row",alignItems:"center",gap:5},listBadge:{paddingHorizontal:4.5,paddingVertical:1,borderRadius:4},listBadgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9,letterSpacing:.3},listActionsRow:{flexDirection:"row",alignItems:"center",gap:4},listActionBtn:{padding:5,borderRadius:6,backgroundColor:AppColors_1.AppColors.grayBackground},emptyHeroCard:{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:16,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,padding:20,alignItems:"center",marginTop:8,shadowColor:AppColors_1.AppColors.black,shadowOffset:{width:0,height:2},shadowOpacity:.03,shadowRadius:6,elevation:2},emptyIconCircle:{width:64,height:64,borderRadius:32,backgroundColor:`${AppColors_1.AppColors.purple}14`,borderWidth:1,borderColor:`${AppColors_1.AppColors.purple}25`,alignItems:"center",justifyContent:"center",marginBottom:12},emptyHeroTitle:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:16,color:AppColors_1.AppColors.grayTextStrong,textAlign:"center",marginBottom:6},emptyHeroSubtitle:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:12,lineHeight:17,color:AppColors_1.AppColors.grayText,textAlign:"center",marginBottom:18,paddingHorizontal:8},emptyActionsGrid:{width:"100%",gap:8,marginBottom:16},emptyActionCard:{flexDirection:"row",alignItems:"center",backgroundColor:AppColors_1.AppColors.grayBackground,borderRadius:10,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,padding:10,gap:12},actionCardIconBox:{width:38,height:38,borderRadius:8,alignItems:"center",justifyContent:"center"},actionCardTextBox:{flex:1,gap:1.5},actionCardTitle:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12.5,color:AppColors_1.AppColors.grayTextStrong},actionCardDesc:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:10.5,color:AppColors_1.AppColors.grayTextWeak},featurePillsRow:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:6,flexWrap:"wrap",paddingTop:4},featurePill:{backgroundColor:AppColors_1.AppColors.grayBackground,paddingHorizontal:8,paddingVertical:3.5,borderRadius:12,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary},featurePillText:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:9.5,color:AppColors_1.AppColors.grayTextWeak}});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";var __importDefault=this&&this.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(require("react")),i18n_1=require("../../i18n"),react_native_1=require("react-native"),InspectorContext_1=require("./InspectorContext"),TouchableScale_1=__importDefault(require("../TouchableScale")),SegmentedTabs_1=__importDefault(require("../SegmentedTabs")),MetaAccordion_1=__importDefault(require("../MetaAccordion")),HeadersSection_1=__importDefault(require("../HeadersSection")),SourcePageCard_1=__importDefault(require("../SourcePageCard")),SectionHeader_1=__importDefault(require("../SectionHeader")),JsonViewer_1=__importDefault(require("../JsonViewer")),DiffViewer_1=__importDefault(require("../DiffViewer")),CopyButton_1=__importDefault(require("../CopyButton")),ShareButton_1=__importDefault(require("../ShareButton")),styles_1=__importDefault(require("../../styles")),AppColors_1=require("../../styles/AppColors"),AppFonts_1=require("../../styles/AppFonts"),constants_1=require("../../constants"),helpers_1=require("../../helpers"),shareFormatter_1=require("../../helpers/shareFormatter"),NetworkIcons_1=require("../NetworkIcons"),NetworkDetail=react_1.default.memo(()=>{const{t:o}=(0,i18n_1.useTranslation)(),{selected:e,detailDisplayUrl:a,apiDetailActiveTab:n,setApiDetailActiveTab:
|
|
1
|
+
"use strict";var __importDefault=this&&this.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importDefault(require("react")),i18n_1=require("../../i18n"),react_native_1=require("react-native"),InspectorContext_1=require("./InspectorContext"),TouchableScale_1=__importDefault(require("../TouchableScale")),SegmentedTabs_1=__importDefault(require("../SegmentedTabs")),MetaAccordion_1=__importDefault(require("../MetaAccordion")),HeadersSection_1=__importDefault(require("../HeadersSection")),SourcePageCard_1=__importDefault(require("../SourcePageCard")),SectionHeader_1=__importDefault(require("../SectionHeader")),JsonViewer_1=__importDefault(require("../JsonViewer")),DiffViewer_1=__importDefault(require("../DiffViewer")),CopyButton_1=__importDefault(require("../CopyButton")),ShareButton_1=__importDefault(require("../ShareButton")),styles_1=__importDefault(require("../../styles")),AppColors_1=require("../../styles/AppColors"),AppFonts_1=require("../../styles/AppFonts"),constants_1=require("../../constants"),helpers_1=require("../../helpers"),shareFormatter_1=require("../../helpers/shareFormatter"),NetworkIcons_1=require("../NetworkIcons"),NetworkDetail=react_1.default.memo(()=>{const{t:o}=(0,i18n_1.useTranslation)(),{selected:e,detailDisplayUrl:a,apiDetailActiveTab:n,setApiDetailActiveTab:y,detailSearch:r,setDetailSearch:l,reqExpanded:s,setReqExpanded:u,resExpanded:i,setResExpanded:f,showReqDiff:c,setShowReqDiff:_,showResDiff:d,setShowResDiff:w,prevRequestData:C,prevResponseData:g,logRouteMapRef:x}=(0,InspectorContext_1.useInspector)(),h=()=>{react_native_1.Alert.alert(o("common.openInBrowser")||"Open URL",`${o("common.openInBrowserPrompt")||"Choose how you want to open or inspect this URL:"}
|
|
2
2
|
|
|
3
|
-
${a}`,[{text:o("common.cancel")||"Cancel",style:"cancel"},{text:o("common.open")||"
|
|
3
|
+
${a}`,[{text:o("common.cancel")||"Cancel",style:"cancel"},{text:"Open in Postman",onPress:()=>{e&&(0,helpers_1.openWithPostman)(e)}},{text:o("common.open")||"Browser",onPress:()=>{react_native_1.Linking.canOpenURL(a).then(t=>{t?react_native_1.Linking.openURL(a):react_native_1.Linking.openURL(a).catch(()=>{})}).catch(()=>{})}}])};return e?<react_native_1.View style={{flex:1}}>
|
|
4
4
|
|
|
5
5
|
<react_native_1.View style={{paddingHorizontal:8,paddingTop:4}}>
|
|
6
6
|
<react_native_1.View style={styles_1.default.detailInfoBar}>
|
|
@@ -70,14 +70,17 @@ ${a}`,[{text:o("common.cancel")||"Cancel",style:"cancel"},{text:o("common.open")
|
|
|
70
70
|
<ShareButton_1.default onShare={()=>(0,shareFormatter_1.shareApiReport)(e)}/>
|
|
71
71
|
<CopyButton_1.default value={(0,helpers_1.getFetchCommand)(e)}label="fetch()"iconType="fetch"/>
|
|
72
72
|
<CopyButton_1.default value={a}label="URL"iconType="copy"/>
|
|
73
|
-
<TouchableScale_1.default style={[styles_1.default.iconSquareBtn,{backgroundColor
|
|
73
|
+
<TouchableScale_1.default style={[styles_1.default.iconSquareBtn,{backgroundColor:"rgba(255, 108, 55, 0.12)",borderColor:"rgba(255, 108, 55, 0.35)"}]}onPress={()=>(0,helpers_1.openWithPostman)(e)}hitSlop={10}accessibilityLabel="Open in Postman">
|
|
74
|
+
<NetworkIcons_1.PostmanIcon color="#FF6C37"size={13}/>
|
|
75
|
+
</TouchableScale_1.default>
|
|
76
|
+
<TouchableScale_1.default style={[styles_1.default.iconSquareBtn,{backgroundColor:`${AppColors_1.AppColors.sky600}15`,borderColor:`${AppColors_1.AppColors.sky600}35`}]}onPress={h}hitSlop={10}accessibilityLabel="Open in Browser">
|
|
74
77
|
<NetworkIcons_1.ExternalLinkIcon color={AppColors_1.AppColors.sky600}size={13}/>
|
|
75
78
|
</TouchableScale_1.default>
|
|
76
79
|
</react_native_1.View>
|
|
77
80
|
</react_native_1.View>
|
|
78
81
|
|
|
79
82
|
|
|
80
|
-
<react_native_1.Pressable onPress={
|
|
83
|
+
<react_native_1.Pressable onPress={h}>
|
|
81
84
|
<react_native_1.Text selectable={!0}style={{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:12.5,color:AppColors_1.AppColors.skyBlue,textDecorationLine:"underline",lineHeight:18}}>
|
|
82
85
|
{a}
|
|
83
86
|
</react_native_1.Text>
|
|
@@ -88,7 +91,7 @@ ${a}`,[{text:o("common.cancel")||"Cancel",style:"cancel"},{text:o("common.open")
|
|
|
88
91
|
</react_native_1.View>
|
|
89
92
|
|
|
90
93
|
|
|
91
|
-
<SegmentedTabs_1.default tabs={[{key:"metadata",label:o("network.detailTabs.metadata"),icon:t=><NetworkIcons_1.StatusIcon color={t?AppColors_1.AppColors.white:AppColors_1.AppColors.grayText}/>},{key:"headers",label:o("network.detailTabs.headers"),icon:t=><NetworkIcons_1.HeadersIcon color={t?AppColors_1.AppColors.white:AppColors_1.AppColors.grayText}/>},...e.request!=null?[{key:"request",label:o("network.detailTabs.request"),icon:t=><NetworkIcons_1.RequestIcon color={t?AppColors_1.AppColors.white:AppColors_1.AppColors.grayText}/>}]:[],{key:"response",label:o("network.detailTabs.response"),icon:t=><NetworkIcons_1.ResponseIcon color={t?AppColors_1.AppColors.white:AppColors_1.AppColors.grayText}/>}]}activeKey={n}onChange={t=>{(0,InspectorContext_1.animateNextLayout)(),
|
|
94
|
+
<SegmentedTabs_1.default tabs={[{key:"metadata",label:o("network.detailTabs.metadata"),icon:t=><NetworkIcons_1.StatusIcon color={t?AppColors_1.AppColors.white:AppColors_1.AppColors.grayText}/>},{key:"headers",label:o("network.detailTabs.headers"),icon:t=><NetworkIcons_1.HeadersIcon color={t?AppColors_1.AppColors.white:AppColors_1.AppColors.grayText}/>},...e.request!=null?[{key:"request",label:o("network.detailTabs.request"),icon:t=><NetworkIcons_1.RequestIcon color={t?AppColors_1.AppColors.white:AppColors_1.AppColors.grayText}/>}]:[],{key:"response",label:o("network.detailTabs.response"),icon:t=><NetworkIcons_1.ResponseIcon color={t?AppColors_1.AppColors.white:AppColors_1.AppColors.grayText}/>}]}activeKey={n}onChange={t=>{(0,InspectorContext_1.animateNextLayout)(),y(t)}}style={{marginHorizontal:6,marginBottom:10,marginTop:6}}/>
|
|
92
95
|
|
|
93
96
|
|
|
94
97
|
<react_native_1.ScrollView style={styles_1.default.detailScroll}contentContainerStyle={{paddingHorizontal:6,paddingBottom:24}}showsVerticalScrollIndicator={!0}>
|
|
@@ -130,7 +133,7 @@ ${a}`,[{text:o("common.cancel")||"Cancel",style:"cancel"},{text:o("common.open")
|
|
|
130
133
|
</react_native_1.View>
|
|
131
134
|
|
|
132
135
|
<react_native_1.View style={styles_1.default.sectionContainer}>
|
|
133
|
-
<SectionHeader_1.default title={o("network.requestTitle")}value={e.request}expanded={s}onToggleExpand={()=>u(t=>!t)}showDiff={C!=null}isDiffing={c}onToggleDiff={()=>{
|
|
136
|
+
<SectionHeader_1.default title={o("network.requestTitle")}value={e.request}expanded={s}onToggleExpand={()=>u(t=>!t)}showDiff={C!=null}isDiffing={c}onToggleDiff={()=>{_(t=>!t),!s&&!c&&u(!0)}}/>
|
|
134
137
|
{c?<DiffViewer_1.default oldData={C}newData={e.request}forceOpen={s}/>:s?<JsonViewer_1.default data={e.request}search={r}/>:<react_native_1.View style={styles_1.default.codeBlock}>
|
|
135
138
|
<react_native_1.Text style={[styles_1.default.codeText,{color:AppColors_1.AppColors.grayTextWeak}]}>
|
|
136
139
|
{o("network.bodyHidden")}
|
|
@@ -150,8 +153,8 @@ ${a}`,[{text:o("common.cancel")||"Cancel",style:"cancel"},{text:o("common.open")
|
|
|
150
153
|
</react_native_1.View>
|
|
151
154
|
|
|
152
155
|
<react_native_1.View style={styles_1.default.sectionContainer}>
|
|
153
|
-
<SectionHeader_1.default title={o("network.responseTitle")}value={e.response}expanded={i}onToggleExpand={()=>f(t=>!t)}showDiff={
|
|
154
|
-
{d?<DiffViewer_1.default oldData={
|
|
156
|
+
<SectionHeader_1.default title={o("network.responseTitle")}value={e.response}expanded={i}onToggleExpand={()=>f(t=>!t)}showDiff={g!=null}isDiffing={d}onToggleDiff={()=>{w(t=>!t),!i&&!d&&f(!0)}}/>
|
|
157
|
+
{d?<DiffViewer_1.default oldData={g}newData={e.response}forceOpen={i}/>:i?<JsonViewer_1.default data={e.response}search={r}wrap/>:<react_native_1.View style={styles_1.default.codeBlock}>
|
|
155
158
|
<react_native_1.Text style={[styles_1.default.codeText,{color:AppColors_1.AppColors.grayTextWeak}]}>
|
|
156
159
|
{o("network.bodyHidden")}
|
|
157
160
|
</react_native_1.Text>
|