marko 6.4.8 → 6.4.10

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.
Files changed (93) hide show
  1. package/cheatsheet.md +1 -1
  2. package/dist/common/constants/closure-signal-prop.d.ts +1 -1
  3. package/dist/common/constants/closure-signal-prop.debug.d.ts +1 -1
  4. package/dist/debug/dom/catch.feat.js +2 -3
  5. package/dist/debug/dom/catch.feat.mjs +2 -3
  6. package/dist/debug/dom/controllable-input.feat.js +2 -3
  7. package/dist/debug/dom/controllable-input.feat.mjs +2 -3
  8. package/dist/debug/dom/controllable-open.feat.js +2 -3
  9. package/dist/debug/dom/controllable-open.feat.mjs +2 -3
  10. package/dist/debug/dom/controllable-select.feat.js +2 -3
  11. package/dist/debug/dom/controllable-select.feat.mjs +2 -3
  12. package/dist/debug/dom/controllable-textarea.feat.js +2 -3
  13. package/dist/debug/dom/controllable-textarea.feat.mjs +2 -3
  14. package/dist/debug/dom/controllable.feat.js +2 -3
  15. package/dist/debug/dom/controllable.feat.mjs +2 -3
  16. package/dist/debug/dom/dynamic-tag-script.feat.js +2 -3
  17. package/dist/debug/dom/dynamic-tag-script.feat.mjs +2 -3
  18. package/dist/debug/dom/dynamic-tag-var.feat.js +2 -3
  19. package/dist/debug/dom/dynamic-tag-var.feat.mjs +2 -3
  20. package/dist/debug/dom/lazy.feat.js +2 -3
  21. package/dist/debug/dom/lazy.feat.mjs +2 -3
  22. package/dist/debug/dom/placeholder.feat.js +2 -3
  23. package/dist/debug/dom/placeholder.feat.mjs +2 -3
  24. package/dist/debug/{dom-CFCBDift.mjs → dom-C1V5vpFs.mjs} +60 -98
  25. package/dist/debug/{dom-D8znnhpf.js → dom-DNB5yq3U.js} +59 -109
  26. package/dist/debug/dom.js +9 -14
  27. package/dist/debug/dom.mjs +9 -14
  28. package/dist/debug/html.js +39 -51
  29. package/dist/debug/html.mjs +37 -49
  30. package/dist/dom/catch.feat.js +4 -5
  31. package/dist/dom/catch.feat.mjs +2 -3
  32. package/dist/dom/compat.d.ts +1 -1
  33. package/dist/dom/control-flow.d.ts +1 -1
  34. package/dist/dom/controllable-input.feat.js +1 -2
  35. package/dist/dom/controllable-input.feat.mjs +1 -2
  36. package/dist/dom/controllable-open.feat.js +2 -3
  37. package/dist/dom/controllable-open.feat.mjs +2 -3
  38. package/dist/dom/controllable-select.feat.js +2 -3
  39. package/dist/dom/controllable-select.feat.mjs +2 -3
  40. package/dist/dom/controllable-textarea.feat.js +2 -3
  41. package/dist/dom/controllable-textarea.feat.mjs +2 -3
  42. package/dist/dom/controllable.feat.js +1 -2
  43. package/dist/dom/controllable.feat.mjs +1 -2
  44. package/dist/dom/dom.d.ts +2 -3
  45. package/dist/dom/dynamic-tag-script.feat.js +3 -4
  46. package/dist/dom/dynamic-tag-script.feat.mjs +2 -3
  47. package/dist/dom/dynamic-tag-var.feat.js +3 -4
  48. package/dist/dom/dynamic-tag-var.feat.mjs +1 -2
  49. package/dist/dom/lazy.feat.js +2 -3
  50. package/dist/dom/lazy.feat.mjs +2 -3
  51. package/dist/dom/placeholder.feat.js +4 -5
  52. package/dist/dom/placeholder.feat.mjs +2 -3
  53. package/dist/dom/resume.d.ts +1 -1
  54. package/dist/dom/scope.d.ts +1 -1
  55. package/dist/dom/signals.d.ts +1 -1
  56. package/dist/{dom-Bpkm72vV.js → dom-C2-Flitp.js} +122 -166
  57. package/dist/{dom-CVAevsbz.mjs → dom-DsHYWMCR.mjs} +59 -94
  58. package/dist/dom.js +36 -40
  59. package/dist/dom.mjs +9 -14
  60. package/dist/html/serializer.d.ts +1 -1
  61. package/dist/html/writer.d.ts +3 -3
  62. package/dist/html.d.ts +1 -1
  63. package/dist/html.js +60 -74
  64. package/dist/html.mjs +60 -75
  65. package/dist/translator/core/show.d.ts +3 -4
  66. package/dist/translator/index.js +1193 -1295
  67. package/dist/translator/util/assert.d.ts +9 -2
  68. package/dist/translator/util/bindings.d.ts +6 -5
  69. package/dist/translator/util/branch-tag.d.ts +1 -1
  70. package/dist/translator/util/constants/slot-kind.d.ts +1 -1
  71. package/dist/translator/util/known-tag.d.ts +3 -0
  72. package/dist/translator/util/module-registrations.d.ts +1 -1
  73. package/dist/translator/util/optional.d.ts +1 -0
  74. package/dist/translator/util/params-tree.d.ts +3 -3
  75. package/dist/translator/util/reasons.d.ts +2 -2
  76. package/dist/translator/util/references.d.ts +13 -10
  77. package/dist/translator/util/replace-with-statements.d.ts +4 -0
  78. package/dist/translator/util/runtime.d.ts +1 -0
  79. package/dist/translator/util/scope-accessor.d.ts +1 -1
  80. package/dist/translator/util/sections.d.ts +38 -14
  81. package/dist/translator/util/signals.d.ts +3 -11
  82. package/dist/translator/util/slots.d.ts +1 -1
  83. package/dist/translator/util/solve-reasons.d.ts +5 -0
  84. package/dist/translator/util/sources.d.ts +1 -1
  85. package/dist/translator/util/static-text.d.ts +1 -0
  86. package/dist/translator/util/structure.d.ts +3 -2
  87. package/dist/translator/util/tag-import.d.ts +0 -2
  88. package/dist/translator/util/tag-name-type.d.ts +3 -0
  89. package/dist/translator/util/write-guard.d.ts +2 -0
  90. package/dist/translator/visitors/placeholder.d.ts +4 -4
  91. package/package.json +6 -6
  92. package/tags/lifecycle.d.marko +2 -0
  93. package/dist/translator/visitors/constants/sibling-text.d.ts +0 -6
