@timardex/cluemart-shared 1.4.73 → 1.4.75

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.
Files changed (40) hide show
  1. package/dist/{auth-CovYLFRn.d.ts → auth-B5tprOIL.d.ts} +1 -1
  2. package/dist/{auth-Cdfen6gg.d.mts → auth-DtPfNKc4.d.mts} +1 -1
  3. package/dist/{chunk-2OEDUG7U.mjs → chunk-4LT5GOOP.mjs} +1 -5
  4. package/dist/{chunk-2OEDUG7U.mjs.map → chunk-4LT5GOOP.mjs.map} +1 -1
  5. package/dist/{chunk-7FRB62SE.mjs → chunk-W465TNSV.mjs} +1 -5
  6. package/dist/chunk-W465TNSV.mjs.map +1 -0
  7. package/dist/formFields/index.cjs +0 -4
  8. package/dist/formFields/index.cjs.map +1 -1
  9. package/dist/formFields/index.d.mts +1 -1
  10. package/dist/formFields/index.d.ts +1 -1
  11. package/dist/formFields/index.mjs +1 -1
  12. package/dist/{global-HUZHOXHh.d.ts → global-B0WdAD-8.d.ts} +1 -5
  13. package/dist/{global-D_ckWQMA.d.mts → global-MMBYi34A.d.mts} +1 -5
  14. package/dist/graphql/index.cjs +0 -4
  15. package/dist/graphql/index.cjs.map +1 -1
  16. package/dist/graphql/index.d.mts +3 -3
  17. package/dist/graphql/index.d.ts +3 -3
  18. package/dist/graphql/index.mjs +1 -1
  19. package/dist/hooks/index.cjs +2 -21
  20. package/dist/hooks/index.cjs.map +1 -1
  21. package/dist/hooks/index.d.mts +3 -3
  22. package/dist/hooks/index.d.ts +3 -3
  23. package/dist/hooks/index.mjs +4 -15
  24. package/dist/hooks/index.mjs.map +1 -1
  25. package/dist/index.cjs +2 -21
  26. package/dist/index.cjs.map +1 -1
  27. package/dist/index.d.mts +1 -5
  28. package/dist/index.d.ts +1 -5
  29. package/dist/index.mjs +2 -21
  30. package/dist/index.mjs.map +1 -1
  31. package/dist/{post-aU2ITfZh.d.mts → post-DZF3nYKf.d.mts} +1 -1
  32. package/dist/{post-DIylz7DM.d.ts → post-DdErP7-k.d.ts} +1 -1
  33. package/dist/{resourceActivities-CwSss-73.d.ts → resourceActivities-2FaGRW-i.d.ts} +1 -1
  34. package/dist/{resourceActivities-dxnqHVVc.d.mts → resourceActivities-CqrscA5x.d.mts} +1 -1
  35. package/dist/types/index.d.mts +5 -5
  36. package/dist/types/index.d.ts +5 -5
  37. package/dist/utils/index.d.mts +1 -1
  38. package/dist/utils/index.d.ts +1 -1
  39. package/package.json +1 -1
  40. package/dist/chunk-7FRB62SE.mjs.map +0 -1
package/dist/index.cjs CHANGED
@@ -1268,10 +1268,6 @@ var stallTypes = [
1268
1268
  "Workshop/seating area"
1269
1269
  ];
1270
1270
  var stallTypeOptions = stallTypes.map((type) => ({
1271
- electricity: {
1272
- price: null,
1273
- selected: false
1274
- },
1275
1271
  label: type,
1276
1272
  price: 0,
1277
1273
  stallCapacity: 0
@@ -2761,10 +2757,6 @@ var STALL_TYPE_FIELDS_FRAGMENT = import_client2.gql`
2761
2757
  label
2762
2758
  price
2763
2759
  stallCapacity
2764
- electricity {
2765
- price
2766
- selected
2767
- }
2768
2760
  }
2769
2761
  `;
2770
2762
  var RELATION_DATES_FRAGMENT = import_client2.gql`
@@ -6211,17 +6203,7 @@ var stallTypesSchema = yup.object({
6211
6203
  "",
6212
6204
  noLeadingZeros("Stall price", { allowDecimal: true })
6213
6205
  ),
6214
- stallCapacity: yup.number().label("Stall Capacity").typeError("Stall capacity must be a number").min(1, "Stall capacity must be at least 1").integer("Stall capacity must be a whole number").required("Stall capacity is required").test("no-leading-zeros", "", noLeadingZeros("Stall capacity")),
6215
- electricity: yup.object({
6216
- selected: yup.boolean().nullable().optional().label("Electricity Available"),
6217
- price: yup.number().transform(
6218
- (value, originalValue) => originalValue === "" ? null : value
6219
- ).integer("Electricity price must be a whole number").test(
6220
- "no-leading-zeros",
6221
- "",
6222
- noLeadingZeros("Electricity price", { allowDecimal: true })
6223
- ).nullable().optional()
6224
- }).nullable().optional().label("Electricity Information")
6206
+ stallCapacity: yup.number().label("Stall Capacity").typeError("Stall capacity must be a number").min(1, "Stall capacity must be at least 1").integer("Stall capacity must be a whole number").required("Stall capacity is required").test("no-leading-zeros", "", noLeadingZeros("Stall capacity"))
6225
6207
  });
6226
6208
  var dateTimeWithPriceSchema = dateTimeSchema.shape({
6227
6209
  stallTypes: yup.array().of(stallTypesSchema).min(1, "At least one stall type is required").required("Stall types are required")
@@ -6380,8 +6362,7 @@ var vendorMenuSchema = yup3.object({
6380
6362
  description: yup3.string().nullable().optional(),
6381
6363
  name: yup3.string().nullable().required("Product name is required"),
6382
6364
  price: yup3.number().transform((v, o) => o === "" ? null : v).min(1, "Product price must be greater than 0").required("Product price is required"),
6383
- priceUnit: yup3.string().required("Product unit is required"),
6384
- productGroups: yup3.array().of(yup3.string().defined()).min(1, "Product groups are required").required("Product groups are required")
6365
+ priceUnit: yup3.string().required("Product unit is required")
6385
6366
  });
6386
6367
  var vendorSchema = globalResourceSchema.shape({
6387
6368
  categories: categorySchema.min(1, "Category list must contain at least one item").required("Categories are required"),