@bridgeline-digital/hawksearch-handlebars-ui 5.1.2-beta.3 → 5.2.0

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.
Files changed (91) hide show
  1. package/changelog.md +41 -0
  2. package/package.json +1 -1
  3. package/readme.md +1 -1
  4. package/dist/components/base.component.d.ts +0 -139
  5. package/dist/components/content/content-types/base-content.component.d.ts +0 -9
  6. package/dist/components/content/content-types/custom-content/custom-content.component.d.ts +0 -21
  7. package/dist/components/content/content-types/featured-items-content/featured-items-content.component.d.ts +0 -22
  8. package/dist/components/content/content-types/featured-items-content-item/featured-items-content-item.component.d.ts +0 -39
  9. package/dist/components/content/content-types/image-content/image-content.component.d.ts +0 -22
  10. package/dist/components/content/content-types/index.d.ts +0 -6
  11. package/dist/components/content/content-types/popular-queries-content/popular-queries-content.component.d.ts +0 -22
  12. package/dist/components/content/content-zone/content-zone.component.d.ts +0 -44
  13. package/dist/components/content/index.d.ts +0 -2
  14. package/dist/components/general/date-picker/date-picker.component.d.ts +0 -117
  15. package/dist/components/general/icon/icon.component.d.ts +0 -38
  16. package/dist/components/general/index.d.ts +0 -5
  17. package/dist/components/general/range-slider/range-slider.component.d.ts +0 -54
  18. package/dist/components/general/rating/rating.component.d.ts +0 -39
  19. package/dist/components/general/tooltip/tooltip.component.d.ts +0 -32
  20. package/dist/components/index.d.ts +0 -229
  21. package/dist/components/landing-pages/index.d.ts +0 -1
  22. package/dist/components/landing-pages/landing-page/landing-page.component.d.ts +0 -32
  23. package/dist/components/recommendations/index.d.ts +0 -2
  24. package/dist/components/recommendations/recommendations/recommendations.component.d.ts +0 -87
  25. package/dist/components/recommendations/recommendations-item/recommendations-item.component.d.ts +0 -40
  26. package/dist/components/search/autocomplete/autocomplete.component.d.ts +0 -59
  27. package/dist/components/search/conceptsearch-field/conceptsearch-field.component.d.ts +0 -28
  28. package/dist/components/search/facet-types/base-facet.component.d.ts +0 -44
  29. package/dist/components/search/facet-types/checkbox-list-facet/checkbox-list-facet.component.d.ts +0 -36
  30. package/dist/components/search/facet-types/color-facet/color-facet.component.d.ts +0 -24
  31. package/dist/components/search/facet-types/date-range-facet/date-range-facet.component.d.ts +0 -33
  32. package/dist/components/search/facet-types/index.d.ts +0 -11
  33. package/dist/components/search/facet-types/linked-list-facet/link-list-facet.component.d.ts +0 -24
  34. package/dist/components/search/facet-types/numeric-range-facet/numeric-range-facet.component.d.ts +0 -32
  35. package/dist/components/search/facet-types/range-slider-facet/range-slider-facet.component.d.ts +0 -34
  36. package/dist/components/search/facet-types/recent-searches-facet/recent-searches-facet.component.d.ts +0 -29
  37. package/dist/components/search/facet-types/related-searches-facet/related-searches-facet.component.d.ts +0 -29
  38. package/dist/components/search/facet-types/search-within-facet/search-within-facet.component.d.ts +0 -29
  39. package/dist/components/search/facet-types/size-facet/size-facet.component.d.ts +0 -24
  40. package/dist/components/search/facet-wrapper/facet-wrapper.component.d.ts +0 -47
  41. package/dist/components/search/facets-list/facets-list.component.d.ts +0 -32
  42. package/dist/components/search/imagefinder-field/imagefinder-field.component.d.ts +0 -29
  43. package/dist/components/search/imagesearch-field/imagesearch-field.component.d.ts +0 -29
  44. package/dist/components/search/index.d.ts +0 -18
  45. package/dist/components/search/modified-query/modified-query.component.d.ts +0 -32
  46. package/dist/components/search/page-size/page-size.component.d.ts +0 -32
  47. package/dist/components/search/pagination/pagination.component.d.ts +0 -43
  48. package/dist/components/search/query-suggestions/query-suggestions.component.d.ts +0 -38
  49. package/dist/components/search/search-field/search-field.component.d.ts +0 -38
  50. package/dist/components/search/search-results/search-results.component.d.ts +0 -34
  51. package/dist/components/search/search-results-item/search-results-item.component.d.ts +0 -38
  52. package/dist/components/search/search-results-list/search-results-list.component.d.ts +0 -23
  53. package/dist/components/search/selected-facets/selected-facets.component.d.ts +0 -31
  54. package/dist/components/search/sorting/sorting.component.d.ts +0 -30
  55. package/dist/components/search/tabs/tabs.component.d.ts +0 -30
  56. package/dist/components/variants/index.d.ts +0 -1
  57. package/dist/components/variants/variant-selector/variant-selector.component.d.ts +0 -23
  58. package/dist/configuration/configuration.models.d.ts +0 -624
  59. package/dist/configuration/index.d.ts +0 -4
  60. package/dist/helpers/helpers.d.ts +0 -214
  61. package/dist/helpers/index.d.ts +0 -4
  62. package/dist/index.d.ts +0 -1
  63. package/dist/index.js +0 -3
  64. package/dist/index.js.LICENSE.txt +0 -26
  65. package/dist/index.js.map +0 -1
  66. package/dist/models/autocomplete.models.d.ts +0 -85
  67. package/dist/models/base.models.d.ts +0 -50
  68. package/dist/models/component.models.d.ts +0 -465
  69. package/dist/models/content.models.d.ts +0 -94
  70. package/dist/models/index.d.ts +0 -11
  71. package/dist/models/raw/index.d.ts +0 -4
  72. package/dist/models/raw/raw-autocomplete.models.d.ts +0 -51
  73. package/dist/models/raw/raw-base.models.d.ts +0 -8
  74. package/dist/models/raw/raw-recommendation.models.d.ts +0 -39
  75. package/dist/models/raw/raw-search.models.d.ts +0 -193
  76. package/dist/models/recommendation.models.d.ts +0 -31
  77. package/dist/models/search.models.d.ts +0 -250
  78. package/dist/models/tracking.models.d.ts +0 -42
  79. package/dist/placeholder.c99b7374b9bf579d0fd0.png +0 -0
  80. package/dist/services/autocomplete.service.d.ts +0 -11
  81. package/dist/services/base.service.d.ts +0 -64
  82. package/dist/services/index.d.ts +0 -8
  83. package/dist/services/recommendations.service.d.ts +0 -10
  84. package/dist/services/search.service.d.ts +0 -53
  85. package/dist/services/tracking.service.d.ts +0 -29
  86. package/dist/styles.136b28bd4e564a8f5bf3d6216289359e.css +0 -1
  87. package/dist/utilities/colors.d.ts +0 -1
  88. package/dist/utilities/dates.d.ts +0 -4
  89. package/dist/utilities/decodes.d.ts +0 -1
  90. package/dist/utilities/formatters.d.ts +0 -4
  91. package/dist/utilities/index.d.ts +0 -7
