@covet-pics/covet-pics-widget 0.166.2 → 0.167.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/covet-pics-gallery-grid_3.cjs.entry.js +1 -1
- package/dist/cjs/covet-pics-gallery-header_6.cjs.entry.js +1 -1
- package/dist/cjs/covet-pics-highlighted-hotspots_2.cjs.entry.js +1 -1
- package/dist/cjs/covet-pics-widget.cjs.entry.js +1 -1
- package/dist/cjs/{getters-BPN7Xeb9.js → getters-D8jVc2zI.js} +2 -0
- package/dist/collection/store/getters.js +2 -0
- package/dist/covet-pics-widget/covet-pics-widget.esm.js +1 -1
- package/dist/covet-pics-widget/{p-e8c415cf.entry.js → p-18663f09.entry.js} +4 -4
- package/dist/covet-pics-widget/{p-f72362c8.entry.js → p-46b2512c.entry.js} +1 -1
- package/dist/covet-pics-widget/{p-34b8064a.system.entry.js → p-48b7f554.system.entry.js} +1 -1
- package/dist/covet-pics-widget/{p-77ff9b19.entry.js → p-4c35255b.entry.js} +1 -1
- package/dist/covet-pics-widget/{p-38580fb5.system.entry.js → p-848e4b25.system.entry.js} +1 -1
- package/dist/covet-pics-widget/{p-8ea31ed9.entry.js → p-9a32b604.entry.js} +1 -1
- package/dist/covet-pics-widget/p-BfpfyqAf.system.js +4 -0
- package/dist/covet-pics-widget/p-C5ofYrUT.js +4 -0
- package/dist/covet-pics-widget/p-DIWtHfnX.system.js +1 -1
- package/dist/covet-pics-widget/{p-20b1e489.system.entry.js → p-b9ebfbf3.system.entry.js} +1 -1
- package/dist/covet-pics-widget/{p-fea07721.system.entry.js → p-e065ad82.system.entry.js} +1 -1
- package/dist/esm/covet-pics-gallery-grid_3.entry.js +1 -1
- package/dist/esm/covet-pics-gallery-header_6.entry.js +1 -1
- package/dist/esm/covet-pics-highlighted-hotspots_2.entry.js +1 -1
- package/dist/esm/covet-pics-widget.entry.js +1 -1
- package/dist/esm/{getters-ChgwQpV5.js → getters-C5ofYrUT.js} +2 -0
- package/dist/esm-es5/covet-pics-gallery-grid_3.entry.js +1 -1
- package/dist/esm-es5/covet-pics-gallery-header_6.entry.js +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/getters-C5ofYrUT.js +4 -0
- package/package.json +1 -1
- package/dist/covet-pics-widget/p-C9MEQzW0.system.js +0 -4
- package/dist/covet-pics-widget/p-ChgwQpV5.js +0 -4
- package/dist/esm-es5/getters-ChgwQpV5.js +0 -4
|
@@ -6,7 +6,7 @@ import { b as getRandomId, d as buildEvent, g as getSize, j as hexToRGBA, a as g
|
|
|
6
6
|
import { a as sortUpdated, b as setPopupOpen, c as setUploadOpen } from './modals-B4bZnaAK.js';
|
|
7
7
|
import { P as ProgressRating, D as DynamicTag, d as StarRating, B as BadgeVerified, e as BadgeHoverVerified, I as Icon, f as IconPopupFreeflowNext, g as IconPopupFreeflowPrev, h as IconPopupFreeflowClose, i as IconDown } from './popupFuncComponents-76LYIj-8.js';
|
|
8
8
|
import { f as format } from './index-CnpZZF3m.js';
|
|
9
|
-
import { i as isWidgetDisabled, b as getItemTabIndex, g as getUseAnalytics } from './getters-
|
|
9
|
+
import { i as isWidgetDisabled, b as getItemTabIndex, g as getUseAnalytics } from './getters-C5ofYrUT.js';
|
|
10
10
|
import { a as setSliderIndex, c as setItemInFocus } from './slider-DfItksrM.js';
|
|
11
11
|
import { s as sendBeacon } from './storeUtils-Mc-D_Wnh.js';
|
|
12
12
|
import { f as changePopupItem, d as setPopupItemId, g as setIsModalOpenEventSent, h as getPopupItem, i as getPopupProduct, j as directBuyIsOpen, k as isPreviousEnable, l as isNextEnable, e as setPopupProductId, u as updatePopItemLink, m as setProducts, n as getPopupFreeflowItems } from './popup-B68hw7d9.js';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement, F as Fragment } from './index-C-mGosc6.js';
|
|
5
5
|
import { g as getSize, s as sendToGoogleAnalytics } from './utils-CADUxYKc.js';
|
|
6
|
-
import { g as getUseAnalytics } from './getters-
|
|
6
|
+
import { g as getUseAnalytics } from './getters-C5ofYrUT.js';
|
|
7
7
|
import { s as sendBeacon } from './storeUtils-Mc-D_Wnh.js';
|
|
8
8
|
import { g as getSlideTransformEl, f as elementTransitionEnd, S as Swiper, A as A11y } from './a11y-BM21er6f.js';
|
|
9
9
|
import { N as Navigation } from './navigation-xBso107Y.js';
|
|
@@ -7,7 +7,7 @@ import { c as createSlice, a as combineReducers, p as popup, b as configureStore
|
|
|
7
7
|
import { m as modalsReducer, s as sortReducer } from './modals-B4bZnaAK.js';
|
|
8
8
|
import { s as sliderReducer } from './slider-DfItksrM.js';
|
|
9
9
|
import { g as getWidgetId, s as sendBeacon } from './storeUtils-Mc-D_Wnh.js';
|
|
10
|
-
import { g as getUseAnalytics } from './getters-
|
|
10
|
+
import { g as getUseAnalytics } from './getters-C5ofYrUT.js';
|
|
11
11
|
|
|
12
12
|
const STANDARD_GALLERY_URL = "/api/v1/embed/:id";
|
|
13
13
|
const PRODUCT_GALLERY_URL = "/api/v1/shop/:shop/product/:handle";
|
|
@@ -14,6 +14,8 @@ const getItemTabIndex = (state, itemIndex = -1) => {
|
|
|
14
14
|
const visibleSlidesPerView = state.settings.slideshow_style === "material"
|
|
15
15
|
? slidesPerView - 1
|
|
16
16
|
: slidesPerView;
|
|
17
|
+
if (state.popup.items.length <= visibleSlidesPerView)
|
|
18
|
+
return 0; // TODO use items from store for all components
|
|
17
19
|
return (itemIndex < realIndex + visibleSlidesPerView && itemIndex >= realIndex)
|
|
18
20
|
? 0
|
|
19
21
|
: -1;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var __awaiter=this&&this.__awaiter||function(t,i,e,r){function a(t){return t instanceof e?t:new e((function(i){i(t)}))}return new(e||(e=Promise))((function(e,s){function o(t){try{l(r.next(t))}catch(t){s(t)}}function n(t){try{l(r["throw"](t))}catch(t){s(t)}}function l(t){t.done?e(t.value):a(t.value).then(o,n)}l((r=r.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var e={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,a,s,o;return o={next:n(0),throw:n(1),return:n(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function n(t){return function(i){return l([t,i])}}function l(n){if(r)throw new TypeError("Generator is already executing.");while(o&&(o=0,n[0]&&(e=0)),e)try{if(r=1,a&&(s=n[0]&2?a["return"]:n[0]?a["throw"]||((s=a["return"])&&s.call(a),0):a.next)&&!(s=s.call(a,n[1])).done)return s;if(a=0,s)n=[n[0]&2,s.value];switch(n[0]){case 0:case 1:s=n;break;case 4:e.label++;return{value:n[1],done:false};case 5:e.label++;a=n[1];n=[0];continue;case 7:n=e.ops.pop();e.trys.pop();continue;default:if(!(s=e.trys,s=s.length>0&&s[s.length-1])&&(n[0]===6||n[0]===2)){e=0;continue}if(n[0]===3&&(!s||n[1]>s[0]&&n[1]<s[3])){e.label=n[1];break}if(n[0]===6&&e.label<s[1]){e.label=s[1];s=n;break}if(s&&e.label<s[2]){e.label=s[2];e.ops.push(n);break}if(s[2])e.ops.pop();e.trys.pop();continue}n=i.call(t,e)}catch(t){n=[6,t];a=0}finally{r=s=0}if(n[0]&5)throw n[1];return{value:n[0]?n[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,i,e){if(e||arguments.length===2)for(var r=0,a=i.length,s;r<a;r++){if(s||!(r in i)){if(!s)s=Array.prototype.slice.call(i,0,r);s[r]=i[r]}}return t.concat(s||Array.prototype.slice.call(i))};
|
|
2
2
|
/*!
|
|
3
3
|
* Copyright by Space Squirrel Ltd.
|
|
4
|
-
*/import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-C-mGosc6.js";import{g as getSize$1,d as buildEvent,c as getDateFromTimestamp,e as getSizesForResponsiveImage,h as getCoverImage,a as getStyle,b as getRandomId}from"./utils-CADUxYKc.js";import{g as getDefaultExportFromCjs}from"./_commonjsHelpers-DVa63jZy.js";import{a as getItemSize,i as isWidgetDisabled}from"./getters-
|
|
4
|
+
*/import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-C-mGosc6.js";import{g as getSize$1,d as buildEvent,c as getDateFromTimestamp,e as getSizesForResponsiveImage,h as getCoverImage,a as getStyle,b as getRandomId}from"./utils-CADUxYKc.js";import{g as getDefaultExportFromCjs}from"./_commonjsHelpers-DVa63jZy.js";import{a as getItemSize,i as isWidgetDisabled}from"./getters-C5ofYrUT.js";import{d as setPopupItemId,s as setPopupItems}from"./popup-B68hw7d9.js";import{I as Icon}from"./popupFuncComponents-76LYIj-8.js";import{h as getDocument,m as makeElementsArray,i as classesToTokens,c as createElementIfNotDefined,a as classesToSelector,j as createElement,n as nextTick,k as elementOffset,S as Swiper,A as A11y}from"./a11y-BM21er6f.js";import{N as Navigation}from"./navigation-xBso107Y.js";import{P as Pagination}from"./pagination-C5Wsf2-B.js";import{a as setSliderIndex,b as setSliderSlidesPerView}from"./slider-DfItksrM.js";var isotope={exports:{}};var outlayer={exports:{}};var evEmitter$1={exports:{}};var evEmitter=evEmitter$1.exports;var hasRequiredEvEmitter;function requireEvEmitter(){if(hasRequiredEvEmitter)return evEmitter$1.exports;hasRequiredEvEmitter=1;(function(t){(function(i,e){if(t.exports){t.exports=e()}else{i.EvEmitter=e()}})(typeof window!="undefined"?window:evEmitter,(function(){function t(){}var i=t.prototype;i.on=function(t,i){if(!t||!i){return}var e=this._events=this._events||{};var r=e[t]=e[t]||[];if(r.indexOf(i)==-1){r.push(i)}return this};i.once=function(t,i){if(!t||!i){return}this.on(t,i);var e=this._onceEvents=this._onceEvents||{};var r=e[t]=e[t]||{};r[i]=true;return this};i.off=function(t,i){var e=this._events&&this._events[t];if(!e||!e.length){return}var r=e.indexOf(i);if(r!=-1){e.splice(r,1)}return this};i.emitEvent=function(t,i){var e=this._events&&this._events[t];if(!e||!e.length){return}e=e.slice(0);i=i||[];var r=this._onceEvents&&this._onceEvents[t];for(var a=0;a<e.length;a++){var s=e[a];var o=r&&r[s];if(o){this.off(t,s);delete r[s]}s.apply(this,i)}return this};i.allOff=function(){delete this._events;delete this._onceEvents};return t}))})(evEmitter$1);return evEmitter$1.exports}var getSize={exports:{}};
|
|
5
5
|
/*!
|
|
6
6
|
* getSize v2.0.3
|
|
7
7
|
* measure size of elements
|