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,748 +1,170 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import { useTranslation } from '../../i18n';
|
|
4
|
-
import { useInspector } from './InspectorContext';
|
|
5
|
-
import TouchableScale from '../TouchableScale';
|
|
6
|
-
import AnimatedEntrance from '../AnimatedEntrance';
|
|
7
|
-
import EmptyState from '../EmptyState';
|
|
8
|
-
import EndOfListFooter from '../EndOfListFooter';
|
|
9
|
-
import HighlightText from '../HighlightText';
|
|
10
|
-
import { getSize, openInVSCode } from '../../helpers';
|
|
11
|
-
import styles from '../../styles';
|
|
12
|
-
import { AppColors } from '../../styles/AppColors';
|
|
13
|
-
import { AppFonts } from '../../styles/AppFonts';
|
|
14
|
-
import { getActionHistory, getReduxAutoRefresh, setReduxAutoRefresh, } from '../../customHooks/reduxLogger';
|
|
15
|
-
import { TerminalIcon, SearchIcon, ClearIcon, LayersIcon, ClockIcon, ForwardChevronIcon, SortArrowIcon, BoltIcon, AtomIcon, ScreenIcon, ListenerIcon, DocIcon, LoadingSpinnerIcon, CircleAlertIcon, TextAaIcon, HeaderPauseIcon, } from '../NetworkIcons';
|
|
16
|
-
const getOriginBadge = (originType) => {
|
|
17
|
-
switch (originType) {
|
|
18
|
-
case 'saga':
|
|
19
|
-
return {
|
|
20
|
-
label: 'SAGA',
|
|
21
|
-
renderIcon: (color, size = 9) => <BoltIcon color={color} size={size}/>,
|
|
22
|
-
bg: AppColors.purple100,
|
|
23
|
-
text: AppColors.brandPurple,
|
|
24
|
-
border: AppColors.purple200,
|
|
25
|
-
};
|
|
26
|
-
case 'thunk':
|
|
27
|
-
return {
|
|
28
|
-
label: 'THUNK',
|
|
29
|
-
renderIcon: (color, size = 9) => <AtomIcon color={color} size={size}/>,
|
|
30
|
-
bg: AppColors.amber100,
|
|
31
|
-
text: AppColors.amber800Warm,
|
|
32
|
-
border: AppColors.amber200,
|
|
33
|
-
};
|
|
34
|
-
case 'ui':
|
|
35
|
-
return {
|
|
36
|
-
label: 'UI',
|
|
37
|
-
renderIcon: (color, size = 9) => <ScreenIcon color={color} size={size}/>,
|
|
38
|
-
bg: AppColors.sky100,
|
|
39
|
-
text: AppColors.sky600,
|
|
40
|
-
border: AppColors.sky400,
|
|
41
|
-
};
|
|
42
|
-
case 'listener':
|
|
43
|
-
return {
|
|
44
|
-
label: 'LISTENER',
|
|
45
|
-
renderIcon: (color, size = 9) => <ListenerIcon color={color} size={size}/>,
|
|
46
|
-
bg: AppColors.teal100,
|
|
47
|
-
text: AppColors.teal700,
|
|
48
|
-
border: AppColors.teal400,
|
|
49
|
-
};
|
|
50
|
-
default:
|
|
51
|
-
return {
|
|
52
|
-
label: 'DIRECT',
|
|
53
|
-
renderIcon: (color, size = 9) => <BoltIcon color={color} size={size}/>,
|
|
54
|
-
bg: AppColors.slate100,
|
|
55
|
-
text: AppColors.slate700,
|
|
56
|
-
border: AppColors.slate200,
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
const ReduxTab = React.memo(() => {
|
|
61
|
-
const { t } = useTranslation();
|
|
62
|
-
const { reduxState, reduxLastActionMap, reduxSearch, setReduxSearch, setSelectedReduxSlice, } = useInspector();
|
|
63
|
-
const listRef = useRef(null);
|
|
64
|
-
const [sortMode, setSortMode] = useState('latest');
|
|
65
|
-
const [isReduxPaused, setIsReduxPaused] = useState(!getReduxAutoRefresh());
|
|
66
|
-
const handleTogglePause = useCallback(() => {
|
|
67
|
-
setIsReduxPaused(prev => {
|
|
68
|
-
const next = !prev;
|
|
69
|
-
setReduxAutoRefresh(!next);
|
|
70
|
-
return next;
|
|
71
|
-
});
|
|
72
|
-
}, []);
|
|
73
|
-
const totalStateSize = useMemo(() => {
|
|
74
|
-
return getSize(reduxState);
|
|
75
|
-
}, [reduxState]);
|
|
76
|
-
const allActions = useMemo(() => {
|
|
77
|
-
return getActionHistory();
|
|
78
|
-
}, [reduxLastActionMap]);
|
|
79
|
-
const sliceItems = useMemo(() => {
|
|
80
|
-
if (!reduxState || typeof reduxState !== 'object')
|
|
81
|
-
return [];
|
|
82
|
-
const keys = Object.keys(reduxState);
|
|
83
|
-
return keys.map(key => {
|
|
84
|
-
const sliceVal = reduxState[key];
|
|
85
|
-
const isArray = Array.isArray(sliceVal);
|
|
86
|
-
const isObject = sliceVal && typeof sliceVal === 'object';
|
|
87
|
-
let typeLabel = 'Primitive';
|
|
88
|
-
let keysCount = 0;
|
|
89
|
-
if (isArray) {
|
|
90
|
-
keysCount = sliceVal.length;
|
|
91
|
-
typeLabel = `Array [${keysCount}]`;
|
|
92
|
-
}
|
|
93
|
-
else if (isObject) {
|
|
94
|
-
keysCount = Object.keys(sliceVal).length;
|
|
95
|
-
typeLabel = `Object {${keysCount}}`;
|
|
96
|
-
}
|
|
97
|
-
else if (typeof sliceVal !== 'undefined') {
|
|
98
|
-
keysCount = 1;
|
|
99
|
-
typeLabel = typeof sliceVal;
|
|
100
|
-
}
|
|
101
|
-
let status = 'live';
|
|
102
|
-
let statusMessage;
|
|
103
|
-
if (isObject) {
|
|
104
|
-
if (sliceVal.loading === true ||
|
|
105
|
-
sliceVal.isLoading === true ||
|
|
106
|
-
sliceVal.status === 'loading' ||
|
|
107
|
-
sliceVal.status === 'pending') {
|
|
108
|
-
status = 'loading';
|
|
109
|
-
statusMessage = 'Loading';
|
|
110
|
-
}
|
|
111
|
-
else if (sliceVal.error ||
|
|
112
|
-
sliceVal.hasError ||
|
|
113
|
-
sliceVal.status === 'error' ||
|
|
114
|
-
sliceVal.status === 'failed') {
|
|
115
|
-
status = 'error';
|
|
116
|
-
statusMessage = typeof sliceVal.error === 'string' ? sliceVal.error : 'Error';
|
|
117
|
-
}
|
|
118
|
-
else if (keysCount === 0) {
|
|
119
|
-
status = 'empty';
|
|
120
|
-
statusMessage = 'Empty';
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
const lastActionRaw = reduxLastActionMap[key];
|
|
124
|
-
const updatedAt = lastActionRaw?.updatedAt || 0;
|
|
125
|
-
const timelineCount = allActions.filter(action => {
|
|
126
|
-
if (!action.affectedSlices || action.affectedSlices.length === 0)
|
|
127
|
-
return true;
|
|
128
|
-
return action.affectedSlices.includes(key);
|
|
129
|
-
}).length;
|
|
130
|
-
let lastAction = undefined;
|
|
131
|
-
if (lastActionRaw) {
|
|
132
|
-
let payloadPreview;
|
|
133
|
-
if (lastActionRaw.payload !== undefined && lastActionRaw.payload !== null) {
|
|
134
|
-
try {
|
|
135
|
-
if (typeof lastActionRaw.payload === 'object') {
|
|
136
|
-
const pKeys = Object.keys(lastActionRaw.payload);
|
|
137
|
-
payloadPreview = `{ ${pKeys.slice(0, 3).join(', ')}${pKeys.length > 3 ? '...' : ''} }`;
|
|
138
|
-
}
|
|
139
|
-
else {
|
|
140
|
-
payloadPreview = String(lastActionRaw.payload);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
catch { }
|
|
144
|
-
}
|
|
145
|
-
lastAction = {
|
|
146
|
-
type: lastActionRaw.type,
|
|
147
|
-
timestamp: lastActionRaw.timestamp,
|
|
148
|
-
updatedAt: lastActionRaw.updatedAt,
|
|
149
|
-
payloadPreview,
|
|
150
|
-
originType: lastActionRaw.originType,
|
|
151
|
-
callerFile: lastActionRaw.callerFile,
|
|
152
|
-
callerLine: lastActionRaw.callerLine,
|
|
153
|
-
callerCol: lastActionRaw.callerCol,
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
return {
|
|
157
|
-
id: `slice-${key}`,
|
|
158
|
-
name: key,
|
|
159
|
-
keysCount,
|
|
160
|
-
sizeStr: getSize(sliceVal),
|
|
161
|
-
typeLabel,
|
|
162
|
-
status,
|
|
163
|
-
statusMessage,
|
|
164
|
-
timelineCount,
|
|
165
|
-
lastAction,
|
|
166
|
-
updatedAt,
|
|
167
|
-
};
|
|
168
|
-
});
|
|
169
|
-
}, [reduxState, reduxLastActionMap, allActions]);
|
|
170
|
-
const filteredSlices = useMemo(() => {
|
|
171
|
-
let list = sliceItems;
|
|
172
|
-
if (reduxSearch && reduxSearch.trim().length > 0) {
|
|
173
|
-
const queryTokens = reduxSearch.trim().toLowerCase().split(/\s+/).filter(Boolean);
|
|
174
|
-
list = list.filter(item => {
|
|
175
|
-
const sliceVal = reduxState ? reduxState[item.name] : null;
|
|
176
|
-
const searchTarget = [
|
|
177
|
-
item.name || '',
|
|
178
|
-
item.lastAction?.type || '',
|
|
179
|
-
item.lastAction?.payloadPreview || '',
|
|
180
|
-
item.lastAction?.originType || '',
|
|
181
|
-
item.status || '',
|
|
182
|
-
item.statusMessage || '',
|
|
183
|
-
sliceVal ? (typeof sliceVal === 'string' ? sliceVal : JSON.stringify(sliceVal)) : '',
|
|
184
|
-
].join(' ').toLowerCase();
|
|
185
|
-
return queryTokens.every(tok => searchTarget.includes(tok));
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
return [...list].sort((a, b) => {
|
|
189
|
-
if (sortMode === 'latest') {
|
|
190
|
-
if (b.updatedAt !== a.updatedAt) {
|
|
191
|
-
return b.updatedAt - a.updatedAt;
|
|
192
|
-
}
|
|
193
|
-
return a.name.localeCompare(b.name);
|
|
194
|
-
}
|
|
195
|
-
return a.name.localeCompare(b.name);
|
|
196
|
-
});
|
|
197
|
-
}, [sliceItems, reduxSearch, sortMode, reduxState]);
|
|
198
|
-
const lastGlobalAction = useMemo(() => {
|
|
199
|
-
const actions = Object.values(reduxLastActionMap);
|
|
200
|
-
if (actions.length === 0)
|
|
201
|
-
return null;
|
|
202
|
-
return actions.reduce((latest, curr) => {
|
|
203
|
-
if (!latest)
|
|
204
|
-
return curr;
|
|
205
|
-
return (curr.updatedAt || 0) > (latest.updatedAt || 0) ? curr : latest;
|
|
206
|
-
}, null);
|
|
207
|
-
}, [reduxLastActionMap]);
|
|
208
|
-
const renderSliceItem = useCallback(({ item, index }) => {
|
|
209
|
-
const isRecentlyUpdated = item.updatedAt > 0 && Date.now() - item.updatedAt < 5000;
|
|
210
|
-
return (<AnimatedEntrance index={index} distance={8}>
|
|
211
|
-
<TouchableScale onPress={() => {
|
|
212
|
-
setSelectedReduxSlice(item.name);
|
|
213
|
-
}} style={[
|
|
214
|
-
reduxTabStyles.card,
|
|
215
|
-
isRecentlyUpdated && reduxTabStyles.cardRecentlyUpdated,
|
|
216
|
-
]}>
|
|
1
|
+
import Pe,{useCallback as Q,useMemo as O,useRef as Le,useState as X}from"react";import{FlatList as Fe,Platform as We,Pressable as Y,StyleSheet as He,Text as C,TextInput as De,TouchableOpacity as _,View as T}from"react-native";import{useTranslation as Oe}from"../../i18n";import{useInspector as Ee}from"./InspectorContext";import Me from"../TouchableScale";import $e from"../AnimatedEntrance";import Ne from"../EmptyState";import Ue from"../EndOfListFooter";import Te from"../HighlightText";import{getSize as we,openInVSCode as Ge}from"../../helpers";import B from"../../styles";import{AppColors as e}from"../../styles/AppColors";import{AppFonts as S}from"../../styles/AppFonts";import{getActionHistory as Ke,getReduxAutoRefresh as Ze,setReduxAutoRefresh as qe}from"../../customHooks/reduxLogger";import{TerminalIcon as Je,SearchIcon as Qe,ClearIcon as Xe,LayersIcon as Ye,ClockIcon as _e,ForwardChevronIcon as Tt,SortArrowIcon as Ct,BoltIcon as U,AtomIcon as St,ScreenIcon as At,ListenerIcon as Rt,DocIcon as Vt,LoadingSpinnerIcon as It,CircleAlertIcon as Bt,TextAaIcon as Pt,HeaderPauseIcon as Lt}from"../NetworkIcons";const Ce=E=>{switch(E){case"saga":return{label:"SAGA",renderIcon:(A,R=9)=><U color={A}size={R}/>,bg:e.purple100,text:e.brandPurple,border:e.purple200};case"thunk":return{label:"THUNK",renderIcon:(A,R=9)=><St color={A}size={R}/>,bg:e.amber100,text:e.amber800Warm,border:e.amber200};case"ui":return{label:"UI",renderIcon:(A,R=9)=><At color={A}size={R}/>,bg:e.sky100,text:e.sky600,border:e.sky400};case"listener":return{label:"LISTENER",renderIcon:(A,R=9)=><Rt color={A}size={R}/>,bg:e.teal100,text:e.teal700,border:e.teal400};default:return{label:"DIRECT",renderIcon:(A,R=9)=><U color={A}size={R}/>,bg:e.slate100,text:e.slate700,border:e.slate200}}},vt=Pe.memo(()=>{const{t:E}=Oe(),{reduxState:A,reduxLastActionMap:R,reduxSearch:k,setReduxSearch:G,setSelectedReduxSlice:K}=Ee(),Se=Le(null),[P,Ae]=X("latest"),[D,ze]=X(!Ze()),Re=Q(()=>{ze(r=>{const z=!r;return qe(!z),z})},[]),ke=O(()=>we(A),[A]),Z=O(()=>Ke(),[R]),M=O(()=>!A||typeof A!="object"?[]:Object.keys(A).map(z=>{const o=A[z],I=Array.isArray(o),$=o&&typeof o=="object";let H="Primitive",L=0;I?(L=o.length,H=`Array [${L}]`):$?(L=Object.keys(o).length,H=`Object {${L}}`):typeof o<"u"&&(L=1,H=typeof o);let j="live",N;$&&(o.loading===!0||o.isLoading===!0||o.status==="loading"||o.status==="pending"?(j="loading",N="Loading"):o.error||o.hasError||o.status==="error"||o.status==="failed"?(j="error",N=typeof o.error=="string"?o.error:"Error"):L===0&&(j="empty",N="Empty"));const V=R[z],Ie=V?.updatedAt||0,Be=Z.filter(v=>!v.affectedSlices||v.affectedSlices.length===0?!0:v.affectedSlices.includes(z)).length;let q;if(V){let v;if(V.payload!==void 0&&V.payload!==null)try{if(typeof V.payload=="object"){const J=Object.keys(V.payload);v=`{ ${J.slice(0,3).join(", ")}${J.length>3?"...":""} }`}else v=String(V.payload)}catch{}q={type:V.type,timestamp:V.timestamp,updatedAt:V.updatedAt,payloadPreview:v,originType:V.originType,callerFile:V.callerFile,callerLine:V.callerLine,callerCol:V.callerCol}}return{id:`slice-${z}`,name:z,keysCount:L,sizeStr:we(o),typeLabel:H,status:j,statusMessage:N,timelineCount:Be,lastAction:q,updatedAt:Ie}}),[A,R,Z]),F=O(()=>{let r=M;if(k&&k.trim().length>0){const z=k.trim().toLowerCase().split(/\s+/).filter(Boolean);r=r.filter(o=>{const I=A?A[o.name]:null,$=[o.name||"",o.lastAction?.type||"",o.lastAction?.payloadPreview||"",o.lastAction?.originType||"",o.status||"",o.statusMessage||"",I?typeof I=="string"?I:JSON.stringify(I):""].join(" ").toLowerCase();return z.every(H=>$.includes(H))})}return[...r].sort((z,o)=>P==="latest"&&o.updatedAt!==z.updatedAt?o.updatedAt-z.updatedAt:z.name.localeCompare(o.name))},[M,k,P,A]),W=O(()=>{const r=Object.values(R);return r.length===0?null:r.reduce((z,o)=>z?(o.updatedAt||0)>(z.updatedAt||0)?o:z:o,null)},[R]),Ve=Q(({item:r,index:z})=>{const o=r.updatedAt>0&&Date.now()-r.updatedAt<5e3;return<$e index={z}distance={8}>
|
|
2
|
+
<Me onPress={()=>{K(r.name)}}style={[t.card,o&&t.cardRecentlyUpdated]}>
|
|
217
3
|
|
|
218
|
-
<
|
|
219
|
-
<
|
|
220
|
-
<
|
|
221
|
-
</
|
|
4
|
+
<T style={t.cardHeader}>
|
|
5
|
+
<T style={t.sliceBadge}>
|
|
6
|
+
<C style={t.sliceBadgeText}>SLICE</C>
|
|
7
|
+
</T>
|
|
222
8
|
|
|
223
|
-
<
|
|
9
|
+
<Te text={r.name}search={k}style={t.sliceName}highlightStyle={t.highlight}/>
|
|
224
10
|
|
|
225
11
|
|
|
226
|
-
{
|
|
227
|
-
<
|
|
228
|
-
<
|
|
229
|
-
</
|
|
230
|
-
<
|
|
231
|
-
<
|
|
232
|
-
</
|
|
233
|
-
<
|
|
234
|
-
</
|
|
235
|
-
<
|
|
236
|
-
<
|
|
237
|
-
</
|
|
12
|
+
{r.status==="loading"?<T style={t.loadingPill}>
|
|
13
|
+
<It color={e.amber800Warm}size={10}/>
|
|
14
|
+
<C style={t.loadingPillText}>Loading</C>
|
|
15
|
+
</T>:r.status==="error"?<T style={t.errorPill}>
|
|
16
|
+
<Bt color={e.red600}size={10}/>
|
|
17
|
+
<C style={t.errorPillText}>Error</C>
|
|
18
|
+
</T>:r.status==="empty"?<T style={t.emptyPill}>
|
|
19
|
+
<C style={t.emptyPillText}>Empty</C>
|
|
20
|
+
</T>:<T style={t.livePill}>
|
|
21
|
+
<T style={t.liveDot}/>
|
|
22
|
+
<C style={t.livePillText}>Live</C>
|
|
23
|
+
</T>}
|
|
238
24
|
|
|
239
|
-
{
|
|
240
|
-
<
|
|
241
|
-
<
|
|
242
|
-
{
|
|
243
|
-
</
|
|
244
|
-
</
|
|
25
|
+
{r.lastAction?.timestamp&&<T style={t.timePill}>
|
|
26
|
+
<_e color={e.purple}size={10}/>
|
|
27
|
+
<C style={t.timeText}>
|
|
28
|
+
{r.lastAction.timestamp}
|
|
29
|
+
</C>
|
|
30
|
+
</T>}
|
|
245
31
|
|
|
246
|
-
<
|
|
247
|
-
</
|
|
32
|
+
<Tt color={e.grayTextWeak}size={13}/>
|
|
33
|
+
</T>
|
|
248
34
|
|
|
249
35
|
|
|
250
|
-
<
|
|
251
|
-
<
|
|
252
|
-
<
|
|
253
|
-
<
|
|
254
|
-
</
|
|
255
|
-
<
|
|
256
|
-
<
|
|
257
|
-
<
|
|
258
|
-
</
|
|
259
|
-
{
|
|
260
|
-
<
|
|
261
|
-
<
|
|
262
|
-
</
|
|
263
|
-
</
|
|
36
|
+
<T style={t.statsRow}>
|
|
37
|
+
<T style={t.pill}>
|
|
38
|
+
<Ye color={e.grayTextWeak}size={11}/>
|
|
39
|
+
<C style={t.pillValue}>{r.typeLabel}</C>
|
|
40
|
+
</T>
|
|
41
|
+
<T style={t.pill}>
|
|
42
|
+
<C style={t.pillLabel}>Size:</C>
|
|
43
|
+
<C style={t.pillValue}>{r.sizeStr}</C>
|
|
44
|
+
</T>
|
|
45
|
+
{r.timelineCount>0&&<T style={t.pill}>
|
|
46
|
+
<C style={t.pillLabel}>Actions:</C>
|
|
47
|
+
<C style={t.pillValue}>{r.timelineCount}</C>
|
|
48
|
+
</T>}
|
|
49
|
+
</T>
|
|
264
50
|
|
|
265
51
|
|
|
266
|
-
{
|
|
267
|
-
<
|
|
268
|
-
<
|
|
269
|
-
<
|
|
52
|
+
{r.lastAction&&<T style={t.lastActionRow}>
|
|
53
|
+
<T style={{flexDirection:"row",alignItems:"center",gap:5,flex:1,minWidth:0,flexWrap:"wrap"}}>
|
|
54
|
+
<U color={e.brandPurple}size={12}/>
|
|
55
|
+
<C style={t.lastActionLabel}>{E("redux.last","Last")}:</C>
|
|
270
56
|
|
|
271
57
|
|
|
272
|
-
{
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
backgroundColor: origin.bg,
|
|
279
|
-
paddingHorizontal: 4.5,
|
|
280
|
-
paddingVertical: 1.5,
|
|
281
|
-
borderRadius: 3.5,
|
|
282
|
-
borderWidth: 1,
|
|
283
|
-
borderColor: origin.border,
|
|
284
|
-
}}>
|
|
285
|
-
{origin.renderIcon(origin.text, 8.5)}
|
|
286
|
-
<Text style={{
|
|
287
|
-
fontFamily: AppFonts.interBold,
|
|
288
|
-
fontSize: 8,
|
|
289
|
-
color: origin.text,
|
|
290
|
-
letterSpacing: 0.3,
|
|
291
|
-
}}>
|
|
292
|
-
{origin.label}
|
|
293
|
-
</Text>
|
|
294
|
-
</View>);
|
|
295
|
-
})()}
|
|
58
|
+
{r.lastAction.originType&&(()=>{const I=Ce(r.lastAction.originType);return<T style={{flexDirection:"row",alignItems:"center",gap:2.5,backgroundColor:I.bg,paddingHorizontal:4.5,paddingVertical:1.5,borderRadius:3.5,borderWidth:1,borderColor:I.border}}>
|
|
59
|
+
{I.renderIcon(I.text,8.5)}
|
|
60
|
+
<C style={{fontFamily:S.interBold,fontSize:8,color:I.text,letterSpacing:.3}}>
|
|
61
|
+
{I.label}
|
|
62
|
+
</C>
|
|
63
|
+
</T>})()}
|
|
296
64
|
|
|
297
|
-
<
|
|
65
|
+
<Te text={r.lastAction.type}search={k}style={t.lastActionValue}highlightStyle={t.highlight}numberOfLines={1}/>
|
|
298
66
|
|
|
299
67
|
|
|
300
|
-
{
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
paddingVertical: 1.5,
|
|
307
|
-
borderRadius: 3,
|
|
308
|
-
borderWidth: 0.5,
|
|
309
|
-
borderColor: AppColors.sky400,
|
|
310
|
-
}}>
|
|
311
|
-
<DocIcon color={AppColors.sky600} size={9}/>
|
|
312
|
-
<Text style={{
|
|
313
|
-
fontFamily: AppFonts.interMedium,
|
|
314
|
-
fontSize: 8.5,
|
|
315
|
-
color: AppColors.sky600,
|
|
316
|
-
}}>
|
|
317
|
-
{item.lastAction.callerFile.split('/').pop()}:{item.lastAction.callerLine || 1}
|
|
318
|
-
</Text>
|
|
319
|
-
</Pressable>)}
|
|
68
|
+
{r.lastAction.callerFile&&<Y onPress={()=>Ge(r.lastAction.callerFile,r.lastAction.callerLine,r.lastAction.callerCol)}hitSlop={6}style={{flexDirection:"row",alignItems:"center",gap:2.5,backgroundColor:e.sky100,paddingHorizontal:4.5,paddingVertical:1.5,borderRadius:3,borderWidth:.5,borderColor:e.sky400}}>
|
|
69
|
+
<Vt color={e.sky600}size={9}/>
|
|
70
|
+
<C style={{fontFamily:S.interMedium,fontSize:8.5,color:e.sky600}}>
|
|
71
|
+
{r.lastAction.callerFile.split("/").pop()}:{r.lastAction.callerLine||1}
|
|
72
|
+
</C>
|
|
73
|
+
</Y>}
|
|
320
74
|
|
|
321
|
-
{
|
|
322
|
-
{
|
|
323
|
-
</
|
|
324
|
-
</
|
|
325
|
-
</
|
|
326
|
-
</
|
|
327
|
-
|
|
328
|
-
}, [reduxSearch, setSelectedReduxSlice, t]);
|
|
329
|
-
if (!reduxState) {
|
|
330
|
-
return (<View style={styles.emptyContainer}>
|
|
331
|
-
<View style={styles.emptyIconWrap}>
|
|
332
|
-
<TerminalIcon color={AppColors.purple} size={32}/>
|
|
333
|
-
</View>
|
|
334
|
-
<Text style={styles.emptyTitle}>No Redux Store Connected</Text>
|
|
335
|
-
<Text style={styles.emptySub}>
|
|
336
|
-
Call connectReduxStore(store) or use inspectorReduxMiddleware at app initialization.
|
|
337
|
-
</Text>
|
|
338
|
-
</View>);
|
|
339
|
-
}
|
|
340
|
-
return (<View style={{ flex: 1, backgroundColor: AppColors.grayBackground }}>
|
|
75
|
+
{r.lastAction.payloadPreview&&<C style={t.payloadPreviewText}numberOfLines={1}>
|
|
76
|
+
{r.lastAction.payloadPreview}
|
|
77
|
+
</C>}
|
|
78
|
+
</T>
|
|
79
|
+
</T>}
|
|
80
|
+
</Me>
|
|
81
|
+
</$e>},[k,K,E]);return A?<T style={{flex:1,backgroundColor:e.grayBackground}}>
|
|
341
82
|
|
|
342
|
-
<
|
|
343
|
-
<
|
|
344
|
-
<
|
|
345
|
-
<
|
|
346
|
-
</
|
|
347
|
-
<
|
|
348
|
-
<
|
|
349
|
-
<
|
|
350
|
-
<
|
|
351
|
-
</
|
|
352
|
-
<
|
|
353
|
-
<
|
|
354
|
-
<
|
|
355
|
-
<
|
|
356
|
-
{
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
color: origin.text,
|
|
372
|
-
}}>
|
|
373
|
-
{origin.label}
|
|
374
|
-
</Text>
|
|
375
|
-
</View>);
|
|
376
|
-
})()}
|
|
377
|
-
</View>
|
|
378
|
-
<Text style={reduxTabStyles.statLastAction} numberOfLines={1}>
|
|
379
|
-
{lastGlobalAction ? lastGlobalAction.type : 'Initial'}
|
|
380
|
-
</Text>
|
|
381
|
-
{lastGlobalAction?.timestamp && (<Text style={reduxTabStyles.statLastTime}>
|
|
382
|
-
{lastGlobalAction.timestamp}
|
|
383
|
-
</Text>)}
|
|
384
|
-
</View>
|
|
385
|
-
</View>
|
|
83
|
+
<T style={t.overviewCard}>
|
|
84
|
+
<T style={t.statCol}>
|
|
85
|
+
<C style={t.statHeading}>ACTIVE SLICES</C>
|
|
86
|
+
<C style={t.statBigVal}>{M.length}</C>
|
|
87
|
+
</T>
|
|
88
|
+
<T style={t.statDivider}/>
|
|
89
|
+
<T style={t.statCol}>
|
|
90
|
+
<C style={t.statHeading}>TOTAL STATE</C>
|
|
91
|
+
<C style={t.statBigVal}>{ke}</C>
|
|
92
|
+
</T>
|
|
93
|
+
<T style={t.statDivider}/>
|
|
94
|
+
<T style={[t.statCol,{flex:1.6}]}>
|
|
95
|
+
<T style={{flexDirection:"row",alignItems:"center",gap:4}}>
|
|
96
|
+
<C style={t.statHeading}>LAST ACTION</C>
|
|
97
|
+
{W?.originType&&(()=>{const r=Ce(W.originType);return<T style={{flexDirection:"row",alignItems:"center",gap:2,backgroundColor:r.bg,paddingHorizontal:4,paddingVertical:1,borderRadius:3}}>
|
|
98
|
+
{r.renderIcon(r.text,8)}
|
|
99
|
+
<C style={{fontFamily:S.interBold,fontSize:7.5,color:r.text}}>
|
|
100
|
+
{r.label}
|
|
101
|
+
</C>
|
|
102
|
+
</T>})()}
|
|
103
|
+
</T>
|
|
104
|
+
<C style={t.statLastAction}numberOfLines={1}>
|
|
105
|
+
{W?W.type:"Initial"}
|
|
106
|
+
</C>
|
|
107
|
+
{W?.timestamp&&<C style={t.statLastTime}>
|
|
108
|
+
{W.timestamp}
|
|
109
|
+
</C>}
|
|
110
|
+
</T>
|
|
111
|
+
</T>
|
|
386
112
|
|
|
387
113
|
|
|
388
|
-
<
|
|
389
|
-
<
|
|
390
|
-
<
|
|
391
|
-
<
|
|
392
|
-
<
|
|
393
|
-
{
|
|
394
|
-
<
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
<
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
}}>
|
|
405
|
-
{filteredSlices.length}
|
|
406
|
-
</Text>
|
|
407
|
-
</View>
|
|
408
|
-
<Pressable accessible={true} accessibilityRole="button" accessibilityLabel="Clear search input" onPress={() => setReduxSearch('')} hitSlop={10}>
|
|
409
|
-
<ClearIcon color={AppColors.grayTextWeak} size={14}/>
|
|
410
|
-
</Pressable>
|
|
411
|
-
</View>)}
|
|
412
|
-
</View>
|
|
114
|
+
<T style={t.toolbarContainer}>
|
|
115
|
+
<T style={t.searchRow}>
|
|
116
|
+
<T style={B.searchContainer}>
|
|
117
|
+
<Qe color={e.grayTextWeak}size={15}/>
|
|
118
|
+
<De accessible={!0}accessibilityRole="search"accessibilityLabel="Search Redux slices or actions"accessibilityHint="Type to filter state slices in real time"placeholder="Search Redux slices or actions..."placeholderTextColor={e.grayTextWeak}value={k}onChangeText={G}style={B.searchInput}autoCorrect={!1}autoCapitalize="none"/>
|
|
119
|
+
{k.length>0&&<T style={{flexDirection:"row",alignItems:"center",gap:4}}>
|
|
120
|
+
<T style={{backgroundColor:`${e.purple}20`,borderRadius:10,paddingHorizontal:6,paddingVertical:1.5}}>
|
|
121
|
+
<C style={{color:e.purple,fontSize:9.5,fontFamily:S.interBold}}>
|
|
122
|
+
{F.length}
|
|
123
|
+
</C>
|
|
124
|
+
</T>
|
|
125
|
+
<Y accessible={!0}accessibilityRole="button"accessibilityLabel="Clear search input"onPress={()=>G("")}hitSlop={10}>
|
|
126
|
+
<Xe color={e.grayTextWeak}size={14}/>
|
|
127
|
+
</Y>
|
|
128
|
+
</T>}
|
|
129
|
+
</T>
|
|
413
130
|
|
|
414
131
|
|
|
415
|
-
<
|
|
416
|
-
?
|
|
417
|
-
|
|
418
|
-
styles.toolbarBtn,
|
|
419
|
-
isReduxPaused && {
|
|
420
|
-
backgroundColor: `${AppColors.darkOrange}1F`,
|
|
421
|
-
borderColor: AppColors.darkOrange,
|
|
422
|
-
},
|
|
423
|
-
]} onPress={handleTogglePause} hitSlop={6}>
|
|
424
|
-
<HeaderPauseIcon isPaused={isReduxPaused} color={isReduxPaused
|
|
425
|
-
? AppColors.darkOrange
|
|
426
|
-
: AppColors.grayTextStrong} size={16}/>
|
|
427
|
-
</TouchableOpacity>
|
|
132
|
+
<_ accessible={!0}accessibilityRole="button"accessibilityLabel={D?"Resume live Redux updates":"Pause live Redux updates"}accessibilityHint="Toggles automatic recording of Redux state updates"style={[B.toolbarBtn,D&&{backgroundColor:`${e.darkOrange}1F`,borderColor:e.darkOrange}]}onPress={Re}hitSlop={6}>
|
|
133
|
+
<Lt isPaused={D}color={D?e.darkOrange:e.grayTextStrong}size={16}/>
|
|
134
|
+
</_>
|
|
428
135
|
|
|
429
136
|
|
|
430
|
-
<
|
|
431
|
-
?
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
sortMode === 'latest' && { backgroundColor: `${AppColors.brandPurple}1F`, borderColor: AppColors.brandPurple },
|
|
435
|
-
]} onPress={() => setSortMode(prev => (prev === 'latest' ? 'alpha' : 'latest'))} hitSlop={6}>
|
|
436
|
-
<SortArrowIcon color={sortMode === 'latest' ? AppColors.brandPurple : AppColors.grayTextStrong} size={16}/>
|
|
437
|
-
</TouchableOpacity>
|
|
438
|
-
</View>
|
|
137
|
+
<_ accessible={!0}accessibilityRole="button"accessibilityLabel={`Sort order: ${P==="latest"?"Recently updated first":"Alphabetical A to Z"}`}accessibilityHint="Switches sorting between recently updated and alphabetical"style={[B.toolbarBtn,P==="latest"&&{backgroundColor:`${e.brandPurple}1F`,borderColor:e.brandPurple}]}onPress={()=>Ae(r=>r==="latest"?"alpha":"latest")}hitSlop={6}>
|
|
138
|
+
<Ct color={P==="latest"?e.brandPurple:e.grayTextStrong}size={16}/>
|
|
139
|
+
</_>
|
|
140
|
+
</T>
|
|
439
141
|
|
|
440
|
-
<
|
|
441
|
-
<
|
|
442
|
-
Showing {
|
|
443
|
-
</
|
|
444
|
-
<
|
|
445
|
-
{
|
|
446
|
-
<
|
|
447
|
-
</
|
|
448
|
-
<
|
|
449
|
-
{
|
|
450
|
-
<
|
|
451
|
-
{
|
|
452
|
-
</
|
|
453
|
-
</
|
|
454
|
-
</
|
|
455
|
-
</
|
|
456
|
-
</
|
|
142
|
+
<T style={t.headerSubRow}>
|
|
143
|
+
<C style={t.resultCount}>
|
|
144
|
+
Showing {F.length} of {M.length} state slices
|
|
145
|
+
</C>
|
|
146
|
+
<T style={{flexDirection:"row",alignItems:"center",gap:8}}>
|
|
147
|
+
{D&&<T style={t.pausedBannerPill}>
|
|
148
|
+
<C style={t.pausedBannerText}>PAUSED</C>
|
|
149
|
+
</T>}
|
|
150
|
+
<T style={{flexDirection:"row",alignItems:"center",gap:4}}>
|
|
151
|
+
{P==="latest"?<U color={e.brandPurple}size={11}/>:<Pt color={e.brandPurple}size={11}/>}
|
|
152
|
+
<C style={t.sortLabel}>
|
|
153
|
+
{P==="latest"?"Newest Updates First":"Alphabetical (A-Z)"}
|
|
154
|
+
</C>
|
|
155
|
+
</T>
|
|
156
|
+
</T>
|
|
157
|
+
</T>
|
|
158
|
+
</T>
|
|
457
159
|
|
|
458
160
|
|
|
459
|
-
<
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
flexDirection: 'row',
|
|
470
|
-
alignItems: 'center',
|
|
471
|
-
backgroundColor: AppColors.white,
|
|
472
|
-
marginHorizontal: 12,
|
|
473
|
-
marginTop: 10,
|
|
474
|
-
borderRadius: 12,
|
|
475
|
-
padding: 12,
|
|
476
|
-
borderWidth: 1,
|
|
477
|
-
borderColor: AppColors.dividerColor,
|
|
478
|
-
shadowColor: AppColors.primaryBlack,
|
|
479
|
-
shadowOffset: { width: 0, height: 1 },
|
|
480
|
-
shadowOpacity: 0.03,
|
|
481
|
-
shadowRadius: 3,
|
|
482
|
-
elevation: 1,
|
|
483
|
-
},
|
|
484
|
-
statCol: {
|
|
485
|
-
flex: 1,
|
|
486
|
-
},
|
|
487
|
-
statDivider: {
|
|
488
|
-
width: 1,
|
|
489
|
-
height: 28,
|
|
490
|
-
backgroundColor: AppColors.dividerColor,
|
|
491
|
-
marginHorizontal: 8,
|
|
492
|
-
},
|
|
493
|
-
statHeading: {
|
|
494
|
-
fontFamily: AppFonts.interBold,
|
|
495
|
-
fontSize: 9,
|
|
496
|
-
color: AppColors.grayTextWeak,
|
|
497
|
-
letterSpacing: 0.5,
|
|
498
|
-
},
|
|
499
|
-
statBigVal: {
|
|
500
|
-
fontFamily: AppFonts.interBold,
|
|
501
|
-
fontSize: 14,
|
|
502
|
-
color: AppColors.primaryBlack,
|
|
503
|
-
marginTop: 2,
|
|
504
|
-
},
|
|
505
|
-
statLastAction: {
|
|
506
|
-
fontFamily: AppFonts.interBold,
|
|
507
|
-
fontSize: 11,
|
|
508
|
-
color: AppColors.purple,
|
|
509
|
-
marginTop: 2,
|
|
510
|
-
},
|
|
511
|
-
statLastTime: {
|
|
512
|
-
fontFamily: AppFonts.interRegular,
|
|
513
|
-
fontSize: 9.5,
|
|
514
|
-
color: AppColors.grayTextWeak,
|
|
515
|
-
},
|
|
516
|
-
toolbarContainer: {
|
|
517
|
-
backgroundColor: AppColors.white,
|
|
518
|
-
borderBottomWidth: 1,
|
|
519
|
-
borderBottomColor: AppColors.dividerColor,
|
|
520
|
-
paddingHorizontal: 12,
|
|
521
|
-
paddingTop: 8,
|
|
522
|
-
paddingBottom: 6,
|
|
523
|
-
marginTop: 8,
|
|
524
|
-
},
|
|
525
|
-
searchRow: {
|
|
526
|
-
flexDirection: 'row',
|
|
527
|
-
alignItems: 'center',
|
|
528
|
-
gap: 8,
|
|
529
|
-
},
|
|
530
|
-
headerSubRow: {
|
|
531
|
-
flexDirection: 'row',
|
|
532
|
-
justifyContent: 'space-between',
|
|
533
|
-
alignItems: 'center',
|
|
534
|
-
marginTop: 6,
|
|
535
|
-
paddingHorizontal: 2,
|
|
536
|
-
},
|
|
537
|
-
resultCount: {
|
|
538
|
-
fontFamily: AppFonts.interMedium,
|
|
539
|
-
fontSize: 11,
|
|
540
|
-
color: AppColors.grayTextWeak,
|
|
541
|
-
},
|
|
542
|
-
sortLabel: {
|
|
543
|
-
fontFamily: AppFonts.interMedium,
|
|
544
|
-
fontSize: 10.5,
|
|
545
|
-
color: AppColors.brandPurple,
|
|
546
|
-
},
|
|
547
|
-
listContent: {
|
|
548
|
-
padding: 12,
|
|
549
|
-
paddingBottom: 36,
|
|
550
|
-
},
|
|
551
|
-
card: {
|
|
552
|
-
backgroundColor: AppColors.white,
|
|
553
|
-
borderRadius: 12,
|
|
554
|
-
padding: 12,
|
|
555
|
-
marginBottom: 10,
|
|
556
|
-
borderWidth: 1,
|
|
557
|
-
borderColor: AppColors.dividerColor,
|
|
558
|
-
shadowColor: AppColors.primaryBlack,
|
|
559
|
-
shadowOffset: { width: 0, height: 1 },
|
|
560
|
-
shadowOpacity: 0.04,
|
|
561
|
-
shadowRadius: 4,
|
|
562
|
-
elevation: 2,
|
|
563
|
-
},
|
|
564
|
-
cardRecentlyUpdated: {
|
|
565
|
-
borderColor: `${AppColors.brandPurple}66`,
|
|
566
|
-
backgroundColor: AppColors.purpleTintBg,
|
|
567
|
-
},
|
|
568
|
-
cardHeader: {
|
|
569
|
-
flexDirection: 'row',
|
|
570
|
-
alignItems: 'center',
|
|
571
|
-
gap: 8,
|
|
572
|
-
marginBottom: 8,
|
|
573
|
-
},
|
|
574
|
-
sliceBadge: {
|
|
575
|
-
backgroundColor: AppColors.violetSoftBg,
|
|
576
|
-
paddingHorizontal: 6,
|
|
577
|
-
paddingVertical: 3,
|
|
578
|
-
borderRadius: 5,
|
|
579
|
-
borderWidth: 1,
|
|
580
|
-
borderColor: AppColors.violetSoftBorder,
|
|
581
|
-
},
|
|
582
|
-
sliceBadgeText: {
|
|
583
|
-
fontFamily: AppFonts.interBold,
|
|
584
|
-
fontSize: 9.5,
|
|
585
|
-
color: AppColors.purple700,
|
|
586
|
-
letterSpacing: 0.4,
|
|
587
|
-
},
|
|
588
|
-
sliceName: {
|
|
589
|
-
flex: 1,
|
|
590
|
-
fontFamily: AppFonts.interBold,
|
|
591
|
-
fontSize: 13.5,
|
|
592
|
-
color: AppColors.primaryBlack,
|
|
593
|
-
},
|
|
594
|
-
timePill: {
|
|
595
|
-
flexDirection: 'row',
|
|
596
|
-
alignItems: 'center',
|
|
597
|
-
gap: 3,
|
|
598
|
-
backgroundColor: `${AppColors.purple}14`,
|
|
599
|
-
paddingHorizontal: 6,
|
|
600
|
-
paddingVertical: 2,
|
|
601
|
-
borderRadius: 4,
|
|
602
|
-
borderWidth: 1,
|
|
603
|
-
borderColor: `${AppColors.purple}2E`,
|
|
604
|
-
},
|
|
605
|
-
timeText: {
|
|
606
|
-
fontFamily: AppFonts.interMedium,
|
|
607
|
-
fontSize: 10,
|
|
608
|
-
color: AppColors.purple,
|
|
609
|
-
},
|
|
610
|
-
statsRow: {
|
|
611
|
-
flexDirection: 'row',
|
|
612
|
-
alignItems: 'center',
|
|
613
|
-
gap: 6,
|
|
614
|
-
flexWrap: 'wrap',
|
|
615
|
-
marginBottom: 6,
|
|
616
|
-
},
|
|
617
|
-
pill: {
|
|
618
|
-
flexDirection: 'row',
|
|
619
|
-
alignItems: 'center',
|
|
620
|
-
gap: 4,
|
|
621
|
-
backgroundColor: AppColors.grayBackground,
|
|
622
|
-
paddingHorizontal: 7,
|
|
623
|
-
paddingVertical: 3,
|
|
624
|
-
borderRadius: 5,
|
|
625
|
-
borderWidth: 1,
|
|
626
|
-
borderColor: AppColors.dividerColor,
|
|
627
|
-
},
|
|
628
|
-
pillLabel: {
|
|
629
|
-
fontFamily: AppFonts.interMedium,
|
|
630
|
-
fontSize: 10.5,
|
|
631
|
-
color: AppColors.grayTextWeak,
|
|
632
|
-
},
|
|
633
|
-
pillValue: {
|
|
634
|
-
fontFamily: AppFonts.interBold,
|
|
635
|
-
fontSize: 10.5,
|
|
636
|
-
color: AppColors.primaryBlack,
|
|
637
|
-
},
|
|
638
|
-
livePill: {
|
|
639
|
-
flexDirection: 'row',
|
|
640
|
-
alignItems: 'center',
|
|
641
|
-
gap: 4,
|
|
642
|
-
backgroundColor: AppColors.emeraldBg,
|
|
643
|
-
paddingHorizontal: 6,
|
|
644
|
-
paddingVertical: 3,
|
|
645
|
-
borderRadius: 5,
|
|
646
|
-
borderWidth: 1,
|
|
647
|
-
borderColor: AppColors.emeraldBorder,
|
|
648
|
-
},
|
|
649
|
-
liveDot: {
|
|
650
|
-
width: 6,
|
|
651
|
-
height: 6,
|
|
652
|
-
borderRadius: 3,
|
|
653
|
-
backgroundColor: AppColors.emerald500,
|
|
654
|
-
},
|
|
655
|
-
livePillText: {
|
|
656
|
-
fontFamily: AppFonts.interBold,
|
|
657
|
-
fontSize: 10,
|
|
658
|
-
color: AppColors.emerald700,
|
|
659
|
-
},
|
|
660
|
-
loadingPill: {
|
|
661
|
-
backgroundColor: AppColors.amber100,
|
|
662
|
-
paddingHorizontal: 6,
|
|
663
|
-
paddingVertical: 3,
|
|
664
|
-
borderRadius: 5,
|
|
665
|
-
borderWidth: 1,
|
|
666
|
-
borderColor: AppColors.amber200,
|
|
667
|
-
},
|
|
668
|
-
loadingPillText: {
|
|
669
|
-
fontFamily: AppFonts.interBold,
|
|
670
|
-
fontSize: 9.5,
|
|
671
|
-
color: AppColors.amber800Warm,
|
|
672
|
-
},
|
|
673
|
-
errorPill: {
|
|
674
|
-
backgroundColor: AppColors.red100,
|
|
675
|
-
paddingHorizontal: 6,
|
|
676
|
-
paddingVertical: 3,
|
|
677
|
-
borderRadius: 5,
|
|
678
|
-
borderWidth: 1,
|
|
679
|
-
borderColor: AppColors.errorBorder,
|
|
680
|
-
},
|
|
681
|
-
errorPillText: {
|
|
682
|
-
fontFamily: AppFonts.interBold,
|
|
683
|
-
fontSize: 9.5,
|
|
684
|
-
color: AppColors.red600,
|
|
685
|
-
},
|
|
686
|
-
emptyPill: {
|
|
687
|
-
backgroundColor: AppColors.grayBackground,
|
|
688
|
-
paddingHorizontal: 6,
|
|
689
|
-
paddingVertical: 3,
|
|
690
|
-
borderRadius: 5,
|
|
691
|
-
borderWidth: 1,
|
|
692
|
-
borderColor: AppColors.dividerColor,
|
|
693
|
-
},
|
|
694
|
-
emptyPillText: {
|
|
695
|
-
fontFamily: AppFonts.interMedium,
|
|
696
|
-
fontSize: 9.5,
|
|
697
|
-
color: AppColors.grayTextWeak,
|
|
698
|
-
},
|
|
699
|
-
lastActionRow: {
|
|
700
|
-
flexDirection: 'row',
|
|
701
|
-
alignItems: 'center',
|
|
702
|
-
gap: 5,
|
|
703
|
-
backgroundColor: AppColors.grayBackground,
|
|
704
|
-
borderRadius: 6,
|
|
705
|
-
paddingHorizontal: 8,
|
|
706
|
-
paddingVertical: 5,
|
|
707
|
-
marginTop: 4,
|
|
708
|
-
borderWidth: 1,
|
|
709
|
-
borderColor: AppColors.dividerColor,
|
|
710
|
-
},
|
|
711
|
-
lastActionLabel: {
|
|
712
|
-
fontFamily: AppFonts.interMedium,
|
|
713
|
-
fontSize: 10.5,
|
|
714
|
-
color: AppColors.grayTextWeak,
|
|
715
|
-
},
|
|
716
|
-
lastActionValue: {
|
|
717
|
-
fontFamily: AppFonts.interBold,
|
|
718
|
-
fontSize: 11,
|
|
719
|
-
color: AppColors.primaryBlack,
|
|
720
|
-
},
|
|
721
|
-
payloadPreviewText: {
|
|
722
|
-
flex: 1,
|
|
723
|
-
fontFamily: AppFonts.interRegular,
|
|
724
|
-
fontSize: 10,
|
|
725
|
-
color: AppColors.grayTextWeak,
|
|
726
|
-
marginLeft: 4,
|
|
727
|
-
},
|
|
728
|
-
highlight: {
|
|
729
|
-
backgroundColor: AppColors.yellow200,
|
|
730
|
-
color: AppColors.yellow800,
|
|
731
|
-
fontFamily: AppFonts.interBold,
|
|
732
|
-
},
|
|
733
|
-
pausedBannerPill: {
|
|
734
|
-
backgroundColor: AppColors.amber100,
|
|
735
|
-
paddingHorizontal: 6,
|
|
736
|
-
paddingVertical: 2,
|
|
737
|
-
borderRadius: 4,
|
|
738
|
-
borderWidth: 1,
|
|
739
|
-
borderColor: AppColors.amber200,
|
|
740
|
-
},
|
|
741
|
-
pausedBannerText: {
|
|
742
|
-
fontFamily: AppFonts.interBold,
|
|
743
|
-
fontSize: 9,
|
|
744
|
-
color: AppColors.amber800Warm,
|
|
745
|
-
letterSpacing: 0.5,
|
|
746
|
-
},
|
|
747
|
-
});
|
|
748
|
-
export default ReduxTab;
|
|
161
|
+
<Fe ref={Se}data={F}keyExtractor={r=>r.id}renderItem={Ve}initialNumToRender={12}maxToRenderPerBatch={8}windowSize={5}removeClippedSubviews={We.OS==="android"}renderToHardwareTextureAndroid={!0}ListEmptyComponent={<Ne isSearch={k.trim().length>0}searchQuery={k}onClearSearch={()=>G("")}customTitle={k.trim().length>0?"No Matching Slices":"No Redux State Detected"}customSub={k.trim().length>0?`No Redux slices match "${k}"`:"Attach the Redux store or dispatch actions to see state slices."}/>}ListFooterComponent={F.length>0?<Ue count={F.length}label="slices"/>:null}contentContainerStyle={[t.listContent,F.length===0&&{flexGrow:1}]}keyboardShouldPersistTaps="handled"/>
|
|
162
|
+
</T>:<T style={B.emptyContainer}>
|
|
163
|
+
<T style={B.emptyIconWrap}>
|
|
164
|
+
<Je color={e.purple}size={32}/>
|
|
165
|
+
</T>
|
|
166
|
+
<C style={B.emptyTitle}>No Redux Store Connected</C>
|
|
167
|
+
<C style={B.emptySub}>
|
|
168
|
+
Call connectReduxStore(store) or use inspectorReduxMiddleware at app initialization.
|
|
169
|
+
</C>
|
|
170
|
+
</T>}),t=He.create({overviewCard:{flexDirection:"row",alignItems:"center",backgroundColor:e.white,marginHorizontal:12,marginTop:10,borderRadius:12,padding:12,borderWidth:1,borderColor:e.dividerColor,shadowColor:e.primaryBlack,shadowOffset:{width:0,height:1},shadowOpacity:.03,shadowRadius:3,elevation:1},statCol:{flex:1},statDivider:{width:1,height:28,backgroundColor:e.dividerColor,marginHorizontal:8},statHeading:{fontFamily:S.interBold,fontSize:9,color:e.grayTextWeak,letterSpacing:.5},statBigVal:{fontFamily:S.interBold,fontSize:14,color:e.primaryBlack,marginTop:2},statLastAction:{fontFamily:S.interBold,fontSize:11,color:e.purple,marginTop:2},statLastTime:{fontFamily:S.interRegular,fontSize:9.5,color:e.grayTextWeak},toolbarContainer:{backgroundColor:e.white,borderBottomWidth:1,borderBottomColor:e.dividerColor,paddingHorizontal:12,paddingTop:8,paddingBottom:6,marginTop:8},searchRow:{flexDirection:"row",alignItems:"center",gap:8},headerSubRow:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginTop:6,paddingHorizontal:2},resultCount:{fontFamily:S.interMedium,fontSize:11,color:e.grayTextWeak},sortLabel:{fontFamily:S.interMedium,fontSize:10.5,color:e.brandPurple},listContent:{padding:12,paddingBottom:36},card:{backgroundColor:e.white,borderRadius:12,padding:12,marginBottom:10,borderWidth:1,borderColor:e.dividerColor,shadowColor:e.primaryBlack,shadowOffset:{width:0,height:1},shadowOpacity:.04,shadowRadius:4,elevation:2},cardRecentlyUpdated:{borderColor:`${e.brandPurple}66`,backgroundColor:e.purpleTintBg},cardHeader:{flexDirection:"row",alignItems:"center",gap:8,marginBottom:8},sliceBadge:{backgroundColor:e.violetSoftBg,paddingHorizontal:6,paddingVertical:3,borderRadius:5,borderWidth:1,borderColor:e.violetSoftBorder},sliceBadgeText:{fontFamily:S.interBold,fontSize:9.5,color:e.purple700,letterSpacing:.4},sliceName:{flex:1,fontFamily:S.interBold,fontSize:13.5,color:e.primaryBlack},timePill:{flexDirection:"row",alignItems:"center",gap:3,backgroundColor:`${e.purple}14`,paddingHorizontal:6,paddingVertical:2,borderRadius:4,borderWidth:1,borderColor:`${e.purple}2E`},timeText:{fontFamily:S.interMedium,fontSize:10,color:e.purple},statsRow:{flexDirection:"row",alignItems:"center",gap:6,flexWrap:"wrap",marginBottom:6},pill:{flexDirection:"row",alignItems:"center",gap:4,backgroundColor:e.grayBackground,paddingHorizontal:7,paddingVertical:3,borderRadius:5,borderWidth:1,borderColor:e.dividerColor},pillLabel:{fontFamily:S.interMedium,fontSize:10.5,color:e.grayTextWeak},pillValue:{fontFamily:S.interBold,fontSize:10.5,color:e.primaryBlack},livePill:{flexDirection:"row",alignItems:"center",gap:4,backgroundColor:e.emeraldBg,paddingHorizontal:6,paddingVertical:3,borderRadius:5,borderWidth:1,borderColor:e.emeraldBorder},liveDot:{width:6,height:6,borderRadius:3,backgroundColor:e.emerald500},livePillText:{fontFamily:S.interBold,fontSize:10,color:e.emerald700},loadingPill:{backgroundColor:e.amber100,paddingHorizontal:6,paddingVertical:3,borderRadius:5,borderWidth:1,borderColor:e.amber200},loadingPillText:{fontFamily:S.interBold,fontSize:9.5,color:e.amber800Warm},errorPill:{backgroundColor:e.red100,paddingHorizontal:6,paddingVertical:3,borderRadius:5,borderWidth:1,borderColor:e.errorBorder},errorPillText:{fontFamily:S.interBold,fontSize:9.5,color:e.red600},emptyPill:{backgroundColor:e.grayBackground,paddingHorizontal:6,paddingVertical:3,borderRadius:5,borderWidth:1,borderColor:e.dividerColor},emptyPillText:{fontFamily:S.interMedium,fontSize:9.5,color:e.grayTextWeak},lastActionRow:{flexDirection:"row",alignItems:"center",gap:5,backgroundColor:e.grayBackground,borderRadius:6,paddingHorizontal:8,paddingVertical:5,marginTop:4,borderWidth:1,borderColor:e.dividerColor},lastActionLabel:{fontFamily:S.interMedium,fontSize:10.5,color:e.grayTextWeak},lastActionValue:{fontFamily:S.interBold,fontSize:11,color:e.primaryBlack},payloadPreviewText:{flex:1,fontFamily:S.interRegular,fontSize:10,color:e.grayTextWeak,marginLeft:4},highlight:{backgroundColor:e.yellow200,color:e.yellow800,fontFamily:S.interBold},pausedBannerPill:{backgroundColor:e.amber100,paddingHorizontal:6,paddingVertical:2,borderRadius:4,borderWidth:1,borderColor:e.amber200},pausedBannerText:{fontFamily:S.interBold,fontSize:9,color:e.amber800Warm,letterSpacing:.5}});export default vt;
|