@buoy-gg/highlight-updates 7.0.18 → 7.0.20
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.
|
@@ -39,6 +39,14 @@ function toWireRender(render) {
|
|
|
39
39
|
historyCount: renderHistory?.length ?? 0
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Deliberately serializes to test serializability, unlike the snapshot guards
|
|
45
|
+
* elsewhere. This runs once per `getRenderDetail` — a user clicking one row —
|
|
46
|
+
* not on the ~5x/sec snapshot, so there is no unbounded per-tick cost to
|
|
47
|
+
* avoid. Probing with a size walk first would just traverse the whole render
|
|
48
|
+
* before doing this anyway.
|
|
49
|
+
*/
|
|
42
50
|
function jsonSafeRender(render) {
|
|
43
51
|
try {
|
|
44
52
|
JSON.stringify(render);
|
|
@@ -34,6 +34,14 @@ function toWireRender(render) {
|
|
|
34
34
|
historyCount: renderHistory?.length ?? 0
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Deliberately serializes to test serializability, unlike the snapshot guards
|
|
40
|
+
* elsewhere. This runs once per `getRenderDetail` — a user clicking one row —
|
|
41
|
+
* not on the ~5x/sec snapshot, so there is no unbounded per-tick cost to
|
|
42
|
+
* avoid. Probing with a size walk first would just traverse the whole render
|
|
43
|
+
* before doing this anyway.
|
|
44
|
+
*/
|
|
37
45
|
function jsonSafeRender(render) {
|
|
38
46
|
try {
|
|
39
47
|
JSON.stringify(render);
|
|
@@ -32,7 +32,7 @@ export declare const highlightUpdatesSyncAdapter: {
|
|
|
32
32
|
* On-demand detail: one component's real renderHistory + lastRenderCause
|
|
33
33
|
* (including hookChanges). Wire-form snapshots omit those.
|
|
34
34
|
*/
|
|
35
|
-
getRenderDetail: (params
|
|
35
|
+
getRenderDetail: (params?: unknown) => {
|
|
36
36
|
found: false;
|
|
37
37
|
reason: string;
|
|
38
38
|
nativeTag?: undefined;
|
|
@@ -44,14 +44,14 @@ export declare const highlightUpdatesSyncAdapter: {
|
|
|
44
44
|
reason?: undefined;
|
|
45
45
|
};
|
|
46
46
|
toggle: () => void;
|
|
47
|
-
setEnabled: (params
|
|
47
|
+
setEnabled: (params?: unknown) => void;
|
|
48
48
|
toggleFreeze: () => void;
|
|
49
49
|
clearRenderCounts: () => void;
|
|
50
|
-
setSpotlight: (params
|
|
51
|
-
locateComponent: (params
|
|
52
|
-
setSilentTracking: (params
|
|
50
|
+
setSpotlight: (params?: unknown) => void;
|
|
51
|
+
locateComponent: (params?: unknown) => Promise<import("../highlight-updates/utils/HighlightUpdatesController").LocateComponentResult>;
|
|
52
|
+
setSilentTracking: (params?: unknown) => void;
|
|
53
53
|
describeScreen: () => Promise<import("../highlight-updates/utils/screenElements").DescribeScreenResult>;
|
|
54
|
-
tapElement: (params
|
|
54
|
+
tapElement: (params?: unknown) => Promise<import("../highlight-updates/utils/screenElements").TapElementResult>;
|
|
55
55
|
};
|
|
56
56
|
};
|
|
57
57
|
//# sourceMappingURL=highlightUpdatesSyncAdapter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"highlightUpdatesSyncAdapter.d.ts","sourceRoot":"","sources":["../../../src/sync/highlightUpdatesSyncAdapter.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAEV,aAAa,EACd,MAAM,0CAA0C,CAAC;
|
|
1
|
+
{"version":3,"file":"highlightUpdatesSyncAdapter.d.ts","sourceRoot":"","sources":["../../../src/sync/highlightUpdatesSyncAdapter.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAEV,aAAa,EACd,MAAM,0CAA0C,CAAC;AAkElD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;0BAUhB,MAAM,IAAI;;QAc9B;;;WAGG;mCACwB,OAAO;;;;;;;;;;;;8BAcZ,OAAO;;;gCAYL,OAAO;mCASJ,OAAO;qCAQL,OAAO;;8BAad,OAAO;;CAEhC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@buoy-gg/highlight-updates",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.20",
|
|
4
4
|
"description": "Render highlighter for React Native — see every render with its cause: mount, state, props, or parent. Part of Buoy devtools.",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
],
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@buoy-gg/shared-ui": "^7.0.
|
|
30
|
-
"@buoy-gg/floating-tools-core": "^7.0.
|
|
29
|
+
"@buoy-gg/shared-ui": "^7.0.20",
|
|
30
|
+
"@buoy-gg/floating-tools-core": "^7.0.20"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@buoy-gg/license": "7.0.
|
|
33
|
+
"@buoy-gg/license": "7.0.20",
|
|
34
34
|
"react": "*",
|
|
35
35
|
"react-native": "*",
|
|
36
|
-
"@buoy-gg/core": "^7.0.
|
|
36
|
+
"@buoy-gg/core": "^7.0.20"
|
|
37
37
|
},
|
|
38
38
|
"peerDependenciesMeta": {
|
|
39
39
|
"@buoy-gg/core": {
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"@types/react": "^19.1.0",
|
|
45
45
|
"@types/react-native": "^0.73.0",
|
|
46
46
|
"typescript": "~5.8.3",
|
|
47
|
-
"@buoy-gg/
|
|
48
|
-
"@buoy-gg/
|
|
47
|
+
"@buoy-gg/core": "^7.0.20",
|
|
48
|
+
"@buoy-gg/license": "^7.0.20"
|
|
49
49
|
},
|
|
50
50
|
"react-native-builder-bob": {
|
|
51
51
|
"source": "src",
|
|
@@ -63,7 +63,12 @@
|
|
|
63
63
|
"sourceMaps": false
|
|
64
64
|
}
|
|
65
65
|
],
|
|
66
|
-
|
|
66
|
+
[
|
|
67
|
+
"typescript",
|
|
68
|
+
{
|
|
69
|
+
"project": "tsconfig.build.json"
|
|
70
|
+
}
|
|
71
|
+
]
|
|
67
72
|
]
|
|
68
73
|
},
|
|
69
74
|
"repository": {
|