@vtj/materials 0.12.43 → 0.12.45

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.16
2
+ * vue v3.5.17
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -129,7 +129,7 @@ var Vue = (function (exports) {
129
129
  [512]: `NEED_PATCH`,
130
130
  [1024]: `DYNAMIC_SLOTS`,
131
131
  [2048]: `DEV_ROOT_FRAGMENT`,
132
- [-1]: `HOISTED`,
132
+ [-1]: `CACHED`,
133
133
  [-2]: `BAIL`
134
134
  };
135
135
 
@@ -860,6 +860,7 @@ var Vue = (function (exports) {
860
860
  }
861
861
  }
862
862
  class Dep {
863
+ // TODO isolatedDeclarations "__v_skip"
863
864
  constructor(computed) {
864
865
  this.computed = computed;
865
866
  this.version = 0;
@@ -880,6 +881,10 @@ var Vue = (function (exports) {
880
881
  * Subscriber counter
881
882
  */
882
883
  this.sc = 0;
884
+ /**
885
+ * @internal
886
+ */
887
+ this.__v_skip = true;
883
888
  {
884
889
  this.subsHead = void 0;
885
890
  }
@@ -4483,7 +4488,7 @@ Server rendered element contains fewer child nodes than client vdom.`
4483
4488
  if (allowedType === 0 /* TEXT */ && list.includes("children")) {
4484
4489
  return true;
4485
4490
  }
4486
- return allowedAttr.split(",").includes(MismatchTypeString[allowedType]);
4491
+ return list.includes(MismatchTypeString[allowedType]);
4487
4492
  }
4488
4493
  }
4489
4494
 
@@ -6721,6 +6726,8 @@ If you want to remount the same app, move your app creation logic into a factory
6721
6726
  const initSlots = (instance, children, optimized) => {
6722
6727
  const slots = instance.slots = createInternalObject();
6723
6728
  if (instance.vnode.shapeFlag & 32) {
6729
+ const cacheIndexes = children.__;
6730
+ if (cacheIndexes) def(slots, "__", cacheIndexes, true);
6724
6731
  const type = children._;
6725
6732
  if (type) {
6726
6733
  assignSlots(slots, children, optimized);
@@ -6932,6 +6939,8 @@ If you want to remount the same app, move your app creation logic into a factory
6932
6939
  }
6933
6940
  if (ref != null && parentComponent) {
6934
6941
  setRef(ref, n1 && n1.ref, parentSuspense, n2 || n1, !n2);
6942
+ } else if (ref == null && n1 && n1.ref != null) {
6943
+ setRef(n1.ref, null, parentSuspense, n1, true);
6935
6944
  }
6936
6945
  };
6937
6946
  const processText = (n1, n2, container, anchor) => {
@@ -7491,7 +7500,8 @@ If you want to remount the same app, move your app creation logic into a factory
7491
7500
  hydrateSubTree();
7492
7501
  }
7493
7502
  } else {
7494
- if (root.ce) {
7503
+ if (root.ce && // @ts-expect-error _def is private
7504
+ root.ce._def.shadowRoot !== false) {
7495
7505
  root.ce._injectChildStyle(type);
7496
7506
  }
7497
7507
  {
@@ -10547,7 +10557,7 @@ Component that was made reactive: `,
10547
10557
  return true;
10548
10558
  }
10549
10559
 
10550
- const version = "3.5.16";
10560
+ const version = "3.5.17";
10551
10561
  const warn = warn$1 ;
10552
10562
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
10553
10563
  const devtools = devtools$1 ;
@@ -11531,9 +11541,10 @@ Expected function or array of functions, received type ${typeof value}.`
11531
11541
  };
11532
11542
  const asyncDef = this._def.__asyncLoader;
11533
11543
  if (asyncDef) {
11534
- this._pendingResolve = asyncDef().then(
11535
- (def) => resolve(this._def = def, true)
11536
- );
11544
+ this._pendingResolve = asyncDef().then((def) => {
11545
+ def.configureApp = this._def.configureApp;
11546
+ resolve(this._def = def, true);
11547
+ });
11537
11548
  } else {
11538
11549
  resolve(this._def);
11539
11550
  }
@@ -13254,7 +13265,7 @@ Make sure to use the production build (*.prod.js) when deploying for production.
13254
13265
  this.buffer = input;
13255
13266
  while (this.index < this.buffer.length) {
13256
13267
  const c = this.buffer.charCodeAt(this.index);
13257
- if (c === 10) {
13268
+ if (c === 10 && this.state !== 33) {
13258
13269
  this.newlines.push(this.index);
13259
13270
  }
13260
13271
  switch (this.state) {
@@ -14259,7 +14270,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
14259
14270
  return c > 64 && c < 91;
14260
14271
  }
14261
14272
  const windowsNewlineRE = /\r\n/g;
14262
- function condenseWhitespace(nodes, tag) {
14273
+ function condenseWhitespace(nodes) {
14263
14274
  const shouldCondense = currentOptions.whitespace !== "preserve";
14264
14275
  let removedWhitespace = false;
14265
14276
  for (let i = 0; i < nodes.length; i++) {
@@ -14423,12 +14434,12 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
14423
14434
  context,
14424
14435
  // Root node is unfortunately non-hoistable due to potential parent
14425
14436
  // fallthrough attributes.
14426
- isSingleElementRoot(root, root.children[0])
14437
+ !!getSingleElementRoot(root)
14427
14438
  );
14428
14439
  }
14429
- function isSingleElementRoot(root, child) {
14430
- const { children } = root;
14431
- return children.length === 1 && child.type === 1 && !isSlotOutlet(child);
14440
+ function getSingleElementRoot(root) {
14441
+ const children = root.children.filter((x) => x.type !== 3);
14442
+ return children.length === 1 && children[0].type === 1 && !isSlotOutlet(children[0]) ? children[0] : null;
14432
14443
  }
14433
14444
  function walk(node, parent, context, doNotHoistNode = false, inFor = false) {
14434
14445
  const { children } = node;
@@ -14888,15 +14899,15 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
14888
14899
  const { helper } = context;
14889
14900
  const { children } = root;
14890
14901
  if (children.length === 1) {
14891
- const child = children[0];
14892
- if (isSingleElementRoot(root, child) && child.codegenNode) {
14893
- const codegenNode = child.codegenNode;
14902
+ const singleElementRootChild = getSingleElementRoot(root);
14903
+ if (singleElementRootChild && singleElementRootChild.codegenNode) {
14904
+ const codegenNode = singleElementRootChild.codegenNode;
14894
14905
  if (codegenNode.type === 13) {
14895
14906
  convertToBlock(codegenNode, context);
14896
14907
  }
14897
14908
  root.codegenNode = codegenNode;
14898
14909
  } else {
14899
- root.codegenNode = child;
14910
+ root.codegenNode = children[0];
14900
14911
  }
14901
14912
  } else if (children.length > 1) {
14902
14913
  let patchFlag = 64;
@@ -16243,7 +16254,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
16243
16254
  let prev;
16244
16255
  while (j--) {
16245
16256
  prev = children[j];
16246
- if (prev.type !== 3) {
16257
+ if (prev.type !== 3 && isNonWhitespaceContent(prev)) {
16247
16258
  break;
16248
16259
  }
16249
16260
  }