@tempots/dom 24.0.0-next.0 → 24.0.0-next.1
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/index.cjs +1 -1
- package/index.d.ts +0 -1
- package/index.js +298 -338
- package/package.json +1 -1
- package/renderable/render.d.ts +6 -2
- package/dom/ssr.d.ts +0 -0
package/package.json
CHANGED
package/renderable/render.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Renderable } from '../types/domain';
|
|
2
2
|
import { DOMContext } from '../dom/dom-context';
|
|
3
3
|
import { HeadlessPortal } from '../dom/headless-context';
|
|
4
|
+
import { Value } from '../std/value';
|
|
4
5
|
/**
|
|
5
6
|
* Renders the given `renderable` with the provided `ctx` DOM context.
|
|
6
7
|
*
|
|
@@ -35,10 +36,13 @@ export type RenderOptions = {
|
|
|
35
36
|
* @public
|
|
36
37
|
*/
|
|
37
38
|
export declare const render: (node: Renderable, parent: Node | string, { doc, clear }?: RenderOptions) => () => void;
|
|
38
|
-
export declare const runHeadless: (
|
|
39
|
+
export declare const runHeadless: (makeRenderable: () => Renderable, { startUrl, selector, }?: {
|
|
40
|
+
startUrl?: Value<string>;
|
|
41
|
+
selector?: string;
|
|
42
|
+
}) => {
|
|
39
43
|
clear: () => void;
|
|
40
44
|
root: HeadlessPortal;
|
|
41
|
-
currentURL: import('
|
|
45
|
+
currentURL: import('..').Prop<string>;
|
|
42
46
|
};
|
|
43
47
|
/**
|
|
44
48
|
* Represents an error that occurs during rendering.
|
package/dom/ssr.d.ts
DELETED
|
File without changes
|