@searchstax-inc/searchstudio-ux-js 4.1.0 → 4.1.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/CHANGELOG.md CHANGED
@@ -2,27 +2,25 @@
2
2
 
3
3
  All notable changes to the "searchstudio-ux-js" project will be documented in this file.
4
4
 
5
- ## [1.0.3] - 2024-10-08
6
- ### ⚠️ BREAKING CHANGES
7
- - Result template needs to be updated to print variables as HTML because they now will contain html <em> tags if highlighting is enabled
8
- ### Features
9
- - Added support for highlighting controlled via studio UI
10
- - Results per page are now configured through studio UI
5
+ ## [4.1.9]
11
6
  ### Bug Fixes
12
- - Tracking calls now use unmodified title of the result
7
+ - accessibility: focus is now being trapped in feedback widget
8
+ - accessibility: more/less buttons have role and changes are announced
9
+ - accessibility: fixed feedback widget roles
10
+ - accessibility: pagination disabled state fixes
13
11
 
14
- ## [1.0.10] - 2024-12-05
12
+ ## [4.1.5]
15
13
  ### Bug Fixes
16
- - fix & and + symbols causing issues in facet values
14
+ - answers endpoint now have same query parameters as emselect
15
+ - accessibility: feedback widget comment section no longer reads characters left after every key press
17
16
 
18
- ## [1.0.11] - 2024-12-26
17
+ ## [4.1.0]
19
18
  ### Bug Fixes
20
- - fix order of non mapped fields
21
- - fix styling of grid view for accelerator
22
-
23
- ## [1.0.24]
24
- ### Features
25
- - added answer widget
19
+ - stopped making unnecessary calls on blank search page load
20
+ - accessibility: template modified to only read result title for accessibility
21
+ - accessibility: leave feedback button state change is now announced
22
+ - accessibility: focus persistance added for feedback rating
23
+ - added support for react 19
26
24
 
27
25
  ## [2.0.0]
28
26
  ### Features
@@ -31,10 +29,25 @@ All notable changes to the "searchstudio-ux-js" project will be documented in th
31
29
  - NVDA facet groups now announce state
32
30
  - NVDA added ability to jump from facets to results section
33
31
 
34
- ## [4.1.0]
32
+ ## [1.0.24]
33
+ ### Features
34
+ - added answer widget
35
+
36
+ ## [1.0.11] - 2024-12-26
35
37
  ### Bug Fixes
