Skip to content

Commit

Permalink
Update website_live with master (keystonejs#6472)
Browse files Browse the repository at this point in the history
* Website live (keystonejs#6340)

* Update index.tsx (keystonejs#6278)

* Fix updates bit on the website (keystonejs#6287)

* Content management update (keystonejs#6282)

* Add Wes Testimonial. Cleanup.

* Typos

* Fixed whitespace (keystonejs#6283)

* Update Header.tsx (keystonejs#6289)

* Add CTA block for Web Box eCommerce Course (keystonejs#6273)

* Content update (keystonejs#6290)

* Style fixes (keystonejs#6291)

* Fix styles: CommunityCta

* Fix Styles: Homepage

* Stylefix: Wes CTA block

* Style fixes: Why Keystone

* Style fixes: Content Management

* Style fixes: Developers

* Style fixes: Organisations

* Style fixes: Prose lite

Reverts text color to default `--text` var per Figma

* Style fixes: Docs Home

* Stye fixes: examples CTA

* Added new content to /updates (keystonejs#6300)

* Update fields.mdx (keystonejs#6304)

* Fixed typo (keystonejs#6322)

* Added top margin to docs page component (keystonejs#6301)

* Added styles to table (keystonejs#6315)

* Added styles to table

* Update prose-lite.ts

* Update prose-lite.ts

* Update prose-lite.ts

Co-authored-by: Thomas Walker <bladey@me.com>

* Un-nest <Head> tags. (keystonejs#6327)

* Fixed link value (keystonejs#6328)

* Update `website_live` (keystonejs#6336)

* Update patch dependencies (patch) (keystonejs#6253)

* Update search config to match new DocSearch config (keystonejs#6255)

* Update dependency/apollo client (keystonejs#6259)

* update apolloclient dependency to latest

* changeset

* Update dependency @graphql-tools/merge to v7 (keystonejs#6246)

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

* Rename first to take (keystonejs#6266)

* Expose stacktraces from exceptions thrown in before/after hooks. (keystonejs#6263)

* 6268/next typescript config error (keystonejs#6269)

* add typescript ignoreBuildErrors flag

* changeset

* Updated /updates with new things (keystonejs#6272)

* Check exceptions returned from GraphQL (keystonejs#6271)

* Lock file maintenance (keystonejs#6277)

* Allow bearer auth in header using sessionToken (keystonejs#6276)

* Use Next 11 in the website (keystonejs#6256)

* 6223/custom pages guide improvements (keystonejs#6264)

* update example to include helper components

* update docs and examples

* update docs and examples

* update to docs

* more updates

* changeset

* correct incorrect props in README.md

* update smoke test

* update images

* update example

* update tests

* remove next dep from package.json

* updates

* re-add schema.prisma for admin-ui-navigation example

* Update docs/pages/docs/guides/custom-admin-ui-pages.mdx

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Update docs/pages/docs/guides/custom-admin-ui-pages.mdx

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Update docs/pages/docs/guides/custom-admin-ui-pages.mdx

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Update docs/pages/docs/guides/custom-admin-ui-pages.mdx

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Update docs/pages/docs/guides/custom-admin-ui-pages.mdx

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Update docs/pages/docs/guides/custom-admin-ui-pages.mdx

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Update docs/pages/docs/guides/custom-admin-ui-pages.mdx

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Update docs/pages/docs/guides/custom-admin-ui-pages.mdx

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Apply suggestions from code review

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* update docs

* revert change to next-env.d.ts

* Apply suggestions from code review

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Update dependency eslint-plugin-import to ^2.24.0 (keystonejs#6285)

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

* Fix updates bit on the website (keystonejs#6288)

* Include stacktrace flag (keystonejs#6267)

* Remove `gqlType` option on `autoIncrement` field type (keystonejs#6280)

* Use playwright install-deps (keystonejs#6294)

* Update patch dependencies (patch) (keystonejs#6284)

* Update prisma monorepo to v2.29.0 (minor) (keystonejs#6292)

* Nested filters (keystonejs#6095)

* GraphQL API docs changes (keystonejs#6297)

* Update dependency @types/jest to v27 (keystonejs#6293)

* Ignore generated files in prisma-utils (keystonejs#6305)

* Move import of mergeSchemas (keystonejs#6310)

* Update resolveInput error handling (keystonejs#6316)

* Upgrade Next to 11.1.0 for the website (keystonejs#6311)

* Update @graphql-ts/schema (keystonejs#6312)

* Lock file maintenance (keystonejs#6320)

* Split create/update field input resolvers for relationship fields (keystonejs#6317)

* Expand editable area (keystonejs#6318)

* POC - Expand editable area

* Change things

* Create cyan-rabbits-look.md

Co-authored-by: mitchellhamilton <mitchell@hamil.town>

* Fixed import url on CustomNavigation component (keystonejs#6308)

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Update text filter API table (keystonejs#6330)

* Update the tags in the docs navigation (keystonejs#6329)

* Update patch dependencies (patch) (keystonejs#6331)

* Add a GraphQL API upgrade guide (keystonejs#6281)

* Fix issue with VisuallyHidden checkbox interactions in table  (keystonejs#6334)

* resolve CHROME BUG

* changeset

* 6261/fix delete alert (keystonejs#6296)

* refactor confirm procedure to only add success toast on success

* new deletion logic in Listview

* add crud-notifications test project

* update deletion solution to be more pragmatic at scale

* update bug fix to be more verbose

* update schema.graphql

* minor updates

* fix yarn lint:examples to not break when running more than one test-project

* minor updates to copy

* remove log

* changeset

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Version Packages (keystonejs#6199)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Charles <cc.lee@live.com.au>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Mitchell Hamilton <mitchell@hamil.town>
Co-authored-by: Tim Leslie <timl@thinkmill.com.au>
Co-authored-by: Ronald Aveling <ronald.aveling@thinkmill.com.au>
Co-authored-by: Gautam Singh <5769869+gautamsi@users.noreply.github.com>
Co-authored-by: Charlie Jonas <charlie@callawaycloudconsulting.com>
Co-authored-by: KeystoneJS Release Bot <69774846+keystonejs-release-bot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

Co-authored-by: Mitchell Hamilton <mitchell@hamil.town>
Co-authored-by: Ronald Aveling <ronald.aveling@thinkmill.com.au>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Charles <cc.lee@live.com.au>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Tim Leslie <timl@thinkmill.com.au>
Co-authored-by: Gautam Singh <5769869+gautamsi@users.noreply.github.com>
Co-authored-by: Charlie Jonas <charlie@callawaycloudconsulting.com>
Co-authored-by: KeystoneJS Release Bot <69774846+keystonejs-release-bot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Website live (keystonejs#6341)

* Update index.tsx (keystonejs#6278)

* Fix updates bit on the website (keystonejs#6287)

* Content management update (keystonejs#6282)

* Add Wes Testimonial. Cleanup.

* Typos

* Fixed whitespace (keystonejs#6283)

* Update Header.tsx (keystonejs#6289)

* Add CTA block for Web Box eCommerce Course (keystonejs#6273)

* Content update (keystonejs#6290)

* Style fixes (keystonejs#6291)

* Fix styles: CommunityCta

* Fix Styles: Homepage

* Stylefix: Wes CTA block

* Style fixes: Why Keystone

* Style fixes: Content Management

* Style fixes: Developers

* Style fixes: Organisations

* Style fixes: Prose lite

Reverts text color to default `--text` var per Figma

* Style fixes: Docs Home

* Stye fixes: examples CTA

* Added new content to /updates (keystonejs#6300)

* Update fields.mdx (keystonejs#6304)

* Fixed typo (keystonejs#6322)

* Added top margin to docs page component (keystonejs#6301)

* Added styles to table (keystonejs#6315)

* Added styles to table

* Update prose-lite.ts

* Update prose-lite.ts

* Update prose-lite.ts

Co-authored-by: Thomas Walker <bladey@me.com>

* Un-nest <Head> tags. (keystonejs#6327)

* Fixed link value (keystonejs#6328)

* Update `website_live` (keystonejs#6336)

* Update patch dependencies (patch) (keystonejs#6253)

* Update search config to match new DocSearch config (keystonejs#6255)

* Update dependency/apollo client (keystonejs#6259)

* update apolloclient dependency to latest

* changeset

* Update dependency @graphql-tools/merge to v7 (keystonejs#6246)

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

* Rename first to take (keystonejs#6266)

* Expose stacktraces from exceptions thrown in before/after hooks. (keystonejs#6263)

* 6268/next typescript config error (keystonejs#6269)

* add typescript ignoreBuildErrors flag

* changeset

* Updated /updates with new things (keystonejs#6272)

* Check exceptions returned from GraphQL (keystonejs#6271)

* Lock file maintenance (keystonejs#6277)

* Allow bearer auth in header using sessionToken (keystonejs#6276)

* Use Next 11 in the website (keystonejs#6256)

* 6223/custom pages guide improvements (keystonejs#6264)

* update example to include helper components

* update docs and examples

* update docs and examples

* update to docs

* more updates

* changeset

* correct incorrect props in README.md

* update smoke test

* update images

* update example

* update tests

* remove next dep from package.json

* updates

* re-add schema.prisma for admin-ui-navigation example

* Update docs/pages/docs/guides/custom-admin-ui-pages.mdx

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Update docs/pages/docs/guides/custom-admin-ui-pages.mdx

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Update docs/pages/docs/guides/custom-admin-ui-pages.mdx

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Update docs/pages/docs/guides/custom-admin-ui-pages.mdx

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Update docs/pages/docs/guides/custom-admin-ui-pages.mdx

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Update docs/pages/docs/guides/custom-admin-ui-pages.mdx

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Update docs/pages/docs/guides/custom-admin-ui-pages.mdx

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Update docs/pages/docs/guides/custom-admin-ui-pages.mdx

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Apply suggestions from code review

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* update docs

* revert change to next-env.d.ts

* Apply suggestions from code review

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Update dependency eslint-plugin-import to ^2.24.0 (keystonejs#6285)

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

* Fix updates bit on the website (keystonejs#6288)

* Include stacktrace flag (keystonejs#6267)

* Remove `gqlType` option on `autoIncrement` field type (keystonejs#6280)

* Use playwright install-deps (keystonejs#6294)

* Update patch dependencies (patch) (keystonejs#6284)

* Update prisma monorepo to v2.29.0 (minor) (keystonejs#6292)

* Nested filters (keystonejs#6095)

* GraphQL API docs changes (keystonejs#6297)

* Update dependency @types/jest to v27 (keystonejs#6293)

* Ignore generated files in prisma-utils (keystonejs#6305)

* Move import of mergeSchemas (keystonejs#6310)

* Update resolveInput error handling (keystonejs#6316)

* Upgrade Next to 11.1.0 for the website (keystonejs#6311)

* Update @graphql-ts/schema (keystonejs#6312)

* Lock file maintenance (keystonejs#6320)

* Split create/update field input resolvers for relationship fields (keystonejs#6317)

* Expand editable area (keystonejs#6318)

* POC - Expand editable area

* Change things

* Create cyan-rabbits-look.md

Co-authored-by: mitchellhamilton <mitchell@hamil.town>

* Fixed import url on CustomNavigation component (keystonejs#6308)

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Update text filter API table (keystonejs#6330)

* Update the tags in the docs navigation (keystonejs#6329)

* Update patch dependencies (patch) (keystonejs#6331)

* Add a GraphQL API upgrade guide (keystonejs#6281)

* Fix issue with VisuallyHidden checkbox interactions in table  (keystonejs#6334)

* resolve CHROME BUG

* changeset

* 6261/fix delete alert (keystonejs#6296)

* refactor confirm procedure to only add success toast on success

* new deletion logic in Listview

* add crud-notifications test project

* update deletion solution to be more pragmatic at scale

* update bug fix to be more verbose

* update schema.graphql

* minor updates

* fix yarn lint:examples to not break when running more than one test-project

* minor updates to copy

* remove log

* changeset

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Version Packages (keystonejs#6199)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Charles <cc.lee@live.com.au>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Mitchell Hamilton <mitchell@hamil.town>
Co-authored-by: Tim Leslie <timl@thinkmill.com.au>
Co-authored-by: Ronald Aveling <ronald.aveling@thinkmill.com.au>
Co-authored-by: Gautam Singh <5769869+gautamsi@users.noreply.github.com>
Co-authored-by: Charlie Jonas <charlie@callawaycloudconsulting.com>
Co-authored-by: KeystoneJS Release Bot <69774846+keystonejs-release-bot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

Co-authored-by: Mitchell Hamilton <mitchell@hamil.town>
Co-authored-by: Ronald Aveling <ronald.aveling@thinkmill.com.au>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Charles <cc.lee@live.com.au>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Tim Leslie <timl@thinkmill.com.au>
Co-authored-by: Gautam Singh <5769869+gautamsi@users.noreply.github.com>
Co-authored-by: Charlie Jonas <charlie@callawaycloudconsulting.com>
Co-authored-by: KeystoneJS Release Bot <69774846+keystonejs-release-bot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* adding a devcontainer definition for easier local dev (keystonejs#6343)

* resolve label bug

* changeset

* Releasing update.

* Move testing package into main package (keystonejs#6361)

* Move fields package into main package (keystonejs#6362)

* Move admin-ui-utils into main package (keystonejs#6367)

* Reorder access control tests (keystonejs#6369)

* Move utils package into main package (keystonejs#6368)

* Move types package into main package (keystonejs#6371)

* Better fix for list view checkbox bug  (keystonejs#6354)

* Remove old fix, and added position relative to content container to prevent misallignment of hidden inputs and labels on the list view page

* changeset

* Move the exports of `@keystone-next/keystone` to `@keystone-next/keystone/system` (keystonejs#6377)

* Fixed error from prisma when using `.keystone/api` from `generateNodeAPI` in a API route (keystonejs#6381)

* Move `@keystone-next/keystone/schema` to `@keystone-next/keystone` (keystonejs#6378)

* Fix negative `take` values above the list's `graphql.queryLimits.maxResults` not causing an error before getting the values from the database (keystonejs#6392)

* Update dependency stripe to ^8.170.0 (keystonejs#6396)

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

* Update @graphql-ts/schema, rename `schema` export to `graphql` and move it to main entrypoint (keystonejs#6393)

* Update @graphql-ts/schema

* Update prisma utils

* Update patch dependencies (patch) (keystonejs#6394)

* Lock file maintenance (keystonejs#6386)

* Add comments explaining that the schema files are generated in the schema files (keystonejs#6397)

* Improve performance of create item modal with many fields (keystonejs#6390)

* 6261/delete alert tests (keystonejs#6382)

* new deletion logic in Listview

* add crud-notifications test project

* update deletion solution to be more pragmatic at scale

* update bug fix to be more verbose

* minor updates to copy

* remove log

* init

* updated delete notif tests

* update usage of deleteAll utility

* update test.yml to include new test file

* remove onconnect and unnecessary try catch

* comments

* update gitignore

* update tests and schema.graphql

* remove headless false flag

* remove unnecessary closure, update failing test

* remove unnecessary try/catch block

* fix test add throw statement to errors

* add waitForNaigation to beforeEach to avoid navigation destroying evaluation context

* remove navigation in beforeAll altogether

* add acess control headers to fix ff preflight errors

* sub out fetch for node-fetch and circumvent weird preflight issues via page.evaluate

* remove page argument from seedData fn

* update yarn.lock

* simplify code by exporting deleteAllData and moving projectRoot resolution

* Add `introspection` support to Apollo Server Config (keystonejs#6391)

* Allow support for introspection.

* Create great-cougars-argue.md

* Update patch dependencies (keystonejs#6398)

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

* Update master from website live (keystonejs#6402)

* Update index.tsx (keystonejs#6278)

* Fix updates bit on the website (keystonejs#6287)

* Content management update (keystonejs#6282)

* Add Wes Testimonial. Cleanup.

* Typos

* Fixed whitespace (keystonejs#6283)

* Update Header.tsx (keystonejs#6289)

* Add CTA block for Web Box eCommerce Course (keystonejs#6273)

* Content update (keystonejs#6290)

* Style fixes (keystonejs#6291)

* Fix styles: CommunityCta

* Fix Styles: Homepage

* Stylefix: Wes CTA block

* Style fixes: Why Keystone

* Style fixes: Content Management

* Style fixes: Developers

* Style fixes: Organisations

* Style fixes: Prose lite

Reverts text color to default `--text` var per Figma

* Style fixes: Docs Home

* Stye fixes: examples CTA

* Added new content to /updates (keystonejs#6300)

* Update fields.mdx (keystonejs#6304)

* Fixed typo (keystonejs#6322)

* Added top margin to docs page component (keystonejs#6301)

* Added styles to table (keystonejs#6315)

* Added styles to table

* Update prose-lite.ts

* Update prose-lite.ts

* Update prose-lite.ts

Co-authored-by: Thomas Walker <bladey@me.com>

* Un-nest <Head> tags. (keystonejs#6327)

* Fixed link value (keystonejs#6328)

* Update `website_live` (keystonejs#6336)

* Update patch dependencies (patch) (keystonejs#6253)

* Update search config to match new DocSearch config (keystonejs#6255)

* Update dependency/apollo client (keystonejs#6259)

* update apolloclient dependency to latest

* changeset

* Update dependency @graphql-tools/merge to v7 (keystonejs#6246)

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

* Rename first to take (keystonejs#6266)

* Expose stacktraces from exceptions thrown in before/after hooks. (keystonejs#6263)

* 6268/next typescript config error (keystonejs#6269)

* add typescript ignoreBuildErrors flag

* changeset

* Updated /updates with new things (keystonejs#6272)

* Check exceptions returned from GraphQL (keystonejs#6271)

* Lock file maintenance (keystonejs#6277)

* Allow bearer auth in header using sessionToken (keystonejs#6276)

* Use Next 11 in the website (keystonejs#6256)

* 6223/custom pages guide improvements (keystonejs#6264)

* update example to include helper components

* update docs and examples

* update docs and examples

* update to docs

* more updates

* changeset

* correct incorrect props in README.md

* update smoke test

* update images

* update example

* update tests

* remove next dep from package.json

* updates

* re-add schema.prisma for admin-ui-navigation example

* Update docs/pages/docs/guides/custom-admin-ui-pages.mdx

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Update docs/pages/docs/guides/custom-admin-ui-pages.mdx

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Update docs/pages/docs/guides/custom-admin-ui-pages.mdx

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Update docs/pages/docs/guides/custom-admin-ui-pages.mdx

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Update docs/pages/docs/guides/custom-admin-ui-pages.mdx

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Update docs/pages/docs/guides/custom-admin-ui-pages.mdx

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Update docs/pages/docs/guides/custom-admin-ui-pages.mdx

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Update docs/pages/docs/guides/custom-admin-ui-pages.mdx

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Apply suggestions from code review

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* update docs

* revert change to next-env.d.ts

* Apply suggestions from code review

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Update dependency eslint-plugin-import to ^2.24.0 (keystonejs#6285)

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

* Fix updates bit on the website (keystonejs#6288)

* Include stacktrace flag (keystonejs#6267)

* Remove `gqlType` option on `autoIncrement` field type (keystonejs#6280)

* Use playwright install-deps (keystonejs#6294)

* Update patch dependencies (patch) (keystonejs#6284)

* Update prisma monorepo to v2.29.0 (minor) (keystonejs#6292)

* Nested filters (keystonejs#6095)

* GraphQL API docs changes (keystonejs#6297)

* Update dependency @types/jest to v27 (keystonejs#6293)

* Ignore generated files in prisma-utils (keystonejs#6305)

* Move import of mergeSchemas (keystonejs#6310)

* Update resolveInput error handling (keystonejs#6316)

* Upgrade Next to 11.1.0 for the website (keystonejs#6311)

* Update @graphql-ts/schema (keystonejs#6312)

* Lock file maintenance (keystonejs#6320)

* Split create/update field input resolvers for relationship fields (keystonejs#6317)

* Expand editable area (keystonejs#6318)

* POC - Expand editable area

* Change things

* Create cyan-rabbits-look.md

Co-authored-by: mitchellhamilton <mitchell@hamil.town>

* Fixed import url on CustomNavigation component (keystonejs#6308)

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Update text filter API table (keystonejs#6330)

* Update the tags in the docs navigation (keystonejs#6329)

* Update patch dependencies (patch) (keystonejs#6331)

* Add a GraphQL API upgrade guide (keystonejs#6281)

* Fix issue with VisuallyHidden checkbox interactions in table  (keystonejs#6334)

* resolve CHROME BUG

* changeset

* 6261/fix delete alert (keystonejs#6296)

* refactor confirm procedure to only add success toast on success

* new deletion logic in Listview

* add crud-notifications test project

* update deletion solution to be more pragmatic at scale

* update bug fix to be more verbose

* update schema.graphql

* minor updates

* fix yarn lint:examples to not break when running more than one test-project

* minor updates to copy

* remove log

* changeset

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Version Packages (keystonejs#6199)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Charles <cc.lee@live.com.au>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Mitchell Hamilton <mitchell@hamil.town>
Co-authored-by: Tim Leslie <timl@thinkmill.com.au>
Co-authored-by: Ronald Aveling <ronald.aveling@thinkmill.com.au>
Co-authored-by: Gautam Singh <5769869+gautamsi@users.noreply.github.com>
Co-authored-by: Charlie Jonas <charlie@callawaycloudconsulting.com>
Co-authored-by: KeystoneJS Release Bot <69774846+keystonejs-release-bot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Release notes for 2021-08-17 release (keystonejs#6345)

* New release notes.

* Update index.tsx

* Update 2021-08-17.mdx

* Update next-env.d.ts

* Update index.mdx

* Update 2021-08-17.mdx

* Fixed markdown for bold styles (keystonejs#6346)

* Update wording on upgrade guide and release notes (keystonejs#6353)

* Updates nav additions (keystonejs#6366)

* Relocated "K5 vs K6" guidance

* Updated sidebar navigation content for `/updates`

* Update new-graphql-api.mdx (keystonejs#6375)

* Updated URLs (keystonejs#6374)

* Tweaking docs for Next.js walkthrough for latest version (keystonejs#6383)

* Tweaking docs for Next.js walkthrough.

* Update next-env.d.ts

* Added upgrade notices to GraphQL API related pages (keystonejs#6387)

* Fixed link color inconsistency (keystonejs#6388)

* Add note to use `yarn` in the embedded Next.js guide (keystonejs#6384)

* Tweaking docs for Next.js walkthrough.

* Update next-env.d.ts

* Update embedded-mode-with-sqlite-nextjs.mdx

* [WIP] Related content links (keystonejs#6360)

* WIP: get well in bottom of page

* New RelatedContent component.

* Added related content for POC

* Added more related content cards

* Updated guides index

* Styles fix for inline code within <Well> component

Co-authored-by: Thomas Walker <bladey@me.com>

* Added 2x testimonials (keystonejs#6400)

Co-authored-by: Mitchell Hamilton <mitchell@hamil.town>
Co-authored-by: Ronald Aveling <ronald.aveling@thinkmill.com.au>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Charles <cc.lee@live.com.au>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Tim Leslie <timl@thinkmill.com.au>
Co-authored-by: Gautam Singh <5769869+gautamsi@users.noreply.github.com>
Co-authored-by: Charlie Jonas <charlie@callawaycloudconsulting.com>
Co-authored-by: KeystoneJS Release Bot <69774846+keystonejs-release-bot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Add config.experimental.contextInitialisedLists (keystonejs#6403)

* fixed count in relationship field count mode (keystonejs#6385)

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Add graphql.isEnabled config option at the list and field levels (keystonejs#6376)

* fix List Items API link on new-graphql-api page (keystonejs#6404)

* merge aria-description text into aria-label (keystonejs#6412)

* merge aria-description text into aria-label

* chnageset

* Ensure relationship input types respect graphql.isEnabled (keystonejs#6408)

* Add isFilterable and isOrderable config options (keystonejs#6416)

* Add seed data feature to examples (keystonejs#6370)

* Progress commit.

* Replaced Lorem Ipsum with Public Domain content

* Progress commit (task manager seed data)

* Progress commit.

* Final tweaks for TS.

* Update index.ts

* Create tiny-guests-sin.md

* TS tweaks.

Co-authored-by: Ronald Aveling <luma.chroma@gmail.com>

* Fixing the "try the v5 site" link in the docs site (keystonejs#6411)

* Fixing the "try the v5 site" link in the docs site

* Adding a note on security and a (redundant) check for a leading slash in the path

* Add dynamic tab index logic for navigation on website (keystonejs#6418)

* wip

* Progress commit.

Add to Header to prevent duplication, needs further testing.

* Progress commit.

* Moving logic up to Header.

* Update Navigation.tsx

* Update next-env.d.ts

* Update Header.tsx

Co-authored-by: Dominik Wilkowski <hi@dominik-wilkowski.com>

* Code cosmetics in Admin UI (keystonejs#6422)

* Update example READMEs with seed data instructions (keystonejs#6419)

* POC commit

* Typo

* Update examples/task-manager/README.md

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Edits to blog README

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Replace graphql.isEnabled with graphql.omit (keystonejs#6420)

* Update index.ts (keystonejs#6424)

* Lock file maintenance (keystonejs#6425)

* Update prisma monorepo to v2.30.2 (minor) (keystonejs#6433)

* Update typescript-eslint monorepo to ^4.30.0 (keystonejs#6434)

* Update patch dependencies (patch) (keystonejs#6431)

* Next 11 (keystonejs#6414)

* Respect graphql.omit in fieldMode resolvers (keystonejs#6429)

* Update dependency @graphql-tools/schema to ^8.2.0 (keystonejs#6441)

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

* Update dependency @changesets/cli to ^2.17.0 (keystonejs#6439)

* Update patch dependencies (keystonejs#6438)

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

* Change isUnique: true to isIndexed: 'unique' in fields (keystonejs#6437)

* Remove unused dependency (keystonejs#6443)

* Update dependency typescript to ^4.4.2 (keystonejs#6432)

* Integration tests admin UI (keystonejs#6260)

* navigation tests

* more navigation related tests

* commit out bad test

* update schema.graphql

* update nav tests

* update schema.graphql

* update tests.yml to include navigation admin-ui test

* fix tests

* add determinism to init.test.ts

* update nav test to be a bit more deterministic

* update init.test.ts

* rename seedData fn and move it to utils module

* remove log

* update util for better errors

* remove unnecessary try catch

* Fix CodeSandbox CI packages when @keystone-ui packages change (keystonejs#6445)

* Clean up blog schema (keystonejs#6449)

* Update embedded-mode-with-sqlite-nextjs.mdx (keystonejs#6444)

* Fix styles on document field demo (keystonejs#6446)

* Add getChildTag fn to Inline component (keystonejs#6453)

* move getChildTag to util, apply to Inline component as well

* update comment

* changeset

* replace padding-inline-start with more standard padding-left

* Admin UI menu available for unauthenticated users (keystonejs#6459)

* Rename fieldPath to fieldKey in hook arguments (keystonejs#6455)

* Add config.graphql.path option (keystonejs#6458)

* Fix a process crash when createContext() fails for the Admin UI (keystonejs#6462)

* Fix a process crash when createContext() fails for the Admin UI

* Lock file maintenance (keystonejs#6466)

* Fast Graphql API Startup in Dev (keystonejs#6463)

* Add extendExpressApp config option (keystonejs#6467)

* Update access control APIs (keystonejs#6426)

* Version Packages (keystonejs#6339)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Update `master` with `website_live` (keystonejs#6470)

* Update index.tsx (keystonejs#6278)

* Fix updates bit on the website (keystonejs#6287)

* Content management update (keystonejs#6282)

* Add Wes Testimonial. Cleanup.

* Typos

* Fixed whitespace (keystonejs#6283)

* Update Header.tsx (keystonejs#6289)

* Add CTA block for Web Box eCommerce Course (keystonejs#6273)

* Content update (keystonejs#6290)

* Style fixes (keystonejs#6291)

* Fix styles: CommunityCta

* Fix Styles: Homepage

* Stylefix: Wes CTA block

* Style fixes: Why Keystone

* Style fixes: Content Management

* Style fixes: Developers

* Style fixes: Organisations

* Style fixes: Prose lite

Reverts text color to default `--text` var per Figma

* Style fixes: Docs Home

* Stye fixes: examples CTA

* Added new content to /updates (keystonejs#6300)

* Update fields.mdx (keystonejs#6304)

* Fixed typo (keystonejs#6322)

* Added top margin to docs page component (keystonejs#6301)

* Added styles to table (keystonejs#6315)

* Added styles to table

* Update prose-lite.ts

* Update prose-lite.ts

* Update prose-lite.ts

Co-authored-by: Thomas Walker <bladey@me.com>

* Un-nest <Head> tags. (keystonejs#6327)

* Fixed link value (keystonejs#6328)

* Update `website_live` (keystonejs#6336)

* Update patch dependencies (patch) (keystonejs#6253)

* Update search config to match new DocSearch config (keystonejs#6255)

* Update dependency/apollo client (keystonejs#6259)

* update apolloclient dependency to latest

* changeset

* Update dependency @graphql-tools/merge to v7 (keystonejs#6246)

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

* Rename first to take (keystonejs#6266)

* Expose stacktraces from exceptions thrown in before/after hooks. (keystonejs#6263)

* 6268/next typescript config error (keystonejs#6269)

* add typescript ignoreBuildErrors flag

* changeset

* Updated /updates with new things (keystonejs#6272)

* Check exceptions returned from GraphQL (keystonejs#6271)

* Lock file maintenance (keystonejs#6277)

* Allow bearer auth in header using sessionToken (keystonejs#6276)

* Use Next 11 in the website (keystonejs#6256)

* 6223/custom pages guide improvements (keystonejs#6264)

* update example to include helper components

* update docs and examples

* update docs and examples

* update to docs

* more updates

* changeset

* correct incorrect props in README.md

* update smoke test

* update images

* update example

* update tests

* remove next dep from package.json

* updates

* re-add schema.prisma for admin-ui-navigation example

* Update docs/pages/docs/guides/custom-admin-ui-pages.mdx

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Update docs/pages/docs/guides/custom-admin-ui-pages.mdx

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Update docs/pages/docs/guides/custom-admin-ui-pages.mdx

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Update docs/pages/docs/guides/custom-admin-ui-pages.mdx

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Update docs/pages/docs/guides/custom-admin-ui-pages.mdx

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Update docs/pages/docs/guides/custom-admin-ui-pages.mdx

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Update docs/pages/docs/guides/custom-admin-ui-pages.mdx

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Update docs/pages/docs/guides/custom-admin-ui-pages.mdx

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Apply suggestions from code review

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* update docs

* revert change to next-env.d.ts

* Apply suggestions from code review

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Update dependency eslint-plugin-import to ^2.24.0 (keystonejs#6285)

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

* Fix updates bit on the website (keystonejs#6288)

* Include stacktrace flag (keystonejs#6267)

* Remove `gqlType` option on `autoIncrement` field type (keystonejs#6280)

* Use playwright install-deps (keystonejs#6294)

* Update patch dependencies (patch) (keystonejs#6284)

* Update prisma monorepo to v2.29.0 (minor) (keystonejs#6292)

* Nested filters (keystonejs#6095)

* GraphQL API docs changes (keystonejs#6297)

* Update dependency @types/jest to v27 (keystonejs#6293)

* Ignore generated files in prisma-utils (keystonejs#6305)

* Move import of mergeSchemas (keystonejs#6310)

* Update resolveInput error handling (keystonejs#6316)

* Upgrade Next to 11.1.0 for the website (keystonejs#6311)

* Update @graphql-ts/schema (keystonejs#6312)

* Lock file maintenance (keystonejs#6320)

* Split create/update field input resolvers for relationship fields (keystonejs#6317)

* Expand editable area (keystonejs#6318)

* POC - Expand editable area

* Change things

* Create cyan-rabbits-look.md

Co-authored-by: mitchellhamilton <mitchell@hamil.town>

* Fixed import url on CustomNavigation component (keystonejs#6308)

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Update text filter API table (keystonejs#6330)

* Update the tags in the docs navigation (keystonejs#6329)

* Update patch dependencies (patch) (keystonejs#6331)

* Add a GraphQL API upgrade guide (keystonejs#6281)

* Fix issue with VisuallyHidden checkbox interactions in table  (keystonejs#6334)

* resolve CHROME BUG

* changeset

* 6261/fix delete alert (keystonejs#6296)

* refactor confirm procedure to only add success toast on success

* new deletion logic in Listview

* add crud-notifications test project

* update deletion solution to be more pragmatic at scale

* update bug fix to be more verbose

* update schema.graphql

* minor updates

* fix yarn lint:examples to not break when running more than one test-project

* minor updates to copy

* remove log

* changeset

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Version Packages (keystonejs#6199)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Charles <cc.lee@live.com.au>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Mitchell Hamilton <mitchell@hamil.town>
Co-authored-by: Tim Leslie <timl@thinkmill.com.au>
Co-authored-by: Ronald Aveling <ronald.aveling@thinkmill.com.au>
Co-authored-by: Gautam Singh <5769869+gautamsi@users.noreply.github.com>
Co-authored-by: Charlie Jonas <charlie@callawaycloudconsulting.com>
Co-authored-by: KeystoneJS Release Bot <69774846+keystonejs-release-bot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* Release notes for 2021-08-17 release (keystonejs#6345)

* New release notes.

* Update index.tsx

* Update 2021-08-17.mdx

* Update next-env.d.ts

* Update index.mdx

* Update 2021-08-17.mdx

* Fixed markdown for bold styles (keystonejs#6346)

* Update wording on upgrade guide and release notes (keystonejs#6353)

* Updates nav additions (keystonejs#6366)

* Relocated "K5 vs K6" guidance

* Updated sidebar navigation content for `/updates`

* Update new-graphql-api.mdx (keystonejs#6375)

* Updated URLs (keystonejs#6374)

* Tweaking docs for Next.js walkthrough for latest version (keystonejs#6383)

* Tweaking docs for Next.js walkthrough.

* Update next-env.d.ts

* Added upgrade notices to GraphQL API related pages (keystonejs#6387)

* Fixed link color inconsistency (keystonejs#6388)

* Add note to use `yarn` in the embedded Next.js guide (keystonejs#6384)

* Tweaking docs for Next.js walkthrough.

* Update next-env.d.ts

* Update embedded-mode-with-sqlite-nextjs.mdx

* [WIP] Related content links (keystonejs#6360)

* WIP: get well in bottom of page

* New RelatedContent component.

* Added related content for POC

* Added more related content cards

* Updated guides index

* Styles fix for inline code within <Well> component

Co-authored-by: Thomas Walker <bladey@me.com>

* Added 2x testimonials (keystonejs#6400)

* Typo (keystonejs#6405)

* Replaced absolute links with relative (keystonejs#6406)

* Fix broken link (keystonejs#6407)

To copy keystonejs#6404 for `website_live` branch

* Add missing <Link>'s in docs pages. (keystonejs#6421)

* Add `Edit on GitHub` button to all docs pages (keystonejs#6423)

* Progress commit.

* Update EditButton.tsx

* Update EditButton.tsx

* Tab index improvements. (keystonejs#6427)

* Update EditButton.tsx (keystonejs#6428)

* Fix styles on document field demo on website live (keystonejs#6447)

* Content edits (keystonejs#6451)

* Changes to global header (keystonejs#6452)

Co-authored-by: Mitchell Hamilton <mitchell@hamil.town>
Co-authored-by: Ronald Aveling <ronald.aveling@thinkmill.com.au>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Charles <cc.lee@live.com.au>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Tim Leslie <timl@thinkmill.com.au>
Co-authored-by: Gautam Singh <5769869+gautamsi@users.noreply.github.com>
Co-authored-by: Charlie Jonas <charlie@callawaycloudconsulting.com>
Co-authored-by: KeystoneJS Release Bot <69774846+keystonejs-release-bot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

Co-authored-by: Mitchell Hamilton <mitchell@hamil.town>
Co-authored-by: Ronald Aveling <ronald.aveling@thinkmill.com.au>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Charles <cc.lee@live.com.au>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Tim Leslie <timl@thinkmill.com.au>
Co-authored-by: Gautam Singh <5769869+gautamsi@users.noreply.github.com>
Co-authored-by: Charlie Jonas <charlie@callawaycloudconsulting.com>
Co-authored-by: KeystoneJS Release Bot <69774846+keystonejs-release-bot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Aaron Powell <me@aaron-powell.com>
Co-authored-by: Josh Calder <josh@opensaas.com.au>
Co-authored-by: Ronald Aveling <luma.chroma@gmail.com>
Co-authored-by: John Molomby <john@thinkmill.com.au>
Co-authored-by: Dominik Wilkowski <hi@dominik-wilkowski.com>
Co-authored-by: Jed Watson <jed@keystonejs.com>
  • Loading branch information
17 people authored Sep 6, 2021
1 parent 67f3eeb commit 6eeaf63
Show file tree
Hide file tree
Showing 836 changed files with 9,844 additions and 8,514 deletions.
8 changes: 0 additions & 8 deletions .changeset/brave-paws-sneeze.md

This file was deleted.

2 changes: 1 addition & 1 deletion .codesandbox/ci.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"packages": ["packages/*"],
"packages": ["packages/*", "design-system/packages/*"],
"sandboxes": ["/examples/sandbox"],
"node": "14"
}
2 changes: 2 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ARG VARIANT="14-buster"
FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:0-${VARIANT}
25 changes: 25 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "Keystone",
"build": {
"dockerfile": "Dockerfile",
"args": {
"VARIANT": "14"
}
},

"settings": {},

"extensions": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"gamunu.vscode-yarn",
"prisma.prisma"
],

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

"postCreateCommand": "yarn install",

"remoteUser": "node"
}
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ jobs:
DATABASE_URL: 'file:./test.db'
strategy:
matrix:
test: ['init.test.ts']
test: ['init.test.ts', 'list-view-crud.test.ts', 'navigation.test.ts']
fail-fast: false
steps:
- name: Checkout Repo
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ temp/

# SQLite databases
*.db
*.db-journal

# Generated files from build process
robots.txt
Expand Down
11 changes: 11 additions & 0 deletions design-system/packages/button/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @keystone-ui/button

## 5.0.1

### Patch Changes

- [#6414](https://github.com/keystonejs/keystone/pull/6414) [`32f024738`](https://github.com/keystonejs/keystone/commit/32f0247384ecf3bce5c3ef14ad8d367c9888459f) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Updated usages of `jsx` from `@keystone-ui/core` to explicitly use `/** @jsxRuntime classic */`

- Updated dependencies [[`32f024738`](https://github.com/keystonejs/keystone/commit/32f0247384ecf3bce5c3ef14ad8d367c9888459f), [`069265b9c`](https://github.com/keystonejs/keystone/commit/069265b9cdd5898f4501535793f56debaa247c1c)]:
- @keystone-ui/core@3.2.0
- @keystone-ui/icons@4.0.1
- @keystone-ui/loading@4.0.1

## 5.0.0

### Major Changes
Expand Down
10 changes: 5 additions & 5 deletions design-system/packages/button/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"name": "@keystone-ui/button",
"version": "5.0.0",
"version": "5.0.1",
"license": "MIT",
"main": "dist/button.cjs.js",
"module": "dist/button.esm.js",
"devDependencies": {
"@types/react": "^17.0.18"
"@types/react": "^17.0.19"
},
"dependencies": {
"@babel/runtime": "^7.15.3",
"@keystone-ui/core": "^3.0.0",
"@keystone-ui/icons": "^4.0.0",
"@keystone-ui/loading": "^4.0.0",
"@keystone-ui/core": "^3.2.0",
"@keystone-ui/icons": "^4.0.1",
"@keystone-ui/loading": "^4.0.1",
"react": "^17.0.2"
},
"engines": {
Expand Down
1 change: 1 addition & 0 deletions design-system/packages/button/src/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @jsxRuntime classic */
/** @jsx jsx */

import { ReactNode, useContext } from 'react';
Expand Down
1 change: 1 addition & 0 deletions design-system/packages/button/src/hooks/button.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @jsxRuntime classic */
/** @jsx jsx */

import { useTheme } from '@keystone-ui/core';
Expand Down
10 changes: 10 additions & 0 deletions design-system/packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @keystone-ui/core

## 3.2.0

### Minor Changes

- [#6453](https://github.com/keystonejs/keystone/pull/6453) [`069265b9c`](https://github.com/keystonejs/keystone/commit/069265b9cdd5898f4501535793f56debaa247c1c) Thanks [@gwyneplaine](https://github.com/gwyneplaine)! - Added functionality to ensure that Inline elements that are 'ul' or 'ol' automatically wrap children in 'li' rather than 'div'

### Patch Changes

- [#6414](https://github.com/keystonejs/keystone/pull/6414) [`32f024738`](https://github.com/keystonejs/keystone/commit/32f0247384ecf3bce5c3ef14ad8d367c9888459f) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Updated usages of `jsx` from `@keystone-ui/core` to explicitly use `/** @jsxRuntime classic */`

## 3.1.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions design-system/packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "@keystone-ui/core",
"version": "3.1.1",
"version": "3.2.0",
"license": "MIT",
"main": "dist/core.cjs.js",
"module": "dist/core.esm.js",
"devDependencies": {
"@types/react": "^17.0.18",
"@types/react": "^17.0.19",
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
Expand Down
1 change: 1 addition & 0 deletions design-system/packages/core/src/components/Box.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @jsxRuntime classic */
/** @jsx jsx */

import { jsx } from '../emotion';
Expand Down
1 change: 1 addition & 0 deletions design-system/packages/core/src/components/Center.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @jsxRuntime classic */
/** @jsx jsx */

import { jsx } from '../emotion';
Expand Down
3 changes: 2 additions & 1 deletion design-system/packages/core/src/components/Core.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* @jsx jsx */
/** @jsxRuntime classic */
/** @jsx jsx */

import { Fragment, ReactNode } from 'react';
import { jsx, Global } from '../emotion';
Expand Down
1 change: 1 addition & 0 deletions design-system/packages/core/src/components/Divider.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @jsxRuntime classic */
/** @jsx jsx */

import { jsx } from '../emotion';
Expand Down
1 change: 1 addition & 0 deletions design-system/packages/core/src/components/Heading.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @jsxRuntime classic */
/** @jsx jsx */

import { jsx } from '../emotion';
Expand Down
8 changes: 5 additions & 3 deletions design-system/packages/core/src/components/Inline.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
/** @jsxRuntime classic */
/** @jsx jsx */

import { Children, ReactNode } from 'react';
import { jsx } from '../emotion';

import { forwardRefWithAs } from '../utils';
import { forwardRefWithAs, getChildTag } from '../utils';
import { Theme } from '../types';
import { useTheme } from '../theme';
import { Box, BoxProps } from './Box';
Expand All @@ -29,6 +30,7 @@ export const Inline = forwardRefWithAs<'div', InlineProps>(
const { spacing } = useTheme();
const resolvedAlign = alignment[align];
const resolvedGap = spacing[gap];
const ChildWrapper = getChildTag(props.as);

return (
<Box
Expand All @@ -44,7 +46,7 @@ export const Inline = forwardRefWithAs<'div', InlineProps>(
>
{Children.map(children, child =>
child !== null && child !== undefined ? (
<div
<ChildWrapper
css={{
display: 'flex',
flexWrap: 'wrap',
Expand All @@ -53,7 +55,7 @@ export const Inline = forwardRefWithAs<'div', InlineProps>(
}}
>
{child}
</div>
</ChildWrapper>
) : null
)}
</Box>
Expand Down
1 change: 1 addition & 0 deletions design-system/packages/core/src/components/Link.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @jsxRuntime classic */
/** @jsx jsx */

import { jsx } from '../emotion';
Expand Down
15 changes: 3 additions & 12 deletions design-system/packages/core/src/components/Stack.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
/** @jsxRuntime classic */
/** @jsx jsx */

import { ElementType, Children, Fragment, ReactNode, isValidElement } from 'react';
import { Children, Fragment, ReactNode, isValidElement } from 'react';

import { jsx } from '../emotion';
import { useMediaQuery } from '../hooks/useMediaQuery';
import { useTheme } from '../theme';
import { Theme } from '../types';
import { forwardRefWithAs, mapResponsiveProp } from '../utils';
import { forwardRefWithAs, mapResponsiveProp, getChildTag } from '../utils';

import { Box, BoxProps } from './Box';
import { Divider } from './Divider';
Expand Down Expand Up @@ -44,16 +45,6 @@ export type StackProps = {
gap?: keyof Theme['spacing'];
} & BoxProps;

const getChildTag = (parentTag?: ElementType<any>) => {
switch (parentTag) {
case 'ul':
case 'ol':
return 'li';
default:
return 'div';
}
};

export const Stack = forwardRefWithAs<'div', StackProps>(
({ across, align = 'stretch', children, dividers = 'none', gap = 'none', ...props }, ref) => {
const { spacing } = useTheme();
Expand Down
1 change: 1 addition & 0 deletions design-system/packages/core/src/components/Text.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @jsxRuntime classic */
/** @jsx jsx */

import { jsx } from '../emotion';
Expand Down
14 changes: 14 additions & 0 deletions design-system/packages/core/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,20 @@ import {
} from 'react';
import { createPortal } from 'react-dom';

/*
Simple switch to return a child tag from a parent tag argument.
Returns a div by default.
*/
export const getChildTag = (parentTag?: ElementType<any>) => {
switch (parentTag) {
case 'ul':
case 'ol':
return 'li';
default:
return 'div';
}
};

/*
@johannes' one weird trick for fixing TypeScript autocomplete
*/
Expand Down
11 changes: 11 additions & 0 deletions design-system/packages/fields/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @keystone-ui/fields

## 4.1.3

### Patch Changes

- [#6414](https://github.com/keystonejs/keystone/pull/6414) [`32f024738`](https://github.com/keystonejs/keystone/commit/32f0247384ecf3bce5c3ef14ad8d367c9888459f) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - Updated usages of `jsx` from `@keystone-ui/core` to explicitly use `/** @jsxRuntime classic */`

- Updated dependencies [[`32f024738`](https://github.com/keystonejs/keystone/commit/32f0247384ecf3bce5c3ef14ad8d367c9888459f), [`069265b9c`](https://github.com/keystonejs/keystone/commit/069265b9cdd5898f4501535793f56debaa247c1c)]:
- @keystone-ui/core@3.2.0
- @keystone-ui/icons@4.0.1
- @keystone-ui/popover@4.0.3

## 4.1.2

### Patch Changes
Expand Down
10 changes: 5 additions & 5 deletions design-system/packages/fields/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"name": "@keystone-ui/fields",
"version": "4.1.2",
"version": "4.1.3",
"license": "MIT",
"main": "dist/fields.cjs.js",
"module": "dist/fields.esm.js",
"devDependencies": {
"@types/react": "^17.0.18"
"@types/react": "^17.0.19"
},
"dependencies": {
"@babel/runtime": "^7.15.3",
"@keystone-ui/core": "^3.1.0",
"@keystone-ui/icons": "^4.0.0",
"@keystone-ui/popover": "^4.0.2",
"@keystone-ui/core": "^3.2.0",
"@keystone-ui/icons": "^4.0.1",
"@keystone-ui/popover": "^4.0.3",
"@types/react-select": "^4.0.17",
"date-fns": "^2.23.0",
"react": "^17.0.2",
Expand Down
1 change: 1 addition & 0 deletions design-system/packages/fields/src/Checkbox.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @jsxRuntime classic */
/** @jsx jsx */

import { Fragment, InputHTMLAttributes, ReactNode, forwardRef } from 'react';
Expand Down
1 change: 1 addition & 0 deletions design-system/packages/fields/src/DatePicker/Calendar.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @jsxRuntime classic */
/** @jsx jsx */

import { useMemo } from 'react';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @jsxRuntime classic */
/** @jsx jsx */

import { ElementType, ReactNode, createContext, useContext } from 'react';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @jsxRuntime classic */
/** @jsx jsx */

import { ButtonHTMLAttributes, forwardRef } from 'react';
Expand Down
1 change: 1 addition & 0 deletions design-system/packages/fields/src/DatePicker/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @jsxRuntime classic */
/** @jsx jsx */

import React, { Fragment, useCallback } from 'react';
Expand Down
3 changes: 2 additions & 1 deletion design-system/packages/fields/src/FieldContainer.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* @jsx jsx */
/** @jsxRuntime classic */
/** @jsx jsx */
import { jsx, forwardRefWithAs } from '@keystone-ui/core';

export const FieldContainer = forwardRefWithAs<'div', {}>(({ as: Tag = 'div', ...props }, ref) => {
Expand Down
3 changes: 2 additions & 1 deletion design-system/packages/fields/src/FieldLabel.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* @jsx jsx */
/** @jsxRuntime classic */
/** @jsx jsx */

import { forwardRefWithAs, jsx, useTheme } from '@keystone-ui/core';
import type { ReactNode } from 'react';
Expand Down
3 changes: 2 additions & 1 deletion design-system/packages/fields/src/FieldLegend.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* @jsx jsx */
/** @jsxRuntime classic */
/** @jsx jsx */

import { jsx, useTheme } from '@keystone-ui/core';
import type { HTMLAttributes } from 'react';
Expand Down
1 change: 1 addition & 0 deletions design-system/packages/fields/src/Radio.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @jsxRuntime classic */
/** @jsx jsx */

import { Fragment, InputHTMLAttributes, ReactNode, forwardRef } from 'react';
Expand Down
1 change: 1 addition & 0 deletions design-system/packages/fields/src/Select.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @jsxRuntime classic */
/** @jsx jsx */
import { jsx, useTheme } from '@keystone-ui/core';
import ReactSelect, { OptionsType, mergeStyles, NamedProps } from 'react-select';
Expand Down
1 change: 1 addition & 0 deletions design-system/packages/fields/src/Switch.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @jsxRuntime classic */
/** @jsx jsx */

/**
Expand Down
3 changes: 2 additions & 1 deletion design-system/packages/fields/src/TextArea.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* @jsx jsx */
/** @jsxRuntime classic */
/** @jsx jsx */
import { InputHTMLAttributes, forwardRef } from 'react';
import { jsx } from '@keystone-ui/core';

Expand Down
3 changes: 2 additions & 1 deletion design-system/packages/fields/src/TextInput.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* @jsx jsx */
/** @jsxRuntime classic */
/** @jsx jsx */

/**
* TODO
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @jsxRuntime classic */
/** @jsx jsx */

import { ReactNode, ReactElement } from 'react';
Expand Down
1 change: 1 addition & 0 deletions design-system/packages/fields/src/components/Icons.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/** @jsxRuntime classic */
/** @jsx jsx */

import { ReactNode } from 'react';
Expand Down
Loading

0 comments on commit 6eeaf63

Please sign in to comment.