diff --git a/package-lock.json b/package-lock.json index d68148a2a075fc..d83bef6a9ca5a8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17707,7 +17707,6 @@ "@wordpress/notices": "file:packages/notices", "@wordpress/plugins": "file:packages/plugins", "@wordpress/primitives": "file:packages/primitives", - "@wordpress/reusable-blocks": "file:packages/reusable-blocks", "@wordpress/url": "file:packages/url", "@wordpress/viewport": "file:packages/viewport", "@wordpress/warning": "file:packages/warning", diff --git a/packages/block-directory/src/store/actions.js b/packages/block-directory/src/store/actions.js index 5f134e67820556..d807078e994034 100644 --- a/packages/block-directory/src/store/actions.js +++ b/packages/block-directory/src/store/actions.js @@ -1,6 +1,7 @@ /** * WordPress dependencies */ +import { store as blocksStore } from '@wordpress/blocks'; import { __ } from '@wordpress/i18n'; import { controls } from '@wordpress/data'; import { apiFetch } from '@wordpress/data-controls'; @@ -85,7 +86,7 @@ export function* installBlockType( block ) { yield loadAssets( assets ); const registeredBlocks = yield controls.select( - 'core/blocks', + blocksStore.name, 'getBlockTypes' ); if ( ! registeredBlocks.some( ( i ) => i.name === block.name ) ) { diff --git a/packages/block-directory/src/store/test/actions.js b/packages/block-directory/src/store/test/actions.js index 037a585f4facb0..51c694b41c35a0 100644 --- a/packages/block-directory/src/store/test/actions.js +++ b/packages/block-directory/src/store/test/actions.js @@ -1,3 +1,8 @@ +/** + * WordPress dependencies + */ +import { store as blocksStore } from '@wordpress/blocks'; + /** * Internal dependencies */ @@ -80,7 +85,7 @@ describe( 'actions', () => { expect( generator.next().value ).toEqual( { args: [], selectorName: 'getBlockTypes', - storeKey: 'core/blocks', + storeKey: blocksStore.name, type: '@@data/SELECT', } ); @@ -142,7 +147,7 @@ describe( 'actions', () => { expect( generator.next().value ).toEqual( { args: [], selectorName: 'getBlockTypes', - storeKey: 'core/blocks', + storeKey: blocksStore.name, type: '@@data/SELECT', } ); diff --git a/packages/block-editor/src/index.js b/packages/block-editor/src/index.js index 1e12ca9f4acaed..4ee2b146d46321 100644 --- a/packages/block-editor/src/index.js +++ b/packages/block-editor/src/index.js @@ -1,9 +1,7 @@ /** * WordPress dependencies */ -import '@wordpress/blocks'; import '@wordpress/rich-text'; -import '@wordpress/keyboard-shortcuts'; import '@wordpress/notices'; /** diff --git a/packages/block-library/src/index.js b/packages/block-library/src/index.js index b5b7493bef6f65..03d774d1f265ea 100644 --- a/packages/block-library/src/index.js +++ b/packages/block-library/src/index.js @@ -4,7 +4,6 @@ import '@wordpress/core-data'; import '@wordpress/notices'; import '@wordpress/block-editor'; -import '@wordpress/reusable-blocks'; import { registerBlockType, setDefaultBlockName, diff --git a/packages/edit-post/package.json b/packages/edit-post/package.json index 6447ac08981dfb..88390a3908c201 100644 --- a/packages/edit-post/package.json +++ b/packages/edit-post/package.json @@ -46,7 +46,6 @@ "@wordpress/notices": "file:../notices", "@wordpress/plugins": "file:../plugins", "@wordpress/primitives": "file:../primitives", - "@wordpress/reusable-blocks": "file:../reusable-blocks", "@wordpress/url": "file:../url", "@wordpress/viewport": "file:../viewport", "@wordpress/warning": "file:../warning", diff --git a/packages/edit-post/src/index.js b/packages/edit-post/src/index.js index fbf411d2c5d52f..7739d278e39a86 100644 --- a/packages/edit-post/src/index.js +++ b/packages/edit-post/src/index.js @@ -4,8 +4,6 @@ import '@wordpress/core-data'; import '@wordpress/block-editor'; import '@wordpress/editor'; -import '@wordpress/keyboard-shortcuts'; -import '@wordpress/reusable-blocks'; import '@wordpress/notices'; import { registerCoreBlocks, diff --git a/packages/edit-post/src/index.native.js b/packages/edit-post/src/index.native.js index 6d09caa3d83094..5d886568af6f87 100644 --- a/packages/edit-post/src/index.native.js +++ b/packages/edit-post/src/index.native.js @@ -4,7 +4,6 @@ import '@wordpress/core-data'; import '@wordpress/notices'; import '@wordpress/format-library'; -import '@wordpress/reusable-blocks'; import { render } from '@wordpress/element'; /** diff --git a/packages/edit-widgets/src/index.js b/packages/edit-widgets/src/index.js index 303b4994a79ee9..260463ad0bac91 100644 --- a/packages/edit-widgets/src/index.js +++ b/packages/edit-widgets/src/index.js @@ -12,7 +12,6 @@ import { __experimentalGetCoreBlocks, __experimentalRegisterExperimentalCoreBlocks, } from '@wordpress/block-library'; -import '@wordpress/reusable-blocks'; /** * Internal dependencies diff --git a/packages/editor/src/index.js b/packages/editor/src/index.js index 0a58cd215cd754..da59299f171865 100644 --- a/packages/editor/src/index.js +++ b/packages/editor/src/index.js @@ -2,11 +2,8 @@ * WordPress dependencies */ import '@wordpress/block-editor'; -import '@wordpress/blocks'; import '@wordpress/core-data'; -import '@wordpress/keyboard-shortcuts'; import '@wordpress/notices'; -import '@wordpress/reusable-blocks'; import '@wordpress/rich-text'; /** diff --git a/packages/editor/src/index.native.js b/packages/editor/src/index.native.js index d3d3d52c24cee3..35fcddf0b80030 100644 --- a/packages/editor/src/index.native.js +++ b/packages/editor/src/index.native.js @@ -2,7 +2,6 @@ * WordPress dependencies */ import '@wordpress/block-editor'; -import '@wordpress/blocks'; import '@wordpress/core-data'; import '@wordpress/rich-text';