@wordpress/block-library 7.0.1 → 7.0.2
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/README.md +16 -0
- package/build/button/edit.native.js +2 -2
- package/build/button/edit.native.js.map +1 -1
- package/build/columns/index.js +12 -0
- package/build/columns/index.js.map +1 -1
- package/build/comment-author-avatar/edit.js +17 -4
- package/build/comment-author-avatar/edit.js.map +1 -1
- package/build/comment-template/edit.js +94 -36
- package/build/comment-template/edit.js.map +1 -1
- package/build/comment-template/hooks.js +175 -0
- package/build/comment-template/hooks.js.map +1 -0
- package/build/comment-template/index.js +1 -1
- package/build/comment-template/util.js.map +1 -1
- package/build/comments-pagination-next/index.js +1 -1
- package/build/comments-pagination-numbers/index.js +1 -1
- package/build/comments-query-loop/edit/comments-inspector-controls.js +20 -9
- package/build/comments-query-loop/edit/comments-inspector-controls.js.map +1 -1
- package/build/comments-query-loop/edit.js +1 -19
- package/build/comments-query-loop/edit.js.map +1 -1
- package/build/comments-query-loop/index.js +5 -0
- package/build/comments-query-loop/index.js.map +1 -1
- package/build/cover/edit.js +21 -22
- package/build/cover/edit.js.map +1 -1
- package/build/cover/edit.native.js +7 -5
- package/build/cover/edit.native.js.map +1 -1
- package/build/cover/overlay-color-settings.native.js +4 -3
- package/build/cover/overlay-color-settings.native.js.map +1 -1
- package/build/cover/transforms.js +4 -2
- package/build/cover/transforms.js.map +1 -1
- package/build/group/index.js +1 -0
- package/build/group/index.js.map +1 -1
- package/build/heading/edit.js +14 -2
- package/build/heading/edit.js.map +1 -1
- package/build/image/deprecated.js +89 -5
- package/build/image/deprecated.js.map +1 -1
- package/build/image/save.js +0 -7
- package/build/image/save.js.map +1 -1
- package/build/latest-posts/edit.js +1 -0
- package/build/latest-posts/edit.js.map +1 -1
- package/build/navigation/edit/index.js +17 -15
- package/build/navigation/edit/index.js.map +1 -1
- package/build/navigation/edit/navigation-menu-selector.js +44 -27
- package/build/navigation/edit/navigation-menu-selector.js.map +1 -1
- package/build/navigation/edit/placeholder/index.js +8 -22
- package/build/navigation/edit/placeholder/index.js.map +1 -1
- package/build/navigation/use-navigation-menu.js +6 -6
- package/build/navigation/use-navigation-menu.js.map +1 -1
- package/build/navigation-submenu/edit.js +41 -9
- package/build/navigation-submenu/edit.js.map +1 -1
- package/build/page-list/edit.js +11 -17
- package/build/page-list/edit.js.map +1 -1
- package/build/social-links/deprecated.js +1 -62
- package/build/social-links/deprecated.js.map +1 -1
- package/build/template-part/edit/index.js +36 -64
- package/build/template-part/edit/index.js.map +1 -1
- package/build/template-part/edit/placeholder.js +64 -0
- package/build/template-part/edit/placeholder.js.map +1 -0
- package/build/template-part/edit/selection-modal.js +103 -0
- package/build/template-part/edit/selection-modal.js.map +1 -0
- package/build/template-part/edit/title-modal.js +54 -0
- package/build/template-part/edit/title-modal.js.map +1 -0
- package/build/template-part/edit/utils/hooks.js +156 -0
- package/build/template-part/edit/utils/hooks.js.map +1 -0
- package/build/template-part/index.js +3 -1
- package/build/template-part/index.js.map +1 -1
- package/build-module/button/edit.native.js +4 -4
- package/build-module/button/edit.native.js.map +1 -1
- package/build-module/columns/index.js +12 -0
- package/build-module/columns/index.js.map +1 -1
- package/build-module/comment-author-avatar/edit.js +18 -6
- package/build-module/comment-author-avatar/edit.js.map +1 -1
- package/build-module/comment-template/edit.js +95 -37
- package/build-module/comment-template/edit.js.map +1 -1
- package/build-module/comment-template/hooks.js +156 -0
- package/build-module/comment-template/hooks.js.map +1 -0
- package/build-module/comment-template/index.js +1 -1
- package/build-module/comment-template/util.js.map +1 -1
- package/build-module/comments-pagination-next/index.js +1 -1
- package/build-module/comments-pagination-numbers/index.js +1 -1
- package/build-module/comments-query-loop/edit/comments-inspector-controls.js +20 -9
- package/build-module/comments-query-loop/edit/comments-inspector-controls.js.map +1 -1
- package/build-module/comments-query-loop/edit.js +2 -19
- package/build-module/comments-query-loop/edit.js.map +1 -1
- package/build-module/comments-query-loop/index.js +5 -0
- package/build-module/comments-query-loop/index.js.map +1 -1
- package/build-module/cover/edit.js +23 -24
- package/build-module/cover/edit.js.map +1 -1
- package/build-module/cover/edit.native.js +10 -8
- package/build-module/cover/edit.native.js.map +1 -1
- package/build-module/cover/overlay-color-settings.native.js +4 -4
- package/build-module/cover/overlay-color-settings.native.js.map +1 -1
- package/build-module/cover/transforms.js +4 -2
- package/build-module/cover/transforms.js.map +1 -1
- package/build-module/group/index.js +1 -0
- package/build-module/group/index.js.map +1 -1
- package/build-module/heading/edit.js +15 -3
- package/build-module/heading/edit.js.map +1 -1
- package/build-module/image/deprecated.js +90 -7
- package/build-module/image/deprecated.js.map +1 -1
- package/build-module/image/save.js +0 -7
- package/build-module/image/save.js.map +1 -1
- package/build-module/latest-posts/edit.js +1 -0
- package/build-module/latest-posts/edit.js.map +1 -1
- package/build-module/navigation/edit/index.js +17 -15
- package/build-module/navigation/edit/index.js.map +1 -1
- package/build-module/navigation/edit/navigation-menu-selector.js +45 -27
- package/build-module/navigation/edit/navigation-menu-selector.js.map +1 -1
- package/build-module/navigation/edit/placeholder/index.js +8 -21
- package/build-module/navigation/edit/placeholder/index.js.map +1 -1
- package/build-module/navigation/use-navigation-menu.js +6 -6
- package/build-module/navigation/use-navigation-menu.js.map +1 -1
- package/build-module/navigation-submenu/edit.js +41 -10
- package/build-module/navigation-submenu/edit.js.map +1 -1
- package/build-module/page-list/edit.js +12 -18
- package/build-module/page-list/edit.js.map +1 -1
- package/build-module/social-links/deprecated.js +1 -62
- package/build-module/social-links/deprecated.js.map +1 -1
- package/build-module/template-part/edit/index.js +37 -65
- package/build-module/template-part/edit/index.js.map +1 -1
- package/build-module/template-part/edit/placeholder.js +52 -0
- package/build-module/template-part/edit/placeholder.js.map +1 -0
- package/build-module/template-part/edit/selection-modal.js +89 -0
- package/build-module/template-part/edit/selection-modal.js.map +1 -0
- package/build-module/template-part/edit/title-modal.js +46 -0
- package/build-module/template-part/edit/title-modal.js.map +1 -0
- package/build-module/template-part/edit/utils/hooks.js +135 -0
- package/build-module/template-part/edit/utils/hooks.js.map +1 -0
- package/build-module/template-part/index.js +2 -1
- package/build-module/template-part/index.js.map +1 -1
- package/build-style/comment-author-avatar/editor-rtl.css +83 -0
- package/build-style/comment-author-avatar/editor.css +83 -0
- package/build-style/cover/style-rtl.css +4 -0
- package/build-style/cover/style.css +4 -0
- package/build-style/editor-rtl.css +27 -81
- package/build-style/editor.css +27 -81
- package/build-style/image/editor-rtl.css +0 -16
- package/build-style/image/editor.css +0 -16
- package/build-style/image/style-rtl.css +2 -0
- package/build-style/image/style.css +2 -0
- package/build-style/navigation/style-rtl.css +14 -3
- package/build-style/navigation/style.css +14 -3
- package/build-style/page-list/editor-rtl.css +0 -9
- package/build-style/page-list/editor.css +0 -9
- package/build-style/style-rtl.css +20 -3
- package/build-style/style.css +20 -3
- package/build-style/template-part/editor-rtl.css +19 -56
- package/build-style/template-part/editor.css +19 -56
- package/package.json +15 -15
- package/src/archives/index.php +1 -1
- package/src/button/edit.native.js +3 -3
- package/src/columns/block.json +12 -0
- package/src/comment-author-avatar/edit.js +13 -8
- package/src/comment-author-avatar/editor.scss +7 -0
- package/src/comment-template/block.json +7 -1
- package/src/comment-template/edit.js +102 -40
- package/src/comment-template/hooks.js +151 -0
- package/src/comment-template/index.php +8 -0
- package/src/comment-template/util.js +1 -0
- package/src/comments-pagination-next/block.json +8 -1
- package/src/comments-pagination-next/index.php +6 -8
- package/src/comments-pagination-numbers/block.json +7 -1
- package/src/comments-pagination-numbers/index.php +3 -10
- package/src/comments-query-loop/block.json +5 -0
- package/src/comments-query-loop/edit/comments-inspector-controls.js +22 -4
- package/src/comments-query-loop/edit.js +1 -16
- package/src/cover/edit.js +15 -28
- package/src/cover/edit.native.js +15 -7
- package/src/cover/overlay-color-settings.native.js +3 -4
- package/src/cover/style.scss +4 -0
- package/src/cover/transforms.js +2 -0
- package/src/editor.scss +1 -0
- package/src/gallery/index.php +1 -8
- package/src/group/block.json +1 -0
- package/src/heading/edit.js +18 -5
- package/src/home-link/index.php +1 -19
- package/src/image/deprecated.js +105 -1
- package/src/image/editor.scss +0 -18
- package/src/image/save.js +0 -8
- package/src/image/style.scss +3 -0
- package/src/image/test/edit.native.js +0 -10
- package/src/latest-posts/edit.js +1 -0
- package/src/latest-posts/index.php +1 -1
- package/src/navigation/edit/index.js +25 -26
- package/src/navigation/edit/navigation-menu-selector.js +73 -28
- package/src/navigation/edit/placeholder/index.js +8 -32
- package/src/navigation/index.php +4 -4
- package/src/navigation/style.scss +22 -3
- package/src/navigation/use-navigation-menu.js +6 -6
- package/src/navigation-link/index.php +3 -22
- package/src/navigation-submenu/edit.js +50 -12
- package/src/navigation-submenu/index.php +3 -21
- package/src/page-list/edit.js +21 -25
- package/src/page-list/editor.scss +0 -10
- package/src/page-list/index.php +4 -4
- package/src/post-navigation-link/index.php +3 -3
- package/src/search/index.php +6 -3
- package/src/site-logo/index.php +1 -1
- package/src/social-links/deprecated.js +0 -59
- package/src/template-part/edit/index.js +61 -71
- package/src/template-part/edit/placeholder.js +78 -0
- package/src/template-part/edit/selection-modal.js +115 -0
- package/src/template-part/edit/title-modal.js +59 -0
- package/src/template-part/edit/utils/hooks.js +158 -0
- package/src/template-part/editor.scss +16 -74
- package/src/template-part/index.js +4 -1
- package/build/navigation/edit/existing-menus-options.js +0 -62
- package/build/navigation/edit/existing-menus-options.js.map +0 -1
- package/build/template-part/edit/placeholder/index.js +0 -141
- package/build/template-part/edit/placeholder/index.js.map +0 -1
- package/build/template-part/edit/placeholder/patterns-setup.js +0 -100
- package/build/template-part/edit/placeholder/patterns-setup.js.map +0 -1
- package/build/template-part/edit/selection/index.js +0 -45
- package/build/template-part/edit/selection/index.js.map +0 -1
- package/build/template-part/edit/selection/template-part-previews.js +0 -317
- package/build/template-part/edit/selection/template-part-previews.js.map +0 -1
- package/build-module/navigation/edit/existing-menus-options.js +0 -53
- package/build-module/navigation/edit/existing-menus-options.js.map +0 -1
- package/build-module/template-part/edit/placeholder/index.js +0 -124
- package/build-module/template-part/edit/placeholder/index.js.map +0 -1
- package/build-module/template-part/edit/placeholder/patterns-setup.js +0 -91
- package/build-module/template-part/edit/placeholder/patterns-setup.js.map +0 -1
- package/build-module/template-part/edit/selection/index.js +0 -35
- package/build-module/template-part/edit/selection/index.js.map +0 -1
- package/build-module/template-part/edit/selection/template-part-previews.js +0 -298
- package/build-module/template-part/edit/selection/template-part-previews.js.map +0 -1
- package/src/navigation/edit/existing-menus-options.js +0 -70
- package/src/template-part/edit/placeholder/index.js +0 -172
- package/src/template-part/edit/placeholder/patterns-setup.js +0 -124
- package/src/template-part/edit/selection/index.js +0 -37
- package/src/template-part/edit/selection/template-part-previews.js +0 -372
|
@@ -91,15 +91,6 @@
|
|
|
91
91
|
pointer-events: none;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
.wp-block-page-list .components-placeholder {
|
|
95
|
-
min-height: 0;
|
|
96
|
-
padding: 0;
|
|
97
|
-
background-color: inherit;
|
|
98
|
-
}
|
|
99
|
-
.wp-block-page-list .components-placeholder .components-spinner {
|
|
100
|
-
margin: 0.5em;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
94
|
@media (min-width: 600px) {
|
|
104
95
|
.wp-block-page-list-modal {
|
|
105
96
|
max-width: 480px;
|
|
@@ -91,15 +91,6 @@
|
|
|
91
91
|
pointer-events: none;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
.wp-block-page-list .components-placeholder {
|
|
95
|
-
min-height: 0;
|
|
96
|
-
padding: 0;
|
|
97
|
-
background-color: inherit;
|
|
98
|
-
}
|
|
99
|
-
.wp-block-page-list .components-placeholder .components-spinner {
|
|
100
|
-
margin: 0.5em;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
94
|
@media (min-width: 600px) {
|
|
104
95
|
.wp-block-page-list-modal {
|
|
105
96
|
max-width: 480px;
|
|
@@ -435,6 +435,10 @@
|
|
|
435
435
|
.wp-block-cover .has-background-dim:not([class*=-background-color]) {
|
|
436
436
|
background-color: #000;
|
|
437
437
|
}
|
|
438
|
+
.wp-block-cover-image .has-background-dim.has-background-gradient,
|
|
439
|
+
.wp-block-cover .has-background-dim.has-background-gradient {
|
|
440
|
+
background-color: transparent;
|
|
441
|
+
}
|
|
438
442
|
.wp-block-cover-image.has-background-dim::before,
|
|
439
443
|
.wp-block-cover-image .has-background-dim::before,
|
|
440
444
|
.wp-block-cover.has-background-dim::before,
|
|
@@ -1318,11 +1322,13 @@ h6.has-background {
|
|
|
1318
1322
|
height: auto;
|
|
1319
1323
|
width: 100%;
|
|
1320
1324
|
}
|
|
1325
|
+
.wp-block-image.alignleft, .wp-block-image.alignright, .wp-block-image.aligncenter,
|
|
1321
1326
|
.wp-block-image .alignleft,
|
|
1322
1327
|
.wp-block-image .alignright,
|
|
1323
1328
|
.wp-block-image .aligncenter {
|
|
1324
1329
|
display: table;
|
|
1325
1330
|
}
|
|
1331
|
+
.wp-block-image.alignleft > figcaption, .wp-block-image.alignright > figcaption, .wp-block-image.aligncenter > figcaption,
|
|
1326
1332
|
.wp-block-image .alignleft > figcaption,
|
|
1327
1333
|
.wp-block-image .alignright > figcaption,
|
|
1328
1334
|
.wp-block-image .aligncenter > figcaption {
|
|
@@ -1671,21 +1677,21 @@ ul.has-background {
|
|
|
1671
1677
|
align-self: center;
|
|
1672
1678
|
line-height: 0;
|
|
1673
1679
|
display: inline-block;
|
|
1674
|
-
vertical-align: middle;
|
|
1675
1680
|
font-size: inherit;
|
|
1676
1681
|
padding: 0;
|
|
1677
1682
|
background-color: inherit;
|
|
1678
1683
|
color: currentColor;
|
|
1679
1684
|
border: none;
|
|
1680
|
-
margin-right: 0.25em;
|
|
1681
1685
|
width: 0.6em;
|
|
1682
1686
|
height: 0.6em;
|
|
1687
|
+
margin-right: 0.25em;
|
|
1683
1688
|
}
|
|
1684
1689
|
.wp-block-navigation .wp-block-navigation__submenu-icon svg {
|
|
1685
1690
|
display: inline-block;
|
|
1686
1691
|
stroke: currentColor;
|
|
1687
1692
|
width: inherit;
|
|
1688
1693
|
height: inherit;
|
|
1694
|
+
margin-top: 0.075em;
|
|
1689
1695
|
}
|
|
1690
1696
|
.wp-block-navigation.is-vertical {
|
|
1691
1697
|
--navigation-layout-direction: column;
|
|
@@ -1756,6 +1762,9 @@ ul.has-background {
|
|
|
1756
1762
|
width: 0.5em;
|
|
1757
1763
|
background: transparent;
|
|
1758
1764
|
}
|
|
1765
|
+
.wp-block-navigation .has-child :where(.wp-block-navigation__submenu-container) .wp-block-navigation__submenu-icon {
|
|
1766
|
+
margin-left: 0.25em;
|
|
1767
|
+
}
|
|
1759
1768
|
.wp-block-navigation .has-child :where(.wp-block-navigation__submenu-container) .wp-block-navigation__submenu-icon svg {
|
|
1760
1769
|
transform: rotate(90deg);
|
|
1761
1770
|
}
|
|
@@ -1776,7 +1785,7 @@ ul.has-background {
|
|
|
1776
1785
|
height: auto;
|
|
1777
1786
|
min-width: 200px;
|
|
1778
1787
|
}
|
|
1779
|
-
.wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true]
|
|
1788
|
+
.wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true] ~ .wp-block-navigation__submenu-container {
|
|
1780
1789
|
visibility: visible;
|
|
1781
1790
|
overflow: visible;
|
|
1782
1791
|
opacity: 1;
|
|
@@ -1818,6 +1827,14 @@ button.wp-block-navigation-item__content {
|
|
|
1818
1827
|
cursor: pointer;
|
|
1819
1828
|
}
|
|
1820
1829
|
|
|
1830
|
+
.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle {
|
|
1831
|
+
padding-left: 0.85em;
|
|
1832
|
+
}
|
|
1833
|
+
.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle + .wp-block-navigation__submenu-icon {
|
|
1834
|
+
margin-right: -0.6em;
|
|
1835
|
+
pointer-events: none;
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1821
1838
|
/**
|
|
1822
1839
|
* Margins
|
|
1823
1840
|
*/
|
package/build-style/style.css
CHANGED
|
@@ -440,6 +440,10 @@
|
|
|
440
440
|
.wp-block-cover .has-background-dim:not([class*=-background-color]) {
|
|
441
441
|
background-color: #000;
|
|
442
442
|
}
|
|
443
|
+
.wp-block-cover-image .has-background-dim.has-background-gradient,
|
|
444
|
+
.wp-block-cover .has-background-dim.has-background-gradient {
|
|
445
|
+
background-color: transparent;
|
|
446
|
+
}
|
|
443
447
|
.wp-block-cover-image.has-background-dim::before,
|
|
444
448
|
.wp-block-cover-image .has-background-dim::before,
|
|
445
449
|
.wp-block-cover.has-background-dim::before,
|
|
@@ -1324,11 +1328,13 @@ h6.has-background {
|
|
|
1324
1328
|
height: auto;
|
|
1325
1329
|
width: 100%;
|
|
1326
1330
|
}
|
|
1331
|
+
.wp-block-image.alignleft, .wp-block-image.alignright, .wp-block-image.aligncenter,
|
|
1327
1332
|
.wp-block-image .alignleft,
|
|
1328
1333
|
.wp-block-image .alignright,
|
|
1329
1334
|
.wp-block-image .aligncenter {
|
|
1330
1335
|
display: table;
|
|
1331
1336
|
}
|
|
1337
|
+
.wp-block-image.alignleft > figcaption, .wp-block-image.alignright > figcaption, .wp-block-image.aligncenter > figcaption,
|
|
1332
1338
|
.wp-block-image .alignleft > figcaption,
|
|
1333
1339
|
.wp-block-image .alignright > figcaption,
|
|
1334
1340
|
.wp-block-image .aligncenter > figcaption {
|
|
@@ -1695,21 +1701,21 @@ ul.has-background {
|
|
|
1695
1701
|
align-self: center;
|
|
1696
1702
|
line-height: 0;
|
|
1697
1703
|
display: inline-block;
|
|
1698
|
-
vertical-align: middle;
|
|
1699
1704
|
font-size: inherit;
|
|
1700
1705
|
padding: 0;
|
|
1701
1706
|
background-color: inherit;
|
|
1702
1707
|
color: currentColor;
|
|
1703
1708
|
border: none;
|
|
1704
|
-
margin-left: 0.25em;
|
|
1705
1709
|
width: 0.6em;
|
|
1706
1710
|
height: 0.6em;
|
|
1711
|
+
margin-left: 0.25em;
|
|
1707
1712
|
}
|
|
1708
1713
|
.wp-block-navigation .wp-block-navigation__submenu-icon svg {
|
|
1709
1714
|
display: inline-block;
|
|
1710
1715
|
stroke: currentColor;
|
|
1711
1716
|
width: inherit;
|
|
1712
1717
|
height: inherit;
|
|
1718
|
+
margin-top: 0.075em;
|
|
1713
1719
|
}
|
|
1714
1720
|
.wp-block-navigation.is-vertical {
|
|
1715
1721
|
--navigation-layout-direction: column;
|
|
@@ -1780,6 +1786,9 @@ ul.has-background {
|
|
|
1780
1786
|
width: 0.5em;
|
|
1781
1787
|
background: transparent;
|
|
1782
1788
|
}
|
|
1789
|
+
.wp-block-navigation .has-child :where(.wp-block-navigation__submenu-container) .wp-block-navigation__submenu-icon {
|
|
1790
|
+
margin-right: 0.25em;
|
|
1791
|
+
}
|
|
1783
1792
|
.wp-block-navigation .has-child :where(.wp-block-navigation__submenu-container) .wp-block-navigation__submenu-icon svg {
|
|
1784
1793
|
transform: rotate(-90deg);
|
|
1785
1794
|
}
|
|
@@ -1800,7 +1809,7 @@ ul.has-background {
|
|
|
1800
1809
|
height: auto;
|
|
1801
1810
|
min-width: 200px;
|
|
1802
1811
|
}
|
|
1803
|
-
.wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true]
|
|
1812
|
+
.wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true] ~ .wp-block-navigation__submenu-container {
|
|
1804
1813
|
visibility: visible;
|
|
1805
1814
|
overflow: visible;
|
|
1806
1815
|
opacity: 1;
|
|
@@ -1842,6 +1851,14 @@ button.wp-block-navigation-item__content {
|
|
|
1842
1851
|
cursor: pointer;
|
|
1843
1852
|
}
|
|
1844
1853
|
|
|
1854
|
+
.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle {
|
|
1855
|
+
padding-right: 0.85em;
|
|
1856
|
+
}
|
|
1857
|
+
.wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle + .wp-block-navigation__submenu-icon {
|
|
1858
|
+
margin-left: -0.6em;
|
|
1859
|
+
pointer-events: none;
|
|
1860
|
+
}
|
|
1861
|
+
|
|
1845
1862
|
/**
|
|
1846
1863
|
* Margins
|
|
1847
1864
|
*/
|
|
@@ -74,65 +74,28 @@
|
|
|
74
74
|
/**
|
|
75
75
|
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
76
76
|
*/
|
|
77
|
-
|
|
78
|
-
.
|
|
79
|
-
|
|
80
|
-
|
|
77
|
+
@media (min-width: 600px) {
|
|
78
|
+
.block-editor-template-part__selection-modal {
|
|
79
|
+
width: calc(100% - 32px);
|
|
80
|
+
height: calc(100% - 120px);
|
|
81
|
+
}
|
|
81
82
|
}
|
|
82
|
-
|
|
83
|
-
.
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.wp-block-template-part__selection-preview-container {
|
|
88
|
-
background: #fff;
|
|
89
|
-
padding-bottom: 16px;
|
|
90
|
-
}
|
|
91
|
-
.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item {
|
|
92
|
-
border-radius: 2px;
|
|
93
|
-
cursor: pointer;
|
|
94
|
-
margin-top: 16px;
|
|
95
|
-
transition: all 0.05s ease-in-out;
|
|
96
|
-
border: 1px solid #ddd;
|
|
97
|
-
width: 100%;
|
|
98
|
-
background-color: #fff;
|
|
99
|
-
}
|
|
100
|
-
.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item:hover {
|
|
101
|
-
border: 1px solid var(--wp-admin-theme-color);
|
|
102
|
-
}
|
|
103
|
-
.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item:focus {
|
|
104
|
-
box-shadow: inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
105
|
-
outline: 2px solid transparent;
|
|
106
|
-
}
|
|
107
|
-
.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item.is-placeholder {
|
|
108
|
-
min-height: 100px;
|
|
109
|
-
}
|
|
110
|
-
.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item .block-editor-block-preview__container {
|
|
111
|
-
border-bottom: 1px solid #ddd;
|
|
112
|
-
}
|
|
113
|
-
.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item-title {
|
|
114
|
-
padding: 4px;
|
|
115
|
-
font-size: 12px;
|
|
116
|
-
text-align: right;
|
|
117
|
-
}
|
|
118
|
-
.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-header {
|
|
119
|
-
padding: 16px 16px 0;
|
|
120
|
-
}
|
|
121
|
-
.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-content {
|
|
122
|
-
padding: 0 16px;
|
|
83
|
+
@media (min-width: 782px) {
|
|
84
|
+
.block-editor-template-part__selection-modal {
|
|
85
|
+
width: 750px;
|
|
86
|
+
}
|
|
123
87
|
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
font-weight: 500;
|
|
88
|
+
@media (min-width: 960px) {
|
|
89
|
+
.block-editor-template-part__selection-modal {
|
|
90
|
+
height: 70%;
|
|
91
|
+
}
|
|
129
92
|
}
|
|
130
93
|
|
|
131
|
-
.
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
94
|
+
.block-library-template-part__selection-content .block-editor-block-patterns-list {
|
|
95
|
+
display: grid;
|
|
96
|
+
grid-template-columns: 1fr 1fr;
|
|
97
|
+
grid-gap: 8px;
|
|
135
98
|
}
|
|
136
|
-
.
|
|
137
|
-
margin-
|
|
99
|
+
.block-library-template-part__selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item {
|
|
100
|
+
margin-bottom: 0;
|
|
138
101
|
}
|
|
@@ -74,65 +74,28 @@
|
|
|
74
74
|
/**
|
|
75
75
|
* Reset the WP Admin page styles for Gutenberg-like pages.
|
|
76
76
|
*/
|
|
77
|
-
|
|
78
|
-
.
|
|
79
|
-
|
|
80
|
-
|
|
77
|
+
@media (min-width: 600px) {
|
|
78
|
+
.block-editor-template-part__selection-modal {
|
|
79
|
+
width: calc(100% - 32px);
|
|
80
|
+
height: calc(100% - 120px);
|
|
81
|
+
}
|
|
81
82
|
}
|
|
82
|
-
|
|
83
|
-
.
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.wp-block-template-part__selection-preview-container {
|
|
88
|
-
background: #fff;
|
|
89
|
-
padding-bottom: 16px;
|
|
90
|
-
}
|
|
91
|
-
.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item {
|
|
92
|
-
border-radius: 2px;
|
|
93
|
-
cursor: pointer;
|
|
94
|
-
margin-top: 16px;
|
|
95
|
-
transition: all 0.05s ease-in-out;
|
|
96
|
-
border: 1px solid #ddd;
|
|
97
|
-
width: 100%;
|
|
98
|
-
background-color: #fff;
|
|
99
|
-
}
|
|
100
|
-
.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item:hover {
|
|
101
|
-
border: 1px solid var(--wp-admin-theme-color);
|
|
102
|
-
}
|
|
103
|
-
.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item:focus {
|
|
104
|
-
box-shadow: inset 0 0 0 1px #fff, 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
|
|
105
|
-
outline: 2px solid transparent;
|
|
106
|
-
}
|
|
107
|
-
.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item.is-placeholder {
|
|
108
|
-
min-height: 100px;
|
|
109
|
-
}
|
|
110
|
-
.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item .block-editor-block-preview__container {
|
|
111
|
-
border-bottom: 1px solid #ddd;
|
|
112
|
-
}
|
|
113
|
-
.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-preview-item-title {
|
|
114
|
-
padding: 4px;
|
|
115
|
-
font-size: 12px;
|
|
116
|
-
text-align: left;
|
|
117
|
-
}
|
|
118
|
-
.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-header {
|
|
119
|
-
padding: 16px 16px 0;
|
|
120
|
-
}
|
|
121
|
-
.wp-block-template-part__selection-preview-container .wp-block-template-part__selection-panel-group-content {
|
|
122
|
-
padding: 0 16px;
|
|
83
|
+
@media (min-width: 782px) {
|
|
84
|
+
.block-editor-template-part__selection-modal {
|
|
85
|
+
width: 750px;
|
|
86
|
+
}
|
|
123
87
|
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
font-weight: 500;
|
|
88
|
+
@media (min-width: 960px) {
|
|
89
|
+
.block-editor-template-part__selection-modal {
|
|
90
|
+
height: 70%;
|
|
91
|
+
}
|
|
129
92
|
}
|
|
130
93
|
|
|
131
|
-
.
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
94
|
+
.block-library-template-part__selection-content .block-editor-block-patterns-list {
|
|
95
|
+
display: grid;
|
|
96
|
+
grid-template-columns: 1fr 1fr;
|
|
97
|
+
grid-gap: 8px;
|
|
135
98
|
}
|
|
136
|
-
.
|
|
137
|
-
margin-
|
|
99
|
+
.block-library-template-part__selection-content .block-editor-block-patterns-list .block-editor-block-patterns-list__list-item {
|
|
100
|
+
margin-bottom: 0;
|
|
138
101
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/block-library",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.2",
|
|
4
4
|
"description": "Block library for the WordPress editor.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -37,28 +37,28 @@
|
|
|
37
37
|
"@wordpress/api-fetch": "^6.0.1",
|
|
38
38
|
"@wordpress/autop": "^3.3.1",
|
|
39
39
|
"@wordpress/blob": "^3.3.1",
|
|
40
|
-
"@wordpress/block-editor": "^8.
|
|
41
|
-
"@wordpress/blocks": "^11.2.
|
|
42
|
-
"@wordpress/components": "^19.
|
|
43
|
-
"@wordpress/compose": "^5.1.
|
|
44
|
-
"@wordpress/core-data": "^4.1.
|
|
45
|
-
"@wordpress/data": "^6.
|
|
40
|
+
"@wordpress/block-editor": "^8.2.0",
|
|
41
|
+
"@wordpress/blocks": "^11.2.2",
|
|
42
|
+
"@wordpress/components": "^19.5.0",
|
|
43
|
+
"@wordpress/compose": "^5.1.2",
|
|
44
|
+
"@wordpress/core-data": "^4.1.2",
|
|
45
|
+
"@wordpress/data": "^6.3.0",
|
|
46
46
|
"@wordpress/date": "^4.3.1",
|
|
47
47
|
"@wordpress/deprecated": "^3.3.1",
|
|
48
|
-
"@wordpress/dom": "^3.3.
|
|
48
|
+
"@wordpress/dom": "^3.3.2",
|
|
49
49
|
"@wordpress/element": "^4.1.1",
|
|
50
50
|
"@wordpress/hooks": "^3.3.1",
|
|
51
51
|
"@wordpress/html-entities": "^3.3.1",
|
|
52
52
|
"@wordpress/i18n": "^4.3.1",
|
|
53
|
-
"@wordpress/icons": "^7.0.
|
|
53
|
+
"@wordpress/icons": "^7.0.1",
|
|
54
54
|
"@wordpress/keycodes": "^3.3.1",
|
|
55
|
-
"@wordpress/notices": "^3.3.
|
|
55
|
+
"@wordpress/notices": "^3.3.2",
|
|
56
56
|
"@wordpress/primitives": "^3.1.1",
|
|
57
|
-
"@wordpress/reusable-blocks": "^3.1.
|
|
58
|
-
"@wordpress/rich-text": "^5.1.
|
|
59
|
-
"@wordpress/server-side-render": "^3.1.
|
|
57
|
+
"@wordpress/reusable-blocks": "^3.1.3",
|
|
58
|
+
"@wordpress/rich-text": "^5.1.2",
|
|
59
|
+
"@wordpress/server-side-render": "^3.1.3",
|
|
60
60
|
"@wordpress/url": "^3.4.1",
|
|
61
|
-
"@wordpress/viewport": "^4.1.
|
|
61
|
+
"@wordpress/viewport": "^4.1.2",
|
|
62
62
|
"classnames": "^2.3.1",
|
|
63
63
|
"colord": "^2.7.0",
|
|
64
64
|
"fast-average-color": "4.3.0",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"publishConfig": {
|
|
71
71
|
"access": "public"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "4566ac290359553d04de4eb574545309343f790b"
|
|
74
74
|
}
|
package/src/archives/index.php
CHANGED
|
@@ -23,7 +23,7 @@ function render_block_core_archives( $attributes ) {
|
|
|
23
23
|
|
|
24
24
|
$class .= ' wp-block-archives-dropdown';
|
|
25
25
|
|
|
26
|
-
$dropdown_id =
|
|
26
|
+
$dropdown_id = wp_unique_id( 'wp-block-archives-' );
|
|
27
27
|
$title = __( 'Archives' );
|
|
28
28
|
|
|
29
29
|
/** This filter is documented in wp-includes/widgets/class-wp-widget-archives.php */
|
|
@@ -17,7 +17,6 @@ import {
|
|
|
17
17
|
getColorObjectByAttributeValues,
|
|
18
18
|
getGradientValueBySlug,
|
|
19
19
|
__experimentalGetColorClassesAndStyles as getColorClassesAndStyles,
|
|
20
|
-
useSetting,
|
|
21
20
|
} from '@wordpress/block-editor';
|
|
22
21
|
import {
|
|
23
22
|
PanelBody,
|
|
@@ -29,6 +28,7 @@ import {
|
|
|
29
28
|
BottomSheetSelectControl,
|
|
30
29
|
CSS_UNITS,
|
|
31
30
|
filterUnitsWithSettings,
|
|
31
|
+
useMobileGlobalStylesColors,
|
|
32
32
|
} from '@wordpress/components';
|
|
33
33
|
import { link } from '@wordpress/icons';
|
|
34
34
|
import { store as editPostStore } from '@wordpress/edit-post';
|
|
@@ -118,8 +118,8 @@ function ButtonEdit( props ) {
|
|
|
118
118
|
const [ borderRadiusUnit, setBorderRadiusUnit ] = useState( valueUnit );
|
|
119
119
|
|
|
120
120
|
const richTextRef = useRef();
|
|
121
|
-
const colors =
|
|
122
|
-
const gradients =
|
|
121
|
+
const colors = useMobileGlobalStylesColors();
|
|
122
|
+
const gradients = useMobileGlobalStylesColors( 'gradients' );
|
|
123
123
|
|
|
124
124
|
useEffect( () => {
|
|
125
125
|
if ( isSelected ) {
|
package/src/columns/block.json
CHANGED
|
@@ -43,6 +43,18 @@
|
|
|
43
43
|
"type": "flex",
|
|
44
44
|
"flexWrap": "nowrap"
|
|
45
45
|
}
|
|
46
|
+
},
|
|
47
|
+
"__experimentalBorder": {
|
|
48
|
+
"color": true,
|
|
49
|
+
"radius": true,
|
|
50
|
+
"style": true,
|
|
51
|
+
"width": true,
|
|
52
|
+
"__experimentalDefaultControls": {
|
|
53
|
+
"color": true,
|
|
54
|
+
"radius": true,
|
|
55
|
+
"style": true,
|
|
56
|
+
"width": true
|
|
57
|
+
}
|
|
46
58
|
}
|
|
47
59
|
},
|
|
48
60
|
"editorStyle": "wp-block-columns-editor",
|
|
@@ -5,10 +5,12 @@ import {
|
|
|
5
5
|
InspectorControls,
|
|
6
6
|
useBlockProps,
|
|
7
7
|
__experimentalGetSpacingClassesAndStyles as useSpacingProps,
|
|
8
|
+
store as blockEditorStore,
|
|
8
9
|
} from '@wordpress/block-editor';
|
|
9
10
|
import { PanelBody, ResizableBox, RangeControl } from '@wordpress/components';
|
|
10
11
|
import { useEntityProp } from '@wordpress/core-data';
|
|
11
|
-
import {
|
|
12
|
+
import { useSelect } from '@wordpress/data';
|
|
13
|
+
import { __, isRTL } from '@wordpress/i18n';
|
|
12
14
|
|
|
13
15
|
export default function Edit( {
|
|
14
16
|
attributes,
|
|
@@ -38,6 +40,11 @@ export default function Edit( {
|
|
|
38
40
|
const blockProps = useBlockProps();
|
|
39
41
|
const spacingProps = useSpacingProps( attributes );
|
|
40
42
|
const maxSizeBuffer = Math.floor( maxSize * 2.5 );
|
|
43
|
+
const { avatarURL } = useSelect( ( select ) => {
|
|
44
|
+
const { getSettings } = select( blockEditorStore );
|
|
45
|
+
const { __experimentalDiscussionSettings } = getSettings();
|
|
46
|
+
return __experimentalDiscussionSettings;
|
|
47
|
+
} );
|
|
41
48
|
|
|
42
49
|
const inspectorControls = (
|
|
43
50
|
<InspectorControls>
|
|
@@ -59,7 +66,7 @@ export default function Edit( {
|
|
|
59
66
|
</InspectorControls>
|
|
60
67
|
);
|
|
61
68
|
|
|
62
|
-
const
|
|
69
|
+
const resizableAvatar = (
|
|
63
70
|
<ResizableBox
|
|
64
71
|
size={ {
|
|
65
72
|
width,
|
|
@@ -83,21 +90,19 @@ export default function Edit( {
|
|
|
83
90
|
maxWidth={ maxSizeBuffer }
|
|
84
91
|
>
|
|
85
92
|
<img
|
|
86
|
-
src={
|
|
93
|
+
src={
|
|
94
|
+
avatarUrls ? avatarUrls[ avatarUrls.length - 1 ] : avatarURL
|
|
95
|
+
}
|
|
87
96
|
alt={ `${ authorName } ${ __( 'Avatar' ) }` }
|
|
88
97
|
{ ...blockProps }
|
|
89
98
|
/>
|
|
90
99
|
</ResizableBox>
|
|
91
|
-
) : (
|
|
92
|
-
<p { ...blockProps }>
|
|
93
|
-
{ _x( 'Comment Author Avatar', 'block title' ) }
|
|
94
|
-
</p>
|
|
95
100
|
);
|
|
96
101
|
|
|
97
102
|
return (
|
|
98
103
|
<>
|
|
99
104
|
{ inspectorControls }
|
|
100
|
-
<div { ...spacingProps }>{
|
|
105
|
+
<div { ...spacingProps }>{ resizableAvatar }</div>
|
|
101
106
|
</>
|
|
102
107
|
);
|
|
103
108
|
}
|
|
@@ -7,7 +7,13 @@
|
|
|
7
7
|
"parent": [ "core/comments-query-loop" ],
|
|
8
8
|
"description": "Contains the block elements used to render a comment, like the title, date, author, avatar and more.",
|
|
9
9
|
"textdomain": "default",
|
|
10
|
-
"usesContext": [
|
|
10
|
+
"usesContext": [
|
|
11
|
+
"comments/defaultPage",
|
|
12
|
+
"comments/inherit",
|
|
13
|
+
"comments/order",
|
|
14
|
+
"comments/perPage",
|
|
15
|
+
"postId"
|
|
16
|
+
],
|
|
11
17
|
"supports": {
|
|
12
18
|
"reusable": false,
|
|
13
19
|
"html": false,
|