@wordpress/block-library 9.18.0 → 9.19.1

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 (133) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/build/cover/edit/index.js +3 -1
  3. package/build/cover/edit/index.js.map +1 -1
  4. package/build/form/edit.js +4 -2
  5. package/build/form/edit.js.map +1 -1
  6. package/build/image/view.js +4 -4
  7. package/build/image/view.js.map +1 -1
  8. package/build/latest-posts/edit.js +2 -1
  9. package/build/latest-posts/edit.js.map +1 -1
  10. package/build/navigation/use-template-part-area-label.js +7 -6
  11. package/build/navigation/use-template-part-area-label.js.map +1 -1
  12. package/build/navigation/view.js +2 -2
  13. package/build/navigation/view.js.map +1 -1
  14. package/build/navigation-link/edit.js +2 -1
  15. package/build/navigation-link/edit.js.map +1 -1
  16. package/build/navigation-submenu/edit.js +2 -1
  17. package/build/navigation-submenu/edit.js.map +1 -1
  18. package/build/post-author/edit.js +1 -1
  19. package/build/post-author/edit.js.map +1 -1
  20. package/build/post-author-name/edit.js +2 -2
  21. package/build/post-author-name/edit.js.map +1 -1
  22. package/build/post-comments-count/index.js +8 -1
  23. package/build/post-comments-count/index.js.map +1 -1
  24. package/build/post-navigation-link/edit.js +1 -1
  25. package/build/post-navigation-link/edit.js.map +1 -1
  26. package/build/query/edit/inspector-controls/index.js +2 -0
  27. package/build/query/edit/inspector-controls/index.js.map +1 -1
  28. package/build/query/edit/inspector-controls/order-control.js +3 -2
  29. package/build/query/edit/inspector-controls/order-control.js.map +1 -1
  30. package/build/query/utils.js +45 -0
  31. package/build/query/utils.js.map +1 -1
  32. package/build/query/view.js +2 -2
  33. package/build/query/view.js.map +1 -1
  34. package/build/query-total/index.js +2 -2
  35. package/build/query-total/index.js.map +1 -1
  36. package/build/search/view.js +2 -2
  37. package/build/search/view.js.map +1 -1
  38. package/build/site-logo/edit.js +2 -5
  39. package/build/site-logo/edit.js.map +1 -1
  40. package/build/template-part/edit/advanced-controls.js +1 -1
  41. package/build/template-part/edit/advanced-controls.js.map +1 -1
  42. package/build/template-part/edit/utils/hooks.js +1 -1
  43. package/build/template-part/edit/utils/hooks.js.map +1 -1
  44. package/build/video/edit-common-settings.js +10 -3
  45. package/build/video/edit-common-settings.js.map +1 -1
  46. package/build-module/cover/edit/index.js +3 -1
  47. package/build-module/cover/edit/index.js.map +1 -1
  48. package/build-module/form/edit.js +4 -2
  49. package/build-module/form/edit.js.map +1 -1
  50. package/build-module/image/view.js +5 -5
  51. package/build-module/image/view.js.map +1 -1
  52. package/build-module/latest-posts/edit.js +2 -1
  53. package/build-module/latest-posts/edit.js.map +1 -1
  54. package/build-module/navigation/use-template-part-area-label.js +7 -6
  55. package/build-module/navigation/use-template-part-area-label.js.map +1 -1
  56. package/build-module/navigation/view.js +3 -3
  57. package/build-module/navigation/view.js.map +1 -1
  58. package/build-module/navigation-link/edit.js +2 -1
  59. package/build-module/navigation-link/edit.js.map +1 -1
  60. package/build-module/navigation-submenu/edit.js +2 -1
  61. package/build-module/navigation-submenu/edit.js.map +1 -1
  62. package/build-module/post-author/edit.js +1 -1
  63. package/build-module/post-author/edit.js.map +1 -1
  64. package/build-module/post-author-name/edit.js +2 -2
  65. package/build-module/post-author-name/edit.js.map +1 -1
  66. package/build-module/post-comments-count/index.js +8 -1
  67. package/build-module/post-comments-count/index.js.map +1 -1
  68. package/build-module/post-navigation-link/edit.js +1 -1
  69. package/build-module/post-navigation-link/edit.js.map +1 -1
  70. package/build-module/query/edit/inspector-controls/index.js +3 -1
  71. package/build-module/query/edit/inspector-controls/index.js.map +1 -1
  72. package/build-module/query/edit/inspector-controls/order-control.js +3 -2
  73. package/build-module/query/edit/inspector-controls/order-control.js.map +1 -1
  74. package/build-module/query/utils.js +44 -0
  75. package/build-module/query/utils.js.map +1 -1
  76. package/build-module/query/view.js +3 -3
  77. package/build-module/query/view.js.map +1 -1
  78. package/build-module/query-total/index.js +2 -2
  79. package/build-module/query-total/index.js.map +1 -1
  80. package/build-module/search/view.js +3 -3
  81. package/build-module/search/view.js.map +1 -1
  82. package/build-module/site-logo/edit.js +2 -5
  83. package/build-module/site-logo/edit.js.map +1 -1
  84. package/build-module/template-part/edit/advanced-controls.js +1 -1
  85. package/build-module/template-part/edit/advanced-controls.js.map +1 -1
  86. package/build-module/template-part/edit/utils/hooks.js +1 -1
  87. package/build-module/template-part/edit/utils/hooks.js.map +1 -1
  88. package/build-module/video/edit-common-settings.js +10 -3
  89. package/build-module/video/edit-common-settings.js.map +1 -1
  90. package/build-style/editor-rtl.css +6 -9
  91. package/build-style/editor.css +6 -9
  92. package/build-style/navigation-link/editor-rtl.css +5 -9
  93. package/build-style/navigation-link/editor.css +5 -9
  94. package/build-style/post-comments-count/style-rtl.css +103 -0
  95. package/build-style/post-comments-count/style.css +103 -0
  96. package/build-style/pullquote/style-rtl.css +4 -0
  97. package/build-style/pullquote/style.css +4 -0
  98. package/build-style/social-link/editor-rtl.css +1 -0
  99. package/build-style/social-link/editor.css +1 -0
  100. package/build-style/style-rtl.css +8 -0
  101. package/build-style/style.css +8 -0
  102. package/package.json +35 -35
  103. package/src/cover/edit/index.js +2 -0
  104. package/src/cover/test/edit.js +6 -6
  105. package/src/form/edit.js +2 -0
  106. package/src/image/view.js +10 -5
  107. package/src/latest-posts/edit.js +1 -0
  108. package/src/navigation/use-template-part-area-label.js +6 -6
  109. package/src/navigation/view.js +8 -3
  110. package/src/navigation-link/edit.js +1 -0
  111. package/src/navigation-link/editor.scss +3 -24
  112. package/src/navigation-submenu/edit.js +1 -0
  113. package/src/post-author/edit.js +1 -1
  114. package/src/post-author-name/edit.js +4 -4
  115. package/src/post-comments-count/block.json +8 -1
  116. package/src/post-comments-count/style.scss +4 -0
  117. package/src/post-navigation-link/edit.js +1 -1
  118. package/src/pullquote/style.scss +4 -0
  119. package/src/query/edit/inspector-controls/index.js +3 -1
  120. package/src/query/edit/inspector-controls/order-control.js +9 -3
  121. package/src/query/utils.js +58 -0
  122. package/src/query/view.js +8 -3
  123. package/src/query-total/block.json +2 -2
  124. package/src/query-total/index.php +4 -2
  125. package/src/search/view.js +8 -3
  126. package/src/site-logo/edit.js +1 -5
  127. package/src/site-title/index.php +1 -1
  128. package/src/social-link/editor.scss +1 -0
  129. package/src/style.scss +1 -0
  130. package/src/template-part/edit/advanced-controls.js +1 -1
  131. package/src/template-part/edit/utils/hooks.js +1 -1
  132. package/src/template-part/index.php +3 -1
  133. package/src/video/edit-common-settings.js +11 -2
