@gem-sdk/core 1.61.0 → 1.63.2
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/components/ComponentToolbarPreview.js +7 -7
- package/dist/cjs/components/ComponentWrapperPreview.js +2 -2
- package/dist/cjs/components/InteractionSuffix.js +6 -6
- package/dist/cjs/components/RenderCustomCode.js +7 -7
- package/dist/cjs/components/ai-generator/AIContentGenerator.js +5 -5
- package/dist/cjs/components/ai-generator/components/PickProduct.js +4 -4
- package/dist/cjs/components/resize/Spacing.js +7 -7
- package/dist/cjs/components/theme-section/CreateThemeSection.js +4 -4
- package/dist/cjs/contexts/ProductContext.js +18 -2
- package/dist/cjs/helpers/interaction/index.js +6 -6
- package/dist/cjs/helpers/size.js +8 -2
- package/dist/cjs/hooks/useProduct.js +10 -1
- package/dist/cjs/index.js +10 -9
- package/dist/esm/components/ComponentToolbarPreview.js +7 -7
- package/dist/esm/components/ComponentWrapperPreview.js +2 -2
- package/dist/esm/components/InteractionSuffix.js +6 -6
- package/dist/esm/components/RenderCustomCode.js +7 -7
- package/dist/esm/components/ai-generator/AIContentGenerator.js +5 -5
- package/dist/esm/components/ai-generator/components/PickProduct.js +4 -4
- package/dist/esm/components/resize/Spacing.js +7 -7
- package/dist/esm/components/theme-section/CreateThemeSection.js +4 -4
- package/dist/esm/contexts/ProductContext.js +18 -2
- package/dist/esm/helpers/interaction/index.js +6 -6
- package/dist/esm/helpers/size.js +8 -2
- package/dist/esm/hooks/useProduct.js +10 -2
- package/dist/esm/index.js +4 -4
- package/dist/types/index.d.ts +94 -88
- package/package.json +2 -2
|
@@ -6,14 +6,7 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
6
6
|
var react = require('react');
|
|
7
7
|
require('zustand');
|
|
8
8
|
var BuilderPreviewContext = require('../contexts/BuilderPreviewContext.js');
|
|
9
|
-
var ShopContext = require('../contexts/ShopContext.js');
|
|
10
9
|
var PageContext = require('../contexts/PageContext.js');
|
|
11
|
-
require('@gem-sdk/adapter-shopify');
|
|
12
|
-
require('swr');
|
|
13
|
-
require('swr/mutation');
|
|
14
|
-
require('swr/infinite');
|
|
15
|
-
require('vanilla-lazyload');
|
|
16
|
-
require('../hooks/useCartUI.js');
|
|
17
10
|
var CreateThemeSection = require('./theme-section/CreateThemeSection.js');
|
|
18
11
|
var Tooltip = require('./toolbar/Tooltip.js');
|
|
19
12
|
var ThemeSectionStatus = require('./theme-section/ThemeSectionStatus.js');
|
|
@@ -23,7 +16,14 @@ var constant = require('./constant.js');
|
|
|
23
16
|
var AIContentGenerator = require('./ai-generator/AIContentGenerator.js');
|
|
24
17
|
var AIGenContentLoading = require('./ai-generator/AIGenContentLoading.js');
|
|
25
18
|
var InteractionSuffix = require('./InteractionSuffix.js');
|
|
19
|
+
require('swr');
|
|
26
20
|
require('../helpers/convert.js');
|
|
21
|
+
var ShopContext = require('../contexts/ShopContext.js');
|
|
22
|
+
require('@gem-sdk/adapter-shopify');
|
|
23
|
+
require('swr/mutation');
|
|
24
|
+
require('swr/infinite');
|
|
25
|
+
require('vanilla-lazyload');
|
|
26
|
+
require('../hooks/useCartUI.js');
|
|
27
27
|
|
|
28
28
|
const SECTION_LIMIT = 25;
|
|
29
29
|
const notVisible = (el)=>{
|
|
@@ -10,15 +10,15 @@ var constant = require('./constant.js');
|
|
|
10
10
|
var RenderCustomCode = require('./RenderCustomCode.js');
|
|
11
11
|
var ComponentToolbarPreview = require('./ComponentToolbarPreview.js');
|
|
12
12
|
require('zustand');
|
|
13
|
+
var cls = require('../helpers/cls.js');
|
|
13
14
|
require('swr');
|
|
15
|
+
require('../helpers/convert.js');
|
|
14
16
|
require('@gem-sdk/adapter-shopify');
|
|
15
17
|
require('swr/mutation');
|
|
16
18
|
var shop = require('../hooks/shop.js');
|
|
17
19
|
require('swr/infinite');
|
|
18
20
|
require('vanilla-lazyload');
|
|
19
21
|
require('../hooks/useCartUI.js');
|
|
20
|
-
var cls = require('../helpers/cls.js');
|
|
21
|
-
require('../helpers/convert.js');
|
|
22
22
|
var ComponentAnimation = require('./ComponentAnimation.js');
|
|
23
23
|
|
|
24
24
|
const ComponentWrapperPreview = ({ children, ...props })=>{
|
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
require('zustand');
|
|
5
5
|
require('react');
|
|
6
|
-
require('swr');
|
|
7
6
|
var PageContext = require('../contexts/PageContext.js');
|
|
8
|
-
require('@gem-sdk/adapter-shopify');
|
|
9
|
-
require('swr/mutation');
|
|
10
|
-
require('swr/infinite');
|
|
11
|
-
require('vanilla-lazyload');
|
|
12
|
-
require('../hooks/useCartUI.js');
|
|
13
7
|
require('react-transition-group');
|
|
14
8
|
require('@gem-sdk/core');
|
|
9
|
+
require('swr');
|
|
10
|
+
require('swr/infinite');
|
|
15
11
|
require('classnames');
|
|
16
12
|
require('dayjs');
|
|
17
13
|
var index = require('../helpers/interaction/index.js');
|
|
18
14
|
require('../helpers/convert.js');
|
|
15
|
+
require('@gem-sdk/adapter-shopify');
|
|
16
|
+
require('swr/mutation');
|
|
17
|
+
require('vanilla-lazyload');
|
|
18
|
+
require('../hooks/useCartUI.js');
|
|
19
19
|
|
|
20
20
|
const InteractionSuffix = ({ uid })=>{
|
|
21
21
|
const { closeSelectOnPage, selectInteractionElement } = index.useInteraction();
|
|
@@ -7,18 +7,18 @@ var Head = require('next/head');
|
|
|
7
7
|
var Script = require('next/script');
|
|
8
8
|
var react = require('react');
|
|
9
9
|
require('zustand');
|
|
10
|
-
require('swr');
|
|
11
|
-
require('@gem-sdk/adapter-shopify');
|
|
12
|
-
require('swr/mutation');
|
|
13
|
-
var shop = require('../hooks/shop.js');
|
|
14
|
-
require('swr/infinite');
|
|
15
|
-
require('vanilla-lazyload');
|
|
16
|
-
require('../hooks/useCartUI.js');
|
|
17
10
|
require('react-transition-group');
|
|
18
11
|
require('@gem-sdk/core');
|
|
12
|
+
require('swr');
|
|
13
|
+
require('swr/infinite');
|
|
14
|
+
var shop = require('../hooks/shop.js');
|
|
19
15
|
require('classnames');
|
|
20
16
|
require('dayjs');
|
|
21
17
|
require('../helpers/convert.js');
|
|
18
|
+
require('@gem-sdk/adapter-shopify');
|
|
19
|
+
require('swr/mutation');
|
|
20
|
+
require('vanilla-lazyload');
|
|
21
|
+
require('../hooks/useCartUI.js');
|
|
22
22
|
|
|
23
23
|
const RenderCustomCode = ({ uid, advanced })=>{
|
|
24
24
|
const mode = shop.useEditorMode();
|
|
@@ -15,17 +15,17 @@ var useGettingGenerateRequest = require('./hooks/useGettingGenerateRequest.js');
|
|
|
15
15
|
var useFlipPopup = require('./hooks/useFlipPopup.js');
|
|
16
16
|
var useCheckingProductInside = require('./hooks/useCheckingProductInside.js');
|
|
17
17
|
require('zustand');
|
|
18
|
+
require('react-transition-group');
|
|
19
|
+
require('@gem-sdk/core');
|
|
18
20
|
var ShopContext = require('../../contexts/ShopContext.js');
|
|
19
|
-
require('
|
|
21
|
+
var dayjs = require('dayjs');
|
|
20
22
|
require('swr');
|
|
23
|
+
require('../../helpers/convert.js');
|
|
24
|
+
require('@gem-sdk/adapter-shopify');
|
|
21
25
|
require('swr/mutation');
|
|
22
26
|
require('swr/infinite');
|
|
23
27
|
require('vanilla-lazyload');
|
|
24
28
|
require('../../hooks/useCartUI.js');
|
|
25
|
-
require('react-transition-group');
|
|
26
|
-
require('@gem-sdk/core');
|
|
27
|
-
var dayjs = require('dayjs');
|
|
28
|
-
require('../../helpers/convert.js');
|
|
29
29
|
|
|
30
30
|
const AIContentGenerator = ({ ...props })=>{
|
|
31
31
|
const [isShowPopup, setIsShowPopup] = react.useState(false);
|
|
@@ -6,16 +6,16 @@ var SearchIcon = require('../icons/SearchIcon.js');
|
|
|
6
6
|
var useProductsQuery = require('../../../hooks/shop/use-products-query.js');
|
|
7
7
|
var classNames = require('classnames');
|
|
8
8
|
require('zustand');
|
|
9
|
+
require('react-transition-group');
|
|
10
|
+
require('@gem-sdk/core');
|
|
9
11
|
require('swr');
|
|
12
|
+
require('dayjs');
|
|
13
|
+
require('../../../helpers/convert.js');
|
|
10
14
|
require('@gem-sdk/adapter-shopify');
|
|
11
15
|
require('swr/mutation');
|
|
12
16
|
var useProductQuery = require('../../../hooks/shop/use-product-query.js');
|
|
13
17
|
require('vanilla-lazyload');
|
|
14
18
|
require('../../../hooks/useCartUI.js');
|
|
15
|
-
require('react-transition-group');
|
|
16
|
-
require('@gem-sdk/core');
|
|
17
|
-
require('dayjs');
|
|
18
|
-
require('../../../helpers/convert.js');
|
|
19
19
|
|
|
20
20
|
const PickProduct = (props)=>{
|
|
21
21
|
const LIMIT_PRODUCTS = 8;
|
|
@@ -6,18 +6,18 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
6
6
|
var react = require('react');
|
|
7
7
|
require('zustand');
|
|
8
8
|
var BuilderPreviewContext = require('../../contexts/BuilderPreviewContext.js');
|
|
9
|
-
require('swr');
|
|
10
|
-
require('@gem-sdk/adapter-shopify');
|
|
11
|
-
require('swr/mutation');
|
|
12
|
-
var shop = require('../../hooks/shop.js');
|
|
13
|
-
require('swr/infinite');
|
|
14
|
-
require('vanilla-lazyload');
|
|
15
|
-
require('../../hooks/useCartUI.js');
|
|
16
9
|
require('react-transition-group');
|
|
17
10
|
require('@gem-sdk/core');
|
|
11
|
+
require('swr');
|
|
12
|
+
require('swr/infinite');
|
|
13
|
+
var shop = require('../../hooks/shop.js');
|
|
18
14
|
require('classnames');
|
|
19
15
|
require('dayjs');
|
|
20
16
|
require('../../helpers/convert.js');
|
|
17
|
+
require('@gem-sdk/adapter-shopify');
|
|
18
|
+
require('swr/mutation');
|
|
19
|
+
require('vanilla-lazyload');
|
|
20
|
+
require('../../hooks/useCartUI.js');
|
|
21
21
|
|
|
22
22
|
function Spacing(props) {
|
|
23
23
|
const isThemeSectionEditor = BuilderPreviewContext.useBuilderPreviewStore((s)=>s.isThemeSectionEditor);
|
|
@@ -5,15 +5,15 @@ var react = require('react');
|
|
|
5
5
|
var ThemeSectionTooltip = require('./ThemeSectionTooltip.js');
|
|
6
6
|
require('zustand');
|
|
7
7
|
var ShopContext = require('../../contexts/ShopContext.js');
|
|
8
|
-
require('@gem-sdk/adapter-shopify');
|
|
9
8
|
require('swr');
|
|
10
|
-
require('swr/mutation');
|
|
11
9
|
require('swr/infinite');
|
|
12
|
-
require('vanilla-lazyload');
|
|
13
|
-
require('../../hooks/useCartUI.js');
|
|
14
10
|
require('classnames');
|
|
15
11
|
require('dayjs');
|
|
16
12
|
require('../../helpers/convert.js');
|
|
13
|
+
require('@gem-sdk/adapter-shopify');
|
|
14
|
+
require('swr/mutation');
|
|
15
|
+
require('vanilla-lazyload');
|
|
16
|
+
require('../../hooks/useCartUI.js');
|
|
17
17
|
|
|
18
18
|
const SHOW_TOOLTIP_TIMEOUT = 600;
|
|
19
19
|
const NUMBER_OF_THEME_SECTION_CREATED_TO_SHOW_TOOLTIP = 1;
|
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var zustand = require('zustand');
|
|
5
4
|
var react = require('react');
|
|
6
|
-
var
|
|
5
|
+
var zustand = require('zustand');
|
|
6
|
+
require('swr');
|
|
7
|
+
require('@gem-sdk/adapter-shopify');
|
|
8
|
+
require('swr/mutation');
|
|
9
|
+
require('swr/infinite');
|
|
10
|
+
require('vanilla-lazyload');
|
|
11
|
+
require('../hooks/useCartUI.js');
|
|
7
12
|
var variant = require('../helpers/variant.js');
|
|
13
|
+
require('react-transition-group');
|
|
14
|
+
require('@gem-sdk/core');
|
|
15
|
+
require('classnames');
|
|
16
|
+
require('dayjs');
|
|
17
|
+
var flattenConnection = require('../helpers/flatten-connection.js');
|
|
18
|
+
require('../helpers/convert.js');
|
|
8
19
|
|
|
9
20
|
// const { Provider, useStore } = createContext<StoreApi<ProductContextProps>>();
|
|
10
21
|
const ProductContext = /*#__PURE__*/ react.createContext(null);
|
|
@@ -25,6 +36,11 @@ const createProductStoreProvider = (data)=>zustand.createStore((set, get)=>({
|
|
|
25
36
|
};
|
|
26
37
|
});
|
|
27
38
|
},
|
|
39
|
+
setUseProductCompareAtPrice: (value)=>{
|
|
40
|
+
set({
|
|
41
|
+
useProductCompareAtPrice: value
|
|
42
|
+
});
|
|
43
|
+
},
|
|
28
44
|
addProperty: (data)=>{
|
|
29
45
|
const properties = get().properties;
|
|
30
46
|
if (!properties?.some((v)=>v.key === data.key)) {
|
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
var react = require('react');
|
|
4
4
|
require('react/jsx-runtime');
|
|
5
5
|
require('zustand');
|
|
6
|
-
require('swr');
|
|
7
6
|
var PageContext = require('../../contexts/PageContext.js');
|
|
8
|
-
require('@gem-sdk/adapter-shopify');
|
|
9
|
-
require('swr/mutation');
|
|
10
|
-
require('swr/infinite');
|
|
11
|
-
require('vanilla-lazyload');
|
|
12
|
-
require('../../hooks/useCartUI.js');
|
|
13
7
|
require('react-transition-group');
|
|
14
8
|
require('@gem-sdk/core');
|
|
9
|
+
require('swr');
|
|
10
|
+
require('swr/infinite');
|
|
15
11
|
require('classnames');
|
|
16
12
|
require('dayjs');
|
|
17
13
|
require('../convert.js');
|
|
14
|
+
require('@gem-sdk/adapter-shopify');
|
|
15
|
+
require('swr/mutation');
|
|
16
|
+
require('vanilla-lazyload');
|
|
17
|
+
require('../../hooks/useCartUI.js');
|
|
18
18
|
|
|
19
19
|
const useInteraction = ()=>{
|
|
20
20
|
const ref = react.useRef();
|
package/dist/cjs/helpers/size.js
CHANGED
|
@@ -103,7 +103,7 @@ const getHeightByShapeGlobalSize = (shapeByLayout)=>{
|
|
|
103
103
|
});
|
|
104
104
|
return result;
|
|
105
105
|
};
|
|
106
|
-
const getWidthByShapeGlobalSize = (shapeByLayout, defaultAuto)=>{
|
|
106
|
+
const getWidthByShapeGlobalSize = (shapeByLayout, defaultAuto, defaultFull)=>{
|
|
107
107
|
let result = {};
|
|
108
108
|
const DEVICES = [
|
|
109
109
|
'desktop',
|
|
@@ -112,7 +112,13 @@ const getWidthByShapeGlobalSize = (shapeByLayout, defaultAuto)=>{
|
|
|
112
112
|
];
|
|
113
113
|
DEVICES.forEach((device)=>{
|
|
114
114
|
const shapeByDevice = getResonsiveValue.getResponsiveValueByScreen(shapeByLayout, device);
|
|
115
|
-
|
|
115
|
+
let width = shapeByDevice?.width;
|
|
116
|
+
if (defaultAuto) {
|
|
117
|
+
width = shapeByDevice?.width || 'auto';
|
|
118
|
+
}
|
|
119
|
+
if (defaultFull) {
|
|
120
|
+
width = shapeByDevice?.width || '100%';
|
|
121
|
+
}
|
|
116
122
|
if (width) {
|
|
117
123
|
result = {
|
|
118
124
|
...result,
|
|
@@ -4,8 +4,8 @@ var react = require('react');
|
|
|
4
4
|
var ProductContext = require('../contexts/ProductContext.js');
|
|
5
5
|
require('react/jsx-runtime');
|
|
6
6
|
require('zustand');
|
|
7
|
-
require('swr');
|
|
8
7
|
var PageContext = require('../contexts/PageContext.js');
|
|
8
|
+
require('swr');
|
|
9
9
|
require('@gem-sdk/adapter-shopify');
|
|
10
10
|
require('swr/mutation');
|
|
11
11
|
require('swr/infinite');
|
|
@@ -35,6 +35,14 @@ const useProductProperties = ()=>{
|
|
|
35
35
|
const useIsSyncProduct = ()=>{
|
|
36
36
|
return ProductContext.useProductStore((s)=>s.isSyncProduct);
|
|
37
37
|
};
|
|
38
|
+
const useProductBundleDiscount = ()=>{
|
|
39
|
+
const useProductCompareAtPrice = ProductContext.useProductStore((s)=>s.useProductCompareAtPrice);
|
|
40
|
+
const seUseProductCompareAtPrice = ProductContext.useProductStore((s)=>s.setUseProductCompareAtPrice);
|
|
41
|
+
return {
|
|
42
|
+
useProductCompareAtPrice,
|
|
43
|
+
seUseProductCompareAtPrice
|
|
44
|
+
};
|
|
45
|
+
};
|
|
38
46
|
const useQuantity = ()=>{
|
|
39
47
|
const quantity = ProductContext.useProductStore((s)=>s.quantity);
|
|
40
48
|
const hasUpdatePrice = ProductContext.useProductStore((s)=>s.updatePrice);
|
|
@@ -226,6 +234,7 @@ exports.useFeaturedImageGlobal = useFeaturedImageGlobal;
|
|
|
226
234
|
exports.useHasPreSelected = useHasPreSelected;
|
|
227
235
|
exports.useIsSyncProduct = useIsSyncProduct;
|
|
228
236
|
exports.useProduct = useProduct;
|
|
237
|
+
exports.useProductBundleDiscount = useProductBundleDiscount;
|
|
229
238
|
exports.useProductOfferDiscount = useProductOfferDiscount;
|
|
230
239
|
exports.useProductProperties = useProductProperties;
|
|
231
240
|
exports.useQuantity = useQuantity;
|
package/dist/cjs/index.js
CHANGED
|
@@ -71,6 +71,7 @@ var render = require('./helpers/render.js');
|
|
|
71
71
|
var shadow = require('./helpers/shadow.js');
|
|
72
72
|
var size = require('./helpers/size.js');
|
|
73
73
|
var typography = require('./helpers/typography.js');
|
|
74
|
+
var useArticlesQuery = require('./hooks/articles/useArticlesQuery.js');
|
|
74
75
|
var useAddToCart = require('./hooks/cart/use-add-to-cart.js');
|
|
75
76
|
var useCartData = require('./hooks/cart/use-cart-data.js');
|
|
76
77
|
var useCartDiscountCodesUpdate = require('./hooks/cart/use-cart-discount-codes-update.js');
|
|
@@ -84,23 +85,22 @@ var useCollectionsQuery = require('./hooks/shop/use-collections-query.js');
|
|
|
84
85
|
var useProductQuery = require('./hooks/shop/use-product-query.js');
|
|
85
86
|
var useProductsQuery = require('./hooks/shop/use-products-query.js');
|
|
86
87
|
var useCurrentDevice = require('./hooks/use-current-device.js');
|
|
87
|
-
var useFormatMoney = require('./hooks/useFormatMoney.js');
|
|
88
88
|
var useLazyVideo = require('./hooks/use-lazy-video.js');
|
|
89
89
|
var useCartId = require('./hooks/useCartId.js');
|
|
90
90
|
var useCartLine = require('./hooks/useCartLine.js');
|
|
91
91
|
var useCartUI = require('./hooks/useCartUI.js');
|
|
92
92
|
var useCollection = require('./hooks/useCollection.js');
|
|
93
|
+
var useFormatMoney = require('./hooks/useFormatMoney.js');
|
|
93
94
|
var react = require('react');
|
|
95
|
+
var useInitialSwatchesOptions = require('./hooks/useInitialSwatchesOptions.js');
|
|
94
96
|
var useIsomorphicLayoutEffect = require('./hooks/useIsomorphicLayoutEffect.js');
|
|
95
97
|
var useLoadScript = require('./hooks/useLoadScript.js');
|
|
96
98
|
var useMoney = require('./hooks/useMoney.js');
|
|
97
99
|
var usePrevious = require('./hooks/usePrevious.js');
|
|
98
|
-
var useArticlesQuery = require('./hooks/articles/useArticlesQuery.js');
|
|
99
100
|
var useProduct = require('./hooks/useProduct.js');
|
|
100
101
|
var useProductList = require('./hooks/useProductList.js');
|
|
101
102
|
var useSuspenseFetch = require('./hooks/useSuspenseFetch.js');
|
|
102
103
|
var useSwatchesOptions = require('./hooks/useSwatchesOptions.js');
|
|
103
|
-
var useInitialSwatchesOptions = require('./hooks/useInitialSwatchesOptions.js');
|
|
104
104
|
var custom = require('./types/custom.js');
|
|
105
105
|
var shop$1 = require('./types/shop.js');
|
|
106
106
|
var appAPI = require('./types/appAPI.js');
|
|
@@ -301,6 +301,8 @@ exports.composeTypographyStyle = typography.composeTypographyStyle;
|
|
|
301
301
|
exports.composeTypographyV2 = typography.composeTypographyV2;
|
|
302
302
|
exports.composeTypographyV2Css = typography.composeTypographyV2Css;
|
|
303
303
|
exports.genTypoClass = typography.genTypoClass;
|
|
304
|
+
exports.useArticlesQuery = useArticlesQuery.useArticlesQuery;
|
|
305
|
+
exports.useBlogsQuery = useArticlesQuery.useBlogsQuery;
|
|
304
306
|
exports.useAddToCart = useAddToCart.useAddToCart;
|
|
305
307
|
exports.useCartData = useCartData.useCartData;
|
|
306
308
|
exports.useCartDiscountCodesUpdate = useCartDiscountCodesUpdate.useCartDiscountCodesUpdate;
|
|
@@ -328,24 +330,23 @@ exports.useProductQuery = useProductQuery.useProductQuery;
|
|
|
328
330
|
exports.useProductsQuery = useProductsQuery.useProductsQuery;
|
|
329
331
|
exports.useProductsQueryAll = useProductsQuery.useProductsQueryAll;
|
|
330
332
|
exports.useCurrentDevice = useCurrentDevice.useCurrentDevice;
|
|
331
|
-
exports.formatMoney = useFormatMoney.formatMoney;
|
|
332
|
-
exports.shopifyPriceRounding = useFormatMoney.shopifyPriceRounding;
|
|
333
|
-
exports.useFormatMoney = useFormatMoney.useFormatMoney;
|
|
334
333
|
exports.useLazyVideo = useLazyVideo.useLazyVideo;
|
|
335
334
|
exports.useCartId = useCartId.default;
|
|
336
335
|
exports.useCartLine = useCartLine.default;
|
|
337
336
|
exports.useCartUI = useCartUI.default;
|
|
338
337
|
exports.useCollection = useCollection.useCollection;
|
|
338
|
+
exports.formatMoney = useFormatMoney.formatMoney;
|
|
339
|
+
exports.shopifyPriceRounding = useFormatMoney.shopifyPriceRounding;
|
|
340
|
+
exports.useFormatMoney = useFormatMoney.useFormatMoney;
|
|
339
341
|
Object.defineProperty(exports, 'useId', {
|
|
340
342
|
enumerable: true,
|
|
341
343
|
get: function () { return react.useId; }
|
|
342
344
|
});
|
|
345
|
+
exports.useInitialSwatchesOptions = useInitialSwatchesOptions.default;
|
|
343
346
|
exports.useIsomorphicLayoutEffect = useIsomorphicLayoutEffect.default;
|
|
344
347
|
exports.useLoadScript = useLoadScript.default;
|
|
345
348
|
exports.useMoney = useMoney.default;
|
|
346
349
|
exports.usePrevious = usePrevious.usePrevious;
|
|
347
|
-
exports.useArticlesQuery = useArticlesQuery.useArticlesQuery;
|
|
348
|
-
exports.useBlogsQuery = useArticlesQuery.useBlogsQuery;
|
|
349
350
|
exports.useCheckAvailableVariantInStock = useProduct.useCheckAvailableVariantInStock;
|
|
350
351
|
exports.useCurrentVariant = useProduct.useCurrentVariant;
|
|
351
352
|
exports.useCurrentVariantInStock = useProduct.useCurrentVariantInStock;
|
|
@@ -353,6 +354,7 @@ exports.useFeaturedImageGlobal = useProduct.useFeaturedImageGlobal;
|
|
|
353
354
|
exports.useHasPreSelected = useProduct.useHasPreSelected;
|
|
354
355
|
exports.useIsSyncProduct = useProduct.useIsSyncProduct;
|
|
355
356
|
exports.useProduct = useProduct.useProduct;
|
|
357
|
+
exports.useProductBundleDiscount = useProduct.useProductBundleDiscount;
|
|
356
358
|
exports.useProductOfferDiscount = useProduct.useProductOfferDiscount;
|
|
357
359
|
exports.useProductProperties = useProduct.useProductProperties;
|
|
358
360
|
exports.useQuantity = useProduct.useQuantity;
|
|
@@ -367,7 +369,6 @@ exports.useProductListSettings = useProductList.useProductListSettings;
|
|
|
367
369
|
exports.useProductListStyles = useProductList.useProductListStyles;
|
|
368
370
|
exports.useSuspenseFetch = useSuspenseFetch.default;
|
|
369
371
|
exports.useSwatchesOptions = useSwatchesOptions.default;
|
|
370
|
-
exports.useInitialSwatchesOptions = useInitialSwatchesOptions.default;
|
|
371
372
|
Object.defineProperty(exports, 'InteractionTargetEvent', {
|
|
372
373
|
enumerable: true,
|
|
373
374
|
get: function () { return custom.InteractionTargetEvent; }
|
|
@@ -2,14 +2,7 @@ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { memo, useState, useMemo, useCallback, useEffect } from 'react';
|
|
3
3
|
import 'zustand';
|
|
4
4
|
import { useBuilderPreviewStore } from '../contexts/BuilderPreviewContext.js';
|
|
5
|
-
import { useShopStore } from '../contexts/ShopContext.js';
|
|
6
5
|
import { usePageStore } from '../contexts/PageContext.js';
|
|
7
|
-
import '@gem-sdk/adapter-shopify';
|
|
8
|
-
import 'swr';
|
|
9
|
-
import 'swr/mutation';
|
|
10
|
-
import 'swr/infinite';
|
|
11
|
-
import 'vanilla-lazyload';
|
|
12
|
-
import '../hooks/useCartUI.js';
|
|
13
6
|
import { CreateThemeSection } from './theme-section/CreateThemeSection.js';
|
|
14
7
|
import Tooltip from './toolbar/Tooltip.js';
|
|
15
8
|
import { ThemeSectionStatusWrapper } from './theme-section/ThemeSectionStatus.js';
|
|
@@ -19,7 +12,14 @@ import { ableGenerateContentElements } from './constant.js';
|
|
|
19
12
|
import { AIContentGenerator } from './ai-generator/AIContentGenerator.js';
|
|
20
13
|
import { AIGenContentLoading } from './ai-generator/AIGenContentLoading.js';
|
|
21
14
|
import { InteractionSuffix } from './InteractionSuffix.js';
|
|
15
|
+
import 'swr';
|
|
22
16
|
import '../helpers/convert.js';
|
|
17
|
+
import { useShopStore } from '../contexts/ShopContext.js';
|
|
18
|
+
import '@gem-sdk/adapter-shopify';
|
|
19
|
+
import 'swr/mutation';
|
|
20
|
+
import 'swr/infinite';
|
|
21
|
+
import 'vanilla-lazyload';
|
|
22
|
+
import '../hooks/useCartUI.js';
|
|
23
23
|
|
|
24
24
|
const SECTION_LIMIT = 25;
|
|
25
25
|
const notVisible = (el)=>{
|
|
@@ -6,15 +6,15 @@ import { disableWrap, excludeApplyStyle } from './constant.js';
|
|
|
6
6
|
import RenderCustomCode from './RenderCustomCode.js';
|
|
7
7
|
import ComponentToolbarPreview from './ComponentToolbarPreview.js';
|
|
8
8
|
import 'zustand';
|
|
9
|
+
import { cls } from '../helpers/cls.js';
|
|
9
10
|
import 'swr';
|
|
11
|
+
import '../helpers/convert.js';
|
|
10
12
|
import '@gem-sdk/adapter-shopify';
|
|
11
13
|
import 'swr/mutation';
|
|
12
14
|
import { usePageType } from '../hooks/shop.js';
|
|
13
15
|
import 'swr/infinite';
|
|
14
16
|
import 'vanilla-lazyload';
|
|
15
17
|
import '../hooks/useCartUI.js';
|
|
16
|
-
import { cls } from '../helpers/cls.js';
|
|
17
|
-
import '../helpers/convert.js';
|
|
18
18
|
import ComponentAnimation from './ComponentAnimation.js';
|
|
19
19
|
|
|
20
20
|
const ComponentWrapperPreview = ({ children, ...props })=>{
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import 'zustand';
|
|
3
3
|
import 'react';
|
|
4
|
-
import 'swr';
|
|
5
4
|
import { usePageStore } from '../contexts/PageContext.js';
|
|
6
|
-
import '@gem-sdk/adapter-shopify';
|
|
7
|
-
import 'swr/mutation';
|
|
8
|
-
import 'swr/infinite';
|
|
9
|
-
import 'vanilla-lazyload';
|
|
10
|
-
import '../hooks/useCartUI.js';
|
|
11
5
|
import 'react-transition-group';
|
|
12
6
|
import '@gem-sdk/core';
|
|
7
|
+
import 'swr';
|
|
8
|
+
import 'swr/infinite';
|
|
13
9
|
import 'classnames';
|
|
14
10
|
import 'dayjs';
|
|
15
11
|
import { useInteraction } from '../helpers/interaction/index.js';
|
|
16
12
|
import '../helpers/convert.js';
|
|
13
|
+
import '@gem-sdk/adapter-shopify';
|
|
14
|
+
import 'swr/mutation';
|
|
15
|
+
import 'vanilla-lazyload';
|
|
16
|
+
import '../hooks/useCartUI.js';
|
|
17
17
|
|
|
18
18
|
const InteractionSuffix = ({ uid })=>{
|
|
19
19
|
const { closeSelectOnPage, selectInteractionElement } = useInteraction();
|
|
@@ -3,18 +3,18 @@ import Head from 'next/head';
|
|
|
3
3
|
import Script from 'next/script';
|
|
4
4
|
import { useMemo } from 'react';
|
|
5
5
|
import 'zustand';
|
|
6
|
-
import 'swr';
|
|
7
|
-
import '@gem-sdk/adapter-shopify';
|
|
8
|
-
import 'swr/mutation';
|
|
9
|
-
import { useEditorMode } from '../hooks/shop.js';
|
|
10
|
-
import 'swr/infinite';
|
|
11
|
-
import 'vanilla-lazyload';
|
|
12
|
-
import '../hooks/useCartUI.js';
|
|
13
6
|
import 'react-transition-group';
|
|
14
7
|
import '@gem-sdk/core';
|
|
8
|
+
import 'swr';
|
|
9
|
+
import 'swr/infinite';
|
|
10
|
+
import { useEditorMode } from '../hooks/shop.js';
|
|
15
11
|
import 'classnames';
|
|
16
12
|
import 'dayjs';
|
|
17
13
|
import '../helpers/convert.js';
|
|
14
|
+
import '@gem-sdk/adapter-shopify';
|
|
15
|
+
import 'swr/mutation';
|
|
16
|
+
import 'vanilla-lazyload';
|
|
17
|
+
import '../hooks/useCartUI.js';
|
|
18
18
|
|
|
19
19
|
const RenderCustomCode = ({ uid, advanced })=>{
|
|
20
20
|
const mode = useEditorMode();
|
|
@@ -13,17 +13,17 @@ import { useGettingGenerateRequest } from './hooks/useGettingGenerateRequest.js'
|
|
|
13
13
|
import { useFlipPopup } from './hooks/useFlipPopup.js';
|
|
14
14
|
import { useCheckingProductInside } from './hooks/useCheckingProductInside.js';
|
|
15
15
|
import 'zustand';
|
|
16
|
+
import 'react-transition-group';
|
|
17
|
+
import '@gem-sdk/core';
|
|
16
18
|
import { useShopStore } from '../../contexts/ShopContext.js';
|
|
17
|
-
import '
|
|
19
|
+
import dayjs from 'dayjs';
|
|
18
20
|
import 'swr';
|
|
21
|
+
import '../../helpers/convert.js';
|
|
22
|
+
import '@gem-sdk/adapter-shopify';
|
|
19
23
|
import 'swr/mutation';
|
|
20
24
|
import 'swr/infinite';
|
|
21
25
|
import 'vanilla-lazyload';
|
|
22
26
|
import '../../hooks/useCartUI.js';
|
|
23
|
-
import 'react-transition-group';
|
|
24
|
-
import '@gem-sdk/core';
|
|
25
|
-
import dayjs from 'dayjs';
|
|
26
|
-
import '../../helpers/convert.js';
|
|
27
27
|
|
|
28
28
|
const AIContentGenerator = ({ ...props })=>{
|
|
29
29
|
const [isShowPopup, setIsShowPopup] = useState(false);
|
|
@@ -4,16 +4,16 @@ import { SearchIcon } from '../icons/SearchIcon.js';
|
|
|
4
4
|
import { useListProductQuery } from '../../../hooks/shop/use-products-query.js';
|
|
5
5
|
import classNames from 'classnames';
|
|
6
6
|
import 'zustand';
|
|
7
|
+
import 'react-transition-group';
|
|
8
|
+
import '@gem-sdk/core';
|
|
7
9
|
import 'swr';
|
|
10
|
+
import 'dayjs';
|
|
11
|
+
import '../../../helpers/convert.js';
|
|
8
12
|
import '@gem-sdk/adapter-shopify';
|
|
9
13
|
import 'swr/mutation';
|
|
10
14
|
import { useProductQuery } from '../../../hooks/shop/use-product-query.js';
|
|
11
15
|
import 'vanilla-lazyload';
|
|
12
16
|
import '../../../hooks/useCartUI.js';
|
|
13
|
-
import 'react-transition-group';
|
|
14
|
-
import '@gem-sdk/core';
|
|
15
|
-
import 'dayjs';
|
|
16
|
-
import '../../../helpers/convert.js';
|
|
17
17
|
|
|
18
18
|
const PickProduct = (props)=>{
|
|
19
19
|
const LIMIT_PRODUCTS = 8;
|
|
@@ -2,18 +2,18 @@ import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
|
2
2
|
import { useRef, useState, useCallback, useEffect } from 'react';
|
|
3
3
|
import 'zustand';
|
|
4
4
|
import { useBuilderPreviewStore } from '../../contexts/BuilderPreviewContext.js';
|
|
5
|
-
import 'swr';
|
|
6
|
-
import '@gem-sdk/adapter-shopify';
|
|
7
|
-
import 'swr/mutation';
|
|
8
|
-
import { usePageType } from '../../hooks/shop.js';
|
|
9
|
-
import 'swr/infinite';
|
|
10
|
-
import 'vanilla-lazyload';
|
|
11
|
-
import '../../hooks/useCartUI.js';
|
|
12
5
|
import 'react-transition-group';
|
|
13
6
|
import '@gem-sdk/core';
|
|
7
|
+
import 'swr';
|
|
8
|
+
import 'swr/infinite';
|
|
9
|
+
import { usePageType } from '../../hooks/shop.js';
|
|
14
10
|
import 'classnames';
|
|
15
11
|
import 'dayjs';
|
|
16
12
|
import '../../helpers/convert.js';
|
|
13
|
+
import '@gem-sdk/adapter-shopify';
|
|
14
|
+
import 'swr/mutation';
|
|
15
|
+
import 'vanilla-lazyload';
|
|
16
|
+
import '../../hooks/useCartUI.js';
|
|
17
17
|
|
|
18
18
|
function Spacing(props) {
|
|
19
19
|
const isThemeSectionEditor = useBuilderPreviewStore((s)=>s.isThemeSectionEditor);
|
|
@@ -3,15 +3,15 @@ import { useRef, useState } from 'react';
|
|
|
3
3
|
import { ThemeSectionTooltip } from './ThemeSectionTooltip.js';
|
|
4
4
|
import 'zustand';
|
|
5
5
|
import { useShopStore } from '../../contexts/ShopContext.js';
|
|
6
|
-
import '@gem-sdk/adapter-shopify';
|
|
7
6
|
import 'swr';
|
|
8
|
-
import 'swr/mutation';
|
|
9
7
|
import 'swr/infinite';
|
|
10
|
-
import 'vanilla-lazyload';
|
|
11
|
-
import '../../hooks/useCartUI.js';
|
|
12
8
|
import 'classnames';
|
|
13
9
|
import 'dayjs';
|
|
14
10
|
import '../../helpers/convert.js';
|
|
11
|
+
import '@gem-sdk/adapter-shopify';
|
|
12
|
+
import 'swr/mutation';
|
|
13
|
+
import 'vanilla-lazyload';
|
|
14
|
+
import '../../hooks/useCartUI.js';
|
|
15
15
|
|
|
16
16
|
const SHOW_TOOLTIP_TIMEOUT = 600;
|
|
17
17
|
const NUMBER_OF_THEME_SECTION_CREATED_TO_SHOW_TOOLTIP = 1;
|
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
2
|
-
import { useStore, createStore } from 'zustand';
|
|
3
2
|
import { useId, useMemo, useContext, createContext } from 'react';
|
|
4
|
-
import {
|
|
3
|
+
import { useStore, createStore } from 'zustand';
|
|
4
|
+
import 'swr';
|
|
5
|
+
import '@gem-sdk/adapter-shopify';
|
|
6
|
+
import 'swr/mutation';
|
|
7
|
+
import 'swr/infinite';
|
|
8
|
+
import 'vanilla-lazyload';
|
|
9
|
+
import '../hooks/useCartUI.js';
|
|
5
10
|
import { checkInStock } from '../helpers/variant.js';
|
|
11
|
+
import 'react-transition-group';
|
|
12
|
+
import '@gem-sdk/core';
|
|
13
|
+
import 'classnames';
|
|
14
|
+
import 'dayjs';
|
|
15
|
+
import { flattenConnection } from '../helpers/flatten-connection.js';
|
|
16
|
+
import '../helpers/convert.js';
|
|
6
17
|
|
|
7
18
|
// const { Provider, useStore } = createContext<StoreApi<ProductContextProps>>();
|
|
8
19
|
const ProductContext = /*#__PURE__*/ createContext(null);
|
|
@@ -23,6 +34,11 @@ const createProductStoreProvider = (data)=>createStore((set, get)=>({
|
|
|
23
34
|
};
|
|
24
35
|
});
|
|
25
36
|
},
|
|
37
|
+
setUseProductCompareAtPrice: (value)=>{
|
|
38
|
+
set({
|
|
39
|
+
useProductCompareAtPrice: value
|
|
40
|
+
});
|
|
41
|
+
},
|
|
26
42
|
addProperty: (data)=>{
|
|
27
43
|
const properties = get().properties;
|
|
28
44
|
if (!properties?.some((v)=>v.key === data.key)) {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { useRef, useMemo, useCallback } from 'react';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'zustand';
|
|
4
|
-
import 'swr';
|
|
5
4
|
import { usePageStore } from '../../contexts/PageContext.js';
|
|
6
|
-
import '@gem-sdk/adapter-shopify';
|
|
7
|
-
import 'swr/mutation';
|
|
8
|
-
import 'swr/infinite';
|
|
9
|
-
import 'vanilla-lazyload';
|
|
10
|
-
import '../../hooks/useCartUI.js';
|
|
11
5
|
import 'react-transition-group';
|
|
12
6
|
import '@gem-sdk/core';
|
|
7
|
+
import 'swr';
|
|
8
|
+
import 'swr/infinite';
|
|
13
9
|
import 'classnames';
|
|
14
10
|
import 'dayjs';
|
|
15
11
|
import '../convert.js';
|
|
12
|
+
import '@gem-sdk/adapter-shopify';
|
|
13
|
+
import 'swr/mutation';
|
|
14
|
+
import 'vanilla-lazyload';
|
|
15
|
+
import '../../hooks/useCartUI.js';
|
|
16
16
|
|
|
17
17
|
const useInteraction = ()=>{
|
|
18
18
|
const ref = useRef();
|
package/dist/esm/helpers/size.js
CHANGED
|
@@ -101,7 +101,7 @@ const getHeightByShapeGlobalSize = (shapeByLayout)=>{
|
|
|
101
101
|
});
|
|
102
102
|
return result;
|
|
103
103
|
};
|
|
104
|
-
const getWidthByShapeGlobalSize = (shapeByLayout, defaultAuto)=>{
|
|
104
|
+
const getWidthByShapeGlobalSize = (shapeByLayout, defaultAuto, defaultFull)=>{
|
|
105
105
|
let result = {};
|
|
106
106
|
const DEVICES = [
|
|
107
107
|
'desktop',
|
|
@@ -110,7 +110,13 @@ const getWidthByShapeGlobalSize = (shapeByLayout, defaultAuto)=>{
|
|
|
110
110
|
];
|
|
111
111
|
DEVICES.forEach((device)=>{
|
|
112
112
|
const shapeByDevice = getResponsiveValueByScreen(shapeByLayout, device);
|
|
113
|
-
|
|
113
|
+
let width = shapeByDevice?.width;
|
|
114
|
+
if (defaultAuto) {
|
|
115
|
+
width = shapeByDevice?.width || 'auto';
|
|
116
|
+
}
|
|
117
|
+
if (defaultFull) {
|
|
118
|
+
width = shapeByDevice?.width || '100%';
|
|
119
|
+
}
|
|
114
120
|
if (width) {
|
|
115
121
|
result = {
|
|
116
122
|
...result,
|
|
@@ -2,8 +2,8 @@ import { useCallback, useEffect, useMemo } from 'react';
|
|
|
2
2
|
import { useProductStore } from '../contexts/ProductContext.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'zustand';
|
|
5
|
-
import 'swr';
|
|
6
5
|
import { usePageStore } from '../contexts/PageContext.js';
|
|
6
|
+
import 'swr';
|
|
7
7
|
import '@gem-sdk/adapter-shopify';
|
|
8
8
|
import 'swr/mutation';
|
|
9
9
|
import 'swr/infinite';
|
|
@@ -33,6 +33,14 @@ const useProductProperties = ()=>{
|
|
|
33
33
|
const useIsSyncProduct = ()=>{
|
|
34
34
|
return useProductStore((s)=>s.isSyncProduct);
|
|
35
35
|
};
|
|
36
|
+
const useProductBundleDiscount = ()=>{
|
|
37
|
+
const useProductCompareAtPrice = useProductStore((s)=>s.useProductCompareAtPrice);
|
|
38
|
+
const seUseProductCompareAtPrice = useProductStore((s)=>s.setUseProductCompareAtPrice);
|
|
39
|
+
return {
|
|
40
|
+
useProductCompareAtPrice,
|
|
41
|
+
seUseProductCompareAtPrice
|
|
42
|
+
};
|
|
43
|
+
};
|
|
36
44
|
const useQuantity = ()=>{
|
|
37
45
|
const quantity = useProductStore((s)=>s.quantity);
|
|
38
46
|
const hasUpdatePrice = useProductStore((s)=>s.updatePrice);
|
|
@@ -217,4 +225,4 @@ const useProductOfferDiscount = ()=>{
|
|
|
217
225
|
return currentDiscount || 0;
|
|
218
226
|
};
|
|
219
227
|
|
|
220
|
-
export { useCheckAvailableVariantInStock, useCurrentVariant, useCurrentVariantInStock, useFeaturedImageGlobal, useHasPreSelected, useIsSyncProduct, useProduct, useProductOfferDiscount, useProductProperties, useQuantity, useSelectedOption, useUniqProductID, useVariant, useVariantOutStock, useVariants };
|
|
228
|
+
export { useCheckAvailableVariantInStock, useCurrentVariant, useCurrentVariantInStock, useFeaturedImageGlobal, useHasPreSelected, useIsSyncProduct, useProduct, useProductBundleDiscount, useProductOfferDiscount, useProductProperties, useQuantity, useSelectedOption, useUniqProductID, useVariant, useVariantOutStock, useVariants };
|
package/dist/esm/index.js
CHANGED
|
@@ -72,6 +72,7 @@ export { RenderIf, composeMemo, dataStringify, props, removeUndefinedValuesFromO
|
|
|
72
72
|
export { composeShadowCss, getResponsiveStyleShadow, getStyleShadow, getStyleShadowState, parseValueWithUnit } from './helpers/shadow.js';
|
|
73
73
|
export { composeSize, composeSizeCss, genSizeClass, getAspectRatioGlobalSize, getGlobalSizeGap, getHeightByShapeGlobalSize, getPaddingGlobalSize, getValueByDevice, getWidthByShapeGlobalSize, getWidthHeightGlobalSize, makeGlobalSize, makeGlobalSizeIcon, makeStyleWithDefault } from './helpers/size.js';
|
|
74
74
|
export { composeFallbackTypographyStyle, composeFontFamilyTypographyV2, composeTypography, composeTypographyAttr, composeTypographyClassName, composeTypographyCss, composeTypographyStyle, composeTypographyV2, composeTypographyV2Css, genTypoClass } from './helpers/typography.js';
|
|
75
|
+
export { useArticlesQuery, useBlogsQuery } from './hooks/articles/useArticlesQuery.js';
|
|
75
76
|
export { useAddToCart } from './hooks/cart/use-add-to-cart.js';
|
|
76
77
|
export { useCartData } from './hooks/cart/use-cart-data.js';
|
|
77
78
|
export { useCartDiscountCodesUpdate } from './hooks/cart/use-cart-discount-codes-update.js';
|
|
@@ -85,23 +86,22 @@ export { useCollectionsQuery } from './hooks/shop/use-collections-query.js';
|
|
|
85
86
|
export { useProductQuery } from './hooks/shop/use-product-query.js';
|
|
86
87
|
export { useProductsQuery, useProductsQueryAll } from './hooks/shop/use-products-query.js';
|
|
87
88
|
export { useCurrentDevice } from './hooks/use-current-device.js';
|
|
88
|
-
export { formatMoney, shopifyPriceRounding, useFormatMoney } from './hooks/useFormatMoney.js';
|
|
89
89
|
export { useLazyVideo } from './hooks/use-lazy-video.js';
|
|
90
90
|
export { default as useCartId } from './hooks/useCartId.js';
|
|
91
91
|
export { default as useCartLine } from './hooks/useCartLine.js';
|
|
92
92
|
export { default as useCartUI } from './hooks/useCartUI.js';
|
|
93
93
|
export { useCollection } from './hooks/useCollection.js';
|
|
94
|
+
export { formatMoney, shopifyPriceRounding, useFormatMoney } from './hooks/useFormatMoney.js';
|
|
94
95
|
export { useId } from 'react';
|
|
96
|
+
export { default as useInitialSwatchesOptions } from './hooks/useInitialSwatchesOptions.js';
|
|
95
97
|
export { default as useIsomorphicLayoutEffect } from './hooks/useIsomorphicLayoutEffect.js';
|
|
96
98
|
export { default as useLoadScript } from './hooks/useLoadScript.js';
|
|
97
99
|
export { default as useMoney } from './hooks/useMoney.js';
|
|
98
100
|
export { usePrevious } from './hooks/usePrevious.js';
|
|
99
|
-
export {
|
|
100
|
-
export { useCheckAvailableVariantInStock, useCurrentVariant, useCurrentVariantInStock, useFeaturedImageGlobal, useHasPreSelected, useIsSyncProduct, useProduct, useProductOfferDiscount, useProductProperties, useQuantity, useSelectedOption, useUniqProductID, useVariant, useVariantOutStock, useVariants } from './hooks/useProduct.js';
|
|
101
|
+
export { useCheckAvailableVariantInStock, useCurrentVariant, useCurrentVariantInStock, useFeaturedImageGlobal, useHasPreSelected, useIsSyncProduct, useProduct, useProductBundleDiscount, useProductOfferDiscount, useProductProperties, useQuantity, useSelectedOption, useUniqProductID, useVariant, useVariantOutStock, useVariants } from './hooks/useProduct.js';
|
|
101
102
|
export { useProductList, useProductListProducts, useProductListSettings, useProductListStyles } from './hooks/useProductList.js';
|
|
102
103
|
export { default as useSuspenseFetch } from './hooks/useSuspenseFetch.js';
|
|
103
104
|
export { default as useSwatchesOptions } from './hooks/useSwatchesOptions.js';
|
|
104
|
-
export { default as useInitialSwatchesOptions } from './hooks/useInitialSwatchesOptions.js';
|
|
105
105
|
export { InteractionTargetEvent, InteractionTriggerEvent } from './types/custom.js';
|
|
106
106
|
import * as shop from './types/shop.js';
|
|
107
107
|
export { shop as ShopType };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3,10 +3,10 @@ import { Cart as Cart$2, addToCartOperation, getCartOperation, cartDiscountCodes
|
|
|
3
3
|
import { SWRConfig, SWRConfiguration, MutatorOptions } from 'swr';
|
|
4
4
|
import { ShortHandProperty } from '@gem-sdk/styles';
|
|
5
5
|
import * as csstype from 'csstype';
|
|
6
|
+
import * as swr__internal from 'swr/_internal';
|
|
6
7
|
import * as swr_mutation from 'swr/mutation';
|
|
7
8
|
import { SWRMutationConfiguration } from 'swr/mutation';
|
|
8
9
|
import * as _gem_sdk_adapter_common_dist_types_types_cart from '@gem-sdk/adapter-common/dist/types/types/cart';
|
|
9
|
-
import * as swr__internal from 'swr/_internal';
|
|
10
10
|
import { useLayoutEffect } from 'react';
|
|
11
11
|
export { useId } from 'react';
|
|
12
12
|
|
|
@@ -31179,6 +31179,13 @@ type ProductListProviderProps = ProductListContextProps & {
|
|
|
31179
31179
|
declare const ProductListProvider: React.FC<ProductListProviderProps>;
|
|
31180
31180
|
declare const useProductListStore: <U>(selector: (state: ExtractState<StoreApi<ProductListContextProps>>) => U, equalityFn?: ((a: U, b: U) => boolean) | undefined) => U;
|
|
31181
31181
|
|
|
31182
|
+
type MediaSelectFragment = Pick<Media$1, 'id' | 'contentType' | 'previewImage' | 'src' | 'width' | 'height' | 'alt'>;
|
|
31183
|
+
|
|
31184
|
+
type VariantSelectFragment = Pick<ProductVariant$1, 'id' | 'title' | 'barcode' | 'baseID' | 'costPrice' | 'height' | 'inventoryPolicy' | 'inventoryQuantity' | 'inventoryStatus' | 'isDigital' | 'length' | 'lowInventoryAmount' | 'manageInventory' | 'mediaId' | 'platform' | 'price' | 'salePrice' | 'sku' | 'soldIndividually' | 'weight' | 'width'> & {
|
|
31185
|
+
selectedOptions: Array<Pick<SelectedOption$1, 'name' | 'value' | 'optionType'>>;
|
|
31186
|
+
media?: Maybe$1<Pick<Media$1, 'id' | 'contentType' | 'previewImage' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
31187
|
+
};
|
|
31188
|
+
|
|
31182
31189
|
type ProductSelectFragment = Pick<Product$1, 'tags' | 'id' | 'title' | 'createdAt' | 'description' | 'descriptionHtml' | 'handle' | 'averageRating' | 'isStorefront' | 'isSample' | 'baseID' | 'sku' | 'vendor'> & {
|
|
31183
31190
|
collections?: Maybe$1<{
|
|
31184
31191
|
edges: Array<{
|
|
@@ -31206,7 +31213,16 @@ type ProductSelectFragment = Pick<Product$1, 'tags' | 'id' | 'title' | 'createdA
|
|
|
31206
31213
|
featuredImage?: Maybe$1<Pick<Media$1, 'id' | 'contentType' | 'previewImage' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
31207
31214
|
};
|
|
31208
31215
|
|
|
31209
|
-
type
|
|
31216
|
+
type CollectionSelectFragment = Pick<Collection$1, 'id' | 'createdAt' | 'updatedAt' | 'deletedAt' | 'title' | 'handle' | 'description' | 'descriptionHtml' | 'templateSuffix' | 'titleMeta' | 'descriptionMeta' | 'baseID' | 'platform' | 'tags' | 'isStorefront' | 'isSample'> & {
|
|
31217
|
+
products?: Maybe$1<Pick<ProductConnection$1, 'totalCount'> & {
|
|
31218
|
+
edges: Array<{
|
|
31219
|
+
node?: Maybe$1<Pick<Product$1, 'id' | 'title' | 'handle' | 'description' | 'status'> & {
|
|
31220
|
+
featuredImage?: Maybe$1<Pick<Media$1, 'src'>>;
|
|
31221
|
+
}>;
|
|
31222
|
+
}>;
|
|
31223
|
+
}>;
|
|
31224
|
+
collectionMedia?: Maybe$1<Pick<CollectionMedia$1, 'src'>>;
|
|
31225
|
+
};
|
|
31210
31226
|
|
|
31211
31227
|
type AttributeProp = {
|
|
31212
31228
|
key: string;
|
|
@@ -31236,6 +31252,8 @@ type ProductContextProps = {
|
|
|
31236
31252
|
updatePrice?: boolean;
|
|
31237
31253
|
hasPreSelected?: boolean;
|
|
31238
31254
|
setHasPreSelected: (value: boolean) => void;
|
|
31255
|
+
useProductCompareAtPrice?: boolean;
|
|
31256
|
+
setUseProductCompareAtPrice: (value?: boolean) => void;
|
|
31239
31257
|
};
|
|
31240
31258
|
type ProductProviderProps = Pick<ProductContextProps, 'product' | 'quantity' | 'selectedOptions' | 'isSyncProduct'> & {
|
|
31241
31259
|
initialVariantId?: string;
|
|
@@ -31349,17 +31367,6 @@ type PageProviderProps = Pick<PageContextProps, 'dynamicProduct' | 'dynamicColle
|
|
|
31349
31367
|
declare const PageProvider: React.FC<PageProviderProps>;
|
|
31350
31368
|
declare const usePageStore: <U>(selector: (state: ExtractState<StoreApi<PageContextProps>>) => U, equalityFn?: ((a: U, b: U) => boolean) | undefined) => U;
|
|
31351
31369
|
|
|
31352
|
-
type CollectionSelectFragment = Pick<Collection$1, 'id' | 'createdAt' | 'updatedAt' | 'deletedAt' | 'title' | 'handle' | 'description' | 'descriptionHtml' | 'templateSuffix' | 'titleMeta' | 'descriptionMeta' | 'baseID' | 'platform' | 'tags' | 'isStorefront' | 'isSample'> & {
|
|
31353
|
-
products?: Maybe$1<Pick<ProductConnection$1, 'totalCount'> & {
|
|
31354
|
-
edges: Array<{
|
|
31355
|
-
node?: Maybe$1<Pick<Product$1, 'id' | 'title' | 'handle' | 'description' | 'status'> & {
|
|
31356
|
-
featuredImage?: Maybe$1<Pick<Media$1, 'src'>>;
|
|
31357
|
-
}>;
|
|
31358
|
-
}>;
|
|
31359
|
-
}>;
|
|
31360
|
-
collectionMedia?: Maybe$1<Pick<CollectionMedia$1, 'src'>>;
|
|
31361
|
-
};
|
|
31362
|
-
|
|
31363
31370
|
type CollectionContextProps = {
|
|
31364
31371
|
collection?: CollectionSelectFragment;
|
|
31365
31372
|
changeCollectionStore: (args: {
|
|
@@ -31647,11 +31654,6 @@ type PreviewPageQueryResponse = {
|
|
|
31647
31654
|
};
|
|
31648
31655
|
declare const PreviewPageDocument: string;
|
|
31649
31656
|
|
|
31650
|
-
type VariantSelectFragment = Pick<ProductVariant$1, 'id' | 'title' | 'barcode' | 'baseID' | 'costPrice' | 'height' | 'inventoryPolicy' | 'inventoryQuantity' | 'inventoryStatus' | 'isDigital' | 'length' | 'lowInventoryAmount' | 'manageInventory' | 'mediaId' | 'platform' | 'price' | 'salePrice' | 'sku' | 'soldIndividually' | 'weight' | 'width'> & {
|
|
31651
|
-
selectedOptions: Array<Pick<SelectedOption$1, 'name' | 'value' | 'optionType'>>;
|
|
31652
|
-
media?: Maybe$1<Pick<Media$1, 'id' | 'contentType' | 'previewImage' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
31653
|
-
};
|
|
31654
|
-
|
|
31655
31657
|
type LibraryTemplateQueryVariables = Exact<{
|
|
31656
31658
|
libraryTemplateId: Scalars['ID'];
|
|
31657
31659
|
}>;
|
|
@@ -39696,7 +39698,7 @@ declare const getGlobalSizeGap: (globalSize?: ObjectDevices<SizeSettingGlobal>)
|
|
|
39696
39698
|
declare const makeStyleWithDefault: <T extends ShortHandProperty, K>(name: T, value?: Partial<Record<NameDevices$1, K>> | undefined, defaultVal?: Partial<Record<NameDevices$1, K>> | undefined) => Record<ResponsiveKey<T>, K>;
|
|
39697
39699
|
declare const getWidthHeightGlobalSize: (type: 'width' | 'height', globalSize?: ObjectDevices<SizeSettingGlobal>) => Partial<Record<NameDevices$1, string | number>>;
|
|
39698
39700
|
declare const getHeightByShapeGlobalSize: (shapeByLayout?: ObjectDevices<SizeSettingGlobal>) => Partial<Record<NameDevices$1, string>>;
|
|
39699
|
-
declare const getWidthByShapeGlobalSize: (shapeByLayout?: ObjectDevices<SizeSettingGlobal>, defaultAuto?: boolean) => Partial<Record<NameDevices$1, string>>;
|
|
39701
|
+
declare const getWidthByShapeGlobalSize: (shapeByLayout?: ObjectDevices<SizeSettingGlobal>, defaultAuto?: boolean, defaultFull?: boolean) => Partial<Record<NameDevices$1, string>>;
|
|
39700
39702
|
declare const getAspectRatioGlobalSize: (shape?: ObjectDevices<SizeSettingGlobal>) => ObjectDevices<string>;
|
|
39701
39703
|
declare const getPaddingGlobalSize: (globalSize?: ObjectDevices<SizeSettingGlobal>) => React.CSSProperties;
|
|
39702
39704
|
declare const getValueByDevice: <T>(value: any, device: NameDevices$1) => T;
|
|
@@ -41236,6 +41238,68 @@ declare const composeTypographyStyle: (typo?: TypographySettingV2, typography?:
|
|
|
41236
41238
|
vectorEffect?: csstype.Property.VectorEffect | undefined;
|
|
41237
41239
|
};
|
|
41238
41240
|
|
|
41241
|
+
type ArticlesQueryVariables = Exact$1<{
|
|
41242
|
+
after?: InputMaybe$1<Scalars$2['Cursor']>;
|
|
41243
|
+
before?: InputMaybe$1<Scalars$2['Cursor']>;
|
|
41244
|
+
first?: InputMaybe$1<Scalars$2['Int']>;
|
|
41245
|
+
last?: InputMaybe$1<Scalars$2['Int']>;
|
|
41246
|
+
orderBy?: InputMaybe$1<ArticleOrder$1>;
|
|
41247
|
+
where?: InputMaybe$1<ArticleWhereInput$1>;
|
|
41248
|
+
}>;
|
|
41249
|
+
type ArticlesQueryResponse = {
|
|
41250
|
+
articles?: Maybe$1<(Pick<ArticleConnection$1, 'totalCount'> & {
|
|
41251
|
+
edges: Array<(Pick<ArticleEdge$1, 'cursor'> & {
|
|
41252
|
+
node?: Maybe$1<(Pick<Article$2, 'id' | 'title' | 'handle' | 'description' | 'templateSuffix' | 'titleMeta' | 'descriptionMeta' | 'baseID' | 'platform' | 'isSample' | 'platformCreatedAt' | 'author'> & {
|
|
41253
|
+
tags: Array<never>;
|
|
41254
|
+
content?: Maybe$1<Pick<ArticleContent$1, 'excerptHtml'>>;
|
|
41255
|
+
blogs?: Maybe$1<{
|
|
41256
|
+
edges: Array<{
|
|
41257
|
+
node?: Maybe$1<Pick<Blog$1, 'title' | 'handle'>>;
|
|
41258
|
+
}>;
|
|
41259
|
+
}>;
|
|
41260
|
+
media?: Maybe$1<Pick<Media$1, 'alt' | 'width' | 'src' | 'height'>>;
|
|
41261
|
+
})>;
|
|
41262
|
+
})>;
|
|
41263
|
+
pageInfo?: Maybe$1<Pick<PageInfo$1, 'endCursor' | 'hasNextPage' | 'hasPreviousPage' | 'startCursor'>>;
|
|
41264
|
+
})>;
|
|
41265
|
+
};
|
|
41266
|
+
|
|
41267
|
+
type BlogsQueryVariables = Exact$1<{
|
|
41268
|
+
after?: InputMaybe$1<Scalars$2['Cursor']>;
|
|
41269
|
+
before?: InputMaybe$1<Scalars$2['Cursor']>;
|
|
41270
|
+
first?: InputMaybe$1<Scalars$2['Int']>;
|
|
41271
|
+
last?: InputMaybe$1<Scalars$2['Int']>;
|
|
41272
|
+
orderBy?: InputMaybe$1<BlogOrder$1>;
|
|
41273
|
+
where?: InputMaybe$1<BlogWhereInput$1>;
|
|
41274
|
+
articlesOrderBy?: InputMaybe$1<ArticleOrder$1>;
|
|
41275
|
+
}>;
|
|
41276
|
+
type BlogsQueryResponse = {
|
|
41277
|
+
blogs?: Maybe$1<(Pick<BlogConnection$1, 'totalCount'> & {
|
|
41278
|
+
edges: Array<(Pick<BlogEdge$1, 'cursor'> & {
|
|
41279
|
+
node?: Maybe$1<(Pick<Blog$1, 'baseID' | 'description' | 'descriptionMeta' | 'handle' | 'id' | 'platform' | 'tags' | 'templateSuffix' | 'title' | 'titleMeta'> & {
|
|
41280
|
+
articles?: Maybe$1<(Pick<ArticleConnection$1, 'totalCount'> & {
|
|
41281
|
+
edges: Array<(Pick<ArticleEdge$1, 'cursor'> & {
|
|
41282
|
+
node?: Maybe$1<(Pick<Article$2, 'id' | 'title' | 'handle' | 'description' | 'templateSuffix' | 'titleMeta' | 'descriptionMeta' | 'baseID' | 'platform' | 'isSample' | 'platformCreatedAt' | 'author'> & {
|
|
41283
|
+
tags: Array<never>;
|
|
41284
|
+
content?: Maybe$1<Pick<ArticleContent$1, 'excerptHtml'>>;
|
|
41285
|
+
blogs?: Maybe$1<{
|
|
41286
|
+
edges: Array<{
|
|
41287
|
+
node?: Maybe$1<Pick<Blog$1, 'title' | 'handle'>>;
|
|
41288
|
+
}>;
|
|
41289
|
+
}>;
|
|
41290
|
+
media?: Maybe$1<Pick<Media$1, 'alt' | 'width' | 'src' | 'height'>>;
|
|
41291
|
+
})>;
|
|
41292
|
+
})>;
|
|
41293
|
+
})>;
|
|
41294
|
+
})>;
|
|
41295
|
+
})>;
|
|
41296
|
+
pageInfo?: Maybe$1<Pick<PageInfo$1, 'endCursor' | 'hasNextPage' | 'hasPreviousPage' | 'startCursor'>>;
|
|
41297
|
+
})>;
|
|
41298
|
+
};
|
|
41299
|
+
|
|
41300
|
+
declare const useArticlesQuery: (variables: ArticlesQueryVariables | null, options?: SWRConfiguration<ArticlesQueryResponse>) => swr__internal.SWRResponse<ArticlesQueryResponse, any, Partial<swr__internal.PublicConfiguration<ArticlesQueryResponse, any, (arg: ["query/articles", any]) => swr__internal.FetcherResponse<ArticlesQueryResponse>>> | undefined>;
|
|
41301
|
+
declare const useBlogsQuery: (variables: BlogsQueryVariables | null, options?: SWRConfiguration<BlogsQueryResponse>) => swr__internal.SWRResponse<BlogsQueryResponse, any, Partial<swr__internal.PublicConfiguration<BlogsQueryResponse, any, (arg: ["query/blogs", any]) => swr__internal.FetcherResponse<BlogsQueryResponse>>> | undefined>;
|
|
41302
|
+
|
|
41239
41303
|
type Func$6 = ReturnType<typeof addToCartOperation>;
|
|
41240
41304
|
type Response$6 = Awaited<ReturnType<Func$6>>;
|
|
41241
41305
|
type Args$5 = Parameters<Func$6>[0];
|
|
@@ -41323,10 +41387,6 @@ declare const useProductsQueryAll: (variable?: VariableRelatedStyles | undefined
|
|
|
41323
41387
|
|
|
41324
41388
|
declare const useCurrentDevice: () => NameDevices$1;
|
|
41325
41389
|
|
|
41326
|
-
declare const shopifyPriceRounding: (amount: number | string, precision?: number) => string;
|
|
41327
|
-
declare const formatMoney: (cents: string, format: any) => string;
|
|
41328
|
-
declare const useFormatMoney: (amount: number, withCurrency: boolean) => string;
|
|
41329
|
-
|
|
41330
41390
|
declare const useLazyVideo: () => void;
|
|
41331
41391
|
|
|
41332
41392
|
declare const useCartId: () => {
|
|
@@ -41345,6 +41405,12 @@ declare function useCartUI(): {
|
|
|
41345
41405
|
|
|
41346
41406
|
declare const useCollection: () => CollectionSelectFragment | undefined;
|
|
41347
41407
|
|
|
41408
|
+
declare const shopifyPriceRounding: (amount: number | string, precision?: number) => string;
|
|
41409
|
+
declare const formatMoney: (cents: string, format: any) => string;
|
|
41410
|
+
declare const useFormatMoney: (amount: number, withCurrency: boolean) => string;
|
|
41411
|
+
|
|
41412
|
+
declare const useInitialSwatchesOptions: (options?: ProductOption$1[]) => never[] | undefined;
|
|
41413
|
+
|
|
41348
41414
|
declare const useIsomorphicLayoutEffect: typeof useLayoutEffect;
|
|
41349
41415
|
|
|
41350
41416
|
type LoadScriptParams = Parameters<typeof loadScript>;
|
|
@@ -41401,68 +41467,6 @@ declare const useMoney: (amount: number) => UseMoneyValue;
|
|
|
41401
41467
|
|
|
41402
41468
|
declare const usePrevious: <T>(value: T) => T | undefined;
|
|
41403
41469
|
|
|
41404
|
-
type ArticlesQueryVariables = Exact$1<{
|
|
41405
|
-
after?: InputMaybe$1<Scalars$2['Cursor']>;
|
|
41406
|
-
before?: InputMaybe$1<Scalars$2['Cursor']>;
|
|
41407
|
-
first?: InputMaybe$1<Scalars$2['Int']>;
|
|
41408
|
-
last?: InputMaybe$1<Scalars$2['Int']>;
|
|
41409
|
-
orderBy?: InputMaybe$1<ArticleOrder$1>;
|
|
41410
|
-
where?: InputMaybe$1<ArticleWhereInput$1>;
|
|
41411
|
-
}>;
|
|
41412
|
-
type ArticlesQueryResponse = {
|
|
41413
|
-
articles?: Maybe$1<(Pick<ArticleConnection$1, 'totalCount'> & {
|
|
41414
|
-
edges: Array<(Pick<ArticleEdge$1, 'cursor'> & {
|
|
41415
|
-
node?: Maybe$1<(Pick<Article$2, 'id' | 'title' | 'handle' | 'description' | 'templateSuffix' | 'titleMeta' | 'descriptionMeta' | 'baseID' | 'platform' | 'isSample' | 'platformCreatedAt' | 'author'> & {
|
|
41416
|
-
tags: Array<never>;
|
|
41417
|
-
content?: Maybe$1<Pick<ArticleContent$1, 'excerptHtml'>>;
|
|
41418
|
-
blogs?: Maybe$1<{
|
|
41419
|
-
edges: Array<{
|
|
41420
|
-
node?: Maybe$1<Pick<Blog$1, 'title' | 'handle'>>;
|
|
41421
|
-
}>;
|
|
41422
|
-
}>;
|
|
41423
|
-
media?: Maybe$1<Pick<Media$1, 'alt' | 'width' | 'src' | 'height'>>;
|
|
41424
|
-
})>;
|
|
41425
|
-
})>;
|
|
41426
|
-
pageInfo?: Maybe$1<Pick<PageInfo$1, 'endCursor' | 'hasNextPage' | 'hasPreviousPage' | 'startCursor'>>;
|
|
41427
|
-
})>;
|
|
41428
|
-
};
|
|
41429
|
-
|
|
41430
|
-
type BlogsQueryVariables = Exact$1<{
|
|
41431
|
-
after?: InputMaybe$1<Scalars$2['Cursor']>;
|
|
41432
|
-
before?: InputMaybe$1<Scalars$2['Cursor']>;
|
|
41433
|
-
first?: InputMaybe$1<Scalars$2['Int']>;
|
|
41434
|
-
last?: InputMaybe$1<Scalars$2['Int']>;
|
|
41435
|
-
orderBy?: InputMaybe$1<BlogOrder$1>;
|
|
41436
|
-
where?: InputMaybe$1<BlogWhereInput$1>;
|
|
41437
|
-
articlesOrderBy?: InputMaybe$1<ArticleOrder$1>;
|
|
41438
|
-
}>;
|
|
41439
|
-
type BlogsQueryResponse = {
|
|
41440
|
-
blogs?: Maybe$1<(Pick<BlogConnection$1, 'totalCount'> & {
|
|
41441
|
-
edges: Array<(Pick<BlogEdge$1, 'cursor'> & {
|
|
41442
|
-
node?: Maybe$1<(Pick<Blog$1, 'baseID' | 'description' | 'descriptionMeta' | 'handle' | 'id' | 'platform' | 'tags' | 'templateSuffix' | 'title' | 'titleMeta'> & {
|
|
41443
|
-
articles?: Maybe$1<(Pick<ArticleConnection$1, 'totalCount'> & {
|
|
41444
|
-
edges: Array<(Pick<ArticleEdge$1, 'cursor'> & {
|
|
41445
|
-
node?: Maybe$1<(Pick<Article$2, 'id' | 'title' | 'handle' | 'description' | 'templateSuffix' | 'titleMeta' | 'descriptionMeta' | 'baseID' | 'platform' | 'isSample' | 'platformCreatedAt' | 'author'> & {
|
|
41446
|
-
tags: Array<never>;
|
|
41447
|
-
content?: Maybe$1<Pick<ArticleContent$1, 'excerptHtml'>>;
|
|
41448
|
-
blogs?: Maybe$1<{
|
|
41449
|
-
edges: Array<{
|
|
41450
|
-
node?: Maybe$1<Pick<Blog$1, 'title' | 'handle'>>;
|
|
41451
|
-
}>;
|
|
41452
|
-
}>;
|
|
41453
|
-
media?: Maybe$1<Pick<Media$1, 'alt' | 'width' | 'src' | 'height'>>;
|
|
41454
|
-
})>;
|
|
41455
|
-
})>;
|
|
41456
|
-
})>;
|
|
41457
|
-
})>;
|
|
41458
|
-
})>;
|
|
41459
|
-
pageInfo?: Maybe$1<Pick<PageInfo$1, 'endCursor' | 'hasNextPage' | 'hasPreviousPage' | 'startCursor'>>;
|
|
41460
|
-
})>;
|
|
41461
|
-
};
|
|
41462
|
-
|
|
41463
|
-
declare const useArticlesQuery: (variables: ArticlesQueryVariables | null, options?: SWRConfiguration<ArticlesQueryResponse>) => swr__internal.SWRResponse<ArticlesQueryResponse, any, Partial<swr__internal.PublicConfiguration<ArticlesQueryResponse, any, (arg: ["query/articles", any]) => swr__internal.FetcherResponse<ArticlesQueryResponse>>> | undefined>;
|
|
41464
|
-
declare const useBlogsQuery: (variables: BlogsQueryVariables | null, options?: SWRConfiguration<BlogsQueryResponse>) => swr__internal.SWRResponse<BlogsQueryResponse, any, Partial<swr__internal.PublicConfiguration<BlogsQueryResponse, any, (arg: ["query/blogs", any]) => swr__internal.FetcherResponse<BlogsQueryResponse>>> | undefined>;
|
|
41465
|
-
|
|
41466
41470
|
declare const useUniqProductID: () => string;
|
|
41467
41471
|
declare const useProduct: () => ProductSelectFragment | undefined;
|
|
41468
41472
|
declare const useFeaturedImageGlobal: () => MediaSelectFragment | undefined;
|
|
@@ -41472,6 +41476,10 @@ declare const useProductProperties: () => {
|
|
|
41472
41476
|
required?: boolean | undefined;
|
|
41473
41477
|
}[] | undefined;
|
|
41474
41478
|
declare const useIsSyncProduct: () => boolean | undefined;
|
|
41479
|
+
declare const useProductBundleDiscount: () => {
|
|
41480
|
+
useProductCompareAtPrice: boolean | undefined;
|
|
41481
|
+
seUseProductCompareAtPrice: (value?: boolean | undefined) => void;
|
|
41482
|
+
};
|
|
41475
41483
|
declare const useQuantity: () => {
|
|
41476
41484
|
quantity: number | undefined;
|
|
41477
41485
|
hasUpdatePrice: boolean | undefined;
|
|
@@ -41536,8 +41544,6 @@ declare const useSuspenseFetch: <T>(key: string | any[], promise: () => Promise<
|
|
|
41536
41544
|
|
|
41537
41545
|
declare const useSwatchesOptions: (options?: ProductOption$1[]) => ProductOption$1[];
|
|
41538
41546
|
|
|
41539
|
-
declare const useInitialSwatchesOptions: (options?: ProductOption$1[]) => never[] | undefined;
|
|
41540
|
-
|
|
41541
41547
|
type PublishedThemePageSelectFragment = Pick<PublishedThemePage$1, 'id' | 'name' | 'handle' | 'isMobile' | 'sectionPosition'> & {
|
|
41542
41548
|
pageSections?: Maybe$1<Array<Maybe$1<Pick<PublishedPageSection$1, 'cid' | 'component' | 'id'>>>>;
|
|
41543
41549
|
themePageCustomSections?: Maybe$1<Array<Maybe$1<Pick<PublishedCustomSection$1, 'cid' | 'component' | 'id' | 'type'>>>>;
|
|
@@ -41595,4 +41601,4 @@ declare const useInteraction: () => {
|
|
|
41595
41601
|
interactionListenerLoaded: (callback: () => void) => void;
|
|
41596
41602
|
};
|
|
41597
41603
|
|
|
41598
|
-
export { AddOn, AddonProvider, AddonProviderProps, AdvancedType, AirProductReview, AliReviewsWidgetType, AlignItemProp, AlignProp, AnimationBaseSetting, AnimationConfig, AnimationDirectionType, AnimationEasingType, AnimationFadeSettingType, AnimationSetting, AnimationSettingType, AnimationShakeSettingType, AnimationSlideSettingType, AnimationTrigger, AnimationTriggerType, AnimationType, AnimationZoomDirectionType, AnimationZoomSettingType, appAPI as AppAPIType, ArticleListProvider, ArticleListProviderProps, ArticleProvider, ArticleProviderProps, Background, BaseProps, BasePropsWrap, BlockEntity, BogosWidgetType, BoldSubscriptionsWidgetType, Border, BorderStyle, BuilderComponentProvider, BuilderComponentProviderProps, BuilderEntity, BuilderEntityNested, BuilderPreviewProvider, BuilderPreviewProviderProps, BuilderProvider, BuilderProviderProps, BuilderState, Builtin, CSSStateKey, CartLineProvider, CartLineProviderProps, CollectionDetailFilterDocument, CollectionDetailFilterQueryResponse, CollectionDetailFilterQueryVariables, CollectionDocument, CollectionProvider, CollectionProviderProps, CollectionQueryResponse, CollectionQueryVariables, CollectionSelectFragment, CollectionsDocument, CollectionsQueryResponse, CollectionsQueryVariables, ColorKey, ColorType$1 as ColorType, ColorValueType, Component, ComponentPreset, ComponentSetting, ContainerProp, ControlProp, ControlTriggerAction, ControlUI, CornerRadius, CornerRadiusType, CustomComponentConfig, DeepPartial, DynamicCollection, DynamicProduct, ExtractState, FastBundleWidgetType, FeraReviewsV3WidgetType, FeraReviewsWidgetType, FetchCollectionArgs, FetchFunc, FetchProductParams, FlexDirectionProp, FontName, GRADIENT_BGR_KEY, GlobalStyleConfig, GlobalStyleResponsiveConfig, GlobalSwatchesData, GraphQLConnection, GroupPropType, GrowaveWidgetTypeV1, GrowaveWidgetTypeV2, HSLAColorType, HSLColorType, HexColorType, ImageShape$1 as ImageShape, InitComponentType, InstantJudgeMeReviewsWidgetType, InstantKlaviyoWidgetType, InstantLooxReviewsWidgetType, Interaction, InteractionCondition, InteractionElement, InteractionTarget, InteractionTargetEvent, InteractionTargetEventObject, InteractionTriggerEvent, JudgeMeReviewsWidgetType, KlaviyoWidgetType, LaiProductReviewsAdvancedWidgetType, LaiProductReviewsWidgetType, LibrarySaleFunnelDocument, LibrarySaleFunnelQueryResponse, LibrarySaleFunnelQueryVariables, LibraryTemplateDocument, LibraryTemplateQueryResponse, LibraryTemplateQueryVariables, LooxReviewsWidgetType, ModalProvider, ModalProviderProps, NameDevices$1 as NameDevices, NestedKeys, ObjectDeviceGlobalType, ObjectDevices, ObjectLayoutValue, OmnisendWidgetType, OnlyOne, OpinewDesignWidgetType, OpinewWidgetType, OptionNormalStyle, OptionSpecialStyle, Options, PageContext, PageProvider, PageProviderProps, PageType, PageViewUpDocument, PageViewUpMutationResponse, PageViewUpMutationVariables, PickyStoryWidgetType, PostPurchaseTypo, PreOrderNowWodWidgetType, PreviewPageDocument, PreviewPageQueryResponse, PreviewPageQueryVariables, Primitive, ProductInputAnalytic, ProductListProvider, ProductListProviderProps, ProductOffer, ProductProvider, ProductProviderProps, ProductReviewsWidgetType, ProductSelectFragment, ProductsDocument, ProductsQueryResponse, ProductsQueryVariables, PublicStoreFrontData, PublishedShopMetasDocument, PublishedShopMetasQueryResponse, PublishedThemePageSelectFragment, PublishedThemePagesDocument, PublishedThemePagesQueryResponse, PublishedThemePagesQueryVariables, QueryPublishedShopMetasArgs, RGBAColorType, RGBColorType, Ratio$1 as Ratio, RawChild, RenderMemo as Render, RenderChildren, RenderIf, Render as RenderLiquid, RenderMode, RenderPreviewMemo as RenderPreview, RequiredCursorEdge, ResponsiveKey, ResponsiveStateProp, RivyoWidgetType, RoundedSize, RyviuWidgetType, SaleFunnelDiscount$1 as SaleFunnelDiscount, SaleFunnelDiscountEdge$1 as SaleFunnelDiscountEdge, SaleFunnelDiscountObjectType$1 as SaleFunnelDiscountObjectType, SaleFunnelDiscountType$1 as SaleFunnelDiscountType, SaleFunnelDiscountValueType$1 as SaleFunnelDiscountValueType, SaleFunnelDiscountsDocument, SaleFunnelDiscountsQueryResponse, SaleFunnelDiscountsQueryVariables, Scalars$1 as Scalars, ScaleByDirection, SectionData, SectionEntity, SectionProvider, SectionProviderProps, SettingByAnimationType, SettingByAnimationValues, ShadowProps, ShadowStyle, ShadowStyleApplied, ShadowType, ShopLibraryPageDocument, ShopLibraryPageQueryResponse, ShopLibraryPageQueryVariables, ShopProvider, ShopProviderProps, shop as ShopType, SizeProps, SizeSetting, SizeSettingGlobal, SizeType, SpacingType, StampedWidgetType, StateProp, StateSelector, StateType, StoreConfig, StorePropertyDocument, StorePropertyQueryResponse, StorePropertyQueryVariables, SwatchesOptionType, SwatchesOptionValue, TagShopWidgetType, ThemePageDocument, ThemePageQueryResponse, ThemePageQueryVariables, ThemeSectionStatus$1 as ThemeSectionStatus, TransformProp, TriggerConfig, TrustooWidgetType, TypographyProps, TypographySetting, TypographySettingV2, TypographyType, TypographyV2Attrs, TypographyV2Props, UltimateSalesBoostWidgetType, VariantSelectFragment, VitalsWidgetType, WiserV2WidgetType, WiserWidgetType, WrapRenderChildren, YotpoReviewsWidgetType, addAppBlockId, animations, baseAssetURL, calculateFirstProduct, checkAvailableVariantInStock, checkInStock, cls, composeAdvanceStyle, composeAdvanceStyleForPostPurchase, composeBackgroundCss, composeBorderCss, composeCornerCss, composeFallbackTypographyStyle, composeFontFamilyTypographyV2, composeGridLayout, composeMemo, composePositionLineHeight, composePostionIconList, composeRadius, composeRadiusResponsive, composeShadowCss, composeSize, composeSizeCss, composeSpacing, composeTextColorCss, composeTypography, composeTypographyAttr, composeTypographyClassName, composeTypographyCss, composeTypographyStyle, composeTypographyV2, composeTypographyV2Css, convertHTML, convertOldLayout, convertTextAlignToJustify, dataStringify, fetchMedias, fetchVariants, filterAttrInStyle, filterCornerInStyle, filterToolbarPreview, flattenConnection, formatMoney, fpixel, genSizeClass, genTypoClass, genVariable, generateCollectionQueryKey, generateProductQueryKey, generateProductsQueryKey, getAppBlocks, getAspectRatioGlobalSize, getBgImageByDevice, getBorderRadiusStyle, getBorderStyle, getCarouselContainerHeight, getCollection, getCornerCSSFromGlobal, getCustomRadius, getGlobalColorCSSProp, getGlobalColorClass, getGlobalColorResponsiveClass, getGlobalColorResponsiveStyle, getGlobalColorStateClass, getGlobalColorStateClassDynamicBtn, getGlobalColorStateResponsiveClass, getGlobalColorStateResponsiveClassDynamicBtn, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, getGlobalColorStyle, getGlobalSizeGap, getGradientBgrStyleByDevice, getGradientBgrStyleForButton, getHeightByShapeGlobalSize, getPaddingGlobalSize, getProduct, getProductBySlug, getRadiusCSSFromGlobal, getRadiusStyleActiveState, getResponsiveStateValue, getResponsiveStyleShadow, getResponsiveValue, getResponsiveValueByScreen, getSelectedVariant, getShortName, getSingleColorVariable, getSpacingVariable, getStyleBackgroundByDevice, getStyleBgColor, getStyleShadow, getStyleShadowState, getValueByDevice, getWidthByShapeGlobalSize, getWidthHeightGlobalSize, globalEvent, gridToArrayRegex, gtag, handleConvertBorderColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertClassColor, handleConvertClassColorDynamicBtn, isBrowser, isColor, isColumnDirectionExist, isDefined, isEmptyChildren, isLocalEnv, isSafari, loadScript, makeAspectRatio, makeContainerWidthOrHeight, makeDotGapToCarouselStyle, makeFixedBgAttachment, makeGlobalSize, makeGlobalSizeHeightResponsive, makeGlobalSizeIcon, makeGlobalSizeWidthResponsive, makeHeight, makeLineClamp, makeStyle, makeStyleKey, makeStyleResponsive, makeStyleResponsiveByScreen, makeStyleResponsiveState, makeStyleState, makeStyleWithDefault, makeWidth, normalizeBuilderData, optionLayoutStyle, parseSelectedOption, parseValueWithUnit, prefetchQueries, props, removeAttrInStyle, removeNullUndefined, removePaddingYInStyle, removeUndefinedValuesFromObject, shopifyPriceRounding, splitStyle, styles, template, tiktokpixel, useAddToCart, useAddon, useAddons, useArticleListStore, useArticleStore, useArticlesQuery, useBlogsQuery, useBuilderComponent, useBuilderPreviewStore, useBuilderStore, useCartData, useCartDiscountCodesUpdate, useCartId, useCartLine, useCartLineStore, useCartNoteUpdate, useCartUI, useCheckAvailableVariantInStock, useCheckoutUrl, useCollection, useCollectionQuery, useCollectionStore, useCollectionsQuery, useConnectedShopify, useCreateCart, useCurrency, useCurrentDevice, useCurrentVariant, useCurrentVariantInStock, useEditorMode, useFeaturedImageGlobal, useFormatMoney, useHasPreSelected, useInitialSwatchesOptions, useInteraction, useIsSampleProduct, useIsStorefrontProduct, useIsSyncProduct, useIsomorphicLayoutEffect, useLazyVideo, useLoadScript, useLocale, useMatchMutate, useMobileOnly, useModalStore, useMoney, useMoneyFormat, usePageStore, usePageType, usePluginEnable, usePrevious, useProduct, useProductList, useProductListProducts, useProductListSettings, useProductListStore, useProductListStyles, useProductOfferDiscount, useProductProperties, useProductQuery, useProductStore, useProductsQuery, useProductsQueryAll, useQuantity, useRemoveCartItem, useSection, useSectionStore, useSelectedOption, useShopStore, useStoreFront, useSuspenseFetch, useSwatches, useSwatchesOptions, useUniqProductID, useUpdateCartItem, useVariant, useVariantOutStock, useVariants, validateEmail };
|
|
41604
|
+
export { AddOn, AddonProvider, AddonProviderProps, AdvancedType, AirProductReview, AliReviewsWidgetType, AlignItemProp, AlignProp, AnimationBaseSetting, AnimationConfig, AnimationDirectionType, AnimationEasingType, AnimationFadeSettingType, AnimationSetting, AnimationSettingType, AnimationShakeSettingType, AnimationSlideSettingType, AnimationTrigger, AnimationTriggerType, AnimationType, AnimationZoomDirectionType, AnimationZoomSettingType, appAPI as AppAPIType, ArticleListProvider, ArticleListProviderProps, ArticleProvider, ArticleProviderProps, Background, BaseProps, BasePropsWrap, BlockEntity, BogosWidgetType, BoldSubscriptionsWidgetType, Border, BorderStyle, BuilderComponentProvider, BuilderComponentProviderProps, BuilderEntity, BuilderEntityNested, BuilderPreviewProvider, BuilderPreviewProviderProps, BuilderProvider, BuilderProviderProps, BuilderState, Builtin, CSSStateKey, CartLineProvider, CartLineProviderProps, CollectionDetailFilterDocument, CollectionDetailFilterQueryResponse, CollectionDetailFilterQueryVariables, CollectionDocument, CollectionProvider, CollectionProviderProps, CollectionQueryResponse, CollectionQueryVariables, CollectionSelectFragment, CollectionsDocument, CollectionsQueryResponse, CollectionsQueryVariables, ColorKey, ColorType$1 as ColorType, ColorValueType, Component, ComponentPreset, ComponentSetting, ContainerProp, ControlProp, ControlTriggerAction, ControlUI, CornerRadius, CornerRadiusType, CustomComponentConfig, DeepPartial, DynamicCollection, DynamicProduct, ExtractState, FastBundleWidgetType, FeraReviewsV3WidgetType, FeraReviewsWidgetType, FetchCollectionArgs, FetchFunc, FetchProductParams, FlexDirectionProp, FontName, GRADIENT_BGR_KEY, GlobalStyleConfig, GlobalStyleResponsiveConfig, GlobalSwatchesData, GraphQLConnection, GroupPropType, GrowaveWidgetTypeV1, GrowaveWidgetTypeV2, HSLAColorType, HSLColorType, HexColorType, ImageShape$1 as ImageShape, InitComponentType, InstantJudgeMeReviewsWidgetType, InstantKlaviyoWidgetType, InstantLooxReviewsWidgetType, Interaction, InteractionCondition, InteractionElement, InteractionTarget, InteractionTargetEvent, InteractionTargetEventObject, InteractionTriggerEvent, JudgeMeReviewsWidgetType, KlaviyoWidgetType, LaiProductReviewsAdvancedWidgetType, LaiProductReviewsWidgetType, LibrarySaleFunnelDocument, LibrarySaleFunnelQueryResponse, LibrarySaleFunnelQueryVariables, LibraryTemplateDocument, LibraryTemplateQueryResponse, LibraryTemplateQueryVariables, LooxReviewsWidgetType, ModalProvider, ModalProviderProps, NameDevices$1 as NameDevices, NestedKeys, ObjectDeviceGlobalType, ObjectDevices, ObjectLayoutValue, OmnisendWidgetType, OnlyOne, OpinewDesignWidgetType, OpinewWidgetType, OptionNormalStyle, OptionSpecialStyle, Options, PageContext, PageProvider, PageProviderProps, PageType, PageViewUpDocument, PageViewUpMutationResponse, PageViewUpMutationVariables, PickyStoryWidgetType, PostPurchaseTypo, PreOrderNowWodWidgetType, PreviewPageDocument, PreviewPageQueryResponse, PreviewPageQueryVariables, Primitive, ProductInputAnalytic, ProductListProvider, ProductListProviderProps, ProductOffer, ProductProvider, ProductProviderProps, ProductReviewsWidgetType, ProductSelectFragment, ProductsDocument, ProductsQueryResponse, ProductsQueryVariables, PublicStoreFrontData, PublishedShopMetasDocument, PublishedShopMetasQueryResponse, PublishedThemePageSelectFragment, PublishedThemePagesDocument, PublishedThemePagesQueryResponse, PublishedThemePagesQueryVariables, QueryPublishedShopMetasArgs, RGBAColorType, RGBColorType, Ratio$1 as Ratio, RawChild, RenderMemo as Render, RenderChildren, RenderIf, Render as RenderLiquid, RenderMode, RenderPreviewMemo as RenderPreview, RequiredCursorEdge, ResponsiveKey, ResponsiveStateProp, RivyoWidgetType, RoundedSize, RyviuWidgetType, SaleFunnelDiscount$1 as SaleFunnelDiscount, SaleFunnelDiscountEdge$1 as SaleFunnelDiscountEdge, SaleFunnelDiscountObjectType$1 as SaleFunnelDiscountObjectType, SaleFunnelDiscountType$1 as SaleFunnelDiscountType, SaleFunnelDiscountValueType$1 as SaleFunnelDiscountValueType, SaleFunnelDiscountsDocument, SaleFunnelDiscountsQueryResponse, SaleFunnelDiscountsQueryVariables, Scalars$1 as Scalars, ScaleByDirection, SectionData, SectionEntity, SectionProvider, SectionProviderProps, SettingByAnimationType, SettingByAnimationValues, ShadowProps, ShadowStyle, ShadowStyleApplied, ShadowType, ShopLibraryPageDocument, ShopLibraryPageQueryResponse, ShopLibraryPageQueryVariables, ShopProvider, ShopProviderProps, shop as ShopType, SizeProps, SizeSetting, SizeSettingGlobal, SizeType, SpacingType, StampedWidgetType, StateProp, StateSelector, StateType, StoreConfig, StorePropertyDocument, StorePropertyQueryResponse, StorePropertyQueryVariables, SwatchesOptionType, SwatchesOptionValue, TagShopWidgetType, ThemePageDocument, ThemePageQueryResponse, ThemePageQueryVariables, ThemeSectionStatus$1 as ThemeSectionStatus, TransformProp, TriggerConfig, TrustooWidgetType, TypographyProps, TypographySetting, TypographySettingV2, TypographyType, TypographyV2Attrs, TypographyV2Props, UltimateSalesBoostWidgetType, VariantSelectFragment, VitalsWidgetType, WiserV2WidgetType, WiserWidgetType, WrapRenderChildren, YotpoReviewsWidgetType, addAppBlockId, animations, baseAssetURL, calculateFirstProduct, checkAvailableVariantInStock, checkInStock, cls, composeAdvanceStyle, composeAdvanceStyleForPostPurchase, composeBackgroundCss, composeBorderCss, composeCornerCss, composeFallbackTypographyStyle, composeFontFamilyTypographyV2, composeGridLayout, composeMemo, composePositionLineHeight, composePostionIconList, composeRadius, composeRadiusResponsive, composeShadowCss, composeSize, composeSizeCss, composeSpacing, composeTextColorCss, composeTypography, composeTypographyAttr, composeTypographyClassName, composeTypographyCss, composeTypographyStyle, composeTypographyV2, composeTypographyV2Css, convertHTML, convertOldLayout, convertTextAlignToJustify, dataStringify, fetchMedias, fetchVariants, filterAttrInStyle, filterCornerInStyle, filterToolbarPreview, flattenConnection, formatMoney, fpixel, genSizeClass, genTypoClass, genVariable, generateCollectionQueryKey, generateProductQueryKey, generateProductsQueryKey, getAppBlocks, getAspectRatioGlobalSize, getBgImageByDevice, getBorderRadiusStyle, getBorderStyle, getCarouselContainerHeight, getCollection, getCornerCSSFromGlobal, getCustomRadius, getGlobalColorCSSProp, getGlobalColorClass, getGlobalColorResponsiveClass, getGlobalColorResponsiveStyle, getGlobalColorStateClass, getGlobalColorStateClassDynamicBtn, getGlobalColorStateResponsiveClass, getGlobalColorStateResponsiveClassDynamicBtn, getGlobalColorStateResponsiveStyle, getGlobalColorStateStyle, getGlobalColorStyle, getGlobalSizeGap, getGradientBgrStyleByDevice, getGradientBgrStyleForButton, getHeightByShapeGlobalSize, getPaddingGlobalSize, getProduct, getProductBySlug, getRadiusCSSFromGlobal, getRadiusStyleActiveState, getResponsiveStateValue, getResponsiveStyleShadow, getResponsiveValue, getResponsiveValueByScreen, getSelectedVariant, getShortName, getSingleColorVariable, getSpacingVariable, getStyleBackgroundByDevice, getStyleBgColor, getStyleShadow, getStyleShadowState, getValueByDevice, getWidthByShapeGlobalSize, getWidthHeightGlobalSize, globalEvent, gridToArrayRegex, gtag, handleConvertBorderColor, handleConvertBorderStyle, handleConvertBorderWidth, handleConvertClassColor, handleConvertClassColorDynamicBtn, isBrowser, isColor, isColumnDirectionExist, isDefined, isEmptyChildren, isLocalEnv, isSafari, loadScript, makeAspectRatio, makeContainerWidthOrHeight, makeDotGapToCarouselStyle, makeFixedBgAttachment, makeGlobalSize, makeGlobalSizeHeightResponsive, makeGlobalSizeIcon, makeGlobalSizeWidthResponsive, makeHeight, makeLineClamp, makeStyle, makeStyleKey, makeStyleResponsive, makeStyleResponsiveByScreen, makeStyleResponsiveState, makeStyleState, makeStyleWithDefault, makeWidth, normalizeBuilderData, optionLayoutStyle, parseSelectedOption, parseValueWithUnit, prefetchQueries, props, removeAttrInStyle, removeNullUndefined, removePaddingYInStyle, removeUndefinedValuesFromObject, shopifyPriceRounding, splitStyle, styles, template, tiktokpixel, useAddToCart, useAddon, useAddons, useArticleListStore, useArticleStore, useArticlesQuery, useBlogsQuery, useBuilderComponent, useBuilderPreviewStore, useBuilderStore, useCartData, useCartDiscountCodesUpdate, useCartId, useCartLine, useCartLineStore, useCartNoteUpdate, useCartUI, useCheckAvailableVariantInStock, useCheckoutUrl, useCollection, useCollectionQuery, useCollectionStore, useCollectionsQuery, useConnectedShopify, useCreateCart, useCurrency, useCurrentDevice, useCurrentVariant, useCurrentVariantInStock, useEditorMode, useFeaturedImageGlobal, useFormatMoney, useHasPreSelected, useInitialSwatchesOptions, useInteraction, useIsSampleProduct, useIsStorefrontProduct, useIsSyncProduct, useIsomorphicLayoutEffect, useLazyVideo, useLoadScript, useLocale, useMatchMutate, useMobileOnly, useModalStore, useMoney, useMoneyFormat, usePageStore, usePageType, usePluginEnable, usePrevious, useProduct, useProductBundleDiscount, useProductList, useProductListProducts, useProductListSettings, useProductListStore, useProductListStyles, useProductOfferDiscount, useProductProperties, useProductQuery, useProductStore, useProductsQuery, useProductsQueryAll, useQuantity, useRemoveCartItem, useSection, useSectionStore, useSelectedOption, useShopStore, useStoreFront, useSuspenseFetch, useSwatches, useSwatchesOptions, useUniqProductID, useUpdateCartItem, useVariant, useVariantOutStock, useVariants, validateEmail };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.63.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"type-check": "yarn tsc --noEmit"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@gem-sdk/adapter-shopify": "1.
|
|
30
|
+
"@gem-sdk/adapter-shopify": "1.63.0",
|
|
31
31
|
"@gem-sdk/styles": "1.60.7",
|
|
32
32
|
"@types/classnames": "^2.3.1"
|
|
33
33
|
},
|