@asantemedia-org/edwardsvacuum-design-system 1.5.0 → 1.5.1
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/index.esm.js
CHANGED
|
@@ -4813,8 +4813,8 @@ var AlgoliaDynamicSearch = function (_a) {
|
|
|
4813
4813
|
queryType = _c === void 0 ? 'unknown' : _c,
|
|
4814
4814
|
hits = _a.hits,
|
|
4815
4815
|
hitCta = _a.hitCta,
|
|
4816
|
-
hitUtm = _a.hitUtm,
|
|
4817
4816
|
showProductPrice = _a.showProductPrice,
|
|
4817
|
+
query = _a.query,
|
|
4818
4818
|
_d = _a.backgroundColour,
|
|
4819
4819
|
backgroundColour = _d === void 0 ? '' : _d,
|
|
4820
4820
|
_e = _a.maxResults,
|
|
@@ -4894,7 +4894,13 @@ var AlgoliaDynamicSearch = function (_a) {
|
|
|
4894
4894
|
var title = hit.title;
|
|
4895
4895
|
var cardStyle = "";
|
|
4896
4896
|
var imageUrl = hit.image || placeholder;
|
|
4897
|
-
var
|
|
4897
|
+
var hitUtm = new URLSearchParams({
|
|
4898
|
+
utm_source: "web",
|
|
4899
|
+
utm_medium: "alg",
|
|
4900
|
+
utm_campaign: query || "dynamic search"
|
|
4901
|
+
}).toString();
|
|
4902
|
+
var separator = hit.link.includes("?") ? "&" : "?";
|
|
4903
|
+
var cardLink = "".concat(hit.link).concat(separator).concat(hitUtm);
|
|
4898
4904
|
var contentCategoryLabel = hit.contentCategoryLabel || "";
|
|
4899
4905
|
var contentCategoryColour = hit.contentCategoryColour || "";
|
|
4900
4906
|
var price = showProductPrice ? hit.price : "";
|