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.
Files changed (224) hide show
  1. package/dist/cjs/{app-globals-6b5da080.js → app-globals-d999d944.js} +1 -1
  2. package/dist/cjs/{highlight-box_22.cjs.entry.js → cropper-handler_27.cjs.entry.js} +486 -92
  3. package/dist/cjs/{customized-slots-8bc78ad4.js → customized-slots-90e8e849.js} +1 -1
  4. package/dist/cjs/{index-5b9a60ac.js → index-53400160.js} +1 -1
  5. package/dist/cjs/{imageSearch.store-042e9f45.js → index-c0d08aca.js} +15288 -11038
  6. package/dist/cjs/{index-553c2b4f.js → index-e8cf5dc5.js} +1 -1
  7. package/dist/cjs/loader.cjs.js +3 -3
  8. package/dist/cjs/{vviinn-carousel_3.cjs.entry.js → vviinn-carousel_2.cjs.entry.js} +50 -206
  9. package/dist/cjs/vviinn-recommendations-sidebar.cjs.entry.js +2 -2
  10. package/dist/cjs/vviinn-vpr-button.cjs.entry.js +2 -2
  11. package/dist/cjs/vviinn-vps-button.cjs.entry.js +3 -3
  12. package/dist/cjs/vviinn-widgets.cjs.js +3 -3
  13. package/dist/collection/components/image-search/image-view/image-cropper/image-cropper.js +27 -7
  14. package/dist/collection/components/image-search/search-filters/search-filters.js +24 -1
  15. package/dist/collection/components/vviinn-carousel/vviinn-carousel.js +3 -3
  16. package/dist/collection/components/vviinn-example-images/vviinn-example-images.js +4 -4
  17. package/dist/collection/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.js +18 -1
  18. package/dist/collection/components/vviinn-product-card/vviinn-product-card.js +57 -12
  19. package/dist/collection/components/vviinn-vpr-widget/stories/args.js +8 -8
  20. package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-vidget.js +46 -10
  21. package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-widget.css +5 -0
  22. package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js +106 -10
  23. package/dist/collection/network/utils.js +1 -1
  24. package/dist/collection/openApi/index.js +27 -0
  25. package/dist/collection/{components/vviinn-vpr-widget/GridMode.js → recommendation/events.js} +0 -0
  26. package/dist/collection/store/store.js +7 -9
  27. package/dist/collection/store/tracking.store.js +3 -0
  28. package/dist/collection/tracking/event.js +3 -0
  29. package/dist/collection/tracking/filter.js +5 -0
  30. package/dist/collection/tracking/index.js +13 -0
  31. package/dist/collection/tracking/models.js +6 -0
  32. package/dist/collection/tracking/product.js +18 -0
  33. package/dist/collection/tracking/search.js +5 -0
  34. package/dist/collection/tracking/widget.js +10 -0
  35. package/dist/esm/{app-globals-90d99f95.js → app-globals-f91c6f94.js} +1 -1
  36. package/dist/esm/{highlight-box_22.entry.js → cropper-handler_27.entry.js} +417 -28
  37. package/dist/esm/{customized-slots-65b2467d.js → customized-slots-7be7f3b8.js} +1 -1
  38. package/dist/esm/{index-ac2e3b9d.js → index-00c7b7c2.js} +2 -2
  39. package/dist/esm/{imageSearch.store-f35e14f8.js → index-840ec915.js} +15232 -10993
  40. package/dist/esm/{index-d7c7df1c.js → index-d7147986.js} +1 -1
  41. package/dist/esm/loader.js +3 -3
  42. package/dist/esm/{vviinn-carousel_3.entry.js → vviinn-carousel_2.entry.js} +42 -197
  43. package/dist/esm/vviinn-recommendations-sidebar.entry.js +2 -2
  44. package/dist/esm/vviinn-vpr-button.entry.js +2 -2
  45. package/dist/esm/vviinn-vps-button.entry.js +3 -3
  46. package/dist/esm/vviinn-widgets.js +3 -3
  47. package/dist/types/Image/error.d.ts +1 -0
  48. package/dist/types/Image/form.d.ts +1 -0
  49. package/dist/types/Image/fromFile.d.ts +1 -0
  50. package/dist/types/Image/imageToB64.d.ts +1 -0
  51. package/dist/types/Image/index.d.ts +1 -0
  52. package/dist/types/Image/renderPromise.d.ts +1 -0
  53. package/dist/types/Image/resizeImage.d.ts +1 -0
  54. package/dist/types/Image/sizing.d.ts +1 -0
  55. package/dist/types/Image/toFile.d.ts +1 -0
  56. package/dist/types/analytics/GAnalytics.d.ts +1 -0
  57. package/dist/types/analytics/GeneralAnalytics.d.ts +1 -0
  58. package/dist/types/analytics/GtagAnalytics.d.ts +1 -0
  59. package/dist/types/analytics/ProductAnalytics.d.ts +1 -0
  60. package/dist/types/campaign/Campaign.d.ts +1 -0
  61. package/dist/types/campaign/CampaignService.d.ts +1 -0
  62. package/dist/types/campaign/VCSCampaign.d.ts +1 -0
  63. package/dist/types/campaign/VCSCampaignResponse.d.ts +1 -0
  64. package/dist/types/campaign/VCSCampaignService.d.ts +1 -0
  65. package/dist/types/campaign/VPRCampaignResponse.d.ts +1 -0
  66. package/dist/types/campaign/VPRCampaignService.d.ts +1 -0
  67. package/dist/types/components/customized-slots.d.ts +1 -0
  68. package/dist/types/components/image-search/image-view/highlight-box/highlight-box.d.ts +1 -0
  69. package/dist/types/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.d.ts +1 -0
  70. package/dist/types/components/image-search/image-view/image-cropper/image-cropper.d.ts +4 -0
  71. package/dist/types/components/image-search/search-filters/search-filters.d.ts +4 -0
  72. package/dist/types/components/vviinn-carousel/vviinn-carousel.d.ts +1 -0
  73. package/dist/types/components/vviinn-error/vviinn-empty-results/vviinn-empty-results.d.ts +1 -0
  74. package/dist/types/components/vviinn-error/vviinn-error.d.ts +1 -0
  75. package/dist/types/components/vviinn-error/vviinn-server-error/vviinn-server-error.d.ts +1 -0
  76. package/dist/types/components/vviinn-error/vviinn-wrong-format/vviinn-wrong-format.d.ts +1 -0
  77. package/dist/types/components/vviinn-example-images/vviinn-example-image/vviinn-example-image.d.ts +1 -0
  78. package/dist/types/components/vviinn-example-images/vviinn-example-images.d.ts +1 -0
  79. package/dist/types/components/vviinn-icons/index.d.ts +1 -0
  80. package/dist/types/components/vviinn-image-selector/vviinn-image-selector.d.ts +1 -0
  81. package/dist/types/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.d.ts +3 -0
  82. package/dist/types/components/vviinn-image-view/vviinn-image-view.d.ts +1 -0
  83. package/dist/types/components/vviinn-modal/vviinn-modal.d.ts +1 -0
  84. package/dist/types/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-1/vviinn-onboarding-card-1.d.ts +1 -0
  85. package/dist/types/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-2/vviinn-onboarding-card-2.d.ts +1 -0
  86. package/dist/types/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-3/vviinn-onboarding-card-3.d.ts +1 -0
  87. package/dist/types/components/vviinn-onboarding/vviinn-onboarding.d.ts +1 -0
  88. package/dist/types/components/vviinn-overlay/vviinn-overlay.d.ts +1 -0
  89. package/dist/types/components/vviinn-overlayed-modal/vviinn-overlayed-modal.d.ts +1 -0
  90. package/dist/types/components/vviinn-preloader/vviinn-preloader.d.ts +1 -0
  91. package/dist/types/components/vviinn-privacy-badge/vviinn-privacy-badge.d.ts +1 -0
  92. package/dist/types/components/vviinn-product-card/render-helpers.d.ts +1 -0
  93. package/dist/types/components/vviinn-product-card/stories/args.d.ts +1 -0
  94. package/dist/types/components/vviinn-product-card/stories/decorators.d.ts +1 -0
  95. package/dist/types/components/vviinn-product-card/stories/vviinn-product-card.stories.d.ts +1 -0
  96. package/dist/types/components/vviinn-product-card/vviinn-product-card.d.ts +9 -3
  97. package/dist/types/components/vviinn-slider/arrow.d.ts +1 -0
  98. package/dist/types/components/vviinn-slider/vviinn-slide/vviinn-slide.d.ts +1 -0
  99. package/dist/types/components/vviinn-slider/vviinn-slider.d.ts +1 -0
  100. package/dist/types/components/vviinn-teaser/vviinn-teaser.d.ts +1 -0
  101. package/dist/types/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.d.ts +1 -0
  102. package/dist/types/components/vviinn-vpr-button/stories/args.d.ts +1 -0
  103. package/dist/types/components/vviinn-vpr-button/stories/vviinn-vpr-button.stories.d.ts +1 -0
  104. package/dist/types/components/vviinn-vpr-button/vviinn-vpr-button.d.ts +1 -0
  105. package/dist/types/components/vviinn-vpr-widget/stories/args.d.ts +1 -0
  106. package/dist/types/components/vviinn-vpr-widget/stories/decorators.d.ts +1 -0
  107. package/dist/types/components/vviinn-vpr-widget/stories/vviinn-vpr-widget.stories.d.ts +1 -0
  108. package/dist/types/components/vviinn-vpr-widget/token-helpers.d.ts +1 -0
  109. package/dist/types/components/vviinn-vpr-widget/vviinn-vpr-vidget.d.ts +9 -1
  110. package/dist/types/components/vviinn-vps-button/stories/vviinn-vps-button.stories.d.ts +1 -0
  111. package/dist/types/components/vviinn-vps-button/vviinn-vps-button.d.ts +1 -0
  112. package/dist/types/components/vviinn-vps-widget/stories/vviinn-vps-widget.stories.d.ts +1 -0
  113. package/dist/types/components/vviinn-vps-widget/vviinn-vps-widget.d.ts +13 -1
  114. package/dist/types/components.d.ts +10 -4
  115. package/dist/types/cropper/Cropper.d.ts +1 -0
  116. package/dist/types/cropper/Handler.d.ts +1 -0
  117. package/dist/types/dom/index.d.ts +1 -0
  118. package/dist/types/error.d.ts +1 -0
  119. package/dist/types/file/index.d.ts +1 -0
  120. package/dist/types/geometry/Clip.d.ts +1 -0
  121. package/dist/types/geometry/Point.d.ts +1 -0
  122. package/dist/types/geometry/Rectangle.d.ts +1 -0
  123. package/dist/types/geometry/RectangleAlt.d.ts +1 -0
  124. package/dist/types/geometry/Sized.d.ts +1 -0
  125. package/dist/types/global.d.ts +1 -0
  126. package/dist/types/index.d.ts +1 -0
  127. package/dist/types/interfaces/generated.d.ts +1 -0
  128. package/dist/types/interfaces/recommendation.d.ts +1 -0
  129. package/dist/types/network/apiClient.d.ts +1 -0
  130. package/dist/types/network/ion/File.d.ts +1 -0
  131. package/dist/types/network/ion/Form.d.ts +1 -0
  132. package/dist/types/network/ion/Link.d.ts +1 -0
  133. package/dist/types/network/ion/ValueObject.d.ts +1 -0
  134. package/dist/types/network/request.d.ts +1 -0
  135. package/dist/types/network/utils.d.ts +1 -0
  136. package/dist/types/openApi/index.d.ts +6 -0
  137. package/dist/types/recommendation/events.d.ts +6 -0
  138. package/dist/types/recommendation/recommendation.d.ts +1 -0
  139. package/dist/types/searchSession/searchSession.d.ts +1 -0
  140. package/dist/types/sentry.d.ts +1 -0
  141. package/dist/types/slider/GridMode.d.ts +1 -0
  142. package/dist/types/store/file-processing.d.ts +1 -0
  143. package/dist/types/store/imageSearch.store.d.ts +1 -0
  144. package/dist/types/store/store.d.ts +8 -6
  145. package/dist/types/store/tracking.store.d.ts +4 -0
  146. package/dist/types/stories/image-selector.stories.d.ts +1 -0
  147. package/dist/types/stories/image-view.stories.d.ts +1 -0
  148. package/dist/types/stories/modal.stories.d.ts +1 -0
  149. package/dist/types/stories/onboarding.stories.d.ts +1 -0
  150. package/dist/types/stories/overlay.stories.d.ts +1 -0
  151. package/dist/types/stories/overlayedModal.stories.d.ts +1 -0
  152. package/dist/types/stories/privacy-badge.stories.d.ts +1 -0
  153. package/dist/types/stories/slider.stories.d.ts +1 -0
  154. package/dist/types/stories/teaser.stories.d.ts +1 -0
  155. package/dist/types/stories/vps-widget.stories.d.ts +1 -0
  156. package/dist/types/stories/vviinn-product.stories.d.ts +1 -0
  157. package/dist/types/tracking/event.d.ts +4 -0
  158. package/dist/types/tracking/filter.d.ts +3 -0
  159. package/dist/types/tracking/index.d.ts +9 -0
  160. package/dist/types/tracking/models.d.ts +13 -0
  161. package/dist/types/tracking/product.d.ts +7 -0
  162. package/dist/types/tracking/search.d.ts +3 -0
  163. package/dist/types/tracking/widget.d.ts +5 -0
  164. package/dist/types/utils/collections/collectionsUtils.d.ts +1 -0
  165. package/dist/types/utils/either.d.ts +1 -0
  166. package/dist/types/utils/enum/enumUtils.d.ts +1 -0
  167. package/dist/types/utils/event/Events.d.ts +1 -0
  168. package/dist/types/utils/number/index.d.ts +1 -0
  169. package/dist/types/utils/option/option.d.ts +1 -0
  170. package/dist/types/utils/semigroup/semigroupDiff.d.ts +1 -0
  171. package/dist/types/utils/token/tokenUtils.d.ts +1 -0
  172. package/dist/vviinn-widgets/{p-e362fa80.entry.js → p-07d8ba79.entry.js} +1 -1
  173. package/dist/vviinn-widgets/p-196479f9.js +1 -0
  174. package/dist/vviinn-widgets/{p-a5b69a48.entry.js → p-2d4cb17f.entry.js} +1 -1
  175. package/dist/vviinn-widgets/{p-679ea2ce.js → p-7d5af04d.js} +1 -1
  176. package/dist/vviinn-widgets/{p-4530ca32.entry.js → p-9c7297c8.entry.js} +1 -1
  177. package/{www/build/p-55491d9b.js → dist/vviinn-widgets/p-a66512b2.js} +1 -1
  178. package/dist/vviinn-widgets/p-ae524f97.entry.js +1 -0
  179. package/{www/build/p-e882fbeb.js → dist/vviinn-widgets/p-ce96f232.js} +1 -1
  180. package/dist/vviinn-widgets/{p-b4b46a70.js → p-dc2da207.js} +1 -1
  181. package/dist/vviinn-widgets/p-fce4183d.entry.js +1 -0
  182. package/dist/vviinn-widgets/vviinn-widgets.esm.js +1 -1
  183. package/package.json +11 -3
  184. package/www/build/{p-e362fa80.entry.js → p-07d8ba79.entry.js} +1 -1
  185. package/www/build/p-196479f9.js +1 -0
  186. package/www/build/{p-a5b69a48.entry.js → p-2d4cb17f.entry.js} +1 -1
  187. package/www/build/p-32bb0615.js +1 -0
  188. package/www/build/{p-679ea2ce.js → p-7d5af04d.js} +1 -1
  189. package/www/build/{p-4530ca32.entry.js → p-9c7297c8.entry.js} +1 -1
  190. package/{dist/vviinn-widgets/p-55491d9b.js → www/build/p-a66512b2.js} +1 -1
  191. package/www/build/p-ae524f97.entry.js +1 -0
  192. package/{dist/vviinn-widgets/p-e882fbeb.js → www/build/p-ce96f232.js} +1 -1
  193. package/www/build/{p-b4b46a70.js → p-dc2da207.js} +1 -1
  194. package/www/build/p-fce4183d.entry.js +1 -0
  195. package/www/build/vviinn-widgets.esm.js +1 -1
  196. package/www/index.html +1 -107
  197. package/dist/cjs/Handler-d1a8a86a.js +0 -329
  198. package/dist/cjs/cropper-handler.cjs.entry.js +0 -27
  199. package/dist/cjs/vviinn-error.cjs.entry.js +0 -19
  200. package/dist/cjs/vviinn-preloader.cjs.entry.js +0 -26
  201. package/dist/cjs/vviinn-vps-widget.cjs.entry.js +0 -97
  202. package/dist/esm/Handler-639a4cb3.js +0 -308
  203. package/dist/esm/cropper-handler.entry.js +0 -23
  204. package/dist/esm/vviinn-error.entry.js +0 -15
  205. package/dist/esm/vviinn-preloader.entry.js +0 -22
  206. package/dist/esm/vviinn-vps-widget.entry.js +0 -93
  207. package/dist/types/components/vviinn-vpr-widget/GridMode.d.ts +0 -1
  208. package/dist/vviinn-widgets/p-1c141479.entry.js +0 -1
  209. package/dist/vviinn-widgets/p-320844ea.entry.js +0 -1
  210. package/dist/vviinn-widgets/p-6239a782.entry.js +0 -1
  211. package/dist/vviinn-widgets/p-757849fd.entry.js +0 -1
  212. package/dist/vviinn-widgets/p-80f0d4e0.js +0 -1
  213. package/dist/vviinn-widgets/p-935b4f49.entry.js +0 -1
  214. package/dist/vviinn-widgets/p-b0243e84.entry.js +0 -1
  215. package/dist/vviinn-widgets/p-f582db5c.js +0 -1
  216. package/www/build/p-1c141479.entry.js +0 -1
  217. package/www/build/p-320844ea.entry.js +0 -1
  218. package/www/build/p-4379b1c2.js +0 -1
  219. package/www/build/p-6239a782.entry.js +0 -1
  220. package/www/build/p-757849fd.entry.js +0 -1
  221. package/www/build/p-80f0d4e0.js +0 -1
  222. package/www/build/p-935b4f49.entry.js +0 -1
  223. package/www/build/p-b0243e84.entry.js +0 -1
  224. package/www/build/p-f582db5c.js +0 -1
