react-native-inapp-inspector 2.4.1 → 2.5.0
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 +605 -23
- 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/capture.d.ts +2 -0
- package/dist/commonjs/capture.js +1 -1
- package/dist/commonjs/components/AnalyticsDetail.js +23 -23
- package/dist/commonjs/components/AnalyticsEventCard.js +1 -1
- package/dist/commonjs/components/AnalyticsGraph.js +44 -44
- 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 +5 -3
- package/dist/commonjs/components/BrandCircleIcon.js +28 -28
- 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 +6 -6
- package/dist/commonjs/components/Inspector/ConfirmationModal.d.ts +13 -0
- package/dist/commonjs/components/Inspector/ConfirmationModal.js +30 -0
- package/dist/commonjs/components/Inspector/ConsoleTab.js +12 -12
- package/dist/commonjs/components/Inspector/CrashTab.js +44 -9
- package/dist/commonjs/components/Inspector/DebuggingTab.js +17 -17
- package/dist/commonjs/components/Inspector/DeviceInfoTab.js +1 -1
- package/dist/commonjs/components/Inspector/FabLauncher.js +30 -33
- package/dist/commonjs/components/Inspector/FeatureUnderDevNotice.js +2 -2
- package/dist/commonjs/components/Inspector/FloatingCaptureWidget.d.ts +3 -0
- package/dist/commonjs/components/Inspector/FloatingCaptureWidget.js +54 -0
- package/dist/commonjs/components/Inspector/GlobalCrashScreenModal.d.ts +11 -0
- package/dist/commonjs/components/Inspector/GlobalCrashScreenModal.js +234 -0
- package/dist/commonjs/components/Inspector/InspectorHeader.js +137 -127
- package/dist/commonjs/components/Inspector/LanguageSelectorModal.d.ts +15 -0
- package/dist/commonjs/components/Inspector/LanguageSelectorModal.js +172 -0
- package/dist/commonjs/components/Inspector/MainScreen.js +55 -35
- package/dist/commonjs/components/Inspector/MediaGalleryTab.js +40 -35
- package/dist/commonjs/components/Inspector/MediaPreviewModal.d.ts +36 -0
- package/dist/commonjs/components/Inspector/MediaPreviewModal.js +341 -135
- 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 +41 -32
- package/dist/commonjs/components/Inspector/PushTab.js +12 -12
- package/dist/commonjs/components/Inspector/ReduxDetail.js +32 -32
- package/dist/commonjs/components/Inspector/ReduxTab.js +10 -8
- package/dist/commonjs/components/Inspector/SecondaryTelemetryStrip.d.ts +2 -0
- package/dist/commonjs/components/Inspector/SecondaryTelemetryStrip.js +43 -0
- package/dist/commonjs/components/Inspector/SettingsPanel.js +287 -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 +327 -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 +39 -37
- 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 +50 -48
- package/dist/commonjs/components/LogCard.d.ts +3 -2
- package/dist/commonjs/components/LogCard.js +27 -25
- package/dist/commonjs/components/LogSyntaxHighlighter.js +5 -5
- package/dist/commonjs/components/ModuleErrorBoundary.js +5 -5
- package/dist/commonjs/components/NetworkIcons.d.ts +42 -0
- package/dist/commonjs/components/NetworkIcons.js +139 -6
- 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/crash.d.ts +1 -1
- package/dist/commonjs/crash.js +1 -1
- package/dist/commonjs/customHooks/crashHandler.d.ts +2 -1
- package/dist/commonjs/customHooks/crashHandler.js +7 -7
- package/dist/commonjs/customHooks/socketLogger.d.ts +26 -0
- package/dist/commonjs/customHooks/socketLogger.js +2 -0
- package/dist/commonjs/editor.d.ts +13 -0
- package/dist/commonjs/editor.js +1 -0
- package/dist/commonjs/helpers/index.d.ts +1 -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/helpers/telemetry.js +1 -1
- 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 +16 -13
- package/dist/commonjs/index.js +5 -4
- package/dist/commonjs/native/NativeInspector.d.ts +4 -0
- package/dist/commonjs/native/NativeInspector.js +1 -1
- package/dist/commonjs/native/NativeNetworkInspector.d.ts +4 -0
- package/dist/commonjs/socket.d.ts +4 -0
- package/dist/commonjs/socket.js +1 -0
- package/dist/commonjs/styles/AppColors.d.ts +42 -2
- package/dist/commonjs/styles/AppColors.js +1 -1
- package/dist/commonjs/styles/common.js +1 -1
- package/dist/commonjs/styles/index.d.ts +30 -0
- package/dist/commonjs/styles/index.js +1 -1
- package/dist/commonjs/types/editor.d.ts +96 -0
- package/dist/commonjs/types/editor.js +1 -0
- package/dist/commonjs/types/enums.d.ts +40 -0
- package/dist/commonjs/types/enums.js +1 -1
- package/dist/commonjs/types/interfaces.d.ts +143 -1
- package/dist/esm/capture.d.ts +2 -0
- package/dist/esm/capture.js +1 -1
- package/dist/esm/components/AnalyticsDetail.js +31 -31
- package/dist/esm/components/AnalyticsEventCard.js +1 -1
- package/dist/esm/components/AnalyticsGraph.js +74 -74
- 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/BrandCircleIcon.js +70 -70
- 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 +24 -24
- package/dist/esm/components/Inspector/ConfirmationModal.d.ts +13 -0
- package/dist/esm/components/Inspector/ConfirmationModal.js +30 -0
- package/dist/esm/components/Inspector/ConsoleTab.js +48 -48
- package/dist/esm/components/Inspector/CrashTab.js +203 -168
- package/dist/esm/components/Inspector/DebuggingTab.js +29 -29
- package/dist/esm/components/Inspector/DeviceInfoTab.js +75 -75
- package/dist/esm/components/Inspector/FabLauncher.js +57 -60
- package/dist/esm/components/Inspector/FeatureUnderDevNotice.js +7 -7
- package/dist/esm/components/Inspector/FloatingCaptureWidget.d.ts +3 -0
- package/dist/esm/components/Inspector/FloatingCaptureWidget.js +54 -0
- package/dist/esm/components/Inspector/GlobalCrashScreenModal.d.ts +11 -0
- package/dist/esm/components/Inspector/GlobalCrashScreenModal.js +234 -0
- package/dist/esm/components/Inspector/InspectorHeader.js +162 -152
- package/dist/esm/components/Inspector/LanguageSelectorModal.d.ts +15 -0
- package/dist/esm/components/Inspector/LanguageSelectorModal.js +172 -0
- package/dist/esm/components/Inspector/MainScreen.js +130 -110
- package/dist/esm/components/Inspector/MediaGalleryTab.js +83 -78
- package/dist/esm/components/Inspector/MediaPreviewModal.d.ts +36 -0
- package/dist/esm/components/Inspector/MediaPreviewModal.js +345 -139
- package/dist/esm/components/Inspector/NetworkTab.js +130 -130
- 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 +45 -36
- package/dist/esm/components/Inspector/PushTab.js +23 -23
- package/dist/esm/components/Inspector/ReduxDetail.js +42 -42
- package/dist/esm/components/Inspector/ReduxTab.js +20 -18
- package/dist/esm/components/Inspector/SecondaryTelemetryStrip.d.ts +2 -0
- package/dist/esm/components/Inspector/SecondaryTelemetryStrip.js +43 -0
- package/dist/esm/components/Inspector/SettingsPanel.js +526 -378
- 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 +327 -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 +139 -137
- 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 +66 -64
- package/dist/esm/components/LogCard.d.ts +3 -2
- package/dist/esm/components/LogCard.js +57 -55
- package/dist/esm/components/LogSyntaxHighlighter.js +5 -5
- package/dist/esm/components/ModuleErrorBoundary.js +23 -23
- package/dist/esm/components/NetworkIcons.d.ts +42 -0
- package/dist/esm/components/NetworkIcons.js +139 -6
- 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/crash.d.ts +1 -1
- package/dist/esm/crash.js +1 -1
- package/dist/esm/customHooks/crashHandler.d.ts +2 -1
- package/dist/esm/customHooks/crashHandler.js +7 -7
- package/dist/esm/customHooks/socketLogger.d.ts +26 -0
- package/dist/esm/customHooks/socketLogger.js +2 -0
- package/dist/esm/editor.d.ts +13 -0
- package/dist/esm/editor.js +1 -0
- package/dist/esm/helpers/index.d.ts +1 -0
- package/dist/esm/helpers/index.js +4 -4
- 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/helpers/telemetry.js +1 -1
- 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 +16 -13
- package/dist/esm/index.js +8 -7
- package/dist/esm/native/NativeInspector.d.ts +4 -0
- package/dist/esm/native/NativeInspector.js +1 -1
- package/dist/esm/native/NativeNetworkInspector.d.ts +4 -0
- package/dist/esm/socket.d.ts +4 -0
- package/dist/esm/socket.js +1 -0
- package/dist/esm/styles/AppColors.d.ts +42 -2
- package/dist/esm/styles/AppColors.js +1 -1
- package/dist/esm/styles/common.js +1 -1
- package/dist/esm/styles/index.d.ts +30 -0
- package/dist/esm/styles/index.js +1 -1
- package/dist/esm/types/editor.d.ts +96 -0
- package/dist/esm/types/editor.js +1 -0
- package/dist/esm/types/enums.d.ts +40 -0
- package/dist/esm/types/enums.js +1 -1
- package/dist/esm/types/interfaces.d.ts +143 -1
- package/editor.d.ts +1 -0
- package/editor.js +1 -0
- package/ios/NetworkInspectorModule.mm +531 -12
- package/package.json +213 -2
- package/react-native-inapp-inspector.podspec +1 -1
- package/src/native/NativeInspector.ts +65 -4
- package/src/native/NativeNetworkInspector.ts +4 -0
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import oe,{useState as M,useMemo as q}from"react";import{Modal as Ce,View as C,Text as B,TextInput as Se,ScrollView as J,StyleSheet as v,TouchableWithoutFeedback as Y,Platform as O,Dimensions as Te,DevSettings as G}from"react-native";import E from"react-native-linear-gradient";import V from"../TouchableScale";import{AppColors as e}from"../../styles/AppColors";import{AppFonts as x}from"../../styles/AppFonts";import{GlobeIcon as Be,CheckIcon as Re,CloseWhite as U,SearchIcon as Ie,ResetIcon as Ve}from"../NetworkIcons";import{useTranslation as Le,SUPPORTED_LANGUAGES as Q,setLanguage as Fe,getLanguage as Ae}from"../../i18n";import{loadSettings as Pe,saveSettings as We}from"../../helpers/settingsStore";import{triggerNativeHaptic as N}from"../../native/NativeInspector";import{showToast as Ne}from"../../helpers/toast";export const COUNTRY_OPTIONS=[{id:"all",name:"All",flag:"\u{1F310}",badge:"25"},{id:"in",name:"India",flag:"\u{1F1EE}\u{1F1F3}",badge:"9",langCodes:["hi","ta","te","kn","ml","bn","mr","gu","pa"]},{id:"us",name:"United States",flag:"\u{1F1FA}\u{1F1F8}",badge:"2",langCodes:["en","es"]},{id:"gb",name:"United Kingdom",flag:"\u{1F1EC}\u{1F1E7}",badge:"1",langCodes:["en"]},{id:"de",name:"Germany",flag:"\u{1F1E9}\u{1F1EA}",badge:"1",langCodes:["de"]},{id:"jp",name:"Japan",flag:"\u{1F1EF}\u{1F1F5}",badge:"1",langCodes:["ja"]},{id:"ca",name:"Canada",flag:"\u{1F1E8}\u{1F1E6}",badge:"2",langCodes:["en","fr"]},{id:"global",name:"Global / Europe & Asia",flag:"\u{1F30D}",badge:"11",langCodes:["it","id","tr","vi","nl","pl","pt","ru","ar","zh","ko"]}];const _={en:"English (Default)",es:"Spanish",fr:"French",de:"German",zh:"Chinese (Simplified)",ja:"Japanese",ko:"Korean",pt:"Portuguese",ru:"Russian",hi:"Hindi",ta:"Tamil",te:"Telugu",kn:"Kannada",ml:"Malayalam",bn:"Bengali",mr:"Marathi",gu:"Gujarati",pa:"Punjabi",ar:"Arabic",it:"Italian",id:"Indonesian",tr:"Turkish",vi:"Vietnamese",nl:"Dutch",pl:"Polish"};export const LanguageSelectorModal=oe.memo(({visible:X,onClose:P})=>{const{t:k}=Le(),[L,j]=M(""),[F,Z]=M("all"),[R,D]=M(null),W=Ae(),A=e.primaryLight!==e.white,$=q(()=>COUNTRY_OPTIONS.find(o=>o.id===F)||COUNTRY_OPTIONS[0],[F]),K=q(()=>Q.filter(o=>{if(F!=="all"&&$?.langCodes&&!$.langCodes.includes(o.code))return!1;if(!L.trim())return!0;const T=L.trim().toLowerCase(),I=_[o.code]?.toLowerCase()||"";return o.name.toLowerCase().includes(T)||o.nativeName.toLowerCase().includes(T)||o.code.toLowerCase().includes(T)||I.includes(T)}),[L,F,$]),ee=(o,T,I)=>{o!==W&&(N("light"),D({code:o,flag:T,nativeName:I}))},te=async()=>{if(!R)return;N("medium"),Fe(R.code);try{const I=await Pe();await We({...I,language:R.code})}catch{}const{flag:o,nativeName:T}=R;D(null),P(),j(""),Ne(`\u{1F504} ${o} ${T}`),__DEV__&&G&&G.reload&&G.reload()},H=()=>{N("light"),D(null)};return<Ce visible={X}transparent={!0}animationType="slide"statusBarTranslucent={!0}onRequestClose={P}>
|
|
2
|
+
<C style={t.overlay}>
|
|
3
|
+
|
|
4
|
+
<Y onPress={P}accessible={!0}accessibilityRole="button"accessibilityLabel="Close bottom sheet">
|
|
5
|
+
<C style={t.backdrop}/>
|
|
6
|
+
</Y>
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
<C style={[t.bottomSheet,{backgroundColor:A?e.npmDark:e.white}]}>
|
|
10
|
+
|
|
11
|
+
<C style={t.handleBarWrap}>
|
|
12
|
+
<C style={[t.handleBar,{backgroundColor:A?"rgba(255,255,255,0.25)":"rgba(0,0,0,0.18)"}]}/>
|
|
13
|
+
</C>
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
<C style={t.header}>
|
|
17
|
+
<C style={t.headerTitleRow}>
|
|
18
|
+
<E colors={[e.indigo600,e.violet600]}start={{x:0,y:0}}end={{x:1,y:1}}style={t.globeIconWrap}>
|
|
19
|
+
<Be size={17}color={e.white}/>
|
|
20
|
+
</E>
|
|
21
|
+
<C>
|
|
22
|
+
<C style={t.titleRow}>
|
|
23
|
+
<B style={t.titleText}>
|
|
24
|
+
{k("settings.general.selectLanguage","Select Language")}
|
|
25
|
+
</B>
|
|
26
|
+
<C style={t.countBadge}>
|
|
27
|
+
<B style={t.countBadgeText}>25</B>
|
|
28
|
+
</C>
|
|
29
|
+
</C>
|
|
30
|
+
<B style={t.subTitleText}>
|
|
31
|
+
{k("settings.general.languageDescription","Choose preferred display language")}
|
|
32
|
+
</B>
|
|
33
|
+
</C>
|
|
34
|
+
</C>
|
|
35
|
+
<V onPress={P}hitSlop={12}accessible={!0}accessibilityRole="button"accessibilityLabel="Close language selector"style={[t.closeBtn,{backgroundColor:A?"rgba(255, 255, 255, 0.16)":"rgba(0, 0, 0, 0.08)",borderColor:A?"rgba(255, 255, 255, 0.30)":"rgba(0, 0, 0, 0.18)"}]}>
|
|
36
|
+
<U size={14}color={A?e.white:"#0F172A"}/>
|
|
37
|
+
</V>
|
|
38
|
+
</C>
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
<C style={t.searchContainer}>
|
|
42
|
+
<Ie color={e.grayTextWeak}size={15}/>
|
|
43
|
+
<Se value={L}onChangeText={j}placeholder={k("common.search","Search language, country or code...")}placeholderTextColor={e.grayTextWeak}style={t.searchInput}autoCapitalize="none"autoCorrect={!1}clearButtonMode="never"/>
|
|
44
|
+
{L.length>0&&<V onPress={()=>j("")}hitSlop={8}style={t.searchClearBtn}>
|
|
45
|
+
<U size={11}color={e.grayText}/>
|
|
46
|
+
</V>}
|
|
47
|
+
</C>
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
<C style={t.countryScrollWrap}>
|
|
51
|
+
<J horizontal showsHorizontalScrollIndicator={!1}contentContainerStyle={t.countryScrollContent}>
|
|
52
|
+
{COUNTRY_OPTIONS.map(o=>{const T=o.id===F;return<V key={o.id}onPress={()=>{N("light"),Z(o.id)}}style={[t.countryChip,T&&t.countryChipActive]}>
|
|
53
|
+
<B style={t.countryChipFlag}>{o.flag}</B>
|
|
54
|
+
<B style={[t.countryChipText,T&&t.countryChipTextActive]}>
|
|
55
|
+
{o.name}
|
|
56
|
+
</B>
|
|
57
|
+
{o.badge&&<C style={[t.countryChipBadge,T&&t.countryChipBadgeActive]}>
|
|
58
|
+
<B style={[t.countryChipBadgeText,T&&t.countryChipBadgeTextActive]}>
|
|
59
|
+
{o.badge}
|
|
60
|
+
</B>
|
|
61
|
+
</C>}
|
|
62
|
+
</V>})}
|
|
63
|
+
</J>
|
|
64
|
+
</C>
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
<J style={t.scrollList}contentContainerStyle={t.scrollContent}showsVerticalScrollIndicator={!0}keyboardShouldPersistTaps="handled">
|
|
68
|
+
{K.length===0?<C style={t.emptyStateWrap}>
|
|
69
|
+
<B style={t.emptyStateText}>
|
|
70
|
+
{k("common.noMatches","No languages match your search")}
|
|
71
|
+
</B>
|
|
72
|
+
</C>:K.map(o=>{const T=o.code===W,I=_[o.code]||o.name;return<V key={o.code}onPress={()=>ee(o.code,o.flag,o.nativeName)}style={[t.langRow,T&&t.langRowSelected]}>
|
|
73
|
+
|
|
74
|
+
{T&&<C style={t.activeAccentBar}/>}
|
|
75
|
+
|
|
76
|
+
<C style={t.langRowLeft}>
|
|
77
|
+
<C style={[t.flagContainer,T&&t.flagContainerSelected]}>
|
|
78
|
+
<B style={t.langFlag}>{o.flag}</B>
|
|
79
|
+
</C>
|
|
80
|
+
<C style={t.langTextCol}>
|
|
81
|
+
<C style={t.langTitleRow}>
|
|
82
|
+
<B style={[t.langNativeName,T&&t.langNativeNameSelected]}>
|
|
83
|
+
{o.nativeName}
|
|
84
|
+
</B>
|
|
85
|
+
<C style={[t.codePill,T&&t.codePillSelected]}>
|
|
86
|
+
<B style={[t.codePillText,T&&t.codePillTextSelected]}>
|
|
87
|
+
{o.code.toUpperCase()}
|
|
88
|
+
</B>
|
|
89
|
+
</C>
|
|
90
|
+
</C>
|
|
91
|
+
<B style={[t.langEnglishName,T&&t.langEnglishNameSelected]}>
|
|
92
|
+
{I}
|
|
93
|
+
</B>
|
|
94
|
+
</C>
|
|
95
|
+
</C>
|
|
96
|
+
|
|
97
|
+
{T?<E colors={[e.indigo600,e.violet600]}start={{x:0,y:0}}end={{x:1,y:1}}style={t.checkIconWrap}>
|
|
98
|
+
<Re size={12}color={e.white}/>
|
|
99
|
+
</E>:<C style={t.uncheckPlaceholder}/>}
|
|
100
|
+
</V>})}
|
|
101
|
+
</J>
|
|
102
|
+
</C>
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
{R!=null&&<C style={[v.absoluteFill,S.overlay]}>
|
|
106
|
+
<Y onPress={H}>
|
|
107
|
+
<C style={S.backdrop}/>
|
|
108
|
+
</Y>
|
|
109
|
+
<C style={S.card}>
|
|
110
|
+
|
|
111
|
+
<V onPress={H}hitSlop={8}style={S.cornerCloseBtn}>
|
|
112
|
+
<U size={11}color={e.grayTextWeak}/>
|
|
113
|
+
</V>
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
<C style={S.iconBadge}>
|
|
117
|
+
<B style={S.iconFlag}>{R.flag}</B>
|
|
118
|
+
</C>
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
<B style={S.title}>
|
|
122
|
+
{k("language.confirmTitle","Change Language?")}
|
|
123
|
+
</B>
|
|
124
|
+
<B style={S.message}>
|
|
125
|
+
{k("language.confirmMessage",`Switch to ${R.nativeName} (${_[R.code]||R.nativeName})? The inspector will reload to apply the new language.`)}
|
|
126
|
+
</B>
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
<C style={S.switchPreview}>
|
|
130
|
+
<C style={S.switchItem}>
|
|
131
|
+
<B style={S.switchLabel}>
|
|
132
|
+
{k("language.current","Current")}
|
|
133
|
+
</B>
|
|
134
|
+
<B style={S.switchValue}>
|
|
135
|
+
{Q.find(o=>o.code===W)?.flag||"\u{1F310}"}{" "}
|
|
136
|
+
{W.toUpperCase()}
|
|
137
|
+
</B>
|
|
138
|
+
</C>
|
|
139
|
+
<C style={S.switchArrow}>
|
|
140
|
+
<B style={S.switchArrowText}>→</B>
|
|
141
|
+
</C>
|
|
142
|
+
<C style={S.switchItem}>
|
|
143
|
+
<B style={[S.switchLabel,{color:e.indigo600}]}>
|
|
144
|
+
{k("language.new","New")}
|
|
145
|
+
</B>
|
|
146
|
+
<B style={[S.switchValue,{color:e.indigo600,fontFamily:x.interBold}]}>
|
|
147
|
+
{R.flag} {R.code.toUpperCase()}
|
|
148
|
+
</B>
|
|
149
|
+
</C>
|
|
150
|
+
</C>
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
<C style={S.buttonRow}>
|
|
154
|
+
<V accessible={!0}accessibilityRole="button"accessibilityLabel={k("common.cancel","Cancel")}onPress={H}style={S.cancelBtn}>
|
|
155
|
+
<B style={S.cancelBtnText}>
|
|
156
|
+
{k("common.cancel","Cancel")}
|
|
157
|
+
</B>
|
|
158
|
+
</V>
|
|
159
|
+
|
|
160
|
+
<V accessible={!0}accessibilityRole="button"accessibilityLabel={k("language.confirmApply","Apply & Reload")}onPress={te}style={S.confirmBtn}>
|
|
161
|
+
<E colors={[e.indigo600,e.violet600]}start={{x:0,y:0}}end={{x:1,y:1}}style={S.confirmBtnGradient}>
|
|
162
|
+
<Ve size={13}color={e.white}/>
|
|
163
|
+
<B style={S.confirmBtnText}>
|
|
164
|
+
{k("language.confirmApply","Apply & Reload")}
|
|
165
|
+
</B>
|
|
166
|
+
</E>
|
|
167
|
+
</V>
|
|
168
|
+
</C>
|
|
169
|
+
</C>
|
|
170
|
+
</C>}
|
|
171
|
+
</C>
|
|
172
|
+
</Ce>});const t=v.create({overlay:{flex:1,backgroundColor:"rgba(10, 15, 30, 0.60)",justifyContent:"flex-end"},backdrop:{...v.absoluteFillObject},bottomSheet:{width:"100%",height:Math.min(Math.max(Te.get("window").height*.74,520),620),borderTopLeftRadius:26,borderTopRightRadius:26,paddingTop:8,paddingBottom:O.OS==="ios"?28:16,shadowColor:e.black,shadowOpacity:.28,shadowRadius:20,shadowOffset:{width:0,height:-6},elevation:16},handleBarWrap:{alignItems:"center",paddingVertical:5},handleBar:{width:36,height:4,borderRadius:2},header:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:16,paddingVertical:10,borderBottomWidth:v.hairlineWidth,borderBottomColor:e.grayBorderSecondary},headerTitleRow:{flexDirection:"row",alignItems:"center",gap:10},globeIconWrap:{width:34,height:34,borderRadius:10,alignItems:"center",justifyContent:"center",shadowColor:e.indigo600,shadowOffset:{width:0,height:2},shadowOpacity:.25,shadowRadius:4,elevation:3},titleRow:{flexDirection:"row",alignItems:"center",gap:6},titleText:{fontFamily:x.interBold,fontSize:15.5,color:e.primaryBlack,letterSpacing:-.2},countBadge:{backgroundColor:`${e.indigo600}18`,paddingHorizontal:6,paddingVertical:1,borderRadius:10},countBadgeText:{fontFamily:x.interBold,fontSize:10,color:e.indigo600},subTitleText:{fontFamily:x.interRegular,fontSize:11,color:e.grayText,marginTop:1},closeBtn:{width:30,height:30,borderRadius:15,backgroundColor:`${e.black}0D`,borderWidth:1,borderColor:`${e.black}1A`,alignItems:"center",justifyContent:"center"},searchContainer:{flexDirection:"row",alignItems:"center",marginHorizontal:14,marginTop:10,marginBottom:6,paddingHorizontal:10,height:40,borderRadius:12,backgroundColor:e.grayBackground,borderWidth:1,borderColor:e.grayBorderSecondary,gap:8},searchInput:{flex:1,height:"100%",fontSize:12.5,fontFamily:x.interMedium,color:e.primaryBlack,paddingVertical:0},searchClearBtn:{width:20,height:20,borderRadius:10,backgroundColor:`${e.grayText}22`,alignItems:"center",justifyContent:"center"},countryScrollWrap:{borderBottomWidth:v.hairlineWidth,borderBottomColor:e.grayBorderSecondary,paddingVertical:7},countryScrollContent:{paddingHorizontal:14,gap:6,flexDirection:"row",alignItems:"center"},countryChip:{flexDirection:"row",alignItems:"center",paddingHorizontal:10,paddingVertical:6,borderRadius:20,backgroundColor:e.grayBackground,borderWidth:1,borderColor:e.grayBorderSecondary,gap:5},countryChipActive:{backgroundColor:`${e.brandPurple}14`,borderColor:`${e.brandPurple}55`},countryChipFlag:{fontSize:13},countryChipText:{fontFamily:x.interMedium,fontSize:11.5,color:e.primaryBlack},countryChipTextActive:{fontFamily:x.interBold,color:e.brandPurple},countryChipBadge:{paddingHorizontal:5.5,paddingVertical:1,borderRadius:8,backgroundColor:`${e.black}0A`},countryChipBadgeActive:{backgroundColor:`${e.brandPurple}22`},countryChipBadgeText:{fontFamily:x.interSemiBold,fontSize:9.5,color:e.grayText},countryChipBadgeTextActive:{color:e.brandPurple,fontFamily:x.interBold},scrollList:{flex:1},scrollContent:{paddingBottom:16},emptyStateWrap:{padding:36,alignItems:"center",justifyContent:"center"},emptyStateText:{fontFamily:x.interMedium,fontSize:13,color:e.grayText},langRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:16,paddingVertical:11,borderBottomWidth:v.hairlineWidth,borderBottomColor:e.grayBorderSecondary,position:"relative"},langRowSelected:{backgroundColor:`${e.indigo600}0C`},activeAccentBar:{position:"absolute",left:0,top:4,bottom:4,width:3.5,borderTopRightRadius:3,borderBottomRightRadius:3,backgroundColor:e.indigo600},langRowLeft:{flexDirection:"row",alignItems:"center",gap:12,flex:1},flagContainer:{width:36,height:36,borderRadius:10,backgroundColor:e.grayBackground,alignItems:"center",justifyContent:"center",borderWidth:1,borderColor:e.grayBorderSecondary},flagContainerSelected:{borderColor:`${e.indigo600}44`,backgroundColor:`${e.indigo600}14`},langFlag:{fontSize:19},langTextCol:{flex:1},langTitleRow:{flexDirection:"row",alignItems:"center",gap:6},langNativeName:{fontFamily:x.interSemiBold,fontSize:14,color:e.primaryBlack},langNativeNameSelected:{fontFamily:x.interBold,color:e.indigo600},codePill:{backgroundColor:`${e.black}0A`,paddingHorizontal:5,paddingVertical:1,borderRadius:4},codePillSelected:{backgroundColor:`${e.indigo600}18`},codePillText:{fontSize:9.5,fontFamily:x.interBold,color:e.grayText,letterSpacing:.4},codePillTextSelected:{color:e.indigo600},langEnglishName:{fontFamily:x.interRegular,fontSize:11.5,color:e.grayText,marginTop:1.5},langEnglishNameSelected:{color:e.indigo600,fontFamily:x.interMedium},checkIconWrap:{width:24,height:24,borderRadius:12,alignItems:"center",justifyContent:"center",shadowColor:e.indigo600,shadowOffset:{width:0,height:2},shadowOpacity:.35,shadowRadius:3,elevation:3},uncheckPlaceholder:{width:24,height:24}}),S=v.create({overlay:{flex:1,backgroundColor:"rgba(10, 15, 30, 0.72)",justifyContent:"center",alignItems:"center",paddingHorizontal:24,zIndex:999999,elevation:999},backdrop:{...v.absoluteFillObject},card:{width:"100%",maxWidth:340,backgroundColor:e.white,borderRadius:22,paddingTop:24,paddingBottom:18,paddingHorizontal:20,alignItems:"center",borderWidth:1,borderColor:`${e.white}CC`,...O.select({ios:{shadowColor:e.indigo600,shadowOffset:{width:0,height:12},shadowOpacity:.28,shadowRadius:24},android:{elevation:12}})},cornerCloseBtn:{position:"absolute",top:14,right:14,width:28,height:28,borderRadius:14,backgroundColor:e.graySurface,alignItems:"center",justifyContent:"center"},iconBadge:{width:58,height:58,borderRadius:29,borderWidth:1.5,borderColor:`${e.indigo600}33`,backgroundColor:`${e.indigo600}14`,alignItems:"center",justifyContent:"center",marginBottom:14},iconFlag:{fontSize:28},title:{fontFamily:x.interBold,fontSize:17,color:e.slate900,textAlign:"center",marginBottom:8,letterSpacing:-.2},message:{fontFamily:x.interRegular,fontSize:13,color:e.grayTextWeak,textAlign:"center",lineHeight:19,paddingHorizontal:4,marginBottom:16},switchPreview:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:10,marginBottom:20,paddingVertical:10,paddingHorizontal:16,borderRadius:12,backgroundColor:e.grayBackground,borderWidth:1,borderColor:e.grayBorderSecondary,width:"100%"},switchItem:{alignItems:"center",gap:3,flex:1},switchLabel:{fontFamily:x.interMedium,fontSize:10,color:e.grayText,textTransform:"uppercase",letterSpacing:.5},switchValue:{fontFamily:x.interSemiBold,fontSize:14,color:e.primaryBlack},switchArrow:{width:24,height:24,borderRadius:12,backgroundColor:`${e.indigo600}18`,alignItems:"center",justifyContent:"center"},switchArrowText:{fontFamily:x.interBold,fontSize:14,color:e.indigo600},buttonRow:{flexDirection:"row",alignItems:"center",gap:10,width:"100%"},cancelBtn:{flex:1,height:44,borderRadius:12,backgroundColor:e.graySurface,borderWidth:1,borderColor:e.grayBorderSecondary,alignItems:"center",justifyContent:"center"},cancelBtnText:{fontFamily:x.interSemiBold,fontSize:14,color:e.grayText},confirmBtn:{flex:1.15,height:44,borderRadius:12,overflow:"hidden",...O.select({ios:{shadowColor:e.indigo600,shadowOffset:{width:0,height:4},shadowOpacity:.35,shadowRadius:8},android:{elevation:4}})},confirmBtnGradient:{flex:1,flexDirection:"row",alignItems:"center",justifyContent:"center",gap:6,borderRadius:12},confirmBtnText:{fontFamily:x.interBold,fontSize:13.5,color:e.white,letterSpacing:.2}});export default LanguageSelectorModal;
|
|
@@ -1,134 +1,154 @@
|
|
|
1
|
-
import
|
|
2
|
-
{(
|
|
3
|
-
<
|
|
4
|
-
<
|
|
5
|
-
<
|
|
6
|
-
<
|
|
7
|
-
<
|
|
8
|
-
<
|
|
1
|
+
import ne,{useEffect as A,useRef as P}from"react";import{Animated as o,Modal as Se,Platform as z,Pressable as Be,StatusBar as Ce,StyleSheet as v,View as B}from"react-native";import{useInspector as Ve}from"./InspectorContext";import Me from"../ErrorBoundary";import S from"../ModuleErrorBoundary";import Ne from"./FabLauncher";import Re from"./InspectorHeader";import{SecondaryTelemetryStrip as De}from"./SecondaryTelemetryStrip";import Te from"./TabBar";import Ee from"./NetworkTab";import Ae from"./NetworkDetail";import Pe from"./LogDetail";import Le from"./ConsoleTab";import Ie from"./AnalyticsTab";import Oe from"../AnalyticsDetail";import We from"./ReduxTab";import Fe from"./ReduxDetail";import Ge from"./CrashTab";import He from"./CrashDetail";import Ye from"./PushTab";import Ue from"./PushDetail";import _e from"./SocketTab";import $e from"./SocketDetail";import Je from"./DeviceInfoTab";import Ke from"./StorageTab";import Qe from"./DebuggingTab";import{MediaGalleryTab as Xe}from"./MediaGalleryTab";import Ze from"./SettingsPanel";import So from"./AboutModal";import{SupportPage as Bo}from"./SupportPage";import{ConfirmationModal as Co}from"./ConfirmationModal";import{FloatingCaptureWidget as Vo}from"./FloatingCaptureWidget";import Mo from"./NpmUpdateToast";import No from"./NpmStarPrompt";import Ro from"../Toast";import G from"../../styles";import{AppColors as k}from"../../styles/AppColors";import Do from"./NavigationTracker";import{isLocalDebugEnvironment as To}from"../../helpers";const xo=()=>{const{visible:L,modalAnimationType:C,closeModal:V,modalHeightPercent:I,selected:q,selectedEvent:O,selectedLog:H,selectedReduxSlice:_,selectedReduxAction:$,selectedCrash:Y,selectedPush:W,setSelectedPush:j,selectedSocket:F,setSelectedSocket:J,settingsPage:N,isAboutOpen:R,setIsAboutOpen:K,isSupportOpen:D,setIsSupportOpen:Q,activeTab:e,isReady:X,enabled:Z,isDismissed:ee,hasNavigationContext:oe,setNavState:re,confirmModal:M,setConfirmModal:te,peekMode:ae,peekOpacity:ie}=Ve(),U=e==="apis"&&q!=null||e==="analytics"&&O!=null||e==="logs"&&H!=null||e==="redux"&&(_!=null||$!=null)||e==="crash"&&Y!=null||e==="push"&&W!=null||e==="socket"&&F!=null,T=P(new o.Value(0)).current;A(()=>{N!==null&&(T.setValue(0),o.spring(T,{toValue:1,friction:8,tension:65,useNativeDriver:!1}).start())},[N!==null]);const x=P(new o.Value(0)).current;A(()=>{R&&(x.setValue(0),o.spring(x,{toValue:1,friction:8,tension:65,useNativeDriver:!1}).start())},[R]);const E=P(new o.Value(0)).current;return A(()=>{D&&(E.setValue(0),o.spring(E,{toValue:1,friction:8,tension:65,useNativeDriver:!1}).start())},[D]),<>
|
|
2
|
+
{(z.OS==="ios"||z.OS==="android")&&Z&&!ee&&!L&&<Ne/>}
|
|
3
|
+
<Se visible={L}animationType={C}transparent statusBarTranslucent={!0}onRequestClose={V}>
|
|
4
|
+
<Me onClose={V}>
|
|
5
|
+
<B style={[G.modalBackdrop,{zIndex:999999,elevation:999999}]}>
|
|
6
|
+
<Be style={G.modalBackdropPressable}onPress={V}/>
|
|
7
|
+
<B style={[G.modalContentCard,{height:`${I}%`,borderTopLeftRadius:I>=100?0:20,borderTopRightRadius:I>=100?0:20,backgroundColor:k.contentBg||k.grayBackground,opacity:ae?Math.max(ie||.75,.7):1,zIndex:9999999,elevation:999999}]}>
|
|
8
|
+
<Ce translucent backgroundColor="transparent"barStyle="light-content"/>
|
|
9
9
|
|
|
10
|
-
<
|
|
10
|
+
<Re/>
|
|
11
|
+
<De/>
|
|
11
12
|
|
|
12
|
-
<
|
|
13
|
+
<B style={{flex:1,overflow:"hidden",backgroundColor:k.grayBackground}}>
|
|
13
14
|
|
|
14
|
-
<
|
|
15
|
-
<
|
|
16
|
-
{
|
|
17
|
-
{e==="apis"&&<
|
|
18
|
-
<Ne/>
|
|
19
|
-
</B>}
|
|
20
|
-
{e==="logs"&&<B moduleName="Console Logs Monitor">
|
|
15
|
+
<B style={{flex:1}}pointerEvents={U||N!==null||R||D?"none":"auto"}>
|
|
16
|
+
<Te/>
|
|
17
|
+
{X?<B style={{flex:1}}>
|
|
18
|
+
{e==="apis"&&<S moduleName="Network API Monitor">
|
|
21
19
|
<Ee/>
|
|
22
|
-
</
|
|
23
|
-
{e==="
|
|
24
|
-
<
|
|
25
|
-
</
|
|
26
|
-
{e==="
|
|
27
|
-
<Pe/>
|
|
28
|
-
</B>}
|
|
29
|
-
{e==="crash"&&<B moduleName="Crash Reporter">
|
|
20
|
+
</S>}
|
|
21
|
+
{e==="logs"&&<S moduleName="Console Logs Monitor">
|
|
22
|
+
<Le/>
|
|
23
|
+
</S>}
|
|
24
|
+
{e==="analytics"&&<S moduleName="Analytics Event Tracker">
|
|
30
25
|
<Ie/>
|
|
31
|
-
</
|
|
32
|
-
{e==="
|
|
33
|
-
<Fe/>
|
|
34
|
-
</B>}
|
|
35
|
-
{e==="device"&&<B moduleName="Device Diagnostics">
|
|
26
|
+
</S>}
|
|
27
|
+
{e==="redux"&&<S moduleName="Redux State Inspector">
|
|
36
28
|
<We/>
|
|
37
|
-
</
|
|
38
|
-
{e==="
|
|
39
|
-
<
|
|
40
|
-
</
|
|
41
|
-
{e==="
|
|
29
|
+
</S>}
|
|
30
|
+
{e==="crash"&&<S moduleName="Crash Reporter">
|
|
31
|
+
<Ge/>
|
|
32
|
+
</S>}
|
|
33
|
+
{e==="push"&&<S moduleName="Push Notifications">
|
|
42
34
|
<Ye/>
|
|
43
|
-
</
|
|
44
|
-
{
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
35
|
+
</S>}
|
|
36
|
+
{e==="socket"&&<S moduleName="WebSocket & Socket.IO">
|
|
37
|
+
<_e/>
|
|
38
|
+
</S>}
|
|
39
|
+
{e==="device"&&<S moduleName="Device Diagnostics">
|
|
40
|
+
<Je/>
|
|
41
|
+
</S>}
|
|
42
|
+
{e==="storage"&&<S moduleName="Storage Inspector">
|
|
43
|
+
<Ke/>
|
|
44
|
+
</S>}
|
|
45
|
+
{e==="media"&&<S moduleName="Media Gallery">
|
|
46
|
+
<Xe/>
|
|
47
|
+
</S>}
|
|
48
|
+
{z.OS==="android"&&To()&&e==="debugging"&&<S moduleName="Debugging Utilities">
|
|
49
|
+
<Qe/>
|
|
50
|
+
</S>}
|
|
51
|
+
</B>:<Eo/>}
|
|
52
|
+
</B>
|
|
49
53
|
|
|
50
54
|
|
|
51
|
-
{
|
|
52
|
-
{e==="apis"&&
|
|
53
|
-
<
|
|
54
|
-
</
|
|
55
|
-
{e==="analytics"&&
|
|
56
|
-
<
|
|
57
|
-
</
|
|
58
|
-
{e==="logs"&&
|
|
59
|
-
<
|
|
60
|
-
</
|
|
61
|
-
{e==="redux"&&<
|
|
62
|
-
<
|
|
63
|
-
</
|
|
64
|
-
{e==="crash"&&
|
|
65
|
-
<
|
|
66
|
-
</
|
|
67
|
-
{e==="push"&&
|
|
68
|
-
<
|
|
69
|
-
</
|
|
70
|
-
|
|
55
|
+
{U&&<B style={[v.absoluteFill,{backgroundColor:k.contentBg,zIndex:10}]}>
|
|
56
|
+
{e==="apis"&&q!=null&&<S moduleName="Network Request Details">
|
|
57
|
+
<Ae/>
|
|
58
|
+
</S>}
|
|
59
|
+
{e==="analytics"&&O!=null&&<S moduleName="Analytics Event Details">
|
|
60
|
+
<Oe event={O}/>
|
|
61
|
+
</S>}
|
|
62
|
+
{e==="logs"&&H!=null&&<S moduleName="Console Log Details">
|
|
63
|
+
<Pe/>
|
|
64
|
+
</S>}
|
|
65
|
+
{e==="redux"&&<S moduleName="Redux Action & State Details">
|
|
66
|
+
<Fe/>
|
|
67
|
+
</S>}
|
|
68
|
+
{e==="crash"&&Y!=null&&<S moduleName="Crash Log Details">
|
|
69
|
+
<He/>
|
|
70
|
+
</S>}
|
|
71
|
+
{e==="push"&&W!=null&&<S moduleName="Push Notification Details">
|
|
72
|
+
<Ue item={W}onClose={()=>j(null)}/>
|
|
73
|
+
</S>}
|
|
74
|
+
{e==="socket"&&F!=null&&<S moduleName="WebSocket & Socket.IO Details">
|
|
75
|
+
<$e item={F}onClose={()=>J(null)}/>
|
|
76
|
+
</S>}
|
|
77
|
+
</B>}
|
|
71
78
|
|
|
72
79
|
|
|
73
|
-
{N!==null&&<
|
|
74
|
-
<
|
|
75
|
-
<
|
|
76
|
-
</
|
|
77
|
-
</
|
|
80
|
+
{N!==null&&<o.View style={[v.absoluteFill,{backgroundColor:k.grayBackground,opacity:T,transform:[{translateY:T.interpolate({inputRange:[0,1],outputRange:[24,0]})}]}]}>
|
|
81
|
+
<S moduleName="Settings Panel">
|
|
82
|
+
<Ze/>
|
|
83
|
+
</S>
|
|
84
|
+
</o.View>}
|
|
78
85
|
|
|
79
86
|
|
|
80
|
-
{
|
|
81
|
-
<
|
|
82
|
-
|
|
83
|
-
</
|
|
84
|
-
</
|
|
85
|
-
|
|
87
|
+
{R&&<o.View style={[v.absoluteFill,{backgroundColor:k.primaryLight,opacity:x,transform:[{translateY:x.interpolate({inputRange:[0,1],outputRange:[24,0]})}]}]}>
|
|
88
|
+
<S moduleName="About & Diagnostics">
|
|
89
|
+
<So onClose={()=>K(!1)}/>
|
|
90
|
+
</S>
|
|
91
|
+
</o.View>}
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
{D&&<o.View style={[v.absoluteFill,{backgroundColor:k.primaryLight,opacity:E,transform:[{translateY:E.interpolate({inputRange:[0,1],outputRange:[24,0]})}]}]}>
|
|
95
|
+
<S moduleName="Support & Community">
|
|
96
|
+
<Bo onClose={()=>Q(!1)}/>
|
|
97
|
+
</S>
|
|
98
|
+
</o.View>}
|
|
99
|
+
</B>
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
<Ro/>
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
<Mo/>
|
|
86
106
|
|
|
87
107
|
|
|
88
|
-
<
|
|
108
|
+
<No/>
|
|
89
109
|
|
|
90
110
|
|
|
91
|
-
<
|
|
111
|
+
<Vo/>
|
|
92
112
|
|
|
93
113
|
|
|
94
|
-
<
|
|
95
|
-
</
|
|
96
|
-
</
|
|
97
|
-
</
|
|
98
|
-
{
|
|
99
|
-
</
|
|
100
|
-
</>},
|
|
114
|
+
<Co visible={M.visible}title={M.title}message={M.message}confirmText={M.confirmText}cancelText={M.cancelText}isDestructive={!0}icon="trash"onConfirm={M.onConfirm}onCancel={()=>te(le=>({...le,visible:!1}))}/>
|
|
115
|
+
</B>
|
|
116
|
+
</B>
|
|
117
|
+
</Me>
|
|
118
|
+
{oe&&<Do onStateChange={re}/>}
|
|
119
|
+
</Se>
|
|
120
|
+
</>},Eo=ne.memo(function(){const C=P(new o.Value(.35)).current;return A(()=>{const V=o.loop(o.sequence([o.timing(C,{toValue:.85,duration:750,useNativeDriver:!1}),o.timing(C,{toValue:.35,duration:750,useNativeDriver:!1})]));return V.start(),()=>V.stop()},[C]),<B style={r.container}>
|
|
101
121
|
|
|
102
|
-
<
|
|
103
|
-
<
|
|
104
|
-
<
|
|
105
|
-
<
|
|
106
|
-
<
|
|
107
|
-
</
|
|
108
|
-
</
|
|
122
|
+
<B style={r.toolbarSkeleton}>
|
|
123
|
+
<o.View style={[r.searchBarSkeleton,{opacity:C}]}/>
|
|
124
|
+
<B style={r.actionButtonsRow}>
|
|
125
|
+
<o.View style={[r.iconButtonSkeleton,{opacity:C}]}/>
|
|
126
|
+
<o.View style={[r.iconButtonSkeleton,{opacity:C}]}/>
|
|
127
|
+
</B>
|
|
128
|
+
</B>
|
|
109
129
|
|
|
110
130
|
|
|
111
|
-
<
|
|
112
|
-
<
|
|
113
|
-
<
|
|
114
|
-
<
|
|
115
|
-
<
|
|
116
|
-
</
|
|
131
|
+
<B style={r.chipStripSkeleton}>
|
|
132
|
+
<o.View style={[r.chipSkeleton,{width:48,opacity:C}]}/>
|
|
133
|
+
<o.View style={[r.chipSkeleton,{width:68,opacity:C}]}/>
|
|
134
|
+
<o.View style={[r.chipSkeleton,{width:76,opacity:C}]}/>
|
|
135
|
+
<o.View style={[r.chipSkeleton,{width:58,opacity:C}]}/>
|
|
136
|
+
</B>
|
|
117
137
|
|
|
118
138
|
|
|
119
|
-
{[0,1,2,3].map(
|
|
120
|
-
<
|
|
121
|
-
<
|
|
122
|
-
<
|
|
123
|
-
<
|
|
124
|
-
</
|
|
125
|
-
<
|
|
126
|
-
</
|
|
127
|
-
<
|
|
128
|
-
<
|
|
129
|
-
<
|
|
130
|
-
<
|
|
131
|
-
<
|
|
132
|
-
</
|
|
133
|
-
</
|
|
134
|
-
</
|
|
139
|
+
{[0,1,2,3].map(V=><o.View key={`skeleton_card_${V}`}style={[r.cardSkeleton,{opacity:C}]}>
|
|
140
|
+
<B style={r.cardTopRow}>
|
|
141
|
+
<B style={r.badgeGroup}>
|
|
142
|
+
<B style={r.statusBadgeSkeleton}/>
|
|
143
|
+
<B style={r.methodBadgeSkeleton}/>
|
|
144
|
+
</B>
|
|
145
|
+
<B style={r.timeSkeleton}/>
|
|
146
|
+
</B>
|
|
147
|
+
<B style={r.urlLineLong}/>
|
|
148
|
+
<B style={r.urlLineShort}/>
|
|
149
|
+
<B style={r.cardBottomRow}>
|
|
150
|
+
<B style={r.metaPillSkeleton}/>
|
|
151
|
+
<B style={r.metaPillSkeleton}/>
|
|
152
|
+
</B>
|
|
153
|
+
</o.View>)}
|
|
154
|
+
</B>}),r=v.create({container:{flex:1,paddingHorizontal:12,paddingTop:8},toolbarSkeleton:{flexDirection:"row",alignItems:"center",gap:8,marginBottom:8},searchBarSkeleton:{flex:1,height:36,borderRadius:8,backgroundColor:k.graySurface,borderWidth:1,borderColor:k.dividerColor},actionButtonsRow:{flexDirection:"row",gap:6},iconButtonSkeleton:{width:36,height:36,borderRadius:8,backgroundColor:k.graySurface,borderWidth:1,borderColor:k.dividerColor},chipStripSkeleton:{flexDirection:"row",gap:6,marginBottom:10},chipSkeleton:{height:24,borderRadius:6,backgroundColor:k.graySurface,borderWidth:1,borderColor:k.dividerColor},cardSkeleton:{backgroundColor:k.primaryLight,borderRadius:10,padding:12,marginBottom:8,borderWidth:1,borderColor:k.dividerColor},cardTopRow:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:8},badgeGroup:{flexDirection:"row",alignItems:"center",gap:6},statusBadgeSkeleton:{width:38,height:18,borderRadius:4,backgroundColor:k.graySurface},methodBadgeSkeleton:{width:44,height:18,borderRadius:4,backgroundColor:k.graySurface},timeSkeleton:{width:48,height:12,borderRadius:4,backgroundColor:k.graySurface},urlLineLong:{height:13,borderRadius:4,backgroundColor:k.graySurface,marginBottom:5,width:"90%"},urlLineShort:{height:11,borderRadius:4,backgroundColor:k.graySurface,marginBottom:8,width:"55%"},cardBottomRow:{flexDirection:"row",gap:8,marginTop:2},metaPillSkeleton:{width:52,height:14,borderRadius:4,backgroundColor:k.graySurface}});export default xo;
|