@vueuse/metadata 10.0.0-beta.1 → 10.0.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/index.cjs CHANGED
@@ -66,7 +66,9 @@ var packages$1 = {
66
66
  "@vueuse/shared",
67
67
  "fuse.js",
68
68
  "async-validator",
69
- "idb-keyval"
69
+ "idb-keyval",
70
+ "sortablejs",
71
+ "node:http"
70
72
  ],
71
73
  globals: {
72
74
  axios: "axios",
@@ -79,7 +81,8 @@ var packages$1 = {
79
81
  "fuse.js": "Fuse",
80
82
  "change-case": "changeCase",
81
83
  "async-validator": "AsyncValidator",
82
- "idb-keyval": "idbKeyval"
84
+ "idb-keyval": "idbKeyval",
85
+ sortablejs: "Sortable"
83
86
  },
84
87
  dir: "packages/integrations",
85
88
  docs: "https://vueuse.org/integrations/README.html"
@@ -253,7 +256,7 @@ var functions$1 = [
253
256
  {
254
257
  name: "createProjection",
255
258
  "package": "math",
256
- lastUpdated: 1657437998000,
259
+ lastUpdated: 1680167214000,
257
260
  docs: "https://vueuse.org/math/createProjection/",
258
261
  category: "@Math",
259
262
  description: "reactive numeric projection from one domain to another",
@@ -283,7 +286,7 @@ var functions$1 = [
283
286
  {
284
287
  name: "createUnrefFn",
285
288
  "package": "core",
286
- lastUpdated: 1651597361000,
289
+ lastUpdated: 1680167214000,
287
290
  docs: "https://vueuse.org/core/createUnrefFn/",
288
291
  category: "Utilities",
289
292
  description: "make a plain function accepting ref and raw values as arguments",
@@ -389,7 +392,7 @@ var functions$1 = [
389
392
  {
390
393
  name: "onKeyStroke",
391
394
  "package": "core",
392
- lastUpdated: 1672754414000,
395
+ lastUpdated: 1680167214000,
393
396
  directive: true,
394
397
  docs: "https://vueuse.org/core/onKeyStroke/",
395
398
  category: "Sensors",
@@ -408,7 +411,7 @@ var functions$1 = [
408
411
  {
409
412
  name: "onStartTyping",
410
413
  "package": "core",
411
- lastUpdated: 1639442454000,
414
+ lastUpdated: 1680612666000,
412
415
  docs: "https://vueuse.org/core/onStartTyping/",
413
416
  category: "Sensors",
414
417
  description: "fires when users start typing on non-editable elements"
@@ -446,7 +449,7 @@ var functions$1 = [
446
449
  {
447
450
  name: "reactiveOmit",
448
451
  "package": "shared",
449
- lastUpdated: 1658645224000,
452
+ lastUpdated: 1679998329000,
450
453
  docs: "https://vueuse.org/shared/reactiveOmit/",
451
454
  category: "Reactivity",
452
455
  description: "reactively omit fields from a reactive object"
@@ -454,7 +457,7 @@ var functions$1 = [
454
457
  {
455
458
  name: "reactivePick",
456
459
  "package": "shared",
457
- lastUpdated: 1658645224000,
460
+ lastUpdated: 1679997829000,
458
461
  docs: "https://vueuse.org/shared/reactivePick/",
459
462
  category: "Reactivity",
460
463
  description: "reactively pick fields from a reactive object"
@@ -682,7 +685,7 @@ var functions$1 = [
682
685
  {
683
686
  name: "useArrayDifference",
684
687
  "package": "shared",
685
- lastUpdated: 1679481969000,
688
+ lastUpdated: 1680167214000,
686
689
  docs: "https://vueuse.org/shared/useArrayDifference/",
687
690
  category: "Array",
688
691
  description: "reactive get array difference of two array"
@@ -722,7 +725,7 @@ var functions$1 = [
722
725
  {
723
726
  name: "useArrayFindLast",
724
727
  "package": "shared",
725
- lastUpdated: 1676713178000,
728
+ lastUpdated: 1680167214000,
726
729
  docs: "https://vueuse.org/shared/useArrayFindLast/",
727
730
  category: "Array",
728
731
  description: "reactive `Array.findLast`"
@@ -770,7 +773,7 @@ var functions$1 = [
770
773
  {
771
774
  name: "useArrayUnique",
772
775
  "package": "shared",
773
- lastUpdated: 1672753114000,
776
+ lastUpdated: 1679998999000,
774
777
  docs: "https://vueuse.org/shared/useArrayUnique/",
775
778
  category: "Array",
776
779
  description: "reactive unique array"
@@ -794,7 +797,7 @@ var functions$1 = [
794
797
  {
795
798
  name: "useAsyncValidator",
796
799
  "package": "integrations",
797
- lastUpdated: 1679570961000,
800
+ lastUpdated: 1679998355000,
798
801
  component: true,
799
802
  docs: "https://vueuse.org/integrations/useAsyncValidator/",
800
803
  category: "@Integrations",
@@ -821,7 +824,7 @@ var functions$1 = [
821
824
  {
822
825
  name: "useAxios",
823
826
  "package": "integrations",
824
- lastUpdated: 1678813845000,
827
+ lastUpdated: 1681336734000,
825
828
  docs: "https://vueuse.org/integrations/useAxios/",
826
829
  category: "@Integrations",
827
830
  description: "wrapper for [`axios`](https://github.com/axios/axios)",
@@ -855,7 +858,7 @@ var functions$1 = [
855
858
  {
856
859
  name: "useBreakpoints",
857
860
  "package": "core",
858
- lastUpdated: 1662285732000,
861
+ lastUpdated: 1681336477000,
859
862
  docs: "https://vueuse.org/core/useBreakpoints/",
860
863
  category: "Browser",
861
864
  description: "reactive viewport breakpoints"
@@ -863,7 +866,7 @@ var functions$1 = [
863
866
  {
864
867
  name: "useBroadcastChannel",
865
868
  "package": "core",
866
- lastUpdated: 1679560979000,
869
+ lastUpdated: 1680167214000,
867
870
  docs: "https://vueuse.org/core/useBroadcastChannel/",
868
871
  category: "Browser",
869
872
  description: "reactive [BroadcastChannel API](https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel)"
@@ -992,7 +995,7 @@ var functions$1 = [
992
995
  {
993
996
  name: "useDark",
994
997
  "package": "core",
995
- lastUpdated: 1662892188000,
998
+ lastUpdated: 1679995688000,
996
999
  component: true,
997
1000
  docs: "https://vueuse.org/core/useDark/",
998
1001
  category: "Browser",
@@ -1006,7 +1009,7 @@ var functions$1 = [
1006
1009
  {
1007
1010
  name: "useDateFormat",
1008
1011
  "package": "shared",
1009
- lastUpdated: 1664216752000,
1012
+ lastUpdated: 1680167214000,
1010
1013
  docs: "https://vueuse.org/shared/useDateFormat/",
1011
1014
  category: "Time",
1012
1015
  description: "get the formatted date according to the string of tokens passed in"
@@ -1064,7 +1067,7 @@ var functions$1 = [
1064
1067
  {
1065
1068
  name: "useDevicesList",
1066
1069
  "package": "core",
1067
- lastUpdated: 1662892188000,
1070
+ lastUpdated: 1679996873000,
1068
1071
  component: true,
1069
1072
  docs: "https://vueuse.org/core/useDevicesList/",
1070
1073
  category: "Sensors",
@@ -1096,7 +1099,7 @@ var functions$1 = [
1096
1099
  {
1097
1100
  name: "useDraggable",
1098
1101
  "package": "core",
1099
- lastUpdated: 1671204368000,
1102
+ lastUpdated: 1681305476000,
1100
1103
  component: true,
1101
1104
  docs: "https://vueuse.org/core/useDraggable/",
1102
1105
  category: "Elements",
@@ -1172,7 +1175,7 @@ var functions$1 = [
1172
1175
  {
1173
1176
  name: "useElementVisibility",
1174
1177
  "package": "core",
1175
- lastUpdated: 1662384256000,
1178
+ lastUpdated: 1679995393000,
1176
1179
  component: true,
1177
1180
  directive: true,
1178
1181
  docs: "https://vueuse.org/core/useElementVisibility/",
@@ -1223,7 +1226,7 @@ var functions$1 = [
1223
1226
  {
1224
1227
  name: "useFetch",
1225
1228
  "package": "core",
1226
- lastUpdated: 1678811463000,
1229
+ lastUpdated: 1681306181000,
1227
1230
  docs: "https://vueuse.org/core/useFetch/",
1228
1231
  category: "Network",
1229
1232
  description: "reactive [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) provides the ability to abort requests"
@@ -1247,7 +1250,7 @@ var functions$1 = [
1247
1250
  {
1248
1251
  name: "useFirestore",
1249
1252
  "package": "firebase",
1250
- lastUpdated: 1668298845000,
1253
+ lastUpdated: 1681306493000,
1251
1254
  docs: "https://vueuse.org/firebase/useFirestore/",
1252
1255
  category: "@Firebase",
1253
1256
  description: "reactive [Firestore](https://firebase.google.com/docs/firestore) binding",
@@ -1282,7 +1285,7 @@ var functions$1 = [
1282
1285
  {
1283
1286
  name: "useFocusWithin",
1284
1287
  "package": "core",
1285
- lastUpdated: 1674955241000,
1288
+ lastUpdated: 1681336477000,
1286
1289
  docs: "https://vueuse.org/core/useFocusWithin/",
1287
1290
  category: "Sensors",
1288
1291
  description: "reactive utility to track if an element or one of its decendants has focus"
@@ -1298,7 +1301,7 @@ var functions$1 = [
1298
1301
  {
1299
1302
  name: "useFullscreen",
1300
1303
  "package": "core",
1301
- lastUpdated: 1678813589000,
1304
+ lastUpdated: 1681306525000,
1302
1305
  component: true,
1303
1306
  docs: "https://vueuse.org/core/useFullscreen/",
1304
1307
  category: "Browser",
@@ -1358,7 +1361,7 @@ var functions$1 = [
1358
1361
  {
1359
1362
  name: "useImage",
1360
1363
  "package": "core",
1361
- lastUpdated: 1658083596000,
1364
+ lastUpdated: 1680167214000,
1362
1365
  component: true,
1363
1366
  docs: "https://vueuse.org/core/useImage/",
1364
1367
  category: "Browser",
@@ -1376,7 +1379,7 @@ var functions$1 = [
1376
1379
  {
1377
1380
  name: "useIntersectionObserver",
1378
1381
  "package": "core",
1379
- lastUpdated: 1657637968000,
1382
+ lastUpdated: 1679995393000,
1380
1383
  directive: true,
1381
1384
  docs: "https://vueuse.org/core/useIntersectionObserver/",
1382
1385
  category: "Elements",
@@ -1469,7 +1472,7 @@ var functions$1 = [
1469
1472
  {
1470
1473
  name: "useManualRefHistory",
1471
1474
  "package": "core",
1472
- lastUpdated: 1677182138000,
1475
+ lastUpdated: 1680167214000,
1473
1476
  docs: "https://vueuse.org/core/useManualRefHistory/",
1474
1477
  category: "State",
1475
1478
  description: "manually track the change history of a ref when the using calls `commit()`",
@@ -1504,7 +1507,7 @@ var functions$1 = [
1504
1507
  {
1505
1508
  name: "useMediaQuery",
1506
1509
  "package": "core",
1507
- lastUpdated: 1662574748000,
1510
+ lastUpdated: 1681306839000,
1508
1511
  docs: "https://vueuse.org/core/useMediaQuery/",
1509
1512
  category: "Browser",
1510
1513
  description: "reactive [Media Query](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Testing_media_queries)"
@@ -1512,7 +1515,7 @@ var functions$1 = [
1512
1515
  {
1513
1516
  name: "useMemoize",
1514
1517
  "package": "core",
1515
- lastUpdated: 1667952962000,
1518
+ lastUpdated: 1680167214000,
1516
1519
  docs: "https://vueuse.org/core/useMemoize/",
1517
1520
  category: "Utilities",
1518
1521
  description: "cache results of functions depending on arguments and keep it reactive"
@@ -1557,7 +1560,7 @@ var functions$1 = [
1557
1560
  {
1558
1561
  name: "useMounted",
1559
1562
  "package": "core",
1560
- lastUpdated: 1640933217000,
1563
+ lastUpdated: 1680167299000,
1561
1564
  docs: "https://vueuse.org/core/useMounted/",
1562
1565
  category: "Component",
1563
1566
  description: "mounted state in ref"
@@ -1600,7 +1603,7 @@ var functions$1 = [
1600
1603
  {
1601
1604
  name: "useNavigatorLanguage",
1602
1605
  "package": "core",
1603
- lastUpdated: 1662892188000,
1606
+ lastUpdated: 1680167214000,
1604
1607
  docs: "https://vueuse.org/core/useNavigatorLanguage/",
1605
1608
  category: "Sensors",
1606
1609
  description: "reactive [navigator.language](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/language)"
@@ -1684,6 +1687,14 @@ var functions$1 = [
1684
1687
  category: "Sensors",
1685
1688
  description: "create parallax effect easily"
1686
1689
  },
1690
+ {
1691
+ name: "useParentElement",
1692
+ "package": "core",
1693
+ lastUpdated: 1679998944000,
1694
+ docs: "https://vueuse.org/core/useParentElement/",
1695
+ category: "Elements",
1696
+ description: "get parent element of the given element"
1697
+ },
1687
1698
  {
1688
1699
  name: "usePerformanceObserver",
1689
1700
  "package": "core",
@@ -1839,7 +1850,7 @@ var functions$1 = [
1839
1850
  {
1840
1851
  name: "useResizeObserver",
1841
1852
  "package": "core",
1842
- lastUpdated: 1662384935000,
1853
+ lastUpdated: 1679998589000,
1843
1854
  docs: "https://vueuse.org/core/useResizeObserver/",
1844
1855
  category: "Elements",
1845
1856
  description: "reports changes to the dimensions of an Element's content or the border-box"
@@ -1895,7 +1906,7 @@ var functions$1 = [
1895
1906
  {
1896
1907
  name: "useScreenOrientation",
1897
1908
  "package": "core",
1898
- lastUpdated: 1657430593000,
1909
+ lastUpdated: 1680167214000,
1899
1910
  docs: "https://vueuse.org/core/useScreenOrientation/",
1900
1911
  category: "Browser",
1901
1912
  description: "reactive [Screen Orientation API](https://developer.mozilla.org/en-US/docs/Web/API/Screen_Orientation_API)"
@@ -1957,7 +1968,7 @@ var functions$1 = [
1957
1968
  {
1958
1969
  name: "useSortable",
1959
1970
  "package": "integrations",
1960
- lastUpdated: 1678811414000,
1971
+ lastUpdated: 1681305401000,
1961
1972
  component: true,
1962
1973
  docs: "https://vueuse.org/integrations/useSortable/",
1963
1974
  category: "@Integrations",
@@ -2028,7 +2039,7 @@ var functions$1 = [
2028
2039
  {
2029
2040
  name: "useStorageAsync",
2030
2041
  "package": "core",
2031
- lastUpdated: 1676546331000,
2042
+ lastUpdated: 1681306181000,
2032
2043
  docs: "https://vueuse.org/core/useStorageAsync/",
2033
2044
  category: "State",
2034
2045
  description: "reactive Storage in with async support",
@@ -2071,7 +2082,7 @@ var functions$1 = [
2071
2082
  {
2072
2083
  name: "useSupported",
2073
2084
  "package": "core",
2074
- lastUpdated: 1657430593000,
2085
+ lastUpdated: 1679995528000,
2075
2086
  docs: "https://vueuse.org/core/useSupported/",
2076
2087
  category: "Utilities",
2077
2088
  description: "sSR compatibility `isSupported`"
@@ -2144,7 +2155,7 @@ var functions$1 = [
2144
2155
  {
2145
2156
  name: "useTimeAgo",
2146
2157
  "package": "core",
2147
- lastUpdated: 1671824301000,
2158
+ lastUpdated: 1680167214000,
2148
2159
  component: true,
2149
2160
  docs: "https://vueuse.org/core/useTimeAgo/",
2150
2161
  category: "Time",
@@ -2191,15 +2202,6 @@ var functions$1 = [
2191
2202
  category: "Browser",
2192
2203
  description: "reactive document title"
2193
2204
  },
2194
- {
2195
- name: "useToFixed",
2196
- "package": "math",
2197
- lastUpdated: 1659586610000,
2198
- docs: "https://vueuse.org/math/useToFixed/",
2199
- category: "@Math",
2200
- description: "reactive `toFixed`",
2201
- deprecated: true
2202
- },
2203
2205
  {
2204
2206
  name: "useToggle",
2205
2207
  "package": "shared",
@@ -2227,7 +2229,7 @@ var functions$1 = [
2227
2229
  {
2228
2230
  name: "useTransition",
2229
2231
  "package": "core",
2230
- lastUpdated: 1679570993000,
2232
+ lastUpdated: 1680167214000,
2231
2233
  docs: "https://vueuse.org/core/useTransition/",
2232
2234
  category: "Animation",
2233
2235
  description: "transition between values"
@@ -2251,7 +2253,7 @@ var functions$1 = [
2251
2253
  {
2252
2254
  name: "useUserMedia",
2253
2255
  "package": "core",
2254
- lastUpdated: 1677938854000,
2256
+ lastUpdated: 1681336725000,
2255
2257
  docs: "https://vueuse.org/core/useUserMedia/",
2256
2258
  category: "Sensors",
2257
2259
  description: "reactive [`mediaDevices.getUserMedia`](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia) streaming",
@@ -2303,7 +2305,7 @@ var functions$1 = [
2303
2305
  {
2304
2306
  name: "useWakeLock",
2305
2307
  "package": "core",
2306
- lastUpdated: 1658083596000,
2308
+ lastUpdated: 1680167214000,
2307
2309
  docs: "https://vueuse.org/core/useWakeLock/",
2308
2310
  category: "Browser",
2309
2311
  description: "reactive [Screen Wake Lock API](https://developer.mozilla.org/en-US/docs/Web/API/Screen_Wake_Lock_API)"
@@ -2311,7 +2313,7 @@ var functions$1 = [
2311
2313
  {
2312
2314
  name: "useWebNotification",
2313
2315
  "package": "core",
2314
- lastUpdated: 1677939548000,
2316
+ lastUpdated: 1680167214000,
2315
2317
  docs: "https://vueuse.org/core/useWebNotification/",
2316
2318
  category: "Browser",
2317
2319
  description: "reactive [Notification](https://developer.mozilla.org/en-US/docs/Web/API/notification)"
@@ -2338,7 +2340,7 @@ var functions$1 = [
2338
2340
  {
2339
2341
  name: "useWebWorkerFn",
2340
2342
  "package": "core",
2341
- lastUpdated: 1657730737000,
2343
+ lastUpdated: 1680167214000,
2342
2344
  docs: "https://vueuse.org/core/useWebWorkerFn/",
2343
2345
  category: "Browser",
2344
2346
  description: "run expensive functions without blocking the UI",
@@ -2366,7 +2368,7 @@ var functions$1 = [
2366
2368
  {
2367
2369
  name: "useWindowSize",
2368
2370
  "package": "core",
2369
- lastUpdated: 1662285565000,
2371
+ lastUpdated: 1681306839000,
2370
2372
  component: true,
2371
2373
  docs: "https://vueuse.org/core/useWindowSize/",
2372
2374
  category: "Elements",
@@ -2424,7 +2426,7 @@ var functions$1 = [
2424
2426
  {
2425
2427
  name: "watchDeep",
2426
2428
  "package": "shared",
2427
- lastUpdated: 1677934625000,
2429
+ lastUpdated: 1681200124000,
2428
2430
  docs: "https://vueuse.org/shared/watchDeep/",
2429
2431
  category: "Watch",
2430
2432
  description: "shorthand for watching value with {deep: true}"
@@ -2443,7 +2445,7 @@ var functions$1 = [
2443
2445
  {
2444
2446
  name: "watchImmediate",
2445
2447
  "package": "shared",
2446
- lastUpdated: 1678354793000,
2448
+ lastUpdated: 1681200124000,
2447
2449
  docs: "https://vueuse.org/shared/watchImmediate/",
2448
2450
  category: "Watch",
2449
2451
  description: "shorthand for watching value with {immediate: true}"
@@ -2531,10 +2533,16 @@ const functionNames = functions.map((f) => f.name);
2531
2533
  const categoryNames = Array.from(categories).sort((a, b) => categoriesOrder.indexOf(a) - categoriesOrder.indexOf(b)).sort((a, b) => a.startsWith("@") ? 1 : b.startsWith("@") ? -1 : 0);
2532
2534
  const coreCategoryNames = categoryNames.filter((f) => !f.startsWith("@"));
2533
2535
  const addonCategoryNames = categoryNames.filter((f) => f.startsWith("@"));
2534
- const getFunction = (name) => metadata.functions.find((f) => f.name === name);
2536
+ function getFunction(name) {
2537
+ return metadata.functions.find((f) => f.name === name);
2538
+ }
2535
2539
 
2536
2540
  function getCategories(functions) {
2537
- return uniq(functions.filter((i) => !i.internal).map((i) => i.category).filter(Boolean)).sort((a, b) => a.startsWith("@") && !b.startsWith("@") ? 1 : b.startsWith("@") && !a.startsWith("@") ? -1 : a.localeCompare(b));
2541
+ return uniq(
2542
+ functions.filter((i) => !i.internal).map((i) => i.category).filter(Boolean)
2543
+ ).sort(
2544
+ (a, b) => a.startsWith("@") && !b.startsWith("@") ? 1 : b.startsWith("@") && !a.startsWith("@") ? -1 : a.localeCompare(b)
2545
+ );
2538
2546
  }
2539
2547
  function uniq(a) {
2540
2548
  return Array.from(new Set(a));
package/index.d.ts CHANGED
@@ -68,7 +68,7 @@ declare const functionNames: string[];
68
68
  declare const categoryNames: string[];
69
69
  declare const coreCategoryNames: string[];
70
70
  declare const addonCategoryNames: string[];
71
- declare const getFunction: (name: string) => VueUseFunction | undefined;
71
+ declare function getFunction(name: string): VueUseFunction | undefined;
72
72
 
73
73
  declare function getCategories(functions: VueUseFunction[]): string[];
74
74
  declare function uniq<T extends any[]>(a: T): any[];
package/index.json CHANGED
@@ -65,7 +65,9 @@
65
65
  "@vueuse/shared",
66
66
  "fuse.js",
67
67
  "async-validator",
68
- "idb-keyval"
68
+ "idb-keyval",
69
+ "sortablejs",
70
+ "node:http"
69
71
  ],
70
72
  "globals": {
71
73
  "axios": "axios",
@@ -78,7 +80,8 @@
78
80
  "fuse.js": "Fuse",
79
81
  "change-case": "changeCase",
80
82
  "async-validator": "AsyncValidator",
81
- "idb-keyval": "idbKeyval"
83
+ "idb-keyval": "idbKeyval",
84
+ "sortablejs": "Sortable"
82
85
  },
83
86
  "dir": "packages/integrations",
84
87
  "docs": "https://vueuse.org/integrations/README.html"
@@ -252,7 +255,7 @@
252
255
  {
253
256
  "name": "createProjection",
254
257
  "package": "math",
255
- "lastUpdated": 1657437998000,
258
+ "lastUpdated": 1680167214000,
256
259
  "docs": "https://vueuse.org/math/createProjection/",
257
260
  "category": "@Math",
258
261
  "description": "reactive numeric projection from one domain to another",
@@ -282,7 +285,7 @@
282
285
  {
283
286
  "name": "createUnrefFn",
284
287
  "package": "core",
285
- "lastUpdated": 1651597361000,
288
+ "lastUpdated": 1680167214000,
286
289
  "docs": "https://vueuse.org/core/createUnrefFn/",
287
290
  "category": "Utilities",
288
291
  "description": "make a plain function accepting ref and raw values as arguments",
@@ -388,7 +391,7 @@
388
391
  {
389
392
  "name": "onKeyStroke",
390
393
  "package": "core",
391
- "lastUpdated": 1672754414000,
394
+ "lastUpdated": 1680167214000,
392
395
  "directive": true,
393
396
  "docs": "https://vueuse.org/core/onKeyStroke/",
394
397
  "category": "Sensors",
@@ -407,7 +410,7 @@
407
410
  {
408
411
  "name": "onStartTyping",
409
412
  "package": "core",
410
- "lastUpdated": 1639442454000,
413
+ "lastUpdated": 1680612666000,
411
414
  "docs": "https://vueuse.org/core/onStartTyping/",
412
415
  "category": "Sensors",
413
416
  "description": "fires when users start typing on non-editable elements"
@@ -445,7 +448,7 @@
445
448
  {
446
449
  "name": "reactiveOmit",
447
450
  "package": "shared",
448
- "lastUpdated": 1658645224000,
451
+ "lastUpdated": 1679998329000,
449
452
  "docs": "https://vueuse.org/shared/reactiveOmit/",
450
453
  "category": "Reactivity",
451
454
  "description": "reactively omit fields from a reactive object"
@@ -453,7 +456,7 @@
453
456
  {
454
457
  "name": "reactivePick",
455
458
  "package": "shared",
456
- "lastUpdated": 1658645224000,
459
+ "lastUpdated": 1679997829000,
457
460
  "docs": "https://vueuse.org/shared/reactivePick/",
458
461
  "category": "Reactivity",
459
462
  "description": "reactively pick fields from a reactive object"
@@ -681,7 +684,7 @@
681
684
  {
682
685
  "name": "useArrayDifference",
683
686
  "package": "shared",
684
- "lastUpdated": 1679481969000,
687
+ "lastUpdated": 1680167214000,
685
688
  "docs": "https://vueuse.org/shared/useArrayDifference/",
686
689
  "category": "Array",
687
690
  "description": "reactive get array difference of two array"
@@ -721,7 +724,7 @@
721
724
  {
722
725
  "name": "useArrayFindLast",
723
726
  "package": "shared",
724
- "lastUpdated": 1676713178000,
727
+ "lastUpdated": 1680167214000,
725
728
  "docs": "https://vueuse.org/shared/useArrayFindLast/",
726
729
  "category": "Array",
727
730
  "description": "reactive `Array.findLast`"
@@ -769,7 +772,7 @@
769
772
  {
770
773
  "name": "useArrayUnique",
771
774
  "package": "shared",
772
- "lastUpdated": 1672753114000,
775
+ "lastUpdated": 1679998999000,
773
776
  "docs": "https://vueuse.org/shared/useArrayUnique/",
774
777
  "category": "Array",
775
778
  "description": "reactive unique array"
@@ -793,7 +796,7 @@
793
796
  {
794
797
  "name": "useAsyncValidator",
795
798
  "package": "integrations",
796
- "lastUpdated": 1679570961000,
799
+ "lastUpdated": 1679998355000,
797
800
  "component": true,
798
801
  "docs": "https://vueuse.org/integrations/useAsyncValidator/",
799
802
  "category": "@Integrations",
@@ -820,7 +823,7 @@
820
823
  {
821
824
  "name": "useAxios",
822
825
  "package": "integrations",
823
- "lastUpdated": 1678813845000,
826
+ "lastUpdated": 1681336734000,
824
827
  "docs": "https://vueuse.org/integrations/useAxios/",
825
828
  "category": "@Integrations",
826
829
  "description": "wrapper for [`axios`](https://github.com/axios/axios)",
@@ -854,7 +857,7 @@
854
857
  {
855
858
  "name": "useBreakpoints",
856
859
  "package": "core",
857
- "lastUpdated": 1662285732000,
860
+ "lastUpdated": 1681336477000,
858
861
  "docs": "https://vueuse.org/core/useBreakpoints/",
859
862
  "category": "Browser",
860
863
  "description": "reactive viewport breakpoints"
@@ -862,7 +865,7 @@
862
865
  {
863
866
  "name": "useBroadcastChannel",
864
867
  "package": "core",
865
- "lastUpdated": 1679560979000,
868
+ "lastUpdated": 1680167214000,
866
869
  "docs": "https://vueuse.org/core/useBroadcastChannel/",
867
870
  "category": "Browser",
868
871
  "description": "reactive [BroadcastChannel API](https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel)"
@@ -991,7 +994,7 @@
991
994
  {
992
995
  "name": "useDark",
993
996
  "package": "core",
994
- "lastUpdated": 1662892188000,
997
+ "lastUpdated": 1679995688000,
995
998
  "component": true,
996
999
  "docs": "https://vueuse.org/core/useDark/",
997
1000
  "category": "Browser",
@@ -1005,7 +1008,7 @@
1005
1008
  {
1006
1009
  "name": "useDateFormat",
1007
1010
  "package": "shared",
1008
- "lastUpdated": 1664216752000,
1011
+ "lastUpdated": 1680167214000,
1009
1012
  "docs": "https://vueuse.org/shared/useDateFormat/",
1010
1013
  "category": "Time",
1011
1014
  "description": "get the formatted date according to the string of tokens passed in"
@@ -1063,7 +1066,7 @@
1063
1066
  {
1064
1067
  "name": "useDevicesList",
1065
1068
  "package": "core",
1066
- "lastUpdated": 1662892188000,
1069
+ "lastUpdated": 1679996873000,
1067
1070
  "component": true,
1068
1071
  "docs": "https://vueuse.org/core/useDevicesList/",
1069
1072
  "category": "Sensors",
@@ -1095,7 +1098,7 @@
1095
1098
  {
1096
1099
  "name": "useDraggable",
1097
1100
  "package": "core",
1098
- "lastUpdated": 1671204368000,
1101
+ "lastUpdated": 1681305476000,
1099
1102
  "component": true,
1100
1103
  "docs": "https://vueuse.org/core/useDraggable/",
1101
1104
  "category": "Elements",
@@ -1171,7 +1174,7 @@
1171
1174
  {
1172
1175
  "name": "useElementVisibility",
1173
1176
  "package": "core",
1174
- "lastUpdated": 1662384256000,
1177
+ "lastUpdated": 1679995393000,
1175
1178
  "component": true,
1176
1179
  "directive": true,
1177
1180
  "docs": "https://vueuse.org/core/useElementVisibility/",
@@ -1222,7 +1225,7 @@
1222
1225
  {
1223
1226
  "name": "useFetch",
1224
1227
  "package": "core",
1225
- "lastUpdated": 1678811463000,
1228
+ "lastUpdated": 1681306181000,
1226
1229
  "docs": "https://vueuse.org/core/useFetch/",
1227
1230
  "category": "Network",
1228
1231
  "description": "reactive [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) provides the ability to abort requests"
@@ -1246,7 +1249,7 @@
1246
1249
  {
1247
1250
  "name": "useFirestore",
1248
1251
  "package": "firebase",
1249
- "lastUpdated": 1668298845000,
1252
+ "lastUpdated": 1681306493000,
1250
1253
  "docs": "https://vueuse.org/firebase/useFirestore/",
1251
1254
  "category": "@Firebase",
1252
1255
  "description": "reactive [Firestore](https://firebase.google.com/docs/firestore) binding",
@@ -1281,7 +1284,7 @@
1281
1284
  {
1282
1285
  "name": "useFocusWithin",
1283
1286
  "package": "core",
1284
- "lastUpdated": 1674955241000,
1287
+ "lastUpdated": 1681336477000,
1285
1288
  "docs": "https://vueuse.org/core/useFocusWithin/",
1286
1289
  "category": "Sensors",
1287
1290
  "description": "reactive utility to track if an element or one of its decendants has focus"
@@ -1297,7 +1300,7 @@
1297
1300
  {
1298
1301
  "name": "useFullscreen",
1299
1302
  "package": "core",
1300
- "lastUpdated": 1678813589000,
1303
+ "lastUpdated": 1681306525000,
1301
1304
  "component": true,
1302
1305
  "docs": "https://vueuse.org/core/useFullscreen/",
1303
1306
  "category": "Browser",
@@ -1357,7 +1360,7 @@
1357
1360
  {
1358
1361
  "name": "useImage",
1359
1362
  "package": "core",
1360
- "lastUpdated": 1658083596000,
1363
+ "lastUpdated": 1680167214000,
1361
1364
  "component": true,
1362
1365
  "docs": "https://vueuse.org/core/useImage/",
1363
1366
  "category": "Browser",
@@ -1375,7 +1378,7 @@
1375
1378
  {
1376
1379
  "name": "useIntersectionObserver",
1377
1380
  "package": "core",
1378
- "lastUpdated": 1657637968000,
1381
+ "lastUpdated": 1679995393000,
1379
1382
  "directive": true,
1380
1383
  "docs": "https://vueuse.org/core/useIntersectionObserver/",
1381
1384
  "category": "Elements",
@@ -1468,7 +1471,7 @@
1468
1471
  {
1469
1472
  "name": "useManualRefHistory",
1470
1473
  "package": "core",
1471
- "lastUpdated": 1677182138000,
1474
+ "lastUpdated": 1680167214000,
1472
1475
  "docs": "https://vueuse.org/core/useManualRefHistory/",
1473
1476
  "category": "State",
1474
1477
  "description": "manually track the change history of a ref when the using calls `commit()`",
@@ -1503,7 +1506,7 @@
1503
1506
  {
1504
1507
  "name": "useMediaQuery",
1505
1508
  "package": "core",
1506
- "lastUpdated": 1662574748000,
1509
+ "lastUpdated": 1681306839000,
1507
1510
  "docs": "https://vueuse.org/core/useMediaQuery/",
1508
1511
  "category": "Browser",
1509
1512
  "description": "reactive [Media Query](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Testing_media_queries)"
@@ -1511,7 +1514,7 @@
1511
1514
  {
1512
1515
  "name": "useMemoize",
1513
1516
  "package": "core",
1514
- "lastUpdated": 1667952962000,
1517
+ "lastUpdated": 1680167214000,
1515
1518
  "docs": "https://vueuse.org/core/useMemoize/",
1516
1519
  "category": "Utilities",
1517
1520
  "description": "cache results of functions depending on arguments and keep it reactive"
@@ -1556,7 +1559,7 @@
1556
1559
  {
1557
1560
  "name": "useMounted",
1558
1561
  "package": "core",
1559
- "lastUpdated": 1640933217000,
1562
+ "lastUpdated": 1680167299000,
1560
1563
  "docs": "https://vueuse.org/core/useMounted/",
1561
1564
  "category": "Component",
1562
1565
  "description": "mounted state in ref"
@@ -1599,7 +1602,7 @@
1599
1602
  {
1600
1603
  "name": "useNavigatorLanguage",
1601
1604
  "package": "core",
1602
- "lastUpdated": 1662892188000,
1605
+ "lastUpdated": 1680167214000,
1603
1606
  "docs": "https://vueuse.org/core/useNavigatorLanguage/",
1604
1607
  "category": "Sensors",
1605
1608
  "description": "reactive [navigator.language](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/language)"
@@ -1683,6 +1686,14 @@
1683
1686
  "category": "Sensors",
1684
1687
  "description": "create parallax effect easily"
1685
1688
  },
1689
+ {
1690
+ "name": "useParentElement",
1691
+ "package": "core",
1692
+ "lastUpdated": 1679998944000,
1693
+ "docs": "https://vueuse.org/core/useParentElement/",
1694
+ "category": "Elements",
1695
+ "description": "get parent element of the given element"
1696
+ },
1686
1697
  {
1687
1698
  "name": "usePerformanceObserver",
1688
1699
  "package": "core",
@@ -1838,7 +1849,7 @@
1838
1849
  {
1839
1850
  "name": "useResizeObserver",
1840
1851
  "package": "core",
1841
- "lastUpdated": 1662384935000,
1852
+ "lastUpdated": 1679998589000,
1842
1853
  "docs": "https://vueuse.org/core/useResizeObserver/",
1843
1854
  "category": "Elements",
1844
1855
  "description": "reports changes to the dimensions of an Element's content or the border-box"
@@ -1894,7 +1905,7 @@
1894
1905
  {
1895
1906
  "name": "useScreenOrientation",
1896
1907
  "package": "core",
1897
- "lastUpdated": 1657430593000,
1908
+ "lastUpdated": 1680167214000,
1898
1909
  "docs": "https://vueuse.org/core/useScreenOrientation/",
1899
1910
  "category": "Browser",
1900
1911
  "description": "reactive [Screen Orientation API](https://developer.mozilla.org/en-US/docs/Web/API/Screen_Orientation_API)"
@@ -1956,7 +1967,7 @@
1956
1967
  {
1957
1968
  "name": "useSortable",
1958
1969
  "package": "integrations",
1959
- "lastUpdated": 1678811414000,
1970
+ "lastUpdated": 1681305401000,
1960
1971
  "component": true,
1961
1972
  "docs": "https://vueuse.org/integrations/useSortable/",
1962
1973
  "category": "@Integrations",
@@ -2027,7 +2038,7 @@
2027
2038
  {
2028
2039
  "name": "useStorageAsync",
2029
2040
  "package": "core",
2030
- "lastUpdated": 1676546331000,
2041
+ "lastUpdated": 1681306181000,
2031
2042
  "docs": "https://vueuse.org/core/useStorageAsync/",
2032
2043
  "category": "State",
2033
2044
  "description": "reactive Storage in with async support",
@@ -2070,7 +2081,7 @@
2070
2081
  {
2071
2082
  "name": "useSupported",
2072
2083
  "package": "core",
2073
- "lastUpdated": 1657430593000,
2084
+ "lastUpdated": 1679995528000,
2074
2085
  "docs": "https://vueuse.org/core/useSupported/",
2075
2086
  "category": "Utilities",
2076
2087
  "description": "sSR compatibility `isSupported`"
@@ -2143,7 +2154,7 @@
2143
2154
  {
2144
2155
  "name": "useTimeAgo",
2145
2156
  "package": "core",
2146
- "lastUpdated": 1671824301000,
2157
+ "lastUpdated": 1680167214000,
2147
2158
  "component": true,
2148
2159
  "docs": "https://vueuse.org/core/useTimeAgo/",
2149
2160
  "category": "Time",
@@ -2190,15 +2201,6 @@
2190
2201
  "category": "Browser",
2191
2202
  "description": "reactive document title"
2192
2203
  },
2193
- {
2194
- "name": "useToFixed",
2195
- "package": "math",
2196
- "lastUpdated": 1659586610000,
2197
- "docs": "https://vueuse.org/math/useToFixed/",
2198
- "category": "@Math",
2199
- "description": "reactive `toFixed`",
2200
- "deprecated": true
2201
- },
2202
2204
  {
2203
2205
  "name": "useToggle",
2204
2206
  "package": "shared",
@@ -2226,7 +2228,7 @@
2226
2228
  {
2227
2229
  "name": "useTransition",
2228
2230
  "package": "core",
2229
- "lastUpdated": 1679570993000,
2231
+ "lastUpdated": 1680167214000,
2230
2232
  "docs": "https://vueuse.org/core/useTransition/",
2231
2233
  "category": "Animation",
2232
2234
  "description": "transition between values"
@@ -2250,7 +2252,7 @@
2250
2252
  {
2251
2253
  "name": "useUserMedia",
2252
2254
  "package": "core",
2253
- "lastUpdated": 1677938854000,
2255
+ "lastUpdated": 1681336725000,
2254
2256
  "docs": "https://vueuse.org/core/useUserMedia/",
2255
2257
  "category": "Sensors",
2256
2258
  "description": "reactive [`mediaDevices.getUserMedia`](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia) streaming",
@@ -2302,7 +2304,7 @@
2302
2304
  {
2303
2305
  "name": "useWakeLock",
2304
2306
  "package": "core",
2305
- "lastUpdated": 1658083596000,
2307
+ "lastUpdated": 1680167214000,
2306
2308
  "docs": "https://vueuse.org/core/useWakeLock/",
2307
2309
  "category": "Browser",
2308
2310
  "description": "reactive [Screen Wake Lock API](https://developer.mozilla.org/en-US/docs/Web/API/Screen_Wake_Lock_API)"
@@ -2310,7 +2312,7 @@
2310
2312
  {
2311
2313
  "name": "useWebNotification",
2312
2314
  "package": "core",
2313
- "lastUpdated": 1677939548000,
2315
+ "lastUpdated": 1680167214000,
2314
2316
  "docs": "https://vueuse.org/core/useWebNotification/",
2315
2317
  "category": "Browser",
2316
2318
  "description": "reactive [Notification](https://developer.mozilla.org/en-US/docs/Web/API/notification)"
@@ -2337,7 +2339,7 @@
2337
2339
  {
2338
2340
  "name": "useWebWorkerFn",
2339
2341
  "package": "core",
2340
- "lastUpdated": 1657730737000,
2342
+ "lastUpdated": 1680167214000,
2341
2343
  "docs": "https://vueuse.org/core/useWebWorkerFn/",
2342
2344
  "category": "Browser",
2343
2345
  "description": "run expensive functions without blocking the UI",
@@ -2365,7 +2367,7 @@
2365
2367
  {
2366
2368
  "name": "useWindowSize",
2367
2369
  "package": "core",
2368
- "lastUpdated": 1662285565000,
2370
+ "lastUpdated": 1681306839000,
2369
2371
  "component": true,
2370
2372
  "docs": "https://vueuse.org/core/useWindowSize/",
2371
2373
  "category": "Elements",
@@ -2423,7 +2425,7 @@
2423
2425
  {
2424
2426
  "name": "watchDeep",
2425
2427
  "package": "shared",
2426
- "lastUpdated": 1677934625000,
2428
+ "lastUpdated": 1681200124000,
2427
2429
  "docs": "https://vueuse.org/shared/watchDeep/",
2428
2430
  "category": "Watch",
2429
2431
  "description": "shorthand for watching value with {deep: true}"
@@ -2442,7 +2444,7 @@
2442
2444
  {
2443
2445
  "name": "watchImmediate",
2444
2446
  "package": "shared",
2445
- "lastUpdated": 1678354793000,
2447
+ "lastUpdated": 1681200124000,
2446
2448
  "docs": "https://vueuse.org/shared/watchImmediate/",
2447
2449
  "category": "Watch",
2448
2450
  "description": "shorthand for watching value with {immediate: true}"
package/index.mjs CHANGED
@@ -64,7 +64,9 @@ var packages$1 = {
64
64
  "@vueuse/shared",
65
65
  "fuse.js",
66
66
  "async-validator",
67
- "idb-keyval"
67
+ "idb-keyval",
68
+ "sortablejs",
69
+ "node:http"
68
70
  ],
69
71
  globals: {
70
72
  axios: "axios",
@@ -77,7 +79,8 @@ var packages$1 = {
77
79
  "fuse.js": "Fuse",
78
80
  "change-case": "changeCase",
79
81
  "async-validator": "AsyncValidator",
80
- "idb-keyval": "idbKeyval"
82
+ "idb-keyval": "idbKeyval",
83
+ sortablejs: "Sortable"
81
84
  },
82
85
  dir: "packages/integrations",
83
86
  docs: "https://vueuse.org/integrations/README.html"
@@ -251,7 +254,7 @@ var functions$1 = [
251
254
  {
252
255
  name: "createProjection",
253
256
  "package": "math",
254
- lastUpdated: 1657437998000,
257
+ lastUpdated: 1680167214000,
255
258
  docs: "https://vueuse.org/math/createProjection/",
256
259
  category: "@Math",
257
260
  description: "reactive numeric projection from one domain to another",
@@ -281,7 +284,7 @@ var functions$1 = [
281
284
  {
282
285
  name: "createUnrefFn",
283
286
  "package": "core",
284
- lastUpdated: 1651597361000,
287
+ lastUpdated: 1680167214000,
285
288
  docs: "https://vueuse.org/core/createUnrefFn/",
286
289
  category: "Utilities",
287
290
  description: "make a plain function accepting ref and raw values as arguments",
@@ -387,7 +390,7 @@ var functions$1 = [
387
390
  {
388
391
  name: "onKeyStroke",
389
392
  "package": "core",
390
- lastUpdated: 1672754414000,
393
+ lastUpdated: 1680167214000,
391
394
  directive: true,
392
395
  docs: "https://vueuse.org/core/onKeyStroke/",
393
396
  category: "Sensors",
@@ -406,7 +409,7 @@ var functions$1 = [
406
409
  {
407
410
  name: "onStartTyping",
408
411
  "package": "core",
409
- lastUpdated: 1639442454000,
412
+ lastUpdated: 1680612666000,
410
413
  docs: "https://vueuse.org/core/onStartTyping/",
411
414
  category: "Sensors",
412
415
  description: "fires when users start typing on non-editable elements"
@@ -444,7 +447,7 @@ var functions$1 = [
444
447
  {
445
448
  name: "reactiveOmit",
446
449
  "package": "shared",
447
- lastUpdated: 1658645224000,
450
+ lastUpdated: 1679998329000,
448
451
  docs: "https://vueuse.org/shared/reactiveOmit/",
449
452
  category: "Reactivity",
450
453
  description: "reactively omit fields from a reactive object"
@@ -452,7 +455,7 @@ var functions$1 = [
452
455
  {
453
456
  name: "reactivePick",
454
457
  "package": "shared",
455
- lastUpdated: 1658645224000,
458
+ lastUpdated: 1679997829000,
456
459
  docs: "https://vueuse.org/shared/reactivePick/",
457
460
  category: "Reactivity",
458
461
  description: "reactively pick fields from a reactive object"
@@ -680,7 +683,7 @@ var functions$1 = [
680
683
  {
681
684
  name: "useArrayDifference",
682
685
  "package": "shared",
683
- lastUpdated: 1679481969000,
686
+ lastUpdated: 1680167214000,
684
687
  docs: "https://vueuse.org/shared/useArrayDifference/",
685
688
  category: "Array",
686
689
  description: "reactive get array difference of two array"
@@ -720,7 +723,7 @@ var functions$1 = [
720
723
  {
721
724
  name: "useArrayFindLast",
722
725
  "package": "shared",
723
- lastUpdated: 1676713178000,
726
+ lastUpdated: 1680167214000,
724
727
  docs: "https://vueuse.org/shared/useArrayFindLast/",
725
728
  category: "Array",
726
729
  description: "reactive `Array.findLast`"
@@ -768,7 +771,7 @@ var functions$1 = [
768
771
  {
769
772
  name: "useArrayUnique",
770
773
  "package": "shared",
771
- lastUpdated: 1672753114000,
774
+ lastUpdated: 1679998999000,
772
775
  docs: "https://vueuse.org/shared/useArrayUnique/",
773
776
  category: "Array",
774
777
  description: "reactive unique array"
@@ -792,7 +795,7 @@ var functions$1 = [
792
795
  {
793
796
  name: "useAsyncValidator",
794
797
  "package": "integrations",
795
- lastUpdated: 1679570961000,
798
+ lastUpdated: 1679998355000,
796
799
  component: true,
797
800
  docs: "https://vueuse.org/integrations/useAsyncValidator/",
798
801
  category: "@Integrations",
@@ -819,7 +822,7 @@ var functions$1 = [
819
822
  {
820
823
  name: "useAxios",
821
824
  "package": "integrations",
822
- lastUpdated: 1678813845000,
825
+ lastUpdated: 1681336734000,
823
826
  docs: "https://vueuse.org/integrations/useAxios/",
824
827
  category: "@Integrations",
825
828
  description: "wrapper for [`axios`](https://github.com/axios/axios)",
@@ -853,7 +856,7 @@ var functions$1 = [
853
856
  {
854
857
  name: "useBreakpoints",
855
858
  "package": "core",
856
- lastUpdated: 1662285732000,
859
+ lastUpdated: 1681336477000,
857
860
  docs: "https://vueuse.org/core/useBreakpoints/",
858
861
  category: "Browser",
859
862
  description: "reactive viewport breakpoints"
@@ -861,7 +864,7 @@ var functions$1 = [
861
864
  {
862
865
  name: "useBroadcastChannel",
863
866
  "package": "core",
864
- lastUpdated: 1679560979000,
867
+ lastUpdated: 1680167214000,
865
868
  docs: "https://vueuse.org/core/useBroadcastChannel/",
866
869
  category: "Browser",
867
870
  description: "reactive [BroadcastChannel API](https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel)"
@@ -990,7 +993,7 @@ var functions$1 = [
990
993
  {
991
994
  name: "useDark",
992
995
  "package": "core",
993
- lastUpdated: 1662892188000,
996
+ lastUpdated: 1679995688000,
994
997
  component: true,
995
998
  docs: "https://vueuse.org/core/useDark/",
996
999
  category: "Browser",
@@ -1004,7 +1007,7 @@ var functions$1 = [
1004
1007
  {
1005
1008
  name: "useDateFormat",
1006
1009
  "package": "shared",
1007
- lastUpdated: 1664216752000,
1010
+ lastUpdated: 1680167214000,
1008
1011
  docs: "https://vueuse.org/shared/useDateFormat/",
1009
1012
  category: "Time",
1010
1013
  description: "get the formatted date according to the string of tokens passed in"
@@ -1062,7 +1065,7 @@ var functions$1 = [
1062
1065
  {
1063
1066
  name: "useDevicesList",
1064
1067
  "package": "core",
1065
- lastUpdated: 1662892188000,
1068
+ lastUpdated: 1679996873000,
1066
1069
  component: true,
1067
1070
  docs: "https://vueuse.org/core/useDevicesList/",
1068
1071
  category: "Sensors",
@@ -1094,7 +1097,7 @@ var functions$1 = [
1094
1097
  {
1095
1098
  name: "useDraggable",
1096
1099
  "package": "core",
1097
- lastUpdated: 1671204368000,
1100
+ lastUpdated: 1681305476000,
1098
1101
  component: true,
1099
1102
  docs: "https://vueuse.org/core/useDraggable/",
1100
1103
  category: "Elements",
@@ -1170,7 +1173,7 @@ var functions$1 = [
1170
1173
  {
1171
1174
  name: "useElementVisibility",
1172
1175
  "package": "core",
1173
- lastUpdated: 1662384256000,
1176
+ lastUpdated: 1679995393000,
1174
1177
  component: true,
1175
1178
  directive: true,
1176
1179
  docs: "https://vueuse.org/core/useElementVisibility/",
@@ -1221,7 +1224,7 @@ var functions$1 = [
1221
1224
  {
1222
1225
  name: "useFetch",
1223
1226
  "package": "core",
1224
- lastUpdated: 1678811463000,
1227
+ lastUpdated: 1681306181000,
1225
1228
  docs: "https://vueuse.org/core/useFetch/",
1226
1229
  category: "Network",
1227
1230
  description: "reactive [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) provides the ability to abort requests"
@@ -1245,7 +1248,7 @@ var functions$1 = [
1245
1248
  {
1246
1249
  name: "useFirestore",
1247
1250
  "package": "firebase",
1248
- lastUpdated: 1668298845000,
1251
+ lastUpdated: 1681306493000,
1249
1252
  docs: "https://vueuse.org/firebase/useFirestore/",
1250
1253
  category: "@Firebase",
1251
1254
  description: "reactive [Firestore](https://firebase.google.com/docs/firestore) binding",
@@ -1280,7 +1283,7 @@ var functions$1 = [
1280
1283
  {
1281
1284
  name: "useFocusWithin",
1282
1285
  "package": "core",
1283
- lastUpdated: 1674955241000,
1286
+ lastUpdated: 1681336477000,
1284
1287
  docs: "https://vueuse.org/core/useFocusWithin/",
1285
1288
  category: "Sensors",
1286
1289
  description: "reactive utility to track if an element or one of its decendants has focus"
@@ -1296,7 +1299,7 @@ var functions$1 = [
1296
1299
  {
1297
1300
  name: "useFullscreen",
1298
1301
  "package": "core",
1299
- lastUpdated: 1678813589000,
1302
+ lastUpdated: 1681306525000,
1300
1303
  component: true,
1301
1304
  docs: "https://vueuse.org/core/useFullscreen/",
1302
1305
  category: "Browser",
@@ -1356,7 +1359,7 @@ var functions$1 = [
1356
1359
  {
1357
1360
  name: "useImage",
1358
1361
  "package": "core",
1359
- lastUpdated: 1658083596000,
1362
+ lastUpdated: 1680167214000,
1360
1363
  component: true,
1361
1364
  docs: "https://vueuse.org/core/useImage/",
1362
1365
  category: "Browser",
@@ -1374,7 +1377,7 @@ var functions$1 = [
1374
1377
  {
1375
1378
  name: "useIntersectionObserver",
1376
1379
  "package": "core",
1377
- lastUpdated: 1657637968000,
1380
+ lastUpdated: 1679995393000,
1378
1381
  directive: true,
1379
1382
  docs: "https://vueuse.org/core/useIntersectionObserver/",
1380
1383
  category: "Elements",
@@ -1467,7 +1470,7 @@ var functions$1 = [
1467
1470
  {
1468
1471
  name: "useManualRefHistory",
1469
1472
  "package": "core",
1470
- lastUpdated: 1677182138000,
1473
+ lastUpdated: 1680167214000,
1471
1474
  docs: "https://vueuse.org/core/useManualRefHistory/",
1472
1475
  category: "State",
1473
1476
  description: "manually track the change history of a ref when the using calls `commit()`",
@@ -1502,7 +1505,7 @@ var functions$1 = [
1502
1505
  {
1503
1506
  name: "useMediaQuery",
1504
1507
  "package": "core",
1505
- lastUpdated: 1662574748000,
1508
+ lastUpdated: 1681306839000,
1506
1509
  docs: "https://vueuse.org/core/useMediaQuery/",
1507
1510
  category: "Browser",
1508
1511
  description: "reactive [Media Query](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Testing_media_queries)"
@@ -1510,7 +1513,7 @@ var functions$1 = [
1510
1513
  {
1511
1514
  name: "useMemoize",
1512
1515
  "package": "core",
1513
- lastUpdated: 1667952962000,
1516
+ lastUpdated: 1680167214000,
1514
1517
  docs: "https://vueuse.org/core/useMemoize/",
1515
1518
  category: "Utilities",
1516
1519
  description: "cache results of functions depending on arguments and keep it reactive"
@@ -1555,7 +1558,7 @@ var functions$1 = [
1555
1558
  {
1556
1559
  name: "useMounted",
1557
1560
  "package": "core",
1558
- lastUpdated: 1640933217000,
1561
+ lastUpdated: 1680167299000,
1559
1562
  docs: "https://vueuse.org/core/useMounted/",
1560
1563
  category: "Component",
1561
1564
  description: "mounted state in ref"
@@ -1598,7 +1601,7 @@ var functions$1 = [
1598
1601
  {
1599
1602
  name: "useNavigatorLanguage",
1600
1603
  "package": "core",
1601
- lastUpdated: 1662892188000,
1604
+ lastUpdated: 1680167214000,
1602
1605
  docs: "https://vueuse.org/core/useNavigatorLanguage/",
1603
1606
  category: "Sensors",
1604
1607
  description: "reactive [navigator.language](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/language)"
@@ -1682,6 +1685,14 @@ var functions$1 = [
1682
1685
  category: "Sensors",
1683
1686
  description: "create parallax effect easily"
1684
1687
  },
1688
+ {
1689
+ name: "useParentElement",
1690
+ "package": "core",
1691
+ lastUpdated: 1679998944000,
1692
+ docs: "https://vueuse.org/core/useParentElement/",
1693
+ category: "Elements",
1694
+ description: "get parent element of the given element"
1695
+ },
1685
1696
  {
1686
1697
  name: "usePerformanceObserver",
1687
1698
  "package": "core",
@@ -1837,7 +1848,7 @@ var functions$1 = [
1837
1848
  {
1838
1849
  name: "useResizeObserver",
1839
1850
  "package": "core",
1840
- lastUpdated: 1662384935000,
1851
+ lastUpdated: 1679998589000,
1841
1852
  docs: "https://vueuse.org/core/useResizeObserver/",
1842
1853
  category: "Elements",
1843
1854
  description: "reports changes to the dimensions of an Element's content or the border-box"
@@ -1893,7 +1904,7 @@ var functions$1 = [
1893
1904
  {
1894
1905
  name: "useScreenOrientation",
1895
1906
  "package": "core",
1896
- lastUpdated: 1657430593000,
1907
+ lastUpdated: 1680167214000,
1897
1908
  docs: "https://vueuse.org/core/useScreenOrientation/",
1898
1909
  category: "Browser",
1899
1910
  description: "reactive [Screen Orientation API](https://developer.mozilla.org/en-US/docs/Web/API/Screen_Orientation_API)"
@@ -1955,7 +1966,7 @@ var functions$1 = [
1955
1966
  {
1956
1967
  name: "useSortable",
1957
1968
  "package": "integrations",
1958
- lastUpdated: 1678811414000,
1969
+ lastUpdated: 1681305401000,
1959
1970
  component: true,
1960
1971
  docs: "https://vueuse.org/integrations/useSortable/",
1961
1972
  category: "@Integrations",
@@ -2026,7 +2037,7 @@ var functions$1 = [
2026
2037
  {
2027
2038
  name: "useStorageAsync",
2028
2039
  "package": "core",
2029
- lastUpdated: 1676546331000,
2040
+ lastUpdated: 1681306181000,
2030
2041
  docs: "https://vueuse.org/core/useStorageAsync/",
2031
2042
  category: "State",
2032
2043
  description: "reactive Storage in with async support",
@@ -2069,7 +2080,7 @@ var functions$1 = [
2069
2080
  {
2070
2081
  name: "useSupported",
2071
2082
  "package": "core",
2072
- lastUpdated: 1657430593000,
2083
+ lastUpdated: 1679995528000,
2073
2084
  docs: "https://vueuse.org/core/useSupported/",
2074
2085
  category: "Utilities",
2075
2086
  description: "sSR compatibility `isSupported`"
@@ -2142,7 +2153,7 @@ var functions$1 = [
2142
2153
  {
2143
2154
  name: "useTimeAgo",
2144
2155
  "package": "core",
2145
- lastUpdated: 1671824301000,
2156
+ lastUpdated: 1680167214000,
2146
2157
  component: true,
2147
2158
  docs: "https://vueuse.org/core/useTimeAgo/",
2148
2159
  category: "Time",
@@ -2189,15 +2200,6 @@ var functions$1 = [
2189
2200
  category: "Browser",
2190
2201
  description: "reactive document title"
2191
2202
  },
2192
- {
2193
- name: "useToFixed",
2194
- "package": "math",
2195
- lastUpdated: 1659586610000,
2196
- docs: "https://vueuse.org/math/useToFixed/",
2197
- category: "@Math",
2198
- description: "reactive `toFixed`",
2199
- deprecated: true
2200
- },
2201
2203
  {
2202
2204
  name: "useToggle",
2203
2205
  "package": "shared",
@@ -2225,7 +2227,7 @@ var functions$1 = [
2225
2227
  {
2226
2228
  name: "useTransition",
2227
2229
  "package": "core",
2228
- lastUpdated: 1679570993000,
2230
+ lastUpdated: 1680167214000,
2229
2231
  docs: "https://vueuse.org/core/useTransition/",
2230
2232
  category: "Animation",
2231
2233
  description: "transition between values"
@@ -2249,7 +2251,7 @@ var functions$1 = [
2249
2251
  {
2250
2252
  name: "useUserMedia",
2251
2253
  "package": "core",
2252
- lastUpdated: 1677938854000,
2254
+ lastUpdated: 1681336725000,
2253
2255
  docs: "https://vueuse.org/core/useUserMedia/",
2254
2256
  category: "Sensors",
2255
2257
  description: "reactive [`mediaDevices.getUserMedia`](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia) streaming",
@@ -2301,7 +2303,7 @@ var functions$1 = [
2301
2303
  {
2302
2304
  name: "useWakeLock",
2303
2305
  "package": "core",
2304
- lastUpdated: 1658083596000,
2306
+ lastUpdated: 1680167214000,
2305
2307
  docs: "https://vueuse.org/core/useWakeLock/",
2306
2308
  category: "Browser",
2307
2309
  description: "reactive [Screen Wake Lock API](https://developer.mozilla.org/en-US/docs/Web/API/Screen_Wake_Lock_API)"
@@ -2309,7 +2311,7 @@ var functions$1 = [
2309
2311
  {
2310
2312
  name: "useWebNotification",
2311
2313
  "package": "core",
2312
- lastUpdated: 1677939548000,
2314
+ lastUpdated: 1680167214000,
2313
2315
  docs: "https://vueuse.org/core/useWebNotification/",
2314
2316
  category: "Browser",
2315
2317
  description: "reactive [Notification](https://developer.mozilla.org/en-US/docs/Web/API/notification)"
@@ -2336,7 +2338,7 @@ var functions$1 = [
2336
2338
  {
2337
2339
  name: "useWebWorkerFn",
2338
2340
  "package": "core",
2339
- lastUpdated: 1657730737000,
2341
+ lastUpdated: 1680167214000,
2340
2342
  docs: "https://vueuse.org/core/useWebWorkerFn/",
2341
2343
  category: "Browser",
2342
2344
  description: "run expensive functions without blocking the UI",
@@ -2364,7 +2366,7 @@ var functions$1 = [
2364
2366
  {
2365
2367
  name: "useWindowSize",
2366
2368
  "package": "core",
2367
- lastUpdated: 1662285565000,
2369
+ lastUpdated: 1681306839000,
2368
2370
  component: true,
2369
2371
  docs: "https://vueuse.org/core/useWindowSize/",
2370
2372
  category: "Elements",
@@ -2422,7 +2424,7 @@ var functions$1 = [
2422
2424
  {
2423
2425
  name: "watchDeep",
2424
2426
  "package": "shared",
2425
- lastUpdated: 1677934625000,
2427
+ lastUpdated: 1681200124000,
2426
2428
  docs: "https://vueuse.org/shared/watchDeep/",
2427
2429
  category: "Watch",
2428
2430
  description: "shorthand for watching value with {deep: true}"
@@ -2441,7 +2443,7 @@ var functions$1 = [
2441
2443
  {
2442
2444
  name: "watchImmediate",
2443
2445
  "package": "shared",
2444
- lastUpdated: 1678354793000,
2446
+ lastUpdated: 1681200124000,
2445
2447
  docs: "https://vueuse.org/shared/watchImmediate/",
2446
2448
  category: "Watch",
2447
2449
  description: "shorthand for watching value with {immediate: true}"
@@ -2529,10 +2531,16 @@ const functionNames = functions.map((f) => f.name);
2529
2531
  const categoryNames = Array.from(categories).sort((a, b) => categoriesOrder.indexOf(a) - categoriesOrder.indexOf(b)).sort((a, b) => a.startsWith("@") ? 1 : b.startsWith("@") ? -1 : 0);
2530
2532
  const coreCategoryNames = categoryNames.filter((f) => !f.startsWith("@"));
2531
2533
  const addonCategoryNames = categoryNames.filter((f) => f.startsWith("@"));
2532
- const getFunction = (name) => metadata.functions.find((f) => f.name === name);
2534
+ function getFunction(name) {
2535
+ return metadata.functions.find((f) => f.name === name);
2536
+ }
2533
2537
 
2534
2538
  function getCategories(functions) {
2535
- return uniq(functions.filter((i) => !i.internal).map((i) => i.category).filter(Boolean)).sort((a, b) => a.startsWith("@") && !b.startsWith("@") ? 1 : b.startsWith("@") && !a.startsWith("@") ? -1 : a.localeCompare(b));
2539
+ return uniq(
2540
+ functions.filter((i) => !i.internal).map((i) => i.category).filter(Boolean)
2541
+ ).sort(
2542
+ (a, b) => a.startsWith("@") && !b.startsWith("@") ? 1 : b.startsWith("@") && !a.startsWith("@") ? -1 : a.localeCompare(b)
2543
+ );
2536
2544
  }
2537
2545
  function uniq(a) {
2538
2546
  return Array.from(new Set(a));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vueuse/metadata",
3
- "version": "10.0.0-beta.1",
3
+ "version": "10.0.0-beta.3",
4
4
  "description": "Metadata for VueUse functions",
5
5
  "author": "Anthony Fu <https://github.com/antfu>",
6
6
  "license": "MIT",