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,250 +1,19 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
exports.NpmStarPrompt = void 0;
|
|
40
|
-
const react_1 = __importStar(require("react"));
|
|
41
|
-
const react_native_1 = require("react-native");
|
|
42
|
-
const AppColors_1 = require("../../styles/AppColors");
|
|
43
|
-
const AppFonts_1 = require("../../styles/AppFonts");
|
|
44
|
-
const TouchableScale_1 = __importDefault(require("../TouchableScale"));
|
|
45
|
-
const settingsStore_1 = require("../../helpers/settingsStore");
|
|
46
|
-
const telemetry_1 = require("../../helpers/telemetry");
|
|
47
|
-
const NetworkIcons_1 = require("../NetworkIcons");
|
|
48
|
-
const FIVE_DAYS_MS = 5 * 24 * 60 * 60 * 1000;
|
|
49
|
-
const GITHUB_REPO_URL = 'https://github.com/vengatmacuser/react-native-inapp-inspector';
|
|
50
|
-
const NPM_PACKAGE_URL = 'https://www.npmjs.com/package/react-native-inapp-inspector';
|
|
51
|
-
const NpmStarPrompt = () => {
|
|
52
|
-
const [isOpen, setIsOpen] = (0, react_1.useState)(false);
|
|
53
|
-
const slideAnim = (0, react_1.useRef)(new react_native_1.Animated.Value(200)).current;
|
|
54
|
-
const fadeAnim = (0, react_1.useRef)(new react_native_1.Animated.Value(0)).current;
|
|
55
|
-
const pulseAnim = (0, react_1.useRef)(new react_native_1.Animated.Value(1)).current;
|
|
56
|
-
(0, react_1.useEffect)(() => {
|
|
57
|
-
let isMounted = true;
|
|
58
|
-
async function checkEligibility() {
|
|
59
|
-
try {
|
|
60
|
-
const settings = await (0, settingsStore_1.loadSettings)();
|
|
61
|
-
if (settings.starPromptActioned) {
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
const now = Date.now();
|
|
65
|
-
const firstSeen = settings.starPromptFirstSeen || now;
|
|
66
|
-
if (!settings.starPromptFirstSeen) {
|
|
67
|
-
await (0, settingsStore_1.saveSettings)({
|
|
68
|
-
...settings,
|
|
69
|
-
starPromptFirstSeen: now,
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
const lastShown = settings.starPromptLastShown || firstSeen;
|
|
73
|
-
const timeElapsed = now - lastShown;
|
|
74
|
-
if (timeElapsed >= FIVE_DAYS_MS) {
|
|
75
|
-
const shouldShow = Math.random() < 0.65;
|
|
76
|
-
if (shouldShow && isMounted) {
|
|
77
|
-
setTimeout(() => {
|
|
78
|
-
if (isMounted) {
|
|
79
|
-
openPrompt();
|
|
80
|
-
}
|
|
81
|
-
}, 1800);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
catch {
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
checkEligibility();
|
|
89
|
-
return () => {
|
|
90
|
-
isMounted = false;
|
|
91
|
-
};
|
|
92
|
-
}, []);
|
|
93
|
-
const openPrompt = async () => {
|
|
94
|
-
setIsOpen(true);
|
|
95
|
-
try {
|
|
96
|
-
const settings = await (0, settingsStore_1.loadSettings)();
|
|
97
|
-
await (0, settingsStore_1.saveSettings)({
|
|
98
|
-
...settings,
|
|
99
|
-
starPromptLastShown: Date.now(),
|
|
100
|
-
});
|
|
101
|
-
(0, telemetry_1.trackTelemetryEvent)('npm_star_prompt_shown', {
|
|
102
|
-
trigger: '5_day_interval',
|
|
103
|
-
platform: react_native_1.Platform.OS,
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
catch { }
|
|
107
|
-
react_native_1.Animated.parallel([
|
|
108
|
-
react_native_1.Animated.spring(slideAnim, {
|
|
109
|
-
toValue: 0,
|
|
110
|
-
friction: 8,
|
|
111
|
-
tension: 50,
|
|
112
|
-
useNativeDriver: true,
|
|
113
|
-
}),
|
|
114
|
-
react_native_1.Animated.timing(fadeAnim, {
|
|
115
|
-
toValue: 1,
|
|
116
|
-
duration: 250,
|
|
117
|
-
useNativeDriver: true,
|
|
118
|
-
}),
|
|
119
|
-
]).start();
|
|
120
|
-
react_native_1.Animated.loop(react_native_1.Animated.sequence([
|
|
121
|
-
react_native_1.Animated.timing(pulseAnim, {
|
|
122
|
-
toValue: 1.15,
|
|
123
|
-
duration: 900,
|
|
124
|
-
useNativeDriver: true,
|
|
125
|
-
}),
|
|
126
|
-
react_native_1.Animated.timing(pulseAnim, {
|
|
127
|
-
toValue: 1,
|
|
128
|
-
duration: 900,
|
|
129
|
-
useNativeDriver: true,
|
|
130
|
-
}),
|
|
131
|
-
])).start();
|
|
132
|
-
};
|
|
133
|
-
const closePrompt = (callback) => {
|
|
134
|
-
react_native_1.Animated.parallel([
|
|
135
|
-
react_native_1.Animated.timing(fadeAnim, {
|
|
136
|
-
toValue: 0,
|
|
137
|
-
duration: 180,
|
|
138
|
-
useNativeDriver: true,
|
|
139
|
-
}),
|
|
140
|
-
react_native_1.Animated.timing(slideAnim, {
|
|
141
|
-
toValue: 200,
|
|
142
|
-
duration: 180,
|
|
143
|
-
useNativeDriver: true,
|
|
144
|
-
}),
|
|
145
|
-
]).start(() => {
|
|
146
|
-
setIsOpen(false);
|
|
147
|
-
if (callback)
|
|
148
|
-
callback();
|
|
149
|
-
});
|
|
150
|
-
};
|
|
151
|
-
const handleStarNow = async () => {
|
|
152
|
-
try {
|
|
153
|
-
const settings = await (0, settingsStore_1.loadSettings)();
|
|
154
|
-
await (0, settingsStore_1.saveSettings)({
|
|
155
|
-
...settings,
|
|
156
|
-
starPromptActioned: true,
|
|
157
|
-
});
|
|
158
|
-
(0, telemetry_1.trackTelemetryEvent)('npm_star_prompt_action', {
|
|
159
|
-
action: 'starred',
|
|
160
|
-
platform: react_native_1.Platform.OS,
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
catch { }
|
|
164
|
-
closePrompt(() => {
|
|
165
|
-
react_native_1.Linking.openURL(GITHUB_REPO_URL).catch(() => {
|
|
166
|
-
react_native_1.Linking.openURL(NPM_PACKAGE_URL).catch(() => { });
|
|
167
|
-
});
|
|
168
|
-
});
|
|
169
|
-
};
|
|
170
|
-
const handleAlreadyStarred = async () => {
|
|
171
|
-
try {
|
|
172
|
-
const settings = await (0, settingsStore_1.loadSettings)();
|
|
173
|
-
await (0, settingsStore_1.saveSettings)({
|
|
174
|
-
...settings,
|
|
175
|
-
starPromptActioned: true,
|
|
176
|
-
});
|
|
177
|
-
(0, telemetry_1.trackTelemetryEvent)('npm_star_prompt_action', {
|
|
178
|
-
action: 'already_starred',
|
|
179
|
-
platform: react_native_1.Platform.OS,
|
|
180
|
-
});
|
|
181
|
-
}
|
|
182
|
-
catch { }
|
|
183
|
-
closePrompt();
|
|
184
|
-
};
|
|
185
|
-
const handleRemindLater = async () => {
|
|
186
|
-
try {
|
|
187
|
-
const settings = await (0, settingsStore_1.loadSettings)();
|
|
188
|
-
await (0, settingsStore_1.saveSettings)({
|
|
189
|
-
...settings,
|
|
190
|
-
starPromptLastShown: Date.now(),
|
|
191
|
-
});
|
|
192
|
-
(0, telemetry_1.trackTelemetryEvent)('npm_star_prompt_action', {
|
|
193
|
-
action: 'remind_later',
|
|
194
|
-
platform: react_native_1.Platform.OS,
|
|
195
|
-
});
|
|
196
|
-
}
|
|
197
|
-
catch { }
|
|
198
|
-
closePrompt();
|
|
199
|
-
};
|
|
200
|
-
const handleDontAskAgain = async () => {
|
|
201
|
-
try {
|
|
202
|
-
const settings = await (0, settingsStore_1.loadSettings)();
|
|
203
|
-
await (0, settingsStore_1.saveSettings)({
|
|
204
|
-
...settings,
|
|
205
|
-
starPromptActioned: true,
|
|
206
|
-
});
|
|
207
|
-
(0, telemetry_1.trackTelemetryEvent)('npm_star_prompt_action', {
|
|
208
|
-
action: 'dont_ask_again',
|
|
209
|
-
platform: react_native_1.Platform.OS,
|
|
210
|
-
});
|
|
211
|
-
}
|
|
212
|
-
catch { }
|
|
213
|
-
closePrompt();
|
|
214
|
-
};
|
|
215
|
-
if (!isOpen)
|
|
216
|
-
return null;
|
|
217
|
-
return (<react_native_1.Modal transparent visible={isOpen} animationType="none" onRequestClose={handleRemindLater}>
|
|
218
|
-
<react_native_1.Animated.View style={[
|
|
219
|
-
styles.backdrop,
|
|
220
|
-
{
|
|
221
|
-
opacity: fadeAnim,
|
|
222
|
-
},
|
|
223
|
-
]}>
|
|
224
|
-
<react_native_1.TouchableOpacity style={react_native_1.StyleSheet.absoluteFill} activeOpacity={1} onPress={handleRemindLater}/>
|
|
1
|
+
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(e,t,a,r){r===void 0&&(r=a);var o=Object.getOwnPropertyDescriptor(t,a);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,r,o)}):(function(e,t,a,r){r===void 0&&(r=a),e[r]=t[a]})),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),__importStar=this&&this.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(a){var r=[];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(r[r.length]=o);return r},e(t)};return function(t){if(t&&t.__esModule)return t;var a={};if(t!=null)for(var r=e(t),o=0;o<r.length;o++)r[o]!=="default"&&__createBinding(a,t,r[o]);return __setModuleDefault(a,t),a}})(),__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.NpmStarPrompt=void 0;const react_1=__importStar(require("react")),react_native_1=require("react-native"),AppColors_1=require("../../styles/AppColors"),AppFonts_1=require("../../styles/AppFonts"),TouchableScale_1=__importDefault(require("../TouchableScale")),settingsStore_1=require("../../helpers/settingsStore"),telemetry_1=require("../../helpers/telemetry"),NetworkIcons_1=require("../NetworkIcons"),FIVE_DAYS_MS=7200*60*1e3,GITHUB_REPO_URL="https://github.com/vengatmacuser/react-native-inapp-inspector",NPM_PACKAGE_URL="https://www.npmjs.com/package/react-native-inapp-inspector",NpmStarPrompt=()=>{const[e,t]=(0,react_1.useState)(!1),a=(0,react_1.useRef)(new react_native_1.Animated.Value(200)).current,r=(0,react_1.useRef)(new react_native_1.Animated.Value(0)).current,o=(0,react_1.useRef)(new react_native_1.Animated.Value(1)).current;(0,react_1.useEffect)(()=>{let i=!0;async function g(){try{const n=await(0,settingsStore_1.loadSettings)();if(n.starPromptActioned)return;const c=Date.now(),y=n.starPromptFirstSeen||c;n.starPromptFirstSeen||await(0,settingsStore_1.saveSettings)({...n,starPromptFirstSeen:c});const f=n.starPromptLastShown||y;c-f>=FIVE_DAYS_MS&&Math.random()<.65&&i&&setTimeout(()=>{i&&p()},1800)}catch{}}return g(),()=>{i=!1}},[]);const p=async()=>{t(!0);try{const i=await(0,settingsStore_1.loadSettings)();await(0,settingsStore_1.saveSettings)({...i,starPromptLastShown:Date.now()}),(0,telemetry_1.trackTelemetryEvent)("npm_star_prompt_shown",{trigger:"5_day_interval",platform:react_native_1.Platform.OS})}catch{}react_native_1.Animated.parallel([react_native_1.Animated.spring(a,{toValue:0,friction:8,tension:50,useNativeDriver:!0}),react_native_1.Animated.timing(r,{toValue:1,duration:250,useNativeDriver:!0})]).start(),react_native_1.Animated.loop(react_native_1.Animated.sequence([react_native_1.Animated.timing(o,{toValue:1.15,duration:900,useNativeDriver:!0}),react_native_1.Animated.timing(o,{toValue:1,duration:900,useNativeDriver:!0})])).start()},s=i=>{react_native_1.Animated.parallel([react_native_1.Animated.timing(r,{toValue:0,duration:180,useNativeDriver:!0}),react_native_1.Animated.timing(a,{toValue:200,duration:180,useNativeDriver:!0})]).start(()=>{t(!1),i&&i()})},u=async()=>{try{const i=await(0,settingsStore_1.loadSettings)();await(0,settingsStore_1.saveSettings)({...i,starPromptActioned:!0}),(0,telemetry_1.trackTelemetryEvent)("npm_star_prompt_action",{action:"starred",platform:react_native_1.Platform.OS})}catch{}s(()=>{react_native_1.Linking.openURL(GITHUB_REPO_URL).catch(()=>{react_native_1.Linking.openURL(NPM_PACKAGE_URL).catch(()=>{})})})},d=async()=>{try{const i=await(0,settingsStore_1.loadSettings)();await(0,settingsStore_1.saveSettings)({...i,starPromptActioned:!0}),(0,telemetry_1.trackTelemetryEvent)("npm_star_prompt_action",{action:"already_starred",platform:react_native_1.Platform.OS})}catch{}s()},l=async()=>{try{const i=await(0,settingsStore_1.loadSettings)();await(0,settingsStore_1.saveSettings)({...i,starPromptLastShown:Date.now()}),(0,telemetry_1.trackTelemetryEvent)("npm_star_prompt_action",{action:"remind_later",platform:react_native_1.Platform.OS})}catch{}s()},m=async()=>{try{const i=await(0,settingsStore_1.loadSettings)();await(0,settingsStore_1.saveSettings)({...i,starPromptActioned:!0}),(0,telemetry_1.trackTelemetryEvent)("npm_star_prompt_action",{action:"dont_ask_again",platform:react_native_1.Platform.OS})}catch{}s()};return e?<react_native_1.Modal transparent visible={e}animationType="none"onRequestClose={l}>
|
|
2
|
+
<react_native_1.Animated.View style={[styles.backdrop,{opacity:r}]}>
|
|
3
|
+
<react_native_1.TouchableOpacity style={react_native_1.StyleSheet.absoluteFill}activeOpacity={1}onPress={l}/>
|
|
225
4
|
|
|
226
|
-
<react_native_1.Animated.View style={[
|
|
227
|
-
styles.cardContainer,
|
|
228
|
-
{
|
|
229
|
-
transform: [{ translateY: slideAnim }],
|
|
230
|
-
},
|
|
231
|
-
]}>
|
|
5
|
+
<react_native_1.Animated.View style={[styles.cardContainer,{transform:[{translateY:a}]}]}>
|
|
232
6
|
|
|
233
7
|
<react_native_1.View style={styles.headerIconWrapper}>
|
|
234
|
-
<react_native_1.Animated.View style={[
|
|
235
|
-
styles.iconGlow,
|
|
236
|
-
{
|
|
237
|
-
transform: [{ scale: pulseAnim }],
|
|
238
|
-
},
|
|
239
|
-
]}/>
|
|
8
|
+
<react_native_1.Animated.View style={[styles.iconGlow,{transform:[{scale:o}]}]}/>
|
|
240
9
|
<react_native_1.View style={styles.iconCircle}>
|
|
241
|
-
<NetworkIcons_1.StarIcon size={26}
|
|
10
|
+
<NetworkIcons_1.StarIcon size={26}color="#F59E0B"/>
|
|
242
11
|
</react_native_1.View>
|
|
243
12
|
</react_native_1.View>
|
|
244
13
|
|
|
245
14
|
|
|
246
|
-
<react_native_1.TouchableOpacity onPress={
|
|
247
|
-
<NetworkIcons_1.CloseWhite size={12}
|
|
15
|
+
<react_native_1.TouchableOpacity onPress={l}hitSlop={{top:10,bottom:10,left:10,right:10}}style={styles.closeBtn}>
|
|
16
|
+
<NetworkIcons_1.CloseWhite size={12}color={AppColors_1.AppColors.grayText}/>
|
|
248
17
|
</react_native_1.TouchableOpacity>
|
|
249
18
|
|
|
250
19
|
|
|
@@ -262,12 +31,12 @@ const NpmStarPrompt = () => {
|
|
|
262
31
|
|
|
263
32
|
<react_native_1.View style={styles.metricsBar}>
|
|
264
33
|
<react_native_1.View style={styles.metricItem}>
|
|
265
|
-
<NetworkIcons_1.GitHubIcon size={13}
|
|
34
|
+
<NetworkIcons_1.GitHubIcon size={13}color={AppColors_1.AppColors.grayText}/>
|
|
266
35
|
<react_native_1.Text style={styles.metricText}>GitHub Star</react_native_1.Text>
|
|
267
36
|
</react_native_1.View>
|
|
268
37
|
<react_native_1.View style={styles.metricDot}/>
|
|
269
38
|
<react_native_1.View style={styles.metricItem}>
|
|
270
|
-
<NetworkIcons_1.NpmIcon size={13}
|
|
39
|
+
<NetworkIcons_1.NpmIcon size={13}color="#CB3837"/>
|
|
271
40
|
<react_native_1.Text style={styles.metricText}>npm Package</react_native_1.Text>
|
|
272
41
|
</react_native_1.View>
|
|
273
42
|
<react_native_1.View style={styles.metricDot}/>
|
|
@@ -277,218 +46,33 @@ const NpmStarPrompt = () => {
|
|
|
277
46
|
</react_native_1.View>
|
|
278
47
|
|
|
279
48
|
|
|
280
|
-
<TouchableScale_1.default accessible={
|
|
49
|
+
<TouchableScale_1.default accessible={!0}accessibilityRole="button"accessibilityLabel="Star on GitHub"onPress={u}style={styles.primaryButton}>
|
|
281
50
|
<react_native_1.View style={styles.primaryButtonContent}>
|
|
282
|
-
<NetworkIcons_1.StarIcon size={16}
|
|
51
|
+
<NetworkIcons_1.StarIcon size={16}color={AppColors_1.AppColors.white}/>
|
|
283
52
|
<react_native_1.Text style={styles.primaryButtonText}>⭐ Star on GitHub & npm</react_native_1.Text>
|
|
284
53
|
</react_native_1.View>
|
|
285
54
|
</TouchableScale_1.default>
|
|
286
55
|
|
|
287
56
|
|
|
288
|
-
<TouchableScale_1.default accessible={
|
|
57
|
+
<TouchableScale_1.default accessible={!0}accessibilityRole="button"accessibilityLabel="I already starred"onPress={d}style={styles.secondaryButton}>
|
|
289
58
|
<react_native_1.View style={styles.secondaryButtonContent}>
|
|
290
|
-
<NetworkIcons_1.CheckIcon size={13}
|
|
59
|
+
<NetworkIcons_1.CheckIcon size={13}color={AppColors_1.AppColors.purple}/>
|
|
291
60
|
<react_native_1.Text style={styles.secondaryButtonText}>I Already Starred</react_native_1.Text>
|
|
292
61
|
</react_native_1.View>
|
|
293
62
|
</TouchableScale_1.default>
|
|
294
63
|
|
|
295
64
|
|
|
296
65
|
<react_native_1.View style={styles.footerRow}>
|
|
297
|
-
<react_native_1.TouchableOpacity onPress={
|
|
66
|
+
<react_native_1.TouchableOpacity onPress={l}hitSlop={{top:8,bottom:8,left:8,right:8}}>
|
|
298
67
|
<react_native_1.Text style={styles.footerLinkText}>Remind Me Later</react_native_1.Text>
|
|
299
68
|
</react_native_1.TouchableOpacity>
|
|
300
69
|
|
|
301
70
|
<react_native_1.View style={styles.footerSeparator}/>
|
|
302
71
|
|
|
303
|
-
<react_native_1.TouchableOpacity onPress={
|
|
72
|
+
<react_native_1.TouchableOpacity onPress={m}hitSlop={{top:8,bottom:8,left:8,right:8}}>
|
|
304
73
|
<react_native_1.Text style={styles.footerLinkTextMuted}>Don't Ask Again</react_native_1.Text>
|
|
305
74
|
</react_native_1.TouchableOpacity>
|
|
306
75
|
</react_native_1.View>
|
|
307
76
|
</react_native_1.Animated.View>
|
|
308
77
|
</react_native_1.Animated.View>
|
|
309
|
-
</react_native_1.Modal
|
|
310
|
-
};
|
|
311
|
-
exports.NpmStarPrompt = NpmStarPrompt;
|
|
312
|
-
const styles = react_native_1.StyleSheet.create({
|
|
313
|
-
backdrop: {
|
|
314
|
-
...react_native_1.StyleSheet.absoluteFillObject,
|
|
315
|
-
backgroundColor: 'rgba(15, 23, 42, 0.65)',
|
|
316
|
-
justifyContent: 'center',
|
|
317
|
-
alignItems: 'center',
|
|
318
|
-
paddingHorizontal: 20,
|
|
319
|
-
zIndex: 99999,
|
|
320
|
-
},
|
|
321
|
-
cardContainer: {
|
|
322
|
-
width: '100%',
|
|
323
|
-
maxWidth: 380,
|
|
324
|
-
backgroundColor: AppColors_1.AppColors.white,
|
|
325
|
-
borderRadius: 22,
|
|
326
|
-
padding: 22,
|
|
327
|
-
alignItems: 'center',
|
|
328
|
-
shadowColor: AppColors_1.AppColors.black,
|
|
329
|
-
shadowOffset: { width: 0, height: 8 },
|
|
330
|
-
shadowOpacity: 0.22,
|
|
331
|
-
shadowRadius: 20,
|
|
332
|
-
elevation: 12,
|
|
333
|
-
borderWidth: 1.5,
|
|
334
|
-
borderColor: `${AppColors_1.AppColors.purple}25`,
|
|
335
|
-
},
|
|
336
|
-
headerIconWrapper: {
|
|
337
|
-
position: 'relative',
|
|
338
|
-
alignItems: 'center',
|
|
339
|
-
justifyContent: 'center',
|
|
340
|
-
marginBottom: 12,
|
|
341
|
-
},
|
|
342
|
-
iconGlow: {
|
|
343
|
-
position: 'absolute',
|
|
344
|
-
width: 68,
|
|
345
|
-
height: 68,
|
|
346
|
-
borderRadius: 34,
|
|
347
|
-
backgroundColor: '#F59E0B22',
|
|
348
|
-
},
|
|
349
|
-
iconCircle: {
|
|
350
|
-
width: 54,
|
|
351
|
-
height: 54,
|
|
352
|
-
borderRadius: 27,
|
|
353
|
-
backgroundColor: '#FEF3C7',
|
|
354
|
-
borderWidth: 2,
|
|
355
|
-
borderColor: '#FDE68A',
|
|
356
|
-
alignItems: 'center',
|
|
357
|
-
justifyContent: 'center',
|
|
358
|
-
},
|
|
359
|
-
closeBtn: {
|
|
360
|
-
position: 'absolute',
|
|
361
|
-
top: 14,
|
|
362
|
-
right: 14,
|
|
363
|
-
width: 28,
|
|
364
|
-
height: 28,
|
|
365
|
-
borderRadius: 14,
|
|
366
|
-
backgroundColor: AppColors_1.AppColors.grayBackground,
|
|
367
|
-
alignItems: 'center',
|
|
368
|
-
justifyContent: 'center',
|
|
369
|
-
},
|
|
370
|
-
pillBadge: {
|
|
371
|
-
backgroundColor: `${AppColors_1.AppColors.purple}14`,
|
|
372
|
-
paddingHorizontal: 9,
|
|
373
|
-
paddingVertical: 3,
|
|
374
|
-
borderRadius: 10,
|
|
375
|
-
marginBottom: 8,
|
|
376
|
-
},
|
|
377
|
-
pillBadgeText: {
|
|
378
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
379
|
-
fontSize: 9.5,
|
|
380
|
-
color: AppColors_1.AppColors.purple,
|
|
381
|
-
letterSpacing: 0.6,
|
|
382
|
-
},
|
|
383
|
-
title: {
|
|
384
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
385
|
-
fontSize: 18,
|
|
386
|
-
lineHeight: 23,
|
|
387
|
-
color: AppColors_1.AppColors.primaryBlack,
|
|
388
|
-
textAlign: 'center',
|
|
389
|
-
marginBottom: 6,
|
|
390
|
-
},
|
|
391
|
-
description: {
|
|
392
|
-
fontFamily: AppFonts_1.AppFonts.interRegular,
|
|
393
|
-
fontSize: 12.5,
|
|
394
|
-
lineHeight: 18,
|
|
395
|
-
color: AppColors_1.AppColors.grayText,
|
|
396
|
-
textAlign: 'center',
|
|
397
|
-
marginBottom: 14,
|
|
398
|
-
paddingHorizontal: 8,
|
|
399
|
-
},
|
|
400
|
-
metricsBar: {
|
|
401
|
-
flexDirection: 'row',
|
|
402
|
-
alignItems: 'center',
|
|
403
|
-
justifyContent: 'center',
|
|
404
|
-
backgroundColor: AppColors_1.AppColors.grayBackground,
|
|
405
|
-
paddingVertical: 7,
|
|
406
|
-
paddingHorizontal: 14,
|
|
407
|
-
borderRadius: 10,
|
|
408
|
-
marginBottom: 16,
|
|
409
|
-
gap: 8,
|
|
410
|
-
},
|
|
411
|
-
metricItem: {
|
|
412
|
-
flexDirection: 'row',
|
|
413
|
-
alignItems: 'center',
|
|
414
|
-
gap: 4,
|
|
415
|
-
},
|
|
416
|
-
metricText: {
|
|
417
|
-
fontFamily: AppFonts_1.AppFonts.interMedium,
|
|
418
|
-
fontSize: 11,
|
|
419
|
-
color: AppColors_1.AppColors.primaryBlack,
|
|
420
|
-
},
|
|
421
|
-
metricDot: {
|
|
422
|
-
width: 3.5,
|
|
423
|
-
height: 3.5,
|
|
424
|
-
borderRadius: 2,
|
|
425
|
-
backgroundColor: AppColors_1.AppColors.dividerColor,
|
|
426
|
-
},
|
|
427
|
-
primaryButton: {
|
|
428
|
-
width: '100%',
|
|
429
|
-
backgroundColor: AppColors_1.AppColors.purple,
|
|
430
|
-
borderRadius: 12,
|
|
431
|
-
paddingVertical: 12,
|
|
432
|
-
alignItems: 'center',
|
|
433
|
-
justifyContent: 'center',
|
|
434
|
-
marginBottom: 8,
|
|
435
|
-
shadowColor: AppColors_1.AppColors.purple,
|
|
436
|
-
shadowOffset: { width: 0, height: 4 },
|
|
437
|
-
shadowOpacity: 0.3,
|
|
438
|
-
shadowRadius: 8,
|
|
439
|
-
elevation: 4,
|
|
440
|
-
},
|
|
441
|
-
primaryButtonContent: {
|
|
442
|
-
flexDirection: 'row',
|
|
443
|
-
alignItems: 'center',
|
|
444
|
-
gap: 7,
|
|
445
|
-
},
|
|
446
|
-
primaryButtonText: {
|
|
447
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
448
|
-
fontSize: 14,
|
|
449
|
-
color: AppColors_1.AppColors.white,
|
|
450
|
-
},
|
|
451
|
-
secondaryButton: {
|
|
452
|
-
width: '100%',
|
|
453
|
-
backgroundColor: `${AppColors_1.AppColors.purple}10`,
|
|
454
|
-
borderWidth: 1,
|
|
455
|
-
borderColor: `${AppColors_1.AppColors.purple}30`,
|
|
456
|
-
borderRadius: 12,
|
|
457
|
-
paddingVertical: 10,
|
|
458
|
-
alignItems: 'center',
|
|
459
|
-
justifyContent: 'center',
|
|
460
|
-
marginBottom: 14,
|
|
461
|
-
},
|
|
462
|
-
secondaryButtonContent: {
|
|
463
|
-
flexDirection: 'row',
|
|
464
|
-
alignItems: 'center',
|
|
465
|
-
gap: 6,
|
|
466
|
-
},
|
|
467
|
-
secondaryButtonText: {
|
|
468
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
469
|
-
fontSize: 13,
|
|
470
|
-
color: AppColors_1.AppColors.purple,
|
|
471
|
-
},
|
|
472
|
-
footerRow: {
|
|
473
|
-
flexDirection: 'row',
|
|
474
|
-
alignItems: 'center',
|
|
475
|
-
justifyContent: 'center',
|
|
476
|
-
gap: 12,
|
|
477
|
-
},
|
|
478
|
-
footerLinkText: {
|
|
479
|
-
fontFamily: AppFonts_1.AppFonts.interMedium,
|
|
480
|
-
fontSize: 11.5,
|
|
481
|
-
color: AppColors_1.AppColors.grayText,
|
|
482
|
-
},
|
|
483
|
-
footerSeparator: {
|
|
484
|
-
width: 1,
|
|
485
|
-
height: 12,
|
|
486
|
-
backgroundColor: AppColors_1.AppColors.dividerColor,
|
|
487
|
-
},
|
|
488
|
-
footerLinkTextMuted: {
|
|
489
|
-
fontFamily: AppFonts_1.AppFonts.interRegular,
|
|
490
|
-
fontSize: 11.5,
|
|
491
|
-
color: AppColors_1.AppColors.grayTextWeak,
|
|
492
|
-
},
|
|
493
|
-
});
|
|
494
|
-
exports.default = exports.NpmStarPrompt;
|
|
78
|
+
</react_native_1.Modal>:null};exports.NpmStarPrompt=NpmStarPrompt;const styles=react_native_1.StyleSheet.create({backdrop:{...react_native_1.StyleSheet.absoluteFillObject,backgroundColor:"rgba(15, 23, 42, 0.65)",justifyContent:"center",alignItems:"center",paddingHorizontal:20,zIndex:99999},cardContainer:{width:"100%",maxWidth:380,backgroundColor:AppColors_1.AppColors.white,borderRadius:22,padding:22,alignItems:"center",shadowColor:AppColors_1.AppColors.black,shadowOffset:{width:0,height:8},shadowOpacity:.22,shadowRadius:20,elevation:12,borderWidth:1.5,borderColor:`${AppColors_1.AppColors.purple}25`},headerIconWrapper:{position:"relative",alignItems:"center",justifyContent:"center",marginBottom:12},iconGlow:{position:"absolute",width:68,height:68,borderRadius:34,backgroundColor:"#F59E0B22"},iconCircle:{width:54,height:54,borderRadius:27,backgroundColor:"#FEF3C7",borderWidth:2,borderColor:"#FDE68A",alignItems:"center",justifyContent:"center"},closeBtn:{position:"absolute",top:14,right:14,width:28,height:28,borderRadius:14,backgroundColor:AppColors_1.AppColors.grayBackground,alignItems:"center",justifyContent:"center"},pillBadge:{backgroundColor:`${AppColors_1.AppColors.purple}14`,paddingHorizontal:9,paddingVertical:3,borderRadius:10,marginBottom:8},pillBadgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,color:AppColors_1.AppColors.purple,letterSpacing:.6},title:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:18,lineHeight:23,color:AppColors_1.AppColors.primaryBlack,textAlign:"center",marginBottom:6},description:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:12.5,lineHeight:18,color:AppColors_1.AppColors.grayText,textAlign:"center",marginBottom:14,paddingHorizontal:8},metricsBar:{flexDirection:"row",alignItems:"center",justifyContent:"center",backgroundColor:AppColors_1.AppColors.grayBackground,paddingVertical:7,paddingHorizontal:14,borderRadius:10,marginBottom:16,gap:8},metricItem:{flexDirection:"row",alignItems:"center",gap:4},metricText:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:11,color:AppColors_1.AppColors.primaryBlack},metricDot:{width:3.5,height:3.5,borderRadius:2,backgroundColor:AppColors_1.AppColors.dividerColor},primaryButton:{width:"100%",backgroundColor:AppColors_1.AppColors.purple,borderRadius:12,paddingVertical:12,alignItems:"center",justifyContent:"center",marginBottom:8,shadowColor:AppColors_1.AppColors.purple,shadowOffset:{width:0,height:4},shadowOpacity:.3,shadowRadius:8,elevation:4},primaryButtonContent:{flexDirection:"row",alignItems:"center",gap:7},primaryButtonText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:14,color:AppColors_1.AppColors.white},secondaryButton:{width:"100%",backgroundColor:`${AppColors_1.AppColors.purple}10`,borderWidth:1,borderColor:`${AppColors_1.AppColors.purple}30`,borderRadius:12,paddingVertical:10,alignItems:"center",justifyContent:"center",marginBottom:14},secondaryButtonContent:{flexDirection:"row",alignItems:"center",gap:6},secondaryButtonText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:13,color:AppColors_1.AppColors.purple},footerRow:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:12},footerLinkText:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:11.5,color:AppColors_1.AppColors.grayText},footerSeparator:{width:1,height:12,backgroundColor:AppColors_1.AppColors.dividerColor},footerLinkTextMuted:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:11.5,color:AppColors_1.AppColors.grayTextWeak}});exports.default=exports.NpmStarPrompt;
|