@@ -3,3 +3,4 @@ export declare class VviinnServerError {
3
3
  actionClick: EventEmitter<void>;
4
4
  render(): any;
5
5
  }
6
+ //# sourceMappingURL=vviinn-server-error.d.ts.map
@@ -3,3 +3,4 @@ export declare class VviinnWrongFormat {
3
3
  actionClick: EventEmitter<void>;
4
4
  render(): any;
5
5
  }
6
+ //# sourceMappingURL=vviinn-wrong-format.d.ts.map
@@ -10,3 +10,4 @@ export declare class VviinnExampleImage {
10
10
  private showPreloader;
11
11
  render(): any;
12
12
  }
13
+ //# sourceMappingURL=vviinn-example-image.d.ts.map
@@ -8,3 +8,4 @@ export declare class VviinnExampleImages {
8
8
  componentWillLoad(): void;
9
9
  render(): any;
10
10
  }
11
+ //# sourceMappingURL=vviinn-example-images.d.ts.map
@@ -8,3 +8,4 @@ export declare const LoaderIcon: () => any;
8
8
  export declare const ChevronIcon: () => any;
9
9
  export declare const VisualSearchIcon: () => any;
10
10
  export declare const CrossIcon: () => any;
11
+ //# sourceMappingURL=index.d.ts.map
@@ -11,3 +11,4 @@ export declare class VviinnImageSelector {
11
11
  private isLoading;
12
12
  render(): any;
13
13
  }
