react-native-inapp-inspector 2.5.7 → 2.5.8
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/dist/commonjs/components/ConsoleLogCard.js +13 -13
- package/dist/commonjs/components/Inspector/ConsoleTab.js +5 -5
- package/dist/commonjs/components/Inspector/FabLauncher.js +1 -1
- package/dist/commonjs/components/Inspector/InspectorHeader.js +6 -6
- package/dist/commonjs/components/Inspector/NetworkTab.js +48 -48
- 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/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -1
- package/dist/commonjs/types/interfaces.d.ts +2 -0
- 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/InspectorHeader.js +15 -15
- package/dist/esm/components/Inspector/NetworkTab.js +132 -132
- 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/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/types/interfaces.d.ts +2 -0
- 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,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;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import
|
|
1
|
+
import te,{useEffect as oe,useRef as ne,useMemo as le}from"react";import{Alert as v,Animated as W,Linking as ie,View as C,Pressable as E,Text as T,StyleSheet as A}from"react-native";import Ce,{Path as Te}from"react-native-svg";import{AppColors as e}from"../styles/AppColors";import{METHOD_COLORS as U}from"../constants";import{getStatusColor as Se,getDurationColor as Be,formatDateTime as Re,getSize as He,getPath as Ve,getBaseUrl as ze}from"../helpers";import{CalendarIcon as Ie,ClockIcon as N,SizeIcon as Le,CircleCheckIcon as $e,CircleAlertIcon as De,CircleXIcon as Oe,RepeatIcon as We,ForwardChevronIcon as Fe,GlobeIcon as Pe}from"./NetworkIcons";import{AppFonts as S}from"../styles/AppFonts";import G from"./HighlightText";import Me from"./TouchableScale";import{useTranslation as ve}from"../i18n";function Ee({item:r,onPress:B,timelineMinStart:Ue,timelineTotalRange:qe,isNew:L,isSelected:F,onToggleSelect:J,searchStr:P,testID:K}){const{t:R}=ve(),j=U[r.method]??U.ALL,V=le(()=>{try{const o=new URL(r.url),O=o.host,M=o.pathname+(o.search?o.search:""),re=o.protocol==="https:";return{host:O,path:M||"/",isHttps:re}}catch{const o=r.url.toLowerCase().startsWith("https:"),O=Ve(r.url);return{host:ze(r.url).replace(/^https?:\/\//,""),path:O||r.url,isHttps:o}}},[r.url]),Q=o=>{o?.stopPropagation?.(),v.alert(R("common.openInBrowser")||"Open in Browser",`${R("common.openInBrowserPrompt")||"Are you sure you want to open this URL in your external browser?"}
|
|
2
2
|
|
|
3
|
-
${r.url}`,[{text:
|
|
4
|
-
<Me onPress={B}style={[t.card,{borderLeftWidth:3.5,borderLeftColor:
|
|
3
|
+
${r.url}`,[{text:R("common.cancel")||"Cancel",style:"cancel"},{text:R("common.open")||"Open",onPress:()=>{ie.openURL(r.url).catch(()=>{v.alert(R("common.error")||"Error",R("common.cannotOpenUrl")||"Could not open URL")})}}])},H=r.status===0||r.status!=null&&r.status>=400,z=r.status==null,$=Se(r.status),I=Be(r.duration),X=z?e.darkOrange:H?e.errorColor:e.greenColor,D=ne(new W.Value(L?.35:0)).current;oe(()=>{L&&W.timing(D,{toValue:0,duration:1200,useNativeDriver:!0}).start()},[L,D]);const _=()=>{if(z)return"...";if(r.status===0||r.status==null)return R("network.statusFailed")||"FAILED";const o=typeof r.status=="number"?r.status:parseInt(String(r.status||0),10);return o===200?"200 OK":o===201?"201 Created":o===204?"204 No Content":o===304?"304 Not Modified":o===400?"400 Bad Req":o===401?"401 Unauth":o===403?"403 Forbidden":o===404?"404 Not Found":o===500?"500 Error":String(r.status)},Y=()=>{if(z)return<N color={e.darkOrange}size={10}/>;const o=typeof r.status=="number"?r.status:parseInt(String(r.status||0),10);return o>=200&&o<300?<$e color={e.greenColor}size={10}/>:o>=300&&o<400?<We color={e.amber700}size={10}/>:o>=400&&o<500?<De color={e.darkOrange}size={10}/>:<Oe color={e.errorColor}size={10}/>},Z=Re(r.startTime),ee=r.url.split("?")[0].toLowerCase().endsWith(".json");return<C style={t.container}>
|
|
4
|
+
<Me testID={K}onPress={B}style={[t.card,{borderLeftWidth:3.5,borderLeftColor:X,backgroundColor:H?e.errorCardBg:e.white}]}>
|
|
5
5
|
<C style={t.cardBody}>
|
|
6
6
|
|
|
7
7
|
<C style={t.cardHeaderRow}>
|
|
8
8
|
<C style={t.cardHeaderLeft}>
|
|
9
|
-
<
|
|
10
|
-
{
|
|
9
|
+
<E onPress={()=>J(r.id)}hitSlop={12}style={[t.smallCheckbox,F&&t.smallCheckboxChecked]}>
|
|
10
|
+
{F&&<Ce width={9}height={9}viewBox="0 0 24 24"fill="none">
|
|
11
11
|
<Te d="M20 6L9 17l-5-5"stroke={e.white}strokeWidth="4"strokeLinecap="round"strokeLinejoin="round"/>
|
|
12
12
|
</Ce>}
|
|
13
|
-
</
|
|
13
|
+
</E>
|
|
14
14
|
|
|
15
15
|
<T style={t.serialNumber}>#{r.id+1}</T>
|
|
16
16
|
|
|
17
|
-
<C style={[t.methodBadge,{backgroundColor:
|
|
17
|
+
<C style={[t.methodBadge,{backgroundColor:j}]}>
|
|
18
18
|
<T style={t.methodBadgeText}>
|
|
19
19
|
{r.method}
|
|
20
20
|
</T>
|
|
@@ -35,15 +35,15 @@ ${r.url}`,[{text:z("common.cancel")||"Cancel",style:"cancel"},{text:z("common.op
|
|
|
35
35
|
</C>
|
|
36
36
|
|
|
37
37
|
<C style={t.cardHeaderRight}>
|
|
38
|
-
<C style={[t.statusPill,{backgroundColor:
|
|
39
|
-
{
|
|
40
|
-
<T style={[t.statusPillText,{color:
|
|
41
|
-
{
|
|
38
|
+
<C style={[t.statusPill,{backgroundColor:H?`${e.errorColor}14`:z?`${e.darkOrange}14`:`${$}14`,borderColor:H?`${e.errorColor}33`:z?`${e.darkOrange}33`:`${$}33`}]}>
|
|
39
|
+
{Y()}
|
|
40
|
+
<T style={[t.statusPillText,{color:H?e.errorColor:z?e.darkOrange:$}]}>
|
|
41
|
+
{_()}
|
|
42
42
|
</T>
|
|
43
43
|
</C>
|
|
44
|
-
<
|
|
44
|
+
<E onPress={Q}hitSlop={8}style={t.globeBtn}accessibilityRole="button"accessibilityLabel="Open in Browser">
|
|
45
45
|
<Pe color={e.grayTextWeak}size={12}/>
|
|
46
|
-
</
|
|
46
|
+
</E>
|
|
47
47
|
<Fe color={e.grayTextWeak}size={13}/>
|
|
48
48
|
</C>
|
|
49
49
|
</C>
|
|
@@ -53,15 +53,15 @@ ${r.url}`,[{text:z("common.cancel")||"Cancel",style:"cancel"},{text:z("common.op
|
|
|
53
53
|
|
|
54
54
|
<C style={t.urlMainRow}>
|
|
55
55
|
<C style={t.hostRow}>
|
|
56
|
-
<C style={[t.protoBadge,{backgroundColor:
|
|
57
|
-
<T style={[t.protoBadgeText,{color:
|
|
58
|
-
{
|
|
56
|
+
<C style={[t.protoBadge,{backgroundColor:V.isHttps?`${e.emerald600}12`:`${e.amber600}12`,borderColor:V.isHttps?`${e.emerald600}2B`:`${e.amber600}2B`}]}>
|
|
57
|
+
<T style={[t.protoBadgeText,{color:V.isHttps?e.emerald600:e.amber700}]}>
|
|
58
|
+
{V.isHttps?"HTTPS":"HTTP"}
|
|
59
59
|
</T>
|
|
60
60
|
</C>
|
|
61
|
-
<G text={
|
|
61
|
+
<G text={V.host||r.url}search={P}style={t.hostText}highlightStyle={t.highlight}numberOfLines={1}ellipsizeMode="tail"/>
|
|
62
62
|
</C>
|
|
63
63
|
<C style={t.urlBadgeRow}>
|
|
64
|
-
{
|
|
64
|
+
{ee&&<C style={t.jsonBadge}>
|
|
65
65
|
<T style={t.jsonBadgeText}>.json</T>
|
|
66
66
|
</C>}
|
|
67
67
|
{r.duplicateCount!=null&&r.duplicateCount>1&&<C style={t.dupBadge}>
|
|
@@ -72,7 +72,7 @@ ${r.url}`,[{text:z("common.cancel")||"Cancel",style:"cancel"},{text:z("common.op
|
|
|
72
72
|
|
|
73
73
|
|
|
74
74
|
<C style={t.slugRow}>
|
|
75
|
-
<G text={
|
|
75
|
+
<G text={V.path}search={P}style={t.pathText}highlightStyle={t.highlight}numberOfLines={1}ellipsizeMode="middle"/>
|
|
76
76
|
</C>
|
|
77
77
|
</C>
|
|
78
78
|
|
|
@@ -81,7 +81,7 @@ ${r.url}`,[{text:z("common.cancel")||"Cancel",style:"cancel"},{text:z("common.op
|
|
|
81
81
|
<C style={t.footerLeft}>
|
|
82
82
|
<C style={t.cardDateRow}>
|
|
83
83
|
<Ie color={e.grayTextWeak}size={10}/>
|
|
84
|
-
<T style={t.cardDateText}numberOfLines={1}>{
|
|
84
|
+
<T style={t.cardDateText}numberOfLines={1}>{Z}</T>
|
|
85
85
|
</C>
|
|
86
86
|
</C>
|
|
87
87
|
|
|
@@ -93,7 +93,7 @@ ${r.url}`,[{text:z("common.cancel")||"Cancel",style:"cancel"},{text:z("common.op
|
|
|
93
93
|
</T>
|
|
94
94
|
</C>}
|
|
95
95
|
|
|
96
|
-
{r.duration!=null&&!
|
|
96
|
+
{r.duration!=null&&!H&&<C style={[t.metaStatChip,{backgroundColor:`${I}12`,borderColor:`${I}2E`}]}>
|
|
97
97
|
<N color={I}size={9}/>
|
|
98
98
|
<T style={[t.metaStatText,{color:I}]}>
|
|
99
99
|
{r.duration}ms
|
|
@@ -104,10 +104,10 @@ ${r.url}`,[{text:z("common.cancel")||"Cancel",style:"cancel"},{text:z("common.op
|
|
|
104
104
|
|
|
105
105
|
|
|
106
106
|
<C style={t.waterfallContainer}>
|
|
107
|
-
{typeof r.duration=="number"&&r.duration>0&&!
|
|
107
|
+
{typeof r.duration=="number"&&r.duration>0&&!H&&<C style={[t.waterfallBar,{width:`${Math.min(100,Math.max(6,r.duration/1200*100))}%`,backgroundColor:I}]}/>}
|
|
108
108
|
</C>
|
|
109
109
|
</C>
|
|
110
110
|
|
|
111
|
-
{
|
|
111
|
+
{L&&<W.View pointerEvents="none"style={[A.absoluteFill,{backgroundColor:j,opacity:D}]}/>}
|
|
112
112
|
</Me>
|
|
113
|
-
</C>}const t=
|
|
113
|
+
</C>}const t=A.create({container:{paddingHorizontal:8,paddingVertical:4,height:126,justifyContent:"center"},card:{height:118,alignSelf:"stretch",borderRadius:10,overflow:"hidden",borderWidth:1,borderColor:e.dividerColor,shadowColor:e.shadowColorString},cardBody:{height:"100%",paddingHorizontal:8,paddingTop:8,paddingBottom:6,justifyContent:"space-between"},cardHeaderRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",height:22,minHeight:22,maxHeight:22},cardHeaderLeft:{flexDirection:"row",alignItems:"center",flex:1,marginRight:4,gap:4.5,minWidth:0,overflow:"hidden"},cardHeaderRight:{flexDirection:"row",alignItems:"center",gap:4,flexShrink:0},smallCheckbox:{width:15,height:15,borderRadius:4,borderWidth:1.5,borderColor:e.grayTextWeak,alignItems:"center",justifyContent:"center",backgroundColor:e.white},smallCheckboxChecked:{backgroundColor:e.purple,borderColor:e.purple},serialNumber:{fontFamily:S.interBold,color:e.grayTextWeak,fontSize:10},methodBadge:{paddingHorizontal:6,paddingVertical:2,borderRadius:5,alignItems:"center",justifyContent:"center"},methodBadgeText:{fontFamily:S.interBold,fontSize:9.5,lineHeight:12,letterSpacing:.5,color:e.white},chip:{paddingHorizontal:5.5,paddingVertical:1.5,borderRadius:4,borderWidth:1},chipText:{fontFamily:S.interBold,fontSize:9,lineHeight:12},statusPill:{flexDirection:"row",alignItems:"center",gap:3.5,paddingHorizontal:6,paddingVertical:2,borderRadius:6,borderWidth:1,flexShrink:0},statusPillText:{fontFamily:S.interBold,fontSize:9.5,lineHeight:12},globeBtn:{padding:3,borderRadius:4,backgroundColor:`${e.grayTextWeak}12`,alignItems:"center",justifyContent:"center"},urlBox:{backgroundColor:e.grayBackground,borderRadius:7,borderWidth:1,borderColor:e.dividerColor,paddingHorizontal:7,paddingVertical:4.5,height:48,minHeight:48,maxHeight:48,justifyContent:"center",gap:2.5,overflow:"hidden"},urlMainRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:4,minHeight:16},hostRow:{flexDirection:"row",alignItems:"center",gap:5,flex:1,minWidth:0},protoBadge:{paddingHorizontal:4,paddingVertical:1,borderRadius:3.5,borderWidth:1},protoBadgeText:{fontFamily:S.interBold,fontSize:8,lineHeight:10},hostText:{fontFamily:S.interBold,fontSize:11.5,lineHeight:15,color:e.primaryBlack,flex:1},urlBadgeRow:{flexDirection:"row",alignItems:"center",gap:4,flexShrink:0},jsonBadge:{backgroundColor:`${e.darkOrange}14`,borderColor:`${e.darkOrange}2E`,borderWidth:1,paddingHorizontal:4.5,paddingVertical:1,borderRadius:3.5},jsonBadgeText:{fontFamily:S.interBold,fontSize:8.5,color:e.darkOrange},dupBadge:{backgroundColor:`${e.purple}14`,borderColor:`${e.purple}2E`,borderWidth:1,paddingHorizontal:4.5,paddingVertical:1,borderRadius:3.5},dupBadgeText:{fontFamily:S.interBold,fontSize:8.5,color:e.purple},slugRow:{flexDirection:"row",alignItems:"center",minHeight:15},pathText:{fontFamily:S.interMedium,fontSize:10.5,lineHeight:14,color:e.slate600||e.grayText,flex:1},highlight:{backgroundColor:e.yellowHighlight,color:e.primaryBlack,borderRadius:2},cardFooterRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",height:18,minHeight:18,maxHeight:18,gap:4},footerLeft:{flexDirection:"row",alignItems:"center",gap:4.5,flex:1,minWidth:0,overflow:"hidden"},footerRight:{flexDirection:"row",alignItems:"center",gap:4,flexShrink:0},cardDateRow:{flexDirection:"row",alignItems:"center",gap:3.5},cardDateText:{fontFamily:S.interRegular,fontSize:10,lineHeight:13,color:e.slate400},metaStatChip:{flexDirection:"row",alignItems:"center",gap:3,backgroundColor:e.violetSoftBg,borderColor:e.violetSoftBorder,borderWidth:1,paddingHorizontal:5.5,paddingVertical:1.5,borderRadius:4},metaStatText:{fontFamily:S.interBold,color:e.violetSoftText,fontSize:9,lineHeight:12},waterfallContainer:{height:2.5,width:"100%",backgroundColor:e.graySurface,borderRadius:1.5,overflow:"hidden",marginTop:2},waterfallBar:{height:"100%",borderRadius:1.5}});function Ae(r,B){return r.item===B.item&&r.isSelected===B.isSelected&&r.isNew===B.isNew&&r.searchStr===B.searchStr&&r.timelineMinStart===B.timelineMinStart&&r.timelineTotalRange===B.timelineTotalRange&&r.onPress===B.onPress&&r.onToggleSelect===B.onToggleSelect}export default te.memo(Ee,Ae);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const LIB_VERSION = "2.5.
|
|
1
|
+
export declare const LIB_VERSION = "2.5.8";
|