Skip to content

Commit

Permalink
Renovating (#6911)
Browse files Browse the repository at this point in the history
* Update dependency @testing-library/dom to ^8.10.1 (#6817)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* Lock file maintenance (#6810)

* Lock file maintenance

* resolve type errors

* revert mdx bump to resolve vercel build errors

* conflict resolution

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: gwyneplaine <cc.lee@live.com.au>

* Update dependency @graphql-tools/schema to ^8.3.0 (#6815)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* Update nextjs monorepo to v12 (major) (#6835)

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Daniel Cousens <413395+dcousens@users.noreply.github.com>
Co-authored-by: mitchellhamilton <mitchell@hamil.town>

* Update dependency @manypkg/cli to ^0.19.0 (#6859)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* Update dependency @testing-library/dom to ^8.10.1 (#6817)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* Lock file maintenance (#6810)

* Lock file maintenance

* resolve type errors

* revert mdx bump to resolve vercel build errors

* conflict resolution

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: gwyneplaine <cc.lee@live.com.au>

* Update dependency @graphql-tools/schema to ^8.3.0 (#6815)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* Update nextjs monorepo to v12 (major) (#6835)

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Daniel Cousens <413395+dcousens@users.noreply.github.com>
Co-authored-by: mitchellhamilton <mitchell@hamil.town>

* Update dependency mime to ^2.6.0 (#6879)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* Update patch dependencies (#6857)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* Update dependency graphql to ^15.7.2 (#6860)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* Update dependency react-select to ^5.2.0 (#6874)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* Update typescript-eslint monorepo to ^5.3.0 (#6861)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* Lock file maintenance (#6852)

* Lock file maintenance

* resolve type errors

* resolve build issues

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: gwyneplaine <cc.lee@live.com.au>

* Update dependency react-focus-lock to ^2.6.0 (#6909)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* Update dependency eslint-plugin-react-hooks to ^4.3.0 (#6908)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* Update dependency apollo-server-types to ^3.4.0 (#6902)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* Update dependency @testing-library/dom to ^8.11.0 (#6901)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* Update patch dependencies (#6898)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* Lock file maintenance (#6890)

* Lock file maintenance

* explicitly declare return type of createExpressServer

* Fix things

* Update createExpressServer.ts

* add runtime classic to problematic docs pages

* fix prisma clientVersion in tests

* Create happy-flies-do.md

* more docs runtime fixes

* more docs runtime fixes

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: gwyneplaine <cc.lee@live.com.au>
Co-authored-by: mitchellhamilton <mitchell@hamil.town>

* Update typescript-eslint monorepo to ^5.4.0 (#6940)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* Update patch dependencies (patch) (#6936)

* Update patch dependencies

* explicitly declare return type for Portal element in keystone ui core utils

* Create tiny-impalas-call.md

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: gwyneplaine <cc.lee@live.com.au>

* Update dependency stripe to ^8.189.0 (#6938)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* Update dependency @emotion/cache to v11.6.0 (#6939)

Co-authored-by: Renovate Bot <bot@renovateapp.com>

* Update prisma monorepo to v3.5.0 (minor) (#6951)

* Update prisma monorepo to v3.5.0

* update tests

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: gwyneplaine <cc.lee@live.com.au>

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: gwyneplaine <cc.lee@live.com.au>
Co-authored-by: mitchellhamilton <mitchell@hamil.town>
  • Loading branch information
5 people committed Nov 17, 2021
1 parent 760ae82 commit 7485386
Show file tree
Hide file tree
Showing 55 changed files with 1,380 additions and 847 deletions.
5 changes: 5 additions & 0 deletions .changeset/happy-flies-do.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@keystone-next/keystone": patch
---

Explicitly declare return type on createExpressServer
5 changes: 5 additions & 0 deletions .changeset/tiny-impalas-call.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@keystone-ui/core": patch
---

Explicitly declare Portal return type.
4 changes: 2 additions & 2 deletions design-system/packages/button/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"main": "dist/keystone-ui-button.cjs.js",
"module": "dist/keystone-ui-button.esm.js",
"devDependencies": {
"@types/react": "^17.0.33"
"@types/react": "^17.0.35"
},
"dependencies": {
"@babel/runtime": "^7.15.4",
"@babel/runtime": "^7.16.3",
"@keystone-ui/core": "^3.2.1",
"@keystone-ui/icons": "^4.0.2",
"@keystone-ui/loading": "^4.0.2",
Expand Down
6 changes: 3 additions & 3 deletions design-system/packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "dist/keystone-ui-core.cjs.js",
"module": "dist/keystone-ui-core.esm.js",
"devDependencies": {
"@types/react": "^17.0.33",
"@types/react": "^17.0.35",
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
Expand All @@ -14,8 +14,8 @@
"react-dom": "^17.0.2"
},
"dependencies": {
"@babel/runtime": "^7.15.4",
"@emotion/react": "^11.5.0",
"@babel/runtime": "^7.16.3",
"@emotion/react": "^11.6.0",
"@types/facepaint": "^1.2.2",
"facepaint": "^1.2.1"
},
Expand Down
2 changes: 1 addition & 1 deletion design-system/packages/core/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ type Props = {
children: ReactElement;
};

export const Portal = ({ children }: Props) => {
export const Portal = ({ children }: Props): React.ReactPortal | null => {
if (typeof document === 'undefined') {
return null;
}
Expand Down
8 changes: 4 additions & 4 deletions design-system/packages/fields/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@
"main": "dist/keystone-ui-fields.cjs.js",
"module": "dist/keystone-ui-fields.esm.js",
"devDependencies": {
"@types/react": "^17.0.33"
"@types/react": "^17.0.35"
},
"dependencies": {
"@babel/runtime": "^7.15.4",
"@babel/runtime": "^7.16.3",
"@keystone-ui/core": "^3.2.1",
"@keystone-ui/icons": "^4.0.2",
"@keystone-ui/popover": "^4.0.5",
"@types/react-select": "^5.0.0",
"date-fns": "^2.25.0",
"react": "^17.0.2",
"react-day-picker": "npm:react-day-picker@^7.4.8",
"react-focus-lock": "^2.5.2",
"react-select": "^5.2.0"
"react-focus-lock": "^2.6.0",
"react-select": "^5.2.1"
},
"engines": {
"node": "^14.15 || ^16.13"
Expand Down
4 changes: 2 additions & 2 deletions design-system/packages/icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@svgr/plugin-jsx": "^5.5.0",
"@svgr/plugin-prettier": "^5.5.0",
"@svgr/plugin-svgo": "^5.5.0",
"@types/react": "^17.0.33",
"@types/react": "^17.0.35",
"chalk": "^4.1.2",
"feather-icons": "^4.28.0",
"fs-extra": "^10.0.0",
Expand All @@ -21,7 +21,7 @@
"to-pascal-case": "^1.0.0"
},
"dependencies": {
"@babel/runtime": "^7.15.4",
"@babel/runtime": "^7.16.3",
"@keystone-ui/core": "^3.2.1"
},
"peerDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions design-system/packages/loading/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"main": "dist/keystone-ui-loading.cjs.js",
"module": "dist/keystone-ui-loading.esm.js",
"devDependencies": {
"@types/react": "^17.0.33"
"@types/react": "^17.0.35"
},
"dependencies": {
"@babel/runtime": "^7.15.4",
"@babel/runtime": "^7.16.3",
"@keystone-ui/core": "^3.2.1",
"react": "^17.0.2"
},
Expand Down
6 changes: 3 additions & 3 deletions design-system/packages/modals/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"main": "dist/keystone-ui-modals.cjs.js",
"module": "dist/keystone-ui-modals.esm.js",
"devDependencies": {
"@types/react": "^17.0.33"
"@types/react": "^17.0.35"
},
"dependencies": {
"@babel/runtime": "^7.15.4",
"@babel/runtime": "^7.16.3",
"@keystone-ui/button": "^5.0.2",
"@keystone-ui/core": "^3.2.1",
"react": "^17.0.2",
"react-focus-lock": "^2.5.2",
"react-focus-lock": "^2.6.0",
"react-remove-scroll": "^2.4.3",
"react-transition-group": "^4.4.2"
},
Expand Down
4 changes: 2 additions & 2 deletions design-system/packages/notice/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"main": "dist/keystone-ui-notice.cjs.js",
"module": "dist/keystone-ui-notice.esm.js",
"devDependencies": {
"@types/react": "^17.0.33"
"@types/react": "^17.0.35"
},
"dependencies": {
"@babel/runtime": "^7.15.4",
"@babel/runtime": "^7.16.3",
"@keystone-ui/button": "^5.0.2",
"@keystone-ui/core": "^3.2.1",
"@keystone-ui/icons": "^4.0.2",
Expand Down
4 changes: 2 additions & 2 deletions design-system/packages/options/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
"react": "^17.0.2"
},
"dependencies": {
"@babel/runtime": "^7.15.4",
"@babel/runtime": "^7.16.3",
"@keystone-ui/core": "^3.2.1",
"@keystone-ui/fields": "^5.0.1",
"@keystone-ui/icons": "^4.0.2",
"@types/react-select": "^5.0.0",
"react-select": "^5.2.0"
"react-select": "^5.2.1"
},
"engines": {
"node": "^14.15 || ^16.13"
Expand Down
2 changes: 1 addition & 1 deletion design-system/packages/pill/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"react": "^17.0.2"
},
"dependencies": {
"@babel/runtime": "^7.15.4",
"@babel/runtime": "^7.16.3",
"@keystone-ui/core": "^3.2.1",
"@keystone-ui/icons": "^4.0.2"
},
Expand Down
2 changes: 1 addition & 1 deletion design-system/packages/popover/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"react-dom": "^17.0.2"
},
"dependencies": {
"@babel/runtime": "^7.15.4",
"@babel/runtime": "^7.16.3",
"@keystone-ui/core": "^3.2.1",
"@popperjs/core": "^2.10.2",
"focus-trap": "^6.7.1",
Expand Down
4 changes: 2 additions & 2 deletions design-system/packages/segmented-control/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
"main": "dist/keystone-ui-segmented-control.cjs.js",
"module": "dist/keystone-ui-segmented-control.esm.js",
"devDependencies": {
"@types/react": "^17.0.33",
"@types/react": "^17.0.35",
"react": "^17.0.2"
},
"dependencies": {
"@babel/runtime": "^7.15.4",
"@babel/runtime": "^7.16.3",
"@keystone-ui/core": "^3.2.1"
},
"peerDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions design-system/packages/toast/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
"main": "dist/keystone-ui-toast.cjs.js",
"module": "dist/keystone-ui-toast.esm.js",
"devDependencies": {
"@types/react": "^17.0.33",
"@types/react": "^17.0.35",
"react": "^17.0.2"
},
"dependencies": {
"@babel/runtime": "^7.15.4",
"@babel/runtime": "^7.16.3",
"@keystone-ui/core": "^3.2.1",
"@keystone-ui/icons": "^4.0.2"
},
Expand Down
2 changes: 1 addition & 1 deletion design-system/packages/tooltip/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"react-dom": "^17.0.2"
},
"dependencies": {
"@babel/runtime": "^7.15.4",
"@babel/runtime": "^7.16.3",
"@keystone-ui/core": "^3.2.1",
"@keystone-ui/popover": "^4.0.5",
"apply-ref": "^1.0.0"
Expand Down
8 changes: 4 additions & 4 deletions design-system/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dev": "next -p 8080"
},
"dependencies": {
"@babel/runtime": "^7.15.4",
"@babel/runtime": "^7.16.3",
"@keystone-ui/button": "^5.0.2",
"@keystone-ui/core": "^3.2.1",
"@keystone-ui/fields": "^5.0.1",
Expand All @@ -21,10 +21,10 @@
"@keystone-ui/toast": "^4.0.4",
"@keystone-ui/tooltip": "^4.0.3",
"@preconstruct/next": "^3.0.1",
"@types/react": "^17.0.33",
"@types/react-dom": "^17.0.10",
"@types/react": "^17.0.35",
"@types/react-dom": "^17.0.11",
"@types/tinycolor2": "^1.4.3",
"next": "^12.0.2",
"next": "^12.0.4",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"tinycolor2": "^1.4.2"
Expand Down
1 change: 0 additions & 1 deletion docs/babel.config.js

This file was deleted.

1 change: 1 addition & 0 deletions docs/components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @jsxRuntime classic */
/** @jsx jsx */
import {
createContext,
Expand Down
5 changes: 3 additions & 2 deletions docs/components/Markdown.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/** @jsxRuntime classic */
/** @jsx jsx */
import { MDXProvider } from '@mdx-js/react';
import { jsx } from '@emotion/react';
import { ReactNode } from 'react';
import { ReactElement, ReactNode } from 'react';

import { H1, H2, H3, H4, H5, H6 } from '../components/docs/Heading';
import { Code, InlineCode } from '../components/primitives/Code';
Expand All @@ -27,7 +28,7 @@ export function Markdown({
children: ReactNode;
description: string;
}) {
const headings = getHeadings(children);
const headings = getHeadings((children as ReactElement).props.children);
const firstHeading = headings[0]?.label;

if (!firstHeading) {
Expand Down
1 change: 1 addition & 0 deletions docs/components/Page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @jsxRuntime classic */
/** @jsx jsx */
import { useRef, Fragment, ReactNode } from 'react';
import { useRouter } from 'next/router';
Expand Down
1 change: 1 addition & 0 deletions docs/components/docs/Sidebar.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @jsxRuntime classic */
/** @jsx jsx */
import { jsx } from '@emotion/react';

Expand Down
1 change: 1 addition & 0 deletions docs/components/icons/Bulb.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @jsxRuntime classic */
/** @jsx jsx */
import { jsx } from '@emotion/react';

Expand Down
1 change: 1 addition & 0 deletions docs/components/icons/Video.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @jsxRuntime classic */
/** @jsx jsx */
import { jsx } from '@emotion/react';

Expand Down
1 change: 1 addition & 0 deletions docs/components/primitives/EditButton.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @jsxRuntime classic */
/** @jsx jsx */
import { jsx } from '@emotion/react';

Expand Down
5 changes: 2 additions & 3 deletions docs/lib/getHeadings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@ export type Heading = {
export function getHeadings(children: ReactNode): Heading[] {
return Children.toArray(children)
.filter((child: any) => {
return child.props?.mdxType && ['h1', 'h2', 'h3'].includes(child.props.mdxType);
return child.type && ['h1', 'h2', 'h3'].includes(child.type);
})
.map((child: any) => {
const childrenText = Array.isArray(child.props.children)
? child.props.children.join('').replace('[object Object]', '')
: child.props.children;
const depth =
(child.props?.mdxType && parseInt(child.props.mdxType.replace('h', ''), 0)) ?? 0;
const depth = (child.type && parseInt(child.type.replace('h', ''), 0)) ?? 0;
return {
id: depth > 0 ? `${slugify(childrenText)}` : '',
depth,
Expand Down
20 changes: 10 additions & 10 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,39 +10,39 @@
"sitemap": "yarn next-sitemap"
},
"dependencies": {
"@babel/runtime": "^7.15.4",
"@emotion/cache": "11.5.0",
"@emotion/react": "^11.5.0",
"@babel/runtime": "^7.16.3",
"@emotion/cache": "11.6.0",
"@emotion/react": "^11.6.0",
"@emotion/server": "11.4.0",
"@emotion/weak-memoize": "^0.2.5",
"@keystone-next/fields-document": "^13.0.0",
"@mdx-js/loader": "next",
"@mdx-js/react": "^1.6.22",
"@next/mdx": "^12.0.2",
"@next/mdx": "^12.0.4",
"@preconstruct/next": "^3.0.1",
"@sindresorhus/slugify": "^1.1.2",
"@types/gtag.js": "^0.0.7",
"@types/gtag.js": "^0.0.8",
"@types/mdx-js__react": "^1.5.5",
"@types/react": "^17.0.33",
"@types/react-dom": "^17.0.10",
"@types/react": "^17.0.35",
"@types/react-dom": "^17.0.11",
"classnames": "^2.3.1",
"copy-to-clipboard": "^3.3.1",
"date-fns": "^2.25.0",
"facepaint": "^1.2.1",
"lodash.debounce": "^4.0.8",
"next": "^12.0.2",
"next": "^12.0.4",
"next-compose-plugins": "^2.2.1",
"prism-react-renderer": "^1.2.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-focus-lock": "^2.5.2",
"react-focus-lock": "^2.6.0",
"react-toast-notifications": "^2.5.1",
"remark-gfm": "^1.0.0",
"remark-hint": "^1.0.10"
},
"devDependencies": {
"@types/lodash.debounce": "^4.0.6",
"next-sitemap": "^1.6.199",
"next-sitemap": "^1.6.203",
"start-server-and-test": "^1.14.0",
"typescript": "^4.4.4"
},
Expand Down
1 change: 1 addition & 0 deletions docs/pages/404.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @jsxRuntime classic */
/** @jsx jsx */
import { jsx } from '@emotion/react';
import { useRouter } from 'next/router';
Expand Down
1 change: 1 addition & 0 deletions docs/pages/for-content-management.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @jsxRuntime classic */
/** @jsx jsx */
import { jsx } from '@emotion/react';
import Image from 'next/image';
Expand Down
1 change: 1 addition & 0 deletions docs/pages/for-developers.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @jsxRuntime classic */
/** @jsx jsx */
import { jsx } from '@emotion/react';
import Image from 'next/image';
Expand Down
1 change: 1 addition & 0 deletions docs/pages/for-organisations.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @jsxRuntime classic */
/** @jsx jsx */
import { jsx } from '@emotion/react';
import Image from 'next/image';
Expand Down
1 change: 1 addition & 0 deletions docs/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @jsxRuntime classic */
/** @jsx jsx */
import { jsx } from '@emotion/react';
import Image from 'next/image';
Expand Down
1 change: 1 addition & 0 deletions docs/pages/updates/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @jsxRuntime classic */
/** @jsx jsx */
import { HTMLAttributes, ReactNode } from 'react';
import { jsx } from '@emotion/react';
Expand Down
1 change: 1 addition & 0 deletions docs/pages/updates/roadmap.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @jsxRuntime classic */
/** @jsx jsx */
import { ComponentProps, Fragment, ReactNode } from 'react';
import { jsx } from '@emotion/react';
Expand Down
1 change: 1 addition & 0 deletions docs/pages/why-keystone.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @jsxRuntime classic */
/** @jsx jsx */
import { jsx } from '@emotion/react';
import Image from 'next/image';
Expand Down
2 changes: 1 addition & 1 deletion examples-staging/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dependencies": {
"@keystone-next/auth": "^36.0.0",
"@keystone-next/keystone": "^28.0.0",
"next": "^12.0.2",
"next": "^12.0.4",
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
Expand Down
Loading

0 comments on commit 7485386

Please sign in to comment.