@timardex/cluemart-shared 1.5.758 → 1.5.760

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.
Files changed (54) hide show
  1. package/dist/{ad-pLZUkF7z.d.ts → ad-BG0lQxCY.d.ts} +1 -1
  2. package/dist/{ad-QbxQEG6o.d.mts → ad-C9XeExJG.d.mts} +1 -1
  3. package/dist/{chunk-IIOU4CXQ.mjs → chunk-5RXTRSY2.mjs} +2 -2
  4. package/dist/{chunk-K3PEZWSB.mjs → chunk-B2D5OLQT.mjs} +2 -2
  5. package/dist/{chunk-GSOQZF6M.mjs → chunk-J4ENZPQE.mjs} +1 -1
  6. package/dist/chunk-J4ENZPQE.mjs.map +1 -0
  7. package/dist/{chunk-O3S5IQT3.mjs → chunk-SR7UIBOW.mjs} +6 -1
  8. package/dist/chunk-SR7UIBOW.mjs.map +1 -0
  9. package/dist/{chunk-4E7UDAQX.mjs → chunk-YQQO66DR.mjs} +7 -7
  10. package/dist/{chunk-4E7UDAQX.mjs.map → chunk-YQQO66DR.mjs.map} +1 -1
  11. package/dist/{contactUs-Bn14BhYR.d.mts → contactUs-Bgn0Ixmz.d.mts} +1 -1
  12. package/dist/{contactUs-CbgB8N5m.d.ts → contactUs-DA-wkW8U.d.ts} +1 -1
  13. package/dist/formFields/index.d.mts +1 -1
  14. package/dist/formFields/index.d.ts +1 -1
  15. package/dist/formFields/index.mjs +3 -3
  16. package/dist/{global-DwcLiMf-.d.mts → global-Bqkcya3A.d.mts} +3 -1
  17. package/dist/{global-CMZCDnUT.d.ts → global-D7RVPZoz.d.ts} +3 -1
  18. package/dist/graphql/index.cjs +5 -0
  19. package/dist/graphql/index.cjs.map +1 -1
  20. package/dist/graphql/index.d.mts +3 -3
  21. package/dist/graphql/index.d.ts +3 -3
  22. package/dist/graphql/index.mjs +1 -1
  23. package/dist/hooks/index.cjs +5 -0
  24. package/dist/hooks/index.cjs.map +1 -1
  25. package/dist/hooks/index.d.mts +3 -3
  26. package/dist/hooks/index.d.ts +3 -3
  27. package/dist/hooks/index.mjs +5 -5
  28. package/dist/index.cjs +10 -5
  29. package/dist/index.cjs.map +1 -1
  30. package/dist/index.d.mts +7 -4
  31. package/dist/index.d.ts +7 -4
  32. package/dist/index.mjs +10 -5
  33. package/dist/index.mjs.map +1 -1
  34. package/dist/map/index.d.mts +1 -1
  35. package/dist/map/index.d.ts +1 -1
  36. package/dist/{resourceActivities-qSbrOsu_.d.mts → resourceActivities-DPD0AnWh.d.mts} +1 -1
  37. package/dist/{resourceActivities-BiIFWxSA.d.ts → resourceActivities-DdlPNlJF.d.ts} +1 -1
  38. package/dist/sharing/index.cjs +5 -5
  39. package/dist/sharing/index.cjs.map +1 -1
  40. package/dist/sharing/index.d.mts +5 -4
  41. package/dist/sharing/index.d.ts +5 -4
  42. package/dist/sharing/index.mjs +3 -3
  43. package/dist/types/index.cjs.map +1 -1
  44. package/dist/types/index.d.mts +5 -5
  45. package/dist/types/index.d.ts +5 -5
  46. package/dist/types/index.mjs +1 -1
  47. package/dist/utils/index.d.mts +1 -1
  48. package/dist/utils/index.d.ts +1 -1
  49. package/dist/utils/index.mjs +2 -2
  50. package/package.json +1 -1
  51. package/dist/chunk-GSOQZF6M.mjs.map +0 -1
  52. package/dist/chunk-O3S5IQT3.mjs.map +0 -1
  53. /package/dist/{chunk-IIOU4CXQ.mjs.map → chunk-5RXTRSY2.mjs.map} +0 -0
  54. /package/dist/{chunk-K3PEZWSB.mjs.map → chunk-B2D5OLQT.mjs.map} +0 -0
