@getlupa/client 0.16.0-alpha-1 → 0.16.0-alpha-3

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.
@@ -12,6 +12,9 @@ export default class Recommendations extends Vue {
12
12
  options: SearchResultsOptions;
13
13
  }) => void;
14
14
  get pages(): number[][];
15
+ get nextLabel(): string | undefined;
16
+ get prevLabel(): string | undefined;
17
+ get scrollPerPage(): boolean;
15
18
  mounted(): void;
16
19
  getProductKey(index: number, product: Document): string;
17
20
  loadRecommendations(): void;
@@ -39507,6 +39507,18 @@ let Recommendations = class Recommendations extends Vue$1 {
39507
39507
  var _a, _b;
39508
39508
  return (_b = (_a = this.options.carousel) === null || _a === void 0 ? void 0 : _a.pageSizes) !== null && _b !== void 0 ? _b : [];
39509
39509
  }
39510
+ get nextLabel() {
39511
+ var _a;
39512
+ return (_a = this.options.carousel) === null || _a === void 0 ? void 0 : _a.nextLabel;
39513
+ }
39514
+ get prevLabel() {
39515
+ var _a;
39516
+ return (_a = this.options.carousel) === null || _a === void 0 ? void 0 : _a.prevLabel;
39517
+ }
39518
+ get scrollPerPage() {
39519
+ var _a, _b;
39520
+ return (_b = (_a = this.options.carousel) === null || _a === void 0 ? void 0 : _a.scrollPerPage) !== null && _b !== void 0 ? _b : false;
39521
+ }
39510
39522
  mounted() {
39511
39523
  this.loadRecommendations();
39512
39524
  this.setSearchResultOptions({
@@ -39622,6 +39634,9 @@ var __vue_render__$1 = function () {
39622
39634
  "navigation-enabled": true,
39623
39635
  "pagination-enabled": false,
39624
39636
  "per-page-custom": _vm.pages,
39637
+ "navigation-next-label": _vm.nextLabel,
39638
+ "navigation-prev-label": _vm.prevLabel,
39639
+ "scroll-per-page": _vm.scrollPerPage,
39625
39640
  },
39626
39641
  },
39627
39642
  _vm._l(_vm.recommendations, function (product, index) {
@@ -41152,7 +41167,7 @@ const recommendations = (options, mountOptions) => {
41152
41167
  const RecommendationsEntryComponent = Vue$1.component("SearchResultsEntry", __vue_component__);
41153
41168
  const instance = new RecommendationsEntryComponent({
41154
41169
  el: options.containerSelector,
41155
- propsData: { searchResultsOptions: options },
41170
+ propsData: { recommendationOptions: options },
41156
41171
  store,
41157
41172
  });
41158
41173
  app.recommendations[options.containerSelector] = instance;
@@ -9,6 +9,9 @@ export declare type ProductRecommendationOptions = SearchResultsProductCardOptio
9
9
  abTesting?: RecommendationABTestingOptions;
10
10
  carousel?: {
11
11
  pageSizes: number[][];
12
+ nextLabel?: string;
13
+ prevLabel?: string;
14
+ scrollPerPage?: boolean;
12
15
  };
13
16
  };
14
17
  export declare type RecommendationABTestingOptions = {
@@ -12,6 +12,9 @@ export default class Recommendations extends Vue {
12
12
  options: SearchResultsOptions;
13
13
  }) => void;
14
14
  get pages(): number[][];
15
+ get nextLabel(): string | undefined;
16
+ get prevLabel(): string | undefined;
17
+ get scrollPerPage(): boolean;
15
18
  mounted(): void;
16
19
  getProductKey(index: number, product: Document): string;
17
20
  loadRecommendations(): void;
@@ -39503,6 +39503,18 @@ let Recommendations = class Recommendations extends Vue$1 {
39503
39503
  var _a, _b;
39504
39504
  return (_b = (_a = this.options.carousel) === null || _a === void 0 ? void 0 : _a.pageSizes) !== null && _b !== void 0 ? _b : [];
39505
39505
  }
39506
+ get nextLabel() {
39507
+ var _a;
39508
+ return (_a = this.options.carousel) === null || _a === void 0 ? void 0 : _a.nextLabel;
39509
+ }
39510
+ get prevLabel() {
39511
+ var _a;
39512
+ return (_a = this.options.carousel) === null || _a === void 0 ? void 0 : _a.prevLabel;
39513
+ }
39514
+ get scrollPerPage() {
39515
+ var _a, _b;
39516
+ return (_b = (_a = this.options.carousel) === null || _a === void 0 ? void 0 : _a.scrollPerPage) !== null && _b !== void 0 ? _b : false;
39517
+ }
39506
39518
  mounted() {
39507
39519
  this.loadRecommendations();
39508
39520
  this.setSearchResultOptions({
@@ -39618,6 +39630,9 @@ var __vue_render__$1 = function () {
39618
39630
  "navigation-enabled": true,
39619
39631
  "pagination-enabled": false,
39620
39632
  "per-page-custom": _vm.pages,
39633
+ "navigation-next-label": _vm.nextLabel,
39634
+ "navigation-prev-label": _vm.prevLabel,
39635
+ "scroll-per-page": _vm.scrollPerPage,
39621
39636
  },
39622
39637
  },
39623
39638
  _vm._l(_vm.recommendations, function (product, index) {
@@ -41148,7 +41163,7 @@ const recommendations = (options, mountOptions) => {
41148
41163
  const RecommendationsEntryComponent = Vue$1.component("SearchResultsEntry", __vue_component__);
41149
41164
  const instance = new RecommendationsEntryComponent({
41150
41165
  el: options.containerSelector,
41151
- propsData: { searchResultsOptions: options },
41166
+ propsData: { recommendationOptions: options },
41152
41167
  store,
41153
41168
  });
41154
41169
  app.recommendations[options.containerSelector] = instance;
@@ -9,6 +9,9 @@ export declare type ProductRecommendationOptions = SearchResultsProductCardOptio
9
9
  abTesting?: RecommendationABTestingOptions;
10
10
  carousel?: {
11
11
  pageSizes: number[][];
12
+ nextLabel?: string;
13
+ prevLabel?: string;
14
+ scrollPerPage?: boolean;
12
15
  };
13
16
  };
14
17
  export declare type RecommendationABTestingOptions = {
@@ -12,6 +12,9 @@ export default class Recommendations extends Vue {
12
12
  options: SearchResultsOptions;
13
13
  }) => void;
14
14
  get pages(): number[][];
15
+ get nextLabel(): string | undefined;
16
+ get prevLabel(): string | undefined;
17
+ get scrollPerPage(): boolean;
15
18
  mounted(): void;
16
19
  getProductKey(index: number, product: Document): string;
17
20
  loadRecommendations(): void;