@graphcommerce/graphcms-ui 5.1.0-canary.2 → 5.1.0-canary.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,16 @@
1
1
  # Change Log
2
2
 
3
+ ## 5.1.0-canary.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1752](https://github.com/graphcommerce-org/graphcommerce/pull/1752) [`2a6a4d9ec`](https://github.com/graphcommerce-org/graphcommerce/commit/2a6a4d9ecfa1b58a66ba9b9d00016d6feda9aa95) - Updated dependencies to latest versions, except for nextjs; Solve tons of peer dependency issues.
8
+
9
+ - Updated the @mui/material package
10
+ - Removed dependencies on react-hook-form-mui and @playwright/test
11
+ - Upgraded dependencies including type-fest and graphql-mesh
12
+ - Solved peer dependency issues ([@paales](https://github.com/paales))
13
+
3
14
  ## 5.1.0-canary.2
4
15
 
5
16
  ## 5.1.0-canary.1
@@ -1,4 +1,3 @@
1
- import { removeNull } from '@graphcommerce/graphql'
2
1
  import { Image, ImageProps } from '@graphcommerce/image'
3
2
  import { AssetFragment } from './Asset.gql'
4
3
 
@@ -21,12 +20,13 @@ export function Asset(props: AssetProps) {
21
20
  const { asset, ...imgProps } = props
22
21
 
23
22
  if (isImage(asset)) {
24
- const { url, height, mimeType, size, width, ...assetProps } = removeNull(asset)
23
+ const { url, height, mimeType, size, width, alt, ...assetProps } = asset
25
24
  return (
26
25
  <Image
27
26
  src={url}
28
27
  height={height}
29
28
  width={width}
29
+ alt={alt ?? undefined}
30
30
  {...imgProps}
31
31
  {...assetProps}
32
32
  unoptimized={mimeType === 'image/svg+xml'}
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": "5.1.0-canary.2",
5
+ "version": "5.1.0-canary.3",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,21 +12,19 @@
12
12
  }
13
13
  },
14
14
  "devDependencies": {
15
- "@graphcommerce/eslint-config-pwa": "^5.1.0-canary.2",
16
- "@graphcommerce/prettier-config-pwa": "^5.1.0-canary.2",
17
- "@graphcommerce/typescript-config-pwa": "^5.1.0-canary.2",
18
- "@playwright/test": "^1.21.1",
19
- "type-fest": "^2.12.2"
15
+ "@graphcommerce/eslint-config-pwa": "5.1.0-canary.3",
16
+ "@graphcommerce/prettier-config-pwa": "5.1.0-canary.3",
17
+ "@graphcommerce/typescript-config-pwa": "5.1.0-canary.3"
20
18
  },
21
19
  "dependencies": {
22
- "@graphcommerce/graphql": "5.1.0-canary.2",
23
- "@graphcommerce/image": "5.1.0-canary.2",
24
- "@graphcommerce/next-ui": "5.1.0-canary.2"
20
+ "@graphcommerce/graphql": "5.1.0-canary.3",
21
+ "@graphcommerce/image": "5.1.0-canary.3",
22
+ "@graphcommerce/next-ui": "5.1.0-canary.3"
25
23
  },
26
24
  "peerDependencies": {
27
- "@mui/material": "5.5.3",
25
+ "@mui/material": "^5.10.16",
28
26
  "next": "^12.1.2",
29
- "react": "^18.0.0",
30
- "react-dom": "^18.0.0"
27
+ "react": "^18.2.0",
28
+ "react-dom": "^18.2.0"
31
29
  }
32
30
  }