react-native-inapp-inspector 2.5.7 → 2.5.9
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 +19 -0
- package/android/.gradle/8.9/checksums/checksums.lock +0 -0
- package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.9/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.9/gc.properties +0 -0
- package/android/.gradle/9.2.0/checksums/checksums.lock +0 -0
- package/android/.gradle/9.2.0/fileChanges/last-build.bin +0 -0
- package/android/.gradle/9.2.0/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/9.2.0/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/9.2.0/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.settings/org.eclipse.buildship.core.prefs +13 -0
- package/android/build/reports/problems/problems-report.html +659 -0
- package/dist/commonjs/components/BrandCircleIcon.js +8 -3
- package/dist/commonjs/components/ConsoleLogCard.js +13 -13
- package/dist/commonjs/components/Inspector/ConsoleTab.js +5 -5
- package/dist/commonjs/components/Inspector/FabLauncher.js +8 -8
- package/dist/commonjs/components/Inspector/FloatingCaptureWidget.js +4 -4
- package/dist/commonjs/components/Inspector/InspectorHeader.js +30 -45
- package/dist/commonjs/components/Inspector/MainScreen.js +1 -1
- package/dist/commonjs/components/Inspector/NetworkTab.js +48 -48
- package/dist/commonjs/components/Inspector/NpmUpdateToast.js +5 -5
- package/dist/commonjs/components/Inspector/TabBar.js +5 -5
- package/dist/commonjs/components/LogCard.d.ts +1 -1
- package/dist/commonjs/components/LogCard.js +16 -16
- package/dist/commonjs/constants/telemetryConfig.d.ts +3 -3
- package/dist/commonjs/constants/telemetryConfig.js +1 -1
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -1
- package/dist/commonjs/customHooks/networkLogger.d.ts +1 -17
- package/dist/commonjs/customHooks/networkLogger.js +1 -1
- package/dist/commonjs/index.js +1 -1
- package/dist/commonjs/styles/index.d.ts +3 -0
- package/dist/commonjs/styles/index.js +1 -1
- package/dist/commonjs/types/interfaces.d.ts +6 -2
- package/dist/esm/components/BrandCircleIcon.js +9 -4
- package/dist/esm/components/ConsoleLogCard.js +13 -13
- package/dist/esm/components/Inspector/ConsoleTab.js +9 -9
- package/dist/esm/components/Inspector/FabLauncher.js +1 -1
- package/dist/esm/components/Inspector/FloatingCaptureWidget.js +9 -9
- package/dist/esm/components/Inspector/InspectorHeader.js +84 -99
- package/dist/esm/components/Inspector/MainScreen.js +1 -1
- package/dist/esm/components/Inspector/NetworkTab.js +132 -132
- package/dist/esm/components/Inspector/NpmUpdateToast.js +18 -18
- package/dist/esm/components/Inspector/TabBar.js +23 -23
- package/dist/esm/components/LogCard.d.ts +1 -1
- package/dist/esm/components/LogCard.js +24 -24
- package/dist/esm/constants/telemetryConfig.d.ts +3 -3
- package/dist/esm/constants/telemetryConfig.js +1 -1
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/customHooks/networkLogger.d.ts +1 -17
- package/dist/esm/customHooks/networkLogger.js +1 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/styles/index.d.ts +3 -0
- package/dist/esm/styles/index.js +1 -1
- package/dist/esm/types/interfaces.d.ts +6 -2
- package/package.json +8 -3
|
@@ -1,153 +1,153 @@
|
|
|
1
|
-
import
|
|
2
|
-
<
|
|
3
|
-
</
|
|
4
|
-
<
|
|
5
|
-
<
|
|
6
|
-
</
|
|
7
|
-
<
|
|
8
|
-
{
|
|
9
|
-
<
|
|
10
|
-
<
|
|
11
|
-
<
|
|
12
|
-
</
|
|
13
|
-
<
|
|
14
|
-
<
|
|
15
|
-
{
|
|
16
|
-
</
|
|
17
|
-
<
|
|
18
|
-
Showing {
|
|
19
|
-
</
|
|
20
|
-
</
|
|
21
|
-
</
|
|
1
|
+
import _,{useCallback as de,useMemo as q,useRef as He}from"react";import{FlatList as We,Pressable as Ge,ScrollView as _e,Text as I,TextInput as Qe,View as C}from"react-native";import{useInspector as Ue}from"./InspectorContext";import M from"../TouchableScale";import Ie from"../AnimatedEntrance";import Ke from"../DomainHeader";import Xe from"../LogCard";import Je from"../EmptyState";import Ye from"../EndOfListFooter";import Ze from"./NetworkFilterModal";import S from"../../styles";import{AppColors as o}from"../../styles/AppColors";import{AppFonts as k}from"../../styles/AppFonts";import{METHOD_COLORS as Ve}from"../../constants";import{useTranslation as eo}from"../../i18n";import{SearchIcon as Co,ClearIcon as So,TrashIcon as To,SortArrowIcon as Io,FilterIcon as Vo,ChevronIcon as Fo,CheckIcon as Ro,CircleCheckIcon as Lo,CircleXIcon as Bo,LayersIcon as Fe,ClockIcon as Po,RequestIcon as Eo,ResponseIcon as $o,AtomIcon as Do}from"../NetworkIcons";const Mo=_.memo(()=>{const{groupedData:j,loadMoreSection:ce,search:R,setSearch:Q,setSearchScope:ue,quickFilter:U,setQuickFilter:ae,handleDelete:Re,isGroupByPageEnabled:F,setIsGroupByPageEnabled:Le,selectedLogs:K,sortOrder:Be,setSortOrder:X,statusFilters:L,setStatusFilters:H,methodFilters:B,setMethodFilters:v,latencyFilter:N,setLatencyFilter:J,protocolFilter:O,setProtocolFilter:Y,networkSortBy:A,setNetworkSortBy:Z,filteredLogs:E,logs:W,toggleSectionFilter:ge,toggleSectionCollapse:pe,minStart:me,totalRange:he,newLogIds:ye,toggleSelect:fe,setSelected:we,maxNetworkLogs:ie}=Ue(),{t:ee}=eo(),Pe=He(null),[Ee,Ce]=_.useState(!1),[Se,be]=_.useState(!1),[oe,Te]=_.useState(ie||50);_.useEffect(()=>{Te(ie||50)},[R,U,ie]);const se=q(()=>F?j:j.slice(0,oe),[F,j,oe]),$e=de(e=>e?.id?String(e.id):"",[]),$=q(()=>L.size>0&&!L.has("all")||B.size>0&&!B.has("all")||N!=="all"||O!=="all"||A!=="time_desc",[L,B,N,O,A]),De=q(()=>{let e=0;return L.size>0&&!L.has("all")&&(e+=L.size),B.size>0&&!B.has("all")&&(e+=B.size),N!=="all"&&e++,O!=="all"&&e++,A!=="time_desc"&&e++,e},[L,B,N,O,A]),Me=q(()=>({statusCodes:L.size>0?new Set(L):new Set(["all"]),methods:B.size>0?new Set(B):new Set(["all"]),latency:N,protocol:O,sortBy:A}),[L,B,N,O,A]),Ne=de(e=>{e.statusCodes.has("all")||e.statusCodes.size===0?H(new Set):H(new Set(e.statusCodes)),e.methods.has("all")||e.methods.size===0?v(new Set):v(new Set([...e.methods].map(T=>T))),J(e.latency||"all"),Y(e.protocol||"all"),Z(e.sortBy||"time_desc"),e.sortBy==="time_asc"?X("oldest"):X("newest")},[H,v,J,Y,Z,X]),P=q(()=>{let e=0,T=0,z=0,x=0,G=0,te=0;return W.forEach(V=>{const b=typeof V.status=="number"?V.status:parseInt(String(V.status),10);V.status===0||V.status==null||!isNaN(b)&&b>=400?e++:!isNaN(b)&&b>=200&&b<400&&T++,(V.duration||0)>=500&&z++;const re=(V.method||"").toUpperCase();re==="POST"&&x++,re==="GET"&&G++;const D=(V.url||"").toLowerCase(),le=(V.client||"").toLowerCase();(D.includes("graphql")||le.includes("graphql")||le.includes("apollo"))&&te++}),{all:W.length,errors:e,success:T,slow:z,post:x,get:G,graphql:te}},[W]),Oe=q(()=>[{id:"all",label:"All",count:P.all,color:o.purple},{id:"errors",label:"Errors",count:P.errors,color:o.errorColor},{id:"success",label:"2xx OK",count:P.success,color:o.greenColor},{id:"slow",label:"Slow >500ms",count:P.slow,color:o.warningIconGold},{id:"POST",label:"POST",count:P.post,color:Ve.POST||o.blue500},{id:"GET",label:"GET",count:P.get,color:Ve.GET||o.emerald500},{id:"graphql",label:"GraphQL",count:P.graphql,color:o.graphqlPink}],[P]),Ae=de(({item:e,index:T})=>{if(e.type==="header")return<Ie index={T}distance={8}>
|
|
2
|
+
<Ke pageName={e.pageName}color={e.color}stats={e.stats}activeFilters={e.activeFilters}onToggleFilter={ge}isCollapsed={e.isCollapsed}onToggleCollapse={pe}isFirst={e.isFirst}timestamp={e.timestamp}/>
|
|
3
|
+
</Ie>;if(e.type==="loadMore"){const{pageName:V,color:b,remainingCount:re,totalCount:D,loadedCount:le,loadMoreStep:ne,hasMore:qe}=e;return<C style={[S.treeNodeRow,S.treeNodeRowLast]}>
|
|
4
|
+
<C style={S.treeLines}>
|
|
5
|
+
<C style={[S.modernTreeLine,{borderColor:b},S.modernTreeLineLast]}/>
|
|
6
|
+
</C>
|
|
7
|
+
<C style={S.treeCardWrapper}>
|
|
8
|
+
{qe?<M onPress={()=>ce(V,ne||10)}hitSlop={6}style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:9,paddingHorizontal:12,marginVertical:3,marginRight:2,borderRadius:10,backgroundColor:`${b}14`,borderWidth:1.5,borderColor:`${b}40`,shadowColor:b,shadowOffset:{width:0,height:1.5},shadowOpacity:.1,shadowRadius:3,elevation:2}}>
|
|
9
|
+
<C style={{flexDirection:"row",alignItems:"center",gap:8}}>
|
|
10
|
+
<C style={{width:22,height:22,borderRadius:11,backgroundColor:b,alignItems:"center",justifyContent:"center",shadowColor:b,shadowOffset:{width:0,height:1},shadowOpacity:.25,shadowRadius:2,elevation:1}}>
|
|
11
|
+
<Fo color={o.white}size={9}direction="down"/>
|
|
12
|
+
</C>
|
|
13
|
+
<C>
|
|
14
|
+
<I style={{fontFamily:k.interBold,fontSize:12,color:b}}>
|
|
15
|
+
{ee("footer.loadMoreRequests",{count:ne,defaultValue:`Load ${ne} More Requests`})}
|
|
16
|
+
</I>
|
|
17
|
+
<I style={{fontFamily:k.interRegular,fontSize:9.5,color:o.grayTextWeak,marginTop:1}}>
|
|
18
|
+
Showing {le} of {D} requests
|
|
19
|
+
</I>
|
|
20
|
+
</C>
|
|
21
|
+
</C>
|
|
22
22
|
|
|
23
|
-
<
|
|
24
|
-
<
|
|
25
|
-
+{
|
|
26
|
-
</
|
|
27
|
-
<
|
|
23
|
+
<C style={{flexDirection:"row",alignItems:"center",backgroundColor:`${b}25`,paddingHorizontal:8,paddingVertical:4,borderRadius:8,borderWidth:1,borderColor:`${b}40`,gap:3}}>
|
|
24
|
+
<I style={{fontFamily:k.interBold,fontSize:10.5,color:b}}>
|
|
25
|
+
+{re}
|
|
26
|
+
</I>
|
|
27
|
+
<I style={{fontFamily:k.interRegular,fontSize:9,color:b}}>
|
|
28
28
|
more
|
|
29
|
-
</
|
|
30
|
-
</
|
|
31
|
-
</
|
|
32
|
-
<
|
|
33
|
-
<
|
|
34
|
-
<
|
|
35
|
-
</
|
|
36
|
-
<
|
|
37
|
-
{
|
|
38
|
-
</
|
|
39
|
-
</
|
|
29
|
+
</I>
|
|
30
|
+
</C>
|
|
31
|
+
</M>:<C style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:7,paddingHorizontal:11,marginVertical:3,marginRight:2,borderRadius:9,backgroundColor:`${b}0A`,borderWidth:1,borderColor:`${b}25`}}>
|
|
32
|
+
<C style={{flexDirection:"row",alignItems:"center",gap:7}}>
|
|
33
|
+
<C style={{width:17,height:17,borderRadius:8.5,backgroundColor:`${b}25`,alignItems:"center",justifyContent:"center"}}>
|
|
34
|
+
<Ro color={b}size={8}/>
|
|
35
|
+
</C>
|
|
36
|
+
<I style={{fontFamily:k.interMedium,fontSize:11,color:o.grayTextStrong}}>
|
|
37
|
+
{ee("footer.allLoaded",{count:D,defaultValue:`All ${D} requests loaded`})}
|
|
38
|
+
</I>
|
|
39
|
+
</C>
|
|
40
40
|
|
|
41
|
-
<
|
|
42
|
-
<
|
|
43
|
-
{
|
|
44
|
-
</
|
|
45
|
-
</
|
|
46
|
-
</
|
|
47
|
-
</
|
|
48
|
-
</
|
|
49
|
-
{
|
|
50
|
-
<
|
|
51
|
-
{!x&&<
|
|
52
|
-
</
|
|
53
|
-
<
|
|
54
|
-
<
|
|
55
|
-
</
|
|
56
|
-
</
|
|
57
|
-
<
|
|
41
|
+
<C style={{backgroundColor:`${b}18`,paddingHorizontal:7,paddingVertical:2,borderRadius:6}}>
|
|
42
|
+
<I style={{fontFamily:k.interBold,fontSize:9.5,color:b}}>
|
|
43
|
+
{D}/{D}
|
|
44
|
+
</I>
|
|
45
|
+
</C>
|
|
46
|
+
</C>}
|
|
47
|
+
</C>
|
|
48
|
+
</C>}const{log:z,isLast:x,color:G}=e,te=se.slice(0,T).filter(V=>!V.type).length;return<Ie index={T}distance={8}style={F?[S.treeNodeRow,x&&S.treeNodeRowLast]:{marginBottom:5,marginHorizontal:5}}>
|
|
49
|
+
{F&&<C style={S.treeLines}>
|
|
50
|
+
<C style={[S.modernTreeLine,{borderColor:G},x&&S.modernTreeLineLast]}/>
|
|
51
|
+
{!x&&<C style={[S.modernTreeBranch,{borderColor:G}]}/>}
|
|
52
|
+
</C>}
|
|
53
|
+
<C style={F?S.treeCardWrapper:{flex:1}}>
|
|
54
|
+
<Xe testID={`inspector.network.item.${te}`}item={z}isSelected={K.has(z.id)}onToggleSelect={fe}onPress={()=>{we(z)}}timelineMinStart={me}timelineTotalRange={he}isNew={ye.has(z.id)}searchStr={R}/>
|
|
55
|
+
</C>
|
|
56
|
+
</Ie>},[se,F,me,he,ye,K,fe,R,ge,pe,ce,we,ee]);return<C style={{flex:1}}>
|
|
57
|
+
<C style={{marginTop:6}}>
|
|
58
58
|
|
|
59
|
-
<
|
|
60
|
-
<
|
|
61
|
-
<
|
|
62
|
-
<
|
|
59
|
+
<C style={S.toolbarRow}>
|
|
60
|
+
<C style={[S.searchContainer,Se&&{borderColor:o.purple,borderWidth:1.5}]}>
|
|
61
|
+
<Co color={Se?o.purple:o.grayTextWeak}size={15}/>
|
|
62
|
+
<Qe placeholder="Search URL, status, method, headers, body..."placeholderTextColor={o.grayTextWeak}value={R}onChangeText={Q}onFocus={()=>be(!0)}onBlur={()=>be(!1)}style={S.searchInput}autoCorrect={!1}autoCapitalize="none"/>
|
|
63
63
|
|
|
64
|
-
{
|
|
65
|
-
<
|
|
66
|
-
<
|
|
64
|
+
{R.length>0&&<C style={{flexDirection:"row",alignItems:"center",gap:4}}>
|
|
65
|
+
<C style={{backgroundColor:`${o.purple}20`,borderRadius:10,paddingHorizontal:6,paddingVertical:1.5}}>
|
|
66
|
+
<I style={{color:o.purple,fontSize:9.5,fontFamily:k.interBold}}>
|
|
67
67
|
{E.length}
|
|
68
|
-
</
|
|
69
|
-
</
|
|
70
|
-
<
|
|
68
|
+
</I>
|
|
69
|
+
</C>
|
|
70
|
+
<Ge onPress={()=>Q("")}hitSlop={10}style={S.clearBtn}>
|
|
71
71
|
<So color={o.grayTextWeak}size={13}/>
|
|
72
|
-
</
|
|
73
|
-
</
|
|
74
|
-
</
|
|
72
|
+
</Ge>
|
|
73
|
+
</C>}
|
|
74
|
+
</C>
|
|
75
75
|
|
|
76
|
-
<
|
|
77
|
-
<
|
|
78
|
-
<
|
|
79
|
-
{
|
|
80
|
-
<
|
|
81
|
-
{
|
|
82
|
-
</
|
|
83
|
-
</
|
|
84
|
-
</
|
|
76
|
+
<C style={S.toolbarRight}>
|
|
77
|
+
<M style={[S.toolbarBtn,{borderColor:`${o.errorColor}38`,backgroundColor:`${o.errorColor}0F`}]}onPress={Re}hitSlop={6}>
|
|
78
|
+
<To color={o.errorColor}size={15}/>
|
|
79
|
+
{K.size>0&&<C style={S.trashBadge}>
|
|
80
|
+
<I style={S.trashBadgeText}>
|
|
81
|
+
{K.size}
|
|
82
|
+
</I>
|
|
83
|
+
</C>}
|
|
84
|
+
</M>
|
|
85
85
|
|
|
86
|
-
<
|
|
87
|
-
<
|
|
88
|
-
{
|
|
89
|
-
</
|
|
86
|
+
<M style={[S.toolbarBtn,F&&{borderColor:o.purple,backgroundColor:`${o.purple}15`}]}onPress={()=>Le(e=>!e)}hitSlop={6}accessibilityLabel={F?"Page Accordion Grouping Enabled (Tap for Plain List)":"Plain List Enabled (Tap for Page Accordion)"}accessibilityRole="button">
|
|
87
|
+
<Fe color={F?o.purple:o.grayTextStrong}size={16}/>
|
|
88
|
+
{F&&<C style={S.activeFilterDot}/>}
|
|
89
|
+
</M>
|
|
90
90
|
|
|
91
|
-
<
|
|
92
|
-
<
|
|
93
|
-
</
|
|
94
|
-
</
|
|
95
|
-
</
|
|
91
|
+
<M style={S.toolbarBtn}onPress={()=>X(e=>e==="newest"?"oldest":"newest")}hitSlop={10}>
|
|
92
|
+
<Io direction={Be==="newest"?"down":"up"}color={o.grayTextStrong}size={18}/>
|
|
93
|
+
</M>
|
|
94
|
+
</C>
|
|
95
|
+
</C>
|
|
96
96
|
|
|
97
97
|
|
|
98
|
-
<
|
|
99
|
-
<
|
|
100
|
-
{Oe.map(e=>{const T=
|
|
101
|
-
<
|
|
102
|
-
{e.id==="all"&&<
|
|
103
|
-
{e.id==="errors"&&<
|
|
104
|
-
{e.id==="success"&&<
|
|
105
|
-
{e.id==="slow"&&<
|
|
106
|
-
{e.id==="POST"&&<
|
|
107
|
-
{e.id==="GET"
|
|
108
|
-
{e.id==="graphql"&&<
|
|
109
|
-
<
|
|
98
|
+
<C style={{flexDirection:"row",alignItems:"center",marginBottom:8,paddingHorizontal:8,gap:6}}>
|
|
99
|
+
<_e horizontal showsHorizontalScrollIndicator={!1}style={{flex:1}}contentContainerStyle={{flexDirection:"row",alignItems:"center",gap:6,paddingRight:6}}>
|
|
100
|
+
{Oe.map(e=>{const T=U===e.id,z=e.color||o.purple,x=T?o.white:z;return<M testID={`inspector.network.filter.${e.id.toLowerCase()}`}key={e.id}onPress={()=>{ae(T?"all":e.id)}}>
|
|
101
|
+
<C style={{flexDirection:"row",alignItems:"center",paddingHorizontal:9,paddingVertical:4.5,borderRadius:8,backgroundColor:T?z:`${z}12`,borderWidth:1,borderColor:T?z:`${z}30`,gap:5}}>
|
|
102
|
+
{e.id==="all"&&<Fe size={11}color={x}/>}
|
|
103
|
+
{e.id==="errors"&&<Bo size={11}color={x}/>}
|
|
104
|
+
{e.id==="success"&&<Lo size={11}color={x}/>}
|
|
105
|
+
{e.id==="slow"&&<Po size={11}color={x}/>}
|
|
106
|
+
{e.id==="POST"&&<Eo size={11}color={x}/>}
|
|
107
|
+
{e.id==="GET"&&<$o size={11}color={x}/>}
|
|
108
|
+
{e.id==="graphql"&&<Do size={11}color={x}/>}
|
|
109
|
+
<I style={{fontFamily:k.interBold,fontSize:10.5,color:T?o.white:o.primaryBlack}}>
|
|
110
110
|
{e.label}
|
|
111
|
-
</
|
|
112
|
-
<
|
|
113
|
-
<
|
|
111
|
+
</I>
|
|
112
|
+
<C style={{backgroundColor:T?"rgba(255,255,255,0.25)":`${z}20`,paddingHorizontal:5,paddingVertical:1,borderRadius:8}}>
|
|
113
|
+
<I style={{fontFamily:k.interBold,fontSize:9,color:T?o.white:z}}>
|
|
114
114
|
{e.count}
|
|
115
|
-
</
|
|
116
|
-
</
|
|
117
|
-
</
|
|
118
|
-
</
|
|
119
|
-
</
|
|
115
|
+
</I>
|
|
116
|
+
</C>
|
|
117
|
+
</C>
|
|
118
|
+
</M>})}
|
|
119
|
+
</_e>
|
|
120
120
|
|
|
121
|
-
<
|
|
122
|
-
<
|
|
123
|
-
<Vo size={11}color={
|
|
124
|
-
<
|
|
125
|
-
{
|
|
126
|
-
</
|
|
127
|
-
{
|
|
128
|
-
<
|
|
129
|
-
{
|
|
130
|
-
</
|
|
131
|
-
</
|
|
132
|
-
</
|
|
133
|
-
</
|
|
134
|
-
</
|
|
121
|
+
<M onPress={()=>Ce(!0)}style={{flexShrink:0}}>
|
|
122
|
+
<C style={{flexDirection:"row",alignItems:"center",paddingHorizontal:10,paddingVertical:4.5,borderRadius:8,backgroundColor:$?`${o.purple}20`:o.grayBackground,borderWidth:1,borderColor:$?o.purple:o.grayBorderSecondary,gap:5,shadowColor:o.black,shadowOpacity:.04,shadowRadius:2,shadowOffset:{width:0,height:1},elevation:1}}>
|
|
123
|
+
<Vo size={11}color={$?o.purple:o.grayText}/>
|
|
124
|
+
<I style={{fontFamily:k.interBold,fontSize:10.5,color:$?o.purple:o.grayText}}>
|
|
125
|
+
{ee("network.moreFilters","More Filters")}
|
|
126
|
+
</I>
|
|
127
|
+
{$&&<C style={{backgroundColor:o.purple,paddingHorizontal:4.5,paddingVertical:1,borderRadius:6}}>
|
|
128
|
+
<I style={{fontFamily:k.interBold,fontSize:8.5,color:o.white}}>
|
|
129
|
+
{De}
|
|
130
|
+
</I>
|
|
131
|
+
</C>}
|
|
132
|
+
</C>
|
|
133
|
+
</M>
|
|
134
|
+
</C>
|
|
135
135
|
|
|
136
136
|
|
|
137
|
-
{(
|
|
138
|
-
<
|
|
139
|
-
Showing {E.length} of {
|
|
140
|
-
</
|
|
141
|
-
<
|
|
142
|
-
<
|
|
137
|
+
{(U!=="all"||R.trim().length>0||$||E.length!==W.length)&&<C style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginHorizontal:8,marginBottom:8,paddingHorizontal:8,paddingVertical:5.5,backgroundColor:`${o.purple}10`,borderRadius:8,borderWidth:1,borderColor:`${o.purple}25`}}>
|
|
138
|
+
<I style={{fontFamily:k.interMedium,fontSize:10.5,color:o.purple}}>
|
|
139
|
+
Showing {E.length} of {W.length} requests
|
|
140
|
+
</I>
|
|
141
|
+
<M onPress={()=>{Q(""),ae("all"),H(new Set),v(new Set),J("all"),Y("all"),Z("time_desc"),ue("all")}}>
|
|
142
|
+
<I style={{fontFamily:k.interBold,fontSize:10.5,color:o.errorColor}}>
|
|
143
143
|
Clear All Filters
|
|
144
|
-
</
|
|
145
|
-
</
|
|
146
|
-
</
|
|
147
|
-
</
|
|
144
|
+
</I>
|
|
145
|
+
</M>
|
|
146
|
+
</C>}
|
|
147
|
+
</C>
|
|
148
148
|
|
|
149
|
-
<
|
|
149
|
+
<We ref={Pe}data={se}keyExtractor={$e}renderItem={Ae}initialNumToRender={10}maxToRenderPerBatch={8}windowSize={5}updateCellsBatchingPeriod={40}removeClippedSubviews={!0}renderToHardwareTextureAndroid={!0}showsVerticalScrollIndicator={!1}nestedScrollEnabled={!0}ListEmptyComponent={<Je isSearch={R.length>0||$||U!=="all"}searchQuery={R}customTitle={R.length>0?"No matching API requests":"No network activity"}onClearSearch={()=>{Q(""),H(new Set),v(new Set),J("all"),Y("all"),Z("time_desc"),ae("all"),ue("all")}}/>}ListFooterComponent={j.length>0?<Ye count={F?E.length:Math.min(oe,E.length)}totalCount={E.length}label="requests"hasMore={!F&&E.length>oe}loadMoreStep={30}onLoadMore={()=>Te(e=>e+30)}/>:null}style={{flex:1}}contentContainerStyle={[S.listContent,{flexGrow:1}]}keyboardShouldPersistTaps="handled"/>
|
|
150
150
|
|
|
151
151
|
|
|
152
|
-
<
|
|
153
|
-
</
|
|
152
|
+
<Ze visible={Ee}onClose={()=>Ce(!1)}filters={Me}onApply={Ne}searchQuery={R}/>
|
|
153
|
+
</C>});export default Mo;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import{useState as N,useEffect as
|
|
1
|
+
import{useState as N,useEffect as J,useRef as B}from"react";import{Animated as r,Linking as K,StyleSheet as Q,Text as S,TouchableOpacity as _,View as T}from"react-native";import I,{Path as C}from"react-native-svg";import{useInspector as X}from"./InspectorContext";import{LIB_VERSION as Z}from"../../constants";import{NpmIcon as Ce}from"../NetworkIcons";import{copyToClipboard as Ve}from"../../helpers";import{showToast as xe}from"../../helpers/toast";import{AppColors as e}from"../../styles/AppColors";import{AppFonts as Te}from"../../styles/AppFonts";import{useTranslation as Se}from"../../i18n";const Le=({size:t=13,color:i=e.slate400})=><I width={t}height={t}viewBox="0 0 24 24"fill="none">
|
|
2
2
|
<C d="M18 6L6 18M6 6l12 12"stroke={i}strokeWidth="2.4"strokeLinecap="round"strokeLinejoin="round"/>
|
|
3
|
-
</
|
|
3
|
+
</I>,Re=({size:t=11,color:i=e.slate400})=><I width={t}height={t}viewBox="0 0 24 24"fill="none">
|
|
4
4
|
<C d="M8 4v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2h-8a2 2 0 0 0-2 2z"stroke={i}strokeWidth="2"strokeLinecap="round"strokeLinejoin="round"/>
|
|
5
5
|
<C d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"stroke={i}strokeWidth="2"strokeLinecap="round"strokeLinejoin="round"/>
|
|
6
|
-
</
|
|
6
|
+
</I>,Be=({size:t=11,color:i=e.greenColor})=><I width={t}height={t}viewBox="0 0 24 24"fill="none">
|
|
7
7
|
<C d="M20 6L9 17l-5-5"stroke={i}strokeWidth="2.4"strokeLinecap="round"strokeLinejoin="round"/>
|
|
8
|
-
</
|
|
8
|
+
</I>,Ie=({size:t=11,color:i=e.white})=><I width={t}height={t}viewBox="0 0 24 24"fill="none">
|
|
9
9
|
<C d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"stroke={i}strokeWidth="2"strokeLinecap="round"strokeLinejoin="round"/>
|
|
10
10
|
<C d="M15 3h6v6"stroke={i}strokeWidth="2"strokeLinecap="round"strokeLinejoin="round"/>
|
|
11
11
|
<C d="M10 14L21 3"stroke={i}strokeWidth="2"strokeLinecap="round"strokeLinejoin="round"/>
|
|
12
|
-
</
|
|
12
|
+
</I>,U=7e3;export const NpmUpdateToast=()=>{const{t}=Se(),{updateAvailable:i,latestNpmVersion:V,showUpdateToast:O,setIsUpdatePopupVisible:R}=X(),[j,F]=N(!1),[$,E]=N(!1),[W,H]=N(!1),D=B(new r.Value(60)).current,P=B(new r.Value(0)).current,z=B(new r.Value(1)).current,A=B(null);J(()=>(O&&i&&V&&!j&&(E(!0),R?.(!0),r.parallel([r.spring(D,{toValue:0,friction:8,tension:40,useNativeDriver:!0}),r.timing(P,{toValue:1,duration:250,useNativeDriver:!0})]).start(),z.setValue(1),r.timing(z,{toValue:0,duration:U,useNativeDriver:!1}).start(),A.current=setTimeout(()=>{M()},U)),()=>{A.current&&clearTimeout(A.current),R?.(!1)}),[O,i,V,j,R]);const M=()=>{r.parallel([r.timing(P,{toValue:0,duration:180,useNativeDriver:!0}),r.timing(D,{toValue:60,duration:180,useNativeDriver:!0})]).start(()=>{E(!1),F(!0),R?.(!1)})},Y=()=>{Ve("npm install react-native-inapp-inspector@latest","Install Command"),H(!0),xe(t("about.copiedInstallCommand","Copied npm install command!")),setTimeout(()=>{H(!1)},2e3)},q=()=>{K.openURL("https://www.npmjs.com/package/react-native-inapp-inspector").catch(()=>{}),M()};if(typeof __DEV__>"u"||!__DEV__||!O||!$||!i||!V)return null;const G=z.interpolate({inputRange:[0,1],outputRange:["0%","100%"]});return<r.View style={[o.container,{opacity:P,transform:[{translateY:D}]}]}>
|
|
13
13
|
<T style={o.contentRow}>
|
|
14
14
|
|
|
15
15
|
<T style={o.npmIconContainer}>
|
|
16
|
-
<
|
|
16
|
+
<Ce size={15}color={e.npmRed}/>
|
|
17
17
|
</T>
|
|
18
18
|
|
|
19
19
|
<T style={o.textContainer}>
|
|
@@ -24,32 +24,32 @@ import{useState as N,useEffect as G,useRef as R}from"react";import{Animated as r
|
|
|
24
24
|
</T>
|
|
25
25
|
</T>
|
|
26
26
|
<S style={o.subtitleText}>
|
|
27
|
-
{t("header.updateAvailable",{latestVersion:V,currentVersion:
|
|
27
|
+
{t("header.updateAvailable",{latestVersion:V,currentVersion:Z,defaultValue:`react-native-inapp-inspector v${V} is available on NPM.`})}
|
|
28
28
|
</S>
|
|
29
29
|
</T>
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
<
|
|
33
|
-
{W?<
|
|
32
|
+
<_ style={o.copyButton}onPress={Y}activeOpacity={.7}hitSlop={{top:8,bottom:8,left:4,right:4}}>
|
|
33
|
+
{W?<Be size={11}color={e.greenColor}/>:<Re size={11}color={e.slate400}/>}
|
|
34
34
|
<S style={[o.copyButtonText,W&&{color:e.greenColor}]}>
|
|
35
35
|
{W?t("common.copied","Copied"):t("header.copyCommand","Copy")}
|
|
36
36
|
</S>
|
|
37
|
-
</
|
|
37
|
+
</_>
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
<
|
|
40
|
+
<_ style={o.actionButton}onPress={q}activeOpacity={.8}hitSlop={{top:8,bottom:8,left:4,right:4}}>
|
|
41
41
|
<S style={o.actionButtonText}>{t("header.viewNpm","View")}</S>
|
|
42
|
-
<
|
|
43
|
-
</
|
|
42
|
+
<Ie size={10}color={e.white}/>
|
|
43
|
+
</_>
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
<
|
|
47
|
-
<
|
|
48
|
-
</
|
|
46
|
+
<_ style={o.closeButton}onPress={M}activeOpacity={.7}hitSlop={{top:10,bottom:10,left:10,right:10}}>
|
|
47
|
+
<Le size={12}color={e.slate400}/>
|
|
48
|
+
</_>
|
|
49
49
|
</T>
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
<T style={o.progressBarTrack}>
|
|
53
|
-
<r.View style={[o.progressBarFill,{width:
|
|
53
|
+
<r.View style={[o.progressBarFill,{width:G}]}/>
|
|
54
54
|
</T>
|
|
55
|
-
</r.View>};const L={fontFamily:
|
|
55
|
+
</r.View>};const L={fontFamily:Te.interRegular},o=Q.create({container:{position:"absolute",bottom:24,left:14,right:14,backgroundColor:e.slate900,borderRadius:16,borderWidth:1,borderColor:e.slate700,shadowColor:e.black,shadowOffset:{width:0,height:12},shadowOpacity:.4,shadowRadius:24,elevation:24,overflow:"hidden",zIndex:99999},contentRow:{flexDirection:"row",alignItems:"center",paddingVertical:11,paddingHorizontal:12,gap:8},npmIconContainer:{width:32,height:32,borderRadius:9,backgroundColor:e.white,justifyContent:"center",alignItems:"center",borderWidth:1,borderColor:e.slate200,flexShrink:0,shadowColor:e.black,shadowOffset:{width:0,height:1},shadowOpacity:.15,shadowRadius:2,elevation:2},textContainer:{flex:1,minWidth:0},titleRow:{flexDirection:"row",alignItems:"center",gap:5},titleText:{fontSize:12.5,fontWeight:"700",color:e.slate50,letterSpacing:-.2,...L},versionPill:{backgroundColor:`${e.offerPurple}33`,paddingHorizontal:5.5,paddingVertical:1.5,borderRadius:5,borderWidth:1,borderColor:`${e.violet500}80`},versionPillText:{fontSize:10,fontWeight:"700",color:e.purpleLightMuted,...L},subtitleText:{fontSize:10.5,color:e.slate400,marginTop:1,...L},copyButton:{flexDirection:"row",alignItems:"center",gap:3.5,backgroundColor:e.slate800,paddingVertical:5.5,paddingHorizontal:8,borderRadius:7,borderWidth:1,borderColor:e.slate700,flexShrink:0},copyButtonText:{fontSize:10.5,fontWeight:"600",color:e.slate400,...L},actionButton:{flexDirection:"row",alignItems:"center",gap:3.5,backgroundColor:e.offerPurple,paddingVertical:5.5,paddingHorizontal:9,borderRadius:7,flexShrink:0,shadowColor:e.offerPurple,shadowOffset:{width:0,height:2},shadowOpacity:.35,shadowRadius:4,elevation:3},actionButtonText:{fontSize:11,fontWeight:"700",color:e.white,...L},closeButton:{width:22,height:22,borderRadius:11,backgroundColor:e.slate800,justifyContent:"center",alignItems:"center",flexShrink:0},progressBarTrack:{height:2.5,width:"100%",backgroundColor:e.slate800},progressBarFill:{height:"100%",backgroundColor:e.violet500}});export default NpmUpdateToast;
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import ce,{useRef as
|
|
1
|
+
import ce,{useRef as _,useState as F}from"react";import{Platform as de,ScrollView as Ce,Text as P,TouchableOpacity as U,View as C}from"react-native";import{useInspector as ke}from"./InspectorContext";import{useTranslation as we}from"../../i18n";import v from"../../styles";import{AppColors as o}from"../../styles/AppColors";import{AppFonts as T}from"../../styles/AppFonts";import G from"../TouchableScale";import{SignalIcon as Se,TerminalIcon as Ie,AnalyticsIcon as Re,ReduxIcon as Te,CrashIcon as Be,BellIcon as Pe,SmartphoneIcon as Le,DatabaseIcon as Ae,QrCodeIcon as Ve,ScreencastIcon as Oe,ChevronIcon as Q,WebsocketIcon as De}from"../NetworkIcons";import{isReduxConnected as Ee}from"../../customHooks/reduxLogger";import{isAnalyticsConnected as He}from"../../customHooks/analyticsLogger";import{isLocalDebugEnvironment as We}from"../../helpers";const n={themeColor:o.brandPurple,bgInactive:`${o.brandPurple}0D`,borderInactive:`${o.brandPurple}2B`,iconInactive:o.brandPurple,idBadgeBg:`${o.brandPurple}1C`,idBadgeBorder:`${o.brandPurple}3D`,idBadgeText:o.brandPurple},q={apis:n,logs:n,analytics:n,redux:n,storage:n,device:n,crash:n,push:n,socket:n,debugging:n,media:n},$e=ce.memo(()=>{const{t:J}=we(),{activeTab:w,switchActiveTab:L,tabVisibility:B,logs:A,consoleLogs:V,analyticsEvents:K,crashRecords:O,pushRecords:D,socketRecords:E,unreadPushCount:N,unreadSocketCount:X,lastReadApisCount:Y,lastReadLogsCount:Z,lastReadCrashesCount:ee,lastReadSocketCount:oe,mediaCount:H}=ke(),te=Ee(),ie=He(),k=w==="media",x=(B?.media??!0)&&(H>0||k||__DEV__),W=_(null),[z,re]=F(!1),[$,ne]=F(!0),j=_(0),le=e=>{const{contentOffset:t,layoutMeasurement:i,contentSize:r}=e.nativeEvent,S=t.x;j.current=S;const I=S>8,R=S<r.width-i.width-8;z!==I&&re(I),$!==R&&ne(R)},M=e=>{W.current?.scrollTo({x:Math.max(0,j.current+e),animated:!0})};return<C style={[v.tabBarContainer,{flexDirection:"row",alignItems:"center",paddingHorizontal:0}]}>
|
|
2
2
|
|
|
3
|
-
{z&&<
|
|
3
|
+
{z&&<U onPress={()=>M(-160)}hitSlop={{top:6,bottom:6,left:6,right:6}}activeOpacity={.7}style={{paddingLeft:6,paddingRight:2,justifyContent:"center",alignItems:"center"}}>
|
|
4
4
|
<C style={{width:22,height:22,borderRadius:11,backgroundColor:o.grayBorderSecondary,alignItems:"center",justifyContent:"center"}}>
|
|
5
5
|
<Q direction="left"size={13}color={o.grayTextStrong}/>
|
|
6
6
|
</C>
|
|
7
|
-
</
|
|
7
|
+
</U>}
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
<Ce ref={W}horizontal showsHorizontalScrollIndicator={!1}onScroll={le}scrollEventThrottle={16}style={{flex:1}}contentContainerStyle={{paddingLeft:z?4:12,paddingRight:x?6:12}}>
|
|
11
|
-
{[{id:1,key:"apis",label:"APIs",count:A.length,icon:"apis"},{id:2,key:"logs",label:"Logs",count:
|
|
10
|
+
<Ce testID="inspector.tab.scrollview"ref={W}horizontal showsHorizontalScrollIndicator={!1}onScroll={le}scrollEventThrottle={16}style={{flex:1}}contentContainerStyle={{paddingLeft:z?4:12,paddingRight:x?6:12}}>
|
|
11
|
+
{[{id:1,key:"apis",label:"APIs",count:A.length,icon:"apis"},{id:2,key:"logs",label:"Logs",count:V.length,icon:"logs"},{id:3,key:"analytics",label:"Analytics",count:K.length,icon:"analytics"},{id:4,key:"redux",label:"Redux",count:0,icon:"redux"},{id:5,key:"storage",label:"Storage",count:0,icon:"storage"},{id:6,key:"device",label:"Device",count:0,icon:"device"},{id:7,key:"crash",label:"Crash",count:O?.length||0,icon:"crash"},{id:8,key:"push",label:"Push",count:D?.length||0,icon:"push"},{id:9,key:"socket",label:"WebSocket",count:E?.length||0,icon:"socket"},{id:10,key:"debugging",label:"Debugging",count:0,icon:"debugging"}].filter(e=>e.key==="debugging"?de.OS==="android"&&We()&&!!B?.debugging:!(!B?.[e.key]||e.key==="redux"&&!te||e.key==="analytics"&&!ie)).map(e=>{const t=w===e.key,i=q[e.key]||q.apis,r=t?o.white:i.iconInactive,S=e.count>99?"99+":String(e.count),I=w!=="apis"&&A.length>Y,R=w!=="logs"&&V.length>Z,se=w!=="crash"&&(O?.length||0)>(ee||0),ae=w!=="socket"&&((E?.length||0)>(oe||0)||X>0);return<G key={e.key}testID={`inspector.tab.${e.key}`}onPress={()=>{L(e.key)}}style={[v.contentTabButton,{backgroundColor:t?i.themeColor:i.bgInactive,borderColor:t?i.themeColor:i.borderInactive},t&&{shadowColor:i.themeColor,shadowOffset:{width:0,height:2},shadowOpacity:.28,shadowRadius:3.5,elevation:3}]}>
|
|
12
12
|
<C style={{flexDirection:"row",alignItems:"center",gap:6}}>
|
|
13
|
-
{e.icon==="apis"&&<Se color={
|
|
14
|
-
{e.icon==="logs"&&<
|
|
15
|
-
{e.icon==="analytics"&&<
|
|
16
|
-
{e.icon==="redux"&&<Te color={
|
|
17
|
-
{e.icon==="storage"&&<Ae color={
|
|
18
|
-
{e.icon==="device"&&<Le color={
|
|
19
|
-
{e.icon==="crash"&&<Be color={
|
|
20
|
-
{e.icon==="push"&&<Pe color={
|
|
21
|
-
{e.icon==="socket"&&<De color={
|
|
22
|
-
{e.icon==="debugging"&&<
|
|
13
|
+
{e.icon==="apis"&&<Se color={r}size={14}/>}
|
|
14
|
+
{e.icon==="logs"&&<Ie color={r}size={14}/>}
|
|
15
|
+
{e.icon==="analytics"&&<Re color={r}size={14}/>}
|
|
16
|
+
{e.icon==="redux"&&<Te color={r}size={14}/>}
|
|
17
|
+
{e.icon==="storage"&&<Ae color={r}size={14}/>}
|
|
18
|
+
{e.icon==="device"&&<Le color={r}size={14}/>}
|
|
19
|
+
{e.icon==="crash"&&<Be color={r}size={14}/>}
|
|
20
|
+
{e.icon==="push"&&<Pe color={r}size={14}/>}
|
|
21
|
+
{e.icon==="socket"&&<De color={r}size={14}/>}
|
|
22
|
+
{e.icon==="debugging"&&<Ve color={r}size={14}/>}
|
|
23
23
|
<C style={{minWidth:20,height:20,paddingHorizontal:4,borderRadius:10,backgroundColor:t?`${o.white}33`:i.idBadgeBg,borderWidth:1,borderColor:t?`${o.white}66`:i.idBadgeBorder,alignItems:"center",justifyContent:"center"}}>
|
|
24
24
|
<P style={{fontFamily:T.interBold,fontSize:9.5,lineHeight:12,color:t?o.white:i.idBadgeText}}>
|
|
25
25
|
#{e.id}
|
|
26
26
|
</P>
|
|
27
27
|
</C>
|
|
28
|
-
<P numberOfLines={1}ellipsizeMode="tail"style={[
|
|
28
|
+
<P numberOfLines={1}ellipsizeMode="tail"style={[v.contentTabButtonText,{color:t?o.white:o.grayTextStrong,fontFamily:t?T.interBold:T.interSemiBold}]}>
|
|
29
29
|
{J(`tabs.${e.key}`,e.label)}
|
|
30
30
|
</P>
|
|
31
31
|
{e.count>0&&e.key!=="push"&&<C style={{paddingHorizontal:5,paddingVertical:1,borderRadius:8,backgroundColor:t?o.overlayWhite25:i.idBadgeBg,borderWidth:.5,borderColor:t?o.overlayWhite45:i.idBadgeBorder,marginLeft:1,alignItems:"center",justifyContent:"center"}}>
|
|
@@ -33,25 +33,25 @@ import ce,{useRef as F,useState as U}from"react";import{Platform as de,ScrollVie
|
|
|
33
33
|
{S}
|
|
34
34
|
</P>
|
|
35
35
|
</C>}
|
|
36
|
-
{(e.key==="apis"&&
|
|
36
|
+
{(e.key==="apis"&&I||e.key==="logs"&&R||e.key==="crash"&&se||e.key==="push"&&((D?.length||0)>0||N>0)||e.key==="socket"&&ae)&&<C style={{width:6,height:6,borderRadius:3,backgroundColor:o.errorColor,marginLeft:4,alignSelf:"center"}}/>}
|
|
37
37
|
</C>
|
|
38
38
|
</G>})}
|
|
39
39
|
</Ce>
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
{
|
|
42
|
+
{$&&<U onPress={()=>M(160)}hitSlop={{top:6,bottom:6,left:6,right:6}}activeOpacity={.7}style={{paddingLeft:2,paddingRight:x?4:8,justifyContent:"center",alignItems:"center"}}>
|
|
43
43
|
<C style={{width:22,height:22,borderRadius:11,backgroundColor:o.grayBorderSecondary,alignItems:"center",justifyContent:"center"}}>
|
|
44
44
|
<Q direction="right"size={13}color={o.grayTextStrong}/>
|
|
45
45
|
</C>
|
|
46
|
-
</
|
|
46
|
+
</U>}
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
{x&&<C style={{paddingLeft:6,paddingRight:10,borderLeftWidth:1,borderLeftColor:o.dividerColor,backgroundColor:o.primaryLight,justifyContent:"center",shadowColor:o.shadowColorString,shadowOffset:{width:-3,height:0},shadowOpacity:.12,shadowRadius:4,elevation:4,zIndex:10}}>
|
|
50
|
-
<G key="media"onPress={()=>{L("media")}}accessibilityRole="button"accessibilityLabel="Media Gallery"style={[
|
|
50
|
+
<G key="media"testID="inspector.tab.media"onPress={()=>{L("media")}}accessibilityRole="button"accessibilityLabel="Media Gallery"style={[v.contentTabButton,{marginRight:0,borderRadius:8,backgroundColor:k?o.brandPurple:`${o.brandPurple}0D`,borderColor:k?o.brandPurple:`${o.brandPurple}2B`,borderWidth:1,paddingHorizontal:10,paddingVertical:7,alignItems:"center",justifyContent:"center"},k&&{shadowColor:o.brandPurple,shadowOffset:{width:0,height:2},shadowOpacity:.28,shadowRadius:3.5,elevation:3}]}>
|
|
51
51
|
<C style={{position:"relative",alignItems:"center",justifyContent:"center"}}>
|
|
52
|
-
<
|
|
53
|
-
{H>0&&<C style={{position:"absolute",top:-3,right:-4,width:7,height:7,borderRadius:3.5,backgroundColor:
|
|
52
|
+
<Oe color={k?o.white:o.brandPurple}size={15}/>
|
|
53
|
+
{H>0&&<C style={{position:"absolute",top:-3,right:-4,width:7,height:7,borderRadius:3.5,backgroundColor:k?o.white:o.brandPurple,borderWidth:1.2,borderColor:k?o.brandPurple:o.white}}/>}
|
|
54
54
|
</C>
|
|
55
55
|
</G>
|
|
56
56
|
</C>}
|
|
57
|
-
</C>});export default
|
|
57
|
+
</C>});export default $e;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { LogCardProps } from '../types';
|
|
3
|
-
declare function LogCard({ item, onPress, timelineMinStart, timelineTotalRange, isNew, isSelected, onToggleSelect, searchStr, }: LogCardProps): React.JSX.Element;
|
|
3
|
+
declare function LogCard({ item, onPress, timelineMinStart, timelineTotalRange, isNew, isSelected, onToggleSelect, searchStr, testID, }: LogCardProps): React.JSX.Element;
|
|
4
4
|
declare const _default: React.MemoExoticComponent<typeof LogCard>;
|
|
5
5
|
export default _default;
|