@timardex/cluemart-shared 1.5.514 → 1.5.516
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-6FBQIZD5.mjs} +7 -1
- package/dist/{chunk-3WSV6DBG.mjs.map → chunk-6FBQIZD5.mjs.map} +1 -1
- package/dist/graphql/index.cjs +6 -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 +11 -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 +13 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.mjs +13 -2
- package/dist/index.mjs.map +1 -1
- package/dist/{post-BdZppiSg.d.ts → post-Boa6CuuS.d.ts} +4 -1
- package/dist/{post-DJUVmC92.d.mts → post-CVcBv8XI.d.mts} +4 -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,13 @@ var SCHOOL = import_client67.gql`
|
|
|
6466
6466
|
owner {
|
|
6467
6467
|
...OwnerFields
|
|
6468
6468
|
}
|
|
6469
|
+
overallPoints
|
|
6469
6470
|
region
|
|
6470
6471
|
studentCount
|
|
6472
|
+
schoolCode
|
|
6473
|
+
socialMedia {
|
|
6474
|
+
...SocialMediaFields
|
|
6475
|
+
}
|
|
6471
6476
|
termsAgreement {
|
|
6472
6477
|
...TermsAgreementFields
|
|
6473
6478
|
}
|
|
@@ -6478,6 +6483,7 @@ var SCHOOL = import_client67.gql`
|
|
|
6478
6483
|
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
6479
6484
|
${CONTACT_DETAILS_FIELDS_FRAGMENT}
|
|
6480
6485
|
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
6486
|
+
${SOCIAL_MEDIA_FIELDS_FRAGMENT}
|
|
6481
6487
|
`;
|
|
6482
6488
|
var GET_SCHOOL = import_client67.gql`
|
|
6483
6489
|
query getSchool($_id: ID!) {
|
|
@@ -8351,6 +8357,7 @@ var schoolSchema = yup11.object().shape({
|
|
|
8351
8357
|
location: locationSchema,
|
|
8352
8358
|
name: yup11.string().trim().required("Name is required"),
|
|
8353
8359
|
region: yup11.string().trim().required("Region is required"),
|
|
8360
|
+
socialMedia: yup11.array().of(socialMediaSchema).nullable().default(null),
|
|
8354
8361
|
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
8362
|
});
|
|
8356
8363
|
|
|
@@ -8363,6 +8370,7 @@ var defaultSchoolFormValues = {
|
|
|
8363
8370
|
logoUpload: null,
|
|
8364
8371
|
name: "",
|
|
8365
8372
|
region: "",
|
|
8373
|
+
socialMedia: [],
|
|
8366
8374
|
studentCount: 0,
|
|
8367
8375
|
termsAgreement: null
|
|
8368
8376
|
};
|
|
@@ -8389,6 +8397,7 @@ function useSchoolForm(data) {
|
|
|
8389
8397
|
logoUpload: data.logoUpload,
|
|
8390
8398
|
name: data.name,
|
|
8391
8399
|
region: data.region,
|
|
8400
|
+
socialMedia: data.socialMedia,
|
|
8392
8401
|
studentCount: data.studentCount,
|
|
8393
8402
|
termsAgreement: data.termsAgreement
|
|
8394
8403
|
});
|
|
@@ -8397,6 +8406,7 @@ function useSchoolForm(data) {
|
|
|
8397
8406
|
}
|
|
8398
8407
|
}, [data]);
|
|
8399
8408
|
const {
|
|
8409
|
+
socialMedia: socialMedia2,
|
|
8400
8410
|
active,
|
|
8401
8411
|
contactDetails,
|
|
8402
8412
|
location,
|
|
@@ -8417,6 +8427,7 @@ function useSchoolForm(data) {
|
|
|
8417
8427
|
logoUpload,
|
|
8418
8428
|
name,
|
|
8419
8429
|
region,
|
|
8430
|
+
socialMedia: socialMedia2,
|
|
8420
8431
|
studentCount,
|
|
8421
8432
|
termsAgreement
|
|
8422
8433
|
},
|