@timardex/cluemart-shared 1.5.514 → 1.5.515
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-3WSV6DBG.mjs → chunk-TWB4WJBF.mjs} +6 -1
- package/dist/{chunk-3WSV6DBG.mjs.map → chunk-TWB4WJBF.mjs.map} +1 -1
- package/dist/graphql/index.cjs +5 -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 -1
- package/dist/hooks/index.cjs +10 -0
- 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 +6 -1
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +12 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +12 -2
- package/dist/index.mjs.map +1 -1
- package/dist/{post-BdZppiSg.d.ts → post-DBw3UtZf.d.ts} +3 -1
- package/dist/{post-DJUVmC92.d.mts → post-gf49BYxL.d.mts} +3 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -944,9 +944,9 @@ function hashStringToNumber(seed) {
|
|
|
944
944
|
}
|
|
945
945
|
return hash >>> 0;
|
|
946
946
|
}
|
|
947
|
-
function seededShuffle(
|
|
947
|
+
function seededShuffle(array7, seed) {
|
|
948
948
|
const rng = createSeededRng(hashStringToNumber(seed));
|
|
949
|
-
const result = [...
|
|
949
|
+
const result = [...array7];
|
|
950
950
|
for (let i = result.length - 1; i > 0; i--) {
|
|
951
951
|
const j = Math.floor(rng() * (i + 1));
|
|
952
952
|
[result[i], result[j]] = [result[j], result[i]];
|
|
@@ -6466,8 +6466,12 @@ var SCHOOL = import_client67.gql`
|
|
|
6466
6466
|
owner {
|
|
6467
6467
|
...OwnerFields
|
|
6468
6468
|
}
|
|
6469
|
+
overallPoints
|
|
6469
6470
|
region
|
|
6470
6471
|
studentCount
|
|
6472
|
+
socialMedia {
|
|
6473
|
+
...SocialMediaFields
|
|
6474
|
+
}
|
|
6471
6475
|
termsAgreement {
|
|
6472
6476
|
...TermsAgreementFields
|
|
6473
6477
|
}
|
|
@@ -6478,6 +6482,7 @@ var SCHOOL = import_client67.gql`
|
|
|
6478
6482
|
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
6479
6483
|
${CONTACT_DETAILS_FIELDS_FRAGMENT}
|
|
6480
6484
|
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
6485
|
+
${SOCIAL_MEDIA_FIELDS_FRAGMENT}
|
|
6481
6486
|
`;
|
|
6482
6487
|
var GET_SCHOOL = import_client67.gql`
|
|
6483
6488
|
query getSchool($_id: ID!) {
|
|
@@ -8351,6 +8356,7 @@ var schoolSchema = yup11.object().shape({
|
|
|
8351
8356
|
location: locationSchema,
|
|
8352
8357
|
name: yup11.string().trim().required("Name is required"),
|
|
8353
8358
|
region: yup11.string().trim().required("Region is required"),
|
|
8359
|
+
socialMedia: yup11.array().of(socialMediaSchema).nullable().default(null),
|
|
8354
8360
|
studentCount: yup11.number().label("Student Count").min(0, "Student count cannot be negative").required("Student count is required").test("no-leading-zeros", "", noLeadingZeros("Student Count"))
|
|
8355
8361
|
});
|
|
8356
8362
|
|
|
@@ -8363,6 +8369,7 @@ var defaultSchoolFormValues = {
|
|
|
8363
8369
|
logoUpload: null,
|
|
8364
8370
|
name: "",
|
|
8365
8371
|
region: "",
|
|
8372
|
+
socialMedia: [],
|
|
8366
8373
|
studentCount: 0,
|
|
8367
8374
|
termsAgreement: null
|
|
8368
8375
|
};
|
|
@@ -8389,6 +8396,7 @@ function useSchoolForm(data) {
|
|
|
8389
8396
|
logoUpload: data.logoUpload,
|
|
8390
8397
|
name: data.name,
|
|
8391
8398
|
region: data.region,
|
|
8399
|
+
socialMedia: data.socialMedia,
|
|
8392
8400
|
studentCount: data.studentCount,
|
|
8393
8401
|
termsAgreement: data.termsAgreement
|
|
8394
8402
|
});
|
|
@@ -8397,6 +8405,7 @@ function useSchoolForm(data) {
|
|
|
8397
8405
|
}
|
|
8398
8406
|
}, [data]);
|
|
8399
8407
|
const {
|
|
8408
|
+
socialMedia: socialMedia2,
|
|
8400
8409
|
active,
|
|
8401
8410
|
contactDetails,
|
|
8402
8411
|
location,
|
|
@@ -8417,6 +8426,7 @@ function useSchoolForm(data) {
|
|
|
8417
8426
|
logoUpload,
|
|
8418
8427
|
name,
|
|
8419
8428
|
region,
|
|
8429
|
+
socialMedia: socialMedia2,
|
|
8420
8430
|
studentCount,
|
|
8421
8431
|
termsAgreement
|
|
8422
8432
|
},
|