@vue/runtime-dom 3.5.26 → 3.5.27

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.5.26
2
+ * @vue/runtime-dom v3.5.27
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/runtime-dom v3.5.26
2
+ * @vue/runtime-dom v3.5.27
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -593,10 +593,22 @@ export interface InsHTMLAttributes extends HTMLAttributes {
593
593
  datetime?: string | undefined;
594
594
  }
595
595
  export type InputTypeHTMLAttribute = 'button' | 'checkbox' | 'color' | 'date' | 'datetime-local' | 'email' | 'file' | 'hidden' | 'image' | 'month' | 'number' | 'password' | 'radio' | 'range' | 'reset' | 'search' | 'submit' | 'tel' | 'text' | 'time' | 'url' | 'week' | (string & {});
596
+ type AutoFillAddressKind = 'billing' | 'shipping';
597
+ type AutoFillBase = '' | 'off' | 'on';
598
+ type AutoFillContactField = 'email' | 'tel' | 'tel-area-code' | 'tel-country-code' | 'tel-extension' | 'tel-local' | 'tel-local-prefix' | 'tel-local-suffix' | 'tel-national';
599
+ type AutoFillContactKind = 'home' | 'mobile' | 'work';
600
+ type AutoFillCredentialField = 'webauthn';
601
+ type AutoFillNormalField = 'additional-name' | 'address-level1' | 'address-level2' | 'address-level3' | 'address-level4' | 'address-line1' | 'address-line2' | 'address-line3' | 'bday-day' | 'bday-month' | 'bday-year' | 'cc-csc' | 'cc-exp' | 'cc-exp-month' | 'cc-exp-year' | 'cc-family-name' | 'cc-given-name' | 'cc-name' | 'cc-number' | 'cc-type' | 'country' | 'country-name' | 'current-password' | 'family-name' | 'given-name' | 'honorific-prefix' | 'honorific-suffix' | 'name' | 'new-password' | 'one-time-code' | 'organization' | 'postal-code' | 'street-address' | 'transaction-amount' | 'transaction-currency' | 'username';
602
+ type OptionalPrefixToken<T extends string> = `${T} ` | '';
603
+ type OptionalPostfixToken<T extends string> = ` ${T}` | '';
604
+ type AutoFillField = AutoFillNormalField | `${OptionalPrefixToken<AutoFillContactKind>}${AutoFillContactField}`;
605
+ type AutoFillSection = `section-${string}`;
606
+ type AutoFill = AutoFillBase | `${OptionalPrefixToken<AutoFillSection>}${OptionalPrefixToken<AutoFillAddressKind>}${AutoFillField}${OptionalPostfixToken<AutoFillCredentialField>}`;
607
+ export type InputAutoCompleteAttribute = AutoFill | (string & {});
596
608
  export interface InputHTMLAttributes extends HTMLAttributes {
597
609
  accept?: string | undefined;
598
610
  alt?: string | undefined;
599
- autocomplete?: string | undefined;
611
+ autocomplete?: InputAutoCompleteAttribute | undefined;
600
612
  autofocus?: Booleanish | undefined;
601
613
  capture?: boolean | 'user' | 'environment' | undefined;
602
614
  checked?: Booleanish | any[] | Set<any> | undefined;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/runtime-dom v3.5.26
2
+ * @vue/runtime-dom v3.5.27
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -1418,20 +1418,20 @@ function createIterableMethod(method, isReadonly2, isShallow2) {
1418
1418
  "iterate",
1419
1419
  isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY
1420
1420
  );
1421
- return {
1422
- // iterator protocol
1423
- next() {
1424
- const { value, done } = innerIterator.next();
1425
- return done ? { value, done } : {
1426
- value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value),
1427
- done
1428
- };
1429
- },
1430
- // iterable protocol
1431
- [Symbol.iterator]() {
1432
- return this;
1421
+ return extend(
1422
+ // inheriting all iterator properties
1423
+ Object.create(innerIterator),
1424
+ {
1425
+ // iterator protocol
1426
+ next() {
1427
+ const { value, done } = innerIterator.next();
1428
+ return done ? { value, done } : {
1429
+ value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value),
1430
+ done
1431
+ };
1432
+ }
1433
1433
  }
1434
- };
1434
+ );
1435
1435
  };
1436
1436
  }
