@getlupa/client 0.7.0-alpha-14 → 0.7.0-alpha-15

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.
@@ -9,5 +9,6 @@ export default class SearchResultsTitle extends Vue {
9
9
  get queryText(): string;
10
10
  get showProductCount(): boolean;
11
11
  get showSearchTitle(): boolean;
12
+ get descriptionTop(): string | undefined;
12
13
  getLabel(label: string): string;
13
14
  }
@@ -20449,6 +20449,10 @@ let SearchResultsTitle = class SearchResultsTitle extends Vue$1 {
20449
20449
  return Boolean(((_a = this.options.labels) === null || _a === void 0 ? void 0 : _a.searchResults) &&
20450
20450
  (this.currentQueryText || this.isProductList));
20451
20451
  }
20452
+ get descriptionTop() {
20453
+ var _a, _b;
20454
+ return (_b = (_a = this.options.categories) === null || _a === void 0 ? void 0 : _a.current) === null || _b === void 0 ? void 0 : _b.descriptionTop;
20455
+ }
20452
20456
  getLabel(label) {
20453
20457
  return addParamsToLabel(label, `'${this.currentQueryText}'`);
20454
20458
  }
@@ -20483,27 +20487,36 @@ var __vue_render__$6 = function () {
20483
20487
  var _vm = this;
20484
20488
  var _h = _vm.$createElement;
20485
20489
  var _c = _vm._self._c || _h;
20486
- return _vm.showSearchTitle
20487
- ? _c(
20488
- "h1",
20489
- {
20490
- staticClass: "lupa-result-page-title",
20491
- attrs: { "data-cy": "lupa-result-page-title" },
20492
- },
20493
- [
20494
- _vm._v("\n " + _vm._s(_vm.options.labels.searchResults)),
20495
- _vm.queryText
20496
- ? _c("span", [_vm._v("'" + _vm._s(_vm.queryText) + "'")])
20497
- : _vm._e(),
20498
- _vm._v(" "),
20499
- _vm.showProductCount
20500
- ? _c("span", { staticClass: "lupa-results-total-count" }, [
20501
- _vm._v("(" + _vm._s(_vm.totalItems) + ")"),
20502
- ])
20503
- : _vm._e(),
20504
- ]
20505
- )
20506
- : _vm._e()
20490
+ return _c("div", [
20491
+ _vm.showSearchTitle
20492
+ ? _c(
20493
+ "h1",
20494
+ {
20495
+ staticClass: "lupa-result-page-title",
20496
+ attrs: { "data-cy": "lupa-result-page-title" },
20497
+ },
20498
+ [
20499
+ _vm._v("\n " + _vm._s(_vm.options.labels.searchResults)),
20500
+ _vm.queryText
20501
+ ? _c("span", [_vm._v("'" + _vm._s(_vm.queryText) + "'")])
20502
+ : _vm._e(),
20503
+ _vm._v(" "),
20504
+ _vm.showProductCount
20505
+ ? _c("span", { staticClass: "lupa-results-total-count" }, [
20506
+ _vm._v("(" + _vm._s(_vm.totalItems) + ")"),
20507
+ ])
20508
+ : _vm._e(),
20509
+ ]
20510
+ )
20511
+ : _vm._e(),
20512
+ _vm._v(" "),
20513
+ _vm.descriptionTop
20514
+ ? _c("div", {
20515
+ staticClass: "lupa-result-page-description-top",
20516
+ domProps: { innerHTML: _vm._s(_vm.descriptionTop) },
20517
+ })
20518
+ : _vm._e(),
20519
+ ])
20507
20520
  };
20508
20521
  var __vue_staticRenderFns__$6 = [];
20509
20522
  __vue_render__$6._withStripped = true;
@@ -20,6 +20,7 @@ export declare type CategoryFilterOptions = {
20
20
  current?: {
21
21
  title?: string;
22
22
  description?: string;
23
+ descriptionTop?: string;
23
24
  };
24
25
  };
25
26
  export declare type ProductListOptions = SearchResultsOptions & {
@@ -9,6 +9,7 @@ export declare type SearchResultsOptions = SearchResultsProductOptions & SearchR
9
9
  classMap?: Record<string, string>;
10
10
  disallowEmptyQuery?: boolean;
11
11
  callbacks?: SearchResultEventCallbacks;
12
+ categories?: CategoryFilterOptions;
12
13
  };
13
14
  export declare type SearchTitlePosition = "page-top" | "search-results-top";
