@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Handlebars from 'handlebars';
|
|
2
|
-
import { ItemType, RecommendationsResponse, SearchRequest, SearchResponse } from '@models';
|
|
2
|
+
import { ItemType, RecommendationsResponse, RequestType, SearchRequest, SearchResponse } from '@models';
|
|
3
3
|
import { AutocompleteService, RecommendationsService, SearchService, TrackingService } from '../services';
|
|
4
4
|
export interface BaseComponentConfig {
|
|
5
5
|
/**
|
|
@@ -339,6 +339,13 @@ export interface HawkSearchConfig {
|
|
|
339
339
|
* `false`
|
|
340
340
|
*/
|
|
341
341
|
recommendationsEnabled?: boolean;
|
|
342
|
+
/**
|
|
343
|
+
* Whether to automatically URI decode the search query value. Runs recursively until value is fully decoded. For example, `Test%2520Value` would become `Test Value`.
|
|
344
|
+
*
|
|
345
|
+
* #### Default Value
|
|
346
|
+
* `false`
|
|
347
|
+
*/
|
|
348
|
+
decodeQuery?: boolean;
|
|
342
349
|
};
|
|
343
350
|
search?: {
|
|
344
351
|
/**
|
|
@@ -416,6 +423,20 @@ export interface HawkSearchConfig {
|
|
|
416
423
|
*/
|
|
417
424
|
sort?: string;
|
|
418
425
|
};
|
|
426
|
+
/**
|
|
427
|
+
* Whether to automatically URI decode the search query value. Runs recursively until value is fully decoded. For example, `Test%2520Value` would become `Test Value`.
|
|
428
|
+
*
|
|
429
|
+
* #### Default Value
|
|
430
|
+
* `false`
|
|
431
|
+
*/
|
|
432
|
+
decodeQuery?: boolean;
|
|
433
|
+
/**
|
|
434
|
+
* Whether to automatically URI decode facet selection values. Runs recursively until value is fully decoded. For example, `Test%2520Value` would become `Test Value`.
|
|
435
|
+
*
|
|
436
|
+
* #### Default Value
|
|
437
|
+
* `false`
|
|
438
|
+
*/
|
|
439
|
+
decodeFacetValues?: boolean;
|
|
419
440
|
};
|
|
420
441
|
recommendations?: {
|
|
421
442
|
/**
|
|
@@ -552,6 +573,10 @@ export interface HawkSearchConfig {
|
|
|
552
573
|
assets?: string;
|
|
553
574
|
content?: string;
|
|
554
575
|
};
|
|
576
|
+
/**
|
|
577
|
+
* Specifies what type of request should be performed
|
|
578
|
+
*/
|
|
579
|
+
requestType?: RequestType;
|
|
555
580
|
}
|
|
556
581
|
export interface HawkSearchGlobal {
|
|
557
582
|
config: HawkSearchConfig;
|
|
@@ -198,3 +198,17 @@ export declare function string(value: string | Array<string> | undefined, defaul
|
|
|
198
198
|
* @returns Difference
|
|
199
199
|
*/
|
|
200
200
|
export declare function subtract(value1: number, value2: number): number;
|
|
201
|
+
/**
|
|
202
|
+
* This function returns a decoded URI string
|
|
203
|
+
*
|
|
204
|
+
* @param value HTML value
|
|
205
|
+
* @returns Decoded URI value
|
|
206
|
+
*/
|
|
207
|
+
export declare function decode(value: string): string;
|
|
208
|
+
/**
|
|
209
|
+
* This function returns a recursively decoded URI string
|
|
210
|
+
*
|
|
211
|
+
* @param value HTML value
|
|
212
|
+
* @returns Decoded URI value
|
|
213
|
+
*/
|
|
214
|
+
export declare function decodeNested(value: string): string;
|