react-native-inapp-inspector 2.3.18 → 2.3.20
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/android/src/main/java/com/inappinspector/NetworkInspectorModule.kt +57 -0
- package/dist/commonjs/analytics.js +1 -24
- package/dist/commonjs/bundle.js +1 -16
- package/dist/commonjs/capture.d.ts +2 -0
- package/dist/commonjs/capture.js +1 -32
- 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.d.ts +1 -0
- 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 +351 -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 +64 -871
- package/dist/commonjs/components/Inspector/DeviceInfoTab.js +143 -907
- package/dist/commonjs/components/Inspector/FabLauncher.js +85 -54
- package/dist/commonjs/components/Inspector/FeatureUnderDevNotice.js +6 -99
- package/dist/commonjs/components/Inspector/FeedbackModal.d.ts +9 -0
- package/dist/commonjs/components/Inspector/FeedbackModal.js +167 -521
- package/dist/commonjs/components/Inspector/InspectorContext.js +1 -21
- package/dist/commonjs/components/Inspector/InspectorHeader.js +219 -1093
- package/dist/commonjs/components/Inspector/LogDetail.js +168 -994
- package/dist/commonjs/components/Inspector/MainScreen.js +60 -332
- package/dist/commonjs/components/Inspector/MediaGalleryTab.js +136 -278
- package/dist/commonjs/components/Inspector/MediaPreviewModal.js +134 -361
- package/dist/commonjs/components/Inspector/NavigationTracker.js +1 -12
- package/dist/commonjs/components/Inspector/NetworkDetail.js +96 -432
- 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 +17 -433
- 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 +431 -3431
- 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 +47 -183
- package/dist/commonjs/components/Inspector/UpdateAvailableModal.js +34 -408
- package/dist/commonjs/components/JsonViewer.js +168 -380
- 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 +7 -0
- package/dist/commonjs/components/NetworkIcons.js +479 -997
- package/dist/commonjs/components/QRCodeView.js +5 -79
- package/dist/commonjs/components/SectionHeader.js +15 -37
- package/dist/commonjs/components/SegmentedTabs.js +7 -61
- 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.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 -1122
- package/dist/commonjs/index.js +5 -2153
- package/dist/commonjs/metro.js +6 -468
- package/dist/commonjs/native/NativeInspector.d.ts +3 -0
- package/dist/commonjs/native/NativeInspector.js +1 -402
- package/dist/commonjs/native/NativeNetworkInspector.d.ts +1 -0
- 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 +2 -1
- package/dist/commonjs/types/enums.js +1 -150
- package/dist/commonjs/types/index.js +1 -18
- package/dist/commonjs/types/interfaces.d.ts +7 -0
- 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.d.ts +2 -0
- package/dist/esm/capture.js +1 -29
- 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.d.ts +1 -0
- 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 +351 -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 +156 -923
- package/dist/esm/components/Inspector/DeviceInfoTab.js +199 -924
- package/dist/esm/components/Inspector/FabLauncher.js +85 -49
- package/dist/esm/components/Inspector/FeatureUnderDevNotice.js +14 -70
- package/dist/esm/components/Inspector/FeedbackModal.d.ts +9 -0
- package/dist/esm/components/Inspector/FeedbackModal.js +182 -499
- package/dist/esm/components/Inspector/InspectorContext.js +1 -12
- package/dist/esm/components/Inspector/InspectorHeader.js +309 -1145
- package/dist/esm/components/Inspector/LogDetail.js +235 -1023
- package/dist/esm/components/Inspector/MainScreen.js +86 -320
- package/dist/esm/components/Inspector/MediaGalleryTab.js +157 -259
- package/dist/esm/components/Inspector/MediaPreviewModal.js +153 -340
- package/dist/esm/components/Inspector/NavigationTracker.js +1 -10
- package/dist/esm/components/Inspector/NetworkDetail.js +141 -472
- 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 +647 -3609
- 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 +52 -183
- package/dist/esm/components/Inspector/UpdateAvailableModal.js +79 -416
- package/dist/esm/components/JsonViewer.js +179 -353
- 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 +7 -0
- package/dist/esm/components/NetworkIcons.js +481 -817
- package/dist/esm/components/QRCodeView.js +8 -45
- package/dist/esm/components/SectionHeader.js +22 -39
- package/dist/esm/components/SegmentedTabs.js +8 -57
- 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.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 -1122
- package/dist/esm/index.js +7 -1967
- package/dist/esm/metro.js +6 -459
- package/dist/esm/native/NativeInspector.d.ts +3 -0
- package/dist/esm/native/NativeInspector.js +1 -370
- package/dist/esm/native/NativeNetworkInspector.d.ts +1 -0
- 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 +2 -1
- package/dist/esm/types/enums.js +1 -147
- package/dist/esm/types/index.js +1 -2
- package/dist/esm/types/interfaces.d.ts +7 -0
- package/dist/esm/types/interfaces.js +1 -1
- package/ios/NetworkInspectorModule.mm +253 -136
- package/package.json +5 -3
- package/react-native-inapp-inspector.podspec +1 -1
- package/src/native/NativeInspector.ts +17 -0
- package/src/native/NativeNetworkInspector.ts +1 -0
- package/src/analytics.ts +0 -35
- package/src/bundle.ts +0 -25
- package/src/capture.ts +0 -101
- 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 -95
- 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 -80
- 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 -1545
- package/src/components/Inspector/LogDetail.tsx +0 -1431
- package/src/components/Inspector/MainScreen.tsx +0 -459
- package/src/components/Inspector/MediaGalleryTab.tsx +0 -355
- package/src/components/Inspector/MediaPreviewModal.tsx +0 -435
- package/src/components/Inspector/NavigationTracker.tsx +0 -13
- package/src/components/Inspector/NetworkDetail.tsx +0 -795
- 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 -4580
- package/src/components/Inspector/SkeletonPlaceholder.tsx +0 -206
- package/src/components/Inspector/StorageTab.tsx +0 -1159
- package/src/components/Inspector/TabBar.tsx +0 -263
- package/src/components/Inspector/UpdateAvailableModal.tsx +0 -555
- package/src/components/JsonViewer.tsx +0 -547
- 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 -2599
- package/src/components/QRCodeView.tsx +0 -75
- package/src/components/SectionHeader.tsx +0 -101
- package/src/components/SegmentedTabs.tsx +0 -83
- 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 -1125
- package/src/index.tsx +0 -2635
- 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 -208
- package/src/types/index.ts +0 -34
- package/src/types/interfaces.ts +0 -530
|
@@ -1,680 +1,228 @@
|
|
|
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 i18n_1 = require("../../i18n");
|
|
42
|
-
const InspectorContext_1 = require("./InspectorContext");
|
|
43
|
-
const SegmentedTabs_1 = __importDefault(require("../SegmentedTabs"));
|
|
44
|
-
const JsonViewer_1 = __importDefault(require("../JsonViewer"));
|
|
45
|
-
const DiffViewer_1 = __importDefault(require("../DiffViewer"));
|
|
46
|
-
const CopyButton_1 = __importDefault(require("../CopyButton"));
|
|
47
|
-
const TouchableScale_1 = __importDefault(require("../TouchableScale"));
|
|
48
|
-
const HighlightText_1 = __importDefault(require("../HighlightText"));
|
|
49
|
-
const AnimatedEntrance_1 = __importDefault(require("../AnimatedEntrance"));
|
|
50
|
-
const reduxLogger_1 = require("../../customHooks/reduxLogger");
|
|
51
|
-
const helpers_1 = require("../../helpers");
|
|
52
|
-
const settingsStore_1 = require("../../helpers/settingsStore");
|
|
53
|
-
const AppColors_1 = require("../../styles/AppColors");
|
|
54
|
-
const AppFonts_1 = require("../../styles/AppFonts");
|
|
55
|
-
const NetworkIcons_1 = require("../NetworkIcons");
|
|
56
|
-
const getOriginBadge = (originType) => {
|
|
57
|
-
switch (originType) {
|
|
58
|
-
case 'saga':
|
|
59
|
-
return {
|
|
60
|
-
label: 'SAGA',
|
|
61
|
-
renderIcon: (color, size = 9) => (<NetworkIcons_1.BoltIcon color={color} size={size}/>),
|
|
62
|
-
bg: AppColors_1.AppColors.purple100,
|
|
63
|
-
text: AppColors_1.AppColors.brandPurple,
|
|
64
|
-
border: AppColors_1.AppColors.purple200,
|
|
65
|
-
};
|
|
66
|
-
case 'thunk':
|
|
67
|
-
return {
|
|
68
|
-
label: 'THUNK',
|
|
69
|
-
renderIcon: (color, size = 9) => (<NetworkIcons_1.AtomIcon color={color} size={size}/>),
|
|
70
|
-
bg: AppColors_1.AppColors.amber100,
|
|
71
|
-
text: AppColors_1.AppColors.amber800Warm,
|
|
72
|
-
border: AppColors_1.AppColors.amber200,
|
|
73
|
-
};
|
|
74
|
-
case 'ui':
|
|
75
|
-
return {
|
|
76
|
-
label: 'UI',
|
|
77
|
-
renderIcon: (color, size = 9) => (<NetworkIcons_1.ScreenIcon color={color} size={size}/>),
|
|
78
|
-
bg: AppColors_1.AppColors.sky100,
|
|
79
|
-
text: AppColors_1.AppColors.sky600,
|
|
80
|
-
border: AppColors_1.AppColors.sky400,
|
|
81
|
-
};
|
|
82
|
-
case 'listener':
|
|
83
|
-
return {
|
|
84
|
-
label: 'LISTENER',
|
|
85
|
-
renderIcon: (color, size = 9) => (<NetworkIcons_1.ListenerIcon color={color} size={size}/>),
|
|
86
|
-
bg: AppColors_1.AppColors.teal100,
|
|
87
|
-
text: AppColors_1.AppColors.teal700,
|
|
88
|
-
border: AppColors_1.AppColors.teal400,
|
|
89
|
-
};
|
|
90
|
-
default:
|
|
91
|
-
return {
|
|
92
|
-
label: 'DIRECT',
|
|
93
|
-
renderIcon: (color, size = 9) => (<NetworkIcons_1.BoltIcon color={color} size={size}/>),
|
|
94
|
-
bg: AppColors_1.AppColors.slate100,
|
|
95
|
-
text: AppColors_1.AppColors.slate700,
|
|
96
|
-
border: AppColors_1.AppColors.slate200,
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
|
-
const ReduxDetail = react_1.default.memo(() => {
|
|
101
|
-
const { t } = (0, i18n_1.useTranslation)();
|
|
102
|
-
const { reduxState, reduxLastActionMap, selectedReduxSlice, selectedReduxAction, setSelectedReduxSlice, } = (0, InspectorContext_1.useInspector)();
|
|
103
|
-
const [detailSearch, setDetailSearch] = (0, react_1.useState)('');
|
|
104
|
-
const [sliceTab, setSliceTab] = (0, react_1.useState)('live');
|
|
105
|
-
const [actionTab, setActionTab] = (0, react_1.useState)('payload');
|
|
106
|
-
const [viewMode, setViewMode] = (0, react_1.useState)('pretty');
|
|
107
|
-
const [expandedActionId, setExpandedActionId] = (0, react_1.useState)(null);
|
|
108
|
-
const [isPersisted, setIsPersisted] = (0, react_1.useState)(false);
|
|
109
|
-
const [persistedData, setPersistedData] = (0, react_1.useState)(null);
|
|
110
|
-
const allActionHistory = (0, react_1.useMemo)(() => {
|
|
111
|
-
return (0, reduxLogger_1.getActionHistory)();
|
|
112
|
-
}, [reduxLastActionMap]);
|
|
113
|
-
const sliceActions = (0, react_1.useMemo)(() => {
|
|
114
|
-
if (!selectedReduxSlice)
|
|
115
|
-
return allActionHistory;
|
|
116
|
-
return allActionHistory.filter(action => {
|
|
117
|
-
if (!action.affectedSlices || action.affectedSlices.length === 0)
|
|
118
|
-
return true;
|
|
119
|
-
return action.affectedSlices.includes(selectedReduxSlice);
|
|
120
|
-
});
|
|
121
|
-
}, [allActionHistory, selectedReduxSlice]);
|
|
122
|
-
const filteredTimelineActions = (0, react_1.useMemo)(() => {
|
|
123
|
-
if (!detailSearch.trim())
|
|
124
|
-
return sliceActions;
|
|
125
|
-
const q = detailSearch.toLowerCase();
|
|
126
|
-
return sliceActions.filter(action => {
|
|
127
|
-
return (action.type.toLowerCase().includes(q) ||
|
|
128
|
-
(action.callerFile && action.callerFile.toLowerCase().includes(q)) ||
|
|
129
|
-
(action.payload &&
|
|
130
|
-
JSON.stringify(action.payload).toLowerCase().includes(q)));
|
|
131
|
-
});
|
|
132
|
-
}, [sliceActions, detailSearch]);
|
|
133
|
-
(0, react_1.useEffect)(() => {
|
|
134
|
-
if (!selectedReduxSlice)
|
|
135
|
-
return;
|
|
136
|
-
async function checkPersistence() {
|
|
137
|
-
try {
|
|
138
|
-
const storage = (0, settingsStore_1.getCustomStorage)();
|
|
139
|
-
if (!storage) {
|
|
140
|
-
setIsPersisted(false);
|
|
141
|
-
setPersistedData(null);
|
|
142
|
-
return;
|
|
143
|
-
}
|
|
144
|
-
let raw = await storage.getItem(`persist:${selectedReduxSlice}`);
|
|
145
|
-
if (raw) {
|
|
146
|
-
try {
|
|
147
|
-
setPersistedData(JSON.parse(raw));
|
|
148
|
-
}
|
|
149
|
-
catch {
|
|
150
|
-
setPersistedData(raw);
|
|
151
|
-
}
|
|
152
|
-
setIsPersisted(true);
|
|
153
|
-
return;
|
|
154
|
-
}
|
|
155
|
-
let rootRaw = await storage.getItem('persist:root');
|
|
156
|
-
if (rootRaw) {
|
|
157
|
-
const parsedRoot = JSON.parse(rootRaw);
|
|
158
|
-
if (parsedRoot && parsedRoot[selectedReduxSlice] !== undefined) {
|
|
159
|
-
const nested = parsedRoot[selectedReduxSlice];
|
|
160
|
-
try {
|
|
161
|
-
setPersistedData(typeof nested === 'string' ? JSON.parse(nested) : nested);
|
|
162
|
-
}
|
|
163
|
-
catch {
|
|
164
|
-
setPersistedData(nested);
|
|
165
|
-
}
|
|
166
|
-
setIsPersisted(true);
|
|
167
|
-
return;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
catch (e) {
|
|
172
|
-
}
|
|
173
|
-
setIsPersisted(false);
|
|
174
|
-
setPersistedData(null);
|
|
175
|
-
}
|
|
176
|
-
checkPersistence();
|
|
177
|
-
}, [selectedReduxSlice]);
|
|
178
|
-
const handleClearPersistence = () => {
|
|
179
|
-
if (!selectedReduxSlice)
|
|
180
|
-
return;
|
|
181
|
-
react_native_1.Alert.alert('Clear Persisted State', `Are you sure you want to delete persisted storage for slice "${selectedReduxSlice}"?`, [
|
|
182
|
-
{ text: 'Cancel', style: 'cancel' },
|
|
183
|
-
{
|
|
184
|
-
text: 'Delete',
|
|
185
|
-
style: 'destructive',
|
|
186
|
-
onPress: async () => {
|
|
187
|
-
try {
|
|
188
|
-
const storage = (0, settingsStore_1.getCustomStorage)();
|
|
189
|
-
if (!storage)
|
|
190
|
-
return;
|
|
191
|
-
if (typeof storage.removeItem === 'function') {
|
|
192
|
-
await storage.removeItem(`persist:${selectedReduxSlice}`);
|
|
193
|
-
}
|
|
194
|
-
else {
|
|
195
|
-
await storage.setItem(`persist:${selectedReduxSlice}`, '');
|
|
196
|
-
}
|
|
197
|
-
setIsPersisted(false);
|
|
198
|
-
setPersistedData(null);
|
|
199
|
-
setSliceTab('live');
|
|
200
|
-
if (react_native_1.Platform.OS === 'android') {
|
|
201
|
-
react_native_1.ToastAndroid.show('Persisted state cleared', react_native_1.ToastAndroid.SHORT);
|
|
202
|
-
}
|
|
203
|
-
else {
|
|
204
|
-
react_native_1.Alert.alert('Cleared', 'Persisted state has been cleared.');
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
catch (err) {
|
|
208
|
-
react_native_1.Alert.alert('Error', 'Failed to clear persisted state.');
|
|
209
|
-
}
|
|
210
|
-
},
|
|
211
|
-
},
|
|
212
|
-
]);
|
|
213
|
-
};
|
|
214
|
-
if (selectedReduxSlice != null) {
|
|
215
|
-
const sliceData = reduxState?.[selectedReduxSlice];
|
|
216
|
-
const fieldsCount = sliceData && typeof sliceData === 'object'
|
|
217
|
-
? Object.keys(sliceData).length
|
|
218
|
-
: typeof sliceData !== 'undefined'
|
|
219
|
-
? 1
|
|
220
|
-
: 0;
|
|
221
|
-
const lastAction = reduxLastActionMap[selectedReduxSlice];
|
|
222
|
-
const sliceTabs = [
|
|
223
|
-
{
|
|
224
|
-
key: 'live',
|
|
225
|
-
label: t('redux.liveState', 'Live State'),
|
|
226
|
-
icon: (isActive) => (<NetworkIcons_1.LiveStateIcon color={isActive ? AppColors_1.AppColors.white : AppColors_1.AppColors.grayText} size={12}/>),
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
key: 'timeline',
|
|
230
|
-
label: `${t('redux.timeline', 'Timeline')} (${sliceActions.length})`,
|
|
231
|
-
icon: (isActive) => (<NetworkIcons_1.TimelineIcon color={isActive ? AppColors_1.AppColors.white : AppColors_1.AppColors.grayText} size={12}/>),
|
|
232
|
-
},
|
|
233
|
-
{
|
|
234
|
-
key: 'persisted',
|
|
235
|
-
label: isPersisted
|
|
236
|
-
? t('redux.persisted', 'Persisted')
|
|
237
|
-
: t('redux.storage', 'Storage'),
|
|
238
|
-
icon: (isActive) => (<NetworkIcons_1.StorageIcon color={isActive ? AppColors_1.AppColors.white : AppColors_1.AppColors.grayText} size={12}/>),
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
key: 'metadata',
|
|
242
|
-
label: t('redux.metadata', 'Metadata'),
|
|
243
|
-
icon: (isActive) => (<NetworkIcons_1.MetadataIcon color={isActive ? AppColors_1.AppColors.white : AppColors_1.AppColors.grayText} size={12}/>),
|
|
244
|
-
},
|
|
245
|
-
];
|
|
246
|
-
return (<react_native_1.View style={{ flex: 1, backgroundColor: AppColors_1.AppColors.grayBackground }}>
|
|
1
|
+
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(e,i,l,r){r===void 0&&(r=l);var t=Object.getOwnPropertyDescriptor(i,l);(!t||("get"in t?!i.__esModule:t.writable||t.configurable))&&(t={enumerable:!0,get:function(){return i[l]}}),Object.defineProperty(e,r,t)}):(function(e,i,l,r){r===void 0&&(r=l),e[r]=i[l]})),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?(function(e,i){Object.defineProperty(e,"default",{enumerable:!0,value:i})}):function(e,i){e.default=i}),__importStar=this&&this.__importStar||(function(){var e=function(i){return e=Object.getOwnPropertyNames||function(l){var r=[];for(var t in l)Object.prototype.hasOwnProperty.call(l,t)&&(r[r.length]=t);return r},e(i)};return function(i){if(i&&i.__esModule)return i;var l={};if(i!=null)for(var r=e(i),t=0;t<r.length;t++)r[t]!=="default"&&__createBinding(l,i,r[t]);return __setModuleDefault(l,i),l}})(),__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importStar(require("react")),react_native_1=require("react-native"),i18n_1=require("../../i18n"),InspectorContext_1=require("./InspectorContext"),SegmentedTabs_1=__importDefault(require("../SegmentedTabs")),JsonViewer_1=__importDefault(require("../JsonViewer")),DiffViewer_1=__importDefault(require("../DiffViewer")),CopyButton_1=__importDefault(require("../CopyButton")),TouchableScale_1=__importDefault(require("../TouchableScale")),HighlightText_1=__importDefault(require("../HighlightText")),AnimatedEntrance_1=__importDefault(require("../AnimatedEntrance")),reduxLogger_1=require("../../customHooks/reduxLogger"),helpers_1=require("../../helpers"),settingsStore_1=require("../../helpers/settingsStore"),AppColors_1=require("../../styles/AppColors"),AppFonts_1=require("../../styles/AppFonts"),NetworkIcons_1=require("../NetworkIcons"),getOriginBadge=e=>{switch(e){case"saga":return{label:"SAGA",renderIcon:(i,l=9)=><NetworkIcons_1.BoltIcon color={i}size={l}/>,bg:AppColors_1.AppColors.purple100,text:AppColors_1.AppColors.brandPurple,border:AppColors_1.AppColors.purple200};case"thunk":return{label:"THUNK",renderIcon:(i,l=9)=><NetworkIcons_1.AtomIcon color={i}size={l}/>,bg:AppColors_1.AppColors.amber100,text:AppColors_1.AppColors.amber800Warm,border:AppColors_1.AppColors.amber200};case"ui":return{label:"UI",renderIcon:(i,l=9)=><NetworkIcons_1.ScreenIcon color={i}size={l}/>,bg:AppColors_1.AppColors.sky100,text:AppColors_1.AppColors.sky600,border:AppColors_1.AppColors.sky400};case"listener":return{label:"LISTENER",renderIcon:(i,l=9)=><NetworkIcons_1.ListenerIcon color={i}size={l}/>,bg:AppColors_1.AppColors.teal100,text:AppColors_1.AppColors.teal700,border:AppColors_1.AppColors.teal400};default:return{label:"DIRECT",renderIcon:(i,l=9)=><NetworkIcons_1.BoltIcon color={i}size={l}/>,bg:AppColors_1.AppColors.slate100,text:AppColors_1.AppColors.slate700,border:AppColors_1.AppColors.slate200}}},ReduxDetail=react_1.default.memo(()=>{const{t:e}=(0,i18n_1.useTranslation)(),{reduxState:i,reduxLastActionMap:l,selectedReduxSlice:r,selectedReduxAction:t,setSelectedReduxSlice:R}=(0,InspectorContext_1.useInspector)(),[d,S]=(0,react_1.useState)(""),[y,V]=(0,react_1.useState)("live"),[b,F]=(0,react_1.useState)("payload"),[k,B]=(0,react_1.useState)("pretty"),[P,W]=(0,react_1.useState)(null),[_,T]=(0,react_1.useState)(!1),[A,g]=(0,react_1.useState)(null),h=(0,react_1.useMemo)(()=>(0,reduxLogger_1.getActionHistory)(),[l]),x=(0,react_1.useMemo)(()=>r?h.filter(a=>!a.affectedSlices||a.affectedSlices.length===0?!0:a.affectedSlices.includes(r)):h,[h,r]),I=(0,react_1.useMemo)(()=>{if(!d.trim())return x;const a=d.toLowerCase();return x.filter(p=>p.type.toLowerCase().includes(a)||p.callerFile&&p.callerFile.toLowerCase().includes(a)||p.payload&&JSON.stringify(p.payload).toLowerCase().includes(a))},[x,d]);(0,react_1.useEffect)(()=>{if(!r)return;async function a(){try{const p=(0,settingsStore_1.getCustomStorage)();if(!p){T(!1),g(null);return}let c=await p.getItem(`persist:${r}`);if(c){try{g(JSON.parse(c))}catch{g(c)}T(!0);return}let n=await p.getItem("persist:root");if(n){const o=JSON.parse(n);if(o&&o[r]!==void 0){const s=o[r];try{g(typeof s=="string"?JSON.parse(s):s)}catch{g(s)}T(!0);return}}}catch{}T(!1),g(null)}a()},[r]);const z=()=>{r&&react_native_1.Alert.alert("Clear Persisted State",`Are you sure you want to delete persisted storage for slice "${r}"?`,[{text:"Cancel",style:"cancel"},{text:"Delete",style:"destructive",onPress:async()=>{try{const a=(0,settingsStore_1.getCustomStorage)();if(!a)return;typeof a.removeItem=="function"?await a.removeItem(`persist:${r}`):await a.setItem(`persist:${r}`,""),T(!1),g(null),V("live"),react_native_1.Platform.OS==="android"?react_native_1.ToastAndroid.show("Persisted state cleared",react_native_1.ToastAndroid.SHORT):react_native_1.Alert.alert("Cleared","Persisted state has been cleared.")}catch{react_native_1.Alert.alert("Error","Failed to clear persisted state.")}}}])};if(r!=null){const a=i?.[r],p=a&&typeof a=="object"?Object.keys(a).length:typeof a<"u"?1:0,c=l[r],n=[{key:"live",label:e("redux.liveState","Live State"),icon:o=><NetworkIcons_1.LiveStateIcon color={o?AppColors_1.AppColors.white:AppColors_1.AppColors.grayText}size={12}/>},{key:"timeline",label:`${e("redux.timeline","Timeline")} (${x.length})`,icon:o=><NetworkIcons_1.TimelineIcon color={o?AppColors_1.AppColors.white:AppColors_1.AppColors.grayText}size={12}/>},{key:"persisted",label:_?e("redux.persisted","Persisted"):e("redux.storage","Storage"),icon:o=><NetworkIcons_1.StorageIcon color={o?AppColors_1.AppColors.white:AppColors_1.AppColors.grayText}size={12}/>},{key:"metadata",label:e("redux.metadata","Metadata"),icon:o=><NetworkIcons_1.MetadataIcon color={o?AppColors_1.AppColors.white:AppColors_1.AppColors.grayText}size={12}/>}];return<react_native_1.View style={{flex:1,backgroundColor:AppColors_1.AppColors.grayBackground}}>
|
|
247
2
|
|
|
248
3
|
<react_native_1.View style={reduxDetailStyles.infoBar}>
|
|
249
4
|
<react_native_1.View style={reduxDetailStyles.infoTopRow}>
|
|
250
|
-
<react_native_1.View style={{
|
|
251
|
-
|
|
252
|
-
alignItems: 'center',
|
|
253
|
-
gap: 6,
|
|
254
|
-
flexWrap: 'wrap',
|
|
255
|
-
flex: 1,
|
|
256
|
-
minWidth: 0,
|
|
257
|
-
}}>
|
|
258
|
-
<react_native_1.View style={[
|
|
259
|
-
reduxDetailStyles.methodBadge,
|
|
260
|
-
{ backgroundColor: AppColors_1.AppColors.indigo600Alt },
|
|
261
|
-
]}>
|
|
5
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:6,flexWrap:"wrap",flex:1,minWidth:0}}>
|
|
6
|
+
<react_native_1.View style={[reduxDetailStyles.methodBadge,{backgroundColor:AppColors_1.AppColors.indigo600Alt}]}>
|
|
262
7
|
<react_native_1.Text style={reduxDetailStyles.methodBadgeText}>
|
|
263
|
-
{
|
|
8
|
+
{e("redux.slice","SLICE")}
|
|
264
9
|
</react_native_1.Text>
|
|
265
10
|
</react_native_1.View>
|
|
266
|
-
<react_native_1.Text style={reduxDetailStyles.sliceNameText}
|
|
267
|
-
{
|
|
11
|
+
<react_native_1.Text style={reduxDetailStyles.sliceNameText}numberOfLines={1}>
|
|
12
|
+
{r}
|
|
268
13
|
</react_native_1.Text>
|
|
269
|
-
{
|
|
270
|
-
<NetworkIcons_1.StorageIcon color={AppColors_1.AppColors.emerald700}
|
|
14
|
+
{_?<react_native_1.View style={reduxDetailStyles.persistedChip}>
|
|
15
|
+
<NetworkIcons_1.StorageIcon color={AppColors_1.AppColors.emerald700}size={10}/>
|
|
271
16
|
<react_native_1.Text style={reduxDetailStyles.persistedChipText}>
|
|
272
|
-
{
|
|
17
|
+
{e("redux.persisted","Persisted").toUpperCase()}
|
|
273
18
|
</react_native_1.Text>
|
|
274
|
-
</react_native_1.View
|
|
19
|
+
</react_native_1.View>:<react_native_1.View style={reduxDetailStyles.inMemoryChip}>
|
|
275
20
|
<react_native_1.Text style={reduxDetailStyles.inMemoryChipText}>
|
|
276
|
-
{
|
|
21
|
+
{e("redux.inMemory","In-Memory").toUpperCase()}
|
|
277
22
|
</react_native_1.Text>
|
|
278
|
-
</react_native_1.View>
|
|
279
|
-
{
|
|
280
|
-
<NetworkIcons_1.ClockIcon color={AppColors_1.AppColors.violet600}
|
|
23
|
+
</react_native_1.View>}
|
|
24
|
+
{c?.timestamp&&<react_native_1.View style={reduxDetailStyles.timePill}>
|
|
25
|
+
<NetworkIcons_1.ClockIcon color={AppColors_1.AppColors.violet600}size={10}/>
|
|
281
26
|
<react_native_1.Text style={reduxDetailStyles.timeText}>
|
|
282
|
-
{
|
|
27
|
+
{c.timestamp}
|
|
283
28
|
</react_native_1.Text>
|
|
284
|
-
</react_native_1.View>
|
|
29
|
+
</react_native_1.View>}
|
|
285
30
|
</react_native_1.View>
|
|
286
31
|
|
|
287
32
|
|
|
288
|
-
<CopyButton_1.default value={()
|
|
33
|
+
<CopyButton_1.default value={()=>y==="live"?a:A}label={e("redux.sliceJson","Slice JSON")}/>
|
|
289
34
|
</react_native_1.View>
|
|
290
35
|
|
|
291
36
|
|
|
292
37
|
<react_native_1.View style={reduxDetailStyles.subStatsRow}>
|
|
293
|
-
<react_native_1.View style={[
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
borderColor: AppColors_1.AppColors.indigo400,
|
|
298
|
-
},
|
|
299
|
-
]}>
|
|
300
|
-
<NetworkIcons_1.LayersIcon color={AppColors_1.AppColors.indigo600Alt} size={11}/>
|
|
301
|
-
<react_native_1.Text style={[
|
|
302
|
-
reduxDetailStyles.statLabel,
|
|
303
|
-
{ color: AppColors_1.AppColors.indigo600Alt },
|
|
304
|
-
]}>
|
|
305
|
-
{t('redux.keys', 'Keys')}:
|
|
38
|
+
<react_native_1.View style={[reduxDetailStyles.statPill,{backgroundColor:AppColors_1.AppColors.indigo50,borderColor:AppColors_1.AppColors.indigo400}]}>
|
|
39
|
+
<NetworkIcons_1.LayersIcon color={AppColors_1.AppColors.indigo600Alt}size={11}/>
|
|
40
|
+
<react_native_1.Text style={[reduxDetailStyles.statLabel,{color:AppColors_1.AppColors.indigo600Alt}]}>
|
|
41
|
+
{e("redux.keys","Keys")}:
|
|
306
42
|
</react_native_1.Text>
|
|
307
|
-
<react_native_1.Text style={[
|
|
308
|
-
|
|
309
|
-
{ color: AppColors_1.AppColors.indigo600Alt },
|
|
310
|
-
]}>
|
|
311
|
-
{fieldsCount}
|
|
43
|
+
<react_native_1.Text style={[reduxDetailStyles.statValue,{color:AppColors_1.AppColors.indigo600Alt}]}>
|
|
44
|
+
{p}
|
|
312
45
|
</react_native_1.Text>
|
|
313
46
|
</react_native_1.View>
|
|
314
|
-
<react_native_1.View style={[
|
|
315
|
-
|
|
316
|
-
{
|
|
317
|
-
backgroundColor: AppColors_1.AppColors.sky100,
|
|
318
|
-
borderColor: AppColors_1.AppColors.sky400,
|
|
319
|
-
},
|
|
320
|
-
]}>
|
|
321
|
-
<react_native_1.Text style={[
|
|
322
|
-
reduxDetailStyles.statLabel,
|
|
323
|
-
{ color: AppColors_1.AppColors.sky600 },
|
|
324
|
-
]}>
|
|
325
|
-
{t('redux.size', 'Size')}:
|
|
47
|
+
<react_native_1.View style={[reduxDetailStyles.statPill,{backgroundColor:AppColors_1.AppColors.sky100,borderColor:AppColors_1.AppColors.sky400}]}>
|
|
48
|
+
<react_native_1.Text style={[reduxDetailStyles.statLabel,{color:AppColors_1.AppColors.sky600}]}>
|
|
49
|
+
{e("redux.size","Size")}:
|
|
326
50
|
</react_native_1.Text>
|
|
327
|
-
<react_native_1.Text style={[
|
|
328
|
-
|
|
329
|
-
{ color: AppColors_1.AppColors.sky600 },
|
|
330
|
-
]}>
|
|
331
|
-
{(0, helpers_1.getSize)(sliceData)}
|
|
51
|
+
<react_native_1.Text style={[reduxDetailStyles.statValue,{color:AppColors_1.AppColors.sky600}]}>
|
|
52
|
+
{(0,helpers_1.getSize)(a)}
|
|
332
53
|
</react_native_1.Text>
|
|
333
54
|
</react_native_1.View>
|
|
334
|
-
<react_native_1.View style={[
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
borderColor: AppColors_1.AppColors.purple200,
|
|
339
|
-
},
|
|
340
|
-
]}>
|
|
341
|
-
<NetworkIcons_1.TimelineIcon color={AppColors_1.AppColors.violet600} size={11}/>
|
|
342
|
-
<react_native_1.Text style={[
|
|
343
|
-
reduxDetailStyles.statLabel,
|
|
344
|
-
{ color: AppColors_1.AppColors.brandPurple },
|
|
345
|
-
]}>
|
|
346
|
-
{t('redux.timeline', 'Timeline')}:
|
|
55
|
+
<react_native_1.View style={[reduxDetailStyles.statPill,{backgroundColor:AppColors_1.AppColors.purple100,borderColor:AppColors_1.AppColors.purple200}]}>
|
|
56
|
+
<NetworkIcons_1.TimelineIcon color={AppColors_1.AppColors.violet600}size={11}/>
|
|
57
|
+
<react_native_1.Text style={[reduxDetailStyles.statLabel,{color:AppColors_1.AppColors.brandPurple}]}>
|
|
58
|
+
{e("redux.timeline","Timeline")}:
|
|
347
59
|
</react_native_1.Text>
|
|
348
|
-
<react_native_1.Text style={[
|
|
349
|
-
|
|
350
|
-
{ color: AppColors_1.AppColors.brandPurple },
|
|
351
|
-
]}>
|
|
352
|
-
{sliceActions.length}
|
|
60
|
+
<react_native_1.Text style={[reduxDetailStyles.statValue,{color:AppColors_1.AppColors.brandPurple}]}>
|
|
61
|
+
{x.length}
|
|
353
62
|
</react_native_1.Text>
|
|
354
63
|
</react_native_1.View>
|
|
355
|
-
{
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
borderColor: AppColors_1.AppColors.amber200,
|
|
360
|
-
flexShrink: 1,
|
|
361
|
-
maxWidth: 160,
|
|
362
|
-
},
|
|
363
|
-
]}>
|
|
364
|
-
<NetworkIcons_1.BoltIcon color={AppColors_1.AppColors.amber800Warm} size={11}/>
|
|
365
|
-
<react_native_1.Text style={[
|
|
366
|
-
reduxDetailStyles.statLabel,
|
|
367
|
-
{ color: AppColors_1.AppColors.amber800Warm },
|
|
368
|
-
]}>
|
|
369
|
-
{t('redux.last', 'Last')}:
|
|
64
|
+
{c&&<react_native_1.View style={[reduxDetailStyles.statPill,{backgroundColor:AppColors_1.AppColors.amber100,borderColor:AppColors_1.AppColors.amber200,flexShrink:1,maxWidth:160}]}>
|
|
65
|
+
<NetworkIcons_1.BoltIcon color={AppColors_1.AppColors.amber800Warm}size={11}/>
|
|
66
|
+
<react_native_1.Text style={[reduxDetailStyles.statLabel,{color:AppColors_1.AppColors.amber800Warm}]}>
|
|
67
|
+
{e("redux.last","Last")}:
|
|
370
68
|
</react_native_1.Text>
|
|
371
|
-
<react_native_1.Text style={[
|
|
372
|
-
|
|
373
|
-
{ color: AppColors_1.AppColors.amber800Warm, flexShrink: 1 },
|
|
374
|
-
]} numberOfLines={1}>
|
|
375
|
-
{lastAction.type}
|
|
69
|
+
<react_native_1.Text style={[reduxDetailStyles.statValue,{color:AppColors_1.AppColors.amber800Warm,flexShrink:1}]}numberOfLines={1}>
|
|
70
|
+
{c.type}
|
|
376
71
|
</react_native_1.Text>
|
|
377
|
-
</react_native_1.View>
|
|
72
|
+
</react_native_1.View>}
|
|
378
73
|
</react_native_1.View>
|
|
379
74
|
|
|
380
75
|
|
|
381
|
-
<SegmentedTabs_1.default tabs={
|
|
76
|
+
<SegmentedTabs_1.default tabs={n}activeKey={y}onChange={o=>V(o)}style={{marginTop:10}}/>
|
|
382
77
|
</react_native_1.View>
|
|
383
78
|
|
|
384
79
|
|
|
385
|
-
{
|
|
386
|
-
<NetworkIcons_1.SearchIcon color={AppColors_1.AppColors.grayTextWeak}
|
|
387
|
-
<react_native_1.TextInput placeholder={
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
</react_native_1.Pressable>)}
|
|
393
|
-
</react_native_1.View>)}
|
|
80
|
+
{y!=="metadata"&&<react_native_1.View style={reduxDetailStyles.searchContainer}>
|
|
81
|
+
<NetworkIcons_1.SearchIcon color={AppColors_1.AppColors.grayTextWeak}size={14}/>
|
|
82
|
+
<react_native_1.TextInput placeholder={y==="timeline"?"Search action type, file, or payload...":"Search keys or values..."}placeholderTextColor={AppColors_1.AppColors.grayTextWeak}value={d}onChangeText={S}style={reduxDetailStyles.searchInput}autoCorrect={!1}autoCapitalize="none"/>
|
|
83
|
+
{d.length>0&&<react_native_1.Pressable onPress={()=>S("")}hitSlop={10}>
|
|
84
|
+
<NetworkIcons_1.ClearIcon color={AppColors_1.AppColors.grayTextWeak}size={14}/>
|
|
85
|
+
</react_native_1.Pressable>}
|
|
86
|
+
</react_native_1.View>}
|
|
394
87
|
|
|
395
88
|
|
|
396
|
-
{
|
|
397
|
-
{
|
|
398
|
-
<NetworkIcons_1.TimelineIcon color={AppColors_1.AppColors.grayTextWeak}
|
|
89
|
+
{y==="timeline"?<react_native_1.ScrollView style={{flex:1}}contentContainerStyle={{padding:12,paddingBottom:40}}keyboardShouldPersistTaps="handled">
|
|
90
|
+
{I.length===0?<react_native_1.View style={reduxDetailStyles.emptyBox}>
|
|
91
|
+
<NetworkIcons_1.TimelineIcon color={AppColors_1.AppColors.grayTextWeak}size={28}/>
|
|
399
92
|
<react_native_1.Text style={reduxDetailStyles.emptyBoxText}>
|
|
400
|
-
{
|
|
401
|
-
? 'No actions matching your search query.'
|
|
402
|
-
: 'No dispatched actions recorded for this slice yet.'}
|
|
93
|
+
{d.trim()?"No actions matching your search query.":"No dispatched actions recorded for this slice yet."}
|
|
403
94
|
</react_native_1.Text>
|
|
404
|
-
</react_native_1.View
|
|
405
|
-
|
|
406
|
-
const originMeta = getOriginBadge(action.originType);
|
|
407
|
-
const callerBasename = action.callerFile
|
|
408
|
-
? action.callerFile.split('/').pop()
|
|
409
|
-
: null;
|
|
410
|
-
return (<AnimatedEntrance_1.default key={action.id} index={aIdx} distance={6}>
|
|
411
|
-
<TouchableScale_1.default onPress={() => setExpandedActionId(isExpanded ? null : action.id)} style={reduxDetailStyles.timelineCard}>
|
|
95
|
+
</react_native_1.View>:I.map((o,s)=>{const C=P===o.id,m=getOriginBadge(o.originType),D=o.callerFile?o.callerFile.split("/").pop():null;return<AnimatedEntrance_1.default key={o.id}index={s}distance={6}>
|
|
96
|
+
<TouchableScale_1.default onPress={()=>W(C?null:o.id)}style={reduxDetailStyles.timelineCard}>
|
|
412
97
|
<react_native_1.View style={reduxDetailStyles.timelineHeader}>
|
|
413
|
-
<react_native_1.View style={{
|
|
414
|
-
flexDirection: 'row',
|
|
415
|
-
alignItems: 'center',
|
|
416
|
-
gap: 6,
|
|
417
|
-
flex: 1,
|
|
418
|
-
minWidth: 0,
|
|
419
|
-
flexWrap: 'wrap',
|
|
420
|
-
}}>
|
|
98
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:6,flex:1,minWidth:0,flexWrap:"wrap"}}>
|
|
421
99
|
<react_native_1.View style={reduxDetailStyles.actionBadge}>
|
|
422
100
|
<react_native_1.Text style={reduxDetailStyles.actionBadgeText}>
|
|
423
|
-
#{
|
|
101
|
+
#{o.id}
|
|
424
102
|
</react_native_1.Text>
|
|
425
103
|
</react_native_1.View>
|
|
426
104
|
|
|
427
|
-
<react_native_1.View style={{
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
backgroundColor: originMeta.bg,
|
|
432
|
-
paddingHorizontal: 5,
|
|
433
|
-
paddingVertical: 2,
|
|
434
|
-
borderRadius: 4,
|
|
435
|
-
borderWidth: 1,
|
|
436
|
-
borderColor: originMeta.border,
|
|
437
|
-
}}>
|
|
438
|
-
{originMeta.renderIcon(originMeta.text, 8.5)}
|
|
439
|
-
<react_native_1.Text style={{
|
|
440
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
441
|
-
fontSize: 8.5,
|
|
442
|
-
color: originMeta.text,
|
|
443
|
-
letterSpacing: 0.3,
|
|
444
|
-
}}>
|
|
445
|
-
{originMeta.label}
|
|
105
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:3,backgroundColor:m.bg,paddingHorizontal:5,paddingVertical:2,borderRadius:4,borderWidth:1,borderColor:m.border}}>
|
|
106
|
+
{m.renderIcon(m.text,8.5)}
|
|
107
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8.5,color:m.text,letterSpacing:.3}}>
|
|
108
|
+
{m.label}
|
|
446
109
|
</react_native_1.Text>
|
|
447
110
|
</react_native_1.View>
|
|
448
111
|
|
|
449
|
-
<HighlightText_1.default text={
|
|
112
|
+
<HighlightText_1.default text={o.type}search={d}style={reduxDetailStyles.actionTitle}highlightStyle={reduxDetailStyles.highlight}/>
|
|
450
113
|
</react_native_1.View>
|
|
451
114
|
|
|
452
115
|
<react_native_1.View style={reduxDetailStyles.timePill}>
|
|
453
|
-
<NetworkIcons_1.ClockIcon color={AppColors_1.AppColors.purple}
|
|
116
|
+
<NetworkIcons_1.ClockIcon color={AppColors_1.AppColors.purple}size={10}/>
|
|
454
117
|
<react_native_1.Text style={reduxDetailStyles.timeText}>
|
|
455
|
-
{
|
|
118
|
+
{o.timestamp}
|
|
456
119
|
</react_native_1.Text>
|
|
457
120
|
</react_native_1.View>
|
|
458
121
|
</react_native_1.View>
|
|
459
122
|
|
|
460
123
|
|
|
461
|
-
{
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
marginBottom: 2,
|
|
467
|
-
paddingHorizontal: 8,
|
|
468
|
-
paddingVertical: 4,
|
|
469
|
-
backgroundColor: AppColors_1.AppColors.grayBackground,
|
|
470
|
-
borderRadius: 6,
|
|
471
|
-
borderWidth: 1,
|
|
472
|
-
borderColor: AppColors_1.AppColors.dividerColor,
|
|
473
|
-
}}>
|
|
474
|
-
<react_native_1.View style={{
|
|
475
|
-
flexDirection: 'row',
|
|
476
|
-
alignItems: 'center',
|
|
477
|
-
gap: 5,
|
|
478
|
-
flex: 1,
|
|
479
|
-
minWidth: 0,
|
|
480
|
-
}}>
|
|
481
|
-
<NetworkIcons_1.DocIcon color={AppColors_1.AppColors.sky600} size={10}/>
|
|
482
|
-
<react_native_1.Text style={{
|
|
483
|
-
fontFamily: AppFonts_1.AppFonts.interMedium,
|
|
484
|
-
fontSize: 9.5,
|
|
485
|
-
color: AppColors_1.AppColors.grayTextWeak,
|
|
486
|
-
}}>
|
|
487
|
-
{t('redux.triggeredFrom', 'Triggered From:')}
|
|
124
|
+
{o.callerFile&&<react_native_1.View style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginTop:6,marginBottom:2,paddingHorizontal:8,paddingVertical:4,backgroundColor:AppColors_1.AppColors.grayBackground,borderRadius:6,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor}}>
|
|
125
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:5,flex:1,minWidth:0}}>
|
|
126
|
+
<NetworkIcons_1.DocIcon color={AppColors_1.AppColors.sky600}size={10}/>
|
|
127
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:9.5,color:AppColors_1.AppColors.grayTextWeak}}>
|
|
128
|
+
{e("redux.triggeredFrom","Triggered From:")}
|
|
488
129
|
</react_native_1.Text>
|
|
489
|
-
<react_native_1.Text style={{
|
|
490
|
-
|
|
491
|
-
fontSize: 9.5,
|
|
492
|
-
color: AppColors_1.AppColors.sky600,
|
|
493
|
-
}} numberOfLines={1}>
|
|
494
|
-
{callerBasename}:{action.callerLine || 1}
|
|
130
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,color:AppColors_1.AppColors.sky600}}numberOfLines={1}>
|
|
131
|
+
{D}:{o.callerLine||1}
|
|
495
132
|
</react_native_1.Text>
|
|
496
133
|
</react_native_1.View>
|
|
497
134
|
|
|
498
|
-
<react_native_1.Pressable onPress={()
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
backgroundColor: AppColors_1.AppColors.sky100,
|
|
503
|
-
paddingHorizontal: 5,
|
|
504
|
-
paddingVertical: 2,
|
|
505
|
-
borderRadius: 4,
|
|
506
|
-
}}>
|
|
507
|
-
<NetworkIcons_1.ExternalLinkIcon color={AppColors_1.AppColors.sky600} size={9}/>
|
|
508
|
-
<react_native_1.Text style={{
|
|
509
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
510
|
-
fontSize: 8.5,
|
|
511
|
-
color: AppColors_1.AppColors.sky600,
|
|
512
|
-
}}>
|
|
513
|
-
{t('redux.openInEditor', 'Open in Editor')}
|
|
135
|
+
<react_native_1.Pressable onPress={()=>(0,helpers_1.openInVSCode)(o.callerFile,o.callerLine,o.callerCol)}hitSlop={8}style={{flexDirection:"row",alignItems:"center",gap:3,backgroundColor:AppColors_1.AppColors.sky100,paddingHorizontal:5,paddingVertical:2,borderRadius:4}}>
|
|
136
|
+
<NetworkIcons_1.ExternalLinkIcon color={AppColors_1.AppColors.sky600}size={9}/>
|
|
137
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8.5,color:AppColors_1.AppColors.sky600}}>
|
|
138
|
+
{e("redux.openInEditor","Open in Editor")}
|
|
514
139
|
</react_native_1.Text>
|
|
515
140
|
</react_native_1.Pressable>
|
|
516
|
-
</react_native_1.View>
|
|
141
|
+
</react_native_1.View>}
|
|
517
142
|
|
|
518
143
|
|
|
519
|
-
{
|
|
144
|
+
{C?<react_native_1.View style={reduxDetailStyles.expandedContent}>
|
|
520
145
|
|
|
521
|
-
{
|
|
146
|
+
{o.stack?<react_native_1.View style={{marginBottom:12}}>
|
|
522
147
|
<react_native_1.Text style={reduxDetailStyles.expandedSectionTitle}>
|
|
523
|
-
{
|
|
148
|
+
{e("redux.callStack","Call Stack Trace")}:
|
|
524
149
|
</react_native_1.Text>
|
|
525
|
-
<react_native_1.View style={{
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
gap: 4,
|
|
532
|
-
}}>
|
|
533
|
-
{action.stack
|
|
534
|
-
.split('\n')
|
|
535
|
-
.map(l => l.trim())
|
|
536
|
-
.filter(l => l.length > 0 &&
|
|
537
|
-
!l.includes('reduxLogger') &&
|
|
538
|
-
!l.includes('inspectorReduxMiddleware'))
|
|
539
|
-
.slice(0, 8)
|
|
540
|
-
.map((frameLine, fIdx) => {
|
|
541
|
-
const parsed = (0, helpers_1.parseStackLine)(frameLine, fIdx === 0);
|
|
542
|
-
const isApp = parsed.frameType === 'app';
|
|
543
|
-
return (<react_native_1.Pressable key={fIdx} onPress={() => {
|
|
544
|
-
if (parsed.fileName !== 'Unknown') {
|
|
545
|
-
(0, helpers_1.openInVSCode)(parsed.fullPath ||
|
|
546
|
-
parsed.fileName, parsed.lineNumber, parsed.columnNumber);
|
|
547
|
-
}
|
|
548
|
-
}} style={{
|
|
549
|
-
flexDirection: 'row',
|
|
550
|
-
alignItems: 'center',
|
|
551
|
-
justifyContent: 'space-between',
|
|
552
|
-
paddingVertical: 3,
|
|
553
|
-
borderBottomWidth: fIdx < 7 ? 0.5 : 0,
|
|
554
|
-
borderBottomColor: AppColors_1.AppColors.dividerColor,
|
|
555
|
-
}}>
|
|
556
|
-
<react_native_1.View style={{ flex: 1, minWidth: 0 }}>
|
|
557
|
-
<react_native_1.Text style={{
|
|
558
|
-
fontFamily: isApp
|
|
559
|
-
? AppFonts_1.AppFonts.interBold
|
|
560
|
-
: AppFonts_1.AppFonts.interRegular,
|
|
561
|
-
fontSize: 9.5,
|
|
562
|
-
color: isApp
|
|
563
|
-
? AppColors_1.AppColors.primaryBlack
|
|
564
|
-
: AppColors_1.AppColors.grayTextWeak,
|
|
565
|
-
}} numberOfLines={1}>
|
|
566
|
-
{parsed.functionName || 'anonymous'}
|
|
150
|
+
<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.grayBackground,borderRadius:8,padding:8,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,gap:4}}>
|
|
151
|
+
{o.stack.split(`
|
|
152
|
+
`).map(f=>f.trim()).filter(f=>f.length>0&&!f.includes("reduxLogger")&&!f.includes("inspectorReduxMiddleware")).slice(0,8).map((f,v)=>{const u=(0,helpers_1.parseStackLine)(f,v===0),w=u.frameType==="app";return<react_native_1.Pressable key={v}onPress={()=>{u.fileName!=="Unknown"&&(0,helpers_1.openInVSCode)(u.fullPath||u.fileName,u.lineNumber,u.columnNumber)}}style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:3,borderBottomWidth:v<7?.5:0,borderBottomColor:AppColors_1.AppColors.dividerColor}}>
|
|
153
|
+
<react_native_1.View style={{flex:1,minWidth:0}}>
|
|
154
|
+
<react_native_1.Text style={{fontFamily:w?AppFonts_1.AppFonts.interBold:AppFonts_1.AppFonts.interRegular,fontSize:9.5,color:w?AppColors_1.AppColors.primaryBlack:AppColors_1.AppColors.grayTextWeak}}numberOfLines={1}>
|
|
155
|
+
{u.functionName||"anonymous"}
|
|
567
156
|
</react_native_1.Text>
|
|
568
|
-
<react_native_1.Text style={{
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
? AppColors_1.AppColors.sky600
|
|
573
|
-
: AppColors_1.AppColors.grayTextWeak,
|
|
574
|
-
}} numberOfLines={1}>
|
|
575
|
-
{parsed.fileName}:
|
|
576
|
-
{parsed.lineNumber || 1}:
|
|
577
|
-
{parsed.columnNumber || 1}
|
|
157
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:8.5,color:w?AppColors_1.AppColors.sky600:AppColors_1.AppColors.grayTextWeak}}numberOfLines={1}>
|
|
158
|
+
{u.fileName}:
|
|
159
|
+
{u.lineNumber||1}:
|
|
160
|
+
{u.columnNumber||1}
|
|
578
161
|
</react_native_1.Text>
|
|
579
162
|
</react_native_1.View>
|
|
580
|
-
{
|
|
581
|
-
</react_native_1.Pressable>)
|
|
582
|
-
})}
|
|
163
|
+
{w&&<NetworkIcons_1.ExternalLinkIcon color={AppColors_1.AppColors.sky600}size={10}/>}
|
|
164
|
+
</react_native_1.Pressable>})}
|
|
583
165
|
</react_native_1.View>
|
|
584
|
-
</react_native_1.View
|
|
166
|
+
</react_native_1.View>:null}
|
|
585
167
|
|
|
586
|
-
{
|
|
168
|
+
{o.payload!==void 0&&<react_native_1.View style={{marginBottom:12}}>
|
|
587
169
|
<react_native_1.Text style={reduxDetailStyles.expandedSectionTitle}>
|
|
588
|
-
{
|
|
170
|
+
{e("redux.actionPayload","Action Payload:")}
|
|
589
171
|
</react_native_1.Text>
|
|
590
|
-
<JsonViewer_1.default data={
|
|
591
|
-
</react_native_1.View>
|
|
172
|
+
<JsonViewer_1.default data={o.payload}search={d}forceOpen={!0}wrap={!0}/>
|
|
173
|
+
</react_native_1.View>}
|
|
592
174
|
|
|
593
175
|
<react_native_1.Text style={reduxDetailStyles.expandedSectionTitle}>
|
|
594
|
-
{
|
|
176
|
+
{e("redux.stateChangesDiff","State Changes (Diff):")}
|
|
595
177
|
</react_native_1.Text>
|
|
596
|
-
<DiffViewer_1.default oldData={
|
|
597
|
-
</react_native_1.View
|
|
178
|
+
<DiffViewer_1.default oldData={o.prevState?.[r]||{}}newData={o.nextState?.[r]||{}}forceOpen={!0}/>
|
|
179
|
+
</react_native_1.View>:<react_native_1.View style={reduxDetailStyles.collapsedPrompt}>
|
|
598
180
|
<react_native_1.Text style={reduxDetailStyles.collapsedPromptText}>
|
|
599
|
-
{
|
|
181
|
+
{e("redux.tapToInspectAction","Tap to inspect action payload & diff changes")}
|
|
600
182
|
</react_native_1.Text>
|
|
601
|
-
<NetworkIcons_1.ForwardChevronIcon color={AppColors_1.AppColors.grayTextWeak}
|
|
602
|
-
</react_native_1.View>
|
|
183
|
+
<NetworkIcons_1.ForwardChevronIcon color={AppColors_1.AppColors.grayTextWeak}size={12}/>
|
|
184
|
+
</react_native_1.View>}
|
|
603
185
|
</TouchableScale_1.default>
|
|
604
|
-
</AnimatedEntrance_1.default>)
|
|
605
|
-
|
|
606
|
-
</react_native_1.ScrollView>) : sliceTab === 'metadata' ? (<react_native_1.ScrollView style={{ flex: 1 }} contentContainerStyle={{ padding: 12, paddingBottom: 40 }} keyboardShouldPersistTaps="handled">
|
|
186
|
+
</AnimatedEntrance_1.default>})}
|
|
187
|
+
</react_native_1.ScrollView>:y==="metadata"?<react_native_1.ScrollView style={{flex:1}}contentContainerStyle={{padding:12,paddingBottom:40}}keyboardShouldPersistTaps="handled">
|
|
607
188
|
<react_native_1.View style={reduxDetailStyles.metadataCard}>
|
|
608
|
-
{[
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
{
|
|
612
|
-
{
|
|
613
|
-
label: 'Persistence Status',
|
|
614
|
-
value: isPersisted
|
|
615
|
-
? `Persisted (${(0, helpers_1.getSize)(persistedData)})`
|
|
616
|
-
: 'Not Persisted (In-Memory)',
|
|
617
|
-
},
|
|
618
|
-
{
|
|
619
|
-
label: 'Dispatched Actions History',
|
|
620
|
-
value: `${sliceActions.length} recorded actions`,
|
|
621
|
-
},
|
|
622
|
-
{
|
|
623
|
-
label: 'Last Dispatched Action',
|
|
624
|
-
value: lastAction ? lastAction.type : 'None',
|
|
625
|
-
},
|
|
626
|
-
{
|
|
627
|
-
label: 'Last Action Timestamp',
|
|
628
|
-
value: lastAction ? lastAction.timestamp : 'Initial',
|
|
629
|
-
},
|
|
630
|
-
].map((row, rIdx) => (<react_native_1.View key={rIdx} style={[
|
|
631
|
-
reduxDetailStyles.metaRow,
|
|
632
|
-
rIdx === 6 && { borderBottomWidth: 0 },
|
|
633
|
-
]}>
|
|
634
|
-
<react_native_1.Text style={reduxDetailStyles.metaLabel}>{row.label}</react_native_1.Text>
|
|
635
|
-
<react_native_1.Text style={reduxDetailStyles.metaValue} selectable numberOfLines={2}>
|
|
636
|
-
{row.value}
|
|
189
|
+
{[{label:"Slice Name",value:r},{label:"Root Keys Count",value:`${p} keys`},{label:"In-Memory State Size",value:(0,helpers_1.getSize)(a)},{label:"Persistence Status",value:_?`Persisted (${(0,helpers_1.getSize)(A)})`:"Not Persisted (In-Memory)"},{label:"Dispatched Actions History",value:`${x.length} recorded actions`},{label:"Last Dispatched Action",value:c?c.type:"None"},{label:"Last Action Timestamp",value:c?c.timestamp:"Initial"}].map((o,s)=><react_native_1.View key={s}style={[reduxDetailStyles.metaRow,s===6&&{borderBottomWidth:0}]}>
|
|
190
|
+
<react_native_1.Text style={reduxDetailStyles.metaLabel}>{o.label}</react_native_1.Text>
|
|
191
|
+
<react_native_1.Text style={reduxDetailStyles.metaValue}selectable numberOfLines={2}>
|
|
192
|
+
{o.value}
|
|
637
193
|
</react_native_1.Text>
|
|
638
|
-
</react_native_1.View>)
|
|
194
|
+
</react_native_1.View>)}
|
|
639
195
|
|
|
640
|
-
{
|
|
641
|
-
<NetworkIcons_1.TrashIcon color={AppColors_1.AppColors.errorColor}
|
|
196
|
+
{_&&<react_native_1.TouchableOpacity style={reduxDetailStyles.clearPersistBtn}onPress={z}>
|
|
197
|
+
<NetworkIcons_1.TrashIcon color={AppColors_1.AppColors.errorColor}size={14}/>
|
|
642
198
|
<react_native_1.Text style={reduxDetailStyles.clearPersistText}>
|
|
643
199
|
Clear Persisted Storage For This Slice
|
|
644
200
|
</react_native_1.Text>
|
|
645
|
-
</react_native_1.TouchableOpacity>
|
|
201
|
+
</react_native_1.TouchableOpacity>}
|
|
646
202
|
</react_native_1.View>
|
|
647
|
-
</react_native_1.ScrollView
|
|
648
|
-
{
|
|
203
|
+
</react_native_1.ScrollView>:y==="persisted"?<react_native_1.View style={{flex:1,padding:10}}>
|
|
204
|
+
{_?<react_native_1.View style={{flex:1}}>
|
|
649
205
|
<react_native_1.View style={reduxDetailStyles.persistedInfoCard}>
|
|
650
|
-
<react_native_1.View style={{
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
justifyContent: 'space-between',
|
|
654
|
-
}}>
|
|
655
|
-
<react_native_1.View style={{
|
|
656
|
-
flexDirection: 'row',
|
|
657
|
-
alignItems: 'center',
|
|
658
|
-
gap: 6,
|
|
659
|
-
}}>
|
|
660
|
-
<NetworkIcons_1.StorageIcon color={AppColors_1.AppColors.emerald700} size={14}/>
|
|
206
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between"}}>
|
|
207
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:6}}>
|
|
208
|
+
<NetworkIcons_1.StorageIcon color={AppColors_1.AppColors.emerald700}size={14}/>
|
|
661
209
|
<react_native_1.Text style={reduxDetailStyles.persistedInfoTitle}>
|
|
662
|
-
Stored in persistent storage ({(0,
|
|
210
|
+
Stored in persistent storage ({(0,helpers_1.getSize)(A)})
|
|
663
211
|
</react_native_1.Text>
|
|
664
212
|
</react_native_1.View>
|
|
665
|
-
<react_native_1.TouchableOpacity style={reduxDetailStyles.clearPersistMiniBtn}
|
|
666
|
-
<NetworkIcons_1.TrashIcon color={AppColors_1.AppColors.errorColor}
|
|
213
|
+
<react_native_1.TouchableOpacity style={reduxDetailStyles.clearPersistMiniBtn}onPress={z}>
|
|
214
|
+
<NetworkIcons_1.TrashIcon color={AppColors_1.AppColors.errorColor}size={12}/>
|
|
667
215
|
<react_native_1.Text style={reduxDetailStyles.clearPersistMiniText}>
|
|
668
216
|
Clear
|
|
669
217
|
</react_native_1.Text>
|
|
670
218
|
</react_native_1.TouchableOpacity>
|
|
671
219
|
</react_native_1.View>
|
|
672
220
|
</react_native_1.View>
|
|
673
|
-
<react_native_1.View style={{
|
|
674
|
-
<JsonViewer_1.default data={
|
|
221
|
+
<react_native_1.View style={{flex:1,marginTop:8}}>
|
|
222
|
+
<JsonViewer_1.default data={A}search={d}forceOpen={d.length>0?!0:void 0}mode={k}onModeChange={B}fullHeight={!0}wrap={!0}/>
|
|
675
223
|
</react_native_1.View>
|
|
676
|
-
</react_native_1.View
|
|
677
|
-
<NetworkIcons_1.StorageIcon color={AppColors_1.AppColors.grayTextWeak}
|
|
224
|
+
</react_native_1.View>:<react_native_1.View style={reduxDetailStyles.emptyBox}>
|
|
225
|
+
<NetworkIcons_1.StorageIcon color={AppColors_1.AppColors.grayTextWeak}size={32}/>
|
|
678
226
|
<react_native_1.Text style={reduxDetailStyles.emptyBoxTitle}>
|
|
679
227
|
Not Persisted in Storage
|
|
680
228
|
</react_native_1.Text>
|
|
@@ -682,279 +230,124 @@ const ReduxDetail = react_1.default.memo(() => {
|
|
|
682
230
|
This slice is not stored in AsyncStorage or redux-persist.
|
|
683
231
|
State exists purely in active JavaScript memory.
|
|
684
232
|
</react_native_1.Text>
|
|
685
|
-
</react_native_1.View>
|
|
686
|
-
</react_native_1.View
|
|
687
|
-
<JsonViewer_1.default data={
|
|
688
|
-
</react_native_1.View>
|
|
689
|
-
</react_native_1.View>);
|
|
690
|
-
}
|
|
691
|
-
if (selectedReduxAction != null) {
|
|
692
|
-
const originMeta = getOriginBadge(selectedReduxAction.originType);
|
|
693
|
-
const callerBasename = selectedReduxAction.callerFile
|
|
694
|
-
? selectedReduxAction.callerFile.split('/').pop()
|
|
695
|
-
: null;
|
|
696
|
-
const actionTabs = [
|
|
697
|
-
{
|
|
698
|
-
key: 'payload',
|
|
699
|
-
label: t('redux.payload', 'Payload'),
|
|
700
|
-
icon: (isActive) => (<NetworkIcons_1.CodeBracketsIcon color={isActive ? AppColors_1.AppColors.white : AppColors_1.AppColors.grayText} size={12}/>),
|
|
701
|
-
},
|
|
702
|
-
{
|
|
703
|
-
key: 'diff',
|
|
704
|
-
label: t('redux.diff', 'State Diff'),
|
|
705
|
-
icon: (isActive) => (<NetworkIcons_1.TimelineIcon color={isActive ? AppColors_1.AppColors.white : AppColors_1.AppColors.grayText} size={12}/>),
|
|
706
|
-
},
|
|
707
|
-
{
|
|
708
|
-
key: 'stack',
|
|
709
|
-
label: t('redux.callStack', 'Call Stack'),
|
|
710
|
-
icon: (isActive) => (<NetworkIcons_1.DocIcon color={isActive ? AppColors_1.AppColors.white : AppColors_1.AppColors.grayText} size={12}/>),
|
|
711
|
-
},
|
|
712
|
-
{
|
|
713
|
-
key: 'raw',
|
|
714
|
-
label: 'Raw Action',
|
|
715
|
-
icon: (isActive) => (<NetworkIcons_1.LiveStateIcon color={isActive ? AppColors_1.AppColors.white : AppColors_1.AppColors.grayText} size={12}/>),
|
|
716
|
-
},
|
|
717
|
-
];
|
|
718
|
-
return (<react_native_1.View style={{ flex: 1, backgroundColor: AppColors_1.AppColors.grayBackground }}>
|
|
233
|
+
</react_native_1.View>}
|
|
234
|
+
</react_native_1.View>:<react_native_1.View style={{flex:1,padding:10}}>
|
|
235
|
+
<JsonViewer_1.default data={a}search={d}forceOpen={d.length>0?!0:void 0}mode={k}onModeChange={B}fullHeight={!0}wrap={!0}/>
|
|
236
|
+
</react_native_1.View>}
|
|
237
|
+
</react_native_1.View>}if(t!=null){const a=getOriginBadge(t.originType),p=t.callerFile?t.callerFile.split("/").pop():null,c=[{key:"payload",label:e("redux.payload","Payload"),icon:n=><NetworkIcons_1.CodeBracketsIcon color={n?AppColors_1.AppColors.white:AppColors_1.AppColors.grayText}size={12}/>},{key:"diff",label:e("redux.diff","State Diff"),icon:n=><NetworkIcons_1.TimelineIcon color={n?AppColors_1.AppColors.white:AppColors_1.AppColors.grayText}size={12}/>},{key:"stack",label:e("redux.callStack","Call Stack"),icon:n=><NetworkIcons_1.DocIcon color={n?AppColors_1.AppColors.white:AppColors_1.AppColors.grayText}size={12}/>},{key:"raw",label:"Raw Action",icon:n=><NetworkIcons_1.LiveStateIcon color={n?AppColors_1.AppColors.white:AppColors_1.AppColors.grayText}size={12}/>}];return<react_native_1.View style={{flex:1,backgroundColor:AppColors_1.AppColors.grayBackground}}>
|
|
719
238
|
|
|
720
239
|
<react_native_1.View style={reduxDetailStyles.infoBar}>
|
|
721
240
|
<react_native_1.View style={reduxDetailStyles.infoTopRow}>
|
|
722
|
-
<react_native_1.View style={{
|
|
723
|
-
flexDirection: 'row',
|
|
724
|
-
alignItems: 'center',
|
|
725
|
-
gap: 6,
|
|
726
|
-
flexWrap: 'wrap',
|
|
727
|
-
flex: 1,
|
|
728
|
-
minWidth: 0,
|
|
729
|
-
}}>
|
|
241
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:6,flexWrap:"wrap",flex:1,minWidth:0}}>
|
|
730
242
|
<react_native_1.View style={reduxDetailStyles.actionBadge}>
|
|
731
243
|
<react_native_1.Text style={reduxDetailStyles.actionBadgeText}>
|
|
732
|
-
#{
|
|
244
|
+
#{t.id}
|
|
733
245
|
</react_native_1.Text>
|
|
734
246
|
</react_native_1.View>
|
|
735
247
|
|
|
736
|
-
<react_native_1.View style={{
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
backgroundColor: originMeta.bg,
|
|
741
|
-
paddingHorizontal: 5,
|
|
742
|
-
paddingVertical: 2,
|
|
743
|
-
borderRadius: 4,
|
|
744
|
-
borderWidth: 1,
|
|
745
|
-
borderColor: originMeta.border,
|
|
746
|
-
}}>
|
|
747
|
-
{originMeta.renderIcon(originMeta.text, 8.5)}
|
|
748
|
-
<react_native_1.Text style={{
|
|
749
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
750
|
-
fontSize: 8.5,
|
|
751
|
-
color: originMeta.text,
|
|
752
|
-
letterSpacing: 0.3,
|
|
753
|
-
}}>
|
|
754
|
-
{originMeta.label}
|
|
248
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:3,backgroundColor:a.bg,paddingHorizontal:5,paddingVertical:2,borderRadius:4,borderWidth:1,borderColor:a.border}}>
|
|
249
|
+
{a.renderIcon(a.text,8.5)}
|
|
250
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8.5,color:a.text,letterSpacing:.3}}>
|
|
251
|
+
{a.label}
|
|
755
252
|
</react_native_1.Text>
|
|
756
253
|
</react_native_1.View>
|
|
757
|
-
<react_native_1.Text style={reduxDetailStyles.sliceNameText}
|
|
758
|
-
{
|
|
254
|
+
<react_native_1.Text style={reduxDetailStyles.sliceNameText}numberOfLines={1}>
|
|
255
|
+
{t.type}
|
|
759
256
|
</react_native_1.Text>
|
|
760
|
-
{
|
|
761
|
-
<NetworkIcons_1.ClockIcon color={AppColors_1.AppColors.purple}
|
|
257
|
+
{t.timestamp&&<react_native_1.View style={reduxDetailStyles.timePill}>
|
|
258
|
+
<NetworkIcons_1.ClockIcon color={AppColors_1.AppColors.purple}size={10}/>
|
|
762
259
|
<react_native_1.Text style={reduxDetailStyles.timeText}>
|
|
763
|
-
{
|
|
260
|
+
{t.timestamp}
|
|
764
261
|
</react_native_1.Text>
|
|
765
|
-
</react_native_1.View>
|
|
262
|
+
</react_native_1.View>}
|
|
766
263
|
</react_native_1.View>
|
|
767
264
|
|
|
768
265
|
|
|
769
|
-
<CopyButton_1.default value={()
|
|
266
|
+
<CopyButton_1.default value={()=>t}label="Copy Action"/>
|
|
770
267
|
</react_native_1.View>
|
|
771
268
|
|
|
772
269
|
|
|
773
270
|
<react_native_1.View style={reduxDetailStyles.subStatsRow}>
|
|
774
|
-
{
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
{
|
|
778
|
-
backgroundColor: AppColors_1.AppColors.indigo50,
|
|
779
|
-
borderColor: AppColors_1.AppColors.indigo400,
|
|
780
|
-
},
|
|
781
|
-
]}>
|
|
782
|
-
<NetworkIcons_1.LayersIcon color={AppColors_1.AppColors.indigo600Alt} size={11}/>
|
|
783
|
-
<react_native_1.Text style={[
|
|
784
|
-
reduxDetailStyles.statLabel,
|
|
785
|
-
{ color: AppColors_1.AppColors.indigo600Alt },
|
|
786
|
-
]}>
|
|
271
|
+
{t.affectedSlices&&t.affectedSlices.length>0&&<react_native_1.View style={[reduxDetailStyles.statPill,{backgroundColor:AppColors_1.AppColors.indigo50,borderColor:AppColors_1.AppColors.indigo400}]}>
|
|
272
|
+
<NetworkIcons_1.LayersIcon color={AppColors_1.AppColors.indigo600Alt}size={11}/>
|
|
273
|
+
<react_native_1.Text style={[reduxDetailStyles.statLabel,{color:AppColors_1.AppColors.indigo600Alt}]}>
|
|
787
274
|
Slices:
|
|
788
275
|
</react_native_1.Text>
|
|
789
|
-
<react_native_1.Text style={[
|
|
790
|
-
|
|
791
|
-
{ color: AppColors_1.AppColors.indigo600Alt },
|
|
792
|
-
]}>
|
|
793
|
-
{selectedReduxAction.affectedSlices.join(', ')}
|
|
276
|
+
<react_native_1.Text style={[reduxDetailStyles.statValue,{color:AppColors_1.AppColors.indigo600Alt}]}>
|
|
277
|
+
{t.affectedSlices.join(", ")}
|
|
794
278
|
</react_native_1.Text>
|
|
795
|
-
</react_native_1.View>
|
|
796
|
-
<react_native_1.View style={[
|
|
797
|
-
|
|
798
|
-
{
|
|
799
|
-
backgroundColor: AppColors_1.AppColors.sky100,
|
|
800
|
-
borderColor: AppColors_1.AppColors.sky400,
|
|
801
|
-
},
|
|
802
|
-
]}>
|
|
803
|
-
<react_native_1.Text style={[
|
|
804
|
-
reduxDetailStyles.statLabel,
|
|
805
|
-
{ color: AppColors_1.AppColors.sky600 },
|
|
806
|
-
]}>
|
|
279
|
+
</react_native_1.View>}
|
|
280
|
+
<react_native_1.View style={[reduxDetailStyles.statPill,{backgroundColor:AppColors_1.AppColors.sky100,borderColor:AppColors_1.AppColors.sky400}]}>
|
|
281
|
+
<react_native_1.Text style={[reduxDetailStyles.statLabel,{color:AppColors_1.AppColors.sky600}]}>
|
|
807
282
|
Payload Size:
|
|
808
283
|
</react_native_1.Text>
|
|
809
|
-
<react_native_1.Text style={[
|
|
810
|
-
|
|
811
|
-
{ color: AppColors_1.AppColors.sky600 },
|
|
812
|
-
]}>
|
|
813
|
-
{(0, helpers_1.getSize)(selectedReduxAction.payload)}
|
|
284
|
+
<react_native_1.Text style={[reduxDetailStyles.statValue,{color:AppColors_1.AppColors.sky600}]}>
|
|
285
|
+
{(0,helpers_1.getSize)(t.payload)}
|
|
814
286
|
</react_native_1.Text>
|
|
815
287
|
</react_native_1.View>
|
|
816
288
|
</react_native_1.View>
|
|
817
289
|
|
|
818
290
|
|
|
819
|
-
{
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
marginTop: 8,
|
|
824
|
-
paddingHorizontal: 8,
|
|
825
|
-
paddingVertical: 4,
|
|
826
|
-
backgroundColor: AppColors_1.AppColors.grayBackground,
|
|
827
|
-
borderRadius: 6,
|
|
828
|
-
borderWidth: 1,
|
|
829
|
-
borderColor: AppColors_1.AppColors.dividerColor,
|
|
830
|
-
}}>
|
|
831
|
-
<react_native_1.View style={{
|
|
832
|
-
flexDirection: 'row',
|
|
833
|
-
alignItems: 'center',
|
|
834
|
-
gap: 5,
|
|
835
|
-
flex: 1,
|
|
836
|
-
minWidth: 0,
|
|
837
|
-
}}>
|
|
838
|
-
<NetworkIcons_1.DocIcon color={AppColors_1.AppColors.sky600} size={10}/>
|
|
839
|
-
<react_native_1.Text style={{
|
|
840
|
-
fontFamily: AppFonts_1.AppFonts.interMedium,
|
|
841
|
-
fontSize: 9.5,
|
|
842
|
-
color: AppColors_1.AppColors.grayTextWeak,
|
|
843
|
-
}}>
|
|
291
|
+
{t.callerFile&&<react_native_1.View style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginTop:8,paddingHorizontal:8,paddingVertical:4,backgroundColor:AppColors_1.AppColors.grayBackground,borderRadius:6,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor}}>
|
|
292
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:5,flex:1,minWidth:0}}>
|
|
293
|
+
<NetworkIcons_1.DocIcon color={AppColors_1.AppColors.sky600}size={10}/>
|
|
294
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:9.5,color:AppColors_1.AppColors.grayTextWeak}}>
|
|
844
295
|
Triggered from:
|
|
845
296
|
</react_native_1.Text>
|
|
846
|
-
<react_native_1.Text style={{
|
|
847
|
-
|
|
848
|
-
fontSize: 9.5,
|
|
849
|
-
color: AppColors_1.AppColors.sky600,
|
|
850
|
-
}} numberOfLines={1}>
|
|
851
|
-
{callerBasename}:{selectedReduxAction.callerLine || 1}
|
|
297
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,color:AppColors_1.AppColors.sky600}}numberOfLines={1}>
|
|
298
|
+
{p}:{t.callerLine||1}
|
|
852
299
|
</react_native_1.Text>
|
|
853
300
|
</react_native_1.View>
|
|
854
301
|
|
|
855
|
-
<react_native_1.Pressable onPress={()
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
gap: 3,
|
|
859
|
-
backgroundColor: AppColors_1.AppColors.sky100,
|
|
860
|
-
paddingHorizontal: 5,
|
|
861
|
-
paddingVertical: 2,
|
|
862
|
-
borderRadius: 4,
|
|
863
|
-
}}>
|
|
864
|
-
<NetworkIcons_1.ExternalLinkIcon color={AppColors_1.AppColors.sky600} size={9}/>
|
|
865
|
-
<react_native_1.Text style={{
|
|
866
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
867
|
-
fontSize: 8.5,
|
|
868
|
-
color: AppColors_1.AppColors.sky600,
|
|
869
|
-
}}>
|
|
302
|
+
<react_native_1.Pressable onPress={()=>(0,helpers_1.openInVSCode)(t.callerFile,t.callerLine,t.callerCol)}hitSlop={8}style={{flexDirection:"row",alignItems:"center",gap:3,backgroundColor:AppColors_1.AppColors.sky100,paddingHorizontal:5,paddingVertical:2,borderRadius:4}}>
|
|
303
|
+
<NetworkIcons_1.ExternalLinkIcon color={AppColors_1.AppColors.sky600}size={9}/>
|
|
304
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8.5,color:AppColors_1.AppColors.sky600}}>
|
|
870
305
|
Open in Editor
|
|
871
306
|
</react_native_1.Text>
|
|
872
307
|
</react_native_1.Pressable>
|
|
873
|
-
</react_native_1.View>
|
|
308
|
+
</react_native_1.View>}
|
|
874
309
|
|
|
875
310
|
|
|
876
|
-
<SegmentedTabs_1.default tabs={
|
|
311
|
+
<SegmentedTabs_1.default tabs={c}activeKey={b}onChange={n=>F(n)}style={{marginTop:10}}/>
|
|
877
312
|
</react_native_1.View>
|
|
878
313
|
|
|
879
314
|
|
|
880
|
-
{
|
|
881
|
-
{
|
|
315
|
+
{b==="payload"?<react_native_1.View style={{flex:1,padding:10}}>
|
|
316
|
+
{t.payload!==void 0?<JsonViewer_1.default data={t.payload}search={d}forceOpen={!0}fullHeight={!0}wrap={!0}/>:<react_native_1.View style={reduxDetailStyles.emptyBox}>
|
|
882
317
|
<react_native_1.Text style={reduxDetailStyles.emptyBoxText}>
|
|
883
318
|
This action has no payload dispatched.
|
|
884
319
|
</react_native_1.Text>
|
|
885
|
-
</react_native_1.View>
|
|
886
|
-
</react_native_1.View
|
|
887
|
-
<DiffViewer_1.default oldData={
|
|
888
|
-
</react_native_1.ScrollView
|
|
889
|
-
{
|
|
890
|
-
backgroundColor: AppColors_1.AppColors.white,
|
|
891
|
-
borderRadius: 10,
|
|
892
|
-
padding: 10,
|
|
893
|
-
borderWidth: 1,
|
|
894
|
-
borderColor: AppColors_1.AppColors.dividerColor,
|
|
895
|
-
}}>
|
|
320
|
+
</react_native_1.View>}
|
|
321
|
+
</react_native_1.View>:b==="diff"?<react_native_1.ScrollView style={{flex:1}}contentContainerStyle={{padding:12,paddingBottom:40}}keyboardShouldPersistTaps="handled">
|
|
322
|
+
<DiffViewer_1.default oldData={t.prevState||{}}newData={t.nextState||{}}forceOpen={!0}/>
|
|
323
|
+
</react_native_1.ScrollView>:b==="stack"?<react_native_1.ScrollView style={{flex:1}}contentContainerStyle={{padding:12,paddingBottom:40}}keyboardShouldPersistTaps="handled">
|
|
324
|
+
{t.stack?<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.white,borderRadius:10,padding:10,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor}}>
|
|
896
325
|
<react_native_1.Text style={reduxDetailStyles.expandedSectionTitle}>
|
|
897
326
|
Dispatched from call stack:
|
|
898
327
|
</react_native_1.Text>
|
|
899
|
-
{
|
|
900
|
-
|
|
901
|
-
.
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
!l.includes('inspectorReduxMiddleware'))
|
|
905
|
-
.map((frameLine, fIdx) => {
|
|
906
|
-
const parsed = (0, helpers_1.parseStackLine)(frameLine, fIdx === 0);
|
|
907
|
-
const isApp = parsed.frameType === 'app';
|
|
908
|
-
return (<react_native_1.Pressable key={fIdx} onPress={() => {
|
|
909
|
-
if (parsed.fileName !== 'Unknown') {
|
|
910
|
-
(0, helpers_1.openInVSCode)(parsed.fullPath || parsed.fileName, parsed.lineNumber, parsed.columnNumber);
|
|
911
|
-
}
|
|
912
|
-
}} style={{
|
|
913
|
-
flexDirection: 'row',
|
|
914
|
-
alignItems: 'center',
|
|
915
|
-
justifyContent: 'space-between',
|
|
916
|
-
paddingVertical: 5,
|
|
917
|
-
borderBottomWidth: 0.5,
|
|
918
|
-
borderBottomColor: AppColors_1.AppColors.dividerColor,
|
|
919
|
-
}}>
|
|
920
|
-
<react_native_1.View style={{ flex: 1, minWidth: 0 }}>
|
|
921
|
-
<react_native_1.Text style={{
|
|
922
|
-
fontFamily: isApp
|
|
923
|
-
? AppFonts_1.AppFonts.interBold
|
|
924
|
-
: AppFonts_1.AppFonts.interRegular,
|
|
925
|
-
fontSize: 10.5,
|
|
926
|
-
color: isApp
|
|
927
|
-
? AppColors_1.AppColors.primaryBlack
|
|
928
|
-
: AppColors_1.AppColors.grayTextWeak,
|
|
929
|
-
}} numberOfLines={1}>
|
|
930
|
-
{parsed.functionName || 'anonymous'}
|
|
328
|
+
{t.stack.split(`
|
|
329
|
+
`).map(n=>n.trim()).filter(n=>n.length>0&&!n.includes("reduxLogger")&&!n.includes("inspectorReduxMiddleware")).map((n,o)=>{const s=(0,helpers_1.parseStackLine)(n,o===0),C=s.frameType==="app";return<react_native_1.Pressable key={o}onPress={()=>{s.fileName!=="Unknown"&&(0,helpers_1.openInVSCode)(s.fullPath||s.fileName,s.lineNumber,s.columnNumber)}}style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:5,borderBottomWidth:.5,borderBottomColor:AppColors_1.AppColors.dividerColor}}>
|
|
330
|
+
<react_native_1.View style={{flex:1,minWidth:0}}>
|
|
331
|
+
<react_native_1.Text style={{fontFamily:C?AppFonts_1.AppFonts.interBold:AppFonts_1.AppFonts.interRegular,fontSize:10.5,color:C?AppColors_1.AppColors.primaryBlack:AppColors_1.AppColors.grayTextWeak}}numberOfLines={1}>
|
|
332
|
+
{s.functionName||"anonymous"}
|
|
931
333
|
</react_native_1.Text>
|
|
932
|
-
<react_native_1.Text style={{
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
color: isApp
|
|
936
|
-
? AppColors_1.AppColors.sky600
|
|
937
|
-
: AppColors_1.AppColors.grayTextWeak,
|
|
938
|
-
}} numberOfLines={1}>
|
|
939
|
-
{parsed.fileName}:{parsed.lineNumber || 1}:
|
|
940
|
-
{parsed.columnNumber || 1}
|
|
334
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:9,color:C?AppColors_1.AppColors.sky600:AppColors_1.AppColors.grayTextWeak}}numberOfLines={1}>
|
|
335
|
+
{s.fileName}:{s.lineNumber||1}:
|
|
336
|
+
{s.columnNumber||1}
|
|
941
337
|
</react_native_1.Text>
|
|
942
338
|
</react_native_1.View>
|
|
943
|
-
{
|
|
944
|
-
</react_native_1.Pressable>)
|
|
945
|
-
|
|
946
|
-
</react_native_1.View>) : (<react_native_1.View style={reduxDetailStyles.emptyBox}>
|
|
339
|
+
{C&&<NetworkIcons_1.ExternalLinkIcon color={AppColors_1.AppColors.sky600}size={11}/>}
|
|
340
|
+
</react_native_1.Pressable>})}
|
|
341
|
+
</react_native_1.View>:<react_native_1.View style={reduxDetailStyles.emptyBox}>
|
|
947
342
|
<react_native_1.Text style={reduxDetailStyles.emptyBoxText}>
|
|
948
343
|
No call stack trace captured for this action.
|
|
949
344
|
</react_native_1.Text>
|
|
950
|
-
</react_native_1.View>
|
|
951
|
-
</react_native_1.ScrollView
|
|
952
|
-
<JsonViewer_1.default data={
|
|
953
|
-
</react_native_1.View>
|
|
954
|
-
</react_native_1.View>
|
|
955
|
-
|
|
956
|
-
return (<react_native_1.View style={reduxDetailStyles.emptyBox}>
|
|
957
|
-
<NetworkIcons_1.TerminalIcon color={AppColors_1.AppColors.purple} size={32}/>
|
|
345
|
+
</react_native_1.View>}
|
|
346
|
+
</react_native_1.ScrollView>:<react_native_1.View style={{flex:1,padding:10}}>
|
|
347
|
+
<JsonViewer_1.default data={t}forceOpen={!0}fullHeight={!0}wrap={!0}/>
|
|
348
|
+
</react_native_1.View>}
|
|
349
|
+
</react_native_1.View>}return<react_native_1.View style={reduxDetailStyles.emptyBox}>
|
|
350
|
+
<NetworkIcons_1.TerminalIcon color={AppColors_1.AppColors.purple}size={32}/>
|
|
958
351
|
<react_native_1.Text style={reduxDetailStyles.emptyBoxTitle}>
|
|
959
352
|
No Redux Slice Selected
|
|
960
353
|
</react_native_1.Text>
|
|
@@ -962,298 +355,4 @@ const ReduxDetail = react_1.default.memo(() => {
|
|
|
962
355
|
Select a slice from the Redux tab to inspect its state and dispatched
|
|
963
356
|
actions.
|
|
964
357
|
</react_native_1.Text>
|
|
965
|
-
</react_native_1.View>);
|
|
966
|
-
});
|
|
967
|
-
const reduxDetailStyles = react_native_1.StyleSheet.create({
|
|
968
|
-
infoBar: {
|
|
969
|
-
backgroundColor: AppColors_1.AppColors.white,
|
|
970
|
-
padding: 12,
|
|
971
|
-
borderBottomWidth: 1,
|
|
972
|
-
borderBottomColor: AppColors_1.AppColors.dividerColor,
|
|
973
|
-
},
|
|
974
|
-
infoTopRow: {
|
|
975
|
-
flexDirection: 'row',
|
|
976
|
-
alignItems: 'center',
|
|
977
|
-
justifyContent: 'space-between',
|
|
978
|
-
marginBottom: 8,
|
|
979
|
-
},
|
|
980
|
-
methodBadge: {
|
|
981
|
-
paddingHorizontal: 7,
|
|
982
|
-
paddingVertical: 2.5,
|
|
983
|
-
borderRadius: 5,
|
|
984
|
-
},
|
|
985
|
-
methodBadgeText: {
|
|
986
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
987
|
-
fontSize: 9.5,
|
|
988
|
-
color: AppColors_1.AppColors.white,
|
|
989
|
-
letterSpacing: 0.4,
|
|
990
|
-
},
|
|
991
|
-
sliceNameText: {
|
|
992
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
993
|
-
fontSize: 14,
|
|
994
|
-
color: AppColors_1.AppColors.primaryBlack,
|
|
995
|
-
flexShrink: 1,
|
|
996
|
-
},
|
|
997
|
-
persistedChip: {
|
|
998
|
-
flexDirection: 'row',
|
|
999
|
-
alignItems: 'center',
|
|
1000
|
-
gap: 3.5,
|
|
1001
|
-
backgroundColor: AppColors_1.AppColors.mintGreenBg,
|
|
1002
|
-
paddingHorizontal: 6,
|
|
1003
|
-
paddingVertical: 2,
|
|
1004
|
-
borderRadius: 4,
|
|
1005
|
-
borderWidth: 1,
|
|
1006
|
-
borderColor: AppColors_1.AppColors.mintGreenBorder,
|
|
1007
|
-
},
|
|
1008
|
-
persistedChipText: {
|
|
1009
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
1010
|
-
fontSize: 9,
|
|
1011
|
-
color: AppColors_1.AppColors.mintGreenText,
|
|
1012
|
-
},
|
|
1013
|
-
inMemoryChip: {
|
|
1014
|
-
backgroundColor: AppColors_1.AppColors.indigo50,
|
|
1015
|
-
paddingHorizontal: 6,
|
|
1016
|
-
paddingVertical: 2,
|
|
1017
|
-
borderRadius: 4,
|
|
1018
|
-
borderWidth: 1,
|
|
1019
|
-
borderColor: AppColors_1.AppColors.blueBorder,
|
|
1020
|
-
},
|
|
1021
|
-
inMemoryChipText: {
|
|
1022
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
1023
|
-
fontSize: 9,
|
|
1024
|
-
color: AppColors_1.AppColors.indigo600Alt,
|
|
1025
|
-
},
|
|
1026
|
-
subStatsRow: {
|
|
1027
|
-
flexDirection: 'row',
|
|
1028
|
-
alignItems: 'center',
|
|
1029
|
-
gap: 6,
|
|
1030
|
-
flexWrap: 'wrap',
|
|
1031
|
-
},
|
|
1032
|
-
statPill: {
|
|
1033
|
-
flexDirection: 'row',
|
|
1034
|
-
alignItems: 'center',
|
|
1035
|
-
gap: 4,
|
|
1036
|
-
backgroundColor: AppColors_1.AppColors.grayBackground,
|
|
1037
|
-
paddingHorizontal: 6,
|
|
1038
|
-
paddingVertical: 2.5,
|
|
1039
|
-
borderRadius: 5,
|
|
1040
|
-
borderWidth: 1,
|
|
1041
|
-
borderColor: AppColors_1.AppColors.dividerColor,
|
|
1042
|
-
},
|
|
1043
|
-
statPillText: {
|
|
1044
|
-
fontFamily: AppFonts_1.AppFonts.interMedium,
|
|
1045
|
-
fontSize: 10,
|
|
1046
|
-
color: AppColors_1.AppColors.grayText,
|
|
1047
|
-
},
|
|
1048
|
-
statLabel: {
|
|
1049
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
1050
|
-
fontSize: 10,
|
|
1051
|
-
color: AppColors_1.AppColors.grayTextWeak,
|
|
1052
|
-
},
|
|
1053
|
-
statValue: {
|
|
1054
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
1055
|
-
fontSize: 10.5,
|
|
1056
|
-
color: AppColors_1.AppColors.primaryBlack,
|
|
1057
|
-
},
|
|
1058
|
-
searchContainer: {
|
|
1059
|
-
flexDirection: 'row',
|
|
1060
|
-
alignItems: 'center',
|
|
1061
|
-
backgroundColor: AppColors_1.AppColors.white,
|
|
1062
|
-
borderRadius: 8,
|
|
1063
|
-
marginHorizontal: 12,
|
|
1064
|
-
marginTop: 10,
|
|
1065
|
-
paddingHorizontal: 10,
|
|
1066
|
-
borderWidth: 1,
|
|
1067
|
-
borderColor: AppColors_1.AppColors.dividerColor,
|
|
1068
|
-
height: 36,
|
|
1069
|
-
gap: 8,
|
|
1070
|
-
},
|
|
1071
|
-
searchInput: {
|
|
1072
|
-
flex: 1,
|
|
1073
|
-
fontFamily: AppFonts_1.AppFonts.interRegular,
|
|
1074
|
-
fontSize: 12,
|
|
1075
|
-
color: AppColors_1.AppColors.primaryBlack,
|
|
1076
|
-
padding: 0,
|
|
1077
|
-
},
|
|
1078
|
-
timelineCard: {
|
|
1079
|
-
backgroundColor: AppColors_1.AppColors.white,
|
|
1080
|
-
borderRadius: 10,
|
|
1081
|
-
padding: 12,
|
|
1082
|
-
marginBottom: 8,
|
|
1083
|
-
borderWidth: 1,
|
|
1084
|
-
borderColor: AppColors_1.AppColors.dividerColor,
|
|
1085
|
-
shadowColor: AppColors_1.AppColors.primaryBlack,
|
|
1086
|
-
shadowOffset: { width: 0, height: 1 },
|
|
1087
|
-
shadowOpacity: 0.03,
|
|
1088
|
-
shadowRadius: 3,
|
|
1089
|
-
elevation: 1,
|
|
1090
|
-
},
|
|
1091
|
-
timelineHeader: {
|
|
1092
|
-
flexDirection: 'row',
|
|
1093
|
-
alignItems: 'center',
|
|
1094
|
-
gap: 8,
|
|
1095
|
-
},
|
|
1096
|
-
actionBadge: {
|
|
1097
|
-
backgroundColor: AppColors_1.AppColors.indigo50,
|
|
1098
|
-
paddingHorizontal: 6,
|
|
1099
|
-
paddingVertical: 2,
|
|
1100
|
-
borderRadius: 4,
|
|
1101
|
-
borderWidth: 1,
|
|
1102
|
-
borderColor: AppColors_1.AppColors.blueBorder,
|
|
1103
|
-
},
|
|
1104
|
-
actionBadgeText: {
|
|
1105
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
1106
|
-
fontSize: 9.5,
|
|
1107
|
-
color: AppColors_1.AppColors.indigo600Alt,
|
|
1108
|
-
},
|
|
1109
|
-
actionTitle: {
|
|
1110
|
-
flex: 1,
|
|
1111
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
1112
|
-
fontSize: 12.5,
|
|
1113
|
-
color: AppColors_1.AppColors.primaryBlack,
|
|
1114
|
-
},
|
|
1115
|
-
timePill: {
|
|
1116
|
-
flexDirection: 'row',
|
|
1117
|
-
alignItems: 'center',
|
|
1118
|
-
gap: 3,
|
|
1119
|
-
backgroundColor: `${AppColors_1.AppColors.purple}14`,
|
|
1120
|
-
paddingHorizontal: 6,
|
|
1121
|
-
paddingVertical: 2,
|
|
1122
|
-
borderRadius: 4,
|
|
1123
|
-
},
|
|
1124
|
-
timeText: {
|
|
1125
|
-
fontFamily: AppFonts_1.AppFonts.interMedium,
|
|
1126
|
-
fontSize: 10,
|
|
1127
|
-
color: AppColors_1.AppColors.purple,
|
|
1128
|
-
},
|
|
1129
|
-
collapsedPrompt: {
|
|
1130
|
-
flexDirection: 'row',
|
|
1131
|
-
alignItems: 'center',
|
|
1132
|
-
justifyContent: 'space-between',
|
|
1133
|
-
marginTop: 8,
|
|
1134
|
-
paddingTop: 6,
|
|
1135
|
-
borderTopWidth: 1,
|
|
1136
|
-
borderTopColor: AppColors_1.AppColors.dividerColor,
|
|
1137
|
-
},
|
|
1138
|
-
collapsedPromptText: {
|
|
1139
|
-
fontFamily: AppFonts_1.AppFonts.interRegular,
|
|
1140
|
-
fontSize: 10.5,
|
|
1141
|
-
color: AppColors_1.AppColors.grayTextWeak,
|
|
1142
|
-
},
|
|
1143
|
-
expandedContent: {
|
|
1144
|
-
marginTop: 10,
|
|
1145
|
-
paddingTop: 10,
|
|
1146
|
-
borderTopWidth: 1,
|
|
1147
|
-
borderTopColor: AppColors_1.AppColors.dividerColor,
|
|
1148
|
-
},
|
|
1149
|
-
expandedSectionTitle: {
|
|
1150
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
1151
|
-
fontSize: 11,
|
|
1152
|
-
color: AppColors_1.AppColors.grayTextStrong,
|
|
1153
|
-
marginBottom: 6,
|
|
1154
|
-
},
|
|
1155
|
-
metadataCard: {
|
|
1156
|
-
backgroundColor: AppColors_1.AppColors.white,
|
|
1157
|
-
borderRadius: 12,
|
|
1158
|
-
padding: 12,
|
|
1159
|
-
borderWidth: 1,
|
|
1160
|
-
borderColor: AppColors_1.AppColors.dividerColor,
|
|
1161
|
-
shadowColor: AppColors_1.AppColors.primaryBlack,
|
|
1162
|
-
shadowOffset: { width: 0, height: 1 },
|
|
1163
|
-
shadowOpacity: 0.03,
|
|
1164
|
-
shadowRadius: 3,
|
|
1165
|
-
elevation: 1,
|
|
1166
|
-
},
|
|
1167
|
-
metaRow: {
|
|
1168
|
-
flexDirection: 'row',
|
|
1169
|
-
justifyContent: 'space-between',
|
|
1170
|
-
alignItems: 'center',
|
|
1171
|
-
paddingVertical: 10,
|
|
1172
|
-
borderBottomWidth: 1,
|
|
1173
|
-
borderBottomColor: AppColors_1.AppColors.dividerColor,
|
|
1174
|
-
},
|
|
1175
|
-
metaLabel: {
|
|
1176
|
-
fontFamily: AppFonts_1.AppFonts.interMedium,
|
|
1177
|
-
fontSize: 12,
|
|
1178
|
-
color: AppColors_1.AppColors.grayTextWeak,
|
|
1179
|
-
},
|
|
1180
|
-
metaValue: {
|
|
1181
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
1182
|
-
fontSize: 12,
|
|
1183
|
-
color: AppColors_1.AppColors.primaryBlack,
|
|
1184
|
-
maxWidth: '60%',
|
|
1185
|
-
textAlign: 'right',
|
|
1186
|
-
},
|
|
1187
|
-
persistedInfoCard: {
|
|
1188
|
-
backgroundColor: AppColors_1.AppColors.mintGreenBg,
|
|
1189
|
-
borderRadius: 8,
|
|
1190
|
-
borderWidth: 1,
|
|
1191
|
-
borderColor: AppColors_1.AppColors.mintGreenBorder,
|
|
1192
|
-
padding: 10,
|
|
1193
|
-
},
|
|
1194
|
-
persistedInfoTitle: {
|
|
1195
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
1196
|
-
fontSize: 11,
|
|
1197
|
-
color: AppColors_1.AppColors.mintGreenText,
|
|
1198
|
-
},
|
|
1199
|
-
clearPersistMiniBtn: {
|
|
1200
|
-
flexDirection: 'row',
|
|
1201
|
-
alignItems: 'center',
|
|
1202
|
-
gap: 3,
|
|
1203
|
-
backgroundColor: AppColors_1.AppColors.errorCardBg,
|
|
1204
|
-
paddingHorizontal: 6,
|
|
1205
|
-
paddingVertical: 2.5,
|
|
1206
|
-
borderRadius: 4,
|
|
1207
|
-
},
|
|
1208
|
-
clearPersistMiniText: {
|
|
1209
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
1210
|
-
fontSize: 9.5,
|
|
1211
|
-
color: AppColors_1.AppColors.errorColor,
|
|
1212
|
-
},
|
|
1213
|
-
clearPersistBtn: {
|
|
1214
|
-
flexDirection: 'row',
|
|
1215
|
-
alignItems: 'center',
|
|
1216
|
-
justifyContent: 'center',
|
|
1217
|
-
gap: 6,
|
|
1218
|
-
backgroundColor: AppColors_1.AppColors.errorCardBg,
|
|
1219
|
-
borderWidth: 1,
|
|
1220
|
-
borderColor: AppColors_1.AppColors.errorBorder,
|
|
1221
|
-
borderRadius: 8,
|
|
1222
|
-
paddingVertical: 10,
|
|
1223
|
-
marginTop: 14,
|
|
1224
|
-
},
|
|
1225
|
-
clearPersistText: {
|
|
1226
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
1227
|
-
fontSize: 12,
|
|
1228
|
-
color: AppColors_1.AppColors.errorColor,
|
|
1229
|
-
},
|
|
1230
|
-
emptyBox: {
|
|
1231
|
-
backgroundColor: AppColors_1.AppColors.white,
|
|
1232
|
-
borderRadius: 12,
|
|
1233
|
-
padding: 24,
|
|
1234
|
-
alignItems: 'center',
|
|
1235
|
-
justifyContent: 'center',
|
|
1236
|
-
borderWidth: 1,
|
|
1237
|
-
borderColor: AppColors_1.AppColors.dividerColor,
|
|
1238
|
-
margin: 12,
|
|
1239
|
-
gap: 8,
|
|
1240
|
-
},
|
|
1241
|
-
emptyBoxTitle: {
|
|
1242
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
1243
|
-
fontSize: 14,
|
|
1244
|
-
color: AppColors_1.AppColors.primaryBlack,
|
|
1245
|
-
},
|
|
1246
|
-
emptyBoxText: {
|
|
1247
|
-
fontFamily: AppFonts_1.AppFonts.interMedium,
|
|
1248
|
-
fontSize: 12,
|
|
1249
|
-
color: AppColors_1.AppColors.grayTextWeak,
|
|
1250
|
-
textAlign: 'center',
|
|
1251
|
-
lineHeight: 18,
|
|
1252
|
-
},
|
|
1253
|
-
highlight: {
|
|
1254
|
-
backgroundColor: AppColors_1.AppColors.yellowHighlight,
|
|
1255
|
-
color: AppColors_1.AppColors.amber800Warm,
|
|
1256
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
1257
|
-
},
|
|
1258
|
-
});
|
|
1259
|
-
exports.default = ReduxDetail;
|
|
358
|
+
</react_native_1.View>}),reduxDetailStyles=react_native_1.StyleSheet.create({infoBar:{backgroundColor:AppColors_1.AppColors.white,padding:12,borderBottomWidth:1,borderBottomColor:AppColors_1.AppColors.dividerColor},infoTopRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:8},methodBadge:{paddingHorizontal:7,paddingVertical:2.5,borderRadius:5},methodBadgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,color:AppColors_1.AppColors.white,letterSpacing:.4},sliceNameText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:14,color:AppColors_1.AppColors.primaryBlack,flexShrink:1},persistedChip:{flexDirection:"row",alignItems:"center",gap:3.5,backgroundColor:AppColors_1.AppColors.mintGreenBg,paddingHorizontal:6,paddingVertical:2,borderRadius:4,borderWidth:1,borderColor:AppColors_1.AppColors.mintGreenBorder},persistedChipText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9,color:AppColors_1.AppColors.mintGreenText},inMemoryChip:{backgroundColor:AppColors_1.AppColors.indigo50,paddingHorizontal:6,paddingVertical:2,borderRadius:4,borderWidth:1,borderColor:AppColors_1.AppColors.blueBorder},inMemoryChipText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9,color:AppColors_1.AppColors.indigo600Alt},subStatsRow:{flexDirection:"row",alignItems:"center",gap:6,flexWrap:"wrap"},statPill:{flexDirection:"row",alignItems:"center",gap:4,backgroundColor:AppColors_1.AppColors.grayBackground,paddingHorizontal:6,paddingVertical:2.5,borderRadius:5,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor},statPillText:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:10,color:AppColors_1.AppColors.grayText},statLabel:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10,color:AppColors_1.AppColors.grayTextWeak},statValue:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:AppColors_1.AppColors.primaryBlack},searchContainer:{flexDirection:"row",alignItems:"center",backgroundColor:AppColors_1.AppColors.white,borderRadius:8,marginHorizontal:12,marginTop:10,paddingHorizontal:10,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,height:36,gap:8},searchInput:{flex:1,fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:12,color:AppColors_1.AppColors.primaryBlack,padding:0},timelineCard:{backgroundColor:AppColors_1.AppColors.white,borderRadius:10,padding:12,marginBottom:8,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,shadowColor:AppColors_1.AppColors.primaryBlack,shadowOffset:{width:0,height:1},shadowOpacity:.03,shadowRadius:3,elevation:1},timelineHeader:{flexDirection:"row",alignItems:"center",gap:8},actionBadge:{backgroundColor:AppColors_1.AppColors.indigo50,paddingHorizontal:6,paddingVertical:2,borderRadius:4,borderWidth:1,borderColor:AppColors_1.AppColors.blueBorder},actionBadgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,color:AppColors_1.AppColors.indigo600Alt},actionTitle:{flex:1,fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12.5,color:AppColors_1.AppColors.primaryBlack},timePill:{flexDirection:"row",alignItems:"center",gap:3,backgroundColor:`${AppColors_1.AppColors.purple}14`,paddingHorizontal:6,paddingVertical:2,borderRadius:4},timeText:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:10,color:AppColors_1.AppColors.purple},collapsedPrompt:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginTop:8,paddingTop:6,borderTopWidth:1,borderTopColor:AppColors_1.AppColors.dividerColor},collapsedPromptText:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:10.5,color:AppColors_1.AppColors.grayTextWeak},expandedContent:{marginTop:10,paddingTop:10,borderTopWidth:1,borderTopColor:AppColors_1.AppColors.dividerColor},expandedSectionTitle:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,color:AppColors_1.AppColors.grayTextStrong,marginBottom:6},metadataCard:{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:.03,shadowRadius:3,elevation:1},metaRow:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingVertical:10,borderBottomWidth:1,borderBottomColor:AppColors_1.AppColors.dividerColor},metaLabel:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:12,color:AppColors_1.AppColors.grayTextWeak},metaValue:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12,color:AppColors_1.AppColors.primaryBlack,maxWidth:"60%",textAlign:"right"},persistedInfoCard:{backgroundColor:AppColors_1.AppColors.mintGreenBg,borderRadius:8,borderWidth:1,borderColor:AppColors_1.AppColors.mintGreenBorder,padding:10},persistedInfoTitle:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,color:AppColors_1.AppColors.mintGreenText},clearPersistMiniBtn:{flexDirection:"row",alignItems:"center",gap:3,backgroundColor:AppColors_1.AppColors.errorCardBg,paddingHorizontal:6,paddingVertical:2.5,borderRadius:4},clearPersistMiniText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,color:AppColors_1.AppColors.errorColor},clearPersistBtn:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:6,backgroundColor:AppColors_1.AppColors.errorCardBg,borderWidth:1,borderColor:AppColors_1.AppColors.errorBorder,borderRadius:8,paddingVertical:10,marginTop:14},clearPersistText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12,color:AppColors_1.AppColors.errorColor},emptyBox:{backgroundColor:AppColors_1.AppColors.white,borderRadius:12,padding:24,alignItems:"center",justifyContent:"center",borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,margin:12,gap:8},emptyBoxTitle:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:14,color:AppColors_1.AppColors.primaryBlack},emptyBoxText:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:12,color:AppColors_1.AppColors.grayTextWeak,textAlign:"center",lineHeight:18},highlight:{backgroundColor:AppColors_1.AppColors.yellowHighlight,color:AppColors_1.AppColors.amber800Warm,fontFamily:AppFonts_1.AppFonts.interBold}});exports.default=ReduxDetail;
|