@searchcraft/react-sdk 0.9.1 → 0.9.3

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/dist/index.js CHANGED
@@ -3378,7 +3378,7 @@ const ds = /* @__PURE__ */ D(class extends F {
3378
3378
  }
3379
3379
  renderWithADMAds() {
3380
3380
  var r, a;
3381
- return d("div", { class: "searchcraft-search-results-container" }, (r = this.adClientResponseItems) == null ? void 0 : r.map((n) => d("searchcraft-ad", { adSource: "adMarketplace", adClientResponseItem: n, key: n.id })), (a = this.searchClientResponseItems) == null ? void 0 : a.map((n, o) => d("searchcraft-base-search-result", { key: n.id, "custom-styles": this.serializedStyles, "image-placement": this.resultImagePlacement, "container-rel": this.containerRel, "container-target": this.containerTarget, "button-label": this.buttonLabel || "View more", "button-rel": this.buttonRel, "button-target": this.buttonTarget, "document-position": this.searchResultsPerPage * this.searchResultsPage + o, searchResultMappings: this.searchResultMappings, item: n })));
3381
+ return d("div", { class: "searchcraft-search-results-container" }, (r = this.adClientResponseItems) == null ? void 0 : r.map((n) => d("searchcraft-ad", { adSource: "adMarketplace", adClientResponseItem: n, key: n.id })), (a = this.searchClientResponseItems) == null ? void 0 : a.map((n, o) => d("searchcraft-base-search-result", { key: n.id, "custom-styles": this.serializedStyles, "image-placement": this.resultImagePlacement, "container-rel": this.containerRel, "container-target": this.containerTarget, "button-label": this.buttonLabel || "View more", "button-rel": this.buttonRel, "button-target": this.buttonTarget, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + o, searchResultMappings: this.searchResultMappings, item: n })));
3382
3382
  }
3383
3383
  renderWithCustomAds() {
3384
3384
  var u, l, i, p;
@@ -3389,7 +3389,7 @@ const ds = /* @__PURE__ */ D(class extends F {
3389
3389
  if (a && b % a === 0 && b + a < c.length && b >= a)
3390
3390
  for (let w = 0; w < n; w++)
3391
3391
  r.push(d("searchcraft-ad", { adSource: "Custom", key: `${g.id}-ad-${w}` }));
3392
- r.push(d("searchcraft-base-search-result", { key: g.id, "custom-styles": this.serializedStyles, "image-placement": this.resultImagePlacement, "container-rel": this.containerRel, "container-target": this.containerTarget, "button-label": this.buttonLabel || "View more", "button-rel": this.buttonRel, "button-target": this.buttonTarget, "document-position": this.searchResultsPerPage * this.searchResultsPage + b, searchResultMappings: this.searchResultMappings, item: g }));
3392
+ r.push(d("searchcraft-base-search-result", { key: g.id, "custom-styles": this.serializedStyles, "image-placement": this.resultImagePlacement, "container-rel": this.containerRel, "container-target": this.containerTarget, "button-label": this.buttonLabel || "View more", "button-rel": this.buttonRel, "button-target": this.buttonTarget, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + b, searchResultMappings: this.searchResultMappings, item: g }));
3393
3393
  });
3394
3394
  for (let g = 0; g < s; g++)
3395
3395
  r.push(d("searchcraft-ad", { adSource: "Custom", key: `${g}-ad` }));
@@ -3397,7 +3397,7 @@ const ds = /* @__PURE__ */ D(class extends F {
3397
3397
  }
3398
3398
  renderWithNoAds() {
3399
3399
  var r;
3400
- return d("div", { class: "searchcraft-search-results-container" }, (r = this.searchClientResponseItems) == null ? void 0 : r.map((a, n) => d("searchcraft-base-search-result", { key: a.id, "custom-styles": this.serializedStyles, "image-placement": this.resultImagePlacement, "container-rel": this.containerRel, "container-target": this.containerTarget, "button-label": this.buttonLabel || "View more", "button-rel": this.buttonRel, "button-target": this.buttonTarget, "document-position": this.searchResultsPerPage * this.searchResultsPage + n, searchResultMappings: this.searchResultMappings, item: a })));
3400
+ return d("div", { class: "searchcraft-search-results-container" }, (r = this.searchClientResponseItems) == null ? void 0 : r.map((a, n) => d("searchcraft-base-search-result", { key: a.id, "custom-styles": this.serializedStyles, "image-placement": this.resultImagePlacement, "container-rel": this.containerRel, "container-target": this.containerTarget, "button-label": this.buttonLabel || "View more", "button-rel": this.buttonRel, "button-target": this.buttonTarget, "document-position": this.searchResultsPerPage * (this.searchResultsPage - 1) + n, searchResultMappings: this.searchResultMappings, item: a })));
3401
3401
  }
3402
3402
  render() {
3403
3403
  var r;
@@ -4848,7 +4848,7 @@ const Rc = Us, zs = Ec, kc = Ss, Hs = () => {
4848
4848
  Oi(), Ni(), ps(), Gi(), Wi(), Qi(), Es(), Ps(), sc(), xs(), $s(), Ms(), fc(), dc(), Os(), Ns(), yc(), Sc(), zs(), kc();
4849
4849
  };
4850
4850
  Hs();
4851
- const Pc = "@searchcraft/react-sdk", Cc = "Searchcraft", xc = "0.9.1", Tc = "Searchcraft React SDK.", $c = "module", _c = "Apache-2.0", Ac = ["searchcraft"], Ic = { build: "tsc && vite build && yarn docs", docs: "typedoc --options typedoc.json", lint: "biome format lint ./src", test: "vitest --watch=false", "test:watch": "vitest" }, Mc = { type: "git", url: "https://bitbucket.org/madebychalk/searchcraft-javascript-sdks/" }, Lc = { node: ">=18.0.0", npm: ">=10.0.0" }, Oc = "dist/index.js", Fc = "dist/index.js", Dc = "dist/index.d.ts", Nc = ["dist/**/*"], Uc = { ".": { import: "./dist/index.js", types: "./dist/index.d.ts" } }, zc = { classnames: "^2.3.2" }, Hc = { react: "^18.3.1", "react-dom": "^18.3.1" }, Bc = { "@biomejs/biome": "^1.8.1", "@searchcraft/core": "^0.9.1", "@searchcraft/javascript-sdk": "^0.9.1", "@testing-library/jest-dom": "^6.4.2", "@testing-library/react": "^14.2.1", "@types/node": "^20.11.25", "@types/react": "^18.3.3", "@types/react-dom": "^18.3.0", jsdom: "^24.0.0", react: "^18.3.1", "react-dom": "^18.3.1", sass: "^1.56.1" }, Ma = {
4851
+ const Pc = "@searchcraft/react-sdk", Cc = "Searchcraft", xc = "0.9.3", Tc = "Searchcraft React SDK.", $c = "module", _c = "Apache-2.0", Ac = ["searchcraft"], Ic = { build: "tsc && vite build && yarn docs", docs: "typedoc --options typedoc.json", lint: "biome format lint ./src", test: "vitest --watch=false", "test:watch": "vitest" }, Mc = { type: "git", url: "https://bitbucket.org/madebychalk/searchcraft-javascript-sdks/" }, Lc = { node: ">=18.0.0", npm: ">=10.0.0" }, Oc = "dist/index.js", Fc = "dist/index.js", Dc = "dist/index.d.ts", Nc = ["dist/**/*"], Uc = { ".": { import: "./dist/index.js", types: "./dist/index.d.ts" } }, zc = { classnames: "^2.3.2" }, Hc = { react: "^18.3.1", "react-dom": "^18.3.1" }, Bc = { "@biomejs/biome": "^1.8.1", "@searchcraft/core": "^0.9.3", "@searchcraft/javascript-sdk": "^0.9.3", "@testing-library/jest-dom": "^6.4.2", "@testing-library/react": "^14.2.1", "@types/node": "^20.11.25", "@types/react": "^18.3.3", "@types/react-dom": "^18.3.0", jsdom: "^24.0.0", react: "^18.3.1", "react-dom": "^18.3.1", sass: "^1.56.1" }, Ma = {
4852
4852
  name: Pc,
4853
4853
  private: !1,
4854
4854
  author: Cc,