marko 6.0.17 → 6.0.18
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/translator/index.js +22 -16
- package/package.json +1 -1
- package/tags-html.d.ts +2216 -159
package/dist/translator/index.js
CHANGED
@@ -7671,7 +7671,7 @@ var html_script_default = {
|
|
7671
7671
|
const seen = {};
|
7672
7672
|
const { attributes } = tag.node;
|
7673
7673
|
let spreadReferenceNodes;
|
7674
|
-
let
|
7674
|
+
let exprExtras;
|
7675
7675
|
let hasEventHandlers = false;
|
7676
7676
|
let hasDynamicAttributes = false;
|
7677
7677
|
for (let i = attributes.length; i--; ) {
|
@@ -7699,7 +7699,7 @@ var html_script_default = {
|
|
7699
7699
|
} else if (import_compiler38.types.isMarkoSpreadAttribute(attr2)) {
|
7700
7700
|
spreadReferenceNodes = [attr2.value];
|
7701
7701
|
} else {
|
7702
|
-
|
7702
|
+
exprExtras = push(exprExtras, valueExtra);
|
7703
7703
|
}
|
7704
7704
|
}
|
7705
7705
|
const bodyPlaceholderNodes = [];
|
@@ -7727,11 +7727,14 @@ var html_script_default = {
|
|
7727
7727
|
if (spreadReferenceNodes) {
|
7728
7728
|
mergeReferences(tagSection, tag.node, spreadReferenceNodes);
|
7729
7729
|
}
|
7730
|
-
if (
|
7731
|
-
|
7732
|
-
|
7733
|
-
bodyPlaceholderNodes[0]
|
7734
|
-
|
7730
|
+
if (hasBodyPlaceholders) {
|
7731
|
+
exprExtras = push(
|
7732
|
+
exprExtras,
|
7733
|
+
bodyPlaceholderNodes.length === 1 ? bodyPlaceholderNodes[0].extra ??= {} : mergeReferences(
|
7734
|
+
tagSection,
|
7735
|
+
bodyPlaceholderNodes[0],
|
7736
|
+
bodyPlaceholderNodes.slice(1)
|
7737
|
+
)
|
7735
7738
|
);
|
7736
7739
|
}
|
7737
7740
|
if (hasEventHandlers || spreadReferenceNodes) {
|
@@ -7759,7 +7762,7 @@ var html_script_default = {
|
|
7759
7762
|
addBindingSerializeReasonExpr(
|
7760
7763
|
tagSection,
|
7761
7764
|
nodeBinding,
|
7762
|
-
push(
|
7765
|
+
push(exprExtras, tagExtra)
|
7763
7766
|
);
|
7764
7767
|
}
|
7765
7768
|
},
|
@@ -8086,7 +8089,7 @@ var html_style_default = {
|
|
8086
8089
|
const seen = {};
|
8087
8090
|
const { attributes } = tag.node;
|
8088
8091
|
let spreadReferenceNodes;
|
8089
|
-
let
|
8092
|
+
let exprExtras;
|
8090
8093
|
let hasEventHandlers = false;
|
8091
8094
|
let hasDynamicAttributes = false;
|
8092
8095
|
for (let i = attributes.length; i--; ) {
|
@@ -8114,7 +8117,7 @@ var html_style_default = {
|
|
8114
8117
|
} else if (import_compiler39.types.isMarkoSpreadAttribute(attr2)) {
|
8115
8118
|
spreadReferenceNodes = [attr2.value];
|
8116
8119
|
} else {
|
8117
|
-
|
8120
|
+
exprExtras = push(exprExtras, valueExtra);
|
8118
8121
|
}
|
8119
8122
|
}
|
8120
8123
|
const bodyPlaceholderNodes = [];
|
@@ -8142,11 +8145,14 @@ var html_style_default = {
|
|
8142
8145
|
if (spreadReferenceNodes) {
|
8143
8146
|
mergeReferences(tagSection, tag.node, spreadReferenceNodes);
|
8144
8147
|
}
|
8145
|
-
if (
|
8146
|
-
|
8147
|
-
|
8148
|
-
bodyPlaceholderNodes[0]
|
8149
|
-
|
8148
|
+
if (hasBodyPlaceholders) {
|
8149
|
+
exprExtras = push(
|
8150
|
+
exprExtras,
|
8151
|
+
bodyPlaceholderNodes.length === 1 ? bodyPlaceholderNodes[0].extra ??= {} : mergeReferences(
|
8152
|
+
tagSection,
|
8153
|
+
bodyPlaceholderNodes[0],
|
8154
|
+
bodyPlaceholderNodes.slice(1)
|
8155
|
+
)
|
8150
8156
|
);
|
8151
8157
|
}
|
8152
8158
|
if (hasEventHandlers || spreadReferenceNodes) {
|
@@ -8174,7 +8180,7 @@ var html_style_default = {
|
|
8174
8180
|
addBindingSerializeReasonExpr(
|
8175
8181
|
tagSection,
|
8176
8182
|
nodeBinding,
|
8177
|
-
push(
|
8183
|
+
push(exprExtras, tagExtra)
|
8178
8184
|
);
|
8179
8185
|
}
|
8180
8186
|
},
|