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