@jobber/hooks 2.9.2-CJS-to-ESM.16 → 2.9.2-CJS-to-ESM.18
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/README.mdx
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useQuery, } from "@apollo/client";
|
|
2
|
-
|
|
2
|
+
// eslint-disable-next-line import/no-internal-modules
|
|
3
|
+
import cloneDeep from "lodash-es/cloneDeep";
|
|
3
4
|
import { useCallback, useEffect, useState } from "react";
|
|
4
5
|
import { config } from "@jobber/formatters";
|
|
5
6
|
import { uniqueNodes } from "./uniqueNodes";
|
|
@@ -2,7 +2,8 @@ import { useMemo, useState } from "react";
|
|
|
2
2
|
// Importing the polyfilled version of ResizeObserver
|
|
3
3
|
// eslint-disable-next-line import/no-internal-modules
|
|
4
4
|
import useResizeObserverPackage from "use-resize-observer/polyfilled";
|
|
5
|
-
|
|
5
|
+
// eslint-disable-next-line import/no-internal-modules
|
|
6
|
+
import throttle from "lodash-es/throttle";
|
|
6
7
|
export const Breakpoints = {
|
|
7
8
|
base: 640,
|
|
8
9
|
small: 500,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/hooks",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.9.2-CJS-to-ESM.
|
|
4
|
+
"version": "2.9.2-CJS-to-ESM.18+6dda60b4",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"module": "./dist/index.js",
|
|
@@ -15,10 +15,70 @@
|
|
|
15
15
|
"import": "./dist/useAssert/index.js",
|
|
16
16
|
"require": "./useAssert.js"
|
|
17
17
|
},
|
|
18
|
-
"./
|
|
19
|
-
"types": "./dist/
|
|
20
|
-
"import": "./dist/
|
|
21
|
-
"require": "./
|
|
18
|
+
"./useBreakpoints": {
|
|
19
|
+
"types": "./dist/useBreakpoints/index.d.ts",
|
|
20
|
+
"import": "./dist/useBreakpoints/index.js",
|
|
21
|
+
"require": "./useBreakpoints.js"
|
|
22
|
+
},
|
|
23
|
+
"./useCollectionQuery": {
|
|
24
|
+
"types": "./dist/useCollectionQuery/index.d.ts",
|
|
25
|
+
"import": "./dist/useCollectionQuery/index.js",
|
|
26
|
+
"require": "./useCollectionQuery.js"
|
|
27
|
+
},
|
|
28
|
+
"./useFocusTrap": {
|
|
29
|
+
"types": "./dist/useFocusTrap/index.d.ts",
|
|
30
|
+
"import": "./dist/useFocusTrap/index.js",
|
|
31
|
+
"require": "./useFocusTrap.js"
|
|
32
|
+
},
|
|
33
|
+
"./useFormState": {
|
|
34
|
+
"types": "./dist/useFormState/index.d.ts",
|
|
35
|
+
"import": "./dist/useFormState/index.js",
|
|
36
|
+
"require": "./useFormState.js"
|
|
37
|
+
},
|
|
38
|
+
"./useInView": {
|
|
39
|
+
"types": "./dist/useInView/index.d.ts",
|
|
40
|
+
"import": "./dist/useInView/index.js",
|
|
41
|
+
"require": "./useInView.js"
|
|
42
|
+
},
|
|
43
|
+
"./useIsMounted": {
|
|
44
|
+
"types": "./dist/useIsMounted/index.d.ts",
|
|
45
|
+
"import": "./dist/useIsMounted/index.js",
|
|
46
|
+
"require": "./useIsMounted.js"
|
|
47
|
+
},
|
|
48
|
+
"./useLiveAnnounce": {
|
|
49
|
+
"types": "./dist/useLiveAnnounce/index.d.ts",
|
|
50
|
+
"import": "./dist/useLiveAnnounce/index.js",
|
|
51
|
+
"require": "./useLiveAnnounce.js"
|
|
52
|
+
},
|
|
53
|
+
"./useOnKeyDown": {
|
|
54
|
+
"types": "./dist/useOnKeyDown/index.d.ts",
|
|
55
|
+
"import": "./dist/useOnKeyDown/index.js",
|
|
56
|
+
"require": "./useOnKeyDown.js"
|
|
57
|
+
},
|
|
58
|
+
"./usePasswordStrength": {
|
|
59
|
+
"types": "./dist/usePasswordStrength/index.d.ts",
|
|
60
|
+
"import": "./dist/usePasswordStrength/index.js",
|
|
61
|
+
"require": "./usePasswordStrength.js"
|
|
62
|
+
},
|
|
63
|
+
"./useRefocusOnActivator": {
|
|
64
|
+
"types": "./dist/useRefocusOnActivator/index.d.ts",
|
|
65
|
+
"import": "./dist/useRefocusOnActivator/index.js",
|
|
66
|
+
"require": "./useRefocusOnActivator.js"
|
|
67
|
+
},
|
|
68
|
+
"./useResizeObserver": {
|
|
69
|
+
"types": "./dist/useResizeObserver/index.d.ts",
|
|
70
|
+
"import": "./dist/useResizeObserver/index.js",
|
|
71
|
+
"require": "./useResizeObserver.js"
|
|
72
|
+
},
|
|
73
|
+
"./useSafeLayoutEffect": {
|
|
74
|
+
"types": "./dist/useSafeLayoutEffect/index.d.ts",
|
|
75
|
+
"import": "./dist/useSafeLayoutEffect/index.js",
|
|
76
|
+
"require": "./useSafeLayoutEffect.js"
|
|
77
|
+
},
|
|
78
|
+
"./useShowClear": {
|
|
79
|
+
"types": "./dist/useShowClear/index.d.ts",
|
|
80
|
+
"import": "./dist/useShowClear/index.js",
|
|
81
|
+
"require": "./useShowClear.js"
|
|
22
82
|
}
|
|
23
83
|
},
|
|
24
84
|
"scripts": {
|
|
@@ -42,6 +102,7 @@
|
|
|
42
102
|
"@testing-library/react-hooks": "^7.0.0",
|
|
43
103
|
"@testing-library/user-event": "^14.5.1",
|
|
44
104
|
"@types/lodash": "4.14.136",
|
|
105
|
+
"@types/lodash-es": "4.17.12",
|
|
45
106
|
"@types/react": "^18.0.28",
|
|
46
107
|
"@types/react-dom": "^18.0.11",
|
|
47
108
|
"@types/uuid": "^8.3.3",
|
|
@@ -52,6 +113,7 @@
|
|
|
52
113
|
},
|
|
53
114
|
"dependencies": {
|
|
54
115
|
"lodash": "^4.17.20",
|
|
116
|
+
"lodash-es": "4.17.21",
|
|
55
117
|
"resize-observer-polyfill": "^1.5.1",
|
|
56
118
|
"ts-xor": "^1.0.8",
|
|
57
119
|
"use-resize-observer": "^6.1.0",
|
|
@@ -61,5 +123,5 @@
|
|
|
61
123
|
"@apollo/client": "^3.0.0",
|
|
62
124
|
"react": "^18"
|
|
63
125
|
},
|
|
64
|
-
"gitHead": "
|
|
126
|
+
"gitHead": "6dda60b4f2b3ac5a532791dc0abeb4eae5cb8689"
|
|
65
127
|
}
|