package/dist/index.d.mts CHANGED
@@ -317,7 +317,7 @@ interface EventType extends BaseResourceType {
317
317
  relationDates: RelationDate[] | null;
318
318
  }[] | null;
319
319
  }
320
- type EventListItemType = Pick<EventType, "_id" | "active" | "claimed" | "cover" | "createdAt" | "dateTime" | "deletedAt" | "description" | "eventType" | "googlePlaceId" | "images" | "location" | "logo" | "name" | "rainOrShine" | "rating" | "region" | "relations" | "reviewCount" | "updatedAt">;
320
+ type EventListItemType = Pick<EventType, "_id" | "active" | "claimed" | "cover" | "createdAt" | "dateTime" | "deletedAt" | "description" | "eventType" | "googlePlaceId" | "slug" | "images" | "location" | "logo" | "name" | "rainOrShine" | "rating" | "region" | "relations" | "reviewCount" | "updatedAt">;
321
321
  type EventInfoType = Omit<EventInfoFormData, "_id"> & {
322
322
  _id: string;
323
323
  active?: boolean;
@@ -593,6 +593,7 @@ type PostContentType = Omit<PostContentFormData, "contentData"> & {
593
593
  type PostType = Omit<PostFormData, "content" | "coverUpload"> & {
594
594
  _id: string;
595
595
  content: PostContentType[];
596
+ slug: string;
596
597
  createdAt: Date;
597
598
  deletedAt: Date | null;
598
599
  updatedAt: Date | null;
@@ -797,6 +798,7 @@ type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "
797
798
  reviewCount?: number | null;
798
799
  updatedAt: Date | null;
799
800
  relatedPost?: RelatedPostType | null;
801
+ slug: string;
800
802
  };
801
803
  type LocationGeoType = {
802
804
  coordinates: number[];
@@ -2710,7 +2712,7 @@ declare const RELATION_SHARE_APPLICATION: "application";
2710
2712
  * invalidate after deploy. Facebook caches preview JPEGs by exact URL — changing
2711
2713
  * this value forces crawlers to fetch a fresh image after server deploy.
2712
2714
  */
2713
- declare const RELATION_OVERLAY_LAYOUT_VERSION = 35;
2715
+ declare const RELATION_OVERLAY_LAYOUT_VERSION = 36;
2714
2716
  declare const RELATION_SHARE_RESOURCE_TYPES: readonly ["invitation", "application"];
2715
2717
  type RelationShareResourceType = (typeof RELATION_SHARE_RESOURCE_TYPES)[number];
2716
2718
  declare function isRelationShareResourceType(resourceType: string): resourceType is RelationShareResourceType;
@@ -2722,7 +2724,7 @@ type RelationSharePathType = typeof RELATION_SHARE_INVITATION | typeof RELATION_
2722
2724
  type ShareType = PublicSharePathType | RelationSharePathType;
2723
2725
  /** Alternation for deep-link regexes — keep in sync with {@link ShareType}. */
2724
2726
  declare const SHARE_TYPE_PATH_REGEX: string;
2725
- declare function buildShareUrl(type: ShareType, id: string, utmMedium?: string): string;
2727
+ declare function buildShareUrl(type: ShareType, slug: string, utmMedium?: string): string;
2726
2728
 
2727
2729
  /** Open Graph recommended preview size (must match admin `SHARE_OG_IMAGE_*`). */
2728
2730
  declare const SOCIAL_IMAGE_WIDTH = 1200;
@@ -2820,7 +2822,8 @@ declare function buildShareOgDescriptionFromSections(sections: ReadonlyArray<str
2820
2822
  declare function buildShareOgDescription(_title: string, description: string): string;
2821
2823
 
2822
2824
  declare function normalizeShareRouteId(id: string): string;
2823
- declare function buildSharePagePath(resourceType: ShareResourceType, rawId: string): string;
2825
+ /** Relative path for a public share landing page (`/market/demo-market`). */
2826
+ declare function buildSharePagePath(resourceType: ShareResourceType, slug: string): string;
2824
2827
 
2825
2828
  declare const SAVED_PASSWORD_KEY = "savedPassword";
2826
2829
  declare const SAVED_EMAIL_KEY = "savedEmail";
package/dist/index.d.ts CHANGED
@@ -317,7 +317,7 @@ interface EventType extends BaseResourceType {
317
317
  relationDates: RelationDate[] | null;
318
318
  }[] | null;
319
319
  }
320
- type EventListItemType = Pick<EventType, "_id" | "active" | "claimed" | "cover" | "createdAt" | "dateTime" | "deletedAt" | "description" | "eventType" | "googlePlaceId" | "images" | "location" | "logo" | "name" | "rainOrShine" | "rating" | "region" | "relations" | "reviewCount" | "updatedAt">;
320
+ type EventListItemType = Pick<EventType, "_id" | "active" | "claimed" | "cover" | "createdAt" | "dateTime" | "deletedAt" | "description" | "eventType" | "googlePlaceId" | "slug" | "images" | "location" | "logo" | "name" | "rainOrShine" | "rating" | "region" | "relations" | "reviewCount" | "updatedAt">;
321
321
  type EventInfoType = Omit<EventInfoFormData, "_id"> & {
322
322
  _id: string;
323
323
  active?: boolean;
@@ -593,6 +593,7 @@ type PostContentType = Omit<PostContentFormData, "contentData"> & {
593
593
  type PostType = Omit<PostFormData, "content" | "coverUpload"> & {
594
594
  _id: string;
595
595
  content: PostContentType[];
596
+ slug: string;
596
597
  createdAt: Date;
597
598
  deletedAt: Date | null;
598
599
  updatedAt: Date | null;
@@ -797,6 +798,7 @@ type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "
797
798
  reviewCount?: number | null;
798
799
  updatedAt: Date | null;
799
800
  relatedPost?: RelatedPostType | null;
801
+ slug: string;
800
802
  };
801
803
  type LocationGeoType = {
802
804
  coordinates: number[];
@@ -2710,7 +2712,7 @@ declare const RELATION_SHARE_APPLICATION: "application";
2710
2712
  * invalidate after deploy. Facebook caches preview JPEGs by exact URL — changing
2711
2713
  * this value forces crawlers to fetch a fresh image after server deploy.
2712
2714
  */
2713
- declare const RELATION_OVERLAY_LAYOUT_VERSION = 35;
2715
+ declare const RELATION_OVERLAY_LAYOUT_VERSION = 36;
2714
2716
  declare const RELATION_SHARE_RESOURCE_TYPES: readonly ["invitation", "application"];
2715
2717
  type RelationShareResourceType = (typeof RELATION_SHARE_RESOURCE_TYPES)[number];
2716
2718
  declare function isRelationShareResourceType(resourceType: string): resourceType is RelationShareResourceType;
@@ -2722,7 +2724,7 @@ type RelationSharePathType = typeof RELATION_SHARE_INVITATION | typeof RELATION_
2722
2724
  type ShareType = PublicSharePathType | RelationSharePathType;
2723
2725
  /** Alternation for deep-link regexes — keep in sync with {@link ShareType}. */
2724
2726
  declare const SHARE_TYPE_PATH_REGEX: string;
2725
- declare function buildShareUrl(type: ShareType, id: string, utmMedium?: string): string;
2727
+ declare function buildShareUrl(type: ShareType, slug: string, utmMedium?: string): string;
2726
2728
 
2727
2729
  /** Open Graph recommended preview size (must match admin `SHARE_OG_IMAGE_*`). */
2728
2730
  declare const SOCIAL_IMAGE_WIDTH = 1200;
@@ -2820,7 +2822,8 @@ declare function buildShareOgDescriptionFromSections(sections: ReadonlyArray<str
2820
2822
  declare function buildShareOgDescription(_title: string, description: string): string;
2821
2823
 
2822
2824
  declare function normalizeShareRouteId(id: string): string;
2823
- declare function buildSharePagePath(resourceType: ShareResourceType, rawId: string): string;
2825
+ /** Relative path for a public share landing page (`/market/demo-market`). */
2826
+ declare function buildSharePagePath(resourceType: ShareResourceType, slug: string): string;
2824
2827
 
2825
2828
  declare const SAVED_PASSWORD_KEY = "savedPassword";
2826
2829
  declare const SAVED_EMAIL_KEY = "savedEmail";
package/dist/index.mjs CHANGED
@@ -3149,6 +3149,7 @@ var EVENT_LIST_ITEM = gql`
3149
3149
  }
3150
3150
  }
3151
3151
  reviewCount
3152
+ slug
3152
3153
  updatedAt
3153
3154
  }
3154
3155
  ${DATETIME_FIELDS_FRAGMENT}
@@ -3259,6 +3260,7 @@ var EVENT = gql2`
3259
3260
  socialMedia {
3260
3261
  ...SocialMediaFields
3261
3262
  }
3263
+ slug
3262
3264
  tags
3263
3265
  termsAgreement {
3264
3266
  ...TermsAgreementFields
@@ -3454,6 +3456,7 @@ var VENDOR = gql3`
3454
3456
  ...RelationDates
3455
3457
  }
3456
3458
  }
3459
+ slug
3457
3460
  socialMedia {
3458
3461
  ...SocialMediaFields
3459
3462
  }
@@ -3666,6 +3669,7 @@ var PARTNER = gql4`
3666
3669
  socialMedia {
3667
3670
  ...SocialMediaFields
3668
3671
  }
3672
+ slug
3669
3673
  termsAgreement {
3670
3674
  ...TermsAgreementFields
3671
3675
  }
@@ -3880,6 +3884,7 @@ var POST_FIELDS_FRAGMENT = gql7`
3880
3884
  }
3881
3885
  tags
3882
3886
  title
3887
+ slug
3883
3888
  updatedAt
3884
3889
  }
3885
3890
  ${POST_CONTENT_FIELDS_FRAGMENT}
@@ -7960,7 +7965,7 @@ var otherImages = Object.fromEntries(
7960
7965
  // src/sharing/relationShareTypes.ts
7961
7966
  var RELATION_SHARE_INVITATION = "invitation";
7962
7967
  var RELATION_SHARE_APPLICATION = "application";
7963
- var RELATION_OVERLAY_LAYOUT_VERSION = 35;
7968
+ var RELATION_OVERLAY_LAYOUT_VERSION = 36;
7964
7969
  var RELATION_SHARE_RESOURCE_TYPES = [
7965
7970
  RELATION_SHARE_INVITATION,
7966
7971
  RELATION_SHARE_APPLICATION
@@ -8176,8 +8181,8 @@ var SHARE_TYPE_PATH_REGEX = [
8176
8181
  RELATION_SHARE_APPLICATION,
8177
8182
  RELATION_SHARE_INVITATION
8178
8183
  ].join("|");
8179
- function buildShareUrl(type, id, utmMedium = "app") {
8180
- return `${SHARE_SITE_URL}/${type}/${encodeURIComponent(id)}?utm_source=share&utm_medium=${utmMedium}&utm_campaign=${type}`;
8184
+ function buildShareUrl(type, slug, utmMedium = "app") {
8185
+ return `${SHARE_SITE_URL}/${type}/${encodeURIComponent(slug)}?utm_source=share&utm_medium=${utmMedium}&utm_campaign=${type}`;
8181
8186
  }
8182
8187
 
8183
8188
  // src/sharing/normalizeShareDescription.ts
@@ -8240,8 +8245,8 @@ function normalizeShareRouteId(id) {
8240
8245
  return id;
8241
8246
  }
8242
8247
  }
8243
- function buildSharePagePath(resourceType, rawId) {
8244
- return `/${resourceType}/${encodeURIComponent(normalizeShareRouteId(rawId))}`;
8248
+ function buildSharePagePath(resourceType, slug) {
8249
+ return `/${resourceType}/${encodeURIComponent(normalizeShareRouteId(slug))}`;
8245
8250
  }
8246
8251
 
8247
8252
  // src/storage/index.ts