@getlupa/client 0.7.0 → 0.8.0-alpha-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.
Files changed (53) hide show
  1. package/dist/cjs/ProductListEntry.vue.d.ts +1 -0
  2. package/dist/cjs/SearchBoxEntry.vue.d.ts +1 -0
  3. package/dist/cjs/SearchResultsEntry.vue.d.ts +1 -0
  4. package/dist/cjs/components/product-list/ProductList.vue.d.ts +1 -0
  5. package/dist/cjs/components/search-results/SearchResultsTitle.vue.d.ts +1 -0
  6. package/dist/cjs/components/search-results/filters/facets/StatsFacet.vue.d.ts +2 -0
  7. package/dist/cjs/components/search-results/products/product-card/SearchResultsProductCard.vue.d.ts +2 -1
  8. package/dist/cjs/components/search-results/products/product-card/badges/SearchResultGeneratedBadge.vue.d.ts +9 -0
  9. package/dist/cjs/components/search-results/products/product-card/badges/SearchResultGeneratedBadges.vue.d.ts +9 -0
  10. package/dist/cjs/components/search-results/products/product-card/badges/SearchResultsBadgeWrapper.vue.d.ts +2 -0
  11. package/dist/cjs/index.d.ts +12 -9
  12. package/dist/cjs/index.min.js +1092 -728
  13. package/dist/cjs/types/DocumentElement.d.ts +16 -15
  14. package/dist/cjs/types/product-list/ProductListOptions.d.ts +5 -4
  15. package/dist/cjs/types/search-results/BadgeOptions.d.ts +29 -12
  16. package/dist/cjs/types/search-results/SearchResultsOptions.d.ts +6 -1
  17. package/dist/cjs/types/search-results/SearchResultsProductCardOptions.d.ts +2 -1
  18. package/dist/es/ProductListEntry.vue.d.ts +1 -0
  19. package/dist/es/SearchBoxEntry.vue.d.ts +1 -0
  20. package/dist/es/SearchResultsEntry.vue.d.ts +1 -0
  21. package/dist/es/components/product-list/ProductList.vue.d.ts +1 -0
  22. package/dist/es/components/search-results/SearchResultsTitle.vue.d.ts +1 -0
  23. package/dist/es/components/search-results/filters/facets/StatsFacet.vue.d.ts +2 -0
  24. package/dist/es/components/search-results/products/product-card/SearchResultsProductCard.vue.d.ts +2 -1
  25. package/dist/es/components/search-results/products/product-card/badges/SearchResultGeneratedBadge.vue.d.ts +9 -0
  26. package/dist/es/components/search-results/products/product-card/badges/SearchResultGeneratedBadges.vue.d.ts +9 -0
  27. package/dist/es/components/search-results/products/product-card/badges/SearchResultsBadgeWrapper.vue.d.ts +2 -0
  28. package/dist/es/index.d.ts +12 -9
  29. package/dist/es/index.min.js +1092 -728
  30. package/dist/es/types/DocumentElement.d.ts +16 -15
  31. package/dist/es/types/product-list/ProductListOptions.d.ts +5 -4
  32. package/dist/es/types/search-results/BadgeOptions.d.ts +29 -12
  33. package/dist/es/types/search-results/SearchResultsOptions.d.ts +6 -1
  34. package/dist/es/types/search-results/SearchResultsProductCardOptions.d.ts +2 -1
  35. package/dist/iife/ProductListEntry.vue.d.ts +1 -0
  36. package/dist/iife/SearchBoxEntry.vue.d.ts +1 -0
  37. package/dist/iife/SearchResultsEntry.vue.d.ts +1 -0
  38. package/dist/iife/components/product-list/ProductList.vue.d.ts +1 -0
  39. package/dist/iife/components/search-results/SearchResultsTitle.vue.d.ts +1 -0
  40. package/dist/iife/components/search-results/filters/facets/StatsFacet.vue.d.ts +2 -0
  41. package/dist/iife/components/search-results/products/product-card/SearchResultsProductCard.vue.d.ts +2 -1
  42. package/dist/iife/components/search-results/products/product-card/badges/SearchResultGeneratedBadge.vue.d.ts +9 -0
  43. package/dist/iife/components/search-results/products/product-card/badges/SearchResultGeneratedBadges.vue.d.ts +9 -0
  44. package/dist/iife/components/search-results/products/product-card/badges/SearchResultsBadgeWrapper.vue.d.ts +2 -0
  45. package/dist/iife/index.d.ts +12 -9
  46. package/dist/iife/index.min.js +1 -1
  47. package/dist/iife/types/DocumentElement.d.ts +16 -15
  48. package/dist/iife/types/product-list/ProductListOptions.d.ts +5 -4
  49. package/dist/iife/types/search-results/BadgeOptions.d.ts +29 -12
  50. package/dist/iife/types/search-results/SearchResultsOptions.d.ts +6 -1
  51. package/dist/iife/types/search-results/SearchResultsProductCardOptions.d.ts +2 -1
  52. package/dist/style.css +1 -1
  53. package/package.json +1 -1
