[ 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.

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

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

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

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

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

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

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

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

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

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.

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

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

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

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

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

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

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

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.

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

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.

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

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

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

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 : Thu Nov 21 08:20:01 2024 Cross-referenced by PHPXref