payload 0.14.6-beta.0 → 0.14.7-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,9 +1,10 @@
|
|
|
1
|
-
## [0.14.
|
|
1
|
+
## [0.14.7-beta.0](https://github.com/payloadcms/payload/compare/v0.14.0...v0.14.7-beta.0) (2022-01-12)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
6
|
* ensures multipart/form-data using _payload flattens field data before sending ([ae44727](https://github.com/payloadcms/payload/commit/ae44727fb9734fc3801f7249fa9e78668311c09e))
|
|
7
|
+
* ensures nested lists always render properly ([20e5dfb](https://github.com/payloadcms/payload/commit/20e5dfbb4ab8dab320d60772f5195c5faffe38d3))
|
|
7
8
|
* new slate version types ([c5de01b](https://github.com/payloadcms/payload/commit/c5de01bfc48ca6793c1526499fe934d9ad8f0cc9))
|
|
8
9
|
* type error in useField ([ef4e6d3](https://github.com/payloadcms/payload/commit/ef4e6d32a90215c07aa2c1e7217cf53558bfae97))
|
|
9
10
|
|
|
@@ -15,17 +16,19 @@
|
|
|
15
16
|
* exposes FieldWithPath type for reuse ([df3a836](https://github.com/payloadcms/payload/commit/df3a83634fcb64724ef239600e3af4fc295fee4f))
|
|
16
17
|
* rich text indent PoC ([2deed8b](https://github.com/payloadcms/payload/commit/2deed8b1464931c4bc76a288923b307cf04b6a4a))
|
|
17
18
|
|
|
18
|
-
## [0.14.
|
|
19
|
+
## [0.14.6-beta.0](https://github.com/payloadcms/payload/compare/v0.14.0...v0.14.6-beta.0) (2022-01-12)
|
|
19
20
|
|
|
20
21
|
|
|
21
22
|
### Bug Fixes
|
|
22
23
|
|
|
23
24
|
* ensures multipart/form-data using _payload flattens field data before sending ([ae44727](https://github.com/payloadcms/payload/commit/ae44727fb9734fc3801f7249fa9e78668311c09e))
|
|
25
|
+
* new slate version types ([c5de01b](https://github.com/payloadcms/payload/commit/c5de01bfc48ca6793c1526499fe934d9ad8f0cc9))
|
|
24
26
|
* type error in useField ([ef4e6d3](https://github.com/payloadcms/payload/commit/ef4e6d32a90215c07aa2c1e7217cf53558bfae97))
|
|
25
27
|
|
|
26
28
|
|
|
27
29
|
### Features
|
|
28
30
|
|
|
31
|
+
* adds indentation controls to rich text ([7df50f9](https://github.com/payloadcms/payload/commit/7df50f9bf9d4867e65bdd8cebdf43e0ab1737a63))
|
|
29
32
|
* builds a way for multipart/form-data reqs to retain non-string values ([65b0ad7](https://github.com/payloadcms/payload/commit/65b0ad7f084a9c279a1e4fb799542f97c645653d))
|
|
30
33
|
* exposes FieldWithPath type for reuse ([df3a836](https://github.com/payloadcms/payload/commit/df3a83634fcb64724ef239600e3af4fc295fee4f))
|
|
31
34
|
|
|
@@ -4,7 +4,10 @@ const isListActive = (editor, format) => {
|
|
|
4
4
|
// If focus or anchor is at root of editor,
|
|
5
5
|
// Return false - as Editor.parent will fail
|
|
6
6
|
|| editor.selection.focus.path[1] === 0
|
|
7
|
-
|| editor.selection.
|
|
7
|
+
// || editor.selection.focus.path.length === 0
|
|
8
|
+
|| editor.selection.anchor.path[1] === 0
|
|
9
|
+
// || editor.selection.anchor.path.length === 0
|
|
10
|
+
)
|
|
8
11
|
return false;
|
|
9
12
|
const parentLI = Editor.parent(editor, editor.selection);
|
|
10
13
|
if (parentLI[1].length > 0) {
|
|
@@ -3,7 +3,7 @@ import listTypes from '../listTypes';
|
|
|
3
3
|
const LI = (props) => {
|
|
4
4
|
var _a, _b;
|
|
5
5
|
const { attributes, element, children } = props;
|
|
6
|
-
const disableListStyle = element.children.length
|
|
6
|
+
const disableListStyle = element.children.length >= 1 && listTypes.includes((_b = (_a = element.children) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.type);
|
|
7
7
|
return (React.createElement("li", { style: { listStyle: disableListStyle ? 'none' : undefined }, ...attributes }, children));
|
|
8
8
|
};
|
|
9
9
|
export default {
|