@timardex/cluemart-shared 1.2.86 → 1.2.87
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/{ad-BKRuZXRs.d.mts → ad-Cnah2g5Z.d.mts} +1 -0
- package/dist/{ad-AkqtmXpL.d.ts → ad-DOKicc6e.d.ts} +1 -0
- package/dist/{chunk-35N6UAG3.mjs → chunk-74DMNP4I.mjs} +1 -1
- package/dist/chunk-74DMNP4I.mjs.map +1 -0
- package/dist/formFields/index.cjs +3 -3
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.mjs +3 -3
- package/dist/formFields/index.mjs.map +1 -1
- package/dist/graphql/index.cjs +1 -0
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +1 -1
- package/dist/graphql/index.d.ts +1 -1
- package/dist/graphql/index.mjs +1 -0
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +11 -3
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.mjs +12 -4
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +15 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +15 -6
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-35N6UAG3.mjs.map +0 -1
package/dist/hooks/index.cjs
CHANGED
|
@@ -756,13 +756,17 @@ var testerSchema = yup6.object().shape({
|
|
|
756
756
|
(value) => !value || mobileRegex.test(value)
|
|
757
757
|
// skip empty values
|
|
758
758
|
),
|
|
759
|
-
osType: yup6.mixed().oneOf(Object.values(EnumOSPlatform), "Please select Android or iOS
|
|
759
|
+
osType: yup6.mixed().oneOf(Object.values(EnumOSPlatform), "Please select Android or iOS").required("OS Type is required"),
|
|
760
|
+
privacyConsent: yup6.boolean().oneOf([true], "You must accept the privacy policy").required("Privacy consent is required"),
|
|
760
761
|
region: yup6.string().required("Region is required"),
|
|
761
|
-
resourceType: yup6.mixed().oneOf(
|
|
762
|
+
resourceType: yup6.mixed().oneOf(
|
|
763
|
+
Object.values(EnumResourceType),
|
|
764
|
+
"Please select Event or Stallholder"
|
|
765
|
+
).required("Resource Type is required"),
|
|
762
766
|
vendor: yup6.object().when("resourceType", {
|
|
763
767
|
is: (resourceType) => resourceType === "vendor" /* VENDOR */,
|
|
764
768
|
otherwise: (schema) => schema.nullable().optional(),
|
|
765
|
-
then: () => testerVendorSchema.required("
|
|
769
|
+
then: () => testerVendorSchema.required("Stallholder information is required")
|
|
766
770
|
})
|
|
767
771
|
});
|
|
768
772
|
|
|
@@ -1564,6 +1568,7 @@ var defaultValues7 = {
|
|
|
1564
1568
|
lastName: "",
|
|
1565
1569
|
mobilePhone: "",
|
|
1566
1570
|
osType: "",
|
|
1571
|
+
privacyConsent: false,
|
|
1567
1572
|
region: "",
|
|
1568
1573
|
resourceType: "",
|
|
1569
1574
|
vendor: null
|
|
@@ -1591,6 +1596,7 @@ function useTesterForm(data) {
|
|
|
1591
1596
|
lastName: data.lastName,
|
|
1592
1597
|
mobilePhone: data.mobilePhone,
|
|
1593
1598
|
osType: data.osType,
|
|
1599
|
+
privacyConsent: data.privacyConsent,
|
|
1594
1600
|
region: data.region,
|
|
1595
1601
|
resourceType: data.resourceType,
|
|
1596
1602
|
vendor: data.vendor
|
|
@@ -1607,6 +1613,7 @@ function useTesterForm(data) {
|
|
|
1607
1613
|
lastName,
|
|
1608
1614
|
mobilePhone,
|
|
1609
1615
|
osType,
|
|
1616
|
+
privacyConsent,
|
|
1610
1617
|
region,
|
|
1611
1618
|
resourceType,
|
|
1612
1619
|
vendor
|
|
@@ -1621,6 +1628,7 @@ function useTesterForm(data) {
|
|
|
1621
1628
|
lastName,
|
|
1622
1629
|
mobilePhone,
|
|
1623
1630
|
osType,
|
|
1631
|
+
privacyConsent,
|
|
1624
1632
|
region,
|
|
1625
1633
|
resourceType,
|
|
1626
1634
|
vendor
|