@timardex/cluemart-shared 1.5.759 → 1.5.761
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-BG0lQxCY.d.ts → ad-CQxEEdeo.d.ts} +2 -1
- package/dist/{ad-C9XeExJG.d.mts → ad-DV937Sg8.d.mts} +2 -1
- package/dist/{chunk-SR7UIBOW.mjs → chunk-4LVHHYB3.mjs} +4 -1
- package/dist/chunk-4LVHHYB3.mjs.map +1 -0
- package/dist/{chunk-B2D5OLQT.mjs → chunk-DB7KMGVK.mjs} +2 -2
- package/dist/{chunk-J4ENZPQE.mjs → chunk-SNNW6U7C.mjs} +1 -1
- package/dist/chunk-SNNW6U7C.mjs.map +1 -0
- package/dist/{chunk-5RXTRSY2.mjs → chunk-W6LPCRZW.mjs} +2 -2
- package/dist/{chunk-65G65T22.mjs → chunk-YJYBYCHX.mjs} +7 -7
- package/dist/{chunk-65G65T22.mjs.map → chunk-YJYBYCHX.mjs.map} +1 -1
- package/dist/{contactUs-Bgn0Ixmz.d.mts → contactUs-B_3oZcDN.d.mts} +1 -1
- package/dist/{contactUs-DA-wkW8U.d.ts → contactUs-DRPCxars.d.ts} +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-D7RVPZoz.d.ts → global-CYfPZjeH.d.ts} +2 -0
- package/dist/{global-Bqkcya3A.d.mts → global-P9qHgK58.d.mts} +2 -0
- package/dist/graphql/index.cjs +3 -0
- 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 +7 -1
- 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 +9 -6
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +8 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +7 -3
- package/dist/index.d.ts +7 -3
- package/dist/index.mjs +8 -5
- package/dist/index.mjs.map +1 -1
- package/dist/map/index.d.mts +1 -1
- package/dist/map/index.d.ts +1 -1
- package/dist/{resourceActivities-DdlPNlJF.d.ts → resourceActivities-CV-ruNFQ.d.ts} +1 -1
- package/dist/{resourceActivities-DPD0AnWh.d.mts → resourceActivities-DjE6hC9y.d.mts} +1 -1
- package/dist/sharing/index.cjs +5 -5
- package/dist/sharing/index.cjs.map +1 -1
- package/dist/sharing/index.d.mts +5 -4
- package/dist/sharing/index.d.ts +5 -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-J4ENZPQE.mjs.map +0 -1
- package/dist/chunk-SR7UIBOW.mjs.map +0 -1
- /package/dist/{chunk-B2D5OLQT.mjs.map → chunk-DB7KMGVK.mjs.map} +0 -0
- /package/dist/{chunk-5RXTRSY2.mjs.map → chunk-W6LPCRZW.mjs.map} +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -581,6 +581,7 @@ interface PostFormData {
|
|
|
581
581
|
resourceId: string;
|
|
582
582
|
resourceType: EnumResourceType;
|
|
583
583
|
resourceRegion: string;
|
|
584
|
+
resourceSlug: string;
|
|
584
585
|
} | null;
|
|
585
586
|
tags?: string[] | null;
|
|
586
587
|
title: string;
|
|
@@ -786,6 +787,7 @@ type PosterUsageType = {
|
|
|
786
787
|
};
|
|
787
788
|
type RelatedPostType = {
|
|
788
789
|
postId: string;
|
|
790
|
+
postSlug: string;
|
|
789
791
|
postType: EnumPostType;
|
|
790
792
|
};
|
|
791
793
|
type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "imagesUpload" | "logoUpload"> & {
|
|
@@ -1286,6 +1288,7 @@ type AdResource = {
|
|
|
1286
1288
|
resourceName: string;
|
|
1287
1289
|
resourceRegion: string;
|
|
1288
1290
|
resourceType: EnumResourceType;
|
|
1291
|
+
resourceSlug: string;
|
|
1289
1292
|
};
|
|
1290
1293
|
interface AdFormData {
|
|
1291
1294
|
active: boolean;
|
|
@@ -2712,7 +2715,7 @@ declare const RELATION_SHARE_APPLICATION: "application";
|
|
|
2712
2715
|
* invalidate after deploy. Facebook caches preview JPEGs by exact URL — changing
|
|
2713
2716
|
* this value forces crawlers to fetch a fresh image after server deploy.
|
|
2714
2717
|
*/
|
|
2715
|
-
declare const RELATION_OVERLAY_LAYOUT_VERSION =
|
|
2718
|
+
declare const RELATION_OVERLAY_LAYOUT_VERSION = 36;
|
|
2716
2719
|
declare const RELATION_SHARE_RESOURCE_TYPES: readonly ["invitation", "application"];
|
|
2717
2720
|
type RelationShareResourceType = (typeof RELATION_SHARE_RESOURCE_TYPES)[number];
|
|
2718
2721
|
declare function isRelationShareResourceType(resourceType: string): resourceType is RelationShareResourceType;
|
|
@@ -2724,7 +2727,7 @@ type RelationSharePathType = typeof RELATION_SHARE_INVITATION | typeof RELATION_
|
|
|
2724
2727
|
type ShareType = PublicSharePathType | RelationSharePathType;
|
|
2725
2728
|
/** Alternation for deep-link regexes — keep in sync with {@link ShareType}. */
|
|
2726
2729
|
declare const SHARE_TYPE_PATH_REGEX: string;
|
|
2727
|
-
declare function buildShareUrl(type: ShareType,
|
|
2730
|
+
declare function buildShareUrl(type: ShareType, slug: string, utmMedium?: string): string;
|
|
2728
2731
|
|
|
2729
2732
|
/** Open Graph recommended preview size (must match admin `SHARE_OG_IMAGE_*`). */
|
|
2730
2733
|
declare const SOCIAL_IMAGE_WIDTH = 1200;
|
|
@@ -2822,7 +2825,8 @@ declare function buildShareOgDescriptionFromSections(sections: ReadonlyArray<str
|
|
|
2822
2825
|
declare function buildShareOgDescription(_title: string, description: string): string;
|
|
2823
2826
|
|
|
2824
2827
|
declare function normalizeShareRouteId(id: string): string;
|
|
2825
|
-
|
|
2828
|
+
/** Relative path for a public share landing page (`/market/demo-market`). */
|
|
2829
|
+
declare function buildSharePagePath(resourceType: ShareResourceType, slug: string): string;
|
|
2826
2830
|
|
|
2827
2831
|
declare const SAVED_PASSWORD_KEY = "savedPassword";
|
|
2828
2832
|
declare const SAVED_EMAIL_KEY = "savedEmail";
|
package/dist/index.d.ts
CHANGED
|
@@ -581,6 +581,7 @@ interface PostFormData {
|
|
|
581
581
|
resourceId: string;
|
|
582
582
|
resourceType: EnumResourceType;
|
|
583
583
|
resourceRegion: string;
|
|
584
|
+
resourceSlug: string;
|
|
584
585
|
} | null;
|
|
585
586
|
tags?: string[] | null;
|
|
586
587
|
title: string;
|
|
@@ -786,6 +787,7 @@ type PosterUsageType = {
|
|
|
786
787
|
};
|
|
787
788
|
type RelatedPostType = {
|
|
788
789
|
postId: string;
|
|
790
|
+
postSlug: string;
|
|
789
791
|
postType: EnumPostType;
|
|
790
792
|
};
|
|
791
793
|
type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "imagesUpload" | "logoUpload"> & {
|
|
@@ -1286,6 +1288,7 @@ type AdResource = {
|
|
|
1286
1288
|
resourceName: string;
|
|
1287
1289
|
resourceRegion: string;
|
|
1288
1290
|
resourceType: EnumResourceType;
|
|
1291
|
+
resourceSlug: string;
|
|
1289
1292
|
};
|
|
1290
1293
|
interface AdFormData {
|
|
1291
1294
|
active: boolean;
|
|
@@ -2712,7 +2715,7 @@ declare const RELATION_SHARE_APPLICATION: "application";
|
|
|
2712
2715
|
* invalidate after deploy. Facebook caches preview JPEGs by exact URL — changing
|
|
2713
2716
|
* this value forces crawlers to fetch a fresh image after server deploy.
|
|
2714
2717
|
*/
|
|
2715
|
-
declare const RELATION_OVERLAY_LAYOUT_VERSION =
|
|
2718
|
+
declare const RELATION_OVERLAY_LAYOUT_VERSION = 36;
|
|
2716
2719
|
declare const RELATION_SHARE_RESOURCE_TYPES: readonly ["invitation", "application"];
|
|
2717
2720
|
type RelationShareResourceType = (typeof RELATION_SHARE_RESOURCE_TYPES)[number];
|
|
2718
2721
|
declare function isRelationShareResourceType(resourceType: string): resourceType is RelationShareResourceType;
|
|
@@ -2724,7 +2727,7 @@ type RelationSharePathType = typeof RELATION_SHARE_INVITATION | typeof RELATION_
|
|
|
2724
2727
|
type ShareType = PublicSharePathType | RelationSharePathType;
|
|
2725
2728
|
/** Alternation for deep-link regexes — keep in sync with {@link ShareType}. */
|
|
2726
2729
|
declare const SHARE_TYPE_PATH_REGEX: string;
|
|
2727
|
-
declare function buildShareUrl(type: ShareType,
|
|
2730
|
+
declare function buildShareUrl(type: ShareType, slug: string, utmMedium?: string): string;
|
|
2728
2731
|
|
|
2729
2732
|
/** Open Graph recommended preview size (must match admin `SHARE_OG_IMAGE_*`). */
|
|
2730
2733
|
declare const SOCIAL_IMAGE_WIDTH = 1200;
|
|
@@ -2822,7 +2825,8 @@ declare function buildShareOgDescriptionFromSections(sections: ReadonlyArray<str
|
|
|
2822
2825
|
declare function buildShareOgDescription(_title: string, description: string): string;
|
|
2823
2826
|
|
|
2824
2827
|
declare function normalizeShareRouteId(id: string): string;
|
|
2825
|
-
|
|
2828
|
+
/** Relative path for a public share landing page (`/market/demo-market`). */
|
|
2829
|
+
declare function buildSharePagePath(resourceType: ShareResourceType, slug: string): string;
|
|
2826
2830
|
|
|
2827
2831
|
declare const SAVED_PASSWORD_KEY = "savedPassword";
|
|
2828
2832
|
declare const SAVED_EMAIL_KEY = "savedEmail";
|
package/dist/index.mjs
CHANGED
|
@@ -3160,6 +3160,7 @@ var EVENT_LIST_ITEM = gql`
|
|
|
3160
3160
|
var RELATED_POST_FIELDS_FRAGMENT = gql`
|
|
3161
3161
|
fragment RelatedPostFields on RelatedPostType {
|
|
3162
3162
|
postId
|
|
3163
|
+
postSlug
|
|
3163
3164
|
postType
|
|
3164
3165
|
}
|
|
3165
3166
|
`;
|
|
@@ -3879,6 +3880,7 @@ var POST_FIELDS_FRAGMENT = gql7`
|
|
|
3879
3880
|
postType
|
|
3880
3881
|
resource {
|
|
3881
3882
|
resourceId
|
|
3883
|
+
resourceSlug
|
|
3882
3884
|
resourceRegion
|
|
3883
3885
|
resourceType
|
|
3884
3886
|
}
|
|
@@ -6781,6 +6783,7 @@ var AD_FIELDS_FRAGMENT = gql25`
|
|
|
6781
6783
|
adTitle
|
|
6782
6784
|
adType
|
|
6783
6785
|
resourceId
|
|
6786
|
+
resourceSlug
|
|
6784
6787
|
resourceName
|
|
6785
6788
|
resourceRegion
|
|
6786
6789
|
resourceType
|
|
@@ -7965,7 +7968,7 @@ var otherImages = Object.fromEntries(
|
|
|
7965
7968
|
// src/sharing/relationShareTypes.ts
|
|
7966
7969
|
var RELATION_SHARE_INVITATION = "invitation";
|
|
7967
7970
|
var RELATION_SHARE_APPLICATION = "application";
|
|
7968
|
-
var RELATION_OVERLAY_LAYOUT_VERSION =
|
|
7971
|
+
var RELATION_OVERLAY_LAYOUT_VERSION = 36;
|
|
7969
7972
|
var RELATION_SHARE_RESOURCE_TYPES = [
|
|
7970
7973
|
RELATION_SHARE_INVITATION,
|
|
7971
7974
|
RELATION_SHARE_APPLICATION
|
|
@@ -8181,8 +8184,8 @@ var SHARE_TYPE_PATH_REGEX = [
|
|
|
8181
8184
|
RELATION_SHARE_APPLICATION,
|
|
8182
8185
|
RELATION_SHARE_INVITATION
|
|
8183
8186
|
].join("|");
|
|
8184
|
-
function buildShareUrl(type,
|
|
8185
|
-
return `${SHARE_SITE_URL}/${type}/${encodeURIComponent(
|
|
8187
|
+
function buildShareUrl(type, slug, utmMedium = "app") {
|
|
8188
|
+
return `${SHARE_SITE_URL}/${type}/${encodeURIComponent(slug)}?utm_source=share&utm_medium=${utmMedium}&utm_campaign=${type}`;
|
|
8186
8189
|
}
|
|
8187
8190
|
|
|
8188
8191
|
// src/sharing/normalizeShareDescription.ts
|
|
@@ -8245,8 +8248,8 @@ function normalizeShareRouteId(id) {
|
|
|
8245
8248
|
return id;
|
|
8246
8249
|
}
|
|
8247
8250
|
}
|
|
8248
|
-
function buildSharePagePath(resourceType,
|
|
8249
|
-
return `/${resourceType}/${encodeURIComponent(normalizeShareRouteId(
|
|
8251
|
+
function buildSharePagePath(resourceType, slug) {
|
|
8252
|
+
return `/${resourceType}/${encodeURIComponent(normalizeShareRouteId(slug))}`;
|
|
8250
8253
|
}
|
|
8251
8254
|
|
|
8252
8255
|
// src/storage/index.ts
|