@my-react/react-reconciler-compact 0.0.4 → 0.0.5
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/cjs/index.development.js +470 -103
- package/dist/cjs/index.production.js +378 -100
- package/dist/types/dispatch.d.ts +2 -0
- package/dist/types/dispatch.d.ts.map +1 -1
- package/dist/types/dispatchMount.d.ts.map +1 -1
- package/dist/types/dispatchUpdate.d.ts +5 -0
- package/dist/types/dispatchUpdate.d.ts.map +1 -0
- package/dist/types/scheduler.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/types/dispatch.d.ts
CHANGED
|
@@ -204,6 +204,7 @@ export declare const createDispatch: (rootNode: any, rootFiber: MyReactFiberRoot
|
|
|
204
204
|
useSignal: <T_8 = any>(initial: T_8 | (() => T_8)) => unknown;
|
|
205
205
|
useSyncExternalStore: (subscribe: () => any, getSnapshot: () => any, getServerSnapshot?: () => any) => unknown;
|
|
206
206
|
useTransition: () => [boolean, (cb: () => void) => void];
|
|
207
|
+
useOptimistic: <S, A>(passthrough: S, reducer?: (p: S, c: A) => S) => [S, (p: A) => void];
|
|
207
208
|
};
|
|
208
209
|
readContext: <T_1_2 = any>(Context: import("@my-react/react").ContextObjectType<{
|
|
209
210
|
$$typeof: symbol;
|
|
@@ -264,6 +265,7 @@ export declare const createDispatch: (rootNode: any, rootFiber: MyReactFiberRoot
|
|
|
264
265
|
useSignal: <T_8_1 = any>(initial: T_8_1 | (() => T_8_1)) => unknown;
|
|
265
266
|
useSyncExternalStore: (subscribe: () => any, getSnapshot: () => any, getServerSnapshot?: () => any) => unknown;
|
|
266
267
|
useTransition: () => [boolean, (cb: () => void) => void];
|
|
268
|
+
useOptimistic: <S_1, A_1>(passthrough: S_1, reducer?: (p: S_1, c: A_1) => S_1) => [S_1, (p: A_1) => void];
|
|
267
269
|
};
|
|
268
270
|
};
|
|
269
271
|
rootElement: MyReactElementNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dispatch.d.ts","sourceRoot":"","sources":["../../src/dispatch.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,SAAS,EAcV,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"dispatch.d.ts","sourceRoot":"","sources":["../../src/dispatch.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,SAAS,EAcV,MAAM,4BAA4B,CAAC;AAQpC,OAAO,KAAK,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACzF,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAO,MAAM,4BAA4B,CAAC;AAC1F,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAgBvD,eAAO,MAAM,cAAc,aAAc,GAAG,aAAa,gBAAgB,eAAe,kBAAkB,UAAU,GAAG;;;;;;;;0BAa7F,gBAAgB,GAAG,IAAI;yBAIxB,gBAAgB,GAAG,IAAI;yBAIvB,gBAAgB,GAAG,IAAI;yBAIvB,gBAAgB,GAAG,IAAI;2BAIrB,gBAAgB,GAAG,IAAI;yBAIzB,gBAAgB,GAAG,IAAI;2BAIrB,gBAAgB,GAAG,IAAI;wBAI1B,gBAAgB,GAAG,IAAI;4BAInB,gBAAgB,GAAG,IAAI;2BA0BxB,SAAS,gBAAgB,CAAC,GAAG,IAAI;gCA0B5B,gBAAgB,GAAG,IAAI;gCAIvB,gBAAgB,GAAG,IAAI;2BAI5B,WAAW,GAAG,IAAI;0BAInB,gBAAgB,GAAG,OAAO;6BAIvB;QAAE,KAAK,CAAC,EAAE,gBAAgB,CAAC;QAAC,OAAO,CAAC,EAAE,QAAQ,OAAO,CAAC,CAAA;KAAE,GAAG,kBAAkB;2BAI/E;QAAE,KAAK,CAAC,EAAE,gBAAgB,CAAC;QAAC,KAAK,CAAC,EAAE,KAAK,CAAA;KAAE,GAAG,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiC1F,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dispatchMount.d.ts","sourceRoot":"","sources":["../../src/dispatchMount.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dispatchMount.d.ts","sourceRoot":"","sources":["../../src/dispatchMount.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAMnE,eAAO,MAAM,uBAAuB,cAAe,kBAAkB,UAAU,gBAAgB,UAAU,GAAG,SA4F3G,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ReconcilerDispatch } from "./dispatch";
|
|
2
|
+
import type { MyReactFiberNode } from "@my-react/react-reconciler";
|
|
3
|
+
import type { ListTree } from "@my-react/react-shared";
|
|
4
|
+
export declare const ReconcilerDispatchUpdate: (_dispatch: ReconcilerDispatch, _list: ListTree<MyReactFiberNode>, config: any) => void;
|
|
5
|
+
//# sourceMappingURL=dispatchUpdate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dispatchUpdate.d.ts","sourceRoot":"","sources":["../../src/dispatchUpdate.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAMvD,eAAO,MAAM,wBAAwB,cAAe,kBAAkB,SAAS,SAAS,gBAAgB,CAAC,UAAU,GAAG,SA6HrH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scheduler.d.ts","sourceRoot":"","sources":["../../src/scheduler.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"scheduler.d.ts","sourceRoot":"","sources":["../../src/scheduler.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,eAAO,MAAM,gBAAgB,YAY5B,CAAC"}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "@my-react/react-reconciler-compact",
|
|
4
4
|
"author": "MrWangJustToDo",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "0.0.
|
|
6
|
+
"version": "0.0.5",
|
|
7
7
|
"main": "index.js",
|
|
8
8
|
"types": "index.d.ts",
|
|
9
9
|
"files": [
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
}
|
|
40
40
|
],
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@my-react/react-reconciler": "^0.3.
|
|
43
|
-
"@my-react/react-shared": "^0.3.
|
|
42
|
+
"@my-react/react-reconciler": "^0.3.14",
|
|
43
|
+
"@my-react/react-shared": "^0.3.14",
|
|
44
44
|
"@types/react-reconciler": "^0.31.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@my-react/react": ">=0.3.
|
|
47
|
+
"@my-react/react": ">=0.3.14"
|
|
48
48
|
}
|
|
49
49
|
}
|