@rork-ai/toolkit-dev-sdk 0.2.6 → 0.2.7
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/lib/module/index.js +5 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/inspector.53.js +413 -0
- package/lib/module/inspector.53.js.map +1 -0
- package/lib/module/inspector.js +290 -0
- package/lib/module/inspector.js.map +1 -0
- package/lib/module/inspector.web.js +11 -0
- package/lib/module/inspector.web.js.map +1 -0
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/inspector.53.d.ts +23 -0
- package/lib/typescript/src/inspector.53.d.ts.map +1 -0
- package/lib/typescript/src/inspector.d.ts +23 -0
- package/lib/typescript/src/inspector.d.ts.map +1 -0
- package/lib/typescript/src/inspector.web.d.ts +4 -0
- package/lib/typescript/src/inspector.web.d.ts.map +1 -0
- package/package.json +4 -2
- package/src/index.tsx +4 -1
- package/src/inspector.53.tsx +467 -0
- package/src/inspector.tsx +345 -0
- package/src/inspector.web.tsx +3 -0
package/lib/module/index.js
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { RorkErrorBoundary } from "./error-boundary.js";
|
|
4
|
+
import { BundleInspector } from "./inspector";
|
|
4
5
|
import { RorkSafeInsets } from "./safe-insets-content";
|
|
5
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
7
|
export function RorkDevWrapper({
|
|
7
8
|
children
|
|
8
9
|
}) {
|
|
9
10
|
return /*#__PURE__*/_jsx(RorkErrorBoundary, {
|
|
10
|
-
children: /*#__PURE__*/_jsx(
|
|
11
|
-
children:
|
|
11
|
+
children: /*#__PURE__*/_jsx(BundleInspector, {
|
|
12
|
+
children: /*#__PURE__*/_jsx(RorkSafeInsets, {
|
|
13
|
+
children: children
|
|
14
|
+
})
|
|
12
15
|
})
|
|
13
16
|
});
|
|
14
17
|
}
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["RorkErrorBoundary","RorkSafeInsets","jsx","_jsx","RorkDevWrapper","children"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,SAASA,iBAAiB,QAAQ,qBAAkB;AACpD,SAASC,cAAc,QAAQ,uBAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEvD,OAAO,SAASC,cAAcA,CAAC;EAAEC;AAAwC,CAAC,EAAE;EAC1E,oBACEF,IAAA,
|
|
1
|
+
{"version":3,"names":["RorkErrorBoundary","BundleInspector","RorkSafeInsets","jsx","_jsx","RorkDevWrapper","children"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,SAASA,iBAAiB,QAAQ,qBAAkB;AACpD,SAASC,eAAe,QAAQ,aAAa;AAC7C,SAASC,cAAc,QAAQ,uBAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEvD,OAAO,SAASC,cAAcA,CAAC;EAAEC;AAAwC,CAAC,EAAE;EAC1E,oBACEF,IAAA,CAACJ,iBAAiB;IAAAM,QAAA,eAChBF,IAAA,CAACH,eAAe;MAAAK,QAAA,eACdF,IAAA,CAACF,cAAc;QAAAI,QAAA,EAAEA;MAAQ,CAAiB;IAAC,CAC5B;EAAC,CACD,CAAC;AAExB","ignoreList":[]}
|
|
@@ -0,0 +1,413 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
The code here will is moved to our infrastructure (with ctrl+c ctrl+v)
|
|
5
|
+
where we add it in _layout.tsx as it is.
|
|
6
|
+
|
|
7
|
+
It will be added at .rork/BundleInspector.tsx (web vestoin too).
|
|
8
|
+
|
|
9
|
+
That is why:
|
|
10
|
+
1. This file should never import other files
|
|
11
|
+
2. This file should never import other modules that will not be on the device.
|
|
12
|
+
We import react-native-safe-area-context and lucide-react-native
|
|
13
|
+
but we are confident it will be there. Still not great.
|
|
14
|
+
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import { BlurView } from "expo-blur";
|
|
18
|
+
import { requireOptionalNativeModule } from "expo-modules-core";
|
|
19
|
+
import { X } from "lucide-react-native";
|
|
20
|
+
import React, { useCallback, useEffect, useRef, useState } from "react";
|
|
21
|
+
import { Dimensions, LogBox, NativeModules, StyleSheet, Text, TouchableOpacity, View } from "react-native";
|
|
22
|
+
import { useSafeAreaInsets } from "react-native-safe-area-context";
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import DebuggingOverlay from "react-native/Libraries/Debugging/DebuggingOverlay.js";
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import useSubscribeToDebuggingOverlayRegistry from "react-native/Libraries/Debugging/useSubscribeToDebuggingOverlayRegistry";
|
|
27
|
+
import ErrorUtils from "react-native/Libraries/vendor/core/ErrorUtils";
|
|
28
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
29
|
+
const getInspectorDataForViewAtPoint = require("react-native/src/private/inspector/getInspectorDataForViewAtPoint").default;
|
|
30
|
+
const InspectorOverlay = require("react-native/src/private/inspector/InspectorOverlay").default;
|
|
31
|
+
// Removed InspectorPanel import - implementing inline
|
|
32
|
+
|
|
33
|
+
const BridgeModule = requireOptionalNativeModule("Bridge");
|
|
34
|
+
export function isRorkSandbox() {
|
|
35
|
+
return !!NativeModules.RorkSandbox;
|
|
36
|
+
}
|
|
37
|
+
if (BridgeModule) {
|
|
38
|
+
LogBox.ignoreAllLogs();
|
|
39
|
+
LogBox.uninstall();
|
|
40
|
+
|
|
41
|
+
// @ts-ignore
|
|
42
|
+
ErrorUtils.setGlobalHandler(error => {
|
|
43
|
+
sendBridgeMessage("runtime-error", {
|
|
44
|
+
stack: error.stack,
|
|
45
|
+
message: error.message
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
export function sendBridgeMessage(type, data) {
|
|
50
|
+
if (data) {
|
|
51
|
+
return BridgeModule?.sendMessage({
|
|
52
|
+
type,
|
|
53
|
+
data: JSON.stringify(data)
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
return BridgeModule?.sendMessage({
|
|
57
|
+
type
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
export function addBridgeListener(listener) {
|
|
61
|
+
return BridgeModule?.addListener("onMessage", data => {
|
|
62
|
+
if (typeof data !== "object") return;
|
|
63
|
+
if (data.data) {
|
|
64
|
+
listener({
|
|
65
|
+
...data,
|
|
66
|
+
data: JSON.parse(data.data)
|
|
67
|
+
});
|
|
68
|
+
} else {
|
|
69
|
+
listener(data);
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
export function useBridge() {
|
|
74
|
+
const [state, setState] = useState({
|
|
75
|
+
inspectorEnabled: false
|
|
76
|
+
});
|
|
77
|
+
useEffect(() => {
|
|
78
|
+
const subscription = addBridgeListener(data => {
|
|
79
|
+
if (typeof data === "object" && data.type === "merge-inspector-state") {
|
|
80
|
+
setState(prev => ({
|
|
81
|
+
...prev,
|
|
82
|
+
...data.data
|
|
83
|
+
}));
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
sendBridgeMessage("runtime-ready");
|
|
87
|
+
return () => subscription?.remove();
|
|
88
|
+
}, []);
|
|
89
|
+
const disableInspector = useCallback(() => {
|
|
90
|
+
setState(prev => ({
|
|
91
|
+
...prev,
|
|
92
|
+
inspectorEnabled: false
|
|
93
|
+
}));
|
|
94
|
+
sendBridgeMessage("merge-inspector-state", {
|
|
95
|
+
inspectorEnabled: false
|
|
96
|
+
});
|
|
97
|
+
}, []);
|
|
98
|
+
return {
|
|
99
|
+
...state,
|
|
100
|
+
disableInspector
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
export function BundleInspector(props) {
|
|
104
|
+
const innerViewRef = useRef(null);
|
|
105
|
+
const appContainerRootViewRef = useRef(null);
|
|
106
|
+
const debuggingOverlayRef = useRef(null);
|
|
107
|
+
const {
|
|
108
|
+
inspectorEnabled,
|
|
109
|
+
disableInspector
|
|
110
|
+
} = useBridge();
|
|
111
|
+
const [panelPosition, setPanelPosition] = useState("bottom");
|
|
112
|
+
const [inspectedElement, setInspectedElement] = useState(null);
|
|
113
|
+
const [lastPayload, setLastPayload] = useState(null);
|
|
114
|
+
useEffect(() => {
|
|
115
|
+
if (inspectorEnabled) return;
|
|
116
|
+
setInspectedElement(null);
|
|
117
|
+
setPanelPosition("bottom");
|
|
118
|
+
}, [inspectorEnabled]);
|
|
119
|
+
useSubscribeToDebuggingOverlayRegistry(appContainerRootViewRef, debuggingOverlayRef);
|
|
120
|
+
const handleInspectedElementChange = useCallback(viewData => {
|
|
121
|
+
if (viewData) {
|
|
122
|
+
const payload = {
|
|
123
|
+
style: viewData.props.style,
|
|
124
|
+
frame: viewData.frame,
|
|
125
|
+
componentStack: viewData.componentStack,
|
|
126
|
+
hierarchy: viewData.hierarchy?.map(h => ({
|
|
127
|
+
name: h.name ?? null
|
|
128
|
+
}))
|
|
129
|
+
};
|
|
130
|
+
setLastPayload(payload);
|
|
131
|
+
}
|
|
132
|
+
}, []);
|
|
133
|
+
const onTouchPoint = (locationX, locationY) => {
|
|
134
|
+
getInspectorDataForViewAtPoint(innerViewRef.current, locationX, locationY, viewData => {
|
|
135
|
+
setPanelPosition(viewData.pointerY > Dimensions.get("window").height * 0.8 ? "top" : "bottom");
|
|
136
|
+
setInspectedElement({
|
|
137
|
+
frame: viewData.frame,
|
|
138
|
+
style: viewData.props.style
|
|
139
|
+
});
|
|
140
|
+
handleInspectedElementChange(viewData);
|
|
141
|
+
return false;
|
|
142
|
+
});
|
|
143
|
+
};
|
|
144
|
+
const {
|
|
145
|
+
top,
|
|
146
|
+
bottom
|
|
147
|
+
} = useSafeAreaInsets();
|
|
148
|
+
const panelContainerStyle = panelPosition === "bottom" ? {
|
|
149
|
+
bottom: 0,
|
|
150
|
+
marginBottom: bottom
|
|
151
|
+
} : {
|
|
152
|
+
top: 0,
|
|
153
|
+
marginTop: top
|
|
154
|
+
};
|
|
155
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
156
|
+
style: styles.container,
|
|
157
|
+
ref: appContainerRootViewRef,
|
|
158
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
159
|
+
style: styles.container,
|
|
160
|
+
ref: innerViewRef,
|
|
161
|
+
children: props.children
|
|
162
|
+
}), inspectorEnabled && /*#__PURE__*/_jsx(DebuggingOverlay, {
|
|
163
|
+
ref: debuggingOverlayRef,
|
|
164
|
+
style: styles.absolute
|
|
165
|
+
}), inspectorEnabled && /*#__PURE__*/_jsxs(View, {
|
|
166
|
+
style: styles.inspectorContainer,
|
|
167
|
+
pointerEvents: "box-none",
|
|
168
|
+
children: [/*#__PURE__*/_jsx(InspectorOverlay, {
|
|
169
|
+
inspected: inspectedElement,
|
|
170
|
+
onTouchPoint: onTouchPoint
|
|
171
|
+
}), /*#__PURE__*/_jsx(BlurView, {
|
|
172
|
+
style: [{
|
|
173
|
+
position: "absolute",
|
|
174
|
+
left: 0,
|
|
175
|
+
right: 0,
|
|
176
|
+
backgroundColor: "rgba(0, 0, 0, 0.85)",
|
|
177
|
+
borderRadius: 30,
|
|
178
|
+
marginHorizontal: 12,
|
|
179
|
+
padding: 12,
|
|
180
|
+
paddingLeft: 20,
|
|
181
|
+
overflow: "hidden"
|
|
182
|
+
}, panelContainerStyle],
|
|
183
|
+
children: inspectedElement ? /*#__PURE__*/_jsxs(View, {
|
|
184
|
+
style: styles.floatingIsland,
|
|
185
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
186
|
+
style: styles.islandText,
|
|
187
|
+
children: "Element selected"
|
|
188
|
+
}), /*#__PURE__*/_jsxs(View, {
|
|
189
|
+
style: styles.buttonGroup,
|
|
190
|
+
children: [/*#__PURE__*/_jsx(TouchableOpacity, {
|
|
191
|
+
style: styles.selectButton,
|
|
192
|
+
onPress: () => {
|
|
193
|
+
if (lastPayload) {
|
|
194
|
+
sendBridgeMessage("inspector-element", lastPayload);
|
|
195
|
+
disableInspector();
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
199
|
+
style: styles.buttonText,
|
|
200
|
+
children: "Select"
|
|
201
|
+
})
|
|
202
|
+
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
203
|
+
activeOpacity: 0.72,
|
|
204
|
+
style: styles.cancelButton,
|
|
205
|
+
onPress: disableInspector,
|
|
206
|
+
children: /*#__PURE__*/_jsx(X, {
|
|
207
|
+
size: 18,
|
|
208
|
+
color: "#808080",
|
|
209
|
+
strokeWidth: 2.5
|
|
210
|
+
})
|
|
211
|
+
})]
|
|
212
|
+
})]
|
|
213
|
+
}) : /*#__PURE__*/_jsxs(View, {
|
|
214
|
+
style: styles.floatingIsland,
|
|
215
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
216
|
+
style: styles.islandText,
|
|
217
|
+
children: "Touch any element to inspect"
|
|
218
|
+
}), /*#__PURE__*/_jsx(TouchableOpacity, {
|
|
219
|
+
activeOpacity: 0.72,
|
|
220
|
+
style: styles.cancelTextButton,
|
|
221
|
+
onPress: disableInspector,
|
|
222
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
223
|
+
style: styles.buttonText,
|
|
224
|
+
children: "Cancel"
|
|
225
|
+
})
|
|
226
|
+
})]
|
|
227
|
+
})
|
|
228
|
+
})]
|
|
229
|
+
})]
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
const styles = StyleSheet.create({
|
|
233
|
+
container: {
|
|
234
|
+
flex: 1
|
|
235
|
+
},
|
|
236
|
+
absolute: StyleSheet.absoluteFillObject,
|
|
237
|
+
inspectorContainer: {
|
|
238
|
+
position: "absolute",
|
|
239
|
+
backgroundColor: "transparent",
|
|
240
|
+
top: 0,
|
|
241
|
+
left: 0,
|
|
242
|
+
right: 0,
|
|
243
|
+
bottom: 0
|
|
244
|
+
},
|
|
245
|
+
properties: {
|
|
246
|
+
flexShrink: 1
|
|
247
|
+
},
|
|
248
|
+
elementInfo: {
|
|
249
|
+
padding: 8,
|
|
250
|
+
gap: 3
|
|
251
|
+
},
|
|
252
|
+
section: {
|
|
253
|
+
marginBottom: 15
|
|
254
|
+
},
|
|
255
|
+
sectionTitle: {
|
|
256
|
+
color: "white",
|
|
257
|
+
fontSize: 11,
|
|
258
|
+
fontWeight: "600",
|
|
259
|
+
marginBottom: 4,
|
|
260
|
+
textTransform: "uppercase",
|
|
261
|
+
opacity: 0.7
|
|
262
|
+
},
|
|
263
|
+
boxModel: {
|
|
264
|
+
backgroundColor: "rgba(255, 255, 255, 0.1)",
|
|
265
|
+
padding: 10,
|
|
266
|
+
borderRadius: 4,
|
|
267
|
+
alignItems: "center"
|
|
268
|
+
},
|
|
269
|
+
boxText: {
|
|
270
|
+
color: "white",
|
|
271
|
+
fontSize: 13,
|
|
272
|
+
fontWeight: "500"
|
|
273
|
+
},
|
|
274
|
+
layoutInfo: {
|
|
275
|
+
backgroundColor: "rgba(255, 255, 255, 0.05)",
|
|
276
|
+
padding: 8,
|
|
277
|
+
borderRadius: 4
|
|
278
|
+
},
|
|
279
|
+
layoutText: {
|
|
280
|
+
color: "white",
|
|
281
|
+
fontSize: 12,
|
|
282
|
+
marginBottom: 2
|
|
283
|
+
},
|
|
284
|
+
styleInfo: {
|
|
285
|
+
backgroundColor: "rgba(255, 255, 255, 0.05)",
|
|
286
|
+
padding: 8,
|
|
287
|
+
borderRadius: 4
|
|
288
|
+
},
|
|
289
|
+
styleText: {
|
|
290
|
+
color: "white",
|
|
291
|
+
fontSize: 11,
|
|
292
|
+
marginBottom: 2,
|
|
293
|
+
fontFamily: "monospace"
|
|
294
|
+
},
|
|
295
|
+
waiting: {
|
|
296
|
+
height: 60,
|
|
297
|
+
justifyContent: "center",
|
|
298
|
+
alignItems: "center"
|
|
299
|
+
},
|
|
300
|
+
waitingContent: {
|
|
301
|
+
flex: 1,
|
|
302
|
+
justifyContent: "center",
|
|
303
|
+
alignItems: "center"
|
|
304
|
+
},
|
|
305
|
+
waitingText: {
|
|
306
|
+
fontSize: 14,
|
|
307
|
+
textAlign: "center",
|
|
308
|
+
color: "white",
|
|
309
|
+
opacity: 0.9,
|
|
310
|
+
fontWeight: "500"
|
|
311
|
+
},
|
|
312
|
+
waitingSubText: {
|
|
313
|
+
fontSize: 12,
|
|
314
|
+
textAlign: "center",
|
|
315
|
+
color: "white",
|
|
316
|
+
opacity: 0.6,
|
|
317
|
+
marginTop: 4
|
|
318
|
+
},
|
|
319
|
+
floatingIsland: {
|
|
320
|
+
flexDirection: "row",
|
|
321
|
+
justifyContent: "space-between",
|
|
322
|
+
alignItems: "center",
|
|
323
|
+
gap: 16
|
|
324
|
+
},
|
|
325
|
+
islandText: {
|
|
326
|
+
color: "white",
|
|
327
|
+
fontSize: 16,
|
|
328
|
+
fontWeight: "600",
|
|
329
|
+
flex: 1
|
|
330
|
+
},
|
|
331
|
+
buttonGroup: {
|
|
332
|
+
flexDirection: "row",
|
|
333
|
+
gap: 8
|
|
334
|
+
},
|
|
335
|
+
selectButton: {
|
|
336
|
+
backgroundColor: "#007AFF",
|
|
337
|
+
paddingHorizontal: 12,
|
|
338
|
+
paddingVertical: 6,
|
|
339
|
+
borderRadius: 16,
|
|
340
|
+
minWidth: 60
|
|
341
|
+
},
|
|
342
|
+
cancelButton: {
|
|
343
|
+
backgroundColor: "rgba(255, 255, 255, 0.15)",
|
|
344
|
+
borderRadius: 16,
|
|
345
|
+
aspectRatio: 1,
|
|
346
|
+
height: 28,
|
|
347
|
+
justifyContent: "center",
|
|
348
|
+
alignItems: "center"
|
|
349
|
+
},
|
|
350
|
+
cancelTextButton: {
|
|
351
|
+
backgroundColor: "rgba(255, 255, 255, 0.15)",
|
|
352
|
+
paddingHorizontal: 12,
|
|
353
|
+
paddingVertical: 6,
|
|
354
|
+
borderRadius: 16,
|
|
355
|
+
minWidth: 60
|
|
356
|
+
},
|
|
357
|
+
buttonText: {
|
|
358
|
+
color: "white",
|
|
359
|
+
fontSize: 14,
|
|
360
|
+
fontWeight: "600",
|
|
361
|
+
textAlign: "center"
|
|
362
|
+
},
|
|
363
|
+
panelTitle: {
|
|
364
|
+
color: "white",
|
|
365
|
+
fontSize: 14,
|
|
366
|
+
fontWeight: "600",
|
|
367
|
+
marginBottom: 8,
|
|
368
|
+
textAlign: "center"
|
|
369
|
+
},
|
|
370
|
+
editorSection: {
|
|
371
|
+
marginBottom: 10
|
|
372
|
+
},
|
|
373
|
+
inputGrid: {
|
|
374
|
+
flexDirection: "row",
|
|
375
|
+
gap: 8
|
|
376
|
+
},
|
|
377
|
+
inputCell: {
|
|
378
|
+
flex: 1
|
|
379
|
+
},
|
|
380
|
+
inputLabel: {
|
|
381
|
+
color: "white",
|
|
382
|
+
fontSize: 10,
|
|
383
|
+
fontWeight: "500",
|
|
384
|
+
marginBottom: 2,
|
|
385
|
+
opacity: 0.8
|
|
386
|
+
},
|
|
387
|
+
compactInput: {
|
|
388
|
+
backgroundColor: "rgba(255, 255, 255, 0.1)",
|
|
389
|
+
paddingHorizontal: 8,
|
|
390
|
+
paddingVertical: 4,
|
|
391
|
+
borderRadius: 4,
|
|
392
|
+
color: "white",
|
|
393
|
+
fontSize: 12,
|
|
394
|
+
borderWidth: 1,
|
|
395
|
+
borderColor: "rgba(255, 255, 255, 0.15)",
|
|
396
|
+
height: 28
|
|
397
|
+
},
|
|
398
|
+
applyButton: {
|
|
399
|
+
backgroundColor: "#007AFF",
|
|
400
|
+
paddingVertical: 10,
|
|
401
|
+
paddingHorizontal: 20,
|
|
402
|
+
borderRadius: 6,
|
|
403
|
+
alignItems: "center",
|
|
404
|
+
marginTop: 8,
|
|
405
|
+
alignSelf: "flex-end"
|
|
406
|
+
},
|
|
407
|
+
applyButtonText: {
|
|
408
|
+
color: "white",
|
|
409
|
+
fontSize: 14,
|
|
410
|
+
fontWeight: "600"
|
|
411
|
+
}
|
|
412
|
+
});
|
|
413
|
+
//# sourceMappingURL=inspector.53.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["BlurView","requireOptionalNativeModule","X","React","useCallback","useEffect","useRef","useState","Dimensions","LogBox","NativeModules","StyleSheet","Text","TouchableOpacity","View","useSafeAreaInsets","DebuggingOverlay","useSubscribeToDebuggingOverlayRegistry","ErrorUtils","jsx","_jsx","jsxs","_jsxs","getInspectorDataForViewAtPoint","require","default","InspectorOverlay","BridgeModule","isRorkSandbox","RorkSandbox","ignoreAllLogs","uninstall","setGlobalHandler","error","sendBridgeMessage","stack","message","type","data","sendMessage","JSON","stringify","addBridgeListener","listener","addListener","parse","useBridge","state","setState","inspectorEnabled","subscription","prev","remove","disableInspector","BundleInspector","props","innerViewRef","appContainerRootViewRef","debuggingOverlayRef","panelPosition","setPanelPosition","inspectedElement","setInspectedElement","lastPayload","setLastPayload","handleInspectedElementChange","viewData","payload","style","frame","componentStack","hierarchy","map","h","name","onTouchPoint","locationX","locationY","current","pointerY","get","height","top","bottom","panelContainerStyle","marginBottom","marginTop","styles","container","ref","children","absolute","inspectorContainer","pointerEvents","inspected","position","left","right","backgroundColor","borderRadius","marginHorizontal","padding","paddingLeft","overflow","floatingIsland","islandText","buttonGroup","selectButton","onPress","buttonText","activeOpacity","cancelButton","size","color","strokeWidth","cancelTextButton","create","flex","absoluteFillObject","properties","flexShrink","elementInfo","gap","section","sectionTitle","fontSize","fontWeight","textTransform","opacity","boxModel","alignItems","boxText","layoutInfo","layoutText","styleInfo","styleText","fontFamily","waiting","justifyContent","waitingContent","waitingText","textAlign","waitingSubText","flexDirection","paddingHorizontal","paddingVertical","minWidth","aspectRatio","panelTitle","editorSection","inputGrid","inputCell","inputLabel","compactInput","borderWidth","borderColor","applyButton","alignSelf","applyButtonText"],"sourceRoot":"../../src","sources":["inspector.53.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,QAAQ,QAAQ,WAAW;AACpC,SACEC,2BAA2B,QAEtB,mBAAmB;AAC1B,SAASC,CAAC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