vviinn-widgets 2.3.1 → 2.4.2
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/{app-globals-6b5da080.js → app-globals-d999d944.js} +1 -1
- package/dist/cjs/{highlight-box_22.cjs.entry.js → cropper-handler_27.cjs.entry.js} +486 -92
- package/dist/cjs/{customized-slots-8bc78ad4.js → customized-slots-90e8e849.js} +1 -1
- package/dist/cjs/{index-5b9a60ac.js → index-53400160.js} +1 -1
- package/dist/cjs/{imageSearch.store-042e9f45.js → index-c0d08aca.js} +15288 -11038
- package/dist/cjs/{index-553c2b4f.js → index-e8cf5dc5.js} +1 -1
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{vviinn-carousel_3.cjs.entry.js → vviinn-carousel_2.cjs.entry.js} +50 -206
- package/dist/cjs/vviinn-recommendations-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/vviinn-vpr-button.cjs.entry.js +2 -2
- package/dist/cjs/vviinn-vps-button.cjs.entry.js +3 -3
- package/dist/cjs/vviinn-widgets.cjs.js +3 -3
- package/dist/collection/components/image-search/image-view/image-cropper/image-cropper.js +27 -7
- package/dist/collection/components/image-search/search-filters/search-filters.js +24 -1
- package/dist/collection/components/vviinn-carousel/vviinn-carousel.js +3 -3
- package/dist/collection/components/vviinn-example-images/vviinn-example-images.js +4 -4
- package/dist/collection/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.js +18 -1
- package/dist/collection/components/vviinn-product-card/vviinn-product-card.js +57 -12
- package/dist/collection/components/vviinn-vpr-widget/stories/args.js +8 -8
- package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-vidget.js +46 -10
- package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-widget.css +5 -0
- package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js +106 -10
- package/dist/collection/network/utils.js +1 -1
- package/dist/collection/openApi/index.js +27 -0
- package/dist/collection/{components/vviinn-vpr-widget/GridMode.js → recommendation/events.js} +0 -0
- package/dist/collection/store/store.js +7 -9
- package/dist/collection/store/tracking.store.js +3 -0
- package/dist/collection/tracking/event.js +3 -0
- package/dist/collection/tracking/filter.js +5 -0
- package/dist/collection/tracking/index.js +13 -0
- package/dist/collection/tracking/models.js +6 -0
- package/dist/collection/tracking/product.js +18 -0
- package/dist/collection/tracking/search.js +5 -0
- package/dist/collection/tracking/widget.js +10 -0
- package/dist/esm/{app-globals-90d99f95.js → app-globals-f91c6f94.js} +1 -1
- package/dist/esm/{highlight-box_22.entry.js → cropper-handler_27.entry.js} +417 -28
- package/dist/esm/{customized-slots-65b2467d.js → customized-slots-7be7f3b8.js} +1 -1
- package/dist/esm/{index-ac2e3b9d.js → index-00c7b7c2.js} +2 -2
- package/dist/esm/{imageSearch.store-f35e14f8.js → index-840ec915.js} +15232 -10993
- package/dist/esm/{index-d7c7df1c.js → index-d7147986.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{vviinn-carousel_3.entry.js → vviinn-carousel_2.entry.js} +42 -197
- package/dist/esm/vviinn-recommendations-sidebar.entry.js +2 -2
- package/dist/esm/vviinn-vpr-button.entry.js +2 -2
- package/dist/esm/vviinn-vps-button.entry.js +3 -3
- package/dist/esm/vviinn-widgets.js +3 -3
- package/dist/types/Image/error.d.ts +1 -0
- package/dist/types/Image/form.d.ts +1 -0
- package/dist/types/Image/fromFile.d.ts +1 -0
- package/dist/types/Image/imageToB64.d.ts +1 -0
- package/dist/types/Image/index.d.ts +1 -0
- package/dist/types/Image/renderPromise.d.ts +1 -0
- package/dist/types/Image/resizeImage.d.ts +1 -0
- package/dist/types/Image/sizing.d.ts +1 -0
- package/dist/types/Image/toFile.d.ts +1 -0
- package/dist/types/analytics/GAnalytics.d.ts +1 -0
- package/dist/types/analytics/GeneralAnalytics.d.ts +1 -0
- package/dist/types/analytics/GtagAnalytics.d.ts +1 -0
- package/dist/types/analytics/ProductAnalytics.d.ts +1 -0
- package/dist/types/campaign/Campaign.d.ts +1 -0
- package/dist/types/campaign/CampaignService.d.ts +1 -0
- package/dist/types/campaign/VCSCampaign.d.ts +1 -0
- package/dist/types/campaign/VCSCampaignResponse.d.ts +1 -0
- package/dist/types/campaign/VCSCampaignService.d.ts +1 -0
- package/dist/types/campaign/VPRCampaignResponse.d.ts +1 -0
- package/dist/types/campaign/VPRCampaignService.d.ts +1 -0
- package/dist/types/components/customized-slots.d.ts +1 -0
- package/dist/types/components/image-search/image-view/highlight-box/highlight-box.d.ts +1 -0
- package/dist/types/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.d.ts +1 -0
- package/dist/types/components/image-search/image-view/image-cropper/image-cropper.d.ts +4 -0
- package/dist/types/components/image-search/search-filters/search-filters.d.ts +4 -0
- package/dist/types/components/vviinn-carousel/vviinn-carousel.d.ts +1 -0
- package/dist/types/components/vviinn-error/vviinn-empty-results/vviinn-empty-results.d.ts +1 -0
- package/dist/types/components/vviinn-error/vviinn-error.d.ts +1 -0
- package/dist/types/components/vviinn-error/vviinn-server-error/vviinn-server-error.d.ts +1 -0
- package/dist/types/components/vviinn-error/vviinn-wrong-format/vviinn-wrong-format.d.ts +1 -0
- package/dist/types/components/vviinn-example-images/vviinn-example-image/vviinn-example-image.d.ts +1 -0
- package/dist/types/components/vviinn-example-images/vviinn-example-images.d.ts +1 -0
- package/dist/types/components/vviinn-icons/index.d.ts +1 -0
- package/dist/types/components/vviinn-image-selector/vviinn-image-selector.d.ts +1 -0
- package/dist/types/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.d.ts +3 -0
- package/dist/types/components/vviinn-image-view/vviinn-image-view.d.ts +1 -0
- package/dist/types/components/vviinn-modal/vviinn-modal.d.ts +1 -0
- package/dist/types/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-1/vviinn-onboarding-card-1.d.ts +1 -0
- package/dist/types/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-2/vviinn-onboarding-card-2.d.ts +1 -0
- package/dist/types/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-3/vviinn-onboarding-card-3.d.ts +1 -0
- package/dist/types/components/vviinn-onboarding/vviinn-onboarding.d.ts +1 -0
- package/dist/types/components/vviinn-overlay/vviinn-overlay.d.ts +1 -0
- package/dist/types/components/vviinn-overlayed-modal/vviinn-overlayed-modal.d.ts +1 -0
- package/dist/types/components/vviinn-preloader/vviinn-preloader.d.ts +1 -0
- package/dist/types/components/vviinn-privacy-badge/vviinn-privacy-badge.d.ts +1 -0
- package/dist/types/components/vviinn-product-card/render-helpers.d.ts +1 -0
- package/dist/types/components/vviinn-product-card/stories/args.d.ts +1 -0
- package/dist/types/components/vviinn-product-card/stories/decorators.d.ts +1 -0
- package/dist/types/components/vviinn-product-card/stories/vviinn-product-card.stories.d.ts +1 -0
- package/dist/types/components/vviinn-product-card/vviinn-product-card.d.ts +9 -3
- package/dist/types/components/vviinn-slider/arrow.d.ts +1 -0
- package/dist/types/components/vviinn-slider/vviinn-slide/vviinn-slide.d.ts +1 -0
- package/dist/types/components/vviinn-slider/vviinn-slider.d.ts +1 -0
- package/dist/types/components/vviinn-teaser/vviinn-teaser.d.ts +1 -0
- package/dist/types/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.d.ts +1 -0
- package/dist/types/components/vviinn-vpr-button/stories/args.d.ts +1 -0
- package/dist/types/components/vviinn-vpr-button/stories/vviinn-vpr-button.stories.d.ts +1 -0
- package/dist/types/components/vviinn-vpr-button/vviinn-vpr-button.d.ts +1 -0
- package/dist/types/components/vviinn-vpr-widget/stories/args.d.ts +1 -0
- package/dist/types/components/vviinn-vpr-widget/stories/decorators.d.ts +1 -0
- package/dist/types/components/vviinn-vpr-widget/stories/vviinn-vpr-widget.stories.d.ts +1 -0
- package/dist/types/components/vviinn-vpr-widget/token-helpers.d.ts +1 -0
- package/dist/types/components/vviinn-vpr-widget/vviinn-vpr-vidget.d.ts +9 -1
- package/dist/types/components/vviinn-vps-button/stories/vviinn-vps-button.stories.d.ts +1 -0
- package/dist/types/components/vviinn-vps-button/vviinn-vps-button.d.ts +1 -0
- package/dist/types/components/vviinn-vps-widget/stories/vviinn-vps-widget.stories.d.ts +1 -0
- package/dist/types/components/vviinn-vps-widget/vviinn-vps-widget.d.ts +13 -1
- package/dist/types/components.d.ts +10 -4
- package/dist/types/cropper/Cropper.d.ts +1 -0
- package/dist/types/cropper/Handler.d.ts +1 -0
- package/dist/types/dom/index.d.ts +1 -0
- package/dist/types/error.d.ts +1 -0
- package/dist/types/file/index.d.ts +1 -0
- package/dist/types/geometry/Clip.d.ts +1 -0
- package/dist/types/geometry/Point.d.ts +1 -0
- package/dist/types/geometry/Rectangle.d.ts +1 -0
- package/dist/types/geometry/RectangleAlt.d.ts +1 -0
- package/dist/types/geometry/Sized.d.ts +1 -0
- package/dist/types/global.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/interfaces/generated.d.ts +1 -0
- package/dist/types/interfaces/recommendation.d.ts +1 -0
- package/dist/types/network/apiClient.d.ts +1 -0
- package/dist/types/network/ion/File.d.ts +1 -0
- package/dist/types/network/ion/Form.d.ts +1 -0
- package/dist/types/network/ion/Link.d.ts +1 -0
- package/dist/types/network/ion/ValueObject.d.ts +1 -0
- package/dist/types/network/request.d.ts +1 -0
- package/dist/types/network/utils.d.ts +1 -0
- package/dist/types/openApi/index.d.ts +6 -0
- package/dist/types/recommendation/events.d.ts +6 -0
- package/dist/types/recommendation/recommendation.d.ts +1 -0
- package/dist/types/searchSession/searchSession.d.ts +1 -0
- package/dist/types/sentry.d.ts +1 -0
- package/dist/types/slider/GridMode.d.ts +1 -0
- package/dist/types/store/file-processing.d.ts +1 -0
- package/dist/types/store/imageSearch.store.d.ts +1 -0
- package/dist/types/store/store.d.ts +8 -6
- package/dist/types/store/tracking.store.d.ts +4 -0
- package/dist/types/stories/image-selector.stories.d.ts +1 -0
- package/dist/types/stories/image-view.stories.d.ts +1 -0
- package/dist/types/stories/modal.stories.d.ts +1 -0
- package/dist/types/stories/onboarding.stories.d.ts +1 -0
- package/dist/types/stories/overlay.stories.d.ts +1 -0
- package/dist/types/stories/overlayedModal.stories.d.ts +1 -0
- package/dist/types/stories/privacy-badge.stories.d.ts +1 -0
- package/dist/types/stories/slider.stories.d.ts +1 -0
- package/dist/types/stories/teaser.stories.d.ts +1 -0
- package/dist/types/stories/vps-widget.stories.d.ts +1 -0
- package/dist/types/stories/vviinn-product.stories.d.ts +1 -0
- package/dist/types/tracking/event.d.ts +4 -0
- package/dist/types/tracking/filter.d.ts +3 -0
- package/dist/types/tracking/index.d.ts +9 -0
- package/dist/types/tracking/models.d.ts +13 -0
- package/dist/types/tracking/product.d.ts +7 -0
- package/dist/types/tracking/search.d.ts +3 -0
- package/dist/types/tracking/widget.d.ts +5 -0
- package/dist/types/utils/collections/collectionsUtils.d.ts +1 -0
- package/dist/types/utils/either.d.ts +1 -0
- package/dist/types/utils/enum/enumUtils.d.ts +1 -0
- package/dist/types/utils/event/Events.d.ts +1 -0
- package/dist/types/utils/number/index.d.ts +1 -0
- package/dist/types/utils/option/option.d.ts +1 -0
- package/dist/types/utils/semigroup/semigroupDiff.d.ts +1 -0
- package/dist/types/utils/token/tokenUtils.d.ts +1 -0
- package/dist/vviinn-widgets/{p-e362fa80.entry.js → p-07d8ba79.entry.js} +1 -1
- package/dist/vviinn-widgets/p-196479f9.js +1 -0
- package/dist/vviinn-widgets/{p-a5b69a48.entry.js → p-2d4cb17f.entry.js} +1 -1
- package/dist/vviinn-widgets/{p-679ea2ce.js → p-7d5af04d.js} +1 -1
- package/dist/vviinn-widgets/{p-4530ca32.entry.js → p-9c7297c8.entry.js} +1 -1
- package/{www/build/p-55491d9b.js → dist/vviinn-widgets/p-a66512b2.js} +1 -1
- package/dist/vviinn-widgets/p-ae524f97.entry.js +1 -0
- package/{www/build/p-e882fbeb.js → dist/vviinn-widgets/p-ce96f232.js} +1 -1
- package/dist/vviinn-widgets/{p-b4b46a70.js → p-dc2da207.js} +1 -1
- package/dist/vviinn-widgets/p-fce4183d.entry.js +1 -0
- package/dist/vviinn-widgets/vviinn-widgets.esm.js +1 -1
- package/package.json +11 -3
- package/www/build/{p-e362fa80.entry.js → p-07d8ba79.entry.js} +1 -1
- package/www/build/p-196479f9.js +1 -0
- package/www/build/{p-a5b69a48.entry.js → p-2d4cb17f.entry.js} +1 -1
- package/www/build/p-32bb0615.js +1 -0
- package/www/build/{p-679ea2ce.js → p-7d5af04d.js} +1 -1
- package/www/build/{p-4530ca32.entry.js → p-9c7297c8.entry.js} +1 -1
- package/{dist/vviinn-widgets/p-55491d9b.js → www/build/p-a66512b2.js} +1 -1
- package/www/build/p-ae524f97.entry.js +1 -0
- package/{dist/vviinn-widgets/p-e882fbeb.js → www/build/p-ce96f232.js} +1 -1
- package/www/build/{p-b4b46a70.js → p-dc2da207.js} +1 -1
- package/www/build/p-fce4183d.entry.js +1 -0
- package/www/build/vviinn-widgets.esm.js +1 -1
- package/www/index.html +1 -107
- package/dist/cjs/Handler-d1a8a86a.js +0 -329
- package/dist/cjs/cropper-handler.cjs.entry.js +0 -27
- 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-widget.cjs.entry.js +0 -97
- package/dist/esm/Handler-639a4cb3.js +0 -308
- package/dist/esm/cropper-handler.entry.js +0 -23
- package/dist/esm/vviinn-error.entry.js +0 -15
- package/dist/esm/vviinn-preloader.entry.js +0 -22
- package/dist/esm/vviinn-vps-widget.entry.js +0 -93
- package/dist/types/components/vviinn-vpr-widget/GridMode.d.ts +0 -1
- package/dist/vviinn-widgets/p-1c141479.entry.js +0 -1
- package/dist/vviinn-widgets/p-320844ea.entry.js +0 -1
- package/dist/vviinn-widgets/p-6239a782.entry.js +0 -1
- package/dist/vviinn-widgets/p-757849fd.entry.js +0 -1
- package/dist/vviinn-widgets/p-80f0d4e0.js +0 -1
- package/dist/vviinn-widgets/p-935b4f49.entry.js +0 -1
- package/dist/vviinn-widgets/p-b0243e84.entry.js +0 -1
- package/dist/vviinn-widgets/p-f582db5c.js +0 -1
- package/www/build/p-1c141479.entry.js +0 -1
- package/www/build/p-320844ea.entry.js +0 -1
- package/www/build/p-4379b1c2.js +0 -1
- package/www/build/p-6239a782.entry.js +0 -1
- package/www/build/p-757849fd.entry.js +0 -1
- package/www/build/p-80f0d4e0.js +0 -1
- package/www/build/p-935b4f49.entry.js +0 -1
- package/www/build/p-b0243e84.entry.js +0 -1
- package/www/build/p-f582db5c.js +0 -1
package/dist/types/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
1
2
|
import { ValueObject } from "../../../network/ion/ValueObject";
|
|
2
3
|
import { DetectedObject } from "../../../searchSession/searchSession";
|
|
3
4
|
export declare class VviinnDetectedObject {
|
|
4
5
|
detectedObject: ValueObject<DetectedObject>;
|
|
6
|
+
detectedObjectClicked: EventEmitter;
|
|
5
7
|
private getObjectPosition;
|
|
6
8
|
private selectDetectedObject;
|
|
7
9
|
private isActive;
|
|
8
10
|
position: [string, string];
|
|
9
11
|
render(): any;
|
|
10
12
|
}
|
|
13
|
+
//# sourceMappingURL=vviinn-detected-object.d.ts.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
|
+
import { ProductCardEventData } from "../../recommendation/events";
|
|
2
3
|
/**
|
|
3
4
|
* @part brand - product brand.
|
|
4
5
|
* @part currency - currency sign. Renders after price-amount.
|
|
@@ -30,15 +31,19 @@ export declare class VviinnProductCard {
|
|
|
30
31
|
salePrice: number | undefined;
|
|
31
32
|
responsive: boolean;
|
|
32
33
|
dimmedBackground: boolean;
|
|
34
|
+
/** @internal */
|
|
35
|
+
index: number;
|
|
33
36
|
imageLoaded: boolean;
|
|
34
37
|
/** Event fires ones when recommendation rendered on page */
|
|
35
|
-
recommendationLoad: EventEmitter<
|
|
38
|
+
recommendationLoad: EventEmitter<ProductCardEventData>;
|
|
36
39
|
/** Event fires ones when recommendation appears on the viewport */
|
|
37
|
-
recommendationView: EventEmitter<
|
|
40
|
+
recommendationView: EventEmitter<ProductCardEventData>;
|
|
38
41
|
/** Event fires ones when user click on deeplink */
|
|
39
|
-
recommendationClick: EventEmitter<
|
|
42
|
+
recommendationClick: EventEmitter<ProductCardEventData>;
|
|
40
43
|
productImageLoaded: EventEmitter<string>;
|
|
44
|
+
private productData;
|
|
41
45
|
private intersectionObserver;
|
|
46
|
+
connectedCallback(): void;
|
|
42
47
|
private intersectionCallback;
|
|
43
48
|
componentDidLoad(): void;
|
|
44
49
|
private getProduct;
|
|
@@ -46,3 +51,4 @@ export declare class VviinnProductCard {
|
|
|
46
51
|
private kek;
|
|
47
52
|
render(): any;
|
|
48
53
|
}
|
|
54
|
+
//# sourceMappingURL=vviinn-product-card.d.ts.map
|
|
@@ -2,6 +2,8 @@ import { ComponentInterface, EventEmitter } from "../../stencil-public-runtime";
|
|
|
2
2
|
import { CampaignName } from "../../campaign/Campaign";
|
|
3
3
|
import { CarouselMode } from "../vviinn-carousel/vviinn-carousel";
|
|
4
4
|
import { Recommendation } from "../../recommendation/recommendation";
|
|
5
|
+
import { DefaultApi } from "@vviinn/tracking-client-ts";
|
|
6
|
+
import { ProductCardEvent } from "../../recommendation/events";
|
|
5
7
|
/**
|
|
6
8
|
* @part product-card - product card itself
|
|
7
9
|
* @part title - title inside product card
|
|
@@ -50,11 +52,16 @@ export declare class VviinnVprWidget implements ComponentInterface {
|
|
|
50
52
|
recommendationsLoaded: EventEmitter;
|
|
51
53
|
private productIds;
|
|
52
54
|
private productImageLoadedSubject;
|
|
55
|
+
trackingApi: DefaultApi;
|
|
56
|
+
uiSessionId: string;
|
|
53
57
|
handleProductIdChange(): void;
|
|
54
58
|
handleCampaignTypeChange(): void;
|
|
55
59
|
handleApiPathChange(newPath: string): void;
|
|
56
|
-
|
|
60
|
+
handleImageLoading({ detail }: CustomEvent<string>): void;
|
|
61
|
+
trackRecommendationView({ detail }: ProductCardEvent): void;
|
|
62
|
+
trackRecommendationClick({ detail }: ProductCardEvent): void;
|
|
57
63
|
connectedCallback(): void;
|
|
64
|
+
disconnectedCallback(): void;
|
|
58
65
|
componentWillLoad(): Promise<void>;
|
|
59
66
|
private getRecommendations;
|
|
60
67
|
private handleError;
|
|
@@ -67,3 +74,4 @@ export declare class VviinnVprWidget implements ComponentInterface {
|
|
|
67
74
|
private renderResults;
|
|
68
75
|
private renderCarousel;
|
|
69
76
|
}
|
|
77
|
+
//# sourceMappingURL=vviinn-vpr-vidget.d.ts.map
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { FilterAction } from "@vviinn/tracking-client-ts";
|
|
2
|
+
import { ProductCardEvent } from "../../recommendation/events";
|
|
1
3
|
/**
|
|
2
4
|
* @prop --color-primary: color used for action button, slider bullets and selected detected object;
|
|
3
5
|
*
|
|
@@ -26,7 +28,7 @@ export declare class VviinnVpsWidget {
|
|
|
26
28
|
/** vviinn customer token */
|
|
27
29
|
token: string | undefined;
|
|
28
30
|
/** @internal */
|
|
29
|
-
apiPath: string
|
|
31
|
+
apiPath: string;
|
|
30
32
|
/** When true modal window with widget will be shown */
|
|
31
33
|
active: boolean;
|
|
32
34
|
/** Currency sign will shown after price */
|
|
@@ -37,13 +39,23 @@ export declare class VviinnVpsWidget {
|
|
|
37
39
|
width: number;
|
|
38
40
|
wrongImageFormat: boolean;
|
|
39
41
|
private overflow;
|
|
42
|
+
private uiSessionId;
|
|
43
|
+
private trackingApi;
|
|
44
|
+
private imageSource;
|
|
40
45
|
activeWatcher(value: boolean): void;
|
|
46
|
+
trackRecommendationView({ detail }: ProductCardEvent): void;
|
|
47
|
+
trackRecommendationClick({ detail }: ProductCardEvent): void;
|
|
48
|
+
trachSearchAreaChanges(): void;
|
|
49
|
+
trackDetectedObject(): void;
|
|
50
|
+
trackFilter({ detail }: CustomEvent<FilterAction>): void;
|
|
41
51
|
componentWillLoad(): void;
|
|
42
52
|
connectedCallback(): void;
|
|
43
53
|
private handleImageSelection;
|
|
54
|
+
private trackInitialSearch;
|
|
44
55
|
private resetState;
|
|
45
56
|
private haveErrors;
|
|
46
57
|
private resetScroll;
|
|
47
58
|
private handleModalClose;
|
|
48
59
|
render(): any;
|
|
49
60
|
}
|
|
61
|
+
//# sourceMappingURL=vviinn-vps-widget.d.ts.map
|
|
@@ -7,9 +7,11 @@
|
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
8
|
import { Handler } from "./cropper/Handler";
|
|
9
9
|
import { DetectedObject, SearchSessionFilter } from "./searchSession/searchSession";
|
|
10
|
+
import { FilterAction } from "@vviinn/tracking-client-ts";
|
|
10
11
|
import { CarouselMode } from "./components/vviinn-carousel/vviinn-carousel";
|
|
11
12
|
import { Recommendation } from "./recommendation/recommendation";
|
|
12
13
|
import { ValueObject } from "./network/ion/ValueObject";
|
|
14
|
+
import { ProductCardEventData } from "./recommendation/events";
|
|
13
15
|
import { CarouselMode as CarouselMode1 } from "./components/vviinn-carousel/vviinn-carousel";
|
|
14
16
|
import { CampaignName } from "./campaign/Campaign";
|
|
15
17
|
export namespace Components {
|
|
@@ -77,6 +79,7 @@ export namespace Components {
|
|
|
77
79
|
"image": string | undefined;
|
|
78
80
|
"imageRatio": number;
|
|
79
81
|
"imageWidth": number;
|
|
82
|
+
"index": number;
|
|
80
83
|
"locale": string | undefined;
|
|
81
84
|
"price": number | undefined;
|
|
82
85
|
"pricePrefix": string | undefined;
|
|
@@ -179,7 +182,7 @@ export namespace Components {
|
|
|
179
182
|
* When true modal window with widget will be shown
|
|
180
183
|
*/
|
|
181
184
|
"active": boolean;
|
|
182
|
-
"apiPath": string
|
|
185
|
+
"apiPath": string;
|
|
183
186
|
/**
|
|
184
187
|
* Currency sign will shown after price
|
|
185
188
|
*/
|
|
@@ -433,9 +436,11 @@ declare namespace LocalJSX {
|
|
|
433
436
|
}
|
|
434
437
|
interface ImageCropper {
|
|
435
438
|
"disabled"?: boolean;
|
|
439
|
+
"onCropperChanged"?: (event: CustomEvent<any>) => void;
|
|
436
440
|
}
|
|
437
441
|
interface SearchFilters {
|
|
438
442
|
"filter"?: SearchSessionFilter | null;
|
|
443
|
+
"onFilterSelected"?: (event: CustomEvent<FilterAction>) => void;
|
|
439
444
|
}
|
|
440
445
|
interface VviinnCarousel {
|
|
441
446
|
"imageWidth"?: number;
|
|
@@ -445,6 +450,7 @@ declare namespace LocalJSX {
|
|
|
445
450
|
}
|
|
446
451
|
interface VviinnDetectedObject {
|
|
447
452
|
"detectedObject"?: ValueObject<DetectedObject>;
|
|
453
|
+
"onDetectedObjectClicked"?: (event: CustomEvent<any>) => void;
|
|
448
454
|
}
|
|
449
455
|
interface VviinnEmptyResults {
|
|
450
456
|
"onActionClick"?: (event: CustomEvent<void>) => void;
|
|
@@ -517,15 +523,15 @@ declare namespace LocalJSX {
|
|
|
517
523
|
/**
|
|
518
524
|
* Event fires ones when user click on deeplink
|
|
519
525
|
*/
|
|
520
|
-
"onRecommendationClick"?: (event: CustomEvent<
|
|
526
|
+
"onRecommendationClick"?: (event: CustomEvent<ProductCardEventData>) => void;
|
|
521
527
|
/**
|
|
522
528
|
* Event fires ones when recommendation rendered on page
|
|
523
529
|
*/
|
|
524
|
-
"onRecommendationLoad"?: (event: CustomEvent<
|
|
530
|
+
"onRecommendationLoad"?: (event: CustomEvent<ProductCardEventData>) => void;
|
|
525
531
|
/**
|
|
526
532
|
* Event fires ones when recommendation appears on the viewport
|
|
527
533
|
*/
|
|
528
|
-
"onRecommendationView"?: (event: CustomEvent<
|
|
534
|
+
"onRecommendationView"?: (event: CustomEvent<ProductCardEventData>) => void;
|
|
529
535
|
"price"?: number | undefined;
|
|
530
536
|
"pricePrefix"?: string | undefined;
|
|
531
537
|
"productId"?: string;
|
package/dist/types/error.d.ts
CHANGED
|
@@ -5,3 +5,4 @@ export declare type BasicError<T> = {
|
|
|
5
5
|
export declare const basicErrorFromResponse: (error: Response) => BasicError<Response>;
|
|
6
6
|
export declare const invalidTokenError: BasicError<string>;
|
|
7
7
|
export declare const emptyApiPathError: BasicError<string>;
|
|
8
|
+
//# sourceMappingURL=error.d.ts.map
|
|
@@ -18,3 +18,4 @@ export declare const scaleWithSized: (s: Sized) => (r: Rectangle) => Rectangle;
|
|
|
18
18
|
export declare const divideOnSized: (s: Sized) => (r: Rectangle) => Rectangle;
|
|
19
19
|
export declare const center: (r: Rectangle) => Point;
|
|
20
20
|
export {};
|
|
21
|
+
//# sourceMappingURL=Rectangle.d.ts.map
|
package/dist/types/global.d.ts
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -2,3 +2,4 @@ import * as TE from "fp-ts/TaskEither";
|
|
|
2
2
|
import { BasicError } from "../error";
|
|
3
3
|
export declare const apiGet: <T>(path: string, data?: RequestInit) => TE.TaskEither<BasicError<string | Response>, T>;
|
|
4
4
|
export declare const apiPost: <T>(path: string, data?: RequestInit) => TE.TaskEither<BasicError<string | Response>, T>;
|
|
5
|
+
//# sourceMappingURL=apiClient.d.ts.map
|
|
@@ -41,3 +41,4 @@ export declare type Form = Valueable<FormField[]> & Link & FormType;
|
|
|
41
41
|
export declare const requestFromForm: (form: Form, data: Object) => E.Either<string, [string, RequestInit]>;
|
|
42
42
|
export declare const formRequest: <T>(form: Form, data?: Object) => (payload: RequestInit) => TE.TaskEither<BasicError<Response> | BasicError<string>, ValueObject<T>>;
|
|
43
43
|
export {};
|
|
44
|
+
//# sourceMappingURL=Form.d.ts.map
|
|
@@ -12,3 +12,4 @@ export declare type Link = {
|
|
|
12
12
|
};
|
|
13
13
|
export declare const getLink: (item: ValueObject<unknown>, path: string) => O.Option<Link>;
|
|
14
14
|
export declare const linkRequest: <T>(link: Link) => (data: RequestInit) => TE.TaskEither<import("../../error").BasicError<Response> | import("../../error").BasicError<string>, ValueObject<T>>;
|
|
15
|
+
//# sourceMappingURL=Link.d.ts.map
|
|
@@ -3,3 +3,4 @@ import { RequestWithPath } from "./utils";
|
|
|
3
3
|
import { BasicError } from "../error";
|
|
4
4
|
export declare const request: <I>(url: string | Request, request?: RequestInit) => TE.TaskEither<Response, I>;
|
|
5
5
|
export declare const makeRequest: <T>(path: string, init: RequestInit) => ([apiPath, options,]: RequestWithPath) => TE.TaskEither<BasicError<Response>, T>;
|
|
6
|
+
//# sourceMappingURL=request.d.ts.map
|
|
@@ -24,3 +24,4 @@ export declare const createBasicRequest: (method: RequestMethod) => RequestInit;
|
|
|
24
24
|
export declare const createRequestFromMethod: (method: RequestMethod) => E.Either<any, RequestInit>;
|
|
25
25
|
export declare const createInitGetRequest: E.Either<any, RequestInit>;
|
|
26
26
|
export declare const createInitPostRequest: E.Either<any, RequestInit>;
|
|
27
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AuthMethodsConfiguration, DefaultApi } from "@vviinn/tracking-client-ts";
|
|
2
|
+
export declare const getTrackingServerByApiPath: (apiPath: string) => import("@vviinn/tracking-client-ts").ServerConfiguration<{}>;
|
|
3
|
+
export declare const isProductionPath: (apiPath: string) => boolean;
|
|
4
|
+
export declare const createBearerAuth: (token: string | PromiseLike<string>) => AuthMethodsConfiguration;
|
|
5
|
+
export declare const createTrackingApi: (apiPath: string, token: string | PromiseLike<string>) => DefaultApi;
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -38,3 +38,4 @@ export declare const searchSessionClient: (initialData: RequestInit) => TE.TaskE
|
|
|
38
38
|
export declare type ObjectsDetectedEvent = CustomEvent<ValueObject<DetectedObject>[]>;
|
|
39
39
|
export declare const makeRequestFromFile: (token: string, file: File) => E.Either<BasicError<string>, RequestInit>;
|
|
40
40
|
export {};
|
|
41
|
+
//# sourceMappingURL=searchSession.d.ts.map
|
package/dist/types/sentry.d.ts
CHANGED
|
@@ -2,3 +2,4 @@ import * as E from "fp-ts/lib/Either";
|
|
|
2
2
|
import * as T from "fp-ts/lib/Task";
|
|
3
3
|
export declare const checkFileWithExtention: (file: File) => E.Either<import("../error").BasicError<string>, File>;
|
|
4
4
|
export declare const resizeFileTo: (size: number) => (file: File) => T.Task<File>;
|
|
5
|
+
//# sourceMappingURL=file-processing.d.ts.map
|
|
@@ -36,3 +36,4 @@ export declare const uploadFile: (file: File) => TE.TaskEither<BasicError<string
|
|
|
36
36
|
export declare const imageSearchState: ImageSearchStore;
|
|
37
37
|
export declare const processSelectedFile: (file: File) => Promise<E.Either<BasicError<string | Response>, SearchSession>>;
|
|
38
38
|
export {};
|
|
39
|
+
//# sourceMappingURL=imageSearch.store.d.ts.map
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
export declare const state: {
|
|
2
|
+
trackingEnabled: boolean;
|
|
2
3
|
fallbackStyles: string;
|
|
3
4
|
pricePrefix: any;
|
|
4
5
|
currencySign: any;
|
|
5
6
|
apiPath: any;
|
|
7
|
+
token: any;
|
|
6
8
|
locale: string;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export declare const dispose: () => void;
|
|
10
|
-
export declare const state: {
|
|
9
|
+
}, onChange: import("@stencil/store/dist/types").OnChangeHandler<{
|
|
10
|
+
trackingEnabled: boolean;
|
|
11
11
|
fallbackStyles: string;
|
|
12
12
|
pricePrefix: any;
|
|
13
13
|
currencySign: any;
|
|
14
14
|
apiPath: any;
|
|
15
|
+
token: any;
|
|
15
16
|
locale: string;
|
|
16
|
-
}
|
|
17
|
+
}>;
|
|
18
|
+
//# sourceMappingURL=store.d.ts.map
|