marko 6.3.20 → 6.3.22

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 (66) hide show
  1. package/cheatsheet.md +29 -3
  2. package/dist/common/accessor.d.ts +21 -75
  3. package/dist/common/accessor.debug.d.ts +21 -75
  4. package/dist/common/constants/accessor-prefix.d.ts +16 -0
  5. package/dist/common/constants/accessor-prefix.debug.d.ts +16 -0
  6. package/dist/common/constants/accessor-prop.d.ts +30 -0
  7. package/dist/common/constants/accessor-prop.debug.d.ts +30 -0
  8. package/dist/common/constants/closure-signal-prop.d.ts +6 -0
  9. package/dist/common/constants/closure-signal-prop.debug.d.ts +6 -0
  10. package/dist/common/constants/controlled-type.d.ts +9 -0
  11. package/dist/common/constants/keyed-scopes-prop.d.ts +4 -0
  12. package/dist/common/constants/keyed-scopes-prop.debug.d.ts +4 -0
  13. package/dist/common/constants/load-signal-value.d.ts +5 -0
  14. package/dist/common/constants/load-signal-value.debug.d.ts +5 -0
  15. package/dist/common/constants/node-type.d.ts +7 -0
  16. package/dist/common/constants/pending-render-prop.d.ts +9 -0
  17. package/dist/common/constants/pending-render-prop.debug.d.ts +9 -0
  18. package/dist/common/constants/renderer-prop.d.ts +12 -0
  19. package/dist/common/constants/renderer-prop.debug.d.ts +12 -0
  20. package/dist/common/constants/resume-symbol.d.ts +10 -0
  21. package/dist/common/constants/walk-code.d.ts +17 -0
  22. package/dist/common/constants/walk-range-size.d.ts +7 -0
  23. package/dist/common/types.d.ts +15 -45
  24. package/dist/debug/dom.js +291 -225
  25. package/dist/debug/dom.mjs +291 -225
  26. package/dist/debug/html.js +187 -41
  27. package/dist/debug/html.mjs +187 -42
  28. package/dist/dom/compat.d.ts +1 -1
  29. package/dist/dom/control-flow.d.ts +1 -1
  30. package/dist/dom/renderer.d.ts +2 -2
  31. package/dist/dom/scope.d.ts +1 -1
  32. package/dist/dom.js +8 -6
  33. package/dist/dom.mjs +8 -6
  34. package/dist/html/constants/char.d.ts +11 -0
  35. package/dist/html/constants/flush-status.d.ts +6 -0
  36. package/dist/html/constants/mark.d.ts +6 -0
  37. package/dist/html/constants/runtime-key.d.ts +7 -0
  38. package/dist/html/writer.d.ts +20 -23
  39. package/dist/html.d.ts +1 -1
  40. package/dist/html.js +131 -29
  41. package/dist/html.mjs +131 -29
  42. package/dist/translator/core/if.d.ts +7 -7
  43. package/dist/translator/core/index.d.ts +7 -7
  44. package/dist/translator/index.d.ts +9 -9
  45. package/dist/translator/index.js +245 -139
  46. package/dist/translator/interop/constants/feature-type.d.ts +5 -0
  47. package/dist/translator/interop/index.d.ts +2 -2
  48. package/dist/translator/util/body-to-text-literal.d.ts +2 -2
  49. package/dist/translator/util/constants/binding-type.d.ts +10 -0
  50. package/dist/translator/util/constants/compile-stage.d.ts +8 -0
  51. package/dist/translator/util/constants/content-type.d.ts +8 -0
  52. package/dist/translator/util/constants/step.d.ts +5 -0
  53. package/dist/translator/util/constants/tag-name-type.d.ts +7 -0
  54. package/dist/translator/util/is-static.d.ts +1 -1
  55. package/dist/translator/util/references.d.ts +9 -12
  56. package/dist/translator/util/sections.d.ts +4 -8
  57. package/dist/translator/util/signals.d.ts +1 -0
  58. package/dist/translator/util/tag-name-type.d.ts +4 -7
  59. package/dist/translator/util/walks.d.ts +4 -6
  60. package/dist/translator/visitors/constants/sibling-text.d.ts +7 -0
  61. package/dist/translator/visitors/placeholder.d.ts +2 -6
  62. package/dist/translator/visitors/program/index.d.ts +1 -0
  63. package/dist/translator/visitors/tag/constants/class-hydration.d.ts +5 -0
  64. package/dist/translator/visitors/tag/dynamic-tag.d.ts +2 -4
  65. package/package.json +16 -16
  66. package/tags-html.d.ts +98 -22
