@wordpress/block-library 10.0.1 → 10.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 +2 -0
- package/package.json +40 -40
- package/src/cover/test/edit.js +0 -38
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/block-library",
|
|
3
|
-
"version": "10.0
|
|
3
|
+
"version": "10.1.0",
|
|
4
4
|
"description": "Block library for the WordPress editor.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -92,44 +92,44 @@
|
|
|
92
92
|
],
|
|
93
93
|
"dependencies": {
|
|
94
94
|
"@arraypress/waveform-player": "^1.2.1",
|
|
95
|
-
"@wordpress/a11y": "^4.
|
|
96
|
-
"@wordpress/api-fetch": "^7.
|
|
97
|
-
"@wordpress/autop": "^4.
|
|
98
|
-
"@wordpress/base-styles": "^10.
|
|
99
|
-
"@wordpress/blob": "^4.
|
|
100
|
-
"@wordpress/block-editor": "^15.
|
|
101
|
-
"@wordpress/blocks": "^15.
|
|
102
|
-
"@wordpress/components": "^36.0
|
|
103
|
-
"@wordpress/compose": "^8.
|
|
104
|
-
"@wordpress/core-data": "^7.
|
|
105
|
-
"@wordpress/data": "^10.
|
|
106
|
-
"@wordpress/date": "^5.
|
|
107
|
-
"@wordpress/deprecated": "^4.
|
|
108
|
-
"@wordpress/dom": "^4.
|
|
109
|
-
"@wordpress/element": "^8.
|
|
110
|
-
"@wordpress/escape-html": "^3.
|
|
111
|
-
"@wordpress/hooks": "^4.
|
|
112
|
-
"@wordpress/html-entities": "^4.
|
|
113
|
-
"@wordpress/i18n": "^6.
|
|
114
|
-
"@wordpress/icons": "^15.
|
|
115
|
-
"@wordpress/interactivity": "^6.
|
|
116
|
-
"@wordpress/interactivity-router": "^2.
|
|
117
|
-
"@wordpress/keyboard-shortcuts": "^5.
|
|
118
|
-
"@wordpress/keycodes": "^4.
|
|
119
|
-
"@wordpress/latex-to-mathml": "^1.
|
|
120
|
-
"@wordpress/notices": "^5.
|
|
121
|
-
"@wordpress/patterns": "^2.
|
|
122
|
-
"@wordpress/primitives": "^4.
|
|
123
|
-
"@wordpress/private-apis": "^1.
|
|
124
|
-
"@wordpress/reusable-blocks": "^5.
|
|
125
|
-
"@wordpress/rich-text": "^7.
|
|
126
|
-
"@wordpress/server-side-render": "^6.
|
|
127
|
-
"@wordpress/shortcode": "^4.
|
|
128
|
-
"@wordpress/ui": "^0.
|
|
129
|
-
"@wordpress/upload-media": "^0.
|
|
130
|
-
"@wordpress/url": "^4.
|
|
131
|
-
"@wordpress/viewport": "^6.
|
|
132
|
-
"@wordpress/wordcount": "^4.
|
|
95
|
+
"@wordpress/a11y": "^4.50.0",
|
|
96
|
+
"@wordpress/api-fetch": "^7.50.0",
|
|
97
|
+
"@wordpress/autop": "^4.50.0",
|
|
98
|
+
"@wordpress/base-styles": "^10.2.0",
|
|
99
|
+
"@wordpress/blob": "^4.50.0",
|
|
100
|
+
"@wordpress/block-editor": "^15.23.0",
|
|
101
|
+
"@wordpress/blocks": "^15.23.0",
|
|
102
|
+
"@wordpress/components": "^36.1.0",
|
|
103
|
+
"@wordpress/compose": "^8.3.0",
|
|
104
|
+
"@wordpress/core-data": "^7.50.0",
|
|
105
|
+
"@wordpress/data": "^10.50.0",
|
|
106
|
+
"@wordpress/date": "^5.50.0",
|
|
107
|
+
"@wordpress/deprecated": "^4.50.0",
|
|
108
|
+
"@wordpress/dom": "^4.50.0",
|
|
109
|
+
"@wordpress/element": "^8.2.0",
|
|
110
|
+
"@wordpress/escape-html": "^3.50.0",
|
|
111
|
+
"@wordpress/hooks": "^4.50.0",
|
|
112
|
+
"@wordpress/html-entities": "^4.50.0",
|
|
113
|
+
"@wordpress/i18n": "^6.23.0",
|
|
114
|
+
"@wordpress/icons": "^15.1.0",
|
|
115
|
+
"@wordpress/interactivity": "^6.50.0",
|
|
116
|
+
"@wordpress/interactivity-router": "^2.50.0",
|
|
117
|
+
"@wordpress/keyboard-shortcuts": "^5.50.0",
|
|
118
|
+
"@wordpress/keycodes": "^4.50.0",
|
|
119
|
+
"@wordpress/latex-to-mathml": "^1.18.0",
|
|
120
|
+
"@wordpress/notices": "^5.50.0",
|
|
121
|
+
"@wordpress/patterns": "^2.50.0",
|
|
122
|
+
"@wordpress/primitives": "^4.50.0",
|
|
123
|
+
"@wordpress/private-apis": "^1.50.0",
|
|
124
|
+
"@wordpress/reusable-blocks": "^5.50.0",
|
|
125
|
+
"@wordpress/rich-text": "^7.50.0",
|
|
126
|
+
"@wordpress/server-side-render": "^6.26.0",
|
|
127
|
+
"@wordpress/shortcode": "^4.50.0",
|
|
128
|
+
"@wordpress/ui": "^0.17.0",
|
|
129
|
+
"@wordpress/upload-media": "^0.35.0",
|
|
130
|
+
"@wordpress/url": "^4.50.0",
|
|
131
|
+
"@wordpress/viewport": "^6.50.0",
|
|
132
|
+
"@wordpress/wordcount": "^4.50.0",
|
|
133
133
|
"change-case": "^4.1.2",
|
|
134
134
|
"clsx": "^2.1.1",
|
|
135
135
|
"colord": "^2.9.3",
|
|
@@ -160,5 +160,5 @@
|
|
|
160
160
|
"publishConfig": {
|
|
161
161
|
"access": "public"
|
|
162
162
|
},
|
|
163
|
-
"gitHead": "
|
|
163
|
+
"gitHead": "fee6e24e8e63d36f6bbcf487c193461e9bd79753"
|
|
164
164
|
}
|
package/src/cover/test/edit.js
CHANGED
|
@@ -108,19 +108,6 @@ async function openStylesTabIfAvailable() {
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
async function selectViewportState( name ) {
|
|
112
|
-
await userEvent.click(
|
|
113
|
-
screen.getByRole( 'button', {
|
|
114
|
-
name: 'State: Default',
|
|
115
|
-
} )
|
|
116
|
-
);
|
|
117
|
-
await userEvent.click(
|
|
118
|
-
screen.getByRole( 'menuitem', {
|
|
119
|
-
name,
|
|
120
|
-
} )
|
|
121
|
-
);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
111
|
describe( 'Cover block', () => {
|
|
125
112
|
describe( 'Editor canvas', () => {
|
|
126
113
|
test( 'shows placeholder if background image and color not set', async () => {
|
|
@@ -431,31 +418,6 @@ describe( 'Cover block', () => {
|
|
|
431
418
|
expect( opacityControl ).not.toBeInTheDocument();
|
|
432
419
|
} );
|
|
433
420
|
} );
|
|
434
|
-
|
|
435
|
-
test( 'does not render overlay controls when a viewport state is selected', async () => {
|
|
436
|
-
await setup();
|
|
437
|
-
await createAndSelectBlock();
|
|
438
|
-
await openStylesTabIfAvailable();
|
|
439
|
-
|
|
440
|
-
expect(
|
|
441
|
-
screen.getByRole( 'button', {
|
|
442
|
-
name: 'Overlay',
|
|
443
|
-
} )
|
|
444
|
-
).toBeInTheDocument();
|
|
445
|
-
|
|
446
|
-
await selectViewportState( 'Tablet' );
|
|
447
|
-
|
|
448
|
-
expect(
|
|
449
|
-
screen.queryByRole( 'button', {
|
|
450
|
-
name: 'Overlay',
|
|
451
|
-
} )
|
|
452
|
-
).not.toBeInTheDocument();
|
|
453
|
-
expect(
|
|
454
|
-
screen.queryByRole( 'slider', {
|
|
455
|
-
name: 'Overlay opacity',
|
|
456
|
-
} )
|
|
457
|
-
).not.toBeInTheDocument();
|
|
458
|
-
} );
|
|
459
421
|
} );
|
|
460
422
|
|
|
461
423
|
describe( 'Dimensions panel', () => {
|