@jobber/hooks 1.7.0 → 1.8.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 CHANGED
@@ -8,6 +8,33 @@ 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.8.0](https://github.com/GetJobber/atlantis/compare/@jobber/hooks@1.7.2...@jobber/hooks@1.8.0) (2021-10-13)
12
+
13
+
14
+ ### Features
15
+
16
+ * **components:** Add visibility toggle for InputPassword ([#621](https://github.com/GetJobber/atlantis/issues/621)) ([ef7a851](https://github.com/GetJobber/atlantis/commit/ef7a8519c798cb951f206a2c64d9b9c0b63279a5))
17
+
18
+
19
+
20
+
21
+
22
+ ## [1.7.2](https://github.com/GetJobber/atlantis/compare/@jobber/hooks@1.7.1...@jobber/hooks@1.7.2) (2021-10-07)
23
+
24
+ **Note:** Version bump only for package @jobber/hooks
25
+
26
+
27
+
28
+
29
+
30
+ ## [1.7.1](https://github.com/GetJobber/atlantis/compare/@jobber/hooks@1.7.0...@jobber/hooks@1.7.1) (2021-09-27)
31
+
32
+ **Note:** Version bump only for package @jobber/hooks
33
+
34
+
35
+
36
+
37
+
11
38
  # [1.7.0](https://github.com/GetJobber/atlantis/compare/@jobber/hooks@1.6.1...@jobber/hooks@1.7.0) (2021-09-23)
12
39
 
13
40
 
package/dist/index.d.ts CHANGED
@@ -5,3 +5,4 @@ export * from "./useCollectionQuery";
5
5
  export * from "./useIsMounted";
6
6
  export * from "./usePasswordStrength";
7
7
  export * from "./useRefocusOnActivator";
8
+ export * from "./useAssert";
package/dist/index.js CHANGED
@@ -10,3 +10,4 @@ __export(require("./useCollectionQuery"));
10
10
  __export(require("./useIsMounted"));
11
11
  __export(require("./usePasswordStrength"));
12
12
  __export(require("./useRefocusOnActivator"));
13
+ __export(require("./useAssert"));
@@ -0,0 +1 @@
1
+ export { useAssert } from "./useAssert";
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var useAssert_1 = require("./useAssert");
4
+ exports.useAssert = useAssert_1.useAssert;
@@ -0,0 +1,5 @@
1
+ interface Options {
2
+ readonly warn: boolean;
3
+ }
4
+ export declare function useAssert(shouldShow: boolean, message: string, options?: Options): void;
5
+ export {};
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ var process_1 = __importDefault(require("process"));
7
+ function useAssert(shouldShow, message, options) {
8
+ if (process_1.default.env.NODE_ENV !== "production" && shouldShow) {
9
+ if (options === null || options === void 0 ? void 0 : options.warn) {
10
+ console.warn(message);
11
+ }
12
+ else {
13
+ throw new Error(message);
14
+ }
15
+ }
16
+ }
17
+ exports.useAssert = useAssert;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/hooks",
3
- "version": "1.7.0",
3
+ "version": "1.8.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": "e0c006a348b7c237501ab52016c04ed624d70069"
43
+ "gitHead": "7a31394c137a958cb4b6de636dcc6c47c70f3403"
44
44
  }