@jobber/hooks 1.13.2-pre0.7 → 1.13.3-pre.4
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.
|
@@ -41,7 +41,6 @@ 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");
|
|
45
44
|
var useCollectionQuery_1 = require("./useCollectionQuery");
|
|
46
45
|
var test_utilities_1 = require("./test-utilities");
|
|
47
46
|
beforeEach(function () {
|
|
@@ -187,8 +186,9 @@ describe("useCollectionQuery", function () {
|
|
|
187
186
|
describe("when nextPage is called while it's still loadingNextPage", function () {
|
|
188
187
|
it("should not trigger a nextPage", function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
189
188
|
var result;
|
|
190
|
-
|
|
191
|
-
|
|
189
|
+
var _a, _b, _c, _d;
|
|
190
|
+
return __generator(this, function (_e) {
|
|
191
|
+
switch (_e.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
|
+
_e.sent();
|
|
203
203
|
react_hooks_1.act(function () {
|
|
204
204
|
result.current.nextPage();
|
|
205
205
|
});
|
|
@@ -208,13 +208,8 @@ describe("useCollectionQuery", function () {
|
|
|
208
208
|
});
|
|
209
209
|
return [4 /*yield*/, react_hooks_1.act(test_utilities_1.wait)];
|
|
210
210
|
case 2:
|
|
211
|
-
|
|
212
|
-
|
|
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();
|
|
211
|
+
_e.sent();
|
|
212
|
+
expect((_d = (_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) === null || _d === void 0 ? void 0 : _d.length).toBe(2);
|
|
218
213
|
return [2 /*return*/];
|
|
219
214
|
}
|
|
220
215
|
});
|
|
@@ -282,8 +277,9 @@ describe("useCollectionQuery", function () {
|
|
|
282
277
|
describe("when there is no error", function () {
|
|
283
278
|
it("should update data", function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
284
279
|
var result;
|
|
285
|
-
|
|
286
|
-
|
|
280
|
+
var _a, _b, _c, _d;
|
|
281
|
+
return __generator(this, function (_e) {
|
|
282
|
+
switch (_e.label) {
|
|
287
283
|
case 0:
|
|
288
284
|
result = react_hooks_1.renderHook(function () { return useCollectionQueryHook(query); }, {
|
|
289
285
|
wrapper: test_utilities_1.wrapper([
|
|
@@ -293,19 +289,14 @@ describe("useCollectionQuery", function () {
|
|
|
293
289
|
}).result;
|
|
294
290
|
return [4 /*yield*/, react_hooks_1.act(test_utilities_1.wait)];
|
|
295
291
|
case 1:
|
|
296
|
-
|
|
292
|
+
_e.sent();
|
|
297
293
|
react_hooks_1.act(function () {
|
|
298
294
|
result.current.nextPage();
|
|
299
295
|
});
|
|
300
296
|
return [4 /*yield*/, react_hooks_1.act(test_utilities_1.wait)];
|
|
301
297
|
case 2:
|
|
302
|
-
|
|
303
|
-
|
|
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();
|
|
298
|
+
_e.sent();
|
|
299
|
+
expect((_d = (_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) === null || _d === void 0 ? void 0 : _d.length).toBe(2);
|
|
309
300
|
return [2 /*return*/];
|
|
310
301
|
}
|
|
311
302
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/hooks",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.3-pre.4+f52dea65",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.js",
|
|
@@ -14,8 +14,9 @@
|
|
|
14
14
|
"dist/*"
|
|
15
15
|
],
|
|
16
16
|
"devDependencies": {
|
|
17
|
+
"@apollo/client": "^3.3.16",
|
|
17
18
|
"@apollo/react-testing": "^4.0.0",
|
|
18
|
-
"@jobber/formatters": "^0.2.2-
|
|
19
|
+
"@jobber/formatters": "^0.2.2-pre.46+f52dea65",
|
|
19
20
|
"@testing-library/react": "^14.0.0",
|
|
20
21
|
"@testing-library/react-hooks": "^7.0.0",
|
|
21
22
|
"@testing-library/user-event": "^12.0.2",
|
|
@@ -24,6 +25,7 @@
|
|
|
24
25
|
"@types/react-dom": "^18.0.11",
|
|
25
26
|
"@types/uuid": "^8.3.3",
|
|
26
27
|
"@types/zxcvbn": "^4.4.1",
|
|
28
|
+
"graphql": "^14.6.0",
|
|
27
29
|
"typescript": "^3.8.3",
|
|
28
30
|
"uuid": "^8.3.2"
|
|
29
31
|
},
|
|
@@ -36,8 +38,8 @@
|
|
|
36
38
|
"zxcvbn": "^4.4.2"
|
|
37
39
|
},
|
|
38
40
|
"peerDependencies": {
|
|
39
|
-
"@apollo/client": "^3.
|
|
40
|
-
"react": "
|
|
41
|
+
"@apollo/client": "^3.3.16",
|
|
42
|
+
"react": ">=16.8"
|
|
41
43
|
},
|
|
42
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "f52dea659949c25c79a3f3fa4191e4f8fd4c3636"
|
|
43
45
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,393 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
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))
|