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.
- package/cheatsheet.md +12 -1
- package/dist/debug/dom/catch.feat.js +2 -2
- package/dist/debug/dom/catch.feat.mjs +2 -2
- package/dist/debug/dom/compat.feat.js +1 -1
- package/dist/debug/dom/compat.feat.mjs +1 -1
- package/dist/debug/dom/controllable-input.feat.js +1 -1
- package/dist/debug/dom/controllable-input.feat.mjs +1 -1
- package/dist/debug/dom/controllable-open.feat.js +1 -1
- package/dist/debug/dom/controllable-open.feat.mjs +1 -1
- package/dist/debug/dom/controllable-select.feat.js +1 -1
- package/dist/debug/dom/controllable-select.feat.mjs +1 -1
- package/dist/debug/dom/controllable-textarea.feat.js +1 -1
- package/dist/debug/dom/controllable-textarea.feat.mjs +1 -1
- package/dist/debug/dom/controllable.feat.js +1 -1
- package/dist/debug/dom/controllable.feat.mjs +1 -1
- package/dist/debug/dom/dynamic-tag-script.feat.js +1 -1
- package/dist/debug/dom/dynamic-tag-script.feat.mjs +1 -1
- package/dist/debug/dom/dynamic-tag-var.feat.js +1 -1
- package/dist/debug/dom/dynamic-tag-var.feat.mjs +1 -1
- package/dist/debug/dom/lazy.feat.js +1 -1
- package/dist/debug/dom/lazy.feat.mjs +1 -1
- package/dist/debug/dom/placeholder.feat.js +1 -1
- package/dist/debug/dom/placeholder.feat.mjs +1 -1
- package/dist/debug/{dom-DlBA4dCe.mjs → dom-4AzxJQHb.mjs} +16 -16
- package/dist/debug/{dom-BLoTKI2r.js → dom-Uu_OCdvg.js} +21 -21
- package/dist/debug/dom.js +1 -1
- package/dist/debug/dom.mjs +1 -1
- package/dist/debug/html/compat.feat.js +1 -1
- package/dist/debug/html/compat.feat.mjs +1 -1
- package/dist/debug/{html-DM7X2D_b.mjs → html-Bfl3MJP9.mjs} +27 -24
- package/dist/debug/{html-Du0z056z.js → html-shBfuhlc.js} +27 -24
- package/dist/debug/html.js +1 -1
- package/dist/debug/html.mjs +1 -1
- package/dist/dom/catch.feat.js +3 -3
- package/dist/dom/catch.feat.mjs +2 -2
- package/dist/dom/compat.feat.js +1 -1
- package/dist/dom/compat.feat.mjs +1 -1
- package/dist/dom/control-flow.d.ts +8 -8
- package/dist/dom/controllable-input.feat.js +1 -1
- package/dist/dom/controllable-input.feat.mjs +1 -1
- package/dist/dom/controllable-open.feat.js +1 -1
- package/dist/dom/controllable-open.feat.mjs +1 -1
- package/dist/dom/controllable-select.feat.js +1 -1
- package/dist/dom/controllable-select.feat.mjs +1 -1
- package/dist/dom/controllable-textarea.feat.js +1 -1
- package/dist/dom/controllable-textarea.feat.mjs +1 -1
- package/dist/dom/controllable.feat.js +1 -1
- package/dist/dom/controllable.feat.mjs +1 -1
- package/dist/dom/dynamic-tag-script.feat.js +1 -1
- package/dist/dom/dynamic-tag-script.feat.mjs +1 -1
- package/dist/dom/dynamic-tag-var.feat.js +1 -1
- package/dist/dom/dynamic-tag-var.feat.mjs +1 -1
- package/dist/dom/lazy.feat.js +1 -1
- package/dist/dom/lazy.feat.mjs +1 -1
- package/dist/dom/placeholder.feat.js +1 -1
- package/dist/dom/placeholder.feat.mjs +1 -1
- package/dist/{dom-BRtFOIF-.js → dom-BdJeggv5.js} +14 -14
- package/dist/{dom-Cqajrs_w.mjs → dom-DJrZXgdr.mjs} +13 -13
- package/dist/dom.js +2 -2
- package/dist/dom.mjs +1 -1
- package/dist/html/compat.feat.js +1 -1
- package/dist/html/compat.feat.mjs +1 -1
- package/dist/html/writer.d.ts +0 -1
- package/dist/{html-C3dQGQ2x.mjs → html-BD-y50wS.mjs} +25 -22
- package/dist/{html-4A3vJpIT.js → html-aFBpTKdf.js} +25 -22
- package/dist/html.js +1 -1
- package/dist/html.mjs +1 -1
- package/dist/translator/core/define.d.ts +6 -0
- package/dist/translator/core/if.d.ts +1 -1
- package/dist/translator/core/show.d.ts +3 -4
- package/dist/translator/index.js +3880 -3971
- package/dist/translator/util/assert.d.ts +0 -8
- package/dist/translator/util/bindings.d.ts +15 -8
- package/dist/translator/util/branch-tag.d.ts +1 -1
- package/dist/translator/util/cyclic-memo.d.ts +0 -1
- package/dist/translator/util/entry-builder.d.ts +2 -3
- package/dist/translator/util/finalize-references.d.ts +0 -1
- package/dist/translator/util/for-selector.d.ts +0 -1
- package/dist/translator/util/get-root.d.ts +3 -1
- package/dist/translator/util/module-registrations.d.ts +1 -0
- package/dist/translator/util/nested-attribute-tags.d.ts +4 -5
- package/dist/translator/util/optional.d.ts +7 -6
- package/dist/translator/util/params-tree.d.ts +1 -1
- package/dist/translator/util/reasons.d.ts +1 -2
- package/dist/translator/util/references.d.ts +6 -5
- package/dist/translator/util/sections.d.ts +8 -2
- package/dist/translator/util/signals.d.ts +1 -1
- package/dist/translator/util/slots.d.ts +1 -2
- package/dist/translator/util/solve-reasons.d.ts +2 -2
- package/dist/translator/util/state.d.ts +2 -2
- package/dist/translator/util/structure.d.ts +1 -0
- package/dist/translator/util/to-property-name.d.ts +0 -2
- package/dist/translator/util/visitors.d.ts +2 -2
- package/dist/translator/util/writer.d.ts +2 -2
- package/dist/translator/visitors/tag/native-tag.d.ts +2 -0
- package/index.d.ts +11 -0
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
let unsafeStyleAttrReg = /[\\;]/g, replaceUnsafeStyleAttr = (c) => c === ";" ? "\\3B " : "\\\\", classAPIRenderer, K_SCOPE_ID = Symbol("Scope ID"),
|
|
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
|
-
|
|
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
|
|
1082
|
-
|
|
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[
|
|
1086
|
-
}, proto.next[
|
|
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
|
|
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
|
|
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"),
|
|
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
|
-
|
|
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
|
|
1083
|
-
|
|
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[
|
|
1087
|
-
}, proto.next[
|
|
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
|
|
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
|
|
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-
|
|
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-
|
|
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>):
|
|
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 {
|
|
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
|
|
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
|
-
[
|
|
10
|
+
[kSingleNode]?: boolean;
|
|
12
11
|
}
|
|
13
12
|
}
|
|
14
13
|
declare const _default: Tag;
|