@@ -1969,15 +1969,11 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
1969
1969
  background-image: none !important;
1970
1970
  }
1971
1971
  .wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text span {
1972
- --wp-underline-color: var(--wp-admin-theme-color);
1973
- background-image: linear-gradient(45deg, transparent 20%, var(--wp-underline-color) 30%, var(--wp-underline-color) 36%, transparent 46%), linear-gradient(135deg, transparent 54%, var(--wp-underline-color) 64%, var(--wp-underline-color) 70%, transparent 80%);
1974
- background-position: 0 100%;
1975
- background-size: 6px 3px;
1976
- background-repeat: repeat-x;
1977
- padding-bottom: 0.1em;
1978
- }
1979
- .wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text.is-invalid span, .wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text.is-draft span {
1980
- --wp-underline-color: #cc1818;
1972
+ -webkit-text-decoration: wavy underline;
1973
+ text-decoration: wavy underline;
1974
+ -webkit-text-decoration-skip-ink: none;
1975
+ text-decoration-skip-ink: none;
1976
+ text-underline-offset: 0.25rem;
1981
1977
  }
1982
1978
  .wp-block-navigation-link__placeholder.wp-block-navigation-item__content {
1983
1979
  cursor: pointer;
@@ -2369,6 +2365,7 @@ body.editor-styles-wrapper .wp-block-navigation__responsive-container.is-menu-op
2369
2365
  height: auto;
2370
2366
  font-weight: inherit;
2371
2367
  font-family: inherit;
2368
+ margin: 0;
2372
2369
  opacity: 1;
2373
2370
  padding: 0.25em;
2374
2371
  }