14
+ //# sourceMappingURL=vviinn-image-selector.d.ts.map
@@ -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
@@ -5,3 +5,4 @@ export declare class VviinnImageView {
5
5
  private renderCropper;
6
6
  render(): any;
7
7
  }
8
+ //# sourceMappingURL=vviinn-image-view.d.ts.map
@@ -10,3 +10,4 @@ export declare class VviinnModal {
10
10
  private handleAnimationEnd;
11
11
  render(): any;
12
12
  }
13
+ //# sourceMappingURL=vviinn-modal.d.ts.map
@@ -3,3 +3,4 @@ export declare class VviinnOnboardingCard1 {
3
3
  componentWillLoad(): void;
4
4
  render(): any;
5
5
  }
6
+ //# sourceMappingURL=vviinn-onboarding-card-1.d.ts.map
@@ -3,3 +3,4 @@ export declare class VviinnOnboardingCard2 {
3
3
  componentWillLoad(): void;
4
4
  render(): any;
5
5
  }
6
+ //# sourceMappingURL=vviinn-onboarding-card-2.d.ts.map
@@ -3,3 +3,4 @@ export declare class VviinnOnboardingCard3 {
3
3
  componentWillLoad(): void;
4
4
  render(): any;
5
5
  }
6
+ //# sourceMappingURL=vviinn-onboarding-card-3.d.ts.map
@@ -3,3 +3,4 @@ export declare class VviinnOnboarding {
3
3
  componentWillLoad(): void;
4
4
  render(): any;
5
5
  }
