@gem-sdk/core 1.38.0 → 2.0.0-dev.834
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/AddOn.js +1 -18
- package/dist/cjs/components/ComponentToolbarPreview.js +1 -465
- package/dist/cjs/components/ComponentWrapper.js +1 -46
- package/dist/cjs/components/ComponentWrapperPreview.js +1 -136
- package/dist/cjs/components/Empty.js +1 -7
- package/dist/cjs/components/Render.js +1 -65
- package/dist/cjs/components/Render.liquid.js +14 -288
- package/dist/cjs/components/RenderBlock.js +1 -54
- package/dist/cjs/components/RenderCustomCode.js +3 -56
- package/dist/cjs/components/RenderPreview.js +1 -66
- package/dist/cjs/components/RenderSection.js +1 -23
- package/dist/cjs/components/ai-generator/AIContentGenerator.js +1 -0
- package/dist/cjs/components/ai-generator/AIGenContentLoading.js +1 -0
- package/dist/cjs/components/ai-generator/components/PickProduct.js +1 -0
- package/dist/cjs/components/ai-generator/components/ToneAndVoice.js +1 -0
- package/dist/cjs/components/ai-generator/hooks/useGettingGenerateRequest.js +1 -0
- package/dist/cjs/components/ai-generator/hooks/useListenEventGenerate.js +1 -0
- package/dist/cjs/components/ai-generator/icons/AIIcon.js +1 -0
- package/dist/cjs/components/ai-generator/icons/CloseIcon.js +1 -0
- package/dist/cjs/components/ai-generator/icons/DropdownIcon.js +1 -0
- package/dist/cjs/components/ai-generator/icons/ShowMoreIcon.js +1 -0
- package/dist/cjs/components/animation/AnimationWrapper.js +1 -0
- package/dist/cjs/components/constant.js +1 -54
- package/dist/cjs/components/resize/Resize.js +1 -16
- package/dist/cjs/components/resize/Spacing.js +1 -248
- package/dist/cjs/components/src/product/helpers/variant-presets.js +1 -56
- package/dist/cjs/components/theme-section/CreateThemeSection.js +1 -117
- package/dist/cjs/components/theme-section/ThemeSectionStatus.js +1 -36
- package/dist/cjs/components/theme-section/ThemeSectionTooltip.js +1 -102
- package/dist/cjs/components/toolbar/Tooltip.js +1 -22
- package/dist/cjs/contexts/AddonContext.js +1 -36
- package/dist/cjs/contexts/BuilderComponent.js +1 -34
- package/dist/cjs/contexts/BuilderContext.js +1 -35
- package/dist/cjs/contexts/BuilderPreviewContext.js +1 -479
- package/dist/cjs/contexts/CartLineContext.js +1 -29
- package/dist/cjs/contexts/CollectionContext.js +1 -38
- package/dist/cjs/contexts/ModalContext.js +1 -47
- package/dist/cjs/contexts/PageContext.js +1 -44
- package/dist/cjs/contexts/ProductContext.js +1 -156
- package/dist/cjs/contexts/ProductListContext.js +1 -32
- package/dist/cjs/contexts/SectionContext.js +1 -53
- package/dist/cjs/contexts/ShopContext.js +1 -80
- package/dist/cjs/graphql/fragments/analytic.generated.js +2 -6
- package/dist/cjs/graphql/fragments/collection-detail.generated.js +2 -6
- package/dist/cjs/graphql/fragments/collection-product.generated.js +2 -6
- package/dist/cjs/graphql/fragments/collection.generated.js +2 -6
- package/dist/cjs/graphql/fragments/custom-code.generated.js +2 -6
- package/dist/cjs/graphql/fragments/custom-font.generated.js +2 -6
- package/dist/cjs/graphql/fragments/data-seo.generated.js +2 -6
- package/dist/cjs/graphql/fragments/media.generated.js +2 -6
- package/dist/cjs/graphql/fragments/product-little.generated.js +11 -6
- package/dist/cjs/graphql/fragments/product-option-value.generated.js +2 -6
- package/dist/cjs/graphql/fragments/product-option.generated.js +2 -6
- package/dist/cjs/graphql/fragments/product.generated.js +11 -6
- package/dist/cjs/graphql/fragments/published-custom-section.generated.js +2 -6
- package/dist/cjs/graphql/fragments/published-page-section.generated.js +2 -6
- package/dist/cjs/graphql/fragments/published-theme-page.generated.js +3 -9
- package/dist/cjs/graphql/fragments/published-theme-style.generated.js +2 -6
- package/dist/cjs/graphql/fragments/selected-option.generated.js +2 -6
- package/dist/cjs/graphql/fragments/variant.generated.js +2 -6
- package/dist/cjs/graphql/mutations/page-view-up.generated.js +3 -7
- package/dist/cjs/graphql/queries/collection-detail-filter.generated.js +2 -16
- package/dist/cjs/graphql/queries/collection.generated.js +2 -14
- package/dist/cjs/graphql/queries/collections.generated.js +2 -9
- package/dist/cjs/graphql/queries/preview-page.generated.js +2 -14
- package/dist/cjs/graphql/queries/product-little-detail.generated.js +2 -11
- package/dist/cjs/graphql/queries/product-medias.generated.js +2 -8
- package/dist/cjs/graphql/queries/product-value-label.generated.js +2 -6
- package/dist/cjs/graphql/queries/product-variants.generated.js +2 -10
- package/dist/cjs/graphql/queries/products.generated.js +12 -17
- package/dist/cjs/graphql/queries/published-theme-pages.generated.js +2 -15
- package/dist/cjs/graphql/queries/store-property.generated.js +2 -6
- package/dist/cjs/graphql-app-api/queries/LibrarySaleFunnelDiscount.generated.js +21 -0
- package/dist/cjs/graphql-app-api/queries/LibraryTemplate.generated.js +13 -0
- package/dist/cjs/graphql-app-api/queries/SaleFunnelDiscounts.generated.js +34 -0
- package/dist/cjs/graphql-app-api/queries/ThemePage.generated.js +22 -0
- package/dist/cjs/helpers/GlobalEvent.js +1 -19
- package/dist/cjs/helpers/animations.js +1 -213
- package/dist/cjs/helpers/background.js +1 -230
- package/dist/cjs/helpers/borders.js +4 -183
- package/dist/cjs/helpers/carousel.js +1 -58
- package/dist/cjs/helpers/clone-deep.js +1 -5
- package/dist/cjs/helpers/cls.js +1 -16
- package/dist/cjs/helpers/colors.js +1 -184
- package/dist/cjs/helpers/compose-advance-style.js +1 -268
- package/dist/cjs/helpers/constant.js +1 -23
- package/dist/cjs/helpers/convert.js +1 -7
- package/dist/cjs/helpers/covert-entities-html.js +1 -19
- package/dist/cjs/helpers/css-variable.js +1 -7
- package/dist/cjs/helpers/email.js +1 -11
- package/dist/cjs/helpers/filter-toolbar-preview.js +1 -14
- package/dist/cjs/helpers/flatten-connection.js +1 -9
- package/dist/cjs/helpers/get-resonsive-value.js +1 -36
- package/dist/cjs/helpers/get-shortname.js +1 -92
- package/dist/cjs/helpers/icon-list.js +1 -61
- package/dist/cjs/helpers/is-browser.js +1 -9
- package/dist/cjs/helpers/is-defined.js +1 -7
- package/dist/cjs/helpers/is-empty-children.js +1 -15
- package/dist/cjs/helpers/is-safari.js +1 -9
- package/dist/cjs/helpers/layout.js +1 -59
- package/dist/cjs/helpers/load-script.js +1 -31
- package/dist/cjs/helpers/make-style.js +1 -163
- package/dist/cjs/helpers/normalize-builder-data.js +1 -23
- package/dist/cjs/helpers/prefetch-queries.js +1 -78
- package/dist/cjs/helpers/product.js +1 -48
- package/dist/cjs/helpers/queries/get-collection.js +1 -226
- package/dist/cjs/helpers/queries/get-collections.js +1 -21
- package/dist/cjs/helpers/queries/get-product-by-slug.js +1 -125
- package/dist/cjs/helpers/queries/get-product.js +1 -154
- package/dist/cjs/helpers/queries/get-products.js +1 -163
- package/dist/cjs/helpers/query.js +1 -29
- package/dist/cjs/helpers/radius.js +6 -140
- package/dist/cjs/helpers/render.js +1 -76
- package/dist/cjs/helpers/shadow.js +1 -57
- package/dist/cjs/helpers/size.js +4 -183
- package/dist/cjs/helpers/spacing.js +1 -43
- package/dist/cjs/helpers/tracking/fpixel.js +1 -28
- package/dist/cjs/helpers/tracking/gtag.js +1 -93
- package/dist/cjs/helpers/tracking/tiktokpixel.js +1 -17
- package/dist/cjs/helpers/typography.js +17 -126
- package/dist/cjs/helpers/variant.js +1 -11
- package/dist/cjs/hooks/animation/animations.js +1 -0
- package/dist/cjs/hooks/animation/useAnimationActions.js +1 -39
- package/dist/cjs/hooks/animation/useAnimationConfig.js +1 -29
- package/dist/cjs/hooks/animation/useAnimationPreview.js +1 -31
- package/dist/cjs/hooks/animation/useAnimationTarget.js +1 -120
- package/dist/cjs/hooks/animation/useApplyAnimation.js +1 -87
- package/dist/cjs/hooks/animation/useLivePageAnimation.js +1 -0
- package/dist/cjs/hooks/cart/use-add-to-cart.js +1 -20
- package/dist/cjs/hooks/cart/use-cart-data.js +1 -28
- package/dist/cjs/hooks/cart/use-cart-discount-codes-update.js +1 -20
- package/dist/cjs/hooks/cart/use-cart-note-update.js +1 -20
- package/dist/cjs/hooks/cart/use-create-cart.js +1 -22
- package/dist/cjs/hooks/cart/use-remove-cart-item.js +1 -20
- package/dist/cjs/hooks/cart/use-update-cart-item.js +1 -20
- package/dist/cjs/hooks/shop/use-collection-query.js +1 -22
- package/dist/cjs/hooks/shop/use-collections-query.js +1 -17
- package/dist/cjs/hooks/shop/use-product-query.js +1 -22
- package/dist/cjs/hooks/shop/use-products-query.js +1 -23
- package/dist/cjs/hooks/shop.js +1 -126
- package/dist/cjs/hooks/use-current-device.js +1 -21
- package/dist/cjs/hooks/use-lazy-video.js +1 -15
- package/dist/cjs/hooks/useAnimations.js +1 -26
- package/dist/cjs/hooks/useCartId.js +1 -44
- package/dist/cjs/hooks/useCartLine.js +1 -11
- package/dist/cjs/hooks/useCartUI.js +1 -48
- package/dist/cjs/hooks/useCollection.js +1 -9
- package/dist/cjs/hooks/useFetchHandle.js +1 -13
- package/dist/cjs/hooks/useFormatMoney.js +1 -58
- package/dist/cjs/hooks/useInitialSwatchesOptions.js +1 -113
- package/dist/cjs/hooks/useIsomorphicLayoutEffect.js +1 -10
- package/dist/cjs/hooks/useLoadScript.js +1 -32
- package/dist/cjs/hooks/useMoney.js +1 -84
- package/dist/cjs/hooks/usePrevious.js +1 -19
- package/dist/cjs/hooks/useProduct.js +1 -206
- package/dist/cjs/hooks/useProductList.js +1 -21
- package/dist/cjs/hooks/useSuspenseFetch.js +1 -27
- package/dist/cjs/hooks/useSwatchesOptions.js +1 -41
- package/dist/cjs/hooks/useToolbarPostPurchase.js +1 -0
- package/dist/cjs/index.js +1 -361
- package/dist/cjs/types/animations.js +1 -47
- package/dist/cjs/types/appAPI.js +1 -0
- package/dist/cjs/types/global-style.js +1 -15
- package/dist/cjs/types/shop.js +1 -2
- package/dist/cjs/web-components/src/helpers/styles/constant.js +1 -9
- package/dist/esm/components/AddOn.js +1 -14
- package/dist/esm/components/ComponentToolbarPreview.js +1 -463
- package/dist/esm/components/ComponentWrapper.js +1 -42
- package/dist/esm/components/ComponentWrapperPreview.js +1 -132
- package/dist/esm/components/Empty.js +1 -3
- package/dist/esm/components/Render.js +1 -61
- package/dist/esm/components/Render.liquid.js +14 -282
- package/dist/esm/components/RenderBlock.js +1 -50
- package/dist/esm/components/RenderCustomCode.js +3 -52
- package/dist/esm/components/RenderPreview.js +1 -62
- package/dist/esm/components/RenderSection.js +1 -19
- package/dist/esm/components/ai-generator/AIContentGenerator.js +1 -0
- package/dist/esm/components/ai-generator/AIGenContentLoading.js +1 -0
- package/dist/esm/components/ai-generator/components/PickProduct.js +1 -0
- package/dist/esm/components/ai-generator/components/ToneAndVoice.js +1 -0
- package/dist/esm/components/ai-generator/hooks/useGettingGenerateRequest.js +1 -0
- package/dist/esm/components/ai-generator/hooks/useListenEventGenerate.js +1 -0
- package/dist/esm/components/ai-generator/icons/AIIcon.js +1 -0
- package/dist/esm/components/ai-generator/icons/CloseIcon.js +1 -0
- package/dist/esm/components/ai-generator/icons/DropdownIcon.js +1 -0
- package/dist/esm/components/ai-generator/icons/ShowMoreIcon.js +1 -0
- package/dist/esm/components/animation/AnimationWrapper.js +1 -0
- package/dist/esm/components/constant.js +1 -50
- package/dist/esm/components/resize/Resize.js +1 -12
- package/dist/esm/components/resize/Spacing.js +1 -244
- package/dist/esm/components/src/product/helpers/variant-presets.js +1 -54
- package/dist/esm/components/theme-section/CreateThemeSection.js +1 -115
- package/dist/esm/components/theme-section/ThemeSectionStatus.js +1 -34
- package/dist/esm/components/theme-section/ThemeSectionTooltip.js +1 -100
- package/dist/esm/components/toolbar/Tooltip.js +1 -18
- package/dist/esm/contexts/AddonContext.js +1 -32
- package/dist/esm/contexts/BuilderComponent.js +1 -31
- package/dist/esm/contexts/BuilderContext.js +1 -32
- package/dist/esm/contexts/BuilderPreviewContext.js +1 -476
- package/dist/esm/contexts/CartLineContext.js +1 -26
- package/dist/esm/contexts/CollectionContext.js +1 -35
- package/dist/esm/contexts/ModalContext.js +1 -44
- package/dist/esm/contexts/PageContext.js +1 -41
- package/dist/esm/contexts/ProductContext.js +1 -153
- package/dist/esm/contexts/ProductListContext.js +1 -28
- package/dist/esm/contexts/SectionContext.js +1 -49
- package/dist/esm/contexts/ShopContext.js +1 -77
- package/dist/esm/graphql/fragments/analytic.generated.js +2 -4
- package/dist/esm/graphql/fragments/collection-detail.generated.js +2 -4
- package/dist/esm/graphql/fragments/collection-product.generated.js +2 -4
- package/dist/esm/graphql/fragments/collection.generated.js +2 -4
- package/dist/esm/graphql/fragments/custom-code.generated.js +2 -4
- package/dist/esm/graphql/fragments/custom-font.generated.js +2 -4
- package/dist/esm/graphql/fragments/data-seo.generated.js +2 -4
- package/dist/esm/graphql/fragments/media.generated.js +2 -4
- package/dist/esm/graphql/fragments/product-little.generated.js +11 -4
- package/dist/esm/graphql/fragments/product-option-value.generated.js +2 -4
- package/dist/esm/graphql/fragments/product-option.generated.js +2 -4
- package/dist/esm/graphql/fragments/product.generated.js +11 -4
- package/dist/esm/graphql/fragments/published-custom-section.generated.js +2 -4
- package/dist/esm/graphql/fragments/published-page-section.generated.js +2 -4
- package/dist/esm/graphql/fragments/published-theme-page.generated.js +3 -6
- package/dist/esm/graphql/fragments/published-theme-style.generated.js +2 -4
- package/dist/esm/graphql/fragments/selected-option.generated.js +2 -4
- package/dist/esm/graphql/fragments/variant.generated.js +2 -4
- package/dist/esm/graphql/mutations/page-view-up.generated.js +3 -5
- package/dist/esm/graphql/queries/collection-detail-filter.generated.js +10 -22
- package/dist/esm/graphql/queries/collection.generated.js +8 -18
- package/dist/esm/graphql/queries/collections.generated.js +3 -8
- package/dist/esm/graphql/queries/preview-page.generated.js +8 -18
- package/dist/esm/graphql/queries/product-little-detail.generated.js +5 -12
- package/dist/esm/graphql/queries/product-medias.generated.js +2 -6
- package/dist/esm/graphql/queries/product-value-label.generated.js +2 -4
- package/dist/esm/graphql/queries/product-variants.generated.js +4 -10
- package/dist/esm/graphql/queries/products.generated.js +18 -20
- package/dist/esm/graphql/queries/published-theme-pages.generated.js +9 -20
- package/dist/esm/graphql/queries/store-property.generated.js +2 -4
- package/dist/esm/graphql-app-api/queries/LibrarySaleFunnelDiscount.generated.js +21 -0
- package/dist/esm/graphql-app-api/queries/LibraryTemplate.generated.js +13 -0
- package/dist/esm/graphql-app-api/queries/SaleFunnelDiscounts.generated.js +34 -0
- package/dist/esm/graphql-app-api/queries/ThemePage.generated.js +22 -0
- package/dist/esm/helpers/GlobalEvent.js +1 -15
- package/dist/esm/helpers/animations.js +1 -211
- package/dist/esm/helpers/background.js +1 -222
- package/dist/esm/helpers/borders.js +4 -175
- package/dist/esm/helpers/carousel.js +1 -54
- package/dist/esm/helpers/clone-deep.js +1 -3
- package/dist/esm/helpers/cls.js +1 -14
- package/dist/esm/helpers/colors.js +1 -169
- package/dist/esm/helpers/compose-advance-style.js +1 -261
- package/dist/esm/helpers/constant.js +1 -19
- package/dist/esm/helpers/convert.js +1 -4
- package/dist/esm/helpers/covert-entities-html.js +1 -17
- package/dist/esm/helpers/css-variable.js +1 -5
- package/dist/esm/helpers/email.js +1 -6
- package/dist/esm/helpers/filter-toolbar-preview.js +1 -9
- package/dist/esm/helpers/flatten-connection.js +1 -7
- package/dist/esm/helpers/get-resonsive-value.js +1 -31
- package/dist/esm/helpers/get-shortname.js +1 -90
- package/dist/esm/helpers/icon-list.js +1 -58
- package/dist/esm/helpers/is-browser.js +1 -5
- package/dist/esm/helpers/is-defined.js +1 -5
- package/dist/esm/helpers/is-empty-children.js +1 -10
- package/dist/esm/helpers/is-safari.js +1 -5
- package/dist/esm/helpers/layout.js +1 -54
- package/dist/esm/helpers/load-script.js +1 -29
- package/dist/esm/helpers/make-style.js +1 -149
- package/dist/esm/helpers/normalize-builder-data.js +1 -21
- package/dist/esm/helpers/prefetch-queries.js +1 -76
- package/dist/esm/helpers/product.js +1 -44
- package/dist/esm/helpers/queries/get-collection.js +1 -223
- package/dist/esm/helpers/queries/get-collections.js +1 -19
- package/dist/esm/helpers/queries/get-product-by-slug.js +1 -123
- package/dist/esm/helpers/queries/get-product.js +1 -150
- package/dist/esm/helpers/queries/get-products.js +1 -161
- package/dist/esm/helpers/query.js +1 -25
- package/dist/esm/helpers/radius.js +6 -132
- package/dist/esm/helpers/render.js +1 -68
- package/dist/esm/helpers/shadow.js +1 -52
- package/dist/esm/helpers/size.js +4 -171
- package/dist/esm/helpers/spacing.js +1 -40
- package/dist/esm/helpers/tracking/fpixel.js +1 -24
- package/dist/esm/helpers/tracking/gtag.js +1 -87
- package/dist/esm/helpers/tracking/tiktokpixel.js +1 -15
- package/dist/esm/helpers/typography.js +17 -116
- package/dist/esm/helpers/variant.js +1 -9
- package/dist/esm/hooks/animation/animations.js +1 -0
- package/dist/esm/hooks/animation/useAnimationActions.js +1 -37
- package/dist/esm/hooks/animation/useAnimationConfig.js +1 -27
- package/dist/esm/hooks/animation/useAnimationPreview.js +1 -29
- package/dist/esm/hooks/animation/useAnimationTarget.js +1 -118
- package/dist/esm/hooks/animation/useApplyAnimation.js +1 -83
- package/dist/esm/hooks/animation/useLivePageAnimation.js +1 -0
- package/dist/esm/hooks/cart/use-add-to-cart.js +1 -18
- package/dist/esm/hooks/cart/use-cart-data.js +1 -26
- package/dist/esm/hooks/cart/use-cart-discount-codes-update.js +1 -18
- package/dist/esm/hooks/cart/use-cart-note-update.js +1 -18
- package/dist/esm/hooks/cart/use-create-cart.js +1 -20
- package/dist/esm/hooks/cart/use-remove-cart-item.js +1 -18
- package/dist/esm/hooks/cart/use-update-cart-item.js +1 -18
- package/dist/esm/hooks/shop/use-collection-query.js +1 -20
- package/dist/esm/hooks/shop/use-collections-query.js +1 -15
- package/dist/esm/hooks/shop/use-product-query.js +1 -20
- package/dist/esm/hooks/shop/use-products-query.js +1 -21
- package/dist/esm/hooks/shop.js +1 -111
- package/dist/esm/hooks/use-current-device.js +1 -19
- package/dist/esm/hooks/use-lazy-video.js +1 -13
- package/dist/esm/hooks/useAnimations.js +1 -24
- package/dist/esm/hooks/useCartId.js +1 -40
- package/dist/esm/hooks/useCartLine.js +1 -7
- package/dist/esm/hooks/useCartUI.js +1 -44
- package/dist/esm/hooks/useCollection.js +1 -7
- package/dist/esm/hooks/useFetchHandle.js +1 -11
- package/dist/esm/hooks/useFormatMoney.js +1 -56
- package/dist/esm/hooks/useInitialSwatchesOptions.js +1 -109
- package/dist/esm/hooks/useIsomorphicLayoutEffect.js +1 -6
- package/dist/esm/hooks/useLoadScript.js +1 -28
- package/dist/esm/hooks/useMoney.js +1 -80
- package/dist/esm/hooks/usePrevious.js +1 -17
- package/dist/esm/hooks/useProduct.js +1 -192
- package/dist/esm/hooks/useProductList.js +1 -16
- package/dist/esm/hooks/useSuspenseFetch.js +1 -23
- package/dist/esm/hooks/useSwatchesOptions.js +1 -37
- package/dist/esm/hooks/useToolbarPostPurchase.js +1 -0
- package/dist/esm/index.js +1 -100
- package/dist/esm/types/animations.js +1 -47
- package/dist/esm/types/appAPI.js +1 -0
- package/dist/esm/types/global-style.js +1 -12
- package/dist/esm/web-components/src/helpers/styles/constant.js +1 -7
- package/dist/types/index.d.ts +25970 -6309
- package/package.json +8 -3
|
@@ -1,156 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var zustand = require('zustand');
|
|
5
|
-
var react = require('react');
|
|
6
|
-
var flattenConnection = require('../helpers/flatten-connection.js');
|
|
7
|
-
var variant = require('../helpers/variant.js');
|
|
8
|
-
|
|
9
|
-
// const { Provider, useStore } = createContext<StoreApi<ProductContextProps>>();
|
|
10
|
-
const ProductContext = /*#__PURE__*/ react.createContext(null);
|
|
11
|
-
const createProductStoreProvider = (data)=>zustand.createStore((set, get)=>({
|
|
12
|
-
...data,
|
|
13
|
-
updateProperty: (name, data)=>{
|
|
14
|
-
set((state)=>{
|
|
15
|
-
return {
|
|
16
|
-
properties: state.properties?.map((v)=>{
|
|
17
|
-
if (v.key === name) {
|
|
18
|
-
return {
|
|
19
|
-
...v,
|
|
20
|
-
...data
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
return v;
|
|
24
|
-
})
|
|
25
|
-
};
|
|
26
|
-
});
|
|
27
|
-
},
|
|
28
|
-
addProperty: (data)=>{
|
|
29
|
-
const properties = get().properties;
|
|
30
|
-
if (!properties?.some((v)=>v.key === data.key)) {
|
|
31
|
-
set((state)=>({
|
|
32
|
-
properties: [
|
|
33
|
-
...state.properties ?? [],
|
|
34
|
-
data
|
|
35
|
-
]
|
|
36
|
-
}));
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
removeProperty: (name)=>{
|
|
40
|
-
set((state)=>({
|
|
41
|
-
properties: state.properties?.filter((v)=>v.key !== name)
|
|
42
|
-
}));
|
|
43
|
-
},
|
|
44
|
-
setQuantity: (num)=>{
|
|
45
|
-
set({
|
|
46
|
-
quantity: num > 0 ? num : 1
|
|
47
|
-
});
|
|
48
|
-
},
|
|
49
|
-
setProductFeaturedImage: (image)=>{
|
|
50
|
-
set({
|
|
51
|
-
featuredImageGlobal: image
|
|
52
|
-
});
|
|
53
|
-
},
|
|
54
|
-
incrementQuantity: ()=>{
|
|
55
|
-
set((state)=>{
|
|
56
|
-
const quantity = state.quantity ?? 1;
|
|
57
|
-
return {
|
|
58
|
-
quantity: quantity + 1
|
|
59
|
-
};
|
|
60
|
-
});
|
|
61
|
-
},
|
|
62
|
-
decrementQuantity: ()=>{
|
|
63
|
-
set((state)=>{
|
|
64
|
-
const quantity = state.quantity ?? 1;
|
|
65
|
-
return {
|
|
66
|
-
quantity: quantity > 2 ? quantity - 1 : 1
|
|
67
|
-
};
|
|
68
|
-
});
|
|
69
|
-
},
|
|
70
|
-
setSelectedOption: (optionId, optionValue)=>{
|
|
71
|
-
set((state)=>{
|
|
72
|
-
if (optionId && optionValue) {
|
|
73
|
-
return {
|
|
74
|
-
selectedOptions: {
|
|
75
|
-
...state?.selectedOptions,
|
|
76
|
-
[optionId]: optionValue
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
return state;
|
|
81
|
-
});
|
|
82
|
-
},
|
|
83
|
-
forceSelectedOption: (value)=>{
|
|
84
|
-
set((state)=>{
|
|
85
|
-
return {
|
|
86
|
-
selectedOptions: {
|
|
87
|
-
...state?.selectedOptions,
|
|
88
|
-
...value
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
});
|
|
92
|
-
},
|
|
93
|
-
updateIsSubmit: (value)=>{
|
|
94
|
-
set({
|
|
95
|
-
isSubmit: value
|
|
96
|
-
});
|
|
97
|
-
},
|
|
98
|
-
setHasUpdatePriceFollowQuantity: (updatePrice)=>{
|
|
99
|
-
set({
|
|
100
|
-
updatePrice
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
}));
|
|
104
|
-
const ProductProvider = ({ children, product, initialVariantId, quantity = 1, isSyncProduct })=>{
|
|
105
|
-
const uiqueId = react.useId();
|
|
106
|
-
const store = react.useMemo(()=>{
|
|
107
|
-
let selectedOptions = {};
|
|
108
|
-
let featuredImageGlobal = undefined;
|
|
109
|
-
if (product) {
|
|
110
|
-
const variants = flattenConnection.flattenConnection(product.variants);
|
|
111
|
-
const firstVariant = variants[0];
|
|
112
|
-
const firstVariantInStock = variants.find((item)=>variant.checkInStock(item));
|
|
113
|
-
const initialVariant = variants.find((v)=>v?.id === initialVariantId) ?? firstVariantInStock ?? firstVariant;
|
|
114
|
-
selectedOptions = initialVariant?.selectedOptions.reduce((acc, option)=>{
|
|
115
|
-
if (option.name) {
|
|
116
|
-
return {
|
|
117
|
-
...acc,
|
|
118
|
-
[option.name]: option.value
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
return acc;
|
|
122
|
-
}, {});
|
|
123
|
-
featuredImageGlobal = product.medias?.edges.find((v)=>v.node?.id === initialVariant?.mediaId)?.node ?? product.featuredImage;
|
|
124
|
-
}
|
|
125
|
-
return createProductStoreProvider({
|
|
126
|
-
product,
|
|
127
|
-
quantity,
|
|
128
|
-
selectedOptions,
|
|
129
|
-
uiqueId,
|
|
130
|
-
featuredImageGlobal,
|
|
131
|
-
isSyncProduct
|
|
132
|
-
});
|
|
133
|
-
}, [
|
|
134
|
-
initialVariantId,
|
|
135
|
-
product,
|
|
136
|
-
quantity,
|
|
137
|
-
uiqueId,
|
|
138
|
-
isSyncProduct
|
|
139
|
-
]);
|
|
140
|
-
return /*#__PURE__*/ jsxRuntime.jsx(ProductContext.Provider, {
|
|
141
|
-
value: store,
|
|
142
|
-
children: /*#__PURE__*/ jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
143
|
-
children: children
|
|
144
|
-
})
|
|
145
|
-
});
|
|
146
|
-
};
|
|
147
|
-
const useProductStore = (selector, equalityFn)=>{
|
|
148
|
-
const store = react.useContext(ProductContext);
|
|
149
|
-
if (!store) {
|
|
150
|
-
throw new Error('Element of product must be used inside a Product');
|
|
151
|
-
}
|
|
152
|
-
return zustand.useStore(store, selector, equalityFn);
|
|
153
|
-
};
|
|
154
|
-
|
|
155
|
-
exports.ProductProvider = ProductProvider;
|
|
156
|
-
exports.useProductStore = useProductStore;
|
|
1
|
+
"use strict";var jsxRuntime=require("react/jsx-runtime"),zustand=require("zustand"),react=require("react"),flattenConnection=require("../helpers/flatten-connection.js"),variant=require("../helpers/variant.js");const ProductContext=react.createContext(null),createProductStoreProvider=e=>zustand.createStore((t,r)=>({...e,updateProperty:(e,r)=>{t(t=>({properties:t.properties?.map(t=>t.key===e?{...t,...r}:t)}))},addProperty:e=>{let n=r().properties;n?.some(t=>t.key===e.key)||t(t=>({properties:[...t.properties??[],e]}))},removeProperty:e=>{t(t=>({properties:t.properties?.filter(t=>t.key!==e)}))},setQuantity:e=>{t({quantity:e>0?e:1})},setProductFeaturedImage:e=>{t({featuredImageGlobal:e})},incrementQuantity:()=>{t(e=>{let t=e.quantity??1;return{quantity:t+1}})},decrementQuantity:()=>{t(e=>{let t=e.quantity??1;return{quantity:t>2?t-1:1}})},setSelectedOption:(e,r)=>{t(t=>e&&r?{selectedOptions:{...t?.selectedOptions,[e]:r}}:t)},forceSelectedOption:e=>{t(t=>({selectedOptions:{...t?.selectedOptions,...e}}))},updateIsSubmit:e=>{t({isSubmit:e})},setHasUpdatePriceFollowQuantity:e=>{t({updatePrice:e})}})),ProductProvider=({children:e,product:t,initialVariantId:r,quantity:n=1,isSyncProduct:o})=>{let i=react.useId(),u=react.useMemo(()=>{let e,u={};if(t){let n=flattenConnection.flattenConnection(t.variants),o=n[0],i=n.find(e=>variant.checkInStock(e)),a=n.find(e=>e?.id===r)??i??o;u=a?.selectedOptions.reduce((e,t)=>t.name?{...e,[t.name]:t.value}:e,{}),e=t.medias?.edges.find(e=>e.node?.id===a?.mediaId)?.node??t.featuredImage}return createProductStoreProvider({product:t,quantity:n,selectedOptions:u,uiqueId:i,featuredImageGlobal:e,isSyncProduct:o})},[r,t,n,i,o]);return jsxRuntime.jsx(ProductContext.Provider,{value:u,children:jsxRuntime.jsx(jsxRuntime.Fragment,{children:e})})},useProductStore=(e,t)=>{let r=react.useContext(ProductContext);if(!r)throw Error("Element of product must be used inside a Product");return zustand.useStore(r,e,t)};exports.ProductProvider=ProductProvider,exports.useProductStore=useProductStore;
|
|
@@ -1,32 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var react = require('react');
|
|
5
|
-
var zustand = require('zustand');
|
|
6
|
-
|
|
7
|
-
const ProductListContext = /*#__PURE__*/ react.createContext(null);
|
|
8
|
-
const createProductListProvider = (data)=>zustand.createStore(()=>({
|
|
9
|
-
...data
|
|
10
|
-
}));
|
|
11
|
-
const ProductListProvider = ({ children, collection, products, settings, styles })=>{
|
|
12
|
-
return /*#__PURE__*/ jsxRuntime.jsx(ProductListContext.Provider, {
|
|
13
|
-
value: createProductListProvider({
|
|
14
|
-
products,
|
|
15
|
-
collection,
|
|
16
|
-
settings,
|
|
17
|
-
styles
|
|
18
|
-
}),
|
|
19
|
-
children: children
|
|
20
|
-
});
|
|
21
|
-
};
|
|
22
|
-
const useProductListStore = (selector, equalityFn)=>{
|
|
23
|
-
const store = react.useContext(ProductListContext);
|
|
24
|
-
if (!store) {
|
|
25
|
-
throw new Error('useProductListStore must be used within a useProductListStore');
|
|
26
|
-
}
|
|
27
|
-
return zustand.useStore(store, selector, equalityFn);
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
exports.ProductListContext = ProductListContext;
|
|
31
|
-
exports.ProductListProvider = ProductListProvider;
|
|
32
|
-
exports.useProductListStore = useProductListStore;
|
|
1
|
+
"use strict";var jsxRuntime=require("react/jsx-runtime"),react=require("react"),zustand=require("zustand");const ProductListContext=react.createContext(null),createProductListProvider=t=>zustand.createStore(()=>({...t})),ProductListProvider=({children:t,collection:r,products:e,settings:o,styles:s})=>jsxRuntime.jsx(ProductListContext.Provider,{value:createProductListProvider({products:e,collection:r,settings:o,styles:s}),children:t}),useProductListStore=(t,r)=>{let e=react.useContext(ProductListContext);if(!e)throw Error("useProductListStore must be used within a useProductListStore");return zustand.useStore(e,t,r)};exports.ProductListContext=ProductListContext,exports.ProductListProvider=ProductListProvider,exports.useProductListStore=useProductListStore;
|
|
@@ -1,53 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var zustand = require('zustand');
|
|
5
|
-
var react = require('react');
|
|
6
|
-
var cloneDeep = require('../helpers/clone-deep.js');
|
|
7
|
-
var normalizeBuilderData = require('../helpers/normalize-builder-data.js');
|
|
8
|
-
|
|
9
|
-
const SectionContext = /*#__PURE__*/ react.createContext(null);
|
|
10
|
-
const createSectionProvider = (data)=>zustand.createStore((set, get)=>({
|
|
11
|
-
data: data ?? {},
|
|
12
|
-
getSection: (id)=>{
|
|
13
|
-
const section = get().data[id];
|
|
14
|
-
return section ?? undefined;
|
|
15
|
-
},
|
|
16
|
-
addSection: (id, data)=>{
|
|
17
|
-
const item = normalizeBuilderData.normalizeBuilderData(data);
|
|
18
|
-
set((prev)=>({
|
|
19
|
-
data: {
|
|
20
|
-
...prev.data,
|
|
21
|
-
[id]: cloneDeep.cloneDeep(item)
|
|
22
|
-
}
|
|
23
|
-
}));
|
|
24
|
-
},
|
|
25
|
-
removeSection: (id)=>{
|
|
26
|
-
set((prev)=>{
|
|
27
|
-
const { [id]: _, ...rest } = prev.data;
|
|
28
|
-
return {
|
|
29
|
-
data: rest
|
|
30
|
-
};
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
}));
|
|
34
|
-
const SectionProvider = ({ children, data, ...passProps })=>{
|
|
35
|
-
return /*#__PURE__*/ jsxRuntime.jsx(SectionContext.Provider, {
|
|
36
|
-
...passProps,
|
|
37
|
-
value: createSectionProvider(data),
|
|
38
|
-
children: children
|
|
39
|
-
});
|
|
40
|
-
};
|
|
41
|
-
// export const useSectionStore = useStore;
|
|
42
|
-
const useSectionStore = (selector, equalityFn)=>{
|
|
43
|
-
const store = react.useContext(SectionContext);
|
|
44
|
-
if (!store) {
|
|
45
|
-
throw new Error('useSectionStore must be used within a SectionProvider');
|
|
46
|
-
}
|
|
47
|
-
return zustand.useStore(store, selector, equalityFn);
|
|
48
|
-
};
|
|
49
|
-
const useSection = (id)=>useSectionStore((s)=>s.getSection(id));
|
|
50
|
-
|
|
51
|
-
exports.SectionProvider = SectionProvider;
|
|
52
|
-
exports.useSection = useSection;
|
|
53
|
-
exports.useSectionStore = useSectionStore;
|
|
1
|
+
"use strict";var jsxRuntime=require("react/jsx-runtime"),zustand=require("zustand"),react=require("react"),cloneDeep=require("../helpers/clone-deep.js"),normalizeBuilderData=require("../helpers/normalize-builder-data.js");const SectionContext=react.createContext(null),createSectionProvider=e=>zustand.createStore((t,r)=>({data:e??{},getSection:e=>{let t=r().data[e];return t??void 0},addSection:(e,r)=>{let o=normalizeBuilderData.normalizeBuilderData(r);t(t=>({data:{...t.data,[e]:cloneDeep.cloneDeep(o)}}))},removeSection:e=>{t(t=>{let{[e]:r,...o}=t.data;return{data:o}})}})),SectionProvider=({children:e,data:t,...r})=>jsxRuntime.jsx(SectionContext.Provider,{...r,value:createSectionProvider(t),children:e}),useSectionStore=(e,t)=>{let r=react.useContext(SectionContext);if(!r)throw Error("useSectionStore must be used within a SectionProvider");return zustand.useStore(r,e,t)},useSection=e=>useSectionStore(t=>t.getSection(e));exports.SectionProvider=SectionProvider,exports.useSection=useSection,exports.useSectionStore=useSectionStore;
|
|
@@ -1,80 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
var useSWR = require('swr');
|
|
5
|
-
var zustand = require('zustand');
|
|
6
|
-
var react = require('react');
|
|
7
|
-
var AddonContext = require('./AddonContext.js');
|
|
8
|
-
var ModalContext = require('./ModalContext.js');
|
|
9
|
-
|
|
10
|
-
const ShopContext = /*#__PURE__*/ react.createContext(null);
|
|
11
|
-
const createShopStoreProvider = (data)=>zustand.createStore((set)=>({
|
|
12
|
-
mobileOnly: false,
|
|
13
|
-
isStorefront: true,
|
|
14
|
-
...data,
|
|
15
|
-
changeLocale: (locale)=>{
|
|
16
|
-
set({
|
|
17
|
-
locale
|
|
18
|
-
});
|
|
19
|
-
},
|
|
20
|
-
changeCurrency: (currency)=>{
|
|
21
|
-
set({
|
|
22
|
-
currency
|
|
23
|
-
});
|
|
24
|
-
},
|
|
25
|
-
changeSwatches: (swatches)=>{
|
|
26
|
-
set({
|
|
27
|
-
swatches
|
|
28
|
-
});
|
|
29
|
-
},
|
|
30
|
-
changeLayoutSettings: (layoutSettings)=>{
|
|
31
|
-
set({
|
|
32
|
-
layoutSettings
|
|
33
|
-
});
|
|
34
|
-
},
|
|
35
|
-
changeStorefrontInfo: ({ url, token })=>{
|
|
36
|
-
set({
|
|
37
|
-
storefrontUrl: url,
|
|
38
|
-
storefrontToken: token
|
|
39
|
-
});
|
|
40
|
-
},
|
|
41
|
-
changeCreateThemeSectionCount: (count)=>{
|
|
42
|
-
set({
|
|
43
|
-
createThemeSectionCount: count
|
|
44
|
-
});
|
|
45
|
-
},
|
|
46
|
-
changeShopPlan: (plan)=>{
|
|
47
|
-
set({
|
|
48
|
-
plan
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
}));
|
|
52
|
-
const ShopProvider = ({ children, addons, storeOption, queryOption, ...passProps })=>{
|
|
53
|
-
const store = react.useMemo(()=>createShopStoreProvider(storeOption), [
|
|
54
|
-
storeOption
|
|
55
|
-
]);
|
|
56
|
-
return /*#__PURE__*/ jsxRuntime.jsx(AddonContext.AddonProvider, {
|
|
57
|
-
components: addons,
|
|
58
|
-
children: /*#__PURE__*/ jsxRuntime.jsx(useSWR.SWRConfig, {
|
|
59
|
-
value: queryOption,
|
|
60
|
-
children: /*#__PURE__*/ jsxRuntime.jsx(ShopContext.Provider, {
|
|
61
|
-
...passProps,
|
|
62
|
-
value: store,
|
|
63
|
-
children: /*#__PURE__*/ jsxRuntime.jsx(ModalContext.ModalProvider, {
|
|
64
|
-
children: children
|
|
65
|
-
})
|
|
66
|
-
}, JSON.stringify(storeOption))
|
|
67
|
-
})
|
|
68
|
-
});
|
|
69
|
-
};
|
|
70
|
-
// export const useShopStore = useStore;
|
|
71
|
-
const useShopStore = (selector, equalityFn)=>{
|
|
72
|
-
const store = react.useContext(ShopContext);
|
|
73
|
-
if (!store) {
|
|
74
|
-
throw new Error('useShopStore must be used within a ShopProvider');
|
|
75
|
-
}
|
|
76
|
-
return zustand.useStore(store, selector, equalityFn);
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
exports.ShopProvider = ShopProvider;
|
|
80
|
-
exports.useShopStore = useShopStore;
|
|
1
|
+
"use strict";var jsxRuntime=require("react/jsx-runtime"),useSWR=require("swr"),zustand=require("zustand"),react=require("react"),AddonContext=require("./AddonContext.js"),ModalContext=require("./ModalContext.js");const ShopContext=react.createContext(null),createShopStoreProvider=e=>zustand.createStore(t=>({mobileOnly:!1,isStorefront:!0,...e,changeLocale:e=>{t({locale:e})},changeCurrency:e=>{t({currency:e})},changeSwatches:e=>{t({swatches:e})},changeLayoutSettings:e=>{t({layoutSettings:e})},changeStorefrontInfo:({url:e,token:r})=>{t({storefrontUrl:e,storefrontToken:r})},changeCreateThemeSectionCount:e=>{t({createThemeSectionCount:e})},changeShopPlan:e=>{t({plan:e})}})),ShopProvider=({children:e,addons:t,storeOption:r,queryOption:o,...n})=>{let s=react.useMemo(()=>createShopStoreProvider(r),[r]);return jsxRuntime.jsx(AddonContext.AddonProvider,{components:t,children:jsxRuntime.jsx(useSWR.SWRConfig,{value:o,children:jsxRuntime.jsx(ShopContext.Provider,{...n,value:s,children:jsxRuntime.jsx(ModalContext.ModalProvider,{children:e})},JSON.stringify(r))})})},useShopStore=(e,t)=>{let r=react.useContext(ShopContext);if(!r)throw Error("useShopStore must be used within a ShopProvider");return zustand.useStore(r,e,t)};exports.ShopProvider=ShopProvider,exports.useShopStore=useShopStore;
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/* eslint-disable */ const AnalyticSelect = `
|
|
1
|
+
"use strict";const AnalyticSelect=`
|
|
4
2
|
fragment AnalyticSelect on Analytic {
|
|
5
3
|
fbPixelID
|
|
6
4
|
gaTrackingID
|
|
7
5
|
tiktokPixelID
|
|
8
6
|
}
|
|
9
|
-
`;
|
|
10
|
-
|
|
11
|
-
exports.AnalyticSelect = AnalyticSelect;
|
|
7
|
+
`;exports.AnalyticSelect=AnalyticSelect;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/* eslint-disable */ const CollectionDetailSelect = `
|
|
1
|
+
"use strict";const CollectionDetailSelect=`
|
|
4
2
|
fragment CollectionDetailSelect on Collection {
|
|
5
3
|
id
|
|
6
4
|
createdAt
|
|
@@ -22,6 +20,4 @@
|
|
|
22
20
|
isStorefront
|
|
23
21
|
isSample
|
|
24
22
|
}
|
|
25
|
-
`;
|
|
26
|
-
|
|
27
|
-
exports.CollectionDetailSelect = CollectionDetailSelect;
|
|
23
|
+
`;exports.CollectionDetailSelect=CollectionDetailSelect;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/* eslint-disable */ const CollectionProductSelect = `
|
|
1
|
+
"use strict";const CollectionProductSelect=`
|
|
4
2
|
fragment CollectionProductSelect on Collection {
|
|
5
3
|
...CollectionDetailSelect
|
|
6
4
|
products(
|
|
@@ -21,6 +19,4 @@
|
|
|
21
19
|
}
|
|
22
20
|
}
|
|
23
21
|
}
|
|
24
|
-
`;
|
|
25
|
-
|
|
26
|
-
exports.CollectionProductSelect = CollectionProductSelect;
|
|
22
|
+
`;exports.CollectionProductSelect=CollectionProductSelect;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/* eslint-disable */ const CollectionSelect = `
|
|
1
|
+
"use strict";const CollectionSelect=`
|
|
4
2
|
fragment CollectionSelect on Collection {
|
|
5
3
|
...CollectionDetailSelect
|
|
6
4
|
products {
|
|
@@ -19,6 +17,4 @@
|
|
|
19
17
|
totalCount
|
|
20
18
|
}
|
|
21
19
|
}
|
|
22
|
-
`;
|
|
23
|
-
|
|
24
|
-
exports.CollectionSelect = CollectionSelect;
|
|
20
|
+
`;exports.CollectionSelect=CollectionSelect;
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/* eslint-disable */ const CustomCodeSelect = `
|
|
1
|
+
"use strict";const CustomCodeSelect=`
|
|
4
2
|
fragment CustomCodeSelect on CustomCode {
|
|
5
3
|
body
|
|
6
4
|
header
|
|
7
5
|
}
|
|
8
|
-
`;
|
|
9
|
-
|
|
10
|
-
exports.CustomCodeSelect = CustomCodeSelect;
|
|
6
|
+
`;exports.CustomCodeSelect=CustomCodeSelect;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/* eslint-disable */ const CustomFontSelect = `
|
|
1
|
+
"use strict";const CustomFontSelect=`
|
|
4
2
|
fragment CustomFontSelect on CustomFont {
|
|
5
3
|
backupFilePath
|
|
6
4
|
fontFamily
|
|
@@ -9,6 +7,4 @@
|
|
|
9
7
|
mimeType
|
|
10
8
|
filePath
|
|
11
9
|
}
|
|
12
|
-
`;
|
|
13
|
-
|
|
14
|
-
exports.CustomFontSelect = CustomFontSelect;
|
|
10
|
+
`;exports.CustomFontSelect=CustomFontSelect;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/* eslint-disable */ const MediaSelect = `
|
|
1
|
+
"use strict";const MediaSelect=`
|
|
4
2
|
fragment MediaSelect on Media {
|
|
5
3
|
id
|
|
6
4
|
contentType
|
|
@@ -10,6 +8,4 @@
|
|
|
10
8
|
height
|
|
11
9
|
alt
|
|
12
10
|
}
|
|
13
|
-
`;
|
|
14
|
-
|
|
15
|
-
exports.MediaSelect = MediaSelect;
|
|
11
|
+
`;exports.MediaSelect=MediaSelect;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/* eslint-disable */ const ProductLittleSelect = `
|
|
1
|
+
"use strict";const ProductLittleSelect=`
|
|
4
2
|
fragment ProductLittleSelect on Product {
|
|
5
3
|
id
|
|
6
4
|
title
|
|
@@ -19,7 +17,14 @@
|
|
|
19
17
|
featuredImage {
|
|
20
18
|
...MediaSelect
|
|
21
19
|
}
|
|
20
|
+
collections {
|
|
21
|
+
edges {
|
|
22
|
+
node {
|
|
23
|
+
id
|
|
24
|
+
title
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
tags
|
|
22
29
|
}
|
|
23
|
-
`;
|
|
24
|
-
|
|
25
|
-
exports.ProductLittleSelect = ProductLittleSelect;
|
|
30
|
+
`;exports.ProductLittleSelect=ProductLittleSelect;
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/* eslint-disable */ const ProductOptionValueSelect = `
|
|
1
|
+
"use strict";const ProductOptionValueSelect=`
|
|
4
2
|
fragment ProductOptionValueSelect on ProductOptionValue {
|
|
5
3
|
id
|
|
6
4
|
label
|
|
7
5
|
isDefault
|
|
8
6
|
baseID
|
|
9
7
|
}
|
|
10
|
-
`;
|
|
11
|
-
|
|
12
|
-
exports.ProductOptionValueSelect = ProductOptionValueSelect;
|
|
8
|
+
`;exports.ProductOptionValueSelect=ProductOptionValueSelect;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/* eslint-disable */ const ProductOptionSelect = `
|
|
1
|
+
"use strict";const ProductOptionSelect=`
|
|
4
2
|
fragment ProductOptionSelect on ProductOption {
|
|
5
3
|
id
|
|
6
4
|
name
|
|
@@ -9,6 +7,4 @@
|
|
|
9
7
|
...ProductOptionValueSelect
|
|
10
8
|
}
|
|
11
9
|
}
|
|
12
|
-
`;
|
|
13
|
-
|
|
14
|
-
exports.ProductOptionSelect = ProductOptionSelect;
|
|
10
|
+
`;exports.ProductOptionSelect=ProductOptionSelect;
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/* eslint-disable */ const ProductSelect = `
|
|
1
|
+
"use strict";const ProductSelect=`
|
|
4
2
|
fragment ProductSelect on Product {
|
|
5
3
|
...ProductLittleSelect
|
|
4
|
+
collections {
|
|
5
|
+
edges {
|
|
6
|
+
node {
|
|
7
|
+
id
|
|
8
|
+
title
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
tags
|
|
6
13
|
medias(first: $firstMedia, after: $afterMedia, orderBy: $orderByMedia) {
|
|
7
14
|
edges {
|
|
8
15
|
cursor
|
|
@@ -28,6 +35,4 @@
|
|
|
28
35
|
}
|
|
29
36
|
}
|
|
30
37
|
}
|
|
31
|
-
`;
|
|
32
|
-
|
|
33
|
-
exports.ProductSelect = ProductSelect;
|
|
38
|
+
`;exports.ProductSelect=ProductSelect;
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/* eslint-disable */ const PublishedCustomSectionSelect = `
|
|
1
|
+
"use strict";const PublishedCustomSectionSelect=`
|
|
4
2
|
fragment PublishedCustomSectionSelect on PublishedCustomSection {
|
|
5
3
|
cid
|
|
6
4
|
component
|
|
7
5
|
id
|
|
8
6
|
type
|
|
9
7
|
}
|
|
10
|
-
`;
|
|
11
|
-
|
|
12
|
-
exports.PublishedCustomSectionSelect = PublishedCustomSectionSelect;
|
|
8
|
+
`;exports.PublishedCustomSectionSelect=PublishedCustomSectionSelect;
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/* eslint-disable */ const PublishedPageSectionSelect = `
|
|
1
|
+
"use strict";const PublishedPageSectionSelect=`
|
|
4
2
|
fragment PublishedPageSectionSelect on PublishedPageSection {
|
|
5
3
|
cid
|
|
6
4
|
component
|
|
7
5
|
id
|
|
8
6
|
}
|
|
9
|
-
`;
|
|
10
|
-
|
|
11
|
-
exports.PublishedPageSectionSelect = PublishedPageSectionSelect;
|
|
7
|
+
`;exports.PublishedPageSectionSelect=PublishedPageSectionSelect;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/* eslint-disable */ const PublishedThemePageSelect = `
|
|
1
|
+
"use strict";const PublishedThemePageSelect=`
|
|
4
2
|
fragment PublishedThemePageSelect on PublishedThemePage {
|
|
5
3
|
id
|
|
6
4
|
name
|
|
@@ -29,8 +27,7 @@
|
|
|
29
27
|
...CustomFontSelect
|
|
30
28
|
}
|
|
31
29
|
}
|
|
32
|
-
|
|
33
|
-
const PreviewThemePageSelect = `
|
|
30
|
+
`,PreviewThemePageSelect=`
|
|
34
31
|
fragment PreviewThemePageSelect on PublishedThemePage {
|
|
35
32
|
id
|
|
36
33
|
name
|
|
@@ -56,7 +53,4 @@ const PreviewThemePageSelect = `
|
|
|
56
53
|
...CustomCodeSelect
|
|
57
54
|
}
|
|
58
55
|
}
|
|
59
|
-
`;
|
|
60
|
-
|
|
61
|
-
exports.PreviewThemePageSelect = PreviewThemePageSelect;
|
|
62
|
-
exports.PublishedThemePageSelect = PublishedThemePageSelect;
|
|
56
|
+
`;exports.PreviewThemePageSelect=PreviewThemePageSelect,exports.PublishedThemePageSelect=PublishedThemePageSelect;
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/* eslint-disable */ const PublishedThemeStyleSelect = `
|
|
1
|
+
"use strict";const PublishedThemeStyleSelect=`
|
|
4
2
|
fragment PublishedThemeStyleSelect on PublishedThemeStyle {
|
|
5
3
|
id
|
|
6
4
|
data
|
|
7
5
|
name
|
|
8
6
|
}
|
|
9
|
-
`;
|
|
10
|
-
|
|
11
|
-
exports.PublishedThemeStyleSelect = PublishedThemeStyleSelect;
|
|
7
|
+
`;exports.PublishedThemeStyleSelect=PublishedThemeStyleSelect;
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/* eslint-disable */ const SelectedOptionSelect = `
|
|
1
|
+
"use strict";const SelectedOptionSelect=`
|
|
4
2
|
fragment SelectedOptionSelect on SelectedOption {
|
|
5
3
|
name
|
|
6
4
|
value
|
|
7
5
|
optionType
|
|
8
6
|
}
|
|
9
|
-
`;
|
|
10
|
-
|
|
11
|
-
exports.SelectedOptionSelect = SelectedOptionSelect;
|
|
7
|
+
`;exports.SelectedOptionSelect=SelectedOptionSelect;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/* eslint-disable */ const VariantSelect = `
|
|
1
|
+
"use strict";const VariantSelect=`
|
|
4
2
|
fragment VariantSelect on ProductVariant {
|
|
5
3
|
id
|
|
6
4
|
title
|
|
@@ -30,6 +28,4 @@
|
|
|
30
28
|
...MediaSelect
|
|
31
29
|
}
|
|
32
30
|
}
|
|
33
|
-
`;
|
|
34
|
-
|
|
35
|
-
exports.VariantSelect = VariantSelect;
|
|
31
|
+
`;exports.VariantSelect=VariantSelect;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/* eslint-disable */ const PageViewUpDocument = `
|
|
4
|
-
mutation pageViewUp($pageHandle: String!, $userAgent: String!) {
|
|
1
|
+
"use strict";const PageViewUpDocument=`
|
|
2
|
+
mutation pageViewUp($pageHandle: String!, $userAgent: String) {
|
|
5
3
|
pageViewUp(pageHandle: $pageHandle, userAgent: $userAgent)
|
|
6
4
|
}
|
|
7
|
-
`;
|
|
8
|
-
|
|
9
|
-
exports.PageViewUpDocument = PageViewUpDocument;
|
|
5
|
+
`;exports.PageViewUpDocument=PageViewUpDocument;
|