react-native-inapp-inspector 2.3.23 → 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/LogDetail.js +6 -6
- 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/ReduxDetail.js +1 -1
- 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/LogDetail.js +1 -1
- 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/ReduxDetail.js +1 -1
- 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,4 +1,4 @@
|
|
|
1
|
-
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(e,r,i,l){l===void 0&&(l=i);var o=Object.getOwnPropertyDescriptor(r,i);(!o||("get"in o?!r.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return r[i]}}),Object.defineProperty(e,l,o)}):(function(e,r,i,l){l===void 0&&(l=i),e[l]=r[i]})),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?(function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}):function(e,r){e.default=r}),__importStar=this&&this.__importStar||(function(){var e=function(r){return e=Object.getOwnPropertyNames||function(i){var l=[];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(l[l.length]=o);return l},e(r)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var l=e(r),o=0;o<l.length;o++)l[o]!=="default"&&__createBinding(i,r,l[o]);return __setModuleDefault(i,r),i}})(),__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"),CopyButton_1=__importDefault(require("./CopyButton")),JsonViewer_1=__importDefault(require("./JsonViewer")),SegmentedTabs_1=__importDefault(require("./SegmentedTabs")),HighlightText_1=__importDefault(require("./HighlightText")),AnimatedEntrance_1=__importDefault(require("./AnimatedEntrance")),AppFonts_1=require("../styles/AppFonts"),AppColors_1=require("../styles/AppColors"),helpers_1=require("../helpers"),gaAnalyticsRegistry_1=require("../helpers/gaAnalyticsRegistry"),i18n_1=require("../i18n"),NetworkIcons_1=require("./NetworkIcons"),AnalyticsDetail=({event:e})=>{const{t:r}=(0,i18n_1.useTranslation)(),[i,l]=(0,react_1.useState)("overview"),[o,w]=(0,react_1.useState)(""),a=(0,react_1.useMemo)(()=>e.params??{},[e.params]),d=(0,react_1.useMemo)(()=>e.userProperties??{},[e.userProperties]),u=(0,react_1.useMemo)(()=>Object.keys(a),[a]),s=(0,react_1.useMemo)(()=>Object.keys(d),[d]),b=(0,react_1.useMemo)(()=>(0,gaAnalyticsRegistry_1.getEventCategory)(e.name,a),[e.name,a]),y=(0,react_1.useMemo)(()=>({name:e.name,timestamp:e.timestamp,source:e.source,...e.screenName?{screenName:e.screenName}:{},...e.screenClass?{screenClass:e.screenClass}:{},...e.userId?{userId:e.userId}:{},...e.sessionId?{sessionId:e.sessionId}:{},...e.trackingId?{trackingId:e.trackingId}:{},params:a,...s.length>0?{userProperties:d}:{}}),[e,a,s.length,d]),m=(0,react_1.useMemo)(()=>{const t=a.value??a.price,n=a.currency??"USD";return t!=null&&!isNaN(Number(t))?{amount:Number(t).toFixed(2),currency:String(n).toUpperCase()}:null},[a]),f=(0,react_1.useMemo)(()=>Array.isArray(a.items)?a.items.length:null,[a.items]),x=(0,react_1.useMemo)(()=>e.screenName||a.firebase_screen||a.screen_name||a.page_title||e.screenClass||a.firebase_screen_class,[e.screenName,e.screenClass,a]),h=(0,react_1.useMemo)(()=>{const t=Object.entries(a);if(!o.trim())return t;const n=o.toLowerCase();return t.filter(([_,c])=>{const C=typeof c=="object"?JSON.stringify(c):String(c);return _.toLowerCase().includes(n)||C.toLowerCase().includes(n)})},[a,o]),p=(0,react_1.useMemo)(()=>{switch(b){case"ecommerce":return{label:r("analytics.ecommerceCategory"),color:AppColors_1.AppColors.amber700,bg:AppColors_1.AppColors.amber100,border:AppColors_1.AppColors.amber200,icon:t=><NetworkIcons_1.CartIcon color={t}size={11}/>};case"page_view":return{label:r("analytics.screensCategory"),color:AppColors_1.AppColors.sky600,bg:AppColors_1.AppColors.sky100,border:AppColors_1.AppColors.sky400,icon:t=><NetworkIcons_1.GlobeIcon color={t}size={11}/>};case"system":return{label:r("analytics.systemCategory"),color:AppColors_1.AppColors.purple,bg:AppColors_1.AppColors.purple100,border:AppColors_1.AppColors.purple200,icon:t=><NetworkIcons_1.BoltIcon color={t}size={11}/>};default:return{label:r("analytics.customCategory"),color:AppColors_1.AppColors.brandPurple,bg:AppColors_1.AppColors.purple100,border:AppColors_1.AppColors.purple200,icon:t=><NetworkIcons_1.SparkleIcon color={t}size={11}/>}}},[b,r]),
|
|
1
|
+
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(e,r,i,l){l===void 0&&(l=i);var o=Object.getOwnPropertyDescriptor(r,i);(!o||("get"in o?!r.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return r[i]}}),Object.defineProperty(e,l,o)}):(function(e,r,i,l){l===void 0&&(l=i),e[l]=r[i]})),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?(function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}):function(e,r){e.default=r}),__importStar=this&&this.__importStar||(function(){var e=function(r){return e=Object.getOwnPropertyNames||function(i){var l=[];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(l[l.length]=o);return l},e(r)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var l=e(r),o=0;o<l.length;o++)l[o]!=="default"&&__createBinding(i,r,l[o]);return __setModuleDefault(i,r),i}})(),__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"),CopyButton_1=__importDefault(require("./CopyButton")),JsonViewer_1=__importDefault(require("./JsonViewer")),SegmentedTabs_1=__importDefault(require("./SegmentedTabs")),HighlightText_1=__importDefault(require("./HighlightText")),AnimatedEntrance_1=__importDefault(require("./AnimatedEntrance")),AppFonts_1=require("../styles/AppFonts"),AppColors_1=require("../styles/AppColors"),helpers_1=require("../helpers"),gaAnalyticsRegistry_1=require("../helpers/gaAnalyticsRegistry"),i18n_1=require("../i18n"),NetworkIcons_1=require("./NetworkIcons"),AnalyticsDetail=({event:e})=>{const{t:r}=(0,i18n_1.useTranslation)(),[i,l]=(0,react_1.useState)("overview"),[o,w]=(0,react_1.useState)(""),a=(0,react_1.useMemo)(()=>e.params??{},[e.params]),d=(0,react_1.useMemo)(()=>e.userProperties??{},[e.userProperties]),u=(0,react_1.useMemo)(()=>Object.keys(a),[a]),s=(0,react_1.useMemo)(()=>Object.keys(d),[d]),b=(0,react_1.useMemo)(()=>(0,gaAnalyticsRegistry_1.getEventCategory)(e.name,a),[e.name,a]),y=(0,react_1.useMemo)(()=>({name:e.name,timestamp:e.timestamp,source:e.source,...e.screenName?{screenName:e.screenName}:{},...e.screenClass?{screenClass:e.screenClass}:{},...e.userId?{userId:e.userId}:{},...e.sessionId?{sessionId:e.sessionId}:{},...e.trackingId?{trackingId:e.trackingId}:{},params:a,...s.length>0?{userProperties:d}:{}}),[e,a,s.length,d]),m=(0,react_1.useMemo)(()=>{const t=a.value??a.price,n=a.currency??"USD";return t!=null&&!isNaN(Number(t))?{amount:Number(t).toFixed(2),currency:String(n).toUpperCase()}:null},[a]),f=(0,react_1.useMemo)(()=>Array.isArray(a.items)?a.items.length:null,[a.items]),x=(0,react_1.useMemo)(()=>e.screenName||a.firebase_screen||a.screen_name||a.page_title||e.screenClass||a.firebase_screen_class,[e.screenName,e.screenClass,a]),h=(0,react_1.useMemo)(()=>{const t=Object.entries(a);if(!o.trim())return t;const n=o.toLowerCase();return t.filter(([_,c])=>{const C=typeof c=="object"?JSON.stringify(c):String(c);return _.toLowerCase().includes(n)||C.toLowerCase().includes(n)})},[a,o]),p=(0,react_1.useMemo)(()=>{switch(b){case"ecommerce":return{label:r("analytics.ecommerceCategory"),color:AppColors_1.AppColors.amber700,bg:AppColors_1.AppColors.amber100,border:AppColors_1.AppColors.amber200,icon:t=><NetworkIcons_1.CartIcon color={t}size={11}/>};case"page_view":return{label:r("analytics.screensCategory"),color:AppColors_1.AppColors.sky600,bg:AppColors_1.AppColors.sky100,border:AppColors_1.AppColors.sky400,icon:t=><NetworkIcons_1.GlobeIcon color={t}size={11}/>};case"system":return{label:r("analytics.systemCategory"),color:AppColors_1.AppColors.purple,bg:AppColors_1.AppColors.purple100,border:AppColors_1.AppColors.purple200,icon:t=><NetworkIcons_1.BoltIcon color={t}size={11}/>};default:return{label:r("analytics.customCategory"),color:AppColors_1.AppColors.brandPurple,bg:AppColors_1.AppColors.purple100,border:AppColors_1.AppColors.purple200,icon:t=><NetworkIcons_1.SparkleIcon color={t}size={11}/>}}},[b,r]),T=[{key:"overview",label:`${r("analytics.overviewTab")} (${u.length})`,icon:t=><NetworkIcons_1.TableIcon color={t?AppColors_1.AppColors.white:AppColors_1.AppColors.grayText}size={12}/>},{key:"json",label:"JSON Payload",icon:t=><NetworkIcons_1.PrettyIcon color={t?AppColors_1.AppColors.white:AppColors_1.AppColors.grayText}size={12}/>}];return<react_native_1.ScrollView style={detailStyles.scroll}contentContainerStyle={detailStyles.content}showsVerticalScrollIndicator contentInsetAdjustmentBehavior="never"automaticallyAdjustContentInsets={!1}>
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
<react_native_1.View style={detailStyles.heroCard}>
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
</react_native_1.View>}
|
|
83
83
|
|
|
84
84
|
{f!==null&&<react_native_1.View style={detailStyles.itemsPill}>
|
|
85
|
-
<NetworkIcons_1.PackageIcon size={12}color=
|
|
85
|
+
<NetworkIcons_1.PackageIcon size={12}color={AppColors_1.AppColors.blue700}/>
|
|
86
86
|
<react_native_1.Text style={detailStyles.itemsValue}>
|
|
87
87
|
{f} items
|
|
88
88
|
</react_native_1.Text>
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
|
|
93
93
|
|
|
94
94
|
<react_native_1.View style={detailStyles.tabsWrap}>
|
|
95
|
-
<SegmentedTabs_1.default tabs={
|
|
95
|
+
<SegmentedTabs_1.default tabs={T}activeKey={i}onChange={t=>l(t)}/>
|
|
96
96
|
</react_native_1.View>
|
|
97
97
|
|
|
98
98
|
|
|
@@ -152,12 +152,12 @@
|
|
|
152
152
|
No parameters matching "{o}"
|
|
153
153
|
</react_native_1.Text>
|
|
154
154
|
</react_native_1.View>:<react_native_1.View style={detailStyles.paramList}>
|
|
155
|
-
{h.map(([t,n],_)=>{const c=typeof n=="object"&&n!==null,C=Array.isArray(n);let g=typeof n;n===null?g="null":C?g=`array [${n.length}]`:c&&(g="object");const
|
|
155
|
+
{h.map(([t,n],_)=>{const c=typeof n=="object"&&n!==null,C=Array.isArray(n);let g=typeof n;n===null?g="null":C?g=`array [${n.length}]`:c&&(g="object");const A=c?JSON.stringify(n,null,2):String(n),V=t==="value"||t==="price"||t==="currency"||t==="screen_name"||t==="item_id"||t==="item_name";return<AnimatedEntrance_1.default key={t}index={_}distance={4}>
|
|
156
156
|
<react_native_1.View style={detailStyles.paramCard}>
|
|
157
157
|
|
|
158
158
|
<react_native_1.View style={detailStyles.paramCardHeader}>
|
|
159
159
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:6,flex:1,minWidth:0}}>
|
|
160
|
-
<HighlightText_1.default text={t}search={o}style={[detailStyles.paramKeyText,
|
|
160
|
+
<HighlightText_1.default text={t}search={o}style={[detailStyles.paramKeyText,V&&detailStyles.paramKeyHighlighted]}highlightStyle={detailStyles.highlight}/>
|
|
161
161
|
<react_native_1.View style={detailStyles.typeBadge}>
|
|
162
162
|
<react_native_1.Text style={detailStyles.typeBadgeText}>
|
|
163
163
|
{g.toUpperCase()}
|
|
@@ -165,12 +165,12 @@
|
|
|
165
165
|
</react_native_1.View>
|
|
166
166
|
</react_native_1.View>
|
|
167
167
|
|
|
168
|
-
<CopyButton_1.default value={
|
|
168
|
+
<CopyButton_1.default value={A}label={t}/>
|
|
169
169
|
</react_native_1.View>
|
|
170
170
|
|
|
171
171
|
|
|
172
172
|
<react_native_1.View style={detailStyles.paramValBox}>
|
|
173
|
-
{c?<JsonViewer_1.default data={n}search={o}hideTabs wrap/>:<HighlightText_1.default text={
|
|
173
|
+
{c?<JsonViewer_1.default data={n}search={o}hideTabs wrap/>:<HighlightText_1.default text={A}search={o}style={detailStyles.paramValText}highlightStyle={detailStyles.highlight}selectable/>}
|
|
174
174
|
</react_native_1.View>
|
|
175
175
|
</react_native_1.View>
|
|
176
176
|
</AnimatedEntrance_1.default>})}
|
|
@@ -200,4 +200,4 @@
|
|
|
200
200
|
{i==="json"&&<react_native_1.View style={detailStyles.jsonContainer}>
|
|
201
201
|
<JsonViewer_1.default data={y}defaultExpandDepth={2}fullHeight/>
|
|
202
202
|
</react_native_1.View>}
|
|
203
|
-
</react_native_1.ScrollView>},detailStyles=react_native_1.StyleSheet.create({scroll:{flex:1,backgroundColor:AppColors_1.AppColors.grayBackground},content:{paddingTop:12,paddingBottom:40,paddingHorizontal:12},heroCard:{backgroundColor:AppColors_1.AppColors.white,borderRadius:12,padding:14,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,shadowColor:AppColors_1.AppColors.primaryBlack,shadowOffset:{width:0,height:1},shadowOpacity:.04,shadowRadius:4,elevation:2,marginBottom:12},heroTopRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:10},idBadge:{paddingHorizontal:6,paddingVertical:2.5,borderRadius:5,backgroundColor:`${AppColors_1.AppColors.slate500}12`,borderWidth:1,borderColor:`${AppColors_1.AppColors.slate500}22`},idBadgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10,color:AppColors_1.AppColors.grayTextWeak,letterSpacing:.2},sourceBadge:{flexDirection:"row",alignItems:"center",gap:4.5,paddingHorizontal:7,paddingVertical:3,borderRadius:5,borderWidth:1},sourceDot:{width:6,height:6,borderRadius:3},sourceBadgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,letterSpacing:.4},catBadge:{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:7,paddingVertical:3,borderRadius:5,borderWidth:1},catBadgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,letterSpacing:.3},titleRow:{marginBottom:8},eventTitle:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:16,color:AppColors_1.AppColors.primaryBlack,lineHeight:22},metaRow:{flexDirection:"row",alignItems:"center",gap:6,flexWrap:"wrap",marginBottom:10},timePill:{flexDirection:"row",alignItems:"center",gap:4,backgroundColor:`${AppColors_1.AppColors.purple}14`,paddingHorizontal:7,paddingVertical:3,borderRadius:5,borderWidth:1,borderColor:`${AppColors_1.AppColors.purple}2E`},timeText:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:10.5,color:AppColors_1.AppColors.purple},screenPill:{flexDirection:"row",alignItems:"center",gap:4,backgroundColor:`${AppColors_1.AppColors.sky500}14`,paddingHorizontal:7,paddingVertical:3,borderRadius:5,borderWidth:1,borderColor:`${AppColors_1.AppColors.sky500}2E`,maxWidth:220},screenText:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:10.5,color:AppColors_1.AppColors.sky600},metricsBar:{flexDirection:"row",alignItems:"center",gap:6,flexWrap:"wrap",paddingTop:8,borderTopWidth:1,borderTopColor:AppColors_1.AppColors.dividerColor},metricPill:{flexDirection:"row",alignItems:"center",gap:4,backgroundColor:AppColors_1.AppColors.grayBackground,paddingHorizontal:7,paddingVertical:3,borderRadius:5,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor},metricLabel:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:10.5,color:AppColors_1.AppColors.grayTextWeak},metricValue:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:AppColors_1.AppColors.primaryBlack},revenuePill:{flexDirection:"row",alignItems:"center",gap:4,backgroundColor:AppColors_1.AppColors.emeraldBg,paddingHorizontal:7,paddingVertical:3,borderRadius:5,borderWidth:1,borderColor:AppColors_1.AppColors.emeraldBorder},revenueValue:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:
|
|
203
|
+
</react_native_1.ScrollView>},detailStyles=react_native_1.StyleSheet.create({scroll:{flex:1,backgroundColor:AppColors_1.AppColors.grayBackground},content:{paddingTop:12,paddingBottom:40,paddingHorizontal:12},heroCard:{backgroundColor:AppColors_1.AppColors.white,borderRadius:12,padding:14,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,shadowColor:AppColors_1.AppColors.primaryBlack,shadowOffset:{width:0,height:1},shadowOpacity:.04,shadowRadius:4,elevation:2,marginBottom:12},heroTopRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:10},idBadge:{paddingHorizontal:6,paddingVertical:2.5,borderRadius:5,backgroundColor:`${AppColors_1.AppColors.slate500}12`,borderWidth:1,borderColor:`${AppColors_1.AppColors.slate500}22`},idBadgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10,color:AppColors_1.AppColors.grayTextWeak,letterSpacing:.2},sourceBadge:{flexDirection:"row",alignItems:"center",gap:4.5,paddingHorizontal:7,paddingVertical:3,borderRadius:5,borderWidth:1},sourceDot:{width:6,height:6,borderRadius:3},sourceBadgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,letterSpacing:.4},catBadge:{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:7,paddingVertical:3,borderRadius:5,borderWidth:1},catBadgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,letterSpacing:.3},titleRow:{marginBottom:8},eventTitle:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:16,color:AppColors_1.AppColors.primaryBlack,lineHeight:22},metaRow:{flexDirection:"row",alignItems:"center",gap:6,flexWrap:"wrap",marginBottom:10},timePill:{flexDirection:"row",alignItems:"center",gap:4,backgroundColor:`${AppColors_1.AppColors.purple}14`,paddingHorizontal:7,paddingVertical:3,borderRadius:5,borderWidth:1,borderColor:`${AppColors_1.AppColors.purple}2E`},timeText:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:10.5,color:AppColors_1.AppColors.purple},screenPill:{flexDirection:"row",alignItems:"center",gap:4,backgroundColor:`${AppColors_1.AppColors.sky500}14`,paddingHorizontal:7,paddingVertical:3,borderRadius:5,borderWidth:1,borderColor:`${AppColors_1.AppColors.sky500}2E`,maxWidth:220},screenText:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:10.5,color:AppColors_1.AppColors.sky600},metricsBar:{flexDirection:"row",alignItems:"center",gap:6,flexWrap:"wrap",paddingTop:8,borderTopWidth:1,borderTopColor:AppColors_1.AppColors.dividerColor},metricPill:{flexDirection:"row",alignItems:"center",gap:4,backgroundColor:AppColors_1.AppColors.grayBackground,paddingHorizontal:7,paddingVertical:3,borderRadius:5,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor},metricLabel:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:10.5,color:AppColors_1.AppColors.grayTextWeak},metricValue:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:AppColors_1.AppColors.primaryBlack},revenuePill:{flexDirection:"row",alignItems:"center",gap:4,backgroundColor:AppColors_1.AppColors.emeraldBg,paddingHorizontal:7,paddingVertical:3,borderRadius:5,borderWidth:1,borderColor:AppColors_1.AppColors.emeraldBorder},revenueValue:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:AppColors_1.AppColors.greenSuccessDark},itemsPill:{flexDirection:"row",alignItems:"center",gap:4,backgroundColor:AppColors_1.AppColors.blueTintBg,paddingHorizontal:7,paddingVertical:3,borderRadius:5,borderWidth:1,borderColor:AppColors_1.AppColors.sky100},itemsValue:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:AppColors_1.AppColors.blue700},tabsWrap:{marginBottom:12},tabContent:{gap:12},sectionCard:{backgroundColor:AppColors_1.AppColors.white,borderRadius:12,padding:12,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,shadowColor:AppColors_1.AppColors.primaryBlack,shadowOffset:{width:0,height:1},shadowOpacity:.04,shadowRadius:4,elevation:2},sectionHeader:{flexDirection:"row",alignItems:"center",gap:6,marginBottom:10,paddingBottom:6,borderBottomWidth:1,borderBottomColor:AppColors_1.AppColors.dividerColor},sectionHeaderBetween:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:10,paddingBottom:6,borderBottomWidth:1,borderBottomColor:AppColors_1.AppColors.dividerColor},sectionTitle:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,color:AppColors_1.AppColors.slate700,letterSpacing:.4},sectionSubtitle:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:10,color:AppColors_1.AppColors.grayTextWeak},sectionBody:{gap:6},kvRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:3},kvKey:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:11,color:AppColors_1.AppColors.grayTextWeak},kvVal:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,color:AppColors_1.AppColors.primaryBlack},searchBar:{flexDirection:"row",alignItems:"center",backgroundColor:AppColors_1.AppColors.grayBackground,borderRadius:8,paddingHorizontal:8,paddingVertical:5,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,marginBottom:10,gap:6},searchInput:{flex:1,fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:11,color:AppColors_1.AppColors.primaryBlack,paddingVertical:0},emptyParamsBox:{alignItems:"center",justifyContent:"center",paddingVertical:20,gap:6},emptyParamsText:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:11,color:AppColors_1.AppColors.grayTextWeak},paramList:{gap:8},paramCard:{backgroundColor:AppColors_1.AppColors.grayBackground,borderRadius:8,padding:9,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor},paramCardHeader:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:4},paramKeyText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11.5,color:AppColors_1.AppColors.primaryBlack},paramKeyHighlighted:{color:AppColors_1.AppColors.brandPurple},typeBadge:{backgroundColor:AppColors_1.AppColors.slate200,paddingHorizontal:5,paddingVertical:1.5,borderRadius:3},typeBadgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8.5,color:AppColors_1.AppColors.slate700,letterSpacing:.3},paramValBox:{marginTop:2},paramValText:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:11,color:AppColors_1.AppColors.slate700,lineHeight:16},jsonContainer:{borderRadius:12,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,overflow:"hidden",backgroundColor:AppColors_1.AppColors.white,minHeight:300},highlight:{backgroundColor:AppColors_1.AppColors.yellow200,color:AppColors_1.AppColors.yellow800,fontFamily:AppFonts_1.AppFonts.interBold}});exports.default=AnalyticsDetail;
|
|
@@ -46,11 +46,14 @@
|
|
|
46
46
|
</react_native_1.View>
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:
|
|
50
|
-
<
|
|
51
|
-
|
|
52
|
-
{
|
|
53
|
-
|
|
49
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:5}}>
|
|
50
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:3}}>
|
|
51
|
+
<NetworkIcons_1.ClockIcon color={AppColors_1.AppColors.grayTextWeak}size={10}/>
|
|
52
|
+
<react_native_1.Text style={[cardStyles.timestamp,{color:AppColors_1.AppColors.grayTextWeak}]}>
|
|
53
|
+
{(0,helpers_1.formatTime)(e.timestamp)}
|
|
54
|
+
</react_native_1.Text>
|
|
55
|
+
</react_native_1.View>
|
|
56
|
+
<NetworkIcons_1.ForwardChevronIcon color={AppColors_1.AppColors.grayTextWeak}size={13}/>
|
|
54
57
|
</react_native_1.View>
|
|
55
58
|
</react_native_1.View>
|
|
56
59
|
|
|
@@ -85,13 +88,13 @@
|
|
|
85
88
|
</react_native_1.Text>
|
|
86
89
|
</react_native_1.View>:null})()}
|
|
87
90
|
|
|
88
|
-
{(()=>{const i=e.params?.value??e.params?.price,c=e.params?.currency??"",
|
|
91
|
+
{(()=>{const i=e.params?.value??e.params?.price,c=e.params?.currency??"",h=typeof i=="string"||typeof i=="number";if(i!=null&&h&&String(i).trim()!==""){const m=typeof c=="string"&&c.trim()!==""?c.toUpperCase():"";return<react_native_1.View style={[cardStyles.chip,{backgroundColor:`${AppColors_1.AppColors.emerald500}15`,borderColor:`${AppColors_1.AppColors.emerald500}35`}]}>
|
|
89
92
|
<NetworkIcons_1.MoneyIcon color={AppColors_1.AppColors.emerald600}size={11}/>
|
|
90
93
|
<react_native_1.Text style={[cardStyles.chipText,{color:AppColors_1.AppColors.emerald600,fontFamily:AppFonts_1.AppFonts.interBold}]}>
|
|
91
|
-
{String(i)} {
|
|
94
|
+
{String(i)} {m}
|
|
92
95
|
</react_native_1.Text>
|
|
93
96
|
</react_native_1.View>}return null})()}
|
|
94
97
|
</react_native_1.View>
|
|
95
98
|
</react_native_1.View>
|
|
96
99
|
</TouchableScale_1.default>
|
|
97
|
-
</react_native_1.View>}),cardStyles=react_native_1.StyleSheet.create({container:{paddingHorizontal:10,paddingVertical:
|
|
100
|
+
</react_native_1.View>}),cardStyles=react_native_1.StyleSheet.create({container:{paddingHorizontal:10,paddingVertical:4,height:86,justifyContent:"center"},gapContainer:{flexDirection:"row",alignItems:"center",justifyContent:"center",marginVertical:4,gap:8},gapLine:{flex:1,height:1,backgroundColor:`${AppColors_1.AppColors.dividerColor}`},gapText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,color:AppColors_1.AppColors.grayTextWeak,letterSpacing:.5},modernCard:{backgroundColor:AppColors_1.AppColors.white,borderRadius:10,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,paddingHorizontal:12,paddingVertical:9,shadowColor:AppColors_1.AppColors.black,shadowOpacity:.03,shadowRadius:3,shadowOffset:{width:0,height:1},elevation:1,overflow:"hidden",height:78,justifyContent:"space-between"},cardHeader:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",height:24},iconBadge:{width:22,height:22,borderRadius:6,borderWidth:1,alignItems:"center",justifyContent:"center"},eventName:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:13,lineHeight:17,letterSpacing:.1,color:AppColors_1.AppColors.primaryBlack},timestamp:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:10.5,lineHeight:14,color:AppColors_1.AppColors.grayTextWeak},highlight:{backgroundColor:AppColors_1.AppColors.yellowHighlight,color:AppColors_1.AppColors.primaryBlack,borderRadius:2},cardBody:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",height:24,overflow:"hidden"},chipsRow:{flexDirection:"row",alignItems:"center",flexWrap:"nowrap",gap:6,flex:1,overflow:"hidden"},chip:{flexDirection:"row",alignItems:"center",paddingHorizontal:6,paddingVertical:2.5,borderRadius:4.5,borderWidth:1,gap:3.5},chipText:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:10,lineHeight:13,color:AppColors_1.AppColors.grayText},screenDot:{width:5,height:5,borderRadius:2.5},duplicateBadge:{backgroundColor:AppColors_1.AppColors.roseBg,borderColor:AppColors_1.AppColors.roseBorder,borderWidth:1,paddingHorizontal:5,paddingVertical:1.5,borderRadius:4},duplicateText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8.5,color:AppColors_1.AppColors.rose600,textTransform:"uppercase"},idBadge:{paddingHorizontal:5.5,paddingVertical:2,borderRadius:5,backgroundColor:`${AppColors_1.AppColors.slate500}12`,borderWidth:1,borderColor:`${AppColors_1.AppColors.slate500}22`},idBadgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,color:AppColors_1.AppColors.grayTextWeak,letterSpacing:.2},categoryBadge:{borderWidth:1,paddingHorizontal:5,paddingVertical:1.5,borderRadius:4},categoryText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8.5,textTransform:"uppercase",letterSpacing:.4}});exports.default=AnalyticsEventCard;
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
<react_native_1.Image source={t}style={[logoStyles.image,{borderRadius:r-2}]}resizeMode="cover"/>
|
|
5
5
|
</react_native_1.View>}return<react_native_1.View style={[logoStyles.container,{width:e,height:e,borderRadius:r}]}>
|
|
6
6
|
<BrandSquareIcon_1.default size={e}/>
|
|
7
|
-
</react_native_1.View>};exports.AppHeaderLogo=AppHeaderLogo;const logoStyles=react_native_1.StyleSheet.create({container:{overflow:"hidden",alignItems:"center",justifyContent:"center",borderWidth:1.5,borderColor:
|
|
7
|
+
</react_native_1.View>};exports.AppHeaderLogo=AppHeaderLogo;const logoStyles=react_native_1.StyleSheet.create({container:{overflow:"hidden",alignItems:"center",justifyContent:"center",borderWidth:1.5,borderColor:"rgba(255, 255, 255, 0.55)",backgroundColor:AppColors_1.AppColors.white,shadowColor:AppColors_1.AppColors.shadowColorString,shadowOffset:{width:0,height:2},shadowOpacity:.35,shadowRadius:5,elevation:4},imageContainer:{overflow:"hidden",backgroundColor:AppColors_1.AppColors.white,borderWidth:1.5,borderColor:"rgba(255, 255, 255, 0.55)",alignItems:"center",justifyContent:"center",shadowColor:AppColors_1.AppColors.shadowColorString,shadowOffset:{width:0,height:2},shadowOpacity:.3,shadowRadius:4,elevation:3},image:{width:"100%",height:"100%"}});exports.default=exports.AppHeaderLogo;
|
|
@@ -2,31 +2,31 @@
|
|
|
2
2
|
<react_native_svg_1.Defs>
|
|
3
3
|
|
|
4
4
|
<react_native_svg_1.LinearGradient id="bs_tile"x1="0"y1="0"x2="256"y2="256"gradientUnits="userSpaceOnUse">
|
|
5
|
-
<react_native_svg_1.Stop offset="0%"stopColor="#
|
|
6
|
-
<react_native_svg_1.Stop offset="50%"stopColor="#
|
|
7
|
-
<react_native_svg_1.Stop offset="100%"stopColor="#
|
|
5
|
+
<react_native_svg_1.Stop offset="0%"stopColor="#4F46E5"/>
|
|
6
|
+
<react_native_svg_1.Stop offset="50%"stopColor="#4338CA"/>
|
|
7
|
+
<react_native_svg_1.Stop offset="100%"stopColor="#312E81"/>
|
|
8
8
|
</react_native_svg_1.LinearGradient>
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
<react_native_svg_1.LinearGradient id="bs_border"x1="0"y1="0"x2="256"y2="256"gradientUnits="userSpaceOnUse">
|
|
12
|
-
<react_native_svg_1.Stop offset="0%"stopColor="#
|
|
13
|
-
<react_native_svg_1.Stop offset="
|
|
14
|
-
<react_native_svg_1.Stop offset="
|
|
15
|
-
<react_native_svg_1.Stop offset="100%"stopColor="#
|
|
12
|
+
<react_native_svg_1.Stop offset="0%"stopColor="#FFFFFF"stopOpacity={.95}/>
|
|
13
|
+
<react_native_svg_1.Stop offset="30%"stopColor="#A5B4FC"stopOpacity={.9}/>
|
|
14
|
+
<react_native_svg_1.Stop offset="70%"stopColor="#C084FC"stopOpacity={.9}/>
|
|
15
|
+
<react_native_svg_1.Stop offset="100%"stopColor="#67E8F9"stopOpacity={.95}/>
|
|
16
16
|
</react_native_svg_1.LinearGradient>
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
<react_native_svg_1.RadialGradient id="bs_top_glow"cx="50%"cy="15%"r="65%">
|
|
20
|
-
<react_native_svg_1.Stop offset="0%"stopColor="#
|
|
21
|
-
<react_native_svg_1.Stop offset="60%"stopColor="#
|
|
22
|
-
<react_native_svg_1.Stop offset="100%"stopColor="#
|
|
20
|
+
<react_native_svg_1.Stop offset="0%"stopColor="#A5B4FC"stopOpacity={.5}/>
|
|
21
|
+
<react_native_svg_1.Stop offset="60%"stopColor="#818CF8"stopOpacity={.2}/>
|
|
22
|
+
<react_native_svg_1.Stop offset="100%"stopColor="#312E81"stopOpacity={0}/>
|
|
23
23
|
</react_native_svg_1.RadialGradient>
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
<react_native_svg_1.LinearGradient id="bs_body"x1="64"y1="40"x2="192"y2="220"gradientUnits="userSpaceOnUse">
|
|
27
27
|
<react_native_svg_1.Stop offset="0%"stopColor="#3730A3"/>
|
|
28
|
-
<react_native_svg_1.Stop offset="50%"stopColor="#
|
|
29
|
-
<react_native_svg_1.Stop offset="100%"stopColor="#
|
|
28
|
+
<react_native_svg_1.Stop offset="50%"stopColor="#1E1B4B"/>
|
|
29
|
+
<react_native_svg_1.Stop offset="100%"stopColor="#0F172A"/>
|
|
30
30
|
</react_native_svg_1.LinearGradient>
|
|
31
31
|
|
|
32
32
|
|
|
@@ -1,99 +1,111 @@
|
|
|
1
|
-
"use strict";var
|
|
2
|
-
<react_native_1.View style={{flexDirection:"row",
|
|
3
|
-
{
|
|
4
|
-
<
|
|
5
|
-
<react_native_1.Text style={[styles.prefixTagText,{color:
|
|
6
|
-
{
|
|
1
|
+
"use strict";var __importDefault=this&&this.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.ConsoleLogCard=void 0;const react_1=__importDefault(require("react")),i18n_1=require("../i18n"),react_native_1=require("react-native"),AppColors_1=require("../styles/AppColors"),AppFonts_1=require("../styles/AppFonts"),helpers_1=require("../helpers"),TouchableScale_1=__importDefault(require("./TouchableScale")),LogSyntaxHighlighter_1=__importDefault(require("./LogSyntaxHighlighter")),NetworkIcons_1=require("./NetworkIcons"),InspectorContext_1=require("./Inspector/InspectorContext"),getLogMessageWithBadges=(g,o,f,w,I)=>{if(!g)return null;const l=/^((?:\[[^\]]+\]\s*)+)/,T=g.match(l);if(T){const r=T[1],E=g.substring(r.length),t=r.match(/\[[^\]]+\]/g)||[],S=b=>{const e=b.replace(/[\[\]]/g,"").trim().toUpperCase();return e==="AXIOS"?{color:AppColors_1.AppColors.emerald600,Icon:NetworkIcons_1.ZapIcon,label:"AXIOS"}:e==="API"||e==="FETCH"||e==="HTTP"||e==="REST"||e==="NETWORK"?{color:AppColors_1.AppColors.sky600,Icon:NetworkIcons_1.GlobeIcon,label:e}:e==="GRAPHQL"||e==="GQL"||e==="APOLLO"||e==="MUTATION"||e==="QUERY"?{color:AppColors_1.AppColors.pink500,Icon:NetworkIcons_1.AtomIcon,label:e}:e==="WS"||e==="WEBSOCKET"||e==="SOCKET"||e==="SOCKET.IO"||e==="REALTIME"?{color:AppColors_1.AppColors.cyan600,Icon:NetworkIcons_1.SignalIcon,label:e}:e==="REDUX"||e==="STORE"||e==="STATE"||e==="ZUSTAND"||e==="MOBX"||e==="RECOIL"||e==="ACTION"||e==="DISPATCH"?{color:AppColors_1.AppColors.violet600,Icon:NetworkIcons_1.AtomIcon,label:e}:e==="ANALYTICS"||e==="FIREBASE"||e==="GA4"||e==="GA"||e==="SEGMENT"||e==="MIXPANEL"||e==="POSTHOG"||e==="TRACK"||e==="EVENT"?{color:AppColors_1.AppColors.teal600,Icon:NetworkIcons_1.BarChartIcon,label:e}:e==="AUTH"||e==="TOKEN"||e==="SESSION"||e==="JWT"||e==="LOGIN"||e==="LOGOUT"||e==="USER"?{color:AppColors_1.AppColors.amber600,Icon:NetworkIcons_1.KeyIcon,label:e}:e==="SECURITY"||e==="SHIELD"||e==="PERMISSION"||e==="PERMISSIONS"?{color:AppColors_1.AppColors.indigo600Alt,Icon:NetworkIcons_1.ShieldAlertIcon,label:e}:e==="NAV"||e==="NAVIGATION"||e==="ROUTE"||e==="SCREEN"||e==="ROUTER"||e==="DEEPLINK"?{color:AppColors_1.AppColors.indigo600Alt,Icon:NetworkIcons_1.MapPinIcon,label:e}:e==="STORAGE"||e==="ASYNCSTORAGE"||e==="MMKV"||e==="SQLITE"||e==="DB"||e==="DATABASE"||e==="REALM"||e==="CACHE"?{color:AppColors_1.AppColors.purple500,Icon:NetworkIcons_1.StorageIcon,label:e}:e==="PERF"||e==="RENDER"||e==="PERFORMANCE"||e==="FPS"||e==="MEMORY"?{color:AppColors_1.AppColors.violet500,Icon:NetworkIcons_1.PerformanceIcon,label:e}:e==="INIT"||e==="BOOT"||e==="STARTUP"||e==="LIFECYCLE"||e==="MOUNT"||e==="UNMOUNT"?{color:AppColors_1.AppColors.blue600,Icon:NetworkIcons_1.ZapIcon,label:e}:e==="SYNC"||e==="REFRESH"||e==="BACKGROUND"||e==="JOB"||e==="WORKER"?{color:AppColors_1.AppColors.sky600,Icon:NetworkIcons_1.RefreshCcwIcon,label:e}:e==="PUSH"||e==="NOTIF"||e==="NOTIFICATION"||e==="FCM"||e==="APNS"?{color:AppColors_1.AppColors.darkOrange,Icon:NetworkIcons_1.FlameIcon,label:e}:e==="PAY"||e==="PAYMENT"||e==="STRIPE"||e==="IAP"||e==="BILLING"||e==="CHECKOUT"||e==="CART"?{color:AppColors_1.AppColors.emerald600,Icon:NetworkIcons_1.MoneyIcon,label:e}:e==="DEVICE"||e==="HARDWARE"||e==="BLE"||e==="BLUETOOTH"||e==="NFC"||e==="SENSOR"?{color:AppColors_1.AppColors.slate600,Icon:NetworkIcons_1.ChipIcon,label:e}:e==="LOCATION"||e==="GPS"||e==="GEO"?{color:AppColors_1.AppColors.emerald600,Icon:NetworkIcons_1.MapPinIcon,label:e}:e==="APP"?{color:AppColors_1.AppColors.indigo600Alt,Icon:NetworkIcons_1.SmartphoneIcon,label:"APP"}:e==="UI"||e==="VIEW"||e==="THEME"||e==="STYLE"||e==="LAYOUT"?{color:AppColors_1.AppColors.pink600,Icon:NetworkIcons_1.LayoutIcon,label:e}:e==="TEST"||e==="MOCK"||e==="SPEC"?{color:AppColors_1.AppColors.emerald500,Icon:NetworkIcons_1.FlaskIcon,label:"TEST"}:e==="SAMPLE"||e==="BATCH"?{color:AppColors_1.AppColors.indigo600Alt,Icon:NetworkIcons_1.DiceIcon,label:e}:e==="CONFIG"||e==="ENV"||e==="SETTINGS"?{color:AppColors_1.AppColors.slate700,Icon:NetworkIcons_1.SettingsIcon,label:e}:e==="DEBUG"||e==="TRACE"?{color:AppColors_1.AppColors.purpleText,Icon:NetworkIcons_1.TerminalIcon,label:e}:e==="INFO"?{color:AppColors_1.AppColors.sky600,Icon:NetworkIcons_1.InfoCircleIcon,label:"INFO"}:e==="SUCCESS"||e==="OK"||e==="DONE"||e==="PASSED"?{color:AppColors_1.AppColors.green600,Icon:NetworkIcons_1.CircleCheckIcon,label:e}:e==="WARN"||e==="WARNING"?{color:AppColors_1.AppColors.amber600,Icon:NetworkIcons_1.AlertTriangleIcon,label:"WARN"}:e==="ERROR"||e==="CRASH"||e==="BUG"||e==="FATAL"||e==="EXCEPTION"||e==="FAIL"?{color:AppColors_1.AppColors.red600,Icon:NetworkIcons_1.BugIcon,label:e==="CRASH"||e==="BUG"||e==="FATAL"||e==="EXCEPTION"||e==="FAIL"?e:"ERROR"}:{color:AppColors_1.AppColors.slate600,Icon:NetworkIcons_1.TagIcon,label:e}};return<react_native_1.View style={{flexDirection:"column",gap:2}}>
|
|
2
|
+
<react_native_1.View style={{flexDirection:"row",gap:4,overflow:"hidden"}}>
|
|
3
|
+
{t.slice(0,2).map((b,e)=>{const u=S(b),C=u.Icon;return<react_native_1.View key={e}style={[styles.prefixTag,{backgroundColor:`${u.color}12`,borderColor:`${u.color}30`}]}>
|
|
4
|
+
<C color={u.color}size={8.5}/>
|
|
5
|
+
<react_native_1.Text style={[styles.prefixTagText,{color:u.color}]}>
|
|
6
|
+
{u.label}
|
|
7
7
|
</react_native_1.Text>
|
|
8
8
|
</react_native_1.View>})}
|
|
9
9
|
</react_native_1.View>
|
|
10
|
-
<LogSyntaxHighlighter_1.default text={
|
|
11
|
-
</react_native_1.View>}return<LogSyntaxHighlighter_1.default text={
|
|
12
|
-
<
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
<react_native_1.View style={styles.
|
|
16
|
-
<react_native_1.View style={styles.
|
|
17
|
-
<react_native_1.Text style={styles.
|
|
10
|
+
<LogSyntaxHighlighter_1.default text={E}search={o}style={f}numberOfLines={1}detectLinks={!1}/>
|
|
11
|
+
</react_native_1.View>}return<LogSyntaxHighlighter_1.default text={g}search={o}style={f}numberOfLines={I||2}detectLinks={!1}/>};exports.ConsoleLogCard=react_1.default.memo(function({item:o,searchStr:f=""}){const{setSelectedLog:w}=(0,InspectorContext_1.useInspector)(),{t:I}=(0,i18n_1.useTranslation)(),l=(0,helpers_1.getJsonContent)(o.message),T=o.message.toLowerCase().includes("[analytics error]"),r=react_1.default.useMemo(()=>{const C=(0,helpers_1.getCleanCallerDisplay)(o.caller);if(!C)return null;const A=(0,helpers_1.parseStackLine)(o.caller,!0);return{...A,display:C.display,fileName:C.fileName,lineNumber:C.lineNumber||A.lineNumber}},[o.caller]),t=(()=>{const C=(o.type||"log").toLowerCase(),A=(o.sourceMethod||C).toLowerCase();return T||C==="error"||A==="error"?{badgeColor:AppColors_1.AppColors.errorColor,border:AppColors_1.AppColors.errorColor,badgeBg:`${AppColors_1.AppColors.errorColor}18`,badgeText:AppColors_1.AppColors.errorColor,label:"ERROR",cardBg:AppColors_1.AppColors.errorCardBg,statusPillBg:`${AppColors_1.AppColors.errorColor}14`,statusPillBorder:`${AppColors_1.AppColors.errorColor}33`,statusPillText:AppColors_1.AppColors.errorColor,StatusIcon:NetworkIcons_1.CircleXIcon}:C==="warn"||A==="warn"?{badgeColor:AppColors_1.AppColors.darkOrange,border:AppColors_1.AppColors.darkOrange,badgeBg:`${AppColors_1.AppColors.darkOrange}18`,badgeText:AppColors_1.AppColors.darkOrange,label:"WARN",cardBg:AppColors_1.AppColors.warnCardBg,statusPillBg:`${AppColors_1.AppColors.darkOrange}14`,statusPillBorder:`${AppColors_1.AppColors.darkOrange}33`,statusPillText:AppColors_1.AppColors.darkOrange,StatusIcon:NetworkIcons_1.CircleAlertIcon}:C==="debug"||A==="debug"?{badgeColor:AppColors_1.AppColors.purple,border:AppColors_1.AppColors.purple,badgeBg:`${AppColors_1.AppColors.purple}18`,badgeText:AppColors_1.AppColors.purple,label:"DEBUG",cardBg:AppColors_1.AppColors.purpleTintBg,statusPillBg:`${AppColors_1.AppColors.purple}14`,statusPillBorder:`${AppColors_1.AppColors.purple}33`,statusPillText:AppColors_1.AppColors.purple,StatusIcon:NetworkIcons_1.ZapIcon}:A==="info"||C==="info"&&A!=="log"?{badgeColor:AppColors_1.AppColors.sky600,border:AppColors_1.AppColors.sky600,badgeBg:`${AppColors_1.AppColors.sky600}18`,badgeText:AppColors_1.AppColors.sky600,label:"INFO",cardBg:AppColors_1.AppColors.blueTintBg,statusPillBg:`${AppColors_1.AppColors.sky600}14`,statusPillBorder:`${AppColors_1.AppColors.sky600}33`,statusPillText:AppColors_1.AppColors.sky600,StatusIcon:NetworkIcons_1.InfoCircleIcon}:{badgeColor:AppColors_1.AppColors.brandPurple,border:AppColors_1.AppColors.brandPurple,badgeBg:`${AppColors_1.AppColors.brandPurple}15`,badgeText:AppColors_1.AppColors.brandPurple,label:"LOG",cardBg:AppColors_1.AppColors.white,statusPillBg:`${AppColors_1.AppColors.brandPurple}12`,statusPillBorder:`${AppColors_1.AppColors.brandPurple}2E`,statusPillText:AppColors_1.AppColors.brandPurple,StatusIcon:NetworkIcons_1.CircleCheckIcon}})(),S=t.StatusIcon,b=l?(0,helpers_1.getJsonPreviewText)(l.data):null,e=()=>{w(o)},u=("sourceMethod"in o?o.sourceMethod:void 0)||o.type||"log";return<react_native_1.View style={styles.container}>
|
|
12
|
+
<TouchableScale_1.default onPress={e}style={[styles.card,{borderLeftWidth:3.5,borderLeftColor:t.border,backgroundColor:t.cardBg}]}>
|
|
13
|
+
<react_native_1.View style={styles.cardBody}>
|
|
14
|
+
|
|
15
|
+
<react_native_1.View style={styles.cardHeaderRow}>
|
|
16
|
+
<react_native_1.View style={styles.cardHeaderLeft}>
|
|
17
|
+
<react_native_1.Text style={styles.serialNumber}>
|
|
18
18
|
#{o.id!=null?o.id+1:1}
|
|
19
19
|
</react_native_1.Text>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
<react_native_1.View style={[styles.
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
{("sourceMethod"in o?o.sourceMethod:void 0)||o.type||"log"}
|
|
31
|
-
</react_native_1.Text>
|
|
32
|
-
</react_native_1.View>
|
|
33
|
-
{i&&<react_native_1.View style={[styles.metaChip,{backgroundColor:`${AppColors_1.AppColors.teal600}14`,borderColor:`${AppColors_1.AppColors.teal600}33`}]}>
|
|
34
|
-
<react_native_1.Text style={[styles.metaChipText,{color:AppColors_1.AppColors.teal600,fontFamily:AppFonts_1.AppFonts.interBold}]}>
|
|
35
|
-
{Array.isArray(i.data)?`Array[${i.data.length}]`:`Object{${Object.keys(i.data).length}}`}
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
<react_native_1.View style={[styles.methodBadge,{backgroundColor:t.badgeColor}]}>
|
|
23
|
+
<react_native_1.Text style={styles.methodBadgeText}>{t.label}</react_native_1.Text>
|
|
24
|
+
</react_native_1.View>
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
<react_native_1.View style={[styles.chip,{backgroundColor:`${t.badgeColor}12`,borderColor:`${t.badgeColor}2E`}]}>
|
|
28
|
+
<react_native_1.Text style={[styles.chipText,{color:t.badgeColor}]}numberOfLines={1}>
|
|
29
|
+
console.{u}
|
|
36
30
|
</react_native_1.Text>
|
|
37
|
-
</react_native_1.View>
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
31
|
+
</react_native_1.View>
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
{l&&<react_native_1.View style={[styles.chip,{backgroundColor:`${AppColors_1.AppColors.teal600}14`,borderColor:`${AppColors_1.AppColors.teal600}33`}]}>
|
|
35
|
+
<react_native_1.Text style={[styles.chipText,{color:AppColors_1.AppColors.teal600}]}>
|
|
36
|
+
{Array.isArray(l.data)?`Array[${l.data.length}]`:`Object{${Object.keys(l.data).length}}`}
|
|
41
37
|
</react_native_1.Text>
|
|
42
38
|
</react_native_1.View>}
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
{"duplicateCount"in o&&o.duplicateCount!=null&&o.duplicateCount>1&&<react_native_1.View style={styles.dupBadge}>
|
|
42
|
+
<react_native_1.Text style={styles.dupBadgeText}>
|
|
43
|
+
×{o.duplicateCount}
|
|
44
|
+
</react_native_1.Text>
|
|
45
|
+
</react_native_1.View>}
|
|
46
|
+
</react_native_1.View>
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
<react_native_1.View style={styles.cardHeaderRight}>
|
|
50
|
+
<react_native_1.View style={[styles.statusPill,{backgroundColor:t.statusPillBg,borderColor:t.statusPillBorder}]}>
|
|
51
|
+
<S color={t.statusPillText}size={9.5}/>
|
|
52
|
+
<react_native_1.Text style={[styles.statusPillText,{color:t.statusPillText}]}>
|
|
53
|
+
{t.label}
|
|
54
|
+
</react_native_1.Text>
|
|
55
|
+
</react_native_1.View>
|
|
56
|
+
<NetworkIcons_1.ForwardChevronIcon color={AppColors_1.AppColors.grayTextWeak}size={13}/>
|
|
57
|
+
</react_native_1.View>
|
|
43
58
|
</react_native_1.View>
|
|
44
59
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
60
|
+
|
|
61
|
+
<react_native_1.View style={styles.messageBox}>
|
|
62
|
+
{l?<react_native_1.View style={styles.jsonPreviewRow}>
|
|
63
|
+
{l.header?<LogSyntaxHighlighter_1.default text={l.header}search={f}style={styles.messageText}detectLinks={!1}numberOfLines={1}/>:null}
|
|
64
|
+
{b&&<LogSyntaxHighlighter_1.default text={b.text.replace(/\s+/g," ")}search={f}style={styles.jsonPreviewText}detectLinks={!1}numberOfLines={l.header?2:3}/>}
|
|
65
|
+
</react_native_1.View>:getLogMessageWithBadges(o.message,f,styles.messageText,styles.highlight,3)}
|
|
48
66
|
</react_native_1.View>
|
|
49
|
-
</react_native_1.View>
|
|
50
67
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
{
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
{c?"Show less":"Show full preview"}
|
|
61
|
-
</react_native_1.Text>
|
|
62
|
-
<NetworkIcons_1.ChevronIcon color={AppColors_1.AppColors.purple}size={11}direction={c?"up":"down"}/>
|
|
63
|
-
</react_native_1.Pressable>}
|
|
64
|
-
</react_native_1.View>}
|
|
65
|
-
</>:getLogMessageWithBadges(o.message,t,[styles.messageText,{color:AppColors_1.AppColors.primaryBlack}],styles.highlight,c?void 0:4)}
|
|
66
|
-
</react_native_1.View>
|
|
68
|
+
|
|
69
|
+
<react_native_1.View style={styles.cardFooterRow}>
|
|
70
|
+
<react_native_1.View style={styles.footerLeft}>
|
|
71
|
+
<react_native_1.View style={styles.cardDateRow}>
|
|
72
|
+
<NetworkIcons_1.ClockIcon color={AppColors_1.AppColors.grayTextWeak}size={10}/>
|
|
73
|
+
<react_native_1.Text style={styles.cardDateText}numberOfLines={1}>
|
|
74
|
+
{(0,helpers_1.formatTime)(o.timestamp)}
|
|
75
|
+
</react_native_1.Text>
|
|
76
|
+
</react_native_1.View>
|
|
67
77
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
<react_native_1.Text style={styles.footerTime}>{(0,helpers_1.formatTime)(o.timestamp)}</react_native_1.Text>
|
|
73
|
-
{a&&<>
|
|
74
|
-
<react_native_1.View style={styles.footerDot}/>
|
|
75
|
-
<react_native_1.Pressable onPress={p=>{p.stopPropagation?.(),(0,helpers_1.openInVSCode)(a.rawFilePath||a.fullPath||a.fileName,a.lineNumber,a.columnNumber)}}hitSlop={8}style={styles.callerPill}>
|
|
76
|
-
{a.fileExt&&a.fileExt!=="other"&&<react_native_1.View style={[styles.extBadge,{backgroundColor:a.fileExt==="tsx"||a.fileExt==="ts"?`${AppColors_1.AppColors.brandPurple}22`:`${AppColors_1.AppColors.teal600}22`}]}>
|
|
77
|
-
<react_native_1.Text style={[styles.extBadgeText,{color:a.fileExt==="tsx"||a.fileExt==="ts"?AppColors_1.AppColors.brandPurple:AppColors_1.AppColors.teal600}]}>
|
|
78
|
-
{a.fileExt.toUpperCase()}
|
|
78
|
+
{r&&<react_native_1.Pressable onPress={C=>{C.stopPropagation?.(),(0,helpers_1.openInVSCode)(r.rawFilePath||r.fullPath||r.fileName,r.lineNumber,r.columnNumber)}}hitSlop={8}style={styles.callerChip}>
|
|
79
|
+
{r.fileExt&&r.fileExt!=="other"&&<react_native_1.View style={[styles.extBadge,{backgroundColor:r.fileExt==="tsx"||r.fileExt==="ts"?`${AppColors_1.AppColors.brandPurple}22`:`${AppColors_1.AppColors.teal600}22`}]}>
|
|
80
|
+
<react_native_1.Text style={[styles.extBadgeText,{color:r.fileExt==="tsx"||r.fileExt==="ts"?AppColors_1.AppColors.brandPurple:AppColors_1.AppColors.teal600}]}>
|
|
81
|
+
{r.fileExt.toUpperCase()}
|
|
79
82
|
</react_native_1.Text>
|
|
80
83
|
</react_native_1.View>}
|
|
81
|
-
<react_native_1.Text style={styles.
|
|
82
|
-
{
|
|
83
|
-
{a.lineNumber?`:${a.lineNumber}`:""}
|
|
84
|
+
<react_native_1.Text style={styles.callerChipText}numberOfLines={1}ellipsizeMode="middle">
|
|
85
|
+
{r.display}
|
|
84
86
|
</react_native_1.Text>
|
|
85
|
-
<NetworkIcons_1.ExternalLinkIcon color={AppColors_1.AppColors.sky600}size={8
|
|
86
|
-
</react_native_1.Pressable>
|
|
87
|
-
|
|
87
|
+
<NetworkIcons_1.ExternalLinkIcon color={AppColors_1.AppColors.sky600}size={8}/>
|
|
88
|
+
</react_native_1.Pressable>}
|
|
89
|
+
</react_native_1.View>
|
|
90
|
+
|
|
91
|
+
<react_native_1.View style={styles.footerRight}>
|
|
92
|
+
{l&&<react_native_1.View style={styles.metaStatChip}>
|
|
93
|
+
<NetworkIcons_1.SizeIcon color={AppColors_1.AppColors.purple}size={8.5}/>
|
|
94
|
+
<react_native_1.Text style={styles.metaStatText}>
|
|
95
|
+
{(0,helpers_1.getSize)(l.data)}
|
|
96
|
+
</react_native_1.Text>
|
|
97
|
+
</react_native_1.View>}
|
|
98
|
+
|
|
99
|
+
{T&&<react_native_1.View style={[styles.chip,{backgroundColor:`${AppColors_1.AppColors.skyBlue}15`,borderColor:`${AppColors_1.AppColors.skyBlue}30`}]}>
|
|
100
|
+
<react_native_1.Text style={[styles.chipText,{color:AppColors_1.AppColors.skyBlue}]}>
|
|
101
|
+
{I("console.analyticsBadge")||"ANALYTICS"}
|
|
102
|
+
</react_native_1.Text>
|
|
103
|
+
</react_native_1.View>}
|
|
104
|
+
</react_native_1.View>
|
|
88
105
|
</react_native_1.View>
|
|
89
106
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
<react_native_1.Text style={[styles.footerBadgeText,{color:AppColors_1.AppColors.skyBlue}]}>
|
|
93
|
-
{l("console.analyticsBadge")}
|
|
94
|
-
</react_native_1.Text>
|
|
95
|
-
</react_native_1.View>
|
|
96
|
-
</react_native_1.View>}
|
|
107
|
+
|
|
108
|
+
<react_native_1.View style={[styles.bottomAccentBar,{backgroundColor:`${t.border}35`}]}/>
|
|
97
109
|
</react_native_1.View>
|
|
98
|
-
</
|
|
99
|
-
</react_native_1.View>});const styles=react_native_1.StyleSheet.create({container:{paddingHorizontal:
|
|
110
|
+
</TouchableScale_1.default>
|
|
111
|
+
</react_native_1.View>});const styles=react_native_1.StyleSheet.create({container:{paddingHorizontal:8,paddingVertical:4,height:148,justifyContent:"center"},card:{height:140,alignSelf:"stretch",borderRadius:10,overflow:"hidden",borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,shadowColor:AppColors_1.AppColors.shadowColorString},cardBody:{height:"100%",paddingHorizontal:12,paddingTop:10,paddingBottom:8,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},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},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},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},messageBox:{backgroundColor:AppColors_1.AppColors.grayBackground,borderRadius:7,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,paddingHorizontal:10,paddingVertical:6,height:68,minHeight:68,maxHeight:68,justifyContent:"center",gap:2,overflow:"hidden"},messageText:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:12,color:AppColors_1.AppColors.primaryBlack,lineHeight:17},highlight:{backgroundColor:AppColors_1.AppColors.yellowHighlight,color:AppColors_1.AppColors.primaryBlack,borderRadius:2},jsonPreviewRow:{flexDirection:"column",justifyContent:"center",gap:2},jsonPreviewText:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:11,color:AppColors_1.AppColors.teal700,lineHeight:15},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},callerChip:{flexDirection:"row",alignItems:"center",gap:3,backgroundColor:AppColors_1.AppColors.skySoftBg,borderColor:AppColors_1.AppColors.skySoftBorder,borderWidth:1,paddingHorizontal:5,paddingVertical:1.5,borderRadius:4,flexShrink:1,minWidth:0},extBadge:{borderRadius:3,paddingHorizontal:3,paddingVertical:.5},extBadgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:7.5},callerChipText:{color:AppColors_1.AppColors.skySoftText,fontSize:9,lineHeight:12,fontFamily:AppFonts_1.AppFonts.interBold},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},prefixTag:{flexDirection:"row",alignItems:"center",gap:2.5,paddingHorizontal:5,paddingVertical:1.5,borderRadius:3.5,borderWidth:1},prefixTagText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8.5,letterSpacing:.3},bottomAccentBar:{height:2.5,width:"100%",borderRadius:1.5,marginTop:2}});exports.default=exports.ConsoleLogCard;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
interface EndOfListFooterProps {
|
|
2
|
+
export interface EndOfListFooterProps {
|
|
3
3
|
count?: number;
|
|
4
|
+
totalCount?: number;
|
|
4
5
|
label?: string;
|
|
5
6
|
message?: string;
|
|
7
|
+
hasMore?: boolean;
|
|
8
|
+
onLoadMore?: () => void;
|
|
9
|
+
loadMoreStep?: number;
|
|
6
10
|
}
|
|
7
11
|
export declare const EndOfListFooter: React.FC<EndOfListFooterProps>;
|
|
8
12
|
export default EndOfListFooter;
|
|
@@ -1,15 +1,37 @@
|
|
|
1
|
-
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.EndOfListFooter=void 0;const react_1=__importDefault(require("react")),react_native_1=require("react-native"),AppColors_1=require("../styles/AppColors"),AppFonts_1=require("../styles/AppFonts"),NetworkIcons_1=require("./NetworkIcons");exports.EndOfListFooter=react_1.default.memo(({count:e,label:
|
|
1
|
+
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.EndOfListFooter=void 0;const react_1=__importDefault(require("react")),react_native_1=require("react-native"),AppColors_1=require("../styles/AppColors"),AppFonts_1=require("../styles/AppFonts"),NetworkIcons_1=require("./NetworkIcons"),TouchableScale_1=__importDefault(require("./TouchableScale")),i18n_1=require("../i18n");exports.EndOfListFooter=react_1.default.memo(({count:e,totalCount:o,label:r="items",message:s,hasMore:d=!1,onLoadMore:i,loadMoreStep:a=10})=>{const{t:n}=(0,i18n_1.useTranslation)(),c=s??n("footer.endOfList","You've reached the end of the list"),p=d||o!=null&&e!=null&&e<o&&!!i,g=o!=null&&e!=null?Math.max(0,o-e):a,l=Math.min(g||a,a);if(p&&i)return<react_native_1.View style={styles.container}>
|
|
2
|
+
<react_native_1.View style={styles.dividerLine}/>
|
|
3
|
+
<react_native_1.View style={styles.loadMoreContainer}>
|
|
4
|
+
<TouchableScale_1.default onPress={i}hitSlop={6}style={styles.loadMoreBtn}>
|
|
5
|
+
<react_native_1.View style={styles.loadMoreIconWrap}>
|
|
6
|
+
<NetworkIcons_1.ChevronIcon color={AppColors_1.AppColors.white}size={9}direction="down"/>
|
|
7
|
+
</react_native_1.View>
|
|
8
|
+
<react_native_1.Text style={styles.loadMoreBtnText}>
|
|
9
|
+
{n("footer.loadMore",{count:l,defaultValue:`Load ${l} More`})}
|
|
10
|
+
</react_native_1.Text>
|
|
11
|
+
{o!=null&&e!=null&&<react_native_1.View style={styles.loadMoreCountBadge}>
|
|
12
|
+
<react_native_1.Text style={styles.loadMoreCountText}>
|
|
13
|
+
{e}/{o}
|
|
14
|
+
</react_native_1.Text>
|
|
15
|
+
</react_native_1.View>}
|
|
16
|
+
</TouchableScale_1.default>
|
|
17
|
+
{o!=null&&e!=null&&<react_native_1.Text style={styles.loadMoreSubtitle}>
|
|
18
|
+
{n("footer.showingOf",{count:e,total:o,label:r,defaultValue:`Showing ${e} of ${o} ${r}`})}
|
|
19
|
+
</react_native_1.Text>}
|
|
20
|
+
</react_native_1.View>
|
|
21
|
+
<react_native_1.View style={styles.dividerLine}/>
|
|
22
|
+
</react_native_1.View>;const t=e??o;return<react_native_1.View style={styles.container}>
|
|
2
23
|
<react_native_1.View style={styles.dividerLine}/>
|
|
3
24
|
<react_native_1.View style={styles.badgePill}>
|
|
4
25
|
<react_native_1.View style={styles.iconCircle}>
|
|
5
26
|
<NetworkIcons_1.CheckIcon color={AppColors_1.AppColors.purple}size={8}/>
|
|
6
27
|
</react_native_1.View>
|
|
7
|
-
<react_native_1.Text style={styles.messageText}>{
|
|
8
|
-
{
|
|
28
|
+
<react_native_1.Text style={styles.messageText}>{c}</react_native_1.Text>
|
|
29
|
+
{t!=null&&t>0&&<react_native_1.View style={styles.countBadge}>
|
|
9
30
|
<react_native_1.Text style={styles.countText}>
|
|
10
|
-
{
|
|
31
|
+
{t}{" "}
|
|
32
|
+
{r?t===1?r.replace(/s$/,""):r:""}
|
|
11
33
|
</react_native_1.Text>
|
|
12
34
|
</react_native_1.View>}
|
|
13
35
|
</react_native_1.View>
|
|
14
36
|
<react_native_1.View style={styles.dividerLine}/>
|
|
15
|
-
</react_native_1.View>);const styles=react_native_1.StyleSheet.create({container:{flexDirection:"row",alignItems:"center",justifyContent:"center",paddingHorizontal:16,paddingTop:
|
|
37
|
+
</react_native_1.View>});const styles=react_native_1.StyleSheet.create({container:{flexDirection:"row",alignItems:"center",justifyContent:"center",paddingHorizontal:16,paddingTop:14,paddingBottom:react_native_1.Platform.OS==="ios"?40:28,gap:8},dividerLine:{flex:1,height:1,backgroundColor:AppColors_1.AppColors.dividerColor,opacity:.7},loadMoreContainer:{alignItems:"center",gap:5},loadMoreBtn:{flexDirection:"row",alignItems:"center",backgroundColor:AppColors_1.AppColors.brandPurple,paddingVertical:6,paddingHorizontal:12,borderRadius:20,gap:6,shadowColor:AppColors_1.AppColors.brandPurple,shadowOffset:{width:0,height:2},shadowOpacity:.25,shadowRadius:4,elevation:2,borderWidth:1,borderColor:"rgba(255, 255, 255, 0.2)"},loadMoreIconWrap:{width:15,height:15,borderRadius:7.5,backgroundColor:"rgba(255, 255, 255, 0.25)",alignItems:"center",justifyContent:"center"},loadMoreBtnText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,color:AppColors_1.AppColors.white,letterSpacing:.2},loadMoreCountBadge:{backgroundColor:"rgba(255, 255, 255, 0.2)",paddingHorizontal:5,paddingVertical:1,borderRadius:10},loadMoreCountText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,color:AppColors_1.AppColors.white},loadMoreSubtitle:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:10,color:AppColors_1.AppColors.grayTextWeak,letterSpacing:.1},badgePill:{flexDirection:"row",alignItems:"center",gap:6,paddingHorizontal:10,paddingVertical:5,borderRadius:999,backgroundColor:AppColors_1.AppColors.primaryLight,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,shadowColor:AppColors_1.AppColors.black,shadowOffset:{width:0,height:1},shadowOpacity:.04,shadowRadius:2,elevation:1},iconCircle:{width:14,height:14,borderRadius:7,backgroundColor:`${AppColors_1.AppColors.purple}18`,alignItems:"center",justifyContent:"center"},messageText:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:11,color:AppColors_1.AppColors.grayTextWeak,letterSpacing:.1},countBadge:{paddingHorizontal:5,paddingVertical:1,borderRadius:6,backgroundColor:AppColors_1.AppColors.grayBackground,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary},countText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,color:AppColors_1.AppColors.grayTextStrong}});exports.default=exports.EndOfListFooter;
|