@avgz/react-contract-renderer 0.1.0
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/README.md +233 -0
- package/dist/THIRD_PARTY_LICENSES.txt +334 -0
- package/dist/adapters/dom.d.cts +5 -0
- package/dist/adapters/dom.d.ts +5 -0
- package/dist/adapters/react17.cjs +18657 -0
- package/dist/adapters/react18.cjs +20627 -0
- package/dist/adapters/react19_0.cjs +20014 -0
- package/dist/adapters/react19_1.cjs +20319 -0
- package/dist/adapters/react19_2.cjs +22561 -0
- package/dist/adapters/react19_3.cjs +24506 -0
- package/dist/adapters/reconciler.d.cts +19 -0
- package/dist/adapters/reconciler.d.ts +19 -0
- package/dist/index.cjs +1010 -0
- package/dist/index.cjs.map +7 -0
- package/dist/index.d.cts +82 -0
- package/dist/index.d.ts +82 -0
- package/dist/index.js +2 -0
- package/dist/internal.d.cts +30 -0
- package/dist/internal.d.ts +30 -0
- package/dist/mount.d.cts +2 -0
- package/dist/mount.d.ts +2 -0
- package/dist/shallow.d.cts +2 -0
- package/dist/shallow.d.ts +2 -0
- package/dist/subject.d.cts +35 -0
- package/dist/subject.d.ts +35 -0
- package/package.json +86 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { PropRecord } from '../internal.cjs';
|
|
3
|
+
export interface HostNode {
|
|
4
|
+
type: string;
|
|
5
|
+
props: PropRecord;
|
|
6
|
+
children: HostNode[];
|
|
7
|
+
hidden: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function reactVersion(): {
|
|
10
|
+
major: number;
|
|
11
|
+
minor: number;
|
|
12
|
+
};
|
|
13
|
+
/** React owns hook state, scheduling, and effect lifecycles; this adapter owns only host output. */
|
|
14
|
+
export declare function createShallowRoot(): {
|
|
15
|
+
readonly container: HostNode;
|
|
16
|
+
render(element: ReactNode): void;
|
|
17
|
+
flush(): void;
|
|
18
|
+
act(callback: () => void | Promise<void>): Promise<void>;
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { PropRecord } from '../internal.js';
|
|
3
|
+
export interface HostNode {
|
|
4
|
+
type: string;
|
|
5
|
+
props: PropRecord;
|
|
6
|
+
children: HostNode[];
|
|
7
|
+
hidden: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function reactVersion(): {
|
|
10
|
+
major: number;
|
|
11
|
+
minor: number;
|
|
12
|
+
};
|
|
13
|
+
/** React owns hook state, scheduling, and effect lifecycles; this adapter owns only host output. */
|
|
14
|
+
export declare function createShallowRoot(): {
|
|
15
|
+
readonly container: HostNode;
|
|
16
|
+
render(element: ReactNode): void;
|
|
17
|
+
flush(): void;
|
|
18
|
+
act(callback: () => void | Promise<void>): Promise<void>;
|
|
19
|
+
};
|