@getlupa/client 0.10.1 → 0.10.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.
- package/dist/cjs/components/search-box/SearchBox.vue.d.ts +6 -1
- package/dist/cjs/components/search-box/SearchBoxInput.vue.d.ts +2 -0
- package/dist/cjs/components/search-box/products/SearchBoxProduct.vue.d.ts +1 -0
- package/dist/cjs/components/search-results/SearchResults.vue.d.ts +3 -0
- package/dist/cjs/components/search-results/SearchResultsTitle.vue.d.ts +2 -0
- package/dist/cjs/components/search-results/products/SearchResultsToolbar.vue.d.ts +1 -0
- package/dist/cjs/components/search-results/products/product-card/SearchResultsProductCard.vue.d.ts +1 -0
- package/dist/cjs/components/search-results/products/product-card/elements/SearchResultsProductCustom.vue.d.ts +2 -0
- package/dist/cjs/constants/development/searchBoxDev.example.const.d.ts +1 -0
- package/dist/cjs/constants/development/searchResultsDev.example.const.d.ts +1 -0
- package/dist/cjs/constants/global.const.d.ts +1 -0
- package/dist/cjs/index.min.js +366 -147
- package/dist/cjs/store/modules/tracking.d.ts +3 -1
- package/dist/cjs/types/AnalyticsOptions.d.ts +3 -2
- package/dist/cjs/types/search-box/Common.d.ts +1 -0
- package/dist/cjs/types/search-box/SearchBoxOptions.d.ts +1 -0
- package/dist/cjs/types/search-container/SearchContainerOptions.d.ts +1 -0
- package/dist/cjs/types/search-results/SearchResultsProductCardOptions.d.ts +1 -0
- package/dist/cjs/utils/shadowDom.utils.d.ts +5 -0
- package/dist/containerStyle.js +1 -0
- package/dist/es/components/search-box/SearchBox.vue.d.ts +6 -1
- package/dist/es/components/search-box/SearchBoxInput.vue.d.ts +2 -0
- package/dist/es/components/search-box/products/SearchBoxProduct.vue.d.ts +1 -0
- package/dist/es/components/search-results/SearchResults.vue.d.ts +3 -0
- package/dist/es/components/search-results/SearchResultsTitle.vue.d.ts +2 -0
- package/dist/es/components/search-results/products/SearchResultsToolbar.vue.d.ts +1 -0
- package/dist/es/components/search-results/products/product-card/SearchResultsProductCard.vue.d.ts +1 -0
- package/dist/es/components/search-results/products/product-card/elements/SearchResultsProductCustom.vue.d.ts +2 -0
- package/dist/es/constants/development/searchBoxDev.example.const.d.ts +1 -0
- package/dist/es/constants/development/searchResultsDev.example.const.d.ts +1 -0
- package/dist/es/constants/global.const.d.ts +1 -0
- package/dist/es/index.min.js +366 -147
- package/dist/es/store/modules/tracking.d.ts +3 -1
- package/dist/es/types/AnalyticsOptions.d.ts +3 -2
- package/dist/es/types/search-box/Common.d.ts +1 -0
- package/dist/es/types/search-box/SearchBoxOptions.d.ts +1 -0
- package/dist/es/types/search-container/SearchContainerOptions.d.ts +1 -0
- package/dist/es/types/search-results/SearchResultsProductCardOptions.d.ts +1 -0
- package/dist/es/utils/shadowDom.utils.d.ts +5 -0
- package/dist/iife/components/search-box/SearchBox.vue.d.ts +6 -1
- package/dist/iife/components/search-box/SearchBoxInput.vue.d.ts +2 -0
- package/dist/iife/components/search-box/products/SearchBoxProduct.vue.d.ts +1 -0
- package/dist/iife/components/search-results/SearchResults.vue.d.ts +3 -0
- package/dist/iife/components/search-results/SearchResultsTitle.vue.d.ts +2 -0
- package/dist/iife/components/search-results/products/SearchResultsToolbar.vue.d.ts +1 -0
- package/dist/iife/components/search-results/products/product-card/SearchResultsProductCard.vue.d.ts +1 -0
- package/dist/iife/components/search-results/products/product-card/elements/SearchResultsProductCustom.vue.d.ts +2 -0
- package/dist/iife/constants/development/searchBoxDev.example.const.d.ts +1 -0
- package/dist/iife/constants/development/searchResultsDev.example.const.d.ts +1 -0
- package/dist/iife/constants/global.const.d.ts +1 -0
- package/dist/iife/index.min.js +1 -1
- package/dist/iife/store/modules/tracking.d.ts +3 -1
- package/dist/iife/types/AnalyticsOptions.d.ts +3 -2
- package/dist/iife/types/search-box/Common.d.ts +1 -0
- package/dist/iife/types/search-box/SearchBoxOptions.d.ts +1 -0
- package/dist/iife/types/search-container/SearchContainerOptions.d.ts +1 -0
- package/dist/iife/types/search-results/SearchResultsProductCardOptions.d.ts +1 -0
- package/dist/iife/utils/shadowDom.utils.d.ts +5 -0
- package/dist/lupaContainerStyle.css +1 -0
- package/dist/style.css +1 -1
- package/package.json +3 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FetchedData, HighlightedDocInfo, InputSuggestion, InputSuggestionFacet, SelectedData, TrackableEventData } from "@/types/search-box/Common";
|
|
2
2
|
import { SearchBoxInputOptions, SearchBoxOptions, SearchBoxPanelOptions } from "@/types/search-box/SearchBoxOptions";
|
|
3
3
|
import { QueryParams } from "@/types/search-results/QueryParams";
|
|
4
|
-
import { Document } from "@getlupa/client-sdk/Types";
|
|
4
|
+
import { Document, PublicQuery } from "@getlupa/client-sdk/Types";
|
|
5
5
|
import Vue from "vue";
|
|
6
6
|
declare const params: import("vuex-class/lib/bindings").BindingHelpers;
|
|
7
7
|
export default class SearchBox extends Vue {
|
|
@@ -28,6 +28,10 @@ export default class SearchBox extends Vue {
|
|
|
28
28
|
queryKey: string;
|
|
29
29
|
data: TrackableEventData;
|
|
30
30
|
}) => void;
|
|
31
|
+
trackSearch: ({ queryKey, query, }: {
|
|
32
|
+
queryKey: string;
|
|
33
|
+
query: PublicQuery;
|
|
34
|
+
}) => void;
|
|
31
35
|
setSearchResultsLink: (searchResultsLink: string) => {
|
|
32
36
|
searchResultsLink: string;
|
|
33
37
|
};
|
|
@@ -63,6 +67,7 @@ export default class SearchBox extends Vue {
|
|
|
63
67
|
query: string;
|
|
64
68
|
}): void;
|
|
65
69
|
trackDocumentClick(doc: HighlightedDocInfo): void;
|
|
70
|
+
trackSearchQuery(query?: string): void;
|
|
66
71
|
trackSuggestionClick(suggestion?: string): void;
|
|
67
72
|
resetValues(): void;
|
|
68
73
|
handleProductClick(): void;
|
|
@@ -2,10 +2,12 @@ import { QueryParams } from "@/types/search-results/QueryParams";
|
|
|
2
2
|
import { ProductGrid, SearchResultsDidYouMeanLabels, SearchResultsOptions, SearchResultsProductOptions } from "@/types/search-results/SearchResultsOptions";
|
|
3
3
|
import { FilterGroup, PublicQuery, SearchQueryResult } from "@getlupa/client-sdk/Types";
|
|
4
4
|
import Vue from "vue";
|
|
5
|
+
import { AnalyticsEventType } from "@/types/AnalyticsOptions";
|
|
5
6
|
export default class SearchResults extends Vue {
|
|
6
7
|
options: SearchResultsOptions;
|
|
7
8
|
initialFilters: FilterGroup;
|
|
8
9
|
isProductList: boolean;
|
|
10
|
+
isContainer: boolean;
|
|
9
11
|
get productsOptions(): SearchResultsProductOptions;
|
|
10
12
|
currentQueryText: string;
|
|
11
13
|
hasResults: boolean;
|
|
@@ -16,6 +18,7 @@ export default class SearchResults extends Vue {
|
|
|
16
18
|
trackSearch: ({ queryKey, query, }: {
|
|
17
19
|
queryKey: string;
|
|
18
20
|
query: PublicQuery;
|
|
21
|
+
type?: AnalyticsEventType;
|
|
19
22
|
}) => void;
|
|
20
23
|
trackResults: ({ queryKey, results, }: {
|
|
21
24
|
queryKey: string;
|
|
@@ -3,6 +3,7 @@ import Vue from "vue";
|
|
|
3
3
|
export default class SearchResultsTitle extends Vue {
|
|
4
4
|
options: SearchResultsOptions;
|
|
5
5
|
isProductList: boolean;
|
|
6
|
+
showSummary: boolean;
|
|
6
7
|
currentQueryText: string;
|
|
7
8
|
totalItems: number;
|
|
8
9
|
suggestedSearchText: string;
|
|
@@ -10,5 +11,6 @@ export default class SearchResultsTitle extends Vue {
|
|
|
10
11
|
get showProductCount(): boolean;
|
|
11
12
|
get showSearchTitle(): boolean;
|
|
12
13
|
get descriptionTop(): string | undefined;
|
|
14
|
+
get summaryLabel(): string;
|
|
13
15
|
getLabel(label: string): string;
|
|
14
16
|
}
|
|
@@ -21,6 +21,7 @@ export default class SearchResultsToolbar extends Vue {
|
|
|
21
21
|
get displayPageSelect(): boolean;
|
|
22
22
|
get searchSummaryLabel(): string;
|
|
23
23
|
get showMobileFilterCount(): boolean;
|
|
24
|
+
get hasResults(): boolean;
|
|
24
25
|
currentResolutionPageSizes: number[];
|
|
25
26
|
removeAllFilters: () => {
|
|
26
27
|
params: QueryParams;
|
|
@@ -4,7 +4,9 @@ import { CustomDocumentElement } from "@/types/DocumentElement";
|
|
|
4
4
|
export default class SearchResultsProductCustom extends Vue {
|
|
5
5
|
item: Document;
|
|
6
6
|
options: CustomDocumentElement;
|
|
7
|
+
get value(): unknown;
|
|
7
8
|
get text(): string;
|
|
9
|
+
get isArray(): boolean;
|
|
8
10
|
get className(): string;
|
|
9
11
|
get label(): string | undefined;
|
|
10
12
|
get isHtml(): boolean;
|
|
@@ -13,3 +13,4 @@ export declare const CURRENCY_KEY_INDICATOR = "price";
|
|
|
13
13
|
export declare const DEFAULT_PAGE_SIZE = 12;
|
|
14
14
|
export declare const DEFAULT_PAGE_SIZE_SELECTION: number[];
|
|
15
15
|
export declare const LUPA_ROUTING_EVENT = "lupaRedirect";
|
|
16
|
+
export declare const DEFAULT_CONTAINER_STYLE = "containerStyle.css";
|