@jobber/hooks 1.13.1-pre.21 → 1.13.2-pre.7
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/CHANGELOG.md +16 -0
- package/README.mdx +9 -1
- package/dist/index.js +13 -20
- package/dist/useAssert/index.js +1 -1
- package/dist/useAssert/useAssert.js +0 -1
- package/dist/useCollectionQuery/index.js +1 -1
- package/dist/useCollectionQuery/mdxUtils.js +0 -1
- package/dist/useCollectionQuery/test-utilities/index.js +6 -13
- package/dist/useCollectionQuery/test-utilities/mocks.js +0 -1
- package/dist/useCollectionQuery/test-utilities/queries.js +0 -1
- package/dist/useCollectionQuery/test-utilities/utils.js +0 -1
- package/dist/useCollectionQuery/uniqueEdges.js +0 -1
- package/dist/useCollectionQuery/uniqueNodes.js +0 -1
- package/dist/useCollectionQuery/useCollectionQuery.js +1 -2
- package/dist/useCollectionQuery/useCollectionQuery.test.js +21 -12
- package/dist/useFocusTrap/index.js +1 -1
- package/dist/useFocusTrap/useFocusTrap.d.ts +0 -1
- package/dist/useFocusTrap/useFocusTrap.js +0 -1
- package/dist/useFormState/index.js +1 -1
- package/dist/useFormState/useFormState.d.ts +0 -1
- package/dist/useFormState/useFormState.js +0 -1
- package/dist/useIsMounted/index.js +1 -1
- package/dist/useIsMounted/useIsMounted.js +0 -1
- package/dist/useLiveAnnounce/index.js +1 -1
- package/dist/useLiveAnnounce/useLiveAnnounce.js +0 -1
- package/dist/useOnKeyDown/index.js +1 -1
- package/dist/useOnKeyDown/useOnKeyDown.js +0 -1
- package/dist/usePasswordStrength/index.js +1 -1
- package/dist/usePasswordStrength/usePasswordStrength.js +0 -1
- package/dist/useRefocusOnActivator/index.js +1 -1
- package/dist/useRefocusOnActivator/useRefocusOnActivator.js +0 -1
- package/dist/useResizeObserver/index.js +4 -11
- package/dist/useResizeObserver/useResizeObserver.d.ts +0 -1
- package/dist/useResizeObserver/useResizeObserver.js +0 -1
- package/package.json +4 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.13.2](https://github.com/GetJobber/atlantis/compare/@jobber/hooks@1.13.1...@jobber/hooks@1.13.2) (2023-03-10)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @jobber/hooks
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [1.13.1](https://github.com/GetJobber/atlantis/compare/@jobber/hooks@1.13.0...@jobber/hooks@1.13.1) (2023-03-07)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @jobber/hooks
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
# [1.13.0](https://github.com/GetJobber/atlantis/compare/@jobber/hooks@1.12.5...@jobber/hooks@1.13.0) (2023-03-02)
|
|
7
23
|
|
|
8
24
|
|
package/README.mdx
CHANGED
|
@@ -4,7 +4,15 @@ Shared hooks for components in Atlantis.
|
|
|
4
4
|
|
|
5
5
|
## Hooks
|
|
6
6
|
|
|
7
|
-
- [
|
|
7
|
+
- [useAssert](../?path=/docs/hooks-useassert--page)
|
|
8
|
+
- [useCollectionQuery](../?path=/docs/hooks-usecollectionquery--use-collection-query)
|
|
9
|
+
- [useFormState](../?path=/docs/hooks-useformstate--use-form-state)
|
|
10
|
+
- [useIsMounted](../?path=/docs/hooks-useismounted--use-is-mounted)
|
|
11
|
+
- [useLiveAnnounce](../?path=/docs/hooks-useliveannounce--use-live-announce)
|
|
12
|
+
- [useOnKeyDown](../?path=/docs/hooks-useonkeydown--use-on-key-down)
|
|
13
|
+
- [usePasswordStrength](../?path=/docs/hooks-usepasswordstrength--use-password-strength)
|
|
14
|
+
- [useRefocusOnActivator](../?path=/docs/hooks-userefocusonactivator--use-refocus-on-activator)
|
|
15
|
+
- [useResizeObserver](../?path=/docs/packages-hooks--page)
|
|
8
16
|
|
|
9
17
|
## Installing
|
|
10
18
|
|
package/dist/index.js
CHANGED
|
@@ -1,22 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
2
|
+
function __export(m) {
|
|
3
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
4
|
+
}
|
|
12
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
6
|
+
__export(require("./useAssert"));
|
|
7
|
+
__export(require("./useCollectionQuery"));
|
|
8
|
+
__export(require("./useFocusTrap"));
|
|
9
|
+
__export(require("./useFormState"));
|
|
10
|
+
__export(require("./useIsMounted"));
|
|
11
|
+
__export(require("./useLiveAnnounce"));
|
|
12
|
+
__export(require("./useOnKeyDown"));
|
|
13
|
+
__export(require("./usePasswordStrength"));
|
|
14
|
+
__export(require("./useRefocusOnActivator"));
|
|
15
|
+
__export(require("./useResizeObserver"));
|
package/dist/useAssert/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var useAssert_1 = require("./useAssert");
|
|
4
|
-
|
|
4
|
+
exports.useAssert = useAssert_1.useAssert;
|
|
@@ -3,7 +3,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.useAssert = void 0;
|
|
7
6
|
var process_1 = __importDefault(require("process"));
|
|
8
7
|
function useAssert(shouldShow, message, options) {
|
|
9
8
|
if (process_1.default.env.NODE_ENV !== "production" && shouldShow) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var useCollectionQuery_1 = require("./useCollectionQuery");
|
|
4
|
-
|
|
4
|
+
exports.useCollectionQuery = useCollectionQuery_1.useCollectionQuery;
|
|
@@ -4,7 +4,6 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
4
4
|
return cooked;
|
|
5
5
|
};
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.returnValues = exports.subscriptionPropsList = exports.propsList = exports.getLoadingState = exports.apolloClient = exports.LIST_QUERY = void 0;
|
|
8
7
|
var client_1 = require("@apollo/client");
|
|
9
8
|
exports.LIST_QUERY = client_1.gql(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query ListQuery($cursor: String) {\n allPlanets(first: 4, after: $cursor) {\n pageInfo {\n hasNextPage\n endCursor\n }\n edges {\n node {\n name\n id\n }\n cursor\n }\n }\n }\n"], ["\n query ListQuery($cursor: String) {\n allPlanets(first: 4, after: $cursor) {\n pageInfo {\n hasNextPage\n endCursor\n }\n edges {\n node {\n name\n id\n }\n cursor\n }\n }\n }\n"])));
|
|
10
9
|
exports.apolloClient = new client_1.ApolloClient({
|
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
2
|
+
function __export(m) {
|
|
3
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
4
|
+
}
|
|
12
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
6
|
+
__export(require("./queries"));
|
|
7
|
+
__export(require("./utils"));
|
|
8
|
+
__export(require("./mocks"));
|
|
@@ -3,7 +3,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.setListQueryMockHasNextPage = exports.buildListRequestMockForNextPage = exports.buildSubscriptionRequestMock = exports.buildListRequestMock = exports.subscriptionQueryMock = exports.listQueryWithTotalCountResponseMock = exports.listQueryResponseMock = exports.wrapper = void 0;
|
|
7
6
|
var react_testing_1 = require("@apollo/react-testing");
|
|
8
7
|
var react_1 = __importDefault(require("react"));
|
|
9
8
|
var uuid_1 = require("uuid");
|
|
@@ -4,7 +4,6 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
4
4
|
return cooked;
|
|
5
5
|
};
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.SUBSCRIPTION_QUERY = exports.LIST_QUERY_WITH_TOTAL_COUNT = exports.LIST_QUERY = void 0;
|
|
8
7
|
var client_1 = require("@apollo/client");
|
|
9
8
|
exports.LIST_QUERY = client_1.gql(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n query ConversationMessages($cursor: string, $searchTerm: string) {\n conversation(id: \"MQ==\") {\n smsMessages(first: 1, after: $cursor, searchTerm: $searchTerm) {\n edges {\n node {\n __typename\n id\n }\n }\n nodes {\n __typename\n id\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n }\n }\n"], ["\n query ConversationMessages($cursor: string, $searchTerm: string) {\n conversation(id: \"MQ==\") {\n smsMessages(first: 1, after: $cursor, searchTerm: $searchTerm) {\n edges {\n node {\n __typename\n id\n }\n }\n nodes {\n __typename\n id\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n }\n }\n"])));
|
|
10
9
|
exports.LIST_QUERY_WITH_TOTAL_COUNT = client_1.gql(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query ConversationMessages($cursor: string, $searchTerm: string) {\n conversation(id: \"MQ==\") {\n smsMessages(first: 1, after: $cursor, searchTerm: $searchTerm) {\n edges {\n node {\n __typename\n id\n }\n }\n nodes {\n __typename\n id\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n totalCount\n }\n }\n }\n"], ["\n query ConversationMessages($cursor: string, $searchTerm: string) {\n conversation(id: \"MQ==\") {\n smsMessages(first: 1, after: $cursor, searchTerm: $searchTerm) {\n edges {\n node {\n __typename\n id\n }\n }\n nodes {\n __typename\n id\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n totalCount\n }\n }\n }\n"])));
|
|
@@ -36,7 +36,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.wait = void 0;
|
|
40
39
|
function wait(milliseconds) {
|
|
41
40
|
if (milliseconds === void 0) { milliseconds = 0; }
|
|
42
41
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -31,7 +31,6 @@ var __spread = (this && this.__spread) || function () {
|
|
|
31
31
|
return ar;
|
|
32
32
|
};
|
|
33
33
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
-
exports.isAlreadyUpdated = exports.useCollectionQuery = void 0;
|
|
35
34
|
var client_1 = require("@apollo/client");
|
|
36
35
|
var lodash_1 = require("lodash");
|
|
37
36
|
var react_1 = require("react");
|
|
@@ -40,8 +39,8 @@ var uniqueNodes_1 = require("./uniqueNodes");
|
|
|
40
39
|
var uniqueEdges_1 = require("./uniqueEdges");
|
|
41
40
|
var useIsMounted_1 = require("../useIsMounted");
|
|
42
41
|
function useCollectionQuery(_a) {
|
|
43
|
-
var _b, _c;
|
|
44
42
|
var query = _a.query, queryOptions = _a.queryOptions, getCollectionByPath = _a.getCollectionByPath, subscription = _a.subscription;
|
|
43
|
+
var _b, _c;
|
|
45
44
|
var _d = client_1.useQuery(query, queryOptions), data = _d.data, loading = _d.loading, refetch = _d.refetch, error = _d.error, fetchMore = _d.fetchMore, subscribeToMore = _d.subscribeToMore;
|
|
46
45
|
var isMounted = useIsMounted_1.useIsMounted();
|
|
47
46
|
var _e = __read(react_1.useState(false), 2), loadingRefresh = _e[0], setLoadingRefresh = _e[1];
|
|
@@ -41,6 +41,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
41
41
|
};
|
|
42
42
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
43
|
var react_hooks_1 = require("@testing-library/react-hooks");
|
|
44
|
+
var react_1 = require("@testing-library/react");
|
|
44
45
|
var useCollectionQuery_1 = require("./useCollectionQuery");
|
|
45
46
|
var test_utilities_1 = require("./test-utilities");
|
|
46
47
|
beforeEach(function () {
|
|
@@ -186,9 +187,8 @@ describe("useCollectionQuery", function () {
|
|
|
186
187
|
describe("when nextPage is called while it's still loadingNextPage", function () {
|
|
187
188
|
it("should not trigger a nextPage", function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
188
189
|
var result;
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
switch (_e.label) {
|
|
190
|
+
return __generator(this, function (_a) {
|
|
191
|
+
switch (_a.label) {
|
|
192
192
|
case 0:
|
|
193
193
|
result = react_hooks_1.renderHook(function () { return useCollectionQueryHook(query); }, {
|
|
194
194
|
wrapper: test_utilities_1.wrapper([
|
|
@@ -199,7 +199,7 @@ describe("useCollectionQuery", function () {
|
|
|
199
199
|
}).result;
|
|
200
200
|
return [4 /*yield*/, react_hooks_1.act(test_utilities_1.wait)];
|
|
201
201
|
case 1:
|
|
202
|
-
|
|
202
|
+
_a.sent();
|
|
203
203
|
react_hooks_1.act(function () {
|
|
204
204
|
result.current.nextPage();
|
|
205
205
|
});
|
|
@@ -208,8 +208,13 @@ describe("useCollectionQuery", function () {
|
|
|
208
208
|
});
|
|
209
209
|
return [4 /*yield*/, react_hooks_1.act(test_utilities_1.wait)];
|
|
210
210
|
case 2:
|
|
211
|
-
|
|
212
|
-
|
|
211
|
+
_a.sent();
|
|
212
|
+
return [4 /*yield*/, react_1.waitFor(function () {
|
|
213
|
+
var _a, _b, _c;
|
|
214
|
+
expect((_c = (_b = (_a = result.current.data) === null || _a === void 0 ? void 0 : _a.conversation) === null || _b === void 0 ? void 0 : _b.smsMessages) === null || _c === void 0 ? void 0 : _c.edges).toHaveLength(2);
|
|
215
|
+
})];
|
|
216
|
+
case 3:
|
|
217
|
+
_a.sent();
|
|
213
218
|
return [2 /*return*/];
|
|
214
219
|
}
|
|
215
220
|
});
|
|
@@ -277,9 +282,8 @@ describe("useCollectionQuery", function () {
|
|
|
277
282
|
describe("when there is no error", function () {
|
|
278
283
|
it("should update data", function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
279
284
|
var result;
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
switch (_e.label) {
|
|
285
|
+
return __generator(this, function (_a) {
|
|
286
|
+
switch (_a.label) {
|
|
283
287
|
case 0:
|
|
284
288
|
result = react_hooks_1.renderHook(function () { return useCollectionQueryHook(query); }, {
|
|
285
289
|
wrapper: test_utilities_1.wrapper([
|
|
@@ -289,14 +293,19 @@ describe("useCollectionQuery", function () {
|
|
|
289
293
|
}).result;
|
|
290
294
|
return [4 /*yield*/, react_hooks_1.act(test_utilities_1.wait)];
|
|
291
295
|
case 1:
|
|
292
|
-
|
|
296
|
+
_a.sent();
|
|
293
297
|
react_hooks_1.act(function () {
|
|
294
298
|
result.current.nextPage();
|
|
295
299
|
});
|
|
296
300
|
return [4 /*yield*/, react_hooks_1.act(test_utilities_1.wait)];
|
|
297
301
|
case 2:
|
|
298
|
-
|
|
299
|
-
|
|
302
|
+
_a.sent();
|
|
303
|
+
return [4 /*yield*/, react_1.waitFor(function () {
|
|
304
|
+
var _a, _b, _c;
|
|
305
|
+
expect((_c = (_b = (_a = result.current.data) === null || _a === void 0 ? void 0 : _a.conversation) === null || _b === void 0 ? void 0 : _b.smsMessages) === null || _c === void 0 ? void 0 : _c.edges).toHaveLength(2);
|
|
306
|
+
})];
|
|
307
|
+
case 3:
|
|
308
|
+
_a.sent();
|
|
300
309
|
return [2 /*return*/];
|
|
301
310
|
}
|
|
302
311
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var useFocusTrap_1 = require("./useFocusTrap");
|
|
4
|
-
|
|
4
|
+
exports.useFocusTrap = useFocusTrap_1.useFocusTrap;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var useFormState_1 = require("./useFormState");
|
|
4
|
-
|
|
4
|
+
exports.useFormState = useFormState_1.useFormState;
|
|
@@ -16,7 +16,6 @@ var __read = (this && this.__read) || function (o, n) {
|
|
|
16
16
|
return ar;
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.useFormState = void 0;
|
|
20
19
|
var react_1 = require("react");
|
|
21
20
|
function useFormState() {
|
|
22
21
|
var _a = __read(react_1.useState({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var useIsMounted_1 = require("./useIsMounted");
|
|
4
|
-
|
|
4
|
+
exports.useIsMounted = useIsMounted_1.useIsMounted;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var useLiveAnnounce_1 = require("./useLiveAnnounce");
|
|
4
|
-
|
|
4
|
+
exports.useLiveAnnounce = useLiveAnnounce_1.useLiveAnnounce;
|
|
@@ -16,7 +16,6 @@ var __read = (this && this.__read) || function (o, n) {
|
|
|
16
16
|
return ar;
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.useLiveAnnounce = void 0;
|
|
20
19
|
var react_1 = require("react");
|
|
21
20
|
/**
|
|
22
21
|
* Announce a message on voice over whenever you do an action. This is
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var useOnKeyDown_1 = require("./useOnKeyDown");
|
|
4
|
-
|
|
4
|
+
exports.useOnKeyDown = useOnKeyDown_1.useOnKeyDown;
|
|
@@ -3,7 +3,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.useOnKeyDown = void 0;
|
|
7
6
|
var event_listener_1 = __importDefault(require("@use-it/event-listener"));
|
|
8
7
|
function useOnKeyDown(callback, keys) {
|
|
9
8
|
event_listener_1.default("keydown", handler);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var usePasswordStrength_1 = require("./usePasswordStrength");
|
|
4
|
-
|
|
4
|
+
exports.usePasswordStrength = usePasswordStrength_1.usePasswordStrength;
|
|
@@ -3,7 +3,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.usePasswordStrength = void 0;
|
|
7
6
|
var react_1 = require("react");
|
|
8
7
|
var zxcvbn_1 = __importDefault(require("zxcvbn"));
|
|
9
8
|
function usePasswordStrength(password, dictionary) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var useRefocusOnActivator_1 = require("./useRefocusOnActivator");
|
|
4
|
-
|
|
4
|
+
exports.useRefocusOnActivator = useRefocusOnActivator_1.useRefocusOnActivator;
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
|
|
11
|
-
};
|
|
2
|
+
function __export(m) {
|
|
3
|
+
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
4
|
+
}
|
|
12
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
|
|
6
|
+
__export(require("./useResizeObserver"));
|
|
@@ -19,7 +19,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
19
19
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.useResizeObserver = exports.Breakpoints = void 0;
|
|
23
22
|
var react_1 = require("react");
|
|
24
23
|
// Importing the polyfilled version of ResizeObserver
|
|
25
24
|
// eslint-disable-next-line import/no-internal-modules
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/hooks",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.2-pre.7+6695bed1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.js",
|
|
@@ -14,9 +14,8 @@
|
|
|
14
14
|
"dist/*"
|
|
15
15
|
],
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@apollo/client": "^3.3.16",
|
|
18
17
|
"@apollo/react-testing": "^4.0.0",
|
|
19
|
-
"@jobber/formatters": "^0.2.2-pre.
|
|
18
|
+
"@jobber/formatters": "^0.2.2-pre.40+6695bed1",
|
|
20
19
|
"@testing-library/react": "^14.0.0",
|
|
21
20
|
"@testing-library/react-hooks": "^7.0.0",
|
|
22
21
|
"@testing-library/user-event": "^12.0.2",
|
|
@@ -25,7 +24,6 @@
|
|
|
25
24
|
"@types/react-dom": "^18.0.11",
|
|
26
25
|
"@types/uuid": "^8.3.3",
|
|
27
26
|
"@types/zxcvbn": "^4.4.1",
|
|
28
|
-
"graphql": "^14.6.0",
|
|
29
27
|
"typescript": "^3.8.3",
|
|
30
28
|
"uuid": "^8.3.2"
|
|
31
29
|
},
|
|
@@ -39,7 +37,7 @@
|
|
|
39
37
|
},
|
|
40
38
|
"peerDependencies": {
|
|
41
39
|
"@apollo/client": "^3.7.10",
|
|
42
|
-
"react": "
|
|
40
|
+
"react": "^18"
|
|
43
41
|
},
|
|
44
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "6695bed1d371d60cf3f6fa6a02c2819d576bf410"
|
|
45
43
|
}
|