[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

(no description)

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

Defines 41 functions

  __webpack_require__()
  getDefault()
  getModuleExports()
  _arrayWithoutHoles()
  _nonIterableSpread()
  _toConsumableArray()
  _iterableToArrayLimit()
  _slicedToArray()
  _iterableToArray()
  _arrayWithHoles()
  _nonIterableRest()
  ownKeys()
  _objectSpread()
  reducer_hasPermission()
  isRequestingDownloadableBlocks()
  selectors_getDownloadableBlocks()
  selectors_hasInstallBlocksPermission()
  getInstalledBlockTypes()
  controls_ownKeys()
  controls_objectSpread()
  controls_select()
  controls_dispatch()
  apiFetch()
  loadAssets()
  fetchDownloadableBlocks()
  receiveDownloadableBlocks()
  setInstallBlocksPermission()
  actions_downloadBlock()
  actions_installBlock()
  uninstallBlock()
  addInstalledBlockType()
  removeInstalledBlockType()
  Stars()
  DownloadableBlockHeader()
  DownloadableBlockAuthorInfo()
  DownloadableBlockInfo()
  DownloadableBlockListItem()
  DownloadableBlocksList()
  DownloadableBlocksPanel()
  InserterMenuDownloadableBlocksPanel()
  _defineProperty()

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

_arrayWithoutHoles(arr)   X-Ref
No description

_nonIterableSpread()   X-Ref
No description

_toConsumableArray(arr)   X-Ref
No description

_iterableToArrayLimit(arr, i)   X-Ref
No description

_slicedToArray(arr, i)   X-Ref
No description

_iterableToArray(iter)   X-Ref
No description

_arrayWithHoles(arr)   X-Ref
No description

_nonIterableRest()   X-Ref
No description

ownKeys(object, enumerableOnly)   X-Ref
No description

_objectSpread(target)   X-Ref
No description

reducer_hasPermission()   X-Ref
Reducer returns whether the user can install blocks.

return: {Object} Updated state.
param: {Object} state  Current state.
param: {Object} action Dispatched action.

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

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

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.

selectors_hasInstallBlocksPermission(state)   X-Ref
Returns true if user has permission to install blocks.

return: {boolean} User has permission to install blocks.
param: {Object} state Global application state.

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.

controls_ownKeys(object, enumerableOnly)   X-Ref
No description

controls_objectSpread(target)   X-Ref
No description

controls_select(storeName, selectorName)   X-Ref
Calls a selector using the current state.

return: {Object} Control descriptor.
param: {string} storeName    Store name.
param: {string} selectorName Selector name.
param: {Array}  args         Selector arguments.

controls_dispatch(storeName, dispatcherName)   X-Ref
Calls a dispatcher using the current state.

return: {Object} Control descriptor.
param: {string} storeName      Store name.
param: {string} dispatcherName Dispatcher name.
param: {Array}  args           Selector arguments.

apiFetch(request)   X-Ref
Trigger an API Fetch request.

return: {Object} Control descriptor.
param: {Object} request API Fetch Request Object.

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

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

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

return: {Object} Action object.

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.

setInstallBlocksPermission(hasPermission)   X-Ref
Returns an action object used in signalling that the user does not have permission to install blocks.

return: {Object} Action object.

actions_downloadBlock(item, onSuccess, onError)   X-Ref
Action triggered to download block assets.

param: {Object} item The selected block item
param: {Function} onSuccess The callback function when the action has succeeded.
param: {Function} onError The callback function when the action has failed.

actions_installBlock(_ref, onSuccess, onError)   X-Ref
Action triggered to install a block plugin.

param: {string} item The block item returned by search.
param: {Function} onSuccess The callback function when the action has succeeded.
param: {Function} onError The callback function when the action has failed.

uninstallBlock(_ref2, onSuccess, onError)   X-Ref
Action triggered to uninstall a block plugin.

param: {string} item The block item returned by search.
param: {Function} onSuccess The callback function when the action has succeeded.
param: {Function} onError The callback function when the action has failed.

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

return: {Object} Action object.
param: {string} 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.

Stars(_ref)   X-Ref
No description

DownloadableBlockHeader(_ref)   X-Ref
No description

DownloadableBlockAuthorInfo(_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

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



Generated : Wed Dec 2 08:20:02 2020 Cross-referenced by PHPXref