@wordpress/edit-post 5.0.2 → 5.0.6

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.
Files changed (109) hide show
  1. package/README.md +1 -1
  2. package/build/components/header/fullscreen-mode-close/index.js +19 -3
  3. package/build/components/header/fullscreen-mode-close/index.js.map +1 -1
  4. package/build/components/header/header-toolbar/index.native.js +10 -3
  5. package/build/components/header/header-toolbar/index.native.js.map +1 -1
  6. package/build/components/header/template-title/index.js +1 -1
  7. package/build/components/header/template-title/index.js.map +1 -1
  8. package/build/components/keyboard-shortcut-help-modal/dynamic-shortcut.js +1 -1
  9. package/build/components/keyboard-shortcut-help-modal/dynamic-shortcut.js.map +1 -1
  10. package/build/components/keyboard-shortcut-help-modal/index.js +1 -3
  11. package/build/components/keyboard-shortcut-help-modal/index.js.map +1 -1
  12. package/build/components/keyboard-shortcuts/index.js +1 -8
  13. package/build/components/keyboard-shortcuts/index.js.map +1 -1
  14. package/build/components/layout/index.js +1 -3
  15. package/build/components/layout/index.js.map +1 -1
  16. package/build/components/layout/index.native.js +5 -1
  17. package/build/components/layout/index.native.js.map +1 -1
  18. package/build/components/meta-boxes/index.js +1 -4
  19. package/build/components/meta-boxes/index.js.map +1 -1
  20. package/build/components/preferences-modal/index.js +54 -16
  21. package/build/components/preferences-modal/index.js.map +1 -1
  22. package/build/components/secondary-sidebar/inserter-sidebar.js +2 -1
  23. package/build/components/secondary-sidebar/inserter-sidebar.js.map +1 -1
  24. package/build/components/secondary-sidebar/list-view-sidebar.js +1 -0
  25. package/build/components/secondary-sidebar/list-view-sidebar.js.map +1 -1
  26. package/build/components/sidebar/plugin-sidebar/index.js +1 -1
  27. package/build/components/sidebar/plugin-sidebar/index.js.map +1 -1
  28. package/build/components/sidebar/template/actions.js +6 -1
  29. package/build/components/sidebar/template/actions.js.map +1 -1
  30. package/build/components/sidebar/template/index.js +5 -2
  31. package/build/components/sidebar/template/index.js.map +1 -1
  32. package/build/components/sidebar/template-summary/index.js +2 -1
  33. package/build/components/sidebar/template-summary/index.js.map +1 -1
  34. package/build/editor.js +16 -6
  35. package/build/editor.js.map +1 -1
  36. package/build/hooks/validate-multiple-use/index.js +1 -1
  37. package/build/hooks/validate-multiple-use/index.js.map +1 -1
  38. package/build/index.js +6 -0
  39. package/build/index.js.map +1 -1
  40. package/build/store/selectors.js +5 -3
  41. package/build/store/selectors.js.map +1 -1
  42. package/build-module/components/header/fullscreen-mode-close/index.js +19 -4
  43. package/build-module/components/header/fullscreen-mode-close/index.js.map +1 -1
  44. package/build-module/components/header/header-toolbar/index.native.js +11 -4
  45. package/build-module/components/header/header-toolbar/index.native.js.map +1 -1
  46. package/build-module/components/header/template-title/index.js +1 -1
  47. package/build-module/components/header/template-title/index.js.map +1 -1
  48. package/build-module/components/keyboard-shortcut-help-modal/dynamic-shortcut.js +1 -1
  49. package/build-module/components/keyboard-shortcut-help-modal/dynamic-shortcut.js.map +1 -1
  50. package/build-module/components/keyboard-shortcut-help-modal/index.js +1 -3
  51. package/build-module/components/keyboard-shortcut-help-modal/index.js.map +1 -1
  52. package/build-module/components/keyboard-shortcuts/index.js +1 -8
  53. package/build-module/components/keyboard-shortcuts/index.js.map +1 -1
  54. package/build-module/components/layout/index.js +2 -4
  55. package/build-module/components/layout/index.js.map +1 -1
  56. package/build-module/components/layout/index.native.js +5 -1
  57. package/build-module/components/layout/index.native.js.map +1 -1
  58. package/build-module/components/meta-boxes/index.js +1 -4
  59. package/build-module/components/meta-boxes/index.js.map +1 -1
  60. package/build-module/components/preferences-modal/index.js +55 -18
  61. package/build-module/components/preferences-modal/index.js.map +1 -1
  62. package/build-module/components/secondary-sidebar/inserter-sidebar.js +2 -1
  63. package/build-module/components/secondary-sidebar/inserter-sidebar.js.map +1 -1
  64. package/build-module/components/secondary-sidebar/list-view-sidebar.js +1 -0
  65. package/build-module/components/secondary-sidebar/list-view-sidebar.js.map +1 -1
  66. package/build-module/components/sidebar/plugin-sidebar/index.js +1 -1
  67. package/build-module/components/sidebar/plugin-sidebar/index.js.map +1 -1
  68. package/build-module/components/sidebar/template/actions.js +6 -1
  69. package/build-module/components/sidebar/template/actions.js.map +1 -1
  70. package/build-module/components/sidebar/template/index.js +5 -2
  71. package/build-module/components/sidebar/template/index.js.map +1 -1
  72. package/build-module/components/sidebar/template-summary/index.js +2 -1
  73. package/build-module/components/sidebar/template-summary/index.js.map +1 -1
  74. package/build-module/editor.js +15 -6
  75. package/build-module/editor.js.map +1 -1
  76. package/build-module/hooks/validate-multiple-use/index.js +1 -1
  77. package/build-module/hooks/validate-multiple-use/index.js.map +1 -1
  78. package/build-module/index.js +5 -0
  79. package/build-module/index.js.map +1 -1
  80. package/build-module/store/selectors.js +5 -3
  81. package/build-module/store/selectors.js.map +1 -1
  82. package/build-style/style-rtl.css +30 -53
  83. package/build-style/style.css +30 -53
  84. package/package.json +27 -27
  85. package/src/components/header/fullscreen-mode-close/index.js +37 -15
  86. package/src/components/header/header-toolbar/index.native.js +8 -2
  87. package/src/components/header/template-title/index.js +3 -1
  88. package/src/components/keyboard-shortcut-help-modal/dynamic-shortcut.js +15 -12
  89. package/src/components/keyboard-shortcut-help-modal/index.js +1 -3
  90. package/src/components/keyboard-shortcuts/index.js +19 -32
  91. package/src/components/layout/index.js +2 -6
  92. package/src/components/layout/index.native.js +7 -1
  93. package/src/components/meta-boxes/index.js +2 -9
  94. package/src/components/preferences-modal/index.js +91 -26
  95. package/src/components/preferences-modal/style.scss +6 -56
  96. package/src/components/preferences-modal/test/__snapshots__/index.js.snap +330 -130
  97. package/src/components/secondary-sidebar/inserter-sidebar.js +1 -0
  98. package/src/components/secondary-sidebar/list-view-sidebar.js +1 -0
  99. package/src/components/sidebar/plugin-sidebar/index.js +1 -1
  100. package/src/components/sidebar/template/actions.js +6 -1
  101. package/src/components/sidebar/template/index.js +5 -3
  102. package/src/components/sidebar/template-summary/index.js +1 -1
  103. package/src/components/sidebar/template-summary/style.scss +2 -1
  104. package/src/components/visual-editor/style.scss +4 -5
  105. package/src/components/welcome-guide/style.scss +5 -0
  106. package/src/editor.js +98 -78
  107. package/src/hooks/validate-multiple-use/index.js +1 -1
  108. package/src/index.js +3 -0
  109. package/src/store/selectors.js +7 -3