6
+ //# sourceMappingURL=vviinn-onboarding.d.ts.map
@@ -1,3 +1,4 @@
1
1
  export declare class VviinnOverlay {
2
2
  render(): any;
3
3
  }
4
+ //# sourceMappingURL=vviinn-overlay.d.ts.map
@@ -5,3 +5,4 @@ export declare class VviinnOverlayedModal {
5
5
  modalClosed: EventEmitter<void>;
6
6
  render(): any;
7
7
  }
8
+ //# sourceMappingURL=vviinn-overlayed-modal.d.ts.map
@@ -2,3 +2,4 @@ export declare class VviinnPreloader {
2
2
  private isActive;
3
3
  render(): any;
4
4
  }
5
+ //# sourceMappingURL=vviinn-preloader.d.ts.map
@@ -3,3 +3,4 @@ export declare class VviinnPrivacyBadge {
3
3
  componentWillLoad(): void;
4
4
  render(): any;
5
5
  }
6
+ //# sourceMappingURL=vviinn-privacy-badge.d.ts.map
@@ -23,3 +23,4 @@ export declare type ImageProps = {
23
23
  export declare const Image: (props: ImageProps, onLoadEnd?: () => any) => any;
24
24
  export declare const ResponsiveImage: (props: ImageProps, onLoadEnd?: () => any) => any;
25
25
  export {};
26
+ //# sourceMappingURL=render-helpers.d.ts.map
@@ -71,3 +71,4 @@ export declare const argTypes: {
71
71
  };
72
72
  };