@@ -156,15 +156,11 @@
156
156
  background-image: none !important;
157
157
  }
158
158
  .wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text span {
159
- --wp-underline-color: var(--wp-admin-theme-color);
160
- background-image: linear-gradient(-45deg, transparent 20%, var(--wp-underline-color) 30%, var(--wp-underline-color) 36%, transparent 46%), linear-gradient(-135deg, transparent 54%, var(--wp-underline-color) 64%, var(--wp-underline-color) 70%, transparent 80%);
161
- background-position: 100% 100%;
162
- background-size: 6px 3px;
163
- background-repeat: repeat-x;
164
- padding-bottom: 0.1em;
165
- }
166
- .wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text.is-invalid span, .wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text.is-draft span {
167
- --wp-underline-color: #cc1818;
159
+ -webkit-text-decoration: wavy underline;
160
+ text-decoration: wavy underline;
161
+ -webkit-text-decoration-skip-ink: none;
162
+ text-decoration-skip-ink: none;
163
+ text-underline-offset: 0.25rem;
168
164
  }
169
165
  .wp-block-navigation-link__placeholder.wp-block-navigation-item__content {
170
166
  cursor: pointer;
@@ -156,15 +156,11 @@
156
156
  background-image: none !important;
157
157
  }
158
158
  .wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text span {
159
- --wp-underline-color: var(--wp-admin-theme-color);
160
- background-image: linear-gradient(45deg, transparent 20%, var(--wp-underline-color) 30%, var(--wp-underline-color) 36%, transparent 46%), linear-gradient(135deg, transparent 54%, var(--wp-underline-color) 64%, var(--wp-underline-color) 70%, transparent 80%);
161
- background-position: 0 100%;
162
- background-size: 6px 3px;
163
- background-repeat: repeat-x;
164
- padding-bottom: 0.1em;
165
- }
166
- .wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text.is-invalid span, .wp-block-navigation-link__placeholder .wp-block-navigation-link__placeholder-text.is-draft span {
167
- --wp-underline-color: #cc1818;
159
+ -webkit-text-decoration: wavy underline;
160
+ text-decoration: wavy underline;
161
+ -webkit-text-decoration-skip-ink: none;
162
+ text-decoration-skip-ink: none;
163
+ text-underline-offset: 0.25rem;
168
164
  }
