@torpor/view 0.4.18 → 1.0.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/README.md +41 -16
- package/dist/Cleanup-D0wvGW5d.d.cts +9 -0
- package/dist/Cleanup-D0wvGW5d.d.cts.map +1 -0
- package/dist/Cleanup-D0wvGW5d.d.mts +9 -0
- package/dist/Cleanup-D0wvGW5d.d.mts.map +1 -0
- package/dist/Component-0MH0zd-m.d.cts +11 -0
- package/dist/Component-0MH0zd-m.d.cts.map +1 -0
- package/dist/Component-0MH0zd-m.d.mts +11 -0
- package/dist/Component-0MH0zd-m.d.mts.map +1 -0
- package/dist/Effect-BTKurOpr.d.mts +381 -0
- package/dist/Effect-BTKurOpr.d.mts.map +1 -0
- package/dist/Effect-COl3aRJV.d.cts +381 -0
- package/dist/Effect-COl3aRJV.d.cts.map +1 -0
- package/dist/compile.cjs +1734 -739
- package/dist/compile.d.cts +85 -50
- package/dist/compile.d.cts.map +1 -1
- package/dist/compile.d.mts +85 -50
- package/dist/compile.d.mts.map +1 -1
- package/dist/compile.mjs +1737 -741
- package/dist/compile.mjs.map +1 -1
- package/dist/dev.cjs +62 -63
- package/dist/dev.d.cts +4 -3
- package/dist/dev.d.cts.map +1 -1
- package/dist/dev.d.mts +4 -3
- package/dist/dev.d.mts.map +1 -1
- package/dist/dev.mjs +61 -62
- package/dist/dev.mjs.map +1 -1
- package/dist/{devContext-B3yskfhA.cjs → devContext-BulTn3U5.cjs} +6 -9
- package/dist/{devContext-CQ8RhBX-.mjs → devContext-ZNsPyOgB.mjs} +3 -4
- package/dist/devContext-ZNsPyOgB.mjs.map +1 -0
- package/dist/fromWebSocket-1QOjcrHE.cjs +182 -0
- package/dist/fromWebSocket-B52kN3-W.d.mts +91 -0
- package/dist/fromWebSocket-B52kN3-W.d.mts.map +1 -0
- package/dist/fromWebSocket-DeB35Q4w.d.cts +91 -0
- package/dist/fromWebSocket-DeB35Q4w.d.cts.map +1 -0
- package/dist/fromWebSocket-Dxc_uwm1.mjs +137 -0
- package/dist/fromWebSocket-Dxc_uwm1.mjs.map +1 -0
- package/dist/index.cjs +2109 -494
- package/dist/index.d.cts +608 -112
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +608 -112
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +2088 -490
- package/dist/index.mjs.map +1 -1
- package/dist/ssr.cjs +78 -17
- package/dist/ssr.d.cts +64 -11
- package/dist/ssr.d.cts.map +1 -1
- package/dist/ssr.d.mts +64 -11
- package/dist/ssr.d.mts.map +1 -1
- package/dist/ssr.mjs +67 -14
- package/dist/ssr.mjs.map +1 -1
- package/package.json +21 -19
- package/dist/Cleanup-CYsytTEc.d.cts +0 -9
- package/dist/Cleanup-CYsytTEc.d.cts.map +0 -1
- package/dist/Cleanup-CgjyN0lW.d.mts +0 -9
- package/dist/Cleanup-CgjyN0lW.d.mts.map +0 -1
- package/dist/Component-DmWGMgak.d.mts +0 -11
- package/dist/Component-DmWGMgak.d.mts.map +0 -1
- package/dist/Component-kGLRFYg2.d.cts +0 -11
- package/dist/Component-kGLRFYg2.d.cts.map +0 -1
- package/dist/Region-Bb6HAb-F.d.cts +0 -201
- package/dist/Region-Bb6HAb-F.d.cts.map +0 -1
- package/dist/Region-CTchywkr.d.mts +0 -201
- package/dist/Region-CTchywkr.d.mts.map +0 -1
- package/dist/devContext-CQ8RhBX-.mjs.map +0 -1
- package/dist/formatText-BNP3P38F.d.cts +0 -17
- package/dist/formatText-BNP3P38F.d.cts.map +0 -1
- package/dist/formatText-D6Ov8Ub0.d.mts +0 -17
- package/dist/formatText-D6Ov8Ub0.d.mts.map +0 -1
- package/dist/formatText-DTIRmc3X.mjs +0 -61
- package/dist/formatText-DTIRmc3X.mjs.map +0 -1
- package/dist/formatText-Dhl2O0Ee.cjs +0 -96
package/dist/ssr.cjs
CHANGED
|
@@ -1,57 +1,118 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_fromWebSocket = require("./fromWebSocket-1QOjcrHE.cjs");
|
|
3
3
|
//#region src/render/formatAttributeText.ts
|
|
4
4
|
function formatAttributeText(value) {
|
|
5
5
|
return (value ?? "").toString().replaceAll("\"", """);
|
|
6
6
|
}
|
|
7
|
-
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/ssr/formatText.ts
|
|
9
|
+
const ESCAPABLE = {
|
|
10
|
+
"&": "&",
|
|
11
|
+
"<": "<",
|
|
12
|
+
">": ">"
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Formats a text value for inclusion in server-rendered HTML.
|
|
16
|
+
*
|
|
17
|
+
* Unlike the client version (which assigns to `textContent` and so needs no
|
|
18
|
+
* escaping), the server interpolates values into an HTML string, so the
|
|
19
|
+
* characters that would otherwise be parsed as markup are escaped here.
|
|
20
|
+
*/
|
|
21
|
+
function formatServerText(value) {
|
|
22
|
+
return require_fromWebSocket.formatText(value).replace(/[&<>]/g, (c) => ESCAPABLE[c]);
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/ssr/$serverAsync.ts
|
|
26
|
+
/**
|
|
27
|
+
* Server no-op for the client-side `$async` getter primitive. Server renders
|
|
28
|
+
* are synchronous, so an async value never resolves during SSR — `@await`
|
|
29
|
+
* boundaries render their `with` branch and never read the getter. The stub
|
|
30
|
+
* exists so server builds importing `$async` don't emit a dangling import.
|
|
31
|
+
*/
|
|
32
|
+
function $serverAsync(_fn) {}
|
|
8
33
|
//#endregion
|
|
9
34
|
//#region src/ssr/$serverBatch.ts
|
|
10
35
|
function $serverBatch(fn) {
|
|
11
36
|
return fn();
|
|
12
37
|
}
|
|
13
|
-
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region src/ssr/$serverBind.ts
|
|
40
|
+
/**
|
|
41
|
+
* Server no-op for the client-side `$bind` two-way sync primitive. Two-way
|
|
42
|
+
* binding is a client runtime feature — there are no reactive updates during
|
|
43
|
+
* SSR, so there is nothing to sync. The stub exists so server builds
|
|
44
|
+
* importing `$bind` don't emit a dangling import.
|
|
45
|
+
*/
|
|
46
|
+
function $serverBind(_state, _props, ..._keys) {}
|
|
14
47
|
//#endregion
|
|
15
48
|
//#region src/ssr/$serverCache.ts
|
|
16
49
|
function $serverCache(fn) {
|
|
17
50
|
return fn();
|
|
18
51
|
}
|
|
19
|
-
|
|
20
52
|
//#endregion
|
|
21
|
-
//#region src/ssr/$
|
|
22
|
-
function $
|
|
23
|
-
|
|
53
|
+
//#region src/ssr/$serverOnmount.ts
|
|
54
|
+
function $serverOnmount(_fn) {}
|
|
24
55
|
//#endregion
|
|
25
56
|
//#region src/ssr/$serverPeek.ts
|
|
26
57
|
function $serverPeek(fn) {
|
|
27
58
|
return fn();
|
|
28
59
|
}
|
|
29
|
-
|
|
60
|
+
//#endregion
|
|
61
|
+
//#region src/ssr/$serverPending.ts
|
|
62
|
+
/**
|
|
63
|
+
* Server no-op for the client-side `$pending` query. Nothing is ever pending
|
|
64
|
+
* during a synchronous SSR render, so the query is always `false`. The stub
|
|
65
|
+
* exists so server builds importing `$pending` don't emit a dangling import.
|
|
66
|
+
*/
|
|
67
|
+
function $serverPending(_fn) {
|
|
68
|
+
return false;
|
|
69
|
+
}
|
|
70
|
+
//#endregion
|
|
71
|
+
//#region src/ssr/$serverRefresh.ts
|
|
72
|
+
/**
|
|
73
|
+
* Server no-op for the client-side `$refresh` primitive. A refresh is an
|
|
74
|
+
* imperative action that never runs during SSR. The stub exists so server
|
|
75
|
+
* builds importing `$refresh` don't emit a dangling import.
|
|
76
|
+
*/
|
|
77
|
+
function $serverRefresh(_fn) {}
|
|
30
78
|
//#endregion
|
|
31
79
|
//#region src/ssr/$serverRun.ts
|
|
32
|
-
function $serverRun(
|
|
33
|
-
|
|
80
|
+
function $serverRun(_fn) {}
|
|
81
|
+
//#endregion
|
|
82
|
+
//#region src/ssr/$serverStream.ts
|
|
83
|
+
/**
|
|
84
|
+
* Server stub for `$stream` — external sources are never subscribed to
|
|
85
|
+
* during a server render. The subscription starts when the component is
|
|
86
|
+
* mounted on the client.
|
|
87
|
+
*/
|
|
88
|
+
function $serverStream(_source, _handler, _options) {}
|
|
34
89
|
//#endregion
|
|
35
90
|
//#region src/ssr/$serverUnwrap.ts
|
|
36
91
|
function $serverUnwrap(object) {
|
|
37
92
|
return object;
|
|
38
93
|
}
|
|
39
|
-
|
|
40
94
|
//#endregion
|
|
41
95
|
//#region src/ssr/$serverWatch.ts
|
|
42
96
|
function $serverWatch(object) {
|
|
43
97
|
return object;
|
|
44
98
|
}
|
|
45
|
-
|
|
46
99
|
//#endregion
|
|
100
|
+
exports.$async = $serverAsync;
|
|
47
101
|
exports.$batch = $serverBatch;
|
|
102
|
+
exports.$bind = $serverBind;
|
|
48
103
|
exports.$cache = $serverCache;
|
|
49
|
-
exports.$
|
|
104
|
+
exports.$onmount = $serverOnmount;
|
|
50
105
|
exports.$peek = $serverPeek;
|
|
106
|
+
exports.$pending = $serverPending;
|
|
107
|
+
exports.$refresh = $serverRefresh;
|
|
51
108
|
exports.$run = $serverRun;
|
|
109
|
+
exports.$stream = $serverStream;
|
|
52
110
|
exports.$unwrap = $serverUnwrap;
|
|
53
111
|
exports.$watch = $serverWatch;
|
|
112
|
+
exports.fromElement = require_fromWebSocket.fromElement;
|
|
113
|
+
exports.fromServer = require_fromWebSocket.fromServer;
|
|
114
|
+
exports.fromWebSocket = require_fromWebSocket.fromWebSocket;
|
|
54
115
|
exports.t_attr = formatAttributeText;
|
|
55
|
-
exports.t_class =
|
|
56
|
-
exports.t_fmt =
|
|
57
|
-
exports.t_style =
|
|
116
|
+
exports.t_class = require_fromWebSocket.buildClasses;
|
|
117
|
+
exports.t_fmt = formatServerText;
|
|
118
|
+
exports.t_style = require_fromWebSocket.buildStyles;
|
package/dist/ssr.d.cts
CHANGED
|
@@ -1,23 +1,76 @@
|
|
|
1
|
-
import { t as Cleanup } from "./Cleanup-
|
|
2
|
-
import { i as
|
|
3
|
-
|
|
1
|
+
import { t as Cleanup } from "./Cleanup-D0wvGW5d.cjs";
|
|
2
|
+
import { a as buildStyles, i as StreamSource, n as fromServer, r as fromElement, s as buildClasses, t as fromWebSocket } from "./fromWebSocket-DeB35Q4w.cjs";
|
|
4
3
|
//#region src/render/formatAttributeText.d.ts
|
|
5
4
|
declare function formatAttributeText(value: any): string;
|
|
6
5
|
//#endregion
|
|
6
|
+
//#region src/ssr/formatText.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* Formats a text value for inclusion in server-rendered HTML.
|
|
9
|
+
*
|
|
10
|
+
* Unlike the client version (which assigns to `textContent` and so needs no
|
|
11
|
+
* escaping), the server interpolates values into an HTML string, so the
|
|
12
|
+
* characters that would otherwise be parsed as markup are escaped here.
|
|
13
|
+
*/
|
|
14
|
+
declare function formatServerText(value: any): string;
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/ssr/$serverAsync.d.ts
|
|
17
|
+
/**
|
|
18
|
+
* Server no-op for the client-side `$async` getter primitive. Server renders
|
|
19
|
+
* are synchronous, so an async value never resolves during SSR — `@await`
|
|
20
|
+
* boundaries render their `with` branch and never read the getter. The stub
|
|
21
|
+
* exists so server builds importing `$async` don't emit a dangling import.
|
|
22
|
+
*/
|
|
23
|
+
declare function $serverAsync<T>(_fn: () => Promise<T>): T;
|
|
24
|
+
//#endregion
|
|
7
25
|
//#region src/ssr/$serverBatch.d.ts
|
|
8
26
|
declare function $serverBatch<T>(fn: () => T): T;
|
|
9
27
|
//#endregion
|
|
28
|
+
//#region src/ssr/$serverBind.d.ts
|
|
29
|
+
/**
|
|
30
|
+
* Server no-op for the client-side `$bind` two-way sync primitive. Two-way
|
|
31
|
+
* binding is a client runtime feature — there are no reactive updates during
|
|
32
|
+
* SSR, so there is nothing to sync. The stub exists so server builds
|
|
33
|
+
* importing `$bind` don't emit a dangling import.
|
|
34
|
+
*/
|
|
35
|
+
declare function $serverBind(_state: Record<PropertyKey, any>, _props: Record<PropertyKey, any> | undefined, ..._keys: (string | string[])[]): void;
|
|
36
|
+
//#endregion
|
|
10
37
|
//#region src/ssr/$serverCache.d.ts
|
|
11
38
|
declare function $serverCache<T>(fn: () => T): T;
|
|
12
39
|
//#endregion
|
|
13
|
-
//#region src/ssr/$
|
|
14
|
-
declare function $
|
|
40
|
+
//#region src/ssr/$serverOnmount.d.ts
|
|
41
|
+
declare function $serverOnmount(_fn: () => Cleanup | void): void;
|
|
15
42
|
//#endregion
|
|
16
43
|
//#region src/ssr/$serverPeek.d.ts
|
|
17
44
|
declare function $serverPeek<T>(fn: () => T): T;
|
|
18
45
|
//#endregion
|
|
46
|
+
//#region src/ssr/$serverPending.d.ts
|
|
47
|
+
/**
|
|
48
|
+
* Server no-op for the client-side `$pending` query. Nothing is ever pending
|
|
49
|
+
* during a synchronous SSR render, so the query is always `false`. The stub
|
|
50
|
+
* exists so server builds importing `$pending` don't emit a dangling import.
|
|
51
|
+
*/
|
|
52
|
+
declare function $serverPending(_fn: () => any): boolean;
|
|
53
|
+
//#endregion
|
|
54
|
+
//#region src/ssr/$serverRefresh.d.ts
|
|
55
|
+
/**
|
|
56
|
+
* Server no-op for the client-side `$refresh` primitive. A refresh is an
|
|
57
|
+
* imperative action that never runs during SSR. The stub exists so server
|
|
58
|
+
* builds importing `$refresh` don't emit a dangling import.
|
|
59
|
+
*/
|
|
60
|
+
declare function $serverRefresh(_fn: () => any): void;
|
|
61
|
+
//#endregion
|
|
19
62
|
//#region src/ssr/$serverRun.d.ts
|
|
20
|
-
declare function $serverRun(
|
|
63
|
+
declare function $serverRun(_fn: () => Cleanup | void): void;
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region src/ssr/$serverStream.d.ts
|
|
66
|
+
/**
|
|
67
|
+
* Server stub for `$stream` — external sources are never subscribed to
|
|
68
|
+
* during a server render. The subscription starts when the component is
|
|
69
|
+
* mounted on the client.
|
|
70
|
+
*/
|
|
71
|
+
declare function $serverStream<T>(_source: StreamSource<T>, _handler: (value: T) => void, _options?: {
|
|
72
|
+
debounce?: number;
|
|
73
|
+
}): void;
|
|
21
74
|
//#endregion
|
|
22
75
|
//#region src/ssr/$serverUnwrap.d.ts
|
|
23
76
|
declare function $serverUnwrap<T extends Record<PropertyKey, any>>(object: T): T;
|
|
@@ -26,16 +79,16 @@ declare function $serverUnwrap<T extends Record<PropertyKey, any>>(object: T): T
|
|
|
26
79
|
declare function $serverWatch<T extends Record<PropertyKey, any>>(object: T): T;
|
|
27
80
|
//#endregion
|
|
28
81
|
//#region src/types/ServerSlotRender.d.ts
|
|
29
|
-
type ServerSlotRender = ($
|
|
82
|
+
type ServerSlotRender = ($slot?: Record<PropertyKey, any>, $context?: Record<PropertyKey, any>) => string;
|
|
30
83
|
//#endregion
|
|
31
84
|
//#region src/types/ServerComponent.d.ts
|
|
32
85
|
/**
|
|
33
|
-
* A component that generates HTML
|
|
34
|
-
*/
|
|
35
|
-
type ServerComponent = ($props?: Record<
|
|
86
|
+
* A component that generates HTML
|
|
87
|
+
*/
|
|
88
|
+
type ServerComponent = ($props?: Record<PropertyKey, any>, $context?: Record<PropertyKey, any>, $slots?: Record<string, ServerSlotRender>) => {
|
|
36
89
|
body: string;
|
|
37
90
|
head: string;
|
|
38
91
|
};
|
|
39
92
|
//#endregion
|
|
40
|
-
export { $serverBatch as $batch, $serverCache as $cache, $
|
|
93
|
+
export { $serverAsync as $async, $serverBatch as $batch, $serverBind as $bind, $serverCache as $cache, $serverOnmount as $onmount, $serverPeek as $peek, $serverPending as $pending, $serverRefresh as $refresh, $serverRun as $run, $serverStream as $stream, $serverUnwrap as $unwrap, $serverWatch as $watch, type ServerComponent, type ServerSlotRender, type StreamSource, fromElement, fromServer, fromWebSocket, formatAttributeText as t_attr, buildClasses as t_class, formatServerText as t_fmt, buildStyles as t_style };
|
|
41
94
|
//# sourceMappingURL=ssr.d.cts.map
|
package/dist/ssr.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ssr.d.cts","names":[],"sources":["../src/render/formatAttributeText.ts","../src/ssr/$serverBatch.ts","../src/ssr/$serverCache.ts","../src/ssr/$
|
|
1
|
+
{"version":3,"file":"ssr.d.cts","names":[],"sources":["../src/render/formatAttributeText.ts","../src/ssr/formatText.ts","../src/ssr/$serverAsync.ts","../src/ssr/$serverBatch.ts","../src/ssr/$serverBind.ts","../src/ssr/$serverCache.ts","../src/ssr/$serverOnmount.ts","../src/ssr/$serverPeek.ts","../src/ssr/$serverPending.ts","../src/ssr/$serverRefresh.ts","../src/ssr/$serverRun.ts","../src/ssr/$serverStream.ts","../src/ssr/$serverUnwrap.ts","../src/ssr/$serverWatch.ts","../src/types/ServerSlotRender.ts","../src/types/ServerComponent.ts"],"mappings":";;;iBAAwB,oBAAoB;;;;;;;;;;iBCepB,iBAAiB;;;;;;;;;iBCTjB,aAAa,GAAG,WAAW,QAAQ,KAAK;;;iBCNxC,aAAa,GAAG,UAAU,IAAI;;;;;;;;;iBCM9B,YACvB,QAAQ,OAAO,mBACf,QAAQ,OAAO,kCACZ;;;iBCToB,aAAa,GAAG,UAAU,IAAI;;;iBCE9B,eAAe,WAAW;;;iBCF1B,YAAY,GAAG,UAAU,IAAI;;;;;;;;iBCK7B,eAAe;;;;;;;;iBCAf,eAAe;;;iBCHf,WAAW,WAAW;;;;;;;;iBCKtB,cAAc,GACrC,SAAS,aAAa,IACtB,WAAW,OAAO,YAClB;EAAa;;;;iBCVU,cAAc,UAAU,OAAO,mBAAmB,QAAQ,IAAI;;;iBCA9D,aAAa,UAAU,OAAO,mBAAmB,QAAQ,IAAI;;;KCAhF,oBACJ,QAAQ,OAAO,mBACf,WAAW,OAAO;;;;;;KCGd,mBACJ,SAAS,OAAO,mBAChB,WAAW,OAAO,mBAClB,SAAS,eAAe;EAClB;EAAc"}
|
package/dist/ssr.d.mts
CHANGED
|
@@ -1,23 +1,76 @@
|
|
|
1
|
-
import { t as Cleanup } from "./Cleanup-
|
|
2
|
-
import { i as
|
|
3
|
-
|
|
1
|
+
import { t as Cleanup } from "./Cleanup-D0wvGW5d.mjs";
|
|
2
|
+
import { a as buildStyles, i as StreamSource, n as fromServer, r as fromElement, s as buildClasses, t as fromWebSocket } from "./fromWebSocket-B52kN3-W.mjs";
|
|
4
3
|
//#region src/render/formatAttributeText.d.ts
|
|
5
4
|
declare function formatAttributeText(value: any): string;
|
|
6
5
|
//#endregion
|
|
6
|
+
//#region src/ssr/formatText.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* Formats a text value for inclusion in server-rendered HTML.
|
|
9
|
+
*
|
|
10
|
+
* Unlike the client version (which assigns to `textContent` and so needs no
|
|
11
|
+
* escaping), the server interpolates values into an HTML string, so the
|
|
12
|
+
* characters that would otherwise be parsed as markup are escaped here.
|
|
13
|
+
*/
|
|
14
|
+
declare function formatServerText(value: any): string;
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/ssr/$serverAsync.d.ts
|
|
17
|
+
/**
|
|
18
|
+
* Server no-op for the client-side `$async` getter primitive. Server renders
|
|
19
|
+
* are synchronous, so an async value never resolves during SSR — `@await`
|
|
20
|
+
* boundaries render their `with` branch and never read the getter. The stub
|
|
21
|
+
* exists so server builds importing `$async` don't emit a dangling import.
|
|
22
|
+
*/
|
|
23
|
+
declare function $serverAsync<T>(_fn: () => Promise<T>): T;
|
|
24
|
+
//#endregion
|
|
7
25
|
//#region src/ssr/$serverBatch.d.ts
|
|
8
26
|
declare function $serverBatch<T>(fn: () => T): T;
|
|
9
27
|
//#endregion
|
|
28
|
+
//#region src/ssr/$serverBind.d.ts
|
|
29
|
+
/**
|
|
30
|
+
* Server no-op for the client-side `$bind` two-way sync primitive. Two-way
|
|
31
|
+
* binding is a client runtime feature — there are no reactive updates during
|
|
32
|
+
* SSR, so there is nothing to sync. The stub exists so server builds
|
|
33
|
+
* importing `$bind` don't emit a dangling import.
|
|
34
|
+
*/
|
|
35
|
+
declare function $serverBind(_state: Record<PropertyKey, any>, _props: Record<PropertyKey, any> | undefined, ..._keys: (string | string[])[]): void;
|
|
36
|
+
//#endregion
|
|
10
37
|
//#region src/ssr/$serverCache.d.ts
|
|
11
38
|
declare function $serverCache<T>(fn: () => T): T;
|
|
12
39
|
//#endregion
|
|
13
|
-
//#region src/ssr/$
|
|
14
|
-
declare function $
|
|
40
|
+
//#region src/ssr/$serverOnmount.d.ts
|
|
41
|
+
declare function $serverOnmount(_fn: () => Cleanup | void): void;
|
|
15
42
|
//#endregion
|
|
16
43
|
//#region src/ssr/$serverPeek.d.ts
|
|
17
44
|
declare function $serverPeek<T>(fn: () => T): T;
|
|
18
45
|
//#endregion
|
|
46
|
+
//#region src/ssr/$serverPending.d.ts
|
|
47
|
+
/**
|
|
48
|
+
* Server no-op for the client-side `$pending` query. Nothing is ever pending
|
|
49
|
+
* during a synchronous SSR render, so the query is always `false`. The stub
|
|
50
|
+
* exists so server builds importing `$pending` don't emit a dangling import.
|
|
51
|
+
*/
|
|
52
|
+
declare function $serverPending(_fn: () => any): boolean;
|
|
53
|
+
//#endregion
|
|
54
|
+
//#region src/ssr/$serverRefresh.d.ts
|
|
55
|
+
/**
|
|
56
|
+
* Server no-op for the client-side `$refresh` primitive. A refresh is an
|
|
57
|
+
* imperative action that never runs during SSR. The stub exists so server
|
|
58
|
+
* builds importing `$refresh` don't emit a dangling import.
|
|
59
|
+
*/
|
|
60
|
+
declare function $serverRefresh(_fn: () => any): void;
|
|
61
|
+
//#endregion
|
|
19
62
|
//#region src/ssr/$serverRun.d.ts
|
|
20
|
-
declare function $serverRun(
|
|
63
|
+
declare function $serverRun(_fn: () => Cleanup | void): void;
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region src/ssr/$serverStream.d.ts
|
|
66
|
+
/**
|
|
67
|
+
* Server stub for `$stream` — external sources are never subscribed to
|
|
68
|
+
* during a server render. The subscription starts when the component is
|
|
69
|
+
* mounted on the client.
|
|
70
|
+
*/
|
|
71
|
+
declare function $serverStream<T>(_source: StreamSource<T>, _handler: (value: T) => void, _options?: {
|
|
72
|
+
debounce?: number;
|
|
73
|
+
}): void;
|
|
21
74
|
//#endregion
|
|
22
75
|
//#region src/ssr/$serverUnwrap.d.ts
|
|
23
76
|
declare function $serverUnwrap<T extends Record<PropertyKey, any>>(object: T): T;
|
|
@@ -26,16 +79,16 @@ declare function $serverUnwrap<T extends Record<PropertyKey, any>>(object: T): T
|
|
|
26
79
|
declare function $serverWatch<T extends Record<PropertyKey, any>>(object: T): T;
|
|
27
80
|
//#endregion
|
|
28
81
|
//#region src/types/ServerSlotRender.d.ts
|
|
29
|
-
type ServerSlotRender = ($
|
|
82
|
+
type ServerSlotRender = ($slot?: Record<PropertyKey, any>, $context?: Record<PropertyKey, any>) => string;
|
|
30
83
|
//#endregion
|
|
31
84
|
//#region src/types/ServerComponent.d.ts
|
|
32
85
|
/**
|
|
33
|
-
* A component that generates HTML
|
|
34
|
-
*/
|
|
35
|
-
type ServerComponent = ($props?: Record<
|
|
86
|
+
* A component that generates HTML
|
|
87
|
+
*/
|
|
88
|
+
type ServerComponent = ($props?: Record<PropertyKey, any>, $context?: Record<PropertyKey, any>, $slots?: Record<string, ServerSlotRender>) => {
|
|
36
89
|
body: string;
|
|
37
90
|
head: string;
|
|
38
91
|
};
|
|
39
92
|
//#endregion
|
|
40
|
-
export { $serverBatch as $batch, $serverCache as $cache, $
|
|
93
|
+
export { $serverAsync as $async, $serverBatch as $batch, $serverBind as $bind, $serverCache as $cache, $serverOnmount as $onmount, $serverPeek as $peek, $serverPending as $pending, $serverRefresh as $refresh, $serverRun as $run, $serverStream as $stream, $serverUnwrap as $unwrap, $serverWatch as $watch, type ServerComponent, type ServerSlotRender, type StreamSource, fromElement, fromServer, fromWebSocket, formatAttributeText as t_attr, buildClasses as t_class, formatServerText as t_fmt, buildStyles as t_style };
|
|
41
94
|
//# sourceMappingURL=ssr.d.mts.map
|
package/dist/ssr.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ssr.d.mts","names":[],"sources":["../src/render/formatAttributeText.ts","../src/ssr/$serverBatch.ts","../src/ssr/$serverCache.ts","../src/ssr/$
|
|
1
|
+
{"version":3,"file":"ssr.d.mts","names":[],"sources":["../src/render/formatAttributeText.ts","../src/ssr/formatText.ts","../src/ssr/$serverAsync.ts","../src/ssr/$serverBatch.ts","../src/ssr/$serverBind.ts","../src/ssr/$serverCache.ts","../src/ssr/$serverOnmount.ts","../src/ssr/$serverPeek.ts","../src/ssr/$serverPending.ts","../src/ssr/$serverRefresh.ts","../src/ssr/$serverRun.ts","../src/ssr/$serverStream.ts","../src/ssr/$serverUnwrap.ts","../src/ssr/$serverWatch.ts","../src/types/ServerSlotRender.ts","../src/types/ServerComponent.ts"],"mappings":";;;iBAAwB,oBAAoB;;;;;;;;;;iBCepB,iBAAiB;;;;;;;;;iBCTjB,aAAa,GAAG,WAAW,QAAQ,KAAK;;;iBCNxC,aAAa,GAAG,UAAU,IAAI;;;;;;;;;iBCM9B,YACvB,QAAQ,OAAO,mBACf,QAAQ,OAAO,kCACZ;;;iBCToB,aAAa,GAAG,UAAU,IAAI;;;iBCE9B,eAAe,WAAW;;;iBCF1B,YAAY,GAAG,UAAU,IAAI;;;;;;;;iBCK7B,eAAe;;;;;;;;iBCAf,eAAe;;;iBCHf,WAAW,WAAW;;;;;;;;iBCKtB,cAAc,GACrC,SAAS,aAAa,IACtB,WAAW,OAAO,YAClB;EAAa;;;;iBCVU,cAAc,UAAU,OAAO,mBAAmB,QAAQ,IAAI;;;iBCA9D,aAAa,UAAU,OAAO,mBAAmB,QAAQ,IAAI;;;KCAhF,oBACJ,QAAQ,OAAO,mBACf,WAAW,OAAO;;;;;;KCGd,mBACJ,SAAS,OAAO,mBAChB,WAAW,OAAO,mBAClB,SAAS,eAAe;EAClB;EAAc"}
|
package/dist/ssr.mjs
CHANGED
|
@@ -1,48 +1,101 @@
|
|
|
1
|
-
import { a as buildStyles, o as buildClasses, t as
|
|
2
|
-
|
|
1
|
+
import { a as buildStyles, i as formatText, n as fromServer, o as buildClasses, r as fromElement, t as fromWebSocket } from "./fromWebSocket-Dxc_uwm1.mjs";
|
|
3
2
|
//#region src/render/formatAttributeText.ts
|
|
4
3
|
function formatAttributeText(value) {
|
|
5
4
|
return (value ?? "").toString().replaceAll("\"", """);
|
|
6
5
|
}
|
|
7
|
-
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region src/ssr/formatText.ts
|
|
8
|
+
const ESCAPABLE = {
|
|
9
|
+
"&": "&",
|
|
10
|
+
"<": "<",
|
|
11
|
+
">": ">"
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Formats a text value for inclusion in server-rendered HTML.
|
|
15
|
+
*
|
|
16
|
+
* Unlike the client version (which assigns to `textContent` and so needs no
|
|
17
|
+
* escaping), the server interpolates values into an HTML string, so the
|
|
18
|
+
* characters that would otherwise be parsed as markup are escaped here.
|
|
19
|
+
*/
|
|
20
|
+
function formatServerText(value) {
|
|
21
|
+
return formatText(value).replace(/[&<>]/g, (c) => ESCAPABLE[c]);
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region src/ssr/$serverAsync.ts
|
|
25
|
+
/**
|
|
26
|
+
* Server no-op for the client-side `$async` getter primitive. Server renders
|
|
27
|
+
* are synchronous, so an async value never resolves during SSR — `@await`
|
|
28
|
+
* boundaries render their `with` branch and never read the getter. The stub
|
|
29
|
+
* exists so server builds importing `$async` don't emit a dangling import.
|
|
30
|
+
*/
|
|
31
|
+
function $serverAsync(_fn) {}
|
|
8
32
|
//#endregion
|
|
9
33
|
//#region src/ssr/$serverBatch.ts
|
|
10
34
|
function $serverBatch(fn) {
|
|
11
35
|
return fn();
|
|
12
36
|
}
|
|
13
|
-
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region src/ssr/$serverBind.ts
|
|
39
|
+
/**
|
|
40
|
+
* Server no-op for the client-side `$bind` two-way sync primitive. Two-way
|
|
41
|
+
* binding is a client runtime feature — there are no reactive updates during
|
|
42
|
+
* SSR, so there is nothing to sync. The stub exists so server builds
|
|
43
|
+
* importing `$bind` don't emit a dangling import.
|
|
44
|
+
*/
|
|
45
|
+
function $serverBind(_state, _props, ..._keys) {}
|
|
14
46
|
//#endregion
|
|
15
47
|
//#region src/ssr/$serverCache.ts
|
|
16
48
|
function $serverCache(fn) {
|
|
17
49
|
return fn();
|
|
18
50
|
}
|
|
19
|
-
|
|
20
51
|
//#endregion
|
|
21
|
-
//#region src/ssr/$
|
|
22
|
-
function $
|
|
23
|
-
|
|
52
|
+
//#region src/ssr/$serverOnmount.ts
|
|
53
|
+
function $serverOnmount(_fn) {}
|
|
24
54
|
//#endregion
|
|
25
55
|
//#region src/ssr/$serverPeek.ts
|
|
26
56
|
function $serverPeek(fn) {
|
|
27
57
|
return fn();
|
|
28
58
|
}
|
|
29
|
-
|
|
59
|
+
//#endregion
|
|
60
|
+
//#region src/ssr/$serverPending.ts
|
|
61
|
+
/**
|
|
62
|
+
* Server no-op for the client-side `$pending` query. Nothing is ever pending
|
|
63
|
+
* during a synchronous SSR render, so the query is always `false`. The stub
|
|
64
|
+
* exists so server builds importing `$pending` don't emit a dangling import.
|
|
65
|
+
*/
|
|
66
|
+
function $serverPending(_fn) {
|
|
67
|
+
return false;
|
|
68
|
+
}
|
|
69
|
+
//#endregion
|
|
70
|
+
//#region src/ssr/$serverRefresh.ts
|
|
71
|
+
/**
|
|
72
|
+
* Server no-op for the client-side `$refresh` primitive. A refresh is an
|
|
73
|
+
* imperative action that never runs during SSR. The stub exists so server
|
|
74
|
+
* builds importing `$refresh` don't emit a dangling import.
|
|
75
|
+
*/
|
|
76
|
+
function $serverRefresh(_fn) {}
|
|
30
77
|
//#endregion
|
|
31
78
|
//#region src/ssr/$serverRun.ts
|
|
32
|
-
function $serverRun(
|
|
33
|
-
|
|
79
|
+
function $serverRun(_fn) {}
|
|
80
|
+
//#endregion
|
|
81
|
+
//#region src/ssr/$serverStream.ts
|
|
82
|
+
/**
|
|
83
|
+
* Server stub for `$stream` — external sources are never subscribed to
|
|
84
|
+
* during a server render. The subscription starts when the component is
|
|
85
|
+
* mounted on the client.
|
|
86
|
+
*/
|
|
87
|
+
function $serverStream(_source, _handler, _options) {}
|
|
34
88
|
//#endregion
|
|
35
89
|
//#region src/ssr/$serverUnwrap.ts
|
|
36
90
|
function $serverUnwrap(object) {
|
|
37
91
|
return object;
|
|
38
92
|
}
|
|
39
|
-
|
|
40
93
|
//#endregion
|
|
41
94
|
//#region src/ssr/$serverWatch.ts
|
|
42
95
|
function $serverWatch(object) {
|
|
43
96
|
return object;
|
|
44
97
|
}
|
|
45
|
-
|
|
46
98
|
//#endregion
|
|
47
|
-
export { $serverBatch as $batch, $serverCache as $cache, $
|
|
99
|
+
export { $serverAsync as $async, $serverBatch as $batch, $serverBind as $bind, $serverCache as $cache, $serverOnmount as $onmount, $serverPeek as $peek, $serverPending as $pending, $serverRefresh as $refresh, $serverRun as $run, $serverStream as $stream, $serverUnwrap as $unwrap, $serverWatch as $watch, fromElement, fromServer, fromWebSocket, formatAttributeText as t_attr, buildClasses as t_class, formatServerText as t_fmt, buildStyles as t_style };
|
|
100
|
+
|
|
48
101
|
//# sourceMappingURL=ssr.mjs.map
|
package/dist/ssr.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ssr.mjs","names":[],"sources":["../src/render/formatAttributeText.ts","../src/ssr/$serverBatch.ts","../src/ssr/$serverCache.ts","../src/ssr/$
|
|
1
|
+
{"version":3,"file":"ssr.mjs","names":[],"sources":["../src/render/formatAttributeText.ts","../src/ssr/formatText.ts","../src/ssr/$serverAsync.ts","../src/ssr/$serverBatch.ts","../src/ssr/$serverBind.ts","../src/ssr/$serverCache.ts","../src/ssr/$serverOnmount.ts","../src/ssr/$serverPeek.ts","../src/ssr/$serverPending.ts","../src/ssr/$serverRefresh.ts","../src/ssr/$serverRun.ts","../src/ssr/$serverStream.ts","../src/ssr/$serverUnwrap.ts","../src/ssr/$serverWatch.ts"],"sourcesContent":["export default function formatAttributeText(value: any): string {\n\treturn (value ?? \"\").toString().replaceAll('\"', \""\");\n}\n","import formatText from \"../render/formatText\";\n\nconst ESCAPABLE: Record<string, string> = {\n\t\"&\": \"&\",\n\t\"<\": \"<\",\n\t\">\": \">\",\n};\n\n/**\n * Formats a text value for inclusion in server-rendered HTML.\n *\n * Unlike the client version (which assigns to `textContent` and so needs no\n * escaping), the server interpolates values into an HTML string, so the\n * characters that would otherwise be parsed as markup are escaped here.\n */\nexport default function formatServerText(value: any): string {\n\treturn formatText(value).replace(/[&<>]/g, (c) => ESCAPABLE[c]);\n}\n","/**\n * Server no-op for the client-side `$async` getter primitive. Server renders\n * are synchronous, so an async value never resolves during SSR — `@await`\n * boundaries render their `with` branch and never read the getter. The stub\n * exists so server builds importing `$async` don't emit a dangling import.\n */\nexport default function $serverAsync<T>(_fn: () => Promise<T>): T {\n\treturn undefined as T;\n}\n","export default function $serverBatch<T>(fn: () => T): T {\n\treturn fn();\n}\n","/**\n * Server no-op for the client-side `$bind` two-way sync primitive. Two-way\n * binding is a client runtime feature — there are no reactive updates during\n * SSR, so there is nothing to sync. The stub exists so server builds\n * importing `$bind` don't emit a dangling import.\n */\nexport default function $serverBind(\n\t_state: Record<PropertyKey, any>,\n\t_props: Record<PropertyKey, any> | undefined,\n\t..._keys: (string | string[])[]\n): void {}\n","export default function $serverCache<T>(fn: () => T): T {\n\treturn fn();\n}\n","import type Cleanup from \"../types/Cleanup\";\n\nexport default function $serverOnmount(_fn: () => Cleanup | void): void {}\n","export default function $serverPeek<T>(fn: () => T): T {\n\treturn fn();\n}\n","/**\n * Server no-op for the client-side `$pending` query. Nothing is ever pending\n * during a synchronous SSR render, so the query is always `false`. The stub\n * exists so server builds importing `$pending` don't emit a dangling import.\n */\nexport default function $serverPending(_fn: () => any): boolean {\n\treturn false;\n}\n","/**\n * Server no-op for the client-side `$refresh` primitive. A refresh is an\n * imperative action that never runs during SSR. The stub exists so server\n * builds importing `$refresh` don't emit a dangling import.\n */\nexport default function $serverRefresh(_fn: () => any): void {}\n","import type Cleanup from \"../types/Cleanup\";\n\nexport default function $serverRun(_fn: () => Cleanup | void): void {}\n","import type StreamSource from \"../types/StreamSource\";\n\n/**\n * Server stub for `$stream` — external sources are never subscribed to\n * during a server render. The subscription starts when the component is\n * mounted on the client.\n */\nexport default function $serverStream<T>(\n\t_source: StreamSource<T>,\n\t_handler: (value: T) => void,\n\t_options?: { debounce?: number },\n): void {}\n","export default function $serverUnwrap<T extends Record<PropertyKey, any>>(object: T): T {\n\treturn object;\n}\n","export default function $serverWatch<T extends Record<PropertyKey, any>>(object: T): T {\n\treturn object;\n}\n"],"mappings":";;AAAA,SAAwB,oBAAoB,OAAoB;CAC/D,QAAQ,SAAS,GAAA,CAAI,SAAS,CAAC,CAAC,WAAW,MAAK,QAAQ;AACzD;;;ACAA,MAAM,YAAoC;CACzC,KAAK;CACL,KAAK;CACL,KAAK;AACN;;;;;;;;AASA,SAAwB,iBAAiB,OAAoB;CAC5D,OAAO,WAAW,KAAK,CAAC,CAAC,QAAQ,WAAW,MAAM,UAAU,EAAE;AAC/D;;;;;;;;;ACXA,SAAwB,aAAgB,KAA0B,CAElE;;;ACRA,SAAwB,aAAgB,IAAgB;CACvD,OAAO,GAAG;AACX;;;;;;;;;ACIA,SAAwB,YACvB,QACA,QACA,GAAG,OACI,CAAC;;;ACVT,SAAwB,aAAgB,IAAgB;CACvD,OAAO,GAAG;AACX;;;ACAA,SAAwB,eAAe,KAAiC,CAAC;;;ACFzE,SAAwB,YAAe,IAAgB;CACtD,OAAO,GAAG;AACX;;;;;;;;ACGA,SAAwB,eAAe,KAAyB;CAC/D,OAAO;AACR;;;;;;;;ACFA,SAAwB,eAAe,KAAsB,CAAC;;;ACH9D,SAAwB,WAAW,KAAiC,CAAC;;;;;;;;ACKrE,SAAwB,cACvB,SACA,UACA,UACO,CAAC;;;ACXT,SAAwB,cAAkD,QAAc;CACvF,OAAO;AACR;;;ACFA,SAAwB,aAAiD,QAAc;CACtF,OAAO;AACR"}
|
package/package.json
CHANGED
|
@@ -1,25 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@torpor/view",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Torpor's view library, for writing and mounting components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
8
|
+
"development": "./src/index.ts",
|
|
8
9
|
"types": "./dist/index.d.mts",
|
|
9
10
|
"import": "./dist/index.mjs",
|
|
10
11
|
"require": "./dist/index.cjs"
|
|
11
12
|
},
|
|
12
13
|
"./compile": {
|
|
14
|
+
"development": "./src/compile.ts",
|
|
13
15
|
"types": "./dist/compile.d.mts",
|
|
14
16
|
"import": "./dist/compile.mjs",
|
|
15
17
|
"require": "./dist/compile.cjs"
|
|
16
18
|
},
|
|
17
19
|
"./ssr": {
|
|
20
|
+
"development": "./src/ssr.ts",
|
|
18
21
|
"types": "./dist/ssr.d.mts",
|
|
19
22
|
"import": "./dist/ssr.mjs",
|
|
20
23
|
"require": "./dist/ssr.cjs"
|
|
21
24
|
},
|
|
22
25
|
"./dev": {
|
|
26
|
+
"development": "./src/dev.ts",
|
|
23
27
|
"types": "./dist/dev.d.mts",
|
|
24
28
|
"import": "./dist/dev.mjs",
|
|
25
29
|
"require": "./dist/dev.cjs"
|
|
@@ -36,29 +40,27 @@
|
|
|
36
40
|
"license": "ISC",
|
|
37
41
|
"devDependencies": {
|
|
38
42
|
"@testing-library/dom": "^10.4.1",
|
|
39
|
-
"@testing-library/jest-dom": "^
|
|
40
|
-
"@testing-library/user-event": "^14.6.
|
|
41
|
-
"@
|
|
42
|
-
"@types/
|
|
43
|
-
"@
|
|
44
|
-
"@typescript/native-preview": "7.0.0-dev.20251112.1",
|
|
43
|
+
"@testing-library/jest-dom": "^7.0.0",
|
|
44
|
+
"@testing-library/user-event": "^14.6.3",
|
|
45
|
+
"@types/jsdom": "^28.0.3",
|
|
46
|
+
"@types/node": "^26.1.2",
|
|
47
|
+
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|
|
45
48
|
"fast-glob": "^3.3.3",
|
|
46
|
-
"jsdom": "^
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"vitest": "^4.0.8"
|
|
49
|
+
"jsdom": "^30.0.1",
|
|
50
|
+
"sucrase": "^3.35.1",
|
|
51
|
+
"tinybench": "^6.1.2",
|
|
52
|
+
"tsx": "^4.23.5",
|
|
53
|
+
"typescript": "^7.0.2",
|
|
54
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@0.2.7",
|
|
55
|
+
"vite-plus": "0.2.7"
|
|
54
56
|
},
|
|
55
57
|
"scripts": {
|
|
56
58
|
"check": "tsgo --noEmit && pnpm dlx oxlint --type-aware",
|
|
57
|
-
"build": "tsgo --noEmit &&
|
|
58
|
-
"build:watch": "
|
|
59
|
-
"test": "
|
|
59
|
+
"build": "tsgo --noEmit && vp pack && tsx ./scripts/copyToRepl.ts",
|
|
60
|
+
"build:watch": "vp pack --watch",
|
|
61
|
+
"test": "vp test",
|
|
60
62
|
"test:build": "tsx ./scripts/buildTestOutput.ts",
|
|
61
63
|
"bench": "tsx ./bench/bench.ts",
|
|
62
|
-
"format": "
|
|
64
|
+
"format": "vp fmt ."
|
|
63
65
|
}
|
|
64
66
|
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
//#region src/types/Cleanup.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* A function that may be returned from an effect, and is run before the effect
|
|
4
|
-
* is run or destroyed
|
|
5
|
-
*/
|
|
6
|
-
type Cleanup = () => void;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { Cleanup as t };
|
|
9
|
-
//# sourceMappingURL=Cleanup-CYsytTEc.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Cleanup-CYsytTEc.d.cts","names":[],"sources":["../src/types/Cleanup.ts"],"sourcesContent":[],"mappings":";;;;;KAIK,OAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
//#region src/types/Cleanup.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* A function that may be returned from an effect, and is run before the effect
|
|
4
|
-
* is run or destroyed
|
|
5
|
-
*/
|
|
6
|
-
type Cleanup = () => void;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { Cleanup as t };
|
|
9
|
-
//# sourceMappingURL=Cleanup-CgjyN0lW.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Cleanup-CgjyN0lW.d.mts","names":[],"sources":["../src/types/Cleanup.ts"],"sourcesContent":[],"mappings":";;;;;KAIK,OAAA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
//#region src/types/SlotRender.d.ts
|
|
2
|
-
type SlotRender = ($sparent: ParentNode, $sanchor: Node | null, $sprops?: Record<PropertyKey, any>, $context?: Record<PropertyKey, any>) => void;
|
|
3
|
-
//#endregion
|
|
4
|
-
//#region src/types/Component.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* A component that can be mounted or hydrated
|
|
7
|
-
*/
|
|
8
|
-
type Component = ($parent: ParentNode, $anchor: Node | null, $props?: Record<PropertyKey, any>, $context?: Record<PropertyKey, any>, $slots?: Record<string, SlotRender>) => void;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { SlotRender as n, Component as t };
|
|
11
|
-
//# sourceMappingURL=Component-DmWGMgak.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Component-DmWGMgak.d.mts","names":[],"sources":["../src/types/SlotRender.ts","../src/types/Component.ts"],"sourcesContent":[],"mappings":";KAAK,UAAA,cACM,sBACA,uBACA,OAAO,8BACN,OAAO;;;;;;KCCd,SAAA,GDFa,CAAA,OAAA,ECGR,UDHQ,EAAA,OAAA,ECIR,IDJQ,GAAA,IAAA,EAAA,MAAA,CAAA,ECKR,MDLQ,CCKD,WDLC,EAAA,GAAA,CAAA,EAAA,QAAA,CAAA,ECMN,MDNM,CCMC,WDND,EAAA,GAAA,CAAA,EAAA,MAAA,CAAA,ECOR,MDPQ,CAAA,MAAA,ECOO,UDPP,CAAA,EAAA,GAAA,IAAA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
//#region src/types/SlotRender.d.ts
|
|
2
|
-
type SlotRender = ($sparent: ParentNode, $sanchor: Node | null, $sprops?: Record<PropertyKey, any>, $context?: Record<PropertyKey, any>) => void;
|
|
3
|
-
//#endregion
|
|
4
|
-
//#region src/types/Component.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* A component that can be mounted or hydrated
|
|
7
|
-
*/
|
|
8
|
-
type Component = ($parent: ParentNode, $anchor: Node | null, $props?: Record<PropertyKey, any>, $context?: Record<PropertyKey, any>, $slots?: Record<string, SlotRender>) => void;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { SlotRender as n, Component as t };
|
|
11
|
-
//# sourceMappingURL=Component-kGLRFYg2.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Component-kGLRFYg2.d.cts","names":[],"sources":["../src/types/SlotRender.ts","../src/types/Component.ts"],"sourcesContent":[],"mappings":";KAAK,UAAA,cACM,sBACA,uBACA,OAAO,8BACN,OAAO;;;;;;KCCd,SAAA,GDFa,CAAA,OAAA,ECGR,UDHQ,EAAA,OAAA,ECIR,IDJQ,GAAA,IAAA,EAAA,MAAA,CAAA,ECKR,MDLQ,CCKD,WDLC,EAAA,GAAA,CAAA,EAAA,QAAA,CAAA,ECMN,MDNM,CCMC,WDND,EAAA,GAAA,CAAA,EAAA,MAAA,CAAA,ECOR,MDPQ,CAAA,MAAA,ECOO,UDPP,CAAA,EAAA,GAAA,IAAA"}
|