@timardex/cluemart-shared 1.3.89 → 1.3.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/index.cjs CHANGED
@@ -6255,13 +6255,15 @@ var vendroMenuSchema = yup3.object().shape({
6255
6255
  price: yup3.number().transform((value, originalValue) => originalValue === "" ? null : value).min(0).nullable().defined().test("price-required", "Product price is required", function(value) {
6256
6256
  return value !== null && value !== void 0;
6257
6257
  }),
6258
- productGroups: yup3.array().of(yup3.string().defined()).nullable().defined().test(
6258
+ productGroups: yup3.array().of(yup3.string().defined()).transform(
6259
+ (value, originalValue) => originalValue === void 0 ? null : value
6260
+ ).nullable().test(
6259
6261
  "productGroups-required",
6260
6262
  "Product groups are required",
6261
6263
  function(value) {
6262
- return value !== null && value !== void 0 && Array.isArray(value) && value.length > 0;
6264
+ return value !== null && Array.isArray(value) && value.length > 0;
6263
6265
  }
6264
- )
6266
+ ).defined()
6265
6267
  });
6266
6268
  var vendorSchema = globalResourceSchema.shape({
6267
6269
  categories: categorySchema.min(1, "Category list must contain at least one item").required("Categories are required"),