@vueuse/metadata 12.0.0 → 12.2.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.
Files changed (4) hide show
  1. package/index.cjs +45 -37
  2. package/index.json +45 -37
  3. package/index.mjs +45 -37
  4. package/package.json +11 -4
package/index.cjs CHANGED
@@ -17,19 +17,12 @@ var packages$1 = {
17
17
  display: "Components",
18
18
  description: "Renderless components for VueUse",
19
19
  author: "Jacob Clevenger<https://github.com/wheatjs>",
20
- external: [
21
- "@vueuse/core",
22
- "@vueuse/shared"
23
- ],
24
20
  dir: "packages/components"
25
21
  },
26
22
  math: {
27
23
  name: "math",
28
24
  display: "Math",
29
25
  description: "Math functions for VueUse",
30
- external: [
31
- "@vueuse/shared"
32
- ],
33
26
  dir: "packages/math"
34
27
  },
35
28
  router: {
@@ -62,8 +55,6 @@ var packages$1 = {
62
55
  "focus-trap",
63
56
  "change-case",
64
57
  "drauu",
65
- "@vueuse/core",
66
- "@vueuse/shared",
67
58
  "fuse.js",
68
59
  "async-validator",
69
60
  "idb-keyval",
@@ -210,7 +201,7 @@ var functions$1 = [
210
201
  {
211
202
  name: "createEventHook",
212
203
  "package": "shared",
213
- lastUpdated: 1723593622000,
204
+ lastUpdated: 1734838281000,
214
205
  docs: "https://vueuse.org/shared/createEventHook/",
215
206
  category: "Utilities",
216
207
  description: "utility for creating event hooks"
@@ -337,7 +328,7 @@ var functions$1 = [
337
328
  {
338
329
  name: "injectLocal",
339
330
  "package": "shared",
340
- lastUpdated: 1732178709000,
331
+ lastUpdated: 1734845260000,
341
332
  docs: "https://vueuse.org/shared/injectLocal/",
342
333
  category: "State",
343
334
  description: "extended `inject` with ability to call `provideLocal` to provide the value in the same component"
@@ -508,7 +499,7 @@ var functions$1 = [
508
499
  {
509
500
  name: "refDebounced",
510
501
  "package": "shared",
511
- lastUpdated: 1732178709000,
502
+ lastUpdated: 1734667787000,
512
503
  docs: "https://vueuse.org/shared/refDebounced/",
513
504
  category: "Reactivity",
514
505
  description: "debounce execution of a ref value",
@@ -531,7 +522,7 @@ var functions$1 = [
531
522
  {
532
523
  name: "refThrottled",
533
524
  "package": "shared",
534
- lastUpdated: 1732178709000,
525
+ lastUpdated: 1734667787000,
535
526
  docs: "https://vueuse.org/shared/refThrottled/",
536
527
  category: "Reactivity",
537
528
  description: "throttle changing of a ref value",
@@ -731,7 +722,7 @@ var functions$1 = [
731
722
  {
732
723
  name: "useArrayDifference",
733
724
  "package": "shared",
734
- lastUpdated: 1732178709000,
725
+ lastUpdated: 1734934481000,
735
726
  docs: "https://vueuse.org/shared/useArrayDifference/",
736
727
  category: "Array",
737
728
  description: "reactive get array difference of two arrays"
@@ -771,7 +762,7 @@ var functions$1 = [
771
762
  {
772
763
  name: "useArrayFindLast",
773
764
  "package": "shared",
774
- lastUpdated: 1732178709000,
765
+ lastUpdated: 1734667787000,
775
766
  docs: "https://vueuse.org/shared/useArrayFindLast/",
776
767
  category: "Array",
777
768
  description: "reactive `Array.findLast`"
@@ -835,7 +826,7 @@ var functions$1 = [
835
826
  {
836
827
  name: "useAsyncState",
837
828
  "package": "core",
838
- lastUpdated: 1732178709000,
829
+ lastUpdated: 1734843615000,
839
830
  docs: "https://vueuse.org/core/useAsyncState/",
840
831
  category: "State",
841
832
  description: "reactive async state"
@@ -879,7 +870,7 @@ var functions$1 = [
879
870
  {
880
871
  name: "useBase64",
881
872
  "package": "core",
882
- lastUpdated: 1732178709000,
873
+ lastUpdated: 1734596685000,
883
874
  docs: "https://vueuse.org/core/useBase64/",
884
875
  category: "Utilities",
885
876
  description: "reactive base64 transforming"
@@ -904,7 +895,7 @@ var functions$1 = [
904
895
  {
905
896
  name: "useBreakpoints",
906
897
  "package": "core",
907
- lastUpdated: 1732178709000,
898
+ lastUpdated: 1734844682000,
908
899
  docs: "https://vueuse.org/core/useBreakpoints/",
909
900
  category: "Browser",
910
901
  description: "reactive viewport breakpoints"
@@ -1101,7 +1092,7 @@ var functions$1 = [
1101
1092
  {
1102
1093
  name: "useDeviceMotion",
1103
1094
  "package": "core",
1104
- lastUpdated: 1732178709000,
1095
+ lastUpdated: 1734842783000,
1105
1096
  component: true,
1106
1097
  docs: "https://vueuse.org/core/useDeviceMotion/",
1107
1098
  category: "Sensors",
@@ -1178,7 +1169,7 @@ var functions$1 = [
1178
1169
  {
1179
1170
  name: "useDropZone",
1180
1171
  "package": "core",
1181
- lastUpdated: 1732178709000,
1172
+ lastUpdated: 1734844669000,
1182
1173
  docs: "https://vueuse.org/core/useDropZone/",
1183
1174
  category: "Elements",
1184
1175
  description: "create a zone where files can be dropped"
@@ -1236,7 +1227,7 @@ var functions$1 = [
1236
1227
  {
1237
1228
  name: "useElementVisibility",
1238
1229
  "package": "core",
1239
- lastUpdated: 1732178709000,
1230
+ lastUpdated: 1734843636000,
1240
1231
  component: true,
1241
1232
  directive: true,
1242
1233
  docs: "https://vueuse.org/core/useElementVisibility/",
@@ -1262,7 +1253,7 @@ var functions$1 = [
1262
1253
  {
1263
1254
  name: "useEventSource",
1264
1255
  "package": "core",
1265
- lastUpdated: 1732178709000,
1256
+ lastUpdated: 1734935538000,
1266
1257
  docs: "https://vueuse.org/core/useEventSource/",
1267
1258
  category: "Network",
1268
1259
  description: "an [EventSource](https://developer.mozilla.org/en-US/docs/Web/API/EventSource) or [Server-Sent-Events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events) instance opens a persistent connection to an HTTP server"
@@ -1295,7 +1286,7 @@ var functions$1 = [
1295
1286
  {
1296
1287
  name: "useFetch",
1297
1288
  "package": "core",
1298
- lastUpdated: 1732178709000,
1289
+ lastUpdated: 1734845953000,
1299
1290
  docs: "https://vueuse.org/core/useFetch/",
1300
1291
  category: "Network",
1301
1292
  description: "reactive [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) provides the ability to abort requests"
@@ -1430,7 +1421,7 @@ var functions$1 = [
1430
1421
  {
1431
1422
  name: "useImage",
1432
1423
  "package": "core",
1433
- lastUpdated: 1732178709000,
1424
+ lastUpdated: 1734935010000,
1434
1425
  component: true,
1435
1426
  docs: "https://vueuse.org/core/useImage/",
1436
1427
  category: "Browser",
@@ -1448,7 +1439,7 @@ var functions$1 = [
1448
1439
  {
1449
1440
  name: "useIntersectionObserver",
1450
1441
  "package": "core",
1451
- lastUpdated: 1732178709000,
1442
+ lastUpdated: 1734667787000,
1452
1443
  directive: true,
1453
1444
  docs: "https://vueuse.org/core/useIntersectionObserver/",
1454
1445
  category: "Elements",
@@ -1568,7 +1559,7 @@ var functions$1 = [
1568
1559
  {
1569
1560
  name: "useMediaControls",
1570
1561
  "package": "core",
1571
- lastUpdated: 1732178709000,
1562
+ lastUpdated: 1734845276000,
1572
1563
  docs: "https://vueuse.org/core/useMediaControls/",
1573
1564
  category: "Browser",
1574
1565
  description: "reactive media controls for both `audio` and `video` elements"
@@ -1576,7 +1567,7 @@ var functions$1 = [
1576
1567
  {
1577
1568
  name: "useMediaQuery",
1578
1569
  "package": "core",
1579
- lastUpdated: 1732178709000,
1570
+ lastUpdated: 1734844682000,
1580
1571
  docs: "https://vueuse.org/core/useMediaQuery/",
1581
1572
  category: "Browser",
1582
1573
  description: "reactive [Media Query](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Testing_media_queries)"
@@ -1866,6 +1857,15 @@ var functions$1 = [
1866
1857
  category: "Browser",
1867
1858
  description: "reactive [prefers-reduced-motion](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion) media query"
1868
1859
  },
1860
+ {
1861
+ name: "usePreferredReducedTransparency",
1862
+ "package": "core",
1863
+ lastUpdated: 1734936123000,
1864
+ component: true,
1865
+ docs: "https://vueuse.org/core/usePreferredReducedTransparency/",
1866
+ category: "Browser",
1867
+ description: "reactive [prefers-reduced-transparency](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-transparency) media query"
1868
+ },
1869
1869
  {
1870
1870
  name: "usePrevious",
1871
1871
  "package": "core",
@@ -1898,7 +1898,7 @@ var functions$1 = [
1898
1898
  {
1899
1899
  name: "useRafFn",
1900
1900
  "package": "core",
1901
- lastUpdated: 1732178709000,
1901
+ lastUpdated: 1734863699000,
1902
1902
  docs: "https://vueuse.org/core/useRafFn/",
1903
1903
  category: "Animation",
1904
1904
  description: "call function on every `requestAnimationFrame`"
@@ -1944,7 +1944,7 @@ var functions$1 = [
1944
1944
  {
1945
1945
  name: "useRouteParams",
1946
1946
  "package": "router",
1947
- lastUpdated: 1732178709000,
1947
+ lastUpdated: 1734843570000,
1948
1948
  docs: "https://vueuse.org/router/useRouteParams/",
1949
1949
  category: "@Router",
1950
1950
  description: "shorthand for a reactive `route.params`"
@@ -1952,7 +1952,7 @@ var functions$1 = [
1952
1952
  {
1953
1953
  name: "useRouteQuery",
1954
1954
  "package": "router",
1955
- lastUpdated: 1732178709000,
1955
+ lastUpdated: 1734843570000,
1956
1956
  docs: "https://vueuse.org/router/useRouteQuery/",
1957
1957
  category: "@Router",
1958
1958
  description: "shorthand for a reactive `route.query`"
@@ -2001,7 +2001,7 @@ var functions$1 = [
2001
2001
  {
2002
2002
  name: "useScroll",
2003
2003
  "package": "core",
2004
- lastUpdated: 1732178709000,
2004
+ lastUpdated: 1734843549000,
2005
2005
  directive: true,
2006
2006
  docs: "https://vueuse.org/core/useScroll/",
2007
2007
  category: "Sensors",
@@ -2083,6 +2083,14 @@ var functions$1 = [
2083
2083
  description: "spring animations.",
2084
2084
  external: "https://motion.vueuse.org/api/use-spring"
2085
2085
  },
2086
+ {
2087
+ name: "useSSRWidth",
2088
+ "package": "core",
2089
+ lastUpdated: 1734844682000,
2090
+ docs: "https://vueuse.org/core/useSSRWidth/",
2091
+ category: "Browser",
2092
+ description: "used to set a global viewport width which will be used when rendering SSR components that rely on the viewport width like [`useMediaQuery`](../useMediaQuery/index.md) or [`useBreakpoints`](../useBreakpoints/index.md)"
2093
+ },
2086
2094
  {
2087
2095
  name: "useStepper",
2088
2096
  "package": "core",
@@ -2176,7 +2184,7 @@ var functions$1 = [
2176
2184
  {
2177
2185
  name: "useTextareaAutosize",
2178
2186
  "package": "core",
2179
- lastUpdated: 1732178709000,
2187
+ lastUpdated: 1734843597000,
2180
2188
  docs: "https://vueuse.org/core/useTextareaAutosize/",
2181
2189
  category: "Browser",
2182
2190
  description: "automatically update the height of a textarea depending on the content"
@@ -2315,7 +2323,7 @@ var functions$1 = [
2315
2323
  {
2316
2324
  name: "useUrlSearchParams",
2317
2325
  "package": "core",
2318
- lastUpdated: 1732178709000,
2326
+ lastUpdated: 1734844647000,
2319
2327
  docs: "https://vueuse.org/core/useUrlSearchParams/",
2320
2328
  category: "Browser",
2321
2329
  description: "reactive [URLSearchParams](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams)"
@@ -2383,7 +2391,7 @@ var functions$1 = [
2383
2391
  {
2384
2392
  name: "useWebNotification",
2385
2393
  "package": "core",
2386
- lastUpdated: 1732178709000,
2394
+ lastUpdated: 1734838225000,
2387
2395
  docs: "https://vueuse.org/core/useWebNotification/",
2388
2396
  category: "Browser",
2389
2397
  description: "reactive [Notification](https://developer.mozilla.org/en-US/docs/Web/API/notification)"
@@ -2391,7 +2399,7 @@ var functions$1 = [
2391
2399
  {
2392
2400
  name: "useWebSocket",
2393
2401
  "package": "core",
2394
- lastUpdated: 1732178709000,
2402
+ lastUpdated: 1734935538000,
2395
2403
  docs: "https://vueuse.org/core/useWebSocket/",
2396
2404
  category: "Network",
2397
2405
  description: "reactive [WebSocket](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/WebSocket) client"
@@ -2438,7 +2446,7 @@ var functions$1 = [
2438
2446
  {
2439
2447
  name: "useWindowSize",
2440
2448
  "package": "core",
2441
- lastUpdated: 1732178709000,
2449
+ lastUpdated: 1734843844000,
2442
2450
  component: true,
2443
2451
  docs: "https://vueuse.org/core/useWindowSize/",
2444
2452
  category: "Elements",
@@ -2463,7 +2471,7 @@ var functions$1 = [
2463
2471
  {
2464
2472
  name: "utils",
2465
2473
  "package": "shared",
2466
- lastUpdated: 1732178709000,
2474
+ lastUpdated: 1734844682000,
2467
2475
  internal: true
2468
2476
  },
2469
2477
  {
package/index.json CHANGED
@@ -16,19 +16,12 @@
16
16
  "display": "Components",
17
17
  "description": "Renderless components for VueUse",
18
18
  "author": "Jacob Clevenger<https://github.com/wheatjs>",
19
- "external": [
20
- "@vueuse/core",
21
- "@vueuse/shared"
22
- ],
23
19
  "dir": "packages/components"
24
20
  },
25
21
  "math": {
26
22
  "name": "math",
27
23
  "display": "Math",
28
24
  "description": "Math functions for VueUse",
29
- "external": [
30
- "@vueuse/shared"
31
- ],
32
25
  "dir": "packages/math"
33
26
  },
34
27
  "router": {
@@ -61,8 +54,6 @@
61
54
  "focus-trap",
62
55
  "change-case",
63
56
  "drauu",
64
- "@vueuse/core",
65
- "@vueuse/shared",
66
57
  "fuse.js",
67
58
  "async-validator",
68
59
  "idb-keyval",
@@ -209,7 +200,7 @@
209
200
  {
210
201
  "name": "createEventHook",
211
202
  "package": "shared",
212
- "lastUpdated": 1723593622000,
203
+ "lastUpdated": 1734838281000,
213
204
  "docs": "https://vueuse.org/shared/createEventHook/",
214
205
  "category": "Utilities",
215
206
  "description": "utility for creating event hooks"
@@ -336,7 +327,7 @@
336
327
  {
337
328
  "name": "injectLocal",
338
329
  "package": "shared",
339
- "lastUpdated": 1732178709000,
330
+ "lastUpdated": 1734845260000,
340
331
  "docs": "https://vueuse.org/shared/injectLocal/",
341
332
  "category": "State",
342
333
  "description": "extended `inject` with ability to call `provideLocal` to provide the value in the same component"
@@ -507,7 +498,7 @@
507
498
  {
508
499
  "name": "refDebounced",
509
500
  "package": "shared",
510
- "lastUpdated": 1732178709000,
501
+ "lastUpdated": 1734667787000,
511
502
  "docs": "https://vueuse.org/shared/refDebounced/",
512
503
  "category": "Reactivity",
513
504
  "description": "debounce execution of a ref value",
@@ -530,7 +521,7 @@
530
521
  {
531
522
  "name": "refThrottled",
532
523
  "package": "shared",
533
- "lastUpdated": 1732178709000,
524
+ "lastUpdated": 1734667787000,
534
525
  "docs": "https://vueuse.org/shared/refThrottled/",
535
526
  "category": "Reactivity",
536
527
  "description": "throttle changing of a ref value",
@@ -730,7 +721,7 @@
730
721
  {
731
722
  "name": "useArrayDifference",
732
723
  "package": "shared",
733
- "lastUpdated": 1732178709000,
724
+ "lastUpdated": 1734934481000,
734
725
  "docs": "https://vueuse.org/shared/useArrayDifference/",
735
726
  "category": "Array",
736
727
  "description": "reactive get array difference of two arrays"
@@ -770,7 +761,7 @@
770
761
  {
771
762
  "name": "useArrayFindLast",
772
763
  "package": "shared",
773
- "lastUpdated": 1732178709000,
764
+ "lastUpdated": 1734667787000,
774
765
  "docs": "https://vueuse.org/shared/useArrayFindLast/",
775
766
  "category": "Array",
776
767
  "description": "reactive `Array.findLast`"
@@ -834,7 +825,7 @@
834
825
  {
835
826
  "name": "useAsyncState",
836
827
  "package": "core",
837
- "lastUpdated": 1732178709000,
828
+ "lastUpdated": 1734843615000,
838
829
  "docs": "https://vueuse.org/core/useAsyncState/",
839
830
  "category": "State",
840
831
  "description": "reactive async state"
@@ -878,7 +869,7 @@
878
869
  {
879
870
  "name": "useBase64",
880
871
  "package": "core",
881
- "lastUpdated": 1732178709000,
872
+ "lastUpdated": 1734596685000,
882
873
  "docs": "https://vueuse.org/core/useBase64/",
883
874
  "category": "Utilities",
884
875
  "description": "reactive base64 transforming"
@@ -903,7 +894,7 @@
903
894
  {
904
895
  "name": "useBreakpoints",
905
896
  "package": "core",
906
- "lastUpdated": 1732178709000,
897
+ "lastUpdated": 1734844682000,
907
898
  "docs": "https://vueuse.org/core/useBreakpoints/",
908
899
  "category": "Browser",
909
900
  "description": "reactive viewport breakpoints"
@@ -1100,7 +1091,7 @@
1100
1091
  {
1101
1092
  "name": "useDeviceMotion",
1102
1093
  "package": "core",
1103
- "lastUpdated": 1732178709000,
1094
+ "lastUpdated": 1734842783000,
1104
1095
  "component": true,
1105
1096
  "docs": "https://vueuse.org/core/useDeviceMotion/",
1106
1097
  "category": "Sensors",
@@ -1177,7 +1168,7 @@
1177
1168
  {
1178
1169
  "name": "useDropZone",
1179
1170
  "package": "core",
1180
- "lastUpdated": 1732178709000,
1171
+ "lastUpdated": 1734844669000,
1181
1172
  "docs": "https://vueuse.org/core/useDropZone/",
1182
1173
  "category": "Elements",
1183
1174
  "description": "create a zone where files can be dropped"
@@ -1235,7 +1226,7 @@
1235
1226
  {
1236
1227
  "name": "useElementVisibility",
1237
1228
  "package": "core",
1238
- "lastUpdated": 1732178709000,
1229
+ "lastUpdated": 1734843636000,
1239
1230
  "component": true,
1240
1231
  "directive": true,
1241
1232
  "docs": "https://vueuse.org/core/useElementVisibility/",
@@ -1261,7 +1252,7 @@
1261
1252
  {
1262
1253
  "name": "useEventSource",
1263
1254
  "package": "core",
1264
- "lastUpdated": 1732178709000,
1255
+ "lastUpdated": 1734935538000,
1265
1256
  "docs": "https://vueuse.org/core/useEventSource/",
1266
1257
  "category": "Network",
1267
1258
  "description": "an [EventSource](https://developer.mozilla.org/en-US/docs/Web/API/EventSource) or [Server-Sent-Events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events) instance opens a persistent connection to an HTTP server"
@@ -1294,7 +1285,7 @@
1294
1285
  {
1295
1286
  "name": "useFetch",
1296
1287
  "package": "core",
1297
- "lastUpdated": 1732178709000,
1288
+ "lastUpdated": 1734845953000,
1298
1289
  "docs": "https://vueuse.org/core/useFetch/",
1299
1290
  "category": "Network",
1300
1291
  "description": "reactive [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) provides the ability to abort requests"
@@ -1429,7 +1420,7 @@
1429
1420
  {
1430
1421
  "name": "useImage",
1431
1422
  "package": "core",
1432
- "lastUpdated": 1732178709000,
1423
+ "lastUpdated": 1734935010000,
1433
1424
  "component": true,
1434
1425
  "docs": "https://vueuse.org/core/useImage/",
1435
1426
  "category": "Browser",
@@ -1447,7 +1438,7 @@
1447
1438
  {
1448
1439
  "name": "useIntersectionObserver",
1449
1440
  "package": "core",
1450
- "lastUpdated": 1732178709000,
1441
+ "lastUpdated": 1734667787000,
1451
1442
  "directive": true,
1452
1443
  "docs": "https://vueuse.org/core/useIntersectionObserver/",
1453
1444
  "category": "Elements",
@@ -1567,7 +1558,7 @@
1567
1558
  {
1568
1559
  "name": "useMediaControls",
1569
1560
  "package": "core",
1570
- "lastUpdated": 1732178709000,
1561
+ "lastUpdated": 1734845276000,
1571
1562
  "docs": "https://vueuse.org/core/useMediaControls/",
1572
1563
  "category": "Browser",
1573
1564
  "description": "reactive media controls for both `audio` and `video` elements"
@@ -1575,7 +1566,7 @@
1575
1566
  {
1576
1567
  "name": "useMediaQuery",
1577
1568
  "package": "core",
1578
- "lastUpdated": 1732178709000,
1569
+ "lastUpdated": 1734844682000,
1579
1570
  "docs": "https://vueuse.org/core/useMediaQuery/",
1580
1571
  "category": "Browser",
1581
1572
  "description": "reactive [Media Query](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Testing_media_queries)"
@@ -1865,6 +1856,15 @@
1865
1856
  "category": "Browser",
1866
1857
  "description": "reactive [prefers-reduced-motion](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion) media query"
1867
1858
  },
1859
+ {
1860
+ "name": "usePreferredReducedTransparency",
1861
+ "package": "core",
1862
+ "lastUpdated": 1734936123000,
1863
+ "component": true,
1864
+ "docs": "https://vueuse.org/core/usePreferredReducedTransparency/",
1865
+ "category": "Browser",
1866
+ "description": "reactive [prefers-reduced-transparency](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-transparency) media query"
1867
+ },
1868
1868
  {
1869
1869
  "name": "usePrevious",
1870
1870
  "package": "core",
@@ -1897,7 +1897,7 @@
1897
1897
  {
1898
1898
  "name": "useRafFn",
1899
1899
  "package": "core",
1900
- "lastUpdated": 1732178709000,
1900
+ "lastUpdated": 1734863699000,
1901
1901
  "docs": "https://vueuse.org/core/useRafFn/",
1902
1902
  "category": "Animation",
1903
1903
  "description": "call function on every `requestAnimationFrame`"
@@ -1943,7 +1943,7 @@
1943
1943
  {
1944
1944
  "name": "useRouteParams",
1945
1945
  "package": "router",
1946
- "lastUpdated": 1732178709000,
1946
+ "lastUpdated": 1734843570000,
1947
1947
  "docs": "https://vueuse.org/router/useRouteParams/",
1948
1948
  "category": "@Router",
1949
1949
  "description": "shorthand for a reactive `route.params`"
@@ -1951,7 +1951,7 @@
1951
1951
  {
1952
1952
  "name": "useRouteQuery",
1953
1953
  "package": "router",
1954
- "lastUpdated": 1732178709000,
1954
+ "lastUpdated": 1734843570000,
1955
1955
  "docs": "https://vueuse.org/router/useRouteQuery/",
1956
1956
  "category": "@Router",
1957
1957
  "description": "shorthand for a reactive `route.query`"
@@ -2000,7 +2000,7 @@
2000
2000
  {
2001
2001
  "name": "useScroll",
2002
2002
  "package": "core",
2003
- "lastUpdated": 1732178709000,
2003
+ "lastUpdated": 1734843549000,
2004
2004
  "directive": true,
2005
2005
  "docs": "https://vueuse.org/core/useScroll/",
2006
2006
  "category": "Sensors",
@@ -2082,6 +2082,14 @@
2082
2082
  "description": "spring animations.",
2083
2083
  "external": "https://motion.vueuse.org/api/use-spring"
2084
2084
  },
2085
+ {
2086
+ "name": "useSSRWidth",
2087
+ "package": "core",
2088
+ "lastUpdated": 1734844682000,
2089
+ "docs": "https://vueuse.org/core/useSSRWidth/",
2090
+ "category": "Browser",
2091
+ "description": "used to set a global viewport width which will be used when rendering SSR components that rely on the viewport width like [`useMediaQuery`](../useMediaQuery/index.md) or [`useBreakpoints`](../useBreakpoints/index.md)"
2092
+ },
2085
2093
  {
2086
2094
  "name": "useStepper",
2087
2095
  "package": "core",
@@ -2175,7 +2183,7 @@
2175
2183
  {
2176
2184
  "name": "useTextareaAutosize",
2177
2185
  "package": "core",
2178
- "lastUpdated": 1732178709000,
2186
+ "lastUpdated": 1734843597000,
2179
2187
  "docs": "https://vueuse.org/core/useTextareaAutosize/",
2180
2188
  "category": "Browser",
2181
2189
  "description": "automatically update the height of a textarea depending on the content"
@@ -2314,7 +2322,7 @@
2314
2322
  {
2315
2323
  "name": "useUrlSearchParams",
2316
2324
  "package": "core",
2317
- "lastUpdated": 1732178709000,
2325
+ "lastUpdated": 1734844647000,
2318
2326
  "docs": "https://vueuse.org/core/useUrlSearchParams/",
2319
2327
  "category": "Browser",
2320
2328
  "description": "reactive [URLSearchParams](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams)"
@@ -2382,7 +2390,7 @@
2382
2390
  {
2383
2391
  "name": "useWebNotification",
2384
2392
  "package": "core",
2385
- "lastUpdated": 1732178709000,
2393
+ "lastUpdated": 1734838225000,
2386
2394
  "docs": "https://vueuse.org/core/useWebNotification/",
2387
2395
  "category": "Browser",
2388
2396
  "description": "reactive [Notification](https://developer.mozilla.org/en-US/docs/Web/API/notification)"
@@ -2390,7 +2398,7 @@
2390
2398
  {
2391
2399
  "name": "useWebSocket",
2392
2400
  "package": "core",
2393
- "lastUpdated": 1732178709000,
2401
+ "lastUpdated": 1734935538000,
2394
2402
  "docs": "https://vueuse.org/core/useWebSocket/",
2395
2403
  "category": "Network",
2396
2404
  "description": "reactive [WebSocket](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/WebSocket) client"
@@ -2437,7 +2445,7 @@
2437
2445
  {
2438
2446
  "name": "useWindowSize",
2439
2447
  "package": "core",
2440
- "lastUpdated": 1732178709000,
2448
+ "lastUpdated": 1734843844000,
2441
2449
  "component": true,
2442
2450
  "docs": "https://vueuse.org/core/useWindowSize/",
2443
2451
  "category": "Elements",
@@ -2462,7 +2470,7 @@
2462
2470
  {
2463
2471
  "name": "utils",
2464
2472
  "package": "shared",
2465
- "lastUpdated": 1732178709000,
2473
+ "lastUpdated": 1734844682000,
2466
2474
  "internal": true
2467
2475
  },
2468
2476
  {
package/index.mjs CHANGED
@@ -15,19 +15,12 @@ var packages$1 = {
15
15
  display: "Components",
16
16
  description: "Renderless components for VueUse",
17
17
  author: "Jacob Clevenger<https://github.com/wheatjs>",
18
- external: [
19
- "@vueuse/core",
20
- "@vueuse/shared"
21
- ],
22
18
  dir: "packages/components"
23
19
  },
24
20
  math: {
25
21
  name: "math",
26
22
  display: "Math",
27
23
  description: "Math functions for VueUse",
28
- external: [
29
- "@vueuse/shared"
30
- ],
31
24
  dir: "packages/math"
32
25
  },
33
26
  router: {
@@ -60,8 +53,6 @@ var packages$1 = {
60
53
  "focus-trap",
61
54
  "change-case",
62
55
  "drauu",
63
- "@vueuse/core",
64
- "@vueuse/shared",
65
56
  "fuse.js",
66
57
  "async-validator",
67
58
  "idb-keyval",
@@ -208,7 +199,7 @@ var functions$1 = [
208
199
  {
209
200
  name: "createEventHook",
210
201
  "package": "shared",
211
- lastUpdated: 1723593622000,
202
+ lastUpdated: 1734838281000,
212
203
  docs: "https://vueuse.org/shared/createEventHook/",
213
204
  category: "Utilities",
214
205
  description: "utility for creating event hooks"
@@ -335,7 +326,7 @@ var functions$1 = [
335
326
  {
336
327
  name: "injectLocal",
337
328
  "package": "shared",
338
- lastUpdated: 1732178709000,
329
+ lastUpdated: 1734845260000,
339
330
  docs: "https://vueuse.org/shared/injectLocal/",
340
331
  category: "State",
341
332
  description: "extended `inject` with ability to call `provideLocal` to provide the value in the same component"
@@ -506,7 +497,7 @@ var functions$1 = [
506
497
  {
507
498
  name: "refDebounced",
508
499
  "package": "shared",
509
- lastUpdated: 1732178709000,
500
+ lastUpdated: 1734667787000,
510
501
  docs: "https://vueuse.org/shared/refDebounced/",
511
502
  category: "Reactivity",
512
503
  description: "debounce execution of a ref value",
@@ -529,7 +520,7 @@ var functions$1 = [
529
520
  {
530
521
  name: "refThrottled",
531
522
  "package": "shared",
532
- lastUpdated: 1732178709000,
523
+ lastUpdated: 1734667787000,
533
524
  docs: "https://vueuse.org/shared/refThrottled/",
534
525
  category: "Reactivity",
535
526
  description: "throttle changing of a ref value",
@@ -729,7 +720,7 @@ var functions$1 = [
729
720
  {
730
721
  name: "useArrayDifference",
731
722
  "package": "shared",
732
- lastUpdated: 1732178709000,
723
+ lastUpdated: 1734934481000,
733
724
  docs: "https://vueuse.org/shared/useArrayDifference/",
734
725
  category: "Array",
735
726
  description: "reactive get array difference of two arrays"
@@ -769,7 +760,7 @@ var functions$1 = [
769
760
  {
770
761
  name: "useArrayFindLast",
771
762
  "package": "shared",
772
- lastUpdated: 1732178709000,
763
+ lastUpdated: 1734667787000,
773
764
  docs: "https://vueuse.org/shared/useArrayFindLast/",
774
765
  category: "Array",
775
766
  description: "reactive `Array.findLast`"
@@ -833,7 +824,7 @@ var functions$1 = [
833
824
  {
834
825
  name: "useAsyncState",
835
826
  "package": "core",
836
- lastUpdated: 1732178709000,
827
+ lastUpdated: 1734843615000,
837
828
  docs: "https://vueuse.org/core/useAsyncState/",
838
829
  category: "State",
839
830
  description: "reactive async state"
@@ -877,7 +868,7 @@ var functions$1 = [
877
868
  {
878
869
  name: "useBase64",
879
870
  "package": "core",
880
- lastUpdated: 1732178709000,
871
+ lastUpdated: 1734596685000,
881
872
  docs: "https://vueuse.org/core/useBase64/",
882
873
  category: "Utilities",
883
874
  description: "reactive base64 transforming"
@@ -902,7 +893,7 @@ var functions$1 = [
902
893
  {
903
894
  name: "useBreakpoints",
904
895
  "package": "core",
905
- lastUpdated: 1732178709000,
896
+ lastUpdated: 1734844682000,
906
897
  docs: "https://vueuse.org/core/useBreakpoints/",
907
898
  category: "Browser",
908
899
  description: "reactive viewport breakpoints"
@@ -1099,7 +1090,7 @@ var functions$1 = [
1099
1090
  {
1100
1091
  name: "useDeviceMotion",
1101
1092
  "package": "core",
1102
- lastUpdated: 1732178709000,
1093
+ lastUpdated: 1734842783000,
1103
1094
  component: true,
1104
1095
  docs: "https://vueuse.org/core/useDeviceMotion/",
1105
1096
  category: "Sensors",
@@ -1176,7 +1167,7 @@ var functions$1 = [
1176
1167
  {
1177
1168
  name: "useDropZone",
1178
1169
  "package": "core",
1179
- lastUpdated: 1732178709000,
1170
+ lastUpdated: 1734844669000,
1180
1171
  docs: "https://vueuse.org/core/useDropZone/",
1181
1172
  category: "Elements",
1182
1173
  description: "create a zone where files can be dropped"
@@ -1234,7 +1225,7 @@ var functions$1 = [
1234
1225
  {
1235
1226
  name: "useElementVisibility",
1236
1227
  "package": "core",
1237
- lastUpdated: 1732178709000,
1228
+ lastUpdated: 1734843636000,
1238
1229
  component: true,
1239
1230
  directive: true,
1240
1231
  docs: "https://vueuse.org/core/useElementVisibility/",
@@ -1260,7 +1251,7 @@ var functions$1 = [
1260
1251
  {
1261
1252
  name: "useEventSource",
1262
1253
  "package": "core",
1263
- lastUpdated: 1732178709000,
1254
+ lastUpdated: 1734935538000,
1264
1255
  docs: "https://vueuse.org/core/useEventSource/",
1265
1256
  category: "Network",
1266
1257
  description: "an [EventSource](https://developer.mozilla.org/en-US/docs/Web/API/EventSource) or [Server-Sent-Events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events) instance opens a persistent connection to an HTTP server"
@@ -1293,7 +1284,7 @@ var functions$1 = [
1293
1284
  {
1294
1285
  name: "useFetch",
1295
1286
  "package": "core",
1296
- lastUpdated: 1732178709000,
1287
+ lastUpdated: 1734845953000,
1297
1288
  docs: "https://vueuse.org/core/useFetch/",
1298
1289
  category: "Network",
1299
1290
  description: "reactive [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) provides the ability to abort requests"
@@ -1428,7 +1419,7 @@ var functions$1 = [
1428
1419
  {
1429
1420
  name: "useImage",
1430
1421
  "package": "core",
1431
- lastUpdated: 1732178709000,
1422
+ lastUpdated: 1734935010000,
1432
1423
  component: true,
1433
1424
  docs: "https://vueuse.org/core/useImage/",
1434
1425
  category: "Browser",
@@ -1446,7 +1437,7 @@ var functions$1 = [
1446
1437
  {
1447
1438
  name: "useIntersectionObserver",
1448
1439
  "package": "core",
1449
- lastUpdated: 1732178709000,
1440
+ lastUpdated: 1734667787000,
1450
1441
  directive: true,
1451
1442
  docs: "https://vueuse.org/core/useIntersectionObserver/",
1452
1443
  category: "Elements",
@@ -1566,7 +1557,7 @@ var functions$1 = [
1566
1557
  {
1567
1558
  name: "useMediaControls",
1568
1559
  "package": "core",
1569
- lastUpdated: 1732178709000,
1560
+ lastUpdated: 1734845276000,
1570
1561
  docs: "https://vueuse.org/core/useMediaControls/",
1571
1562
  category: "Browser",
1572
1563
  description: "reactive media controls for both `audio` and `video` elements"
@@ -1574,7 +1565,7 @@ var functions$1 = [
1574
1565
  {
1575
1566
  name: "useMediaQuery",
1576
1567
  "package": "core",
1577
- lastUpdated: 1732178709000,
1568
+ lastUpdated: 1734844682000,
1578
1569
  docs: "https://vueuse.org/core/useMediaQuery/",
1579
1570
  category: "Browser",
1580
1571
  description: "reactive [Media Query](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Testing_media_queries)"
@@ -1864,6 +1855,15 @@ var functions$1 = [
1864
1855
  category: "Browser",
1865
1856
  description: "reactive [prefers-reduced-motion](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion) media query"
1866
1857
  },
1858
+ {
1859
+ name: "usePreferredReducedTransparency",
1860
+ "package": "core",
1861
+ lastUpdated: 1734936123000,
1862
+ component: true,
1863
+ docs: "https://vueuse.org/core/usePreferredReducedTransparency/",
1864
+ category: "Browser",
1865
+ description: "reactive [prefers-reduced-transparency](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-transparency) media query"
1866
+ },
1867
1867
  {
1868
1868
  name: "usePrevious",
1869
1869
  "package": "core",
@@ -1896,7 +1896,7 @@ var functions$1 = [
1896
1896
  {
1897
1897
  name: "useRafFn",
1898
1898
  "package": "core",
1899
- lastUpdated: 1732178709000,
1899
+ lastUpdated: 1734863699000,
1900
1900
  docs: "https://vueuse.org/core/useRafFn/",
1901
1901
  category: "Animation",
1902
1902
  description: "call function on every `requestAnimationFrame`"
@@ -1942,7 +1942,7 @@ var functions$1 = [
1942
1942
  {
1943
1943
  name: "useRouteParams",
1944
1944
  "package": "router",
1945
- lastUpdated: 1732178709000,
1945
+ lastUpdated: 1734843570000,
1946
1946
  docs: "https://vueuse.org/router/useRouteParams/",
1947
1947
  category: "@Router",
1948
1948
  description: "shorthand for a reactive `route.params`"
@@ -1950,7 +1950,7 @@ var functions$1 = [
1950
1950
  {
1951
1951
  name: "useRouteQuery",
1952
1952
  "package": "router",
1953
- lastUpdated: 1732178709000,
1953
+ lastUpdated: 1734843570000,
1954
1954
  docs: "https://vueuse.org/router/useRouteQuery/",
1955
1955
  category: "@Router",
1956
1956
  description: "shorthand for a reactive `route.query`"
@@ -1999,7 +1999,7 @@ var functions$1 = [
1999
1999
  {
2000
2000
  name: "useScroll",
2001
2001
  "package": "core",
2002
- lastUpdated: 1732178709000,
2002
+ lastUpdated: 1734843549000,
2003
2003
  directive: true,
2004
2004
  docs: "https://vueuse.org/core/useScroll/",
2005
2005
  category: "Sensors",
@@ -2081,6 +2081,14 @@ var functions$1 = [
2081
2081
  description: "spring animations.",
2082
2082
  external: "https://motion.vueuse.org/api/use-spring"
2083
2083
  },
2084
+ {
2085
+ name: "useSSRWidth",
2086
+ "package": "core",
2087
+ lastUpdated: 1734844682000,
2088
+ docs: "https://vueuse.org/core/useSSRWidth/",
2089
+ category: "Browser",
2090
+ description: "used to set a global viewport width which will be used when rendering SSR components that rely on the viewport width like [`useMediaQuery`](../useMediaQuery/index.md) or [`useBreakpoints`](../useBreakpoints/index.md)"
2091
+ },
2084
2092
  {
2085
2093
  name: "useStepper",
2086
2094
  "package": "core",
@@ -2174,7 +2182,7 @@ var functions$1 = [
2174
2182
  {
2175
2183
  name: "useTextareaAutosize",
2176
2184
  "package": "core",
2177
- lastUpdated: 1732178709000,
2185
+ lastUpdated: 1734843597000,
2178
2186
  docs: "https://vueuse.org/core/useTextareaAutosize/",
2179
2187
  category: "Browser",
2180
2188
  description: "automatically update the height of a textarea depending on the content"
@@ -2313,7 +2321,7 @@ var functions$1 = [
2313
2321
  {
2314
2322
  name: "useUrlSearchParams",
2315
2323
  "package": "core",
2316
- lastUpdated: 1732178709000,
2324
+ lastUpdated: 1734844647000,
2317
2325
  docs: "https://vueuse.org/core/useUrlSearchParams/",
2318
2326
  category: "Browser",
2319
2327
  description: "reactive [URLSearchParams](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams)"
@@ -2381,7 +2389,7 @@ var functions$1 = [
2381
2389
  {
2382
2390
  name: "useWebNotification",
2383
2391
  "package": "core",
2384
- lastUpdated: 1732178709000,
2392
+ lastUpdated: 1734838225000,
2385
2393
  docs: "https://vueuse.org/core/useWebNotification/",
2386
2394
  category: "Browser",
2387
2395
  description: "reactive [Notification](https://developer.mozilla.org/en-US/docs/Web/API/notification)"
@@ -2389,7 +2397,7 @@ var functions$1 = [
2389
2397
  {
2390
2398
  name: "useWebSocket",
2391
2399
  "package": "core",
2392
- lastUpdated: 1732178709000,
2400
+ lastUpdated: 1734935538000,
2393
2401
  docs: "https://vueuse.org/core/useWebSocket/",
2394
2402
  category: "Network",
2395
2403
  description: "reactive [WebSocket](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/WebSocket) client"
@@ -2436,7 +2444,7 @@ var functions$1 = [
2436
2444
  {
2437
2445
  name: "useWindowSize",
2438
2446
  "package": "core",
2439
- lastUpdated: 1732178709000,
2447
+ lastUpdated: 1734843844000,
2440
2448
  component: true,
2441
2449
  docs: "https://vueuse.org/core/useWindowSize/",
2442
2450
  category: "Elements",
@@ -2461,7 +2469,7 @@ var functions$1 = [
2461
2469
  {
2462
2470
  name: "utils",
2463
2471
  "package": "shared",
2464
- lastUpdated: 1732178709000,
2472
+ lastUpdated: 1734844682000,
2465
2473
  internal: true
2466
2474
  },
2467
2475
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vueuse/metadata",
3
3
  "type": "module",
4
- "version": "12.0.0",
4
+ "version": "12.2.0-beta.3",
5
5
  "description": "Metadata for VueUse functions",
6
6
  "author": "Anthony Fu <https://github.com/antfu>",
7
7
  "license": "MIT",
@@ -31,9 +31,16 @@
31
31
  "module": "./index.mjs",
32
32
  "types": "./index.d.ts",
33
33
  "files": [
34
- "index.*"
34
+ "*.cjs",
35
+ "*.d.cts",
36
+ "*.d.mts",
37
+ "*.d.ts",
38
+ "*.js",
39
+ "*.mjs",
40
+ "index.json"
35
41
  ],
36
42
  "scripts": {
37
- "update": "esno scripts/update.ts"
43
+ "update": "tsx scripts/update.ts",
44
+ "build": "rollup --config=rollup.config.ts --configPlugin=rollup-plugin-esbuild"
38
45
  }
39
- }
46
+ }