@vue/compat 3.3.0-beta.2 → 3.3.0-beta.3

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.
package/dist/vue.cjs.js CHANGED
@@ -6348,7 +6348,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
6348
6348
  return vm;
6349
6349
  }
6350
6350
  }
6351
- Vue.version = `2.6.14-compat:${"3.3.0-beta.2"}`;
6351
+ Vue.version = `2.6.14-compat:${"3.3.0-beta.3"}`;
6352
6352
  Vue.config = singletonApp.config;
6353
6353
  Vue.use = (p, ...options) => {
6354
6354
  if (p && isFunction(p.install)) {
@@ -10558,14 +10558,6 @@ function getSlotsProxy(instance) {
10558
10558
  get(target, key) {
10559
10559
  track(instance, "get", "$slots");
10560
10560
  return target[key];
10561
- },
10562
- set() {
10563
- warn(`setupContext.slots is readonly.`);
10564
- return false;
10565
- },
10566
- deleteProperty() {
10567
- warn(`setupContext.slots is readonly.`);
10568
- return false;
10569
10561
  }
10570
10562
  }));
10571
10563
  }
@@ -10894,7 +10886,7 @@ function isMemoSame(cached, memo) {
10894
10886
  return true;
10895
10887
  }
10896
10888
 
10897
- const version = "3.3.0-beta.2";
10889
+ const version = "3.3.0-beta.3";
10898
10890
  const _ssrUtils = {
10899
10891
  createComponentInstance,
10900
10892
  setupComponent,
@@ -13768,6 +13760,7 @@ function parseAttributes(context, type) {
13768
13760
  return props;
13769
13761
  }
13770
13762
  function parseAttribute(context, nameSet) {
13763
+ var _a;
13771
13764
  const start = getCursor(context);
13772
13765
  const match = /^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(context.source);
13773
13766
  const name = match[0];
@@ -13810,7 +13803,10 @@ function parseAttribute(context, nameSet) {
13810
13803
  let arg;
13811
13804
  if (match2[2]) {
13812
13805
  const isSlot = dirName === "slot";
13813
- const startOffset = name.lastIndexOf(match2[2]);
13806
+ const startOffset = name.lastIndexOf(
13807
+ match2[2],
13808
+ name.length - (((_a = match2[3]) == null ? void 0 : _a.length) || 0)
13809
+ );
13814
13810
  const loc2 = getSelection(
13815
13811
  context,
13816
13812
  getNewPosition(context, start, startOffset),
@@ -5066,7 +5066,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
5066
5066
  return vm;
5067
5067
  }
5068
5068
  }
5069
- Vue.version = `2.6.14-compat:${"3.3.0-beta.2"}`;
5069
+ Vue.version = `2.6.14-compat:${"3.3.0-beta.3"}`;
5070
5070
  Vue.config = singletonApp.config;
5071
5071
  Vue.use = (p, ...options) => {
5072
5072
  if (p && isFunction(p.install)) {
@@ -8747,7 +8747,7 @@ function isMemoSame(cached, memo) {
8747
8747
  return true;
8748
8748
  }
8749
8749
 
8750
- const version = "3.3.0-beta.2";
8750
+ const version = "3.3.0-beta.3";
8751
8751
  const _ssrUtils = {
8752
8752
  createComponentInstance,
8753
8753
  setupComponent,
@@ -11412,6 +11412,7 @@ function parseAttributes(context, type) {
11412
11412
  return props;
11413
11413
  }
11414
11414
  function parseAttribute(context, nameSet) {
11415
+ var _a;
11415
11416
  const start = getCursor(context);
11416
11417
  const match = /^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(context.source);
11417
11418
  const name = match[0];
@@ -11454,7 +11455,10 @@ function parseAttribute(context, nameSet) {
11454
11455
  let arg;
11455
11456
  if (match2[2]) {
11456
11457
  const isSlot = dirName === "slot";
11457
- const startOffset = name.lastIndexOf(match2[2]);
11458
+ const startOffset = name.lastIndexOf(
11459
+ match2[2],
11460
+ name.length - (((_a = match2[3]) == null ? void 0 : _a.length) || 0)
11461
+ );
11458
11462
  const loc2 = getSelection(
11459
11463
  context,
11460
11464
  getNewPosition(context, start, startOffset),
@@ -6248,7 +6248,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
6248
6248
  return vm;
6249
6249
  }
6250
6250
  }
6251
- Vue.version = `2.6.14-compat:${"3.3.0-beta.2"}`;
6251
+ Vue.version = `2.6.14-compat:${"3.3.0-beta.3"}`;
6252
6252
  Vue.config = singletonApp.config;
6253
6253
  Vue.use = (p, ...options) => {
6254
6254
  if (p && isFunction(p.install)) {
@@ -10446,14 +10446,6 @@ function getSlotsProxy(instance) {
10446
10446
  get(target, key) {
10447
10447
  track(instance, "get", "$slots");
10448
10448
  return target[key];
10449
- },
10450
- set() {
10451
- warn(`setupContext.slots is readonly.`);
10452
- return false;
10453
- },
10454
- deleteProperty() {
10455
- warn(`setupContext.slots is readonly.`);
10456
- return false;
10457
10449
  }
10458
10450
  }));
10459
10451
  }
@@ -10782,7 +10774,7 @@ function isMemoSame(cached, memo) {
10782
10774
  return true;
10783
10775
  }
10784
10776
 
10785
- const version = "3.3.0-beta.2";
10777
+ const version = "3.3.0-beta.3";
10786
10778
  const ssrUtils = null;
10787
10779
  const resolveFilter = resolveFilter$1 ;
10788
10780
  const _compatUtils = {
@@ -13683,6 +13675,7 @@ function parseAttributes(context, type) {
13683
13675
  return props;
13684
13676
  }
13685
13677
  function parseAttribute(context, nameSet) {
13678
+ var _a;
13686
13679
  const start = getCursor(context);
13687
13680
  const match = /^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(context.source);
13688
13681
  const name = match[0];
@@ -13725,7 +13718,10 @@ function parseAttribute(context, nameSet) {
13725
13718
  let arg;
13726
13719
  if (match2[2]) {
13727
13720
  const isSlot = dirName === "slot";
13728
- const startOffset = name.lastIndexOf(match2[2]);
13721
+ const startOffset = name.lastIndexOf(
13722
+ match2[2],
13723
+ name.length - (((_a = match2[3]) == null ? void 0 : _a.length) || 0)
13724
+ );
13729
13725
  const loc2 = getSelection(
13730
13726
  context,
13731
13727
  getNewPosition(context, start, startOffset),