@timardex/cluemart-shared 1.3.28 → 1.3.30

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
@@ -5946,14 +5946,14 @@ var testerVendorSchema = yup6.object().shape({
5946
5946
  productsOrServices: yup6.string().trim().required("Products or services description is required"),
5947
5947
  questionary: yup6.object().shape({
5948
5948
  appearInVideoIntroduction: yup6.boolean().optional(),
5949
- applyToAtLeastOneMarket: yup6.boolean().required("Required field"),
5950
- completeFeedbackQuestionnaire: yup6.boolean().required("Required field"),
5949
+ applyToAtLeastOneMarket: yup6.boolean().oneOf([true], "This field is required"),
5950
+ completeFeedbackQuestionnaire: yup6.boolean().oneOf([true], "This field is required"),
5951
5951
  excitementAboutApp: yup6.string().trim().optional(),
5952
5952
  sendPhotoForSocialMedia: yup6.boolean().optional(),
5953
5953
  socialMediaFeatureReason: yup6.string().trim().optional(),
5954
5954
  testingPeriodConcerns: yup6.string().trim().optional(),
5955
- tryVisitorFeatures: yup6.boolean().required("Required field"),
5956
- uploadStallProfileFirstWeek: yup6.boolean().required("Required field"),
5955
+ tryVisitorFeatures: yup6.boolean().oneOf([true], "This field is required"),
5956
+ uploadStallProfileFirstWeek: yup6.boolean().oneOf([true], "This field is required"),
5957
5957
  usefulnessExpectations: yup6.string().trim().optional()
5958
5958
  }),
5959
5959
  sellingFrequency: yup6.mixed().oneOf(
@@ -5980,15 +5980,15 @@ var testerEventSchema = yup6.object().shape({
5980
5980
  ).required("Organized market count is required"),
5981
5981
  questionary: yup6.object().shape({
5982
5982
  allowMarketingAppearance: yup6.boolean().optional(),
5983
- completeFinalQuestionnaire: yup6.boolean().required("Required field"),
5984
- completeMarketProfileFirstWeek: yup6.boolean().required("Required field"),
5983
+ completeFinalQuestionnaire: yup6.boolean().oneOf([true], "This field is required"),
5984
+ completeMarketProfileFirstWeek: yup6.boolean().oneOf([true], "This field is required"),
5985
5985
  dailyCoordinationNeeds: yup6.string().trim().optional(),
5986
5986
  interestedInCharityInitiative: yup6.boolean().optional(),
5987
- inviteStallholders: yup6.boolean().required("Required field"),
5988
- manageApplicationsAndCommunication: yup6.boolean().required("Required field"),
5987
+ inviteStallholders: yup6.boolean().oneOf([true], "This field is required"),
5988
+ manageApplicationsAndCommunication: yup6.boolean().oneOf([true], "This field is required"),
5989
5989
  organizerExpectations: yup6.string().trim().optional(),
5990
- spaceForClueMart: yup6.boolean().required("Required field"),
5991
- uploadStallList: yup6.boolean().required("Required field")
5990
+ spaceForClueMart: yup6.boolean().oneOf([true], "This field is required"),
5991
+ uploadStallList: yup6.boolean().oneOf([true], "This field is required")
5992
5992
  })
5993
5993
  });
5994
5994
  var testerSchema = yup6.object().shape({
@@ -6308,7 +6308,7 @@ function mapBaseResourceTypeToFormData(data) {
6308
6308
  function useVendorForm(data) {
6309
6309
  const {
6310
6310
  control,
6311
- formState: { errors },
6311
+ formState,
6312
6312
  getValues,
6313
6313
  handleSubmit,
6314
6314
  reset,
@@ -6388,7 +6388,7 @@ function useVendorForm(data) {
6388
6388
  termsAgreement,
6389
6389
  vendorType
6390
6390
  },
6391
- formState: { errors },
6391
+ formState,
6392
6392
  handleSubmit,
6393
6393
  reset,
6394
6394
  setValue,
@@ -6403,7 +6403,7 @@ var import_react_hook_form2 = require("react-hook-form");
6403
6403
  function useVendorInfoForm(data) {
6404
6404
  const {
6405
6405
  control,
6406
- formState: { errors },
6406
+ formState,
6407
6407
  getValues,
6408
6408
  handleSubmit,
6409
6409
  reset,
@@ -6451,7 +6451,7 @@ function useVendorInfoForm(data) {
6451
6451
  stallInfo,
6452
6452
  vendorId
6453
6453
  },
6454
- formState: { errors },
6454
+ formState,
6455
6455
  handleSubmit,
6456
6456
  reset,
6457
6457
  setValue,
@@ -6466,7 +6466,7 @@ var import_react_hook_form3 = require("react-hook-form");
6466
6466
  function useEventForm(data) {
6467
6467
  const {
6468
6468
  control,
6469
- formState: { errors },
6469
+ formState,
6470
6470
  getValues,
6471
6471
  handleSubmit,
6472
6472
  reset,
@@ -6546,7 +6546,7 @@ function useEventForm(data) {
6546
6546
  tags,
6547
6547
  termsAgreement
6548
6548
  },
6549
- formState: { errors },
6549
+ formState,
6550
6550
  handleSubmit,
6551
6551
  reset,
6552
6552
  setValue,
@@ -6561,7 +6561,7 @@ var import_react_hook_form4 = require("react-hook-form");
6561
6561
  function useEventInfoForm(data) {
6562
6562
  const {
6563
6563
  control,
6564
- formState: { errors },
6564
+ formState,
6565
6565
  getValues,
6566
6566
  handleSubmit,
6567
6567
  reset,
@@ -6609,7 +6609,7 @@ function useEventInfoForm(data) {
6609
6609
  paymentInfo,
6610
6610
  requirements
6611
6611
  },
6612
- formState: { errors },
6612
+ formState,
6613
6613
  handleSubmit,
6614
6614
  reset,
6615
6615
  setValue,
@@ -6637,7 +6637,7 @@ var defaultValues = {
6637
6637
  function useUserForm(data) {
6638
6638
  const {
6639
6639
  control,
6640
- formState: { errors },
6640
+ formState,
6641
6641
  getValues,
6642
6642
  handleSubmit,
6643
6643
  reset,
@@ -6697,7 +6697,7 @@ function useUserForm(data) {
6697
6697
  role,
6698
6698
  termsAgreement
6699
6699
  },
6700
- formState: { errors },
6700
+ formState,
6701
6701
  handleSubmit,
6702
6702
  reset,
6703
6703
  setValue,
@@ -6715,7 +6715,7 @@ var defaultValues2 = {
6715
6715
  function useLoginForm() {
6716
6716
  const {
6717
6717
  control,
6718
- formState: { errors },
6718
+ formState,
6719
6719
  getValues,
6720
6720
  handleSubmit,
6721
6721
  reset,
@@ -6732,7 +6732,7 @@ function useLoginForm() {
6732
6732
  email,
6733
6733
  password
6734
6734
  },
6735
- formState: { errors },
6735
+ formState,
6736
6736
  handleSubmit,
6737
6737
  reset,
6738
6738
  setValue,
@@ -6753,7 +6753,7 @@ var defaultValues3 = {
6753
6753
  function useRegisterForm() {
6754
6754
  const {
6755
6755
  control,
6756
- formState: { errors },
6756
+ formState,
6757
6757
  getValues,
6758
6758
  handleSubmit,
6759
6759
  reset,
@@ -6773,7 +6773,7 @@ function useRegisterForm() {
6773
6773
  password,
6774
6774
  preferredRegion
6775
6775
  },
6776
- formState: { errors },
6776
+ formState,
6777
6777
  handleSubmit,
6778
6778
  reset,
6779
6779
  setValue,
@@ -6790,7 +6790,7 @@ var defaultValues4 = {
6790
6790
  function useRequestPasswordResetForm() {
6791
6791
  const {
6792
6792
  control,
6793
- formState: { errors },
6793
+ formState,
6794
6794
  getValues,
6795
6795
  handleSubmit,
6796
6796
  reset,
@@ -6806,7 +6806,7 @@ function useRequestPasswordResetForm() {
6806
6806
  fields: {
6807
6807
  email
6808
6808
  },
6809
- formState: { errors },
6809
+ formState,
6810
6810
  handleSubmit,
6811
6811
  reset,
6812
6812
  setValue,
@@ -6824,7 +6824,7 @@ var defaultValues5 = {
6824
6824
  function useValidateVerificationTokenForm() {
6825
6825
  const {
6826
6826
  control,
6827
- formState: { errors },
6827
+ formState,
6828
6828
  getValues,
6829
6829
  handleSubmit,
6830
6830
  reset,
@@ -6841,7 +6841,7 @@ function useValidateVerificationTokenForm() {
6841
6841
  email,
6842
6842
  verificationToken
6843
6843
  },
6844
- formState: { errors },
6844
+ formState,
6845
6845
  handleSubmit,
6846
6846
  reset,
6847
6847
  setValue,
@@ -6860,7 +6860,7 @@ var defaultValues6 = {
6860
6860
  function useResetPasswordForm() {
6861
6861
  const {
6862
6862
  control,
6863
- formState: { errors },
6863
+ formState,
6864
6864
  getValues,
6865
6865
  handleSubmit,
6866
6866
  reset,
@@ -6878,7 +6878,7 @@ function useResetPasswordForm() {
6878
6878
  email,
6879
6879
  password
6880
6880
  },
6881
- formState: { errors },
6881
+ formState,
6882
6882
  handleSubmit,
6883
6883
  reset,
6884
6884
  setValue,
@@ -6909,7 +6909,7 @@ var defaultValues7 = {
6909
6909
  function useTesterForm(data) {
6910
6910
  const {
6911
6911
  control,
6912
- formState: { errors },
6912
+ formState,
6913
6913
  getValues,
6914
6914
  handleSubmit,
6915
6915
  reset,
@@ -6966,7 +6966,7 @@ function useTesterForm(data) {
6966
6966
  resourceType,
6967
6967
  vendor
6968
6968
  },
6969
- formState: { errors },
6969
+ formState,
6970
6970
  handleSubmit,
6971
6971
  reset,
6972
6972
  setValue,
@@ -6998,7 +6998,7 @@ var defaultValues8 = {
6998
6998
  function useContactUsForm(data) {
6999
6999
  const {
7000
7000
  control,
7001
- formState: { errors },
7001
+ formState,
7002
7002
  getValues,
7003
7003
  handleSubmit,
7004
7004
  reset,
@@ -7029,7 +7029,7 @@ function useContactUsForm(data) {
7029
7029
  lastName,
7030
7030
  message
7031
7031
  },
7032
- formState: { errors },
7032
+ formState,
7033
7033
  handleSubmit,
7034
7034
  reset,
7035
7035
  setValue,
@@ -7068,7 +7068,7 @@ var defaultValues9 = {
7068
7068
  function useAdForm(data) {
7069
7069
  const {
7070
7070
  control,
7071
- formState: { errors },
7071
+ formState,
7072
7072
  getValues,
7073
7073
  handleSubmit,
7074
7074
  reset,
@@ -7142,7 +7142,7 @@ function useAdForm(data) {
7142
7142
  status,
7143
7143
  targetRegion
7144
7144
  },
7145
- formState: { errors },
7145
+ formState,
7146
7146
  handleSubmit,
7147
7147
  reset,
7148
7148
  setValue,
@@ -7157,7 +7157,7 @@ var import_react_hook_form14 = require("react-hook-form");
7157
7157
  function usePartnerForm(data) {
7158
7158
  const {
7159
7159
  control,
7160
- formState: { errors },
7160
+ formState,
7161
7161
  getValues,
7162
7162
  handleSubmit,
7163
7163
  reset,
@@ -7225,7 +7225,7 @@ function usePartnerForm(data) {
7225
7225
  socialMedia: socialMedia2,
7226
7226
  termsAgreement
7227
7227
  },
7228
- formState: { errors },
7228
+ formState,
7229
7229
  handleSubmit,
7230
7230
  reset,
7231
7231
  setValue,
@@ -7247,7 +7247,7 @@ var defaultValues10 = {
7247
7247
  function usePostForm(data) {
7248
7248
  const {
7249
7249
  control,
7250
- formState: { errors },
7250
+ formState,
7251
7251
  getValues,
7252
7252
  handleSubmit,
7253
7253
  reset,
@@ -7280,7 +7280,7 @@ function usePostForm(data) {
7280
7280
  tags,
7281
7281
  title
7282
7282
  },
7283
- formState: { errors },
7283
+ formState,
7284
7284
  handleSubmit,
7285
7285
  reset,
7286
7286
  setValue,