@graphcommerce/magento-customer 9.1.0-canary.54 → 10.0.0-canary.56

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.
Files changed (73) hide show
  1. package/CHANGELOG.md +88 -0
  2. package/components/AccountAddress/AccountAddress.tsx +2 -2
  3. package/components/AccountAddresses/AccountAddresses.tsx +7 -7
  4. package/components/AccountDeleteForm/AccountDeleteForm.tsx +2 -1
  5. package/components/AccountSignInUpForm/AccountSignInUpForm.tsx +19 -18
  6. package/components/AddressFields/AddressAddition.tsx +3 -2
  7. package/components/AddressFields/AddressCity.tsx +3 -2
  8. package/components/AddressFields/AddressCountryRegion.tsx +4 -4
  9. package/components/AddressFields/AddressHouseNumber.tsx +5 -4
  10. package/components/AddressFields/AddressPostcode.tsx +2 -1
  11. package/components/AddressFields/AddressStreet.tsx +3 -2
  12. package/components/ApolloCustomerError/ApolloCustomerErrorAlert.tsx +2 -2
  13. package/components/ApolloCustomerError/ApolloCustomerErrorFullPage.tsx +2 -2
  14. package/components/ApolloCustomerError/ApolloCustomerErrorSnackbar.tsx +2 -2
  15. package/components/ApolloCustomerError/useAuthorizationErrorMasked.ts +3 -5
  16. package/components/CancelOrder/CancelOrderForm.tsx +1 -1
  17. package/components/ChangeNameForm/ChangeNameForm.tsx +3 -3
  18. package/components/ChangePasswordForm/ChangePasswordForm.tsx +6 -6
  19. package/components/CompanyFields/CompanyFields.tsx +4 -5
  20. package/components/CompanyFields/CompanyName.tsx +2 -2
  21. package/components/CompanyFields/CompanyVAT.tsx +2 -2
  22. package/components/ConfirmCustomer/ConfirmCustomerForm.tsx +7 -7
  23. package/components/ContactForm/ContactForm.tsx +1 -1
  24. package/components/CreateCustomerAddressForm/CreateCustomerAddressForm.tsx +3 -3
  25. package/components/CreditMemo/CreditMemoCard.tsx +1 -1
  26. package/components/CreditMemo/CreditMemoDetails.tsx +1 -1
  27. package/components/CreditMemo/CreditMemoItem.tsx +2 -2
  28. package/components/CreditMemo/CreditMemoItems.tsx +1 -1
  29. package/components/CreditMemo/CreditMemoTotals.tsx +1 -1
  30. package/components/CustomerFab/CustomerFab.tsx +2 -2
  31. package/components/CustomerForms/CustomerAttributeField.tsx +2 -2
  32. package/components/CustomerForms/CustomerUpdateForm.tsx +2 -2
  33. package/components/CustomerForms/customerAttributeFieldHelpers.ts +1 -1
  34. package/components/CustomerForms/nameFieldset.tsx +2 -2
  35. package/components/DeleteCustomerAddressForm/DeleteCustomerAddressForm.tsx +2 -2
  36. package/components/EditAddressForm/EditAddressForm.tsx +2 -2
  37. package/components/ForgotPasswordForm/ForgotPasswordForm.tsx +6 -6
  38. package/components/GuestOrderOverview/GuestOrder.graphql +2 -2
  39. package/components/GuestOrderOverview/GuestOrderOverviewForm.tsx +10 -10
  40. package/components/Invoice/InvoiceCard.tsx +1 -1
  41. package/components/Invoice/InvoiceDetails.tsx +1 -1
  42. package/components/Invoice/InvoiceItem.tsx +2 -2
  43. package/components/Invoice/InvoiceItems.tsx +1 -1
  44. package/components/Invoice/InvoiceTotals.tsx +1 -1
  45. package/components/NameFields/NameFields.tsx +8 -8
  46. package/components/NoOrdersFound/NoOrdersFound.tsx +2 -2
  47. package/components/Order/OrderCard/OrderCard.tsx +3 -3
  48. package/components/Order/OrderDetails/OrderDetails.tsx +1 -1
  49. package/components/Order/OrderItem/OrderItem.tsx +2 -2
  50. package/components/Order/OrderItems/OrderItems.tsx +2 -2
  51. package/components/Order/OrderStateLabel/OrderStateLabel.tsx +1 -1
  52. package/components/Order/OrderTotals/OrderTotals.tsx +7 -5
  53. package/components/ReorderItems/ReorderItems.tsx +2 -1
  54. package/components/ResetPasswordForm/ResetPasswordForm.tsx +4 -4
  55. package/components/Shipment/ShipmentCard.tsx +1 -1
  56. package/components/Shipment/ShipmentDetails.tsx +1 -1
  57. package/components/Shipment/ShipmentItem.tsx +2 -2
  58. package/components/Shipment/ShipmentItems.tsx +1 -1
  59. package/components/SignInForm/SignInForm.tsx +5 -5
  60. package/components/SignInForm/SignInFormInline.tsx +4 -4
  61. package/components/SignUpForm/SignUpForm.tsx +9 -7
  62. package/components/SignUpForm/SignUpFormInline.tsx +5 -8
  63. package/components/TrackingLink/TrackingLink.tsx +2 -2
  64. package/components/UpdateCustomerEmailForm/UpdateCustomerEmailForm.tsx +9 -9
  65. package/components/UpdateDefaultAddressForm/UpdateDefaultAddressForm.tsx +3 -3
  66. package/components/ValidatedPasswordElement/ValidatedPasswordElement.tsx +4 -9
  67. package/components/WaitForCustomer/WaitForCustomer.tsx +7 -11
  68. package/components/index.ts +1 -0
  69. package/graphql/index.ts +1 -0
  70. package/hooks/useAccountSignInUpForm.tsx +2 -1
  71. package/hooks/useCustomerPermissions.ts +2 -3
  72. package/package.json +28 -19
  73. package/utils/customerPermissions.ts +2 -1
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": "9.1.0-canary.54",
5
+ "version": "10.0.0-canary.56",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -11,28 +11,37 @@
11
11
  "project": "./tsconfig.json"
