react-native-inapp-inspector 2.4.0 → 2.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.ar.md +163 -0
- package/README.de.md +163 -0
- package/README.es.md +164 -0
- package/README.fr.md +163 -0
- package/README.hi.md +163 -0
- package/README.ja.md +180 -0
- package/README.ko.md +163 -0
- package/README.md +340 -243
- package/README.pt-BR.md +163 -0
- package/README.ru.md +163 -0
- package/README.zh-CN.md +387 -0
- package/android/src/main/java/com/inappinspector/NetworkInspectorModule.kt +82 -21
- package/assets/banner_dark.svg +186 -0
- package/assets/banner_light.svg +186 -0
- package/assets/icon_circle.svg +148 -0
- package/assets/icon_square.svg +369 -0
- package/assets/inapp_inspector_icon.gif +0 -0
- package/assets/inapp_inspector_icon_original.gif +0 -0
- package/assets/social_preview.png +0 -0
- package/assets/walkthrough.gif +0 -0
- package/dist/commonjs/components/AnimatedBrandOwl.d.ts +7 -0
- package/dist/commonjs/components/AnimatedBrandOwl.js +175 -0
- package/dist/commonjs/components/AppHeaderLogo.d.ts +1 -0
- package/dist/commonjs/components/AppHeaderLogo.js +7 -5
- package/dist/commonjs/components/BrandSquareIcon.d.ts +5 -0
- package/dist/commonjs/components/BrandSquareIcon.js +139 -0
- package/dist/commonjs/components/ConsoleLogCard.d.ts +2 -1
- package/dist/commonjs/components/ConsoleLogCard.js +23 -39
- package/dist/commonjs/components/Inspector/AboutModal.js +44 -54
- package/dist/commonjs/components/Inspector/AnalyticsTab.js +16 -16
- package/dist/commonjs/components/Inspector/ConfirmationModal.d.ts +13 -0
- package/dist/commonjs/components/Inspector/ConfirmationModal.js +32 -0
- package/dist/commonjs/components/Inspector/ConsoleTab.js +15 -15
- package/dist/commonjs/components/Inspector/CrashTab.js +25 -23
- package/dist/commonjs/components/Inspector/DebuggingTab.js +17 -17
- package/dist/commonjs/components/Inspector/FabLauncher.js +22 -30
- package/dist/commonjs/components/Inspector/FeatureUnderDevNotice.js +2 -2
- package/dist/commonjs/components/Inspector/LanguageSelectorModal.d.ts +15 -0
- package/dist/commonjs/components/Inspector/LanguageSelectorModal.js +90 -0
- package/dist/commonjs/components/Inspector/MainScreen.js +46 -33
- package/dist/commonjs/components/Inspector/MediaGalleryTab.js +21 -19
- package/dist/commonjs/components/Inspector/MediaPreviewModal.js +85 -101
- package/dist/commonjs/components/Inspector/NetworkTab.js +50 -50
- package/dist/commonjs/components/Inspector/NpmUpdateToast.js +1 -1
- package/dist/commonjs/components/Inspector/PushCard.d.ts +3 -2
- package/dist/commonjs/components/Inspector/PushCard.js +5 -4
- package/dist/commonjs/components/Inspector/PushDetail.js +32 -23
- package/dist/commonjs/components/Inspector/PushTab.js +13 -13
- package/dist/commonjs/components/Inspector/ReduxDetail.js +32 -32
- package/dist/commonjs/components/Inspector/ReduxTab.js +14 -14
- package/dist/commonjs/components/Inspector/SettingsPanel.js +258 -139
- package/dist/commonjs/components/Inspector/SocketCard.d.ts +5 -0
- package/dist/commonjs/components/Inspector/SocketCard.js +116 -0
- package/dist/commonjs/components/Inspector/SocketDetail.d.ts +4 -0
- package/dist/commonjs/components/Inspector/SocketDetail.js +317 -0
- package/dist/commonjs/components/Inspector/SocketFilterModal.d.ts +13 -0
- package/dist/commonjs/components/Inspector/SocketFilterModal.js +69 -0
- package/dist/commonjs/components/Inspector/SocketTab.d.ts +3 -0
- package/dist/commonjs/components/Inspector/SocketTab.js +112 -0
- package/dist/commonjs/components/Inspector/StorageTab.js +34 -32
- package/dist/commonjs/components/Inspector/SupportModal.d.ts +7 -0
- package/dist/commonjs/components/Inspector/SupportModal.js +125 -0
- package/dist/commonjs/components/Inspector/SupportPage.d.ts +5 -0
- package/dist/commonjs/components/Inspector/SupportPage.js +227 -0
- package/dist/commonjs/components/Inspector/TabBar.js +24 -23
- package/dist/commonjs/components/Inspector/UpdateAvailableModal.js +24 -24
- package/dist/commonjs/components/JsonViewer.js +7 -7
- package/dist/commonjs/components/LogCard.d.ts +3 -2
- package/dist/commonjs/components/LogCard.js +17 -14
- package/dist/commonjs/components/LogSyntaxHighlighter.js +5 -5
- package/dist/commonjs/components/ModuleErrorBoundary.js +2 -2
- package/dist/commonjs/components/NetworkIcons.d.ts +15 -0
- package/dist/commonjs/components/NetworkIcons.js +38 -3
- package/dist/commonjs/components/SegmentedTabs.js +1 -1
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -1
- package/dist/commonjs/customHooks/socketLogger.d.ts +26 -0
- package/dist/commonjs/customHooks/socketLogger.js +2 -0
- package/dist/commonjs/helpers/index.js +3 -3
- package/dist/commonjs/helpers/memoryManager.d.ts +1 -0
- package/dist/commonjs/helpers/memoryManager.js +1 -1
- package/dist/commonjs/helpers/searchQueryParser.d.ts +1 -1
- package/dist/commonjs/helpers/searchQueryParser.js +5 -1
- package/dist/commonjs/helpers/settingsStore.d.ts +1 -0
- package/dist/commonjs/helpers/settingsStore.js +1 -1
- package/dist/commonjs/helpers/shareFormatter.d.ts +3 -1
- package/dist/commonjs/helpers/shareFormatter.js +8 -7
- package/dist/commonjs/i18n/index.d.ts +99 -1
- package/dist/commonjs/i18n/index.js +1 -1
- package/dist/commonjs/i18n/locales/ar.json +1 -1
- package/dist/commonjs/i18n/locales/bn.json +1 -0
- package/dist/commonjs/i18n/locales/de.json +1 -1
- package/dist/commonjs/i18n/locales/en.json +1 -1
- package/dist/commonjs/i18n/locales/es.json +1 -1
- package/dist/commonjs/i18n/locales/fr.json +1 -1
- package/dist/commonjs/i18n/locales/gu.json +1 -0
- package/dist/commonjs/i18n/locales/hi.json +1 -1
- package/dist/commonjs/i18n/locales/id.json +1 -0
- package/dist/commonjs/i18n/locales/it.json +1 -0
- package/dist/commonjs/i18n/locales/ja.json +1 -1
- package/dist/commonjs/i18n/locales/kn.json +1 -0
- package/dist/commonjs/i18n/locales/ko.json +1 -1
- package/dist/commonjs/i18n/locales/ml.json +1 -0
- package/dist/commonjs/i18n/locales/mr.json +1 -0
- package/dist/commonjs/i18n/locales/nl.json +1 -0
- package/dist/commonjs/i18n/locales/pa.json +1 -0
- package/dist/commonjs/i18n/locales/pl.json +1 -0
- package/dist/commonjs/i18n/locales/pt.json +1 -1
- package/dist/commonjs/i18n/locales/ru.json +1 -1
- package/dist/commonjs/i18n/locales/ta.json +1 -0
- package/dist/commonjs/i18n/locales/te.json +1 -0
- package/dist/commonjs/i18n/locales/tr.json +1 -0
- package/dist/commonjs/i18n/locales/vi.json +1 -0
- package/dist/commonjs/i18n/locales/zh.json +1 -1
- package/dist/commonjs/index.d.ts +13 -13
- package/dist/commonjs/index.js +5 -4
- package/dist/commonjs/native/NativeInspector.d.ts +1 -0
- package/dist/commonjs/socket.d.ts +4 -0
- package/dist/commonjs/socket.js +1 -0
- package/dist/commonjs/styles/index.d.ts +23 -0
- package/dist/commonjs/styles/index.js +1 -1
- package/dist/commonjs/types/enums.d.ts +40 -0
- package/dist/commonjs/types/enums.js +1 -1
- package/dist/commonjs/types/interfaces.d.ts +122 -1
- package/dist/esm/components/AnimatedBrandOwl.d.ts +7 -0
- package/dist/esm/components/AnimatedBrandOwl.js +175 -0
- package/dist/esm/components/AppHeaderLogo.d.ts +1 -0
- package/dist/esm/components/AppHeaderLogo.js +7 -5
- package/dist/esm/components/BrandSquareIcon.d.ts +5 -0
- package/dist/esm/components/BrandSquareIcon.js +139 -0
- package/dist/esm/components/ConsoleLogCard.d.ts +2 -1
- package/dist/esm/components/ConsoleLogCard.js +61 -77
- package/dist/esm/components/Inspector/AboutModal.js +85 -95
- package/dist/esm/components/Inspector/AnalyticsTab.js +31 -31
- package/dist/esm/components/Inspector/ConfirmationModal.d.ts +13 -0
- package/dist/esm/components/Inspector/ConfirmationModal.js +32 -0
- package/dist/esm/components/Inspector/ConsoleTab.js +49 -49
- package/dist/esm/components/Inspector/CrashTab.js +40 -38
- package/dist/esm/components/Inspector/DebuggingTab.js +29 -29
- package/dist/esm/components/Inspector/FabLauncher.js +50 -58
- package/dist/esm/components/Inspector/FeatureUnderDevNotice.js +7 -7
- package/dist/esm/components/Inspector/LanguageSelectorModal.d.ts +15 -0
- package/dist/esm/components/Inspector/LanguageSelectorModal.js +90 -0
- package/dist/esm/components/Inspector/MainScreen.js +123 -110
- package/dist/esm/components/Inspector/MediaGalleryTab.js +64 -62
- package/dist/esm/components/Inspector/MediaPreviewModal.js +107 -123
- package/dist/esm/components/Inspector/NetworkTab.js +90 -90
- package/dist/esm/components/Inspector/NpmUpdateToast.js +1 -1
- package/dist/esm/components/Inspector/PushCard.d.ts +3 -2
- package/dist/esm/components/Inspector/PushCard.js +23 -22
- package/dist/esm/components/Inspector/PushDetail.js +34 -25
- package/dist/esm/components/Inspector/PushTab.js +25 -25
- package/dist/esm/components/Inspector/ReduxDetail.js +42 -42
- package/dist/esm/components/Inspector/ReduxTab.js +35 -35
- package/dist/esm/components/Inspector/SettingsPanel.js +495 -376
- package/dist/esm/components/Inspector/SocketCard.d.ts +5 -0
- package/dist/esm/components/Inspector/SocketCard.js +116 -0
- package/dist/esm/components/Inspector/SocketDetail.d.ts +4 -0
- package/dist/esm/components/Inspector/SocketDetail.js +317 -0
- package/dist/esm/components/Inspector/SocketFilterModal.d.ts +13 -0
- package/dist/esm/components/Inspector/SocketFilterModal.js +69 -0
- package/dist/esm/components/Inspector/SocketTab.d.ts +3 -0
- package/dist/esm/components/Inspector/SocketTab.js +112 -0
- package/dist/esm/components/Inspector/StorageTab.js +136 -134
- package/dist/esm/components/Inspector/SupportModal.d.ts +7 -0
- package/dist/esm/components/Inspector/SupportModal.js +125 -0
- package/dist/esm/components/Inspector/SupportPage.d.ts +5 -0
- package/dist/esm/components/Inspector/SupportPage.js +227 -0
- package/dist/esm/components/Inspector/TabBar.js +36 -35
- package/dist/esm/components/Inspector/UpdateAvailableModal.js +22 -22
- package/dist/esm/components/JsonViewer.js +55 -55
- package/dist/esm/components/LogCard.d.ts +3 -2
- package/dist/esm/components/LogCard.js +61 -58
- package/dist/esm/components/LogSyntaxHighlighter.js +5 -5
- package/dist/esm/components/ModuleErrorBoundary.js +23 -23
- package/dist/esm/components/NetworkIcons.d.ts +15 -0
- package/dist/esm/components/NetworkIcons.js +38 -3
- package/dist/esm/components/SegmentedTabs.js +7 -7
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/customHooks/socketLogger.d.ts +26 -0
- package/dist/esm/customHooks/socketLogger.js +2 -0
- package/dist/esm/helpers/index.js +3 -3
- package/dist/esm/helpers/memoryManager.d.ts +1 -0
- package/dist/esm/helpers/memoryManager.js +1 -1
- package/dist/esm/helpers/searchQueryParser.d.ts +1 -1
- package/dist/esm/helpers/searchQueryParser.js +5 -1
- package/dist/esm/helpers/settingsStore.d.ts +1 -0
- package/dist/esm/helpers/settingsStore.js +1 -1
- package/dist/esm/helpers/shareFormatter.d.ts +3 -1
- package/dist/esm/helpers/shareFormatter.js +8 -7
- package/dist/esm/i18n/index.d.ts +99 -1
- package/dist/esm/i18n/index.js +1 -1
- package/dist/esm/i18n/locales/ar.json +1 -1
- package/dist/esm/i18n/locales/bn.json +1 -0
- package/dist/esm/i18n/locales/de.json +1 -1
- package/dist/esm/i18n/locales/en.json +1 -1
- package/dist/esm/i18n/locales/es.json +1 -1
- package/dist/esm/i18n/locales/fr.json +1 -1
- package/dist/esm/i18n/locales/gu.json +1 -0
- package/dist/esm/i18n/locales/hi.json +1 -1
- package/dist/esm/i18n/locales/id.json +1 -0
- package/dist/esm/i18n/locales/it.json +1 -0
- package/dist/esm/i18n/locales/ja.json +1 -1
- package/dist/esm/i18n/locales/kn.json +1 -0
- package/dist/esm/i18n/locales/ko.json +1 -1
- package/dist/esm/i18n/locales/ml.json +1 -0
- package/dist/esm/i18n/locales/mr.json +1 -0
- package/dist/esm/i18n/locales/nl.json +1 -0
- package/dist/esm/i18n/locales/pa.json +1 -0
- package/dist/esm/i18n/locales/pl.json +1 -0
- package/dist/esm/i18n/locales/pt.json +1 -1
- package/dist/esm/i18n/locales/ru.json +1 -1
- package/dist/esm/i18n/locales/ta.json +1 -0
- package/dist/esm/i18n/locales/te.json +1 -0
- package/dist/esm/i18n/locales/tr.json +1 -0
- package/dist/esm/i18n/locales/vi.json +1 -0
- package/dist/esm/i18n/locales/zh.json +1 -1
- package/dist/esm/index.d.ts +13 -13
- package/dist/esm/index.js +8 -7
- package/dist/esm/native/NativeInspector.d.ts +1 -0
- package/dist/esm/socket.d.ts +4 -0
- package/dist/esm/socket.js +1 -0
- package/dist/esm/styles/index.d.ts +23 -0
- package/dist/esm/styles/index.js +1 -1
- package/dist/esm/types/enums.d.ts +40 -0
- package/dist/esm/types/enums.js +1 -1
- package/dist/esm/types/interfaces.d.ts +122 -1
- package/ios/NetworkInspectorModule.mm +102 -12
- package/package.json +204 -2
- package/src/native/NativeInspector.ts +8 -0
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
"use strict";var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.SupportPage=void 0;const react_1=__importDefault(require("react")),react_native_1=require("react-native"),AppColors_1=require("../../styles/AppColors"),AppFonts_1=require("../../styles/AppFonts"),TouchableScale_1=__importDefault(require("../TouchableScale")),version_1=require("../../constants/version"),helpers_1=require("../../helpers"),i18n_1=require("../../i18n"),NativeInspector_1=require("../../native/NativeInspector"),NetworkIcons_1=require("../NetworkIcons"),SupportPage=()=>{const{t:e}=(0,i18n_1.useTranslation)(),o=async t=>{try{(0,NativeInspector_1.triggerNativeHaptic)("light"),await react_native_1.Linking.canOpenURL(t)&&await react_native_1.Linking.openURL(t)}catch{}},r=async()=>{try{(0,NativeInspector_1.triggerNativeHaptic)("medium"),await react_native_1.Share.share({title:"React Native In-App Inspector",message:`Check out react-native-inapp-inspector \u2014 the zero-config in-app debugger for React Native & Expo:
|
|
2
|
+
https://github.com/vengatmacuser/react-native-inapp-inspector`,url:"https://github.com/vengatmacuser/react-native-inapp-inspector"})}catch{}};return<react_native_1.View style={styles.container}>
|
|
3
|
+
<react_native_1.ScrollView style={styles.scrollView}contentContainerStyle={styles.scrollContent}showsVerticalScrollIndicator={!1}>
|
|
4
|
+
|
|
5
|
+
<react_native_1.View style={styles.heroCard}>
|
|
6
|
+
<react_native_1.View style={styles.heroHeaderRow}>
|
|
7
|
+
<react_native_1.View style={styles.heroIconBox}>
|
|
8
|
+
<NetworkIcons_1.HeartIcon color={AppColors_1.AppColors.red500}size={28}/>
|
|
9
|
+
</react_native_1.View>
|
|
10
|
+
<react_native_1.View style={styles.heroTitleCol}>
|
|
11
|
+
<react_native_1.View style={styles.heroTitleRow}>
|
|
12
|
+
<react_native_1.Text style={styles.heroTitle}>
|
|
13
|
+
{e("support.title","Support & Community")}
|
|
14
|
+
</react_native_1.Text>
|
|
15
|
+
<react_native_1.View style={styles.versionBadge}>
|
|
16
|
+
<react_native_1.Text style={styles.versionBadgeText}>v{version_1.LIB_VERSION}</react_native_1.Text>
|
|
17
|
+
</react_native_1.View>
|
|
18
|
+
</react_native_1.View>
|
|
19
|
+
<react_native_1.Text style={styles.heroSubTitle}>
|
|
20
|
+
{e("support.subtitle","React Native In-App Inspector")}
|
|
21
|
+
</react_native_1.Text>
|
|
22
|
+
</react_native_1.View>
|
|
23
|
+
</react_native_1.View>
|
|
24
|
+
|
|
25
|
+
<react_native_1.Text style={styles.heroDescription}>
|
|
26
|
+
{e("support.heroDescription","Crafted with passion to provide an all-in-one on-device debugging suite for mobile teams worldwide. Your sponsorship, stars, and feedback directly fuel continuous improvements, native architecture support, and rapid releases.")}
|
|
27
|
+
</react_native_1.Text>
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
<react_native_1.View style={styles.pillRow}>
|
|
31
|
+
<react_native_1.View style={styles.pillBadge}>
|
|
32
|
+
<react_native_1.Text style={styles.pillBadgeText}>MIT LICENSE</react_native_1.Text>
|
|
33
|
+
</react_native_1.View>
|
|
34
|
+
<react_native_1.View style={styles.pillBadge}>
|
|
35
|
+
<react_native_1.Text style={styles.pillBadgeText}>ZERO CONFIG</react_native_1.Text>
|
|
36
|
+
</react_native_1.View>
|
|
37
|
+
<react_native_1.View style={styles.pillBadge}>
|
|
38
|
+
<react_native_1.Text style={styles.pillBadgeText}>FABRIC & TURBO</react_native_1.Text>
|
|
39
|
+
</react_native_1.View>
|
|
40
|
+
</react_native_1.View>
|
|
41
|
+
</react_native_1.View>
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
<react_native_1.View style={styles.sponsorCard}>
|
|
45
|
+
<react_native_1.View style={styles.sponsorTopRow}>
|
|
46
|
+
<react_native_1.View style={styles.sponsorIconWrap}>
|
|
47
|
+
<NetworkIcons_1.HeartIcon color={AppColors_1.AppColors.red500}size={22}/>
|
|
48
|
+
</react_native_1.View>
|
|
49
|
+
<react_native_1.View style={styles.sponsorTextWrap}>
|
|
50
|
+
<react_native_1.View style={styles.sponsorTitleRow}>
|
|
51
|
+
<react_native_1.Text style={styles.sponsorTitle}>
|
|
52
|
+
{e("support.sponsor","Sponsor on GitHub")}
|
|
53
|
+
</react_native_1.Text>
|
|
54
|
+
<react_native_1.View style={styles.sponsorPill}>
|
|
55
|
+
<react_native_1.Text style={styles.sponsorPillText}>
|
|
56
|
+
{e("support.sponsorBadge","SPONSOR")}
|
|
57
|
+
</react_native_1.Text>
|
|
58
|
+
</react_native_1.View>
|
|
59
|
+
</react_native_1.View>
|
|
60
|
+
<react_native_1.Text style={styles.sponsorDesc}>
|
|
61
|
+
{e("support.sponsorDesc","Support ongoing maintenance, new features and release improvements.")}
|
|
62
|
+
</react_native_1.Text>
|
|
63
|
+
</react_native_1.View>
|
|
64
|
+
</react_native_1.View>
|
|
65
|
+
|
|
66
|
+
<react_native_1.View style={styles.sponsorActionsRow}>
|
|
67
|
+
<TouchableScale_1.default onPress={()=>o("https://github.com/sponsors/vengatmacuser")}style={styles.primarySponsorBtn}>
|
|
68
|
+
<NetworkIcons_1.HeartIcon color={AppColors_1.AppColors.white}size={15}/>
|
|
69
|
+
<react_native_1.Text style={styles.primarySponsorBtnText}>
|
|
70
|
+
{e("support.sponsorBtn","Become a Sponsor")}
|
|
71
|
+
</react_native_1.Text>
|
|
72
|
+
<NetworkIcons_1.ExternalLinkIcon size={12}color={AppColors_1.AppColors.white}/>
|
|
73
|
+
</TouchableScale_1.default>
|
|
74
|
+
|
|
75
|
+
<TouchableScale_1.default onPress={()=>{(0,helpers_1.copyToClipboard)("https://github.com/sponsors/vengatmacuser","Sponsor URL"),(0,helpers_1.showToast)(e("support.copiedSponsor","Copied GitHub Sponsors link!"))}}style={styles.secondaryBtn}>
|
|
76
|
+
<NetworkIcons_1.CopyIcon size={14}color={AppColors_1.AppColors.grayText}/>
|
|
77
|
+
<react_native_1.Text style={styles.secondaryBtnText}>
|
|
78
|
+
{e("common.copy","Copy Link")}
|
|
79
|
+
</react_native_1.Text>
|
|
80
|
+
</TouchableScale_1.default>
|
|
81
|
+
</react_native_1.View>
|
|
82
|
+
</react_native_1.View>
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
<react_native_1.View style={styles.sectionCard}>
|
|
86
|
+
<react_native_1.Text style={styles.sectionHeader}>
|
|
87
|
+
{e("support.waysToSupport","WAYS TO CONTRIBUTE & SUPPORT")}
|
|
88
|
+
</react_native_1.Text>
|
|
89
|
+
|
|
90
|
+
<react_native_1.View style={styles.actionsList}>
|
|
91
|
+
|
|
92
|
+
<TouchableScale_1.default onPress={()=>o("https://github.com/vengatmacuser/react-native-inapp-inspector")}style={styles.itemCard}>
|
|
93
|
+
<react_native_1.View style={[styles.itemIconWrap,styles.starIconWrap]}>
|
|
94
|
+
<NetworkIcons_1.StarIcon size={18}color={AppColors_1.AppColors.amber600}/>
|
|
95
|
+
</react_native_1.View>
|
|
96
|
+
<react_native_1.View style={styles.itemTextCol}>
|
|
97
|
+
<react_native_1.View style={styles.itemTitleRow}>
|
|
98
|
+
<react_native_1.Text style={styles.itemTitle}>
|
|
99
|
+
{e("support.star","Star on GitHub")}
|
|
100
|
+
</react_native_1.Text>
|
|
101
|
+
<react_native_1.View style={styles.badgeAmber}>
|
|
102
|
+
<react_native_1.Text style={styles.badgeAmberText}>RECOMMENDED</react_native_1.Text>
|
|
103
|
+
</react_native_1.View>
|
|
104
|
+
</react_native_1.View>
|
|
105
|
+
<react_native_1.Text style={styles.itemDesc}>
|
|
106
|
+
{e("support.starDesc","Star our repo to help more React Native developers discover this tool.")}
|
|
107
|
+
</react_native_1.Text>
|
|
108
|
+
</react_native_1.View>
|
|
109
|
+
<NetworkIcons_1.ExternalLinkIcon size={14}color={AppColors_1.AppColors.grayTextWeak}/>
|
|
110
|
+
</TouchableScale_1.default>
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
<TouchableScale_1.default onPress={()=>o("https://github.com/vengatmacuser/react-native-inapp-inspector/issues")}style={styles.itemCard}>
|
|
114
|
+
<react_native_1.View style={[styles.itemIconWrap,styles.bugIconWrap]}>
|
|
115
|
+
<NetworkIcons_1.BugIcon size={18}color={AppColors_1.AppColors.purple}/>
|
|
116
|
+
</react_native_1.View>
|
|
117
|
+
<react_native_1.View style={styles.itemTextCol}>
|
|
118
|
+
<react_native_1.Text style={styles.itemTitle}>
|
|
119
|
+
{e("support.issues","Report Issue / Suggestion")}
|
|
120
|
+
</react_native_1.Text>
|
|
121
|
+
<react_native_1.Text style={styles.itemDesc}>
|
|
122
|
+
{e("support.issuesDesc","Found a bug or have an idea? Open an issue on GitHub.")}
|
|
123
|
+
</react_native_1.Text>
|
|
124
|
+
</react_native_1.View>
|
|
125
|
+
<NetworkIcons_1.ExternalLinkIcon size={14}color={AppColors_1.AppColors.grayTextWeak}/>
|
|
126
|
+
</TouchableScale_1.default>
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
<TouchableScale_1.default onPress={()=>o("https://vengatmacuser.github.io/react-native-inapp-inspector/")}style={styles.itemCard}>
|
|
130
|
+
<react_native_1.View style={[styles.itemIconWrap,styles.docsIconWrap]}>
|
|
131
|
+
<NetworkIcons_1.BookOpenIcon size={18}color={AppColors_1.AppColors.sky600}/>
|
|
132
|
+
</react_native_1.View>
|
|
133
|
+
<react_native_1.View style={styles.itemTextCol}>
|
|
134
|
+
<react_native_1.Text style={styles.itemTitle}>
|
|
135
|
+
{e("support.docs","Official Documentation")}
|
|
136
|
+
</react_native_1.Text>
|
|
137
|
+
<react_native_1.Text style={styles.itemDesc}>
|
|
138
|
+
{e("support.docsDesc","Interactive feature tour, search syntax & configuration guides.")}
|
|
139
|
+
</react_native_1.Text>
|
|
140
|
+
</react_native_1.View>
|
|
141
|
+
<NetworkIcons_1.ExternalLinkIcon size={14}color={AppColors_1.AppColors.grayTextWeak}/>
|
|
142
|
+
</TouchableScale_1.default>
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
<TouchableScale_1.default onPress={()=>o("https://www.npmjs.com/package/react-native-inapp-inspector")}style={styles.itemCard}>
|
|
146
|
+
<react_native_1.View style={[styles.itemIconWrap,styles.npmIconWrap]}>
|
|
147
|
+
<NetworkIcons_1.NpmIcon size={18}color={AppColors_1.AppColors.red500}/>
|
|
148
|
+
</react_native_1.View>
|
|
149
|
+
<react_native_1.View style={styles.itemTextCol}>
|
|
150
|
+
<react_native_1.Text style={styles.itemTitle}>
|
|
151
|
+
{e("support.npmRegistry","NPM Package Registry")}
|
|
152
|
+
</react_native_1.Text>
|
|
153
|
+
<react_native_1.Text style={styles.itemDesc}>
|
|
154
|
+
{e("support.npmRegistryDesc","Explore published version release notes, tarball sizes, and install stats.")}
|
|
155
|
+
</react_native_1.Text>
|
|
156
|
+
</react_native_1.View>
|
|
157
|
+
<NetworkIcons_1.ExternalLinkIcon size={14}color={AppColors_1.AppColors.grayTextWeak}/>
|
|
158
|
+
</TouchableScale_1.default>
|
|
159
|
+
</react_native_1.View>
|
|
160
|
+
</react_native_1.View>
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
<react_native_1.View style={styles.sectionCard}>
|
|
164
|
+
<react_native_1.Text style={styles.sectionHeader}>
|
|
165
|
+
{e("support.shareTitle","SPREAD THE WORD")}
|
|
166
|
+
</react_native_1.Text>
|
|
167
|
+
<react_native_1.Text style={styles.shareSubtitle}>
|
|
168
|
+
{e("support.shareDesc","Help your engineering teammates and QA specialists debug network, console logs, and Redux faster.")}
|
|
169
|
+
</react_native_1.Text>
|
|
170
|
+
<react_native_1.View style={styles.shareButtonsRow}>
|
|
171
|
+
<TouchableScale_1.default onPress={r}style={styles.sharePrimaryBtn}>
|
|
172
|
+
<NetworkIcons_1.ShareIcon size={15}color={AppColors_1.AppColors.white}/>
|
|
173
|
+
<react_native_1.Text style={styles.sharePrimaryBtnText}>
|
|
174
|
+
{e("support.shareWithTeam","Share with Teammates")}
|
|
175
|
+
</react_native_1.Text>
|
|
176
|
+
</TouchableScale_1.default>
|
|
177
|
+
|
|
178
|
+
<TouchableScale_1.default onPress={()=>{(0,helpers_1.copyToClipboard)("https://github.com/vengatmacuser/react-native-inapp-inspector","Repository Link"),(0,helpers_1.showToast)(e("support.copiedRepo","Copied repository link!"))}}style={styles.shareSecondaryBtn}>
|
|
179
|
+
<NetworkIcons_1.CopyIcon size={14}color={AppColors_1.AppColors.grayText}/>
|
|
180
|
+
<react_native_1.Text style={styles.shareSecondaryBtnText}>
|
|
181
|
+
{e("support.copyRepo","Copy Repo URL")}
|
|
182
|
+
</react_native_1.Text>
|
|
183
|
+
</TouchableScale_1.default>
|
|
184
|
+
</react_native_1.View>
|
|
185
|
+
</react_native_1.View>
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
<react_native_1.View style={styles.authorCard}>
|
|
189
|
+
<react_native_1.Text style={styles.sectionHeader}>
|
|
190
|
+
{e("support.maintainer","PROJECT MAINTAINER")}
|
|
191
|
+
</react_native_1.Text>
|
|
192
|
+
<react_native_1.View style={styles.authorRow}>
|
|
193
|
+
<react_native_1.View style={styles.authorAvatar}>
|
|
194
|
+
<react_native_1.Text style={styles.authorAvatarText}>VB</react_native_1.Text>
|
|
195
|
+
</react_native_1.View>
|
|
196
|
+
<react_native_1.View style={styles.authorTextCol}>
|
|
197
|
+
<react_native_1.Text style={styles.authorName}>Vengateswaran Balakrishnan</react_native_1.Text>
|
|
198
|
+
<react_native_1.Text style={styles.authorRole}>
|
|
199
|
+
Creator & Core Maintainer • @vengatmacuser
|
|
200
|
+
</react_native_1.Text>
|
|
201
|
+
<react_native_1.Text style={styles.authorEmail}>vengatmacuser@gmail.com</react_native_1.Text>
|
|
202
|
+
</react_native_1.View>
|
|
203
|
+
</react_native_1.View>
|
|
204
|
+
|
|
205
|
+
<react_native_1.View style={styles.authorActionsRow}>
|
|
206
|
+
<TouchableScale_1.default onPress={()=>o("mailto:vengatmacuser@gmail.com")}style={styles.authorActionBtn}>
|
|
207
|
+
<react_native_1.Text style={styles.authorActionEmoji}>✉️</react_native_1.Text>
|
|
208
|
+
<react_native_1.Text style={styles.authorActionText}>
|
|
209
|
+
{e("support.sendEmail","Send Email")}
|
|
210
|
+
</react_native_1.Text>
|
|
211
|
+
</TouchableScale_1.default>
|
|
212
|
+
|
|
213
|
+
<TouchableScale_1.default onPress={()=>{(0,helpers_1.copyToClipboard)("vengatmacuser@gmail.com","Author Email"),(0,helpers_1.showToast)(e("support.copiedEmail","Copied email address!"))}}style={styles.authorActionBtn}>
|
|
214
|
+
<NetworkIcons_1.CopyIcon size={13}color={AppColors_1.AppColors.grayText}/>
|
|
215
|
+
<react_native_1.Text style={styles.authorActionText}>
|
|
216
|
+
{e("support.copyEmail","Copy Email")}
|
|
217
|
+
</react_native_1.Text>
|
|
218
|
+
</TouchableScale_1.default>
|
|
219
|
+
|
|
220
|
+
<TouchableScale_1.default onPress={()=>o("https://github.com/vengatmacuser")}style={styles.authorActionBtn}>
|
|
221
|
+
<NetworkIcons_1.GitHubIcon size={14}color={AppColors_1.AppColors.grayText}/>
|
|
222
|
+
<react_native_1.Text style={styles.authorActionText}>GitHub</react_native_1.Text>
|
|
223
|
+
</TouchableScale_1.default>
|
|
224
|
+
</react_native_1.View>
|
|
225
|
+
</react_native_1.View>
|
|
226
|
+
</react_native_1.ScrollView>
|
|
227
|
+
</react_native_1.View>};exports.SupportPage=SupportPage;const styles=react_native_1.StyleSheet.create({container:{flex:1,backgroundColor:AppColors_1.AppColors.primaryLight},scrollView:{flex:1},scrollContent:{padding:16,paddingBottom:react_native_1.Platform.OS==="ios"?44:24,gap:16},heroCard:{backgroundColor:AppColors_1.AppColors.white,borderRadius:16,padding:16,borderWidth:1,borderColor:`${AppColors_1.AppColors.red500}25`,...react_native_1.Platform.select({ios:{shadowColor:AppColors_1.AppColors.red500,shadowOffset:{width:0,height:4},shadowOpacity:.08,shadowRadius:10},android:{elevation:3}})},heroHeaderRow:{flexDirection:"row",alignItems:"center",gap:12,marginBottom:12},heroIconBox:{width:48,height:48,borderRadius:14,backgroundColor:`${AppColors_1.AppColors.red500}15`,borderWidth:1,borderColor:`${AppColors_1.AppColors.red500}30`,alignItems:"center",justifyContent:"center"},heroTitleCol:{flex:1},heroTitleRow:{flexDirection:"row",alignItems:"center",gap:8},heroTitle:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:18,color:AppColors_1.AppColors.slate900,letterSpacing:-.3},versionBadge:{backgroundColor:AppColors_1.AppColors.primaryLight,paddingHorizontal:7,paddingVertical:2,borderRadius:6,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary},versionBadgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10,color:AppColors_1.AppColors.grayText},heroSubTitle:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:12,color:AppColors_1.AppColors.grayTextWeak,marginTop:2},heroDescription:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:12.5,lineHeight:18,color:AppColors_1.AppColors.grayText,marginBottom:12},pillRow:{flexDirection:"row",alignItems:"center",gap:6,flexWrap:"wrap"},pillBadge:{backgroundColor:AppColors_1.AppColors.graySurface,paddingHorizontal:8,paddingVertical:3,borderRadius:6,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary},pillBadgeText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,letterSpacing:.4,color:AppColors_1.AppColors.grayTextWeak},sponsorCard:{backgroundColor:AppColors_1.AppColors.white,borderRadius:16,padding:16,borderWidth:1,borderColor:`${AppColors_1.AppColors.red500}35`,...react_native_1.Platform.select({ios:{shadowColor:AppColors_1.AppColors.red500,shadowOffset:{width:0,height:4},shadowOpacity:.1,shadowRadius:12},android:{elevation:3}})},sponsorTopRow:{flexDirection:"row",alignItems:"flex-start",gap:12},sponsorIconWrap:{width:42,height:42,borderRadius:12,backgroundColor:`${AppColors_1.AppColors.red500}18`,borderWidth:1,borderColor:`${AppColors_1.AppColors.red500}35`,alignItems:"center",justifyContent:"center"},sponsorTextWrap:{flex:1},sponsorTitleRow:{flexDirection:"row",alignItems:"center",gap:8},sponsorTitle:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:15,color:AppColors_1.AppColors.slate900},sponsorPill:{backgroundColor:`${AppColors_1.AppColors.red500}20`,paddingHorizontal:6,paddingVertical:2,borderRadius:6,borderWidth:1,borderColor:`${AppColors_1.AppColors.red500}40`},sponsorPillText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9,letterSpacing:.5,color:AppColors_1.AppColors.red500},sponsorDesc:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:12,lineHeight:17,color:AppColors_1.AppColors.grayText,marginTop:4},sponsorActionsRow:{flexDirection:"row",alignItems:"center",gap:8,marginTop:14},primarySponsorBtn:{flex:1,flexDirection:"row",alignItems:"center",justifyContent:"center",gap:6,backgroundColor:AppColors_1.AppColors.red500,paddingVertical:10,paddingHorizontal:12,borderRadius:10,...react_native_1.Platform.select({ios:{shadowColor:AppColors_1.AppColors.red500,shadowOffset:{width:0,height:3},shadowOpacity:.35,shadowRadius:6},android:{elevation:3}})},primarySponsorBtnText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12.5,color:AppColors_1.AppColors.white},secondaryBtn:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:5,backgroundColor:AppColors_1.AppColors.graySurface,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,paddingVertical:10,paddingHorizontal:12,borderRadius:10},secondaryBtnText:{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:12,color:AppColors_1.AppColors.grayText},sectionCard:{backgroundColor:AppColors_1.AppColors.white,borderRadius:16,padding:16,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,...react_native_1.Platform.select({ios:{shadowColor:AppColors_1.AppColors.slate900,shadowOffset:{width:0,height:2},shadowOpacity:.04,shadowRadius:6},android:{elevation:2}})},sectionHeader:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,letterSpacing:.6,color:AppColors_1.AppColors.grayTextWeak,marginBottom:12},actionsList:{gap:10},itemCard:{flexDirection:"row",alignItems:"center",gap:12,padding:12,borderRadius:12,backgroundColor:AppColors_1.AppColors.graySurface,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary},itemIconWrap:{width:38,height:38,borderRadius:10,alignItems:"center",justifyContent:"center"},starIconWrap:{backgroundColor:`${AppColors_1.AppColors.amber500}18`,borderWidth:1,borderColor:`${AppColors_1.AppColors.amber500}35`},bugIconWrap:{backgroundColor:`${AppColors_1.AppColors.purple}18`,borderWidth:1,borderColor:`${AppColors_1.AppColors.purple}35`},docsIconWrap:{backgroundColor:`${AppColors_1.AppColors.sky500}18`,borderWidth:1,borderColor:`${AppColors_1.AppColors.sky500}35`},npmIconWrap:{backgroundColor:`${AppColors_1.AppColors.red500}18`,borderWidth:1,borderColor:`${AppColors_1.AppColors.red500}35`},itemTextCol:{flex:1},itemTitleRow:{flexDirection:"row",alignItems:"center",gap:8},itemTitle:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:13,color:AppColors_1.AppColors.slate900},badgeAmber:{backgroundColor:`${AppColors_1.AppColors.amber500}20`,paddingHorizontal:5,paddingVertical:1.5,borderRadius:5,borderWidth:1,borderColor:`${AppColors_1.AppColors.amber500}45`},badgeAmberText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8.5,letterSpacing:.3,color:AppColors_1.AppColors.amber600},itemDesc:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:11.5,lineHeight:16,color:AppColors_1.AppColors.grayTextWeak,marginTop:2},shareSubtitle:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:12,lineHeight:17,color:AppColors_1.AppColors.grayText,marginBottom:12},shareButtonsRow:{flexDirection:"row",alignItems:"center",gap:8},sharePrimaryBtn:{flex:1,flexDirection:"row",alignItems:"center",justifyContent:"center",gap:6,backgroundColor:AppColors_1.AppColors.indigo600,paddingVertical:10,paddingHorizontal:12,borderRadius:10},sharePrimaryBtnText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12,color:AppColors_1.AppColors.white},shareSecondaryBtn:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:5,backgroundColor:AppColors_1.AppColors.graySurface,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,paddingVertical:10,paddingHorizontal:12,borderRadius:10},shareSecondaryBtnText:{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:12,color:AppColors_1.AppColors.grayText},authorCard:{backgroundColor:AppColors_1.AppColors.white,borderRadius:16,padding:16,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,...react_native_1.Platform.select({ios:{shadowColor:AppColors_1.AppColors.slate900,shadowOffset:{width:0,height:2},shadowOpacity:.04,shadowRadius:6},android:{elevation:2}})},authorRow:{flexDirection:"row",alignItems:"center",gap:12,marginBottom:14},authorAvatar:{width:44,height:44,borderRadius:22,backgroundColor:AppColors_1.AppColors.indigo600,alignItems:"center",justifyContent:"center"},authorAvatarText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:15,color:AppColors_1.AppColors.white},authorTextCol:{flex:1},authorName:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:14,color:AppColors_1.AppColors.slate900},authorRole:{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:11.5,color:AppColors_1.AppColors.grayTextWeak,marginTop:1},authorEmail:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:11,color:AppColors_1.AppColors.indigo600,marginTop:2},authorActionsRow:{flexDirection:"row",alignItems:"center",gap:8},authorActionBtn:{flex:1,flexDirection:"row",alignItems:"center",justifyContent:"center",gap:5,backgroundColor:AppColors_1.AppColors.graySurface,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,paddingVertical:8,paddingHorizontal:8,borderRadius:8},authorActionEmoji:{fontSize:12},authorActionText:{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:11,color:AppColors_1.AppColors.grayText}});
|
|
@@ -1,44 +1,45 @@
|
|
|
1
|
-
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(t,o
|
|
1
|
+
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(r,t,i,o){o===void 0&&(o=i);var n=Object.getOwnPropertyDescriptor(t,i);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(r,o,n)}):(function(r,t,i,o){o===void 0&&(o=i),r[o]=t[i]})),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?(function(r,t){Object.defineProperty(r,"default",{enumerable:!0,value:t})}):function(r,t){r.default=t}),__importStar=this&&this.__importStar||(function(){var r=function(t){return r=Object.getOwnPropertyNames||function(i){var o=[];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(o[o.length]=n);return o},r(t)};return function(t){if(t&&t.__esModule)return t;var i={};if(t!=null)for(var o=r(t),n=0;n<o.length;n++)o[n]!=="default"&&__createBinding(i,t,o[n]);return __setModuleDefault(i,t),i}})(),__importDefault=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importStar(require("react")),react_native_1=require("react-native"),InspectorContext_1=require("./InspectorContext"),i18n_1=require("../../i18n"),styles_1=__importDefault(require("../../styles")),AppColors_1=require("../../styles/AppColors"),AppFonts_1=require("../../styles/AppFonts"),TouchableScale_1=__importDefault(require("../TouchableScale")),NetworkIcons_1=require("../NetworkIcons"),reduxLogger_1=require("../../customHooks/reduxLogger"),analyticsLogger_1=require("../../customHooks/analyticsLogger"),helpers_1=require("../../helpers"),HEADER_TAB_THEME={themeColor:AppColors_1.AppColors.brandPurple,bgInactive:`${AppColors_1.AppColors.brandPurple}0D`,borderInactive:`${AppColors_1.AppColors.brandPurple}2B`,iconInactive:AppColors_1.AppColors.brandPurple,idBadgeBg:`${AppColors_1.AppColors.brandPurple}1C`,idBadgeBorder:`${AppColors_1.AppColors.brandPurple}3D`,idBadgeText:AppColors_1.AppColors.brandPurple},TAB_THEMES={apis:HEADER_TAB_THEME,logs:HEADER_TAB_THEME,analytics:HEADER_TAB_THEME,redux:HEADER_TAB_THEME,storage:HEADER_TAB_THEME,device:HEADER_TAB_THEME,crash:HEADER_TAB_THEME,push:HEADER_TAB_THEME,socket:HEADER_TAB_THEME,debugging:HEADER_TAB_THEME,media:HEADER_TAB_THEME},TabBar=react_1.default.memo(()=>{const{t:r}=(0,i18n_1.useTranslation)(),{activeTab:t,switchActiveTab:i,tabVisibility:o,logs:n,consoleLogs:f,analyticsEvents:m,crashRecords:y,pushRecords:C,socketRecords:b,unreadPushCount:S,unreadSocketCount:I,lastReadApisCount:T,lastReadLogsCount:x,lastReadCrashesCount:R,lastReadSocketCount:B,mediaCount:_}=(0,InspectorContext_1.useInspector)(),P=(0,reduxLogger_1.isReduxConnected)(),O=(0,analyticsLogger_1.isAnalyticsConnected)(),c=t==="media",g=(o?.media??!0)&&_>0,w=(0,react_1.useRef)(null),[h,z]=(0,react_1.useState)(!1),[v,L]=(0,react_1.useState)(!0),A=(0,react_1.useRef)(0),V=e=>{const{contentOffset:s,layoutMeasurement:a,contentSize:l}=e.nativeEvent,d=s.x;A.current=d;const u=d>8,p=d<l.width-a.width-8;h!==u&&z(u),v!==p&&L(p)},k=e=>{w.current?.scrollTo({x:Math.max(0,A.current+e),animated:!0})};return<react_native_1.View style={[styles_1.default.tabBarContainer,{flexDirection:"row",alignItems:"center",paddingHorizontal:0}]}>
|
|
2
2
|
|
|
3
|
-
{h&&<react_native_1.TouchableOpacity onPress={()=>
|
|
3
|
+
{h&&<react_native_1.TouchableOpacity onPress={()=>k(-160)}hitSlop={{top:6,bottom:6,left:6,right:6}}activeOpacity={.7}style={{paddingLeft:6,paddingRight:2,justifyContent:"center",alignItems:"center"}}>
|
|
4
4
|
<react_native_1.View style={{width:22,height:22,borderRadius:11,backgroundColor:AppColors_1.AppColors.grayBorderSecondary,alignItems:"center",justifyContent:"center"}}>
|
|
5
5
|
<NetworkIcons_1.ChevronIcon direction="left"size={13}color={AppColors_1.AppColors.grayTextStrong}/>
|
|
6
6
|
</react_native_1.View>
|
|
7
7
|
</react_native_1.TouchableOpacity>}
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
<react_native_1.ScrollView ref={
|
|
11
|
-
{[{id:1,key:"apis",label:"APIs",count:
|
|
10
|
+
<react_native_1.ScrollView ref={w}horizontal showsHorizontalScrollIndicator={!1}onScroll={V}scrollEventThrottle={16}style={{flex:1}}contentContainerStyle={{paddingLeft:h?4:12,paddingRight:g?6:12}}>
|
|
11
|
+
{[{id:1,key:"apis",label:"APIs",count:n.length,icon:"apis"},{id:2,key:"logs",label:"Logs",count:f.length,icon:"logs"},{id:3,key:"analytics",label:"Analytics",count:m.length,icon:"analytics"},{id:4,key:"redux",label:"Redux",count:0,icon:"redux"},{id:5,key:"storage",label:"Storage",count:0,icon:"storage"},{id:6,key:"device",label:"Device",count:0,icon:"device"},{id:7,key:"crash",label:"Crash",count:y?.length||0,icon:"crash"},{id:8,key:"push",label:"Push",count:C?.length||0,icon:"push"},{id:9,key:"socket",label:"WebSocket",count:b?.length||0,icon:"socket"},{id:10,key:"debugging",label:"Debugging",count:0,icon:"debugging"}].filter(e=>e.key==="debugging"?react_native_1.Platform.OS==="android"&&(0,helpers_1.isLocalDebugEnvironment)()&&!!o?.debugging:!(!o?.[e.key]||e.key==="redux"&&!P||e.key==="analytics"&&!O)).map(e=>{const s=t===e.key,a=TAB_THEMES[e.key]||TAB_THEMES.apis,l=s?AppColors_1.AppColors.white:a.iconInactive,d=e.count>99?"99+":String(e.count),u=t!=="apis"&&n.length>T,p=t!=="logs"&&f.length>x,j=t!=="crash"&&(y?.length||0)>(R||0),D=t!=="socket"&&((b?.length||0)>(B||0)||I>0);return<TouchableScale_1.default key={e.key}onPress={()=>{i(e.key)}}style={[styles_1.default.contentTabButton,{backgroundColor:s?a.themeColor:a.bgInactive,borderColor:s?a.themeColor:a.borderInactive},s&&{shadowColor:a.themeColor,shadowOffset:{width:0,height:2},shadowOpacity:.28,shadowRadius:3.5,elevation:3}]}>
|
|
12
12
|
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:6}}>
|
|
13
|
-
{e.icon==="apis"&&<NetworkIcons_1.SignalIcon color={
|
|
14
|
-
{e.icon==="logs"&&<NetworkIcons_1.TerminalIcon color={
|
|
15
|
-
{e.icon==="analytics"&&<NetworkIcons_1.AnalyticsIcon color={
|
|
16
|
-
{e.icon==="redux"&&<NetworkIcons_1.ReduxIcon color={
|
|
17
|
-
{e.icon==="storage"&&<NetworkIcons_1.DatabaseIcon color={
|
|
18
|
-
{e.icon==="device"&&<NetworkIcons_1.SmartphoneIcon color={
|
|
19
|
-
{e.icon==="crash"&&<NetworkIcons_1.CrashIcon color={
|
|
20
|
-
{e.icon==="push"&&<NetworkIcons_1.BellIcon color={
|
|
21
|
-
{e.icon==="
|
|
22
|
-
|
|
23
|
-
|
|
13
|
+
{e.icon==="apis"&&<NetworkIcons_1.SignalIcon color={l}size={14}/>}
|
|
14
|
+
{e.icon==="logs"&&<NetworkIcons_1.TerminalIcon color={l}size={14}/>}
|
|
15
|
+
{e.icon==="analytics"&&<NetworkIcons_1.AnalyticsIcon color={l}size={14}/>}
|
|
16
|
+
{e.icon==="redux"&&<NetworkIcons_1.ReduxIcon color={l}size={14}/>}
|
|
17
|
+
{e.icon==="storage"&&<NetworkIcons_1.DatabaseIcon color={l}size={14}/>}
|
|
18
|
+
{e.icon==="device"&&<NetworkIcons_1.SmartphoneIcon color={l}size={14}/>}
|
|
19
|
+
{e.icon==="crash"&&<NetworkIcons_1.CrashIcon color={l}size={14}/>}
|
|
20
|
+
{e.icon==="push"&&<NetworkIcons_1.BellIcon color={l}size={14}/>}
|
|
21
|
+
{e.icon==="socket"&&<NetworkIcons_1.WebsocketIcon color={l}size={14}/>}
|
|
22
|
+
{e.icon==="debugging"&&<NetworkIcons_1.QrCodeIcon color={l}size={14}/>}
|
|
23
|
+
<react_native_1.View style={{minWidth:20,height:20,paddingHorizontal:4,borderRadius:10,backgroundColor:s?`${AppColors_1.AppColors.white}33`:a.idBadgeBg,borderWidth:1,borderColor:s?`${AppColors_1.AppColors.white}66`:a.idBadgeBorder,alignItems:"center",justifyContent:"center"}}>
|
|
24
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,lineHeight:12,color:s?AppColors_1.AppColors.white:a.idBadgeText}}>
|
|
24
25
|
#{e.id}
|
|
25
26
|
</react_native_1.Text>
|
|
26
27
|
</react_native_1.View>
|
|
27
|
-
<react_native_1.Text numberOfLines={1}ellipsizeMode="tail"style={[styles_1.default.contentTabButtonText,{color:
|
|
28
|
-
{e.label}
|
|
28
|
+
<react_native_1.Text numberOfLines={1}ellipsizeMode="tail"style={[styles_1.default.contentTabButtonText,{color:s?AppColors_1.AppColors.white:AppColors_1.AppColors.grayTextStrong,fontFamily:s?AppFonts_1.AppFonts.interBold:AppFonts_1.AppFonts.interSemiBold}]}>
|
|
29
|
+
{r(`tabs.${e.key}`,e.label)}
|
|
29
30
|
</react_native_1.Text>
|
|
30
|
-
{e.count>0&&e.key!=="push"&&<react_native_1.View style={{paddingHorizontal:5,paddingVertical:1,borderRadius:8,backgroundColor:
|
|
31
|
-
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,lineHeight:12,color:
|
|
31
|
+
{e.count>0&&e.key!=="push"&&<react_native_1.View style={{paddingHorizontal:5,paddingVertical:1,borderRadius:8,backgroundColor:s?"rgba(255,255,255,0.25)":a.idBadgeBg,borderWidth:.5,borderColor:s?"rgba(255,255,255,0.45)":a.idBadgeBorder,marginLeft:1,alignItems:"center",justifyContent:"center"}}>
|
|
32
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,lineHeight:12,color:s?AppColors_1.AppColors.white:a.themeColor}}>
|
|
32
33
|
{d}
|
|
33
34
|
</react_native_1.Text>
|
|
34
35
|
</react_native_1.View>}
|
|
35
|
-
{(e.key==="apis"&&u||e.key==="logs"&&p||e.key==="crash"&&
|
|
36
|
+
{(e.key==="apis"&&u||e.key==="logs"&&p||e.key==="crash"&&j||e.key==="push"&&((C?.length||0)>0||S>0)||e.key==="socket"&&D)&&<react_native_1.View style={{width:6,height:6,borderRadius:3,backgroundColor:AppColors_1.AppColors.errorColor,marginLeft:4,alignSelf:"center"}}/>}
|
|
36
37
|
</react_native_1.View>
|
|
37
38
|
</TouchableScale_1.default>})}
|
|
38
39
|
</react_native_1.ScrollView>
|
|
39
40
|
|
|
40
41
|
|
|
41
|
-
{
|
|
42
|
+
{v&&<react_native_1.TouchableOpacity onPress={()=>k(160)}hitSlop={{top:6,bottom:6,left:6,right:6}}activeOpacity={.7}style={{paddingLeft:2,paddingRight:g?4:8,justifyContent:"center",alignItems:"center"}}>
|
|
42
43
|
<react_native_1.View style={{width:22,height:22,borderRadius:11,backgroundColor:AppColors_1.AppColors.grayBorderSecondary,alignItems:"center",justifyContent:"center"}}>
|
|
43
44
|
<NetworkIcons_1.ChevronIcon direction="right"size={13}color={AppColors_1.AppColors.grayTextStrong}/>
|
|
44
45
|
</react_native_1.View>
|
|
@@ -46,10 +47,10 @@
|
|
|
46
47
|
|
|
47
48
|
|
|
48
49
|
{g&&<react_native_1.View style={{paddingLeft:6,paddingRight:10,borderLeftWidth:1,borderLeftColor:AppColors_1.AppColors.dividerColor,backgroundColor:AppColors_1.AppColors.primaryLight,justifyContent:"center",shadowColor:AppColors_1.AppColors.shadowColorString,shadowOffset:{width:-3,height:0},shadowOpacity:.12,shadowRadius:4,elevation:4,zIndex:10}}>
|
|
49
|
-
<TouchableScale_1.default key="media"onPress={()=>{
|
|
50
|
+
<TouchableScale_1.default key="media"onPress={()=>{i("media")}}accessibilityRole="button"accessibilityLabel="Media Gallery"style={[styles_1.default.contentTabButton,{marginRight:0,borderRadius:8,backgroundColor:c?AppColors_1.AppColors.brandPurple:`${AppColors_1.AppColors.brandPurple}0D`,borderColor:c?AppColors_1.AppColors.brandPurple:`${AppColors_1.AppColors.brandPurple}2B`,borderWidth:1,paddingHorizontal:10,paddingVertical:7,alignItems:"center",justifyContent:"center"},c&&{shadowColor:AppColors_1.AppColors.brandPurple,shadowOffset:{width:0,height:2},shadowOpacity:.28,shadowRadius:3.5,elevation:3}]}>
|
|
50
51
|
<react_native_1.View style={{position:"relative",alignItems:"center",justifyContent:"center"}}>
|
|
51
52
|
<NetworkIcons_1.ScreencastIcon color={c?AppColors_1.AppColors.white:AppColors_1.AppColors.brandPurple}size={15}/>
|
|
52
|
-
{
|
|
53
|
+
{_>0&&<react_native_1.View style={{position:"absolute",top:-3,right:-4,width:7,height:7,borderRadius:3.5,backgroundColor:c?AppColors_1.AppColors.white:AppColors_1.AppColors.brandPurple,borderWidth:1.2,borderColor:c?AppColors_1.AppColors.brandPurple:AppColors_1.AppColors.white}}/>}
|
|
53
54
|
</react_native_1.View>
|
|
54
55
|
</TouchableScale_1.default>
|
|
55
56
|
</react_native_1.View>}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(t,
|
|
2
|
-
<react_native_svg_1.Path d="M8 4v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2h-8a2 2 0 0 0-2 2z"stroke={
|
|
3
|
-
<react_native_svg_1.Path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"stroke={
|
|
4
|
-
</react_native_svg_1.default>,CheckSvg=({size:
|
|
5
|
-
<react_native_svg_1.Path d="M20 6L9 17l-5-5"stroke={
|
|
6
|
-
</react_native_svg_1.default>,ExternalLinkSvg=({size:
|
|
7
|
-
<react_native_svg_1.Path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"stroke={
|
|
8
|
-
<react_native_svg_1.Path d="M15 3h6v6"stroke={
|
|
9
|
-
<react_native_svg_1.Path d="M10 14L21 3"stroke={
|
|
10
|
-
</react_native_svg_1.default>,CloseSvg=({size:
|
|
11
|
-
<react_native_svg_1.Path d="M18 6L6 18M6 6l12 12"stroke={
|
|
12
|
-
</react_native_svg_1.default>,SparkleSvg=({size:
|
|
13
|
-
<react_native_svg_1.Path d="M12 2l2.4 6.6L21 11l-6.6 2.4L12 20l-2.4-6.6L3 11l6.6-2.4L12 2z"fill={
|
|
14
|
-
</react_native_svg_1.default>,ArrowRightSvg=({size:
|
|
15
|
-
<react_native_svg_1.Path d="M5 12h14M12 5l7 7-7 7"stroke={
|
|
16
|
-
</react_native_svg_1.default>,UpdateAvailableModal=({visible:
|
|
1
|
+
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(e,t,a,o){o===void 0&&(o=a);var r=Object.getOwnPropertyDescriptor(t,a);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,o,r)}):(function(e,t,a,o){o===void 0&&(o=a),e[o]=t[a]})),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),__importStar=this&&this.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(a){var o=[];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(o[o.length]=r);return o},e(t)};return function(t){if(t&&t.__esModule)return t;var a={};if(t!=null)for(var o=e(t),r=0;r<o.length;r++)o[r]!=="default"&&__createBinding(a,t,o[r]);return __setModuleDefault(a,t),a}})(),__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.UpdateAvailableModal=void 0;const react_1=__importStar(require("react")),react_native_1=require("react-native"),react_native_svg_1=__importStar(require("react-native-svg")),AppHeaderLogo_1=__importDefault(require("../AppHeaderLogo")),NetworkIcons_1=require("../NetworkIcons"),constants_1=require("../../constants"),helpers_1=require("../../helpers"),toast_1=require("../../helpers/toast"),AppFonts_1=require("../../styles/AppFonts"),AppColors_1=require("../../styles/AppColors"),i18n_1=require("../../i18n"),CopySvg=({size:e=14,color:t=AppColors_1.AppColors.grayTextWeak})=><react_native_svg_1.default width={e}height={e}viewBox="0 0 24 24"fill="none">
|
|
2
|
+
<react_native_svg_1.Path d="M8 4v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2h-8a2 2 0 0 0-2 2z"stroke={t}strokeWidth="2"strokeLinecap="round"strokeLinejoin="round"/>
|
|
3
|
+
<react_native_svg_1.Path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"stroke={t}strokeWidth="2"strokeLinecap="round"strokeLinejoin="round"/>
|
|
4
|
+
</react_native_svg_1.default>,CheckSvg=({size:e=14,color:t=AppColors_1.AppColors.emerald500})=><react_native_svg_1.default width={e}height={e}viewBox="0 0 24 24"fill="none">
|
|
5
|
+
<react_native_svg_1.Path d="M20 6L9 17l-5-5"stroke={t}strokeWidth="2.4"strokeLinecap="round"strokeLinejoin="round"/>
|
|
6
|
+
</react_native_svg_1.default>,ExternalLinkSvg=({size:e=13,color:t=AppColors_1.AppColors.white})=><react_native_svg_1.default width={e}height={e}viewBox="0 0 24 24"fill="none">
|
|
7
|
+
<react_native_svg_1.Path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"stroke={t}strokeWidth="2"strokeLinecap="round"strokeLinejoin="round"/>
|
|
8
|
+
<react_native_svg_1.Path d="M15 3h6v6"stroke={t}strokeWidth="2"strokeLinecap="round"strokeLinejoin="round"/>
|
|
9
|
+
<react_native_svg_1.Path d="M10 14L21 3"stroke={t}strokeWidth="2"strokeLinecap="round"strokeLinejoin="round"/>
|
|
10
|
+
</react_native_svg_1.default>,CloseSvg=({size:e=13,color:t=AppColors_1.AppColors.grayTextWeak})=><react_native_svg_1.default width={e}height={e}viewBox="0 0 24 24"fill="none">
|
|
11
|
+
<react_native_svg_1.Path d="M18 6L6 18M6 6l12 12"stroke={t}strokeWidth="2.2"strokeLinecap="round"strokeLinejoin="round"/>
|
|
12
|
+
</react_native_svg_1.default>,SparkleSvg=({size:e=14,color:t=AppColors_1.AppColors.amber500})=><react_native_svg_1.default width={e}height={e}viewBox="0 0 24 24"fill="none">
|
|
13
|
+
<react_native_svg_1.Path d="M12 2l2.4 6.6L21 11l-6.6 2.4L12 20l-2.4-6.6L3 11l6.6-2.4L12 2z"fill={t}/>
|
|
14
|
+
</react_native_svg_1.default>,ArrowRightSvg=({size:e=14,color:t=AppColors_1.AppColors.slate400})=><react_native_svg_1.default width={e}height={e}viewBox="0 0 24 24"fill="none">
|
|
15
|
+
<react_native_svg_1.Path d="M5 12h14M12 5l7 7-7 7"stroke={t}strokeWidth="2.2"strokeLinecap="round"strokeLinejoin="round"/>
|
|
16
|
+
</react_native_svg_1.default>,UpdateAvailableModal=({visible:e,latestVersion:t,onClose:a})=>{const[o,r]=(0,react_1.useState)(!1),i=(0,react_1.useState)(new react_native_1.Animated.Value(0))[0],n=(0,react_1.useState)(new react_native_1.Animated.Value(.92))[0],s="npm install react-native-inapp-inspector@latest";if(typeof __DEV__>"u"||!__DEV__)return null;(0,react_1.useEffect)(()=>{e&&(r(!1),react_native_1.Animated.parallel([react_native_1.Animated.timing(i,{toValue:1,duration:220,useNativeDriver:!0}),react_native_1.Animated.spring(n,{toValue:1,friction:8,tension:50,useNativeDriver:!0})]).start())},[e,i,n]);const l=()=>{react_native_1.Animated.parallel([react_native_1.Animated.timing(i,{toValue:0,duration:160,useNativeDriver:!0}),react_native_1.Animated.timing(n,{toValue:.92,duration:160,useNativeDriver:!0})]).start(()=>{a()})},d=()=>{(0,helpers_1.copyToClipboard)(s,"Install Command"),r(!0),(0,toast_1.showToast)((0,i18n_1.t)("about.copiedInstallCommand","Copied npm install command to clipboard!")),setTimeout(()=>{r(!1)},2500)},p=()=>{react_native_1.Linking.openURL("https://www.npmjs.com/package/react-native-inapp-inspector").catch(()=>{}),l()};return e?<react_native_1.Modal transparent visible={e}animationType="none"statusBarTranslucent onRequestClose={l}>
|
|
17
17
|
<react_native_1.View style={styles.overlay}>
|
|
18
18
|
<react_native_1.Animated.View style={[styles.card,{opacity:i,transform:[{scale:n}]}]}>
|
|
19
19
|
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
|
|
25
25
|
<react_native_1.View style={styles.headerSection}>
|
|
26
26
|
<react_native_1.View style={styles.iconHaloRing}>
|
|
27
|
-
<
|
|
27
|
+
<AppHeaderLogo_1.default size={38}shape="circle"/>
|
|
28
28
|
<react_native_1.View style={styles.sparkleBadge}>
|
|
29
29
|
<SparkleSvg size={13}color={AppColors_1.AppColors.amber500}/>
|
|
30
30
|
</react_native_1.View>
|
|
31
31
|
</react_native_1.View>
|
|
32
|
-
<react_native_1.Text style={styles.title}>Update Available</react_native_1.Text>
|
|
32
|
+
<react_native_1.Text style={styles.title}>{(0,i18n_1.t)("header.updateAvailableTitle","Update Available")}</react_native_1.Text>
|
|
33
33
|
<react_native_1.Text style={styles.subtitle}>
|
|
34
|
-
A new version of react-native-inapp-inspector is ready to install
|
|
34
|
+
{(0,i18n_1.t)("header.updateAvailableSubtitle","A new version of react-native-inapp-inspector is ready to install")}
|
|
35
35
|
</react_native_1.Text>
|
|
36
36
|
</react_native_1.View>
|
|
37
37
|
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
<react_native_1.Text style={styles.versionLabel}>LATEST</react_native_1.Text>
|
|
53
53
|
<react_native_1.View style={styles.latestChip}>
|
|
54
54
|
<NetworkIcons_1.NpmIcon size={12}color={AppColors_1.AppColors.npmRed}/>
|
|
55
|
-
<react_native_1.Text style={styles.latestText}>v{
|
|
55
|
+
<react_native_1.Text style={styles.latestText}>v{t}</react_native_1.Text>
|
|
56
56
|
</react_native_1.View>
|
|
57
57
|
</react_native_1.View>
|
|
58
58
|
</react_native_1.View>
|
|
@@ -60,10 +60,10 @@
|
|
|
60
60
|
|
|
61
61
|
<react_native_1.View style={styles.codeSnippetBox}>
|
|
62
62
|
<react_native_1.View style={styles.codeSnippetHeader}>
|
|
63
|
-
<react_native_1.Text style={styles.codeSnippetLabel}>UPGRADE COMMAND</react_native_1.Text>
|
|
63
|
+
<react_native_1.Text style={styles.codeSnippetLabel}>{(0,i18n_1.t)("header.upgradeCommand","UPGRADE COMMAND")}</react_native_1.Text>
|
|
64
64
|
{o&&<react_native_1.View style={styles.copiedIndicator}>
|
|
65
65
|
<CheckSvg size={11}color={AppColors_1.AppColors.emerald500}/>
|
|
66
|
-
<react_native_1.Text style={styles.copiedText}>Copied</react_native_1.Text>
|
|
66
|
+
<react_native_1.Text style={styles.copiedText}>{(0,i18n_1.t)("common.copied","Copied")}</react_native_1.Text>
|
|
67
67
|
</react_native_1.View>}
|
|
68
68
|
</react_native_1.View>
|
|
69
69
|
|
|
@@ -80,11 +80,11 @@
|
|
|
80
80
|
|
|
81
81
|
<react_native_1.View style={styles.buttonRow}>
|
|
82
82
|
<react_native_1.TouchableOpacity activeOpacity={.7}onPress={l}style={styles.secondaryButton}>
|
|
83
|
-
<react_native_1.Text style={styles.secondaryButtonText}>Later</react_native_1.Text>
|
|
83
|
+
<react_native_1.Text style={styles.secondaryButtonText}>{(0,i18n_1.t)("common.later","Later")}</react_native_1.Text>
|
|
84
84
|
</react_native_1.TouchableOpacity>
|
|
85
85
|
|
|
86
86
|
<react_native_1.TouchableOpacity activeOpacity={.8}onPress={p}style={styles.primaryButton}>
|
|
87
|
-
<react_native_1.Text style={styles.primaryButtonText}>View on NPM</react_native_1.Text>
|
|
87
|
+
<react_native_1.Text style={styles.primaryButtonText}>{(0,i18n_1.t)("common.viewOnNpm","View on NPM")}</react_native_1.Text>
|
|
88
88
|
<ExternalLinkSvg size={12}color={AppColors_1.AppColors.white}/>
|
|
89
89
|
</react_native_1.TouchableOpacity>
|
|
90
90
|
</react_native_1.View>
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
<NetworkIcons_1.ChevronIcon direction={r?"up":"down"}size={9}color="#4F46E5"/>
|
|
31
31
|
</react_native_1.TouchableOpacity>}
|
|
32
32
|
</react_native_1.View>
|
|
33
|
-
</react_native_1.View>}),JsonViewer=react_1.default.memo(({data:e,search:t,forceOpen:l,defaultExpandDepth:o=1,wrap:r,fullHeight:d=!1,maxHeight:u,mode:i,onModeChange:s,hideTabs:y=!1})=>{const{t:c}=(0,i18n_1.useTranslation)(),[P,B]=(0,react_1.useState)(i??"raw"),[
|
|
33
|
+
</react_native_1.View>}),JsonViewer=react_1.default.memo(({data:e,search:t,forceOpen:l,defaultExpandDepth:o=1,wrap:r,fullHeight:d=!1,maxHeight:u,mode:i,onModeChange:s,hideTabs:y=!1})=>{const{t:c}=(0,i18n_1.useTranslation)(),[P,B]=(0,react_1.useState)(i??"raw"),[z,R]=(0,react_1.useState)(!1),[f,F]=(0,react_1.useState)(r??!0),[w,N]=(0,react_1.useState)("compact"),[b,H]=(0,react_1.useState)(l),[D,M]=(0,react_1.useState)(!1),a=s&&i?i:P,m=n=>{B(n),s&&s(n)};(0,react_1.useEffect)(()=>{r!==void 0&&F(r)},[r]),(0,react_1.useEffect)(()=>{l!==void 0&&H(l)},[l]),(0,react_1.useEffect)(()=>{i&&B(i)},[i]);const g=(0,react_1.useMemo)(()=>{if(e==null)return"";if(typeof e=="string"){const n=e.trim();try{const p=JSON.parse(n);return JSON.stringify(p,null,2)}catch{return e}}try{return JSON.stringify(e,null,2)??""}catch{return String(e)||""}},[e]),S=(0,react_1.useMemo)(()=>{if(typeof e=="string"){const n=e.trim();try{const p=JSON.parse(n);return JSON.stringify(p)}catch{return e}}try{return JSON.stringify(e)??""}catch{return String(e)||""}},[e]),I=w==="formatted"?g:S,k=5e4,h=typeof I=="string"?I:"",W=h.length>k&&!D,A=W?h.slice(0,k):h,V=(0,react_1.useMemo)(()=>A?A.split(`
|
|
34
34
|
`):[""],[A]),q=(0,react_1.useMemo)(()=>a==="raw"?V.length:g?g.split(`
|
|
35
|
-
`).length:1,[a,V.length,g]),J=(0,react_1.useMemo)(()=>(0,helpers_1.getSize)(e),[e]),
|
|
35
|
+
`).length:1,[a,V.length,g]),J=(0,react_1.useMemo)(()=>(0,helpers_1.getSize)(e),[e]),L=(0,react_1.useCallback)(()=>{(0,NativeInspector_1.triggerNativeHaptic)("success"),(0,helpers_1.copyToClipboard)(w==="compact"?S:g,"JSON"),R(!0),setTimeout(()=>R(!1),1200)},[w,S,g]),v=typeof e=="object"&&e!==null,E=e==null||v&&Object.keys(e).length===0,j=()=>{if(!v)return<react_native_1.View style={localStyles.tableRow}>
|
|
36
36
|
<react_native_1.View style={localStyles.tableColKey}>
|
|
37
37
|
<react_native_1.Text style={localStyles.tableCellKey}>
|
|
38
38
|
{c("network.jsonViewer.value")}
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
</react_native_1.Text>
|
|
111
111
|
</TouchableScale_1.default>
|
|
112
112
|
|
|
113
|
-
<TouchableScale_1.default onPress={()=>
|
|
113
|
+
<TouchableScale_1.default onPress={()=>F(n=>!n)}style={[localStyles.toolToggleBtn,f&&localStyles.toolToggleBtnActive]}>
|
|
114
114
|
<react_native_1.Text style={[localStyles.toolToggleText,f&&localStyles.toolToggleTextActive]}>
|
|
115
115
|
{c("jsonViewer.wrap","Wrap")}
|
|
116
116
|
</react_native_1.Text>
|
|
@@ -125,8 +125,8 @@
|
|
|
125
125
|
</TouchableScale_1.default>}
|
|
126
126
|
|
|
127
127
|
|
|
128
|
-
<TouchableScale_1.default onPress={
|
|
129
|
-
{
|
|
128
|
+
<TouchableScale_1.default onPress={L}hitSlop={6}style={[localStyles.copyBtn,z&&localStyles.copyBtnSuccess]}>
|
|
129
|
+
{z?<NetworkIcons_1.CheckIcon color={AppColors_1.AppColors.emerald500}size={13}/>:<NetworkIcons_1.CopyIcon color={AppColors_1.AppColors.grayText}size={13}/>}
|
|
130
130
|
</TouchableScale_1.default>
|
|
131
131
|
</react_native_1.View>
|
|
132
132
|
</react_native_1.View>
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
|
|
135
135
|
<react_native_1.View style={[localStyles.editorBody,d&&{flex:1,maxHeight:void 0},!d&&u!=null&&{maxHeight:u}]}>
|
|
136
136
|
|
|
137
|
-
{a==="pretty"&&(
|
|
137
|
+
{a==="pretty"&&(E?<react_native_1.View style={localStyles.emptyContainer}>
|
|
138
138
|
<react_native_1.Text style={localStyles.emptyText}>
|
|
139
139
|
{c("network.jsonViewer.emptyPayload")}
|
|
140
140
|
</react_native_1.Text>
|
|
@@ -174,4 +174,4 @@
|
|
|
174
174
|
{j()}
|
|
175
175
|
</react_native_1.ScrollView>:<react_native_1.View style={localStyles.tableView}>{j()}</react_native_1.View>)}
|
|
176
176
|
</react_native_1.View>
|
|
177
|
-
</react_native_1.View>}),localStyles=react_native_1.StyleSheet.create({container:{backgroundColor:AppColors_1.AppColors.white,borderRadius:12,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,overflow:"hidden",shadowColor:AppColors_1.AppColors.brandPurple,shadowOpacity:.04,shadowRadius:6,shadowOffset:{width:0,height:2},elevation:2,width:"100%"},snippetHeader:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",backgroundColor:AppColors_1.AppColors.grayBackground,borderBottomWidth:1,borderBottomColor:AppColors_1.AppColors.grayBorderSecondary,paddingHorizontal:8,paddingVertical:5,gap:6,minHeight:38},headerLeft:{flexDirection:"row",alignItems:"center",gap:5,flexShrink:1,minWidth:0},langBadge:{flexDirection:"row",alignItems:"center",backgroundColor:AppColors_1.AppColors.white,borderRadius:6,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,paddingHorizontal:6,paddingVertical:2.5,gap:4.5},langDot:{width:5,height:5,borderRadius:2.5,backgroundColor:AppColors_1.AppColors.emerald500},langBadgeText:{fontFamily:monoFont,fontSize:9.5,color:AppColors_1.AppColors.primaryBlack,fontWeight:"700",letterSpacing:.3},metaBadge:{backgroundColor:AppColors_1.AppColors.white,borderRadius:6,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,paddingHorizontal:6,paddingVertical:2.5,flexShrink:1},metaBadgeText:{fontFamily:monoFont,fontSize:9.5,color:AppColors_1.AppColors.grayTextWeak,fontWeight:"600"},headerRight:{flexDirection:"row",alignItems:"center",gap:4.5,flexShrink:0},snippetTabs:{flexDirection:"row",alignItems:"center",backgroundColor:`${AppColors_1.AppColors.slate200}80`,borderRadius:8,padding:2.5,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,gap:2},snippetTabBtn:{flexDirection:"row",alignItems:"center",gap:4,paddingVertical:3.5,paddingHorizontal:8,borderRadius:6},snippetTabBtnActive:{backgroundColor:AppColors_1.AppColors.brandPurple,shadowColor:AppColors_1.AppColors.brandPurple,shadowOffset:{width:0,height:1},shadowOpacity:.25,shadowRadius:2,elevation:1},snippetTabText:{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:10.5,color:AppColors_1.AppColors.grayText},snippetTabTextActive:{color:AppColors_1.AppColors.white,fontFamily:AppFonts_1.AppFonts.interBold},toolToggleBtn:{paddingHorizontal:8,paddingVertical:3.5,borderRadius:6,backgroundColor:AppColors_1.AppColors.white,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,alignItems:"center",justifyContent:"center"},toolToggleBtnActive:{backgroundColor:AppColors_1.AppColors.purpleShade50,borderColor:`${AppColors_1.AppColors.brandPurple}60`},toolToggleText:{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:10.5,color:AppColors_1.AppColors.grayText},toolToggleTextActive:{color:AppColors_1.AppColors.brandPurple,fontFamily:AppFonts_1.AppFonts.interBold},copyBtn:{width:27,height:27,borderRadius:6,backgroundColor:AppColors_1.AppColors.white,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,alignItems:"center",justifyContent:"center"},copyBtnSuccess:{borderColor:AppColors_1.AppColors.greenMintBorder,backgroundColor:AppColors_1.AppColors.greenMintBg},editorBody:{backgroundColor:
|
|
177
|
+
</react_native_1.View>}),localStyles=react_native_1.StyleSheet.create({container:{backgroundColor:AppColors_1.AppColors.white,borderRadius:12,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,overflow:"hidden",shadowColor:AppColors_1.AppColors.brandPurple,shadowOpacity:.04,shadowRadius:6,shadowOffset:{width:0,height:2},elevation:2,width:"100%"},snippetHeader:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",backgroundColor:AppColors_1.AppColors.grayBackground,borderBottomWidth:1,borderBottomColor:AppColors_1.AppColors.grayBorderSecondary,paddingHorizontal:8,paddingVertical:5,gap:6,minHeight:38},headerLeft:{flexDirection:"row",alignItems:"center",gap:5,flexShrink:1,minWidth:0},langBadge:{flexDirection:"row",alignItems:"center",backgroundColor:AppColors_1.AppColors.white,borderRadius:6,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,paddingHorizontal:6,paddingVertical:2.5,gap:4.5},langDot:{width:5,height:5,borderRadius:2.5,backgroundColor:AppColors_1.AppColors.emerald500},langBadgeText:{fontFamily:monoFont,fontSize:9.5,color:AppColors_1.AppColors.primaryBlack,fontWeight:"700",letterSpacing:.3},metaBadge:{backgroundColor:AppColors_1.AppColors.white,borderRadius:6,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,paddingHorizontal:6,paddingVertical:2.5,flexShrink:1},metaBadgeText:{fontFamily:monoFont,fontSize:9.5,color:AppColors_1.AppColors.grayTextWeak,fontWeight:"600"},headerRight:{flexDirection:"row",alignItems:"center",gap:4.5,flexShrink:0},snippetTabs:{flexDirection:"row",alignItems:"center",backgroundColor:`${AppColors_1.AppColors.slate200}80`,borderRadius:8,padding:2.5,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,gap:2},snippetTabBtn:{flexDirection:"row",alignItems:"center",gap:4,paddingVertical:3.5,paddingHorizontal:8,borderRadius:6},snippetTabBtnActive:{backgroundColor:AppColors_1.AppColors.brandPurple,shadowColor:AppColors_1.AppColors.brandPurple,shadowOffset:{width:0,height:1},shadowOpacity:.25,shadowRadius:2,elevation:1},snippetTabText:{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:10.5,color:AppColors_1.AppColors.grayText},snippetTabTextActive:{color:AppColors_1.AppColors.white,fontFamily:AppFonts_1.AppFonts.interBold},toolToggleBtn:{paddingHorizontal:8,paddingVertical:3.5,borderRadius:6,backgroundColor:AppColors_1.AppColors.white,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,alignItems:"center",justifyContent:"center"},toolToggleBtnActive:{backgroundColor:AppColors_1.AppColors.purpleShade50,borderColor:`${AppColors_1.AppColors.brandPurple}60`},toolToggleText:{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:10.5,color:AppColors_1.AppColors.grayText},toolToggleTextActive:{color:AppColors_1.AppColors.brandPurple,fontFamily:AppFonts_1.AppFonts.interBold},copyBtn:{width:27,height:27,borderRadius:6,backgroundColor:AppColors_1.AppColors.white,borderWidth:1,borderColor:AppColors_1.AppColors.grayBorderSecondary,alignItems:"center",justifyContent:"center"},copyBtnSuccess:{borderColor:AppColors_1.AppColors.greenMintBorder,backgroundColor:AppColors_1.AppColors.greenMintBg},editorBody:{backgroundColor:AppColors_1.AppColors.white,minHeight:80},prettyContainer:{padding:10,minWidth:"100%",backgroundColor:AppColors_1.AppColors.white},fullHeightScrollView:{flex:1},fullHeightScrollContent:{flexGrow:1},rawEditorAutoHeight:{width:"100%"},rawEditorFullWidth:{width:"100%"},rawHorizontalContent:{minWidth:"100%"},rawLinesWrapper:{paddingVertical:6,backgroundColor:AppColors_1.AppColors.white,width:"100%"},rawCodeLineRow:{flexDirection:"row",alignItems:"flex-start",minHeight:20,width:"100%"},gutterCell:{width:38,paddingRight:8,paddingTop:1,alignItems:"flex-end",justifyContent:"flex-start",borderRightWidth:1,borderRightColor:AppColors_1.AppColors.grayBorderSecondary,backgroundColor:AppColors_1.AppColors.grayBackground,userSelect:"none"},gutterNumber:{fontFamily:monoFont,fontSize:11,lineHeight:18,color:AppColors_1.AppColors.slate400,textAlign:"right"},rawTextCell:{flex:1,paddingLeft:8,paddingRight:8,paddingTop:1,alignItems:"flex-start"},rawLineContentRow:{flexDirection:"row",alignItems:"flex-start",flexWrap:"wrap",minHeight:18},indentDots:{fontFamily:monoFont,fontSize:11.5,lineHeight:18,color:AppColors_1.AppColors.gray300,letterSpacing:.5},rawMonospaceText:{fontFamily:monoFont,fontSize:11.5,lineHeight:18,color:AppColors_1.AppColors.slate900},syntaxKey:{fontFamily:monoFont,fontSize:11.5,lineHeight:18,color:AppColors_1.AppColors.syntaxKey,fontWeight:"700"},syntaxColon:{fontFamily:monoFont,fontSize:11.5,lineHeight:18,color:AppColors_1.AppColors.syntaxColon,marginRight:4},syntaxString:{fontFamily:monoFont,fontSize:11.5,lineHeight:18,color:AppColors_1.AppColors.syntaxString},syntaxNumber:{fontFamily:monoFont,fontSize:11.5,lineHeight:18,color:AppColors_1.AppColors.syntaxNumber},syntaxBoolean:{fontFamily:monoFont,fontSize:11.5,lineHeight:18,color:AppColors_1.AppColors.syntaxBoolean},syntaxNull:{fontFamily:monoFont,fontSize:11.5,lineHeight:18,color:AppColors_1.AppColors.syntaxNull,fontStyle:"italic"},truncationBanner:{margin:10,backgroundColor:AppColors_1.AppColors.purple50,paddingVertical:8,paddingHorizontal:12,borderRadius:6,alignItems:"center",borderWidth:1,borderColor:AppColors_1.AppColors.purple200},truncationText:{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:11,color:AppColors_1.AppColors.brandPurple},tableView:{flex:1,width:"100%"},tableHeaderRow:{flexDirection:"row",backgroundColor:AppColors_1.AppColors.slate100,borderBottomWidth:1,borderBottomColor:AppColors_1.AppColors.slate200,paddingVertical:7,paddingHorizontal:12},tableHeaderCell:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10.5,color:AppColors_1.AppColors.slate600,letterSpacing:.5,textTransform:"uppercase"},tableRow:{flexDirection:"row",borderBottomWidth:1,borderBottomColor:AppColors_1.AppColors.slate100,paddingVertical:8,paddingHorizontal:12,alignItems:"flex-start",backgroundColor:AppColors_1.AppColors.white},tableRowAlt:{backgroundColor:AppColors_1.AppColors.slate50},tableColKey:{flex:2,paddingRight:8},tableColVal:{flex:3},tableCellKey:{fontFamily:monoFont,fontSize:11.5,fontWeight:"700",color:AppColors_1.AppColors.brandPurple},typePill:{alignSelf:"flex-start",borderRadius:4,borderWidth:1,paddingHorizontal:4,paddingVertical:1,marginTop:3},typePillText:{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9},tableCellValue:{fontFamily:monoFont,fontSize:11.5,color:AppColors_1.AppColors.slate900,lineHeight:17},tableCodeBox:{backgroundColor:AppColors_1.AppColors.slate100,borderRadius:6,borderWidth:1,borderColor:AppColors_1.AppColors.slate200,padding:6},showMoreBtn:{flexDirection:"row",alignItems:"center",gap:4,alignSelf:"flex-start",marginTop:4,paddingVertical:2,paddingHorizontal:4},showMoreText:{fontFamily:AppFonts_1.AppFonts.interSemiBold,fontSize:10.5,color:AppColors_1.AppColors.brandPurple},emptyContainer:{padding:24,alignItems:"center",justifyContent:"center"},emptyText:{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:12,color:AppColors_1.AppColors.slate500},highlight:{backgroundColor:AppColors_1.AppColors.yellow200,color:AppColors_1.AppColors.yellow800,fontFamily:monoFont,fontWeight:"700",borderRadius:2,paddingHorizontal:2}});exports.default=JsonViewer;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { LogCardProps } from '../types';
|
|
3
|
-
declare
|
|
4
|
-
|
|
3
|
+
declare function LogCard({ item, onPress, timelineMinStart, timelineTotalRange, isNew, isSelected, onToggleSelect, searchStr, }: LogCardProps): React.JSX.Element;
|
|
4
|
+
declare const _default: React.MemoExoticComponent<typeof LogCard>;
|
|
5
|
+
export default _default;
|