@jobber/hooks 2.9.2-CJS-to-ESM.17 → 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.
|
@@ -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",
|
|
@@ -102,6 +102,7 @@
|
|
|
102
102
|
"@testing-library/react-hooks": "^7.0.0",
|
|
103
103
|
"@testing-library/user-event": "^14.5.1",
|
|
104
104
|
"@types/lodash": "4.14.136",
|
|
105
|
+
"@types/lodash-es": "4.17.12",
|
|
105
106
|
"@types/react": "^18.0.28",
|
|
106
107
|
"@types/react-dom": "^18.0.11",
|
|
107
108
|
"@types/uuid": "^8.3.3",
|
|
@@ -112,6 +113,7 @@
|
|
|
112
113
|
},
|
|
113
114
|
"dependencies": {
|
|
114
115
|
"lodash": "^4.17.20",
|
|
116
|
+
"lodash-es": "4.17.21",
|
|
115
117
|
"resize-observer-polyfill": "^1.5.1",
|
|
116
118
|
"ts-xor": "^1.0.8",
|
|
117
119
|
"use-resize-observer": "^6.1.0",
|
|
@@ -121,5 +123,5 @@
|
|
|
121
123
|
"@apollo/client": "^3.0.0",
|
|
122
124
|
"react": "^18"
|
|
123
125
|
},
|
|
124
|
-
"gitHead": "
|
|
126
|
+
"gitHead": "6dda60b4f2b3ac5a532791dc0abeb4eae5cb8689"
|
|
125
127
|
}
|