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,515 +1,198 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import { trackTelemetryEvent } from '../../helpers/telemetry';
|
|
8
|
-
import { HeadphonesIcon, SendIcon, StarIcon, CopyIcon, InfoCircleIcon, CheckIcon, } from '../NetworkIcons';
|
|
9
|
-
const DEVELOPER_EMAIL = 'vengatmacuser@gmail.com';
|
|
10
|
-
const CATEGORIES = [
|
|
11
|
-
{ key: 'feedback', label: 'Feedback', icon: '💬' },
|
|
12
|
-
{ key: 'bug', label: 'Bug Report', icon: '🐛' },
|
|
13
|
-
{ key: 'feature', label: 'Feature Request', icon: '✨' },
|
|
14
|
-
{ key: 'performance', label: 'Performance', icon: '⚡' },
|
|
15
|
-
{ key: 'help', label: 'Support / Help', icon: '❓' },
|
|
16
|
-
];
|
|
17
|
-
const RATING_LABELS = ['', 'Poor', 'Fair', 'Good', 'Very Good', 'Excellent!'];
|
|
18
|
-
export const FeedbackModal = ({ onClose }) => {
|
|
19
|
-
const [category, setCategory] = useState('feedback');
|
|
20
|
-
const [rating, setRating] = useState(5);
|
|
21
|
-
const [subject, setSubject] = useState('');
|
|
22
|
-
const [message, setMessage] = useState('');
|
|
23
|
-
const [showDiagnostics, setShowDiagnostics] = useState(false);
|
|
24
|
-
const [isSending, setIsSending] = useState(false);
|
|
25
|
-
const [copiedDraft, setCopiedDraft] = useState(false);
|
|
26
|
-
useEffect(() => {
|
|
27
|
-
trackTelemetryEvent('feedback_modal_opened', { category });
|
|
28
|
-
}, []);
|
|
29
|
-
const appName = getAppName() || 'React Native App';
|
|
30
|
-
const bundleId = getBundleIdentifier() || 'unknown';
|
|
31
|
-
const appVersion = getAppVersionAndBuild() || '1.0.0';
|
|
32
|
-
const { width, height } = Dimensions.get('window');
|
|
33
|
-
const getDiagnosticsText = () => {
|
|
34
|
-
return [
|
|
35
|
-
`• Package: react-native-inapp-inspector@${LIB_VERSION}`,
|
|
36
|
-
`• Platform: ${Platform.OS.toUpperCase()} (${Platform.Version})`,
|
|
37
|
-
`• App: ${appName} (${bundleId}) v${appVersion}`,
|
|
38
|
-
`• Screen: ${Math.round(width)} x ${Math.round(height)} (Scale ${PixelRatio.get()})`,
|
|
39
|
-
`• Timestamp: ${new Date().toISOString()}`,
|
|
40
|
-
].join('\n');
|
|
41
|
-
};
|
|
42
|
-
const buildEmailDraft = () => {
|
|
43
|
-
const activeCat = CATEGORIES.find(c => c.key === category)?.label || category;
|
|
44
|
-
const emailSubject = `[In-App Inspector] [${activeCat}] ${subject.trim() || 'User Feedback'}`;
|
|
45
|
-
const bodyLines = [
|
|
46
|
-
`Category: ${activeCat}`,
|
|
47
|
-
`Rating: ${rating} / 5 (${RATING_LABELS[rating] || ''})`,
|
|
48
|
-
...(subject.trim() ? [`Subject: ${subject.trim()}`] : []),
|
|
49
|
-
'',
|
|
50
|
-
'Feedback / Message:',
|
|
51
|
-
message.trim() || '(No message provided)',
|
|
52
|
-
'',
|
|
53
|
-
'----------------------------------------',
|
|
54
|
-
'System & Diagnostic Info:',
|
|
55
|
-
getDiagnosticsText(),
|
|
56
|
-
'----------------------------------------',
|
|
57
|
-
];
|
|
58
|
-
return {
|
|
59
|
-
activeCat,
|
|
60
|
-
subject: emailSubject,
|
|
61
|
-
body: bodyLines.join('\n'),
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
const handleCopyDraft = () => {
|
|
65
|
-
const draft = buildEmailDraft();
|
|
66
|
-
const fullText = `To: ${DEVELOPER_EMAIL}\nSubject: ${draft.subject}\n\n${draft.body}`;
|
|
67
|
-
copyToClipboard(fullText, 'Email Draft & Diagnostics');
|
|
68
|
-
setCopiedDraft(true);
|
|
69
|
-
setTimeout(() => setCopiedDraft(false), 2000);
|
|
70
|
-
showToast('Feedback draft copied to clipboard');
|
|
71
|
-
};
|
|
72
|
-
const handleSendEmail = async () => {
|
|
73
|
-
if (isSending)
|
|
74
|
-
return;
|
|
75
|
-
setIsSending(true);
|
|
76
|
-
try {
|
|
77
|
-
const draft = buildEmailDraft();
|
|
78
|
-
const mailtoUrl = `mailto:${DEVELOPER_EMAIL}?subject=${encodeURIComponent(draft.subject)}&body=${encodeURIComponent(draft.body)}`;
|
|
79
|
-
trackTelemetryEvent('feedback_submitted', {
|
|
80
|
-
category,
|
|
81
|
-
rating,
|
|
82
|
-
has_subject: Boolean(subject.trim()),
|
|
83
|
-
has_message: Boolean(message.trim()),
|
|
84
|
-
});
|
|
85
|
-
let opened = false;
|
|
86
|
-
try {
|
|
87
|
-
const canOpen = await Linking.canOpenURL(mailtoUrl);
|
|
88
|
-
if (canOpen) {
|
|
89
|
-
await Linking.openURL(mailtoUrl);
|
|
90
|
-
opened = true;
|
|
91
|
-
}
|
|
92
|
-
else {
|
|
93
|
-
await Linking.openURL(mailtoUrl);
|
|
94
|
-
opened = true;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
catch (err) {
|
|
98
|
-
opened = false;
|
|
99
|
-
}
|
|
100
|
-
if (opened) {
|
|
101
|
-
showToast('Opening mail client...');
|
|
102
|
-
onClose();
|
|
103
|
-
}
|
|
104
|
-
else {
|
|
105
|
-
const fullDraft = `To: ${DEVELOPER_EMAIL}\nSubject: ${draft.subject}\n\n${draft.body}`;
|
|
106
|
-
copyToClipboard(fullDraft, 'Feedback Draft');
|
|
107
|
-
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}`, [
|
|
108
|
-
{
|
|
109
|
-
text: 'Copy Email Address',
|
|
110
|
-
onPress: () => {
|
|
111
|
-
copyToClipboard(DEVELOPER_EMAIL, 'Email Address');
|
|
112
|
-
showToast('Email address copied!');
|
|
113
|
-
},
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
text: 'Done',
|
|
117
|
-
style: 'default',
|
|
118
|
-
onPress: onClose,
|
|
119
|
-
},
|
|
120
|
-
]);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
catch (err) {
|
|
124
|
-
console.warn('[FeedbackModal] Error sending email:', err);
|
|
125
|
-
}
|
|
126
|
-
finally {
|
|
127
|
-
setIsSending(false);
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
return (<View style={styles.container}>
|
|
131
|
-
|
|
132
|
-
<View style={styles.bannerBar}>
|
|
133
|
-
<View style={styles.bannerIconBox}>
|
|
134
|
-
<HeadphonesIcon size={18} color={AppColors.purple}/>
|
|
135
|
-
</View>
|
|
136
|
-
<View style={{ flex: 1 }}>
|
|
137
|
-
<Text style={styles.bannerTitle}>Share your feedback or report an issue</Text>
|
|
138
|
-
<Text style={styles.bannerSub}>
|
|
139
|
-
Direct communication with the maintainers. Diagnostic info is auto-attached.
|
|
140
|
-
</Text>
|
|
141
|
-
</View>
|
|
142
|
-
</View>
|
|
1
|
+
import{useState as x,useEffect as Ae,useMemo as M}from"react";import{Alert as Me,Dimensions as je,PixelRatio as We,Platform as V,Linking as ne,Modal as Ge,ScrollView as Ce,StyleSheet as ke,Text as C,TextInput as Se,TouchableOpacity as O,View as S}from"react-native";import Ne,{Path as Ue}from"react-native-svg";import{AppColors as o}from"../../styles/AppColors";import{AppFonts as k}from"../../styles/AppFonts";import R from"../TouchableScale";import{LIB_VERSION as qe}from"../../constants/version";import{getAppName as _e,getBundleIdentifier as Ke,getAppVersionAndBuild as Qe,copyToClipboard as K,showToast as j}from"../../helpers";import{trackTelemetryEvent as Q}from"../../helpers/telemetry";import{triggerNativeHaptic as B}from"../../native/NativeInspector";import{SendIcon as Ye,CopyIcon as Je,InfoCircleIcon as Xe,CheckIcon as Te,SearchIcon as Ze,ChevronDownIcon as Co,CloseWhite as So}from"../NetworkIcons";const H="vengatmacuser@gmail.com",To="https://github.com/vengatmacuser/react-native-inapp-inspector",W=[{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"]}],Y=[{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"}],J=[{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"}],Bo=({size:P=14,color:I=o.white})=><Ne width={P}height={P}viewBox="0 0 24 24"fill={I}>
|
|
2
|
+
<Ue 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
|
+
</Ne>;export const FeedbackModal=({onClose:P})=>{const[I,xe]=x("apis"),[we,E]=x(!1),[L,G]=x(""),[D,Be]=x("feedback"),[F,N]=x([]),[$,Ie]=x(5),[A,Re]=x(""),[U,Fe]=x(!1),[X,Z]=x(!1),[q,ee]=x(!1);Ae(()=>{Q("feedback_modal_opened",{category:D,module:I})},[]);const T=M(()=>W.find(t=>t.id===I)||W[0],[I]),oe=M(()=>{const t=L.trim().toLowerCase();return t?W.filter(r=>r.name.toLowerCase().includes(t)||r.category.toLowerCase().includes(t)||r.description.toLowerCase().includes(t)):W},[L]),te=M(()=>Y.find(t=>t.key===D)||Y[0],[D]),ve=M(()=>T.quickChips,[T]),re=_e()||"React Native App",ze=Ke()||"unknown",ie=Qe()?.formatted||"1.0.0",{width:De,height:Ve}=je.get("window"),ae=()=>[`\u2022 Module Context: ${T.name} (${T.category})`,`\u2022 Package: react-native-inapp-inspector@${qe}`,`\u2022 Platform: ${V.OS.toUpperCase()} (${V.Version})`,`\u2022 App: ${re} (${ze}) v${ie}`,`\u2022 Screen: ${Math.round(De)} x ${Math.round(Ve)} (Scale ${We.get()})`,`\u2022 Timestamp: ${new Date().toISOString()}`].join(`
|
|
4
|
+
`),Pe=t=>{B("light"),N(r=>r.includes(t)?r.filter(w=>w!==t):[...r,t])},Ee=t=>{B("medium"),xe(t.id),E(!1),G(""),N([])},Le=t=>{B("medium"),Be(t)},_=()=>{const t=J.find(z=>z.value===$)||J[4],r=F.length>0?F.join(", "):"General thoughts",w=`[In-App Inspector] [${T.name}] [${te.label}] ${r.slice(0,50)}`,v=[`\u{1F4E6} Module: ${T.name} (${T.category})`,`\u{1F3AF} Type: ${te.label}`,`\u{1F31F} Mood / Experience: ${t.emoji} ${t.label} (${$}/5)`,...F.length>0?["","\u{1F4CC} Key Highlights / Items:",...F.map(z=>` \u2022 ${z}`)]:[],...A.trim()?["","\u{1F4DD} Additional Notes:",A.trim()]:[],"","----------------------------------------","\u26A1 System & Diagnostic Info (Auto-attached):",ae(),"----------------------------------------"];return{subject:w,body:v.join(`
|
|
5
|
+
`),activeMood:t}},$e=()=>{B("success");const{subject:t,body:r}=_(),w=`To: ${H}
|
|
6
|
+
Subject: ${t}
|
|
143
7
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
{CATEGORIES.map(cat => {
|
|
149
|
-
const isSelected = category === cat.key;
|
|
150
|
-
return (<TouchableOpacity key={cat.key} activeOpacity={0.7} onPress={() => setCategory(cat.key)} style={[
|
|
151
|
-
styles.categoryChip,
|
|
152
|
-
isSelected && styles.categoryChipSelected,
|
|
153
|
-
]}>
|
|
154
|
-
<Text style={styles.categoryIcon}>{cat.icon}</Text>
|
|
155
|
-
<Text style={[
|
|
156
|
-
styles.categoryText,
|
|
157
|
-
isSelected && styles.categoryTextSelected,
|
|
158
|
-
]}>
|
|
159
|
-
{cat.label}
|
|
160
|
-
</Text>
|
|
161
|
-
</TouchableOpacity>);
|
|
162
|
-
})}
|
|
163
|
-
</View>
|
|
8
|
+
${r}`;K(w,"Feedback Draft & Diagnostics"),ee(!0),setTimeout(()=>ee(!1),2e3),j("Feedback draft & diagnostics copied to clipboard")},Oe=async()=>{B("medium");try{const{subject:t,body:r}=_(),w=encodeURIComponent(t),v=encodeURIComponent(r),z=`${To}/issues/new?title=${w}&body=${v}`;await ne.openURL(z),Q("feedback_github_opened",{category:D,module:I,mood:$})}catch{j("Could not open GitHub browser")}},He=async()=>{if(!X){Z(!0),B("medium");try{const{subject:t,body:r}=_(),w=`mailto:${H}?subject=${encodeURIComponent(t)}&body=${encodeURIComponent(r)}`;Q("feedback_submitted",{category:D,module:I,mood:$,chips_count:F.length,has_custom_note:!!A.trim()});let v=!1;try{await ne.openURL(w),v=!0}catch{v=!1}if(v)j("Opening mail client..."),P();else{const z=`To: ${H}
|
|
9
|
+
Subject: ${t}
|
|
10
|
+
|
|
11
|
+
${r}`;K(z,"Feedback Draft"),Me.alert("Email Client Not Available",`Your feedback and diagnostics have been copied to clipboard!
|
|
164
12
|
|
|
13
|
+
You can paste and send directly to:
|
|
14
|
+
${H}`,[{text:"Copy Email Address",onPress:()=>{K(H,"Email Address"),j("Email address copied!")}},{text:"Done",style:"default",onPress:P}])}}catch(t){console.warn("[FeedbackModal] Error sending email:",t)}finally{Z(!1)}}};return<S style={e.container}>
|
|
15
|
+
<Ce style={e.scrollContent}contentContainerStyle={e.scrollInner}showsVerticalScrollIndicator={!1}keyboardShouldPersistTaps="handled">
|
|
165
16
|
|
|
166
|
-
<
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
</
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
<
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
17
|
+
<C style={e.sectionLabel}>1. TARGET MODULE</C>
|
|
18
|
+
|
|
19
|
+
<R onPress={()=>{B("light"),E(!0)}}style={e.moduleTriggerCard}>
|
|
20
|
+
<S style={e.moduleTriggerLeft}>
|
|
21
|
+
<S style={[e.moduleIconBox,{backgroundColor:`${T.color}1C`}]}>
|
|
22
|
+
<C style={e.moduleIconText}>{T.icon}</C>
|
|
23
|
+
</S>
|
|
24
|
+
<S style={{flex:1,minWidth:0}}>
|
|
25
|
+
<S style={e.moduleNameRow}>
|
|
26
|
+
<C style={e.moduleNameText}>{T.name}</C>
|
|
27
|
+
<S style={[e.moduleCategoryBadge,{backgroundColor:`${T.color}18`}]}>
|
|
28
|
+
<C style={[e.moduleCategoryBadgeText,{color:T.color}]}>
|
|
29
|
+
{T.category}
|
|
30
|
+
</C>
|
|
31
|
+
</S>
|
|
32
|
+
</S>
|
|
33
|
+
<C style={e.moduleDescText}numberOfLines={1}>
|
|
34
|
+
{T.description}
|
|
35
|
+
</C>
|
|
36
|
+
</S>
|
|
37
|
+
</S>
|
|
38
|
+
|
|
39
|
+
<S style={e.changeBadge}>
|
|
40
|
+
<C style={e.changeBadgeText}>Change</C>
|
|
41
|
+
<Co size={11}color={o.purple}/>
|
|
42
|
+
</S>
|
|
43
|
+
</R>
|
|
182
44
|
|
|
183
45
|
|
|
184
|
-
<
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
46
|
+
<S style={e.sectionHeaderRow}>
|
|
47
|
+
<C style={e.sectionLabel}>
|
|
48
|
+
2. QUICK PRESETS FOR {T.name.toUpperCase()}
|
|
49
|
+
</C>
|
|
50
|
+
{F.length>0&&<O onPress={()=>N([])}>
|
|
51
|
+
<C style={e.clearChipsText}>Clear</C>
|
|
52
|
+
</O>}
|
|
53
|
+
</S>
|
|
54
|
+
|
|
55
|
+
<S style={e.chipsContainer}>
|
|
56
|
+
{ve.map(t=>{const r=F.includes(t);return<R key={t}onPress={()=>Pe(t)}style={[e.presetChip,r&&[e.presetChipSelected,{borderColor:T.color,backgroundColor:`${T.color}18`}]]}>
|
|
57
|
+
<C style={[e.presetChipCheck,r&&{color:T.color}]}>
|
|
58
|
+
{r?"\u2713":"+"}
|
|
59
|
+
</C>
|
|
60
|
+
<C style={[e.presetChipText,r&&[e.presetChipTextSelected,{color:T.color}]]}>
|
|
61
|
+
{t}
|
|
62
|
+
</C>
|
|
63
|
+
</R>})}
|
|
64
|
+
</S>
|
|
188
65
|
|
|
189
66
|
|
|
190
|
-
<
|
|
191
|
-
<
|
|
192
|
-
|
|
193
|
-
|
|
67
|
+
<C style={e.sectionLabel}>3. SELECT TOPIC</C>
|
|
68
|
+
<S style={e.categoryGrid}>
|
|
69
|
+
{Y.map(t=>{const r=D===t.key;return<R key={t.key}onPress={()=>Le(t.key)}style={[e.categoryChip,r&&{backgroundColor:t.bgColor,borderColor:t.color}]}>
|
|
70
|
+
<C style={e.categoryIcon}>{t.icon}</C>
|
|
71
|
+
<C style={[e.categoryText,r&&{color:t.color,fontFamily:k.interBold}]}>
|
|
72
|
+
{t.label}
|
|
73
|
+
</C>
|
|
74
|
+
</R>})}
|
|
75
|
+
</S>
|
|
194
76
|
|
|
195
77
|
|
|
196
|
-
<
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
<
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
</
|
|
206
|
-
</
|
|
78
|
+
<C style={e.sectionLabel}>4. HOW IS YOUR EXPERIENCE?</C>
|
|
79
|
+
<S style={e.moodCard}>
|
|
80
|
+
<S style={e.moodRow}>
|
|
81
|
+
{J.map(t=>{const r=$===t.value;return<R key={t.value}onPress={()=>{B("light"),Ie(t.value)}}style={[e.moodButton,r&&[e.moodButtonSelected,{borderColor:t.color,backgroundColor:`${t.color}15`}]]}>
|
|
82
|
+
<C style={e.moodEmoji}>{t.emoji}</C>
|
|
83
|
+
<C style={[e.moodLabel,r&&{color:t.color,fontFamily:k.interBold}]}>
|
|
84
|
+
{t.label}
|
|
85
|
+
</C>
|
|
86
|
+
</R>})}
|
|
87
|
+
</S>
|
|
88
|
+
</S>
|
|
207
89
|
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
90
|
+
|
|
91
|
+
<C style={e.sectionLabel}>5. ADDITIONAL DETAILS (OPTIONAL)</C>
|
|
92
|
+
<S style={e.inputWrapper}>
|
|
93
|
+
<Se style={e.textInput}placeholder="Type any extra thoughts, steps to reproduce, or notes here..."placeholderTextColor={o.grayTextWeak}value={A}onChangeText={Re}multiline numberOfLines={3}textAlignVertical="top"/>
|
|
94
|
+
</S>
|
|
213
95
|
|
|
214
96
|
|
|
215
|
-
<
|
|
216
|
-
<
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
97
|
+
<O activeOpacity={.8}onPress={()=>{B("light"),Fe(!U)}}style={e.diagnosticsPill}>
|
|
98
|
+
<S style={e.diagnosticsLeft}>
|
|
99
|
+
<Xe size={14}color={o.purple}/>
|
|
100
|
+
<C style={e.diagnosticsPillTitle}numberOfLines={1}>
|
|
101
|
+
{V.OS.toUpperCase()} {V.Version} • {re} v{ie} (Auto-attached)
|
|
102
|
+
</C>
|
|
103
|
+
</S>
|
|
104
|
+
<C style={e.diagnosticsArrow}>
|
|
105
|
+
{U?"\u25B2 Less":"\u25BC Details"}
|
|
106
|
+
</C>
|
|
107
|
+
</O>
|
|
108
|
+
|
|
109
|
+
{U&&<S style={e.diagnosticsBox}>
|
|
110
|
+
<C style={e.diagnosticsText}>{ae()}</C>
|
|
111
|
+
</S>}
|
|
112
|
+
</Ce>
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
<S style={e.footer}>
|
|
116
|
+
<S style={e.footerLeft}>
|
|
117
|
+
<R onPress={$e}style={e.actionPillBtn}>
|
|
118
|
+
{q?<Te size={14}color={o.emerald500}/>:<Je size={14}color={o.grayTextStrong}/>}
|
|
119
|
+
<C style={[e.actionPillText,q&&{color:o.emerald500}]}>
|
|
120
|
+
{q?"Copied!":"Copy"}
|
|
121
|
+
</C>
|
|
122
|
+
</R>
|
|
123
|
+
|
|
124
|
+
<R onPress={Oe}style={[e.actionPillBtn,e.githubPillBtn]}>
|
|
125
|
+
<Bo size={13}color={o.primaryBlack}/>
|
|
126
|
+
<C style={e.actionPillText}>GitHub</C>
|
|
127
|
+
</R>
|
|
128
|
+
</S>
|
|
129
|
+
|
|
130
|
+
<R onPress={He}style={e.primarySubmitBtn}>
|
|
131
|
+
<Ye size={15}color={o.white}/>
|
|
132
|
+
<C style={e.primarySubmitBtnText}>
|
|
133
|
+
{X?"Sending...":"Send Feedback"}
|
|
134
|
+
</C>
|
|
135
|
+
</R>
|
|
136
|
+
</S>
|
|
221
137
|
|
|
222
138
|
|
|
223
|
-
<
|
|
224
|
-
<
|
|
225
|
-
|
|
226
|
-
<
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
139
|
+
<Ge visible={we}transparent={!0}animationType="fade"onRequestClose={()=>E(!1)}>
|
|
140
|
+
<S style={e.modalOverlay}>
|
|
141
|
+
<O style={e.modalBackdrop}activeOpacity={1}onPress={()=>E(!1)}/>
|
|
142
|
+
<S style={e.pickerModalContainer}>
|
|
143
|
+
|
|
144
|
+
<S style={e.pickerHeader}>
|
|
145
|
+
<S style={{flex:1}}>
|
|
146
|
+
<C style={e.pickerHeaderTitle}>Select Target Module</C>
|
|
147
|
+
<C style={e.pickerHeaderSub}>
|
|
148
|
+
Choose which inspector feature you want to report on
|
|
149
|
+
</C>
|
|
150
|
+
</S>
|
|
151
|
+
<O onPress={()=>E(!1)}hitSlop={12}style={e.pickerCloseBtn}>
|
|
152
|
+
<So size={12}/>
|
|
153
|
+
</O>
|
|
154
|
+
</S>
|
|
233
155
|
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
156
|
+
|
|
157
|
+
<S style={e.pickerSearchWrapper}>
|
|
158
|
+
<Ze size={14}color={o.purple}/>
|
|
159
|
+
<Se style={e.pickerSearchInput}placeholder="Search all 11 modules..."placeholderTextColor={o.grayTextWeak}value={L}onChangeText={G}autoFocus={!1}/>
|
|
160
|
+
{L.length>0&&<O onPress={()=>G("")}hitSlop={10}>
|
|
161
|
+
<C style={e.pickerClearSearchText}>✕</C>
|
|
162
|
+
</O>}
|
|
163
|
+
</S>
|
|
238
164
|
|
|
239
|
-
|
|
240
|
-
<
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
bannerTitle: {
|
|
273
|
-
fontFamily: AppFonts.interSemiBold,
|
|
274
|
-
fontSize: 12.5,
|
|
275
|
-
color: AppColors.purple,
|
|
276
|
-
},
|
|
277
|
-
bannerSub: {
|
|
278
|
-
fontFamily: AppFonts.interRegular,
|
|
279
|
-
fontSize: 10.5,
|
|
280
|
-
color: AppColors.grayText,
|
|
281
|
-
marginTop: 1,
|
|
282
|
-
},
|
|
283
|
-
scrollContent: {
|
|
284
|
-
flex: 1,
|
|
285
|
-
},
|
|
286
|
-
scrollInner: {
|
|
287
|
-
paddingHorizontal: 16,
|
|
288
|
-
paddingTop: 12,
|
|
289
|
-
paddingBottom: 20,
|
|
290
|
-
},
|
|
291
|
-
sectionLabel: {
|
|
292
|
-
fontFamily: AppFonts.interSemiBold,
|
|
293
|
-
fontSize: 10.5,
|
|
294
|
-
color: AppColors.grayText,
|
|
295
|
-
letterSpacing: 0.8,
|
|
296
|
-
marginBottom: 8,
|
|
297
|
-
marginTop: 10,
|
|
298
|
-
},
|
|
299
|
-
categoryGrid: {
|
|
300
|
-
flexDirection: 'row',
|
|
301
|
-
flexWrap: 'wrap',
|
|
302
|
-
gap: 8,
|
|
303
|
-
paddingBottom: 4,
|
|
304
|
-
},
|
|
305
|
-
categoryChip: {
|
|
306
|
-
flexDirection: 'row',
|
|
307
|
-
alignItems: 'center',
|
|
308
|
-
gap: 6,
|
|
309
|
-
paddingVertical: 7,
|
|
310
|
-
paddingHorizontal: 12,
|
|
311
|
-
borderRadius: 8,
|
|
312
|
-
backgroundColor: AppColors.grayBackground,
|
|
313
|
-
borderWidth: 1,
|
|
314
|
-
borderColor: AppColors.dividerColor,
|
|
315
|
-
},
|
|
316
|
-
categoryChipSelected: {
|
|
317
|
-
backgroundColor: `${AppColors.purple}15`,
|
|
318
|
-
borderColor: AppColors.purple,
|
|
319
|
-
},
|
|
320
|
-
categoryIcon: {
|
|
321
|
-
fontSize: 13,
|
|
322
|
-
},
|
|
323
|
-
categoryText: {
|
|
324
|
-
fontFamily: AppFonts.interMedium,
|
|
325
|
-
fontSize: 12,
|
|
326
|
-
color: AppColors.grayText,
|
|
327
|
-
},
|
|
328
|
-
categoryTextSelected: {
|
|
329
|
-
color: AppColors.purple,
|
|
330
|
-
fontFamily: AppFonts.interSemiBold,
|
|
331
|
-
},
|
|
332
|
-
ratingCard: {
|
|
333
|
-
backgroundColor: AppColors.grayBackground,
|
|
334
|
-
borderRadius: 12,
|
|
335
|
-
padding: 12,
|
|
336
|
-
marginTop: 12,
|
|
337
|
-
borderWidth: 1,
|
|
338
|
-
borderColor: AppColors.dividerColor,
|
|
339
|
-
},
|
|
340
|
-
ratingHeader: {
|
|
341
|
-
flexDirection: 'row',
|
|
342
|
-
justifyContent: 'space-between',
|
|
343
|
-
alignItems: 'center',
|
|
344
|
-
marginBottom: 8,
|
|
345
|
-
},
|
|
346
|
-
ratingTitle: {
|
|
347
|
-
fontFamily: AppFonts.interSemiBold,
|
|
348
|
-
fontSize: 12.5,
|
|
349
|
-
color: AppColors.primaryBlack,
|
|
350
|
-
},
|
|
351
|
-
ratingBadge: {
|
|
352
|
-
fontFamily: AppFonts.interSemiBold,
|
|
353
|
-
fontSize: 11,
|
|
354
|
-
color: '#D97706',
|
|
355
|
-
backgroundColor: '#FEF3C7',
|
|
356
|
-
paddingHorizontal: 8,
|
|
357
|
-
paddingVertical: 2,
|
|
358
|
-
borderRadius: 6,
|
|
359
|
-
},
|
|
360
|
-
starsRow: {
|
|
361
|
-
flexDirection: 'row',
|
|
362
|
-
alignItems: 'center',
|
|
363
|
-
gap: 12,
|
|
364
|
-
paddingVertical: 4,
|
|
365
|
-
},
|
|
366
|
-
starTouch: {
|
|
367
|
-
padding: 2,
|
|
368
|
-
},
|
|
369
|
-
inputWrapper: {
|
|
370
|
-
backgroundColor: AppColors.grayBackground,
|
|
371
|
-
borderRadius: 10,
|
|
372
|
-
borderWidth: 1,
|
|
373
|
-
borderColor: AppColors.dividerColor,
|
|
374
|
-
paddingHorizontal: 12,
|
|
375
|
-
paddingVertical: 8,
|
|
376
|
-
},
|
|
377
|
-
textareaWrapper: {
|
|
378
|
-
minHeight: 88,
|
|
379
|
-
paddingVertical: 10,
|
|
380
|
-
},
|
|
381
|
-
textInput: {
|
|
382
|
-
fontFamily: AppFonts.interRegular,
|
|
383
|
-
fontSize: 13,
|
|
384
|
-
color: AppColors.primaryBlack,
|
|
385
|
-
padding: 0,
|
|
386
|
-
},
|
|
387
|
-
textarea: {
|
|
388
|
-
height: 72,
|
|
389
|
-
},
|
|
390
|
-
diagnosticsToggle: {
|
|
391
|
-
flexDirection: 'row',
|
|
392
|
-
alignItems: 'center',
|
|
393
|
-
justifyContent: 'space-between',
|
|
394
|
-
backgroundColor: `${AppColors.purple}10`,
|
|
395
|
-
borderRadius: 8,
|
|
396
|
-
paddingHorizontal: 12,
|
|
397
|
-
paddingVertical: 9,
|
|
398
|
-
marginTop: 14,
|
|
399
|
-
borderWidth: 1,
|
|
400
|
-
borderColor: `${AppColors.purple}25`,
|
|
401
|
-
},
|
|
402
|
-
diagnosticsHeader: {
|
|
403
|
-
flexDirection: 'row',
|
|
404
|
-
alignItems: 'center',
|
|
405
|
-
gap: 8,
|
|
406
|
-
flex: 1,
|
|
407
|
-
},
|
|
408
|
-
diagnosticsTitle: {
|
|
409
|
-
fontFamily: AppFonts.interMedium,
|
|
410
|
-
fontSize: 11.5,
|
|
411
|
-
color: AppColors.purple,
|
|
412
|
-
},
|
|
413
|
-
diagnosticsArrow: {
|
|
414
|
-
fontSize: 10,
|
|
415
|
-
color: AppColors.purple,
|
|
416
|
-
},
|
|
417
|
-
diagnosticsBox: {
|
|
418
|
-
backgroundColor: '#1E1B2E',
|
|
419
|
-
borderRadius: 8,
|
|
420
|
-
padding: 10,
|
|
421
|
-
marginTop: 6,
|
|
422
|
-
borderWidth: 1,
|
|
423
|
-
borderColor: AppColors.dividerColor,
|
|
424
|
-
},
|
|
425
|
-
diagnosticsText: {
|
|
426
|
-
fontFamily: AppFonts.interRegular,
|
|
427
|
-
fontSize: 11,
|
|
428
|
-
color: '#E2DFEB',
|
|
429
|
-
lineHeight: 17,
|
|
430
|
-
},
|
|
431
|
-
recipientBadge: {
|
|
432
|
-
marginTop: 12,
|
|
433
|
-
paddingVertical: 6,
|
|
434
|
-
paddingHorizontal: 10,
|
|
435
|
-
borderRadius: 6,
|
|
436
|
-
backgroundColor: AppColors.grayBackground,
|
|
437
|
-
borderWidth: 1,
|
|
438
|
-
borderColor: AppColors.dividerColor,
|
|
439
|
-
alignSelf: 'flex-start',
|
|
440
|
-
},
|
|
441
|
-
recipientText: {
|
|
442
|
-
fontFamily: AppFonts.interRegular,
|
|
443
|
-
fontSize: 11,
|
|
444
|
-
color: AppColors.grayText,
|
|
445
|
-
},
|
|
446
|
-
recipientHighlight: {
|
|
447
|
-
fontFamily: AppFonts.interSemiBold,
|
|
448
|
-
color: AppColors.purple,
|
|
449
|
-
},
|
|
450
|
-
footer: {
|
|
451
|
-
flexDirection: 'row',
|
|
452
|
-
alignItems: 'center',
|
|
453
|
-
justifyContent: 'space-between',
|
|
454
|
-
paddingHorizontal: 14,
|
|
455
|
-
paddingTop: 10,
|
|
456
|
-
paddingBottom: 14,
|
|
457
|
-
borderTopWidth: 1,
|
|
458
|
-
borderTopColor: AppColors.dividerColor,
|
|
459
|
-
backgroundColor: AppColors.primaryLight,
|
|
460
|
-
},
|
|
461
|
-
copyDraftBtn: {
|
|
462
|
-
flexDirection: 'row',
|
|
463
|
-
alignItems: 'center',
|
|
464
|
-
gap: 5,
|
|
465
|
-
paddingVertical: 8,
|
|
466
|
-
paddingHorizontal: 10,
|
|
467
|
-
borderRadius: 8,
|
|
468
|
-
backgroundColor: AppColors.grayBackground,
|
|
469
|
-
borderWidth: 1,
|
|
470
|
-
borderColor: AppColors.dividerColor,
|
|
471
|
-
},
|
|
472
|
-
copyDraftBtnText: {
|
|
473
|
-
fontFamily: AppFonts.interMedium,
|
|
474
|
-
fontSize: 11.5,
|
|
475
|
-
color: AppColors.grayText,
|
|
476
|
-
},
|
|
477
|
-
footerRight: {
|
|
478
|
-
flexDirection: 'row',
|
|
479
|
-
alignItems: 'center',
|
|
480
|
-
gap: 8,
|
|
481
|
-
},
|
|
482
|
-
cancelBtn: {
|
|
483
|
-
paddingVertical: 8,
|
|
484
|
-
paddingHorizontal: 14,
|
|
485
|
-
borderRadius: 8,
|
|
486
|
-
backgroundColor: AppColors.grayBackground,
|
|
487
|
-
borderWidth: 1,
|
|
488
|
-
borderColor: AppColors.dividerColor,
|
|
489
|
-
},
|
|
490
|
-
cancelBtnText: {
|
|
491
|
-
fontFamily: AppFonts.interMedium,
|
|
492
|
-
fontSize: 12.5,
|
|
493
|
-
color: AppColors.grayText,
|
|
494
|
-
},
|
|
495
|
-
submitBtn: {
|
|
496
|
-
flexDirection: 'row',
|
|
497
|
-
alignItems: 'center',
|
|
498
|
-
gap: 6,
|
|
499
|
-
backgroundColor: AppColors.purple,
|
|
500
|
-
paddingVertical: 8,
|
|
501
|
-
paddingHorizontal: 15,
|
|
502
|
-
borderRadius: 8,
|
|
503
|
-
shadowColor: AppColors.purple,
|
|
504
|
-
shadowOffset: { width: 0, height: 2 },
|
|
505
|
-
shadowOpacity: 0.35,
|
|
506
|
-
shadowRadius: 6,
|
|
507
|
-
elevation: 4,
|
|
508
|
-
},
|
|
509
|
-
submitBtnText: {
|
|
510
|
-
fontFamily: AppFonts.interSemiBold,
|
|
511
|
-
fontSize: 12.5,
|
|
512
|
-
color: AppColors.white,
|
|
513
|
-
},
|
|
514
|
-
});
|
|
515
|
-
export default FeedbackModal;
|
|
165
|
+
|
|
166
|
+
<Ce style={e.pickerListScroll}contentContainerStyle={{paddingBottom:20}}showsVerticalScrollIndicator={!1}keyboardShouldPersistTaps="handled">
|
|
167
|
+
{oe.length===0?<S style={e.emptySearchWrap}>
|
|
168
|
+
<C style={e.emptySearchText}>
|
|
169
|
+
No modules match "{L}"
|
|
170
|
+
</C>
|
|
171
|
+
</S>:oe.map(t=>{const r=t.id===I;return<R key={t.id}onPress={()=>Ee(t)}style={[e.pickerItemCard,r&&[e.pickerItemCardSelected,{borderColor:t.color,backgroundColor:`${t.color}0E`}]]}>
|
|
172
|
+
<S style={[e.pickerItemIconBox,{backgroundColor:`${t.color}1C`}]}>
|
|
173
|
+
<C style={e.moduleIconText}>{t.icon}</C>
|
|
174
|
+
</S>
|
|
175
|
+
<S style={{flex:1,minWidth:0}}>
|
|
176
|
+
<S style={e.pickerItemTitleRow}>
|
|
177
|
+
<C style={[e.pickerItemTitle,r&&{color:t.color,fontFamily:k.interBold}]}>
|
|
178
|
+
{t.name}
|
|
179
|
+
</C>
|
|
180
|
+
<S style={[e.moduleCategoryBadge,{backgroundColor:`${t.color}18`}]}>
|
|
181
|
+
<C style={[e.moduleCategoryBadgeText,{color:t.color}]}>
|
|
182
|
+
{t.category}
|
|
183
|
+
</C>
|
|
184
|
+
</S>
|
|
185
|
+
</S>
|
|
186
|
+
<C style={e.pickerItemDesc}numberOfLines={2}>
|
|
187
|
+
{t.description}
|
|
188
|
+
</C>
|
|
189
|
+
</S>
|
|
190
|
+
{r&&<S style={[e.pickerItemCheck,{backgroundColor:`${t.color}25`}]}>
|
|
191
|
+
<Te size={12}color={t.color}/>
|
|
192
|
+
</S>}
|
|
193
|
+
</R>})}
|
|
194
|
+
</Ce>
|
|
195
|
+
</S>
|
|
196
|
+
</S>
|
|
197
|
+
</Ge>
|
|
198
|
+
</S>};const e=ke.create({container:{flex:1,backgroundColor:o.primaryLight},bannerBar:{flexDirection:"row",alignItems:"center",gap:12,backgroundColor:`${o.purple}10`,paddingHorizontal:16,paddingVertical:12,borderBottomWidth:1,borderBottomColor:`${o.purple}20`},bannerIconBox:{width:36,height:36,borderRadius:10,backgroundColor:`${o.purple}20`,alignItems:"center",justifyContent:"center"},bannerTitleRow:{flexDirection:"row",alignItems:"center",gap:8},bannerTitle:{fontFamily:k.interBold,fontSize:13.5,lineHeight:18,color:o.purple},livePill:{flexDirection:"row",alignItems:"center",gap:4,backgroundColor:`${o.liveGreen}20`,paddingHorizontal:6,paddingVertical:1.5,borderRadius:10,borderWidth:1,borderColor:`${o.liveGreen}40`},liveDot:{width:5,height:5,borderRadius:2.5,backgroundColor:o.liveGreen},liveText:{fontFamily:k.interBold,fontSize:8.5,color:o.liveGreen},bannerSub:{fontFamily:k.interRegular,fontSize:11,lineHeight:15,color:o.grayText,marginTop:2},scrollContent:{flex:1},scrollInner:{paddingHorizontal:16,paddingTop:14,paddingBottom:24},sectionLabel:{fontFamily:k.interBold,fontSize:10.5,color:o.grayTextStrong,letterSpacing:.6,marginBottom:8},sectionHeaderRow:{flexDirection:"row",justifyContent:"space-between",alignItems:"center",marginTop:14,marginBottom:8},clearChipsText:{fontFamily:k.interSemiBold,fontSize:11,color:o.purple},moduleTriggerCard:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",backgroundColor:o.grayBackground,borderRadius:12,borderWidth:1.5,borderColor:o.dividerColor,paddingHorizontal:12,paddingVertical:10,marginBottom:8,shadowColor:o.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:k.interBold,fontSize:13,color:o.primaryBlack},moduleCategoryBadge:{paddingHorizontal:6,paddingVertical:1.5,borderRadius:6},moduleCategoryBadgeText:{fontFamily:k.interSemiBold,fontSize:9,letterSpacing:.2},moduleDescText:{fontFamily:k.interRegular,fontSize:10.5,color:o.grayTextWeak,marginTop:2},changeBadge:{flexDirection:"row",alignItems:"center",gap:3,backgroundColor:`${o.purple}14`,paddingHorizontal:8,paddingVertical:4.5,borderRadius:8,borderWidth:1,borderColor:`${o.purple}30`},changeBadgeText:{fontFamily:k.interSemiBold,fontSize:10.5,color:o.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:o.grayBackground,borderWidth:1.2,borderColor:o.dividerColor},presetChipSelected:{shadowColor:o.black,shadowOffset:{width:0,height:1},shadowOpacity:.05,shadowRadius:2,elevation:1},presetChipCheck:{fontFamily:k.interBold,fontSize:11,color:o.grayTextWeak},presetChipText:{fontFamily:k.interMedium,fontSize:11.5,lineHeight:15,color:o.primaryBlack},presetChipTextSelected:{fontFamily:k.interSemiBold},categoryGrid:{flexDirection:"row",flexWrap:"wrap",gap:8,marginBottom:14},categoryChip:{flexDirection:"row",alignItems:"center",gap:6,paddingVertical:7,paddingHorizontal:12,borderRadius:10,backgroundColor:o.grayBackground,borderWidth:1.5,borderColor:o.dividerColor},categoryIcon:{fontSize:13},categoryText:{fontFamily:k.interMedium,fontSize:12,lineHeight:16,color:o.grayText},moodCard:{backgroundColor:o.grayBackground,borderRadius:12,padding:8,marginBottom:14,borderWidth:1,borderColor:o.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:o.black,shadowOffset:{width:0,height:1},shadowOpacity:.06,shadowRadius:2,elevation:1},moodEmoji:{fontSize:22,marginBottom:4},moodLabel:{fontFamily:k.interMedium,fontSize:9.5,color:o.grayText,textAlign:"center"},inputWrapper:{backgroundColor:o.grayBackground,borderRadius:10,borderWidth:1,borderColor:o.dividerColor,paddingHorizontal:12,paddingVertical:8,minHeight:70,marginBottom:12},textInput:{fontFamily:k.interRegular,fontSize:12.5,lineHeight:18,color:o.primaryBlack,padding:0,minHeight:54},diagnosticsPill:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",backgroundColor:`${o.purple}0C`,borderRadius:8,paddingHorizontal:12,paddingVertical:8,borderWidth:1,borderColor:`${o.purple}20`},diagnosticsLeft:{flexDirection:"row",alignItems:"center",gap:7,flex:1,marginRight:6},diagnosticsPillTitle:{fontFamily:k.interMedium,fontSize:11,color:o.purple,flexShrink:1},diagnosticsArrow:{fontFamily:k.interSemiBold,fontSize:10.5,color:o.purple},diagnosticsBox:{backgroundColor:"#1E1B2E",borderRadius:8,padding:10,marginTop:6,borderWidth:1,borderColor:o.dividerColor},diagnosticsText:{fontFamily:k.interRegular,fontSize:11,color:"#E2DFEB",lineHeight:17},footer:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:16,paddingTop:10,paddingBottom:V.OS==="ios"?34:14,borderTopWidth:1,borderTopColor:o.dividerColor,backgroundColor:o.primaryLight,gap:10},footerLeft:{flexDirection:"row",alignItems:"center",gap:8},actionPillBtn:{flexDirection:"row",alignItems:"center",gap:5,paddingVertical:8,paddingHorizontal:11,borderRadius:8,backgroundColor:o.grayBackground,borderWidth:1,borderColor:o.dividerColor},githubPillBtn:{backgroundColor:`${o.black}08`},actionPillText:{fontFamily:k.interSemiBold,fontSize:11.5,color:o.grayTextStrong},primarySubmitBtn:{flex:1,flexDirection:"row",alignItems:"center",justifyContent:"center",gap:6,backgroundColor:o.purple,paddingVertical:9,paddingHorizontal:14,borderRadius:8,shadowColor:o.purple,shadowOffset:{width:0,height:2},shadowOpacity:.35,shadowRadius:6,elevation:4},primarySubmitBtnText:{fontFamily:k.interBold,fontSize:12.5,color:o.white},modalOverlay:{flex:1,justifyContent:"flex-end",backgroundColor:"rgba(0, 0, 0, 0.55)"},modalBackdrop:{...ke.absoluteFillObject},pickerModalContainer:{backgroundColor:o.primaryLight,borderTopLeftRadius:20,borderTopRightRadius:20,maxHeight:"82%",paddingHorizontal:16,paddingTop:16,paddingBottom:V.OS==="ios"?34:16,shadowColor:o.black,shadowOffset:{width:0,height:-4},shadowOpacity:.15,shadowRadius:10,elevation:20},pickerHeader:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:12},pickerHeaderTitle:{fontFamily:k.interBold,fontSize:15,color:o.primaryBlack},pickerHeaderSub:{fontFamily:k.interRegular,fontSize:11,color:o.grayText,marginTop:1},pickerCloseBtn:{width:28,height:28,borderRadius:14,backgroundColor:`${o.black}15`,alignItems:"center",justifyContent:"center"},pickerSearchWrapper:{flexDirection:"row",alignItems:"center",backgroundColor:o.grayBackground,borderRadius:10,borderWidth:1,borderColor:o.dividerColor,paddingHorizontal:10,paddingVertical:8,gap:8,marginBottom:12},pickerSearchInput:{flex:1,fontFamily:k.interRegular,fontSize:13,color:o.primaryBlack,padding:0},pickerClearSearchText:{fontFamily:k.interBold,fontSize:12,color:o.grayTextWeak,paddingHorizontal:4},pickerListScroll:{maxHeight:380},emptySearchWrap:{paddingVertical:24,alignItems:"center",justifyContent:"center"},emptySearchText:{fontFamily:k.interMedium,fontSize:12,color:o.grayTextWeak},pickerItemCard:{flexDirection:"row",alignItems:"center",gap:12,padding:10,borderRadius:10,backgroundColor:o.grayBackground,borderWidth:1.5,borderColor:o.dividerColor,marginBottom:8},pickerItemCardSelected:{shadowColor:o.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:k.interSemiBold,fontSize:12.5,color:o.primaryBlack},pickerItemDesc:{fontFamily:k.interRegular,fontSize:10.5,lineHeight:14,color:o.grayTextWeak},pickerItemCheck:{width:22,height:22,borderRadius:11,alignItems:"center",justifyContent:"center"}});export default FeedbackModal;
|