marko 6.4.16 → 6.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/cheatsheet.md +12 -1
  2. package/dist/debug/dom/catch.feat.js +2 -2
  3. package/dist/debug/dom/catch.feat.mjs +2 -2
  4. package/dist/debug/dom/compat.feat.js +1 -1
  5. package/dist/debug/dom/compat.feat.mjs +1 -1
  6. package/dist/debug/dom/controllable-input.feat.js +1 -1
  7. package/dist/debug/dom/controllable-input.feat.mjs +1 -1
  8. package/dist/debug/dom/controllable-open.feat.js +1 -1
  9. package/dist/debug/dom/controllable-open.feat.mjs +1 -1
  10. package/dist/debug/dom/controllable-select.feat.js +1 -1
  11. package/dist/debug/dom/controllable-select.feat.mjs +1 -1
  12. package/dist/debug/dom/controllable-textarea.feat.js +1 -1
  13. package/dist/debug/dom/controllable-textarea.feat.mjs +1 -1
  14. package/dist/debug/dom/controllable.feat.js +1 -1
  15. package/dist/debug/dom/controllable.feat.mjs +1 -1
  16. package/dist/debug/dom/dynamic-tag-script.feat.js +1 -1
  17. package/dist/debug/dom/dynamic-tag-script.feat.mjs +1 -1
  18. package/dist/debug/dom/dynamic-tag-var.feat.js +1 -1
  19. package/dist/debug/dom/dynamic-tag-var.feat.mjs +1 -1
  20. package/dist/debug/dom/lazy.feat.js +1 -1
  21. package/dist/debug/dom/lazy.feat.mjs +1 -1
  22. package/dist/debug/dom/placeholder.feat.js +1 -1
  23. package/dist/debug/dom/placeholder.feat.mjs +1 -1
  24. package/dist/debug/{dom-DlBA4dCe.mjs → dom-4AzxJQHb.mjs} +16 -16
  25. package/dist/debug/{dom-BLoTKI2r.js → dom-Uu_OCdvg.js} +21 -21
  26. package/dist/debug/dom.js +1 -1
  27. package/dist/debug/dom.mjs +1 -1
  28. package/dist/debug/html/compat.feat.js +1 -1
  29. package/dist/debug/html/compat.feat.mjs +1 -1
  30. package/dist/debug/{html-DM7X2D_b.mjs → html-Bfl3MJP9.mjs} +27 -24
  31. package/dist/debug/{html-Du0z056z.js → html-shBfuhlc.js} +27 -24
  32. package/dist/debug/html.js +1 -1
  33. package/dist/debug/html.mjs +1 -1
  34. package/dist/dom/catch.feat.js +3 -3
  35. package/dist/dom/catch.feat.mjs +2 -2
  36. package/dist/dom/compat.feat.js +1 -1
  37. package/dist/dom/compat.feat.mjs +1 -1
  38. package/dist/dom/control-flow.d.ts +8 -8
  39. package/dist/dom/controllable-input.feat.js +1 -1
  40. package/dist/dom/controllable-input.feat.mjs +1 -1
  41. package/dist/dom/controllable-open.feat.js +1 -1
  42. package/dist/dom/controllable-open.feat.mjs +1 -1
  43. package/dist/dom/controllable-select.feat.js +1 -1
  44. package/dist/dom/controllable-select.feat.mjs +1 -1
  45. package/dist/dom/controllable-textarea.feat.js +1 -1
  46. package/dist/dom/controllable-textarea.feat.mjs +1 -1
  47. package/dist/dom/controllable.feat.js +1 -1
  48. package/dist/dom/controllable.feat.mjs +1 -1
  49. package/dist/dom/dynamic-tag-script.feat.js +1 -1
  50. package/dist/dom/dynamic-tag-script.feat.mjs +1 -1
  51. package/dist/dom/dynamic-tag-var.feat.js +1 -1
  52. package/dist/dom/dynamic-tag-var.feat.mjs +1 -1
  53. package/dist/dom/lazy.feat.js +1 -1
  54. package/dist/dom/lazy.feat.mjs +1 -1
  55. package/dist/dom/placeholder.feat.js +1 -1
  56. package/dist/dom/placeholder.feat.mjs +1 -1
  57. package/dist/{dom-BRtFOIF-.js → dom-BdJeggv5.js} +14 -14
  58. package/dist/{dom-Cqajrs_w.mjs → dom-DJrZXgdr.mjs} +13 -13
  59. package/dist/dom.js +2 -2
  60. package/dist/dom.mjs +1 -1
  61. package/dist/html/compat.feat.js +1 -1
  62. package/dist/html/compat.feat.mjs +1 -1
  63. package/dist/html/writer.d.ts +0 -1
  64. package/dist/{html-C3dQGQ2x.mjs → html-BD-y50wS.mjs} +25 -22
  65. package/dist/{html-4A3vJpIT.js → html-aFBpTKdf.js} +25 -22
  66. package/dist/html.js +1 -1
  67. package/dist/html.mjs +1 -1
  68. package/dist/translator/core/define.d.ts +6 -0
  69. package/dist/translator/core/if.d.ts +1 -1
  70. package/dist/translator/core/show.d.ts +3 -4
  71. package/dist/translator/index.js +3880 -3971
  72. package/dist/translator/util/assert.d.ts +0 -8
  73. package/dist/translator/util/bindings.d.ts +15 -8
  74. package/dist/translator/util/branch-tag.d.ts +1 -1
  75. package/dist/translator/util/cyclic-memo.d.ts +0 -1
  76. package/dist/translator/util/entry-builder.d.ts +2 -3
  77. package/dist/translator/util/finalize-references.d.ts +0 -1
  78. package/dist/translator/util/for-selector.d.ts +0 -1
  79. package/dist/translator/util/get-root.d.ts +3 -1
  80. package/dist/translator/util/module-registrations.d.ts +1 -0
  81. package/dist/translator/util/nested-attribute-tags.d.ts +4 -5
  82. package/dist/translator/util/optional.d.ts +7 -6
  83. package/dist/translator/util/params-tree.d.ts +1 -1
  84. package/dist/translator/util/reasons.d.ts +1 -2
  85. package/dist/translator/util/references.d.ts +6 -5
  86. package/dist/translator/util/sections.d.ts +8 -2
  87. package/dist/translator/util/signals.d.ts +1 -1
  88. package/dist/translator/util/slots.d.ts +1 -2
  89. package/dist/translator/util/solve-reasons.d.ts +2 -2
  90. package/dist/translator/util/state.d.ts +2 -2
  91. package/dist/translator/util/structure.d.ts +1 -0
  92. package/dist/translator/util/to-property-name.d.ts +0 -2
  93. package/dist/translator/util/visitors.d.ts +2 -2
  94. package/dist/translator/util/writer.d.ts +2 -2
  95. package/dist/translator/visitors/tag/native-tag.d.ts +2 -0
  96. package/index.d.ts +11 -0
  97. package/package.json +4 -4
