react-native-inapp-inspector 2.3.24 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -5
- package/dist/commonjs/components/AnalyticsDetail.js +15 -12
- package/dist/commonjs/components/AnalyticsEventCard.js +11 -8
- package/dist/commonjs/components/AppHeaderLogo.js +4 -6
- package/dist/commonjs/components/ConsoleLogCard.d.ts +1 -0
- package/dist/commonjs/components/ConsoleLogCard.js +92 -80
- package/dist/commonjs/components/EndOfListFooter.d.ts +5 -1
- package/dist/commonjs/components/EndOfListFooter.js +27 -5
- package/dist/commonjs/components/Inspector/AnalyticsFilterModal.js +1 -1
- package/dist/commonjs/components/Inspector/AnalyticsTab.js +27 -299
- package/dist/commonjs/components/Inspector/ConsoleTab.js +36 -94
- package/dist/commonjs/components/Inspector/CrashDetail.js +11 -10
- package/dist/commonjs/components/Inspector/CrashTab.js +43 -33
- package/dist/commonjs/components/Inspector/DebuggingTab.js +13 -13
- package/dist/commonjs/components/Inspector/DeviceInfoTab.js +107 -71
- package/dist/commonjs/components/Inspector/FabLauncher.js +8 -9
- package/dist/commonjs/components/Inspector/InspectorHeader.js +93 -70
- package/dist/commonjs/components/Inspector/LogDetail.js +10 -7
- package/dist/commonjs/components/Inspector/MainScreen.js +66 -30
- package/dist/commonjs/components/Inspector/MediaGalleryTab.js +1 -1
- package/dist/commonjs/components/Inspector/MediaPreviewModal.js +3 -3
- package/dist/commonjs/components/Inspector/NetworkDetail.js +29 -28
- package/dist/commonjs/components/Inspector/NetworkFilterModal.js +1 -1
- package/dist/commonjs/components/Inspector/NetworkTab.js +87 -85
- package/dist/commonjs/components/Inspector/NpmStarPrompt.js +3 -3
- package/dist/commonjs/components/Inspector/NpmUpdateToast.js +21 -22
- package/dist/commonjs/components/Inspector/PushCard.d.ts +4 -0
- package/dist/commonjs/components/Inspector/PushCard.js +89 -0
- package/dist/commonjs/components/Inspector/PushDetail.d.ts +4 -0
- package/dist/commonjs/components/Inspector/PushDetail.js +190 -0
- package/dist/commonjs/components/Inspector/PushTab.d.ts +3 -0
- package/dist/commonjs/components/Inspector/PushTab.js +45 -0
- package/dist/commonjs/components/Inspector/ReduxDetail.js +16 -13
- package/dist/commonjs/components/Inspector/ReduxTab.js +109 -106
- package/dist/commonjs/components/Inspector/SettingsPanel.js +230 -134
- package/dist/commonjs/components/Inspector/StorageTab.js +55 -51
- package/dist/commonjs/components/Inspector/TabBar.js +30 -26
- package/dist/commonjs/components/Inspector/UpdateAvailableModal.js +2 -2
- package/dist/commonjs/components/JsonViewer.js +151 -159
- package/dist/commonjs/components/LogCard.js +34 -38
- package/dist/commonjs/components/LogSyntaxHighlighter.js +3 -3
- package/dist/commonjs/components/ModuleErrorBoundary.d.ts +24 -0
- package/dist/commonjs/components/ModuleErrorBoundary.js +33 -0
- package/dist/commonjs/components/NetworkIcons.d.ts +3 -3
- package/dist/commonjs/components/NetworkIcons.js +10 -6
- package/dist/commonjs/components/SegmentedTabs.d.ts +8 -2
- package/dist/commonjs/components/SegmentedTabs.js +11 -7
- package/dist/commonjs/components/ShareButton.d.ts +11 -0
- package/dist/commonjs/components/ShareButton.js +6 -0
- package/dist/commonjs/constants/index.js +1 -1
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -1
- package/dist/commonjs/customHooks/crashHandler.js +4 -4
- package/dist/commonjs/customHooks/networkLogger.js +1 -2
- package/dist/commonjs/customHooks/pushNotificationLogger.d.ts +19 -0
- package/dist/commonjs/customHooks/pushNotificationLogger.js +1 -0
- package/dist/commonjs/helpers/index.d.ts +6 -0
- package/dist/commonjs/helpers/index.js +4 -4
- package/dist/commonjs/helpers/memoryManager.d.ts +2 -2
- package/dist/commonjs/helpers/memoryManager.js +1 -1
- package/dist/commonjs/helpers/remoteConfig.js +1 -1
- package/dist/commonjs/helpers/settingsStore.d.ts +1 -0
- package/dist/commonjs/helpers/settingsStore.js +1 -1
- package/dist/commonjs/helpers/shareFormatter.d.ts +13 -0
- package/dist/commonjs/helpers/shareFormatter.js +7 -0
- package/dist/commonjs/i18n/index.d.ts +35 -0
- package/dist/commonjs/i18n/index.js +1 -1
- package/dist/commonjs/i18n/locales/ar.json +1 -0
- package/dist/commonjs/i18n/locales/de.json +1 -0
- package/dist/commonjs/i18n/locales/en.json +1 -1
- package/dist/commonjs/i18n/locales/es.json +1 -0
- package/dist/commonjs/i18n/locales/fr.json +1 -0
- package/dist/commonjs/i18n/locales/hi.json +1 -0
- package/dist/commonjs/i18n/locales/ja.json +1 -0
- package/dist/commonjs/i18n/locales/ko.json +1 -0
- package/dist/commonjs/i18n/locales/pt.json +1 -0
- package/dist/commonjs/i18n/locales/ru.json +1 -0
- package/dist/commonjs/i18n/locales/zh.json +1 -0
- package/dist/commonjs/index.d.ts +6 -5
- package/dist/commonjs/index.js +4 -4
- package/dist/commonjs/push.d.ts +4 -0
- package/dist/commonjs/push.js +1 -0
- package/dist/commonjs/styles/AppColors.d.ts +40 -0
- package/dist/commonjs/styles/AppColors.js +1 -1
- package/dist/commonjs/styles/index.js +1 -1
- package/dist/commonjs/types/enums.d.ts +30 -20
- package/dist/commonjs/types/enums.js +1 -1
- package/dist/commonjs/types/index.d.ts +10 -0
- package/dist/commonjs/types/interfaces.d.ts +63 -7
- package/dist/esm/components/AnalyticsDetail.js +84 -81
- package/dist/esm/components/AnalyticsEventCard.js +20 -17
- package/dist/esm/components/AppHeaderLogo.js +5 -7
- package/dist/esm/components/ConsoleLogCard.d.ts +1 -0
- package/dist/esm/components/ConsoleLogCard.js +98 -86
- package/dist/esm/components/EndOfListFooter.d.ts +5 -1
- package/dist/esm/components/EndOfListFooter.js +36 -14
- package/dist/esm/components/Inspector/AnalyticsFilterModal.js +14 -14
- package/dist/esm/components/Inspector/AnalyticsTab.js +44 -316
- package/dist/esm/components/Inspector/ConsoleTab.js +55 -113
- package/dist/esm/components/Inspector/CrashDetail.js +53 -52
- package/dist/esm/components/Inspector/CrashTab.js +74 -64
- package/dist/esm/components/Inspector/DebuggingTab.js +33 -33
- package/dist/esm/components/Inspector/DeviceInfoTab.js +174 -138
- package/dist/esm/components/Inspector/FabLauncher.js +41 -42
- package/dist/esm/components/Inspector/InspectorHeader.js +138 -115
- package/dist/esm/components/Inspector/LogDetail.js +24 -21
- package/dist/esm/components/Inspector/MainScreen.js +98 -62
- package/dist/esm/components/Inspector/MediaGalleryTab.js +1 -1
- package/dist/esm/components/Inspector/MediaPreviewModal.js +31 -31
- package/dist/esm/components/Inspector/NetworkDetail.js +88 -87
- package/dist/esm/components/Inspector/NetworkFilterModal.js +8 -8
- package/dist/esm/components/Inspector/NetworkTab.js +132 -130
- package/dist/esm/components/Inspector/NpmStarPrompt.js +42 -42
- package/dist/esm/components/Inspector/NpmUpdateToast.js +45 -46
- package/dist/esm/components/Inspector/PushCard.d.ts +4 -0
- package/dist/esm/components/Inspector/PushCard.js +89 -0
- package/dist/esm/components/Inspector/PushDetail.d.ts +4 -0
- package/dist/esm/components/Inspector/PushDetail.js +190 -0
- package/dist/esm/components/Inspector/PushTab.d.ts +3 -0
- package/dist/esm/components/Inspector/PushTab.js +45 -0
- package/dist/esm/components/Inspector/ReduxDetail.js +40 -37
- package/dist/esm/components/Inspector/ReduxTab.js +155 -152
- package/dist/esm/components/Inspector/SettingsPanel.js +380 -284
- package/dist/esm/components/Inspector/StorageTab.js +177 -173
- package/dist/esm/components/Inspector/TabBar.js +38 -34
- package/dist/esm/components/Inspector/UpdateAvailableModal.js +1 -1
- package/dist/esm/components/JsonViewer.js +161 -169
- package/dist/esm/components/LogCard.js +38 -42
- package/dist/esm/components/LogSyntaxHighlighter.js +1 -1
- package/dist/esm/components/ModuleErrorBoundary.d.ts +24 -0
- package/dist/esm/components/ModuleErrorBoundary.js +33 -0
- package/dist/esm/components/NetworkIcons.d.ts +3 -3
- package/dist/esm/components/NetworkIcons.js +7 -3
- package/dist/esm/components/SegmentedTabs.d.ts +8 -2
- package/dist/esm/components/SegmentedTabs.js +12 -8
- package/dist/esm/components/ShareButton.d.ts +11 -0
- package/dist/esm/components/ShareButton.js +6 -0
- package/dist/esm/constants/index.js +1 -1
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/customHooks/crashHandler.js +6 -6
- package/dist/esm/customHooks/networkLogger.js +1 -2
- package/dist/esm/customHooks/pushNotificationLogger.d.ts +19 -0
- package/dist/esm/customHooks/pushNotificationLogger.js +1 -0
- package/dist/esm/helpers/index.d.ts +6 -0
- package/dist/esm/helpers/index.js +4 -4
- package/dist/esm/helpers/memoryManager.d.ts +2 -2
- package/dist/esm/helpers/memoryManager.js +1 -1
- package/dist/esm/helpers/remoteConfig.js +1 -1
- package/dist/esm/helpers/settingsStore.d.ts +1 -0
- package/dist/esm/helpers/settingsStore.js +1 -1
- package/dist/esm/helpers/shareFormatter.d.ts +13 -0
- package/dist/esm/helpers/shareFormatter.js +7 -0
- package/dist/esm/i18n/index.d.ts +35 -0
- package/dist/esm/i18n/index.js +1 -1
- package/dist/esm/i18n/locales/ar.json +1 -0
- package/dist/esm/i18n/locales/de.json +1 -0
- package/dist/esm/i18n/locales/en.json +1 -1
- package/dist/esm/i18n/locales/es.json +1 -0
- package/dist/esm/i18n/locales/fr.json +1 -0
- package/dist/esm/i18n/locales/hi.json +1 -0
- package/dist/esm/i18n/locales/ja.json +1 -0
- package/dist/esm/i18n/locales/ko.json +1 -0
- package/dist/esm/i18n/locales/pt.json +1 -0
- package/dist/esm/i18n/locales/ru.json +1 -0
- package/dist/esm/i18n/locales/zh.json +1 -0
- package/dist/esm/index.d.ts +6 -5
- package/dist/esm/index.js +7 -7
- package/dist/esm/push.d.ts +4 -0
- package/dist/esm/push.js +1 -0
- package/dist/esm/styles/AppColors.d.ts +40 -0
- package/dist/esm/styles/AppColors.js +1 -1
- package/dist/esm/styles/index.js +1 -1
- package/dist/esm/types/enums.d.ts +30 -20
- package/dist/esm/types/enums.js +1 -1
- package/dist/esm/types/index.d.ts +10 -0
- package/dist/esm/types/interfaces.d.ts +63 -7
- package/package.json +53 -24
- package/src/native/NativeInspector.ts +0 -1
- package/dist/commonjs/bundle.d.ts +0 -2
- package/dist/commonjs/bundle.js +0 -1
- package/dist/commonjs/components/BrandSquareIcon.d.ts +0 -5
- package/dist/commonjs/components/BrandSquareIcon.js +0 -112
- package/dist/commonjs/components/Inspector/BundleTab.d.ts +0 -48
- package/dist/commonjs/components/Inspector/BundleTab.js +0 -1297
- package/dist/commonjs/components/Inspector/PerformanceTab.d.ts +0 -27
- package/dist/commonjs/components/Inspector/PerformanceTab.js +0 -454
- package/dist/commonjs/customHooks/bundleAnalyzer.d.ts +0 -115
- package/dist/commonjs/customHooks/bundleAnalyzer.js +0 -1
- package/dist/commonjs/customHooks/performanceTracker.d.ts +0 -144
- package/dist/commonjs/customHooks/performanceTracker.js +0 -63
- package/dist/commonjs/performance.d.ts +0 -2
- package/dist/commonjs/performance.js +0 -1
- package/dist/esm/bundle.d.ts +0 -2
- package/dist/esm/bundle.js +0 -1
- package/dist/esm/components/BrandSquareIcon.d.ts +0 -5
- package/dist/esm/components/BrandSquareIcon.js +0 -112
- package/dist/esm/components/Inspector/BundleTab.d.ts +0 -48
- package/dist/esm/components/Inspector/BundleTab.js +0 -1297
- package/dist/esm/components/Inspector/PerformanceTab.d.ts +0 -27
- package/dist/esm/components/Inspector/PerformanceTab.js +0 -454
- package/dist/esm/customHooks/bundleAnalyzer.d.ts +0 -115
- package/dist/esm/customHooks/bundleAnalyzer.js +0 -1
- package/dist/esm/customHooks/performanceTracker.d.ts +0 -144
- package/dist/esm/customHooks/performanceTracker.js +0 -63
- package/dist/esm/performance.d.ts +0 -2
- package/dist/esm/performance.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import De,{useMemo as A,useState as L}from"react";import{useTranslation as Ie}from"../../i18n";import{Pressable as Q,ScrollView as
|
|
2
|
-
`).map(t=>t.trim()).filter(t=>t.length>0).map((t,v)=>Ve(t,v===0)):[],[O]),
|
|
1
|
+
import De,{useMemo as A,useState as L}from"react";import{useTranslation as Ie}from"../../i18n";import{Pressable as Q,ScrollView as Re,StyleSheet as Ne,Text as T,TextInput as He,View as C}from"react-native";import{useInspector as Pe}from"./InspectorContext";import X from"../HighlightText";import Ce from"../JsonViewer";import M from"../CopyButton";import Ae from"../ShareButton";import Y from"../SegmentedTabs";import{ClearIcon as Le,SearchIcon as Me,PrettyIcon as Ee,RawIcon as Te,TableIcon as Oe,LayersIcon as Se,TerminalIcon as Ue,RequestIcon as Je,InfoCircleIcon as Ke,DocIcon as Ge,ExternalLinkIcon as Qe,FolderIcon as Xe}from"../NetworkIcons";import{AppColors as e}from"../../styles/AppColors";import{AppFonts as B}from"../../styles/AppFonts";import z from"../../styles";import{getJsonContent as Ye,getSize as _,formatDateTime as ee,parseStackLine as Ve,openInVSCode as Ze}from"../../helpers";import{shareLogReport as _e}from"../../helpers/shareFormatter";const Be=S=>{const D=Date.now()-S,E=Math.floor(D/1e3),$=Math.floor(E/60),P=Math.floor($/60),J=Math.floor(P/24);return E<60?`${E}s ago`:$<60?`${$}m ago`:P<24?`${P}h ago`:`${J}d ago`},et=De.memo(()=>{const{t:S}=Ie(),{selectedLog:r}=Pe(),[D,E]=L("output"),[$,P]=L(""),[J,ze]=L("raw"),W=A(()=>r?Ye(r.message):null,[r]),[R,re]=L("structured"),[K,ve]=L("caller"),[Z,We]=L("app"),O=A(()=>r?K==="error"&&r.errorStack?r.errorStack:r.stack||r.caller||"":"",[r,K]),F=A(()=>O?O.split(`
|
|
2
|
+
`).map(t=>t.trim()).filter(t=>t.length>0).map((t,v)=>Ve(t,v===0)):[],[O]),N=A(()=>F.filter(t=>t.frameType==="app"||!t.isRuntimeNoise),[F]),oe=A(()=>Z==="app"&&N.length>0?N:F,[Z,N,F]),V=A(()=>r?N.length>0?N[0]:r.caller&&r.caller!=="Unknown"?Ve(r.caller,!0):F.length>0?F[0]:null:null,[r,N,F]);if(!r)return null;const H=e.primaryLight!==e.white,U=(()=>{const t=(r.type||"log").toLowerCase(),v=(r.sourceMethod||t).toLowerCase();return t==="error"||v==="error"?{border:e.red500,badgeBg:e.red100,badgeText:e.redErrorText,label:"ERROR",methodBorder:e.errorBorder,methodBg:e.red100,methodText:e.redErrorText}:t==="warn"||v==="warn"?{border:e.amber500,badgeBg:e.amber100,badgeText:e.amber800Warm,label:"WARN",methodBorder:e.amber200,methodBg:e.amber100,methodText:e.amber800Warm}:t==="debug"||v==="debug"?{border:e.violet500,badgeBg:e.purple100,badgeText:e.violet600,label:"DEBUG",methodBorder:e.purple200,methodBg:e.purple100,methodText:e.violet600}:t==="info"||v==="info"?{border:e.sky500,badgeBg:e.sky100,badgeText:e.sky600,label:"INFO",methodBorder:e.sky400,methodBg:e.sky100,methodText:e.sky600}:{border:e.indigo500,badgeBg:e.indigo50,badgeText:e.indigo600Alt,label:"LOG",methodBorder:e.indigo400,methodBg:e.indigo50,methodText:e.indigo600Alt}})(),le=r.rawArgs!=null&&r.rawArgs.length>1,$e=!!(r.stack&&r.stack.trim().length>0),Fe=[{key:"output",label:S("console.tabOutput"),icon:t=><Ue color={t?e.white:e.grayTextWeak}size={12}/>},...le?[{key:"arguments",label:S("console.tabArgs",{count:r.rawArgs?.length}),icon:t=><Je color={t?e.white:e.grayTextWeak}size={12}/>}]:[],...$e?[{key:"stack",label:S("console.tabStack"),icon:t=><Se color={t?e.white:e.grayTextWeak}size={12}/>}]:[],{key:"metadata",label:S("console.tabMetadata"),icon:t=><Ke color={t?e.white:e.grayTextWeak}size={12}/>}];return<C style={{flex:1}}>
|
|
3
3
|
|
|
4
4
|
<C style={z.detailInfoBar}>
|
|
5
5
|
<C style={{flexDirection:"column",gap:10}}>
|
|
@@ -45,7 +45,10 @@ import De,{useMemo as A,useState as L}from"react";import{useTranslation as Ie}fr
|
|
|
45
45
|
</C>
|
|
46
46
|
|
|
47
47
|
|
|
48
|
-
<
|
|
48
|
+
<C style={{flexDirection:"row",alignItems:"center",gap:6}}>
|
|
49
|
+
<Ae onShare={()=>_e(r)}/>
|
|
50
|
+
<M value={r.message}label={S("console.logMessage")}/>
|
|
51
|
+
</C>
|
|
49
52
|
</C>
|
|
50
53
|
|
|
51
54
|
|
|
@@ -61,15 +64,15 @@ import De,{useMemo as A,useState as L}from"react";import{useTranslation as Ie}fr
|
|
|
61
64
|
{V?.functionName&&V.functionName!=="<anonymous>"?`${V.functionName}()`:V?.fileName||S("console.consoleLog")}
|
|
62
65
|
</T>
|
|
63
66
|
|
|
64
|
-
{V?.fileName&&<Q onPress={()=>
|
|
67
|
+
{V?.fileName&&<Q onPress={()=>Ze(V.rawFilePath||V.fullPath||V.fileName,V.lineNumber,V.columnNumber)}hitSlop={8}style={[z.metaChip,{backgroundColor:`${e.brandPurple}15`,borderColor:`${e.brandPurple}40`,paddingHorizontal:7,paddingVertical:2}]}>
|
|
65
68
|
<C style={{flexDirection:"row",alignItems:"center",gap:4,flexShrink:1}}>
|
|
66
|
-
<
|
|
69
|
+
<Ge color={e.brandPurple}size={10}/>
|
|
67
70
|
<T style={[z.metaChipText,{color:e.brandPurple,fontSize:10,fontFamily:B.interBold,flexShrink:1}]}>
|
|
68
71
|
{V.fileName}
|
|
69
72
|
{V.lineNumber?`:${V.lineNumber}`:""}
|
|
70
73
|
{V.columnNumber?`:${V.columnNumber}`:""}
|
|
71
74
|
</T>
|
|
72
|
-
<
|
|
75
|
+
<Qe color={e.brandPurple}size={9}/>
|
|
73
76
|
</C>
|
|
74
77
|
</Q>}
|
|
75
78
|
</C>
|
|
@@ -101,17 +104,17 @@ import De,{useMemo as A,useState as L}from"react";import{useTranslation as Ie}fr
|
|
|
101
104
|
{D!=="metadata"&&<C style={{paddingHorizontal:12,paddingTop:6,paddingBottom:4}}>
|
|
102
105
|
<C style={[z.detailSearchRow,{marginBottom:0}]}>
|
|
103
106
|
<C style={[z.detailSearchBox,{backgroundColor:H?`${e.brandPurple}10`:e.purpleShade50,borderWidth:1,borderColor:e.dividerColor}]}>
|
|
104
|
-
<
|
|
107
|
+
<Me color={e.grayTextWeak}size={15}/>
|
|
105
108
|
<He placeholder="Search in log details..."placeholderTextColor={e.grayTextWeak}value={$}onChangeText={P}style={z.detailSearchInput}autoCorrect={!1}autoCapitalize="none"/>
|
|
106
109
|
{$.length>0&&<Q onPress={()=>P("")}hitSlop={10}style={{padding:6}}>
|
|
107
|
-
<
|
|
110
|
+
<Le color={e.grayTextWeak}size={13}/>
|
|
108
111
|
</Q>}
|
|
109
112
|
</C>
|
|
110
113
|
</C>
|
|
111
114
|
</C>}
|
|
112
115
|
|
|
113
116
|
|
|
114
|
-
<
|
|
117
|
+
<Re style={{flex:1}}contentContainerStyle={{paddingHorizontal:12,paddingTop:6,paddingBottom:28,flexGrow:1}}showsVerticalScrollIndicator={!0}keyboardShouldPersistTaps="handled">
|
|
115
118
|
|
|
116
119
|
{D==="output"&&<C style={[z.sectionContainer,{backgroundColor:H?`${e.purple}12`:e.purpleShade50,borderWidth:1,borderColor:e.dividerColor,borderRadius:12,overflow:"hidden",flex:1}]}>
|
|
117
120
|
|
|
@@ -123,7 +126,7 @@ import De,{useMemo as A,useState as L}from"react";import{useTranslation as Ie}fr
|
|
|
123
126
|
<M value={r.message}label={S("console.logMessage")}/>
|
|
124
127
|
</C>
|
|
125
128
|
|
|
126
|
-
{W&&<Y tabs={[{key:"pretty",label:S("network.jsonViewer.pretty"),icon:t=><
|
|
129
|
+
{W&&<Y tabs={[{key:"pretty",label:S("network.jsonViewer.pretty"),icon:t=><Ee color={t?e.white:e.grayTextWeak}size={12}/>},{key:"raw",label:S("network.jsonViewer.raw"),icon:t=><Te color={t?e.white:e.grayTextWeak}size={12}/>},{key:"table",label:S("network.jsonViewer.table"),icon:t=><Oe color={t?e.white:e.grayTextWeak}size={12}/>}]}activeKey={J}onChange={t=>ze(t)}/>}
|
|
127
130
|
</C>
|
|
128
131
|
|
|
129
132
|
|
|
@@ -176,16 +179,16 @@ import De,{useMemo as A,useState as L}from"react";import{useTranslation as Ie}fr
|
|
|
176
179
|
|
|
177
180
|
<C style={{flexDirection:"row",alignItems:"center",gap:5}}>
|
|
178
181
|
<C style={{flexDirection:"row",backgroundColor:H?e.primaryLight:e.white,borderRadius:7,padding:2,borderWidth:1,borderColor:e.dividerColor}}>
|
|
179
|
-
<Q onPress={()=>re("structured")}style={{flexDirection:"row",alignItems:"center",gap:3,paddingVertical:3.5,paddingHorizontal:7,borderRadius:5,backgroundColor:
|
|
180
|
-
<Se color={
|
|
181
|
-
<T style={{fontFamily:B.interBold,fontSize:10,color:
|
|
182
|
+
<Q onPress={()=>re("structured")}style={{flexDirection:"row",alignItems:"center",gap:3,paddingVertical:3.5,paddingHorizontal:7,borderRadius:5,backgroundColor:R==="structured"?e.brandPurple:"transparent"}}>
|
|
183
|
+
<Se color={R==="structured"?e.white:e.grayTextWeak}size={11}/>
|
|
184
|
+
<T style={{fontFamily:B.interBold,fontSize:10,color:R==="structured"?e.white:e.grayTextStrong}}>
|
|
182
185
|
{S("console.cardsView")}
|
|
183
186
|
</T>
|
|
184
187
|
</Q>
|
|
185
188
|
|
|
186
|
-
<Q onPress={()=>re("raw")}style={{flexDirection:"row",alignItems:"center",gap:3,paddingVertical:3.5,paddingHorizontal:7,borderRadius:5,backgroundColor:
|
|
187
|
-
<Te color={
|
|
188
|
-
<T style={{fontFamily:B.interBold,fontSize:10,color:
|
|
189
|
+
<Q onPress={()=>re("raw")}style={{flexDirection:"row",alignItems:"center",gap:3,paddingVertical:3.5,paddingHorizontal:7,borderRadius:5,backgroundColor:R==="raw"?e.brandPurple:"transparent"}}>
|
|
190
|
+
<Te color={R==="raw"?e.white:e.grayTextWeak}size={11}/>
|
|
191
|
+
<T style={{fontFamily:B.interBold,fontSize:10,color:R==="raw"?e.white:e.grayTextStrong}}>
|
|
189
192
|
{S("console.rawTraceView")}
|
|
190
193
|
</T>
|
|
191
194
|
</Q>
|
|
@@ -199,11 +202,11 @@ import De,{useMemo as A,useState as L}from"react";import{useTranslation as Ie}fr
|
|
|
199
202
|
{r.errorStack&&<Y tabs={[{key:"caller",label:S("console.callOriginStack")},{key:"error",label:S("console.errorThrownStack")}]}activeKey={K}onChange={t=>ve(t)}/>}
|
|
200
203
|
|
|
201
204
|
|
|
202
|
-
<Y tabs={[{key:"app",label:S("console.appCodeScope",{count:
|
|
205
|
+
<Y tabs={[{key:"app",label:S("console.appCodeScope",{count:N.length})},{key:"all",label:S("console.allFramesScope",{count:F.length})}]}activeKey={Z}onChange={t=>We(t)}/>
|
|
203
206
|
</C>
|
|
204
207
|
|
|
205
208
|
|
|
206
|
-
{
|
|
209
|
+
{R==="structured"?<C style={{padding:12,gap:10}}>
|
|
207
210
|
{oe.length>0?oe.map((t,v)=>{const I=v===0,G=t.frameType==="app"?`${e.brandPurple}15`:t.frameType==="dependency"?`${e.amber500}18`:t.frameType==="native"?`${e.sky500}18`:e.grayBorderSecondary,q=t.frameType==="app"?e.brandPurple:t.frameType==="dependency"?e.amber700:t.frameType==="native"?e.sky500:e.grayTextWeak;return<C key={v}style={{backgroundColor:I?`${e.brandPurple}0A`:e.primaryLight,borderRadius:10,borderWidth:1,borderColor:I?`${e.brandPurple}35`:e.dividerColor,padding:11,gap:6}}>
|
|
208
211
|
|
|
209
212
|
<C style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:6}}>
|
|
@@ -243,7 +246,7 @@ import De,{useMemo as A,useState as L}from"react";import{useTranslation as Ie}fr
|
|
|
243
246
|
|
|
244
247
|
<C style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",backgroundColor:H?`${e.primaryBlack}25`:e.grayBackground,borderRadius:6,paddingHorizontal:8,paddingVertical:4.5,gap:6}}>
|
|
245
248
|
<C style={{flexDirection:"row",alignItems:"center",gap:5,flex:1}}>
|
|
246
|
-
<
|
|
249
|
+
<Xe size={12}color={e.grayTextWeak}/>
|
|
247
250
|
<T selectable style={{fontFamily:B.interRegular,fontSize:9.5,color:e.grayTextStrong,flex:1}}numberOfLines={1}>
|
|
248
251
|
{t.fullPath}
|
|
249
252
|
</T>
|
|
@@ -289,5 +292,5 @@ import De,{useMemo as A,useState as L}from"react";import{useTranslation as Ie}fr
|
|
|
289
292
|
</C>)}
|
|
290
293
|
</C>
|
|
291
294
|
</C>}
|
|
292
|
-
</
|
|
293
|
-
</C>}),te=
|
|
295
|
+
</Re>
|
|
296
|
+
</C>}),te=Ne.create({metaDot:{fontSize:10,color:e.grayTextWeak,opacity:.7},tabsHeaderWrap:{paddingHorizontal:12,paddingTop:8,paddingBottom:4}});export default et;
|
|
@@ -1,98 +1,134 @@
|
|
|
1
|
-
import
|
|
2
|
-
{(
|
|
3
|
-
<
|
|
4
|
-
<
|
|
5
|
-
<S style={
|
|
6
|
-
<
|
|
7
|
-
<S style={[
|
|
8
|
-
<
|
|
1
|
+
import Q,{useEffect as L,useRef as I}from"react";import{Animated as w,Modal as X,Platform as O,Pressable as Z,StatusBar as Se,StyleSheet as E,View as S}from"react-native";import{useInspector as we}from"./InspectorContext";import Be from"../ErrorBoundary";import B from"../ModuleErrorBoundary";import Ce from"./FabLauncher";import Ve from"./InspectorHeader";import Re from"./TabBar";import Ne from"./NetworkTab";import De from"./NetworkDetail";import Me from"./LogDetail";import Ee from"./ConsoleTab";import Te from"./AnalyticsTab";import Ae from"../AnalyticsDetail";import Pe from"./ReduxTab";import Le from"./ReduxDetail";import Ie from"./CrashTab";import Oe from"./CrashDetail";import Fe from"./PushTab";import Ge from"./PushDetail";import We from"./DeviceInfoTab";import He from"./StorageTab";import Ue from"./DebuggingTab";import{MediaGalleryTab as Ye}from"./MediaGalleryTab";import _e from"./SettingsPanel";import $e from"./AboutModal";import Je from"./NpmUpdateToast";import Ke from"./NpmStarPrompt";import Qe from"../Toast";import F from"../../styles";import{AppColors as C}from"../../styles/AppColors";import Xe from"./NavigationTracker";import{isLocalDebugEnvironment as Ze}from"../../helpers";const eo=()=>{const{visible:T,modalAnimationType:V,closeModal:R,modalHeightPercent:x,selected:G,selectedEvent:A,selectedLog:W,selectedReduxSlice:z,selectedReduxAction:U,selectedCrash:q,selectedPush:P,setSelectedPush:Y,settingsPage:N,isAboutOpen:D,setIsAboutOpen:_,activeTab:e,isReady:$,enabled:j,hasNavigationContext:J,setNavState:K}=we(),H=e==="apis"&&G!=null||e==="analytics"&&A!=null||e==="logs"&&W!=null||e==="redux"&&(z!=null||U!=null)||e==="crash"&&q!=null||e==="push"&&P!=null,M=I(new w.Value(0)).current;L(()=>{N!==null&&(M.setValue(0),w.spring(M,{toValue:1,friction:8,tension:65,useNativeDriver:!1}).start())},[N!==null]);const v=I(new w.Value(0)).current;return L(()=>{D&&(v.setValue(0),w.spring(v,{toValue:1,friction:8,tension:65,useNativeDriver:!1}).start())},[D]),<>
|
|
2
|
+
{(O.OS==="ios"||O.OS==="android")&&j&&!T&&<Ce/>}
|
|
3
|
+
<X visible={T}animationType={V}transparent statusBarTranslucent={!0}onRequestClose={R}>
|
|
4
|
+
<Be onClose={R}>
|
|
5
|
+
<S style={F.modalBackdrop}>
|
|
6
|
+
<Z style={F.modalBackdropPressable}onPress={R}/>
|
|
7
|
+
<S style={[F.modalContentCard,{height:`${x}%`,borderTopLeftRadius:x>=100?0:20,borderTopRightRadius:x>=100?0:20}]}>
|
|
8
|
+
<Se translucent backgroundColor="transparent"barStyle="light-content"/>
|
|
9
9
|
|
|
10
10
|
<Ve/>
|
|
11
11
|
|
|
12
12
|
<S style={{flex:1}}>
|
|
13
13
|
|
|
14
|
-
<S style={{flex:1}}pointerEvents={
|
|
15
|
-
<
|
|
16
|
-
{
|
|
17
|
-
{
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
{
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
{
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
{
|
|
27
|
-
|
|
28
|
-
|
|
14
|
+
<S style={{flex:1}}pointerEvents={H||N!==null||D?"none":"auto"}>
|
|
15
|
+
<Re/>
|
|
16
|
+
{$?<S style={{flex:1}}>
|
|
17
|
+
{e==="apis"&&<B moduleName="Network API Monitor">
|
|
18
|
+
<Ne/>
|
|
19
|
+
</B>}
|
|
20
|
+
{e==="logs"&&<B moduleName="Console Logs Monitor">
|
|
21
|
+
<Ee/>
|
|
22
|
+
</B>}
|
|
23
|
+
{e==="analytics"&&<B moduleName="Analytics Event Tracker">
|
|
24
|
+
<Te/>
|
|
25
|
+
</B>}
|
|
26
|
+
{e==="redux"&&<B moduleName="Redux State Inspector">
|
|
27
|
+
<Pe/>
|
|
28
|
+
</B>}
|
|
29
|
+
{e==="crash"&&<B moduleName="Crash Reporter">
|
|
30
|
+
<Ie/>
|
|
31
|
+
</B>}
|
|
32
|
+
{e==="push"&&<B moduleName="Push Notifications">
|
|
33
|
+
<Fe/>
|
|
34
|
+
</B>}
|
|
35
|
+
{e==="device"&&<B moduleName="Device Diagnostics">
|
|
36
|
+
<We/>
|
|
37
|
+
</B>}
|
|
38
|
+
{e==="storage"&&<B moduleName="Storage Inspector">
|
|
39
|
+
<He/>
|
|
40
|
+
</B>}
|
|
41
|
+
{e==="media"&&<B moduleName="Media Gallery">
|
|
42
|
+
<Ye/>
|
|
43
|
+
</B>}
|
|
44
|
+
{O.OS==="android"&&Ze()&&e==="debugging"&&<B moduleName="Debugging Utilities">
|
|
45
|
+
<Ue/>
|
|
46
|
+
</B>}
|
|
47
|
+
</S>:<So/>}
|
|
29
48
|
</S>
|
|
30
49
|
|
|
31
50
|
|
|
32
|
-
{
|
|
33
|
-
{
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
{
|
|
37
|
-
|
|
51
|
+
{H&&<S style={[E.absoluteFill,{backgroundColor:C.contentBg,zIndex:10}]}>
|
|
52
|
+
{e==="apis"&&G!=null&&<B moduleName="Network Request Details">
|
|
53
|
+
<De/>
|
|
54
|
+
</B>}
|
|
55
|
+
{e==="analytics"&&A!=null&&<B moduleName="Analytics Event Details">
|
|
56
|
+
<Ae event={A}/>
|
|
57
|
+
</B>}
|
|
58
|
+
{e==="logs"&&W!=null&&<B moduleName="Console Log Details">
|
|
59
|
+
<Me/>
|
|
60
|
+
</B>}
|
|
61
|
+
{e==="redux"&&<B moduleName="Redux Action & State Details">
|
|
62
|
+
<Le/>
|
|
63
|
+
</B>}
|
|
64
|
+
{e==="crash"&&q!=null&&<B moduleName="Crash Log Details">
|
|
65
|
+
<Oe/>
|
|
66
|
+
</B>}
|
|
67
|
+
{e==="push"&&P!=null&&<B moduleName="Push Notification Details">
|
|
68
|
+
<Ge item={P}onClose={()=>Y(null)}/>
|
|
69
|
+
</B>}
|
|
38
70
|
</S>}
|
|
39
71
|
|
|
40
72
|
|
|
41
|
-
{
|
|
42
|
-
<
|
|
73
|
+
{N!==null&&<w.View style={[E.absoluteFill,{backgroundColor:C.grayBackground,opacity:M,transform:[{translateY:M.interpolate({inputRange:[0,1],outputRange:[24,0]})}]}]}>
|
|
74
|
+
<B moduleName="Settings Panel">
|
|
75
|
+
<_e/>
|
|
76
|
+
</B>
|
|
43
77
|
</w.View>}
|
|
44
78
|
|
|
45
79
|
|
|
46
|
-
{
|
|
47
|
-
<
|
|
80
|
+
{D&&<w.View style={[E.absoluteFill,{backgroundColor:C.primaryLight,opacity:v,transform:[{translateY:v.interpolate({inputRange:[0,1],outputRange:[24,0]})}]}]}>
|
|
81
|
+
<B moduleName="About & Diagnostics">
|
|
82
|
+
<$e onClose={()=>_(!1)}/>
|
|
83
|
+
</B>
|
|
48
84
|
</w.View>}
|
|
49
85
|
</S>
|
|
50
86
|
|
|
51
87
|
|
|
52
|
-
<
|
|
88
|
+
<Qe/>
|
|
53
89
|
|
|
54
90
|
|
|
55
|
-
|
|
91
|
+
<Je/>
|
|
56
92
|
|
|
57
93
|
|
|
58
|
-
<
|
|
94
|
+
<Ke/>
|
|
59
95
|
</S>
|
|
60
96
|
</S>
|
|
61
|
-
</
|
|
62
|
-
{
|
|
63
|
-
</
|
|
64
|
-
</>},
|
|
97
|
+
</Be>
|
|
98
|
+
{J&&<Xe onStateChange={K}/>}
|
|
99
|
+
</X>
|
|
100
|
+
</>},So=Q.memo(function(){const V=I(new w.Value(.35)).current;return L(()=>{const R=w.loop(w.sequence([w.timing(V,{toValue:.85,duration:750,useNativeDriver:!1}),w.timing(V,{toValue:.35,duration:750,useNativeDriver:!1})]));return R.start(),()=>R.stop()},[V]),<S style={o.container}>
|
|
65
101
|
|
|
66
|
-
<S style={
|
|
67
|
-
<w.View style={[
|
|
68
|
-
<S style={
|
|
69
|
-
<w.View style={[
|
|
70
|
-
<w.View style={[
|
|
102
|
+
<S style={o.toolbarSkeleton}>
|
|
103
|
+
<w.View style={[o.searchBarSkeleton,{opacity:V}]}/>
|
|
104
|
+
<S style={o.actionButtonsRow}>
|
|
105
|
+
<w.View style={[o.iconButtonSkeleton,{opacity:V}]}/>
|
|
106
|
+
<w.View style={[o.iconButtonSkeleton,{opacity:V}]}/>
|
|
71
107
|
</S>
|
|
72
108
|
</S>
|
|
73
109
|
|
|
74
110
|
|
|
75
|
-
<S style={
|
|
76
|
-
<w.View style={[
|
|
77
|
-
<w.View style={[
|
|
78
|
-
<w.View style={[
|
|
79
|
-
<w.View style={[
|
|
111
|
+
<S style={o.chipStripSkeleton}>
|
|
112
|
+
<w.View style={[o.chipSkeleton,{width:48,opacity:V}]}/>
|
|
113
|
+
<w.View style={[o.chipSkeleton,{width:68,opacity:V}]}/>
|
|
114
|
+
<w.View style={[o.chipSkeleton,{width:76,opacity:V}]}/>
|
|
115
|
+
<w.View style={[o.chipSkeleton,{width:58,opacity:V}]}/>
|
|
80
116
|
</S>
|
|
81
117
|
|
|
82
118
|
|
|
83
|
-
{[0,1,2,3].map(
|
|
84
|
-
<S style={
|
|
85
|
-
<S style={
|
|
86
|
-
<S style={
|
|
87
|
-
<S style={
|
|
119
|
+
{[0,1,2,3].map(R=><w.View key={`skeleton_card_${R}`}style={[o.cardSkeleton,{opacity:V}]}>
|
|
120
|
+
<S style={o.cardTopRow}>
|
|
121
|
+
<S style={o.badgeGroup}>
|
|
122
|
+
<S style={o.statusBadgeSkeleton}/>
|
|
123
|
+
<S style={o.methodBadgeSkeleton}/>
|
|
88
124
|
</S>
|
|
89
|
-
<S style={
|
|
125
|
+
<S style={o.timeSkeleton}/>
|
|
90
126
|
</S>
|
|
91
|
-
<S style={
|
|
92
|
-
<S style={
|
|
93
|
-
<S style={
|
|
94
|
-
<S style={
|
|
95
|
-
<S style={
|
|
127
|
+
<S style={o.urlLineLong}/>
|
|
128
|
+
<S style={o.urlLineShort}/>
|
|
129
|
+
<S style={o.cardBottomRow}>
|
|
130
|
+
<S style={o.metaPillSkeleton}/>
|
|
131
|
+
<S style={o.metaPillSkeleton}/>
|
|
96
132
|
</S>
|
|
97
133
|
</w.View>)}
|
|
98
|
-
</S>}),
|
|
134
|
+
</S>}),o=E.create({container:{flex:1,paddingHorizontal:12,paddingTop:8},toolbarSkeleton:{flexDirection:"row",alignItems:"center",gap:8,marginBottom:8},searchBarSkeleton:{flex:1,height:36,borderRadius:8,backgroundColor:C.graySurface,borderWidth:1,borderColor:C.dividerColor},actionButtonsRow:{flexDirection:"row",gap:6},iconButtonSkeleton:{width:36,height:36,borderRadius:8,backgroundColor:C.graySurface,borderWidth:1,borderColor:C.dividerColor},chipStripSkeleton:{flexDirection:"row",gap:6,marginBottom:10},chipSkeleton:{height:24,borderRadius:6,backgroundColor:C.graySurface,borderWidth:1,borderColor:C.dividerColor},cardSkeleton:{backgroundColor:C.primaryLight,borderRadius:10,padding:12,marginBottom:8,borderWidth:1,borderColor:C.dividerColor},cardTopRow:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:8},badgeGroup:{flexDirection:"row",alignItems:"center",gap:6},statusBadgeSkeleton:{width:38,height:18,borderRadius:4,backgroundColor:C.graySurface},methodBadgeSkeleton:{width:44,height:18,borderRadius:4,backgroundColor:C.graySurface},timeSkeleton:{width:48,height:12,borderRadius:4,backgroundColor:C.graySurface},urlLineLong:{height:13,borderRadius:4,backgroundColor:C.graySurface,marginBottom:5,width:"90%"},urlLineShort:{height:11,borderRadius:4,backgroundColor:C.graySurface,marginBottom:8,width:"55%"},cardBottomRow:{flexDirection:"row",gap:8,marginTop:2},metaPillSkeleton:{width:52,height:14,borderRadius:4,backgroundColor:C.graySurface}});export default eo;
|
|
@@ -162,4 +162,4 @@ import{useState as W,useEffect as He,useMemo as te,useCallback as oe}from"react"
|
|
|
162
162
|
|
|
163
163
|
|
|
164
164
|
<Ze item={Q}visible={!!Q}onClose={()=>j(null)}onDelete={K}onConvertToGif={Pe}/>
|
|
165
|
-
</C>};const{width:it}=je.get("window"),rt=(it-36)/2,o=Ne.create({container:{flex:1,backgroundColor:e.slate850},filterBar:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,paddingVertical:9,borderBottomWidth:1,borderBottomColor:e.borderGlassLight,gap:8},chipGroup:{flexDirection:"row",alignItems:"center",gap:6,flexShrink:1},chip:{flexDirection:"row",alignItems:"center",gap:4.5,paddingHorizontal:8,paddingVertical:4.5,borderRadius:6,backgroundColor:e.whiteAlpha06,borderWidth:1,borderColor:e.whiteAlpha10},chipActive:{backgroundColor:`${e.sky400}2E`,borderColor:e.sky400},chipText:{fontFamily:B.interMedium,fontSize:11,color:e.slate400},chipTextActive:{fontFamily:B.interBold,color:e.sky400},subBar:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,paddingVertical:7,backgroundColor:`${e.slate900}99`,borderBottomWidth:1,borderBottomColor:e.borderGlassLight,gap:8},resultCountWrapper:{flexDirection:"row",alignItems:"center",flexShrink:1},resultCountText:{fontFamily:B.interMedium,fontSize:11,color:e.slate400},resultCountTextSelected:{fontFamily:B.interSemiBold,color:e.sky400},actionsGroup:{flexDirection:"row",alignItems:"center",gap:6},viewToggleContainer:{flexDirection:"row",alignItems:"center",backgroundColor:e.whiteAlpha06,borderRadius:6,padding:2,borderWidth:1,borderColor:e.whiteAlpha10},viewToggleBtn:{paddingHorizontal:7,paddingVertical:4,borderRadius:4,alignItems:"center",justifyContent:"center"},viewToggleBtnActive:{backgroundColor:`${e.violet600}80`},deleteBtn:{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:8,paddingVertical:4,borderRadius:6,backgroundColor:`${e.red500}26`,borderWidth:1,borderColor:`${e.red500}80`},deleteBtnText:{fontFamily:B.interBold,fontSize:10.5,color:e.red500},clearBtn:{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:8,paddingVertical:4,borderRadius:6,backgroundColor:`${e.red500}1F`,borderWidth:1,borderColor:`${e.red500}4D`},clearBtnText:{fontFamily:B.interMedium,fontSize:10.5,color:e.red500},listContent:{padding:12,gap:10},columnWrapper:{gap:12},card:{width:rt,backgroundColor:e.slate800,borderRadius:8,borderWidth:1,borderColor:e.borderGlassLight,overflow:"hidden"},cardSelected:{borderColor:e.violet600,borderWidth:1.5},thumbnailContainer:{width:"100%",height:110,backgroundColor:e.slate850,position:"relative"},thumbnail:{width:"100%",height:"100%"},thumbnailFallback:{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",backgroundColor:e.slate900},checkbox:{position:"absolute",top:6,left:6,width:22,height:22,borderRadius:5,borderWidth:1.5,borderColor:"rgba(255, 255, 255, 0.65)",backgroundColor:"rgba(15, 23, 42, 0.65)",alignItems:"center",justifyContent:"center",zIndex:10},checkboxSelected:{backgroundColor:e.violet600,borderColor:e.violet600},miniPlayCircle:{position:"absolute",top:"50%",left:"50%",width:32,height:32,marginTop:-16,marginLeft:-16,borderRadius:16,backgroundColor:`${e.sky400}D9`,alignItems:"center",justifyContent:"center",paddingLeft:2,shadowColor:
|
|
165
|
+
</C>};const{width:it}=je.get("window"),rt=(it-36)/2,o=Ne.create({container:{flex:1,backgroundColor:e.slate850},filterBar:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,paddingVertical:9,borderBottomWidth:1,borderBottomColor:e.borderGlassLight,gap:8},chipGroup:{flexDirection:"row",alignItems:"center",gap:6,flexShrink:1},chip:{flexDirection:"row",alignItems:"center",gap:4.5,paddingHorizontal:8,paddingVertical:4.5,borderRadius:6,backgroundColor:e.whiteAlpha06,borderWidth:1,borderColor:e.whiteAlpha10},chipActive:{backgroundColor:`${e.sky400}2E`,borderColor:e.sky400},chipText:{fontFamily:B.interMedium,fontSize:11,color:e.slate400},chipTextActive:{fontFamily:B.interBold,color:e.sky400},subBar:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,paddingVertical:7,backgroundColor:`${e.slate900}99`,borderBottomWidth:1,borderBottomColor:e.borderGlassLight,gap:8},resultCountWrapper:{flexDirection:"row",alignItems:"center",flexShrink:1},resultCountText:{fontFamily:B.interMedium,fontSize:11,color:e.slate400},resultCountTextSelected:{fontFamily:B.interSemiBold,color:e.sky400},actionsGroup:{flexDirection:"row",alignItems:"center",gap:6},viewToggleContainer:{flexDirection:"row",alignItems:"center",backgroundColor:e.whiteAlpha06,borderRadius:6,padding:2,borderWidth:1,borderColor:e.whiteAlpha10},viewToggleBtn:{paddingHorizontal:7,paddingVertical:4,borderRadius:4,alignItems:"center",justifyContent:"center"},viewToggleBtnActive:{backgroundColor:`${e.violet600}80`},deleteBtn:{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:8,paddingVertical:4,borderRadius:6,backgroundColor:`${e.red500}26`,borderWidth:1,borderColor:`${e.red500}80`},deleteBtnText:{fontFamily:B.interBold,fontSize:10.5,color:e.red500},clearBtn:{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:8,paddingVertical:4,borderRadius:6,backgroundColor:`${e.red500}1F`,borderWidth:1,borderColor:`${e.red500}4D`},clearBtnText:{fontFamily:B.interMedium,fontSize:10.5,color:e.red500},listContent:{padding:12,gap:10},columnWrapper:{gap:12},card:{width:rt,backgroundColor:e.slate800,borderRadius:8,borderWidth:1,borderColor:e.borderGlassLight,overflow:"hidden"},cardSelected:{borderColor:e.violet600,borderWidth:1.5},thumbnailContainer:{width:"100%",height:110,backgroundColor:e.slate850,position:"relative"},thumbnail:{width:"100%",height:"100%"},thumbnailFallback:{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",backgroundColor:e.slate900},checkbox:{position:"absolute",top:6,left:6,width:22,height:22,borderRadius:5,borderWidth:1.5,borderColor:"rgba(255, 255, 255, 0.65)",backgroundColor:"rgba(15, 23, 42, 0.65)",alignItems:"center",justifyContent:"center",zIndex:10},checkboxSelected:{backgroundColor:e.violet600,borderColor:e.violet600},miniPlayCircle:{position:"absolute",top:"50%",left:"50%",width:32,height:32,marginTop:-16,marginLeft:-16,borderRadius:16,backgroundColor:`${e.sky400}D9`,alignItems:"center",justifyContent:"center",paddingLeft:2,shadowColor:e.black,shadowOffset:{width:0,height:2},shadowOpacity:.4,shadowRadius:4,elevation:4},typeBadge:{position:"absolute",top:6,right:6,flexDirection:"row",alignItems:"center",gap:3,backgroundColor:e.badgeGlassDark,paddingHorizontal:5,paddingVertical:2,borderRadius:4,borderWidth:1,borderColor:e.borderGlassMedium},typeBadgeText:{fontFamily:B.interBold,fontSize:9,color:e.slate200},cardInfo:{padding:8,gap:3},cardTitle:{fontFamily:B.interMedium,fontSize:11.5,color:e.white},cardMetaRow:{flexDirection:"row",alignItems:"center",gap:4},cardMeta:{fontFamily:B.interRegular,fontSize:10,color:e.slate400},cardMetaDot:{fontSize:10,color:e.whiteAlpha30},listRow:{flexDirection:"row",alignItems:"center",backgroundColor:e.slate800,borderRadius:8,borderWidth:1,borderColor:e.borderGlassLight,padding:8,gap:10},listRowSelected:{borderColor:e.violet600,borderWidth:1.5,backgroundColor:`${e.violet600}14`},listCheckbox:{width:20,height:20,borderRadius:4,borderWidth:1.5,borderColor:"rgba(255, 255, 255, 0.65)",backgroundColor:"rgba(15, 23, 42, 0.65)",alignItems:"center",justifyContent:"center"},listThumbContainer:{width:46,height:46,borderRadius:6,backgroundColor:e.slate850,overflow:"hidden",position:"relative"},listThumb:{width:"100%",height:"100%"},listThumbFallback:{width:"100%",height:"100%",alignItems:"center",justifyContent:"center",backgroundColor:e.slate900},listMiniPlay:{position:"absolute",top:"50%",left:"50%",width:20,height:20,marginTop:-10,marginLeft:-10,borderRadius:10,backgroundColor:`${e.sky400}D9`,alignItems:"center",justifyContent:"center",paddingLeft:1},listInfo:{flex:1,gap:4,minWidth:0},listTitle:{fontFamily:B.interMedium,fontSize:12,color:e.white},listMetaRow:{flexDirection:"row",alignItems:"center",gap:6,flexWrap:"wrap"},listBadge:{flexDirection:"row",alignItems:"center",gap:3,backgroundColor:e.badgeGlassDark,paddingHorizontal:4,paddingVertical:1.5,borderRadius:4,borderWidth:1,borderColor:e.borderGlassMedium},listBadgeText:{fontFamily:B.interBold,fontSize:8.5,color:e.slate200},gridCopyBtn:{padding:3,borderRadius:4,backgroundColor:e.whiteAlpha08},listActionsRow:{flexDirection:"row",alignItems:"center",gap:6},listCopyBtn:{padding:6,borderRadius:6,backgroundColor:e.whiteAlpha10,borderWidth:1,borderColor:e.whiteAlpha15},listShareBtn:{padding:6,borderRadius:6,backgroundColor:`${e.sky400}18`,borderWidth:1,borderColor:`${e.sky400}40`},listDeleteBtn:{padding:6,borderRadius:6,backgroundColor:`${e.red500}14`,borderWidth:1,borderColor:`${e.red500}33`},copySelectedBtn:{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:8,paddingVertical:4,borderRadius:6,backgroundColor:e.whiteAlpha10,borderWidth:1,borderColor:e.whiteAlpha20},copySelectedBtnText:{fontFamily:B.interSemiBold,fontSize:10.5,color:e.slate200},shareSelectedBtn:{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:8,paddingVertical:4,borderRadius:6,backgroundColor:`${e.sky400}20`,borderWidth:1,borderColor:`${e.sky400}60`},shareSelectedBtnText:{fontFamily:B.interBold,fontSize:10.5,color:e.sky400}});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import{useState as
|
|
1
|
+
import{useState as z}from"react";import{Alert as Ve,Image as _,Modal as Me,Platform as V,Share as ee,StyleSheet as oe,Text as T,TouchableOpacity as A,View as C}from"react-native";import{AppColors as e}from"../../styles/AppColors";import{AppFonts as S}from"../../styles/AppFonts";import R from"../TouchableScale";import{ChevronDownIcon as De,CopyIcon as L,ExpandCollapseIcon as We,FilmIcon as E,GifIcon as H,ImageIcon as Le,PauseIcon as Ee,PlayIcon as Ce,RepeatIcon as He,ShareIcon as Te,TrashIcon as Ue}from"../NetworkIcons";import{ScreenCapture as Ne}from"../../capture";import{copyImageOrMediaToClipboard as qe,formatBytes as Se}from"../../helpers";import{showToast as G}from"../../helpers/toast";import{useTranslation as Je}from"../../i18n";export const MediaPreviewModal=({item:t,visible:ve,onClose:M,onDelete:Ie,onConvertToGif:D})=>{const{t:r}=Je(),[U,N]=z(!1),[Ae,q]=z(!1),[P,Pe]=z(!1),[J,K]=z(!1),[Q,ze]=z("1.0x"),[$,Be]=z(!0),[W,Re]=z(.4);if(!t)return null;const O=()=>{t?.uri&&qe(t.uri,t.type==="image"?"Image":"Media")},X=async()=>{try{K(!0),await Ne.playVideo(t.uri)}catch{G(r("mediaGallery.playError","Unable to play video"))}finally{K(!1)}},$e=()=>{Ve.alert(r("mediaGallery.deleteTitle"),r("mediaGallery.deleteMessage",{filename:t.filename}),[{text:r("common.cancel"),style:"cancel"},{text:r("mediaGallery.delete"),style:"destructive",onPress:()=>{Ie(t),M()}}])},Fe=async()=>{if(D){N(!0);try{await D(t),G(r("mediaGallery.convertedSuccess"))}catch{G(r("mediaGallery.convertFailed"))}finally{N(!1)}}},Y=async()=>{try{const v=t.uri.startsWith("file://")||t.uri.startsWith("content://")||t.uri.startsWith("http")?t.uri:`file://${t.uri}`,Oe=V.select({ios:{url:v,title:t.filename},default:{title:t.filename,message:t.filename,url:v}});(await ee.share(Oe)).action===ee.sharedAction&&G(r("mediaGallery.shareSuccess","Shared successfully"))}catch(v){v?.message!=="User did not share"&&G(r("mediaGallery.shareUnavailable","Sharing not available on this device"))}},I=t.type==="video",F=t.type==="gif",B=t.durationMs?(t.durationMs/1e3).toFixed(1):null,Ge=B?`00:${Number(B)<10?"0":""}${B}`:"00:05.0",Z=!0;return<Me visible={ve}transparent={!0}animationType="fade"onRequestClose={M}>
|
|
2
2
|
<C style={o.overlay}>
|
|
3
3
|
|
|
4
4
|
<C style={o.header}>
|
|
5
|
-
<
|
|
6
|
-
<C style={[o.badge,{borderColor:
|
|
7
|
-
{
|
|
8
|
-
<T style={[o.badgeText,{color:
|
|
5
|
+
<A activeOpacity={.8}onPress={O}style={o.headerLeft}>
|
|
6
|
+
<C style={[o.badge,{borderColor:I?`${e.sky400}80`:F?`${e.warningAmber}80`:`${e.emerald500}80`,backgroundColor:I?`${e.sky400}20`:F?`${e.warningAmber}20`:`${e.emerald500}20`}]}>
|
|
7
|
+
{I?<E size={13}color={e.sky400}/>:F?<H size={13}color={e.warningAmber}/>:<Le size={13}color={e.emerald500}/>}
|
|
8
|
+
<T style={[o.badgeText,{color:I?e.sky400:F?e.warningAmber:e.emerald500}]}>
|
|
9
9
|
{t.format.toUpperCase()}
|
|
10
10
|
</T>
|
|
11
11
|
</C>
|
|
@@ -17,7 +17,7 @@ import{useState as P}from"react";import{Alert as Ve,Image as _,Modal as De,Platf
|
|
|
17
17
|
{Se(t.sizeBytes)} • {new Date(t.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}
|
|
18
18
|
</T>
|
|
19
19
|
</C>
|
|
20
|
-
</
|
|
20
|
+
</A>
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
<C style={o.headerRight}>
|
|
@@ -33,20 +33,20 @@ import{useState as P}from"react";import{Alert as Ve,Image as _,Modal as De,Platf
|
|
|
33
33
|
<Ue size={14}color={e.red500}/>
|
|
34
34
|
</R>
|
|
35
35
|
|
|
36
|
-
<
|
|
37
|
-
<We size={14}isExpanded={
|
|
38
|
-
</
|
|
36
|
+
<A accessible={!0}accessibilityRole="button"accessibilityLabel={P?r("mediaGallery.collapse","Exit Fullscreen"):r("mediaGallery.expand","Expand Fullscreen")}onPress={()=>Pe(!P)}style={[o.headerIconBtn,P&&{backgroundColor:`${e.sky400}30`,borderColor:`${e.sky400}70`}]}hitSlop={{top:10,bottom:10,left:10,right:10}}>
|
|
37
|
+
<We size={14}isExpanded={P}color={P?e.sky400:e.white}/>
|
|
38
|
+
</A>
|
|
39
39
|
|
|
40
|
-
<
|
|
41
|
-
<
|
|
42
|
-
</
|
|
40
|
+
<A accessible={!0}accessibilityRole="button"accessibilityLabel={r("mediaGallery.minimize","Minimize")}onPress={M}style={o.headerIconBtn}hitSlop={{top:10,bottom:10,left:10,right:10}}>
|
|
41
|
+
<De size={15}color={e.white}/>
|
|
42
|
+
</A>
|
|
43
43
|
</C>
|
|
44
44
|
</C>
|
|
45
45
|
|
|
46
46
|
|
|
47
|
-
<C style={[o.stage,
|
|
48
|
-
<
|
|
49
|
-
{
|
|
47
|
+
<C style={[o.stage,P&&o.stageExpanded,!Z&&{paddingBottom:V.OS==="ios"?34:16}]}>
|
|
48
|
+
<A activeOpacity={I?.9:1}onPress={I?X:void 0}style={[o.previewCard,P&&o.previewCardExpanded]}>
|
|
49
|
+
{I?t.thumbnailUri&&!Ae?<>
|
|
50
50
|
<_ source={{uri:t.thumbnailUri}}style={o.image}resizeMode="contain"onError={()=>q(!0)}/>
|
|
51
51
|
<C style={o.videoImageOverlay}/>
|
|
52
52
|
</>:<C style={o.videoFallbackBackdrop}>
|
|
@@ -58,7 +58,7 @@ import{useState as P}from"react";import{Alert as Ve,Image as _,Modal as De,Platf
|
|
|
58
58
|
</C>:<_ source={{uri:t.uri}}style={o.image}resizeMode="contain"onError={()=>q(!0)}/>}
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
{
|
|
61
|
+
{I&&<C style={o.centerPlayOverlay}>
|
|
62
62
|
<C style={o.centerPlayCircle}>
|
|
63
63
|
<Ce size={28}color={e.white}/>
|
|
64
64
|
</C>
|
|
@@ -68,7 +68,7 @@ import{useState as P}from"react";import{Alert as Ve,Image as _,Modal as De,Platf
|
|
|
68
68
|
</C>}
|
|
69
69
|
|
|
70
70
|
|
|
71
|
-
{
|
|
71
|
+
{I&&<C style={o.videoBadgeOverlay}>
|
|
72
72
|
<C style={o.playPill}>
|
|
73
73
|
<E size={12}color={e.sky400}/>
|
|
74
74
|
<T style={o.playPillText}>
|
|
@@ -86,56 +86,56 @@ import{useState as P}from"react";import{Alert as Ve,Image as _,Modal as De,Platf
|
|
|
86
86
|
</C>}
|
|
87
87
|
|
|
88
88
|
|
|
89
|
-
<
|
|
89
|
+
<A activeOpacity={.8}onPress={O}style={o.floatingMetaBadge}>
|
|
90
90
|
<L size={11}color={e.sky400}/>
|
|
91
91
|
<T style={o.floatingMetaText}>
|
|
92
92
|
{t.width&&t.height?`${t.width} \xD7 ${t.height} \u2022 `:""}
|
|
93
93
|
{Se(t.sizeBytes)}
|
|
94
94
|
</T>
|
|
95
|
-
</
|
|
96
|
-
</
|
|
95
|
+
</A>
|
|
96
|
+
</A>
|
|
97
97
|
</C>
|
|
98
98
|
|
|
99
99
|
|
|
100
|
-
{
|
|
100
|
+
{I&&<C style={o.videoControlsPanel}>
|
|
101
101
|
|
|
102
102
|
<C style={o.progressSection}>
|
|
103
103
|
<T style={o.timeLabel}>
|
|
104
104
|
00:0{Math.floor(W*(Number(B)||5))}
|
|
105
105
|
</T>
|
|
106
|
-
<
|
|
106
|
+
<A activeOpacity={.8}onPress={()=>Re(v=>v>=.9?.1:v+.3)}style={o.progressTrack}>
|
|
107
107
|
<C style={[o.progressFill,{width:`${Math.max(10,Math.min(100,W*100))}%`}]}/>
|
|
108
108
|
<C style={[o.scrubberThumb,{left:`${Math.max(8,Math.min(96,W*100))}%`}]}/>
|
|
109
|
-
</
|
|
109
|
+
</A>
|
|
110
110
|
<T style={o.timeLabel}>{Ge}</T>
|
|
111
111
|
</C>
|
|
112
112
|
|
|
113
113
|
|
|
114
114
|
<C style={o.controlsRow}>
|
|
115
115
|
|
|
116
|
-
<
|
|
116
|
+
<A onPress={X}style={o.controlActionPill}>
|
|
117
117
|
{J?<Ee size={14}color={e.sky400}/>:<Ce size={14}color={e.sky400}/>}
|
|
118
118
|
<T style={[o.controlActionText,{color:e.sky400}]}>
|
|
119
119
|
{J?r("mediaGallery.pause","Pause"):r("mediaGallery.play","Play")}
|
|
120
120
|
</T>
|
|
121
|
-
</
|
|
121
|
+
</A>
|
|
122
122
|
|
|
123
123
|
|
|
124
124
|
<C style={o.speedGroup}>
|
|
125
|
-
{["1.0x","1.5x","2.0x"].map(v=><
|
|
125
|
+
{["1.0x","1.5x","2.0x"].map(v=><A key={v}onPress={()=>ze(v)}style={[o.speedBtn,Q===v&&o.speedBtnActive]}>
|
|
126
126
|
<T style={[o.speedText,Q===v&&o.speedTextActive]}>
|
|
127
127
|
{v}
|
|
128
128
|
</T>
|
|
129
|
-
</
|
|
129
|
+
</A>)}
|
|
130
130
|
</C>
|
|
131
131
|
|
|
132
132
|
|
|
133
|
-
<
|
|
133
|
+
<A onPress={()=>Be(!$)}style={[o.loopPill,$&&o.loopPillActive]}>
|
|
134
134
|
<He size={12}color={$?e.sky400:e.whiteAlpha60}/>
|
|
135
135
|
<T style={[o.loopText,$&&o.loopTextActive]}>
|
|
136
136
|
{$?"Loop: ON":"Loop: OFF"}
|
|
137
137
|
</T>
|
|
138
|
-
</
|
|
138
|
+
</A>
|
|
139
139
|
</C>
|
|
140
140
|
</C>}
|
|
141
141
|
|
|
@@ -148,7 +148,7 @@ import{useState as P}from"react";import{Alert as Ve,Image as _,Modal as De,Platf
|
|
|
148
148
|
</T>
|
|
149
149
|
</R>
|
|
150
150
|
|
|
151
|
-
{
|
|
151
|
+
{D&&I&&<R onPress={Fe}disabled={U}style={[o.actionBtn,{backgroundColor:`${e.warningAmber}22`,borderColor:`${e.warningAmber}70`}]}>
|
|
152
152
|
<H size={15}color={e.warningAmber}/>
|
|
153
153
|
<T style={[o.actionText,{color:e.warningAmber}]}>
|
|
154
154
|
{r(U?"mediaGallery.converting":"mediaGallery.convertToGif")}
|
|
@@ -163,4 +163,4 @@ import{useState as P}from"react";import{Alert as Ve,Image as _,Modal as De,Platf
|
|
|
163
163
|
</R>
|
|
164
164
|
</C>}
|
|
165
165
|
</C>
|
|
166
|
-
</
|
|
166
|
+
</Me>};const o=oe.create({overlay:{flex:1,backgroundColor:e.mediaModalBg,justifyContent:"space-between"},header:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:16,paddingTop:V.OS==="ios"?52:20,paddingBottom:14,borderBottomWidth:1,borderBottomColor:e.borderGlassLight,backgroundColor:e.headerGlassDark},headerLeft:{flexDirection:"row",alignItems:"center",gap:10,flex:1,minWidth:0,marginRight:10},headerRight:{flexDirection:"row",alignItems:"center",gap:8},badge:{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:8,paddingVertical:4,borderRadius:6,borderWidth:1},badgeText:{fontFamily:S.interBold,fontSize:10.5,letterSpacing:.4},title:{fontFamily:S.interSemiBold,fontSize:13.5,color:e.white},subtitle:{fontFamily:S.interRegular,fontSize:11,color:e.whiteAlpha60,marginTop:1},headerActionBtn:{width:32,height:32,borderRadius:16,backgroundColor:e.whiteAlpha12,borderWidth:1,borderColor:e.whiteAlpha20,alignItems:"center",justifyContent:"center"},headerShareBtn:{width:32,height:32,borderRadius:16,backgroundColor:`${e.sky400}20`,borderWidth:1,borderColor:`${e.sky400}60`,alignItems:"center",justifyContent:"center"},headerDeleteBtn:{width:32,height:32,borderRadius:16,backgroundColor:`${e.red500}20`,borderWidth:1,borderColor:`${e.red500}60`,alignItems:"center",justifyContent:"center"},headerIconBtn:{width:32,height:32,borderRadius:16,backgroundColor:e.whiteAlpha12,borderWidth:1,borderColor:e.whiteAlpha20,alignItems:"center",justifyContent:"center"},stage:{flex:1,alignItems:"center",justifyContent:"center",paddingHorizontal:10,paddingTop:10,paddingBottom:10},stageExpanded:{paddingHorizontal:0,paddingTop:0,paddingBottom:0},previewCard:{flex:1,width:"100%",borderRadius:14,overflow:"hidden",backgroundColor:e.mediaDarkTile,borderWidth:1,borderColor:e.borderGlassLight,alignItems:"center",justifyContent:"center",position:"relative"},previewCardExpanded:{borderRadius:0,borderWidth:0},image:{width:"100%",height:"100%"},videoImageOverlay:{...oe.absoluteFillObject,backgroundColor:"rgba(5, 7, 13, 0.25)"},videoFallbackBackdrop:{flex:1,width:"100%",backgroundColor:e.mediaPlayerBg,alignItems:"center",justifyContent:"center",gap:8},videoFallbackGlow:{position:"absolute",width:140,height:140,borderRadius:70,backgroundColor:`${e.sky400}18`},videoFallbackTitle:{fontFamily:S.interSemiBold,fontSize:15,color:e.white,marginTop:8},videoFallbackSubtitle:{fontFamily:S.interRegular,fontSize:12,color:e.whiteAlpha60},centerPlayOverlay:{position:"absolute",alignItems:"center",justifyContent:"center",gap:8},centerPlayCircle:{width:64,height:64,borderRadius:32,backgroundColor:`${e.sky400}E0`,alignItems:"center",justifyContent:"center",paddingLeft:3,shadowColor:e.sky400,shadowOffset:{width:0,height:4},shadowOpacity:.5,shadowRadius:10,elevation:8},centerPlayText:{fontFamily:S.interSemiBold,fontSize:13,color:e.white,letterSpacing:.3,textShadowColor:"rgba(0,0,0,0.7)",textShadowOffset:{width:0,height:1},textShadowRadius:3},videoBadgeOverlay:{position:"absolute",bottom:12,left:12},playPill:{flexDirection:"row",alignItems:"center",gap:6,backgroundColor:`${e.slate900}D9`,paddingHorizontal:10,paddingVertical:5,borderRadius:16,borderWidth:1,borderColor:e.whiteAlpha20},playPillText:{fontFamily:S.interSemiBold,fontSize:11,color:e.white,letterSpacing:.3},floatingMetaBadge:{position:"absolute",bottom:10,backgroundColor:`${e.slate900}D9`,paddingHorizontal:10,paddingVertical:4.5,borderRadius:8,borderWidth:1,borderColor:e.whiteAlpha15,alignItems:"center",justifyContent:"center"},floatingMetaText:{fontFamily:S.interMedium,fontSize:10.5,color:e.slate200,letterSpacing:.2},videoControlsPanel:{paddingHorizontal:16,paddingTop:8,paddingBottom:6,backgroundColor:e.headerGlassDark,borderTopWidth:1,borderTopColor:e.borderGlassLight,gap:8},progressSection:{flexDirection:"row",alignItems:"center",gap:10},timeLabel:{fontFamily:S.interMedium,fontSize:11,color:e.whiteAlpha60,minWidth:42},progressTrack:{flex:1,height:6,borderRadius:3,backgroundColor:e.whiteAlpha15,justifyContent:"center",position:"relative"},progressFill:{height:"100%",borderRadius:3,backgroundColor:e.sky400},scrubberThumb:{position:"absolute",width:12,height:12,borderRadius:6,backgroundColor:e.white,borderWidth:2,borderColor:e.sky400,top:-3,marginLeft:-6},controlsRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:2},controlActionPill:{flexDirection:"row",alignItems:"center",gap:5,paddingHorizontal:10,paddingVertical:5,borderRadius:6,backgroundColor:`${e.sky400}18`,borderWidth:1,borderColor:`${e.sky400}50`},controlActionText:{fontFamily:S.interSemiBold,fontSize:11.5},speedGroup:{flexDirection:"row",alignItems:"center",backgroundColor:e.whiteAlpha08,borderRadius:6,borderWidth:1,borderColor:e.whiteAlpha12,padding:2,gap:2},speedBtn:{paddingHorizontal:7,paddingVertical:3,borderRadius:4},speedBtnActive:{backgroundColor:`${e.sky400}30`},speedText:{fontFamily:S.interMedium,fontSize:10.5,color:e.whiteAlpha60},speedTextActive:{color:e.sky400,fontFamily:S.interBold},loopPill:{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:8,paddingVertical:5,borderRadius:6,backgroundColor:e.whiteAlpha08,borderWidth:1,borderColor:e.whiteAlpha12},loopPillActive:{backgroundColor:`${e.sky400}18`,borderColor:`${e.sky400}50`},loopText:{fontFamily:S.interMedium,fontSize:10.5,color:e.whiteAlpha60},loopTextActive:{color:e.sky400,fontFamily:S.interSemiBold},footer:{flexDirection:"row",alignItems:"center",justifyContent:"center",flexWrap:"wrap",gap:8,paddingHorizontal:16,paddingTop:8,paddingBottom:V.OS==="ios"?34:16,borderTopWidth:1,borderTopColor:e.borderGlassLight,backgroundColor:e.headerGlassDark},actionBtn:{flexDirection:"row",alignItems:"center",gap:6,paddingHorizontal:16,paddingVertical:9,borderRadius:8,backgroundColor:e.whiteAlpha08,borderWidth:1,borderColor:e.whiteAlpha15},actionText:{fontFamily:S.interMedium,fontSize:12,color:e.white}});
|