payload 0.14.17-beta.0 → 0.14.18-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
- ## [0.14.17-beta.0](https://github.com/payloadcms/payload/compare/v0.14.0...v0.14.17-beta.0) (2022-02-01)
1
+ ## [0.14.18-beta.0](https://github.com/payloadcms/payload/compare/v0.14.0...v0.14.18-beta.0) (2022-02-01)
2
2
 
3
3
 
4
4
  ### Bug Fixes
@@ -23,9 +23,10 @@
23
23
  * builds a way for multipart/form-data reqs to retain non-string values ([65b0ad7](https://github.com/payloadcms/payload/commit/65b0ad7f084a9c279a1e4fb799542f97c645653d))
24
24
  * enhances rich text upload with custom field API ([0e4eb90](https://github.com/payloadcms/payload/commit/0e4eb906f2881dca518fea6b41e460bc57da9801))
25
25
  * exposes FieldWithPath type for reuse ([df3a836](https://github.com/payloadcms/payload/commit/df3a83634fcb64724ef239600e3af4fc295fee4f))
26
+ * exposes useLocale for reuse ([bef0206](https://github.com/payloadcms/payload/commit/bef02062e769d1b0279c51af748f06d41c924c8a))
26
27
  * rich text indent PoC ([2deed8b](https://github.com/payloadcms/payload/commit/2deed8b1464931c4bc76a288923b307cf04b6a4a))
27
28
 
28
- ## [0.14.16-beta.0](https://github.com/payloadcms/payload/compare/v0.14.0...v0.14.16-beta.0) (2022-02-01)
29
+ ## [0.14.17-beta.0](https://github.com/payloadcms/payload/compare/v0.14.0...v0.14.17-beta.0) (2022-02-01)
29
30
 
30
31
 
31
32
  ### Bug Fixes
@@ -52,32 +53,6 @@
52
53
  * exposes FieldWithPath type for reuse ([df3a836](https://github.com/payloadcms/payload/commit/df3a83634fcb64724ef239600e3af4fc295fee4f))
53
54
  * rich text indent PoC ([2deed8b](https://github.com/payloadcms/payload/commit/2deed8b1464931c4bc76a288923b307cf04b6a4a))
54
55
 
55
- ## [0.14.15-beta.0](https://github.com/payloadcms/payload/compare/v0.14.0...v0.14.15-beta.0) (2022-01-31)
56
-
57
-
58
- ### Bug Fixes
59
-
60
- * awaits beforeDelete hooks ([609b871](https://github.com/payloadcms/payload/commit/609b871fa274e8b6d9eaf301e52ab42179aad9b7))
61
- * ensures multipart/form-data using _payload flattens field data before sending ([ae44727](https://github.com/payloadcms/payload/commit/ae44727fb9734fc3801f7249fa9e78668311c09e))
62
- * ensures nested lists always render properly ([20e5dfb](https://github.com/payloadcms/payload/commit/20e5dfbb4ab8dab320d60772f5195c5faffe38d3))
63
- * ensures rte upload is populated when only upload is enabled ([39438b8](https://github.com/payloadcms/payload/commit/39438b8460f853f64d84436eed49dde74cd207d2))
64
- * import path for createRichTextRelationshipPromise ([586cd4d](https://github.com/payloadcms/payload/commit/586cd4d6af5485116ebb299a5af3d24f5baeaa2e))
65
- * new slate version types ([c5de01b](https://github.com/payloadcms/payload/commit/c5de01bfc48ca6793c1526499fe934d9ad8f0cc9))
66
- * rte upload field population ([8327b5a](https://github.com/payloadcms/payload/commit/8327b5aae505a189a5b9617c3485d646b5f8b517))
67
- * type error in useField ([ef4e6d3](https://github.com/payloadcms/payload/commit/ef4e6d32a90215c07aa2c1e7217cf53558bfae97))
68
-
69
-
70
- ### Features
71
-
72
- * adds a way to customize express.static options ([dbb3c50](https://github.com/payloadcms/payload/commit/dbb3c502227597ef4d04c9e5c8db6d2f51a8aac4))
73
- * adds admin.upload.collections[collection-name].fields to the RTE to save specific data on upload elements ([3adf44a](https://github.com/payloadcms/payload/commit/3adf44a24162e5adbcebdb0ca7d0d460d23c57eb))
74
- * adds indentation controls to rich text ([7df50f9](https://github.com/payloadcms/payload/commit/7df50f9bf9d4867e65bdd8cebdf43e0ab1737a63))
75
- * adds recursion to richText field to populate relationship and upload nested fields ([42af22c](https://github.com/payloadcms/payload/commit/42af22c2a10de44555bfedf902e7b4a4c9b25d6b))
76
- * builds a way for multipart/form-data reqs to retain non-string values ([65b0ad7](https://github.com/payloadcms/payload/commit/65b0ad7f084a9c279a1e4fb799542f97c645653d))
77
- * enhances rich text upload with custom field API ([0e4eb90](https://github.com/payloadcms/payload/commit/0e4eb906f2881dca518fea6b41e460bc57da9801))
78
- * exposes FieldWithPath type for reuse ([df3a836](https://github.com/payloadcms/payload/commit/df3a83634fcb64724ef239600e3af4fc295fee4f))
79
- * rich text indent PoC ([2deed8b](https://github.com/payloadcms/payload/commit/2deed8b1464931c4bc76a288923b307cf04b6a4a))
80
-
81
56
 
82
57
  # [0.14.0](https://github.com/payloadcms/payload/compare/v0.13.6...v0.14.0) (2022-01-03)
83
58
 
@@ -1 +1,2 @@
1
- export { default as Meta } from '../src/admin/components/utilities/Meta';
1
+ export { default as Meta } from '../dist/admin/components/utilities/Meta';
2
+ export { useLocale } from '../dist/admin/components/utilities/Locale';
@@ -9,7 +9,7 @@ declare type CustomText = {
9
9
  [x: string]: unknown;
10
10
  };
11
11
  declare type CustomElement = {
12
- type: string;
12
+ type?: string;
13
13
  children: CustomText[];
14
14
  };
15
15
  declare module 'slate' {
@@ -155,9 +155,7 @@ const RichText = (props) => {
155
155
  event.preventDefault();
156
156
  const selectedLeaf = Node.descendant(editor, editor.selection.anchor.path);
157
157
  if (Text.isText(selectedLeaf) && String(selectedLeaf.text).length === editor.selection.anchor.offset) {
158
- Transforms.insertNodes(editor, {
159
- text: '',
160
- });
158
+ Transforms.insertNodes(editor, { children: [{ text: '' }] });
161
159
  }
162
160
  else {
163
161
  Transforms.splitNodes(editor);
@@ -55,7 +55,7 @@ const Element = ({ attributes, children, element, path, fieldProps }) => {
55
55
  fieldSchema && (React.createElement(Button, { icon: "edit", round: true, buttonStyle: "icon-label", className: `${baseClass}__actionButton`, onClick: (e) => {
56
56
  e.preventDefault();
57
57
  setModalToRender('edit');
58
- }, tooltip: "Upload Fields" })),
58
+ }, tooltip: "Edit" })),
59
59
  React.createElement(Button, { icon: "swap", round: true, buttonStyle: "icon-label", className: `${baseClass}__actionButton`, onClick: (e) => {
60
60
  e.preventDefault();
61
61
  setModalToRender('swap');
@@ -22,6 +22,7 @@
22
22
  width: base(3.25);
23
23
  height: auto;
24
24
  position: relative;
25
+ overflow: hidden;
25
26
 
26
27
  img, svg {
27
28
  position: absolute;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payload",
3
- "version": "0.14.17-beta.0",
3
+ "version": "0.14.18-beta.0",
4
4
  "description": "Node, React and MongoDB Headless CMS and Application Framework",
5
5
  "license": "SEE LICENSE IN license.md",
6
6
  "author": {