@torpor/view 1.2.1 → 1.2.3

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/index.cjs CHANGED
@@ -907,6 +907,7 @@ function pushRegion(region, toParent = false) {
907
907
  function fillLayoutSlot(component, slot, parent, anchor, $props, $context) {
908
908
  const region = newRegion(require_devContext.devContext.enabled ? "Layout slot" : void 0);
909
909
  const oldRegion = pushRegion(region, true);
910
+ region.depth = region.previousRegion === null ? 0 : region.previousRegion.depth + 1;
910
911
  component(parent, anchor, $props, $context, { _: slot });
911
912
  popRegion(oldRegion);
912
913
  return region;
@@ -1030,6 +1031,12 @@ function hydrate(parent, component, props, slots) {
1030
1031
  /**
1031
1032
  * Mounts a component into a DOM node
1032
1033
  *
1034
+ * The parent should be connected to the document: delegated events (click,
1035
+ * input, keydown, ...) are handled by a single listener per event type on
1036
+ * `document`, so events raised inside a detached container never reach their
1037
+ * handlers. (`hydrate` mounts into server-rendered markup, which is already
1038
+ * connected.)
1039
+ *
1033
1040
  * @param parent The node to mount the component into
1034
1041
  * @param component The component to mount
1035
1042
  * @param props An object containing component props
@@ -1085,6 +1092,51 @@ function newListItem(data, key, name) {
1085
1092
  };
1086
1093
  }
1087
1094
  //#endregion
1095
+ //#region src/render/branchIndex.ts
1096
+ /**
1097
+ * During hydration, the server writes the index of the branch it rendered for
1098
+ * a control statement (`@if`/`@switch`) into the block's leading branch-break
1099
+ * marker (`<!^2>`). `nodeAnchor` reads that marker while consuming the block's
1100
+ * markers and stashes the index here, keyed by the anchor node it returns —
1101
+ * the same pattern as `firstInsideNode`, since the marker is gone by the time
1102
+ * the index is needed. `runControl` picks the index up from the anchor so
1103
+ * `runControlBranch` can compare it with the branch the client picks: server
1104
+ * and client conditions can legitimately differ (browser-only state, effects
1105
+ * that no-op on the server), and a branch the server rendered but the client
1106
+ * didn't pick must be recreated rather than adopted.
1107
+ */
1108
+ const branchIndexes = /* @__PURE__ */ new WeakMap();
1109
+ function setBranchIndex(anchor, index) {
1110
+ branchIndexes.set(anchor, index);
1111
+ }
1112
+ /**
1113
+ * Takes (and clears) the server-rendered branch index stashed for the given
1114
+ * anchor node, or `undefined` if the anchor wasn't hydrated through a
1115
+ * branch-indexed hydration block.
1116
+ */
1117
+ function takeBranchIndex(anchor) {
1118
+ const index = branchIndexes.get(anchor);
1119
+ if (index !== void 0) branchIndexes.delete(anchor);
1120
+ return index;
1121
+ }
1122
+ const HYDRATION_BREAK_REGEX = /^\^(?:\d+)?$/;
1123
+ /**
1124
+ * Whether a comment node's data is a branch-break marker (`^`, or `^<index>`
1125
+ * when the server recorded the branch it rendered).
1126
+ */
1127
+ function isHydrationBreak(data) {
1128
+ return HYDRATION_BREAK_REGEX.test(data);
1129
+ }
1130
+ /**
1131
+ * The branch index encoded in a `^<index>` branch-break marker, or `undefined`
1132
+ * for a plain `^` marker (e.g. from `@for`, which has no branch index).
1133
+ */
1134
+ function hydrationBreakIndex(data) {
1135
+ if (!data.startsWith("^") || data.length === 1) return;
1136
+ const index = Number(data.slice(1));
1137
+ return Number.isNaN(index) ? void 0 : index;
1138
+ }
1139
+ //#endregion
1088
1140
  //#region src/render/isCommentNode.ts
1089
1141
  function isCommentNode(node) {
1090
1142
  return node.nodeType === 8;
@@ -1105,7 +1157,7 @@ function isTextNode(node) {
1105
1157
  * @returns The next node.
1106
1158
  */
1107
1159
  function nodeCheckHydrationBreak(node) {
1108
- if (node !== null && isCommentNode(node) && node.data === "^") {
1160
+ if (node !== null && isCommentNode(node) && isHydrationBreak(node.data)) {
1109
1161
  let comment = node;
1110
1162
  node = node.nextSibling;
1111
1163
  comment.remove();
@@ -1156,9 +1208,14 @@ function nodeAnchor(node) {
1156
1208
  if (context.hydrationNode !== null) {
1157
1209
  if (isCommentNode(node) && node.data === "[") {
1158
1210
  const startParent = node.parentNode;
1211
+ let branchIndex = void 0;
1212
+ let peek = node.nextSibling;
1213
+ while (peek !== null && isTextNode(peek) && (peek.textContent ?? "").trim() === "") peek = peek.nextSibling;
1214
+ if (peek !== null && isCommentNode(peek) && isHydrationBreak(peek.data)) branchIndex = hydrationBreakIndex(peek.data);
1159
1215
  let currentNode = nodeNext(node);
1160
1216
  node.remove();
1161
- while (currentNode !== null && isCommentNode(currentNode) && currentNode.data === "^") {
1217
+ while (currentNode !== null && isCommentNode(currentNode) && isHydrationBreak(currentNode.data)) {
1218
+ if (branchIndex === void 0) branchIndex = hydrationBreakIndex(currentNode.data);
1162
1219
  const next = currentNode.nextSibling;
1163
1220
  currentNode.remove();
1164
1221
  currentNode = next;
@@ -1179,6 +1236,7 @@ function nodeAnchor(node) {
1179
1236
  const region = context.activeRegion;
1180
1237
  if (region.startNode === null) region.startNode = firstContent ?? endNode;
1181
1238
  setFirstInsideNode(endNode, firstContent);
1239
+ if (branchIndex !== void 0) setBranchIndex(endNode, branchIndex);
1182
1240
  return endNode;
1183
1241
  }
1184
1242
  }
@@ -1232,7 +1290,7 @@ function walkHydrationRoot() {
1232
1290
  let rootNode = context.hydrationNode;
1233
1291
  while (rootNode !== null && isSkippable(rootNode)) {
1234
1292
  const next = rootNode.nextSibling;
1235
- if (isCommentNode(rootNode) && rootNode.data === "^") rootNode.remove();
1293
+ if (isCommentNode(rootNode) && isHydrationBreak(rootNode.data)) rootNode.remove();
1236
1294
  rootNode = next;
1237
1295
  context.hydrationNode = rootNode;
1238
1296
  }
@@ -1247,7 +1305,7 @@ function walkHydrationRoot() {
1247
1305
  }
1248
1306
  function isSkippable(node) {
1249
1307
  if (isTextNode(node) && (node.textContent ?? "").trim() === "") return true;
1250
- if (isCommentNode(node)) return node.data === "^" || node.data === "";
1308
+ if (isCommentNode(node)) return isHydrationBreak(node.data) || node.data === "";
1251
1309
  return false;
1252
1310
  }
1253
1311
  //#endregion
@@ -1428,6 +1486,11 @@ function widenAncestorsAtAnchor(region, anchor) {
1428
1486
  */
1429
1487
  function runControl(region, anchor, create, name) {
1430
1488
  let first = true;
1489
+ if (context.hydrationNode !== null && anchor !== null) {
1490
+ region.ssrBranchAnchor = anchor;
1491
+ const ssrBranchIndex = takeBranchIndex(anchor);
1492
+ if (ssrBranchIndex !== void 0) region.ssrBranchIndex = ssrBranchIndex;
1493
+ }
1431
1494
  const gen = region.generation = (region.generation ?? 0) + 1;
1432
1495
  $run(function runControl() {
1433
1496
  if (region.generation !== gen) return;
@@ -1437,7 +1500,10 @@ function runControl(region, anchor, create, name) {
1437
1500
  create(anchor);
1438
1501
  popRegion(oldRegion);
1439
1502
  widenAncestorsAtAnchor(region, anchor);
1440
- if (context.hydrationNode !== null && anchor !== null) context.hydrationNode = anchor;
1503
+ if (anchor !== null && (context.hydrationNode !== null || region.ssrBranchRecreated === true)) {
1504
+ region.ssrBranchRecreated = void 0;
1505
+ context.hydrationNode = anchor;
1506
+ }
1441
1507
  }, name);
1442
1508
  }
1443
1509
  //#endregion
@@ -1445,6 +1511,17 @@ function runControl(region, anchor, create, name) {
1445
1511
  function runControlBranch(region, oldIndex, index) {
1446
1512
  const recreate = region.recreate;
1447
1513
  if (recreate) region.recreate = false;
1514
+ const anchor = region.ssrBranchAnchor;
1515
+ if (anchor !== void 0) {
1516
+ region.ssrBranchAnchor = void 0;
1517
+ const ssrBranchIndex = region.ssrBranchIndex;
1518
+ region.ssrBranchIndex = void 0;
1519
+ const hydrationNode = context.hydrationNode;
1520
+ if (hydrationNode !== null && (ssrBranchIndex !== void 0 && ssrBranchIndex !== index || ssrBranchIndex === void 0 && hydrationNode === anchor)) {
1521
+ region.ssrBranchRecreated = true;
1522
+ clearServerBranch(region, hydrationNode, anchor);
1523
+ }
1524
+ }
1448
1525
  const firstRender = region.hasRenderedBranch !== true;
1449
1526
  region.hasRenderedBranch = true;
1450
1527
  if (oldIndex === index) {
@@ -1457,6 +1534,38 @@ function runControlBranch(region, oldIndex, index) {
1457
1534
  if (!firstRender && region.nextRegion !== null && region.nextRegion.depth > region.depth) clearRegion(region.nextRegion);
1458
1535
  return true;
1459
1536
  }
1537
+ /**
1538
+ * Clears a server-rendered control branch that the client didn't pick, so the
1539
+ * client's branch renders fresh DOM (hydration is disabled for the render,
1540
+ * which makes `addFragment` insert instead of adopt) and the parent resumes
1541
+ * hydrating at the control's anchor afterwards (see `runControl`).
1542
+ *
1543
+ * No client regions or effects exist for the server's markup — it was never
1544
+ * rendered through the client pipeline — so the nodes can simply be removed.
1545
+ * The nodes span from the first node inside the hydration block (the
1546
+ * hydration cursor) up to (not including) the control's anchor.
1547
+ *
1548
+ * Ancestor regions whose window starts at the removed node are reset to the
1549
+ * anchor: the same shape a mount-time block whose region owns only the anchor
1550
+ * has. `widenAncestorsAtAnchor` widens those to the fresh branch's first node
1551
+ * once the branch has rendered.
1552
+ */
1553
+ function clearServerBranch(region, removedFirst, anchor) {
1554
+ let ancestor = region.previousRegion;
1555
+ let ancestorDepth = region.depth;
1556
+ while (ancestor !== null && ancestor.depth < ancestorDepth) {
1557
+ if (ancestor.startNode === removedFirst) ancestor.startNode = anchor;
1558
+ ancestorDepth = ancestor.depth;
1559
+ ancestor = ancestor.previousRegion;
1560
+ }
1561
+ context.hydrationNode = null;
1562
+ let node = removedFirst;
1563
+ while (node !== null && node !== anchor) {
1564
+ const next = node.nextSibling;
1565
+ node.remove();
1566
+ node = next;
1567
+ }
1568
+ }
1460
1569
  //#endregion
1461
1570
  //#region src/render/checkListKeys.ts
1462
1571
  const warnedByRegion = /* @__PURE__ */ new WeakMap();
@@ -1504,6 +1613,24 @@ function formatKey(key) {
1504
1613
  }
1505
1614
  }
1506
1615
  //#endregion
1616
+ //#region src/render/AwaitSuspend.ts
1617
+ /**
1618
+ * Thrown when content rendered speculatively inside an `@await` boundary
1619
+ * dereferences (or calls) a first-load pending `$async` value.
1620
+ *
1621
+ * `suspendRead` normally returns `staleValue` so refresh suspends can keep
1622
+ * stale content mounted. On a first load there is no stale value, so returning
1623
+ * `undefined` would let user code throw a `TypeError` before the boundary can
1624
+ * switch to its `with` branch. Throwing this sentinel aborts the speculative
1625
+ * render instead; `runAwait` catches it and renders the fallback.
1626
+ */
1627
+ var AwaitSuspend = class extends Error {
1628
+ constructor() {
1629
+ super("Suspended async value");
1630
+ this.name = "AwaitSuspend";
1631
+ }
1632
+ };
1633
+ //#endregion
1507
1634
  //#region src/watch/deepWrap.ts
1508
1635
  /**
1509
1636
  * Wraps a value with `$watch` if it is a plain object (or Date/Map/Set) that
@@ -1623,10 +1750,13 @@ function trackProxySignal(data, key) {
1623
1750
  * (the computed has resolved before) returns the previously resolved value
1624
1751
  * held in `staleValue`, so readers keep displaying the old content instead of
1625
1752
  * a placeholder — an `@await` boundary thus keeps its content mounted
1626
- * rather than flashing the `with` branch. On a first load (`staleValue` is
1627
- * undefined) returns `undefined`, which the boundary replaces with its
1628
- * `with` branch. In peek mode (used by `$pending`) always returns `undefined`
1629
- * — the value isn't needed, only the subscription.
1753
+ * rather than flashing the `with` branch. On a first load (or a retry after a
1754
+ * rejection, both of which have no stale value), inside an `@await` boundary,
1755
+ * throws `AwaitSuspend` to abort the speculative content render so the
1756
+ * boundary can show its `with` branch — a direct `undefined` return would
1757
+ * make user code that dereferences the value throw a `TypeError` first. In
1758
+ * peek mode (used by `$pending`) always returns `undefined` — the value isn't
1759
+ * needed, only the subscription.
1630
1760
  */
1631
1761
  function suspendRead(signal) {
1632
1762
  trackSignal(signal);
@@ -1651,6 +1781,7 @@ function suspendRead(signal) {
1651
1781
  trackSignal(signal);
1652
1782
  context.activeTarget = oldActive;
1653
1783
  }
1784
+ if (!signal.hasResolved || signal.lastErrored) throw new AwaitSuspend();
1654
1785
  }
1655
1786
  return signal.staleValue;
1656
1787
  }
@@ -2338,7 +2469,11 @@ const SERVER_VALUES_PREFIX = "t-await:";
2338
2469
  /**
2339
2470
  * Renders an `@await` boundary. On the first run, content is rendered
2340
2471
  * speculatively; if any read inside suspends (`didSuspend`), the boundary
2341
- * discards the partial render and shows the `with` branch instead.
2472
+ * discards the partial render and shows the `with` branch instead. If the
2473
+ * content dereferences a first-load pending value before the boundary can
2474
+ * check, `suspendRead` throws `AwaitSuspend`; it is caught here so the partial
2475
+ * render is cleared and the fallback is shown instead of surfacing a
2476
+ * `TypeError`.
2342
2477
  *
2343
2478
  * Hydration of a server-resolved boundary (ASYNC.md → "Server rendering"): when the server
2344
2479
  * shipped resolved content, its values ride in a payload comment after the
@@ -2401,8 +2536,11 @@ function runAwait(region, anchor, renderContent, renderWith, name) {
2401
2536
  runControlBranch(region, index, targetIndex);
2402
2537
  context.previousRegion = region;
2403
2538
  const oldR = pushRegion(newRegion(targetIndex === 0 ? "await_content" : "await_with"), true);
2404
- fn(anchor);
2405
- popRegion(oldR);
2539
+ try {
2540
+ fn(anchor);
2541
+ } finally {
2542
+ popRegion(oldR);
2543
+ }
2406
2544
  index = targetIndex;
2407
2545
  };
2408
2546
  const attemptContent = () => {
@@ -2416,12 +2554,23 @@ function runAwait(region, anchor, renderContent, renderWith, name) {
2416
2554
  index: 0
2417
2555
  };
2418
2556
  else if (savedHydration !== null) context.hydrationNode = null;
2419
- renderBranch(0, renderContent);
2420
- context.hydrationNode = savedHydration;
2421
- context.serverValues = savedServerValues;
2422
- context.awaitBoundary = oldBoundary;
2557
+ let aborted = false;
2558
+ try {
2559
+ renderBranch(0, renderContent);
2560
+ } catch (error) {
2561
+ if (!(error instanceof AwaitSuspend)) throw error;
2562
+ aborted = true;
2563
+ index = 0;
2564
+ } finally {
2565
+ context.hydrationNode = savedHydration;
2566
+ context.serverValues = savedServerValues;
2567
+ context.awaitBoundary = oldBoundary;
2568
+ }
2423
2569
  if (boundary.suspended && renderWith !== null) renderBranch(1, renderWith);
2424
- else if (!boundary.suspended) hasContent = true;
2570
+ else if (boundary.suspended && aborted) {
2571
+ runControlBranch(region, index, 1);
2572
+ index = 1;
2573
+ } else if (!boundary.suspended) hasContent = true;
2425
2574
  };
2426
2575
  if (theEffect === null) attemptContent();
2427
2576
  else {
@@ -2579,8 +2728,23 @@ function headElement(tagName, selector) {
2579
2728
  //#endregion
2580
2729
  //#region src/render/setAttribute.ts
2581
2730
  function setAttribute(el, name, value) {
2582
- if (value === false || value === void 0 || value === null) el.removeAttribute(name);
2583
- else el.setAttribute(name, value);
2731
+ if (value === false || value === void 0 || value === null) {
2732
+ el.removeAttribute(name);
2733
+ if (name === "value") setValueProperty(el, "");
2734
+ return;
2735
+ }
2736
+ if (name === "value") {
2737
+ if (setValueProperty(el, String(value))) return;
2738
+ }
2739
+ el.setAttribute(name, value);
2740
+ }
2741
+ /** Sets the `value` property on a form control; returns false for other elements. */
2742
+ function setValueProperty(el, value) {
2743
+ if (el.tagName === "INPUT" || el.tagName === "SELECT" || el.tagName === "TEXTAREA") {
2744
+ el.value = value;
2745
+ return true;
2746
+ }
2747
+ return false;
2584
2748
  }
2585
2749
  //#endregion
2586
2750
  //#region src/render/setDynamicElement.ts
package/dist/index.d.cts CHANGED
@@ -124,6 +124,12 @@ declare function hydrate(parent: ParentNode, component: Component, props?: Recor
124
124
  /**
125
125
  * Mounts a component into a DOM node
126
126
  *
127
+ * The parent should be connected to the document: delegated events (click,
128
+ * input, keydown, ...) are handled by a single listener per event type on
129
+ * `document`, so events raised inside a detached container never reach their
130
+ * handlers. (`hydrate` mounts into server-rendered markup, which is already
131
+ * connected.)
132
+ *
127
133
  * @param parent The node to mount the component into
128
134
  * @param component The component to mount
129
135
  * @param props An object containing component props
@@ -343,7 +349,11 @@ declare function runList(region: Region, parent: ParentNode, anchor: Node | null
343
349
  /**
344
350
  * Renders an `@await` boundary. On the first run, content is rendered
345
351
  * speculatively; if any read inside suspends (`didSuspend`), the boundary
346
- * discards the partial render and shows the `with` branch instead.
352
+ * discards the partial render and shows the `with` branch instead. If the
353
+ * content dereferences a first-load pending value before the boundary can
354
+ * check, `suspendRead` throws `AwaitSuspend`; it is caught here so the partial
355
+ * render is cleared and the fallback is shown instead of surfacing a
356
+ * `TypeError`.
347
357
  *
348
358
  * Hydration of a server-resolved boundary (ASYNC.md → "Server rendering"): when the server
349
359
  * shipped resolved content, its values ride in a payload comment after the
@@ -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/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;;;;;;;;;;;;;;;;;;;;;;iBCiBJ,WAAW,MAAM,SAAS,QAAQ,YAAY,QAAQ;;;iBCnBtD,YACvB,UAAU,kBACV,QAAQ,YACR,QAAQ,aACR,UAAU,WACV,YAAY;;;iBCLW,WACvB,IAAI,SACJ,OAAO,iCACP;;;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QAAQ,GAC/B,QAAQ,aAAa,IACrB,UAAU,OAAO,YACjB;EAAY;;;;;;;;;iBCrCW,QAAQ,UAAU,OAAO,mBAAmB,QAAQ,IAAI;;;;;;UCJvD;;;;EAIxB;;;;;;;;;;;;;iBCoBuB,OAAO,kBAAkB,QAAQ,GAAG,UAAU,eAAe"}
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/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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;;;;;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;;;;;;;;;;;;;iBCoBuB,OAAO,kBAAkB,QAAQ,GAAG,UAAU,eAAe"}
package/dist/index.d.mts CHANGED
@@ -124,6 +124,12 @@ declare function hydrate(parent: ParentNode, component: Component, props?: Recor
124
124
  /**
125
125
  * Mounts a component into a DOM node
126
126
  *
127
+ * The parent should be connected to the document: delegated events (click,
128
+ * input, keydown, ...) are handled by a single listener per event type on
129
+ * `document`, so events raised inside a detached container never reach their
130
+ * handlers. (`hydrate` mounts into server-rendered markup, which is already
131
+ * connected.)
132
+ *
127
133
  * @param parent The node to mount the component into
128
134
  * @param component The component to mount
129
135
  * @param props An object containing component props
@@ -343,7 +349,11 @@ declare function runList(region: Region, parent: ParentNode, anchor: Node | null
343
349
  /**
344
350
  * Renders an `@await` boundary. On the first run, content is rendered
345
351
  * speculatively; if any read inside suspends (`didSuspend`), the boundary
346
- * discards the partial render and shows the `with` branch instead.
352
+ * discards the partial render and shows the `with` branch instead. If the
353
+ * content dereferences a first-load pending value before the boundary can
354
+ * check, `suspendRead` throws `AwaitSuspend`; it is caught here so the partial
355
+ * render is cleared and the fallback is shown instead of surfacing a
356
+ * `TypeError`.
347
357
  *
348
358
  * Hydration of a server-resolved boundary (ASYNC.md → "Server rendering"): when the server
349
359
  * shipped resolved content, its values ride in a payload comment after the
@@ -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/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;;;;;;;;;;;;;;;;;;;;;;iBCiBJ,WAAW,MAAM,SAAS,QAAQ,YAAY,QAAQ;;;iBCnBtD,YACvB,UAAU,kBACV,QAAQ,YACR,QAAQ,aACR,UAAU,WACV,YAAY;;;iBCLW,WACvB,IAAI,SACJ,OAAO,iCACP;;;;;;;;;;iBCKuB,gBAAgB,QAAQ;;;;;;;;;;;;;;;;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;EAAY;;;;;;;;;iBCrCW,QAAQ,UAAU,OAAO,mBAAmB,QAAQ,IAAI;;;;;;UCJvD;;;;EAIxB;;;;;;;;;;;;;iBCoBuB,OAAO,kBAAkB,QAAQ,GAAG,UAAU,eAAe"}
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/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;;;;;;;;;;;;;;;;;;;;;;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