@bridgeline-digital/hawksearch-handlebars-ui 5.0.1 → 6.0.0-vite-lib.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 (93) hide show
  1. package/changelog.md +106 -106
  2. package/dist/hawksearch-handlebars-ui.cjs +2 -0
  3. package/dist/hawksearch-handlebars-ui.cjs.map +1 -0
  4. package/dist/hawksearch-handlebars-ui.js +10280 -0
  5. package/dist/hawksearch-handlebars-ui.js.map +1 -0
  6. package/dist/hawksearch-handlebars-ui.umd.cjs +2 -0
  7. package/dist/hawksearch-handlebars-ui.umd.cjs.map +1 -0
  8. package/dist/index.d.ts +3557 -1
  9. package/package.json +45 -34
  10. package/readme.md +2 -2
  11. package/dist/components/base.component.d.ts +0 -139
  12. package/dist/components/content/content-types/base-content.component.d.ts +0 -9
  13. package/dist/components/content/content-types/custom-content/custom-content.component.d.ts +0 -21
  14. package/dist/components/content/content-types/featured-items-content/featured-items-content.component.d.ts +0 -22
  15. package/dist/components/content/content-types/featured-items-content-item/featured-items-content-item.component.d.ts +0 -39
  16. package/dist/components/content/content-types/image-content/image-content.component.d.ts +0 -22
  17. package/dist/components/content/content-types/index.d.ts +0 -6
  18. package/dist/components/content/content-types/popular-queries-content/popular-queries-content.component.d.ts +0 -22
  19. package/dist/components/content/content-zone/content-zone.component.d.ts +0 -44
  20. package/dist/components/content/index.d.ts +0 -2
  21. package/dist/components/general/date-picker/date-picker.component.d.ts +0 -117
  22. package/dist/components/general/icon/icon.component.d.ts +0 -38
  23. package/dist/components/general/index.d.ts +0 -5
  24. package/dist/components/general/range-slider/range-slider.component.d.ts +0 -54
  25. package/dist/components/general/rating/rating.component.d.ts +0 -39
  26. package/dist/components/general/tooltip/tooltip.component.d.ts +0 -32
  27. package/dist/components/index.d.ts +0 -229
  28. package/dist/components/landing-pages/index.d.ts +0 -1
  29. package/dist/components/landing-pages/landing-page/landing-page.component.d.ts +0 -32
  30. package/dist/components/recommendations/index.d.ts +0 -2
  31. package/dist/components/recommendations/recommendations/recommendations.component.d.ts +0 -87
  32. package/dist/components/recommendations/recommendations-item/recommendations-item.component.d.ts +0 -40
  33. package/dist/components/search/autocomplete/autocomplete.component.d.ts +0 -59
  34. package/dist/components/search/facet-types/base-facet.component.d.ts +0 -44
  35. package/dist/components/search/facet-types/checkbox-list-facet/checkbox-list-facet.component.d.ts +0 -36
  36. package/dist/components/search/facet-types/color-facet/color-facet.component.d.ts +0 -24
  37. package/dist/components/search/facet-types/date-range-facet/date-range-facet.component.d.ts +0 -33
  38. package/dist/components/search/facet-types/index.d.ts +0 -11
  39. package/dist/components/search/facet-types/linked-list-facet/link-list-facet.component.d.ts +0 -24
  40. package/dist/components/search/facet-types/numeric-range-facet/numeric-range-facet.component.d.ts +0 -32
  41. package/dist/components/search/facet-types/range-slider-facet/range-slider-facet.component.d.ts +0 -34
  42. package/dist/components/search/facet-types/recent-searches-facet/recent-searches-facet.component.d.ts +0 -29
  43. package/dist/components/search/facet-types/related-searches-facet/related-searches-facet.component.d.ts +0 -29
  44. package/dist/components/search/facet-types/search-within-facet/search-within-facet.component.d.ts +0 -29
  45. package/dist/components/search/facet-types/size-facet/size-facet.component.d.ts +0 -24
  46. package/dist/components/search/facet-wrapper/facet-wrapper.component.d.ts +0 -47
  47. package/dist/components/search/facets-list/facets-list.component.d.ts +0 -32
  48. package/dist/components/search/index.d.ts +0 -15
  49. package/dist/components/search/modified-query/modified-query.component.d.ts +0 -32
  50. package/dist/components/search/page-size/page-size.component.d.ts +0 -32
  51. package/dist/components/search/pagination/pagination.component.d.ts +0 -43
  52. package/dist/components/search/query-suggestions/query-suggestions.component.d.ts +0 -38
  53. package/dist/components/search/search-field/search-field.component.d.ts +0 -38
  54. package/dist/components/search/search-results/search-results.component.d.ts +0 -34
  55. package/dist/components/search/search-results-item/search-results-item.component.d.ts +0 -38
  56. package/dist/components/search/search-results-list/search-results-list.component.d.ts +0 -23
  57. package/dist/components/search/selected-facets/selected-facets.component.d.ts +0 -31
  58. package/dist/components/search/sorting/sorting.component.d.ts +0 -30
  59. package/dist/components/search/tabs/tabs.component.d.ts +0 -30
  60. package/dist/components/variants/index.d.ts +0 -1
  61. package/dist/components/variants/variant-selector/variant-selector.component.d.ts +0 -23
  62. package/dist/configuration/configuration.models.d.ts +0 -574
  63. package/dist/configuration/index.d.ts +0 -4
  64. package/dist/helpers/helpers.d.ts +0 -200
  65. package/dist/helpers/index.d.ts +0 -4
  66. package/dist/index.js +0 -3
  67. package/dist/index.js.LICENSE.txt +0 -26
  68. package/dist/index.js.map +0 -1
  69. package/dist/models/autocomplete.models.d.ts +0 -85
  70. package/dist/models/base.models.d.ts +0 -50
  71. package/dist/models/component.models.d.ts +0 -453
  72. package/dist/models/content.models.d.ts +0 -94
  73. package/dist/models/index.d.ts +0 -11
  74. package/dist/models/raw/index.d.ts +0 -4
  75. package/dist/models/raw/raw-autocomplete.models.d.ts +0 -51
  76. package/dist/models/raw/raw-base.models.d.ts +0 -8
  77. package/dist/models/raw/raw-recommendation.models.d.ts +0 -39
  78. package/dist/models/raw/raw-search.models.d.ts +0 -191
  79. package/dist/models/recommendation.models.d.ts +0 -31
  80. package/dist/models/search.models.d.ts +0 -237
  81. package/dist/models/tracking.models.d.ts +0 -42
  82. package/dist/placeholder.c99b7374b9bf579d0fd0.png +0 -0
  83. package/dist/services/autocomplete.service.d.ts +0 -10
  84. package/dist/services/base.service.d.ts +0 -63
  85. package/dist/services/index.d.ts +0 -8
  86. package/dist/services/recommendations.service.d.ts +0 -10
  87. package/dist/services/search.service.d.ts +0 -50
  88. package/dist/services/tracking.service.d.ts +0 -29
  89. package/dist/styles.36d6e6ed0aa89cd5e523177c64306e2d.css +0 -1
  90. package/dist/utilities/colors.d.ts +0 -1
  91. package/dist/utilities/dates.d.ts +0 -4
  92. package/dist/utilities/formatters.d.ts +0 -4
  93. package/dist/utilities/index.d.ts +0 -6
