[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/js/dist/ -> block-directory.js (summary)

(no description)

File Size: 2249 lines (77 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 59 functions

  __webpack_require__()
  getDefault()
  getModuleExports()
  ownKeys()
  _objectSpread()
  Icon()
  _iterableToArrayLimit()
  _slicedToArray()
  _objectWithoutProperties()
  _arrayWithoutHoles()
  _nonIterableSpread()
  _toConsumableArray()
  _arrayLikeToArray()
  _unsupportedIterableToArray()
  _iterableToArray()
  _arrayWithHoles()
  _nonIterableRest()
  _objectWithoutPropertiesLoose()
  ownKeys()
  _objectSpread()
  hasBlockType()
  isRequestingDownloadableBlocks()
  selectors_getDownloadableBlocks()
  getInstalledBlockTypes()
  isInstalling()
  getErrorNotices()
  getErrorNoticeForBlock()
  loadAssets()
  getPluginUrl()
  actions_ownKeys()
  actions_objectSpread()
  fetchDownloadableBlocks()
  receiveDownloadableBlocks()
  actions_installBlockType()
  actions_uninstallBlockType()
  addInstalledBlockType()
  removeInstalledBlockType()
  setIsInstalling()
  setErrorNotice()
  clearErrorNotice()
  store_ownKeys()
  store_objectSpread()
  AutoBlockUninstaller()
  DownloadableBlockAuthorInfo()
  Stars()
  DownloadableBlockIcon()
  DownloadableBlockHeader()
  DownloadableBlockInfo()
  DownloadableBlockListItem()
  DownloadableBlocksList()
  DownloadableBlocksPanel()
  InserterMenuDownloadableBlocksPanel()
  CompactList()
  InstalledBlocksPrePublishPanel()
  _defineProperty()
  asyncGeneratorStep()
  _asyncToGenerator()
  _next()
  _throw()

Functions
Functions that are not part of a class:

__webpack_require__(moduleId)   X-Ref
No description

getDefault()   X-Ref
No description

getModuleExports()   X-Ref
No description

ownKeys(object, enumerableOnly)   X-Ref
No description

_objectSpread(target)   X-Ref
No description

Icon(_ref)   X-Ref
Return an SVG icon.

return: {JSX.Element}  Icon component
param: {IconProps} props icon is the SVG component to render

_iterableToArrayLimit(arr, i)   X-Ref
No description

_slicedToArray(arr, i)   X-Ref
No description

_objectWithoutProperties(source, excluded)   X-Ref
No description

_arrayWithoutHoles(arr)   X-Ref
No description

_nonIterableSpread()   X-Ref
No description

_toConsumableArray(arr)   X-Ref
No description

_arrayLikeToArray(arr, len)   X-Ref
No description

_unsupportedIterableToArray(o, minLen)   X-Ref
No description

_iterableToArray(iter)   X-Ref
No description

_arrayWithHoles(arr)   X-Ref
No description

_nonIterableRest()   X-Ref
No description

_objectWithoutPropertiesLoose(source, excluded)   X-Ref
No description

ownKeys(object, enumerableOnly)   X-Ref
No description

_objectSpread(target)   X-Ref
No description

hasBlockType(blockType)   X-Ref
Check if a block list contains a specific block type. Recursively searches
through `innerBlocks` if they exist.

return: {boolean} Whether the blockType is found.
param: {Object} blockType A block object to search for.
param: {Object[]} blocks  The list of blocks to look through.

isRequestingDownloadableBlocks(state, filterValue)   X-Ref
Returns true if application is requesting for downloadable blocks.

return: {Array} Downloadable blocks
param: {Object} state Global application state.
param: {string} filterValue Search string.

selectors_getDownloadableBlocks(state, filterValue)   X-Ref
Returns the available uninstalled blocks

return: {Array} Downloadable blocks
param: {Object} state       Global application state.
param: {string} filterValue Search string.

getInstalledBlockTypes(state)   X-Ref
Returns the block types that have been installed on the server.

return: {Array} Block type items.
param: {Object} state Global application state.

isInstalling(state, blockId)   X-Ref
Returns true if application is calling install endpoint.

return: {boolean} Whether its currently installing
param: {Object} state Global application state.
param: {string} blockId Id of the block.

getErrorNotices(state)   X-Ref
Returns the error notices

return: {Object} Object with error notices.
param: {Object} state Global application state.

getErrorNoticeForBlock(state, blockId)   X-Ref
Returns the error notice for a given block.

return: {string|boolean} The error text, or false if no error.
param: {Object} state   Global application state.
param: {string} blockId The ID of the block plugin. eg: my-block

loadAssets(assets)   X-Ref
Load the asset files for a block

return: {Object} Control descriptor.
param: {Array} assets A collection of URLs for the assets.

getPluginUrl(block)   X-Ref
Get the plugin's direct API link out of a block-directory response.

return: {string} The plugin URL, if exists.
param: {Object} block The block object

actions_ownKeys(object, enumerableOnly)   X-Ref
No description

actions_objectSpread(target)   X-Ref
No description

fetchDownloadableBlocks(filterValue)   X-Ref
Returns an action object used in signalling that the downloadable blocks
have been requested and is loading.

return: {Object} Action object.
param: {string} filterValue Search string.

receiveDownloadableBlocks(downloadableBlocks, filterValue)   X-Ref
Returns an action object used in signalling that the downloadable blocks
have been updated.

return: {Object} Action object.
param: {Array}  downloadableBlocks Downloadable blocks.
param: {string} filterValue        Search string.

actions_installBlockType(block)   X-Ref
Action triggered to install a block plugin.

return: {boolean} Whether the block was successfully installed & loaded.
param: {Object} block The block item returned by search.

actions_uninstallBlockType(block)   X-Ref
Action triggered to uninstall a block plugin.

param: {Object} block The blockType object.

addInstalledBlockType(item)   X-Ref
Returns an action object used to add a newly installed block type.

return: {Object} Action object.
param: {Object} item The block item with the block id and name.

removeInstalledBlockType(item)   X-Ref
Returns an action object used to remove a newly installed block type.

return: {Object} Action object.
param: {string} item The block item with the block id and name.

setIsInstalling(blockId, isInstalling)   X-Ref
Returns an action object used to indicate install in progress

return: {Object} Action object.
param: {string} blockId
param: {boolean} isInstalling

setErrorNotice(blockId, message)   X-Ref
Sets an error notice string to be displayed to the user

return: {Object} Action object.
param: {string} blockId The ID of the block plugin. eg: my-block
param: {string} message  The message shown in the notice.
param: {boolean} isFatal Whether the user can recover from the error

clearErrorNotice(blockId)   X-Ref
Sets the error notice to empty for specific block

return: {Object} Action object.
param: {string} blockId The ID of the block plugin. eg: my-block

store_ownKeys(object, enumerableOnly)   X-Ref
No description

store_objectSpread(target)   X-Ref
No description

AutoBlockUninstaller()   X-Ref
No description

DownloadableBlockAuthorInfo(_ref)   X-Ref
No description

Stars(_ref)   X-Ref
No description

DownloadableBlockIcon(_ref)   X-Ref
No description

DownloadableBlockHeader(_ref)   X-Ref
No description

DownloadableBlockInfo(_ref)   X-Ref
No description

DownloadableBlockListItem(_ref)   X-Ref
No description

DownloadableBlocksList(_ref)   X-Ref
No description

DownloadableBlocksPanel(_ref)   X-Ref
No description

InserterMenuDownloadableBlocksPanel()   X-Ref
No description

CompactList(_ref)   X-Ref
Internal dependencies


InstalledBlocksPrePublishPanel()   X-Ref
Internal dependencies


_defineProperty(obj, key, value)   X-Ref
No description

asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg)   X-Ref
No description

_asyncToGenerator(fn)   X-Ref
No description

_next(value)   X-Ref
No description

_throw(err)   X-Ref
No description



Generated: Fri Sep 25 01:00:03 2020 Cross-referenced by PHPXref 0.7.1