package/dist/html.mjs CHANGED
@@ -454,14 +454,15 @@ var State$1 = class {
454
454
  channelDeps = null;
455
455
  mutated = [];
456
456
  }, Reference = class {
457
+ assigns = null;
458
+ calls = null;
459
+ scopeId = void 0;
460
+ channel = void 0;
457
461
  parent;
458
462
  accessor;
459
463
  flush;
460
464
  pos;
461
465
  id;
462
- assigns = null;
463
- scopeId = void 0;
464
- channel = void 0;
465
466
  constructor(parent, accessor, flush, pos = null, id = null) {
466
467
  this.parent = parent, this.accessor = accessor, this.flush = flush, this.pos = pos, this.id = id;
467
468
  }
@@ -526,9 +527,20 @@ function writeScopesRoot(state, flushes) {
526
527
  function writeAssigned(state) {
527
528
  let sep = state.buf.length ? "," : "";
528
529
  if (state.assigned.size) {
529
- let buf = "";
530
- for (let ref of state.assigned) buf += sep + assignsToString(ref.assigns, ref.id), ref.assigns = null, sep = ",";
531
- state.buf.push(buf), state.assigned = /* @__PURE__ */ new Set();
530
+ let assigned = state.assigned;
531
+ state.assigned = /* @__PURE__ */ new Set();
532
+ let buf = "", hasCalls = !1;
533
+ for (let ref of assigned) ref.assigns && (buf += sep + assignsToString(ref.assigns, ref.id), ref.assigns = null, sep = ","), hasCalls ||= ref.calls !== null;
534
+ if (buf && state.buf.push(buf), hasCalls) {
535
+ for (let ref of assigned) if (ref.calls) {
536
+ for (let { method, args } of ref.calls) {
537
+ state.buf.push((state.buf.length ? "," : "") + ref.id + "." + method + "(");
538
+ for (let a = 0; a < args.length; a++) a && state.buf.push(","), writeCallArg(state, args[a]);
539
+ state.buf.push(")");
540
+ }
541
+ ref.calls = null;
542
+ }
543
+ }
532
544
  }
533
545
  if (hasChannelMutations(state)) {
534
546
  let remaining = [];
@@ -549,8 +561,12 @@ function writeAssigned(state) {
549
561
  } else state.buf.push("void 0");
550
562
  state.buf.push(")");
551
563
  }
552
- state.mutated = remaining, state.assigned.size && writeAssigned(state);
564
+ state.mutated = remaining;
553
565
  }
566
+ state.assigned.size && writeAssigned(state);
567
+ }
568
+ function writeCallArg(state, val) {
569
+ val === void 0 ? (state.wroteUndefined = !0, state.buf.push("$")) : writeProp(state, val, null, "") || state.buf.push("void 0");
554
570
  }
555
571
  function hasChannelMutations(state) {
556
572
  return hasMatchingMutations(state.mutated, state.channel?.readyId);
@@ -687,6 +703,7 @@ function writeUnknownObject(state, val, ref) {
687
703
  case Float64Array:
688
704
  case BigInt64Array:
689
705
  case BigUint64Array: return writeTypedArray(state, val, ref);
706
+ case DataView: return writeDataView(state, val, ref);
690
707
  case WeakSet: return writeWeakSet(state);
691
708
  case WeakMap: return writeWeakMap(state);
692
709
  case globalThis.URL: return writeURL(state, val);
@@ -696,6 +713,24 @@ function writeUnknownObject(state, val, ref) {
696
713
  case globalThis.ReadableStream: return writeReadableStream(state, val, ref);
697
714
  case globalThis.Request: return writeRequest(state, val, ref);
698
715
  case globalThis.Response: return writeResponse(state, val, ref);
716
+ case globalThis.Intl?.NumberFormat: return writeIntl(state, val, "NumberFormat", ref);
717
+ case globalThis.Intl?.DateTimeFormat: return writeIntl(state, val, "DateTimeFormat", ref);
718
+ case globalThis.Intl?.Collator: return writeIntl(state, val, "Collator", ref);
719
+ case globalThis.Intl?.PluralRules: return writeIntl(state, val, "PluralRules", ref);
720
+ case globalThis.Intl?.RelativeTimeFormat: return writeIntl(state, val, "RelativeTimeFormat", ref);
721
+ case globalThis.Intl?.ListFormat: return writeIntl(state, val, "ListFormat", ref);
722
+ case globalThis.Intl?.DisplayNames: return writeIntl(state, val, "DisplayNames", ref);
723
+ case globalThis.Intl?.Segmenter: return writeIntl(state, val, "Segmenter", ref);
724
+ case globalThis.Intl?.DurationFormat: return writeIntl(state, val, "DurationFormat", ref);
725
+ case globalThis.Intl?.Locale: return writeIntlLocale(state, val);
726
+ case globalThis.Temporal?.Instant: return writeTemporal(state, val, "Instant");
727
+ case globalThis.Temporal?.Duration: return writeTemporal(state, val, "Duration");
728
+ case globalThis.Temporal?.PlainDate: return writeTemporal(state, val, "PlainDate");
729
+ case globalThis.Temporal?.PlainDateTime: return writeTemporal(state, val, "PlainDateTime");
730
+ case globalThis.Temporal?.PlainMonthDay: return writeTemporal(state, val, "PlainMonthDay");
731
+ case globalThis.Temporal?.PlainTime: return writeTemporal(state, val, "PlainTime");
732
+ case globalThis.Temporal?.PlainYearMonth: return writeTemporal(state, val, "PlainYearMonth");
733
+ case globalThis.Temporal?.ZonedDateTime: return writeTemporal(state, val, "ZonedDateTime");
699
734
  }
700
735
  return !1;
701
736
  }
@@ -729,22 +764,51 @@ function newAsyncHandle(state, parent, id) {
729
764
  }
730
765
  function writeMap(state, val, ref) {
731
766
  if (!val.size) return state.buf.push("new Map"), !0;
732
- let items = [], assigns, needsId, i = 0;
767
+ let items = [], assigns, needsId, deferring = !1, i = 0;
733
768
  if (val.size < 25) {
734
- for (let [itemKey, itemValue] of val) itemKey === val && (itemKey = void 0, (assigns ||= []).push("a[" + i + "][0]")), itemValue === val && (itemValue = void 0, (assigns ||= []).push("a[" + i + "][1]")), needsId ||= isDedupedMember(itemKey) || isDedupedMember(itemValue), i = items.push(itemValue === void 0 ? itemKey === void 0 ? [] : [itemKey] : [itemKey, itemValue]);
769
+ for (let [itemKey, itemValue] of val) {
770
+ if (!deferring && (itemKey !== val && isAncestorMember(state, ref, itemKey) || itemValue !== val && isAncestorMember(state, ref, itemValue)) && (deferring = !0), deferring) {
771
+ deferCall(state, ref, "set", [itemKey, itemValue]);
772
+ continue;
773
+ }
774
+ itemKey === val && (itemKey = void 0, (assigns ||= []).push("a[" + i + "][0]")), itemValue === val && (itemValue = void 0, (assigns ||= []).push("a[" + i + "][1]")), needsId ||= isDedupedMember(itemKey) || isDedupedMember(itemValue), i = items.push(itemValue === void 0 ? itemKey === void 0 ? [] : [itemKey] : [itemKey, itemValue]);
775
+ }
735
776
  writeArrayArg(state, ref, items, assigns && "((m,a)=>(" + assignsToString(assigns, "m") + ",a.forEach(i=>m.set(i[0],i[1])),m))(new Map,", "new Map(", needsId);
736
777
  } else {
737
- for (let [itemKey, itemValue] of val) itemKey === val && (itemKey = 0, (assigns ||= []).push("a[" + i + "]")), itemValue === val && (itemValue = 0, (assigns ||= []).push("a[" + (i + 1) + "]")), needsId ||= isDedupedMember(itemKey) || isDedupedMember(itemValue), i = items.push(itemKey, itemValue);
778
+ for (let [itemKey, itemValue] of val) {
779
+ if (!deferring && (itemKey !== val && isAncestorMember(state, ref, itemKey) || itemValue !== val && isAncestorMember(state, ref, itemValue)) && (deferring = !0), deferring) {
780
+ deferCall(state, ref, "set", [itemKey, itemValue]);
781
+ continue;
782
+ }
783
+ itemKey === val && (itemKey = 0, (assigns ||= []).push("a[" + i + "]")), itemValue === val && (itemValue = 0, (assigns ||= []).push("a[" + (i + 1) + "]")), needsId ||= isDedupedMember(itemKey) || isDedupedMember(itemValue), i = items.push(itemKey, itemValue);
784
+ }
738
785
  writeArrayArg(state, ref, items, assigns && "(a=>a.reduce((m,v,i)=>i%2?m:m.set(v,a[i+1])," + assignsToString(assigns, "new Map") + "))(", "(a=>a.reduce((m,v,i)=>i%2?m:m.set(v,a[i+1]),new Map))(", needsId);
739
786
  }
740
787
  return !0;
741
788
  }
742
789
  function writeSet(state, val, ref) {
743
790
  if (!val.size) return state.buf.push("new Set"), !0;
744
- let items = [], assigns, needsId, i = 0;
745
- for (let item of val) item === val ? (item = 0, (assigns ||= []).push("i[" + i + "]")) : needsId ||= isDedupedMember(item), i = items.push(item);
791
+ let items = [], assigns, needsId, deferring = !1, i = 0;
792
+ for (let item of val) {
793
+ if (!deferring && item !== val && isAncestorMember(state, ref, item) && (deferring = !0), deferring) {
794
+ deferCall(state, ref, "add", [item]);
795
+ continue;
796
+ }
797
+ item === val ? (item = 0, (assigns ||= []).push("i[" + i + "]")) : needsId ||= isDedupedMember(item), i = items.push(item);
798
+ }
746
799
  return writeArrayArg(state, ref, items, assigns && "((s,i)=>(" + assignsToString(assigns, "s") + ",i.forEach(i=>s.add(i)),s))(new Set,", "new Set(", needsId), !0;
747
800
  }
801
+ function isAncestorMember(state, container, member) {
802
+ if (member === null || typeof member != "object" && typeof member != "function") return !1;
803
+ let ref = state.refs.get(member);
804
+ return ref !== void 0 && isCircular(container, ref);
805
+ }
806
+ function deferCall(state, ref, method, args) {
807
+ ensureId(state, ref), (ref.calls ||= []).push({
808
+ method,
809
+ args
810
+ }), state.assigned.add(ref);
811
+ }
748
812
  function writeArrayArg(state, ref, items, assignsPrefix, plainPrefix, needsId) {
749
813
  if (assignsPrefix || needsId) {
750
814
  let arrayRef = new Reference(ref, null, state.flush, null, nextRefAccess(state));
@@ -761,6 +825,15 @@ function isDedupedMember(val) {
761
825
  default: return !1;
762
826
  }
763
827
  }
828
+ function canWriteBuffer(state, buffer, ref) {
829
+ return Object.getPrototypeOf(buffer)?.constructor === ArrayBuffer;
830
+ }
831
+ function writeDataView(state, val, ref) {
832
+ let { buffer } = val;
833
+ if (!canWriteBuffer(state, buffer, ref)) return !1;
834
+ let needsLength = val.byteOffset + val.byteLength < buffer.byteLength;
835
+ return state.buf.push("new DataView("), writeProp(state, buffer, ref, "buffer"), state.buf.push((val.byteOffset || needsLength ? "," + val.byteOffset + (needsLength ? "," + val.byteLength : "") : "") + ")"), !0;
836
+ }
764
837
  function writeArrayBuffer(state, val) {
765
838
  let result;
766
839
  if (val.byteLength) {
@@ -771,6 +844,7 @@ function writeArrayBuffer(state, val) {
771
844
  }
772
845
  function writeTypedArray(state, val, ref) {
773
846
  if (val.byteOffset || val.byteLength < val.buffer.byteLength || state.refs.has(val.buffer)) {
847
+ if (!canWriteBuffer(state, val.buffer, ref)) return !1;
774
848
  let needsLength = val.byteOffset + val.byteLength < val.buffer.byteLength;
775
849
  state.buf.push("new " + val.constructor.name + "("), writeProp(state, val.buffer, ref, "buffer"), state.buf.push((val.byteOffset || needsLength ? "," + val.byteOffset + (needsLength ? "," + val.length : "") : "") + ")");
776
850
  } else state.refs.set(val.buffer, new Reference(ref, "buffer", state.flush, null)), state.buf.push("new " + val.constructor.name + (val.length === 0 ? "" : "(" + (hasOnlyZeros(val) ? val.length : typedArrayToInitString(val)) + ")"));
@@ -844,6 +918,22 @@ function writeResponse(state, val, ref) {
844
918
  }
845
919
  return !val.body || val.bodyUsed ? state.buf.push("new Response" + (options ? "(null,{" + options + "})" : "")) : (state.buf.push("new Response("), state.buf.push((writeProp(state, val.body, ref, "body") ? "" : "null") + (options ? ",{" + options + "})" : ")"))), !0;
846
920
  }
921
+ function writeIntl(state, val, name, ref) {
922
+ let { locale, ...options } = val.resolvedOptions(), needsId = !1;
923
+ for (let key in options) if (isDedupedMember(options[key])) {
924
+ needsId = !0;
925
+ break;
926
+ }
927
+ state.buf.push("new Intl." + name + "(" + quote(locale, 0) + ",");
928
+ let optionsRef;
929
+ return needsId ? (optionsRef = new Reference(ref, null, state.flush, null, nextRefAccess(state)), state.buf.push(optionsRef.id + "={")) : (optionsRef = new Reference(ref, null, state.flush, state.buf.length), state.buf.push("{")), writeObjectProps(state, options, optionsRef), state.buf.push("})"), !0;
930
+ }
931
+ function writeIntlLocale(state, val) {
932
+ return state.buf.push("new Intl.Locale(" + quote(val.toString(), 0) + ")"), !0;
933
+ }
934
+ function writeTemporal(state, val, name) {
935
+ return state.buf.push("Temporal." + name + ".from(" + quote(val.toString(), 0) + ")"), !0;
936
+ }
847
937
  function writeReadableStream(state, val, ref) {
848
938
  let { boundary, channel } = state;
849
939
  if (!boundary || val.locked) return !1;
@@ -1200,6 +1290,9 @@ function _trailers(html) {
1200
1290
  function _resume(val, id, scopeId) {
1201
1291
  return register(id, val, scopeId === void 0 ? void 0 : _scope_with_id(scopeId));
1202
1292
  }
1293
+ function _resume_locals(val, id, locals, ownerScopeId) {
1294
+ return ownerScopeId !== void 0 && (locals._ = _scope_with_id(ownerScopeId)), register(id, val, writeScope(_scope_id(), locals));
1295
+ }
1203
1296
  function _el(scopeId, id) {
1204
1297
  return _resume(() => void 0, id, scopeId);
1205
1298
  }
@@ -1419,7 +1512,6 @@ function tryCatch(content, catchContent) {
1419
1512
  };
1420
1513
  }
1421
1514
  var State = class {
1422
- $global;
1423
1515
  tagId = 1;
1424
1516
  scopeId = 1;
1425
1517
  reorderId = 1;
@@ -1441,6 +1533,7 @@ var State = class {
1441
1533
  writeScopes = {};
1442
1534
  readyIds = null;
1443
1535
  serializeReason;
1536
+ $global;
1444
1537
  constructor($global) {
1445
1538
  this.$global = $global, $global.cspNonce && (this.nonceAttr = " nonce" + attrAssignment($global.cspNonce));
1446
1539
  }
@@ -1471,10 +1564,10 @@ var State = class {
1471
1564
  return "<!--" + this.commentPrefix + code + str + "-->";
1472
1565
  }
1473
1566
  }, Boundary = class extends AbortController {
1474
- state;
1475
- parent;
1476
1567
  onNext = NOOP$2;
1477
1568
  count = 0;
1569
+ state;
1570
+ parent;
1478
1571
  constructor(state, signal, parent) {
1479
1572
  super(), this.state = state, this.parent = parent, this.signal.addEventListener("abort", () => {
1480
1573
  this.count = 0, this.state = new State(this.state.$global), this.onNext();
@@ -1492,10 +1585,6 @@ var State = class {
1492
1585
  !this.signal.aborted && this.count && (this.count--, this.onNext());
1493
1586
  }
1494
1587
  }, Chunk = class Chunk {
1495
- boundary;
1496
- next;
1497
- context;
1498
- serializeState;
1499
1588
  html = "";
1500
1589
  scripts = "";
1501
1590
  effects = "";
@@ -1506,6 +1595,10 @@ var State = class {
1506
1595
  reorderId = null;
1507
1596
  deferredReady = null;
1508
1597
  placeholder = null;
1598
+ boundary;
1599
+ next;
1600
+ context;
1601
+ serializeState;
1509
1602
  constructor(boundary, next, context, serializeState) {
1510
1603
  this.boundary = boundary, this.next = next, this.context = context, this.serializeState = serializeState;
1511
1604
  }
@@ -1900,17 +1993,26 @@ var ServerRendered = class {
1900
1993
  }
1901
1994
  [Symbol.asyncIterator]() {
1902
1995
  let resolve, reject, value = "", done = !1, aborted = !1, reason, boundary = this.#read((html) => {
1903
- value += html, resolve && (resolve({
1904
- value,
1905
- done
1906
- }), value = "");
1996
+ if (value += html, resolve) {
1997
+ let settle = resolve;
1998
+ resolve = reject = void 0, settle({
1999
+ value,
2000
+ done
2001
+ }), value = "";
2002
+ }
1907
2003
  }, (err) => {
1908
- aborted = !0, reason = err, reject && reject(err);
2004
+ if (aborted = !0, reason = err, reject) {
2005
+ let settle = reject;
2006
+ resolve = reject = void 0, settle(err);
2007
+ }
1909
2008
  }, () => {
1910
- done = !0, resolve && (resolve({
1911
- value,
1912
- done: !value
1913
- }), value = "");
2009
+ if (done = !0, resolve) {
2010
+ let settle = resolve;
2011
+ resolve = reject = void 0, settle({
2012
+ value,
2013
+ done: !value
2014
+ }), value = "";
2015
+ }
1914
2016
  });
1915
2017
  return {
1916
2018
  next() {
@@ -2088,4 +2190,4 @@ function toObjectExpression(options) {
2088
2190
  //#region src/html/compat.ts
2089
2191
  function NOOP() {}
2090
2192
  //#endregion
2091
- export { $global, _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, _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, _id, _if, _peek_scope_id, _resume, _resume_branch, writeScope as _scope, _scope_id, _scope_reason, _scope_with_id, _script, _sep, _serialize_guard, _serialize_if, _set_serialize_reason, _show_end, _show_start, _style_html, _subscribe, _template, _textarea_value, _to_text, _trailers, _try, _unescaped, _var, attrTag, attrTags, compat, forIn, forInBy, forOf, forOfBy, forStepBy, forTo, forUntil, withLoadAssets, withPageAssets };
2193
+ export { $global, _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, _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, _id, _if, _peek_scope_id, _resume, _resume_branch, _resume_locals, writeScope as _scope, _scope_id, _scope_reason, _scope_with_id, _script, _sep, _serialize_guard, _serialize_if, _set_serialize_reason, _show_end, _show_start, _style_html, _subscribe, _template, _textarea_value, _to_text, _trailers, _try, _unescaped, _var, attrTag, attrTags, compat, forIn, forInBy, forOf, forOfBy, forStepBy, forTo, forUntil, withLoadAssets, withPageAssets };
@@ -2,11 +2,6 @@ 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
4
  export declare const ElseIfTag: {
5
- autocomplete: {
6
- snippet: string;
7
- description: string;
8
- descriptionMoreURL: string;
9
- }[];
10
5
  attributeGroups?: string[];
11
6
  patternAttributes?: import("@marko/compiler/babel-utils").Attribute[];
12
7
  attributes?: {
@@ -43,12 +38,13 @@ export declare const ElseIfTag: {
43
38
  text?: boolean;
44
39
  html?: boolean;
45
40
  };
46
- };
47
- export declare const ElseTag: {
48
41
  autocomplete: {
42
+ snippet: string;
49
43
  description: string;
50
44
  descriptionMoreURL: string;
51
45
  }[];
46
+ };
47
+ export declare const ElseTag: {
52
48
  attributeGroups?: string[];
53
49
  patternAttributes?: import("@marko/compiler/babel-utils").Attribute[];
54
50
  attributes?: {
@@ -85,5 +81,9 @@ export declare const ElseTag: {
85
81
  text?: boolean;
86
82
  html?: boolean;
87
83
  };
84
+ autocomplete: {
85
+ description: string;
86
+ descriptionMoreURL: string;
87
+ }[];
88
88
  };
89
89
  export declare function flattenTextOnlyConditional(rootTag: t.NodePath<t.MarkoTag>): void;
@@ -9,11 +9,6 @@ declare const _default: {
9
9
  "<define>": import("@marko/compiler/babel-utils").Tag;
10
10
  "<effect>": import("@marko/compiler/babel-utils").Tag;
11
11
  "<else-if>": {
12
- autocomplete: {
13
- snippet: string;
14
- description: string;
15
- descriptionMoreURL: string;
16
- }[];
17
12
  attributeGroups?: string[];
18
13
  patternAttributes?: import("@marko/compiler/babel-utils").Attribute[];
19
14
  attributes?: {
@@ -50,12 +45,13 @@ declare const _default: {
50
45
  text?: boolean;
51
46
  html?: boolean;
52
47
  };
53
- };
54
- "<else>": {
55
48
  autocomplete: {
49
+ snippet: string;
56
50
  description: string;
57
51
  descriptionMoreURL: string;
58
52
  }[];
53
+ };
54
+ "<else>": {
59
55
  attributeGroups?: string[];
60
56
  patternAttributes?: import("@marko/compiler/babel-utils").Attribute[];
61
57
  attributes?: {
@@ -92,6 +88,10 @@ declare const _default: {
92
88
  text?: boolean;
93
89
  html?: boolean;
94
90
  };
91
+ autocomplete: {
92
+ description: string;
93
+ descriptionMoreURL: string;
94
+ }[];
95
95
  };
96
96
  "<export>": import("@marko/compiler/babel-utils").Tag;
97
97
  "<for>": import("@marko/compiler/babel-utils").Tag;
@@ -1,12 +1,11 @@
1
1
  import type { Config } from "@marko/compiler";
2
- export { version } from "../../package.json";
2
+ export declare const version: string;
3
3
  export declare const cheatsheet = "../../cheatsheet.md";
4
4
  export declare const tagDiscoveryDirs: string[];
5
5
  export { default as internalEntryBuilder } from "./util/entry-builder";
6
6
  export declare const preferAPI = "tags";
7
7
  export declare const transform: import("@marko/compiler/babel-types").Visitor<unknown>, analyze: import("@marko/compiler/babel-types").Visitor<unknown>, translate: import("@marko/compiler/babel-types").Visitor<unknown>;
8
8
  export declare const taglibs: (string | {
9
- migrate: import("@marko/compiler/babel-types").Visitor<unknown>;
10
9
  taglibId: string;
11
10
  "<attrs>": import("@marko/compiler/babel-utils").Tag;
12
11
  "<await>": import("@marko/compiler/babel-utils").Tag;
@@ -17,11 +16,6 @@ export declare const taglibs: (string | {
17
16
  "<define>": import("@marko/compiler/babel-utils").Tag;
18
17
  "<effect>": import("@marko/compiler/babel-utils").Tag;
19
18
  "<else-if>": {
20
- autocomplete: {
21
- snippet: string;
22
- description: string;
23
- descriptionMoreURL: string;
24
- }[];
25
19
  attributeGroups?: string[];
26
20
  patternAttributes?: import("@marko/compiler/babel-utils").Attribute[];
27
21
  attributes?: {
@@ -58,12 +52,13 @@ export declare const taglibs: (string | {
58
52
  text?: boolean;
59
53
  html?: boolean;
60
54
  };
61
- };
62
- "<else>": {
63
55
  autocomplete: {
56
+ snippet: string;
64
57
  description: string;
65
58
  descriptionMoreURL: string;
66
59
  }[];
60
+ };
61
+ "<else>": {
67
62
  attributeGroups?: string[];
68
63
  patternAttributes?: import("@marko/compiler/babel-utils").Attribute[];
69
64
  attributes?: {
@@ -100,6 +95,10 @@ export declare const taglibs: (string | {
100
95
  text?: boolean;
101
96
  html?: boolean;
102
97
  };
98
+ autocomplete: {
99
+ description: string;
100
+ descriptionMoreURL: string;
101
+ }[];
103
102
  };
104
103
  "<export>": import("@marko/compiler/babel-utils").Tag;
105
104
  "<for>": import("@marko/compiler/babel-utils").Tag;
@@ -119,6 +118,7 @@ export declare const taglibs: (string | {
119
118
  "<static>": import("@marko/compiler/babel-utils").Tag;
120
119
  "<style>": import("@marko/compiler/babel-utils").Tag;
121
120
  "<try>": import("@marko/compiler/babel-utils").Tag;
121
+ migrate: import("@marko/compiler/babel-types").Visitor<unknown>;
122
122
  })[][];
123
123
  export declare function getRuntimeEntryFiles(output: Config["output"], optimize: boolean): string[];
124
124
  export { createInteropTranslator } from "./interop";