@vueuse/components 9.9.0 → 9.11.0

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/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import { defineComponent, ref, h, watch, computed, reactive, shallowRef, nextTick, watchEffect, toRef, toRefs } from 'vue-demi';
2
- import { onClickOutside as onClickOutside$1, useActiveElement, useBattery, useBrowserLocation, useDark, useDeviceMotion, useDeviceOrientation, useDevicePixelRatio, useDevicesList, useDocumentVisibility, useStorage as useStorage$1, isClient as isClient$1, useDraggable, useElementBounding, useElementSize as useElementSize$1, useElementVisibility as useElementVisibility$1, useEyeDropper, useFullscreen, useGeolocation, useIdle, useMouse, useMouseInElement, useMousePressed, useNetwork, useNow, useObjectUrl, useOffsetPagination, useOnline, usePageLeave, usePointer, usePreferredColorScheme, usePreferredContrast, usePreferredDark as usePreferredDark$1, usePreferredLanguages, usePreferredReducedMotion, useTimeAgo, useTimestamp, useVirtualList, useWindowFocus, useWindowSize } from '@vueuse/core';
2
+ import { onClickOutside as onClickOutside$1, useActiveElement, useBattery, useBrowserLocation, useDark, useDeviceMotion, useDeviceOrientation, useDevicePixelRatio, useDevicesList, useDocumentVisibility, useStorage as useStorage$1, isClient as isClient$1, useDraggable, useElementBounding, useElementSize as useElementSize$1, useElementVisibility as useElementVisibility$1, useEyeDropper, useFullscreen, useGeolocation, useIdle, useMouse, useMouseInElement, useMousePressed, useNetwork, useNow, useObjectUrl, useOffsetPagination, useOnline, usePageLeave, usePointer, usePointerLock, usePreferredColorScheme, usePreferredContrast, usePreferredDark as usePreferredDark$1, usePreferredLanguages, usePreferredReducedMotion, useTimeAgo, useTimestamp, useVirtualList, useWindowFocus, useWindowSize } from '@vueuse/core';
3
3
  import { resolveUnref, isClient, isString, noop, tryOnScopeDispose, directiveHooks, pausableWatch, isFunction, tryOnMounted, resolveRef, useToggle, promiseTimeout, useDebounceFn, useThrottleFn, isIOS } from '@vueuse/shared';
4
4
 
