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
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-48ef9564.js';
|
|
2
|
+
export { s as setNonce } from './index-48ef9564.js';
|
|
2
3
|
|
|
3
4
|
/*
|
|
4
|
-
Stencil Client Patch Browser
|
|
5
|
+
Stencil Client Patch Browser v3.3.1 | MIT Licensed | https://stenciljs.com
|
|
5
6
|
*/
|
|
6
7
|
const patchBrowser = () => {
|
|
7
8
|
const importMeta = import.meta.url;
|
|
8
9
|
const opts = {};
|
|
10
|
+
// TODO(STENCIL-663): Remove code related to deprecated `safari10` field.
|
|
9
11
|
if (importMeta !== '') {
|
|
10
12
|
opts.resourcesUrl = new URL('.', importMeta).href;
|
|
13
|
+
// TODO(STENCIL-661): Remove code related to the dynamic import shim
|
|
14
|
+
// TODO(STENCIL-663): Remove code related to deprecated `safari10` field.
|
|
11
15
|
}
|
|
12
16
|
return promiseResolve(opts);
|
|
13
17
|
};
|
|
14
18
|
|
|
15
19
|
patchBrowser().then(options => {
|
|
16
|
-
return bootstrapLazy([["
|
|
20
|
+
return bootstrapLazy([["cropper-handler_29",[[1,"vviinn-vps-button",{"token":[1],"currencySign":[1,"currency-sign"],"locale":[1],"campaignId":[1,"campaign-id"],"addStyle":[4,"add-style"],"mode":[1],"apiPath":[1,"api-path"],"buttonPressed":[32]},[[0,"vviinnWidgetClose","handleModalClosed"]]],[1,"vviinn-vps-widget",{"token":[1],"apiPath":[1,"api-path"],"active":[1028],"currencySign":[1,"currency-sign"],"locale":[1],"campaignId":[1,"campaign-id"],"showingInButton":[4,"showing-in-button"],"buttonElementId":[1,"button-element-id"],"buttonPressed":[4,"button-pressed"],"mode":[1],"resetVpsButton":[16],"slidePosition":[32],"width":[32],"wrongImageFormat":[32],"trackingDeactivated":[32]},[[0,"vviinnProductView","trackProductView"],[0,"vviinnProductClick","trackProductClick"],[0,"vviinnImageCrop","trachSearchAreaChanges"],[0,"vviinnSelectObject","trackDetectedObject"],[0,"vviinnSelectFilter","trackFilter"]]],[1,"vviinn-image-view",{"basicEventData":[16]}],[1,"vviinn-onboarding"],[1,"vviinn-example-images",{"basicEventData":[16]}],[1,"vviinn-overlayed-modal",{"active":[4],"resetState":[16],"buttonElementId":[1,"button-element-id"],"hideBackButton":[4,"hide-back-button"]}],[1,"vviinn-empty-results"],[1,"vviinn-image-selector",{"basicEventData":[16],"startUpload":[4,"start-upload"],"resetVpsButton":[16]}],[1,"vviinn-server-error",{"handler":[16]}],[1,"vviinn-wrong-format",{"handler":[16]}],[1,"search-filters",{"filter":[16],"basicEventData":[16],"selectedCategoryId":[32],"hideFilters":[32]}],[1,"vviinn-button",{"addStyle":[4,"add-style"]}],[1,"vviinn-privacy-badge"],[1,"vviinn-teaser"],[1,"image-cropper",{"disabled":[4],"basicEventData":[16],"handleMove":[32]}],[1,"vviinn-example-image",{"src":[1],"width":[2],"height":[2],"basicEventData":[16],"selected":[32]}],[1,"highlight-box"],[1,"vviinn-detected-object",{"detectedObject":[16],"basicEventData":[16],"position":[32]}],[1,"vviinn-modal",{"active":[1540],"resetState":[16],"buttonElementId":[1,"button-element-id"],"hideBackButton":[4,"hide-back-button"],"slider":[32]}],[1,"vviinn-onboarding-card-1"],[1,"vviinn-onboarding-card-2"],[1,"vviinn-onboarding-card-3"],[1,"vviinn-overlay"],[1,"vviinn-slide"],[1,"vviinn-slider",{"showBullets":[4,"show-bullets"],"position":[514],"showArrows":[4,"show-arrows"],"elementsCount":[32],"internalPosition":[32],"swipeStartPosition":[32],"isRTL":[32]}],[1,"cropper-handler",{"handler":[16],"disabled":[4]}],[1,"vviinn-error"],[1,"vviinn-preloader"],[1,"vviinn-product-card",{"brand":[1],"currency":[1],"deeplink":[1],"image":[1],"imageRatio":[2,"image-ratio"],"imageWidth":[2,"image-width"],"locale":[1],"price":[2],"pricePrefix":[1,"price-prefix"],"productId":[1,"product-id"],"productTitle":[1,"product-title"],"productType":[1,"product-type"],"salePrice":[2,"sale-price"],"responsive":[4],"campaignTypeId":[1,"campaign-type-id"],"dimmedBackground":[4,"dimmed-background"],"widgetElementId":[1,"widget-element-id"],"buttonElementId":[1,"button-element-id"],"index":[2],"imageLoaded":[32]}]]],["vviinn-carousel_2",[[1,"vviinn-vpr-widget",{"blockTitle":[1,"block-title"],"imageRatio":[2,"image-ratio"],"imageWidth":[2,"image-width"],"productId":[1,"product-id"],"token":[1],"currencySign":[1,"currency-sign"],"pricePrefix":[1,"price-prefix"],"mode":[1],"campaignType":[1,"campaign-type"],"locale":[1],"campaigns":[1],"color":[1],"gridArrowsDynamic":[4,"grid-arrows-dynamic"],"noResultText":[1,"no-result-text"],"noResultShow":[4,"no-result-show"],"apiPath":[1,"api-path"],"useCarousel":[4,"use-carousel"],"showScroll":[4,"show-scroll"],"cssUrl":[1,"css-url"],"buttonElementId":[1,"button-element-id"],"recommendations":[32],"trackingDeactivated":[32],"hasErrorOnLoad":[32]},[[0,"vviinnProductLoad","handleProductLoading"],[0,"vviinnProductView","trackProductView"],[0,"vviinnProductClick","trackProductClick"]]],[0,"vviinn-carousel",{"mode":[1],"imageWidth":[2,"image-width"],"showScroll":[4,"show-scroll"],"campaignTypeId":[1,"campaign-type-id"],"widgetElementId":[1,"widget-element-id"],"gridArrowsDynamic":[4,"grid-arrows-dynamic"],"recommendations":[16],"moveDirection":[32],"contentGroups":[32],"activeContentGroup":[32],"isRTL":[32]}]]],["vviinn-recommendations-sidebar",[[1,"vviinn-recommendations-sidebar",{"sidebarTitle":[1,"sidebar-title"],"token":[1],"productId":[1,"product-id"],"position":[1],"sourceImage":[1,"source-image"],"widgetScrollbar":[4,"widget-scrollbar"],"mode":[1],"campaigns":[1],"campaignType":[1,"campaign-type"],"color":[1],"imageWidth":[2,"image-width"],"currencySign":[1,"currency-sign"],"noResultText":[1,"no-result-text"],"noResultShow":[4,"no-result-show"],"gridArrowsDynamic":[4,"grid-arrows-dynamic"],"apiPath":[1,"api-path"],"buttonElementId":[1,"button-element-id"],"state":[32]},[[16,"click","bodyClickListener"]]]]],["vviinn-vpr-button",[[1,"vviinn-vpr-button",{"token":[1],"productId":[1,"product-id"],"position":[1],"sourceImage":[1,"source-image"],"sidebarTitle":[1,"sidebar-title"],"modalScrollbar":[4,"modal-scrollbar"],"campaigns":[1],"campaignType":[1,"campaign-type"],"color":[1],"addStyle":[4,"add-style"],"mode":[1],"imageWidth":[2,"image-width"],"currencySign":[1,"currency-sign"],"noResultText":[1,"no-result-text"],"noResultShow":[4,"no-result-show"],"gridArrowsDynamic":[4,"grid-arrows-dynamic"],"apiPath":[1,"api-path"]}]]]], options);
|
|
17
21
|
});
|
package/dist/loader/index.d.ts
CHANGED
|
@@ -10,3 +10,12 @@ export interface CustomElementsDefineOptions {
|
|
|
10
10
|
}
|
|
11
11
|
export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): Promise<void>;
|
|
12
12
|
export declare function applyPolyfills(): Promise<void>;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Used to specify a nonce value that corresponds with an application's CSP.
|
|
16
|
+
* When set, the nonce will be added to all dynamically created script and style tags at runtime.
|
|
17
|
+
* Alternatively, the nonce value can be set on a meta tag in the DOM head
|
|
18
|
+
* (<meta name="csp-nonce" content="{ nonce value here }" />) which
|
|
19
|
+
* will result in the same behavior.
|
|
20
|
+
*/
|
|
21
|
+
export declare function setNonce(nonce: string): void;
|
package/dist/loader/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
1
|
+
type ImageWidth = "width";
|
|
2
|
+
type ImageHeight = "height";
|
|
3
|
+
export type ImageDimension = {
|
|
4
4
|
readonly kind: ImageWidth | ImageHeight;
|
|
5
5
|
readonly size: number;
|
|
6
6
|
};
|
|
7
|
-
|
|
7
|
+
type ImageDimensions = ImageDimension[];
|
|
8
8
|
export declare const scaleByLargestSide: (toSize: number) => (dimensions: ImageDimensions) => ImageDimensions;
|
|
9
9
|
export declare const dimensionsFromImage: (image: HTMLImageElement) => ImageDimensions;
|
|
10
10
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
1
|
+
export type CampaignName = "VPR" | "VCS";
|
|
2
|
+
export type WidgetType = "VPR" | "VPS";
|
|
3
|
+
export type CampaignTypeId = "VPR" | "VPS" | "VCS";
|
|
4
|
+
export type CampaignTypeTitle = "Similar Products" | "Visual Search" | "Products Cross-Selling";
|
|
5
5
|
export declare const campaignTypeNames: Record<CampaignTypeId, CampaignTypeTitle>;
|
|
6
6
|
export interface VPR {
|
|
7
7
|
readonly _tag: "VPR";
|
|
@@ -11,6 +11,6 @@ export interface VCS {
|
|
|
11
11
|
}
|
|
12
12
|
export declare const isVPR: (c: Campaign) => c is VPR;
|
|
13
13
|
export declare const isVCS: (c: Campaign) => c is VCS;
|
|
14
|
-
export
|
|
14
|
+
export type Campaign = VPR | VCS;
|
|
15
15
|
export declare function fold<A, B>(onVPR: () => A, onVCS: () => B): (c: Campaign) => A | B;
|
|
16
16
|
export declare function fromString(s: CampaignName): Campaign;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Recommendation } from "../recommendation/recommendation";
|
|
2
|
-
export
|
|
2
|
+
export type VCSCampaignResponse = Recommendation[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Recommendation } from "../../recommendation/recommendation";
|
|
2
2
|
import { CampaignTypeId } from "../../campaign/Campaign";
|
|
3
|
-
|
|
4
|
-
export
|
|
3
|
+
type MoveDirection = "left" | "right";
|
|
4
|
+
export type CarouselMode = "grid" | "continuity";
|
|
5
5
|
/**
|
|
6
6
|
* @part carousel-button
|
|
7
7
|
**/
|
|
@@ -9,7 +9,11 @@ export declare class VviinnImageSelector {
|
|
|
9
9
|
/** Event fires when user select file that no .jpg, .jpeg or png */
|
|
10
10
|
vviinnNoResult: EventEmitter<BasicEventData>;
|
|
11
11
|
basicEventData: BasicEventData;
|
|
12
|
+
startUpload: boolean;
|
|
13
|
+
resetVpsButton: () => void;
|
|
14
|
+
private fileInput;
|
|
12
15
|
private handleInputChange;
|
|
13
16
|
private isLoading;
|
|
17
|
+
startUploadWatcher(upload: boolean): void;
|
|
14
18
|
render(): any;
|
|
15
19
|
}
|
|
@@ -6,6 +6,8 @@ export declare class VviinnModal {
|
|
|
6
6
|
resetState: () => void;
|
|
7
7
|
/** @internal */
|
|
8
8
|
buttonElementId?: string;
|
|
9
|
+
/** @internal */
|
|
10
|
+
hideBackButton: boolean;
|
|
9
11
|
slider: boolean;
|
|
10
12
|
/** Event emitted when close button clicked and close animation ends */
|
|
11
13
|
vviinnWidgetClose: EventEmitter<BasicEventData>;
|
|
@@ -3,18 +3,18 @@ import { FunctionalComponent } from "../../stencil-public-runtime";
|
|
|
3
3
|
export declare const containsFit: (url: string) => E.Either<string, string>;
|
|
4
4
|
export declare const processWidth: (url: string, size: number) => string;
|
|
5
5
|
export declare const Linked: (props: any, child: any) => any;
|
|
6
|
-
|
|
6
|
+
type PriceElementProps = {
|
|
7
7
|
readonly locale: string;
|
|
8
8
|
readonly price: number;
|
|
9
9
|
readonly prefix: string;
|
|
10
10
|
readonly currency: string;
|
|
11
11
|
readonly priceType?: "sale" | "outdated" | "regular";
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
type PriceProps = PriceElementProps & {
|
|
14
14
|
salePrice: number;
|
|
15
15
|
};
|
|
16
16
|
export declare const Price: FunctionalComponent<PriceProps>;
|
|
17
|
-
export
|
|
17
|
+
export type ImageProps = {
|
|
18
18
|
width: number;
|
|
19
19
|
height: number;
|
|
20
20
|
title: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FunctionalComponent } from "../../stencil-public-runtime";
|
|
2
|
-
export
|
|
3
|
-
|
|
2
|
+
export type ArrowKind = "prev" | "next";
|
|
3
|
+
type ArrowProp = {
|
|
4
4
|
kind: ArrowKind;
|
|
5
5
|
tabindex: number;
|
|
6
6
|
disabled: boolean;
|
package/dist/types/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { EventEmitter } from "../../../stencil-public-runtime";
|
|
|
2
2
|
import { CarouselMode } from "../../vviinn-carousel/vviinn-carousel";
|
|
3
3
|
import { BasicEventData } from "../../../recommendation/events";
|
|
4
4
|
import { CampaignTypeId } from "../../../campaign/Campaign";
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
type SidebarState = "idle" | "open" | "closed";
|
|
6
|
+
type ClickEvent = Event & {
|
|
7
7
|
clientX: number;
|
|
8
8
|
clientY: number;
|
|
9
9
|
};
|
|
@@ -45,26 +45,31 @@ export declare class VviinnVpsButton {
|
|
|
45
45
|
campaignId?: string;
|
|
46
46
|
/** Add style to the button */
|
|
47
47
|
addStyle: boolean;
|
|
48
|
+
/** Add style to the button */
|
|
49
|
+
mode: "modal" | "upload";
|
|
48
50
|
/** @internal */
|
|
49
51
|
apiPath: string | undefined;
|
|
50
|
-
|
|
52
|
+
buttonPressed: boolean;
|
|
51
53
|
/** @internal */
|
|
52
54
|
globalSlotsChanged: EventEmitter<any>;
|
|
53
55
|
/** Event emitted when vps-button clicked */
|
|
54
56
|
vviinnWidgetOpen: EventEmitter<BasicEventData>;
|
|
57
|
+
/** Event fires when user select file */
|
|
58
|
+
vviinnImageUpload: EventEmitter<BasicEventData>;
|
|
59
|
+
/** Event fires when user select file that no .jpg, .jpeg or png */
|
|
60
|
+
vviinnNoResult: EventEmitter<BasicEventData>;
|
|
55
61
|
vviinnWidgetLoad: EventEmitter;
|
|
56
62
|
vviinnWidgetClose: EventEmitter;
|
|
57
63
|
vviinnProductClick: EventEmitter;
|
|
58
64
|
vviinnProductView: EventEmitter;
|
|
59
65
|
vviinnProductLoad: EventEmitter;
|
|
60
|
-
vviinnImageUpload: EventEmitter;
|
|
61
66
|
vviinnImageCrop: EventEmitter;
|
|
62
67
|
vviinnSelectObject: EventEmitter;
|
|
63
68
|
vviinnSelectFilter: EventEmitter;
|
|
64
|
-
|
|
69
|
+
getBasicEventData: () => BasicEventData;
|
|
65
70
|
handleModalClosed(): void;
|
|
66
71
|
componentDidLoad(): void;
|
|
67
|
-
private handleKeyDown;
|
|
68
72
|
private handleClick;
|
|
73
|
+
private resetButton;
|
|
69
74
|
render(): any;
|
|
70
75
|
}
|
|
@@ -64,6 +64,12 @@ export declare class VviinnVpsWidget {
|
|
|
64
64
|
/** Element Id, passed from vps-button */
|
|
65
65
|
/** @internal */
|
|
66
66
|
buttonElementId?: string;
|
|
67
|
+
/** @internal */
|
|
68
|
+
buttonPressed?: boolean;
|
|
69
|
+
/** @internal */
|
|
70
|
+
mode: "modal" | "upload";
|
|
71
|
+
/** @internal */
|
|
72
|
+
resetVpsButton: () => void;
|
|
67
73
|
slidePosition: number;
|
|
68
74
|
width: number;
|
|
69
75
|
wrongImageFormat: boolean;
|
|
@@ -71,6 +77,7 @@ export declare class VviinnVpsWidget {
|
|
|
71
77
|
/** @internal */
|
|
72
78
|
globalSlotsChanged: EventEmitter<any>;
|
|
73
79
|
vviinnWidgetLoad: EventEmitter<BasicEventData>;
|
|
80
|
+
vviinnWidgetOpen: EventEmitter<BasicEventData>;
|
|
74
81
|
vviinnWidgetClose: EventEmitter;
|
|
75
82
|
vviinnProductClick: EventEmitter;
|
|
76
83
|
vviinnProductView: EventEmitter;
|
|
@@ -89,6 +96,7 @@ export declare class VviinnVpsWidget {
|
|
|
89
96
|
setTrackingDeactivated: (result: EventConfirmation) => void;
|
|
90
97
|
getBasicEventData: () => BasicEventData;
|
|
91
98
|
activeWatcher(value: boolean): void;
|
|
99
|
+
buttonPressedWatcher(pressed: boolean): void;
|
|
92
100
|
trackProductView({ detail }: ProductCardEvent): void;
|
|
93
101
|
trackProductClick({ detail }: ProductCardEvent): Promise<void>;
|
|
94
102
|
trachSearchAreaChanges(): void;
|