36
- - stopped making unnecessary calls on blank search page load
37
- - accessibility: template modified to only read result title for accessibility
38
- - accessibility: leave feedback button state change is now announced
39
- - accessibility: focus persistance added for feedback rating
40
- - added support for react 19
38
+ - fix order of non mapped fields
39
+ - fix styling of grid view for accelerator
40
+
41
+ ## [1.0.10] - 2024-12-05
42
+ ### Bug Fixes
43
+ - fix & and + symbols causing issues in facet values
44
+
45
+ ## [1.0.3] - 2024-10-08
46
+ ### ⚠️ BREAKING CHANGES
47
+ - Result template needs to be updated to print variables as HTML because they now will contain html <em> tags if highlighting is enabled
48
+ ### Features
49
+ - Added support for highlighting controlled via studio UI
50
+ - Results per page are now configured through studio UI
51
+ ### Bug Fixes
52
+ - Tracking calls now use unmodified title of the result
53
+
package/README.md CHANGED
@@ -141,7 +141,7 @@ searchstax.addAnswerWidget("searchstax-answer-container", {
141
141
 
142
142
  **Props**
143
143
 
144
- - showMoreAfterWordCount - number(default 100) determining after how many symbols UI will show “Read More” view.
144
+ - showMoreAfterWordCount - number(default 100) determining after how many words UI will show “Read More” view.
145
145
  - feedbackWidget – an optional object that configures thumbs-up and thumbs-down feedback functionality.
146
146
  - templates - template override. look at examples below
147
147
 
@@ -724,11 +724,11 @@ It receives following props:
724
724
  {{#results.length}}
725
725
  <div class="searchstax-pagination-container" data-test-id="searchstax-pagination-container">
726
726
  <div class="searchstax-pagination-content">
727
- <a class="searchstax-pagination-previous {{#isFirstPage}}disabled{{/isFirstPage}}" id="searchstax-pagination-previous" data-test-id="searchstax-pagination-previous" tabindex="0" aria-label="Previous Page">< Previous</a>
727
+ <a role="link" class="searchstax-pagination-previous {{#isFirstPage}}disabled{{/isFirstPage}}" {{#isFirstPage}} disabled="disabled" {{/isFirstPage}} id="searchstax-pagination-previous" data-test-id="searchstax-pagination-previous" {{^isFirstPage}} tabindex="0" {{/isFirstPage}} aria-label="Previous Page">< Previous</a>
728
728
  <div class="searchstax-pagination-details" data-test-id="searchstax-pagination-details">
729
729
  {{startResultIndex}} - {{endResultIndex}} of {{totalResults}}
730
730
  </div>
731
- <a class="searchstax-pagination-next {{#isLastPage}}disabled{{/isLastPage}}" data-test-id="searchstax-pagination-next" id="searchstax-pagination-next" tabindex="0" aria-label="Next Page">Next ></a>
731
+ <a role="link" class="searchstax-pagination-next {{#isLastPage}}disabled{{/isLastPage}}" {{#isLastPage}}disabled="disabled"{{/isLastPage}} data-test-id="searchstax-pagination-next" id="searchstax-pagination-next" {{^isLastPage}} tabindex="0" {{/isLastPage}} aria-label="Next Page">Next ></a>
732
732
  </div>
733
733
  </div>
734
734
  {{/results.length}}
@@ -741,11 +741,11 @@ It receives following props:
741
741
  {{#results.length}}
742
742
  <div class="searchstax-pagination-container" data-test-id="searchstax-pagination-container">
743
743
  <div class="searchstax-pagination-content">
744
- <a class="searchstax-pagination-previous {{#isFirstPage}}disabled{{/isFirstPage}}" id="searchstax-pagination-previous" data-test-id="searchstax-pagination-previous" tabindex="0" aria-label="Previous Page">< Previous</a>
744
+ <a role="link" class="searchstax-pagination-previous {{#isFirstPage}}disabled{{/isFirstPage}}" {{#isFirstPage}} disabled="disabled" {{/isFirstPage}} id="searchstax-pagination-previous" data-test-id="searchstax-pagination-previous" {{^isFirstPage}} tabindex="0" {{/isFirstPage}} aria-label="Previous Page">< Previous</a>
745
745
  <div class="searchstax-pagination-details" data-test-id="searchstax-pagination-details">
746
746
  {{startResultIndex}} - {{endResultIndex}} of {{totalResults}}
747
747
  </div>
748
- <a class="searchstax-pagination-next {{#isLastPage}}disabled{{/isLastPage}}" data-test-id="searchstax-pagination-next" id="searchstax-pagination-next" tabindex="0" aria-label="Next Page">Next ></a>
748
+ <a role="link" class="searchstax-pagination-next {{#isLastPage}}disabled{{/isLastPage}}" {{#isLastPage}}disabled="disabled"{{/isLastPage}} data-test-id="searchstax-pagination-next" id="searchstax-pagination-next" {{^isLastPage}} tabindex="0" {{/isLastPage}} aria-label="Next Page">Next ></a>
749
749
  </div>
750
750
  </div>
751
751
  {{/results.length}}
@@ -901,10 +901,10 @@ It receives following props:
901
901
  template: `
902
902
  <div class="searchstax-facet-show-more-container" data-test-id="searchstax-facet-show-more-container">
903
903
  {{#showingAllFacets}}
904
- <div class="searchstax-facet-show-less-button searchstax-facet-show-button" tabindex="0" data-test-id="searchstax-facet-show-less-button">less</div>
904
+ <div class="searchstax-facet-show-less-button searchstax-facet-show-button" tabindex="0" data-test-id="searchstax-facet-show-less-button" role="button">less</div>
905
905
  {{/showingAllFacets}}
906
906
  {{^showingAllFacets}}
907
- <div class="searchstax-facet-show-more-button searchstax-facet-show-button" tabindex="0" data-test-id="searchstax-facet-show-more-button">more {{onShowMoreLessClick}}</div>
907
+ <div class="searchstax-facet-show-more-button searchstax-facet-show-button" tabindex="0" data-test-id="searchstax-facet-show-more-button" role="button">more {{onShowMoreLessClick}}</div>
908
908
  {{/showingAllFacets}}
909
909
  </div>
910
910
  `,
package/README.mustache CHANGED
@@ -141,7 +141,7 @@ searchstax.addAnswerWidget("searchstax-answer-container", {
141
141
 
142
142
  **Props**
143
143
 
144
- - showMoreAfterWordCount - number(default 100) determining after how many symbols UI will show “Read More” view.
144
+ - showMoreAfterWordCount - number(default 100) determining after how many words UI will show “Read More” view.
145
145
  - feedbackWidget – an optional object that configures thumbs-up and thumbs-down feedback functionality.
146
146
  - templates - template override. look at examples below
147
147