@searchcraft/vue-sdk 0.9.2 → 0.9.4

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.
Files changed (31) hide show
  1. package/dist/index.d.ts +3434 -9
  2. package/dist/index.es.js +22 -12
  3. package/dist/index.es.js.map +1 -1
  4. package/dist/index.umd.js +6 -6
  5. package/dist/index.umd.js.map +1 -1
  6. package/package.json +4 -4
  7. package/dist/components/SearchcraftBaseSearchResults.d.ts +0 -38
  8. package/dist/components/SearchcraftBaseSearchResults.d.ts.map +0 -1
  9. package/dist/components/SearchcraftFilterPanel.d.ts +0 -25
  10. package/dist/components/SearchcraftFilterPanel.d.ts.map +0 -1
  11. package/dist/components/SearchcraftInputForm.d.ts +0 -45
  12. package/dist/components/SearchcraftInputForm.d.ts.map +0 -1
  13. package/dist/components/SearchcraftPagination.d.ts +0 -24
  14. package/dist/components/SearchcraftPagination.d.ts.map +0 -1
  15. package/dist/components/SearchcraftPopoverButton.d.ts +0 -25
  16. package/dist/components/SearchcraftPopoverButton.d.ts.map +0 -1
  17. package/dist/components/SearchcraftPopoverForm.d.ts +0 -32
  18. package/dist/components/SearchcraftPopoverForm.d.ts.map +0 -1
  19. package/dist/components/SearchcraftResultsInfo.d.ts +0 -26
  20. package/dist/components/SearchcraftResultsInfo.d.ts.map +0 -1
  21. package/dist/components/SearchcraftSearchResultsPerPage.d.ts +0 -23
  22. package/dist/components/SearchcraftSearchResultsPerPage.d.ts.map +0 -1
  23. package/dist/components/SearchcraftSelect.d.ts +0 -25
  24. package/dist/components/SearchcraftSelect.d.ts.map +0 -1
  25. package/dist/components/SearchcraftTheme.d.ts +0 -24
  26. package/dist/components/SearchcraftTheme.d.ts.map +0 -1
  27. package/dist/components/index.d.ts +0 -10
  28. package/dist/components/index.d.ts.map +0 -1
  29. package/dist/index.d.ts.map +0 -1
  30. package/dist/stencil-web-components.d.ts +0 -22
  31. package/dist/stencil-web-components.d.ts.map +0 -1
package/dist/index.es.js CHANGED
@@ -3377,7 +3377,7 @@ const $i = /* @__PURE__ */ N(class extends D {
3377
3377
  }
3378
3378
  renderWithADMAds() {
3379
3379
  var r, a;
3380
- 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 })));
3380
+ 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 })));
3381
3381
  }
3382
3382
  renderWithCustomAds() {
3383
3383
  var u, l, i, p;
@@ -3388,7 +3388,7 @@ const $i = /* @__PURE__ */ N(class extends D {
3388
3388
  if (a && S % a === 0 && S + a < c.length && S >= a)
3389
3389
  for (let R = 0; R < n; R++)
3390
3390
  r.push(d("searchcraft-ad", { adSource: "Custom", key: `${g.id}-ad-${R}` }));
3391
- 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 + S, searchResultMappings: this.searchResultMappings, item: g }));
3391
+ 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) + S, searchResultMappings: this.searchResultMappings, item: g }));
3392
3392
  });
3393
3393
  for (let g = 0; g < s; g++)
3394
3394
  r.push(d("searchcraft-ad", { adSource: "Custom", key: `${g}-ad` }));
@@ -3396,7 +3396,7 @@ const $i = /* @__PURE__ */ N(class extends D {
3396
3396
  }
3397
3397
  renderWithNoAds() {
3398
3398
  var r;
3399
- 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 })));
3399
+ 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 })));
3400
3400
  }
