@graphcommerce/magento-cart-payment-method 2.105.1 → 2.105.5
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/PaymentMethodOptions/PaymentMethodOptions.tsx +1 -1
- package/PaymentMethodToggle/PaymentMethodToggle.tsx +1 -1
- package/package.json +14 -13
- package/Api/AvailablePaymentMethod/AvailablePaymentMethod.gql.ts +0 -4
- package/Api/OrderPlaced.gql.ts +0 -4
- package/Api/PaymentMethodContext.gql.ts +0 -4
- package/Api/PaymentMethodUpdated.gql.ts +0 -4
- package/Api/SelectedPaymentMethod/SelectedPaymentMethod.gql.ts +0 -4
- package/PaymentMethodContext/GetPaymentMethodContext.gql.ts +0 -12
- package/PaymentMethodOptionsNoop/PaymentMethodOptionsNoop.gql.ts +0 -13
- package/PaymentMethodPlaceOrderNoop/PaymentMethodPlaceOrderNoop.gql.ts +0 -12
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { makeStyles, Theme } from '@material-ui/core'
|
|
2
1
|
import { AnimatedRow } from '@graphcommerce/next-ui'
|
|
2
|
+
import { makeStyles, Theme } from '@material-ui/core'
|
|
3
3
|
import { AnimatePresence } from 'framer-motion'
|
|
4
4
|
import { PaymentMethodOptionsProps } from '../Api/PaymentMethod'
|
|
5
5
|
import { usePaymentMethodContext } from '../PaymentMethodContext/PaymentMethodContext'
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { FormControl, makeStyles, Theme } from '@material-ui/core'
|
|
2
1
|
import { Scroller, ScrollerButton, ScrollerProvider } from '@graphcommerce/framer-scroller'
|
|
3
2
|
import {
|
|
4
3
|
Form,
|
|
@@ -10,6 +9,7 @@ import {
|
|
|
10
9
|
ToggleButton,
|
|
11
10
|
} from '@graphcommerce/next-ui'
|
|
12
11
|
import { Controller, useForm, useFormPersist } from '@graphcommerce/react-hook-form'
|
|
12
|
+
import { FormControl, makeStyles, Theme } from '@material-ui/core'
|
|
13
13
|
import clsx from 'clsx'
|
|
14
14
|
import { m } from 'framer-motion'
|
|
15
15
|
import React, { useEffect } from 'react'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphcommerce/magento-cart-payment-method",
|
|
3
|
-
"version": "2.105.
|
|
3
|
+
"version": "2.105.5",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": "14.x"
|
|
@@ -17,19 +17,19 @@
|
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@graphcommerce/browserslist-config-pwa": "^3.0.1",
|
|
20
|
-
"@graphcommerce/eslint-config-pwa": "^3.0.
|
|
21
|
-
"@graphcommerce/prettier-config-pwa": "^3.0.
|
|
22
|
-
"@graphcommerce/typescript-config-pwa": "^3.0
|
|
23
|
-
"@playwright/test": "^1.
|
|
20
|
+
"@graphcommerce/eslint-config-pwa": "^3.0.3",
|
|
21
|
+
"@graphcommerce/prettier-config-pwa": "^3.0.2",
|
|
22
|
+
"@graphcommerce/typescript-config-pwa": "^3.1.0",
|
|
23
|
+
"@playwright/test": "^1.15.0"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@apollo/client": "^3.3.21",
|
|
27
|
-
"@graphcommerce/graphql": "^2.103.
|
|
28
|
-
"@graphcommerce/image": "^2.104.
|
|
29
|
-
"@graphcommerce/magento-cart": "^3.0.
|
|
30
|
-
"@graphcommerce/magento-store": "^3.0.
|
|
31
|
-
"@graphcommerce/next-ui": "^3.0.
|
|
32
|
-
"@graphcommerce/react-hook-form": "^2.102.
|
|
27
|
+
"@graphcommerce/graphql": "^2.103.3",
|
|
28
|
+
"@graphcommerce/image": "^2.104.4",
|
|
29
|
+
"@graphcommerce/magento-cart": "^3.0.5",
|
|
30
|
+
"@graphcommerce/magento-store": "^3.0.5",
|
|
31
|
+
"@graphcommerce/next-ui": "^3.0.5",
|
|
32
|
+
"@graphcommerce/react-hook-form": "^2.102.3",
|
|
33
33
|
"@graphql-typed-document-node/core": "^3.1.0",
|
|
34
34
|
"@material-ui/core": "^4.12.3",
|
|
35
35
|
"@material-ui/lab": "^4.0.0-alpha.60",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"next": "^11.1.2",
|
|
39
39
|
"react": "^17.0.1",
|
|
40
40
|
"react-dom": "^17.0.1",
|
|
41
|
-
"type-fest": "^2.
|
|
42
|
-
}
|
|
41
|
+
"type-fest": "^2.3.4"
|
|
42
|
+
},
|
|
43
|
+
"gitHead": "1345d9b55763894d3cdedb5751895f2d3f89d1b4"
|
|
43
44
|
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import * as Types from '@graphcommerce/graphql';
|
|
3
|
-
|
|
4
|
-
export type AvailablePaymentMethodFragment = { code: string, title: string, mollie_available_issuers?: Types.Maybe<Array<Types.Maybe<{ code?: Types.Maybe<string>, image: string, name?: Types.Maybe<string>, svg: string }>>>, mollie_meta: { image?: Types.Maybe<string> } };
|
package/Api/OrderPlaced.gql.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import * as Types from '@graphcommerce/graphql';
|
|
3
|
-
|
|
4
|
-
export type PaymentMethodContextFragment = { available_payment_methods?: Types.Maybe<Array<Types.Maybe<{ code: string, title: string, mollie_available_issuers?: Types.Maybe<Array<Types.Maybe<{ code?: Types.Maybe<string>, image: string, name?: Types.Maybe<string>, svg: string }>>>, mollie_meta: { image?: Types.Maybe<string> } }>>>, selected_payment_method?: Types.Maybe<{ code: string, title: string, purchase_order_number?: Types.Maybe<string>, mollie_meta: { image?: Types.Maybe<string> } }>, shipping_addresses: Array<Types.Maybe<{ country: { code: string } }>>, prices?: Types.Maybe<{ grand_total?: Types.Maybe<{ currency?: Types.Maybe<Types.CurrencyEnum>, value?: Types.Maybe<number> }> }> };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import * as Types from '@graphcommerce/graphql';
|
|
3
|
-
|
|
4
|
-
export type PaymentMethodUpdatedFragment = { id: string, selected_payment_method?: Types.Maybe<{ code: string, title: string, purchase_order_number?: Types.Maybe<string>, mollie_meta: { image?: Types.Maybe<string> } }> };
|
|
@@ -1,12 +0,0 @@
|
|
|
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 GetPaymentMethodContextDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetPaymentMethodContext"},"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":"__typename"}},{"kind":"Field","name":{"kind":"Name","value":"available_payment_methods"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"mollie_available_issuers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"image"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"svg"}}]}},{"kind":"Field","name":{"kind":"Name","value":"mollie_meta"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"image"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"selected_payment_method"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"purchase_order_number"}},{"kind":"Field","name":{"kind":"Name","value":"mollie_meta"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"image"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"shipping_addresses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"country"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}}]}}]}},{"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"}}]}}]}}]}}]}}]} as unknown as DocumentNode<GetPaymentMethodContextQuery, GetPaymentMethodContextQueryVariables>;
|
|
7
|
-
export type GetPaymentMethodContextQueryVariables = Types.Exact<{
|
|
8
|
-
cartId: Types.Scalars['String'];
|
|
9
|
-
}>;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export type GetPaymentMethodContextQuery = { cart?: Types.Maybe<{ __typename: 'Cart', id: string, available_payment_methods?: Types.Maybe<Array<Types.Maybe<{ code: string, title: string, mollie_available_issuers?: Types.Maybe<Array<Types.Maybe<{ code?: Types.Maybe<string>, image: string, name?: Types.Maybe<string>, svg: string }>>>, mollie_meta: { image?: Types.Maybe<string> } }>>>, selected_payment_method?: Types.Maybe<{ code: string, title: string, purchase_order_number?: Types.Maybe<string>, mollie_meta: { image?: Types.Maybe<string> } }>, shipping_addresses: Array<Types.Maybe<{ country: { code: string } }>>, prices?: Types.Maybe<{ grand_total?: Types.Maybe<{ currency?: Types.Maybe<Types.CurrencyEnum>, value?: Types.Maybe<number> }> }> }> };
|
|
@@ -1,13 +0,0 @@
|
|
|
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 PaymentMethodOptionsNoopDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"PaymentMethodOptionsNoop"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"cartId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"code"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"setPaymentMethodOnCart"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"cart_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"cartId"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"payment_method"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"code"},"value":{"kind":"Variable","name":{"kind":"Name","value":"code"}}}]}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"cart"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"selected_payment_method"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"code"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"purchase_order_number"}},{"kind":"Field","name":{"kind":"Name","value":"mollie_meta"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"image"}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode<PaymentMethodOptionsNoopMutation, PaymentMethodOptionsNoopMutationVariables>;
|
|
7
|
-
export type PaymentMethodOptionsNoopMutationVariables = Types.Exact<{
|
|
8
|
-
cartId: Types.Scalars['String'];
|
|
9
|
-
code: Types.Scalars['String'];
|
|
10
|
-
}>;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export type PaymentMethodOptionsNoopMutation = { setPaymentMethodOnCart?: Types.Maybe<{ cart: { id: string, selected_payment_method?: Types.Maybe<{ code: string, title: string, purchase_order_number?: Types.Maybe<string>, mollie_meta: { image?: Types.Maybe<string> } }> } }> };
|
|
@@ -1,12 +0,0 @@
|
|
|
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 PaymentMethodPlaceOrderNoopDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"PaymentMethodPlaceOrderNoop"},"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":"placeOrder"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"cart_id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"cartId"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"order"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"order_number"}}]}}]}}]}}]} as unknown as DocumentNode<PaymentMethodPlaceOrderNoopMutation, PaymentMethodPlaceOrderNoopMutationVariables>;
|
|
7
|
-
export type PaymentMethodPlaceOrderNoopMutationVariables = Types.Exact<{
|
|
8
|
-
cartId: Types.Scalars['String'];
|
|
9
|
-
}>;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export type PaymentMethodPlaceOrderNoopMutation = { placeOrder?: Types.Maybe<{ order: { order_number: string } }> };
|