@graphcommerce/magento-review 2.107.21 → 2.108.3

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
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.108.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-review@2.107.21...@graphcommerce/magento-review@2.108.0) (2021-11-09)
7
+
8
+
9
+ ### Features
10
+
11
+ * added translations to all pages ([8cf4ecd](https://github.com/ho-nl/m2-pwa/commit/8cf4ecd5db5edfec04ab205aa49f5de433d26579))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [2.107.13](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-review@2.107.12...@graphcommerce/magento-review@2.107.13) (2021-11-03)
7
18
 
8
19
 
@@ -1,5 +1,6 @@
1
1
  import { useQuery } from '@apollo/client'
2
2
  import { ProductReviewRatingInput } from '@graphcommerce/graphql'
3
+ import { ApolloCustomerErrorAlert } from '@graphcommerce/magento-customer'
3
4
  import {
4
5
  Button,
5
6
  Form,
@@ -10,11 +11,11 @@ import {
10
11
  StarRatingField,
11
12
  } from '@graphcommerce/next-ui'
12
13
  import { useFormGqlMutation } from '@graphcommerce/react-hook-form'
14
+ import { t, Trans } from '@lingui/macro'
13
15
  import { Box, makeStyles, TextField, Theme, Typography } from '@material-ui/core'
14
16
  import { Alert } from '@material-ui/lab'
15
17
  import { useRouter } from 'next/router'
16
18
  import React, { useEffect, useState } from 'react'
17
- import ApolloCustomerErrorAlert from '../../../magento-customer/components/ApolloCustomerError/ApolloCustomerErrorAlert'
18
19
  import { CreateProductReviewDocument } from './CreateProductReview.gql'
19
20
  import { ProductReviewRatingsMetadataDocument } from './ProductReviewRatingsMetadata.gql'
20
21
 
@@ -100,11 +101,11 @@ export default function CreateProductReviewForm(props: CreateProductReviewFormPr
100
101
  return (
101
102
  <>
102
103
  <Alert severity='success' variant='standard'>
103
- Thank you! Your review was successfully submitted for approval
104
+ <Trans>Thank you! Your review was successfully submitted for approval</Trans>
104
105
  </Alert>
105
106
  <Box mt={6}>
106
107
  <Button variant='contained' color='primary' size='large' onClick={() => router.back()}>
107
- Continue shopping
108
+ <Trans>Continue shopping</Trans>
108
109
  </Button>
109
110
  </Box>
110
111
  </>
@@ -118,7 +119,7 @@ export default function CreateProductReviewForm(props: CreateProductReviewFormPr
118
119
  variant='outlined'
119
120
  type='text'
120
121
  error={!!formState.errors.nickname || !!error}
121
- label='Name'
122
+ label={t`Name`}
122
123
  required={required.nickname}
123
124
  {...muiRegister('nickname', { required: required.nickname })}
124
125
  helperText={formState.errors.nickname?.message}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcommerce/magento-review",
3
- "version": "2.107.21",
3
+ "version": "2.108.3",
4
4
  "sideEffects": false,
5
5
  "prettier": "@graphcommerce/prettier-config-pwa",
6
6
  "browserslist": [
@@ -23,10 +23,13 @@
23
23
  "@apollo/client": "^3.4.16",
24
24
  "@graphcommerce/graphql": "^2.105.4",
25
25
  "@graphcommerce/image": "^2.105.3",
26
- "@graphcommerce/magento-product": "^3.5.15",
27
- "@graphcommerce/magento-store": "^3.2.14",
28
- "@graphcommerce/next-ui": "^3.14.6",
26
+ "@graphcommerce/magento-customer": "^3.5.3",
27
+ "@graphcommerce/magento-product": "^3.5.19",
28
+ "@graphcommerce/magento-store": "^3.2.18",
29
+ "@graphcommerce/next-ui": "^3.15.1",
30
+ "@graphcommerce/react-hook-form": "^2.103.1",
29
31
  "@graphql-typed-document-node/core": "^3.1.0",
32
+ "@lingui/macro": "^3.12.1",
30
33
  "@material-ui/core": "^4.12.3",
31
34
  "@material-ui/lab": "^4.0.0-alpha.60",
32
35
  "clsx": "^1.1.1",
@@ -35,5 +38,5 @@
35
38
  "react-dom": "^17.0.2",
36
39
  "schema-dts": "^1.0.0"
37
40
  },
38
- "gitHead": "16fea60d75deb4aa038a072a86b43771fb6595f8"
41
+ "gitHead": "9fb7a52af72eb5c9677f24e11d7b62871151c46e"
39
42
  }