73
73
  };
74
+ //# sourceMappingURL=args.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare const productDecorator: (story: () => any) => string;
2
+ //# sourceMappingURL=decorators.d.ts.map
@@ -78,3 +78,4 @@ declare const _default: {
78
78
  };
79
79
  export default _default;
80
80
  export declare const Default: any;
81
+ //# sourceMappingURL=vviinn-product-card.stories.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<string>;
38
+ recommendationLoad: EventEmitter<ProductCardEventData>;
36
39
  /** Event fires ones when recommendation appears on the viewport */
37
- recommendationView: EventEmitter<string>;
40
+ recommendationView: EventEmitter<ProductCardEventData>;
38
41
  /** Event fires ones when user click on deeplink */
39
- recommendationClick: EventEmitter<string>;
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
@@ -9,3 +9,4 @@ declare type ArrowProp = {
9
9
  };
10
10
  export declare const Arrow: FunctionalComponent<ArrowProp>;
11
11
  export {};
12
+ //# sourceMappingURL=arrow.d.ts.map
@@ -1,3 +1,4 @@
1
1
  export declare class VviinnSlide {
2
2
  render(): any;
3
3
  }
4
+ //# sourceMappingURL=vviinn-slide.d.ts.map
@@ -21,3 +21,4 @@ export declare class VviinnSlider {
21
21
  private handleTouchEnd;
22
22
  render(): any;
23
23
  }
