@getlupa/client 0.5.1-alpha-4 → 0.5.1-alpha-7

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 (31) hide show
  1. package/dist/cjs/components/product-list/CategoryFilter.vue.d.ts +3 -4
  2. package/dist/cjs/components/product-list/CategoryFilterItem.vue.d.ts +2 -3
  3. package/dist/cjs/components/search-results/SearchResultsBreadcrumbs.vue.d.ts +4 -1
  4. package/dist/cjs/components/search-results/products/product-card/SearchResultsProductCard.vue.d.ts +1 -2
  5. package/dist/cjs/components/search-results/products/product-card/elements/SearchResultsProductTitle.vue.d.ts +1 -1
  6. package/dist/cjs/index.d.ts +2 -2
  7. package/dist/cjs/index.min.js +12940 -12908
  8. package/dist/cjs/types/product-list/ProductListOptions.d.ts +1 -1
  9. package/dist/cjs/utils/link.utils.d.ts +2 -0
  10. package/dist/cjs/utils/routing.utils.d.ts +1 -0
  11. package/dist/es/components/product-list/CategoryFilter.vue.d.ts +3 -4
  12. package/dist/es/components/product-list/CategoryFilterItem.vue.d.ts +2 -3
  13. package/dist/es/components/search-results/SearchResultsBreadcrumbs.vue.d.ts +4 -1
  14. package/dist/es/components/search-results/products/product-card/SearchResultsProductCard.vue.d.ts +1 -2
  15. package/dist/es/components/search-results/products/product-card/elements/SearchResultsProductTitle.vue.d.ts +1 -1
  16. package/dist/es/index.d.ts +2 -2
  17. package/dist/es/index.min.js +12940 -12908
  18. package/dist/es/types/product-list/ProductListOptions.d.ts +1 -1
  19. package/dist/es/utils/link.utils.d.ts +2 -0
  20. package/dist/es/utils/routing.utils.d.ts +1 -0
  21. package/dist/iife/components/product-list/CategoryFilter.vue.d.ts +3 -4
  22. package/dist/iife/components/product-list/CategoryFilterItem.vue.d.ts +2 -3
  23. package/dist/iife/components/search-results/SearchResultsBreadcrumbs.vue.d.ts +4 -1
  24. package/dist/iife/components/search-results/products/product-card/SearchResultsProductCard.vue.d.ts +1 -2
  25. package/dist/iife/components/search-results/products/product-card/elements/SearchResultsProductTitle.vue.d.ts +1 -1
  26. package/dist/iife/index.d.ts +2 -2
  27. package/dist/iife/index.min.js +1 -1
  28. package/dist/iife/types/product-list/ProductListOptions.d.ts +1 -1
  29. package/dist/iife/utils/link.utils.d.ts +2 -0
  30. package/dist/iife/utils/routing.utils.d.ts +1 -0
  31. package/package.json +1 -1
@@ -24,5 +24,5 @@ export declare type CategoryFilterOptions = {
24
24
  };
25
25
  export declare type ProductListOptions = SearchResultsOptions & {
26
26
  initialFilters?: FilterGroup;
27
- categories?: CategoryFilterOptions;
27
+ categories: CategoryFilterOptions;
28
28
  };
@@ -2,3 +2,5 @@ import { InputSuggestionFacet } from "@/types/search-box/Common";
2
2
  export declare const generateLink: (linkPattern: string, document: Record<string, unknown>) => string;
3
3
  export declare const generateResultLink: (link: string, searchText?: string | undefined, facet?: InputSuggestionFacet | undefined) => string;
4
4
  export declare const getPathName: (resultPageLink: string) => string;
5
+ export declare const getRelativePath: (link: string) => string;
6
+ export declare const linksMatch: (link1?: string | undefined, link2?: string | undefined) => boolean;
@@ -1 +1,2 @@
1
1
  export declare const emitRoutingEvent: (url: string) => void;
