react-native-inapp-inspector 2.3.19 → 2.3.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -14
- package/android/src/main/java/com/inappinspector/NetworkInspectorModule.kt +67 -0
- package/dist/commonjs/analytics.js +1 -24
- package/dist/commonjs/bundle.js +1 -16
- package/dist/commonjs/capture.js +1 -35
- package/dist/commonjs/components/AnalyticsDetail.js +92 -623
- package/dist/commonjs/components/AnalyticsEventCard.js +54 -350
- package/dist/commonjs/components/AnalyticsGraph.js +70 -370
- package/dist/commonjs/components/AnimatedEntrance.js +1 -11
- package/dist/commonjs/components/AppHeaderLogo.js +7 -134
- package/dist/commonjs/components/BrandCircleIcon.js +73 -118
- package/dist/commonjs/components/BrandSquareIcon.js +63 -108
- package/dist/commonjs/components/CodeSnippet.js +48 -623
- package/dist/commonjs/components/ConsoleLogCard.js +63 -537
- package/dist/commonjs/components/CopyButton.js +3 -89
- package/dist/commonjs/components/DiffViewer.js +19 -83
- package/dist/commonjs/components/DomainHeader.js +27 -127
- package/dist/commonjs/components/EmptyState.js +10 -87
- package/dist/commonjs/components/EndOfListFooter.js +7 -81
- package/dist/commonjs/components/ErrorBoundary.js +72 -566
- package/dist/commonjs/components/HeadersSection.js +31 -110
- package/dist/commonjs/components/HighlightText.js +17 -58
- package/dist/commonjs/components/Inspector/AboutModal.d.ts +6 -0
- package/dist/commonjs/components/Inspector/AboutModal.js +243 -0
- package/dist/commonjs/components/Inspector/AnalyticsFilterModal.js +98 -797
- package/dist/commonjs/components/Inspector/AnalyticsTab.js +284 -930
- package/dist/commonjs/components/Inspector/BundleTab.js +551 -2918
- package/dist/commonjs/components/Inspector/ConsoleTab.js +79 -492
- package/dist/commonjs/components/Inspector/CrashDetail.js +123 -672
- package/dist/commonjs/components/Inspector/CrashFilterModal.js +66 -498
- package/dist/commonjs/components/Inspector/CrashTab.js +98 -670
- package/dist/commonjs/components/Inspector/DebuggingTab.js +74 -875
- package/dist/commonjs/components/Inspector/DeviceInfoTab.js +143 -907
- package/dist/commonjs/components/Inspector/FabLauncher.js +42 -466
- package/dist/commonjs/components/Inspector/FeatureUnderDevNotice.js +6 -99
- package/dist/commonjs/components/Inspector/InspectorContext.js +1 -21
- package/dist/commonjs/components/Inspector/InspectorHeader.js +191 -1110
- package/dist/commonjs/components/Inspector/LogDetail.js +168 -994
- package/dist/commonjs/components/Inspector/MainScreen.js +52 -335
- package/dist/commonjs/components/Inspector/MediaGalleryTab.js +97 -644
- package/dist/commonjs/components/Inspector/MediaPreviewModal.js +90 -605
- package/dist/commonjs/components/Inspector/NavigationTracker.js +1 -12
- package/dist/commonjs/components/Inspector/NetworkDetail.js +89 -411
- package/dist/commonjs/components/Inspector/NetworkFilterModal.js +60 -576
- package/dist/commonjs/components/Inspector/NetworkTab.js +84 -514
- package/dist/commonjs/components/Inspector/NpmStarPrompt.js +18 -434
- package/dist/commonjs/components/Inspector/NpmUpdateToast.js +25 -298
- package/dist/commonjs/components/Inspector/PerformanceTab.js +182 -1397
- package/dist/commonjs/components/Inspector/ReduxDetail.js +188 -1089
- package/dist/commonjs/components/Inspector/ReduxTab.js +85 -701
- package/dist/commonjs/components/Inspector/SettingsPanel.js +427 -3807
- package/dist/commonjs/components/Inspector/SkeletonPlaceholder.js +11 -180
- package/dist/commonjs/components/Inspector/StorageTab.js +93 -826
- package/dist/commonjs/components/Inspector/TabBar.js +36 -334
- package/dist/commonjs/components/Inspector/UpdateAvailableModal.js +37 -412
- package/dist/commonjs/components/JsonViewer.js +168 -381
- package/dist/commonjs/components/LogCard.js +57 -567
- package/dist/commonjs/components/LogSyntaxHighlighter.js +11 -130
- package/dist/commonjs/components/MetaAccordion.js +69 -238
- package/dist/commonjs/components/MiniBarChart.js +3 -56
- package/dist/commonjs/components/MiniLineChart.js +3 -58
- package/dist/commonjs/components/NetworkIcons.d.ts +13 -0
- package/dist/commonjs/components/NetworkIcons.js +521 -1022
- package/dist/commonjs/components/QRCodeView.js +5 -79
- package/dist/commonjs/components/SectionHeader.js +15 -37
- package/dist/commonjs/components/SegmentedTabs.js +7 -62
- package/dist/commonjs/components/SkeletonPlaceholder.js +11 -180
- package/dist/commonjs/components/Slider.js +15 -243
- package/dist/commonjs/components/SourcePageCard.js +30 -89
- package/dist/commonjs/components/Toast.js +5 -147
- package/dist/commonjs/components/TouchableScale.js +3 -24
- package/dist/commonjs/components/TreeNode.js +55 -130
- package/dist/commonjs/console.js +1 -16
- package/dist/commonjs/constants/index.js +1 -32
- package/dist/commonjs/constants/telemetryConfig.js +1 -6
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -4
- package/dist/commonjs/crash.js +1 -23
- package/dist/commonjs/customHooks/analyticsLogger.js +1 -250
- package/dist/commonjs/customHooks/bundleAnalyzer.js +1 -957
- package/dist/commonjs/customHooks/consoleLogger.js +6 -445
- package/dist/commonjs/customHooks/crashHandler.js +7 -656
- package/dist/commonjs/customHooks/logFilters.js +1 -23
- package/dist/commonjs/customHooks/networkLogger.js +2 -536
- package/dist/commonjs/customHooks/performanceTracker.js +63 -750
- package/dist/commonjs/customHooks/reduxLogger.js +2 -313
- package/dist/commonjs/customHooks/storageInspector.js +1 -435
- package/dist/commonjs/customHooks/useAccordion.js +1 -18
- package/dist/commonjs/decorators/index.js +1 -100
- package/dist/commonjs/helpers/gaAnalyticsRegistry.js +1 -148
- package/dist/commonjs/helpers/index.d.ts +1 -0
- package/dist/commonjs/helpers/index.js +8 -921
- package/dist/commonjs/helpers/memoryManager.js +1 -99
- package/dist/commonjs/helpers/qrGenerator.js +1 -367
- package/dist/commonjs/helpers/remoteConfig.js +1 -165
- package/dist/commonjs/helpers/searchQueryParser.js +1 -62
- package/dist/commonjs/helpers/settingsStore.js +1 -144
- package/dist/commonjs/helpers/telemetry.js +1 -501
- package/dist/commonjs/helpers/toast.js +1 -20
- package/dist/commonjs/i18n/index.js +1 -90
- package/dist/commonjs/i18n/locales/en.json +1 -1140
- package/dist/commonjs/index.js +5 -2168
- package/dist/commonjs/metro.js +6 -468
- package/dist/commonjs/native/NativeInspector.d.ts +1 -0
- package/dist/commonjs/native/NativeInspector.js +1 -415
- package/dist/commonjs/native/NativeNetworkInspector.js +1 -4
- package/dist/commonjs/network.js +1 -13
- package/dist/commonjs/performance.js +1 -29
- package/dist/commonjs/redux.js +1 -20
- package/dist/commonjs/storage.js +1 -14
- package/dist/commonjs/styles/AppColors.js +1 -423
- package/dist/commonjs/styles/AppFonts.js +1 -17
- package/dist/commonjs/styles/common.js +1 -190
- package/dist/commonjs/styles/index.d.ts +6 -0
- package/dist/commonjs/styles/index.js +1 -1589
- package/dist/commonjs/types/enums.d.ts +0 -1
- package/dist/commonjs/types/enums.js +1 -152
- package/dist/commonjs/types/index.js +1 -18
- package/dist/commonjs/types/interfaces.d.ts +2 -2
- package/dist/commonjs/types/interfaces.js +1 -2
- package/dist/esm/analytics.js +1 -2
- package/dist/esm/bundle.js +1 -2
- package/dist/esm/capture.js +1 -32
- package/dist/esm/components/AnalyticsDetail.js +171 -664
- package/dist/esm/components/AnalyticsEventCard.js +77 -335
- package/dist/esm/components/AnalyticsGraph.js +95 -357
- package/dist/esm/components/AnimatedEntrance.js +1 -6
- package/dist/esm/components/AppHeaderLogo.js +7 -94
- package/dist/esm/components/BrandCircleIcon.js +114 -119
- package/dist/esm/components/BrandSquareIcon.js +73 -78
- package/dist/esm/components/CodeSnippet.js +58 -595
- package/dist/esm/components/ConsoleLogCard.js +91 -526
- package/dist/esm/components/CopyButton.js +3 -51
- package/dist/esm/components/DiffViewer.js +22 -48
- package/dist/esm/components/DomainHeader.js +43 -138
- package/dist/esm/components/EmptyState.js +17 -56
- package/dist/esm/components/EndOfListFooter.js +15 -83
- package/dist/esm/components/ErrorBoundary.js +125 -582
- package/dist/esm/components/HeadersSection.js +52 -93
- package/dist/esm/components/HighlightText.js +17 -53
- package/dist/esm/components/Inspector/AboutModal.d.ts +6 -0
- package/dist/esm/components/Inspector/AboutModal.js +243 -0
- package/dist/esm/components/Inspector/AnalyticsFilterModal.js +225 -886
- package/dist/esm/components/Inspector/AnalyticsTab.js +296 -904
- package/dist/esm/components/Inspector/BundleTab.js +1175 -3502
- package/dist/esm/components/Inspector/ConsoleTab.js +113 -488
- package/dist/esm/components/Inspector/CrashDetail.js +236 -747
- package/dist/esm/components/Inspector/CrashFilterModal.js +149 -541
- package/dist/esm/components/Inspector/CrashTab.js +177 -711
- package/dist/esm/components/Inspector/DebuggingTab.js +164 -925
- package/dist/esm/components/Inspector/DeviceInfoTab.js +199 -924
- package/dist/esm/components/Inspector/FabLauncher.js +68 -454
- package/dist/esm/components/Inspector/FeatureUnderDevNotice.js +14 -70
- package/dist/esm/components/Inspector/InspectorContext.js +1 -12
- package/dist/esm/components/Inspector/InspectorHeader.js +282 -1163
- package/dist/esm/components/Inspector/LogDetail.js +235 -1023
- package/dist/esm/components/Inspector/MainScreen.js +78 -323
- package/dist/esm/components/Inspector/MediaGalleryTab.js +143 -650
- package/dist/esm/components/Inspector/MediaPreviewModal.js +138 -613
- package/dist/esm/components/Inspector/NavigationTracker.js +1 -10
- package/dist/esm/components/Inspector/NetworkDetail.js +138 -455
- package/dist/esm/components/Inspector/NetworkFilterModal.js +122 -597
- package/dist/esm/components/Inspector/NetworkTab.js +125 -517
- package/dist/esm/components/Inspector/NpmStarPrompt.js +58 -434
- package/dist/esm/components/Inspector/NpmUpdateToast.js +45 -281
- package/dist/esm/components/Inspector/PerformanceTab.js +393 -1570
- package/dist/esm/components/Inspector/ReduxDetail.js +307 -1170
- package/dist/esm/components/Inspector/ReduxTab.js +144 -722
- package/dist/esm/components/Inspector/SettingsPanel.js +643 -3985
- package/dist/esm/components/Inspector/SkeletonPlaceholder.js +30 -163
- package/dist/esm/components/Inspector/StorageTab.js +172 -866
- package/dist/esm/components/Inspector/TabBar.js +45 -305
- package/dist/esm/components/Inspector/UpdateAvailableModal.js +80 -418
- package/dist/esm/components/JsonViewer.js +179 -354
- package/dist/esm/components/LogCard.js +93 -565
- package/dist/esm/components/LogSyntaxHighlighter.js +11 -123
- package/dist/esm/components/MetaAccordion.js +136 -267
- package/dist/esm/components/MiniBarChart.js +3 -18
- package/dist/esm/components/MiniLineChart.js +3 -20
- package/dist/esm/components/NetworkIcons.d.ts +13 -0
- package/dist/esm/components/NetworkIcons.js +523 -838
- package/dist/esm/components/QRCodeView.js +8 -45
- package/dist/esm/components/SectionHeader.js +22 -39
- package/dist/esm/components/SegmentedTabs.js +8 -58
- package/dist/esm/components/SkeletonPlaceholder.js +30 -163
- package/dist/esm/components/Slider.js +24 -213
- package/dist/esm/components/SourcePageCard.js +65 -86
- package/dist/esm/components/Toast.js +10 -117
- package/dist/esm/components/TouchableScale.js +3 -19
- package/dist/esm/components/TreeNode.js +58 -95
- package/dist/esm/console.js +1 -2
- package/dist/esm/constants/index.js +1 -28
- package/dist/esm/constants/telemetryConfig.js +1 -3
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/crash.js +1 -2
- package/dist/esm/customHooks/analyticsLogger.js +1 -230
- package/dist/esm/customHooks/bundleAnalyzer.js +1 -944
- package/dist/esm/customHooks/consoleLogger.js +6 -432
- package/dist/esm/customHooks/crashHandler.js +7 -630
- package/dist/esm/customHooks/logFilters.js +1 -20
- package/dist/esm/customHooks/networkLogger.js +2 -519
- package/dist/esm/customHooks/performanceTracker.js +63 -723
- package/dist/esm/customHooks/reduxLogger.js +2 -293
- package/dist/esm/customHooks/storageInspector.js +1 -418
- package/dist/esm/customHooks/useAccordion.js +1 -16
- package/dist/esm/decorators/index.js +1 -95
- package/dist/esm/helpers/gaAnalyticsRegistry.js +1 -143
- package/dist/esm/helpers/index.d.ts +1 -0
- package/dist/esm/helpers/index.js +8 -861
- package/dist/esm/helpers/memoryManager.js +1 -91
- package/dist/esm/helpers/qrGenerator.js +1 -364
- package/dist/esm/helpers/remoteConfig.js +1 -160
- package/dist/esm/helpers/searchQueryParser.js +1 -59
- package/dist/esm/helpers/settingsStore.js +1 -134
- package/dist/esm/helpers/telemetry.js +1 -489
- package/dist/esm/helpers/toast.js +1 -15
- package/dist/esm/i18n/index.js +1 -78
- package/dist/esm/i18n/locales/en.json +1 -1140
- package/dist/esm/index.js +7 -1982
- package/dist/esm/metro.js +6 -459
- package/dist/esm/native/NativeInspector.d.ts +1 -0
- package/dist/esm/native/NativeInspector.js +1 -382
- package/dist/esm/native/NativeNetworkInspector.js +1 -2
- package/dist/esm/network.js +1 -1
- package/dist/esm/performance.js +1 -2
- package/dist/esm/redux.js +1 -1
- package/dist/esm/storage.js +1 -1
- package/dist/esm/styles/AppColors.js +1 -417
- package/dist/esm/styles/AppFonts.js +1 -13
- package/dist/esm/styles/common.js +1 -186
- package/dist/esm/styles/index.d.ts +6 -0
- package/dist/esm/styles/index.js +1 -1551
- package/dist/esm/types/enums.d.ts +0 -1
- package/dist/esm/types/enums.js +1 -149
- package/dist/esm/types/index.js +1 -2
- package/dist/esm/types/interfaces.d.ts +2 -2
- package/dist/esm/types/interfaces.js +1 -1
- package/ios/NetworkInspectorModule.mm +60 -12
- package/package.json +5 -3
- package/src/native/NativeInspector.ts +18 -0
- package/dist/commonjs/components/Inspector/FeedbackModal.d.ts +0 -7
- package/dist/commonjs/components/Inspector/FeedbackModal.js +0 -552
- package/dist/esm/components/Inspector/FeedbackModal.d.ts +0 -7
- package/dist/esm/components/Inspector/FeedbackModal.js +0 -515
- package/src/analytics.ts +0 -35
- package/src/bundle.ts +0 -25
- package/src/capture.ts +0 -109
- package/src/components/AnalyticsDetail.tsx +0 -870
- package/src/components/AnalyticsEventCard.tsx +0 -444
- package/src/components/AnalyticsGraph.tsx +0 -583
- package/src/components/AnimatedEntrance.tsx +0 -20
- package/src/components/AppHeaderLogo.tsx +0 -143
- package/src/components/BrandCircleIcon.tsx +0 -144
- package/src/components/BrandSquareIcon.tsx +0 -184
- package/src/components/CodeSnippet.tsx +0 -725
- package/src/components/ConsoleLogCard.tsx +0 -679
- package/src/components/CopyButton.tsx +0 -87
- package/src/components/DiffViewer.tsx +0 -82
- package/src/components/DomainHeader.tsx +0 -224
- package/src/components/EmptyState.tsx +0 -97
- package/src/components/EndOfListFooter.tsx +0 -100
- package/src/components/ErrorBoundary.tsx +0 -688
- package/src/components/HeadersSection.tsx +0 -172
- package/src/components/HighlightText.tsx +0 -100
- package/src/components/Inspector/AnalyticsFilterModal.tsx +0 -1250
- package/src/components/Inspector/AnalyticsTab.tsx +0 -1362
- package/src/components/Inspector/BundleTab.tsx +0 -4768
- package/src/components/Inspector/ConsoleTab.tsx +0 -726
- package/src/components/Inspector/CrashDetail.tsx +0 -997
- package/src/components/Inspector/CrashFilterModal.tsx +0 -721
- package/src/components/Inspector/CrashTab.tsx +0 -933
- package/src/components/Inspector/DebuggingTab.tsx +0 -1103
- package/src/components/Inspector/DeviceInfoTab.tsx +0 -1397
- package/src/components/Inspector/FabLauncher.tsx +0 -590
- package/src/components/Inspector/FeatureUnderDevNotice.tsx +0 -94
- package/src/components/Inspector/FeedbackModal.tsx +0 -626
- package/src/components/Inspector/InspectorContext.tsx +0 -28
- package/src/components/Inspector/InspectorHeader.tsx +0 -1583
- package/src/components/Inspector/LogDetail.tsx +0 -1431
- package/src/components/Inspector/MainScreen.tsx +0 -460
- package/src/components/Inspector/MediaGalleryTab.tsx +0 -829
- package/src/components/Inspector/MediaPreviewModal.tsx +0 -783
- package/src/components/Inspector/NavigationTracker.tsx +0 -13
- package/src/components/Inspector/NetworkDetail.tsx +0 -778
- package/src/components/Inspector/NetworkFilterModal.tsx +0 -730
- package/src/components/Inspector/NetworkTab.tsx +0 -820
- package/src/components/Inspector/NpmStarPrompt.tsx +0 -532
- package/src/components/Inspector/NpmUpdateToast.tsx +0 -387
- package/src/components/Inspector/PerformanceTab.tsx +0 -1967
- package/src/components/Inspector/ReduxDetail.tsx +0 -1651
- package/src/components/Inspector/ReduxTab.tsx +0 -987
- package/src/components/Inspector/SettingsPanel.tsx +0 -5136
- package/src/components/Inspector/SkeletonPlaceholder.tsx +0 -206
- package/src/components/Inspector/StorageTab.tsx +0 -1159
- package/src/components/Inspector/TabBar.tsx +0 -431
- package/src/components/Inspector/UpdateAvailableModal.tsx +0 -555
- package/src/components/JsonViewer.tsx +0 -549
- package/src/components/LogCard.tsx +0 -694
- package/src/components/LogSyntaxHighlighter.tsx +0 -178
- package/src/components/MetaAccordion.tsx +0 -355
- package/src/components/MiniBarChart.tsx +0 -42
- package/src/components/MiniLineChart.tsx +0 -33
- package/src/components/NetworkIcons.tsx +0 -2655
- package/src/components/QRCodeView.tsx +0 -75
- package/src/components/SectionHeader.tsx +0 -101
- package/src/components/SegmentedTabs.tsx +0 -84
- package/src/components/SkeletonPlaceholder.tsx +0 -206
- package/src/components/Slider.tsx +0 -300
- package/src/components/SourcePageCard.tsx +0 -150
- package/src/components/Toast.tsx +0 -131
- package/src/components/TouchableScale.tsx +0 -61
- package/src/components/TreeNode.tsx +0 -171
- package/src/console.ts +0 -24
- package/src/constants/index.ts +0 -41
- package/src/constants/telemetryConfig.ts +0 -4
- package/src/constants/version.ts +0 -3
- package/src/crash.ts +0 -32
- package/src/customHooks/analyticsLogger.ts +0 -336
- package/src/customHooks/bundleAnalyzer.ts +0 -1256
- package/src/customHooks/consoleLogger.ts +0 -530
- package/src/customHooks/crashHandler.ts +0 -944
- package/src/customHooks/logFilters.ts +0 -32
- package/src/customHooks/networkLogger.ts +0 -624
- package/src/customHooks/performanceTracker.ts +0 -1014
- package/src/customHooks/reduxLogger.ts +0 -406
- package/src/customHooks/storageInspector.ts +0 -513
- package/src/customHooks/useAccordion.tsx +0 -27
- package/src/decorators/index.ts +0 -184
- package/src/helpers/gaAnalyticsRegistry.ts +0 -204
- package/src/helpers/index.ts +0 -1092
- package/src/helpers/memoryManager.ts +0 -138
- package/src/helpers/qrGenerator.ts +0 -430
- package/src/helpers/remoteConfig.ts +0 -212
- package/src/helpers/searchQueryParser.ts +0 -84
- package/src/helpers/settingsStore.ts +0 -171
- package/src/helpers/telemetry.ts +0 -568
- package/src/helpers/toast.ts +0 -17
- package/src/i18n/index.ts +0 -104
- package/src/i18n/locales/en.json +0 -1141
- package/src/index.tsx +0 -2650
- package/src/metro.ts +0 -598
- package/src/network.ts +0 -22
- package/src/performance.ts +0 -38
- package/src/redux.ts +0 -23
- package/src/storage.ts +0 -18
- package/src/styles/AppColors.ts +0 -455
- package/src/styles/AppFonts.ts +0 -26
- package/src/styles/common.ts +0 -209
- package/src/styles/index.ts +0 -1606
- package/src/types/enums.ts +0 -210
- package/src/types/index.ts +0 -34
- package/src/types/interfaces.ts +0 -535
|
@@ -1,306 +1,131 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
const react_1 = __importStar(require("react"));
|
|
40
|
-
const react_native_1 = require("react-native");
|
|
41
|
-
const CopyButton_1 = __importDefault(require("./CopyButton"));
|
|
42
|
-
const JsonViewer_1 = __importDefault(require("./JsonViewer"));
|
|
43
|
-
const SegmentedTabs_1 = __importDefault(require("./SegmentedTabs"));
|
|
44
|
-
const HighlightText_1 = __importDefault(require("./HighlightText"));
|
|
45
|
-
const AnimatedEntrance_1 = __importDefault(require("./AnimatedEntrance"));
|
|
46
|
-
const AppFonts_1 = require("../styles/AppFonts");
|
|
47
|
-
const AppColors_1 = require("../styles/AppColors");
|
|
48
|
-
const helpers_1 = require("../helpers");
|
|
49
|
-
const gaAnalyticsRegistry_1 = require("../helpers/gaAnalyticsRegistry");
|
|
50
|
-
const i18n_1 = require("../i18n");
|
|
51
|
-
const NetworkIcons_1 = require("./NetworkIcons");
|
|
52
|
-
const AnalyticsDetail = ({ event, }) => {
|
|
53
|
-
const { t } = (0, i18n_1.useTranslation)();
|
|
54
|
-
const [activeViewTab, setActiveViewTab] = (0, react_1.useState)('overview');
|
|
55
|
-
const [paramSearch, setParamSearch] = (0, react_1.useState)('');
|
|
56
|
-
const params = (0, react_1.useMemo)(() => event.params ?? {}, [event.params]);
|
|
57
|
-
const userProperties = (0, react_1.useMemo)(() => event.userProperties ?? {}, [event.userProperties]);
|
|
58
|
-
const paramKeys = (0, react_1.useMemo)(() => Object.keys(params), [params]);
|
|
59
|
-
const userPropKeys = (0, react_1.useMemo)(() => Object.keys(userProperties), [userProperties]);
|
|
60
|
-
const category = (0, react_1.useMemo)(() => (0, gaAnalyticsRegistry_1.getEventCategory)(event.name, params), [event.name, params]);
|
|
61
|
-
const fullJsonData = (0, react_1.useMemo)(() => ({
|
|
62
|
-
name: event.name,
|
|
63
|
-
timestamp: event.timestamp,
|
|
64
|
-
source: event.source,
|
|
65
|
-
...(event.screenName ? { screenName: event.screenName } : {}),
|
|
66
|
-
...(event.screenClass ? { screenClass: event.screenClass } : {}),
|
|
67
|
-
...(event.userId ? { userId: event.userId } : {}),
|
|
68
|
-
...(event.sessionId ? { sessionId: event.sessionId } : {}),
|
|
69
|
-
...(event.trackingId ? { trackingId: event.trackingId } : {}),
|
|
70
|
-
params,
|
|
71
|
-
...(userPropKeys.length > 0 ? { userProperties } : {}),
|
|
72
|
-
}), [event, params, userPropKeys.length, userProperties]);
|
|
73
|
-
const revenueInfo = (0, react_1.useMemo)(() => {
|
|
74
|
-
const val = params.value ?? params.price;
|
|
75
|
-
const currency = params.currency ?? 'USD';
|
|
76
|
-
if (val !== undefined && val !== null && !isNaN(Number(val))) {
|
|
77
|
-
return {
|
|
78
|
-
amount: Number(val).toFixed(2),
|
|
79
|
-
currency: String(currency).toUpperCase(),
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
return null;
|
|
83
|
-
}, [params]);
|
|
84
|
-
const itemsCount = (0, react_1.useMemo)(() => {
|
|
85
|
-
if (Array.isArray(params.items)) {
|
|
86
|
-
return params.items.length;
|
|
87
|
-
}
|
|
88
|
-
return null;
|
|
89
|
-
}, [params.items]);
|
|
90
|
-
const screenContext = (0, react_1.useMemo)(() => {
|
|
91
|
-
return (event.screenName ||
|
|
92
|
-
params.firebase_screen ||
|
|
93
|
-
params.screen_name ||
|
|
94
|
-
params.page_title ||
|
|
95
|
-
event.screenClass ||
|
|
96
|
-
params.firebase_screen_class);
|
|
97
|
-
}, [event.screenName, event.screenClass, params]);
|
|
98
|
-
const filteredParamEntries = (0, react_1.useMemo)(() => {
|
|
99
|
-
const entries = Object.entries(params);
|
|
100
|
-
if (!paramSearch.trim())
|
|
101
|
-
return entries;
|
|
102
|
-
const q = paramSearch.toLowerCase();
|
|
103
|
-
return entries.filter(([k, v]) => {
|
|
104
|
-
const valStr = typeof v === 'object' ? JSON.stringify(v) : String(v);
|
|
105
|
-
return k.toLowerCase().includes(q) || valStr.toLowerCase().includes(q);
|
|
106
|
-
});
|
|
107
|
-
}, [params, paramSearch]);
|
|
108
|
-
const catMeta = (0, react_1.useMemo)(() => {
|
|
109
|
-
switch (category) {
|
|
110
|
-
case 'ecommerce':
|
|
111
|
-
return {
|
|
112
|
-
label: t('analytics.ecommerceCategory'),
|
|
113
|
-
color: AppColors_1.AppColors.amber700,
|
|
114
|
-
bg: AppColors_1.AppColors.amber100,
|
|
115
|
-
border: AppColors_1.AppColors.amber200,
|
|
116
|
-
icon: (color) => <NetworkIcons_1.CartIcon color={color} size={11}/>,
|
|
117
|
-
};
|
|
118
|
-
case 'page_view':
|
|
119
|
-
return {
|
|
120
|
-
label: t('analytics.screensCategory'),
|
|
121
|
-
color: AppColors_1.AppColors.sky600,
|
|
122
|
-
bg: AppColors_1.AppColors.sky100,
|
|
123
|
-
border: AppColors_1.AppColors.sky400,
|
|
124
|
-
icon: (color) => <NetworkIcons_1.GlobeIcon color={color} size={11}/>,
|
|
125
|
-
};
|
|
126
|
-
case 'system':
|
|
127
|
-
return {
|
|
128
|
-
label: t('analytics.systemCategory'),
|
|
129
|
-
color: AppColors_1.AppColors.purple,
|
|
130
|
-
bg: AppColors_1.AppColors.purple100,
|
|
131
|
-
border: AppColors_1.AppColors.purple200,
|
|
132
|
-
icon: (color) => <NetworkIcons_1.BoltIcon color={color} size={11}/>,
|
|
133
|
-
};
|
|
134
|
-
default:
|
|
135
|
-
return {
|
|
136
|
-
label: t('analytics.customCategory'),
|
|
137
|
-
color: AppColors_1.AppColors.brandPurple,
|
|
138
|
-
bg: AppColors_1.AppColors.purple100,
|
|
139
|
-
border: AppColors_1.AppColors.purple200,
|
|
140
|
-
icon: (color) => <NetworkIcons_1.SparkleIcon color={color} size={11}/>,
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
}, [category, t]);
|
|
144
|
-
const viewTabs = [
|
|
145
|
-
{
|
|
146
|
-
key: 'overview',
|
|
147
|
-
label: `${t('analytics.overviewTab')} (${paramKeys.length})`,
|
|
148
|
-
icon: (isActive) => (<NetworkIcons_1.TableIcon color={isActive ? AppColors_1.AppColors.white : AppColors_1.AppColors.grayText} size={12}/>),
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
key: 'tree',
|
|
152
|
-
label: t('analytics.jsonTreeTab'),
|
|
153
|
-
icon: (isActive) => (<NetworkIcons_1.PrettyIcon color={isActive ? AppColors_1.AppColors.white : AppColors_1.AppColors.grayText} size={12}/>),
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
key: 'raw',
|
|
157
|
-
label: t('analytics.rawPayloadTab'),
|
|
158
|
-
icon: (isActive) => (<NetworkIcons_1.RawIcon color={isActive ? AppColors_1.AppColors.white : AppColors_1.AppColors.grayText} size={12}/>),
|
|
159
|
-
},
|
|
160
|
-
];
|
|
161
|
-
return (<react_native_1.ScrollView style={detailStyles.scroll} contentContainerStyle={detailStyles.content} showsVerticalScrollIndicator contentInsetAdjustmentBehavior="never" automaticallyAdjustContentInsets={false}>
|
|
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]),V=[{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}>
|
|
162
2
|
|
|
163
3
|
|
|
164
4
|
<react_native_1.View style={detailStyles.heroCard}>
|
|
165
5
|
|
|
166
6
|
<react_native_1.View style={detailStyles.heroTopRow}>
|
|
167
|
-
<react_native_1.View style={{
|
|
7
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:6,flexWrap:"wrap",flex:1}}>
|
|
168
8
|
|
|
169
|
-
<react_native_1.View style={
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
? { backgroundColor: AppColors_1.AppColors.amberBg, borderColor: AppColors_1.AppColors.amberBorder }
|
|
173
|
-
: { backgroundColor: AppColors_1.AppColors.purpleBg, borderColor: AppColors_1.AppColors.purpleBorder },
|
|
174
|
-
]}>
|
|
175
|
-
<react_native_1.View style={[
|
|
176
|
-
detailStyles.sourceDot,
|
|
177
|
-
{
|
|
178
|
-
backgroundColor: event.source === 'firebase'
|
|
179
|
-
? AppColors_1.AppColors.firebaseOrange
|
|
180
|
-
: AppColors_1.AppColors.purple,
|
|
181
|
-
},
|
|
182
|
-
]}/>
|
|
183
|
-
<react_native_1.Text style={[
|
|
184
|
-
detailStyles.sourceBadgeText,
|
|
185
|
-
{
|
|
186
|
-
color: event.source === 'firebase'
|
|
187
|
-
? AppColors_1.AppColors.amber800Warm
|
|
188
|
-
: AppColors_1.AppColors.purple,
|
|
189
|
-
},
|
|
190
|
-
]}>
|
|
191
|
-
{event.source === 'firebase' ? t('analytics.sourceFirebase') : t('analytics.sourceCustom')}
|
|
9
|
+
<react_native_1.View style={detailStyles.idBadge}>
|
|
10
|
+
<react_native_1.Text style={detailStyles.idBadgeText}>
|
|
11
|
+
#{e.id!=null?e.id+1:1}
|
|
192
12
|
</react_native_1.Text>
|
|
193
13
|
</react_native_1.View>
|
|
194
14
|
|
|
195
15
|
|
|
196
|
-
<react_native_1.View style={[
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
16
|
+
<react_native_1.View style={[detailStyles.sourceBadge,e.source==="firebase"?{backgroundColor:AppColors_1.AppColors.amberBg,borderColor:AppColors_1.AppColors.amberBorder}:{backgroundColor:AppColors_1.AppColors.purpleBg,borderColor:AppColors_1.AppColors.purpleBorder}]}>
|
|
17
|
+
<react_native_1.View style={[detailStyles.sourceDot,{backgroundColor:e.source==="firebase"?AppColors_1.AppColors.firebaseOrange:AppColors_1.AppColors.purple}]}/>
|
|
18
|
+
<react_native_1.Text style={[detailStyles.sourceBadgeText,{color:e.source==="firebase"?AppColors_1.AppColors.amber800Warm:AppColors_1.AppColors.purple}]}>
|
|
19
|
+
{e.source==="firebase"?r("analytics.sourceFirebase"):r("analytics.sourceCustom")}
|
|
20
|
+
</react_native_1.Text>
|
|
21
|
+
</react_native_1.View>
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
<react_native_1.View style={[detailStyles.catBadge,{backgroundColor:p.bg,borderColor:p.border}]}>
|
|
25
|
+
{p.icon(p.color)}
|
|
26
|
+
<react_native_1.Text style={[detailStyles.catBadgeText,{color:p.color}]}>
|
|
27
|
+
{p.label}
|
|
203
28
|
</react_native_1.Text>
|
|
204
29
|
</react_native_1.View>
|
|
205
30
|
</react_native_1.View>
|
|
206
31
|
|
|
207
32
|
|
|
208
|
-
<CopyButton_1.default value={JSON.stringify(
|
|
33
|
+
<CopyButton_1.default value={JSON.stringify(y,null,2)}label={r("analytics.eventDetails")}/>
|
|
209
34
|
</react_native_1.View>
|
|
210
35
|
|
|
211
36
|
|
|
212
37
|
<react_native_1.View style={detailStyles.titleRow}>
|
|
213
|
-
<react_native_1.Text style={detailStyles.eventTitle}
|
|
214
|
-
{
|
|
38
|
+
<react_native_1.Text style={detailStyles.eventTitle}selectable numberOfLines={2}>
|
|
39
|
+
{e.name}
|
|
215
40
|
</react_native_1.Text>
|
|
216
41
|
</react_native_1.View>
|
|
217
42
|
|
|
218
43
|
|
|
219
44
|
<react_native_1.View style={detailStyles.metaRow}>
|
|
220
45
|
<react_native_1.View style={detailStyles.timePill}>
|
|
221
|
-
<NetworkIcons_1.ClockIcon color={AppColors_1.AppColors.purple}
|
|
46
|
+
<NetworkIcons_1.ClockIcon color={AppColors_1.AppColors.purple}size={11}/>
|
|
222
47
|
<react_native_1.Text style={detailStyles.timeText}>
|
|
223
|
-
{(0,
|
|
48
|
+
{(0,helpers_1.formatDateTime)(e.timestamp)}
|
|
224
49
|
</react_native_1.Text>
|
|
225
50
|
</react_native_1.View>
|
|
226
51
|
|
|
227
|
-
{
|
|
228
|
-
<NetworkIcons_1.PinIcon color={AppColors_1.AppColors.sky600}
|
|
229
|
-
<react_native_1.Text style={detailStyles.screenText}
|
|
230
|
-
{String(
|
|
52
|
+
{x&&<react_native_1.View style={detailStyles.screenPill}>
|
|
53
|
+
<NetworkIcons_1.PinIcon color={AppColors_1.AppColors.sky600}size={11}/>
|
|
54
|
+
<react_native_1.Text style={detailStyles.screenText}numberOfLines={1}>
|
|
55
|
+
{String(x)}
|
|
231
56
|
</react_native_1.Text>
|
|
232
|
-
</react_native_1.View>
|
|
57
|
+
</react_native_1.View>}
|
|
233
58
|
</react_native_1.View>
|
|
234
59
|
|
|
235
60
|
|
|
236
61
|
<react_native_1.View style={detailStyles.metricsBar}>
|
|
237
62
|
<react_native_1.View style={detailStyles.metricPill}>
|
|
238
63
|
<react_native_1.Text style={detailStyles.metricLabel}>Params:</react_native_1.Text>
|
|
239
|
-
<react_native_1.Text style={detailStyles.metricValue}>{
|
|
64
|
+
<react_native_1.Text style={detailStyles.metricValue}>{u.length}</react_native_1.Text>
|
|
240
65
|
</react_native_1.View>
|
|
241
66
|
|
|
242
|
-
{
|
|
67
|
+
{s.length>0&&<react_native_1.View style={detailStyles.metricPill}>
|
|
243
68
|
<react_native_1.Text style={detailStyles.metricLabel}>User Props:</react_native_1.Text>
|
|
244
|
-
<react_native_1.Text style={detailStyles.metricValue}>{
|
|
245
|
-
</react_native_1.View>
|
|
69
|
+
<react_native_1.Text style={detailStyles.metricValue}>{s.length}</react_native_1.Text>
|
|
70
|
+
</react_native_1.View>}
|
|
246
71
|
|
|
247
72
|
<react_native_1.View style={detailStyles.metricPill}>
|
|
248
73
|
<react_native_1.Text style={detailStyles.metricLabel}>Size:</react_native_1.Text>
|
|
249
|
-
<react_native_1.Text style={detailStyles.metricValue}>{(0,
|
|
74
|
+
<react_native_1.Text style={detailStyles.metricValue}>{(0,helpers_1.getSize)(y)}</react_native_1.Text>
|
|
250
75
|
</react_native_1.View>
|
|
251
76
|
|
|
252
|
-
{
|
|
253
|
-
<NetworkIcons_1.MoneyIcon color={AppColors_1.AppColors.emerald600}
|
|
77
|
+
{m&&<react_native_1.View style={detailStyles.revenuePill}>
|
|
78
|
+
<NetworkIcons_1.MoneyIcon color={AppColors_1.AppColors.emerald600}size={11}/>
|
|
254
79
|
<react_native_1.Text style={detailStyles.revenueValue}>
|
|
255
|
-
${
|
|
80
|
+
${m.amount} {m.currency}
|
|
256
81
|
</react_native_1.Text>
|
|
257
|
-
</react_native_1.View>
|
|
82
|
+
</react_native_1.View>}
|
|
258
83
|
|
|
259
|
-
{
|
|
260
|
-
<NetworkIcons_1.PackageIcon size={12}
|
|
84
|
+
{f!==null&&<react_native_1.View style={detailStyles.itemsPill}>
|
|
85
|
+
<NetworkIcons_1.PackageIcon size={12}color="#1D4ED8"/>
|
|
261
86
|
<react_native_1.Text style={detailStyles.itemsValue}>
|
|
262
|
-
{
|
|
87
|
+
{f} items
|
|
263
88
|
</react_native_1.Text>
|
|
264
|
-
</react_native_1.View>
|
|
89
|
+
</react_native_1.View>}
|
|
265
90
|
</react_native_1.View>
|
|
266
91
|
</react_native_1.View>
|
|
267
92
|
|
|
268
93
|
|
|
269
94
|
<react_native_1.View style={detailStyles.tabsWrap}>
|
|
270
|
-
<SegmentedTabs_1.default tabs={
|
|
95
|
+
<SegmentedTabs_1.default tabs={V}activeKey={i}onChange={t=>l(t)}/>
|
|
271
96
|
</react_native_1.View>
|
|
272
97
|
|
|
273
98
|
|
|
274
|
-
{
|
|
99
|
+
{i==="overview"&&<react_native_1.View style={detailStyles.tabContent}>
|
|
275
100
|
|
|
276
|
-
{(
|
|
101
|
+
{(e.userId||e.sessionId||e.trackingId)&&<react_native_1.View style={detailStyles.sectionCard}>
|
|
277
102
|
<react_native_1.View style={detailStyles.sectionHeader}>
|
|
278
|
-
<NetworkIcons_1.LayersIcon color={AppColors_1.AppColors.purple}
|
|
103
|
+
<NetworkIcons_1.LayersIcon color={AppColors_1.AppColors.purple}size={12}/>
|
|
279
104
|
<react_native_1.Text style={detailStyles.sectionTitle}>SESSION & IDENTITY</react_native_1.Text>
|
|
280
105
|
</react_native_1.View>
|
|
281
106
|
<react_native_1.View style={detailStyles.sectionBody}>
|
|
282
|
-
{
|
|
107
|
+
{e.userId&&<react_native_1.View style={detailStyles.kvRow}>
|
|
283
108
|
<react_native_1.Text style={detailStyles.kvKey}>User ID:</react_native_1.Text>
|
|
284
|
-
<react_native_1.Text style={detailStyles.kvVal}
|
|
285
|
-
</react_native_1.View>
|
|
286
|
-
{
|
|
109
|
+
<react_native_1.Text style={detailStyles.kvVal}selectable>{e.userId}</react_native_1.Text>
|
|
110
|
+
</react_native_1.View>}
|
|
111
|
+
{e.sessionId&&<react_native_1.View style={detailStyles.kvRow}>
|
|
287
112
|
<react_native_1.Text style={detailStyles.kvKey}>Session ID:</react_native_1.Text>
|
|
288
|
-
<react_native_1.Text style={detailStyles.kvVal}
|
|
289
|
-
</react_native_1.View>
|
|
290
|
-
{
|
|
113
|
+
<react_native_1.Text style={detailStyles.kvVal}selectable>{e.sessionId}</react_native_1.Text>
|
|
114
|
+
</react_native_1.View>}
|
|
115
|
+
{e.trackingId&&<react_native_1.View style={detailStyles.kvRow}>
|
|
291
116
|
<react_native_1.Text style={detailStyles.kvKey}>Tracking ID:</react_native_1.Text>
|
|
292
|
-
<react_native_1.Text style={detailStyles.kvVal}
|
|
293
|
-
</react_native_1.View>
|
|
117
|
+
<react_native_1.Text style={detailStyles.kvVal}selectable>{e.trackingId}</react_native_1.Text>
|
|
118
|
+
</react_native_1.View>}
|
|
294
119
|
</react_native_1.View>
|
|
295
|
-
</react_native_1.View>
|
|
120
|
+
</react_native_1.View>}
|
|
296
121
|
|
|
297
122
|
|
|
298
123
|
<react_native_1.View style={detailStyles.sectionCard}>
|
|
299
124
|
<react_native_1.View style={detailStyles.sectionHeaderBetween}>
|
|
300
|
-
<react_native_1.View style={{
|
|
301
|
-
<NetworkIcons_1.TableIcon color={AppColors_1.AppColors.brandPurple}
|
|
125
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:6}}>
|
|
126
|
+
<NetworkIcons_1.TableIcon color={AppColors_1.AppColors.brandPurple}size={12}/>
|
|
302
127
|
<react_native_1.Text style={detailStyles.sectionTitle}>
|
|
303
|
-
EVENT PARAMETERS ({
|
|
128
|
+
EVENT PARAMETERS ({u.length})
|
|
304
129
|
</react_native_1.Text>
|
|
305
130
|
</react_native_1.View>
|
|
306
131
|
<react_native_1.Text style={detailStyles.sectionSubtitle}>
|
|
@@ -309,426 +134,70 @@ const AnalyticsDetail = ({ event, }) => {
|
|
|
309
134
|
</react_native_1.View>
|
|
310
135
|
|
|
311
136
|
|
|
312
|
-
{
|
|
313
|
-
<NetworkIcons_1.SearchIcon color={AppColors_1.AppColors.grayTextWeak}
|
|
314
|
-
<react_native_1.TextInput placeholder="Filter parameters by key or value..."
|
|
315
|
-
{
|
|
316
|
-
<NetworkIcons_1.ClearIcon color={AppColors_1.AppColors.grayTextWeak}
|
|
317
|
-
</react_native_1.Pressable>
|
|
318
|
-
</react_native_1.View>
|
|
319
|
-
|
|
320
|
-
{
|
|
321
|
-
<NetworkIcons_1.DocIcon color={AppColors_1.AppColors.grayTextWeak}
|
|
137
|
+
{u.length>4&&<react_native_1.View style={detailStyles.searchBar}>
|
|
138
|
+
<NetworkIcons_1.SearchIcon color={AppColors_1.AppColors.grayTextWeak}size={13}/>
|
|
139
|
+
<react_native_1.TextInput placeholder="Filter parameters by key or value..."placeholderTextColor={AppColors_1.AppColors.grayTextWeak}value={o}onChangeText={w}style={detailStyles.searchInput}autoCorrect={!1}autoCapitalize="none"/>
|
|
140
|
+
{o.length>0&&<react_native_1.Pressable onPress={()=>w("")}hitSlop={8}>
|
|
141
|
+
<NetworkIcons_1.ClearIcon color={AppColors_1.AppColors.grayTextWeak}size={13}/>
|
|
142
|
+
</react_native_1.Pressable>}
|
|
143
|
+
</react_native_1.View>}
|
|
144
|
+
|
|
145
|
+
{u.length===0?<react_native_1.View style={detailStyles.emptyParamsBox}>
|
|
146
|
+
<NetworkIcons_1.DocIcon color={AppColors_1.AppColors.grayTextWeak}size={16}/>
|
|
322
147
|
<react_native_1.Text style={detailStyles.emptyParamsText}>
|
|
323
148
|
No custom parameters recorded for this event.
|
|
324
149
|
</react_native_1.Text>
|
|
325
|
-
</react_native_1.View
|
|
150
|
+
</react_native_1.View>:h.length===0?<react_native_1.View style={detailStyles.emptyParamsBox}>
|
|
326
151
|
<react_native_1.Text style={detailStyles.emptyParamsText}>
|
|
327
|
-
No parameters matching "{
|
|
152
|
+
No parameters matching "{o}"
|
|
328
153
|
</react_native_1.Text>
|
|
329
|
-
</react_native_1.View
|
|
330
|
-
{
|
|
331
|
-
const isObject = typeof val === 'object' && val !== null;
|
|
332
|
-
const isArray = Array.isArray(val);
|
|
333
|
-
let typeStr = typeof val;
|
|
334
|
-
if (val === null)
|
|
335
|
-
typeStr = 'null';
|
|
336
|
-
else if (isArray)
|
|
337
|
-
typeStr = `array [${val.length}]`;
|
|
338
|
-
else if (isObject)
|
|
339
|
-
typeStr = 'object';
|
|
340
|
-
const valString = isObject ? JSON.stringify(val, null, 2) : String(val);
|
|
341
|
-
const isKeyHighlighted = key === 'value' ||
|
|
342
|
-
key === 'price' ||
|
|
343
|
-
key === 'currency' ||
|
|
344
|
-
key === 'screen_name' ||
|
|
345
|
-
key === 'item_id' ||
|
|
346
|
-
key === 'item_name';
|
|
347
|
-
return (<AnimatedEntrance_1.default key={key} index={pIdx} distance={4}>
|
|
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 T=c?JSON.stringify(n,null,2):String(n),A=t==="value"||t==="price"||t==="currency"||t==="screen_name"||t==="item_id"||t==="item_name";return<AnimatedEntrance_1.default key={t}index={_}distance={4}>
|
|
348
156
|
<react_native_1.View style={detailStyles.paramCard}>
|
|
349
157
|
|
|
350
158
|
<react_native_1.View style={detailStyles.paramCardHeader}>
|
|
351
|
-
<react_native_1.View style={{
|
|
352
|
-
<HighlightText_1.default text={
|
|
353
|
-
detailStyles.paramKeyText,
|
|
354
|
-
isKeyHighlighted && detailStyles.paramKeyHighlighted,
|
|
355
|
-
]} highlightStyle={detailStyles.highlight}/>
|
|
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,A&&detailStyles.paramKeyHighlighted]}highlightStyle={detailStyles.highlight}/>
|
|
356
161
|
<react_native_1.View style={detailStyles.typeBadge}>
|
|
357
162
|
<react_native_1.Text style={detailStyles.typeBadgeText}>
|
|
358
|
-
{
|
|
163
|
+
{g.toUpperCase()}
|
|
359
164
|
</react_native_1.Text>
|
|
360
165
|
</react_native_1.View>
|
|
361
166
|
</react_native_1.View>
|
|
362
167
|
|
|
363
|
-
<CopyButton_1.default value={
|
|
168
|
+
<CopyButton_1.default value={T}label={t}/>
|
|
364
169
|
</react_native_1.View>
|
|
365
170
|
|
|
366
171
|
|
|
367
172
|
<react_native_1.View style={detailStyles.paramValBox}>
|
|
368
|
-
{
|
|
173
|
+
{c?<JsonViewer_1.default data={n}search={o}hideTabs wrap/>:<HighlightText_1.default text={T}search={o}style={detailStyles.paramValText}highlightStyle={detailStyles.highlight}selectable/>}
|
|
369
174
|
</react_native_1.View>
|
|
370
175
|
</react_native_1.View>
|
|
371
|
-
</AnimatedEntrance_1.default>)
|
|
372
|
-
|
|
373
|
-
</react_native_1.View>)}
|
|
176
|
+
</AnimatedEntrance_1.default>})}
|
|
177
|
+
</react_native_1.View>}
|
|
374
178
|
</react_native_1.View>
|
|
375
179
|
|
|
376
180
|
|
|
377
|
-
{
|
|
181
|
+
{s.length>0&&<react_native_1.View style={detailStyles.sectionCard}>
|
|
378
182
|
<react_native_1.View style={detailStyles.sectionHeader}>
|
|
379
|
-
<NetworkIcons_1.SparkleIcon color={AppColors_1.AppColors.purple}
|
|
183
|
+
<NetworkIcons_1.SparkleIcon color={AppColors_1.AppColors.purple}size={12}/>
|
|
380
184
|
<react_native_1.Text style={detailStyles.sectionTitle}>
|
|
381
|
-
USER PROPERTIES SNAPSHOT ({
|
|
185
|
+
USER PROPERTIES SNAPSHOT ({s.length})
|
|
382
186
|
</react_native_1.Text>
|
|
383
187
|
</react_native_1.View>
|
|
384
188
|
<react_native_1.View style={detailStyles.sectionBody}>
|
|
385
|
-
{
|
|
386
|
-
<react_native_1.Text style={detailStyles.kvKey}>{
|
|
387
|
-
<react_native_1.Text style={detailStyles.kvVal}
|
|
388
|
-
{String(
|
|
189
|
+
{s.map(t=><react_native_1.View key={t}style={detailStyles.kvRow}>
|
|
190
|
+
<react_native_1.Text style={detailStyles.kvKey}>{t}:</react_native_1.Text>
|
|
191
|
+
<react_native_1.Text style={detailStyles.kvVal}selectable>
|
|
192
|
+
{String(d[t])}
|
|
389
193
|
</react_native_1.Text>
|
|
390
|
-
</react_native_1.View>)
|
|
194
|
+
</react_native_1.View>)}
|
|
391
195
|
</react_native_1.View>
|
|
392
|
-
</react_native_1.View>
|
|
393
|
-
</react_native_1.View>
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
{activeViewTab === 'tree' && (<react_native_1.View style={detailStyles.jsonContainer}>
|
|
397
|
-
<JsonViewer_1.default data={fullJsonData} defaultExpandDepth={1} mode="pretty" fullHeight/>
|
|
398
|
-
</react_native_1.View>)}
|
|
196
|
+
</react_native_1.View>}
|
|
197
|
+
</react_native_1.View>}
|
|
399
198
|
|
|
400
199
|
|
|
401
|
-
{
|
|
402
|
-
<JsonViewer_1.default data={
|
|
403
|
-
</react_native_1.View>
|
|
404
|
-
</react_native_1.ScrollView>);
|
|
405
|
-
};
|
|
406
|
-
const detailStyles = react_native_1.StyleSheet.create({
|
|
407
|
-
scroll: {
|
|
408
|
-
flex: 1,
|
|
409
|
-
backgroundColor: AppColors_1.AppColors.grayBackground,
|
|
410
|
-
},
|
|
411
|
-
content: {
|
|
412
|
-
paddingTop: 12,
|
|
413
|
-
paddingBottom: 40,
|
|
414
|
-
paddingHorizontal: 12,
|
|
415
|
-
},
|
|
416
|
-
heroCard: {
|
|
417
|
-
backgroundColor: AppColors_1.AppColors.white,
|
|
418
|
-
borderRadius: 12,
|
|
419
|
-
padding: 14,
|
|
420
|
-
borderWidth: 1,
|
|
421
|
-
borderColor: AppColors_1.AppColors.dividerColor,
|
|
422
|
-
shadowColor: AppColors_1.AppColors.primaryBlack,
|
|
423
|
-
shadowOffset: { width: 0, height: 1 },
|
|
424
|
-
shadowOpacity: 0.04,
|
|
425
|
-
shadowRadius: 4,
|
|
426
|
-
elevation: 2,
|
|
427
|
-
marginBottom: 12,
|
|
428
|
-
},
|
|
429
|
-
heroTopRow: {
|
|
430
|
-
flexDirection: 'row',
|
|
431
|
-
alignItems: 'center',
|
|
432
|
-
justifyContent: 'space-between',
|
|
433
|
-
marginBottom: 10,
|
|
434
|
-
},
|
|
435
|
-
sourceBadge: {
|
|
436
|
-
flexDirection: 'row',
|
|
437
|
-
alignItems: 'center',
|
|
438
|
-
gap: 4.5,
|
|
439
|
-
paddingHorizontal: 7,
|
|
440
|
-
paddingVertical: 3,
|
|
441
|
-
borderRadius: 5,
|
|
442
|
-
borderWidth: 1,
|
|
443
|
-
},
|
|
444
|
-
sourceDot: {
|
|
445
|
-
width: 6,
|
|
446
|
-
height: 6,
|
|
447
|
-
borderRadius: 3,
|
|
448
|
-
},
|
|
449
|
-
sourceBadgeText: {
|
|
450
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
451
|
-
fontSize: 9.5,
|
|
452
|
-
letterSpacing: 0.4,
|
|
453
|
-
},
|
|
454
|
-
catBadge: {
|
|
455
|
-
flexDirection: 'row',
|
|
456
|
-
alignItems: 'center',
|
|
457
|
-
gap: 4,
|
|
458
|
-
paddingHorizontal: 7,
|
|
459
|
-
paddingVertical: 3,
|
|
460
|
-
borderRadius: 5,
|
|
461
|
-
borderWidth: 1,
|
|
462
|
-
},
|
|
463
|
-
catBadgeText: {
|
|
464
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
465
|
-
fontSize: 9.5,
|
|
466
|
-
letterSpacing: 0.3,
|
|
467
|
-
},
|
|
468
|
-
titleRow: {
|
|
469
|
-
marginBottom: 8,
|
|
470
|
-
},
|
|
471
|
-
eventTitle: {
|
|
472
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
473
|
-
fontSize: 16,
|
|
474
|
-
color: AppColors_1.AppColors.primaryBlack,
|
|
475
|
-
lineHeight: 22,
|
|
476
|
-
},
|
|
477
|
-
metaRow: {
|
|
478
|
-
flexDirection: 'row',
|
|
479
|
-
alignItems: 'center',
|
|
480
|
-
gap: 6,
|
|
481
|
-
flexWrap: 'wrap',
|
|
482
|
-
marginBottom: 10,
|
|
483
|
-
},
|
|
484
|
-
timePill: {
|
|
485
|
-
flexDirection: 'row',
|
|
486
|
-
alignItems: 'center',
|
|
487
|
-
gap: 4,
|
|
488
|
-
backgroundColor: `${AppColors_1.AppColors.purple}14`,
|
|
489
|
-
paddingHorizontal: 7,
|
|
490
|
-
paddingVertical: 3,
|
|
491
|
-
borderRadius: 5,
|
|
492
|
-
borderWidth: 1,
|
|
493
|
-
borderColor: `${AppColors_1.AppColors.purple}2E`,
|
|
494
|
-
},
|
|
495
|
-
timeText: {
|
|
496
|
-
fontFamily: AppFonts_1.AppFonts.interMedium,
|
|
497
|
-
fontSize: 10.5,
|
|
498
|
-
color: AppColors_1.AppColors.purple,
|
|
499
|
-
},
|
|
500
|
-
screenPill: {
|
|
501
|
-
flexDirection: 'row',
|
|
502
|
-
alignItems: 'center',
|
|
503
|
-
gap: 4,
|
|
504
|
-
backgroundColor: `${AppColors_1.AppColors.sky500}14`,
|
|
505
|
-
paddingHorizontal: 7,
|
|
506
|
-
paddingVertical: 3,
|
|
507
|
-
borderRadius: 5,
|
|
508
|
-
borderWidth: 1,
|
|
509
|
-
borderColor: `${AppColors_1.AppColors.sky500}2E`,
|
|
510
|
-
maxWidth: 220,
|
|
511
|
-
},
|
|
512
|
-
screenText: {
|
|
513
|
-
fontFamily: AppFonts_1.AppFonts.interMedium,
|
|
514
|
-
fontSize: 10.5,
|
|
515
|
-
color: AppColors_1.AppColors.sky600,
|
|
516
|
-
},
|
|
517
|
-
metricsBar: {
|
|
518
|
-
flexDirection: 'row',
|
|
519
|
-
alignItems: 'center',
|
|
520
|
-
gap: 6,
|
|
521
|
-
flexWrap: 'wrap',
|
|
522
|
-
paddingTop: 8,
|
|
523
|
-
borderTopWidth: 1,
|
|
524
|
-
borderTopColor: AppColors_1.AppColors.dividerColor,
|
|
525
|
-
},
|
|
526
|
-
metricPill: {
|
|
527
|
-
flexDirection: 'row',
|
|
528
|
-
alignItems: 'center',
|
|
529
|
-
gap: 4,
|
|
530
|
-
backgroundColor: AppColors_1.AppColors.grayBackground,
|
|
531
|
-
paddingHorizontal: 7,
|
|
532
|
-
paddingVertical: 3,
|
|
533
|
-
borderRadius: 5,
|
|
534
|
-
borderWidth: 1,
|
|
535
|
-
borderColor: AppColors_1.AppColors.dividerColor,
|
|
536
|
-
},
|
|
537
|
-
metricLabel: {
|
|
538
|
-
fontFamily: AppFonts_1.AppFonts.interMedium,
|
|
539
|
-
fontSize: 10.5,
|
|
540
|
-
color: AppColors_1.AppColors.grayTextWeak,
|
|
541
|
-
},
|
|
542
|
-
metricValue: {
|
|
543
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
544
|
-
fontSize: 10.5,
|
|
545
|
-
color: AppColors_1.AppColors.primaryBlack,
|
|
546
|
-
},
|
|
547
|
-
revenuePill: {
|
|
548
|
-
flexDirection: 'row',
|
|
549
|
-
alignItems: 'center',
|
|
550
|
-
gap: 4,
|
|
551
|
-
backgroundColor: AppColors_1.AppColors.emeraldBg,
|
|
552
|
-
paddingHorizontal: 7,
|
|
553
|
-
paddingVertical: 3,
|
|
554
|
-
borderRadius: 5,
|
|
555
|
-
borderWidth: 1,
|
|
556
|
-
borderColor: AppColors_1.AppColors.emeraldBorder,
|
|
557
|
-
},
|
|
558
|
-
revenueValue: {
|
|
559
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
560
|
-
fontSize: 10.5,
|
|
561
|
-
color: '#047857',
|
|
562
|
-
},
|
|
563
|
-
itemsPill: {
|
|
564
|
-
flexDirection: 'row',
|
|
565
|
-
alignItems: 'center',
|
|
566
|
-
gap: 4,
|
|
567
|
-
backgroundColor: '#EFF6FF',
|
|
568
|
-
paddingHorizontal: 7,
|
|
569
|
-
paddingVertical: 3,
|
|
570
|
-
borderRadius: 5,
|
|
571
|
-
borderWidth: 1,
|
|
572
|
-
borderColor: '#BFDBFE',
|
|
573
|
-
},
|
|
574
|
-
itemsValue: {
|
|
575
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
576
|
-
fontSize: 10.5,
|
|
577
|
-
color: '#1D4ED8',
|
|
578
|
-
},
|
|
579
|
-
tabsWrap: {
|
|
580
|
-
marginBottom: 12,
|
|
581
|
-
},
|
|
582
|
-
tabContent: {
|
|
583
|
-
gap: 12,
|
|
584
|
-
},
|
|
585
|
-
sectionCard: {
|
|
586
|
-
backgroundColor: AppColors_1.AppColors.white,
|
|
587
|
-
borderRadius: 12,
|
|
588
|
-
padding: 12,
|
|
589
|
-
borderWidth: 1,
|
|
590
|
-
borderColor: AppColors_1.AppColors.dividerColor,
|
|
591
|
-
shadowColor: AppColors_1.AppColors.primaryBlack,
|
|
592
|
-
shadowOffset: { width: 0, height: 1 },
|
|
593
|
-
shadowOpacity: 0.04,
|
|
594
|
-
shadowRadius: 4,
|
|
595
|
-
elevation: 2,
|
|
596
|
-
},
|
|
597
|
-
sectionHeader: {
|
|
598
|
-
flexDirection: 'row',
|
|
599
|
-
alignItems: 'center',
|
|
600
|
-
gap: 6,
|
|
601
|
-
marginBottom: 10,
|
|
602
|
-
paddingBottom: 6,
|
|
603
|
-
borderBottomWidth: 1,
|
|
604
|
-
borderBottomColor: AppColors_1.AppColors.dividerColor,
|
|
605
|
-
},
|
|
606
|
-
sectionHeaderBetween: {
|
|
607
|
-
flexDirection: 'row',
|
|
608
|
-
alignItems: 'center',
|
|
609
|
-
justifyContent: 'space-between',
|
|
610
|
-
marginBottom: 10,
|
|
611
|
-
paddingBottom: 6,
|
|
612
|
-
borderBottomWidth: 1,
|
|
613
|
-
borderBottomColor: AppColors_1.AppColors.dividerColor,
|
|
614
|
-
},
|
|
615
|
-
sectionTitle: {
|
|
616
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
617
|
-
fontSize: 11,
|
|
618
|
-
color: AppColors_1.AppColors.slate700,
|
|
619
|
-
letterSpacing: 0.4,
|
|
620
|
-
},
|
|
621
|
-
sectionSubtitle: {
|
|
622
|
-
fontFamily: AppFonts_1.AppFonts.interMedium,
|
|
623
|
-
fontSize: 10,
|
|
624
|
-
color: AppColors_1.AppColors.grayTextWeak,
|
|
625
|
-
},
|
|
626
|
-
sectionBody: {
|
|
627
|
-
gap: 6,
|
|
628
|
-
},
|
|
629
|
-
kvRow: {
|
|
630
|
-
flexDirection: 'row',
|
|
631
|
-
alignItems: 'center',
|
|
632
|
-
justifyContent: 'space-between',
|
|
633
|
-
paddingVertical: 3,
|
|
634
|
-
},
|
|
635
|
-
kvKey: {
|
|
636
|
-
fontFamily: AppFonts_1.AppFonts.interMedium,
|
|
637
|
-
fontSize: 11,
|
|
638
|
-
color: AppColors_1.AppColors.grayTextWeak,
|
|
639
|
-
},
|
|
640
|
-
kvVal: {
|
|
641
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
642
|
-
fontSize: 11,
|
|
643
|
-
color: AppColors_1.AppColors.primaryBlack,
|
|
644
|
-
},
|
|
645
|
-
searchBar: {
|
|
646
|
-
flexDirection: 'row',
|
|
647
|
-
alignItems: 'center',
|
|
648
|
-
backgroundColor: AppColors_1.AppColors.grayBackground,
|
|
649
|
-
borderRadius: 8,
|
|
650
|
-
paddingHorizontal: 8,
|
|
651
|
-
paddingVertical: 5,
|
|
652
|
-
borderWidth: 1,
|
|
653
|
-
borderColor: AppColors_1.AppColors.dividerColor,
|
|
654
|
-
marginBottom: 10,
|
|
655
|
-
gap: 6,
|
|
656
|
-
},
|
|
657
|
-
searchInput: {
|
|
658
|
-
flex: 1,
|
|
659
|
-
fontFamily: AppFonts_1.AppFonts.interRegular,
|
|
660
|
-
fontSize: 11,
|
|
661
|
-
color: AppColors_1.AppColors.primaryBlack,
|
|
662
|
-
paddingVertical: 0,
|
|
663
|
-
},
|
|
664
|
-
emptyParamsBox: {
|
|
665
|
-
alignItems: 'center',
|
|
666
|
-
justifyContent: 'center',
|
|
667
|
-
paddingVertical: 20,
|
|
668
|
-
gap: 6,
|
|
669
|
-
},
|
|
670
|
-
emptyParamsText: {
|
|
671
|
-
fontFamily: AppFonts_1.AppFonts.interMedium,
|
|
672
|
-
fontSize: 11,
|
|
673
|
-
color: AppColors_1.AppColors.grayTextWeak,
|
|
674
|
-
},
|
|
675
|
-
paramList: {
|
|
676
|
-
gap: 8,
|
|
677
|
-
},
|
|
678
|
-
paramCard: {
|
|
679
|
-
backgroundColor: AppColors_1.AppColors.grayBackground,
|
|
680
|
-
borderRadius: 8,
|
|
681
|
-
padding: 9,
|
|
682
|
-
borderWidth: 1,
|
|
683
|
-
borderColor: AppColors_1.AppColors.dividerColor,
|
|
684
|
-
},
|
|
685
|
-
paramCardHeader: {
|
|
686
|
-
flexDirection: 'row',
|
|
687
|
-
alignItems: 'center',
|
|
688
|
-
justifyContent: 'space-between',
|
|
689
|
-
marginBottom: 4,
|
|
690
|
-
},
|
|
691
|
-
paramKeyText: {
|
|
692
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
693
|
-
fontSize: 11.5,
|
|
694
|
-
color: AppColors_1.AppColors.primaryBlack,
|
|
695
|
-
},
|
|
696
|
-
paramKeyHighlighted: {
|
|
697
|
-
color: AppColors_1.AppColors.brandPurple,
|
|
698
|
-
},
|
|
699
|
-
typeBadge: {
|
|
700
|
-
backgroundColor: '#E2E8F0',
|
|
701
|
-
paddingHorizontal: 5,
|
|
702
|
-
paddingVertical: 1.5,
|
|
703
|
-
borderRadius: 3,
|
|
704
|
-
},
|
|
705
|
-
typeBadgeText: {
|
|
706
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
707
|
-
fontSize: 8.5,
|
|
708
|
-
color: AppColors_1.AppColors.slate700,
|
|
709
|
-
letterSpacing: 0.3,
|
|
710
|
-
},
|
|
711
|
-
paramValBox: {
|
|
712
|
-
marginTop: 2,
|
|
713
|
-
},
|
|
714
|
-
paramValText: {
|
|
715
|
-
fontFamily: AppFonts_1.AppFonts.interRegular,
|
|
716
|
-
fontSize: 11,
|
|
717
|
-
color: AppColors_1.AppColors.slate700,
|
|
718
|
-
lineHeight: 16,
|
|
719
|
-
},
|
|
720
|
-
jsonContainer: {
|
|
721
|
-
borderRadius: 12,
|
|
722
|
-
borderWidth: 1,
|
|
723
|
-
borderColor: AppColors_1.AppColors.dividerColor,
|
|
724
|
-
overflow: 'hidden',
|
|
725
|
-
backgroundColor: AppColors_1.AppColors.white,
|
|
726
|
-
minHeight: 300,
|
|
727
|
-
},
|
|
728
|
-
highlight: {
|
|
729
|
-
backgroundColor: '#FEF08A',
|
|
730
|
-
color: '#854D0E',
|
|
731
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
732
|
-
},
|
|
733
|
-
});
|
|
734
|
-
exports.default = AnalyticsDetail;
|
|
200
|
+
{i==="json"&&<react_native_1.View style={detailStyles.jsonContainer}>
|
|
201
|
+
<JsonViewer_1.default data={y}defaultExpandDepth={2}fullHeight/>
|
|
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:"#047857"},itemsPill:{flexDirection:"row",alignItems:"center",gap:4,backgroundColor:"#EFF6FF",paddingHorizontal:7,paddingVertical:3,borderRadius:5,borderWidth:1,borderColor:"#BFDBFE"},itemsValue:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:"#1D4ED8"},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:"#E2E8F0",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:"#FEF08A",color:"#854D0E",fontFamily:AppFonts_1.AppFonts.interBold}});exports.default=AnalyticsDetail;
|