@srimandir/astro-consultation 2.37.5 → 2.37.6
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.
|
@@ -9,6 +9,11 @@ export interface UseWhatsAppNumberOptions {
|
|
|
9
9
|
length?: number;
|
|
10
10
|
/** Fewest digits for a valid number, for countries whose numbers vary. Defaults to `length`. */
|
|
11
11
|
minLength?: number;
|
|
12
|
+
/**
|
|
13
|
+
* Say "Enter a valid phone number" rather than naming a digit count — for a
|
|
14
|
+
* country picker, where "10-digit" reads as India's rule.
|
|
15
|
+
*/
|
|
16
|
+
genericError?: boolean;
|
|
12
17
|
/**
|
|
13
18
|
* Whether the built-in length check applies — off when the host renders its
|
|
14
19
|
* own input (and owns validation) or the field is hidden.
|
|
@@ -23,7 +28,7 @@ export interface UseWhatsAppNumberOptions {
|
|
|
23
28
|
* for the number: digits only, capped at `length`, and the length error held
|
|
24
29
|
* back until the user leaves the field or tries to continue.
|
|
25
30
|
*/
|
|
26
|
-
export declare const useWhatsAppNumber: ({ value, defaultValue, onChange, length, minLength, validate, hostError, t, }: UseWhatsAppNumberOptions) => {
|
|
31
|
+
export declare const useWhatsAppNumber: ({ value, defaultValue, onChange, length, minLength, genericError, validate, hostError, t, }: UseWhatsAppNumberOptions) => {
|
|
27
32
|
phoneNumber: string;
|
|
28
33
|
setPhoneNumber: (raw: string) => void;
|
|
29
34
|
isValid: boolean;
|
package/package.json
CHANGED