24
+ //# sourceMappingURL=vviinn-slider.d.ts.map
@@ -3,3 +3,4 @@ export declare class VviinnTeaser {
3
3
  componentWillLoad(): void;
4
4
  render(): any;
5
5
  }
6
+ //# sourceMappingURL=vviinn-teaser.d.ts.map
@@ -23,3 +23,4 @@ export declare class RecommendationsSidebar {
23
23
  private handleAnimationEnd;
24
24
  }
25
25
  export {};
26
+ //# sourceMappingURL=recommendations-sidebar.d.ts.map
@@ -205,3 +205,4 @@ export declare const argTypes: {
205
205
  name: string;
206
206
  };
207
207
  };
208
+ //# sourceMappingURL=args.d.ts.map
@@ -212,3 +212,4 @@ declare const _default: {
212
212
  };
213
213
  export default _default;
214
214
  export declare const Default: any;
215
+ //# sourceMappingURL=vviinn-vpr-button.stories.d.ts.map
@@ -15,3 +15,4 @@ export declare class VviinnVprButton {
15
15
  handleClick(): void;
16
16
  disconnectedCallback(): void;
17
17
  }
18
+ //# sourceMappingURL=vviinn-vpr-button.d.ts.map
@@ -196,3 +196,4 @@ export declare const continuityLayoutArgs: {
196
196
  required: boolean;
197
197
  };
