@wordpress/block-directory 3.16.1-next.4d3b314fd5.0 → 3.18.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
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/block-directory",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.18.0",
|
|
4
4
|
"description": "Extend editor with block directory features to search, download and install blocks.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -26,24 +26,24 @@
|
|
|
26
26
|
"react-native": "src/index",
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@babel/runtime": "^7.16.0",
|
|
29
|
-
"@wordpress/a11y": "^3.
|
|
30
|
-
"@wordpress/api-fetch": "^6.
|
|
31
|
-
"@wordpress/block-editor": "^10.
|
|
32
|
-
"@wordpress/blocks": "^11.
|
|
33
|
-
"@wordpress/components": "^21.
|
|
34
|
-
"@wordpress/compose": "^5.
|
|
35
|
-
"@wordpress/core-data": "^5.
|
|
36
|
-
"@wordpress/data": "^7.
|
|
37
|
-
"@wordpress/edit-post": "^6.
|
|
38
|
-
"@wordpress/editor": "^12.
|
|
39
|
-
"@wordpress/element": "^4.
|
|
40
|
-
"@wordpress/hooks": "^3.
|
|
41
|
-
"@wordpress/html-entities": "^3.
|
|
42
|
-
"@wordpress/i18n": "^4.
|
|
43
|
-
"@wordpress/icons": "^9.
|
|
44
|
-
"@wordpress/notices": "^3.
|
|
45
|
-
"@wordpress/plugins": "^4.
|
|
46
|
-
"@wordpress/url": "^3.
|
|
29
|
+
"@wordpress/a11y": "^3.20.0",
|
|
30
|
+
"@wordpress/api-fetch": "^6.17.0",
|
|
31
|
+
"@wordpress/block-editor": "^10.3.0",
|
|
32
|
+
"@wordpress/blocks": "^11.19.0",
|
|
33
|
+
"@wordpress/components": "^21.3.0",
|
|
34
|
+
"@wordpress/compose": "^5.18.0",
|
|
35
|
+
"@wordpress/core-data": "^5.3.0",
|
|
36
|
+
"@wordpress/data": "^7.4.0",
|
|
37
|
+
"@wordpress/edit-post": "^6.17.0",
|
|
38
|
+
"@wordpress/editor": "^12.19.0",
|
|
39
|
+
"@wordpress/element": "^4.18.0",
|
|
40
|
+
"@wordpress/hooks": "^3.20.0",
|
|
41
|
+
"@wordpress/html-entities": "^3.20.0",
|
|
42
|
+
"@wordpress/i18n": "^4.20.0",
|
|
43
|
+
"@wordpress/icons": "^9.11.0",
|
|
44
|
+
"@wordpress/notices": "^3.20.0",
|
|
45
|
+
"@wordpress/plugins": "^4.18.0",
|
|
46
|
+
"@wordpress/url": "^3.21.0",
|
|
47
47
|
"change-case": "^4.1.2"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"access": "public"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "a2ff0e6471c88436dad0287beb88d1729aa6f5dd"
|
|
57
57
|
}
|
|
@@ -33,8 +33,8 @@ describe( 'DownloadableBlockListItem', () => {
|
|
|
33
33
|
);
|
|
34
34
|
const author = screen.queryByText( `by ${ plugin.author }` );
|
|
35
35
|
const description = screen.queryByText( plugin.description );
|
|
36
|
-
expect( author ).
|
|
37
|
-
expect( description ).
|
|
36
|
+
expect( author ).toBeInTheDocument();
|
|
37
|
+
expect( description ).toBeInTheDocument();
|
|
38
38
|
} );
|
|
39
39
|
|
|
40
40
|
it( 'should show installing status when installing the block', () => {
|
|
@@ -47,7 +47,7 @@ describe( 'DownloadableBlockListItem', () => {
|
|
|
47
47
|
<DownloadableBlockListItem onClick={ jest.fn() } item={ plugin } />
|
|
48
48
|
);
|
|
49
49
|
const statusLabel = screen.queryByText( 'Installing…' );
|
|
50
|
-
expect( statusLabel ).
|
|
50
|
+
expect( statusLabel ).toBeInTheDocument();
|
|
51
51
|
} );
|
|
52
52
|
|
|
53
53
|
it( "should be disabled when a plugin can't be installed", () => {
|
|
@@ -62,7 +62,7 @@ describe( 'DownloadableBlockListItem', () => {
|
|
|
62
62
|
const button = screen.getByRole( 'option' );
|
|
63
63
|
// Keeping it false to avoid focus loss and disable it using aria-disabled.
|
|
64
64
|
expect( button.disabled ).toBe( false );
|
|
65
|
-
expect( button.
|
|
65
|
+
expect( button ).toHaveAttribute( 'aria-disabled', 'true' );
|
|
66
66
|
} );
|
|
67
67
|
|
|
68
68
|
it( 'should try to install the block plugin', async () => {
|
|
@@ -31,7 +31,7 @@ describe( 'DownloadableBlocksList', () => {
|
|
|
31
31
|
isInstallable: true,
|
|
32
32
|
} ) );
|
|
33
33
|
|
|
34
|
-
it( 'should render
|
|
34
|
+
it( 'should render an empty list', () => {
|
|
35
35
|
const { container } = render(
|
|
36
36
|
<DownloadableBlocksList
|
|
37
37
|
items={ [] }
|
|
@@ -40,7 +40,7 @@ describe( 'DownloadableBlocksList', () => {
|
|
|
40
40
|
/>
|
|
41
41
|
);
|
|
42
42
|
|
|
43
|
-
expect( container
|
|
43
|
+
expect( container ).toBeEmptyDOMElement();
|
|
44
44
|
} );
|
|
45
45
|
|
|
46
46
|
it( 'should render plugins items into the list', () => {
|