@ovok/native 1.9.0 → 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/lib/commonjs/modules/auth/default-translation.js +8 -0
- package/lib/commonjs/modules/auth/default-translation.js.map +1 -1
- package/lib/commonjs/modules/auth/profile/components/form-phone-field.js +163 -0
- package/lib/commonjs/modules/auth/profile/components/form-phone-field.js.map +1 -0
- package/lib/commonjs/modules/auth/profile/components/profile-form-choice-field.js +64 -0
- package/lib/commonjs/modules/auth/profile/components/profile-form-choice-field.js.map +1 -0
- package/lib/commonjs/modules/auth/profile/components/profile-form-field-component.js +46 -9
- package/lib/commonjs/modules/auth/profile/components/profile-form-field-component.js.map +1 -1
- package/lib/commonjs/modules/auth/profile/components/profile-form-provider.js +31 -11
- package/lib/commonjs/modules/auth/profile/components/profile-form-provider.js.map +1 -1
- package/lib/commonjs/modules/auth/profile/utils/phone.js +31 -0
- package/lib/commonjs/modules/auth/profile/utils/phone.js.map +1 -0
- package/lib/commonjs/modules/auth/register/components/form/inputs.js +32 -4
- package/lib/commonjs/modules/auth/register/components/form/inputs.js.map +1 -1
- package/lib/commonjs/modules/auth/register/components/form/register-form-provider.js +18 -4
- package/lib/commonjs/modules/auth/register/components/form/register-form-provider.js.map +1 -1
- package/lib/commonjs/modules/auth/register/contexts/register-form-context.js.map +1 -1
- package/lib/commonjs/modules/auth/register/utils/create-register-validation-schema.js +23 -3
- package/lib/commonjs/modules/auth/register/utils/create-register-validation-schema.js.map +1 -1
- package/lib/commonjs/modules/helpers/form-items/form-date-field.js +27 -4
- package/lib/commonjs/modules/helpers/form-items/form-date-field.js.map +1 -1
- package/lib/commonjs/modules/helpers/form-items/form-field.js +2 -1
- package/lib/commonjs/modules/helpers/form-items/form-field.js.map +1 -1
- package/lib/module/modules/auth/default-translation.js +8 -0
- package/lib/module/modules/auth/default-translation.js.map +1 -1
- package/lib/module/modules/auth/profile/components/form-phone-field.js +157 -0
- package/lib/module/modules/auth/profile/components/form-phone-field.js.map +1 -0
- package/lib/module/modules/auth/profile/components/profile-form-choice-field.js +58 -0
- package/lib/module/modules/auth/profile/components/profile-form-choice-field.js.map +1 -0
- package/lib/module/modules/auth/profile/components/profile-form-field-component.js +46 -9
- package/lib/module/modules/auth/profile/components/profile-form-field-component.js.map +1 -1
- package/lib/module/modules/auth/profile/components/profile-form-provider.js +31 -11
- package/lib/module/modules/auth/profile/components/profile-form-provider.js.map +1 -1
- package/lib/module/modules/auth/profile/utils/phone.js +25 -0
- package/lib/module/modules/auth/profile/utils/phone.js.map +1 -0
- package/lib/module/modules/auth/register/components/form/inputs.js +32 -4
- package/lib/module/modules/auth/register/components/form/inputs.js.map +1 -1
- package/lib/module/modules/auth/register/components/form/register-form-provider.js +18 -4
- package/lib/module/modules/auth/register/components/form/register-form-provider.js.map +1 -1
- package/lib/module/modules/auth/register/contexts/register-form-context.js.map +1 -1
- package/lib/module/modules/auth/register/utils/create-register-validation-schema.js +23 -3
- package/lib/module/modules/auth/register/utils/create-register-validation-schema.js.map +1 -1
- package/lib/module/modules/helpers/form-items/form-date-field.js +27 -4
- package/lib/module/modules/helpers/form-items/form-date-field.js.map +1 -1
- package/lib/module/modules/helpers/form-items/form-field.js +2 -1
- package/lib/module/modules/helpers/form-items/form-field.js.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/default-translation.d.ts +8 -0
- package/lib/typescript/commonjs/src/modules/auth/default-translation.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/profile/components/form-phone-field.d.ts +13 -0
- package/lib/typescript/commonjs/src/modules/auth/profile/components/form-phone-field.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/auth/profile/components/profile-form-choice-field.d.ts +14 -0
- package/lib/typescript/commonjs/src/modules/auth/profile/components/profile-form-choice-field.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/auth/profile/components/profile-form-field-component.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/profile/components/profile-form-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/profile/types/profile-form-field.d.ts +35 -3
- package/lib/typescript/commonjs/src/modules/auth/profile/types/profile-form-field.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/profile/types/profile-form-props.d.ts +3 -8
- package/lib/typescript/commonjs/src/modules/auth/profile/types/profile-form-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/profile/utils/phone.d.ts +6 -0
- package/lib/typescript/commonjs/src/modules/auth/profile/utils/phone.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/auth/register/components/form/inputs.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/register/components/form/register-form-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/register/contexts/register-form-context.d.ts +6 -0
- package/lib/typescript/commonjs/src/modules/auth/register/contexts/register-form-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/register/hooks/use-register-form.d.ts +5 -0
- package/lib/typescript/commonjs/src/modules/auth/register/hooks/use-register-form.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/register/types/register-form-props.d.ts +16 -3
- package/lib/typescript/commonjs/src/modules/auth/register/types/register-form-props.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/register/types/register-form-values.d.ts +1 -0
- package/lib/typescript/commonjs/src/modules/auth/register/types/register-form-values.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/register/utils/create-register-validation-schema.d.ts +10 -3
- package/lib/typescript/commonjs/src/modules/auth/register/utils/create-register-validation-schema.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/helpers/form-items/form-date-field.d.ts +11 -2
- package/lib/typescript/commonjs/src/modules/helpers/form-items/form-date-field.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/helpers/form-items/form-field.d.ts +2 -1
- package/lib/typescript/commonjs/src/modules/helpers/form-items/form-field.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/default-translation.d.ts +8 -0
- package/lib/typescript/module/src/modules/auth/default-translation.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/profile/components/form-phone-field.d.ts +13 -0
- package/lib/typescript/module/src/modules/auth/profile/components/form-phone-field.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/auth/profile/components/profile-form-choice-field.d.ts +14 -0
- package/lib/typescript/module/src/modules/auth/profile/components/profile-form-choice-field.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/auth/profile/components/profile-form-field-component.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/profile/components/profile-form-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/profile/types/profile-form-field.d.ts +35 -3
- package/lib/typescript/module/src/modules/auth/profile/types/profile-form-field.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/profile/types/profile-form-props.d.ts +3 -8
- package/lib/typescript/module/src/modules/auth/profile/types/profile-form-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/profile/utils/phone.d.ts +6 -0
- package/lib/typescript/module/src/modules/auth/profile/utils/phone.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/auth/register/components/form/inputs.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/register/components/form/register-form-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/register/contexts/register-form-context.d.ts +6 -0
- package/lib/typescript/module/src/modules/auth/register/contexts/register-form-context.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/register/hooks/use-register-form.d.ts +5 -0
- package/lib/typescript/module/src/modules/auth/register/hooks/use-register-form.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/register/types/register-form-props.d.ts +16 -3
- package/lib/typescript/module/src/modules/auth/register/types/register-form-props.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/register/types/register-form-values.d.ts +1 -0
- package/lib/typescript/module/src/modules/auth/register/types/register-form-values.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/register/utils/create-register-validation-schema.d.ts +10 -3
- package/lib/typescript/module/src/modules/auth/register/utils/create-register-validation-schema.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/helpers/form-items/form-date-field.d.ts +11 -2
- package/lib/typescript/module/src/modules/helpers/form-items/form-date-field.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/helpers/form-items/form-field.d.ts +2 -1
- package/lib/typescript/module/src/modules/helpers/form-items/form-field.d.ts.map +1 -1
- package/package.json +4 -2
|
@@ -1,12 +1,26 @@
|
|
|
1
|
+
import DateTimePickerModal from "react-native-modal-datetime-picker";
|
|
1
2
|
import * as Yup from "yup";
|
|
2
|
-
|
|
3
|
+
import type { Patient } from "@medplum/fhirtypes";
|
|
4
|
+
import type { PatchOperation } from "@ovok/core";
|
|
5
|
+
import type { CountryCode } from "libphonenumber-js";
|
|
6
|
+
import type { ComponentProps } from "react";
|
|
7
|
+
import type { TextInputProps } from "react-native-paper";
|
|
8
|
+
type ProfileFormFieldBase = {
|
|
3
9
|
name: string;
|
|
4
10
|
label: string;
|
|
5
11
|
value: string;
|
|
6
12
|
validation?: Yup.Schema<string | undefined>;
|
|
7
13
|
disabled?: boolean;
|
|
8
14
|
testID?: string;
|
|
9
|
-
|
|
15
|
+
toPatch?: (value: string, patient: Patient) => PatchOperation[];
|
|
16
|
+
};
|
|
17
|
+
type TextInputFieldProps = Omit<TextInputProps, "value" | "onChangeText" | "testID">;
|
|
18
|
+
type DateFieldProps = Pick<ComponentProps<typeof DateTimePickerModal>, "locale" | "minimumDate" | "maximumDate" | "display"> & {
|
|
19
|
+
mode?: "date" | "time" | "datetime";
|
|
20
|
+
initialDate?: Date;
|
|
21
|
+
formatValue?: (value: string) => string;
|
|
22
|
+
};
|
|
23
|
+
export type ProfileFormField = ProfileFormFieldBase & ({
|
|
10
24
|
type: "select";
|
|
11
25
|
options: {
|
|
12
26
|
label: string;
|
|
@@ -14,8 +28,26 @@ export type ProfileFormField = {
|
|
|
14
28
|
}[];
|
|
15
29
|
} | {
|
|
16
30
|
type: "date";
|
|
17
|
-
mode?: "
|
|
31
|
+
mode?: DateFieldProps["mode"];
|
|
32
|
+
initialDate?: DateFieldProps["initialDate"];
|
|
33
|
+
minimumDate?: DateFieldProps["minimumDate"];
|
|
34
|
+
maximumDate?: DateFieldProps["maximumDate"];
|
|
35
|
+
locale?: DateFieldProps["locale"];
|
|
36
|
+
display?: DateFieldProps["display"];
|
|
37
|
+
formatValue?: DateFieldProps["formatValue"];
|
|
18
38
|
} | {
|
|
19
39
|
type: "text";
|
|
40
|
+
keyboardType?: TextInputProps["keyboardType"];
|
|
41
|
+
inputProps?: TextInputFieldProps;
|
|
42
|
+
} | {
|
|
43
|
+
type: "choice";
|
|
44
|
+
options: {
|
|
45
|
+
label: string;
|
|
46
|
+
value: string;
|
|
47
|
+
}[];
|
|
48
|
+
} | {
|
|
49
|
+
type: "phone";
|
|
50
|
+
defaultCountry: CountryCode;
|
|
20
51
|
});
|
|
52
|
+
export {};
|
|
21
53
|
//# sourceMappingURL=profile-form-field.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile-form-field.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/profile/types/profile-form-field.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAE3B,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"profile-form-field.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/profile/types/profile-form-field.ts"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,MAAM,oCAAoC,CAAC;AACrE,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAE3B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,E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AC5C,WAAW,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,CAAC;IAC5C,MAAM,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC;IAClC,OAAO,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;IACpC,WAAW,CAAC,EAAE,cAAc,CAAC,aAAa,CAAC,CAAC;CAC7C,GACD;IACE,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC;IAC9C,UAAU,CAAC,EAAE,mBAAmB,CAAC;CAClC,GACD;IACE,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;KACf,EAAE,CAAC;CACL,GACD;IACE,IAAI,EAAE,OAAO,CAAC;IACd,cAAc,EAAE,WAAW,CAAC;CAC7B,CACJ,CAAC"}
|
|
@@ -7,12 +7,7 @@ export type ProfileFormProps = {
|
|
|
7
7
|
fields: ProfileFormField[];
|
|
8
8
|
style?: StyleProp<ViewStyle>;
|
|
9
9
|
testID?: string;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
onSuccess?: (response: Patient) => void;
|
|
14
|
-
} | {
|
|
15
|
-
onSuccess?: undefined;
|
|
16
|
-
onSubmit?: (values: ProfileFormValues, formikHelpers: FormikHelpers<ProfileFormValues>) => void;
|
|
17
|
-
});
|
|
10
|
+
onSuccess?: (response: Patient, values: ProfileFormValues) => void;
|
|
11
|
+
onSubmit?: (values: ProfileFormValues, formikHelpers: FormikHelpers<ProfileFormValues>) => Promise<void> | void;
|
|
12
|
+
};
|
|
18
13
|
//# sourceMappingURL=profile-form-props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile-form-props.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/profile/types/profile-form-props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAA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0,0 +1,6 @@
|
|
|
1
|
+
import { type CountryCode } from "libphonenumber-js";
|
|
2
|
+
declare const phoneCountryFieldName: (name: string) => string;
|
|
3
|
+
declare const toPhoneE164: (value: string, country: CountryCode) => string;
|
|
4
|
+
declare const isPhoneValidForCountry: (value: string, country: CountryCode) => boolean;
|
|
5
|
+
export { isPhoneValidForCountry, phoneCountryFieldName, toPhoneE164 };
|
|
6
|
+
//# sourceMappingURL=phone.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"phone.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/profile/utils/phone.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAC;AAE3B,QAAA,MAAM,qBAAqB,GAAI,MAAM,MAAM,WACqC,CAAC;AAEjF,QAAA,MAAM,WAAW,GAAI,OAAO,MAAM,EAAE,SAAS,WAAW,WAoBvD,CAAC;AAEF,QAAA,MAAM,sBAAsB,GAAI,OAAO,MAAM,EAAE,SAAS,WAAW,YAIlE,CAAC;AAEF,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inputs.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/auth/register/components/form/inputs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,eAAO,MAAM,MAAM,GAAI,+BAA+B,eAAe,
|
|
1
|
+
{"version":3,"file":"inputs.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/auth/register/components/form/inputs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,eAAO,MAAM,MAAM,GAAI,+BAA+B,eAAe,sBAiOpE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register-form-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/auth/register/components/form/register-form-provider.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AASpE,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CACzC,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,
|
|
1
|
+
{"version":3,"file":"register-form-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/auth/register/components/form/register-form-provider.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AASpE,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CACzC,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAsJ3C,CAAC"}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import { FormikContextType } from "formik";
|
|
2
2
|
import * as React from "react";
|
|
3
|
+
import type { RegisterFormProps } from "../types/register-form-props";
|
|
3
4
|
import { RegisterFormValues } from "../types/register-form-values";
|
|
4
5
|
type RegisterFormContextType = FormikContextType<RegisterFormValues> & {
|
|
5
6
|
defaultValues?: Partial<Omit<RegisterFormValues, "submit">>;
|
|
7
|
+
nameField?: RegisterFormProps["nameField"];
|
|
8
|
+
toRegisterNames?: (fullName: string) => {
|
|
9
|
+
name: string;
|
|
10
|
+
surname: string;
|
|
11
|
+
};
|
|
6
12
|
};
|
|
7
13
|
export declare const RegisterFormContext: React.Context<RegisterFormContextType | undefined>;
|
|
8
14
|
export {};
|
package/lib/typescript/module/src/modules/auth/register/contexts/register-form-context.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register-form-context.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/register/contexts/register-form-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAC3C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAEnE,KAAK,uBAAuB,GAAG,iBAAiB,CAAC,kBAAkB,CAAC,GAAG;IACrE,aAAa,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,QAAQ,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"register-form-context.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/register/contexts/register-form-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAC3C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAEtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAEnE,KAAK,uBAAuB,GAAG,iBAAiB,CAAC,kBAAkB,CAAC,GAAG;IACrE,aAAa,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,QAAQ,CAAC,CAAC,CAAC;IAC5D,SAAS,CAAC,EAAE,iBAAiB,CAAC,WAAW,CAAC,CAAC;IAC3C,eAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CAC3E,CAAC;AAEF,eAAO,MAAM,mBAAmB,oDAEpB,CAAC"}
|
|
@@ -2,5 +2,10 @@ export declare const useRegisterForm: () => import("formik").FormikSharedConfig<
|
|
|
2
2
|
submitForm: () => Promise<any>;
|
|
3
3
|
} & Pick<import("formik").FormikConfig<import("..").RegisterFormValues>, "validate" | "validationSchema"> & {
|
|
4
4
|
defaultValues?: Partial<Omit<import("..").RegisterFormValues, "submit">>;
|
|
5
|
+
nameField?: import("../types/register-form-props").RegisterFormProps["nameField"];
|
|
6
|
+
toRegisterNames?: (fullName: string) => {
|
|
7
|
+
name: string;
|
|
8
|
+
surname: string;
|
|
9
|
+
};
|
|
5
10
|
};
|
|
6
11
|
//# sourceMappingURL=use-register-form.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-register-form.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/register/hooks/use-register-form.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"use-register-form.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/register/hooks/use-register-form.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe;;;;;;;;;CAU3B,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { FormikHelpers } from "formik";
|
|
|
3
3
|
import * as Yup from "yup";
|
|
4
4
|
import type { StyleProp, ViewStyle } from "react-native";
|
|
5
5
|
import { RegisterFormValues } from "./register-form-values";
|
|
6
|
-
|
|
6
|
+
type RegisterFormBaseProps = {
|
|
7
7
|
style?: StyleProp<ViewStyle>;
|
|
8
8
|
customValidations?: {
|
|
9
9
|
[key in keyof RegisterFormValues]?: Yup.StringSchema | ((existingRule: Yup.StringSchema) => Yup.StringSchema);
|
|
@@ -13,7 +13,18 @@ export type RegisterFormProps = {
|
|
|
13
13
|
children: React.ReactNode;
|
|
14
14
|
tenantCode: string;
|
|
15
15
|
continueAsPatientToken?: string;
|
|
16
|
-
}
|
|
16
|
+
};
|
|
17
|
+
type RegisterNameFieldProps = {
|
|
18
|
+
nameField?: "split";
|
|
19
|
+
toRegisterNames?: never;
|
|
20
|
+
} | {
|
|
21
|
+
nameField: "single";
|
|
22
|
+
toRegisterNames: (fullName: string) => {
|
|
23
|
+
name: string;
|
|
24
|
+
surname: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
type RegisterFormHandlers = {
|
|
17
28
|
onSuccess?: undefined;
|
|
18
29
|
onError?: undefined;
|
|
19
30
|
onNextStep?: undefined;
|
|
@@ -23,5 +34,7 @@ export type RegisterFormProps = {
|
|
|
23
34
|
onSuccess?: (values: AuthResponse) => void;
|
|
24
35
|
onError?: (error: Error) => void;
|
|
25
36
|
onNextStep?: (step: ClinicianInviteStep) => void;
|
|
26
|
-
}
|
|
37
|
+
};
|
|
38
|
+
export type RegisterFormProps = RegisterFormBaseProps & RegisterNameFieldProps & RegisterFormHandlers;
|
|
39
|
+
export {};
|
|
27
40
|
//# sourceMappingURL=register-form-props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register-form-props.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/register/types/register-form-props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAE3B,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D,
|
|
1
|
+
{"version":3,"file":"register-form-props.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/register/types/register-form-props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAE3B,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D,KA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C,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,mBAAmB,KAAK,IAAI,CAAC;CAClD,CAAC;AAEN,MAAM,MAAM,iBAAiB,GAAG,qBAAqB,GACnD,sBAAsB,GACtB,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register-form-values.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/register/types/register-form-values.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,YAAY,EAAE,YAAY,CAAC,GAAG;IAClE,MAAM,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"register-form-values.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/register/types/register-form-values.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,YAAY,EAAE,YAAY,CAAC,GAAG;IAClE,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
|
package/lib/typescript/module/src/modules/auth/register/utils/create-register-validation-schema.d.ts
CHANGED
|
@@ -3,16 +3,23 @@ import { RegisterFormProps } from "../types/register-form-props";
|
|
|
3
3
|
type CreateRegisterValidationSchemaProps = {
|
|
4
4
|
customValidations?: RegisterFormProps["customValidations"];
|
|
5
5
|
disablePasswordConfirm?: boolean;
|
|
6
|
+
singleName?: boolean;
|
|
7
|
+
toRegisterNames?: (fullName: string) => {
|
|
8
|
+
name: string;
|
|
9
|
+
surname: string;
|
|
10
|
+
};
|
|
6
11
|
};
|
|
7
|
-
export declare const createRegisterValidationSchema: ({ customValidations, disablePasswordConfirm, }: CreateRegisterValidationSchemaProps) => Yup.ObjectSchema<{
|
|
8
|
-
name: string | undefined
|
|
9
|
-
surname: string | undefined
|
|
12
|
+
export declare const createRegisterValidationSchema: ({ customValidations, disablePasswordConfirm, singleName, toRegisterNames, }: CreateRegisterValidationSchemaProps) => Yup.ObjectSchema<{
|
|
13
|
+
name: Yup.Maybe<string | undefined>;
|
|
14
|
+
surname: Yup.Maybe<string | undefined>;
|
|
15
|
+
fullName: Yup.Maybe<string | undefined>;
|
|
10
16
|
email: string | undefined;
|
|
11
17
|
password: string | undefined;
|
|
12
18
|
passwordConfirm: string | undefined;
|
|
13
19
|
}, Yup.AnyObject, {
|
|
14
20
|
name: undefined;
|
|
15
21
|
surname: undefined;
|
|
22
|
+
fullName: undefined;
|
|
16
23
|
email: undefined;
|
|
17
24
|
password: undefined;
|
|
18
25
|
passwordConfirm: undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-register-validation-schema.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/register/utils/create-register-validation-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAE3B,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAIjE,KAAK,mCAAmC,GAAG;IACzC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC,mBAAmB,CAAC,CAAC;IAC3D,sBAAsB,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"create-register-validation-schema.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/register/utils/create-register-validation-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAE3B,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAIjE,KAAK,mCAAmC,GAAG;IACzC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC,mBAAmB,CAAC,CAAC;IAC3D,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CAC3E,CAAC;AAEF,eAAO,MAAM,8BAA8B,GAAI,6EAK5C,mCAAmC;;;;;;;;;;;;;;MA6FrC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { type ViewStyle, type TextStyle } from "react-native";
|
|
3
|
+
import DateTimePickerModal from "react-native-modal-datetime-picker";
|
|
3
4
|
interface FormDateFieldProps {
|
|
4
5
|
name: string;
|
|
5
6
|
context: React.Context<any>;
|
|
@@ -8,7 +9,15 @@ interface FormDateFieldProps {
|
|
|
8
9
|
containerStyle?: ViewStyle;
|
|
9
10
|
labelStyle?: TextStyle;
|
|
10
11
|
mode?: "date" | "time" | "datetime";
|
|
12
|
+
initialDate?: Date;
|
|
13
|
+
minimumDate?: Date;
|
|
14
|
+
maximumDate?: Date;
|
|
15
|
+
display?: React.ComponentProps<typeof DateTimePickerModal>["display"];
|
|
16
|
+
locale?: string;
|
|
17
|
+
formatValue?: (value: string) => string;
|
|
18
|
+
disabled?: boolean;
|
|
11
19
|
}
|
|
12
|
-
|
|
13
|
-
|
|
20
|
+
declare const parseDatePickerValue: (value: string, fallback: Date) => Date;
|
|
21
|
+
declare const FormDateField: React.MemoExoticComponent<({ name, context, label, testID, containerStyle, mode, initialDate, minimumDate, maximumDate, display, locale, formatValue, disabled, }: FormDateFieldProps) => React.JSX.Element>;
|
|
22
|
+
export { FormDateField, parseDatePickerValue };
|
|
14
23
|
//# sourceMappingURL=form-date-field.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-date-field.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/helpers/form-items/form-date-field.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,SAAS,EAEf,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"form-date-field.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/helpers/form-items/form-date-field.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,SAAS,EAEf,MAAM,cAAc,CAAC;AACtB,OAAO,mBAAmB,MAAM,oCAAoC,CAAC;AAKrE,UAAU,kBAAkB;IAC1B,IAAI,EAAE,MAAM,CAAC;IAGb,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,CAAC;IACpC,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,OAAO,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC;IACtE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,oBAAoB,GAAI,OAAO,MAAM,EAAE,UAAU,IAAI,SAY1D,CAAC;AAEF,QAAA,MAAM,aAAa,qKAed,kBAAkB,uBA+EtB,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -8,8 +8,9 @@ interface FormFieldProps extends Omit<TextInputProps, "onChangeText" | "value" |
|
|
|
8
8
|
inputRef?: React.Ref<{
|
|
9
9
|
focus: () => void;
|
|
10
10
|
}>;
|
|
11
|
+
onChangeText?: (value: string) => void;
|
|
11
12
|
testID?: string;
|
|
12
13
|
}
|
|
13
|
-
export declare const FormField: React.MemoExoticComponent<({ name, context, containerStyle, inputRef, testID, ...props }: FormFieldProps) => React.JSX.Element>;
|
|
14
|
+
export declare const FormField: React.MemoExoticComponent<({ name, context, containerStyle, inputRef, testID, onChangeText, ...props }: FormFieldProps) => React.JSX.Element>;
|
|
14
15
|
export {};
|
|
15
16
|
//# sourceMappingURL=form-field.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-field.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/helpers/form-items/form-field.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAIL,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AACtB,OAAO,EAAyB,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAIhF,UAAU,cACR,SAAQ,IAAI,CAAC,cAAc,EAAE,cAAc,GAAG,OAAO,GAAG,QAAQ,CAAC;IACjE,IAAI,EAAE,MAAM,CAAC;IAGb,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAC5B,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,QAAQ,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC;QAAE,KAAK,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"form-field.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/helpers/form-items/form-field.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAIL,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AACtB,OAAO,EAAyB,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAIhF,UAAU,cACR,SAAQ,IAAI,CAAC,cAAc,EAAE,cAAc,GAAG,OAAO,GAAG,QAAQ,CAAC;IACjE,IAAI,EAAE,MAAM,CAAC;IAGb,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAC5B,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,QAAQ,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC;QAAE,KAAK,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC,CAAC;IAC5C,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAEvC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,SAAS,0GASjB,cAAc,uBAoDlB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ovok/native",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"description": "React native component sdk for OVOK",
|
|
5
5
|
"source": "./src/index.tsx",
|
|
6
6
|
"main": "./lib/commonjs/index.js",
|
|
@@ -71,7 +71,9 @@
|
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
73
|
"@medplum/expo-polyfills": "3.2.23",
|
|
74
|
-
"
|
|
74
|
+
"countries-list": "^3.4.1",
|
|
75
|
+
"crypto-js": "4.2.0",
|
|
76
|
+
"libphonenumber-js": "^1.13.14"
|
|
75
77
|
},
|
|
76
78
|
"devDependencies": {
|
|
77
79
|
"@babel/core": "^7.29.0",
|