vviinn-widgets 2.162.0 → 2.163.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/dist/cjs/{package-8f6bcd6f.js → package-5dff7605.js} +1 -1
- package/dist/cjs/vviinn-camera_12.cjs.entry.js +9 -2
- 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/cjs/vviinn-text-search.cjs.entry.js +9 -0
- package/dist/collection/components/vviinn-results/vviinn-results.js +9 -0
- package/dist/collection/components/vviinn-text-search/vviinn-text-search.js +12 -0
- package/dist/esm/{package-8c6cbb74.js → package-e9d5518f.js} +1 -1
- package/dist/esm/vviinn-camera_12.entry.js +9 -2
- package/dist/esm/vviinn-carousel_10.entry.js +1 -1
- package/dist/esm/vviinn-detected-object_7.entry.js +1 -1
- package/dist/esm/vviinn-text-search.entry.js +9 -0
- package/dist/types/components/vviinn-results/vviinn-results.d.ts +1 -0
- package/dist/types/components/vviinn-text-search/vviinn-text-search.d.ts +1 -0
- package/dist/vviinn-widgets/{p-d1626359.entry.js → p-01d228c1.entry.js} +1 -1
- package/dist/vviinn-widgets/{p-cc16c082.js → p-08efeca6.js} +1 -1
- package/dist/vviinn-widgets/p-2a21911f.entry.js +1 -0
- package/dist/vviinn-widgets/{p-d3ad08eb.entry.js → p-ac03dd8a.entry.js} +1 -1
- package/{www/build/p-3621ecd2.entry.js → dist/vviinn-widgets/p-bc1e3db3.entry.js} +2 -2
- package/dist/vviinn-widgets/vviinn-widgets.esm.js +1 -1
- package/package.json +1 -1
- package/www/build/{p-d1626359.entry.js → p-01d228c1.entry.js} +1 -1
- package/www/build/{p-cc16c082.js → p-08efeca6.js} +1 -1
- package/www/build/p-2a21911f.entry.js +1 -0
- package/www/build/{p-d3ad08eb.entry.js → p-ac03dd8a.entry.js} +1 -1
- package/{dist/vviinn-widgets/p-3621ecd2.entry.js → www/build/p-bc1e3db3.entry.js} +2 -2
- package/www/build/vviinn-widgets.esm.js +1 -1
- package/dist/vviinn-widgets/p-b035c302.entry.js +0 -1
- package/www/build/p-b035c302.entry.js +0 -1
|
@@ -8,7 +8,7 @@ const customizedSlots = require('./customized-slots-09407c18.js');
|
|
|
8
8
|
const index$2 = require('./index-c53c869d.js');
|
|
9
9
|
const index$1 = require('./index-1953bc5b.js');
|
|
10
10
|
const Rectangle = require('./Rectangle-baf86229.js');
|
|
11
|
-
const _package = require('./package-
|
|
11
|
+
const _package = require('./package-5dff7605.js');
|
|
12
12
|
const resources = require('./resources-9a669f8f.js');
|
|
13
13
|
const index$3 = require('./index-8829b0f1.js');
|
|
14
14
|
const constants$1 = require('./constants-0a36f053.js');
|
|
@@ -4082,6 +4082,12 @@ const VviinnResults = class {
|
|
|
4082
4082
|
this.innerTextSearchQuery = newQuery;
|
|
4083
4083
|
this.getTextSearchResults();
|
|
4084
4084
|
}
|
|
4085
|
+
watchSearchId(newId) {
|
|
4086
|
+
if (this.showInWidget)
|
|
4087
|
+
return;
|
|
4088
|
+
if (newId)
|
|
4089
|
+
search_store.makeVisualSearchRequest(this.storeName, newId);
|
|
4090
|
+
}
|
|
4085
4091
|
trackProductLoad({ detail }) {
|
|
4086
4092
|
const productLoadEvent = this.getProductTrackEvent(detail, "load");
|
|
4087
4093
|
search_store.trackEvent(productLoadEvent);
|
|
@@ -4212,7 +4218,8 @@ const VviinnResults = class {
|
|
|
4212
4218
|
}
|
|
4213
4219
|
get el() { return index.getElement(this); }
|
|
4214
4220
|
static get watchers() { return {
|
|
4215
|
-
"textSearchQuery": ["watchTextSearchQuery"]
|
|
4221
|
+
"textSearchQuery": ["watchTextSearchQuery"],
|
|
4222
|
+
"searchId": ["watchSearchId"]
|
|
4216
4223
|
}; }
|
|
4217
4224
|
};
|
|
4218
4225
|
VviinnResults.style = vviinnResultsCss;
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-1a40d6c9.js');
|
|
6
6
|
const search_store = require('./search.store-a0492e39.js');
|
|
7
|
-
const _package = require('./package-
|
|
7
|
+
const _package = require('./package-5dff7605.js');
|
|
8
8
|
const index$1 = require('./index-c53c869d.js');
|
|
9
9
|
const constants = require('./constants-5598c49b.js');
|
|
10
10
|
const Rectangle = require('./Rectangle-baf86229.js');
|
|
@@ -7,7 +7,7 @@ const search_store = require('./search.store-a0492e39.js');
|
|
|
7
7
|
const Rectangle = require('./Rectangle-baf86229.js');
|
|
8
8
|
const WarningIcon = require('./WarningIcon-db443b71.js');
|
|
9
9
|
const customizedSlots = require('./customized-slots-09407c18.js');
|
|
10
|
-
const _package = require('./package-
|
|
10
|
+
const _package = require('./package-5dff7605.js');
|
|
11
11
|
const index$1 = require('./index-8829b0f1.js');
|
|
12
12
|
const constants = require('./constants-5598c49b.js');
|
|
13
13
|
|
|
@@ -159,6 +159,12 @@ const VviinnTextSearch = class {
|
|
|
159
159
|
document.addEventListener("vviinnFilterTriggered", this.filterTriggeredHandler);
|
|
160
160
|
document.addEventListener("vviinnImageUploadFinished", this.imageUploadFinishedHandler);
|
|
161
161
|
}
|
|
162
|
+
watchSearchQuery(newQuery) {
|
|
163
|
+
if (this.showInWidget)
|
|
164
|
+
return;
|
|
165
|
+
this.searchQuery = newQuery;
|
|
166
|
+
this.handleTextSearch();
|
|
167
|
+
}
|
|
162
168
|
disconnectedCallback() {
|
|
163
169
|
document.removeEventListener("vviinnFilterTriggered", this.filterTriggeredHandler);
|
|
164
170
|
document.removeEventListener("vviinnImageUploadFinished", this.imageUploadFinishedHandler);
|
|
@@ -234,6 +240,9 @@ const VviinnTextSearch = class {
|
|
|
234
240
|
this.recognition && (index.h("button", { class: "speech-button", part: "speech-button", onClick: () => this.handleSpeech() }, index.h(MicIcon, null), this.isShowRecording() && (index.h("span", { class: "recording-indicator" })))), index.h("button", { class: "text-search-button", part: "text-search-button", onClick: () => this.handleTextSearch(), disabled: this.state.loading }, this.isShowPreloader() ? (index.h("vviinn-preloader", null)) : (index.h("slot", { name: "vviinn-text-search-icon" }, index.h(TextSearchIcon, null))))), this.showTooltip && (index.h("p", { class: "text-search-tooltip", part: "text-search-tooltip" }, Rectangle.instance.t(this.tooltipText)))));
|
|
235
241
|
}
|
|
236
242
|
get el() { return index.getElement(this); }
|
|
243
|
+
static get watchers() { return {
|
|
244
|
+
"searchQuery": ["watchSearchQuery"]
|
|
245
|
+
}; }
|
|
237
246
|
};
|
|
238
247
|
VviinnTextSearch.style = vviinnTextSearchCss;
|
|
239
248
|
|
|
@@ -297,6 +297,12 @@ export class VviinnResults {
|
|
|
297
297
|
this.innerTextSearchQuery = newQuery;
|
|
298
298
|
this.getTextSearchResults();
|
|
299
299
|
}
|
|
300
|
+
watchSearchId(newId) {
|
|
301
|
+
if (this.showInWidget)
|
|
302
|
+
return;
|
|
303
|
+
if (newId)
|
|
304
|
+
makeVisualSearchRequest(this.storeName, newId);
|
|
305
|
+
}
|
|
300
306
|
trackProductLoad({ detail }) {
|
|
301
307
|
const productLoadEvent = this.getProductTrackEvent(detail, "load");
|
|
302
308
|
trackEvent(productLoadEvent);
|
|
@@ -1260,6 +1266,9 @@ export class VviinnResults {
|
|
|
1260
1266
|
return [{
|
|
1261
1267
|
"propName": "textSearchQuery",
|
|
1262
1268
|
"methodName": "watchTextSearchQuery"
|
|
1269
|
+
}, {
|
|
1270
|
+
"propName": "searchId",
|
|
1271
|
+
"methodName": "watchSearchId"
|
|
1263
1272
|
}];
|
|
1264
1273
|
}
|
|
1265
1274
|
static get listeners() {
|
|
@@ -84,6 +84,12 @@ export class VviinnTextSearch {
|
|
|
84
84
|
document.addEventListener("vviinnFilterTriggered", this.filterTriggeredHandler);
|
|
85
85
|
document.addEventListener("vviinnImageUploadFinished", this.imageUploadFinishedHandler);
|
|
86
86
|
}
|
|
87
|
+
watchSearchQuery(newQuery) {
|
|
88
|
+
if (this.showInWidget)
|
|
89
|
+
return;
|
|
90
|
+
this.searchQuery = newQuery;
|
|
91
|
+
this.handleTextSearch();
|
|
92
|
+
}
|
|
87
93
|
disconnectedCallback() {
|
|
88
94
|
document.removeEventListener("vviinnFilterTriggered", this.filterTriggeredHandler);
|
|
89
95
|
document.removeEventListener("vviinnImageUploadFinished", this.imageUploadFinishedHandler);
|
|
@@ -495,4 +501,10 @@ export class VviinnTextSearch {
|
|
|
495
501
|
}];
|
|
496
502
|
}
|
|
497
503
|
static get elementRef() { return "el"; }
|
|
504
|
+
static get watchers() {
|
|
505
|
+
return [{
|
|
506
|
+
"propName": "searchQuery",
|
|
507
|
+
"methodName": "watchSearchQuery"
|
|
508
|
+
}];
|
|
509
|
+
}
|
|
498
510
|
}
|
|
@@ -4,7 +4,7 @@ import { s as slotChangeListener, p as productCardSlotNames, v as vprIconSlotNam
|
|
|
4
4
|
import { P as PlusIcon, R as RESULTS_CALCULATED_COLUMNS_CSS_VAR, e as createWidgetEvent, j as createFilterEvent, v as v4, c as createAddToBasketEvent, d as createAddToWishlistEvent, f as createResultEventByType, h as createProductEventByType, g as getCustomLabels, k as createImageSearchEvent } from './index-e4a52727.js';
|
|
5
5
|
import { s as setLocalStorageItems, g as getLocalStorageItems, c as cleanLocalStorage } from './index-52ea1bdf.js';
|
|
6
6
|
import { f as fromImage, i as instance } from './Rectangle-abec127b.js';
|
|
7
|
-
import { c as campaignTypeNames, v as version } from './package-
|
|
7
|
+
import { c as campaignTypeNames, v as version } from './package-e9d5518f.js';
|
|
8
8
|
import { r as resources } from './resources-4651fe88.js';
|
|
9
9
|
import { b as productCardsGridPart, a as productCardParts, m as modalParts, f as filtersParts, c as extendedFiltersParts, s as searchBarParts, d as searchWidgetFilterParts, g as searchWidgetButtonParts } from './index-955afdff.js';
|
|
10
10
|
import { f as findSlotElements, g as getSlotNames, D as DEFAULT_EXAMPLE_IMAGE } from './constants-c2f6bdfe.js';
|
|
@@ -4078,6 +4078,12 @@ const VviinnResults = class {
|
|
|
4078
4078
|
this.innerTextSearchQuery = newQuery;
|
|
4079
4079
|
this.getTextSearchResults();
|
|
4080
4080
|
}
|
|
4081
|
+
watchSearchId(newId) {
|
|
4082
|
+
if (this.showInWidget)
|
|
4083
|
+
return;
|
|
4084
|
+
if (newId)
|
|
4085
|
+
makeVisualSearchRequest(this.storeName, newId);
|
|
4086
|
+
}
|
|
4081
4087
|
trackProductLoad({ detail }) {
|
|
4082
4088
|
const productLoadEvent = this.getProductTrackEvent(detail, "load");
|
|
4083
4089
|
trackEvent(productLoadEvent);
|
|
@@ -4208,7 +4214,8 @@ const VviinnResults = class {
|
|
|
4208
4214
|
}
|
|
4209
4215
|
get el() { return getElement(this); }
|
|
4210
4216
|
static get watchers() { return {
|
|
4211
|
-
"textSearchQuery": ["watchTextSearchQuery"]
|
|
4217
|
+
"textSearchQuery": ["watchTextSearchQuery"],
|
|
4218
|
+
"searchId": ["watchSearchId"]
|
|
4212
4219
|
}; }
|
|
4213
4220
|
};
|
|
4214
4221
|
VviinnResults.style = vviinnResultsCss;
|
|
@@ -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-057b9128.js';
|
|
2
2
|
import { h as has, t as tuple, a as addIfNotEmpty, _ as _function, b as _Array, g as globalState, u as useSearchStore, O as Option, S as Semigroup, E as Either, s as searchState, p as pipe, c as chainW, m as makeRequest, f as fromEither, d as getApiPath, e as createInitPostRequest, A as Apply, i as updateGlobalState, j as trackEvent, T as TaskEither } from './search.store-e2fcd9a6.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-e9d5518f.js';
|
|
4
4
|
import { C as CAROUSEL_IMAGE_WIDTH_CSS_VAR, S as SET_MODE_IMAGE_WIDTH_CSS_VAR, a as CAROUSEL_CONTENT_WIDTH_CSS_VAR, R as RESULTS_CALCULATED_COLUMNS_CSS_VAR, D as DEFAULT_COLUMNS_NUMBER, b as CONTENT_GROUP_CSS_CLASS, g as getCustomLabels, P as PlusIcon, v as v4, c as createAddToBasketEvent, d as createAddToWishlistEvent, e as createWidgetEvent, f as createResultEventByType, h as createProductEventByType, i as getRecommendationsBody } from './index-e4a52727.js';
|
|
5
5
|
import { P as PRODUCT_CARD_IMAGE_WIDTH, D as DISCOVERY_WIDGET_IMAGE_RESOLUTION_WIDTH } from './constants-c02c4b27.js';
|
|
6
6
|
import { i as instance, a as isClickedInRectBound } from './Rectangle-abec127b.js';
|
|
@@ -3,7 +3,7 @@ import { _ as _function, O as Option, D as detectedObjectEq, s as searchState, a
|
|
|
3
3
|
import { s as scaleWithSized, c as center, i as instance } from './Rectangle-abec127b.js';
|
|
4
4
|
import { W as WarningIcon } from './WarningIcon-7896b328.js';
|
|
5
5
|
import { s as slotChangeListener } from './customized-slots-f8cebd42.js';
|
|
6
|
-
import { c as campaignTypeNames, v as version } from './package-
|
|
6
|
+
import { c as campaignTypeNames, v as version } from './package-e9d5518f.js';
|
|
7
7
|
import { m as modalParts } from './index-955afdff.js';
|
|
8
8
|
import { P as PRODUCT_CARD_IMAGE_WIDTH, D as DISCOVERY_WIDGET_IMAGE_RESOLUTION_WIDTH } from './constants-c02c4b27.js';
|
|
9
9
|
|
|
@@ -155,6 +155,12 @@ const VviinnTextSearch = class {
|
|
|
155
155
|
document.addEventListener("vviinnFilterTriggered", this.filterTriggeredHandler);
|
|
156
156
|
document.addEventListener("vviinnImageUploadFinished", this.imageUploadFinishedHandler);
|
|
157
157
|
}
|
|
158
|
+
watchSearchQuery(newQuery) {
|
|
159
|
+
if (this.showInWidget)
|
|
160
|
+
return;
|
|
161
|
+
this.searchQuery = newQuery;
|
|
162
|
+
this.handleTextSearch();
|
|
163
|
+
}
|
|
158
164
|
disconnectedCallback() {
|
|
159
165
|
document.removeEventListener("vviinnFilterTriggered", this.filterTriggeredHandler);
|
|
160
166
|
document.removeEventListener("vviinnImageUploadFinished", this.imageUploadFinishedHandler);
|
|
@@ -230,6 +236,9 @@ const VviinnTextSearch = class {
|
|
|
230
236
|
this.recognition && (h("button", { class: "speech-button", part: "speech-button", onClick: () => this.handleSpeech() }, h(MicIcon, null), this.isShowRecording() && (h("span", { class: "recording-indicator" })))), h("button", { class: "text-search-button", part: "text-search-button", onClick: () => this.handleTextSearch(), disabled: this.state.loading }, this.isShowPreloader() ? (h("vviinn-preloader", null)) : (h("slot", { name: "vviinn-text-search-icon" }, h(TextSearchIcon, null))))), this.showTooltip && (h("p", { class: "text-search-tooltip", part: "text-search-tooltip" }, instance.t(this.tooltipText)))));
|
|
231
237
|
}
|
|
232
238
|
get el() { return getElement(this); }
|
|
239
|
+
static get watchers() { return {
|
|
240
|
+
"searchQuery": ["watchSearchQuery"]
|
|
241
|
+
}; }
|
|
233
242
|
};
|
|
234
243
|
VviinnTextSearch.style = vviinnTextSearchCss;
|
|
235
244
|
|
|
@@ -183,6 +183,7 @@ export declare class VviinnResults {
|
|
|
183
183
|
connectedCallback(): void;
|
|
184
184
|
disconnectedCallback(): void;
|
|
185
185
|
watchTextSearchQuery(newQuery: string): void;
|
|
186
|
+
watchSearchId(newId: string): void;
|
|
186
187
|
trackProductLoad({ detail }: ProductCardEvent): void;
|
|
187
188
|
trackProductView({ detail }: ProductCardEvent): void;
|
|
188
189
|
trackProductClick({ detail }: ProductCardEvent): Promise<void>;
|
|
@@ -67,6 +67,7 @@ export declare class VviinnTextSearch {
|
|
|
67
67
|
private recognition;
|
|
68
68
|
private imageUploadFinishedHandler;
|
|
69
69
|
connectedCallback(): void;
|
|
70
|
+
watchSearchQuery(newQuery: string): void;
|
|
70
71
|
disconnectedCallback(): void;
|
|
71
72
|
private filterTriggeredHandler;
|
|
72
73
|
private trackTextSearch;
|