@wordpress/editor 14.33.2 → 14.33.3
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/build/bindings/post-data.js +10 -17
- package/build/bindings/post-data.js.map +2 -2
- package/build/bindings/post-meta.js +7 -14
- package/build/bindings/post-meta.js.map +2 -2
- package/build/bindings/term-data.js +6 -16
- package/build/bindings/term-data.js.map +2 -2
- package/build/components/collab-sidebar/add-comment.js +26 -3
- package/build/components/collab-sidebar/add-comment.js.map +3 -3
- package/build/components/collab-sidebar/comment-indicator-toolbar.js +6 -22
- package/build/components/collab-sidebar/comment-indicator-toolbar.js.map +3 -3
- package/build/components/collab-sidebar/comments.js +112 -33
- package/build/components/collab-sidebar/comments.js.map +3 -3
- package/build/components/collab-sidebar/hooks.js +14 -8
- package/build/components/collab-sidebar/hooks.js.map +2 -2
- package/build/components/collab-sidebar/index.js +51 -59
- package/build/components/collab-sidebar/index.js.map +3 -3
- package/build/components/editor/index.js +2 -0
- package/build/components/editor/index.js.map +3 -3
- package/build/components/header/index.js +0 -3
- package/build/components/header/index.js.map +3 -3
- package/build/components/post-template/hooks.js +7 -38
- package/build/components/post-template/hooks.js.map +2 -2
- package/build/components/provider/index.js +1 -1
- package/build/components/provider/index.js.map +2 -2
- package/build/store/actions.js +1 -1
- package/build/store/actions.js.map +2 -2
- package/build-module/bindings/post-data.js +10 -17
- package/build-module/bindings/post-data.js.map +2 -2
- package/build-module/bindings/post-meta.js +7 -14
- package/build-module/bindings/post-meta.js.map +2 -2
- package/build-module/bindings/term-data.js +6 -16
- package/build-module/bindings/term-data.js.map +2 -2
- package/build-module/components/collab-sidebar/add-comment.js +27 -4
- package/build-module/components/collab-sidebar/add-comment.js.map +2 -2
- package/build-module/components/collab-sidebar/comment-indicator-toolbar.js +6 -12
- package/build-module/components/collab-sidebar/comment-indicator-toolbar.js.map +2 -2
- package/build-module/components/collab-sidebar/comments.js +121 -36
- package/build-module/components/collab-sidebar/comments.js.map +2 -2
- package/build-module/components/collab-sidebar/hooks.js +14 -8
- package/build-module/components/collab-sidebar/hooks.js.map +2 -2
- package/build-module/components/collab-sidebar/index.js +51 -59
- package/build-module/components/collab-sidebar/index.js.map +2 -2
- package/build-module/components/editor/index.js +2 -0
- package/build-module/components/editor/index.js.map +2 -2
- package/build-module/components/header/index.js +0 -3
- package/build-module/components/header/index.js.map +2 -2
- package/build-module/components/post-template/hooks.js +7 -38
- package/build-module/components/post-template/hooks.js.map +2 -2
- package/build-module/components/provider/index.js +1 -1
- package/build-module/components/provider/index.js.map +2 -2
- package/build-module/store/actions.js +1 -1
- package/build-module/store/actions.js.map +2 -2
- package/build-style/style-rtl.css +1 -16
- package/build-style/style.css +1 -16
- package/build-types/bindings/post-data.d.ts +6 -16
- package/build-types/bindings/post-meta.d.ts +6 -13
- package/build-types/bindings/term-data.d.ts +6 -16
- package/build-types/components/collab-sidebar/add-comment.d.ts +6 -1
- package/build-types/components/collab-sidebar/add-comment.d.ts.map +1 -1
- package/build-types/components/collab-sidebar/comment-indicator-toolbar.d.ts +1 -2
- package/build-types/components/collab-sidebar/comment-indicator-toolbar.d.ts.map +1 -1
- package/build-types/components/collab-sidebar/comments.d.ts +12 -26
- package/build-types/components/collab-sidebar/comments.d.ts.map +1 -1
- package/build-types/components/collab-sidebar/hooks.d.ts +0 -1
- package/build-types/components/collab-sidebar/hooks.d.ts.map +1 -1
- package/build-types/components/collab-sidebar/index.d.ts +1 -4
- package/build-types/components/collab-sidebar/index.d.ts.map +1 -1
- package/build-types/components/editor/index.d.ts.map +1 -1
- package/build-types/components/header/index.d.ts.map +1 -1
- package/build-types/components/post-template/hooks.d.ts +1 -1
- package/build-types/components/post-template/hooks.d.ts.map +1 -1
- package/build-types/components/provider/index.d.ts.map +1 -1
- package/build-types/store/actions.d.ts.map +1 -1
- package/package.json +38 -38
- package/src/bindings/post-data.js +9 -20
- package/src/bindings/post-meta.js +6 -17
- package/src/bindings/term-data.js +6 -21
- package/src/components/collab-sidebar/add-comment.js +31 -3
- package/src/components/collab-sidebar/comment-indicator-toolbar.js +6 -22
- package/src/components/collab-sidebar/comments.js +128 -51
- package/src/components/collab-sidebar/hooks.js +18 -12
- package/src/components/collab-sidebar/index.js +67 -67
- package/src/components/collab-sidebar/style.scss +1 -22
- package/src/components/editor/index.js +2 -0
- package/src/components/header/index.js +0 -7
- package/src/components/post-template/hooks.js +10 -51
- package/src/components/provider/index.js +1 -4
- package/src/store/actions.js +4 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -735,7 +735,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
735
735
|
}
|
|
736
736
|
|
|
737
737
|
.editor-collab-sidebar-panel {
|
|
738
|
-
padding: 16px;
|
|
738
|
+
padding: 16px 16px 24px;
|
|
739
739
|
height: 100%;
|
|
740
740
|
overflow: hidden;
|
|
741
741
|
}
|
|
@@ -903,21 +903,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
903
903
|
background: transparent;
|
|
904
904
|
border: none;
|
|
905
905
|
}
|
|
906
|
-
.comment-avatar-indicator:hover::before {
|
|
907
|
-
background: rgba(0, 0, 0, 0.04);
|
|
908
|
-
}
|
|
909
|
-
.comment-avatar-indicator.has-unresolved .comment-avatar-stack::after {
|
|
910
|
-
content: "";
|
|
911
|
-
position: absolute;
|
|
912
|
-
top: -2px;
|
|
913
|
-
left: -2px;
|
|
914
|
-
width: 8px;
|
|
915
|
-
height: 8px;
|
|
916
|
-
background: #d63638;
|
|
917
|
-
border-radius: 50%;
|
|
918
|
-
border: 1px solid #fff;
|
|
919
|
-
z-index: 10;
|
|
920
|
-
}
|
|
921
906
|
|
|
922
907
|
.comment-avatar-stack {
|
|
923
908
|
display: flex;
|
package/build-style/style.css
CHANGED
|
@@ -735,7 +735,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
735
735
|
}
|
|
736
736
|
|
|
737
737
|
.editor-collab-sidebar-panel {
|
|
738
|
-
padding: 16px;
|
|
738
|
+
padding: 16px 16px 24px;
|
|
739
739
|
height: 100%;
|
|
740
740
|
overflow: hidden;
|
|
741
741
|
}
|
|
@@ -903,21 +903,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
903
903
|
background: transparent;
|
|
904
904
|
border: none;
|
|
905
905
|
}
|
|
906
|
-
.comment-avatar-indicator:hover::before {
|
|
907
|
-
background: rgba(0, 0, 0, 0.04);
|
|
908
|
-
}
|
|
909
|
-
.comment-avatar-indicator.has-unresolved .comment-avatar-stack::after {
|
|
910
|
-
content: "";
|
|
911
|
-
position: absolute;
|
|
912
|
-
top: -2px;
|
|
913
|
-
right: -2px;
|
|
914
|
-
width: 8px;
|
|
915
|
-
height: 8px;
|
|
916
|
-
background: #d63638;
|
|
917
|
-
border-radius: 50%;
|
|
918
|
-
border: 1px solid #fff;
|
|
919
|
-
z-index: 10;
|
|
920
|
-
}
|
|
921
906
|
|
|
922
907
|
.comment-avatar-stack {
|
|
923
908
|
display: flex;
|
|
@@ -21,23 +21,13 @@ declare const _default: {
|
|
|
21
21
|
getFieldsList({ select, context }: {
|
|
22
22
|
select: any;
|
|
23
23
|
context: any;
|
|
24
|
-
}): Object;
|
|
25
|
-
editorUI({ select, context }: {
|
|
26
|
-
select: any;
|
|
27
|
-
context: any;
|
|
28
24
|
}): {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
args: {
|
|
36
|
-
field: string;
|
|
37
|
-
};
|
|
38
|
-
type: any;
|
|
39
|
-
}[];
|
|
40
|
-
};
|
|
25
|
+
label: any;
|
|
26
|
+
type: any;
|
|
27
|
+
args: {
|
|
28
|
+
field: string;
|
|
29
|
+
};
|
|
30
|
+
}[];
|
|
41
31
|
};
|
|
42
32
|
export default _default;
|
|
43
33
|
//# sourceMappingURL=post-data.d.ts.map
|
|
@@ -18,20 +18,13 @@ declare const _default: {
|
|
|
18
18
|
getFieldsList({ select, context }: {
|
|
19
19
|
select: any;
|
|
20
20
|
context: any;
|
|
21
|
-
}): Object;
|
|
22
|
-
editorUI({ select, context }: {
|
|
23
|
-
select: any;
|
|
24
|
-
context: any;
|
|
25
21
|
}): {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
type: any;
|
|
33
|
-
}[];
|
|
34
|
-
};
|
|
22
|
+
label: any;
|
|
23
|
+
type: any;
|
|
24
|
+
args: {
|
|
25
|
+
key: string;
|
|
26
|
+
};
|
|
27
|
+
}[];
|
|
35
28
|
};
|
|
36
29
|
export default _default;
|
|
37
30
|
//# sourceMappingURL=post-meta.d.ts.map
|
|
@@ -20,23 +20,13 @@ declare const _default: {
|
|
|
20
20
|
getFieldsList({ select, context }: {
|
|
21
21
|
select: any;
|
|
22
22
|
context: any;
|
|
23
|
-
}): Object;
|
|
24
|
-
editorUI({ select, context }: {
|
|
25
|
-
select: any;
|
|
26
|
-
context: any;
|
|
27
23
|
}): {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
type: any;
|
|
35
|
-
args: {
|
|
36
|
-
field: string;
|
|
37
|
-
};
|
|
38
|
-
}[];
|
|
39
|
-
};
|
|
24
|
+
label: any;
|
|
25
|
+
type: any;
|
|
26
|
+
args: {
|
|
27
|
+
field: string;
|
|
28
|
+
};
|
|
29
|
+
}[];
|
|
40
30
|
};
|
|
41
31
|
export default _default;
|
|
42
32
|
//# sourceMappingURL=term-data.d.ts.map
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
export function AddComment({ onSubmit, showCommentBoard, setShowCommentBoard, commentSidebarRef, }: {
|
|
1
|
+
export function AddComment({ onSubmit, showCommentBoard, setShowCommentBoard, commentSidebarRef, reflowComments, isFloating, y, refs, }: {
|
|
2
2
|
onSubmit: any;
|
|
3
3
|
showCommentBoard: any;
|
|
4
4
|
setShowCommentBoard: any;
|
|
5
5
|
commentSidebarRef: any;
|
|
6
|
+
reflowComments?: typeof noop | undefined;
|
|
7
|
+
isFloating?: boolean | undefined;
|
|
8
|
+
y: any;
|
|
9
|
+
refs: any;
|
|
6
10
|
}): import("react").JSX.Element | null;
|
|
11
|
+
import { noop } from './utils';
|
|
7
12
|
//# sourceMappingURL=add-comment.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-comment.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/add-comment.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"add-comment.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/add-comment.js"],"names":[],"mappings":"AA4BA;;;;;;;;;uCAqEC;qBAzEwC,SAAS"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export default CommentAvatarIndicator;
|
|
2
|
-
declare function CommentAvatarIndicator({ onClick, thread
|
|
2
|
+
declare function CommentAvatarIndicator({ onClick, thread }: {
|
|
3
3
|
onClick: any;
|
|
4
4
|
thread: any;
|
|
5
|
-
hasMoreComments: any;
|
|
6
5
|
}): import("react").JSX.Element | null;
|
|
7
6
|
//# sourceMappingURL=comment-indicator-toolbar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comment-indicator-toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/comment-indicator-toolbar.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"comment-indicator-toolbar.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/comment-indicator-toolbar.js"],"names":[],"mappings":";AAgBA;;;uCAoGC"}
|
|
@@ -1,28 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
* @param {number} props.commentLastUpdated - Timestamp of the last comment update.
|
|
14
|
-
* @return {React.ReactNode} The rendered Comments component.
|
|
15
|
-
*/
|
|
16
|
-
export function Comments({ threads, onEditComment, onAddReply, onCommentDelete, setShowCommentBoard, commentSidebarRef, reflowComments, isFloating, commentLastUpdated, }: {
|
|
17
|
-
threads: any[];
|
|
18
|
-
onEditComment: Function;
|
|
19
|
-
onAddReply: Function;
|
|
20
|
-
onCommentDelete: Function;
|
|
21
|
-
setShowCommentBoard: Function;
|
|
22
|
-
commentSidebarRef: Ref;
|
|
23
|
-
reflowComments: Function;
|
|
24
|
-
isFloating: boolean;
|
|
25
|
-
commentLastUpdated: number;
|
|
26
|
-
}): React.ReactNode;
|
|
1
|
+
export function Comments({ threads: noteThreads, onEditComment, onAddReply, onCommentDelete, showCommentBoard, setShowCommentBoard, commentSidebarRef, reflowComments, isFloating, commentLastUpdated, }: {
|
|
2
|
+
threads: any;
|
|
3
|
+
onEditComment: any;
|
|
4
|
+
onAddReply: any;
|
|
5
|
+
onCommentDelete: any;
|
|
6
|
+
showCommentBoard: any;
|
|
7
|
+
setShowCommentBoard: any;
|
|
8
|
+
commentSidebarRef: any;
|
|
9
|
+
reflowComments: any;
|
|
10
|
+
isFloating?: boolean | undefined;
|
|
11
|
+
commentLastUpdated: any;
|
|
12
|
+
}): import("react").JSX.Element;
|
|
27
13
|
export default Comments;
|
|
28
14
|
//# sourceMappingURL=comments.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comments.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/comments.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"comments.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/comments.js"],"names":[],"mappings":"AAgDA;;;;;;;;;;;gCA8RC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/hooks.js"],"names":[],"mappings":"AA0CA
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/hooks.js"],"names":[],"mappings":"AA0CA;;;;;EA2HC;AAED;;;;;;;;;;;EAoKC;AAED,kEA0BC;AAED;;;;;;;;;;;;;;;;EAmEC;qBAxYoB,SAAS"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/collab-sidebar/index.js"],"names":[],"mappings":"AAsMA,oFAkBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/editor/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/editor/index.js"],"names":[],"mappings":";AAiBA;;;;;;;;;;;gCAiFC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/header/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/header/index.js"],"names":[],"mappings":";AAiDA;;;;;;gCAqJC"}
|
|
@@ -3,6 +3,6 @@ export function useEditedPostContext(): {
|
|
|
3
3
|
postType: string;
|
|
4
4
|
};
|
|
5
5
|
export function useAllowSwitchingTemplates(): boolean;
|
|
6
|
-
export function useAvailableTemplates(postType: any): false | Partial<import("@wordpress/core-data").UnstableBase<any> | import("@wordpress/core-data").Attachment<any> | import("@wordpress/core-data").Comment<any> | import("@wordpress/core-data").GlobalStylesRevision<any> | import("@wordpress/core-data").MenuLocation<any> | import("@wordpress/core-data").NavMenu<any> | import("@wordpress/core-data").NavMenuItem<any> | import("@wordpress/core-data").Page<any> | import("@wordpress/core-data").Plugin<any> | import("@wordpress/core-data").Post<any> | import("@wordpress/core-data").PostStatusObject<any> | import("@wordpress/core-data").PostRevision<any> | import("@wordpress/core-data").Settings<any> | import("@wordpress/core-data").Sidebar<any> | import("@wordpress/core-data").Taxonomy<any> | import("@wordpress/core-data").Term<any> | import("@wordpress/core-data").Theme<any> | import("@wordpress/core-data").User<any> | import("@wordpress/core-data").Type<any> | import("@wordpress/core-data").Widget<any> | import("@wordpress/core-data").WidgetType<any> | import("@wordpress/core-data").WpTemplate<any> | import("@wordpress/core-data").WpTemplatePart<any>>[];
|
|
6
|
+
export function useAvailableTemplates(postType: any): false | (import("@wordpress/core-data").UnstableBase<any> | import("@wordpress/core-data").Attachment<any> | import("@wordpress/core-data").Comment<any> | import("@wordpress/core-data").GlobalStylesRevision<any> | import("@wordpress/core-data").MenuLocation<any> | import("@wordpress/core-data").NavMenu<any> | import("@wordpress/core-data").NavMenuItem<any> | import("@wordpress/core-data").Page<any> | import("@wordpress/core-data").Plugin<any> | import("@wordpress/core-data").Post<any> | import("@wordpress/core-data").PostStatusObject<any> | import("@wordpress/core-data").PostRevision<any> | import("@wordpress/core-data").Settings<any> | import("@wordpress/core-data").Sidebar<any> | import("@wordpress/core-data").Taxonomy<any> | import("@wordpress/core-data").Term<any> | import("@wordpress/core-data").Theme<any> | import("@wordpress/core-data").User<any> | import("@wordpress/core-data").Type<any> | import("@wordpress/core-data").Widget<any> | import("@wordpress/core-data").WidgetType<any> | import("@wordpress/core-data").WpTemplate<any> | import("@wordpress/core-data").WpTemplatePart<any> | Partial<import("@wordpress/core-data").UnstableBase<any> | import("@wordpress/core-data").Attachment<any> | import("@wordpress/core-data").Comment<any> | import("@wordpress/core-data").GlobalStylesRevision<any> | import("@wordpress/core-data").MenuLocation<any> | import("@wordpress/core-data").NavMenu<any> | import("@wordpress/core-data").NavMenuItem<any> | import("@wordpress/core-data").Page<any> | import("@wordpress/core-data").Plugin<any> | import("@wordpress/core-data").Post<any> | import("@wordpress/core-data").PostStatusObject<any> | import("@wordpress/core-data").PostRevision<any> | import("@wordpress/core-data").Settings<any> | import("@wordpress/core-data").Sidebar<any> | import("@wordpress/core-data").Taxonomy<any> | import("@wordpress/core-data").Term<any> | import("@wordpress/core-data").Theme<any> | import("@wordpress/core-data").User<any> | import("@wordpress/core-data").Type<any> | import("@wordpress/core-data").Widget<any> | import("@wordpress/core-data").WidgetType<any> | import("@wordpress/core-data").WpTemplate<any> | import("@wordpress/core-data").WpTemplatePart<any>>)[] | undefined;
|
|
7
7
|
export function useCurrentTemplateSlug(): any;
|
|
8
8
|
//# sourceMappingURL=hooks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/hooks.js"],"names":[],"mappings":"AAYA;;;EAQC;AACD,sDA8BC;
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/components/post-template/hooks.js"],"names":[],"mappings":"AAYA;;;EAQC;AACD,sDA8BC;AAeD,yuEAeC;AAED,8CAuBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/provider/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/provider/index.js"],"names":[],"mappings":"AA4YA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,sCArBG;IAAgC,IAAI;IACJ,kBAAkB;IAElB,QAAQ;IAER,QAAQ,GAAhC,KAAK,CAAC,SAAS;CAGvB,GAWS,KAAK,CAAC,SAAS,CAW1B;AAlTD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,4GA+OE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../src/store/actions.js"],"names":[],"mappings":"AAyEA;;;;;;;GAOG;AACH,gDAFY,MAAM,CAUjB;AAED;;;;;GAKG;AACH;;EAOC;AAED;;;;;;GAMG;AACH,8BAHY,MAA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|
{
|
|
2
2
|
"name": "@wordpress/editor",
|
|
3
|
-
"version": "14.33.
|
|
3
|
+
"version": "14.33.3",
|
|
4
4
|
"description": "Enhanced block editor for WordPress posts.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -53,42 +53,42 @@
|
|
|
53
53
|
],
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@floating-ui/react-dom": "2.0.8",
|
|
56
|
-
"@wordpress/a11y": "^4.33.
|
|
57
|
-
"@wordpress/api-fetch": "^7.33.
|
|
58
|
-
"@wordpress/base-styles": "^6.9.
|
|
59
|
-
"@wordpress/blob": "^4.33.
|
|
60
|
-
"@wordpress/block-editor": "^15.6.
|
|
61
|
-
"@wordpress/blocks": "^15.6.
|
|
62
|
-
"@wordpress/commands": "^1.33.
|
|
63
|
-
"@wordpress/components": "^30.6.
|
|
64
|
-
"@wordpress/compose": "^7.33.
|
|
65
|
-
"@wordpress/core-data": "^7.33.
|
|
66
|
-
"@wordpress/data": "^10.33.
|
|
67
|
-
"@wordpress/dataviews": "^10.1.
|
|
68
|
-
"@wordpress/date": "^5.33.
|
|
69
|
-
"@wordpress/deprecated": "^4.33.
|
|
70
|
-
"@wordpress/dom": "^4.33.
|
|
71
|
-
"@wordpress/element": "^6.33.
|
|
72
|
-
"@wordpress/fields": "^0.25.
|
|
73
|
-
"@wordpress/hooks": "^4.33.
|
|
74
|
-
"@wordpress/html-entities": "^4.33.
|
|
75
|
-
"@wordpress/i18n": "^6.6.
|
|
76
|
-
"@wordpress/icons": "^11.0.
|
|
77
|
-
"@wordpress/interface": "^9.18.
|
|
78
|
-
"@wordpress/keyboard-shortcuts": "^5.33.
|
|
79
|
-
"@wordpress/keycodes": "^4.33.
|
|
80
|
-
"@wordpress/media-utils": "^5.33.
|
|
81
|
-
"@wordpress/notices": "^5.33.
|
|
82
|
-
"@wordpress/patterns": "^2.33.
|
|
83
|
-
"@wordpress/plugins": "^7.33.
|
|
84
|
-
"@wordpress/preferences": "^4.33.
|
|
85
|
-
"@wordpress/private-apis": "^1.33.
|
|
86
|
-
"@wordpress/reusable-blocks": "^5.33.
|
|
87
|
-
"@wordpress/rich-text": "^7.33.
|
|
88
|
-
"@wordpress/server-side-render": "^6.9.
|
|
89
|
-
"@wordpress/url": "^4.33.
|
|
90
|
-
"@wordpress/warning": "^3.33.
|
|
91
|
-
"@wordpress/wordcount": "^4.33.
|
|
56
|
+
"@wordpress/a11y": "^4.33.1",
|
|
57
|
+
"@wordpress/api-fetch": "^7.33.1",
|
|
58
|
+
"@wordpress/base-styles": "^6.9.1",
|
|
59
|
+
"@wordpress/blob": "^4.33.1",
|
|
60
|
+
"@wordpress/block-editor": "^15.6.1",
|
|
61
|
+
"@wordpress/blocks": "^15.6.1",
|
|
62
|
+
"@wordpress/commands": "^1.33.1",
|
|
63
|
+
"@wordpress/components": "^30.6.1",
|
|
64
|
+
"@wordpress/compose": "^7.33.1",
|
|
65
|
+
"@wordpress/core-data": "^7.33.1",
|
|
66
|
+
"@wordpress/data": "^10.33.1",
|
|
67
|
+
"@wordpress/dataviews": "^10.1.1",
|
|
68
|
+
"@wordpress/date": "^5.33.1",
|
|
69
|
+
"@wordpress/deprecated": "^4.33.1",
|
|
70
|
+
"@wordpress/dom": "^4.33.1",
|
|
71
|
+
"@wordpress/element": "^6.33.1",
|
|
72
|
+
"@wordpress/fields": "^0.25.3",
|
|
73
|
+
"@wordpress/hooks": "^4.33.1",
|
|
74
|
+
"@wordpress/html-entities": "^4.33.1",
|
|
75
|
+
"@wordpress/i18n": "^6.6.1",
|
|
76
|
+
"@wordpress/icons": "^11.0.1",
|
|
77
|
+
"@wordpress/interface": "^9.18.1",
|
|
78
|
+
"@wordpress/keyboard-shortcuts": "^5.33.1",
|
|
79
|
+
"@wordpress/keycodes": "^4.33.1",
|
|
80
|
+
"@wordpress/media-utils": "^5.33.1",
|
|
81
|
+
"@wordpress/notices": "^5.33.1",
|
|
82
|
+
"@wordpress/patterns": "^2.33.1",
|
|
83
|
+
"@wordpress/plugins": "^7.33.1",
|
|
84
|
+
"@wordpress/preferences": "^4.33.1",
|
|
85
|
+
"@wordpress/private-apis": "^1.33.1",
|
|
86
|
+
"@wordpress/reusable-blocks": "^5.33.1",
|
|
87
|
+
"@wordpress/rich-text": "^7.33.1",
|
|
88
|
+
"@wordpress/server-side-render": "^6.9.1",
|
|
89
|
+
"@wordpress/url": "^4.33.1",
|
|
90
|
+
"@wordpress/warning": "^3.33.1",
|
|
91
|
+
"@wordpress/wordcount": "^4.33.1",
|
|
92
92
|
"change-case": "^4.1.2",
|
|
93
93
|
"client-zip": "^2.4.5",
|
|
94
94
|
"clsx": "^2.1.1",
|
|
@@ -108,5 +108,5 @@
|
|
|
108
108
|
"publishConfig": {
|
|
109
109
|
"access": "public"
|
|
110
110
|
},
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "5f84bafdec1bed05247c1080c12f6a237951b862"
|
|
112
112
|
}
|
|
@@ -179,34 +179,23 @@ export default {
|
|
|
179
179
|
return true;
|
|
180
180
|
},
|
|
181
181
|
getFieldsList( { select, context } ) {
|
|
182
|
-
const clientId = select( blockEditorStore ).getSelectedBlockClientId();
|
|
183
|
-
// Deprecated, will be removed after 6.9.
|
|
184
|
-
return getPostDataFields( select, context, clientId );
|
|
185
|
-
},
|
|
186
|
-
editorUI( { select, context } ) {
|
|
187
182
|
const selectedBlock = select( blockEditorStore ).getSelectedBlock();
|
|
188
183
|
if ( selectedBlock?.name !== 'core/post-date' ) {
|
|
189
|
-
return
|
|
184
|
+
return [];
|
|
190
185
|
}
|
|
191
186
|
// Exit early for navigation blocks (read-only)
|
|
192
187
|
if ( NAVIGATION_BLOCK_TYPES.includes( selectedBlock?.name ) ) {
|
|
193
|
-
return
|
|
188
|
+
return [];
|
|
189
|
+
}
|
|
190
|
+
const clientId = select( blockEditorStore ).getSelectedBlockClientId();
|
|
191
|
+
const postDataFields = getPostDataFields( select, context, clientId );
|
|
192
|
+
if ( ! postDataFields ) {
|
|
193
|
+
return [];
|
|
194
194
|
}
|
|
195
|
-
|
|
196
|
-
getPostDataFields( select, context ) || {}
|
|
197
|
-
).map( ( [ key, field ] ) => ( {
|
|
195
|
+
return Object.entries( postDataFields ).map( ( [ key, field ] ) => ( {
|
|
198
196
|
label: field.label,
|
|
199
|
-
args: {
|
|
200
|
-
field: key,
|
|
201
|
-
},
|
|
202
197
|
type: field.type,
|
|
198
|
+
args: { field: key },
|
|
203
199
|
} ) );
|
|
204
|
-
/*
|
|
205
|
-
* We need to define the data as [{ label: string, value: any, type: https://developer.wordpress.org/block-editor/reference-guides/block-api/block-attributes/#type-validation }]
|
|
206
|
-
*/
|
|
207
|
-
return {
|
|
208
|
-
mode: 'dropdown',
|
|
209
|
-
data: postDataFields,
|
|
210
|
-
};
|
|
211
200
|
},
|
|
212
201
|
};
|
|
@@ -142,25 +142,14 @@ export default {
|
|
|
142
142
|
return true;
|
|
143
143
|
},
|
|
144
144
|
getFieldsList( { select, context } ) {
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
getPostMetaFields( select, context ) || {}
|
|
151
|
-
).map( ( [ key, field ] ) => ( {
|
|
145
|
+
const metaFields = getPostMetaFields( select, context );
|
|
146
|
+
if ( ! metaFields ) {
|
|
147
|
+
return [];
|
|
148
|
+
}
|
|
149
|
+
return Object.entries( metaFields ).map( ( [ key, field ] ) => ( {
|
|
152
150
|
label: field.label,
|
|
153
|
-
args: {
|
|
154
|
-
key,
|
|
155
|
-
},
|
|
156
151
|
type: field.type,
|
|
152
|
+
args: { key },
|
|
157
153
|
} ) );
|
|
158
|
-
/*
|
|
159
|
-
* We need to define the data as [{ label: string, value: any, type: https://developer.wordpress.org/block-editor/reference-guides/block-api/block-attributes/#type-validation }]
|
|
160
|
-
*/
|
|
161
|
-
return {
|
|
162
|
-
mode: 'dropdown',
|
|
163
|
-
data: metaFields,
|
|
164
|
-
};
|
|
165
154
|
},
|
|
166
155
|
};
|
|
@@ -195,30 +195,15 @@ export default {
|
|
|
195
195
|
return false;
|
|
196
196
|
},
|
|
197
197
|
getFieldsList( { select, context } ) {
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
const selectedBlock = select( blockEditorStore ).getSelectedBlock();
|
|
203
|
-
// Exit early for navigation blocks (read-only)
|
|
204
|
-
if ( NAVIGATION_BLOCK_TYPES.includes( selectedBlock?.name ) ) {
|
|
205
|
-
return {};
|
|
198
|
+
const clientId = select( blockEditorStore ).getSelectedBlockClientId();
|
|
199
|
+
const termDataFields = getTermDataFields( select, context, clientId );
|
|
200
|
+
if ( ! termDataFields ) {
|
|
201
|
+
return [];
|
|
206
202
|
}
|
|
207
|
-
|
|
208
|
-
getTermDataFields( select, context ) || {}
|
|
209
|
-
).map( ( [ key, field ] ) => ( {
|
|
203
|
+
return Object.entries( termDataFields ).map( ( [ key, field ] ) => ( {
|
|
210
204
|
label: field.label,
|
|
211
205
|
type: field.type,
|
|
212
|
-
args: {
|
|
213
|
-
field: key,
|
|
214
|
-
},
|
|
206
|
+
args: { field: key },
|
|
215
207
|
} ) );
|
|
216
|
-
/*
|
|
217
|
-
* We need to define the data as [{ label: string, value: any, type: https://developer.wordpress.org/block-editor/reference-guides/block-api/block-attributes/#type-validation }]
|
|
218
|
-
*/
|
|
219
|
-
return {
|
|
220
|
-
mode: 'dropdown',
|
|
221
|
-
data: termDataFields,
|
|
222
|
-
};
|
|
223
208
|
},
|
|
224
209
|
};
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* External dependencies
|
|
3
|
+
*/
|
|
4
|
+
import clsx from 'clsx';
|
|
1
5
|
/**
|
|
2
6
|
* WordPress dependencies
|
|
3
7
|
*/
|
|
@@ -18,7 +22,7 @@ import {
|
|
|
18
22
|
import { unlock } from '../../lock-unlock';
|
|
19
23
|
import CommentAuthorInfo from './comment-author-info';
|
|
20
24
|
import CommentForm from './comment-form';
|
|
21
|
-
import { focusCommentThread } from './utils';
|
|
25
|
+
import { focusCommentThread, noop } from './utils';
|
|
22
26
|
|
|
23
27
|
const { useBlockElement } = unlock( blockEditorPrivateApis );
|
|
24
28
|
|
|
@@ -27,6 +31,10 @@ export function AddComment( {
|
|
|
27
31
|
showCommentBoard,
|
|
28
32
|
setShowCommentBoard,
|
|
29
33
|
commentSidebarRef,
|
|
34
|
+
reflowComments = noop,
|
|
35
|
+
isFloating = false,
|
|
36
|
+
y,
|
|
37
|
+
refs,
|
|
30
38
|
} ) {
|
|
31
39
|
const { clientId, blockCommentId } = useSelect( ( select ) => {
|
|
32
40
|
const { getSelectedBlock } = select( blockEditorStore );
|
|
@@ -44,10 +52,29 @@ export function AddComment( {
|
|
|
44
52
|
|
|
45
53
|
return (
|
|
46
54
|
<VStack
|
|
47
|
-
className=
|
|
55
|
+
className={ clsx(
|
|
56
|
+
'editor-collab-sidebar-panel__thread is-selected',
|
|
57
|
+
{
|
|
58
|
+
'is-floating': isFloating,
|
|
59
|
+
}
|
|
60
|
+
) }
|
|
48
61
|
spacing="3"
|
|
49
62
|
tabIndex={ 0 }
|
|
63
|
+
aria-label={ __( 'New note' ) }
|
|
50
64
|
role="listitem"
|
|
65
|
+
ref={ isFloating ? refs.setFloating : undefined }
|
|
66
|
+
style={
|
|
67
|
+
isFloating
|
|
68
|
+
? // Delay showing the floating note box until a Y position is known to prevent blink.
|
|
69
|
+
{ top: y, opacity: ! y ? 0 : undefined }
|
|
70
|
+
: undefined
|
|
71
|
+
}
|
|
72
|
+
onBlur={ ( event ) => {
|
|
73
|
+
if ( event.currentTarget.contains( event.relatedTarget ) ) {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
setShowCommentBoard( false );
|
|
77
|
+
} }
|
|
51
78
|
>
|
|
52
79
|
<HStack alignment="left" spacing="3">
|
|
53
80
|
<CommentAuthorInfo />
|
|
@@ -62,8 +89,9 @@ export function AddComment( {
|
|
|
62
89
|
setShowCommentBoard( false );
|
|
63
90
|
blockElement?.focus();
|
|
64
91
|
} }
|
|
92
|
+
reflowComments={ reflowComments }
|
|
65
93
|
submitButtonText={ __( 'Add note' ) }
|
|
66
|
-
labelText={ __( 'New
|
|
94
|
+
labelText={ __( 'New note' ) }
|
|
67
95
|
/>
|
|
68
96
|
</VStack>
|
|
69
97
|
);
|