@vue/compat 3.4.16 → 3.4.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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compat v3.4.16
2
+ * @vue/compat v3.4.18
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -6475,7 +6475,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
6475
6475
  return vm;
6476
6476
  }
6477
6477
  }
6478
- Vue.version = `2.6.14-compat:${"3.4.16"}`;
6478
+ Vue.version = `2.6.14-compat:${"3.4.18"}`;
6479
6479
  Vue.config = singletonApp.config;
6480
6480
  Vue.use = (p, ...options) => {
6481
6481
  if (p && isFunction(p.install)) {
@@ -7415,7 +7415,7 @@ function normalizePropsOptions(comp, appContext, asMixin = false) {
7415
7415
  return res;
7416
7416
  }
7417
7417
  function validatePropName(key) {
7418
- if (key[0] !== "$") {
7418
+ if (key[0] !== "$" && !isReservedProp(key)) {
7419
7419
  return true;
7420
7420
  } else if (!!(process.env.NODE_ENV !== "production")) {
7421
7421
  warn$1(`Invalid prop name: "${key}" is a reserved property.`);
@@ -11381,7 +11381,7 @@ function isMemoSame(cached, memo) {
11381
11381
  return true;
11382
11382
  }
11383
11383
 
11384
- const version = "3.4.16";
11384
+ const version = "3.4.18";
11385
11385
  const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
11386
11386
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
11387
11387
  const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
@@ -11910,10 +11910,12 @@ function setVarsOnNode(el, vars) {
11910
11910
  }
11911
11911
  }
11912
11912
 
11913
+ const displayRE = /(^|;)\s*display\s*:/;
11913
11914
  function patchStyle(el, prev, next) {
11914
11915
  const style = el.style;
11915
- const currentDisplay = style.display;
11916
11916
  const isCssString = isString(next);
11917
+ const currentDisplay = style.display;
11918
+ let hasControlledDisplay = false;
11917
11919
  if (next && !isCssString) {
11918
11920
  if (prev && !isString(prev)) {
11919
11921
  for (const key in prev) {
@@ -11923,6 +11925,9 @@ function patchStyle(el, prev, next) {
11923
11925
  }
11924
11926
  }
11925
11927
  for (const key in next) {
11928
+ if (key === "display") {
11929
+ hasControlledDisplay = true;
11930
+ }
11926
11931
  setStyle(style, key, next[key]);
11927
11932
  }
11928
11933
  } else {
@@ -11933,13 +11938,14 @@ function patchStyle(el, prev, next) {
11933
11938
  next += ";" + cssVarText;
11934
11939
  }
11935
11940
  style.cssText = next;
11941
+ hasControlledDisplay = displayRE.test(next);
11936
11942
  }
11937
11943
  } else if (prev) {
11938
11944
  el.removeAttribute("style");
11939
11945
  }
11940
11946
  }
11941
11947
  if (vShowOldKey in el) {
11942
- el[vShowOldKey] = style.display;
11948
+ el[vShowOldKey] = hasControlledDisplay ? style.display : "";
11943
11949
  style.display = currentDisplay;
11944
11950
  }
11945
11951
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compat v3.4.16
2
+ * @vue/compat v3.4.18
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -6434,7 +6434,7 @@ If this is a native custom element, make sure to exclude it from component resol
6434
6434
  return vm;
6435
6435
  }
6436
6436
  }
6437
- Vue.version = `2.6.14-compat:${"3.4.16"}`;
6437
+ Vue.version = `2.6.14-compat:${"3.4.18"}`;
6438
6438
  Vue.config = singletonApp.config;
6439
6439
  Vue.use = (p, ...options) => {
6440
6440
  if (p && isFunction(p.install)) {
@@ -7371,7 +7371,7 @@ If you want to remount the same app, move your app creation logic into a factory
7371
7371
  return res;
7372
7372
  }
7373
7373
  function validatePropName(key) {
7374
- if (key[0] !== "$") {
7374
+ if (key[0] !== "$" && !isReservedProp(key)) {
7375
7375
  return true;
7376
7376
  } else {
7377
7377
  warn$1(`Invalid prop name: "${key}" is a reserved property.`);
@@ -11256,7 +11256,7 @@ Component that was made reactive: `,
11256
11256
  return true;
11257
11257
  }
11258
11258
 
11259
- const version = "3.4.16";
11259
+ const version = "3.4.18";
11260
11260
  const warn = warn$1 ;
11261
11261
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
11262
11262
  const devtools = devtools$1 ;
@@ -11770,10 +11770,12 @@ Component that was made reactive: `,
11770
11770
  }
11771
11771
  }
11772
11772
 
11773
+ const displayRE = /(^|;)\s*display\s*:/;
11773
11774
  function patchStyle(el, prev, next) {
11774
11775
  const style = el.style;
11775
- const currentDisplay = style.display;
11776
11776
  const isCssString = isString(next);
11777
+ const currentDisplay = style.display;
11778
+ let hasControlledDisplay = false;
11777
11779
  if (next && !isCssString) {
11778
11780
  if (prev && !isString(prev)) {
11779
11781
  for (const key in prev) {
@@ -11783,6 +11785,9 @@ Component that was made reactive: `,
11783
11785
  }
11784
11786
  }
11785
11787
  for (const key in next) {
11788
+ if (key === "display") {
11789
+ hasControlledDisplay = true;
11790
+ }
11786
11791
  setStyle(style, key, next[key]);
11787
11792
  }
11788
11793
  } else {
@@ -11793,13 +11798,14 @@ Component that was made reactive: `,
11793
11798
  next += ";" + cssVarText;
11794
11799
  }
11795
11800
  style.cssText = next;
11801
+ hasControlledDisplay = displayRE.test(next);
11796
11802
  }
11797
11803
  } else if (prev) {
11798
11804
  el.removeAttribute("style");
11799
11805
  }
11800
11806
  }
11801
11807
  if (vShowOldKey in el) {
11802
- el[vShowOldKey] = style.display;
11808
+ el[vShowOldKey] = hasControlledDisplay ? style.display : "";
11803
11809
  style.display = currentDisplay;
11804
11810
  }
11805
11811
  }