bippy 0.2.19 → 0.2.21
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/dist/{chunk-PFP4X2TS.cjs → chunk-CDQZX25E.cjs} +3 -3
- package/dist/{chunk-NCIDNNWS.cjs → chunk-DUWBSZCN.cjs} +1 -1
- package/dist/{chunk-I7W5KA7J.js → chunk-HAT4WUYT.js} +1 -1
- package/dist/{chunk-IR6TXZE7.js → chunk-ONC6264D.js} +1 -1
- package/dist/core.cjs +68 -68
- package/dist/core.js +1 -1
- package/dist/index.cjs +69 -69
- package/dist/index.global.js +1 -1
- package/dist/index.js +2 -2
- package/dist/inspect.cjs +176 -176
- package/dist/inspect.js +123 -123
- package/dist/sw.d.cts +68 -0
- package/dist/sw.d.ts +68 -0
- package/package.json +121 -126
- package/README.md +0 -649
package/dist/sw.d.cts
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { FiberRoot, Fiber as Fiber$1, Lanes, ReactContext } from 'react-reconciler';
|
|
2
|
+
|
|
3
|
+
interface ReactDevToolsGlobalHook {
|
|
4
|
+
checkDCE: (fn: unknown) => void;
|
|
5
|
+
supportsFiber: boolean;
|
|
6
|
+
supportsFlight: boolean;
|
|
7
|
+
renderers: Map<number, ReactRenderer>;
|
|
8
|
+
hasUnsupportedRendererAttached: boolean;
|
|
9
|
+
onCommitFiberRoot: (rendererID: number, root: FiberRoot, priority: void | number) => void;
|
|
10
|
+
onCommitFiberUnmount: (rendererID: number, fiber: Fiber) => void;
|
|
11
|
+
onPostCommitFiberRoot: (rendererID: number, root: FiberRoot) => void;
|
|
12
|
+
inject: (renderer: ReactRenderer) => number;
|
|
13
|
+
_instrumentationSource?: string;
|
|
14
|
+
_instrumentationIsActive?: boolean;
|
|
15
|
+
_sw?: boolean;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Represents a react-internal Fiber node.
|
|
19
|
+
*/
|
|
20
|
+
type Fiber<T = any> = Omit<Fiber$1, 'stateNode' | 'dependencies' | 'child' | 'sibling' | 'return' | 'alternate' | 'memoizedProps' | 'pendingProps' | 'memoizedState' | 'updateQueue'> & {
|
|
21
|
+
stateNode: T;
|
|
22
|
+
dependencies: Dependencies | null;
|
|
23
|
+
child: Fiber | null;
|
|
24
|
+
sibling: Fiber | null;
|
|
25
|
+
return: Fiber | null;
|
|
26
|
+
alternate: Fiber | null;
|
|
27
|
+
memoizedProps: Props;
|
|
28
|
+
pendingProps: Props;
|
|
29
|
+
memoizedState: MemoizedState;
|
|
30
|
+
updateQueue: {
|
|
31
|
+
lastEffect: Effect | null;
|
|
32
|
+
[key: string]: unknown;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
interface ReactRenderer {
|
|
36
|
+
version: string;
|
|
37
|
+
bundleType: 0 | 1;
|
|
38
|
+
findFiberByHostInstance?: (hostInstance: unknown) => Fiber | null;
|
|
39
|
+
}
|
|
40
|
+
interface ContextDependency<T> {
|
|
41
|
+
context: ReactContext<T>;
|
|
42
|
+
memoizedValue: T;
|
|
43
|
+
observedBits: number;
|
|
44
|
+
next: ContextDependency<unknown> | null;
|
|
45
|
+
}
|
|
46
|
+
interface Dependencies {
|
|
47
|
+
lanes: Lanes;
|
|
48
|
+
firstContext: ContextDependency<unknown> | null;
|
|
49
|
+
}
|
|
50
|
+
interface Effect {
|
|
51
|
+
next: Effect | null;
|
|
52
|
+
create: (...args: unknown[]) => unknown;
|
|
53
|
+
destroy: ((...args: unknown[]) => unknown) | null;
|
|
54
|
+
deps: unknown[] | null;
|
|
55
|
+
tag: number;
|
|
56
|
+
[key: string]: unknown;
|
|
57
|
+
}
|
|
58
|
+
interface MemoizedState {
|
|
59
|
+
memoizedState: unknown;
|
|
60
|
+
next: MemoizedState | null;
|
|
61
|
+
[key: string]: unknown;
|
|
62
|
+
}
|
|
63
|
+
interface Props {
|
|
64
|
+
[key: string]: unknown;
|
|
65
|
+
}
|
|
66
|
+
declare global {
|
|
67
|
+
var __REACT_DEVTOOLS_GLOBAL_HOOK__: ReactDevToolsGlobalHook | undefined;
|
|
68
|
+
}
|
package/dist/sw.d.ts
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { FiberRoot, Fiber as Fiber$1, Lanes, ReactContext } from 'react-reconciler';
|
|
2
|
+
|
|
3
|
+
interface ReactDevToolsGlobalHook {
|
|
4
|
+
checkDCE: (fn: unknown) => void;
|
|
5
|
+
supportsFiber: boolean;
|
|
6
|
+
supportsFlight: boolean;
|
|
7
|
+
renderers: Map<number, ReactRenderer>;
|
|
8
|
+
hasUnsupportedRendererAttached: boolean;
|
|
9
|
+
onCommitFiberRoot: (rendererID: number, root: FiberRoot, priority: void | number) => void;
|
|
10
|
+
onCommitFiberUnmount: (rendererID: number, fiber: Fiber) => void;
|
|
11
|
+
onPostCommitFiberRoot: (rendererID: number, root: FiberRoot) => void;
|
|
12
|
+
inject: (renderer: ReactRenderer) => number;
|
|
13
|
+
_instrumentationSource?: string;
|
|
14
|
+
_instrumentationIsActive?: boolean;
|
|
15
|
+
_sw?: boolean;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Represents a react-internal Fiber node.
|
|
19
|
+
*/
|
|
20
|
+
type Fiber<T = any> = Omit<Fiber$1, 'stateNode' | 'dependencies' | 'child' | 'sibling' | 'return' | 'alternate' | 'memoizedProps' | 'pendingProps' | 'memoizedState' | 'updateQueue'> & {
|
|
21
|
+
stateNode: T;
|
|
22
|
+
dependencies: Dependencies | null;
|
|
23
|
+
child: Fiber | null;
|
|
24
|
+
sibling: Fiber | null;
|
|
25
|
+
return: Fiber | null;
|
|
26
|
+
alternate: Fiber | null;
|
|
27
|
+
memoizedProps: Props;
|
|
28
|
+
pendingProps: Props;
|
|
29
|
+
memoizedState: MemoizedState;
|
|
30
|
+
updateQueue: {
|
|
31
|
+
lastEffect: Effect | null;
|
|
32
|
+
[key: string]: unknown;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
interface ReactRenderer {
|
|
36
|
+
version: string;
|
|
37
|
+
bundleType: 0 | 1;
|
|
38
|
+
findFiberByHostInstance?: (hostInstance: unknown) => Fiber | null;
|
|
39
|
+
}
|
|
40
|
+
interface ContextDependency<T> {
|
|
41
|
+
context: ReactContext<T>;
|
|
42
|
+
memoizedValue: T;
|
|
43
|
+
observedBits: number;
|
|
44
|
+
next: ContextDependency<unknown> | null;
|
|
45
|
+
}
|
|
46
|
+
interface Dependencies {
|
|
47
|
+
lanes: Lanes;
|
|
48
|
+
firstContext: ContextDependency<unknown> | null;
|
|
49
|
+
}
|
|
50
|
+
interface Effect {
|
|
51
|
+
next: Effect | null;
|
|
52
|
+
create: (...args: unknown[]) => unknown;
|
|
53
|
+
destroy: ((...args: unknown[]) => unknown) | null;
|
|
54
|
+
deps: unknown[] | null;
|
|
55
|
+
tag: number;
|
|
56
|
+
[key: string]: unknown;
|
|
57
|
+
}
|
|
58
|
+
interface MemoizedState {
|
|
59
|
+
memoizedState: unknown;
|
|
60
|
+
next: MemoizedState | null;
|
|
61
|
+
[key: string]: unknown;
|
|
62
|
+
}
|
|
63
|
+
interface Props {
|
|
64
|
+
[key: string]: unknown;
|
|
65
|
+
}
|
|
66
|
+
declare global {
|
|
67
|
+
var __REACT_DEVTOOLS_GLOBAL_HOOK__: ReactDevToolsGlobalHook | undefined;
|
|
68
|
+
}
|
package/package.json
CHANGED
|
@@ -1,127 +1,122 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
"packageManager": "pnpm@9.15.2",
|
|
124
|
-
"publishConfig": {
|
|
125
|
-
"access": "public"
|
|
126
|
-
}
|
|
127
|
-
}
|
|
2
|
+
"name": "bippy",
|
|
3
|
+
"version": "0.2.21",
|
|
4
|
+
"description": "hack into react internals",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"bippy",
|
|
7
|
+
"react",
|
|
8
|
+
"react-instrumentation",
|
|
9
|
+
"react instrumentation",
|
|
10
|
+
"fiber",
|
|
11
|
+
"internals"
|
|
12
|
+
],
|
|
13
|
+
"homepage": "https://bippy.dev",
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/aidenybai/bippy/issues"
|
|
16
|
+
},
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git+https://github.com/aidenybai/bippy.git"
|
|
20
|
+
},
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"author": {
|
|
23
|
+
"name": "Aiden Bai",
|
|
24
|
+
"email": "aiden@million.dev"
|
|
25
|
+
},
|
|
26
|
+
"sideEffects": false,
|
|
27
|
+
"type": "module",
|
|
28
|
+
"exports": {
|
|
29
|
+
"./package.json": "./package.json",
|
|
30
|
+
".": {
|
|
31
|
+
"import": {
|
|
32
|
+
"types": "./dist/index.d.ts",
|
|
33
|
+
"default": "./dist/index.js"
|
|
34
|
+
},
|
|
35
|
+
"require": {
|
|
36
|
+
"types": "./dist/index.d.cts",
|
|
37
|
+
"default": "./dist/index.cjs"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"./core": {
|
|
41
|
+
"import": {
|
|
42
|
+
"types": "./dist/core.d.ts",
|
|
43
|
+
"default": "./dist/core.js"
|
|
44
|
+
},
|
|
45
|
+
"require": {
|
|
46
|
+
"types": "./dist/core.d.cts",
|
|
47
|
+
"default": "./dist/core.cjs"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"./sw": {
|
|
51
|
+
"import": {
|
|
52
|
+
"types": "./dist/sw.d.ts",
|
|
53
|
+
"default": "./dist/sw.js"
|
|
54
|
+
},
|
|
55
|
+
"require": {
|
|
56
|
+
"types": "./dist/sw.d.cts",
|
|
57
|
+
"default": "./dist/sw.cjs"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"./inspect": {
|
|
61
|
+
"import": {
|
|
62
|
+
"types": "./dist/inspect.d.ts",
|
|
63
|
+
"default": "./dist/inspect.js"
|
|
64
|
+
},
|
|
65
|
+
"require": {
|
|
66
|
+
"types": "./dist/inspect.d.cts",
|
|
67
|
+
"default": "./dist/inspect.cjs"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"./dist/*": "./dist/*.js",
|
|
71
|
+
"./dist/*.js": "./dist/*.js",
|
|
72
|
+
"./dist/*.cjs": "./dist/*.cjs",
|
|
73
|
+
"./dist/*.mjs": "./dist/*.mjs"
|
|
74
|
+
},
|
|
75
|
+
"main": "dist/index.js",
|
|
76
|
+
"module": "dist/index.js",
|
|
77
|
+
"browser": "dist/index.global.js",
|
|
78
|
+
"types": "dist/index.d.ts",
|
|
79
|
+
"files": [
|
|
80
|
+
"dist",
|
|
81
|
+
"bin",
|
|
82
|
+
"package.json",
|
|
83
|
+
"README.md",
|
|
84
|
+
"LICENSE"
|
|
85
|
+
],
|
|
86
|
+
"devDependencies": {
|
|
87
|
+
"@biomejs/biome": "1.9.4",
|
|
88
|
+
"@testing-library/dom": "^10.4.0",
|
|
89
|
+
"@testing-library/react": "^16.1.0",
|
|
90
|
+
"@types/d3": "^7.4.3",
|
|
91
|
+
"@types/node": "^20",
|
|
92
|
+
"@types/react": "^18.3.12",
|
|
93
|
+
"@types/react-dom": "^19.0.2",
|
|
94
|
+
"@types/react-reconciler": "^0.28.9",
|
|
95
|
+
"@vitest/coverage-istanbul": "2.1.8",
|
|
96
|
+
"d3": "^7.9.0",
|
|
97
|
+
"esbuild": "^0.24.2",
|
|
98
|
+
"esbuild-plugin-inline-worker": "^0.1.1",
|
|
99
|
+
"happy-dom": "^15.11.7",
|
|
100
|
+
"pkg-pr-new": "^0.0.39",
|
|
101
|
+
"publint": "^0.2.12",
|
|
102
|
+
"react": "19.0.0",
|
|
103
|
+
"react-devtools-inline": "^6.0.1",
|
|
104
|
+
"react-dom": "19.0.0",
|
|
105
|
+
"react-inspector": "^6.0.2",
|
|
106
|
+
"react-reconciler": "^0.31.0",
|
|
107
|
+
"react-refresh": "^0.16.0",
|
|
108
|
+
"terser": "^5.36.0",
|
|
109
|
+
"tsup": "^8.2.4",
|
|
110
|
+
"vitest": "^2.1.8"
|
|
111
|
+
},
|
|
112
|
+
"publishConfig": {
|
|
113
|
+
"access": "public"
|
|
114
|
+
},
|
|
115
|
+
"scripts": {
|
|
116
|
+
"build": "NODE_ENV=production tsup",
|
|
117
|
+
"dev": "NODE_ENV=development tsup --watch",
|
|
118
|
+
"publint": "publint",
|
|
119
|
+
"test": "vitest --dom",
|
|
120
|
+
"coverage": "vitest run --coverage --dom"
|
|
121
|
+
}
|
|
122
|
+
}
|