@graphcommerce/graphcms-ui 7.1.0-canary.49 → 7.1.0-canary.51

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,13 @@
1
1
  # Change Log
2
2
 
3
+ ## 7.1.0-canary.51
4
+
5
+ ## 7.1.0-canary.50
6
+
7
+ ### Patch Changes
8
+
9
+ - [#2114](https://github.com/graphcommerce-org/graphcommerce/pull/2114) [`5b63623e7`](https://github.com/graphcommerce-org/graphcommerce/commit/5b63623e70cb72afa82f6e39cefc77c7b0fec74e) - Add alt text to image inside rich text ([@StefanAngenent](https://github.com/StefanAngenent))
10
+
3
11
  ## 7.1.0-canary.49
4
12
 
5
13
  ## 7.1.0-canary.48
@@ -31,9 +31,9 @@ export const defaultRenderers: Renderers = {
31
31
  />
32
32
  )
33
33
  },
34
- image: ({ src, width, height, title, mimeType, sx }) => (
34
+ image: ({ src, width, height, title, altText, mimeType, sx }) => (
35
35
  <Box sx={sx}>
36
- <Asset asset={{ url: src, alt: title, width, height, mimeType }} />
36
+ <Asset asset={{ url: src, alt: altText ?? title, width, height, mimeType }} />
37
37
  </Box>
38
38
  ),
39
39
  video: ({ src, width, height, title, mimeType, sx }) => (
@@ -56,6 +56,7 @@ type ImageElement = {
56
56
  children: ElementOrTextNode[]
57
57
  src: string
58
58
  title: string
59
+ altText: string
59
60
  width: number
60
61
  height: number
61
62
  mimeType: string
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": "7.1.0-canary.49",
5
+ "version": "7.1.0-canary.51",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,12 +12,12 @@
12
12
  }
13
13
  },
14
14
  "peerDependencies": {
15
- "@graphcommerce/eslint-config-pwa": "^7.1.0-canary.49",
16
- "@graphcommerce/graphql": "^7.1.0-canary.49",
17
- "@graphcommerce/image": "^7.1.0-canary.49",
18
- "@graphcommerce/next-ui": "^7.1.0-canary.49",
19
- "@graphcommerce/prettier-config-pwa": "^7.1.0-canary.49",
20
- "@graphcommerce/typescript-config-pwa": "^7.1.0-canary.49",
15
+ "@graphcommerce/eslint-config-pwa": "^7.1.0-canary.51",
16
+ "@graphcommerce/graphql": "^7.1.0-canary.51",
17
+ "@graphcommerce/image": "^7.1.0-canary.51",
18
+ "@graphcommerce/next-ui": "^7.1.0-canary.51",
19
+ "@graphcommerce/prettier-config-pwa": "^7.1.0-canary.51",
20
+ "@graphcommerce/typescript-config-pwa": "^7.1.0-canary.51",
21
21
  "@mui/material": "^5.10.16",
22
22
  "next": "^14",
23
23
  "react": "^18.2.0",