@getlupa/client 0.5.1-alpha-10 → 0.5.1-alpha-13
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/products/SearchBoxProduct.vue.d.ts +3 -1
- package/dist/cjs/components/search-results/SearchResults.vue.d.ts +7 -0
- package/dist/cjs/index.min.js +119 -58
- package/dist/cjs/store/modules/options.d.ts +3 -0
- package/dist/cjs/store/modules/params.d.ts +4 -0
- package/dist/cjs/types/search-box/SearchBoxOptions.d.ts +2 -0
- package/dist/cjs/utils/query.utils.d.ts +1 -1
- package/dist/cjs/utils/routing.utils.d.ts +3 -0
- package/dist/es/components/search-box/products/SearchBoxProduct.vue.d.ts +3 -1
- package/dist/es/components/search-results/SearchResults.vue.d.ts +7 -0
- package/dist/es/index.min.js +119 -58
- package/dist/es/store/modules/options.d.ts +3 -0
- package/dist/es/store/modules/params.d.ts +4 -0
- package/dist/es/types/search-box/SearchBoxOptions.d.ts +2 -0
- package/dist/es/utils/query.utils.d.ts +1 -1
- package/dist/es/utils/routing.utils.d.ts +3 -0
- package/dist/iife/components/search-box/products/SearchBoxProduct.vue.d.ts +3 -1
- package/dist/iife/components/search-results/SearchResults.vue.d.ts +7 -0
- package/dist/iife/index.min.js +1 -1
- package/dist/iife/store/modules/options.d.ts +3 -0
- package/dist/iife/store/modules/params.d.ts +4 -0
- package/dist/iife/types/search-box/SearchBoxOptions.d.ts +2 -0
- package/dist/iife/utils/query.utils.d.ts +1 -1
- package/dist/iife/utils/routing.utils.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SearchBoxOptions } from "@/types/search-box/SearchBoxOptions";
|
|
2
|
+
import { RoutingBehavior } from "@/types/search-results/RoutingBehavior";
|
|
2
3
|
import { SearchResultsOptions } from "@/types/search-results/SearchResultsOptions";
|
|
3
4
|
import { FilterGroup, Options } from "@getlupa/client-sdk/Types";
|
|
4
5
|
import { VuexModule } from "vuex-module-decorators";
|
|
@@ -9,6 +10,8 @@ export default class OptionsModule extends VuexModule {
|
|
|
9
10
|
get envOptions(): Options;
|
|
10
11
|
get classMap(): Record<string, string>;
|
|
11
12
|
get initialFilters(): FilterGroup;
|
|
13
|
+
get boxRoutingBehavior(): RoutingBehavior;
|
|
14
|
+
get defaultSearchResultPageSize(): number;
|
|
12
15
|
setSearchBoxOptions({ options }: {
|
|
13
16
|
options: SearchBoxOptions;
|
|
14
17
|
}): void;
|
|
@@ -32,6 +32,10 @@ export default class ParamsModule extends VuexModule {
|
|
|
32
32
|
params?: QueryParams;
|
|
33
33
|
searchString?: string;
|
|
34
34
|
};
|
|
35
|
+
handleNoResultsFlag({ resultCount, noResultsParam, }: {
|
|
36
|
+
resultCount: number;
|
|
37
|
+
noResultsParam?: string;
|
|
38
|
+
}): void;
|
|
35
39
|
goToResults({ searchText, facet, }: {
|
|
36
40
|
searchText: string;
|
|
37
41
|
facet?: InputSuggestionFacet;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { SdkOptions } from "../General";
|
|
2
|
+
import { RoutingBehavior } from "../search-results/RoutingBehavior";
|
|
2
3
|
import { SearchBoxHistory } from "./SearchBoxHistory";
|
|
3
4
|
import { SearchBoxPanel } from "./SearchBoxPanel";
|
|
4
5
|
export declare type SearchBoxOptions = SearchBoxPanelOptions & {
|
|
5
6
|
inputSelector: string;
|
|
6
7
|
searchTriggers?: string[];
|
|
8
|
+
routingBehavior?: RoutingBehavior;
|
|
7
9
|
};
|
|
8
10
|
export declare type SearchBoxOptionLabels = {
|
|
9
11
|
placeholder: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { QueryParams } from "@/types/search-results/QueryParams";
|
|
2
2
|
import { SearchResultsSortOptions } from "@/types/search-results/SearchResultsSort";
|
|
3
3
|
import { FilterGroup, PublicQuery } from "@getlupa/client-sdk/Types";
|
|
4
|
-
export declare const createPublicQuery: (queryParams: QueryParams, sortOptions?: SearchResultsSortOptions[] | undefined) => PublicQuery;
|
|
4
|
+
export declare const createPublicQuery: (queryParams: QueryParams, sortOptions?: SearchResultsSortOptions[] | undefined, defaultPageSize?: number | undefined) => PublicQuery;
|
|
5
5
|
export declare const getPublicQuery: (publicQuery: PublicQuery, initialFilters: FilterGroup, isProductList: boolean) => PublicQuery;
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
+
import { InputSuggestionFacet } from "@/types/search-box/Common";
|
|
2
|
+
import { RoutingBehavior } from "..";
|
|
1
3
|
export declare const emitRoutingEvent: (url: string) => void;
|
|
2
4
|
export declare const handleRoutingEvent: (link: string, event?: Event | undefined, hasEventRouting?: boolean) => void;
|
|
5
|
+
export declare const redirectToResultsPage: (link: string, searchText: string, facet?: InputSuggestionFacet | undefined, routingBehavior?: RoutingBehavior) => void;
|