Skip to content

Commit

Permalink
Bring in latest master changes (#6723)
Browse files Browse the repository at this point in the history
* Fix typo in Admin UI (#6474)

* Fix typo in Admin UI

* Changelog.

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

* Remove deprecated packages (#6468)

* Update typescript-eslint monorepo to ^4.31.0 (#6480)

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

* Update intermittently failing nav test (#6476)

* more navigation related tests

* update nav tests

* update nav test to be a bit more deterministic

* update init.test.ts

* update intermittently failing nav test to avoid timeouts on CI

* update mock task name for sense

* Handle Prisma errors explicitly (#6482)

* Make sure prisma error code isn't lost (#6484)

* Upgrade apollo server packages (#6409)

* Update patch dependencies (patch) (#6478)

* Fix types of (#6487)

* Remove unnecessary try/catch block (#6488)

* fix windows issues in view resolver (#6477)

* Remove unnecessary calls to context.exitSudo() from tests (#6496)

* Add tests for more ID field error code paths (#6497)

* Fix operation argument to field access control (#6498)

* Add tests for incomplete relationship data in update operations (#6499)

* Fix bug in DB API with null values (#6500)

* Add more tests for error cases when ordering/filtering (#6505)

* fix: the error tabbable error when you click the popover (#6501)

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

* Fix item form submitting an invalid request after saving returns errors (#6509)

* Add Margin to error messages in the Admin UI Item Form (#6508)

* Add Margin to error messages in the Admin UI Item Form

* Remove changesets which were released in the hot-fix (#6511)

* Remove unqueryable lists from admin meta (#6512)

* update createAdminMeta to not include lists with graphql querying disabled. also appy this to relationships to those omitted lists

* chnageset

* Update .changeset/twelve-apples-happen.md

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

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

* Remove isRequired and defaultValue from some fields (#6513)

* Relationship field updates (#6514)

* Remove deprecated config.db.adapter option (#6518)

* Remove unused BaseKeystone type (#6521)

* Consolidate concept of sudo internally (#6520)

* Optimise item view field mode item fetching (#6523)

* Only check for a valid db.provider once (#6524)

* Fixes Relationship field inline connect fields throwing 400 errors (#6526)

* Update index.tsx

* Create large-actors-worry.md

* Skip fetching fields with static fieldMode: 'hidden' on the item view (#6519)

* Checkbox updates (#6448)

* Update schema export message to reflect required update (#6532)

* Update index.ts

* Create eight-buckets-breathe.md

* text sizing and color fixes (#6536)

* text sizing and color fixes

* Update index.tsx

Co-authored-by: Matt Barron <longhaul12@gmail.com>

* Rename checkOperationAccess to getOperationAccess (#6537)

* Remove `createSchema` (#6542)

* Update jest monorepo to ^27.2.0 (#6551)

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

* Update dependency @testing-library/react to ^12.1.0 (#6547)

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

* Update dependency @types/inflection to ^1.13.0 (#6549)

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

* Update dependency @testing-library/dom to ^8.5.0 (#6546)

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

* Update dependency cloudinary to ^1.27.0 (#6548)

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

* Update dependency @babel/plugin-proposal-object-rest-spread to ^7.15.6 (#6545)

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

* Update dependency prettier to ^2.4.0 (#6550)

* Virtual field updates (#6538)

* export field types (#6481)

* Update RELEASE.md with branch syncing instructions (#6471)

* Update RELEASE.md

* Update RELEASE.md

* Update RELEASE.md

* Update RELEASE.md

* Lock file maintenance (#6531)

* Update patch dependencies (patch) (#6489)

* fix windows build issue (#6530)

* Update dependency chalk-cli to v5 (#6558)

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

* Update dependency eslint-plugin-cypress to ^2.12.1 (#6557)

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

* Remove dependency on `typescript` (#6559)

* Update patch dependencies (patch) (#6555)

* Simplify fake IDs in tests (#6562)

* Add userInputError error function (#6565)

* Document field updates (#6564)

* 6306/fix deletion pagination bug (#6571)

* add effect to reroute when all items on a page have been deleted

* add comments to clarify why we add the effect

* add pagination bug tests

* move effect to Pagination component

* remove effect from ListPage page

* remove unused router property assignments

* update utils

* Update packages/keystone/src/admin-ui/components/Pagination.tsx

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

* chnageset

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

* Add support for dynamic isFilterable and isOrderable (#6560)

* Remove unused arguments to expectAccessDenied (#6590)

* Fix dynamic isFilterable/isOrderable in the Admin UI (#6587)

* Remove unused code path in Admin UI (#6592)

* Return correct error messages on failed auth attempts (#6593)

* Add improved access denied error messages (#6591)

* Lock file maintenance (#6601)

* enable prisma previes features via keystone config (#6574)

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

* Update docs for config.db.prismaPreviewFeatures (#6605)

* Remove internal protectIdentities flag (#6606)

* Update prisma monorepo to v3 (major) (#6490)

* Update dependency graphql to ^15.6.0 (#6615)

* Update patch dependencies (patch) (#6613)

* Add createContext argument to config.server.extendExpressApp (#6616)

* Json field updates (#6607)

* [RFC] Rename `context.lists` to `context.query` and `context.db.lists` to `context.db` (#6535)

* Fix unorderable fields looking orderable in the Admin UI (#6619)

* Update dependency eslint-plugin-react to ^7.26.0 (#6623)

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

* Update dependency playwright to ^1.15.0 (#6624)

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

* Fixed cloud integration issues (#6627)

* Consolidate non-major changes in auth (#6618)

* Improve the createContext API in extendExpressApp (#6632)

* Update prisma monorepo to v3.1.1 (minor) (#6625)

* Integer field updates (#6588)

* comments explaining necessary hack for tests (#6637)

* Select field updates (#6638)

* Optimise relationship queries (#6639)

* Add API tests for the auth package (#6642)

* Remove unused enum values in auth package (#6645)

* Fix typo (#6649)

* REST API example (#6634)

* Adding REST API example

* Add smoke test for rest-api example

* Add changeset

* Update select field config

* Fix bug in focus-trap (#6652)

* Lock file maintenance (#6651)

* Update patch dependencies (patch) (#6622)

* Update changelog to latest version on `master` (#6653)

* Fix typo in Admin UI

* Changelog.

* Fix operation argument to field access control (#6498)

* fix windows issues in view resolver (#6477)

* Fix item form submitting an invalid request after saving returns errors (#6509)

* Version packages.

* Fixes Relationship field inline connect fields throwing 400 errors (#6526)

* Changes.

* Fixed cloud integration issues (#6627)

* Version packages.

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

* Text updates (#6461)

* improved messaging on startup (#6617)

* improved messaging on startup

* Update based on Tim's feedback

* fixing tests

* fix tests

* tests passing

Co-authored-by: Noviny <noviny@thinkmill.com.au>

* Upgrade focus-trap (#6654)

* Update Header.tsx (#6662)

* Decimal field updates (#6663)

* Improved invalid access control return value error messages (#6664)

* Update patch dependencies (patch) (#6657)

* Update patch dependencies

* revert next patch, update @apollo dep in yarn.lock to resolve type errors

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

* Update typescript-eslint monorepo to ^4.32.0 (minor) (#6659)

* Update typescript-eslint monorepo to ^4.32.0

* update yarn.lock

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

* Add a specific test check for filter/order errors (#6666)

* Simplify validation hook code (#6667)

* Use extensionError for all extensions (#6672)

* Update dependency react-select to v5 (#6658)

* Update dependency react-select to v5

* Update dependency react-select to v5

* react select v4 - v5 mupgrade tasks

* update shouldDisplaySearchControl to be passed via context, rather than through selectProps

* simplify Option component logic, to negate need for special context or select props

* remove unecessary react imports

* Add changeset

Change-set added to document minor internal refactor

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

* Update patch dependencies (patch) (#6669)

* Update patch dependencies

* revert next patch bump, to resolve type errors

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

* Aff filter coercion and validation back to filter access control (#6678)

* Re-enable all field-type CRUD tests (#6676)

* Float field updates (#6656)

* float initial implementation

* add back in error handling

* changes based on feedback

* Fix tests, exceptions

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

* thanks Mitchell

* no null

* Update packages/keystone/src/fields/types/float/tests/non-null/test-fixtures.ts

* Apply suggestions from code review

* added changeset and docs updates

* Update packages/keystone/src/fields/types/float/views/index.tsx

* check validations are finite numbers

* small fixes

* remove bad regex

* Fix things

* Update docs/pages/docs/apis/fields.mdx

Co-authored-by: Noviny <noviny@thinkmill.com.au>
Co-authored-by: Mitchell Hamilton <mitchell@hamil.town>

* Change newsletter opt-in to unchecked on create first user page (#6675)

* Update InitPage.tsx

* Create dull-files-sniff.md

* Rename originalInput to inputData in access control functions (#6680)

* Rename originalInput to inputData in hook functions (#6681)

* Auth GraphQL API changes (#6682)

* Password field updates (#6683)

* Capture and group field resolver errors (#6685)

* Consolidate before/after hooks (#6684)

* Move `graphql` export to `@keystone-next/keystone` (#6689)

* Timestamp field updates (#6674)

Co-authored-by: Ben Conolly <Noviny@users.noreply.github.com>

* Update required tests (#6690)

* Remove `__legacy` from field type implementations (#6691)

* Update readme-header.png (#6688)

* Fix typo in with-auth example readme (#6696)

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

* Update dependency @testing-library/dom to ^8.7.2 (#6700)

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

* Fix cloudinaryImage on postgres (#6706)

* Move isNullable to db.isNullable and default db.isNullable based on validation.isRequired (#6708)

* Change default for isFilterable/isOrderable to true (#6707)

* Feature/relationship filters (#6608)

* relationship filter in place

* refactor RelationshipSelect so that portalMenu is no longer the default and must be explicitly specified

* update relationship label to be more inline with select

* wip tests

* add item id to Field, update LinkToRelatedItem query construction logic

* iron out kinks, clean up filter query

* Fields graphql selection also now returns the item id

* revert change to pass itemId down to the Fields component

* update relationship controller such that the relationship field value also includes the item id

* update Filter logic and types

* remove logs and bad types

* tests

* first passing test

* update filter tests

* update filter tests and tests.yml

* update tests to run on a browser context each, as clearing localStorage and cookies is not a very stable workflow in playwright

* update tests to clear  cookies and localstorage without tearing down and setting up browser every time

* relationships changeset

* document-field changeset

* remove unnecessary many flag

* update foreignIds to a map that is the shape that relationship select expects

* Remove an old comment

* use item.id if item[list.labelField] is not accessible

* Update .changeset/lemon-suns-yawn.md

* Update packages/keystone/src/fields/types/relationship/views/index.tsx

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

* Lock file maintenance (#6697)

* Lock file maintenance

* resolve yarn.lock

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

* Version Packages (#6483)

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

* Fix `KeystoneContext` type exported from `.keystone/types` (#6711)

* Release #6711 (#6713)

* Bring in latest website changes (#6710)

* Update index.tsx (#6278)

* Fix updates bit on the website (#6287)

* Content management update (#6282)

* Add Wes Testimonial. Cleanup.

* Typos

* Fixed whitespace (#6283)

* Update Header.tsx (#6289)

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

* Content update (#6290)

* Style fixes (#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 (#6300)

* Update fields.mdx (#6304)

* Fixed typo (#6322)

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

* Added styles to table (#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. (#6327)

* Fixed link value (#6328)

* Update `website_live` (#6336)

* Update patch dependencies (patch) (#6253)

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

* Update dependency/apollo client (#6259)

* update apolloclient dependency to latest

* changeset

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

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

* Rename first to take (#6266)

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

* 6268/next typescript config error (#6269)

* add typescript ignoreBuildErrors flag

* changeset

* Updated /updates with new things (#6272)

* Check exceptions returned from GraphQL (#6271)

* Lock file maintenance (#6277)

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

* Use Next 11 in the website (#6256)

* 6223/custom pages guide improvements (#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 (#6285)

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

* Fix updates bit on the website (#6288)

* Include stacktrace flag (#6267)

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

* Use playwright install-deps (#6294)

* Update patch dependencies (patch) (#6284)

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

* Nested filters (#6095)

* GraphQL API docs changes (#6297)

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

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

* Move import of mergeSchemas (#6310)

* Update resolveInput error handling (#6316)

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

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

* Lock file maintenance (#6320)

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

* Expand editable area (#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 (#6308)

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

* Update text filter API table (#6330)

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

* Update patch dependencies (patch) (#6331)

* Add a GraphQL API upgrade guide (#6281)

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

* resolve CHROME BUG

* changeset

* 6261/fix delete alert (#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 (#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 (#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 (#6346)

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

* Updates nav additions (#6366)

* Relocated "K5 vs K6" guidance

* Updated sidebar navigation content for `/updates`

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

* Updated URLs (#6374)

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

* Tweaking docs for Next.js walkthrough.

* Update next-env.d.ts

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

* Fixed link color inconsistency (#6388)

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

* Tweaking docs for Next.js walkthrough.

* Update next-env.d.ts

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

* [WIP] Related content links (#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 (#6400)

* Typo (#6405)

* Replaced absolute links with relative (#6406)

* Fix broken link (#6407)

To copy https://github.com/keystonejs/keystone/pull/6404 for `website_live` branch

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

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

* Progress commit.

* Update EditButton.tsx

* Update EditButton.tsx

* Tab index improvements. (#6427)

* Update EditButton.tsx (#6428)

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

* Content edits (#6451)

* Changes to global header (#6452)

* Update `website_live` with `master` (#6472)

* Website live (#6340)

* Update index.tsx (#6278)

* Fix updates bit on the website (#6287)

* Content management update (#6282)

* Add Wes Testimonial. Cleanup.

* Typos

* Fixed whitespace (#6283)

* Update Header.tsx (#6289)

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

* Content update (#6290)

* Style fixes (#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 (#6300)

* Update fields.mdx (#6304)

* Fixed typo (#6322)

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

* Added styles to table (#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. (#6327)

* Fixed link value (#6328)

* Update `website_live` (#6336)

* Update patch dependencies (patch) (#6253)

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

* Update dependency/apollo client (#6259)

* update apolloclient dependency to latest

* changeset

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

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

* Rename first to take (#6266)

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

* 6268/next typescript config error (#6269)

* add typescript ignoreBuildErrors flag

* changeset

* Updated /updates with new things (#6272)

* Check exceptions returned from GraphQL (#6271)

* Lock file maintenance (#6277)

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

* Use Next 11 in the website (#6256)

* 6223/custom pages guide improvements (#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 (#6285)

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

* Fix updates bit on the website (#6288)

* Include stacktrace flag (#6267)

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

* Use playwright install-deps (#6294)

* Update patch dependencies (patch) (#6284)

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

* Nested filters (#6095)

* GraphQL API docs changes (#6297)

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

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

* Move import of mergeSchemas (#6310)

* Update resolveInput error handling (#6316)

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

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

* Lock file maintenance (#6320)

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

* Expand editable area (#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 (#6308)

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

* Update text filter API table (#6330)

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

* Update patch dependencies (patch) (#6331)

* Add a GraphQL API upgrade guide (#6281)

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

* resolve CHROME BUG

* changeset

* 6261/fix delete alert (#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 (#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 (#6341)

* Update index.tsx (#6278)

* Fix updates bit on the website (#6287)

* Content management update (#6282)

* Add Wes Testimonial. Cleanup.

* Typos

* Fixed whitespace (#6283)

* Update Header.tsx (#6289)

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

* Content update (#6290)

* Style fixes (#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 (#6300)

* Update fields.mdx (#6304)

* Fixed typo (#6322)

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

* Added styles to table (#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. (#6327)

* Fixed link value (#6328)

* Update `website_live` (#6336)

* Update patch dependencies (patch) (#6253)

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

* Update dependency/apollo client (#6259)

* update apolloclient dependency to latest

* changeset

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

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

* Rename first to take (#6266)

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

* 6268/next typescript config error (#6269)

* add typescript ignoreBuildErrors flag

* changeset

* Updated /updates with new things (#6272)

* Check exceptions returned from GraphQL (#6271)

* Lock file maintenance (#6277)

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

* Use Next 11 in the website (#6256)

* 6223/custom pages guide improvements (#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 (#6285)

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

* Fix updates bit on the website (#6288)

* Include stacktrace flag (#6267)

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

* Use playwright install-deps (#6294)

* Update patch dependencies (patch) (#6284)

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

* Nested filters (#6095)

* GraphQL API docs changes (#6297)

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

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

* Move import of mergeSchemas (#6310)

* Update resolveInput error handling (#6316)

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

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

* Lock file maintenance (#6320)

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

* Expand editable area (#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 (#6308)

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

* Update text filter API table (#6330)

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

* Update patch dependencies (patch) (#6331)

* Add a GraphQL API upgrade guide (#6281)

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

* resolve CHROME BUG

* changeset

* 6261/fix delete alert (#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 (#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 (#6343)

* resolve label bug

* changeset

* Releasing update.

* Move testing package into main package (#6361)

* Move fields package into main package (#6362)

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

* Reorder access control tests (#6369)

* Move utils package into main package (#6368)

* Move types package into main package (#6371)

* Better fix for list view checkbox bug  (#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` (#6377)

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

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

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

* Update dependency stripe to ^8.170.0 (#6396)

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

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

* Update @graphql-ts/schema

* Update prisma utils

* Update patch dependencies (patch) (#6394)

* Lock file maintenance (#6386)

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

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

* 6261/delete alert tests (#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 (#6391)

* Allow support for introspection.

* Create great-cougars-argue.md

* Update patch dependencies (#6398)

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

* Update master from website live (#6402)

* Update index.tsx (#6278)

* Fix updates bit on the website (#6287)

* Content management update (#6282)

* Add Wes Testimonial. Cleanup.

* Typos

* Fixed whitespace (#6283)

* Update Header.tsx (#6289)

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

* Content update (#6290)

* Style fixes (#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 (#6300)

* Update fields.mdx (#6304)

* Fixed typo (#6322)

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

* Added styles to table (#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. (#6327)

* Fixed link value (#6328)

* Update `website_live` (#6336)

* Update patch dependencies (patch) (#6253)

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

* Update dependency/apollo client (#6259)

* update apolloclient dependency to latest

* changeset

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

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

* Rename first to take (#6266)

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

* 6268/next typescript config error (#6269)

* add typescript ignoreBuildErrors flag

* changeset

* Updated /updates with new things (#6272)

* Check exceptions returned from GraphQL (#6271)

* Lock file maintenance (#6277)

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

* Use Next 11 in the website (#6256)

* 6223/custom pages guide improvements (#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 (#6285)

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

* Fix updates bit on the website (#6288)

* Include stacktrace flag (#6267)

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

* Use playwright install-deps (#6294)

* Update patch dependencies (patch) (#6284)

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

* Nested filters (#6095)

* GraphQL API docs changes (#6297)

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

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

* Move import of mergeSchemas (#6310)

* Update resolveInput error handling (#6316)

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

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

* Lock file maintenance (#6320)

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

* Expand editable area (#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 (#6308)

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

* Update text filter API table (#6330)

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

* Update patch dependencies (patch) (#6331)

* Add a GraphQL API upgrade guide (#6281)

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

* resolve CHROME BUG

* changeset

* 6261/fix delete alert (#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 (#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 (#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 (#6346)

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

* Updates nav additions (#6366)

* Relocated "K5 vs K6" guidance

* Updated sidebar navigation content for `/updates`

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

* Updated URLs (#6374)

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

* Tweaking docs for Next.js walkthrough.

* Update next-env.d.ts

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

* Fixed link color inconsistency (#6388)

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

* Tweaking docs for Next.js walkthrough.

* Update next-env.d.ts

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

* [WIP] Related content links (#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 (#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 (#6403)

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

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

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

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

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

* merge aria-description text into aria-label

* chnageset

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

* Add isFilterable and isOrderable config options (#6416)

* Add seed data feature to examples (#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 (#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 (#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 (#6422)

* Update example READMEs with seed data instructions (#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 (#6420)

* Update index.ts (#6424)

* Lock file maintenance (#6425)

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

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

* Update patch dependencies (patch) (#6431)

* Next 11 (#6414)

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

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

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

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

* Update patch dependencies (#6438)

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

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

* Remove unused dependency (#6443)

* Update dependency typescript to ^4.4.2 (#6432)

* Integration tests admin UI (#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 (#6445)

* Clean up blog schema (#6449)

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

* Fix styles on document field demo (#6446)

* Add getChildTag fn to Inline component (#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 (#6459)

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

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

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

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

* Lock file maintenance (#6466)

* Fast Graphql API Startup in Dev (#6463)

* Add extendExpressApp config option (#6467)

* Update access control APIs (#6426)

* Version Packages (#6339)

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

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

* Update index.tsx (#6278)

* Fix updates bit on the website (#6287)

* Content management update (#6282)

* Add Wes Testimonial. Cleanup.

* Typos

* Fixed whitespace (#6283)

* Update Header.tsx (#6289)

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

* Content update (#6290)

* Style fixes (#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 (#6300)

* Update fields.mdx (#6304)

* Fixed typo (#6322)

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

* Added styles to table (#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. (#6327)

* Fixed link value (#6328)

* Update `website_live` (#6336)

* Update patch dependencies (patch) (#6253)

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

* Update dependency/apollo client (#6259)

* update apolloclient dependency to latest

* changeset

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

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

* Rename first to take (#6266)

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

* 6268/next typescript config error (#6269)

* add typescript ignoreBuildErrors flag

* changeset

* Updated /updates with new things (#6272)

* Check exceptions returned from GraphQL (#6271)

* Lock file maintenance (#6277)

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

* Use Next 11 in the website (#6256)

* 6223/custom pages guide improvements (#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 (#6285)

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

* Fix updates bit on the website (#6288)

* Include stacktrace flag (#6267)

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

* Use playwright install-deps (#6294)

* Update patch dependencies (patch) (#6284)

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

* Nested filters (#6095)

* GraphQL API docs changes (#6297)

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

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

* Move import of mergeSchemas (#6310)

* Update resolveInput error handling (#6316)

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

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

* Lock file maintenance (#6320)

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

* Expand editable area (#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 (#6308)

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

* Update text filter API table (#6330)

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

* Update patch dependencies (patch) (#6331)

* Add a GraphQL API upgrade guide (#6281)

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

* resolve CHROME BUG

* changeset

* 6261/fix delete alert (#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 (#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 (#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 (#6346)

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

* Updates nav additions (#6366)

* Relocated "K5 vs K6" guidance

* Updated sidebar navigation content for `/updates`

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

* Updated URLs (#6374)

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

* Tweaking docs for Next.js walkthrough.

* Update next-env.d.ts

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

* Fixed link color inconsistency (#6388)

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

* Tweaking docs for Next.js walkthrough.

* Update next-env.d.ts

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

* [WIP] Related content links (#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 (#6400)

* Typo (#6405)

* Replaced absolute links with relative (#6406)

* Fix broken link (#6407)

To copy https://github.com/keystonejs/keystone/pull/6404 for `website_live` branch

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

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

* Progress commit.

* Update EditButton.tsx

* Update EditButton.tsx

* Tab index improvements. (#6427)

* Update EditButton.tsx (#6428)

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

* Content edits (#6451)

* Changes to global header (#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>

* Remove link to non-existant document (#6475)

* typo (#6485)

* content updates (#6486)

* Fixed typos (#6491)

* Revert project creation instructions (#6492)

* Revert project creation instructions

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

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

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

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

* typo fix (#6493)

* Make all docs pages editable via Github (#6494)

* Fix link to item section in page (#6502)

* Add filter api links to access control api page (#6506)

* Fix explanation of allowed Field-level operations (#6510)

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

* Deployment examples (#6527)

* Updated examples index

* Exposed example subsections, and docs parent links in nav

* Fixed links

* Deployment examples (#6528)

* Updated examples index

* Exposed example subsections, and docs parent links in nav

* Fixed links

* Update Navigation.tsx

* Fixed Noviny's suggestions

* Lint fix

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

* Update DocumentEditorDemo.tsx (#6529)

* `create-keystone-app` outputed URLs sometimes have hidden characters, cater for this (#6533)

* Update redirects.js

* Fixes.

* Landing page cta (#6464)

* WIP

* make gradients pass AA

* responsive tweaks

* landings cleanup

* add arrow back to well

* place CTA on relevant pages

* revert tokens

* decomponentise

* WIP copy stamp

* remove bounding box

* WIP

* Introduce new icons

* Landing page CTA block content updates

* Tweak max width slightly for Firefox.

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

* Updated `Quote` component styles in Docsfield Demo (#6541)

* Updated `Quote` component styles in Docsfield Demo

* Linty stuff

* Update docs. (#6561)

* Updates. (#6563)

* Update getting-started-with-create-keystone-app.mdx (#6566)

* Improve documentation for chromeless feature (#6572)

* Improve documentation for chromeless feaure

* Making docs clearer.

* Update document-fields.mdx

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

* Update custom-admin-ui-logo.mdx (#6585)

* Q&A banner for website (#6589)

* Q&A Banner.

* Update Page.tsx

* Formatting.

* Updates.

* Update Keystone5DocsCTA.tsx

* TS.

* Update schema.mdx (#6594)

Remove reference to allUsers

* Typo (#6628)

a => at

* Update banner post Q&A. (#6633)

* Adding Splitbee. (#6636)

* Edit suggestions (#6586)

* Youtube 2 (#6646)

* Added Youtube component

* Add YouTube SVG path

* Added YouTube link to Socials component

* Added railway example (#6648)

* Update resolvedData docs for relationships - take 2 (#6665)

* Update Header.tsx (#6661)

* Try bumping the cache version number (#6673)

* New updates for `/updates` (#6671)

* Update index.tsx

* Update docs/pages/updates/index.tsx

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

* Update docs/pages/updates/index.tsx

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

* Update index.tsx

* Update index.tsx

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

* Create email-welcome-banner.png (#6677)

* Remove reference to defaultValue on relationship field (#6679)

* Update virtual-fields.mdx (#6695)

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-authore…
  • Loading branch information
1 parent 30c4ff5 commit 197a499
Show file tree
Hide file tree
Showing 502 changed files with 15,047 additions and 9,700 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ jobs:
'default-values.test.ts',
'extend-graphql-schema.test.ts',
'json.test.ts',
'rest-api.test.ts',
'roles.test.ts',
'task-manager.test.ts',
'testing.test.ts',
Expand Down Expand Up @@ -314,7 +315,7 @@ jobs:
DATABASE_URL: 'file:./test.db'
strategy:
matrix:
test: ['init.test.ts', 'list-view-crud.test.ts', 'navigation.test.ts']
test: ['init.test.ts', 'filters.test.ts', 'list-view-crud.test.ts', 'navigation.test.ts']
fail-fast: false
steps:
- name: Checkout Repo
Expand Down
38 changes: 38 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,3 +160,41 @@ Add release to release page index under `/docs/pages/releases/index.mdx` with a
Commit website update and open PR to add to `master`.

Have PR reviewed and merged into `master`.

## GitHub branch sync

When we do a release we need to make sure `master` and `website_live` are both in sync with each other, this is done by:

Creating a branch off `master` such as `bring-in-latest-website-changes` and merging in `website_live` changes, opening a PR and getting it merged, example - <https://github.com/keystonejs/keystone/pull/6470>

Then the other way around, create a branch off `website_live` such as `bring-in-latest-master-changes`, and merging in `master` changes, opening a PR and getting it merged, example - <https://github.com/keystonejs/keystone/pull/6472>

Once this is done, the histories will be out of sync, GitHub will state that `website_live` is still x commits behind, if you look at the branches page - <https://github.com/keystonejs/keystone/branches>

To resolve this in the CLI:

Go to the `website_live` branch

`git checkout website_live`

Check that we're identical to master

`git diff master`

Do a merge that should just update the parents of the new commit

`git merge master`

This should be empty

`git diff origin/website_live`

This should be empty

`git diff master`

Force push `website_live` (after turning off branch protection in github)

`git push --force`

Branches should now be nicely aligned.
Binary file modified assets/readme-header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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/button.cjs.js",
"module": "dist/button.esm.js",
"devDependencies": {
"@types/react": "^17.0.19"
"@types/react": "^17.0.27"
},
"dependencies": {
"@babel/runtime": "^7.15.3",
"@babel/runtime": "^7.15.4",
"@keystone-ui/core": "^3.2.0",
"@keystone-ui/icons": "^4.0.1",
"@keystone-ui/loading": "^4.0.1",
Expand Down
4 changes: 2 additions & 2 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/core.cjs.js",
"module": "dist/core.esm.js",
"devDependencies": {
"@types/react": "^17.0.19",
"@types/react": "^17.0.27",
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
Expand All @@ -14,7 +14,7 @@
"react-dom": "^17.0.2"
},
"dependencies": {
"@babel/runtime": "^7.15.3",
"@babel/runtime": "^7.15.4",
"@emotion/react": "^11.4.1",
"@types/facepaint": "^1.2.2",
"facepaint": "^1.2.1"
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

## 5.0.0

### Major Changes

- [#6674](https://github.com/keystonejs/keystone/pull/6674) [`f963966ab`](https://github.com/keystonejs/keystone/commit/f963966ab138a315a8f18d83ed7a676f7423a51d) Thanks [@mitchellhamilton](https://github.com/mitchellhamilton)! - The `onBlur` prop on `DatePicker` now actually works and it does not recieve an actual blur event.

### Patch Changes

- Updated dependencies [[`6d3798fdb`](https://github.com/keystonejs/keystone/commit/6d3798fdbd0a9f1567821e90b7176cf7dd208fda)]:
- @keystone-ui/popover@4.0.4

## 4.1.3

### Patch Changes
Expand Down
14 changes: 7 additions & 7 deletions design-system/packages/fields/package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"name": "@keystone-ui/fields",
"version": "4.1.3",
"version": "5.0.0",
"license": "MIT",
"main": "dist/fields.cjs.js",
"module": "dist/fields.esm.js",
"devDependencies": {
"@types/react": "^17.0.19"
"@types/react": "^17.0.27"
},
"dependencies": {
"@babel/runtime": "^7.15.3",
"@babel/runtime": "^7.15.4",
"@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",
"@keystone-ui/popover": "^4.0.4",
"@types/react-select": "^4.0.18",
"date-fns": "^2.24.0",
"react": "^17.0.2",
"react-day-picker": "npm:react-day-picker@^7.4.8",
"react-focus-lock": "^2.5.2",
"react-select": "^4.3.1"
"react-select": "^5.0.0"
},
"engines": {
"node": "^12.20 || >= 14.13"
Expand Down
75 changes: 60 additions & 15 deletions design-system/packages/fields/src/DatePicker/index.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/** @jsxRuntime classic */
/** @jsx jsx */

import React, { Fragment, useCallback } from 'react';
import { Fragment, useCallback, useEffect, useRef, useState } from 'react';
import FocusLock from 'react-focus-lock';
import { jsx } from '@keystone-ui/core';
import { PopoverDialog, usePopover } from '@keystone-ui/popover';
import { PopoverDialog, useControlledPopover } from '@keystone-ui/popover';

import { formatDMY, formatDateType } from '../utils/dateFormatters';
import { DateType } from '../types';
Expand All @@ -16,22 +16,60 @@ export type DateInputValue = string | undefined;
export type DatePickerProps = {
onUpdate: (value: DateType) => void;
onClear: () => void;
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
onBlur?: () => void;
value: DateType;
};

export const DatePicker = ({ value, onUpdate, onClear, onBlur, ...props }: DatePickerProps) => {
const { isOpen, setOpen, dialog, trigger, arrow } = usePopover({
placement: 'bottom-start',
modifiers: [
{
name: 'offset',
options: {
offset: [0, 8],
},
},
],
export function useEventCallback<Func extends (...args: any) => any>(callback: Func): Func {
const callbackRef = useRef(callback);
const cb = useCallback((...args) => {
return callbackRef.current(...args);
}, []);
useEffect(() => {
callbackRef.current = callback;
});
return cb as any;
}

export const DatePicker = ({
value,
onUpdate,
onClear,
onBlur: _onBlur,
...props
}: DatePickerProps) => {
const [isOpen, _setOpen] = useState(false);
const onBlur = useEventCallback(() => {
_onBlur?.();
});
const setOpen = useCallback(
(val: boolean) => {
_setOpen(val);
if (!val) {
onBlur?.();
}
},
[onBlur]
);
const { dialog, trigger, arrow } = useControlledPopover(
{
isOpen,
onClose: useCallback(() => {
setOpen(false);
}, [setOpen]),
},
{
placement: 'bottom-start',
modifiers: [
{
name: 'offset',
options: {
offset: [0, 8],
},
},
],
}
);

const handleDayClick = useCallback(
(day: Date) => {
Expand All @@ -52,7 +90,14 @@ export const DatePicker = ({ value, onUpdate, onClear, onBlur, ...props }: DateP
<InputButton
aria-label={'Choose date' + (formattedDate ? `, selected date is ${formattedDate}` : '')}
onClick={() => setOpen(true)}
onClear={value ? onClear : undefined}
onClear={
value
? () => {
onClear();
onBlur?.();
}
: undefined
}
isSelected={isOpen}
ref={trigger.ref}
{...props}
Expand Down
10 changes: 5 additions & 5 deletions design-system/packages/fields/src/Select.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
/** @jsxRuntime classic */
/** @jsx jsx */
import { jsx, useTheme } from '@keystone-ui/core';
import ReactSelect, { OptionsType, mergeStyles, NamedProps } from 'react-select';
import ReactSelect, { Options, mergeStyles, Props } from 'react-select';
import { useInputTokens } from './hooks/inputs';
import { WidthType } from './types';

type Option = { label: string; value: string; isDisabled?: boolean };

type BaseSelectProps = Omit<
NamedProps<Option, boolean>,
Props<Option, boolean>,
'value' | 'onChange' | 'isMulti' | 'isOptionDisabled'
> & { width?: WidthType };

export { components as selectComponents } from 'react-select';

type ControlState = {
isDisabled: boolean;
isDisabled?: boolean;
isFocused: boolean;
};

Expand Down Expand Up @@ -153,9 +153,9 @@ export function MultiSelect({
styles,
...props
}: BaseSelectProps & {
value: OptionsType<Option>;
value: Options<Option>;
portalMenu?: true;
onChange(value: OptionsType<Option>): void;
onChange(value: Options<Option>): void;
}) {
const tokens = useInputTokens({ width: widthKey });
const defaultStyles = useStyles({ tokens, multi: true });
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.19",
"@types/react": "^17.0.27",
"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.3",
"@babel/runtime": "^7.15.4",
"@keystone-ui/core": "^3.2.0"
},
"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/loading.cjs.js",
"module": "dist/loading.esm.js",
"devDependencies": {
"@types/react": "^17.0.19"
"@types/react": "^17.0.27"
},
"dependencies": {
"@babel/runtime": "^7.15.3",
"@babel/runtime": "^7.15.4",
"@keystone-ui/core": "^3.2.0",
"react": "^17.0.2"
},
Expand Down
4 changes: 2 additions & 2 deletions design-system/packages/modals/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"main": "dist/modals.cjs.js",
"module": "dist/modals.esm.js",
"devDependencies": {
"@types/react": "^17.0.19"
"@types/react": "^17.0.27"
},
"dependencies": {
"@babel/runtime": "^7.15.3",
"@babel/runtime": "^7.15.4",
"@keystone-ui/button": "^5.0.1",
"@keystone-ui/core": "^3.2.0",
"react": "^17.0.2",
Expand Down
6 changes: 6 additions & 0 deletions design-system/packages/notice/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @keystone-ui/notice

## 4.1.0

### Minor Changes

- [#6508](https://github.com/keystonejs/keystone/pull/6508) [`3cfc2a383`](https://github.com/keystonejs/keystone/commit/3cfc2a3839142dd3ccdbf1dd86768257e9acc0dc) Thanks [@JedWatson](https://github.com/JedWatson)! - Add Margin to error messages in the Admin UI Item Form

## 4.0.2

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions design-system/packages/notice/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "@keystone-ui/notice",
"version": "4.0.2",
"version": "4.1.0",
"license": "MIT",
"main": "dist/notice.cjs.js",
"module": "dist/notice.esm.js",
"devDependencies": {
"@types/react": "^17.0.19"
"@types/react": "^17.0.27"
},
"dependencies": {
"@babel/runtime": "^7.15.3",
"@babel/runtime": "^7.15.4",
"@keystone-ui/button": "^5.0.1",
"@keystone-ui/core": "^3.2.0",
"@keystone-ui/icons": "^4.0.1",
Expand Down
8 changes: 4 additions & 4 deletions design-system/packages/notice/src/Notice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/** @jsx jsx */

import { ReactNode, useMemo } from 'react';
import { jsx, makeId, useId, Stack } from '@keystone-ui/core';
import { jsx, makeId, useId, Stack, MarginProps, Box } from '@keystone-ui/core';
import { AlertOctagonIcon } from '@keystone-ui/icons/icons/AlertOctagonIcon';
import { AlertCircleIcon } from '@keystone-ui/icons/icons/AlertCircleIcon';
import { AlertTriangleIcon } from '@keystone-ui/icons/icons/AlertTriangleIcon';
Expand Down Expand Up @@ -36,7 +36,7 @@ type NoticeProps = {
tone?: ToneKey;
title?: string;
className?: string;
} /* TODO: & MarginProps */;
} & MarginProps;

export const Notice = ({
actions,
Expand All @@ -60,7 +60,7 @@ export const Notice = ({

return (
<ButtonProvider {...buttonContext}>
<div
<Box
css={{
display: 'flex',
flex: 1,
Expand Down Expand Up @@ -97,7 +97,7 @@ export const Notice = ({
</Stack>
)}
</div>
</div>
</Box>
</ButtonProvider>
);
};
Loading

1 comment on commit 197a499

@vercel
Copy link

@vercel vercel bot commented on 197a499 Oct 5, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.