@wordpress/block-library 8.18.0 → 8.19.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 +2 -0
- package/README.md +1 -1
- package/build/block/edit.js +53 -2
- package/build/block/edit.js.map +1 -1
- package/build/button/edit.js +7 -4
- package/build/button/edit.js.map +1 -1
- package/build/button/index.js +11 -2
- package/build/button/index.js.map +1 -1
- package/build/button/save.js +10 -4
- package/build/button/save.js.map +1 -1
- package/build/buttons/edit.js +12 -3
- package/build/buttons/edit.js.map +1 -1
- package/build/code/edit.js +8 -2
- package/build/code/edit.js.map +1 -1
- package/build/code/index.js +7 -1
- package/build/code/index.js.map +1 -1
- package/build/column/edit.native.js +5 -5
- package/build/column/edit.native.js.map +1 -1
- package/build/column/index.js +1 -0
- package/build/column/index.js.map +1 -1
- package/build/columns/index.js +2 -0
- package/build/columns/index.js.map +1 -1
- package/build/file/edit.native.js +1 -1
- package/build/file/edit.native.js.map +1 -1
- package/build/file/index.js +2 -1
- package/build/file/index.js.map +1 -1
- package/build/file/utils/index.js +1 -15
- package/build/file/utils/index.js.map +1 -1
- package/build/file/view.js +14 -1
- package/build/file/view.js.map +1 -1
- package/build/footnotes/edit.js +14 -5
- package/build/footnotes/edit.js.map +1 -1
- package/build/gallery/edit.js +1 -1
- package/build/gallery/edit.js.map +1 -1
- package/build/group/edit.js +0 -1
- package/build/group/edit.js.map +1 -1
- package/build/group/index.js +5 -0
- package/build/group/index.js.map +1 -1
- package/build/heading/edit.js +0 -1
- package/build/heading/edit.js.map +1 -1
- package/build/heading/index.js +2 -0
- package/build/heading/index.js.map +1 -1
- package/build/heading/transforms.js +3 -6
- package/build/heading/transforms.js.map +1 -1
- package/build/image/deprecated.js +191 -7
- package/build/image/deprecated.js.map +1 -1
- package/build/image/edit.js +27 -12
- package/build/image/edit.js.map +1 -1
- package/build/image/image.js +75 -40
- package/build/image/image.js.map +1 -1
- package/build/image/index.js +7 -4
- package/build/image/index.js.map +1 -1
- package/build/image/{view-interactivity.js → view.js} +1 -1
- package/build/image/view.js.map +1 -0
- package/build/list/deprecated.js +93 -1
- package/build/list/deprecated.js.map +1 -1
- package/build/list/edit.js +10 -10
- package/build/list/edit.js.map +1 -1
- package/build/list/ordered-list-settings.js +10 -10
- package/build/list/ordered-list-settings.js.map +1 -1
- package/build/list/save.js +4 -2
- package/build/list/save.js.map +1 -1
- package/build/list/utils.js +21 -2
- package/build/list/utils.js.map +1 -1
- package/build/navigation/constants.js +1 -1
- package/build/navigation/constants.js.map +1 -1
- package/build/navigation/index.js +4 -2
- package/build/navigation/index.js.map +1 -1
- package/build/navigation/view.js +168 -82
- package/build/navigation/view.js.map +1 -1
- package/build/navigation-link/edit.js +3 -9
- package/build/navigation-link/edit.js.map +1 -1
- package/build/navigation-link/transforms.js +24 -0
- package/build/navigation-link/transforms.js.map +1 -1
- package/build/page-list/edit.js +2 -1
- package/build/page-list/edit.js.map +1 -1
- package/build/post-comments-form/edit.js +10 -2
- package/build/post-comments-form/edit.js.map +1 -1
- package/build/post-comments-form/form.js +5 -3
- package/build/post-comments-form/form.js.map +1 -1
- package/build/post-content/edit.js +8 -7
- package/build/post-content/edit.js.map +1 -1
- package/build/post-content/index.js +3 -0
- package/build/post-content/index.js.map +1 -1
- package/build/post-featured-image/overlay.js +2 -1
- package/build/post-featured-image/overlay.js.map +1 -1
- package/build/post-terms/use-post-terms.js +3 -2
- package/build/post-terms/use-post-terms.js.map +1 -1
- package/build/preformatted/edit.js +4 -1
- package/build/preformatted/edit.js.map +1 -1
- package/build/preformatted/index.js +1 -1
- package/build/preformatted/index.js.map +1 -1
- package/build/pullquote/deprecated.js +6 -7
- package/build/pullquote/deprecated.js.map +1 -1
- package/build/query/edit/enhanced-pagination-modal.js +56 -0
- package/build/query/edit/enhanced-pagination-modal.js.map +1 -0
- package/build/query/edit/inspector-controls/enhanced-pagination-control.js +42 -0
- package/build/query/edit/inspector-controls/enhanced-pagination-control.js.map +1 -0
- package/build/query/edit/inspector-controls/index.js +8 -25
- package/build/query/edit/inspector-controls/index.js.map +1 -1
- package/build/query/edit/query-content.js +8 -2
- package/build/query/edit/query-content.js.map +1 -1
- package/build/query/utils.js +19 -0
- package/build/query/utils.js.map +1 -1
- package/build/query/view.js +4 -5
- package/build/query/view.js.map +1 -1
- package/build/search/index.js +1 -0
- package/build/search/index.js.map +1 -1
- package/build/search/view.js +81 -150
- package/build/search/view.js.map +1 -1
- package/build/social-link/edit.native.js +3 -1
- package/build/social-link/edit.native.js.map +1 -1
- package/build/table/edit.js +7 -7
- package/build/table/edit.js.map +1 -1
- package/build/table-of-contents/edit.js +2 -130
- package/build/table-of-contents/edit.js.map +1 -1
- package/build/table-of-contents/hooks.js +145 -0
- package/build/table-of-contents/hooks.js.map +1 -0
- package/build/table-of-contents/index.js +2 -1
- package/build/table-of-contents/index.js.map +1 -1
- package/build/verse/edit.js +4 -1
- package/build/verse/edit.js.map +1 -1
- package/build/verse/index.js +1 -1
- package/build/verse/index.js.map +1 -1
- package/build-module/block/edit.js +54 -3
- package/build-module/block/edit.js.map +1 -1
- package/build-module/button/edit.js +7 -4
- package/build-module/button/edit.js.map +1 -1
- package/build-module/button/index.js +11 -2
- package/build-module/button/index.js.map +1 -1
- package/build-module/button/save.js +10 -4
- package/build-module/button/save.js.map +1 -1
- package/build-module/buttons/edit.js +12 -3
- package/build-module/buttons/edit.js.map +1 -1
- package/build-module/code/edit.js +8 -2
- package/build-module/code/edit.js.map +1 -1
- package/build-module/code/index.js +7 -1
- package/build-module/code/index.js.map +1 -1
- package/build-module/column/edit.native.js +5 -5
- package/build-module/column/edit.native.js.map +1 -1
- package/build-module/column/index.js +1 -0
- package/build-module/column/index.js.map +1 -1
- package/build-module/columns/index.js +2 -0
- package/build-module/columns/index.js.map +1 -1
- package/build-module/file/edit.native.js +1 -1
- package/build-module/file/edit.native.js.map +1 -1
- package/build-module/file/index.js +2 -1
- package/build-module/file/index.js.map +1 -1
- package/build-module/file/utils/index.js +0 -13
- package/build-module/file/utils/index.js.map +1 -1
- package/build-module/file/view.js +14 -2
- package/build-module/file/view.js.map +1 -1
- package/build-module/footnotes/edit.js +14 -5
- package/build-module/footnotes/edit.js.map +1 -1
- package/build-module/gallery/edit.js +1 -1
- package/build-module/gallery/edit.js.map +1 -1
- package/build-module/group/edit.js +0 -1
- package/build-module/group/edit.js.map +1 -1
- package/build-module/group/index.js +5 -0
- package/build-module/group/index.js.map +1 -1
- package/build-module/heading/edit.js +0 -1
- package/build-module/heading/edit.js.map +1 -1
- package/build-module/heading/index.js +2 -0
- package/build-module/heading/index.js.map +1 -1
- package/build-module/heading/transforms.js +3 -6
- package/build-module/heading/transforms.js.map +1 -1
- package/build-module/image/deprecated.js +191 -7
- package/build-module/image/deprecated.js.map +1 -1
- package/build-module/image/edit.js +27 -12
- package/build-module/image/edit.js.map +1 -1
- package/build-module/image/image.js +77 -42
- package/build-module/image/image.js.map +1 -1
- package/build-module/image/index.js +7 -4
- package/build-module/image/index.js.map +1 -1
- package/build-module/image/{view-interactivity.js → view.js} +1 -1
- package/build-module/image/view.js.map +1 -0
- package/build-module/list/deprecated.js +95 -3
- package/build-module/list/deprecated.js.map +1 -1
- package/build-module/list/edit.js +10 -10
- package/build-module/list/edit.js.map +1 -1
- package/build-module/list/ordered-list-settings.js +10 -10
- package/build-module/list/ordered-list-settings.js.map +1 -1
- package/build-module/list/save.js +4 -2
- package/build-module/list/save.js.map +1 -1
- package/build-module/list/utils.js +20 -2
- package/build-module/list/utils.js.map +1 -1
- package/build-module/navigation/constants.js +1 -1
- package/build-module/navigation/constants.js.map +1 -1
- package/build-module/navigation/index.js +4 -2
- package/build-module/navigation/index.js.map +1 -1
- package/build-module/navigation/view.js +168 -83
- package/build-module/navigation/view.js.map +1 -1
- package/build-module/navigation-link/edit.js +3 -9
- package/build-module/navigation-link/edit.js.map +1 -1
- package/build-module/navigation-link/transforms.js +24 -0
- package/build-module/navigation-link/transforms.js.map +1 -1
- package/build-module/page-list/edit.js +2 -1
- package/build-module/page-list/edit.js.map +1 -1
- package/build-module/post-comments-form/edit.js +10 -2
- package/build-module/post-comments-form/edit.js.map +1 -1
- package/build-module/post-comments-form/form.js +5 -3
- package/build-module/post-comments-form/form.js.map +1 -1
- package/build-module/post-content/edit.js +8 -7
- package/build-module/post-content/edit.js.map +1 -1
- package/build-module/post-content/index.js +3 -0
- package/build-module/post-content/index.js.map +1 -1
- package/build-module/post-featured-image/overlay.js +2 -1
- package/build-module/post-featured-image/overlay.js.map +1 -1
- package/build-module/post-terms/use-post-terms.js +3 -2
- package/build-module/post-terms/use-post-terms.js.map +1 -1
- package/build-module/preformatted/edit.js +4 -1
- package/build-module/preformatted/edit.js.map +1 -1
- package/build-module/preformatted/index.js +1 -1
- package/build-module/preformatted/index.js.map +1 -1
- package/build-module/pullquote/deprecated.js +6 -7
- package/build-module/pullquote/deprecated.js.map +1 -1
- package/build-module/query/edit/enhanced-pagination-modal.js +50 -0
- package/build-module/query/edit/enhanced-pagination-modal.js.map +1 -0
- package/build-module/query/edit/inspector-controls/enhanced-pagination-control.js +35 -0
- package/build-module/query/edit/inspector-controls/enhanced-pagination-control.js.map +1 -0
- package/build-module/query/edit/inspector-controls/index.js +9 -26
- package/build-module/query/edit/inspector-controls/index.js.map +1 -1
- package/build-module/query/edit/query-content.js +8 -2
- package/build-module/query/edit/query-content.js.map +1 -1
- package/build-module/query/utils.js +17 -0
- package/build-module/query/utils.js.map +1 -1
- package/build-module/query/view.js +4 -5
- package/build-module/query/view.js.map +1 -1
- package/build-module/search/index.js +1 -0
- package/build-module/search/index.js.map +1 -1
- package/build-module/search/view.js +81 -151
- package/build-module/search/view.js.map +1 -1
- package/build-module/social-link/edit.native.js +3 -1
- package/build-module/social-link/edit.native.js.map +1 -1
- package/build-module/table/edit.js +7 -7
- package/build-module/table/edit.js.map +1 -1
- package/build-module/table-of-contents/edit.js +3 -131
- package/build-module/table-of-contents/edit.js.map +1 -1
- package/build-module/table-of-contents/hooks.js +137 -0
- package/build-module/table-of-contents/hooks.js.map +1 -0
- package/build-module/table-of-contents/index.js +2 -1
- package/build-module/table-of-contents/index.js.map +1 -1
- package/build-module/verse/edit.js +4 -1
- package/build-module/verse/edit.js.map +1 -1
- package/build-module/verse/index.js +1 -1
- package/build-module/verse/index.js.map +1 -1
- package/build-style/cover/style-rtl.css +9 -0
- package/build-style/cover/style.css +9 -0
- package/build-style/editor-rtl.css +15 -9
- package/build-style/editor.css +15 -9
- package/build-style/file/style-rtl.css +5 -0
- package/build-style/file/style.css +5 -0
- package/build-style/heading/style-rtl.css +13 -0
- package/build-style/heading/style.css +13 -0
- package/build-style/navigation-link/editor-rtl.css +0 -9
- package/build-style/navigation-link/editor.css +0 -9
- package/build-style/paragraph/editor-rtl.css +5 -0
- package/build-style/paragraph/editor.css +5 -0
- package/build-style/paragraph/style-rtl.css +5 -0
- package/build-style/paragraph/style.css +5 -0
- package/build-style/post-navigation-link/style-rtl.css +3 -0
- package/build-style/post-navigation-link/style.css +3 -0
- package/build-style/query/editor-rtl.css +10 -0
- package/build-style/query/editor.css +10 -0
- package/build-style/query/style-rtl.css +1 -1
- package/build-style/query/style.css +1 -1
- package/build-style/reset-rtl.css +27 -27
- package/build-style/reset.css +27 -27
- package/build-style/style-rtl.css +35 -0
- package/build-style/style.css +35 -0
- package/package.json +32 -33
- package/src/audio/test/__snapshots__/edit.native.js.snap +78 -106
- package/src/avatar/index.php +2 -2
- package/src/block/edit.js +58 -2
- package/src/block/test/edit.native.js +2 -3
- package/src/button/block.json +11 -2
- package/src/button/edit.js +27 -11
- package/src/button/save.js +10 -4
- package/src/buttons/edit.js +13 -3
- package/src/buttons/test/edit.native.js +28 -24
- package/src/calendar/index.php +2 -2
- package/src/code/block.json +2 -1
- package/src/code/edit.js +13 -1
- package/src/code/index.js +5 -0
- package/src/column/block.json +1 -0
- package/src/column/edit.native.js +4 -4
- package/src/columns/block.json +2 -0
- package/src/columns/test/__snapshots__/edit.native.js.snap +14 -0
- package/src/columns/test/edit.native.js +47 -17
- package/src/comment-template/index.php +1 -1
- package/src/comments-pagination-next/index.php +1 -1
- package/src/comments-pagination-previous/index.php +1 -1
- package/src/cover/style.scss +12 -1
- package/src/cover/test/edit.js +7 -7
- package/src/cover/test/edit.native.js +18 -27
- package/src/embed/test/index.native.js +30 -45
- package/src/file/block.json +2 -1
- package/src/file/edit.native.js +1 -1
- package/src/file/index.php +19 -21
- package/src/file/style.scss +6 -1
- package/src/file/test/__snapshots__/edit.native.js.snap +162 -218
- package/src/file/utils/index.js +0 -15
- package/src/file/view.js +14 -5
- package/src/footnotes/edit.js +16 -2
- package/src/gallery/edit.js +1 -1
- package/src/gallery/index.php +1 -1
- package/src/group/block.json +5 -0
- package/src/group/edit.js +0 -1
- package/src/heading/block.json +2 -0
- package/src/heading/edit.js +0 -1
- package/src/heading/style.scss +4 -0
- package/src/heading/transforms.js +1 -6
- package/src/image/block.json +7 -4
- package/src/image/deprecated.js +210 -7
- package/src/image/edit.js +43 -29
- package/src/image/image.js +86 -43
- package/src/image/index.php +251 -28
- package/src/latest-posts/index.php +1 -1
- package/src/list/deprecated.js +84 -3
- package/src/list/edit.js +6 -3
- package/src/list/ordered-list-settings.js +20 -5
- package/src/list/save.js +10 -1
- package/src/list/test/edit.native.js +2 -4
- package/src/list/utils.js +22 -1
- package/src/navigation/block.json +4 -2
- package/src/navigation/constants.js +1 -0
- package/src/navigation/index.php +85 -123
- package/src/navigation/view.js +192 -96
- package/src/navigation-link/edit.js +21 -36
- package/src/navigation-link/editor.scss +0 -8
- package/src/navigation-link/transforms.js +22 -0
- package/src/page-list/edit.js +2 -1
- package/src/paragraph/editor.scss +5 -0
- package/src/paragraph/style.scss +5 -0
- package/src/pattern/index.php +2 -2
- package/src/post-comments-form/edit.js +10 -0
- package/src/post-comments-form/form.js +7 -1
- package/src/post-content/block.json +3 -0
- package/src/post-content/edit.js +14 -6
- package/src/post-excerpt/index.php +2 -2
- package/src/post-featured-image/index.php +2 -2
- package/src/post-featured-image/overlay.js +1 -0
- package/src/post-navigation-link/index.php +5 -1
- package/src/post-navigation-link/style.scss +4 -0
- package/src/post-template/index.php +1 -1
- package/src/post-terms/index.php +5 -2
- package/src/post-terms/use-post-terms.js +4 -2
- package/src/preformatted/edit.js +5 -0
- package/src/preformatted/index.js +1 -1
- package/src/pullquote/deprecated.js +8 -13
- package/src/query/edit/enhanced-pagination-modal.js +65 -0
- package/src/query/edit/inspector-controls/enhanced-pagination-control.js +49 -0
- package/src/query/edit/inspector-controls/index.js +9 -45
- package/src/query/edit/query-content.js +8 -0
- package/src/query/editor.scss +10 -0
- package/src/query/index.php +29 -16
- package/src/query/style.scss +2 -2
- package/src/query/utils.js +22 -0
- package/src/query/view.js +5 -5
- package/src/query-pagination-next/index.php +1 -1
- package/src/query-pagination-previous/index.php +1 -1
- package/src/reset.scss +1 -1
- package/src/search/block.json +1 -0
- package/src/search/index.php +45 -4
- package/src/search/test/__snapshots__/edit.native.js.snap +265 -363
- package/src/search/view.js +70 -169
- package/src/social-link/edit.native.js +1 -1
- package/src/social-link/editor.native.scss +4 -0
- package/src/table/edit.js +21 -19
- package/src/table-of-contents/block.json +2 -1
- package/src/table-of-contents/edit.js +5 -162
- package/src/table-of-contents/hooks.js +156 -0
- package/src/verse/edit.js +5 -0
- package/src/verse/index.js +1 -1
- package/src/verse/test/edit.native.js +2 -3
- package/build/file/view-interactivity.js +0 -22
- package/build/file/view-interactivity.js.map +0 -1
- package/build/image/view-interactivity.js.map +0 -1
- package/build/navigation/view-interactivity.js +0 -172
- package/build/navigation/view-interactivity.js.map +0 -1
- package/build/navigation/view-modal.js +0 -115
- package/build/navigation/view-modal.js.map +0 -1
- package/build-module/file/view-interactivity.js +0 -18
- package/build-module/file/view-interactivity.js.map +0 -1
- package/build-module/image/view-interactivity.js.map +0 -1
- package/build-module/navigation/view-interactivity.js +0 -169
- package/build-module/navigation/view-interactivity.js.map +0 -1
- package/build-module/navigation/view-modal.js +0 -112
- package/build-module/navigation/view-modal.js.map +0 -1
- package/src/file/view-interactivity.js +0 -18
- package/src/navigation/view-interactivity.js +0 -196
- package/src/navigation/view-modal.js +0 -127
- /package/src/image/{view-interactivity.js → view.js} +0 -0
|
@@ -64,7 +64,7 @@ exports[`File block renders file error state without crashing 1`] = `
|
|
|
64
64
|
]
|
|
65
65
|
}
|
|
66
66
|
>
|
|
67
|
-
<
|
|
67
|
+
<RCTAztecView
|
|
68
68
|
accessibilityState={
|
|
69
69
|
{
|
|
70
70
|
"busy": undefined,
|
|
@@ -74,73 +74,59 @@ exports[`File block renders file error state without crashing 1`] = `
|
|
|
74
74
|
"selected": undefined,
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
|
|
77
|
+
accessible={true}
|
|
78
|
+
activeFormats={[]}
|
|
79
|
+
blockType={
|
|
78
80
|
{
|
|
79
|
-
"
|
|
80
|
-
"min": undefined,
|
|
81
|
-
"now": undefined,
|
|
82
|
-
"text": undefined,
|
|
81
|
+
"tag": "p",
|
|
83
82
|
}
|
|
84
83
|
}
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
deleteEnter={true}
|
|
85
|
+
disableEditingMenu={false}
|
|
87
86
|
focusable={true}
|
|
87
|
+
fontFamily="serif"
|
|
88
|
+
fontSize={16}
|
|
89
|
+
isMultiline={false}
|
|
90
|
+
maxImagesWidth={200}
|
|
91
|
+
onBackspace={[Function]}
|
|
88
92
|
onBlur={[Function]}
|
|
93
|
+
onChange={[Function]}
|
|
89
94
|
onClick={[Function]}
|
|
95
|
+
onContentSizeChange={[Function]}
|
|
96
|
+
onEnter={[Function]}
|
|
90
97
|
onFocus={[Function]}
|
|
98
|
+
onHTMLContentWithCursor={[Function]}
|
|
99
|
+
onKeyDown={[Function]}
|
|
100
|
+
onPaste={[Function]}
|
|
91
101
|
onResponderGrant={[Function]}
|
|
92
102
|
onResponderMove={[Function]}
|
|
93
103
|
onResponderRelease={[Function]}
|
|
94
104
|
onResponderTerminate={[Function]}
|
|
95
105
|
onResponderTerminationRequest={[Function]}
|
|
106
|
+
onSelectionChange={[Function]}
|
|
96
107
|
onStartShouldSetResponder={[Function]}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
deleteEnter={true}
|
|
106
|
-
disableEditingMenu={false}
|
|
107
|
-
fontFamily="serif"
|
|
108
|
-
fontSize={16}
|
|
109
|
-
isMultiline={false}
|
|
110
|
-
maxImagesWidth={200}
|
|
111
|
-
onBackspace={[Function]}
|
|
112
|
-
onBlur={[Function]}
|
|
113
|
-
onChange={[Function]}
|
|
114
|
-
onContentSizeChange={[Function]}
|
|
115
|
-
onEnter={[Function]}
|
|
116
|
-
onFocus={[Function]}
|
|
117
|
-
onHTMLContentWithCursor={[Function]}
|
|
118
|
-
onKeyDown={[Function]}
|
|
119
|
-
onPaste={[Function]}
|
|
120
|
-
onSelectionChange={[Function]}
|
|
121
|
-
placeholder="File name"
|
|
122
|
-
placeholderTextColor="gray"
|
|
123
|
-
selectionColor="black"
|
|
124
|
-
style={
|
|
125
|
-
{
|
|
126
|
-
"backgroundColor": undefined,
|
|
127
|
-
"maxWidth": undefined,
|
|
128
|
-
"minHeight": 0,
|
|
129
|
-
}
|
|
108
|
+
placeholder="File name"
|
|
109
|
+
placeholderTextColor="gray"
|
|
110
|
+
selectionColor="black"
|
|
111
|
+
style={
|
|
112
|
+
{
|
|
113
|
+
"backgroundColor": undefined,
|
|
114
|
+
"maxWidth": undefined,
|
|
115
|
+
"minHeight": 0,
|
|
130
116
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
117
|
+
}
|
|
118
|
+
text={
|
|
119
|
+
{
|
|
120
|
+
"eventCount": undefined,
|
|
121
|
+
"linkTextColor": undefined,
|
|
122
|
+
"selection": null,
|
|
123
|
+
"tag": "p",
|
|
124
|
+
"text": "<p>File name</p>",
|
|
139
125
|
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
126
|
+
}
|
|
127
|
+
textAlign="left"
|
|
128
|
+
triggerKeyCodes={[]}
|
|
129
|
+
/>
|
|
144
130
|
</View>
|
|
145
131
|
<View>
|
|
146
132
|
<Svg
|
|
@@ -193,7 +179,7 @@ exports[`File block renders file error state without crashing 1`] = `
|
|
|
193
179
|
]
|
|
194
180
|
}
|
|
195
181
|
>
|
|
196
|
-
<
|
|
182
|
+
<RCTAztecView
|
|
197
183
|
accessibilityState={
|
|
198
184
|
{
|
|
199
185
|
"busy": undefined,
|
|
@@ -203,76 +189,62 @@ exports[`File block renders file error state without crashing 1`] = `
|
|
|
203
189
|
"selected": undefined,
|
|
204
190
|
}
|
|
205
191
|
}
|
|
206
|
-
|
|
192
|
+
accessible={true}
|
|
193
|
+
activeFormats={[]}
|
|
194
|
+
blockType={
|
|
207
195
|
{
|
|
208
|
-
"
|
|
209
|
-
"min": undefined,
|
|
210
|
-
"now": undefined,
|
|
211
|
-
"text": undefined,
|
|
196
|
+
"tag": "p",
|
|
212
197
|
}
|
|
213
198
|
}
|
|
214
|
-
|
|
215
|
-
|
|
199
|
+
color="white"
|
|
200
|
+
deleteEnter={true}
|
|
201
|
+
disableEditingMenu={false}
|
|
216
202
|
focusable={true}
|
|
203
|
+
fontFamily="serif"
|
|
204
|
+
fontSize={16}
|
|
205
|
+
isMultiline={false}
|
|
206
|
+
maxImagesWidth={200}
|
|
207
|
+
minWidth={40}
|
|
208
|
+
onBackspace={[Function]}
|
|
217
209
|
onBlur={[Function]}
|
|
210
|
+
onChange={[Function]}
|
|
218
211
|
onClick={[Function]}
|
|
212
|
+
onContentSizeChange={[Function]}
|
|
213
|
+
onEnter={[Function]}
|
|
219
214
|
onFocus={[Function]}
|
|
215
|
+
onHTMLContentWithCursor={[Function]}
|
|
216
|
+
onKeyDown={[Function]}
|
|
217
|
+
onPaste={[Function]}
|
|
220
218
|
onResponderGrant={[Function]}
|
|
221
219
|
onResponderMove={[Function]}
|
|
222
220
|
onResponderRelease={[Function]}
|
|
223
221
|
onResponderTerminate={[Function]}
|
|
224
222
|
onResponderTerminationRequest={[Function]}
|
|
223
|
+
onSelectionChange={[Function]}
|
|
225
224
|
onStartShouldSetResponder={[Function]}
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
deleteEnter={true}
|
|
236
|
-
disableEditingMenu={false}
|
|
237
|
-
fontFamily="serif"
|
|
238
|
-
fontSize={16}
|
|
239
|
-
isMultiline={false}
|
|
240
|
-
maxImagesWidth={200}
|
|
241
|
-
minWidth={40}
|
|
242
|
-
onBackspace={[Function]}
|
|
243
|
-
onBlur={[Function]}
|
|
244
|
-
onChange={[Function]}
|
|
245
|
-
onContentSizeChange={[Function]}
|
|
246
|
-
onEnter={[Function]}
|
|
247
|
-
onFocus={[Function]}
|
|
248
|
-
onHTMLContentWithCursor={[Function]}
|
|
249
|
-
onKeyDown={[Function]}
|
|
250
|
-
onPaste={[Function]}
|
|
251
|
-
onSelectionChange={[Function]}
|
|
252
|
-
placeholder=""
|
|
253
|
-
placeholderTextColor="white"
|
|
254
|
-
selectionColor="white"
|
|
255
|
-
style={
|
|
256
|
-
{
|
|
257
|
-
"backgroundColor": undefined,
|
|
258
|
-
"color": "white",
|
|
259
|
-
"maxWidth": 80,
|
|
260
|
-
"minHeight": 0,
|
|
261
|
-
}
|
|
225
|
+
placeholder=""
|
|
226
|
+
placeholderTextColor="white"
|
|
227
|
+
selectionColor="white"
|
|
228
|
+
style={
|
|
229
|
+
{
|
|
230
|
+
"backgroundColor": undefined,
|
|
231
|
+
"color": "white",
|
|
232
|
+
"maxWidth": 80,
|
|
233
|
+
"minHeight": 0,
|
|
262
234
|
}
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
235
|
+
}
|
|
236
|
+
text={
|
|
237
|
+
{
|
|
238
|
+
"eventCount": undefined,
|
|
239
|
+
"linkTextColor": undefined,
|
|
240
|
+
"selection": null,
|
|
241
|
+
"tag": "p",
|
|
242
|
+
"text": "<p>Download</p>",
|
|
271
243
|
}
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
244
|
+
}
|
|
245
|
+
textAlign="center"
|
|
246
|
+
triggerKeyCodes={[]}
|
|
247
|
+
/>
|
|
276
248
|
</View>
|
|
277
249
|
</View>
|
|
278
250
|
</View>
|
|
@@ -343,7 +315,7 @@ exports[`File block renders file without crashing 1`] = `
|
|
|
343
315
|
]
|
|
344
316
|
}
|
|
345
317
|
>
|
|
346
|
-
<
|
|
318
|
+
<RCTAztecView
|
|
347
319
|
accessibilityState={
|
|
348
320
|
{
|
|
349
321
|
"busy": undefined,
|
|
@@ -353,73 +325,59 @@ exports[`File block renders file without crashing 1`] = `
|
|
|
353
325
|
"selected": undefined,
|
|
354
326
|
}
|
|
355
327
|
}
|
|
356
|
-
|
|
328
|
+
accessible={true}
|
|
329
|
+
activeFormats={[]}
|
|
330
|
+
blockType={
|
|
357
331
|
{
|
|
358
|
-
"
|
|
359
|
-
"min": undefined,
|
|
360
|
-
"now": undefined,
|
|
361
|
-
"text": undefined,
|
|
332
|
+
"tag": "p",
|
|
362
333
|
}
|
|
363
334
|
}
|
|
364
|
-
|
|
365
|
-
|
|
335
|
+
deleteEnter={true}
|
|
336
|
+
disableEditingMenu={false}
|
|
366
337
|
focusable={true}
|
|
338
|
+
fontFamily="serif"
|
|
339
|
+
fontSize={16}
|
|
340
|
+
isMultiline={false}
|
|
341
|
+
maxImagesWidth={200}
|
|
342
|
+
onBackspace={[Function]}
|
|
367
343
|
onBlur={[Function]}
|
|
344
|
+
onChange={[Function]}
|
|
368
345
|
onClick={[Function]}
|
|
346
|
+
onContentSizeChange={[Function]}
|
|
347
|
+
onEnter={[Function]}
|
|
369
348
|
onFocus={[Function]}
|
|
349
|
+
onHTMLContentWithCursor={[Function]}
|
|
350
|
+
onKeyDown={[Function]}
|
|
351
|
+
onPaste={[Function]}
|
|
370
352
|
onResponderGrant={[Function]}
|
|
371
353
|
onResponderMove={[Function]}
|
|
372
354
|
onResponderRelease={[Function]}
|
|
373
355
|
onResponderTerminate={[Function]}
|
|
374
356
|
onResponderTerminationRequest={[Function]}
|
|
357
|
+
onSelectionChange={[Function]}
|
|
375
358
|
onStartShouldSetResponder={[Function]}
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
deleteEnter={true}
|
|
385
|
-
disableEditingMenu={false}
|
|
386
|
-
fontFamily="serif"
|
|
387
|
-
fontSize={16}
|
|
388
|
-
isMultiline={false}
|
|
389
|
-
maxImagesWidth={200}
|
|
390
|
-
onBackspace={[Function]}
|
|
391
|
-
onBlur={[Function]}
|
|
392
|
-
onChange={[Function]}
|
|
393
|
-
onContentSizeChange={[Function]}
|
|
394
|
-
onEnter={[Function]}
|
|
395
|
-
onFocus={[Function]}
|
|
396
|
-
onHTMLContentWithCursor={[Function]}
|
|
397
|
-
onKeyDown={[Function]}
|
|
398
|
-
onPaste={[Function]}
|
|
399
|
-
onSelectionChange={[Function]}
|
|
400
|
-
placeholder="File name"
|
|
401
|
-
placeholderTextColor="gray"
|
|
402
|
-
selectionColor="black"
|
|
403
|
-
style={
|
|
404
|
-
{
|
|
405
|
-
"backgroundColor": undefined,
|
|
406
|
-
"maxWidth": undefined,
|
|
407
|
-
"minHeight": 0,
|
|
408
|
-
}
|
|
359
|
+
placeholder="File name"
|
|
360
|
+
placeholderTextColor="gray"
|
|
361
|
+
selectionColor="black"
|
|
362
|
+
style={
|
|
363
|
+
{
|
|
364
|
+
"backgroundColor": undefined,
|
|
365
|
+
"maxWidth": undefined,
|
|
366
|
+
"minHeight": 0,
|
|
409
367
|
}
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
368
|
+
}
|
|
369
|
+
text={
|
|
370
|
+
{
|
|
371
|
+
"eventCount": undefined,
|
|
372
|
+
"linkTextColor": undefined,
|
|
373
|
+
"selection": null,
|
|
374
|
+
"tag": "p",
|
|
375
|
+
"text": "<p>File name</p>",
|
|
418
376
|
}
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
377
|
+
}
|
|
378
|
+
textAlign="left"
|
|
379
|
+
triggerKeyCodes={[]}
|
|
380
|
+
/>
|
|
423
381
|
</View>
|
|
424
382
|
</View>
|
|
425
383
|
<View
|
|
@@ -446,7 +404,7 @@ exports[`File block renders file without crashing 1`] = `
|
|
|
446
404
|
]
|
|
447
405
|
}
|
|
448
406
|
>
|
|
449
|
-
<
|
|
407
|
+
<RCTAztecView
|
|
450
408
|
accessibilityState={
|
|
451
409
|
{
|
|
452
410
|
"busy": undefined,
|
|
@@ -456,76 +414,62 @@ exports[`File block renders file without crashing 1`] = `
|
|
|
456
414
|
"selected": undefined,
|
|
457
415
|
}
|
|
458
416
|
}
|
|
459
|
-
|
|
417
|
+
accessible={true}
|
|
418
|
+
activeFormats={[]}
|
|
419
|
+
blockType={
|
|
460
420
|
{
|
|
461
|
-
"
|
|
462
|
-
"min": undefined,
|
|
463
|
-
"now": undefined,
|
|
464
|
-
"text": undefined,
|
|
421
|
+
"tag": "p",
|
|
465
422
|
}
|
|
466
423
|
}
|
|
467
|
-
|
|
468
|
-
|
|
424
|
+
color="white"
|
|
425
|
+
deleteEnter={true}
|
|
426
|
+
disableEditingMenu={false}
|
|
469
427
|
focusable={true}
|
|
428
|
+
fontFamily="serif"
|
|
429
|
+
fontSize={16}
|
|
430
|
+
isMultiline={false}
|
|
431
|
+
maxImagesWidth={200}
|
|
432
|
+
minWidth={40}
|
|
433
|
+
onBackspace={[Function]}
|
|
470
434
|
onBlur={[Function]}
|
|
435
|
+
onChange={[Function]}
|
|
471
436
|
onClick={[Function]}
|
|
437
|
+
onContentSizeChange={[Function]}
|
|
438
|
+
onEnter={[Function]}
|
|
472
439
|
onFocus={[Function]}
|
|
440
|
+
onHTMLContentWithCursor={[Function]}
|
|
441
|
+
onKeyDown={[Function]}
|
|
442
|
+
onPaste={[Function]}
|
|
473
443
|
onResponderGrant={[Function]}
|
|
474
444
|
onResponderMove={[Function]}
|
|
475
445
|
onResponderRelease={[Function]}
|
|
476
446
|
onResponderTerminate={[Function]}
|
|
477
447
|
onResponderTerminationRequest={[Function]}
|
|
448
|
+
onSelectionChange={[Function]}
|
|
478
449
|
onStartShouldSetResponder={[Function]}
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
deleteEnter={true}
|
|
489
|
-
disableEditingMenu={false}
|
|
490
|
-
fontFamily="serif"
|
|
491
|
-
fontSize={16}
|
|
492
|
-
isMultiline={false}
|
|
493
|
-
maxImagesWidth={200}
|
|
494
|
-
minWidth={40}
|
|
495
|
-
onBackspace={[Function]}
|
|
496
|
-
onBlur={[Function]}
|
|
497
|
-
onChange={[Function]}
|
|
498
|
-
onContentSizeChange={[Function]}
|
|
499
|
-
onEnter={[Function]}
|
|
500
|
-
onFocus={[Function]}
|
|
501
|
-
onHTMLContentWithCursor={[Function]}
|
|
502
|
-
onKeyDown={[Function]}
|
|
503
|
-
onPaste={[Function]}
|
|
504
|
-
onSelectionChange={[Function]}
|
|
505
|
-
placeholder=""
|
|
506
|
-
placeholderTextColor="white"
|
|
507
|
-
selectionColor="white"
|
|
508
|
-
style={
|
|
509
|
-
{
|
|
510
|
-
"backgroundColor": undefined,
|
|
511
|
-
"color": "white",
|
|
512
|
-
"maxWidth": 80,
|
|
513
|
-
"minHeight": 0,
|
|
514
|
-
}
|
|
450
|
+
placeholder=""
|
|
451
|
+
placeholderTextColor="white"
|
|
452
|
+
selectionColor="white"
|
|
453
|
+
style={
|
|
454
|
+
{
|
|
455
|
+
"backgroundColor": undefined,
|
|
456
|
+
"color": "white",
|
|
457
|
+
"maxWidth": 80,
|
|
458
|
+
"minHeight": 0,
|
|
515
459
|
}
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
460
|
+
}
|
|
461
|
+
text={
|
|
462
|
+
{
|
|
463
|
+
"eventCount": undefined,
|
|
464
|
+
"linkTextColor": undefined,
|
|
465
|
+
"selection": null,
|
|
466
|
+
"tag": "p",
|
|
467
|
+
"text": "<p>Download</p>",
|
|
524
468
|
}
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
469
|
+
}
|
|
470
|
+
textAlign="center"
|
|
471
|
+
triggerKeyCodes={[]}
|
|
472
|
+
/>
|
|
529
473
|
</View>
|
|
530
474
|
</View>
|
|
531
475
|
</View>
|
package/src/file/utils/index.js
CHANGED
|
@@ -54,18 +54,3 @@ const createActiveXObject = ( type ) => {
|
|
|
54
54
|
}
|
|
55
55
|
return ax;
|
|
56
56
|
};
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Hides all .wp-block-file__embed elements on the document. This function is only intended
|
|
60
|
-
* to be run on the front-end, it may have weird side effects running in the block editor.
|
|
61
|
-
*/
|
|
62
|
-
export const hidePdfEmbedsOnUnsupportedBrowsers = () => {
|
|
63
|
-
if ( ! browserSupportsPdfs() ) {
|
|
64
|
-
const embeds = document.getElementsByClassName(
|
|
65
|
-
'wp-block-file__embed'
|
|
66
|
-
);
|
|
67
|
-
Array.from( embeds ).forEach( ( embed ) => {
|
|
68
|
-
embed.style.display = 'none';
|
|
69
|
-
} );
|
|
70
|
-
}
|
|
71
|
-
};
|
package/src/file/view.js
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WordPress dependencies
|
|
3
|
+
*/
|
|
4
|
+
import { store } from '@wordpress/interactivity';
|
|
1
5
|
/**
|
|
2
6
|
* Internal dependencies
|
|
3
7
|
*/
|
|
4
|
-
import {
|
|
8
|
+
import { browserSupportsPdfs } from './utils';
|
|
5
9
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
store( {
|
|
11
|
+
selectors: {
|
|
12
|
+
core: {
|
|
13
|
+
file: {
|
|
14
|
+
hasPdfPreview: browserSupportsPdfs() ? 'inherit' : 'none',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
} );
|
package/src/footnotes/edit.js
CHANGED
|
@@ -23,7 +23,9 @@ export default function FootnotesEdit( { context: { postType, postId } } ) {
|
|
|
23
23
|
<Placeholder
|
|
24
24
|
icon={ <BlockIcon icon={ icon } /> }
|
|
25
25
|
label={ __( 'Footnotes' ) }
|
|
26
|
-
|
|
26
|
+
instructions={ __(
|
|
27
|
+
'Footnotes are not supported here. Add this block to post or page content.'
|
|
28
|
+
) }
|
|
27
29
|
/>
|
|
28
30
|
</div>
|
|
29
31
|
);
|
|
@@ -46,7 +48,19 @@ export default function FootnotesEdit( { context: { postType, postId } } ) {
|
|
|
46
48
|
return (
|
|
47
49
|
<ol { ...blockProps }>
|
|
48
50
|
{ footnotes.map( ( { id, content } ) => (
|
|
49
|
-
|
|
51
|
+
/* eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions */
|
|
52
|
+
<li
|
|
53
|
+
key={ id }
|
|
54
|
+
onMouseDown={ ( event ) => {
|
|
55
|
+
// When clicking on the list item (not on descendants),
|
|
56
|
+
// focus the rich text element since it's only 1px wide when
|
|
57
|
+
// empty.
|
|
58
|
+
if ( event.target === event.currentTarget ) {
|
|
59
|
+
event.target.firstElementChild.focus();
|
|
60
|
+
event.preventDefault();
|
|
61
|
+
}
|
|
62
|
+
} }
|
|
63
|
+
>
|
|
50
64
|
<RichText
|
|
51
65
|
id={ id }
|
|
52
66
|
tagName="span"
|
package/src/gallery/edit.js
CHANGED
|
@@ -75,7 +75,7 @@ const ALLOWED_MEDIA_TYPES = [ 'image' ];
|
|
|
75
75
|
const allowedBlocks = [ 'core/image' ];
|
|
76
76
|
|
|
77
77
|
const PLACEHOLDER_TEXT = Platform.isNative
|
|
78
|
-
? __( '
|
|
78
|
+
? __( 'Add media' )
|
|
79
79
|
: __( 'Drag images, upload new ones or select files from your library.' );
|
|
80
80
|
|
|
81
81
|
const MOBILE_CONTROL_PROPS_RANGE_CONTROL = Platform.isNative
|
package/src/gallery/index.php
CHANGED
|
@@ -44,7 +44,7 @@ add_filter( 'render_block_data', 'block_core_gallery_data_id_backcompatibility'
|
|
|
44
44
|
* @return string The content of the block being rendered.
|
|
45
45
|
*/
|
|
46
46
|
function block_core_gallery_render( $attributes, $content ) {
|
|
47
|
-
$gap =
|
|
47
|
+
$gap = $attributes['style']['spacing']['blockGap'] ?? null;
|
|
48
48
|
// Skip if gap value contains unsupported characters.
|
|
49
49
|
// Regex for CSS value borrowed from `safecss_filter_attr`, and used here
|
|
50
50
|
// because we only want to match against the value, not the CSS attribute.
|
package/src/group/block.json
CHANGED
|
@@ -24,13 +24,18 @@
|
|
|
24
24
|
"__experimentalOnEnter": true,
|
|
25
25
|
"__experimentalOnMerge": true,
|
|
26
26
|
"__experimentalSettings": true,
|
|
27
|
+
"__experimentalMetadata": true,
|
|
27
28
|
"align": [ "wide", "full" ],
|
|
28
29
|
"anchor": true,
|
|
29
30
|
"ariaLabel": true,
|
|
30
31
|
"html": false,
|
|
32
|
+
"background": {
|
|
33
|
+
"backgroundImage": true
|
|
34
|
+
},
|
|
31
35
|
"color": {
|
|
32
36
|
"gradients": true,
|
|
33
37
|
"heading": true,
|
|
38
|
+
"button": true,
|
|
34
39
|
"link": true,
|
|
35
40
|
"__experimentalDefaultControls": {
|
|
36
41
|
"background": true,
|
package/src/group/edit.js
CHANGED
package/src/heading/block.json
CHANGED
|
@@ -55,12 +55,14 @@
|
|
|
55
55
|
"__experimentalLetterSpacing": true,
|
|
56
56
|
"__experimentalTextTransform": true,
|
|
57
57
|
"__experimentalTextDecoration": true,
|
|
58
|
+
"__experimentalWritingMode": true,
|
|
58
59
|
"__experimentalDefaultControls": {
|
|
59
60
|
"fontSize": true,
|
|
60
61
|
"fontAppearance": true,
|
|
61
62
|
"textTransform": true
|
|
62
63
|
}
|
|
63
64
|
},
|
|
65
|
+
"__unstablePasteTextInline": true,
|
|
64
66
|
"__experimentalSlashInserter": true
|
|
65
67
|
},
|
|
66
68
|
"editorStyle": "wp-block-heading-editor",
|
package/src/heading/edit.js
CHANGED
|
@@ -132,7 +132,6 @@ function HeadingEdit( {
|
|
|
132
132
|
} }
|
|
133
133
|
onReplace={ onReplace }
|
|
134
134
|
onRemove={ () => onReplace( [] ) }
|
|
135
|
-
aria-label={ __( 'Heading text' ) }
|
|
136
135
|
placeholder={ placeholder || __( 'Heading' ) }
|
|
137
136
|
textAlign={ textAlign }
|
|
138
137
|
{ ...( Platform.isNative && { deleteEnter: true } ) } // setup RichText on native mobile to delete the "Enter" key as it's handled by the JS/RN side
|
package/src/heading/style.scss
CHANGED
|
@@ -7,4 +7,8 @@ h6 {
|
|
|
7
7
|
&.has-background {
|
|
8
8
|
padding: $block-bg-padding--v $block-bg-padding--h;
|
|
9
9
|
}
|
|
10
|
+
&.has-text-align-right[style*="writing-mode"]:where([style*="vertical-rl"]),
|
|
11
|
+
&.has-text-align-left[style*="writing-mode"]:where([style*="vertical-lr"]) {
|
|
12
|
+
rotate: 180deg;
|
|
13
|
+
}
|
|
10
14
|
}
|
|
@@ -73,12 +73,7 @@ const transforms = {
|
|
|
73
73
|
...[ 1, 2, 3, 4, 5, 6 ].map( ( level ) => ( {
|
|
74
74
|
type: 'enter',
|
|
75
75
|
regExp: new RegExp( `^/(h|H)${ level }$` ),
|
|
76
|
-
transform(
|
|
77
|
-
return createBlock( 'core/heading', {
|
|
78
|
-
level,
|
|
79
|
-
content,
|
|
80
|
-
} );
|
|
81
|
-
},
|
|
76
|
+
transform: () => createBlock( 'core/heading', { level } ),
|
|
82
77
|
} ) ),
|
|
83
78
|
],
|
|
84
79
|
to: [
|