@vueuse/metadata 9.0.2 → 9.2.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.
Files changed (4) hide show
  1. package/index.cjs +103 -48
  2. package/index.json +103 -48
  3. package/index.mjs +103 -48
  4. package/package.json +1 -1
package/index.json CHANGED
@@ -105,11 +105,15 @@
105
105
  "submodules": true,
106
106
  "external": [
107
107
  "firebase",
108
- "firebase/app"
108
+ "firebase/app",
109
+ "firebase/database",
110
+ "firebase/firestore"
109
111
  ],
110
112
  "globals": {
111
113
  "firebase": "firebase",
112
- "firebase/app": "firebase"
114
+ "firebase/app": "firebase",
115
+ "firebase/database": "firebase",
116
+ "firebase/firestore": "firebase"
113
117
  },
114
118
  "dir": "packages/firebase",
115
119
  "docs": "https://vueuse.org/firebase/README.html"
@@ -156,7 +160,7 @@
156
160
  {
157
161
  "name": "computedAsync",
158
162
  "package": "core",
159
- "lastUpdated": 1651597361000,
163
+ "lastUpdated": 1661746302000,
160
164
  "docs": "https://vueuse.org/core/computedAsync/",
161
165
  "category": "Reactivity",
162
166
  "description": "computed for async functions",
@@ -178,7 +182,7 @@
178
182
  {
179
183
  "name": "computedInject",
180
184
  "package": "core",
181
- "lastUpdated": 1639442454000,
185
+ "lastUpdated": 1662388825000,
182
186
  "docs": "https://vueuse.org/core/computedInject/",
183
187
  "category": "Component",
184
188
  "description": "combine computed and inject"
@@ -364,7 +368,7 @@
364
368
  {
365
369
  "name": "makeDestructurable",
366
370
  "package": "shared",
367
- "lastUpdated": 1642756441000,
371
+ "lastUpdated": 1662388825000,
368
372
  "docs": "https://vueuse.org/shared/makeDestructurable/",
369
373
  "category": "Utilities",
370
374
  "description": "make isomorphic destructurable for object and array at the same time"
@@ -391,7 +395,7 @@
391
395
  {
392
396
  "name": "onLongPress",
393
397
  "package": "core",
394
- "lastUpdated": 1657076519000,
398
+ "lastUpdated": 1661746302000,
395
399
  "component": true,
396
400
  "directive": true,
397
401
  "docs": "https://vueuse.org/core/onLongPress/",
@@ -455,7 +459,7 @@
455
459
  {
456
460
  "name": "refAutoReset",
457
461
  "package": "shared",
458
- "lastUpdated": 1657259100000,
462
+ "lastUpdated": 1660291797000,
459
463
  "docs": "https://vueuse.org/shared/refAutoReset/",
460
464
  "category": "Reactivity",
461
465
  "description": "a ref which will be reset to the default value after some time",
@@ -666,7 +670,7 @@
666
670
  {
667
671
  "name": "useActiveElement",
668
672
  "package": "core",
669
- "lastUpdated": 1639442454000,
673
+ "lastUpdated": 1661239180000,
670
674
  "component": true,
671
675
  "docs": "https://vueuse.org/core/useActiveElement/",
672
676
  "category": "Elements",
@@ -675,7 +679,7 @@
675
679
  {
676
680
  "name": "useArrayEvery",
677
681
  "package": "shared",
678
- "lastUpdated": 1658903741000,
682
+ "lastUpdated": 1660291797000,
679
683
  "docs": "https://vueuse.org/shared/useArrayEvery/",
680
684
  "category": "Array",
681
685
  "description": "reactive `Array.every`"
@@ -683,7 +687,7 @@
683
687
  {
684
688
  "name": "useArrayFilter",
685
689
  "package": "shared",
686
- "lastUpdated": 1658903741000,
690
+ "lastUpdated": 1660291797000,
687
691
  "docs": "https://vueuse.org/shared/useArrayFilter/",
688
692
  "category": "Array",
689
693
  "description": "reactive `Array.filter`"
@@ -691,7 +695,7 @@
691
695
  {
692
696
  "name": "useArrayFind",
693
697
  "package": "shared",
694
- "lastUpdated": 1658903741000,
698
+ "lastUpdated": 1660291797000,
695
699
  "docs": "https://vueuse.org/shared/useArrayFind/",
696
700
  "category": "Array",
697
701
  "description": "reactive `Array.find`"
@@ -699,7 +703,7 @@
699
703
  {
700
704
  "name": "useArrayFindIndex",
701
705
  "package": "shared",
702
- "lastUpdated": 1658903741000,
706
+ "lastUpdated": 1660291797000,
703
707
  "docs": "https://vueuse.org/shared/useArrayFindIndex/",
704
708
  "category": "Array",
705
709
  "description": "reactive `Array.findIndex`"
@@ -707,7 +711,7 @@
707
711
  {
708
712
  "name": "useArrayJoin",
709
713
  "package": "shared",
710
- "lastUpdated": 1658903741000,
714
+ "lastUpdated": 1660291797000,
711
715
  "docs": "https://vueuse.org/shared/useArrayJoin/",
712
716
  "category": "Array",
713
717
  "description": "reactive `Array.join`"
@@ -715,7 +719,7 @@
715
719
  {
716
720
  "name": "useArrayMap",
717
721
  "package": "shared",
718
- "lastUpdated": 1658903741000,
722
+ "lastUpdated": 1662376596000,
719
723
  "docs": "https://vueuse.org/shared/useArrayMap/",
720
724
  "category": "Array",
721
725
  "description": "reactive `Array.map`"
@@ -723,7 +727,7 @@
723
727
  {
724
728
  "name": "useArrayReduce",
725
729
  "package": "shared",
726
- "lastUpdated": 1658903741000,
730
+ "lastUpdated": 1660291797000,
727
731
  "docs": "https://vueuse.org/shared/useArrayReduce/",
728
732
  "category": "Array",
729
733
  "description": "reactive `Array.reduce`"
@@ -731,7 +735,7 @@
731
735
  {
732
736
  "name": "useArraySome",
733
737
  "package": "shared",
734
- "lastUpdated": 1658903741000,
738
+ "lastUpdated": 1660291797000,
735
739
  "docs": "https://vueuse.org/shared/useArraySome/",
736
740
  "category": "Array",
737
741
  "description": "reactive `Array.some`"
@@ -782,7 +786,7 @@
782
786
  {
783
787
  "name": "useAxios",
784
788
  "package": "integrations",
785
- "lastUpdated": 1657259100000,
789
+ "lastUpdated": 1662093513000,
786
790
  "docs": "https://vueuse.org/integrations/useAxios/",
787
791
  "category": "@Integrations",
788
792
  "description": "wrapper for [`axios`](https://github.com/axios/axios)",
@@ -816,7 +820,7 @@
816
820
  {
817
821
  "name": "useBreakpoints",
818
822
  "package": "core",
819
- "lastUpdated": 1645877163000,
823
+ "lastUpdated": 1662285732000,
820
824
  "docs": "https://vueuse.org/core/useBreakpoints/",
821
825
  "category": "Browser",
822
826
  "description": "reactive viewport breakpoints"
@@ -879,6 +883,14 @@
879
883
  "category": "Browser",
880
884
  "description": "reactive [Clipboard API](https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API)"
881
885
  },
886
+ {
887
+ "name": "useCloned",
888
+ "package": "core",
889
+ "lastUpdated": 1662386652000,
890
+ "docs": "https://vueuse.org/core/useCloned/",
891
+ "category": "Utilities",
892
+ "description": "reactive clone of a ref"
893
+ },
882
894
  {
883
895
  "name": "useColorMode",
884
896
  "package": "core",
@@ -929,7 +941,7 @@
929
941
  {
930
942
  "name": "useCurrentElement",
931
943
  "package": "core",
932
- "lastUpdated": 1651308670000,
944
+ "lastUpdated": 1661239180000,
933
945
  "docs": "https://vueuse.org/core/useCurrentElement/",
934
946
  "category": "Component",
935
947
  "description": "get the DOM element of current component as a ref"
@@ -937,7 +949,7 @@
937
949
  {
938
950
  "name": "useCycleList",
939
951
  "package": "core",
940
- "lastUpdated": 1658083596000,
952
+ "lastUpdated": 1659556886000,
941
953
  "docs": "https://vueuse.org/core/useCycleList/",
942
954
  "category": "Utilities",
943
955
  "description": "cycle through a list of items"
@@ -959,7 +971,7 @@
959
971
  {
960
972
  "name": "useDateFormat",
961
973
  "package": "shared",
962
- "lastUpdated": 1659105614000,
974
+ "lastUpdated": 1660291797000,
963
975
  "docs": "https://vueuse.org/shared/useDateFormat/",
964
976
  "category": "Time",
965
977
  "description": "get the formatted date according to the string of tokens passed in"
@@ -979,7 +991,7 @@
979
991
  {
980
992
  "name": "useDebounceFn",
981
993
  "package": "shared",
982
- "lastUpdated": 1658645224000,
994
+ "lastUpdated": 1660291797000,
983
995
  "docs": "https://vueuse.org/shared/useDebounceFn/",
984
996
  "category": "Utilities",
985
997
  "description": "debounce execution of a function",
@@ -1008,7 +1020,7 @@
1008
1020
  {
1009
1021
  "name": "useDevicePixelRatio",
1010
1022
  "package": "core",
1011
- "lastUpdated": 1639442454000,
1023
+ "lastUpdated": 1662386570000,
1012
1024
  "component": true,
1013
1025
  "docs": "https://vueuse.org/core/useDevicePixelRatio/",
1014
1026
  "category": "Sensors",
@@ -1049,7 +1061,7 @@
1049
1061
  {
1050
1062
  "name": "useDraggable",
1051
1063
  "package": "core",
1052
- "lastUpdated": 1658083596000,
1064
+ "lastUpdated": 1662386895000,
1053
1065
  "component": true,
1054
1066
  "docs": "https://vueuse.org/core/useDraggable/",
1055
1067
  "category": "Elements",
@@ -1092,7 +1104,7 @@
1092
1104
  {
1093
1105
  "name": "useElementHover",
1094
1106
  "package": "core",
1095
- "lastUpdated": 1657259100000,
1107
+ "lastUpdated": 1660290815000,
1096
1108
  "directive": true,
1097
1109
  "docs": "https://vueuse.org/core/useElementHover/",
1098
1110
  "category": "Sensors",
@@ -1101,7 +1113,7 @@
1101
1113
  {
1102
1114
  "name": "useElementSize",
1103
1115
  "package": "core",
1104
- "lastUpdated": 1657634277000,
1116
+ "lastUpdated": 1662384935000,
1105
1117
  "component": true,
1106
1118
  "directive": true,
1107
1119
  "docs": "https://vueuse.org/core/useElementSize/",
@@ -1125,7 +1137,7 @@
1125
1137
  {
1126
1138
  "name": "useElementVisibility",
1127
1139
  "package": "core",
1128
- "lastUpdated": 1657634298000,
1140
+ "lastUpdated": 1662384256000,
1129
1141
  "component": true,
1130
1142
  "directive": true,
1131
1143
  "docs": "https://vueuse.org/core/useElementVisibility/",
@@ -1168,7 +1180,7 @@
1168
1180
  {
1169
1181
  "name": "useFavicon",
1170
1182
  "package": "core",
1171
- "lastUpdated": 1657634950000,
1183
+ "lastUpdated": 1661409315000,
1172
1184
  "docs": "https://vueuse.org/core/useFavicon/",
1173
1185
  "category": "Browser",
1174
1186
  "description": "reactive favicon"
@@ -1184,7 +1196,7 @@
1184
1196
  {
1185
1197
  "name": "useFileDialog",
1186
1198
  "package": "core",
1187
- "lastUpdated": 1657953065000,
1199
+ "lastUpdated": 1662385329000,
1188
1200
  "docs": "https://vueuse.org/core/useFileDialog/",
1189
1201
  "category": "Browser",
1190
1202
  "description": "open file dialog with ease"
@@ -1235,7 +1247,7 @@
1235
1247
  {
1236
1248
  "name": "useFocusWithin",
1237
1249
  "package": "core",
1238
- "lastUpdated": 1657634936000,
1250
+ "lastUpdated": 1662285126000,
1239
1251
  "docs": "https://vueuse.org/core/useFocusWithin/",
1240
1252
  "category": "Sensors",
1241
1253
  "description": "reactive utility to track if an element or one of its decendants has focus"
@@ -1329,7 +1341,7 @@
1329
1341
  {
1330
1342
  "name": "useInterval",
1331
1343
  "package": "shared",
1332
- "lastUpdated": 1658645224000,
1344
+ "lastUpdated": 1660751262000,
1333
1345
  "docs": "https://vueuse.org/shared/useInterval/",
1334
1346
  "category": "Animation",
1335
1347
  "description": "reactive counter increases on every interval"
@@ -1337,7 +1349,7 @@
1337
1349
  {
1338
1350
  "name": "useIntervalFn",
1339
1351
  "package": "shared",
1340
- "lastUpdated": 1658083607000,
1352
+ "lastUpdated": 1659611339000,
1341
1353
  "docs": "https://vueuse.org/shared/useIntervalFn/",
1342
1354
  "category": "Animation",
1343
1355
  "description": "wrapper for `setInterval` with controls"
@@ -1413,7 +1425,7 @@
1413
1425
  {
1414
1426
  "name": "useManualRefHistory",
1415
1427
  "package": "core",
1416
- "lastUpdated": 1651597361000,
1428
+ "lastUpdated": 1662386652000,
1417
1429
  "docs": "https://vueuse.org/core/useManualRefHistory/",
1418
1430
  "category": "State",
1419
1431
  "description": "manually track the change history of a ref when the using calls `commit()`",
@@ -1456,7 +1468,7 @@
1456
1468
  {
1457
1469
  "name": "useMemoize",
1458
1470
  "package": "core",
1459
- "lastUpdated": 1657638008000,
1471
+ "lastUpdated": 1662384725000,
1460
1472
  "docs": "https://vueuse.org/core/useMemoize/",
1461
1473
  "category": "Utilities",
1462
1474
  "description": "cache results of functions depending on arguments and keep it reactive"
@@ -1596,7 +1608,7 @@
1596
1608
  {
1597
1609
  "name": "useOffsetPagination",
1598
1610
  "package": "core",
1599
- "lastUpdated": 1658163976000,
1611
+ "lastUpdated": 1659592690000,
1600
1612
  "component": true,
1601
1613
  "docs": "https://vueuse.org/core/useOffsetPagination/",
1602
1614
  "category": "Utilities",
@@ -1656,6 +1668,14 @@
1656
1668
  "category": "Sensors",
1657
1669
  "description": "reactive swipe detection based on [PointerEvents](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent)"
1658
1670
  },
1671
+ {
1672
+ "name": "usePrecision",
1673
+ "package": "math",
1674
+ "lastUpdated": 1659586173000,
1675
+ "docs": "https://vueuse.org/math/usePrecision/",
1676
+ "category": "@Math",
1677
+ "description": "reactively set the precision of a number"
1678
+ },
1659
1679
  {
1660
1680
  "name": "usePreferredColorScheme",
1661
1681
  "package": "core",
@@ -1665,6 +1685,15 @@
1665
1685
  "category": "Browser",
1666
1686
  "description": "reactive [prefers-color-scheme](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme) media query"
1667
1687
  },
1688
+ {
1689
+ "name": "usePreferredContrast",
1690
+ "package": "core",
1691
+ "lastUpdated": 1661240113000,
1692
+ "component": true,
1693
+ "docs": "https://vueuse.org/core/usePreferredContrast/",
1694
+ "category": "Browser",
1695
+ "description": "reactive [prefers-contrast](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-contrast) media query"
1696
+ },
1668
1697
  {
1669
1698
  "name": "usePreferredDark",
1670
1699
  "package": "core",
@@ -1687,6 +1716,15 @@
1687
1716
  "category": "Browser",
1688
1717
  "description": "reactive [Navigator Languages](https://developer.mozilla.org/en-US/docs/Web/API/NavigatorLanguage/languages)"
1689
1718
  },
1719
+ {
1720
+ "name": "usePreferredReducedMotion",
1721
+ "package": "core",
1722
+ "lastUpdated": 1659593252000,
1723
+ "component": true,
1724
+ "docs": "https://vueuse.org/core/usePreferredReducedMotion/",
1725
+ "category": "Browser",
1726
+ "description": "reactive [prefers-reduced-motion](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion) media query"
1727
+ },
1690
1728
  {
1691
1729
  "name": "useProjection",
1692
1730
  "package": "math",
@@ -1719,7 +1757,7 @@
1719
1757
  {
1720
1758
  "name": "useRefHistory",
1721
1759
  "package": "core",
1722
- "lastUpdated": 1646036662000,
1760
+ "lastUpdated": 1662386652000,
1723
1761
  "docs": "https://vueuse.org/core/useRefHistory/",
1724
1762
  "category": "State",
1725
1763
  "description": "track the change history of a ref",
@@ -1732,7 +1770,7 @@
1732
1770
  {
1733
1771
  "name": "useResizeObserver",
1734
1772
  "package": "core",
1735
- "lastUpdated": 1657634277000,
1773
+ "lastUpdated": 1662384935000,
1736
1774
  "docs": "https://vueuse.org/core/useResizeObserver/",
1737
1775
  "category": "Elements",
1738
1776
  "description": "reports changes to the dimensions of an Element's content or the border-box"
@@ -1805,7 +1843,7 @@
1805
1843
  {
1806
1844
  "name": "useScriptTag",
1807
1845
  "package": "core",
1808
- "lastUpdated": 1657259100000,
1846
+ "lastUpdated": 1659556839000,
1809
1847
  "docs": "https://vueuse.org/core/useScriptTag/",
1810
1848
  "category": "Browser",
1811
1849
  "description": "script tag injecting"
@@ -1813,7 +1851,7 @@
1813
1851
  {
1814
1852
  "name": "useScroll",
1815
1853
  "package": "core",
1816
- "lastUpdated": 1657259100000,
1854
+ "lastUpdated": 1659805128000,
1817
1855
  "directive": true,
1818
1856
  "docs": "https://vueuse.org/core/useScroll/",
1819
1857
  "category": "Sensors",
@@ -2028,7 +2066,7 @@
2028
2066
  {
2029
2067
  "name": "useTimeout",
2030
2068
  "package": "shared",
2031
- "lastUpdated": 1658083632000,
2069
+ "lastUpdated": 1660751262000,
2032
2070
  "docs": "https://vueuse.org/shared/useTimeout/",
2033
2071
  "category": "Animation",
2034
2072
  "description": "update value after a given time with controls"
@@ -2036,7 +2074,7 @@
2036
2074
  {
2037
2075
  "name": "useTimeoutFn",
2038
2076
  "package": "shared",
2039
- "lastUpdated": 1658083632000,
2077
+ "lastUpdated": 1660751262000,
2040
2078
  "docs": "https://vueuse.org/shared/useTimeoutFn/",
2041
2079
  "category": "Animation",
2042
2080
  "description": "wrapper for `setTimeout` with controls"
@@ -2069,10 +2107,11 @@
2069
2107
  {
2070
2108
  "name": "useToFixed",
2071
2109
  "package": "math",
2072
- "lastUpdated": 1659101366000,
2110
+ "lastUpdated": 1659586610000,
2073
2111
  "docs": "https://vueuse.org/math/useToFixed/",
2074
2112
  "category": "@Math",
2075
- "description": "reactive `toFixed`"
2113
+ "description": "reactive `toFixed`",
2114
+ "deprecated": true
2076
2115
  },
2077
2116
  {
2078
2117
  "name": "useToggle",
@@ -2082,10 +2121,26 @@
2082
2121
  "category": "Utilities",
2083
2122
  "description": "a boolean switcher with utility functions"
2084
2123
  },
2124
+ {
2125
+ "name": "useToNumber",
2126
+ "package": "shared",
2127
+ "lastUpdated": 1659592336000,
2128
+ "docs": "https://vueuse.org/shared/useToNumber/",
2129
+ "category": "Utilities",
2130
+ "description": "reactively convert a string ref to number"
2131
+ },
2132
+ {
2133
+ "name": "useToString",
2134
+ "package": "shared",
2135
+ "lastUpdated": 1659592531000,
2136
+ "docs": "https://vueuse.org/shared/useToString/",
2137
+ "category": "Utilities",
2138
+ "description": "reactively convert a ref to string"
2139
+ },
2085
2140
  {
2086
2141
  "name": "useTransition",
2087
2142
  "package": "core",
2088
- "lastUpdated": 1657730647000,
2143
+ "lastUpdated": 1660293053000,
2089
2144
  "docs": "https://vueuse.org/core/useTransition/",
2090
2145
  "category": "Animation",
2091
2146
  "description": "transition between values"
@@ -2101,7 +2156,7 @@
2101
2156
  {
2102
2157
  "name": "useUrlSearchParams",
2103
2158
  "package": "core",
2104
- "lastUpdated": 1655390581000,
2159
+ "lastUpdated": 1662286506000,
2105
2160
  "docs": "https://vueuse.org/core/useUrlSearchParams/",
2106
2161
  "category": "Browser",
2107
2162
  "description": "reactive [URLSearchParams](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams)"
@@ -2139,7 +2194,7 @@
2139
2194
  {
2140
2195
  "name": "useVModel",
2141
2196
  "package": "core",
2142
- "lastUpdated": 1657814222000,
2197
+ "lastUpdated": 1662386652000,
2143
2198
  "docs": "https://vueuse.org/core/useVModel/",
2144
2199
  "category": "Component",
2145
2200
  "description": "shorthand for v-model binding",
@@ -2177,7 +2232,7 @@
2177
2232
  {
2178
2233
  "name": "useWebSocket",
2179
2234
  "package": "core",
2180
- "lastUpdated": 1658285520000,
2235
+ "lastUpdated": 1662384188000,
2181
2236
  "docs": "https://vueuse.org/core/useWebSocket/",
2182
2237
  "category": "Network",
2183
2238
  "description": "reactive [WebSocket](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/WebSocket) client"
@@ -2224,7 +2279,7 @@
2224
2279
  {
2225
2280
  "name": "useWindowSize",
2226
2281
  "package": "core",
2227
- "lastUpdated": 1657730699000,
2282
+ "lastUpdated": 1662285565000,
2228
2283
  "component": true,
2229
2284
  "docs": "https://vueuse.org/core/useWindowSize/",
2230
2285
  "category": "Elements",