@graphcommerce/magento-cart 3.8.12 → 3.8.14

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.
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ import * as Types from '@graphcommerce/graphql';
3
+
4
+ export type CartItemCountChangedFragment = { __typename: 'Cart', id: string, total_quantity: number, items?: Array<{ __typename: 'BundleCartItem', uid: string, quantity: number } | { __typename: 'ConfigurableCartItem', uid: string, quantity: number } | { __typename: 'DownloadableCartItem', uid: string, quantity: number } | { __typename: 'SimpleCartItem', uid: string, quantity: number } | { __typename: 'VirtualCartItem', uid: string, quantity: number } | null | undefined> | null | undefined, prices?: { __typename: 'CartPrices', grand_total?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined, applied_taxes?: Array<{ label: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined, discounts?: Array<{ label: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined, subtotal_excluding_tax?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined, subtotal_including_tax?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined, subtotal_with_discount_excluding_tax?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined } | null | undefined, shipping_addresses: Array<{ selected_shipping_method?: { carrier_code: string, method_code: string, method_title: string, carrier_title: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined, available_shipping_methods?: Array<{ carrier_code: string, method_code?: string | null | undefined, price_incl_tax: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, price_excl_tax: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined } | null | undefined> };
package/CHANGELOG.md CHANGED
@@ -3,6 +3,18 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.8.13](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart@3.8.12...@graphcommerce/magento-cart@3.8.13) (2021-12-17)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * darkMode fixes ([7d33d45](https://github.com/ho-nl/m2-pwa/commit/7d33d452ec801632565839b2fdfef0bc4959c14a))
12
+ * lighten ([8aa1d8e](https://github.com/ho-nl/m2-pwa/commit/8aa1d8e61ae122f63f2f8d164566bde9282e3354))
13
+
14
+
15
+
16
+
17
+
6
18
  ## [3.8.12](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart@3.8.11...@graphcommerce/magento-cart@3.8.12) (2021-12-17)
7
19
 
8
20
 
@@ -0,0 +1,8 @@
1
+ /* eslint-disable */
2
+ import * as Types from '@graphcommerce/graphql';
3
+
4
+ export type CartAddress_BillingCartAddress_Fragment = { __typename: 'BillingCartAddress', firstname: string, lastname: string, city: string, company?: string | null | undefined, postcode?: string | null | undefined, street: Array<string | null | undefined>, telephone: string, country: { code: string, label: string }, region?: { code?: string | null | undefined, label?: string | null | undefined, region_id?: number | null | undefined } | null | undefined };
5
+
6
+ export type CartAddress_ShippingCartAddress_Fragment = { __typename: 'ShippingCartAddress', firstname: string, lastname: string, city: string, company?: string | null | undefined, postcode?: string | null | undefined, street: Array<string | null | undefined>, telephone: string, country: { code: string, label: string }, region?: { code?: string | null | undefined, label?: string | null | undefined, region_id?: number | null | undefined } | null | undefined };
7
+
8
+ export type CartAddressFragment = CartAddress_BillingCartAddress_Fragment | CartAddress_ShippingCartAddress_Fragment;
@@ -0,0 +1,10 @@
1
+ /* eslint-disable */
2
+ import * as Types from '@graphcommerce/graphql';
3
+
4
+ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
5
+
6
+ export const CartAgreementsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CartAgreements"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"checkoutAgreements"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"agreement_id"}},{"kind":"Field","name":{"kind":"Name","value":"checkbox_text"}},{"kind":"Field","name":{"kind":"Name","value":"content"}},{"kind":"Field","name":{"kind":"Name","value":"content_height"}},{"kind":"Field","name":{"kind":"Name","value":"is_html"}},{"kind":"Field","name":{"kind":"Name","value":"mode"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode<CartAgreementsQuery, CartAgreementsQueryVariables>;
7
+ export type CartAgreementsQueryVariables = Types.Exact<{ [key: string]: never; }>;
8
+
9
+
10
+ export type CartAgreementsQuery = { checkoutAgreements?: Array<{ agreement_id: number, checkbox_text: string, content: string, content_height?: string | null | undefined, is_html: boolean, mode: Types.CheckoutAgreementMode, name: string } | null | undefined> | null | undefined };
@@ -0,0 +1,12 @@
1
+ /* eslint-disable */
2
+ import * as Types from '@graphcommerce/graphql';
3
+
4
+ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
5
+
6
+ export const CartFabDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CartFab"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"cartId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"cart"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"cart_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"cartId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"total_quantity"}}]}}]}}]} as unknown as DocumentNode<CartFabQuery, CartFabQueryVariables>;
7
+ export type CartFabQueryVariables = Types.Exact<{
8
+ cartId: Types.Scalars['String'];
9
+ }>;
10
+
11
+
12
+ export type CartFabQuery = { cart?: { id: string, total_quantity: number } | null | undefined };
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ import * as Types from '@graphcommerce/graphql';
3
+
4
+ export type CartTotalQuantityFragment = { total_quantity: number };
@@ -0,0 +1,12 @@
1
+ /* eslint-disable */
2
+ import * as Types from '@graphcommerce/graphql';
3
+
4
+ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
5
+
6
+ export const CartItemSummaryDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CartItemSummary"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"cartId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"cart"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"cart_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"cartId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uid"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"product"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uid"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"url_key"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"thumbnail"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"url"}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"prices"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"discounts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}},{"kind":"Field","name":{"kind":"Name","value":"price"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"row_total"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"row_total_including_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"total_item_discount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BundleCartItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"bundle_options"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uid"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"values"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uid"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}},{"kind":"Field","name":{"kind":"Name","value":"price"}}]}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ConfigurableCartItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurable_options"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurable_product_option_uid"}},{"kind":"Field","name":{"kind":"Name","value":"configurable_product_option_value_uid"}},{"kind":"Field","name":{"kind":"Name","value":"option_label"}},{"kind":"Field","name":{"kind":"Name","value":"value_label"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"DownloadableCartItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"links"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uid"}},{"kind":"Field","name":{"kind":"Name","value":"price"}},{"kind":"Field","name":{"kind":"Name","value":"sample_url"}},{"kind":"Field","name":{"kind":"Name","value":"title"}}]}},{"kind":"Field","name":{"kind":"Name","value":"samples"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sample_url"}},{"kind":"Field","name":{"kind":"Name","value":"sort_order"}},{"kind":"Field","name":{"kind":"Name","value":"title"}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"shipping_addresses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"selected_shipping_method"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"carrier_code"}},{"kind":"Field","name":{"kind":"Name","value":"method_code"}},{"kind":"Field","name":{"kind":"Name","value":"method_title"}},{"kind":"Field","name":{"kind":"Name","value":"carrier_title"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"available_shipping_methods"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"carrier_code"}},{"kind":"Field","name":{"kind":"Name","value":"method_code"}},{"kind":"Field","name":{"kind":"Name","value":"price_incl_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"price_excl_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"prices"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"applied_taxes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}},{"kind":"Field","name":{"kind":"Name","value":"discounts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}},{"kind":"Field","name":{"kind":"Name","value":"grand_total"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"subtotal_excluding_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"subtotal_including_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"subtotal_with_discount_excluding_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}}]}}]}}]}}]} as unknown as DocumentNode<CartItemSummaryQuery, CartItemSummaryQueryVariables>;
7
+ export type CartItemSummaryQueryVariables = Types.Exact<{
8
+ cartId: Types.Scalars['String'];
9
+ }>;
10
+
11
+
12
+ export type CartItemSummaryQuery = { cart?: { id: string, items?: Array<{ __typename: 'BundleCartItem', uid: string, quantity: number, bundle_options: Array<{ uid: string, label: string, type: string, values: Array<{ uid: string, label: string, quantity: number, price: number } | null | undefined> } | null | undefined>, product: { __typename: 'BundleProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'ConfigurableProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'DownloadableProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'GroupedProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'SimpleProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'VirtualProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined }, prices?: { discounts?: Array<{ label: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined, price: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, row_total: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, row_total_including_tax: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, total_item_discount?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined } | null | undefined } | { __typename: 'ConfigurableCartItem', uid: string, quantity: number, configurable_options: Array<{ configurable_product_option_uid: string, configurable_product_option_value_uid: string, option_label: string, value_label: string } | null | undefined>, product: { __typename: 'BundleProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'ConfigurableProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'DownloadableProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'GroupedProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'SimpleProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'VirtualProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined }, prices?: { discounts?: Array<{ label: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined, price: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, row_total: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, row_total_including_tax: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, total_item_discount?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined } | null | undefined } | { __typename: 'DownloadableCartItem', uid: string, quantity: number, links?: Array<{ uid: string, price?: number | null | undefined, sample_url?: string | null | undefined, title?: string | null | undefined } | null | undefined> | null | undefined, samples?: Array<{ sample_url?: string | null | undefined, sort_order?: number | null | undefined, title?: string | null | undefined } | null | undefined> | null | undefined, product: { __typename: 'BundleProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'ConfigurableProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'DownloadableProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'GroupedProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'SimpleProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'VirtualProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined }, prices?: { discounts?: Array<{ label: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined, price: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, row_total: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, row_total_including_tax: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, total_item_discount?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined } | null | undefined } | { __typename: 'SimpleCartItem', uid: string, quantity: number, product: { __typename: 'BundleProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'ConfigurableProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'DownloadableProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'GroupedProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'SimpleProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'VirtualProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined }, prices?: { discounts?: Array<{ label: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined, price: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, row_total: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, row_total_including_tax: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, total_item_discount?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined } | null | undefined } | { __typename: 'VirtualCartItem', uid: string, quantity: number, product: { __typename: 'BundleProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'ConfigurableProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'DownloadableProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'GroupedProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'SimpleProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined } | { __typename: 'VirtualProduct', uid: string, url_key?: string | null | undefined, name?: string | null | undefined, thumbnail?: { url?: string | null | undefined, label?: string | null | undefined } | null | undefined }, prices?: { discounts?: Array<{ label: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined, price: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, row_total: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, row_total_including_tax: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, total_item_discount?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined } | null | undefined } | null | undefined> | null | undefined, shipping_addresses: Array<{ selected_shipping_method?: { carrier_code: string, method_code: string, method_title: string, carrier_title: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined, available_shipping_methods?: Array<{ carrier_code: string, method_code?: string | null | undefined, price_incl_tax: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, price_excl_tax: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined } | null | undefined>, prices?: { __typename: 'CartPrices', applied_taxes?: Array<{ label: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined, discounts?: Array<{ label: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined, grand_total?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined, subtotal_excluding_tax?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined, subtotal_including_tax?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined, subtotal_with_discount_excluding_tax?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined } | null | undefined } | null | undefined };
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ import * as Types from '@graphcommerce/graphql';
3
+
4
+ export type CartStartCheckoutFragment = { prices?: { grand_total?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined } | null | undefined };
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ import * as Types from '@graphcommerce/graphql';
3
+
4
+ export type CartSummaryFragment = { email?: string | null | undefined, id: string, shipping_addresses: Array<{ __typename: 'ShippingCartAddress', firstname: string, lastname: string, city: string, company?: string | null | undefined, postcode?: string | null | undefined, street: Array<string | null | undefined>, telephone: string, selected_shipping_method?: { carrier_code: string, method_code: string, carrier_title: string, method_title: string } | null | undefined, available_shipping_methods?: Array<{ available: boolean, carrier_code: string, carrier_title: string, error_message?: string | null | undefined, method_code?: string | null | undefined, method_title?: string | null | undefined, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined, country: { code: string, label: string }, region?: { code?: string | null | undefined, label?: string | null | undefined, region_id?: number | null | undefined } | null | undefined } | null | undefined>, billing_address?: { __typename: 'BillingCartAddress', firstname: string, lastname: string, city: string, company?: string | null | undefined, postcode?: string | null | undefined, street: Array<string | null | undefined>, telephone: string, country: { code: string, label: string }, region?: { code?: string | null | undefined, label?: string | null | undefined, region_id?: number | null | undefined } | null | undefined } | null | undefined };
@@ -0,0 +1,12 @@
1
+ /* eslint-disable */
2
+ import * as Types from '@graphcommerce/graphql';
3
+
4
+ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
5
+
6
+ export const GetCartSummaryDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetCartSummary"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"cartId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"cart"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"cart_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"cartId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"shipping_addresses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"selected_shipping_method"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"carrier_code"}},{"kind":"Field","name":{"kind":"Name","value":"method_code"}},{"kind":"Field","name":{"kind":"Name","value":"carrier_title"}},{"kind":"Field","name":{"kind":"Name","value":"method_title"}}]}},{"kind":"Field","name":{"kind":"Name","value":"available_shipping_methods"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"available"}},{"kind":"Field","name":{"kind":"Name","value":"carrier_code"}},{"kind":"Field","name":{"kind":"Name","value":"carrier_title"}},{"kind":"Field","name":{"kind":"Name","value":"error_message"}},{"kind":"Field","name":{"kind":"Name","value":"method_code"}},{"kind":"Field","name":{"kind":"Name","value":"method_title"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CartAddressInterface"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"firstname"}},{"kind":"Field","name":{"kind":"Name","value":"lastname"}},{"kind":"Field","name":{"kind":"Name","value":"city"}},{"kind":"Field","name":{"kind":"Name","value":"company"}},{"kind":"Field","name":{"kind":"Name","value":"country"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}},{"kind":"Field","name":{"kind":"Name","value":"postcode"}},{"kind":"Field","name":{"kind":"Name","value":"region"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"region_id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"street"}},{"kind":"Field","name":{"kind":"Name","value":"telephone"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"billing_address"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CartAddressInterface"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"firstname"}},{"kind":"Field","name":{"kind":"Name","value":"lastname"}},{"kind":"Field","name":{"kind":"Name","value":"city"}},{"kind":"Field","name":{"kind":"Name","value":"company"}},{"kind":"Field","name":{"kind":"Name","value":"country"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}},{"kind":"Field","name":{"kind":"Name","value":"postcode"}},{"kind":"Field","name":{"kind":"Name","value":"region"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"region_id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"street"}},{"kind":"Field","name":{"kind":"Name","value":"telephone"}}]}}]}}]}}]}}]} as unknown as DocumentNode<GetCartSummaryQuery, GetCartSummaryQueryVariables>;
7
+ export type GetCartSummaryQueryVariables = Types.Exact<{
8
+ cartId: Types.Scalars['String'];
9
+ }>;
10
+
11
+
12
+ export type GetCartSummaryQuery = { cart?: { email?: string | null | undefined, id: string, shipping_addresses: Array<{ __typename: 'ShippingCartAddress', firstname: string, lastname: string, city: string, company?: string | null | undefined, postcode?: string | null | undefined, street: Array<string | null | undefined>, telephone: string, country: { code: string, label: string }, region?: { code?: string | null | undefined, label?: string | null | undefined, region_id?: number | null | undefined } | null | undefined, selected_shipping_method?: { carrier_code: string, method_code: string, carrier_title: string, method_title: string } | null | undefined, available_shipping_methods?: Array<{ available: boolean, carrier_code: string, carrier_title: string, error_message?: string | null | undefined, method_code?: string | null | undefined, method_title?: string | null | undefined, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined } | null | undefined>, billing_address?: { __typename: 'BillingCartAddress', firstname: string, lastname: string, city: string, company?: string | null | undefined, postcode?: string | null | undefined, street: Array<string | null | undefined>, telephone: string, country: { code: string, label: string }, region?: { code?: string | null | undefined, label?: string | null | undefined, region_id?: number | null | undefined } | null | undefined } | null | undefined } | null | undefined };
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ import * as Types from '@graphcommerce/graphql';
3
+
4
+ export type CartTotalsFragment = { shipping_addresses: Array<{ selected_shipping_method?: { carrier_code: string, method_code: string, method_title: string, carrier_title: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined, available_shipping_methods?: Array<{ carrier_code: string, method_code?: string | null | undefined, price_incl_tax: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, price_excl_tax: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined } | null | undefined>, prices?: { __typename: 'CartPrices', applied_taxes?: Array<{ label: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined, discounts?: Array<{ label: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined, grand_total?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined, subtotal_excluding_tax?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined, subtotal_including_tax?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined, subtotal_with_discount_excluding_tax?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined } | null | undefined };
@@ -1,7 +1,7 @@
1
1
  import { Money } from '@graphcommerce/magento-store'
2
2
  import { AnimatedRow, responsiveVal, UseStyles } from '@graphcommerce/next-ui'
3
3
  import { Trans } from '@lingui/macro'
4
- import { Divider, makeStyles, Theme } from '@material-ui/core'
4
+ import { Divider, lighten, makeStyles, Theme } from '@material-ui/core'
5
5
  import clsx from 'clsx'
6
6
  import { AnimatePresence } from 'framer-motion'
7
7
  import React from 'react'
@@ -12,7 +12,10 @@ const useStyles = makeStyles(
12
12
  (theme: Theme) => ({
13
13
  costsContainer: {
14
14
  borderRadius: responsiveVal(theme.shape.borderRadius * 3, theme.shape.borderRadius * 4),
15
- background: theme.palette.type === 'light' ? '#FFE10820' : theme.palette.background.paper,
15
+ background:
16
+ theme.palette.type === 'light'
17
+ ? '#FFE10820'
18
+ : lighten(theme.palette.background.default, 0.15),
16
19
  padding: `${theme.spacings.xs} ${theme.spacings.sm}`,
17
20
  },
18
21
  containerMarginTop: {
@@ -0,0 +1,12 @@
1
+ /* eslint-disable */
2
+ import * as Types from '@graphcommerce/graphql';
3
+
4
+ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
5
+
6
+ export const GetCartTotalsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetCartTotals"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"cartId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"cart"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"cart_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"cartId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"shipping_addresses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"selected_shipping_method"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"carrier_code"}},{"kind":"Field","name":{"kind":"Name","value":"method_code"}},{"kind":"Field","name":{"kind":"Name","value":"method_title"}},{"kind":"Field","name":{"kind":"Name","value":"carrier_title"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"available_shipping_methods"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"carrier_code"}},{"kind":"Field","name":{"kind":"Name","value":"method_code"}},{"kind":"Field","name":{"kind":"Name","value":"price_incl_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"price_excl_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"prices"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"applied_taxes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}},{"kind":"Field","name":{"kind":"Name","value":"discounts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}},{"kind":"Field","name":{"kind":"Name","value":"grand_total"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"subtotal_excluding_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"subtotal_including_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"subtotal_with_discount_excluding_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}}]}}]}}]}}]} as unknown as DocumentNode<GetCartTotalsQuery, GetCartTotalsQueryVariables>;
7
+ export type GetCartTotalsQueryVariables = Types.Exact<{
8
+ cartId: Types.Scalars['String'];
9
+ }>;
10
+
11
+
12
+ export type GetCartTotalsQuery = { cart?: { shipping_addresses: Array<{ selected_shipping_method?: { carrier_code: string, method_code: string, method_title: string, carrier_title: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined, available_shipping_methods?: Array<{ carrier_code: string, method_code?: string | null | undefined, price_incl_tax: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, price_excl_tax: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined } | null | undefined>, prices?: { __typename: 'CartPrices', applied_taxes?: Array<{ label: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined, discounts?: Array<{ label: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined, grand_total?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined, subtotal_excluding_tax?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined, subtotal_including_tax?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined, subtotal_with_discount_excluding_tax?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined } | null | undefined } | null | undefined };
@@ -0,0 +1,12 @@
1
+ /* eslint-disable */
2
+ import * as Types from '@graphcommerce/graphql';
3
+
4
+ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
5
+
6
+ export const InlineAccountDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"InlineAccount"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"cartId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"cart"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"cart_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"cartId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"shipping_addresses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CartAddressInterface"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"firstname"}},{"kind":"Field","name":{"kind":"Name","value":"lastname"}},{"kind":"Field","name":{"kind":"Name","value":"city"}},{"kind":"Field","name":{"kind":"Name","value":"company"}},{"kind":"Field","name":{"kind":"Name","value":"country"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}},{"kind":"Field","name":{"kind":"Name","value":"postcode"}},{"kind":"Field","name":{"kind":"Name","value":"region"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"region_id"}}]}},{"kind":"Field","name":{"kind":"Name","value":"street"}},{"kind":"Field","name":{"kind":"Name","value":"telephone"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"email"}}]}}]}}]} as unknown as DocumentNode<InlineAccountQuery, InlineAccountQueryVariables>;
7
+ export type InlineAccountQueryVariables = Types.Exact<{
8
+ cartId: Types.Scalars['String'];
9
+ }>;
10
+
11
+
12
+ export type InlineAccountQuery = { cart?: { __typename: 'Cart', id: string, email?: string | null | undefined, shipping_addresses: Array<{ __typename: 'ShippingCartAddress', firstname: string, lastname: string, city: string, company?: string | null | undefined, postcode?: string | null | undefined, street: Array<string | null | undefined>, telephone: string, country: { code: string, label: string }, region?: { code?: string | null | undefined, label?: string | null | undefined, region_id?: number | null | undefined } | null | undefined } | null | undefined> } | null | undefined };
@@ -0,0 +1,10 @@
1
+ /* eslint-disable */
2
+ import * as Types from '@graphcommerce/graphql';
3
+
4
+ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
5
+
6
+ export const CreateEmptyCartDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateEmptyCart"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createEmptyCart"}}]}}]} as unknown as DocumentNode<CreateEmptyCartMutation, CreateEmptyCartMutationVariables>;
7
+ export type CreateEmptyCartMutationVariables = Types.Exact<{ [key: string]: never; }>;
8
+
9
+
10
+ export type CreateEmptyCartMutation = { createEmptyCart?: string | null | undefined };
@@ -0,0 +1,10 @@
1
+ /* eslint-disable */
2
+ import * as Types from '@graphcommerce/graphql';
3
+
4
+ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
5
+
6
+ export const CurrentCartIdDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CurrentCartId"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currentCartId"},"directives":[{"kind":"Directive","name":{"kind":"Name","value":"client"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode<CurrentCartIdQuery, CurrentCartIdQueryVariables>;
7
+ export type CurrentCartIdQueryVariables = Types.Exact<{ [key: string]: never; }>;
8
+
9
+
10
+ export type CurrentCartIdQuery = { currentCartId?: { __typename: 'CurrentCartId', id?: string | null | undefined } | null | undefined };
@@ -0,0 +1,10 @@
1
+ /* eslint-disable */
2
+ import * as Types from '@graphcommerce/graphql';
3
+
4
+ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
5
+
6
+ export const CustomerCartDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"CustomerCart"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"customerCart"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"uid"}},{"kind":"Field","name":{"kind":"Name","value":"quantity"}}]}},{"kind":"Field","name":{"kind":"Name","value":"total_quantity"}},{"kind":"Field","name":{"kind":"Name","value":"prices"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"grand_total"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"applied_taxes"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}},{"kind":"Field","name":{"kind":"Name","value":"discounts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"label"}}]}},{"kind":"Field","name":{"kind":"Name","value":"subtotal_excluding_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"subtotal_including_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"subtotal_with_discount_excluding_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"shipping_addresses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"selected_shipping_method"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"carrier_code"}},{"kind":"Field","name":{"kind":"Name","value":"method_code"}},{"kind":"Field","name":{"kind":"Name","value":"method_title"}},{"kind":"Field","name":{"kind":"Name","value":"carrier_title"}},{"kind":"Field","name":{"kind":"Name","value":"amount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"available_shipping_methods"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"carrier_code"}},{"kind":"Field","name":{"kind":"Name","value":"method_code"}},{"kind":"Field","name":{"kind":"Name","value":"price_incl_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}},{"kind":"Field","name":{"kind":"Name","value":"price_excl_tax"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"currency"}},{"kind":"Field","name":{"kind":"Name","value":"value"}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode<CustomerCartQuery, CustomerCartQueryVariables>;
7
+ export type CustomerCartQueryVariables = Types.Exact<{ [key: string]: never; }>;
8
+
9
+
10
+ export type CustomerCartQuery = { customerCart: { __typename: 'Cart', id: string, total_quantity: number, items?: Array<{ __typename: 'BundleCartItem', uid: string, quantity: number } | { __typename: 'ConfigurableCartItem', uid: string, quantity: number } | { __typename: 'DownloadableCartItem', uid: string, quantity: number } | { __typename: 'SimpleCartItem', uid: string, quantity: number } | { __typename: 'VirtualCartItem', uid: string, quantity: number } | null | undefined> | null | undefined, prices?: { __typename: 'CartPrices', grand_total?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined, applied_taxes?: Array<{ label: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined, discounts?: Array<{ label: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined, subtotal_excluding_tax?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined, subtotal_including_tax?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined, subtotal_with_discount_excluding_tax?: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } | null | undefined } | null | undefined, shipping_addresses: Array<{ selected_shipping_method?: { carrier_code: string, method_code: string, method_title: string, carrier_title: string, amount: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined, available_shipping_methods?: Array<{ carrier_code: string, method_code?: string | null | undefined, price_incl_tax: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined }, price_excl_tax: { currency?: Types.CurrencyEnum | null | undefined, value?: number | null | undefined } } | null | undefined> | null | undefined } | null | undefined> } };
@@ -0,0 +1,12 @@
1
+ /* eslint-disable */
2
+ import * as Types from '@graphcommerce/graphql';
3
+
4
+ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
5
+
6
+ export const UseCartRedirectDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"UseCartRedirect"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"cartId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"cart"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"cart_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"cartId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode<UseCartRedirectQuery, UseCartRedirectQueryVariables>;
7
+ export type UseCartRedirectQueryVariables = Types.Exact<{
8
+ cartId: Types.Scalars['String'];
9
+ }>;
10
+
11
+
12
+ export type UseCartRedirectQuery = { cart?: { id: string } | null | undefined };
@@ -0,0 +1,13 @@
1
+ /* eslint-disable */
2
+ import * as Types from '@graphcommerce/graphql';
3
+
4
+ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
5
+
6
+ export const UseMergeCustomerCartDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UseMergeCustomerCart"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sourceCartId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"destinationCartId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"mergeCarts"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"source_cart_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"sourceCartId"}}},{"kind":"Argument","name":{"kind":"Name","value":"destination_cart_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"destinationCartId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode<UseMergeCustomerCartMutation, UseMergeCustomerCartMutationVariables>;
7
+ export type UseMergeCustomerCartMutationVariables = Types.Exact<{
8
+ sourceCartId: Types.Scalars['String'];
9
+ destinationCartId: Types.Scalars['String'];
10
+ }>;
11
+
12
+
13
+ export type UseMergeCustomerCartMutation = { mergeCarts: { __typename: 'Cart', id: string } };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcommerce/magento-cart",
3
- "version": "3.8.12",
3
+ "version": "3.8.14",
4
4
  "sideEffects": false,
5
5
  "prettier": "@graphcommerce/prettier-config-pwa",
6
6
  "browserslist": [
@@ -13,23 +13,23 @@
13
13
  }
14
14
  },
15
15
  "devDependencies": {
16
- "@graphcommerce/browserslist-config-pwa": "^3.0.2",
17
- "@graphcommerce/eslint-config-pwa": "^3.1.8",
18
- "@graphcommerce/prettier-config-pwa": "^3.0.4",
19
- "@graphcommerce/typescript-config-pwa": "^3.1.1",
16
+ "@graphcommerce/browserslist-config-pwa": "^3.0.3",
17
+ "@graphcommerce/eslint-config-pwa": "^3.1.9",
18
+ "@graphcommerce/prettier-config-pwa": "^3.0.5",
19
+ "@graphcommerce/typescript-config-pwa": "^3.1.2",
20
20
  "@playwright/test": "^1.17.1"
21
21
  },
22
22
  "dependencies": {
23
23
  "@apollo/client": "^3.5.6",
24
- "@graphcommerce/framer-next-pages": "^2.108.4",
25
- "@graphcommerce/framer-scroller": "^1.1.10",
26
- "@graphcommerce/graphql": "^2.105.9",
27
- "@graphcommerce/image": "^2.105.8",
28
- "@graphcommerce/magento-customer": "^3.6.17",
29
- "@graphcommerce/magento-graphql": "^2.104.9",
30
- "@graphcommerce/magento-store": "^3.3.17",
31
- "@graphcommerce/next-ui": "^3.21.0",
32
- "@graphcommerce/react-hook-form": "^2.104.4",
24
+ "@graphcommerce/framer-next-pages": "^2.108.5",
25
+ "@graphcommerce/framer-scroller": "^1.1.12",
26
+ "@graphcommerce/graphql": "^2.105.10",
27
+ "@graphcommerce/image": "^2.105.9",
28
+ "@graphcommerce/magento-customer": "^3.6.19",
29
+ "@graphcommerce/magento-graphql": "^2.104.10",
30
+ "@graphcommerce/magento-store": "^3.3.19",
31
+ "@graphcommerce/next-ui": "^3.21.2",
32
+ "@graphcommerce/react-hook-form": "^2.104.5",
33
33
  "@lingui/macro": "^3.13.0",
34
34
  "@material-ui/core": "^4.12.3",
35
35
  "@material-ui/lab": "^4.0.0-alpha.60",
@@ -39,5 +39,5 @@
39
39
  "react": "^17.0.2",
40
40
  "react-dom": "^17.0.2"
41
41
  },
42
- "gitHead": "f18eba6b141623d926f5ae3a6efc1409d3bd365c"
42
+ "gitHead": "06b4426d199de9ec2a9d2ac86d42ab047e59e7e7"
43
43
  }