@bridgeline-digital/hawksearch-handlebars-ui 4.0.0-beta.0 → 4.0.0-beta.2

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.
@@ -254,7 +254,33 @@ export interface HawkSearchConfig {
254
254
  * `'https://searchapi-dev.hawksearch.net'`
255
255
  */
256
256
  endpointUrl?: string;
257
+ /**
258
+ * Specifies whether autocomplete recommendations (autocomplete without entering a query) is enabled
259
+ *
260
+ * #### Default Value
261
+ * `false`
262
+ */
257
263
  recommendationsEnabled?: boolean;
264
+ /**
265
+ * Map item attributes to common object properties
266
+ */
267
+ fieldMappings?: {
268
+ /**
269
+ * #### Default Value
270
+ * `'price'`
271
+ */
272
+ price?: string;
273
+ /**
274
+ * #### Default Value
275
+ * `'rating'`
276
+ */
277
+ rating?: string;
278
+ /**
279
+ * #### Default Value
280
+ * `'saleprice'`
281
+ */
282
+ salePrice?: string;
283
+ };
258
284
  };
259
285
  search?: {
260
286
  /**
@@ -328,7 +354,7 @@ export interface HawkSearchConfig {
328
354
  */
329
355
  itemTypes?: {
330
356
  /**
331
- * If the value a search result item is missing a value for the field mapped to {@link HawkSearchConfig.fieldMappings | type}, this value will be assumed.
357
+ * 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.
332
358
  *
333
359
  * #### Default Value
334
360
  * `'content'`