169
165
  .wp-block-navigation-link__placeholder.wp-block-navigation-item__content {
170
166
  cursor: pointer;
@@ -0,0 +1,103 @@
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
+ */
7
+ /**
8
+ * Colors
9
+ */
10
+ /**
11
+ * Breakpoints & Media Queries
12
+ */
13
+ /**
14
+ * SCSS Variables.
15
+ *
16
+ * Please use variables from this sheet to ensure consistency across the UI.
17
+ * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
18
+ * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
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
+ */
26
+ /**
27
+ * Colors
28
+ */
29
+ /**
30
+ * Fonts & basic variables.
31
+ */
32
+ /**
33
+ * Typography
34
+ */
35
+ /**
36
+ * Grid System.
37
+ * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
38
+ */
39
+ /**
40
+ * Radius scale.
41
+ */
42
+ /**
43
+ * Elevation scale.
44
+ */
45
+ /**
46
+ * Dimensions.
47
+ */
48
+ /**
49
+ * Mobile specific styles
50
+ */
51
+ /**
52
+ * Editor styles.
53
+ */
54
+ /**
55
+ * Block & Editor UI.
56
+ */
57
+ /**
58
+ * Block paddings.
59
+ */
60
+ /**
61
+ * React Native specific.
62
+ * These variables do not appear to be used anywhere else.
63
+ */
64
+ /**
65
+ * Converts a hex value into the rgb equivalent.
66
+ *
67
+ * @param {string} hex - the hexadecimal value to convert
68
+ * @return {string} comma separated rgb values
69
+ */
70
+ /**
71
+ * Long content fade mixin
72
+ *
73
+ * Creates a fading overlay to signify that the content is longer
74
+ * than the space allows.
75
+ */
76
+ /**
77
+ * Typography
78
+ */
79
+ /**
80
+ * Breakpoint mixins
81
+ */
82
+ /**
83
+ * Focus styles.
84
+ */
85
+ /**
86
+ * Applies editor left position to the selector passed as argument
87
+ */
88
+ /**
89
+ * Styles that are reused verbatim in a few places
90
+ */
91
+ /**
92
+ * Allows users to opt-out of animations via OS-level preferences.
93
+ */
94
+ /**
95
+ * Reset default styles for JavaScript UI based pages.
96
+ * This is a WP-admin agnostic reset
97
+ */
98
+ /**
99
+ * Reset the WP Admin page styles for Gutenberg-like pages.
100
+ */
101
+ .wp-block-post-comments-count {
102
+ box-sizing: border-box;
103
+ }
@@ -0,0 +1,103 @@
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
+ */
7
+ /**
8
+ * Colors
9
+ */
10
+ /**
11
+ * Breakpoints & Media Queries
12
+ */
13
+ /**
14
+ * SCSS Variables.
15
+ *
16
+ * Please use variables from this sheet to ensure consistency across the UI.
17
+ * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
18
+ * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
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
+ */
26
+ /**
27
+ * Colors
28
+ */
29
+ /**
30
+ * Fonts & basic variables.
31
+ */
32
+ /**
33
+ * Typography
34
+ */
35
+ /**
36
+ * Grid System.
37
+ * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
38
+ */
39
+ /**
40
+ * Radius scale.
41
+ */
42
+ /**
43
+ * Elevation scale.
44
+ */
45
+ /**
46
+ * Dimensions.
47
+ */
48
+ /**
49
+ * Mobile specific styles
50
+ */
51
+ /**
52
+ * Editor styles.
53
+ */
54
+ /**
55
+ * Block & Editor UI.
56
+ */
57
+ /**
58
+ * Block paddings.
59
+ */
60
+ /**
61
+ * React Native specific.
62
+ * These variables do not appear to be used anywhere else.
63
+ */
64
+ /**
65
+ * Converts a hex value into the rgb equivalent.
66
+ *
67
+ * @param {string} hex - the hexadecimal value to convert
68
+ * @return {string} comma separated rgb values
69
+ */
70
+ /**
71
+ * Long content fade mixin
72
+ *
73
+ * Creates a fading overlay to signify that the content is longer
74
+ * than the space allows.
75
+ */
76
+ /**
77
+ * Typography
78
+ */
79
+ /**
80
+ * Breakpoint mixins
81
+ */
82
+ /**
83
+ * Focus styles.
84
+ */
85
+ /**
86
+ * Applies editor left position to the selector passed as argument
87
+ */
88
+ /**
89
+ * Styles that are reused verbatim in a few places
90
+ */
91
+ /**
92
+ * Allows users to opt-out of animations via OS-level preferences.
93
+ */
94
+ /**
95
+ * Reset default styles for JavaScript UI based pages.
96
+ * This is a WP-admin agnostic reset
97
+ */
98
+ /**
99
+ * Reset the WP Admin page styles for Gutenberg-like pages.
100
+ */
101
+ .wp-block-post-comments-count {
102
+ box-sizing: border-box;
103
+ }
@@ -138,6 +138,10 @@
138
138
  text-align: left;
139
139
  }