198
198
  };
199
+ //# sourceMappingURL=args.d.ts.map
@@ -1,2 +1,3 @@
1
1
  export declare const gridDecorator: (story: () => any) => string;
2
2
  export declare const continuityDecorator: (story: () => any) => string;
3
+ //# sourceMappingURL=decorators.d.ts.map
@@ -139,3 +139,4 @@ declare const _default: {
139
139
  export default _default;
140
140
  export declare const Grid: any;
141
141
  export declare const Continuity: any;
142
+ //# sourceMappingURL=vviinn-vpr-widget.stories.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare const createBearAuthedHeader: (x: string) => RequestInit;
2
+ //# sourceMappingURL=token-helpers.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
- lol({ detail }: CustomEvent<string>): void;
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
@@ -10,3 +10,4 @@ declare const _default: {
10
10
  };
11
11
  export default _default;
12
12
  export declare const Default: any;
13
+ //# sourceMappingURL=vviinn-vps-button.stories.d.ts.map
@@ -48,3 +48,4 @@ export declare class VviinnVpsButton {
48
48
  private handleClick;
49
49
  render(): any;
50
50
  }
51
+ //# sourceMappingURL=vviinn-vps-button.d.ts.map
@@ -8,3 +8,4 @@ declare const _default: {
8
8
  };
9
9
  export default _default;
10
10
  export declare const Default: any;
11
+ //# sourceMappingURL=vviinn-vps-widget.stories.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 | undefined;
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 | undefined;
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<string>) => void;
526
+ "onRecommendationClick"?: (event: CustomEvent<ProductCardEventData>) => void;
521
527
  /**
522
528
  * Event fires ones when recommendation rendered on page
523
529
  */
524
- "onRecommendationLoad"?: (event: CustomEvent<string>) => void;
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<string>) => void;
534
+ "onRecommendationView"?: (event: CustomEvent<ProductCardEventData>) => void;
529
535
  "price"?: number | undefined;
530
536
  "pricePrefix"?: string | undefined;
531
537
  "productId"?: string;
@@ -1,2 +1,3 @@
1
1
  export interface Cropper {
2
2
  }
3
+ //# sourceMappingURL=Cropper.d.ts.map
@@ -16,3 +16,4 @@ export interface Handler {
16
16
  readonly direction: HandlerDirection;
17
17
  }
18
18
  export declare const fromRectangle: (r: Rectangle) => Handler[];
19
+ //# sourceMappingURL=Handler.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare const findTarget: (ev: any) => any;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -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
@@ -1,2 +1,3 @@
1
1
  import { BasicError } from "../error";
2
2
  export declare const fileDoesntExistError: BasicError<string>;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,4 @@
