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,150 +1,37 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
})
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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.UpdateAvailableModal = 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 BrandSquareIcon_1 = require("../BrandSquareIcon");
|
|
41
|
-
const NetworkIcons_1 = require("../NetworkIcons");
|
|
42
|
-
const constants_1 = require("../../constants");
|
|
43
|
-
const helpers_1 = require("../../helpers");
|
|
44
|
-
const toast_1 = require("../../helpers/toast");
|
|
45
|
-
const AppFonts_1 = require("../../styles/AppFonts");
|
|
46
|
-
const CopySvg = ({ size = 14, color = '#64748B' }) => (<react_native_svg_1.default width={size} height={size} viewBox="0 0 24 24" fill="none">
|
|
47
|
-
<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"/>
|
|
48
|
-
<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"/>
|
|
49
|
-
</react_native_svg_1.default>);
|
|
50
|
-
const CheckSvg = ({ size = 14, color = '#10B981' }) => (<react_native_svg_1.default width={size} height={size} viewBox="0 0 24 24" fill="none">
|
|
51
|
-
<react_native_svg_1.Path d="M20 6L9 17l-5-5" stroke={color} strokeWidth="2.4" strokeLinecap="round" strokeLinejoin="round"/>
|
|
52
|
-
</react_native_svg_1.default>);
|
|
53
|
-
const ExternalLinkSvg = ({ size = 13, color = '#FFFFFF' }) => (<react_native_svg_1.default width={size} height={size} viewBox="0 0 24 24" fill="none">
|
|
54
|
-
<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"/>
|
|
55
|
-
<react_native_svg_1.Path d="M15 3h6v6" stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
|
|
56
|
-
<react_native_svg_1.Path d="M10 14L21 3" stroke={color} strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
|
|
57
|
-
</react_native_svg_1.default>);
|
|
58
|
-
const CloseSvg = ({ size = 13, color = '#64748B' }) => (<react_native_svg_1.default width={size} height={size} viewBox="0 0 24 24" fill="none">
|
|
59
|
-
<react_native_svg_1.Path d="M18 6L6 18M6 6l12 12" stroke={color} strokeWidth="2.2" strokeLinecap="round" strokeLinejoin="round"/>
|
|
60
|
-
</react_native_svg_1.default>);
|
|
61
|
-
const SparkleSvg = ({ size = 14, color = '#F59E0B' }) => (<react_native_svg_1.default width={size} height={size} viewBox="0 0 24 24" fill="none">
|
|
62
|
-
<react_native_svg_1.Path d="M12 2l2.4 6.6L21 11l-6.6 2.4L12 20l-2.4-6.6L3 11l6.6-2.4L12 2z" fill={color}/>
|
|
63
|
-
</react_native_svg_1.default>);
|
|
64
|
-
const ArrowRightSvg = ({ size = 14, color = '#94A3B8' }) => (<react_native_svg_1.default width={size} height={size} viewBox="0 0 24 24" fill="none">
|
|
65
|
-
<react_native_svg_1.Path d="M5 12h14M12 5l7 7-7 7" stroke={color} strokeWidth="2.2" strokeLinecap="round" strokeLinejoin="round"/>
|
|
66
|
-
</react_native_svg_1.default>);
|
|
67
|
-
const UpdateAvailableModal = ({ visible, latestVersion, onClose, }) => {
|
|
68
|
-
const [copied, setCopied] = (0, react_1.useState)(false);
|
|
69
|
-
const fadeAnim = (0, react_1.useState)(new react_native_1.Animated.Value(0))[0];
|
|
70
|
-
const scaleAnim = (0, react_1.useState)(new react_native_1.Animated.Value(0.92))[0];
|
|
71
|
-
const installCommand = `npm install react-native-inapp-inspector@latest`;
|
|
72
|
-
if (typeof __DEV__ === 'undefined' || !__DEV__)
|
|
73
|
-
return null;
|
|
74
|
-
(0, react_1.useEffect)(() => {
|
|
75
|
-
if (visible) {
|
|
76
|
-
setCopied(false);
|
|
77
|
-
react_native_1.Animated.parallel([
|
|
78
|
-
react_native_1.Animated.timing(fadeAnim, {
|
|
79
|
-
toValue: 1,
|
|
80
|
-
duration: 220,
|
|
81
|
-
useNativeDriver: true,
|
|
82
|
-
}),
|
|
83
|
-
react_native_1.Animated.spring(scaleAnim, {
|
|
84
|
-
toValue: 1,
|
|
85
|
-
friction: 8,
|
|
86
|
-
tension: 50,
|
|
87
|
-
useNativeDriver: true,
|
|
88
|
-
}),
|
|
89
|
-
]).start();
|
|
90
|
-
}
|
|
91
|
-
}, [visible, fadeAnim, scaleAnim]);
|
|
92
|
-
const handleClose = () => {
|
|
93
|
-
react_native_1.Animated.parallel([
|
|
94
|
-
react_native_1.Animated.timing(fadeAnim, {
|
|
95
|
-
toValue: 0,
|
|
96
|
-
duration: 160,
|
|
97
|
-
useNativeDriver: true,
|
|
98
|
-
}),
|
|
99
|
-
react_native_1.Animated.timing(scaleAnim, {
|
|
100
|
-
toValue: 0.92,
|
|
101
|
-
duration: 160,
|
|
102
|
-
useNativeDriver: true,
|
|
103
|
-
}),
|
|
104
|
-
]).start(() => {
|
|
105
|
-
onClose();
|
|
106
|
-
});
|
|
107
|
-
};
|
|
108
|
-
const handleCopyCommand = () => {
|
|
109
|
-
(0, helpers_1.copyToClipboard)(installCommand, 'Install Command');
|
|
110
|
-
setCopied(true);
|
|
111
|
-
(0, toast_1.showToast)('Copied npm install command to clipboard!');
|
|
112
|
-
setTimeout(() => {
|
|
113
|
-
setCopied(false);
|
|
114
|
-
}, 2500);
|
|
115
|
-
};
|
|
116
|
-
const handleOpenNpm = () => {
|
|
117
|
-
react_native_1.Linking.openURL('https://www.npmjs.com/package/react-native-inapp-inspector').catch(() => { });
|
|
118
|
-
handleClose();
|
|
119
|
-
};
|
|
120
|
-
if (!visible)
|
|
121
|
-
return null;
|
|
122
|
-
return (<react_native_1.Modal transparent visible={visible} animationType="none" statusBarTranslucent onRequestClose={handleClose}>
|
|
1
|
+
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(t,e,a,o){o===void 0&&(o=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,o,r)}):(function(t,e,a,o){o===void 0&&(o=a),t[o]=e[a]})),__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(a){var o=[];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(o[o.length]=r);return o},t(e)};return function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var o=t(e),r=0;r<o.length;r++)o[r]!=="default"&&__createBinding(a,e,o[r]);return __setModuleDefault(a,e),a}})();Object.defineProperty(exports,"__esModule",{value:!0}),exports.UpdateAvailableModal=void 0;const react_1=__importStar(require("react")),react_native_1=require("react-native"),react_native_svg_1=__importStar(require("react-native-svg")),BrandSquareIcon_1=require("../BrandSquareIcon"),NetworkIcons_1=require("../NetworkIcons"),constants_1=require("../../constants"),helpers_1=require("../../helpers"),toast_1=require("../../helpers/toast"),AppFonts_1=require("../../styles/AppFonts"),AppColors_1=require("../../styles/AppColors"),CopySvg=({size:t=14,color:e=AppColors_1.AppColors.grayTextWeak})=><react_native_svg_1.default width={t}height={t}viewBox="0 0 24 24"fill="none">
|
|
2
|
+
<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"/>
|
|
3
|
+
<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"/>
|
|
4
|
+
</react_native_svg_1.default>,CheckSvg=({size:t=14,color:e=AppColors_1.AppColors.emerald500})=><react_native_svg_1.default width={t}height={t}viewBox="0 0 24 24"fill="none">
|
|
5
|
+
<react_native_svg_1.Path d="M20 6L9 17l-5-5"stroke={e}strokeWidth="2.4"strokeLinecap="round"strokeLinejoin="round"/>
|
|
6
|
+
</react_native_svg_1.default>,ExternalLinkSvg=({size:t=13,color:e=AppColors_1.AppColors.white})=><react_native_svg_1.default width={t}height={t}viewBox="0 0 24 24"fill="none">
|
|
7
|
+
<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"/>
|
|
8
|
+
<react_native_svg_1.Path d="M15 3h6v6"stroke={e}strokeWidth="2"strokeLinecap="round"strokeLinejoin="round"/>
|
|
9
|
+
<react_native_svg_1.Path d="M10 14L21 3"stroke={e}strokeWidth="2"strokeLinecap="round"strokeLinejoin="round"/>
|
|
10
|
+
</react_native_svg_1.default>,CloseSvg=({size:t=13,color:e=AppColors_1.AppColors.grayTextWeak})=><react_native_svg_1.default width={t}height={t}viewBox="0 0 24 24"fill="none">
|
|
11
|
+
<react_native_svg_1.Path d="M18 6L6 18M6 6l12 12"stroke={e}strokeWidth="2.2"strokeLinecap="round"strokeLinejoin="round"/>
|
|
12
|
+
</react_native_svg_1.default>,SparkleSvg=({size:t=14,color:e=AppColors_1.AppColors.amber500})=><react_native_svg_1.default width={t}height={t}viewBox="0 0 24 24"fill="none">
|
|
13
|
+
<react_native_svg_1.Path d="M12 2l2.4 6.6L21 11l-6.6 2.4L12 20l-2.4-6.6L3 11l6.6-2.4L12 2z"fill={e}/>
|
|
14
|
+
</react_native_svg_1.default>,ArrowRightSvg=({size:t=14,color:e=AppColors_1.AppColors.slate400})=><react_native_svg_1.default width={t}height={t}viewBox="0 0 24 24"fill="none">
|
|
15
|
+
<react_native_svg_1.Path d="M5 12h14M12 5l7 7-7 7"stroke={e}strokeWidth="2.2"strokeLinecap="round"strokeLinejoin="round"/>
|
|
16
|
+
</react_native_svg_1.default>,UpdateAvailableModal=({visible:t,latestVersion:e,onClose:a})=>{const[o,r]=(0,react_1.useState)(!1),i=(0,react_1.useState)(new react_native_1.Animated.Value(0))[0],n=(0,react_1.useState)(new react_native_1.Animated.Value(.92))[0],s="npm install react-native-inapp-inspector@latest";if(typeof __DEV__>"u"||!__DEV__)return null;(0,react_1.useEffect)(()=>{t&&(r(!1),react_native_1.Animated.parallel([react_native_1.Animated.timing(i,{toValue:1,duration:220,useNativeDriver:!0}),react_native_1.Animated.spring(n,{toValue:1,friction:8,tension:50,useNativeDriver:!0})]).start())},[t,i,n]);const l=()=>{react_native_1.Animated.parallel([react_native_1.Animated.timing(i,{toValue:0,duration:160,useNativeDriver:!0}),react_native_1.Animated.timing(n,{toValue:.92,duration:160,useNativeDriver:!0})]).start(()=>{a()})},d=()=>{(0,helpers_1.copyToClipboard)(s,"Install Command"),r(!0),(0,toast_1.showToast)("Copied npm install command to clipboard!"),setTimeout(()=>{r(!1)},2500)},p=()=>{react_native_1.Linking.openURL("https://www.npmjs.com/package/react-native-inapp-inspector").catch(()=>{}),l()};return t?<react_native_1.Modal transparent visible={t}animationType="none"statusBarTranslucent onRequestClose={l}>
|
|
123
17
|
<react_native_1.View style={styles.overlay}>
|
|
124
|
-
<react_native_1.Animated.View style={[
|
|
125
|
-
styles.card,
|
|
126
|
-
{
|
|
127
|
-
opacity: fadeAnim,
|
|
128
|
-
transform: [{ scale: scaleAnim }],
|
|
129
|
-
},
|
|
130
|
-
]}>
|
|
18
|
+
<react_native_1.Animated.View style={[styles.card,{opacity:i,transform:[{scale:n}]}]}>
|
|
131
19
|
|
|
132
|
-
<react_native_1.TouchableOpacity style={styles.topCloseButton}
|
|
133
|
-
<CloseSvg size={13}
|
|
20
|
+
<react_native_1.TouchableOpacity style={styles.topCloseButton}onPress={l}hitSlop={10}activeOpacity={.7}>
|
|
21
|
+
<CloseSvg size={13}color={AppColors_1.AppColors.grayTextWeak}/>
|
|
134
22
|
</react_native_1.TouchableOpacity>
|
|
135
23
|
|
|
136
24
|
|
|
137
25
|
<react_native_1.View style={styles.headerSection}>
|
|
138
26
|
<react_native_1.View style={styles.iconHaloRing}>
|
|
139
|
-
<BrandSquareIcon_1.BrandSquareIcon size={
|
|
27
|
+
<BrandSquareIcon_1.BrandSquareIcon size={38}/>
|
|
140
28
|
<react_native_1.View style={styles.sparkleBadge}>
|
|
141
|
-
<SparkleSvg size={13}
|
|
29
|
+
<SparkleSvg size={13}color={AppColors_1.AppColors.amber500}/>
|
|
142
30
|
</react_native_1.View>
|
|
143
31
|
</react_native_1.View>
|
|
144
|
-
|
|
145
32
|
<react_native_1.Text style={styles.title}>Update Available</react_native_1.Text>
|
|
146
33
|
<react_native_1.Text style={styles.subtitle}>
|
|
147
|
-
A
|
|
34
|
+
A new version of react-native-inapp-inspector is ready to install
|
|
148
35
|
</react_native_1.Text>
|
|
149
36
|
</react_native_1.View>
|
|
150
37
|
|
|
@@ -158,14 +45,14 @@ const UpdateAvailableModal = ({ visible, latestVersion, onClose, }) => {
|
|
|
158
45
|
</react_native_1.View>
|
|
159
46
|
|
|
160
47
|
<react_native_1.View style={styles.arrowContainer}>
|
|
161
|
-
<ArrowRightSvg size={14}
|
|
48
|
+
<ArrowRightSvg size={14}color={AppColors_1.AppColors.slate400}/>
|
|
162
49
|
</react_native_1.View>
|
|
163
50
|
|
|
164
51
|
<react_native_1.View style={styles.versionColumn}>
|
|
165
|
-
<react_native_1.Text style={styles.versionLabel}>LATEST
|
|
52
|
+
<react_native_1.Text style={styles.versionLabel}>LATEST</react_native_1.Text>
|
|
166
53
|
<react_native_1.View style={styles.latestChip}>
|
|
167
|
-
<NetworkIcons_1.NpmIcon size={12}
|
|
168
|
-
<react_native_1.Text style={styles.latestText}>v{
|
|
54
|
+
<NetworkIcons_1.NpmIcon size={12}color={AppColors_1.AppColors.npmRed}/>
|
|
55
|
+
<react_native_1.Text style={styles.latestText}>v{e}</react_native_1.Text>
|
|
169
56
|
</react_native_1.View>
|
|
170
57
|
</react_native_1.View>
|
|
171
58
|
</react_native_1.View>
|
|
@@ -174,295 +61,33 @@ const UpdateAvailableModal = ({ visible, latestVersion, onClose, }) => {
|
|
|
174
61
|
<react_native_1.View style={styles.codeSnippetBox}>
|
|
175
62
|
<react_native_1.View style={styles.codeSnippetHeader}>
|
|
176
63
|
<react_native_1.Text style={styles.codeSnippetLabel}>UPGRADE COMMAND</react_native_1.Text>
|
|
177
|
-
{
|
|
178
|
-
<CheckSvg size={11}
|
|
64
|
+
{o&&<react_native_1.View style={styles.copiedIndicator}>
|
|
65
|
+
<CheckSvg size={11}color={AppColors_1.AppColors.emerald500}/>
|
|
179
66
|
<react_native_1.Text style={styles.copiedText}>Copied</react_native_1.Text>
|
|
180
|
-
</react_native_1.View>
|
|
67
|
+
</react_native_1.View>}
|
|
181
68
|
</react_native_1.View>
|
|
182
69
|
|
|
183
|
-
<react_native_1.TouchableOpacity
|
|
184
|
-
<react_native_1.Text style={styles.commandText}
|
|
185
|
-
{
|
|
70
|
+
<react_native_1.TouchableOpacity activeOpacity={.75}onPress={d}style={styles.commandRow}>
|
|
71
|
+
<react_native_1.Text style={styles.commandText}numberOfLines={1}>
|
|
72
|
+
{s}
|
|
186
73
|
</react_native_1.Text>
|
|
187
74
|
<react_native_1.View style={styles.copyIconWrapper}>
|
|
188
|
-
{
|
|
75
|
+
{o?<CheckSvg size={14}color={AppColors_1.AppColors.emerald500}/>:<CopySvg size={14}color={AppColors_1.AppColors.grayTextWeak}/>}
|
|
189
76
|
</react_native_1.View>
|
|
190
77
|
</react_native_1.TouchableOpacity>
|
|
191
78
|
</react_native_1.View>
|
|
192
79
|
|
|
193
80
|
|
|
194
81
|
<react_native_1.View style={styles.buttonRow}>
|
|
195
|
-
<react_native_1.TouchableOpacity
|
|
82
|
+
<react_native_1.TouchableOpacity activeOpacity={.7}onPress={l}style={styles.secondaryButton}>
|
|
196
83
|
<react_native_1.Text style={styles.secondaryButtonText}>Later</react_native_1.Text>
|
|
197
84
|
</react_native_1.TouchableOpacity>
|
|
198
85
|
|
|
199
|
-
<react_native_1.TouchableOpacity
|
|
86
|
+
<react_native_1.TouchableOpacity activeOpacity={.8}onPress={p}style={styles.primaryButton}>
|
|
200
87
|
<react_native_1.Text style={styles.primaryButtonText}>View on NPM</react_native_1.Text>
|
|
201
|
-
<ExternalLinkSvg size={12}
|
|
88
|
+
<ExternalLinkSvg size={12}color={AppColors_1.AppColors.white}/>
|
|
202
89
|
</react_native_1.TouchableOpacity>
|
|
203
90
|
</react_native_1.View>
|
|
204
91
|
</react_native_1.Animated.View>
|
|
205
92
|
</react_native_1.View>
|
|
206
|
-
</react_native_1.Modal
|
|
207
|
-
};
|
|
208
|
-
exports.UpdateAvailableModal = UpdateAvailableModal;
|
|
209
|
-
const fontStack = {
|
|
210
|
-
fontFamily: AppFonts_1.AppFonts.interRegular,
|
|
211
|
-
};
|
|
212
|
-
const styles = react_native_1.StyleSheet.create({
|
|
213
|
-
overlay: {
|
|
214
|
-
flex: 1,
|
|
215
|
-
backgroundColor: 'rgba(15, 23, 42, 0.62)',
|
|
216
|
-
justifyContent: 'center',
|
|
217
|
-
alignItems: 'center',
|
|
218
|
-
paddingHorizontal: 20,
|
|
219
|
-
zIndex: 999999,
|
|
220
|
-
},
|
|
221
|
-
card: {
|
|
222
|
-
width: '100%',
|
|
223
|
-
maxWidth: 360,
|
|
224
|
-
backgroundColor: '#FFFFFF',
|
|
225
|
-
borderRadius: 24,
|
|
226
|
-
borderWidth: 1,
|
|
227
|
-
borderColor: '#E2E8F0',
|
|
228
|
-
paddingHorizontal: 20,
|
|
229
|
-
paddingTop: 22,
|
|
230
|
-
paddingBottom: 20,
|
|
231
|
-
alignItems: 'center',
|
|
232
|
-
shadowColor: '#0F172A',
|
|
233
|
-
shadowOffset: { width: 0, height: 18 },
|
|
234
|
-
shadowOpacity: 0.24,
|
|
235
|
-
shadowRadius: 36,
|
|
236
|
-
elevation: 24,
|
|
237
|
-
},
|
|
238
|
-
topCloseButton: {
|
|
239
|
-
position: 'absolute',
|
|
240
|
-
top: 14,
|
|
241
|
-
right: 14,
|
|
242
|
-
width: 28,
|
|
243
|
-
height: 28,
|
|
244
|
-
borderRadius: 14,
|
|
245
|
-
backgroundColor: '#F8FAFC',
|
|
246
|
-
justifyContent: 'center',
|
|
247
|
-
alignItems: 'center',
|
|
248
|
-
borderWidth: 1,
|
|
249
|
-
borderColor: '#E2E8F0',
|
|
250
|
-
zIndex: 10,
|
|
251
|
-
},
|
|
252
|
-
headerSection: {
|
|
253
|
-
alignItems: 'center',
|
|
254
|
-
width: '100%',
|
|
255
|
-
marginBottom: 12,
|
|
256
|
-
},
|
|
257
|
-
iconHaloRing: {
|
|
258
|
-
width: 66,
|
|
259
|
-
height: 66,
|
|
260
|
-
borderRadius: 20,
|
|
261
|
-
backgroundColor: '#FAF5FF',
|
|
262
|
-
justifyContent: 'center',
|
|
263
|
-
alignItems: 'center',
|
|
264
|
-
borderWidth: 1.5,
|
|
265
|
-
borderColor: '#F3E8FF',
|
|
266
|
-
marginBottom: 8,
|
|
267
|
-
shadowColor: '#7C3AED',
|
|
268
|
-
shadowOffset: { width: 0, height: 4 },
|
|
269
|
-
shadowOpacity: 0.16,
|
|
270
|
-
shadowRadius: 10,
|
|
271
|
-
elevation: 4,
|
|
272
|
-
},
|
|
273
|
-
sparkleBadge: {
|
|
274
|
-
position: 'absolute',
|
|
275
|
-
top: -4,
|
|
276
|
-
right: -4,
|
|
277
|
-
width: 22,
|
|
278
|
-
height: 22,
|
|
279
|
-
borderRadius: 11,
|
|
280
|
-
backgroundColor: '#FEF3C7',
|
|
281
|
-
justifyContent: 'center',
|
|
282
|
-
alignItems: 'center',
|
|
283
|
-
borderWidth: 1.5,
|
|
284
|
-
borderColor: '#FFFFFF',
|
|
285
|
-
},
|
|
286
|
-
title: {
|
|
287
|
-
fontSize: 17.5,
|
|
288
|
-
fontWeight: '800',
|
|
289
|
-
color: '#0F172A',
|
|
290
|
-
letterSpacing: -0.4,
|
|
291
|
-
textAlign: 'center',
|
|
292
|
-
lineHeight: 22,
|
|
293
|
-
marginBottom: 2,
|
|
294
|
-
...fontStack,
|
|
295
|
-
},
|
|
296
|
-
subtitle: {
|
|
297
|
-
fontSize: 12,
|
|
298
|
-
fontWeight: '500',
|
|
299
|
-
color: '#64748B',
|
|
300
|
-
textAlign: 'center',
|
|
301
|
-
lineHeight: 16,
|
|
302
|
-
paddingHorizontal: 8,
|
|
303
|
-
...fontStack,
|
|
304
|
-
},
|
|
305
|
-
versionComparisonCard: {
|
|
306
|
-
flexDirection: 'row',
|
|
307
|
-
alignItems: 'center',
|
|
308
|
-
justifyContent: 'space-between',
|
|
309
|
-
backgroundColor: '#F8FAFC',
|
|
310
|
-
borderRadius: 14,
|
|
311
|
-
borderWidth: 1,
|
|
312
|
-
borderColor: '#E2E8F0',
|
|
313
|
-
paddingVertical: 10,
|
|
314
|
-
paddingHorizontal: 14,
|
|
315
|
-
marginBottom: 12,
|
|
316
|
-
width: '100%',
|
|
317
|
-
},
|
|
318
|
-
versionColumn: {
|
|
319
|
-
alignItems: 'center',
|
|
320
|
-
gap: 4,
|
|
321
|
-
},
|
|
322
|
-
versionLabel: {
|
|
323
|
-
fontSize: 9.5,
|
|
324
|
-
fontWeight: '700',
|
|
325
|
-
color: '#94A3B8',
|
|
326
|
-
letterSpacing: 0.6,
|
|
327
|
-
...fontStack,
|
|
328
|
-
},
|
|
329
|
-
installedChip: {
|
|
330
|
-
backgroundColor: '#E2E8F0',
|
|
331
|
-
paddingHorizontal: 8,
|
|
332
|
-
paddingVertical: 3,
|
|
333
|
-
borderRadius: 6,
|
|
334
|
-
},
|
|
335
|
-
installedText: {
|
|
336
|
-
fontSize: 12,
|
|
337
|
-
fontWeight: '700',
|
|
338
|
-
color: '#475569',
|
|
339
|
-
...fontStack,
|
|
340
|
-
},
|
|
341
|
-
arrowContainer: {
|
|
342
|
-
paddingHorizontal: 6,
|
|
343
|
-
},
|
|
344
|
-
arrowText: {
|
|
345
|
-
fontSize: 14,
|
|
346
|
-
color: '#94A3B8',
|
|
347
|
-
fontWeight: '700',
|
|
348
|
-
},
|
|
349
|
-
latestChip: {
|
|
350
|
-
flexDirection: 'row',
|
|
351
|
-
alignItems: 'center',
|
|
352
|
-
gap: 4,
|
|
353
|
-
backgroundColor: '#EDE9FE',
|
|
354
|
-
paddingHorizontal: 8,
|
|
355
|
-
paddingVertical: 3,
|
|
356
|
-
borderRadius: 6,
|
|
357
|
-
borderWidth: 1,
|
|
358
|
-
borderColor: '#DDD6FE',
|
|
359
|
-
},
|
|
360
|
-
latestText: {
|
|
361
|
-
fontSize: 12,
|
|
362
|
-
fontWeight: '800',
|
|
363
|
-
color: '#6D28D9',
|
|
364
|
-
...fontStack,
|
|
365
|
-
},
|
|
366
|
-
codeSnippetBox: {
|
|
367
|
-
backgroundColor: '#0F172A',
|
|
368
|
-
borderRadius: 12,
|
|
369
|
-
padding: 10,
|
|
370
|
-
width: '100%',
|
|
371
|
-
marginBottom: 14,
|
|
372
|
-
borderWidth: 1,
|
|
373
|
-
borderColor: '#1E293B',
|
|
374
|
-
},
|
|
375
|
-
codeSnippetHeader: {
|
|
376
|
-
flexDirection: 'row',
|
|
377
|
-
justifyContent: 'space-between',
|
|
378
|
-
alignItems: 'center',
|
|
379
|
-
marginBottom: 6,
|
|
380
|
-
},
|
|
381
|
-
codeSnippetLabel: {
|
|
382
|
-
fontSize: 9.5,
|
|
383
|
-
fontWeight: '700',
|
|
384
|
-
color: '#64748B',
|
|
385
|
-
letterSpacing: 0.6,
|
|
386
|
-
...fontStack,
|
|
387
|
-
},
|
|
388
|
-
copiedIndicator: {
|
|
389
|
-
flexDirection: 'row',
|
|
390
|
-
alignItems: 'center',
|
|
391
|
-
gap: 3,
|
|
392
|
-
},
|
|
393
|
-
copiedText: {
|
|
394
|
-
fontSize: 9.5,
|
|
395
|
-
fontWeight: '600',
|
|
396
|
-
color: '#10B981',
|
|
397
|
-
...fontStack,
|
|
398
|
-
},
|
|
399
|
-
commandRow: {
|
|
400
|
-
flexDirection: 'row',
|
|
401
|
-
alignItems: 'center',
|
|
402
|
-
justifyContent: 'space-between',
|
|
403
|
-
backgroundColor: '#1E293B',
|
|
404
|
-
borderRadius: 8,
|
|
405
|
-
paddingVertical: 7,
|
|
406
|
-
paddingHorizontal: 9,
|
|
407
|
-
gap: 8,
|
|
408
|
-
},
|
|
409
|
-
commandText: {
|
|
410
|
-
flex: 1,
|
|
411
|
-
fontSize: 11,
|
|
412
|
-
fontFamily: AppFonts_1.AppFonts.interRegular,
|
|
413
|
-
color: '#38BDF8',
|
|
414
|
-
},
|
|
415
|
-
copyIconWrapper: {
|
|
416
|
-
width: 22,
|
|
417
|
-
height: 22,
|
|
418
|
-
borderRadius: 6,
|
|
419
|
-
backgroundColor: '#334155',
|
|
420
|
-
justifyContent: 'center',
|
|
421
|
-
alignItems: 'center',
|
|
422
|
-
},
|
|
423
|
-
buttonRow: {
|
|
424
|
-
flexDirection: 'row',
|
|
425
|
-
justifyContent: 'space-between',
|
|
426
|
-
alignItems: 'center',
|
|
427
|
-
gap: 10,
|
|
428
|
-
width: '100%',
|
|
429
|
-
},
|
|
430
|
-
secondaryButton: {
|
|
431
|
-
flex: 1,
|
|
432
|
-
alignItems: 'center',
|
|
433
|
-
justifyContent: 'center',
|
|
434
|
-
paddingVertical: 11,
|
|
435
|
-
borderRadius: 12,
|
|
436
|
-
backgroundColor: '#F1F5F9',
|
|
437
|
-
borderWidth: 1,
|
|
438
|
-
borderColor: '#E2E8F0',
|
|
439
|
-
},
|
|
440
|
-
secondaryButtonText: {
|
|
441
|
-
fontSize: 13,
|
|
442
|
-
fontWeight: '600',
|
|
443
|
-
color: '#475569',
|
|
444
|
-
...fontStack,
|
|
445
|
-
},
|
|
446
|
-
primaryButton: {
|
|
447
|
-
flex: 1.3,
|
|
448
|
-
flexDirection: 'row',
|
|
449
|
-
alignItems: 'center',
|
|
450
|
-
justifyContent: 'center',
|
|
451
|
-
gap: 6,
|
|
452
|
-
paddingVertical: 11,
|
|
453
|
-
borderRadius: 12,
|
|
454
|
-
backgroundColor: '#7C3AED',
|
|
455
|
-
shadowColor: '#7C3AED',
|
|
456
|
-
shadowOffset: { width: 0, height: 3 },
|
|
457
|
-
shadowOpacity: 0.28,
|
|
458
|
-
shadowRadius: 6,
|
|
459
|
-
elevation: 4,
|
|
460
|
-
},
|
|
461
|
-
primaryButtonText: {
|
|
462
|
-
fontSize: 13,
|
|
463
|
-
fontWeight: '700',
|
|
464
|
-
color: '#FFFFFF',
|
|
465
|
-
...fontStack,
|
|
466
|
-
},
|
|
467
|
-
});
|
|
468
|
-
exports.default = exports.UpdateAvailableModal;
|
|
93
|
+
</react_native_1.Modal>:null};exports.UpdateAvailableModal=UpdateAvailableModal;const fontStack={fontFamily:AppFonts_1.AppFonts.interRegular},styles=react_native_1.StyleSheet.create({overlay:{flex:1,backgroundColor:AppColors_1.AppColors.overlayDark,justifyContent:"center",alignItems:"center",paddingHorizontal:20,zIndex:999999},card:{width:"100%",maxWidth:360,backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:24,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,paddingHorizontal:20,paddingTop:22,paddingBottom:20,alignItems:"center",shadowColor:AppColors_1.AppColors.shadowColorString,shadowOffset:{width:0,height:18},shadowOpacity:.24,shadowRadius:36,elevation:24},topCloseButton:{position:"absolute",top:14,right:14,width:28,height:28,borderRadius:14,backgroundColor:AppColors_1.AppColors.grayBackground,justifyContent:"center",alignItems:"center",borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,zIndex:10},headerSection:{alignItems:"center",width:"100%",marginBottom:12},iconHaloRing:{width:66,height:66,borderRadius:20,backgroundColor:AppColors_1.AppColors.purple50,justifyContent:"center",alignItems:"center",borderWidth:1.5,borderColor:AppColors_1.AppColors.purple100,marginBottom:8,shadowColor:AppColors_1.AppColors.offerPurple,shadowOffset:{width:0,height:4},shadowOpacity:.16,shadowRadius:10,elevation:4},sparkleBadge:{position:"absolute",top:-4,right:-4,width:22,height:22,borderRadius:11,backgroundColor:AppColors_1.AppColors.paleYellow,justifyContent:"center",alignItems:"center",borderWidth:1.5,borderColor:AppColors_1.AppColors.white},title:{fontSize:17.5,fontWeight:"800",color:AppColors_1.AppColors.primaryBlack,letterSpacing:-.4,textAlign:"center",lineHeight:22,marginBottom:2,...fontStack},subtitle:{fontSize:12,fontWeight:"500",color:AppColors_1.AppColors.grayTextWeak,textAlign:"center",lineHeight:16,paddingHorizontal:8,...fontStack},versionComparisonCard:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",backgroundColor:AppColors_1.AppColors.grayBackground,borderRadius:14,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,paddingVertical:10,paddingHorizontal:14,marginBottom:12,width:"100%"},versionColumn:{alignItems:"center",gap:4},versionLabel:{fontSize:9.5,fontWeight:"700",color:AppColors_1.AppColors.slate400,letterSpacing:.6,...fontStack},installedChip:{backgroundColor:AppColors_1.AppColors.grayBorderSecondary,paddingHorizontal:8,paddingVertical:3,borderRadius:6},installedText:{fontSize:12,fontWeight:"700",color:AppColors_1.AppColors.grayText,...fontStack},arrowContainer:{paddingHorizontal:6},arrowText:{fontSize:14,color:AppColors_1.AppColors.slate400,fontWeight:"700"},latestChip:{flexDirection:"row",alignItems:"center",gap:4,backgroundColor:AppColors_1.AppColors.violetSoftBg,paddingHorizontal:8,paddingVertical:3,borderRadius:6,borderWidth:1,borderColor:AppColors_1.AppColors.violetSoftBorder},latestText:{fontSize:12,fontWeight:"800",color:AppColors_1.AppColors.offerPurple,...fontStack},codeSnippetBox:{backgroundColor:AppColors_1.AppColors.slate900,borderRadius:12,padding:10,width:"100%",marginBottom:14,borderWidth:1,borderColor:AppColors_1.AppColors.slate800},codeSnippetHeader:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginBottom:6},codeSnippetLabel:{fontSize:9.5,fontWeight:"700",color:AppColors_1.AppColors.grayTextWeak,letterSpacing:.6,...fontStack},copiedIndicator:{flexDirection:"row",alignItems:"center",gap:3},copiedText:{fontSize:9.5,fontWeight:"600",color:AppColors_1.AppColors.emerald500,...fontStack},commandRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",backgroundColor:AppColors_1.AppColors.slate800,borderRadius:8,paddingVertical:7,paddingHorizontal:9,gap:8},commandText:{flex:1,fontSize:11,fontFamily:AppFonts_1.AppFonts.interRegular,color:AppColors_1.AppColors.sky400},copyIconWrapper:{width:22,height:22,borderRadius:6,backgroundColor:AppColors_1.AppColors.slate700,justifyContent:"center",alignItems:"center"},buttonRow:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",gap:10,width:"100%"},secondaryButton:{flex:1,alignItems:"center",justifyContent:"center",paddingVertical:11,borderRadius:12,backgroundColor:AppColors_1.AppColors.graySurface,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor},secondaryButtonText:{fontSize:13,fontWeight:"600",color:AppColors_1.AppColors.grayText,...fontStack},primaryButton:{flex:1.3,flexDirection:"row",alignItems:"center",justifyContent:"center",gap:6,paddingVertical:11,borderRadius:12,backgroundColor:AppColors_1.AppColors.offerPurple,shadowColor:AppColors_1.AppColors.offerPurple,shadowOffset:{width:0,height:3},shadowOpacity:.28,shadowRadius:6,elevation:4},primaryButtonText:{fontSize:13,fontWeight:"700",color:AppColors_1.AppColors.white,...fontStack}});exports.default=exports.UpdateAvailableModal;
|