react-native-inapp-inspector 2.3.24 → 2.4.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.md +26 -5
- package/dist/commonjs/components/AnalyticsDetail.js +15 -12
- package/dist/commonjs/components/AnalyticsEventCard.js +11 -8
- package/dist/commonjs/components/AppHeaderLogo.js +4 -6
- package/dist/commonjs/components/ConsoleLogCard.d.ts +1 -0
- package/dist/commonjs/components/ConsoleLogCard.js +92 -80
- package/dist/commonjs/components/EndOfListFooter.d.ts +5 -1
- package/dist/commonjs/components/EndOfListFooter.js +27 -5
- package/dist/commonjs/components/Inspector/AnalyticsFilterModal.js +1 -1
- package/dist/commonjs/components/Inspector/AnalyticsTab.js +27 -299
- package/dist/commonjs/components/Inspector/ConsoleTab.js +36 -94
- package/dist/commonjs/components/Inspector/CrashDetail.js +11 -10
- package/dist/commonjs/components/Inspector/CrashTab.js +43 -33
- package/dist/commonjs/components/Inspector/DebuggingTab.js +13 -13
- package/dist/commonjs/components/Inspector/DeviceInfoTab.js +107 -71
- package/dist/commonjs/components/Inspector/FabLauncher.js +8 -9
- package/dist/commonjs/components/Inspector/InspectorHeader.js +93 -70
- package/dist/commonjs/components/Inspector/LogDetail.js +10 -7
- package/dist/commonjs/components/Inspector/MainScreen.js +66 -30
- package/dist/commonjs/components/Inspector/MediaGalleryTab.js +1 -1
- package/dist/commonjs/components/Inspector/MediaPreviewModal.js +3 -3
- package/dist/commonjs/components/Inspector/NetworkDetail.js +29 -28
- package/dist/commonjs/components/Inspector/NetworkFilterModal.js +1 -1
- package/dist/commonjs/components/Inspector/NetworkTab.js +87 -85
- package/dist/commonjs/components/Inspector/NpmStarPrompt.js +3 -3
- package/dist/commonjs/components/Inspector/NpmUpdateToast.js +21 -22
- package/dist/commonjs/components/Inspector/PushCard.d.ts +4 -0
- package/dist/commonjs/components/Inspector/PushCard.js +89 -0
- package/dist/commonjs/components/Inspector/PushDetail.d.ts +4 -0
- package/dist/commonjs/components/Inspector/PushDetail.js +190 -0
- package/dist/commonjs/components/Inspector/PushTab.d.ts +3 -0
- package/dist/commonjs/components/Inspector/PushTab.js +45 -0
- package/dist/commonjs/components/Inspector/ReduxDetail.js +16 -13
- package/dist/commonjs/components/Inspector/ReduxTab.js +109 -106
- package/dist/commonjs/components/Inspector/SettingsPanel.js +230 -134
- package/dist/commonjs/components/Inspector/StorageTab.js +55 -51
- package/dist/commonjs/components/Inspector/TabBar.js +30 -26
- package/dist/commonjs/components/Inspector/UpdateAvailableModal.js +2 -2
- package/dist/commonjs/components/JsonViewer.js +151 -159
- package/dist/commonjs/components/LogCard.js +34 -38
- package/dist/commonjs/components/LogSyntaxHighlighter.js +3 -3
- package/dist/commonjs/components/ModuleErrorBoundary.d.ts +24 -0
- package/dist/commonjs/components/ModuleErrorBoundary.js +33 -0
- package/dist/commonjs/components/NetworkIcons.d.ts +3 -3
- package/dist/commonjs/components/NetworkIcons.js +10 -6
- package/dist/commonjs/components/SegmentedTabs.d.ts +8 -2
- package/dist/commonjs/components/SegmentedTabs.js +11 -7
- package/dist/commonjs/components/ShareButton.d.ts +11 -0
- package/dist/commonjs/components/ShareButton.js +6 -0
- package/dist/commonjs/constants/index.js +1 -1
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -1
- package/dist/commonjs/customHooks/crashHandler.js +4 -4
- package/dist/commonjs/customHooks/networkLogger.js +1 -2
- package/dist/commonjs/customHooks/pushNotificationLogger.d.ts +19 -0
- package/dist/commonjs/customHooks/pushNotificationLogger.js +1 -0
- package/dist/commonjs/helpers/index.d.ts +6 -0
- package/dist/commonjs/helpers/index.js +4 -4
- package/dist/commonjs/helpers/memoryManager.d.ts +2 -2
- package/dist/commonjs/helpers/memoryManager.js +1 -1
- package/dist/commonjs/helpers/remoteConfig.js +1 -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 +13 -0
- package/dist/commonjs/helpers/shareFormatter.js +7 -0
- package/dist/commonjs/i18n/index.d.ts +35 -0
- package/dist/commonjs/i18n/index.js +1 -1
- package/dist/commonjs/i18n/locales/ar.json +1 -0
- package/dist/commonjs/i18n/locales/de.json +1 -0
- package/dist/commonjs/i18n/locales/en.json +1 -1
- package/dist/commonjs/i18n/locales/es.json +1 -0
- package/dist/commonjs/i18n/locales/fr.json +1 -0
- package/dist/commonjs/i18n/locales/hi.json +1 -0
- package/dist/commonjs/i18n/locales/ja.json +1 -0
- package/dist/commonjs/i18n/locales/ko.json +1 -0
- package/dist/commonjs/i18n/locales/pt.json +1 -0
- package/dist/commonjs/i18n/locales/ru.json +1 -0
- package/dist/commonjs/i18n/locales/zh.json +1 -0
- package/dist/commonjs/index.d.ts +6 -5
- package/dist/commonjs/index.js +4 -4
- package/dist/commonjs/push.d.ts +4 -0
- package/dist/commonjs/push.js +1 -0
- package/dist/commonjs/styles/AppColors.d.ts +40 -0
- package/dist/commonjs/styles/AppColors.js +1 -1
- package/dist/commonjs/styles/index.js +1 -1
- package/dist/commonjs/types/enums.d.ts +30 -20
- package/dist/commonjs/types/enums.js +1 -1
- package/dist/commonjs/types/index.d.ts +10 -0
- package/dist/commonjs/types/interfaces.d.ts +63 -7
- package/dist/esm/components/AnalyticsDetail.js +84 -81
- package/dist/esm/components/AnalyticsEventCard.js +20 -17
- package/dist/esm/components/AppHeaderLogo.js +5 -7
- package/dist/esm/components/ConsoleLogCard.d.ts +1 -0
- package/dist/esm/components/ConsoleLogCard.js +98 -86
- package/dist/esm/components/EndOfListFooter.d.ts +5 -1
- package/dist/esm/components/EndOfListFooter.js +36 -14
- package/dist/esm/components/Inspector/AnalyticsFilterModal.js +14 -14
- package/dist/esm/components/Inspector/AnalyticsTab.js +44 -316
- package/dist/esm/components/Inspector/ConsoleTab.js +55 -113
- package/dist/esm/components/Inspector/CrashDetail.js +53 -52
- package/dist/esm/components/Inspector/CrashTab.js +74 -64
- package/dist/esm/components/Inspector/DebuggingTab.js +33 -33
- package/dist/esm/components/Inspector/DeviceInfoTab.js +174 -138
- package/dist/esm/components/Inspector/FabLauncher.js +41 -42
- package/dist/esm/components/Inspector/InspectorHeader.js +138 -115
- package/dist/esm/components/Inspector/LogDetail.js +24 -21
- package/dist/esm/components/Inspector/MainScreen.js +98 -62
- package/dist/esm/components/Inspector/MediaGalleryTab.js +1 -1
- package/dist/esm/components/Inspector/MediaPreviewModal.js +31 -31
- package/dist/esm/components/Inspector/NetworkDetail.js +88 -87
- package/dist/esm/components/Inspector/NetworkFilterModal.js +8 -8
- package/dist/esm/components/Inspector/NetworkTab.js +132 -130
- package/dist/esm/components/Inspector/NpmStarPrompt.js +42 -42
- package/dist/esm/components/Inspector/NpmUpdateToast.js +45 -46
- package/dist/esm/components/Inspector/PushCard.d.ts +4 -0
- package/dist/esm/components/Inspector/PushCard.js +89 -0
- package/dist/esm/components/Inspector/PushDetail.d.ts +4 -0
- package/dist/esm/components/Inspector/PushDetail.js +190 -0
- package/dist/esm/components/Inspector/PushTab.d.ts +3 -0
- package/dist/esm/components/Inspector/PushTab.js +45 -0
- package/dist/esm/components/Inspector/ReduxDetail.js +40 -37
- package/dist/esm/components/Inspector/ReduxTab.js +155 -152
- package/dist/esm/components/Inspector/SettingsPanel.js +380 -284
- package/dist/esm/components/Inspector/StorageTab.js +177 -173
- package/dist/esm/components/Inspector/TabBar.js +38 -34
- package/dist/esm/components/Inspector/UpdateAvailableModal.js +1 -1
- package/dist/esm/components/JsonViewer.js +161 -169
- package/dist/esm/components/LogCard.js +38 -42
- package/dist/esm/components/LogSyntaxHighlighter.js +1 -1
- package/dist/esm/components/ModuleErrorBoundary.d.ts +24 -0
- package/dist/esm/components/ModuleErrorBoundary.js +33 -0
- package/dist/esm/components/NetworkIcons.d.ts +3 -3
- package/dist/esm/components/NetworkIcons.js +7 -3
- package/dist/esm/components/SegmentedTabs.d.ts +8 -2
- package/dist/esm/components/SegmentedTabs.js +12 -8
- package/dist/esm/components/ShareButton.d.ts +11 -0
- package/dist/esm/components/ShareButton.js +6 -0
- package/dist/esm/constants/index.js +1 -1
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/customHooks/crashHandler.js +6 -6
- package/dist/esm/customHooks/networkLogger.js +1 -2
- package/dist/esm/customHooks/pushNotificationLogger.d.ts +19 -0
- package/dist/esm/customHooks/pushNotificationLogger.js +1 -0
- package/dist/esm/helpers/index.d.ts +6 -0
- package/dist/esm/helpers/index.js +4 -4
- package/dist/esm/helpers/memoryManager.d.ts +2 -2
- package/dist/esm/helpers/memoryManager.js +1 -1
- package/dist/esm/helpers/remoteConfig.js +1 -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 +13 -0
- package/dist/esm/helpers/shareFormatter.js +7 -0
- package/dist/esm/i18n/index.d.ts +35 -0
- package/dist/esm/i18n/index.js +1 -1
- package/dist/esm/i18n/locales/ar.json +1 -0
- package/dist/esm/i18n/locales/de.json +1 -0
- package/dist/esm/i18n/locales/en.json +1 -1
- package/dist/esm/i18n/locales/es.json +1 -0
- package/dist/esm/i18n/locales/fr.json +1 -0
- package/dist/esm/i18n/locales/hi.json +1 -0
- package/dist/esm/i18n/locales/ja.json +1 -0
- package/dist/esm/i18n/locales/ko.json +1 -0
- package/dist/esm/i18n/locales/pt.json +1 -0
- package/dist/esm/i18n/locales/ru.json +1 -0
- package/dist/esm/i18n/locales/zh.json +1 -0
- package/dist/esm/index.d.ts +6 -5
- package/dist/esm/index.js +7 -7
- package/dist/esm/push.d.ts +4 -0
- package/dist/esm/push.js +1 -0
- package/dist/esm/styles/AppColors.d.ts +40 -0
- package/dist/esm/styles/AppColors.js +1 -1
- package/dist/esm/styles/index.js +1 -1
- package/dist/esm/types/enums.d.ts +30 -20
- package/dist/esm/types/enums.js +1 -1
- package/dist/esm/types/index.d.ts +10 -0
- package/dist/esm/types/interfaces.d.ts +63 -7
- package/package.json +53 -24
- package/src/native/NativeInspector.ts +0 -1
- package/dist/commonjs/bundle.d.ts +0 -2
- package/dist/commonjs/bundle.js +0 -1
- package/dist/commonjs/components/BrandSquareIcon.d.ts +0 -5
- package/dist/commonjs/components/BrandSquareIcon.js +0 -112
- package/dist/commonjs/components/Inspector/BundleTab.d.ts +0 -48
- package/dist/commonjs/components/Inspector/BundleTab.js +0 -1297
- package/dist/commonjs/components/Inspector/PerformanceTab.d.ts +0 -27
- package/dist/commonjs/components/Inspector/PerformanceTab.js +0 -454
- package/dist/commonjs/customHooks/bundleAnalyzer.d.ts +0 -115
- package/dist/commonjs/customHooks/bundleAnalyzer.js +0 -1
- package/dist/commonjs/customHooks/performanceTracker.d.ts +0 -144
- package/dist/commonjs/customHooks/performanceTracker.js +0 -63
- package/dist/commonjs/performance.d.ts +0 -2
- package/dist/commonjs/performance.js +0 -1
- package/dist/esm/bundle.d.ts +0 -2
- package/dist/esm/bundle.js +0 -1
- package/dist/esm/components/BrandSquareIcon.d.ts +0 -5
- package/dist/esm/components/BrandSquareIcon.js +0 -112
- package/dist/esm/components/Inspector/BundleTab.d.ts +0 -48
- package/dist/esm/components/Inspector/BundleTab.js +0 -1297
- package/dist/esm/components/Inspector/PerformanceTab.d.ts +0 -27
- package/dist/esm/components/Inspector/PerformanceTab.js +0 -454
- package/dist/esm/customHooks/bundleAnalyzer.d.ts +0 -115
- package/dist/esm/customHooks/bundleAnalyzer.js +0 -1
- package/dist/esm/customHooks/performanceTracker.d.ts +0 -144
- package/dist/esm/customHooks/performanceTracker.js +0 -63
- package/dist/esm/performance.d.ts +0 -2
- package/dist/esm/performance.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(o,
|
|
1
|
+
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(o,i,s,n){n===void 0&&(n=s);var p=Object.getOwnPropertyDescriptor(i,s);(!p||("get"in p?!i.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(o,n,p)}):(function(o,i,s,n){n===void 0&&(n=s),o[n]=i[s]})),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?(function(o,i){Object.defineProperty(o,"default",{enumerable:!0,value:i})}):function(o,i){o.default=i}),__importStar=this&&this.__importStar||(function(){var o=function(i){return o=Object.getOwnPropertyNames||function(s){var n=[];for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&(n[n.length]=p);return n},o(i)};return function(i){if(i&&i.__esModule)return i;var s={};if(i!=null)for(var n=o(i),p=0;p<n.length;p++)n[p]!=="default"&&__createBinding(s,i,n[p]);return __setModuleDefault(s,i),s}})(),__importDefault=this&&this.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importStar(require("react")),react_native_1=require("react-native"),react_native_svg_1=__importStar(require("react-native-svg")),InspectorContext_1=require("./InspectorContext"),TouchableScale_1=__importDefault(require("../TouchableScale")),Slider_1=__importDefault(require("../Slider")),styles_1=require("../../styles"),AppColors_1=require("../../styles/AppColors"),AppFonts_1=require("../../styles/AppFonts"),settingsStore_1=require("../../helpers/settingsStore"),networkLogger_1=require("../../customHooks/networkLogger"),consoleLogger_1=require("../../customHooks/consoleLogger"),analyticsLogger_1=require("../../customHooks/analyticsLogger"),crashHandler_1=require("../../customHooks/crashHandler"),reduxLogger_1=require("../../customHooks/reduxLogger"),analyticsLogger_2=require("../../customHooks/analyticsLogger"),i18n_1=require("../../i18n"),NetworkIcons_1=require("../NetworkIcons"),capture_1=require("../../capture"),NativeInspector_1=require("../../native/NativeInspector"),helpers_1=require("../../helpers"),toast_1=require("../../helpers/toast"),memoryManager_1=require("../../helpers/memoryManager"),SettingsPanel=()=>{const{t:o}=(0,i18n_1.useTranslation)(),{settingsPage:i,setSettingsPage:s,settingsActiveSubTab:n,setSettingsActiveSubTab:p,tabVisibility:t,toggleTabVisibility:re,defaultTab:m,setDefaultTab:te,isDark:T,setIsDark:ie,modalHeightPercent:v,setModalHeightPercent:ae,modalAnimationType:le,setModalAnimationType:ne,showDuplicateLogs:R,setShowDuplicateLogs:se,showUpdateToast:I,setShowUpdateToast:pe,showConsoleLevels:ce,setShowConsoleLevels:de,closeModal:ge,logs:O,consoleLogs:M,analyticsEvents:E,reduxState:N,maxConsoleLogs:H,setMaxConsoleLogs:ue,maxAnalyticsEventsLimit:j,setMaxAnalyticsEventsLimit:ye,isAutoRamLimitEnabled:d,setIsAutoRamLimitEnabled:Ce,deviceFreeRamMb:D,reduxAutoRefresh:L,setReduxAutoRefreshState:he,reduxExpandDepth:G,setReduxExpandDepth:Ae,setSelected:be,setSelectedEvent:we,setReduxState:fe,crashRecords:q,maxCrashLogs:U,setMaxCrashLogs:_e,pushRecords:me,maxPushLogs:xe,setMaxPushLogs:Te,clearAllPushLogs:ve,simulatePush:V}=(0,InspectorContext_1.useInspector)(),[S,J]=(0,react_1.useState)(v),[P,K]=(0,react_1.useState)("PNG"),[h,k]=(0,react_1.useState)(!0),[Q,X]=(0,react_1.useState)("Muted"),[Y,Z]=(0,react_1.useState)("30"),[b,F]=(0,react_1.useState)(!0);(0,react_1.useEffect)(()=>{J(v)},[v]);const B=(0,settingsStore_1.calculateRamBasedLimits)(D),A=(0,react_1.useMemo)(()=>[{id:1,key:"apis",label:"APIs (Network)",category:"core",icon:"apis",desc:"HTTP/HTTPS requests, GraphQL, Axios & WebSocket inspector"},{id:2,key:"logs",label:"Console Logs",category:"core",icon:"logs",desc:"Terminal console logs, warnings, errors & stack traces"},{id:3,key:"analytics",label:"Analytics Logger",category:"telemetry",icon:"analytics",desc:"Firebase & custom analytics events, user properties & params"},{id:4,key:"redux",label:"Redux Inspector",category:"telemetry",icon:"redux",desc:"Store state diffing, action history & reducer timeline"},{id:5,key:"storage",label:"Storage Inspector",category:"telemetry",icon:"storage",desc:"AsyncStorage & MMKV key-value store viewer with full CRUD support"},{id:6,key:"device",label:"Device Info",category:"diagnostic",icon:"device",desc:"Hardware specs, IP address, screen metrics, UDID & runtime stats"},{id:7,key:"crash",label:"Crash Protection",category:"diagnostic",icon:"crash",desc:"Runtime exception guard, breadcrumbs & memory snapshot"},{id:8,key:"debugging",label:"Multi-Device Debugging",category:"diagnostic",icon:"debugging",desc:"QR Code bridge for direct Debug APK download & Metro live-reload sync"},{id:9,key:"media",label:"Screencast",category:"diagnostic",icon:"media",desc:"Screenshots, video recordings, audio narration & animated GIFs"},{id:10,key:"push",label:"Push Notifications",category:"telemetry",icon:"push",desc:"Universal push & local notification logger (Salesforce, FCM, APNs, Braze, Expo)"}].filter(e=>e.key==="debugging"?react_native_1.Platform.OS==="android"&&(0,helpers_1.isLocalDebugEnvironment)():!0),[]),[_,$]=(0,react_1.useState)(()=>({apis:!0,logs:!!t?.logs,analytics:!!t?.analytics,redux:!!t?.redux,storage:!!t?.storage,device:!!t?.device,crash:!!t?.crash,debugging:!!t?.debugging,media:!!(t?.media??!0),push:!!(t?.push??!0)}));(0,react_1.useEffect)(()=>{$({apis:!0,logs:!!t?.logs,analytics:!!t?.analytics,redux:!!t?.redux,storage:!!t?.storage,device:!!t?.device,crash:!!t?.crash,debugging:!!t?.debugging,media:!!(t?.media??!0),push:!!(t?.push??!0)})},[t]);const x=(0,react_1.useMemo)(()=>A.some(e=>!!_[e.key]!=!!t?.[e.key]),[_,t,A]),Ve=A.filter(e=>e.key==="apis"||!!_[e.key]).length,Se=()=>{x&&react_native_1.Alert.alert("Apply Changes & Reload","Are you sure you want to save module changes? The inspector will close and reload the app to apply the new configuration.",[{text:"Cancel",style:"cancel",onPress:()=>{$({apis:!0,logs:!!t?.logs,analytics:!!t?.analytics,redux:!!t?.redux,storage:!!t?.storage,device:!!t?.device,crash:!!t?.crash,debugging:!!t?.debugging,media:!!(t?.media??!0),push:!!(t?.push??!0)})}},{text:"Save & Reload",style:"default",onPress:()=>{(0,InspectorContext_1.animateNextLayout)(),A.forEach(e=>{if(e.key!=="apis"){const r=!!_[e.key],C=!!t?.[e.key];r!==C&&re(e.key)}}),ge(),setTimeout(()=>{__DEV__&&react_native_1.DevSettings&&react_native_1.DevSettings.reload&&react_native_1.DevSettings.reload()},350)}}])},[W,ee]=(0,react_1.useState)(!1),l=e=><react_native_1.View style={{paddingVertical:12,borderBottomWidth:e.isLast?0:1,borderBottomColor:AppColors_1.AppColors.dividerColor}}>
|
|
2
2
|
<TouchableScale_1.default disabled={!e.onPress}onPress={e.onPress}style={{flexDirection:"row",alignItems:"center",gap:12}}>
|
|
3
3
|
<react_native_1.View style={{width:36,height:36,borderRadius:10,backgroundColor:AppColors_1.AppColors.purpleShade50,borderWidth:1,borderColor:`${AppColors_1.AppColors.purple}2E`,alignItems:"center",justifyContent:"center"}}>
|
|
4
4
|
{e.icon}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
</TouchableScale_1.default>
|
|
16
16
|
{e.numericInput&&<react_native_1.View style={{marginTop:10,gap:6}}>
|
|
17
17
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",backgroundColor:AppColors_1.AppColors.grayBackground,borderRadius:8,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,paddingHorizontal:12,paddingVertical:4}}>
|
|
18
|
-
<react_native_1.TextInput style={{flex:1,fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:14,lineHeight:18,color:AppColors_1.AppColors.primaryBlack,paddingVertical:6}}value={String(e.numericInput.value||"")}onChangeText={
|
|
18
|
+
<react_native_1.TextInput style={{flex:1,fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:14,lineHeight:18,color:AppColors_1.AppColors.primaryBlack,paddingVertical:6}}value={String(e.numericInput.value||"")}onChangeText={r=>{const C=parseInt(r.replace(/[^0-9]/g,""),10);if(!isNaN(C)){const c=Math.max(e.numericInput?.min??1,Math.min(e.numericInput?.max??1e4,C));e.numericInput?.onChange(c)}}}keyboardType={e.numericInput.keyboardType??"number-pad"}placeholder={e.numericInput.placeholder}placeholderTextColor={AppColors_1.AppColors.grayTextWeak}maxLength={6}selectTextOnFocus/>
|
|
19
19
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,color:AppColors_1.AppColors.purple,marginLeft:6}}>
|
|
20
20
|
MAX
|
|
21
21
|
</react_native_1.Text>
|
|
@@ -26,25 +26,25 @@
|
|
|
26
26
|
</react_native_1.Text>:null}
|
|
27
27
|
</react_native_1.View>}
|
|
28
28
|
{e.picker&&<react_native_1.View style={{flexDirection:"row",backgroundColor:AppColors_1.AppColors.grayBackground,borderRadius:8,padding:2.5,marginTop:10,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor}}>
|
|
29
|
-
{e.picker.options.map(
|
|
29
|
+
{e.picker.options.map(r=>{const C=e.picker.selectedValue===r;return<TouchableScale_1.default key={String(r)}onPress={()=>e.picker.onSelect(r)}style={{flex:1,paddingVertical:6,alignItems:"center",borderRadius:6,backgroundColor:C?AppColors_1.AppColors.purple:"transparent"}}>
|
|
30
30
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,lineHeight:14,color:C?AppColors_1.AppColors.white:AppColors_1.AppColors.grayText}}>
|
|
31
|
-
{e.picker.formatLabel?e.picker.formatLabel(
|
|
31
|
+
{e.picker.formatLabel?e.picker.formatLabel(r):r}
|
|
32
32
|
</react_native_1.Text>
|
|
33
33
|
</TouchableScale_1.default>})}
|
|
34
34
|
</react_native_1.View>}
|
|
35
|
-
</react_native_1.View>,
|
|
35
|
+
</react_native_1.View>,ke=()=><react_native_1.View style={{flex:1,backgroundColor:AppColors_1.AppColors.grayBackground}}>
|
|
36
36
|
<react_native_1.ScrollView style={{flex:1}}contentContainerStyle={{padding:16,paddingBottom:100,gap:14}}showsVerticalScrollIndicator={!1}>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:13,paddingVertical:4,paddingHorizontal:4,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,shadowColor:AppColors_1.AppColors.black,shadowOpacity:.04,shadowRadius:4,shadowOffset:{width:0,height:2}}}>
|
|
40
40
|
<react_native_1.ScrollView horizontal showsHorizontalScrollIndicator={!1}contentContainerStyle={{flexDirection:"row",alignItems:"center",gap:6,paddingHorizontal:2}}>
|
|
41
|
-
{[{key:"module",label:o("settings.modulesAndTools","Modules & Tools"),Icon:NetworkIcons_1.LayersIcon,badge:`${
|
|
42
|
-
<C color={
|
|
43
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12.5,lineHeight:16,color:
|
|
41
|
+
{[{key:"module",label:o("settings.modulesAndTools","Modules & Tools"),Icon:NetworkIcons_1.LayersIcon,badge:`${A.filter(e=>_?.[e.key]||e.key==="apis").length}/${A.length}`},{key:"ui",label:o("settings.uiPreferences","UI Preferences"),Icon:NetworkIcons_1.ScreenIcon},{key:"limits",label:o("settings.ramLimits","RAM & Limits"),Icon:NetworkIcons_1.BrainIcon},{key:"capture",label:o("settings.screenVideoCapture","Screen & Video Capture"),Icon:NetworkIcons_1.CameraIcon}].map(e=>{const r=n===e.key,C=e.Icon;return<TouchableScale_1.default key={e.key}accessible={!0}accessibilityRole="tab"accessibilityLabel={e.label}accessibilityState={{selected:r}}onPress={()=>{(0,InspectorContext_1.animateNextLayout)(),p(e.key)}}style={{paddingVertical:8,paddingHorizontal:14,flexDirection:"row",alignItems:"center",justifyContent:"center",gap:6,borderRadius:9,backgroundColor:r?AppColors_1.AppColors.purple:"transparent"}}>
|
|
42
|
+
<C color={r?AppColors_1.AppColors.white:AppColors_1.AppColors.grayText}size={13}/>
|
|
43
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12.5,lineHeight:16,color:r?AppColors_1.AppColors.white:AppColors_1.AppColors.grayText}}>
|
|
44
44
|
{e.label}
|
|
45
45
|
</react_native_1.Text>
|
|
46
|
-
{e.badge&&<react_native_1.View style={{backgroundColor:
|
|
47
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,color:
|
|
46
|
+
{e.badge&&<react_native_1.View style={{backgroundColor:r?"rgba(255,255,255,0.25)":`${AppColors_1.AppColors.purple}18`,paddingHorizontal:5.5,paddingVertical:1,borderRadius:10}}>
|
|
47
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,color:r?AppColors_1.AppColors.white:AppColors_1.AppColors.purple}}>
|
|
48
48
|
{e.badge}
|
|
49
49
|
</react_native_1.Text>
|
|
50
50
|
</react_native_1.View>}
|
|
@@ -52,28 +52,26 @@
|
|
|
52
52
|
</react_native_1.ScrollView>
|
|
53
53
|
</react_native_1.View>
|
|
54
54
|
|
|
55
|
-
{
|
|
55
|
+
{n==="module"&&<react_native_1.View style={{gap:12}}>
|
|
56
56
|
|
|
57
57
|
<react_native_1.View style={{gap:10}}>
|
|
58
|
-
{
|
|
58
|
+
{A.map(e=>{const r=(0,reduxLogger_1.isReduxConnected)(),C=(0,analyticsLogger_2.isAnalyticsConnected)(),c=e.key==="redux"&&!r||e.key==="analytics"&&!C,w=e.key==="apis"||c,a=e.key==="apis"||!!_?.[e.key]&&!c,Fe=e.key==="apis"?`${O.length} requests`:e.key==="logs"?`${M.length} logs \u2022 Limit: ${H}`:e.key==="crash"?`${q?.length||0} crashes recorded \u2022 Crash Guard`:e.key==="analytics"?`${E.length} events logged`:e.key==="redux"?`${Object.keys(N||{}).length} slices \u2022 Depth: ${G}`:"";return<react_native_1.View key={e.key}style={{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:14,borderWidth:1.5,borderColor:a?`${AppColors_1.AppColors.purple}38`:AppColors_1.AppColors.grayBorderSecondary,padding:14,gap:10,shadowColor:AppColors_1.AppColors.black,shadowOpacity:a?.04:.02,shadowRadius:5,shadowOffset:{width:0,height:2}}}>
|
|
59
59
|
|
|
60
60
|
<react_native_1.View style={{flexDirection:"row",alignItems:"flex-start",gap:10}}>
|
|
61
61
|
|
|
62
|
-
<TouchableScale_1.default accessible={!0}accessibilityRole="checkbox"accessibilityLabel={`Select ${e.label}`}accessibilityState={{checked:a,disabled:
|
|
63
|
-
{e.key==="apis"?<NetworkIcons_1.CheckIcon size={12}color={AppColors_1.AppColors.blue500}/>:a?<NetworkIcons_1.CheckIcon size={12}color={AppColors_1.AppColors.white}/>:
|
|
62
|
+
<TouchableScale_1.default accessible={!0}accessibilityRole="checkbox"accessibilityLabel={`Select ${e.label}`}accessibilityState={{checked:a,disabled:w}}disabled={w}onPress={()=>{w||$(oe=>({...oe,[e.key]:!oe[e.key]}))}}hitSlop={8}style={{width:22,height:22,borderRadius:6,borderWidth:a?0:1.8,borderColor:w?AppColors_1.AppColors.dividerColor:AppColors_1.AppColors.grayBorderSecondary,backgroundColor:e.key==="apis"?`${AppColors_1.AppColors.blue500}22`:a?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayBackground,alignItems:"center",justifyContent:"center",marginTop:7,shadowColor:a?AppColors_1.AppColors.purple:"transparent",shadowOpacity:a?.25:0,shadowRadius:2,elevation:a?2:0}}>
|
|
63
|
+
{e.key==="apis"?<NetworkIcons_1.CheckIcon size={12}color={AppColors_1.AppColors.blue500}/>:a?<NetworkIcons_1.CheckIcon size={12}color={AppColors_1.AppColors.white}/>:w?<react_native_svg_1.default width={10}height={10}viewBox="0 0 24 24"fill="none">
|
|
64
64
|
<react_native_svg_1.Path d="M7 10V7a5 5 0 0 1 10 0v3"stroke={AppColors_1.AppColors.grayText}strokeWidth="2.2"strokeLinecap="round"/>
|
|
65
65
|
<react_native_svg_1.Path d="M5 10h14v9a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1z"fill={AppColors_1.AppColors.grayText}/>
|
|
66
66
|
</react_native_svg_1.default>:null}
|
|
67
67
|
</TouchableScale_1.default>
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
<TouchableScale_1.default accessible={!0}accessibilityRole="button"accessibilityLabel={`${e.label} settings`}disabled={
|
|
70
|
+
<TouchableScale_1.default accessible={!0}accessibilityRole="button"accessibilityLabel={`${e.label} settings`}disabled={c}onPress={()=>{(0,InspectorContext_1.animateNextLayout)(),s(e.key)}}style={{flex:1,flexDirection:"row",alignItems:"flex-start",gap:10}}>
|
|
71
71
|
|
|
72
|
-
<react_native_1.View style={{width:36,height:36,borderRadius:10,backgroundColor:
|
|
72
|
+
<react_native_1.View style={{width:36,height:36,borderRadius:10,backgroundColor:w?`${AppColors_1.AppColors.grayBorderSecondary}4D`:a?`${AppColors_1.AppColors.purple}14`:AppColors_1.AppColors.grayBackground,borderWidth:1,borderColor:w?AppColors_1.AppColors.dividerColor:a?`${AppColors_1.AppColors.purple}33`:AppColors_1.AppColors.grayBorderSecondary,alignItems:"center",justifyContent:"center",marginTop:1}}>
|
|
73
73
|
{e.icon==="apis"&&<NetworkIcons_1.SignalIcon color={a?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}size={16}/>}
|
|
74
74
|
{e.icon==="logs"&&<NetworkIcons_1.TerminalIcon color={a?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}size={16}/>}
|
|
75
|
-
{e.icon==="performance"&&<NetworkIcons_1.PerformanceIcon color={a?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}size={16}/>}
|
|
76
|
-
{e.icon==="bundle"&&<NetworkIcons_1.PackageIcon color={a?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}size={16}/>}
|
|
77
75
|
{e.icon==="crash"&&<NetworkIcons_1.CrashIcon color={a?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}size={16}/>}
|
|
78
76
|
{e.icon==="analytics"&&<NetworkIcons_1.AnalyticsIcon color={a?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}size={16}/>}
|
|
79
77
|
{e.icon==="redux"&&<NetworkIcons_1.ReduxIcon color={a?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}size={16}/>}
|
|
@@ -81,6 +79,7 @@
|
|
|
81
79
|
{e.icon==="storage"&&<NetworkIcons_1.DatabaseIcon color={a?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}size={16}/>}
|
|
82
80
|
{e.icon==="debugging"&&<NetworkIcons_1.QrCodeIcon color={a?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}size={16}/>}
|
|
83
81
|
{e.icon==="media"&&<NetworkIcons_1.ScreencastIcon color={a?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}size={16}/>}
|
|
82
|
+
{e.icon==="push"&&<NetworkIcons_1.BellIcon color={a?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}size={16}/>}
|
|
84
83
|
</react_native_1.View>
|
|
85
84
|
|
|
86
85
|
|
|
@@ -91,12 +90,12 @@
|
|
|
91
90
|
#{e.id}
|
|
92
91
|
</react_native_1.Text>
|
|
93
92
|
</react_native_1.View>
|
|
94
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:14,lineHeight:18,color:
|
|
93
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:14,lineHeight:18,color:w?AppColors_1.AppColors.grayText:AppColors_1.AppColors.primaryBlack}}>
|
|
95
94
|
{e.label}
|
|
96
95
|
</react_native_1.Text>
|
|
97
96
|
|
|
98
97
|
|
|
99
|
-
{e.key===
|
|
98
|
+
{e.key===m&&!c&&<react_native_1.View style={{flexDirection:"row",alignItems:"center",backgroundColor:`${AppColors_1.AppColors.purple}14`,borderRadius:12,paddingHorizontal:5,paddingVertical:1.5,borderWidth:1,borderColor:`${AppColors_1.AppColors.purple}2E`,gap:3}}>
|
|
100
99
|
<react_native_1.View style={{width:4,height:4,borderRadius:2,backgroundColor:AppColors_1.AppColors.purple}}/>
|
|
101
100
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8,lineHeight:11,color:AppColors_1.AppColors.purple,letterSpacing:.4}}>
|
|
102
101
|
{o("settings.defaultBadge")}
|
|
@@ -108,7 +107,7 @@
|
|
|
108
107
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8,lineHeight:11,color:AppColors_1.AppColors.blue500,letterSpacing:.3}}>
|
|
109
108
|
{o("settings.coreBadge")}
|
|
110
109
|
</react_native_1.Text>
|
|
111
|
-
</react_native_1.View>:
|
|
110
|
+
</react_native_1.View>:c?<react_native_1.View style={{backgroundColor:`${AppColors_1.AppColors.amber500}18`,borderRadius:4,paddingHorizontal:5,paddingVertical:1.5,borderWidth:1,borderColor:`${AppColors_1.AppColors.amber500}35`}}>
|
|
112
111
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8,lineHeight:11,color:AppColors_1.AppColors.amber700,letterSpacing:.3}}>
|
|
113
112
|
{e.key==="redux"?o("settings.notConnectedBadge"):o("settings.notDetectedBadge")}
|
|
114
113
|
</react_native_1.Text>
|
|
@@ -131,12 +130,12 @@
|
|
|
131
130
|
</react_native_1.View>
|
|
132
131
|
|
|
133
132
|
|
|
134
|
-
{!
|
|
133
|
+
{!c&&<react_native_1.View style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingTop:8,borderTopWidth:1,borderTopColor:AppColors_1.AppColors.dividerColor}}>
|
|
135
134
|
|
|
136
135
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:6,flex:1}}>
|
|
137
136
|
<react_native_1.View style={{width:6,height:6,borderRadius:3,backgroundColor:a?AppColors_1.AppColors.liveGreen:AppColors_1.AppColors.grayTextWeak}}/>
|
|
138
137
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:11,color:AppColors_1.AppColors.grayText,lineHeight:14}}>
|
|
139
|
-
{
|
|
138
|
+
{Fe}
|
|
140
139
|
</react_native_1.Text>
|
|
141
140
|
</react_native_1.View>
|
|
142
141
|
|
|
@@ -153,7 +152,7 @@
|
|
|
153
152
|
</react_native_1.View>
|
|
154
153
|
</react_native_1.View>}
|
|
155
154
|
|
|
156
|
-
{
|
|
155
|
+
{n==="ui"&&<react_native_1.View style={{gap:14}}>
|
|
157
156
|
|
|
158
157
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,overflow:"hidden",padding:14,gap:12}}>
|
|
159
158
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,lineHeight:14,color:AppColors_1.AppColors.grayTextWeak,letterSpacing:.8}}>
|
|
@@ -163,7 +162,7 @@
|
|
|
163
162
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between"}}>
|
|
164
163
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:10,flex:1}}>
|
|
165
164
|
<react_native_1.View style={{width:32,height:32,borderRadius:8,backgroundColor:AppColors_1.AppColors.purpleShade50,alignItems:"center",justifyContent:"center"}}>
|
|
166
|
-
{
|
|
165
|
+
{T?<NetworkIcons_1.SunIcon color={AppColors_1.AppColors.purple}size={15}/>:<NetworkIcons_1.MoonIcon color={AppColors_1.AppColors.purple}size={15}/>}
|
|
167
166
|
</react_native_1.View>
|
|
168
167
|
<react_native_1.View style={{flex:1}}>
|
|
169
168
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:13.5,lineHeight:18,color:AppColors_1.AppColors.primaryBlack}}>
|
|
@@ -175,7 +174,7 @@
|
|
|
175
174
|
</react_native_1.View>
|
|
176
175
|
</react_native_1.View>
|
|
177
176
|
|
|
178
|
-
<TouchableScale_1.default accessible={!0}accessibilityRole="switch"accessibilityLabel="Toggle Dark Theme"accessibilityState={{checked:
|
|
177
|
+
<TouchableScale_1.default accessible={!0}accessibilityRole="switch"accessibilityLabel="Toggle Dark Theme"accessibilityState={{checked:T}}onPress={()=>{const e=!T;ie(e),(0,styles_1.toggleGlobalTheme)(e)}}style={{width:42,height:24,borderRadius:12,backgroundColor:T?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayBorderSecondary,padding:2,justifyContent:"center",alignItems:T?"flex-end":"flex-start"}}>
|
|
179
178
|
<react_native_1.View style={{width:20,height:20,borderRadius:10,backgroundColor:AppColors_1.AppColors.white,shadowColor:AppColors_1.AppColors.black,shadowOpacity:.18,shadowRadius:2,shadowOffset:{width:0,height:1}}}/>
|
|
180
179
|
</TouchableScale_1.default>
|
|
181
180
|
</react_native_1.View>
|
|
@@ -204,7 +203,7 @@
|
|
|
204
203
|
</react_native_1.View>
|
|
205
204
|
</react_native_1.View>
|
|
206
205
|
|
|
207
|
-
{S!==
|
|
206
|
+
{S!==v&&<TouchableScale_1.default onPress={()=>{ae(S)}}style={{flexDirection:"row",alignItems:"center",gap:5,backgroundColor:AppColors_1.AppColors.purple,paddingHorizontal:10,paddingVertical:5,borderRadius:7,shadowColor:AppColors_1.AppColors.purple,shadowOffset:{width:0,height:1},shadowOpacity:.28,shadowRadius:2,elevation:2}}>
|
|
208
207
|
<NetworkIcons_1.CheckIcon size={11}color={AppColors_1.AppColors.white}/>
|
|
209
208
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,color:AppColors_1.AppColors.white}}>
|
|
210
209
|
Save ({S}%)
|
|
@@ -213,7 +212,7 @@
|
|
|
213
212
|
</react_native_1.View>
|
|
214
213
|
|
|
215
214
|
<react_native_1.View style={{marginTop:6}}>
|
|
216
|
-
<Slider_1.default value={S}onValueChange={
|
|
215
|
+
<Slider_1.default value={S}onValueChange={J}min={50}max={90}step={5}quickPresets={[50,60,70,80,90]}formatLabel={e=>`${Math.round(e)}%`}/>
|
|
217
216
|
</react_native_1.View>
|
|
218
217
|
</react_native_1.View>
|
|
219
218
|
|
|
@@ -236,8 +235,8 @@
|
|
|
236
235
|
</react_native_1.View>
|
|
237
236
|
|
|
238
237
|
<react_native_1.View style={{flexDirection:"row",backgroundColor:AppColors_1.AppColors.grayBackground,borderRadius:10,padding:3,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor}}>
|
|
239
|
-
{[{key:"slide",label:"Slide Up"},{key:"fade",label:"Fade"},{key:"none",label:"None"}].map(e=>{const
|
|
240
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11.5,lineHeight:15,color:
|
|
238
|
+
{[{key:"slide",label:"Slide Up"},{key:"fade",label:"Fade"},{key:"none",label:"None"}].map(e=>{const r=le===e.key;return<TouchableScale_1.default key={e.key}accessible={!0}accessibilityRole="button"accessibilityLabel={`Set transition animation to ${e.label}`}accessibilityState={{selected:r}}onPress={()=>ne(e.key)}style={{flex:1,paddingVertical:7,alignItems:"center",borderRadius:8,backgroundColor:r?AppColors_1.AppColors.purple:"transparent"}}>
|
|
239
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11.5,lineHeight:15,color:r?AppColors_1.AppColors.white:AppColors_1.AppColors.grayText}}>
|
|
241
240
|
{e.label}
|
|
242
241
|
</react_native_1.Text>
|
|
243
242
|
</TouchableScale_1.default>})}
|
|
@@ -267,11 +266,11 @@
|
|
|
267
266
|
|
|
268
267
|
|
|
269
268
|
<react_native_1.View style={{marginTop:6,gap:6}}>
|
|
270
|
-
<TouchableScale_1.default accessible={!0}accessibilityRole="button"accessibilityLabel={`Default opening tab: ${
|
|
269
|
+
<TouchableScale_1.default accessible={!0}accessibilityRole="button"accessibilityLabel={`Default opening tab: ${A.find(e=>e.key===m)?.label||"APIs"}`}onPress={()=>ee(e=>!e)}style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",backgroundColor:AppColors_1.AppColors.grayBackground,borderRadius:10,borderWidth:1.5,borderColor:W?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayBorderSecondary,paddingHorizontal:14,paddingVertical:11}}>
|
|
271
270
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:10,flex:1}}>
|
|
272
271
|
<react_native_1.View style={{width:8,height:8,borderRadius:4,backgroundColor:AppColors_1.AppColors.purple}}/>
|
|
273
272
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:13.5,lineHeight:18,color:AppColors_1.AppColors.primaryBlack}}>
|
|
274
|
-
{
|
|
273
|
+
{A.find(e=>e.key===m)?`#${A.find(e=>e.key===m)?.id} ${A.find(e=>e.key===m)?.label}`:"#1 APIs (Network)"}
|
|
275
274
|
</react_native_1.Text>
|
|
276
275
|
<react_native_1.View style={{backgroundColor:`${AppColors_1.AppColors.purple}14`,paddingHorizontal:6,paddingVertical:1.5,borderRadius:6}}>
|
|
277
276
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8.5,color:AppColors_1.AppColors.purple}}>
|
|
@@ -280,21 +279,21 @@
|
|
|
280
279
|
</react_native_1.View>
|
|
281
280
|
</react_native_1.View>
|
|
282
281
|
|
|
283
|
-
<react_native_1.View style={{transform:[{rotate:
|
|
282
|
+
<react_native_1.View style={{transform:[{rotate:W?"180deg":"0deg"}]}}>
|
|
284
283
|
<NetworkIcons_1.ChevronDownIcon color={AppColors_1.AppColors.grayText}size={15}/>
|
|
285
284
|
</react_native_1.View>
|
|
286
285
|
</TouchableScale_1.default>
|
|
287
286
|
|
|
288
287
|
|
|
289
|
-
{
|
|
290
|
-
{
|
|
288
|
+
{W&&<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:10,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,overflow:"hidden",shadowColor:AppColors_1.AppColors.black,shadowOpacity:.08,shadowRadius:6,shadowOffset:{width:0,height:3},elevation:4}}>
|
|
289
|
+
{A.filter(e=>e.key==="apis"||_?.[e.key]||t?.[e.key]).map((e,r,C)=>{const c=m===e.key,w=r===C.length-1;return<TouchableScale_1.default key={e.key}accessible={!0}accessibilityRole="button"accessibilityLabel={`Select ${e.label} as default tab`}onPress={()=>{te(e.key),ee(!1)}}style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:14,paddingVertical:11,backgroundColor:c?`${AppColors_1.AppColors.purple}0F`:"transparent",borderBottomWidth:w?0:1,borderBottomColor:AppColors_1.AppColors.dividerColor}}>
|
|
291
290
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:10}}>
|
|
292
|
-
<react_native_1.View style={{width:6,height:6,borderRadius:3,backgroundColor:
|
|
293
|
-
<react_native_1.Text style={{fontFamily:
|
|
291
|
+
<react_native_1.View style={{width:6,height:6,borderRadius:3,backgroundColor:c?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}}/>
|
|
292
|
+
<react_native_1.Text style={{fontFamily:c?AppFonts_1.AppFonts.interBold:AppFonts_1.AppFonts.interMedium,fontSize:13,color:c?AppColors_1.AppColors.purple:AppColors_1.AppColors.primaryBlack}}>
|
|
294
293
|
#{e.id} {e.label}
|
|
295
294
|
</react_native_1.Text>
|
|
296
295
|
</react_native_1.View>
|
|
297
|
-
{
|
|
296
|
+
{c&&<NetworkIcons_1.CheckIcon size={14}color={AppColors_1.AppColors.purple}/>}
|
|
298
297
|
</TouchableScale_1.default>})}
|
|
299
298
|
</react_native_1.View>}
|
|
300
299
|
</react_native_1.View>
|
|
@@ -322,14 +321,14 @@
|
|
|
322
321
|
</react_native_1.View>
|
|
323
322
|
</react_native_1.View>
|
|
324
323
|
|
|
325
|
-
<TouchableScale_1.default accessible={!0}accessibilityRole="switch"accessibilityLabel="Toggle NPM Update Toast"accessibilityState={{checked:
|
|
324
|
+
<TouchableScale_1.default accessible={!0}accessibilityRole="switch"accessibilityLabel="Toggle NPM Update Toast"accessibilityState={{checked:I}}onPress={()=>pe(e=>!e)}style={{width:42,height:24,borderRadius:12,backgroundColor:I?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayBorderSecondary,padding:2,justifyContent:"center",alignItems:I?"flex-end":"flex-start"}}>
|
|
326
325
|
<react_native_1.View style={{width:20,height:20,borderRadius:10,backgroundColor:AppColors_1.AppColors.white,shadowColor:AppColors_1.AppColors.black,shadowOpacity:.18,shadowRadius:2,shadowOffset:{width:0,height:1}}}/>
|
|
327
326
|
</TouchableScale_1.default>
|
|
328
327
|
</react_native_1.View>
|
|
329
328
|
</react_native_1.View>
|
|
330
329
|
</react_native_1.View>}
|
|
331
330
|
|
|
332
|
-
{
|
|
331
|
+
{n==="limits"&&<react_native_1.View style={{gap:14}}>
|
|
333
332
|
|
|
334
333
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,overflow:"hidden",padding:14,gap:12}}>
|
|
335
334
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,lineHeight:14,color:AppColors_1.AppColors.grayTextWeak,letterSpacing:.8}}>
|
|
@@ -353,7 +352,7 @@
|
|
|
353
352
|
</react_native_1.View>
|
|
354
353
|
</react_native_1.View>
|
|
355
354
|
|
|
356
|
-
<TouchableScale_1.default accessible={!0}accessibilityRole="switch"accessibilityLabel="Toggle auto RAM limit calculation"accessibilityState={{checked:
|
|
355
|
+
<TouchableScale_1.default accessible={!0}accessibilityRole="switch"accessibilityLabel="Toggle auto RAM limit calculation"accessibilityState={{checked:d}}onPress={()=>Ce(e=>!e)}style={{width:42,height:24,borderRadius:12,backgroundColor:d?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayBorderSecondary,padding:2,justifyContent:"center",alignItems:d?"flex-end":"flex-start"}}>
|
|
357
356
|
<react_native_1.View style={{width:20,height:20,borderRadius:10,backgroundColor:AppColors_1.AppColors.white,shadowColor:AppColors_1.AppColors.black,shadowOpacity:.18,shadowRadius:2,shadowOffset:{width:0,height:1}}}/>
|
|
358
357
|
</TouchableScale_1.default>
|
|
359
358
|
</react_native_1.View>
|
|
@@ -362,20 +361,20 @@
|
|
|
362
361
|
|
|
363
362
|
|
|
364
363
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:10}}>
|
|
365
|
-
<react_native_1.View style={{width:32,height:32,borderRadius:8,backgroundColor:
|
|
366
|
-
<NetworkIcons_1.SignalIcon color={
|
|
364
|
+
<react_native_1.View style={{width:32,height:32,borderRadius:8,backgroundColor:d?`${AppColors_1.AppColors.purple}14`:AppColors_1.AppColors.grayBackground,alignItems:"center",justifyContent:"center"}}>
|
|
365
|
+
<NetworkIcons_1.SignalIcon color={d?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}size={15}/>
|
|
367
366
|
</react_native_1.View>
|
|
368
367
|
<react_native_1.View style={{flex:1}}>
|
|
369
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:13.5,lineHeight:18,color:
|
|
368
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:13.5,lineHeight:18,color:d?AppColors_1.AppColors.primaryBlack:AppColors_1.AppColors.grayText}}>
|
|
370
369
|
Detected Available RAM
|
|
371
370
|
</react_native_1.Text>
|
|
372
371
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:11,lineHeight:15,color:AppColors_1.AppColors.grayText,marginTop:1}}>
|
|
373
|
-
{
|
|
372
|
+
{D} MB available on device
|
|
374
373
|
</react_native_1.Text>
|
|
375
374
|
</react_native_1.View>
|
|
376
|
-
<react_native_1.View style={{paddingHorizontal:10,paddingVertical:5,borderRadius:8,backgroundColor:
|
|
377
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12,lineHeight:15,color:
|
|
378
|
-
{
|
|
375
|
+
<react_native_1.View style={{paddingHorizontal:10,paddingVertical:5,borderRadius:8,backgroundColor:d?`${AppColors_1.AppColors.purple}12`:AppColors_1.AppColors.grayBackground,borderWidth:1,borderColor:d?`${AppColors_1.AppColors.purple}26`:AppColors_1.AppColors.dividerColor}}>
|
|
376
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12,lineHeight:15,color:d?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayText}}>
|
|
377
|
+
{D} MB
|
|
379
378
|
</react_native_1.Text>
|
|
380
379
|
</react_native_1.View>
|
|
381
380
|
</react_native_1.View>
|
|
@@ -384,17 +383,17 @@
|
|
|
384
383
|
<react_native_1.View style={{marginTop:4,paddingTop:8,borderTopWidth:1,borderTopColor:AppColors_1.AppColors.dividerColor,gap:6}}>
|
|
385
384
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between"}}>
|
|
386
385
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11.5,lineHeight:15,color:AppColors_1.AppColors.purple}}>
|
|
387
|
-
Profile: {
|
|
386
|
+
Profile: {B.profileName}
|
|
388
387
|
</react_native_1.Text>
|
|
389
|
-
<react_native_1.View style={{backgroundColor:
|
|
390
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,color:
|
|
391
|
-
{
|
|
388
|
+
<react_native_1.View style={{backgroundColor:d?`${AppColors_1.AppColors.emerald500}18`:`${AppColors_1.AppColors.purple}18`,paddingHorizontal:7,paddingVertical:2.5,borderRadius:4}}>
|
|
389
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,color:d?AppColors_1.AppColors.emerald500:AppColors_1.AppColors.purple}}>
|
|
390
|
+
{d?"AUTO-TUNED":"MANUAL"}
|
|
392
391
|
</react_native_1.Text>
|
|
393
392
|
</react_native_1.View>
|
|
394
393
|
</react_native_1.View>
|
|
395
394
|
|
|
396
395
|
<react_native_1.View style={{flexDirection:"row",flexWrap:"wrap",gap:8,marginTop:4}}>
|
|
397
|
-
{[{label:"
|
|
396
|
+
{[{label:"Logs",value:d?B.maxConsoleLogs:H,color:AppColors_1.AppColors.sky500},{label:"Analytics",value:d?B.maxAnalyticsEvents:j,color:AppColors_1.AppColors.purple},{label:"Crash",value:d?B.maxCrashRecords:U,color:AppColors_1.AppColors.errorColor}].map(e=><react_native_1.View key={e.label}style={{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:8,paddingVertical:4,borderRadius:6,backgroundColor:`${e.color}14`,borderWidth:1,borderColor:`${e.color}33`}}>
|
|
398
397
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,lineHeight:14,color:e.color}}>
|
|
399
398
|
{e.label}:
|
|
400
399
|
</react_native_1.Text>
|
|
@@ -453,7 +452,7 @@
|
|
|
453
452
|
</react_native_1.View>
|
|
454
453
|
</react_native_1.View>
|
|
455
454
|
</react_native_1.View>}
|
|
456
|
-
{
|
|
455
|
+
{n==="capture"&&<react_native_1.View style={{gap:12}}>
|
|
457
456
|
|
|
458
457
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,padding:16,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,gap:12}}>
|
|
459
458
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:10}}>
|
|
@@ -470,19 +469,19 @@
|
|
|
470
469
|
</react_native_1.View>
|
|
471
470
|
</react_native_1.View>
|
|
472
471
|
|
|
473
|
-
{
|
|
474
|
-
{["PNG","JPEG","WEBP"].map(e
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
472
|
+
{l({icon:<NetworkIcons_1.ImageIcon color={AppColors_1.AppColors.purple}size={16}/>,label:o("settings.media.imageFormat","Image Format"),description:o("settings.media.imageFormatDesc","Export formats (PNG lossless, JPEG lossy, WebP)"),right:<react_native_1.View style={{flexDirection:"row",gap:5}}>
|
|
473
|
+
{["PNG","JPEG","WEBP"].map(e=>{const r=P===e;return<TouchableScale_1.default key={e}onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),K(e),(0,toast_1.showToast)(`Screenshot format: ${e}`)}}style={{paddingHorizontal:9,paddingVertical:5,borderRadius:7,backgroundColor:r?AppColors_1.AppColors.purple:`${AppColors_1.AppColors.purple}14`,borderWidth:1,borderColor:r?AppColors_1.AppColors.purple:`${AppColors_1.AppColors.purple}2E`}}>
|
|
474
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:r?AppColors_1.AppColors.white:AppColors_1.AppColors.purple}}>
|
|
475
|
+
{e}
|
|
476
|
+
</react_native_1.Text>
|
|
477
|
+
</TouchableScale_1.default>})}
|
|
479
478
|
</react_native_1.View>})}
|
|
480
479
|
|
|
481
|
-
{
|
|
482
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10,color:AppColors_1.AppColors.emerald500}}>
|
|
483
|
-
{o("settings.media.enabled","ON")}
|
|
480
|
+
{l({icon:<NetworkIcons_1.EyeIcon color={AppColors_1.AppColors.purple}size={16}/>,label:o("settings.media.autoHide","Auto-Hide Inspector During Capture"),description:o("settings.media.autoHideDesc","Temporarily hides the inspector overlay during screen capture"),isLast:!0,onPress:()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),k(e=>!e),(0,toast_1.showToast)(`Auto-hide overlay: ${h?"OFF":"ON"}`)},right:<TouchableScale_1.default onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),k(e=>!e),(0,toast_1.showToast)(`Auto-hide overlay: ${h?"OFF":"ON"}`)}}style={{paddingHorizontal:10,paddingVertical:5,borderRadius:7,backgroundColor:h?`${AppColors_1.AppColors.emerald500}26`:`${AppColors_1.AppColors.grayText}20`,borderWidth:1,borderColor:h?`${AppColors_1.AppColors.emerald500}4D`:`${AppColors_1.AppColors.grayText}33`}}>
|
|
481
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:h?AppColors_1.AppColors.emerald500:AppColors_1.AppColors.grayText}}>
|
|
482
|
+
{h?o("settings.media.enabled","ON"):"OFF"}
|
|
484
483
|
</react_native_1.Text>
|
|
485
|
-
</
|
|
484
|
+
</TouchableScale_1.default>})}
|
|
486
485
|
</react_native_1.View>
|
|
487
486
|
|
|
488
487
|
|
|
@@ -501,32 +500,32 @@
|
|
|
501
500
|
</react_native_1.View>
|
|
502
501
|
</react_native_1.View>
|
|
503
502
|
|
|
504
|
-
{
|
|
505
|
-
{["Muted","App","Mic"].map(
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
503
|
+
{l({icon:<NetworkIcons_1.MicrophoneIcon color={AppColors_1.AppColors.purple}size={16}/>,label:o("settings.media.audioMode","Audio Source"),description:o("settings.media.audioModeDesc","Record video with muted, app audio, or microphone commentary"),right:<react_native_1.View style={{flexDirection:"row",gap:5}}>
|
|
504
|
+
{["Muted","App","Mic"].map(e=>{const r=Q===e;return<TouchableScale_1.default key={e}onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),X(e),(0,toast_1.showToast)(`Audio source: ${e}`)}}style={{paddingHorizontal:8,paddingVertical:5,borderRadius:7,backgroundColor:r?AppColors_1.AppColors.purple:`${AppColors_1.AppColors.purple}14`,borderWidth:1,borderColor:r?AppColors_1.AppColors.purple:`${AppColors_1.AppColors.purple}2E`}}>
|
|
505
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:r?AppColors_1.AppColors.white:AppColors_1.AppColors.purple}}>
|
|
506
|
+
{e}
|
|
507
|
+
</react_native_1.Text>
|
|
508
|
+
</TouchableScale_1.default>})}
|
|
510
509
|
</react_native_1.View>})}
|
|
511
510
|
|
|
512
|
-
{
|
|
513
|
-
{["15","24","30","60"].map(e
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
511
|
+
{l({icon:<NetworkIcons_1.FilmIcon color={AppColors_1.AppColors.purple}size={16}/>,label:o("settings.media.frameRate","Recording Frame Rate (FPS)"),description:o("settings.media.frameRateDesc","Target video smoothness: 15, 24, 30, or 60 FPS"),right:<react_native_1.View style={{flexDirection:"row",gap:5}}>
|
|
512
|
+
{["15","24","30","60"].map(e=>{const r=Y===e;return<TouchableScale_1.default key={e}onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),Z(e),(0,toast_1.showToast)(`Recording FPS: ${e}`)}}style={{paddingHorizontal:7,paddingVertical:5,borderRadius:7,backgroundColor:r?AppColors_1.AppColors.purple:`${AppColors_1.AppColors.purple}14`,borderWidth:1,borderColor:r?AppColors_1.AppColors.purple:`${AppColors_1.AppColors.purple}2E`}}>
|
|
513
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:r?AppColors_1.AppColors.white:AppColors_1.AppColors.purple}}>
|
|
514
|
+
{e}fps
|
|
515
|
+
</react_native_1.Text>
|
|
516
|
+
</TouchableScale_1.default>})}
|
|
518
517
|
</react_native_1.View>})}
|
|
519
518
|
|
|
520
|
-
{
|
|
521
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10,color:AppColors_1.AppColors.emerald500}}>
|
|
522
|
-
ON
|
|
519
|
+
{l({icon:<NetworkIcons_1.GifIcon color={AppColors_1.AppColors.purple}size={16}/>,label:o("settings.media.gifAutoOpt","Auto GIF Optimization"),description:o("settings.media.gifAutoOptDesc","Automatic palette reduction and frame skip for lightweight animated GIFs"),isLast:!0,onPress:()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),F(e=>!e),(0,toast_1.showToast)(`GIF optimization: ${b?"OFF":"ON"}`)},right:<TouchableScale_1.default onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),F(e=>!e),(0,toast_1.showToast)(`GIF optimization: ${b?"OFF":"ON"}`)}}style={{paddingHorizontal:10,paddingVertical:5,borderRadius:7,backgroundColor:b?`${AppColors_1.AppColors.emerald500}26`:`${AppColors_1.AppColors.grayText}20`,borderWidth:1,borderColor:b?`${AppColors_1.AppColors.emerald500}4D`:`${AppColors_1.AppColors.grayText}33`}}>
|
|
520
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:b?AppColors_1.AppColors.emerald500:AppColors_1.AppColors.grayText}}>
|
|
521
|
+
{b?"ON":"OFF"}
|
|
523
522
|
</react_native_1.Text>
|
|
524
|
-
</
|
|
523
|
+
</TouchableScale_1.default>})}
|
|
525
524
|
</react_native_1.View>
|
|
526
525
|
|
|
527
526
|
|
|
528
527
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,padding:16}}>
|
|
529
|
-
{
|
|
528
|
+
{l({icon:<NetworkIcons_1.TrashIcon color={AppColors_1.AppColors.errorColor}size={16}/>,label:o("settings.media.purgeAll","Purge Captured Media Cache"),description:o("settings.media.purgeAllDesc","Delete all local screenshots, screen recordings and converted GIFs"),isLast:!0,onPress:()=>{react_native_1.Alert.alert(o("settings.media.purgeConfirmTitle","Purge Media Storage?"),o("settings.media.purgeConfirmMessage","This will permanently delete all captured screenshots and videos from disk."),[{text:o("common.cancel","Cancel"),style:"cancel"},{text:o("settings.media.purgeCacheBtn","Purge All"),style:"destructive",onPress:async()=>{await capture_1.ScreenCapture.clearAllMedia(),(0,toast_1.showToast)(o("settings.media.purgedSuccess","Media cache cleared successfully"))}}])},right:<react_native_1.View style={{paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:`${AppColors_1.AppColors.errorColor}14`,borderWidth:1,borderColor:`${AppColors_1.AppColors.errorColor}33`}}>
|
|
530
529
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,lineHeight:14,color:AppColors_1.AppColors.errorColor}}>
|
|
531
530
|
{o("settings.media.purgeCacheBtn","Purge All")}
|
|
532
531
|
</react_native_1.Text>
|
|
@@ -537,45 +536,42 @@
|
|
|
537
536
|
</react_native_1.ScrollView>
|
|
538
537
|
|
|
539
538
|
|
|
540
|
-
{
|
|
539
|
+
{n==="module"&&<react_native_1.View style={{paddingHorizontal:16,paddingTop:12,paddingBottom:react_native_1.Platform.OS==="ios"?36:24,backgroundColor:AppColors_1.AppColors.primaryLight,borderTopWidth:1,borderTopColor:AppColors_1.AppColors.dividerColor,flexDirection:"row",alignItems:"center",gap:12,shadowColor:AppColors_1.AppColors.black,shadowOpacity:.08,shadowRadius:8,shadowOffset:{width:0,height:-3},elevation:8}}>
|
|
541
540
|
<react_native_1.View style={{flex:1}}>
|
|
542
541
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:13,lineHeight:17,color:AppColors_1.AppColors.primaryBlack}}>
|
|
543
|
-
{
|
|
542
|
+
{Ve} of {A.length} Modules Active
|
|
544
543
|
</react_native_1.Text>
|
|
545
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:11,lineHeight:15,color:
|
|
546
|
-
{o(
|
|
544
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:11,lineHeight:15,color:x?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayText,marginTop:1}}>
|
|
545
|
+
{o(x?"settings.unsavedPending":"settings.allSynchronized")}
|
|
547
546
|
</react_native_1.Text>
|
|
548
547
|
</react_native_1.View>
|
|
549
548
|
|
|
550
|
-
<TouchableScale_1.default accessible={!0}accessibilityRole="button"accessibilityLabel="Save Changes"onPress={
|
|
551
|
-
<NetworkIcons_1.CheckIcon size={14}color={
|
|
552
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:13,lineHeight:17,color:
|
|
549
|
+
<TouchableScale_1.default accessible={!0}accessibilityRole="button"accessibilityLabel="Save Changes"onPress={Se}style={{flexDirection:"row",alignItems:"center",gap:6,backgroundColor:x?AppColors_1.AppColors.purple:`${AppColors_1.AppColors.purple}22`,paddingHorizontal:18,paddingVertical:10,borderRadius:10}}>
|
|
550
|
+
<NetworkIcons_1.CheckIcon size={14}color={x?AppColors_1.AppColors.white:AppColors_1.AppColors.purple}/>
|
|
551
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:13,lineHeight:17,color:x?AppColors_1.AppColors.white:AppColors_1.AppColors.purple}}>
|
|
553
552
|
{o("settings.saveChanges")}
|
|
554
553
|
</react_native_1.Text>
|
|
555
554
|
</TouchableScale_1.default>
|
|
556
555
|
</react_native_1.View>}
|
|
557
|
-
</react_native_1.View>;let
|
|
558
|
-
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,padding:16,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary}}>
|
|
559
|
-
{n({icon:<NetworkIcons_1.SignalIcon color={AppColors_1.AppColors.purple}size={16}/>,label:o("settings.apis.maxRequestLogs"),description:o("settings.apis.maxRequestLogsDescription"),numericInput:{value:D,onChange:le,min:10,max:100,placeholder:"Enter max requests (10-100)"},isLast:!0})}
|
|
560
|
-
</react_native_1.View>
|
|
556
|
+
</react_native_1.View>;let f=null;i==="apis"?f=<react_native_1.ScrollView style={{flex:1}}contentContainerStyle={{padding:16,paddingBottom:100,gap:12}}>
|
|
561
557
|
|
|
562
558
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,padding:16}}>
|
|
563
|
-
{
|
|
559
|
+
{l({icon:<NetworkIcons_1.TrashIcon color={AppColors_1.AppColors.errorColor}size={16}/>,label:o("settings.apis.clearNetworkLogs"),description:o("settings.apis.clearNetworkLogsDescription",{count:O.length}),isLast:!0,onPress:()=>{(0,networkLogger_1.clearNetworkLogs)(),be(null),react_native_1.Alert.alert(o("common.success"),o("settings.apis.networkLogsCleared"))},right:<react_native_1.View style={{paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:`${AppColors_1.AppColors.errorColor}14`,borderWidth:1,borderColor:`${AppColors_1.AppColors.errorColor}33`}}>
|
|
564
560
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,lineHeight:14,color:AppColors_1.AppColors.errorColor}}>
|
|
565
561
|
{o("common.clear")}
|
|
566
562
|
</react_native_1.Text>
|
|
567
563
|
</react_native_1.View>})}
|
|
568
564
|
</react_native_1.View>
|
|
569
565
|
<react_native_1.View style={{height:48}}/>
|
|
570
|
-
</react_native_1.ScrollView
|
|
566
|
+
</react_native_1.ScrollView>:i==="logs"?f=<react_native_1.ScrollView style={{flex:1}}contentContainerStyle={{padding:16,paddingBottom:100,gap:12}}>
|
|
571
567
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,padding:16,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,gap:4}}>
|
|
572
|
-
{
|
|
568
|
+
{l({icon:<NetworkIcons_1.TerminalIcon color={AppColors_1.AppColors.purple}size={16}/>,label:o("settings.logs.maxConsoleLogs"),description:o("settings.logs.maxConsoleLogsDescription"),numericInput:{value:H,onChange:ue,min:10,max:100,placeholder:"Enter max logs (10-100)"}})}
|
|
573
569
|
<react_native_1.View style={{height:1,backgroundColor:AppColors_1.AppColors.dividerColor}}/>
|
|
574
570
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:13,lineHeight:17,color:AppColors_1.AppColors.primaryBlack,paddingTop:6}}>
|
|
575
571
|
{o("settings.logs.logLevels")}
|
|
576
572
|
</react_native_1.Text>
|
|
577
|
-
{["info","warn","error"].map(e=>{const
|
|
578
|
-
{
|
|
573
|
+
{["info","warn","error"].map(e=>{const r=ce?.[e],C=e==="error"?AppColors_1.AppColors.errorColor:e==="warn"?AppColors_1.AppColors.warningIconGold:AppColors_1.AppColors.skyBlue,c=o(e==="info"?"settings.logs.showInfo":e==="warn"?"settings.logs.showWarn":"settings.logs.showError"),w=o(e==="info"?"settings.logs.showInfoDesc":e==="warn"?"settings.logs.showWarnDesc":"settings.logs.showErrorDesc");return l({icon:<react_native_1.View style={{width:12,height:12,borderRadius:6,backgroundColor:C}}/>,label:c,description:w,isLast:e==="error",onPress:()=>de(a=>({...a,[e]:!a[e]})),right:<react_native_1.View style={{width:22,height:22,borderRadius:6,borderWidth:2,borderColor:r?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak,backgroundColor:r?`${AppColors_1.AppColors.purple}1A`:"transparent",alignItems:"center",justifyContent:"center"}}>
|
|
574
|
+
{r&&<NetworkIcons_1.CheckIcon size={12}color={AppColors_1.AppColors.purple}/>}
|
|
579
575
|
</react_native_1.View>})})}
|
|
580
576
|
</react_native_1.View>
|
|
581
577
|
|
|
@@ -601,54 +597,54 @@
|
|
|
601
597
|
</react_native_1.View>
|
|
602
598
|
</react_native_1.View>
|
|
603
599
|
|
|
604
|
-
<TouchableScale_1.default accessible={!0}accessibilityRole="switch"accessibilityLabel="Toggle show duplicate logs"accessibilityState={{checked:
|
|
600
|
+
<TouchableScale_1.default accessible={!0}accessibilityRole="switch"accessibilityLabel="Toggle show duplicate logs"accessibilityState={{checked:R}}onPress={()=>se(e=>!e)}style={{width:42,height:24,borderRadius:12,backgroundColor:R?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayBorderSecondary,padding:2,justifyContent:"center",alignItems:R?"flex-end":"flex-start"}}>
|
|
605
601
|
<react_native_1.View style={{width:20,height:20,borderRadius:10,backgroundColor:AppColors_1.AppColors.white,shadowColor:AppColors_1.AppColors.black,shadowOpacity:.18,shadowRadius:2,shadowOffset:{width:0,height:1}}}/>
|
|
606
602
|
</TouchableScale_1.default>
|
|
607
603
|
</react_native_1.View>
|
|
608
604
|
</react_native_1.View>
|
|
609
605
|
|
|
610
606
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,padding:16}}>
|
|
611
|
-
{
|
|
607
|
+
{l({icon:<NetworkIcons_1.TrashIcon color={AppColors_1.AppColors.errorColor}size={16}/>,label:o("settings.logs.clearConsoleLogs"),description:o("settings.logs.clearConsoleLogsDescription",{count:M.length}),isLast:!0,onPress:()=>{(0,consoleLogger_1.clearConsoleLogs)(),react_native_1.Alert.alert(o("common.success"),o("settings.logs.consoleLogsCleared"))},right:<react_native_1.View style={{paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:`${AppColors_1.AppColors.errorColor}14`,borderWidth:1,borderColor:`${AppColors_1.AppColors.errorColor}33`}}>
|
|
612
608
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,lineHeight:14,color:AppColors_1.AppColors.errorColor}}>
|
|
613
609
|
{o("common.clear")}
|
|
614
610
|
</react_native_1.Text>
|
|
615
611
|
</react_native_1.View>})}
|
|
616
612
|
</react_native_1.View>
|
|
617
613
|
<react_native_1.View style={{height:48}}/>
|
|
618
|
-
</react_native_1.ScrollView
|
|
614
|
+
</react_native_1.ScrollView>:i==="analytics"?f=<react_native_1.ScrollView style={{flex:1}}contentContainerStyle={{padding:16,paddingBottom:100,gap:12}}>
|
|
619
615
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,padding:16,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary}}>
|
|
620
|
-
{
|
|
616
|
+
{l({icon:<NetworkIcons_1.AnalyticsIcon color={AppColors_1.AppColors.purple}size={16}/>,label:o("settings.analytics.maxAnalyticsEvents"),description:o("settings.analytics.maxAnalyticsEventsDescription",{count:E.length}),numericInput:{value:j,onChange:ye,min:10,max:75,placeholder:"Enter max events (10-75)"},isLast:!0})}
|
|
621
617
|
</react_native_1.View>
|
|
622
618
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,padding:16}}>
|
|
623
|
-
{
|
|
619
|
+
{l({icon:<NetworkIcons_1.TrashIcon color={AppColors_1.AppColors.errorColor}size={16}/>,label:o("settings.analytics.clearAnalyticsEvents"),description:o("settings.analytics.clearAnalyticsEventsDescription"),isLast:!0,onPress:()=>{(0,analyticsLogger_1.clearAnalyticsEvents)(),we(null),react_native_1.Alert.alert(o("common.success"),o("settings.analytics.analyticsEventsCleared"))},right:<react_native_1.View style={{paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:`${AppColors_1.AppColors.errorColor}14`,borderWidth:1,borderColor:`${AppColors_1.AppColors.errorColor}33`}}>
|
|
624
620
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,lineHeight:14,color:AppColors_1.AppColors.errorColor}}>
|
|
625
621
|
{o("common.clear")}
|
|
626
622
|
</react_native_1.Text>
|
|
627
623
|
</react_native_1.View>})}
|
|
628
624
|
</react_native_1.View>
|
|
629
625
|
<react_native_1.View style={{height:48}}/>
|
|
630
|
-
</react_native_1.ScrollView
|
|
626
|
+
</react_native_1.ScrollView>:i==="redux"?f=<react_native_1.ScrollView style={{flex:1}}contentContainerStyle={{padding:16,paddingBottom:100,gap:12}}>
|
|
631
627
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,padding:16,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,gap:4}}>
|
|
632
|
-
{
|
|
633
|
-
{
|
|
628
|
+
{l({icon:<NetworkIcons_1.ReduxIcon color={AppColors_1.AppColors.purple}size={16}/>,label:o("settings.redux.autoRefresh"),description:o("settings.redux.autoRefreshDescription"),onPress:()=>he(e=>!e),right:<react_native_1.View style={{width:22,height:22,borderRadius:6,borderWidth:2,borderColor:L?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak,backgroundColor:L?`${AppColors_1.AppColors.purple}1A`:"transparent",alignItems:"center",justifyContent:"center"}}>
|
|
629
|
+
{L&&<NetworkIcons_1.CheckIcon size={12}color={AppColors_1.AppColors.purple}/>}
|
|
634
630
|
</react_native_1.View>})}
|
|
635
631
|
<react_native_1.View style={{height:1,backgroundColor:AppColors_1.AppColors.dividerColor}}/>
|
|
636
|
-
{
|
|
632
|
+
{l({icon:<NetworkIcons_1.LayersIcon color={AppColors_1.AppColors.purple}size={16}/>,label:o("settings.redux.defaultJsonExpandDepth"),description:o("settings.redux.defaultJsonExpandDepthDescription"),picker:{options:[1,2,3,5],selectedValue:G,onSelect:Ae},isLast:!0})}
|
|
637
633
|
</react_native_1.View>
|
|
638
634
|
|
|
639
635
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,padding:16}}>
|
|
640
|
-
{
|
|
636
|
+
{l({icon:<NetworkIcons_1.TrashIcon color={AppColors_1.AppColors.errorColor}size={16}/>,label:o("settings.redux.clearReduxState"),description:o(N?"settings.redux.clearReduxStateDescription":"settings.redux.clearReduxStateEmpty"),isLast:!0,onPress:()=>{fe(null),react_native_1.Alert.alert(o("common.success"),o("settings.redux.reduxStateCleared"))},right:<react_native_1.View style={{paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:`${AppColors_1.AppColors.errorColor}14`,borderWidth:1,borderColor:`${AppColors_1.AppColors.errorColor}33`}}>
|
|
641
637
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,lineHeight:14,color:AppColors_1.AppColors.errorColor}}>
|
|
642
638
|
{o("common.clear")}
|
|
643
639
|
</react_native_1.Text>
|
|
644
640
|
</react_native_1.View>})}
|
|
645
641
|
</react_native_1.View>
|
|
646
642
|
<react_native_1.View style={{height:48}}/>
|
|
647
|
-
</react_native_1.ScrollView
|
|
643
|
+
</react_native_1.ScrollView>:i==="crash"?f=<react_native_1.ScrollView style={{flex:1}}contentContainerStyle={{padding:16,paddingBottom:100,gap:12}}>
|
|
648
644
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,padding:16,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,gap:4}}>
|
|
649
|
-
{
|
|
645
|
+
{l({icon:<NetworkIcons_1.LayersIcon color={AppColors_1.AppColors.purple}size={16}/>,label:o("settings.crash.maxCrashLogs"),description:o("settings.crash.maxCrashLogsDesc"),numericInput:{value:U,onChange:_e,min:5,max:50,placeholder:"Enter max crashes (5-50)"}})}
|
|
650
646
|
<react_native_1.View style={{height:1,backgroundColor:AppColors_1.AppColors.dividerColor}}/>
|
|
651
|
-
{
|
|
647
|
+
{l({icon:<NetworkIcons_1.ShieldAlertIcon color={AppColors_1.AppColors.greenColor}size={16}/>,label:o("settings.crash.globalGuard"),description:o("settings.crash.globalGuardDesc"),isLast:!0,right:<react_native_1.View style={{paddingHorizontal:8,paddingVertical:4,borderRadius:6,backgroundColor:`${AppColors_1.AppColors.greenColor}1F`}}>
|
|
652
648
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10,lineHeight:13,color:AppColors_1.AppColors.greenColor}}>
|
|
653
649
|
{o("settings.protectedBadge")}
|
|
654
650
|
</react_native_1.Text>
|
|
@@ -656,71 +652,171 @@
|
|
|
656
652
|
</react_native_1.View>
|
|
657
653
|
|
|
658
654
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,padding:16}}>
|
|
659
|
-
{
|
|
655
|
+
{l({icon:<NetworkIcons_1.TrashIcon color={AppColors_1.AppColors.errorColor}size={16}/>,label:o("settings.crash.clearHistory"),description:o("settings.crash.clearHistoryDesc",{count:q?.length||0}),isLast:!0,onPress:()=>{(0,crashHandler_1.clearCrashRecords)(),react_native_1.Alert.alert(o("common.success"),o("settings.crash.historyCleared"))},right:<react_native_1.View style={{paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:`${AppColors_1.AppColors.errorColor}14`,borderWidth:1,borderColor:`${AppColors_1.AppColors.errorColor}33`}}>
|
|
660
656
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,lineHeight:14,color:AppColors_1.AppColors.errorColor}}>
|
|
661
657
|
{o("common.clear")}
|
|
662
658
|
</react_native_1.Text>
|
|
663
659
|
</react_native_1.View>})}
|
|
664
660
|
</react_native_1.View>
|
|
665
661
|
<react_native_1.View style={{height:48}}/>
|
|
666
|
-
</react_native_1.ScrollView
|
|
662
|
+
</react_native_1.ScrollView>:i==="push"?f=<react_native_1.ScrollView style={{flex:1}}contentContainerStyle={{padding:16,paddingBottom:100,gap:12}}>
|
|
663
|
+
|
|
664
|
+
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,padding:16,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,gap:4}}>
|
|
665
|
+
{l({icon:<NetworkIcons_1.LayersIcon color={AppColors_1.AppColors.purple}size={16}/>,label:"Max Push Notification Logs",description:"Buffer size limit for recorded push payloads (10-200)",numericInput:{value:xe,onChange:Te,min:10,max:200,placeholder:"Enter max logs (10-200)"}})}
|
|
666
|
+
<react_native_1.View style={{height:1,backgroundColor:AppColors_1.AppColors.dividerColor}}/>
|
|
667
|
+
{l({icon:<NetworkIcons_1.BellIcon color={AppColors_1.AppColors.greenColor}size={16}/>,label:"Universal Ingestion Engine",description:"Captures any push domain (Salesforce, FCM, APNs, Expo, Braze, Custom)",isLast:!0,right:<react_native_1.View style={{paddingHorizontal:8,paddingVertical:4,borderRadius:6,backgroundColor:`${AppColors_1.AppColors.greenColor}1F`}}>
|
|
668
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10,lineHeight:13,color:AppColors_1.AppColors.greenColor}}>
|
|
669
|
+
ACTIVE
|
|
670
|
+
</react_native_1.Text>
|
|
671
|
+
</react_native_1.View>})}
|
|
672
|
+
</react_native_1.View>
|
|
673
|
+
|
|
674
|
+
|
|
667
675
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,padding:16,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,gap:8}}>
|
|
668
|
-
<react_native_1.
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
676
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12,color:AppColors_1.AppColors.primaryBlack,marginBottom:4}}>
|
|
677
|
+
⚡ SIMULATE TEST PUSH NOTIFICATIONS
|
|
678
|
+
</react_native_1.Text>
|
|
679
|
+
|
|
680
|
+
<react_native_1.View style={{flexDirection:"row",flexWrap:"wrap",gap:6}}>
|
|
681
|
+
<TouchableScale_1.default onPress={()=>{V("salesforce"),(0,toast_1.showToast)("Simulated Salesforce Marketing Cloud push")}}style={{backgroundColor:`${AppColors_1.AppColors.sky600}14`,borderColor:`${AppColors_1.AppColors.sky600}33`,borderWidth:1,paddingHorizontal:10,paddingVertical:6,borderRadius:8}}>
|
|
682
|
+
<react_native_1.Text style={{fontSize:11,fontFamily:AppFonts_1.AppFonts.interSemiBold,color:AppColors_1.AppColors.sky600}}>
|
|
683
|
+
+ Salesforce MC
|
|
675
684
|
</react_native_1.Text>
|
|
676
|
-
|
|
677
|
-
|
|
685
|
+
</TouchableScale_1.default>
|
|
686
|
+
|
|
687
|
+
<TouchableScale_1.default onPress={()=>{V("fcm"),(0,toast_1.showToast)("Simulated Firebase FCM push")}}style={{backgroundColor:`${AppColors_1.AppColors.darkOrange}14`,borderColor:`${AppColors_1.AppColors.darkOrange}33`,borderWidth:1,paddingHorizontal:10,paddingVertical:6,borderRadius:8}}>
|
|
688
|
+
<react_native_1.Text style={{fontSize:11,fontFamily:AppFonts_1.AppFonts.interSemiBold,color:AppColors_1.AppColors.darkOrange}}>
|
|
689
|
+
+ Firebase FCM
|
|
678
690
|
</react_native_1.Text>
|
|
679
|
-
</
|
|
691
|
+
</TouchableScale_1.default>
|
|
692
|
+
|
|
693
|
+
<TouchableScale_1.default onPress={()=>{V("apns"),(0,toast_1.showToast)("Simulated Apple APNs push")}}style={{backgroundColor:`${AppColors_1.AppColors.primaryBlack}10`,borderColor:`${AppColors_1.AppColors.primaryBlack}25`,borderWidth:1,paddingHorizontal:10,paddingVertical:6,borderRadius:8}}>
|
|
694
|
+
<react_native_1.Text style={{fontSize:11,fontFamily:AppFonts_1.AppFonts.interSemiBold,color:AppColors_1.AppColors.primaryBlack}}>
|
|
695
|
+
+ Apple APNs
|
|
696
|
+
</react_native_1.Text>
|
|
697
|
+
</TouchableScale_1.default>
|
|
698
|
+
|
|
699
|
+
<TouchableScale_1.default onPress={()=>{V("deeplink"),(0,toast_1.showToast)("Simulated Deep Link push")}}style={{backgroundColor:`${AppColors_1.AppColors.brandPurple}14`,borderColor:`${AppColors_1.AppColors.brandPurple}33`,borderWidth:1,paddingHorizontal:10,paddingVertical:6,borderRadius:8}}>
|
|
700
|
+
<react_native_1.Text style={{fontSize:11,fontFamily:AppFonts_1.AppFonts.interSemiBold,color:AppColors_1.AppColors.brandPurple}}>
|
|
701
|
+
+ Deep Link
|
|
702
|
+
</react_native_1.Text>
|
|
703
|
+
</TouchableScale_1.default>
|
|
680
704
|
</react_native_1.View>
|
|
681
705
|
</react_native_1.View>
|
|
682
706
|
|
|
707
|
+
|
|
683
708
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,padding:16}}>
|
|
684
|
-
{
|
|
709
|
+
{l({icon:<NetworkIcons_1.TrashIcon color={AppColors_1.AppColors.errorColor}size={16}/>,label:"Clear Push History",description:`Permanently remove all ${me?.length||0} recorded notifications`,isLast:!0,onPress:()=>{ve(),react_native_1.Alert.alert("Success","Push notification history cleared")},right:<react_native_1.View style={{paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:`${AppColors_1.AppColors.errorColor}14`,borderWidth:1,borderColor:`${AppColors_1.AppColors.errorColor}33`}}>
|
|
685
710
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,lineHeight:14,color:AppColors_1.AppColors.errorColor}}>
|
|
686
711
|
{o("common.clear")}
|
|
687
712
|
</react_native_1.Text>
|
|
688
713
|
</react_native_1.View>})}
|
|
689
714
|
</react_native_1.View>
|
|
690
715
|
<react_native_1.View style={{height:48}}/>
|
|
691
|
-
</react_native_1.ScrollView
|
|
716
|
+
</react_native_1.ScrollView>:i==="media"&&(f=<react_native_1.ScrollView style={{flex:1}}contentContainerStyle={{padding:16,paddingBottom:100,gap:12}}>
|
|
717
|
+
|
|
692
718
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,padding:16,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,gap:8}}>
|
|
719
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12,color:AppColors_1.AppColors.primaryBlack,marginBottom:4}}>
|
|
720
|
+
⚡ DIRECT CAPTURE SHORTCUTS
|
|
721
|
+
</react_native_1.Text>
|
|
722
|
+
|
|
723
|
+
<react_native_1.View style={{flexDirection:"row",flexWrap:"wrap",gap:8}}>
|
|
724
|
+
<TouchableScale_1.default onPress={async()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),await capture_1.ScreenCapture.takeScreenshot({format:P.toLowerCase(),quality:.9,hideInspector:h})&&((0,NativeInspector_1.triggerNativeHaptic)("success"),(0,toast_1.showToast)("Screenshot captured and saved!"))}}style={{backgroundColor:`${AppColors_1.AppColors.purple}14`,borderColor:`${AppColors_1.AppColors.purple}33`,borderWidth:1,paddingHorizontal:12,paddingVertical:7,borderRadius:8,flexDirection:"row",alignItems:"center",gap:6}}>
|
|
725
|
+
<NetworkIcons_1.CameraIcon color={AppColors_1.AppColors.purple}size={14}/>
|
|
726
|
+
<react_native_1.Text style={{fontSize:11,fontFamily:AppFonts_1.AppFonts.interBold,color:AppColors_1.AppColors.purple}}>
|
|
727
|
+
Take Screenshot
|
|
728
|
+
</react_native_1.Text>
|
|
729
|
+
</TouchableScale_1.default>
|
|
730
|
+
</react_native_1.View>
|
|
731
|
+
</react_native_1.View>
|
|
732
|
+
|
|
733
|
+
|
|
734
|
+
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,padding:16,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,gap:12}}>
|
|
693
735
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:10}}>
|
|
694
736
|
<react_native_1.View style={{width:36,height:36,borderRadius:10,backgroundColor:AppColors_1.AppColors.purpleShade50,alignItems:"center",justifyContent:"center"}}>
|
|
695
|
-
<NetworkIcons_1.
|
|
737
|
+
<NetworkIcons_1.CameraIcon color={AppColors_1.AppColors.purple}size={16}/>
|
|
696
738
|
</react_native_1.View>
|
|
697
739
|
<react_native_1.View style={{flex:1}}>
|
|
698
740
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:14,lineHeight:18,color:AppColors_1.AppColors.primaryBlack}}>
|
|
699
|
-
{o("settings.
|
|
741
|
+
{o("settings.media.screenshotCardTitle","Screenshot Capture Settings")}
|
|
700
742
|
</react_native_1.Text>
|
|
701
743
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:11,lineHeight:15,color:AppColors_1.AppColors.grayText,marginTop:1}}>
|
|
702
|
-
{o("settings.
|
|
744
|
+
{o("settings.media.screenshotCardDesc","Image encoding format, compression quality and overlay auto-hide")}
|
|
703
745
|
</react_native_1.Text>
|
|
704
746
|
</react_native_1.View>
|
|
705
747
|
</react_native_1.View>
|
|
748
|
+
|
|
749
|
+
{l({icon:<NetworkIcons_1.ImageIcon color={AppColors_1.AppColors.purple}size={16}/>,label:o("settings.media.imageFormat","Image Format"),description:o("settings.media.imageFormatDesc","Export formats (PNG lossless, JPEG lossy, WebP)"),right:<react_native_1.View style={{flexDirection:"row",gap:5}}>
|
|
750
|
+
{["PNG","JPEG","WEBP"].map(e=>{const r=P===e;return<TouchableScale_1.default key={e}onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),K(e),(0,toast_1.showToast)(`Screenshot format: ${e}`)}}style={{paddingHorizontal:9,paddingVertical:5,borderRadius:7,backgroundColor:r?AppColors_1.AppColors.purple:`${AppColors_1.AppColors.purple}14`,borderWidth:1,borderColor:r?AppColors_1.AppColors.purple:`${AppColors_1.AppColors.purple}2E`}}>
|
|
751
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:r?AppColors_1.AppColors.white:AppColors_1.AppColors.purple}}>
|
|
752
|
+
{e}
|
|
753
|
+
</react_native_1.Text>
|
|
754
|
+
</TouchableScale_1.default>})}
|
|
755
|
+
</react_native_1.View>})}
|
|
756
|
+
|
|
757
|
+
{l({icon:<NetworkIcons_1.EyeIcon color={AppColors_1.AppColors.purple}size={16}/>,label:o("settings.media.autoHide","Auto-Hide Inspector During Capture"),description:o("settings.media.autoHideDesc","Temporarily hides the inspector overlay during screen capture"),isLast:!0,onPress:()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),k(e=>!e),(0,toast_1.showToast)(`Auto-hide overlay: ${h?"OFF":"ON"}`)},right:<TouchableScale_1.default onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),k(e=>!e),(0,toast_1.showToast)(`Auto-hide overlay: ${h?"OFF":"ON"}`)}}style={{paddingHorizontal:10,paddingVertical:5,borderRadius:7,backgroundColor:h?`${AppColors_1.AppColors.emerald500}26`:`${AppColors_1.AppColors.grayText}20`,borderWidth:1,borderColor:h?`${AppColors_1.AppColors.emerald500}4D`:`${AppColors_1.AppColors.grayText}33`}}>
|
|
758
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:h?AppColors_1.AppColors.emerald500:AppColors_1.AppColors.grayText}}>
|
|
759
|
+
{h?o("settings.media.enabled","ON"):"OFF"}
|
|
760
|
+
</react_native_1.Text>
|
|
761
|
+
</TouchableScale_1.default>})}
|
|
706
762
|
</react_native_1.View>
|
|
707
763
|
|
|
764
|
+
|
|
765
|
+
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,padding:16,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,gap:12}}>
|
|
766
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:10}}>
|
|
767
|
+
<react_native_1.View style={{width:36,height:36,borderRadius:10,backgroundColor:AppColors_1.AppColors.purpleShade50,alignItems:"center",justifyContent:"center"}}>
|
|
768
|
+
<NetworkIcons_1.VideoCameraIcon color={AppColors_1.AppColors.purple}size={16}/>
|
|
769
|
+
</react_native_1.View>
|
|
770
|
+
<react_native_1.View style={{flex:1}}>
|
|
771
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:14,lineHeight:18,color:AppColors_1.AppColors.primaryBlack}}>
|
|
772
|
+
{o("settings.media.videoCardTitle","Video Recording & GIF Conversion")}
|
|
773
|
+
</react_native_1.Text>
|
|
774
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:11,lineHeight:15,color:AppColors_1.AppColors.grayText,marginTop:1}}>
|
|
775
|
+
{o("settings.media.videoCardDesc","ReplayKit hardware encoding, frame capture fallback and GIF generation")}
|
|
776
|
+
</react_native_1.Text>
|
|
777
|
+
</react_native_1.View>
|
|
778
|
+
</react_native_1.View>
|
|
779
|
+
|
|
780
|
+
{l({icon:<NetworkIcons_1.MicrophoneIcon color={AppColors_1.AppColors.purple}size={16}/>,label:o("settings.media.audioMode","Audio Source"),description:o("settings.media.audioModeDesc","Record video with muted, app audio, or microphone commentary"),right:<react_native_1.View style={{flexDirection:"row",gap:5}}>
|
|
781
|
+
{["Muted","App","Mic"].map(e=>{const r=Q===e;return<TouchableScale_1.default key={e}onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),X(e),(0,toast_1.showToast)(`Audio source: ${e}`)}}style={{paddingHorizontal:8,paddingVertical:5,borderRadius:7,backgroundColor:r?AppColors_1.AppColors.purple:`${AppColors_1.AppColors.purple}14`,borderWidth:1,borderColor:r?AppColors_1.AppColors.purple:`${AppColors_1.AppColors.purple}2E`}}>
|
|
782
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:r?AppColors_1.AppColors.white:AppColors_1.AppColors.purple}}>
|
|
783
|
+
{e}
|
|
784
|
+
</react_native_1.Text>
|
|
785
|
+
</TouchableScale_1.default>})}
|
|
786
|
+
</react_native_1.View>})}
|
|
787
|
+
|
|
788
|
+
{l({icon:<NetworkIcons_1.FilmIcon color={AppColors_1.AppColors.purple}size={16}/>,label:o("settings.media.frameRate","Recording Frame Rate (FPS)"),description:o("settings.media.frameRateDesc","Target video smoothness: 15, 24, 30, or 60 FPS"),right:<react_native_1.View style={{flexDirection:"row",gap:5}}>
|
|
789
|
+
{["15","24","30","60"].map(e=>{const r=Y===e;return<TouchableScale_1.default key={e}onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),Z(e),(0,toast_1.showToast)(`Recording FPS: ${e}`)}}style={{paddingHorizontal:7,paddingVertical:5,borderRadius:7,backgroundColor:r?AppColors_1.AppColors.purple:`${AppColors_1.AppColors.purple}14`,borderWidth:1,borderColor:r?AppColors_1.AppColors.purple:`${AppColors_1.AppColors.purple}2E`}}>
|
|
790
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:r?AppColors_1.AppColors.white:AppColors_1.AppColors.purple}}>
|
|
791
|
+
{e}fps
|
|
792
|
+
</react_native_1.Text>
|
|
793
|
+
</TouchableScale_1.default>})}
|
|
794
|
+
</react_native_1.View>})}
|
|
795
|
+
|
|
796
|
+
{l({icon:<NetworkIcons_1.GifIcon color={AppColors_1.AppColors.purple}size={16}/>,label:o("settings.media.gifAutoOpt","Auto GIF Optimization"),description:o("settings.media.gifAutoOptDesc","Automatic palette reduction and frame skip for lightweight animated GIFs"),isLast:!0,onPress:()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),F(e=>!e),(0,toast_1.showToast)(`GIF optimization: ${b?"OFF":"ON"}`)},right:<TouchableScale_1.default onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),F(e=>!e),(0,toast_1.showToast)(`GIF optimization: ${b?"OFF":"ON"}`)}}style={{paddingHorizontal:10,paddingVertical:5,borderRadius:7,backgroundColor:b?`${AppColors_1.AppColors.emerald500}26`:`${AppColors_1.AppColors.grayText}20`,borderWidth:1,borderColor:b?`${AppColors_1.AppColors.emerald500}4D`:`${AppColors_1.AppColors.grayText}33`}}>
|
|
797
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:b?AppColors_1.AppColors.emerald500:AppColors_1.AppColors.grayText}}>
|
|
798
|
+
{b?"ON":"OFF"}
|
|
799
|
+
</react_native_1.Text>
|
|
800
|
+
</TouchableScale_1.default>})}
|
|
801
|
+
</react_native_1.View>
|
|
802
|
+
|
|
803
|
+
|
|
708
804
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,padding:16}}>
|
|
709
|
-
{
|
|
805
|
+
{l({icon:<NetworkIcons_1.TrashIcon color={AppColors_1.AppColors.errorColor}size={16}/>,label:o("settings.media.purgeAll","Purge Captured Media Cache"),description:o("settings.media.purgeAllDesc","Delete all local screenshots, screen recordings and converted GIFs"),isLast:!0,onPress:()=>{react_native_1.Alert.alert(o("settings.media.purgeConfirmTitle","Purge Media Storage?"),o("settings.media.purgeConfirmMessage","This will permanently delete all captured screenshots and videos from disk."),[{text:o("common.cancel","Cancel"),style:"cancel"},{text:o("settings.media.purgeCacheBtn","Purge All"),style:"destructive",onPress:async()=>{await capture_1.ScreenCapture.clearAllMedia(),(0,toast_1.showToast)(o("settings.media.purgedSuccess","Media cache cleared successfully"))}}])},right:<react_native_1.View style={{paddingHorizontal:12,paddingVertical:6,borderRadius:8,backgroundColor:`${AppColors_1.AppColors.errorColor}14`,borderWidth:1,borderColor:`${AppColors_1.AppColors.errorColor}33`}}>
|
|
710
806
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,lineHeight:14,color:AppColors_1.AppColors.errorColor}}>
|
|
711
|
-
{o("
|
|
807
|
+
{o("settings.media.purgeCacheBtn","Purge All")}
|
|
712
808
|
</react_native_1.Text>
|
|
713
809
|
</react_native_1.View>})}
|
|
714
810
|
</react_native_1.View>
|
|
715
811
|
<react_native_1.View style={{height:48}}/>
|
|
716
|
-
</react_native_1.ScrollView>);const
|
|
812
|
+
</react_native_1.ScrollView>);const z=(0,react_1.useRef)(new react_native_1.Animated.Value(0)).current;return(0,react_1.useEffect)(()=>{i!=="main"&&(z.setValue(0),react_native_1.Animated.spring(z,{toValue:1,friction:8,tension:65,useNativeDriver:!0}).start())},[i]),<react_native_1.View style={{flex:1,backgroundColor:AppColors_1.AppColors.grayBackground}}>
|
|
717
813
|
|
|
718
|
-
<react_native_1.View style={[react_native_1.StyleSheet.absoluteFill,
|
|
719
|
-
{
|
|
814
|
+
<react_native_1.View style={[react_native_1.StyleSheet.absoluteFill,i!=="main"&&{pointerEvents:"none"}]}>
|
|
815
|
+
{ke()}
|
|
720
816
|
</react_native_1.View>
|
|
721
817
|
|
|
722
818
|
|
|
723
|
-
{
|
|
724
|
-
{
|
|
819
|
+
{i!=="main"&&<react_native_1.Animated.View style={[react_native_1.StyleSheet.absoluteFill,{backgroundColor:AppColors_1.AppColors.grayBackground,opacity:z,transform:[{translateX:z.interpolate({inputRange:[0,1],outputRange:[30,0]})}]}]}>
|
|
820
|
+
{f}
|
|
725
821
|
</react_native_1.Animated.View>}
|
|
726
822
|
</react_native_1.View>};exports.default=SettingsPanel;
|