1437
1437
  function createReadonlyMethod(type) {
@@ -1645,8 +1645,9 @@ function targetTypeMap(rawType) {
1645
1645
  function getTargetType(value) {
1646
1646
  return value["__v_skip"] || !Object.isExtensible(value) ? 0 /* INVALID */ : targetTypeMap(toRawType(value));
1647
1647
  }
1648
+ // @__NO_SIDE_EFFECTS__
1648
1649
  function reactive(target) {
1649
- if (isReadonly(target)) {
1650
+ if (/* @__PURE__ */ isReadonly(target)) {
1650
1651
  return target;
1651
1652
  }
1652
1653
  return createReactiveObject(
@@ -1657,6 +1658,7 @@ function reactive(target) {
1657
1658
  reactiveMap
1658
1659
  );
1659
1660
  }
1661
+ // @__NO_SIDE_EFFECTS__
1660
1662
  function shallowReactive(target) {
1661
1663
  return createReactiveObject(
1662
1664
  target,
@@ -1666,6 +1668,7 @@ function shallowReactive(target) {
1666
1668
  shallowReactiveMap
1667
1669
  );
1668
1670
  }
1671
+ // @__NO_SIDE_EFFECTS__
1669
1672
  function readonly(target) {
1670
1673
  return createReactiveObject(
1671
1674
  target,
@@ -1675,6 +1678,7 @@ function readonly(target) {
1675
1678
  readonlyMap
1676
1679
  );
1677
1680
  }
1681
+ // @__NO_SIDE_EFFECTS__
1678
1682
  function shallowReadonly(target) {
1679
1683
  return createReactiveObject(
1680
1684
  target,
@@ -1713,24 +1717,29 @@ function createReactiveObject(target, isReadonly2, baseHandlers, collectionHandl
1713
1717
  proxyMap.set(target, proxy);
1714
1718
  return proxy;
1715
1719
  }
1720
+ // @__NO_SIDE_EFFECTS__
1716
1721
  function isReactive(value) {
1717
- if (isReadonly(value)) {
1718
- return isReactive(value["__v_raw"]);
1722
+ if (/* @__PURE__ */ isReadonly(value)) {
1723
+ return /* @__PURE__ */ isReactive(value["__v_raw"]);
1719
1724
  }
1720
1725
  return !!(value && value["__v_isReactive"]);
1721
1726
  }
1727
+ // @__NO_SIDE_EFFECTS__
1722
1728
  function isReadonly(value) {
1723
1729
  return !!(value && value["__v_isReadonly"]);
1724
1730
  }
1731
+ // @__NO_SIDE_EFFECTS__
1725
1732
  function isShallow(value) {
1726
1733
  return !!(value && value["__v_isShallow"]);
1727
1734
  }
1735
+ // @__NO_SIDE_EFFECTS__
1728
1736
  function isProxy(value) {
1729
1737
  return value ? !!value["__v_raw"] : false;
1730
1738
  }
1739
+ // @__NO_SIDE_EFFECTS__
1731
1740
  function toRaw(observed) {
1732
1741
  const raw = observed && observed["__v_raw"];
1733
- return raw ? toRaw(raw) : observed;
1742
+ return raw ? /* @__PURE__ */ toRaw(raw) : observed;
1734
1743
  }
1735
1744
  function markRaw(value) {
1736
1745
  if (!hasOwn(value, "__v_skip") && Object.isExtensible(value)) {
@@ -1738,20 +1747,23 @@ function markRaw(value) {
1738
1747
  }
1739
1748
  return value;
1740
1749
  }
1741
- const toReactive = (value) => isObject(value) ? reactive(value) : value;
1742
- const toReadonly = (value) => isObject(value) ? readonly(value) : value;
1750
+ const toReactive = (value) => isObject(value) ? /* @__PURE__ */ reactive(value) : value;
1751
+ const toReadonly = (value) => isObject(value) ? /* @__PURE__ */ readonly(value) : value;
1743
1752
 
1753
+ // @__NO_SIDE_EFFECTS__
1744
1754
  function isRef(r) {
1745
1755
  return r ? r["__v_isRef"] === true : false;
1746
1756
  }
1757
+ // @__NO_SIDE_EFFECTS__
1747
1758
  function ref(value) {
1748
1759
  return createRef(value, false);
1749
1760
  }
1761
+ // @__NO_SIDE_EFFECTS__
1750
1762
  function shallowRef(value) {
1751
1763
  return createRef(value, true);
1752
1764
  }
1753
1765
  function createRef(rawValue, shallow) {
1754
- if (isRef(rawValue)) {
1766
+ if (/* @__PURE__ */ isRef(rawValue)) {
1755
1767
  return rawValue;
1756
1768
  }
1757
1769
  return new RefImpl(rawValue, shallow);
@@ -1807,7 +1819,7 @@ function triggerRef(ref2) {
1807
1819
  }
1808
1820
  }
1809
1821
  function unref(ref2) {
1810
- return isRef(ref2) ? ref2.value : ref2;
1822
+ return /* @__PURE__ */ isRef(ref2) ? ref2.value : ref2;
1811
1823
  }
1812
1824
  function toValue(source) {
1813
1825
  return isFunction(source) ? source() : unref(source);
@@ -1816,7 +1828,7 @@ const shallowUnwrapHandlers = {
1816
1828
  get: (target, key, receiver) => key === "__v_raw" ? target : unref(Reflect.get(target, key, receiver)),
1817
1829
  set: (target, key, value, receiver) => {
1818
1830
  const oldValue = target[key];
1819
- if (isRef(oldValue) && !isRef(value)) {
1831
+ if (/* @__PURE__ */ isRef(oldValue) && !/* @__PURE__ */ isRef(value)) {
1820
1832
  oldValue.value = value;
1821
1833
  return true;
1822
1834
  } else {
@@ -1846,6 +1858,7 @@ class CustomRefImpl {
1846
1858
  function customRef(factory) {
1847
1859
  return new CustomRefImpl(factory);
1848
1860
  }
1861
+ // @__NO_SIDE_EFFECTS__
1849
1862
  function toRefs(object) {
1850
1863
  if (!isProxy(object)) {
1851
1864
  warn$2(`toRefs() expects a reactive object but received a plain one.`);
@@ -1881,9 +1894,9 @@ class ObjectRefImpl {
1881
1894
  return this._value = val === void 0 ? this._defaultValue : val;
1882
1895
  }
1883
1896
  set value(newVal) {
1884
- if (this._shallow && isRef(this._raw[this._key])) {
1897
+ if (this._shallow && /* @__PURE__ */ isRef(this._raw[this._key])) {
1885
1898
  const nestedRef = this._object[this._key];
1886
- if (isRef(nestedRef)) {
1899
+ if (/* @__PURE__ */ isRef(nestedRef)) {
1887
1900
  nestedRef.value = newVal;
1888
1901
  return;
1889
1902
  }
@@ -1905,15 +1918,16 @@ class GetterRefImpl {
1905
1918
  return this._value = this._getter();
1906
1919
  }
1907
1920
  }
1921
+ // @__NO_SIDE_EFFECTS__
1908
1922
  function toRef(source, key, defaultValue) {
1909
- if (isRef(source)) {
1923
+ if (/* @__PURE__ */ isRef(source)) {
1910
1924
  return source;
1911
1925
  } else if (isFunction(source)) {
1912
1926
  return new GetterRefImpl(source);
1913
1927
  } else if (isObject(source) && arguments.length > 1) {
1914
1928
  return propertyToRef(source, key, defaultValue);
1915
1929
  } else {
1916
- return ref(source);
1930
+ return /* @__PURE__ */ ref(source);
1917
1931
  }
1918
1932
  }
1919
1933
  function propertyToRef(source, key, defaultValue) {
@@ -1994,6 +2008,7 @@ class ComputedRefImpl {
1994
2008
  }
1995
2009
  }
1996
2010
  }
2011
+ // @__NO_SIDE_EFFECTS__
1997
2012
  function computed$1(getterOrOptions, debugOptions, isSSR = false) {
1998
2013
  let getter;
1999
2014
  let setter;
@@ -4366,7 +4381,7 @@ Server rendered element contains more child nodes than client vdom.`
4366
4381
  logMismatchError();
4367
4382
  }
4368
4383
  if (forcePatch && (key.endsWith("value") || key === "indeterminate") || isOn(key) && !isReservedProp(key) || // force hydrate v-bind with .prop modifiers
4369
- key[0] === "." || isCustomElement) {
4384
+ key[0] === "." || isCustomElement && !isReservedProp(key)) {
4370
4385
  patchProp(el, key, null, props[key], void 0, parentComponent);
4371
4386
  }
4372
4387
  }
@@ -10682,7 +10697,7 @@ function isMemoSame(cached, memo) {
10682
10697
  return true;
10683
10698
  }
10684
10699
 
10685
- const version = "3.5.26";
10700
+ const version = "3.5.27";
10686
10701
  const warn = warn$1 ;
10687
10702
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
10688
10703
  const devtools = devtools$1 ;