@timardex/cluemart-shared 1.2.88 → 1.2.90
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/dist/hooks/index.cjs +4 -4
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +4 -4
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5530,7 +5530,7 @@ var testerSchema = yup6.object().shape({
|
|
|
5530
5530
|
event: yup6.object().when("resourceType", {
|
|
5531
5531
|
is: (resourceType) => resourceType === "event" /* EVENT */,
|
|
5532
5532
|
otherwise: (schema) => schema.nullable().optional(),
|
|
5533
|
-
then: () => testerEventSchema
|
|
5533
|
+
then: (schema) => schema.required("Event information is required").shape(testerEventSchema.fields)
|
|
5534
5534
|
}),
|
|
5535
5535
|
firstName: yup6.string().required("First name is required"),
|
|
5536
5536
|
lastName: yup6.string().required("Last name is required"),
|
|
@@ -5550,7 +5550,7 @@ var testerSchema = yup6.object().shape({
|
|
|
5550
5550
|
vendor: yup6.object().when("resourceType", {
|
|
5551
5551
|
is: (resourceType) => resourceType === "vendor" /* VENDOR */,
|
|
5552
5552
|
otherwise: (schema) => schema.nullable().optional(),
|
|
5553
|
-
then: () => testerVendorSchema
|
|
5553
|
+
then: (schema) => schema.required("Vendor information is required").shape(testerVendorSchema.fields)
|
|
5554
5554
|
})
|
|
5555
5555
|
});
|
|
5556
5556
|
|
|
@@ -6347,7 +6347,7 @@ import { useForm as useForm11 } from "react-hook-form";
|
|
|
6347
6347
|
var defaultValues7 = {
|
|
6348
6348
|
businessName: "",
|
|
6349
6349
|
email: "",
|
|
6350
|
-
event:
|
|
6350
|
+
event: {},
|
|
6351
6351
|
firstName: "",
|
|
6352
6352
|
lastName: "",
|
|
6353
6353
|
mobilePhone: "",
|
|
@@ -6355,7 +6355,7 @@ var defaultValues7 = {
|
|
|
6355
6355
|
privacyConsent: false,
|
|
6356
6356
|
region: "",
|
|
6357
6357
|
resourceType: "",
|
|
6358
|
-
vendor:
|
|
6358
|
+
vendor: {}
|
|
6359
6359
|
};
|
|
6360
6360
|
function useTesterForm(data) {
|
|
6361
6361
|
const {
|