140
140
 
141
+ .wp-block-pullquote.has-text-align-center blockquote {
142
+ text-align: center;
143
+ }
144
+
141
145
  .wp-block-pullquote.is-style-solid-color {
142
146
  border: none;
143
147
  }
@@ -138,6 +138,10 @@
138
138
  text-align: right;
139
139
  }
140
140
 
141
+ .wp-block-pullquote.has-text-align-center blockquote {
142
+ text-align: center;
143
+ }
144
+
141
145
  .wp-block-pullquote.is-style-solid-color {
142
146
  border: none;
143
147
  }
@@ -114,6 +114,7 @@
114
114
  height: auto;
115
115
  font-weight: inherit;
116
116
  font-family: inherit;
117
+ margin: 0;
117
118
  opacity: 1;
118
119
  padding: 0.25em;
119
120
  }
@@ -114,6 +114,7 @@
114
114
  height: auto;
115
115
  font-weight: inherit;
116
116
  font-family: inherit;
117
+ margin: 0;
117
118
  opacity: 1;
118
119
  padding: 0.25em;
119
120
  }
@@ -2931,6 +2931,10 @@ p.has-text-align-left[style*="writing-mode:vertical-lr"] {
2931
2931
  margin-right: 0.5em;
2932
2932
  }
2933
2933
 
2934
+ .wp-block-post-comments-count {
2935
+ box-sizing: border-box;
2936
+ }
2937
+
2934
2938
  .wp-block-post-content {
2935
2939
  display: flow-root;
2936
2940
  }
@@ -3127,6 +3131,10 @@ p.has-text-align-left[style*="writing-mode:vertical-lr"] {
3127
3131
  text-align: left;
3128
3132
  }
3129
3133
 
3134
+ .wp-block-pullquote.has-text-align-center blockquote {
3135
+ text-align: center;
3136
+ }
3137
+
3130
3138
  .wp-block-pullquote.is-style-solid-color {
3131
3139
  border: none;
3132
3140
  }
@@ -2963,6 +2963,10 @@ p.has-text-align-left[style*="writing-mode:vertical-lr"] {
2963
2963
  margin-left: 0.5em;
2964
2964
  }
2965
2965
 
2966
+ .wp-block-post-comments-count {
2967
+ box-sizing: border-box;
2968
+ }
2969
+
2966
2970
  .wp-block-post-content {
2967
2971
  display: flow-root;
2968
2972
  }
@@ -3159,6 +3163,10 @@ p.has-text-align-left[style*="writing-mode:vertical-lr"] {
3159
3163
  text-align: right;
3160
3164
  }
3161
3165
 
3166
+ .wp-block-pullquote.has-text-align-center blockquote {
3167
+ text-align: center;
3168
+ }
3169
+
3162
3170
  .wp-block-pullquote.is-style-solid-color {
3163
3171
  border: none;
3164
3172
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/block-library",
3
- "version": "9.18.0",
3
+ "version": "9.19.1",
4
4
  "description": "Block library for the WordPress editor.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -41,39 +41,39 @@
41
41
  ],
