vviinn-widgets 2.18.21 → 2.19.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/{index-cb410762.js → Campaign-a94a827a.js} +17 -1
- package/dist/cjs/cropper-handler_29.cjs.entry.js +1418 -0
- package/dist/cjs/{imageSearch.store-98824653.js → index-48c94264.js} +16016 -11171
- package/dist/cjs/{index-7f1325a7.js → index-a4becaff.js} +683 -303
- package/dist/cjs/loader.cjs.js +4 -3
- package/dist/cjs/{vviinn-carousel_3.cjs.entry.js → vviinn-carousel_2.cjs.entry.js} +150 -270
- package/dist/cjs/vviinn-recommendations-sidebar.cjs.entry.js +14 -8
- package/dist/cjs/vviinn-vpr-button.cjs.entry.js +12 -14
- package/dist/cjs/vviinn-widgets.cjs.js +10 -3
- package/dist/collection/Image/sizing.spec.js +66 -0
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.css +2 -16
- package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.js +11 -7
- package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.css +0 -1
- package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.js +40 -37
- package/dist/collection/components/image-search/image-view/image-cropper/image-cropper.js +73 -67
- package/dist/collection/components/image-search/search-filters/search-filters.css +4 -23
- package/dist/collection/components/image-search/search-filters/search-filters.js +97 -91
- package/dist/collection/components/vviinn-button/vviinn-button.js +34 -31
- package/dist/collection/components/vviinn-carousel/vviinn-carousel.css +1 -2
- package/dist/collection/components/vviinn-carousel/vviinn-carousel.js +161 -156
- package/dist/collection/components/vviinn-error/vviinn-empty-results/vviinn-empty-results.js +12 -14
- package/dist/collection/components/vviinn-error/vviinn-error.js +12 -12
- package/dist/collection/components/vviinn-error/vviinn-server-error/vviinn-server-error.js +35 -30
- package/dist/collection/components/vviinn-error/vviinn-wrong-format/vviinn-wrong-format.js +35 -30
- package/dist/collection/components/vviinn-example-images/vviinn-example-image/vviinn-example-image.js +129 -121
- package/dist/collection/components/vviinn-example-images/vviinn-example-images.js +75 -75
- package/dist/collection/components/vviinn-icons/index.js +10 -27
- package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.js +120 -67
- package/dist/collection/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.js +81 -69
- package/dist/collection/components/vviinn-image-view/vviinn-image-view.css +0 -1
- package/dist/collection/components/vviinn-image-view/vviinn-image-view.js +27 -28
- package/dist/collection/components/vviinn-modal/vviinn-modal.css +7 -36
- package/dist/collection/components/vviinn-modal/vviinn-modal.js +115 -93
- package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-1/vviinn-onboarding-card-1.js +12 -14
- package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-2/vviinn-onboarding-card-2.js +12 -14
- package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-3/vviinn-onboarding-card-3.js +12 -14
- package/dist/collection/components/vviinn-onboarding/vviinn-onboarding.js +12 -17
- package/dist/collection/components/vviinn-overlay/vviinn-overlay.css +1 -12
- package/dist/collection/components/vviinn-overlay/vviinn-overlay.js +12 -9
- package/dist/collection/components/vviinn-overlayed-modal/vviinn-overlayed-modal.js +107 -78
- package/dist/collection/components/vviinn-preloader/vviinn-preloader.css +1 -11
- package/dist/collection/components/vviinn-preloader/vviinn-preloader.js +11 -7
- package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.css +0 -1
- package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.js +12 -16
- package/dist/collection/components/vviinn-product-card/render-helpers.js +6 -14
- package/dist/collection/components/vviinn-product-card/vviinn-product-card.js +425 -415
- package/dist/collection/components/vviinn-slider/arrow.js +1 -2
- package/dist/collection/components/vviinn-slider/vviinn-slide/vviinn-slide.js +12 -9
- package/dist/collection/components/vviinn-slider/vviinn-slider.css +0 -1
- package/dist/collection/components/vviinn-slider/vviinn-slider.js +87 -82
- package/dist/collection/components/vviinn-teaser/vviinn-teaser.js +12 -18
- package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.css +12 -64
- package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.js +371 -360
- package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.js +448 -444
- package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-vidget.js +545 -542
- package/dist/collection/components/vviinn-vps-button/stories/vviinn-vps-button.stories.js +2 -0
- package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.js +368 -332
- package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.css +0 -5
- package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.e2e.js +26 -0
- package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js +502 -425
- package/dist/collection/geometry/Clip.spec.js +16 -0
- package/dist/collection/geometry/Rectangle.spec.js +66 -0
- package/dist/collection/geometry/Sized.spec.js +16 -0
- package/dist/collection/interfaces/generated.js +0 -4
- package/dist/collection/network/ion/Form.spec.js +43 -0
- package/dist/esm/{index-b31d86ce.js → Campaign-4aa53f29.js} +15 -2
- package/dist/esm/cropper-handler_29.entry.js +1386 -0
- package/dist/esm/{index-590cb67e.js → index-48ef9564.js} +683 -304
- package/dist/esm/{imageSearch.store-9dde5360.js → index-976acf7e.js} +16124 -11292
- package/dist/esm/loader.js +4 -3
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/{vviinn-carousel_3.entry.js → vviinn-carousel_2.entry.js} +106 -225
- package/dist/esm/vviinn-recommendations-sidebar.entry.js +13 -7
- package/dist/esm/vviinn-vpr-button.entry.js +11 -13
- package/dist/esm/vviinn-widgets.js +7 -3
- package/dist/loader/index.d.ts +9 -0
- package/dist/loader/package.json +1 -0
- package/dist/types/Image/sizing.d.ts +4 -4
- package/dist/types/campaign/Campaign.d.ts +5 -5
- package/dist/types/campaign/VCSCampaignResponse.d.ts +1 -1
- package/dist/types/components/vviinn-carousel/vviinn-carousel.d.ts +2 -2
- package/dist/types/components/vviinn-image-selector/vviinn-image-selector.d.ts +4 -0
- package/dist/types/components/vviinn-modal/vviinn-modal.d.ts +2 -0
- package/dist/types/components/vviinn-overlayed-modal/vviinn-overlayed-modal.d.ts +2 -0
- package/dist/types/components/vviinn-product-card/render-helpers.d.ts +3 -3
- package/dist/types/components/vviinn-slider/arrow.d.ts +2 -2
- package/dist/types/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.d.ts +2 -2
- package/dist/types/components/vviinn-vps-button/vviinn-vps-button.d.ts +9 -4
- package/dist/types/components/vviinn-vps-widget/vviinn-vps-widget.d.ts +8 -0
- package/dist/types/components.d.ts +154 -54
- package/dist/types/error.d.ts +1 -1
- package/dist/types/geometry/Point.d.ts +1 -1
- package/dist/types/geometry/Rectangle.d.ts +1 -1
- package/dist/types/geometry/Sized.d.ts +1 -1
- package/dist/types/interfaces/generated.d.ts +192 -371
- package/dist/types/network/ion/File.d.ts +2 -2
- package/dist/types/network/ion/Form.d.ts +5 -5
- package/dist/types/network/ion/Link.d.ts +1 -1
- package/dist/types/network/ion/ValueObject.d.ts +4 -4
- package/dist/types/network/utils.d.ts +3 -3
- package/dist/types/recommendation/events.d.ts +5 -5
- package/dist/types/recommendation/recommendation.d.ts +1 -1
- package/dist/types/searchSession/searchSession.d.ts +7 -7
- package/dist/types/slider/GridMode.d.ts +1 -1
- package/dist/types/stencil-public-runtime.d.ts +98 -23
- package/dist/types/store/imageSearch.store.d.ts +1 -1
- package/dist/types/tracking/models.d.ts +2 -2
- package/dist/types/utils/event/Events.d.ts +1 -1
- package/dist/vviinn-widgets/p-312b0eb7.entry.js +1 -0
- package/dist/vviinn-widgets/p-414b2291.js +1 -0
- package/dist/vviinn-widgets/p-5b50c7e5.entry.js +1 -0
- package/dist/vviinn-widgets/p-8deaa5da.entry.js +1 -0
- package/dist/vviinn-widgets/p-c6209bc1.entry.js +1 -0
- package/{www/build/p-2f9ee951.js → dist/vviinn-widgets/p-d08ce429.js} +1 -1
- package/dist/vviinn-widgets/p-fa17e81f.js +2 -0
- package/dist/vviinn-widgets/vviinn-widgets.esm.js +1 -1
- package/package.json +12 -12
- package/www/build/p-312b0eb7.entry.js +1 -0
- package/www/build/p-414b2291.js +1 -0
- package/www/build/p-5b50c7e5.entry.js +1 -0
- package/www/build/p-8deaa5da.entry.js +1 -0
- package/www/build/p-c6209bc1.entry.js +1 -0
- package/{dist/vviinn-widgets/p-2f9ee951.js → www/build/p-d08ce429.js} +1 -1
- package/www/build/p-d39b7d70.js +161 -0
- package/www/build/p-fa17e81f.js +2 -0
- package/www/build/vviinn-widgets.esm.js +1 -1
- package/www/index.html +2 -2
- package/dist/cjs/Campaign-13258569.js +0 -18
- package/dist/cjs/Handler-176539c8.js +0 -331
- package/dist/cjs/cropper-handler.cjs.entry.js +0 -27
- package/dist/cjs/customized-slots-6e56c354.js +0 -54
- package/dist/cjs/highlight-box_22.cjs.entry.js +0 -770
- package/dist/cjs/index-a99edb90.js +0 -3235
- package/dist/cjs/vviinn-button.cjs.entry.js +0 -21
- package/dist/cjs/vviinn-error.cjs.entry.js +0 -19
- package/dist/cjs/vviinn-preloader.cjs.entry.js +0 -26
- package/dist/cjs/vviinn-vps-button.cjs.entry.js +0 -65
- package/dist/cjs/vviinn-vps-widget.cjs.entry.js +0 -251
- package/dist/esm/Campaign-90ba7e06.js +0 -14
- package/dist/esm/Handler-f9b8735c.js +0 -309
- package/dist/esm/cropper-handler.entry.js +0 -23
- package/dist/esm/customized-slots-00afe247.js +0 -51
- package/dist/esm/highlight-box_22.entry.js +0 -745
- package/dist/esm/index-4d5b52ba.js +0 -3224
- package/dist/esm/vviinn-button.entry.js +0 -17
- package/dist/esm/vviinn-error.entry.js +0 -15
- package/dist/esm/vviinn-preloader.entry.js +0 -22
- package/dist/esm/vviinn-vps-button.entry.js +0 -61
- package/dist/esm/vviinn-vps-widget.entry.js +0 -247
- package/dist/vviinn-widgets/p-11f61564.js +0 -1
- package/dist/vviinn-widgets/p-12851e97.entry.js +0 -1
- package/dist/vviinn-widgets/p-18fd769b.js +0 -1
- package/dist/vviinn-widgets/p-339c6838.js +0 -1
- package/dist/vviinn-widgets/p-3b2c91c0.entry.js +0 -1
- package/dist/vviinn-widgets/p-45df9f28.entry.js +0 -1
- package/dist/vviinn-widgets/p-57ed5303.entry.js +0 -1
- package/dist/vviinn-widgets/p-69850e5b.js +0 -1
- package/dist/vviinn-widgets/p-7c2f762a.entry.js +0 -1
- package/dist/vviinn-widgets/p-7c3b7388.entry.js +0 -1
- package/dist/vviinn-widgets/p-85006f41.entry.js +0 -1
- package/dist/vviinn-widgets/p-8a3dd76d.entry.js +0 -1
- package/dist/vviinn-widgets/p-99e58be7.entry.js +0 -1
- package/dist/vviinn-widgets/p-a2b450b6.entry.js +0 -1
- package/dist/vviinn-widgets/p-bcc1ccf0.js +0 -1
- package/dist/vviinn-widgets/p-e6fee8d2.js +0 -1
- package/www/build/p-11f61564.js +0 -1
- package/www/build/p-12851e97.entry.js +0 -1
- package/www/build/p-18fd769b.js +0 -1
- package/www/build/p-339c6838.js +0 -1
- package/www/build/p-3b2c91c0.entry.js +0 -1
- package/www/build/p-45df9f28.entry.js +0 -1
- package/www/build/p-57ed5303.entry.js +0 -1
- package/www/build/p-69850e5b.js +0 -1
- package/www/build/p-7c2f762a.entry.js +0 -1
- package/www/build/p-7c3b7388.entry.js +0 -1
- package/www/build/p-85006f41.entry.js +0 -1
- package/www/build/p-8a3dd76d.entry.js +0 -1
- package/www/build/p-99e58be7.entry.js +0 -1
- package/www/build/p-9e2c131a.js +0 -125
- package/www/build/p-a2b450b6.entry.js +0 -1
- package/www/build/p-bcc1ccf0.js +0 -1
- package/www/build/p-e6fee8d2.js +0 -1
|
@@ -13,6 +13,14 @@ import { CampaignName, CampaignTypeId } from "./campaign/Campaign";
|
|
|
13
13
|
import { Recommendation } from "./recommendation/recommendation";
|
|
14
14
|
import { ValueObject } from "./network/ion/ValueObject";
|
|
15
15
|
import { CarouselMode as CarouselMode1 } from "./components/vviinn-carousel/vviinn-carousel";
|
|
16
|
+
export { Handler } from "./cropper/Handler";
|
|
17
|
+
export { BasicEventData, ProductCardEventData, SelectFilterEventData, SelectObjectEventData } from "./recommendation/events";
|
|
18
|
+
export { DetectedObject, SearchSessionFilter } from "./searchSession/searchSession";
|
|
19
|
+
export { CarouselMode } from "./components/vviinn-carousel/vviinn-carousel";
|
|
20
|
+
export { CampaignName, CampaignTypeId } from "./campaign/Campaign";
|
|
21
|
+
export { Recommendation } from "./recommendation/recommendation";
|
|
22
|
+
export { ValueObject } from "./network/ion/ValueObject";
|
|
23
|
+
export { CarouselMode as CarouselMode1 } from "./components/vviinn-carousel/vviinn-carousel";
|
|
16
24
|
export namespace Components {
|
|
17
25
|
interface CropperHandler {
|
|
18
26
|
"disabled": boolean;
|
|
@@ -59,6 +67,8 @@ export namespace Components {
|
|
|
59
67
|
}
|
|
60
68
|
interface VviinnImageSelector {
|
|
61
69
|
"basicEventData": BasicEventData;
|
|
70
|
+
"resetVpsButton": () => void;
|
|
71
|
+
"startUpload": boolean;
|
|
62
72
|
}
|
|
63
73
|
interface VviinnImageView {
|
|
64
74
|
"basicEventData": BasicEventData;
|
|
@@ -66,6 +76,7 @@ export namespace Components {
|
|
|
66
76
|
interface VviinnModal {
|
|
67
77
|
"active": boolean;
|
|
68
78
|
"buttonElementId"?: string;
|
|
79
|
+
"hideBackButton": boolean;
|
|
69
80
|
"resetState": () => void;
|
|
70
81
|
}
|
|
71
82
|
interface VviinnOnboarding {
|
|
@@ -81,6 +92,7 @@ export namespace Components {
|
|
|
81
92
|
interface VviinnOverlayedModal {
|
|
82
93
|
"active": boolean;
|
|
83
94
|
"buttonElementId"?: string;
|
|
95
|
+
"hideBackButton": boolean;
|
|
84
96
|
"resetState": () => void;
|
|
85
97
|
}
|
|
86
98
|
interface VviinnPreloader {
|
|
@@ -123,7 +135,7 @@ export namespace Components {
|
|
|
123
135
|
*/
|
|
124
136
|
"gridArrowsDynamic": boolean;
|
|
125
137
|
"imageWidth": number;
|
|
126
|
-
"mode":
|
|
138
|
+
"mode": CarouselMode1;
|
|
127
139
|
"noResultShow"?: boolean;
|
|
128
140
|
"noResultText"?: string;
|
|
129
141
|
"position": "bottom" | "right";
|
|
@@ -164,7 +176,7 @@ export namespace Components {
|
|
|
164
176
|
"gridArrowsDynamic": boolean;
|
|
165
177
|
"imageWidth": number;
|
|
166
178
|
"modalScrollbar": boolean;
|
|
167
|
-
"mode":
|
|
179
|
+
"mode": CarouselMode1;
|
|
168
180
|
/**
|
|
169
181
|
* Showing message (when true) or hiding the whole widget, when no results
|
|
170
182
|
*/
|
|
@@ -222,7 +234,7 @@ export namespace Components {
|
|
|
222
234
|
/**
|
|
223
235
|
* Use slider or grid view
|
|
224
236
|
*/
|
|
225
|
-
"mode":
|
|
237
|
+
"mode": CarouselMode1;
|
|
226
238
|
/**
|
|
227
239
|
* Showing message (when true) or hiding the whole widget, when no results
|
|
228
240
|
*/
|
|
@@ -264,11 +276,18 @@ export namespace Components {
|
|
|
264
276
|
* Locale for currency formatting
|
|
265
277
|
*/
|
|
266
278
|
"locale": string;
|
|
279
|
+
/**
|
|
280
|
+
* Add style to the button
|
|
281
|
+
*/
|
|
282
|
+
"mode": "modal" | "upload";
|
|
267
283
|
/**
|
|
268
284
|
* vviinn customer token
|
|
269
285
|
*/
|
|
270
286
|
"token": string;
|
|
271
287
|
}
|
|
288
|
+
/**
|
|
289
|
+
* @prop --color-primary: color used for action button, slider bullets and selected detected object;
|
|
290
|
+
*/
|
|
272
291
|
interface VviinnVpsWidget {
|
|
273
292
|
/**
|
|
274
293
|
* When true modal window with widget will be shown
|
|
@@ -276,6 +295,7 @@ export namespace Components {
|
|
|
276
295
|
"active": boolean;
|
|
277
296
|
"apiPath": string;
|
|
278
297
|
"buttonElementId"?: string;
|
|
298
|
+
"buttonPressed"?: boolean;
|
|
279
299
|
/**
|
|
280
300
|
* Campaign using for visual search
|
|
281
301
|
*/
|
|
@@ -288,6 +308,8 @@ export namespace Components {
|
|
|
288
308
|
* Locale for currency formatting
|
|
289
309
|
*/
|
|
290
310
|
"locale": string;
|
|
311
|
+
"mode": "modal" | "upload";
|
|
312
|
+
"resetVpsButton": () => void;
|
|
291
313
|
/**
|
|
292
314
|
* Set true when showing the widget in button
|
|
293
315
|
*/
|
|
@@ -301,6 +323,62 @@ export namespace Components {
|
|
|
301
323
|
"handler": VoidFunction;
|
|
302
324
|
}
|
|
303
325
|
}
|
|
326
|
+
export interface ImageCropperCustomEvent<T> extends CustomEvent<T> {
|
|
327
|
+
detail: T;
|
|
328
|
+
target: HTMLImageCropperElement;
|
|
329
|
+
}
|
|
330
|
+
export interface SearchFiltersCustomEvent<T> extends CustomEvent<T> {
|
|
331
|
+
detail: T;
|
|
332
|
+
target: HTMLSearchFiltersElement;
|
|
333
|
+
}
|
|
334
|
+
export interface VviinnDetectedObjectCustomEvent<T> extends CustomEvent<T> {
|
|
335
|
+
detail: T;
|
|
336
|
+
target: HTMLVviinnDetectedObjectElement;
|
|
337
|
+
}
|
|
338
|
+
export interface VviinnExampleImageCustomEvent<T> extends CustomEvent<T> {
|
|
339
|
+
detail: T;
|
|
340
|
+
target: HTMLVviinnExampleImageElement;
|
|
341
|
+
}
|
|
342
|
+
export interface VviinnExampleImagesCustomEvent<T> extends CustomEvent<T> {
|
|
343
|
+
detail: T;
|
|
344
|
+
target: HTMLVviinnExampleImagesElement;
|
|
345
|
+
}
|
|
346
|
+
export interface VviinnImageSelectorCustomEvent<T> extends CustomEvent<T> {
|
|
347
|
+
detail: T;
|
|
348
|
+
target: HTMLVviinnImageSelectorElement;
|
|
349
|
+
}
|
|
350
|
+
export interface VviinnModalCustomEvent<T> extends CustomEvent<T> {
|
|
351
|
+
detail: T;
|
|
352
|
+
target: HTMLVviinnModalElement;
|
|
353
|
+
}
|
|
354
|
+
export interface VviinnOverlayedModalCustomEvent<T> extends CustomEvent<T> {
|
|
355
|
+
detail: T;
|
|
356
|
+
target: HTMLVviinnOverlayedModalElement;
|
|
357
|
+
}
|
|
358
|
+
export interface VviinnProductCardCustomEvent<T> extends CustomEvent<T> {
|
|
359
|
+
detail: T;
|
|
360
|
+
target: HTMLVviinnProductCardElement;
|
|
361
|
+
}
|
|
362
|
+
export interface VviinnRecommendationsSidebarCustomEvent<T> extends CustomEvent<T> {
|
|
363
|
+
detail: T;
|
|
364
|
+
target: HTMLVviinnRecommendationsSidebarElement;
|
|
365
|
+
}
|
|
366
|
+
export interface VviinnVprButtonCustomEvent<T> extends CustomEvent<T> {
|
|
367
|
+
detail: T;
|
|
368
|
+
target: HTMLVviinnVprButtonElement;
|
|
369
|
+
}
|
|
370
|
+
export interface VviinnVprWidgetCustomEvent<T> extends CustomEvent<T> {
|
|
371
|
+
detail: T;
|
|
372
|
+
target: HTMLVviinnVprWidgetElement;
|
|
373
|
+
}
|
|
374
|
+
export interface VviinnVpsButtonCustomEvent<T> extends CustomEvent<T> {
|
|
375
|
+
detail: T;
|
|
376
|
+
target: HTMLVviinnVpsButtonElement;
|
|
377
|
+
}
|
|
378
|
+
export interface VviinnVpsWidgetCustomEvent<T> extends CustomEvent<T> {
|
|
379
|
+
detail: T;
|
|
380
|
+
target: HTMLVviinnVpsWidgetElement;
|
|
381
|
+
}
|
|
304
382
|
declare global {
|
|
305
383
|
interface HTMLCropperHandlerElement extends Components.CropperHandler, HTMLStencilElement {
|
|
306
384
|
}
|
|
@@ -488,6 +566,9 @@ declare global {
|
|
|
488
566
|
prototype: HTMLVviinnVpsButtonElement;
|
|
489
567
|
new (): HTMLVviinnVpsButtonElement;
|
|
490
568
|
};
|
|
569
|
+
/**
|
|
570
|
+
* @prop --color-primary: color used for action button, slider bullets and selected detected object;
|
|
571
|
+
*/
|
|
491
572
|
interface HTMLVviinnVpsWidgetElement extends Components.VviinnVpsWidget, HTMLStencilElement {
|
|
492
573
|
}
|
|
493
574
|
var HTMLVviinnVpsWidgetElement: {
|
|
@@ -546,12 +627,12 @@ declare namespace LocalJSX {
|
|
|
546
627
|
interface ImageCropper {
|
|
547
628
|
"basicEventData"?: BasicEventData;
|
|
548
629
|
"disabled"?: boolean;
|
|
549
|
-
"onVviinnImageCrop"?: (event:
|
|
630
|
+
"onVviinnImageCrop"?: (event: ImageCropperCustomEvent<BasicEventData>) => void;
|
|
550
631
|
}
|
|
551
632
|
interface SearchFilters {
|
|
552
633
|
"basicEventData"?: BasicEventData;
|
|
553
634
|
"filter"?: SearchSessionFilter | null;
|
|
554
|
-
"onVviinnSelectFilter"?: (event:
|
|
635
|
+
"onVviinnSelectFilter"?: (event: SearchFiltersCustomEvent<SelectFilterEventData>) => void;
|
|
555
636
|
}
|
|
556
637
|
interface VviinnButton {
|
|
557
638
|
"addStyle"?: boolean;
|
|
@@ -568,7 +649,7 @@ declare namespace LocalJSX {
|
|
|
568
649
|
interface VviinnDetectedObject {
|
|
569
650
|
"basicEventData"?: BasicEventData;
|
|
570
651
|
"detectedObject"?: ValueObject<DetectedObject>;
|
|
571
|
-
"onVviinnSelectObject"?: (event:
|
|
652
|
+
"onVviinnSelectObject"?: (event: VviinnDetectedObjectCustomEvent<SelectObjectEventData>) => void;
|
|
572
653
|
}
|
|
573
654
|
interface VviinnEmptyResults {
|
|
574
655
|
}
|
|
@@ -577,26 +658,28 @@ declare namespace LocalJSX {
|
|
|
577
658
|
interface VviinnExampleImage {
|
|
578
659
|
"basicEventData"?: BasicEventData;
|
|
579
660
|
"height"?: number;
|
|
580
|
-
"onVviinnImageUpload"?: (event:
|
|
581
|
-
"onVviinnNoResult"?: (event:
|
|
661
|
+
"onVviinnImageUpload"?: (event: VviinnExampleImageCustomEvent<BasicEventData>) => void;
|
|
662
|
+
"onVviinnNoResult"?: (event: VviinnExampleImageCustomEvent<BasicEventData>) => void;
|
|
582
663
|
"src"?: string;
|
|
583
664
|
"width"?: number;
|
|
584
665
|
}
|
|
585
666
|
interface VviinnExampleImages {
|
|
586
667
|
"basicEventData"?: BasicEventData;
|
|
587
|
-
"onVviinnImageUpload"?: (event:
|
|
588
|
-
"onVviinnNoResult"?: (event:
|
|
668
|
+
"onVviinnImageUpload"?: (event: VviinnExampleImagesCustomEvent<BasicEventData>) => void;
|
|
669
|
+
"onVviinnNoResult"?: (event: VviinnExampleImagesCustomEvent<BasicEventData>) => void;
|
|
589
670
|
}
|
|
590
671
|
interface VviinnImageSelector {
|
|
591
672
|
"basicEventData"?: BasicEventData;
|
|
592
673
|
/**
|
|
593
674
|
* Event fires when user select file
|
|
594
675
|
*/
|
|
595
|
-
"onVviinnImageUpload"?: (event:
|
|
676
|
+
"onVviinnImageUpload"?: (event: VviinnImageSelectorCustomEvent<BasicEventData>) => void;
|
|
596
677
|
/**
|
|
597
678
|
* Event fires when user select file that no .jpg, .jpeg or png
|
|
598
679
|
*/
|
|
599
|
-
"onVviinnNoResult"?: (event:
|
|
680
|
+
"onVviinnNoResult"?: (event: VviinnImageSelectorCustomEvent<BasicEventData>) => void;
|
|
681
|
+
"resetVpsButton"?: () => void;
|
|
682
|
+
"startUpload"?: boolean;
|
|
600
683
|
}
|
|
601
684
|
interface VviinnImageView {
|
|
602
685
|
"basicEventData"?: BasicEventData;
|
|
@@ -606,7 +689,7 @@ declare namespace LocalJSX {
|
|
|
606
689
|
/**
|
|
607
690
|
* Event emitted when close button clicked and close animation ends
|
|
608
691
|
*/
|
|
609
|
-
"onVviinnWidgetClose"?: (event:
|
|
692
|
+
"onVviinnWidgetClose"?: (event: VviinnModalCustomEvent<BasicEventData>) => void;
|
|
610
693
|
"resetState"?: () => void;
|
|
611
694
|
}
|
|
612
695
|
interface VviinnOnboarding {
|
|
@@ -621,7 +704,7 @@ declare namespace LocalJSX {
|
|
|
621
704
|
}
|
|
622
705
|
interface VviinnOverlayedModal {
|
|
623
706
|
"active"?: boolean;
|
|
624
|
-
"onVviinnWidgetClose"?: (event:
|
|
707
|
+
"onVviinnWidgetClose"?: (event: VviinnOverlayedModalCustomEvent<void>) => void;
|
|
625
708
|
"resetState"?: () => void;
|
|
626
709
|
}
|
|
627
710
|
interface VviinnPreloader {
|
|
@@ -641,15 +724,15 @@ declare namespace LocalJSX {
|
|
|
641
724
|
/**
|
|
642
725
|
* Event fires ones when user click on deeplink
|
|
643
726
|
*/
|
|
644
|
-
"onVviinnProductClick"?: (event:
|
|
727
|
+
"onVviinnProductClick"?: (event: VviinnProductCardCustomEvent<ProductCardEventData>) => void;
|
|
645
728
|
/**
|
|
646
729
|
* Event fires ones when recommendation rendered on page
|
|
647
730
|
*/
|
|
648
|
-
"onVviinnProductLoad"?: (event:
|
|
731
|
+
"onVviinnProductLoad"?: (event: VviinnProductCardCustomEvent<ProductCardEventData>) => void;
|
|
649
732
|
/**
|
|
650
733
|
* Event fires ones when recommendation appears on the viewport
|
|
651
734
|
*/
|
|
652
|
-
"onVviinnProductView"?: (event:
|
|
735
|
+
"onVviinnProductView"?: (event: VviinnProductCardCustomEvent<ProductCardEventData>) => void;
|
|
653
736
|
"price"?: number | undefined;
|
|
654
737
|
"pricePrefix"?: string | undefined;
|
|
655
738
|
"productId"?: string;
|
|
@@ -671,10 +754,10 @@ declare namespace LocalJSX {
|
|
|
671
754
|
*/
|
|
672
755
|
"gridArrowsDynamic"?: boolean;
|
|
673
756
|
"imageWidth"?: number;
|
|
674
|
-
"mode"?:
|
|
757
|
+
"mode"?: CarouselMode1;
|
|
675
758
|
"noResultShow"?: boolean;
|
|
676
759
|
"noResultText"?: string;
|
|
677
|
-
"onVviinnWidgetClose"?: (event:
|
|
760
|
+
"onVviinnWidgetClose"?: (event: VviinnRecommendationsSidebarCustomEvent<BasicEventData>) => void;
|
|
678
761
|
"position"?: "bottom" | "right";
|
|
679
762
|
"productId"?: string;
|
|
680
763
|
"sidebarTitle"?: string;
|
|
@@ -712,7 +795,7 @@ declare namespace LocalJSX {
|
|
|
712
795
|
"gridArrowsDynamic"?: boolean;
|
|
713
796
|
"imageWidth"?: number;
|
|
714
797
|
"modalScrollbar"?: boolean;
|
|
715
|
-
"mode"?:
|
|
798
|
+
"mode"?: CarouselMode1;
|
|
716
799
|
/**
|
|
717
800
|
* Showing message (when true) or hiding the whole widget, when no results
|
|
718
801
|
*/
|
|
@@ -721,16 +804,16 @@ declare namespace LocalJSX {
|
|
|
721
804
|
* This message is displayed when no results
|
|
722
805
|
*/
|
|
723
806
|
"noResultText"?: string;
|
|
724
|
-
"onVviinnNoResult"?: (event:
|
|
725
|
-
"onVviinnProductClick"?: (event:
|
|
726
|
-
"onVviinnProductLoad"?: (event:
|
|
727
|
-
"onVviinnProductView"?: (event:
|
|
728
|
-
"onVviinnWidgetClose"?: (event:
|
|
729
|
-
"onVviinnWidgetLoad"?: (event:
|
|
807
|
+
"onVviinnNoResult"?: (event: VviinnVprButtonCustomEvent<any>) => void;
|
|
808
|
+
"onVviinnProductClick"?: (event: VviinnVprButtonCustomEvent<any>) => void;
|
|
809
|
+
"onVviinnProductLoad"?: (event: VviinnVprButtonCustomEvent<any>) => void;
|
|
810
|
+
"onVviinnProductView"?: (event: VviinnVprButtonCustomEvent<any>) => void;
|
|
811
|
+
"onVviinnWidgetClose"?: (event: VviinnVprButtonCustomEvent<any>) => void;
|
|
812
|
+
"onVviinnWidgetLoad"?: (event: VviinnVprButtonCustomEvent<any>) => void;
|
|
730
813
|
/**
|
|
731
814
|
* Event emitted when vpr-button clicked
|
|
732
815
|
*/
|
|
733
|
-
"onVviinnWidgetOpen"?: (event:
|
|
816
|
+
"onVviinnWidgetOpen"?: (event: VviinnVprButtonCustomEvent<BasicEventData>) => void;
|
|
734
817
|
"position"?: "bottom" | "right";
|
|
735
818
|
"productId"?: string;
|
|
736
819
|
"sidebarTitle"?: string;
|
|
@@ -778,7 +861,7 @@ declare namespace LocalJSX {
|
|
|
778
861
|
/**
|
|
779
862
|
* Use slider or grid view
|
|
780
863
|
*/
|
|
781
|
-
"mode"?:
|
|
864
|
+
"mode"?: CarouselMode1;
|
|
782
865
|
/**
|
|
783
866
|
* Showing message (when true) or hiding the whole widget, when no results
|
|
784
867
|
*/
|
|
@@ -787,11 +870,11 @@ declare namespace LocalJSX {
|
|
|
787
870
|
* This message is displayed when no results
|
|
788
871
|
*/
|
|
789
872
|
"noResultText"?: string;
|
|
790
|
-
"onVviinnNoResult"?: (event:
|
|
791
|
-
"onVviinnProductClick"?: (event:
|
|
792
|
-
"onVviinnProductLoad"?: (event:
|
|
793
|
-
"onVviinnProductView"?: (event:
|
|
794
|
-
"onVviinnWidgetLoad"?: (event:
|
|
873
|
+
"onVviinnNoResult"?: (event: VviinnVprWidgetCustomEvent<any>) => void;
|
|
874
|
+
"onVviinnProductClick"?: (event: VviinnVprWidgetCustomEvent<any>) => void;
|
|
875
|
+
"onVviinnProductLoad"?: (event: VviinnVprWidgetCustomEvent<any>) => void;
|
|
876
|
+
"onVviinnProductView"?: (event: VviinnVprWidgetCustomEvent<any>) => void;
|
|
877
|
+
"onVviinnWidgetLoad"?: (event: VviinnVprWidgetCustomEvent<BasicEventData>) => void;
|
|
795
878
|
/**
|
|
796
879
|
* prefix will shown before price
|
|
797
880
|
*/
|
|
@@ -823,25 +906,38 @@ declare namespace LocalJSX {
|
|
|
823
906
|
* Locale for currency formatting
|
|
824
907
|
*/
|
|
825
908
|
"locale"?: string;
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
"
|
|
830
|
-
"
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
"
|
|
835
|
-
|
|
909
|
+
/**
|
|
910
|
+
* Add style to the button
|
|
911
|
+
*/
|
|
912
|
+
"mode"?: "modal" | "upload";
|
|
913
|
+
"onVviinnImageCrop"?: (event: VviinnVpsButtonCustomEvent<any>) => void;
|
|
914
|
+
/**
|
|
915
|
+
* Event fires when user select file
|
|
916
|
+
*/
|
|
917
|
+
"onVviinnImageUpload"?: (event: VviinnVpsButtonCustomEvent<BasicEventData>) => void;
|
|
918
|
+
/**
|
|
919
|
+
* Event fires when user select file that no .jpg, .jpeg or png
|
|
920
|
+
*/
|
|
921
|
+
"onVviinnNoResult"?: (event: VviinnVpsButtonCustomEvent<BasicEventData>) => void;
|
|
922
|
+
"onVviinnProductClick"?: (event: VviinnVpsButtonCustomEvent<any>) => void;
|
|
923
|
+
"onVviinnProductLoad"?: (event: VviinnVpsButtonCustomEvent<any>) => void;
|
|
924
|
+
"onVviinnProductView"?: (event: VviinnVpsButtonCustomEvent<any>) => void;
|
|
925
|
+
"onVviinnSelectFilter"?: (event: VviinnVpsButtonCustomEvent<any>) => void;
|
|
926
|
+
"onVviinnSelectObject"?: (event: VviinnVpsButtonCustomEvent<any>) => void;
|
|
927
|
+
"onVviinnWidgetClose"?: (event: VviinnVpsButtonCustomEvent<any>) => void;
|
|
928
|
+
"onVviinnWidgetLoad"?: (event: VviinnVpsButtonCustomEvent<any>) => void;
|
|
836
929
|
/**
|
|
837
930
|
* Event emitted when vps-button clicked
|
|
838
931
|
*/
|
|
839
|
-
"onVviinnWidgetOpen"?: (event:
|
|
932
|
+
"onVviinnWidgetOpen"?: (event: VviinnVpsButtonCustomEvent<BasicEventData>) => void;
|
|
840
933
|
/**
|
|
841
934
|
* vviinn customer token
|
|
842
935
|
*/
|
|
843
936
|
"token"?: string;
|
|
844
937
|
}
|
|
938
|
+
/**
|
|
939
|
+
* @prop --color-primary: color used for action button, slider bullets and selected detected object;
|
|
940
|
+
*/
|
|
845
941
|
interface VviinnVpsWidget {
|
|
846
942
|
/**
|
|
847
943
|
* When true modal window with widget will be shown
|
|
@@ -859,16 +955,17 @@ declare namespace LocalJSX {
|
|
|
859
955
|
* Locale for currency formatting
|
|
860
956
|
*/
|
|
861
957
|
"locale"?: string;
|
|
862
|
-
"onVviinnImageCrop"?: (event:
|
|
863
|
-
"onVviinnImageUpload"?: (event:
|
|
864
|
-
"onVviinnNoResult"?: (event:
|
|
865
|
-
"onVviinnProductClick"?: (event:
|
|
866
|
-
"onVviinnProductLoad"?: (event:
|
|
867
|
-
"onVviinnProductView"?: (event:
|
|
868
|
-
"onVviinnSelectFilter"?: (event:
|
|
869
|
-
"onVviinnSelectObject"?: (event:
|
|
870
|
-
"onVviinnWidgetClose"?: (event:
|
|
871
|
-
"onVviinnWidgetLoad"?: (event:
|
|
958
|
+
"onVviinnImageCrop"?: (event: VviinnVpsWidgetCustomEvent<any>) => void;
|
|
959
|
+
"onVviinnImageUpload"?: (event: VviinnVpsWidgetCustomEvent<any>) => void;
|
|
960
|
+
"onVviinnNoResult"?: (event: VviinnVpsWidgetCustomEvent<any>) => void;
|
|
961
|
+
"onVviinnProductClick"?: (event: VviinnVpsWidgetCustomEvent<any>) => void;
|
|
962
|
+
"onVviinnProductLoad"?: (event: VviinnVpsWidgetCustomEvent<any>) => void;
|
|
963
|
+
"onVviinnProductView"?: (event: VviinnVpsWidgetCustomEvent<any>) => void;
|
|
964
|
+
"onVviinnSelectFilter"?: (event: VviinnVpsWidgetCustomEvent<any>) => void;
|
|
965
|
+
"onVviinnSelectObject"?: (event: VviinnVpsWidgetCustomEvent<any>) => void;
|
|
966
|
+
"onVviinnWidgetClose"?: (event: VviinnVpsWidgetCustomEvent<any>) => void;
|
|
967
|
+
"onVviinnWidgetLoad"?: (event: VviinnVpsWidgetCustomEvent<BasicEventData>) => void;
|
|
968
|
+
"onVviinnWidgetOpen"?: (event: VviinnVpsWidgetCustomEvent<BasicEventData>) => void;
|
|
872
969
|
/**
|
|
873
970
|
* Set true when showing the widget in button
|
|
874
971
|
*/
|
|
@@ -952,6 +1049,9 @@ declare module "@stencil/core" {
|
|
|
952
1049
|
"vviinn-vpr-button": LocalJSX.VviinnVprButton & JSXBase.HTMLAttributes<HTMLVviinnVprButtonElement>;
|
|
953
1050
|
"vviinn-vpr-widget": LocalJSX.VviinnVprWidget & JSXBase.HTMLAttributes<HTMLVviinnVprWidgetElement>;
|
|
954
1051
|
"vviinn-vps-button": LocalJSX.VviinnVpsButton & JSXBase.HTMLAttributes<HTMLVviinnVpsButtonElement>;
|
|
1052
|
+
/**
|
|
1053
|
+
* @prop --color-primary: color used for action button, slider bullets and selected detected object;
|
|
1054
|
+
*/
|
|
955
1055
|
"vviinn-vps-widget": LocalJSX.VviinnVpsWidget & JSXBase.HTMLAttributes<HTMLVviinnVpsWidgetElement>;
|
|
956
1056
|
"vviinn-wrong-format": LocalJSX.VviinnWrongFormat & JSXBase.HTMLAttributes<HTMLVviinnWrongFormatElement>;
|
|
957
1057
|
}
|
package/dist/types/error.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Point } from "./Point";
|
|
|
2
2
|
import { Handler } from "../cropper/Handler";
|
|
3
3
|
import { Sized } from "./Sized";
|
|
4
4
|
import { RectangleAlt } from "./RectangleAlt";
|
|
5
|
-
export
|
|
5
|
+
export type Rectangle = Point & Sized;
|
|
6
6
|
interface RectangleTransform {
|
|
7
7
|
(x: Rectangle, y: Handler): Rectangle;
|
|
8
8
|
}
|