1
1
  import { Rectangle } from "./Rectangle";
2
2
  import { Sized } from "./Sized";
3
3
  export declare const getClipValue: (shape: Rectangle, target: Sized) => string;
4
+ //# sourceMappingURL=Clip.d.ts.map
@@ -19,3 +19,4 @@ export declare const pointProductSemigroup: import("fp-ts/Semigroup").Semigroup<
19
19
  readonly x: number;
20
20
  readonly y: number;
21
21
  }>;
22
+ //# sourceMappingURL=Point.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
@@ -4,3 +4,4 @@ export interface RectangleAlt {
4
4
  readonly width: number;
5
5
  readonly height: number;
6
6
  }
7
+ //# sourceMappingURL=RectangleAlt.d.ts.map
@@ -5,3 +5,4 @@ export declare type Sized = {
5
5
  };
6
6
  export declare const sizedDivSemigroup: import("fp-ts/Semigroup").Semigroup<Sized>;
7
7
  export declare const ordSized: Ord.Ord<Sized>;
8
+ //# sourceMappingURL=Sized.d.ts.map
@@ -1 +1,2 @@
1
1
  export default function (): void;
2
+ //# sourceMappingURL=global.d.ts.map
@@ -1 +1,2 @@
1
1
  export * from './components';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -923,3 +923,4 @@ export interface operations {
923
923
  }
924
924
  export interface external {
925
925
  }
926
+ //# sourceMappingURL=generated.d.ts.map
@@ -3,3 +3,4 @@ export interface Interfaces {
3
3
  VisualProductSearch: components['schemas']['visual-product-search-object'];
4
4
  VisualProductRecommendations: components['schemas']['visual-product-recommendations'];
5
5
  }
6
+ //# sourceMappingURL=recommendation.d.ts.map
@@ -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
@@ -7,3 +7,4 @@ export declare type IonFile = Valueable<string> & IonFileData;
7
7
  export declare const fileToB64: (f: File) => Promise<string>;
8
8
  export declare const fromFile: (f: File) => Promise<IonFile>;
9
9
  export {};
10
+ //# sourceMappingURL=File.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
@@ -25,3 +25,4 @@ declare type Linked = {
25
25
  export declare type ValueObject<T> = Valueable<T> & Partial<MemberObject> & Partial<Linked>;
26
26
  export declare const foldValueObject: <T>(i: ValueObject<T>) => T;
27
27
  export {};
28
+ //# sourceMappingURL=ValueObject.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
@@ -0,0 +1,6 @@
1
+ export declare type ProductCardEventData = {
2
+ product: string;
3
+ rank: number;
4
+ };
5
+ export declare type ProductCardEvent = CustomEvent<ProductCardEventData>;
6
+ //# sourceMappingURL=events.d.ts.map
@@ -1,2 +1,3 @@
1
1
  import { components } from "../interfaces/generated";
2
2
  export declare type Recommendation = components["schemas"]["visual-product-search-object"];
3
+ //# sourceMappingURL=recommendation.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
@@ -1,2 +1,3 @@
1
1
  import { Event } from "@sentry/browser";
2
2
  export declare const filterInternalExeptions: (event: Event) => Event;
3
+ //# sourceMappingURL=sentry.d.ts.map
@@ -1 +1,2 @@
1
1
  export declare type GridMode = "auto" | "grid" | "manual";
2
+ //# sourceMappingURL=GridMode.d.ts.map
@@ -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 _default: {
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
- export default _default;
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
@@ -0,0 +1,4 @@
1
+ export declare const trackingStore: {
2
+ trackingEnabled: boolean;
3
+ };
4
+ //# sourceMappingURL=tracking.store.d.ts.map
@@ -4,3 +4,4 @@ declare const _default: {
4
4
  };
5
5
  export default _default;
6
6
  export declare const Default: any;
7
+ //# sourceMappingURL=image-selector.stories.d.ts.map
@@ -4,3 +4,4 @@ declare const _default: {
4
4
  };
5
5
  export default _default;
6
6
  export declare const Default: any;
7
+ //# sourceMappingURL=image-view.stories.d.ts.map