42
42
  "dependencies": {
43
43
  "@babel/runtime": "7.25.7",
44
- "@wordpress/a11y": "^4.18.0",
45
- "@wordpress/api-fetch": "^7.18.0",
46
- "@wordpress/autop": "^4.18.0",
47
- "@wordpress/blob": "^4.18.0",
48
- "@wordpress/block-editor": "^14.13.0",
49
- "@wordpress/blocks": "^14.7.0",
50
- "@wordpress/components": "^29.4.0",
51
- "@wordpress/compose": "^7.18.0",
52
- "@wordpress/core-data": "^7.18.0",
53
- "@wordpress/data": "^10.18.0",
54
- "@wordpress/date": "^5.18.0",
55
- "@wordpress/deprecated": "^4.18.0",
56
- "@wordpress/dom": "^4.18.0",
57
- "@wordpress/element": "^6.18.0",
58
- "@wordpress/escape-html": "^3.18.0",
59
- "@wordpress/hooks": "^4.18.0",
60
- "@wordpress/html-entities": "^4.18.0",
61
- "@wordpress/i18n": "^5.18.0",
62
- "@wordpress/icons": "^10.18.0",
63
- "@wordpress/interactivity": "^6.18.0",
64
- "@wordpress/interactivity-router": "^2.18.0",
65
- "@wordpress/keyboard-shortcuts": "^5.18.0",
66
- "@wordpress/keycodes": "^4.18.0",
67
- "@wordpress/notices": "^5.18.0",
68
- "@wordpress/patterns": "^2.18.0",
69
- "@wordpress/primitives": "^4.18.0",
70
- "@wordpress/private-apis": "^1.18.0",
71
- "@wordpress/reusable-blocks": "^5.18.0",
72
- "@wordpress/rich-text": "^7.18.0",
73
- "@wordpress/server-side-render": "^5.18.0",
74
- "@wordpress/url": "^4.18.0",
75
- "@wordpress/viewport": "^6.18.0",
76
- "@wordpress/wordcount": "^4.18.0",
44
+ "@wordpress/a11y": "^4.19.1",
45
+ "@wordpress/api-fetch": "^7.19.1",
46
+ "@wordpress/autop": "^4.19.1",
47
+ "@wordpress/blob": "^4.19.1",
48
+ "@wordpress/block-editor": "^14.14.1",
49
+ "@wordpress/blocks": "^14.8.1",
50
+ "@wordpress/components": "^29.5.1",
51
+ "@wordpress/compose": "^7.19.1",
52
+ "@wordpress/core-data": "^7.19.1",
53
+ "@wordpress/data": "^10.19.1",
54
+ "@wordpress/date": "^5.19.1",
55
+ "@wordpress/deprecated": "^4.19.1",
56
+ "@wordpress/dom": "^4.19.1",
57
+ "@wordpress/element": "^6.19.1",
58
+ "@wordpress/escape-html": "^3.19.1",
59
+ "@wordpress/hooks": "^4.19.1",
60
+ "@wordpress/html-entities": "^4.19.1",
61
+ "@wordpress/i18n": "^5.19.1",
62
+ "@wordpress/icons": "^10.19.1",
63
+ "@wordpress/interactivity": "^6.19.1",
64
+ "@wordpress/interactivity-router": "^2.19.1",
65
+ "@wordpress/keyboard-shortcuts": "^5.19.1",
66
+ "@wordpress/keycodes": "^4.19.1",
67
+ "@wordpress/notices": "^5.19.1",
68
+ "@wordpress/patterns": "^2.19.1",
69
+ "@wordpress/primitives": "^4.19.1",
70
+ "@wordpress/private-apis": "^1.19.1",
71
+ "@wordpress/reusable-blocks": "^5.19.1",
72
+ "@wordpress/rich-text": "^7.19.1",
73
+ "@wordpress/server-side-render": "^5.19.1",
74
+ "@wordpress/url": "^4.19.1",
75
+ "@wordpress/viewport": "^6.19.1",
76
+ "@wordpress/wordcount": "^4.19.1",
77
77
  "change-case": "^4.1.2",
78
78
  "clsx": "^2.1.1",
79
79
  "colord": "^2.7.0",
@@ -91,5 +91,5 @@
91
91
  "publishConfig": {
92
92
  "access": "public"
93
93
  },
94
- "gitHead": "afe4fb333177642180ac020f1030c5685eab7183"
94
+ "gitHead": "6f49fee89f840761f7fedf662713cbd4a71723e9"
95
95
  }
