@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.
@@ -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;
@@ -3,4 +3,5 @@
3
3
  */
4
4
  export * from './colors';
5
5
  export * from './dates';
6
+ export * from './decodes';
6
7
  export * from './formatters';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bridgeline-digital/hawksearch-handlebars-ui",
3
- "version": "5.0.7",
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
@@ -36,4 +36,4 @@ To display a landing page or recommendations instead of search results, simply r
36
36
 
37
37
  ## Documentation
38
38
 
39
- Documentation is available at http://handlebars-ui.hawksearch.com/5.0.6/.
39
+ Documentation is available at http://handlebars-ui.hawksearch.com/5.0.8/.