14
15
  export declare type SearchResultsDidYouMeanLabels = {
@@ -9,5 +9,6 @@ export default class SearchResultsTitle extends Vue {
9
9
  get queryText(): string;
10
10
  get showProductCount(): boolean;
11
11
  get showSearchTitle(): boolean;
12
+ get descriptionTop(): string | undefined;
12
13
  getLabel(label: string): string;
13
14
  }
@@ -20445,6 +20445,10 @@ let SearchResultsTitle = class SearchResultsTitle extends Vue$1 {
20445
20445
  return Boolean(((_a = this.options.labels) === null || _a === void 0 ? void 0 : _a.searchResults) &&
20446
20446
  (this.currentQueryText || this.isProductList));
20447
20447
  }
20448
+ get descriptionTop() {
20449
+ var _a, _b;
20450
+ return (_b = (_a = this.options.categories) === null || _a === void 0 ? void 0 : _a.current) === null || _b === void 0 ? void 0 : _b.descriptionTop;
20451
+ }
20448
20452
  getLabel(label) {
20449
20453
  return addParamsToLabel(label, `'${this.currentQueryText}'`);
20450
20454
  }
@@ -20479,27 +20483,36 @@ var __vue_render__$6 = function () {
20479
20483
  var _vm = this;
20480
20484
  var _h = _vm.$createElement;
20481
20485
  var _c = _vm._self._c || _h;
20482
- return _vm.showSearchTitle
20483
- ? _c(
20484
- "h1",
20485
- {
20486
- staticClass: "lupa-result-page-title",
20487
- attrs: { "data-cy": "lupa-result-page-title" },
20488
- },
20489
- [
20490
- _vm._v("\n " + _vm._s(_vm.options.labels.searchResults)),
20491
- _vm.queryText
20492
- ? _c("span", [_vm._v("'" + _vm._s(_vm.queryText) + "'")])
20493
- : _vm._e(),
20494
- _vm._v(" "),
20495
- _vm.showProductCount
20496
- ? _c("span", { staticClass: "lupa-results-total-count" }, [
20497
- _vm._v("(" + _vm._s(_vm.totalItems) + ")"),
20498
- ])
20499
- : _vm._e(),
20500
- ]
20501
- )
20502
- : _vm._e()
20486
+ return _c("div", [
20487
+ _vm.showSearchTitle
20488
+ ? _c(
20489
+ "h1",
20490
+ {
20491
+ staticClass: "lupa-result-page-title",
20492
+ attrs: { "data-cy": "lupa-result-page-title" },
20493
+ },
20494
+ [
20495
+ _vm._v("\n " + _vm._s(_vm.options.labels.searchResults)),
20496
+ _vm.queryText
20497
+ ? _c("span", [_vm._v("'" + _vm._s(_vm.queryText) + "'")])
20498
+ : _vm._e(),
20499
+ _vm._v(" "),
20500
+ _vm.showProductCount
20501
+ ? _c("span", { staticClass: "lupa-results-total-count" }, [
20502
+ _vm._v("(" + _vm._s(_vm.totalItems) + ")"),
20503
+ ])
20504
+ : _vm._e(),
20505
+ ]
20506
+ )
20507
+ : _vm._e(),
20508
+ _vm._v(" "),
20509
+ _vm.descriptionTop
20510
+ ? _c("div", {
20511
+ staticClass: "lupa-result-page-description-top",
20512
+ domProps: { innerHTML: _vm._s(_vm.descriptionTop) },
20513
+ })
20514
+ : _vm._e(),
20515
+ ])
20503
20516
  };
20504
20517
  var __vue_staticRenderFns__$6 = [];
20505
20518
  __vue_render__$6._withStripped = true;
@@ -20,6 +20,7 @@ export declare type CategoryFilterOptions = {
20
20
  current?: {
21
21
  title?: string;
22
22
  description?: string;
23
+ descriptionTop?: string;
23
24
  };
24
25
  };
25
26
  export declare type ProductListOptions = SearchResultsOptions & {
@@ -9,6 +9,7 @@ export declare type SearchResultsOptions = SearchResultsProductOptions & SearchR
9
9
  classMap?: Record<string, string>;
10
10
  disallowEmptyQuery?: boolean;
11
11
  callbacks?: SearchResultEventCallbacks;
12
+ categories?: CategoryFilterOptions;
12
13
  };
13
14
  export declare type SearchTitlePosition = "page-top" | "search-results-top";
14
15
  export declare type SearchResultsDidYouMeanLabels = {
@@ -9,5 +9,6 @@ export default class SearchResultsTitle extends Vue {
9
9
  get queryText(): string;
10
10
  get showProductCount(): boolean;
11
11
  get showSearchTitle(): boolean;
12
+ get descriptionTop(): string | undefined;
12
13
  getLabel(label: string): string;
13
14
  }