@gem-sdk/core 1.14.0-next.96 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/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 -28
- package/package.json +2 -2
package/dist/types/index.d.ts
CHANGED
|
@@ -739,8 +739,6 @@ type Mapped<K, T> = NonNullable<T> extends ObjectDevices<infer U> ? {
|
|
|
739
739
|
type: 'layout-segment';
|
|
740
740
|
options: Option<T>[];
|
|
741
741
|
devices?: ResponsiveConfig<U>;
|
|
742
|
-
iconViewBox?: string;
|
|
743
|
-
enableItemBackground?: boolean;
|
|
744
742
|
} : {
|
|
745
743
|
id: K;
|
|
746
744
|
label: string;
|
|
@@ -7165,7 +7163,7 @@ type Border = {
|
|
|
7165
7163
|
type BorderTypeName = 'none' | 'style-1' | 'style-2' | 'style-3';
|
|
7166
7164
|
type BorderStyle$1 = 'none' | 'solid' | 'dotted' | 'dashed';
|
|
7167
7165
|
type BorderPosition = 'top' | 'left' | 'right' | 'bottom' | 'all';
|
|
7168
|
-
type SwatchesOptionType = 'radio_buttons' | 'dropdown' | 'color' | 'image' | 'rectangle_list' |
|
|
7166
|
+
type SwatchesOptionType = 'radio_buttons' | 'dropdown' | 'color' | 'image' | 'rectangle_list' | string;
|
|
7169
7167
|
declare const OptionNormalStyle: string[];
|
|
7170
7168
|
declare const OptionSpecialStyle: string[];
|
|
7171
7169
|
type SwatchesOptionValue = {
|
|
@@ -7262,7 +7260,7 @@ type CollectionProductSelectFragment = Pick<Collection, 'id' | 'createdAt' | 'up
|
|
|
7262
7260
|
node?: Maybe<Pick<Product, 'id' | 'title' | 'description' | 'descriptionHtml' | 'handle' | 'averageRating' | 'isStorefront' | 'isSample' | 'baseID' | 'sku' | 'vendor'> & {
|
|
7263
7261
|
medias?: Maybe<{
|
|
7264
7262
|
edges: Array<Pick<MediaEdge, 'cursor'> & {
|
|
7265
|
-
node?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7263
|
+
node?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7266
7264
|
}>;
|
|
7267
7265
|
pageInfo?: Maybe<Pick<PageInfo, 'endCursor' | 'hasNextPage'>>;
|
|
7268
7266
|
}>;
|
|
@@ -7270,7 +7268,7 @@ type CollectionProductSelectFragment = Pick<Collection, 'id' | 'createdAt' | 'up
|
|
|
7270
7268
|
edges: Array<Pick<ProductVariantEdge, 'cursor'> & {
|
|
7271
7269
|
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
7270
|
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value' | 'optionType'>>;
|
|
7273
|
-
media?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7271
|
+
media?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7274
7272
|
}>;
|
|
7275
7273
|
}>;
|
|
7276
7274
|
pageInfo?: Maybe<Pick<PageInfo, 'hasNextPage' | 'endCursor'>>;
|
|
@@ -7278,7 +7276,7 @@ type CollectionProductSelectFragment = Pick<Collection, 'id' | 'createdAt' | 'up
|
|
|
7278
7276
|
options?: Maybe<Array<Pick<ProductOption, 'id' | 'name' | 'optionType'> & {
|
|
7279
7277
|
values: Array<Pick<ProductOptionValue, 'id' | 'label' | 'isDefault' | 'baseID'>>;
|
|
7280
7278
|
}>>;
|
|
7281
|
-
featuredImage?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7279
|
+
featuredImage?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7282
7280
|
}>;
|
|
7283
7281
|
}>;
|
|
7284
7282
|
pageInfo?: Maybe<Pick<PageInfo, 'endCursor' | 'hasNextPage'>>;
|
|
@@ -7287,7 +7285,7 @@ type CollectionProductSelectFragment = Pick<Collection, 'id' | 'createdAt' | 'up
|
|
|
7287
7285
|
};
|
|
7288
7286
|
|
|
7289
7287
|
type ProductQuickSelectFragment = Pick<Product, 'id' | 'title' | 'handle' | 'averageRating' | 'baseID' | 'description' | 'sku' | 'vendor'> & {
|
|
7290
|
-
featuredImage?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7288
|
+
featuredImage?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7291
7289
|
options?: Maybe<Array<Pick<ProductOption, 'id' | 'name' | 'optionType'> & {
|
|
7292
7290
|
values: Array<Pick<ProductOptionValue, 'id' | 'label' | 'isDefault' | 'baseID'>>;
|
|
7293
7291
|
}>>;
|
|
@@ -7295,7 +7293,7 @@ type ProductQuickSelectFragment = Pick<Product, 'id' | 'title' | 'handle' | 'ave
|
|
|
7295
7293
|
edges: Array<{
|
|
7296
7294
|
node?: Maybe<Pick<ProductVariant, 'id' | 'title' | 'barcode' | 'costPrice' | 'height' | 'inventoryQuantity' | 'inventoryStatus' | 'length' | 'price' | 'salePrice' | 'sku' | 'baseID' | 'weight' | 'width'> & {
|
|
7297
7295
|
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value' | 'optionType'>>;
|
|
7298
|
-
media?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7296
|
+
media?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7299
7297
|
}>;
|
|
7300
7298
|
}>;
|
|
7301
7299
|
}>;
|
|
@@ -7334,7 +7332,7 @@ declare const useProductListStore: <U>(selector: (state: ExtractState<StoreApi<P
|
|
|
7334
7332
|
type ProductSelectFragment = Pick<Product, 'id' | 'title' | 'description' | 'descriptionHtml' | 'handle' | 'averageRating' | 'isStorefront' | 'isSample' | 'baseID' | 'sku' | 'vendor'> & {
|
|
7335
7333
|
medias?: Maybe<{
|
|
7336
7334
|
edges: Array<Pick<MediaEdge, 'cursor'> & {
|
|
7337
|
-
node?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7335
|
+
node?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7338
7336
|
}>;
|
|
7339
7337
|
pageInfo?: Maybe<Pick<PageInfo, 'endCursor' | 'hasNextPage'>>;
|
|
7340
7338
|
}>;
|
|
@@ -7342,7 +7340,7 @@ type ProductSelectFragment = Pick<Product, 'id' | 'title' | 'description' | 'des
|
|
|
7342
7340
|
edges: Array<Pick<ProductVariantEdge, 'cursor'> & {
|
|
7343
7341
|
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
7342
|
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value' | 'optionType'>>;
|
|
7345
|
-
media?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7343
|
+
media?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7346
7344
|
}>;
|
|
7347
7345
|
}>;
|
|
7348
7346
|
pageInfo?: Maybe<Pick<PageInfo, 'hasNextPage' | 'endCursor'>>;
|
|
@@ -7350,10 +7348,10 @@ type ProductSelectFragment = Pick<Product, 'id' | 'title' | 'description' | 'des
|
|
|
7350
7348
|
options?: Maybe<Array<Pick<ProductOption, 'id' | 'name' | 'optionType'> & {
|
|
7351
7349
|
values: Array<Pick<ProductOptionValue, 'id' | 'label' | 'isDefault' | 'baseID'>>;
|
|
7352
7350
|
}>>;
|
|
7353
|
-
featuredImage?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7351
|
+
featuredImage?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7354
7352
|
};
|
|
7355
7353
|
|
|
7356
|
-
type MediaSelectFragment = Pick<Media, 'id' | 'contentType' | '
|
|
7354
|
+
type MediaSelectFragment = Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>;
|
|
7357
7355
|
|
|
7358
7356
|
type AttributeProp = {
|
|
7359
7357
|
key: string;
|
|
@@ -7478,10 +7476,10 @@ declare const useModalStore: <U>(selector: (state: ExtractState<StoreApi<ModalCo
|
|
|
7478
7476
|
|
|
7479
7477
|
type PageViewUpMutationVariables = Exact<{
|
|
7480
7478
|
pageHandle: Scalars['String'];
|
|
7481
|
-
userAgent
|
|
7479
|
+
userAgent: Scalars['String'];
|
|
7482
7480
|
}>;
|
|
7483
7481
|
type PageViewUpMutationResponse = Pick<Mutation, 'pageViewUp'>;
|
|
7484
|
-
declare const PageViewUpDocument = "\n mutation pageViewUp($pageHandle: String!, $userAgent: String) {\n pageViewUp(pageHandle: $pageHandle, userAgent: $userAgent)\n}\n ";
|
|
7482
|
+
declare const PageViewUpDocument = "\n mutation pageViewUp($pageHandle: String!, $userAgent: String!) {\n pageViewUp(pageHandle: $pageHandle, userAgent: $userAgent)\n}\n ";
|
|
7485
7483
|
|
|
7486
7484
|
type CollectionDetailFilterQueryVariables = Exact<{
|
|
7487
7485
|
firstProduct?: InputMaybe<Scalars['Int']>;
|
|
@@ -7505,7 +7503,7 @@ type CollectionDetailFilterQueryResponse = {
|
|
|
7505
7503
|
node?: Maybe<Pick<Product, 'id' | 'title' | 'description' | 'descriptionHtml' | 'handle' | 'averageRating' | 'isStorefront' | 'isSample' | 'baseID' | 'sku' | 'vendor'> & {
|
|
7506
7504
|
medias?: Maybe<{
|
|
7507
7505
|
edges: Array<Pick<MediaEdge, 'cursor'> & {
|
|
7508
|
-
node?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7506
|
+
node?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7509
7507
|
}>;
|
|
7510
7508
|
pageInfo?: Maybe<Pick<PageInfo, 'endCursor' | 'hasNextPage'>>;
|
|
7511
7509
|
}>;
|
|
@@ -7513,7 +7511,7 @@ type CollectionDetailFilterQueryResponse = {
|
|
|
7513
7511
|
edges: Array<Pick<ProductVariantEdge, 'cursor'> & {
|
|
7514
7512
|
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
7513
|
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value' | 'optionType'>>;
|
|
7516
|
-
media?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7514
|
+
media?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7517
7515
|
}>;
|
|
7518
7516
|
}>;
|
|
7519
7517
|
pageInfo?: Maybe<Pick<PageInfo, 'hasNextPage' | 'endCursor'>>;
|
|
@@ -7521,7 +7519,7 @@ type CollectionDetailFilterQueryResponse = {
|
|
|
7521
7519
|
options?: Maybe<Array<Pick<ProductOption, 'id' | 'name' | 'optionType'> & {
|
|
7522
7520
|
values: Array<Pick<ProductOptionValue, 'id' | 'label' | 'isDefault' | 'baseID'>>;
|
|
7523
7521
|
}>>;
|
|
7524
|
-
featuredImage?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7522
|
+
featuredImage?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7525
7523
|
}>;
|
|
7526
7524
|
}>;
|
|
7527
7525
|
pageInfo?: Maybe<Pick<PageInfo, 'endCursor' | 'hasNextPage'>>;
|
|
@@ -7550,7 +7548,7 @@ type CollectionQueryResponse = {
|
|
|
7550
7548
|
node?: Maybe<Pick<Product, 'id' | 'title' | 'description' | 'descriptionHtml' | 'handle' | 'averageRating' | 'isStorefront' | 'isSample' | 'baseID' | 'sku' | 'vendor'> & {
|
|
7551
7549
|
medias?: Maybe<{
|
|
7552
7550
|
edges: Array<Pick<MediaEdge, 'cursor'> & {
|
|
7553
|
-
node?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7551
|
+
node?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7554
7552
|
}>;
|
|
7555
7553
|
pageInfo?: Maybe<Pick<PageInfo, 'endCursor' | 'hasNextPage'>>;
|
|
7556
7554
|
}>;
|
|
@@ -7558,7 +7556,7 @@ type CollectionQueryResponse = {
|
|
|
7558
7556
|
edges: Array<Pick<ProductVariantEdge, 'cursor'> & {
|
|
7559
7557
|
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
7558
|
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value' | 'optionType'>>;
|
|
7561
|
-
media?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7559
|
+
media?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7562
7560
|
}>;
|
|
7563
7561
|
}>;
|
|
7564
7562
|
pageInfo?: Maybe<Pick<PageInfo, 'hasNextPage' | 'endCursor'>>;
|
|
@@ -7566,7 +7564,7 @@ type CollectionQueryResponse = {
|
|
|
7566
7564
|
options?: Maybe<Array<Pick<ProductOption, 'id' | 'name' | 'optionType'> & {
|
|
7567
7565
|
values: Array<Pick<ProductOptionValue, 'id' | 'label' | 'isDefault' | 'baseID'>>;
|
|
7568
7566
|
}>>;
|
|
7569
|
-
featuredImage?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7567
|
+
featuredImage?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7570
7568
|
}>;
|
|
7571
7569
|
}>;
|
|
7572
7570
|
pageInfo?: Maybe<Pick<PageInfo, 'endCursor' | 'hasNextPage' | 'hasPreviousPage' | 'startCursor'>>;
|
|
@@ -7634,7 +7632,7 @@ type ProductsQueryResponse = {
|
|
|
7634
7632
|
node?: Maybe<Pick<Product, 'id' | 'title' | 'description' | 'descriptionHtml' | 'handle' | 'averageRating' | 'isStorefront' | 'isSample' | 'baseID' | 'sku' | 'vendor'> & {
|
|
7635
7633
|
medias?: Maybe<{
|
|
7636
7634
|
edges: Array<Pick<MediaEdge, 'cursor'> & {
|
|
7637
|
-
node?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7635
|
+
node?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7638
7636
|
}>;
|
|
7639
7637
|
pageInfo?: Maybe<Pick<PageInfo, 'endCursor' | 'hasNextPage'>>;
|
|
7640
7638
|
}>;
|
|
@@ -7642,7 +7640,7 @@ type ProductsQueryResponse = {
|
|
|
7642
7640
|
edges: Array<Pick<ProductVariantEdge, 'cursor'> & {
|
|
7643
7641
|
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
7642
|
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value' | 'optionType'>>;
|
|
7645
|
-
media?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7643
|
+
media?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7646
7644
|
}>;
|
|
7647
7645
|
}>;
|
|
7648
7646
|
pageInfo?: Maybe<Pick<PageInfo, 'hasNextPage' | 'endCursor'>>;
|
|
@@ -7650,7 +7648,7 @@ type ProductsQueryResponse = {
|
|
|
7650
7648
|
options?: Maybe<Array<Pick<ProductOption, 'id' | 'name' | 'optionType'> & {
|
|
7651
7649
|
values: Array<Pick<ProductOptionValue, 'id' | 'label' | 'isDefault' | 'baseID'>>;
|
|
7652
7650
|
}>>;
|
|
7653
|
-
featuredImage?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7651
|
+
featuredImage?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7654
7652
|
}>;
|
|
7655
7653
|
}>;
|
|
7656
7654
|
pageInfo?: Maybe<Pick<PageInfo, 'endCursor' | 'hasNextPage'>>;
|
|
@@ -7684,7 +7682,7 @@ declare const PreviewPageDocument: string;
|
|
|
7684
7682
|
|
|
7685
7683
|
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
7684
|
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value' | 'optionType'>>;
|
|
7687
|
-
media?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7685
|
+
media?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7688
7686
|
};
|
|
7689
7687
|
|
|
7690
7688
|
type BorderStyle = StateProp<Border> | ResponsiveStateProp<Border>;
|
|
@@ -9275,7 +9273,7 @@ declare const composeTypographyStyle: (typo?: TypographySettingV2, typography?:
|
|
|
9275
9273
|
vectorEffect?: csstype.Property.VectorEffect | undefined;
|
|
9276
9274
|
};
|
|
9277
9275
|
|
|
9278
|
-
declare const getCornerCSSFromGlobal: (corner
|
|
9276
|
+
declare const getCornerCSSFromGlobal: (corner: CornerRadius) => React.CSSProperties;
|
|
9279
9277
|
declare const getRadiusCSSFromGlobal: (state: StateType, key?: RoundedSize, device?: NameDevices) => React.CSSProperties;
|
|
9280
9278
|
declare const getCustomRadius: (state: StateType, radius?: CornerRadius, device?: NameDevices) => React.CSSProperties;
|
|
9281
9279
|
declare const composeRadius: (value?: StateProp<CornerRadius> | ResponsiveStateProp<CornerRadius>) => React.CSSProperties;
|
|
@@ -9394,7 +9392,7 @@ type RequiredCursorEdge<T> = {
|
|
|
9394
9392
|
};
|
|
9395
9393
|
declare const fetchVariants: (fetcher: FetchFunc, { id, isSample, isStorefront }: FetchProductParams) => Promise<RequiredCursorEdge<VariantSelectFragment>[]>;
|
|
9396
9394
|
declare const fetchMedias: (fetcher: FetchFunc, { id, isSample, isStorefront }: FetchProductParams) => Promise<(Pick<MediaEdge, "cursor"> & {
|
|
9397
|
-
node?: Maybe<Pick<Media, "width" | "height" | "id" | "contentType" | "
|
|
9395
|
+
node?: Maybe<Pick<Media, "width" | "height" | "id" | "contentType" | "src" | "alt">>;
|
|
9398
9396
|
})[]>;
|
|
9399
9397
|
|
|
9400
9398
|
type FetchProductsParams = {
|
|
@@ -9591,11 +9589,11 @@ declare const useSelectedOption: () => {
|
|
|
9591
9589
|
};
|
|
9592
9590
|
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
9591
|
selectedOptions: Pick<SelectedOption, "value" | "name" | "optionType">[];
|
|
9594
|
-
media?: Maybe<Pick<Media, "width" | "height" | "id" | "contentType" | "
|
|
9592
|
+
media?: Maybe<Pick<Media, "width" | "height" | "id" | "contentType" | "src" | "alt">>;
|
|
9595
9593
|
}>[];
|
|
9596
9594
|
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
9595
|
selectedOptions: Pick<SelectedOption, "value" | "name" | "optionType">[];
|
|
9598
|
-
media?: Maybe<Pick<Media, "width" | "height" | "id" | "contentType" | "
|
|
9596
|
+
media?: Maybe<Pick<Media, "width" | "height" | "id" | "contentType" | "src" | "alt">>;
|
|
9599
9597
|
}>;
|
|
9600
9598
|
declare const useCurrentVariant: () => Maybe<VariantSelectFragment>;
|
|
9601
9599
|
declare const useCurrentVariantInStock: () => boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/core",
|
|
3
|
-
"version": "1.14.0
|
|
3
|
+
"version": "1.14.0",
|
|
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",
|