@@ -122,6 +122,12 @@
122
122
  }
123
123
  }
124
124
 
125
+ @media (min-width: 782px) {
126
+ .components-panel__header + .interface-complementary-area-header {
127
+ margin-top: 0;
128
+ }
129
+ }
130
+
125
131
  .interface-complementary-area {
126
132
  background: #fff;
127
133
  color: #1e1e1e;
@@ -157,12 +163,18 @@
157
163
  .interface-complementary-area p {
158
164
  margin-top: 0;
159
165
  }
160
- .interface-complementary-area h2,
161
- .interface-complementary-area h3 {
166
+ .interface-complementary-area h2 {
162
167
  font-size: 13px;
163
168
  color: #1e1e1e;
164
169
  margin-bottom: 1.5em;
165
170
  }
171
+ .interface-complementary-area h3 {
172
+ font-size: 11px;
173
+ text-transform: uppercase;
174
+ font-weight: 500;
175
+ color: #1e1e1e;
176
+ margin-bottom: 1.5em;
177
+ }
166
178
  .interface-complementary-area hr {
167
179
  border-top: none;
168
180
  border-bottom: 1px solid #f0f0f0;
@@ -1311,55 +1323,9 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
1311
1323
  .edit-post-preferences-modal .components-modal__content::before {
1312
1324
  content: none;
1313
1325
  }
1314
- }
1315
- .edit-post-preferences-modal .components-navigation {
1316
- background-color: #fff;
1317
- padding: 0;
1318
- max-height: 100%;
1319
- overflow-y: auto;
1320
- }
1321
- .edit-post-preferences-modal .components-navigation > * {
1322
- padding: 24px 32px;
1323
- }
1324
- .edit-post-preferences-modal .components-navigation .components-navigation__menu {
1325
- margin: 0;
1326
- color: #1e1e1e;
1327
- }
1328
- .edit-post-preferences-modal .components-navigation .components-navigation__menu .components-navigation__item {
1329
- color: #1e1e1e;
1330
- }
1331
- .edit-post-preferences-modal .components-navigation .components-navigation__menu .components-navigation__item > button {
1332
- color: inherit;
1333
- padding: 3px 16px;
1334
- height: 48px;
1335
- margin: 0 -16px;
1336
- width: calc(32px + 100%);
1337
- }
1338
- .edit-post-preferences-modal .components-navigation .components-navigation__menu .components-navigation__item > button:focus {
1339
- background: #f0f0f0;
1340
- font-weight: 500;
1341
- }
1342
- .edit-post-preferences-modal .components-navigation .components-navigation__menu .components-navigation__item > button:hover {
1343
- color: var(--wp-admin-theme-color);
1344
- }
1345
- .edit-post-preferences-modal .components-navigation .components-navigation__menu .components-navigation__item .components-toggle-control__label {
1346
- color: inherit;
1347
- }
1348
- .edit-post-preferences-modal .components-navigation .components-navigation__menu .components-navigation__menu-title-heading {
1349
- color: inherit;
1350
- border-bottom: 1px solid #ddd;
1351
- padding-right: 0;
1352
- padding-left: 0;
1353
- }
1354
- .edit-post-preferences-modal .components-navigation .components-navigation__menu .components-navigation__back-button {
1355
- color: inherit;
1356
- padding-right: 0;
1357
- }
1358
- .edit-post-preferences-modal .components-navigation .components-navigation__menu .components-navigation__back-button:hover {
1359
- color: var(--wp-admin-theme-color);
1360
- }
1361
- .edit-post-preferences-modal .components-navigation .components-navigation__menu .edit-post-preferences-modal__custom-fields-confirmation-button {
1362
- width: auto;
1326
+ .edit-post-preferences-modal .components-navigator-provider {
1327
+ height: 100%;
1328
+ }
1363
1329
  }
1364
1330
  .edit-post-preferences-modal .edit-post-preferences__tabs .components-tab-panel__tabs {
1365
1331
  position: absolute;
@@ -1392,6 +1358,7 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
1392
1358
  .edit-post-preferences-modal__section-title {
1393
1359
  font-size: 0.9rem;
1394
1360
  font-weight: 600;
1361
+ margin-top: 0;
1395
1362
  }
1396
1363
  .edit-post-preferences-modal__option .components-base-control .components-base-control__field {
1397
1364
  align-items: center;
@@ -1685,8 +1652,9 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
1685
1652
  }
1686
1653
 
1687
1654
  h2.edit-post-template-summary__title {
1688
- margin: 0;
1689
1655
  line-height: 24px;
1656
+ margin: 0 0 4px;
1657
+ font-weight: 500;
1690
1658
  }
1691
1659
 
1692
1660
  .edit-post-text-editor {
@@ -1774,10 +1742,13 @@ h2.edit-post-template-summary__title {
1774
1742
  padding: 6px;
1775
1743
  }
1776
1744
 
1745
+ .edit-post-visual-editor__post-title-wrapper {
1746
+ margin-top: 4rem;
1747
+ margin-bottom: var(--wp--style--block-gap);
1748
+ }
1777
1749
  .edit-post-visual-editor__post-title-wrapper .editor-post-title {
1778
1750
  margin-right: auto;
1779
1751
  margin-left: auto;
1780
- margin-bottom: var(--wp--style--block-gap, 0);
1781
1752
  }
1782
1753
 
1783
1754
  .edit-post-visual-editor__exit-template-mode {
@@ -1805,6 +1776,12 @@ h2.edit-post-template-summary__title {
1805
1776
  background: #00a0d2;
1806
1777
  margin: 0 0 16px;
1807
1778
  }
1779
+ .edit-post-welcome-guide__image > img {
1780
+ display: block;
1781
+ max-width: 100%;
1782
+ -o-object-fit: cover;
1783
+ object-fit: cover;
1784
+ }
1808
1785
  .edit-post-welcome-guide__heading {
1809
1786
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
1810
1787
  font-size: 24px;
@@ -122,6 +122,12 @@
122
122
  }
123
123
  }
124
124
 
125
+ @media (min-width: 782px) {
126
+ .components-panel__header + .interface-complementary-area-header {
127
+ margin-top: 0;
128
+ }
129
+ }
130
+
125
131
  .interface-complementary-area {
126
132
  background: #fff;
127
133
  color: #1e1e1e;
@@ -157,12 +163,18 @@
157
163
  .interface-complementary-area p {
158
164
  margin-top: 0;
159
165
  }
160
- .interface-complementary-area h2,
161
- .interface-complementary-area h3 {
166
+ .interface-complementary-area h2 {
162
167
  font-size: 13px;
163
168
  color: #1e1e1e;
164
169
  margin-bottom: 1.5em;
165
170
  }
171
+ .interface-complementary-area h3 {
172
+ font-size: 11px;
173
+ text-transform: uppercase;
174
+ font-weight: 500;
175
+ color: #1e1e1e;
176
+ margin-bottom: 1.5em;
177
+ }
166
178
  .interface-complementary-area hr {
167
179
  border-top: none;
168
180
  border-bottom: 1px solid #f0f0f0;
@@ -1311,55 +1323,9 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
1311
1323
  .edit-post-preferences-modal .components-modal__content::before {
1312
1324
  content: none;
1313
1325
  }
1314
- }
1315
- .edit-post-preferences-modal .components-navigation {
1316
- background-color: #fff;
1317
- padding: 0;
1318
- max-height: 100%;
1319
- overflow-y: auto;
1320
- }
1321
- .edit-post-preferences-modal .components-navigation > * {
1322
- padding: 24px 32px;
1323
- }
1324
- .edit-post-preferences-modal .components-navigation .components-navigation__menu {
1325
- margin: 0;
1326
- color: #1e1e1e;
1327
- }
1328
- .edit-post-preferences-modal .components-navigation .components-navigation__menu .components-navigation__item {
1329
- color: #1e1e1e;
1330
- }
1331
- .edit-post-preferences-modal .components-navigation .components-navigation__menu .components-navigation__item > button {
1332
- color: inherit;
1333
- padding: 3px 16px;
1334
- height: 48px;
1335
- margin: 0 -16px;
1336
- width: calc(32px + 100%);
1337
- }
1338
- .edit-post-preferences-modal .components-navigation .components-navigation__menu .components-navigation__item > button:focus {
1339
- background: #f0f0f0;
1340
- font-weight: 500;
1341
- }
1342
- .edit-post-preferences-modal .components-navigation .components-navigation__menu .components-navigation__item > button:hover {
1343
- color: var(--wp-admin-theme-color);
1344
- }
1345
- .edit-post-preferences-modal .components-navigation .components-navigation__menu .components-navigation__item .components-toggle-control__label {
1346
- color: inherit;
1347
- }
1348
- .edit-post-preferences-modal .components-navigation .components-navigation__menu .components-navigation__menu-title-heading {
1349
- color: inherit;
1350
- border-bottom: 1px solid #ddd;
1351
- padding-left: 0;
1352
- padding-right: 0;
1353
- }
1354
- .edit-post-preferences-modal .components-navigation .components-navigation__menu .components-navigation__back-button {
1355
- color: inherit;
1356
- padding-left: 0;
1357
- }
1358
- .edit-post-preferences-modal .components-navigation .components-navigation__menu .components-navigation__back-button:hover {
1359
- color: var(--wp-admin-theme-color);
1360
- }
1361
- .edit-post-preferences-modal .components-navigation .components-navigation__menu .edit-post-preferences-modal__custom-fields-confirmation-button {
1362
- width: auto;
1326
+ .edit-post-preferences-modal .components-navigator-provider {
1327
+ height: 100%;
1328
+ }
1363
1329
  }
1364
1330
  .edit-post-preferences-modal .edit-post-preferences__tabs .components-tab-panel__tabs {
1365
1331
  position: absolute;
@@ -1392,6 +1358,7 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
1392
1358
  .edit-post-preferences-modal__section-title {
1393
1359
  font-size: 0.9rem;
1394
1360
  font-weight: 600;
1361
+ margin-top: 0;
1395
1362
  }
1396
1363
  .edit-post-preferences-modal__option .components-base-control .components-base-control__field {
1397
1364
  align-items: center;
@@ -1689,8 +1656,9 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
1689
1656
  }
1690
1657
 
1691
1658
  h2.edit-post-template-summary__title {
1692
- margin: 0;
1693
1659
  line-height: 24px;
1660
+ margin: 0 0 4px;
1661
+ font-weight: 500;
1694
1662
  }
1695
1663
 
1696
1664
  .edit-post-text-editor {
@@ -1778,10 +1746,13 @@ h2.edit-post-template-summary__title {
1778
1746
  padding: 6px;
1779
1747
  }
1780
1748
 
1749
+ .edit-post-visual-editor__post-title-wrapper {
1750
+ margin-top: 4rem;
1751
+ margin-bottom: var(--wp--style--block-gap);
1752
+ }
1781
1753
  .edit-post-visual-editor__post-title-wrapper .editor-post-title {
1782
1754
  margin-left: auto;
1783
1755
  margin-right: auto;
1784
- margin-bottom: var(--wp--style--block-gap, 0);
1785
1756
  }
1786
1757
 
1787
1758
  .edit-post-visual-editor__exit-template-mode {
@@ -1809,6 +1780,12 @@ h2.edit-post-template-summary__title {
1809
1780
  background: #00a0d2;
1810
1781
  margin: 0 0 16px;
1811
1782
  }
1783
+ .edit-post-welcome-guide__image > img {
1784
+ display: block;
1785
+ max-width: 100%;
1786
+ -o-object-fit: cover;
1787
+ object-fit: cover;
1788
+ }
1812
1789
  .edit-post-welcome-guide__heading {
1813
1790
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
1814
1791
  font-size: 24px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/edit-post",
3
- "version": "5.0.2",
3
+ "version": "5.0.6",
4
4
  "description": "Edit Post module for WordPress.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -27,31 +27,31 @@
27
27
  "react-native": "src/index",
28
28
  "dependencies": {
29
29
  "@babel/runtime": "^7.13.10",
30
- "@wordpress/a11y": "^3.2.2",
31
- "@wordpress/api-fetch": "^5.2.2",
32
- "@wordpress/block-editor": "^7.0.2",
33
- "@wordpress/block-library": "^6.0.0",
34
- "@wordpress/blocks": "^11.1.0",
35
- "@wordpress/components": "^17.0.0",
36
- "@wordpress/compose": "^5.0.2",
37
- "@wordpress/core-data": "^4.0.2",
38
- "@wordpress/data": "^6.1.0",
39
- "@wordpress/data-controls": "^2.2.3",
40
- "@wordpress/editor": "^11.0.2",
41
- "@wordpress/element": "^4.0.1",
42
- "@wordpress/hooks": "^3.2.0",
43
- "@wordpress/i18n": "^4.2.2",
44
- "@wordpress/icons": "^5.0.2",
45
- "@wordpress/interface": "^4.1.0",
46
- "@wordpress/keyboard-shortcuts": "^3.0.2",
47
- "@wordpress/keycodes": "^3.2.2",
48
- "@wordpress/media-utils": "^3.0.1",
49
- "@wordpress/notices": "^3.2.3",
50
- "@wordpress/plugins": "^4.0.2",
51
- "@wordpress/primitives": "^3.0.1",
52
- "@wordpress/url": "^3.2.2",
53
- "@wordpress/viewport": "^4.0.2",
54
- "@wordpress/warning": "^2.2.1",
30
+ "@wordpress/a11y": "^3.2.3",
31
+ "@wordpress/api-fetch": "^5.2.5",
32
+ "@wordpress/block-editor": "^8.0.1",
33
+ "@wordpress/block-library": "^6.0.4",
34
+ "@wordpress/blocks": "^11.1.3",
35
+ "@wordpress/components": "^19.0.1",
36
+ "@wordpress/compose": "^5.0.5",
37
+ "@wordpress/core-data": "^4.0.5",
38
+ "@wordpress/data": "^6.1.3",
39
+ "@wordpress/data-controls": "^2.2.6",
40
+ "@wordpress/editor": "^12.0.3",
41
+ "@wordpress/element": "^4.0.3",
42
+ "@wordpress/hooks": "^3.2.1",
43
+ "@wordpress/i18n": "^4.2.3",
44
+ "@wordpress/icons": "^6.1.0",
45
+ "@wordpress/interface": "^4.1.3",
46
+ "@wordpress/keyboard-shortcuts": "^3.0.5",
47
+ "@wordpress/keycodes": "^3.2.3",
48
+ "@wordpress/media-utils": "^3.0.4",
49
+ "@wordpress/notices": "^3.2.6",
50
+ "@wordpress/plugins": "^4.0.5",
51
+ "@wordpress/primitives": "^3.0.3",
52
+ "@wordpress/url": "^3.3.0",
53
+ "@wordpress/viewport": "^4.0.5",
54
+ "@wordpress/warning": "^2.2.2",
55
55
  "classnames": "^2.3.1",
56
56
  "lodash": "^4.17.21",
57
57
  "memize": "^1.1.0",
@@ -61,5 +61,5 @@
61
61
  "publishConfig": {
62
62
  "access": "public"
63
63
  },
64
- "gitHead": "98c42a7187f788fe3e023f04df7f5dcbdae4e4e7"
64
+ "gitHead": "f89b63995376fe6efe920d858b48268b510920e1"
65
65
  }
@@ -7,12 +7,17 @@ import { get } from 'lodash';
7
7
  * WordPress dependencies
8
8
  */
9
9
  import { useSelect } from '@wordpress/data';
10
- import { Button, Icon } from '@wordpress/components';
10
+ import {
11
+ Button,
12
+ Icon,
13
+ __unstableMotion as motion,
14
+ } from '@wordpress/components';
11
15
  import { __ } from '@wordpress/i18n';
12
16
  import { addQueryArgs } from '@wordpress/url';
13
17
  import { wordpress } from '@wordpress/icons';
14
18
  import { store as editorStore } from '@wordpress/editor';
15
19
  import { store as coreStore } from '@wordpress/core-data';
20
+ import { useReducedMotion } from '@wordpress/compose';
16
21
 
17
22
  /**
18
23
  * Internal dependencies
@@ -44,15 +49,26 @@ function FullscreenModeClose( { showTooltip, icon, href } ) {
44
49
  []
45
50
  );
46
51
 
52
+ const disableMotion = useReducedMotion();
53
+
47
54
  if ( ! isActive || ! postType ) {
48
55
  return null;
49
56
  }
50
57
 
51
58
  let buttonIcon = <Icon size="36px" icon={ wordpress } />;
52
59
 
60
+ const effect = {
61
+ expand: {
62
+ scale: 1.7,
63
+ borderRadius: 0,
64
+ transition: { type: 'tween', duration: '0.2' },
65
+ },
66
+ };
67
+
53
68
  if ( siteIconUrl ) {
54
69
  buttonIcon = (
55
- <img
70
+ <motion.img
71
+ variants={ ! disableMotion && effect }
56
72
  alt={ __( 'Site Icon' ) }
57
73
  className="edit-post-fullscreen-mode-close_site-icon"
58
74
  src={ siteIconUrl }
@@ -70,19 +86,25 @@ function FullscreenModeClose( { showTooltip, icon, href } ) {
70
86
  }
71
87
 
72
88
  return (
73
- <Button
74
- className="edit-post-fullscreen-mode-close has-icon"
75
- href={
76
- href ??
77
- addQueryArgs( 'edit.php', {
78
- post_type: postType.slug,
79
- } )
80
- }
81
- label={ get( postType, [ 'labels', 'view_items' ], __( 'Back' ) ) }
82
- showTooltip={ showTooltip }
83
- >
84
- { buttonIcon }
85
- </Button>
89
+ <motion.div whileHover="expand">
90
+ <Button
91
+ className="edit-post-fullscreen-mode-close has-icon"
92
+ href={
93
+ href ??
94
+ addQueryArgs( 'edit.php', {
95
+ post_type: postType.slug,
96
+ } )
97
+ }
98
+ label={ get(
99
+ postType,
100
+ [ 'labels', 'view_items' ],
101
+ __( 'Back' )
102
+ ) }
103
+ showTooltip={ showTooltip }
104
+ >
105
+ { buttonIcon }
106
+ </Button>
107
+ </motion.div>
86
108
  );
87
109
  }
88
110
 
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * External dependencies
3
3
  */
4
- import { ScrollView, View } from 'react-native';
4
+ import { Platform, ScrollView, View } from 'react-native';
5
5
 
6
6
  /**
7
7
  * WordPress dependencies
@@ -43,7 +43,13 @@ function HeaderToolbar( {
43
43
  } ) {
44
44
  const scrollViewRef = useRef( null );
45
45
  const scrollToStart = () => {
46
- scrollViewRef.current.scrollTo( { x: 0 } );
46
+ // scrollview doesn't seem to automatically adjust to RTL on Android so, scroll to end when Android
47
+ const isAndroid = Platform.OS === 'android';
48
+ if ( isAndroid && isRTL ) {
49
+ scrollViewRef.current.scrollToEnd();
50
+ } else {
51
+ scrollViewRef.current.scrollTo( { x: 0 } );
52
+ }
47
53
  };
48
54
  const renderHistoryButtons = () => {
49
55
  const buttons = [
@@ -28,7 +28,9 @@ function TemplateTitle() {
28
28
  return {
29
29
  template: _isEditing ? getEditedPostTemplate() : null,
30
30
  isEditing: _isEditing,
31
- title: getEditedPostAttribute( 'title' ),
31
+ title: getEditedPostAttribute( 'title' )
32
+ ? getEditedPostAttribute( 'title' )
33
+ : __( 'Untitled' ),
32
34
  };
33
35
  }, [] );
34
36
 
@@ -10,19 +10,22 @@ import { store as keyboardShortcutsStore } from '@wordpress/keyboard-shortcuts';
10
10
  import Shortcut from './shortcut';
11
11
 
12
12
  function DynamicShortcut( { name } ) {
13
- const { keyCombination, description, aliases } = useSelect( ( select ) => {
14
- const {
15
- getShortcutKeyCombination,
16
- getShortcutDescription,
17
- getShortcutAliases,
18
- } = select( keyboardShortcutsStore );
13
+ const { keyCombination, description, aliases } = useSelect(
14
+ ( select ) => {
15
+ const {
16
+ getShortcutKeyCombination,
17
+ getShortcutDescription,
18
+ getShortcutAliases,
19
+ } = select( keyboardShortcutsStore );
19
20
 
20
- return {
21
- keyCombination: getShortcutKeyCombination( name ),
22
- aliases: getShortcutAliases( name ),
23
- description: getShortcutDescription( name ),
24
- };
25
- } );
21
+ return {
22
+ keyCombination: getShortcutKeyCombination( name ),
23
+ aliases: getShortcutAliases( name ),
24
+ description: getShortcutDescription( name ),
25
+ };
26
+ },
27
+ [ name ]
28
+ );
26
29
 
27
30
  if ( ! keyCombination ) {
28
31
  return null;
@@ -91,9 +91,7 @@ const ShortcutCategorySection = ( {
91
91
  };
92
92
 
93
93
  export function KeyboardShortcutHelpModal( { isModalActive, toggleModal } ) {
94
- useShortcut( 'core/edit-post/keyboard-shortcuts', toggleModal, {
95
- bindGlobal: true,
96
- } );
94
+ useShortcut( 'core/edit-post/keyboard-shortcuts', toggleModal );
97
95
 
98
96
  if ( ! isModalActive ) {
99
97
  return null;
@@ -131,44 +131,31 @@ function KeyboardShortcuts() {
131
131
  );
132
132
  },
133
133
  {
134
- bindGlobal: true,
135
134
  isDisabled: isModeToggleDisabled,
136
135
  }
137
136
  );
138
137
 
139
- useShortcut(
140
- 'core/edit-post/toggle-fullscreen',
141
- () => {
142
- toggleFeature( 'fullscreenMode' );
143
- },
144
- {
145
- bindGlobal: true,
138
+ useShortcut( 'core/edit-post/toggle-fullscreen', () => {
139
+ toggleFeature( 'fullscreenMode' );
140
+ } );
141
+
142
+ useShortcut( 'core/edit-post/toggle-sidebar', ( event ) => {
143
+ // This shortcut has no known clashes, but use preventDefault to prevent any
144
+ // obscure shortcuts from triggering.
145
+ event.preventDefault();
146
+
147
+ if ( isEditorSidebarOpened() ) {
148
+ closeGeneralSidebar();
149
+ } else {
150
+ const sidebarToOpen = getBlockSelectionStart()
151
+ ? 'edit-post/block'
152
+ : 'edit-post/document';
153
+ openGeneralSidebar( sidebarToOpen );
146
154
  }
147
- );
155
+ } );
148
156
 
149
- useShortcut(
150
- 'core/edit-post/toggle-sidebar',
151
- ( event ) => {
152
- // This shortcut has no known clashes, but use preventDefault to prevent any
153
- // obscure shortcuts from triggering.
154
- event.preventDefault();
155
-
156
- if ( isEditorSidebarOpened() ) {
157
- closeGeneralSidebar();
158
- } else {
159
- const sidebarToOpen = getBlockSelectionStart()
160
- ? 'edit-post/block'
161
- : 'edit-post/document';
162
- openGeneralSidebar( sidebarToOpen );
163
- }
164
- },
165
- { bindGlobal: true }
166
- );
167
-
168
- useShortcut(
169
- 'core/edit-post/toggle-list-view',
170
- () => setIsListViewOpened( ! isListViewOpened() ),
171
- { bindGlobal: true }
157
+ useShortcut( 'core/edit-post/toggle-list-view', () =>
158
+ setIsListViewOpened( ! isListViewOpened() )
172
159
  );
173
160
 
174
161
  return null;
@@ -15,7 +15,7 @@ import {
15
15
  EditorSnackbars,
16
16
  store as editorStore,
17
17
  } from '@wordpress/editor';
18
- import { AsyncModeProvider, useSelect, useDispatch } from '@wordpress/data';
18
+ import { useSelect, useDispatch } from '@wordpress/data';
19
19
  import { BlockBreadcrumb } from '@wordpress/block-editor';
20
20
  import { Button, ScrollLock, Popover } from '@wordpress/components';
21
21
  import { useViewportMatch } from '@wordpress/compose';
@@ -173,11 +173,7 @@ function Layout( { styles } ) {
173
173
  return <InserterSidebar />;
174
174
  }
175
175
  if ( mode === 'visual' && isListViewOpened ) {
176
- return (
177
- <AsyncModeProvider value="true">
178
- <ListViewSidebar />
179
- </AsyncModeProvider>
180
- );
176
+ return <ListViewSidebar />;
181
177
  }
182
178
  return null;
183
179
  };
@@ -91,7 +91,13 @@ class Layout extends Component {
91
91
  }
92
92
 
93
93
  renderHTML() {
94
- return <HTMLTextInput parentHeight={ this.state.rootViewHeight } />;
94
+ const { globalStyles } = this.props;
95
+ return (
96
+ <HTMLTextInput
97
+ parentHeight={ this.state.rootViewHeight }
98
+ style={ globalStyles }
99
+ />
100
+ );
95
101
  }
96
102
 
97
103
  renderVisual() {
@@ -19,22 +19,15 @@ import { store as editPostStore } from '../../store';
19
19
 
20
20
  export default function MetaBoxes( { location } ) {
21
21
  const registry = useRegistry();
22
- const {
23
- metaBoxes,
24
- isVisible,
25
- areMetaBoxesInitialized,
26
- isEditorReady,
27
- } = useSelect(
22
+ const { metaBoxes, areMetaBoxesInitialized, isEditorReady } = useSelect(
28
23
  ( select ) => {
29
24
  const { __unstableIsEditorReady } = select( editorStore );
30
25
  const {
31
- isMetaBoxLocationVisible,
32
26
  getMetaBoxesPerLocation,
33
27
  areMetaBoxesInitialized: _areMetaBoxesInitialized,
34
28
  } = select( editPostStore );
35
29
  return {
36
30
  metaBoxes: getMetaBoxesPerLocation( location ),
37
- isVisible: isMetaBoxLocationVisible( location ),
38
31
  areMetaBoxesInitialized: _areMetaBoxesInitialized(),
39
32
  isEditorReady: __unstableIsEditorReady(),
40
33
  };
@@ -60,7 +53,7 @@ export default function MetaBoxes( { location } ) {
60
53
  { map( metaBoxes, ( { id } ) => (
61
54
  <MetaBoxVisibility key={ id } id={ id } />
62
55
  ) ) }
63
- { isVisible && <MetaBoxesArea location={ location } /> }
56
+ <MetaBoxesArea location={ location } />
64
57
  </>
65
58
  );
66
59
  }