@graphcommerce/graphcms-ui 8.1.0-canary.43 → 8.1.0-canary.45

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,9 @@
1
1
  # Change Log
2
2
 
3
+ ## 8.1.0-canary.45
4
+
5
+ ## 8.1.0-canary.44
6
+
3
7
  ## 8.1.0-canary.43
4
8
 
5
9
  ## 8.1.0-canary.42
@@ -1,5 +1,6 @@
1
1
  import { Image, ImageProps } from '@graphcommerce/image'
2
2
  import { styled, SxProps, Theme } from '@mui/material'
3
+ import { memo } from 'react'
3
4
  import { AssetFragment } from './Asset.gql'
4
5
 
5
6
  export type { AssetFragment } from './Asset.gql'
@@ -18,7 +19,7 @@ type AssetProps = {
18
19
  sx?: SxProps<Theme>
19
20
  } & Omit<ImageProps, 'src' | 'width' | 'height' | 'alt' | 'sx'>
20
21
 
21
- export function Asset(props: AssetProps) {
22
+ export const Asset = memo<AssetProps>((props) => {
22
23
  const { asset, sx = [], ...imgProps } = props
23
24
 
24
25
  if (isImage(asset)) {
@@ -55,4 +56,4 @@ export function Asset(props: AssetProps) {
55
56
 
56
57
  if (process.env.NODE_ENV !== 'production') return <div>{asset.mimeType} not supported</div>
57
58
  return null
58
- }
59
+ })
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": "8.1.0-canary.43",
5
+ "version": "8.1.0-canary.45",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,13 +12,13 @@
12
12
  }
13
13
  },
14
14
  "peerDependencies": {
15
- "@graphcommerce/ecommerce-ui": "^8.1.0-canary.43",
16
- "@graphcommerce/eslint-config-pwa": "^8.1.0-canary.43",
17
- "@graphcommerce/graphql": "^8.1.0-canary.43",
18
- "@graphcommerce/image": "^8.1.0-canary.43",
19
- "@graphcommerce/next-ui": "^8.1.0-canary.43",
20
- "@graphcommerce/prettier-config-pwa": "^8.1.0-canary.43",
21
- "@graphcommerce/typescript-config-pwa": "^8.1.0-canary.43",
15
+ "@graphcommerce/ecommerce-ui": "^8.1.0-canary.45",
16
+ "@graphcommerce/eslint-config-pwa": "^8.1.0-canary.45",
17
+ "@graphcommerce/graphql": "^8.1.0-canary.45",
18
+ "@graphcommerce/image": "^8.1.0-canary.45",
19
+ "@graphcommerce/next-ui": "^8.1.0-canary.45",
20
+ "@graphcommerce/prettier-config-pwa": "^8.1.0-canary.45",
21
+ "@graphcommerce/typescript-config-pwa": "^8.1.0-canary.45",
22
22
  "@mui/material": "^5.10.16",
23
23
  "next": "*",
24
24
  "react": "^18.2.0",