12
12
  }
13
13
  },
14
+ "exports": {
15
+ ".": "./index.ts",
16
+ "./hooks/useCustomerSession": "./hooks/useCustomerSession.ts",
17
+ "./link/customerLink": "./link/customerLink.ts",
18
+ "./plugins/MagentoCustomerGraphqlProvider": "./plugins/MagentoCustomerGraphqlProvider.tsx",
19
+ "./plugins/SessionDebuggerPlugin": "./plugins/SessionDebuggerPlugin.tsx",
20
+ "./plugins/XMagentoCacheIdGraphQLProvider": "./plugins/XMagentoCacheIdGraphQLProvider.tsx",
21
+ "./plugins/magentoCustomerPrivateQueryContext": "./plugins/magentoCustomerPrivateQueryContext.ts"
22
+ },
14
23
  "peerDependencies": {
15
- "@graphcommerce/ecommerce-ui": "^9.1.0-canary.54",
16
- "@graphcommerce/eslint-config-pwa": "^9.1.0-canary.54",
17
- "@graphcommerce/framer-next-pages": "^9.1.0-canary.54",
18
- "@graphcommerce/framer-utils": "^9.1.0-canary.54",
19
- "@graphcommerce/graphql": "^9.1.0-canary.54",
20
- "@graphcommerce/graphql-mesh": "^9.1.0-canary.54",
21
- "@graphcommerce/image": "^9.1.0-canary.54",
22
- "@graphcommerce/magento-graphql": "^9.1.0-canary.54",
23
- "@graphcommerce/magento-store": "^9.1.0-canary.54",
24
- "@graphcommerce/next-ui": "^9.1.0-canary.54",
25
- "@graphcommerce/prettier-config-pwa": "^9.1.0-canary.54",
26
- "@graphcommerce/react-hook-form": "^9.1.0-canary.54",
27
- "@graphcommerce/typescript-config-pwa": "^9.1.0-canary.54",
28
- "@lingui/core": "^4.2.1",
29
- "@lingui/macro": "^4.2.1",
30
- "@lingui/react": "^4.2.1",
24
+ "@graphcommerce/ecommerce-ui": "^10.0.0-canary.56",
25
+ "@graphcommerce/eslint-config-pwa": "^10.0.0-canary.56",
26
+ "@graphcommerce/framer-next-pages": "^10.0.0-canary.56",
27
+ "@graphcommerce/framer-utils": "^10.0.0-canary.56",
28
+ "@graphcommerce/graphql": "^10.0.0-canary.56",
29
+ "@graphcommerce/graphql-mesh": "^10.0.0-canary.56",
30
+ "@graphcommerce/image": "^10.0.0-canary.56",
31
+ "@graphcommerce/magento-graphql": "^10.0.0-canary.56",
32
+ "@graphcommerce/magento-store": "^10.0.0-canary.56",
33
+ "@graphcommerce/next-ui": "^10.0.0-canary.56",
34
+ "@graphcommerce/prettier-config-pwa": "^10.0.0-canary.56",
35
+ "@graphcommerce/react-hook-form": "^10.0.0-canary.56",
36
+ "@graphcommerce/typescript-config-pwa": "^10.0.0-canary.56",
37
+ "@lingui/core": "^5",
38
+ "@lingui/macro": "^5",
39
+ "@lingui/react": "^5",
31
40
  "@mui/material": "^5.10.16",
32
41
  "framer-motion": "^11.0.0",
33
42
  "graphql": "^16.0.0",
34
43
  "next": "*",
35
- "react": "^18.2.0",
36
- "react-dom": "^18.2.0"
44
+ "react": "^19.2.0",
45
+ "react-dom": "^19.2.0"
37
46
  }
38
47
  }
@@ -1,9 +1,10 @@
1
+ import { permissions } from '@graphcommerce/next-config/config'
1
2
  import { storefrontConfig } from '@graphcommerce/next-ui'
2
3
 
3
4
  function getCustomerAccountPermission(locale: string | undefined) {
4
5
  return (
5
6
  storefrontConfig(locale)?.permissions?.customerAccount ??
6
- import.meta.graphCommerce.permissions?.customerAccount ??
7
+ permissions?.customerAccount ??
7
8
  'ENABLED'
8
9
  )
9
10
  }