[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/js/dist/ -> reusable-blocks.js (summary)

(no description)

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

Defines 22 functions

  __webpack_require__()
  getDefault()
  getModuleExports()
  asyncGeneratorStep()
  _asyncToGenerator()
  _next()
  _throw()
  convertBlockToStatic()
  controls_convertBlocksToReusable()
  controls_deleteReusableBlock()
  __experimentalConvertBlockToStatic()
  __experimentalConvertBlocksToReusable()
  __experimentalDeleteReusableBlock()
  __experimentalSetEditingReusableBlock()
  ownKeys()
  _objectSpread()
  isEditingReusableBlock()
  __experimentalIsEditingReusableBlock()
  ReusableBlockConvertButton()
  ReusableBlockDeleteButton()
  ReusableBlocksMenuItems()
  _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

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

convertBlockToStatic(clientId)   X-Ref
Convert a reusable block to a static block effect handler

param: {string}  clientId Block ID.
return: {Object} control descriptor.

controls_convertBlocksToReusable(clientIds)   X-Ref
Convert a static block to a reusable block effect handler

param: {Array}  clientIds Block IDs.
return: {Object} control descriptor.

controls_deleteReusableBlock(id)   X-Ref
Deletes a reusable block.

param: {string} id Reusable block ID.
return: {Object} control descriptor.

__experimentalConvertBlockToStatic(clientId)   X-Ref
Returns a generator converting a reusable block into a static block.

param: {string} clientId The client ID of the block to attach.

__experimentalConvertBlocksToReusable(clientIds)   X-Ref
Returns a generator converting one or more static blocks into a reusable block.

param: {string[]} clientIds The client IDs of the block to detach.

__experimentalDeleteReusableBlock(id)   X-Ref
Returns a generator deleting a reusable block.

param: {string} id The ID of the reusable block to delete.

__experimentalSetEditingReusableBlock(clientId, isEditing)   X-Ref
Returns an action descriptor for SET_EDITING_REUSABLE_BLOCK action.

param: {string} clientId The clientID of the reusable block to target.
param: {boolean} isEditing Whether the block should be in editing state.
return: {Object} Action descriptor.

ownKeys(object, enumerableOnly)   X-Ref
No description

_objectSpread(target)   X-Ref
No description

isEditingReusableBlock()   X-Ref
WordPress dependencies


__experimentalIsEditingReusableBlock(state, clientId)   X-Ref
Returns true if reusable block is in the editing state.

param: {Object} state Global application state.
param: {number} clientId the clientID of the block.
return: {boolean} Whether the reusable block is in the editing state.

ReusableBlockConvertButton(_ref)   X-Ref
Menu control to convert block(s) to reusable block.

param: {Object}   props              Component props.
param: {string[]} props.clientIds    Client ids of selected blocks.
param: {string}   props.rootClientId ID of the currently selected top-level block.
return: {import('@wordpress/element').WPComponent} The menu control or null.

ReusableBlockDeleteButton(_ref)   X-Ref
No description

ReusableBlocksMenuItems(_ref)   X-Ref
No description

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



Generated : Mon Jan 18 08:20:02 2021 Cross-referenced by PHPXref