@gem-sdk/core 1.14.0-next.96 → 1.14.1
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 +18 -1
- package/dist/cjs/components/ComponentWrapper.js +28 -1
- package/dist/cjs/components/ComponentWrapperPreview.js +72 -1
- package/dist/cjs/components/Empty.js +7 -1
- package/dist/cjs/components/Render.js +65 -1
- package/dist/cjs/components/Render.liquid.js +158 -3
- package/dist/cjs/components/RenderBlock.js +54 -1
- package/dist/cjs/components/RenderPreview.js +66 -1
- package/dist/cjs/components/RenderSection.js +23 -1
- package/dist/cjs/components/constant.js +39 -1
- package/dist/cjs/contexts/AddonContext.js +36 -1
- package/dist/cjs/contexts/BuilderComponent.js +34 -1
- package/dist/cjs/contexts/BuilderContext.js +35 -1
- package/dist/cjs/contexts/BuilderPreviewContext.js +370 -1
- package/dist/cjs/contexts/CartLineContext.js +29 -1
- package/dist/cjs/contexts/CollectionContext.js +38 -1
- package/dist/cjs/contexts/ModalContext.js +47 -1
- package/dist/cjs/contexts/ProductContext.js +149 -1
- package/dist/cjs/contexts/ProductListContext.js +32 -1
- package/dist/cjs/contexts/SectionContext.js +53 -1
- package/dist/cjs/contexts/ShopContext.js +70 -1
- package/dist/cjs/graphql/fragments/analytic.generated.js +6 -2
- package/dist/cjs/graphql/fragments/collection-detail.generated.js +6 -2
- package/dist/cjs/graphql/fragments/collection-product.generated.js +6 -2
- package/dist/cjs/graphql/fragments/collection.generated.js +6 -2
- package/dist/cjs/graphql/fragments/custom-code.generated.js +6 -2
- package/dist/cjs/graphql/fragments/data-seo.generated.js +6 -2
- package/dist/cjs/graphql/fragments/media.generated.js +6 -3
- package/dist/cjs/graphql/fragments/product-little.generated.js +6 -2
- package/dist/cjs/graphql/fragments/product-option-value.generated.js +6 -2
- package/dist/cjs/graphql/fragments/product-option.generated.js +6 -2
- package/dist/cjs/graphql/fragments/product.generated.js +6 -2
- package/dist/cjs/graphql/fragments/published-custom-section.generated.js +6 -2
- package/dist/cjs/graphql/fragments/published-page-section.generated.js +6 -2
- package/dist/cjs/graphql/fragments/published-theme-page.generated.js +6 -2
- package/dist/cjs/graphql/fragments/published-theme-style.generated.js +6 -2
- package/dist/cjs/graphql/fragments/selected-option.generated.js +6 -2
- package/dist/cjs/graphql/fragments/variant.generated.js +6 -2
- package/dist/cjs/graphql/mutations/page-view-up.generated.js +7 -3
- package/dist/cjs/graphql/queries/collection-detail-filter.generated.js +16 -2
- package/dist/cjs/graphql/queries/collection.generated.js +14 -2
- package/dist/cjs/graphql/queries/collections.generated.js +9 -2
- package/dist/cjs/graphql/queries/preview-page.generated.js +14 -2
- package/dist/cjs/graphql/queries/product-little-detail.generated.js +11 -2
- package/dist/cjs/graphql/queries/product-medias.generated.js +8 -2
- package/dist/cjs/graphql/queries/product-variants.generated.js +10 -2
- package/dist/cjs/graphql/queries/products.generated.js +17 -3
- package/dist/cjs/graphql/queries/published-theme-pages.generated.js +14 -2
- package/dist/cjs/graphql/queries/store-property.generated.js +6 -2
- package/dist/cjs/helpers/GlobalEvent.js +19 -1
- package/dist/cjs/helpers/background.js +109 -1
- package/dist/cjs/helpers/borders.js +183 -4
- package/dist/cjs/helpers/clone-deep.js +5 -1
- package/dist/cjs/helpers/cls.js +16 -1
- package/dist/cjs/helpers/colors.js +183 -1
- package/dist/cjs/helpers/compose-advance-style.js +188 -1
- package/dist/cjs/helpers/constant.js +23 -1
- package/dist/cjs/helpers/convert.js +7 -1
- package/dist/cjs/helpers/css-variable.js +7 -1
- package/dist/cjs/helpers/email.js +11 -1
- package/dist/cjs/helpers/flatten-connection.js +9 -1
- package/dist/cjs/helpers/get-resonsive-value.js +31 -1
- package/dist/cjs/helpers/get-shortname.js +92 -1
- package/dist/cjs/helpers/is-browser.js +9 -1
- package/dist/cjs/helpers/is-defined.js +7 -1
- package/dist/cjs/helpers/is-empty-children.js +12 -1
- package/dist/cjs/helpers/is-safari.js +9 -1
- package/dist/cjs/helpers/layout.js +59 -1
- package/dist/cjs/helpers/load-script.js +31 -1
- package/dist/cjs/helpers/make-style.js +128 -1
- package/dist/cjs/helpers/normalize-builder-data.js +23 -1
- package/dist/cjs/helpers/prefetch-queries.js +78 -1
- package/dist/cjs/helpers/product.js +45 -1
- package/dist/cjs/helpers/queries/get-collection.js +220 -1
- package/dist/cjs/helpers/queries/get-collections.js +21 -1
- package/dist/cjs/helpers/queries/get-product-by-slug.js +125 -1
- package/dist/cjs/helpers/queries/get-product.js +154 -1
- package/dist/cjs/helpers/queries/get-products.js +161 -1
- package/dist/cjs/helpers/query.js +29 -1
- package/dist/cjs/helpers/radius.js +131 -6
- package/dist/cjs/helpers/render.js +71 -1
- package/dist/cjs/helpers/shadow.js +56 -1
- package/dist/cjs/helpers/size.js +35 -4
- package/dist/cjs/helpers/spacing.js +43 -1
- package/dist/cjs/helpers/tracking/fpixel.js +28 -1
- package/dist/cjs/helpers/tracking/gtag.js +93 -1
- package/dist/cjs/helpers/tracking/tiktokpixel.js +17 -1
- package/dist/cjs/helpers/typography.js +105 -17
- package/dist/cjs/helpers/variant.js +8 -1
- package/dist/cjs/hooks/cart/use-add-to-cart.js +20 -1
- package/dist/cjs/hooks/cart/use-cart-data.js +28 -1
- package/dist/cjs/hooks/cart/use-cart-discount-codes-update.js +20 -1
- package/dist/cjs/hooks/cart/use-cart-note-update.js +20 -1
- package/dist/cjs/hooks/cart/use-create-cart.js +22 -1
- package/dist/cjs/hooks/cart/use-remove-cart-item.js +20 -1
- package/dist/cjs/hooks/cart/use-update-cart-item.js +20 -1
- package/dist/cjs/hooks/shop/use-collection-query.js +22 -1
- package/dist/cjs/hooks/shop/use-collections-query.js +17 -1
- package/dist/cjs/hooks/shop/use-product-query.js +22 -1
- package/dist/cjs/hooks/shop/use-products-query.js +22 -1
- package/dist/cjs/hooks/shop.js +126 -1
- package/dist/cjs/hooks/use-current-device.js +21 -1
- package/dist/cjs/hooks/use-lazy-video.js +15 -1
- package/dist/cjs/hooks/useCartId.js +44 -1
- package/dist/cjs/hooks/useCartLine.js +11 -1
- package/dist/cjs/hooks/useCartUI.js +48 -1
- package/dist/cjs/hooks/useCollection.js +9 -1
- package/dist/cjs/hooks/useFetchHandle.js +13 -1
- package/dist/cjs/hooks/useFormatMoney.js +58 -1
- package/dist/cjs/hooks/useIsomorphicLayoutEffect.js +10 -1
- package/dist/cjs/hooks/useLoadScript.js +32 -1
- package/dist/cjs/hooks/useMoney.js +84 -1
- package/dist/cjs/hooks/usePrevious.js +19 -1
- package/dist/cjs/hooks/useProduct.js +124 -1
- package/dist/cjs/hooks/useProductList.js +21 -1
- package/dist/cjs/hooks/useSuspenseFetch.js +27 -1
- package/dist/cjs/hooks/useSwatchesOptions.js +41 -1
- package/dist/cjs/index.js +291 -1
- package/dist/cjs/types/global-style.js +14 -1
- package/dist/cjs/types/shop.js +2 -1
- package/dist/esm/components/AddOn.js +14 -1
- package/dist/esm/components/ComponentWrapper.js +24 -1
- package/dist/esm/components/ComponentWrapperPreview.js +68 -1
- package/dist/esm/components/Empty.js +3 -1
- package/dist/esm/components/Render.js +61 -1
- package/dist/esm/components/Render.liquid.js +153 -3
- package/dist/esm/components/RenderBlock.js +50 -1
- package/dist/esm/components/RenderPreview.js +62 -1
- package/dist/esm/components/RenderSection.js +19 -1
- package/dist/esm/components/constant.js +37 -1
- package/dist/esm/contexts/AddonContext.js +32 -1
- package/dist/esm/contexts/BuilderComponent.js +31 -1
- package/dist/esm/contexts/BuilderContext.js +32 -1
- package/dist/esm/contexts/BuilderPreviewContext.js +367 -1
- package/dist/esm/contexts/CartLineContext.js +26 -1
- package/dist/esm/contexts/CollectionContext.js +35 -1
- package/dist/esm/contexts/ModalContext.js +44 -1
- package/dist/esm/contexts/ProductContext.js +146 -1
- package/dist/esm/contexts/ProductListContext.js +28 -1
- package/dist/esm/contexts/SectionContext.js +49 -1
- package/dist/esm/contexts/ShopContext.js +67 -1
- package/dist/esm/graphql/fragments/analytic.generated.js +4 -2
- package/dist/esm/graphql/fragments/collection-detail.generated.js +4 -2
- package/dist/esm/graphql/fragments/collection-product.generated.js +4 -2
- package/dist/esm/graphql/fragments/collection.generated.js +4 -2
- package/dist/esm/graphql/fragments/custom-code.generated.js +4 -2
- package/dist/esm/graphql/fragments/data-seo.generated.js +4 -2
- package/dist/esm/graphql/fragments/media.generated.js +4 -3
- package/dist/esm/graphql/fragments/product-little.generated.js +4 -2
- package/dist/esm/graphql/fragments/product-option-value.generated.js +4 -2
- package/dist/esm/graphql/fragments/product-option.generated.js +4 -2
- package/dist/esm/graphql/fragments/product.generated.js +4 -2
- package/dist/esm/graphql/fragments/published-custom-section.generated.js +4 -2
- package/dist/esm/graphql/fragments/published-page-section.generated.js +4 -2
- package/dist/esm/graphql/fragments/published-theme-page.generated.js +4 -2
- package/dist/esm/graphql/fragments/published-theme-style.generated.js +4 -2
- package/dist/esm/graphql/fragments/selected-option.generated.js +4 -2
- package/dist/esm/graphql/fragments/variant.generated.js +4 -2
- package/dist/esm/graphql/mutations/page-view-up.generated.js +5 -3
- package/dist/esm/graphql/queries/collection-detail-filter.generated.js +22 -10
- package/dist/esm/graphql/queries/collection.generated.js +18 -8
- package/dist/esm/graphql/queries/collections.generated.js +8 -3
- package/dist/esm/graphql/queries/preview-page.generated.js +18 -8
- package/dist/esm/graphql/queries/product-little-detail.generated.js +12 -5
- package/dist/esm/graphql/queries/product-medias.generated.js +6 -2
- package/dist/esm/graphql/queries/product-variants.generated.js +10 -4
- package/dist/esm/graphql/queries/products.generated.js +20 -9
- package/dist/esm/graphql/queries/published-theme-pages.generated.js +18 -8
- package/dist/esm/graphql/queries/store-property.generated.js +4 -2
- package/dist/esm/helpers/GlobalEvent.js +15 -1
- package/dist/esm/helpers/background.js +106 -1
- package/dist/esm/helpers/borders.js +175 -4
- package/dist/esm/helpers/clone-deep.js +3 -1
- package/dist/esm/helpers/cls.js +14 -1
- package/dist/esm/helpers/colors.js +168 -1
- package/dist/esm/helpers/compose-advance-style.js +185 -1
- package/dist/esm/helpers/constant.js +19 -1
- package/dist/esm/helpers/convert.js +4 -1
- package/dist/esm/helpers/css-variable.js +5 -1
- package/dist/esm/helpers/email.js +6 -1
- package/dist/esm/helpers/flatten-connection.js +7 -1
- package/dist/esm/helpers/get-resonsive-value.js +27 -1
- package/dist/esm/helpers/get-shortname.js +90 -1
- package/dist/esm/helpers/is-browser.js +5 -1
- package/dist/esm/helpers/is-defined.js +5 -1
- package/dist/esm/helpers/is-empty-children.js +7 -1
- package/dist/esm/helpers/is-safari.js +5 -1
- package/dist/esm/helpers/layout.js +54 -1
- package/dist/esm/helpers/load-script.js +29 -1
- package/dist/esm/helpers/make-style.js +117 -1
- package/dist/esm/helpers/normalize-builder-data.js +21 -1
- package/dist/esm/helpers/prefetch-queries.js +76 -1
- package/dist/esm/helpers/product.js +41 -1
- package/dist/esm/helpers/queries/get-collection.js +217 -1
- package/dist/esm/helpers/queries/get-collections.js +19 -1
- package/dist/esm/helpers/queries/get-product-by-slug.js +123 -1
- package/dist/esm/helpers/queries/get-product.js +150 -1
- package/dist/esm/helpers/queries/get-products.js +159 -1
- package/dist/esm/helpers/query.js +25 -1
- package/dist/esm/helpers/radius.js +124 -6
- package/dist/esm/helpers/render.js +64 -1
- package/dist/esm/helpers/shadow.js +51 -1
- package/dist/esm/helpers/size.js +31 -4
- package/dist/esm/helpers/spacing.js +40 -1
- package/dist/esm/helpers/tracking/fpixel.js +24 -1
- package/dist/esm/helpers/tracking/gtag.js +87 -1
- package/dist/esm/helpers/tracking/tiktokpixel.js +15 -1
- package/dist/esm/helpers/typography.js +96 -17
- package/dist/esm/helpers/variant.js +6 -1
- package/dist/esm/hooks/cart/use-add-to-cart.js +18 -1
- package/dist/esm/hooks/cart/use-cart-data.js +26 -1
- package/dist/esm/hooks/cart/use-cart-discount-codes-update.js +18 -1
- package/dist/esm/hooks/cart/use-cart-note-update.js +18 -1
- package/dist/esm/hooks/cart/use-create-cart.js +20 -1
- package/dist/esm/hooks/cart/use-remove-cart-item.js +18 -1
- package/dist/esm/hooks/cart/use-update-cart-item.js +18 -1
- package/dist/esm/hooks/shop/use-collection-query.js +20 -1
- package/dist/esm/hooks/shop/use-collections-query.js +15 -1
- package/dist/esm/hooks/shop/use-product-query.js +20 -1
- package/dist/esm/hooks/shop/use-products-query.js +20 -1
- package/dist/esm/hooks/shop.js +111 -1
- package/dist/esm/hooks/use-current-device.js +19 -1
- package/dist/esm/hooks/use-lazy-video.js +13 -1
- package/dist/esm/hooks/useCartId.js +40 -1
- package/dist/esm/hooks/useCartLine.js +7 -1
- package/dist/esm/hooks/useCartUI.js +44 -1
- package/dist/esm/hooks/useCollection.js +7 -1
- package/dist/esm/hooks/useFetchHandle.js +11 -1
- package/dist/esm/hooks/useFormatMoney.js +56 -1
- package/dist/esm/hooks/useIsomorphicLayoutEffect.js +6 -1
- package/dist/esm/hooks/useLoadScript.js +28 -1
- package/dist/esm/hooks/useMoney.js +80 -1
- package/dist/esm/hooks/usePrevious.js +17 -1
- package/dist/esm/hooks/useProduct.js +111 -1
- package/dist/esm/hooks/useProductList.js +16 -1
- package/dist/esm/hooks/useSuspenseFetch.js +23 -1
- package/dist/esm/hooks/useSwatchesOptions.js +37 -1
- package/dist/esm/index.js +92 -1
- package/dist/esm/types/global-style.js +11 -1
- package/dist/types/index.d.ts +26 -26
- package/package.json +2 -2
package/dist/types/index.d.ts
CHANGED
|
@@ -7165,7 +7165,7 @@ type Border = {
|
|
|
7165
7165
|
type BorderTypeName = 'none' | 'style-1' | 'style-2' | 'style-3';
|
|
7166
7166
|
type BorderStyle$1 = 'none' | 'solid' | 'dotted' | 'dashed';
|
|
7167
7167
|
type BorderPosition = 'top' | 'left' | 'right' | 'bottom' | 'all';
|
|
7168
|
-
type SwatchesOptionType = 'radio_buttons' | 'dropdown' | 'color' | 'image' | 'rectangle_list' |
|
|
7168
|
+
type SwatchesOptionType = 'radio_buttons' | 'dropdown' | 'color' | 'image' | 'rectangle_list' | string;
|
|
7169
7169
|
declare const OptionNormalStyle: string[];
|
|
7170
7170
|
declare const OptionSpecialStyle: string[];
|
|
7171
7171
|
type SwatchesOptionValue = {
|
|
@@ -7262,7 +7262,7 @@ type CollectionProductSelectFragment = Pick<Collection, 'id' | 'createdAt' | 'up
|
|
|
7262
7262
|
node?: Maybe<Pick<Product, 'id' | 'title' | 'description' | 'descriptionHtml' | 'handle' | 'averageRating' | 'isStorefront' | 'isSample' | 'baseID' | 'sku' | 'vendor'> & {
|
|
7263
7263
|
medias?: Maybe<{
|
|
7264
7264
|
edges: Array<Pick<MediaEdge, 'cursor'> & {
|
|
7265
|
-
node?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7265
|
+
node?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7266
7266
|
}>;
|
|
7267
7267
|
pageInfo?: Maybe<Pick<PageInfo, 'endCursor' | 'hasNextPage'>>;
|
|
7268
7268
|
}>;
|
|
@@ -7270,7 +7270,7 @@ type CollectionProductSelectFragment = Pick<Collection, 'id' | 'createdAt' | 'up
|
|
|
7270
7270
|
edges: Array<Pick<ProductVariantEdge, 'cursor'> & {
|
|
7271
7271
|
node?: Maybe<Pick<ProductVariant, 'id' | 'title' | 'barcode' | 'baseID' | 'costPrice' | 'height' | 'inventoryPolicy' | 'inventoryQuantity' | 'inventoryStatus' | 'isDigital' | 'length' | 'lowInventoryAmount' | 'manageInventory' | 'mediaId' | 'platform' | 'price' | 'salePrice' | 'sku' | 'soldIndividually' | 'weight' | 'width'> & {
|
|
7272
7272
|
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value' | 'optionType'>>;
|
|
7273
|
-
media?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7273
|
+
media?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7274
7274
|
}>;
|
|
7275
7275
|
}>;
|
|
7276
7276
|
pageInfo?: Maybe<Pick<PageInfo, 'hasNextPage' | 'endCursor'>>;
|
|
@@ -7278,7 +7278,7 @@ type CollectionProductSelectFragment = Pick<Collection, 'id' | 'createdAt' | 'up
|
|
|
7278
7278
|
options?: Maybe<Array<Pick<ProductOption, 'id' | 'name' | 'optionType'> & {
|
|
7279
7279
|
values: Array<Pick<ProductOptionValue, 'id' | 'label' | 'isDefault' | 'baseID'>>;
|
|
7280
7280
|
}>>;
|
|
7281
|
-
featuredImage?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7281
|
+
featuredImage?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7282
7282
|
}>;
|
|
7283
7283
|
}>;
|
|
7284
7284
|
pageInfo?: Maybe<Pick<PageInfo, 'endCursor' | 'hasNextPage'>>;
|
|
@@ -7287,7 +7287,7 @@ type CollectionProductSelectFragment = Pick<Collection, 'id' | 'createdAt' | 'up
|
|
|
7287
7287
|
};
|
|
7288
7288
|
|
|
7289
7289
|
type ProductQuickSelectFragment = Pick<Product, 'id' | 'title' | 'handle' | 'averageRating' | 'baseID' | 'description' | 'sku' | 'vendor'> & {
|
|
7290
|
-
featuredImage?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7290
|
+
featuredImage?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7291
7291
|
options?: Maybe<Array<Pick<ProductOption, 'id' | 'name' | 'optionType'> & {
|
|
7292
7292
|
values: Array<Pick<ProductOptionValue, 'id' | 'label' | 'isDefault' | 'baseID'>>;
|
|
7293
7293
|
}>>;
|
|
@@ -7295,7 +7295,7 @@ type ProductQuickSelectFragment = Pick<Product, 'id' | 'title' | 'handle' | 'ave
|
|
|
7295
7295
|
edges: Array<{
|
|
7296
7296
|
node?: Maybe<Pick<ProductVariant, 'id' | 'title' | 'barcode' | 'costPrice' | 'height' | 'inventoryQuantity' | 'inventoryStatus' | 'length' | 'price' | 'salePrice' | 'sku' | 'baseID' | 'weight' | 'width'> & {
|
|
7297
7297
|
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value' | 'optionType'>>;
|
|
7298
|
-
media?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7298
|
+
media?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7299
7299
|
}>;
|
|
7300
7300
|
}>;
|
|
7301
7301
|
}>;
|
|
@@ -7334,7 +7334,7 @@ declare const useProductListStore: <U>(selector: (state: ExtractState<StoreApi<P
|
|
|
7334
7334
|
type ProductSelectFragment = Pick<Product, 'id' | 'title' | 'description' | 'descriptionHtml' | 'handle' | 'averageRating' | 'isStorefront' | 'isSample' | 'baseID' | 'sku' | 'vendor'> & {
|
|
7335
7335
|
medias?: Maybe<{
|
|
7336
7336
|
edges: Array<Pick<MediaEdge, 'cursor'> & {
|
|
7337
|
-
node?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7337
|
+
node?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7338
7338
|
}>;
|
|
7339
7339
|
pageInfo?: Maybe<Pick<PageInfo, 'endCursor' | 'hasNextPage'>>;
|
|
7340
7340
|
}>;
|
|
@@ -7342,7 +7342,7 @@ type ProductSelectFragment = Pick<Product, 'id' | 'title' | 'description' | 'des
|
|
|
7342
7342
|
edges: Array<Pick<ProductVariantEdge, 'cursor'> & {
|
|
7343
7343
|
node?: Maybe<Pick<ProductVariant, 'id' | 'title' | 'barcode' | 'baseID' | 'costPrice' | 'height' | 'inventoryPolicy' | 'inventoryQuantity' | 'inventoryStatus' | 'isDigital' | 'length' | 'lowInventoryAmount' | 'manageInventory' | 'mediaId' | 'platform' | 'price' | 'salePrice' | 'sku' | 'soldIndividually' | 'weight' | 'width'> & {
|
|
7344
7344
|
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value' | 'optionType'>>;
|
|
7345
|
-
media?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7345
|
+
media?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7346
7346
|
}>;
|
|
7347
7347
|
}>;
|
|
7348
7348
|
pageInfo?: Maybe<Pick<PageInfo, 'hasNextPage' | 'endCursor'>>;
|
|
@@ -7350,10 +7350,10 @@ type ProductSelectFragment = Pick<Product, 'id' | 'title' | 'description' | 'des
|
|
|
7350
7350
|
options?: Maybe<Array<Pick<ProductOption, 'id' | 'name' | 'optionType'> & {
|
|
7351
7351
|
values: Array<Pick<ProductOptionValue, 'id' | 'label' | 'isDefault' | 'baseID'>>;
|
|
7352
7352
|
}>>;
|
|
7353
|
-
featuredImage?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7353
|
+
featuredImage?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7354
7354
|
};
|
|
7355
7355
|
|
|
7356
|
-
type MediaSelectFragment = Pick<Media, 'id' | 'contentType' | '
|
|
7356
|
+
type MediaSelectFragment = Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>;
|
|
7357
7357
|
|
|
7358
7358
|
type AttributeProp = {
|
|
7359
7359
|
key: string;
|
|
@@ -7478,10 +7478,10 @@ declare const useModalStore: <U>(selector: (state: ExtractState<StoreApi<ModalCo
|
|
|
7478
7478
|
|
|
7479
7479
|
type PageViewUpMutationVariables = Exact<{
|
|
7480
7480
|
pageHandle: Scalars['String'];
|
|
7481
|
-
userAgent
|
|
7481
|
+
userAgent: Scalars['String'];
|
|
7482
7482
|
}>;
|
|
7483
7483
|
type PageViewUpMutationResponse = Pick<Mutation, 'pageViewUp'>;
|
|
7484
|
-
declare const PageViewUpDocument = "\n mutation pageViewUp($pageHandle: String!, $userAgent: String) {\n pageViewUp(pageHandle: $pageHandle, userAgent: $userAgent)\n}\n ";
|
|
7484
|
+
declare const PageViewUpDocument = "\n mutation pageViewUp($pageHandle: String!, $userAgent: String!) {\n pageViewUp(pageHandle: $pageHandle, userAgent: $userAgent)\n}\n ";
|
|
7485
7485
|
|
|
7486
7486
|
type CollectionDetailFilterQueryVariables = Exact<{
|
|
7487
7487
|
firstProduct?: InputMaybe<Scalars['Int']>;
|
|
@@ -7505,7 +7505,7 @@ type CollectionDetailFilterQueryResponse = {
|
|
|
7505
7505
|
node?: Maybe<Pick<Product, 'id' | 'title' | 'description' | 'descriptionHtml' | 'handle' | 'averageRating' | 'isStorefront' | 'isSample' | 'baseID' | 'sku' | 'vendor'> & {
|
|
7506
7506
|
medias?: Maybe<{
|
|
7507
7507
|
edges: Array<Pick<MediaEdge, 'cursor'> & {
|
|
7508
|
-
node?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7508
|
+
node?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7509
7509
|
}>;
|
|
7510
7510
|
pageInfo?: Maybe<Pick<PageInfo, 'endCursor' | 'hasNextPage'>>;
|
|
7511
7511
|
}>;
|
|
@@ -7513,7 +7513,7 @@ type CollectionDetailFilterQueryResponse = {
|
|
|
7513
7513
|
edges: Array<Pick<ProductVariantEdge, 'cursor'> & {
|
|
7514
7514
|
node?: Maybe<Pick<ProductVariant, 'id' | 'title' | 'barcode' | 'baseID' | 'costPrice' | 'height' | 'inventoryPolicy' | 'inventoryQuantity' | 'inventoryStatus' | 'isDigital' | 'length' | 'lowInventoryAmount' | 'manageInventory' | 'mediaId' | 'platform' | 'price' | 'salePrice' | 'sku' | 'soldIndividually' | 'weight' | 'width'> & {
|
|
7515
7515
|
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value' | 'optionType'>>;
|
|
7516
|
-
media?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7516
|
+
media?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7517
7517
|
}>;
|
|
7518
7518
|
}>;
|
|
7519
7519
|
pageInfo?: Maybe<Pick<PageInfo, 'hasNextPage' | 'endCursor'>>;
|
|
@@ -7521,7 +7521,7 @@ type CollectionDetailFilterQueryResponse = {
|
|
|
7521
7521
|
options?: Maybe<Array<Pick<ProductOption, 'id' | 'name' | 'optionType'> & {
|
|
7522
7522
|
values: Array<Pick<ProductOptionValue, 'id' | 'label' | 'isDefault' | 'baseID'>>;
|
|
7523
7523
|
}>>;
|
|
7524
|
-
featuredImage?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7524
|
+
featuredImage?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7525
7525
|
}>;
|
|
7526
7526
|
}>;
|
|
7527
7527
|
pageInfo?: Maybe<Pick<PageInfo, 'endCursor' | 'hasNextPage'>>;
|
|
@@ -7550,7 +7550,7 @@ type CollectionQueryResponse = {
|
|
|
7550
7550
|
node?: Maybe<Pick<Product, 'id' | 'title' | 'description' | 'descriptionHtml' | 'handle' | 'averageRating' | 'isStorefront' | 'isSample' | 'baseID' | 'sku' | 'vendor'> & {
|
|
7551
7551
|
medias?: Maybe<{
|
|
7552
7552
|
edges: Array<Pick<MediaEdge, 'cursor'> & {
|
|
7553
|
-
node?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7553
|
+
node?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7554
7554
|
}>;
|
|
7555
7555
|
pageInfo?: Maybe<Pick<PageInfo, 'endCursor' | 'hasNextPage'>>;
|
|
7556
7556
|
}>;
|
|
@@ -7558,7 +7558,7 @@ type CollectionQueryResponse = {
|
|
|
7558
7558
|
edges: Array<Pick<ProductVariantEdge, 'cursor'> & {
|
|
7559
7559
|
node?: Maybe<Pick<ProductVariant, 'id' | 'title' | 'barcode' | 'baseID' | 'costPrice' | 'height' | 'inventoryPolicy' | 'inventoryQuantity' | 'inventoryStatus' | 'isDigital' | 'length' | 'lowInventoryAmount' | 'manageInventory' | 'mediaId' | 'platform' | 'price' | 'salePrice' | 'sku' | 'soldIndividually' | 'weight' | 'width'> & {
|
|
7560
7560
|
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value' | 'optionType'>>;
|
|
7561
|
-
media?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7561
|
+
media?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7562
7562
|
}>;
|
|
7563
7563
|
}>;
|
|
7564
7564
|
pageInfo?: Maybe<Pick<PageInfo, 'hasNextPage' | 'endCursor'>>;
|
|
@@ -7566,7 +7566,7 @@ type CollectionQueryResponse = {
|
|
|
7566
7566
|
options?: Maybe<Array<Pick<ProductOption, 'id' | 'name' | 'optionType'> & {
|
|
7567
7567
|
values: Array<Pick<ProductOptionValue, 'id' | 'label' | 'isDefault' | 'baseID'>>;
|
|
7568
7568
|
}>>;
|
|
7569
|
-
featuredImage?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7569
|
+
featuredImage?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7570
7570
|
}>;
|
|
7571
7571
|
}>;
|
|
7572
7572
|
pageInfo?: Maybe<Pick<PageInfo, 'endCursor' | 'hasNextPage' | 'hasPreviousPage' | 'startCursor'>>;
|
|
@@ -7634,7 +7634,7 @@ type ProductsQueryResponse = {
|
|
|
7634
7634
|
node?: Maybe<Pick<Product, 'id' | 'title' | 'description' | 'descriptionHtml' | 'handle' | 'averageRating' | 'isStorefront' | 'isSample' | 'baseID' | 'sku' | 'vendor'> & {
|
|
7635
7635
|
medias?: Maybe<{
|
|
7636
7636
|
edges: Array<Pick<MediaEdge, 'cursor'> & {
|
|
7637
|
-
node?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7637
|
+
node?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7638
7638
|
}>;
|
|
7639
7639
|
pageInfo?: Maybe<Pick<PageInfo, 'endCursor' | 'hasNextPage'>>;
|
|
7640
7640
|
}>;
|
|
@@ -7642,7 +7642,7 @@ type ProductsQueryResponse = {
|
|
|
7642
7642
|
edges: Array<Pick<ProductVariantEdge, 'cursor'> & {
|
|
7643
7643
|
node?: Maybe<Pick<ProductVariant, 'id' | 'title' | 'barcode' | 'baseID' | 'costPrice' | 'height' | 'inventoryPolicy' | 'inventoryQuantity' | 'inventoryStatus' | 'isDigital' | 'length' | 'lowInventoryAmount' | 'manageInventory' | 'mediaId' | 'platform' | 'price' | 'salePrice' | 'sku' | 'soldIndividually' | 'weight' | 'width'> & {
|
|
7644
7644
|
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value' | 'optionType'>>;
|
|
7645
|
-
media?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7645
|
+
media?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7646
7646
|
}>;
|
|
7647
7647
|
}>;
|
|
7648
7648
|
pageInfo?: Maybe<Pick<PageInfo, 'hasNextPage' | 'endCursor'>>;
|
|
@@ -7650,7 +7650,7 @@ type ProductsQueryResponse = {
|
|
|
7650
7650
|
options?: Maybe<Array<Pick<ProductOption, 'id' | 'name' | 'optionType'> & {
|
|
7651
7651
|
values: Array<Pick<ProductOptionValue, 'id' | 'label' | 'isDefault' | 'baseID'>>;
|
|
7652
7652
|
}>>;
|
|
7653
|
-
featuredImage?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7653
|
+
featuredImage?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7654
7654
|
}>;
|
|
7655
7655
|
}>;
|
|
7656
7656
|
pageInfo?: Maybe<Pick<PageInfo, 'endCursor' | 'hasNextPage'>>;
|
|
@@ -7684,7 +7684,7 @@ declare const PreviewPageDocument: string;
|
|
|
7684
7684
|
|
|
7685
7685
|
type VariantSelectFragment = Pick<ProductVariant, 'id' | 'title' | 'barcode' | 'baseID' | 'costPrice' | 'height' | 'inventoryPolicy' | 'inventoryQuantity' | 'inventoryStatus' | 'isDigital' | 'length' | 'lowInventoryAmount' | 'manageInventory' | 'mediaId' | 'platform' | 'price' | 'salePrice' | 'sku' | 'soldIndividually' | 'weight' | 'width'> & {
|
|
7686
7686
|
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value' | 'optionType'>>;
|
|
7687
|
-
media?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7687
|
+
media?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7688
7688
|
};
|
|
7689
7689
|
|
|
7690
7690
|
type BorderStyle = StateProp<Border> | ResponsiveStateProp<Border>;
|
|
@@ -9275,7 +9275,7 @@ declare const composeTypographyStyle: (typo?: TypographySettingV2, typography?:
|
|
|
9275
9275
|
vectorEffect?: csstype.Property.VectorEffect | undefined;
|
|
9276
9276
|
};
|
|
9277
9277
|
|
|
9278
|
-
declare const getCornerCSSFromGlobal: (corner
|
|
9278
|
+
declare const getCornerCSSFromGlobal: (corner: CornerRadius) => React.CSSProperties;
|
|
9279
9279
|
declare const getRadiusCSSFromGlobal: (state: StateType, key?: RoundedSize, device?: NameDevices) => React.CSSProperties;
|
|
9280
9280
|
declare const getCustomRadius: (state: StateType, radius?: CornerRadius, device?: NameDevices) => React.CSSProperties;
|
|
9281
9281
|
declare const composeRadius: (value?: StateProp<CornerRadius> | ResponsiveStateProp<CornerRadius>) => React.CSSProperties;
|
|
@@ -9394,7 +9394,7 @@ type RequiredCursorEdge<T> = {
|
|
|
9394
9394
|
};
|
|
9395
9395
|
declare const fetchVariants: (fetcher: FetchFunc, { id, isSample, isStorefront }: FetchProductParams) => Promise<RequiredCursorEdge<VariantSelectFragment>[]>;
|
|
9396
9396
|
declare const fetchMedias: (fetcher: FetchFunc, { id, isSample, isStorefront }: FetchProductParams) => Promise<(Pick<MediaEdge, "cursor"> & {
|
|
9397
|
-
node?: Maybe<Pick<Media, "width" | "height" | "id" | "contentType" | "
|
|
9397
|
+
node?: Maybe<Pick<Media, "width" | "height" | "id" | "contentType" | "src" | "alt">>;
|
|
9398
9398
|
})[]>;
|
|
9399
9399
|
|
|
9400
9400
|
type FetchProductsParams = {
|
|
@@ -9591,11 +9591,11 @@ declare const useSelectedOption: () => {
|
|
|
9591
9591
|
};
|
|
9592
9592
|
declare const useVariants: () => Maybe<Pick<ProductVariant, "title" | "width" | "length" | "weight" | "height" | "id" | "barcode" | "baseID" | "costPrice" | "inventoryPolicy" | "inventoryQuantity" | "inventoryStatus" | "isDigital" | "lowInventoryAmount" | "manageInventory" | "mediaId" | "platform" | "price" | "salePrice" | "sku" | "soldIndividually"> & {
|
|
9593
9593
|
selectedOptions: Pick<SelectedOption, "value" | "name" | "optionType">[];
|
|
9594
|
-
media?: Maybe<Pick<Media, "width" | "height" | "id" | "contentType" | "
|
|
9594
|
+
media?: Maybe<Pick<Media, "width" | "height" | "id" | "contentType" | "src" | "alt">>;
|
|
9595
9595
|
}>[];
|
|
9596
9596
|
declare const useVariant: (id: string) => Maybe<Pick<ProductVariant, "title" | "width" | "length" | "weight" | "height" | "id" | "barcode" | "baseID" | "costPrice" | "inventoryPolicy" | "inventoryQuantity" | "inventoryStatus" | "isDigital" | "lowInventoryAmount" | "manageInventory" | "mediaId" | "platform" | "price" | "salePrice" | "sku" | "soldIndividually"> & {
|
|
9597
9597
|
selectedOptions: Pick<SelectedOption, "value" | "name" | "optionType">[];
|
|
9598
|
-
media?: Maybe<Pick<Media, "width" | "height" | "id" | "contentType" | "
|
|
9598
|
+
media?: Maybe<Pick<Media, "width" | "height" | "id" | "contentType" | "src" | "alt">>;
|
|
9599
9599
|
}>;
|
|
9600
9600
|
declare const useCurrentVariant: () => Maybe<VariantSelectFragment>;
|
|
9601
9601
|
declare const useCurrentVariantInStock: () => boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/core",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@gem-sdk/adapter-shopify": "1.12.0",
|
|
28
|
-
"@gem-sdk/styles": "1.
|
|
28
|
+
"@gem-sdk/styles": "1.13.40"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"react-error-boundary": "4.0.10",
|