streetui 1.6.1 → 1.7.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.
@@ -1,4 +1,4 @@
1
- import { C as CompiledApplication } from './compile-CEom4hkp.cjs';
1
+ import { C as CompiledApplication } from './compile-Cte0nf06.cjs';
2
2
 
3
3
  /**
4
4
  * DOMAdapter — framework-owned abstraction over DOM operations.
@@ -38,6 +38,18 @@ interface DOMAdapter {
38
38
  * focus) this is a safe no-op, keeping focus management SSR-compatible.
39
39
  */
40
40
  focus(element: Element): void;
41
+ /**
42
+ * The document body — the default mount target for portals/overlays. Returns
43
+ * null on the server (no document), which is what makes portal SSR degrade to
44
+ * inline rendering and focus management degrade to a no-op.
45
+ */
46
+ body(): Element | null;
47
+ /** The currently focused element, or null on the server / when none is focused. */
48
+ activeElement(): Element | null;
49
+ /** True if `ancestor` contains `node` (inclusive). Always false on the server. */
50
+ contains(ancestor: Element, node: Node): boolean;
51
+ /** True if `element` matches the given CSS selector. Always false on the server. */
52
+ matches(element: Element, selector: string): boolean;
41
53
  isElement(node: Node): node is Element;
42
54
  isTextNode(node: Node): node is Text;
43
55
  /** Lower-cased tag name of an element (e.g. "div", "h1"). */
@@ -93,6 +105,10 @@ declare class ServerDOMAdapter implements DOMAdapter {
93
105
  querySelectorAll(): NodeListOf<Element>;
94
106
  getElementById(): Element | null;
95
107
  focus(): void;
108
+ body(): Element | null;
109
+ activeElement(): Element | null;
110
+ contains(_ancestor: Element, _node: Node): boolean;
111
+ matches(_element: Element, _selector: string): boolean;
96
112
  isElement(node: Node): node is Element;
97
113
  isTextNode(node: Node): node is Text;
98
114
  tagName(element: Element): string;
@@ -1,4 +1,4 @@
1
- import { C as CompiledApplication } from './compile-CEom4hkp.js';
1
+ import { C as CompiledApplication } from './compile-Cte0nf06.js';
2
2
 
3
3
  /**
4
4
  * DOMAdapter — framework-owned abstraction over DOM operations.
@@ -38,6 +38,18 @@ interface DOMAdapter {
38
38
  * focus) this is a safe no-op, keeping focus management SSR-compatible.
39
39
  */
40
40
  focus(element: Element): void;
41
+ /**
42
+ * The document body — the default mount target for portals/overlays. Returns
43
+ * null on the server (no document), which is what makes portal SSR degrade to
44
+ * inline rendering and focus management degrade to a no-op.
45
+ */
46
+ body(): Element | null;
47
+ /** The currently focused element, or null on the server / when none is focused. */
48
+ activeElement(): Element | null;
49
+ /** True if `ancestor` contains `node` (inclusive). Always false on the server. */
50
+ contains(ancestor: Element, node: Node): boolean;
51
+ /** True if `element` matches the given CSS selector. Always false on the server. */
52
+ matches(element: Element, selector: string): boolean;
41
53
  isElement(node: Node): node is Element;
42
54
  isTextNode(node: Node): node is Text;
43
55
  /** Lower-cased tag name of an element (e.g. "div", "h1"). */
@@ -93,6 +105,10 @@ declare class ServerDOMAdapter implements DOMAdapter {
93
105
  querySelectorAll(): NodeListOf<Element>;
94
106
  getElementById(): Element | null;
95
107
  focus(): void;
108
+ body(): Element | null;
109
+ activeElement(): Element | null;
110
+ contains(_ancestor: Element, _node: Node): boolean;
111
+ matches(_element: Element, _selector: string): boolean;
96
112
  isElement(node: Node): node is Element;
97
113
  isTextNode(node: Node): node is Text;
98
114
  tagName(element: Element): string;