diff --git a/CHANGELOG.md b/CHANGELOG.md index 27ffb5d4ed..b37733886c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,26 @@ +## [0.12.8-beta.0](https://github.com/payloadcms/payload/compare/v0.12.3...v0.12.8-beta.0) (2021-11-10) + + +### Bug Fixes + +* [#351](https://github.com/payloadcms/payload/issues/351) ([94c2b8d](https://github.com/payloadcms/payload/commit/94c2b8d80b046c067057d4ad089ed6a2edd656cf)) +* bug with relationship cell when no doc is available ([40b33d9](https://github.com/payloadcms/payload/commit/40b33d9f5e99285cb0de148dbe059259817fcad8)) +* ensures richtext links retain proper formatting ([abf61d0](https://github.com/payloadcms/payload/commit/abf61d0734c09fd0fc5c5b827cb0631e11701f71)) + +### Features + +* adds relationship filter field ([463c4e6](https://github.com/payloadcms/payload/commit/463c4e60de8e647fca6268b826d826f9c6e45412)) +* ensures update hooks have access to full original docs even in spite of access control ([b2c5b7e](https://github.com/payloadcms/payload/commit/b2c5b7e5752e829c7a53c054decceb43ec33065e)) +* improves querying logic ([4c85747](https://github.com/payloadcms/payload/commit/4c8574784995b1cb1f939648f4d2158286089b3d)) + +## [0.12.3](https://github.com/payloadcms/payload/compare/v0.12.2...v0.12.3) (2021-10-23) + + +### Bug Fixes + +* [#348](https://github.com/payloadcms/payload/issues/348), relationship options appearing twice in admin ui ([b4c15ed](https://github.com/payloadcms/payload/commit/b4c15ed3f3649ea6d157987571874fb8486ab3cb)) +* ensures tooltips in email fields are positioned properly ([a0b38f6](https://github.com/payloadcms/payload/commit/a0b38f68322cd7a39ca6ae08e6ffb7f57aa62171)) + ## [0.12.2](https://github.com/payloadcms/payload/compare/v0.12.1...v0.12.2) (2021-10-21) diff --git a/demo/collections/RelationshipA.ts b/demo/collections/RelationshipA.ts index 8cd3da09b6..4c288fbb11 100644 --- a/demo/collections/RelationshipA.ts +++ b/demo/collections/RelationshipA.ts @@ -15,7 +15,6 @@ const RelationshipA: CollectionConfig = { label: 'Post', type: 'relationship', relationTo: 'relationship-b', - localized: true, }, { name: 'LocalizedPost', diff --git a/demo/collections/RelationshipB.ts b/demo/collections/RelationshipB.ts index 5adab1b05d..bb8ab298e4 100644 --- a/demo/collections/RelationshipB.ts +++ b/demo/collections/RelationshipB.ts @@ -5,11 +5,18 @@ const RelationshipB: CollectionConfig = { access: { read: () => true, }, + admin: { + useAsTitle: 'title', + }, labels: { singular: 'Relationship B', plural: 'Relationship B', }, fields: [ + { + name: 'title', + type: 'text', + }, { name: 'post', label: 'Post', diff --git a/demo/payload.config.ts b/demo/payload.config.ts index 78174d766f..ddddca5107 100644 --- a/demo/payload.config.ts +++ b/demo/payload.config.ts @@ -45,7 +45,7 @@ export default buildConfig({ // // ogImage: '/static/find-image-here.jpg', // // favicon: '/img/whatever.png', // }, - disable: false, + // disable: true, scss: path.resolve(__dirname, './client/scss/overrides.scss'), components: { // Nav: () => ( diff --git a/docs/fields/select.mdx b/docs/fields/select.mdx index 08577ac24e..3f5483b034 100644 --- a/docs/fields/select.mdx +++ b/docs/fields/select.mdx @@ -15,7 +15,7 @@ keywords: select, multi-select, fields, config, configuration, documentation, Co | Option | Description | | ---------------- | ----------- | | **`name`** * | To be used as the property name when stored and retrieved from the database. | -| **`options`** * | Array of options to allow the field to store. Can either be an array of strings, or an array of objects containing an `option` string and a `value` string. | +| **`options`** * | Array of options to allow the field to store. Can either be an array of strings, or an array of objects containing a `label` string and a `value` string. | | **`hasMany`** | Boolean when, if set to `true`, allows this field to have many selections instead of only one. | | **`label`** | Used as a field label in the Admin panel and to name the generated GraphQL type. | | **`unique`** | Enforce that each entry in the Collection has a unique value for this field. | diff --git a/package.json b/package.json index 31e47208e4..776927a577 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "payload", - "version": "0.12.2", + "version": "0.12.8-beta.0", "description": "Node, React and MongoDB Headless CMS and Application Framework", "license": "SEE LICENSE IN license.md", "author": { @@ -125,7 +125,7 @@ "mini-css-extract-plugin": "1.3.3", "minimist": "^1.2.0", "mkdirp": "^1.0.4", - "mongoose": "^5.8.9", + "mongoose": "^6.0.12", "mongoose-paginate-v2": "^1.3.6", "node-sass": "^6.0.1", "nodemailer": "^6.4.2", diff --git a/src/admin/components/elements/ReactSelect/index.tsx b/src/admin/components/elements/ReactSelect/index.tsx index b872c354b0..92c0de3e87 100644 --- a/src/admin/components/elements/ReactSelect/index.tsx +++ b/src/admin/components/elements/ReactSelect/index.tsx @@ -13,6 +13,7 @@ const ReactSelect: React.FC = (props) => { onChange, value, disabled = false, + placeholder, } = props; const classes = [ @@ -23,6 +24,7 @@ const ReactSelect: React.FC = (props) => { return (