react-native-inapp-inspector 2.3.18 → 2.3.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/src/main/java/com/inappinspector/NetworkInspectorModule.kt +57 -0
- package/dist/commonjs/analytics.js +1 -24
- package/dist/commonjs/bundle.js +1 -16
- package/dist/commonjs/capture.d.ts +2 -0
- package/dist/commonjs/capture.js +1 -32
- package/dist/commonjs/components/AnalyticsDetail.js +92 -623
- package/dist/commonjs/components/AnalyticsEventCard.js +54 -350
- package/dist/commonjs/components/AnalyticsGraph.js +70 -370
- package/dist/commonjs/components/AnimatedEntrance.js +1 -11
- package/dist/commonjs/components/AppHeaderLogo.js +7 -134
- package/dist/commonjs/components/BrandCircleIcon.js +73 -118
- package/dist/commonjs/components/BrandSquareIcon.js +63 -108
- package/dist/commonjs/components/CodeSnippet.js +48 -623
- package/dist/commonjs/components/ConsoleLogCard.js +63 -537
- package/dist/commonjs/components/CopyButton.js +3 -89
- package/dist/commonjs/components/DiffViewer.js +19 -83
- package/dist/commonjs/components/DomainHeader.js +27 -127
- package/dist/commonjs/components/EmptyState.d.ts +1 -0
- package/dist/commonjs/components/EmptyState.js +10 -87
- package/dist/commonjs/components/EndOfListFooter.js +7 -81
- package/dist/commonjs/components/ErrorBoundary.js +72 -566
- package/dist/commonjs/components/HeadersSection.js +31 -110
- package/dist/commonjs/components/HighlightText.js +17 -58
- package/dist/commonjs/components/Inspector/AboutModal.d.ts +6 -0
- package/dist/commonjs/components/Inspector/AboutModal.js +351 -0
- package/dist/commonjs/components/Inspector/AnalyticsFilterModal.js +98 -797
- package/dist/commonjs/components/Inspector/AnalyticsTab.js +284 -930
- package/dist/commonjs/components/Inspector/BundleTab.js +551 -2918
- package/dist/commonjs/components/Inspector/ConsoleTab.js +79 -492
- package/dist/commonjs/components/Inspector/CrashDetail.js +123 -672
- package/dist/commonjs/components/Inspector/CrashFilterModal.js +66 -498
- package/dist/commonjs/components/Inspector/CrashTab.js +98 -670
- package/dist/commonjs/components/Inspector/DebuggingTab.js +64 -871
- package/dist/commonjs/components/Inspector/DeviceInfoTab.js +143 -907
- package/dist/commonjs/components/Inspector/FabLauncher.js +85 -54
- package/dist/commonjs/components/Inspector/FeatureUnderDevNotice.js +6 -99
- package/dist/commonjs/components/Inspector/FeedbackModal.d.ts +9 -0
- package/dist/commonjs/components/Inspector/FeedbackModal.js +167 -521
- package/dist/commonjs/components/Inspector/InspectorContext.js +1 -21
- package/dist/commonjs/components/Inspector/InspectorHeader.js +219 -1093
- package/dist/commonjs/components/Inspector/LogDetail.js +168 -994
- package/dist/commonjs/components/Inspector/MainScreen.js +60 -332
- package/dist/commonjs/components/Inspector/MediaGalleryTab.js +136 -278
- package/dist/commonjs/components/Inspector/MediaPreviewModal.js +134 -361
- package/dist/commonjs/components/Inspector/NavigationTracker.js +1 -12
- package/dist/commonjs/components/Inspector/NetworkDetail.js +96 -432
- package/dist/commonjs/components/Inspector/NetworkFilterModal.js +60 -576
- package/dist/commonjs/components/Inspector/NetworkTab.js +84 -514
- package/dist/commonjs/components/Inspector/NpmStarPrompt.js +17 -433
- package/dist/commonjs/components/Inspector/NpmUpdateToast.js +25 -298
- package/dist/commonjs/components/Inspector/PerformanceTab.js +182 -1397
- package/dist/commonjs/components/Inspector/ReduxDetail.js +188 -1089
- package/dist/commonjs/components/Inspector/ReduxTab.js +85 -701
- package/dist/commonjs/components/Inspector/SettingsPanel.js +431 -3431
- package/dist/commonjs/components/Inspector/SkeletonPlaceholder.js +11 -180
- package/dist/commonjs/components/Inspector/StorageTab.js +93 -826
- package/dist/commonjs/components/Inspector/TabBar.js +47 -183
- package/dist/commonjs/components/Inspector/UpdateAvailableModal.js +34 -408
- package/dist/commonjs/components/JsonViewer.js +168 -380
- package/dist/commonjs/components/LogCard.js +57 -567
- package/dist/commonjs/components/LogSyntaxHighlighter.js +11 -130
- package/dist/commonjs/components/MetaAccordion.js +69 -238
- package/dist/commonjs/components/MiniBarChart.js +3 -56
- package/dist/commonjs/components/MiniLineChart.js +3 -58
- package/dist/commonjs/components/NetworkIcons.d.ts +7 -0
- package/dist/commonjs/components/NetworkIcons.js +479 -997
- package/dist/commonjs/components/QRCodeView.js +5 -79
- package/dist/commonjs/components/SectionHeader.js +15 -37
- package/dist/commonjs/components/SegmentedTabs.js +7 -61
- package/dist/commonjs/components/SkeletonPlaceholder.js +11 -180
- package/dist/commonjs/components/Slider.js +15 -243
- package/dist/commonjs/components/SourcePageCard.js +30 -89
- package/dist/commonjs/components/Toast.js +5 -147
- package/dist/commonjs/components/TouchableScale.js +3 -24
- package/dist/commonjs/components/TreeNode.js +55 -130
- package/dist/commonjs/console.js +1 -16
- package/dist/commonjs/constants/index.js +1 -32
- package/dist/commonjs/constants/telemetryConfig.js +1 -6
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -4
- package/dist/commonjs/crash.js +1 -23
- package/dist/commonjs/customHooks/analyticsLogger.js +1 -250
- package/dist/commonjs/customHooks/bundleAnalyzer.js +1 -957
- package/dist/commonjs/customHooks/consoleLogger.js +6 -445
- package/dist/commonjs/customHooks/crashHandler.js +7 -656
- package/dist/commonjs/customHooks/logFilters.js +1 -23
- package/dist/commonjs/customHooks/networkLogger.js +2 -536
- package/dist/commonjs/customHooks/performanceTracker.js +63 -750
- package/dist/commonjs/customHooks/reduxLogger.js +2 -313
- package/dist/commonjs/customHooks/storageInspector.js +1 -435
- package/dist/commonjs/customHooks/useAccordion.js +1 -18
- package/dist/commonjs/decorators/index.js +1 -100
- package/dist/commonjs/helpers/gaAnalyticsRegistry.js +1 -148
- package/dist/commonjs/helpers/index.js +8 -921
- package/dist/commonjs/helpers/memoryManager.js +1 -99
- package/dist/commonjs/helpers/qrGenerator.js +1 -367
- package/dist/commonjs/helpers/remoteConfig.js +1 -165
- package/dist/commonjs/helpers/searchQueryParser.js +1 -62
- package/dist/commonjs/helpers/settingsStore.js +1 -144
- package/dist/commonjs/helpers/telemetry.js +1 -501
- package/dist/commonjs/helpers/toast.js +1 -20
- package/dist/commonjs/i18n/index.js +1 -90
- package/dist/commonjs/i18n/locales/en.json +1 -1122
- package/dist/commonjs/index.js +5 -2153
- package/dist/commonjs/metro.js +6 -468
- package/dist/commonjs/native/NativeInspector.d.ts +3 -0
- package/dist/commonjs/native/NativeInspector.js +1 -402
- package/dist/commonjs/native/NativeNetworkInspector.d.ts +1 -0
- package/dist/commonjs/native/NativeNetworkInspector.js +1 -4
- package/dist/commonjs/network.js +1 -13
- package/dist/commonjs/performance.js +1 -29
- package/dist/commonjs/redux.js +1 -20
- package/dist/commonjs/storage.js +1 -14
- package/dist/commonjs/styles/AppColors.js +1 -423
- package/dist/commonjs/styles/AppFonts.js +1 -17
- package/dist/commonjs/styles/common.js +1 -190
- package/dist/commonjs/styles/index.d.ts +6 -0
- package/dist/commonjs/styles/index.js +1 -1589
- package/dist/commonjs/types/enums.d.ts +2 -1
- package/dist/commonjs/types/enums.js +1 -150
- package/dist/commonjs/types/index.js +1 -18
- package/dist/commonjs/types/interfaces.d.ts +7 -0
- package/dist/commonjs/types/interfaces.js +1 -2
- package/dist/esm/analytics.js +1 -2
- package/dist/esm/bundle.js +1 -2
- package/dist/esm/capture.d.ts +2 -0
- package/dist/esm/capture.js +1 -29
- package/dist/esm/components/AnalyticsDetail.js +171 -664
- package/dist/esm/components/AnalyticsEventCard.js +77 -335
- package/dist/esm/components/AnalyticsGraph.js +95 -357
- package/dist/esm/components/AnimatedEntrance.js +1 -6
- package/dist/esm/components/AppHeaderLogo.js +7 -94
- package/dist/esm/components/BrandCircleIcon.js +114 -119
- package/dist/esm/components/BrandSquareIcon.js +73 -78
- package/dist/esm/components/CodeSnippet.js +58 -595
- package/dist/esm/components/ConsoleLogCard.js +91 -526
- package/dist/esm/components/CopyButton.js +3 -51
- package/dist/esm/components/DiffViewer.js +22 -48
- package/dist/esm/components/DomainHeader.js +43 -138
- package/dist/esm/components/EmptyState.d.ts +1 -0
- package/dist/esm/components/EmptyState.js +17 -56
- package/dist/esm/components/EndOfListFooter.js +15 -83
- package/dist/esm/components/ErrorBoundary.js +125 -582
- package/dist/esm/components/HeadersSection.js +52 -93
- package/dist/esm/components/HighlightText.js +17 -53
- package/dist/esm/components/Inspector/AboutModal.d.ts +6 -0
- package/dist/esm/components/Inspector/AboutModal.js +351 -0
- package/dist/esm/components/Inspector/AnalyticsFilterModal.js +225 -886
- package/dist/esm/components/Inspector/AnalyticsTab.js +296 -904
- package/dist/esm/components/Inspector/BundleTab.js +1175 -3502
- package/dist/esm/components/Inspector/ConsoleTab.js +113 -488
- package/dist/esm/components/Inspector/CrashDetail.js +236 -747
- package/dist/esm/components/Inspector/CrashFilterModal.js +149 -541
- package/dist/esm/components/Inspector/CrashTab.js +177 -711
- package/dist/esm/components/Inspector/DebuggingTab.js +156 -923
- package/dist/esm/components/Inspector/DeviceInfoTab.js +199 -924
- package/dist/esm/components/Inspector/FabLauncher.js +85 -49
- package/dist/esm/components/Inspector/FeatureUnderDevNotice.js +14 -70
- package/dist/esm/components/Inspector/FeedbackModal.d.ts +9 -0
- package/dist/esm/components/Inspector/FeedbackModal.js +182 -499
- package/dist/esm/components/Inspector/InspectorContext.js +1 -12
- package/dist/esm/components/Inspector/InspectorHeader.js +309 -1145
- package/dist/esm/components/Inspector/LogDetail.js +235 -1023
- package/dist/esm/components/Inspector/MainScreen.js +86 -320
- package/dist/esm/components/Inspector/MediaGalleryTab.js +157 -259
- package/dist/esm/components/Inspector/MediaPreviewModal.js +153 -340
- package/dist/esm/components/Inspector/NavigationTracker.js +1 -10
- package/dist/esm/components/Inspector/NetworkDetail.js +141 -472
- package/dist/esm/components/Inspector/NetworkFilterModal.js +122 -597
- package/dist/esm/components/Inspector/NetworkTab.js +125 -517
- package/dist/esm/components/Inspector/NpmStarPrompt.js +58 -434
- package/dist/esm/components/Inspector/NpmUpdateToast.js +45 -281
- package/dist/esm/components/Inspector/PerformanceTab.js +393 -1570
- package/dist/esm/components/Inspector/ReduxDetail.js +307 -1170
- package/dist/esm/components/Inspector/ReduxTab.js +144 -722
- package/dist/esm/components/Inspector/SettingsPanel.js +647 -3609
- package/dist/esm/components/Inspector/SkeletonPlaceholder.js +30 -163
- package/dist/esm/components/Inspector/StorageTab.js +172 -866
- package/dist/esm/components/Inspector/TabBar.js +52 -183
- package/dist/esm/components/Inspector/UpdateAvailableModal.js +79 -416
- package/dist/esm/components/JsonViewer.js +179 -353
- package/dist/esm/components/LogCard.js +93 -565
- package/dist/esm/components/LogSyntaxHighlighter.js +11 -123
- package/dist/esm/components/MetaAccordion.js +136 -267
- package/dist/esm/components/MiniBarChart.js +3 -18
- package/dist/esm/components/MiniLineChart.js +3 -20
- package/dist/esm/components/NetworkIcons.d.ts +7 -0
- package/dist/esm/components/NetworkIcons.js +481 -817
- package/dist/esm/components/QRCodeView.js +8 -45
- package/dist/esm/components/SectionHeader.js +22 -39
- package/dist/esm/components/SegmentedTabs.js +8 -57
- package/dist/esm/components/SkeletonPlaceholder.js +30 -163
- package/dist/esm/components/Slider.js +24 -213
- package/dist/esm/components/SourcePageCard.js +65 -86
- package/dist/esm/components/Toast.js +10 -117
- package/dist/esm/components/TouchableScale.js +3 -19
- package/dist/esm/components/TreeNode.js +58 -95
- package/dist/esm/console.js +1 -2
- package/dist/esm/constants/index.js +1 -28
- package/dist/esm/constants/telemetryConfig.js +1 -3
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/crash.js +1 -2
- package/dist/esm/customHooks/analyticsLogger.js +1 -230
- package/dist/esm/customHooks/bundleAnalyzer.js +1 -944
- package/dist/esm/customHooks/consoleLogger.js +6 -432
- package/dist/esm/customHooks/crashHandler.js +7 -630
- package/dist/esm/customHooks/logFilters.js +1 -20
- package/dist/esm/customHooks/networkLogger.js +2 -519
- package/dist/esm/customHooks/performanceTracker.js +63 -723
- package/dist/esm/customHooks/reduxLogger.js +2 -293
- package/dist/esm/customHooks/storageInspector.js +1 -418
- package/dist/esm/customHooks/useAccordion.js +1 -16
- package/dist/esm/decorators/index.js +1 -95
- package/dist/esm/helpers/gaAnalyticsRegistry.js +1 -143
- package/dist/esm/helpers/index.js +8 -861
- package/dist/esm/helpers/memoryManager.js +1 -91
- package/dist/esm/helpers/qrGenerator.js +1 -364
- package/dist/esm/helpers/remoteConfig.js +1 -160
- package/dist/esm/helpers/searchQueryParser.js +1 -59
- package/dist/esm/helpers/settingsStore.js +1 -134
- package/dist/esm/helpers/telemetry.js +1 -489
- package/dist/esm/helpers/toast.js +1 -15
- package/dist/esm/i18n/index.js +1 -78
- package/dist/esm/i18n/locales/en.json +1 -1122
- package/dist/esm/index.js +7 -1967
- package/dist/esm/metro.js +6 -459
- package/dist/esm/native/NativeInspector.d.ts +3 -0
- package/dist/esm/native/NativeInspector.js +1 -370
- package/dist/esm/native/NativeNetworkInspector.d.ts +1 -0
- package/dist/esm/native/NativeNetworkInspector.js +1 -2
- package/dist/esm/network.js +1 -1
- package/dist/esm/performance.js +1 -2
- package/dist/esm/redux.js +1 -1
- package/dist/esm/storage.js +1 -1
- package/dist/esm/styles/AppColors.js +1 -417
- package/dist/esm/styles/AppFonts.js +1 -13
- package/dist/esm/styles/common.js +1 -186
- package/dist/esm/styles/index.d.ts +6 -0
- package/dist/esm/styles/index.js +1 -1551
- package/dist/esm/types/enums.d.ts +2 -1
- package/dist/esm/types/enums.js +1 -147
- package/dist/esm/types/index.js +1 -2
- package/dist/esm/types/interfaces.d.ts +7 -0
- package/dist/esm/types/interfaces.js +1 -1
- package/ios/NetworkInspectorModule.mm +253 -136
- package/package.json +5 -3
- package/react-native-inapp-inspector.podspec +1 -1
- package/src/native/NativeInspector.ts +17 -0
- package/src/native/NativeNetworkInspector.ts +1 -0
- package/src/analytics.ts +0 -35
- package/src/bundle.ts +0 -25
- package/src/capture.ts +0 -101
- package/src/components/AnalyticsDetail.tsx +0 -870
- package/src/components/AnalyticsEventCard.tsx +0 -444
- package/src/components/AnalyticsGraph.tsx +0 -583
- package/src/components/AnimatedEntrance.tsx +0 -20
- package/src/components/AppHeaderLogo.tsx +0 -143
- package/src/components/BrandCircleIcon.tsx +0 -144
- package/src/components/BrandSquareIcon.tsx +0 -184
- package/src/components/CodeSnippet.tsx +0 -725
- package/src/components/ConsoleLogCard.tsx +0 -679
- package/src/components/CopyButton.tsx +0 -87
- package/src/components/DiffViewer.tsx +0 -82
- package/src/components/DomainHeader.tsx +0 -224
- package/src/components/EmptyState.tsx +0 -95
- package/src/components/EndOfListFooter.tsx +0 -100
- package/src/components/ErrorBoundary.tsx +0 -688
- package/src/components/HeadersSection.tsx +0 -172
- package/src/components/HighlightText.tsx +0 -100
- package/src/components/Inspector/AnalyticsFilterModal.tsx +0 -1250
- package/src/components/Inspector/AnalyticsTab.tsx +0 -1362
- package/src/components/Inspector/BundleTab.tsx +0 -4768
- package/src/components/Inspector/ConsoleTab.tsx +0 -726
- package/src/components/Inspector/CrashDetail.tsx +0 -997
- package/src/components/Inspector/CrashFilterModal.tsx +0 -721
- package/src/components/Inspector/CrashTab.tsx +0 -933
- package/src/components/Inspector/DebuggingTab.tsx +0 -1103
- package/src/components/Inspector/DeviceInfoTab.tsx +0 -1397
- package/src/components/Inspector/FabLauncher.tsx +0 -80
- package/src/components/Inspector/FeatureUnderDevNotice.tsx +0 -94
- package/src/components/Inspector/FeedbackModal.tsx +0 -626
- package/src/components/Inspector/InspectorContext.tsx +0 -28
- package/src/components/Inspector/InspectorHeader.tsx +0 -1545
- package/src/components/Inspector/LogDetail.tsx +0 -1431
- package/src/components/Inspector/MainScreen.tsx +0 -459
- package/src/components/Inspector/MediaGalleryTab.tsx +0 -355
- package/src/components/Inspector/MediaPreviewModal.tsx +0 -435
- package/src/components/Inspector/NavigationTracker.tsx +0 -13
- package/src/components/Inspector/NetworkDetail.tsx +0 -795
- package/src/components/Inspector/NetworkFilterModal.tsx +0 -730
- package/src/components/Inspector/NetworkTab.tsx +0 -820
- package/src/components/Inspector/NpmStarPrompt.tsx +0 -532
- package/src/components/Inspector/NpmUpdateToast.tsx +0 -387
- package/src/components/Inspector/PerformanceTab.tsx +0 -1967
- package/src/components/Inspector/ReduxDetail.tsx +0 -1651
- package/src/components/Inspector/ReduxTab.tsx +0 -987
- package/src/components/Inspector/SettingsPanel.tsx +0 -4580
- package/src/components/Inspector/SkeletonPlaceholder.tsx +0 -206
- package/src/components/Inspector/StorageTab.tsx +0 -1159
- package/src/components/Inspector/TabBar.tsx +0 -263
- package/src/components/Inspector/UpdateAvailableModal.tsx +0 -555
- package/src/components/JsonViewer.tsx +0 -547
- package/src/components/LogCard.tsx +0 -694
- package/src/components/LogSyntaxHighlighter.tsx +0 -178
- package/src/components/MetaAccordion.tsx +0 -355
- package/src/components/MiniBarChart.tsx +0 -42
- package/src/components/MiniLineChart.tsx +0 -33
- package/src/components/NetworkIcons.tsx +0 -2599
- package/src/components/QRCodeView.tsx +0 -75
- package/src/components/SectionHeader.tsx +0 -101
- package/src/components/SegmentedTabs.tsx +0 -83
- package/src/components/SkeletonPlaceholder.tsx +0 -206
- package/src/components/Slider.tsx +0 -300
- package/src/components/SourcePageCard.tsx +0 -150
- package/src/components/Toast.tsx +0 -131
- package/src/components/TouchableScale.tsx +0 -61
- package/src/components/TreeNode.tsx +0 -171
- package/src/console.ts +0 -24
- package/src/constants/index.ts +0 -41
- package/src/constants/telemetryConfig.ts +0 -4
- package/src/constants/version.ts +0 -3
- package/src/crash.ts +0 -32
- package/src/customHooks/analyticsLogger.ts +0 -336
- package/src/customHooks/bundleAnalyzer.ts +0 -1256
- package/src/customHooks/consoleLogger.ts +0 -530
- package/src/customHooks/crashHandler.ts +0 -944
- package/src/customHooks/logFilters.ts +0 -32
- package/src/customHooks/networkLogger.ts +0 -624
- package/src/customHooks/performanceTracker.ts +0 -1014
- package/src/customHooks/reduxLogger.ts +0 -406
- package/src/customHooks/storageInspector.ts +0 -513
- package/src/customHooks/useAccordion.tsx +0 -27
- package/src/decorators/index.ts +0 -184
- package/src/helpers/gaAnalyticsRegistry.ts +0 -204
- package/src/helpers/index.ts +0 -1092
- package/src/helpers/memoryManager.ts +0 -138
- package/src/helpers/qrGenerator.ts +0 -430
- package/src/helpers/remoteConfig.ts +0 -212
- package/src/helpers/searchQueryParser.ts +0 -84
- package/src/helpers/settingsStore.ts +0 -171
- package/src/helpers/telemetry.ts +0 -568
- package/src/helpers/toast.ts +0 -17
- package/src/i18n/index.ts +0 -104
- package/src/i18n/locales/en.json +0 -1125
- package/src/index.tsx +0 -2635
- package/src/metro.ts +0 -598
- package/src/network.ts +0 -22
- package/src/performance.ts +0 -38
- package/src/redux.ts +0 -23
- package/src/storage.ts +0 -18
- package/src/styles/AppColors.ts +0 -455
- package/src/styles/AppFonts.ts +0 -26
- package/src/styles/common.ts +0 -209
- package/src/styles/index.ts +0 -1606
- package/src/types/enums.ts +0 -208
- package/src/types/index.ts +0 -34
- package/src/types/interfaces.ts +0 -530
|
@@ -1,151 +1,19 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.NpmUpdateToast = void 0;
|
|
37
|
-
const react_1 = __importStar(require("react"));
|
|
38
|
-
const react_native_1 = require("react-native");
|
|
39
|
-
const react_native_svg_1 = __importStar(require("react-native-svg"));
|
|
40
|
-
const InspectorContext_1 = require("./InspectorContext");
|
|
41
|
-
const constants_1 = require("../../constants");
|
|
42
|
-
const NetworkIcons_1 = require("../NetworkIcons");
|
|
43
|
-
const helpers_1 = require("../../helpers");
|
|
44
|
-
const toast_1 = require("../../helpers/toast");
|
|
45
|
-
const AppFonts_1 = require("../../styles/AppFonts");
|
|
46
|
-
const CloseSvg = ({ size = 13, color = '#94A3B8' }) => (<react_native_svg_1.default width={size} height={size} viewBox="0 0 24 24" fill="none">
|
|
47
|
-
<react_native_svg_1.Path d="M18 6L6 18M6 6l12 12" stroke={color} strokeWidth="2.4" strokeLinecap="round" strokeLinejoin="round"/>
|
|
48
|
-
</react_native_svg_1.default>);
|
|
49
|
-
const CopySvg = ({ size = 11, color = '#94A3B8' }) => (<react_native_svg_1.default width={size} height={size} viewBox="0 0 24 24" fill="none">
|
|
50
|
-
<react_native_svg_1.Path d="M8 4v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2h-8a2 2 0 0 0-2 2z" stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
|
|
51
|
-
<react_native_svg_1.Path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2" stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
|
|
52
|
-
</react_native_svg_1.default>);
|
|
53
|
-
const CheckSvg = ({ size = 11, color = '#10B981' }) => (<react_native_svg_1.default width={size} height={size} viewBox="0 0 24 24" fill="none">
|
|
54
|
-
<react_native_svg_1.Path d="M20 6L9 17l-5-5" stroke={color} strokeWidth="2.4" strokeLinecap="round" strokeLinejoin="round"/>
|
|
55
|
-
</react_native_svg_1.default>);
|
|
56
|
-
const ExternalLinkSvg = ({ size = 11, color = '#FFFFFF' }) => (<react_native_svg_1.default width={size} height={size} viewBox="0 0 24 24" fill="none">
|
|
57
|
-
<react_native_svg_1.Path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
|
|
58
|
-
<react_native_svg_1.Path d="M15 3h6v6" stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
|
|
59
|
-
<react_native_svg_1.Path d="M10 14L21 3" stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
|
|
60
|
-
</react_native_svg_1.default>);
|
|
61
|
-
const TOAST_TIMEOUT_MS = 7000;
|
|
62
|
-
const NpmUpdateToast = () => {
|
|
63
|
-
const { updateAvailable, latestNpmVersion, showUpdateToast } = (0, InspectorContext_1.useInspector)();
|
|
64
|
-
const [dismissed, setDismissed] = (0, react_1.useState)(false);
|
|
65
|
-
const [visible, setVisible] = (0, react_1.useState)(false);
|
|
66
|
-
const [copied, setCopied] = (0, react_1.useState)(false);
|
|
67
|
-
const translateYAnim = (0, react_1.useRef)(new react_native_1.Animated.Value(60)).current;
|
|
68
|
-
const opacityAnim = (0, react_1.useRef)(new react_native_1.Animated.Value(0)).current;
|
|
69
|
-
const progressAnim = (0, react_1.useRef)(new react_native_1.Animated.Value(1)).current;
|
|
70
|
-
const timerRef = (0, react_1.useRef)(null);
|
|
71
|
-
(0, react_1.useEffect)(() => {
|
|
72
|
-
if (showUpdateToast && updateAvailable && latestNpmVersion && !dismissed) {
|
|
73
|
-
setVisible(true);
|
|
74
|
-
react_native_1.Animated.parallel([
|
|
75
|
-
react_native_1.Animated.spring(translateYAnim, {
|
|
76
|
-
toValue: 0,
|
|
77
|
-
friction: 8,
|
|
78
|
-
tension: 40,
|
|
79
|
-
useNativeDriver: true,
|
|
80
|
-
}),
|
|
81
|
-
react_native_1.Animated.timing(opacityAnim, {
|
|
82
|
-
toValue: 1,
|
|
83
|
-
duration: 250,
|
|
84
|
-
useNativeDriver: true,
|
|
85
|
-
}),
|
|
86
|
-
]).start();
|
|
87
|
-
progressAnim.setValue(1);
|
|
88
|
-
react_native_1.Animated.timing(progressAnim, {
|
|
89
|
-
toValue: 0,
|
|
90
|
-
duration: TOAST_TIMEOUT_MS,
|
|
91
|
-
useNativeDriver: false,
|
|
92
|
-
}).start();
|
|
93
|
-
timerRef.current = setTimeout(() => {
|
|
94
|
-
handleDismiss();
|
|
95
|
-
}, TOAST_TIMEOUT_MS);
|
|
96
|
-
}
|
|
97
|
-
return () => {
|
|
98
|
-
if (timerRef.current) {
|
|
99
|
-
clearTimeout(timerRef.current);
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
}, [showUpdateToast, updateAvailable, latestNpmVersion, dismissed]);
|
|
103
|
-
const handleDismiss = () => {
|
|
104
|
-
react_native_1.Animated.parallel([
|
|
105
|
-
react_native_1.Animated.timing(opacityAnim, {
|
|
106
|
-
toValue: 0,
|
|
107
|
-
duration: 180,
|
|
108
|
-
useNativeDriver: true,
|
|
109
|
-
}),
|
|
110
|
-
react_native_1.Animated.timing(translateYAnim, {
|
|
111
|
-
toValue: 60,
|
|
112
|
-
duration: 180,
|
|
113
|
-
useNativeDriver: true,
|
|
114
|
-
}),
|
|
115
|
-
]).start(() => {
|
|
116
|
-
setVisible(false);
|
|
117
|
-
setDismissed(true);
|
|
118
|
-
});
|
|
119
|
-
};
|
|
120
|
-
const handleCopyCommand = () => {
|
|
121
|
-
(0, helpers_1.copyToClipboard)('npm install react-native-inapp-inspector@latest', 'Install Command');
|
|
122
|
-
setCopied(true);
|
|
123
|
-
(0, toast_1.showToast)('Copied npm install command!');
|
|
124
|
-
setTimeout(() => {
|
|
125
|
-
setCopied(false);
|
|
126
|
-
}, 2000);
|
|
127
|
-
};
|
|
128
|
-
const handleOpenNpm = () => {
|
|
129
|
-
react_native_1.Linking.openURL('https://www.npmjs.com/package/react-native-inapp-inspector').catch(() => { });
|
|
130
|
-
handleDismiss();
|
|
131
|
-
};
|
|
132
|
-
if (typeof __DEV__ === 'undefined' || !__DEV__ || !showUpdateToast || !visible || !updateAvailable || !latestNpmVersion)
|
|
133
|
-
return null;
|
|
134
|
-
const progressWidth = progressAnim.interpolate({
|
|
135
|
-
inputRange: [0, 1],
|
|
136
|
-
outputRange: ['0%', '100%'],
|
|
137
|
-
});
|
|
138
|
-
return (<react_native_1.Animated.View style={[
|
|
139
|
-
styles.container,
|
|
140
|
-
{
|
|
141
|
-
opacity: opacityAnim,
|
|
142
|
-
transform: [{ translateY: translateYAnim }],
|
|
143
|
-
},
|
|
144
|
-
]}>
|
|
1
|
+
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(t,e,i,o){o===void 0&&(o=i);var n=Object.getOwnPropertyDescriptor(e,i);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,o,n)}):(function(t,e,i,o){o===void 0&&(o=i),t[o]=e[i]})),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),__importStar=this&&this.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(i){var o=[];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(o[o.length]=n);return o},t(e)};return function(e){if(e&&e.__esModule)return e;var i={};if(e!=null)for(var o=t(e),n=0;n<o.length;n++)o[n]!=="default"&&__createBinding(i,e,o[n]);return __setModuleDefault(i,e),i}})();Object.defineProperty(exports,"__esModule",{value:!0}),exports.NpmUpdateToast=void 0;const react_1=__importStar(require("react")),react_native_1=require("react-native"),react_native_svg_1=__importStar(require("react-native-svg")),InspectorContext_1=require("./InspectorContext"),constants_1=require("../../constants"),NetworkIcons_1=require("../NetworkIcons"),helpers_1=require("../../helpers"),toast_1=require("../../helpers/toast"),AppFonts_1=require("../../styles/AppFonts"),CloseSvg=({size:t=13,color:e="#94A3B8"})=><react_native_svg_1.default width={t}height={t}viewBox="0 0 24 24"fill="none">
|
|
2
|
+
<react_native_svg_1.Path d="M18 6L6 18M6 6l12 12"stroke={e}strokeWidth="2.4"strokeLinecap="round"strokeLinejoin="round"/>
|
|
3
|
+
</react_native_svg_1.default>,CopySvg=({size:t=11,color:e="#94A3B8"})=><react_native_svg_1.default width={t}height={t}viewBox="0 0 24 24"fill="none">
|
|
4
|
+
<react_native_svg_1.Path d="M8 4v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2h-8a2 2 0 0 0-2 2z"stroke={e}strokeWidth="2"strokeLinecap="round"strokeLinejoin="round"/>
|
|
5
|
+
<react_native_svg_1.Path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"stroke={e}strokeWidth="2"strokeLinecap="round"strokeLinejoin="round"/>
|
|
6
|
+
</react_native_svg_1.default>,CheckSvg=({size:t=11,color:e="#10B981"})=><react_native_svg_1.default width={t}height={t}viewBox="0 0 24 24"fill="none">
|
|
7
|
+
<react_native_svg_1.Path d="M20 6L9 17l-5-5"stroke={e}strokeWidth="2.4"strokeLinecap="round"strokeLinejoin="round"/>
|
|
8
|
+
</react_native_svg_1.default>,ExternalLinkSvg=({size:t=11,color:e="#FFFFFF"})=><react_native_svg_1.default width={t}height={t}viewBox="0 0 24 24"fill="none">
|
|
9
|
+
<react_native_svg_1.Path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"stroke={e}strokeWidth="2"strokeLinecap="round"strokeLinejoin="round"/>
|
|
10
|
+
<react_native_svg_1.Path d="M15 3h6v6"stroke={e}strokeWidth="2"strokeLinecap="round"strokeLinejoin="round"/>
|
|
11
|
+
<react_native_svg_1.Path d="M10 14L21 3"stroke={e}strokeWidth="2"strokeLinecap="round"strokeLinejoin="round"/>
|
|
12
|
+
</react_native_svg_1.default>,TOAST_TIMEOUT_MS=7e3,NpmUpdateToast=()=>{const{updateAvailable:t,latestNpmVersion:e,showUpdateToast:i}=(0,InspectorContext_1.useInspector)(),[o,n]=(0,react_1.useState)(!1),[h,u]=(0,react_1.useState)(!1),[r,p]=(0,react_1.useState)(!1),a=(0,react_1.useRef)(new react_native_1.Animated.Value(60)).current,s=(0,react_1.useRef)(new react_native_1.Animated.Value(0)).current,l=(0,react_1.useRef)(new react_native_1.Animated.Value(1)).current,c=(0,react_1.useRef)(null);(0,react_1.useEffect)(()=>(i&&t&&e&&!o&&(u(!0),react_native_1.Animated.parallel([react_native_1.Animated.spring(a,{toValue:0,friction:8,tension:40,useNativeDriver:!0}),react_native_1.Animated.timing(s,{toValue:1,duration:250,useNativeDriver:!0})]).start(),l.setValue(1),react_native_1.Animated.timing(l,{toValue:0,duration:TOAST_TIMEOUT_MS,useNativeDriver:!1}).start(),c.current=setTimeout(()=>{d()},TOAST_TIMEOUT_MS)),()=>{c.current&&clearTimeout(c.current)}),[i,t,e,o]);const d=()=>{react_native_1.Animated.parallel([react_native_1.Animated.timing(s,{toValue:0,duration:180,useNativeDriver:!0}),react_native_1.Animated.timing(a,{toValue:60,duration:180,useNativeDriver:!0})]).start(()=>{u(!1),n(!0)})},f=()=>{(0,helpers_1.copyToClipboard)("npm install react-native-inapp-inspector@latest","Install Command"),p(!0),(0,toast_1.showToast)("Copied npm install command!"),setTimeout(()=>{p(!1)},2e3)},_=()=>{react_native_1.Linking.openURL("https://www.npmjs.com/package/react-native-inapp-inspector").catch(()=>{}),d()};if(typeof __DEV__>"u"||!__DEV__||!i||!h||!t||!e)return null;const v=l.interpolate({inputRange:[0,1],outputRange:["0%","100%"]});return<react_native_1.Animated.View style={[styles.container,{opacity:s,transform:[{translateY:a}]}]}>
|
|
145
13
|
<react_native_1.View style={styles.contentRow}>
|
|
146
14
|
|
|
147
15
|
<react_native_1.View style={styles.npmIconContainer}>
|
|
148
|
-
<NetworkIcons_1.NpmIcon size={15}
|
|
16
|
+
<NetworkIcons_1.NpmIcon size={15}color="#CB3837"/>
|
|
149
17
|
</react_native_1.View>
|
|
150
18
|
|
|
151
19
|
|
|
@@ -153,177 +21,36 @@ const NpmUpdateToast = () => {
|
|
|
153
21
|
<react_native_1.View style={styles.titleRow}>
|
|
154
22
|
<react_native_1.Text style={styles.titleText}>Update Available</react_native_1.Text>
|
|
155
23
|
<react_native_1.View style={styles.versionPill}>
|
|
156
|
-
<react_native_1.Text style={styles.versionPillText}>v{
|
|
24
|
+
<react_native_1.Text style={styles.versionPillText}>v{e}</react_native_1.Text>
|
|
157
25
|
</react_native_1.View>
|
|
158
26
|
</react_native_1.View>
|
|
159
|
-
<react_native_1.Text style={styles.subtitleText}
|
|
27
|
+
<react_native_1.Text style={styles.subtitleText}numberOfLines={1}>
|
|
160
28
|
Installed: v{constants_1.LIB_VERSION} • New version is ready
|
|
161
29
|
</react_native_1.Text>
|
|
162
30
|
</react_native_1.View>
|
|
163
31
|
|
|
164
32
|
|
|
165
|
-
<react_native_1.TouchableOpacity style={styles.copyButton}
|
|
166
|
-
{
|
|
167
|
-
<react_native_1.Text style={[styles.copyButtonText,
|
|
168
|
-
{
|
|
33
|
+
<react_native_1.TouchableOpacity style={styles.copyButton}onPress={f}hitSlop={6}activeOpacity={.75}>
|
|
34
|
+
{r?<CheckSvg size={11}color="#10B981"/>:<CopySvg size={11}color="#94A3B8"/>}
|
|
35
|
+
<react_native_1.Text style={[styles.copyButtonText,r&&{color:"#10B981"}]}>
|
|
36
|
+
{r?"Copied":"Copy"}
|
|
169
37
|
</react_native_1.Text>
|
|
170
38
|
</react_native_1.TouchableOpacity>
|
|
171
39
|
|
|
172
40
|
|
|
173
|
-
<react_native_1.TouchableOpacity style={styles.actionButton}
|
|
41
|
+
<react_native_1.TouchableOpacity style={styles.actionButton}onPress={_}activeOpacity={.8}>
|
|
174
42
|
<react_native_1.Text style={styles.actionButtonText}>View</react_native_1.Text>
|
|
175
|
-
<ExternalLinkSvg size={10}
|
|
43
|
+
<ExternalLinkSvg size={10}color="#FFFFFF"/>
|
|
176
44
|
</react_native_1.TouchableOpacity>
|
|
177
45
|
|
|
178
46
|
|
|
179
|
-
<react_native_1.TouchableOpacity style={styles.closeButton}
|
|
180
|
-
<CloseSvg size={12}
|
|
47
|
+
<react_native_1.TouchableOpacity style={styles.closeButton}onPress={d}hitSlop={8}activeOpacity={.7}>
|
|
48
|
+
<CloseSvg size={12}color="#94A3B8"/>
|
|
181
49
|
</react_native_1.TouchableOpacity>
|
|
182
50
|
</react_native_1.View>
|
|
183
51
|
|
|
184
52
|
|
|
185
53
|
<react_native_1.View style={styles.progressBarTrack}>
|
|
186
|
-
<react_native_1.Animated.View style={[styles.progressBarFill,
|
|
54
|
+
<react_native_1.Animated.View style={[styles.progressBarFill,{width:v}]}/>
|
|
187
55
|
</react_native_1.View>
|
|
188
|
-
</react_native_1.Animated.View>);
|
|
189
|
-
};
|
|
190
|
-
exports.NpmUpdateToast = NpmUpdateToast;
|
|
191
|
-
const fontStack = {
|
|
192
|
-
fontFamily: AppFonts_1.AppFonts.interRegular,
|
|
193
|
-
};
|
|
194
|
-
const styles = react_native_1.StyleSheet.create({
|
|
195
|
-
container: {
|
|
196
|
-
position: 'absolute',
|
|
197
|
-
bottom: 24,
|
|
198
|
-
left: 14,
|
|
199
|
-
right: 14,
|
|
200
|
-
backgroundColor: '#0F172A',
|
|
201
|
-
borderRadius: 16,
|
|
202
|
-
borderWidth: 1,
|
|
203
|
-
borderColor: '#334155',
|
|
204
|
-
shadowColor: '#000000',
|
|
205
|
-
shadowOffset: { width: 0, height: 12 },
|
|
206
|
-
shadowOpacity: 0.4,
|
|
207
|
-
shadowRadius: 24,
|
|
208
|
-
elevation: 24,
|
|
209
|
-
overflow: 'hidden',
|
|
210
|
-
zIndex: 99999,
|
|
211
|
-
},
|
|
212
|
-
contentRow: {
|
|
213
|
-
flexDirection: 'row',
|
|
214
|
-
alignItems: 'center',
|
|
215
|
-
paddingVertical: 11,
|
|
216
|
-
paddingHorizontal: 12,
|
|
217
|
-
gap: 8,
|
|
218
|
-
},
|
|
219
|
-
npmIconContainer: {
|
|
220
|
-
width: 32,
|
|
221
|
-
height: 32,
|
|
222
|
-
borderRadius: 9,
|
|
223
|
-
backgroundColor: '#FFFFFF',
|
|
224
|
-
justifyContent: 'center',
|
|
225
|
-
alignItems: 'center',
|
|
226
|
-
borderWidth: 1,
|
|
227
|
-
borderColor: '#E2E8F0',
|
|
228
|
-
flexShrink: 0,
|
|
229
|
-
shadowColor: '#000000',
|
|
230
|
-
shadowOffset: { width: 0, height: 1 },
|
|
231
|
-
shadowOpacity: 0.15,
|
|
232
|
-
shadowRadius: 2,
|
|
233
|
-
elevation: 2,
|
|
234
|
-
},
|
|
235
|
-
textContainer: {
|
|
236
|
-
flex: 1,
|
|
237
|
-
minWidth: 0,
|
|
238
|
-
},
|
|
239
|
-
titleRow: {
|
|
240
|
-
flexDirection: 'row',
|
|
241
|
-
alignItems: 'center',
|
|
242
|
-
gap: 5,
|
|
243
|
-
},
|
|
244
|
-
titleText: {
|
|
245
|
-
fontSize: 12.5,
|
|
246
|
-
fontWeight: '700',
|
|
247
|
-
color: '#F8FAFC',
|
|
248
|
-
letterSpacing: -0.2,
|
|
249
|
-
...fontStack,
|
|
250
|
-
},
|
|
251
|
-
versionPill: {
|
|
252
|
-
backgroundColor: '#7C3AED33',
|
|
253
|
-
paddingHorizontal: 5.5,
|
|
254
|
-
paddingVertical: 1.5,
|
|
255
|
-
borderRadius: 5,
|
|
256
|
-
borderWidth: 1,
|
|
257
|
-
borderColor: '#8B5CF680',
|
|
258
|
-
},
|
|
259
|
-
versionPillText: {
|
|
260
|
-
fontSize: 10,
|
|
261
|
-
fontWeight: '700',
|
|
262
|
-
color: '#C4B5FD',
|
|
263
|
-
...fontStack,
|
|
264
|
-
},
|
|
265
|
-
subtitleText: {
|
|
266
|
-
fontSize: 10.5,
|
|
267
|
-
color: '#94A3B8',
|
|
268
|
-
marginTop: 1,
|
|
269
|
-
...fontStack,
|
|
270
|
-
},
|
|
271
|
-
copyButton: {
|
|
272
|
-
flexDirection: 'row',
|
|
273
|
-
alignItems: 'center',
|
|
274
|
-
gap: 3.5,
|
|
275
|
-
backgroundColor: '#1E293B',
|
|
276
|
-
paddingVertical: 5.5,
|
|
277
|
-
paddingHorizontal: 8,
|
|
278
|
-
borderRadius: 7,
|
|
279
|
-
borderWidth: 1,
|
|
280
|
-
borderColor: '#334155',
|
|
281
|
-
flexShrink: 0,
|
|
282
|
-
},
|
|
283
|
-
copyButtonText: {
|
|
284
|
-
fontSize: 10.5,
|
|
285
|
-
fontWeight: '600',
|
|
286
|
-
color: '#94A3B8',
|
|
287
|
-
...fontStack,
|
|
288
|
-
},
|
|
289
|
-
actionButton: {
|
|
290
|
-
flexDirection: 'row',
|
|
291
|
-
alignItems: 'center',
|
|
292
|
-
gap: 3.5,
|
|
293
|
-
backgroundColor: '#7C3AED',
|
|
294
|
-
paddingVertical: 5.5,
|
|
295
|
-
paddingHorizontal: 9,
|
|
296
|
-
borderRadius: 7,
|
|
297
|
-
flexShrink: 0,
|
|
298
|
-
shadowColor: '#7C3AED',
|
|
299
|
-
shadowOffset: { width: 0, height: 2 },
|
|
300
|
-
shadowOpacity: 0.35,
|
|
301
|
-
shadowRadius: 4,
|
|
302
|
-
elevation: 3,
|
|
303
|
-
},
|
|
304
|
-
actionButtonText: {
|
|
305
|
-
fontSize: 11,
|
|
306
|
-
fontWeight: '700',
|
|
307
|
-
color: '#FFFFFF',
|
|
308
|
-
...fontStack,
|
|
309
|
-
},
|
|
310
|
-
closeButton: {
|
|
311
|
-
width: 22,
|
|
312
|
-
height: 22,
|
|
313
|
-
borderRadius: 11,
|
|
314
|
-
backgroundColor: '#1E293B',
|
|
315
|
-
justifyContent: 'center',
|
|
316
|
-
alignItems: 'center',
|
|
317
|
-
flexShrink: 0,
|
|
318
|
-
},
|
|
319
|
-
progressBarTrack: {
|
|
320
|
-
height: 2.5,
|
|
321
|
-
width: '100%',
|
|
322
|
-
backgroundColor: '#1E293B',
|
|
323
|
-
},
|
|
324
|
-
progressBarFill: {
|
|
325
|
-
height: '100%',
|
|
326
|
-
backgroundColor: '#8B5CF6',
|
|
327
|
-
},
|
|
328
|
-
});
|
|
329
|
-
exports.default = exports.NpmUpdateToast;
|
|
56
|
+
</react_native_1.Animated.View>};exports.NpmUpdateToast=NpmUpdateToast;const fontStack={fontFamily:AppFonts_1.AppFonts.interRegular},styles=react_native_1.StyleSheet.create({container:{position:"absolute",bottom:24,left:14,right:14,backgroundColor:"#0F172A",borderRadius:16,borderWidth:1,borderColor:"#334155",shadowColor:"#000000",shadowOffset:{width:0,height:12},shadowOpacity:.4,shadowRadius:24,elevation:24,overflow:"hidden",zIndex:99999},contentRow:{flexDirection:"row",alignItems:"center",paddingVertical:11,paddingHorizontal:12,gap:8},npmIconContainer:{width:32,height:32,borderRadius:9,backgroundColor:"#FFFFFF",justifyContent:"center",alignItems:"center",borderWidth:1,borderColor:"#E2E8F0",flexShrink:0,shadowColor:"#000000",shadowOffset:{width:0,height:1},shadowOpacity:.15,shadowRadius:2,elevation:2},textContainer:{flex:1,minWidth:0},titleRow:{flexDirection:"row",alignItems:"center",gap:5},titleText:{fontSize:12.5,fontWeight:"700",color:"#F8FAFC",letterSpacing:-.2,...fontStack},versionPill:{backgroundColor:"#7C3AED33",paddingHorizontal:5.5,paddingVertical:1.5,borderRadius:5,borderWidth:1,borderColor:"#8B5CF680"},versionPillText:{fontSize:10,fontWeight:"700",color:"#C4B5FD",...fontStack},subtitleText:{fontSize:10.5,color:"#94A3B8",marginTop:1,...fontStack},copyButton:{flexDirection:"row",alignItems:"center",gap:3.5,backgroundColor:"#1E293B",paddingVertical:5.5,paddingHorizontal:8,borderRadius:7,borderWidth:1,borderColor:"#334155",flexShrink:0},copyButtonText:{fontSize:10.5,fontWeight:"600",color:"#94A3B8",...fontStack},actionButton:{flexDirection:"row",alignItems:"center",gap:3.5,backgroundColor:"#7C3AED",paddingVertical:5.5,paddingHorizontal:9,borderRadius:7,flexShrink:0,shadowColor:"#7C3AED",shadowOffset:{width:0,height:2},shadowOpacity:.35,shadowRadius:4,elevation:3},actionButtonText:{fontSize:11,fontWeight:"700",color:"#FFFFFF",...fontStack},closeButton:{width:22,height:22,borderRadius:11,backgroundColor:"#1E293B",justifyContent:"center",alignItems:"center",flexShrink:0},progressBarTrack:{height:2.5,width:"100%",backgroundColor:"#1E293B"},progressBarFill:{height:"100%",backgroundColor:"#8B5CF6"}});exports.default=exports.NpmUpdateToast;
|