react-native-inapp-inspector 2.4.0 → 2.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.ar.md +163 -0
- package/README.de.md +163 -0
- package/README.es.md +164 -0
- package/README.fr.md +163 -0
- package/README.hi.md +163 -0
- package/README.ja.md +180 -0
- package/README.ko.md +163 -0
- package/README.md +340 -243
- package/README.pt-BR.md +163 -0
- package/README.ru.md +163 -0
- package/README.zh-CN.md +387 -0
- package/android/src/main/java/com/inappinspector/NetworkInspectorModule.kt +82 -21
- package/assets/banner_dark.svg +186 -0
- package/assets/banner_light.svg +186 -0
- package/assets/icon_circle.svg +148 -0
- package/assets/icon_square.svg +369 -0
- package/assets/inapp_inspector_icon.gif +0 -0
- package/assets/inapp_inspector_icon_original.gif +0 -0
- package/assets/social_preview.png +0 -0
- package/assets/walkthrough.gif +0 -0
- package/dist/commonjs/components/AnimatedBrandOwl.d.ts +7 -0
- package/dist/commonjs/components/AnimatedBrandOwl.js +175 -0
- package/dist/commonjs/components/AppHeaderLogo.d.ts +1 -0
- package/dist/commonjs/components/AppHeaderLogo.js +7 -5
- package/dist/commonjs/components/BrandSquareIcon.d.ts +5 -0
- package/dist/commonjs/components/BrandSquareIcon.js +139 -0
- package/dist/commonjs/components/ConsoleLogCard.d.ts +2 -1
- package/dist/commonjs/components/ConsoleLogCard.js +23 -39
- package/dist/commonjs/components/Inspector/AboutModal.js +44 -54
- package/dist/commonjs/components/Inspector/AnalyticsTab.js +16 -16
- package/dist/commonjs/components/Inspector/ConfirmationModal.d.ts +13 -0
- package/dist/commonjs/components/Inspector/ConfirmationModal.js +32 -0
- package/dist/commonjs/components/Inspector/ConsoleTab.js +15 -15
- package/dist/commonjs/components/Inspector/CrashTab.js +25 -23
- package/dist/commonjs/components/Inspector/DebuggingTab.js +17 -17
- package/dist/commonjs/components/Inspector/FabLauncher.js +22 -30
- package/dist/commonjs/components/Inspector/FeatureUnderDevNotice.js +2 -2
- package/dist/commonjs/components/Inspector/LanguageSelectorModal.d.ts +15 -0
- package/dist/commonjs/components/Inspector/LanguageSelectorModal.js +90 -0
- package/dist/commonjs/components/Inspector/MainScreen.js +46 -33
- package/dist/commonjs/components/Inspector/MediaGalleryTab.js +21 -19
- package/dist/commonjs/components/Inspector/MediaPreviewModal.js +85 -101
- package/dist/commonjs/components/Inspector/NetworkTab.js +50 -50
- package/dist/commonjs/components/Inspector/NpmUpdateToast.js +1 -1
- package/dist/commonjs/components/Inspector/PushCard.d.ts +3 -2
- package/dist/commonjs/components/Inspector/PushCard.js +5 -4
- package/dist/commonjs/components/Inspector/PushDetail.js +32 -23
- package/dist/commonjs/components/Inspector/PushTab.js +13 -13
- package/dist/commonjs/components/Inspector/ReduxDetail.js +32 -32
- package/dist/commonjs/components/Inspector/ReduxTab.js +14 -14
- package/dist/commonjs/components/Inspector/SettingsPanel.js +258 -139
- package/dist/commonjs/components/Inspector/SocketCard.d.ts +5 -0
- package/dist/commonjs/components/Inspector/SocketCard.js +116 -0
- package/dist/commonjs/components/Inspector/SocketDetail.d.ts +4 -0
- package/dist/commonjs/components/Inspector/SocketDetail.js +317 -0
- package/dist/commonjs/components/Inspector/SocketFilterModal.d.ts +13 -0
- package/dist/commonjs/components/Inspector/SocketFilterModal.js +69 -0
- package/dist/commonjs/components/Inspector/SocketTab.d.ts +3 -0
- package/dist/commonjs/components/Inspector/SocketTab.js +112 -0
- package/dist/commonjs/components/Inspector/StorageTab.js +34 -32
- package/dist/commonjs/components/Inspector/SupportModal.d.ts +7 -0
- package/dist/commonjs/components/Inspector/SupportModal.js +125 -0
- package/dist/commonjs/components/Inspector/SupportPage.d.ts +5 -0
- package/dist/commonjs/components/Inspector/SupportPage.js +227 -0
- package/dist/commonjs/components/Inspector/TabBar.js +24 -23
- package/dist/commonjs/components/Inspector/UpdateAvailableModal.js +24 -24
- package/dist/commonjs/components/JsonViewer.js +7 -7
- package/dist/commonjs/components/LogCard.d.ts +3 -2
- package/dist/commonjs/components/LogCard.js +17 -14
- package/dist/commonjs/components/LogSyntaxHighlighter.js +5 -5
- package/dist/commonjs/components/ModuleErrorBoundary.js +2 -2
- package/dist/commonjs/components/NetworkIcons.d.ts +15 -0
- package/dist/commonjs/components/NetworkIcons.js +38 -3
- package/dist/commonjs/components/SegmentedTabs.js +1 -1
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -1
- package/dist/commonjs/customHooks/socketLogger.d.ts +26 -0
- package/dist/commonjs/customHooks/socketLogger.js +2 -0
- package/dist/commonjs/helpers/index.js +3 -3
- package/dist/commonjs/helpers/memoryManager.d.ts +1 -0
- package/dist/commonjs/helpers/memoryManager.js +1 -1
- package/dist/commonjs/helpers/searchQueryParser.d.ts +1 -1
- package/dist/commonjs/helpers/searchQueryParser.js +5 -1
- package/dist/commonjs/helpers/settingsStore.d.ts +1 -0
- package/dist/commonjs/helpers/settingsStore.js +1 -1
- package/dist/commonjs/helpers/shareFormatter.d.ts +3 -1
- package/dist/commonjs/helpers/shareFormatter.js +8 -7
- package/dist/commonjs/i18n/index.d.ts +99 -1
- package/dist/commonjs/i18n/index.js +1 -1
- package/dist/commonjs/i18n/locales/ar.json +1 -1
- package/dist/commonjs/i18n/locales/bn.json +1 -0
- 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 -0
- package/dist/commonjs/i18n/locales/hi.json +1 -1
- package/dist/commonjs/i18n/locales/id.json +1 -0
- package/dist/commonjs/i18n/locales/it.json +1 -0
- package/dist/commonjs/i18n/locales/ja.json +1 -1
- package/dist/commonjs/i18n/locales/kn.json +1 -0
- package/dist/commonjs/i18n/locales/ko.json +1 -1
- package/dist/commonjs/i18n/locales/ml.json +1 -0
- package/dist/commonjs/i18n/locales/mr.json +1 -0
- package/dist/commonjs/i18n/locales/nl.json +1 -0
- package/dist/commonjs/i18n/locales/pa.json +1 -0
- package/dist/commonjs/i18n/locales/pl.json +1 -0
- 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 -0
- package/dist/commonjs/i18n/locales/te.json +1 -0
- package/dist/commonjs/i18n/locales/tr.json +1 -0
- package/dist/commonjs/i18n/locales/vi.json +1 -0
- package/dist/commonjs/i18n/locales/zh.json +1 -1
- package/dist/commonjs/index.d.ts +13 -13
- package/dist/commonjs/index.js +5 -4
- package/dist/commonjs/native/NativeInspector.d.ts +1 -0
- package/dist/commonjs/socket.d.ts +4 -0
- package/dist/commonjs/socket.js +1 -0
- package/dist/commonjs/styles/index.d.ts +23 -0
- package/dist/commonjs/styles/index.js +1 -1
- package/dist/commonjs/types/enums.d.ts +40 -0
- package/dist/commonjs/types/enums.js +1 -1
- package/dist/commonjs/types/interfaces.d.ts +122 -1
- package/dist/esm/components/AnimatedBrandOwl.d.ts +7 -0
- package/dist/esm/components/AnimatedBrandOwl.js +175 -0
- package/dist/esm/components/AppHeaderLogo.d.ts +1 -0
- package/dist/esm/components/AppHeaderLogo.js +7 -5
- package/dist/esm/components/BrandSquareIcon.d.ts +5 -0
- package/dist/esm/components/BrandSquareIcon.js +139 -0
- package/dist/esm/components/ConsoleLogCard.d.ts +2 -1
- package/dist/esm/components/ConsoleLogCard.js +61 -77
- package/dist/esm/components/Inspector/AboutModal.js +85 -95
- package/dist/esm/components/Inspector/AnalyticsTab.js +31 -31
- package/dist/esm/components/Inspector/ConfirmationModal.d.ts +13 -0
- package/dist/esm/components/Inspector/ConfirmationModal.js +32 -0
- package/dist/esm/components/Inspector/ConsoleTab.js +49 -49
- package/dist/esm/components/Inspector/CrashTab.js +40 -38
- package/dist/esm/components/Inspector/DebuggingTab.js +29 -29
- package/dist/esm/components/Inspector/FabLauncher.js +50 -58
- package/dist/esm/components/Inspector/FeatureUnderDevNotice.js +7 -7
- package/dist/esm/components/Inspector/LanguageSelectorModal.d.ts +15 -0
- package/dist/esm/components/Inspector/LanguageSelectorModal.js +90 -0
- package/dist/esm/components/Inspector/MainScreen.js +123 -110
- package/dist/esm/components/Inspector/MediaGalleryTab.js +64 -62
- package/dist/esm/components/Inspector/MediaPreviewModal.js +107 -123
- package/dist/esm/components/Inspector/NetworkTab.js +90 -90
- package/dist/esm/components/Inspector/NpmUpdateToast.js +1 -1
- package/dist/esm/components/Inspector/PushCard.d.ts +3 -2
- package/dist/esm/components/Inspector/PushCard.js +23 -22
- package/dist/esm/components/Inspector/PushDetail.js +34 -25
- package/dist/esm/components/Inspector/PushTab.js +25 -25
- package/dist/esm/components/Inspector/ReduxDetail.js +42 -42
- package/dist/esm/components/Inspector/ReduxTab.js +35 -35
- package/dist/esm/components/Inspector/SettingsPanel.js +495 -376
- package/dist/esm/components/Inspector/SocketCard.d.ts +5 -0
- package/dist/esm/components/Inspector/SocketCard.js +116 -0
- package/dist/esm/components/Inspector/SocketDetail.d.ts +4 -0
- package/dist/esm/components/Inspector/SocketDetail.js +317 -0
- package/dist/esm/components/Inspector/SocketFilterModal.d.ts +13 -0
- package/dist/esm/components/Inspector/SocketFilterModal.js +69 -0
- package/dist/esm/components/Inspector/SocketTab.d.ts +3 -0
- package/dist/esm/components/Inspector/SocketTab.js +112 -0
- package/dist/esm/components/Inspector/StorageTab.js +136 -134
- package/dist/esm/components/Inspector/SupportModal.d.ts +7 -0
- package/dist/esm/components/Inspector/SupportModal.js +125 -0
- package/dist/esm/components/Inspector/SupportPage.d.ts +5 -0
- package/dist/esm/components/Inspector/SupportPage.js +227 -0
- package/dist/esm/components/Inspector/TabBar.js +36 -35
- package/dist/esm/components/Inspector/UpdateAvailableModal.js +22 -22
- package/dist/esm/components/JsonViewer.js +55 -55
- package/dist/esm/components/LogCard.d.ts +3 -2
- package/dist/esm/components/LogCard.js +61 -58
- package/dist/esm/components/LogSyntaxHighlighter.js +5 -5
- package/dist/esm/components/ModuleErrorBoundary.js +23 -23
- package/dist/esm/components/NetworkIcons.d.ts +15 -0
- package/dist/esm/components/NetworkIcons.js +38 -3
- package/dist/esm/components/SegmentedTabs.js +7 -7
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/customHooks/socketLogger.d.ts +26 -0
- package/dist/esm/customHooks/socketLogger.js +2 -0
- package/dist/esm/helpers/index.js +3 -3
- package/dist/esm/helpers/memoryManager.d.ts +1 -0
- package/dist/esm/helpers/memoryManager.js +1 -1
- package/dist/esm/helpers/searchQueryParser.d.ts +1 -1
- package/dist/esm/helpers/searchQueryParser.js +5 -1
- package/dist/esm/helpers/settingsStore.d.ts +1 -0
- package/dist/esm/helpers/settingsStore.js +1 -1
- package/dist/esm/helpers/shareFormatter.d.ts +3 -1
- package/dist/esm/helpers/shareFormatter.js +8 -7
- package/dist/esm/i18n/index.d.ts +99 -1
- package/dist/esm/i18n/index.js +1 -1
- package/dist/esm/i18n/locales/ar.json +1 -1
- package/dist/esm/i18n/locales/bn.json +1 -0
- 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 -0
- package/dist/esm/i18n/locales/hi.json +1 -1
- package/dist/esm/i18n/locales/id.json +1 -0
- package/dist/esm/i18n/locales/it.json +1 -0
- package/dist/esm/i18n/locales/ja.json +1 -1
- package/dist/esm/i18n/locales/kn.json +1 -0
- package/dist/esm/i18n/locales/ko.json +1 -1
- package/dist/esm/i18n/locales/ml.json +1 -0
- package/dist/esm/i18n/locales/mr.json +1 -0
- package/dist/esm/i18n/locales/nl.json +1 -0
- package/dist/esm/i18n/locales/pa.json +1 -0
- package/dist/esm/i18n/locales/pl.json +1 -0
- 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 -0
- package/dist/esm/i18n/locales/te.json +1 -0
- package/dist/esm/i18n/locales/tr.json +1 -0
- package/dist/esm/i18n/locales/vi.json +1 -0
- package/dist/esm/i18n/locales/zh.json +1 -1
- package/dist/esm/index.d.ts +13 -13
- package/dist/esm/index.js +8 -7
- package/dist/esm/native/NativeInspector.d.ts +1 -0
- package/dist/esm/socket.d.ts +4 -0
- package/dist/esm/socket.js +1 -0
- package/dist/esm/styles/index.d.ts +23 -0
- package/dist/esm/styles/index.js +1 -1
- package/dist/esm/types/enums.d.ts +40 -0
- package/dist/esm/types/enums.js +1 -1
- package/dist/esm/types/interfaces.d.ts +122 -1
- package/ios/NetworkInspectorModule.mm +102 -12
- package/package.json +204 -2
- package/src/native/NativeInspector.ts +8 -0
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(e,
|
|
1
|
+
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(e,o,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(o,a);(!r||("get"in r?!o.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return o[a]}}),Object.defineProperty(e,i,r)}):(function(e,o,a,i){i===void 0&&(i=a),e[i]=o[a]})),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?(function(e,o){Object.defineProperty(e,"default",{enumerable:!0,value:o})}):function(e,o){e.default=o}),__importStar=this&&this.__importStar||(function(){var e=function(o){return e=Object.getOwnPropertyNames||function(a){var i=[];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(i[i.length]=r);return i},e(o)};return function(o){if(o&&o.__esModule)return o;var a={};if(o!=null)for(var i=e(o),r=0;r<i.length;r++)i[r]!=="default"&&__createBinding(a,o,i[r]);return __setModuleDefault(a,o),a}})(),__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.MediaPreviewModal=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")),AppColors_1=require("../../styles/AppColors"),AppFonts_1=require("../../styles/AppFonts"),TouchableScale_1=__importDefault(require("../TouchableScale")),ConfirmationModal_1=require("./ConfirmationModal"),NetworkIcons_1=require("../NetworkIcons"),capture_1=require("../../capture"),helpers_1=require("../../helpers"),toast_1=require("../../helpers/toast"),i18n_1=require("../../i18n"),NativeInspector_1=require("../../native/NativeInspector"),MediaPreviewModal=({item:e,visible:o,onClose:a,onDelete:i,onConvertToGif:r})=>{const{t}=(0,i18n_1.useTranslation)(),[u,y]=(0,react_1.useState)(!1),[_,h]=(0,react_1.useState)(!1),[s,v]=(0,react_1.useState)(!1),[m,g]=(0,react_1.useState)(!1),[T,p]=(0,react_1.useState)(!1);if(!e)return null;const c=()=>{e?.uri&&(0,helpers_1.copyImageOrMediaToClipboard)(e.uri,e.type==="image"?"Image":"Media")},b=async()=>{try{g(!0),await capture_1.ScreenCapture.playVideo(e.uri)}catch{(0,toast_1.showToast)(t("mediaGallery.playError","Unable to play video"))}finally{g(!1)}},f=()=>{(0,NativeInspector_1.triggerNativeHaptic)("medium"),p(!0)},x=async()=>{if(r){y(!0);try{await r(e),(0,toast_1.showToast)(t("mediaGallery.convertedSuccess"))}catch{(0,toast_1.showToast)(t("mediaGallery.convertFailed"))}finally{y(!1)}}},w=async()=>{try{const d=e.uri.startsWith("file://")||e.uri.startsWith("content://")||e.uri.startsWith("http")?e.uri:`file://${e.uri}`,A=react_native_1.Platform.select({ios:{url:d,title:e.filename},default:{title:e.filename,message:e.filename,url:d}});(await react_native_1.Share.share(A)).action===react_native_1.Share.sharedAction&&(0,toast_1.showToast)(t("mediaGallery.shareSuccess","Shared successfully"))}catch(d){d?.message!=="User did not share"&&(0,toast_1.showToast)(t("mediaGallery.shareUnavailable","Sharing not available on this device"))}},l=e.type==="video",C=e.type==="gif",n=e.durationMs?(e.durationMs/1e3).toFixed(1):null,S=n?`00:${Number(n)<10?"0":""}${n}`:null;return<react_native_1.Modal visible={o}transparent={!0}animationType="fade"statusBarTranslucent={!0}onRequestClose={a}>
|
|
2
|
+
<react_native_1.StatusBar translucent backgroundColor="transparent"barStyle="light-content"/>
|
|
2
3
|
<react_native_1.View style={previewStyles.overlay}>
|
|
3
4
|
|
|
4
|
-
<
|
|
5
|
-
<react_native_1.TouchableOpacity activeOpacity={.8}onPress={
|
|
6
|
-
<react_native_1.View style={
|
|
7
|
-
{
|
|
8
|
-
<react_native_1.Text style={
|
|
5
|
+
<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={previewStyles.header}>
|
|
6
|
+
<react_native_1.TouchableOpacity activeOpacity={.8}onPress={c}style={previewStyles.headerLeft}>
|
|
7
|
+
<react_native_1.View style={previewStyles.badge}>
|
|
8
|
+
{l?<NetworkIcons_1.FilmIcon size={12}color={AppColors_1.AppColors.white}/>:C?<NetworkIcons_1.GifIcon size={12}color={AppColors_1.AppColors.white}/>:<NetworkIcons_1.ImageIcon size={12}color={AppColors_1.AppColors.white}/>}
|
|
9
|
+
<react_native_1.Text style={previewStyles.badgeText}>
|
|
9
10
|
{e.format.toUpperCase()}
|
|
10
11
|
</react_native_1.Text>
|
|
11
12
|
</react_native_1.View>
|
|
12
|
-
<react_native_1.View style={
|
|
13
|
+
<react_native_1.View style={previewStyles.headerTextCol}>
|
|
13
14
|
<react_native_1.Text style={previewStyles.title}numberOfLines={1}>
|
|
14
15
|
{e.filename}
|
|
15
16
|
</react_native_1.Text>
|
|
@@ -21,146 +22,129 @@
|
|
|
21
22
|
|
|
22
23
|
|
|
23
24
|
<react_native_1.View style={previewStyles.headerRight}>
|
|
24
|
-
<TouchableScale_1.default accessible={!0}accessibilityRole="button"accessibilityLabel={
|
|
25
|
-
<NetworkIcons_1.CopyIcon size={
|
|
25
|
+
<TouchableScale_1.default accessible={!0}accessibilityRole="button"accessibilityLabel={t("mediaGallery.copyUri","Copy URI")}onPress={c}style={previewStyles.headerActionBtn}hitSlop={{top:10,bottom:10,left:10,right:10}}>
|
|
26
|
+
<NetworkIcons_1.CopyIcon size={13}color={AppColors_1.AppColors.white}/>
|
|
26
27
|
</TouchableScale_1.default>
|
|
27
28
|
|
|
28
|
-
<TouchableScale_1.default accessible={!0}accessibilityRole="button"accessibilityLabel={
|
|
29
|
-
<NetworkIcons_1.ShareIcon size={
|
|
29
|
+
<TouchableScale_1.default accessible={!0}accessibilityRole="button"accessibilityLabel={t("mediaGallery.share","Share")}onPress={w}style={previewStyles.headerActionBtn}hitSlop={{top:10,bottom:10,left:10,right:10}}>
|
|
30
|
+
<NetworkIcons_1.ShareIcon size={13}color={AppColors_1.AppColors.white}/>
|
|
30
31
|
</TouchableScale_1.default>
|
|
31
32
|
|
|
32
|
-
<TouchableScale_1.default accessible={!0}accessibilityRole="button"accessibilityLabel={
|
|
33
|
-
<NetworkIcons_1.TrashIcon size={
|
|
33
|
+
<TouchableScale_1.default accessible={!0}accessibilityRole="button"accessibilityLabel={t("mediaGallery.delete")}onPress={f}style={previewStyles.headerDeleteBtn}hitSlop={{top:10,bottom:10,left:10,right:10}}>
|
|
34
|
+
<NetworkIcons_1.TrashIcon size={13}color={AppColors_1.AppColors.white}/>
|
|
34
35
|
</TouchableScale_1.default>
|
|
35
36
|
|
|
36
|
-
<react_native_1.TouchableOpacity accessible={!0}accessibilityRole="button"accessibilityLabel={
|
|
37
|
-
<NetworkIcons_1.ExpandCollapseIcon size={
|
|
37
|
+
<react_native_1.TouchableOpacity accessible={!0}accessibilityRole="button"accessibilityLabel={s?t("mediaGallery.collapse","Exit Fullscreen"):t("mediaGallery.expand","Expand Fullscreen")}onPress={()=>v(!s)}style={previewStyles.headerIconBtn}hitSlop={{top:10,bottom:10,left:10,right:10}}>
|
|
38
|
+
<NetworkIcons_1.ExpandCollapseIcon size={13}isExpanded={s}color={AppColors_1.AppColors.white}/>
|
|
38
39
|
</react_native_1.TouchableOpacity>
|
|
39
40
|
|
|
40
|
-
<react_native_1.TouchableOpacity accessible={!0}accessibilityRole="button"accessibilityLabel={
|
|
41
|
-
<NetworkIcons_1.ChevronDownIcon size={
|
|
41
|
+
<react_native_1.TouchableOpacity accessible={!0}accessibilityRole="button"accessibilityLabel={t("mediaGallery.minimize","Minimize")}onPress={a}style={previewStyles.headerIconBtn}hitSlop={{top:10,bottom:10,left:10,right:10}}>
|
|
42
|
+
<NetworkIcons_1.ChevronDownIcon size={14}color={AppColors_1.AppColors.white}/>
|
|
42
43
|
</react_native_1.TouchableOpacity>
|
|
43
44
|
</react_native_1.View>
|
|
44
|
-
</
|
|
45
|
+
</react_native_linear_gradient_1.default>
|
|
45
46
|
|
|
46
47
|
|
|
47
|
-
<react_native_1.View style={[previewStyles.stage,
|
|
48
|
-
<react_native_1.TouchableOpacity activeOpacity={
|
|
49
|
-
{
|
|
50
|
-
<react_native_1.Image source={{uri:e.thumbnailUri}}style={previewStyles.image}resizeMode="contain"onError={()=>
|
|
48
|
+
<react_native_1.View style={[previewStyles.stage,s&&previewStyles.stageExpanded]}>
|
|
49
|
+
<react_native_1.TouchableOpacity activeOpacity={l?.92:1}onPress={l?b:void 0}style={[previewStyles.previewCard,s&&previewStyles.previewCardExpanded]}>
|
|
50
|
+
{l?e.thumbnailUri&&!_?<>
|
|
51
|
+
<react_native_1.Image source={{uri:e.thumbnailUri}}style={previewStyles.image}resizeMode="contain"onError={()=>h(!0)}/>
|
|
51
52
|
<react_native_1.View style={previewStyles.videoImageOverlay}/>
|
|
52
53
|
</>:<react_native_1.View style={previewStyles.videoFallbackBackdrop}>
|
|
53
54
|
<react_native_1.View style={previewStyles.videoFallbackGlow}/>
|
|
54
|
-
<NetworkIcons_1.FilmIcon size={
|
|
55
|
+
<NetworkIcons_1.FilmIcon size={52}color={AppColors_1.AppColors.sky400}/>
|
|
56
|
+
<react_native_1.Text style={previewStyles.videoFallbackTitle}>
|
|
57
|
+
{e.width&&e.height?`${e.width} \xD7 ${e.height}`:"HD Video Recording"}
|
|
58
|
+
</react_native_1.Text>
|
|
55
59
|
<react_native_1.Text style={previewStyles.videoFallbackSubtitle}>
|
|
56
|
-
{
|
|
60
|
+
{n?`${n}s duration`:"MP4 Video"} • {(0,helpers_1.formatBytes)(e.sizeBytes)}
|
|
57
61
|
</react_native_1.Text>
|
|
58
|
-
</react_native_1.View>:<react_native_1.Image source={{uri:e.uri}}style={previewStyles.image}resizeMode="contain"onError={()=>
|
|
62
|
+
</react_native_1.View>:<react_native_1.Image source={{uri:e.uri}}style={previewStyles.image}resizeMode="contain"onError={()=>h(!0)}/>}
|
|
59
63
|
|
|
60
64
|
|
|
61
|
-
{
|
|
65
|
+
{l&&<react_native_1.View style={previewStyles.centerPlayContainer}pointerEvents="box-none">
|
|
66
|
+
<react_native_1.View style={previewStyles.centerPlayGlow}/>
|
|
62
67
|
<react_native_1.View style={previewStyles.centerPlayCircle}>
|
|
63
68
|
<NetworkIcons_1.PlayIcon size={28}color={AppColors_1.AppColors.white}/>
|
|
64
69
|
</react_native_1.View>
|
|
65
|
-
<react_native_1.
|
|
66
|
-
{
|
|
67
|
-
|
|
70
|
+
<react_native_1.View style={previewStyles.centerPlayPill}>
|
|
71
|
+
<react_native_1.Text style={previewStyles.centerPlayText}>
|
|
72
|
+
{t("mediaGallery.playVideo","Play Video")}
|
|
73
|
+
</react_native_1.Text>
|
|
74
|
+
</react_native_1.View>
|
|
68
75
|
</react_native_1.View>}
|
|
69
76
|
|
|
70
77
|
|
|
71
|
-
{
|
|
72
|
-
<react_native_1.View style={previewStyles.
|
|
73
|
-
<NetworkIcons_1.FilmIcon size={
|
|
74
|
-
<react_native_1.Text style={previewStyles.
|
|
75
|
-
{
|
|
78
|
+
{l&&<react_native_1.View style={previewStyles.topLeftBadgeOverlay}pointerEvents="none">
|
|
79
|
+
<react_native_1.View style={previewStyles.metaPill}>
|
|
80
|
+
<NetworkIcons_1.FilmIcon size={11}color={AppColors_1.AppColors.sky400}/>
|
|
81
|
+
<react_native_1.Text style={previewStyles.metaPillText}>
|
|
82
|
+
{S||(n?`${n}s`:"VIDEO")}
|
|
76
83
|
</react_native_1.Text>
|
|
77
84
|
</react_native_1.View>
|
|
78
85
|
</react_native_1.View>}
|
|
79
86
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
<
|
|
84
|
-
<react_native_1.Text style={previewStyles.playPillText}>ANIMATED GIF</react_native_1.Text>
|
|
87
|
+
{C&&<react_native_1.View style={previewStyles.topLeftBadgeOverlay}pointerEvents="none">
|
|
88
|
+
<react_native_1.View style={[previewStyles.metaPill,{backgroundColor:"rgba(245, 158, 11, 0.85)"}]}>
|
|
89
|
+
<NetworkIcons_1.GifIcon size={11}color={AppColors_1.AppColors.white}/>
|
|
90
|
+
<react_native_1.Text style={previewStyles.metaPillText}>ANIMATED GIF</react_native_1.Text>
|
|
85
91
|
</react_native_1.View>
|
|
86
92
|
</react_native_1.View>}
|
|
87
93
|
|
|
88
94
|
|
|
89
|
-
<react_native_1.TouchableOpacity activeOpacity={.8}onPress={
|
|
90
|
-
<
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
+
<react_native_1.TouchableOpacity activeOpacity={.8}onPress={c}style={previewStyles.bottomRightBadgeOverlay}>
|
|
96
|
+
<react_native_1.View style={previewStyles.metaPill}>
|
|
97
|
+
<NetworkIcons_1.CopyIcon size={10}color={AppColors_1.AppColors.sky400}/>
|
|
98
|
+
<react_native_1.Text style={previewStyles.metaPillText}>
|
|
99
|
+
{e.width&&e.height?`${e.width} \xD7 ${e.height} \u2022 `:""}
|
|
100
|
+
{(0,helpers_1.formatBytes)(e.sizeBytes)}
|
|
101
|
+
</react_native_1.Text>
|
|
102
|
+
</react_native_1.View>
|
|
95
103
|
</react_native_1.TouchableOpacity>
|
|
96
104
|
</react_native_1.TouchableOpacity>
|
|
97
105
|
</react_native_1.View>
|
|
98
106
|
|
|
99
107
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
<react_native_1.Text style={previewStyles.
|
|
104
|
-
|
|
108
|
+
<react_native_1.View style={previewStyles.footer}>
|
|
109
|
+
{l&&<TouchableScale_1.default onPress={b}style={previewStyles.primaryPlayBtn}>
|
|
110
|
+
<NetworkIcons_1.PlayIcon size={16}color={AppColors_1.AppColors.white}/>
|
|
111
|
+
<react_native_1.Text style={previewStyles.primaryPlayText}>
|
|
112
|
+
{m?t("mediaGallery.playing","Playing Video..."):t("mediaGallery.playInPlayer","Play Fullscreen Video")}
|
|
105
113
|
</react_native_1.Text>
|
|
106
|
-
|
|
107
|
-
<react_native_1.View style={[previewStyles.progressFill,{width:`${Math.max(10,Math.min(100,h*100))}%`}]}/>
|
|
108
|
-
<react_native_1.View style={[previewStyles.scrubberThumb,{left:`${Math.max(8,Math.min(96,h*100))}%`}]}/>
|
|
109
|
-
</react_native_1.TouchableOpacity>
|
|
110
|
-
<react_native_1.Text style={previewStyles.timeLabel}>{V}</react_native_1.Text>
|
|
111
|
-
</react_native_1.View>
|
|
114
|
+
</TouchableScale_1.default>}
|
|
112
115
|
|
|
113
|
-
|
|
114
|
-
<
|
|
115
|
-
|
|
116
|
-
<react_native_1.
|
|
117
|
-
{
|
|
118
|
-
<react_native_1.Text style={[previewStyles.controlActionText,{color:AppColors_1.AppColors.sky400}]}>
|
|
119
|
-
{C?o("mediaGallery.pause","Pause"):o("mediaGallery.play","Play")}
|
|
120
|
-
</react_native_1.Text>
|
|
121
|
-
</react_native_1.TouchableOpacity>
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
<react_native_1.View style={previewStyles.speedGroup}>
|
|
125
|
-
{["1.0x","1.5x","2.0x"].map(l=><react_native_1.TouchableOpacity key={l}onPress={()=>x(l)}style={[previewStyles.speedBtn,A===l&&previewStyles.speedBtnActive]}>
|
|
126
|
-
<react_native_1.Text style={[previewStyles.speedText,A===l&&previewStyles.speedTextActive]}>
|
|
127
|
-
{l}
|
|
128
|
-
</react_native_1.Text>
|
|
129
|
-
</react_native_1.TouchableOpacity>)}
|
|
130
|
-
</react_native_1.View>
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
<react_native_1.TouchableOpacity onPress={()=>S(!c)}style={[previewStyles.loopPill,c&&previewStyles.loopPillActive]}>
|
|
134
|
-
<NetworkIcons_1.RepeatIcon size={12}color={c?AppColors_1.AppColors.sky400:AppColors_1.AppColors.whiteAlpha60}/>
|
|
135
|
-
<react_native_1.Text style={[previewStyles.loopText,c&&previewStyles.loopTextActive]}>
|
|
136
|
-
{c?"Loop: ON":"Loop: OFF"}
|
|
137
|
-
</react_native_1.Text>
|
|
138
|
-
</react_native_1.TouchableOpacity>
|
|
139
|
-
</react_native_1.View>
|
|
140
|
-
</react_native_1.View>}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
{m&&<react_native_1.View style={previewStyles.footer}>
|
|
144
|
-
<TouchableScale_1.default onPress={u}style={[previewStyles.actionBtn,{backgroundColor:AppColors_1.AppColors.whiteAlpha08,borderColor:AppColors_1.AppColors.whiteAlpha15}]}>
|
|
145
|
-
<NetworkIcons_1.CopyIcon size={14}color={AppColors_1.AppColors.slate200}/>
|
|
146
|
-
<react_native_1.Text style={[previewStyles.actionText,{color:AppColors_1.AppColors.slate200}]}>
|
|
147
|
-
{o("mediaGallery.copyUri","Copy URI")}
|
|
116
|
+
<react_native_1.View style={previewStyles.actionsRow}>
|
|
117
|
+
<TouchableScale_1.default onPress={c}style={previewStyles.actionBtn}>
|
|
118
|
+
<NetworkIcons_1.CopyIcon size={14}color={AppColors_1.AppColors.grayText}/>
|
|
119
|
+
<react_native_1.Text style={previewStyles.actionText}>
|
|
120
|
+
{t("mediaGallery.copyUri","Copy URI")}
|
|
148
121
|
</react_native_1.Text>
|
|
149
122
|
</TouchableScale_1.default>
|
|
150
123
|
|
|
151
|
-
{r&&
|
|
152
|
-
<NetworkIcons_1.GifIcon size={15}color={AppColors_1.AppColors.
|
|
153
|
-
<react_native_1.Text style={[previewStyles.actionText,{color:AppColors_1.AppColors.
|
|
154
|
-
{
|
|
124
|
+
{r&&l&&<TouchableScale_1.default onPress={x}disabled={u}style={[previewStyles.actionBtn,{backgroundColor:AppColors_1.AppColors.amber100,borderColor:AppColors_1.AppColors.amber200}]}>
|
|
125
|
+
<NetworkIcons_1.GifIcon size={15}color={AppColors_1.AppColors.amber600}/>
|
|
126
|
+
<react_native_1.Text style={[previewStyles.actionText,{color:AppColors_1.AppColors.amber600,fontFamily:AppFonts_1.AppFonts.interBold}]}>
|
|
127
|
+
{t(u?"mediaGallery.converting":"mediaGallery.convertToGif")}
|
|
155
128
|
</react_native_1.Text>
|
|
156
129
|
</TouchableScale_1.default>}
|
|
157
130
|
|
|
158
|
-
<TouchableScale_1.default onPress={
|
|
159
|
-
<NetworkIcons_1.ShareIcon size={14}color={AppColors_1.AppColors.
|
|
160
|
-
<react_native_1.Text style={[previewStyles.actionText,{color:AppColors_1.AppColors.
|
|
161
|
-
{
|
|
131
|
+
<TouchableScale_1.default onPress={w}style={[previewStyles.actionBtn,{backgroundColor:AppColors_1.AppColors.indigo600,borderColor:AppColors_1.AppColors.indigo600}]}>
|
|
132
|
+
<NetworkIcons_1.ShareIcon size={14}color={AppColors_1.AppColors.white}/>
|
|
133
|
+
<react_native_1.Text style={[previewStyles.actionText,{color:AppColors_1.AppColors.white,fontFamily:AppFonts_1.AppFonts.interBold}]}>
|
|
134
|
+
{t("mediaGallery.share","Share")}
|
|
162
135
|
</react_native_1.Text>
|
|
163
136
|
</TouchableScale_1.default>
|
|
164
|
-
|
|
137
|
+
|
|
138
|
+
{!l&&<TouchableScale_1.default onPress={f}style={[previewStyles.actionBtn,{backgroundColor:AppColors_1.AppColors.red100,borderColor:`${AppColors_1.AppColors.red500}4D`}]}>
|
|
139
|
+
<NetworkIcons_1.TrashIcon size={14}color={AppColors_1.AppColors.red500}/>
|
|
140
|
+
<react_native_1.Text style={[previewStyles.actionText,{color:AppColors_1.AppColors.red500,fontFamily:AppFonts_1.AppFonts.interBold}]}>
|
|
141
|
+
{t("mediaGallery.delete","Delete")}
|
|
142
|
+
</react_native_1.Text>
|
|
143
|
+
</TouchableScale_1.default>}
|
|
144
|
+
</react_native_1.View>
|
|
145
|
+
</react_native_1.View>
|
|
165
146
|
</react_native_1.View>
|
|
166
|
-
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
<ConfirmationModal_1.ConfirmationModal visible={T}title={t("mediaGallery.deleteTitle","Delete Media?")}message={t("mediaGallery.deleteMessage",{filename:e.filename})}confirmText={t("mediaGallery.delete","Delete")}cancelText={t("common.cancel","Cancel")}isDestructive={!0}icon="trash"onConfirm={()=>{p(!1),i(e),a()}}onCancel={()=>p(!1)}/>
|
|
150
|
+
</react_native_1.Modal>};exports.MediaPreviewModal=MediaPreviewModal;const previewStyles=react_native_1.StyleSheet.create({overlay:{flex:1,backgroundColor:AppColors_1.AppColors.slate900,justifyContent:"space-between"},header:{flexShrink:0,minHeight:react_native_1.Platform.OS==="ios"?96:66,flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:16,paddingTop:react_native_1.Platform.OS==="ios"?48:react_native_1.StatusBar.currentHeight?react_native_1.StatusBar.currentHeight+8:18,paddingBottom:14,borderBottomWidth:react_native_1.StyleSheet.hairlineWidth,borderBottomColor:"rgba(255, 255, 255, 0.25)",zIndex:10},headerLeft:{flexDirection:"row",alignItems:"center",gap:10,flex:1,minWidth:0,marginRight:8},headerTextCol:{flex:1,minWidth:0},headerRight:{flexDirection:"row",alignItems:"center",gap:7},badge:{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:7,paddingVertical:3.5,borderRadius:6,backgroundColor:"rgba(255, 255, 255, 0.22)",borderWidth:1,borderColor:"rgba(255, 255, 255, 0.38)"},badgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10,letterSpacing:.4,color:AppColors_1.AppColors.white},title:{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:13,color:AppColors_1.AppColors.white},subtitle:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:11,color:"rgba(255, 255, 255, 0.6)",marginTop:1},headerActionBtn:{width:30,height:30,borderRadius:8,backgroundColor:"rgba(255, 255, 255, 0.22)",borderWidth:1,borderColor:"rgba(255, 255, 255, 0.38)",alignItems:"center",justifyContent:"center"},headerDeleteBtn:{width:30,height:30,borderRadius:8,backgroundColor:"rgba(239, 68, 68, 0.35)",borderWidth:1,borderColor:"rgba(252, 165, 165, 0.55)",alignItems:"center",justifyContent:"center"},headerIconBtn:{width:30,height:30,borderRadius:8,backgroundColor:"rgba(255, 255, 255, 0.22)",borderWidth:1,borderColor:"rgba(255, 255, 255, 0.38)",alignItems:"center",justifyContent:"center"},stage:{flex:1,minHeight:0,alignItems:"center",justifyContent:"center",paddingHorizontal:14,paddingVertical:12,overflow:"hidden"},stageExpanded:{paddingHorizontal:0,paddingVertical:0},previewCard:{flex:1,width:"100%",minHeight:0,borderRadius:16,overflow:"hidden",backgroundColor:AppColors_1.AppColors.slate900,borderWidth:1,borderColor:"rgba(255, 255, 255, 0.1)",alignItems:"center",justifyContent:"center",position:"relative"},previewCardExpanded:{borderRadius:0,borderWidth:0},image:{width:"100%",height:"100%"},videoImageOverlay:{...react_native_1.StyleSheet.absoluteFillObject,backgroundColor:"rgba(10, 13, 20, 0.28)"},videoFallbackBackdrop:{flex:1,width:"100%",backgroundColor:AppColors_1.AppColors.slate900,alignItems:"center",justifyContent:"center",padding:24},videoFallbackGlow:{position:"absolute",width:150,height:150,borderRadius:75,backgroundColor:"rgba(56, 189, 248, 0.08)"},videoFallbackTitle:{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:15,color:AppColors_1.AppColors.white,marginTop:12},videoFallbackSubtitle:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:12,color:"rgba(255, 255, 255, 0.6)",marginTop:4},centerPlayContainer:{position:"absolute",alignItems:"center",justifyContent:"center",gap:8},centerPlayGlow:{position:"absolute",width:80,height:80,borderRadius:40,backgroundColor:"rgba(56, 189, 248, 0.22)"},centerPlayCircle:{width:62,height:62,borderRadius:31,backgroundColor:AppColors_1.AppColors.sky500,alignItems:"center",justifyContent:"center",paddingLeft:3,shadowColor:AppColors_1.AppColors.sky500,shadowOffset:{width:0,height:4},shadowOpacity:.5,shadowRadius:10,elevation:8},centerPlayPill:{backgroundColor:"rgba(15, 23, 42, 0.90)",paddingHorizontal:12,paddingVertical:4,borderRadius:12,borderWidth:1,borderColor:"rgba(255, 255, 255, 0.15)"},centerPlayText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11.5,color:AppColors_1.AppColors.white,letterSpacing:.3},topLeftBadgeOverlay:{position:"absolute",top:12,left:12},bottomRightBadgeOverlay:{position:"absolute",bottom:12,right:12},metaPill:{flexDirection:"row",alignItems:"center",gap:5,backgroundColor:"rgba(15, 23, 42, 0.90)",paddingHorizontal:10,paddingVertical:5,borderRadius:12,borderWidth:1,borderColor:"rgba(255, 255, 255, 0.15)"},metaPillText:{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:11,color:AppColors_1.AppColors.white,letterSpacing:.2},footer:{flexShrink:0,paddingHorizontal:16,paddingTop:12,paddingBottom:react_native_1.Platform.OS==="ios"?34:16,borderTopWidth:1,borderTopColor:AppColors_1.AppColors.grayBorderSecondary,backgroundColor:AppColors_1.AppColors.white,gap:10,zIndex:10,...react_native_1.Platform.select({ios:{shadowColor:AppColors_1.AppColors.slate900,shadowOffset:{width:0,height:-3},shadowOpacity:.08,shadowRadius:8},android:{elevation:6}})},primaryPlayBtn:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:8,width:"100%",paddingVertical:12,borderRadius:12,backgroundColor:AppColors_1.AppColors.indigo600,shadowColor:AppColors_1.AppColors.indigo600,shadowOffset:{width:0,height:3},shadowOpacity:.35,shadowRadius:6,elevation:4},primaryPlayText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:13.5,color:AppColors_1.AppColors.white,letterSpacing:.3},actionsRow:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:8},actionBtn:{flex:1,flexDirection:"row",alignItems:"center",justifyContent:"center",gap:6,paddingVertical:10,paddingHorizontal:12,borderRadius:10,backgroundColor:AppColors_1.AppColors.graySurface,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary},actionText:{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:12,color:AppColors_1.AppColors.grayText}});
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(
|
|
2
|
-
<DomainHeader_1.default pageName={e.pageName}color={e.color}stats={e.stats}activeFilters={e.activeFilters}onToggleFilter={
|
|
3
|
-
</AnimatedEntrance_1.default>;if(e.type==="loadMore"){const{pageName:
|
|
1
|
+
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(l,r,o,a){a===void 0&&(a=o);var i=Object.getOwnPropertyDescriptor(r,o);(!i||("get"in i?!r.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return r[o]}}),Object.defineProperty(l,a,i)}):(function(l,r,o,a){a===void 0&&(a=o),l[a]=r[o]})),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?(function(l,r){Object.defineProperty(l,"default",{enumerable:!0,value:r})}):function(l,r){l.default=r}),__importStar=this&&this.__importStar||(function(){var l=function(r){return l=Object.getOwnPropertyNames||function(o){var a=[];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(a[a.length]=i);return a},l(r)};return function(r){if(r&&r.__esModule)return r;var o={};if(r!=null)for(var a=l(r),i=0;i<a.length;i++)a[i]!=="default"&&__createBinding(o,r,a[i]);return __setModuleDefault(o,r),o}})(),__importDefault=this&&this.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importStar(require("react")),react_native_1=require("react-native"),InspectorContext_1=require("./InspectorContext"),TouchableScale_1=__importDefault(require("../TouchableScale")),AnimatedEntrance_1=__importDefault(require("../AnimatedEntrance")),DomainHeader_1=__importDefault(require("../DomainHeader")),LogCard_1=__importDefault(require("../LogCard")),EmptyState_1=__importDefault(require("../EmptyState")),EndOfListFooter_1=__importDefault(require("../EndOfListFooter")),NetworkFilterModal_1=__importDefault(require("./NetworkFilterModal")),styles_1=__importDefault(require("../../styles")),AppColors_1=require("../../styles/AppColors"),AppFonts_1=require("../../styles/AppFonts"),constants_1=require("../../constants"),i18n_1=require("../../i18n"),NetworkIcons_1=require("../NetworkIcons"),NetworkTab=react_1.default.memo(()=>{const{groupedData:l,loadMoreSection:r,search:o,setSearch:a,setSearchScope:i,quickFilter:v,setQuickFilter:P,handleDelete:U,isGroupByPageEnabled:d,setIsGroupByPageEnabled:X,selectedLogs:x,sortOrder:J,setSortOrder:z,statusFilters:u,setStatusFilters:m,methodFilters:p,setMethodFilters:T,latencyFilter:h,setLatencyFilter:F,protocolFilter:y,setProtocolFilter:I,networkSortBy:b,setNetworkSortBy:L,filteredLogs:f,logs:A,toggleSectionFilter:M,toggleSectionCollapse:D,minStart:E,totalRange:N,newLogIds:H,toggleSelect:$,setSelected:j,maxNetworkLogs:q}=(0,InspectorContext_1.useInspector)(),{t:R}=(0,i18n_1.useTranslation)(),Y=(0,react_1.useRef)(null),[Z,W]=react_1.default.useState(!1),[G,Q]=react_1.default.useState(!1),[k,K]=react_1.default.useState(q||50);react_1.default.useEffect(()=>{K(q||50)},[o,v,q]);const ee=(0,react_1.useMemo)(()=>d?l:l.slice(0,k),[d,l,k]),te=(0,react_1.useCallback)(e=>e?.id?String(e.id):"",[]),C=(0,react_1.useMemo)(()=>u.size>0&&!u.has("all")||p.size>0&&!p.has("all")||h!=="all"||y!=="all"||b!=="time_desc",[u,p,h,y,b]),oe=(0,react_1.useMemo)(()=>{let e=0;return u.size>0&&!u.has("all")&&(e+=u.size),p.size>0&&!p.has("all")&&(e+=p.size),h!=="all"&&e++,y!=="all"&&e++,b!=="time_desc"&&e++,e},[u,p,h,y,b]),re=(0,react_1.useMemo)(()=>({statusCodes:u.size>0?new Set(u):new Set(["all"]),methods:p.size>0?new Set(p):new Set(["all"]),latency:h,protocol:y,sortBy:b}),[u,p,h,y,b]),le=(0,react_1.useCallback)(e=>{e.statusCodes.has("all")||e.statusCodes.size===0?m(new Set):m(new Set(e.statusCodes)),e.methods.has("all")||e.methods.size===0?T(new Set):T(new Set([...e.methods].map(n=>n))),F(e.latency||"all"),I(e.protocol||"all"),L(e.sortBy||"time_desc"),e.sortBy==="time_asc"?z("oldest"):z("newest")},[m,T,F,I,L,z]),g=(0,react_1.useMemo)(()=>{let e=0,n=0,s=0,c=0,V=0,O=0;return A.forEach(t=>{const _=typeof t.status=="number"?t.status:parseInt(String(t.status),10);t.status===0||t.status==null||!isNaN(_)&&_>=400?e++:!isNaN(_)&&_>=200&&_<400&&n++,(t.duration||0)>=500&&s++;const w=(t.method||"").toUpperCase();w==="POST"&&c++,w==="GET"&&V++;const B=(t.url||"").toLowerCase(),S=(t.client||"").toLowerCase();(B.includes("graphql")||S.includes("graphql")||S.includes("apollo"))&&O++}),{all:A.length,errors:e,success:n,slow:s,post:c,get:V,graphql:O}},[A]),ae=(0,react_1.useMemo)(()=>[{id:"all",label:"All",count:g.all,color:AppColors_1.AppColors.purple},{id:"errors",label:"Errors",count:g.errors,color:AppColors_1.AppColors.errorColor},{id:"success",label:"2xx OK",count:g.success,color:AppColors_1.AppColors.greenColor},{id:"slow",label:"Slow >500ms",count:g.slow,color:AppColors_1.AppColors.warningIconGold},{id:"POST",label:"POST",count:g.post,color:constants_1.METHOD_COLORS.POST||AppColors_1.AppColors.blue500},{id:"GET",label:"GET",count:g.get,color:constants_1.METHOD_COLORS.GET||AppColors_1.AppColors.emerald500},{id:"graphql",label:"GraphQL",count:g.graphql,color:AppColors_1.AppColors.graphqlPink}],[g]),ie=(0,react_1.useCallback)(({item:e,index:n})=>{if(e.type==="header")return<AnimatedEntrance_1.default index={n}distance={8}>
|
|
2
|
+
<DomainHeader_1.default pageName={e.pageName}color={e.color}stats={e.stats}activeFilters={e.activeFilters}onToggleFilter={M}isCollapsed={e.isCollapsed}onToggleCollapse={D}isFirst={e.isFirst}timestamp={e.timestamp}/>
|
|
3
|
+
</AnimatedEntrance_1.default>;if(e.type==="loadMore"){const{pageName:O,color:t,remainingCount:_,totalCount:w,loadedCount:B,loadMoreStep:S,hasMore:ne}=e;return<react_native_1.View style={[styles_1.default.treeNodeRow,styles_1.default.treeNodeRowLast]}>
|
|
4
4
|
<react_native_1.View style={styles_1.default.treeLines}>
|
|
5
5
|
<react_native_1.View style={[styles_1.default.modernTreeLine,{borderColor:t},styles_1.default.modernTreeLineLast]}/>
|
|
6
6
|
</react_native_1.View>
|
|
7
7
|
<react_native_1.View style={styles_1.default.treeCardWrapper}>
|
|
8
|
-
{
|
|
8
|
+
{ne?<TouchableScale_1.default onPress={()=>r(O,S||10)}hitSlop={6}style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:9,paddingHorizontal:12,marginVertical:3,marginRight:2,borderRadius:10,backgroundColor:`${t}14`,borderWidth:1.5,borderColor:`${t}40`,shadowColor:t,shadowOffset:{width:0,height:1.5},shadowOpacity:.1,shadowRadius:3,elevation:2}}>
|
|
9
9
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:8}}>
|
|
10
10
|
<react_native_1.View style={{width:22,height:22,borderRadius:11,backgroundColor:t,alignItems:"center",justifyContent:"center",shadowColor:t,shadowOffset:{width:0,height:1},shadowOpacity:.25,shadowRadius:2,elevation:1}}>
|
|
11
11
|
<NetworkIcons_1.ChevronIcon color={AppColors_1.AppColors.white}size={9}direction="down"/>
|
|
12
12
|
</react_native_1.View>
|
|
13
13
|
<react_native_1.View>
|
|
14
14
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12,color:t}}>
|
|
15
|
-
{
|
|
15
|
+
{R("footer.loadMoreRequests",{count:S,defaultValue:`Load ${S} More Requests`})}
|
|
16
16
|
</react_native_1.Text>
|
|
17
17
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:9.5,color:AppColors_1.AppColors.grayTextWeak,marginTop:1}}>
|
|
18
|
-
Showing {
|
|
18
|
+
Showing {B} of {w} requests
|
|
19
19
|
</react_native_1.Text>
|
|
20
20
|
</react_native_1.View>
|
|
21
21
|
</react_native_1.View>
|
|
22
22
|
|
|
23
23
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",backgroundColor:`${t}25`,paddingHorizontal:8,paddingVertical:4,borderRadius:8,borderWidth:1,borderColor:`${t}40`,gap:3}}>
|
|
24
24
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:t}}>
|
|
25
|
-
+{
|
|
25
|
+
+{_}
|
|
26
26
|
</react_native_1.Text>
|
|
27
27
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:9,color:t}}>
|
|
28
28
|
more
|
|
@@ -34,62 +34,62 @@
|
|
|
34
34
|
<NetworkIcons_1.CheckIcon color={t}size={8}/>
|
|
35
35
|
</react_native_1.View>
|
|
36
36
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:11,color:AppColors_1.AppColors.grayTextStrong}}>
|
|
37
|
-
{
|
|
37
|
+
{R("footer.allLoaded",{count:w,defaultValue:`All ${w} requests loaded`})}
|
|
38
38
|
</react_native_1.Text>
|
|
39
39
|
</react_native_1.View>
|
|
40
40
|
|
|
41
41
|
<react_native_1.View style={{backgroundColor:`${t}18`,paddingHorizontal:7,paddingVertical:2,borderRadius:6}}>
|
|
42
42
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,color:t}}>
|
|
43
|
-
{
|
|
43
|
+
{w}/{w}
|
|
44
44
|
</react_native_1.Text>
|
|
45
45
|
</react_native_1.View>
|
|
46
46
|
</react_native_1.View>}
|
|
47
47
|
</react_native_1.View>
|
|
48
|
-
</react_native_1.View>}const{log:s,isLast:
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
</react_native_1.View>}const{log:s,isLast:c,color:V}=e;return<AnimatedEntrance_1.default index={n}distance={8}style={d?[styles_1.default.treeNodeRow,c&&styles_1.default.treeNodeRowLast]:{marginBottom:6,marginHorizontal:2}}>
|
|
49
|
+
{d&&<react_native_1.View style={styles_1.default.treeLines}>
|
|
50
|
+
<react_native_1.View style={[styles_1.default.modernTreeLine,{borderColor:V},c&&styles_1.default.modernTreeLineLast]}/>
|
|
51
|
+
{!c&&<react_native_1.View style={[styles_1.default.modernTreeBranch,{borderColor:V}]}/>}
|
|
52
|
+
</react_native_1.View>}
|
|
53
|
+
<react_native_1.View style={d?styles_1.default.treeCardWrapper:{flex:1}}>
|
|
54
|
+
<LogCard_1.default item={s}isSelected={x.has(s.id)}onToggleSelect={$}onPress={()=>{j(s)}}timelineMinStart={E}timelineTotalRange={N}isNew={H.has(s.id)}searchStr={o}/>
|
|
52
55
|
</react_native_1.View>
|
|
53
|
-
|
|
54
|
-
<LogCard_1.default item={s}isSelected={b.has(s.id)}onToggleSelect={L}onPress={()=>{B(s)}}timelineMinStart={O}timelineTotalRange={q}isNew={k.has(s.id)}searchStr={o}/>
|
|
55
|
-
</react_native_1.View>
|
|
56
|
-
</AnimatedEntrance_1.default>},[O,q,k,b,L,o,I,R,r,B,v]);return<react_native_1.View style={{flex:1}}>
|
|
56
|
+
</AnimatedEntrance_1.default>},[d,E,N,H,x,$,o,M,D,r,j,R]);return<react_native_1.View style={{flex:1}}>
|
|
57
57
|
<react_native_1.View style={{marginTop:6}}>
|
|
58
58
|
|
|
59
59
|
<react_native_1.View style={styles_1.default.toolbarRow}>
|
|
60
|
-
<react_native_1.View style={[styles_1.default.searchContainer,
|
|
61
|
-
<NetworkIcons_1.SearchIcon color={
|
|
62
|
-
<react_native_1.TextInput placeholder="Search URL, status, method, headers, body..."placeholderTextColor={AppColors_1.AppColors.grayTextWeak}value={o}onChangeText={
|
|
60
|
+
<react_native_1.View style={[styles_1.default.searchContainer,G&&{borderColor:AppColors_1.AppColors.purple,borderWidth:1.5}]}>
|
|
61
|
+
<NetworkIcons_1.SearchIcon color={G?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}size={15}/>
|
|
62
|
+
<react_native_1.TextInput placeholder="Search URL, status, method, headers, body..."placeholderTextColor={AppColors_1.AppColors.grayTextWeak}value={o}onChangeText={a}onFocus={()=>Q(!0)}onBlur={()=>Q(!1)}style={styles_1.default.searchInput}autoCorrect={!1}autoCapitalize="none"/>
|
|
63
63
|
|
|
64
64
|
{o.length>0&&<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:4}}>
|
|
65
65
|
<react_native_1.View style={{backgroundColor:`${AppColors_1.AppColors.purple}20`,borderRadius:10,paddingHorizontal:6,paddingVertical:1.5}}>
|
|
66
66
|
<react_native_1.Text style={{color:AppColors_1.AppColors.purple,fontSize:9.5,fontFamily:AppFonts_1.AppFonts.interBold}}>
|
|
67
|
-
{
|
|
67
|
+
{f.length}
|
|
68
68
|
</react_native_1.Text>
|
|
69
69
|
</react_native_1.View>
|
|
70
|
-
<react_native_1.Pressable onPress={()=>
|
|
70
|
+
<react_native_1.Pressable onPress={()=>a("")}hitSlop={10}style={styles_1.default.clearBtn}>
|
|
71
71
|
<NetworkIcons_1.ClearIcon color={AppColors_1.AppColors.grayTextWeak}size={13}/>
|
|
72
72
|
</react_native_1.Pressable>
|
|
73
73
|
</react_native_1.View>}
|
|
74
74
|
</react_native_1.View>
|
|
75
75
|
|
|
76
76
|
<react_native_1.View style={styles_1.default.toolbarRight}>
|
|
77
|
-
<TouchableScale_1.default style={[styles_1.default.toolbarBtn,{borderColor:`${AppColors_1.AppColors.errorColor}38`,backgroundColor:`${AppColors_1.AppColors.errorColor}0F`}]}onPress={
|
|
77
|
+
<TouchableScale_1.default style={[styles_1.default.toolbarBtn,{borderColor:`${AppColors_1.AppColors.errorColor}38`,backgroundColor:`${AppColors_1.AppColors.errorColor}0F`}]}onPress={U}hitSlop={6}>
|
|
78
78
|
<NetworkIcons_1.TrashIcon color={AppColors_1.AppColors.errorColor}size={15}/>
|
|
79
|
-
{
|
|
79
|
+
{x.size>0&&<react_native_1.View style={styles_1.default.trashBadge}>
|
|
80
80
|
<react_native_1.Text style={styles_1.default.trashBadgeText}>
|
|
81
|
-
{
|
|
81
|
+
{x.size}
|
|
82
82
|
</react_native_1.Text>
|
|
83
83
|
</react_native_1.View>}
|
|
84
84
|
</TouchableScale_1.default>
|
|
85
85
|
|
|
86
|
-
<TouchableScale_1.default style={styles_1.default.toolbarBtn}onPress={()=>
|
|
87
|
-
<NetworkIcons_1.
|
|
86
|
+
<TouchableScale_1.default style={[styles_1.default.toolbarBtn,d&&{borderColor:AppColors_1.AppColors.purple,backgroundColor:`${AppColors_1.AppColors.purple}15`}]}onPress={()=>X(e=>!e)}hitSlop={6}accessibilityLabel={d?"Page Accordion Grouping Enabled (Tap for Plain List)":"Plain List Enabled (Tap for Page Accordion)"}accessibilityRole="button">
|
|
87
|
+
<NetworkIcons_1.LayersIcon color={d?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextStrong}size={16}/>
|
|
88
|
+
{d&&<react_native_1.View style={styles_1.default.activeFilterDot}/>}
|
|
88
89
|
</TouchableScale_1.default>
|
|
89
90
|
|
|
90
|
-
<TouchableScale_1.default style={
|
|
91
|
-
<NetworkIcons_1.
|
|
92
|
-
{(c.size>0||d.size>0)&&<react_native_1.View style={styles_1.default.activeFilterDot}/>}
|
|
91
|
+
<TouchableScale_1.default style={styles_1.default.toolbarBtn}onPress={()=>z(e=>e==="newest"?"oldest":"newest")}hitSlop={10}>
|
|
92
|
+
<NetworkIcons_1.SortArrowIcon direction={J==="newest"?"down":"up"}color={AppColors_1.AppColors.grayTextStrong}size={18}/>
|
|
93
93
|
</TouchableScale_1.default>
|
|
94
94
|
</react_native_1.View>
|
|
95
95
|
</react_native_1.View>
|
|
@@ -97,15 +97,15 @@
|
|
|
97
97
|
|
|
98
98
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",marginBottom:8,paddingHorizontal:12,gap:6}}>
|
|
99
99
|
<react_native_1.ScrollView horizontal showsHorizontalScrollIndicator={!1}style={{flex:1}}contentContainerStyle={{flexDirection:"row",alignItems:"center",gap:6,paddingRight:6}}>
|
|
100
|
-
{
|
|
100
|
+
{ae.map(e=>{const n=v===e.id,s=e.color||AppColors_1.AppColors.purple,c=n?AppColors_1.AppColors.white:s;return<TouchableScale_1.default key={e.id}onPress={()=>{P(n?"all":e.id)}}>
|
|
101
101
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",paddingHorizontal:9,paddingVertical:4.5,borderRadius:8,backgroundColor:n?s:`${s}12`,borderWidth:1,borderColor:n?s:`${s}30`,gap:5}}>
|
|
102
|
-
{e.id==="all"&&<NetworkIcons_1.LayersIcon size={11}color={
|
|
103
|
-
{e.id==="errors"&&<NetworkIcons_1.CircleXIcon size={11}color={
|
|
104
|
-
{e.id==="success"&&<NetworkIcons_1.CircleCheckIcon size={11}color={
|
|
105
|
-
{e.id==="slow"&&<NetworkIcons_1.ClockIcon size={11}color={
|
|
106
|
-
{e.id==="POST"&&<NetworkIcons_1.RequestIcon size={11}color={
|
|
107
|
-
{e.id==="GET"&&<NetworkIcons_1.ResponseIcon size={11}color={
|
|
108
|
-
{e.id==="graphql"&&<NetworkIcons_1.AtomIcon size={11}color={
|
|
102
|
+
{e.id==="all"&&<NetworkIcons_1.LayersIcon size={11}color={c}/>}
|
|
103
|
+
{e.id==="errors"&&<NetworkIcons_1.CircleXIcon size={11}color={c}/>}
|
|
104
|
+
{e.id==="success"&&<NetworkIcons_1.CircleCheckIcon size={11}color={c}/>}
|
|
105
|
+
{e.id==="slow"&&<NetworkIcons_1.ClockIcon size={11}color={c}/>}
|
|
106
|
+
{e.id==="POST"&&<NetworkIcons_1.RequestIcon size={11}color={c}/>}
|
|
107
|
+
{e.id==="GET"&&<NetworkIcons_1.ResponseIcon size={11}color={c}/>}
|
|
108
|
+
{e.id==="graphql"&&<NetworkIcons_1.AtomIcon size={11}color={c}/>}
|
|
109
109
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:n?AppColors_1.AppColors.white:AppColors_1.AppColors.primaryBlack}}>
|
|
110
110
|
{e.label}
|
|
111
111
|
</react_native_1.Text>
|
|
@@ -118,15 +118,15 @@
|
|
|
118
118
|
</TouchableScale_1.default>})}
|
|
119
119
|
</react_native_1.ScrollView>
|
|
120
120
|
|
|
121
|
-
<TouchableScale_1.default onPress={()=>
|
|
122
|
-
<react_native_1.View style={{flexDirection:"row",alignItems:"center",paddingHorizontal:10,paddingVertical:4.5,borderRadius:8,backgroundColor:
|
|
123
|
-
<NetworkIcons_1.FilterIcon size={11}color={
|
|
124
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:
|
|
125
|
-
More Filters
|
|
121
|
+
<TouchableScale_1.default onPress={()=>W(!0)}style={{flexShrink:0}}>
|
|
122
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",paddingHorizontal:10,paddingVertical:4.5,borderRadius:8,backgroundColor:C?`${AppColors_1.AppColors.purple}20`:AppColors_1.AppColors.grayBackground,borderWidth:1,borderColor:C?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayBorderSecondary,gap:5,shadowColor:AppColors_1.AppColors.black,shadowOpacity:.04,shadowRadius:2,shadowOffset:{width:0,height:1},elevation:1}}>
|
|
123
|
+
<NetworkIcons_1.FilterIcon size={11}color={C?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayText}/>
|
|
124
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:C?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayText}}>
|
|
125
|
+
{R("network.moreFilters","More Filters")}
|
|
126
126
|
</react_native_1.Text>
|
|
127
|
-
{
|
|
127
|
+
{C&&<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.purple,paddingHorizontal:4.5,paddingVertical:1,borderRadius:6}}>
|
|
128
128
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8.5,color:AppColors_1.AppColors.white}}>
|
|
129
|
-
{
|
|
129
|
+
{oe}
|
|
130
130
|
</react_native_1.Text>
|
|
131
131
|
</react_native_1.View>}
|
|
132
132
|
</react_native_1.View>
|
|
@@ -134,11 +134,11 @@
|
|
|
134
134
|
</react_native_1.View>
|
|
135
135
|
|
|
136
136
|
|
|
137
|
-
{(
|
|
137
|
+
{(v!=="all"||o.trim().length>0||C||f.length!==A.length)&&<react_native_1.View style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginHorizontal:12,marginBottom:8,paddingHorizontal:10,paddingVertical:5.5,backgroundColor:`${AppColors_1.AppColors.purple}10`,borderRadius:8,borderWidth:1,borderColor:`${AppColors_1.AppColors.purple}25`}}>
|
|
138
138
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:10.5,color:AppColors_1.AppColors.purple}}>
|
|
139
|
-
Showing {
|
|
139
|
+
Showing {f.length} of {A.length} requests
|
|
140
140
|
</react_native_1.Text>
|
|
141
|
-
<TouchableScale_1.default onPress={()=>{
|
|
141
|
+
<TouchableScale_1.default onPress={()=>{a(""),P("all"),m(new Set),T(new Set),F("all"),I("all"),L("time_desc"),i("all")}}>
|
|
142
142
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:AppColors_1.AppColors.errorColor}}>
|
|
143
143
|
Clear All Filters
|
|
144
144
|
</react_native_1.Text>
|
|
@@ -146,8 +146,8 @@
|
|
|
146
146
|
</react_native_1.View>}
|
|
147
147
|
</react_native_1.View>
|
|
148
148
|
|
|
149
|
-
<react_native_1.FlatList ref={
|
|
149
|
+
<react_native_1.FlatList ref={Y}data={ee}keyExtractor={te}renderItem={ie}initialNumToRender={10}maxToRenderPerBatch={8}windowSize={5}updateCellsBatchingPeriod={40}removeClippedSubviews={!0}renderToHardwareTextureAndroid={!0}showsVerticalScrollIndicator={!1}ListEmptyComponent={<EmptyState_1.default isSearch={o.length>0||C||v!=="all"}searchQuery={o}customTitle={o.length>0?"No matching API requests":"No network activity"}onClearSearch={()=>{a(""),m(new Set),T(new Set),F("all"),I("all"),L("time_desc"),P("all"),i("all")}}/>}ListFooterComponent={l.length>0?<EndOfListFooter_1.default count={d?f.length:Math.min(k,f.length)}totalCount={f.length}label="requests"hasMore={!d&&f.length>k}loadMoreStep={30}onLoadMore={()=>K(e=>e+30)}/>:null}contentContainerStyle={[styles_1.default.listContent,f.length===0&&{flexGrow:1}]}keyboardShouldPersistTaps="handled"/>
|
|
150
150
|
|
|
151
151
|
|
|
152
|
-
<NetworkFilterModal_1.default visible={
|
|
152
|
+
<NetworkFilterModal_1.default visible={Z}onClose={()=>W(!1)}filters={re}onApply={le}searchQuery={o}/>
|
|
153
153
|
</react_native_1.View>});exports.default=NetworkTab;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<react_native_svg_1.Path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"stroke={e}strokeWidth="2"strokeLinecap="round"strokeLinejoin="round"/>
|
|
10
10
|
<react_native_svg_1.Path d="M15 3h6v6"stroke={e}strokeWidth="2"strokeLinecap="round"strokeLinejoin="round"/>
|
|
11
11
|
<react_native_svg_1.Path d="M10 14L21 3"stroke={e}strokeWidth="2"strokeLinecap="round"strokeLinejoin="round"/>
|
|
12
|
-
</react_native_svg_1.default>,TOAST_TIMEOUT_MS=7e3,NpmUpdateToast=()=>{const{t}=(0,i18n_1.useTranslation)(),{updateAvailable:e,latestNpmVersion:o,showUpdateToast:r}=(0,InspectorContext_1.useInspector)(),[i,h]=(0,react_1.useState)(!1),[f,d]=(0,react_1.useState)(!1),[n,u]=(0,react_1.useState)(!1),a=(0,react_1.useRef)(new react_native_1.Animated.Value(60)).current,s=(0,react_1.useRef)(new react_native_1.Animated.Value(0)).current,l=(0,react_1.useRef)(new react_native_1.Animated.Value(1)).current,c=(0,react_1.useRef)(null);(0,react_1.useEffect)(()=>(r&&e&&o&&!i&&(d(!0),react_native_1.Animated.parallel([react_native_1.Animated.spring(a,{toValue:0,friction:8,tension:40,useNativeDriver:!0}),react_native_1.Animated.timing(s,{toValue:1,duration:250,useNativeDriver:!0})]).start(),l.setValue(1),react_native_1.Animated.timing(l,{toValue:0,duration:TOAST_TIMEOUT_MS,useNativeDriver:!1}).start(),c.current=setTimeout(()=>{p()},TOAST_TIMEOUT_MS)),()=>{c.current&&clearTimeout(c.current)}),[r,e,o,i]);const p=()=>{react_native_1.Animated.parallel([react_native_1.Animated.timing(s,{toValue:0,duration:180,useNativeDriver:!0}),react_native_1.Animated.timing(a,{toValue:60,duration:180,useNativeDriver:!0})]).start(()=>{d(!1),h(!0)})},v=()=>{(0,helpers_1.copyToClipboard)("npm install react-native-inapp-inspector@latest","Install Command"),u(!0),(0,toast_1.showToast)("Copied npm install command!"),setTimeout(()=>{u(!1)},2e3)},g=()=>{react_native_1.Linking.openURL("https://www.npmjs.com/package/react-native-inapp-inspector").catch(()=>{}),p()};if(typeof __DEV__>"u"||!__DEV__||!r||!f||!e||!o)return null;const _=l.interpolate({inputRange:[0,1],outputRange:["0%","100%"]});return<react_native_1.Animated.View style={[styles.container,{opacity:s,transform:[{translateY:a}]}]}>
|
|
12
|
+
</react_native_svg_1.default>,TOAST_TIMEOUT_MS=7e3,NpmUpdateToast=()=>{const{t}=(0,i18n_1.useTranslation)(),{updateAvailable:e,latestNpmVersion:o,showUpdateToast:r}=(0,InspectorContext_1.useInspector)(),[i,h]=(0,react_1.useState)(!1),[f,d]=(0,react_1.useState)(!1),[n,u]=(0,react_1.useState)(!1),a=(0,react_1.useRef)(new react_native_1.Animated.Value(60)).current,s=(0,react_1.useRef)(new react_native_1.Animated.Value(0)).current,l=(0,react_1.useRef)(new react_native_1.Animated.Value(1)).current,c=(0,react_1.useRef)(null);(0,react_1.useEffect)(()=>(r&&e&&o&&!i&&(d(!0),react_native_1.Animated.parallel([react_native_1.Animated.spring(a,{toValue:0,friction:8,tension:40,useNativeDriver:!0}),react_native_1.Animated.timing(s,{toValue:1,duration:250,useNativeDriver:!0})]).start(),l.setValue(1),react_native_1.Animated.timing(l,{toValue:0,duration:TOAST_TIMEOUT_MS,useNativeDriver:!1}).start(),c.current=setTimeout(()=>{p()},TOAST_TIMEOUT_MS)),()=>{c.current&&clearTimeout(c.current)}),[r,e,o,i]);const p=()=>{react_native_1.Animated.parallel([react_native_1.Animated.timing(s,{toValue:0,duration:180,useNativeDriver:!0}),react_native_1.Animated.timing(a,{toValue:60,duration:180,useNativeDriver:!0})]).start(()=>{d(!1),h(!0)})},v=()=>{(0,helpers_1.copyToClipboard)("npm install react-native-inapp-inspector@latest","Install Command"),u(!0),(0,toast_1.showToast)(t("about.copiedInstallCommand","Copied npm install command!")),setTimeout(()=>{u(!1)},2e3)},g=()=>{react_native_1.Linking.openURL("https://www.npmjs.com/package/react-native-inapp-inspector").catch(()=>{}),p()};if(typeof __DEV__>"u"||!__DEV__||!r||!f||!e||!o)return null;const _=l.interpolate({inputRange:[0,1],outputRange:["0%","100%"]});return<react_native_1.Animated.View style={[styles.container,{opacity:s,transform:[{translateY:a}]}]}>
|
|
13
13
|
<react_native_1.View style={styles.contentRow}>
|
|
14
14
|
|
|
15
15
|
<react_native_1.View style={styles.npmIconContainer}>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { PushCardProps } from '../../types';
|
|
3
|
-
declare
|
|
4
|
-
|
|
3
|
+
declare function PushCard({ item, onPress, searchStr, }: PushCardProps): React.JSX.Element;
|
|
4
|
+
declare const _default: React.MemoExoticComponent<typeof PushCard>;
|
|
5
|
+
export default _default;
|