package/dist/html.mjs CHANGED
@@ -282,7 +282,10 @@ let empty = [], rest = Symbol(), unsafeStyleAttrReg = /[\\;]/g, replaceUnsafeSty
282
282
  })(_dynamic_tag), _template = (templateId, renderer, page) => (renderer.render = render, renderer.i = !page, renderer._ = renderer, _content_resume(templateId, renderer)), kAssets = Symbol(), kHead = Symbol(), SET_SCOPE_REGISTER_ID = "$C_s", RENDER_BODY_ID = "$C_b", K_TAGS_API_STATE = Symbol(), COMPAT_REGISTRY = /* @__PURE__ */ new WeakMap(), compat = {
283
283
  $global,
284
284
  writeLoadAsset,
285
- fork: _await,
285
+ fork: ((scopeId, accessor, promise, content) => _await(scopeId, accessor, promise, (value) => {
286
+ let branchId = _peek_scope_id();
287
+ content(value), _peek_scope_id() === branchId && _scope_id();
288
+ })),
286
289
  write: _html,
287
290
  writeScript,
288
291
  nextScopeId: _scope_id,
@@ -422,7 +425,7 @@ let empty = [], rest = Symbol(), unsafeStyleAttrReg = /[\\;]/g, replaceUnsafeSty
422
425
  return !!pendingClassFunctions.get($global)?.length;
423
426
  }
424
427
  }, pendingClassFunctions = /* @__PURE__ */ new WeakMap();
425
- //#region src/common/attr-tag.ts
428
+ // src/common/attr-tag.ts
426
429
  function attrTag(attrs) {
427
430
  return attrs[Symbol.iterator] = attrTagIterator, attrs[rest] = empty, attrs;
428
431
  }
