react-native-inapp-inspector 2.3.24 → 2.3.25
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/dist/commonjs/components/AnalyticsDetail.js +8 -8
- package/dist/commonjs/components/AnalyticsEventCard.js +11 -8
- package/dist/commonjs/components/AppHeaderLogo.js +1 -1
- package/dist/commonjs/components/BrandSquareIcon.js +12 -12
- 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/AnalyticsTab.js +30 -298
- package/dist/commonjs/components/Inspector/ConsoleTab.js +38 -93
- package/dist/commonjs/components/Inspector/CrashDetail.js +12 -12
- package/dist/commonjs/components/Inspector/CrashTab.js +43 -33
- package/dist/commonjs/components/Inspector/DebuggingTab.js +9 -9
- package/dist/commonjs/components/Inspector/DeviceInfoTab.js +54 -52
- package/dist/commonjs/components/Inspector/InspectorHeader.js +1 -1
- package/dist/commonjs/components/Inspector/MainScreen.js +23 -25
- package/dist/commonjs/components/Inspector/MediaGalleryTab.js +1 -1
- package/dist/commonjs/components/Inspector/MediaPreviewModal.js +3 -3
- package/dist/commonjs/components/Inspector/NetworkTab.js +31 -31
- package/dist/commonjs/components/Inspector/NpmStarPrompt.js +3 -3
- package/dist/commonjs/components/Inspector/NpmUpdateToast.js +21 -22
- package/dist/commonjs/components/Inspector/ReduxTab.js +110 -97
- package/dist/commonjs/components/Inspector/SettingsPanel.js +48 -100
- package/dist/commonjs/components/Inspector/StorageTab.js +56 -52
- package/dist/commonjs/components/Inspector/TabBar.js +29 -26
- package/dist/commonjs/components/JsonViewer.js +169 -164
- package/dist/commonjs/components/LogCard.js +34 -38
- package/dist/commonjs/components/LogSyntaxHighlighter.js +3 -3
- package/dist/commonjs/components/SegmentedTabs.d.ts +4 -1
- package/dist/commonjs/components/SegmentedTabs.js +8 -8
- 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/networkLogger.js +1 -2
- package/dist/commonjs/helpers/index.d.ts +6 -0
- package/dist/commonjs/helpers/index.js +4 -4
- package/dist/commonjs/helpers/memoryManager.d.ts +0 -1
- package/dist/commonjs/helpers/memoryManager.js +1 -1
- package/dist/commonjs/helpers/remoteConfig.js +1 -1
- package/dist/commonjs/helpers/settingsStore.js +1 -1
- 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 +2 -4
- package/dist/commonjs/index.js +2 -2
- 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 +0 -20
- package/dist/commonjs/types/enums.js +1 -1
- package/dist/esm/components/AnalyticsDetail.js +75 -75
- package/dist/esm/components/AnalyticsEventCard.js +20 -17
- package/dist/esm/components/AppHeaderLogo.js +5 -5
- package/dist/esm/components/BrandSquareIcon.js +39 -39
- 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/AnalyticsTab.js +47 -315
- package/dist/esm/components/Inspector/ConsoleTab.js +61 -116
- package/dist/esm/components/Inspector/CrashDetail.js +49 -49
- package/dist/esm/components/Inspector/CrashTab.js +75 -65
- package/dist/esm/components/Inspector/DebuggingTab.js +31 -31
- package/dist/esm/components/Inspector/DeviceInfoTab.js +146 -144
- package/dist/esm/components/Inspector/InspectorHeader.js +5 -5
- package/dist/esm/components/Inspector/MainScreen.js +51 -53
- package/dist/esm/components/Inspector/MediaGalleryTab.js +1 -1
- package/dist/esm/components/Inspector/MediaPreviewModal.js +31 -31
- package/dist/esm/components/Inspector/NetworkTab.js +63 -63
- package/dist/esm/components/Inspector/NpmStarPrompt.js +42 -42
- package/dist/esm/components/Inspector/NpmUpdateToast.js +45 -46
- package/dist/esm/components/Inspector/ReduxTab.js +163 -150
- package/dist/esm/components/Inspector/SettingsPanel.js +136 -188
- package/dist/esm/components/Inspector/StorageTab.js +88 -84
- package/dist/esm/components/Inspector/TabBar.js +37 -34
- package/dist/esm/components/JsonViewer.js +173 -168
- package/dist/esm/components/LogCard.js +38 -42
- package/dist/esm/components/LogSyntaxHighlighter.js +1 -1
- package/dist/esm/components/SegmentedTabs.d.ts +4 -1
- package/dist/esm/components/SegmentedTabs.js +8 -8
- 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/networkLogger.js +1 -2
- package/dist/esm/helpers/index.d.ts +6 -0
- package/dist/esm/helpers/index.js +4 -4
- package/dist/esm/helpers/memoryManager.d.ts +0 -1
- package/dist/esm/helpers/memoryManager.js +1 -1
- package/dist/esm/helpers/remoteConfig.js +1 -1
- package/dist/esm/helpers/settingsStore.js +1 -1
- 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 +2 -4
- package/dist/esm/index.js +5 -5
- 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 +0 -20
- package/dist/esm/types/enums.js +1 -1
- package/package.json +1 -15
- package/dist/commonjs/bundle.d.ts +0 -2
- package/dist/commonjs/bundle.js +0 -1
- 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/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,185 +1,190 @@
|
|
|
1
|
-
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(e,t,
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
<react_native_1.View style={
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
</react_native_1.View>
|
|
18
|
-
{F&&<react_native_1.TouchableOpacity onPress={()=>g(y=>!y)}hitSlop={6}style={localStyles.showMoreBtn}>
|
|
19
|
-
<react_native_1.Text style={localStyles.showMoreText}>
|
|
20
|
-
{o?"Collapse":"Expand"}
|
|
1
|
+
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(e,t,l,o){o===void 0&&(o=l);var r=Object.getOwnPropertyDescriptor(t,l);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[l]}}),Object.defineProperty(e,o,r)}):(function(e,t,l,o){o===void 0&&(o=l),e[o]=t[l]})),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),__importStar=this&&this.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(l){var o=[];for(var r in l)Object.prototype.hasOwnProperty.call(l,r)&&(o[o.length]=r);return o},e(t)};return function(t){if(t&&t.__esModule)return t;var l={};if(t!=null)for(var o=e(t),r=0;r<o.length;r++)o[r]!=="default"&&__createBinding(l,t,o[r]);return __setModuleDefault(l,t),l}})(),__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importStar(require("react")),react_native_1=require("react-native"),i18n_1=require("../i18n"),TreeNode_1=__importDefault(require("./TreeNode")),HighlightText_1=__importDefault(require("./HighlightText")),TouchableScale_1=__importDefault(require("./TouchableScale")),NetworkIcons_1=require("./NetworkIcons"),AppColors_1=require("../styles/AppColors"),helpers_1=require("../helpers"),NativeInspector_1=require("../native/NativeInspector"),monoFont=react_native_1.Platform.select({ios:"Menlo",android:"monospace",default:"monospace"}),getTypeDetails=e=>e===null?{label:"null",color:AppColors_1.AppColors.errorColor,bg:AppColors_1.AppColors.errorCardBg,border:AppColors_1.AppColors.errorBorder}:e===void 0?{label:"undef",color:AppColors_1.AppColors.errorColor,bg:AppColors_1.AppColors.errorCardBg,border:AppColors_1.AppColors.errorBorder}:Array.isArray(e)?{label:`arr[${e.length}]`,color:AppColors_1.AppColors.blue600,bg:AppColors_1.AppColors.blueBg,border:AppColors_1.AppColors.sky100}:typeof e=="object"?{label:`obj{${Object.keys(e).length}}`,color:AppColors_1.AppColors.violet600,bg:AppColors_1.AppColors.purple50,border:AppColors_1.AppColors.purple200}:typeof e=="number"?{label:"num",color:AppColors_1.AppColors.amber600,bg:AppColors_1.AppColors.amber100,border:AppColors_1.AppColors.amber200}:typeof e=="boolean"?{label:"bool",color:AppColors_1.AppColors.pink600,bg:AppColors_1.AppColors.roseBg,border:AppColors_1.AppColors.roseBorder}:{label:"str",color:AppColors_1.AppColors.emerald600,bg:AppColors_1.AppColors.emeraldBg,border:AppColors_1.AppColors.emeraldBorder},RawValueText=react_1.default.memo(({text:e,search:t,detectLinks:l})=>{const o=e.trim();let r=localStyles.rawMonospaceText;return o.startsWith('"')?r=localStyles.syntaxString:o==="null"||o.startsWith("null,")||o==="undefined"?r=localStyles.syntaxNull:o==="true"||o.startsWith("true,")||o==="false"||o.startsWith("false,")?r=localStyles.syntaxBoolean:/^-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?,?$/.test(o)&&(r=localStyles.syntaxNumber),<HighlightText_1.default text={e}search={t}detectLinks={l}style={r}selectable={!0}highlightStyle={localStyles.highlight}/>}),RawJsonLine=react_1.default.memo(({line:e,search:t,detectLinks:l})=>{const o=e.match(/^(\s+)(.*)$/),r=o?o[1]:"",d=o?o[2]:e,u=r?r.replace(/ /g,"\xB7 ").replace(/ /g,"\xB7"):"",s=d.match(/^("(?:[^"\\]|\\.)*")(\s*:\s*)(.*)$/);if(s){const c=s[1],f=s[2],i=s[3];return<react_native_1.View style={localStyles.rawLineContentRow}>
|
|
2
|
+
{u.length>0&&<react_native_1.Text style={localStyles.indentDots}>{u}</react_native_1.Text>}
|
|
3
|
+
<HighlightText_1.default text={c}search={t}style={localStyles.syntaxKey}selectable={!0}highlightStyle={localStyles.highlight}/>
|
|
4
|
+
<react_native_1.Text style={localStyles.syntaxColon}>{f}</react_native_1.Text>
|
|
5
|
+
<RawValueText text={i}search={t}detectLinks={l}/>
|
|
6
|
+
</react_native_1.View>}return<react_native_1.View style={localStyles.rawLineContentRow}>
|
|
7
|
+
{u.length>0&&<react_native_1.Text style={localStyles.indentDots}>{u}</react_native_1.Text>}
|
|
8
|
+
<RawValueText text={d}search={t}detectLinks={l}/>
|
|
9
|
+
</react_native_1.View>}),JsonTableRow=react_1.default.memo(({itemKey:e,val:t,search:l,index:o})=>{const[r,d]=(0,react_1.useState)(!1),u=t!==null&&typeof t=="object",s=getTypeDetails(t);let c="";if(t===null)c="null";else if(t===void 0)c="undefined";else if(u)try{c=JSON.stringify(t,null,2)}catch{c=String(t)}else c=String(t);const f=c.includes(`
|
|
10
|
+
`)||c.length>80;return<react_native_1.View style={[localStyles.tableRow,o%2===1&&localStyles.tableRowAlt]}>
|
|
11
|
+
|
|
12
|
+
<react_native_1.View style={localStyles.tableColKey}>
|
|
13
|
+
<HighlightText_1.default text={e}search={l}style={localStyles.tableCellKey}highlightStyle={localStyles.highlight}/>
|
|
14
|
+
<react_native_1.View style={[localStyles.typePill,{backgroundColor:s.bg,borderColor:s.border}]}>
|
|
15
|
+
<react_native_1.Text style={[localStyles.typePillText,{color:s.color}]}>
|
|
16
|
+
{s.label}
|
|
21
17
|
</react_native_1.Text>
|
|
22
|
-
<NetworkIcons_1.ChevronIcon direction={o?"up":"down"}size={9}color="#4F46E5"/>
|
|
23
|
-
</react_native_1.TouchableOpacity>}
|
|
24
|
-
</react_native_1.View>
|
|
25
|
-
</react_native_1.View>}),JsonViewer=react_1.default.memo(({data:e,search:t,forceOpen:r,defaultExpandDepth:i=1,wrap:o,fullHeight:g=!1,maxHeight:f,mode:d,onModeChange:c,hideTabs:F=!1})=>{const{t:y}=(0,i18n_1.useTranslation)(),[A,B]=(0,react_1.useState)(d??"raw"),[E,D]=(0,react_1.useState)(!1),[b,O]=(0,react_1.useState)(o??!1),[T,z]=(0,react_1.useState)(r),a=c&&d?d:A,x=n=>{B(n),c&&c(n)};(0,react_1.useEffect)(()=>{o!==void 0&&O(o)},[o]),(0,react_1.useEffect)(()=>{r!==void 0&&z(r)},[r]);const R=(0,react_1.useMemo)(()=>{if(e==null)return"";if(typeof e=="string")return e;try{return JSON.stringify(e,null,2)??""}catch{return String(e)||""}},[e]),u=(0,react_1.useMemo)(()=>{if(typeof e=="string")return e;try{return JSON.stringify(e)??""}catch{return String(e)||""}},[e]),H=u,[P,k]=(0,react_1.useState)(!1),I=5e4,V=typeof u=="string"?u:"",C=V.length>I&&!P,S=C?V.slice(0,I):V,K=typeof R=="string"?R:"",h=(0,react_1.useMemo)(()=>S?S.split(`
|
|
26
|
-
`):[""],[S]),W=h.length,N=(0,react_1.useMemo)(()=>(0,helpers_1.getSize)(e),[e]);(0,react_1.useEffect)(()=>{d&&B(d)},[d]);const M=()=>{(0,NativeInspector_1.triggerNativeHaptic)("success"),(0,helpers_1.copyToClipboard)(H||u,"JSON"),D(!0),setTimeout(()=>D(!1),1200)},m=typeof e=="object"&&e!==null,L=e==null||m&&Object.keys(e).length===0,j=()=>{if(!m)return<react_native_1.View style={localStyles.tableRow}>
|
|
27
|
-
<react_native_1.View style={localStyles.tableColKey}>
|
|
28
|
-
<react_native_1.Text style={localStyles.tableCellKey}>{y("network.jsonViewer.value")}</react_native_1.Text>
|
|
29
|
-
</react_native_1.View>
|
|
30
|
-
<react_native_1.View style={localStyles.tableColVal}>
|
|
31
|
-
<react_native_1.Text style={localStyles.tableCellValue}>{String(e)}</react_native_1.Text>
|
|
32
18
|
</react_native_1.View>
|
|
33
|
-
</react_native_1.View>;let n=Object.keys(e);if(t&&t.trim().length>0){const l=t.trim().toLowerCase();n=n.filter(s=>{const p=e[s],w=typeof p=="object"&&p!==null?JSON.stringify(p):String(p);return s.toLowerCase().includes(l)||w.toLowerCase().includes(l)})}return n.length===0?<react_native_1.View style={localStyles.emptyContainer}>
|
|
34
|
-
<react_native_1.Text style={localStyles.emptyText}>
|
|
35
|
-
{t&&t.trim().length>0?"No matching keys or values found":y("network.jsonViewer.emptyTable")}
|
|
36
|
-
</react_native_1.Text>
|
|
37
|
-
</react_native_1.View>:<react_native_1.View style={localStyles.tableView}>
|
|
38
|
-
|
|
39
|
-
<react_native_1.View style={localStyles.tableHeaderRow}>
|
|
40
|
-
<react_native_1.Text style={[localStyles.tableHeaderCell,{flex:2}]}>KEY / PROPERTY</react_native_1.Text>
|
|
41
|
-
<react_native_1.Text style={[localStyles.tableHeaderCell,{flex:3}]}>VALUE</react_native_1.Text>
|
|
42
19
|
</react_native_1.View>
|
|
43
|
-
|
|
44
|
-
</react_native_1.View>},_=<TreeNode_1.default data={e}search={t}forceOpen={T}defaultExpandDepth={T?99:i}/>;return<react_native_1.View style={[localStyles.container,g&&{flex:1}]}>
|
|
45
|
-
|
|
46
|
-
<react_native_1.View style={localStyles.snippetHeader}>
|
|
20
|
+
|
|
47
21
|
|
|
48
|
-
<react_native_1.View style={localStyles.
|
|
49
|
-
<react_native_1.View style={localStyles.
|
|
50
|
-
<
|
|
22
|
+
<react_native_1.View style={localStyles.tableColVal}>
|
|
23
|
+
<react_native_1.View style={u?localStyles.tableCodeBox:void 0}>
|
|
24
|
+
<HighlightText_1.default text={c}search={l}style={[localStyles.tableCellValue,t==null?localStyles.syntaxNull:void 0,typeof t=="number"?localStyles.syntaxNumber:void 0,typeof t=="boolean"?localStyles.syntaxBoolean:void 0,typeof t=="string"?localStyles.syntaxString:void 0]}highlightStyle={localStyles.highlight}numberOfLines={r?void 0:3}selectable={!0}/>
|
|
51
25
|
</react_native_1.View>
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
26
|
+
{f&&<react_native_1.TouchableOpacity onPress={()=>d(i=>!i)}hitSlop={6}style={localStyles.showMoreBtn}>
|
|
27
|
+
<react_native_1.Text style={localStyles.showMoreText}>
|
|
28
|
+
{r?"Collapse":"Expand"}
|
|
29
|
+
</react_native_1.Text>
|
|
30
|
+
<NetworkIcons_1.ChevronIcon direction={r?"up":"down"}size={9}color="#4F46E5"/>
|
|
31
|
+
</react_native_1.TouchableOpacity>}
|
|
32
|
+
</react_native_1.View>
|
|
33
|
+
</react_native_1.View>}),JsonViewer=react_1.default.memo(({data:e,search:t,forceOpen:l,defaultExpandDepth:o=1,wrap:r,fullHeight:d=!1,maxHeight:u,mode:s,onModeChange:c,hideTabs:f=!1})=>{const{t:i}=(0,i18n_1.useTranslation)(),[D,k]=(0,react_1.useState)(s??"pretty"),[F,z]=(0,react_1.useState)(!1),[w,R]=(0,react_1.useState)(r??!0),[g,M]=(0,react_1.useState)("compact"),[b,W]=(0,react_1.useState)(l),[E,L]=(0,react_1.useState)(!1),a=c&&s?s:D,A=n=>{k(n),c&&c(n)};(0,react_1.useEffect)(()=>{r!==void 0&&R(r)},[r]),(0,react_1.useEffect)(()=>{l!==void 0&&W(l)},[l]),(0,react_1.useEffect)(()=>{s&&k(s)},[s]);const y=(0,react_1.useMemo)(()=>{if(e==null)return"";if(typeof e=="string"){const n=e.trim();try{const p=JSON.parse(n);return JSON.stringify(p,null,2)}catch{return e}}try{return JSON.stringify(e,null,2)??""}catch{return String(e)||""}},[e]),S=(0,react_1.useMemo)(()=>{if(typeof e=="string"){const n=e.trim();try{const p=JSON.parse(n);return JSON.stringify(p)}catch{return e}}try{return JSON.stringify(e)??""}catch{return String(e)||""}},[e]),H=g==="formatted"?y:S,I=5e4,C=typeof H=="string"?H:"",j=C.length>I&&!E,V=j?C.slice(0,I):C,v=(0,react_1.useMemo)(()=>V?V.split(`
|
|
34
|
+
`):[""],[V]),O=(0,react_1.useMemo)(()=>a==="raw"?v.length:y?y.split(`
|
|
35
|
+
`).length:1,[a,v.length,y]),K=(0,react_1.useMemo)(()=>(0,helpers_1.getSize)(e),[e]),J=(0,react_1.useCallback)(()=>{(0,NativeInspector_1.triggerNativeHaptic)("success"),(0,helpers_1.copyToClipboard)(g==="compact"?S:y,"JSON"),z(!0),setTimeout(()=>z(!1),1200)},[g,S,y]),B=typeof e=="object"&&e!==null,$=e==null||B&&Object.keys(e).length===0,P=()=>{if(!B)return<react_native_1.View style={localStyles.tableRow}>
|
|
36
|
+
<react_native_1.View style={localStyles.tableColKey}>
|
|
37
|
+
<react_native_1.Text style={localStyles.tableCellKey}>
|
|
38
|
+
{i("network.jsonViewer.value")}
|
|
39
|
+
</react_native_1.Text>
|
|
40
|
+
</react_native_1.View>
|
|
41
|
+
<react_native_1.View style={localStyles.tableColVal}>
|
|
42
|
+
<react_native_1.Text style={localStyles.tableCellValue}>{String(e)}</react_native_1.Text>
|
|
43
|
+
</react_native_1.View>
|
|
44
|
+
</react_native_1.View>;let n=Object.keys(e);if(t&&t.trim().length>0){const p=t.trim().toLowerCase();n=n.filter(T=>{const m=e[T],q=typeof m=="object"&&m!==null?JSON.stringify(m):String(m);return T.toLowerCase().includes(p)||q.toLowerCase().includes(p)})}return n.length===0?<react_native_1.View style={localStyles.emptyContainer}>
|
|
45
|
+
<react_native_1.Text style={localStyles.emptyText}>
|
|
46
|
+
{t&&t.trim().length>0?"No matching keys or values found":i("network.jsonViewer.emptyTable")}
|
|
47
|
+
</react_native_1.Text>
|
|
48
|
+
</react_native_1.View>:<react_native_1.View style={localStyles.tableView}>
|
|
49
|
+
|
|
50
|
+
<react_native_1.View style={localStyles.tableHeaderRow}>
|
|
51
|
+
<react_native_1.Text style={[localStyles.tableHeaderCell,{flex:2}]}>
|
|
52
|
+
KEY / PROPERTY
|
|
55
53
|
</react_native_1.Text>
|
|
54
|
+
<react_native_1.Text style={[localStyles.tableHeaderCell,{flex:3}]}>VALUE</react_native_1.Text>
|
|
56
55
|
</react_native_1.View>
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
<react_native_1.Text style={[localStyles.snippetTabText,a==="pretty"&&localStyles.snippetTabTextActive]}>
|
|
65
|
-
{y("network.jsonViewer.pretty")}
|
|
66
|
-
</react_native_1.Text>
|
|
67
|
-
</react_native_1.TouchableOpacity>
|
|
68
|
-
|
|
69
|
-
<react_native_1.TouchableOpacity onPress={()=>x("raw")}activeOpacity={.7}hitSlop={{top:8,bottom:8,left:4,right:4}}style={[localStyles.snippetTabBtn,a==="raw"&&localStyles.snippetTabBtnActive]}>
|
|
70
|
-
<NetworkIcons_1.RawIcon color={a==="raw"?"#FFFFFF":"#64748B"}size={11}/>
|
|
71
|
-
<react_native_1.Text style={[localStyles.snippetTabText,a==="raw"&&localStyles.snippetTabTextActive]}>
|
|
72
|
-
{y("network.jsonViewer.raw")}
|
|
56
|
+
{n.map((p,T)=><JsonTableRow key={p}index={T}itemKey={p}val={e[p]}search={t}/>)}
|
|
57
|
+
</react_native_1.View>},_=<TreeNode_1.default data={e}search={t}forceOpen={b}defaultExpandDepth={b?99:o}/>,x=()=><react_native_1.View style={localStyles.rawLinesWrapper}>
|
|
58
|
+
{v.map((n,p)=><react_native_1.View key={p}style={localStyles.rawCodeLineRow}>
|
|
59
|
+
|
|
60
|
+
<react_native_1.View style={localStyles.gutterCell}>
|
|
61
|
+
<react_native_1.Text style={localStyles.gutterNumber}selectable={!1}>
|
|
62
|
+
{p+1}
|
|
73
63
|
</react_native_1.Text>
|
|
74
|
-
</react_native_1.
|
|
75
|
-
|
|
76
|
-
<react_native_1.TouchableOpacity onPress={()=>x("table")}activeOpacity={.7}hitSlop={{top:8,bottom:8,left:4,right:4}}style={[localStyles.snippetTabBtn,a==="table"&&localStyles.snippetTabBtnActive]}>
|
|
77
|
-
<NetworkIcons_1.TableIcon color={a==="table"?"#FFFFFF":"#64748B"}size={11}/>
|
|
78
|
-
<react_native_1.Text style={[localStyles.snippetTabText,a==="table"&&localStyles.snippetTabTextActive]}>
|
|
79
|
-
{y("network.jsonViewer.table")}
|
|
80
|
-
</react_native_1.Text>
|
|
81
|
-
</react_native_1.TouchableOpacity>
|
|
82
|
-
</react_native_1.View>}
|
|
64
|
+
</react_native_1.View>
|
|
83
65
|
|
|
66
|
+
|
|
67
|
+
<react_native_1.View style={localStyles.rawTextCell}>
|
|
68
|
+
<RawJsonLine line={n}search={t}detectLinks={C.length<2e4}/>
|
|
69
|
+
</react_native_1.View>
|
|
70
|
+
</react_native_1.View>)}
|
|
71
|
+
</react_native_1.View>,N=()=>j?<react_native_1.TouchableOpacity onPress={()=>L(!0)}activeOpacity={.8}style={localStyles.truncationBanner}>
|
|
72
|
+
<react_native_1.Text style={localStyles.truncationText}>
|
|
73
|
+
Showing first 50 KB ({Math.round(C.length/1024)} KB
|
|
74
|
+
total) · Tap to load full payload
|
|
75
|
+
</react_native_1.Text>
|
|
76
|
+
</react_native_1.TouchableOpacity>:null,h=(0,react_1.useMemo)(()=>Array.isArray(e)?{label:`ARRAY [${e.length}]`,color:AppColors_1.AppColors.blue600,bg:`${AppColors_1.AppColors.blue600}12`,border:`${AppColors_1.AppColors.blue600}30`}:e&&typeof e=="object"?{label:`OBJECT {${Object.keys(e).length}}`,color:AppColors_1.AppColors.violet600,bg:`${AppColors_1.AppColors.violet600}12`,border:`${AppColors_1.AppColors.violet600}30`}:{label:"JSON",color:AppColors_1.AppColors.slate700,bg:`${AppColors_1.AppColors.slate700}10`,border:`${AppColors_1.AppColors.slate700}25`},[e]);return<react_native_1.View style={[localStyles.container,d&&{flex:1}]}>
|
|
77
|
+
|
|
78
|
+
<react_native_1.View style={localStyles.snippetHeader}>
|
|
84
79
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
80
|
+
<react_native_1.View style={localStyles.headerLeft}>
|
|
81
|
+
<react_native_1.View style={[localStyles.langBadge,{backgroundColor:h.bg,borderColor:h.border}]}>
|
|
82
|
+
<react_native_1.View style={[localStyles.langDot,{backgroundColor:h.color}]}/>
|
|
83
|
+
<react_native_1.Text style={[localStyles.langBadgeText,{color:h.color}]}>
|
|
84
|
+
{h.label}
|
|
88
85
|
</react_native_1.Text>
|
|
89
|
-
</react_native_1.
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
<react_native_1.Text style={[localStyles.toolToggleText,b&&localStyles.toolToggleTextActive]}>
|
|
94
|
-
Wrap
|
|
86
|
+
</react_native_1.View>
|
|
87
|
+
<react_native_1.View style={localStyles.metaBadge}>
|
|
88
|
+
<react_native_1.Text style={localStyles.metaBadgeText}numberOfLines={1}ellipsizeMode="tail">
|
|
89
|
+
{K} · {O} {O===1?i("jsonViewer.line","line"):i("jsonViewer.lines","lines")}
|
|
95
90
|
</react_native_1.Text>
|
|
96
|
-
</react_native_1.
|
|
91
|
+
</react_native_1.View>
|
|
92
|
+
</react_native_1.View>
|
|
97
93
|
|
|
98
94
|
|
|
99
|
-
<
|
|
100
|
-
{
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
{a==="pretty"&&(L?<react_native_1.View style={localStyles.emptyContainer}>
|
|
108
|
-
<react_native_1.Text style={localStyles.emptyText}>
|
|
109
|
-
{y("network.jsonViewer.emptyPayload")}
|
|
110
|
-
</react_native_1.Text>
|
|
111
|
-
</react_native_1.View>:b?g?<react_native_1.ScrollView style={{flex:1}}contentContainerStyle={localStyles.prettyContainer}>
|
|
112
|
-
{_}
|
|
113
|
-
</react_native_1.ScrollView>:<react_native_1.View style={localStyles.prettyContainer}>{_}</react_native_1.View>:g?<react_native_1.ScrollView style={{flex:1}}contentContainerStyle={{flexGrow:1}}>
|
|
114
|
-
<react_native_1.ScrollView horizontal showsHorizontalScrollIndicator={!0}contentContainerStyle={localStyles.prettyContainer}>
|
|
115
|
-
{_}
|
|
116
|
-
</react_native_1.ScrollView>
|
|
117
|
-
</react_native_1.ScrollView>:<react_native_1.ScrollView horizontal showsHorizontalScrollIndicator={!0}contentContainerStyle={localStyles.prettyContainer}>
|
|
118
|
-
{_}
|
|
119
|
-
</react_native_1.ScrollView>)}
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
{a==="raw"&&(g?<react_native_1.ScrollView style={{flex:1}}contentContainerStyle={{flexGrow:1}}showsVerticalScrollIndicator={!0}>
|
|
123
|
-
<react_native_1.View style={localStyles.rawEditorRow}>
|
|
124
|
-
|
|
125
|
-
<react_native_1.View style={localStyles.gutter}>
|
|
126
|
-
{h.map((n,l)=><react_native_1.Text key={l}style={localStyles.gutterNumber}>
|
|
127
|
-
{l+1}
|
|
128
|
-
</react_native_1.Text>)}
|
|
129
|
-
</react_native_1.View>
|
|
95
|
+
<react_native_1.View style={localStyles.headerRight}>
|
|
96
|
+
{!f&&<react_native_1.View style={localStyles.snippetTabs}>
|
|
97
|
+
<TouchableScale_1.default onPress={()=>A("pretty")}style={[localStyles.snippetTabBtn,a==="pretty"&&[localStyles.snippetTabBtnActive,{backgroundColor:AppColors_1.AppColors.brandPurple,shadowColor:AppColors_1.AppColors.brandPurple}]]}>
|
|
98
|
+
<NetworkIcons_1.PrettyIcon color={a==="pretty"?AppColors_1.AppColors.white:AppColors_1.AppColors.grayTextWeak}size={11}/>
|
|
99
|
+
<react_native_1.Text style={[localStyles.snippetTabText,a==="pretty"&&localStyles.snippetTabTextActive]}>
|
|
100
|
+
{i("network.jsonViewer.pretty","Pretty")}
|
|
101
|
+
</react_native_1.Text>
|
|
102
|
+
</TouchableScale_1.default>
|
|
130
103
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
<react_native_1.
|
|
134
|
-
{
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
</react_native_1.View>}return<react_native_1.View key={l}style={localStyles.rawCodeLineRow}>
|
|
138
|
-
<HighlightText_1.default text={n}search={t}detectLinks={u.length<2e4}style={localStyles.rawMonospaceText}selectable={!0}highlightStyle={localStyles.highlight}/>
|
|
139
|
-
</react_native_1.View>})}
|
|
140
|
-
</react_native_1.View>
|
|
141
|
-
</react_native_1.ScrollView>
|
|
142
|
-
</react_native_1.View>
|
|
104
|
+
<TouchableScale_1.default onPress={()=>A("raw")}style={[localStyles.snippetTabBtn,a==="raw"&&[localStyles.snippetTabBtnActive,{backgroundColor:AppColors_1.AppColors.sky600,shadowColor:AppColors_1.AppColors.sky600}]]}>
|
|
105
|
+
<NetworkIcons_1.RawIcon color={a==="raw"?AppColors_1.AppColors.white:AppColors_1.AppColors.grayTextWeak}size={11}/>
|
|
106
|
+
<react_native_1.Text style={[localStyles.snippetTabText,a==="raw"&&localStyles.snippetTabTextActive]}>
|
|
107
|
+
{i("network.jsonViewer.raw","Raw")}
|
|
108
|
+
</react_native_1.Text>
|
|
109
|
+
</TouchableScale_1.default>
|
|
143
110
|
|
|
144
|
-
|
|
145
|
-
<
|
|
146
|
-
|
|
111
|
+
<TouchableScale_1.default onPress={()=>A("table")}style={[localStyles.snippetTabBtn,a==="table"&&[localStyles.snippetTabBtnActive,{backgroundColor:AppColors_1.AppColors.teal600,shadowColor:AppColors_1.AppColors.teal600}]]}>
|
|
112
|
+
<NetworkIcons_1.TableIcon color={a==="table"?AppColors_1.AppColors.white:AppColors_1.AppColors.grayTextWeak}size={11}/>
|
|
113
|
+
<react_native_1.Text style={[localStyles.snippetTabText,a==="table"&&localStyles.snippetTabTextActive]}>
|
|
114
|
+
{i("network.jsonViewer.table","Table")}
|
|
147
115
|
</react_native_1.Text>
|
|
148
|
-
</
|
|
149
|
-
|
|
150
|
-
<react_native_1.View style={localStyles.rawEditorRow}>
|
|
151
|
-
|
|
152
|
-
<react_native_1.View style={localStyles.gutter}>
|
|
153
|
-
{h.map((n,l)=><react_native_1.Text key={l}style={localStyles.gutterNumber}>
|
|
154
|
-
{l+1}
|
|
155
|
-
</react_native_1.Text>)}
|
|
156
|
-
</react_native_1.View>
|
|
116
|
+
</TouchableScale_1.default>
|
|
117
|
+
</react_native_1.View>}
|
|
157
118
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
</react_native_1.View>}return<react_native_1.View key={l}style={localStyles.rawCodeLineRow}>
|
|
165
|
-
<HighlightText_1.default text={n}search={t}detectLinks={u.length<2e4}style={localStyles.rawMonospaceText}selectable={!0}highlightStyle={localStyles.highlight}/>
|
|
166
|
-
</react_native_1.View>})}
|
|
167
|
-
</react_native_1.View>
|
|
168
|
-
</react_native_1.ScrollView>
|
|
169
|
-
</react_native_1.View>
|
|
119
|
+
|
|
120
|
+
{a==="pretty"&&B&&<TouchableScale_1.default onPress={()=>W(n=>!n)}style={[localStyles.toolToggleBtn,b&&localStyles.toolToggleBtnActive]}>
|
|
121
|
+
<react_native_1.Text style={[localStyles.toolToggleText,b&&localStyles.toolToggleTextActive]}>
|
|
122
|
+
{b?i("jsonViewer.fold","Fold"):i("jsonViewer.expand","Expand")}
|
|
123
|
+
</react_native_1.Text>
|
|
124
|
+
</TouchableScale_1.default>}
|
|
170
125
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
</react_native_1.
|
|
176
|
-
|
|
126
|
+
|
|
127
|
+
{a==="raw"&&<TouchableScale_1.default onPress={()=>M(n=>n==="compact"?"formatted":"compact")}style={[localStyles.toolToggleBtn,g==="compact"&&localStyles.toolToggleBtnActive]}>
|
|
128
|
+
<react_native_1.Text style={[localStyles.toolToggleText,g==="compact"&&localStyles.toolToggleTextActive]}>
|
|
129
|
+
{g==="compact"?i("jsonViewer.min","Min"):i("jsonViewer.indent","Indent")}
|
|
130
|
+
</react_native_1.Text>
|
|
131
|
+
</TouchableScale_1.default>}
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
{a==="raw"&&<TouchableScale_1.default onPress={()=>R(n=>!n)}style={[localStyles.toolToggleBtn,w&&localStyles.toolToggleBtnActive]}>
|
|
135
|
+
<react_native_1.Text style={[localStyles.toolToggleText,w&&localStyles.toolToggleTextActive]}>
|
|
136
|
+
{i("jsonViewer.wrap","Wrap")}
|
|
137
|
+
</react_native_1.Text>
|
|
138
|
+
</TouchableScale_1.default>}
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
<TouchableScale_1.default onPress={J}hitSlop={6}style={[localStyles.copyBtn,F&&localStyles.copyBtnSuccess]}>
|
|
142
|
+
{F?<NetworkIcons_1.CheckIcon color={AppColors_1.AppColors.emerald500}size={12}/>:<NetworkIcons_1.CopyIcon color={AppColors_1.AppColors.grayTextWeak}size={12}/>}
|
|
143
|
+
</TouchableScale_1.default>
|
|
144
|
+
</react_native_1.View>
|
|
145
|
+
</react_native_1.View>
|
|
177
146
|
|
|
178
147
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
148
|
+
<react_native_1.View style={[localStyles.editorBody,d&&{flex:1,maxHeight:void 0},!d&&u!=null&&{maxHeight:u}]}>
|
|
149
|
+
|
|
150
|
+
{a==="pretty"&&($?<react_native_1.View style={localStyles.emptyContainer}>
|
|
151
|
+
<react_native_1.Text style={localStyles.emptyText}>
|
|
152
|
+
{i("network.jsonViewer.emptyPayload")}
|
|
153
|
+
</react_native_1.Text>
|
|
154
|
+
</react_native_1.View>:w?d?<react_native_1.ScrollView style={{flex:1}}contentContainerStyle={localStyles.prettyContainer}showsVerticalScrollIndicator={!0}>
|
|
155
|
+
{_}
|
|
156
|
+
</react_native_1.ScrollView>:<react_native_1.View style={localStyles.prettyContainer}>{_}</react_native_1.View>:d?<react_native_1.ScrollView style={{flex:1}}contentContainerStyle={{flexGrow:1}}showsVerticalScrollIndicator={!0}>
|
|
157
|
+
<react_native_1.ScrollView horizontal showsHorizontalScrollIndicator={!0}contentContainerStyle={localStyles.prettyContainer}>
|
|
158
|
+
{_}
|
|
159
|
+
</react_native_1.ScrollView>
|
|
160
|
+
</react_native_1.ScrollView>:<react_native_1.ScrollView horizontal showsHorizontalScrollIndicator={!0}contentContainerStyle={localStyles.prettyContainer}>
|
|
161
|
+
{_}
|
|
162
|
+
</react_native_1.ScrollView>)}
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
{a==="raw"&&(d?<react_native_1.ScrollView style={localStyles.fullHeightScrollView}contentContainerStyle={localStyles.fullHeightScrollContent}showsVerticalScrollIndicator={!0}showsHorizontalScrollIndicator={!1}>
|
|
166
|
+
{w?<react_native_1.View style={localStyles.rawEditorFullWidth}>
|
|
167
|
+
{x()}
|
|
168
|
+
</react_native_1.View>:<react_native_1.ScrollView horizontal showsHorizontalScrollIndicator={!0}contentContainerStyle={localStyles.rawHorizontalContent}>
|
|
169
|
+
<react_native_1.View style={{flexDirection:"column"}}>
|
|
170
|
+
{x()}
|
|
171
|
+
</react_native_1.View>
|
|
172
|
+
</react_native_1.ScrollView>}
|
|
173
|
+
{N()}
|
|
174
|
+
</react_native_1.ScrollView>:<react_native_1.View style={localStyles.rawEditorAutoHeight}>
|
|
175
|
+
{w?<react_native_1.View style={localStyles.rawEditorFullWidth}>
|
|
176
|
+
{x()}
|
|
177
|
+
</react_native_1.View>:<react_native_1.ScrollView horizontal showsHorizontalScrollIndicator={!0}contentContainerStyle={localStyles.rawHorizontalContent}>
|
|
178
|
+
<react_native_1.View style={{flexDirection:"column"}}>
|
|
179
|
+
{x()}
|
|
180
|
+
</react_native_1.View>
|
|
181
|
+
</react_native_1.ScrollView>}
|
|
182
|
+
{N()}
|
|
183
|
+
</react_native_1.View>)}
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
{a==="table"&&(d?<react_native_1.ScrollView style={{flex:1}}contentContainerStyle={{flexGrow:1}}showsVerticalScrollIndicator={!0}>
|
|
187
|
+
{P()}
|
|
188
|
+
</react_native_1.ScrollView>:<react_native_1.View style={localStyles.tableView}>{P()}</react_native_1.View>)}
|
|
189
|
+
</react_native_1.View>
|
|
190
|
+
</react_native_1.View>}),localStyles=react_native_1.StyleSheet.create({container:{backgroundColor:AppColors_1.AppColors.white,borderRadius:12,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,overflow:"hidden",shadowColor:AppColors_1.AppColors.brandPurple,shadowOpacity:.04,shadowRadius:6,shadowOffset:{width:0,height:2},elevation:2,width:"100%"},snippetHeader:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",backgroundColor:AppColors_1.AppColors.grayBackground,borderBottomWidth:1,borderBottomColor:AppColors_1.AppColors.grayBorderSecondary,paddingHorizontal:8,paddingVertical:5,gap:6,minHeight:38},headerLeft:{flexDirection:"row",alignItems:"center",gap:5,flexShrink:1,minWidth:0},langBadge:{flexDirection:"row",alignItems:"center",backgroundColor:AppColors_1.AppColors.white,borderRadius:6,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,paddingHorizontal:6,paddingVertical:2.5,gap:4.5},langDot:{width:5,height:5,borderRadius:2.5,backgroundColor:AppColors_1.AppColors.emerald500},langBadgeText:{fontFamily:monoFont,fontSize:9.5,color:AppColors_1.AppColors.primaryBlack,fontWeight:"700",letterSpacing:.3},metaBadge:{backgroundColor:AppColors_1.AppColors.white,borderRadius:6,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,paddingHorizontal:6,paddingVertical:2.5,flexShrink:1},metaBadgeText:{fontFamily:monoFont,fontSize:9.5,color:AppColors_1.AppColors.grayTextWeak,fontWeight:"600"},headerRight:{flexDirection:"row",alignItems:"center",gap:4.5,flexShrink:0},snippetTabs:{flexDirection:"row",alignItems:"center",backgroundColor:`${AppColors_1.AppColors.grayBorderSecondary}66`,borderRadius:7,padding:2,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,gap:2},snippetTabBtn:{flexDirection:"row",alignItems:"center",gap:3.5,paddingVertical:2.5,paddingHorizontal:6,borderRadius:5},snippetTabBtnActive:{backgroundColor:AppColors_1.AppColors.brandPurple,shadowColor:AppColors_1.AppColors.brandPurple,shadowOffset:{width:0,height:1},shadowOpacity:.25,shadowRadius:2,elevation:1},snippetTabText:{fontFamily:monoFont,fontSize:9.5,color:AppColors_1.AppColors.grayTextWeak,fontWeight:"600"},snippetTabTextActive:{color:AppColors_1.AppColors.white,fontWeight:"700"},toolToggleBtn:{paddingHorizontal:6,paddingVertical:3,borderRadius:6,backgroundColor:AppColors_1.AppColors.white,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,alignItems:"center",justifyContent:"center"},toolToggleBtnActive:{backgroundColor:AppColors_1.AppColors.purple50,borderColor:AppColors_1.AppColors.purple200},toolToggleText:{fontFamily:monoFont,fontSize:9.5,color:AppColors_1.AppColors.grayTextWeak,fontWeight:"600"},toolToggleTextActive:{color:AppColors_1.AppColors.brandPurple,fontWeight:"700"},copyBtn:{width:25,height:25,borderRadius:6,backgroundColor:AppColors_1.AppColors.white,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,alignItems:"center",justifyContent:"center"},copyBtnSuccess:{borderColor:AppColors_1.AppColors.greenMintBorder,backgroundColor:AppColors_1.AppColors.greenMintBg},editorBody:{backgroundColor:"#FFFFFF",minHeight:80},prettyContainer:{padding:10,minWidth:"100%",backgroundColor:"#FFFFFF"},fullHeightScrollView:{flex:1},fullHeightScrollContent:{flexGrow:1},rawEditorAutoHeight:{width:"100%"},rawEditorFullWidth:{width:"100%"},rawHorizontalContent:{minWidth:"100%"},rawLinesWrapper:{paddingVertical:6,backgroundColor:"#FFFFFF",width:"100%"},rawCodeLineRow:{flexDirection:"row",alignItems:"flex-start",minHeight:20,width:"100%"},gutterCell:{width:38,paddingRight:8,paddingTop:1,alignItems:"flex-end",justifyContent:"flex-start",borderRightWidth:1,borderRightColor:"#E2E8F0",backgroundColor:"#F8FAFC",userSelect:"none"},gutterNumber:{fontFamily:monoFont,fontSize:11,lineHeight:18,color:"#94A3B8",textAlign:"right"},rawTextCell:{flex:1,paddingLeft:8,paddingRight:8,paddingTop:1,alignItems:"flex-start"},rawLineContentRow:{flexDirection:"row",alignItems:"flex-start",flexWrap:"wrap",minHeight:18},indentDots:{fontFamily:monoFont,fontSize:11.5,lineHeight:18,color:"#CBD5E1",letterSpacing:.5},rawMonospaceText:{fontFamily:monoFont,fontSize:11.5,lineHeight:18,color:AppColors_1.AppColors.slate900},syntaxKey:{fontFamily:monoFont,fontSize:11.5,lineHeight:18,color:AppColors_1.AppColors.syntaxKey,fontWeight:"700"},syntaxColon:{fontFamily:monoFont,fontSize:11.5,lineHeight:18,color:AppColors_1.AppColors.syntaxColon,marginRight:4},syntaxString:{fontFamily:monoFont,fontSize:11.5,lineHeight:18,color:AppColors_1.AppColors.syntaxString},syntaxNumber:{fontFamily:monoFont,fontSize:11.5,lineHeight:18,color:AppColors_1.AppColors.syntaxNumber},syntaxBoolean:{fontFamily:monoFont,fontSize:11.5,lineHeight:18,color:AppColors_1.AppColors.syntaxBoolean},syntaxNull:{fontFamily:monoFont,fontSize:11.5,lineHeight:18,color:AppColors_1.AppColors.syntaxNull,fontStyle:"italic"},truncationBanner:{margin:10,backgroundColor:AppColors_1.AppColors.purple50,paddingVertical:8,paddingHorizontal:12,borderRadius:6,alignItems:"center",borderWidth:1,borderColor:AppColors_1.AppColors.purple200},truncationText:{fontFamily:monoFont,fontSize:10.5,color:AppColors_1.AppColors.brandPurple,fontWeight:"600"},tableView:{flex:1,width:"100%"},tableHeaderRow:{flexDirection:"row",backgroundColor:AppColors_1.AppColors.slate100,borderBottomWidth:1,borderBottomColor:AppColors_1.AppColors.slate200,paddingVertical:7,paddingHorizontal:12},tableHeaderCell:{fontFamily:monoFont,fontSize:10,color:AppColors_1.AppColors.slate600,fontWeight:"700",letterSpacing:.5},tableRow:{flexDirection:"row",borderBottomWidth:1,borderBottomColor:AppColors_1.AppColors.slate100,paddingVertical:8,paddingHorizontal:12,alignItems:"flex-start",backgroundColor:AppColors_1.AppColors.white},tableRowAlt:{backgroundColor:AppColors_1.AppColors.slate50},tableColKey:{flex:2,paddingRight:8},tableColVal:{flex:3},tableCellKey:{fontFamily:monoFont,fontSize:11.5,fontWeight:"700",color:AppColors_1.AppColors.brandPurple},typePill:{alignSelf:"flex-start",borderRadius:4,borderWidth:1,paddingHorizontal:4,paddingVertical:1,marginTop:3},typePillText:{fontFamily:monoFont,fontSize:9,fontWeight:"700"},tableCellValue:{fontFamily:monoFont,fontSize:11.5,color:AppColors_1.AppColors.slate900,lineHeight:17},tableCodeBox:{backgroundColor:AppColors_1.AppColors.slate100,borderRadius:6,borderWidth:1,borderColor:AppColors_1.AppColors.slate200,padding:6},showMoreBtn:{flexDirection:"row",alignItems:"center",gap:4,alignSelf:"flex-start",marginTop:4,paddingVertical:2,paddingHorizontal:4},showMoreText:{fontFamily:monoFont,fontSize:10,color:AppColors_1.AppColors.brandPurple,fontWeight:"600"},emptyContainer:{padding:24,alignItems:"center",justifyContent:"center"},emptyText:{fontFamily:monoFont,fontSize:11.5,color:AppColors_1.AppColors.slate500},highlight:{backgroundColor:AppColors_1.AppColors.yellow200,color:AppColors_1.AppColors.yellow800,fontFamily:monoFont,fontWeight:"700",borderRadius:2,paddingHorizontal:2}});exports.default=JsonViewer;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(
|
|
1
|
+
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(r,e,n,o){o===void 0&&(o=n);var a=Object.getOwnPropertyDescriptor(e,n);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(r,o,a)}):(function(r,e,n,o){o===void 0&&(o=n),r[o]=e[n]})),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?(function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}):function(r,e){r.default=e}),__importStar=this&&this.__importStar||(function(){var r=function(e){return r=Object.getOwnPropertyNames||function(n){var o=[];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(o[o.length]=a);return o},r(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var o=r(e),a=0;a<o.length;a++)o[a]!=="default"&&__createBinding(n,e,o[a]);return __setModuleDefault(n,e),n}})(),__importDefault=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importStar(require("react")),react_native_1=require("react-native"),react_native_svg_1=__importStar(require("react-native-svg")),AppColors_1=require("../styles/AppColors"),constants_1=require("../constants"),helpers_1=require("../helpers"),NetworkIcons_1=require("./NetworkIcons"),AppFonts_1=require("../styles/AppFonts"),HighlightText_1=__importDefault(require("./HighlightText")),TouchableScale_1=__importDefault(require("./TouchableScale")),i18n_1=require("../i18n"),LogCard=react_1.default.memo(function({item:e,onPress:n,timelineMinStart:o,timelineTotalRange:a,isNew:u,isSelected:h,onToggleSelect:w,searchStr:b}){const{t:p}=(0,i18n_1.useTranslation)(),C=constants_1.METHOD_COLORS[e.method]??constants_1.METHOD_COLORS.ALL,i=(0,react_1.useMemo)(()=>{try{const t=new URL(e.url),d=t.host,_=t.pathname+(t.search?t.search:""),k=t.protocol==="https:";return{host:d,path:_||"/",isHttps:k}}catch{const t=e.url.toLowerCase().startsWith("https:"),d=(0,helpers_1.getPath)(e.url);return{host:(0,helpers_1.getBaseUrl)(e.url).replace(/^https?:\/\//,""),path:d||e.url,isHttps:t}}},[e.url]),x=t=>{t?.stopPropagation?.(),react_native_1.Alert.alert(p("common.openInBrowser")||"Open in Browser",`${p("common.openInBrowserPrompt")||"Are you sure you want to open this URL in your external browser?"}
|
|
2
2
|
|
|
3
|
-
${e.url}`,[{text:
|
|
4
|
-
<TouchableScale_1.default onPress={
|
|
3
|
+
${e.url}`,[{text:p("common.cancel")||"Cancel",style:"cancel"},{text:p("common.open")||"Open",onPress:()=>{react_native_1.Linking.canOpenURL(e.url).then(d=>{d?react_native_1.Linking.openURL(e.url):react_native_1.Linking.openURL(e.url).catch(()=>{})}).catch(()=>{})}}])},l=e.status===0||e.status!=null&&e.status>=400,s=e.status==null,g=(0,helpers_1.getStatusColor)(e.status),c=(0,helpers_1.getDurationColor)(e.duration),y=s?AppColors_1.AppColors.darkOrange:l?AppColors_1.AppColors.errorColor:AppColors_1.AppColors.greenColor,f=(0,react_1.useRef)(new react_native_1.Animated.Value(u?.35:0)).current;(0,react_1.useEffect)(()=>{u&&react_native_1.Animated.timing(f,{toValue:0,duration:1200,useNativeDriver:!1}).start()},[u]);const A=()=>{if(s)return"...";if(e.status===0||e.status==null)return p("network.statusFailed")||"FAILED";const t=typeof e.status=="number"?e.status:parseInt(String(e.status||0),10);return t===200?"200 OK":t===201?"201 Created":t===204?"204 No Content":t===304?"304 Not Modified":t===400?"400 Bad Req":t===401?"401 Unauth":t===403?"403 Forbidden":t===404?"404 Not Found":t===500?"500 Error":String(e.status)},v=()=>{if(s)return<NetworkIcons_1.ClockIcon color={AppColors_1.AppColors.darkOrange}size={10}/>;const t=typeof e.status=="number"?e.status:parseInt(String(e.status||0),10);return t>=200&&t<300?<NetworkIcons_1.CircleCheckIcon color={AppColors_1.AppColors.greenColor}size={10}/>:t>=300&&t<400?<NetworkIcons_1.RepeatIcon color={AppColors_1.AppColors.amber700}size={10}/>:t>=400&&t<500?<NetworkIcons_1.CircleAlertIcon color={AppColors_1.AppColors.darkOrange}size={10}/>:<NetworkIcons_1.CircleXIcon color={AppColors_1.AppColors.errorColor}size={10}/>},T=(0,helpers_1.formatDateTime)(e.startTime),V=e.url.split("?")[0].toLowerCase().endsWith(".json");return<react_native_1.View style={styles.container}>
|
|
4
|
+
<TouchableScale_1.default onPress={n}style={[styles.card,{borderLeftWidth:3.5,borderLeftColor:y,backgroundColor:l?AppColors_1.AppColors.errorCardBg:AppColors_1.AppColors.white}]}>
|
|
5
5
|
<react_native_1.View style={styles.cardBody}>
|
|
6
6
|
|
|
7
7
|
<react_native_1.View style={styles.cardHeaderRow}>
|
|
8
8
|
<react_native_1.View style={styles.cardHeaderLeft}>
|
|
9
|
-
<react_native_1.Pressable onPress={()=>
|
|
10
|
-
{
|
|
9
|
+
<react_native_1.Pressable onPress={()=>w(e.id)}hitSlop={12}style={[styles.smallCheckbox,h&&styles.smallCheckboxChecked]}>
|
|
10
|
+
{h&&<react_native_svg_1.default width={9}height={9}viewBox="0 0 24 24"fill="none">
|
|
11
11
|
<react_native_svg_1.Path d="M20 6L9 17l-5-5"stroke={AppColors_1.AppColors.white}strokeWidth="4"strokeLinecap="round"strokeLinejoin="round"/>
|
|
12
12
|
</react_native_svg_1.default>}
|
|
13
13
|
</react_native_1.Pressable>
|
|
14
14
|
|
|
15
15
|
<react_native_1.Text style={styles.serialNumber}>#{e.id+1}</react_native_1.Text>
|
|
16
16
|
|
|
17
|
-
<react_native_1.View style={[styles.methodBadge,{backgroundColor:
|
|
17
|
+
<react_native_1.View style={[styles.methodBadge,{backgroundColor:C}]}>
|
|
18
18
|
<react_native_1.Text style={styles.methodBadgeText}>
|
|
19
19
|
{e.method}
|
|
20
20
|
</react_native_1.Text>
|
|
@@ -34,18 +34,21 @@ ${e.url}`,[{text:c("common.cancel")||"Cancel",style:"cancel"},{text:c("common.op
|
|
|
34
34
|
</react_native_1.View>}
|
|
35
35
|
</react_native_1.View>
|
|
36
36
|
|
|
37
|
-
<react_native_1.View style={
|
|
38
|
-
{
|
|
39
|
-
|
|
40
|
-
{
|
|
41
|
-
|
|
37
|
+
<react_native_1.View style={styles.cardHeaderRight}>
|
|
38
|
+
<react_native_1.View style={[styles.statusPill,{backgroundColor:l?`${AppColors_1.AppColors.errorColor}14`:s?`${AppColors_1.AppColors.darkOrange}14`:`${g}14`,borderColor:l?`${AppColors_1.AppColors.errorColor}33`:s?`${AppColors_1.AppColors.darkOrange}33`:`${g}33`}]}>
|
|
39
|
+
{v()}
|
|
40
|
+
<react_native_1.Text style={[styles.statusPillText,{color:l?AppColors_1.AppColors.errorColor:s?AppColors_1.AppColors.darkOrange:g}]}>
|
|
41
|
+
{A()}
|
|
42
|
+
</react_native_1.Text>
|
|
43
|
+
</react_native_1.View>
|
|
44
|
+
<NetworkIcons_1.ForwardChevronIcon color={AppColors_1.AppColors.grayTextWeak}size={13}/>
|
|
42
45
|
</react_native_1.View>
|
|
43
46
|
</react_native_1.View>
|
|
44
47
|
|
|
45
48
|
|
|
46
|
-
<react_native_1.Pressable onPress={
|
|
49
|
+
<react_native_1.Pressable onPress={x}hitSlop={6}style={styles.urlBox}>
|
|
47
50
|
<react_native_1.View style={styles.urlMainRow}>
|
|
48
|
-
<HighlightText_1.default text={
|
|
51
|
+
<HighlightText_1.default text={i.path}search={b}style={styles.pathText}highlightStyle={styles.highlight}numberOfLines={1}ellipsizeMode="middle"/>
|
|
49
52
|
<react_native_1.View style={styles.urlBadgeRow}>
|
|
50
53
|
{V&&<react_native_1.View style={styles.jsonBadge}>
|
|
51
54
|
<react_native_1.Text style={styles.jsonBadgeText}>.json</react_native_1.Text>
|
|
@@ -56,16 +59,16 @@ ${e.url}`,[{text:c("common.cancel")||"Cancel",style:"cancel"},{text:c("common.op
|
|
|
56
59
|
</react_native_1.View>
|
|
57
60
|
</react_native_1.View>
|
|
58
61
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
</react_native_1.Text>
|
|
64
|
-
</react_native_1.View>
|
|
65
|
-
<react_native_1.Text style={styles.hostText}numberOfLines={1}ellipsizeMode="tail">
|
|
66
|
-
{n.host}
|
|
62
|
+
<react_native_1.View style={styles.hostRow}>
|
|
63
|
+
<react_native_1.View style={[styles.protoBadge,{backgroundColor:i.isHttps?`${AppColors_1.AppColors.emerald600}12`:`${AppColors_1.AppColors.amber600}12`,borderColor:i.isHttps?`${AppColors_1.AppColors.emerald600}2B`:`${AppColors_1.AppColors.amber600}2B`}]}>
|
|
64
|
+
<react_native_1.Text style={[styles.protoBadgeText,{color:i.isHttps?AppColors_1.AppColors.emerald600:AppColors_1.AppColors.amber700}]}>
|
|
65
|
+
{i.isHttps?"HTTPS":"HTTP"}
|
|
67
66
|
</react_native_1.Text>
|
|
68
|
-
</react_native_1.View
|
|
67
|
+
</react_native_1.View>
|
|
68
|
+
<react_native_1.Text style={styles.hostText}numberOfLines={1}ellipsizeMode="tail">
|
|
69
|
+
{i.host||e.url}
|
|
70
|
+
</react_native_1.Text>
|
|
71
|
+
</react_native_1.View>
|
|
69
72
|
</react_native_1.Pressable>
|
|
70
73
|
|
|
71
74
|
|
|
@@ -73,15 +76,8 @@ ${e.url}`,[{text:c("common.cancel")||"Cancel",style:"cancel"},{text:c("common.op
|
|
|
73
76
|
<react_native_1.View style={styles.footerLeft}>
|
|
74
77
|
<react_native_1.View style={styles.cardDateRow}>
|
|
75
78
|
<NetworkIcons_1.CalendarIcon color={AppColors_1.AppColors.grayTextWeak}size={10}/>
|
|
76
|
-
<react_native_1.Text style={styles.cardDateText}>{
|
|
79
|
+
<react_native_1.Text style={styles.cardDateText}numberOfLines={1}>{T}</react_native_1.Text>
|
|
77
80
|
</react_native_1.View>
|
|
78
|
-
|
|
79
|
-
{f&&<react_native_1.View style={styles.callerChip}>
|
|
80
|
-
<NetworkIcons_1.PinIcon color={AppColors_1.AppColors.sky600}size={8.5}/>
|
|
81
|
-
<react_native_1.Text style={styles.callerChipText}numberOfLines={1}ellipsizeMode="middle">
|
|
82
|
-
{f}
|
|
83
|
-
</react_native_1.Text>
|
|
84
|
-
</react_native_1.View>}
|
|
85
81
|
</react_native_1.View>
|
|
86
82
|
|
|
87
83
|
<react_native_1.View style={styles.footerRight}>
|
|
@@ -92,9 +88,9 @@ ${e.url}`,[{text:c("common.cancel")||"Cancel",style:"cancel"},{text:c("common.op
|
|
|
92
88
|
</react_native_1.Text>
|
|
93
89
|
</react_native_1.View>}
|
|
94
90
|
|
|
95
|
-
{e.duration!=null&&!
|
|
96
|
-
<NetworkIcons_1.ClockIcon color={
|
|
97
|
-
<react_native_1.Text style={[styles.metaStatText,{color:
|
|
91
|
+
{e.duration!=null&&!l&&<react_native_1.View style={[styles.metaStatChip,{backgroundColor:`${c}12`,borderColor:`${c}2E`}]}>
|
|
92
|
+
<NetworkIcons_1.ClockIcon color={c}size={9}/>
|
|
93
|
+
<react_native_1.Text style={[styles.metaStatText,{color:c}]}>
|
|
98
94
|
{e.duration}ms
|
|
99
95
|
</react_native_1.Text>
|
|
100
96
|
</react_native_1.View>}
|
|
@@ -102,11 +98,11 @@ ${e.url}`,[{text:c("common.cancel")||"Cancel",style:"cancel"},{text:c("common.op
|
|
|
102
98
|
</react_native_1.View>
|
|
103
99
|
|
|
104
100
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
101
|
+
<react_native_1.View style={styles.waterfallContainer}>
|
|
102
|
+
{typeof e.duration=="number"&&e.duration>0&&!l&&<react_native_1.View style={[styles.waterfallBar,{width:`${Math.min(100,Math.max(6,e.duration/1200*100))}%`,backgroundColor:c}]}/>}
|
|
103
|
+
</react_native_1.View>
|
|
108
104
|
</react_native_1.View>
|
|
109
105
|
|
|
110
|
-
{u&&<react_native_1.Animated.View pointerEvents="none"style={[react_native_1.StyleSheet.absoluteFill,{backgroundColor:
|
|
106
|
+
{u&&<react_native_1.Animated.View pointerEvents="none"style={[react_native_1.StyleSheet.absoluteFill,{backgroundColor:C,opacity:f}]}/>}
|
|
111
107
|
</TouchableScale_1.default>
|
|
112
|
-
</react_native_1.View>}),styles=react_native_1.StyleSheet.create({container:{paddingHorizontal:8,paddingVertical:
|
|
108
|
+
</react_native_1.View>}),styles=react_native_1.StyleSheet.create({container:{paddingHorizontal:8,paddingVertical:4,height:126,justifyContent:"center"},card:{height:118,alignSelf:"stretch",borderRadius:10,overflow:"hidden",borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,shadowColor:AppColors_1.AppColors.shadowColorString},cardBody:{height:"100%",paddingHorizontal:12,paddingTop:9,paddingBottom:7,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:8,gap:6,minWidth:0,overflow:"hidden"},cardHeaderRight:{flexDirection:"row",alignItems:"center",gap:6,flexShrink:0},smallCheckbox:{width:15,height:15,borderRadius:4,borderWidth:1.5,borderColor:AppColors_1.AppColors.grayTextWeak,alignItems:"center",justifyContent:"center",backgroundColor:AppColors_1.AppColors.white},smallCheckboxChecked:{backgroundColor:AppColors_1.AppColors.purple,borderColor:AppColors_1.AppColors.purple},serialNumber:{fontFamily:AppFonts_1.AppFonts.interBold,color:AppColors_1.AppColors.grayTextWeak,fontSize:10},methodBadge:{paddingHorizontal:7,paddingVertical:2.5,borderRadius:5,alignItems:"center",justifyContent:"center"},methodBadgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,lineHeight:12,letterSpacing:.5,color:AppColors_1.AppColors.white},chip:{paddingHorizontal:6,paddingVertical:2,borderRadius:4,borderWidth:1},chipText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9,lineHeight:12},statusPill:{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:7,paddingVertical:2.5,borderRadius:6,borderWidth:1,flexShrink:0},statusPillText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10,lineHeight:13},urlBox:{backgroundColor:AppColors_1.AppColors.grayBackground,borderRadius:7,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,paddingHorizontal:9,paddingVertical:5,height:48,minHeight:48,maxHeight:48,justifyContent:"center",gap:3,overflow:"hidden"},urlMainRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:6},pathText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12,lineHeight:16,color:AppColors_1.AppColors.primaryBlack,flex:1},urlBadgeRow:{flexDirection:"row",alignItems:"center",gap:4,flexShrink:0},jsonBadge:{backgroundColor:`${AppColors_1.AppColors.darkOrange}14`,borderColor:`${AppColors_1.AppColors.darkOrange}2E`,borderWidth:1,paddingHorizontal:4.5,paddingVertical:1,borderRadius:3.5},jsonBadgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8.5,color:AppColors_1.AppColors.darkOrange},dupBadge:{backgroundColor:`${AppColors_1.AppColors.purple}14`,borderColor:`${AppColors_1.AppColors.purple}2E`,borderWidth:1,paddingHorizontal:4.5,paddingVertical:1,borderRadius:3.5},dupBadgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8.5,color:AppColors_1.AppColors.purple},hostRow:{flexDirection:"row",alignItems:"center",gap:5,minHeight:15},protoBadge:{paddingHorizontal:4.5,paddingVertical:1,borderRadius:3.5,borderWidth:1},protoBadgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8,lineHeight:10},hostText:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:10,lineHeight:13,color:AppColors_1.AppColors.grayTextWeak,flex:1},highlight:{backgroundColor:AppColors_1.AppColors.yellowHighlight,color:AppColors_1.AppColors.primaryBlack,borderRadius:2},cardFooterRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",height:18,minHeight:18,maxHeight:18,gap:6},footerLeft:{flexDirection:"row",alignItems:"center",gap:6,flex:1,minWidth:0,overflow:"hidden"},footerRight:{flexDirection:"row",alignItems:"center",gap:5,flexShrink:0},cardDateRow:{flexDirection:"row",alignItems:"center",gap:3.5},cardDateText:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:10,lineHeight:13,color:AppColors_1.AppColors.slate400},metaStatChip:{flexDirection:"row",alignItems:"center",gap:3,backgroundColor:AppColors_1.AppColors.violetSoftBg,borderColor:AppColors_1.AppColors.violetSoftBorder,borderWidth:1,paddingHorizontal:5.5,paddingVertical:1.5,borderRadius:4},metaStatText:{fontFamily:AppFonts_1.AppFonts.interBold,color:AppColors_1.AppColors.violetSoftText,fontSize:9,lineHeight:12},waterfallContainer:{height:2.5,width:"100%",backgroundColor:AppColors_1.AppColors.graySurface,borderRadius:1.5,overflow:"hidden",marginTop:2},waterfallBar:{height:"100%",borderRadius:1.5}});exports.default=LogCard;
|