@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/sharing/index.cjs
CHANGED
|
@@ -1388,7 +1388,7 @@ var availableCategories = assignColorToCategories([
|
|
|
1388
1388
|
// src/sharing/relationShareTypes.ts
|
|
1389
1389
|
var RELATION_SHARE_INVITATION = "invitation";
|
|
1390
1390
|
var RELATION_SHARE_APPLICATION = "application";
|
|
1391
|
-
var RELATION_OVERLAY_LAYOUT_VERSION =
|
|
1391
|
+
var RELATION_OVERLAY_LAYOUT_VERSION = 36;
|
|
1392
1392
|
var RELATION_SHARE_RESOURCE_TYPES = [
|
|
1393
1393
|
RELATION_SHARE_INVITATION,
|
|
1394
1394
|
RELATION_SHARE_APPLICATION
|
|
@@ -1604,8 +1604,8 @@ var SHARE_TYPE_PATH_REGEX = [
|
|
|
1604
1604
|
RELATION_SHARE_APPLICATION,
|
|
1605
1605
|
RELATION_SHARE_INVITATION
|
|
1606
1606
|
].join("|");
|
|
1607
|
-
function buildShareUrl(type,
|
|
1608
|
-
return `${SHARE_SITE_URL}/${type}/${encodeURIComponent(
|
|
1607
|
+
function buildShareUrl(type, slug, utmMedium = "app") {
|
|
1608
|
+
return `${SHARE_SITE_URL}/${type}/${encodeURIComponent(slug)}?utm_source=share&utm_medium=${utmMedium}&utm_campaign=${type}`;
|
|
1609
1609
|
}
|
|
1610
1610
|
|
|
1611
1611
|
// src/sharing/normalizeShareDescription.ts
|
|
@@ -1668,8 +1668,8 @@ function normalizeShareRouteId(id) {
|
|
|
1668
1668
|
return id;
|
|
1669
1669
|
}
|
|
1670
1670
|
}
|
|
1671
|
-
function buildSharePagePath(resourceType,
|
|
1672
|
-
return `/${resourceType}/${encodeURIComponent(normalizeShareRouteId(
|
|
1671
|
+
function buildSharePagePath(resourceType, slug) {
|
|
1672
|
+
return `/${resourceType}/${encodeURIComponent(normalizeShareRouteId(slug))}`;
|
|
1673
1673
|
}
|
|
1674
1674
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1675
1675
|
0 && (module.exports = {
|