@wordpress/editor 12.12.0 → 12.13.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/build/components/page-attributes/parent.js +6 -2
- package/build/components/page-attributes/parent.js.map +1 -1
- package/build/components/post-locked-modal/index.js +1 -1
- package/build/components/post-locked-modal/index.js.map +1 -1
- package/build/components/post-publish-panel/maybe-category-panel.js +2 -4
- package/build/components/post-publish-panel/maybe-category-panel.js.map +1 -1
- package/build/components/post-title/index.js +8 -2
- package/build/components/post-title/index.js.map +1 -1
- package/build/components/provider/index.native.js +3 -1
- package/build/components/provider/index.native.js.map +1 -1
- package/build/components/provider/use-block-editor-settings.js +2 -2
- package/build/components/provider/use-block-editor-settings.js.map +1 -1
- package/build/store/selectors.js +1 -1
- package/build/store/selectors.js.map +1 -1
- package/build-module/components/page-attributes/parent.js +4 -3
- package/build-module/components/page-attributes/parent.js.map +1 -1
- package/build-module/components/post-locked-modal/index.js +1 -1
- package/build-module/components/post-locked-modal/index.js.map +1 -1
- package/build-module/components/post-publish-panel/maybe-category-panel.js +2 -4
- package/build-module/components/post-publish-panel/maybe-category-panel.js.map +1 -1
- package/build-module/components/post-title/index.js +8 -2
- package/build-module/components/post-title/index.js.map +1 -1
- package/build-module/components/provider/index.native.js +3 -1
- package/build-module/components/provider/index.native.js.map +1 -1
- package/build-module/components/provider/use-block-editor-settings.js +2 -2
- package/build-module/components/provider/use-block-editor-settings.js.map +1 -1
- package/build-module/store/selectors.js +1 -1
- package/build-module/store/selectors.js.map +1 -1
- package/build-style/style-rtl.css +3 -0
- package/build-style/style.css +3 -0
- package/package.json +30 -29
- package/src/components/README.md +1 -1
- package/src/components/page-attributes/parent.js +4 -9
- package/src/components/post-locked-modal/index.js +1 -1
- package/src/components/post-publish-panel/maybe-category-panel.js +3 -5
- package/src/components/post-title/index.js +8 -2
- package/src/components/post-trash/style.scss +3 -0
- package/src/components/provider/index.native.js +3 -1
- package/src/components/provider/use-block-editor-settings.js +4 -1
- package/src/store/selectors.js +1 -1
|
@@ -41,7 +41,9 @@ function useBlockEditorSettings( settings, hasTemplate ) {
|
|
|
41
41
|
const isWeb = Platform.OS === 'web';
|
|
42
42
|
const { canUser, getEntityRecord } = select( coreStore );
|
|
43
43
|
|
|
44
|
-
const siteSettings =
|
|
44
|
+
const siteSettings = canUser( 'read', 'settings' )
|
|
45
|
+
? getEntityRecord( 'root', 'site' )
|
|
46
|
+
: undefined;
|
|
45
47
|
|
|
46
48
|
return {
|
|
47
49
|
canUseUnfilteredHTML: canUserUseUnfilteredHTML(),
|
|
@@ -136,6 +138,7 @@ function useBlockEditorSettings( settings, hasTemplate ) {
|
|
|
136
138
|
'generateAnchors',
|
|
137
139
|
'hasFixedToolbar',
|
|
138
140
|
'hasReducedUI',
|
|
141
|
+
'hasInlineToolbar',
|
|
139
142
|
'imageDefaultSize',
|
|
140
143
|
'imageDimensions',
|
|
141
144
|
'imageEditing',
|
package/src/store/selectors.js
CHANGED
|
@@ -534,7 +534,7 @@ export function isEditedPostEmpty( state ) {
|
|
|
534
534
|
|
|
535
535
|
if ( blocks.length ) {
|
|
536
536
|
// Pierce the abstraction of the serializer in knowing that blocks are
|
|
537
|
-
// joined with
|
|
537
|
+
// joined with newlines such that even if every individual block
|
|
538
538
|
// produces an empty save result, the serialized content is non-empty.
|
|
539
539
|
if ( blocks.length > 1 ) {
|
|
540
540
|
return false;
|