@wordpress/editor 14.8.9 → 14.8.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/editor",
3
- "version": "14.8.9",
3
+ "version": "14.8.11",
4
4
  "description": "Enhanced block editor for WordPress posts.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -35,35 +35,35 @@
35
35
  "@wordpress/a11y": "^4.8.2",
36
36
  "@wordpress/api-fetch": "^7.8.2",
37
37
  "@wordpress/blob": "^4.8.1",
38
- "@wordpress/block-editor": "^14.3.7",
38
+ "@wordpress/block-editor": "^14.3.9",
39
39
  "@wordpress/blocks": "^13.8.5",
40
- "@wordpress/commands": "^1.8.7",
41
- "@wordpress/components": "^28.8.7",
40
+ "@wordpress/commands": "^1.8.8",
41
+ "@wordpress/components": "^28.8.8",
42
42
  "@wordpress/compose": "^7.8.3",
43
- "@wordpress/core-data": "^7.8.7",
43
+ "@wordpress/core-data": "^7.8.9",
44
44
  "@wordpress/data": "^10.8.3",
45
- "@wordpress/dataviews": "^4.4.7",
45
+ "@wordpress/dataviews": "^4.4.8",
46
46
  "@wordpress/date": "^5.8.2",
47
47
  "@wordpress/deprecated": "^4.8.2",
48
48
  "@wordpress/dom": "^4.8.2",
49
49
  "@wordpress/element": "^6.8.1",
50
- "@wordpress/fields": "^0.0.8",
50
+ "@wordpress/fields": "^0.0.10",
51
51
  "@wordpress/hooks": "^4.8.2",
52
52
  "@wordpress/html-entities": "^4.8.1",
53
53
  "@wordpress/i18n": "^5.8.2",
54
54
  "@wordpress/icons": "^10.8.2",
55
- "@wordpress/interface": "^6.8.7",
55
+ "@wordpress/interface": "^6.8.8",
56
56
  "@wordpress/keyboard-shortcuts": "^5.8.3",
57
57
  "@wordpress/keycodes": "^4.8.2",
58
58
  "@wordpress/media-utils": "^5.8.2",
59
59
  "@wordpress/notices": "^5.8.3",
60
- "@wordpress/patterns": "^2.8.7",
61
- "@wordpress/plugins": "^7.8.7",
62
- "@wordpress/preferences": "^4.8.7",
60
+ "@wordpress/patterns": "^2.8.9",
61
+ "@wordpress/plugins": "^7.8.8",
62
+ "@wordpress/preferences": "^4.8.8",
63
63
  "@wordpress/private-apis": "^1.8.1",
64
- "@wordpress/reusable-blocks": "^5.8.7",
64
+ "@wordpress/reusable-blocks": "^5.8.9",
65
65
  "@wordpress/rich-text": "^7.8.3",
66
- "@wordpress/server-side-render": "^5.8.7",
66
+ "@wordpress/server-side-render": "^5.8.8",
67
67
  "@wordpress/url": "^4.8.1",
68
68
  "@wordpress/warning": "^3.8.1",
69
69
  "@wordpress/wordcount": "^4.8.1",
@@ -86,5 +86,5 @@
86
86
  "publishConfig": {
87
87
  "access": "public"
88
88
  },
89
- "gitHead": "b1ace05ee94f0803e51b205306c19fc706499ede"
89
+ "gitHead": "b78063a69a8154bed32c2217ffbaf911852cffb5"
90
90
  }
@@ -46,12 +46,17 @@ function ContentOnlySettingsMenuItems( { clientId, onClose } ) {
46
46
  getBlockAttributes( patternParent ).ref
47
47
  );
48
48
  } else {
49
- const { getCurrentTemplateId } = select( editorStore );
49
+ const { getCurrentTemplateId, getRenderingMode } =
50
+ select( editorStore );
50
51
  const templateId = getCurrentTemplateId();
51
52
  const { getContentLockingParent } = unlock(
52
53
  select( blockEditorStore )
53
54
  );
54
- if ( ! getContentLockingParent( clientId ) && templateId ) {
55
+ if (
56
+ getRenderingMode() === 'template-locked' &&
57
+ ! getContentLockingParent( clientId ) &&
58
+ templateId
59
+ ) {
55
60
  record = select( coreStore ).getEntityRecord(
56
61
  'postType',
57
62
  'wp_template',
@@ -367,7 +367,10 @@ function VisualEditor( {
367
367
  return [
368
368
  ...( styles ?? [] ),
369
369
  {
370
- css: `.is-root-container{display:flow-root;${
370
+ // Ensures margins of children are contained so that the body background paints behind them.
371
+ // Otherwise, the background of html (when zoomed out) would show there and appear broken. It’s
372
+ // important mostly for post-only views yet conceivably an issue in templated views too.
373
+ css: `:where(.block-editor-iframe__body){display:flow-root;}.is-root-container{display:flow-root;${
371
374
  // Some themes will have `min-height: 100vh` for the root container,
372
375
  // which isn't a requirement in auto resize mode.
373
376
  enableResizing ? 'min-height:0!important;' : ''
@@ -42,7 +42,7 @@ const ZoomOutToggle = ( { disabled } ) => {
42
42
  disabled={ disabled }
43
43
  onClick={ handleZoomOut }
44
44
  icon={ zoomOutIcon }
45
- label={ __( 'Toggle Zoom Out' ) }
45
+ label={ __( 'Zoom Out' ) }
46
46
  isPressed={ isZoomOut }
47
47
  size="compact"
48
48
  showTooltip={ ! showIconLabels }