@vue/runtime-dom 3.4.23 → 3.4.24

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.4.23
2
+ * @vue/runtime-dom v3.4.24
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -196,8 +196,8 @@ function resolveTransitionProps(rawProps) {
196
196
  el._isLeaving = true;
197
197
  const resolve = () => finishLeave(el, done);
198
198
  addTransitionClass(el, leaveFromClass);
199
- forceReflow();
200
199
  addTransitionClass(el, leaveActiveClass);
200
+ forceReflow();
201
201
  nextFrame(() => {
202
202
  if (!el._isLeaving) {
203
203
  return;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/runtime-dom v3.4.23
2
+ * @vue/runtime-dom v3.4.24
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -196,8 +196,8 @@ function resolveTransitionProps(rawProps) {
196
196
  el._isLeaving = true;
197
197
  const resolve = () => finishLeave(el, done);
198
198
  addTransitionClass(el, leaveFromClass);
199
- forceReflow();
200
199
  addTransitionClass(el, leaveActiveClass);
200
+ forceReflow();
201
201
  nextFrame(() => {
202
202
  if (!el._isLeaving) {
203
203
  return;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/runtime-dom v3.4.23
2
+ * @vue/runtime-dom v3.4.24
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -7,7 +7,7 @@
7
7
  // @__NO_SIDE_EFFECTS__
8
8
  function makeMap(str, expectsLowerCase) {
9
9
  const set = new Set(str.split(","));
10
- return expectsLowerCase ? (val) => set.has(val.toLowerCase()) : (val) => set.has(val);
10
+ return (val) => set.has(val);
11
11
  }
12
12
 
13
13
  const EMPTY_OBJ = Object.freeze({}) ;
@@ -2356,21 +2356,21 @@ function renderComponentRoot(instance) {
2356
2356
  vnode,
2357
2357
  proxy,
2358
2358
  withProxy,
2359
- props,
2360
2359
  propsOptions: [propsOptions],
2361
2360
  slots,
2362
2361
  attrs,
2363
2362
  emit,
2364
2363
  render,
2365
2364
  renderCache,
2365
+ props,
2366
2366
  data,
2367
2367
  setupState,
2368
2368
  ctx,
2369
2369
  inheritAttrs
2370
2370
  } = instance;
2371
+ const prev = setCurrentRenderingInstance(instance);
2371
2372
  let result;
2372
2373
  let fallthroughAttrs;
2373
- const prev = setCurrentRenderingInstance(instance);
2374
2374
  {
2375
2375
  accessedAttrs = false;
2376
2376
  }
@@ -2392,7 +2392,7 @@ function renderComponentRoot(instance) {
2392
2392
  thisProxy,
2393
2393
  proxyToUse,
2394
2394
  renderCache,
2395
- props,
2395
+ true ? shallowReadonly(props) : props,
2396
2396
  setupState,
2397
2397
  data,
2398
2398
  ctx
@@ -2406,7 +2406,7 @@ function renderComponentRoot(instance) {
2406
2406
  }
2407
2407
  result = normalizeVNode(
2408
2408
  render2.length > 1 ? render2(
2409
- props,
2409
+ true ? shallowReadonly(props) : props,
2410
2410
  true ? {
2411
2411
  get attrs() {
2412
2412
  markAttrsAccessed();
@@ -2416,9 +2416,8 @@ function renderComponentRoot(instance) {
2416
2416
  emit
2417
2417
  } : { attrs, slots, emit }
2418
2418
  ) : render2(
2419
- props,
2419
+ true ? shallowReadonly(props) : props,
2420
2420
  null
2421
- /* we know it doesn't need it */
2422
2421
  )
2423
2422
  );
2424
2423
  fallthroughAttrs = Component.props ? attrs : getFunctionalFallthrough(attrs);
@@ -3885,11 +3884,19 @@ function emptyPlaceholder(vnode) {
3885
3884
  }
3886
3885
  }
3887
3886
  function getKeepAliveChild(vnode) {
3888
- return isKeepAlive(vnode) ? (
3889
- // #7121 ensure get the child component subtree in case
3890
- // it's been replaced during HMR
3891
- vnode.component ? vnode.component.subTree : vnode.children ? vnode.children[0] : void 0
3892
- ) : vnode;
3887
+ if (!isKeepAlive(vnode)) {
3888
+ return vnode;
3889
+ }
3890
+ if (vnode.component) {
3891
+ return vnode.component.subTree;
3892
+ }
3893
+ const { shapeFlag, children } = vnode;
3894
+ if (shapeFlag & 16) {
3895
+ return children[0];
3896
+ }
3897
+ if (shapeFlag & 32 && isFunction(children.default)) {
3898
+ return children.default();
3899
+ }
3893
3900
  }
3894
3901
  function setTransitionHooks(vnode, hooks) {
3895
3902
  if (vnode.shapeFlag & 6 && vnode.component) {
@@ -5941,21 +5948,17 @@ const normalizeVNodeSlots = (instance, children) => {
5941
5948
  instance.slots.default = () => normalized;
5942
5949
  };
5943
5950
  const initSlots = (instance, children) => {
5951
+ const slots = instance.slots = createInternalObject();
5944
5952
  if (instance.vnode.shapeFlag & 32) {
5945
5953
  const type = children._;
5946
5954
  if (type) {
5947
- instance.slots = toRaw(children);
5948
- def(instance.slots, "_", type);
5955
+ extend(slots, children);
5956
+ def(slots, "_", type);
5949
5957
  } else {
5950
- normalizeObjectSlots(
5951
- children,
5952
- instance.slots = createInternalObject());
5953
- }
5954
- } else {
5955
- instance.slots = createInternalObject();
5956
- if (children) {
5957
- normalizeVNodeSlots(instance, children);
5958
+ normalizeObjectSlots(children, slots);
5958
5959
  }
5960
+ } else if (children) {
5961
+ normalizeVNodeSlots(instance, children);
5959
5962
  }
5960
5963
  };
5961
5964
  const updateSlots = (instance, children, optimized) => {
@@ -9549,7 +9552,7 @@ function isMemoSame(cached, memo) {
9549
9552
  return true;
9550
9553
  }
9551
9554
 
9552
- const version = "3.4.23";
9555
+ const version = "3.4.24";
9553
9556
  const warn = warn$1 ;
9554
9557
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
9555
9558
  const devtools = devtools$1 ;
@@ -9745,8 +9748,8 @@ function resolveTransitionProps(rawProps) {
9745
9748
  el._isLeaving = true;
9746
9749
  const resolve = () => finishLeave(el, done);
9747
9750
  addTransitionClass(el, leaveFromClass);
9748
- forceReflow();
9749
9751
  addTransitionClass(el, leaveActiveClass);
9752
+ forceReflow();
9750
9753
  nextFrame(() => {
9751
9754
  if (!el._isLeaving) {
9752
9755
  return;