@bridgeline-digital/hawksearch-handlebars-ui 5.0.7 → 5.0.9
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/configuration/configuration.models.d.ts +26 -1
- package/dist/helpers/helpers.d.ts +14 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/models/raw/raw-search.models.d.ts +2 -0
- package/dist/models/search.models.d.ts +6 -0
- package/dist/services/autocomplete.service.d.ts +1 -0
- package/dist/services/search.service.d.ts +2 -0
- package/dist/utilities/decodes.d.ts +1 -0
- package/dist/utilities/index.d.ts +1 -0
- package/package.json +1 -1
- package/readme.md +1 -1
|
@@ -175,6 +175,8 @@ export interface RawSearchRequest {
|
|
|
175
175
|
IgnoreSpellcheck?: boolean;
|
|
176
176
|
IndexName?: string;
|
|
177
177
|
IsInPreview?: boolean;
|
|
178
|
+
RequestType?: string;
|
|
179
|
+
kValue?: number;
|
|
178
180
|
Keyword?: string;
|
|
179
181
|
FacetSelections?: Record<string, Array<string> | undefined>;
|
|
180
182
|
MaxPerPage?: number;
|
|
@@ -16,6 +16,10 @@ export type FacetState = {
|
|
|
16
16
|
toggled?: boolean;
|
|
17
17
|
values?: Record<string, FacetValueState>;
|
|
18
18
|
};
|
|
19
|
+
/**
|
|
20
|
+
* @category Search
|
|
21
|
+
*/
|
|
22
|
+
export type RequestType = 'DefaultSearch' | 'ImageSearch' | 'ConceptSearch';
|
|
19
23
|
/**
|
|
20
24
|
* @category Search
|
|
21
25
|
*/
|
|
@@ -229,6 +233,8 @@ export interface SearchRequest {
|
|
|
229
233
|
newRequest: boolean;
|
|
230
234
|
pageSize?: number;
|
|
231
235
|
page?: number;
|
|
236
|
+
requestType?: string;
|
|
237
|
+
kValue?: 3;
|
|
232
238
|
query?: string;
|
|
233
239
|
searchWithin?: string;
|
|
234
240
|
sort?: string;
|
|
@@ -2,6 +2,7 @@ import { AutocompleteResponse } from '@models';
|
|
|
2
2
|
import { BaseService } from '@services';
|
|
3
3
|
export declare class AutocompleteService extends BaseService {
|
|
4
4
|
protected baseUrl: string;
|
|
5
|
+
private decodeQuery;
|
|
5
6
|
query(query?: string): Promise<AutocompleteResponse>;
|
|
6
7
|
private executeAutocomplete;
|
|
7
8
|
private convertResponse;
|
|
@@ -3,6 +3,8 @@ import { BaseService } from '@services';
|
|
|
3
3
|
export declare class SearchService extends BaseService {
|
|
4
4
|
protected baseUrl: string;
|
|
5
5
|
private facetExclusionPrefix;
|
|
6
|
+
private decodeQuery;
|
|
7
|
+
private decodeFacetValues;
|
|
6
8
|
private shouldRenderUI;
|
|
7
9
|
search(searchRequest: SearchRequest): Promise<SearchResponse>;
|
|
8
10
|
query(query?: string, selectedFacets?: SelectedFacets | undefined, disableSpellcheck?: boolean): Promise<SearchResponse | void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function decodeNestedURI(value: string): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bridgeline-digital/hawksearch-handlebars-ui",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.9",
|
|
4
4
|
"description": "The HawkSearch Handlebars UI package allows you to add a highly-customizable search results page to your website powered by HawkSearch.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
package/readme.md
CHANGED