5
- const OnClickOutside = defineComponent({
5
+ const OnClickOutside = /* @__PURE__ */ defineComponent({
6
6
  name: "OnClickOutside",
7
7
  props: ["as", "options"],
8
8
  emits: ["trigger"],
@@ -240,7 +240,7 @@ function onLongPress(target, handler, options) {
240
240
  useEventListener(elementRef, "pointerleave", clear, listenerOptions);
241
241
  }
242
242
 
243
- const OnLongPress = defineComponent({
243
+ const OnLongPress = /* @__PURE__ */ defineComponent({
244
244
  name: "OnLongPress",
245
245
  props: ["as", "options"],
246
246
  emits: ["trigger"],
@@ -265,7 +265,7 @@ const vOnLongPress = {
265
265
  }
266
266
  };
267
267
 
268
- const UseActiveElement = defineComponent({
268
+ const UseActiveElement = /* @__PURE__ */ defineComponent({
269
269
  name: "UseActiveElement",
270
270
  setup(props, { slots }) {
271
271
  const data = reactive({
@@ -278,7 +278,7 @@ const UseActiveElement = defineComponent({
278
278
  }
279
279
  });
280
280
 
281
- const UseBattery = defineComponent({
281
+ const UseBattery = /* @__PURE__ */ defineComponent({
282
282
  name: "UseBattery",
283
283
  setup(props, { slots }) {
284
284
  const data = reactive(useBattery(props));
@@ -289,7 +289,7 @@ const UseBattery = defineComponent({
289
289
  }
290
290
  });
291
291
 
292
- const UseBrowserLocation = defineComponent({
292
+ const UseBrowserLocation = /* @__PURE__ */ defineComponent({
293
293
  name: "UseBrowserLocation",
294
294
  setup(props, { slots }) {
295
295
  const data = reactive(useBrowserLocation());
@@ -582,7 +582,7 @@ function useColorMode(options = {}) {
582
582
  return state;
583
583
  }
584
584
 
585
- const UseColorMode = defineComponent({
585
+ const UseColorMode = /* @__PURE__ */ defineComponent({
586
586
  name: "UseColorMode",
587
587
  props: ["selector", "attribute", "modes", "onChanged", "storageKey", "storage", "emitAuto"],
588
588
  setup(props, { slots }) {
@@ -597,7 +597,7 @@ const UseColorMode = defineComponent({
597
597
  }
598
598
  });
599
599
 
600
- const UseDark = defineComponent({
600
+ const UseDark = /* @__PURE__ */ defineComponent({
601
601
  name: "UseDark",
602
602
  props: ["selector", "attribute", "valueDark", "valueLight", "onChanged", "storageKey", "storage"],
603
603
  setup(props, { slots }) {
@@ -613,7 +613,7 @@ const UseDark = defineComponent({
613
613
  }
614
614
  });
615
615
 
616
- const UseDeviceMotion = defineComponent({
616
+ const UseDeviceMotion = /* @__PURE__ */ defineComponent({
617
617
  name: "UseDeviceMotion",
618
618
  setup(props, { slots }) {
619
619
  const data = reactive(useDeviceMotion());
@@ -624,7 +624,7 @@ const UseDeviceMotion = defineComponent({
624
624
  }
625
625
  });
626
626
 
627
- const UseDeviceOrientation = defineComponent({
627
+ const UseDeviceOrientation = /* @__PURE__ */ defineComponent({
628
628
  name: "UseDeviceOrientation",
629
629
  setup(props, { slots }) {
630
630
  const data = reactive(useDeviceOrientation());
@@ -635,7 +635,7 @@ const UseDeviceOrientation = defineComponent({
635
635
  }
636
636
  });
637
637
 
638
- const UseDevicePixelRatio = defineComponent({
638
+ const UseDevicePixelRatio = /* @__PURE__ */ defineComponent({
639
639
  name: "UseDevicePixelRatio",
640
640
  setup(props, { slots }) {
641
641
  const data = reactive({
@@ -648,7 +648,7 @@ const UseDevicePixelRatio = defineComponent({
648
648
  }
649
649
  });
650
650
 
651
- const UseDevicesList = defineComponent({
651
+ const UseDevicesList = /* @__PURE__ */ defineComponent({
652
652
  name: "UseDevicesList",
653
653
  props: ["onUpdated", "requestPermissions", "constraints"],
654
654
  setup(props, { slots }) {
@@ -660,7 +660,7 @@ const UseDevicesList = defineComponent({
660
660
  }
661
661
  });
662
662
 
663
- const UseDocumentVisibility = defineComponent({
663
+ const UseDocumentVisibility = /* @__PURE__ */ defineComponent({
664
664
  name: "UseDocumentVisibility",
665
665
  setup(props, { slots }) {
666
666
  const data = reactive({
@@ -692,7 +692,7 @@ var __spreadValues$a = (a, b) => {
692
692
  return a;
693
693
  };
694
694
  var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
695
- const UseDraggable = defineComponent({
695
+ const UseDraggable = /* @__PURE__ */ defineComponent({
696
696
  name: "UseDraggable",
697
697
  props: [
698
698
  "storageKey",
@@ -711,10 +711,18 @@ const UseDraggable = defineComponent({
711
711
  var _a;
712
712
  return (_a = props.handle) != null ? _a : target.value;
713
713
  });
714
- const initialValue = props.storageKey ? useStorage$1(props.storageKey, resolveUnref(props.initialValue) || { x: 0, y: 0 }, isClient$1 ? props.storageType === "session" ? sessionStorage : localStorage : void 0) : props.initialValue || { x: 0, y: 0 };
714
+ const storageValue = props.storageKey && useStorage$1(props.storageKey, resolveUnref(props.initialValue) || { x: 0, y: 0 }, isClient$1 ? props.storageType === "session" ? sessionStorage : localStorage : void 0);
715
+ const initialValue = storageValue || props.initialValue || { x: 0, y: 0 };
716
+ const onEnd = (position) => {
717
+ if (!storageValue)
718
+ return;
719
+ storageValue.value.x = position.x;
720
+ storageValue.value.y = position.y;
721
+ };
715
722
  const data = reactive(useDraggable(target, __spreadProps$8(__spreadValues$a({}, props), {
716
723
  handle,
717
- initialValue
724
+ initialValue,
725
+ onEnd
718
726
  })));
719
727
  return () => {
720
728
  if (slots.default)
@@ -723,7 +731,7 @@ const UseDraggable = defineComponent({
723
731
  }
724
732
  });
725
733
 
726
- const UseElementBounding = defineComponent({
734
+ const UseElementBounding = /* @__PURE__ */ defineComponent({
727
735
  name: "UseElementBounding",
728
736
  props: ["box", "as"],
729
737
  setup(props, { slots }) {
@@ -752,7 +760,7 @@ const vElementHover = {
752
760
  }
753
761
  };
754
762
 
755
- const UseElementSize = defineComponent({
763
+ const UseElementSize = /* @__PURE__ */ defineComponent({
756
764
  name: "UseElementSize",
757
765
  props: ["width", "height", "box"],
758
766
  setup(props, { slots }) {
@@ -842,7 +850,7 @@ const vElementSize = {
842
850
  }
843
851
  };
844
852
 
845
- const UseElementVisibility = defineComponent({
853
+ const UseElementVisibility = /* @__PURE__ */ defineComponent({
846
854
  name: "UseElementVisibility",
847
855
  props: ["as"],
848
856
  setup(props, { slots }) {
@@ -895,7 +903,7 @@ const vElementVisibility = {
895
903
  }
896
904
  };
897
905
 
898
- const UseEyeDropper = defineComponent({
906
+ const UseEyeDropper = /* @__PURE__ */ defineComponent({
899
907
  name: "UseEyeDropper",
900
908
  props: {
901
909
  sRGBHex: String
@@ -909,7 +917,7 @@ const UseEyeDropper = defineComponent({
909
917
  }
910
918
  });
911
919
 
912
- const UseFullscreen = defineComponent({
920
+ const UseFullscreen = /* @__PURE__ */ defineComponent({
913
921
  name: "UseFullscreen",
914
922
  props: ["as"],
915
923
  setup(props, { slots }) {
@@ -922,7 +930,7 @@ const UseFullscreen = defineComponent({
922
930
  }
923
931
  });
924
932
 
925
- const UseGeolocation = defineComponent({
933
+ const UseGeolocation = /* @__PURE__ */ defineComponent({
926
934
  name: "UseGeolocation",
927
935
  props: ["enableHighAccuracy", "maximumAge", "timeout", "navigator"],
928
936
  setup(props, { slots }) {
@@ -934,7 +942,7 @@ const UseGeolocation = defineComponent({
934
942
  }
935
943
  });
936
944
 
937
- const UseIdle = defineComponent({
945
+ const UseIdle = /* @__PURE__ */ defineComponent({
938
946
  name: "UseIdle",
939
947
  props: ["timeout", "events", "listenForVisibilityChange", "initialState"],
940
948
  setup(props, { slots }) {
@@ -1032,7 +1040,7 @@ const useImage = (options, asyncStateOptions = {}) => {
1032
1040
  return state;
1033
1041
  };
1034
1042
 
1035
- const UseImage = defineComponent({
1043
+ const UseImage = /* @__PURE__ */ defineComponent({
1036
1044
  name: "UseImage",
1037
1045
  props: [
1038
1046
  "src",
@@ -1257,7 +1265,7 @@ const vIntersectionObserver = {
1257
1265
  }
1258
1266
  };
1259
1267
 
1260
- const UseMouse = defineComponent({
1268
+ const UseMouse = /* @__PURE__ */ defineComponent({
1261
1269
  name: "UseMouse",
1262
1270
  props: ["touch", "resetOnTouchEnds", "initialValue"],
1263
1271
  setup(props, { slots }) {
@@ -1269,7 +1277,7 @@ const UseMouse = defineComponent({
1269
1277
  }
1270
1278
  });
1271
1279
 
1272
- const UseMouseInElement = defineComponent({
1280
+ const UseMouseInElement = /* @__PURE__ */ defineComponent({
1273
1281
  name: "UseMouseElement",
1274
1282
  props: ["handleOutside", "as"],
1275
1283
  setup(props, { slots }) {
@@ -1301,7 +1309,7 @@ var __spreadValues$7 = (a, b) => {
1301
1309
  return a;
1302
1310
  };
1303
1311
  var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
1304
- const UseMousePressed = defineComponent({
1312
+ const UseMousePressed = /* @__PURE__ */ defineComponent({
1305
1313
  name: "UseMousePressed",
1306
1314
  props: ["touch", "initialValue", "as"],
1307
1315
  setup(props, { slots }) {
@@ -1314,7 +1322,7 @@ const UseMousePressed = defineComponent({
1314
1322
  }
1315
1323
  });
1316
1324
 
1317
- const UseNetwork = defineComponent({
1325
+ const UseNetwork = /* @__PURE__ */ defineComponent({
1318
1326
  name: "UseNetwork",
1319
1327
  setup(props, { slots }) {
1320
1328
  const data = reactive(useNetwork());
@@ -1344,7 +1352,7 @@ var __spreadValues$6 = (a, b) => {
1344
1352
  return a;
1345
1353
  };
1346
1354
  var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
1347
- const UseNow = defineComponent({
1355
+ const UseNow = /* @__PURE__ */ defineComponent({
1348
1356
  name: "UseNow",
1349
1357
  props: ["interval"],
1350
1358
  setup(props, { slots }) {
@@ -1356,7 +1364,7 @@ const UseNow = defineComponent({
1356
1364
  }
1357
1365
  });
1358
1366
 
1359
- const UseObjectUrl = defineComponent({
1367
+ const UseObjectUrl = /* @__PURE__ */ defineComponent({
1360
1368
  name: "UseObjectUrl",
1361
1369
  props: [
1362
1370
  "object"
@@ -1390,7 +1398,7 @@ var __spreadValues$5 = (a, b) => {
1390
1398
  return a;
1391
1399
  };
1392
1400
  var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
1393
- const UseOffsetPagination = defineComponent({
1401
+ const UseOffsetPagination = /* @__PURE__ */ defineComponent({
1394
1402
  name: "UseOffsetPagination",
1395
1403
  props: [
1396
1404
  "total",
@@ -1430,7 +1438,7 @@ const UseOffsetPagination = defineComponent({
1430
1438
  }
1431
1439
  });
1432
1440
 
1433
- const UseOnline = defineComponent({
1441
+ const UseOnline = /* @__PURE__ */ defineComponent({
1434
1442
  name: "UseOnline",
1435
1443
  setup(props, { slots }) {
1436
1444
  const data = reactive({
@@ -1443,7 +1451,7 @@ const UseOnline = defineComponent({
1443
1451
  }
1444
1452
  });
1445
1453
 
1446
- const UsePageLeave = defineComponent({
1454
+ const UsePageLeave = /* @__PURE__ */ defineComponent({
1447
1455
  name: "UsePageLeave",
1448
1456
  setup(props, { slots }) {
1449
1457
  const data = reactive({
@@ -1475,7 +1483,7 @@ var __spreadValues$4 = (a, b) => {
1475
1483
  return a;
1476
1484
  };
1477
1485
  var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
1478
- const UsePointer = defineComponent({
1486
+ const UsePointer = /* @__PURE__ */ defineComponent({
1479
1487
  name: "UsePointer",
1480
1488
  props: [
1481
1489
  "pointerTypes",
@@ -1494,7 +1502,20 @@ const UsePointer = defineComponent({
1494
1502
  }
1495
1503
  });
1496
1504
 
1497
- const UsePreferredColorScheme = defineComponent({
1505
+ const UsePointerLock = defineComponent({
1506
+ name: "UsePointerLock",
1507
+ props: ["as"],
1508
+ setup(props, { slots }) {
1509
+ const target = ref();
1510
+ const data = reactive(usePointerLock(target));
1511
+ return () => {
1512
+ if (slots.default)
1513
+ return h(props.as || "div", { ref: target }, slots.default(data));
1514
+ };
1515
+ }
1516
+ });
1517
+
1518
+ const UsePreferredColorScheme = /* @__PURE__ */ defineComponent({
1498
1519
  name: "UsePreferredColorScheme",
1499
1520
  setup(props, { slots }) {
1500
1521
  const data = reactive({
@@ -1507,7 +1528,7 @@ const UsePreferredColorScheme = defineComponent({
1507
1528
  }
1508
1529
  });
1509
1530
 
1510
- const UsePreferredContrast = defineComponent({
1531
+ const UsePreferredContrast = /* @__PURE__ */ defineComponent({
1511
1532
  name: "UsePreferredContrast",
1512
1533
  setup(props, { slots }) {
1513
1534
  const data = reactive({
@@ -1520,7 +1541,7 @@ const UsePreferredContrast = defineComponent({
1520
1541
  }
1521
1542
  });
1522
1543
 
1523
- const UsePreferredDark = defineComponent({
1544
+ const UsePreferredDark = /* @__PURE__ */ defineComponent({
1524
1545
  name: "UsePreferredDark",
1525
1546
  setup(props, { slots }) {
1526
1547
  const data = reactive({
@@ -1533,7 +1554,7 @@ const UsePreferredDark = defineComponent({
1533
1554
  }
1534
1555
  });
1535
1556
 
1536
- const UsePreferredLanguages = defineComponent({
1557
+ const UsePreferredLanguages = /* @__PURE__ */ defineComponent({
1537
1558
  name: "UsePreferredLanguages",
1538
1559
  setup(props, { slots }) {
1539
1560
  const data = reactive({
@@ -1546,7 +1567,7 @@ const UsePreferredLanguages = defineComponent({
1546
1567
  }
1547
1568
  });
1548
1569
 
1549
- const UsePreferredReducedMotion = defineComponent({
1570
+ const UsePreferredReducedMotion = /* @__PURE__ */ defineComponent({
1550
1571
  name: "UsePreferredReducedMotion",
1551
1572
  setup(props, { slots }) {
1552
1573
  const data = reactive({
@@ -1619,7 +1640,7 @@ function getValue(position) {
1619
1640
  return getComputedStyle(document.documentElement).getPropertyValue(position);
1620
1641
  }
1621
1642
 
1622
- const UseScreenSafeArea = defineComponent({
1643
+ const UseScreenSafeArea = /* @__PURE__ */ defineComponent({
1623
1644
  name: "UseScreenSafeArea",
1624
1645
  props: {
1625
1646
  top: Boolean,
@@ -1702,8 +1723,22 @@ const vScroll = {
1702
1723
  }
1703
1724
  };
1704
1725
 
1726
+ function checkOverflowScroll(ele) {
1727
+ const style = window.getComputedStyle(ele);
1728
+ if (style.overflowX === "scroll" || style.overflowY === "scroll") {
1729
+ return true;
1730
+ } else {
1731
+ const parent = ele.parentNode;
1732
+ if (!parent || parent.tagName === "BODY")
1733
+ return false;
1734
+ return checkOverflowScroll(parent);
1735
+ }
1736
+ }
1705
1737
  function preventDefault(rawEvent) {
1706
1738
  const e = rawEvent || window.event;
1739
+ const _target = e.target;
1740
+ if (checkOverflowScroll(_target))
1741
+ return false;
1707
1742
  if (e.touches.length > 1)
1708
1743
  return true;
1709
1744
  if (e.preventDefault)
@@ -1729,7 +1764,9 @@ function useScrollLock(element, initialState = false) {
1729
1764
  if (!ele || isLocked.value)
1730
1765
  return;
1731
1766
  if (isIOS) {
1732
- stopTouchMoveListener = useEventListener(ele, "touchmove", preventDefault, { passive: false });
1767
+ stopTouchMoveListener = useEventListener(ele, "touchmove", (e) => {
1768
+ preventDefault(e);
1769
+ }, { passive: false });
1733
1770
  }
1734
1771
  ele.style.overflow = "hidden";
1735
1772
  isLocked.value = true;
@@ -1789,7 +1826,7 @@ var __spreadValues$2 = (a, b) => {
1789
1826
  return a;
1790
1827
  };
1791
1828
  var __spreadProps$1 = (a, b) => __defProps$1(a, __getOwnPropDescs$1(b));
1792
- const UseTimeAgo = defineComponent({
1829
+ const UseTimeAgo = /* @__PURE__ */ defineComponent({
1793
1830
  name: "UseTimeAgo",
1794
1831
  props: ["time", "updateInterval", "max", "fullDateFormatter", "messages", "showSecond"],
1795
1832
  setup(props, { slots }) {
@@ -1820,7 +1857,7 @@ var __spreadValues$1 = (a, b) => {
1820
1857
  return a;
1821
1858
  };
1822
1859
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
1823
- const UseTimestamp = defineComponent({
1860
+ const UseTimestamp = /* @__PURE__ */ defineComponent({
1824
1861
  name: "UseTimestamp",
1825
1862
  props: ["immediate", "interval", "offset"],
1826
1863
  setup(props, { slots }) {
@@ -1848,16 +1885,17 @@ var __spreadValues = (a, b) => {
1848
1885
  }
1849
1886
  return a;
1850
1887
  };
1851
- const UseVirtualList = defineComponent({
1888
+ const UseVirtualList = /* @__PURE__ */ defineComponent({
1852
1889
  name: "UseVirtualList",
1853
1890
  props: [
1854
1891
  "list",
1855
1892
  "options",
1856
1893
  "height"
1857
1894
  ],
1858
- setup(props, { slots }) {
1895
+ setup(props, { slots, expose }) {
1859
1896
  const { list: listRef } = toRefs(props);
1860
- const { list, containerProps, wrapperProps } = useVirtualList(listRef, props.options);
1897
+ const { list, containerProps, wrapperProps, scrollTo } = useVirtualList(listRef, props.options);
1898
+ expose({ scrollTo });
1861
1899
  typeof containerProps.style === "object" && !Array.isArray(containerProps.style) && (containerProps.style.height = props.height || "300px");
1862
1900
  return () => h("div", __spreadValues({}, containerProps), [
1863
1901
  h("div", __spreadValues({}, wrapperProps.value), list.value.map((item) => h("div", { style: { overFlow: "hidden", height: item.height } }, slots.default ? slots.default(item) : "Please set content!")))
@@ -1865,7 +1903,7 @@ const UseVirtualList = defineComponent({
1865
1903
  }
1866
1904
  });
1867
1905
 
1868
- const UseWindowFocus = defineComponent({
1906
+ const UseWindowFocus = /* @__PURE__ */ defineComponent({
1869
1907
  name: "UseWindowFocus",
1870
1908
  setup(props, { slots }) {
1871
1909
  const data = reactive({
@@ -1878,7 +1916,7 @@ const UseWindowFocus = defineComponent({
1878
1916
  }
1879
1917
  });
1880
1918
 
1881
- const UseWindowSize = defineComponent({
1919
+ const UseWindowSize = /* @__PURE__ */ defineComponent({
1882
1920
  name: "UseWindowSize",
1883
1921
  props: ["initialWidth", "initialHeight"],
1884
1922
  setup(props, { slots }) {
@@ -1890,4 +1928,4 @@ const UseWindowSize = defineComponent({
1890
1928
  }
1891
1929
  });
1892
1930
 
1893
- export { OnClickOutside, OnLongPress, UseActiveElement, UseBattery, UseBrowserLocation, UseColorMode, UseDark, UseDeviceMotion, UseDeviceOrientation, UseDevicePixelRatio, UseDevicesList, UseDocumentVisibility, UseDraggable, UseElementBounding, UseElementSize, UseElementVisibility, UseEyeDropper, UseFullscreen, UseGeolocation, UseIdle, UseImage, UseMouse, UseMouseInElement, UseMousePressed, UseNetwork, UseNow, UseObjectUrl, UseOffsetPagination, UseOnline, UsePageLeave, UsePointer, UsePreferredColorScheme, UsePreferredContrast, UsePreferredDark, UsePreferredLanguages, UsePreferredReducedMotion, UseScreenSafeArea, UseTimeAgo, UseTimestamp, UseVirtualList, UseWindowFocus, UseWindowSize, vOnClickOutside as VOnClickOutside, vOnLongPress as VOnLongPress, vElementHover, vElementSize, vElementVisibility, vInfiniteScroll, vIntersectionObserver, vOnClickOutside, vOnKeyStroke, vOnLongPress, vScroll, vScrollLock };
1931
+ export { OnClickOutside, OnLongPress, UseActiveElement, UseBattery, UseBrowserLocation, UseColorMode, UseDark, UseDeviceMotion, UseDeviceOrientation, UseDevicePixelRatio, UseDevicesList, UseDocumentVisibility, UseDraggable, UseElementBounding, UseElementSize, UseElementVisibility, UseEyeDropper, UseFullscreen, UseGeolocation, UseIdle, UseImage, UseMouse, UseMouseInElement, UseMousePressed, UseNetwork, UseNow, UseObjectUrl, UseOffsetPagination, UseOnline, UsePageLeave, UsePointer, UsePointerLock, UsePreferredColorScheme, UsePreferredContrast, UsePreferredDark, UsePreferredLanguages, UsePreferredReducedMotion, UseScreenSafeArea, UseTimeAgo, UseTimestamp, UseVirtualList, UseWindowFocus, UseWindowSize, vOnClickOutside as VOnClickOutside, vOnLongPress as VOnLongPress, vElementHover, vElementSize, vElementVisibility, vInfiniteScroll, vIntersectionObserver, vOnClickOutside, vOnKeyStroke, vOnLongPress, vScroll, vScrollLock };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vueuse/components",
3
- "version": "9.9.0",
3
+ "version": "9.11.0",
4
4
  "description": "Renderless components for VueUse",
5
5
  "author": "Jacob Clevenger<https://github.com/wheatjs>",
6
6
  "license": "MIT",
@@ -33,8 +33,8 @@
33
33
  "jsdelivr": "./index.iife.min.js",
34
34
  "types": "./index.d.ts",
35
35
  "dependencies": {
36
- "@vueuse/core": "9.9.0",
37
- "@vueuse/shared": "9.9.0",
36
+ "@vueuse/core": "9.11.0",
37
+ "@vueuse/shared": "9.11.0",
38
38
  "vue-demi": "*"
39
39
  }
40
40
  }