@buoy-gg/debug-borders 7.0.30 → 7.0.31
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.
|
@@ -24,9 +24,24 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
|
|
|
24
24
|
// Import JsModal from shared
|
|
25
25
|
let JsModal = null;
|
|
26
26
|
let DataViewer = null;
|
|
27
|
+
/**
|
|
28
|
+
* Where this overlay's info window remembers its size.
|
|
29
|
+
*
|
|
30
|
+
* It used to be the bare string `"debug-borders-info-modal"`, which is the one
|
|
31
|
+
* Buoy key in the app that `isDevToolsStorageKey` does not recognise — no
|
|
32
|
+
* `@react_buoy`, no `buoy-`, no `@buoy`. The consequences were small but wrong
|
|
33
|
+
* in both directions: it showed up in the Storage tool as if it were the app's
|
|
34
|
+
* own data, and the Events timeline reported Buoy resizing its own window as an
|
|
35
|
+
* application storage write.
|
|
36
|
+
*/
|
|
37
|
+
let infoModalKey = "@react_buoy_debug_borders_info_modal";
|
|
27
38
|
try {
|
|
28
39
|
const sharedModule = require("@buoy-gg/shared-ui");
|
|
29
40
|
JsModal = sharedModule.JsModal;
|
|
41
|
+
const keys = sharedModule.devToolsStorageKeys;
|
|
42
|
+
if (keys?.debugBorders?.infoModal) {
|
|
43
|
+
infoModalKey = keys.debugBorders.infoModal();
|
|
44
|
+
}
|
|
30
45
|
} catch (e) {
|
|
31
46
|
// JsModal not available
|
|
32
47
|
}
|
|
@@ -357,7 +372,7 @@ function DebugBordersStandaloneOverlay() {
|
|
|
357
372
|
title: selectedRect.componentInfo.primaryLabel
|
|
358
373
|
})
|
|
359
374
|
},
|
|
360
|
-
persistenceKey:
|
|
375
|
+
persistenceKey: infoModalKey,
|
|
361
376
|
enablePersistence: false,
|
|
362
377
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(ComponentInfoContent, {
|
|
363
378
|
info: selectedRect.componentInfo,
|
|
@@ -20,9 +20,24 @@ import { View, Text, StyleSheet, TouchableOpacity } from "react-native";
|
|
|
20
20
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
21
21
|
let JsModal = null;
|
|
22
22
|
let DataViewer = null;
|
|
23
|
+
/**
|
|
24
|
+
* Where this overlay's info window remembers its size.
|
|
25
|
+
*
|
|
26
|
+
* It used to be the bare string `"debug-borders-info-modal"`, which is the one
|
|
27
|
+
* Buoy key in the app that `isDevToolsStorageKey` does not recognise — no
|
|
28
|
+
* `@react_buoy`, no `buoy-`, no `@buoy`. The consequences were small but wrong
|
|
29
|
+
* in both directions: it showed up in the Storage tool as if it were the app's
|
|
30
|
+
* own data, and the Events timeline reported Buoy resizing its own window as an
|
|
31
|
+
* application storage write.
|
|
32
|
+
*/
|
|
33
|
+
let infoModalKey = "@react_buoy_debug_borders_info_modal";
|
|
23
34
|
try {
|
|
24
35
|
const sharedModule = require("@buoy-gg/shared-ui");
|
|
25
36
|
JsModal = sharedModule.JsModal;
|
|
37
|
+
const keys = sharedModule.devToolsStorageKeys;
|
|
38
|
+
if (keys?.debugBorders?.infoModal) {
|
|
39
|
+
infoModalKey = keys.debugBorders.infoModal();
|
|
40
|
+
}
|
|
26
41
|
} catch (e) {
|
|
27
42
|
// JsModal not available
|
|
28
43
|
}
|
|
@@ -353,7 +368,7 @@ export function DebugBordersStandaloneOverlay() {
|
|
|
353
368
|
title: selectedRect.componentInfo.primaryLabel
|
|
354
369
|
})
|
|
355
370
|
},
|
|
356
|
-
persistenceKey:
|
|
371
|
+
persistenceKey: infoModalKey,
|
|
357
372
|
enablePersistence: false,
|
|
358
373
|
children: /*#__PURE__*/_jsx(ComponentInfoContent, {
|
|
359
374
|
info: selectedRect.componentInfo,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DebugBordersStandaloneOverlay.d.ts","sourceRoot":"","sources":["../../../../src/debug-borders/components/DebugBordersStandaloneOverlay.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAA2C,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DebugBordersStandaloneOverlay.d.ts","sourceRoot":"","sources":["../../../../src/debug-borders/components/DebugBordersStandaloneOverlay.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAA2C,MAAM,OAAO,CAAC;AAgOhE,wBAAgB,6BAA6B,6BAsL5C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@buoy-gg/debug-borders",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.31",
|
|
4
4
|
"description": "Layout debugging borders for React Native — depth-colored, touch-through, tap any label to inspect testIDs & styles. Part of Buoy devtools.",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|
|
@@ -26,19 +26,19 @@
|
|
|
26
26
|
],
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@buoy-gg/
|
|
30
|
-
"@buoy-gg/
|
|
29
|
+
"@buoy-gg/core": "^7.0.31",
|
|
30
|
+
"@buoy-gg/shared-ui": "^7.0.31"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"react": "*",
|
|
34
34
|
"react-native": "*",
|
|
35
|
-
"@buoy-gg/license": "7.0.
|
|
35
|
+
"@buoy-gg/license": "7.0.31"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/react": "^19.1.0",
|
|
39
39
|
"@types/react-native": "^0.73.0",
|
|
40
40
|
"typescript": "~5.8.3",
|
|
41
|
-
"@buoy-gg/license": "^7.0.
|
|
41
|
+
"@buoy-gg/license": "^7.0.31"
|
|
42
42
|
},
|
|
43
43
|
"react-native-builder-bob": {
|
|
44
44
|
"source": "src",
|