marko 6.0.0-next.3.61 → 6.0.0-next.3.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/accessor.d.ts +8 -7
- package/dist/common/accessor.debug.d.ts +7 -6
- package/dist/debug/dom.js +20 -20
- package/dist/debug/dom.mjs +20 -20
- package/dist/debug/html.js +4 -4
- package/dist/debug/html.mjs +4 -4
- package/dist/dom.js +137 -137
- package/dist/dom.mjs +137 -137
- package/dist/html.js +7 -7
- package/dist/html.mjs +7 -7
- package/dist/translator/index.js +14 -12
- package/package.json +1 -1
package/dist/html.js
CHANGED
@@ -1084,7 +1084,7 @@ function withContext(key, value, cb) {
|
|
1084
1084
|
}
|
1085
1085
|
}
|
1086
1086
|
function setTagVar(parentScopeId, scopeOffsetAccessor, childScope, registryId) {
|
1087
|
-
ensureScopeWithId(parentScopeId)[scopeOffsetAccessor] = nextScopeId(), childScope
|
1087
|
+
ensureScopeWithId(parentScopeId)[scopeOffsetAccessor] = nextScopeId(), childScope.e = register2(
|
1088
1088
|
{},
|
1089
1089
|
registryId,
|
1090
1090
|
parentScopeId
|
@@ -1302,9 +1302,9 @@ function tryContent(scopeId, accessor, content, input) {
|
|
1302
1302
|
placeholderContent ? () => tryPlaceholder(content, placeholderContent) : content,
|
1303
1303
|
catchContent
|
1304
1304
|
) : placeholderContent ? tryPlaceholder(content, placeholderContent) : content(), writeScope(branchId, {
|
1305
|
-
|
1306
|
-
|
1307
|
-
|
1305
|
+
a: accessor,
|
1306
|
+
b: catchContent,
|
1307
|
+
d: placeholderContent
|
1308
1308
|
}), writeScope(scopeId, {
|
1309
1309
|
["d" /* ConditionalScope */ + accessor]: getScopeById(branchId)
|
1310
1310
|
}), $chunk.writeHTML(
|
@@ -1774,7 +1774,7 @@ var DEFAULT_RUNTIME_ID = "M", DEFAULT_RENDER_ID = "_";
|
|
1774
1774
|
var voidElementsReg = /^(?:area|b(?:ase|r)|col|embed|hr|i(?:mg|nput)|link|meta|param|source|track|wbr)$/;
|
1775
1775
|
function dynamicTagId(tagName) {
|
1776
1776
|
let normalizedRenderer = normalizeDynamicRenderer(tagName);
|
1777
|
-
return normalizedRenderer?.
|
1777
|
+
return normalizedRenderer?.g || normalizedRenderer;
|
1778
1778
|
}
|
1779
1779
|
var dynamicTagInput = (scopeId, accessor, tag, input, content) => {
|
1780
1780
|
if (!tag && !content) {
|
@@ -1847,7 +1847,7 @@ var dynamicTagInput = (scopeId, accessor, tag, input, content) => {
|
|
1847
1847
|
), result;
|
1848
1848
|
};
|
1849
1849
|
function createContent(id, fn) {
|
1850
|
-
return fn.
|
1850
|
+
return fn.g = id, fn;
|
1851
1851
|
}
|
1852
1852
|
function registerContent(id, fn, scopeId) {
|
1853
1853
|
return register2(createContent(id, fn), id, scopeId);
|
@@ -1874,7 +1874,7 @@ var K_TAGS_API_STATE = Symbol(), COMPAT_REGISTRY = /* @__PURE__ */ new WeakMap()
|
|
1874
1874
|
writeScript,
|
1875
1875
|
nextScopeId,
|
1876
1876
|
isTagsAPI(fn) {
|
1877
|
-
return !!fn.
|
1877
|
+
return !!fn.g;
|
1878
1878
|
},
|
1879
1879
|
patchDynamicTag,
|
1880
1880
|
writeSetScopeForComponent(m5c) {
|
package/dist/html.mjs
CHANGED
@@ -1003,7 +1003,7 @@ function withContext(key, value, cb) {
|
|
1003
1003
|
}
|
1004
1004
|
}
|
1005
1005
|
function setTagVar(parentScopeId, scopeOffsetAccessor, childScope, registryId) {
|
1006
|
-
ensureScopeWithId(parentScopeId)[scopeOffsetAccessor] = nextScopeId(), childScope
|
1006
|
+
ensureScopeWithId(parentScopeId)[scopeOffsetAccessor] = nextScopeId(), childScope.e = register2(
|
1007
1007
|
{},
|
1008
1008
|
registryId,
|
1009
1009
|
parentScopeId
|
@@ -1221,9 +1221,9 @@ function tryContent(scopeId, accessor, content, input) {
|
|
1221
1221
|
placeholderContent ? () => tryPlaceholder(content, placeholderContent) : content,
|
1222
1222
|
catchContent
|
1223
1223
|
) : placeholderContent ? tryPlaceholder(content, placeholderContent) : content(), writeScope(branchId, {
|
1224
|
-
|
1225
|
-
|
1226
|
-
|
1224
|
+
a: accessor,
|
1225
|
+
b: catchContent,
|
1226
|
+
d: placeholderContent
|
1227
1227
|
}), writeScope(scopeId, {
|
1228
1228
|
["d" /* ConditionalScope */ + accessor]: getScopeById(branchId)
|
1229
1229
|
}), $chunk.writeHTML(
|
@@ -1693,7 +1693,7 @@ var DEFAULT_RUNTIME_ID = "M", DEFAULT_RENDER_ID = "_";
|
|
1693
1693
|
var voidElementsReg = /^(?:area|b(?:ase|r)|col|embed|hr|i(?:mg|nput)|link|meta|param|source|track|wbr)$/;
|
1694
1694
|
function dynamicTagId(tagName) {
|
1695
1695
|
let normalizedRenderer = normalizeDynamicRenderer(tagName);
|
1696
|
-
return normalizedRenderer?.
|
1696
|
+
return normalizedRenderer?.g || normalizedRenderer;
|
1697
1697
|
}
|
1698
1698
|
var dynamicTagInput = (scopeId, accessor, tag, input, content) => {
|
1699
1699
|
if (!tag && !content) {
|
@@ -1766,7 +1766,7 @@ var dynamicTagInput = (scopeId, accessor, tag, input, content) => {
|
|
1766
1766
|
), result;
|
1767
1767
|
};
|
1768
1768
|
function createContent(id, fn) {
|
1769
|
-
return fn.
|
1769
|
+
return fn.g = id, fn;
|
1770
1770
|
}
|
1771
1771
|
function registerContent(id, fn, scopeId) {
|
1772
1772
|
return register2(createContent(id, fn), id, scopeId);
|
@@ -1793,7 +1793,7 @@ var K_TAGS_API_STATE = Symbol(), COMPAT_REGISTRY = /* @__PURE__ */ new WeakMap()
|
|
1793
1793
|
writeScript,
|
1794
1794
|
nextScopeId,
|
1795
1795
|
isTagsAPI(fn) {
|
1796
|
-
return !!fn.
|
1796
|
+
return !!fn.g;
|
1797
1797
|
},
|
1798
1798
|
patchDynamicTag,
|
1799
1799
|
writeSetScopeForComponent(m5c) {
|
package/dist/translator/index.js
CHANGED
@@ -128,15 +128,16 @@ var AccessorPrefix = /* @__PURE__ */ ((AccessorPrefix3) => {
|
|
128
128
|
AccessorPrefix3["LoopScopeArray"] = "LoopScopeArray:";
|
129
129
|
AccessorPrefix3["LoopScopeMap"] = "LoopScopeMap:";
|
130
130
|
AccessorPrefix3["Promise"] = "Promise:";
|
131
|
+
AccessorPrefix3["TagVariableChange"] = "TagVariableChange:";
|
131
132
|
return AccessorPrefix3;
|
132
133
|
})(AccessorPrefix || {});
|
133
134
|
var AccessorProp = /* @__PURE__ */ ((AccessorProp3) => {
|
134
|
-
AccessorProp3["BranchAccessor"] = "
|
135
|
-
AccessorProp3["CatchContent"] = "
|
135
|
+
AccessorProp3["BranchAccessor"] = "#BranchAccessor";
|
136
|
+
AccessorProp3["CatchContent"] = "#CatchContent";
|
136
137
|
AccessorProp3["PlaceholderBranch"] = "#PlaceholderBranch";
|
137
|
-
AccessorProp3["PlaceholderContent"] = "
|
138
|
-
AccessorProp3["TagVariable"] = "
|
139
|
-
AccessorProp3["TagVariableChange"] = "
|
138
|
+
AccessorProp3["PlaceholderContent"] = "#PlaceholderContent";
|
139
|
+
AccessorProp3["TagVariable"] = "#TagVariable";
|
140
|
+
AccessorProp3["TagVariableChange"] = "#TagVariableChange";
|
140
141
|
return AccessorProp3;
|
141
142
|
})(AccessorProp || {});
|
142
143
|
|
@@ -1441,15 +1442,16 @@ var AccessorPrefix2 = /* @__PURE__ */ ((AccessorPrefix3) => {
|
|
1441
1442
|
AccessorPrefix3["LoopScopeArray"] = "l";
|
1442
1443
|
AccessorPrefix3["LoopScopeMap"] = "m";
|
1443
1444
|
AccessorPrefix3["Promise"] = "n";
|
1445
|
+
AccessorPrefix3["TagVariableChange"] = "o";
|
1444
1446
|
return AccessorPrefix3;
|
1445
1447
|
})(AccessorPrefix2 || {});
|
1446
1448
|
var AccessorProp2 = /* @__PURE__ */ ((AccessorProp3) => {
|
1447
|
-
AccessorProp3["BranchAccessor"] = "
|
1448
|
-
AccessorProp3["CatchContent"] = "
|
1449
|
-
AccessorProp3["PlaceholderBranch"] = "
|
1450
|
-
AccessorProp3["PlaceholderContent"] = "
|
1451
|
-
AccessorProp3["TagVariable"] = "
|
1452
|
-
AccessorProp3["TagVariableChange"] = "
|
1449
|
+
AccessorProp3["BranchAccessor"] = "a";
|
1450
|
+
AccessorProp3["CatchContent"] = "b";
|
1451
|
+
AccessorProp3["PlaceholderBranch"] = "c";
|
1452
|
+
AccessorProp3["PlaceholderContent"] = "d";
|
1453
|
+
AccessorProp3["TagVariable"] = "e";
|
1454
|
+
AccessorProp3["TagVariableChange"] = "f";
|
1453
1455
|
return AccessorProp3;
|
1454
1456
|
})(AccessorProp2 || {});
|
1455
1457
|
|
@@ -7873,7 +7875,7 @@ var let_default = {
|
|
7873
7875
|
if (valueChangeAttr) {
|
7874
7876
|
setSerializedProperty(
|
7875
7877
|
section,
|
7876
|
-
|
7878
|
+
getAccessorPrefix().TagVariableChange + getScopeAccessor(binding),
|
7877
7879
|
valueChangeAttr.value
|
7878
7880
|
);
|
7879
7881
|
}
|