@open-tender/utils 0.1.170 → 0.1.172
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
export declare const useOneTimePasscodeForm: (otpSent: boolean, loading: RequestStatus, error: RequestError, submit: (data:
|
|
2
|
+
import { CustomerSignIn, RequestError, RequestStatus } from '@open-tender/types';
|
|
3
|
+
export declare const useOneTimePasscodeForm: (otpSent: boolean, loading: RequestStatus, error: RequestError, submit: (data: CustomerSignIn) => void, callback?: () => void) => {
|
|
4
4
|
submitRef: import("react").MutableRefObject<HTMLButtonElement | null>;
|
|
5
5
|
inputRef: import("react").MutableRefObject<HTMLInputElement | null>;
|
|
6
6
|
fields: import("@open-tender/types").FormFieldType[];
|
|
@@ -30,7 +30,7 @@ const notificationChannelFields = [
|
|
|
30
30
|
const useSignUpForm = (loading, error, signUp, callback, checkConfig, hidePassword = false, optionalFields, notificationChannels) => {
|
|
31
31
|
const submitRef = (0, react_1.useRef)(null);
|
|
32
32
|
const [data, setData] = (0, react_1.useState)(initState);
|
|
33
|
-
const [comms, setComms] = (0, react_1.useState)(
|
|
33
|
+
const [comms, setComms] = (0, react_1.useState)([]);
|
|
34
34
|
const [errors, setErrors] = (0, react_1.useState)({});
|
|
35
35
|
const [submitting, setSubmitting] = (0, react_1.useState)(false);
|
|
36
36
|
const { displayed, required } = checkConfig || {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
export declare const useOneTimePasscodeForm: (otpSent: boolean, loading: RequestStatus, error: RequestError, submit: (data:
|
|
2
|
+
import { CustomerSignIn, RequestError, RequestStatus } from '@open-tender/types';
|
|
3
|
+
export declare const useOneTimePasscodeForm: (otpSent: boolean, loading: RequestStatus, error: RequestError, submit: (data: CustomerSignIn) => void, callback?: () => void) => {
|
|
4
4
|
submitRef: import("react").MutableRefObject<HTMLButtonElement | null>;
|
|
5
5
|
inputRef: import("react").MutableRefObject<HTMLInputElement | null>;
|
|
6
6
|
fields: import("@open-tender/types").FormFieldType[];
|
|
@@ -27,7 +27,7 @@ const notificationChannelFields = [
|
|
|
27
27
|
export const useSignUpForm = (loading, error, signUp, callback, checkConfig, hidePassword = false, optionalFields, notificationChannels) => {
|
|
28
28
|
const submitRef = useRef(null);
|
|
29
29
|
const [data, setData] = useState(initState);
|
|
30
|
-
const [comms, setComms] = useState(
|
|
30
|
+
const [comms, setComms] = useState([]);
|
|
31
31
|
const [errors, setErrors] = useState({});
|
|
32
32
|
const [submitting, setSubmitting] = useState(false);
|
|
33
33
|
const { displayed, required } = checkConfig || {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/utils",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.172",
|
|
4
4
|
"description": "A library of utils for use with Open Tender applications that utilize our cloud-based Order API.",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"typescript": "^4.8.2"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"@open-tender/types": "^0.2.
|
|
57
|
+
"@open-tender/types": "^0.2.102",
|
|
58
58
|
"@reduxjs/toolkit": "^1.8.5",
|
|
59
59
|
"react": "^18.2.0"
|
|
60
60
|
},
|