@vue/compat 3.5.4 → 3.5.6

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.5.4
2
+ * @vue/compat v3.5.6
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -465,7 +465,7 @@ class ReactiveEffect {
465
465
  /**
466
466
  * @internal
467
467
  */
468
- this.nextEffect = void 0;
468
+ this.next = void 0;
469
469
  /**
470
470
  * @internal
471
471
  */
@@ -495,9 +495,7 @@ class ReactiveEffect {
495
495
  return;
496
496
  }
497
497
  if (!(this.flags & 8)) {
498
- this.flags |= 8;
499
- this.nextEffect = batchedEffect;
500
- batchedEffect = this;
498
+ batch(this);
501
499
  }
502
500
  }
503
501
  run() {
@@ -558,7 +556,12 @@ class ReactiveEffect {
558
556
  }
559
557
  }
560
558
  let batchDepth = 0;
561
- let batchedEffect;
559
+ let batchedSub;
560
+ function batch(sub) {
561
+ sub.flags |= 8;
562
+ sub.next = batchedSub;
563
+ batchedSub = sub;
564
+ }
562
565
  function startBatch() {
563
566
  batchDepth++;
564
567
  }
@@ -567,15 +570,16 @@ function endBatch() {
567
570
  return;
568
571
  }
569
572
  let error;
