vviinn-widgets 2.26.0 → 2.28.0
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/{customized-slots-aee3f39d.js → customized-slots-0a8d663c.js} +18 -1
- package/dist/cjs/{imageSearch.store-070ddd94.js → imageSearch.store-dc4e98b3.js} +1 -1
- package/dist/cjs/{index-a4becaff.js → index-5619b5ec.js} +3 -0
- package/dist/cjs/{index-64803798.js → index-ea4811ba.js} +585 -38
- package/dist/cjs/{index-6cfe5293.js → index-fcf59d51.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{package-835e33f7.js → package-2c1dfbe0.js} +1 -1
- package/dist/cjs/search-filters_20.cjs.entry.js +36 -10
- package/dist/cjs/vviinn-button.cjs.entry.js +2 -2
- package/dist/cjs/vviinn-carousel_3.cjs.entry.js +55 -17
- package/dist/cjs/vviinn-error.cjs.entry.js +1 -1
- package/dist/cjs/vviinn-preloader.cjs.entry.js +2 -2
- package/dist/cjs/vviinn-recommendations-sidebar.cjs.entry.js +15 -4
- package/dist/cjs/vviinn-vpr-button.cjs.entry.js +7 -3
- package/dist/cjs/vviinn-vps-button.cjs.entry.js +5 -6
- package/dist/cjs/vviinn-vps-widget.cjs.entry.js +10 -14
- package/dist/cjs/vviinn-widgets.cjs.js +2 -2
- package/dist/collection/components/customized-slots.js +1 -0
- package/dist/collection/components/vviinn-carousel/vviinn-carousel.js +19 -1
- package/dist/collection/components/vviinn-image-view/vviinn-image-view.js +31 -4
- package/dist/collection/components/vviinn-product-card/vviinn-product-card.css +35 -0
- package/dist/collection/components/vviinn-product-card/vviinn-product-card.js +76 -2
- package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.css +5 -0
- package/dist/collection/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.js +52 -1
- package/dist/collection/components/vviinn-vpr-button/stories/vviinn-vpr-button.stories.js +2 -0
- package/dist/collection/components/vviinn-vpr-button/vviinn-vpr-button.js +43 -0
- package/dist/collection/components/vviinn-vpr-widget/stories/vviinn-vpr-widget.stories.js +3 -0
- package/dist/collection/components/vviinn-vpr-widget/vviinn-vpr-vidget.js +93 -6
- package/dist/collection/components/vviinn-vps-widget/vviinn-vps-widget.js +4 -7
- package/dist/collection/locale/resources-vpr.js +2 -0
- package/dist/collection/tracking/index.js +3 -1
- package/dist/collection/tracking/models.js +2 -1
- package/dist/collection/tracking/product.js +10 -2
- package/dist/esm/{customized-slots-b372eaed.js → customized-slots-136b5f71.js} +16 -2
- package/dist/esm/{imageSearch.store-e6e053a1.js → imageSearch.store-c0f2a178.js} +1 -1
- package/dist/esm/{index-48ef9564.js → index-1f3eaf12.js} +3 -0
- package/dist/esm/{index-3cc48230.js → index-95fa66d2.js} +584 -39
- package/dist/esm/{index-33bc6d2c.js → index-d1215e03.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{package-7b9341e8.js → package-ed187917.js} +1 -1
- package/dist/esm/search-filters_20.entry.js +35 -9
- package/dist/esm/vviinn-button.entry.js +2 -2
- package/dist/esm/vviinn-carousel_3.entry.js +52 -14
- package/dist/esm/vviinn-error.entry.js +1 -1
- package/dist/esm/vviinn-preloader.entry.js +2 -2
- package/dist/esm/vviinn-recommendations-sidebar.entry.js +15 -4
- package/dist/esm/vviinn-vpr-button.entry.js +7 -3
- package/dist/esm/vviinn-vps-button.entry.js +4 -5
- package/dist/esm/vviinn-vps-widget.entry.js +9 -13
- package/dist/esm/vviinn-widgets.js +3 -3
- package/dist/types/components/vviinn-carousel/vviinn-carousel.d.ts +1 -0
- package/dist/types/components/vviinn-image-view/vviinn-image-view.d.ts +2 -2
- package/dist/types/components/vviinn-product-card/vviinn-product-card.d.ts +8 -0
- package/dist/types/components/vviinn-vpr-button/recommendations-sidebar/recommendations-sidebar.d.ts +5 -0
- package/dist/types/components/vviinn-vpr-button/vviinn-vpr-button.d.ts +6 -0
- package/dist/types/components/vviinn-vpr-widget/vviinn-vpr-vidget.d.ts +11 -0
- package/dist/types/components.d.ts +43 -0
- package/dist/types/tracking/index.d.ts +2 -0
- package/dist/types/tracking/models.d.ts +3 -2
- package/dist/types/tracking/product.d.ts +3 -1
- package/dist/vviinn-widgets/p-02a84a90.entry.js +1 -0
- package/dist/vviinn-widgets/p-17b380b1.entry.js +1 -0
- package/dist/vviinn-widgets/{p-34b551fb.entry.js → p-1b008776.entry.js} +1 -1
- package/dist/vviinn-widgets/p-1e83e6ba.js +2 -0
- package/dist/vviinn-widgets/{p-04b5d426.entry.js → p-48a3c418.entry.js} +1 -1
- package/dist/vviinn-widgets/p-5303d4a8.js +1 -0
- package/dist/vviinn-widgets/p-6b12aed8.entry.js +1 -0
- package/dist/vviinn-widgets/{p-0cd7b987.entry.js → p-774581dc.entry.js} +2 -2
- package/{www/build/p-9d6d9d58.js → dist/vviinn-widgets/p-987a8e9f.js} +1 -1
- package/dist/vviinn-widgets/{p-60ea7665.js → p-a69d3568.js} +1 -1
- package/dist/vviinn-widgets/{p-7a97ad69.entry.js → p-a8515396.entry.js} +1 -1
- package/dist/vviinn-widgets/p-bf490f6f.entry.js +1 -0
- package/dist/vviinn-widgets/p-f9858364.entry.js +1 -0
- package/dist/vviinn-widgets/p-fc5a0363.js +1 -0
- package/dist/vviinn-widgets/p-ffa567ee.js +1 -0
- package/dist/vviinn-widgets/vviinn-widgets.esm.js +1 -1
- package/package.json +2 -2
- package/www/build/p-02a84a90.entry.js +1 -0
- package/www/build/p-17b380b1.entry.js +1 -0
- package/www/build/{p-34b551fb.entry.js → p-1b008776.entry.js} +1 -1
- package/www/build/p-1e83e6ba.js +2 -0
- package/www/build/{p-04b5d426.entry.js → p-48a3c418.entry.js} +1 -1
- package/www/build/p-5303d4a8.js +1 -0
- package/www/build/p-6b12aed8.entry.js +1 -0
- package/www/build/{p-0cd7b987.entry.js → p-774581dc.entry.js} +2 -2
- package/www/build/{p-aafe2def.js → p-8b25b766.js} +3 -3
- package/{dist/vviinn-widgets/p-9d6d9d58.js → www/build/p-987a8e9f.js} +1 -1
- package/www/build/{p-60ea7665.js → p-a69d3568.js} +1 -1
- package/www/build/{p-7a97ad69.entry.js → p-a8515396.entry.js} +1 -1
- package/www/build/p-bf490f6f.entry.js +1 -0
- package/www/build/p-f9858364.entry.js +1 -0
- package/www/build/p-fc5a0363.js +1 -0
- package/www/build/p-ffa567ee.js +1 -0
- package/www/build/vviinn-widgets.esm.js +1 -1
- package/www/index.html +9 -1
- package/dist/cjs/Campaign-778b5b2c.js +0 -18
- package/dist/esm/Campaign-1af6ed38.js +0 -14
- package/dist/vviinn-widgets/p-4063d262.entry.js +0 -1
- package/dist/vviinn-widgets/p-53eacbe3.js +0 -1
- package/dist/vviinn-widgets/p-67ccdf9f.js +0 -1
- package/dist/vviinn-widgets/p-709d32e1.entry.js +0 -1
- package/dist/vviinn-widgets/p-727c521a.entry.js +0 -1
- package/dist/vviinn-widgets/p-9c27e9cb.entry.js +0 -1
- package/dist/vviinn-widgets/p-badde98c.js +0 -1
- package/dist/vviinn-widgets/p-c0f125c5.entry.js +0 -1
- package/dist/vviinn-widgets/p-d3ac1640.js +0 -1
- package/dist/vviinn-widgets/p-fa17e81f.js +0 -2
- package/www/build/p-4063d262.entry.js +0 -1
- package/www/build/p-53eacbe3.js +0 -1
- package/www/build/p-67ccdf9f.js +0 -1
- package/www/build/p-709d32e1.entry.js +0 -1
- package/www/build/p-727c521a.entry.js +0 -1
- package/www/build/p-9c27e9cb.entry.js +0 -1
- package/www/build/p-badde98c.js +0 -1
- package/www/build/p-c0f125c5.entry.js +0 -1
- package/www/build/p-d3ac1640.js +0 -1
- package/www/build/p-fa17e81f.js +0 -2
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-5619b5ec.js');
|
|
4
|
+
|
|
5
|
+
const campaignTypeNames = {
|
|
6
|
+
VPR: "Similar Products",
|
|
7
|
+
VPS: "Visual Search",
|
|
8
|
+
VCS: "Cross-Selling",
|
|
9
|
+
};
|
|
10
|
+
const isVPR = (c) => c._tag === "VPR";
|
|
11
|
+
function fold(onVPR, onVCS) {
|
|
12
|
+
return (c) => (isVPR(c) ? onVPR() : onVCS());
|
|
13
|
+
}
|
|
14
|
+
function fromString(s) {
|
|
15
|
+
return s === "VPR" ? { _tag: "VPR" } : { _tag: "VCS" };
|
|
16
|
+
}
|
|
4
17
|
|
|
5
18
|
const defaultSlotsNames = [
|
|
6
19
|
"vviinn-onboarding-title",
|
|
@@ -19,6 +32,7 @@ const defaultSlotsNames = [
|
|
|
19
32
|
"vviinn-image-upload-button-text",
|
|
20
33
|
"vviinn-privacy-badge-text",
|
|
21
34
|
"vviinn-image-search-modal-title",
|
|
35
|
+
"vviinn-basket-button-text",
|
|
22
36
|
];
|
|
23
37
|
const renderNamedSlot = (name) => index.h("slot", { name: name });
|
|
24
38
|
const SlotSkeleton = () => defaultSlotsNames.map(renderNamedSlot);
|
|
@@ -51,4 +65,7 @@ const slotChangeListener = (component, element) => {
|
|
|
51
65
|
};
|
|
52
66
|
|
|
53
67
|
exports.SlotSkeleton = SlotSkeleton;
|
|
68
|
+
exports.campaignTypeNames = campaignTypeNames;
|
|
69
|
+
exports.fold = fold;
|
|
70
|
+
exports.fromString = fromString;
|
|
54
71
|
exports.slotChangeListener = slotChangeListener;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-5619b5ec.js');
|
|
4
4
|
|
|
5
5
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
6
6
|
|
|
@@ -1156,6 +1156,9 @@ const postUpdateComponent = (hostRef) => {
|
|
|
1156
1156
|
const endPostUpdate = createTime('postUpdate', tagName);
|
|
1157
1157
|
const instance = hostRef.$lazyInstance$ ;
|
|
1158
1158
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1159
|
+
{
|
|
1160
|
+
safeCall(instance, 'componentDidRender');
|
|
1161
|
+
}
|
|
1159
1162
|
if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
|
|
1160
1163
|
hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
|
|
1161
1164
|
{
|