@graphcommerce/graphcms-ui 3.0.1 → 3.0.4

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,67 @@
1
1
  # Change Log
2
2
 
3
+ ## 3.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1285](https://github.com/ho-nl/m2-pwa/pull/1285)
8
+ [`27368edbd`](https://github.com/ho-nl/m2-pwa/commit/27368edbdb0543658bf925cfa33b61de0e6dda38)
9
+ Thanks [@paales](https://github.com/paales)! - Make sure svg icons from graphcms aren't actually
10
+ processed by the next image optimization
11
+ - Updated dependencies
12
+ [[`c85294ba6`](https://github.com/ho-nl/m2-pwa/commit/c85294ba6d742ce78c074559a1e95409b25a5017)]:
13
+ - @graphcommerce/next-ui@4.1.3
14
+
15
+ ## 3.0.3
16
+
17
+ ### Patch Changes
18
+
19
+ - [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96)
20
+ Thanks [@paales](https://github.com/paales)! - made packages public
21
+
22
+ * [#1278](https://github.com/ho-nl/m2-pwa/pull/1278)
23
+ [`81ea406d5`](https://github.com/ho-nl/m2-pwa/commit/81ea406d54d6b5c662c030a7fea444abc4117a20)
24
+ Thanks [@ErwinOtten](https://github.com/ErwinOtten)! - Upgraded dependencies to the latest version
25
+
26
+ * Updated dependencies
27
+ [[`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96),
28
+ [`81ea406d5`](https://github.com/ho-nl/m2-pwa/commit/81ea406d54d6b5c662c030a7fea444abc4117a20),
29
+ [`3a719c88c`](https://github.com/ho-nl/m2-pwa/commit/3a719c88cad1eab58602de28c41adc0fc4827e1d),
30
+ [`5ffcb56bf`](https://github.com/ho-nl/m2-pwa/commit/5ffcb56bfcbe49ebeaf24f9341e819a145ab9a14)]:
31
+ - @graphcommerce/graphql@3.0.3
32
+ - @graphcommerce/image@3.1.0
33
+ - @graphcommerce/next-ui@4.1.2
34
+
35
+ ## 3.0.2
36
+
37
+ ### Patch Changes
38
+
39
+ - [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
40
+ [`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2)
41
+ Thanks [@paales](https://github.com/paales)! - We've moved lots of internal packages from
42
+ `dependencies` to `peerDependencies`. The result of this is that there will be significantly less
43
+ duplicate packages in the node_modules folders.
44
+
45
+ * [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
46
+ [`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d)
47
+ Thanks [@paales](https://github.com/paales)! - Upgraded to
48
+ [NextJS 12.1](https://nextjs.org/blog/next-12-1)! This is just for compatibility, but we'll be
49
+ implementing
50
+ [On-demand Incremental Static Regeneration](https://nextjs.org/blog/next-12-1#on-demand-incremental-static-regeneration-beta)
51
+ soon.
52
+
53
+ This will greatly reduce the requirement to rebuid stuff and we'll add a management UI on the
54
+ frontend to be able to revalidate pages manually.
55
+
56
+ * Updated dependencies
57
+ [[`381e4c86a`](https://github.com/ho-nl/m2-pwa/commit/381e4c86a8321ce96e1fa5c7d3c0a0c0ff3e02c7),
58
+ [`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2),
59
+ [`e7c8e2756`](https://github.com/ho-nl/m2-pwa/commit/e7c8e2756d637cbcd2e793d62ef5721d35d9fa7b),
60
+ [`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d)]:
61
+ - @graphcommerce/next-ui@4.1.1
62
+ - @graphcommerce/graphql@3.0.2
63
+ - @graphcommerce/image@3.0.2
64
+
3
65
  ## 3.0.1
4
66
 
5
67
  ### Patch Changes
@@ -22,7 +22,16 @@ export function Asset(props: AssetProps) {
22
22
 
23
23
  if (isImage(asset)) {
24
24
  const { url, height, mimeType, size, width, ...assetProps } = removeNull(asset)
25
- return <Image src={url} height={height} width={width} {...imgProps} {...assetProps} />
25
+ return (
26
+ <Image
27
+ src={url}
28
+ height={height}
29
+ width={width}
30
+ {...imgProps}
31
+ {...assetProps}
32
+ unoptimized={mimeType === 'image/svg+xml'}
33
+ />
34
+ )
26
35
  }
27
36
 
28
37
  if (asset.mimeType === 'video/mp4') {
@@ -1,6 +1,6 @@
1
1
  import { Box, Typography, Link } from '@mui/material'
2
2
  import PageLink from 'next/link'
3
- import { Asset } from '../Asset'
3
+ import { Asset } from '../Asset/Asset'
4
4
  import { Renderers } from './types'
5
5
 
6
6
  export const defaultRenderers: Renderers = {
package/index.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export * from './components/RichText'
2
- export * from './components/Asset'
2
+ export * from './components/Asset/Asset'
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/graphcms-ui",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "3.0.1",
5
+ "version": "3.0.4",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,19 +12,21 @@
12
12
  }
13
13
  },
14
14
  "devDependencies": {
15
- "@graphcommerce/eslint-config-pwa": "^4.0.1",
16
- "@graphcommerce/prettier-config-pwa": "^4.0.1",
17
- "@graphcommerce/typescript-config-pwa": "^4.0.1",
18
- "@playwright/test": "^1.18.1"
15
+ "@graphcommerce/eslint-config-pwa": "^4.0.4",
16
+ "@graphcommerce/prettier-config-pwa": "^4.0.2",
17
+ "@graphcommerce/typescript-config-pwa": "^4.0.2",
18
+ "@playwright/test": "^1.19.1"
19
19
  },
20
20
  "dependencies": {
21
- "@graphcommerce/graphql": "^3.0.1",
22
- "@graphcommerce/image": "^3.0.1",
23
- "@graphcommerce/next-ui": "^4.0.1",
21
+ "@graphcommerce/graphql": "^3.0.3",
22
+ "@graphcommerce/image": "^3.1.0",
23
+ "@graphcommerce/next-ui": "^4.1.3",
24
+ "type-fest": "^2.12.0"
25
+ },
26
+ "peerDependencies": {
24
27
  "@mui/material": "^5.4.1",
25
28
  "next": "^12.0.10",
26
29
  "react": "^17.0.2",
27
- "react-dom": "^17.0.2",
28
- "type-fest": "^2.11.2"
30
+ "react-dom": "^17.0.2"
29
31
  }
30
32
  }