vviinn-widgets 2.168.0 → 2.168.1
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/cjs/{package-ByWoLUA3.js → package-DeG1AEbB.js} +1 -1
- package/dist/cjs/vviinn-camera_12.cjs.entry.js +5 -5
- package/dist/cjs/vviinn-carousel_10.cjs.entry.js +1 -1
- package/dist/cjs/vviinn-detected-object_7.cjs.entry.js +1 -1
- package/dist/collection/components/vviinn-results/vviinn-results.js +4 -4
- package/dist/esm/{package-BJGM6EPZ.js → package-CJeeTzkr.js} +1 -1
- package/dist/esm/vviinn-camera_12.entry.js +5 -5
- package/dist/esm/vviinn-carousel_10.entry.js +1 -1
- package/dist/esm/vviinn-detected-object_7.entry.js +1 -1
- package/{www/build/p-04c3bc50.entry.js → dist/vviinn-widgets/p-366df345.entry.js} +1 -1
- package/dist/vviinn-widgets/{p-BJGM6EPZ.js → p-CJeeTzkr.js} +1 -1
- package/{www/build/p-7d66b391.entry.js → dist/vviinn-widgets/p-d2908040.entry.js} +2 -2
- package/dist/vviinn-widgets/{p-8ca3aae7.entry.js → p-fdff6519.entry.js} +1 -1
- package/dist/vviinn-widgets/vviinn-widgets.esm.js +1 -1
- package/package.json +1 -1
- package/{dist/vviinn-widgets/p-04c3bc50.entry.js → www/build/p-366df345.entry.js} +1 -1
- package/www/build/{p-BJGM6EPZ.js → p-CJeeTzkr.js} +1 -1
- package/www/build/{p-27804358.js → p-a2741931.js} +1 -1
- package/{dist/vviinn-widgets/p-7d66b391.entry.js → www/build/p-d2908040.entry.js} +2 -2
- package/www/build/{p-8ca3aae7.entry.js → p-fdff6519.entry.js} +1 -1
- package/www/build/vviinn-widgets.esm.js +1 -1
- package/www/index.html +1 -1
|
@@ -7,7 +7,7 @@ var index$2 = require('./index-D_wGgGZa.js');
|
|
|
7
7
|
var index$1 = require('./index-C3G9W48a.js');
|
|
8
8
|
var Rectangle = require('./Rectangle-oExct0ft.js');
|
|
9
9
|
var index$3 = require('./index-B7VfQ5vd.js');
|
|
10
|
-
var _package = require('./package-
|
|
10
|
+
var _package = require('./package-DeG1AEbB.js');
|
|
11
11
|
var resources = require('./resources-fyqfpLC2.js');
|
|
12
12
|
var index$4 = require('./index-DYvhURIh.js');
|
|
13
13
|
var constants = require('./constants-CgBx7Czu.js');
|
|
@@ -3913,7 +3913,7 @@ const VviinnResults = class {
|
|
|
3913
3913
|
this.getTextSearchResults(this.state.textSearchId);
|
|
3914
3914
|
}
|
|
3915
3915
|
else {
|
|
3916
|
-
search_store.makeVisualSearchRequest(this.storeName, this.
|
|
3916
|
+
search_store.makeVisualSearchRequest(this.storeName, this.state.visualSearchId);
|
|
3917
3917
|
}
|
|
3918
3918
|
};
|
|
3919
3919
|
this.filterTriggeredHandler = ({ detail, }) => {
|
|
@@ -4192,13 +4192,13 @@ const VviinnResults = class {
|
|
|
4192
4192
|
render() {
|
|
4193
4193
|
var _a;
|
|
4194
4194
|
const resultsLength = this.getResults().length;
|
|
4195
|
-
return (index.h(index.Host, { key: '
|
|
4195
|
+
return (index.h(index.Host, { key: '4130287ba2797e13e13ef459aefb7454ad529a8a', id: "results-block", class: {
|
|
4196
4196
|
"show-in-widget": this.showInWidget,
|
|
4197
4197
|
"matching-discovery": this.oneClickDiscoveryMode === "append-slider",
|
|
4198
|
-
}, exportparts: `${index$4.productCardParts}, ${index$4.productCardsGridPart}` }, index.h("div", { key: '
|
|
4198
|
+
}, exportparts: `${index$4.productCardParts}, ${index$4.productCardsGridPart}` }, index.h("div", { key: 'cf45f881e64d3e48d4072250799205d5d140207b', class: "nothing-found" }, resultsLength === 0 && this.showInWidget && (index.h("vviinn-empty-results", { key: '28965b07a17bc4215a9d19468148b1d1816b75cc', handler: () => this === null || this === void 0 ? void 0 : this.resetWidgetState() })), this.showAspectRatioError && this.showInWidget && (index.h("vviinn-wrong-aspect-ratio", { key: 'ab5ffce3145e7ef6865efee9d0e24a8dc04d8643', handler: () => this === null || this === void 0 ? void 0 : this.resetWidgetState() }))), index.h("div", { key: '802d30495385f9f4d6b203fd715c207b1253c76d', class: {
|
|
4199
4199
|
hidden: this.showAspectRatioError || resultsLength === 0,
|
|
4200
4200
|
products: true,
|
|
4201
|
-
}, part: index$4.productCardsGridPart, id: "vviinn-results-products" }, resultsLength > 0 && this.renderResults(), index.h("div", { key: '
|
|
4201
|
+
}, part: index$4.productCardsGridPart, id: "vviinn-results-products" }, resultsLength > 0 && this.renderResults(), index.h("div", { key: '488e5683bc1ae77b021b2cdda3d73d00e5b35a84', id: "one-click-discovery-append", style: {
|
|
4202
4202
|
order: ((_a = this.oneClickDiscoveryAppendIndex) !== null && _a !== void 0 ? _a : resultsLength).toString(),
|
|
4203
4203
|
} }))));
|
|
4204
4204
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var index = require('./index-A2FtmPS7.js');
|
|
4
4
|
var search_store = require('./search.store-BLHPjH2B.js');
|
|
5
|
-
var _package = require('./package-
|
|
5
|
+
var _package = require('./package-DeG1AEbB.js');
|
|
6
6
|
var index$1 = require('./index-D_wGgGZa.js');
|
|
7
7
|
var constants = require('./constants-CgBx7Czu.js');
|
|
8
8
|
var Rectangle = require('./Rectangle-oExct0ft.js');
|
|
@@ -5,7 +5,7 @@ var search_store = require('./search.store-BLHPjH2B.js');
|
|
|
5
5
|
var Rectangle = require('./Rectangle-oExct0ft.js');
|
|
6
6
|
var WarningIcon = require('./WarningIcon-DOMzuRV9.js');
|
|
7
7
|
var customizedSlots = require('./customized-slots-Da3rVnNM.js');
|
|
8
|
-
var _package = require('./package-
|
|
8
|
+
var _package = require('./package-DeG1AEbB.js');
|
|
9
9
|
var index$1 = require('./index-DYvhURIh.js');
|
|
10
10
|
var constants = require('./constants-CgBx7Czu.js');
|
|
11
11
|
var index$2 = require('./index-B7VfQ5vd.js');
|
|
@@ -134,7 +134,7 @@ export class VviinnResults {
|
|
|
134
134
|
this.getTextSearchResults(this.state.textSearchId);
|
|
135
135
|
}
|
|
136
136
|
else {
|
|
137
|
-
makeVisualSearchRequest(this.storeName, this.
|
|
137
|
+
makeVisualSearchRequest(this.storeName, this.state.visualSearchId);
|
|
138
138
|
}
|
|
139
139
|
};
|
|
140
140
|
this.filterTriggeredHandler = ({ detail, }) => {
|
|
@@ -413,13 +413,13 @@ export class VviinnResults {
|
|
|
413
413
|
render() {
|
|
414
414
|
var _a;
|
|
415
415
|
const resultsLength = this.getResults().length;
|
|
416
|
-
return (h(Host, { key: '
|
|
416
|
+
return (h(Host, { key: '4130287ba2797e13e13ef459aefb7454ad529a8a', id: "results-block", class: {
|
|
417
417
|
"show-in-widget": this.showInWidget,
|
|
418
418
|
"matching-discovery": this.oneClickDiscoveryMode === "append-slider",
|
|
419
|
-
}, exportparts: `${productCardParts}, ${productCardsGridPart}` }, h("div", { key: '
|
|
419
|
+
}, exportparts: `${productCardParts}, ${productCardsGridPart}` }, h("div", { key: 'cf45f881e64d3e48d4072250799205d5d140207b', class: "nothing-found" }, resultsLength === 0 && this.showInWidget && (h("vviinn-empty-results", { key: '28965b07a17bc4215a9d19468148b1d1816b75cc', handler: () => this === null || this === void 0 ? void 0 : this.resetWidgetState() })), this.showAspectRatioError && this.showInWidget && (h("vviinn-wrong-aspect-ratio", { key: 'ab5ffce3145e7ef6865efee9d0e24a8dc04d8643', handler: () => this === null || this === void 0 ? void 0 : this.resetWidgetState() }))), h("div", { key: '802d30495385f9f4d6b203fd715c207b1253c76d', class: {
|
|
420
420
|
hidden: this.showAspectRatioError || resultsLength === 0,
|
|
421
421
|
products: true,
|
|
422
|
-
}, part: productCardsGridPart, id: "vviinn-results-products" }, resultsLength > 0 && this.renderResults(), h("div", { key: '
|
|
422
|
+
}, part: productCardsGridPart, id: "vviinn-results-products" }, resultsLength > 0 && this.renderResults(), h("div", { key: '488e5683bc1ae77b021b2cdda3d73d00e5b35a84', id: "one-click-discovery-append", style: {
|
|
423
423
|
order: ((_a = this.oneClickDiscoveryAppendIndex) !== null && _a !== void 0 ? _a : resultsLength).toString(),
|
|
424
424
|
} }))));
|
|
425
425
|
}
|
|
@@ -5,7 +5,7 @@ import { P as PlusIcon, R as RESULTS_CALCULATED_COLUMNS_CSS_VAR, c as createWidg
|
|
|
5
5
|
import { s as setLocalStorageItems, g as getLocalStorageItems, c as cleanLocalStorage } from './index-C5MrXMjM.js';
|
|
6
6
|
import { f as fromImage, i as instance } from './Rectangle-Blhy9XN1.js';
|
|
7
7
|
import { a as addEventListenersWithSignal, f as findSlotElements, g as getSlotNames } from './index-CGjTkEbG.js';
|
|
8
|
-
import { v as version, c as campaignTypeNames } from './package-
|
|
8
|
+
import { v as version, c as campaignTypeNames } from './package-CJeeTzkr.js';
|
|
9
9
|
import { r as resources } from './resources-DcA7Zxs5.js';
|
|
10
10
|
import { a as productCardsGridPart, p as productCardParts, m as modalParts, e as extendedFiltersParts, f as filtersParts, s as searchBarParts, b as searchWidgetFilterParts, d as searchWidgetButtonParts } from './index-CYUAT3RF.js';
|
|
11
11
|
import { R as RESULTS_WIDGET_IMAGE_RESOLUTION_WIDTH, S as SEARCH_WIDGET_IMAGE_RESOLUTION_WIDTH } from './constants-CR1-OmNa.js';
|
|
@@ -3911,7 +3911,7 @@ const VviinnResults = class {
|
|
|
3911
3911
|
this.getTextSearchResults(this.state.textSearchId);
|
|
3912
3912
|
}
|
|
3913
3913
|
else {
|
|
3914
|
-
makeVisualSearchRequest(this.storeName, this.
|
|
3914
|
+
makeVisualSearchRequest(this.storeName, this.state.visualSearchId);
|
|
3915
3915
|
}
|
|
3916
3916
|
};
|
|
3917
3917
|
this.filterTriggeredHandler = ({ detail, }) => {
|
|
@@ -4190,13 +4190,13 @@ const VviinnResults = class {
|
|
|
4190
4190
|
render() {
|
|
4191
4191
|
var _a;
|
|
4192
4192
|
const resultsLength = this.getResults().length;
|
|
4193
|
-
return (h(Host, { key: '
|
|
4193
|
+
return (h(Host, { key: '4130287ba2797e13e13ef459aefb7454ad529a8a', id: "results-block", class: {
|
|
4194
4194
|
"show-in-widget": this.showInWidget,
|
|
4195
4195
|
"matching-discovery": this.oneClickDiscoveryMode === "append-slider",
|
|
4196
|
-
}, exportparts: `${productCardParts}, ${productCardsGridPart}` }, h("div", { key: '
|
|
4196
|
+
}, exportparts: `${productCardParts}, ${productCardsGridPart}` }, h("div", { key: 'cf45f881e64d3e48d4072250799205d5d140207b', class: "nothing-found" }, resultsLength === 0 && this.showInWidget && (h("vviinn-empty-results", { key: '28965b07a17bc4215a9d19468148b1d1816b75cc', handler: () => this === null || this === void 0 ? void 0 : this.resetWidgetState() })), this.showAspectRatioError && this.showInWidget && (h("vviinn-wrong-aspect-ratio", { key: 'ab5ffce3145e7ef6865efee9d0e24a8dc04d8643', handler: () => this === null || this === void 0 ? void 0 : this.resetWidgetState() }))), h("div", { key: '802d30495385f9f4d6b203fd715c207b1253c76d', class: {
|
|
4197
4197
|
hidden: this.showAspectRatioError || resultsLength === 0,
|
|
4198
4198
|
products: true,
|
|
4199
|
-
}, part: productCardsGridPart, id: "vviinn-results-products" }, resultsLength > 0 && this.renderResults(), h("div", { key: '
|
|
4199
|
+
}, part: productCardsGridPart, id: "vviinn-results-products" }, resultsLength > 0 && this.renderResults(), h("div", { key: '488e5683bc1ae77b021b2cdda3d73d00e5b35a84', id: "one-click-discovery-append", style: {
|
|
4200
4200
|
order: ((_a = this.oneClickDiscoveryAppendIndex) !== null && _a !== void 0 ? _a : resultsLength).toString(),
|
|
4201
4201
|
} }))));
|
|
4202
4202
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as createEvent, F as Fragment, H as Host, g as getElement } from './index-BcMtFp89.js';
|
|
2
2
|
import { o as has, q as tuple, c as addIfNotEmpty, _ as _functionExports, v as _ArrayExports, g as globalState, u as useSearchStore, w as requireSemigroup, O as OptionExports, E as EitherExports, s as searchState, x as pipe$1, y as chainW, z as makeRequest, A as fromEither, B as getApiPath, C as createInitPostRequest, D as Apply, a as updateGlobalState, l as trackEvent, T as TaskEitherExports } from './search.store-yqygS_Os.js';
|
|
3
|
-
import { c as campaignTypeNames, f as fromString, a as fold, v as version } from './package-
|
|
3
|
+
import { c as campaignTypeNames, f as fromString, a as fold, v as version } from './package-CJeeTzkr.js';
|
|
4
4
|
import { C as CONTENT_GROUP_CSS_CLASS, i as CAROUSEL_IMAGE_WIDTH_CSS_VAR, S as SET_MODE_IMAGE_WIDTH_CSS_VAR, j as CAROUSEL_CONTENT_WIDTH_CSS_VAR, R as RESULTS_CALCULATED_COLUMNS_CSS_VAR, D as DEFAULT_COLUMNS_NUMBER, g as getCustomLabels, P as PlusIcon, v as v4, b as createAddToBasketEvent, d as createAddToWishlistEvent, c as createWidgetEvent, e as createResultEventByType, f as createProductEventByType, k as getRecommendationsBody } from './index-DHDA4hJT.js';
|
|
5
5
|
import { P as PRODUCT_CARD_IMAGE_WIDTH, D as DISCOVERY_WIDGET_IMAGE_RESOLUTION_WIDTH } from './constants-CR1-OmNa.js';
|
|
6
6
|
import { i as instance, a as isClickedInRectBound } from './Rectangle-Blhy9XN1.js';
|
|
@@ -3,7 +3,7 @@ import { _ as _functionExports, O as OptionExports, d as detectedObjectEq, s as
|
|
|
3
3
|
import { s as scaleWithSized, c as center, i as instance } from './Rectangle-Blhy9XN1.js';
|
|
4
4
|
import { W as WarningIcon } from './WarningIcon-d_dhTVTw.js';
|
|
5
5
|
import { s as slotChangeListener } from './customized-slots-s64pq2zp.js';
|
|
6
|
-
import { c as campaignTypeNames, v as version } from './package-
|
|
6
|
+
import { c as campaignTypeNames, v as version } from './package-CJeeTzkr.js';
|
|
7
7
|
import { m as modalParts } from './index-CYUAT3RF.js';
|
|
8
8
|
import { P as PRODUCT_CARD_IMAGE_WIDTH, D as DISCOVERY_WIDGET_IMAGE_RESOLUTION_WIDTH } from './constants-CR1-OmNa.js';
|
|
9
9
|
import { a as addEventListenersWithSignal } from './index-CGjTkEbG.js';
|