@covet-pics/covet-pics-widget 0.134.8 → 0.134.9
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/covet-pics-gallery-grid_3.cjs.entry.js +8 -10
- package/dist/cjs/covet-pics-gallery-grid_3.cjs.entry.js.map +1 -1
- package/dist/cjs/covet-pics-gallery-header_5.cjs.entry.js +16 -19
- package/dist/cjs/covet-pics-gallery-header_5.cjs.entry.js.map +1 -1
- package/dist/cjs/covet-pics-highlighted-hotspots_2.cjs.entry.js +1 -1
- package/dist/cjs/covet-pics-widget.cjs.entry.js +2 -2
- package/dist/cjs/covet-pics-widget.cjs.entry.js.map +1 -1
- package/dist/cjs/covet-pics-widget.cjs.js +1 -1
- package/dist/cjs/{getters-c3c47af0.js → getters-273bc5a6.js} +3 -2
- package/dist/cjs/getters-273bc5a6.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/covet-pics-gallery-grid/covet-pics-gallery-grid.js +3 -5
- package/dist/collection/components/covet-pics-gallery-grid/covet-pics-gallery-grid.js.map +1 -1
- package/dist/collection/components/covet-pics-gallery-header/covet-pics-gallery-header.js +8 -101
- package/dist/collection/components/covet-pics-gallery-header/covet-pics-gallery-header.js.map +1 -1
- package/dist/collection/components/covet-pics-gallery-item/covet-pics-gallery-item.js +4 -22
- package/dist/collection/components/covet-pics-gallery-item/covet-pics-gallery-item.js.map +1 -1
- package/dist/collection/components/covet-pics-gallery-item-detail/covet-pics-gallery-item-detail.js +3 -19
- package/dist/collection/components/covet-pics-gallery-item-detail/covet-pics-gallery-item-detail.js.map +1 -1
- package/dist/collection/components/covet-pics-gallery-slider/covet-pics-gallery-slider.js +4 -4
- package/dist/collection/components/covet-pics-gallery-slider/covet-pics-gallery-slider.js.map +1 -1
- package/dist/collection/store/getters.js +2 -1
- package/dist/collection/store/getters.js.map +1 -1
- package/dist/collection/store/settings.js +1 -1
- package/dist/collection/store/settings.js.map +1 -1
- package/dist/covet-pics-widget/covet-pics-widget.esm.js +1 -1
- package/dist/covet-pics-widget/covet-pics-widget.esm.js.map +1 -1
- package/dist/covet-pics-widget/p-2c2b8219.system.js +5 -0
- package/dist/covet-pics-widget/p-2c2b8219.system.js.map +1 -0
- package/dist/covet-pics-widget/{p-01f6a4f7.entry.js → p-4c2421e4.entry.js} +2 -2
- package/dist/covet-pics-widget/p-7892fc26.system.entry.js +41 -0
- package/dist/covet-pics-widget/p-7892fc26.system.entry.js.map +1 -0
- package/dist/covet-pics-widget/{p-aec5771a.entry.js → p-7d82d763.entry.js} +2 -2
- package/dist/covet-pics-widget/p-7d82d763.entry.js.map +1 -0
- package/dist/covet-pics-widget/p-8e2f5a57.system.js +1 -1
- package/dist/covet-pics-widget/p-8e2f5a57.system.js.map +1 -1
- package/dist/covet-pics-widget/p-a0fa439b.js +5 -0
- package/dist/covet-pics-widget/p-a0fa439b.js.map +1 -0
- package/dist/covet-pics-widget/{p-29984c28.system.entry.js → p-a33e0f9c.system.entry.js} +2 -2
- package/dist/covet-pics-widget/p-a33e0f9c.system.entry.js.map +1 -0
- package/dist/covet-pics-widget/{p-f0175ff1.system.entry.js → p-a61a0265.system.entry.js} +2 -2
- package/dist/covet-pics-widget/p-ca659eb7.system.entry.js +5 -0
- package/dist/covet-pics-widget/p-ca659eb7.system.entry.js.map +1 -0
- package/dist/covet-pics-widget/{p-4739ba1f.entry.js → p-e405bd3d.entry.js} +2 -2
- package/dist/covet-pics-widget/p-e405bd3d.entry.js.map +1 -0
- package/dist/covet-pics-widget/p-eda5e86a.entry.js +41 -0
- package/dist/covet-pics-widget/p-eda5e86a.entry.js.map +1 -0
- package/dist/esm/covet-pics-gallery-grid_3.entry.js +8 -10
- package/dist/esm/covet-pics-gallery-grid_3.entry.js.map +1 -1
- package/dist/esm/covet-pics-gallery-header_5.entry.js +16 -19
- package/dist/esm/covet-pics-gallery-header_5.entry.js.map +1 -1
- package/dist/esm/covet-pics-highlighted-hotspots_2.entry.js +1 -1
- package/dist/esm/covet-pics-widget.entry.js +2 -2
- package/dist/esm/covet-pics-widget.entry.js.map +1 -1
- package/dist/esm/covet-pics-widget.js +1 -1
- package/dist/esm/{getters-c6e7e777.js → getters-1bca6e55.js} +3 -2
- package/dist/esm/getters-1bca6e55.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm-es5/covet-pics-gallery-grid_3.entry.js +2 -2
- package/dist/esm-es5/covet-pics-gallery-grid_3.entry.js.map +1 -1
- package/dist/esm-es5/covet-pics-gallery-header_5.entry.js +1 -1
- package/dist/esm-es5/covet-pics-gallery-header_5.entry.js.map +1 -1
- package/dist/esm-es5/covet-pics-highlighted-hotspots_2.entry.js +1 -1
- package/dist/esm-es5/covet-pics-widget.entry.js +1 -1
- package/dist/esm-es5/covet-pics-widget.entry.js.map +1 -1
- package/dist/esm-es5/covet-pics-widget.js +1 -1
- package/dist/esm-es5/covet-pics-widget.js.map +1 -1
- package/dist/esm-es5/getters-1bca6e55.js +5 -0
- package/dist/esm-es5/getters-1bca6e55.js.map +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/types/components/covet-pics-gallery-header/covet-pics-gallery-header.d.ts +1 -20
- package/dist/types/components/covet-pics-gallery-item/covet-pics-gallery-item.d.ts +0 -4
- package/dist/types/components/covet-pics-gallery-item-detail/covet-pics-gallery-item-detail.d.ts +1 -4
- package/dist/types/components.d.ts +0 -56
- package/dist/types/store/getters.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/getters-c3c47af0.js.map +0 -1
- package/dist/covet-pics-widget/p-2258b8cb.system.entry.js +0 -5
- package/dist/covet-pics-widget/p-2258b8cb.system.entry.js.map +0 -1
- package/dist/covet-pics-widget/p-27e5c022.system.entry.js +0 -41
- package/dist/covet-pics-widget/p-27e5c022.system.entry.js.map +0 -1
- package/dist/covet-pics-widget/p-29984c28.system.entry.js.map +0 -1
- package/dist/covet-pics-widget/p-4739ba1f.entry.js.map +0 -1
- package/dist/covet-pics-widget/p-aec5771a.entry.js.map +0 -1
- package/dist/covet-pics-widget/p-d6d36b2e.js +0 -5
- package/dist/covet-pics-widget/p-d6d36b2e.js.map +0 -1
- package/dist/covet-pics-widget/p-e7092b2f.entry.js +0 -41
- package/dist/covet-pics-widget/p-e7092b2f.entry.js.map +0 -1
- package/dist/covet-pics-widget/p-f443e99f.system.js +0 -5
- package/dist/covet-pics-widget/p-f443e99f.system.js.map +0 -1
- package/dist/esm/getters-c6e7e777.js.map +0 -1
- package/dist/esm-es5/getters-c6e7e777.js +0 -5
- package/dist/esm-es5/getters-c6e7e777.js.map +0 -1
- /package/dist/covet-pics-widget/{p-01f6a4f7.entry.js.map → p-4c2421e4.entry.js.map} +0 -0
- /package/dist/covet-pics-widget/{p-f0175ff1.system.entry.js.map → p-a61a0265.system.entry.js.map} +0 -0
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
8
8
|
const index = require('./index-5415b8fd.js');
|
|
9
9
|
const utils$1 = require('./utils-43150e49.js');
|
|
10
10
|
const _commonjsHelpers = require('./_commonjsHelpers-0cd0785e.js');
|
|
11
|
-
const getters = require('./getters-
|
|
11
|
+
const getters = require('./getters-273bc5a6.js');
|
|
12
12
|
const popup = require('./popup-360b40ea.js');
|
|
13
13
|
const a11y = require('./a11y-c38c0cb2.js');
|
|
14
14
|
const slider = require('./slider-ccbd22be.js');
|
|
@@ -3617,7 +3617,7 @@ const CovetPicsGalleryGrid = class {
|
|
|
3617
3617
|
const itemWidth = this.isDesktopScreen
|
|
3618
3618
|
? (100 - (this.settings.item_padding * (this.settings.gallery_photos_per_row - 1))) / this.settings.gallery_photos_per_row
|
|
3619
3619
|
: (100 - (this.settings.item_mobile_padding * (this.settings.gallery_mobile_photos_per_row - 1))) / this.settings.gallery_mobile_photos_per_row;
|
|
3620
|
-
return (index.h("covet-pics-gallery-item", { class: { "grid-item": this.layout === "grid", "collage-item": this.layout === "collage" }, highlighted: this.isHighlighted(idx), "image-url": utils$1.getCoverImage(item.cover_images.medium_resolution, item.images.medium_resolution), "image-high-resolution-url": utils$1.getCoverImage(item.cover_images.high_resolution, item.images.high_resolution), "image-responsive-sizes": utils$1.getSizesForResponsiveImage(this.settings.gallery_photos_per_row, this.settings.gallery_mobile_photos_per_row, this.isHighlighted(idx)), "item-id": item.id, "item-source": item.source, "item-index": idx, caption: item.caption, "item-type": item.data_type, links: item.links,
|
|
3620
|
+
return (index.h("covet-pics-gallery-item", { class: { "grid-item": this.layout === "grid", "collage-item": this.layout === "collage" }, highlighted: this.isHighlighted(idx), "image-url": utils$1.getCoverImage(item.cover_images.medium_resolution, item.images.medium_resolution), "image-high-resolution-url": utils$1.getCoverImage(item.cover_images.high_resolution, item.images.high_resolution), "image-responsive-sizes": utils$1.getSizesForResponsiveImage(this.settings.gallery_photos_per_row, this.settings.gallery_mobile_photos_per_row, this.isHighlighted(idx)), "item-id": item.id, "item-source": item.source, "item-index": idx, caption: item.caption, "item-type": item.data_type, links: item.links, url: item.url, rating: item.rating !== null ? item.rating : 0, "user-name": item.username, "item-width": itemWidth, "created-time": item.created_time, role: "listitem", "aria-label": `${this.layout}-item ${idx + 1}/${itemsLength}, post created ${utils$1.getDateFromTimestamp(item.created_time)}`, "alt-tag": this.itemImgAltTag(item.caption, idx, itemsLength, item.created_time, this.layout), appStore: this.appStore }));
|
|
3621
3621
|
}
|
|
3622
3622
|
renderStandardUploadItem(item, idx, itemsLength) {
|
|
3623
3623
|
return index.h("covet-pics-gallery-item", { class: { "grid-item": this.layout === "grid", "collage-item": this.layout === "collage" }, "image-url": item.imageUrl, "item-source": item.source, "item-index": idx, appStore: this.appStore, "aria-label": `click on for upload image in gallery, ${this.layout}-item ${idx + 1}/${itemsLength},`, role: "listitem" });
|
|
@@ -3629,12 +3629,10 @@ const CovetPicsGalleryGrid = class {
|
|
|
3629
3629
|
const itemWidth = this.isDesktopScreen
|
|
3630
3630
|
? (100 - (this.settings.item_padding * (this.settings.gallery_photos_per_row - 1))) / this.settings.gallery_photos_per_row
|
|
3631
3631
|
: (100 - (this.settings.item_mobile_padding * (this.settings.gallery_mobile_photos_per_row - 1))) / this.settings.gallery_mobile_photos_per_row;
|
|
3632
|
-
return index.h("covet-pics-gallery-item-detail", { class: { "grid-item": this.layout === "grid", "collage-item": this.layout === "collage", "highlighted": this.isHighlighted(idx) }, highlighted: this.isHighlighted(idx), "image-url": utils$1.getCoverImage(item.cover_images.medium_resolution, item.images.medium_resolution), "image-high-resolution-url": utils$1.getCoverImage(item.cover_images.high_resolution, item.images.high_resolution), "image-responsive-sizes": utils$1.getSizesForResponsiveImage(this.settings.gallery_photos_per_row, this.settings.gallery_mobile_photos_per_row), "item-id": item.id, "item-index": idx, "item-source": item.source, "item-type": item.data_type, "item-width": itemWidth, links: item.links, url: item.url,
|
|
3632
|
+
return index.h("covet-pics-gallery-item-detail", { class: { "grid-item": this.layout === "grid", "collage-item": this.layout === "collage", "highlighted": this.isHighlighted(idx) }, highlighted: this.isHighlighted(idx), "image-url": utils$1.getCoverImage(item.cover_images.medium_resolution, item.images.medium_resolution), "image-high-resolution-url": utils$1.getCoverImage(item.cover_images.high_resolution, item.images.high_resolution), "image-responsive-sizes": utils$1.getSizesForResponsiveImage(this.settings.gallery_photos_per_row, this.settings.gallery_mobile_photos_per_row), "item-id": item.id, "item-index": idx, "item-source": item.source, "item-type": item.data_type, "item-width": itemWidth, links: item.links, url: item.url, "user-name": item.username, caption: item.caption, "created-time": item.created_time, verified: item.verified, rating: item.rating !== null ? item.rating : 0, role: "listitem", "aria-label": `${this.layout}-item ${idx + 1}/${itemsLength}, post created ${utils$1.getDateFromTimestamp(item.created_time)}`, "alt-tag": this.itemImgAltTag(item.caption, idx, itemsLength, item.created_time, this.layout), appStore: this.appStore });
|
|
3633
3633
|
}
|
|
3634
3634
|
renderHeader() {
|
|
3635
|
-
return (index.h("covet-pics-gallery-header", { "product-title": this.productTitle, rating: this.rating,
|
|
3636
|
-
// TODO remove props drilling END
|
|
3637
|
-
appStore: this.appStore, "aria-hidden": `${this.isGridDisabled}` }));
|
|
3635
|
+
return (index.h("covet-pics-gallery-header", { "product-title": this.productTitle, rating: this.rating, breakdown: this.breakdown, appStore: this.appStore, "aria-hidden": `${this.isGridDisabled}` }));
|
|
3638
3636
|
}
|
|
3639
3637
|
render() {
|
|
3640
3638
|
if (typeof this.items !== "undefined" && typeof this.loader !== "undefined") {
|
|
@@ -4168,22 +4166,22 @@ const CovetPicsGallerySlider = class {
|
|
|
4168
4166
|
: `slide ${idx + 1}/${itemsLength}, post created ${utils$1.getDateFromTimestamp(createdTime)}`;
|
|
4169
4167
|
}
|
|
4170
4168
|
renderStandardUploadItem(item, idx, itemsLength) {
|
|
4171
|
-
return (index.h("covet-pics-gallery-item", { class: "swiper-slide slide",
|
|
4169
|
+
return (index.h("covet-pics-gallery-item", { class: "swiper-slide slide", "item-source": item.source, "image-url": item.imageUrl, "item-index": idx, "aria-label": `click on for upload image in slider, slide ${idx + 1}/${itemsLength},`, appStore: this.appStore }));
|
|
4172
4170
|
}
|
|
4173
4171
|
renderDetailUploadItem(item, idx, itemsLength) {
|
|
4174
|
-
return (index.h("covet-pics-gallery-item", { class: "swiper-slide slide",
|
|
4172
|
+
return (index.h("covet-pics-gallery-item", { class: "swiper-slide slide", "item-source": item.source, "image-url": item.imageUrl, "item-index": idx, "aria-label": `click on for upload image in slider, slide ${idx + 1}/${itemsLength},`, appStore: this.appStore }));
|
|
4175
4173
|
}
|
|
4176
4174
|
renderStandardItem(item, idx, itemsLength) {
|
|
4177
4175
|
const itemWidth = this.isDesktopScreen
|
|
4178
4176
|
? (100 - (this.desktopItemPadding * (this.desktopPhotosPerRow - 1))) / this.desktopPhotosPerRow
|
|
4179
4177
|
: (100 - (this.mobileItemPadding * (this.mobilePhotosPerRow - 1))) / this.mobilePhotosPerRow;
|
|
4180
|
-
return (index.h("covet-pics-gallery-item", { class: "swiper-slide",
|
|
4178
|
+
return (index.h("covet-pics-gallery-item", { class: "swiper-slide", "image-url": utils$1.getCoverImage(item.cover_images.medium_resolution, item.images.medium_resolution), "image-high-resolution-url": utils$1.getCoverImage(item.cover_images.high_resolution, item.images.high_resolution), "image-responsive-sizes": utils$1.getSizesForResponsiveImage(this.desktopPhotosPerRow, this.mobilePhotosPerRow), "item-id": item.id, "item-source": item.source, links: item.links, url: item.url, "aria-label": this.itemImgAltTag(item.caption, idx, itemsLength, item.created_time), rating: item.rating !== null ? item.rating : 0, "user-name": item.username, "created-time": item.created_time, "item-type": item.data_type, caption: item.caption, "item-width": itemWidth, "item-index": idx, appStore: this.appStore }));
|
|
4181
4179
|
}
|
|
4182
4180
|
renderDetailItem(item, idx, itemsLength) {
|
|
4183
4181
|
const itemWidth = this.isDesktopScreen
|
|
4184
4182
|
? (100 - (this.desktopItemPadding * (this.desktopPhotosPerRow - 1))) / this.desktopPhotosPerRow
|
|
4185
4183
|
: (100 - (this.mobileItemPadding * (this.mobilePhotosPerRow - 1))) / this.mobilePhotosPerRow;
|
|
4186
|
-
return (index.h("covet-pics-gallery-item-detail", { class: "swiper-slide",
|
|
4184
|
+
return (index.h("covet-pics-gallery-item-detail", { class: "swiper-slide", "image-url": utils$1.getCoverImage(item.cover_images.medium_resolution, item.images.medium_resolution), "image-high-resolution-url": utils$1.getCoverImage(item.cover_images.high_resolution, item.images.high_resolution), "image-responsive-sizes": utils$1.getSizesForResponsiveImage(this.desktopPhotosPerRow, this.mobilePhotosPerRow), "item-id": item.id, "item-source": item.source, "item-style": this.itemStyle, "item-type": item.data_type, "item-width": itemWidth, "lazy-load": true, links: item.links, url: item.url, "user-name": item.username, caption: item.caption, "created-time": item.created_time, rating: item.rating !== null ? item.rating : 0, verified: item.verified, altTag: this.itemImgAltTag(item.caption, idx, itemsLength, item.created_time), "aria-label": `slide ${idx + 1} of ${itemsLength} in main slider`, appStore: this.appStore, "item-index": idx }));
|
|
4187
4185
|
}
|
|
4188
4186
|
render() {
|
|
4189
4187
|
if (this.items !== undefined) {
|