@graphcommerce/magento-review 3.0.0 → 3.0.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
@@ -1,5 +1,82 @@
1
1
  # Change Log
2
2
 
3
+ ## 3.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1280](https://github.com/ho-nl/m2-pwa/pull/1280)
8
+ [`bdd460c6f`](https://github.com/ho-nl/m2-pwa/commit/bdd460c6f09af148a96c55324012b8f53c3618f1)
9
+ Thanks [@paales](https://github.com/paales)! - Review forms now work by using the url_key of a
10
+ product instead of the SKU. Some backends do not support filtering by sku
11
+
12
+ * [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96)
13
+ Thanks [@paales](https://github.com/paales)! - made packages public
14
+
15
+ * Updated dependencies
16
+ [[`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96),
17
+ [`81ea406d5`](https://github.com/ho-nl/m2-pwa/commit/81ea406d54d6b5c662c030a7fea444abc4117a20),
18
+ [`3a719c88c`](https://github.com/ho-nl/m2-pwa/commit/3a719c88cad1eab58602de28c41adc0fc4827e1d),
19
+ [`5ffcb56bf`](https://github.com/ho-nl/m2-pwa/commit/5ffcb56bfcbe49ebeaf24f9341e819a145ab9a14)]:
20
+ - @graphcommerce/graphql@3.0.3
21
+ - @graphcommerce/image@3.1.0
22
+ - @graphcommerce/magento-customer@4.1.2
23
+ - @graphcommerce/magento-product@4.0.3
24
+ - @graphcommerce/magento-store@4.0.3
25
+ - @graphcommerce/next-ui@4.1.2
26
+ - @graphcommerce/react-hook-form@3.0.3
27
+
28
+ ## 3.0.2
29
+
30
+ ### Patch Changes
31
+
32
+ - [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
33
+ [`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2)
34
+ Thanks [@paales](https://github.com/paales)! - We've moved lots of internal packages from
35
+ `dependencies` to `peerDependencies`. The result of this is that there will be significantly less
36
+ duplicate packages in the node_modules folders.
37
+
38
+ * [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
39
+ [`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d)
40
+ Thanks [@paales](https://github.com/paales)! - Upgraded to
41
+ [NextJS 12.1](https://nextjs.org/blog/next-12-1)! This is just for compatibility, but we'll be
42
+ implementing
43
+ [On-demand Incremental Static Regeneration](https://nextjs.org/blog/next-12-1#on-demand-incremental-static-regeneration-beta)
44
+ soon.
45
+
46
+ This will greatly reduce the requirement to rebuid stuff and we'll add a management UI on the
47
+ frontend to be able to revalidate pages manually.
48
+
49
+ * Updated dependencies
50
+ [[`381e4c86a`](https://github.com/ho-nl/m2-pwa/commit/381e4c86a8321ce96e1fa5c7d3c0a0c0ff3e02c7),
51
+ [`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2),
52
+ [`e7c8e2756`](https://github.com/ho-nl/m2-pwa/commit/e7c8e2756d637cbcd2e793d62ef5721d35d9fa7b),
53
+ [`b08a8eb1d`](https://github.com/ho-nl/m2-pwa/commit/b08a8eb1d024b9d3e7712ef034029151670db275),
54
+ [`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d)]:
55
+ - @graphcommerce/magento-customer@4.1.1
56
+ - @graphcommerce/next-ui@4.1.1
57
+ - @graphcommerce/react-hook-form@3.0.2
58
+ - @graphcommerce/graphql@3.0.2
59
+ - @graphcommerce/image@3.0.2
60
+ - @graphcommerce/magento-product@4.0.2
61
+ - @graphcommerce/magento-store@4.0.2
62
+
63
+ ## 3.0.1
64
+
65
+ ### Patch Changes
66
+
67
+ - [`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)
68
+ Thanks [@paales](https://github.com/paales)! - Added homepage and repository package.json files,
69
+ so that the packages link to back to the website and repository
70
+ - Updated dependencies
71
+ [[`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)]:
72
+ - @graphcommerce/graphql@3.0.1
73
+ - @graphcommerce/image@3.0.1
74
+ - @graphcommerce/magento-customer@4.0.1
75
+ - @graphcommerce/magento-product@4.0.1
76
+ - @graphcommerce/magento-store@4.0.1
77
+ - @graphcommerce/next-ui@4.0.1
78
+ - @graphcommerce/react-hook-form@3.0.1
79
+
3
80
  ## 3.0.0
4
81
 
5
82
  ### Major Changes
@@ -1,9 +1,10 @@
1
- query ProductReviewProductName($sku: String!) {
2
- products(filter: { sku: { eq: $sku } }) {
1
+ query ProductReviewProductName($urlKey: String!) {
2
+ products(filter: { url_key: { eq: $urlKey } }) {
3
3
  items {
4
4
  __typename
5
5
  uid
6
6
  name
7
+ sku
7
8
  }
8
9
  }
9
10
  }
@@ -33,7 +33,7 @@ const parts = [
33
33
  const { classes } = extendableComponent(name, parts)
34
34
 
35
35
  export default function ProductReviews(props: ProductReviewsProps) {
36
- const { reviews, url_key, sku, sx = [] } = props
36
+ const { reviews, url_key, sx = [] } = props
37
37
  const config = 'en_US'
38
38
  const locale = config.replace('_', '-')
39
39
 
@@ -74,7 +74,7 @@ export default function ProductReviews(props: ProductReviewsProps) {
74
74
  marginTop: theme.spacings.sm,
75
75
  })}
76
76
  >
77
- <Link href={`/account/reviews/add?sku=${sku}`} passHref>
77
+ <Link href={`/account/reviews/add?url_key=${url_key}`} passHref>
78
78
  <Button
79
79
  variant='pill'
80
80
  color='primary'
package/package.json CHANGED
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "name": "@graphcommerce/magento-review",
3
- "version": "3.0.0",
3
+ "homepage": "https://www.graphcommerce.org/",
4
+ "repository": "github:graphcommerce-org/graphcommerce",
5
+ "version": "3.0.3",
4
6
  "sideEffects": false,
5
7
  "prettier": "@graphcommerce/prettier-config-pwa",
6
8
  "eslintConfig": {
@@ -10,24 +12,26 @@
10
12
  }
11
13
  },
12
14
  "devDependencies": {
13
- "@graphcommerce/eslint-config-pwa": "^4.0.0",
14
- "@graphcommerce/prettier-config-pwa": "^4.0.0",
15
- "@graphcommerce/typescript-config-pwa": "^4.0.0",
16
- "@playwright/test": "^1.18.1"
15
+ "@graphcommerce/eslint-config-pwa": "^4.0.3",
16
+ "@graphcommerce/prettier-config-pwa": "^4.0.2",
17
+ "@graphcommerce/typescript-config-pwa": "^4.0.2",
18
+ "@playwright/test": "^1.19.1"
17
19
  },
18
20
  "dependencies": {
19
- "@graphcommerce/graphql": "^3.0.0",
20
- "@graphcommerce/image": "^3.0.0",
21
- "@graphcommerce/magento-customer": "^4.0.0",
22
- "@graphcommerce/magento-product": "^4.0.0",
23
- "@graphcommerce/magento-store": "^4.0.0",
24
- "@graphcommerce/next-ui": "^4.0.0",
25
- "@graphcommerce/react-hook-form": "^3.0.0",
21
+ "@graphcommerce/graphql": "^3.0.3",
22
+ "@graphcommerce/image": "^3.1.0",
23
+ "@graphcommerce/magento-customer": "^4.1.2",
24
+ "@graphcommerce/magento-product": "^4.0.3",
25
+ "@graphcommerce/magento-store": "^4.0.3",
26
+ "@graphcommerce/next-ui": "^4.1.2",
27
+ "@graphcommerce/react-hook-form": "^3.0.3",
28
+ "schema-dts": "^1.0.0"
29
+ },
30
+ "peerDependencies": {
26
31
  "@lingui/macro": "^3.13.2",
27
32
  "@mui/material": "^5.4.1",
28
33
  "next": "^12.0.10",
29
34
  "react": "^17.0.2",
30
- "react-dom": "^17.0.2",
31
- "schema-dts": "^1.0.0"
35
+ "react-dom": "^17.0.2"
32
36
  }
33
37
  }