@@ -3,4 +3,5 @@ import { ProductListOptions } from "./types/product-list/ProductListOptions";
3
3
  export default class ProductListEntry extends Vue {
4
4
  productListOptions: ProductListOptions;
5
5
  get fullProductListOptions(): ProductListOptions;
6
+ fetch(): void;
6
7
  }
@@ -3,4 +3,5 @@ import Vue from "vue";
3
3
  export default class SearchBoxEntry extends Vue {
4
4
  searchBoxOptions: SearchBoxOptions;
5
5
  get fullSearchBoxOptions(): SearchBoxOptions;
6
+ fetch(): void;
6
7
  }
@@ -3,4 +3,5 @@ import { SearchResultsOptions } from "./types/search-results/SearchResultsOption
3
3
  export default class SearchResultsEntry extends Vue {
4
4
  searchResultsOptions: SearchResultsOptions;
5
5
  get fullSearchResultsOptions(): SearchResultsOptions;
6
+ fetch(): void;
6
7
  }
@@ -3,4 +3,5 @@ import { ProductListOptions } from "@/types/product-list/ProductListOptions";
3
3
  export default class ProductList extends Vue {
4
4
  options: ProductListOptions;
5
5
  get componentOptions(): ProductListOptions;
6
+ fetch(): void;
6
7
  }
@@ -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
  }
