@nyris/nyris-webapp 0.3.57 → 0.3.58

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/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@nyris/nyris-webapp",
3
- "version": "0.3.57",
3
+ "version": "0.3.58",
4
4
  "dependencies": {
5
5
  "@auth0/auth0-react": "^2.2.4",
6
6
  "@emailjs/browser": "^4.3.3",
7
7
  "@material-ui/core": "^4.12.4",
8
8
  "@material-ui/icons": "^4.11.3",
9
9
  "@material-ui/lab": "^4.0.0-alpha.61",
10
- "@nyris/nyris-api": "^0.3.57",
11
- "@nyris/nyris-react-components": "^0.3.57",
10
+ "@nyris/nyris-api": "^0.3.58",
11
+ "@nyris/nyris-react-components": "^0.3.58",
12
12
  "@reduxjs/toolkit": "^2.2.1",
13
13
  "@splidejs/react-splide": "^0.7.12",
14
14
  "@testing-library/jest-dom": "^5.17.0",
@@ -80,6 +80,7 @@ var settings = {
80
80
  simpleCardView: false,
81
81
  secondaryCTAButtonText: 'Configure Now',
82
82
  clarityId: '',
83
+ noSimilarSearch: true,
83
84
 
84
85
  //field mappins
85
86
  field: {
@@ -188,7 +188,7 @@ function ProductDetailView(props: Props) {
188
188
  }}
189
189
  />
190
190
  )}
191
- {dataImageCarousel.length > 0 && (
191
+ {dataImageCarousel.length > 0 && !settings.noSimilarSearch && (
192
192
  <Button
193
193
  className={classes.buttonStyleImageSearch}
194
194
  style={{
@@ -331,12 +331,11 @@ function PreFilterComponent(props: Props) {
331
331
  columnCount: 4,
332
332
  padding: '24px 24px 40px 24px',
333
333
  height: '100%',
334
-
335
334
  backgroundColor: '#FAFAFA',
336
335
  }
337
336
  }
338
337
  >
339
- {Object.entries(resultFilter).map(([key, value]: any, i: any) => {
338
+ {Object.entries(resultFilter).sort().map(([key, value]: any, i: any) => {
340
339
  return (
341
340
  <div className="box-group-items" key={key}>
342
341
  <div
@@ -166,7 +166,7 @@ function ItemResult(props: Props) {
166
166
  </Button>
167
167
  </div>
168
168
  )}
169
- {!isHover && main_image_link && (
169
+ {!isHover && main_image_link && !settings.noSimilarSearch && (
170
170
  <div
171
171
  className="box-icon-modal"
172
172
  onClick={() => {
package/src/types.ts CHANGED
@@ -84,6 +84,7 @@ export interface AppSettings extends NyrisAPISettings {
84
84
  experienceVisualSearch?: boolean;
85
85
  experienceVisualSearchImages?: string[];
86
86
  clarityId?: string,
87
+ noSimilarSearch?: boolean;
87
88
  }
88
89
 
89
90
  export interface SearchSuiteSettings {