react-native-inapp-inspector 1.1.16 → 1.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -0
- package/dist/commonjs/components/AnimatedEntrance.js +3 -0
- package/dist/commonjs/components/AppHeaderLogo.d.ts +8 -0
- package/dist/commonjs/components/AppHeaderLogo.js +85 -0
- package/dist/commonjs/components/Inspector/BundleTab.d.ts +41 -0
- package/dist/commonjs/components/Inspector/BundleTab.js +2309 -0
- package/dist/commonjs/components/Inspector/InspectorHeader.js +185 -52
- package/dist/commonjs/components/Inspector/MainScreen.js +86 -7
- package/dist/commonjs/components/Inspector/ReduxDetail.d.ts +3 -0
- package/dist/commonjs/components/Inspector/ReduxDetail.js +576 -0
- package/dist/commonjs/components/Inspector/ReduxTab.js +433 -49
- package/dist/commonjs/components/Inspector/SettingsPanel.js +8 -2
- package/dist/commonjs/components/Inspector/TabBar.js +9 -6
- package/dist/commonjs/components/JsonViewer.js +91 -30
- package/dist/commonjs/components/LogCard.js +3 -4
- package/dist/commonjs/components/NetworkIcons.d.ts +8 -0
- package/dist/commonjs/components/NetworkIcons.js +54 -1
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -1
- package/dist/commonjs/customHooks/consoleLogger.js +37 -9
- package/dist/commonjs/customHooks/reduxLogger.js +4 -2
- package/dist/commonjs/helpers/index.js +6 -2
- package/dist/commonjs/index.js +15 -1
- package/dist/commonjs/styles/AppColors.js +163 -163
- package/dist/commonjs/styles/index.d.ts +14 -0
- package/dist/commonjs/styles/index.js +14 -0
- package/dist/commonjs/types/enums.d.ts +2 -2
- package/dist/commonjs/types/interfaces.d.ts +11 -0
- package/dist/esm/components/AnimatedEntrance.js +4 -1
- package/dist/esm/components/AppHeaderLogo.d.ts +8 -0
- package/dist/esm/components/AppHeaderLogo.js +45 -0
- package/dist/esm/components/Inspector/BundleTab.d.ts +41 -0
- package/dist/esm/components/Inspector/BundleTab.js +2271 -0
- package/dist/esm/components/Inspector/InspectorHeader.js +151 -51
- package/dist/esm/components/Inspector/MainScreen.js +53 -7
- package/dist/esm/components/Inspector/ReduxDetail.d.ts +3 -0
- package/dist/esm/components/Inspector/ReduxDetail.js +538 -0
- package/dist/esm/components/Inspector/ReduxTab.js +402 -51
- package/dist/esm/components/Inspector/SettingsPanel.js +9 -3
- package/dist/esm/components/Inspector/TabBar.js +10 -7
- package/dist/esm/components/JsonViewer.js +92 -31
- package/dist/esm/components/LogCard.js +3 -4
- package/dist/esm/components/NetworkIcons.d.ts +8 -0
- package/dist/esm/components/NetworkIcons.js +47 -1
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/customHooks/consoleLogger.js +37 -9
- package/dist/esm/customHooks/reduxLogger.js +4 -2
- package/dist/esm/helpers/index.js +6 -2
- package/dist/esm/index.js +15 -1
- package/dist/esm/styles/AppColors.js +163 -163
- package/dist/esm/styles/index.d.ts +14 -0
- package/dist/esm/styles/index.js +14 -0
- package/dist/esm/types/enums.d.ts +2 -2
- package/dist/esm/types/interfaces.d.ts +11 -0
- package/example/App.tsx +5 -1
- package/example/assets/app_icon.png +0 -0
- package/example/ios/Podfile.lock +3 -3
- package/example/ios/example/Images.xcassets/AppIcon.appiconset/Contents.json +18 -9
- package/example/ios/example/Images.xcassets/AppIcon.appiconset/app_icon_1024.png +0 -0
- package/example/package-lock.json +824 -10
- package/example/package.json +6 -2
- package/package.json +4 -2
|
@@ -1,68 +1,68 @@
|
|
|
1
1
|
const LightColors = {
|
|
2
|
-
// ─── Core (
|
|
2
|
+
// ─── Core (Thai Airways Royal Palette) ───
|
|
3
3
|
primaryLight: '#FFFFFF',
|
|
4
|
-
purple: '#
|
|
5
|
-
purpleShade50: '#
|
|
6
|
-
offerPurple: '#
|
|
7
|
-
grayBorderSecondary: '#
|
|
8
|
-
grayBackground: '#
|
|
9
|
-
grayText: '#
|
|
10
|
-
grayTextWeak: '#
|
|
11
|
-
greenColor: '#
|
|
12
|
-
graySurface: '#
|
|
13
|
-
skyBlue: '#
|
|
14
|
-
primaryBlack: '#
|
|
15
|
-
grayTextStrong: '#
|
|
16
|
-
dividerColor: '#
|
|
17
|
-
warningIconGold: '#
|
|
18
|
-
shadowColorString: '#
|
|
19
|
-
errorColor: '#
|
|
20
|
-
lightOrange: '#
|
|
21
|
-
darkOrange: '#
|
|
22
|
-
successGreen: '#
|
|
23
|
-
purpleShade700: '#
|
|
24
|
-
greenStatus: '#
|
|
25
|
-
greenBaggageText: '#
|
|
26
|
-
paleYellow: '#
|
|
27
|
-
// ─── Brand / UI
|
|
4
|
+
purple: '#5C2D91', // Thai Royal Purple
|
|
5
|
+
purpleShade50: '#F8F4FC', // Orchid Silk Tint
|
|
6
|
+
offerPurple: '#9B2677', // Thai Orchid Magenta
|
|
7
|
+
grayBorderSecondary: '#E2DFEB',
|
|
8
|
+
grayBackground: '#F8F7FB', // Pearl White Surface
|
|
9
|
+
grayText: '#625D73',
|
|
10
|
+
grayTextWeak: '#8F8A9E',
|
|
11
|
+
greenColor: '#10B981',
|
|
12
|
+
graySurface: '#E2DFEB',
|
|
13
|
+
skyBlue: '#2563EB',
|
|
14
|
+
primaryBlack: '#211B30', // Royal Midnight Dark
|
|
15
|
+
grayTextStrong: '#211B30',
|
|
16
|
+
dividerColor: '#EBE7F2',
|
|
17
|
+
warningIconGold: '#C5A059', // Thai Orchid Gold
|
|
18
|
+
shadowColorString: '#211B30',
|
|
19
|
+
errorColor: '#E11D48',
|
|
20
|
+
lightOrange: '#E5C158', // Thai Warm Gold Light
|
|
21
|
+
darkOrange: '#B89758', // Thai Silk Gold
|
|
22
|
+
successGreen: '#10B981',
|
|
23
|
+
purpleShade700: '#481E78', // Thai Deep Violet
|
|
24
|
+
greenStatus: '#D1FAE5',
|
|
25
|
+
greenBaggageText: '#059669',
|
|
26
|
+
paleYellow: '#F7E9C4', // Thai Pale Gold
|
|
27
|
+
// ─── Brand / UI ───
|
|
28
28
|
white: '#FFFFFF',
|
|
29
29
|
black: '#000000',
|
|
30
|
-
brandPurple: '#
|
|
31
|
-
liveGreen: '#
|
|
32
|
-
firebaseOrange: '#
|
|
30
|
+
brandPurple: '#4B1B7D', // Iconic Thai Airways Purple
|
|
31
|
+
liveGreen: '#10B981',
|
|
32
|
+
firebaseOrange: '#D97706',
|
|
33
33
|
greenA400: '#00E676',
|
|
34
|
-
// ─── Code /
|
|
35
|
-
slate900: '#
|
|
36
|
-
slate700: '#
|
|
37
|
-
slate600: '#
|
|
38
|
-
slate500: '#
|
|
39
|
-
slate400: '#
|
|
40
|
-
slate200: '#
|
|
41
|
-
slate100: '#
|
|
42
|
-
slate50: '#
|
|
43
|
-
gray700: '#
|
|
44
|
-
gray300: '#
|
|
34
|
+
// ─── Code / Slate ───
|
|
35
|
+
slate900: '#171226',
|
|
36
|
+
slate700: '#332C4A',
|
|
37
|
+
slate600: '#4D446B',
|
|
38
|
+
slate500: '#6E648D',
|
|
39
|
+
slate400: '#948BAF',
|
|
40
|
+
slate200: '#E4DFEE',
|
|
41
|
+
slate100: '#F3F0F8',
|
|
42
|
+
slate50: '#F9F7FC',
|
|
43
|
+
gray700: '#373147',
|
|
44
|
+
gray300: '#D5D0E0',
|
|
45
45
|
highlightYellow: '#FDE047',
|
|
46
46
|
yellowHighlight: '#FFE44D',
|
|
47
|
-
// ─── Status /
|
|
47
|
+
// ─── Status / Syntax ───
|
|
48
48
|
teal600: '#0D9488',
|
|
49
49
|
cyan600: '#0891B2',
|
|
50
50
|
sky600: '#0284C7',
|
|
51
51
|
blue500: '#3B82F6',
|
|
52
52
|
blue600: '#2563EB',
|
|
53
|
-
blue700: '#
|
|
54
|
-
blue800: '#
|
|
53
|
+
blue700: '#1D4ED8',
|
|
54
|
+
blue800: '#1E40AF',
|
|
55
55
|
indigo600: '#4F46E5',
|
|
56
56
|
violet600: '#7C3AED',
|
|
57
57
|
violet500: '#8B5CF6',
|
|
58
|
-
purpleText: '#
|
|
59
|
-
pink600: '#
|
|
58
|
+
purpleText: '#5C2D91',
|
|
59
|
+
pink600: '#9B2677',
|
|
60
60
|
rose600: '#E11D48',
|
|
61
61
|
orange600: '#EA580C',
|
|
62
|
-
amber500: '#
|
|
63
|
-
amber600: '#
|
|
64
|
-
amber700: '#
|
|
65
|
-
amber800: '#
|
|
62
|
+
amber500: '#C5A059',
|
|
63
|
+
amber600: '#B89758',
|
|
64
|
+
amber700: '#A17D3B',
|
|
65
|
+
amber800: '#785A1D',
|
|
66
66
|
green500: '#22C55E',
|
|
67
67
|
green600: '#16A34A',
|
|
68
68
|
green700: '#15803D',
|
|
@@ -76,86 +76,86 @@ const LightColors = {
|
|
|
76
76
|
googleGreen: '#34A853',
|
|
77
77
|
googleOrange: '#F57C00',
|
|
78
78
|
googleRed: '#E53935',
|
|
79
|
-
googlePurple: '#
|
|
79
|
+
googlePurple: '#5C2D91',
|
|
80
80
|
googleTeal: '#00897B',
|
|
81
|
-
// ─── Tint
|
|
82
|
-
errorCardBg: '#
|
|
83
|
-
warnCardBg: '#
|
|
84
|
-
blueTintBg: '#
|
|
85
|
-
purpleTintBg: '#
|
|
86
|
-
purpleTint2: '#
|
|
87
|
-
roseBg: '#
|
|
88
|
-
roseBorder: '#
|
|
89
|
-
errorBorder: '#
|
|
90
|
-
amberBg: '#
|
|
91
|
-
amberBorder: '#
|
|
81
|
+
// ─── Tint Backgrounds / Borders (Theme-Aware) ───
|
|
82
|
+
errorCardBg: '#FFF1F3',
|
|
83
|
+
warnCardBg: '#FDFBF4',
|
|
84
|
+
blueTintBg: '#EFF6FF',
|
|
85
|
+
purpleTintBg: '#F6F0FA',
|
|
86
|
+
purpleTint2: '#EFE7F7',
|
|
87
|
+
roseBg: '#FDF2F8',
|
|
88
|
+
roseBorder: '#FBCFE8',
|
|
89
|
+
errorBorder: '#FECDD3',
|
|
90
|
+
amberBg: '#FDF8EE',
|
|
91
|
+
amberBorder: '#E8D6AC',
|
|
92
92
|
emeraldBg: '#ECFDF5',
|
|
93
93
|
emeraldBorder: '#A7F3D0',
|
|
94
|
-
blueBg: '#
|
|
95
|
-
blueBorder: '#
|
|
96
|
-
greenBg: '#
|
|
97
|
-
greenBorder: '#
|
|
98
|
-
purpleBg: '#
|
|
99
|
-
purpleBorder: '#
|
|
100
|
-
greyBg: '#
|
|
101
|
-
greyBorder: '#
|
|
102
|
-
paperBg: '#
|
|
103
|
-
contentBg: '#
|
|
104
|
-
// ─── Domain
|
|
94
|
+
blueBg: '#EFF6FF',
|
|
95
|
+
blueBorder: '#BFDBFE',
|
|
96
|
+
greenBg: '#F0FDF4',
|
|
97
|
+
greenBorder: '#BBF7D0',
|
|
98
|
+
purpleBg: '#F6F0FA',
|
|
99
|
+
purpleBorder: '#E4D5F2',
|
|
100
|
+
greyBg: '#F5F4F8',
|
|
101
|
+
greyBorder: '#E3DFEC',
|
|
102
|
+
paperBg: '#FBF9FC',
|
|
103
|
+
contentBg: '#F8F7FB',
|
|
104
|
+
// ─── Domain Colors (Thai Airways Themed) ───
|
|
105
105
|
domainColors: [
|
|
106
|
-
'#
|
|
107
|
-
'#
|
|
108
|
-
'#
|
|
109
|
-
'#
|
|
110
|
-
'#
|
|
111
|
-
'#
|
|
112
|
-
'#
|
|
113
|
-
'#
|
|
114
|
-
'#
|
|
115
|
-
'#
|
|
106
|
+
'#5C2D91',
|
|
107
|
+
'#9B2677',
|
|
108
|
+
'#C5A059',
|
|
109
|
+
'#4B1B7D',
|
|
110
|
+
'#0D9488',
|
|
111
|
+
'#2563EB',
|
|
112
|
+
'#B89758',
|
|
113
|
+
'#059669',
|
|
114
|
+
'#3B1359',
|
|
115
|
+
'#D1208A',
|
|
116
116
|
],
|
|
117
117
|
};
|
|
118
118
|
const DarkColors = {
|
|
119
|
-
primaryLight: '#
|
|
120
|
-
purple: '#
|
|
121
|
-
purpleShade50: '#
|
|
119
|
+
primaryLight: '#1C1628', // Thai Dark Card
|
|
120
|
+
purple: '#B68FE8', // Luminous Thai Orchid
|
|
121
|
+
purpleShade50: '#2A1C3E',
|
|
122
122
|
offerPurple: '#F472B6',
|
|
123
|
-
grayBorderSecondary: '#
|
|
124
|
-
grayBackground: '#
|
|
125
|
-
grayText: '#
|
|
126
|
-
grayTextWeak: '#
|
|
123
|
+
grayBorderSecondary: '#362C4E',
|
|
124
|
+
grayBackground: '#130F1F', // Thai Airways Midnight Sky
|
|
125
|
+
grayText: '#A197B8',
|
|
126
|
+
grayTextWeak: '#756C8C',
|
|
127
127
|
greenColor: '#34D399',
|
|
128
|
-
graySurface: '#
|
|
128
|
+
graySurface: '#362C4E',
|
|
129
129
|
skyBlue: '#60A5FA',
|
|
130
|
-
primaryBlack: '#
|
|
131
|
-
grayTextStrong: '#
|
|
132
|
-
dividerColor: '#
|
|
133
|
-
warningIconGold: '#
|
|
130
|
+
primaryBlack: '#F7F5FC',
|
|
131
|
+
grayTextStrong: '#F7F5FC',
|
|
132
|
+
dividerColor: '#2B2240',
|
|
133
|
+
warningIconGold: '#E5C158', // Thai Luminous Gold
|
|
134
134
|
shadowColorString: '#000000',
|
|
135
|
-
errorColor: '#
|
|
136
|
-
lightOrange: '#
|
|
137
|
-
darkOrange: '#
|
|
135
|
+
errorColor: '#F87171',
|
|
136
|
+
lightOrange: '#FDE68A',
|
|
137
|
+
darkOrange: '#D4AF37',
|
|
138
138
|
successGreen: '#34D399',
|
|
139
|
-
purpleShade700: '#
|
|
139
|
+
purpleShade700: '#8E4DBE',
|
|
140
140
|
greenStatus: '#064E3B',
|
|
141
141
|
greenBaggageText: '#34D399',
|
|
142
142
|
paleYellow: '#78350F',
|
|
143
143
|
white: '#FFFFFF',
|
|
144
144
|
black: '#000000',
|
|
145
|
-
brandPurple: '#
|
|
146
|
-
liveGreen: '#
|
|
147
|
-
firebaseOrange: '#
|
|
145
|
+
brandPurple: '#7B3DB8',
|
|
146
|
+
liveGreen: '#34D399',
|
|
147
|
+
firebaseOrange: '#F59E0B',
|
|
148
148
|
greenA400: '#00E676',
|
|
149
|
-
slate900: '#
|
|
150
|
-
slate700: '#
|
|
151
|
-
slate600: '#
|
|
152
|
-
slate500: '#
|
|
153
|
-
slate400: '#
|
|
154
|
-
slate200: '#
|
|
155
|
-
slate100: '#
|
|
156
|
-
slate50: '#
|
|
157
|
-
gray700: '#
|
|
158
|
-
gray300: '#
|
|
149
|
+
slate900: '#0B0813',
|
|
150
|
+
slate700: '#261F38',
|
|
151
|
+
slate600: '#3D3357',
|
|
152
|
+
slate500: '#5C4F7F',
|
|
153
|
+
slate400: '#8E82B0',
|
|
154
|
+
slate200: '#C7BEDE',
|
|
155
|
+
slate100: '#E4DFEE',
|
|
156
|
+
slate50: '#F3F0F8',
|
|
157
|
+
gray700: '#312847',
|
|
158
|
+
gray300: '#C7BEDE',
|
|
159
159
|
highlightYellow: '#FDE047',
|
|
160
160
|
yellowHighlight: '#FFE44D',
|
|
161
161
|
teal600: '#0D9488',
|
|
@@ -163,67 +163,67 @@ const DarkColors = {
|
|
|
163
163
|
sky600: '#0284C7',
|
|
164
164
|
blue500: '#3B82F6',
|
|
165
165
|
blue600: '#2563EB',
|
|
166
|
-
blue700: '#
|
|
167
|
-
blue800: '#
|
|
168
|
-
indigo600: '#
|
|
169
|
-
violet600: '#
|
|
170
|
-
violet500: '#
|
|
171
|
-
purpleText: '#
|
|
172
|
-
pink600: '#
|
|
173
|
-
rose600: '#
|
|
174
|
-
orange600: '#
|
|
175
|
-
amber500: '#
|
|
176
|
-
amber600: '#
|
|
177
|
-
amber700: '#
|
|
178
|
-
amber800: '#
|
|
166
|
+
blue700: '#1D4ED8',
|
|
167
|
+
blue800: '#1E40AF',
|
|
168
|
+
indigo600: '#6366F1',
|
|
169
|
+
violet600: '#8B5CF6',
|
|
170
|
+
violet500: '#A78BFA',
|
|
171
|
+
purpleText: '#C084FC',
|
|
172
|
+
pink600: '#F472B6',
|
|
173
|
+
rose600: '#FB7185',
|
|
174
|
+
orange600: '#FB923C',
|
|
175
|
+
amber500: '#E5C158',
|
|
176
|
+
amber600: '#D4AF37',
|
|
177
|
+
amber700: '#C5A059',
|
|
178
|
+
amber800: '#B89758',
|
|
179
179
|
green500: '#22C55E',
|
|
180
180
|
green600: '#16A34A',
|
|
181
181
|
green700: '#15803D',
|
|
182
182
|
green800: '#166534',
|
|
183
183
|
emerald500: '#10B981',
|
|
184
184
|
emerald600: '#059669',
|
|
185
|
-
grey600: '#
|
|
186
|
-
redErrorText: '#
|
|
185
|
+
grey600: '#756C8C',
|
|
186
|
+
redErrorText: '#FCA5A5',
|
|
187
187
|
materialGreen: '#2E7D32',
|
|
188
|
-
googleBlue: '#
|
|
189
|
-
googleGreen: '#
|
|
190
|
-
googleOrange: '#
|
|
191
|
-
googleRed: '#
|
|
192
|
-
googlePurple: '#
|
|
193
|
-
googleTeal: '#
|
|
194
|
-
errorCardBg: '#
|
|
195
|
-
warnCardBg: '#
|
|
196
|
-
blueTintBg: '#
|
|
197
|
-
purpleTintBg: '#
|
|
198
|
-
purpleTint2: '#
|
|
199
|
-
roseBg: '#
|
|
200
|
-
roseBorder: '#
|
|
201
|
-
errorBorder: '#
|
|
202
|
-
amberBg: '#
|
|
203
|
-
amberBorder: '#
|
|
204
|
-
emeraldBg: '#
|
|
205
|
-
emeraldBorder: '#
|
|
206
|
-
blueBg: '#
|
|
207
|
-
blueBorder: '#
|
|
208
|
-
greenBg: '#
|
|
209
|
-
greenBorder: '#
|
|
210
|
-
purpleBg: '#
|
|
211
|
-
purpleBorder: '#
|
|
212
|
-
greyBg: '#
|
|
213
|
-
greyBorder: '#
|
|
214
|
-
paperBg: '#
|
|
215
|
-
contentBg: '#
|
|
188
|
+
googleBlue: '#60A5FA',
|
|
189
|
+
googleGreen: '#34D399',
|
|
190
|
+
googleOrange: '#FBBF24',
|
|
191
|
+
googleRed: '#F87171',
|
|
192
|
+
googlePurple: '#C084FC',
|
|
193
|
+
googleTeal: '#2DD4BF',
|
|
194
|
+
errorCardBg: '#34151B',
|
|
195
|
+
warnCardBg: '#342B16',
|
|
196
|
+
blueTintBg: '#15243B',
|
|
197
|
+
purpleTintBg: '#281B3B',
|
|
198
|
+
purpleTint2: '#32224A',
|
|
199
|
+
roseBg: '#341626',
|
|
200
|
+
roseBorder: '#782352',
|
|
201
|
+
errorBorder: '#782330',
|
|
202
|
+
amberBg: '#342914',
|
|
203
|
+
amberBorder: '#785E22',
|
|
204
|
+
emeraldBg: '#122D25',
|
|
205
|
+
emeraldBorder: '#236952',
|
|
206
|
+
blueBg: '#13243D',
|
|
207
|
+
blueBorder: '#234978',
|
|
208
|
+
greenBg: '#122D1B',
|
|
209
|
+
greenBorder: '#236939',
|
|
210
|
+
purpleBg: '#2D1B40',
|
|
211
|
+
purpleBorder: '#62358F',
|
|
212
|
+
greyBg: '#1C1628',
|
|
213
|
+
greyBorder: '#362C4E',
|
|
214
|
+
paperBg: '#181224',
|
|
215
|
+
contentBg: '#130F1F',
|
|
216
216
|
domainColors: [
|
|
217
|
-
'#
|
|
218
|
-
'#
|
|
219
|
-
'#
|
|
220
|
-
'#
|
|
221
|
-
'#
|
|
222
|
-
'#
|
|
223
|
-
'#
|
|
224
|
-
'#
|
|
225
|
-
'#
|
|
226
|
-
'#
|
|
217
|
+
'#B68FE8',
|
|
218
|
+
'#F472B6',
|
|
219
|
+
'#E5C158',
|
|
220
|
+
'#8E4DBE',
|
|
221
|
+
'#2DD4BF',
|
|
222
|
+
'#60A5FA',
|
|
223
|
+
'#D4AF37',
|
|
224
|
+
'#34D399',
|
|
225
|
+
'#A78BFA',
|
|
226
|
+
'#FB7185',
|
|
227
227
|
],
|
|
228
228
|
};
|
|
229
229
|
export const getThemeColors = (isDark) => {
|
|
@@ -39,6 +39,20 @@ export declare const getRawStyles: (colors: typeof AppColors) => {
|
|
|
39
39
|
letterSpacing: number;
|
|
40
40
|
paddingBottom: number;
|
|
41
41
|
};
|
|
42
|
+
envBadge: {
|
|
43
|
+
paddingHorizontal: number;
|
|
44
|
+
paddingVertical: number;
|
|
45
|
+
borderRadius: number;
|
|
46
|
+
borderWidth: number;
|
|
47
|
+
alignItems: string;
|
|
48
|
+
justifyContent: string;
|
|
49
|
+
marginBottom: number;
|
|
50
|
+
};
|
|
51
|
+
envBadgeText: {
|
|
52
|
+
fontFamily: string;
|
|
53
|
+
fontSize: number;
|
|
54
|
+
letterSpacing: number;
|
|
55
|
+
};
|
|
42
56
|
headerDetailCenter: {
|
|
43
57
|
alignItems: string;
|
|
44
58
|
justifyContent: string;
|
package/dist/esm/styles/index.js
CHANGED
|
@@ -32,6 +32,20 @@ export const getRawStyles = (colors) => ({
|
|
|
32
32
|
letterSpacing: 0.3,
|
|
33
33
|
paddingBottom: 4,
|
|
34
34
|
},
|
|
35
|
+
envBadge: {
|
|
36
|
+
paddingHorizontal: 6,
|
|
37
|
+
paddingVertical: 2,
|
|
38
|
+
borderRadius: 6,
|
|
39
|
+
borderWidth: 1,
|
|
40
|
+
alignItems: 'center',
|
|
41
|
+
justifyContent: 'center',
|
|
42
|
+
marginBottom: 4,
|
|
43
|
+
},
|
|
44
|
+
envBadgeText: {
|
|
45
|
+
fontFamily: AppFonts.interBold,
|
|
46
|
+
fontSize: 9.5,
|
|
47
|
+
letterSpacing: 0.5,
|
|
48
|
+
},
|
|
35
49
|
headerDetailCenter: {
|
|
36
50
|
alignItems: 'center',
|
|
37
51
|
justifyContent: 'center',
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export type ActiveTab = 'apis' | 'analytics' | 'logs' | 'redux';
|
|
1
|
+
export type ActiveTab = 'apis' | 'analytics' | 'logs' | 'redux' | 'bundle';
|
|
2
2
|
export type Method = 'ALL' | 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
|
|
3
3
|
export type StatusFilter = 'ALL' | '2xx' | '3xx' | '4xx' | '5xx' | 'Failed';
|
|
4
4
|
export type SortOrder = 'newest' | 'oldest';
|
|
5
5
|
export type LocalFilter = 'success' | 'failed' | 'loading';
|
|
6
6
|
export type ModalAnimationType = 'slide' | 'fade' | 'none';
|
|
7
|
-
export type SettingsPage = 'main' | 'apis' | 'logs' | 'analytics' | 'redux' | null;
|
|
7
|
+
export type SettingsPage = 'main' | 'apis' | 'logs' | 'analytics' | 'redux' | 'bundle' | null;
|
|
8
8
|
export type SettingsSubTab = 'module' | 'ui';
|
|
9
9
|
export type LogFilter = 'all' | 'info' | 'warn' | 'error' | 'user-log' | 'analytics';
|
|
@@ -55,6 +55,7 @@ export interface ReduxHistoryEntry {
|
|
|
55
55
|
type: string;
|
|
56
56
|
payload: any;
|
|
57
57
|
timestamp: string;
|
|
58
|
+
updatedAt?: number;
|
|
58
59
|
affectedSlices: string[];
|
|
59
60
|
prevState?: any;
|
|
60
61
|
nextState?: any;
|
|
@@ -86,6 +87,8 @@ export interface NetworkInspectorProps {
|
|
|
86
87
|
isEnabled?: boolean;
|
|
87
88
|
storage?: InspectorStorage;
|
|
88
89
|
navigationRef?: any;
|
|
90
|
+
appIcon?: any;
|
|
91
|
+
environment?: 'DEV' | 'UAT' | 'PrePROD' | 'PROD' | 'QA' | 'Staging' | string;
|
|
89
92
|
}
|
|
90
93
|
export interface NavigationTrackerProps {
|
|
91
94
|
onStateChange: (state: any) => void;
|
|
@@ -96,6 +99,8 @@ export interface InspectorContextValue {
|
|
|
96
99
|
closeModal: () => void;
|
|
97
100
|
isReady: boolean;
|
|
98
101
|
isEnabled: boolean;
|
|
102
|
+
appIcon?: any;
|
|
103
|
+
environment?: string;
|
|
99
104
|
modalHeightPercent: number;
|
|
100
105
|
setModalHeightPercent: React.Dispatch<React.SetStateAction<number>>;
|
|
101
106
|
modalAnimationType: 'slide' | 'fade' | 'none';
|
|
@@ -198,6 +203,12 @@ export interface InspectorContextValue {
|
|
|
198
203
|
reduxLastActionMap: Record<string, any>;
|
|
199
204
|
reduxSearch: string;
|
|
200
205
|
setReduxSearch: React.Dispatch<React.SetStateAction<string>>;
|
|
206
|
+
selectedReduxSlice: string | null;
|
|
207
|
+
setSelectedReduxSlice: React.Dispatch<React.SetStateAction<string | null>>;
|
|
208
|
+
selectedReduxAction: any | null;
|
|
209
|
+
setSelectedReduxAction: React.Dispatch<React.SetStateAction<any | null>>;
|
|
210
|
+
reduxActiveSubTab: 'state' | 'timeline';
|
|
211
|
+
setReduxActiveSubTab: React.Dispatch<React.SetStateAction<'state' | 'timeline'>>;
|
|
201
212
|
settingsActiveSubTab: SettingsSubTab;
|
|
202
213
|
setSettingsActiveSubTab: React.Dispatch<React.SetStateAction<SettingsSubTab>>;
|
|
203
214
|
defaultTab: ActiveTab;
|
package/example/App.tsx
CHANGED
|
@@ -741,7 +741,11 @@ function App() {
|
|
|
741
741
|
</Stack.Navigator>
|
|
742
742
|
</NavigationContainer>
|
|
743
743
|
{/* Render inspector globally exactly once at the root level */}
|
|
744
|
-
<NetworkInspector
|
|
744
|
+
<NetworkInspector
|
|
745
|
+
navigationRef={navigationRef}
|
|
746
|
+
appIcon={require('./assets/app_icon.png')}
|
|
747
|
+
environment="DEV"
|
|
748
|
+
/>
|
|
745
749
|
</ErrorBoundary>
|
|
746
750
|
</SafeAreaProvider>
|
|
747
751
|
);
|
|
Binary file
|
package/example/ios/Podfile.lock
CHANGED
|
@@ -1473,7 +1473,7 @@ PODS:
|
|
|
1473
1473
|
- ReactCommon/turbomodule/core
|
|
1474
1474
|
- ReactNativeDependencies
|
|
1475
1475
|
- Yoga
|
|
1476
|
-
- react-native-webview (
|
|
1476
|
+
- react-native-webview (14.0.1):
|
|
1477
1477
|
- hermes-engine
|
|
1478
1478
|
- RCTRequired
|
|
1479
1479
|
- RCTTypeSafety
|
|
@@ -2259,7 +2259,7 @@ SPEC CHECKSUMS:
|
|
|
2259
2259
|
React-microtasksnativemodule: ab33a818d339f5a1da308893c11b487be66121a8
|
|
2260
2260
|
React-mutationobservernativemodule: a42d1626651ccd7d0dc02a56e69d4ec77c248893
|
|
2261
2261
|
react-native-safe-area-context: fb5c8ee9f6dd62ef710611b3d370c501f42a4ac0
|
|
2262
|
-
react-native-webview:
|
|
2262
|
+
react-native-webview: fa32202d241bd953cb7aa323f266a43ff86dfac9
|
|
2263
2263
|
React-NativeModulesApple: deba264b03bd79c6bd61014fa30e40321b5e443a
|
|
2264
2264
|
React-networking: 35e6070b084f435429f85c5db40b4d5b38652fe9
|
|
2265
2265
|
React-oscompat: 64a0c7ef5441855dc6e2a6afe8ba8f92aa05075e
|
|
@@ -2300,4 +2300,4 @@ SPEC CHECKSUMS:
|
|
|
2300
2300
|
|
|
2301
2301
|
PODFILE CHECKSUM: 3aa3b5f5253be927d355cf1499f60c53140eb9a3
|
|
2302
2302
|
|
|
2303
|
-
COCOAPODS: 1.
|
|
2303
|
+
COCOAPODS: 1.17.0
|
|
@@ -3,47 +3,56 @@
|
|
|
3
3
|
{
|
|
4
4
|
"idiom" : "iphone",
|
|
5
5
|
"scale" : "2x",
|
|
6
|
-
"size" : "20x20"
|
|
6
|
+
"size" : "20x20",
|
|
7
|
+
"filename" : "app_icon_1024.png"
|
|
7
8
|
},
|
|
8
9
|
{
|
|
9
10
|
"idiom" : "iphone",
|
|
10
11
|
"scale" : "3x",
|
|
11
|
-
"size" : "20x20"
|
|
12
|
+
"size" : "20x20",
|
|
13
|
+
"filename" : "app_icon_1024.png"
|
|
12
14
|
},
|
|
13
15
|
{
|
|
14
16
|
"idiom" : "iphone",
|
|
15
17
|
"scale" : "2x",
|
|
16
|
-
"size" : "29x29"
|
|
18
|
+
"size" : "29x29",
|
|
19
|
+
"filename" : "app_icon_1024.png"
|
|
17
20
|
},
|
|
18
21
|
{
|
|
19
22
|
"idiom" : "iphone",
|
|
20
23
|
"scale" : "3x",
|
|
21
|
-
"size" : "29x29"
|
|
24
|
+
"size" : "29x29",
|
|
25
|
+
"filename" : "app_icon_1024.png"
|
|
22
26
|
},
|
|
23
27
|
{
|
|
24
28
|
"idiom" : "iphone",
|
|
25
29
|
"scale" : "2x",
|
|
26
|
-
"size" : "40x40"
|
|
30
|
+
"size" : "40x40",
|
|
31
|
+
"filename" : "app_icon_1024.png"
|
|
27
32
|
},
|
|
28
33
|
{
|
|
29
34
|
"idiom" : "iphone",
|
|
30
35
|
"scale" : "3x",
|
|
31
|
-
"size" : "40x40"
|
|
36
|
+
"size" : "40x40",
|
|
37
|
+
"filename" : "app_icon_1024.png"
|
|
32
38
|
},
|
|
33
39
|
{
|
|
34
40
|
"idiom" : "iphone",
|
|
35
41
|
"scale" : "2x",
|
|
36
|
-
"size" : "60x60"
|
|
42
|
+
"size" : "60x60",
|
|
43
|
+
"filename" : "app_icon_1024.png"
|
|
37
44
|
},
|
|
38
45
|
{
|
|
39
46
|
"idiom" : "iphone",
|
|
40
47
|
"scale" : "3x",
|
|
41
|
-
"size" : "60x60"
|
|
48
|
+
"size" : "60x60",
|
|
49
|
+
"filename" : "app_icon_1024.png"
|
|
42
50
|
},
|
|
43
51
|
{
|
|
44
52
|
"idiom" : "ios-marketing",
|
|
45
53
|
"scale" : "1x",
|
|
46
|
-
"size" : "1024x1024"
|
|
54
|
+
"size" : "1024x1024",
|
|
55
|
+
"filename" : "app_icon_1024.png"
|
|
47
56
|
}
|
|
48
57
|
],
|
|
49
58
|
"info" : {
|