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.
- package/dist/cjs/WarningIcon-65f4b692.js +9 -0
- package/dist/cjs/{index-d5006d29.js → constants-0a36f053.js} +3 -0
- package/dist/cjs/{package-48fafeab.js → customized-slots-93d9f5c9.js} +1 -21
- package/dist/cjs/i18next-74ff3413.js +2258 -0
- package/dist/cjs/index-711d38e6.js +10 -10
- package/dist/cjs/{index-9e399164.js → index-de717525.js} +32 -2368
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/package-5e8bdc25.js +22 -0
- package/dist/cjs/resources-f8c5d64c.js +119 -0
- package/dist/cjs/{search-filters_19.cjs.entry.js → search-filters_13.cjs.entry.js} +622 -696
- package/dist/cjs/{search.store-c28f0090.js → search.store-5d72b491.js} +5 -0
- package/dist/cjs/vviinn-carousel_9.cjs.entry.js +40 -38
- package/dist/cjs/vviinn-detected-object_7.cjs.entry.js +332 -0
- package/dist/cjs/vviinn-selected-filters.cjs.entry.js +1 -1
- package/dist/cjs/vviinn-text-search.cjs.entry.js +225 -0
- package/dist/cjs/vviinn-vps-button.cjs.entry.js +7 -7
- package/dist/cjs/vviinn-widgets.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/customized-slots.js +1 -1
- package/dist/collection/components/{vviinn-example-image/vviinn-example-image.js → vviinn-camera/vviinn-camera.js} +25 -4
- package/dist/collection/components/vviinn-cropper/vviinn-cropper.js +20 -15
- package/dist/collection/components/vviinn-image-selector/vviinn-image-selector.js +14 -26
- package/dist/collection/components/vviinn-results/vviinn-results.css +3 -15
- package/dist/collection/components/vviinn-results/vviinn-results.js +3 -1
- package/dist/collection/components/vviinn-text-search/vviinn-text-search.css +19 -5
- package/dist/collection/components/vviinn-text-search/vviinn-text-search.js +14 -14
- package/dist/collection/components/vviinn-vps-button/vviinn-vps-button.js +25 -3
- package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js +99 -66
- package/dist/collection/locale/resources.js +2 -2
- package/dist/collection/store/search.store.js +4 -0
- package/dist/esm/WarningIcon-f5ee2147.js +7 -0
- package/dist/esm/constants-c2f6bdfe.js +6 -0
- package/dist/esm/{package-53a7d414.js → customized-slots-790b647b.js} +2 -18
- package/dist/esm/i18next-387f2b0a.js +2256 -0
- package/dist/esm/{index-54d4fcfb.js → index-4bb33163.js} +30 -2367
- package/dist/esm/index-8e1dd483.js +10 -10
- package/dist/esm/loader.js +1 -1
- package/dist/esm/package-97a65639.js +17 -0
- package/dist/esm/resources-d6b679c9.js +117 -0
- package/dist/esm/{search-filters_19.entry.js → search-filters_13.entry.js} +607 -675
- package/dist/esm/{search.store-3c94f453.js → search.store-c897e270.js} +5 -1
- package/dist/esm/vviinn-carousel_9.entry.js +6 -4
- package/dist/esm/vviinn-detected-object_7.entry.js +322 -0
- package/dist/esm/vviinn-selected-filters.entry.js +1 -1
- package/dist/esm/vviinn-text-search.entry.js +221 -0
- package/dist/esm/vviinn-vps-button.entry.js +6 -6
- package/dist/esm/vviinn-widgets.js +1 -1
- package/dist/types/components/{vviinn-example-image/vviinn-example-image.d.ts → vviinn-camera/vviinn-camera.d.ts} +1 -0
- package/dist/types/components/vviinn-cropper/vviinn-cropper.d.ts +2 -1
- package/dist/types/components/vviinn-image-selector/vviinn-image-selector.d.ts +2 -2
- package/dist/types/components/vviinn-text-search/vviinn-text-search.d.ts +4 -3
- package/dist/types/components/vviinn-vps-button/vviinn-vps-button.d.ts +2 -0
- package/dist/types/components.d.ts +45 -42
- package/dist/types/store/search.store.d.ts +1 -0
- package/dist/types/widget/types.d.ts +1 -1
- package/dist/vviinn-widgets/p-21d6d12a.entry.js +11 -0
- package/dist/vviinn-widgets/p-2aede143.js +1 -0
- package/dist/vviinn-widgets/p-2e76a5c3.js +1 -0
- package/dist/vviinn-widgets/p-380b7211.js +1 -0
- package/dist/vviinn-widgets/p-43e147d6.js +1 -0
- package/dist/vviinn-widgets/{p-91dc1441.entry.js → p-5b02ea07.entry.js} +1 -1
- package/dist/vviinn-widgets/p-645df5cc.js +1 -0
- package/dist/vviinn-widgets/p-75e70eef.entry.js +1 -0
- package/dist/vviinn-widgets/p-86d8f6bc.entry.js +1 -0
- package/dist/vviinn-widgets/p-92c02a9f.js +1 -0
- package/dist/vviinn-widgets/p-a320e027.entry.js +1 -0
- package/dist/vviinn-widgets/p-b2aa3af6.js +1 -0
- package/dist/vviinn-widgets/p-cbed5a0f.entry.js +1 -0
- package/dist/vviinn-widgets/{p-9b3e56ea.js → p-f601d5c0.js} +1 -1
- package/dist/vviinn-widgets/vviinn-widgets.esm.js +1 -1
- package/package.json +1 -1
- package/www/build/p-21d6d12a.entry.js +11 -0
- package/www/build/p-2aede143.js +1 -0
- package/www/build/p-2e76a5c3.js +1 -0
- package/www/build/p-380b7211.js +1 -0
- package/www/build/p-43e147d6.js +1 -0
- package/www/build/{p-91dc1441.entry.js → p-5b02ea07.entry.js} +1 -1
- package/www/build/p-645df5cc.js +1 -0
- package/www/build/p-75e70eef.entry.js +1 -0
- package/www/build/p-86d8f6bc.entry.js +1 -0
- package/www/build/p-92c02a9f.js +1 -0
- package/www/build/p-a320e027.entry.js +1 -0
- package/www/build/p-b2aa3af6.js +1 -0
- package/www/build/p-cbed5a0f.entry.js +1 -0
- package/www/build/{p-9b3e56ea.js → p-f601d5c0.js} +1 -1
- package/www/build/vviinn-widgets.esm.js +1 -1
- package/dist/cjs/SearchModalUploadIcon-23f00a14.js +0 -8
- package/dist/cjs/constants-7684cbfc.js +0 -5
- package/dist/cjs/index-4c9a5dbb.js +0 -40
- package/dist/cjs/vviinn-preloader.cjs.entry.js +0 -19
- package/dist/cjs/vviinn-vps-widget.cjs.entry.js +0 -443
- package/dist/esm/SearchModalUploadIcon-08db80ec.js +0 -6
- package/dist/esm/constants-8bf233a9.js +0 -3
- package/dist/esm/index-cd60a76c.js +0 -4
- package/dist/esm/index-f38df7a0.js +0 -36
- package/dist/esm/vviinn-preloader.entry.js +0 -15
- package/dist/esm/vviinn-vps-widget.entry.js +0 -439
- package/dist/vviinn-widgets/p-001ff706.js +0 -1
- package/dist/vviinn-widgets/p-0077a11d.entry.js +0 -11
- package/dist/vviinn-widgets/p-1d2e2973.entry.js +0 -1
- package/dist/vviinn-widgets/p-2d7d4420.js +0 -1
- package/dist/vviinn-widgets/p-5c900a8a.entry.js +0 -1
- package/dist/vviinn-widgets/p-6aae513c.js +0 -1
- package/dist/vviinn-widgets/p-7421c7ae.js +0 -1
- package/dist/vviinn-widgets/p-7d9778a3.entry.js +0 -1
- package/dist/vviinn-widgets/p-c4ae63e3.entry.js +0 -1
- package/dist/vviinn-widgets/p-cc013cd2.js +0 -1
- package/dist/vviinn-widgets/p-cddc96d8.js +0 -1
- package/www/build/p-001ff706.js +0 -1
- package/www/build/p-0077a11d.entry.js +0 -11
- package/www/build/p-1d2e2973.entry.js +0 -1
- package/www/build/p-2d7d4420.js +0 -1
- package/www/build/p-5c900a8a.entry.js +0 -1
- package/www/build/p-6aae513c.js +0 -1
- package/www/build/p-7421c7ae.js +0 -1
- package/www/build/p-7d9778a3.entry.js +0 -1
- package/www/build/p-c4ae63e3.entry.js +0 -1
- package/www/build/p-cc013cd2.js +0 -1
- package/www/build/p-cddc96d8.js +0 -1
- /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-
|
|
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;
|