@vue/compiler-dom 3.6.0-rc.5 → 3.6.0-rc.6
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/compiler-dom.cjs.js +50 -50
- package/dist/compiler-dom.cjs.prod.js +49 -49
- package/dist/compiler-dom.d.ts +10 -11
- package/dist/compiler-dom.esm-browser.js +210 -200
- package/dist/compiler-dom.esm-browser.prod.js +5 -5
- package/dist/compiler-dom.esm-bundler.js +49 -49
- package/dist/compiler-dom.global.js +210 -200
- package/dist/compiler-dom.global.prod.js +5 -5
- package/package.json +3 -3
package/dist/compiler-dom.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-dom v3.6.0-rc.
|
|
2
|
+
* @vue/compiler-dom v3.6.0-rc.6
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -177,9 +177,7 @@ const transformModel = (dir, node, context) => {
|
|
|
177
177
|
isInvalidType = true;
|
|
178
178
|
context.onError(createDOMCompilerError(60, dir.loc));
|
|
179
179
|
break;
|
|
180
|
-
default:
|
|
181
|
-
checkDuplicatedValue();
|
|
182
|
-
break;
|
|
180
|
+
default: checkDuplicatedValue();
|
|
183
181
|
}
|
|
184
182
|
} else if ((0, _vue_compiler_core.hasDynamicKeyVBind)(node)) directiveToUse = V_MODEL_DYNAMIC;
|
|
185
183
|
else checkDuplicatedValue();
|
|
@@ -192,10 +190,10 @@ const transformModel = (dir, node, context) => {
|
|
|
192
190
|
};
|
|
193
191
|
//#endregion
|
|
194
192
|
//#region packages/compiler-dom/src/transforms/vOn.ts
|
|
195
|
-
const isEventOptionModifier =
|
|
196
|
-
const isNonKeyModifier =
|
|
197
|
-
const maybeKeyModifier =
|
|
198
|
-
const isKeyboardEvent =
|
|
193
|
+
const isEventOptionModifier = /*@__PURE__*/ (0, _vue_shared.makeMap)(`passive,once,capture`);
|
|
194
|
+
const isNonKeyModifier = /*@__PURE__*/ (0, _vue_shared.makeMap)("stop,prevent,self,ctrl,shift,alt,meta,exact,middle");
|
|
195
|
+
const maybeKeyModifier = /*@__PURE__*/ (0, _vue_shared.makeMap)("left,right");
|
|
196
|
+
const isKeyboardEvent = /*@__PURE__*/ (0, _vue_shared.makeMap)(`onkeyup,onkeydown,onkeypress`);
|
|
199
197
|
const resolveModifiers = (key, modifiers, context, loc) => {
|
|
200
198
|
const keyModifiers = [];
|
|
201
199
|
const nonKeyModifiers = [];
|
|
@@ -214,13 +212,15 @@ const resolveModifiers = (key, modifiers, context, loc) => {
|
|
|
214
212
|
else if (isEventOptionModifier(modifier)) eventOptionModifiers.push(modifier);
|
|
215
213
|
else {
|
|
216
214
|
const keyString = (0, _vue_shared.isString)(key) ? key : (0, _vue_compiler_core.isStaticExp)(key) ? key.content : null;
|
|
217
|
-
if (maybeKeyModifier(modifier))
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
215
|
+
if (maybeKeyModifier(modifier)) {
|
|
216
|
+
if (keyString) {
|
|
217
|
+
if (isKeyboardEvent(keyString.toLowerCase())) keyModifiers.push(modifier);
|
|
218
|
+
else nonKeyModifiers.push(modifier);
|
|
219
|
+
} else {
|
|
220
|
+
keyModifiers.push(modifier);
|
|
221
|
+
nonKeyModifiers.push(modifier);
|
|
222
|
+
}
|
|
223
|
+
} else if (isNonKeyModifier(modifier)) nonKeyModifiers.push(modifier);
|
|
224
224
|
else keyModifiers.push(modifier);
|
|
225
225
|
}
|
|
226
226
|
}
|
|
@@ -390,7 +390,7 @@ const dataAriaRE = /^(?:data|aria)-/;
|
|
|
390
390
|
const isStringifiableAttr = (name, ns) => {
|
|
391
391
|
return (ns === 0 ? (0, _vue_shared.isKnownHtmlAttr)(name) : ns === 1 ? (0, _vue_shared.isKnownSvgAttr)(name) : ns === 2 ? (0, _vue_shared.isKnownMathMLAttr)(name) : false) || dataAriaRE.test(name);
|
|
392
392
|
};
|
|
393
|
-
const isNonStringifiable =
|
|
393
|
+
const isNonStringifiable = /*@__PURE__*/ (0, _vue_shared.makeMap)(`caption,thead,tr,th,tbody,td,tfoot,colgroup,col`);
|
|
394
394
|
/**
|
|
395
395
|
* for a cached node, analyze it and return:
|
|
396
396
|
* - false: bailed (contains non-stringifiable props or runtime constant)
|
|
@@ -527,7 +527,7 @@ function isValidHTMLNesting(parent, child) {
|
|
|
527
527
|
}
|
|
528
528
|
return true;
|
|
529
529
|
}
|
|
530
|
-
const headings = new Set([
|
|
530
|
+
const headings = /* @__PURE__ */ new Set([
|
|
531
531
|
"h1",
|
|
532
532
|
"h2",
|
|
533
533
|
"h3",
|
|
@@ -539,7 +539,7 @@ const emptySet = /* @__PURE__ */ new Set([]);
|
|
|
539
539
|
/**
|
|
540
540
|
* maps element to set of elements that can be it's children, no other */
|
|
541
541
|
const onlyValidChildren = {
|
|
542
|
-
head: new Set([
|
|
542
|
+
head: /* @__PURE__ */ new Set([
|
|
543
543
|
"base",
|
|
544
544
|
"basefront",
|
|
545
545
|
"bgsound",
|
|
@@ -552,24 +552,24 @@ const onlyValidChildren = {
|
|
|
552
552
|
"script",
|
|
553
553
|
"template"
|
|
554
554
|
]),
|
|
555
|
-
optgroup: new Set(["option"]),
|
|
556
|
-
select: new Set([
|
|
555
|
+
optgroup: /* @__PURE__ */ new Set(["option"]),
|
|
556
|
+
select: /* @__PURE__ */ new Set([
|
|
557
557
|
"optgroup",
|
|
558
558
|
"option",
|
|
559
559
|
"hr"
|
|
560
560
|
]),
|
|
561
|
-
table: new Set([
|
|
561
|
+
table: /* @__PURE__ */ new Set([
|
|
562
562
|
"caption",
|
|
563
563
|
"colgroup",
|
|
564
564
|
"tbody",
|
|
565
565
|
"tfoot",
|
|
566
566
|
"thead"
|
|
567
567
|
]),
|
|
568
|
-
tr: new Set(["td", "th"]),
|
|
569
|
-
colgroup: new Set(["col"]),
|
|
570
|
-
tbody: new Set(["tr"]),
|
|
571
|
-
thead: new Set(["tr"]),
|
|
572
|
-
tfoot: new Set(["tr"]),
|
|
568
|
+
tr: /* @__PURE__ */ new Set(["td", "th"]),
|
|
569
|
+
colgroup: /* @__PURE__ */ new Set(["col"]),
|
|
570
|
+
tbody: /* @__PURE__ */ new Set(["tr"]),
|
|
571
|
+
thead: /* @__PURE__ */ new Set(["tr"]),
|
|
572
|
+
tfoot: /* @__PURE__ */ new Set(["tr"]),
|
|
573
573
|
script: emptySet,
|
|
574
574
|
iframe: emptySet,
|
|
575
575
|
option: emptySet,
|
|
@@ -580,30 +580,30 @@ const onlyValidChildren = {
|
|
|
580
580
|
/** maps elements to set of elements which can be it's parent, no other */
|
|
581
581
|
const onlyValidParents = {
|
|
582
582
|
html: emptySet,
|
|
583
|
-
body: new Set(["html"]),
|
|
584
|
-
head: new Set(["html"]),
|
|
585
|
-
td: new Set(["tr"]),
|
|
586
|
-
colgroup: new Set(["table"]),
|
|
587
|
-
caption: new Set(["table"]),
|
|
588
|
-
tbody: new Set(["table"]),
|
|
589
|
-
tfoot: new Set(["table"]),
|
|
590
|
-
col: new Set(["colgroup"]),
|
|
591
|
-
th: new Set(["tr"]),
|
|
592
|
-
thead: new Set(["table"]),
|
|
593
|
-
tr: new Set([
|
|
583
|
+
body: /* @__PURE__ */ new Set(["html"]),
|
|
584
|
+
head: /* @__PURE__ */ new Set(["html"]),
|
|
585
|
+
td: /* @__PURE__ */ new Set(["tr"]),
|
|
586
|
+
colgroup: /* @__PURE__ */ new Set(["table"]),
|
|
587
|
+
caption: /* @__PURE__ */ new Set(["table"]),
|
|
588
|
+
tbody: /* @__PURE__ */ new Set(["table"]),
|
|
589
|
+
tfoot: /* @__PURE__ */ new Set(["table"]),
|
|
590
|
+
col: /* @__PURE__ */ new Set(["colgroup"]),
|
|
591
|
+
th: /* @__PURE__ */ new Set(["tr"]),
|
|
592
|
+
thead: /* @__PURE__ */ new Set(["table"]),
|
|
593
|
+
tr: /* @__PURE__ */ new Set([
|
|
594
594
|
"tbody",
|
|
595
595
|
"thead",
|
|
596
596
|
"tfoot"
|
|
597
597
|
]),
|
|
598
|
-
dd: new Set(["dl", "div"]),
|
|
599
|
-
dt: new Set(["dl", "div"]),
|
|
600
|
-
figcaption: new Set(["figure"]),
|
|
601
|
-
summary: new Set(["details"]),
|
|
602
|
-
area: new Set(["map"])
|
|
598
|
+
dd: /* @__PURE__ */ new Set(["dl", "div"]),
|
|
599
|
+
dt: /* @__PURE__ */ new Set(["dl", "div"]),
|
|
600
|
+
figcaption: /* @__PURE__ */ new Set(["figure"]),
|
|
601
|
+
summary: /* @__PURE__ */ new Set(["details"]),
|
|
602
|
+
area: /* @__PURE__ */ new Set(["map"])
|
|
603
603
|
};
|
|
604
604
|
/** maps element to set of elements that can not be it's children, others can */
|
|
605
605
|
const knownInvalidChildren = {
|
|
606
|
-
p: new Set([
|
|
606
|
+
p: /* @__PURE__ */ new Set([
|
|
607
607
|
"address",
|
|
608
608
|
"article",
|
|
609
609
|
"aside",
|
|
@@ -638,7 +638,7 @@ const knownInvalidChildren = {
|
|
|
638
638
|
"table",
|
|
639
639
|
"ul"
|
|
640
640
|
]),
|
|
641
|
-
svg: new Set([
|
|
641
|
+
svg: /* @__PURE__ */ new Set([
|
|
642
642
|
"b",
|
|
643
643
|
"blockquote",
|
|
644
644
|
"br",
|
|
@@ -679,12 +679,12 @@ const knownInvalidChildren = {
|
|
|
679
679
|
};
|
|
680
680
|
/** maps element to set of elements that can not be it's parent, others can */
|
|
681
681
|
const knownInvalidParents = {
|
|
682
|
-
a: new Set(["a"]),
|
|
683
|
-
button: new Set(["button"]),
|
|
684
|
-
dd: new Set(["dd", "dt"]),
|
|
685
|
-
dt: new Set(["dd", "dt"]),
|
|
686
|
-
form: new Set(["form"]),
|
|
687
|
-
li: new Set(["li"]),
|
|
682
|
+
a: /* @__PURE__ */ new Set(["a"]),
|
|
683
|
+
button: /* @__PURE__ */ new Set(["button"]),
|
|
684
|
+
dd: /* @__PURE__ */ new Set(["dd", "dt"]),
|
|
685
|
+
dt: /* @__PURE__ */ new Set(["dd", "dt"]),
|
|
686
|
+
form: /* @__PURE__ */ new Set(["form"]),
|
|
687
|
+
li: /* @__PURE__ */ new Set(["li"]),
|
|
688
688
|
h1: headings,
|
|
689
689
|
h2: headings,
|
|
690
690
|
h3: headings,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-dom v3.6.0-rc.
|
|
2
|
+
* @vue/compiler-dom v3.6.0-rc.6
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -172,8 +172,6 @@ const transformModel = (dir, node, context) => {
|
|
|
172
172
|
case "file":
|
|
173
173
|
isInvalidType = true;
|
|
174
174
|
context.onError(createDOMCompilerError(60, dir.loc));
|
|
175
|
-
break;
|
|
176
|
-
default: break;
|
|
177
175
|
}
|
|
178
176
|
} else if ((0, _vue_compiler_core.hasDynamicKeyVBind)(node)) directiveToUse = V_MODEL_DYNAMIC;
|
|
179
177
|
} else if (tag === "select") directiveToUse = V_MODEL_SELECT;
|
|
@@ -184,10 +182,10 @@ const transformModel = (dir, node, context) => {
|
|
|
184
182
|
};
|
|
185
183
|
//#endregion
|
|
186
184
|
//#region packages/compiler-dom/src/transforms/vOn.ts
|
|
187
|
-
const isEventOptionModifier =
|
|
188
|
-
const isNonKeyModifier =
|
|
189
|
-
const maybeKeyModifier =
|
|
190
|
-
const isKeyboardEvent =
|
|
185
|
+
const isEventOptionModifier = /*@__PURE__*/ (0, _vue_shared.makeMap)(`passive,once,capture`);
|
|
186
|
+
const isNonKeyModifier = /*@__PURE__*/ (0, _vue_shared.makeMap)("stop,prevent,self,ctrl,shift,alt,meta,exact,middle");
|
|
187
|
+
const maybeKeyModifier = /*@__PURE__*/ (0, _vue_shared.makeMap)("left,right");
|
|
188
|
+
const isKeyboardEvent = /*@__PURE__*/ (0, _vue_shared.makeMap)(`onkeyup,onkeydown,onkeypress`);
|
|
191
189
|
const resolveModifiers = (key, modifiers, context, loc) => {
|
|
192
190
|
const keyModifiers = [];
|
|
193
191
|
const nonKeyModifiers = [];
|
|
@@ -206,13 +204,15 @@ const resolveModifiers = (key, modifiers, context, loc) => {
|
|
|
206
204
|
else if (isEventOptionModifier(modifier)) eventOptionModifiers.push(modifier);
|
|
207
205
|
else {
|
|
208
206
|
const keyString = (0, _vue_shared.isString)(key) ? key : (0, _vue_compiler_core.isStaticExp)(key) ? key.content : null;
|
|
209
|
-
if (maybeKeyModifier(modifier))
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
207
|
+
if (maybeKeyModifier(modifier)) {
|
|
208
|
+
if (keyString) {
|
|
209
|
+
if (isKeyboardEvent(keyString.toLowerCase())) keyModifiers.push(modifier);
|
|
210
|
+
else nonKeyModifiers.push(modifier);
|
|
211
|
+
} else {
|
|
212
|
+
keyModifiers.push(modifier);
|
|
213
|
+
nonKeyModifiers.push(modifier);
|
|
214
|
+
}
|
|
215
|
+
} else if (isNonKeyModifier(modifier)) nonKeyModifiers.push(modifier);
|
|
216
216
|
else keyModifiers.push(modifier);
|
|
217
217
|
}
|
|
218
218
|
}
|
|
@@ -377,7 +377,7 @@ const dataAriaRE = /^(?:data|aria)-/;
|
|
|
377
377
|
const isStringifiableAttr = (name, ns) => {
|
|
378
378
|
return (ns === 0 ? (0, _vue_shared.isKnownHtmlAttr)(name) : ns === 1 ? (0, _vue_shared.isKnownSvgAttr)(name) : ns === 2 ? (0, _vue_shared.isKnownMathMLAttr)(name) : false) || dataAriaRE.test(name);
|
|
379
379
|
};
|
|
380
|
-
const isNonStringifiable =
|
|
380
|
+
const isNonStringifiable = /*@__PURE__*/ (0, _vue_shared.makeMap)(`caption,thead,tr,th,tbody,td,tfoot,colgroup,col`);
|
|
381
381
|
/**
|
|
382
382
|
* for a cached node, analyze it and return:
|
|
383
383
|
* - false: bailed (contains non-stringifiable props or runtime constant)
|
|
@@ -511,7 +511,7 @@ function isValidHTMLNesting(parent, child) {
|
|
|
511
511
|
}
|
|
512
512
|
return true;
|
|
513
513
|
}
|
|
514
|
-
const headings = new Set([
|
|
514
|
+
const headings = /* @__PURE__ */ new Set([
|
|
515
515
|
"h1",
|
|
516
516
|
"h2",
|
|
517
517
|
"h3",
|
|
@@ -523,7 +523,7 @@ const emptySet = /* @__PURE__ */ new Set([]);
|
|
|
523
523
|
/**
|
|
524
524
|
* maps element to set of elements that can be it's children, no other */
|
|
525
525
|
const onlyValidChildren = {
|
|
526
|
-
head: new Set([
|
|
526
|
+
head: /* @__PURE__ */ new Set([
|
|
527
527
|
"base",
|
|
528
528
|
"basefront",
|
|
529
529
|
"bgsound",
|
|
@@ -536,24 +536,24 @@ const onlyValidChildren = {
|
|
|
536
536
|
"script",
|
|
537
537
|
"template"
|
|
538
538
|
]),
|
|
539
|
-
optgroup: new Set(["option"]),
|
|
540
|
-
select: new Set([
|
|
539
|
+
optgroup: /* @__PURE__ */ new Set(["option"]),
|
|
540
|
+
select: /* @__PURE__ */ new Set([
|
|
541
541
|
"optgroup",
|
|
542
542
|
"option",
|
|
543
543
|
"hr"
|
|
544
544
|
]),
|
|
545
|
-
table: new Set([
|
|
545
|
+
table: /* @__PURE__ */ new Set([
|
|
546
546
|
"caption",
|
|
547
547
|
"colgroup",
|
|
548
548
|
"tbody",
|
|
549
549
|
"tfoot",
|
|
550
550
|
"thead"
|
|
551
551
|
]),
|
|
552
|
-
tr: new Set(["td", "th"]),
|
|
553
|
-
colgroup: new Set(["col"]),
|
|
554
|
-
tbody: new Set(["tr"]),
|
|
555
|
-
thead: new Set(["tr"]),
|
|
556
|
-
tfoot: new Set(["tr"]),
|
|
552
|
+
tr: /* @__PURE__ */ new Set(["td", "th"]),
|
|
553
|
+
colgroup: /* @__PURE__ */ new Set(["col"]),
|
|
554
|
+
tbody: /* @__PURE__ */ new Set(["tr"]),
|
|
555
|
+
thead: /* @__PURE__ */ new Set(["tr"]),
|
|
556
|
+
tfoot: /* @__PURE__ */ new Set(["tr"]),
|
|
557
557
|
script: emptySet,
|
|
558
558
|
iframe: emptySet,
|
|
559
559
|
option: emptySet,
|
|
@@ -564,30 +564,30 @@ const onlyValidChildren = {
|
|
|
564
564
|
/** maps elements to set of elements which can be it's parent, no other */
|
|
565
565
|
const onlyValidParents = {
|
|
566
566
|
html: emptySet,
|
|
567
|
-
body: new Set(["html"]),
|
|
568
|
-
head: new Set(["html"]),
|
|
569
|
-
td: new Set(["tr"]),
|
|
570
|
-
colgroup: new Set(["table"]),
|
|
571
|
-
caption: new Set(["table"]),
|
|
572
|
-
tbody: new Set(["table"]),
|
|
573
|
-
tfoot: new Set(["table"]),
|
|
574
|
-
col: new Set(["colgroup"]),
|
|
575
|
-
th: new Set(["tr"]),
|
|
576
|
-
thead: new Set(["table"]),
|
|
577
|
-
tr: new Set([
|
|
567
|
+
body: /* @__PURE__ */ new Set(["html"]),
|
|
568
|
+
head: /* @__PURE__ */ new Set(["html"]),
|
|
569
|
+
td: /* @__PURE__ */ new Set(["tr"]),
|
|
570
|
+
colgroup: /* @__PURE__ */ new Set(["table"]),
|
|
571
|
+
caption: /* @__PURE__ */ new Set(["table"]),
|
|
572
|
+
tbody: /* @__PURE__ */ new Set(["table"]),
|
|
573
|
+
tfoot: /* @__PURE__ */ new Set(["table"]),
|
|
574
|
+
col: /* @__PURE__ */ new Set(["colgroup"]),
|
|
575
|
+
th: /* @__PURE__ */ new Set(["tr"]),
|
|
576
|
+
thead: /* @__PURE__ */ new Set(["table"]),
|
|
577
|
+
tr: /* @__PURE__ */ new Set([
|
|
578
578
|
"tbody",
|
|
579
579
|
"thead",
|
|
580
580
|
"tfoot"
|
|
581
581
|
]),
|
|
582
|
-
dd: new Set(["dl", "div"]),
|
|
583
|
-
dt: new Set(["dl", "div"]),
|
|
584
|
-
figcaption: new Set(["figure"]),
|
|
585
|
-
summary: new Set(["details"]),
|
|
586
|
-
area: new Set(["map"])
|
|
582
|
+
dd: /* @__PURE__ */ new Set(["dl", "div"]),
|
|
583
|
+
dt: /* @__PURE__ */ new Set(["dl", "div"]),
|
|
584
|
+
figcaption: /* @__PURE__ */ new Set(["figure"]),
|
|
585
|
+
summary: /* @__PURE__ */ new Set(["details"]),
|
|
586
|
+
area: /* @__PURE__ */ new Set(["map"])
|
|
587
587
|
};
|
|
588
588
|
/** maps element to set of elements that can not be it's children, others can */
|
|
589
589
|
const knownInvalidChildren = {
|
|
590
|
-
p: new Set([
|
|
590
|
+
p: /* @__PURE__ */ new Set([
|
|
591
591
|
"address",
|
|
592
592
|
"article",
|
|
593
593
|
"aside",
|
|
@@ -622,7 +622,7 @@ const knownInvalidChildren = {
|
|
|
622
622
|
"table",
|
|
623
623
|
"ul"
|
|
624
624
|
]),
|
|
625
|
-
svg: new Set([
|
|
625
|
+
svg: /* @__PURE__ */ new Set([
|
|
626
626
|
"b",
|
|
627
627
|
"blockquote",
|
|
628
628
|
"br",
|
|
@@ -663,12 +663,12 @@ const knownInvalidChildren = {
|
|
|
663
663
|
};
|
|
664
664
|
/** maps element to set of elements that can not be it's parent, others can */
|
|
665
665
|
const knownInvalidParents = {
|
|
666
|
-
a: new Set(["a"]),
|
|
667
|
-
button: new Set(["button"]),
|
|
668
|
-
dd: new Set(["dd", "dt"]),
|
|
669
|
-
dt: new Set(["dd", "dt"]),
|
|
670
|
-
form: new Set(["form"]),
|
|
671
|
-
li: new Set(["li"]),
|
|
666
|
+
a: /* @__PURE__ */ new Set(["a"]),
|
|
667
|
+
button: /* @__PURE__ */ new Set(["button"]),
|
|
668
|
+
dd: /* @__PURE__ */ new Set(["dd", "dt"]),
|
|
669
|
+
dt: /* @__PURE__ */ new Set(["dd", "dt"]),
|
|
670
|
+
form: /* @__PURE__ */ new Set(["form"]),
|
|
671
|
+
li: /* @__PURE__ */ new Set(["li"]),
|
|
672
672
|
h1: headings,
|
|
673
673
|
h2: headings,
|
|
674
674
|
h3: headings,
|
package/dist/compiler-dom.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CodegenResult, CompilerError, CompilerOptions, ComponentNode, DirectiveTransform, ExpressionNode, NodeTransform, ParserOptions, RootNode, SimpleExpressionNode, SourceLocation, TransformContext } from "@vue/compiler-core";
|
|
2
2
|
export * from "@vue/compiler-core";
|
|
3
|
-
|
|
4
3
|
//#region temp/packages/compiler-dom/src/parserOptions.d.ts
|
|
5
4
|
export declare const parserOptions: ParserOptions;
|
|
6
5
|
//#endregion
|
|
@@ -50,16 +49,16 @@ export declare const resolveModifiers: (key: ExpressionNode | string, modifiers:
|
|
|
50
49
|
//#endregion
|
|
51
50
|
//#region temp/packages/compiler-dom/src/htmlNesting.d.ts
|
|
52
51
|
/**
|
|
53
|
-
* Copied from https://github.com/MananTank/validate-html-nesting
|
|
54
|
-
* with ISC license
|
|
55
|
-
*
|
|
56
|
-
* To avoid runtime dependency on validate-html-nesting
|
|
57
|
-
* This file should not change very often in the original repo
|
|
58
|
-
* but we may need to keep it up-to-date from time to time.
|
|
59
|
-
*/
|
|
52
|
+
* Copied from https://github.com/MananTank/validate-html-nesting
|
|
53
|
+
* with ISC license
|
|
54
|
+
*
|
|
55
|
+
* To avoid runtime dependency on validate-html-nesting
|
|
56
|
+
* This file should not change very often in the original repo
|
|
57
|
+
* but we may need to keep it up-to-date from time to time.
|
|
58
|
+
*/
|
|
60
59
|
/**
|
|
61
|
-
* returns true if given parent-child nesting is valid HTML
|
|
62
|
-
*/
|
|
60
|
+
* returns true if given parent-child nesting is valid HTML
|
|
61
|
+
*/
|
|
63
62
|
export declare function isValidHTMLNesting(parent: string, child: string): boolean;
|
|
64
63
|
//#endregion
|
|
65
64
|
//#region temp/packages/compiler-dom/src/transforms/Transition.d.ts
|
|
@@ -70,4 +69,4 @@ export declare const DOMNodeTransforms: NodeTransform[];
|
|
|
70
69
|
export declare const DOMDirectiveTransforms: Record<string, DirectiveTransform>;
|
|
71
70
|
export declare function compile(src: string | RootNode, options?: CompilerOptions): CodegenResult;
|
|
72
71
|
export declare function parse(template: string, options?: ParserOptions): RootNode;
|
|
73
|
-
//#endregion
|
|
72
|
+
//#endregion
|