@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tempots/dom",
3
- "version": "24.0.0-next.0",
3
+ "version": "24.0.0-next.1",
4
4
  "type": "module",
5
5
  "main": "./index.cjs",
6
6
  "module": "./index.js",
@@ -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: (node: Renderable, currentUrl: string) => {
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('../std/signal').Prop<string>;
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