@timardex/cluemart-shared 1.4.25 → 1.4.27
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/{chunk-S6G7DNEV.mjs → chunk-XUYZ2LYW.mjs} +6 -10
- package/dist/chunk-XUYZ2LYW.mjs.map +1 -0
- package/dist/formFields/index.cjs +32 -0
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +3 -1
- package/dist/formFields/index.d.ts +3 -1
- package/dist/formFields/index.mjs +31 -1
- package/dist/formFields/index.mjs.map +1 -1
- package/dist/graphql/index.cjs +2 -2
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.mjs +2 -2
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +9 -0
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +10 -1
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +49 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.mjs +45 -10
- package/dist/index.mjs.map +1 -1
- package/dist/utils/index.cjs +6 -9
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +4 -3
- package/dist/utils/index.d.ts +4 -3
- package/dist/utils/index.mjs +5 -3
- package/package.json +1 -1
- package/dist/chunk-S6G7DNEV.mjs.map +0 -1
package/dist/hooks/index.mjs
CHANGED
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
dateFormat,
|
|
14
14
|
normalizeUrl,
|
|
15
15
|
timeFormat
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-XUYZ2LYW.mjs";
|
|
17
17
|
import {
|
|
18
18
|
EnumEventDateStatus,
|
|
19
19
|
EnumEventType,
|
|
@@ -409,6 +409,11 @@ var eventInfoSchema = yup2.object().shape({
|
|
|
409
409
|
}
|
|
410
410
|
),
|
|
411
411
|
paymentInfo: yup2.array().of(paymentInfoSchema).min(1, "At least one payment method is required").required("Payment info is required")
|
|
412
|
+
/* refundPolicy: yup
|
|
413
|
+
.array()
|
|
414
|
+
.of(yup.string().trim().required("Refund policy item cannot be empty"))
|
|
415
|
+
.min(1, "At least one refund policy item is required")
|
|
416
|
+
.required("Refund policy is required"), */
|
|
412
417
|
});
|
|
413
418
|
|
|
414
419
|
// src/yupSchema/vendor.ts
|
|
@@ -806,6 +811,7 @@ var defaultEventInfoFormValues = {
|
|
|
806
811
|
// e.g., 2 hours before event opens
|
|
807
812
|
paymentDueHours: 12,
|
|
808
813
|
paymentInfo: [],
|
|
814
|
+
//refundPolicy: [],
|
|
809
815
|
requirements: []
|
|
810
816
|
};
|
|
811
817
|
var defaultVendorFormValues = {
|
|
@@ -1154,6 +1160,7 @@ function useEventInfoForm(data) {
|
|
|
1154
1160
|
packInTime: data.packInTime,
|
|
1155
1161
|
paymentDueHours: data.paymentDueHours,
|
|
1156
1162
|
paymentInfo: data.paymentInfo,
|
|
1163
|
+
//refundPolicy: data.refundPolicy,
|
|
1157
1164
|
requirements: data.requirements
|
|
1158
1165
|
});
|
|
1159
1166
|
} else {
|
|
@@ -1168,6 +1175,7 @@ function useEventInfoForm(data) {
|
|
|
1168
1175
|
packInTime,
|
|
1169
1176
|
paymentDueHours,
|
|
1170
1177
|
paymentInfo,
|
|
1178
|
+
//refundPolicy,
|
|
1171
1179
|
requirements
|
|
1172
1180
|
} = getValues();
|
|
1173
1181
|
return {
|
|
@@ -1180,6 +1188,7 @@ function useEventInfoForm(data) {
|
|
|
1180
1188
|
packInTime,
|
|
1181
1189
|
paymentDueHours,
|
|
1182
1190
|
paymentInfo,
|
|
1191
|
+
//refundPolicy,
|
|
1183
1192
|
requirements
|
|
1184
1193
|
},
|
|
1185
1194
|
formState,
|