2
+ export declare const handleRoutingEvent: (link: string, event?: Event | undefined, hasEventRouting?: boolean) => void;
@@ -6,15 +6,14 @@ export default class CategoryFilter extends Vue {
6
6
  categoryChildren: Record<string, string>[];
7
7
  envOptions: Options;
8
8
  get hasBackButton(): boolean;
9
- get hasDirectRouting(): boolean;
9
+ get hasEventRouting(): boolean;
10
10
  get backTitle(): string | undefined;
11
- get backUrl(): string | undefined;
12
11
  get backUrlLink(): string | undefined;
13
12
  get parentTitle(): string | undefined;
14
- get parentUrl(): string | undefined;
15
13
  get parentUrlLink(): string | undefined;
16
14
  get isActive(): boolean;
17
15
  mounted(): Promise<void>;
18
16
  getCategoryKey(item: Record<string, string>): string;
19
- handleNavigation(url: string): void;
17
+ handleNavigationParent(event?: Event): void;
18
+ handleNavigationBack(event?: Event): void;
20
19
  }
@@ -5,8 +5,7 @@ export default class CategoryFilterItem extends Vue {
5
5
  item: Record<string, string>;
6
6
  get title(): string;
7
7
  get urlLink(): string;
8
- get url(): string | undefined;
9
8
  get isActive(): boolean;
10
- get hasDirectRouting(): boolean;
11
- handleNavigation(): void;
9
+ get hasEventRouting(): boolean;
10
+ handleNavigation(event?: Event): void;
12
11
  }
@@ -1,7 +1,10 @@
1
- import { SearchResultsBreadcrumb } from "@/types/search-results/SearchResultsOptions";
1
+ import { SearchResultsBreadcrumb, SearchResultsOptions } from "@/types/search-results/SearchResultsOptions";
2
2
  import Vue from "vue";
3
3
  export default class SearchResultsBreadcrumbs extends Vue {
4
4
  breadcrumbs: SearchResultsBreadcrumb[];
5
5
  currentQueryText: string;
6
+ searchResultOptions: SearchResultsOptions;
7
+ get hasEventRouting(): boolean;
6
8
  getLabel(label: string): string;
9
+ handleNavigation(event: Event, link: string): void;
7
10
  }
@@ -23,7 +23,6 @@ export default class SearchResultsProductCard extends Vue {
23
23
  get labels(): SearchResultsOptionLabels;
24
24
  get link(): string;
25
25
  get hasEventRouting(): boolean;
26
- get url(): string | undefined;
27
26
  isInStock: boolean;
28
27
  mounted(): void;
29
28
  checkIfIsInStock(): Promise<void>;
@@ -32,5 +31,5 @@ export default class SearchResultsProductCard extends Vue {
32
31
  handleProductEvent(item: {
33
32
  type: ReportableEventType;
34
33
  }): void;
35
- handleNavigation(): void;
34
+ handleNavigation(event?: Event): void;
36
35
  }
@@ -11,5 +11,5 @@ export default class SearchResultsProductTitle extends Vue {
11
11
  get isHtml(): boolean;
12
12
  get maxLines(): number;
13
13
  get hasEventRouting(): boolean;
14
- handleNavigation(): void;
14
+ handleNavigation(event?: Event): void;
15
15
  }
@@ -1,6 +1,6 @@
1
1
  import { SearchBoxOptions } from "./types/search-box/SearchBoxOptions";
2
2
  import { SearchResultsOptions } from "./types/search-results/SearchResultsOptions";
3
- import { TrackingOptions } from "./types/General";
3
+ import { SdkOptions, TrackingOptions } from "./types/General";
4
4
  import { ProductListOptions } from "./types/product-list/ProductListOptions";
5
5
  declare const lupaSearch: {
6
6
  searchBox: (options: SearchBoxOptions) => void;
@@ -11,5 +11,5 @@ declare const lupaSearch: {
11
11
  clearSearchResults: () => void;
12
12
  clearProductList: () => void;
13
13
  };
14
- export { TrackingOptions, SearchBoxOptions, SearchResultsOptions };
14
+ export { TrackingOptions, SearchBoxOptions, SearchResultsOptions, ProductListOptions, SdkOptions, };
15
15
  export default lupaSearch;