570
- while (batchedEffect) {
571
- let e = batchedEffect;
572
- batchedEffect = void 0;
573
+ while (batchedSub) {
574
+ let e = batchedSub;
575
+ batchedSub = void 0;
573
576
  while (e) {
574
- const next = e.nextEffect;
575
- e.nextEffect = void 0;
577
+ const next = e.next;
578
+ e.next = void 0;
576
579
  e.flags &= ~8;
577
580
  if (e.flags & 1) {
578
581
  try {
582
+ ;
579
583
  e.trigger();
580
584
  } catch (err) {
581
585
  if (!error) error = err;
@@ -596,9 +600,11 @@ function prepareDeps(sub) {
596
600
  function cleanupDeps(sub) {
597
601
  let head;
598
602
  let tail = sub.depsTail;
599
- for (let link = tail; link; link = link.prevDep) {
603
+ let link = tail;
604
+ while (link) {
605
+ const prev = link.prevDep;
600
606
  if (link.version === -1) {
601
- if (link === tail) tail = link.prevDep;
607
+ if (link === tail) tail = prev;
602
608
  removeSub(link);
603
609
  removeDep(link);
604
610
  } else {
@@ -606,13 +612,14 @@ function cleanupDeps(sub) {
606
612
  }
607
613
  link.dep.activeLink = link.prevActiveLink;
608
614
  link.prevActiveLink = void 0;
615
+ link = prev;
609
616
  }
610
617
  sub.deps = head;
611
618
  sub.depsTail = tail;
612
619
  }
613
620
  function isDirty(sub) {
614
621
  for (let link = sub.deps; link; link = link.nextDep) {
615
- if (link.dep.version !== link.version || link.dep.computed && refreshComputed(link.dep.computed) || link.dep.version !== link.version) {
622
+ if (link.dep.version !== link.version || link.dep.computed && (refreshComputed(link.dep.computed) || link.dep.version !== link.version)) {
616
623
  return true;
617
624
  }
618
625
  }
@@ -632,7 +639,7 @@ function refreshComputed(computed) {
632
639
  computed.globalVersion = globalVersion;
633
640
  const dep = computed.dep;
634
641
  computed.flags |= 2;
635
- if (dep.version > 0 && !computed.isSSR && !isDirty(computed)) {
642
+ if (dep.version > 0 && !computed.isSSR && computed.deps && !isDirty(computed)) {
636
643
  computed.flags &= ~2;
637
644
  return;
638
645
  }
@@ -734,6 +741,14 @@ function cleanupEffect(e) {
734
741
  }
735
742
 
736
743
  let globalVersion = 0;
744
+ class Link {
745
+ constructor(sub, dep) {
746
+ this.sub = sub;
747
+ this.dep = dep;
748
+ this.version = dep.version;
749
+ this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
750
+ }
751
+ }
737
752
  class Dep {
738
753
  constructor(computed) {
739
754
  this.computed = computed;
@@ -756,16 +771,7 @@ class Dep {
756
771
  }
757
772
  let link = this.activeLink;
758
773
  if (link === void 0 || link.sub !== activeSub) {
759
- link = this.activeLink = {
760
- dep: this,
761
- sub: activeSub,
762
- version: this.version,
763
- nextDep: void 0,
764
- prevDep: void 0,
765
- nextSub: void 0,
766
- prevSub: void 0,
767
- prevActiveLink: void 0
768
- };
774
+ link = this.activeLink = new Link(activeSub, this);
769
775
  if (!activeSub.deps) {
770
776
  activeSub.deps = activeSub.depsTail = link;
771
777
  } else {
@@ -815,7 +821,7 @@ class Dep {
815
821
  try {
816
822
  if (!!(process.env.NODE_ENV !== "production")) {
817
823
  for (let head = this.subsHead; head; head = head.nextSub) {
818
- if (!!(process.env.NODE_ENV !== "production") && head.sub.onTrigger && !(head.sub.flags & 8)) {
824
+ if (head.sub.onTrigger && !(head.sub.flags & 8)) {
819
825
  head.sub.onTrigger(
820
826
  extend(
821
827
  {
@@ -828,7 +834,10 @@ class Dep {
828
834
  }
829
835
  }
830
836
  for (let link = this.subs; link; link = link.prevSub) {
831
- link.sub.notify();
837
+ if (link.sub.notify()) {
838
+ ;
839
+ link.sub.dep.notify();
840
+ }
832
841
  }
833
842
  } finally {
834
843
  endBatch();
@@ -1907,8 +1916,10 @@ class ComputedRefImpl {
1907
1916
  */
1908
1917
  notify() {
1909
1918
  this.flags |= 16;
1910
- if (activeSub !== this) {
1911
- this.dep.notify();
1919
+ if (!(this.flags & 8) && // avoid infinite self recursion
1920
+ activeSub !== this) {
1921
+ batch(this);
1922
+ return true;
1912
1923
  } else if (!!(process.env.NODE_ENV !== "production")) ;
1913
1924
  }
1914
1925
  get value() {
@@ -2056,20 +2067,12 @@ function watch$1(source, cb, options = EMPTY_OBJ) {
2056
2067
  remove(scope.effects, effect);
2057
2068
  }
2058
2069
  };
2059
- if (once) {
2060
- if (cb) {
2061
- const _cb = cb;
2062
- cb = (...args) => {
2063
- _cb(...args);
2064
- watchHandle();
2065
- };
2066
- } else {
2067
- const _getter = getter;
2068
- getter = () => {
2069
- _getter();
2070
- watchHandle();
2071
- };
2072
- }
2070
+ if (once && cb) {
2071
+ const _cb = cb;
2072
+ cb = (...args) => {
2073
+ _cb(...args);
2074
+ watchHandle();
2075
+ };
2073
2076
  }
2074
2077
  let oldValue = isMultiSource ? new Array(source.length).fill(INITIAL_WATCHER_VALUE) : INITIAL_WATCHER_VALUE;
2075
2078
  const job = (immediateFirstRun) => {
@@ -2693,7 +2696,9 @@ function reload(id, newComp) {
2693
2696
  dirtyInstances.delete(instance);
2694
2697
  } else if (instance.parent) {
2695
2698
  queueJob(() => {
2699
+ isHmrUpdating = true;
2696
2700
  instance.parent.update();
2701
+ isHmrUpdating = false;
2697
2702
  dirtyInstances.delete(instance);
2698
2703
  });
2699
2704
  } else if (instance.appContext.reload) {
@@ -3515,6 +3520,9 @@ const TeleportImpl = {
3515
3520
  insert(mainAnchor, container, anchor);
3516
3521
  const mount = (container2, anchor2) => {
3517
3522
  if (shapeFlag & 16) {
3523
+ if (parentComponent && parentComponent.isCE) {
3524
+ parentComponent.ce._teleportTarget = container2;
3525
+ }
3518
3526
  mountChildren(
3519
3527
  children,
3520
3528
  container2,
@@ -4549,7 +4557,11 @@ Server rendered element contains more child nodes than client vdom.`
4549
4557
  remove(cur);
4550
4558
  }
4551
4559
  } else if (shapeFlag & 8) {
4552
- if (el.textContent !== vnode.children) {
4560
+ let clientText = vnode.children;
4561
+ if (clientText[0] === "\n" && (el.tagName === "PRE" || el.tagName === "TEXTAREA")) {
4562
+ clientText = clientText.slice(1);
4563
+ }
4564
+ if (el.textContent !== clientText) {
4553
4565
  if (!isMismatchAllowed(el, 0 /* TEXT */)) {
4554
4566
  (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_HYDRATION_MISMATCH_DETAILS__) && warn$1(
4555
4567
  `Hydration text content mismatch on`,
@@ -4759,7 +4771,7 @@ Server rendered element contains fewer child nodes than client vdom.`
4759
4771
  }
4760
4772
  };
4761
4773
  const isTemplateNode = (node) => {
4762
- return node.nodeType === 1 && node.tagName.toLowerCase() === "template";
4774
+ return node.nodeType === 1 && node.tagName === "TEMPLATE";
4763
4775
  };
4764
4776
  return [hydrate, hydrateNode];
4765
4777
  }
@@ -5111,7 +5123,7 @@ function defineAsyncComponent(source) {
5111
5123
  load().then(() => {
5112
5124
  loaded.value = true;
5113
5125
  if (instance.parent && isKeepAlive(instance.parent.vnode)) {
5114
- queueJob(instance.parent.update);
5126
+ instance.parent.update();
5115
5127
  }
5116
5128
  }).catch((err) => {
5117
5129
  onError(err);
@@ -7064,7 +7076,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
7064
7076
  return vm;
7065
7077
  }
7066
7078
  }
7067
- Vue.version = `2.6.14-compat:${"3.5.4"}`;
7079
+ Vue.version = `2.6.14-compat:${"3.5.6"}`;
7068
7080
  Vue.config = singletonApp.config;
7069
7081
  Vue.use = (plugin, ...options) => {
7070
7082
  if (plugin && isFunction(plugin.install)) {
@@ -8926,6 +8938,7 @@ function baseCreateRenderer(options, createHydrationFns) {
8926
8938
  }
8927
8939
  }
8928
8940
  if (instance.asyncDep) {
8941
+ if (!!(process.env.NODE_ENV !== "production") && isHmrUpdating) initialVNode.el = null;
8929
8942
  parentSuspense && parentSuspense.registerDep(instance, setupRenderEffect, optimized);
8930
8943
  if (!initialVNode.el) {
8931
8944
  const placeholder = instance.subTree = createVNode(Comment);
@@ -9921,11 +9934,12 @@ function doWatch(source, cb, options = EMPTY_OBJ) {
9921
9934
  } else if (!cb || immediate) {
9922
9935
  baseWatchOptions.once = true;
9923
9936
  } else {
9924
- return {
9925
- stop: NOOP,
9926
- resume: NOOP,
9927
- pause: NOOP
9937
+ const watchStopHandle = () => {
9928
9938
  };
9939
+ watchStopHandle.stop = NOOP;
9940
+ watchStopHandle.resume = NOOP;
9941
+ watchStopHandle.pause = NOOP;
9942
+ return watchStopHandle;
9929
9943
  }
9930
9944
  }
9931
9945
  const instance = currentInstance;
@@ -12231,7 +12245,7 @@ function isMemoSame(cached, memo) {
12231
12245
  return true;
12232
12246
  }
12233
12247
 
12234
- const version = "3.5.4";
12248
+ const version = "3.5.6";
12235
12249
  const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
12236
12250
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
12237
12251
  const devtools = !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
@@ -13219,6 +13233,7 @@ class VueElement extends BaseClass {
13219
13233
  }
13220
13234
  }
13221
13235
  connectedCallback() {
13236
+ if (!this.isConnected) return;
13222
13237
  if (!this.shadowRoot) {
13223
13238
  this._parseSlots();
13224
13239
  }
@@ -13261,7 +13276,7 @@ class VueElement extends BaseClass {
13261
13276
  this._ob = null;
13262
13277
  }
13263
13278
  this._app && this._app.unmount();
13264
- this._instance.ce = void 0;
13279
+ if (this._instance) this._instance.ce = void 0;
13265
13280
  this._app = this._instance = null;
13266
13281
  }
13267
13282
  });
@@ -13480,7 +13495,7 @@ class VueElement extends BaseClass {
13480
13495
  }
13481
13496
  }
13482
13497
  /**
13483
- * Only called when shaddowRoot is false
13498
+ * Only called when shadowRoot is false
13484
13499
  */
13485
13500
  _parseSlots() {
13486
13501
  const slots = this._slots = {};
@@ -13492,10 +13507,10 @@ class VueElement extends BaseClass {
13492
13507
  }
13493
13508
  }
13494
13509
  /**
13495
- * Only called when shaddowRoot is false
13510
+ * Only called when shadowRoot is false
13496
13511
  */
13497
13512
  _renderSlots() {
13498
- const outlets = this.querySelectorAll("slot");
13513
+ const outlets = (this._teleportTarget || this).querySelectorAll("slot");
13499
13514
  const scopeId = this._instance.type.__scopeId;
13500
13515
  for (let i = 0; i < outlets.length; i++) {
13501
13516
  const o = outlets[i];
@@ -13683,7 +13698,7 @@ const TransitionGroupImpl = /* @__PURE__ */ decorate({
13683
13698
  child,
13684
13699
  resolveTransitionHooks(child, cssTransitionProps, state, instance)
13685
13700
  );
13686
- } else if (!!(process.env.NODE_ENV !== "production")) {
13701
+ } else if (!!(process.env.NODE_ENV !== "production") && child.type !== Text) {
13687
13702
  warn(`<TransitionGroup> children must be keyed.`);
13688
13703
  }
13689
13704
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compat v3.5.4
2
+ * @vue/compat v3.5.6
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -468,7 +468,7 @@ var Vue = (function () {
468
468
  /**
469
469
  * @internal
470
470
  */
471
- this.nextEffect = void 0;
471
+ this.next = void 0;
472
472
  /**
473
473
  * @internal
474
474
  */
@@ -498,9 +498,7 @@ var Vue = (function () {
498
498
  return;
499
499
  }
500
500
  if (!(this.flags & 8)) {
501
- this.flags |= 8;
502
- this.nextEffect = batchedEffect;
503
- batchedEffect = this;
501
+ batch(this);
504
502
  }
505
503
  }
506
504
  run() {
@@ -561,7 +559,12 @@ var Vue = (function () {
561
559
  }
562
560
  }
563
561
  let batchDepth = 0;
564
- let batchedEffect;
562
+ let batchedSub;
563
+ function batch(sub) {
564
+ sub.flags |= 8;
565
+ sub.next = batchedSub;
566
+ batchedSub = sub;
567
+ }
565
568
  function startBatch() {
566
569
  batchDepth++;
567
570
  }
@@ -570,15 +573,16 @@ var Vue = (function () {
570
573
  return;
571
574
  }
572
575
  let error;
573
- while (batchedEffect) {
574
- let e = batchedEffect;
575
- batchedEffect = void 0;
576
+ while (batchedSub) {
577
+ let e = batchedSub;
578
+ batchedSub = void 0;
576
579
  while (e) {
577
- const next = e.nextEffect;
578
- e.nextEffect = void 0;
580
+ const next = e.next;
581
+ e.next = void 0;
579
582
  e.flags &= ~8;
580
583
  if (e.flags & 1) {
581
584
  try {
585
+ ;
582
586
  e.trigger();
583
587
  } catch (err) {
584
588
  if (!error) error = err;
@@ -599,9 +603,11 @@ var Vue = (function () {
599
603
  function cleanupDeps(sub) {
600
604
  let head;
601
605
  let tail = sub.depsTail;
602
- for (let link = tail; link; link = link.prevDep) {
606
+ let link = tail;
607
+ while (link) {
608
+ const prev = link.prevDep;
603
609
  if (link.version === -1) {
604
- if (link === tail) tail = link.prevDep;
610
+ if (link === tail) tail = prev;
605
611
  removeSub(link);
606
612
  removeDep(link);
607
613
  } else {
@@ -609,13 +615,14 @@ var Vue = (function () {
609
615
  }
610
616
  link.dep.activeLink = link.prevActiveLink;
611
617
  link.prevActiveLink = void 0;
618
+ link = prev;
612
619
  }
613
620
  sub.deps = head;
614
621
  sub.depsTail = tail;
615
622
  }
616
623
  function isDirty(sub) {
617
624
  for (let link = sub.deps; link; link = link.nextDep) {
618
- if (link.dep.version !== link.version || link.dep.computed && refreshComputed(link.dep.computed) || link.dep.version !== link.version) {
625
+ if (link.dep.version !== link.version || link.dep.computed && (refreshComputed(link.dep.computed) || link.dep.version !== link.version)) {
619
626
  return true;
620
627
  }
621
628
  }
@@ -635,7 +642,7 @@ var Vue = (function () {
635
642
  computed.globalVersion = globalVersion;
636
643
  const dep = computed.dep;
637
644
  computed.flags |= 2;
638
- if (dep.version > 0 && !computed.isSSR && !isDirty(computed)) {
645
+ if (dep.version > 0 && !computed.isSSR && computed.deps && !isDirty(computed)) {
639
646
  computed.flags &= ~2;
640
647
  return;
641
648
  }
@@ -737,6 +744,14 @@ var Vue = (function () {
737
744
  }
738
745
 
739
746
  let globalVersion = 0;
747
+ class Link {
748
+ constructor(sub, dep) {
749
+ this.sub = sub;
750
+ this.dep = dep;
751
+ this.version = dep.version;
752
+ this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
753
+ }
754
+ }
740
755
  class Dep {
741
756
  constructor(computed) {
742
757
  this.computed = computed;
@@ -759,16 +774,7 @@ var Vue = (function () {
759
774
  }
760
775
  let link = this.activeLink;
761
776
  if (link === void 0 || link.sub !== activeSub) {
762
- link = this.activeLink = {
763
- dep: this,
764
- sub: activeSub,
765
- version: this.version,
766
- nextDep: void 0,
767
- prevDep: void 0,
768
- nextSub: void 0,
769
- prevSub: void 0,
770
- prevActiveLink: void 0
771
- };
777
+ link = this.activeLink = new Link(activeSub, this);
772
778
  if (!activeSub.deps) {
773
779
  activeSub.deps = activeSub.depsTail = link;
774
780
  } else {
@@ -831,7 +837,10 @@ var Vue = (function () {
831
837
  }
832
838
  }
833
839
  for (let link = this.subs; link; link = link.prevSub) {
834
- link.sub.notify();
840
+ if (link.sub.notify()) {
841
+ ;
842
+ link.sub.dep.notify();
843
+ }
835
844
  }
836
845
  } finally {
837
846
  endBatch();
@@ -1900,8 +1909,10 @@ var Vue = (function () {
1900
1909
  */
1901
1910
  notify() {
1902
1911
  this.flags |= 16;
1903
- if (activeSub !== this) {
1904
- this.dep.notify();
1912
+ if (!(this.flags & 8) && // avoid infinite self recursion
1913
+ activeSub !== this) {
1914
+ batch(this);
1915
+ return true;
1905
1916
  }
1906
1917
  }
1907
1918
  get value() {
@@ -2049,20 +2060,12 @@ var Vue = (function () {
2049
2060
  remove(scope.effects, effect);
2050
2061
  }
2051
2062
  };
2052
- if (once) {
2053
- if (cb) {
2054
- const _cb = cb;
2055
- cb = (...args) => {
2056
- _cb(...args);
2057
- watchHandle();
2058
- };
2059
- } else {
2060
- const _getter = getter;
2061
- getter = () => {
2062
- _getter();
2063
- watchHandle();
2064
- };
2065
- }
2063
+ if (once && cb) {
2064
+ const _cb = cb;
2065
+ cb = (...args) => {
2066
+ _cb(...args);
2067
+ watchHandle();
2068
+ };
2066
2069
  }
2067
2070
  let oldValue = isMultiSource ? new Array(source.length).fill(INITIAL_WATCHER_VALUE) : INITIAL_WATCHER_VALUE;
2068
2071
  const job = (immediateFirstRun) => {
@@ -2681,7 +2684,9 @@ var Vue = (function () {
2681
2684
  dirtyInstances.delete(instance);
2682
2685
  } else if (instance.parent) {
2683
2686
  queueJob(() => {
2687
+ isHmrUpdating = true;
2684
2688
  instance.parent.update();
2689
+ isHmrUpdating = false;
2685
2690
  dirtyInstances.delete(instance);
2686
2691
  });
2687
2692
  } else if (instance.appContext.reload) {
@@ -3500,6 +3505,9 @@ Details: https://v3-migration.vuejs.org/breaking-changes/migration-build.html`
3500
3505
  insert(mainAnchor, container, anchor);
3501
3506
  const mount = (container2, anchor2) => {
3502
3507
  if (shapeFlag & 16) {
3508
+ if (parentComponent && parentComponent.isCE) {
3509
+ parentComponent.ce._teleportTarget = container2;
3510
+ }
3503
3511
  mountChildren(
3504
3512
  children,
3505
3513
  container2,
@@ -4533,7 +4541,11 @@ Server rendered element contains more child nodes than client vdom.`
4533
4541
  remove(cur);
4534
4542
  }
4535
4543
  } else if (shapeFlag & 8) {
4536
- if (el.textContent !== vnode.children) {
4544
+ let clientText = vnode.children;
4545
+ if (clientText[0] === "\n" && (el.tagName === "PRE" || el.tagName === "TEXTAREA")) {
4546
+ clientText = clientText.slice(1);
4547
+ }
4548
+ if (el.textContent !== clientText) {
4537
4549
  if (!isMismatchAllowed(el, 0 /* TEXT */)) {
4538
4550
  warn$1(
4539
4551
  `Hydration text content mismatch on`,
@@ -4732,7 +4744,7 @@ Server rendered element contains fewer child nodes than client vdom.`
4732
4744
  }
4733
4745
  };
4734
4746
  const isTemplateNode = (node) => {
4735
- return node.nodeType === 1 && node.tagName.toLowerCase() === "template";
4747
+ return node.nodeType === 1 && node.tagName === "TEMPLATE";
4736
4748
  };
4737
4749
  return [hydrate, hydrateNode];
4738
4750
  }
@@ -5084,7 +5096,7 @@ Server rendered element contains fewer child nodes than client vdom.`
5084
5096
  load().then(() => {
5085
5097
  loaded.value = true;
5086
5098
  if (instance.parent && isKeepAlive(instance.parent.vnode)) {
5087
- queueJob(instance.parent.update);
5099
+ instance.parent.update();
5088
5100
  }
5089
5101
  }).catch((err) => {
5090
5102
  onError(err);
@@ -7026,7 +7038,7 @@ If this is a native custom element, make sure to exclude it from component resol
7026
7038
  return vm;
7027
7039
  }
7028
7040
  }
7029
- Vue.version = `2.6.14-compat:${"3.5.4"}`;
7041
+ Vue.version = `2.6.14-compat:${"3.5.6"}`;
7030
7042
  Vue.config = singletonApp.config;
7031
7043
  Vue.use = (plugin, ...options) => {
7032
7044
  if (plugin && isFunction(plugin.install)) {
@@ -8848,6 +8860,7 @@ If you want to remount the same app, move your app creation logic into a factory
8848
8860
  }
8849
8861
  }
8850
8862
  if (instance.asyncDep) {
8863
+ if (isHmrUpdating) initialVNode.el = null;
8851
8864
  parentSuspense && parentSuspense.registerDep(instance, setupRenderEffect, optimized);
8852
8865
  if (!initialVNode.el) {
8853
8866
  const placeholder = instance.subTree = createVNode(Comment);
@@ -12103,7 +12116,7 @@ Component that was made reactive: `,
12103
12116
  return true;
12104
12117
  }
12105
12118
 
12106
- const version = "3.5.4";
12119
+ const version = "3.5.6";
12107
12120
  const warn = warn$1 ;
12108
12121
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
12109
12122
  const devtools = devtools$1 ;
@@ -13072,6 +13085,7 @@ Expected function or array of functions, received type ${typeof value}.`
13072
13085
  }
13073
13086
  }
13074
13087
  connectedCallback() {
13088
+ if (!this.isConnected) return;
13075
13089
  if (!this.shadowRoot) {
13076
13090
  this._parseSlots();
13077
13091
  }
@@ -13114,7 +13128,7 @@ Expected function or array of functions, received type ${typeof value}.`
13114
13128
  this._ob = null;
13115
13129
  }
13116
13130
  this._app && this._app.unmount();
13117
- this._instance.ce = void 0;
13131
+ if (this._instance) this._instance.ce = void 0;
13118
13132
  this._app = this._instance = null;
13119
13133
  }
13120
13134
  });
@@ -13333,7 +13347,7 @@ Expected function or array of functions, received type ${typeof value}.`
13333
13347
  }
13334
13348
  }
13335
13349
  /**
13336
- * Only called when shaddowRoot is false
13350
+ * Only called when shadowRoot is false
13337
13351
  */
13338
13352
  _parseSlots() {
13339
13353
  const slots = this._slots = {};
@@ -13345,10 +13359,10 @@ Expected function or array of functions, received type ${typeof value}.`
13345
13359
  }
13346
13360
  }
13347
13361
  /**
13348
- * Only called when shaddowRoot is false
13362
+ * Only called when shadowRoot is false
13349
13363
  */
13350
13364
  _renderSlots() {
13351
- const outlets = this.querySelectorAll("slot");
13365
+ const outlets = (this._teleportTarget || this).querySelectorAll("slot");
13352
13366
  const scopeId = this._instance.type.__scopeId;
13353
13367
  for (let i = 0; i < outlets.length; i++) {
13354
13368
  const o = outlets[i];
@@ -13524,7 +13538,7 @@ Expected function or array of functions, received type ${typeof value}.`
13524
13538
  child,
13525
13539
  resolveTransitionHooks(child, cssTransitionProps, state, instance)
13526
13540
  );
13527
- } else {
13541
+ } else if (child.type !== Text) {
13528
13542
  warn(`<TransitionGroup> children must be keyed.`);
13529
13543
  }
13530
13544
  }