@graphcommerce/graphcms-ui 3.0.3 → 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,17 @@
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
+
3
15
  ## 3.0.3
4
16
 
5
17
  ### 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.3",
5
+ "version": "3.0.4",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,7 +12,7 @@
12
12
  }
13
13
  },
14
14
  "devDependencies": {
15
- "@graphcommerce/eslint-config-pwa": "^4.0.3",
15
+ "@graphcommerce/eslint-config-pwa": "^4.0.4",
16
16
  "@graphcommerce/prettier-config-pwa": "^4.0.2",
17
17
  "@graphcommerce/typescript-config-pwa": "^4.0.2",
18
18
  "@playwright/test": "^1.19.1"
@@ -20,7 +20,7 @@
20
20
  "dependencies": {
21
21
  "@graphcommerce/graphql": "^3.0.3",
22
22
  "@graphcommerce/image": "^3.1.0",
23
- "@graphcommerce/next-ui": "^4.1.2",
23
+ "@graphcommerce/next-ui": "^4.1.3",
24
24
  "type-fest": "^2.12.0"
25
25
  },
26
26
  "peerDependencies": {