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.
- package/dist/bin.cjs +1 -1
- package/dist/bin.cjs.map +1 -1
- package/dist/bin.js +1 -1
- package/dist/bin.js.map +1 -1
- package/dist/{compile-CEom4hkp.d.cts → compile-Cte0nf06.d.cts} +80 -3
- package/dist/{compile-CEom4hkp.d.ts → compile-Cte0nf06.d.ts} +80 -3
- package/dist/create-bin.cjs +1 -1
- package/dist/create-bin.cjs.map +1 -1
- package/dist/create-bin.js +1 -1
- package/dist/create-bin.js.map +1 -1
- package/dist/{hydration-diagnostics-YrG-OJJe.d.ts → hydration-diagnostics-Ddgs3Puu.d.ts} +1 -1
- package/dist/{hydration-diagnostics-D286jpZZ.d.cts → hydration-diagnostics-zK-fihvd.d.cts} +1 -1
- package/dist/index.cjs +301 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +61 -7
- package/dist/index.d.ts +61 -7
- package/dist/index.js +293 -3
- package/dist/index.js.map +1 -1
- package/dist/{server-ZBh5DO-z.d.cts → server-D4A8eunr.d.cts} +17 -1
- package/dist/{server-jbB-7oN-.d.ts → server-cgmCiPsz.d.ts} +17 -1
- package/dist/server.cjs +1019 -866
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +1019 -866
- package/dist/server.js.map +1 -1
- package/dist/testing.cjs +187 -3
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.d.cts +3 -3
- package/dist/testing.d.ts +3 -3
- package/dist/testing.js +187 -3
- package/dist/testing.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CompiledApplication } from './compile-
|
|
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-
|
|
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;
|