@timardex/cluemart-shared 1.2.0 → 1.2.1
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/formFields/index.cjs +6 -3
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.mjs +6 -3
- package/dist/formFields/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +1 -1
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +7 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +7 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -432,9 +432,12 @@ var producedIngTypes = [
|
|
|
432
432
|
];
|
|
433
433
|
var packagingOptions = mapArrayToOptions(packagingTypes);
|
|
434
434
|
var producedIngOptions = mapArrayToOptions(producedIngTypes);
|
|
435
|
-
var foodFlavourOptions =
|
|
436
|
-
|
|
437
|
-
)
|
|
435
|
+
var foodFlavourOptions = Object.values(
|
|
436
|
+
EnumFoodFlavor
|
|
437
|
+
).map((flavour) => ({
|
|
438
|
+
label: flavour,
|
|
439
|
+
value: flavour
|
|
440
|
+
}));
|
|
438
441
|
|
|
439
442
|
// src/formFields/event/event.ts
|
|
440
443
|
var eventBasicInfoFields = [
|
|
@@ -4648,7 +4651,7 @@ var vendorInfoSchema = yup3.object().shape({
|
|
|
4648
4651
|
contactDetails: contactDetailsSchema,
|
|
4649
4652
|
product: yup3.object().shape({
|
|
4650
4653
|
foodFlavors: yup3.array().of(
|
|
4651
|
-
yup3.mixed().oneOf(Object.values(EnumFoodFlavor)).
|
|
4654
|
+
yup3.mixed().oneOf(Object.values(EnumFoodFlavor), "Invalid flavor selected").required("Flavor is required")
|
|
4652
4655
|
).min(1, "Food flavors list must contain at least one item").required("Food flavors are required"),
|
|
4653
4656
|
packaging: yup3.array().of(yup3.string().defined()).min(1, "Packaging list must contain at least one item").required("Packaging is required"),
|
|
4654
4657
|
priceRange: yup3.object().shape({
|