@getlupa/client 0.15.1 → 0.15.2

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,6 +9,7 @@ export default class AdditionalPanels extends Vue {
9
9
  options: SdkOptions;
10
10
  result: SearchQueryResult;
11
11
  query: string;
12
+ searchString: string;
12
13
  searchResultOptions: SearchResultsOptions;
13
14
  showAll: boolean;
14
15
  get displayShowMore(): boolean;
@@ -35695,6 +35695,7 @@ let SearchResultsProductCard = class SearchResultsProductCard extends Vue$1 {
35695
35695
  (_d = (_c = this.searchResultOptions.callbacks) === null || _c === void 0 ? void 0 : _c.onProductClick) === null || _d === void 0 ? void 0 : _d.call(_c, {
35696
35696
  queryKey: this.query,
35697
35697
  hasResults: true,
35698
+ productId: this.id,
35698
35699
  });
35699
35700
  }
35700
35701
  handleProductEvent(item) {
@@ -36212,11 +36213,14 @@ __decorate([
36212
36213
  __decorate([
36213
36214
  params$9.Getter("query")
36214
36215
  ], AdditionalPanels$1.prototype, "query", void 0);
36216
+ __decorate([
36217
+ params$9.Getter("searchString")
36218
+ ], AdditionalPanels$1.prototype, "searchString", void 0);
36215
36219
  __decorate([
36216
36220
  options$6.State((o) => o.searchResultOptions)
36217
36221
  ], AdditionalPanels$1.prototype, "searchResultOptions", void 0);
36218
36222
  __decorate([
36219
- Watch("query")
36223
+ Watch("searchString")
36220
36224
  ], AdditionalPanels$1.prototype, "handleQueryChange", null);
36221
36225
  AdditionalPanels$1 = __decorate([
36222
36226
  Component({
@@ -26,6 +26,7 @@ export declare type CallbackContext = {
26
26
  queryKey: string;
27
27
  hasResults?: boolean;
28
28
  urlQueryString?: string;
29
+ productId?: string;
29
30
  };
30
31
  export declare type SearchResultEventCallbacks = {
31
32
  onSearchResults?: (context: CallbackContext) => unknown;
@@ -9,6 +9,7 @@ export default class AdditionalPanels extends Vue {
9
9
  options: SdkOptions;
10
10
  result: SearchQueryResult;
11
11
  query: string;
12
+ searchString: string;
12
13
  searchResultOptions: SearchResultsOptions;
13
14
  showAll: boolean;
14
15
  get displayShowMore(): boolean;
@@ -35691,6 +35691,7 @@ let SearchResultsProductCard = class SearchResultsProductCard extends Vue$1 {
35691
35691
  (_d = (_c = this.searchResultOptions.callbacks) === null || _c === void 0 ? void 0 : _c.onProductClick) === null || _d === void 0 ? void 0 : _d.call(_c, {
35692
35692
  queryKey: this.query,
35693
35693
  hasResults: true,
35694
+ productId: this.id,
35694
35695
  });
35695
35696
  }
35696
35697
  handleProductEvent(item) {
@@ -36208,11 +36209,14 @@ __decorate([
36208
36209
  __decorate([
36209
36210
  params$9.Getter("query")
36210
36211
  ], AdditionalPanels$1.prototype, "query", void 0);
36212
+ __decorate([
36213
+ params$9.Getter("searchString")
36214
+ ], AdditionalPanels$1.prototype, "searchString", void 0);
36211
36215
  __decorate([
36212
36216
  options$6.State((o) => o.searchResultOptions)
36213
36217
  ], AdditionalPanels$1.prototype, "searchResultOptions", void 0);
36214
36218
  __decorate([
36215
- Watch("query")
36219
+ Watch("searchString")
36216
36220
  ], AdditionalPanels$1.prototype, "handleQueryChange", null);
36217
36221
  AdditionalPanels$1 = __decorate([
36218
36222
  Component({
@@ -26,6 +26,7 @@ export declare type CallbackContext = {
26
26
  queryKey: string;
27
27
  hasResults?: boolean;
28
28
  urlQueryString?: string;
29
+ productId?: string;
29
30
  };
30
31
  export declare type SearchResultEventCallbacks = {
31
32
  onSearchResults?: (context: CallbackContext) => unknown;
@@ -9,6 +9,7 @@ export default class AdditionalPanels extends Vue {
9
9
  options: SdkOptions;
10
10
  result: SearchQueryResult;
11
11
  query: string;
12
+ searchString: string;
12
13
  searchResultOptions: SearchResultsOptions;
13
14
  showAll: boolean;
14
15
  get displayShowMore(): boolean;