@vue/runtime-dom 3.5.20 → 3.5.21

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/runtime-dom v3.5.20
2
+ * @vue/runtime-dom v3.5.21
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -347,7 +347,7 @@ function getTransitionInfo(el, expectedType) {
347
347
  type = timeout > 0 ? transitionTimeout > animationTimeout ? TRANSITION : ANIMATION : null;
348
348
  propCount = type ? type === TRANSITION ? transitionDurations.length : animationDurations.length : 0;
349
349
  }
350
- const hasTransform = type === TRANSITION && /\b(transform|all)(,|$)/.test(
350
+ const hasTransform = type === TRANSITION && /\b(?:transform|all)(?:,|$)/.test(
351
351
  getStyleProperties(`${TRANSITION}Property`).toString()
352
352
  );
353
353
  return {
@@ -440,7 +440,7 @@ function useCssVars(getter) {
440
440
  return;
441
441
  }
442
442
 
443
- const displayRE = /(^|;)\s*display\s*:/;
443
+ const displayRE = /(?:^|;)\s*display\s*:/;
444
444
  function patchStyle(el, prev, next) {
445
445
  const style = el.style;
446
446
  const isCssString = shared.isString(next);
@@ -763,11 +763,10 @@ function shouldSetAsProp(el, key, value, isSVG) {
763
763
  }
764
764
 
765
765
  const REMOVAL = {};
766
- /*! #__NO_SIDE_EFFECTS__ */
767
766
  // @__NO_SIDE_EFFECTS__
768
767
  function defineCustomElement(options, extraOptions, _createApp) {
769
- const Comp = runtimeCore.defineComponent(options, extraOptions);
770
- if (shared.isPlainObject(Comp)) shared.extend(Comp, extraOptions);
768
+ let Comp = runtimeCore.defineComponent(options, extraOptions);
769
+ if (shared.isPlainObject(Comp)) Comp = shared.extend({}, Comp, extraOptions);
771
770
  class VueCustomElement extends VueElement {
772
771
  constructor(initialProps) {
773
772
  super(Comp, initialProps, _createApp);
@@ -776,7 +775,6 @@ function defineCustomElement(options, extraOptions, _createApp) {
776
775
  VueCustomElement.def = Comp;
777
776
  return VueCustomElement;
778
777
  }
779
-
780
778
  const defineSSRCustomElement = (/* @__NO_SIDE_EFFECTS__ */ (options, extraOptions) => {
781
779
  return /* @__PURE__ */ defineCustomElement(options, extraOptions, createSSRApp);
782
780
  });
@@ -1249,7 +1247,7 @@ const TransitionGroupImpl = /* @__PURE__ */ decorate({
1249
1247
  if (e && e.target !== el) {
1250
1248
  return;
1251
1249
  }
1252
- if (!e || /transform$/.test(e.propertyName)) {
1250
+ if (!e || e.propertyName.endsWith("transform")) {
1253
1251
  el.removeEventListener("transitionend", cb);
1254
1252
  el[moveCbKey] = null;
1255
1253
  removeTransitionClass(el, moveClass);
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/runtime-dom v3.5.20
2
+ * @vue/runtime-dom v3.5.21
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -343,7 +343,7 @@ function getTransitionInfo(el, expectedType) {
343
343
  type = timeout > 0 ? transitionTimeout > animationTimeout ? TRANSITION : ANIMATION : null;
344
344
  propCount = type ? type === TRANSITION ? transitionDurations.length : animationDurations.length : 0;
345
345
  }
346
- const hasTransform = type === TRANSITION && /\b(transform|all)(,|$)/.test(
346
+ const hasTransform = type === TRANSITION && /\b(?:transform|all)(?:,|$)/.test(
347
347
  getStyleProperties(`${TRANSITION}Property`).toString()
348
348
  );
349
349
  return {
@@ -436,7 +436,7 @@ function useCssVars(getter) {
436
436
  return;
437
437
  }
438
438
 
439
- const displayRE = /(^|;)\s*display\s*:/;
439
+ const displayRE = /(?:^|;)\s*display\s*:/;
440
440
  function patchStyle(el, prev, next) {
441
441
  const style = el.style;
442
442
  const isCssString = shared.isString(next);
@@ -735,11 +735,10 @@ function shouldSetAsProp(el, key, value, isSVG) {
735
735
  }
736
736
 
737
737
  const REMOVAL = {};
738
- /*! #__NO_SIDE_EFFECTS__ */
739
738
  // @__NO_SIDE_EFFECTS__
740
739
  function defineCustomElement(options, extraOptions, _createApp) {
741
- const Comp = runtimeCore.defineComponent(options, extraOptions);
742
- if (shared.isPlainObject(Comp)) shared.extend(Comp, extraOptions);
740
+ let Comp = runtimeCore.defineComponent(options, extraOptions);
741
+ if (shared.isPlainObject(Comp)) Comp = shared.extend({}, Comp, extraOptions);
743
742
  class VueCustomElement extends VueElement {
744
743
  constructor(initialProps) {
745
744
  super(Comp, initialProps, _createApp);
@@ -748,7 +747,6 @@ function defineCustomElement(options, extraOptions, _createApp) {
748
747
  VueCustomElement.def = Comp;
749
748
  return VueCustomElement;
750
749
  }
751
-
752
750
  const defineSSRCustomElement = (/* @__NO_SIDE_EFFECTS__ */ (options, extraOptions) => {
753
751
  return /* @__PURE__ */ defineCustomElement(options, extraOptions, createSSRApp);
754
752
  });
@@ -1159,7 +1157,7 @@ const TransitionGroupImpl = /* @__PURE__ */ decorate({
1159
1157
  if (e && e.target !== el) {
1160
1158
  return;
1161
1159
  }
1162
- if (!e || /transform$/.test(e.propertyName)) {
1160
+ if (!e || e.propertyName.endsWith("transform")) {
1163
1161
  el.removeEventListener("transitionend", cb);
1164
1162
  el[moveCbKey] = null;
1165
1163
  removeTransitionClass(el, moveClass);