@gem-sdk/core 1.14.0-next.91 → 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 +27 -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;
|
|
@@ -911,6 +909,7 @@ type ControlUI = {
|
|
|
911
909
|
state?: StateType;
|
|
912
910
|
};
|
|
913
911
|
options?: {
|
|
912
|
+
styleWrapper?: React.CSSProperties;
|
|
914
913
|
styleControl?: React.CSSProperties;
|
|
915
914
|
styleLabel?: React.CSSProperties;
|
|
916
915
|
labelPosition?: 'start' | 'end';
|
|
@@ -7164,7 +7163,7 @@ type Border = {
|
|
|
7164
7163
|
type BorderTypeName = 'none' | 'style-1' | 'style-2' | 'style-3';
|
|
7165
7164
|
type BorderStyle$1 = 'none' | 'solid' | 'dotted' | 'dashed';
|
|
7166
7165
|
type BorderPosition = 'top' | 'left' | 'right' | 'bottom' | 'all';
|
|
7167
|
-
type SwatchesOptionType = 'radio_buttons' | 'dropdown' | 'color' | 'image' | 'rectangle_list' |
|
|
7166
|
+
type SwatchesOptionType = 'radio_buttons' | 'dropdown' | 'color' | 'image' | 'rectangle_list' | string;
|
|
7168
7167
|
declare const OptionNormalStyle: string[];
|
|
7169
7168
|
declare const OptionSpecialStyle: string[];
|
|
7170
7169
|
type SwatchesOptionValue = {
|
|
@@ -7261,7 +7260,7 @@ type CollectionProductSelectFragment = Pick<Collection, 'id' | 'createdAt' | 'up
|
|
|
7261
7260
|
node?: Maybe<Pick<Product, 'id' | 'title' | 'description' | 'descriptionHtml' | 'handle' | 'averageRating' | 'isStorefront' | 'isSample' | 'baseID' | 'sku' | 'vendor'> & {
|
|
7262
7261
|
medias?: Maybe<{
|
|
7263
7262
|
edges: Array<Pick<MediaEdge, 'cursor'> & {
|
|
7264
|
-
node?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7263
|
+
node?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7265
7264
|
}>;
|
|
7266
7265
|
pageInfo?: Maybe<Pick<PageInfo, 'endCursor' | 'hasNextPage'>>;
|
|
7267
7266
|
}>;
|
|
@@ -7269,7 +7268,7 @@ type CollectionProductSelectFragment = Pick<Collection, 'id' | 'createdAt' | 'up
|
|
|
7269
7268
|
edges: Array<Pick<ProductVariantEdge, 'cursor'> & {
|
|
7270
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'> & {
|
|
7271
7270
|
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value' | 'optionType'>>;
|
|
7272
|
-
media?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7271
|
+
media?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7273
7272
|
}>;
|
|
7274
7273
|
}>;
|
|
7275
7274
|
pageInfo?: Maybe<Pick<PageInfo, 'hasNextPage' | 'endCursor'>>;
|
|
@@ -7277,7 +7276,7 @@ type CollectionProductSelectFragment = Pick<Collection, 'id' | 'createdAt' | 'up
|
|
|
7277
7276
|
options?: Maybe<Array<Pick<ProductOption, 'id' | 'name' | 'optionType'> & {
|
|
7278
7277
|
values: Array<Pick<ProductOptionValue, 'id' | 'label' | 'isDefault' | 'baseID'>>;
|
|
7279
7278
|
}>>;
|
|
7280
|
-
featuredImage?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7279
|
+
featuredImage?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7281
7280
|
}>;
|
|
7282
7281
|
}>;
|
|
7283
7282
|
pageInfo?: Maybe<Pick<PageInfo, 'endCursor' | 'hasNextPage'>>;
|
|
@@ -7286,7 +7285,7 @@ type CollectionProductSelectFragment = Pick<Collection, 'id' | 'createdAt' | 'up
|
|
|
7286
7285
|
};
|
|
7287
7286
|
|
|
7288
7287
|
type ProductQuickSelectFragment = Pick<Product, 'id' | 'title' | 'handle' | 'averageRating' | 'baseID' | 'description' | 'sku' | 'vendor'> & {
|
|
7289
|
-
featuredImage?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7288
|
+
featuredImage?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7290
7289
|
options?: Maybe<Array<Pick<ProductOption, 'id' | 'name' | 'optionType'> & {
|
|
7291
7290
|
values: Array<Pick<ProductOptionValue, 'id' | 'label' | 'isDefault' | 'baseID'>>;
|
|
7292
7291
|
}>>;
|
|
@@ -7294,7 +7293,7 @@ type ProductQuickSelectFragment = Pick<Product, 'id' | 'title' | 'handle' | 'ave
|
|
|
7294
7293
|
edges: Array<{
|
|
7295
7294
|
node?: Maybe<Pick<ProductVariant, 'id' | 'title' | 'barcode' | 'costPrice' | 'height' | 'inventoryQuantity' | 'inventoryStatus' | 'length' | 'price' | 'salePrice' | 'sku' | 'baseID' | 'weight' | 'width'> & {
|
|
7296
7295
|
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value' | 'optionType'>>;
|
|
7297
|
-
media?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7296
|
+
media?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7298
7297
|
}>;
|
|
7299
7298
|
}>;
|
|
7300
7299
|
}>;
|
|
@@ -7333,7 +7332,7 @@ declare const useProductListStore: <U>(selector: (state: ExtractState<StoreApi<P
|
|
|
7333
7332
|
type ProductSelectFragment = Pick<Product, 'id' | 'title' | 'description' | 'descriptionHtml' | 'handle' | 'averageRating' | 'isStorefront' | 'isSample' | 'baseID' | 'sku' | 'vendor'> & {
|
|
7334
7333
|
medias?: Maybe<{
|
|
7335
7334
|
edges: Array<Pick<MediaEdge, 'cursor'> & {
|
|
7336
|
-
node?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7335
|
+
node?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7337
7336
|
}>;
|
|
7338
7337
|
pageInfo?: Maybe<Pick<PageInfo, 'endCursor' | 'hasNextPage'>>;
|
|
7339
7338
|
}>;
|
|
@@ -7341,7 +7340,7 @@ type ProductSelectFragment = Pick<Product, 'id' | 'title' | 'description' | 'des
|
|
|
7341
7340
|
edges: Array<Pick<ProductVariantEdge, 'cursor'> & {
|
|
7342
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'> & {
|
|
7343
7342
|
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value' | 'optionType'>>;
|
|
7344
|
-
media?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7343
|
+
media?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7345
7344
|
}>;
|
|
7346
7345
|
}>;
|
|
7347
7346
|
pageInfo?: Maybe<Pick<PageInfo, 'hasNextPage' | 'endCursor'>>;
|
|
@@ -7349,10 +7348,10 @@ type ProductSelectFragment = Pick<Product, 'id' | 'title' | 'description' | 'des
|
|
|
7349
7348
|
options?: Maybe<Array<Pick<ProductOption, 'id' | 'name' | 'optionType'> & {
|
|
7350
7349
|
values: Array<Pick<ProductOptionValue, 'id' | 'label' | 'isDefault' | 'baseID'>>;
|
|
7351
7350
|
}>>;
|
|
7352
|
-
featuredImage?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7351
|
+
featuredImage?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7353
7352
|
};
|
|
7354
7353
|
|
|
7355
|
-
type MediaSelectFragment = Pick<Media, 'id' | 'contentType' | '
|
|
7354
|
+
type MediaSelectFragment = Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>;
|
|
7356
7355
|
|
|
7357
7356
|
type AttributeProp = {
|
|
7358
7357
|
key: string;
|
|
@@ -7477,10 +7476,10 @@ declare const useModalStore: <U>(selector: (state: ExtractState<StoreApi<ModalCo
|
|
|
7477
7476
|
|
|
7478
7477
|
type PageViewUpMutationVariables = Exact<{
|
|
7479
7478
|
pageHandle: Scalars['String'];
|
|
7480
|
-
userAgent
|
|
7479
|
+
userAgent: Scalars['String'];
|
|
7481
7480
|
}>;
|
|
7482
7481
|
type PageViewUpMutationResponse = Pick<Mutation, 'pageViewUp'>;
|
|
7483
|
-
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 ";
|
|
7484
7483
|
|
|
7485
7484
|
type CollectionDetailFilterQueryVariables = Exact<{
|
|
7486
7485
|
firstProduct?: InputMaybe<Scalars['Int']>;
|
|
@@ -7504,7 +7503,7 @@ type CollectionDetailFilterQueryResponse = {
|
|
|
7504
7503
|
node?: Maybe<Pick<Product, 'id' | 'title' | 'description' | 'descriptionHtml' | 'handle' | 'averageRating' | 'isStorefront' | 'isSample' | 'baseID' | 'sku' | 'vendor'> & {
|
|
7505
7504
|
medias?: Maybe<{
|
|
7506
7505
|
edges: Array<Pick<MediaEdge, 'cursor'> & {
|
|
7507
|
-
node?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7506
|
+
node?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7508
7507
|
}>;
|
|
7509
7508
|
pageInfo?: Maybe<Pick<PageInfo, 'endCursor' | 'hasNextPage'>>;
|
|
7510
7509
|
}>;
|
|
@@ -7512,7 +7511,7 @@ type CollectionDetailFilterQueryResponse = {
|
|
|
7512
7511
|
edges: Array<Pick<ProductVariantEdge, 'cursor'> & {
|
|
7513
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'> & {
|
|
7514
7513
|
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value' | 'optionType'>>;
|
|
7515
|
-
media?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7514
|
+
media?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7516
7515
|
}>;
|
|
7517
7516
|
}>;
|
|
7518
7517
|
pageInfo?: Maybe<Pick<PageInfo, 'hasNextPage' | 'endCursor'>>;
|
|
@@ -7520,7 +7519,7 @@ type CollectionDetailFilterQueryResponse = {
|
|
|
7520
7519
|
options?: Maybe<Array<Pick<ProductOption, 'id' | 'name' | 'optionType'> & {
|
|
7521
7520
|
values: Array<Pick<ProductOptionValue, 'id' | 'label' | 'isDefault' | 'baseID'>>;
|
|
7522
7521
|
}>>;
|
|
7523
|
-
featuredImage?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7522
|
+
featuredImage?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7524
7523
|
}>;
|
|
7525
7524
|
}>;
|
|
7526
7525
|
pageInfo?: Maybe<Pick<PageInfo, 'endCursor' | 'hasNextPage'>>;
|
|
@@ -7549,7 +7548,7 @@ type CollectionQueryResponse = {
|
|
|
7549
7548
|
node?: Maybe<Pick<Product, 'id' | 'title' | 'description' | 'descriptionHtml' | 'handle' | 'averageRating' | 'isStorefront' | 'isSample' | 'baseID' | 'sku' | 'vendor'> & {
|
|
7550
7549
|
medias?: Maybe<{
|
|
7551
7550
|
edges: Array<Pick<MediaEdge, 'cursor'> & {
|
|
7552
|
-
node?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7551
|
+
node?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7553
7552
|
}>;
|
|
7554
7553
|
pageInfo?: Maybe<Pick<PageInfo, 'endCursor' | 'hasNextPage'>>;
|
|
7555
7554
|
}>;
|
|
@@ -7557,7 +7556,7 @@ type CollectionQueryResponse = {
|
|
|
7557
7556
|
edges: Array<Pick<ProductVariantEdge, 'cursor'> & {
|
|
7558
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'> & {
|
|
7559
7558
|
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value' | 'optionType'>>;
|
|
7560
|
-
media?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7559
|
+
media?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7561
7560
|
}>;
|
|
7562
7561
|
}>;
|
|
7563
7562
|
pageInfo?: Maybe<Pick<PageInfo, 'hasNextPage' | 'endCursor'>>;
|
|
@@ -7565,7 +7564,7 @@ type CollectionQueryResponse = {
|
|
|
7565
7564
|
options?: Maybe<Array<Pick<ProductOption, 'id' | 'name' | 'optionType'> & {
|
|
7566
7565
|
values: Array<Pick<ProductOptionValue, 'id' | 'label' | 'isDefault' | 'baseID'>>;
|
|
7567
7566
|
}>>;
|
|
7568
|
-
featuredImage?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7567
|
+
featuredImage?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7569
7568
|
}>;
|
|
7570
7569
|
}>;
|
|
7571
7570
|
pageInfo?: Maybe<Pick<PageInfo, 'endCursor' | 'hasNextPage' | 'hasPreviousPage' | 'startCursor'>>;
|
|
@@ -7633,7 +7632,7 @@ type ProductsQueryResponse = {
|
|
|
7633
7632
|
node?: Maybe<Pick<Product, 'id' | 'title' | 'description' | 'descriptionHtml' | 'handle' | 'averageRating' | 'isStorefront' | 'isSample' | 'baseID' | 'sku' | 'vendor'> & {
|
|
7634
7633
|
medias?: Maybe<{
|
|
7635
7634
|
edges: Array<Pick<MediaEdge, 'cursor'> & {
|
|
7636
|
-
node?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7635
|
+
node?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7637
7636
|
}>;
|
|
7638
7637
|
pageInfo?: Maybe<Pick<PageInfo, 'endCursor' | 'hasNextPage'>>;
|
|
7639
7638
|
}>;
|
|
@@ -7641,7 +7640,7 @@ type ProductsQueryResponse = {
|
|
|
7641
7640
|
edges: Array<Pick<ProductVariantEdge, 'cursor'> & {
|
|
7642
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'> & {
|
|
7643
7642
|
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value' | 'optionType'>>;
|
|
7644
|
-
media?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7643
|
+
media?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7645
7644
|
}>;
|
|
7646
7645
|
}>;
|
|
7647
7646
|
pageInfo?: Maybe<Pick<PageInfo, 'hasNextPage' | 'endCursor'>>;
|
|
@@ -7649,7 +7648,7 @@ type ProductsQueryResponse = {
|
|
|
7649
7648
|
options?: Maybe<Array<Pick<ProductOption, 'id' | 'name' | 'optionType'> & {
|
|
7650
7649
|
values: Array<Pick<ProductOptionValue, 'id' | 'label' | 'isDefault' | 'baseID'>>;
|
|
7651
7650
|
}>>;
|
|
7652
|
-
featuredImage?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7651
|
+
featuredImage?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7653
7652
|
}>;
|
|
7654
7653
|
}>;
|
|
7655
7654
|
pageInfo?: Maybe<Pick<PageInfo, 'endCursor' | 'hasNextPage'>>;
|
|
@@ -7683,7 +7682,7 @@ declare const PreviewPageDocument: string;
|
|
|
7683
7682
|
|
|
7684
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'> & {
|
|
7685
7684
|
selectedOptions: Array<Pick<SelectedOption, 'name' | 'value' | 'optionType'>>;
|
|
7686
|
-
media?: Maybe<Pick<Media, 'id' | 'contentType' | '
|
|
7685
|
+
media?: Maybe<Pick<Media, 'id' | 'contentType' | 'src' | 'width' | 'height' | 'alt'>>;
|
|
7687
7686
|
};
|
|
7688
7687
|
|
|
7689
7688
|
type BorderStyle = StateProp<Border> | ResponsiveStateProp<Border>;
|
|
@@ -9274,7 +9273,7 @@ declare const composeTypographyStyle: (typo?: TypographySettingV2, typography?:
|
|
|
9274
9273
|
vectorEffect?: csstype.Property.VectorEffect | undefined;
|
|
9275
9274
|
};
|
|
9276
9275
|
|
|
9277
|
-
declare const getCornerCSSFromGlobal: (corner
|
|
9276
|
+
declare const getCornerCSSFromGlobal: (corner: CornerRadius) => React.CSSProperties;
|
|
9278
9277
|
declare const getRadiusCSSFromGlobal: (state: StateType, key?: RoundedSize, device?: NameDevices) => React.CSSProperties;
|
|
9279
9278
|
declare const getCustomRadius: (state: StateType, radius?: CornerRadius, device?: NameDevices) => React.CSSProperties;
|
|
9280
9279
|
declare const composeRadius: (value?: StateProp<CornerRadius> | ResponsiveStateProp<CornerRadius>) => React.CSSProperties;
|
|
@@ -9393,7 +9392,7 @@ type RequiredCursorEdge<T> = {
|
|
|
9393
9392
|
};
|
|
9394
9393
|
declare const fetchVariants: (fetcher: FetchFunc, { id, isSample, isStorefront }: FetchProductParams) => Promise<RequiredCursorEdge<VariantSelectFragment>[]>;
|
|
9395
9394
|
declare const fetchMedias: (fetcher: FetchFunc, { id, isSample, isStorefront }: FetchProductParams) => Promise<(Pick<MediaEdge, "cursor"> & {
|
|
9396
|
-
node?: Maybe<Pick<Media, "width" | "height" | "id" | "contentType" | "
|
|
9395
|
+
node?: Maybe<Pick<Media, "width" | "height" | "id" | "contentType" | "src" | "alt">>;
|
|
9397
9396
|
})[]>;
|
|
9398
9397
|
|
|
9399
9398
|
type FetchProductsParams = {
|
|
@@ -9590,11 +9589,11 @@ declare const useSelectedOption: () => {
|
|
|
9590
9589
|
};
|
|
9591
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"> & {
|
|
9592
9591
|
selectedOptions: Pick<SelectedOption, "value" | "name" | "optionType">[];
|
|
9593
|
-
media?: Maybe<Pick<Media, "width" | "height" | "id" | "contentType" | "
|
|
9592
|
+
media?: Maybe<Pick<Media, "width" | "height" | "id" | "contentType" | "src" | "alt">>;
|
|
9594
9593
|
}>[];
|
|
9595
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"> & {
|
|
9596
9595
|
selectedOptions: Pick<SelectedOption, "value" | "name" | "optionType">[];
|
|
9597
|
-
media?: Maybe<Pick<Media, "width" | "height" | "id" | "contentType" | "
|
|
9596
|
+
media?: Maybe<Pick<Media, "width" | "height" | "id" | "contentType" | "src" | "alt">>;
|
|
9598
9597
|
}>;
|
|
9599
9598
|
declare const useCurrentVariant: () => Maybe<VariantSelectFragment>;
|
|
9600
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",
|