vviinn-widgets 2.5.0 → 2.5.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 (330) hide show
  1. package/dist/cjs/Handler-176539c8.js +331 -0
  2. package/dist/{vviinn-widgets/app-globals-4fe0376b.js → cjs/app-globals-d15b4c2c.js} +15 -925
  3. package/{www/build/cropper-handler.entry.js → dist/cjs/cropper-handler.cjs.entry.js} +11 -7
  4. package/dist/{vviinn-widgets/customized-slots-5dbf778c.js → cjs/customized-slots-0c0d0665.js} +6 -3
  5. package/dist/cjs/highlight-box_22.cjs.entry.js +747 -0
  6. package/{www/build/imageSearch.store-3204bc99.js → dist/cjs/imageSearch.store-865c23f4.js} +11902 -11653
  7. package/{www/build/index-89e62050.js → dist/cjs/index-0eb3036a.js} +76 -698
  8. package/dist/cjs/index-0f5516a6.js +1354 -0
  9. package/dist/cjs/index-31b9cb7a.js +39 -0
  10. package/dist/cjs/index.cjs.js +2 -0
  11. package/dist/cjs/loader.cjs.js +23 -0
  12. package/dist/cjs/vviinn-carousel_3.cjs.entry.js +1174 -0
  13. package/dist/{vviinn-widgets/vviinn-error.entry.js → cjs/vviinn-error.cjs.entry.js} +8 -4
  14. package/{www/build/vviinn-preloader.entry.js → dist/cjs/vviinn-preloader.cjs.entry.js} +11 -10
  15. package/{www/build/vviinn-recommendations-sidebar.entry.js → dist/cjs/vviinn-recommendations-sidebar.cjs.entry.js} +12 -8
  16. package/dist/{vviinn-widgets/vviinn-vpr-button.entry.js → cjs/vviinn-vpr-button.cjs.entry.js} +9 -5
  17. package/dist/cjs/vviinn-vps-button.cjs.entry.js +43 -0
  18. package/{www/build/vviinn-vps-widget.entry.js → dist/cjs/vviinn-vps-widget.cjs.entry.js} +51 -49
  19. package/dist/cjs/vviinn-widgets.cjs.js +21 -0
  20. package/dist/collection/Image/error.js +14 -0
  21. package/dist/collection/Image/form.js +5 -0
  22. package/dist/collection/Image/fromFile.js +18 -0
  23. package/dist/collection/Image/imageToB64.js +9 -0
  24. package/dist/collection/Image/index.js +0 -0
  25. package/dist/collection/Image/renderPromise.js +6 -0
  26. package/dist/collection/Image/resizeImage.js +28 -0
  27. package/dist/collection/Image/sizing.js +39 -0
  28. package/dist/collection/Image/toFile.js +17 -0
  29. package/dist/collection/analytics/GAnalytics.js +32 -0
  30. package/dist/collection/analytics/GeneralAnalytics.js +9 -0
  31. package/dist/collection/analytics/GtagAnalytics.js +35 -0
  32. package/dist/collection/analytics/ProductAnalytics.js +1 -0
  33. package/dist/collection/campaign/Campaign.js +8 -0
  34. package/dist/collection/campaign/CampaignService.js +5 -0
  35. package/dist/collection/campaign/VCSCampaign.js +1 -0
  36. package/dist/collection/campaign/VCSCampaignResponse.js +1 -0
  37. package/dist/collection/campaign/VCSCampaignService.js +5 -0
  38. package/dist/collection/campaign/VPRCampaignResponse.js +1 -0
  39. package/dist/collection/campaign/VPRCampaignService.js +5 -0
  40. package/dist/collection/collection-manifest.json +43 -0
  41. package/dist/collection/components/customized-slots.js +47 -0
  42. package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.css +71 -0
  43. package/dist/collection/components/image-search/image-view/highlight-box/highlight-box.js +25 -0
  44. package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.css +49 -0
  45. package/dist/collection/components/image-search/image-view/image-cropper/cropper-handler/cropper-handler.js +64 -0
  46. package/dist/collection/components/image-search/image-view/image-cropper/image-cropper.css +33 -0
  47. package/{www/build/image-cropper.entry.js → dist/collection/components/image-search/image-view/image-cropper/image-cropper.js} +70 -33
  48. package/dist/collection/components/image-search/search-filters/search-filters.css +120 -0
  49. package/dist/collection/components/image-search/search-filters/search-filters.js +125 -0
  50. package/dist/collection/components/vviinn-carousel/vviinn-carousel.css +142 -0
  51. package/{www/build/vviinn-carousel.entry.js → dist/collection/components/vviinn-carousel/vviinn-carousel.js} +113 -18
  52. package/dist/collection/components/vviinn-error/vviinn-empty-results/vviinn-empty-results.css +7 -0
  53. package/dist/collection/components/vviinn-error/vviinn-empty-results/vviinn-empty-results.js +36 -0
  54. package/dist/collection/components/vviinn-error/vviinn-error.css +38 -0
  55. package/dist/collection/components/vviinn-error/vviinn-error.js +18 -0
  56. package/dist/collection/components/vviinn-error/vviinn-server-error/vviinn-server-error.css +3 -0
  57. package/dist/collection/components/vviinn-error/vviinn-server-error/vviinn-server-error.js +34 -0
  58. package/dist/collection/components/vviinn-error/vviinn-wrong-format/vviinn-wrong-format.css +3 -0
  59. package/dist/collection/components/vviinn-error/vviinn-wrong-format/vviinn-wrong-format.js +34 -0
  60. package/dist/collection/components/vviinn-example-images/vviinn-example-image/vviinn-example-image.css +34 -0
  61. package/dist/collection/components/vviinn-example-images/vviinn-example-image/vviinn-example-image.js +129 -0
  62. package/dist/collection/components/vviinn-example-images/vviinn-example-images.css +19 -0
  63. package/dist/collection/components/vviinn-example-images/vviinn-example-images.js +80 -0
  64. package/dist/{vviinn-widgets/index-bbcd6be9.js → collection/components/vviinn-icons/index.js} +11 -14
  65. package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.css +25 -0
  66. package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.js +64 -0
  67. package/dist/collection/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.css +47 -0
  68. package/dist/collection/components/vviinn-image-view/vviinn-detected-object/vviinn-detected-object.js +100 -0
  69. package/dist/collection/components/vviinn-image-view/vviinn-image-view.css +31 -0
  70. package/dist/collection/components/vviinn-image-view/vviinn-image-view.js +61 -0
  71. package/dist/collection/components/vviinn-modal/vviinn-modal.css +105 -0
  72. package/dist/collection/components/vviinn-modal/vviinn-modal.js +98 -0
  73. package/dist/collection/components/vviinn-onboarding/onboarding-cards/onboarding-card.css +41 -0
  74. package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-1/vviinn-onboarding-card-1.js +26 -0
  75. package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-2/vviinn-onboarding-card-2.js +26 -0
  76. package/dist/collection/components/vviinn-onboarding/onboarding-cards/vviinn-onboarding-card-3/vviinn-onboarding-card-3.js +26 -0
  77. package/dist/collection/components/vviinn-onboarding/vviinn-onboarding.css +58 -0
  78. package/dist/collection/components/vviinn-onboarding/vviinn-onboarding.js +28 -0
  79. package/dist/collection/components/vviinn-overlay/vviinn-overlay.css +33 -0
  80. package/dist/collection/components/vviinn-overlay/vviinn-overlay.js +15 -0
  81. package/dist/collection/components/vviinn-overlayed-modal/vviinn-overlayed-modal.css +29 -0
  82. package/dist/collection/components/vviinn-overlayed-modal/vviinn-overlayed-modal.js +71 -0
  83. package/dist/collection/components/vviinn-preloader/vviinn-preloader.css +37 -0
  84. package/dist/collection/components/vviinn-preloader/vviinn-preloader.js +20 -0
  85. package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.css +19 -0
  86. package/dist/collection/components/vviinn-privacy-badge/vviinn-privacy-badge.js +27 -0
  87. package/dist/collection/components/vviinn-product-card/render-helpers.js +32 -0
  88. package/dist/collection/components/vviinn-product-card/stories/args.js +73 -0
  89. package/dist/collection/components/vviinn-product-card/stories/decorators.js +51 -0
  90. package/dist/collection/components/vviinn-product-card/stories/vviinn-product-card.stories.js +105 -0
  91. package/dist/collection/components/vviinn-product-card/vviinn-product-card.css +95 -0
  92. package/dist/collection/components/vviinn-product-card/vviinn-product-card.js +462 -0
  93. package/dist/collection/components/vviinn-slider/arrow.js +11 -0
  94. package/dist/collection/components/vviinn-slider/vviinn-slide/vviinn-slide.css +4 -0
  95. package/dist/collection/components/vviinn-slider/vviinn-slide/vviinn-slide.js +15 -0
  96. package/dist/collection/components/vviinn-slider/vviinn-slider.css +109 -0
  97. package/dist/collection/components/vviinn-slider/vviinn-slider.js +181 -0
  98. package/dist/collection/components/vviinn-teaser/vviinn-teaser.css +14 -0
  99. package/dist/collection/components/vviinn-teaser/vviinn-teaser.js +29 -0
  100. package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.css +238 -0
  101. package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.js +200 -0
  102. package/dist/collection/components/vviinn-vpr-button/stories/args.js +207 -0
  103. package/dist/collection/components/vviinn-vpr-button/stories/vviinn-vpr-button.stories.js +89 -0
  104. package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.css +35 -0
  105. package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.js +156 -0
  106. package/dist/collection/components/vviinn-vpr-widget/stories/args.js +190 -0
  107. package/dist/collection/components/vviinn-vpr-widget/stories/decorators.js +29 -0
  108. package/dist/collection/components/vviinn-vpr-widget/stories/vviinn-vpr-widget.stories.js +212 -0
  109. package/dist/collection/components/vviinn-vpr-widget/token-helpers.js +11 -0
  110. package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-vidget.js +483 -0
  111. package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-widget.css +79 -0
  112. package/dist/collection/components/vviinn-vps-button/stories/vviinn-vps-button.stories.js +31 -0
  113. package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.css +3 -0
  114. package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.js +178 -0
  115. package/dist/collection/components/vviinn-vps-widget/stories/vviinn-vps-widget.stories.js +33 -0
  116. package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.css +350 -0
  117. package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js +352 -0
  118. package/dist/collection/cropper/Cropper.js +1 -0
  119. package/dist/collection/cropper/Handler.js +61 -0
  120. package/dist/collection/dom/index.js +3 -0
  121. package/dist/collection/error.js +14 -0
  122. package/dist/collection/file/index.js +4 -0
  123. package/dist/collection/geometry/Clip.js +14 -0
  124. package/dist/collection/geometry/Point.js +32 -0
  125. package/dist/collection/geometry/Rectangle.js +95 -0
  126. package/dist/collection/geometry/RectangleAlt.js +1 -0
  127. package/dist/collection/geometry/Sized.js +8 -0
  128. package/dist/collection/global.js +19 -0
  129. package/dist/collection/index.js +1 -0
  130. package/dist/collection/interfaces/generated.js +5 -0
  131. package/dist/collection/interfaces/recommendation.js +1 -0
  132. package/dist/collection/network/apiClient.js +9 -0
  133. package/dist/collection/network/ion/File.js +14 -0
  134. package/dist/collection/network/ion/Form.js +64 -0
  135. package/dist/collection/network/ion/Link.js +8 -0
  136. package/dist/collection/network/ion/ValueObject.js +23 -0
  137. package/dist/collection/network/request.js +19 -0
  138. package/dist/collection/network/utils.js +37 -0
  139. package/dist/collection/openApi/index.js +27 -0
  140. package/dist/collection/recommendation/events.js +1 -0
  141. package/dist/collection/recommendation/recommendation.js +1 -0
  142. package/dist/collection/searchSession/searchSession.js +26 -0
  143. package/dist/collection/sentry.js +14 -0
  144. package/dist/collection/slider/GridMode.js +1 -0
  145. package/dist/collection/store/file-processing.js +13 -0
  146. package/dist/collection/store/imageSearch.store.js +138 -0
  147. package/dist/collection/store/store.js +3 -0
  148. package/dist/collection/store/tracking.store.js +3 -0
  149. package/dist/collection/stories/Button.js +21 -0
  150. package/dist/collection/stories/Button.stories.js +42 -0
  151. package/dist/collection/stories/Header.js +45 -0
  152. package/dist/collection/stories/Header.stories.js +15 -0
  153. package/dist/collection/stories/Page.js +61 -0
  154. package/dist/collection/stories/Page.stories.js +19 -0
  155. package/dist/collection/stories/assets/code-brackets.svg +1 -0
  156. package/dist/collection/stories/assets/colors.svg +1 -0
  157. package/dist/collection/stories/assets/comments.svg +1 -0
  158. package/dist/collection/stories/assets/direction.svg +1 -0
  159. package/dist/collection/stories/assets/flow.svg +1 -0
  160. package/dist/collection/stories/assets/plugin.svg +1 -0
  161. package/dist/collection/stories/assets/repo.svg +1 -0
  162. package/dist/collection/stories/assets/stackalt.svg +1 -0
  163. package/dist/collection/stories/image-selector.stories.js +6 -0
  164. package/dist/collection/stories/image-view.stories.js +6 -0
  165. package/dist/collection/stories/modal.stories.js +12 -0
  166. package/dist/collection/stories/onboarding.stories.js +11 -0
  167. package/dist/collection/stories/overlay.stories.js +5 -0
  168. package/dist/collection/stories/overlayedModal.stories.js +8 -0
  169. package/dist/collection/stories/privacy-badge.stories.js +11 -0
  170. package/dist/collection/stories/slider.stories.js +17 -0
  171. package/dist/collection/stories/teaser.stories.js +5 -0
  172. package/dist/collection/stories/vps-widget.stories.js +47 -0
  173. package/dist/collection/stories/vviinn-product.stories.js +19 -0
  174. package/dist/collection/tracking/event.js +3 -0
  175. package/dist/collection/tracking/filter.js +5 -0
  176. package/dist/collection/tracking/index.js +13 -0
  177. package/dist/collection/tracking/models.js +6 -0
  178. package/dist/collection/tracking/product.js +18 -0
  179. package/dist/collection/tracking/search.js +5 -0
  180. package/dist/collection/tracking/widget.js +10 -0
  181. package/dist/collection/utils/collections/collectionsUtils.js +5 -0
  182. package/dist/collection/utils/either.js +3 -0
  183. package/dist/collection/utils/enum/enumUtils.js +3 -0
  184. package/dist/collection/utils/event/Events.js +1 -0
  185. package/dist/collection/utils/number/index.js +4 -0
  186. package/dist/collection/utils/option/option.js +4 -0
  187. package/dist/collection/utils/semigroup/semigroupDiff.js +6 -0
  188. package/dist/collection/utils/token/tokenUtils.js +9 -0
  189. package/dist/esm/Handler-f9b8735c.js +309 -0
  190. package/{www/build/app-globals-4fe0376b.js → dist/esm/app-globals-6f6aa89e.js} +10 -922
  191. package/dist/{vviinn-widgets → esm}/cropper-handler.entry.js +2 -2
  192. package/{www/build/customized-slots-5dbf778c.js → dist/esm/customized-slots-6b427dda.js} +1 -1
  193. package/dist/esm/highlight-box_22.entry.js +722 -0
  194. package/dist/{vviinn-widgets/imageSearch.store-3204bc99.js → esm/imageSearch.store-0ae87235.js} +12070 -11855
  195. package/dist/{vviinn-widgets/index-89e62050.js → esm/index-2e296af4.js} +6 -639
  196. package/dist/esm/index-59f44eaa.js +1323 -0
  197. package/{www/build/index-bbcd6be9.js → dist/esm/index-ac05c460.js} +2 -4
  198. package/dist/esm/index.js +1 -0
  199. package/dist/esm/loader.js +19 -0
  200. package/dist/esm/polyfills/core-js.js +11 -0
  201. package/dist/esm/polyfills/css-shim.js +1 -0
  202. package/dist/esm/polyfills/dom.js +79 -0
  203. package/dist/esm/polyfills/es5-html-element.js +1 -0
  204. package/dist/esm/polyfills/index.js +34 -0
  205. package/dist/esm/polyfills/system.js +6 -0
  206. package/dist/esm/vviinn-carousel_3.entry.js +1168 -0
  207. package/{www/build → dist/esm}/vviinn-error.entry.js +1 -1
  208. package/dist/{vviinn-widgets → esm}/vviinn-preloader.entry.js +3 -6
  209. package/dist/{vviinn-widgets → esm}/vviinn-recommendations-sidebar.entry.js +2 -2
  210. package/{www/build → dist/esm}/vviinn-vpr-button.entry.js +2 -2
  211. package/dist/{vviinn-widgets → esm}/vviinn-vps-button.entry.js +3 -3
  212. package/dist/{vviinn-widgets → esm}/vviinn-vps-widget.entry.js +12 -14
  213. package/dist/esm/vviinn-widgets.js +19 -0
  214. package/dist/index.cjs.js +1 -0
  215. package/dist/index.js +1 -0
  216. package/dist/loader/cdn.js +3 -0
  217. package/dist/loader/index.cjs.js +3 -0
  218. package/dist/loader/index.d.ts +12 -0
  219. package/dist/loader/index.es2017.js +3 -0
  220. package/dist/loader/index.js +4 -0
  221. package/dist/loader/package.json +10 -0
  222. package/dist/types/components/vviinn-vpr-widget/vviinn-vpr-vidget.d.ts +1 -1
  223. package/dist/types/components/vviinn-vps-widget/vviinn-vps-widget.d.ts +1 -1
  224. package/dist/vviinn-widgets/index.esm.js +0 -1
  225. package/dist/vviinn-widgets/p-118ac907.js +1 -0
  226. package/dist/vviinn-widgets/p-11f61564.js +1 -0
  227. package/dist/vviinn-widgets/p-39fdc5c9.entry.js +1 -0
  228. package/dist/vviinn-widgets/p-762dc067.entry.js +1 -0
  229. package/dist/vviinn-widgets/p-7e2f542c.js +1 -0
  230. package/dist/vviinn-widgets/p-8d56e795.entry.js +1 -0
  231. package/dist/vviinn-widgets/p-8f955b15.entry.js +1 -0
  232. package/dist/vviinn-widgets/p-9654fe35.entry.js +1 -0
  233. package/dist/vviinn-widgets/p-9e5adc42.js +1 -0
  234. package/dist/vviinn-widgets/p-b3731705.entry.js +1 -0
  235. package/dist/vviinn-widgets/p-bad1809f.js +1 -0
  236. package/dist/vviinn-widgets/p-c36546fa.js +15 -0
  237. package/dist/vviinn-widgets/p-d991330b.entry.js +1 -0
  238. package/dist/vviinn-widgets/p-da9c933b.entry.js +1 -0
  239. package/dist/vviinn-widgets/p-ee46fc83.js +1 -0
  240. package/dist/vviinn-widgets/p-f41e25f0.entry.js +1 -0
  241. package/dist/vviinn-widgets/vviinn-widgets.css +1 -6
  242. package/dist/vviinn-widgets/vviinn-widgets.esm.js +1 -125
  243. package/package.json +1 -1
  244. package/www/build/index.esm.js +0 -1
  245. package/www/build/p-118ac907.js +1 -0
  246. package/www/build/p-11f61564.js +1 -0
  247. package/www/build/p-39fdc5c9.entry.js +1 -0
  248. package/www/build/p-762dc067.entry.js +1 -0
  249. package/www/build/p-7e2f542c.js +1 -0
  250. package/www/build/p-8d56e795.entry.js +1 -0
  251. package/www/build/p-8f955b15.entry.js +1 -0
  252. package/www/build/p-9654fe35.entry.js +1 -0
  253. package/www/build/p-9e5adc42.js +1 -0
  254. package/www/build/p-a67898be.css +1 -0
  255. package/www/build/p-b3731705.entry.js +1 -0
  256. package/www/build/p-bad1809f.js +1 -0
  257. package/www/build/p-c36546fa.js +15 -0
  258. package/www/build/p-cfd998c1.js +1 -0
  259. package/www/build/p-d991330b.entry.js +1 -0
  260. package/www/build/p-da9c933b.entry.js +1 -0
  261. package/www/build/p-ee46fc83.js +1 -0
  262. package/www/build/p-f41e25f0.entry.js +1 -0
  263. package/www/build/vviinn-widgets.css +1 -6
  264. package/www/build/vviinn-widgets.esm.js +1 -125
  265. package/www/index.html +1 -12
  266. package/dist/vviinn-widgets/Array-c4dc02db.js +0 -4295
  267. package/dist/vviinn-widgets/Handler-47db9890.js +0 -1428
  268. package/dist/vviinn-widgets/NonEmptyArray-65395d97.js +0 -4370
  269. package/dist/vviinn-widgets/css-shim-f0027935.js +0 -4
  270. package/dist/vviinn-widgets/dom-db0073f0.js +0 -73
  271. package/dist/vviinn-widgets/highlight-box.entry.js +0 -41
  272. package/dist/vviinn-widgets/image-cropper.entry.js +0 -118
  273. package/dist/vviinn-widgets/index-c8128606.js +0 -3010
  274. package/dist/vviinn-widgets/number-a80a4b3c.js +0 -1533
  275. package/dist/vviinn-widgets/search-filters.entry.js +0 -76
  276. package/dist/vviinn-widgets/shadow-css-c1fdfa9f.js +0 -389
  277. package/dist/vviinn-widgets/vviinn-carousel.entry.js +0 -210
  278. package/dist/vviinn-widgets/vviinn-detected-object.entry.js +0 -54
  279. package/dist/vviinn-widgets/vviinn-empty-results.entry.js +0 -16
  280. package/dist/vviinn-widgets/vviinn-example-image.entry.js +0 -38
  281. package/dist/vviinn-widgets/vviinn-example-images.entry.js +0 -28
  282. package/dist/vviinn-widgets/vviinn-image-selector.entry.js +0 -31
  283. package/dist/vviinn-widgets/vviinn-image-view.entry.js +0 -55
  284. package/dist/vviinn-widgets/vviinn-modal.entry.js +0 -30
  285. package/dist/vviinn-widgets/vviinn-onboarding-card-1.entry.js +0 -21
  286. package/dist/vviinn-widgets/vviinn-onboarding-card-2.entry.js +0 -21
  287. package/dist/vviinn-widgets/vviinn-onboarding-card-3.entry.js +0 -21
  288. package/dist/vviinn-widgets/vviinn-onboarding.entry.js +0 -20
  289. package/dist/vviinn-widgets/vviinn-overlay.entry.js +0 -15
  290. package/dist/vviinn-widgets/vviinn-overlayed-modal.entry.js +0 -18
  291. package/dist/vviinn-widgets/vviinn-privacy-badge.entry.js +0 -20
  292. package/dist/vviinn-widgets/vviinn-product-card.entry.js +0 -184
  293. package/dist/vviinn-widgets/vviinn-server-error.entry.js +0 -16
  294. package/dist/vviinn-widgets/vviinn-slide.entry.js +0 -15
  295. package/dist/vviinn-widgets/vviinn-slider.entry.js +0 -120
  296. package/dist/vviinn-widgets/vviinn-teaser.entry.js +0 -20
  297. package/dist/vviinn-widgets/vviinn-vpr-widget.entry.js +0 -4581
  298. package/dist/vviinn-widgets/vviinn-wrong-format.entry.js +0 -16
  299. package/www/build/Array-c4dc02db.js +0 -4295
  300. package/www/build/Handler-47db9890.js +0 -1428
  301. package/www/build/NonEmptyArray-65395d97.js +0 -4370
  302. package/www/build/css-shim-f0027935.js +0 -4
  303. package/www/build/dom-db0073f0.js +0 -73
  304. package/www/build/highlight-box.entry.js +0 -41
  305. package/www/build/index-c8128606.js +0 -3010
  306. package/www/build/number-a80a4b3c.js +0 -1533
  307. package/www/build/search-filters.entry.js +0 -76
  308. package/www/build/shadow-css-c1fdfa9f.js +0 -389
  309. package/www/build/vviinn-detected-object.entry.js +0 -54
  310. package/www/build/vviinn-empty-results.entry.js +0 -16
  311. package/www/build/vviinn-example-image.entry.js +0 -38
  312. package/www/build/vviinn-example-images.entry.js +0 -28
  313. package/www/build/vviinn-image-selector.entry.js +0 -31
  314. package/www/build/vviinn-image-view.entry.js +0 -55
  315. package/www/build/vviinn-modal.entry.js +0 -30
  316. package/www/build/vviinn-onboarding-card-1.entry.js +0 -21
  317. package/www/build/vviinn-onboarding-card-2.entry.js +0 -21
  318. package/www/build/vviinn-onboarding-card-3.entry.js +0 -21
  319. package/www/build/vviinn-onboarding.entry.js +0 -20
  320. package/www/build/vviinn-overlay.entry.js +0 -15
  321. package/www/build/vviinn-overlayed-modal.entry.js +0 -18
  322. package/www/build/vviinn-privacy-badge.entry.js +0 -20
  323. package/www/build/vviinn-product-card.entry.js +0 -184
  324. package/www/build/vviinn-server-error.entry.js +0 -16
  325. package/www/build/vviinn-slide.entry.js +0 -15
  326. package/www/build/vviinn-slider.entry.js +0 -120
  327. package/www/build/vviinn-teaser.entry.js +0 -20
  328. package/www/build/vviinn-vpr-widget.entry.js +0 -4581
  329. package/www/build/vviinn-vps-button.entry.js +0 -39
  330. package/www/build/vviinn-wrong-format.entry.js +0 -16
