@getlupa/client 0.7.0-alpha-10 → 0.7.0-alpha-13
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/cjs/index.min.js +13 -5
- package/dist/es/index.min.js +13 -5
- package/dist/iife/index.min.js +1 -1
- package/package.json +1 -1
package/dist/cjs/index.min.js
CHANGED
|
@@ -12026,7 +12026,13 @@ const parseParam = (key, params) => {
|
|
|
12026
12026
|
if (!value) {
|
|
12027
12027
|
return undefined;
|
|
12028
12028
|
}
|
|
12029
|
-
|
|
12029
|
+
try {
|
|
12030
|
+
return decodeURIComponent(value);
|
|
12031
|
+
}
|
|
12032
|
+
catch (_a) {
|
|
12033
|
+
// Invalid parameter, possibly out of LupaSearch plugin scope, return undefined
|
|
12034
|
+
return undefined;
|
|
12035
|
+
}
|
|
12030
12036
|
};
|
|
12031
12037
|
const parseRegularKeys = (regularKeys, searchParams) => {
|
|
12032
12038
|
const params = Object.create({});
|
|
@@ -16768,7 +16774,6 @@ __vue_render__$A._withStripped = true;
|
|
|
16768
16774
|
let SearchResultGeneratedBadge = class SearchResultGeneratedBadge extends Vue$1 {
|
|
16769
16775
|
get image() {
|
|
16770
16776
|
var _a, _b, _c;
|
|
16771
|
-
console.log(this.badge.titleText);
|
|
16772
16777
|
return (_c = (_b = (_a = this.options.generate) === null || _a === void 0 ? void 0 : _a.image) === null || _b === void 0 ? void 0 : _b.call(_a, this.badge)) !== null && _c !== void 0 ? _c : "";
|
|
16773
16778
|
}
|
|
16774
16779
|
};
|
|
@@ -16868,7 +16873,9 @@ let SearchResultGeneratedBadges = class SearchResultGeneratedBadges extends Vue$
|
|
|
16868
16873
|
this.badgeField.length > 0);
|
|
16869
16874
|
}
|
|
16870
16875
|
get badges() {
|
|
16871
|
-
return this.badgeField
|
|
16876
|
+
return this.badgeField
|
|
16877
|
+
.filter((f) => Boolean(f))
|
|
16878
|
+
.map((f) => ({
|
|
16872
16879
|
backgroundColor: this.keyMap.backgroundColor
|
|
16873
16880
|
? f[this.keyMap.backgroundColor]
|
|
16874
16881
|
: undefined,
|
|
@@ -16878,7 +16885,8 @@ let SearchResultGeneratedBadges = class SearchResultGeneratedBadges extends Vue$
|
|
|
16878
16885
|
? f[this.keyMap.additionalText]
|
|
16879
16886
|
: undefined,
|
|
16880
16887
|
id: this.keyMap.id ? f[this.keyMap.id] : undefined,
|
|
16881
|
-
}))
|
|
16888
|
+
}))
|
|
16889
|
+
.filter((b) => Boolean(b.id));
|
|
16882
16890
|
}
|
|
16883
16891
|
};
|
|
16884
16892
|
__decorate([
|
|
@@ -18066,7 +18074,7 @@ __decorate([
|
|
|
18066
18074
|
options$6.Getter("searchResultsRoutingBehavior")
|
|
18067
18075
|
], SearchResultsProductCard.prototype, "searchResultsRoutingBehavior", void 0);
|
|
18068
18076
|
__decorate([
|
|
18069
|
-
options$6.
|
|
18077
|
+
options$6.State((o) => o.searchResultOptions)
|
|
18070
18078
|
], SearchResultsProductCard.prototype, "searchResultOptions", void 0);
|
|
18071
18079
|
__decorate([
|
|
18072
18080
|
params$9.Getter("query")
|
package/dist/es/index.min.js
CHANGED
|
@@ -12022,7 +12022,13 @@ const parseParam = (key, params) => {
|
|
|
12022
12022
|
if (!value) {
|
|
12023
12023
|
return undefined;
|
|
12024
12024
|
}
|
|
12025
|
-
|
|
12025
|
+
try {
|
|
12026
|
+
return decodeURIComponent(value);
|
|
12027
|
+
}
|
|
12028
|
+
catch (_a) {
|
|
12029
|
+
// Invalid parameter, possibly out of LupaSearch plugin scope, return undefined
|
|
12030
|
+
return undefined;
|
|
12031
|
+
}
|
|
12026
12032
|
};
|
|
12027
12033
|
const parseRegularKeys = (regularKeys, searchParams) => {
|
|
12028
12034
|
const params = Object.create({});
|
|
@@ -16764,7 +16770,6 @@ __vue_render__$A._withStripped = true;
|
|
|
16764
16770
|
let SearchResultGeneratedBadge = class SearchResultGeneratedBadge extends Vue$1 {
|
|
16765
16771
|
get image() {
|
|
16766
16772
|
var _a, _b, _c;
|
|
16767
|
-
console.log(this.badge.titleText);
|
|
16768
16773
|
return (_c = (_b = (_a = this.options.generate) === null || _a === void 0 ? void 0 : _a.image) === null || _b === void 0 ? void 0 : _b.call(_a, this.badge)) !== null && _c !== void 0 ? _c : "";
|
|
16769
16774
|
}
|
|
16770
16775
|
};
|
|
@@ -16864,7 +16869,9 @@ let SearchResultGeneratedBadges = class SearchResultGeneratedBadges extends Vue$
|
|
|
16864
16869
|
this.badgeField.length > 0);
|
|
16865
16870
|
}
|
|
16866
16871
|
get badges() {
|
|
16867
|
-
return this.badgeField
|
|
16872
|
+
return this.badgeField
|
|
16873
|
+
.filter((f) => Boolean(f))
|
|
16874
|
+
.map((f) => ({
|
|
16868
16875
|
backgroundColor: this.keyMap.backgroundColor
|
|
16869
16876
|
? f[this.keyMap.backgroundColor]
|
|
16870
16877
|
: undefined,
|
|
@@ -16874,7 +16881,8 @@ let SearchResultGeneratedBadges = class SearchResultGeneratedBadges extends Vue$
|
|
|
16874
16881
|
? f[this.keyMap.additionalText]
|
|
16875
16882
|
: undefined,
|
|
16876
16883
|
id: this.keyMap.id ? f[this.keyMap.id] : undefined,
|
|
16877
|
-
}))
|
|
16884
|
+
}))
|
|
16885
|
+
.filter((b) => Boolean(b.id));
|
|
16878
16886
|
}
|
|
16879
16887
|
};
|
|
16880
16888
|
__decorate([
|
|
@@ -18062,7 +18070,7 @@ __decorate([
|
|
|
18062
18070
|
options$6.Getter("searchResultsRoutingBehavior")
|
|
18063
18071
|
], SearchResultsProductCard.prototype, "searchResultsRoutingBehavior", void 0);
|
|
18064
18072
|
__decorate([
|
|
18065
|
-
options$6.
|
|
18073
|
+
options$6.State((o) => o.searchResultOptions)
|
|
18066
18074
|
], SearchResultsProductCard.prototype, "searchResultOptions", void 0);
|
|
18067
18075
|
__decorate([
|
|
18068
18076
|
params$9.Getter("query")
|