@graphcommerce/graphcms-ui 3.0.6 → 3.0.9

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,36 @@
1
1
  # Change Log
2
2
 
3
+ ## 3.0.9
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1378](https://github.com/graphcommerce-org/graphcommerce/pull/1378) [`b610a6e40`](https://github.com/graphcommerce-org/graphcommerce/commit/b610a6e4049e8c9e8b5d2aeff31b8e1bfc24abe5) Thanks [@paales](https://github.com/paales)! - Pin all versions internally so we can’t end up in an unfixable state for the user
8
+
9
+ - Updated dependencies [[`b610a6e40`](https://github.com/graphcommerce-org/graphcommerce/commit/b610a6e4049e8c9e8b5d2aeff31b8e1bfc24abe5)]:
10
+ - @graphcommerce/graphql@3.0.7
11
+ - @graphcommerce/image@3.1.3
12
+ - @graphcommerce/next-ui@4.5.1
13
+
14
+ ## 3.0.8
15
+
16
+ ### Patch Changes
17
+
18
+ - [#1369](https://github.com/graphcommerce-org/graphcommerce/pull/1369) [`ae6449502`](https://github.com/graphcommerce-org/graphcommerce/commit/ae64495024a455bbe5188588604368c1542840c9) Thanks [@paales](https://github.com/paales)! - Upgraded dependencies
19
+
20
+ - Updated dependencies [[`892018809`](https://github.com/graphcommerce-org/graphcommerce/commit/8920188093d0422ec50580e408dc28ac5f93e46a), [`892018809`](https://github.com/graphcommerce-org/graphcommerce/commit/8920188093d0422ec50580e408dc28ac5f93e46a), [`ae6449502`](https://github.com/graphcommerce-org/graphcommerce/commit/ae64495024a455bbe5188588604368c1542840c9), [`892018809`](https://github.com/graphcommerce-org/graphcommerce/commit/8920188093d0422ec50580e408dc28ac5f93e46a), [`892018809`](https://github.com/graphcommerce-org/graphcommerce/commit/8920188093d0422ec50580e408dc28ac5f93e46a)]:
21
+ - @graphcommerce/graphql@3.0.6
22
+ - @graphcommerce/next-ui@4.5.0
23
+ - @graphcommerce/image@3.1.2
24
+
25
+ ## 3.0.7
26
+
27
+ ### Patch Changes
28
+
29
+ - [#1353](https://github.com/graphcommerce-org/graphcommerce/pull/1353) [`0e5ee7ba8`](https://github.com/graphcommerce-org/graphcommerce/commit/0e5ee7ba89698e5e711001e846ed182528060cba) Thanks [@paales](https://github.com/paales)! - Eslint: enable rules that were previously disabled and make fixes
30
+
31
+ - Updated dependencies [[`49a2d6617`](https://github.com/graphcommerce-org/graphcommerce/commit/49a2d661712e1787fba46c6195f7b559189e23d9), [`f67da3cfb`](https://github.com/graphcommerce-org/graphcommerce/commit/f67da3cfbe2dcf5ea23519d088c5aa0074029182), [`218766869`](https://github.com/graphcommerce-org/graphcommerce/commit/218766869f7468c067a590857c942f3819f8add4), [`0e5ee7ba8`](https://github.com/graphcommerce-org/graphcommerce/commit/0e5ee7ba89698e5e711001e846ed182528060cba), [`829b8690b`](https://github.com/graphcommerce-org/graphcommerce/commit/829b8690bc5d0a46e596299e4120e9837a9f179c)]:
32
+ - @graphcommerce/next-ui@4.4.0
33
+
3
34
  ## 3.0.6
4
35
 
5
36
  ### Patch Changes
@@ -121,7 +121,7 @@ function RenderElement(element: ElementNode & AdditionalProps) {
121
121
 
122
122
  if (process.env.NODE_ENV !== 'production') {
123
123
  console.error(element)
124
- throw Error(`RichText: Unknown Element: ${element.type}`)
124
+ throw Error(`RichText: Unknown Element: ${type}`)
125
125
  }
126
126
  return <RenderChildren childNodes={children} sxRenderer={sxRenderer} renderers={renderers} />
127
127
  }
@@ -27,9 +27,9 @@ export const defaultRenderers: Renderers = {
27
27
  video: ({ src, width, height, title, mimeType }) => (
28
28
  <Asset asset={{ url: src, alt: title, width, height, mimeType }} />
29
29
  ),
30
- link: ({ href, ...props }) => (
30
+ link: ({ href, openInNewTab, ...props }) => (
31
31
  <PageLink href={href} passHref>
32
- <Link underline='hover' {...props} />
32
+ <Link underline='hover' {...props} target={openInNewTab ? '_blank' : undefined} />
33
33
  </PageLink>
34
34
  ),
35
35
  table: (props) => <Box component='table' {...props} />,
@@ -43,6 +43,7 @@ type LinkElement = {
43
43
  type: 'link'
44
44
  children: ElementOrTextNode[]
45
45
  href: string
46
+ openInNewTab?: boolean
46
47
  }
47
48
 
48
49
  type ImageElement = {
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.6",
5
+ "version": "3.0.9",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,20 +12,20 @@
12
12
  }
13
13
  },
14
14
  "devDependencies": {
15
- "@graphcommerce/eslint-config-pwa": "^4.0.5",
16
- "@graphcommerce/prettier-config-pwa": "^4.0.3",
15
+ "@graphcommerce/eslint-config-pwa": "^4.1.4",
16
+ "@graphcommerce/prettier-config-pwa": "^4.0.5",
17
17
  "@graphcommerce/typescript-config-pwa": "^4.0.2",
18
- "@playwright/test": "^1.19.2"
18
+ "@playwright/test": "^1.20.1",
19
+ "type-fest": "2.12.1"
19
20
  },
20
21
  "dependencies": {
21
- "@graphcommerce/graphql": "^3.0.4",
22
- "@graphcommerce/image": "^3.1.1",
23
- "@graphcommerce/next-ui": "^4.3.0",
24
- "type-fest": "^2.12.0"
22
+ "@graphcommerce/graphql": "3.0.7",
23
+ "@graphcommerce/image": "3.1.3",
24
+ "@graphcommerce/next-ui": "4.5.1"
25
25
  },
26
26
  "peerDependencies": {
27
- "@mui/material": "^5.4.1",
28
- "next": "^12.0.10",
27
+ "@mui/material": "5.5.3",
28
+ "next": "12.1.2",
29
29
  "react": "^17.0.2",
30
30
  "react-dom": "^17.0.2"
31
31
  }