3401
3401
  render() {
3402
3402
  var r;
@@ -4847,7 +4847,7 @@ const Sc = yc, wc = ws, Cs = () => {
4847
4847
  Ri(), Ci(), Ai(), Mi(), Li(), zi(), Wi(), qi(), Ki(), Ji(), tc(), nc(), oc(), ic(), uc(), pc(), mc(), gc(), Sc(), wc();
4848
4848
  };
4849
4849
  Cs();
4850
- const Ec = "@searchcraft/vue-sdk", Rc = "0.9.2", kc = "Searchcraft Vue SDK.", Pc = "module", Cc = "Apache-2.0", Tc = ["searchcraft"], xc = { dev: "vite", clean: "rm -rf dist", build: "yarn clean && vite build && yarn docs", docs: "typedoc --options typedoc.json", preview: "vite preview", "build-only": "vite build", "type-check": "vue-tsc --build" }, $c = { type: "git", url: "https://bitbucket.org/madebychalk/searchcraft-javascript-sdks/" }, _c = { node: ">=18.0.0", npm: ">=10.0.0" }, Ac = "./dist/index.umd.js", Ic = "./dist/index.es.js", Mc = "./dist/index.d.ts", Lc = { ".": { types: "./dist/index.d.ts", import: "./dist/index.es.js", require: "./dist/index.umd.js" }, "./components": "./dist/components/index.d.ts", "./plugin": "./dist/plugin.d.ts" }, Oc = ["dist"], Fc = { vue: "^3.5.13" }, Dc = { "@searchcraft/core": "^0.9.2", "@searchcraft/javascript-sdk": "^0.9.2", "@tsconfig/node22": "^22.0.0", "@types/node": "^22.10.7", "@vitejs/plugin-vue": "^5.2.1", "@vitejs/plugin-vue-jsx": "^4.1.1", "@vue/runtime-dom": "^3.5.13", "@vue/tsconfig": "^0.7.0", "npm-run-all2": "^7.0.2", vite: "^6.0.11", "vite-plugin-dts": "^4.5.0", "vite-plugin-vue-devtools": "^7.7.0", "vue-docgen-web-types": "^0.1.8", "vue-tsc": "^2.2.0" }, Oa = {
4850
+ const Ec = "@searchcraft/vue-sdk", Rc = "0.9.4", kc = "Searchcraft Vue SDK.", Pc = "module", Cc = "Apache-2.0", Tc = ["searchcraft"], xc = { dev: "vite", clean: "rm -rf dist", build: "yarn clean && vite build && yarn docs", docs: "typedoc --options typedoc.json", preview: "vite preview", "build-only": "vite build", "type-check": "vue-tsc --build" }, $c = { type: "git", url: "https://bitbucket.org/madebychalk/searchcraft-javascript-sdks/" }, _c = { node: ">=18.0.0", npm: ">=10.0.0" }, Ac = "./dist/index.umd.js", Ic = "./dist/index.es.js", Mc = "./dist/index.d.ts", Lc = { ".": { types: "./dist/index.d.ts", import: "./dist/index.es.js", require: "./dist/index.umd.js" }, "./components": "./dist/components/index.d.ts", "./plugin": "./dist/plugin.d.ts" }, Oc = ["dist"], Fc = { vue: "^3.5.13" }, Dc = { "@searchcraft/core": "^0.9.4", "@searchcraft/javascript-sdk": "^0.9.4", "@tsconfig/node22": "^22.0.0", "@types/node": "^22.10.7", "@vitejs/plugin-vue": "^5.2.1", "@vitejs/plugin-vue-jsx": "^4.1.1", "@vue/runtime-dom": "^3.5.13", "@vue/tsconfig": "^0.7.0", "npm-run-all2": "^7.0.2", vite: "^6.0.11", "vite-plugin-dts": "^4.5.0", "vite-plugin-vue-devtools": "^7.7.0", "vue-docgen-web-types": "^0.1.8", "vue-tsc": "^2.2.0" }, Oa = {
4851
4851
  name: Ec,
4852
4852
  version: Rc,
4853
4853
  private: !1,
@@ -4869,6 +4869,7 @@ const Ec = "@searchcraft/vue-sdk", Rc = "0.9.2", kc = "Searchcraft Vue SDK.", Pc
4869
4869
  var a;
4870
4870
  return [...Array.from(((a = e.value) == null ? void 0 : a.classList) || []), ...r].filter((n, o, s) => !t.has(n) && s.indexOf(n) === o);
4871
4871
  }, Re = (e, t, r = [], a = [], n, o) => {
4872
+ t !== void 0 && t();
4872
4873
  const s = pn((c, { attrs: u, slots: l, emit: i }) => {
4873
4874
  var W;
4874
4875
  const p = mn(), g = new Set(Na(u.class)), S = gn(), O = ((W = S == null ? void 0 : S.appContext) == null ? void 0 : W.provides[Fa]) ? bn(Fa) : void 0, ue = ($) => {
@@ -4914,7 +4915,8 @@ const Ec = "@searchcraft/vue-sdk", Rc = "0.9.2", kc = "Searchcraft Vue SDK.", Pc
4914
4915
  u.ROUTER_LINK_VALUE = Da, r.forEach((l) => u[l] = Da), c = a, s.name = e, s.emits = c, s.props = u;
4915
4916
  }
4916
4917
  return s;
4917
- }, Hc = /* @__PURE__ */ Re("searchcraft-base-search-results", void 0, [
4918
+ }, Hc = /* @__PURE__ */ Re("searchcraft-base-search-results", () => {
4919
+ }, [
4918
4920
  "customStylesForResults",
4919
4921
  "searchResultMappings",
4920
4922
  "resultImagePlacement",
@@ -4923,9 +4925,11 @@ const Ec = "@searchcraft/vue-sdk", Rc = "0.9.2", kc = "Searchcraft Vue SDK.", Pc
4923
4925
  "buttonRel",
4924
4926
  "containerTarget",
4925
4927
  "containerRel"
4926
- ]), Bc = /* @__PURE__ */ Re("searchcraft-filter-panel", void 0, [
4928
+ ]), Bc = /* @__PURE__ */ Re("searchcraft-filter-panel", () => {
4929
+ }, [
4927
4930
  "items"
4928
- ]), jc = /* @__PURE__ */ Re("searchcraft-input-form", void 0, [
4931
+ ]), jc = /* @__PURE__ */ Re("searchcraft-input-form", () => {
4932
+ }, [
4929
4933
  "autoSearch",
4930
4934
  "buttonPlacement",
4931
4935
  "buttonLabel",
@@ -4941,20 +4945,26 @@ const Ec = "@searchcraft/vue-sdk", Rc = "0.9.2", kc = "Searchcraft Vue SDK.", Pc
4941
4945
  "inputFocus",
4942
4946
  "inputBlur",
4943
4947
  "inputInit"
4944
- ]), Gc = /* @__PURE__ */ Re("searchcraft-pagination", void 0, [
4948
+ ]), Gc = /* @__PURE__ */ Re("searchcraft-pagination", () => {
4949
+ }, [
4945
4950
  "customStyles"
4946
- ]), Wc = /* @__PURE__ */ Re("searchcraft-popover-button"), Vc = /* @__PURE__ */ Re("searchcraft-popover-form", void 0, [
4951
+ ]), Wc = /* @__PURE__ */ Re("searchcraft-popover-button", () => {
4952
+ }), Vc = /* @__PURE__ */ Re("searchcraft-popover-form", () => {
4953
+ }, [
4947
4954
  "type",
4948
4955
  "popoverResultMappings",
4949
4956
  "hotkey",
4950
4957
  "hotkeyModifier"
4951
- ]), Yc = /* @__PURE__ */ Re("searchcraft-results-info", void 0, [
4958
+ ]), Yc = /* @__PURE__ */ Re("searchcraft-results-info", () => {
4959
+ }, [
4952
4960
  "customFormatter",
4953
4961
  "customStyles"
4954
- ]), qc = /* @__PURE__ */ Re("searchcraft-search-results-per-page", void 0, [
4962
+ ]), qc = /* @__PURE__ */ Re("searchcraft-search-results-per-page", () => {
4963
+ }, [
4955
4964
  "increment",
4956
4965
  "customStyles"
4957
- ]), Kc = /* @__PURE__ */ Re("searchcraft-theme", void 0, [
4966
+ ]), Kc = /* @__PURE__ */ Re("searchcraft-theme", () => {
4967
+ }, [
4958
4968
  "theme",
4959
4969
  "customTheme"
4960
4970
  ]), vl = Hc, yl = Bc, Sl = jc, wl = Wc, El = Vc, Rl = Yc, kl = Kc, Pl = Gc, Cl = qc;