Skip to content

Commit 1da7b6d

Browse files
deps: bump react to 18.x and Next.js to 15.x (#35)
* feat(global): bump react to 18.x to in non-arch packages * feat(app-next)!: move Next.js to peer dependencies to peerDependencies * feat(global)!: rescope @arch-ui under @open-arch-ui scope * feat(global): sync arch packages versions * feat(global): bump react to 18.x to in arch packages * test(global): fix cypress run after async renders
1 parent c3488e3 commit 1da7b6d

File tree

224 files changed

+1868
-2296
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

224 files changed

+1868
-2296
lines changed

docs/tutorials/custom-fields.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,13 @@ export default function StarsCell({ field, data }) {
125125

126126
## Field
127127

128-
The field component provides the main interface used when creating or editing list items in Keystone. To get a consistent look, we're going to import some wrapping components from `@arch-ui/fields`, that's Keystone's UI library. This will render the labels and provided consistent spacing. Other than this we simply delegate the `onChange` event to the `Stars` so that values can be updated when a user clicks on the stars.
128+
The field component provides the main interface used when creating or editing list items in Keystone. To get a consistent look, we're going to import some wrapping components from `@open-arch-ui/fields`, that's Keystone's UI library. This will render the labels and provided consistent spacing. Other than this we simply delegate the `onChange` event to the `Stars` so that values can be updated when a user clicks on the stars.
129129

130130
```jsx
131131
/** @jsx jsx */
132132

133133
import { jsx } from '@emotion/core';
134-
import { FieldContainer, FieldLabel, FieldInput } from '@arch-ui/fields';
134+
import { FieldContainer, FieldLabel, FieldInput } from '@open-arch-ui/fields';
135135
import Stars from './Stars';
136136

137137
const StarsField = ({ field, value, errors, onChange }) => (

examples/blog/admin/pages/about.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22

3-
import { Container } from '@arch-ui/layout';
4-
import { Title } from '@arch-ui/typography';
3+
import { Container } from '@open-arch-ui/layout';
4+
import { Title } from '@open-arch-ui/typography';
55

66
const About = () => (
77
<Container>

examples/blog/admin/pages/dashboard.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22

3-
import { Container } from '@arch-ui/layout';
4-
import { Title } from '@arch-ui/typography';
3+
import { Container } from '@open-arch-ui/layout';
4+
import { Title } from '@open-arch-ui/typography';
55

66
const Dashboard = () => (
77
<Container>

examples/blog/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
},
1616
"dependencies": {
1717
"@apollo/client": "^3.11.8",
18-
"@arch-ui/layout": "^0.2.17",
19-
"@arch-ui/typography": "^0.0.21",
2018
"@emotion/core": "^10.1.1",
2119
"@emotion/styled": "^10.0.27",
20+
"@open-arch-ui/layout": "workspace:^",
21+
"@open-arch-ui/typography": "workspace:^",
2222
"@open-keystone/adapter-mongoose": "workspace:^",
2323
"@open-keystone/app-admin-ui": "workspace:^",
2424
"@open-keystone/app-graphql": "workspace:^",
@@ -41,9 +41,9 @@
4141
"express": "^4.17.1",
4242
"graphql": "^16.10.0",
4343
"isomorphic-unfetch": "^3.1.0",
44-
"next": "10.2.3",
45-
"react": "^17.0.2",
46-
"react-dom": "^17.0.2"
44+
"next": "15.4.1",
45+
"react": "^18.3.1",
46+
"react-dom": "^18.3.1"
4747
},
4848
"repository": "https://github.com/keystonejs/keystone-5/tree/main/examples/blog"
4949
}

examples/custom-fields/fields/MultiCheck/views/Field.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
import { jsx } from '@emotion/core';
44
import { useState, useEffect } from 'react';
5-
import { FieldContainer, FieldDescription } from '@arch-ui/fields';
5+
import { FieldContainer, FieldDescription } from '@open-arch-ui/fields';
66
import { Checkbox } from './MultiCheck';
77
import { ShieldIcon } from '@primer/octicons-react';
8-
import { Lozenge } from '@arch-ui/lozenge';
9-
import { colors, gridSize } from '@arch-ui/theme';
8+
import { Lozenge } from '@open-arch-ui/lozenge';
9+
import { colors, gridSize } from '@open-arch-ui/theme';
1010

1111
const MultiCheckField = ({ onChange, autoFocus, field, value, errors }) => {
1212
const initialState = value ? value : field.config.defaultValue;

examples/custom-fields/fields/MultiCheck/views/MultiCheck.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/** @jsx jsx */
22

33
import { jsx } from '@emotion/core';
4-
import { FieldInput } from '@arch-ui/fields';
5-
import { CheckboxPrimitive } from '@arch-ui/controls';
4+
import { FieldInput } from '@open-arch-ui/fields';
5+
import { CheckboxPrimitive } from '@open-arch-ui/controls';
66

77
export const Checkbox = ({ label, value, onChange }) => {
88
const checked = value || false;

examples/custom-fields/fields/Stars/views/Field.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/** @jsx jsx */
22

33
import { jsx } from '@emotion/core';
4-
import { FieldContainer, FieldLabel, FieldInput } from '@arch-ui/fields';
4+
import { FieldContainer, FieldLabel, FieldInput } from '@open-arch-ui/fields';
55
import Stars from './Stars';
66

77
const StarsField = ({ field, value, errors, onChange }) => (

examples/custom-fields/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
"start": "cross-env NODE_ENV=production keystone start"
1515
},
1616
"dependencies": {
17-
"@arch-ui/controls": "^0.1.12",
18-
"@arch-ui/fields": "^3.0.8",
19-
"@arch-ui/lozenge": "^0.0.20",
20-
"@arch-ui/theme": "^0.0.14",
2117
"@emotion/core": "^10.1.1",
18+
"@open-arch-ui/controls": "workspace:^",
19+
"@open-arch-ui/fields": "workspace:^",
20+
"@open-arch-ui/lozenge": "workspace:^",
21+
"@open-arch-ui/theme": "workspace:^",
2222
"@open-keystone/adapter-mongoose": "workspace:^",
2323
"@open-keystone/app-admin-ui": "workspace:^",
2424
"@open-keystone/app-graphql": "workspace:^",
@@ -27,7 +27,7 @@
2727
"@open-keystone/keystone": "workspace:^",
2828
"@primer/octicons-react": "^11.3.0",
2929
"cross-env": "^7.0.3",
30-
"react": "^17.0.2"
30+
"react": "^18.3.1"
3131
},
3232
"repository": "https://github.com/keystonejs/keystone-5/tree/main/examples/custom-fields"
3333
}

examples/meetup/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@
4040
"graphql": "^16.10.0",
4141
"isomorphic-unfetch": "^3.1.0",
4242
"lodash.uniqby": "^4.7.0",
43-
"next": "10.2.3",
43+
"next": "15.4.1",
4444
"prop-types": "^15.7.2",
45-
"react": "^17.0.2",
46-
"react-dom": "^17.0.2",
45+
"react": "^18.3.1",
46+
"react-dom": "^18.3.1",
4747
"react-toast-notifications": "^2.4.4",
4848
"react-use-form-state": "^0.13.2",
4949
"uuid": "^8.3.2"

packages/apollo-helpers/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"@apollo/client": "^3.11.8",
1515
"@babel/runtime": "^7.14.6",
1616
"@jesstelford/apollo-cache-invalidation": "^0.0.3-gh3-gh5",
17-
"@types/react": "^17.0.11",
17+
"@types/react": "^18.3.1",
1818
"apollo-cache": "^1.3.5",
1919
"apollo-link": "^1.2.14",
2020
"apollo-utilities": "^1.3.4",
@@ -25,10 +25,10 @@
2525
"react-adopt": "^0.6.0"
2626
},
2727
"peerDependencies": {
28-
"react": "^17.0.2"
28+
"react": "^18.3.1"
2929
},
3030
"devDependencies": {
31-
"react": "^17.0.2"
31+
"react": "^18.3.1"
3232
},
3333
"main": "dist/apollo-helpers.cjs.js",
3434
"module": "dist/apollo-helpers.esm.js",

0 commit comments

Comments
 (0)