@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 +35 -22
- package/README.md +7 -7
- package/README.mustache +1 -1
- package/dist/@searchstax-inc/searchstudio-ux-js.cjs +50 -50
- package/dist/@searchstax-inc/searchstudio-ux-js.d.mts +1 -0
- package/dist/@searchstax-inc/searchstudio-ux-js.d.ts +1 -0
- package/dist/@searchstax-inc/searchstudio-ux-js.iife.js +46 -46
- package/dist/@searchstax-inc/searchstudio-ux-js.mjs +921 -862
- package/dist/feedbackWidget.mjs +197 -157
- package/dist/styles/mainTheme.css +15 -7
- package/dist/styles/mainTheme.css.map +1 -1
- package/dist/templates.js +8 -8
- package/package.json +2 -2
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.
|
|
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
|
-
-
|
|
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.
|
|
12
|
+
## [4.1.5]
|
|
15
13
|
### Bug Fixes
|
|
16
|
-
-
|
|
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
|
|
17
|
+
## [4.1.0]
|
|
19
18
|
### Bug Fixes
|
|
20
|
-
-
|
|
21
|
-
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
## [
|
|
32
|
+
## [1.0.24]
|
|
33
|
+
### Features
|
|
34
|
+
- added answer widget
|
|
35
|
+
|
|
36
|
+
## [1.0.11] - 2024-12-26
|
|
35
37
|
### Bug Fixes
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
|
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
|
|
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
|
|