Block directory


目录

Namespace: core/block-directory.

Selectors

getDownloadableBlocks

Returns the available uninstalled blocks.

Parameters

Returns

getErrorNoticeForBlock

Returns the error notice for a given block.

Parameters

Returns

getErrorNotices

Returns all block error notices.

Parameters

Returns

getInstalledBlockTypes

Returns the block types that have been installed on the server in this session.

Parameters

Returns

getNewBlockTypes

Returns block types that have been installed on the server and used in the current post.

Parameters

Returns

getUnusedBlockTypes

Returns the block types that have been installed on the server but are not used in the current post.

Parameters

Returns

isInstalling

Returns true if a block plugin install is in progress.

Parameters

Returns

isRequestingDownloadableBlocks

Returns true if application is requesting for downloadable blocks.

Parameters

Returns

Actions

addInstalledBlockType

Returns an action object used to add a block type to the “newly installed” tracking list.

Parameters

Returns

clearErrorNotice

Sets the error notice to empty for specific block.

Parameters

Returns

fetchDownloadableBlocks

Returns an action object used in signalling that the downloadable blocks have been requested and are loading.

Parameters

Returns

installBlockType

Action triggered to install a block plugin.

Parameters

Returns

receiveDownloadableBlocks

Returns an action object used in signalling that the downloadable blocks have been updated.

Parameters

Returns

removeInstalledBlockType

Returns an action object used to remove a block type from the “newly installed” tracking list.

Parameters

Returns

setErrorNotice

Sets an error notice to be displayed to the user for a given block.

Parameters

Returns

setIsInstalling

Returns an action object used to indicate install in progress.

Parameters

Returns

uninstallBlockType

Action triggered to uninstall a block plugin.

Parameters


版本号 #2
由 壳壳虫 创建于 2026-10-31 18:23:35 UTC
由 壳壳虫 更新于 2026-10-31 18:23:37 UTC