@@ -0,0 +1,79 @@
1
+ :host {
2
+ /**
3
+ * @prop --vviinn-carousel-columns: control number of items in grid mode
4
+ * @prop --vviinn-carousel-image-width: control image width in continuity mode
5
+ */
6
+
7
+ display: grid;
8
+ grid-gap: 1rem;
9
+ width: 100%;
10
+ }
11
+
12
+ :host(:not(.loaded)) {
13
+ position: absolute;
14
+ visibility: hidden;
15
+ }
16
+
17
+ :host(.grid) vviinn-product-card::part(image) {
18
+ border: 1px solid #DDDDDD;
19
+ width: 100%;
20
+ }
21
+
22
+ h2 {
23
+ margin: 0;
24
+ }
25
+
26
+ vviinn-product-card::part(price-container) {
27
+ align-self: flex-start;
28
+ text-align: left;
29
+ display: flex;
30
+ }
31
+
32
+ .results {
33
+ display: grid;
34
+ grid-gap: 1rem;
35
+ }
36
+
37
+ .visually-hidden {
38
+ position: absolute;
39
+ top: 0;
40
+ left: 0;
41
+ z-index: -1;
42
+ height: 0;
43
+ width: 0;
44
+ }
45
+
46
+ h2 {
47
+ margin: 0;
48
+ }
49
+
50
+ :host(.grid) h2 {
51
+ justify-content: center;
52
+ }
53
+
54
+ :host(.grid) vviinn-product-card::part(image) {
55
+ min-width: 100%;
56
+ }
57
+
58
+ :host(.grid) vviinn-product-card::part(image-link) {
59
+ width: 100%;
60
+ }
61
+
62
+ :host(.grid) vviinn-product-card::part(title),
63
+ :host(.grid) vviinn-product-card::part(brand),
64
+ :host(.grid) vviinn-product-card::part(type) {
65
+ text-align: center;
66
+ }
67
+
68
+ :host(.grid) vviinn-product-card::part(price-container) {
69
+ align-self: center;
70
+ }
71
+
72
+ :host(.continuity) vviinn-product-card::part(title),
73
+ :host(.continuity) vviinn-product-card::part(brand),
74
+ :host(.continuity) vviinn-product-card::part(type),
75
+ :host(.continuity) vviinn-product-card::part(deeplink) {
76
+ text-align: left;
77
+ max-width: unset;
78
+ align-self: start;
79
+ }
@@ -0,0 +1,31 @@
1
+ export default {
2
+ title: "Widgets/Visual Search/Button",
3
+ component: "vviinn-vps-button",
4
+ parameters: {
5
+ viewport: {
6
+ defaultViewport: "mobile2"
7
+ }
8
+ },
9
+ decorators: [(story) => `
10
+ <div style="display: grid;
11
+ position: absolute;
12
+ top: 0;
13
+ bottom: 0;
14
+ left: 0;
15
+ right: 0;
16
+ align-items: center;
17
+ justify-items: center;">
18
+ ${story()}
19
+ </div>
20
+ `],
21
+ };
22
+ const Template = (args) => `
23
+ <vviinn-vps-button
24
+ api-path="${args.apiPath}"
25
+ token="${args.token}"
26
+ ></vviinn-vps-button>`;
27
+ export const Default = Template.bind({});
28
+ Default.args = {
29
+ token: "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOjgzLCJqdGkiOiI3ZTg2Y2I1YS00ZTFjLTRhYjctYjU2My1lN2FjMTYzZTYyZDIiLCJzY29wZXMiOlsidnByIiwidnBzIiwidnBjIl19.SbaQnBkvoXer3GPCWUthFQStFKLHZNMBfj4Qu44WHM8nzaIt48I74yVy4gVbX29vtd6jIkDPdakqEXRXmAxOCtv7_nsd4iBs1yMegfOWW5g8f10PKfZqmWJcfhwKIEElnUMFmP6rXpogntZ7iFfeTBbiRNzQPhkaa7jUjgQkCC4",
30
+ apiPath: "https://api.vviinn.com"
31
+ };
@@ -0,0 +1,3 @@
1
+ :host {
2
+ cursor: pointer;
3
+ }
@@ -0,0 +1,178 @@
1
+ import { Component, Host, h, Prop, State, Listen, Element, Event, } from "@stencil/core";
2
+ import { CameraIcon } from "../vviinn-icons";
3
+ import { SlotSkeleton } from "../customized-slots";
4
+ /**
5
+ * @slot vviinn-onboarding-title
6
+ * @slot vviinn-onboarding-card-1-icon
7
+ * @slot vviinn-onboarding-card-1-text
8
+ * @slot vviinn-onboarding-card-2-icon
9
+ * @slot vviinn-onboarding-card-2-text
10
+ * @slot vviinn-onboarding-card-3-icon
11
+ * @slot vviinn-onboarding-card-3-text
12
+ * @slot vviinn-example-images-title
13
+ * @slot vviinn-example-images-1
14
+ * @slot vviinn-example-images-2
15
+ * @slot vviinn-example-images-3
16
+ * @slot vviinn-example-images-4
17
+ * @slot vviinn-teaser-text
18
+ * @slot vviinn-image-upload-button-text
19
+ * @slot vviinn-privacy-badge-text
20
+ *
21
+ * @part brand - product brand.
22
+ * @part currency - currency sign. Renders after price-amount.
23
+ * @part deeplink - anchor element for title. Rendered only if "deeplink" property filled.
24
+ * @part image - product image.
25
+ * @part image-link - anchor element for image. Rendered only if "deeplink" property filled.
26
+ * @part price-amount - numeric part of price.
27
+ * @part price-container - block contains all prices.
28
+ * @part price-outdated - renders inside price-container when "sale-price" property filled. Contains regular price.
29
+ * @part price-prefix - renders before price-amount. Can be set with "price-prefix" property or inherited from parent component.
30
+ * @part price-regular - renders inside price-container when "sale-price" property is empty.
31
+ * @part price-sale - renders inside price-container when "sale-price" property filled. Contains sale price.
32
+ * @part title - product title
33
+ * @part example-images - example images block
34
+ */
35
+ export class VviinnVpsButton {
36
+ constructor() {
37
+ /** Currency sign will shown after price */
38
+ this.currencySign = "€";
39
+ /** Locale for currency formatting */
40
+ this.locale = "de-DE";
41
+ this.pressed = false;
42
+ }
43
+ handleModalClosed() {
44
+ this.pressed = false;
45
+ }
46
+ componentDidLoad() {
47
+ const slots = this.el.querySelectorAll("[slot]");
48
+ this.globalSlotsChanged.emit(Array.from(slots));
49
+ }
50
+ handleKeyDown(ev) {
51
+ if (ev.code !== "Enter" && ev.code !== "Space")
52
+ return;
53
+ this.pressed = true;
54
+ }
55
+ handleClick() {
56
+ this.pressed = true;
57
+ }
58
+ render() {
59
+ return (h(Host, { tabindex: "0", role: "button", pressed: this.pressed, onClick: () => this.handleClick(), onKeyDown: (ev) => this.handleKeyDown(ev) },
60
+ h("slot", null,
61
+ h(CameraIcon, null)),
62
+ h(SlotSkeleton, null),
63
+ h("vviinn-vps-widget", { active: this.pressed, "currency-sign": "\u20AC", token: this.token, locale: this.locale, apiPath: this.apiPath, exportparts: "brand, currency, deeplink, image, image-link, price-amount, price-container, price-outdated, price-prefix, price-regular, price-sale, title, product-card, example-images" })));
64
+ }
65
+ static get is() { return "vviinn-vps-button"; }
66
+ static get encapsulation() { return "shadow"; }
67
+ static get originalStyleUrls() { return {
68
+ "$": ["vviinn-vps-button.css"]
69
+ }; }
70
+ static get styleUrls() { return {
71
+ "$": ["vviinn-vps-button.css"]
72
+ }; }
73
+ static get properties() { return {
74
+ "token": {
75
+ "type": "string",
76
+ "mutable": false,
77
+ "complexType": {
78
+ "original": "string",
79
+ "resolved": "string",
80
+ "references": {}
81
+ },
82
+ "required": false,
83
+ "optional": false,
84
+ "docs": {
85
+ "tags": [],
86
+ "text": "vviinn customer token"
87
+ },
88
+ "attribute": "token",
89
+ "reflect": false
90
+ },
91
+ "currencySign": {
92
+ "type": "string",
93
+ "mutable": false,
94
+ "complexType": {
95
+ "original": "string",
96
+ "resolved": "string",
97
+ "references": {}
98
+ },
99
+ "required": false,
100
+ "optional": false,
101
+ "docs": {
102
+ "tags": [],
103
+ "text": "Currency sign will shown after price"
104
+ },
105
+ "attribute": "currency-sign",
106
+ "reflect": false,
107
+ "defaultValue": "\"\u20AC\""
108
+ },
109
+ "locale": {
110
+ "type": "string",
111
+ "mutable": false,
112
+ "complexType": {
113
+ "original": "string",
114
+ "resolved": "string",
115
+ "references": {}
116
+ },
117
+ "required": false,
118
+ "optional": false,
119
+ "docs": {
120
+ "tags": [],
121
+ "text": "Locale for currency formatting"
122
+ },
123
+ "attribute": "locale",
124
+ "reflect": false,
125
+ "defaultValue": "\"de-DE\""
126
+ },
127
+ "apiPath": {
128
+ "type": "string",
129
+ "mutable": false,
130
+ "complexType": {
131
+ "original": "string | undefined",
132
+ "resolved": "string",
133
+ "references": {}
134
+ },
135
+ "required": false,
136
+ "optional": false,
137
+ "docs": {
138
+ "tags": [{
139
+ "text": undefined,
140
+ "name": "internal"
141
+ }],
142
+ "text": ""
143
+ },
144
+ "attribute": "api-path",
145
+ "reflect": false
146
+ }
147
+ }; }
148
+ static get states() { return {
149
+ "pressed": {}
150
+ }; }
151
+ static get events() { return [{
152
+ "method": "globalSlotsChanged",
153
+ "name": "globalSlotsChanged",
154
+ "bubbles": true,
155
+ "cancelable": true,
156
+ "composed": true,
157
+ "docs": {
158
+ "tags": [{
159
+ "text": undefined,
160
+ "name": "internal"
161
+ }],
162
+ "text": ""
163
+ },
164
+ "complexType": {
165
+ "original": "any",
166
+ "resolved": "any",
167
+ "references": {}
168
+ }
169
+ }]; }
170
+ static get elementRef() { return "el"; }
171
+ static get listeners() { return [{
172
+ "name": "modalClosed",
173
+ "method": "handleModalClosed",
174
+ "target": undefined,
175
+ "capture": false,
176
+ "passive": false
177
+ }]; }
178
+ }
@@ -0,0 +1,33 @@
1
+ export default {
2
+ title: "Widgets/Visual Search/Widget",
3
+ parameters: {
4
+ viewport: {
5
+ defaultViewport: "mobile2"
6
+ }
7
+ }
8
+ };
9
+ const Template = ({ token, apiPath }) => `
10
+ <vviinn-vps-widget token="${token}"
11
+ api-path="${apiPath}"
12
+ active="true">
13
+ </vviinn-vps-widget>`;
14
+ export const Default = Template.bind({});
15
+ Default.args = {
16
+ token: "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOjgzLCJqdGkiOiI3ZTg2Y2I1YS00ZTFjLTRhYjctYjU2My1lN2FjMTYzZTYyZDIiLCJzY29wZXMiOlsidnByIiwidnBzIiwidnBjIl19.SbaQnBkvoXer3GPCWUthFQStFKLHZNMBfj4Qu44WHM8nzaIt48I74yVy4gVbX29vtd6jIkDPdakqEXRXmAxOCtv7_nsd4iBs1yMegfOWW5g8f10PKfZqmWJcfhwKIEElnUMFmP6rXpogntZ7iFfeTBbiRNzQPhkaa7jUjgQkCC4",
17
+ apiPath: "https://api.vviinn.com"
18
+ };
19
+ Default.storyName = "Modal Window";
20
+ Default.decorators = [(Story) => `
21
+ <style>
22
+ .sb-show-main.sb-main-padded {
23
+ padding: unset;
24
+ }
25
+
26
+ #root {
27
+ align-content: center;
28
+ display: grid;
29
+ height: 100vh;
30
+ justify-items: center;
31
+ }
32
+ </style>
33
+ ${Story()}`];
@@ -0,0 +1,350 @@
1
+ :host {
2
+ --color-primary-system: #0F62FE;
3
+ --color-primary-hover-system: #014CDA;
4
+ --color-icons-system: #2F8EDF;
5
+ --spacer: 8px;
6
+ }
7
+
8
+
9
+ :host {
10
+ display: block;
11
+ }
12
+
13
+ .hidden {
14
+ visibility: hidden;
15
+ height: 1px;
16
+ }
17
+
18
+ vviinn-overlayed-modal.first-screen::part(title),
19
+ vviinn-overlayed-modal.first-screen::part(secondary-action) {
20
+ visibility: hidden;
21
+ }
22
+
23
+ .start-page {
24
+ display: grid;
25
+ grid-template-columns: repeat(2, 1fr);
26
+ min-height: 580px;
27
+ }
28
+
29
+ .start-page_block {
30
+ align-content: start;
31
+ border-right: 1px solid #F4F4F4;
32
+ display: grid;
33
+ padding: 48px;
34
+ }
35
+
36
+ .start-page_block.error {
37
+ align-content: center;
38
+ }
39
+
40
+
41
+ #onboarding-block {
42
+ border-right: unset;
43
+ box-sizing: border-box;
44
+ grid-gap: 24px;
45
+ overflow-y: auto;
46
+ position: relative;
47
+ width: 100%;
48
+ }
49
+
50
+ vviinn-teaser {
51
+ margin-bottom: 32px;
52
+ margin-top: -24px;
53
+ }
54
+
55
+ vviinn-image-selector {
56
+ align-items: center;
57
+ background: var(--color-primary, var(--color-primary-system));
58
+ border-color: var(--color-primary, var(--color-primary-system));
59
+ border-radius: 2px;
60
+ color: white;
61
+ display: grid;
62
+ font-size: 16px;
63
+ font-weight: 600;
64
+ height: 56px;
65
+ justify-items: center;
66
+ margin-bottom: 16px;
67
+ transition: background 0.1s ease-in-out;
68
+ }
69
+
70
+ vviinn-image-selector:hover {
71
+ background: var(--color-primary-hover, var(--color-primary-hover-system));
72
+ border-color: var(--color-primary-hover, var(--color-primary-hover-system));
73
+ }
74
+
75
+ vviinn-image-selector:active {
76
+ border-color: black;
77
+ }
78
+
79
+ .upload-button-content {
80
+ display: grid;
81
+ align-items: center;
82
+ justify-items: start;
83
+ justify-content: center;
84
+ grid-template-columns: -webkit-max-content auto;
85
+ grid-template-columns: max-content auto;
86
+ grid-gap: 16px;
87
+ }
88
+
89
+ .results-page {
90
+ display: grid;
91
+ grid-template-columns: 336px auto;
92
+ box-sizing: border-box;
93
+ }
94
+
95
+ .results-page > * {
96
+ padding: 24px;
97
+ box-sizing: border-box;
98
+ }
99
+
100
+ .products {
101
+ align-content: center;
102
+ align-items: start;
103
+ box-sizing: border-box;
104
+ display: grid;
105
+ grid-gap: 32px 16px;
106
+ grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
107
+ justify-items: center;
108
+ padding: 24px;
109
+ padding-right: 0;
110
+ position: absolute;
111
+ width: calc(100% - 16px);
112
+ }
113
+
114
+ .products.hidden {
115
+ display: none;
116
+ }
117
+
118
+ vviinn-empty-results {
119
+ width: 280px;
120
+ align-self: center;
121
+ justify-self: center;
122
+ }
123
+
124
+ .products-wrapper {
125
+ display: grid;
126
+ overflow-y: auto;
127
+ overflow-x: hidden;
128
+ padding: unset;
129
+ position: relative;
130
+ width: 100%;
131
+ }
132
+
133
+ .image-wrapper {
134
+ border-right: 1px solid #F4F4F4;
135
+ display: grid;
136
+ grid-template-rows: -webkit-min-content 170px;
137
+ grid-template-rows: min-content 170px;
138
+ grid-gap: 24px;
139
+ min-width: 100%;
140
+ }
141
+
142
+ .onboarding-wrapper {
143
+ position: absolute;
144
+ width: 100%;
145
+ padding: 48px;
146
+ box-sizing: border-box;
147
+ display: grid;
148
+ grid-gap: 64px;
149
+ padding-bottom: 24px;
150
+ }
151
+
152
+ vviinn-product-card {
153
+ gap: 0;
154
+ width: 100%;
155
+ }
156
+
157
+ vviinn-product-card::part(image) {
158
+ border: 1px solid #eaeaea;
159
+ margin-bottom: 8px;
160
+ }
161
+
162
+ vviinn-product-card::part(price-container),
163
+ vviinn-product-card::part(deeplink),
164
+ vviinn-product-card::part(title) {
165
+ align-self: start;
166
+ }
167
+
168
+ search-filters span {
169
+ display: none;
170
+ }
171
+
172
+ search-filters::part(filter) {
173
+ background: #F4F4F4;
174
+ border-radius: 4px;
175
+ border: 1px solid #F4F4F4;
176
+ box-sizing: border-box;
177
+ color: #161616;
178
+ font-size: 14px;
179
+ font-weight: 600;
180
+ line-height: 20px;
181
+ }
182
+
183
+ search-filters::part(show-more-filters) {
184
+ border: 1px solid #f4f4f4;
185
+ border-radius: 4px;
186
+ box-sizing: border-box;
187
+ color: #161616;
188
+ font-size: 14px;
189
+ font-weight: 600;
190
+ line-height: 20px;
191
+ padding: 6px 16px;
192
+ }
193
+
194
+ search-filters::part(show-more-filters):hover {
195
+ background: #EAEAEA;
196
+ }
197
+
198
+ search-filters::part(filter):hover {
199
+ background: #EAEAEA;
200
+ }
201
+
202
+ search-filters::part(filter):focus {
203
+ outline: none;
204
+ border: 1px solid var(--color-primary, var(--color-primary-system));
205
+ }
206
+
207
+ search-filters::part(filter active) {
208
+ background: rgba(15, 98, 254, 0.15);
209
+ color: var(--color-primary, var(--color-primary-system));
210
+ }
211
+
212
+ .filters-wrapper {
213
+ overflow: auto;
214
+ }
215
+
216
+ .results-page:not(.active) {
217
+ display: none;
218
+ }
219
+
220
+ .nothing-found {
221
+ display: grid;
222
+ grid-gap: 64px;
223
+ justify-self: center;
224
+ padding-top: 64px;
225
+ padding-bottom: 16px;
226
+ position: absolute;
227
+ width: 60%;
228
+ }
229
+
230
+ @media (max-width: 768px) {
231
+ .start-page_block {
232
+ padding: 24px;
233
+ }
234
+
235
+ .onboarding-wrapper {
236
+ padding: 24px;
237
+ }
238
+ }
239
+
240
+ @media (max-width: 640px) {
241
+ .start-page {
242
+ grid-template-rows: -webkit-min-content;
243
+ grid-template-rows: min-content;
244
+ grid-template-columns: unset;
245
+ grid-gap: 48px;
246
+ padding: 24px 0 48px 0;
247
+ }
248
+ }
249
+
250
+ @media (max-width: 640px) and (min-width: 415px) {
251
+ .onboarding-wrapper {
252
+ position: unset;
253
+ }
254
+
255
+ #onboarding-block {
256
+ overflow: unset;
257
+ }
258
+
259
+ .start-page.active {
260
+ height: 1px;
261
+ overflow: auto;
262
+ }
263
+ }
264
+
265
+ @media (max-width: 415px) {
266
+ .results-page > * {
267
+ box-sizing: border-box;
268
+ padding: 24px;
269
+ }
270
+
271
+ vviinn-slide {
272
+ padding-bottom: 48px;
273
+ }
274
+
275
+ .start-page_block:last-of-type {
276
+ border-right: unset;
277
+ overflow-y: unset;
278
+ position: static;
279
+ box-sizing: border-box;
280
+ width: unset;
281
+ }
282
+
283
+ .start-page_block {
284
+ padding: 0 24px;
285
+ }
286
+
287
+ vviinn-teaser {
288
+ margin-top: 24px;
289
+ }
290
+
291
+ .onboarding-wrapper {
292
+ position: static;
293
+ width: unset;
294
+ padding: unset;
295
+ box-sizing: border-box;
296
+ }
297
+
298
+ .results-page {
299
+ grid-template-columns: unset;
300
+ grid-template-rows: -webkit-min-content auto;
301
+ grid-template-rows: min-content auto;
302
+ }
303
+
304
+ .image {
305
+ margin-bottom: 8px;
306
+ }
307
+
308
+ .image-wrapper {
309
+ grid-template-rows: -webkit-min-content auto;
310
+ grid-template-rows: min-content auto;
311
+ width: 100%;
312
+ }
313
+
314
+ .products-wrapper {
315
+ align-content: start;
316
+ position: static;
317
+ overflow-y: unset;
318
+ width: 100%;
319
+ padding-top: 0;
320
+ }
321
+
322
+ .products {
323
+ position: static;
324
+ padding: 0;
325
+ width: unset;
326
+ grid-gap: 32px 16px;
327
+ justify-content: center;
328
+ }
329
+
330
+ .nothing-found {
331
+ position: static;
332
+ grid-gap: 64px;
333
+ padding: unset;
334
+ align-content: start;
335
+ width: unset;
336
+ }
337
+ }
338
+
339
+ @media (max-width: 320px) {
340
+ .products {
341
+ grid-template-columns: unset;
342
+ }
343
+ }
344
+
345
+ vviinn-wrong-format,
346
+ vviinn-server-error {
347
+ width: 280px;
348
+ align-self: center;
349
+ justify-self: center;
350
+ }