@torpor/view 1.2.6 → 1.3.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/{Effect-DazmAdyC.d.mts → Effect-99HYQdzZ.d.mts} +50 -33
- package/dist/Effect-99HYQdzZ.d.mts.map +1 -0
- package/dist/{Effect-Dewn7MLc.d.cts → Effect-Bf8fz_zC.d.cts} +50 -33
- package/dist/Effect-Bf8fz_zC.d.cts.map +1 -0
- package/dist/compile.cjs +1498 -101
- package/dist/compile.d.cts +268 -1
- package/dist/compile.d.cts.map +1 -1
- package/dist/compile.d.mts +268 -1
- package/dist/compile.d.mts.map +1 -1
- package/dist/compile.mjs +1495 -102
- package/dist/compile.mjs.map +1 -1
- package/dist/dev.d.cts +1 -1
- package/dist/dev.d.mts +1 -1
- package/dist/{fromWebSocket-DrN-IduP.cjs → fromWebSocket-Cdoghvmh.cjs} +15 -0
- package/dist/{fromWebSocket-CFGoMkV2.mjs → fromWebSocket-ERhd9KZR.mjs} +11 -2
- package/dist/fromWebSocket-ERhd9KZR.mjs.map +1 -0
- package/dist/index.cjs +121 -75
- package/dist/index.d.cts +12 -6
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +12 -6
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +121 -75
- package/dist/index.mjs.map +1 -1
- package/dist/runtime.iife.js +1 -0
- package/dist/slotAutoClose-BbKfzpkz.cjs +177 -0
- package/dist/slotAutoClose-CgDkf8fM.mjs +156 -0
- package/dist/slotAutoClose-CgDkf8fM.mjs.map +1 -0
- package/dist/ssr.cjs +29 -1
- package/dist/ssr.d.cts +32 -1
- package/dist/ssr.d.cts.map +1 -1
- package/dist/ssr.d.mts +32 -1
- package/dist/ssr.d.mts.map +1 -1
- package/dist/ssr.mjs +25 -2
- package/dist/ssr.mjs.map +1 -1
- package/package.json +8 -5
- package/dist/Effect-DazmAdyC.d.mts.map +0 -1
- package/dist/Effect-Dewn7MLc.d.cts.map +0 -1
- package/dist/fromWebSocket-CFGoMkV2.mjs.map +0 -1
package/dist/dev.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as ProxySignal, n as Region, r as Computed, t as Effect } from "./Effect-
|
|
1
|
+
import { i as ProxySignal, n as Region, r as Computed, t as Effect } from "./Effect-Bf8fz_zC.cjs";
|
|
2
2
|
//#region src/types/ProxyData.d.ts
|
|
3
3
|
interface ProxyData {
|
|
4
4
|
target: Record<PropertyKey, any>;
|
package/dist/dev.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as ProxySignal, n as Region, r as Computed, t as Effect } from "./Effect-
|
|
1
|
+
import { i as ProxySignal, n as Region, r as Computed, t as Effect } from "./Effect-99HYQdzZ.mjs";
|
|
2
2
|
//#region src/types/ProxyData.d.ts
|
|
3
3
|
interface ProxyData {
|
|
4
4
|
target: Record<PropertyKey, any>;
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
//#region src/watch/symbols.ts
|
|
2
2
|
const proxyDataSymbol = Symbol.for("torp.ProxyData");
|
|
3
|
+
/**
|
|
4
|
+
* Signal key for a watched object's key-set membership (`ownKeys`). Tracked by
|
|
5
|
+
* the proxy's `ownKeys` trap — so `Object.keys`/`values`/`entries`, spread,
|
|
6
|
+
* `for…in` and `JSON.stringify` re-run when a key is added or deleted — and
|
|
7
|
+
* propagated by the `set`/`deleteProperty` traps (and the array mutation
|
|
8
|
+
* handles) when the key set actually changes. A Symbol so it can't collide
|
|
9
|
+
* with a user property name.
|
|
10
|
+
*/
|
|
11
|
+
const proxyKeysSymbol = Symbol.for("torp.ProxyKeys");
|
|
3
12
|
//#endregion
|
|
4
13
|
//#region src/watch/$unwrap.ts
|
|
5
14
|
/**
|
|
@@ -182,3 +191,9 @@ Object.defineProperty(exports, "proxyDataSymbol", {
|
|
|
182
191
|
return proxyDataSymbol;
|
|
183
192
|
}
|
|
184
193
|
});
|
|
194
|
+
Object.defineProperty(exports, "proxyKeysSymbol", {
|
|
195
|
+
enumerable: true,
|
|
196
|
+
get: function() {
|
|
197
|
+
return proxyKeysSymbol;
|
|
198
|
+
}
|
|
199
|
+
});
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
//#region src/watch/symbols.ts
|
|
2
2
|
const proxyDataSymbol = Symbol.for("torp.ProxyData");
|
|
3
|
+
/**
|
|
4
|
+
* Signal key for a watched object's key-set membership (`ownKeys`). Tracked by
|
|
5
|
+
* the proxy's `ownKeys` trap — so `Object.keys`/`values`/`entries`, spread,
|
|
6
|
+
* `for…in` and `JSON.stringify` re-run when a key is added or deleted — and
|
|
7
|
+
* propagated by the `set`/`deleteProperty` traps (and the array mutation
|
|
8
|
+
* handles) when the key set actually changes. A Symbol so it can't collide
|
|
9
|
+
* with a user property name.
|
|
10
|
+
*/
|
|
11
|
+
const proxyKeysSymbol = Symbol.for("torp.ProxyKeys");
|
|
3
12
|
//#endregion
|
|
4
13
|
//#region src/watch/$unwrap.ts
|
|
5
14
|
/**
|
|
@@ -134,6 +143,6 @@ function fromWebSocket(url) {
|
|
|
134
143
|
};
|
|
135
144
|
}
|
|
136
145
|
//#endregion
|
|
137
|
-
export { buildStyles as a, proxyDataSymbol as c, formatText as i, fromServer as n, buildClasses as o, fromElement as r, $unwrap as s, fromWebSocket as t };
|
|
146
|
+
export { buildStyles as a, proxyDataSymbol as c, formatText as i, proxyKeysSymbol as l, fromServer as n, buildClasses as o, fromElement as r, $unwrap as s, fromWebSocket as t };
|
|
138
147
|
|
|
139
|
-
//# sourceMappingURL=fromWebSocket-
|
|
148
|
+
//# sourceMappingURL=fromWebSocket-ERhd9KZR.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fromWebSocket-ERhd9KZR.mjs","names":[],"sources":["../src/watch/symbols.ts","../src/watch/$unwrap.ts","../src/render/buildClasses.ts","../src/render/buildStyles.ts","../src/render/formatText.ts","../src/stream/fromElement.ts","../src/stream/fromServer.ts","../src/stream/fromWebSocket.ts"],"sourcesContent":["const proxyDataSymbol: unique symbol = Symbol.for(\"torp.ProxyData\");\n\n/**\n * Signal key for a watched object's key-set membership (`ownKeys`). Tracked by\n * the proxy's `ownKeys` trap — so `Object.keys`/`values`/`entries`, spread,\n * `for…in` and `JSON.stringify` re-run when a key is added or deleted — and\n * propagated by the `set`/`deleteProperty` traps (and the array mutation\n * handles) when the key set actually changes. A Symbol so it can't collide\n * with a user property name.\n */\nconst proxyKeysSymbol: unique symbol = Symbol.for(\"torp.ProxyKeys\");\n\nexport { proxyDataSymbol, proxyKeysSymbol };\n","import { proxyDataSymbol } from \"./symbols\";\n\n/**\n * Returns the target object of a proxy\n *\n * @param object The proxy object\n */\nexport default function $unwrap<T extends Record<PropertyKey, any>>(object: T): T {\n\treturn object !== undefined && object !== null && object[proxyDataSymbol] !== undefined\n\t\t? (object[proxyDataSymbol].target ?? object)\n\t\t: object;\n}\n","import ClassValue from \"../types/ClassValue\";\nimport $unwrap from \"../watch/$unwrap\";\n\nexport default function buildClasses(value: ClassValue, styleHash?: string): string {\n\tif (typeof value === \"string\") {\n\t\tif (styleHash !== undefined) {\n\t\t\tvalue += \" \" + styleHash;\n\t\t}\n\t\treturn value;\n\t} else {\n\t\tlet classes: string[] = [];\n\t\tgatherClasses(\"\", value, classes);\n\t\tif (styleHash !== undefined) {\n\t\t\tclasses.push(styleHash);\n\t\t}\n\t\treturn classes.join(\" \");\n\t}\n}\n\nfunction gatherClasses(name: string, value: unknown, classes: string[]) {\n\tif (value) {\n\t\t// Unwrap watched values before iterating: component props are\n\t\t// deep-wrapped, and iterating a watched array disables the active\n\t\t// effect (see the array iterator in proxyGet), which would break\n\t\t// tracking of reads later in the same effect. Per-element tracking is\n\t\t// unnecessary here anyway -- the caller has already subscribed to the\n\t\t// property read that produced the value\n\t\tvalue = $unwrap(value as Record<PropertyKey, any>);\n\t\tif (Array.isArray(value)) {\n\t\t\tfor (let v of value) {\n\t\t\t\tgatherClasses(v as string, v, classes);\n\t\t\t}\n\t\t} else if (typeof value === \"object\") {\n\t\t\t// Use `for-in` instead of `Object.entries(value)`. The entries\n\t\t\t// call allocates a new array (plus a [k, v] pair per entry) on\n\t\t\t// every invocation; `for-in` allocates nothing. Object literals\n\t\t\t// (the dominant case — e.g. `{ danger: bool }` in the row\n\t\t\t// template) have no inherited enumerable properties, so the two\n\t\t\t// are equivalent for our usage. This is on the per-effect re-run\n\t\t\t// hot path: a `select` op re-runs every row effect, each calling\n\t\t\t// `buildClasses({ danger: ... })`.\n\t\t\tfor (const n in value) {\n\t\t\t\tgatherClasses(n, (value as Record<string, unknown>)[n], classes);\n\t\t\t}\n\t\t} else {\n\t\t\tclasses.push(name);\n\t\t}\n\t}\n}\n","import type StyleValue from \"../types/StyleValue\";\n\nconst CAMEL_TO_DASH = /[A-Z]+(?![a-z])|[A-Z]/g;\n\nexport default function buildStyles(value: StyleValue): string {\n\tif (typeof value === \"string\") {\n\t\treturn value;\n\t} else {\n\t\tlet styles: string[] = [];\n\t\tgatherStyles(value, styles);\n\t\treturn styles.join(\"; \");\n\t}\n}\n\nfunction gatherStyles(value: unknown, styles: string[]) {\n\tif (value) {\n\t\tif (Array.isArray(value)) {\n\t\t\tfor (let v of value) {\n\t\t\t\tgatherStyles(v, styles);\n\t\t\t}\n\t\t} else if (typeof value === \"object\") {\n\t\t\tfor (let [n, v] of Object.entries(value)) {\n\t\t\t\tif (v === null || v === undefined) continue;\n\t\t\t\tconst key = n.replace(CAMEL_TO_DASH, (char, i) => (i > 0 ? \"-\" : \"\") + char.toLowerCase());\n\t\t\t\tstyles.push(`${key}: ${v}`);\n\t\t\t}\n\t\t} else {\n\t\t\t// oxlint-disable-next-line typescript/no-base-to-string\n\t\t\tstyles.push(String(value));\n\t\t}\n\t}\n}\n","import $unwrap from \"../watch/$unwrap\";\n\nexport default function formatText(value: any): string {\n\t// We could have anything in value, so we need to\n\t// - use String(...) because Symbols can't be implicitly converted\n\t// - use $unwrap because Proxies can't be converted to a string\n\tif (value === undefined || value === null) {\n\t\treturn \"\";\n\t}\n\t// Fast path: strings already satisfy both concerns above. Skipping the\n\t// `String($unwrap(value))` pair saves two function calls per text\n\t// interpolation on the dominant `typeof value === \"string\"` branch —\n\t// e.g. row labels in js-framework-bench hit this on every effect run.\n\tif (typeof value === \"string\") {\n\t\treturn value;\n\t}\n\treturn String($unwrap(value));\n}\n","import type StreamSource from \"../types/StreamSource\";\n\n/**\n * The element to listen on, or a getter returning it. Use a getter for\n * `&ref`-bound variables — they are only assigned once the element is\n * created, and subscriptions start at mount time:\n *\n * ```torp\n * let saveButton: HTMLButtonElement;\n *\n * $stream(fromElement(() => saveButton, \"click\"), () => save());\n * ```\n */\ntype EventTargetInput = HTMLElement | (() => HTMLElement | null | undefined);\n\n/**\n * Creates a StreamSource that pushes DOM events of the given type from an\n * element.\n *\n * ```torp\n * $stream(fromElement(() => saveButton, \"click\"), (e) => {\n * \t$state.clicks.push(e);\n * });\n * ```\n */\nexport default function fromElement<E extends Event = Event>(\n\ttarget: EventTargetInput,\n\ttype: string,\n): StreamSource<E> {\n\treturn (push) => {\n\t\tconst el = typeof target === \"function\" ? target() : target;\n\t\tif (!el) {\n\t\t\tthrow new Error(\n\t\t\t\t'fromElement: element not found. When passing a &ref variable, wrap it in a getter: fromElement(() => buttonEl, \"click\")',\n\t\t\t);\n\t\t}\n\t\tconst listener = push as EventListener;\n\t\tel.addEventListener(type, listener);\n\t\treturn () => {\n\t\t\tel.removeEventListener(type, listener);\n\t\t};\n\t};\n}\n","import type StreamSource from \"../types/StreamSource\";\n\n/**\n * Creates a StreamSource that receives `message` events from a server-sent\n * events endpoint. The URL may be a getter, so reactive state can be read\n * inside it — when it changes, the connection is closed and re-opened:\n *\n * ```torp\n * $stream(fromServer(`/sse/${$props.id}`), (e) => {\n * \t$state.messages.push(e.data);\n * });\n * ```\n *\n * Reconnection is handled by `EventSource` itself; errors are not pushed —\n * a source that can fail should surface errors as values.\n */\nexport default function fromServer(url: string | (() => string)): StreamSource<MessageEvent> {\n\treturn (push) => {\n\t\tconst eventSource = new EventSource(typeof url === \"function\" ? url() : url);\n\t\teventSource.onmessage = push;\n\t\treturn () => {\n\t\t\teventSource.close();\n\t\t};\n\t};\n}\n","import type StreamSource from \"../types/StreamSource\";\n\n/**\n * Creates a StreamSource that receives `message` events from a WebSocket.\n * The URL may be a getter, so reactive state can be read inside it — when\n * it changes, the socket is closed and re-opened:\n *\n * ```torp\n * $stream(fromWebSocket(`/ws/${$props.id}`), (e) => {\n * \t$state.inbox.push(e.data);\n * });\n * ```\n *\n * Errors are not pushed — a source that can fail should surface errors as\n * values and own its own reconnection.\n */\nexport default function fromWebSocket(url: string | (() => string)): StreamSource<MessageEvent> {\n\treturn (push) => {\n\t\tconst socket = new WebSocket(typeof url === \"function\" ? url() : url);\n\t\tsocket.onmessage = push;\n\t\treturn () => {\n\t\t\tsocket.close();\n\t\t};\n\t};\n}\n"],"mappings":";AAAA,MAAM,kBAAiC,OAAO,IAAI,gBAAgB;;;;;;;;;AAUlE,MAAM,kBAAiC,OAAO,IAAI,gBAAgB;;;;;;;;ACHlE,SAAwB,QAA4C,QAAc;CACjF,OAAO,WAAW,KAAA,KAAa,WAAW,QAAQ,OAAO,qBAAqB,KAAA,IAC1E,OAAO,gBAAgB,CAAC,UAAU,SACnC;AACJ;;;ACRA,SAAwB,aAAa,OAAmB,WAA4B;CACnF,IAAI,OAAO,UAAU,UAAU;EAC9B,IAAI,cAAc,KAAA,GACjB,SAAS,MAAM;EAEhB,OAAO;CACR,OAAO;EACN,IAAI,UAAoB,CAAC;EACzB,cAAc,IAAI,OAAO,OAAO;EAChC,IAAI,cAAc,KAAA,GACjB,QAAQ,KAAK,SAAS;EAEvB,OAAO,QAAQ,KAAK,GAAG;CACxB;AACD;AAEA,SAAS,cAAc,MAAc,OAAgB,SAAmB;CACvE,IAAI,OAAO;EAOV,QAAQ,QAAQ,KAAiC;EACjD,IAAI,MAAM,QAAQ,KAAK,GACtB,KAAK,IAAI,KAAK,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;;;AC1BA,SAAwB,WAAW,KAA0D;CAC5F,QAAQ,SAAS;EAChB,MAAM,cAAc,IAAI,YAAY,OAAO,QAAQ,aAAa,IAAI,IAAI,GAAG;EAC3E,YAAY,YAAY;EACxB,aAAa;GACZ,YAAY,MAAM;EACnB;CACD;AACD;;;;;;;;;;;;;;;;;ACRA,SAAwB,cAAc,KAA0D;CAC/F,QAAQ,SAAS;EAChB,MAAM,SAAS,IAAI,UAAU,OAAO,QAAQ,aAAa,IAAI,IAAI,GAAG;EACpE,OAAO,YAAY;EACnB,aAAa;GACZ,OAAO,MAAM;EACd;CACD;AACD"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_devContext = require("./devContext-BulTn3U5.cjs");
|
|
3
|
-
const require_fromWebSocket = require("./fromWebSocket-
|
|
3
|
+
const require_fromWebSocket = require("./fromWebSocket-Cdoghvmh.cjs");
|
|
4
4
|
//#region src/render/context.ts
|
|
5
5
|
const CONTEXT_SYMBOL = Symbol.for("torp.Context");
|
|
6
6
|
const context = globalThis[CONTEXT_SYMBOL] ??= {
|
|
@@ -116,6 +116,23 @@ function nodeNext(node, text = false) {
|
|
|
116
116
|
return node.nextSibling;
|
|
117
117
|
}
|
|
118
118
|
//#endregion
|
|
119
|
+
//#region src/dev/devAssert.ts
|
|
120
|
+
/**
|
|
121
|
+
* Throws when `condition` is false — but only when dev mode is enabled (the
|
|
122
|
+
* dev-tools build calls `setDevMode`). Used for invariant checks on the
|
|
123
|
+
* runtime's implicit state machines (the batch counter, the signal update
|
|
124
|
+
* chain, the `$async` settle latch): violations mean the machine's
|
|
125
|
+
* bookkeeping is corrupt, and failing loudly in dev beats silently leaking
|
|
126
|
+
* subscriptions or dropping settles in ways that only show up as subtle UI
|
|
127
|
+
* glitches later. Production builds pay one boolean read per check.
|
|
128
|
+
*
|
|
129
|
+
* @param condition The invariant to hold.
|
|
130
|
+
* @param message What the violation means — the thrown error's message.
|
|
131
|
+
*/
|
|
132
|
+
function devAssert(condition, message) {
|
|
133
|
+
if (require_devContext.devContext.enabled && !condition) throw new Error(message);
|
|
134
|
+
}
|
|
135
|
+
//#endregion
|
|
119
136
|
//#region src/watch/clearSources.ts
|
|
120
137
|
/**
|
|
121
138
|
* Clear unused source subscriptions after each Computed or Effect has been run.
|
|
@@ -385,6 +402,7 @@ function triggerEffects() {
|
|
|
385
402
|
//#endregion
|
|
386
403
|
//#region src/watch/batchEnd.ts
|
|
387
404
|
function batchEnd() {
|
|
405
|
+
devAssert(context.batch > 0, "batchEnd called without a matching batchStart");
|
|
388
406
|
if (context.batch > 1) {
|
|
389
407
|
context.batch--;
|
|
390
408
|
return;
|
|
@@ -1517,15 +1535,23 @@ function nodeRoot(parent, text = false) {
|
|
|
1517
1535
|
/**
|
|
1518
1536
|
* Gets the sibling of a node, x nodes after it.
|
|
1519
1537
|
*
|
|
1520
|
-
* When hydrating, sets the hydration node.
|
|
1538
|
+
* When hydrating, sets the hydration node. `textMask` marks steps that
|
|
1539
|
+
* should land on a text node (bit i = the i-th step, counting from
|
|
1540
|
+
* `node`): such a step reuses the current node when it is already text
|
|
1541
|
+
* (text nodes get merged in HTML) and does not skip whitespace-only text
|
|
1542
|
+
* nodes — matching `nodeNext(node, true)`. Steps without their bit set
|
|
1543
|
+
* match `nodeNext(node, false)`.
|
|
1521
1544
|
*
|
|
1522
1545
|
* @param node The node.
|
|
1523
1546
|
* @param count The number of nodes to skip.
|
|
1547
|
+
* @param textMask Bitmask of text steps.
|
|
1524
1548
|
*/
|
|
1525
|
-
function nodeSkip(node, count) {
|
|
1549
|
+
function nodeSkip(node, count, textMask = 0) {
|
|
1526
1550
|
let nextNode = node;
|
|
1527
|
-
if (context.hydrationNode !== null)
|
|
1528
|
-
|
|
1551
|
+
if (context.hydrationNode !== null) {
|
|
1552
|
+
if (textMask === 0) for (let i = 0; i < count; i++) nextNode = nodeCheckHydrationBreak(nextNode.nextSibling);
|
|
1553
|
+
else for (let i = 0; i < count; i++) nextNode = nodeNext(nextNode, (textMask & 1 << i) !== 0);
|
|
1554
|
+
} else for (let i = 0; i < count; i++) nextNode = nextNode.nextSibling;
|
|
1529
1555
|
return nextNode;
|
|
1530
1556
|
}
|
|
1531
1557
|
//#endregion
|
|
@@ -1761,47 +1787,6 @@ function formatKey(key) {
|
|
|
1761
1787
|
}
|
|
1762
1788
|
}
|
|
1763
1789
|
//#endregion
|
|
1764
|
-
//#region src/render/AwaitSuspend.ts
|
|
1765
|
-
/**
|
|
1766
|
-
* Thrown when content rendered speculatively inside an `@await` boundary
|
|
1767
|
-
* dereferences (or calls) a first-load pending `$async` value.
|
|
1768
|
-
*
|
|
1769
|
-
* `suspendRead` normally returns `staleValue` so refresh suspends can keep
|
|
1770
|
-
* stale content mounted. On a first load there is no stale value, so returning
|
|
1771
|
-
* `undefined` would let user code throw a `TypeError` before the boundary can
|
|
1772
|
-
* switch to its `with` branch. Throwing this sentinel aborts the speculative
|
|
1773
|
-
* render instead; `runAwait` catches it and renders the fallback.
|
|
1774
|
-
*/
|
|
1775
|
-
var AwaitSuspend = class extends Error {
|
|
1776
|
-
constructor() {
|
|
1777
|
-
super("Suspended async value");
|
|
1778
|
-
this.name = "AwaitSuspend";
|
|
1779
|
-
}
|
|
1780
|
-
};
|
|
1781
|
-
//#endregion
|
|
1782
|
-
//#region src/watch/deepWrap.ts
|
|
1783
|
-
/**
|
|
1784
|
-
* Wraps a value with `$watch` if it is a plain object (or Date/Map/Set) that
|
|
1785
|
-
* is not already watched and is not a promise. Returns the value unchanged
|
|
1786
|
-
* otherwise.
|
|
1787
|
-
*
|
|
1788
|
-
* Used by the `get` trap (wrap values on read) and the `set` trap (wrap
|
|
1789
|
-
* values on write), so a value stored in watched state is reactive whether
|
|
1790
|
-
* it's been read yet or not.
|
|
1791
|
-
*/
|
|
1792
|
-
const proxyCache = /* @__PURE__ */ new WeakMap();
|
|
1793
|
-
function deepWrap(value) {
|
|
1794
|
-
if (value === void 0 || value === null || typeof value !== "object") return value;
|
|
1795
|
-
if (value[require_fromWebSocket.proxyDataSymbol] !== void 0) return proxyCache.get(value) ?? value;
|
|
1796
|
-
if (value.then !== void 0) return value;
|
|
1797
|
-
if (value.nodeType !== void 0) return value;
|
|
1798
|
-
const cached = proxyCache.get(value);
|
|
1799
|
-
if (cached !== void 0) return cached;
|
|
1800
|
-
const proxy = $watch(value);
|
|
1801
|
-
proxyCache.set(value, proxy);
|
|
1802
|
-
return proxy;
|
|
1803
|
-
}
|
|
1804
|
-
//#endregion
|
|
1805
1790
|
//#region src/watch/propagateSignal.ts
|
|
1806
1791
|
/**
|
|
1807
1792
|
* Walk the target graph from a signal source (ProxySignal or Computed),
|
|
@@ -1859,6 +1844,7 @@ function propagateSignal(proxy, key) {
|
|
|
1859
1844
|
if (signal !== void 0 && signal.firstTarget !== null) {
|
|
1860
1845
|
batchStart();
|
|
1861
1846
|
try {
|
|
1847
|
+
devAssert(context.firstSignalToUpdate === null === (context.lastSignalToUpdate === null), "Signal update chain head/tail out of sync");
|
|
1862
1848
|
if (context.lastSignalToUpdate === null) {
|
|
1863
1849
|
context.firstSignalToUpdate = signal;
|
|
1864
1850
|
context.lastSignalToUpdate = signal;
|
|
@@ -1873,6 +1859,48 @@ function propagateSignal(proxy, key) {
|
|
|
1873
1859
|
}
|
|
1874
1860
|
}
|
|
1875
1861
|
//#endregion
|
|
1862
|
+
//#region src/render/AwaitSuspend.ts
|
|
1863
|
+
/**
|
|
1864
|
+
* Thrown when content rendered speculatively inside an `@await` boundary
|
|
1865
|
+
* dereferences (or calls) a first-load pending `$async` value.
|
|
1866
|
+
*
|
|
1867
|
+
* `suspendRead` normally returns the retained settle value so refresh suspends
|
|
1868
|
+
* can keep
|
|
1869
|
+
* stale content mounted. On a first load there is no stale value, so returning
|
|
1870
|
+
* `undefined` would let user code throw a `TypeError` before the boundary can
|
|
1871
|
+
* switch to its `with` branch. Throwing this sentinel aborts the speculative
|
|
1872
|
+
* render instead; `runAwait` catches it and renders the fallback.
|
|
1873
|
+
*/
|
|
1874
|
+
var AwaitSuspend = class extends Error {
|
|
1875
|
+
constructor() {
|
|
1876
|
+
super("Suspended async value");
|
|
1877
|
+
this.name = "AwaitSuspend";
|
|
1878
|
+
}
|
|
1879
|
+
};
|
|
1880
|
+
//#endregion
|
|
1881
|
+
//#region src/watch/deepWrap.ts
|
|
1882
|
+
/**
|
|
1883
|
+
* Wraps a value with `$watch` if it is a plain object (or Date/Map/Set) that
|
|
1884
|
+
* is not already watched and is not a promise. Returns the value unchanged
|
|
1885
|
+
* otherwise.
|
|
1886
|
+
*
|
|
1887
|
+
* Used by the `get` trap (wrap values on read) and the `set` trap (wrap
|
|
1888
|
+
* values on write), so a value stored in watched state is reactive whether
|
|
1889
|
+
* it's been read yet or not.
|
|
1890
|
+
*/
|
|
1891
|
+
const proxyCache = /* @__PURE__ */ new WeakMap();
|
|
1892
|
+
function deepWrap(value) {
|
|
1893
|
+
if (value === void 0 || value === null || typeof value !== "object") return value;
|
|
1894
|
+
if (value[require_fromWebSocket.proxyDataSymbol] !== void 0) return proxyCache.get(value) ?? value;
|
|
1895
|
+
if (value.then !== void 0) return value;
|
|
1896
|
+
if (value.nodeType !== void 0) return value;
|
|
1897
|
+
const cached = proxyCache.get(value);
|
|
1898
|
+
if (cached !== void 0) return cached;
|
|
1899
|
+
const proxy = $watch(value);
|
|
1900
|
+
proxyCache.set(value, proxy);
|
|
1901
|
+
return proxy;
|
|
1902
|
+
}
|
|
1903
|
+
//#endregion
|
|
1876
1904
|
//#region src/watch/trackProxySignal.ts
|
|
1877
1905
|
function trackProxySignal(data, key) {
|
|
1878
1906
|
let signal = data.signals.get(key);
|
|
@@ -1895,8 +1923,8 @@ function trackProxySignal(data, key) {
|
|
|
1895
1923
|
* nearest `@await` boundary.
|
|
1896
1924
|
*
|
|
1897
1925
|
* Return value (ASYNC.md → "Stale-while-revalidate"): on a refresh suspend
|
|
1898
|
-
* (the computed has
|
|
1899
|
-
* held in `
|
|
1926
|
+
* (the computed has settled before) returns the previously resolved value
|
|
1927
|
+
* held in `settle`, so readers keep displaying the old content instead of
|
|
1900
1928
|
* a placeholder — an `@await` boundary thus keeps its content mounted
|
|
1901
1929
|
* rather than flashing the `with` branch. On a first load (or a retry after a
|
|
1902
1930
|
* rejection, both of which have no stale value), inside an `@await` boundary,
|
|
@@ -1929,9 +1957,9 @@ function suspendRead(signal) {
|
|
|
1929
1957
|
trackSignal(signal);
|
|
1930
1958
|
context.activeTarget = oldActive;
|
|
1931
1959
|
}
|
|
1932
|
-
if (
|
|
1960
|
+
if (signal.settle === void 0 || !signal.settle.ok) throw new AwaitSuspend();
|
|
1933
1961
|
}
|
|
1934
|
-
return signal.
|
|
1962
|
+
return signal.settle !== void 0 && signal.settle.ok ? signal.settle.value : void 0;
|
|
1935
1963
|
}
|
|
1936
1964
|
function proxyGet(target, key, receiver) {
|
|
1937
1965
|
let data = target[require_fromWebSocket.proxyDataSymbol];
|
|
@@ -2070,6 +2098,7 @@ function arrayHandle(data, target, key) {
|
|
|
2070
2098
|
return function(...args) {
|
|
2071
2099
|
const result = target[key].apply(target, args);
|
|
2072
2100
|
propagateSignal(data, "length");
|
|
2101
|
+
if (key !== "sort" && key !== "reverse") propagateSignal(data, require_fromWebSocket.proxyKeysSymbol);
|
|
2073
2102
|
return result;
|
|
2074
2103
|
};
|
|
2075
2104
|
}
|
|
@@ -2303,8 +2332,10 @@ function proxySet(target, key, value, receiver) {
|
|
|
2303
2332
|
let data = target[require_fromWebSocket.proxyDataSymbol];
|
|
2304
2333
|
require_devContext.devContext.signalSet(data, key);
|
|
2305
2334
|
if (data.shallow !== true) value = deepWrap(value);
|
|
2335
|
+
const isNewKey = !Object.prototype.hasOwnProperty.call(target, key);
|
|
2306
2336
|
Reflect.set(target, key, value, receiver);
|
|
2307
2337
|
propagateSignal(data, key);
|
|
2338
|
+
if (isNewKey) propagateSignal(data, require_fromWebSocket.proxyKeysSymbol);
|
|
2308
2339
|
if (data.isArray && typeof key !== "symbol" && !isNaN(+key)) propagateSignal(data, "length");
|
|
2309
2340
|
}
|
|
2310
2341
|
return true;
|
|
@@ -2313,7 +2344,21 @@ function proxySet(target, key, value, receiver) {
|
|
|
2313
2344
|
//#region src/watch/$watch.ts
|
|
2314
2345
|
const sharedHandler = {
|
|
2315
2346
|
get: proxyGet,
|
|
2316
|
-
set: proxySet
|
|
2347
|
+
set: proxySet,
|
|
2348
|
+
ownKeys: (target) => {
|
|
2349
|
+
const data = target[require_fromWebSocket.proxyDataSymbol];
|
|
2350
|
+
if (data !== void 0) trackProxySignal(data, require_fromWebSocket.proxyKeysSymbol);
|
|
2351
|
+
return Reflect.ownKeys(target);
|
|
2352
|
+
},
|
|
2353
|
+
deleteProperty: (target, key) => {
|
|
2354
|
+
const deleted = Reflect.deleteProperty(target, key);
|
|
2355
|
+
const data = target[require_fromWebSocket.proxyDataSymbol];
|
|
2356
|
+
if (deleted && data !== void 0) {
|
|
2357
|
+
propagateSignal(data, key);
|
|
2358
|
+
propagateSignal(data, require_fromWebSocket.proxyKeysSymbol);
|
|
2359
|
+
}
|
|
2360
|
+
return deleted;
|
|
2361
|
+
}
|
|
2317
2362
|
};
|
|
2318
2363
|
/**
|
|
2319
2364
|
* Watches an object and runs effects when its properties are changed.
|
|
@@ -2472,13 +2517,13 @@ function runListItems(region, parent, anchor, oldItems, newSpecs, create, update
|
|
|
2472
2517
|
let chainNeedsRelink = false;
|
|
2473
2518
|
while (oldStart <= oldEnd && newStart <= newEnd) if (oldItems[oldStart].key === newSpecs[newStart].key) {
|
|
2474
2519
|
const item = oldItems[oldStart];
|
|
2475
|
-
update(item, newSpecs[newStart]);
|
|
2520
|
+
if (item.data !== newSpecs[newStart].data) update(item, newSpecs[newStart]);
|
|
2476
2521
|
newItems[newStart] = item;
|
|
2477
2522
|
oldStart++;
|
|
2478
2523
|
newStart++;
|
|
2479
2524
|
} else if (oldItems[oldEnd].key === newSpecs[newEnd].key) {
|
|
2480
2525
|
const item = oldItems[oldEnd];
|
|
2481
|
-
update(item, newSpecs[newEnd]);
|
|
2526
|
+
if (item.data !== newSpecs[newEnd].data) update(item, newSpecs[newEnd]);
|
|
2482
2527
|
newItems[newEnd] = item;
|
|
2483
2528
|
oldEnd--;
|
|
2484
2529
|
newEnd--;
|
|
@@ -2486,7 +2531,7 @@ function runListItems(region, parent, anchor, oldItems, newSpecs, create, update
|
|
|
2486
2531
|
const item = oldItems[oldStart];
|
|
2487
2532
|
moveRegion(parent, item, oldItems[oldEnd].endNode?.nextSibling ?? anchor);
|
|
2488
2533
|
chainNeedsRelink = true;
|
|
2489
|
-
update(item, newSpecs[newEnd]);
|
|
2534
|
+
if (item.data !== newSpecs[newEnd].data) update(item, newSpecs[newEnd]);
|
|
2490
2535
|
newItems[newEnd] = item;
|
|
2491
2536
|
oldStart++;
|
|
2492
2537
|
newEnd--;
|
|
@@ -2494,7 +2539,7 @@ function runListItems(region, parent, anchor, oldItems, newSpecs, create, update
|
|
|
2494
2539
|
const item = oldItems[oldEnd];
|
|
2495
2540
|
moveRegion(parent, item, oldItems[oldStart].startNode);
|
|
2496
2541
|
chainNeedsRelink = true;
|
|
2497
|
-
update(item, newSpecs[newStart]);
|
|
2542
|
+
if (item.data !== newSpecs[newStart].data) update(item, newSpecs[newStart]);
|
|
2498
2543
|
newItems[newStart] = item;
|
|
2499
2544
|
oldEnd--;
|
|
2500
2545
|
newStart++;
|
|
@@ -2528,7 +2573,7 @@ function runListItems(region, parent, anchor, oldItems, newSpecs, create, update
|
|
|
2528
2573
|
const newIdx = newKeyToIndex.get(oldItem.key);
|
|
2529
2574
|
if (newIdx !== void 0) {
|
|
2530
2575
|
newIndexToOld[newIdx - newStart] = i + 1;
|
|
2531
|
-
update(oldItem, newSpecs[newIdx]);
|
|
2576
|
+
if (oldItem.data !== newSpecs[newIdx].data) update(oldItem, newSpecs[newIdx]);
|
|
2532
2577
|
newItems[newIdx] = oldItem;
|
|
2533
2578
|
} else clearRegion(oldItem);
|
|
2534
2579
|
}
|
|
@@ -2646,7 +2691,7 @@ const SERVER_VALUES_PREFIX = "t-await:";
|
|
|
2646
2691
|
* Stale-while-revalidate (ASYNC.md): once content has been produced
|
|
2647
2692
|
* (`hasContent`), a subsequent suspend during a refresh does NOT switch to
|
|
2648
2693
|
* the `with` branch — the boundary keeps the stale content mounted. `$async`
|
|
2649
|
-
* retains the previous resolved value (`Computed.
|
|
2694
|
+
* retains the previous resolved value (`Computed.settle.value`) and
|
|
2650
2695
|
* `suspendRead` returns it, so child effects keep displaying the old value
|
|
2651
2696
|
* until the new promise resolves and updates them in place. The `with` branch
|
|
2652
2697
|
* is shown only on the first load, before content has ever rendered
|
|
@@ -2973,10 +3018,8 @@ function $async(fn, _options) {
|
|
|
2973
3018
|
didError: false,
|
|
2974
3019
|
didSuspend: false,
|
|
2975
3020
|
generation: 0,
|
|
2976
|
-
|
|
2977
|
-
lastErrored: false,
|
|
3021
|
+
settle: void 0,
|
|
2978
3022
|
suspendQuiet: false,
|
|
2979
|
-
staleValue: void 0,
|
|
2980
3023
|
rollback: null
|
|
2981
3024
|
};
|
|
2982
3025
|
const serverValues = context.serverValues;
|
|
@@ -2988,25 +3031,29 @@ function $async(fn, _options) {
|
|
|
2988
3031
|
if (value !== null && value !== void 0 && typeof value.then === "function") {
|
|
2989
3032
|
const gen = ++computed.generation;
|
|
2990
3033
|
computed.didSuspend = true;
|
|
2991
|
-
computed.suspendQuiet = computed.
|
|
3034
|
+
computed.suspendQuiet = computed.settle !== void 0 && !computed.recalc;
|
|
2992
3035
|
value.then((v) => {
|
|
2993
3036
|
if (computed.generation !== gen) return;
|
|
3037
|
+
devAssert(computed.didSuspend, "$async: resolved while not suspended (settle bookkeeping is broken)");
|
|
2994
3038
|
computed.value = v;
|
|
2995
3039
|
computed.didSuspend = false;
|
|
2996
|
-
computed.
|
|
2997
|
-
|
|
2998
|
-
|
|
3040
|
+
computed.settle = {
|
|
3041
|
+
ok: true,
|
|
3042
|
+
value: v
|
|
3043
|
+
};
|
|
2999
3044
|
batchStart();
|
|
3000
3045
|
propagateFromSignal(computed);
|
|
3001
3046
|
batchEnd();
|
|
3002
3047
|
}, (e) => {
|
|
3003
3048
|
if (computed.generation !== gen) return;
|
|
3049
|
+
devAssert(computed.didSuspend, "$async: rejected while not suspended (settle bookkeeping is broken)");
|
|
3004
3050
|
computed.value = e;
|
|
3005
3051
|
computed.didError = true;
|
|
3006
3052
|
computed.didSuspend = false;
|
|
3007
|
-
computed.
|
|
3008
|
-
|
|
3009
|
-
|
|
3053
|
+
computed.settle = {
|
|
3054
|
+
ok: false,
|
|
3055
|
+
error: e
|
|
3056
|
+
};
|
|
3010
3057
|
batchStart();
|
|
3011
3058
|
propagateFromSignal(computed);
|
|
3012
3059
|
batchEnd();
|
|
@@ -3020,10 +3067,11 @@ function $async(fn, _options) {
|
|
|
3020
3067
|
computed.generation++;
|
|
3021
3068
|
computed.didSuspend = false;
|
|
3022
3069
|
computed.didError = false;
|
|
3023
|
-
computed.hasResolved = true;
|
|
3024
|
-
computed.lastErrored = false;
|
|
3025
3070
|
computed.value = serverValues.values[serverValues.index++];
|
|
3026
|
-
computed.
|
|
3071
|
+
computed.settle = {
|
|
3072
|
+
ok: true,
|
|
3073
|
+
value: computed.value
|
|
3074
|
+
};
|
|
3027
3075
|
}
|
|
3028
3076
|
return computed.value;
|
|
3029
3077
|
}
|
|
@@ -3099,10 +3147,8 @@ function $cache(fn) {
|
|
|
3099
3147
|
didError: false,
|
|
3100
3148
|
didSuspend: false,
|
|
3101
3149
|
generation: 0,
|
|
3102
|
-
|
|
3103
|
-
lastErrored: false,
|
|
3150
|
+
settle: void 0,
|
|
3104
3151
|
suspendQuiet: false,
|
|
3105
|
-
staleValue: void 0,
|
|
3106
3152
|
rollback: null
|
|
3107
3153
|
};
|
|
3108
3154
|
context.registerComputed(computed);
|
|
@@ -3159,7 +3205,7 @@ function $onmount(fn) {
|
|
|
3159
3205
|
* re-asking the same question shouldn't ping the user. First loads and
|
|
3160
3206
|
* dependency-change refreshes are loud (`true`), as is the default (loud)
|
|
3161
3207
|
* `$refresh(fn)`. Quiet-ness is captured per computed at suspend time via
|
|
3162
|
-
* `suspendQuiet` (computed in `$async`'s run from `
|
|
3208
|
+
* `suspendQuiet` (computed in `$async`'s run from `settle` and `recalc`).
|
|
3163
3209
|
*
|
|
3164
3210
|
* @param fn A function that reads the reactive values to check.
|
|
3165
3211
|
*/
|
|
@@ -3187,7 +3233,7 @@ function $pending(fn) {
|
|
|
3187
3233
|
* *loud*: `$pending(fn)` returns `true` while the re-fetch is in flight and
|
|
3188
3234
|
* subscribers are notified at suspend *start*, so an inline "updating…"
|
|
3189
3235
|
* indicator appears immediately. Readers keep displaying the previous
|
|
3190
|
-
* resolved value (`Computed.
|
|
3236
|
+
* resolved value (`Computed.settle.value`) until the new promise resolves and
|
|
3191
3237
|
* propagates through the reactive graph; an `@await` boundary keeps its
|
|
3192
3238
|
* content mounted instead of flashing fallback.
|
|
3193
3239
|
*
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as SlotRender, t as Component } from "./Component-0MH0zd-m.cjs";
|
|
2
2
|
import { t as Cleanup } from "./Cleanup-D0wvGW5d.cjs";
|
|
3
|
-
import { n as Region, t as Effect } from "./Effect-
|
|
3
|
+
import { n as Region, t as Effect } from "./Effect-Bf8fz_zC.cjs";
|
|
4
4
|
import { a as StreamSource, i as fromElement, n as fromWebSocket, o as StyleValue, r as fromServer, s as ClassValue, t as AsyncOptions } from "./AsyncOptions-C_7mWR6F.cjs";
|
|
5
5
|
//#region src/types/Animation.d.ts
|
|
6
6
|
interface Animation {
|
|
@@ -274,12 +274,18 @@ declare function nodeRoot(parent: Node, text?: boolean): ChildNode;
|
|
|
274
274
|
/**
|
|
275
275
|
* Gets the sibling of a node, x nodes after it.
|
|
276
276
|
*
|
|
277
|
-
* When hydrating, sets the hydration node.
|
|
277
|
+
* When hydrating, sets the hydration node. `textMask` marks steps that
|
|
278
|
+
* should land on a text node (bit i = the i-th step, counting from
|
|
279
|
+
* `node`): such a step reuses the current node when it is already text
|
|
280
|
+
* (text nodes get merged in HTML) and does not skip whitespace-only text
|
|
281
|
+
* nodes — matching `nodeNext(node, true)`. Steps without their bit set
|
|
282
|
+
* match `nodeNext(node, false)`.
|
|
278
283
|
*
|
|
279
284
|
* @param node The node.
|
|
280
285
|
* @param count The number of nodes to skip.
|
|
286
|
+
* @param textMask Bitmask of text steps.
|
|
281
287
|
*/
|
|
282
|
-
declare function nodeSkip(node: ChildNode, count: number): ChildNode;
|
|
288
|
+
declare function nodeSkip(node: ChildNode, count: number, textMask?: number): ChildNode;
|
|
283
289
|
//#endregion
|
|
284
290
|
//#region src/render/popRegion.d.ts
|
|
285
291
|
declare function popRegion(oldRegion: Region): void;
|
|
@@ -384,7 +390,7 @@ declare function runList(region: Region, parent: ParentNode, anchor: Node | null
|
|
|
384
390
|
* Stale-while-revalidate (ASYNC.md): once content has been produced
|
|
385
391
|
* (`hasContent`), a subsequent suspend during a refresh does NOT switch to
|
|
386
392
|
* the `with` branch — the boundary keeps the stale content mounted. `$async`
|
|
387
|
-
* retains the previous resolved value (`Computed.
|
|
393
|
+
* retains the previous resolved value (`Computed.settle.value`) and
|
|
388
394
|
* `suspendRead` returns it, so child effects keep displaying the old value
|
|
389
395
|
* until the new promise resolves and updates them in place. The `with` branch
|
|
390
396
|
* is shown only on the first load, before content has ever rendered
|
|
@@ -626,7 +632,7 @@ declare function $peek<T>(fn: () => T): T;
|
|
|
626
632
|
* re-asking the same question shouldn't ping the user. First loads and
|
|
627
633
|
* dependency-change refreshes are loud (`true`), as is the default (loud)
|
|
628
634
|
* `$refresh(fn)`. Quiet-ness is captured per computed at suspend time via
|
|
629
|
-
* `suspendQuiet` (computed in `$async`'s run from `
|
|
635
|
+
* `suspendQuiet` (computed in `$async`'s run from `settle` and `recalc`).
|
|
630
636
|
*
|
|
631
637
|
* @param fn A function that reads the reactive values to check.
|
|
632
638
|
*/
|
|
@@ -657,7 +663,7 @@ interface RefreshOptions {
|
|
|
657
663
|
* *loud*: `$pending(fn)` returns `true` while the re-fetch is in flight and
|
|
658
664
|
* subscribers are notified at suspend *start*, so an inline "updating…"
|
|
659
665
|
* indicator appears immediately. Readers keep displaying the previous
|
|
660
|
-
* resolved value (`Computed.
|
|
666
|
+
* resolved value (`Computed.settle.value`) until the new promise resolves and
|
|
661
667
|
* propagates through the reactive graph; an `@await` boundary keeps its
|
|
662
668
|
* content mounted instead of flashing fallback.
|
|
663
669
|
*
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/types/Animation.ts","../src/render/addAnimation.ts","../src/render/addEvent.ts","../src/render/addElement.ts","../src/render/addFragment.ts","../src/render/applyProps.ts","../src/render/buildClasses.ts","../src/render/buildStyles.ts","../src/render/clearLayoutSlot.ts","../src/render/fillLayoutSlot.ts","../src/render/formatText.ts","../src/render/firstInsideNode.ts","../src/render/getFragment.ts","../src/render/getElementFragment.ts","../src/render/hydrate.ts","../src/render/mount.ts","../src/render/unmount.ts","../src/types/ListItemSpec.ts","../src/types/ListItem.ts","../src/render/newListItem.ts","../src/render/newRegion.ts","../src/render/nodeAnchor.ts","../src/render/nodeChild.ts","../src/render/nodeNext.ts","../src/render/nodeRootElement.ts","../src/render/nodeRoot.ts","../src/render/nodeSkip.ts","../src/render/popRegion.ts","../src/render/pushRegion.ts","../src/render/rerunRegionEffects.ts","../src/render/restoreHydration.ts","../src/render/runControl.ts","../src/render/runControlBranch.ts","../src/render/runList.ts","../src/render/runAwait.ts","../src/render/runTry.ts","../src/render/saveHydration.ts","../src/render/headElement.ts","../src/render/setAttribute.ts","../src/render/setDynamicElement.ts","../src/types/Bindable.ts","../src/watch/$batch.ts","../src/watch/$async.ts","../src/watch/$bind.ts","../src/watch/$cache.ts","../src/watch/$onmount.ts","../src/watch/$peek.ts","../src/watch/$pending.ts","../src/watch/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UAAU,QAAQ,OAAO;;;;;;;;;;;iBCGzB,SAAS,MAAM,WAAW,iBAAe;;;;;;;;;;;;;;;;;iBCKzC,gBAAgB,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;iBCShC,SAAS,QAAQ,MAAM,iBAAe
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/types/Animation.ts","../src/render/addAnimation.ts","../src/render/addEvent.ts","../src/render/addElement.ts","../src/render/addFragment.ts","../src/render/applyProps.ts","../src/render/buildClasses.ts","../src/render/buildStyles.ts","../src/render/clearLayoutSlot.ts","../src/render/fillLayoutSlot.ts","../src/render/formatText.ts","../src/render/firstInsideNode.ts","../src/render/getFragment.ts","../src/render/getElementFragment.ts","../src/render/hydrate.ts","../src/render/mount.ts","../src/render/unmount.ts","../src/types/ListItemSpec.ts","../src/types/ListItem.ts","../src/render/newListItem.ts","../src/render/newRegion.ts","../src/render/nodeAnchor.ts","../src/render/nodeChild.ts","../src/render/nodeNext.ts","../src/render/nodeRootElement.ts","../src/render/nodeRoot.ts","../src/render/nodeSkip.ts","../src/render/popRegion.ts","../src/render/pushRegion.ts","../src/render/rerunRegionEffects.ts","../src/render/restoreHydration.ts","../src/render/runControl.ts","../src/render/runControlBranch.ts","../src/render/runList.ts","../src/render/runAwait.ts","../src/render/runTry.ts","../src/render/saveHydration.ts","../src/render/headElement.ts","../src/render/setAttribute.ts","../src/render/setDynamicElement.ts","../src/types/Bindable.ts","../src/watch/$batch.ts","../src/watch/$async.ts","../src/watch/$bind.ts","../src/watch/$cache.ts","../src/watch/$onmount.ts","../src/watch/$peek.ts","../src/watch/$pending.ts","../src/watch/$refresh.ts","../src/watch/$run.ts","../src/watch/$stream.ts","../src/watch/$unwrap.ts","../src/types/WatchOptions.ts","../src/watch/$watch.ts"],"mappings":";;;;;UAAyB;EACxB,WAAW,aAAa;EACxB,mBAAmB;;;;iBCCI,aAAa,IAAI,aAAa,QAAQ,WAAW,OAAO;;;iBCDxD,SACvB,IAA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;;iBCdnB,MAAM,GAAG,UAAU,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;iBCcvB,SAAS;;;;;;UCZhB;;;;;;;;EAQhB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA4CuB,SAAS,eAAe,UAAU;;;;;;;;;;iBChDlC,KACvB,UAAU,gBACV,eACA,UAAU,KAAK,0CACb;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBCqBqB,QAAQ,GAC/B,QAAQ,aAAa,IACrB,UAAU,OAAO,YACjB;EAAY;;;;;;;;;iBCrCW,QAAQ,UAAU,OAAO,mBAAmB,QAAQ,IAAI;;;;;;UCJvD;;;;EAIxB;;;;;;;;;;;;;iBC6CuB,OAAO,kBAAkB,QAAQ,GAAG,UAAU,eAAe"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as SlotRender, t as Component } from "./Component-0MH0zd-m.mjs";
|
|
2
2
|
import { t as Cleanup } from "./Cleanup-D0wvGW5d.mjs";
|
|
3
|
-
import { n as Region, t as Effect } from "./Effect-
|
|
3
|
+
import { n as Region, t as Effect } from "./Effect-99HYQdzZ.mjs";
|
|
4
4
|
import { a as StreamSource, i as fromElement, n as fromWebSocket, o as StyleValue, r as fromServer, s as ClassValue, t as AsyncOptions } from "./AsyncOptions-BDtArmeL.mjs";
|
|
5
5
|
//#region src/types/Animation.d.ts
|
|
6
6
|
interface Animation {
|
|
@@ -274,12 +274,18 @@ declare function nodeRoot(parent: Node, text?: boolean): ChildNode;
|
|
|
274
274
|
/**
|
|
275
275
|
* Gets the sibling of a node, x nodes after it.
|
|
276
276
|
*
|
|
277
|
-
* When hydrating, sets the hydration node.
|
|
277
|
+
* When hydrating, sets the hydration node. `textMask` marks steps that
|
|
278
|
+
* should land on a text node (bit i = the i-th step, counting from
|
|
279
|
+
* `node`): such a step reuses the current node when it is already text
|
|
280
|
+
* (text nodes get merged in HTML) and does not skip whitespace-only text
|
|
281
|
+
* nodes — matching `nodeNext(node, true)`. Steps without their bit set
|
|
282
|
+
* match `nodeNext(node, false)`.
|
|
278
283
|
*
|
|
279
284
|
* @param node The node.
|
|
280
285
|
* @param count The number of nodes to skip.
|
|
286
|
+
* @param textMask Bitmask of text steps.
|
|
281
287
|
*/
|
|
282
|
-
declare function nodeSkip(node: ChildNode, count: number): ChildNode;
|
|
288
|
+
declare function nodeSkip(node: ChildNode, count: number, textMask?: number): ChildNode;
|
|
283
289
|
//#endregion
|
|
284
290
|
//#region src/render/popRegion.d.ts
|
|
285
291
|
declare function popRegion(oldRegion: Region): void;
|
|
@@ -384,7 +390,7 @@ declare function runList(region: Region, parent: ParentNode, anchor: Node | null
|
|
|
384
390
|
* Stale-while-revalidate (ASYNC.md): once content has been produced
|
|
385
391
|
* (`hasContent`), a subsequent suspend during a refresh does NOT switch to
|
|
386
392
|
* the `with` branch — the boundary keeps the stale content mounted. `$async`
|
|
387
|
-
* retains the previous resolved value (`Computed.
|
|
393
|
+
* retains the previous resolved value (`Computed.settle.value`) and
|
|
388
394
|
* `suspendRead` returns it, so child effects keep displaying the old value
|
|
389
395
|
* until the new promise resolves and updates them in place. The `with` branch
|
|
390
396
|
* is shown only on the first load, before content has ever rendered
|
|
@@ -626,7 +632,7 @@ declare function $peek<T>(fn: () => T): T;
|
|
|
626
632
|
* re-asking the same question shouldn't ping the user. First loads and
|
|
627
633
|
* dependency-change refreshes are loud (`true`), as is the default (loud)
|
|
628
634
|
* `$refresh(fn)`. Quiet-ness is captured per computed at suspend time via
|
|
629
|
-
* `suspendQuiet` (computed in `$async`'s run from `
|
|
635
|
+
* `suspendQuiet` (computed in `$async`'s run from `settle` and `recalc`).
|
|
630
636
|
*
|
|
631
637
|
* @param fn A function that reads the reactive values to check.
|
|
632
638
|
*/
|
|
@@ -657,7 +663,7 @@ interface RefreshOptions {
|
|
|
657
663
|
* *loud*: `$pending(fn)` returns `true` while the re-fetch is in flight and
|
|
658
664
|
* subscribers are notified at suspend *start*, so an inline "updating…"
|
|
659
665
|
* indicator appears immediately. Readers keep displaying the previous
|
|
660
|
-
* resolved value (`Computed.
|
|
666
|
+
* resolved value (`Computed.settle.value`) until the new promise resolves and
|
|
661
667
|
* propagates through the reactive graph; an `@await` boundary keeps its
|
|
662
668
|
* content mounted instead of flashing fallback.
|
|
663
669
|
*
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/types/Animation.ts","../src/render/addAnimation.ts","../src/render/addEvent.ts","../src/render/addElement.ts","../src/render/addFragment.ts","../src/render/applyProps.ts","../src/render/buildClasses.ts","../src/render/buildStyles.ts","../src/render/clearLayoutSlot.ts","../src/render/fillLayoutSlot.ts","../src/render/formatText.ts","../src/render/firstInsideNode.ts","../src/render/getFragment.ts","../src/render/getElementFragment.ts","../src/render/hydrate.ts","../src/render/mount.ts","../src/render/unmount.ts","../src/types/ListItemSpec.ts","../src/types/ListItem.ts","../src/render/newListItem.ts","../src/render/newRegion.ts","../src/render/nodeAnchor.ts","../src/render/nodeChild.ts","../src/render/nodeNext.ts","../src/render/nodeRootElement.ts","../src/render/nodeRoot.ts","../src/render/nodeSkip.ts","../src/render/popRegion.ts","../src/render/pushRegion.ts","../src/render/rerunRegionEffects.ts","../src/render/restoreHydration.ts","../src/render/runControl.ts","../src/render/runControlBranch.ts","../src/render/runList.ts","../src/render/runAwait.ts","../src/render/runTry.ts","../src/render/saveHydration.ts","../src/render/headElement.ts","../src/render/setAttribute.ts","../src/render/setDynamicElement.ts","../src/types/Bindable.ts","../src/watch/$batch.ts","../src/watch/$async.ts","../src/watch/$bind.ts","../src/watch/$cache.ts","../src/watch/$onmount.ts","../src/watch/$peek.ts","../src/watch/$pending.ts","../src/watch/$refresh.ts","../src/watch/$run.ts","../src/watch/$stream.ts","../src/watch/$unwrap.ts","../src/types/WatchOptions.ts","../src/watch/$watch.ts"],"mappings":";;;;;UAAyB;EACx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;;;;;;;;;;;;;;;;;;;;iBCShC,SAAS,QAAQ,MAAM,iBAAe
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/types/Animation.ts","../src/render/addAnimation.ts","../src/render/addEvent.ts","../src/render/addElement.ts","../src/render/addFragment.ts","../src/render/applyProps.ts","../src/render/buildClasses.ts","../src/render/buildStyles.ts","../src/render/clearLayoutSlot.ts","../src/render/fillLayoutSlot.ts","../src/render/formatText.ts","../src/render/firstInsideNode.ts","../src/render/getFragment.ts","../src/render/getElementFragment.ts","../src/render/hydrate.ts","../src/render/mount.ts","../src/render/unmount.ts","../src/types/ListItemSpec.ts","../src/types/ListItem.ts","../src/render/newListItem.ts","../src/render/newRegion.ts","../src/render/nodeAnchor.ts","../src/render/nodeChild.ts","../src/render/nodeNext.ts","../src/render/nodeRootElement.ts","../src/render/nodeRoot.ts","../src/render/nodeSkip.ts","../src/render/popRegion.ts","../src/render/pushRegion.ts","../src/render/rerunRegionEffects.ts","../src/render/restoreHydration.ts","../src/render/runControl.ts","../src/render/runControlBranch.ts","../src/render/runList.ts","../src/render/runAwait.ts","../src/render/runTry.ts","../src/render/saveHydration.ts","../src/render/headElement.ts","../src/render/setAttribute.ts","../src/render/setDynamicElement.ts","../src/types/Bindable.ts","../src/watch/$batch.ts","../src/watch/$async.ts","../src/watch/$bind.ts","../src/watch/$cache.ts","../src/watch/$onmount.ts","../src/watch/$peek.ts","../src/watch/$pending.ts","../src/watch/$refresh.ts","../src/watch/$run.ts","../src/watch/$stream.ts","../src/watch/$unwrap.ts","../src/types/WatchOptions.ts","../src/watch/$watch.ts"],"mappings":";;;;;UAAyB;EACxB,WAAW,aAAa;EACxB,mBAAmB;;;;iBCCI,aAAa,IAAI,aAAa,QAAQ,WAAW,OAAO;;;iBCDxD,SACvB,IAAI,SACJ,cACA,YAAA,MAAkB,SAAS;;;;;;;;;;;;;;;;;;;;;;iBCkBJ,WAAW,MAAM,SAAS,QAAQ,YAAY,QAAQ;;;iBCnBt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