@@ -1,624 +0,0 @@
1
- import * as Handlebars from 'handlebars';
2
- import { ItemType, RecommendationsResponse, RequestType, SearchRequest, SearchResponse } from '@models';
3
- import { AutocompleteService, RecommendationsService, SearchService, TrackingService } from '../services';
4
- export interface BaseComponentConfig {
5
- /**
6
- * Specifies whether the component should be rendered in the [Shadow DOM](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_shadow_DOM). This is highly recommended to avoid CSS conflicts.
7
- *
8
- * #### Default Value
9
- * `true`
10
- */
11
- shadowDom?: boolean;
12
- /**
13
- * Specifies a custom template to be used instead of the default template.
14
- *
15
- * *For more information, see {@link Components}.*
16
- */
17
- template?: string;
18
- }
19
- export interface AutocompleteComponentConfig extends BaseComponentConfig {
20
- }
21
- export interface CheckboxListFacetComponentConfig extends BaseComponentConfig {
22
- excludeEnabled?: boolean;
23
- strings?: {
24
- collapse?: string;
25
- exclude?: string;
26
- expand?: string;
27
- include?: string;
28
- showFewer?: string;
29
- showMore?: string;
30
- };
31
- }
32
- export interface ColorFacetComponentConfig extends BaseComponentConfig {
33
- excludeEnabled?: boolean;
34
- strings?: {
35
- exclude?: string;
36
- include?: string;
37
- showFewer?: string;
38
- showMore?: string;
39
- };
40
- }
41
- export interface ContentZoneComponentConfig extends BaseComponentConfig {
42
- }
43
- export interface CustomContentComponentConfig extends BaseComponentConfig {
44
- }
45
- export interface DatePickerComponentConfig extends BaseComponentConfig {
46
- strings?: {
47
- defaultLabel?: string;
48
- next?: string;
49
- previous?: string;
50
- selectMonth?: string;
51
- viewCalendar?: string;
52
- };
53
- }
54
- export interface DateRangeFacetComponentConfig extends BaseComponentConfig {
55
- strings?: {
56
- endDate?: string;
57
- startDate?: string;
58
- };
59
- }
60
- export interface FacetsListComponentConfig extends BaseComponentConfig {
61
- strings?: {
62
- heading?: string;
63
- };
64
- }
65
- export interface FacetWrapperComponentConfig extends BaseComponentConfig {
66
- }
67
- export interface FeaturedItemsContentComponentConfig extends BaseComponentConfig {
68
- }
69
- export interface FeaturedItemsContentItemComponentConfig extends BaseComponentConfig {
70
- strings?: {
71
- sale?: string;
72
- };
73
- }
74
- export interface IconComponentConfig extends BaseComponentConfig {
75
- }
76
- export interface ImageContentComponentConfig extends BaseComponentConfig {
77
- }
78
- export interface LandingPageComponentConfig extends BaseComponentConfig {
79
- }
80
- export interface LinkListFacetComponentConfig extends BaseComponentConfig {
81
- strings?: {
82
- showFewer?: string;
83
- showMore?: string;
84
- };
85
- }
86
- export interface ModifiedQueryComponentConfig extends BaseComponentConfig {
87
- strings?: {
88
- showingResultsFor?: string;
89
- searchInsteadFor?: string;
90
- };
91
- }
92
- export interface NumericRangeFacetComponentConfig extends BaseComponentConfig {
93
- strings?: {
94
- maximum?: string;
95
- minimum?: string;
96
- };
97
- }
98
- export interface PageSizeComponentConfig extends BaseComponentConfig {
99
- }
100
- export interface PaginationComponentConfig extends BaseComponentConfig {
101
- strings?: {
102
- first?: string;
103
- last?: string;
104
- next?: string;
105
- previous?: string;
106
- summary?: string;
107
- };
108
- }
109
- export interface PopularQueriesContentComponentConfig extends BaseComponentConfig {
110
- }
111
- export interface QuerySuggestionsComponentConfig extends BaseComponentConfig {
112
- strings?: {
113
- orDelimeter?: string;
114
- prompt?: string;
115
- };
116
- }
117
- export interface RangeSliderComponentConfig extends BaseComponentConfig {
118
- strings?: {
119
- end?: string;
120
- start?: string;
121
- };
122
- }
123
- export interface RangeSliderFacetComponentConfig extends BaseComponentConfig {
124
- strings?: {
125
- maximum?: string;
126
- minimum?: string;
127
- };
128
- }
129
- export interface RatingComponentConfig extends BaseComponentConfig {
130
- }
131
- export interface RecentSearchesFacetComponentConfig extends BaseComponentConfig {
132
- }
133
- export interface RecommendationsItemComponentConfig extends BaseComponentConfig {
134
- strings?: {
135
- sale?: string;
136
- };
137
- }
138
- export interface RecommendationsComponentConfig extends BaseComponentConfig {
139
- carousel?: {
140
- autorotation?: {
141
- enabled?: boolean;
142
- interval?: number;
143
- };
144
- buttonsEnabled?: boolean;
145
- enabled?: boolean;
146
- paginationEnabled?: boolean;
147
- paginationSelectedCssClass?: string;
148
- };
149
- headingEnabled?: boolean;
150
- itemsToDisplay?: Breakpoints<number>;
151
- strings?: {
152
- next?: string;
153
- previous?: string;
154
- };
155
- }
156
- export interface RelatedSearchesFacetComponentConfig extends BaseComponentConfig {
157
- }
158
- export interface SearchFieldComponentConfig extends BaseComponentConfig {
159
- strings?: {
160
- placeholder?: string;
161
- };
162
- }
163
- export interface ImageSearchFieldComponentConfig extends BaseComponentConfig {
164
- strings?: {
165
- dragImageMessage?: string;
166
- uploadImageMessage?: string;
167
- dropImageMessage?: string;
168
- errorMessage?: string;
169
- };
170
- }
171
- export interface SearchResultsComponentConfig extends BaseComponentConfig {
172
- }
173
- export interface SearchResultsItemComponentConfig extends BaseComponentConfig {
174
- strings?: {
175
- sale?: string;
176
- };
177
- }
178
- export interface SearchResultsListComponentConfig extends BaseComponentConfig {
179
- }
180
- export interface SearchWithinFacetComponentConfig extends BaseComponentConfig {
181
- strings?: {
182
- label?: string;
183
- };
184
- }
185
- export interface SelectedFacetsComponentConfig extends BaseComponentConfig {
186
- strings?: {
187
- remove?: string;
188
- };
189
- }
190
- export interface SizeFacetComponentConfig extends BaseComponentConfig {
191
- excludeEnabled?: boolean;
192
- strings?: {
193
- exclude?: string;
194
- include?: string;
195
- showFewer?: string;
196
- showMore?: string;
197
- };
198
- }
199
- export interface SortingComponentConfig extends BaseComponentConfig {
200
- }
201
- export interface TabsComponentConfig extends BaseComponentConfig {
202
- }
203
- export interface TooltipComponentConfig extends BaseComponentConfig {
204
- }
205
- export interface VariantSelectorComponentConfig extends BaseComponentConfig {
206
- }
207
- export interface HawkSearchComponents {
208
- 'autocomplete'?: AutocompleteComponentConfig;
209
- 'checkbox-list-facet'?: CheckboxListFacetComponentConfig;
210
- 'color-facet'?: ColorFacetComponentConfig;
211
- 'content-zone'?: ContentZoneComponentConfig;
212
- 'custom-content'?: CustomContentComponentConfig;
213
- 'date-picker'?: DatePickerComponentConfig;
214
- 'date-range-facet'?: DateRangeFacetComponentConfig;
215
- 'facet-wrapper'?: FacetWrapperComponentConfig;
216
- 'facets-list'?: FacetsListComponentConfig;
217
- 'featured-items-content'?: FeaturedItemsContentComponentConfig;
218
- 'featured-items-content-item'?: FeaturedItemsContentItemComponentConfig;
219
- 'icon'?: IconComponentConfig;
220
- 'image-content'?: ImageContentComponentConfig;
221
- 'landing-page'?: LandingPageComponentConfig;
222
- 'link-list-facet'?: LinkListFacetComponentConfig;
223
- 'modified-query'?: ModifiedQueryComponentConfig;
224
- 'numeric-range-facet'?: NumericRangeFacetComponentConfig;
225
- 'page-size'?: PageSizeComponentConfig;
226
- 'pagination'?: PaginationComponentConfig;
227
- 'popular-queries-content'?: PopularQueriesContentComponentConfig;
228
- 'query-suggestions'?: QuerySuggestionsComponentConfig;
229
- 'range-slider'?: RangeSliderComponentConfig;
230
- 'range-slider-facet'?: RangeSliderFacetComponentConfig;
231
- 'rating'?: RatingComponentConfig;
232
- 'recommendations'?: RecommendationsComponentConfig;
233
- 'recommendations-item'?: RecommendationsItemComponentConfig;
234
- 'recent-searches-facet'?: RecentSearchesFacetComponentConfig;
235
- 'related-searches-facet'?: RelatedSearchesFacetComponentConfig;
236
- 'search-field'?: SearchFieldComponentConfig;
237
- 'conceptsearch-field'?: SearchFieldComponentConfig;
238
- 'imagesearch-field'?: SearchFieldComponentConfig;
239
- 'imagefinder-field'?: SearchFieldComponentConfig;
240
- 'search-results'?: SearchResultsComponentConfig;
241
- 'search-results-item'?: SearchResultsItemComponentConfig;
242
- 'search-results-list'?: SearchResultsListComponentConfig;
243
- 'search-within-facet'?: SearchWithinFacetComponentConfig;
244
- 'selected-facets'?: SelectedFacetsComponentConfig;
245
- 'size-facet'?: SizeFacetComponentConfig;
246
- 'sorting'?: SortingComponentConfig;
247
- 'tabs'?: TabsComponentConfig;
248
- 'tooltip'?: TooltipComponentConfig;
249
- 'variant-selector'?: VariantSelectorComponentConfig;
250
- }
251
- export type DisplayType = 'mobile' | 'tablet' | 'desktop';
252
- export interface Breakpoints<TValue> extends Record<DisplayType, TValue> {
253
- }
254
- export interface FieldMappings {
255
- /**
256
- * #### Default Value
257
- * `['description', 'longdescription']`
258
- */
259
- description?: string | Array<string>;
260
- /**
261
- * #### Default Value
262
- * `['imageurl', 'image']`
263
- */
264
- imageUrl?: string | Array<string>;
265
- /**
266
- * #### Default Value
267
- * `'price'`
268
- */
269
- price?: string | Array<string>;
270
- /**
271
- * #### Default Value
272
- * `'rating'`
273
- */
274
- rating?: string | Array<string>;
275
- /**
276
- * #### Default Value
277
- * `['saleprice']`
278
- */
279
- salePrice?: string | Array<string>;
280
- /**
281
- * #### Default Value
282
- * `['sku']`
283
- */
284
- sku?: string | Array<string>;
285
- /**
286
- * #### Default Value
287
- * `['title', 'name', 'itemname']`
288
- */
289
- title?: string | Array<string>;
290
- /**
291
- * #### Default Value
292
- * `'type'`
293
- */
294
- type?: string | Array<string>;
295
- /**
296
- * #### Default Value
297
- * `'url'`
298
- */
299
- url?: string;
300
- }
301
- export interface VariantFieldMappings extends FieldMappings {
302
- /**
303
- * #### Default Value
304
- * `['id']`
305
- */
306
- id?: string | Array<string>;
307
- color?: {
308
- /**
309
- * #### Default Value
310
- * `['colorname', 'color']`
311
- */
312
- name?: string | Array<string>;
313
- /**
314
- * #### Default Value
315
- * `['colorhex', 'colorvalue']`
316
- */
317
- hex?: string | Array<string>;
318
- /**
319
- * #### Default Value
320
- * `['colorimageurl', 'colorimage']`
321
- */
322
- imageUrl?: string | Array<string>;
323
- };
324
- }
325
- export interface HawkSearchConfig {
326
- /**
327
- * The unique ID for your installation found in the HawkSearch admin
328
- */
329
- clientId: string;
330
- /**
331
- * Specify an index to query rather than the default
332
- */
333
- index?: string;
334
- /**
335
- * Map item attributes to common object properties
336
- */
337
- fieldMappings?: FieldMappings;
338
- autocomplete?: {
339
- /**
340
- * The API used to retrieve search results
341
- *
342
- * #### Default Value
343
- * `'https://searchapi-dev.hawksearch.net'`
344
- */
345
- endpointUrl?: string;
346
- /**
347
- * Specifies whether autocomplete recommendations (autocomplete without entering a query) is enabled
348
- *
349
- * #### Default Value
350
- * `false`
351
- */
352
- recommendationsEnabled?: boolean;
353
- /**
354
- * Whether to automatically URI decode the search query value. Runs recursively until value is fully decoded. For example, `Test%2520Value` would become `Test Value`.
355
- *
356
- * #### Default Value
357
- * `false`
358
- */
359
- decodeQuery?: boolean;
360
- };
361
- search?: {
362
- /**
363
- * The API used to retrieve search results
364
- *
365
- * #### Default Value
366
- * `'https://searchapi-dev.hawksearch.net'`
367
- */
368
- endpointUrl?: string;
369
- /**
370
- * The URL of your search results page. This is used to redirect users after performing a search.
371
- *
372
- * #### Default Value
373
- * `'/search'`
374
- */
375
- url?: string;
376
- /**
377
- * The prefix for values sent to the API when excluding a facet. This is only modified in rare circumstances where the project has facet values starting with a hyphen.
378
- *
379
- * #### Default Value
380
- * `'-'`
381
- */
382
- facetExclusionPrefix?: string;
383
- /**
384
- * Specifies how search results should be classified
385
- */
386
- itemTypes?: {
387
- /**
388
- * If the value a search result item is missing a value for the field mapped to {@link HawkSearchConfig.search | fieldMappings.type}, this value will be assumed.
389
- *
390
- * #### Default Value
391
- * `'content'`
392
- */
393
- default: ItemType;
394
- /**
395
- * List of values that will be considered a `product` result.
396
- *
397
- * #### Default Value
398
- * `['item', 'product']`
399
- */
400
- productValues?: Array<string>;
401
- };
402
- /**
403
- * Specifies which query string parameters are used
404
- */
405
- queryStringMappings?: {
406
- /**
407
- * #### Default Value
408
- * `'disableSpellcheck'`
409
- */
410
- disableSpellcheck?: string;
411
- /**
412
- * #### Default Value
413
- * `'page'`
414
- */
415
- page?: string;
416
- /**
417
- * #### Default Value
418
- * `'pageSize'`
419
- */
420
- pageSize?: string;
421
- /**
422
- * #### Default Value
423
- * `'query'`
424
- */
425
- query?: string;
426
- /**
427
- * #### Default Value
428
- * `'searchWithin'`
429
- */
430
- searchWithin?: string;
431
- /**
432
- * #### Default Value
433
- * `'sort'`
434
- */
435
- sort?: string;
436
- /**
437
- * Sets RequestType field to toggle between Keyword search, Image search or Concept search
438
- *
439
- * #### Default Value
440
- * `'DefaultSearch'`
441
- */
442
- requestType?: RequestType;
443
- };
444
- /**
445
- * Whether to automatically URI decode the search query value. Runs recursively until value is fully decoded. For example, `Test%2520Value` would become `Test Value`.
446
- *
447
- * #### Default Value
448
- * `false`
449
- */
450
- decodeQuery?: boolean;
451
- /**
452
- * Whether to automatically URI decode facet selection values. Runs recursively until value is fully decoded. For example, `Test%2520Value` would become `Test Value`.
453
- *
454
- * #### Default Value
455
- * `false`
456
- */
457
- decodeFacetValues?: boolean;
458
- /**
459
- * Specifies a kValue for Concept and Image search
460
- */
461
- kValue?: number;
462
- };
463
- recommendations?: {
464
- /**
465
- * The API used to retrieve product recommendations
466
- *
467
- * #### Default Value
468
- * `'https://recs-dev.hawksearch.net'`
469
- */
470
- endpointUrl?: string;
471
- };
472
- tracking?: {
473
- /**
474
- * Specifies whether user actions should be tracked to provide valuable insights on your search engine performance
475
- *
476
- * #### Default Value
477
- *
478
- * `true`
479
- */
480
- enabled?: boolean;
481
- /**
482
- * The API used to track user interactions
483
- *
484
- * #### Default Value
485
- * `'https://tracking-dev.hawksearch.net'`
486
- */
487
- endpointUrl?: string;
488
- };
489
- variants?: {
490
- /**
491
- * When `true`, specifies that facet counts should be calculated based on the number of child items rather than the number of parent items
492
- *
493
- * #### Default Value
494
- *
495
- * `false`
496
- */
497
- baseFacetCountOnVariants?: boolean;
498
- /**
499
- * Specifies whether variant logic should be used if data is available
500
- *
501
- * #### Default Value
502
- *
503
- * `true`
504
- */
505
- enabled?: boolean;
506
- /**
507
- * When specified, this prefix is removed from the `attributes` collection on variant items. For example, if a value of `'child_'` is used and HawkSearch returns a field named `'child_color'`, it will be transformed to `'color'`.
508
- */
509
- fieldPrefix?: string;
510
- /**
511
- * Map item attributes to common object properties
512
- */
513
- fieldMappings?: VariantFieldMappings;
514
- /**
515
- * When `true`, specifies that tracking should use the ID of the selected variant rather than the ID of the parent
516
- *
517
- * #### Default Value
518
- *
519
- * `false`
520
- */
521
- trackUsingVariant?: boolean;
522
- };
523
- /**
524
- * Specifies the minimum window widths that correspond to each breakpoint. This is used determine when certain content items are displayed.
525
- *
526
- * #### Default Value
527
- * ```js
528
- * {
529
- * mobile: undefined,
530
- * tablet: 740,
531
- * desktop: 990
532
- * }
533
- * ```
534
- */
535
- breakpoints?: Breakpoints<number>;
536
- /**
537
- * Specifies component-specific configuration options
538
- */
539
- components?: HawkSearchComponents;
540
- /**
541
- * Specifies which styles should be loaded for each component
542
- */
543
- css?: {
544
- /**
545
- * One or more style sets to be loaded. This can be either a URL to an external stylesheet, the ID of a `template` element wrapping around a `style` element, or a string containing CSS rules.
546
- */
547
- customStyles?: string | Array<string>;
548
- /**
549
- * Specifies whether the default stylesheet should be loaded. This should generally be true except for with completely custom interfaces.
550
- */
551
- defaultStyles?: boolean;
552
- };
553
- /**
554
- * Specifies how values should be formatted for different cultures
555
- */
556
- formatting?: {
557
- /**
558
- * #### Default Value
559
- * `'en-US'`
560
- */
561
- cultureIsoCode?: string;
562
- /**
563
- * #### Default Value
564
- * `'USD'`
565
- */
566
- currencyIsoCode?: string;
567
- };
568
- /**
569
- * The URL of an image to be loaded whenever an image fails to load for a search result item
570
- */
571
- placeholderImageUrl?: string;
572
- seo?: {
573
- title?: {
574
- /**
575
- * Value prepended to title returned from API
576
- */
577
- prefix?: string;
578
- /**
579
- * Value appended to title returned from API
580
- */
581
- suffix?: string;
582
- };
583
- };
584
- /**
585
- * Specifies whether components should be rendered in the [Shadow DOM](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_shadow_DOM). This is highly recommended to avoid CSS conflicts.
586
- *
587
- * #### Default Value
588
- * `true`
589
- */
590
- shadowDom?: boolean;
591
- /**
592
- * If your data contains relative URLs, these values can be prepended to the values to convert them to absolute URLs
593
- */
594
- urlPrefixes?: {
595
- assets?: string;
596
- content?: string;
597
- };
598
- /**
599
- * Specifies whether search queries should be displayed on console
600
- *
601
- * #### Default Value
602
- * `false`
603
- */
604
- debug?: boolean;
605
- }
606
- export interface HawkSearchGlobal {
607
- config: HawkSearchConfig;
608
- handlebars: typeof Handlebars;
609
- recommendationsResponses?: {
610
- [widgetId: string]: RecommendationsResponse;
611
- };
612
- searchRequest?: SearchRequest;
613
- searchResponse?: SearchResponse;
614
- services?: {
615
- autocomplete: AutocompleteService;
616
- recommendations: RecommendationsService;
617
- search: SearchService;
618
- tracking: TrackingService;
619
- };
620
- }
621
- export interface HawkSearchState {
622
- searchRequest?: SearchRequest;
623
- searchResponse: SearchResponse;
624
- }
@@ -1,4 +0,0 @@
1
- /**
2
- * @module Configuration
3
- */
4
- export * from './configuration.models';