@jobber/hooks 1.13.3-pre.5 → 1.13.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.
- 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 +2 -2
- package/dist/useFocusTrap/index.js +1 -1
- package/dist/useFocusTrap/useFocusTrap.js +0 -1
- package/dist/useFormState/index.js +1 -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.js +0 -1
- package/package.json +4 -5
- package/CHANGELOG.md +0 -393
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];
|
|
@@ -421,7 +421,7 @@ describe("useCollectionQuery", function () {
|
|
|
421
421
|
});
|
|
422
422
|
describe("#subscribeToMore", function () {
|
|
423
423
|
describe("when hook receives update from item not in collection", function () {
|
|
424
|
-
it("
|
|
424
|
+
it("should add new item to collection", function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
425
425
|
var _a, result, waitForNextUpdate;
|
|
426
426
|
var _b, _c, _d, _e, _f;
|
|
427
427
|
return __generator(this, function (_g) {
|
|
@@ -450,7 +450,7 @@ describe("useCollectionQuery", function () {
|
|
|
450
450
|
}); });
|
|
451
451
|
});
|
|
452
452
|
describe("when hook receives update from item already in collection", function () {
|
|
453
|
-
it("
|
|
453
|
+
it("should return the existing collection", function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
454
454
|
var _a, result, waitForNextUpdate;
|
|
455
455
|
var _b, _c, _d, _e, _f;
|
|
456
456
|
return __generator(this, function (_g) {
|
|
@@ -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,14 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/hooks",
|
|
3
|
-
"version": "1.13.3
|
|
3
|
+
"version": "1.13.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.js",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "tsc --project .",
|
|
9
9
|
"clean": "rm -rf dist/* tsconfig.tsbuildinfo",
|
|
10
|
-
"prepare": "npm run clean; npm run build"
|
|
11
|
-
"ci:typescript-compile": "npm run prepare"
|
|
10
|
+
"prepare": "npm run clean; npm run build"
|
|
12
11
|
},
|
|
13
12
|
"files": [
|
|
14
13
|
"dist/*"
|
|
@@ -16,7 +15,7 @@
|
|
|
16
15
|
"devDependencies": {
|
|
17
16
|
"@apollo/client": "^3.3.16",
|
|
18
17
|
"@apollo/react-testing": "^4.0.0",
|
|
19
|
-
"@jobber/formatters": "^0.2.
|
|
18
|
+
"@jobber/formatters": "^0.2.2",
|
|
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",
|
|
@@ -41,5 +40,5 @@
|
|
|
41
40
|
"@apollo/client": "^3.3.16",
|
|
42
41
|
"react": ">=16.8"
|
|
43
42
|
},
|
|
44
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "c92b6e7287a47c05434202bfbcd04375b6a7086f"
|
|
45
44
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,393 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
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
|
-
|
|
22
|
-
# [1.13.0](https://github.com/GetJobber/atlantis/compare/@jobber/hooks@1.12.5...@jobber/hooks@1.13.0) (2023-03-02)
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
### Features
|
|
26
|
-
|
|
27
|
-
* **hooks:** Add useFocusTrap hook ([#1100](https://github.com/GetJobber/atlantis/issues/1100)) ([2fed042](https://github.com/GetJobber/atlantis/commit/2fed042db990704e1723e1ebe87bff7b04acc44f))
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
## [1.12.5](https://github.com/GetJobber/atlantis/compare/@jobber/hooks@1.12.4...@jobber/hooks@1.12.5) (2023-02-28)
|
|
34
|
-
|
|
35
|
-
**Note:** Version bump only for package @jobber/hooks
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
## [1.12.4](https://github.com/GetJobber/atlantis/compare/@jobber/hooks@1.12.3...@jobber/hooks@1.12.4) (2023-02-27)
|
|
42
|
-
|
|
43
|
-
**Note:** Version bump only for package @jobber/hooks
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
## [1.12.3](https://github.com/GetJobber/atlantis/compare/@jobber/hooks@1.12.2...@jobber/hooks@1.12.3) (2023-02-24)
|
|
50
|
-
|
|
51
|
-
**Note:** Version bump only for package @jobber/hooks
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
## [1.12.2](https://github.com/GetJobber/atlantis/compare/@jobber/hooks@1.12.1...@jobber/hooks@1.12.2) (2023-02-22)
|
|
58
|
-
|
|
59
|
-
**Note:** Version bump only for package @jobber/hooks
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
## [1.12.1](https://github.com/GetJobber/atlantis/compare/@jobber/hooks@1.12.0...@jobber/hooks@1.12.1) (2022-11-01)
|
|
66
|
-
|
|
67
|
-
**Note:** Version bump only for package @jobber/hooks
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
# [1.12.0](https://github.com/GetJobber/atlantis/compare/@jobber/hooks@1.11.0...@jobber/hooks@1.12.0) (2022-08-24)
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
### Features
|
|
77
|
-
|
|
78
|
-
* **hooks:** allow totalCount to be optional -- (Minor) Feature Release ([#916](https://github.com/GetJobber/atlantis/issues/916)) ([0c11138](https://github.com/GetJobber/atlantis/commit/0c111384378d7b4512f54047683646512fe2b9f9))
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
# [1.11.0](https://github.com/GetJobber/atlantis/compare/@jobber/hooks@1.10.0...@jobber/hooks@1.11.0) (2022-01-28)
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
### Features
|
|
88
|
-
|
|
89
|
-
* Announce chip deletion and addition JOB-41252 ([#848](https://github.com/GetJobber/atlantis/issues/848)) ([f251b42](https://github.com/GetJobber/atlantis/commit/f251b42c5aa98ee07f7e16d3605a6bd965a8231b))
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
# [1.10.0](https://github.com/GetJobber/atlantis/compare/@jobber/hooks@1.9.1...@jobber/hooks@1.10.0) (2022-01-21)
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
### Features
|
|
99
|
-
|
|
100
|
-
* **hooks:** Create the hooks index dynamically ([#839](https://github.com/GetJobber/atlantis/issues/839)) ([dc770a8](https://github.com/GetJobber/atlantis/commit/dc770a813268cc2f3d011e2a559761043ae398ab))
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
## [1.9.1](https://github.com/GetJobber/atlantis/compare/@jobber/hooks@1.9.0...@jobber/hooks@1.9.1) (2021-12-15)
|
|
107
|
-
|
|
108
|
-
**Note:** Version bump only for package @jobber/hooks
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
# [1.9.0](https://github.com/GetJobber/atlantis/compare/@jobber/hooks@1.8.0...@jobber/hooks@1.9.0) (2021-10-29)
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
### Features
|
|
118
|
-
|
|
119
|
-
* **components:** Add description to base FormField component ([#714](https://github.com/GetJobber/atlantis/issues/714)) ([3fae72e](https://github.com/GetJobber/atlantis/commit/3fae72e9f483ece23263c9b2c981060248223db5))
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
# [1.8.0](https://github.com/GetJobber/atlantis/compare/@jobber/hooks@1.7.2...@jobber/hooks@1.8.0) (2021-10-13)
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
### Features
|
|
129
|
-
|
|
130
|
-
* **components:** Add visibility toggle for InputPassword ([#621](https://github.com/GetJobber/atlantis/issues/621)) ([ef7a851](https://github.com/GetJobber/atlantis/commit/ef7a8519c798cb951f206a2c64d9b9c0b63279a5))
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
## [1.7.2](https://github.com/GetJobber/atlantis/compare/@jobber/hooks@1.7.1...@jobber/hooks@1.7.2) (2021-10-07)
|
|
137
|
-
|
|
138
|
-
**Note:** Version bump only for package @jobber/hooks
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
## [1.7.1](https://github.com/GetJobber/atlantis/compare/@jobber/hooks@1.7.0...@jobber/hooks@1.7.1) (2021-09-27)
|
|
145
|
-
|
|
146
|
-
**Note:** Version bump only for package @jobber/hooks
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
# [1.7.0](https://github.com/GetJobber/atlantis/compare/@jobber/hooks@1.6.1...@jobber/hooks@1.7.0) (2021-09-23)
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
### Features
|
|
156
|
-
|
|
157
|
-
* **components:** Added keyboard shortcut to confirmation modal ([#669](https://github.com/GetJobber/atlantis/issues/669)) ([f93456f](https://github.com/GetJobber/atlantis/commit/f93456fcf0bd08472e194282d059572ee1583fc3))
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
## [1.6.1](https://github.com/GetJobber/atlantis/compare/@jobber/hooks@1.6.0...@jobber/hooks@1.6.1) (2021-09-21)
|
|
164
|
-
|
|
165
|
-
**Note:** Version bump only for package @jobber/hooks
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
# [1.6.0](https://github.com/GetJobber/atlantis/compare/@jobber/hooks@1.5.3...@jobber/hooks@1.6.0) (2021-09-20)
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
### Features
|
|
175
|
-
|
|
176
|
-
* **eslint:** Update prettier to latest version ([#667](https://github.com/GetJobber/atlantis/issues/667)) ([84e5895](https://github.com/GetJobber/atlantis/commit/84e589542c642b27acd2997af7200b86ba197b7e))
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
## [1.5.3](https://github.com/GetJobber/atlantis/compare/@jobber/hooks@1.5.2...@jobber/hooks@1.5.3) (2021-09-10)
|
|
183
|
-
|
|
184
|
-
**Note:** Version bump only for package @jobber/hooks
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
## [1.5.2](https://github.com/GetJobber/atlantis/compare/@jobber/hooks@1.5.1...@jobber/hooks@1.5.2) (2021-09-10)
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
### Bug Fixes
|
|
194
|
-
|
|
195
|
-
* **components:** Create a hook to focus back on modal and popover activator ([#638](https://github.com/GetJobber/atlantis/issues/638)) ([4d55a2f](https://github.com/GetJobber/atlantis/commit/4d55a2fda04ddb406770e655bdecfc41cdbb2f8b))
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
## [1.5.1](https://github.com/GetJobber/atlantis/compare/@jobber/hooks@1.5.0...@jobber/hooks@1.5.1) (2021-08-31)
|
|
202
|
-
|
|
203
|
-
**Note:** Version bump only for package @jobber/hooks
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
# [1.5.0](https://github.com/GetJobber/atlantis/compare/@jobber/hooks@1.4.1...@jobber/hooks@1.5.0) (2021-08-27)
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
### Features
|
|
213
|
-
|
|
214
|
-
* **hooks:** Implement hook to calculate password strength ([#622](https://github.com/GetJobber/atlantis/issues/622)) ([dec531b](https://github.com/GetJobber/atlantis/commit/dec531b36e1e12500d6fa1484b779a0d61fe1286))
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
## [1.4.1](https://github.com/GetJobber/atlantis/compare/@jobber/hooks@1.4.0...@jobber/hooks@1.4.1) (2021-08-06)
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
### Bug Fixes
|
|
224
|
-
|
|
225
|
-
* **hooks:** fix refetch after fetchMore ([#579](https://github.com/GetJobber/atlantis/issues/579)) ([6caa77b](https://github.com/GetJobber/atlantis/commit/6caa77ba0795a266c277c03b1905ad17525fd975))
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
# [1.4.0](https://github.com/GetJobber/atlantis/compare/@jobber/hooks@1.3.0...@jobber/hooks@1.4.0) (2021-07-08)
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
### Features
|
|
235
|
-
|
|
236
|
-
* **hooks:** Update useCollectionQuery to handle search terms [32867] ([#589](https://github.com/GetJobber/atlantis/issues/589)) ([99687c9](https://github.com/GetJobber/atlantis/commit/99687c9ae4cc04280e3aa38267a9de629caf5dbe))
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
# [1.3.0](https://github.com/GetJobber/atlantis/compare/@jobber/hooks@1.2.0...@jobber/hooks@1.3.0) (2021-07-06)
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
### Features
|
|
246
|
-
|
|
247
|
-
* **hooks:** add useCollectionQuery and useIsMounted [JOB-32207] ([#561](https://github.com/GetJobber/atlantis/issues/561)) ([8efccf8](https://github.com/GetJobber/atlantis/commit/8efccf8398f6e1d9278248ca4ec40327d11f9782)), closes [#562](https://github.com/GetJobber/atlantis/issues/562) [#575](https://github.com/GetJobber/atlantis/issues/575) [#565](https://github.com/GetJobber/atlantis/issues/565)
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
# [1.2.0](https://github.com/GetJobber/atlantis/compare/@jobber/hooks@1.1.3...@jobber/hooks@1.2.0) (2021-05-31)
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
### Features
|
|
257
|
-
|
|
258
|
-
* Allow Multi Level Menu in Docz ([#549](https://github.com/GetJobber/atlantis/issues/549)) ([5d966b6](https://github.com/GetJobber/atlantis/commit/5d966b6ee7b6e70f0122890a324f9b0ad4d556e7))
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
## [1.1.3](https://github.com/GetJobber/atlantis/compare/@jobber/hooks@1.1.2...@jobber/hooks@1.1.3) (2021-04-28)
|
|
265
|
-
|
|
266
|
-
**Note:** Version bump only for package @jobber/hooks
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
## [1.1.2](https://github.com/GetJobber/atlantis/compare/@jobber/hooks@1.1.1...@jobber/hooks@1.1.2) (2021-03-03)
|
|
273
|
-
|
|
274
|
-
**Note:** Version bump only for package @jobber/hooks
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
## [1.1.1](https://github.com/GetJobber/atlantis/compare/@jobber/hooks@1.1.0...@jobber/hooks@1.1.1) (2021-02-01)
|
|
281
|
-
|
|
282
|
-
**Note:** Version bump only for package @jobber/hooks
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
# [1.1.0](https://github.com/GetJobber/atlantis/compare/@jobber/hooks@1.0.0...@jobber/hooks@1.1.0) (2020-12-04)
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
### Features
|
|
292
|
-
|
|
293
|
-
* **hooks:** Add useOnKeyDown hook ([#432](https://github.com/GetJobber/atlantis/issues/432)) ([6a30a2e](https://github.com/GetJobber/atlantis/commit/6a30a2e8ad8ea3540eaab99597b2b5298facc575))
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
# [1.0.0](https://github.com/GetJobber/atlantis/compare/@jobber/hooks@0.3.0...@jobber/hooks@1.0.0) (2020-09-24)
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
### Features
|
|
303
|
-
|
|
304
|
-
* **components:** BREAKING CHANGE: FormField Validation ([#352](https://github.com/GetJobber/atlantis/issues/352)) ([a9b6221](https://github.com/GetJobber/atlantis/commit/a9b622197bf51b9f98f59280f06d3e34ed4c9636)), closes [#357](https://github.com/GetJobber/atlantis/issues/357) [#360](https://github.com/GetJobber/atlantis/issues/360)
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
### BREAKING CHANGES
|
|
308
|
-
|
|
309
|
-
* **components:** * add react-hook-form
|
|
310
|
-
|
|
311
|
-
* Adds validation to field
|
|
312
|
-
|
|
313
|
-
* Littered TODOs
|
|
314
|
-
|
|
315
|
-
* Uses inputValidation component
|
|
316
|
-
|
|
317
|
-
* update valid to validations prop
|
|
318
|
-
|
|
319
|
-
* Makes onValidation work again
|
|
320
|
-
|
|
321
|
-
* Make input validation docs work same as old atlantis
|
|
322
|
-
|
|
323
|
-
* Add custom validation example
|
|
324
|
-
|
|
325
|
-
* Fix the validation on input password docs
|
|
326
|
-
|
|
327
|
-
* Fixed input number validation
|
|
328
|
-
|
|
329
|
-
* Change FormField from forwardRef to use ref as a prop
|
|
330
|
-
|
|
331
|
-
* Force a name on fields
|
|
332
|
-
|
|
333
|
-
* Fix validation tests on FormField
|
|
334
|
-
|
|
335
|
-
* Fix inputNumber tests
|
|
336
|
-
|
|
337
|
-
* Some easy PR fixes
|
|
338
|
-
|
|
339
|
-
* Styles the validation message
|
|
340
|
-
|
|
341
|
-
* Add TS exceptions
|
|
342
|
-
|
|
343
|
-
* Styling changes for Validation mesages
|
|
344
|
-
|
|
345
|
-
* Removes Icon from validation message
|
|
346
|
-
|
|
347
|
-
* Case inputRef
|
|
348
|
-
|
|
349
|
-
* Cast the other ref
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
# [0.3.0](https://github.com/GetJobber/atlantis/compare/@jobber/hooks@0.2.1...@jobber/hooks@0.3.0) (2020-07-06)
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
### Features
|
|
359
|
-
|
|
360
|
-
* **hooks:** useResizeObserver custom sizes ([#298](https://github.com/GetJobber/atlantis/issues/298)) ([f0e500b](https://github.com/GetJobber/atlantis/commit/f0e500bcae02dd16fdf608782a84c73557386334))
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
## [0.2.1](https://github.com/GetJobber/atlantis/compare/@jobber/hooks@0.2.0...@jobber/hooks@0.2.1) (2020-06-23)
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
### Bug Fixes
|
|
370
|
-
|
|
371
|
-
* **hooks:** Uses the polyfilled version of resizeObserver ([#293](https://github.com/GetJobber/atlantis/issues/293)) ([2b3b770](https://github.com/GetJobber/atlantis/commit/2b3b77038168049714cf4d8946deff4b1328bf76))
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
# [0.2.0](https://github.com/GetJobber/atlantis/compare/@jobber/hooks@0.1.0...@jobber/hooks@0.2.0) (2020-06-10)
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
### Features
|
|
381
|
-
|
|
382
|
-
* **hooks:** Throttle useResizeObserver ([#279](https://github.com/GetJobber/atlantis/issues/279)) ([be475bf](https://github.com/GetJobber/atlantis/commit/be475bff5556424575a40ea17d2c5604c1a4e8bf))
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
# 0.1.0 (2020-05-01)
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
### Features
|
|
392
|
-
|
|
393
|
-
* add hook package with useResizeOberserver hook ([#242](https://github.com/GetJobber/atlantis/issues/242)) ([59411d7](https://github.com/GetJobber/atlantis/commit/59411d7dd34508e56dcdd4b9de9806414196959c))
|