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