@timardex/cluemart-shared 1.3.56 → 1.3.58
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-IXPWY6CU.mjs → chunk-OBQRGWV3.mjs} +2 -1
- package/dist/chunk-OBQRGWV3.mjs.map +1 -0
- package/dist/{chunk-O3WF2I56.mjs → chunk-SS3HGLNT.mjs} +22 -3
- package/dist/chunk-SS3HGLNT.mjs.map +1 -0
- package/dist/enums/index.cjs +1 -0
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +2 -1
- package/dist/enums/index.d.ts +2 -1
- package/dist/enums/index.mjs +1 -1
- package/dist/formFields/index.cjs +19 -0
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.mjs +2 -2
- package/dist/graphql/index.mjs +1 -1
- package/dist/hooks/index.cjs +20 -1
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +3 -3
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +22 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.mjs +21 -1
- package/dist/index.mjs.map +1 -1
- package/dist/utils/index.cjs +20 -0
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +3 -2
- package/dist/utils/index.d.ts +3 -2
- package/dist/utils/index.mjs +4 -2
- package/package.json +1 -1
- package/dist/chunk-IXPWY6CU.mjs.map +0 -1
- package/dist/chunk-O3WF2I56.mjs.map +0 -1
package/dist/hooks/index.cjs
CHANGED
|
@@ -169,6 +169,7 @@ var EnumFoodFlavor = /* @__PURE__ */ ((EnumFoodFlavor3) => {
|
|
|
169
169
|
EnumFoodFlavor3["SAVOURY"] = "Savoury";
|
|
170
170
|
EnumFoodFlavor3["SPICY"] = "Spicy";
|
|
171
171
|
EnumFoodFlavor3["SWEET"] = "Sweet";
|
|
172
|
+
EnumFoodFlavor3["OTHER"] = "Other";
|
|
172
173
|
return EnumFoodFlavor3;
|
|
173
174
|
})(EnumFoodFlavor || {});
|
|
174
175
|
var EnumResourceType = /* @__PURE__ */ ((EnumResourceType2) => {
|
|
@@ -301,6 +302,24 @@ var licenseNiceNames = {
|
|
|
301
302
|
["pro_plus_vendor" /* PRO_PLUS_VENDOR */]: "Pro+ Stallholder",
|
|
302
303
|
["standard_partner" /* STANDARD_PARTNER */]: "Partner"
|
|
303
304
|
};
|
|
305
|
+
var cluemartSocialMedia = [
|
|
306
|
+
{
|
|
307
|
+
link: "https://www.facebook.com/ClueMartApp",
|
|
308
|
+
name: "facebook" /* FACEBOOK */
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
link: "https://www.instagram.com/cluemart_app",
|
|
312
|
+
name: "instagram" /* INSTAGRAM */
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
link: "https://www.tiktok.com/@cluemart",
|
|
316
|
+
name: "tiktok" /* TIKTOK */
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
link: "https://www.youtube.com/@ClueMart-App-NZ",
|
|
320
|
+
name: "youtube" /* YOUTUBE */
|
|
321
|
+
}
|
|
322
|
+
];
|
|
304
323
|
|
|
305
324
|
// src/yupSchema/global.ts
|
|
306
325
|
var nzBankAccountRegex = /^\d{2}-\d{4}-\d{7}-\d{2}$/;
|
|
@@ -550,7 +569,7 @@ var paymentInfoSchema = yup2.object({
|
|
|
550
569
|
otherwise: (schema) => schema.notRequired()
|
|
551
570
|
}),
|
|
552
571
|
link: yup2.string().when("paymentMethod", {
|
|
553
|
-
is: (val) => val
|
|
572
|
+
is: (val) => val === "paypal" /* PAYPAL */ || val === "stripe" /* STRIPE */,
|
|
554
573
|
then: () => normalizedUrlTransform().url("Link must be a valid URL").required("Link is required for PayPal/Stripe"),
|
|
555
574
|
otherwise: (schema) => schema.notRequired()
|
|
556
575
|
})
|