@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.
- package/CHANGELOG.md +88 -0
- package/components/AccountAddress/AccountAddress.tsx +2 -2
- package/components/AccountAddresses/AccountAddresses.tsx +7 -7
- package/components/AccountDeleteForm/AccountDeleteForm.tsx +2 -1
- package/components/AccountSignInUpForm/AccountSignInUpForm.tsx +19 -18
- package/components/AddressFields/AddressAddition.tsx +3 -2
- package/components/AddressFields/AddressCity.tsx +3 -2
- package/components/AddressFields/AddressCountryRegion.tsx +4 -4
- package/components/AddressFields/AddressHouseNumber.tsx +5 -4
- package/components/AddressFields/AddressPostcode.tsx +2 -1
- package/components/AddressFields/AddressStreet.tsx +3 -2
- package/components/ApolloCustomerError/ApolloCustomerErrorAlert.tsx +2 -2
- package/components/ApolloCustomerError/ApolloCustomerErrorFullPage.tsx +2 -2
- package/components/ApolloCustomerError/ApolloCustomerErrorSnackbar.tsx +2 -2
- package/components/ApolloCustomerError/useAuthorizationErrorMasked.ts +3 -5
- package/components/CancelOrder/CancelOrderForm.tsx +1 -1
- package/components/ChangeNameForm/ChangeNameForm.tsx +3 -3
- package/components/ChangePasswordForm/ChangePasswordForm.tsx +6 -6
- package/components/CompanyFields/CompanyFields.tsx +4 -5
- package/components/CompanyFields/CompanyName.tsx +2 -2
- package/components/CompanyFields/CompanyVAT.tsx +2 -2
- package/components/ConfirmCustomer/ConfirmCustomerForm.tsx +7 -7
- package/components/ContactForm/ContactForm.tsx +1 -1
- package/components/CreateCustomerAddressForm/CreateCustomerAddressForm.tsx +3 -3
- package/components/CreditMemo/CreditMemoCard.tsx +1 -1
- package/components/CreditMemo/CreditMemoDetails.tsx +1 -1
- package/components/CreditMemo/CreditMemoItem.tsx +2 -2
- package/components/CreditMemo/CreditMemoItems.tsx +1 -1
- package/components/CreditMemo/CreditMemoTotals.tsx +1 -1
- package/components/CustomerFab/CustomerFab.tsx +2 -2
- package/components/CustomerForms/CustomerAttributeField.tsx +2 -2
- package/components/CustomerForms/CustomerUpdateForm.tsx +2 -2
- package/components/CustomerForms/customerAttributeFieldHelpers.ts +1 -1
- package/components/CustomerForms/nameFieldset.tsx +2 -2
- package/components/DeleteCustomerAddressForm/DeleteCustomerAddressForm.tsx +2 -2
- package/components/EditAddressForm/EditAddressForm.tsx +2 -2
- package/components/ForgotPasswordForm/ForgotPasswordForm.tsx +6 -6
- package/components/GuestOrderOverview/GuestOrder.graphql +2 -2
- package/components/GuestOrderOverview/GuestOrderOverviewForm.tsx +10 -10
- package/components/Invoice/InvoiceCard.tsx +1 -1
- package/components/Invoice/InvoiceDetails.tsx +1 -1
- package/components/Invoice/InvoiceItem.tsx +2 -2
- package/components/Invoice/InvoiceItems.tsx +1 -1
- package/components/Invoice/InvoiceTotals.tsx +1 -1
- package/components/NameFields/NameFields.tsx +8 -8
- package/components/NoOrdersFound/NoOrdersFound.tsx +2 -2
- package/components/Order/OrderCard/OrderCard.tsx +3 -3
- package/components/Order/OrderDetails/OrderDetails.tsx +1 -1
- package/components/Order/OrderItem/OrderItem.tsx +2 -2
- package/components/Order/OrderItems/OrderItems.tsx +2 -2
- package/components/Order/OrderStateLabel/OrderStateLabel.tsx +1 -1
- package/components/Order/OrderTotals/OrderTotals.tsx +7 -5
- package/components/ReorderItems/ReorderItems.tsx +2 -1
- package/components/ResetPasswordForm/ResetPasswordForm.tsx +4 -4
- package/components/Shipment/ShipmentCard.tsx +1 -1
- package/components/Shipment/ShipmentDetails.tsx +1 -1
- package/components/Shipment/ShipmentItem.tsx +2 -2
- package/components/Shipment/ShipmentItems.tsx +1 -1
- package/components/SignInForm/SignInForm.tsx +5 -5
- package/components/SignInForm/SignInFormInline.tsx +4 -4
- package/components/SignUpForm/SignUpForm.tsx +9 -7
- package/components/SignUpForm/SignUpFormInline.tsx +5 -8
- package/components/TrackingLink/TrackingLink.tsx +2 -2
- package/components/UpdateCustomerEmailForm/UpdateCustomerEmailForm.tsx +9 -9
- package/components/UpdateDefaultAddressForm/UpdateDefaultAddressForm.tsx +3 -3
- package/components/ValidatedPasswordElement/ValidatedPasswordElement.tsx +4 -9
- package/components/WaitForCustomer/WaitForCustomer.tsx +7 -11
- package/components/index.ts +1 -0
- package/graphql/index.ts +1 -0
- package/hooks/useAccountSignInUpForm.tsx +2 -1
- package/hooks/useCustomerPermissions.ts +2 -3
- package/package.json +28 -19
- 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": "
|
|
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": "^
|
|
16
|
-
"@graphcommerce/eslint-config-pwa": "^
|
|
17
|
-
"@graphcommerce/framer-next-pages": "^
|
|
18
|
-
"@graphcommerce/framer-utils": "^
|
|
19
|
-
"@graphcommerce/graphql": "^
|
|
20
|
-
"@graphcommerce/graphql-mesh": "^
|
|
21
|
-
"@graphcommerce/image": "^
|
|
22
|
-
"@graphcommerce/magento-graphql": "^
|
|
23
|
-
"@graphcommerce/magento-store": "^
|
|
24
|
-
"@graphcommerce/next-ui": "^
|
|
25
|
-
"@graphcommerce/prettier-config-pwa": "^
|
|
26
|
-
"@graphcommerce/react-hook-form": "^
|
|
27
|
-
"@graphcommerce/typescript-config-pwa": "^
|
|
28
|
-
"@lingui/core": "^
|
|
29
|
-
"@lingui/macro": "^
|
|
30
|
-
"@lingui/react": "^
|
|
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": "^
|
|
36
|
-
"react-dom": "^
|
|
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
|
-
|
|
7
|
+
permissions?.customerAccount ??
|
|
7
8
|
'ENABLED'
|
|
8
9
|
)
|
|
9
10
|
}
|