@usereactify/search 5.59.0-beta.8 → 5.59.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,26 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [5.59.0](https://bitbucket.org/usereactify/reactify-search-ui/compare/release-v5.58.0...release-v5.59.0) (2025-08-05)
6
+
7
+
8
+ ### Features
9
+
10
+ * Add Curated Pages mode ([1f391ec](https://bitbucket.org/usereactify/reactify-search-ui/commit/1f391ec570cf4d55196f723c89e9c9a80d18e4ae))
11
+ * expose the onData listener on the Results component ([2e70e4d](https://bitbucket.org/usereactify/reactify-search-ui/commit/2e70e4ddc130813676e0ff2af04cc5111331051e))
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * add configBaseUrl prop for local testing override ([8280e8b](https://bitbucket.org/usereactify/reactify-search-ui/commit/8280e8b573530a035dace2be62eda581e742c844))
17
+ * add devMode with Elasticsearch score breakdown ([8ee766c](https://bitbucket.org/usereactify/reactify-search-ui/commit/8ee766c06b3bd1c58225ffff90bb117c3a064ffa))
18
+ * fix hydration error caused by window obj being used on rendering ([2950cf7](https://bitbucket.org/usereactify/reactify-search-ui/commit/2950cf722075259947b182ed4036a60d22c48a2a))
19
+ * generate separate clauses for regular and synonym analyzers ([1e89b08](https://bitbucket.org/usereactify/reactify-search-ui/commit/1e89b08b01da18a2d3743f19764f6abb9d6445d3))
20
+ * remove curated-page mode and use feature flag ([b387a2b](https://bitbucket.org/usereactify/reactify-search-ui/commit/b387a2b2e2aabd58fef3de42cea27b8340c2a475))
21
+ * reposition product card weight component to card level ([4a387eb](https://bitbucket.org/usereactify/reactify-search-ui/commit/4a387eb494944a497cdf5e1ca42cb777328c2e08))
22
+ * streamline search scoring and improve weight calculation algorithm ([b6d4e5e](https://bitbucket.org/usereactify/reactify-search-ui/commit/b6d4e5e205e6981a1f6149d695f75bfdb38e5186))
23
+ * update filters, sort and others components for new modes ([db29026](https://bitbucket.org/usereactify/reactify-search-ui/commit/db29026ced05522e5d67aaf55d2414b383cd9615))
24
+
5
25
  ## [5.59.0-beta.8](https://bitbucket.org/usereactify/reactify-search-ui/compare/beta-v5.59.0-beta.7...beta-v5.59.0-beta.8) (2025-08-05)
6
26
 
7
27
 
package/dist/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@usereactify/search",
3
3
  "description": "React UI library for Reactify Search",
4
- "version": "5.59.0-beta.8",
4
+ "version": "5.59.0",
5
5
  "license": "MIT",
6
6
  "main": "dist/src/index.js",
7
7
  "types": "dist/src/index.d.ts",
@@ -29,7 +29,7 @@
29
29
  ]
30
30
  },
31
31
  "dependencies": {
32
- "@usereactify/search-internals": "1.0.0",
32
+ "@usereactify/search-internals": "1.1.0",
33
33
  "@appbaseio/reactivecore": "9.15.2",
34
34
  "ahooks": "2.10.11",
35
35
  "axios": "1.10.0",
@@ -46,10 +46,9 @@ const ExampleProductCardWeight = ({ document }) => {
46
46
  color: "white",
47
47
  cursor: "pointer",
48
48
  fontFamily: "monospace",
49
- fontSize: "12px",
49
+ fontSize: "11px",
50
50
  fontWeight: "bold",
51
- maxWidth: showWeightBreakdown ? "250px" : "auto",
52
- minWidth: showWeightBreakdown ? "200px" : "auto",
51
+ maxWidth: "100%",
53
52
  padding: "4px 8px",
54
53
  } },
55
54
  react_1.default.createElement("div", null,
@@ -1 +1 @@
1
- {"version":3,"file":"ExampleProductCardWeight.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleProductCardWeight.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiD;AAEjD,uCAAuD;AACvD,2CAAkG;AAO3F,MAAM,wBAAwB,GAAG,CAAC,EAAE,QAAQ,EAAiC,EAAE,EAAE;IACtF,MAAM,EAAE,OAAO,EAAE,GAAG,IAAA,gCAAwB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,SAAS;SACnB;QAED;;YAAc,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAO;QAErC,mBAAmB,IAAI,eAAe,CAAC,MAAM,GAAG,CAAC,IAAI,CACpD,uCACE,KAAK,EAAE;gBACL,eAAe,EAAE,2BAA2B;gBAC5C,MAAM,EAAE,gBAAgB;gBACxB,YAAY,EAAE,KAAK;gBACnB,KAAK,EAAE,OAAO;gBACd,QAAQ,EAAE,MAAM;gBAChB,SAAS,EAAE,KAAK;gBAChB,SAAS,EAAE,OAAO;gBAClB,SAAS,EAAE,MAAM;gBACjB,OAAO,EAAE,KAAK;aACf;YAED,0CAAQ,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,iBAAqB;YAC5E,eAAe,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CACpC,uCAAK,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE;gBAC7C;oBAAS,IAAI,CAAC,KAAK;wBAAW;;gBAAE,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAClD,CACP,CAAC,CACE,CACP,CACG,CACP,CAAC;AACJ,CAAC,CAAC;AAlEW,QAAA,wBAAwB,4BAkEnC","sourcesContent":["import React, { useState, useMemo } from \"react\";\n\nimport { useReactifySearchContext } from \"../../hooks\";\nimport { explainWeight, getWeight, ExplainScoreDetail, ExplainParsedWeight } from \"../../utility\";\nimport { ElasticProduct } from \"../../types\";\n\nexport interface ExampleProductCardWeightProps {\n document: ElasticProduct;\n}\n\nexport const ExampleProductCardWeight = ({ document }: ExampleProductCardWeightProps) => {\n const { options } = useReactifySearchContext();\n const [showWeightBreakdown, setShowWeightBreakdown] = useState(false);\n\n // Extract score and explanation from document\n const explanation = document._explanation;\n const weight = useMemo(\n () => (explanation ? getWeight(explanation) : document._score),\n [explanation, document._score]\n );\n\n // Parse the weight breakdown if available\n const weightBreakdown: ExplainParsedWeight[] = useMemo(\n () => (explanation ? explainWeight(explanation as ExplainScoreDetail) : []),\n [explanation]\n );\n\n const toggleWeightBreakdown = () => setShowWeightBreakdown(!showWeightBreakdown);\n\n if (!options.devMode) return null;\n\n if (!weight) return null;\n\n return (\n <div\n className=\"rs__result-card-product__weight\"\n onClick={toggleWeightBreakdown}\n style={{\n background: \"rgba(0, 0, 0, 0.8)\",\n borderRadius: \"4px\",\n color: \"white\",\n cursor: \"pointer\",\n fontFamily: \"monospace\",\n fontSize: \"12px\",\n fontWeight: \"bold\",\n maxWidth: showWeightBreakdown ? \"250px\" : \"auto\",\n minWidth: showWeightBreakdown ? \"200px\" : \"auto\",\n padding: \"4px 8px\",\n }}\n >\n <div>Weight: {weight.toFixed(2)}</div>\n\n {showWeightBreakdown && weightBreakdown.length > 0 && (\n <div\n style={{\n backgroundColor: \"rgba(255, 255, 255, 0.95)\",\n border: \"1px solid #ccc\",\n borderRadius: \"4px\",\n color: \"black\",\n fontSize: \"10px\",\n marginTop: \"8px\",\n maxHeight: \"150px\",\n overflowY: \"auto\",\n padding: \"8px\",\n }}\n >\n <strong style={{ display: \"block\", marginBottom: \"4px\" }}>Breakdown:</strong>\n {weightBreakdown.map((item, index) => (\n <div key={index} style={{ marginBottom: \"2px\" }}>\n <strong>{item.field}:</strong> {item.weight.toFixed(2)}\n </div>\n ))}\n </div>\n )}\n </div>\n );\n};\n"]}
1
+ {"version":3,"file":"ExampleProductCardWeight.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleProductCardWeight.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiD;AAEjD,uCAAuD;AACvD,2CAAkG;AAO3F,MAAM,wBAAwB,GAAG,CAAC,EAAE,QAAQ,EAAiC,EAAE,EAAE;IACtF,MAAM,EAAE,OAAO,EAAE,GAAG,IAAA,gCAAwB,GAAE,CAAC;IAC/C,MAAM,CAAC,mBAAmB,EAAE,sBAAsB,CAAC,G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EAAE,gBAAgB;gBACxB,YAAY,EAAE,KAAK;gBACnB,KAAK,EAAE,OAAO;gBACd,QAAQ,EAAE,MAAM;gBAChB,SAAS,EAAE,KAAK;gBAChB,SAAS,EAAE,OAAO;gBAClB,SAAS,EAAE,MAAM;gBACjB,OAAO,EAAE,KAAK;aACf;YAED,0CAAQ,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,iBAAqB;YAC5E,eAAe,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CACpC,uCAAK,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE;gBAC7C;oBAAS,IAAI,CAAC,KAAK;wBAAW;;gBAAE,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAClD,CACP,CAAC,CACE,CACP,CACG,CACP,CAAC;AACJ,CAAC,CAAC;AAjEW,QAAA,wBAAwB,4BAiEnC","sourcesContent":["import React, { useState, useMemo } from \"react\";\n\nimport { useReactifySearchContext } from \"../../hooks\";\nimport { explainWeight, getWeight, ExplainScoreDetail, ExplainParsedWeight } from \"../../utility\";\nimport { ElasticProduct } from \"../../types\";\n\nexport interface ExampleProductCardWeightProps {\n document: ElasticProduct;\n}\n\nexport const ExampleProductCardWeight = ({ document }: ExampleProductCardWeightProps) => {\n const { options } = useReactifySearchContext();\n const [showWeightBreakdown, setShowWeightBreakdown] = useState(false);\n\n // Extract score and explanation from document\n const explanation = document._explanation;\n const weight = useMemo(\n () => (explanation ? getWeight(explanation) : document._score),\n [explanation, document._score]\n );\n\n // Parse the weight breakdown if available\n const weightBreakdown: ExplainParsedWeight[] = useMemo(\n () => (explanation ? explainWeight(explanation as ExplainScoreDetail) : []),\n [explanation]\n );\n\n const toggleWeightBreakdown = () => setShowWeightBreakdown(!showWeightBreakdown);\n\n if (!options.devMode) return null;\n\n if (!weight) return null;\n\n return (\n <div\n className=\"rs__result-card-product__weight\"\n onClick={toggleWeightBreakdown}\n style={{\n background: \"rgba(0, 0, 0, 0.8)\",\n borderRadius: \"4px\",\n color: \"white\",\n cursor: \"pointer\",\n fontFamily: \"monospace\",\n fontSize: \"11px\",\n fontWeight: \"bold\",\n maxWidth: \"100%\",\n padding: \"4px 8px\",\n }}\n >\n <div>Weight: {weight.toFixed(2)}</div>\n\n {showWeightBreakdown && weightBreakdown.length > 0 && (\n <div\n style={{\n backgroundColor: \"rgba(255, 255, 255, 0.95)\",\n border: \"1px solid #ccc\",\n borderRadius: \"4px\",\n color: \"black\",\n fontSize: \"10px\",\n marginTop: \"8px\",\n maxHeight: \"150px\",\n overflowY: \"auto\",\n padding: \"8px\",\n }}\n >\n <strong style={{ display: \"block\", marginBottom: \"4px\" }}>Breakdown:</strong>\n {weightBreakdown.map((item, index) => (\n <div key={index} style={{ marginBottom: \"2px\" }}>\n <strong>{item.field}:</strong> {item.weight.toFixed(2)}\n </div>\n ))}\n </div>\n )}\n </div>\n );\n};\n"]}
@@ -8,11 +8,10 @@ const react_1 = __importDefault(require("react"));
8
8
  const ExampleProductCardWeight_1 = require("./ExampleProductCardWeight");
9
9
  function ExampleResultCardProduct(props) {
10
10
  return (react_1.default.createElement("div", { ref: props.itemRef, className: "rs__result-card-product", style: { position: "relative" } },
11
+ react_1.default.createElement("div", { style: { position: "absolute", right: "0", top: "0", zIndex: 1 } },
12
+ react_1.default.createElement(ExampleProductCardWeight_1.ExampleProductCardWeight, { document: props.document })),
11
13
  react_1.default.createElement("a", { className: "rs__result-card-product__link", onClick: props.handleClick, href: `/products/${props.product.handle}` },
12
- props.product.image && (react_1.default.createElement("div", { style: { position: "relative" } },
13
- react_1.default.createElement("img", { className: "rs__result-card-product__image", src: props.product.image, width: "100%", height: "190px" }),
14
- react_1.default.createElement("div", { style: { position: "absolute", right: "0", top: "0", zIndex: 1 } },
15
- react_1.default.createElement(ExampleProductCardWeight_1.ExampleProductCardWeight, { document: props.document })))),
14
+ props.product.image && (react_1.default.createElement("img", { className: "rs__result-card-product__image", src: props.product.image, width: "100%", height: "190px" })),
16
15
  react_1.default.createElement("span", { className: "rs__result-card-product__title" }, props.product.title)),
17
16
  react_1.default.createElement("span", { className: "rs__result-card-product__price" }, props.formattedPrice),
18
17
  props.onSale && (react_1.default.createElement("span", { className: "rs__result-card-product__price-sale", style: { textDecoration: "line-through" } }, props.formattedCompareAtPrice))));
@@ -1 +1 @@
1
- {"version":3,"file":"ExampleResultCardProduct.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleResultCardProduct.tsx"],"names":[],"mappings":";;;;;AAOA,4DA0BC;AAjCD,kDAA0B;AAG1B,yEAAsE;AAItE,SAAgB,wBAAwB,CAAC,KAAoC;IAC3E,OAAO,CACL,uCAAK,GAAG,EAAE,KAAK,CAAC,OAAO,EAAE,SAAS,EAAC,yBAAyB,EAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE;QAC1F,qCACE,SAAS,EAAC,+BAA+B,EACzC,OAAO,EAAE,KAAK,CAAC,WAAW,EAC1B,IAAI,EAAE,aAAa,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE;YAExC,KAAK,CAAC,OAAO,CAAC,KAAK,IAAI,CACtB,uCAAK,KAAK,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE;gBAClC,uCAAK,SAAS,EAAC,gCAAgC,EAAC,GAAG,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,OAAO,GAAG;gBACxG,uCAAK,KAAK,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE;oBACnE,8BAAC,mDAAwB,IAAC,QAAQ,EAAE,KAAK,CAAC,QAAQ,GAAI,CAClD,CACF,CACP;YACD,wCAAM,SAAS,EAAC,gCAAgC,IAAE,KAAK,CAAC,OAAO,CAAC,KAAK,CAAQ,CAC3E;QACJ,wCAAM,SAAS,EAAC,gCAAgC,IAAE,KAAK,CAAC,cAAc,CAAQ;QAC7E,KAAK,CAAC,MAAM,IAAI,CACf,wCAAM,SAAS,EAAC,qCAAqC,EAAC,KAAK,EAAE,EAAE,cAAc,EAAE,cAAc,EAAE,IAC5F,KAAK,CAAC,uBAAuB,CACzB,CACR,CACG,CACP,CAAC;AACJ,CAAC","sourcesContent":["import React from \"react\";\n\nimport { ResultCardProductProps } from \"../../components\";\nimport { ExampleProductCardWeight } from \"./ExampleProductCardWeight\";\n\nexport type ExampleResultCardProductProps = React.ComponentProps<NonNullable<ResultCardProductProps[\"render\"]>>;\n\nexport function ExampleResultCardProduct(props: ExampleResultCardProductProps) {\n return (\n <div ref={props.itemRef} className=\"rs__result-card-product\" style={{ position: \"relative\" }}>\n <a\n className=\"rs__result-card-product__link\"\n onClick={props.handleClick}\n href={`/products/${props.product.handle}`}\n >\n {props.product.image && (\n <div style={{ position: \"relative\" }}>\n <img className=\"rs__result-card-product__image\" src={props.product.image} width=\"100%\" height=\"190px\" />\n <div style={{ position: \"absolute\", right: \"0\", top: \"0\", zIndex: 1 }}>\n <ExampleProductCardWeight document={props.document} />\n </div>\n </div>\n )}\n <span className=\"rs__result-card-product__title\">{props.product.title}</span>\n </a>\n <span className=\"rs__result-card-product__price\">{props.formattedPrice}</span>\n {props.onSale && (\n <span className=\"rs__result-card-product__price-sale\" style={{ textDecoration: \"line-through\" }}>\n {props.formattedCompareAtPrice}\n </span>\n )}\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"ExampleResultCardProduct.js","sourceRoot":"","sources":["../../../../src/components/Example/ExampleResultCardProduct.tsx"],"names":[],"mappings":";;;;;AAOA,4DAwBC;AA/BD,kDAA0B;AAG1B,yEAAsE;AAItE,SAAgB,wBAAwB,CAAC,KAAoC;IAC3E,OAAO,CACL,uCAAK,GAAG,EAAE,KAAK,CAAC,OAAO,EAAE,SAAS,EAAC,yBAAyB,EAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE;QAC1F,uCAAK,KAAK,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE;YACnE,8BAAC,mDAAwB,IAAC,QAAQ,EAAE,KAAK,CAAC,QAAQ,GAAI,CAClD;QACN,qCACE,SAAS,EAAC,+BAA+B,EACzC,OAAO,EAAE,KAAK,CAAC,WAAW,EAC1B,IAAI,EAAE,aAAa,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE;YAExC,KAAK,CAAC,OAAO,CAAC,KAAK,IAAI,CACtB,uCAAK,SAAS,EAAC,gCAAgC,EAAC,GAAG,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,EAAC,MAAM,EAAC,MAAM,EAAC,OAAO,GAAG,CACzG;YACD,wCAAM,SAAS,EAAC,gCAAgC,IAAE,KAAK,CAAC,OAAO,CAAC,KAAK,CAAQ,CAC3E;QACJ,wCAAM,SAAS,EAAC,gCAAgC,IAAE,KAAK,CAAC,cAAc,CAAQ;QAC7E,KAAK,CAAC,MAAM,IAAI,CACf,wCAAM,SAAS,EAAC,qCAAqC,EAAC,KAAK,EAAE,EAAE,cAAc,EAAE,cAAc,EAAE,IAC5F,KAAK,CAAC,uBAAuB,CACzB,CACR,CACG,CACP,CAAC;AACJ,CAAC","sourcesContent":["import React from \"react\";\n\nimport { ResultCardProductProps } from \"../../components\";\nimport { ExampleProductCardWeight } from \"./ExampleProductCardWeight\";\n\nexport type ExampleResultCardProductProps = React.ComponentProps<NonNullable<ResultCardProductProps[\"render\"]>>;\n\nexport function ExampleResultCardProduct(props: ExampleResultCardProductProps) {\n return (\n <div ref={props.itemRef} className=\"rs__result-card-product\" style={{ position: \"relative\" }}>\n <div style={{ position: \"absolute\", right: \"0\", top: \"0\", zIndex: 1 }}>\n <ExampleProductCardWeight document={props.document} />\n </div>\n <a\n className=\"rs__result-card-product__link\"\n onClick={props.handleClick}\n href={`/products/${props.product.handle}`}\n >\n {props.product.image && (\n <img className=\"rs__result-card-product__image\" src={props.product.image} width=\"100%\" height=\"190px\" />\n )}\n <span className=\"rs__result-card-product__title\">{props.product.title}</span>\n </a>\n <span className=\"rs__result-card-product__price\">{props.formattedPrice}</span>\n {props.onSale && (\n <span className=\"rs__result-card-product__price-sale\" style={{ textDecoration: \"line-through\" }}>\n {props.formattedCompareAtPrice}\n </span>\n )}\n </div>\n );\n}\n"]}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@usereactify/search",
3
3
  "description": "React UI library for Reactify Search",
4
- "version": "5.59.0-beta.8",
4
+ "version": "5.59.0",
5
5
  "license": "MIT",
6
6
  "main": "dist/src/index.js",
7
7
  "types": "dist/src/index.d.ts",
@@ -29,7 +29,7 @@
29
29
  ]
30
30
  },
31
31
  "dependencies": {
32
- "@usereactify/search-internals": "1.0.0",
32
+ "@usereactify/search-internals": "1.1.0",
33
33
  "@appbaseio/reactivecore": "9.15.2",
34
34
  "ahooks": "2.10.11",
35
35
  "axios": "1.10.0",