@timardex/cluemart-shared 1.5.575 → 1.5.577
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/{auth-BnhdYD8u.d.ts → auth-71Q_K5cL.d.ts} +1 -1
- package/dist/{auth-BE8W1UaV.d.mts → auth-wxdjNbHv.d.mts} +1 -1
- package/dist/{chunk-H5D67NZJ.mjs → chunk-XK4M3AXN.mjs} +1 -2
- package/dist/chunk-XK4M3AXN.mjs.map +1 -0
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/{global-C2BG0QR0.d.mts → global-C1K1nbMW.d.mts} +1 -2
- package/dist/{global-DYOqTbVA.d.ts → global-C_2jiw0X.d.ts} +1 -2
- package/dist/graphql/index.cjs +0 -1
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +3 -3
- package/dist/graphql/index.d.ts +3 -3
- package/dist/graphql/index.mjs +1 -1
- package/dist/hooks/index.cjs +111 -65
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +12 -4
- package/dist/hooks/index.d.ts +12 -4
- package/dist/hooks/index.mjs +121 -75
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +111 -65
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +9 -2
- package/dist/index.d.ts +9 -2
- package/dist/index.mjs +120 -75
- package/dist/index.mjs.map +1 -1
- package/dist/{post-w-s2UBp4.d.ts → post-Bfv08ew6.d.ts} +1 -1
- package/dist/{post-goCdDpja.d.mts → post-sAvu92I6.d.mts} +1 -1
- package/dist/{resourceActivities-BGmtVruK.d.ts → resourceActivities-BPsBLSh7.d.ts} +1 -1
- package/dist/{resourceActivities-BaGRb3Fh.d.mts → resourceActivities-DPdlpw6m.d.mts} +1 -1
- package/dist/types/index.d.mts +5 -5
- package/dist/types/index.d.ts +5 -5
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunk-H5D67NZJ.mjs.map +0 -1
package/dist/graphql/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as _apollo_client from '@apollo/client';
|
|
2
2
|
import { EnumResourceType } from '../enums/index.mjs';
|
|
3
|
-
import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-
|
|
4
|
-
import { E as EventType, c as EventListItemType, d as EventInfoType, e as RelationType, f as ResourceConnectionsType, U as UnregisteredVendorType, V as VendorType, g as VendorInfoType, h as UserLicenceType } from '../global-
|
|
5
|
-
import { U as UserType, P as PartnerType, R as ResourceByUser, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType, G as GameDocType, e as GameLeaderboard, f as SchoolReturnType, g as SchoolType } from '../post-
|
|
3
|
+
import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-DPdlpw6m.mjs';
|
|
4
|
+
import { E as EventType, c as EventListItemType, d as EventInfoType, e as RelationType, f as ResourceConnectionsType, U as UnregisteredVendorType, V as VendorType, g as VendorInfoType, h as UserLicenceType } from '../global-C1K1nbMW.mjs';
|
|
5
|
+
import { U as UserType, P as PartnerType, R as ResourceByUser, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType, G as GameDocType, e as GameLeaderboard, f as SchoolReturnType, g as SchoolType } from '../post-sAvu92I6.mjs';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
import '../images/index.mjs';
|
|
8
8
|
import '../dailyClue-BnlktK68.mjs';
|
package/dist/graphql/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as _apollo_client from '@apollo/client';
|
|
2
2
|
import { EnumResourceType } from '../enums/index.js';
|
|
3
|
-
import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-
|
|
4
|
-
import { E as EventType, c as EventListItemType, d as EventInfoType, e as RelationType, f as ResourceConnectionsType, U as UnregisteredVendorType, V as VendorType, g as VendorInfoType, h as UserLicenceType } from '../global-
|
|
5
|
-
import { U as UserType, P as PartnerType, R as ResourceByUser, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType, G as GameDocType, e as GameLeaderboard, f as SchoolReturnType, g as SchoolType } from '../post-
|
|
3
|
+
import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-BPsBLSh7.js';
|
|
4
|
+
import { E as EventType, c as EventListItemType, d as EventInfoType, e as RelationType, f as ResourceConnectionsType, U as UnregisteredVendorType, V as VendorType, g as VendorInfoType, h as UserLicenceType } from '../global-C_2jiw0X.js';
|
|
5
|
+
import { U as UserType, P as PartnerType, R as ResourceByUser, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType, G as GameDocType, e as GameLeaderboard, f as SchoolReturnType, g as SchoolType } from '../post-Bfv08ew6.js';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
import '../images/index.js';
|
|
8
8
|
import '../dailyClue-BnlktK68.js';
|
package/dist/graphql/index.mjs
CHANGED
package/dist/hooks/index.cjs
CHANGED
|
@@ -52,6 +52,7 @@ __export(hooks_exports, {
|
|
|
52
52
|
useRequestPasswordResetForm: () => useRequestPasswordResetForm,
|
|
53
53
|
useResetPasswordForm: () => useResetPasswordForm,
|
|
54
54
|
useSchoolForm: () => useSchoolForm,
|
|
55
|
+
useUnregisteredVendorForm: () => useUnregisteredVendorForm,
|
|
55
56
|
useUserForm: () => useUserForm,
|
|
56
57
|
useValidateVerificationTokenForm: () => useValidateVerificationTokenForm,
|
|
57
58
|
useVendorForm: () => useVendorForm,
|
|
@@ -739,7 +740,6 @@ var vendorSchema = globalResourceSchema.shape({
|
|
|
739
740
|
var unregisteredVendorSchema = yup3.object().shape({
|
|
740
741
|
categoryIds: yup3.array().of(yup3.string().defined()).min(1, "Category list must contain at least one item").required("Categories are required"),
|
|
741
742
|
dateTime: yup3.array().of(dateTimeSchema).min(1, "DateTime list must contain at least one item").required("DateTime is required"),
|
|
742
|
-
email: emailOptionalSchema,
|
|
743
743
|
inviterId: yup3.string().required("Inviter ID is required"),
|
|
744
744
|
name: yup3.string().label("Stallholder Name").trim().min(3, "Name must be at least 3 characters").required("Name is required")
|
|
745
745
|
});
|
|
@@ -2871,7 +2871,6 @@ var UNREGISTERED_VENDOR = import_client4.gql`
|
|
|
2871
2871
|
claimed
|
|
2872
2872
|
createdAt
|
|
2873
2873
|
deletedAt
|
|
2874
|
-
email
|
|
2875
2874
|
invitations {
|
|
2876
2875
|
...UnregisteredVendorInvitationFields
|
|
2877
2876
|
}
|
|
@@ -4878,7 +4877,6 @@ var defaultVendorFormValues = {
|
|
|
4878
4877
|
var defaultUnregisteredVendorFormValues = {
|
|
4879
4878
|
categoryIds: [],
|
|
4880
4879
|
dateTime: [],
|
|
4881
|
-
email: "",
|
|
4882
4880
|
inviterId: "",
|
|
4883
4881
|
name: ""
|
|
4884
4882
|
};
|
|
@@ -5078,11 +5076,11 @@ function useVendorInfoForm(data) {
|
|
|
5078
5076
|
};
|
|
5079
5077
|
}
|
|
5080
5078
|
|
|
5081
|
-
// src/hooks/
|
|
5079
|
+
// src/hooks/vendor/useUnregisteredVendorForm.ts
|
|
5082
5080
|
var import_yup3 = require("@hookform/resolvers/yup");
|
|
5083
5081
|
var React3 = __toESM(require("react"));
|
|
5084
5082
|
var import_react_hook_form3 = require("react-hook-form");
|
|
5085
|
-
function
|
|
5083
|
+
function useUnregisteredVendorForm(data) {
|
|
5086
5084
|
const {
|
|
5087
5085
|
control,
|
|
5088
5086
|
formState,
|
|
@@ -5092,10 +5090,57 @@ function useEventForm(data) {
|
|
|
5092
5090
|
setValue,
|
|
5093
5091
|
watch
|
|
5094
5092
|
} = (0, import_react_hook_form3.useForm)({
|
|
5095
|
-
defaultValues:
|
|
5096
|
-
resolver: (0, import_yup3.yupResolver)(
|
|
5093
|
+
defaultValues: defaultUnregisteredVendorFormValues,
|
|
5094
|
+
resolver: (0, import_yup3.yupResolver)(unregisteredVendorSchema)
|
|
5097
5095
|
});
|
|
5098
5096
|
React3.useEffect(() => {
|
|
5097
|
+
if (data) {
|
|
5098
|
+
reset({
|
|
5099
|
+
categoryIds: data.categoryIds,
|
|
5100
|
+
dateTime: data.dateTime,
|
|
5101
|
+
inviterId: data.inviterId,
|
|
5102
|
+
name: data.name
|
|
5103
|
+
});
|
|
5104
|
+
} else {
|
|
5105
|
+
reset(defaultUnregisteredVendorFormValues);
|
|
5106
|
+
}
|
|
5107
|
+
}, [data]);
|
|
5108
|
+
const { categoryIds, dateTime, inviterId, name } = getValues();
|
|
5109
|
+
return {
|
|
5110
|
+
control,
|
|
5111
|
+
fields: {
|
|
5112
|
+
categoryIds,
|
|
5113
|
+
dateTime,
|
|
5114
|
+
inviterId,
|
|
5115
|
+
name
|
|
5116
|
+
},
|
|
5117
|
+
formState,
|
|
5118
|
+
getValues,
|
|
5119
|
+
handleSubmit,
|
|
5120
|
+
reset,
|
|
5121
|
+
setValue,
|
|
5122
|
+
watch
|
|
5123
|
+
};
|
|
5124
|
+
}
|
|
5125
|
+
|
|
5126
|
+
// src/hooks/event/useEventForm.ts
|
|
5127
|
+
var import_yup4 = require("@hookform/resolvers/yup");
|
|
5128
|
+
var React4 = __toESM(require("react"));
|
|
5129
|
+
var import_react_hook_form4 = require("react-hook-form");
|
|
5130
|
+
function useEventForm(data) {
|
|
5131
|
+
const {
|
|
5132
|
+
control,
|
|
5133
|
+
formState,
|
|
5134
|
+
getValues,
|
|
5135
|
+
handleSubmit,
|
|
5136
|
+
reset,
|
|
5137
|
+
setValue,
|
|
5138
|
+
watch
|
|
5139
|
+
} = (0, import_react_hook_form4.useForm)({
|
|
5140
|
+
defaultValues: defaultEventFormValues,
|
|
5141
|
+
resolver: (0, import_yup4.yupResolver)(eventSchema)
|
|
5142
|
+
});
|
|
5143
|
+
React4.useEffect(() => {
|
|
5099
5144
|
if (data) {
|
|
5100
5145
|
reset({
|
|
5101
5146
|
...mapBaseResourceTypeToFormData(data),
|
|
@@ -5181,9 +5226,9 @@ function useEventForm(data) {
|
|
|
5181
5226
|
}
|
|
5182
5227
|
|
|
5183
5228
|
// src/hooks/event/useEventInfoForm.ts
|
|
5184
|
-
var
|
|
5185
|
-
var
|
|
5186
|
-
var
|
|
5229
|
+
var import_yup5 = require("@hookform/resolvers/yup");
|
|
5230
|
+
var React5 = __toESM(require("react"));
|
|
5231
|
+
var import_react_hook_form5 = require("react-hook-form");
|
|
5187
5232
|
function useEventInfoForm(data) {
|
|
5188
5233
|
const {
|
|
5189
5234
|
control,
|
|
@@ -5193,11 +5238,11 @@ function useEventInfoForm(data) {
|
|
|
5193
5238
|
reset,
|
|
5194
5239
|
setValue,
|
|
5195
5240
|
watch
|
|
5196
|
-
} = (0,
|
|
5241
|
+
} = (0, import_react_hook_form5.useForm)({
|
|
5197
5242
|
defaultValues: defaultEventInfoFormValues,
|
|
5198
|
-
resolver: (0,
|
|
5243
|
+
resolver: (0, import_yup5.yupResolver)(eventInfoSchema)
|
|
5199
5244
|
});
|
|
5200
|
-
|
|
5245
|
+
React5.useEffect(() => {
|
|
5201
5246
|
if (data) {
|
|
5202
5247
|
reset({
|
|
5203
5248
|
_id: data._id,
|
|
@@ -5248,9 +5293,9 @@ function useEventInfoForm(data) {
|
|
|
5248
5293
|
}
|
|
5249
5294
|
|
|
5250
5295
|
// src/hooks/useUserForm.ts
|
|
5251
|
-
var
|
|
5252
|
-
var
|
|
5253
|
-
var
|
|
5296
|
+
var import_yup6 = require("@hookform/resolvers/yup");
|
|
5297
|
+
var React6 = __toESM(require("react"));
|
|
5298
|
+
var import_react_hook_form6 = require("react-hook-form");
|
|
5254
5299
|
var defaultValues = {
|
|
5255
5300
|
active: false,
|
|
5256
5301
|
avatar: null,
|
|
@@ -5273,11 +5318,11 @@ function useUserForm(data) {
|
|
|
5273
5318
|
reset,
|
|
5274
5319
|
setValue,
|
|
5275
5320
|
watch
|
|
5276
|
-
} = (0,
|
|
5321
|
+
} = (0, import_react_hook_form6.useForm)({
|
|
5277
5322
|
defaultValues,
|
|
5278
|
-
resolver: (0,
|
|
5323
|
+
resolver: (0, import_yup6.yupResolver)(userSchema)
|
|
5279
5324
|
});
|
|
5280
|
-
|
|
5325
|
+
React6.useEffect(() => {
|
|
5281
5326
|
if (data) {
|
|
5282
5327
|
reset({
|
|
5283
5328
|
_id: data._id,
|
|
@@ -5337,8 +5382,8 @@ function useUserForm(data) {
|
|
|
5337
5382
|
}
|
|
5338
5383
|
|
|
5339
5384
|
// src/hooks/auth/useLoginForm.ts
|
|
5340
|
-
var
|
|
5341
|
-
var
|
|
5385
|
+
var import_yup7 = require("@hookform/resolvers/yup");
|
|
5386
|
+
var import_react_hook_form7 = require("react-hook-form");
|
|
5342
5387
|
var defaultValues2 = {
|
|
5343
5388
|
email: "",
|
|
5344
5389
|
password: ""
|
|
@@ -5352,9 +5397,9 @@ function useLoginForm() {
|
|
|
5352
5397
|
reset,
|
|
5353
5398
|
setValue,
|
|
5354
5399
|
watch
|
|
5355
|
-
} = (0,
|
|
5400
|
+
} = (0, import_react_hook_form7.useForm)({
|
|
5356
5401
|
defaultValues: defaultValues2,
|
|
5357
|
-
resolver: (0,
|
|
5402
|
+
resolver: (0, import_yup7.yupResolver)(loginSchema)
|
|
5358
5403
|
});
|
|
5359
5404
|
const { email, password } = getValues();
|
|
5360
5405
|
return {
|
|
@@ -5373,8 +5418,8 @@ function useLoginForm() {
|
|
|
5373
5418
|
}
|
|
5374
5419
|
|
|
5375
5420
|
// src/hooks/auth/useRegisterForm.ts
|
|
5376
|
-
var
|
|
5377
|
-
var
|
|
5421
|
+
var import_yup8 = require("@hookform/resolvers/yup");
|
|
5422
|
+
var import_react_hook_form8 = require("react-hook-form");
|
|
5378
5423
|
var defaultValues3 = {
|
|
5379
5424
|
email: "",
|
|
5380
5425
|
firstName: "",
|
|
@@ -5393,9 +5438,9 @@ function useRegisterForm() {
|
|
|
5393
5438
|
reset,
|
|
5394
5439
|
setValue,
|
|
5395
5440
|
watch
|
|
5396
|
-
} = (0,
|
|
5441
|
+
} = (0, import_react_hook_form8.useForm)({
|
|
5397
5442
|
defaultValues: defaultValues3,
|
|
5398
|
-
resolver: (0,
|
|
5443
|
+
resolver: (0, import_yup8.yupResolver)(registerSchema)
|
|
5399
5444
|
});
|
|
5400
5445
|
const {
|
|
5401
5446
|
email,
|
|
@@ -5427,8 +5472,8 @@ function useRegisterForm() {
|
|
|
5427
5472
|
}
|
|
5428
5473
|
|
|
5429
5474
|
// src/hooks/auth/useRequestPasswordResetForm.ts
|
|
5430
|
-
var
|
|
5431
|
-
var
|
|
5475
|
+
var import_yup9 = require("@hookform/resolvers/yup");
|
|
5476
|
+
var import_react_hook_form9 = require("react-hook-form");
|
|
5432
5477
|
var defaultValues4 = {
|
|
5433
5478
|
email: ""
|
|
5434
5479
|
};
|
|
@@ -5441,9 +5486,9 @@ function useRequestPasswordResetForm() {
|
|
|
5441
5486
|
reset,
|
|
5442
5487
|
setValue,
|
|
5443
5488
|
watch
|
|
5444
|
-
} = (0,
|
|
5489
|
+
} = (0, import_react_hook_form9.useForm)({
|
|
5445
5490
|
defaultValues: defaultValues4,
|
|
5446
|
-
resolver: (0,
|
|
5491
|
+
resolver: (0, import_yup9.yupResolver)(requestPasswordResetSchema)
|
|
5447
5492
|
});
|
|
5448
5493
|
const { email } = getValues();
|
|
5449
5494
|
return {
|
|
@@ -5461,8 +5506,8 @@ function useRequestPasswordResetForm() {
|
|
|
5461
5506
|
}
|
|
5462
5507
|
|
|
5463
5508
|
// src/hooks/auth/useValidateVerificationTokenForm.ts
|
|
5464
|
-
var
|
|
5465
|
-
var
|
|
5509
|
+
var import_yup10 = require("@hookform/resolvers/yup");
|
|
5510
|
+
var import_react_hook_form10 = require("react-hook-form");
|
|
5466
5511
|
var defaultValues5 = {
|
|
5467
5512
|
email: "",
|
|
5468
5513
|
verificationToken: ""
|
|
@@ -5476,9 +5521,9 @@ function useValidateVerificationTokenForm() {
|
|
|
5476
5521
|
reset,
|
|
5477
5522
|
setValue,
|
|
5478
5523
|
watch
|
|
5479
|
-
} = (0,
|
|
5524
|
+
} = (0, import_react_hook_form10.useForm)({
|
|
5480
5525
|
defaultValues: defaultValues5,
|
|
5481
|
-
resolver: (0,
|
|
5526
|
+
resolver: (0, import_yup10.yupResolver)(validateVerificationTokenSchema)
|
|
5482
5527
|
});
|
|
5483
5528
|
const { email, verificationToken } = getValues();
|
|
5484
5529
|
return {
|
|
@@ -5497,8 +5542,8 @@ function useValidateVerificationTokenForm() {
|
|
|
5497
5542
|
}
|
|
5498
5543
|
|
|
5499
5544
|
// src/hooks/auth/useResetPasswordForm.ts
|
|
5500
|
-
var
|
|
5501
|
-
var
|
|
5545
|
+
var import_yup11 = require("@hookform/resolvers/yup");
|
|
5546
|
+
var import_react_hook_form11 = require("react-hook-form");
|
|
5502
5547
|
var defaultValues6 = {
|
|
5503
5548
|
confirmPassword: "",
|
|
5504
5549
|
email: "",
|
|
@@ -5513,9 +5558,9 @@ function useResetPasswordForm() {
|
|
|
5513
5558
|
reset,
|
|
5514
5559
|
setValue,
|
|
5515
5560
|
watch
|
|
5516
|
-
} = (0,
|
|
5561
|
+
} = (0, import_react_hook_form11.useForm)({
|
|
5517
5562
|
defaultValues: defaultValues6,
|
|
5518
|
-
resolver: (0,
|
|
5563
|
+
resolver: (0, import_yup11.yupResolver)(resetPasswordSchema)
|
|
5519
5564
|
});
|
|
5520
5565
|
const { confirmPassword, email, password } = getValues();
|
|
5521
5566
|
return {
|
|
@@ -5535,9 +5580,9 @@ function useResetPasswordForm() {
|
|
|
5535
5580
|
}
|
|
5536
5581
|
|
|
5537
5582
|
// src/hooks/useContactUsForm.ts
|
|
5538
|
-
var
|
|
5583
|
+
var import_yup12 = require("@hookform/resolvers/yup");
|
|
5539
5584
|
var import_react = __toESM(require("react"));
|
|
5540
|
-
var
|
|
5585
|
+
var import_react_hook_form12 = require("react-hook-form");
|
|
5541
5586
|
|
|
5542
5587
|
// src/yupSchema/contactUs.ts
|
|
5543
5588
|
var yup10 = __toESM(require("yup"));
|
|
@@ -5564,9 +5609,9 @@ function useContactUsForm(data) {
|
|
|
5564
5609
|
reset,
|
|
5565
5610
|
setValue,
|
|
5566
5611
|
watch
|
|
5567
|
-
} = (0,
|
|
5612
|
+
} = (0, import_react_hook_form12.useForm)({
|
|
5568
5613
|
defaultValues: defaultValues7,
|
|
5569
|
-
resolver: (0,
|
|
5614
|
+
resolver: (0, import_yup12.yupResolver)(contactUsSchema)
|
|
5570
5615
|
});
|
|
5571
5616
|
import_react.default.useEffect(() => {
|
|
5572
5617
|
if (data) {
|
|
@@ -5599,9 +5644,9 @@ function useContactUsForm(data) {
|
|
|
5599
5644
|
}
|
|
5600
5645
|
|
|
5601
5646
|
// src/hooks/useAdForm.ts
|
|
5602
|
-
var
|
|
5647
|
+
var import_yup13 = require("@hookform/resolvers/yup");
|
|
5603
5648
|
var import_react2 = __toESM(require("react"));
|
|
5604
|
-
var
|
|
5649
|
+
var import_react_hook_form13 = require("react-hook-form");
|
|
5605
5650
|
var defaultValues8 = {
|
|
5606
5651
|
active: true,
|
|
5607
5652
|
end: /* @__PURE__ */ new Date(),
|
|
@@ -5635,9 +5680,9 @@ function useAdForm(data) {
|
|
|
5635
5680
|
reset,
|
|
5636
5681
|
setValue,
|
|
5637
5682
|
watch
|
|
5638
|
-
} = (0,
|
|
5683
|
+
} = (0, import_react_hook_form13.useForm)({
|
|
5639
5684
|
defaultValues: defaultValues8,
|
|
5640
|
-
resolver: (0,
|
|
5685
|
+
resolver: (0, import_yup13.yupResolver)(adSchema)
|
|
5641
5686
|
});
|
|
5642
5687
|
import_react2.default.useEffect(() => {
|
|
5643
5688
|
if (data) {
|
|
@@ -5676,9 +5721,9 @@ function useAdForm(data) {
|
|
|
5676
5721
|
}
|
|
5677
5722
|
|
|
5678
5723
|
// src/hooks/partner/usePartnerForm.ts
|
|
5679
|
-
var
|
|
5680
|
-
var
|
|
5681
|
-
var
|
|
5724
|
+
var import_yup14 = require("@hookform/resolvers/yup");
|
|
5725
|
+
var React9 = __toESM(require("react"));
|
|
5726
|
+
var import_react_hook_form14 = require("react-hook-form");
|
|
5682
5727
|
function usePartnerForm(data) {
|
|
5683
5728
|
const {
|
|
5684
5729
|
control,
|
|
@@ -5688,11 +5733,11 @@ function usePartnerForm(data) {
|
|
|
5688
5733
|
reset,
|
|
5689
5734
|
setValue,
|
|
5690
5735
|
watch
|
|
5691
|
-
} = (0,
|
|
5736
|
+
} = (0, import_react_hook_form14.useForm)({
|
|
5692
5737
|
defaultValues: defaultPartnerFormValues,
|
|
5693
|
-
resolver: (0,
|
|
5738
|
+
resolver: (0, import_yup14.yupResolver)(partnerSchema)
|
|
5694
5739
|
});
|
|
5695
|
-
|
|
5740
|
+
React9.useEffect(() => {
|
|
5696
5741
|
if (data) {
|
|
5697
5742
|
reset({
|
|
5698
5743
|
...mapBaseResourceTypeToFormData(data),
|
|
@@ -5760,9 +5805,9 @@ function usePartnerForm(data) {
|
|
|
5760
5805
|
}
|
|
5761
5806
|
|
|
5762
5807
|
// src/hooks/usePostForm.ts
|
|
5763
|
-
var
|
|
5808
|
+
var import_yup15 = require("@hookform/resolvers/yup");
|
|
5764
5809
|
var import_react3 = __toESM(require("react"));
|
|
5765
|
-
var
|
|
5810
|
+
var import_react_hook_form15 = require("react-hook-form");
|
|
5766
5811
|
var defaultValues9 = {
|
|
5767
5812
|
active: true,
|
|
5768
5813
|
caption: "",
|
|
@@ -5783,9 +5828,9 @@ function usePostForm(data) {
|
|
|
5783
5828
|
reset,
|
|
5784
5829
|
setValue,
|
|
5785
5830
|
watch
|
|
5786
|
-
} = (0,
|
|
5831
|
+
} = (0, import_react_hook_form15.useForm)({
|
|
5787
5832
|
defaultValues: defaultValues9,
|
|
5788
|
-
resolver: (0,
|
|
5833
|
+
resolver: (0, import_yup15.yupResolver)(postSchema)
|
|
5789
5834
|
});
|
|
5790
5835
|
import_react3.default.useEffect(() => {
|
|
5791
5836
|
if (data) {
|
|
@@ -5838,9 +5883,9 @@ function usePostForm(data) {
|
|
|
5838
5883
|
}
|
|
5839
5884
|
|
|
5840
5885
|
// src/hooks/useAppSettingsForm.ts
|
|
5841
|
-
var
|
|
5886
|
+
var import_yup16 = require("@hookform/resolvers/yup");
|
|
5842
5887
|
var import_react4 = __toESM(require("react"));
|
|
5843
|
-
var
|
|
5888
|
+
var import_react_hook_form16 = require("react-hook-form");
|
|
5844
5889
|
var defaultValues10 = {
|
|
5845
5890
|
appVersion: "",
|
|
5846
5891
|
isOfflineMode: false
|
|
@@ -5854,9 +5899,9 @@ function useAppSettingsForm(data) {
|
|
|
5854
5899
|
reset,
|
|
5855
5900
|
setValue,
|
|
5856
5901
|
watch
|
|
5857
|
-
} = (0,
|
|
5902
|
+
} = (0, import_react_hook_form16.useForm)({
|
|
5858
5903
|
defaultValues: defaultValues10,
|
|
5859
|
-
resolver: (0,
|
|
5904
|
+
resolver: (0, import_yup16.yupResolver)(appSettingsSchema)
|
|
5860
5905
|
});
|
|
5861
5906
|
import_react4.default.useEffect(() => {
|
|
5862
5907
|
if (data) {
|
|
@@ -5885,9 +5930,9 @@ function useAppSettingsForm(data) {
|
|
|
5885
5930
|
}
|
|
5886
5931
|
|
|
5887
5932
|
// src/hooks/useSchoolForm.ts
|
|
5888
|
-
var
|
|
5933
|
+
var import_yup17 = require("@hookform/resolvers/yup");
|
|
5889
5934
|
var import_react5 = require("react");
|
|
5890
|
-
var
|
|
5935
|
+
var import_react_hook_form17 = require("react-hook-form");
|
|
5891
5936
|
|
|
5892
5937
|
// src/yupSchema/school.ts
|
|
5893
5938
|
var yup11 = __toESM(require("yup"));
|
|
@@ -5927,9 +5972,9 @@ function useSchoolForm(data) {
|
|
|
5927
5972
|
reset,
|
|
5928
5973
|
setValue,
|
|
5929
5974
|
watch
|
|
5930
|
-
} = (0,
|
|
5975
|
+
} = (0, import_react_hook_form17.useForm)({
|
|
5931
5976
|
defaultValues: defaultSchoolFormValues,
|
|
5932
|
-
resolver: (0,
|
|
5977
|
+
resolver: (0, import_yup17.yupResolver)(schoolSchema)
|
|
5933
5978
|
});
|
|
5934
5979
|
(0, import_react5.useEffect)(() => {
|
|
5935
5980
|
if (data) {
|
|
@@ -6010,6 +6055,7 @@ function useSchoolForm(data) {
|
|
|
6010
6055
|
useRequestPasswordResetForm,
|
|
6011
6056
|
useResetPasswordForm,
|
|
6012
6057
|
useSchoolForm,
|
|
6058
|
+
useUnregisteredVendorForm,
|
|
6013
6059
|
useUserForm,
|
|
6014
6060
|
useValidateVerificationTokenForm,
|
|
6015
6061
|
useVendorForm,
|