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,393 +1,166 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.MediaPreviewModal = 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 NetworkIcons_1 = require("../NetworkIcons");
|
|
46
|
-
const helpers_1 = require("../../helpers");
|
|
47
|
-
const toast_1 = require("../../helpers/toast");
|
|
48
|
-
const i18n_1 = require("../../i18n");
|
|
49
|
-
const MediaPreviewModal = ({ item, visible, onClose, onDelete, onConvertToGif, }) => {
|
|
50
|
-
const { t } = (0, i18n_1.useTranslation)();
|
|
51
|
-
const [isConverting, setIsConverting] = (0, react_1.useState)(false);
|
|
52
|
-
const [imageError, setImageError] = (0, react_1.useState)(false);
|
|
53
|
-
if (!item)
|
|
54
|
-
return null;
|
|
55
|
-
const handleShare = async () => {
|
|
56
|
-
try {
|
|
57
|
-
await react_native_1.Share.share(react_native_1.Platform.OS === 'ios'
|
|
58
|
-
? { url: item.uri, title: item.filename }
|
|
59
|
-
: { message: `Captured media: ${item.filename}`, url: item.uri });
|
|
60
|
-
}
|
|
61
|
-
catch {
|
|
62
|
-
(0, toast_1.showToast)(t('mediaGallery.shareUnavailable'));
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
const handleCopyUri = () => {
|
|
66
|
-
(0, helpers_1.copyToClipboard)(item.uri);
|
|
67
|
-
(0, toast_1.showToast)(t('mediaGallery.uriCopied'));
|
|
68
|
-
};
|
|
69
|
-
const handleDelete = () => {
|
|
70
|
-
react_native_1.Alert.alert(t('mediaGallery.deleteTitle'), t('mediaGallery.deleteMessage', { filename: item.filename }), [
|
|
71
|
-
{ text: t('common.cancel'), style: 'cancel' },
|
|
72
|
-
{
|
|
73
|
-
text: t('mediaGallery.delete'),
|
|
74
|
-
style: 'destructive',
|
|
75
|
-
onPress: () => {
|
|
76
|
-
onDelete(item);
|
|
77
|
-
onClose();
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
]);
|
|
81
|
-
};
|
|
82
|
-
const handleConvert = async () => {
|
|
83
|
-
if (!onConvertToGif)
|
|
84
|
-
return;
|
|
85
|
-
setIsConverting(true);
|
|
86
|
-
try {
|
|
87
|
-
await onConvertToGif(item);
|
|
88
|
-
(0, toast_1.showToast)(t('mediaGallery.convertedSuccess'));
|
|
89
|
-
}
|
|
90
|
-
catch {
|
|
91
|
-
(0, toast_1.showToast)(t('mediaGallery.convertFailed'));
|
|
92
|
-
}
|
|
93
|
-
finally {
|
|
94
|
-
setIsConverting(false);
|
|
95
|
-
}
|
|
96
|
-
};
|
|
97
|
-
const isVideo = item.type === 'video';
|
|
98
|
-
const isGif = item.type === 'gif';
|
|
99
|
-
const durationSec = item.durationMs ? (item.durationMs / 1000).toFixed(1) : null;
|
|
100
|
-
return (<react_native_1.Modal visible={visible} transparent={true} animationType="fade" onRequestClose={onClose}>
|
|
1
|
+
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(e,t,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(t,a);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,i,r)}):(function(e,t,a,i){i===void 0&&(i=a),e[i]=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 i=[];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(i[i.length]=r);return i},e(t)};return function(t){if(t&&t.__esModule)return t;var a={};if(t!=null)for(var i=e(t),r=0;r<i.length;r++)i[r]!=="default"&&__createBinding(a,t,i[r]);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.MediaPreviewModal=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")),NetworkIcons_1=require("../NetworkIcons"),capture_1=require("../../capture"),helpers_1=require("../../helpers"),toast_1=require("../../helpers/toast"),i18n_1=require("../../i18n"),MediaPreviewModal=({item:e,visible:t,onClose:a,onDelete:i,onConvertToGif:r})=>{const{t:o}=(0,i18n_1.useTranslation)(),[y,b]=(0,react_1.useState)(!1),[v,g]=(0,react_1.useState)(!1),[n,T]=(0,react_1.useState)(!1),[C,f]=(0,react_1.useState)(!1),[A,x]=(0,react_1.useState)("1.0x"),[c,S]=(0,react_1.useState)(!0),[h,k]=(0,react_1.useState)(.4);if(!e)return null;const u=()=>{e?.uri&&((0,helpers_1.copyToClipboard)(e.uri,e.filename||"File URI"),(0,toast_1.showToast)(o("mediaGallery.uriCopied","File URI copied to clipboard")))},w=async()=>{try{f(!0),await capture_1.ScreenCapture.playVideo(e.uri)}catch{(0,toast_1.showToast)(o("mediaGallery.playError","Unable to play video"))}finally{f(!1)}},I=()=>{react_native_1.Alert.alert(o("mediaGallery.deleteTitle"),o("mediaGallery.deleteMessage",{filename:e.filename}),[{text:o("common.cancel"),style:"cancel"},{text:o("mediaGallery.delete"),style:"destructive",onPress:()=>{i(e),a()}}])},P=async()=>{if(r){b(!0);try{await r(e),(0,toast_1.showToast)(o("mediaGallery.convertedSuccess"))}catch{(0,toast_1.showToast)(o("mediaGallery.convertFailed"))}finally{b(!1)}}},_=async()=>{try{const l=e.uri.startsWith("file://")||e.uri.startsWith("content://")||e.uri.startsWith("http")?e.uri:`file://${e.uri}`,V=react_native_1.Platform.select({ios:{url:l,title:e.filename},default:{title:e.filename,message:e.filename,url:l}});(await react_native_1.Share.share(V)).action===react_native_1.Share.sharedAction&&(0,toast_1.showToast)(o("mediaGallery.shareSuccess","Shared successfully"))}catch(l){l?.message!=="User did not share"&&(0,toast_1.showToast)(o("mediaGallery.shareUnavailable","Sharing not available on this device"))}},s=e.type==="video",d=e.type==="gif",p=e.durationMs?(e.durationMs/1e3).toFixed(1):null,F=p?`00:${Number(p)<10?"0":""}${p}`:"00:05.0",m=!0;return<react_native_1.Modal visible={t}transparent={!0}animationType="fade"onRequestClose={a}>
|
|
101
2
|
<react_native_1.View style={previewStyles.overlay}>
|
|
102
3
|
|
|
103
4
|
<react_native_1.View style={previewStyles.header}>
|
|
104
|
-
<react_native_1.
|
|
105
|
-
<react_native_1.View style={[
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
? `${AppColors_1.AppColors.sky400}80`
|
|
110
|
-
: isGif
|
|
111
|
-
? `${AppColors_1.AppColors.warningAmber}80`
|
|
112
|
-
: `${AppColors_1.AppColors.emerald500}80`,
|
|
113
|
-
backgroundColor: isVideo
|
|
114
|
-
? `${AppColors_1.AppColors.sky400}20`
|
|
115
|
-
: isGif
|
|
116
|
-
? `${AppColors_1.AppColors.warningAmber}20`
|
|
117
|
-
: `${AppColors_1.AppColors.emerald500}20`,
|
|
118
|
-
},
|
|
119
|
-
]}>
|
|
120
|
-
{isVideo ? (<NetworkIcons_1.FilmIcon size={13} color={AppColors_1.AppColors.sky400}/>) : isGif ? (<NetworkIcons_1.GifIcon size={13} color={AppColors_1.AppColors.warningAmber}/>) : (<NetworkIcons_1.ImageIcon size={13} color={AppColors_1.AppColors.emerald500}/>)}
|
|
121
|
-
<react_native_1.Text style={[
|
|
122
|
-
previewStyles.badgeText,
|
|
123
|
-
{
|
|
124
|
-
color: isVideo
|
|
125
|
-
? AppColors_1.AppColors.sky400
|
|
126
|
-
: isGif
|
|
127
|
-
? AppColors_1.AppColors.warningAmber
|
|
128
|
-
: AppColors_1.AppColors.emerald500,
|
|
129
|
-
},
|
|
130
|
-
]}>
|
|
131
|
-
{item.format.toUpperCase()}
|
|
5
|
+
<react_native_1.TouchableOpacity activeOpacity={.8}onPress={u}style={previewStyles.headerLeft}>
|
|
6
|
+
<react_native_1.View style={[previewStyles.badge,{borderColor:s?`${AppColors_1.AppColors.sky400}80`:d?`${AppColors_1.AppColors.warningAmber}80`:`${AppColors_1.AppColors.emerald500}80`,backgroundColor:s?`${AppColors_1.AppColors.sky400}20`:d?`${AppColors_1.AppColors.warningAmber}20`:`${AppColors_1.AppColors.emerald500}20`}]}>
|
|
7
|
+
{s?<NetworkIcons_1.FilmIcon size={13}color={AppColors_1.AppColors.sky400}/>:d?<NetworkIcons_1.GifIcon size={13}color={AppColors_1.AppColors.warningAmber}/>:<NetworkIcons_1.ImageIcon size={13}color={AppColors_1.AppColors.emerald500}/>}
|
|
8
|
+
<react_native_1.Text style={[previewStyles.badgeText,{color:s?AppColors_1.AppColors.sky400:d?AppColors_1.AppColors.warningAmber:AppColors_1.AppColors.emerald500}]}>
|
|
9
|
+
{e.format.toUpperCase()}
|
|
132
10
|
</react_native_1.Text>
|
|
133
11
|
</react_native_1.View>
|
|
134
|
-
<react_native_1.View style={{
|
|
135
|
-
<react_native_1.Text style={previewStyles.title}
|
|
136
|
-
{
|
|
12
|
+
<react_native_1.View style={{flex:1,minWidth:0}}>
|
|
13
|
+
<react_native_1.Text style={previewStyles.title}numberOfLines={1}>
|
|
14
|
+
{e.filename}
|
|
137
15
|
</react_native_1.Text>
|
|
138
16
|
<react_native_1.Text style={previewStyles.subtitle}>
|
|
139
|
-
{(0,
|
|
17
|
+
{(0,helpers_1.formatBytes)(e.sizeBytes)} • {new Date(e.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}
|
|
140
18
|
</react_native_1.Text>
|
|
141
19
|
</react_native_1.View>
|
|
142
|
-
</react_native_1.View>
|
|
143
|
-
<react_native_1.TouchableOpacity onPress={onClose} style={previewStyles.closeBtn} hitSlop={{ top: 10, bottom: 10, left: 10, right: 10 }}>
|
|
144
|
-
<NetworkIcons_1.CloseWhite size={14} color={AppColors_1.AppColors.white}/>
|
|
145
20
|
</react_native_1.TouchableOpacity>
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
<react_native_1.View style={previewStyles.headerRight}>
|
|
24
|
+
<TouchableScale_1.default accessible={!0}accessibilityRole="button"accessibilityLabel={o("mediaGallery.copyUri","Copy URI")}onPress={u}style={previewStyles.headerActionBtn}hitSlop={{top:10,bottom:10,left:10,right:10}}>
|
|
25
|
+
<NetworkIcons_1.CopyIcon size={14}color={AppColors_1.AppColors.slate200}/>
|
|
26
|
+
</TouchableScale_1.default>
|
|
27
|
+
|
|
28
|
+
<TouchableScale_1.default accessible={!0}accessibilityRole="button"accessibilityLabel={o("mediaGallery.share","Share")}onPress={_}style={[previewStyles.headerActionBtn,{backgroundColor:`${AppColors_1.AppColors.sky400}20`,borderColor:`${AppColors_1.AppColors.sky400}60`}]}hitSlop={{top:10,bottom:10,left:10,right:10}}>
|
|
29
|
+
<NetworkIcons_1.ShareIcon size={14}color={AppColors_1.AppColors.sky400}/>
|
|
30
|
+
</TouchableScale_1.default>
|
|
31
|
+
|
|
32
|
+
<TouchableScale_1.default accessible={!0}accessibilityRole="button"accessibilityLabel={o("mediaGallery.delete")}onPress={I}style={previewStyles.headerDeleteBtn}hitSlop={{top:10,bottom:10,left:10,right:10}}>
|
|
33
|
+
<NetworkIcons_1.TrashIcon size={14}color={AppColors_1.AppColors.red500}/>
|
|
34
|
+
</TouchableScale_1.default>
|
|
35
|
+
|
|
36
|
+
<react_native_1.TouchableOpacity accessible={!0}accessibilityRole="button"accessibilityLabel={n?o("mediaGallery.collapse","Exit Fullscreen"):o("mediaGallery.expand","Expand Fullscreen")}onPress={()=>T(!n)}style={[previewStyles.headerIconBtn,n&&{backgroundColor:`${AppColors_1.AppColors.sky400}30`,borderColor:`${AppColors_1.AppColors.sky400}70`}]}hitSlop={{top:10,bottom:10,left:10,right:10}}>
|
|
37
|
+
<NetworkIcons_1.ExpandCollapseIcon size={14}isExpanded={n}color={n?AppColors_1.AppColors.sky400:AppColors_1.AppColors.white}/>
|
|
38
|
+
</react_native_1.TouchableOpacity>
|
|
39
|
+
|
|
40
|
+
<react_native_1.TouchableOpacity accessible={!0}accessibilityRole="button"accessibilityLabel={o("mediaGallery.minimize","Minimize")}onPress={a}style={previewStyles.headerIconBtn}hitSlop={{top:10,bottom:10,left:10,right:10}}>
|
|
41
|
+
<NetworkIcons_1.ChevronDownIcon size={15}color={AppColors_1.AppColors.white}/>
|
|
42
|
+
</react_native_1.TouchableOpacity>
|
|
43
|
+
</react_native_1.View>
|
|
146
44
|
</react_native_1.View>
|
|
147
45
|
|
|
148
46
|
|
|
149
|
-
<react_native_1.View style={previewStyles.stage}>
|
|
150
|
-
<react_native_1.
|
|
151
|
-
|
|
47
|
+
<react_native_1.View style={[previewStyles.stage,n&&previewStyles.stageExpanded,!m&&{paddingBottom:react_native_1.Platform.OS==="ios"?34:16}]}>
|
|
48
|
+
<react_native_1.TouchableOpacity activeOpacity={s?.9:1}onPress={s?w:void 0}style={[previewStyles.previewCard,n&&previewStyles.previewCardExpanded]}>
|
|
49
|
+
{s?e.thumbnailUri&&!v?<>
|
|
50
|
+
<react_native_1.Image source={{uri:e.thumbnailUri}}style={previewStyles.image}resizeMode="contain"onError={()=>g(!0)}/>
|
|
51
|
+
<react_native_1.View style={previewStyles.videoImageOverlay}/>
|
|
52
|
+
</>:<react_native_1.View style={previewStyles.videoFallbackBackdrop}>
|
|
53
|
+
<react_native_1.View style={previewStyles.videoFallbackGlow}/>
|
|
54
|
+
<NetworkIcons_1.FilmIcon size={44}color={AppColors_1.AppColors.sky400}/>
|
|
55
|
+
<react_native_1.Text style={previewStyles.videoFallbackSubtitle}>
|
|
56
|
+
{e.width&&e.height?`${e.width} \xD7 ${e.height}`:"HD Video"} • MP4
|
|
57
|
+
</react_native_1.Text>
|
|
58
|
+
</react_native_1.View>:<react_native_1.Image source={{uri:e.uri}}style={previewStyles.image}resizeMode="contain"onError={()=>g(!0)}/>}
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
{s&&<react_native_1.View style={previewStyles.centerPlayOverlay}>
|
|
62
|
+
<react_native_1.View style={previewStyles.centerPlayCircle}>
|
|
63
|
+
<NetworkIcons_1.PlayIcon size={28}color={AppColors_1.AppColors.white}/>
|
|
64
|
+
</react_native_1.View>
|
|
65
|
+
<react_native_1.Text style={previewStyles.centerPlayText}>
|
|
66
|
+
{o("mediaGallery.playVideo","Play Video")}
|
|
67
|
+
</react_native_1.Text>
|
|
68
|
+
</react_native_1.View>}
|
|
152
69
|
|
|
153
70
|
|
|
154
|
-
{
|
|
71
|
+
{s&&<react_native_1.View style={previewStyles.videoBadgeOverlay}>
|
|
155
72
|
<react_native_1.View style={previewStyles.playPill}>
|
|
156
|
-
<NetworkIcons_1.FilmIcon size={
|
|
73
|
+
<NetworkIcons_1.FilmIcon size={12}color={AppColors_1.AppColors.sky400}/>
|
|
157
74
|
<react_native_1.Text style={previewStyles.playPillText}>
|
|
158
|
-
{
|
|
75
|
+
{p?`${p}s`:"VIDEO"}
|
|
159
76
|
</react_native_1.Text>
|
|
160
77
|
</react_native_1.View>
|
|
161
|
-
</react_native_1.View>
|
|
78
|
+
</react_native_1.View>}
|
|
162
79
|
|
|
163
80
|
|
|
164
|
-
{
|
|
165
|
-
<react_native_1.View style={[previewStyles.playPill,
|
|
166
|
-
<NetworkIcons_1.GifIcon size={
|
|
81
|
+
{d&&<react_native_1.View style={previewStyles.videoBadgeOverlay}>
|
|
82
|
+
<react_native_1.View style={[previewStyles.playPill,{backgroundColor:`${AppColors_1.AppColors.warningAmber}CC`}]}>
|
|
83
|
+
<NetworkIcons_1.GifIcon size={12}color={AppColors_1.AppColors.white}/>
|
|
167
84
|
<react_native_1.Text style={previewStyles.playPillText}>ANIMATED GIF</react_native_1.Text>
|
|
168
85
|
</react_native_1.View>
|
|
169
|
-
</react_native_1.View>
|
|
170
|
-
</react_native_1.View>
|
|
86
|
+
</react_native_1.View>}
|
|
171
87
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
</react_native_1.View>
|
|
182
|
-
{durationSec ? (<react_native_1.View style={previewStyles.metaPill}>
|
|
183
|
-
<react_native_1.Text style={previewStyles.metaPillLabel}>DURATION</react_native_1.Text>
|
|
184
|
-
<react_native_1.Text style={previewStyles.metaPillValue}>{`${durationSec}s`}</react_native_1.Text>
|
|
185
|
-
</react_native_1.View>) : null}
|
|
186
|
-
</react_native_1.View>
|
|
88
|
+
|
|
89
|
+
<react_native_1.TouchableOpacity activeOpacity={.8}onPress={u}style={previewStyles.floatingMetaBadge}>
|
|
90
|
+
<NetworkIcons_1.CopyIcon size={11}color={AppColors_1.AppColors.sky400}/>
|
|
91
|
+
<react_native_1.Text style={previewStyles.floatingMetaText}>
|
|
92
|
+
{e.width&&e.height?`${e.width} \xD7 ${e.height} \u2022 `:""}
|
|
93
|
+
{(0,helpers_1.formatBytes)(e.sizeBytes)}
|
|
94
|
+
</react_native_1.Text>
|
|
95
|
+
</react_native_1.TouchableOpacity>
|
|
96
|
+
</react_native_1.TouchableOpacity>
|
|
187
97
|
</react_native_1.View>
|
|
188
98
|
|
|
189
99
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
borderColor: `${AppColors_1.AppColors.warningAmber}70`,
|
|
196
|
-
},
|
|
197
|
-
]}>
|
|
198
|
-
<NetworkIcons_1.GifIcon size={15} color={AppColors_1.AppColors.warningAmber}/>
|
|
199
|
-
<react_native_1.Text style={[previewStyles.actionText, { color: AppColors_1.AppColors.warningAmber }]}>
|
|
200
|
-
{isConverting ? t('mediaGallery.converting') : t('mediaGallery.convertToGif')}
|
|
100
|
+
{s&&<react_native_1.View style={previewStyles.videoControlsPanel}>
|
|
101
|
+
|
|
102
|
+
<react_native_1.View style={previewStyles.progressSection}>
|
|
103
|
+
<react_native_1.Text style={previewStyles.timeLabel}>
|
|
104
|
+
00:0{Math.floor(h*(Number(p)||5))}
|
|
201
105
|
</react_native_1.Text>
|
|
202
|
-
|
|
106
|
+
<react_native_1.TouchableOpacity activeOpacity={.8}onPress={()=>k(l=>l>=.9?.1:l+.3)}style={previewStyles.progressTrack}>
|
|
107
|
+
<react_native_1.View style={[previewStyles.progressFill,{width:`${Math.max(10,Math.min(100,h*100))}%`}]}/>
|
|
108
|
+
<react_native_1.View style={[previewStyles.scrubberThumb,{left:`${Math.max(8,Math.min(96,h*100))}%`}]}/>
|
|
109
|
+
</react_native_1.TouchableOpacity>
|
|
110
|
+
<react_native_1.Text style={previewStyles.timeLabel}>{F}</react_native_1.Text>
|
|
111
|
+
</react_native_1.View>
|
|
203
112
|
|
|
204
|
-
|
|
205
|
-
<
|
|
206
|
-
|
|
207
|
-
|
|
113
|
+
|
|
114
|
+
<react_native_1.View style={previewStyles.controlsRow}>
|
|
115
|
+
|
|
116
|
+
<react_native_1.TouchableOpacity onPress={w}style={previewStyles.controlActionPill}>
|
|
117
|
+
{C?<NetworkIcons_1.PauseIcon size={14}color={AppColors_1.AppColors.sky400}/>:<NetworkIcons_1.PlayIcon size={14}color={AppColors_1.AppColors.sky400}/>}
|
|
118
|
+
<react_native_1.Text style={[previewStyles.controlActionText,{color:AppColors_1.AppColors.sky400}]}>
|
|
119
|
+
{C?o("mediaGallery.pause","Pause"):o("mediaGallery.play","Play")}
|
|
120
|
+
</react_native_1.Text>
|
|
121
|
+
</react_native_1.TouchableOpacity>
|
|
208
122
|
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
123
|
+
|
|
124
|
+
<react_native_1.View style={previewStyles.speedGroup}>
|
|
125
|
+
{["1.0x","1.5x","2.0x"].map(l=><react_native_1.TouchableOpacity key={l}onPress={()=>x(l)}style={[previewStyles.speedBtn,A===l&&previewStyles.speedBtnActive]}>
|
|
126
|
+
<react_native_1.Text style={[previewStyles.speedText,A===l&&previewStyles.speedTextActive]}>
|
|
127
|
+
{l}
|
|
128
|
+
</react_native_1.Text>
|
|
129
|
+
</react_native_1.TouchableOpacity>)}
|
|
130
|
+
</react_native_1.View>
|
|
213
131
|
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
132
|
+
|
|
133
|
+
<react_native_1.TouchableOpacity onPress={()=>S(!c)}style={[previewStyles.loopPill,c&&previewStyles.loopPillActive]}>
|
|
134
|
+
<NetworkIcons_1.RepeatIcon size={12}color={c?AppColors_1.AppColors.sky400:AppColors_1.AppColors.whiteAlpha60}/>
|
|
135
|
+
<react_native_1.Text style={[previewStyles.loopText,c&&previewStyles.loopTextActive]}>
|
|
136
|
+
{c?"Loop: ON":"Loop: OFF"}
|
|
137
|
+
</react_native_1.Text>
|
|
138
|
+
</react_native_1.TouchableOpacity>
|
|
139
|
+
</react_native_1.View>
|
|
140
|
+
</react_native_1.View>}
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
{m&&<react_native_1.View style={previewStyles.footer}>
|
|
144
|
+
<TouchableScale_1.default onPress={u}style={[previewStyles.actionBtn,{backgroundColor:AppColors_1.AppColors.whiteAlpha08,borderColor:AppColors_1.AppColors.whiteAlpha15}]}>
|
|
145
|
+
<NetworkIcons_1.CopyIcon size={14}color={AppColors_1.AppColors.slate200}/>
|
|
146
|
+
<react_native_1.Text style={[previewStyles.actionText,{color:AppColors_1.AppColors.slate200}]}>
|
|
147
|
+
{o("mediaGallery.copyUri","Copy URI")}
|
|
148
|
+
</react_native_1.Text>
|
|
149
|
+
</TouchableScale_1.default>
|
|
150
|
+
|
|
151
|
+
{r&&s&&<TouchableScale_1.default onPress={P}disabled={y}style={[previewStyles.actionBtn,{backgroundColor:`${AppColors_1.AppColors.warningAmber}22`,borderColor:`${AppColors_1.AppColors.warningAmber}70`}]}>
|
|
152
|
+
<NetworkIcons_1.GifIcon size={15}color={AppColors_1.AppColors.warningAmber}/>
|
|
153
|
+
<react_native_1.Text style={[previewStyles.actionText,{color:AppColors_1.AppColors.warningAmber}]}>
|
|
154
|
+
{o(y?"mediaGallery.converting":"mediaGallery.convertToGif")}
|
|
155
|
+
</react_native_1.Text>
|
|
156
|
+
</TouchableScale_1.default>}
|
|
157
|
+
|
|
158
|
+
<TouchableScale_1.default onPress={_}style={[previewStyles.actionBtn,{backgroundColor:`${AppColors_1.AppColors.sky400}22`,borderColor:`${AppColors_1.AppColors.sky400}70`}]}>
|
|
159
|
+
<NetworkIcons_1.ShareIcon size={14}color={AppColors_1.AppColors.sky400}/>
|
|
160
|
+
<react_native_1.Text style={[previewStyles.actionText,{color:AppColors_1.AppColors.sky400,fontFamily:AppFonts_1.AppFonts.interSemiBold}]}>
|
|
161
|
+
{o("mediaGallery.share","Share")}
|
|
162
|
+
</react_native_1.Text>
|
|
163
|
+
</TouchableScale_1.default>
|
|
164
|
+
</react_native_1.View>}
|
|
227
165
|
</react_native_1.View>
|
|
228
|
-
</react_native_1.Modal>);
|
|
229
|
-
};
|
|
230
|
-
exports.MediaPreviewModal = MediaPreviewModal;
|
|
231
|
-
const { width: SCREEN_WIDTH, height: SCREEN_HEIGHT } = react_native_1.Dimensions.get('window');
|
|
232
|
-
const previewStyles = react_native_1.StyleSheet.create({
|
|
233
|
-
overlay: {
|
|
234
|
-
flex: 1,
|
|
235
|
-
backgroundColor: '#090D16FA',
|
|
236
|
-
justifyContent: 'space-between',
|
|
237
|
-
},
|
|
238
|
-
header: {
|
|
239
|
-
flexDirection: 'row',
|
|
240
|
-
alignItems: 'center',
|
|
241
|
-
justifyContent: 'space-between',
|
|
242
|
-
paddingHorizontal: 16,
|
|
243
|
-
paddingTop: react_native_1.Platform.OS === 'ios' ? 52 : 20,
|
|
244
|
-
paddingBottom: 14,
|
|
245
|
-
borderBottomWidth: 1,
|
|
246
|
-
borderBottomColor: AppColors_1.AppColors.borderGlassLight,
|
|
247
|
-
backgroundColor: AppColors_1.AppColors.headerGlassDark,
|
|
248
|
-
},
|
|
249
|
-
headerLeft: {
|
|
250
|
-
flexDirection: 'row',
|
|
251
|
-
alignItems: 'center',
|
|
252
|
-
gap: 10,
|
|
253
|
-
flex: 1,
|
|
254
|
-
minWidth: 0,
|
|
255
|
-
marginRight: 10,
|
|
256
|
-
},
|
|
257
|
-
badge: {
|
|
258
|
-
flexDirection: 'row',
|
|
259
|
-
alignItems: 'center',
|
|
260
|
-
gap: 4,
|
|
261
|
-
paddingHorizontal: 8,
|
|
262
|
-
paddingVertical: 4,
|
|
263
|
-
borderRadius: 6,
|
|
264
|
-
borderWidth: 1,
|
|
265
|
-
},
|
|
266
|
-
badgeText: {
|
|
267
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
268
|
-
fontSize: 10.5,
|
|
269
|
-
letterSpacing: 0.4,
|
|
270
|
-
},
|
|
271
|
-
title: {
|
|
272
|
-
fontFamily: AppFonts_1.AppFonts.interSemiBold,
|
|
273
|
-
fontSize: 13.5,
|
|
274
|
-
color: AppColors_1.AppColors.white,
|
|
275
|
-
},
|
|
276
|
-
subtitle: {
|
|
277
|
-
fontFamily: AppFonts_1.AppFonts.interRegular,
|
|
278
|
-
fontSize: 11,
|
|
279
|
-
color: AppColors_1.AppColors.whiteAlpha60,
|
|
280
|
-
marginTop: 1,
|
|
281
|
-
},
|
|
282
|
-
closeBtn: {
|
|
283
|
-
width: 32,
|
|
284
|
-
height: 32,
|
|
285
|
-
borderRadius: 16,
|
|
286
|
-
backgroundColor: AppColors_1.AppColors.whiteAlpha12,
|
|
287
|
-
alignItems: 'center',
|
|
288
|
-
justifyContent: 'center',
|
|
289
|
-
},
|
|
290
|
-
stage: {
|
|
291
|
-
flex: 1,
|
|
292
|
-
alignItems: 'center',
|
|
293
|
-
justifyContent: 'center',
|
|
294
|
-
paddingHorizontal: 16,
|
|
295
|
-
paddingVertical: 12,
|
|
296
|
-
},
|
|
297
|
-
previewCard: {
|
|
298
|
-
width: SCREEN_WIDTH - 32,
|
|
299
|
-
height: SCREEN_HEIGHT * 0.60,
|
|
300
|
-
borderRadius: 12,
|
|
301
|
-
overflow: 'hidden',
|
|
302
|
-
backgroundColor: '#05070D',
|
|
303
|
-
borderWidth: 1,
|
|
304
|
-
borderColor: AppColors_1.AppColors.borderGlassLight,
|
|
305
|
-
alignItems: 'center',
|
|
306
|
-
justifyContent: 'center',
|
|
307
|
-
position: 'relative',
|
|
308
|
-
},
|
|
309
|
-
image: {
|
|
310
|
-
width: '100%',
|
|
311
|
-
height: '100%',
|
|
312
|
-
},
|
|
313
|
-
videoBadgeOverlay: {
|
|
314
|
-
position: 'absolute',
|
|
315
|
-
bottom: 12,
|
|
316
|
-
left: 12,
|
|
317
|
-
},
|
|
318
|
-
playPill: {
|
|
319
|
-
flexDirection: 'row',
|
|
320
|
-
alignItems: 'center',
|
|
321
|
-
gap: 6,
|
|
322
|
-
backgroundColor: `${AppColors_1.AppColors.slate900}D9`,
|
|
323
|
-
paddingHorizontal: 10,
|
|
324
|
-
paddingVertical: 5,
|
|
325
|
-
borderRadius: 16,
|
|
326
|
-
borderWidth: 1,
|
|
327
|
-
borderColor: AppColors_1.AppColors.whiteAlpha20,
|
|
328
|
-
},
|
|
329
|
-
playPillText: {
|
|
330
|
-
fontFamily: AppFonts_1.AppFonts.interSemiBold,
|
|
331
|
-
fontSize: 11,
|
|
332
|
-
color: AppColors_1.AppColors.white,
|
|
333
|
-
letterSpacing: 0.3,
|
|
334
|
-
},
|
|
335
|
-
metaPillRow: {
|
|
336
|
-
flexDirection: 'row',
|
|
337
|
-
alignItems: 'center',
|
|
338
|
-
justifyContent: 'center',
|
|
339
|
-
gap: 8,
|
|
340
|
-
marginTop: 14,
|
|
341
|
-
flexWrap: 'wrap',
|
|
342
|
-
},
|
|
343
|
-
metaPill: {
|
|
344
|
-
backgroundColor: AppColors_1.AppColors.whiteAlpha08,
|
|
345
|
-
paddingHorizontal: 10,
|
|
346
|
-
paddingVertical: 5,
|
|
347
|
-
borderRadius: 8,
|
|
348
|
-
borderWidth: 1,
|
|
349
|
-
borderColor: AppColors_1.AppColors.whiteAlpha12,
|
|
350
|
-
alignItems: 'center',
|
|
351
|
-
},
|
|
352
|
-
metaPillLabel: {
|
|
353
|
-
fontFamily: AppFonts_1.AppFonts.interMedium,
|
|
354
|
-
fontSize: 9,
|
|
355
|
-
color: AppColors_1.AppColors.slate400,
|
|
356
|
-
letterSpacing: 0.4,
|
|
357
|
-
},
|
|
358
|
-
metaPillValue: {
|
|
359
|
-
fontFamily: AppFonts_1.AppFonts.interSemiBold,
|
|
360
|
-
fontSize: 11.5,
|
|
361
|
-
color: AppColors_1.AppColors.white,
|
|
362
|
-
marginTop: 1,
|
|
363
|
-
},
|
|
364
|
-
footer: {
|
|
365
|
-
flexDirection: 'row',
|
|
366
|
-
alignItems: 'center',
|
|
367
|
-
justifyContent: 'center',
|
|
368
|
-
flexWrap: 'wrap',
|
|
369
|
-
gap: 8,
|
|
370
|
-
paddingHorizontal: 16,
|
|
371
|
-
paddingTop: 12,
|
|
372
|
-
paddingBottom: react_native_1.Platform.OS === 'ios' ? 36 : 20,
|
|
373
|
-
borderTopWidth: 1,
|
|
374
|
-
borderTopColor: AppColors_1.AppColors.borderGlassLight,
|
|
375
|
-
backgroundColor: AppColors_1.AppColors.headerGlassDark,
|
|
376
|
-
},
|
|
377
|
-
actionBtn: {
|
|
378
|
-
flexDirection: 'row',
|
|
379
|
-
alignItems: 'center',
|
|
380
|
-
gap: 6,
|
|
381
|
-
paddingHorizontal: 14,
|
|
382
|
-
paddingVertical: 9,
|
|
383
|
-
borderRadius: 8,
|
|
384
|
-
backgroundColor: AppColors_1.AppColors.whiteAlpha08,
|
|
385
|
-
borderWidth: 1,
|
|
386
|
-
borderColor: AppColors_1.AppColors.whiteAlpha15,
|
|
387
|
-
},
|
|
388
|
-
actionText: {
|
|
389
|
-
fontFamily: AppFonts_1.AppFonts.interMedium,
|
|
390
|
-
fontSize: 12,
|
|
391
|
-
color: AppColors_1.AppColors.white,
|
|
392
|
-
},
|
|
393
|
-
});
|
|
166
|
+
</react_native_1.Modal>};exports.MediaPreviewModal=MediaPreviewModal;const previewStyles=react_native_1.StyleSheet.create({overlay:{flex:1,backgroundColor:"#090D16FA",justifyContent:"space-between"},header:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:16,paddingTop:react_native_1.Platform.OS==="ios"?52:20,paddingBottom:14,borderBottomWidth:1,borderBottomColor:AppColors_1.AppColors.borderGlassLight,backgroundColor:AppColors_1.AppColors.headerGlassDark},headerLeft:{flexDirection:"row",alignItems:"center",gap:10,flex:1,minWidth:0,marginRight:10},headerRight:{flexDirection:"row",alignItems:"center",gap:8},badge:{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:8,paddingVertical:4,borderRadius:6,borderWidth:1},badgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,letterSpacing:.4},title:{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:13.5,color:AppColors_1.AppColors.white},subtitle:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:11,color:AppColors_1.AppColors.whiteAlpha60,marginTop:1},headerActionBtn:{width:32,height:32,borderRadius:16,backgroundColor:AppColors_1.AppColors.whiteAlpha12,borderWidth:1,borderColor:AppColors_1.AppColors.whiteAlpha20,alignItems:"center",justifyContent:"center"},headerShareBtn:{width:32,height:32,borderRadius:16,backgroundColor:`${AppColors_1.AppColors.sky400}20`,borderWidth:1,borderColor:`${AppColors_1.AppColors.sky400}60`,alignItems:"center",justifyContent:"center"},headerDeleteBtn:{width:32,height:32,borderRadius:16,backgroundColor:`${AppColors_1.AppColors.red500}20`,borderWidth:1,borderColor:`${AppColors_1.AppColors.red500}60`,alignItems:"center",justifyContent:"center"},headerIconBtn:{width:32,height:32,borderRadius:16,backgroundColor:AppColors_1.AppColors.whiteAlpha12,borderWidth:1,borderColor:AppColors_1.AppColors.whiteAlpha20,alignItems:"center",justifyContent:"center"},stage:{flex:1,alignItems:"center",justifyContent:"center",paddingHorizontal:10,paddingTop:10,paddingBottom:10},stageExpanded:{paddingHorizontal:0,paddingTop:0,paddingBottom:0},previewCard:{flex:1,width:"100%",borderRadius:14,overflow:"hidden",backgroundColor:"#05070D",borderWidth:1,borderColor:AppColors_1.AppColors.borderGlassLight,alignItems:"center",justifyContent:"center",position:"relative"},previewCardExpanded:{borderRadius:0,borderWidth:0},image:{width:"100%",height:"100%"},videoImageOverlay:{...react_native_1.StyleSheet.absoluteFillObject,backgroundColor:"rgba(5, 7, 13, 0.25)"},videoFallbackBackdrop:{flex:1,width:"100%",backgroundColor:"#070C18",alignItems:"center",justifyContent:"center",gap:8},videoFallbackGlow:{position:"absolute",width:140,height:140,borderRadius:70,backgroundColor:`${AppColors_1.AppColors.sky400}18`},videoFallbackTitle:{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:15,color:AppColors_1.AppColors.white,marginTop:8},videoFallbackSubtitle:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:12,color:AppColors_1.AppColors.whiteAlpha60},centerPlayOverlay:{position:"absolute",alignItems:"center",justifyContent:"center",gap:8},centerPlayCircle:{width:64,height:64,borderRadius:32,backgroundColor:`${AppColors_1.AppColors.sky400}E0`,alignItems:"center",justifyContent:"center",paddingLeft:3,shadowColor:AppColors_1.AppColors.sky400,shadowOffset:{width:0,height:4},shadowOpacity:.5,shadowRadius:10,elevation:8},centerPlayText:{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:13,color:AppColors_1.AppColors.white,letterSpacing:.3,textShadowColor:"rgba(0,0,0,0.7)",textShadowOffset:{width:0,height:1},textShadowRadius:3},videoBadgeOverlay:{position:"absolute",bottom:12,left:12},playPill:{flexDirection:"row",alignItems:"center",gap:6,backgroundColor:`${AppColors_1.AppColors.slate900}D9`,paddingHorizontal:10,paddingVertical:5,borderRadius:16,borderWidth:1,borderColor:AppColors_1.AppColors.whiteAlpha20},playPillText:{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:11,color:AppColors_1.AppColors.white,letterSpacing:.3},floatingMetaBadge:{position:"absolute",bottom:10,backgroundColor:`${AppColors_1.AppColors.slate900}D9`,paddingHorizontal:10,paddingVertical:4.5,borderRadius:8,borderWidth:1,borderColor:AppColors_1.AppColors.whiteAlpha15,alignItems:"center",justifyContent:"center"},floatingMetaText:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:10.5,color:AppColors_1.AppColors.slate200,letterSpacing:.2},videoControlsPanel:{paddingHorizontal:16,paddingTop:8,paddingBottom:6,backgroundColor:AppColors_1.AppColors.headerGlassDark,borderTopWidth:1,borderTopColor:AppColors_1.AppColors.borderGlassLight,gap:8},progressSection:{flexDirection:"row",alignItems:"center",gap:10},timeLabel:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:11,color:AppColors_1.AppColors.whiteAlpha60,minWidth:42},progressTrack:{flex:1,height:6,borderRadius:3,backgroundColor:AppColors_1.AppColors.whiteAlpha15,justifyContent:"center",position:"relative"},progressFill:{height:"100%",borderRadius:3,backgroundColor:AppColors_1.AppColors.sky400},scrubberThumb:{position:"absolute",width:12,height:12,borderRadius:6,backgroundColor:AppColors_1.AppColors.white,borderWidth:2,borderColor:AppColors_1.AppColors.sky400,top:-3,marginLeft:-6},controlsRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:2},controlActionPill:{flexDirection:"row",alignItems:"center",gap:5,paddingHorizontal:10,paddingVertical:5,borderRadius:6,backgroundColor:`${AppColors_1.AppColors.sky400}18`,borderWidth:1,borderColor:`${AppColors_1.AppColors.sky400}50`},controlActionText:{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:11.5},speedGroup:{flexDirection:"row",alignItems:"center",backgroundColor:AppColors_1.AppColors.whiteAlpha08,borderRadius:6,borderWidth:1,borderColor:AppColors_1.AppColors.whiteAlpha12,padding:2,gap:2},speedBtn:{paddingHorizontal:7,paddingVertical:3,borderRadius:4},speedBtnActive:{backgroundColor:`${AppColors_1.AppColors.sky400}30`},speedText:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:10.5,color:AppColors_1.AppColors.whiteAlpha60},speedTextActive:{color:AppColors_1.AppColors.sky400,fontFamily:AppFonts_1.AppFonts.interBold},loopPill:{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:8,paddingVertical:5,borderRadius:6,backgroundColor:AppColors_1.AppColors.whiteAlpha08,borderWidth:1,borderColor:AppColors_1.AppColors.whiteAlpha12},loopPillActive:{backgroundColor:`${AppColors_1.AppColors.sky400}18`,borderColor:`${AppColors_1.AppColors.sky400}50`},loopText:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:10.5,color:AppColors_1.AppColors.whiteAlpha60},loopTextActive:{color:AppColors_1.AppColors.sky400,fontFamily:AppFonts_1.AppFonts.interSemiBold},footer:{flexDirection:"row",alignItems:"center",justifyContent:"center",flexWrap:"wrap",gap:8,paddingHorizontal:16,paddingTop:8,paddingBottom:react_native_1.Platform.OS==="ios"?34:16,borderTopWidth:1,borderTopColor:AppColors_1.AppColors.borderGlassLight,backgroundColor:AppColors_1.AppColors.headerGlassDark},actionBtn:{flexDirection:"row",alignItems:"center",gap:6,paddingHorizontal:16,paddingVertical:9,borderRadius:8,backgroundColor:AppColors_1.AppColors.whiteAlpha08,borderWidth:1,borderColor:AppColors_1.AppColors.whiteAlpha15},actionText:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:12,color:AppColors_1.AppColors.white}});
|
|
@@ -1,12 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const react_1 = require("react");
|
|
4
|
-
const native_1 = require("@react-navigation/native");
|
|
5
|
-
const NavigationTracker = ({ onStateChange }) => {
|
|
6
|
-
const navState = (0, native_1.useNavigationState)(state => state);
|
|
7
|
-
(0, react_1.useEffect)(() => {
|
|
8
|
-
onStateChange(navState);
|
|
9
|
-
}, [navState, onStateChange]);
|
|
10
|
-
return null;
|
|
11
|
-
};
|
|
12
|
-
exports.default = NavigationTracker;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const react_1=require("react"),native_1=require("@react-navigation/native"),NavigationTracker=({onStateChange:e})=>{const t=(0,native_1.useNavigationState)(r=>r);return(0,react_1.useEffect)(()=>{e(t)},[t,e]),null};exports.default=NavigationTracker;
|