@graphcommerce/magento-customer 11.0.0-canary.70 → 11.0.0-canary.73

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ ## 11.0.0-canary.73
4
+
5
+ ## 11.0.0-canary.72
6
+
7
+ ## 11.0.0-canary.71
8
+
3
9
  ## 11.0.0-canary.70
4
10
 
5
11
  ## 11.0.0-canary.69
@@ -1,7 +1,7 @@
1
1
  import { extendableComponent, sxx } from '@graphcommerce/next-ui'
2
2
  import type { SxProps, Theme } from '@mui/material'
3
3
  import { List } from '@mui/material'
4
- import React from 'react'
4
+ import type React from 'react'
5
5
 
6
6
  export type AccountMenuProps = { children: React.ReactNode; sx?: SxProps<Theme> }
7
7
 
@@ -10,7 +10,7 @@ import {
10
10
  } from '@graphcommerce/next-ui'
11
11
  import type { SxProps, Theme } from '@mui/material'
12
12
  import { ListItem, ListItemIcon, ListItemText } from '@mui/material'
13
- import React from 'react'
13
+ import type React from 'react'
14
14
 
15
15
  export type AccountMenuItemProps = {
16
16
  iconSrc: ImageProps['src']
@@ -1,7 +1,7 @@
1
1
  import { Pagination, sxx } from '@graphcommerce/next-ui'
2
2
  import type { SxProps, Theme } from '@mui/material'
3
3
  import { Box, Link } from '@mui/material'
4
- import React from 'react'
4
+ import type React from 'react'
5
5
  import { NoOrdersFound } from '../NoOrdersFound/NoOrdersFound'
6
6
  import { OrderCard } from '../Order'
7
7
  import type { AccountOrdersFragment } from './AccountOrders.gql'
@@ -1,10 +1,4 @@
1
- import {
2
- breakpointVal,
3
- DateTimeFormat,
4
- extendableComponent,
5
- SectionContainer,
6
- sxx,
7
- } from '@graphcommerce/next-ui'
1
+ import { breakpointVal, extendableComponent, SectionContainer, sxx } from '@graphcommerce/next-ui'
8
2
  import { Trans } from '@lingui/react/macro'
9
3
  import type { SxProps, Theme } from '@mui/material'
10
4
  import { Box, Typography } from '@mui/material'
@@ -26,7 +20,7 @@ const { classes } = extendableComponent(componentName, parts)
26
20
 
27
21
  export function CreditMemoDetails(props: CreditMemoDetailsProps) {
28
22
  const { creditMemo, sx = [] } = props
29
- const { number, id } = creditMemo
23
+ const { number } = creditMemo
30
24
 
31
25
  return (
32
26
  <SectionContainer
@@ -12,15 +12,7 @@ export type CreditMemoItemProps = Omit<ActionCardProps, 'value' | 'image' | 'tit
12
12
 
13
13
  export function CreditMemoItem(props: CreditMemoItemProps) {
14
14
  const { item, priceModifiers, size = 'responsive', ...rest } = props
15
- const {
16
- product_name,
17
- product_sku,
18
- quantity_refunded,
19
- product_sale_price,
20
- discounts,
21
- id,
22
- order_item,
23
- } = item
15
+ const { product_name, quantity_refunded, product_sale_price, id, order_item } = item
24
16
 
25
17
  return (
26
18
  <ActionCard
@@ -7,7 +7,7 @@ import {
7
7
  import { t } from '@lingui/core/macro'
8
8
  import type { BadgeProps, FabProps as FabPropsType, SxProps, Theme } from '@mui/material'
9
9
  import { Fab } from '@mui/material'
10
- import React from 'react'
10
+ import type React from 'react'
11
11
  import type { UseCustomerSessionReturn } from '../../hooks'
12
12
  import { useCustomerAccountCanSignIn, useCustomerSession } from '../../hooks'
13
13
 
@@ -2,7 +2,6 @@ import type { CustomAttributeMetadata } from '@graphcommerce/magento-store'
2
2
  import { filterNonNullableKeys } from '@graphcommerce/next-ui'
3
3
  import type { ControllerProps, FieldPath, FieldValues } from '@graphcommerce/react-hook-form'
4
4
  import { t } from '@lingui/core/macro'
5
- import type { HTMLInputTypeAttribute } from 'react'
6
5
 
7
6
  export type InputValidationValue =
8
7
  | 'alphanumeric'
@@ -2,7 +2,7 @@ import { iconPerson, IconSvg, MenuFabSecondaryItem } from '@graphcommerce/next-u
2
2
  import type { SxProps, Theme } from '@mui/material'
3
3
  import { Badge } from '@mui/material'
4
4
  import type { MouseEventHandler } from 'react'
5
- import React from 'react'
5
+ import type React from 'react'
6
6
  import { useCustomerAccountCanSignIn } from '../../hooks'
7
7
  import type { UseCustomerSessionReturn } from '../../hooks/useCustomerSession'
8
8
  import { useCustomerSession } from '../../hooks/useCustomerSession'
@@ -31,16 +31,7 @@ export function GuestOrderOverviewForm() {
31
31
  },
32
32
  })
33
33
 
34
- const {
35
- control,
36
- data: orderData,
37
- required,
38
- handleSubmit,
39
- formState,
40
- error,
41
- reset,
42
- getValues,
43
- } = form
34
+ const { control, data: orderData, handleSubmit, formState, error, reset, getValues } = form
44
35
 
45
36
  useMemo(() => {
46
37
  if (Object.keys(getValues()).length > 0 && Object.keys(urlQuery).length === 0) reset()
@@ -1,10 +1,4 @@
1
- import {
2
- breakpointVal,
3
- DateTimeFormat,
4
- extendableComponent,
5
- SectionContainer,
6
- sxx,
7
- } from '@graphcommerce/next-ui'
1
+ import { breakpointVal, extendableComponent, SectionContainer, sxx } from '@graphcommerce/next-ui'
8
2
  import { Trans } from '@lingui/react/macro'
9
3
  import type { SxProps, Theme } from '@mui/material'
10
4
  import { Box, Typography } from '@mui/material'
@@ -26,7 +20,7 @@ const { classes } = extendableComponent(componentName, parts)
26
20
 
27
21
  export function InvoiceDetails(props: InvoiceDetailsProps) {
28
22
  const { invoice, sx = [] } = props
29
- const { number, id } = invoice
23
+ const { number } = invoice
30
24
 
31
25
  return (
32
26
  <SectionContainer
@@ -12,15 +12,7 @@ export type InvoiceItemProps = Omit<ActionCardProps, 'value' | 'image' | 'title'
12
12
 
13
13
  export function InvoiceItem(props: InvoiceItemProps) {
14
14
  const { item, priceModifiers, size = 'responsive', ...rest } = props
15
- const {
16
- product_name,
17
- product_sku,
18
- quantity_invoiced,
19
- product_sale_price,
20
- discounts,
21
- order_item,
22
- id,
23
- } = item
15
+ const { product_name, quantity_invoiced, product_sale_price, order_item, id } = item
24
16
 
25
17
  return (
26
18
  <ActionCard
@@ -1,4 +1,4 @@
1
- import { filterNonNullableKeys, SectionContainer, sxx } from '@graphcommerce/next-ui'
1
+ import { filterNonNullableKeys, sxx } from '@graphcommerce/next-ui'
2
2
  import { Box, type SxProps, type Theme } from '@mui/material'
3
3
  import { CancelOrderForm } from '../../CancelOrder/CancelOrderForm'
4
4
  import { CreditMemoCard } from '../../CreditMemo/CreditMemoCard'
@@ -12,7 +12,7 @@ import {
12
12
  } from '@graphcommerce/next-ui'
13
13
  import { Trans } from '@lingui/react/macro'
14
14
  import type { SxProps, Theme } from '@mui/material'
15
- import { Avatar, Box, Paper, Skeleton } from '@mui/material'
15
+ import { Box, Paper, Skeleton } from '@mui/material'
16
16
  import { OrderStateLabel } from '../OrderStateLabel/OrderStateLabel'
17
17
  import type { OrderCardFragment } from './OrderCard.gql'
18
18
 
@@ -37,7 +37,6 @@ export function OrderDetails(props: OrderDetailsProps) {
37
37
  payment_methods,
38
38
  shipments,
39
39
  shipping_method,
40
- invoices,
41
40
  } = order
42
41
 
43
42
  return (
@@ -32,7 +32,7 @@ export function OrderStateLabel(props: OrderStateLabelProps) {
32
32
  <Box
33
33
  className={classes.status}
34
34
  component='span'
35
- sx={(theme) => ({
35
+ sx={() => ({
36
36
  '&.orderStatePending': { color: 'text.disabled' },
37
37
  '&.orderStateProcessing': { color: 'info.main' },
38
38
  '&.orderStateComplete': { color: 'success.main' },
@@ -1,16 +1,7 @@
1
- import { Money } from '@graphcommerce/magento-store'
2
- import {
3
- breakpointVal,
4
- filterNonNullableKeys,
5
- iconChevronRight,
6
- IconSvg,
7
- NextLink,
8
- sxx,
9
- } from '@graphcommerce/next-ui'
1
+ import { breakpointVal, iconChevronRight, IconSvg, NextLink, sxx } from '@graphcommerce/next-ui'
10
2
  import { Trans } from '@lingui/react/macro'
11
3
  import type { SxProps, Theme } from '@mui/material'
12
4
  import { Box } from '@mui/material'
13
- import { TrackingLink } from '../TrackingLink/TrackingLink'
14
5
  import type { ShipmentCardFragment } from './ShipmentCard.gql'
15
6
 
16
7
  export type ShipmentCardProps = {
@@ -1,6 +1,5 @@
1
1
  import {
2
2
  breakpointVal,
3
- DateTimeFormat,
4
3
  extendableComponent,
5
4
  filterNonNullableKeys,
6
5
  SectionContainer,
@@ -12,7 +12,7 @@ export type ShipmentItemProps = Omit<ActionCardProps, 'value' | 'image' | 'title
12
12
 
13
13
  export function ShipmentItem(props: ShipmentItemProps) {
14
14
  const { item, priceModifiers, size = 'responsive', ...rest } = props
15
- const { product_name, product_sku, quantity_shipped, product_sale_price, id, order_item } = item
15
+ const { product_name, quantity_shipped, product_sale_price, id, order_item } = item
16
16
 
17
17
  return (
18
18
  <ActionCard
@@ -2,7 +2,7 @@ import { useApolloClient } from '@graphcommerce/graphql'
2
2
  import type { FormState } from '@graphcommerce/react-hook-form'
3
3
  import { useFormGqlMutation } from '@graphcommerce/react-hook-form'
4
4
  import { useRouter } from 'next/router'
5
- import React from 'react'
5
+ import type React from 'react'
6
6
  import { ApolloCustomerErrorAlert } from '../ApolloCustomerError/ApolloCustomerErrorAlert'
7
7
  import { signOut } from './signOut'
8
8
  import { SignOutFormDocument } from './SignOutForm.gql'
@@ -6,7 +6,7 @@ import { Button, extendableComponent, Form, FormRow } from '@graphcommerce/next-
6
6
  import { useFormGqlMutation } from '@graphcommerce/react-hook-form'
7
7
  import { Trans } from '@lingui/react/macro'
8
8
  import { Alert, Box } from '@mui/material'
9
- import React from 'react'
9
+ import type React from 'react'
10
10
  import { useSignInForm } from '../../hooks/useSignInForm'
11
11
  import { ValidatedPasswordElement } from '../ValidatedPasswordElement/ValidatedPasswordElement'
12
12
  import type { SignUpMutation, SignUpMutationVariables } from './SignUp.gql'
@@ -2,7 +2,8 @@ import { Controller, FormAutoSubmit, useFormGqlMutation } from '@graphcommerce/r
2
2
  import { Trans } from '@lingui/react/macro'
3
3
  // eslint-disable-next-line @typescript-eslint/no-restricted-imports
4
4
  import { FormControl, FormControlLabel, FormHelperText, Switch } from '@mui/material'
5
- import React, { useEffect, useMemo } from 'react'
5
+ import type React from 'react'
6
+ import { useEffect, useMemo } from 'react'
6
7
  import { useBillingAddressPermission } from '../../hooks'
7
8
  import type { AccountAddressFragment } from '../AccountAddress/AccountAddress.gql'
8
9
  import { UpdateDefaultAddressDocument } from '../AccountAddresses/UpdateDefaultAddress.gql'
@@ -4,7 +4,7 @@ import type { FullPageMessageProps } from '@graphcommerce/next-ui'
4
4
  import { FullPageMessage, iconPerson, IconSvg, nonNullable } from '@graphcommerce/next-ui'
5
5
  import { Trans } from '@lingui/react/macro'
6
6
  import { Button, CircularProgress } from '@mui/material'
7
- import React from 'react'
7
+ import type React from 'react'
8
8
  import type { SetOptional } from 'type-fest'
9
9
  import { useCustomerSession } from '../../hooks/useCustomerSession'
10
10
  import { ApolloCustomerErrorFullPage } from '../ApolloCustomerError/ApolloCustomerErrorFullPage'
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-customer",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "11.0.0-canary.70",
5
+ "version": "11.0.0-canary.73",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -21,20 +21,20 @@
21
21
  "./plugins/magentoCustomerPrivateQueryContext": "./plugins/magentoCustomerPrivateQueryContext.ts"
22
22
  },
23
23
  "peerDependencies": {
24
- "@graphcommerce/ecommerce-ui": "^11.0.0-canary.70",
25
- "@graphcommerce/eslint-config-pwa": "^11.0.0-canary.70",
26
- "@graphcommerce/framer-next-pages": "^11.0.0-canary.70",
27
- "@graphcommerce/framer-utils": "^11.0.0-canary.70",
28
- "@graphcommerce/graphql": "^11.0.0-canary.70",
29
- "@graphcommerce/graphql-mesh": "^11.0.0-canary.70",
30
- "@graphcommerce/image": "^11.0.0-canary.70",
31
- "@graphcommerce/magento-graphql": "^11.0.0-canary.70",
32
- "@graphcommerce/magento-store": "^11.0.0-canary.70",
33
- "@graphcommerce/next-config": "^11.0.0-canary.70",
34
- "@graphcommerce/next-ui": "^11.0.0-canary.70",
35
- "@graphcommerce/prettier-config-pwa": "^11.0.0-canary.70",
36
- "@graphcommerce/react-hook-form": "^11.0.0-canary.70",
37
- "@graphcommerce/typescript-config-pwa": "^11.0.0-canary.70",
24
+ "@graphcommerce/ecommerce-ui": "^11.0.0-canary.73",
25
+ "@graphcommerce/eslint-config-pwa": "^11.0.0-canary.73",
26
+ "@graphcommerce/framer-next-pages": "^11.0.0-canary.73",
27
+ "@graphcommerce/framer-utils": "^11.0.0-canary.73",
28
+ "@graphcommerce/graphql": "^11.0.0-canary.73",
29
+ "@graphcommerce/graphql-mesh": "^11.0.0-canary.73",
30
+ "@graphcommerce/image": "^11.0.0-canary.73",
31
+ "@graphcommerce/magento-graphql": "^11.0.0-canary.73",
32
+ "@graphcommerce/magento-store": "^11.0.0-canary.73",
33
+ "@graphcommerce/next-config": "^11.0.0-canary.73",
34
+ "@graphcommerce/next-ui": "^11.0.0-canary.73",
35
+ "@graphcommerce/prettier-config-pwa": "^11.0.0-canary.73",
36
+ "@graphcommerce/react-hook-form": "^11.0.0-canary.73",
37
+ "@graphcommerce/typescript-config-pwa": "^11.0.0-canary.73",
38
38
  "@lingui/core": "^6",
39
39
  "@lingui/react": "^6",
40
40
  "@mui/material": "^7.0.0",