vue 3.5.32 → 3.5.33

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 v3.5.32
2
+ * vue v3.5.33
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -1,5 +1,5 @@
1
1
  /**
2
- * vue v3.5.32
2
+ * vue v3.5.33
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -503,7 +503,18 @@ var Vue = (function (exports) {
503
503
  */
504
504
  off() {
505
505
  if (this._on > 0 && --this._on === 0) {
506
- activeEffectScope = this.prevScope;
506
+ if (activeEffectScope === this) {
507
+ activeEffectScope = this.prevScope;
508
+ } else {
509
+ let current = activeEffectScope;
510
+ while (current) {
511
+ if (current.prevScope === this) {
512
+ current.prevScope = this.prevScope;
513
+ break;
514
+ }
515
+ current = current.prevScope;
516
+ }
517
+ }
507
518
  this.prevScope = void 0;
508
519
  }
509
520
  }
@@ -3275,7 +3286,7 @@ var Vue = (function (exports) {
3275
3286
  mc: mountChildren,
3276
3287
  pc: patchChildren,
3277
3288
  pbc: patchBlockChildren,
3278
- o: { insert, querySelector, createText, createComment }
3289
+ o: { insert, querySelector, createText, createComment, parentNode }
3279
3290
  } = internals;
3280
3291
  const disabled = isTeleportDisabled(n2.props);
3281
3292
  let { dynamicChildren } = n2;
@@ -3323,7 +3334,8 @@ var Vue = (function (exports) {
3323
3334
  if (pendingMounts.get(vnode) !== mountJob) return;
3324
3335
  pendingMounts.delete(vnode);
3325
3336
  if (isTeleportDisabled(vnode.props)) {
3326
- mount(vnode, container, vnode.anchor);
3337
+ const mountContainer = parentNode(vnode.el) || container;
3338
+ mount(vnode, mountContainer, vnode.anchor);
3327
3339
  updateCssVars(vnode, true);
3328
3340
  }
3329
3341
  mountToTarget(vnode);
@@ -3485,7 +3497,7 @@ var Vue = (function (exports) {
3485
3497
  if (isReorder) {
3486
3498
  insert(el, container, parentAnchor);
3487
3499
  }
3488
- if (!isReorder || isTeleportDisabled(props)) {
3500
+ if (!pendingMounts.has(vnode) && (!isReorder || isTeleportDisabled(props))) {
3489
3501
  if (shapeFlag & 16) {
3490
3502
  for (let i = 0; i < children.length; i++) {
3491
3503
  move(
@@ -3659,10 +3671,14 @@ var Vue = (function (exports) {
3659
3671
  const state = useTransitionState();
3660
3672
  return () => {
3661
3673
  const children = slots.default && getTransitionRawChildren(slots.default(), true);
3662
- if (!children || !children.length) {
3674
+ const child = children && children.length ? findNonCommentChild(children) : (
3675
+ // Keep explicit default-slot conditionals on the same transition path
3676
+ // as regular v-if branches, which render a comment placeholder.
3677
+ instance.subTree ? createCommentVNode() : void 0
3678
+ );
3679
+ if (!child) {
3663
3680
  return;
3664
3681
  }
3665
- const child = findNonCommentChild(children);
3666
3682
  const rawProps = toRaw(props);
3667
3683
  const { mode } = rawProps;
3668
3684
  if (mode && mode !== "in-out" && mode !== "out-in" && mode !== "default") {
@@ -10819,7 +10835,7 @@ Component that was made reactive: `,
10819
10835
  return true;
10820
10836
  }
10821
10837
 
10822
- const version = "3.5.32";
10838
+ const version = "3.5.33";
10823
10839
  const warn = warn$1 ;
10824
10840
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
10825
10841
  const devtools = devtools$1 ;
@@ -11347,7 +11363,19 @@ Component that was made reactive: `,
11347
11363
  if (key === "display") {
11348
11364
  hasControlledDisplay = true;
11349
11365
  }
11350
- setStyle(style, key, next[key]);
11366
+ const value = next[key];
11367
+ if (value != null) {
11368
+ if (!shouldPreserveTextareaResizeStyle(
11369
+ el,
11370
+ key,
11371
+ !isString(prev) && prev ? prev[key] : void 0,
11372
+ value
11373
+ )) {
11374
+ setStyle(style, key, value);
11375
+ }
11376
+ } else {
11377
+ setStyle(style, key, "");
11378
+ }
11351
11379
  }
11352
11380
  } else {
11353
11381
  if (isCssString) {
@@ -11420,6 +11448,9 @@ Component that was made reactive: `,
11420
11448
  }
11421
11449
  return rawName;
11422
11450
  }
11451
+ function shouldPreserveTextareaResizeStyle(el, key, prev, next) {
11452
+ return el.tagName === "TEXTAREA" && (key === "width" || key === "height") && isString(next) && prev === next;
11453
+ }
11423
11454
 
11424
11455
  const xlinkNS = "http://www.w3.org/1999/xlink";
11425
11456
  function patchAttr(el, key, value, isSVG, instance, isBoolean = isSpecialBooleanAttr(key)) {