Skip to content

Commit ed4b13b

Browse files
author
git_robot
committed
chore(dev): update framework #0
1 parent 0bf1922 commit ed4b13b

27 files changed

Lines changed: 6335 additions & 5781 deletions

packages/uni-cli-shared/lib/dom2/app/@vue/compiler-core/dist/compiler-core.cjs.js

Lines changed: 249 additions & 237 deletions
Large diffs are not rendered by default.

packages/uni-cli-shared/lib/dom2/app/@vue/compiler-core/dist/compiler-core.cjs.prod.js

Lines changed: 235 additions & 230 deletions
Large diffs are not rendered by default.

packages/uni-cli-shared/lib/dom2/app/@vue/compiler-core/dist/compiler-core.d.ts

Lines changed: 252 additions & 285 deletions
Large diffs are not rendered by default.

packages/uni-cli-shared/lib/dom2/app/@vue/compiler-core/dist/compiler-core.esm-bundler.js

Lines changed: 159 additions & 162 deletions
Large diffs are not rendered by default.

packages/uni-cli-shared/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.cjs.js

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @vue/compiler-dom v3.6.0-rc.5
2+
* @vue/compiler-dom v3.6.0-rc.6
33
* (c) 2018-present Yuxi (Evan) You and Vue contributors
44
* @license MIT
55
**/
@@ -177,9 +177,7 @@ const transformModel = (dir, node, context) => {
177177
isInvalidType = true;
178178
context.onError(createDOMCompilerError(60, dir.loc));
179179
break;
180-
default:
181-
checkDuplicatedValue();
182-
break;
180+
default: checkDuplicatedValue();
183181
}
184182
} else if ((0, _vue_compiler_core.hasDynamicKeyVBind)(node)) directiveToUse = V_MODEL_DYNAMIC;
185183
else checkDuplicatedValue();
@@ -192,10 +190,10 @@ const transformModel = (dir, node, context) => {
192190
};
193191
//#endregion
194192
//#region packages/compiler-dom/src/transforms/vOn.ts
195-
const isEventOptionModifier = /* @__PURE__ */ (0, _vue_shared.makeMap)(`passive,once,capture`);
196-
const isNonKeyModifier = /* @__PURE__ */ (0, _vue_shared.makeMap)("stop,prevent,self,ctrl,shift,alt,meta,exact,middle");
197-
const maybeKeyModifier = /* @__PURE__ */ (0, _vue_shared.makeMap)("left,right");
198-
const isKeyboardEvent = /* @__PURE__ */ (0, _vue_shared.makeMap)(`onkeyup,onkeydown,onkeypress`);
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`);
199197
const resolveModifiers = (key, modifiers, context, loc) => {
200198
const keyModifiers = [];
201199
const nonKeyModifiers = [];
@@ -214,13 +212,15 @@ const resolveModifiers = (key, modifiers, context, loc) => {
214212
else if (isEventOptionModifier(modifier)) eventOptionModifiers.push(modifier);
215213
else {
216214
const keyString = (0, _vue_shared.isString)(key) ? key : (0, _vue_compiler_core.isStaticExp)(key) ? key.content : null;
217-
if (maybeKeyModifier(modifier)) if (keyString) 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);
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);
224224
else keyModifiers.push(modifier);
225225
}
226226
}
@@ -390,7 +390,7 @@ const dataAriaRE = /^(?:data|aria)-/;
390390
const isStringifiableAttr = (name, ns) => {
391391
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);
392392
};
393-
const isNonStringifiable = /* @__PURE__ */ (0, _vue_shared.makeMap)(`caption,thead,tr,th,tbody,td,tfoot,colgroup,col`);
393+
const isNonStringifiable = /*@__PURE__*/ (0, _vue_shared.makeMap)(`caption,thead,tr,th,tbody,td,tfoot,colgroup,col`);
394394
/**
395395
* for a cached node, analyze it and return:
396396
* - false: bailed (contains non-stringifiable props or runtime constant)
@@ -527,7 +527,7 @@ function isValidHTMLNesting(parent, child) {
527527
}
528528
return true;
529529
}
530-
const headings = new Set([
530+
const headings = /* @__PURE__ */ new Set([
531531
"h1",
532532
"h2",
533533
"h3",
@@ -539,7 +539,7 @@ const emptySet = /* @__PURE__ */ new Set([]);
539539
/**
540540
* maps element to set of elements that can be it's children, no other */
541541
const onlyValidChildren = {
542-
head: new Set([
542+
head: /* @__PURE__ */ new Set([
543543
"base",
544544
"basefront",
545545
"bgsound",
@@ -552,24 +552,24 @@ const onlyValidChildren = {
552552
"script",
553553
"template"
554554
]),
555-
optgroup: new Set(["option"]),
556-
select: new Set([
555+
optgroup: /* @__PURE__ */ new Set(["option"]),
556+
select: /* @__PURE__ */ new Set([
557557
"optgroup",
558558
"option",
559559
"hr"
560560
]),
561-
table: new Set([
561+
table: /* @__PURE__ */ new Set([
562562
"caption",
563563
"colgroup",
564564
"tbody",
565565
"tfoot",
566566
"thead"
567567
]),
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"]),
573573
script: emptySet,
574574
iframe: emptySet,
575575
option: emptySet,
@@ -580,30 +580,30 @@ const onlyValidChildren = {
580580
/** maps elements to set of elements which can be it's parent, no other */
581581
const onlyValidParents = {
582582
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([
594594
"tbody",
595595
"thead",
596596
"tfoot"
597597
]),
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"])
603603
};
604604
/** maps element to set of elements that can not be it's children, others can */
605605
const knownInvalidChildren = {
606-
p: new Set([
606+
p: /* @__PURE__ */ new Set([
607607
"address",
608608
"article",
609609
"aside",
@@ -638,7 +638,7 @@ const knownInvalidChildren = {
638638
"table",
639639
"ul"
640640
]),
641-
svg: new Set([
641+
svg: /* @__PURE__ */ new Set([
642642
"b",
643643
"blockquote",
644644
"br",
@@ -679,12 +679,12 @@ const knownInvalidChildren = {
679679
};
680680
/** maps element to set of elements that can not be it's parent, others can */
681681
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"]),
688688
h1: headings,
689689
h2: headings,
690690
h3: headings,

packages/uni-cli-shared/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @vue/compiler-dom v3.6.0-rc.5
2+
* @vue/compiler-dom v3.6.0-rc.6
33
* (c) 2018-present Yuxi (Evan) You and Vue contributors
44
* @license MIT
55
**/
@@ -172,8 +172,6 @@ const transformModel = (dir, node, context) => {
172172
case "file":
173173
isInvalidType = true;
174174
context.onError(createDOMCompilerError(60, dir.loc));
175-
break;
176-
default: break;
177175
}
178176
} else if ((0, _vue_compiler_core.hasDynamicKeyVBind)(node)) directiveToUse = V_MODEL_DYNAMIC;
179177
} else if (tag === "select") directiveToUse = V_MODEL_SELECT;
@@ -184,10 +182,10 @@ const transformModel = (dir, node, context) => {
184182
};
185183
//#endregion
186184
//#region packages/compiler-dom/src/transforms/vOn.ts
187-
const isEventOptionModifier = /* @__PURE__ */ (0, _vue_shared.makeMap)(`passive,once,capture`);
188-
const isNonKeyModifier = /* @__PURE__ */ (0, _vue_shared.makeMap)("stop,prevent,self,ctrl,shift,alt,meta,exact,middle");
189-
const maybeKeyModifier = /* @__PURE__ */ (0, _vue_shared.makeMap)("left,right");
190-
const isKeyboardEvent = /* @__PURE__ */ (0, _vue_shared.makeMap)(`onkeyup,onkeydown,onkeypress`);
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`);
191189
const resolveModifiers = (key, modifiers, context, loc) => {
192190
const keyModifiers = [];
193191
const nonKeyModifiers = [];
@@ -206,13 +204,15 @@ const resolveModifiers = (key, modifiers, context, loc) => {
206204
else if (isEventOptionModifier(modifier)) eventOptionModifiers.push(modifier);
207205
else {
208206
const keyString = (0, _vue_shared.isString)(key) ? key : (0, _vue_compiler_core.isStaticExp)(key) ? key.content : null;
209-
if (maybeKeyModifier(modifier)) if (keyString) 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);
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);
216216
else keyModifiers.push(modifier);
217217
}
218218
}
@@ -377,7 +377,7 @@ const dataAriaRE = /^(?:data|aria)-/;
377377
const isStringifiableAttr = (name, ns) => {
378378
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);
379379
};
380-
const isNonStringifiable = /* @__PURE__ */ (0, _vue_shared.makeMap)(`caption,thead,tr,th,tbody,td,tfoot,colgroup,col`);
380+
const isNonStringifiable = /*@__PURE__*/ (0, _vue_shared.makeMap)(`caption,thead,tr,th,tbody,td,tfoot,colgroup,col`);
381381
/**
382382
* for a cached node, analyze it and return:
383383
* - false: bailed (contains non-stringifiable props or runtime constant)
@@ -511,7 +511,7 @@ function isValidHTMLNesting(parent, child) {
511511
}
512512
return true;
513513
}
514-
const headings = new Set([
514+
const headings = /* @__PURE__ */ new Set([
515515
"h1",
516516
"h2",
517517
"h3",
@@ -523,7 +523,7 @@ const emptySet = /* @__PURE__ */ new Set([]);
523523
/**
524524
* maps element to set of elements that can be it's children, no other */
525525
const onlyValidChildren = {
526-
head: new Set([
526+
head: /* @__PURE__ */ new Set([
527527
"base",
528528
"basefront",
529529
"bgsound",
@@ -536,24 +536,24 @@ const onlyValidChildren = {
536536
"script",
537537
"template"
538538
]),
539-
optgroup: new Set(["option"]),
540-
select: new Set([
539+
optgroup: /* @__PURE__ */ new Set(["option"]),
540+
select: /* @__PURE__ */ new Set([
541541
"optgroup",
542542
"option",
543543
"hr"
544544
]),
545-
table: new Set([
545+
table: /* @__PURE__ */ new Set([
546546
"caption",
547547
"colgroup",
548548
"tbody",
549549
"tfoot",
550550
"thead"
551551
]),
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"]),
557557
script: emptySet,
558558
iframe: emptySet,
559559
option: emptySet,
@@ -564,30 +564,30 @@ const onlyValidChildren = {
564564
/** maps elements to set of elements which can be it's parent, no other */
565565
const onlyValidParents = {
566566
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([
578578
"tbody",
579579
"thead",
580580
"tfoot"
581581
]),
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"])
587587
};
588588
/** maps element to set of elements that can not be it's children, others can */
589589
const knownInvalidChildren = {
590-
p: new Set([
590+
p: /* @__PURE__ */ new Set([
591591
"address",
592592
"article",
593593
"aside",
@@ -622,7 +622,7 @@ const knownInvalidChildren = {
622622
"table",
623623
"ul"
624624
]),
625-
svg: new Set([
625+
svg: /* @__PURE__ */ new Set([
626626
"b",
627627
"blockquote",
628628
"br",
@@ -663,12 +663,12 @@ const knownInvalidChildren = {
663663
};
664664
/** maps element to set of elements that can not be it's parent, others can */
665665
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"]),
672672
h1: headings,
673673
h2: headings,
674674
h3: headings,

0 commit comments

Comments
 (0)