@graphcommerce/magento-payment-braintree 9.0.0-canary.115 → 9.0.0-canary.116

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.0.0-canary.116
4
+
3
5
  ## 9.0.0-canary.115
4
6
 
5
7
  ## 9.0.0-canary.114
@@ -28,6 +28,7 @@ const Field = React.forwardRef<any, { ownerState: unknown; as: string }>((props,
28
28
  return <Box {...rest} ref={ref} sx={{ height: 54, width: '100%' }} />
29
29
  })
30
30
 
31
+ /** @public */
31
32
  export function BraintreeField<T extends FieldValues>(
32
33
  props: {
33
34
  hostedFields: HostedFields | undefined
@@ -259,7 +260,10 @@ export function PaymentMethodOptions(props: PaymentOptionsProps) {
259
260
 
260
261
  const loading = !hostedFields
261
262
 
262
- /** This is the form that the user can fill in. In this case we don't wat the user to fill in anything. */
263
+ /**
264
+ * This is the form that the user can fill in. In this case we don't wat the user to fill in
265
+ * anything.
266
+ */
263
267
  return (
264
268
  <FormProvider {...form}>
265
269
  <form onSubmit={submit}>
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-payment-braintree",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "9.0.0-canary.115",
5
+ "version": "9.0.0-canary.116",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -18,19 +18,19 @@
18
18
  "braintree-web": "^3.112.1"
19
19
  },
20
20
  "peerDependencies": {
21
- "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.115",
22
- "@graphcommerce/graphql": "^9.0.0-canary.115",
23
- "@graphcommerce/image": "^9.0.0-canary.115",
24
- "@graphcommerce/magento-cart": "^9.0.0-canary.115",
25
- "@graphcommerce/magento-cart-payment-method": "^9.0.0-canary.115",
26
- "@graphcommerce/magento-cart-shipping-address": "^9.0.0-canary.115",
27
- "@graphcommerce/magento-product": "^9.0.0-canary.115",
28
- "@graphcommerce/magento-product-configurable": "^9.0.0-canary.115",
29
- "@graphcommerce/magento-store": "^9.0.0-canary.115",
30
- "@graphcommerce/next-ui": "^9.0.0-canary.115",
31
- "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.115",
32
- "@graphcommerce/react-hook-form": "^9.0.0-canary.115",
33
- "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.115",
21
+ "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.116",
22
+ "@graphcommerce/graphql": "^9.0.0-canary.116",
23
+ "@graphcommerce/image": "^9.0.0-canary.116",
24
+ "@graphcommerce/magento-cart": "^9.0.0-canary.116",
25
+ "@graphcommerce/magento-cart-payment-method": "^9.0.0-canary.116",
26
+ "@graphcommerce/magento-cart-shipping-address": "^9.0.0-canary.116",
27
+ "@graphcommerce/magento-product": "^9.0.0-canary.116",
28
+ "@graphcommerce/magento-product-configurable": "^9.0.0-canary.116",
29
+ "@graphcommerce/magento-store": "^9.0.0-canary.116",
30
+ "@graphcommerce/next-ui": "^9.0.0-canary.116",
31
+ "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.116",
32
+ "@graphcommerce/react-hook-form": "^9.0.0-canary.116",
33
+ "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.116",
34
34
  "@lingui/core": "^4.2.1",
35
35
  "@lingui/macro": "^4.2.1",
36
36
  "@lingui/react": "^4.2.1",
@@ -2,10 +2,12 @@ import type { BraintreeError } from 'braintree-web'
2
2
 
3
3
  const errorTypes = ['CUSTOMER', 'MERCHANT', 'NETWORK', 'INTERNAL', 'UNKNOWN']
4
4
 
5
+ /** @public */
5
6
  export function isBraintreeError(e: unknown): e is BraintreeError {
6
7
  return errorTypes.includes((e as BraintreeError).type) && e instanceof Error
7
8
  }
8
9
 
10
+ /** @public */
9
11
  export function isBraintreeCustomerError(e: unknown): e is BraintreeError {
10
12
  return isBraintreeError(e) && e.type === 'CUSTOMER'
11
13
  }