@@ -514,6 +514,8 @@ function CoverEdit( {
514
514
  value={ overlayColor.color }
515
515
  onChange={ onSetOverlayColor }
516
516
  clearable={ false }
517
+ asButtons
518
+ aria-label={ __( 'Overlay color' ) }
517
519
  />
518
520
  </div>
519
521
  </CoverPlaceholder>
@@ -47,7 +47,7 @@ async function setup( attributes, useCoreBlocks, customSettings ) {
47
47
 
48
48
  async function createAndSelectBlock() {
49
49
  await userEvent.click(
50
- screen.getByRole( 'option', {
50
+ screen.getByRole( 'button', {
51
51
  name: 'Black',
52
52
  } )
53
53
  );
@@ -72,7 +72,7 @@ describe( 'Cover block', () => {
72
72
 
73
73
  test( 'can set overlay color using color picker on block placeholder', async () => {
74
74
  const { container } = await setup();
75
- const colorPicker = screen.getByRole( 'option', {
75
+ const colorPicker = screen.getByRole( 'button', {
76
76
  name: 'Black',
77
77
  } );
78
78
  await userEvent.click( colorPicker );
@@ -96,7 +96,7 @@ describe( 'Cover block', () => {
96
96
  await setup();
97
97
 
98
98
  await userEvent.click(
99
- screen.getByRole( 'option', {
99
+ screen.getByRole( 'button', {
100
100
  name: 'Black',
101
101
  } )
102
102
  );
@@ -389,7 +389,7 @@ describe( 'Cover block', () => {
389
389
  describe( 'isDark settings', () => {
390
390
  test( 'should toggle is-light class if background changed from light to dark', async () => {
391
391
  await setup();
392
- const colorPicker = screen.getByRole( 'option', {
392
+ const colorPicker = screen.getByRole( 'button', {
393
393
  name: 'White',
394
394
  } );
395
395
  await userEvent.click( colorPicker );
@@ -413,7 +413,7 @@ describe( 'Cover block', () => {
413
413
  } );
414
414
  test( 'should remove is-light class if overlay color is removed', async () => {
415
415
  await setup();
416
- const colorPicker = screen.getByRole( 'option', {
416
+ const colorPicker = screen.getByRole( 'button', {
417
417
  name: 'White',
418
418
  } );
419
419
  await userEvent.click( colorPicker );
@@ -426,7 +426,7 @@ describe( 'Cover block', () => {
426
426
  } )
427
427
  );
428
428
  await userEvent.click( screen.getByText( 'Overlay' ) );
429
- // The default color is black, so clicking the black color option will remove the background color,
429
+ // The default color is black, so clicking the black color button will remove the background color,
430
430
  // which should remove the isDark setting and assign the is-light class.
431
431
  const popupColorPicker = screen.getByRole( 'option', {
432
432
  name: 'White',
package/src/form/edit.js CHANGED
@@ -123,6 +123,7 @@ const Edit = ( { attributes, setAttributes, clientId } ) => {
123
123
  help={ __(
124
124
  'The email address where form submissions will be sent. Separate multiple email addresses with a comma.'
125
125
  ) }
126
+ type="email"
126
127
  />
127
128
  ) }
128
129
  </PanelBody>
@@ -159,6 +160,7 @@ const Edit = ( { attributes, setAttributes, clientId } ) => {
159
160
  help={ __(
160
161
  'The URL where the form should be submitted.'
161
162
  ) }
163
+ type="url"
162
164
  />
163
165
  </InspectorControls>
164
166
  ) }
package/src/image/view.js CHANGED
@@ -1,7 +1,12 @@
1
1
  /**
2
2
  * WordPress dependencies
3
3
  */
4
- import { store, getContext, getElement } from '@wordpress/interactivity';
4
+ import {
5
+ store,
6
+ getContext,
7
+ getElement,
8
+ withSyncEvent,
9
+ } from '@wordpress/interactivity';
5
10
 
6
11
  /**
7
12
  * Tracks whether user is touching screen; used to differentiate behavior for
@@ -128,7 +133,7 @@ const { state, actions, callbacks } = store(
128
133
  }, 450 );
129
134
  }
130
135
  },
131
- handleKeydown( event ) {
136
+ handleKeydown: withSyncEvent( ( event ) => {
132
137
  if ( state.overlayEnabled ) {
133
138
  // Focuses the close button when the user presses the tab key.
134
139
  if ( event.key === 'Tab' ) {
@@ -141,8 +146,8 @@ const { state, actions, callbacks } = store(
141
146
  actions.hideLightbox();
142
147
  }
143
148
  }
144
- },
145
- handleTouchMove( event ) {
149
+ } ),
150
+ handleTouchMove: withSyncEvent( ( event ) => {
146
151
  // On mobile devices, prevents triggering the scroll event because
147
152
  // otherwise the page jumps around when it resets the scroll position.
148
153
  // This also means that closing the lightbox requires that a user
@@ -152,7 +157,7 @@ const { state, actions, callbacks } = store(
152
157
  if ( state.overlayEnabled ) {
153
158
  event.preventDefault();
154
159
  }
155
- },
160
+ } ),
156
161
  handleTouchStart() {
157
162
  isTouching = true;
158
163
  },
@@ -126,6 +126,7 @@ export default function LatestPostsEdit( { attributes, setAttributes } ) {
126
126
  orderby: orderBy,
127
127
  per_page: postsToShow,
128
128
  _embed: 'wp:featuredmedia',
129
+ ignore_sticky: true,
129
130
  } ).filter( ( [ , value ] ) => typeof value !== 'undefined' )
130
131
  );
131
132
 
@@ -36,24 +36,24 @@ export default function useTemplatePartAreaLabel( clientId ) {
36
36
  return;
37
37
  }
38
38
 
39
+ const { getCurrentTheme, getEditedEntityRecord } =
40
+ select( coreStore );
41
+
42
+ const currentTheme = getCurrentTheme();
39
43
  const defaultTemplatePartAreas =
40
- select( coreStore ).getEntityRecord( 'root', '__unstableBase' )
41
- ?.default_template_part_areas || [];
44
+ currentTheme?.default_template_part_areas || [];
42
45
 
43
46
  const definedAreas = defaultTemplatePartAreas.map( ( item ) => ( {
44
47
  ...item,
45
48
  icon: getTemplatePartIcon( item.icon ),
46
49
  } ) );
47
50
 
48
- const { getCurrentTheme, getEditedEntityRecord } =
49
- select( coreStore );
50
-
51
51
  for ( const templatePartClientId of parentTemplatePartClientIds ) {
52
52
  const templatePartBlock = getBlock( templatePartClientId );
53
53
 
54
54
  // The 'area' usually isn't stored on the block, but instead
55
55
  // on the entity.
56
- const { theme = getCurrentTheme()?.stylesheet, slug } =
56
+ const { theme = currentTheme?.stylesheet, slug } =
57
57
  templatePartBlock.attributes;
58
58
  const templatePartEntityId = createTemplatePartId(
59
59
  theme,
@@ -1,7 +1,12 @@
1
1
  /**
2
2
  * WordPress dependencies
3
3
  */
4
- import { store, getContext, getElement } from '@wordpress/interactivity';
4
+ import {
5
+ store,
6
+ getContext,
7
+ getElement,
8
+ withSyncEvent,
9
+ } from '@wordpress/interactivity';
5
10
 
6
11
  const focusableSelectors = [
7
12
  'a[href]',
@@ -106,7 +111,7 @@ const { state, actions } = store(
106
111
  actions.openMenu( 'click' );
107
112
  }
108
113
  },
109
- handleMenuKeydown( event ) {
114
+ handleMenuKeydown: withSyncEvent( ( event ) => {
110
115
  const { type, firstFocusableElement, lastFocusableElement } =
111
116
  getContext();
112
117
  if ( state.menuOpenedBy.click ) {
@@ -137,7 +142,7 @@ const { state, actions } = store(
137
142
  }
138
143
  }
139
144
  }
140
- },
145
+ } ),
141
146
  handleMenuFocusout( event ) {
142
147
  const { modal, type } = getContext();
143
148
  // If focus is outside modal, and in the document, close menu
@@ -201,6 +201,7 @@ function Controls( { attributes, setAttributes, setIsLabelFieldFocused } ) {
201
201
  );
202
202
  } }
203
203
  autoComplete="off"
204
+ type="url"
204
205
  />
205
206
  </ToolsPanelItem>
206
207