@@ -1,4 +1,4 @@
1
- let unsafeStyleAttrReg = /[\\;]/g, replaceUnsafeStyleAttr = (c) => c === ";" ? "\\3B " : "\\\\", classAPIRenderer, K_SCOPE_ID = Symbol("Scope ID"), kTouchedIterator = /* @__PURE__ */ Symbol.for("marko.touchedIterator"), { hasOwnProperty } = {}, objectProto = Object.prototype, arrayProto = Array.prototype, Generator = (/* @__PURE__ */ (function* () {})()).constructor, AsyncGenerator = (/* @__PURE__ */ (async function* () {})()).constructor, REGISTRY = /* @__PURE__ */ new WeakMap(), KNOWN_SYMBOLS = /* @__PURE__ */ (() => {
1
+ let unsafeStyleAttrReg = /[\\;]/g, replaceUnsafeStyleAttr = (c) => c === ";" ? "\\3B " : "\\\\", classAPIRenderer, K_SCOPE_ID = Symbol("Scope ID"), { hasOwnProperty } = {}, objectProto = Object.prototype, arrayProto = Array.prototype, Generator = (/* @__PURE__ */ (function* () {})()).constructor, AsyncGenerator = (/* @__PURE__ */ (async function* () {})()).constructor, kTouchedIterator = /* @__PURE__ */ patchIteratorsNext(), REGISTRY = /* @__PURE__ */ new WeakMap(), KNOWN_SYMBOLS = /* @__PURE__ */ (() => {
2
2
  let KNOWN_SYMBOLS = /* @__PURE__ */ new Map();
3
3
  for (let name of Object.getOwnPropertyNames(Symbol)) {
4
4
  let symbol = Symbol[name];
@@ -324,7 +324,7 @@ function concat(opt, other) {
324
324
  }
325
325
  return Array.isArray(other) ? [opt, ...other] : [opt, other];
326
326
  }
327
- patchIteratorNext(Generator.prototype), patchIteratorNext(AsyncGenerator.prototype);
327
+ // src/html/serializer.ts
328
328
  var State$1 = class {
329
329
  ids = 0;
330
330
  flushId = 0;
@@ -1078,12 +1078,16 @@ function hasOnlyZeros(typedArray) {
1078
1078
  for (let i = 0; i < typedArray.length; i++) if (typedArray[i] !== zero) return !1;
1079
1079
  return !0;
1080
1080
  }
1081
- function patchIteratorNext(proto) {
1082
- if (proto.next[kTouchedIterator]) return;
1081
+ function patchIteratorsNext() {
1082
+ let key = Symbol.for("marko.touchedIterator");
1083
+ return patchIteratorNext(Generator.prototype, key), patchIteratorNext(AsyncGenerator.prototype, key), key;
1084
+ }
1085
+ function patchIteratorNext(proto, key) {
1086
+ if (proto.next[key]) return;
1083
1087
  let { next } = proto;
1084
1088
  proto.next = function(value) {
1085
- return this[kTouchedIterator] = 1, next.call(this, value);
1086
- }, proto.next[kTouchedIterator] = !0;
1089
+ return this[key] = 1, next.call(this, value);
1090
+ }, proto.next[key] = !0;
1087
1091
  }
1088
1092
  // src/html/attrs.ts
1089
1093
  function _attr_class(value) {
@@ -1503,20 +1507,6 @@ var State = class {
1503
1507
  serializeFlush(boundary) {
1504
1508
  flushSerializer(boundary, this);
1505
1509
  }
1506
- getSerializedGlobals() {
1507
- let { $global } = this, serializedGlobals = $global.serializedGlobals;
1508
- if (!serializedGlobals) return 0;
1509
- let filtered = 0;
1510
- if (Array.isArray(serializedGlobals)) for (let key of serializedGlobals) {
1511
- let value = $global[key];
1512
- value !== void 0 && ((filtered ||= {})[key] = value);
1513
- }
1514
- else for (let key in serializedGlobals) if (serializedGlobals[key]) {
1515
- let value = $global[key];
1516
- value !== void 0 && ((filtered ||= {})[key] = value);
1517
- }
1518
- return filtered;
1519
- }
1520
1510
  runtimeScript() {
1521
1511
  return "(e=>(self[e]||=(l,f=e+l,s=f.length,a={},d=[],t=document,n=t.createTreeWalker(t,129))=>t=self[e][l]={i:f,l:a,v:d,x(){},w(e,l,r){for(;e=n.nextNode();)t.x(l=(l=e.data)&&!l.indexOf(f)&&(r=l.slice(s+1),(l=l[s])>\"#\"||(a[r]=e),l),r,e),l>\"#\"&&d.push(e);n.currentNode=document.currentScript}},self[e]))(\"" + this.$global.runtimeId + "\")(\"" + this.$global.renderId + "\")";
1522
1512
  }
@@ -1819,7 +1809,7 @@ function flushSerializer(boundary, channel) {
1819
1809
  }
1820
1810
  if (!channel.readyId && !state.hasWrittenGlobals) {
1821
1811
  state.hasWrittenGlobals = !0;
1822
- let globals = state.getSerializedGlobals();
1812
+ let globals = getFilteredGlobals(state.$global);
1823
1813
  globals && flushes.push([
1824
1814
  0,
1825
1815
  globals,
@@ -1841,7 +1831,7 @@ function flushSerializerGlobals(boundary) {
1841
1831
  let { state } = boundary;
1842
1832
  if (state.hasWrittenGlobals) return;
1843
1833
  state.hasWrittenGlobals = !0;
1844
- let globals = state.getSerializedGlobals();
1834
+ let globals = getFilteredGlobals(state.$global);
1845
1835
  globals && (state.needsWalkerRuntime = !0, state.resumes = concatSequence(state.resumes, stringifyScopes(state.serializer, [[
1846
1836
  0,
1847
1837
  globals,
@@ -1856,6 +1846,19 @@ function readyBatch(state, channel, deps, resumes) {
1856
1846
  }
1857
1847
  return resumes && own[readyId]++, concatSequence(wait && wait + "}", resumes);
1858
1848
  }
1849
+ function getFilteredGlobals($global) {
1850
+ let serializedGlobals = $global.serializedGlobals, filtered = $global.cspNonce ? { cspNonce: $global.cspNonce } : 0;
1851
+ if (!serializedGlobals) return filtered;
1852
+ if (Array.isArray(serializedGlobals)) for (let key of serializedGlobals) {
1853
+ let value = $global[key];
1854
+ value !== void 0 && ((filtered ||= {})[key] = value);
1855
+ }
1856
+ else for (let key in serializedGlobals) if (serializedGlobals[key]) {
1857
+ let value = $global[key];
1858
+ value !== void 0 && ((filtered ||= {})[key] = value);
1859
+ }
1860
+ return filtered;
1861
+ }
1859
1862
  function concatEffects(a, b) {
1860
1863
  return a ? b ? a + " " + b : a : b;
1861
1864
  }
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- let unsafeStyleAttrReg = /[\\;]/g, replaceUnsafeStyleAttr = (c) => c === ";" ? "\\3B " : "\\\\", classAPIRenderer, K_SCOPE_ID = Symbol("Scope ID"), kTouchedIterator = /* @__PURE__ */ Symbol.for("marko.touchedIterator"), { hasOwnProperty } = {}, objectProto = Object.prototype, arrayProto = Array.prototype, Generator = (/* @__PURE__ */ (function* () {})()).constructor, AsyncGenerator = (/* @__PURE__ */ (async function* () {})()).constructor, REGISTRY = /* @__PURE__ */ new WeakMap(), KNOWN_SYMBOLS = /* @__PURE__ */ (() => {
2
+ let unsafeStyleAttrReg = /[\\;]/g, replaceUnsafeStyleAttr = (c) => c === ";" ? "\\3B " : "\\\\", classAPIRenderer, K_SCOPE_ID = Symbol("Scope ID"), { hasOwnProperty } = {}, objectProto = Object.prototype, arrayProto = Array.prototype, Generator = (/* @__PURE__ */ (function* () {})()).constructor, AsyncGenerator = (/* @__PURE__ */ (async function* () {})()).constructor, kTouchedIterator = /* @__PURE__ */ patchIteratorsNext(), REGISTRY = /* @__PURE__ */ new WeakMap(), KNOWN_SYMBOLS = /* @__PURE__ */ (() => {
3
3
  let KNOWN_SYMBOLS = /* @__PURE__ */ new Map();
4
4
  for (let name of Object.getOwnPropertyNames(Symbol)) {
5
5
  let symbol = Symbol[name];
@@ -325,7 +325,7 @@ function concat(opt, other) {
325
325
  }
326
326
  return Array.isArray(other) ? [opt, ...other] : [opt, other];
327
327
  }
328
- patchIteratorNext(Generator.prototype), patchIteratorNext(AsyncGenerator.prototype);
328
+ // src/html/serializer.ts
329
329
  var State$1 = class {
330
330
  ids = 0;
331
331
  flushId = 0;
@@ -1079,12 +1079,16 @@ function hasOnlyZeros(typedArray) {
1079
1079
  for (let i = 0; i < typedArray.length; i++) if (typedArray[i] !== zero) return !1;
1080
1080
  return !0;
1081
1081
  }
1082
- function patchIteratorNext(proto) {
1083
- if (proto.next[kTouchedIterator]) return;
1082
+ function patchIteratorsNext() {
1083
+ let key = Symbol.for("marko.touchedIterator");
1084
+ return patchIteratorNext(Generator.prototype, key), patchIteratorNext(AsyncGenerator.prototype, key), key;
1085
+ }
1086
+ function patchIteratorNext(proto, key) {
1087
+ if (proto.next[key]) return;
1084
1088
  let { next } = proto;
1085
1089
  proto.next = function(value) {
1086
- return this[kTouchedIterator] = 1, next.call(this, value);
1087
- }, proto.next[kTouchedIterator] = !0;
1090
+ return this[key] = 1, next.call(this, value);
1091
+ }, proto.next[key] = !0;
1088
1092
  }
1089
1093
  // src/html/attrs.ts
1090
1094
  function _attr_class(value) {
@@ -1504,20 +1508,6 @@ var State = class {
1504
1508
  serializeFlush(boundary) {
1505
1509
  flushSerializer(boundary, this);
1506
1510
  }
1507
- getSerializedGlobals() {
1508
- let { $global } = this, serializedGlobals = $global.serializedGlobals;
1509
- if (!serializedGlobals) return 0;
1510
- let filtered = 0;
1511
- if (Array.isArray(serializedGlobals)) for (let key of serializedGlobals) {
1512
- let value = $global[key];
1513
- value !== void 0 && ((filtered ||= {})[key] = value);
1514
- }
1515
- else for (let key in serializedGlobals) if (serializedGlobals[key]) {
1516
- let value = $global[key];
1517
- value !== void 0 && ((filtered ||= {})[key] = value);
1518
- }
1519
- return filtered;
1520
- }
1521
1511
  runtimeScript() {
1522
1512
  return "(e=>(self[e]||=(l,f=e+l,s=f.length,a={},d=[],t=document,n=t.createTreeWalker(t,129))=>t=self[e][l]={i:f,l:a,v:d,x(){},w(e,l,r){for(;e=n.nextNode();)t.x(l=(l=e.data)&&!l.indexOf(f)&&(r=l.slice(s+1),(l=l[s])>\"#\"||(a[r]=e),l),r,e),l>\"#\"&&d.push(e);n.currentNode=document.currentScript}},self[e]))(\"" + this.$global.runtimeId + "\")(\"" + this.$global.renderId + "\")";
1523
1513
  }
@@ -1820,7 +1810,7 @@ function flushSerializer(boundary, channel) {
1820
1810
  }
1821
1811
  if (!channel.readyId && !state.hasWrittenGlobals) {
1822
1812
  state.hasWrittenGlobals = !0;
1823
- let globals = state.getSerializedGlobals();
1813
+ let globals = getFilteredGlobals(state.$global);
1824
1814
  globals && flushes.push([
1825
1815
  0,
1826
1816
  globals,
@@ -1842,7 +1832,7 @@ function flushSerializerGlobals(boundary) {
1842
1832
  let { state } = boundary;
1843
1833
  if (state.hasWrittenGlobals) return;
1844
1834
  state.hasWrittenGlobals = !0;
1845
- let globals = state.getSerializedGlobals();
1835
+ let globals = getFilteredGlobals(state.$global);
1846
1836
  globals && (state.needsWalkerRuntime = !0, state.resumes = concatSequence(state.resumes, stringifyScopes(state.serializer, [[
1847
1837
  0,
1848
1838
  globals,
@@ -1857,6 +1847,19 @@ function readyBatch(state, channel, deps, resumes) {
1857
1847
  }
1858
1848
  return resumes && own[readyId]++, concatSequence(wait && wait + "}", resumes);
1859
1849
  }
1850
+ function getFilteredGlobals($global) {
1851
+ let serializedGlobals = $global.serializedGlobals, filtered = $global.cspNonce ? { cspNonce: $global.cspNonce } : 0;
1852
+ if (!serializedGlobals) return filtered;
1853
+ if (Array.isArray(serializedGlobals)) for (let key of serializedGlobals) {
1854
+ let value = $global[key];
1855
+ value !== void 0 && ((filtered ||= {})[key] = value);
1856
+ }
1857
+ else for (let key in serializedGlobals) if (serializedGlobals[key]) {
1858
+ let value = $global[key];
1859
+ value !== void 0 && ((filtered ||= {})[key] = value);
1860
+ }
1861
+ return filtered;
1862
+ }
1860
1863
  function concatEffects(a, b) {
1861
1864
  return a ? b ? a + " " + b : a : b;
1862
1865
  }
package/dist/html.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- let require_control_flow = require("./html-4A3vJpIT.js"), empty = [], rest = Symbol();
2
+ let require_control_flow = require("./html-aFBpTKdf.js"), empty = [], rest = Symbol();
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
4
  // src/common/attr-tag.ts
5
5
  function attrTag(attrs) {
package/dist/html.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  let empty = [], rest = Symbol();
2
- import { $ as _subscribe, A as $global, At as _attrs_select_value, B as _hoist, Bt as _signal_read_error, C as _escape_comment, Ct as _attr_select_value, D as _to_text, Dt as _attrs_content, E as _escape_style_value, Et as _attrs, G as _resume, H as _html_mark, I as _attr_content, It as _assert_class_toggles, J as _scope_id, K as _resume_branch, L as _el, Lt as _assert_hoist, Mt as _style_html, Nt as _textarea_value, O as _unescaped, Ot as _attrs_partial, Q as _set_scope_reason, R as _el_mark, Rt as _el_read_error, S as _escape, St as _attr_or, T as _escape_style, Tt as _attr_textarea_value, U as _id, V as _html, W as _peek_scope_id, X as _scope_with_id, Y as _scope_reason, Z as _script, _t as _attr_input_checkedValue, a as _for_until, b as _content_resume, bt as _attr_nullish, c as _show_start, d as forOf, et as _text_mark, f as forTo, ft as _attr, g as withPageAssets, gt as _attr_input_checked, h as withLoadAssets, ht as _attr_details_or_dialog_open, i as _for_to, it as _write_if, jt as _attrs_textarea_value, kt as _attrs_partial_content, l as _try, m as _flush_head, mt as _attr_class, n as _for_in, nt as _var, o as _if, p as forUntil, pt as _attr_and, q as _resume_locals, r as _for_of, rt as _write_guard, s as _show_end, t as _await, tt as _trailers, u as forIn, ut as writeScope, v as _template, vt as _attr_input_value, w as _escape_script, wt as _attr_style, x as _dynamic_tag, xt as _attr_option_value, y as _content, yt as _attr_nonce, z as _existing_scope, zt as _hoist_read_error } from "./html-C3dQGQ2x.mjs";
2
+ import { $ as _subscribe, A as $global, At as _attrs_select_value, B as _hoist, Bt as _signal_read_error, C as _escape_comment, Ct as _attr_select_value, D as _to_text, Dt as _attrs_content, E as _escape_style_value, Et as _attrs, G as _resume, H as _html_mark, I as _attr_content, It as _assert_class_toggles, J as _scope_id, K as _resume_branch, L as _el, Lt as _assert_hoist, Mt as _style_html, Nt as _textarea_value, O as _unescaped, Ot as _attrs_partial, Q as _set_scope_reason, R as _el_mark, Rt as _el_read_error, S as _escape, St as _attr_or, T as _escape_style, Tt as _attr_textarea_value, U as _id, V as _html, W as _peek_scope_id, X as _scope_with_id, Y as _scope_reason, Z as _script, _t as _attr_input_checkedValue, a as _for_until, b as _content_resume, bt as _attr_nullish, c as _show_start, d as forOf, et as _text_mark, f as forTo, ft as _attr, g as withPageAssets, gt as _attr_input_checked, h as withLoadAssets, ht as _attr_details_or_dialog_open, i as _for_to, it as _write_if, jt as _attrs_textarea_value, kt as _attrs_partial_content, l as _try, m as _flush_head, mt as _attr_class, n as _for_in, nt as _var, o as _if, p as forUntil, pt as _attr_and, q as _resume_locals, r as _for_of, rt as _write_guard, s as _show_end, t as _await, tt as _trailers, u as forIn, ut as writeScope, v as _template, vt as _attr_input_value, w as _escape_script, wt as _attr_style, x as _dynamic_tag, xt as _attr_option_value, y as _content, yt as _attr_nonce, z as _existing_scope, zt as _hoist_read_error } from "./html-BD-y50wS.mjs";
3
3
  // src/common/attr-tag.ts
4
4
  function attrTag(attrs) {
5
5
  return attrs[Symbol.iterator] = attrTagIterator, attrs[rest] = empty, attrs;
@@ -1,3 +1,9 @@
1
1
  import { type Tag } from "@marko/compiler/babel-utils";
2
+ declare const kOnlyDirectReferences: unique symbol;
3
+ declare module "@marko/compiler/dist/types" {
4
+ interface MarkoTagExtra {
5
+ [kOnlyDirectReferences]?: true;
6
+ }
7
+ }
2
8
  declare const _default: Tag;
3
9
  export default _default;
@@ -1,4 +1,4 @@
1
1
  import { types as t } from "@marko/compiler";
2
2
  import { type Tag } from "@marko/compiler/babel-utils";
3
3
  export declare const IfTag: Tag;
4
- export declare function flattenTextOnlyConditional(rootTag: t.NodePath<t.MarkoTag>): void;
4
+ export declare function flattenTextOnlyConditional(rootTag: t.NodePath<t.MarkoTag>): true | undefined;
@@ -1,14 +1,13 @@
1
1
  import { type Tag } from "@marko/compiler/babel-utils";
2
- import { type Binding } from "../util/bindings";
3
- import { type Section } from "../util/sections";
2
+ import type { Binding } from "../util/bindings";
4
3
  declare const kStartBinding: unique symbol;
5
4
  declare const kStaticDisplay: unique symbol;
6
- declare const kBodyContent: unique symbol;
5
+ declare const kSingleNode: unique symbol;
7
6
  declare module "@marko/compiler/dist/types" {
8
7
  interface MarkoTagExtra {
9
8
  [kStartBinding]?: Binding;
10
9
  [kStaticDisplay]?: boolean;
11
- [kBodyContent]?: Section["content"];
10
+ [kSingleNode]?: boolean;
12
11
  }
13
12
  }
14
13
  declare const _default: Tag;