package/changelog.md CHANGED
@@ -1,106 +1,106 @@
1
- # 5.0.1
2
-
3
- 1. Fixed bug in API endpoint construction when overriding the default `endpointUrl` for Autocomplete
4
-
5
- # 5.0.0
6
-
7
- ## New Features
8
-
9
- 1. Added VariantSelectorComponent
10
- 2. Implemented VariantSelectorComponent in default templates for search results, featured items, recommendations, and autocomplete
11
-
12
- ## Bug Fixes
13
-
14
- 1. Updated the `attributes` collection on recommendation items to split single string values by `|^|` into string arrays
15
- 2. Added logic to catch HTTP errors in service layer
16
-
17
- ## Breaking Changes
18
-
19
- 1. Modified JSON structure for field mapping configuration
20
- 2. The `attributes` collection on recommendation items now consists of the data in `customDict` from the API response rather than preserving `customDict` as a nested property
21
-
22
- # 4.0.4
23
-
24
- 1. Modified RecommendationsService to transform response properties into arrays to be consistent with search results and autocomplete
25
- 2. Modified `attributes` property on `RecommendationsItem` to include only the properties from `customDict` on the API response. The other properties from the response are standard so repeating them under `attributes` does not make sense.
26
- 3. Fixed bug with autocomplete top categories links not working when not on search results page
27
- 4. Fixed parameter name in order tracking event data
28
-
29
- # 4.0.3
30
-
31
- 1. Fixed URL parsing logic to avoid prepending domain when API returns a value starting with `//`
32
-
33
- # 4.0.2
34
-
35
- 1. Updated `number` and `currency` Handlebars helpers to handle string values from API and made decimals parameter optional
36
-
37
- # 4.0.1
38
-
39
- 1. Modified SearchService so that `hawksearch:after-search-completed` event fires before SEO elements are set
40
-
41
- # 4.0.0
42
-
43
- ## New Features
44
-
45
- 1. Added `HawkSearch.config.autocomplete.recommendationsEnabled` property with a default value of `false` to toggle autocomplete recommendations (instant engage)
46
- 2. Added new RatingComponent to be displayed on SearchResultsItemComponent, RecommendationsItemComponent, and FeaturedItemsContentItemComponent.
47
- 3. Added product ratings and prices to autocomplete
48
- 4. Added suggested queries (did you mean?) to autocomplete
49
-
50
- ## Bug Fixes
51
-
52
- 1. Converting `price` and `salePrice` values of 0 to `undefined`
53
- 2. Fixed price rendering logic in default templates of SearchResultsItemComponent, RecommendationsItemComponent, and FeaturedItemsContentItemComponent
54
-
55
- ## Breaking Changes
56
-
57
- 1. Refactored HawkSearchConfig structure to group properties by search, autocomplete, and recommendations. Some property names have changed slightly.
58
- 2. Modified endpoints configuration to expect only domain rather than full API URL
59
-
60
- # 3.0.0
61
-
62
- ## New Features
63
-
64
- 1. Added support for A/B testing in Recommendations component
65
- 2. Added support for default autocomplete without entering a query
66
- 3. Modified autocomplete to display when refocusing on search field
67
- 4. Added optional `item-id` attribute to Recommendations component
68
- 5. Added instance-level configuration overrides through `config` attribute or `configOverride` property
69
-
70
- ## Bug Fixes
71
-
72
- 1. Fixed script file name and configuration link in documentation
73
- 2. Fixed bug requiring double-click to expand facet that is collapsed by default
74
-
75
- ## Breaking Changes
76
-
77
- 1. Removed unused option to define custom component template as child content of tag to provide future possibility of using slots or declarative Shadow DOM
78
-
79
- # 2.0.0
80
-
81
- ## New Features
82
-
83
- 1. Added Landing Pages components
84
- 2. Added Recommendations components
85
- 3. Added component-level configuration to support functionality toggles and easy string replacements
86
- 4. Added `hawksearch:before-${componentName}-rendered` event hooks to support passing custom data to Handlebars templates
87
- 5. Added configuration setting to toggle facet exclude value functionality. This is now disabled by default.
88
- 6. Added ability to load CSS styles without requiring an external stylesheet
89
- 7. Added customizable index to search results, autocomplete, and recommendations requests
90
- 8. Added ability to set product as default search results item type
91
- 9. Added alternate `[[value]]` syntax to work the same as the default Handlerbars `{{value}}` syntax to avoid conflicts when customizing templates within BigCommerce
92
- 10. Added support for nested object properties in field mappings
93
- 11. Added rendering of canonical URL including search refinements
94
- 12. Added configurable facet exclusion prefix
95
- 13. Implemented TypeDoc code-generated documentation to ensure it remains up-to-date and available for each version
96
-
97
- ## Bug Fixes
98
-
99
- 1. Fixed Autocomplete template name
100
- 2. Added logic to handle scrolling facets by setting a max-height in default template
101
-
102
- ## Breaking Changes
103
-
104
- 1. Changed entry file from `hawksearch-handlebars-ui.js` to `index.js`
105
- 2. Renamed `Hawksearch` global object to `HawkSearch`
106
- 3. Changes to `HawkSearch.config` model to support new features
1
+ # 5.0.1
2
+
3
+ 1. Fixed bug in API endpoint construction when overriding the default `endpointUrl` for Autocomplete
4
+
5
+ # 5.0.0
6
+
7
+ ## New Features
8
+
9
+ 1. Added VariantSelectorComponent
10
+ 2. Implemented VariantSelectorComponent in default templates for search results, featured items, recommendations, and autocomplete
11
+
12
+ ## Bug Fixes
13
+
14
+ 1. Updated the `attributes` collection on recommendation items to split single string values by `|^|` into string arrays
15
+ 2. Added logic to catch HTTP errors in service layer
16
+
17
+ ## Breaking Changes
18
+
19
+ 1. Modified JSON structure for field mapping configuration
20
+ 2. The `attributes` collection on recommendation items now consists of the data in `customDict` from the API response rather than preserving `customDict` as a nested property
21
+
22
+ # 4.0.4
23
+
24
+ 1. Modified RecommendationsService to transform response properties into arrays to be consistent with search results and autocomplete
25
+ 2. Modified `attributes` property on `RecommendationsItem` to include only the properties from `customDict` on the API response. The other properties from the response are standard so repeating them under `attributes` does not make sense.
26
+ 3. Fixed bug with autocomplete top categories links not working when not on search results page
27
+ 4. Fixed parameter name in order tracking event data
28
+
29
+ # 4.0.3
30
+
31
+ 1. Fixed URL parsing logic to avoid prepending domain when API returns a value starting with `//`
32
+
33
+ # 4.0.2
34
+
35
+ 1. Updated `number` and `currency` Handlebars helpers to handle string values from API and made decimals parameter optional
36
+
37
+ # 4.0.1
38
+
39
+ 1. Modified SearchService so that `hawksearch:after-search-completed` event fires before SEO elements are set
40
+
41
+ # 4.0.0
42
+
43
+ ## New Features
44
+
45
+ 1. Added `HawkSearch.config.autocomplete.recommendationsEnabled` property with a default value of `false` to toggle autocomplete recommendations (instant engage)
46
+ 2. Added new RatingComponent to be displayed on SearchResultsItemComponent, RecommendationsItemComponent, and FeaturedItemsContentItemComponent.
47
+ 3. Added product ratings and prices to autocomplete
48
+ 4. Added suggested queries (did you mean?) to autocomplete
49
+
50
+ ## Bug Fixes
51
+
52
+ 1. Converting `price` and `salePrice` values of 0 to `undefined`
53
+ 2. Fixed price rendering logic in default templates of SearchResultsItemComponent, RecommendationsItemComponent, and FeaturedItemsContentItemComponent
54
+
55
+ ## Breaking Changes
56
+
57
+ 1. Refactored HawkSearchConfig structure to group properties by search, autocomplete, and recommendations. Some property names have changed slightly.
58
+ 2. Modified endpoints configuration to expect only domain rather than full API URL
59
+
60
+ # 3.0.0
61
+
62
+ ## New Features
63
+
64
+ 1. Added support for A/B testing in Recommendations component
65
+ 2. Added support for default autocomplete without entering a query
66
+ 3. Modified autocomplete to display when refocusing on search field
67
+ 4. Added optional `item-id` attribute to Recommendations component
68
+ 5. Added instance-level configuration overrides through `config` attribute or `configOverride` property
69
+
70
+ ## Bug Fixes
71
+
72
+ 1. Fixed script file name and configuration link in documentation
73
+ 2. Fixed bug requiring double-click to expand facet that is collapsed by default
74
+
75
+ ## Breaking Changes
76
+
77
+ 1. Removed unused option to define custom component template as child content of tag to provide future possibility of using slots or declarative Shadow DOM
78
+
79
+ # 2.0.0
80
+
81
+ ## New Features
82
+
83
+ 1. Added Landing Pages components
84
+ 2. Added Recommendations components
85
+ 3. Added component-level configuration to support functionality toggles and easy string replacements
86
+ 4. Added `hawksearch:before-${componentName}-rendered` event hooks to support passing custom data to Handlebars templates
87
+ 5. Added configuration setting to toggle facet exclude value functionality. This is now disabled by default.
88
+ 6. Added ability to load CSS styles without requiring an external stylesheet
89
+ 7. Added customizable index to search results, autocomplete, and recommendations requests
90
+ 8. Added ability to set product as default search results item type
91
+ 9. Added alternate `[[value]]` syntax to work the same as the default Handlerbars `{{value}}` syntax to avoid conflicts when customizing templates within BigCommerce
92
+ 10. Added support for nested object properties in field mappings
93
+ 11. Added rendering of canonical URL including search refinements
94
+ 12. Added configurable facet exclusion prefix
95
+ 13. Implemented TypeDoc code-generated documentation to ensure it remains up-to-date and available for each version
96
+
97
+ ## Bug Fixes
98
+
99
+ 1. Fixed Autocomplete template name
100
+ 2. Added logic to handle scrolling facets by setting a max-height in default template
101
+
102
+ ## Breaking Changes
103
+
104
+ 1. Changed entry file from `hawksearch-handlebars-ui.js` to `index.js`
105
+ 2. Renamed `Hawksearch` global object to `HawkSearch`
106
+ 3. Changes to `HawkSearch.config` model to support new features