@jobber/hooks 1.9.2-pre.45 → 1.10.0
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 +11 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.js +4 -4
- package/dist/useCollectionQuery/useCollectionQuery.d.ts +1 -1
- package/dist/useCollectionQuery/useCollectionQuery.js +8 -4
- package/dist/usePasswordStrength/usePasswordStrength.d.ts +1 -4
- package/dist/useResizeObserver/index.d.ts +1 -0
- package/dist/useResizeObserver/index.js +6 -0
- package/dist/{useResizeObserver.d.ts → useResizeObserver/useResizeObserver.d.ts} +0 -0
- package/dist/{useResizeObserver.js → useResizeObserver/useResizeObserver.js} +0 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,17 @@ menu: Changelog
|
|
|
8
8
|
All notable changes to this project will be documented in this file.
|
|
9
9
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
10
10
|
|
|
11
|
+
# [1.10.0](https://github.com/GetJobber/atlantis/compare/@jobber/hooks@1.9.1...@jobber/hooks@1.10.0) (2022-01-21)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* **hooks:** Create the hooks index dynamically ([#839](https://github.com/GetJobber/atlantis/issues/839)) ([dc770a8](https://github.com/GetJobber/atlantis/commit/dc770a813268cc2f3d011e2a559761043ae398ab))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
11
22
|
## [1.9.1](https://github.com/GetJobber/atlantis/compare/@jobber/hooks@1.9.0...@jobber/hooks@1.9.1) (2021-12-15)
|
|
12
23
|
|
|
13
24
|
**Note:** Version bump only for package @jobber/hooks
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./useFormState";
|
|
3
|
-
export * from "./useOnKeyDown";
|
|
1
|
+
export * from "./useAssert";
|
|
4
2
|
export * from "./useCollectionQuery";
|
|
3
|
+
export * from "./useFormState";
|
|
5
4
|
export * from "./useIsMounted";
|
|
5
|
+
export * from "./useOnKeyDown";
|
|
6
6
|
export * from "./usePasswordStrength";
|
|
7
7
|
export * from "./useRefocusOnActivator";
|
|
8
|
-
export * from "./
|
|
8
|
+
export * from "./useResizeObserver";
|
package/dist/index.js
CHANGED
|
@@ -3,11 +3,11 @@ function __export(m) {
|
|
|
3
3
|
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
4
4
|
}
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
__export(require("./
|
|
7
|
-
__export(require("./useFormState"));
|
|
8
|
-
__export(require("./useOnKeyDown"));
|
|
6
|
+
__export(require("./useAssert"));
|
|
9
7
|
__export(require("./useCollectionQuery"));
|
|
8
|
+
__export(require("./useFormState"));
|
|
10
9
|
__export(require("./useIsMounted"));
|
|
10
|
+
__export(require("./useOnKeyDown"));
|
|
11
11
|
__export(require("./usePasswordStrength"));
|
|
12
12
|
__export(require("./useRefocusOnActivator"));
|
|
13
|
-
__export(require("./
|
|
13
|
+
__export(require("./useResizeObserver"));
|
|
@@ -165,8 +165,10 @@ function fetchMoreUpdateQueryHandler(prev, fetchMoreResult, getCollectionByPath)
|
|
|
165
165
|
if (outputCollection.edges && nextCollection.edges) {
|
|
166
166
|
outputCollection.edges = getUpdatedEdges(outputCollection.edges, nextCollection.edges);
|
|
167
167
|
}
|
|
168
|
-
|
|
169
|
-
|
|
168
|
+
Object.assign(outputCollection, {
|
|
169
|
+
pageInfo: lodash_1.cloneDeep(nextCollection.pageInfo),
|
|
170
|
+
totalCount: nextCollection.totalCount,
|
|
171
|
+
});
|
|
170
172
|
return output;
|
|
171
173
|
}
|
|
172
174
|
function subscribeToMoreHandler(isSearching, prev, getCollectionByPath, subscriptionData, getNodeByPath) {
|
|
@@ -184,8 +186,10 @@ function subscribeToMoreHandler(isSearching, prev, getCollectionByPath, subscrip
|
|
|
184
186
|
if (outputCollection.edges) {
|
|
185
187
|
outputCollection.edges = getUpdatedEdges(outputCollection.edges, [uniqueEdges_1.createEdge(node)], false);
|
|
186
188
|
}
|
|
187
|
-
|
|
188
|
-
|
|
189
|
+
Object.assign(outputCollection, {
|
|
190
|
+
pageInfo: lodash_1.cloneDeep(outputCollection.pageInfo),
|
|
191
|
+
totalCount: outputCollection.totalCount + 1,
|
|
192
|
+
});
|
|
189
193
|
return output;
|
|
190
194
|
}
|
|
191
195
|
function isAlreadyUpdated(outputCollection, newNode) {
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
/// <reference types="@emotion/core" />
|
|
3
|
-
/// <reference types="theme-ui" />
|
|
4
1
|
import calculateStrength from "zxcvbn";
|
|
5
2
|
export declare function usePasswordStrength(password: string, dictionary?: string[]): {
|
|
6
3
|
guesses: number;
|
|
7
4
|
score: calculateStrength.ZXCVBNScore;
|
|
8
5
|
warning: calculateStrength.ZXCVBNFeedbackWarning;
|
|
9
6
|
suggestions: string[];
|
|
10
|
-
timeToCrack:
|
|
7
|
+
timeToCrack: string | number;
|
|
11
8
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./useResizeObserver";
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/hooks",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.js",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"@apollo/client": "^3.3.16",
|
|
41
41
|
"react": "^16.8.6"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "0bed1d6c9e1735478cfb4c117289cde4c6d3727c"
|
|
44
44
|
}
|