@timardex/cluemart-shared 1.5.759 → 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.
- package/dist/{chunk-65G65T22.mjs → chunk-YQQO66DR.mjs} +6 -6
- package/dist/{chunk-65G65T22.mjs.map → chunk-YQQO66DR.mjs.map} +1 -1
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/dist/sharing/index.cjs +5 -5
- package/dist/sharing/index.cjs.map +1 -1
- package/dist/sharing/index.d.mts +4 -3
- package/dist/sharing/index.d.ts +4 -3
- package/dist/sharing/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2712,7 +2712,7 @@ declare const RELATION_SHARE_APPLICATION: "application";
|
|
|
2712
2712
|
* invalidate after deploy. Facebook caches preview JPEGs by exact URL — changing
|
|
2713
2713
|
* this value forces crawlers to fetch a fresh image after server deploy.
|
|
2714
2714
|
*/
|
|
2715
|
-
declare const RELATION_OVERLAY_LAYOUT_VERSION =
|
|
2715
|
+
declare const RELATION_OVERLAY_LAYOUT_VERSION = 36;
|
|
2716
2716
|
declare const RELATION_SHARE_RESOURCE_TYPES: readonly ["invitation", "application"];
|
|
2717
2717
|
type RelationShareResourceType = (typeof RELATION_SHARE_RESOURCE_TYPES)[number];
|
|
2718
2718
|
declare function isRelationShareResourceType(resourceType: string): resourceType is RelationShareResourceType;
|
|
@@ -2724,7 +2724,7 @@ type RelationSharePathType = typeof RELATION_SHARE_INVITATION | typeof RELATION_
|
|
|
2724
2724
|
type ShareType = PublicSharePathType | RelationSharePathType;
|
|
2725
2725
|
/** Alternation for deep-link regexes — keep in sync with {@link ShareType}. */
|
|
2726
2726
|
declare const SHARE_TYPE_PATH_REGEX: string;
|
|
2727
|
-
declare function buildShareUrl(type: ShareType,
|
|
2727
|
+
declare function buildShareUrl(type: ShareType, slug: string, utmMedium?: string): string;
|
|
2728
2728
|
|
|
2729
2729
|
/** Open Graph recommended preview size (must match admin `SHARE_OG_IMAGE_*`). */
|
|
2730
2730
|
declare const SOCIAL_IMAGE_WIDTH = 1200;
|
|
@@ -2822,7 +2822,8 @@ declare function buildShareOgDescriptionFromSections(sections: ReadonlyArray<str
|
|
|
2822
2822
|
declare function buildShareOgDescription(_title: string, description: string): string;
|
|
2823
2823
|
|
|
2824
2824
|
declare function normalizeShareRouteId(id: string): string;
|
|
2825
|
-
|
|
2825
|
+
/** Relative path for a public share landing page (`/market/demo-market`). */
|
|
2826
|
+
declare function buildSharePagePath(resourceType: ShareResourceType, slug: string): string;
|
|
2826
2827
|
|
|
2827
2828
|
declare const SAVED_PASSWORD_KEY = "savedPassword";
|
|
2828
2829
|
declare const SAVED_EMAIL_KEY = "savedEmail";
|
package/dist/index.d.ts
CHANGED
|
@@ -2712,7 +2712,7 @@ declare const RELATION_SHARE_APPLICATION: "application";
|
|
|
2712
2712
|
* invalidate after deploy. Facebook caches preview JPEGs by exact URL — changing
|
|
2713
2713
|
* this value forces crawlers to fetch a fresh image after server deploy.
|
|
2714
2714
|
*/
|
|
2715
|
-
declare const RELATION_OVERLAY_LAYOUT_VERSION =
|
|
2715
|
+
declare const RELATION_OVERLAY_LAYOUT_VERSION = 36;
|
|
2716
2716
|
declare const RELATION_SHARE_RESOURCE_TYPES: readonly ["invitation", "application"];
|
|
2717
2717
|
type RelationShareResourceType = (typeof RELATION_SHARE_RESOURCE_TYPES)[number];
|
|
2718
2718
|
declare function isRelationShareResourceType(resourceType: string): resourceType is RelationShareResourceType;
|
|
@@ -2724,7 +2724,7 @@ type RelationSharePathType = typeof RELATION_SHARE_INVITATION | typeof RELATION_
|
|
|
2724
2724
|
type ShareType = PublicSharePathType | RelationSharePathType;
|
|
2725
2725
|
/** Alternation for deep-link regexes — keep in sync with {@link ShareType}. */
|
|
2726
2726
|
declare const SHARE_TYPE_PATH_REGEX: string;
|
|
2727
|
-
declare function buildShareUrl(type: ShareType,
|
|
2727
|
+
declare function buildShareUrl(type: ShareType, slug: string, utmMedium?: string): string;
|
|
2728
2728
|
|
|
2729
2729
|
/** Open Graph recommended preview size (must match admin `SHARE_OG_IMAGE_*`). */
|
|
2730
2730
|
declare const SOCIAL_IMAGE_WIDTH = 1200;
|
|
@@ -2822,7 +2822,8 @@ declare function buildShareOgDescriptionFromSections(sections: ReadonlyArray<str
|
|
|
2822
2822
|
declare function buildShareOgDescription(_title: string, description: string): string;
|
|
2823
2823
|
|
|
2824
2824
|
declare function normalizeShareRouteId(id: string): string;
|
|
2825
|
-
|
|
2825
|
+
/** Relative path for a public share landing page (`/market/demo-market`). */
|
|
2826
|
+
declare function buildSharePagePath(resourceType: ShareResourceType, slug: string): string;
|
|
2826
2827
|
|
|
2827
2828
|
declare const SAVED_PASSWORD_KEY = "savedPassword";
|
|
2828
2829
|
declare const SAVED_EMAIL_KEY = "savedEmail";
|
package/dist/index.mjs
CHANGED
|
@@ -7965,7 +7965,7 @@ var otherImages = Object.fromEntries(
|
|
|
7965
7965
|
// src/sharing/relationShareTypes.ts
|
|
7966
7966
|
var RELATION_SHARE_INVITATION = "invitation";
|
|
7967
7967
|
var RELATION_SHARE_APPLICATION = "application";
|
|
7968
|
-
var RELATION_OVERLAY_LAYOUT_VERSION =
|
|
7968
|
+
var RELATION_OVERLAY_LAYOUT_VERSION = 36;
|
|
7969
7969
|
var RELATION_SHARE_RESOURCE_TYPES = [
|
|
7970
7970
|
RELATION_SHARE_INVITATION,
|
|
7971
7971
|
RELATION_SHARE_APPLICATION
|
|
@@ -8181,8 +8181,8 @@ var SHARE_TYPE_PATH_REGEX = [
|
|
|
8181
8181
|
RELATION_SHARE_APPLICATION,
|
|
8182
8182
|
RELATION_SHARE_INVITATION
|
|
8183
8183
|
].join("|");
|
|
8184
|
-
function buildShareUrl(type,
|
|
8185
|
-
return `${SHARE_SITE_URL}/${type}/${encodeURIComponent(
|
|
8184
|
+
function buildShareUrl(type, slug, utmMedium = "app") {
|
|
8185
|
+
return `${SHARE_SITE_URL}/${type}/${encodeURIComponent(slug)}?utm_source=share&utm_medium=${utmMedium}&utm_campaign=${type}`;
|
|
8186
8186
|
}
|
|
8187
8187
|
|
|
8188
8188
|
// src/sharing/normalizeShareDescription.ts
|
|
@@ -8245,8 +8245,8 @@ function normalizeShareRouteId(id) {
|
|
|
8245
8245
|
return id;
|
|
8246
8246
|
}
|
|
8247
8247
|
}
|
|
8248
|
-
function buildSharePagePath(resourceType,
|
|
8249
|
-
return `/${resourceType}/${encodeURIComponent(normalizeShareRouteId(
|
|
8248
|
+
function buildSharePagePath(resourceType, slug) {
|
|
8249
|
+
return `/${resourceType}/${encodeURIComponent(normalizeShareRouteId(slug))}`;
|
|
8250
8250
|
}
|
|
8251
8251
|
|
|
8252
8252
|
// src/storage/index.ts
|