@wordpress/edit-post 6.19.0 → 7.1.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 +8 -0
- package/build/components/block-manager/index.js +3 -10
- package/build/components/block-manager/index.js.map +1 -1
- package/build/components/header/index.js +2 -2
- package/build/components/header/index.js.map +1 -1
- package/build/components/layout/index.js +2 -1
- package/build/components/layout/index.js.map +1 -1
- package/build/components/preferences-modal/meta-boxes-section.js +1 -1
- package/build/components/preferences-modal/meta-boxes-section.js.map +1 -1
- package/build/components/secondary-sidebar/list-view-outline.js +4 -4
- package/build/components/secondary-sidebar/list-view-outline.js.map +1 -1
- package/build/components/sidebar/post-status/index.js +1 -1
- package/build/components/sidebar/post-status/index.js.map +1 -1
- package/build/components/sidebar/post-template/index.js +2 -4
- package/build/components/sidebar/post-template/index.js.map +1 -1
- package/build/components/sidebar/settings-sidebar/index.js +7 -7
- package/build/components/sidebar/settings-sidebar/index.js.map +1 -1
- package/build/components/visual-editor/index.js +16 -10
- package/build/components/visual-editor/index.js.map +1 -1
- package/build/editor.native.js +8 -2
- package/build/editor.native.js.map +1 -1
- package/build/hooks/validate-multiple-use/index.js +1 -7
- package/build/hooks/validate-multiple-use/index.js.map +1 -1
- package/build/index.js +5 -0
- package/build/index.js.map +1 -1
- package/build/plugins/index.js +3 -1
- package/build/plugins/index.js.map +1 -1
- package/build/plugins/navigation-list-view-menu-item.js +48 -0
- package/build/plugins/navigation-list-view-menu-item.js.map +1 -0
- package/build-module/components/block-manager/index.js +3 -9
- package/build-module/components/block-manager/index.js.map +1 -1
- package/build-module/components/header/index.js +2 -2
- package/build-module/components/header/index.js.map +1 -1
- package/build-module/components/layout/index.js +2 -1
- package/build-module/components/layout/index.js.map +1 -1
- package/build-module/components/preferences-modal/meta-boxes-section.js +2 -2
- package/build-module/components/preferences-modal/meta-boxes-section.js.map +1 -1
- package/build-module/components/secondary-sidebar/list-view-outline.js +4 -4
- package/build-module/components/secondary-sidebar/list-view-outline.js.map +1 -1
- package/build-module/components/sidebar/post-status/index.js +1 -1
- package/build-module/components/sidebar/post-status/index.js.map +1 -1
- package/build-module/components/sidebar/post-template/index.js +2 -4
- package/build-module/components/sidebar/post-template/index.js.map +1 -1
- package/build-module/components/sidebar/settings-sidebar/index.js +5 -5
- package/build-module/components/sidebar/settings-sidebar/index.js.map +1 -1
- package/build-module/components/visual-editor/index.js +16 -10
- package/build-module/components/visual-editor/index.js.map +1 -1
- package/build-module/editor.native.js +7 -2
- package/build-module/editor.native.js.map +1 -1
- package/build-module/hooks/validate-multiple-use/index.js +1 -6
- package/build-module/hooks/validate-multiple-use/index.js.map +1 -1
- package/build-module/index.js +4 -0
- package/build-module/index.js.map +1 -1
- package/build-module/plugins/index.js +2 -1
- package/build-module/plugins/index.js.map +1 -1
- package/build-module/plugins/navigation-list-view-menu-item.js +40 -0
- package/build-module/plugins/navigation-list-view-menu-item.js.map +1 -0
- package/build-style/classic-rtl.css +17 -3
- package/build-style/classic.css +17 -3
- package/build-style/style-rtl.css +70 -46
- package/build-style/style.css +70 -46
- package/package.json +30 -29
- package/src/components/block-manager/index.js +6 -10
- package/src/components/editor-initialization/test/listener-hooks.js +1 -0
- package/src/components/header/fullscreen-mode-close/style.scss +1 -1
- package/src/components/header/index.js +3 -3
- package/src/components/layout/index.js +3 -1
- package/src/components/preferences-modal/meta-boxes-section.js +2 -3
- package/src/components/preferences-modal/options/test/__snapshots__/enable-custom-fields.js.snap +56 -4
- package/src/components/preferences-modal/options/test/enable-custom-fields.js +2 -0
- package/src/components/preferences-modal/test/__snapshots__/index.js.snap +39 -14
- package/src/components/preferences-modal/test/__snapshots__/meta-boxes-section.js.snap +51 -6
- package/src/components/secondary-sidebar/list-view-outline.js +12 -12
- package/src/components/secondary-sidebar/style.scss +11 -12
- package/src/components/sidebar/post-schedule/style.scss +2 -1
- package/src/components/sidebar/post-status/index.js +1 -1
- package/src/components/sidebar/post-template/index.js +8 -3
- package/src/components/sidebar/post-template/style.scss +2 -0
- package/src/components/sidebar/post-url/style.scss +3 -0
- package/src/components/sidebar/post-visibility/style.scss +2 -0
- package/src/components/sidebar/settings-header/style.scss +47 -34
- package/src/components/sidebar/settings-sidebar/index.js +5 -5
- package/src/components/visual-editor/index.js +26 -3
- package/src/components/visual-editor/test/index.native.js +20 -9
- package/src/editor.native.js +14 -11
- package/src/hooks/validate-multiple-use/index.js +1 -7
- package/src/index.js +2 -0
- package/src/plugins/index.js +2 -0
- package/src/plugins/navigation-list-view-menu-item.js +56 -0
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts a hex value into the rgb equivalent.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} hex - the hexadecimal value to convert
|
|
5
|
+
* @return {string} comma separated rgb values
|
|
6
|
+
*/
|
|
1
7
|
/**
|
|
2
8
|
* Colors
|
|
3
9
|
*/
|
|
@@ -11,6 +17,12 @@
|
|
|
11
17
|
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
|
12
18
|
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
|
13
19
|
*/
|
|
20
|
+
/**
|
|
21
|
+
* Converts a hex value into the rgb equivalent.
|
|
22
|
+
*
|
|
23
|
+
* @param {string} hex - the hexadecimal value to convert
|
|
24
|
+
* @return {string} comma separated rgb values
|
|
25
|
+
*/
|
|
14
26
|
/**
|
|
15
27
|
* Colors
|
|
16
28
|
*/
|
|
@@ -46,15 +58,15 @@
|
|
|
46
58
|
* @param {string} hex - the hexadecimal value to convert
|
|
47
59
|
* @return {string} comma separated rgb values
|
|
48
60
|
*/
|
|
49
|
-
/**
|
|
50
|
-
* Breakpoint mixins
|
|
51
|
-
*/
|
|
52
61
|
/**
|
|
53
62
|
* Long content fade mixin
|
|
54
63
|
*
|
|
55
64
|
* Creates a fading overlay to signify that the content is longer
|
|
56
65
|
* than the space allows.
|
|
57
66
|
*/
|
|
67
|
+
/**
|
|
68
|
+
* Breakpoint mixins
|
|
69
|
+
*/
|
|
58
70
|
/**
|
|
59
71
|
* Focus styles.
|
|
60
72
|
*/
|
|
@@ -82,6 +94,8 @@
|
|
|
82
94
|
--wp-admin-theme-color-darker-20: #005a87;
|
|
83
95
|
--wp-admin-theme-color-darker-20--rgb: 0, 90, 135;
|
|
84
96
|
--wp-admin-border-width-focus: 2px;
|
|
97
|
+
--wp-block-synced-color: #7a00df;
|
|
98
|
+
--wp-block-synced-color--rgb: 122, 0, 223;
|
|
85
99
|
}
|
|
86
100
|
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
|
87
101
|
:root {
|
|
@@ -306,9 +320,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
306
320
|
overflow: auto;
|
|
307
321
|
z-index: 20;
|
|
308
322
|
}
|
|
309
|
-
.interface-interface-skeleton__content .interface-navigable-region__stacker {
|
|
310
|
-
flex-grow: 1;
|
|
311
|
-
}
|
|
312
323
|
|
|
313
324
|
.interface-interface-skeleton__secondary-sidebar,
|
|
314
325
|
.interface-interface-skeleton__sidebar {
|
|
@@ -400,12 +411,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
400
411
|
bottom: 0;
|
|
401
412
|
}
|
|
402
413
|
|
|
403
|
-
@media (min-width: 782px) {
|
|
404
|
-
.interface-interface-skeleton.has-footer .interface-interface-skeleton__drawer {
|
|
405
|
-
height: calc(100% - 25px);
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
|
|
409
414
|
.interface-more-menu-dropdown {
|
|
410
415
|
margin-right: -4px;
|
|
411
416
|
}
|
|
@@ -798,7 +803,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
798
803
|
position: absolute;
|
|
799
804
|
top: 9px;
|
|
800
805
|
left: 9px;
|
|
801
|
-
bottom:
|
|
806
|
+
bottom: 10px;
|
|
802
807
|
right: 9px;
|
|
803
808
|
border-radius: 4px;
|
|
804
809
|
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) #1e1e1e;
|
|
@@ -829,7 +834,8 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
829
834
|
width: 36px;
|
|
830
835
|
height: 36px;
|
|
831
836
|
border-radius: 2px;
|
|
832
|
-
object-fit: cover;
|
|
837
|
+
-o-object-fit: cover;
|
|
838
|
+
object-fit: cover;
|
|
833
839
|
margin-top: -1px;
|
|
834
840
|
}
|
|
835
841
|
|
|
@@ -1441,18 +1447,16 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|
|
1441
1447
|
}
|
|
1442
1448
|
|
|
1443
1449
|
.edit-post-editor__list-view-overview {
|
|
1444
|
-
|
|
1445
|
-
|
|
1450
|
+
display: flex;
|
|
1451
|
+
flex-direction: column;
|
|
1452
|
+
gap: 8px;
|
|
1453
|
+
border-bottom: 1px solid #ddd;
|
|
1446
1454
|
padding: 16px;
|
|
1447
|
-
height: 72px;
|
|
1448
1455
|
}
|
|
1449
1456
|
.edit-post-editor__list-view-overview > div > span:first-child {
|
|
1450
1457
|
width: 90px;
|
|
1451
1458
|
display: inline-block;
|
|
1452
1459
|
}
|
|
1453
|
-
.edit-post-editor__list-view-overview > div {
|
|
1454
|
-
padding: 0 0 8px;
|
|
1455
|
-
}
|
|
1456
1460
|
.edit-post-editor__list-view-overview > div > span {
|
|
1457
1461
|
font-size: 12px;
|
|
1458
1462
|
line-height: 1.4;
|
|
@@ -1521,12 +1525,12 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|
|
1521
1525
|
display: block;
|
|
1522
1526
|
width: 45%;
|
|
1523
1527
|
flex-shrink: 0;
|
|
1528
|
+
padding: 6px 0;
|
|
1524
1529
|
}
|
|
1525
1530
|
|
|
1526
1531
|
.components-button.edit-post-post-schedule__toggle {
|
|
1527
1532
|
text-align: right;
|
|
1528
1533
|
white-space: normal;
|
|
1529
|
-
height: auto;
|
|
1530
1534
|
}
|
|
1531
1535
|
.components-button.edit-post-post-schedule__toggle span {
|
|
1532
1536
|
width: 0;
|
|
@@ -1555,6 +1559,7 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|
|
1555
1559
|
.edit-post-post-template span {
|
|
1556
1560
|
display: block;
|
|
1557
1561
|
width: 45%;
|
|
1562
|
+
padding: 6px 0;
|
|
1558
1563
|
}
|
|
1559
1564
|
|
|
1560
1565
|
.edit-post-post-template__dropdown {
|
|
@@ -1586,11 +1591,13 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|
|
1586
1591
|
.edit-post-post-url {
|
|
1587
1592
|
width: 100%;
|
|
1588
1593
|
justify-content: flex-start;
|
|
1594
|
+
align-items: flex-start;
|
|
1589
1595
|
}
|
|
1590
1596
|
.edit-post-post-url span {
|
|
1591
1597
|
display: block;
|
|
1592
1598
|
width: 45%;
|
|
1593
1599
|
flex-shrink: 0;
|
|
1600
|
+
padding: 6px 0;
|
|
1594
1601
|
}
|
|
1595
1602
|
|
|
1596
1603
|
.components-button.edit-post-post-url__toggle {
|
|
@@ -1612,6 +1619,7 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|
|
1612
1619
|
.edit-post-post-visibility span {
|
|
1613
1620
|
display: block;
|
|
1614
1621
|
width: 45%;
|
|
1622
|
+
padding: 6px 0;
|
|
1615
1623
|
}
|
|
1616
1624
|
|
|
1617
1625
|
.edit-post-post-visibility__dialog .editor-post-visibility {
|
|
@@ -1620,47 +1628,62 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|
|
1620
1628
|
}
|
|
1621
1629
|
|
|
1622
1630
|
.components-button.edit-post-sidebar__panel-tab {
|
|
1631
|
+
position: relative;
|
|
1623
1632
|
border-radius: 0;
|
|
1624
1633
|
height: 48px;
|
|
1625
1634
|
background: transparent;
|
|
1626
1635
|
border: none;
|
|
1627
1636
|
box-shadow: none;
|
|
1628
1637
|
cursor: pointer;
|
|
1629
|
-
|
|
1630
|
-
padding: 3px 15px;
|
|
1638
|
+
padding: 3px 16px;
|
|
1631
1639
|
margin-right: 0;
|
|
1632
1640
|
font-weight: 500;
|
|
1633
1641
|
}
|
|
1634
|
-
.components-button.edit-post-sidebar__panel-tab
|
|
1635
|
-
content: attr(data-label);
|
|
1636
|
-
display: block;
|
|
1637
|
-
font-weight: 600;
|
|
1638
|
-
height: 0;
|
|
1639
|
-
overflow: hidden;
|
|
1640
|
-
speak: none;
|
|
1641
|
-
visibility: hidden;
|
|
1642
|
-
}
|
|
1643
|
-
.components-button.edit-post-sidebar__panel-tab.is-active {
|
|
1644
|
-
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) transparent, inset 0 -1.5px 0 0 var(--wp-admin-theme-color);
|
|
1642
|
+
.components-button.edit-post-sidebar__panel-tab:focus:not(:disabled) {
|
|
1645
1643
|
position: relative;
|
|
1646
|
-
|
|
1644
|
+
box-shadow: none;
|
|
1647
1645
|
}
|
|
1648
|
-
.components-button.edit-post-sidebar__panel-tab
|
|
1646
|
+
.components-button.edit-post-sidebar__panel-tab::after {
|
|
1649
1647
|
content: "";
|
|
1650
1648
|
position: absolute;
|
|
1651
|
-
top: 0;
|
|
1652
|
-
bottom: 1px;
|
|
1653
1649
|
left: 0;
|
|
1650
|
+
bottom: 0;
|
|
1654
1651
|
right: 0;
|
|
1655
|
-
|
|
1652
|
+
pointer-events: none;
|
|
1653
|
+
background: var(--wp-admin-theme-color);
|
|
1654
|
+
height: calc(0 * var(--wp-admin-border-width-focus));
|
|
1655
|
+
border-radius: 0;
|
|
1656
|
+
transition: all 0.1s linear;
|
|
1656
1657
|
}
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1658
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1659
|
+
.components-button.edit-post-sidebar__panel-tab::after {
|
|
1660
|
+
transition-duration: 0s;
|
|
1661
|
+
transition-delay: 0s;
|
|
1662
|
+
}
|
|
1661
1663
|
}
|
|
1662
|
-
.components-button.edit-post-sidebar__panel-tab.is-active
|
|
1663
|
-
|
|
1664
|
+
.components-button.edit-post-sidebar__panel-tab.is-active::after {
|
|
1665
|
+
height: calc(1 * var(--wp-admin-border-width-focus));
|
|
1666
|
+
}
|
|
1667
|
+
.components-button.edit-post-sidebar__panel-tab::before {
|
|
1668
|
+
content: "";
|
|
1669
|
+
position: absolute;
|
|
1670
|
+
top: 12px;
|
|
1671
|
+
left: 12px;
|
|
1672
|
+
bottom: 12px;
|
|
1673
|
+
right: 12px;
|
|
1674
|
+
pointer-events: none;
|
|
1675
|
+
box-shadow: 0 0 0 0 transparent;
|
|
1676
|
+
border-radius: 2px;
|
|
1677
|
+
transition: all 0.1s linear;
|
|
1678
|
+
}
|
|
1679
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1680
|
+
.components-button.edit-post-sidebar__panel-tab::before {
|
|
1681
|
+
transition-duration: 0s;
|
|
1682
|
+
transition-delay: 0s;
|
|
1683
|
+
}
|
|
1684
|
+
}
|
|
1685
|
+
.components-button.edit-post-sidebar__panel-tab:focus-visible::before {
|
|
1686
|
+
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
1664
1687
|
}
|
|
1665
1688
|
|
|
1666
1689
|
h2.edit-post-template-summary__title {
|
|
@@ -1795,7 +1818,8 @@ h2.edit-post-template-summary__title {
|
|
|
1795
1818
|
.edit-template-welcome-guide__image > img {
|
|
1796
1819
|
display: block;
|
|
1797
1820
|
max-width: 100%;
|
|
1798
|
-
object-fit: cover;
|
|
1821
|
+
-o-object-fit: cover;
|
|
1822
|
+
object-fit: cover;
|
|
1799
1823
|
}
|
|
1800
1824
|
.edit-post-welcome-guide__heading,
|
|
1801
1825
|
.edit-template-welcome-guide__heading {
|
package/build-style/style.css
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts a hex value into the rgb equivalent.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} hex - the hexadecimal value to convert
|
|
5
|
+
* @return {string} comma separated rgb values
|
|
6
|
+
*/
|
|
1
7
|
/**
|
|
2
8
|
* Colors
|
|
3
9
|
*/
|
|
@@ -11,6 +17,12 @@
|
|
|
11
17
|
* Don't add to this sheet unless you're pretty sure the value will be reused in many places.
|
|
12
18
|
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
|
|
13
19
|
*/
|
|
20
|
+
/**
|
|
21
|
+
* Converts a hex value into the rgb equivalent.
|
|
22
|
+
*
|
|
23
|
+
* @param {string} hex - the hexadecimal value to convert
|
|
24
|
+
* @return {string} comma separated rgb values
|
|
25
|
+
*/
|
|
14
26
|
/**
|
|
15
27
|
* Colors
|
|
16
28
|
*/
|
|
@@ -46,15 +58,15 @@
|
|
|
46
58
|
* @param {string} hex - the hexadecimal value to convert
|
|
47
59
|
* @return {string} comma separated rgb values
|
|
48
60
|
*/
|
|
49
|
-
/**
|
|
50
|
-
* Breakpoint mixins
|
|
51
|
-
*/
|
|
52
61
|
/**
|
|
53
62
|
* Long content fade mixin
|
|
54
63
|
*
|
|
55
64
|
* Creates a fading overlay to signify that the content is longer
|
|
56
65
|
* than the space allows.
|
|
57
66
|
*/
|
|
67
|
+
/**
|
|
68
|
+
* Breakpoint mixins
|
|
69
|
+
*/
|
|
58
70
|
/**
|
|
59
71
|
* Focus styles.
|
|
60
72
|
*/
|
|
@@ -82,6 +94,8 @@
|
|
|
82
94
|
--wp-admin-theme-color-darker-20: #005a87;
|
|
83
95
|
--wp-admin-theme-color-darker-20--rgb: 0, 90, 135;
|
|
84
96
|
--wp-admin-border-width-focus: 2px;
|
|
97
|
+
--wp-block-synced-color: #7a00df;
|
|
98
|
+
--wp-block-synced-color--rgb: 122, 0, 223;
|
|
85
99
|
}
|
|
86
100
|
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
|
87
101
|
:root {
|
|
@@ -306,9 +320,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
306
320
|
overflow: auto;
|
|
307
321
|
z-index: 20;
|
|
308
322
|
}
|
|
309
|
-
.interface-interface-skeleton__content .interface-navigable-region__stacker {
|
|
310
|
-
flex-grow: 1;
|
|
311
|
-
}
|
|
312
323
|
|
|
313
324
|
.interface-interface-skeleton__secondary-sidebar,
|
|
314
325
|
.interface-interface-skeleton__sidebar {
|
|
@@ -400,12 +411,6 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
400
411
|
bottom: 0;
|
|
401
412
|
}
|
|
402
413
|
|
|
403
|
-
@media (min-width: 782px) {
|
|
404
|
-
.interface-interface-skeleton.has-footer .interface-interface-skeleton__drawer {
|
|
405
|
-
height: calc(100% - 25px);
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
|
|
409
414
|
.interface-more-menu-dropdown {
|
|
410
415
|
margin-left: -4px;
|
|
411
416
|
}
|
|
@@ -798,7 +803,7 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
798
803
|
position: absolute;
|
|
799
804
|
top: 9px;
|
|
800
805
|
right: 9px;
|
|
801
|
-
bottom:
|
|
806
|
+
bottom: 10px;
|
|
802
807
|
left: 9px;
|
|
803
808
|
border-radius: 4px;
|
|
804
809
|
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) #1e1e1e;
|
|
@@ -829,7 +834,8 @@ body.is-fullscreen-mode .interface-interface-skeleton {
|
|
|
829
834
|
width: 36px;
|
|
830
835
|
height: 36px;
|
|
831
836
|
border-radius: 2px;
|
|
832
|
-
object-fit: cover;
|
|
837
|
+
-o-object-fit: cover;
|
|
838
|
+
object-fit: cover;
|
|
833
839
|
margin-top: -1px;
|
|
834
840
|
}
|
|
835
841
|
|
|
@@ -1441,18 +1447,16 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|
|
1441
1447
|
}
|
|
1442
1448
|
|
|
1443
1449
|
.edit-post-editor__list-view-overview {
|
|
1444
|
-
|
|
1445
|
-
|
|
1450
|
+
display: flex;
|
|
1451
|
+
flex-direction: column;
|
|
1452
|
+
gap: 8px;
|
|
1453
|
+
border-bottom: 1px solid #ddd;
|
|
1446
1454
|
padding: 16px;
|
|
1447
|
-
height: 72px;
|
|
1448
1455
|
}
|
|
1449
1456
|
.edit-post-editor__list-view-overview > div > span:first-child {
|
|
1450
1457
|
width: 90px;
|
|
1451
1458
|
display: inline-block;
|
|
1452
1459
|
}
|
|
1453
|
-
.edit-post-editor__list-view-overview > div {
|
|
1454
|
-
padding: 0 0 8px;
|
|
1455
|
-
}
|
|
1456
1460
|
.edit-post-editor__list-view-overview > div > span {
|
|
1457
1461
|
font-size: 12px;
|
|
1458
1462
|
line-height: 1.4;
|
|
@@ -1521,12 +1525,12 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|
|
1521
1525
|
display: block;
|
|
1522
1526
|
width: 45%;
|
|
1523
1527
|
flex-shrink: 0;
|
|
1528
|
+
padding: 6px 0;
|
|
1524
1529
|
}
|
|
1525
1530
|
|
|
1526
1531
|
.components-button.edit-post-post-schedule__toggle {
|
|
1527
1532
|
text-align: left;
|
|
1528
1533
|
white-space: normal;
|
|
1529
|
-
height: auto;
|
|
1530
1534
|
}
|
|
1531
1535
|
.components-button.edit-post-post-schedule__toggle span {
|
|
1532
1536
|
width: 0;
|
|
@@ -1555,6 +1559,7 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|
|
1555
1559
|
.edit-post-post-template span {
|
|
1556
1560
|
display: block;
|
|
1557
1561
|
width: 45%;
|
|
1562
|
+
padding: 6px 0;
|
|
1558
1563
|
}
|
|
1559
1564
|
|
|
1560
1565
|
.edit-post-post-template__dropdown {
|
|
@@ -1586,11 +1591,13 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|
|
1586
1591
|
.edit-post-post-url {
|
|
1587
1592
|
width: 100%;
|
|
1588
1593
|
justify-content: flex-start;
|
|
1594
|
+
align-items: flex-start;
|
|
1589
1595
|
}
|
|
1590
1596
|
.edit-post-post-url span {
|
|
1591
1597
|
display: block;
|
|
1592
1598
|
width: 45%;
|
|
1593
1599
|
flex-shrink: 0;
|
|
1600
|
+
padding: 6px 0;
|
|
1594
1601
|
}
|
|
1595
1602
|
|
|
1596
1603
|
.components-button.edit-post-post-url__toggle {
|
|
@@ -1612,6 +1619,7 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|
|
1612
1619
|
.edit-post-post-visibility span {
|
|
1613
1620
|
display: block;
|
|
1614
1621
|
width: 45%;
|
|
1622
|
+
padding: 6px 0;
|
|
1615
1623
|
}
|
|
1616
1624
|
|
|
1617
1625
|
.edit-post-post-visibility__dialog .editor-post-visibility {
|
|
@@ -1620,47 +1628,62 @@ body.is-fullscreen-mode .edit-post-layout .components-editor-notices__snackbar {
|
|
|
1620
1628
|
}
|
|
1621
1629
|
|
|
1622
1630
|
.components-button.edit-post-sidebar__panel-tab {
|
|
1631
|
+
position: relative;
|
|
1623
1632
|
border-radius: 0;
|
|
1624
1633
|
height: 48px;
|
|
1625
1634
|
background: transparent;
|
|
1626
1635
|
border: none;
|
|
1627
1636
|
box-shadow: none;
|
|
1628
1637
|
cursor: pointer;
|
|
1629
|
-
|
|
1630
|
-
padding: 3px 15px;
|
|
1638
|
+
padding: 3px 16px;
|
|
1631
1639
|
margin-left: 0;
|
|
1632
1640
|
font-weight: 500;
|
|
1633
1641
|
}
|
|
1634
|
-
.components-button.edit-post-sidebar__panel-tab
|
|
1635
|
-
content: attr(data-label);
|
|
1636
|
-
display: block;
|
|
1637
|
-
font-weight: 600;
|
|
1638
|
-
height: 0;
|
|
1639
|
-
overflow: hidden;
|
|
1640
|
-
speak: none;
|
|
1641
|
-
visibility: hidden;
|
|
1642
|
-
}
|
|
1643
|
-
.components-button.edit-post-sidebar__panel-tab.is-active {
|
|
1644
|
-
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) transparent, inset 0 -1.5px 0 0 var(--wp-admin-theme-color);
|
|
1642
|
+
.components-button.edit-post-sidebar__panel-tab:focus:not(:disabled) {
|
|
1645
1643
|
position: relative;
|
|
1646
|
-
|
|
1644
|
+
box-shadow: none;
|
|
1647
1645
|
}
|
|
1648
|
-
.components-button.edit-post-sidebar__panel-tab
|
|
1646
|
+
.components-button.edit-post-sidebar__panel-tab::after {
|
|
1649
1647
|
content: "";
|
|
1650
1648
|
position: absolute;
|
|
1651
|
-
top: 0;
|
|
1652
|
-
bottom: 1px;
|
|
1653
1649
|
right: 0;
|
|
1650
|
+
bottom: 0;
|
|
1654
1651
|
left: 0;
|
|
1655
|
-
|
|
1652
|
+
pointer-events: none;
|
|
1653
|
+
background: var(--wp-admin-theme-color);
|
|
1654
|
+
height: calc(0 * var(--wp-admin-border-width-focus));
|
|
1655
|
+
border-radius: 0;
|
|
1656
|
+
transition: all 0.1s linear;
|
|
1656
1657
|
}
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1658
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1659
|
+
.components-button.edit-post-sidebar__panel-tab::after {
|
|
1660
|
+
transition-duration: 0s;
|
|
1661
|
+
transition-delay: 0s;
|
|
1662
|
+
}
|
|
1661
1663
|
}
|
|
1662
|
-
.components-button.edit-post-sidebar__panel-tab.is-active
|
|
1663
|
-
|
|
1664
|
+
.components-button.edit-post-sidebar__panel-tab.is-active::after {
|
|
1665
|
+
height: calc(1 * var(--wp-admin-border-width-focus));
|
|
1666
|
+
}
|
|
1667
|
+
.components-button.edit-post-sidebar__panel-tab::before {
|
|
1668
|
+
content: "";
|
|
1669
|
+
position: absolute;
|
|
1670
|
+
top: 12px;
|
|
1671
|
+
right: 12px;
|
|
1672
|
+
bottom: 12px;
|
|
1673
|
+
left: 12px;
|
|
1674
|
+
pointer-events: none;
|
|
1675
|
+
box-shadow: 0 0 0 0 transparent;
|
|
1676
|
+
border-radius: 2px;
|
|
1677
|
+
transition: all 0.1s linear;
|
|
1678
|
+
}
|
|
1679
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1680
|
+
.components-button.edit-post-sidebar__panel-tab::before {
|
|
1681
|
+
transition-duration: 0s;
|
|
1682
|
+
transition-delay: 0s;
|
|
1683
|
+
}
|
|
1684
|
+
}
|
|
1685
|
+
.components-button.edit-post-sidebar__panel-tab:focus-visible::before {
|
|
1686
|
+
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
1664
1687
|
}
|
|
1665
1688
|
|
|
1666
1689
|
h2.edit-post-template-summary__title {
|
|
@@ -1795,7 +1818,8 @@ h2.edit-post-template-summary__title {
|
|
|
1795
1818
|
.edit-template-welcome-guide__image > img {
|
|
1796
1819
|
display: block;
|
|
1797
1820
|
max-width: 100%;
|
|
1798
|
-
object-fit: cover;
|
|
1821
|
+
-o-object-fit: cover;
|
|
1822
|
+
object-fit: cover;
|
|
1799
1823
|
}
|
|
1800
1824
|
.edit-post-welcome-guide__heading,
|
|
1801
1825
|
.edit-template-welcome-guide__heading {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/edit-post",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.1.0",
|
|
4
4
|
"description": "Edit Post module for WordPress.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -27,42 +27,43 @@
|
|
|
27
27
|
"react-native": "src/index",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@babel/runtime": "^7.16.0",
|
|
30
|
-
"@wordpress/a11y": "^3.
|
|
31
|
-
"@wordpress/api-fetch": "^6.
|
|
32
|
-
"@wordpress/block-editor": "^
|
|
33
|
-
"@wordpress/block-library": "^
|
|
34
|
-
"@wordpress/blocks": "^
|
|
35
|
-
"@wordpress/components": "^
|
|
36
|
-
"@wordpress/compose": "^
|
|
37
|
-
"@wordpress/core-data": "^
|
|
38
|
-
"@wordpress/data": "^
|
|
39
|
-
"@wordpress/deprecated": "^3.
|
|
40
|
-
"@wordpress/editor": "^
|
|
41
|
-
"@wordpress/element": "^
|
|
42
|
-
"@wordpress/hooks": "^3.
|
|
43
|
-
"@wordpress/i18n": "^4.
|
|
44
|
-
"@wordpress/icons": "^9.
|
|
45
|
-
"@wordpress/interface": "^
|
|
46
|
-
"@wordpress/keyboard-shortcuts": "^
|
|
47
|
-
"@wordpress/keycodes": "^3.
|
|
48
|
-
"@wordpress/media-utils": "^4.
|
|
49
|
-
"@wordpress/notices": "^3.
|
|
50
|
-
"@wordpress/plugins": "^
|
|
51
|
-
"@wordpress/preferences": "^
|
|
52
|
-
"@wordpress/url": "^3.
|
|
53
|
-
"@wordpress/viewport": "^
|
|
54
|
-
"@wordpress/warning": "^2.
|
|
30
|
+
"@wordpress/a11y": "^3.24.0",
|
|
31
|
+
"@wordpress/api-fetch": "^6.21.0",
|
|
32
|
+
"@wordpress/block-editor": "^11.1.0",
|
|
33
|
+
"@wordpress/block-library": "^8.1.0",
|
|
34
|
+
"@wordpress/blocks": "^12.1.0",
|
|
35
|
+
"@wordpress/components": "^23.1.0",
|
|
36
|
+
"@wordpress/compose": "^6.1.0",
|
|
37
|
+
"@wordpress/core-data": "^6.1.0",
|
|
38
|
+
"@wordpress/data": "^8.1.0",
|
|
39
|
+
"@wordpress/deprecated": "^3.24.0",
|
|
40
|
+
"@wordpress/editor": "^13.1.0",
|
|
41
|
+
"@wordpress/element": "^5.1.0",
|
|
42
|
+
"@wordpress/hooks": "^3.24.0",
|
|
43
|
+
"@wordpress/i18n": "^4.24.0",
|
|
44
|
+
"@wordpress/icons": "^9.15.0",
|
|
45
|
+
"@wordpress/interface": "^5.1.0",
|
|
46
|
+
"@wordpress/keyboard-shortcuts": "^4.1.0",
|
|
47
|
+
"@wordpress/keycodes": "^3.24.0",
|
|
48
|
+
"@wordpress/media-utils": "^4.15.0",
|
|
49
|
+
"@wordpress/notices": "^3.24.0",
|
|
50
|
+
"@wordpress/plugins": "^5.1.0",
|
|
51
|
+
"@wordpress/preferences": "^3.1.0",
|
|
52
|
+
"@wordpress/url": "^3.25.0",
|
|
53
|
+
"@wordpress/viewport": "^5.1.0",
|
|
54
|
+
"@wordpress/warning": "^2.24.0",
|
|
55
|
+
"@wordpress/widgets": "^3.1.0",
|
|
55
56
|
"classnames": "^2.3.1",
|
|
56
57
|
"lodash": "^4.17.21",
|
|
57
58
|
"memize": "^1.1.0",
|
|
58
59
|
"rememo": "^4.0.0"
|
|
59
60
|
},
|
|
60
61
|
"peerDependencies": {
|
|
61
|
-
"react": "^
|
|
62
|
-
"react-dom": "^
|
|
62
|
+
"react": "^18.0.0",
|
|
63
|
+
"react-dom": "^18.0.0"
|
|
63
64
|
},
|
|
64
65
|
"publishConfig": {
|
|
65
66
|
"access": "public"
|
|
66
67
|
},
|
|
67
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "200bee7b06b15f6fa655e25b6ab69cbd6b49a357"
|
|
68
69
|
}
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* External dependencies
|
|
3
|
-
*/
|
|
4
|
-
import { filter } from 'lodash';
|
|
5
|
-
|
|
6
1
|
/**
|
|
7
2
|
* WordPress dependencies
|
|
8
3
|
*/
|
|
@@ -71,6 +66,7 @@ function BlockManager( {
|
|
|
71
66
|
</div>
|
|
72
67
|
) }
|
|
73
68
|
<SearchControl
|
|
69
|
+
__nextHasNoMarginBottom
|
|
74
70
|
label={ __( 'Search for a block' ) }
|
|
75
71
|
placeholder={ __( 'Search for a block' ) }
|
|
76
72
|
value={ search }
|
|
@@ -92,15 +88,15 @@ function BlockManager( {
|
|
|
92
88
|
<BlockManagerCategory
|
|
93
89
|
key={ category.slug }
|
|
94
90
|
title={ category.title }
|
|
95
|
-
blockTypes={ filter(
|
|
96
|
-
|
|
97
|
-
|
|
91
|
+
blockTypes={ blockTypes.filter(
|
|
92
|
+
( blockType ) =>
|
|
93
|
+
blockType.category === category.slug
|
|
94
|
+
) }
|
|
98
95
|
/>
|
|
99
96
|
) ) }
|
|
100
97
|
<BlockManagerCategory
|
|
101
98
|
title={ __( 'Uncategorized' ) }
|
|
102
|
-
blockTypes={ filter(
|
|
103
|
-
blockTypes,
|
|
99
|
+
blockTypes={ blockTypes.filter(
|
|
104
100
|
( { category } ) => ! category
|
|
105
101
|
) }
|
|
106
102
|
/>
|
|
@@ -152,6 +152,7 @@ describe( 'listener hook tests', () => {
|
|
|
152
152
|
const setAttribute = jest.fn();
|
|
153
153
|
const mockSelector = jest.fn();
|
|
154
154
|
beforeEach( () => {
|
|
155
|
+
// eslint-disable-next-line testing-library/no-node-access
|
|
155
156
|
document.querySelector = mockSelector.mockReturnValue( {
|
|
156
157
|
setAttribute,
|
|
157
158
|
} );
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
position: absolute;
|
|
36
36
|
top: 9px;
|
|
37
37
|
right: 9px;
|
|
38
|
-
bottom: 9px;
|
|
38
|
+
bottom: 9px + $border-width; // Height of toolbar in edit-post (not edit-site) is 61px tall.
|
|
39
39
|
left: 9px;
|
|
40
40
|
border-radius: $radius-block-ui + $border-width + $border-width;
|
|
41
41
|
box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) $gray-900;
|
|
@@ -25,6 +25,7 @@ import { store as editPostStore } from '../../store';
|
|
|
25
25
|
import TemplateTitle from './template-title';
|
|
26
26
|
|
|
27
27
|
function Header( { setEntitiesSavedStatesCallback } ) {
|
|
28
|
+
const isLargeViewport = useViewportMatch( 'large' );
|
|
28
29
|
const {
|
|
29
30
|
hasActiveMetaboxes,
|
|
30
31
|
isPublishSidebarOpened,
|
|
@@ -40,13 +41,12 @@ function Header( { setEntitiesSavedStatesCallback } ) {
|
|
|
40
41
|
showIconLabels:
|
|
41
42
|
select( editPostStore ).isFeatureActive( 'showIconLabels' ),
|
|
42
43
|
isDistractionFree:
|
|
43
|
-
select( editPostStore ).isFeatureActive( 'distractionFree' )
|
|
44
|
+
select( editPostStore ).isFeatureActive( 'distractionFree' ) &&
|
|
45
|
+
isLargeViewport,
|
|
44
46
|
} ),
|
|
45
47
|
[]
|
|
46
48
|
);
|
|
47
49
|
|
|
48
|
-
const isLargeViewport = useViewportMatch( 'large' );
|
|
49
|
-
|
|
50
50
|
const classes = classnames( 'edit-post-header' );
|
|
51
51
|
|
|
52
52
|
const slideY = {
|
|
@@ -66,6 +66,7 @@ const interfaceLabels = {
|
|
|
66
66
|
function Layout( { styles } ) {
|
|
67
67
|
const isMobileViewport = useViewportMatch( 'medium', '<' );
|
|
68
68
|
const isHugeViewport = useViewportMatch( 'huge', '>=' );
|
|
69
|
+
const isLargeViewport = useViewportMatch( 'large' );
|
|
69
70
|
const { openGeneralSidebar, closeGeneralSidebar, setIsInserterOpened } =
|
|
70
71
|
useDispatch( editPostStore );
|
|
71
72
|
const { createErrorNotice } = useDispatch( noticesStore );
|
|
@@ -116,7 +117,8 @@ function Layout( { styles } ) {
|
|
|
116
117
|
showIconLabels:
|
|
117
118
|
select( editPostStore ).isFeatureActive( 'showIconLabels' ),
|
|
118
119
|
isDistractionFree:
|
|
119
|
-
select( editPostStore ).isFeatureActive( 'distractionFree' )
|
|
120
|
+
select( editPostStore ).isFeatureActive( 'distractionFree' ) &&
|
|
121
|
+
isLargeViewport,
|
|
120
122
|
showBlockBreadcrumbs: select( editPostStore ).isFeatureActive(
|
|
121
123
|
'showBlockBreadcrumbs'
|
|
122
124
|
),
|