@@ -432,8 +435,7 @@ function attrTags(first, attrs) {
432
435
  function* attrTagIterator() {
433
436
  yield this, yield* this[rest];
434
437
  }
435
- //#endregion
436
- //#region src/common/helpers.ts
438
+ // src/common/helpers.ts
437
439
  function stringifyClassEntry(name, value) {
438
440
  return value ? name : "";
439
441
  }
@@ -474,15 +476,13 @@ function normalizeDynamicRenderer(value) {
474
476
  if ("a" in normalized) return normalized;
475
477
  }
476
478
  }
477
- //#endregion
478
- //#region src/common/errors.ts
479
+ // src/common/errors.ts
479
480
  function _assert_class_toggles(classes, toggles) {}
480
481
  function _el_read_error() {}
481
482
  function _hoist_read_error() {}
482
483
  function _signal_read_error() {}
483
484
  function _assert_hoist(value) {}
484
- //#endregion
485
- //#region src/common/opt.ts
485
+ // src/common/opt.ts
486
486
  function reduce(opt, cb, acc) {
487
487
  if (opt) {
488
488
  if (Array.isArray(opt)) for (let item of opt) acc = cb(acc, item);
@@ -543,7 +543,7 @@ var State$1 = class {
543
543
  if (locals) {
544
544
  this.buf.push(registered.access + "(_(" + scopeId + ")");
545
545
  for (let local of locals) this.buf.push(","), writePlainObject(this, local, newArgReference(this, ref, local));
546
- } else this.buf.push("_(" + scopeId + "," + quoteRegisterId(registered.id));
546
+ } else this.buf.push("_(" + scopeId + "," + quoteRegistryId(registered.id));
547
547
  this.buf.push(")");
548
548
  }
549
549
  }, Reference = class {
@@ -701,7 +701,7 @@ function newScopeReference(state, val, scopeId) {
701
701
  let ref = new Reference(null, null, state.flushId);
702
702
  return ref.scopeId = scopeId, ref.channel = state.channel, state.refs.set(val, ref), ref;
703
703
  }
704
- function quoteRegisterId(id) {
704
+ function quoteRegistryId(id) {
705
705
  return "\"" + id + "\"";
706
706
  }
707
707
  function writeRegistered(state, val, parent, accessor, registered) {
@@ -1275,8 +1275,7 @@ function patchIteratorNext(proto) {
1275
1275
  return this[kTouchedIterator] = 1, next.call(this, value);
1276
1276
  }, proto.next[kTouchedIterator] = !0;
1277
1277
  }
1278
- //#endregion
1279
- //#region src/html/attrs.ts
1278
+ // src/html/attrs.ts
1280
1279
  function _attr_class(value) {
1281
1280
  return stringAttr("class", toDelimitedString(value, " ", stringifyClassEntry));
1282
1281
  }
@@ -1432,10 +1431,8 @@ function normalizedValueMatches(a, b) {
1432
1431
  function normalizeStrAttrValue(value) {
1433
1432
  return isNotNullishOrFalse(value) && value !== !0 ? value + "" : "";
1434
1433
  }
1435
- //#endregion
1436
- //#region src/html/inlined-runtimes.ts
1437
- //#endregion
1438
- //#region src/html/writer.ts
1434
+ // src/html/inlined-runtimes.ts
1435
+ // src/html/writer.ts
1439
1436
  function getChunk() {
1440
1437
  return $chunk;
1441
1438
  }
@@ -1534,15 +1531,15 @@ function _hoist(scopeId, id) {
1534
1531
  let getter = () => void 0;
1535
1532
  return getter[Symbol.iterator] = _hoist_read_error, _resume(getter, id, scopeId);
1536
1533
  }
1537
- function _el_resume(scopeId, accessor, markerGuard) {
1534
+ function _el_mark(scopeId, accessor, markerGuard) {
1538
1535
  if (markerGuard === 0) return "";
1539
1536
  let { state } = $chunk.boundary;
1540
1537
  return state.needsWalkerRuntime = !0, state.mark("$", scopeId + " " + accessor);
1541
1538
  }
1542
- function _text_resume(scopeId, accessor, val, markerGuard) {
1539
+ function _text_mark(scopeId, accessor, val, markerGuard) {
1543
1540
  return markText(scopeId, accessor, _escape(val), markerGuard);
1544
1541
  }
1545
- function _html_resume(scopeId, accessor, val, markerGuard) {
1542
+ function _html_mark(scopeId, accessor, val, markerGuard) {
1546
1543
  let html = _unescaped(val);
1547
1544
  if (markerGuard === 0 || !~html.indexOf("<")) return markText(scopeId, accessor, html, markerGuard);
1548
1545
  let { state } = $chunk.boundary;
@@ -1897,9 +1894,9 @@ var State = class {
1897
1894
  let { channel } = this, { readyId } = channel, scripts = "", held = this.takeDeferredReady();
1898
1895
  if (held) for (let chunk of Array.isArray(held) ? held : [held]) chunk.boundary.aborted || (scripts = concatScripts(scripts, chunk.flushReadyScripts(boundary, reservations, holdEffects)), (chunk.effects || chunk.deferredReady) && (this.deferredReady = push(this.deferredReady, chunk)));
1899
1896
  if (readyId && !this.async) {
1900
- let { state } = boundary;
1901
- flushSerializer(boundary, channel);
1902
- let deps = takeChannelDeps(state.serializer), effects = holdEffects ? "" : this.effects, { resumes } = channel, chunkScripts = this.scripts;
1897
+ let { state } = boundary, effects = holdEffects ? "" : this.effects;
1898
+ effects && flushSerializerGlobals(boundary), flushSerializer(boundary, channel);
1899
+ let deps = takeChannelDeps(state.serializer), { resumes } = channel, chunkScripts = this.scripts;
1903
1900
  if (channel.resumes = this.scripts = "", effects && (this.effects = this.lastEffect = ""), resumes || effects) {
1904
1901
  state.needsWalkerRuntime = !0;
1905
1902
  let batch = concatSequence(depsMarker(deps), concatSequence(resumes, effects && `"${effects}"`));
@@ -1922,7 +1919,7 @@ var State = class {
1922
1919
  }
1923
1920
  readyResumeScripts && (needsWalk = !0);
1924
1921
  let effects = this.async ? "" : joinHeldEffects(this.takeHeldEffects(), this.effects), { html, scripts } = this;
1925
- html && state.hasReorderRuntime && (html = state.mark("*", "") + html), state.needsWalkerRuntime && !state.hasWalkerRuntime && (state.hasWalkerRuntime = !0, scripts = concatScripts(scripts, state.runtimeScript())), scripts = concatScripts(scripts, readyResumeScripts), effects && (needsWalk = !0, state.resumes = state.resumes ? state.resumes + ",\"" + effects + "\"" : "\"" + effects + "\"");
1922
+ html && state.hasReorderRuntime && (html = state.mark("*", "") + html), state.needsWalkerRuntime && !state.hasWalkerRuntime && (state.hasWalkerRuntime = !0, scripts = concatScripts(scripts, state.runtimeScript())), scripts = concatScripts(scripts, readyResumeScripts), effects && (needsWalk = !0, flushSerializerGlobals(boundary), state.resumes = state.resumes ? state.resumes + ",\"" + effects + "\"" : "\"" + effects + "\"");
1926
1923
  let reordered = "", needsResumeArray = !1;
1927
1924
  if (state.writeReorders) {
1928
1925
  for (let reorderedChunk of state.writeReorders) {
@@ -2012,12 +2009,15 @@ function flushSerializer(boundary, channel) {
2012
2009
  props
2013
2010
  ]);
2014
2011
  }
2015
- (flushes.length || pending) && (channel.readyId && !state.hasWrittenGlobals && flushSerializerGlobals(boundary), state.addResumes(channel, stringifyScopes(serializer, flushes, boundary, channel))), channel.writeScopes = {}, channel.flushScopes = !1, pending && (state.walkOnNextFlush = !0);
2012
+ (flushes.length || pending) && (channel.readyId && flushSerializerGlobals(boundary), state.addResumes(channel, stringifyScopes(serializer, flushes, boundary, channel))), channel.writeScopes = {}, channel.flushScopes = !1, pending && (state.walkOnNextFlush = !0);
2016
2013
  }
2017
2014
  }
2018
2015
  function flushSerializerGlobals(boundary) {
2019
- let { state } = boundary, globals = getFilteredGlobals(state.$global);
2020
- globals && (state.hasWrittenGlobals = !0, state.needsWalkerRuntime = !0, state.resumes = concatSequence(state.resumes, stringifyScopes(state.serializer, [[
2016
+ let { state } = boundary;
2017
+ if (state.hasWrittenGlobals) return;
2018
+ state.hasWrittenGlobals = !0;
2019
+ let globals = getFilteredGlobals(state.$global);
2020
+ globals && (state.needsWalkerRuntime = !0, state.resumes = concatSequence(state.resumes, stringifyScopes(state.serializer, [[
2021
2021
  0,
2022
2022
  globals,
2023
2023
  globals
@@ -2072,8 +2072,7 @@ function flushTickQueue() {
2072
2072
  });
2073
2073
  }
2074
2074
  }
2075
- //#endregion
2076
- //#region src/html/content.ts
2075
+ // src/html/content.ts
2077
2076
  function _to_text(val) {
2078
2077
  return val || val === 0 ? val + "" : "";
2079
2078
  }
@@ -2098,16 +2097,14 @@ function escapeCommentStr(str) {
2098
2097
  function _escape_comment(val) {
2099
2098
  return val ? escapeCommentStr(val + "") : val === 0 ? "0" : "";
2100
2099
  }
2101
- //#endregion
2102
- //#region src/html/dynamic-tag.ts
2100
+ // src/html/dynamic-tag.ts
2103
2101
  function _content(id, fn, scopeId) {
2104
2102
  return fn.a = id, fn.e = scopeId, fn;
2105
2103
  }
2106
2104
  function _content_resume(id, fn, scopeId, locals) {
2107
2105
  return _resume(_content(id, fn, scopeId), id, scopeId, locals);
2108
2106
  }
2109
- //#endregion
2110
- //#region src/html/template.ts
2107
+ // src/html/template.ts
2111
2108
  function render(input = {}) {
2112
2109
  return startRender(this, input, State);
2113
2110
  }
@@ -2253,30 +2250,29 @@ var ServerRendered = class {
2253
2250
  return;
2254
2251
  }
2255
2252
  let { boundary } = head, onNext = boundary.onNext = (write) => {
2256
- if (flushing) {
2257
- again = !0;
2258
- return;
2259
- }
2260
- flushing = !0;
2261
- do {
2262
- again = !1;
2263
- let status = boundary.flush();
2264
- if (status === 2) {
2265
- tick || offTick(onNext), settle(boundary), onAbort(boundary.reason);
2266
- return;
2267
- }
2268
- if (write || status === 0) {
2269
- if (head = head.consume(boundary), boundary.aborted) continue;
2270
- let html = head.flushHTML(boundary);
2271
- if (boundary.aborted) continue;
2272
- if (html && onWrite(html), !boundary.count) {
2273
- tick || offTick(onNext), settle(boundary), onClose();
2253
+ if (flushing) again = !0;
2254
+ else {
2255
+ flushing = !0;
2256
+ do {
2257
+ again = !1;
2258
+ let status = boundary.flush();
2259
+ if (status === 2) {
2260
+ tick || offTick(onNext), settle(boundary), onAbort(boundary.reason);
2274
2261
  return;
2275
2262
  }
2276
- write && (tick = !0);
2277
- } else tick && (tick = !1, queueTick(onNext));
2278
- } while (again);
2279
- flushing = !1;
2263
+ if (write || status === 0) {
2264
+ if (head = head.consume(boundary), boundary.aborted) continue;
2265
+ let html = head.flushHTML(boundary);
2266
+ if (boundary.aborted) continue;
2267
+ if (html && onWrite(html), !boundary.count) {
2268
+ tick || offTick(onNext), settle(boundary), onClose();
2269
+ return;
2270
+ }
2271
+ write && (tick = !0);
2272
+ } else tick && (tick = !1, queueTick(onNext));
2273
+ } while (again);
2274
+ flushing = !1;
2275
+ }
2280
2276
  };
2281
2277
  return onNext(), boundary;
2282
2278
  }
@@ -2292,8 +2288,7 @@ function settle(boundary) {
2292
2288
  boundary.onNext = NOOP$1, boundary.state.$global.signal?.removeEventListener("abort", boundary);
2293
2289
  }
2294
2290
  function NOOP$1() {}
2295
- //#endregion
2296
- //#region src/html/assets.ts
2291
+ // src/html/assets.ts
2297
2292
  function withLoadAssets(template, id, flush, assetId, triggers) {
2298
2293
  let renderer = (input) => (writeLoadAsset(assetId, flush, triggers), writeWaitReady(assetId, template(), input));
2299
2294
  return _template(id, renderer), renderer;
@@ -2374,10 +2369,8 @@ function toObjectExpression(options) {
2374
2369
  for (let key in options) Object.hasOwn(options, key) && (result += sep + toObjectKey(key) + ":" + JSON.stringify(options[key]), sep = ",");
2375
2370
  return result + "}";
2376
2371
  }
2377
- //#endregion
2378
- //#region src/common/compat-meta.ts
2379
- //#endregion
2380
- //#region src/common/for.ts
2372
+ // src/common/compat-meta.ts
2373
+ // src/common/for.ts
2381
2374
  function forIn(obj, cb) {
2382
2375
  for (let key in obj) cb(key, obj[key]);
2383
2376
  }
@@ -2395,8 +2388,7 @@ function forUntil(until, from, step, cb) {
2395
2388
  let start = from || 0, delta = step || 1;
2396
2389
  for (let steps = (until - start) / delta, i = 0; i < steps; i++) cb(start + i * delta);
2397
2390
  }
2398
- //#endregion
2399
- //#region src/html/for.ts
2391
+ // src/html/for.ts
2400
2392
  function forOfBy(by, item, index) {
2401
2393
  return by ? typeof by == "string" ? item[by] : by(item, index) : index;
2402
2394
  }
@@ -2406,8 +2398,7 @@ function forInBy(by, name, value) {
2406
2398
  function forStepBy(by, index) {
2407
2399
  return by ? by(index) : index;
2408
2400
  }
2409
- //#endregion
2410
- //#region src/html/control-flow.ts
2401
+ // src/html/control-flow.ts
2411
2402
  function _show_start(display, markerGuard, branchExprGuard, parentEndTag) {
2412
2403
  display ? resumesMarker(markerGuard, branchExprGuard, parentEndTag) && $chunk.writeHTML($chunk.boundary.state.mark("[", "")) : $chunk.writeHTML("<t hidden>");
2413
2404
  }
@@ -2484,7 +2475,7 @@ function writeBranchEnd(scopeId, accessor, branchExprGuard, markerGuard, parentE
2484
2475
  if (resumesMarker(markerGuard, branchExprGuard, parentEndTag)) {
2485
2476
  let { state } = $chunk.boundary, mark = singleNode ? state.mark(parentEndTag ? "}" : "|", scopeId + " " + accessor + (branchIds || "")) : state.mark(parentEndTag ? ")" : "]", scopeId + " " + accessor + (branchIds || ""));
2486
2477
  $chunk.writeHTML(mark + endTag);
2487
- } else markerGuard === 0 ? $chunk.writeHTML(endTag) : $chunk.writeHTML(endTag + _el_resume(scopeId, accessor));
2478
+ } else markerGuard === 0 ? $chunk.writeHTML(endTag) : $chunk.writeHTML(endTag + _el_mark(scopeId, accessor));
2488
2479
  }
2489
2480
  function _await(scopeId, accessor, promise, content, markerGuard) {
2490
2481
  let resumeMarker = markerGuard !== 0;
@@ -2519,17 +2510,13 @@ function _try(scopeId, accessor, content, placeholderContent, catchContent, plac
2519
2510
  }
2520
2511
  function tryPlaceholder(content, placeholder, branchId, scopeId, placeholderBranchId) {
2521
2512
  let chunk = $chunk, { boundary } = chunk, body = chunk.fork(boundary, null);
2522
- if (body === body.render(content)) {
2523
- chunk.append(body);
2524
- return;
2525
- }
2526
- chunk.next = chunk.forkRest(boundary), captureContext(chunk), chunk.placeholder = {
2513
+ body === body.render(content) ? chunk.append(body) : (chunk.next = chunk.forkRest(boundary), captureContext(chunk), chunk.placeholder = {
2527
2514
  body,
2528
2515
  render: placeholder,
2529
2516
  branchId,
2530
2517
  scopeId,
2531
2518
  placeholderBranchId
2532
- };
2519
+ });
2533
2520
  }
2534
2521
  function tryBoundary(content, catchContent, branchId, renderers) {
2535
2522
  let chunk = $chunk, { boundary } = chunk, { state } = boundary, bodyBoundary = new Boundary(state, void 0, boundary);
@@ -2582,8 +2569,7 @@ function writeTryRenderers(branchId, catchContent, placeholderContent) {
2582
2569
  Q: placeholderContent
2583
2570
  });
2584
2571
  }
2585
- //#endregion
2586
- //#region src/html/compat.ts
2572
+ // src/html/compat.ts
2587
2573
  function drainClassFunctions($global, writeScope) {
2588
2574
  let pending = pendingClassFunctions.get($global), scopeByHost = {};
2589
2575
  for (let [id, fn, hostId] of pending) register(id, fn, scopeByHost[hostId] ||= writeScope(hostId));
@@ -2594,5 +2580,4 @@ function swapReorders(state, reorders) {
2594
2580
  return state.writeReorders = reorders, writeReorders;
2595
2581
  }
2596
2582
  function NOOP() {}
2597
- //#endregion
2598
- export { $global, _assert_class_toggles, _assert_hoist, _attr, _attr_and, _attr_class, _attr_content, _attr_details_or_dialog_open as _attr_details_open, _attr_details_or_dialog_open as _attr_dialog_open, _attr_input_checked, _attr_input_checkedValue, _attr_input_value, _attr_nonce, _attr_nullish, _attr_option_value, _attr_or, _attr_select_value, _attr_style, _attr_textarea_value, _attrs, _attrs_content, _attrs_partial, _attrs_partial_content, _attrs_select_value, _attrs_textarea_value, _await, _content, _content_resume, _dynamic_tag, _el, _el_read_error, _el_resume, _escape, _escape_comment, _escape_script, _escape_style, _escape_style_value, _existing_scope, _flush_head, _for_in, _for_of, _for_to, _for_until, _hoist, _hoist_read_error, _html, _html_resume, _id, _if, _peek_scope_id, _resume, _resume_branch, _resume_locals, writeScope as _scope, _scope_id, _scope_reason, _scope_with_id, _script, _set_scope_reason, _show_end, _show_start, _signal_read_error, _style_html, _subscribe, _template, _text_resume, _textarea_value, _to_text, _trailers, _try, _unescaped, _var, _write_guard, _write_if, attrTag, attrTags, compat, forIn, forOf, forTo, forUntil, withLoadAssets, withPageAssets };
2583
+ export { $global, _assert_class_toggles, _assert_hoist, _attr, _attr_and, _attr_class, _attr_content, _attr_details_or_dialog_open as _attr_details_open, _attr_details_or_dialog_open as _attr_dialog_open, _attr_input_checked, _attr_input_checkedValue, _attr_input_value, _attr_nonce, _attr_nullish, _attr_option_value, _attr_or, _attr_select_value, _attr_style, _attr_textarea_value, _attrs, _attrs_content, _attrs_partial, _attrs_partial_content, _attrs_select_value, _attrs_textarea_value, _await, _content, _content_resume, _dynamic_tag, _el, _el_mark, _el_read_error, _escape, _escape_comment, _escape_script, _escape_style, _escape_style_value, _existing_scope, _flush_head, _for_in, _for_of, _for_to, _for_until, _hoist, _hoist_read_error, _html, _html_mark, _id, _if, _peek_scope_id, _resume, _resume_branch, _resume_locals, writeScope as _scope, _scope_id, _scope_reason, _scope_with_id, _script, _set_scope_reason, _show_end, _show_start, _signal_read_error, _style_html, _subscribe, _template, _text_mark, _textarea_value, _to_text, _trailers, _try, _unescaped, _var, _write_guard, _write_if, attrTag, attrTags, compat, forIn, forOf, forTo, forUntil, withLoadAssets, withPageAssets };
@@ -1,15 +1,14 @@
1
1
  import { type Tag } from "@marko/compiler/babel-utils";
2
2
  import { type Binding } from "../util/bindings";
3
+ import { type Section } from "../util/sections";
3
4
  declare const kStartBinding: unique symbol;
4
- declare const kEndBinding: unique symbol;
5
5
  declare const kStaticDisplay: unique symbol;
6
- declare const kSingleNodeBody: unique symbol;
6
+ declare const kBodyContent: unique symbol;
7
7
  declare module "@marko/compiler/dist/types" {
8
8
  interface MarkoTagExtra {
9
9
  [kStartBinding]?: Binding;
10
- [kEndBinding]?: Binding;
11
10
  [kStaticDisplay]?: boolean;
12
- [kSingleNodeBody]?: boolean;
11
+ [kBodyContent]?: Section["content"];
13
12
  }
14
13
  }
15
14
  declare const _default: Tag;