vviinn-widgets 2.144.2 → 2.145.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/dist/cjs/WarningIcon-65f4b692.js +9 -0
  2. package/dist/cjs/{index-d5006d29.js → constants-0a36f053.js} +3 -0
  3. package/dist/cjs/{package-48fafeab.js → customized-slots-93d9f5c9.js} +1 -21
  4. package/dist/cjs/i18next-74ff3413.js +2258 -0
  5. package/dist/cjs/index-711d38e6.js +10 -10
  6. package/dist/cjs/{index-9e399164.js → index-de717525.js} +32 -2368
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/cjs/package-5e8bdc25.js +22 -0
  9. package/dist/cjs/resources-f8c5d64c.js +119 -0
  10. package/dist/cjs/{search-filters_19.cjs.entry.js → search-filters_13.cjs.entry.js} +622 -696
  11. package/dist/cjs/{search.store-c28f0090.js → search.store-5d72b491.js} +5 -0
  12. package/dist/cjs/vviinn-carousel_9.cjs.entry.js +40 -38
  13. package/dist/cjs/vviinn-detected-object_7.cjs.entry.js +332 -0
  14. package/dist/cjs/vviinn-selected-filters.cjs.entry.js +1 -1
  15. package/dist/cjs/vviinn-text-search.cjs.entry.js +225 -0
  16. package/dist/cjs/vviinn-vps-button.cjs.entry.js +7 -7
  17. package/dist/cjs/vviinn-widgets.cjs.js +1 -1
  18. package/dist/collection/collection-manifest.json +1 -1
  19. package/dist/collection/components/customized-slots.js +1 -1
  20. package/dist/collection/components/{vviinn-example-image/vviinn-example-image.js → vviinn-camera/vviinn-camera.js} +25 -4
  21. package/dist/collection/components/vviinn-cropper/vviinn-cropper.js +20 -15
  22. package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.js +14 -26
  23. package/dist/collection/components/vviinn-results/vviinn-results.css +3 -15
  24. package/dist/collection/components/vviinn-results/vviinn-results.js +3 -1
  25. package/dist/collection/components/vviinn-text-search/vviinn-text-search.css +19 -5
  26. package/dist/collection/components/vviinn-text-search/vviinn-text-search.js +14 -14
  27. package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.js +25 -3
  28. package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js +99 -66
  29. package/dist/collection/locale/resources.js +2 -2
  30. package/dist/collection/store/search.store.js +4 -0
  31. package/dist/esm/WarningIcon-f5ee2147.js +7 -0
  32. package/dist/esm/constants-c2f6bdfe.js +6 -0
  33. package/dist/esm/{package-53a7d414.js → customized-slots-790b647b.js} +2 -18
  34. package/dist/esm/i18next-387f2b0a.js +2256 -0
  35. package/dist/esm/{index-54d4fcfb.js → index-4bb33163.js} +30 -2367
  36. package/dist/esm/index-8e1dd483.js +10 -10
  37. package/dist/esm/loader.js +1 -1
  38. package/dist/esm/package-97a65639.js +17 -0
  39. package/dist/esm/resources-d6b679c9.js +117 -0
  40. package/dist/esm/{search-filters_19.entry.js → search-filters_13.entry.js} +607 -675
  41. package/dist/esm/{search.store-3c94f453.js → search.store-c897e270.js} +5 -1
  42. package/dist/esm/vviinn-carousel_9.entry.js +6 -4
  43. package/dist/esm/vviinn-detected-object_7.entry.js +322 -0
  44. package/dist/esm/vviinn-selected-filters.entry.js +1 -1
  45. package/dist/esm/vviinn-text-search.entry.js +221 -0
  46. package/dist/esm/vviinn-vps-button.entry.js +6 -6
  47. package/dist/esm/vviinn-widgets.js +1 -1
  48. package/dist/types/components/{vviinn-example-image/vviinn-example-image.d.ts → vviinn-camera/vviinn-camera.d.ts} +1 -0
  49. package/dist/types/components/vviinn-cropper/vviinn-cropper.d.ts +2 -1
  50. package/dist/types/components/vviinn-image-selector/vviinn-image-selector.d.ts +2 -2
  51. package/dist/types/components/vviinn-text-search/vviinn-text-search.d.ts +4 -3
  52. package/dist/types/components/vviinn-vps-button/vviinn-vps-button.d.ts +2 -0
  53. package/dist/types/components.d.ts +45 -42
  54. package/dist/types/store/search.store.d.ts +1 -0
  55. package/dist/types/widget/types.d.ts +1 -1
  56. package/dist/vviinn-widgets/p-21d6d12a.entry.js +11 -0
  57. package/dist/vviinn-widgets/p-2aede143.js +1 -0
  58. package/dist/vviinn-widgets/p-2e76a5c3.js +1 -0
  59. package/dist/vviinn-widgets/p-380b7211.js +1 -0
  60. package/dist/vviinn-widgets/p-43e147d6.js +1 -0
  61. package/dist/vviinn-widgets/{p-91dc1441.entry.js → p-5b02ea07.entry.js} +1 -1
  62. package/dist/vviinn-widgets/p-645df5cc.js +1 -0
  63. package/dist/vviinn-widgets/p-75e70eef.entry.js +1 -0
  64. package/dist/vviinn-widgets/p-86d8f6bc.entry.js +1 -0
  65. package/dist/vviinn-widgets/p-92c02a9f.js +1 -0
  66. package/dist/vviinn-widgets/p-a320e027.entry.js +1 -0
  67. package/dist/vviinn-widgets/p-b2aa3af6.js +1 -0
  68. package/dist/vviinn-widgets/p-cbed5a0f.entry.js +1 -0
  69. package/dist/vviinn-widgets/{p-9b3e56ea.js → p-f601d5c0.js} +1 -1
  70. package/dist/vviinn-widgets/vviinn-widgets.esm.js +1 -1
  71. package/package.json +1 -1
  72. package/www/build/p-21d6d12a.entry.js +11 -0
  73. package/www/build/p-2aede143.js +1 -0
  74. package/www/build/p-2e76a5c3.js +1 -0
  75. package/www/build/p-380b7211.js +1 -0
  76. package/www/build/p-43e147d6.js +1 -0
  77. package/www/build/{p-91dc1441.entry.js → p-5b02ea07.entry.js} +1 -1
  78. package/www/build/p-645df5cc.js +1 -0
  79. package/www/build/p-75e70eef.entry.js +1 -0
  80. package/www/build/p-86d8f6bc.entry.js +1 -0
  81. package/www/build/p-92c02a9f.js +1 -0
  82. package/www/build/p-a320e027.entry.js +1 -0
  83. package/www/build/p-b2aa3af6.js +1 -0
  84. package/www/build/p-cbed5a0f.entry.js +1 -0
  85. package/www/build/{p-9b3e56ea.js → p-f601d5c0.js} +1 -1
  86. package/www/build/vviinn-widgets.esm.js +1 -1
  87. package/dist/cjs/SearchModalUploadIcon-23f00a14.js +0 -8
  88. package/dist/cjs/constants-7684cbfc.js +0 -5
  89. package/dist/cjs/index-4c9a5dbb.js +0 -40
  90. package/dist/cjs/vviinn-preloader.cjs.entry.js +0 -19
  91. package/dist/cjs/vviinn-vps-widget.cjs.entry.js +0 -443
  92. package/dist/esm/SearchModalUploadIcon-08db80ec.js +0 -6
  93. package/dist/esm/constants-8bf233a9.js +0 -3
  94. package/dist/esm/index-cd60a76c.js +0 -4
  95. package/dist/esm/index-f38df7a0.js +0 -36
  96. package/dist/esm/vviinn-preloader.entry.js +0 -15
  97. package/dist/esm/vviinn-vps-widget.entry.js +0 -439
  98. package/dist/vviinn-widgets/p-001ff706.js +0 -1
  99. package/dist/vviinn-widgets/p-0077a11d.entry.js +0 -11
  100. package/dist/vviinn-widgets/p-1d2e2973.entry.js +0 -1
  101. package/dist/vviinn-widgets/p-2d7d4420.js +0 -1
  102. package/dist/vviinn-widgets/p-5c900a8a.entry.js +0 -1
  103. package/dist/vviinn-widgets/p-6aae513c.js +0 -1
  104. package/dist/vviinn-widgets/p-7421c7ae.js +0 -1
  105. package/dist/vviinn-widgets/p-7d9778a3.entry.js +0 -1
  106. package/dist/vviinn-widgets/p-c4ae63e3.entry.js +0 -1
  107. package/dist/vviinn-widgets/p-cc013cd2.js +0 -1
  108. package/dist/vviinn-widgets/p-cddc96d8.js +0 -1
  109. package/www/build/p-001ff706.js +0 -1
  110. package/www/build/p-0077a11d.entry.js +0 -11
  111. package/www/build/p-1d2e2973.entry.js +0 -1
  112. package/www/build/p-2d7d4420.js +0 -1
  113. package/www/build/p-5c900a8a.entry.js +0 -1
  114. package/www/build/p-6aae513c.js +0 -1
  115. package/www/build/p-7421c7ae.js +0 -1
  116. package/www/build/p-7d9778a3.entry.js +0 -1
  117. package/www/build/p-c4ae63e3.entry.js +0 -1
  118. package/www/build/p-cc013cd2.js +0 -1
  119. package/www/build/p-cddc96d8.js +0 -1
  120. /package/dist/collection/components/{vviinn-example-image/vviinn-example-image.css → vviinn-camera/vviinn-camera.css} +0 -0
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ const index = require('./index-711d38e6.js');
4
+
5
+ const WarningIcon = () => (index.h("svg", { slot: "icon", class: "icon", width: "32", height: "32", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
6
+ index.h("path", { d: "M16 2a14 14 0 1 0 0 28 14 14 0 0 0 0-28Zm0 26a12 12 0 1 1 0-24 12 12 0 0 1 0 24Z", fill: "#525252" }),
7
+ index.h("path", { d: "M17 8h-2v11h2V8Zm-1 14a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z", fill: "#525252" })));
8
+
9
+ exports.WarningIcon = WarningIcon;
@@ -3,5 +3,8 @@
3
3
  const findSlotElements = (el) => Array.from(el.querySelectorAll("[slot]"));
4
4
  const getSlotNames = (slotElements) => slotElements.map((el) => el.getAttribute("slot"));
5
5
 
6
+ const DEFAULT_EXAMPLE_IMAGE = "https://cdn.vviinn.com/assets/merchant/default/vviinn_img_start-hero.jpg";
7
+
8
+ exports.DEFAULT_EXAMPLE_IMAGE = DEFAULT_EXAMPLE_IMAGE;
6
9
  exports.findSlotElements = findSlotElements;
7
10
  exports.getSlotNames = getSlotNames;
@@ -2,20 +2,6 @@
2
2
 
3
3
  const index = require('./index-711d38e6.js');
4
4
 
5
- const campaignTypeNames = {
6
- VPR: "Similar Products",
7
- VPS: "Visual Search",
8
- VCS: "Cross-Selling",
9
- TPS: "Text Product Search",
10
- };
11
- const isVPR = (c) => c._tag === "VPR";
12
- function fold(onVPR, onVCS) {
13
- return (c) => (isVPR(c) ? onVPR() : onVCS());
14
- }
15
- function fromString(s) {
16
- return s === "VPR" ? { _tag: "VPR" } : { _tag: "VCS" };
17
- }
18
-
19
5
  const vprSlotNames = [
20
6
  "vviinn-recommendations-title",
21
7
  "vviinn-recommendations-subtitle",
@@ -104,7 +90,7 @@ const slotChangeListener = (component, element) => {
104
90
  const isElementChildTag = [
105
91
  "VVIINN-PRODUCT-CARD",
106
92
  "VVIINN-TEASER",
107
- "VVIINN-EXAMPLE-IMAGE",
93
+ "VVIINN-CAMERA",
108
94
  "VVIINN-PRIVACY-BADGE",
109
95
  "VVIINN-MODAL",
110
96
  "VVIINN-TEXT-SEARCH",
@@ -142,13 +128,7 @@ const slotChangeListener = (component, element) => {
142
128
  component.connectedCallback.call(component);
143
129
  };
144
130
 
145
- const version = "2.144.2";
146
-
147
131
  exports.SlotSkeleton = SlotSkeleton;
148
- exports.campaignTypeNames = campaignTypeNames;
149
- exports.fold = fold;
150
- exports.fromString = fromString;
151
132
  exports.productCardSlotNames = productCardSlotNames;
152
133
  exports.slotChangeListener = slotChangeListener;
153
- exports.version = version;
154
134
  exports.vprIconSlotName = vprIconSlotName;