@timardex/cluemart-shared 1.5.745 → 1.5.752
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-kRkO34hw.d.ts → ad-D3RF-B6B.d.ts} +1 -1
- package/dist/{ad-BV_raLOI.d.mts → ad-DQV7gLkZ.d.mts} +1 -1
- package/dist/{chunk-IH3LZFSE.mjs → chunk-DQVXL6TO.mjs} +10 -12
- package/dist/{chunk-IH3LZFSE.mjs.map → chunk-DQVXL6TO.mjs.map} +1 -1
- package/dist/{chunk-UEWZBKPG.mjs → chunk-GSOQZF6M.mjs} +1 -1
- package/dist/chunk-GSOQZF6M.mjs.map +1 -0
- package/dist/{chunk-DKIYGTMV.mjs → chunk-IMQU3E2F.mjs} +2 -2
- package/dist/{chunk-RLM2USKP.mjs → chunk-KZLKBUMF.mjs} +2 -2
- package/dist/{chunk-4RUNDZNT.mjs → chunk-TIXEG66V.mjs} +1 -30
- package/dist/chunk-TIXEG66V.mjs.map +1 -0
- package/dist/{contactUs-B0XOVWx1.d.ts → contactUs-Cx5VP74u.d.ts} +1 -1
- package/dist/{contactUs-BjWBV4Jw.d.mts → contactUs-nkrkwqAR.d.mts} +1 -1
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/formFields/index.mjs +3 -3
- package/dist/{global-CITjm5hr.d.mts → global-BqC8u5sn.d.mts} +2 -11
- package/dist/{global-D8vghLPD.d.ts → global-DugYyRyU.d.ts} +2 -11
- package/dist/graphql/index.cjs +0 -29
- 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 +0 -29
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +3 -3
- package/dist/hooks/index.d.ts +3 -3
- package/dist/hooks/index.mjs +5 -5
- package/dist/index.cjs +8 -39
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +4 -14
- package/dist/index.d.ts +4 -14
- package/dist/index.mjs +8 -39
- package/dist/index.mjs.map +1 -1
- package/dist/{resourceActivities-DEvlfGc6.d.mts → resourceActivities-BA_feTbb.d.mts} +1 -1
- package/dist/{resourceActivities-B3OCB4t8.d.ts → resourceActivities-CEixbvCy.d.ts} +1 -1
- package/dist/sharing/index.cjs +8 -10
- package/dist/sharing/index.cjs.map +1 -1
- package/dist/sharing/index.d.mts +3 -4
- package/dist/sharing/index.d.ts +3 -4
- package/dist/sharing/index.mjs +3 -3
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +5 -5
- package/dist/types/index.d.ts +5 -5
- package/dist/types/index.mjs +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-4RUNDZNT.mjs.map +0 -1
- package/dist/chunk-UEWZBKPG.mjs.map +0 -1
- /package/dist/{chunk-DKIYGTMV.mjs.map → chunk-IMQU3E2F.mjs.map} +0 -0
- /package/dist/{chunk-RLM2USKP.mjs.map → chunk-KZLKBUMF.mjs.map} +0 -0
package/dist/hooks/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { L as LocationType, l as VendorFormData, m as CreateVendorFormData, n as VendorInfoFormData, o as CreateVendorInfoFormData, p as UnregisteredVendorFormData, q as CreateUnregisteredVendorFormData, r as EventFormData, s as CreateEventFormData, t as EventInfoFormData, u as CreateEventInfoFormData, B as BaseResourceTypeFormData, v as PostFormData, w as CreatePostFormData } from '../global-
|
|
2
|
-
import { U as UserFormData, C as CreateUserFormData, i as CreateLoginFormData, j as CreateRegisterFormData, k as CreateRequestPasswordResetFormData, l as CreateValidateVerificationTokenFormData, m as CreateResetPasswordFormData, n as PartnerFormData, o as AdFormData, p as CreateAdFormState, q as CreatePartnerFormData, r as AppSettingsFormData, s as CreateAppSettingsFormData, t as SchoolFormData, u as CreateSchoolFormData } from '../ad-
|
|
3
|
-
import { C as ContactUsFormData, a as CreateContactUsFormData } from '../contactUs-
|
|
1
|
+
import { L as LocationType, l as VendorFormData, m as CreateVendorFormData, n as VendorInfoFormData, o as CreateVendorInfoFormData, p as UnregisteredVendorFormData, q as CreateUnregisteredVendorFormData, r as EventFormData, s as CreateEventFormData, t as EventInfoFormData, u as CreateEventInfoFormData, B as BaseResourceTypeFormData, v as PostFormData, w as CreatePostFormData } from '../global-BqC8u5sn.mjs';
|
|
2
|
+
import { U as UserFormData, C as CreateUserFormData, i as CreateLoginFormData, j as CreateRegisterFormData, k as CreateRequestPasswordResetFormData, l as CreateValidateVerificationTokenFormData, m as CreateResetPasswordFormData, n as PartnerFormData, o as AdFormData, p as CreateAdFormState, q as CreatePartnerFormData, r as AppSettingsFormData, s as CreateAppSettingsFormData, t as SchoolFormData, u as CreateSchoolFormData } from '../ad-DQV7gLkZ.mjs';
|
|
3
|
+
import { C as ContactUsFormData, a as CreateContactUsFormData } from '../contactUs-nkrkwqAR.mjs';
|
|
4
4
|
import 'react-hook-form';
|
|
5
5
|
import '../enums/index.mjs';
|
|
6
6
|
import '../images/index.mjs';
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { L as LocationType, l as VendorFormData, m as CreateVendorFormData, n as VendorInfoFormData, o as CreateVendorInfoFormData, p as UnregisteredVendorFormData, q as CreateUnregisteredVendorFormData, r as EventFormData, s as CreateEventFormData, t as EventInfoFormData, u as CreateEventInfoFormData, B as BaseResourceTypeFormData, v as PostFormData, w as CreatePostFormData } from '../global-
|
|
2
|
-
import { U as UserFormData, C as CreateUserFormData, i as CreateLoginFormData, j as CreateRegisterFormData, k as CreateRequestPasswordResetFormData, l as CreateValidateVerificationTokenFormData, m as CreateResetPasswordFormData, n as PartnerFormData, o as AdFormData, p as CreateAdFormState, q as CreatePartnerFormData, r as AppSettingsFormData, s as CreateAppSettingsFormData, t as SchoolFormData, u as CreateSchoolFormData } from '../ad-
|
|
3
|
-
import { C as ContactUsFormData, a as CreateContactUsFormData } from '../contactUs-
|
|
1
|
+
import { L as LocationType, l as VendorFormData, m as CreateVendorFormData, n as VendorInfoFormData, o as CreateVendorInfoFormData, p as UnregisteredVendorFormData, q as CreateUnregisteredVendorFormData, r as EventFormData, s as CreateEventFormData, t as EventInfoFormData, u as CreateEventInfoFormData, B as BaseResourceTypeFormData, v as PostFormData, w as CreatePostFormData } from '../global-DugYyRyU.js';
|
|
2
|
+
import { U as UserFormData, C as CreateUserFormData, i as CreateLoginFormData, j as CreateRegisterFormData, k as CreateRequestPasswordResetFormData, l as CreateValidateVerificationTokenFormData, m as CreateResetPasswordFormData, n as PartnerFormData, o as AdFormData, p as CreateAdFormState, q as CreatePartnerFormData, r as AppSettingsFormData, s as CreateAppSettingsFormData, t as SchoolFormData, u as CreateSchoolFormData } from '../ad-D3RF-B6B.js';
|
|
3
|
+
import { C as ContactUsFormData, a as CreateContactUsFormData } from '../contactUs-Cx5VP74u.js';
|
|
4
4
|
import 'react-hook-form';
|
|
5
5
|
import '../enums/index.js';
|
|
6
6
|
import '../images/index.js';
|
package/dist/hooks/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "../chunk-
|
|
2
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-IMQU3E2F.mjs";
|
|
2
|
+
import "../chunk-TIXEG66V.mjs";
|
|
3
3
|
import "../chunk-NPFJ2CN2.mjs";
|
|
4
|
-
import "../chunk-
|
|
4
|
+
import "../chunk-DQVXL6TO.mjs";
|
|
5
5
|
import {
|
|
6
6
|
SCHOOL_MIN_STUDENT_COUNT,
|
|
7
7
|
dateFormat,
|
|
8
8
|
normalizeUrl,
|
|
9
9
|
timeFormat
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-KZLKBUMF.mjs";
|
|
11
11
|
import {
|
|
12
12
|
EnumAdShowOn,
|
|
13
13
|
EnumAdStatus,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
EnumAdType,
|
|
16
16
|
EnumPostContentType,
|
|
17
17
|
EnumPostType
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-GSOQZF6M.mjs";
|
|
19
19
|
import {
|
|
20
20
|
EnumEventDateStatus,
|
|
21
21
|
EnumEventType,
|
package/dist/index.cjs
CHANGED
|
@@ -3340,23 +3340,6 @@ var RELATED_POST_FIELDS_FRAGMENT = import_client2.gql`
|
|
|
3340
3340
|
postType
|
|
3341
3341
|
}
|
|
3342
3342
|
`;
|
|
3343
|
-
var SOCIAL_IMAGE_URL_FIELDS_FRAGMENT = import_client2.gql`
|
|
3344
|
-
fragment SocialImageUrlFields on SocialImageUrlType {
|
|
3345
|
-
url
|
|
3346
|
-
qrCode
|
|
3347
|
-
}
|
|
3348
|
-
`;
|
|
3349
|
-
var SOCIAL_IMAGE_FIELDS_FRAGMENT = import_client2.gql`
|
|
3350
|
-
fragment SocialImageFields on SocialImageType {
|
|
3351
|
-
public {
|
|
3352
|
-
...SocialImageUrlFields
|
|
3353
|
-
}
|
|
3354
|
-
relation {
|
|
3355
|
-
...SocialImageUrlFields
|
|
3356
|
-
}
|
|
3357
|
-
}
|
|
3358
|
-
${SOCIAL_IMAGE_URL_FIELDS_FRAGMENT}
|
|
3359
|
-
`;
|
|
3360
3343
|
|
|
3361
3344
|
// src/graphql/queries/event.ts
|
|
3362
3345
|
var EVENT_INFO = import_client3.gql`
|
|
@@ -3454,9 +3437,6 @@ var EVENT = import_client3.gql`
|
|
|
3454
3437
|
socialMedia {
|
|
3455
3438
|
...SocialMediaFields
|
|
3456
3439
|
}
|
|
3457
|
-
socialImage {
|
|
3458
|
-
...SocialImageFields
|
|
3459
|
-
}
|
|
3460
3440
|
tags
|
|
3461
3441
|
termsAgreement {
|
|
3462
3442
|
...TermsAgreementFields
|
|
@@ -3474,7 +3454,6 @@ var EVENT = import_client3.gql`
|
|
|
3474
3454
|
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
3475
3455
|
${RELATION_DATES_FRAGMENT}
|
|
3476
3456
|
${RELATED_POST_FIELDS_FRAGMENT}
|
|
3477
|
-
${SOCIAL_IMAGE_FIELDS_FRAGMENT}
|
|
3478
3457
|
`;
|
|
3479
3458
|
var GET_EVENTS = import_client3.gql`
|
|
3480
3459
|
query getEvents($dateStatus: EventDateStatusEnumType) {
|
|
@@ -3656,9 +3635,6 @@ var VENDOR = import_client4.gql`
|
|
|
3656
3635
|
socialMedia {
|
|
3657
3636
|
...SocialMediaFields
|
|
3658
3637
|
}
|
|
3659
|
-
socialImage {
|
|
3660
|
-
...SocialImageFields
|
|
3661
|
-
}
|
|
3662
3638
|
termsAgreement {
|
|
3663
3639
|
...TermsAgreementFields
|
|
3664
3640
|
}
|
|
@@ -3679,7 +3655,6 @@ var VENDOR = import_client4.gql`
|
|
|
3679
3655
|
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
3680
3656
|
${RELATION_DATES_FRAGMENT}
|
|
3681
3657
|
${RELATED_POST_FIELDS_FRAGMENT}
|
|
3682
|
-
${SOCIAL_IMAGE_FIELDS_FRAGMENT}
|
|
3683
3658
|
`;
|
|
3684
3659
|
var VENDOR_ATTRIBUTES_FRAGMENT = import_client4.gql`
|
|
3685
3660
|
fragment VendorAttributesFields on VendorAttributesType {
|
|
@@ -4418,9 +4393,6 @@ var PARTNER = import_client16.gql`
|
|
|
4418
4393
|
socialMedia {
|
|
4419
4394
|
...SocialMediaFields
|
|
4420
4395
|
}
|
|
4421
|
-
socialImage {
|
|
4422
|
-
...SocialImageFields
|
|
4423
|
-
}
|
|
4424
4396
|
termsAgreement {
|
|
4425
4397
|
...TermsAgreementFields
|
|
4426
4398
|
}
|
|
@@ -4435,7 +4407,6 @@ var PARTNER = import_client16.gql`
|
|
|
4435
4407
|
${SOCIAL_MEDIA_FIELDS_FRAGMENT}
|
|
4436
4408
|
${CONTACT_DETAILS_FIELDS_FRAGMENT}
|
|
4437
4409
|
${RELATED_POST_FIELDS_FRAGMENT}
|
|
4438
|
-
${SOCIAL_IMAGE_FIELDS_FRAGMENT}
|
|
4439
4410
|
`;
|
|
4440
4411
|
var GET_PARTNERS = import_client16.gql`
|
|
4441
4412
|
query getPartners {
|
|
@@ -7294,7 +7265,7 @@ var otherImages = Object.fromEntries(
|
|
|
7294
7265
|
// src/sharing/relationShareTypes.ts
|
|
7295
7266
|
var RELATION_SHARE_INVITATION = "invitation";
|
|
7296
7267
|
var RELATION_SHARE_APPLICATION = "application";
|
|
7297
|
-
var RELATION_OVERLAY_LAYOUT_VERSION =
|
|
7268
|
+
var RELATION_OVERLAY_LAYOUT_VERSION = 35;
|
|
7298
7269
|
var RELATION_SHARE_RESOURCE_TYPES = [
|
|
7299
7270
|
RELATION_SHARE_INVITATION,
|
|
7300
7271
|
RELATION_SHARE_APPLICATION
|
|
@@ -7511,21 +7482,19 @@ var SHARE_TYPE_PATH_REGEX = [
|
|
|
7511
7482
|
RELATION_SHARE_INVITATION
|
|
7512
7483
|
].join("|");
|
|
7513
7484
|
function buildShareUrl(type, id, utmMedium = "app") {
|
|
7514
|
-
return `${SHARE_SITE_URL}
|
|
7485
|
+
return `${SHARE_SITE_URL}/${type}/${encodeURIComponent(id)}?utm_source=share&utm_medium=${utmMedium}&utm_campaign=${type}`;
|
|
7515
7486
|
}
|
|
7516
7487
|
|
|
7517
7488
|
// src/sharing/normalizeShareDescription.ts
|
|
7489
|
+
var LEADING_WHITESPACE = /^[ \t]*/;
|
|
7518
7490
|
function normalizeShareText(value) {
|
|
7519
7491
|
if (value == null) {
|
|
7520
7492
|
return "";
|
|
7521
7493
|
}
|
|
7522
7494
|
return value.trim().split("\n").map((line) => {
|
|
7523
|
-
const
|
|
7524
|
-
|
|
7525
|
-
|
|
7526
|
-
}
|
|
7527
|
-
const [, leading, rest] = match;
|
|
7528
|
-
return leading + rest.trim().replace(/[ \t]{2,}/g, " ");
|
|
7495
|
+
const leading = LEADING_WHITESPACE.exec(line)?.[0] ?? "";
|
|
7496
|
+
const rest = line.slice(leading.length).trim().replace(/[ \t]{2,}/g, " ");
|
|
7497
|
+
return leading + rest;
|
|
7529
7498
|
}).join("\n").replace(/\n{3,}/g, "\n\n");
|
|
7530
7499
|
}
|
|
7531
7500
|
function shareMessageFooterPlacementForType(_shareType) {
|
|
@@ -7555,7 +7524,7 @@ function normalizeShareOgDescription(value) {
|
|
|
7555
7524
|
return joinShareOgDescriptionSections(splitShareDescriptionSections(value));
|
|
7556
7525
|
}
|
|
7557
7526
|
function buildFacebookShareQuote(title, description, shareType) {
|
|
7558
|
-
const sections = buildShareMessageSections({
|
|
7527
|
+
const sections = buildShareMessageSections({ description, shareType, title });
|
|
7559
7528
|
const quote = sections.join(SHARE_DESCRIPTION_SECTION_BREAK).trim();
|
|
7560
7529
|
return quote.length > 0 ? quote : void 0;
|
|
7561
7530
|
}
|
|
@@ -7577,7 +7546,7 @@ function normalizeShareRouteId(id) {
|
|
|
7577
7546
|
}
|
|
7578
7547
|
}
|
|
7579
7548
|
function buildSharePagePath(resourceType, rawId) {
|
|
7580
|
-
return
|
|
7549
|
+
return `/${resourceType}/${encodeURIComponent(normalizeShareRouteId(rawId))}`;
|
|
7581
7550
|
}
|
|
7582
7551
|
|
|
7583
7552
|
// src/storage/index.ts
|