react-native-inapp-inspector 2.4.0 → 2.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.ar.md +163 -0
- package/README.de.md +163 -0
- package/README.es.md +164 -0
- package/README.fr.md +163 -0
- package/README.hi.md +163 -0
- package/README.ja.md +180 -0
- package/README.ko.md +163 -0
- package/README.md +340 -243
- package/README.pt-BR.md +163 -0
- package/README.ru.md +163 -0
- package/README.zh-CN.md +387 -0
- package/android/src/main/java/com/inappinspector/NetworkInspectorModule.kt +82 -21
- package/assets/banner_dark.svg +186 -0
- package/assets/banner_light.svg +186 -0
- package/assets/icon_circle.svg +148 -0
- package/assets/icon_square.svg +369 -0
- package/assets/inapp_inspector_icon.gif +0 -0
- package/assets/inapp_inspector_icon_original.gif +0 -0
- package/assets/social_preview.png +0 -0
- package/assets/walkthrough.gif +0 -0
- package/dist/commonjs/components/AnimatedBrandOwl.d.ts +7 -0
- package/dist/commonjs/components/AnimatedBrandOwl.js +175 -0
- package/dist/commonjs/components/AppHeaderLogo.d.ts +1 -0
- package/dist/commonjs/components/AppHeaderLogo.js +7 -5
- package/dist/commonjs/components/BrandSquareIcon.d.ts +5 -0
- package/dist/commonjs/components/BrandSquareIcon.js +139 -0
- package/dist/commonjs/components/ConsoleLogCard.d.ts +2 -1
- package/dist/commonjs/components/ConsoleLogCard.js +23 -39
- package/dist/commonjs/components/Inspector/AboutModal.js +44 -54
- package/dist/commonjs/components/Inspector/AnalyticsTab.js +16 -16
- package/dist/commonjs/components/Inspector/ConfirmationModal.d.ts +13 -0
- package/dist/commonjs/components/Inspector/ConfirmationModal.js +32 -0
- package/dist/commonjs/components/Inspector/ConsoleTab.js +15 -15
- package/dist/commonjs/components/Inspector/CrashTab.js +25 -23
- package/dist/commonjs/components/Inspector/DebuggingTab.js +17 -17
- package/dist/commonjs/components/Inspector/FabLauncher.js +22 -30
- package/dist/commonjs/components/Inspector/FeatureUnderDevNotice.js +2 -2
- package/dist/commonjs/components/Inspector/LanguageSelectorModal.d.ts +15 -0
- package/dist/commonjs/components/Inspector/LanguageSelectorModal.js +90 -0
- package/dist/commonjs/components/Inspector/MainScreen.js +46 -33
- package/dist/commonjs/components/Inspector/MediaGalleryTab.js +21 -19
- package/dist/commonjs/components/Inspector/MediaPreviewModal.js +85 -101
- package/dist/commonjs/components/Inspector/NetworkTab.js +50 -50
- package/dist/commonjs/components/Inspector/NpmUpdateToast.js +1 -1
- package/dist/commonjs/components/Inspector/PushCard.d.ts +3 -2
- package/dist/commonjs/components/Inspector/PushCard.js +5 -4
- package/dist/commonjs/components/Inspector/PushDetail.js +32 -23
- package/dist/commonjs/components/Inspector/PushTab.js +13 -13
- package/dist/commonjs/components/Inspector/ReduxDetail.js +32 -32
- package/dist/commonjs/components/Inspector/ReduxTab.js +14 -14
- package/dist/commonjs/components/Inspector/SettingsPanel.js +258 -139
- package/dist/commonjs/components/Inspector/SocketCard.d.ts +5 -0
- package/dist/commonjs/components/Inspector/SocketCard.js +116 -0
- package/dist/commonjs/components/Inspector/SocketDetail.d.ts +4 -0
- package/dist/commonjs/components/Inspector/SocketDetail.js +317 -0
- package/dist/commonjs/components/Inspector/SocketFilterModal.d.ts +13 -0
- package/dist/commonjs/components/Inspector/SocketFilterModal.js +69 -0
- package/dist/commonjs/components/Inspector/SocketTab.d.ts +3 -0
- package/dist/commonjs/components/Inspector/SocketTab.js +112 -0
- package/dist/commonjs/components/Inspector/StorageTab.js +34 -32
- package/dist/commonjs/components/Inspector/SupportModal.d.ts +7 -0
- package/dist/commonjs/components/Inspector/SupportModal.js +125 -0
- package/dist/commonjs/components/Inspector/SupportPage.d.ts +5 -0
- package/dist/commonjs/components/Inspector/SupportPage.js +227 -0
- package/dist/commonjs/components/Inspector/TabBar.js +24 -23
- package/dist/commonjs/components/Inspector/UpdateAvailableModal.js +24 -24
- package/dist/commonjs/components/JsonViewer.js +7 -7
- package/dist/commonjs/components/LogCard.d.ts +3 -2
- package/dist/commonjs/components/LogCard.js +17 -14
- package/dist/commonjs/components/LogSyntaxHighlighter.js +5 -5
- package/dist/commonjs/components/ModuleErrorBoundary.js +2 -2
- package/dist/commonjs/components/NetworkIcons.d.ts +15 -0
- package/dist/commonjs/components/NetworkIcons.js +38 -3
- package/dist/commonjs/components/SegmentedTabs.js +1 -1
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -1
- package/dist/commonjs/customHooks/socketLogger.d.ts +26 -0
- package/dist/commonjs/customHooks/socketLogger.js +2 -0
- package/dist/commonjs/helpers/index.js +3 -3
- package/dist/commonjs/helpers/memoryManager.d.ts +1 -0
- package/dist/commonjs/helpers/memoryManager.js +1 -1
- package/dist/commonjs/helpers/searchQueryParser.d.ts +1 -1
- package/dist/commonjs/helpers/searchQueryParser.js +5 -1
- package/dist/commonjs/helpers/settingsStore.d.ts +1 -0
- package/dist/commonjs/helpers/settingsStore.js +1 -1
- package/dist/commonjs/helpers/shareFormatter.d.ts +3 -1
- package/dist/commonjs/helpers/shareFormatter.js +8 -7
- package/dist/commonjs/i18n/index.d.ts +99 -1
- package/dist/commonjs/i18n/index.js +1 -1
- package/dist/commonjs/i18n/locales/ar.json +1 -1
- package/dist/commonjs/i18n/locales/bn.json +1 -0
- package/dist/commonjs/i18n/locales/de.json +1 -1
- package/dist/commonjs/i18n/locales/en.json +1 -1
- package/dist/commonjs/i18n/locales/es.json +1 -1
- package/dist/commonjs/i18n/locales/fr.json +1 -1
- package/dist/commonjs/i18n/locales/gu.json +1 -0
- package/dist/commonjs/i18n/locales/hi.json +1 -1
- package/dist/commonjs/i18n/locales/id.json +1 -0
- package/dist/commonjs/i18n/locales/it.json +1 -0
- package/dist/commonjs/i18n/locales/ja.json +1 -1
- package/dist/commonjs/i18n/locales/kn.json +1 -0
- package/dist/commonjs/i18n/locales/ko.json +1 -1
- package/dist/commonjs/i18n/locales/ml.json +1 -0
- package/dist/commonjs/i18n/locales/mr.json +1 -0
- package/dist/commonjs/i18n/locales/nl.json +1 -0
- package/dist/commonjs/i18n/locales/pa.json +1 -0
- package/dist/commonjs/i18n/locales/pl.json +1 -0
- package/dist/commonjs/i18n/locales/pt.json +1 -1
- package/dist/commonjs/i18n/locales/ru.json +1 -1
- package/dist/commonjs/i18n/locales/ta.json +1 -0
- package/dist/commonjs/i18n/locales/te.json +1 -0
- package/dist/commonjs/i18n/locales/tr.json +1 -0
- package/dist/commonjs/i18n/locales/vi.json +1 -0
- package/dist/commonjs/i18n/locales/zh.json +1 -1
- package/dist/commonjs/index.d.ts +13 -13
- package/dist/commonjs/index.js +5 -4
- package/dist/commonjs/native/NativeInspector.d.ts +1 -0
- package/dist/commonjs/socket.d.ts +4 -0
- package/dist/commonjs/socket.js +1 -0
- package/dist/commonjs/styles/index.d.ts +23 -0
- package/dist/commonjs/styles/index.js +1 -1
- package/dist/commonjs/types/enums.d.ts +40 -0
- package/dist/commonjs/types/enums.js +1 -1
- package/dist/commonjs/types/interfaces.d.ts +122 -1
- package/dist/esm/components/AnimatedBrandOwl.d.ts +7 -0
- package/dist/esm/components/AnimatedBrandOwl.js +175 -0
- package/dist/esm/components/AppHeaderLogo.d.ts +1 -0
- package/dist/esm/components/AppHeaderLogo.js +7 -5
- package/dist/esm/components/BrandSquareIcon.d.ts +5 -0
- package/dist/esm/components/BrandSquareIcon.js +139 -0
- package/dist/esm/components/ConsoleLogCard.d.ts +2 -1
- package/dist/esm/components/ConsoleLogCard.js +61 -77
- package/dist/esm/components/Inspector/AboutModal.js +85 -95
- package/dist/esm/components/Inspector/AnalyticsTab.js +31 -31
- package/dist/esm/components/Inspector/ConfirmationModal.d.ts +13 -0
- package/dist/esm/components/Inspector/ConfirmationModal.js +32 -0
- package/dist/esm/components/Inspector/ConsoleTab.js +49 -49
- package/dist/esm/components/Inspector/CrashTab.js +40 -38
- package/dist/esm/components/Inspector/DebuggingTab.js +29 -29
- package/dist/esm/components/Inspector/FabLauncher.js +50 -58
- package/dist/esm/components/Inspector/FeatureUnderDevNotice.js +7 -7
- package/dist/esm/components/Inspector/LanguageSelectorModal.d.ts +15 -0
- package/dist/esm/components/Inspector/LanguageSelectorModal.js +90 -0
- package/dist/esm/components/Inspector/MainScreen.js +123 -110
- package/dist/esm/components/Inspector/MediaGalleryTab.js +64 -62
- package/dist/esm/components/Inspector/MediaPreviewModal.js +107 -123
- package/dist/esm/components/Inspector/NetworkTab.js +90 -90
- package/dist/esm/components/Inspector/NpmUpdateToast.js +1 -1
- package/dist/esm/components/Inspector/PushCard.d.ts +3 -2
- package/dist/esm/components/Inspector/PushCard.js +23 -22
- package/dist/esm/components/Inspector/PushDetail.js +34 -25
- package/dist/esm/components/Inspector/PushTab.js +25 -25
- package/dist/esm/components/Inspector/ReduxDetail.js +42 -42
- package/dist/esm/components/Inspector/ReduxTab.js +35 -35
- package/dist/esm/components/Inspector/SettingsPanel.js +495 -376
- package/dist/esm/components/Inspector/SocketCard.d.ts +5 -0
- package/dist/esm/components/Inspector/SocketCard.js +116 -0
- package/dist/esm/components/Inspector/SocketDetail.d.ts +4 -0
- package/dist/esm/components/Inspector/SocketDetail.js +317 -0
- package/dist/esm/components/Inspector/SocketFilterModal.d.ts +13 -0
- package/dist/esm/components/Inspector/SocketFilterModal.js +69 -0
- package/dist/esm/components/Inspector/SocketTab.d.ts +3 -0
- package/dist/esm/components/Inspector/SocketTab.js +112 -0
- package/dist/esm/components/Inspector/StorageTab.js +136 -134
- package/dist/esm/components/Inspector/SupportModal.d.ts +7 -0
- package/dist/esm/components/Inspector/SupportModal.js +125 -0
- package/dist/esm/components/Inspector/SupportPage.d.ts +5 -0
- package/dist/esm/components/Inspector/SupportPage.js +227 -0
- package/dist/esm/components/Inspector/TabBar.js +36 -35
- package/dist/esm/components/Inspector/UpdateAvailableModal.js +22 -22
- package/dist/esm/components/JsonViewer.js +55 -55
- package/dist/esm/components/LogCard.d.ts +3 -2
- package/dist/esm/components/LogCard.js +61 -58
- package/dist/esm/components/LogSyntaxHighlighter.js +5 -5
- package/dist/esm/components/ModuleErrorBoundary.js +23 -23
- package/dist/esm/components/NetworkIcons.d.ts +15 -0
- package/dist/esm/components/NetworkIcons.js +38 -3
- package/dist/esm/components/SegmentedTabs.js +7 -7
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/customHooks/socketLogger.d.ts +26 -0
- package/dist/esm/customHooks/socketLogger.js +2 -0
- package/dist/esm/helpers/index.js +3 -3
- package/dist/esm/helpers/memoryManager.d.ts +1 -0
- package/dist/esm/helpers/memoryManager.js +1 -1
- package/dist/esm/helpers/searchQueryParser.d.ts +1 -1
- package/dist/esm/helpers/searchQueryParser.js +5 -1
- package/dist/esm/helpers/settingsStore.d.ts +1 -0
- package/dist/esm/helpers/settingsStore.js +1 -1
- package/dist/esm/helpers/shareFormatter.d.ts +3 -1
- package/dist/esm/helpers/shareFormatter.js +8 -7
- package/dist/esm/i18n/index.d.ts +99 -1
- package/dist/esm/i18n/index.js +1 -1
- package/dist/esm/i18n/locales/ar.json +1 -1
- package/dist/esm/i18n/locales/bn.json +1 -0
- package/dist/esm/i18n/locales/de.json +1 -1
- package/dist/esm/i18n/locales/en.json +1 -1
- package/dist/esm/i18n/locales/es.json +1 -1
- package/dist/esm/i18n/locales/fr.json +1 -1
- package/dist/esm/i18n/locales/gu.json +1 -0
- package/dist/esm/i18n/locales/hi.json +1 -1
- package/dist/esm/i18n/locales/id.json +1 -0
- package/dist/esm/i18n/locales/it.json +1 -0
- package/dist/esm/i18n/locales/ja.json +1 -1
- package/dist/esm/i18n/locales/kn.json +1 -0
- package/dist/esm/i18n/locales/ko.json +1 -1
- package/dist/esm/i18n/locales/ml.json +1 -0
- package/dist/esm/i18n/locales/mr.json +1 -0
- package/dist/esm/i18n/locales/nl.json +1 -0
- package/dist/esm/i18n/locales/pa.json +1 -0
- package/dist/esm/i18n/locales/pl.json +1 -0
- package/dist/esm/i18n/locales/pt.json +1 -1
- package/dist/esm/i18n/locales/ru.json +1 -1
- package/dist/esm/i18n/locales/ta.json +1 -0
- package/dist/esm/i18n/locales/te.json +1 -0
- package/dist/esm/i18n/locales/tr.json +1 -0
- package/dist/esm/i18n/locales/vi.json +1 -0
- package/dist/esm/i18n/locales/zh.json +1 -1
- package/dist/esm/index.d.ts +13 -13
- package/dist/esm/index.js +8 -7
- package/dist/esm/native/NativeInspector.d.ts +1 -0
- package/dist/esm/socket.d.ts +4 -0
- package/dist/esm/socket.js +1 -0
- package/dist/esm/styles/index.d.ts +23 -0
- package/dist/esm/styles/index.js +1 -1
- package/dist/esm/types/enums.d.ts +40 -0
- package/dist/esm/types/enums.js +1 -1
- package/dist/esm/types/interfaces.d.ts +122 -1
- package/ios/NetworkInspectorModule.mm +102 -12
- package/package.json +204 -2
- package/src/native/NativeInspector.ts +8 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(o,i,
|
|
1
|
+
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(o,i,A,n){n===void 0&&(n=A);var b=Object.getOwnPropertyDescriptor(i,A);(!b||("get"in b?!i.__esModule:b.writable||b.configurable))&&(b={enumerable:!0,get:function(){return i[A]}}),Object.defineProperty(o,n,b)}):(function(o,i,A,n){n===void 0&&(n=A),o[n]=i[A]})),__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(A){var n=[];for(var b in A)Object.prototype.hasOwnProperty.call(A,b)&&(n[n.length]=b);return n},o(i)};return function(i){if(i&&i.__esModule)return i;var A={};if(i!=null)for(var n=o(i),b=0;b<n.length;b++)n[b]!=="default"&&__createBinding(A,i,n[b]);return __setModuleDefault(A,i),A}})(),__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"),i18n_1=require("../../i18n"),LanguageSelectorModal_1=require("./LanguageSelectorModal"),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:A,settingsActiveSubTab:n,setSettingsActiveSubTab:b,tabVisibility:t,toggleTabVisibility:he,defaultTab:V,setDefaultTab:Ae,isDark:F,setIsDark:be,modalHeightPercent:B,setModalHeightPercent:fe,modalAnimationType:we,setModalAnimationType:_e,showDuplicateLogs:j,setShowDuplicateLogs:me,showUpdateToast:G,setShowUpdateToast:xe,showConsoleLevels:Te,setShowConsoleLevels:ve,closeModal:Se,logs:U,consoleLogs:q,analyticsEvents:K,reduxState:z,maxConsoleLogs:J,setMaxConsoleLogs:Ve,maxAnalyticsEventsLimit:re,setMaxAnalyticsEventsLimit:ke,isAutoRamLimitEnabled:w,setIsAutoRamLimitEnabled:Fe,deviceFreeRamMb:Q,reduxAutoRefresh:X,setReduxAutoRefreshState:Be,reduxExpandDepth:te,setReduxExpandDepth:ze,setSelected:Re,setSelectedEvent:Ie,setReduxState:He,crashRecords:R,maxCrashLogs:ie,setMaxCrashLogs:Le,pushRecords:I,maxPushLogs:De,setMaxPushLogs:Pe,clearAllPushLogs:$e,simulatePush:H,socketRecords:L,maxSocketLogs:We,setMaxSocketLogs:Oe,clearAllSocketLogs:Me,simulateSocket:D,captureImageFormat:Y,setCaptureImageFormat:ae,captureAutoHide:_,setCaptureAutoHide:P,captureAudioMode:le,setCaptureAudioMode:ne,captureFps:se,setCaptureFps:pe,captureScale:Ue,setCaptureScale:qe,captureBitrate:Ke,setCaptureBitrate:Je,captureMaxDurationSeconds:Qe,setCaptureMaxDurationSeconds:Xe,captureAutoGif:m,setCaptureAutoGif:$}=(0,InspectorContext_1.useInspector)(),[W,ce]=(0,react_1.useState)(B),[Ee,de]=(0,react_1.useState)(!1),Ne=(0,i18n_1.getLanguage)(),Z=i18n_1.SUPPORTED_LANGUAGES.find(e=>e.code===Ne)||i18n_1.SUPPORTED_LANGUAGES[0];(0,react_1.useEffect)(()=>{ce(B)},[B]);const O=(0,settingsStore_1.calculateRamBasedLimits)(Q),f=(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)"},{id:11,key:"socket",label:"WebSocket & Socket.IO",category:"telemetry",icon:"socket",desc:"Real-time WebSocket & Socket.IO message inspector, frames & event logger"}].filter(e=>e.key==="debugging"?react_native_1.Platform.OS==="android"&&(0,helpers_1.isLocalDebugEnvironment)():!0),[]),[v,M]=(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),socket:!!(t?.socket??!1)}));(0,react_1.useEffect)(()=>{M({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),socket:!!(t?.socket??!1)})},[t]);const k=(0,react_1.useMemo)(()=>f.some(e=>!!v[e.key]!=!!t?.[e.key]),[v,t,f]),ge=f.filter(e=>e.key==="apis"||!!v[e.key]).length,E=(0,react_1.useMemo)(()=>f.filter(e=>!(e.key==="apis"||e.key==="redux"&&!(0,reduxLogger_1.isReduxConnected)()||e.key==="analytics"&&!(0,analyticsLogger_1.isAnalyticsConnected)())),[f]),T=(0,react_1.useMemo)(()=>E.length===0?!1:E.every(e=>!!v[e.key]),[E,v]),ue=()=>{const e=!T;M(r=>{const C={...r};return E.forEach(h=>{C[h.key]=e}),C})},je=()=>{k&&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:()=>{M({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),socket:!!(t?.socket??!1)})}},{text:"Save & Reload",style:"default",onPress:()=>{(0,InspectorContext_1.animateNextLayout)(),f.forEach(e=>{if(e.key!=="apis"){const r=!!v[e.key],C=!!t?.[e.key];r!==C&&he(e.key)}}),Se(),setTimeout(()=>{__DEV__&&react_native_1.DevSettings&&react_native_1.DevSettings.reload&&react_native_1.DevSettings.reload()},350)}}])},[ee,ye]=(0,react_1.useState)(!1),a=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={r=>{const C=parseInt(r.replace(/[^0-9]/g,""),10);if(!isNaN(C)){const
|
|
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 h=Math.max(e.numericInput?.min??1,Math.min(e.numericInput?.max??1e4,C));e.numericInput?.onChange(h)}}}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>
|
|
@@ -32,13 +32,13 @@
|
|
|
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>,Ge=()=><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:`${
|
|
41
|
+
{[{key:"module",label:o("settings.modulesAndTools","Modules & Tools"),Icon:NetworkIcons_1.LayersIcon,badge:`${f.filter(e=>v?.[e.key]||e.key==="apis").length}/${f.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)(),b(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
42
|
<C color={r?AppColors_1.AppColors.white:AppColors_1.AppColors.grayText}size={13}/>
|
|
43
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}
|
|
@@ -54,48 +54,72 @@
|
|
|
54
54
|
|
|
55
55
|
{n==="module"&&<react_native_1.View style={{gap:12}}>
|
|
56
56
|
|
|
57
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:12,paddingVertical:10,paddingHorizontal:14,borderWidth:1,borderColor:T?`${AppColors_1.AppColors.purple}40`:AppColors_1.AppColors.grayBorderSecondary,shadowColor:AppColors_1.AppColors.black,shadowOpacity:.02,shadowRadius:3,shadowOffset:{width:0,height:1}}}>
|
|
58
|
+
<TouchableScale_1.default accessible={!0}accessibilityRole="checkbox"accessibilityLabel="Toggle Select All Modules"accessibilityState={{checked:T}}onPress={ue}style={{flexDirection:"row",alignItems:"center",gap:10,flex:1}}>
|
|
59
|
+
<react_native_1.View style={{width:22,height:22,borderRadius:6,borderWidth:T?0:1.8,borderColor:AppColors_1.AppColors.grayBorderSecondary,backgroundColor:T?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayBackground,alignItems:"center",justifyContent:"center"}}>
|
|
60
|
+
{T&&<NetworkIcons_1.CheckIcon size={12}color={AppColors_1.AppColors.white}/>}
|
|
61
|
+
</react_native_1.View>
|
|
62
|
+
<react_native_1.View>
|
|
63
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:13,color:AppColors_1.AppColors.primaryBlack}}>
|
|
64
|
+
{T?"Deselect All Modules":"Select All Modules"}
|
|
65
|
+
</react_native_1.Text>
|
|
66
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:10.5,color:AppColors_1.AppColors.grayText,marginTop:1}}>
|
|
67
|
+
{ge} of {f.length} modules active
|
|
68
|
+
</react_native_1.Text>
|
|
69
|
+
</react_native_1.View>
|
|
70
|
+
</TouchableScale_1.default>
|
|
71
|
+
|
|
72
|
+
<TouchableScale_1.default onPress={ue}style={{paddingHorizontal:10,paddingVertical:5,borderRadius:8,backgroundColor:T?`${AppColors_1.AppColors.purple}14`:AppColors_1.AppColors.purple,borderWidth:1,borderColor:T?`${AppColors_1.AppColors.purple}30`:"transparent"}}>
|
|
73
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,color:T?AppColors_1.AppColors.purple:AppColors_1.AppColors.white}}>
|
|
74
|
+
{T?"Deselect All":"Select All"}
|
|
75
|
+
</react_native_1.Text>
|
|
76
|
+
</TouchableScale_1.default>
|
|
77
|
+
</react_native_1.View>
|
|
78
|
+
|
|
79
|
+
|
|
57
80
|
<react_native_1.View style={{gap:10}}>
|
|
58
|
-
{
|
|
81
|
+
{f.map(e=>{const r=(0,reduxLogger_1.isReduxConnected)(),C=(0,analyticsLogger_1.isAnalyticsConnected)(),h=e.key==="redux"&&!r||e.key==="analytics"&&!C,x=e.key==="apis"||h,l=e.key==="apis"||!!v?.[e.key]&&!h,oe=e.key==="apis"?U.length>0?`${U.length} requests`:"":e.key==="logs"?q.length>0?`${q.length} logs \u2022 Limit: ${J}`:"":e.key==="crash"?R&&R.length>0?`${R.length} crashes recorded \u2022 Crash Guard`:"":e.key==="analytics"?K.length>0?`${K.length} events logged`:"":e.key==="redux"?z&&Object.keys(z).length>0?`${Object.keys(z).length} slices \u2022 Depth: ${te}`:"":e.key==="push"?I&&I.length>0?`${I.length} notifications logged`:"":e.key==="socket"&&L&&L.length>0?`${L.length} connections active`:"";return<react_native_1.View key={e.key}style={{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:14,borderWidth:1.5,borderColor:l?`${AppColors_1.AppColors.purple}38`:AppColors_1.AppColors.grayBorderSecondary,padding:14,gap:10,shadowColor:AppColors_1.AppColors.black,shadowOpacity:l?.04:.02,shadowRadius:5,shadowOffset:{width:0,height:2}}}>
|
|
59
82
|
|
|
60
83
|
<react_native_1.View style={{flexDirection:"row",alignItems:"flex-start",gap:10}}>
|
|
61
84
|
|
|
62
|
-
<TouchableScale_1.default accessible={!0}accessibilityRole="checkbox"accessibilityLabel={`Select ${e.label}`}accessibilityState={{checked:
|
|
63
|
-
{e.key==="apis"?<NetworkIcons_1.CheckIcon size={12}color={AppColors_1.AppColors.blue500}/>:
|
|
85
|
+
<TouchableScale_1.default accessible={!0}accessibilityRole="checkbox"accessibilityLabel={`Select ${e.label}`}accessibilityState={{checked:l,disabled:x}}disabled={x}onPress={()=>{x||M(Ce=>({...Ce,[e.key]:!Ce[e.key]}))}}hitSlop={8}style={{width:22,height:22,borderRadius:6,borderWidth:l?0:1.8,borderColor:x?AppColors_1.AppColors.dividerColor:AppColors_1.AppColors.grayBorderSecondary,backgroundColor:e.key==="apis"?`${AppColors_1.AppColors.blue500}22`:l?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayBackground,alignItems:"center",justifyContent:"center",marginTop:7,shadowColor:l?AppColors_1.AppColors.purple:"transparent",shadowOpacity:l?.25:0,shadowRadius:2,elevation:l?2:0}}>
|
|
86
|
+
{e.key==="apis"?<NetworkIcons_1.CheckIcon size={12}color={AppColors_1.AppColors.blue500}/>:l?<NetworkIcons_1.CheckIcon size={12}color={AppColors_1.AppColors.white}/>:x?<react_native_svg_1.default width={10}height={10}viewBox="0 0 24 24"fill="none">
|
|
64
87
|
<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
88
|
<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
89
|
</react_native_svg_1.default>:null}
|
|
67
90
|
</TouchableScale_1.default>
|
|
68
91
|
|
|
69
92
|
|
|
70
|
-
<TouchableScale_1.default accessible={!0}accessibilityRole="button"accessibilityLabel={`${e.label} settings`}disabled={
|
|
93
|
+
<TouchableScale_1.default accessible={!0}accessibilityRole="button"accessibilityLabel={`${e.label} settings`}disabled={h}onPress={()=>{(0,InspectorContext_1.animateNextLayout)(),A(e.key)}}style={{flex:1,flexDirection:"row",alignItems:"flex-start",gap:10}}>
|
|
71
94
|
|
|
72
|
-
<react_native_1.View style={{width:36,height:36,borderRadius:10,backgroundColor:
|
|
73
|
-
{e.icon==="apis"&&<NetworkIcons_1.SignalIcon color={
|
|
74
|
-
{e.icon==="logs"&&<NetworkIcons_1.TerminalIcon color={
|
|
75
|
-
{e.icon==="crash"&&<NetworkIcons_1.CrashIcon color={
|
|
76
|
-
{e.icon==="analytics"&&<NetworkIcons_1.AnalyticsIcon color={
|
|
77
|
-
{e.icon==="redux"&&<NetworkIcons_1.ReduxIcon color={
|
|
78
|
-
{e.icon==="device"&&<NetworkIcons_1.SmartphoneIcon color={
|
|
79
|
-
{e.icon==="storage"&&<NetworkIcons_1.DatabaseIcon color={
|
|
80
|
-
{e.icon==="debugging"&&<NetworkIcons_1.QrCodeIcon color={
|
|
81
|
-
{e.icon==="media"&&<NetworkIcons_1.ScreencastIcon color={
|
|
82
|
-
{e.icon==="push"&&<NetworkIcons_1.BellIcon color={
|
|
95
|
+
<react_native_1.View style={{width:36,height:36,borderRadius:10,backgroundColor:x?`${AppColors_1.AppColors.grayBorderSecondary}4D`:l?`${AppColors_1.AppColors.purple}14`:AppColors_1.AppColors.grayBackground,borderWidth:1,borderColor:x?AppColors_1.AppColors.dividerColor:l?`${AppColors_1.AppColors.purple}33`:AppColors_1.AppColors.grayBorderSecondary,alignItems:"center",justifyContent:"center",marginTop:1}}>
|
|
96
|
+
{e.icon==="apis"&&<NetworkIcons_1.SignalIcon color={l?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}size={16}/>}
|
|
97
|
+
{e.icon==="logs"&&<NetworkIcons_1.TerminalIcon color={l?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}size={16}/>}
|
|
98
|
+
{e.icon==="crash"&&<NetworkIcons_1.CrashIcon color={l?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}size={16}/>}
|
|
99
|
+
{e.icon==="analytics"&&<NetworkIcons_1.AnalyticsIcon color={l?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}size={16}/>}
|
|
100
|
+
{e.icon==="redux"&&<NetworkIcons_1.ReduxIcon color={l?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}size={16}/>}
|
|
101
|
+
{e.icon==="device"&&<NetworkIcons_1.SmartphoneIcon color={l?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}size={16}/>}
|
|
102
|
+
{e.icon==="storage"&&<NetworkIcons_1.DatabaseIcon color={l?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}size={16}/>}
|
|
103
|
+
{e.icon==="debugging"&&<NetworkIcons_1.QrCodeIcon color={l?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}size={16}/>}
|
|
104
|
+
{e.icon==="media"&&<NetworkIcons_1.ScreencastIcon color={l?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}size={16}/>}
|
|
105
|
+
{e.icon==="push"&&<NetworkIcons_1.BellIcon color={l?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}size={16}/>}
|
|
106
|
+
{e.icon==="socket"&&<NetworkIcons_1.WebsocketIcon color={l?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}size={16}/>}
|
|
83
107
|
</react_native_1.View>
|
|
84
108
|
|
|
85
109
|
|
|
86
110
|
<react_native_1.View style={{flex:1,gap:2}}>
|
|
87
111
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:6,flexWrap:"wrap"}}>
|
|
88
|
-
<react_native_1.View style={{minWidth:22,height:22,paddingHorizontal:5,borderRadius:11,backgroundColor:
|
|
89
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10,lineHeight:13,color:
|
|
112
|
+
<react_native_1.View style={{minWidth:22,height:22,paddingHorizontal:5,borderRadius:11,backgroundColor:l?`${AppColors_1.AppColors.purple}1C`:`${AppColors_1.AppColors.grayBorderSecondary}80`,borderWidth:1,borderColor:l?`${AppColors_1.AppColors.purple}44`:AppColors_1.AppColors.grayBorderSecondary,alignItems:"center",justifyContent:"center"}}>
|
|
113
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10,lineHeight:13,color:l?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayText}}>
|
|
90
114
|
#{e.id}
|
|
91
115
|
</react_native_1.Text>
|
|
92
116
|
</react_native_1.View>
|
|
93
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:14,lineHeight:18,color:
|
|
117
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:14,lineHeight:18,color:x?AppColors_1.AppColors.grayText:AppColors_1.AppColors.primaryBlack}}>
|
|
94
118
|
{e.label}
|
|
95
119
|
</react_native_1.Text>
|
|
96
120
|
|
|
97
121
|
|
|
98
|
-
{e.key===
|
|
122
|
+
{e.key===V&&!h&&<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}}>
|
|
99
123
|
<react_native_1.View style={{width:4,height:4,borderRadius:2,backgroundColor:AppColors_1.AppColors.purple}}/>
|
|
100
124
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8,lineHeight:11,color:AppColors_1.AppColors.purple,letterSpacing:.4}}>
|
|
101
125
|
{o("settings.defaultBadge")}
|
|
@@ -107,11 +131,11 @@
|
|
|
107
131
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8,lineHeight:11,color:AppColors_1.AppColors.blue500,letterSpacing:.3}}>
|
|
108
132
|
{o("settings.coreBadge")}
|
|
109
133
|
</react_native_1.Text>
|
|
110
|
-
</react_native_1.View>:
|
|
134
|
+
</react_native_1.View>:h?<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`}}>
|
|
111
135
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8,lineHeight:11,color:AppColors_1.AppColors.amber700,letterSpacing:.3}}>
|
|
112
136
|
{e.key==="redux"?o("settings.notConnectedBadge"):o("settings.notDetectedBadge")}
|
|
113
137
|
</react_native_1.Text>
|
|
114
|
-
</react_native_1.View>:
|
|
138
|
+
</react_native_1.View>:l?<react_native_1.View style={{backgroundColor:`${AppColors_1.AppColors.liveGreen}18`,borderRadius:4,paddingHorizontal:5,paddingVertical:1.5,borderWidth:1,borderColor:`${AppColors_1.AppColors.liveGreen}38`}}>
|
|
115
139
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8,lineHeight:11,color:AppColors_1.AppColors.green700,letterSpacing:.3}}>
|
|
116
140
|
{o("settings.activeBadge")}
|
|
117
141
|
</react_native_1.Text>
|
|
@@ -130,17 +154,17 @@
|
|
|
130
154
|
</react_native_1.View>
|
|
131
155
|
|
|
132
156
|
|
|
133
|
-
{!
|
|
157
|
+
{!h&&<react_native_1.View style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingTop:8,borderTopWidth:1,borderTopColor:AppColors_1.AppColors.dividerColor}}>
|
|
134
158
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
159
|
+
{oe&&oe.trim().length>0?<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:6,flex:1}}>
|
|
160
|
+
<react_native_1.View style={{width:6,height:6,borderRadius:3,backgroundColor:l?AppColors_1.AppColors.liveGreen:AppColors_1.AppColors.grayTextWeak}}/>
|
|
161
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:11,color:AppColors_1.AppColors.grayText,lineHeight:14}}>
|
|
162
|
+
{oe}
|
|
163
|
+
</react_native_1.Text>
|
|
164
|
+
</react_native_1.View>:<react_native_1.View style={{flex:1}}/>}
|
|
141
165
|
|
|
142
166
|
|
|
143
|
-
<TouchableScale_1.default accessible={!0}accessibilityRole="button"accessibilityLabel={`Configure ${e.label} settings`}onPress={()=>{(0,InspectorContext_1.animateNextLayout)(),
|
|
167
|
+
<TouchableScale_1.default accessible={!0}accessibilityRole="button"accessibilityLabel={`Configure ${e.label} settings`}onPress={()=>{(0,InspectorContext_1.animateNextLayout)(),A(e.key)}}style={{flexDirection:"row",alignItems:"center",gap:5,backgroundColor:`${AppColors_1.AppColors.purple}12`,paddingHorizontal:10,paddingVertical:5,borderRadius:8,borderWidth:1,borderColor:`${AppColors_1.AppColors.purple}26`}}>
|
|
144
168
|
<NetworkIcons_1.SettingsIcon color={AppColors_1.AppColors.purple}size={11}/>
|
|
145
169
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,lineHeight:14,color:AppColors_1.AppColors.purple}}>
|
|
146
170
|
{o("settings.configure")}
|
|
@@ -162,7 +186,7 @@
|
|
|
162
186
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between"}}>
|
|
163
187
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:10,flex:1}}>
|
|
164
188
|
<react_native_1.View style={{width:32,height:32,borderRadius:8,backgroundColor:AppColors_1.AppColors.purpleShade50,alignItems:"center",justifyContent:"center"}}>
|
|
165
|
-
{
|
|
189
|
+
{F?<NetworkIcons_1.SunIcon color={AppColors_1.AppColors.purple}size={15}/>:<NetworkIcons_1.MoonIcon color={AppColors_1.AppColors.purple}size={15}/>}
|
|
166
190
|
</react_native_1.View>
|
|
167
191
|
<react_native_1.View style={{flex:1}}>
|
|
168
192
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:13.5,lineHeight:18,color:AppColors_1.AppColors.primaryBlack}}>
|
|
@@ -174,10 +198,39 @@
|
|
|
174
198
|
</react_native_1.View>
|
|
175
199
|
</react_native_1.View>
|
|
176
200
|
|
|
177
|
-
<TouchableScale_1.default accessible={!0}accessibilityRole="switch"accessibilityLabel="Toggle Dark Theme"accessibilityState={{checked:
|
|
201
|
+
<TouchableScale_1.default accessible={!0}accessibilityRole="switch"accessibilityLabel="Toggle Dark Theme"accessibilityState={{checked:F}}onPress={()=>{const e=!F;be(e),(0,styles_1.toggleGlobalTheme)(e)}}style={{width:42,height:24,borderRadius:12,backgroundColor:F?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayBorderSecondary,padding:2,justifyContent:"center",alignItems:F?"flex-end":"flex-start"}}>
|
|
178
202
|
<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}}}/>
|
|
179
203
|
</TouchableScale_1.default>
|
|
180
204
|
</react_native_1.View>
|
|
205
|
+
|
|
206
|
+
<react_native_1.View style={{height:1,backgroundColor:AppColors_1.AppColors.grayBorderSecondary,opacity:.6}}/>
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between"}}>
|
|
210
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:10,flex:1}}>
|
|
211
|
+
<react_native_1.View style={{width:32,height:32,borderRadius:8,backgroundColor:`${AppColors_1.AppColors.blue600}14`,alignItems:"center",justifyContent:"center"}}>
|
|
212
|
+
<NetworkIcons_1.GlobeIcon color={AppColors_1.AppColors.blue600}size={15}/>
|
|
213
|
+
</react_native_1.View>
|
|
214
|
+
<react_native_1.View style={{flex:1}}>
|
|
215
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:13.5,lineHeight:18,color:AppColors_1.AppColors.primaryBlack}}>
|
|
216
|
+
{o("settings.general.language","Language")}
|
|
217
|
+
</react_native_1.Text>
|
|
218
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:11,lineHeight:15,color:AppColors_1.AppColors.grayText,marginTop:1}}>
|
|
219
|
+
{o("settings.general.languageDescription","Choose preferred display language")}
|
|
220
|
+
</react_native_1.Text>
|
|
221
|
+
</react_native_1.View>
|
|
222
|
+
</react_native_1.View>
|
|
223
|
+
|
|
224
|
+
<TouchableScale_1.default onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),de(!0)}}style={{flexDirection:"row",alignItems:"center",backgroundColor:AppColors_1.AppColors.purpleShade50,paddingHorizontal:10,paddingVertical:6,borderRadius:8,gap:5,borderWidth:1,borderColor:`${AppColors_1.AppColors.purple}20`}}>
|
|
225
|
+
<react_native_1.Text style={{fontSize:13}}>
|
|
226
|
+
{Z?.flag||"\u{1F310}"}
|
|
227
|
+
</react_native_1.Text>
|
|
228
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:12,color:AppColors_1.AppColors.purple}}>
|
|
229
|
+
{Z?.nativeName||Z?.name||"English"}
|
|
230
|
+
</react_native_1.Text>
|
|
231
|
+
<NetworkIcons_1.ForwardChevronIcon size={11}color={AppColors_1.AppColors.purple}/>
|
|
232
|
+
</TouchableScale_1.default>
|
|
233
|
+
</react_native_1.View>
|
|
181
234
|
</react_native_1.View>
|
|
182
235
|
|
|
183
236
|
|
|
@@ -203,16 +256,16 @@
|
|
|
203
256
|
</react_native_1.View>
|
|
204
257
|
</react_native_1.View>
|
|
205
258
|
|
|
206
|
-
{
|
|
259
|
+
{W!==B&&<TouchableScale_1.default onPress={()=>{fe(W)}}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}}>
|
|
207
260
|
<NetworkIcons_1.CheckIcon size={11}color={AppColors_1.AppColors.white}/>
|
|
208
261
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,color:AppColors_1.AppColors.white}}>
|
|
209
|
-
Save ({
|
|
262
|
+
Save ({W}%)
|
|
210
263
|
</react_native_1.Text>
|
|
211
264
|
</TouchableScale_1.default>}
|
|
212
265
|
</react_native_1.View>
|
|
213
266
|
|
|
214
267
|
<react_native_1.View style={{marginTop:6}}>
|
|
215
|
-
<Slider_1.default value={
|
|
268
|
+
<Slider_1.default value={W}onValueChange={ce}min={50}max={90}step={5}quickPresets={[50,60,70,80,90]}formatLabel={e=>`${Math.round(e)}%`}/>
|
|
216
269
|
</react_native_1.View>
|
|
217
270
|
</react_native_1.View>
|
|
218
271
|
|
|
@@ -235,7 +288,7 @@
|
|
|
235
288
|
</react_native_1.View>
|
|
236
289
|
|
|
237
290
|
<react_native_1.View style={{flexDirection:"row",backgroundColor:AppColors_1.AppColors.grayBackground,borderRadius:10,padding:3,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor}}>
|
|
238
|
-
{[{key:"slide",label:"Slide Up"},{key:"fade",label:"Fade"},{key:"none",label:"None"}].map(e=>{const r=
|
|
291
|
+
{[{key:"slide",label:"Slide Up"},{key:"fade",label:"Fade"},{key:"none",label:"None"}].map(e=>{const r=we===e.key;return<TouchableScale_1.default key={e.key}accessible={!0}accessibilityRole="button"accessibilityLabel={`Set transition animation to ${e.label}`}accessibilityState={{selected:r}}onPress={()=>_e(e.key)}style={{flex:1,paddingVertical:7,alignItems:"center",borderRadius:8,backgroundColor:r?AppColors_1.AppColors.purple:"transparent"}}>
|
|
239
292
|
<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}}>
|
|
240
293
|
{e.label}
|
|
241
294
|
</react_native_1.Text>
|
|
@@ -266,11 +319,11 @@
|
|
|
266
319
|
|
|
267
320
|
|
|
268
321
|
<react_native_1.View style={{marginTop:6,gap:6}}>
|
|
269
|
-
<TouchableScale_1.default accessible={!0}accessibilityRole="button"accessibilityLabel={`Default opening tab: ${
|
|
322
|
+
<TouchableScale_1.default accessible={!0}accessibilityRole="button"accessibilityLabel={`Default opening tab: ${f.find(e=>e.key===V)?.label||"APIs"}`}onPress={()=>ye(e=>!e)}style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",backgroundColor:AppColors_1.AppColors.grayBackground,borderRadius:10,borderWidth:1.5,borderColor:ee?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayBorderSecondary,paddingHorizontal:14,paddingVertical:11}}>
|
|
270
323
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:10,flex:1}}>
|
|
271
324
|
<react_native_1.View style={{width:8,height:8,borderRadius:4,backgroundColor:AppColors_1.AppColors.purple}}/>
|
|
272
325
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:13.5,lineHeight:18,color:AppColors_1.AppColors.primaryBlack}}>
|
|
273
|
-
{
|
|
326
|
+
{f.find(e=>e.key===V)?`#${f.find(e=>e.key===V)?.id} ${f.find(e=>e.key===V)?.label}`:"#1 APIs (Network)"}
|
|
274
327
|
</react_native_1.Text>
|
|
275
328
|
<react_native_1.View style={{backgroundColor:`${AppColors_1.AppColors.purple}14`,paddingHorizontal:6,paddingVertical:1.5,borderRadius:6}}>
|
|
276
329
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8.5,color:AppColors_1.AppColors.purple}}>
|
|
@@ -279,21 +332,21 @@
|
|
|
279
332
|
</react_native_1.View>
|
|
280
333
|
</react_native_1.View>
|
|
281
334
|
|
|
282
|
-
<react_native_1.View style={{transform:[{rotate:
|
|
335
|
+
<react_native_1.View style={{transform:[{rotate:ee?"180deg":"0deg"}]}}>
|
|
283
336
|
<NetworkIcons_1.ChevronDownIcon color={AppColors_1.AppColors.grayText}size={15}/>
|
|
284
337
|
</react_native_1.View>
|
|
285
338
|
</TouchableScale_1.default>
|
|
286
339
|
|
|
287
340
|
|
|
288
|
-
{
|
|
289
|
-
{
|
|
341
|
+
{ee&&<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}}>
|
|
342
|
+
{f.filter(e=>e.key==="apis"||v?.[e.key]||t?.[e.key]).map((e,r,C)=>{const h=V===e.key,x=r===C.length-1;return<TouchableScale_1.default key={e.key}accessible={!0}accessibilityRole="button"accessibilityLabel={`Select ${e.label} as default tab`}onPress={()=>{Ae(e.key),ye(!1)}}style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:14,paddingVertical:11,backgroundColor:h?`${AppColors_1.AppColors.purple}0F`:"transparent",borderBottomWidth:x?0:1,borderBottomColor:AppColors_1.AppColors.dividerColor}}>
|
|
290
343
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:10}}>
|
|
291
|
-
<react_native_1.View style={{width:6,height:6,borderRadius:3,backgroundColor:
|
|
292
|
-
<react_native_1.Text style={{fontFamily:
|
|
344
|
+
<react_native_1.View style={{width:6,height:6,borderRadius:3,backgroundColor:h?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}}/>
|
|
345
|
+
<react_native_1.Text style={{fontFamily:h?AppFonts_1.AppFonts.interBold:AppFonts_1.AppFonts.interMedium,fontSize:13,color:h?AppColors_1.AppColors.purple:AppColors_1.AppColors.primaryBlack}}>
|
|
293
346
|
#{e.id} {e.label}
|
|
294
347
|
</react_native_1.Text>
|
|
295
348
|
</react_native_1.View>
|
|
296
|
-
{
|
|
349
|
+
{h&&<NetworkIcons_1.CheckIcon size={14}color={AppColors_1.AppColors.purple}/>}
|
|
297
350
|
</TouchableScale_1.default>})}
|
|
298
351
|
</react_native_1.View>}
|
|
299
352
|
</react_native_1.View>
|
|
@@ -321,7 +374,7 @@
|
|
|
321
374
|
</react_native_1.View>
|
|
322
375
|
</react_native_1.View>
|
|
323
376
|
|
|
324
|
-
<TouchableScale_1.default accessible={!0}accessibilityRole="switch"accessibilityLabel="Toggle NPM Update Toast"accessibilityState={{checked:
|
|
377
|
+
<TouchableScale_1.default accessible={!0}accessibilityRole="switch"accessibilityLabel="Toggle NPM Update Toast"accessibilityState={{checked:G}}onPress={()=>xe(e=>!e)}style={{width:42,height:24,borderRadius:12,backgroundColor:G?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayBorderSecondary,padding:2,justifyContent:"center",alignItems:G?"flex-end":"flex-start"}}>
|
|
325
378
|
<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}}}/>
|
|
326
379
|
</TouchableScale_1.default>
|
|
327
380
|
</react_native_1.View>
|
|
@@ -352,7 +405,7 @@
|
|
|
352
405
|
</react_native_1.View>
|
|
353
406
|
</react_native_1.View>
|
|
354
407
|
|
|
355
|
-
<TouchableScale_1.default accessible={!0}accessibilityRole="switch"accessibilityLabel="Toggle auto RAM limit calculation"accessibilityState={{checked:
|
|
408
|
+
<TouchableScale_1.default accessible={!0}accessibilityRole="switch"accessibilityLabel="Toggle auto RAM limit calculation"accessibilityState={{checked:w}}onPress={()=>Fe(e=>!e)}style={{width:42,height:24,borderRadius:12,backgroundColor:w?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayBorderSecondary,padding:2,justifyContent:"center",alignItems:w?"flex-end":"flex-start"}}>
|
|
356
409
|
<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}}}/>
|
|
357
410
|
</TouchableScale_1.default>
|
|
358
411
|
</react_native_1.View>
|
|
@@ -361,20 +414,20 @@
|
|
|
361
414
|
|
|
362
415
|
|
|
363
416
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:10}}>
|
|
364
|
-
<react_native_1.View style={{width:32,height:32,borderRadius:8,backgroundColor:
|
|
365
|
-
<NetworkIcons_1.SignalIcon color={
|
|
417
|
+
<react_native_1.View style={{width:32,height:32,borderRadius:8,backgroundColor:w?`${AppColors_1.AppColors.purple}14`:AppColors_1.AppColors.grayBackground,alignItems:"center",justifyContent:"center"}}>
|
|
418
|
+
<NetworkIcons_1.SignalIcon color={w?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak}size={15}/>
|
|
366
419
|
</react_native_1.View>
|
|
367
420
|
<react_native_1.View style={{flex:1}}>
|
|
368
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:13.5,lineHeight:18,color:
|
|
421
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:13.5,lineHeight:18,color:w?AppColors_1.AppColors.primaryBlack:AppColors_1.AppColors.grayText}}>
|
|
369
422
|
Detected Available RAM
|
|
370
423
|
</react_native_1.Text>
|
|
371
424
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:11,lineHeight:15,color:AppColors_1.AppColors.grayText,marginTop:1}}>
|
|
372
|
-
{
|
|
425
|
+
{Q} MB available on device
|
|
373
426
|
</react_native_1.Text>
|
|
374
427
|
</react_native_1.View>
|
|
375
|
-
<react_native_1.View style={{paddingHorizontal:10,paddingVertical:5,borderRadius:8,backgroundColor:
|
|
376
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12,lineHeight:15,color:
|
|
377
|
-
{
|
|
428
|
+
<react_native_1.View style={{paddingHorizontal:10,paddingVertical:5,borderRadius:8,backgroundColor:w?`${AppColors_1.AppColors.purple}12`:AppColors_1.AppColors.grayBackground,borderWidth:1,borderColor:w?`${AppColors_1.AppColors.purple}26`:AppColors_1.AppColors.dividerColor}}>
|
|
429
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12,lineHeight:15,color:w?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayText}}>
|
|
430
|
+
{Q} MB
|
|
378
431
|
</react_native_1.Text>
|
|
379
432
|
</react_native_1.View>
|
|
380
433
|
</react_native_1.View>
|
|
@@ -383,17 +436,17 @@
|
|
|
383
436
|
<react_native_1.View style={{marginTop:4,paddingTop:8,borderTopWidth:1,borderTopColor:AppColors_1.AppColors.dividerColor,gap:6}}>
|
|
384
437
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between"}}>
|
|
385
438
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11.5,lineHeight:15,color:AppColors_1.AppColors.purple}}>
|
|
386
|
-
Profile: {
|
|
439
|
+
Profile: {O.profileName}
|
|
387
440
|
</react_native_1.Text>
|
|
388
|
-
<react_native_1.View style={{backgroundColor:
|
|
389
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,color:
|
|
390
|
-
{
|
|
441
|
+
<react_native_1.View style={{backgroundColor:w?`${AppColors_1.AppColors.emerald500}18`:`${AppColors_1.AppColors.purple}18`,paddingHorizontal:7,paddingVertical:2.5,borderRadius:4}}>
|
|
442
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,color:w?AppColors_1.AppColors.emerald500:AppColors_1.AppColors.purple}}>
|
|
443
|
+
{w?"AUTO-TUNED":"MANUAL"}
|
|
391
444
|
</react_native_1.Text>
|
|
392
445
|
</react_native_1.View>
|
|
393
446
|
</react_native_1.View>
|
|
394
447
|
|
|
395
448
|
<react_native_1.View style={{flexDirection:"row",flexWrap:"wrap",gap:8,marginTop:4}}>
|
|
396
|
-
{[{label:"Logs",value:
|
|
449
|
+
{[{label:"Logs",value:w?O.maxConsoleLogs:J,color:AppColors_1.AppColors.sky500},{label:"Analytics",value:w?O.maxAnalyticsEvents:re,color:AppColors_1.AppColors.purple},{label:"Crash",value:w?O.maxCrashRecords:ie,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`}}>
|
|
397
450
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,lineHeight:14,color:e.color}}>
|
|
398
451
|
{e.label}:
|
|
399
452
|
</react_native_1.Text>
|
|
@@ -437,13 +490,13 @@
|
|
|
437
490
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:10}}>
|
|
438
491
|
<react_native_1.View style={{flex:1}}>
|
|
439
492
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:13,color:AppColors_1.AppColors.primaryBlack}}>
|
|
440
|
-
Manual Memory Cleanup
|
|
493
|
+
{o("settings.memory.manualTitle","Manual Memory Cleanup")}
|
|
441
494
|
</react_native_1.Text>
|
|
442
495
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:11,color:AppColors_1.AppColors.grayText,marginTop:1}}>
|
|
443
|
-
Prune older entries across all log stores and free RAM
|
|
496
|
+
{o("settings.memory.manualDescription","Prune older entries across all log stores and free RAM")}
|
|
444
497
|
</react_native_1.Text>
|
|
445
498
|
</react_native_1.View>
|
|
446
|
-
<TouchableScale_1.default onPress={()=>{const e=(0,memoryManager_1.pruneAllLogs)("manual",.5);(0,toast_1.showToast)(
|
|
499
|
+
<TouchableScale_1.default onPress={()=>{const e=(0,memoryManager_1.pruneAllLogs)("manual",.5);(0,toast_1.showToast)(o("settings.memory.pruned",{count:e.totalPruned},`Pruned ${e.totalPruned} items from memory`))}}style={{backgroundColor:AppColors_1.AppColors.purple,paddingHorizontal:12,paddingVertical:8,borderRadius:8,flexDirection:"row",alignItems:"center",gap:5}}>
|
|
447
500
|
<NetworkIcons_1.TrashIcon size={13}color={AppColors_1.AppColors.white}/>
|
|
448
501
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11.5,color:AppColors_1.AppColors.white}}>
|
|
449
502
|
Prune Now
|
|
@@ -469,17 +522,17 @@
|
|
|
469
522
|
</react_native_1.View>
|
|
470
523
|
</react_native_1.View>
|
|
471
524
|
|
|
472
|
-
{
|
|
473
|
-
{["
|
|
525
|
+
{a({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}}>
|
|
526
|
+
{["png","jpeg","webp"].map(e=>{const r=Y===e;return<TouchableScale_1.default key={e}onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),ae(e),(0,toast_1.showToast)(`Screenshot format: ${e.toUpperCase()}`)}}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
527
|
<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}
|
|
528
|
+
{e.toUpperCase()}
|
|
476
529
|
</react_native_1.Text>
|
|
477
530
|
</TouchableScale_1.default>})}
|
|
478
531
|
</react_native_1.View>})}
|
|
479
532
|
|
|
480
|
-
{
|
|
481
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:
|
|
482
|
-
{
|
|
533
|
+
{a({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"),P(e=>!e),(0,toast_1.showToast)(`Auto-hide overlay: ${_?"OFF":"ON"}`)},right:<TouchableScale_1.default onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),P(e=>!e),(0,toast_1.showToast)(`Auto-hide overlay: ${_?"OFF":"ON"}`)}}style={{paddingHorizontal:10,paddingVertical:5,borderRadius:7,backgroundColor:_?`${AppColors_1.AppColors.emerald500}26`:`${AppColors_1.AppColors.grayText}20`,borderWidth:1,borderColor:_?`${AppColors_1.AppColors.emerald500}4D`:`${AppColors_1.AppColors.grayText}33`}}>
|
|
534
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:_?AppColors_1.AppColors.emerald500:AppColors_1.AppColors.grayText}}>
|
|
535
|
+
{_?o("settings.media.enabled","ON"):"OFF"}
|
|
483
536
|
</react_native_1.Text>
|
|
484
537
|
</TouchableScale_1.default>})}
|
|
485
538
|
</react_native_1.View>
|
|
@@ -500,32 +553,32 @@
|
|
|
500
553
|
</react_native_1.View>
|
|
501
554
|
</react_native_1.View>
|
|
502
555
|
|
|
503
|
-
{
|
|
504
|
-
{["Muted","App","Mic"].map(e=>{const r=
|
|
556
|
+
{a({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}}>
|
|
557
|
+
{[{key:"none",label:"Muted"},{key:"app",label:"App"},{key:"mic",label:"Mic"}].map(e=>{const r=le===e.key;return<TouchableScale_1.default key={e.key}onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),ne(e.key),(0,toast_1.showToast)(`Audio source: ${e.label}`)}}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
558
|
<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}
|
|
559
|
+
{e.label}
|
|
507
560
|
</react_native_1.Text>
|
|
508
561
|
</TouchableScale_1.default>})}
|
|
509
562
|
</react_native_1.View>})}
|
|
510
563
|
|
|
511
|
-
{
|
|
512
|
-
{[
|
|
564
|
+
{a({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}}>
|
|
565
|
+
{[15,24,30,60].map(e=>{const r=se===e;return<TouchableScale_1.default key={e}onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),pe(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
566
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:r?AppColors_1.AppColors.white:AppColors_1.AppColors.purple}}>
|
|
514
567
|
{e}fps
|
|
515
568
|
</react_native_1.Text>
|
|
516
569
|
</TouchableScale_1.default>})}
|
|
517
570
|
</react_native_1.View>})}
|
|
518
571
|
|
|
519
|
-
{
|
|
520
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:
|
|
521
|
-
{
|
|
572
|
+
{a({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"),$(e=>!e),(0,toast_1.showToast)(`GIF optimization: ${m?"OFF":"ON"}`)},right:<TouchableScale_1.default onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),$(e=>!e),(0,toast_1.showToast)(`GIF optimization: ${m?"OFF":"ON"}`)}}style={{paddingHorizontal:10,paddingVertical:5,borderRadius:7,backgroundColor:m?`${AppColors_1.AppColors.emerald500}26`:`${AppColors_1.AppColors.grayText}20`,borderWidth:1,borderColor:m?`${AppColors_1.AppColors.emerald500}4D`:`${AppColors_1.AppColors.grayText}33`}}>
|
|
573
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:m?AppColors_1.AppColors.emerald500:AppColors_1.AppColors.grayText}}>
|
|
574
|
+
{m?"ON":"OFF"}
|
|
522
575
|
</react_native_1.Text>
|
|
523
576
|
</TouchableScale_1.default>})}
|
|
524
577
|
</react_native_1.View>
|
|
525
578
|
|
|
526
579
|
|
|
527
580
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,padding:16}}>
|
|
528
|
-
{
|
|
581
|
+
{a({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`}}>
|
|
529
582
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,lineHeight:14,color:AppColors_1.AppColors.errorColor}}>
|
|
530
583
|
{o("settings.media.purgeCacheBtn","Purge All")}
|
|
531
584
|
</react_native_1.Text>
|
|
@@ -539,38 +592,38 @@
|
|
|
539
592
|
{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}}>
|
|
540
593
|
<react_native_1.View style={{flex:1}}>
|
|
541
594
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:13,lineHeight:17,color:AppColors_1.AppColors.primaryBlack}}>
|
|
542
|
-
{
|
|
595
|
+
{ge} of {f.length} Modules Active
|
|
543
596
|
</react_native_1.Text>
|
|
544
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:11,lineHeight:15,color:
|
|
545
|
-
{o(
|
|
597
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:11,lineHeight:15,color:k?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayText,marginTop:1}}>
|
|
598
|
+
{o(k?"settings.unsavedPending":"settings.allSynchronized")}
|
|
546
599
|
</react_native_1.Text>
|
|
547
600
|
</react_native_1.View>
|
|
548
601
|
|
|
549
|
-
<TouchableScale_1.default accessible={!0}accessibilityRole="button"accessibilityLabel="Save Changes"onPress={
|
|
550
|
-
<NetworkIcons_1.CheckIcon size={14}color={
|
|
551
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:13,lineHeight:17,color:
|
|
602
|
+
<TouchableScale_1.default accessible={!0}accessibilityRole="button"accessibilityLabel="Save Changes"onPress={je}style={{flexDirection:"row",alignItems:"center",gap:6,backgroundColor:k?AppColors_1.AppColors.purple:`${AppColors_1.AppColors.purple}22`,paddingHorizontal:18,paddingVertical:10,borderRadius:10}}>
|
|
603
|
+
<NetworkIcons_1.CheckIcon size={14}color={k?AppColors_1.AppColors.white:AppColors_1.AppColors.purple}/>
|
|
604
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:13,lineHeight:17,color:k?AppColors_1.AppColors.white:AppColors_1.AppColors.purple}}>
|
|
552
605
|
{o("settings.saveChanges")}
|
|
553
606
|
</react_native_1.Text>
|
|
554
607
|
</TouchableScale_1.default>
|
|
555
608
|
</react_native_1.View>}
|
|
556
|
-
</react_native_1.View>;let
|
|
609
|
+
</react_native_1.View>;let S=null;i==="apis"?S=<react_native_1.ScrollView style={{flex:1}}contentContainerStyle={{padding:16,paddingBottom:100,gap:12}}>
|
|
557
610
|
|
|
558
611
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,padding:16}}>
|
|
559
|
-
{
|
|
612
|
+
{a({icon:<NetworkIcons_1.TrashIcon color={AppColors_1.AppColors.errorColor}size={16}/>,label:o("settings.apis.clearNetworkLogs"),description:o("settings.apis.clearNetworkLogsDescription",{count:U.length}),isLast:!0,onPress:()=>{(0,networkLogger_1.clearNetworkLogs)(),Re(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`}}>
|
|
560
613
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,lineHeight:14,color:AppColors_1.AppColors.errorColor}}>
|
|
561
614
|
{o("common.clear")}
|
|
562
615
|
</react_native_1.Text>
|
|
563
616
|
</react_native_1.View>})}
|
|
564
617
|
</react_native_1.View>
|
|
565
618
|
<react_native_1.View style={{height:48}}/>
|
|
566
|
-
</react_native_1.ScrollView>:i==="logs"?
|
|
619
|
+
</react_native_1.ScrollView>:i==="logs"?S=<react_native_1.ScrollView style={{flex:1}}contentContainerStyle={{padding:16,paddingBottom:100,gap:12}}>
|
|
567
620
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,padding:16,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,gap:4}}>
|
|
568
|
-
{
|
|
621
|
+
{a({icon:<NetworkIcons_1.TerminalIcon color={AppColors_1.AppColors.purple}size={16}/>,label:o("settings.logs.maxConsoleLogs"),description:o("settings.logs.maxConsoleLogsDescription"),numericInput:{value:J,onChange:Ve,min:10,max:100,placeholder:"Enter max logs (10-100)"}})}
|
|
569
622
|
<react_native_1.View style={{height:1,backgroundColor:AppColors_1.AppColors.dividerColor}}/>
|
|
570
623
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:13,lineHeight:17,color:AppColors_1.AppColors.primaryBlack,paddingTop:6}}>
|
|
571
624
|
{o("settings.logs.logLevels")}
|
|
572
625
|
</react_native_1.Text>
|
|
573
|
-
{["info","warn","error"].map(e=>{const r=
|
|
626
|
+
{["info","warn","error"].map(e=>{const r=Te?.[e],C=e==="error"?AppColors_1.AppColors.errorColor:e==="warn"?AppColors_1.AppColors.warningIconGold:AppColors_1.AppColors.skyBlue,h=o(e==="info"?"settings.logs.showInfo":e==="warn"?"settings.logs.showWarn":"settings.logs.showError"),x=o(e==="info"?"settings.logs.showInfoDesc":e==="warn"?"settings.logs.showWarnDesc":"settings.logs.showErrorDesc");return a({icon:<react_native_1.View style={{width:12,height:12,borderRadius:6,backgroundColor:C}}/>,label:h,description:x,isLast:e==="error",onPress:()=>ve(l=>({...l,[e]:!l[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
627
|
{r&&<NetworkIcons_1.CheckIcon size={12}color={AppColors_1.AppColors.purple}/>}
|
|
575
628
|
</react_native_1.View>})})}
|
|
576
629
|
</react_native_1.View>
|
|
@@ -597,54 +650,54 @@
|
|
|
597
650
|
</react_native_1.View>
|
|
598
651
|
</react_native_1.View>
|
|
599
652
|
|
|
600
|
-
<TouchableScale_1.default accessible={!0}accessibilityRole="switch"accessibilityLabel="Toggle show duplicate logs"accessibilityState={{checked:
|
|
653
|
+
<TouchableScale_1.default accessible={!0}accessibilityRole="switch"accessibilityLabel="Toggle show duplicate logs"accessibilityState={{checked:j}}onPress={()=>me(e=>!e)}style={{width:42,height:24,borderRadius:12,backgroundColor:j?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayBorderSecondary,padding:2,justifyContent:"center",alignItems:j?"flex-end":"flex-start"}}>
|
|
601
654
|
<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}}}/>
|
|
602
655
|
</TouchableScale_1.default>
|
|
603
656
|
</react_native_1.View>
|
|
604
657
|
</react_native_1.View>
|
|
605
658
|
|
|
606
659
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,padding:16}}>
|
|
607
|
-
{
|
|
660
|
+
{a({icon:<NetworkIcons_1.TrashIcon color={AppColors_1.AppColors.errorColor}size={16}/>,label:o("settings.logs.clearConsoleLogs"),description:o("settings.logs.clearConsoleLogsDescription",{count:q.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`}}>
|
|
608
661
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,lineHeight:14,color:AppColors_1.AppColors.errorColor}}>
|
|
609
662
|
{o("common.clear")}
|
|
610
663
|
</react_native_1.Text>
|
|
611
664
|
</react_native_1.View>})}
|
|
612
665
|
</react_native_1.View>
|
|
613
666
|
<react_native_1.View style={{height:48}}/>
|
|
614
|
-
</react_native_1.ScrollView>:i==="analytics"?
|
|
667
|
+
</react_native_1.ScrollView>:i==="analytics"?S=<react_native_1.ScrollView style={{flex:1}}contentContainerStyle={{padding:16,paddingBottom:100,gap:12}}>
|
|
615
668
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,padding:16,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary}}>
|
|
616
|
-
{
|
|
669
|
+
{a({icon:<NetworkIcons_1.AnalyticsIcon color={AppColors_1.AppColors.purple}size={16}/>,label:o("settings.analytics.maxAnalyticsEvents"),description:o("settings.analytics.maxAnalyticsEventsDescription",{count:K.length}),numericInput:{value:re,onChange:ke,min:10,max:75,placeholder:"Enter max events (10-75)"},isLast:!0})}
|
|
617
670
|
</react_native_1.View>
|
|
618
671
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,padding:16}}>
|
|
619
|
-
{
|
|
672
|
+
{a({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)(),Ie(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`}}>
|
|
620
673
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,lineHeight:14,color:AppColors_1.AppColors.errorColor}}>
|
|
621
674
|
{o("common.clear")}
|
|
622
675
|
</react_native_1.Text>
|
|
623
676
|
</react_native_1.View>})}
|
|
624
677
|
</react_native_1.View>
|
|
625
678
|
<react_native_1.View style={{height:48}}/>
|
|
626
|
-
</react_native_1.ScrollView>:i==="redux"?
|
|
679
|
+
</react_native_1.ScrollView>:i==="redux"?S=<react_native_1.ScrollView style={{flex:1}}contentContainerStyle={{padding:16,paddingBottom:100,gap:12}}>
|
|
627
680
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,padding:16,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,gap:4}}>
|
|
628
|
-
{
|
|
629
|
-
{
|
|
681
|
+
{a({icon:<NetworkIcons_1.ReduxIcon color={AppColors_1.AppColors.purple}size={16}/>,label:o("settings.redux.autoRefresh"),description:o("settings.redux.autoRefreshDescription"),onPress:()=>Be(e=>!e),right:<react_native_1.View style={{width:22,height:22,borderRadius:6,borderWidth:2,borderColor:X?AppColors_1.AppColors.purple:AppColors_1.AppColors.grayTextWeak,backgroundColor:X?`${AppColors_1.AppColors.purple}1A`:"transparent",alignItems:"center",justifyContent:"center"}}>
|
|
682
|
+
{X&&<NetworkIcons_1.CheckIcon size={12}color={AppColors_1.AppColors.purple}/>}
|
|
630
683
|
</react_native_1.View>})}
|
|
631
684
|
<react_native_1.View style={{height:1,backgroundColor:AppColors_1.AppColors.dividerColor}}/>
|
|
632
|
-
{
|
|
685
|
+
{a({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:te,onSelect:ze},isLast:!0})}
|
|
633
686
|
</react_native_1.View>
|
|
634
687
|
|
|
635
688
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,padding:16}}>
|
|
636
|
-
{
|
|
689
|
+
{a({icon:<NetworkIcons_1.TrashIcon color={AppColors_1.AppColors.errorColor}size={16}/>,label:o("settings.redux.clearReduxState"),description:o(z?"settings.redux.clearReduxStateDescription":"settings.redux.clearReduxStateEmpty"),isLast:!0,onPress:()=>{He(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`}}>
|
|
637
690
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,lineHeight:14,color:AppColors_1.AppColors.errorColor}}>
|
|
638
691
|
{o("common.clear")}
|
|
639
692
|
</react_native_1.Text>
|
|
640
693
|
</react_native_1.View>})}
|
|
641
694
|
</react_native_1.View>
|
|
642
695
|
<react_native_1.View style={{height:48}}/>
|
|
643
|
-
</react_native_1.ScrollView>:i==="crash"?
|
|
696
|
+
</react_native_1.ScrollView>:i==="crash"?S=<react_native_1.ScrollView style={{flex:1}}contentContainerStyle={{padding:16,paddingBottom:100,gap:12}}>
|
|
644
697
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,padding:16,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,gap:4}}>
|
|
645
|
-
{
|
|
698
|
+
{a({icon:<NetworkIcons_1.LayersIcon color={AppColors_1.AppColors.purple}size={16}/>,label:o("settings.crash.maxCrashLogs"),description:o("settings.crash.maxCrashLogsDesc"),numericInput:{value:ie,onChange:Le,min:5,max:50,placeholder:"Enter max crashes (5-50)"}})}
|
|
646
699
|
<react_native_1.View style={{height:1,backgroundColor:AppColors_1.AppColors.dividerColor}}/>
|
|
647
|
-
{
|
|
700
|
+
{a({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`}}>
|
|
648
701
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10,lineHeight:13,color:AppColors_1.AppColors.greenColor}}>
|
|
649
702
|
{o("settings.protectedBadge")}
|
|
650
703
|
</react_native_1.Text>
|
|
@@ -652,19 +705,19 @@
|
|
|
652
705
|
</react_native_1.View>
|
|
653
706
|
|
|
654
707
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,padding:16}}>
|
|
655
|
-
{
|
|
708
|
+
{a({icon:<NetworkIcons_1.TrashIcon color={AppColors_1.AppColors.errorColor}size={16}/>,label:o("settings.crash.clearHistory"),description:o("settings.crash.clearHistoryDesc",{count:R?.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`}}>
|
|
656
709
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,lineHeight:14,color:AppColors_1.AppColors.errorColor}}>
|
|
657
710
|
{o("common.clear")}
|
|
658
711
|
</react_native_1.Text>
|
|
659
712
|
</react_native_1.View>})}
|
|
660
713
|
</react_native_1.View>
|
|
661
714
|
<react_native_1.View style={{height:48}}/>
|
|
662
|
-
</react_native_1.ScrollView>:i==="push"?
|
|
715
|
+
</react_native_1.ScrollView>:i==="push"?S=<react_native_1.ScrollView style={{flex:1}}contentContainerStyle={{padding:16,paddingBottom:100,gap:12}}>
|
|
663
716
|
|
|
664
717
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,padding:16,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,gap:4}}>
|
|
665
|
-
{
|
|
718
|
+
{a({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:De,onChange:Pe,min:10,max:200,placeholder:"Enter max logs (10-200)"}})}
|
|
666
719
|
<react_native_1.View style={{height:1,backgroundColor:AppColors_1.AppColors.dividerColor}}/>
|
|
667
|
-
{
|
|
720
|
+
{a({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
721
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10,lineHeight:13,color:AppColors_1.AppColors.greenColor}}>
|
|
669
722
|
ACTIVE
|
|
670
723
|
</react_native_1.Text>
|
|
@@ -673,30 +726,33 @@
|
|
|
673
726
|
|
|
674
727
|
|
|
675
728
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,padding:16,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,gap:8}}>
|
|
676
|
-
<react_native_1.
|
|
677
|
-
|
|
678
|
-
|
|
729
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:6,marginBottom:4}}>
|
|
730
|
+
<NetworkIcons_1.BoltIcon size={13}color={AppColors_1.AppColors.amber500}/>
|
|
731
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12,color:AppColors_1.AppColors.primaryBlack}}>
|
|
732
|
+
{o("settings.simulatePushTitle","SIMULATE TEST PUSH NOTIFICATIONS")}
|
|
733
|
+
</react_native_1.Text>
|
|
734
|
+
</react_native_1.View>
|
|
679
735
|
|
|
680
736
|
<react_native_1.View style={{flexDirection:"row",flexWrap:"wrap",gap:6}}>
|
|
681
|
-
<TouchableScale_1.default onPress={()=>{
|
|
737
|
+
<TouchableScale_1.default onPress={()=>{H("salesforce"),(0,toast_1.showToast)(o("settings.simulator.salesforce","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
738
|
<react_native_1.Text style={{fontSize:11,fontFamily:AppFonts_1.AppFonts.interSemiBold,color:AppColors_1.AppColors.sky600}}>
|
|
683
739
|
+ Salesforce MC
|
|
684
740
|
</react_native_1.Text>
|
|
685
741
|
</TouchableScale_1.default>
|
|
686
742
|
|
|
687
|
-
<TouchableScale_1.default onPress={()=>{
|
|
743
|
+
<TouchableScale_1.default onPress={()=>{H("fcm"),(0,toast_1.showToast)(o("settings.simulator.fcm","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
744
|
<react_native_1.Text style={{fontSize:11,fontFamily:AppFonts_1.AppFonts.interSemiBold,color:AppColors_1.AppColors.darkOrange}}>
|
|
689
745
|
+ Firebase FCM
|
|
690
746
|
</react_native_1.Text>
|
|
691
747
|
</TouchableScale_1.default>
|
|
692
748
|
|
|
693
|
-
<TouchableScale_1.default onPress={()=>{
|
|
749
|
+
<TouchableScale_1.default onPress={()=>{H("apns"),(0,toast_1.showToast)(o("settings.simulator.apns","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
750
|
<react_native_1.Text style={{fontSize:11,fontFamily:AppFonts_1.AppFonts.interSemiBold,color:AppColors_1.AppColors.primaryBlack}}>
|
|
695
751
|
+ Apple APNs
|
|
696
752
|
</react_native_1.Text>
|
|
697
753
|
</TouchableScale_1.default>
|
|
698
754
|
|
|
699
|
-
<TouchableScale_1.default onPress={()=>{
|
|
755
|
+
<TouchableScale_1.default onPress={()=>{H("deeplink"),(0,toast_1.showToast)(o("settings.simulator.deepLink","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
756
|
<react_native_1.Text style={{fontSize:11,fontFamily:AppFonts_1.AppFonts.interSemiBold,color:AppColors_1.AppColors.brandPurple}}>
|
|
701
757
|
+ Deep Link
|
|
702
758
|
</react_native_1.Text>
|
|
@@ -706,22 +762,82 @@
|
|
|
706
762
|
|
|
707
763
|
|
|
708
764
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,padding:16}}>
|
|
709
|
-
{
|
|
765
|
+
{a({icon:<NetworkIcons_1.TrashIcon color={AppColors_1.AppColors.errorColor}size={16}/>,label:o("push.clearTitle","Clear Push History"),description:`Permanently remove all ${I?.length||0} recorded notifications`,isLast:!0,onPress:()=>{$e(),react_native_1.Alert.alert(o("common.success","Success"),o("settings.pushHistoryCleared","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`}}>
|
|
710
766
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,lineHeight:14,color:AppColors_1.AppColors.errorColor}}>
|
|
711
767
|
{o("common.clear")}
|
|
712
768
|
</react_native_1.Text>
|
|
713
769
|
</react_native_1.View>})}
|
|
714
770
|
</react_native_1.View>
|
|
715
771
|
<react_native_1.View style={{height:48}}/>
|
|
716
|
-
</react_native_1.ScrollView>:i==="
|
|
772
|
+
</react_native_1.ScrollView>:i==="socket"?S=<react_native_1.ScrollView style={{flex:1}}contentContainerStyle={{padding:16,paddingBottom:100,gap:12}}>
|
|
773
|
+
|
|
774
|
+
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,padding:16,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,gap:4}}>
|
|
775
|
+
{a({icon:<NetworkIcons_1.LayersIcon color={AppColors_1.AppColors.purple}size={16}/>,label:"Max WebSocket Connections",description:"Ring buffer limit for active & closed socket sessions (10-200)",numericInput:{value:We,onChange:Oe,min:10,max:200,placeholder:"Enter max sockets (10-200)"}})}
|
|
776
|
+
<react_native_1.View style={{height:1,backgroundColor:AppColors_1.AppColors.dividerColor}}/>
|
|
777
|
+
{a({icon:<NetworkIcons_1.WebsocketIcon color={AppColors_1.AppColors.greenColor}size={16}/>,label:"Global WebSocket Interceptor",description:"Automatic capture for WebSocket, WSS & Socket.IO traffic",isLast:!0,right:<react_native_1.View style={{paddingHorizontal:8,paddingVertical:4,borderRadius:6,backgroundColor:`${AppColors_1.AppColors.greenColor}1F`}}>
|
|
778
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10,lineHeight:13,color:AppColors_1.AppColors.greenColor}}>
|
|
779
|
+
ACTIVE
|
|
780
|
+
</react_native_1.Text>
|
|
781
|
+
</react_native_1.View>})}
|
|
782
|
+
</react_native_1.View>
|
|
783
|
+
|
|
717
784
|
|
|
718
785
|
<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.
|
|
720
|
-
|
|
721
|
-
|
|
786
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:6,marginBottom:4}}>
|
|
787
|
+
<NetworkIcons_1.BoltIcon size={13}color={AppColors_1.AppColors.amber500}/>
|
|
788
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12,color:AppColors_1.AppColors.primaryBlack}}>
|
|
789
|
+
{o("settings.simulateSocketTitle","SIMULATE TEST SOCKET CONNECTIONS")}
|
|
790
|
+
</react_native_1.Text>
|
|
791
|
+
</react_native_1.View>
|
|
792
|
+
|
|
793
|
+
<react_native_1.View style={{flexDirection:"row",flexWrap:"wrap",gap:6}}>
|
|
794
|
+
<TouchableScale_1.default onPress={()=>{D("chat"),(0,toast_1.showToast)(o("settings.simulator.chat","Simulated Real-time Chat WebSocket session"))}}style={{backgroundColor:`${AppColors_1.AppColors.blue600}14`,borderColor:`${AppColors_1.AppColors.blue600}33`,borderWidth:1,paddingHorizontal:10,paddingVertical:6,borderRadius:8}}>
|
|
795
|
+
<react_native_1.Text style={{fontSize:11,fontFamily:AppFonts_1.AppFonts.interSemiBold,color:AppColors_1.AppColors.blue600}}>
|
|
796
|
+
+ Chat Room (WS)
|
|
797
|
+
</react_native_1.Text>
|
|
798
|
+
</TouchableScale_1.default>
|
|
799
|
+
|
|
800
|
+
<TouchableScale_1.default onPress={()=>{D("crypto"),(0,toast_1.showToast)(o("settings.simulator.crypto","Simulated Binance Crypto Ticker stream"))}}style={{backgroundColor:`${AppColors_1.AppColors.emerald600}14`,borderColor:`${AppColors_1.AppColors.emerald600}33`,borderWidth:1,paddingHorizontal:10,paddingVertical:6,borderRadius:8}}>
|
|
801
|
+
<react_native_1.Text style={{fontSize:11,fontFamily:AppFonts_1.AppFonts.interSemiBold,color:AppColors_1.AppColors.emerald600}}>
|
|
802
|
+
+ Crypto Feed (WSS)
|
|
803
|
+
</react_native_1.Text>
|
|
804
|
+
</TouchableScale_1.default>
|
|
805
|
+
|
|
806
|
+
<TouchableScale_1.default onPress={()=>{D("socketio"),(0,toast_1.showToast)(o("settings.simulator.socketio","Simulated Socket.IO v4 session"))}}style={{backgroundColor:`${AppColors_1.AppColors.violet600}14`,borderColor:`${AppColors_1.AppColors.violet600}33`,borderWidth:1,paddingHorizontal:10,paddingVertical:6,borderRadius:8}}>
|
|
807
|
+
<react_native_1.Text style={{fontSize:11,fontFamily:AppFonts_1.AppFonts.interSemiBold,color:AppColors_1.AppColors.violet600}}>
|
|
808
|
+
+ Socket.IO Room
|
|
809
|
+
</react_native_1.Text>
|
|
810
|
+
</TouchableScale_1.default>
|
|
811
|
+
|
|
812
|
+
<TouchableScale_1.default onPress={()=>{D("echo"),(0,toast_1.showToast)(o("settings.simulator.echo","Simulated WebSocket Echo test"))}}style={{backgroundColor:`${AppColors_1.AppColors.brandPurple}14`,borderColor:`${AppColors_1.AppColors.brandPurple}33`,borderWidth:1,paddingHorizontal:10,paddingVertical:6,borderRadius:8}}>
|
|
813
|
+
<react_native_1.Text style={{fontSize:11,fontFamily:AppFonts_1.AppFonts.interSemiBold,color:AppColors_1.AppColors.brandPurple}}>
|
|
814
|
+
+ Echo Test
|
|
815
|
+
</react_native_1.Text>
|
|
816
|
+
</TouchableScale_1.default>
|
|
817
|
+
</react_native_1.View>
|
|
818
|
+
</react_native_1.View>
|
|
819
|
+
|
|
820
|
+
|
|
821
|
+
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,padding:16}}>
|
|
822
|
+
{a({icon:<NetworkIcons_1.TrashIcon color={AppColors_1.AppColors.errorColor}size={16}/>,label:o("socket.clearTitle","Clear All WebSocket Logs").replace("All WebSocket Logs","Socket History"),description:`Permanently remove all ${L?.length||0} recorded sessions`,isLast:!0,onPress:()=>{Me(),react_native_1.Alert.alert(o("common.success","Success"),o("settings.socketHistoryCleared","WebSocket 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`}}>
|
|
823
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,lineHeight:14,color:AppColors_1.AppColors.errorColor}}>
|
|
824
|
+
{o("common.clear")}
|
|
825
|
+
</react_native_1.Text>
|
|
826
|
+
</react_native_1.View>})}
|
|
827
|
+
</react_native_1.View>
|
|
828
|
+
<react_native_1.View style={{height:48}}/>
|
|
829
|
+
</react_native_1.ScrollView>:i==="media"&&(S=<react_native_1.ScrollView style={{flex:1}}contentContainerStyle={{padding:16,paddingBottom:100,gap:12}}>
|
|
830
|
+
|
|
831
|
+
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,padding:16,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,gap:8}}>
|
|
832
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:6,marginBottom:4}}>
|
|
833
|
+
<NetworkIcons_1.BoltIcon size={13}color={AppColors_1.AppColors.amber500}/>
|
|
834
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12,color:AppColors_1.AppColors.primaryBlack}}>
|
|
835
|
+
{o("settings.directCaptureShortcuts","DIRECT CAPTURE SHORTCUTS")}
|
|
836
|
+
</react_native_1.Text>
|
|
837
|
+
</react_native_1.View>
|
|
722
838
|
|
|
723
839
|
<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:
|
|
840
|
+
<TouchableScale_1.default onPress={async()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),await capture_1.ScreenCapture.takeScreenshot({format:Y.toLowerCase(),quality:.9,hideInspector:_})&&((0,NativeInspector_1.triggerNativeHaptic)("success"),(0,toast_1.showToast)(o("settings.simulator.screenshotSaved","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
841
|
<NetworkIcons_1.CameraIcon color={AppColors_1.AppColors.purple}size={14}/>
|
|
726
842
|
<react_native_1.Text style={{fontSize:11,fontFamily:AppFonts_1.AppFonts.interBold,color:AppColors_1.AppColors.purple}}>
|
|
727
843
|
Take Screenshot
|
|
@@ -746,17 +862,17 @@
|
|
|
746
862
|
</react_native_1.View>
|
|
747
863
|
</react_native_1.View>
|
|
748
864
|
|
|
749
|
-
{
|
|
750
|
-
{["
|
|
865
|
+
{a({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}}>
|
|
866
|
+
{["png","jpeg","webp"].map(e=>{const r=Y===e;return<TouchableScale_1.default key={e}onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),ae(e),(0,toast_1.showToast)(`Screenshot format: ${e.toUpperCase()}`)}}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
867
|
<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}
|
|
868
|
+
{e.toUpperCase()}
|
|
753
869
|
</react_native_1.Text>
|
|
754
870
|
</TouchableScale_1.default>})}
|
|
755
871
|
</react_native_1.View>})}
|
|
756
872
|
|
|
757
|
-
{
|
|
758
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:
|
|
759
|
-
{
|
|
873
|
+
{a({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"),P(e=>!e),(0,toast_1.showToast)(`Auto-hide overlay: ${_?"OFF":"ON"}`)},right:<TouchableScale_1.default onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),P(e=>!e),(0,toast_1.showToast)(`Auto-hide overlay: ${_?"OFF":"ON"}`)}}style={{paddingHorizontal:10,paddingVertical:5,borderRadius:7,backgroundColor:_?`${AppColors_1.AppColors.emerald500}26`:`${AppColors_1.AppColors.grayText}20`,borderWidth:1,borderColor:_?`${AppColors_1.AppColors.emerald500}4D`:`${AppColors_1.AppColors.grayText}33`}}>
|
|
874
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:_?AppColors_1.AppColors.emerald500:AppColors_1.AppColors.grayText}}>
|
|
875
|
+
{_?o("settings.media.enabled","ON"):"OFF"}
|
|
760
876
|
</react_native_1.Text>
|
|
761
877
|
</TouchableScale_1.default>})}
|
|
762
878
|
</react_native_1.View>
|
|
@@ -777,46 +893,49 @@
|
|
|
777
893
|
</react_native_1.View>
|
|
778
894
|
</react_native_1.View>
|
|
779
895
|
|
|
780
|
-
{
|
|
781
|
-
{["Muted","App","Mic"].map(e=>{const r=
|
|
896
|
+
{a({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}}>
|
|
897
|
+
{[{key:"none",label:"Muted"},{key:"app",label:"App"},{key:"mic",label:"Mic"}].map(e=>{const r=le===e.key;return<TouchableScale_1.default key={e.key}onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),ne(e.key),(0,toast_1.showToast)(`Audio source: ${e.label}`)}}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
898
|
<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}
|
|
899
|
+
{e.label}
|
|
784
900
|
</react_native_1.Text>
|
|
785
901
|
</TouchableScale_1.default>})}
|
|
786
902
|
</react_native_1.View>})}
|
|
787
903
|
|
|
788
|
-
{
|
|
789
|
-
{[
|
|
904
|
+
{a({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}}>
|
|
905
|
+
{[15,24,30,60].map(e=>{const r=se===e;return<TouchableScale_1.default key={e}onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),pe(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
906
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:r?AppColors_1.AppColors.white:AppColors_1.AppColors.purple}}>
|
|
791
907
|
{e}fps
|
|
792
908
|
</react_native_1.Text>
|
|
793
909
|
</TouchableScale_1.default>})}
|
|
794
910
|
</react_native_1.View>})}
|
|
795
911
|
|
|
796
|
-
{
|
|
797
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:
|
|
798
|
-
{
|
|
912
|
+
{a({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"),$(e=>!e),(0,toast_1.showToast)(`GIF optimization: ${m?"OFF":"ON"}`)},right:<TouchableScale_1.default onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),$(e=>!e),(0,toast_1.showToast)(`GIF optimization: ${m?"OFF":"ON"}`)}}style={{paddingHorizontal:10,paddingVertical:5,borderRadius:7,backgroundColor:m?`${AppColors_1.AppColors.emerald500}26`:`${AppColors_1.AppColors.grayText}20`,borderWidth:1,borderColor:m?`${AppColors_1.AppColors.emerald500}4D`:`${AppColors_1.AppColors.grayText}33`}}>
|
|
913
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:m?AppColors_1.AppColors.emerald500:AppColors_1.AppColors.grayText}}>
|
|
914
|
+
{m?"ON":"OFF"}
|
|
799
915
|
</react_native_1.Text>
|
|
800
916
|
</TouchableScale_1.default>})}
|
|
801
917
|
</react_native_1.View>
|
|
802
918
|
|
|
803
919
|
|
|
804
920
|
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,padding:16}}>
|
|
805
|
-
{
|
|
921
|
+
{a({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`}}>
|
|
806
922
|
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,lineHeight:14,color:AppColors_1.AppColors.errorColor}}>
|
|
807
923
|
{o("settings.media.purgeCacheBtn","Purge All")}
|
|
808
924
|
</react_native_1.Text>
|
|
809
925
|
</react_native_1.View>})}
|
|
810
926
|
</react_native_1.View>
|
|
811
927
|
<react_native_1.View style={{height:48}}/>
|
|
812
|
-
</react_native_1.ScrollView>);const
|
|
928
|
+
</react_native_1.ScrollView>);const N=(0,react_1.useRef)(new react_native_1.Animated.Value(0)).current;return(0,react_1.useEffect)(()=>{i!=="main"&&(N.setValue(0),react_native_1.Animated.spring(N,{toValue:1,friction:8,tension:65,useNativeDriver:!0}).start())},[i]),<react_native_1.View style={{flex:1,backgroundColor:AppColors_1.AppColors.grayBackground}}>
|
|
813
929
|
|
|
814
930
|
<react_native_1.View style={[react_native_1.StyleSheet.absoluteFill,i!=="main"&&{pointerEvents:"none"}]}>
|
|
815
|
-
{
|
|
931
|
+
{Ge()}
|
|
816
932
|
</react_native_1.View>
|
|
817
933
|
|
|
818
934
|
|
|
819
|
-
{i!=="main"&&<react_native_1.Animated.View style={[react_native_1.StyleSheet.absoluteFill,{backgroundColor:AppColors_1.AppColors.grayBackground,opacity:
|
|
820
|
-
{
|
|
935
|
+
{i!=="main"&&<react_native_1.Animated.View style={[react_native_1.StyleSheet.absoluteFill,{backgroundColor:AppColors_1.AppColors.grayBackground,opacity:N,transform:[{translateX:N.interpolate({inputRange:[0,1],outputRange:[30,0]})}]}]}>
|
|
936
|
+
{S}
|
|
821
937
|
</react_native_1.Animated.View>}
|
|
938
|
+
|
|
939
|
+
|
|
940
|
+
<LanguageSelectorModal_1.LanguageSelectorModal visible={Ee}onClose={()=>de(!1)}/>
|
|
822
941
|
</react_native_1.View>};exports.default=SettingsPanel;
|