@searchcraft/vue-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.es.js +4 -4
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +4 -4
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.
|
|
4850
|
+
const Ec = "@searchcraft/vue-sdk", Rc = "0.9.3", 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.3", "@searchcraft/javascript-sdk": "^0.9.3", "@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,
|