@wordpress/block-library 6.0.10 → 6.0.14

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 (145) hide show
  1. package/build/cover/edit.js +1 -0
  2. package/build/cover/edit.js.map +1 -1
  3. package/build/gallery/deprecated.js +314 -26
  4. package/build/gallery/deprecated.js.map +1 -1
  5. package/build/gallery/edit-wrapper.js +10 -27
  6. package/build/gallery/edit-wrapper.js.map +1 -1
  7. package/build/gallery/edit.js +10 -12
  8. package/build/gallery/edit.js.map +1 -1
  9. package/build/gallery/save.js +3 -3
  10. package/build/gallery/save.js.map +1 -1
  11. package/build/gallery/shared.js +24 -0
  12. package/build/gallery/shared.js.map +1 -1
  13. package/build/gallery/transforms.js +8 -22
  14. package/build/gallery/transforms.js.map +1 -1
  15. package/build/gallery/use-mobile-warning.js +1 -1
  16. package/build/gallery/use-mobile-warning.js.map +1 -1
  17. package/build/gallery/v1/edit.js +2 -21
  18. package/build/gallery/v1/edit.js.map +1 -1
  19. package/build/image/image.js +30 -6
  20. package/build/image/image.js.map +1 -1
  21. package/build/navigation/deprecated.js +9 -7
  22. package/build/navigation/deprecated.js.map +1 -1
  23. package/build/navigation/edit/index.js +12 -1
  24. package/build/navigation/edit/index.js.map +1 -1
  25. package/build/navigation/edit/inner-blocks.js +0 -4
  26. package/build/navigation/edit/inner-blocks.js.map +1 -1
  27. package/build/navigation/edit/navigation-menu-selector.js +7 -1
  28. package/build/navigation/edit/navigation-menu-selector.js.map +1 -1
  29. package/build/navigation/menu-items-to-blocks.js +4 -1
  30. package/build/navigation/menu-items-to-blocks.js.map +1 -1
  31. package/build/navigation/view.js +2 -2
  32. package/build/navigation/view.js.map +1 -1
  33. package/build/navigation-submenu/edit.js +5 -1
  34. package/build/navigation-submenu/edit.js.map +1 -1
  35. package/build/post-comments/index.js +1 -1
  36. package/build/query-pagination/index.js +1 -1
  37. package/build/query-pagination-next/index.js +2 -2
  38. package/build/query-pagination-numbers/index.js +1 -1
  39. package/build/query-pagination-previous/index.js +2 -2
  40. package/build/separator/separator-settings.js +1 -0
  41. package/build/separator/separator-settings.js.map +1 -1
  42. package/build/social-links/edit.js +1 -0
  43. package/build/social-links/edit.js.map +1 -1
  44. package/build-module/cover/edit.js +1 -0
  45. package/build-module/cover/edit.js.map +1 -1
  46. package/build-module/gallery/deprecated.js +309 -27
  47. package/build-module/gallery/deprecated.js.map +1 -1
  48. package/build-module/gallery/edit-wrapper.js +7 -27
  49. package/build-module/gallery/edit-wrapper.js.map +1 -1
  50. package/build-module/gallery/edit.js +10 -12
  51. package/build-module/gallery/edit.js.map +1 -1
  52. package/build-module/gallery/save.js +2 -3
  53. package/build-module/gallery/save.js.map +1 -1
  54. package/build-module/gallery/shared.js +22 -0
  55. package/build-module/gallery/shared.js.map +1 -1
  56. package/build-module/gallery/transforms.js +9 -21
  57. package/build-module/gallery/transforms.js.map +1 -1
  58. package/build-module/gallery/use-mobile-warning.js +1 -1
  59. package/build-module/gallery/use-mobile-warning.js.map +1 -1
  60. package/build-module/gallery/v1/edit.js +4 -22
  61. package/build-module/gallery/v1/edit.js.map +1 -1
  62. package/build-module/image/image.js +31 -7
  63. package/build-module/image/image.js.map +1 -1
  64. package/build-module/navigation/deprecated.js +9 -7
  65. package/build-module/navigation/deprecated.js.map +1 -1
  66. package/build-module/navigation/edit/index.js +11 -1
  67. package/build-module/navigation/edit/index.js.map +1 -1
  68. package/build-module/navigation/edit/inner-blocks.js +0 -4
  69. package/build-module/navigation/edit/inner-blocks.js.map +1 -1
  70. package/build-module/navigation/edit/navigation-menu-selector.js +6 -1
  71. package/build-module/navigation/edit/navigation-menu-selector.js.map +1 -1
  72. package/build-module/navigation/menu-items-to-blocks.js +3 -1
  73. package/build-module/navigation/menu-items-to-blocks.js.map +1 -1
  74. package/build-module/navigation/view.js +2 -2
  75. package/build-module/navigation/view.js.map +1 -1
  76. package/build-module/navigation-submenu/edit.js +5 -1
  77. package/build-module/navigation-submenu/edit.js.map +1 -1
  78. package/build-module/post-comments/index.js +1 -1
  79. package/build-module/query-pagination/index.js +1 -1
  80. package/build-module/query-pagination-next/index.js +2 -2
  81. package/build-module/query-pagination-numbers/index.js +1 -1
  82. package/build-module/query-pagination-previous/index.js +2 -2
  83. package/build-module/separator/separator-settings.js +1 -0
  84. package/build-module/separator/separator-settings.js.map +1 -1
  85. package/build-module/social-links/edit.js +1 -0
  86. package/build-module/social-links/edit.js.map +1 -1
  87. package/build-style/columns/editor-rtl.css +1 -1
  88. package/build-style/columns/editor.css +1 -1
  89. package/build-style/editor-rtl.css +26 -1
  90. package/build-style/editor.css +26 -1
  91. package/build-style/image/editor-rtl.css +16 -0
  92. package/build-style/image/editor.css +16 -0
  93. package/build-style/navigation/editor-rtl.css +9 -0
  94. package/build-style/navigation/editor.css +9 -0
  95. package/build-style/navigation/style-rtl.css +5 -1
  96. package/build-style/navigation/style.css +5 -1
  97. package/build-style/post-comments/style-rtl.css +3 -1
  98. package/build-style/post-comments/style.css +3 -1
  99. package/build-style/post-comments-form/style-rtl.css +2 -2
  100. package/build-style/post-comments-form/style.css +2 -2
  101. package/build-style/style-rtl.css +10 -4
  102. package/build-style/style.css +10 -4
  103. package/package.json +8 -8
  104. package/src/columns/editor.scss +3 -2
  105. package/src/cover/edit.js +1 -0
  106. package/src/gallery/deprecated.js +831 -559
  107. package/src/gallery/edit-wrapper.js +7 -27
  108. package/src/gallery/edit.js +10 -12
  109. package/src/gallery/index.php +7 -8
  110. package/src/gallery/save.js +2 -1
  111. package/src/gallery/shared.js +24 -0
  112. package/src/gallery/transforms.js +9 -27
  113. package/src/gallery/use-mobile-warning.js +1 -1
  114. package/src/gallery/v1/edit.js +1 -28
  115. package/src/image/editor.scss +18 -0
  116. package/src/image/image.js +32 -8
  117. package/src/image/index.php +1 -1
  118. package/src/navigation/deprecated.js +10 -9
  119. package/src/navigation/edit/index.js +15 -6
  120. package/src/navigation/edit/inner-blocks.js +0 -5
  121. package/src/navigation/edit/navigation-menu-selector.js +8 -0
  122. package/src/navigation/editor.scss +12 -0
  123. package/src/navigation/index.php +149 -26
  124. package/src/navigation/menu-items-to-blocks.js +7 -1
  125. package/src/navigation/style.scss +5 -1
  126. package/src/navigation/view.js +2 -2
  127. package/src/navigation-submenu/edit.js +7 -1
  128. package/src/navigation-submenu/index.php +30 -45
  129. package/src/page-list/index.php +5 -9
  130. package/src/post-comments/block.json +5 -1
  131. package/src/post-comments/index.php +15 -0
  132. package/src/post-comments/style.scss +7 -3
  133. package/src/post-comments-form/style.scss +7 -5
  134. package/src/query-pagination/block.json +1 -1
  135. package/src/query-pagination-next/block.json +2 -2
  136. package/src/query-pagination-numbers/block.json +1 -1
  137. package/src/query-pagination-previous/block.json +2 -2
  138. package/src/separator/separator-settings.js +1 -0
  139. package/src/social-links/edit.js +1 -0
  140. package/src/template-part/index.php +36 -0
  141. package/build/gallery/v1/update-gallery-modal.js +0 -114
  142. package/build/gallery/v1/update-gallery-modal.js.map +0 -1
  143. package/build-module/gallery/v1/update-gallery-modal.js +0 -97
  144. package/build-module/gallery/v1/update-gallery-modal.js.map +0 -1
  145. package/src/gallery/v1/update-gallery-modal.js +0 -97
