react-native-in-app-debugger 1.0.76 → 1.0.77

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/Deeplink.tsx ADDED
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+ import { Linking, Text, TextInput, TouchableOpacity, View } from 'react-native';
3
+
4
+ export default ({deeplinkPrefix, onClose}) => {
5
+ const [text, setText] = React.useState('');
6
+ return (
7
+ <View style={{ flexDirection: 'row', alignItems: 'center', margin: 10 }}>
8
+ <Text style={{ color: 'white' }}>{deeplinkPrefix}</Text>
9
+ <TextInput
10
+ value={text}
11
+ autoCapitalize='none'
12
+ autoCorrect={false}
13
+ autoComplete='off'
14
+ onChangeText={setText}
15
+ style={{ flex: 1, backgroundColor: '#555', marginRight: 10, padding: 3, borderRadius: 3 }}
16
+ />
17
+ <TouchableOpacity
18
+ style={{ padding: 7, borderRadius: 4, backgroundColor: 'white' }}
19
+ onPress={() => {
20
+ onClose();
21
+ Linking.openURL(deeplinkPrefix + text);
22
+ }}
23
+ >
24
+ <Text style={{ color: 'black', fontSize: 9 }}>Go</Text>
25
+ </TouchableOpacity>
26
+ </View>
27
+ );
28
+ };
package/Libs.jsx CHANGED
@@ -9,17 +9,19 @@ import Text from "./Text";
9
9
  import Highlight from "./Highlight";
10
10
  import packageJson from "../../package.json";
11
11
  import realDeps from "./parentDependencies.js";
12
+ import Deeplink from "./Deeplink";
12
13
 
13
14
  const libs = Object.entries(packageJson.dependencies).reduce(
14
15
  (arr, [name, version]) => [...arr, { name, version }],
15
16
  []
16
17
  );
17
18
 
18
- export default () => {
19
+ export default (p) => {
19
20
  const [filter, setFilter] = useState("");
20
21
 
21
22
  return (
22
23
  <>
24
+ {!!p.deeplinkPrefix && <Deeplink {...p} />}
23
25
  <TextInput
24
26
  value={filter}
25
27
  placeholder="Filter..."
package/index.jsx CHANGED
@@ -193,7 +193,7 @@ export default ({
193
193
  {[
194
194
  "api",
195
195
  !!variables && "vars",
196
- "libs",
196
+ "config",
197
197
  ...tabs.map((t) => t.title),
198
198
  ]
199
199
  .filter(Boolean)
@@ -228,7 +228,12 @@ export default ({
228
228
  <X style={{ marginRight: 5 }} onPress={() => setIsOpen(false)} />
229
229
  </View>
230
230
  {tab === "vars" && !!variables && <Variables variables={variables} />}
231
- {tab === "libs" && <Libs />}
231
+ {tab === "config" && (
232
+ <Libs
233
+ deeplinkPrefix={variables.DEEPLINK_PREFIX}
234
+ onClose={() => setIsOpen(false)}
235
+ />
236
+ )}
232
237
  {tab === "api" && (
233
238
  <Api
234
239
  {...{ apis, setBlacklists, blacklists, maxNumOfApiToStore }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-in-app-debugger",
3
- "version": "1.0.76",
3
+ "version": "1.0.77",
4
4
  "description": "This library's main usage is to be used by Non-Technical testers during UAT, SIT or any testing phase.",
5
5
  "main": "index.jsx",
6
6
  "scripts": {