@@ -26,6 +26,8 @@ export default class TermFacet extends Vue {
26
26
  get facetMin(): number;
27
27
  get facetMax(): number;
28
28
  get statsSummary(): string;
29
+ get separator(): string;
30
+ get sliderInputFormat(): string | undefined;
29
31
  onMinValueChange(): void;
30
32
  onMaxValueChange(): void;
31
33
  handleInputChange(): void;
@@ -3,7 +3,7 @@ import { TrackableEventData } from "@/types/search-box/Common";
3
3
  import { BadgeOptions } from "@/types/search-results/BadgeOptions";
4
4
  import { ResultsLayout } from "@/types/search-results/ResultsLayout";
5
5
  import { RoutingBehavior } from "@/types/search-results/RoutingBehavior";
6
- import { SearchResultsOptionLabels } from "@/types/search-results/SearchResultsOptions";
6
+ import { SearchResultsOptionLabels, SearchResultsOptions } from "@/types/search-results/SearchResultsOptions";
7
7
  import { SearchResultsProductCardOptions } from "@/types/search-results/SearchResultsProductCardOptions";
8
8
  import { Document, ReportableEventType } from "@getlupa/client-sdk/Types";
9
9
  import Vue from "vue";
@@ -13,6 +13,7 @@ export default class SearchResultsProductCard extends Vue {
13
13
  isAdditionalPanel: boolean;
14
14
  layout: ResultsLayout;
15
15
  searchResultsRoutingBehavior: RoutingBehavior;
16
+ searchResultOptions: SearchResultsOptions;
16
17
  query: string;
17
18
  trackClick: ({ queryKey, data, }: {
18
19
  queryKey: string;
@@ -0,0 +1,9 @@
1
+ import { BadgeGenerateSeed, BadgeOptions } from "@/types/search-results/BadgeOptions";
2
+ import Vue from "vue";
3
+ export default class SearchResultGeneratedBadge extends Vue {
4
+ options: BadgeOptions;
5
+ badge: BadgeGenerateSeed;
6
+ get image(): string | undefined;
7
+ get hasAdditionalText(): boolean;
8
+ get hasTitleText(): boolean;
9
+ }
@@ -0,0 +1,9 @@
1
+ import { BadgeGenerateSeed, BadgeOptions } from "@/types/search-results/BadgeOptions";
2
+ import Vue from "vue";
3
+ export default class SearchResultGeneratedBadges extends Vue {
4
+ options: BadgeOptions;
5
+ get badgeField(): Record<string, any>[];
6
+ get keyMap(): Record<string, string>;
7
+ get hasBadges(): boolean;
8
+ get badges(): BadgeGenerateSeed[];
9
+ }
@@ -2,8 +2,10 @@ import { BadgeElement, BadgeOptions } from "@/types/search-results/BadgeOptions"
2
2
  import { AnchorPosition } from "@/types/search-results/SearchResultsProductCardOptions";
3
3
  import Vue from "vue";
4
4
  export default class SearchResultsBadgeWrapper extends Vue {
5
+ position: "card" | "image";
5
6
  options: BadgeOptions;
6
7
  get anchorPosition(): AnchorPosition;
7
8
  get badges(): BadgeElement[];
9
+ get displayBadges(): BadgeElement[];
8
10
  getBadgeComponent(type: string): string;
9
11
  }
@@ -1,21 +1,24 @@
1
1
  import { SearchBoxOptions } from "./types/search-box/SearchBoxOptions";
2
- import { CallbackContext, FacetFilterQuery, FacetStyle, SearchResultEventCallbacks, SearchResultsOptions } from "./types/search-results/SearchResultsOptions";
2
+ import { CallbackContext, FacetFilterQuery, FacetStyle, ResultFacetOptions, SearchResultEventCallbacks, SearchResultsFilterOptions, SearchResultsOptions } from "./types/search-results/SearchResultsOptions";
3
3
  import { SdkOptions, TrackingOptions, Environment, SortDirection } from "./types/General";
4
4
  import { CategoryFilterOptions, ProductListOptions } from "./types/product-list/ProductListOptions";
5
5
  import { AddToCartElement, CustomDocumentElement, CustomHtmlElement, DescriptionDocumentElement, DocumentElement, DocumentElementType, ImageDocumentElement, PriceElement, RatingElement, RegularPriceDocumentElement, TitleDocumentElement } from "./types/DocumentElement";
6
6
  import { SearchBoxPanelType } from "./types/search-box/SearchBoxPanel";
7
7
  import { RoutingBehavior } from "./types/search-results/RoutingBehavior";
8
8
  import { AnchorPosition } from "./types/search-results/SearchResultsProductCardOptions";
9
- import { BadgeType } from "./types/search-results/BadgeOptions";
9
+ import { BadgeGenerateOptions, BadgeGenerateSeed, BadgeOptions, BadgeType, SearchResultBadgeElement, SearchResultBadgeType } from "./types/search-results/BadgeOptions";
10
10
  import { SearchResultsSortOptions, SortOptions } from "./types/search-results/SearchResultsSort";
11
+ declare type MountOptions = {
12
+ fetch: boolean;
13
+ };
11
14
  declare const lupaSearch: {
12
- searchBox: (options: SearchBoxOptions) => void;
13
- searchResults: (options: SearchResultsOptions) => void;
15
+ searchBox: (options: SearchBoxOptions, mountOptions?: MountOptions | undefined) => void;
16
+ searchResults: (options: SearchResultsOptions, mountOptions?: MountOptions | undefined) => void;
14
17
  tracking: (options: TrackingOptions) => void;
15
- productList: (options: ProductListOptions) => void;
16
- clearSearchBox: () => void;
17
- clearSearchResults: () => void;
18
- clearProductList: () => void;
18
+ productList: (options: ProductListOptions, mountOptions?: MountOptions | undefined) => void;
19
+ clearSearchBox: (selector?: string | undefined) => void;
20
+ clearSearchResults: (selector?: string | undefined) => void;
21
+ clearProductList: (selector?: string | undefined) => void;
19
22
  };
20
- export { TrackingOptions, SearchBoxOptions, SearchResultsOptions, ProductListOptions, SdkOptions, DocumentElementType, SearchBoxPanelType, FacetStyle, Environment, RoutingBehavior, AnchorPosition, BadgeType, SortDirection, DocumentElement, ImageDocumentElement, TitleDocumentElement, DescriptionDocumentElement, CustomDocumentElement, PriceElement, RegularPriceDocumentElement, RatingElement, AddToCartElement, CustomHtmlElement, SortOptions, SearchResultsSortOptions, SearchResultEventCallbacks, CallbackContext, FacetFilterQuery, CategoryFilterOptions, };
23
+ export { TrackingOptions, SearchBoxOptions, SearchResultsOptions, ProductListOptions, SdkOptions, DocumentElementType, SearchBoxPanelType, FacetStyle, Environment, RoutingBehavior, AnchorPosition, BadgeType, SortDirection, DocumentElement, ImageDocumentElement, TitleDocumentElement, DescriptionDocumentElement, CustomDocumentElement, PriceElement, RegularPriceDocumentElement, RatingElement, AddToCartElement, CustomHtmlElement, SortOptions, SearchResultsSortOptions, SearchResultEventCallbacks, CallbackContext, FacetFilterQuery, CategoryFilterOptions, SearchResultsFilterOptions, SearchResultBadgeType, SearchResultBadgeElement, ResultFacetOptions, BadgeGenerateSeed, BadgeGenerateOptions, BadgeOptions, MountOptions, };
21
24
  export default lupaSearch;