@@ -110,12 +110,12 @@
110
110
  .wp-block-post-comments-form input:not([type=submit]):not([type=checkbox]) {
111
111
  padding: calc(0.667em + 2px);
112
112
  }
113
- .wp-block-post-comments-form .comment-form-comment textarea {
113
+ .wp-block-post-comments-form .comment-form textarea,
114
+ .wp-block-post-comments-form .comment-form input:not([type=submit]):not([type=checkbox]) {
114
115
  display: block;
115
116
  box-sizing: border-box;
116
117
  width: 100%;
117
118
  }
118
- .wp-block-post-comments-form .comment-form-comment label,
119
119
  .wp-block-post-comments-form .comment-form-author label,
120
120
  .wp-block-post-comments-form .comment-form-email label,
121
121
  .wp-block-post-comments-form .comment-form-url label {
@@ -110,12 +110,12 @@
110
110
  .wp-block-post-comments-form input:not([type=submit]):not([type=checkbox]) {
111
111
  padding: calc(0.667em + 2px);
112
112
  }
113
- .wp-block-post-comments-form .comment-form-comment textarea {
113
+ .wp-block-post-comments-form .comment-form textarea,
114
+ .wp-block-post-comments-form .comment-form input:not([type=submit]):not([type=checkbox]) {
114
115
  display: block;
115
116
  box-sizing: border-box;
116
117
  width: 100%;
117
118
  }
118
- .wp-block-post-comments-form .comment-form-comment label,
119
119
  .wp-block-post-comments-form .comment-form-author label,
120
120
  .wp-block-post-comments-form .comment-form-email label,
121
121
  .wp-block-post-comments-form .comment-form-url label {
@@ -1534,6 +1534,7 @@ ul.has-background {
1534
1534
  line-height: 0;
1535
1535
  display: inline-block;
1536
1536
  vertical-align: middle;
1537
+ font-size: inherit;
1537
1538
  padding: 0;
1538
1539
  background-color: inherit;
1539
1540
  color: currentColor;
@@ -1766,10 +1767,13 @@ button.wp-block-navigation-item__content {
1766
1767
  display: flex;
1767
1768
  flex-direction: column;
1768
1769
  align-items: var(--layout-justification-setting, inherit);
1769
- justify-content: flex-start;
1770
1770
  overflow: auto;
1771
1771
  padding: 0;
1772
1772
  }
1773
+ .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
1774
+ .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
1775
+ justify-content: flex-start;
1776
+ }
1773
1777
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-icon {
1774
1778
  display: none;
1775
1779
  }
@@ -2051,7 +2055,9 @@ p.has-background {
2051
2055
  display: block;
2052
2056
  margin-bottom: 0.25em;
2053
2057
  }
2054
- .wp-block-post-comments .comment-form-comment textarea {
2058
+ .wp-block-post-comments .comment-form textarea,
2059
+ .wp-block-post-comments .comment-form input:not([type=submit]):not([type=checkbox]) {
2060
+ display: block;
2055
2061
  box-sizing: border-box;
2056
2062
  width: 100%;
2057
2063
  }
@@ -2116,12 +2122,12 @@ p.has-background {
2116
2122
  .wp-block-post-comments-form input:not([type=submit]):not([type=checkbox]) {
2117
2123
  padding: calc(0.667em + 2px);
2118
2124
  }
2119
- .wp-block-post-comments-form .comment-form-comment textarea {
2125
+ .wp-block-post-comments-form .comment-form textarea,
2126
+ .wp-block-post-comments-form .comment-form input:not([type=submit]):not([type=checkbox]) {
2120
2127
  display: block;
2121
2128
  box-sizing: border-box;
2122
2129
  width: 100%;
2123
2130
  }
2124
- .wp-block-post-comments-form .comment-form-comment label,
2125
2131
  .wp-block-post-comments-form .comment-form-author label,
2126
2132
  .wp-block-post-comments-form .comment-form-email label,
2127
2133
  .wp-block-post-comments-form .comment-form-url label {
@@ -1556,6 +1556,7 @@ ul.has-background {
1556
1556
  line-height: 0;
1557
1557
  display: inline-block;
1558
1558
  vertical-align: middle;
1559
+ font-size: inherit;
1559
1560
  padding: 0;
1560
1561
  background-color: inherit;
1561
1562
  color: currentColor;
@@ -1788,10 +1789,13 @@ button.wp-block-navigation-item__content {
1788
1789
  display: flex;
1789
1790
  flex-direction: column;
1790
1791
  align-items: var(--layout-justification-setting, inherit);
1791
- justify-content: flex-start;
1792
1792
  overflow: auto;
1793
1793
  padding: 0;
1794
1794
  }
1795
+ .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
1796
+ .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
1797
+ justify-content: flex-start;
1798
+ }
1795
1799
  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__submenu-icon {
1796
1800
  display: none;
1797
1801
  }
@@ -2073,7 +2077,9 @@ p.has-background {
2073
2077
  display: block;
2074
2078
  margin-bottom: 0.25em;
2075
2079
  }
2076
- .wp-block-post-comments .comment-form-comment textarea {
2080
+ .wp-block-post-comments .comment-form textarea,
2081
+ .wp-block-post-comments .comment-form input:not([type=submit]):not([type=checkbox]) {
2082
+ display: block;
2077
2083
  box-sizing: border-box;
2078
2084
  width: 100%;
2079
2085
  }
@@ -2138,12 +2144,12 @@ p.has-background {
2138
2144
  .wp-block-post-comments-form input:not([type=submit]):not([type=checkbox]) {
2139
2145
  padding: calc(0.667em + 2px);
2140
2146
  }
2141
- .wp-block-post-comments-form .comment-form-comment textarea {
2147
+ .wp-block-post-comments-form .comment-form textarea,
2148
+ .wp-block-post-comments-form .comment-form input:not([type=submit]):not([type=checkbox]) {
2142
2149
  display: block;
2143
2150
  box-sizing: border-box;
2144
2151
  width: 100%;
2145
2152
  }
2146
- .wp-block-post-comments-form .comment-form-comment label,
2147
2153
  .wp-block-post-comments-form .comment-form-author label,
2148
2154
  .wp-block-post-comments-form .comment-form-email label,
2149
2155
  .wp-block-post-comments-form .comment-form-url label {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/block-library",
3
- "version": "6.0.10",
3
+ "version": "6.0.14",
4
4
  "description": "Block library for the WordPress editor.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -37,9 +37,9 @@
37
37
  "@wordpress/api-fetch": "^5.2.6",
38
38
  "@wordpress/autop": "^3.2.3",
39
39
  "@wordpress/blob": "^3.2.2",
40
- "@wordpress/block-editor": "^8.0.6",
40
+ "@wordpress/block-editor": "^8.0.10",
41
41
  "@wordpress/blocks": "^11.1.4",
42
- "@wordpress/components": "^19.1.0",
42
+ "@wordpress/components": "^19.1.4",
43
43
  "@wordpress/compose": "^5.0.6",
44
44
  "@wordpress/core-data": "^4.0.8",
45
45
  "@wordpress/data": "^6.1.4",
@@ -52,14 +52,14 @@
52
52
  "@wordpress/html-entities": "^3.2.3",
53
53
  "@wordpress/i18n": "^4.2.4",
54
54
  "@wordpress/icons": "^6.1.1",
55
- "@wordpress/interface": "^4.1.8",
55
+ "@wordpress/interface": "^4.1.12",
56
56
  "@wordpress/is-shallow-equal": "^4.2.1",
57
57
  "@wordpress/keycodes": "^3.2.4",
58
58
  "@wordpress/notices": "^3.2.7",
59
59
  "@wordpress/primitives": "^3.0.4",
60
- "@wordpress/reusable-blocks": "^3.0.12",
60
+ "@wordpress/reusable-blocks": "^3.0.16",
61
61
  "@wordpress/rich-text": "^5.0.6",
62
- "@wordpress/server-side-render": "^3.0.10",
62
+ "@wordpress/server-side-render": "^3.0.14",
63
63
  "@wordpress/url": "^3.3.1",
64
64
  "@wordpress/viewport": "^4.0.6",
65
65
  "classnames": "^2.3.1",
@@ -67,11 +67,11 @@
67
67
  "fast-average-color": "4.3.0",
68
68
  "lodash": "^4.17.21",
69
69
  "memize": "^1.1.0",
70
- "micromodal": "^0.4.6",
70
+ "micromodal": "^0.4.9",
71
71
  "moment": "^2.22.1"
72
72
  },
73
73
  "publishConfig": {
74
74
  "access": "public"
75
75
  },
76
- "gitHead": "6d3bd917064b4b194677233ee426f5988fa441b9"
76
+ "gitHead": "3826b68f8c5b5026b318463af647f6fb19b534d2"
77
77
  }
@@ -25,8 +25,9 @@
25
25
 
26
26
  // Individual columns do not have top and bottom margins on the frontend.
27
27
  // So we make the editor match that.
28
- // Needs specificity.
29
- .block-editor-block-list__block.wp-block-column.wp-block-column {
28
+ // We use :where to provide minimum specificity, so that intentional margins,
29
+ // such as those configured in theme.json, override and win on specificity.
30
+ html :where(.wp-block-column) {
30
31
  margin-top: 0;
31
32
  margin-bottom: 0;
32
33
  }
package/src/cover/edit.js CHANGED
@@ -547,6 +547,7 @@ function CoverEdit( {
547
547
  ) }
548
548
  <PanelColorGradientSettings
549
549
  __experimentalHasMultipleOrigins
550
+ __experimentalIsRenderedInSidebar
550
551
  title={ __( 'Overlay' ) }
551
552
  initialOpen={ true }
552
553
  settings={ [