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,552 +1,198 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
{ key: 'feature', label: 'Feature Request', icon: '✨' },
|
|
50
|
-
{ key: 'performance', label: 'Performance', icon: '⚡' },
|
|
51
|
-
{ key: 'help', label: 'Support / Help', icon: '❓' },
|
|
52
|
-
];
|
|
53
|
-
const RATING_LABELS = ['', 'Poor', 'Fair', 'Good', 'Very Good', 'Excellent!'];
|
|
54
|
-
const FeedbackModal = ({ onClose }) => {
|
|
55
|
-
const [category, setCategory] = (0, react_1.useState)('feedback');
|
|
56
|
-
const [rating, setRating] = (0, react_1.useState)(5);
|
|
57
|
-
const [subject, setSubject] = (0, react_1.useState)('');
|
|
58
|
-
const [message, setMessage] = (0, react_1.useState)('');
|
|
59
|
-
const [showDiagnostics, setShowDiagnostics] = (0, react_1.useState)(false);
|
|
60
|
-
const [isSending, setIsSending] = (0, react_1.useState)(false);
|
|
61
|
-
const [copiedDraft, setCopiedDraft] = (0, react_1.useState)(false);
|
|
62
|
-
(0, react_1.useEffect)(() => {
|
|
63
|
-
(0, telemetry_1.trackTelemetryEvent)('feedback_modal_opened', { category });
|
|
64
|
-
}, []);
|
|
65
|
-
const appName = (0, helpers_1.getAppName)() || 'React Native App';
|
|
66
|
-
const bundleId = (0, helpers_1.getBundleIdentifier)() || 'unknown';
|
|
67
|
-
const appVersion = (0, helpers_1.getAppVersionAndBuild)() || '1.0.0';
|
|
68
|
-
const { width, height } = react_native_1.Dimensions.get('window');
|
|
69
|
-
const getDiagnosticsText = () => {
|
|
70
|
-
return [
|
|
71
|
-
`• Package: react-native-inapp-inspector@${version_1.LIB_VERSION}`,
|
|
72
|
-
`• Platform: ${react_native_1.Platform.OS.toUpperCase()} (${react_native_1.Platform.Version})`,
|
|
73
|
-
`• App: ${appName} (${bundleId}) v${appVersion}`,
|
|
74
|
-
`• Screen: ${Math.round(width)} x ${Math.round(height)} (Scale ${react_native_1.PixelRatio.get()})`,
|
|
75
|
-
`• Timestamp: ${new Date().toISOString()}`,
|
|
76
|
-
].join('\n');
|
|
77
|
-
};
|
|
78
|
-
const buildEmailDraft = () => {
|
|
79
|
-
const activeCat = CATEGORIES.find(c => c.key === category)?.label || category;
|
|
80
|
-
const emailSubject = `[In-App Inspector] [${activeCat}] ${subject.trim() || 'User Feedback'}`;
|
|
81
|
-
const bodyLines = [
|
|
82
|
-
`Category: ${activeCat}`,
|
|
83
|
-
`Rating: ${rating} / 5 (${RATING_LABELS[rating] || ''})`,
|
|
84
|
-
...(subject.trim() ? [`Subject: ${subject.trim()}`] : []),
|
|
85
|
-
'',
|
|
86
|
-
'Feedback / Message:',
|
|
87
|
-
message.trim() || '(No message provided)',
|
|
88
|
-
'',
|
|
89
|
-
'----------------------------------------',
|
|
90
|
-
'System & Diagnostic Info:',
|
|
91
|
-
getDiagnosticsText(),
|
|
92
|
-
'----------------------------------------',
|
|
93
|
-
];
|
|
94
|
-
return {
|
|
95
|
-
activeCat,
|
|
96
|
-
subject: emailSubject,
|
|
97
|
-
body: bodyLines.join('\n'),
|
|
98
|
-
};
|
|
99
|
-
};
|
|
100
|
-
const handleCopyDraft = () => {
|
|
101
|
-
const draft = buildEmailDraft();
|
|
102
|
-
const fullText = `To: ${DEVELOPER_EMAIL}\nSubject: ${draft.subject}\n\n${draft.body}`;
|
|
103
|
-
(0, helpers_1.copyToClipboard)(fullText, 'Email Draft & Diagnostics');
|
|
104
|
-
setCopiedDraft(true);
|
|
105
|
-
setTimeout(() => setCopiedDraft(false), 2000);
|
|
106
|
-
(0, helpers_1.showToast)('Feedback draft copied to clipboard');
|
|
107
|
-
};
|
|
108
|
-
const handleSendEmail = async () => {
|
|
109
|
-
if (isSending)
|
|
110
|
-
return;
|
|
111
|
-
setIsSending(true);
|
|
112
|
-
try {
|
|
113
|
-
const draft = buildEmailDraft();
|
|
114
|
-
const mailtoUrl = `mailto:${DEVELOPER_EMAIL}?subject=${encodeURIComponent(draft.subject)}&body=${encodeURIComponent(draft.body)}`;
|
|
115
|
-
(0, telemetry_1.trackTelemetryEvent)('feedback_submitted', {
|
|
116
|
-
category,
|
|
117
|
-
rating,
|
|
118
|
-
has_subject: Boolean(subject.trim()),
|
|
119
|
-
has_message: Boolean(message.trim()),
|
|
120
|
-
});
|
|
121
|
-
let opened = false;
|
|
122
|
-
try {
|
|
123
|
-
const canOpen = await react_native_1.Linking.canOpenURL(mailtoUrl);
|
|
124
|
-
if (canOpen) {
|
|
125
|
-
await react_native_1.Linking.openURL(mailtoUrl);
|
|
126
|
-
opened = true;
|
|
127
|
-
}
|
|
128
|
-
else {
|
|
129
|
-
await react_native_1.Linking.openURL(mailtoUrl);
|
|
130
|
-
opened = true;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
catch (err) {
|
|
134
|
-
opened = false;
|
|
135
|
-
}
|
|
136
|
-
if (opened) {
|
|
137
|
-
(0, helpers_1.showToast)('Opening mail client...');
|
|
138
|
-
onClose();
|
|
139
|
-
}
|
|
140
|
-
else {
|
|
141
|
-
const fullDraft = `To: ${DEVELOPER_EMAIL}\nSubject: ${draft.subject}\n\n${draft.body}`;
|
|
142
|
-
(0, helpers_1.copyToClipboard)(fullDraft, 'Feedback Draft');
|
|
143
|
-
react_native_1.Alert.alert('Email Client Not Available', `Your feedback and diagnostics have been copied to the clipboard!\n\nYou can paste and send directly to:\n${DEVELOPER_EMAIL}`, [
|
|
144
|
-
{
|
|
145
|
-
text: 'Copy Email Address',
|
|
146
|
-
onPress: () => {
|
|
147
|
-
(0, helpers_1.copyToClipboard)(DEVELOPER_EMAIL, 'Email Address');
|
|
148
|
-
(0, helpers_1.showToast)('Email address copied!');
|
|
149
|
-
},
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
text: 'Done',
|
|
153
|
-
style: 'default',
|
|
154
|
-
onPress: onClose,
|
|
155
|
-
},
|
|
156
|
-
]);
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
catch (err) {
|
|
160
|
-
console.warn('[FeedbackModal] Error sending email:', err);
|
|
161
|
-
}
|
|
162
|
-
finally {
|
|
163
|
-
setIsSending(false);
|
|
164
|
-
}
|
|
165
|
-
};
|
|
166
|
-
return (<react_native_1.View style={styles.container}>
|
|
167
|
-
|
|
168
|
-
<react_native_1.View style={styles.bannerBar}>
|
|
169
|
-
<react_native_1.View style={styles.bannerIconBox}>
|
|
170
|
-
<NetworkIcons_1.HeadphonesIcon size={18} color={AppColors_1.AppColors.purple}/>
|
|
171
|
-
</react_native_1.View>
|
|
172
|
-
<react_native_1.View style={{ flex: 1 }}>
|
|
173
|
-
<react_native_1.Text style={styles.bannerTitle}>Share your feedback or report an issue</react_native_1.Text>
|
|
174
|
-
<react_native_1.Text style={styles.bannerSub}>
|
|
175
|
-
Direct communication with the maintainers. Diagnostic info is auto-attached.
|
|
1
|
+
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(r,o,l,n){n===void 0&&(n=l);var i=Object.getOwnPropertyDescriptor(o,l);(!i||("get"in i?!o.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return o[l]}}),Object.defineProperty(r,n,i)}):(function(r,o,l,n){n===void 0&&(n=l),r[n]=o[l]})),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?(function(r,o){Object.defineProperty(r,"default",{enumerable:!0,value:o})}):function(r,o){r.default=o}),__importStar=this&&this.__importStar||(function(){var r=function(o){return r=Object.getOwnPropertyNames||function(l){var n=[];for(var i in l)Object.prototype.hasOwnProperty.call(l,i)&&(n[n.length]=i);return n},r(o)};return function(o){if(o&&o.__esModule)return o;var l={};if(o!=null)for(var n=r(o),i=0;i<n.length;i++)n[i]!=="default"&&__createBinding(l,o,n[i]);return __setModuleDefault(l,o),l}})(),__importDefault=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.FeedbackModal=void 0;const react_1=__importStar(require("react")),react_native_1=require("react-native"),react_native_svg_1=__importStar(require("react-native-svg")),AppColors_1=require("../../styles/AppColors"),AppFonts_1=require("../../styles/AppFonts"),TouchableScale_1=__importDefault(require("../TouchableScale")),version_1=require("../../constants/version"),helpers_1=require("../../helpers"),telemetry_1=require("../../helpers/telemetry"),NativeInspector_1=require("../../native/NativeInspector"),NetworkIcons_1=require("../NetworkIcons"),DEVELOPER_EMAIL="vengatmacuser@gmail.com",GITHUB_REPO_URL="https://github.com/vengatmacuser/react-native-inapp-inspector",INSPECTOR_MODULES=[{id:"apis",name:"Network (APIs)",category:"Core Inspector",icon:"\u{1F310}",description:"HTTP/HTTPS requests, WebSocket, status codes & latency",color:"#6366F1",quickChips:["cURL / HAR Export","Requests failing / missing","GraphQL query filter","Response format issue","SSL pinning / certs","Slow API response alerts"]},{id:"logs",name:"Console Logs",category:"Core Inspector",icon:"\u{1F4DD}",description:"console.log, warn, error, trace & regex search",color:"#8B5CF6",quickChips:["Log regex search / filter","Stack trace symbolication","Error group collapse","Custom tag / color highlight","High log spam performance"]},{id:"redux",name:"Redux Inspector",category:"State Management",icon:"\u269B\uFE0F",description:"Redux store slices, action dispatch history & state diff",color:"#7C3AED",quickChips:["Action time-travel / replay","State slice search & diff","Auto action logger","Persistence / rehydration","Large state tree lag"]},{id:"analytics",name:"Analytics Logger",category:"Telemetry",icon:"\u{1F4CA}",description:"Firebase analytics & custom telemetry event tracking",color:"#F59E0B",quickChips:["Firebase auto-interceptor","Custom event param view","Event export to CSV / JSON","Filter by event name"]},{id:"crash",name:"Crash Protection",category:"Diagnostics",icon:"\u{1F4A5}",description:"Unhandled exceptions, fatal crash captures & stack trace",color:"#EF4444",quickChips:["Auto screenshot on crash","Native crash reporting","Symbolicated stack trace","Error boundary recovery"]},{id:"performance",name:"Performance Tracker",category:"Diagnostics",icon:"\u26A1",description:"FPS monitor, memory footprint, CPU & render timing",color:"#10B981",quickChips:["FPS drop alerts","Memory leak detection","Slow component render timings","Screen transition metrics"]},{id:"bundle",name:"Bundle Analyzer",category:"Optimization",icon:"\u{1F4E6}",description:"Hermes JS bundle visualizer & package asset weight",color:"#3B82F6",quickChips:["Package tree visualizer","Duplicate dependency warning","Asset size breakdown","Sourcemap integration"]},{id:"storage",name:"Storage Explorer",category:"Storage",icon:"\u{1F4BE}",description:"AsyncStorage, MMKV & local key-value store viewer",color:"#06B6D4",quickChips:["AsyncStorage live edit","MMKV encrypted keys","Clear storage cache","Key search & filter"]},{id:"capture",name:"Screen Capture",category:"Media",icon:"\u{1F4F8}",description:"High-res screenshots, video & animated GIF recording",color:"#EC4899",quickChips:["GIF conversion resolution","Audio recording option","Auto-hide inspector in shots","Instant media preview"]},{id:"launcher",name:"FAB Launcher & UI",category:"Interface",icon:"\u{1F680}",description:"Floating trigger, gestures, dark mode & modal themes",color:"#D946EF",quickChips:["Draggable FAB positioning","Custom dark / light theme","Font scaling & line heights","Custom app header logo"]},{id:"general",name:"Entire Inspector / General",category:"General",icon:"\u2728",description:"General feedback, documentation, new ideas & support",color:"#64748B",quickChips:["Love this tool! \u{1F680}","Super easy integration \u{1F6E0}\uFE0F","Documentation clarification \u{1F4D6}","Feature roadmap suggestion \u{1F5FA}\uFE0F"]}],CATEGORIES=[{key:"feedback",label:"Feedback",icon:"\u{1F4AC}",color:"#8B5CF6",bgColor:"#8B5CF618"},{key:"bug",label:"Bug Report",icon:"\u{1F41B}",color:"#EF4444",bgColor:"#EF444418"},{key:"feature",label:"Feature Request",icon:"\u2728",color:"#F59E0B",bgColor:"#F59E0B18"},{key:"performance",label:"Performance",icon:"\u26A1",color:"#10B981",bgColor:"#10B98118"},{key:"help",label:"Support / Help",icon:"\u2753",color:"#3B82F6",bgColor:"#3B82F618"}],MOODS=[{value:1,emoji:"\u{1F621}",label:"Frustrated",color:"#EF4444"},{value:2,emoji:"\u{1F610}",label:"Okay",color:"#F59E0B"},{value:3,emoji:"\u{1F642}",label:"Good",color:"#10B981"},{value:4,emoji:"\u{1F929}",label:"Great",color:"#8B5CF6"},{value:5,emoji:"\u{1F680}",label:"Loving it!",color:"#EC4899"}],GitHubIcon=({size:r=14,color:o=AppColors_1.AppColors.white})=><react_native_svg_1.default width={r}height={r}viewBox="0 0 24 24"fill={o}>
|
|
2
|
+
<react_native_svg_1.Path d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z"/>
|
|
3
|
+
</react_native_svg_1.default>,FeedbackModal=({onClose:r})=>{const[o,l]=(0,react_1.useState)("apis"),[n,i]=(0,react_1.useState)(!1),[g,C]=(0,react_1.useState)(""),[u,I]=(0,react_1.useState)("feedback"),[s,h]=(0,react_1.useState)([]),[m,F]=(0,react_1.useState)(5),[y,V]=(0,react_1.useState)(""),[f,R]=(0,react_1.useState)(!1),[_,x]=(0,react_1.useState)(!1),[b,w]=(0,react_1.useState)(!1);(0,react_1.useEffect)(()=>{(0,telemetry_1.trackTelemetryEvent)("feedback_modal_opened",{category:u,module:o})},[]);const a=(0,react_1.useMemo)(()=>INSPECTOR_MODULES.find(e=>e.id===o)||INSPECTOR_MODULES[0],[o]),S=(0,react_1.useMemo)(()=>{const e=g.trim().toLowerCase();return e?INSPECTOR_MODULES.filter(t=>t.name.toLowerCase().includes(e)||t.category.toLowerCase().includes(e)||t.description.toLowerCase().includes(e)):INSPECTOR_MODULES},[g]),v=(0,react_1.useMemo)(()=>CATEGORIES.find(e=>e.key===u)||CATEGORIES[0],[u]),P=(0,react_1.useMemo)(()=>a.quickChips,[a]),k=(0,helpers_1.getAppName)()||"React Native App",O=(0,helpers_1.getBundleIdentifier)()||"unknown",A=(0,helpers_1.getAppVersionAndBuild)()?.formatted||"1.0.0",{width:D,height:z}=react_native_1.Dimensions.get("window"),B=()=>[`\u2022 Module Context: ${a.name} (${a.category})`,`\u2022 Package: react-native-inapp-inspector@${version_1.LIB_VERSION}`,`\u2022 Platform: ${react_native_1.Platform.OS.toUpperCase()} (${react_native_1.Platform.Version})`,`\u2022 App: ${k} (${O}) v${A}`,`\u2022 Screen: ${Math.round(D)} x ${Math.round(z)} (Scale ${react_native_1.PixelRatio.get()})`,`\u2022 Timestamp: ${new Date().toISOString()}`].join(`
|
|
4
|
+
`),H=e=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),h(t=>t.includes(e)?t.filter(c=>c!==e):[...t,e])},E=e=>{(0,NativeInspector_1.triggerNativeHaptic)("medium"),l(e.id),i(!1),C(""),h([])},L=e=>{(0,NativeInspector_1.triggerNativeHaptic)("medium"),I(e)},T=()=>{const e=MOODS.find(p=>p.value===m)||MOODS[4],t=s.length>0?s.join(", "):"General thoughts",c=`[In-App Inspector] [${a.name}] [${v.label}] ${t.slice(0,50)}`,d=[`\u{1F4E6} Module: ${a.name} (${a.category})`,`\u{1F3AF} Type: ${v.label}`,`\u{1F31F} Mood / Experience: ${e.emoji} ${e.label} (${m}/5)`,...s.length>0?["","\u{1F4CC} Key Highlights / Items:",...s.map(p=>` \u2022 ${p}`)]:[],...y.trim()?["","\u{1F4DD} Additional Notes:",y.trim()]:[],"","----------------------------------------","\u26A1 System & Diagnostic Info (Auto-attached):",B(),"----------------------------------------"];return{subject:c,body:d.join(`
|
|
5
|
+
`),activeMood:e}},$=()=>{(0,NativeInspector_1.triggerNativeHaptic)("success");const{subject:e,body:t}=T(),c=`To: ${DEVELOPER_EMAIL}
|
|
6
|
+
Subject: ${e}
|
|
7
|
+
|
|
8
|
+
${t}`;(0,helpers_1.copyToClipboard)(c,"Feedback Draft & Diagnostics"),w(!0),setTimeout(()=>w(!1),2e3),(0,helpers_1.showToast)("Feedback draft & diagnostics copied to clipboard")},M=async()=>{(0,NativeInspector_1.triggerNativeHaptic)("medium");try{const{subject:e,body:t}=T(),c=encodeURIComponent(e),d=encodeURIComponent(t),p=`${GITHUB_REPO_URL}/issues/new?title=${c}&body=${d}`;await react_native_1.Linking.openURL(p),(0,telemetry_1.trackTelemetryEvent)("feedback_github_opened",{category:u,module:o,mood:m})}catch{(0,helpers_1.showToast)("Could not open GitHub browser")}},j=async()=>{if(!_){x(!0),(0,NativeInspector_1.triggerNativeHaptic)("medium");try{const{subject:e,body:t}=T(),c=`mailto:${DEVELOPER_EMAIL}?subject=${encodeURIComponent(e)}&body=${encodeURIComponent(t)}`;(0,telemetry_1.trackTelemetryEvent)("feedback_submitted",{category:u,module:o,mood:m,chips_count:s.length,has_custom_note:!!y.trim()});let d=!1;try{await react_native_1.Linking.openURL(c),d=!0}catch{d=!1}if(d)(0,helpers_1.showToast)("Opening mail client..."),r();else{const p=`To: ${DEVELOPER_EMAIL}
|
|
9
|
+
Subject: ${e}
|
|
10
|
+
|
|
11
|
+
${t}`;(0,helpers_1.copyToClipboard)(p,"Feedback Draft"),react_native_1.Alert.alert("Email Client Not Available",`Your feedback and diagnostics have been copied to clipboard!
|
|
12
|
+
|
|
13
|
+
You can paste and send directly to:
|
|
14
|
+
${DEVELOPER_EMAIL}`,[{text:"Copy Email Address",onPress:()=>{(0,helpers_1.copyToClipboard)(DEVELOPER_EMAIL,"Email Address"),(0,helpers_1.showToast)("Email address copied!")}},{text:"Done",style:"default",onPress:r}])}}catch(e){console.warn("[FeedbackModal] Error sending email:",e)}finally{x(!1)}}};return<react_native_1.View style={styles.container}>
|
|
15
|
+
<react_native_1.ScrollView style={styles.scrollContent}contentContainerStyle={styles.scrollInner}showsVerticalScrollIndicator={!1}keyboardShouldPersistTaps="handled">
|
|
16
|
+
|
|
17
|
+
<react_native_1.Text style={styles.sectionLabel}>1. TARGET MODULE</react_native_1.Text>
|
|
18
|
+
|
|
19
|
+
<TouchableScale_1.default onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),i(!0)}}style={styles.moduleTriggerCard}>
|
|
20
|
+
<react_native_1.View style={styles.moduleTriggerLeft}>
|
|
21
|
+
<react_native_1.View style={[styles.moduleIconBox,{backgroundColor:`${a.color}1C`}]}>
|
|
22
|
+
<react_native_1.Text style={styles.moduleIconText}>{a.icon}</react_native_1.Text>
|
|
23
|
+
</react_native_1.View>
|
|
24
|
+
<react_native_1.View style={{flex:1,minWidth:0}}>
|
|
25
|
+
<react_native_1.View style={styles.moduleNameRow}>
|
|
26
|
+
<react_native_1.Text style={styles.moduleNameText}>{a.name}</react_native_1.Text>
|
|
27
|
+
<react_native_1.View style={[styles.moduleCategoryBadge,{backgroundColor:`${a.color}18`}]}>
|
|
28
|
+
<react_native_1.Text style={[styles.moduleCategoryBadgeText,{color:a.color}]}>
|
|
29
|
+
{a.category}
|
|
30
|
+
</react_native_1.Text>
|
|
31
|
+
</react_native_1.View>
|
|
32
|
+
</react_native_1.View>
|
|
33
|
+
<react_native_1.Text style={styles.moduleDescText}numberOfLines={1}>
|
|
34
|
+
{a.description}
|
|
35
|
+
</react_native_1.Text>
|
|
36
|
+
</react_native_1.View>
|
|
37
|
+
</react_native_1.View>
|
|
38
|
+
|
|
39
|
+
<react_native_1.View style={styles.changeBadge}>
|
|
40
|
+
<react_native_1.Text style={styles.changeBadgeText}>Change</react_native_1.Text>
|
|
41
|
+
<NetworkIcons_1.ChevronDownIcon size={11}color={AppColors_1.AppColors.purple}/>
|
|
42
|
+
</react_native_1.View>
|
|
43
|
+
</TouchableScale_1.default>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
<react_native_1.View style={styles.sectionHeaderRow}>
|
|
47
|
+
<react_native_1.Text style={styles.sectionLabel}>
|
|
48
|
+
2. QUICK PRESETS FOR {a.name.toUpperCase()}
|
|
176
49
|
</react_native_1.Text>
|
|
50
|
+
{s.length>0&&<react_native_1.TouchableOpacity onPress={()=>h([])}>
|
|
51
|
+
<react_native_1.Text style={styles.clearChipsText}>Clear</react_native_1.Text>
|
|
52
|
+
</react_native_1.TouchableOpacity>}
|
|
53
|
+
</react_native_1.View>
|
|
54
|
+
|
|
55
|
+
<react_native_1.View style={styles.chipsContainer}>
|
|
56
|
+
{P.map(e=>{const t=s.includes(e);return<TouchableScale_1.default key={e}onPress={()=>H(e)}style={[styles.presetChip,t&&[styles.presetChipSelected,{borderColor:a.color,backgroundColor:`${a.color}18`}]]}>
|
|
57
|
+
<react_native_1.Text style={[styles.presetChipCheck,t&&{color:a.color}]}>
|
|
58
|
+
{t?"\u2713":"+"}
|
|
59
|
+
</react_native_1.Text>
|
|
60
|
+
<react_native_1.Text style={[styles.presetChipText,t&&[styles.presetChipTextSelected,{color:a.color}]]}>
|
|
61
|
+
{e}
|
|
62
|
+
</react_native_1.Text>
|
|
63
|
+
</TouchableScale_1.default>})}
|
|
177
64
|
</react_native_1.View>
|
|
178
|
-
</react_native_1.View>
|
|
179
65
|
|
|
180
|
-
<react_native_1.ScrollView style={styles.scrollContent} contentContainerStyle={styles.scrollInner} showsVerticalScrollIndicator={false} keyboardShouldPersistTaps="handled">
|
|
181
66
|
|
|
182
|
-
<react_native_1.Text style={styles.sectionLabel}>
|
|
67
|
+
<react_native_1.Text style={styles.sectionLabel}>3. SELECT TOPIC</react_native_1.Text>
|
|
183
68
|
<react_native_1.View style={styles.categoryGrid}>
|
|
184
|
-
{CATEGORIES.map(
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
isSelected && styles.categoryChipSelected,
|
|
189
|
-
]}>
|
|
190
|
-
<react_native_1.Text style={styles.categoryIcon}>{cat.icon}</react_native_1.Text>
|
|
191
|
-
<react_native_1.Text style={[
|
|
192
|
-
styles.categoryText,
|
|
193
|
-
isSelected && styles.categoryTextSelected,
|
|
194
|
-
]}>
|
|
195
|
-
{cat.label}
|
|
69
|
+
{CATEGORIES.map(e=>{const t=u===e.key;return<TouchableScale_1.default key={e.key}onPress={()=>L(e.key)}style={[styles.categoryChip,t&&{backgroundColor:e.bgColor,borderColor:e.color}]}>
|
|
70
|
+
<react_native_1.Text style={styles.categoryIcon}>{e.icon}</react_native_1.Text>
|
|
71
|
+
<react_native_1.Text style={[styles.categoryText,t&&{color:e.color,fontFamily:AppFonts_1.AppFonts.interBold}]}>
|
|
72
|
+
{e.label}
|
|
196
73
|
</react_native_1.Text>
|
|
197
|
-
</
|
|
198
|
-
})}
|
|
74
|
+
</TouchableScale_1.default>})}
|
|
199
75
|
</react_native_1.View>
|
|
200
76
|
|
|
201
77
|
|
|
202
|
-
<react_native_1.
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
{
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
const filled = star <= rating;
|
|
212
|
-
return (<react_native_1.TouchableOpacity key={star} activeOpacity={0.7} onPress={() => setRating(star)} style={styles.starTouch}>
|
|
213
|
-
<NetworkIcons_1.StarIcon size={26} color={filled ? '#FFB800' : AppColors_1.AppColors.grayTextWeak}/>
|
|
214
|
-
</react_native_1.TouchableOpacity>);
|
|
215
|
-
})}
|
|
78
|
+
<react_native_1.Text style={styles.sectionLabel}>4. HOW IS YOUR EXPERIENCE?</react_native_1.Text>
|
|
79
|
+
<react_native_1.View style={styles.moodCard}>
|
|
80
|
+
<react_native_1.View style={styles.moodRow}>
|
|
81
|
+
{MOODS.map(e=>{const t=m===e.value;return<TouchableScale_1.default key={e.value}onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),F(e.value)}}style={[styles.moodButton,t&&[styles.moodButtonSelected,{borderColor:e.color,backgroundColor:`${e.color}15`}]]}>
|
|
82
|
+
<react_native_1.Text style={styles.moodEmoji}>{e.emoji}</react_native_1.Text>
|
|
83
|
+
<react_native_1.Text style={[styles.moodLabel,t&&{color:e.color,fontFamily:AppFonts_1.AppFonts.interBold}]}>
|
|
84
|
+
{e.label}
|
|
85
|
+
</react_native_1.Text>
|
|
86
|
+
</TouchableScale_1.default>})}
|
|
216
87
|
</react_native_1.View>
|
|
217
88
|
</react_native_1.View>
|
|
218
89
|
|
|
219
90
|
|
|
220
|
-
<react_native_1.Text style={styles.sectionLabel}>
|
|
91
|
+
<react_native_1.Text style={styles.sectionLabel}>5. ADDITIONAL DETAILS (OPTIONAL)</react_native_1.Text>
|
|
221
92
|
<react_native_1.View style={styles.inputWrapper}>
|
|
222
|
-
<react_native_1.TextInput style={styles.textInput}
|
|
93
|
+
<react_native_1.TextInput style={styles.textInput}placeholder="Type any extra thoughts, steps to reproduce, or notes here..."placeholderTextColor={AppColors_1.AppColors.grayTextWeak}value={y}onChangeText={V}multiline numberOfLines={3}textAlignVertical="top"/>
|
|
223
94
|
</react_native_1.View>
|
|
224
95
|
|
|
225
96
|
|
|
226
|
-
<react_native_1.
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
<react_native_1.TouchableOpacity activeOpacity={0.8} onPress={() => setShowDiagnostics(!showDiagnostics)} style={styles.diagnosticsToggle}>
|
|
233
|
-
<react_native_1.View style={styles.diagnosticsHeader}>
|
|
234
|
-
<NetworkIcons_1.InfoCircleIcon size={14} color={AppColors_1.AppColors.purple}/>
|
|
235
|
-
<react_native_1.Text style={styles.diagnosticsTitle}>
|
|
236
|
-
Diagnostics & System Details (Auto-attached)
|
|
97
|
+
<react_native_1.TouchableOpacity activeOpacity={.8}onPress={()=>{(0,NativeInspector_1.triggerNativeHaptic)("light"),R(!f)}}style={styles.diagnosticsPill}>
|
|
98
|
+
<react_native_1.View style={styles.diagnosticsLeft}>
|
|
99
|
+
<NetworkIcons_1.InfoCircleIcon size={14}color={AppColors_1.AppColors.purple}/>
|
|
100
|
+
<react_native_1.Text style={styles.diagnosticsPillTitle}numberOfLines={1}>
|
|
101
|
+
{react_native_1.Platform.OS.toUpperCase()} {react_native_1.Platform.Version} • {k} v{A} (Auto-attached)
|
|
237
102
|
</react_native_1.Text>
|
|
238
103
|
</react_native_1.View>
|
|
239
104
|
<react_native_1.Text style={styles.diagnosticsArrow}>
|
|
240
|
-
{
|
|
105
|
+
{f?"\u25B2 Less":"\u25BC Details"}
|
|
241
106
|
</react_native_1.Text>
|
|
242
107
|
</react_native_1.TouchableOpacity>
|
|
243
108
|
|
|
244
|
-
{
|
|
245
|
-
<react_native_1.Text style={styles.diagnosticsText}>
|
|
246
|
-
|
|
247
|
-
</react_native_1.Text>
|
|
248
|
-
</react_native_1.View>)}
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
<react_native_1.View style={styles.recipientBadge}>
|
|
252
|
-
<react_native_1.Text style={styles.recipientText}>
|
|
253
|
-
📧 Emails to: <react_native_1.Text style={styles.recipientHighlight}>{DEVELOPER_EMAIL}</react_native_1.Text>
|
|
254
|
-
</react_native_1.Text>
|
|
255
|
-
</react_native_1.View>
|
|
109
|
+
{f&&<react_native_1.View style={styles.diagnosticsBox}>
|
|
110
|
+
<react_native_1.Text style={styles.diagnosticsText}>{B()}</react_native_1.Text>
|
|
111
|
+
</react_native_1.View>}
|
|
256
112
|
</react_native_1.ScrollView>
|
|
257
113
|
|
|
258
114
|
|
|
259
115
|
<react_native_1.View style={styles.footer}>
|
|
260
|
-
<react_native_1.
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
styles.
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
116
|
+
<react_native_1.View style={styles.footerLeft}>
|
|
117
|
+
<TouchableScale_1.default onPress={$}style={styles.actionPillBtn}>
|
|
118
|
+
{b?<NetworkIcons_1.CheckIcon size={14}color={AppColors_1.AppColors.emerald500}/>:<NetworkIcons_1.CopyIcon size={14}color={AppColors_1.AppColors.grayTextStrong}/>}
|
|
119
|
+
<react_native_1.Text style={[styles.actionPillText,b&&{color:AppColors_1.AppColors.emerald500}]}>
|
|
120
|
+
{b?"Copied!":"Copy"}
|
|
121
|
+
</react_native_1.Text>
|
|
122
|
+
</TouchableScale_1.default>
|
|
123
|
+
|
|
124
|
+
<TouchableScale_1.default onPress={M}style={[styles.actionPillBtn,styles.githubPillBtn]}>
|
|
125
|
+
<GitHubIcon size={13}color={AppColors_1.AppColors.primaryBlack}/>
|
|
126
|
+
<react_native_1.Text style={styles.actionPillText}>GitHub</react_native_1.Text>
|
|
127
|
+
</TouchableScale_1.default>
|
|
128
|
+
</react_native_1.View>
|
|
129
|
+
|
|
130
|
+
<TouchableScale_1.default onPress={j}style={styles.primarySubmitBtn}>
|
|
131
|
+
<NetworkIcons_1.SendIcon size={15}color={AppColors_1.AppColors.white}/>
|
|
132
|
+
<react_native_1.Text style={styles.primarySubmitBtnText}>
|
|
133
|
+
{_?"Sending...":"Send Feedback"}
|
|
267
134
|
</react_native_1.Text>
|
|
268
|
-
</
|
|
135
|
+
</TouchableScale_1.default>
|
|
136
|
+
</react_native_1.View>
|
|
269
137
|
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
138
|
+
|
|
139
|
+
<react_native_1.Modal visible={n}transparent={!0}animationType="fade"onRequestClose={()=>i(!1)}>
|
|
140
|
+
<react_native_1.View style={styles.modalOverlay}>
|
|
141
|
+
<react_native_1.TouchableOpacity style={styles.modalBackdrop}activeOpacity={1}onPress={()=>i(!1)}/>
|
|
142
|
+
<react_native_1.View style={styles.pickerModalContainer}>
|
|
143
|
+
|
|
144
|
+
<react_native_1.View style={styles.pickerHeader}>
|
|
145
|
+
<react_native_1.View style={{flex:1}}>
|
|
146
|
+
<react_native_1.Text style={styles.pickerHeaderTitle}>Select Target Module</react_native_1.Text>
|
|
147
|
+
<react_native_1.Text style={styles.pickerHeaderSub}>
|
|
148
|
+
Choose which inspector feature you want to report on
|
|
149
|
+
</react_native_1.Text>
|
|
150
|
+
</react_native_1.View>
|
|
151
|
+
<react_native_1.TouchableOpacity onPress={()=>i(!1)}hitSlop={12}style={styles.pickerCloseBtn}>
|
|
152
|
+
<NetworkIcons_1.CloseWhite size={12}/>
|
|
153
|
+
</react_native_1.TouchableOpacity>
|
|
154
|
+
</react_native_1.View>
|
|
274
155
|
|
|
275
|
-
|
|
276
|
-
<
|
|
277
|
-
|
|
278
|
-
{
|
|
279
|
-
|
|
280
|
-
|
|
156
|
+
|
|
157
|
+
<react_native_1.View style={styles.pickerSearchWrapper}>
|
|
158
|
+
<NetworkIcons_1.SearchIcon size={14}color={AppColors_1.AppColors.purple}/>
|
|
159
|
+
<react_native_1.TextInput style={styles.pickerSearchInput}placeholder="Search all 11 modules..."placeholderTextColor={AppColors_1.AppColors.grayTextWeak}value={g}onChangeText={C}autoFocus={!1}/>
|
|
160
|
+
{g.length>0&&<react_native_1.TouchableOpacity onPress={()=>C("")}hitSlop={10}>
|
|
161
|
+
<react_native_1.Text style={styles.pickerClearSearchText}>✕</react_native_1.Text>
|
|
162
|
+
</react_native_1.TouchableOpacity>}
|
|
163
|
+
</react_native_1.View>
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
<react_native_1.ScrollView style={styles.pickerListScroll}contentContainerStyle={{paddingBottom:20}}showsVerticalScrollIndicator={!1}keyboardShouldPersistTaps="handled">
|
|
167
|
+
{S.length===0?<react_native_1.View style={styles.emptySearchWrap}>
|
|
168
|
+
<react_native_1.Text style={styles.emptySearchText}>
|
|
169
|
+
No modules match "{g}"
|
|
170
|
+
</react_native_1.Text>
|
|
171
|
+
</react_native_1.View>:S.map(e=>{const t=e.id===o;return<TouchableScale_1.default key={e.id}onPress={()=>E(e)}style={[styles.pickerItemCard,t&&[styles.pickerItemCardSelected,{borderColor:e.color,backgroundColor:`${e.color}0E`}]]}>
|
|
172
|
+
<react_native_1.View style={[styles.pickerItemIconBox,{backgroundColor:`${e.color}1C`}]}>
|
|
173
|
+
<react_native_1.Text style={styles.moduleIconText}>{e.icon}</react_native_1.Text>
|
|
174
|
+
</react_native_1.View>
|
|
175
|
+
<react_native_1.View style={{flex:1,minWidth:0}}>
|
|
176
|
+
<react_native_1.View style={styles.pickerItemTitleRow}>
|
|
177
|
+
<react_native_1.Text style={[styles.pickerItemTitle,t&&{color:e.color,fontFamily:AppFonts_1.AppFonts.interBold}]}>
|
|
178
|
+
{e.name}
|
|
179
|
+
</react_native_1.Text>
|
|
180
|
+
<react_native_1.View style={[styles.moduleCategoryBadge,{backgroundColor:`${e.color}18`}]}>
|
|
181
|
+
<react_native_1.Text style={[styles.moduleCategoryBadgeText,{color:e.color}]}>
|
|
182
|
+
{e.category}
|
|
183
|
+
</react_native_1.Text>
|
|
184
|
+
</react_native_1.View>
|
|
185
|
+
</react_native_1.View>
|
|
186
|
+
<react_native_1.Text style={styles.pickerItemDesc}numberOfLines={2}>
|
|
187
|
+
{e.description}
|
|
188
|
+
</react_native_1.Text>
|
|
189
|
+
</react_native_1.View>
|
|
190
|
+
{t&&<react_native_1.View style={[styles.pickerItemCheck,{backgroundColor:`${e.color}25`}]}>
|
|
191
|
+
<NetworkIcons_1.CheckIcon size={12}color={e.color}/>
|
|
192
|
+
</react_native_1.View>}
|
|
193
|
+
</TouchableScale_1.default>})}
|
|
194
|
+
</react_native_1.ScrollView>
|
|
195
|
+
</react_native_1.View>
|
|
281
196
|
</react_native_1.View>
|
|
282
|
-
</react_native_1.
|
|
283
|
-
</react_native_1.View>);
|
|
284
|
-
};
|
|
285
|
-
exports.FeedbackModal = FeedbackModal;
|
|
286
|
-
const styles = react_native_1.StyleSheet.create({
|
|
287
|
-
container: {
|
|
288
|
-
flex: 1,
|
|
289
|
-
backgroundColor: AppColors_1.AppColors.primaryLight,
|
|
290
|
-
},
|
|
291
|
-
bannerBar: {
|
|
292
|
-
flexDirection: 'row',
|
|
293
|
-
alignItems: 'center',
|
|
294
|
-
gap: 10,
|
|
295
|
-
backgroundColor: `${AppColors_1.AppColors.purple}12`,
|
|
296
|
-
paddingHorizontal: 14,
|
|
297
|
-
paddingVertical: 10,
|
|
298
|
-
borderBottomWidth: 1,
|
|
299
|
-
borderBottomColor: `${AppColors_1.AppColors.purple}20`,
|
|
300
|
-
},
|
|
301
|
-
bannerIconBox: {
|
|
302
|
-
width: 32,
|
|
303
|
-
height: 32,
|
|
304
|
-
borderRadius: 8,
|
|
305
|
-
backgroundColor: `${AppColors_1.AppColors.purple}20`,
|
|
306
|
-
alignItems: 'center',
|
|
307
|
-
justifyContent: 'center',
|
|
308
|
-
},
|
|
309
|
-
bannerTitle: {
|
|
310
|
-
fontFamily: AppFonts_1.AppFonts.interSemiBold,
|
|
311
|
-
fontSize: 12.5,
|
|
312
|
-
color: AppColors_1.AppColors.purple,
|
|
313
|
-
},
|
|
314
|
-
bannerSub: {
|
|
315
|
-
fontFamily: AppFonts_1.AppFonts.interRegular,
|
|
316
|
-
fontSize: 10.5,
|
|
317
|
-
color: AppColors_1.AppColors.grayText,
|
|
318
|
-
marginTop: 1,
|
|
319
|
-
},
|
|
320
|
-
scrollContent: {
|
|
321
|
-
flex: 1,
|
|
322
|
-
},
|
|
323
|
-
scrollInner: {
|
|
324
|
-
paddingHorizontal: 16,
|
|
325
|
-
paddingTop: 12,
|
|
326
|
-
paddingBottom: 20,
|
|
327
|
-
},
|
|
328
|
-
sectionLabel: {
|
|
329
|
-
fontFamily: AppFonts_1.AppFonts.interSemiBold,
|
|
330
|
-
fontSize: 10.5,
|
|
331
|
-
color: AppColors_1.AppColors.grayText,
|
|
332
|
-
letterSpacing: 0.8,
|
|
333
|
-
marginBottom: 8,
|
|
334
|
-
marginTop: 10,
|
|
335
|
-
},
|
|
336
|
-
categoryGrid: {
|
|
337
|
-
flexDirection: 'row',
|
|
338
|
-
flexWrap: 'wrap',
|
|
339
|
-
gap: 8,
|
|
340
|
-
paddingBottom: 4,
|
|
341
|
-
},
|
|
342
|
-
categoryChip: {
|
|
343
|
-
flexDirection: 'row',
|
|
344
|
-
alignItems: 'center',
|
|
345
|
-
gap: 6,
|
|
346
|
-
paddingVertical: 7,
|
|
347
|
-
paddingHorizontal: 12,
|
|
348
|
-
borderRadius: 8,
|
|
349
|
-
backgroundColor: AppColors_1.AppColors.grayBackground,
|
|
350
|
-
borderWidth: 1,
|
|
351
|
-
borderColor: AppColors_1.AppColors.dividerColor,
|
|
352
|
-
},
|
|
353
|
-
categoryChipSelected: {
|
|
354
|
-
backgroundColor: `${AppColors_1.AppColors.purple}15`,
|
|
355
|
-
borderColor: AppColors_1.AppColors.purple,
|
|
356
|
-
},
|
|
357
|
-
categoryIcon: {
|
|
358
|
-
fontSize: 13,
|
|
359
|
-
},
|
|
360
|
-
categoryText: {
|
|
361
|
-
fontFamily: AppFonts_1.AppFonts.interMedium,
|
|
362
|
-
fontSize: 12,
|
|
363
|
-
color: AppColors_1.AppColors.grayText,
|
|
364
|
-
},
|
|
365
|
-
categoryTextSelected: {
|
|
366
|
-
color: AppColors_1.AppColors.purple,
|
|
367
|
-
fontFamily: AppFonts_1.AppFonts.interSemiBold,
|
|
368
|
-
},
|
|
369
|
-
ratingCard: {
|
|
370
|
-
backgroundColor: AppColors_1.AppColors.grayBackground,
|
|
371
|
-
borderRadius: 12,
|
|
372
|
-
padding: 12,
|
|
373
|
-
marginTop: 12,
|
|
374
|
-
borderWidth: 1,
|
|
375
|
-
borderColor: AppColors_1.AppColors.dividerColor,
|
|
376
|
-
},
|
|
377
|
-
ratingHeader: {
|
|
378
|
-
flexDirection: 'row',
|
|
379
|
-
justifyContent: 'space-between',
|
|
380
|
-
alignItems: 'center',
|
|
381
|
-
marginBottom: 8,
|
|
382
|
-
},
|
|
383
|
-
ratingTitle: {
|
|
384
|
-
fontFamily: AppFonts_1.AppFonts.interSemiBold,
|
|
385
|
-
fontSize: 12.5,
|
|
386
|
-
color: AppColors_1.AppColors.primaryBlack,
|
|
387
|
-
},
|
|
388
|
-
ratingBadge: {
|
|
389
|
-
fontFamily: AppFonts_1.AppFonts.interSemiBold,
|
|
390
|
-
fontSize: 11,
|
|
391
|
-
color: '#D97706',
|
|
392
|
-
backgroundColor: '#FEF3C7',
|
|
393
|
-
paddingHorizontal: 8,
|
|
394
|
-
paddingVertical: 2,
|
|
395
|
-
borderRadius: 6,
|
|
396
|
-
},
|
|
397
|
-
starsRow: {
|
|
398
|
-
flexDirection: 'row',
|
|
399
|
-
alignItems: 'center',
|
|
400
|
-
gap: 12,
|
|
401
|
-
paddingVertical: 4,
|
|
402
|
-
},
|
|
403
|
-
starTouch: {
|
|
404
|
-
padding: 2,
|
|
405
|
-
},
|
|
406
|
-
inputWrapper: {
|
|
407
|
-
backgroundColor: AppColors_1.AppColors.grayBackground,
|
|
408
|
-
borderRadius: 10,
|
|
409
|
-
borderWidth: 1,
|
|
410
|
-
borderColor: AppColors_1.AppColors.dividerColor,
|
|
411
|
-
paddingHorizontal: 12,
|
|
412
|
-
paddingVertical: 8,
|
|
413
|
-
},
|
|
414
|
-
textareaWrapper: {
|
|
415
|
-
minHeight: 88,
|
|
416
|
-
paddingVertical: 10,
|
|
417
|
-
},
|
|
418
|
-
textInput: {
|
|
419
|
-
fontFamily: AppFonts_1.AppFonts.interRegular,
|
|
420
|
-
fontSize: 13,
|
|
421
|
-
color: AppColors_1.AppColors.primaryBlack,
|
|
422
|
-
padding: 0,
|
|
423
|
-
},
|
|
424
|
-
textarea: {
|
|
425
|
-
height: 72,
|
|
426
|
-
},
|
|
427
|
-
diagnosticsToggle: {
|
|
428
|
-
flexDirection: 'row',
|
|
429
|
-
alignItems: 'center',
|
|
430
|
-
justifyContent: 'space-between',
|
|
431
|
-
backgroundColor: `${AppColors_1.AppColors.purple}10`,
|
|
432
|
-
borderRadius: 8,
|
|
433
|
-
paddingHorizontal: 12,
|
|
434
|
-
paddingVertical: 9,
|
|
435
|
-
marginTop: 14,
|
|
436
|
-
borderWidth: 1,
|
|
437
|
-
borderColor: `${AppColors_1.AppColors.purple}25`,
|
|
438
|
-
},
|
|
439
|
-
diagnosticsHeader: {
|
|
440
|
-
flexDirection: 'row',
|
|
441
|
-
alignItems: 'center',
|
|
442
|
-
gap: 8,
|
|
443
|
-
flex: 1,
|
|
444
|
-
},
|
|
445
|
-
diagnosticsTitle: {
|
|
446
|
-
fontFamily: AppFonts_1.AppFonts.interMedium,
|
|
447
|
-
fontSize: 11.5,
|
|
448
|
-
color: AppColors_1.AppColors.purple,
|
|
449
|
-
},
|
|
450
|
-
diagnosticsArrow: {
|
|
451
|
-
fontSize: 10,
|
|
452
|
-
color: AppColors_1.AppColors.purple,
|
|
453
|
-
},
|
|
454
|
-
diagnosticsBox: {
|
|
455
|
-
backgroundColor: '#1E1B2E',
|
|
456
|
-
borderRadius: 8,
|
|
457
|
-
padding: 10,
|
|
458
|
-
marginTop: 6,
|
|
459
|
-
borderWidth: 1,
|
|
460
|
-
borderColor: AppColors_1.AppColors.dividerColor,
|
|
461
|
-
},
|
|
462
|
-
diagnosticsText: {
|
|
463
|
-
fontFamily: AppFonts_1.AppFonts.interRegular,
|
|
464
|
-
fontSize: 11,
|
|
465
|
-
color: '#E2DFEB',
|
|
466
|
-
lineHeight: 17,
|
|
467
|
-
},
|
|
468
|
-
recipientBadge: {
|
|
469
|
-
marginTop: 12,
|
|
470
|
-
paddingVertical: 6,
|
|
471
|
-
paddingHorizontal: 10,
|
|
472
|
-
borderRadius: 6,
|
|
473
|
-
backgroundColor: AppColors_1.AppColors.grayBackground,
|
|
474
|
-
borderWidth: 1,
|
|
475
|
-
borderColor: AppColors_1.AppColors.dividerColor,
|
|
476
|
-
alignSelf: 'flex-start',
|
|
477
|
-
},
|
|
478
|
-
recipientText: {
|
|
479
|
-
fontFamily: AppFonts_1.AppFonts.interRegular,
|
|
480
|
-
fontSize: 11,
|
|
481
|
-
color: AppColors_1.AppColors.grayText,
|
|
482
|
-
},
|
|
483
|
-
recipientHighlight: {
|
|
484
|
-
fontFamily: AppFonts_1.AppFonts.interSemiBold,
|
|
485
|
-
color: AppColors_1.AppColors.purple,
|
|
486
|
-
},
|
|
487
|
-
footer: {
|
|
488
|
-
flexDirection: 'row',
|
|
489
|
-
alignItems: 'center',
|
|
490
|
-
justifyContent: 'space-between',
|
|
491
|
-
paddingHorizontal: 14,
|
|
492
|
-
paddingTop: 10,
|
|
493
|
-
paddingBottom: 14,
|
|
494
|
-
borderTopWidth: 1,
|
|
495
|
-
borderTopColor: AppColors_1.AppColors.dividerColor,
|
|
496
|
-
backgroundColor: AppColors_1.AppColors.primaryLight,
|
|
497
|
-
},
|
|
498
|
-
copyDraftBtn: {
|
|
499
|
-
flexDirection: 'row',
|
|
500
|
-
alignItems: 'center',
|
|
501
|
-
gap: 5,
|
|
502
|
-
paddingVertical: 8,
|
|
503
|
-
paddingHorizontal: 10,
|
|
504
|
-
borderRadius: 8,
|
|
505
|
-
backgroundColor: AppColors_1.AppColors.grayBackground,
|
|
506
|
-
borderWidth: 1,
|
|
507
|
-
borderColor: AppColors_1.AppColors.dividerColor,
|
|
508
|
-
},
|
|
509
|
-
copyDraftBtnText: {
|
|
510
|
-
fontFamily: AppFonts_1.AppFonts.interMedium,
|
|
511
|
-
fontSize: 11.5,
|
|
512
|
-
color: AppColors_1.AppColors.grayText,
|
|
513
|
-
},
|
|
514
|
-
footerRight: {
|
|
515
|
-
flexDirection: 'row',
|
|
516
|
-
alignItems: 'center',
|
|
517
|
-
gap: 8,
|
|
518
|
-
},
|
|
519
|
-
cancelBtn: {
|
|
520
|
-
paddingVertical: 8,
|
|
521
|
-
paddingHorizontal: 14,
|
|
522
|
-
borderRadius: 8,
|
|
523
|
-
backgroundColor: AppColors_1.AppColors.grayBackground,
|
|
524
|
-
borderWidth: 1,
|
|
525
|
-
borderColor: AppColors_1.AppColors.dividerColor,
|
|
526
|
-
},
|
|
527
|
-
cancelBtnText: {
|
|
528
|
-
fontFamily: AppFonts_1.AppFonts.interMedium,
|
|
529
|
-
fontSize: 12.5,
|
|
530
|
-
color: AppColors_1.AppColors.grayText,
|
|
531
|
-
},
|
|
532
|
-
submitBtn: {
|
|
533
|
-
flexDirection: 'row',
|
|
534
|
-
alignItems: 'center',
|
|
535
|
-
gap: 6,
|
|
536
|
-
backgroundColor: AppColors_1.AppColors.purple,
|
|
537
|
-
paddingVertical: 8,
|
|
538
|
-
paddingHorizontal: 15,
|
|
539
|
-
borderRadius: 8,
|
|
540
|
-
shadowColor: AppColors_1.AppColors.purple,
|
|
541
|
-
shadowOffset: { width: 0, height: 2 },
|
|
542
|
-
shadowOpacity: 0.35,
|
|
543
|
-
shadowRadius: 6,
|
|
544
|
-
elevation: 4,
|
|
545
|
-
},
|
|
546
|
-
submitBtnText: {
|
|
547
|
-
fontFamily: AppFonts_1.AppFonts.interSemiBold,
|
|
548
|
-
fontSize: 12.5,
|
|
549
|
-
color: AppColors_1.AppColors.white,
|
|
550
|
-
},
|
|
551
|
-
});
|
|
552
|
-
exports.default = exports.FeedbackModal;
|
|
197
|
+
</react_native_1.Modal>
|
|
198
|
+
</react_native_1.View>};exports.FeedbackModal=FeedbackModal;const styles=react_native_1.StyleSheet.create({container:{flex:1,backgroundColor:AppColors_1.AppColors.primaryLight},bannerBar:{flexDirection:"row",alignItems:"center",gap:12,backgroundColor:`${AppColors_1.AppColors.purple}10`,paddingHorizontal:16,paddingVertical:12,borderBottomWidth:1,borderBottomColor:`${AppColors_1.AppColors.purple}20`},bannerIconBox:{width:36,height:36,borderRadius:10,backgroundColor:`${AppColors_1.AppColors.purple}20`,alignItems:"center",justifyContent:"center"},bannerTitleRow:{flexDirection:"row",alignItems:"center",gap:8},bannerTitle:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:13.5,lineHeight:18,color:AppColors_1.AppColors.purple},livePill:{flexDirection:"row",alignItems:"center",gap:4,backgroundColor:`${AppColors_1.AppColors.liveGreen}20`,paddingHorizontal:6,paddingVertical:1.5,borderRadius:10,borderWidth:1,borderColor:`${AppColors_1.AppColors.liveGreen}40`},liveDot:{width:5,height:5,borderRadius:2.5,backgroundColor:AppColors_1.AppColors.liveGreen},liveText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8.5,color:AppColors_1.AppColors.liveGreen},bannerSub:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:11,lineHeight:15,color:AppColors_1.AppColors.grayText,marginTop:2},scrollContent:{flex:1},scrollInner:{paddingHorizontal:16,paddingTop:14,paddingBottom:24},sectionLabel:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:AppColors_1.AppColors.grayTextStrong,letterSpacing:.6,marginBottom:8},sectionHeaderRow:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginTop:14,marginBottom:8},clearChipsText:{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:11,color:AppColors_1.AppColors.purple},moduleTriggerCard:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",backgroundColor:AppColors_1.AppColors.grayBackground,borderRadius:12,borderWidth:1.5,borderColor:AppColors_1.AppColors.dividerColor,paddingHorizontal:12,paddingVertical:10,marginBottom:8,shadowColor:AppColors_1.AppColors.black,shadowOffset:{width:0,height:1},shadowOpacity:.04,shadowRadius:3,elevation:1},moduleTriggerLeft:{flexDirection:"row",alignItems:"center",gap:10,flex:1,marginRight:8},moduleIconBox:{width:38,height:38,borderRadius:10,alignItems:"center",justifyContent:"center"},moduleIconText:{fontSize:18},moduleNameRow:{flexDirection:"row",alignItems:"center",gap:6},moduleNameText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:13,color:AppColors_1.AppColors.primaryBlack},moduleCategoryBadge:{paddingHorizontal:6,paddingVertical:1.5,borderRadius:6},moduleCategoryBadgeText:{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:9,letterSpacing:.2},moduleDescText:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:10.5,color:AppColors_1.AppColors.grayTextWeak,marginTop:2},changeBadge:{flexDirection:"row",alignItems:"center",gap:3,backgroundColor:`${AppColors_1.AppColors.purple}14`,paddingHorizontal:8,paddingVertical:4.5,borderRadius:8,borderWidth:1,borderColor:`${AppColors_1.AppColors.purple}30`},changeBadgeText:{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:10.5,color:AppColors_1.AppColors.purple},chipsContainer:{flexDirection:"row",flexWrap:"wrap",gap:7,marginBottom:14},presetChip:{flexDirection:"row",alignItems:"center",gap:5,paddingVertical:6.5,paddingHorizontal:11,borderRadius:8,backgroundColor:AppColors_1.AppColors.grayBackground,borderWidth:1.2,borderColor:AppColors_1.AppColors.dividerColor},presetChipSelected:{shadowColor:AppColors_1.AppColors.black,shadowOffset:{width:0,height:1},shadowOpacity:.05,shadowRadius:2,elevation:1},presetChipCheck:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,color:AppColors_1.AppColors.grayTextWeak},presetChipText:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:11.5,lineHeight:15,color:AppColors_1.AppColors.primaryBlack},presetChipTextSelected:{fontFamily:AppFonts_1.AppFonts.interSemiBold},categoryGrid:{flexDirection:"row",flexWrap:"wrap",gap:8,marginBottom:14},categoryChip:{flexDirection:"row",alignItems:"center",gap:6,paddingVertical:7,paddingHorizontal:12,borderRadius:10,backgroundColor:AppColors_1.AppColors.grayBackground,borderWidth:1.5,borderColor:AppColors_1.AppColors.dividerColor},categoryIcon:{fontSize:13},categoryText:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:12,lineHeight:16,color:AppColors_1.AppColors.grayText},moodCard:{backgroundColor:AppColors_1.AppColors.grayBackground,borderRadius:12,padding:8,marginBottom:14,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor},moodRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:4},moodButton:{flex:1,alignItems:"center",justifyContent:"center",paddingVertical:8,paddingHorizontal:2,borderRadius:8,borderWidth:1.5,borderColor:"transparent"},moodButtonSelected:{shadowColor:AppColors_1.AppColors.black,shadowOffset:{width:0,height:1},shadowOpacity:.06,shadowRadius:2,elevation:1},moodEmoji:{fontSize:22,marginBottom:4},moodLabel:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:9.5,color:AppColors_1.AppColors.grayText,textAlign:"center"},inputWrapper:{backgroundColor:AppColors_1.AppColors.grayBackground,borderRadius:10,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,paddingHorizontal:12,paddingVertical:8,minHeight:70,marginBottom:12},textInput:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:12.5,lineHeight:18,color:AppColors_1.AppColors.primaryBlack,padding:0,minHeight:54},diagnosticsPill:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",backgroundColor:`${AppColors_1.AppColors.purple}0C`,borderRadius:8,paddingHorizontal:12,paddingVertical:8,borderWidth:1,borderColor:`${AppColors_1.AppColors.purple}20`},diagnosticsLeft:{flexDirection:"row",alignItems:"center",gap:7,flex:1,marginRight:6},diagnosticsPillTitle:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:11,color:AppColors_1.AppColors.purple,flexShrink:1},diagnosticsArrow:{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:10.5,color:AppColors_1.AppColors.purple},diagnosticsBox:{backgroundColor:"#1E1B2E",borderRadius:8,padding:10,marginTop:6,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor},diagnosticsText:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:11,color:"#E2DFEB",lineHeight:17},footer:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:16,paddingTop:10,paddingBottom:react_native_1.Platform.OS==="ios"?34:14,borderTopWidth:1,borderTopColor:AppColors_1.AppColors.dividerColor,backgroundColor:AppColors_1.AppColors.primaryLight,gap:10},footerLeft:{flexDirection:"row",alignItems:"center",gap:8},actionPillBtn:{flexDirection:"row",alignItems:"center",gap:5,paddingVertical:8,paddingHorizontal:11,borderRadius:8,backgroundColor:AppColors_1.AppColors.grayBackground,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor},githubPillBtn:{backgroundColor:`${AppColors_1.AppColors.black}08`},actionPillText:{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:11.5,color:AppColors_1.AppColors.grayTextStrong},primarySubmitBtn:{flex:1,flexDirection:"row",alignItems:"center",justifyContent:"center",gap:6,backgroundColor:AppColors_1.AppColors.purple,paddingVertical:9,paddingHorizontal:14,borderRadius:8,shadowColor:AppColors_1.AppColors.purple,shadowOffset:{width:0,height:2},shadowOpacity:.35,shadowRadius:6,elevation:4},primarySubmitBtnText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12.5,color:AppColors_1.AppColors.white},modalOverlay:{flex:1,justifyContent:"flex-end",backgroundColor:"rgba(0, 0, 0, 0.55)"},modalBackdrop:{...react_native_1.StyleSheet.absoluteFillObject},pickerModalContainer:{backgroundColor:AppColors_1.AppColors.primaryLight,borderTopLeftRadius:20,borderTopRightRadius:20,maxHeight:"82%",paddingHorizontal:16,paddingTop:16,paddingBottom:react_native_1.Platform.OS==="ios"?34:16,shadowColor:AppColors_1.AppColors.black,shadowOffset:{width:0,height:-4},shadowOpacity:.15,shadowRadius:10,elevation:20},pickerHeader:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:12},pickerHeaderTitle:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:15,color:AppColors_1.AppColors.primaryBlack},pickerHeaderSub:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:11,color:AppColors_1.AppColors.grayText,marginTop:1},pickerCloseBtn:{width:28,height:28,borderRadius:14,backgroundColor:`${AppColors_1.AppColors.black}15`,alignItems:"center",justifyContent:"center"},pickerSearchWrapper:{flexDirection:"row",alignItems:"center",backgroundColor:AppColors_1.AppColors.grayBackground,borderRadius:10,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,paddingHorizontal:10,paddingVertical:8,gap:8,marginBottom:12},pickerSearchInput:{flex:1,fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:13,color:AppColors_1.AppColors.primaryBlack,padding:0},pickerClearSearchText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12,color:AppColors_1.AppColors.grayTextWeak,paddingHorizontal:4},pickerListScroll:{maxHeight:380},emptySearchWrap:{paddingVertical:24,alignItems:"center",justifyContent:"center"},emptySearchText:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:12,color:AppColors_1.AppColors.grayTextWeak},pickerItemCard:{flexDirection:"row",alignItems:"center",gap:12,padding:10,borderRadius:10,backgroundColor:AppColors_1.AppColors.grayBackground,borderWidth:1.5,borderColor:AppColors_1.AppColors.dividerColor,marginBottom:8},pickerItemCardSelected:{shadowColor:AppColors_1.AppColors.black,shadowOffset:{width:0,height:2},shadowOpacity:.05,shadowRadius:3,elevation:2},pickerItemIconBox:{width:36,height:36,borderRadius:9,alignItems:"center",justifyContent:"center"},pickerItemTitleRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:2},pickerItemTitle:{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:12.5,color:AppColors_1.AppColors.primaryBlack},pickerItemDesc:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:10.5,lineHeight:14,color:AppColors_1.AppColors.grayTextWeak},pickerItemCheck:{width:22,height:22,borderRadius:11,alignItems:"center",justifyContent:"center"}});exports.default=exports.FeedbackModal;
|