[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

(no description)

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

Defines 405 functions

  __webpack_require__()
  getDefault()
  getModuleExports()
  _classCallCheck()
  _possibleConstructorReturn()
  __()
  TextareaAutosize()
  assign()
  init()
  changeOverflow()
  getParentOverflows()
  resize()
  update()
  destroy()
  update()
  lineHeight()
  scrollIntoView()
  getClientPosition()
  getScroll()
  getScrollLeft()
  getScrollTop()
  getOffset()
  _getComputedStyle()
  _getComputedStyleIE()
  each()
  isBorderBoxFn()
  swap()
  getPBMWidth()
  isWindow()
  getWH()
  getWHIgnoreDisplay()
  css()
  setOffset()
  _getPrototypeOf()
  _setPrototypeOf()
  _inherits()
  _defineProperty()
  classNames()
  _arrayWithoutHoles()
  _nonIterableSpread()
  _toConsumableArray()
  _extends()
  __webpack_require__()
  _interopRequireDefault()
  Diff()
  done()
  execEditLength()
  buildValues()
  clonePath()
  _interopRequireDefault()
  diffChars()
  _interopRequireDefault()
  diffWords()
  diffWordsWithSpace()
  generateOptions()
  _interopRequireDefault()
  diffLines()
  diffTrimmedLines()
  _interopRequireDefault()
  diffSentences()
  _interopRequireDefault()
  diffCss()
  _interopRequireDefault()
  diffJson()
  canonicalize()
  _interopRequireDefault()
  diffArrays()
  _interopRequireDefault()
  applyPatch()
  hunkFits()
  applyPatches()
  processIndex()
  parsePatch()
  parseIndex()
  parseFileHeader()
  parseHunk()
  _toConsumableArray()
  calcLineCount()
  merge()
  loadPatch()
  fileNameChanged()
  selectField()
  hunkBefore()
  cloneHunk()
  mergeLines()
  mutualChange()
  removal()
  conflict()
  insertLeading()
  insertTrailing()
  collectChange()
  collectContext()
  allRemoves()
  skipRemoveSuperset()
  calcOldNewLineCount()
  _toConsumableArray()
  structuredPatch()
  contextLines()
  createTwoFilesPatch()
  createPatch()
  arrayEqual()
  arrayStartsWith()
  convertChangesToDMP()
  convertChangesToXML()
  escapeHTML()
  _objectWithoutPropertiesLoose()
  _objectWithoutProperties()
  _iterableToArrayLimit()
  _slicedToArray()
  _assertThisInitialized()
  arrayOf()
  isObjectLike()
  createCache()
  isShallowEqual()
  getRootCache()
  getWeakMapCache()
  clear()
  callSelector()
  _typeof2()
  _typeof()
  _iterableToArray()
  insertAt()
  moveTo()
  mapBlockOrder()
  flattenBlocks()
  getFlattenedBlocksWithoutAttributes()
  getFlattenedBlockAttributes()
  getNestedBlockClientIds()
  getMutateSafeObject()
  hasSameKeys()
  isUpdatingSameBlockAttribute()
  withPersistentBlockChange()
  withIgnoredBlockChange()
  reducer_isTyping()
  reducer_isCaretWithinFormattedText()
  blockSelection()
  blocksMode()
  insertionPoint()
  reducer_template()
  reducer_settings()
  preferences()
  controls_select()
  ensureDefaultBlock()
  resetBlocks()
  receiveBlocks()
  updateBlockAttributes()
  updateBlock()
  actions_selectBlock()
  selectPreviousBlock()
  selectNextBlock()
  startMultiSelect()
  stopMultiSelect()
  actions_multiSelect()
  clearSelectedBlock()
  toggleSelection()
  actions_replaceBlocks()
  replaceBlock()
  createOnMove()
  moveBlockToPosition()
  actions_insertBlock()
  actions_insertBlocks()
  actions_showInsertionPoint()
  actions_hideInsertionPoint()
  setTemplateValidity()
  synchronizeTemplate()
  mergeBlocks()
  actions_removeBlocks()
  removeBlock()
  actions_replaceInnerBlocks()
  toggleBlockMode()
  startTyping()
  stopTyping()
  enterFormattedText()
  exitFormattedText()
  actions_insertDefaultBlock()
  updateBlockListSettings()
  updateSettings()
  __unstableSaveReusableBlock()
  __unstableMarkLastChangeAsPersistent()
  selectors_getBlockName()
  selectors_isBlockValid()
  selectors_getBlockCount()
  getBlockSelectionStart()
  getBlockSelectionEnd()
  selectors_getSelectedBlockCount()
  hasSelectedBlock()
  selectors_getSelectedBlockClientId()
  selectors_getSelectedBlock()
  getAdjacentBlockClientId()
  getPreviousBlockClientId()
  getNextBlockClientId()
  selectors_getSelectedBlocksInitialCaretPosition()
  getFirstMultiSelectedBlockClientId()
  getLastMultiSelectedBlockClientId()
  selectors_isFirstMultiSelectedBlock()
  selectors_isBlockMultiSelected()
  getMultiSelectedBlocksStartClientId()
  getMultiSelectedBlocksEndClientId()
  selectors_getBlockOrder()
  selectors_getBlockIndex()
  selectors_isBlockSelected()
  selectors_hasSelectedInnerBlock()
  isBlockWithinSelection()
  selectors_hasMultiSelection()
  selectors_isMultiSelecting()
  selectors_isSelectionEnabled()
  selectors_getBlockMode()
  selectors_isTyping()
  selectors_isCaretWithinFormattedText()
  getBlockInsertionPoint()
  isBlockInsertionPointVisible()
  isValidTemplate()
  getTemplate()
  selectors_getTemplateLock()
  getInsertUsage()
  getBlockListSettings()
  selectors_getSettings()
  isLastBlockChangePersistent()
  __unstableIsLastBlockChangeIgnored()
  getPostMeta()
  getReusableBlocks()
  validateBlocksToTemplate()
  applyMiddlewares()
  withFilteredAutocompleters()
  FilteredAutocomplete()
  AlignmentToolbar()
  applyOrUnset()
  BlockAlignmentToolbar()
  applyOrUnset()
  BlockEdit()
  BlockIcon()
  BlockNavigationList()
  BlockNavigation()
  BlockNavigationDropdown()
  getColorClassName()
  utils_getMostReadableColor()
  createColorHOC()
  _class()
  createCustomColorsHOC()
  withColors()
  ContrastChecker()
  getFontSizeClass()
  _class()
  getBlockMoverDescription()
  getMultiBlockMoverDescription()
  BlockMover()
  MediaUploadCheck()
  BlockDropZone()
  Warning()
  BlockCompare()
  BlockInvalidWarning()
  BlockCrashBoundary()
  BlockHTML()
  BlockTitle()
  BlockBreadcrumb()
  NavigableToolbar()
  BlockContextualToolbar()
  BlockListMultiControls()
  BlockPreview()
  BlockPreviewContent()
  InserterListItem()
  BlockTypesList()
  ChildBlocks()
  InserterMenu()
  getInsertionIndex()
  Inserter()
  BlockMobileToolbar()
  BlockInsertionPoint()
  IgnoreNestedEvents()
  InserterWithShortcuts()
  HoverArea()
  getBlockDOMNode()
  getBlockFocusableWrapper()
  isBlockFocusStop()
  isInSameBlock()
  isInsideRootBlock()
  hasInnerBlocksContext()
  BlockListBlock()
  isMetaAttribute()
  DefaultBlockAppender()
  BlockListAppender()
  BlockList()
  InnerBlocks()
  ColorPaletteControl()
  PlainText()
  applyInternetExplorerInputFix()
  mapTextInputEvent()
  mapDeletionKeyUpEvents()
  Editable()
  getPatterns()
  RichTextShortcut()
  getSelectedListNode()
  isListRootSelected()
  isActiveListType()
  RichTextToolbarButton()
  UnstableRichTextInputEvent()
  RichText()
  URLPopover()
  MediaPlaceholder()
  URLInput()
  URLInputButton()
  BlockActions()
  BlockEditorKeyboardShortcuts()
  getActiveStyle()
  replaceActiveStyle()
  BlockStyles()
  updateClassName()
  MultiSelectionInspector()
  BlockSelectionClearer()
  BlockModeToggle()
  ReusableBlockConvertButton()
  ReusableBlockDeleteButton()
  BlockConvertButton()
  BlockSettingsMenu()
  BlockSwitcher()
  MultiBlocksSwitcher()
  BlockToolbar()
  CopyHandler()
  MultiSelectScrollIntoView()
  isKeyDownEligibleForStartTyping()
  ObserveTyping()
  PreserveScrollInReorder()
  isNavigationCandidate()
  WritingFlow()
  isTabCandidate()
  BlockEditorProvider()
  getValidAlignments()
  addAttribute()
  addAssignedAlign()
  anchor_addAttribute()
  addSaveProps()
  custom_class_name_addAttribute()
  custom_class_name_addSaveProps()
  getHTMLRootElementClasses()
  addParsedDifference()
  addGeneratedClassName()
  _arrayWithHoles()
  _nonIterableRest()
  memoized()
  tinycolor()
  inputToRGB()
  rgbToRgb()
  rgbToHsl()
  hslToRgb()
  hue2rgb()
  rgbToHsv()
  hsvToRgb()
  rgbToHex()
  rgbaToHex()
  rgbaToArgbHex()
  desaturate()
  saturate()
  greyscale()
  lighten()
  brighten()
  darken()
  spin()
  complement()
  triad()
  tetrad()
  splitcomplement()
  analogous()
  monochromatic()
  flip()
  boundAlpha()
  bound01()
  clamp01()
  parseIntFromHex()
  isOnePointZero()
  isPercentage()
  pad2()
  convertToPercentage()
  convertDecimalToHex()
  convertHexToDecimal()
  isValidCSSUnit()
  stringInputToObject()
  validateWCAG2Parms()
  wrap()
  tryCatch()
  Generator()
  GeneratorFunction()
  GeneratorFunctionPrototype()
  defineIteratorMethods()
  AsyncIterator()
  invoke()
  enqueue()
  callInvokeWithMethodAndArg()
  makeInvokeMethod()
  maybeInvokeDelegate()
  pushTryEntry()
  resetTryEntry()
  Context()
  values()
  doneResult()
  handle()
  _objectSpread()
  flattenIntoMap()
  refx()
  emptyFunction()
  emptyFunctionWithReset()
  shim()
  getShim()
  _defineProperties()
  _createClass()
  multi()

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

_classCallCheck(instance, Constructor)   X-Ref
No description

_possibleConstructorReturn(self, call)   X-Ref
No description

__()   X-Ref
No description

TextareaAutosize()   X-Ref
A light replacement for built-in textarea component
which automaticaly adjusts its height to match the content


assign(ta)   X-Ref
No description

init()   X-Ref
No description

changeOverflow(value)   X-Ref
No description

getParentOverflows(el)   X-Ref
No description

resize()   X-Ref
No description

update()   X-Ref
No description

destroy(ta)   X-Ref
No description

update(ta)   X-Ref
No description

lineHeight(node)   X-Ref
Calculate the `line-height` of a given node

param: {HTMLElement} node Element to calculate line height of. Must be in the DOM.
returns: {Number} `line-height` of the element in pixels

scrollIntoView(elem, container, config)   X-Ref
No description

getClientPosition(elem)   X-Ref
No description

getScroll(w, top)   X-Ref
No description

getScrollLeft(w)   X-Ref
No description

getScrollTop(w)   X-Ref
No description

getOffset(el)   X-Ref
No description

_getComputedStyle(elem, name, computedStyle_)   X-Ref
No description

_getComputedStyleIE(elem, name)   X-Ref
No description

each(arr, fn)   X-Ref
No description

isBorderBoxFn(elem)   X-Ref
No description

swap(elem, options, callback)   X-Ref
No description

getPBMWidth(elem, props, which)   X-Ref
No description

isWindow(obj)   X-Ref
A crude way of determining if an object is a window


getWH(elem, name, extra)   X-Ref
No description

getWHIgnoreDisplay(elem)   X-Ref
No description

css(el, name, v)   X-Ref
No description

setOffset(elem, offset)   X-Ref
No description

_getPrototypeOf(o)   X-Ref
No description

_setPrototypeOf(o, p)   X-Ref
No description

_inherits(subClass, superClass)   X-Ref
No description

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

classNames()   X-Ref
No description

_arrayWithoutHoles(arr)   X-Ref
No description

_nonIterableSpread()   X-Ref
No description

_toConsumableArray(arr)   X-Ref
No description

_extends()   X-Ref
No description

__webpack_require__(moduleId)   X-Ref
No description

_interopRequireDefault(obj)   X-Ref
No description

Diff()   X-Ref
No description

done(value)   X-Ref
No description

execEditLength()   X-Ref
No description

buildValues(diff, components, newString, oldString, useLongestToken)   X-Ref
No description

clonePath(path)   X-Ref
No description

_interopRequireDefault(obj)   X-Ref
No description

diffChars(oldStr, newStr, options)   X-Ref
No description

_interopRequireDefault(obj)   X-Ref
No description

diffWords(oldStr, newStr, options)   X-Ref
No description

diffWordsWithSpace(oldStr, newStr, options)   X-Ref
No description

generateOptions(options, defaults)   X-Ref
No description

_interopRequireDefault(obj)   X-Ref
No description

diffLines(oldStr, newStr, callback)   X-Ref
No description

diffTrimmedLines(oldStr, newStr, callback)   X-Ref
No description

_interopRequireDefault(obj)   X-Ref
No description

diffSentences(oldStr, newStr, callback)   X-Ref
No description

_interopRequireDefault(obj)   X-Ref
No description

diffCss(oldStr, newStr, callback)   X-Ref
No description

_interopRequireDefault(obj)   X-Ref
No description

diffJson(oldObj, newObj, options)   X-Ref
No description

canonicalize(obj, stack, replacementStack, replacer, key)   X-Ref
No description

_interopRequireDefault(obj)   X-Ref
No description

diffArrays(oldArr, newArr, callback)   X-Ref
No description

_interopRequireDefault(obj)   X-Ref
No description

applyPatch(source, uniDiff)   X-Ref
No description

hunkFits(hunk, toPos)   X-Ref
Checks if the hunk exactly fits on the provided location


applyPatches(uniDiff, options)   X-Ref
No description

processIndex()   X-Ref
No description

parsePatch(uniDiff)   X-Ref
No description

parseIndex()   X-Ref
No description

parseFileHeader(index)   X-Ref
No description

parseHunk()   X-Ref
No description

_toConsumableArray(arr)   X-Ref
No description

calcLineCount(hunk)   X-Ref
No description

merge(mine, theirs, base)   X-Ref
No description

loadPatch(param, base)   X-Ref
No description

fileNameChanged(patch)   X-Ref
No description

selectField(index, mine, theirs)   X-Ref
No description

hunkBefore(test, check)   X-Ref
No description

cloneHunk(hunk, offset)   X-Ref
No description

mergeLines(hunk, mineOffset, mineLines, theirOffset, theirLines)   X-Ref
No description

mutualChange(hunk, mine, their)   X-Ref
No description

removal(hunk, mine, their, swap)   X-Ref
No description

conflict(hunk, mine, their)   X-Ref
No description

insertLeading(hunk, insert, their)   X-Ref
No description

insertTrailing(hunk, insert)   X-Ref
No description

collectChange(state)   X-Ref
No description

collectContext(state, matchChanges)   X-Ref
No description

allRemoves(changes)   X-Ref
No description

skipRemoveSuperset(state, removeChanges, delta)   X-Ref
No description

calcOldNewLineCount(lines)   X-Ref
No description

_toConsumableArray(arr)   X-Ref
No description

structuredPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader, options)   X-Ref
No description

contextLines(lines)   X-Ref
No description

createTwoFilesPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader, options)   X-Ref
No description

createPatch(fileName, oldStr, newStr, oldHeader, newHeader, options)   X-Ref
No description

arrayEqual(a, b)   X-Ref
No description

arrayStartsWith(array, start)   X-Ref
No description

convertChangesToDMP(changes)   X-Ref
No description

convertChangesToXML(changes)   X-Ref
No description

escapeHTML(s)   X-Ref
No description

_objectWithoutPropertiesLoose(source, excluded)   X-Ref
No description

_objectWithoutProperties(source, excluded)   X-Ref
No description

_iterableToArrayLimit(arr, i)   X-Ref
No description

_slicedToArray(arr, i)   X-Ref
No description

_assertThisInitialized(self)   X-Ref
No description

arrayOf( value )   X-Ref
Returns the first argument as the sole entry in an array.

return: {Array} Value returned as entry in array.
param: {*} value Value to return.

isObjectLike( value )   X-Ref
Returns true if the value passed is object-like, or false otherwise. A value
is object-like if it can support property assignment, e.g. object or array.

return: {boolean} Whether value is object-like.
param: {*} value Value to test.

createCache()   X-Ref
Creates and returns a new cache object.

return: {Object} Cache object.

isShallowEqual( a, b, fromIndex )   X-Ref
Returns true if entries within the two arrays are strictly equal by
reference from a starting index.

return: {boolean} Whether arrays are shallowly equal.
param: {Array}  a         First array.
param: {Array}  b         Second array.
param: {number} fromIndex Index from which to start comparison.

getRootCache()   X-Ref
Returns the root cache. If WeakMap is supported, this is assigned to the
root WeakMap cache set, otherwise it is a shared instance of the default
cache object.

return: {(WeakMap|Object)} Root cache object.

getWeakMapCache( dependants )   X-Ref
Returns the cache for a given dependants array. When possible, a WeakMap
will be used to create a unique cache for each set of dependants. This
is feasible due to the nature of WeakMap in allowing garbage collection
to occur on entries where the key object is no longer referenced. Since
WeakMap requires the key to be an object, this is only possible when the
dependant is object-like. The root cache is created as a hierarchy where
each top-level key is the first entry in a dependants set, the value a
WeakMap where each key is the next dependant, and so on. This continues
so long as the dependants are object-like. If no dependants are object-
like, then the cache is shared across all invocations.

return: {Object} Cache object.
param: {Array} dependants Selector dependants.

clear()   X-Ref
Resets root memoization cache.


callSelector( )   X-Ref
The augmented selector call, considering first whether dependants have
changed before passing it to underlying memoize function.

return: {*} Selector result.
param: {Object} source    Source object for derivation.
param: {...*}   extraArgs Additional arguments to pass to selector.

_typeof2(obj)   X-Ref
No description

_typeof(obj)   X-Ref
No description

_iterableToArray(iter)   X-Ref
No description

insertAt(array, elements, index)   X-Ref
Insert one or multiple elements into a given position of an array.

return: {Array}          Result.
param: {Array}  array    Source array.
param: {*}      elements Elements to insert.
param: {number} index    Insert Position.

moveTo(array, from, to)   X-Ref
Moves an element in an array.

return: {Array}       Result.
param: {Array}  array Source array.
param: {number} from  Source index.
param: {number} to    Destination index.
param: {number} count Number of elements to move.

mapBlockOrder(blocks)   X-Ref
Given an array of blocks, returns an object where each key is a nesting
context, the value of which is an array of block client IDs existing within
that nesting context.

return: {Object} Block order map object.
param: {Array}   blocks       Blocks to map.
param: {?string} rootClientId Assumed root client ID.

flattenBlocks(blocks, transform)   X-Ref
Helper method to iterate through all blocks, recursing into inner blocks,
applying a transformation function to each one.
Returns a flattened object with the transformed blocks.

return: {Object} Flattened object.
param: {Array} blocks Blocks to flatten.
param: {Function} transform Transforming function to be applied to each block.

getFlattenedBlocksWithoutAttributes(blocks)   X-Ref
Given an array of blocks, returns an object containing all blocks, without
attributes, recursing into inner blocks. Keys correspond to the block client
ID, the value of which is the attributes object.

return: {Object} Flattened block attributes object.
param: {Array} blocks Blocks to flatten.

getFlattenedBlockAttributes(blocks)   X-Ref
Given an array of blocks, returns an object containing all block attributes,
recursing into inner blocks. Keys correspond to the block client ID, the
value of which is the attributes object.

return: {Object} Flattened block attributes object.
param: {Array} blocks Blocks to flatten.

getNestedBlockClientIds(blocksOrder)   X-Ref
Given a block order map object, returns *all* of the block client IDs that are
a descendant of the given root client ID.

Calling this with `rootClientId` set to `''` results in a list of client IDs
that are in the post. That is, it excludes blocks like fetched reusable
blocks which are stored into state but not visible.

return: {Array} List of descendant client IDs.
param: {Object}  blocksOrder  Object that maps block client IDs to a list of
param: {?string} rootClientId The root client ID to search. Defaults to ''.

getMutateSafeObject(original, working)   X-Ref
Returns an object against which it is safe to perform mutating operations,
given the original object and its current working copy.

return: {Object} Mutation-safe object.
param: {Object} original Original object.
param: {Object} working  Working object.

hasSameKeys(a, b)   X-Ref
Returns true if the two object arguments have the same keys, or false
otherwise.

return: {boolean} Whether the two objects have the same keys.
param: {Object} a First object.
param: {Object} b Second object.

isUpdatingSameBlockAttribute(action, lastAction)   X-Ref
Returns true if, given the currently dispatching action and the previously
dispatched action, the two actions are updating the same block attribute, or
false otherwise.

return: {boolean} Whether actions are updating the same block attribute.
param: {Object} action     Currently dispatching action.
param: {Object} lastAction Previously dispatched action.

withPersistentBlockChange(reducer)   X-Ref
Higher-order reducer intended to augment the blocks reducer, assigning an
`isPersistentChange` property value corresponding to whether a change in
state can be considered as persistent. All changes are considered persistent
except when updating the same block attribute as in the previous action.

return: {Function} Enhanced reducer function.
param: {Function} reducer Original reducer function.

withIgnoredBlockChange(reducer)   X-Ref
Higher-order reducer intended to augment the blocks reducer, assigning an
`isIgnoredChange` property value corresponding to whether a change in state
can be considered as ignored. A change is considered ignored when the result
of an action not incurred by direct user interaction.

return: {Function} Enhanced reducer function.
param: {Function} reducer Original reducer function.

reducer_isTyping()   X-Ref
No description

reducer_isCaretWithinFormattedText()   X-Ref
Reducer returning whether the caret is within formatted text.

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

blockSelection()   X-Ref
Reducer returning the block selection's state.

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

blocksMode()   X-Ref
No description

insertionPoint()   X-Ref
Reducer returning the block insertion point visibility, either null if there
is not an explicit insertion point assigned, or an object of its `index` and
`rootClientId`.

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

reducer_template()   X-Ref
Reducer returning whether the post blocks match the defined template or not.

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

reducer_settings()   X-Ref
Reducer returning the editor setting.

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

preferences()   X-Ref
Reducer returning the user preferences.

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

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.

ensureDefaultBlock()   X-Ref
Generator which will yield a default block insert action if there
are no other blocks at the root of the editor. This generator should be used
in actions which may result in no blocks remaining in the editor (removal,
replacement, etc).


resetBlocks(blocks)   X-Ref
Returns an action object used in signalling that blocks state should be
reset to the specified array of blocks, taking precedence over any other
content reflected as an edit in state.

return: {Object} Action object.
param: {Array} blocks Array of blocks.

receiveBlocks(blocks)   X-Ref
Returns an action object used in signalling that blocks have been received.
Unlike resetBlocks, these should be appended to the existing known set, not
replacing.

return: {Object} Action object.
param: {Object[]} blocks Array of block objects.

updateBlockAttributes(clientId, attributes)   X-Ref
Returns an action object used in signalling that the block attributes with
the specified client ID has been updated.

return: {Object} Action object.
param: {string} clientId   Block client ID.
param: {Object} attributes Block attributes to be merged.

updateBlock(clientId, updates)   X-Ref
Returns an action object used in signalling that the block with the
specified client ID has been updated.

return: {Object} Action object.
param: {string} clientId Block client ID.
param: {Object} updates  Block attributes to be merged.

actions_selectBlock(clientId)   X-Ref
Returns an action object used in signalling that the block with the
specified client ID has been selected, optionally accepting a position
value reflecting its selection directionality. An initialPosition of -1
reflects a reverse selection.

return: {Object} Action object.
param: {string}  clientId        Block client ID.
param: {?number} initialPosition Optional initial position. Pass as -1 to

selectPreviousBlock(clientId)   X-Ref
Yields action objects used in signalling that the block preceding the given
clientId should be selected.

param: {string} clientId Block client ID.

selectNextBlock(clientId)   X-Ref
Yields action objects used in signalling that the block following the given
clientId should be selected.

param: {string} clientId Block client ID.

startMultiSelect()   X-Ref
Returns an action object used in signalling that a block multi-selection has started.

return: {Object} Action object.

stopMultiSelect()   X-Ref
Returns an action object used in signalling that block multi-selection stopped.

return: {Object} Action object.

actions_multiSelect(start, end)   X-Ref
Returns an action object used in signalling that block multi-selection changed.

return: {Object} Action object.
param: {string} start First block of the multi selection.
param: {string} end   Last block of the multiselection.

clearSelectedBlock()   X-Ref
Returns an action object used in signalling that the block selection is cleared.

return: {Object} Action object.

toggleSelection()   X-Ref
Returns an action object that enables or disables block selection.

return: {Object} Action object.
param: {boolean} [isSelectionEnabled=true] Whether block selection should

actions_replaceBlocks(clientIds, blocks)   X-Ref
Returns an action object signalling that a blocks should be replaced with
one or more replacement blocks.

param: {(string|string[])} clientIds Block client ID(s) to replace.
param: {(Object|Object[])} blocks    Replacement block(s).

replaceBlock(clientId, block)   X-Ref
Returns an action object signalling that a single block should be replaced
with one or more replacement blocks.

return: {Object} Action object.
param: {(string|string[])} clientId Block client ID to replace.
param: {(Object|Object[])} block    Replacement block(s).

createOnMove(type)   X-Ref
Higher-order action creator which, given the action type to dispatch creates
an action creator for managing block movement.

return: {Function} Action creator.
param: {string} type Action type to dispatch.

moveBlockToPosition(clientId, fromRootClientId, toRootClientId, index)   X-Ref
Returns an action object signalling that an indexed block should be moved
to a new index.

param: {?string} clientId         The client ID of the block.
param: {?string} fromRootClientId Root client ID source.
param: {?string} toRootClientId   Root client ID destination.
param: {number}  index            The index to move the block into.

actions_insertBlock(block, index, rootClientId)   X-Ref
Returns an action object used in signalling that a single block should be
inserted, optionally at a specific index respective a root block list.

return: {Object} Action object.
param: {Object}  block            Block object to insert.
param: {?number} index            Index at which block should be inserted.
param: {?string} rootClientId     Optional root client ID of block list on which to insert.
param: {?boolean} updateSelection If true block selection will be updated. If false, block selection will not change. Defaults to true.

actions_insertBlocks(blocks, index, rootClientId)   X-Ref
Returns an action object used in signalling that an array of blocks should
be inserted, optionally at a specific index respective a root block list.

return: {Object} Action object.
param: {Object[]} blocks          Block objects to insert.
param: {?number}  index           Index at which block should be inserted.
param: {?string}  rootClientId    Optional root client ID of block list on which to insert.
param: {?boolean} updateSelection If true block selection will be updated.  If false, block selection will not change. Defaults to true.

actions_showInsertionPoint(rootClientId, index)   X-Ref
Returns an action object used in signalling that the insertion point should
be shown.

return: {Object} Action object.
param: {?string} rootClientId Optional root client ID of block list on
param: {?number} index        Index at which block should be inserted.

actions_hideInsertionPoint()   X-Ref
Returns an action object hiding the insertion point.

return: {Object} Action object.

setTemplateValidity(isValid)   X-Ref
Returns an action object resetting the template validity.

return: {Object} Action object.
param: {boolean}  isValid  template validity flag.

synchronizeTemplate()   X-Ref
Returns an action object synchronize the template with the list of blocks

return: {Object} Action object.

mergeBlocks(firstBlockClientId, secondBlockClientId)   X-Ref
Returns an action object used in signalling that two blocks should be merged

return: {Object} Action object.
param: {string} firstBlockClientId  Client ID of the first block to merge.
param: {string} secondBlockClientId Client ID of the second block to merge.

actions_removeBlocks(clientIds)   X-Ref
Yields action objects used in signalling that the blocks corresponding to
the set of specified client IDs are to be removed.

param: {string|string[]} clientIds      Client IDs of blocks to remove.
param: {boolean}         selectPrevious True if the previous block should be

removeBlock(clientId, selectPrevious)   X-Ref
Returns an action object used in signalling that the block with the
specified client ID is to be removed.

return: {Object} Action object.
param: {string}  clientId       Client ID of block to remove.
param: {boolean} selectPrevious True if the previous block should be

actions_replaceInnerBlocks(rootClientId, blocks)   X-Ref
Returns an action object used in signalling that the inner blocks with the
specified client ID should be replaced.

return: {Object} Action object.
param: {string}   rootClientId    Client ID of the block whose InnerBlocks will re replaced.
param: {Object[]} blocks          Block objects to insert as new InnerBlocks
param: {?boolean} updateSelection If true block selection will be updated. If false, block selection will not change. Defaults to true.

toggleBlockMode(clientId)   X-Ref
Returns an action object used to toggle the block editing mode between
visual and HTML modes.

return: {Object} Action object.
param: {string} clientId Block client ID.

startTyping()   X-Ref
Returns an action object used in signalling that the user has begun to type.

return: {Object} Action object.

stopTyping()   X-Ref
Returns an action object used in signalling that the user has stopped typing.

return: {Object} Action object.

enterFormattedText()   X-Ref
Returns an action object used in signalling that the caret has entered formatted text.

return: {Object} Action object.

exitFormattedText()   X-Ref
Returns an action object used in signalling that the user caret has exited formatted text.

return: {Object} Action object.

actions_insertDefaultBlock(attributes, rootClientId, index)   X-Ref
Returns an action object used in signalling that a new block of the default
type should be added to the block list.

return: {Object} Action object
param: {?Object} attributes   Optional attributes of the block to assign.
param: {?string} rootClientId Optional root client ID of block list on which
param: {?number} index        Optional index where to insert the default block

updateBlockListSettings(clientId, settings)   X-Ref
Returns an action object that changes the nested settings of a given block.

return: {Object} Action object
param: {string} clientId Client ID of the block whose nested setting are
param: {Object} settings Object with the new settings for the nested block.

updateSettings(settings)   X-Ref
No description

__unstableSaveReusableBlock(id, updatedId)   X-Ref
Returns an action object used in signalling that a temporary reusable blocks have been saved
in order to switch its temporary id with the real id.

return: {Object} Action object.
param: {string} id        Reusable block's id.
param: {string} updatedId Updated block's id.

__unstableMarkLastChangeAsPersistent()   X-Ref
Returns an action object used in signalling that the last block change should be marked explicitely as persistent.

return: {Object} Action object.

selectors_getBlockName(state, clientId)   X-Ref
Returns a block's name given its client ID, or null if no block exists with
the client ID.

return: {string} Block name.
param: {Object} state    Editor state.
param: {string} clientId Block client ID.

selectors_isBlockValid(state, clientId)   X-Ref
Returns whether a block is valid or not.

return: {boolean} Is Valid.
param: {Object} state    Editor state.
param: {string} clientId Block client ID.

selectors_getBlockCount(state, rootClientId)   X-Ref
Returns the number of blocks currently present in the post.

return: {number} Number of blocks in the post.
param: {Object}  state        Editor state.
param: {?string} rootClientId Optional root client ID of block list.

getBlockSelectionStart(state)   X-Ref
Returns the current block selection start. This value may be null, and it
may represent either a singular block selection or multi-selection start.
A selection is singular if its start and end match.

return: {?string} Client ID of block selection start.
param: {Object} state Global application state.

getBlockSelectionEnd(state)   X-Ref
Returns the current block selection end. This value may be null, and it
may represent either a singular block selection or multi-selection end.
A selection is singular if its start and end match.

return: {?string} Client ID of block selection end.
param: {Object} state Global application state.

selectors_getSelectedBlockCount(state)   X-Ref
Returns the number of blocks currently selected in the post.

return: {number} Number of blocks selected in the post.
param: {Object} state Global application state.

hasSelectedBlock(state)   X-Ref
Returns true if there is a single selected block, or false otherwise.

return: {boolean} Whether a single block is selected.
param: {Object} state Editor state.

selectors_getSelectedBlockClientId(state)   X-Ref
Returns the currently selected block client ID, or null if there is no
selected block.

return: {?string} Selected block client ID.
param: {Object} state Editor state.

selectors_getSelectedBlock(state)   X-Ref
Returns the currently selected block, or null if there is no selected block.

return: {?Object} Selected block.
param: {Object} state Global application state.

getAdjacentBlockClientId(state, startClientId)   X-Ref
Returns the client ID of the block adjacent one at the given reference
startClientId and modifier directionality. Defaults start startClientId to
the selected block, and direction as next block. Returns null if there is no
adjacent block.

return: {?string} Return the client ID of the block, or null if none exists.
param: {Object}  state         Editor state.
param: {?string} startClientId Optional client ID of block from which to
param: {?number} modifier      Directionality multiplier (1 next, -1

getPreviousBlockClientId(state, startClientId)   X-Ref
Returns the previous block's client ID from the given reference start ID.
Defaults start to the selected block. Returns null if there is no previous
block.

return: {?string} Adjacent block's client ID, or null if none exists.
param: {Object}  state         Editor state.
param: {?string} startClientId Optional client ID of block from which to

getNextBlockClientId(state, startClientId)   X-Ref
Returns the next block's client ID from the given reference start ID.
Defaults start to the selected block. Returns null if there is no next
block.

return: {?string} Adjacent block's client ID, or null if none exists.
param: {Object}  state         Editor state.
param: {?string} startClientId Optional client ID of block from which to

selectors_getSelectedBlocksInitialCaretPosition(state)   X-Ref
Returns the initial caret position for the selected block.
This position is to used to position the caret properly when the selected block changes.

return: {?Object} Selected block.
param: {Object} state Global application state.

getFirstMultiSelectedBlockClientId(state)   X-Ref
Returns the client ID of the first block in the multi-selection set, or null
if there is no multi-selection.

return: {?string} First block client ID in the multi-selection set.
param: {Object} state Editor state.

getLastMultiSelectedBlockClientId(state)   X-Ref
Returns the client ID of the last block in the multi-selection set, or null
if there is no multi-selection.

return: {?string} Last block client ID in the multi-selection set.
param: {Object} state Editor state.

selectors_isFirstMultiSelectedBlock(state, clientId)   X-Ref
Returns true if a multi-selection exists, and the block corresponding to the
specified client ID is the first block of the multi-selection set, or false
otherwise.

return: {boolean} Whether block is first in multi-selection.
param: {Object} state    Editor state.
param: {string} clientId Block client ID.

selectors_isBlockMultiSelected(state, clientId)   X-Ref
Returns true if the client ID occurs within the block multi-selection, or
false otherwise.

return: {boolean} Whether block is in multi-selection set.
param: {Object} state    Editor state.
param: {string} clientId Block client ID.

getMultiSelectedBlocksStartClientId(state)   X-Ref
Returns the client ID of the block which begins the multi-selection set, or
null if there is no multi-selection.

This is not necessarily the first client ID in the selection.

return: {?string} Client ID of block beginning multi-selection.
param: {Object} state Editor state.

getMultiSelectedBlocksEndClientId(state)   X-Ref
Returns the client ID of the block which ends the multi-selection set, or
null if there is no multi-selection.

This is not necessarily the last client ID in the selection.

return: {?string} Client ID of block ending multi-selection.
param: {Object} state Editor state.

selectors_getBlockOrder(state, rootClientId)   X-Ref
Returns an array containing all block client IDs in the editor in the order
they appear. Optionally accepts a root client ID of the block list for which
the order should be returned, defaulting to the top-level block order.

return: {Array} Ordered client IDs of editor blocks.
param: {Object}  state        Editor state.
param: {?string} rootClientId Optional root client ID of block list.

selectors_getBlockIndex(state, clientId, rootClientId)   X-Ref
Returns the index at which the block corresponding to the specified client
ID occurs within the block order, or `-1` if the block does not exist.

return: {number} Index at which block exists in order.
param: {Object}  state        Editor state.
param: {string}  clientId     Block client ID.
param: {?string} rootClientId Optional root client ID of block list.

selectors_isBlockSelected(state, clientId)   X-Ref
Returns true if the block corresponding to the specified client ID is
currently selected and no multi-selection exists, or false otherwise.

return: {boolean} Whether block is selected and multi-selection exists.
param: {Object} state    Editor state.
param: {string} clientId Block client ID.

selectors_hasSelectedInnerBlock(state, clientId)   X-Ref
Returns true if one of the block's inner blocks is selected.

return: {boolean} Whether the block as an inner block selected
param: {Object}  state    Editor state.
param: {string}  clientId Block client ID.
param: {boolean} deep     Perform a deep check.

isBlockWithinSelection(state, clientId)   X-Ref
Returns true if the block corresponding to the specified client ID is
currently selected but isn't the last of the selected blocks. Here "last"
refers to the block sequence in the document, _not_ the sequence of
multi-selection, which is why `state.blockSelection.end` isn't used.

return: {boolean} Whether block is selected and not the last in the
param: {Object} state    Editor state.
param: {string} clientId Block client ID.

selectors_hasMultiSelection(state)   X-Ref
Returns true if a multi-selection has been made, or false otherwise.

return: {boolean} Whether multi-selection has been made.
param: {Object} state Editor state.

selectors_isMultiSelecting(state)   X-Ref
Whether in the process of multi-selecting or not. This flag is only true
while the multi-selection is being selected (by mouse move), and is false
once the multi-selection has been settled.

return: {boolean} True if multi-selecting, false if not.
param: {Object} state Global application state.

selectors_isSelectionEnabled(state)   X-Ref
Selector that returns if multi-selection is enabled or not.

return: {boolean} True if it should be possible to multi-select blocks, false if multi-selection is disabled.
param: {Object} state Global application state.

selectors_getBlockMode(state, clientId)   X-Ref
Returns the block's editing mode, defaulting to "visual" if not explicitly
assigned.

return: {Object} Block editing mode.
param: {Object} state    Editor state.
param: {string} clientId Block client ID.

selectors_isTyping(state)   X-Ref
Returns true if the user is typing, or false otherwise.

return: {boolean} Whether user is typing.
param: {Object} state Global application state.

selectors_isCaretWithinFormattedText(state)   X-Ref
Returns true if the caret is within formatted text, or false otherwise.

return: {boolean} Whether the caret is within formatted text.
param: {Object} state Global application state.

getBlockInsertionPoint(state)   X-Ref
Returns the insertion point, the index at which the new inserted block would
be placed. Defaults to the last index.

return: {Object} Insertion point object with `rootClientId`, `index`.
param: {Object} state Editor state.

isBlockInsertionPointVisible(state)   X-Ref
Returns true if we should show the block insertion point.

return: {?boolean} Whether the insertion point is visible or not.
param: {Object} state Global application state.

isValidTemplate(state)   X-Ref
Returns whether the blocks matches the template or not.

return: {?boolean} Whether the template is valid or not.
param: {boolean} state

getTemplate(state)   X-Ref
Returns the defined block template

return: {?Array}        Block Template
param: {boolean} state

selectors_getTemplateLock(state, rootClientId)   X-Ref
Returns the defined block template lock. Optionally accepts a root block
client ID as context, otherwise defaulting to the global context.

return: {?string} Block Template Lock
param: {Object}  state        Editor state.
param: {?string} rootClientId Optional block root client ID.

getInsertUsage(state, id)   X-Ref
Returns information about how recently and frequently a block has been inserted.

return: {?{ time: number, count: number }} An object containing `time` which is when the last
param: {Object} state Global application state.
param: {string} id    A string which identifies the insert, e.g. 'core/block/12'

getBlockListSettings(state, clientId)   X-Ref
Returns the Block List settings of a block, if any exist.

return: {?Object} Block settings of the block if set.
param: {Object}  state    Editor state.
param: {?string} clientId Block client ID.

selectors_getSettings(state)   X-Ref
Returns the editor settings.

return: {Object} The editor settings object.
param: {Object} state Editor state.

isLastBlockChangePersistent(state)   X-Ref
Returns true if the most recent block change is be considered persistent, or
false otherwise. A persistent change is one committed by BlockEditorProvider
via its `onChange` callback, in addition to `onInput`.

return: {boolean} Whether the most recent block change was persistent.
param: {Object} state Block editor state.

__unstableIsLastBlockChangeIgnored(state)   X-Ref
Returns true if the most recent block change is be considered ignored, or
false otherwise. An ignored change is one not to be committed by
BlockEditorProvider, neither via `onChange` nor `onInput`.

return: {boolean} Whether the most recent block change was ignored.
param: {Object} state Block editor state.

getPostMeta(state, key)   X-Ref
Returns the value of a post meta from the editor settings.

return: {*} Meta value
param: {Object} state Global application state.
param: {string} key   Meta Key to retrieve

getReusableBlocks(state)   X-Ref
Returns the available reusable blocks

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

validateBlocksToTemplate(action, store)   X-Ref
Block validity is a function of blocks state (at the point of a
reset) and the template setting. As a compromise to its placement
across distinct parts of state, it is implemented here as a side-
effect of the block reset action.

return: {?Object} New validity set action if validity has changed.
param: {Object} action RESET_BLOCKS action.
param: {Object} store  Store instance.

applyMiddlewares(store)   X-Ref
Applies the custom middlewares used specifically in the editor module.

return: {Object} Update Store Object.
param: {Object} store Store Object.

withFilteredAutocompleters(Autocomplete)   X-Ref
Wrap the default Autocomplete component with one that
supports a filter hook for customizing its list of autocompleters.

Since there may be many Autocomplete instances at one time, this component
applies the filter on demand, when the component is first focused after
receiving a new list of completers.

This function is exported for unit test.

return: {Function}              Wrapped component
param: {Function} Autocomplete Original component.

FilteredAutocomplete()   X-Ref
No description

AlignmentToolbar(_ref)   X-Ref
No description

applyOrUnset(align)   X-Ref
No description

BlockAlignmentToolbar(_ref)   X-Ref
No description

applyOrUnset(align)   X-Ref
No description

BlockEdit(props)   X-Ref
No description

BlockIcon(_ref)   X-Ref
WordPress dependencies


BlockNavigationList(_ref)   X-Ref
No description

BlockNavigation(_ref2)   X-Ref
No description

BlockNavigationDropdown(_ref)   X-Ref
No description

getColorClassName(colorContextName, colorSlug)   X-Ref
Returns a class based on the context a color is being used and its slug.

return: {string} String with the class corresponding to the color in the provided context.
param: {string} colorContextName Context/place where color is being used e.g: background, text etc...
param: {string} colorSlug        Slug of the color.

utils_getMostReadableColor(colors, colorValue)   X-Ref
Given an array of color objects and a color value returns the color value of the most readable color in the array.

return: {string} String with the color value of the most readable color.
param: {Array}   colors     Array of color objects as set by the theme or by the editor defaults.
param: {?string} colorValue A string containing the color value.

createColorHOC(colorTypes, withColorPalette)   X-Ref
Helper function used with `createHigherOrderComponent` to create
higher order components for managing color logic.

return: {Component} The component that can be used as a HOC.
param: {Array}    colorTypes       An array of color types (e.g. 'backgroundColor, borderColor).
param: {Function} withColorPalette A HOC for injecting the 'colors' prop into the WrappedComponent.

_class(props)   X-Ref
No description

createCustomColorsHOC(colorsArray)   X-Ref
A higher-order component factory for creating a 'withCustomColors' HOC, which handles color logic
for class generation color value, retrieval and color attribute setting.

Use this higher-order component to work with a custom set of colors.

return: {Function} Higher-order component.
param: {Array} colorsArray The array of color objects (name, slug, color, etc... ).

withColors()   X-Ref
A higher-order component, which handles color logic for class generation color value, retrieval and color attribute setting.

For use with the default editor/theme color palette.

return: {Function} Higher-order component.
param: {...(object|string)} colorTypes The arguments can be strings or objects. If the argument is an object,

ContrastChecker(_ref)   X-Ref
No description

getFontSizeClass(fontSizeSlug)   X-Ref
Returns a class based on fontSizeName.

return: {string} String with the class corresponding to the fontSize passed.
param: {string} fontSizeSlug    Slug of the fontSize.

_class(props)   X-Ref
No description

getBlockMoverDescription(selectedCount, type, firstIndex, isFirst, isLast, dir)   X-Ref
Return a label for the block movement controls depending on block position.

return: {string} Label for the block movement controls.
param: {number}  selectedCount Number of blocks selected.
param: {string}  type          Block type - in the case of a single block, should
param: {number}  firstIndex    The index (position - 1) of the first block selected.
param: {boolean} isFirst       This is the first block.
param: {boolean} isLast        This is the last block.
param: {number}  dir           Direction of movement (> 0 is considered to be going

getMultiBlockMoverDescription(selectedCount, firstIndex, isFirst, isLast, dir)   X-Ref
Return a label for the block movement controls depending on block position.

return: {string} Label for the block movement controls.
param: {number}  selectedCount Number of blocks selected.
param: {number}  firstIndex    The index (position - 1) of the first block selected.
param: {boolean} isFirst       This is the first block.
param: {boolean} isLast        This is the last block.
param: {number}  dir           Direction of movement (> 0 is considered to be going

BlockMover()   X-Ref
No description

MediaUploadCheck(_ref)   X-Ref
WordPress dependencies


BlockDropZone()   X-Ref
No description

Warning(_ref)   X-Ref
No description

BlockCompare()   X-Ref
No description

BlockInvalidWarning(props)   X-Ref
No description

BlockCrashBoundary()   X-Ref
No description

BlockHTML(props)   X-Ref
No description

BlockTitle(_ref)   X-Ref
Renders the block's configured title as a string, or empty if the title
cannot be determined.

return: {?string} Block title.
param: {?string} props.name Block name.

BlockBreadcrumb()   X-Ref
No description

NavigableToolbar()   X-Ref
No description

BlockContextualToolbar(_ref)   X-Ref
No description

BlockListMultiControls(_ref)   X-Ref
No description

BlockPreview(props)   X-Ref
Block Preview Component: It renders a preview given a block name and attributes.

return: {WPElement} Rendered element.
param: {Object} props Component props.

BlockPreviewContent(_ref)   X-Ref
No description

InserterListItem(_ref)   X-Ref
No description

BlockTypesList(_ref)   X-Ref
No description

ChildBlocks(_ref)   X-Ref
No description

InserterMenu()   X-Ref
No description

getInsertionIndex()   X-Ref
No description

Inserter()   X-Ref
No description

BlockMobileToolbar(_ref)   X-Ref
No description

BlockInsertionPoint()   X-Ref
No description

IgnoreNestedEvents()   X-Ref
No description

InserterWithShortcuts(_ref)   X-Ref
No description

HoverArea()   X-Ref
No description

getBlockDOMNode(clientId)   X-Ref
Given a block client ID, returns the corresponding DOM node for the block,
if exists. As much as possible, this helper should be avoided, and used only
in cases where isolated behaviors need remote access to a block node.

return: {Element} Block DOM node.
param: {string} clientId Block client ID.

getBlockFocusableWrapper(clientId)   X-Ref
Given a block client ID, returns the corresponding DOM node for the block
focusable wrapper, if exists. As much as possible, this helper should be
avoided, and used only in cases where isolated behaviors need remote access
to a block node.

return: {Element} Block DOM node.
param: {string} clientId Block client ID.

isBlockFocusStop(element)   X-Ref
Returns true if the given HTMLElement is a block focus stop. Blocks without
their own text fields rely on the focus stop to be keyboard navigable.

return: {boolean} Whether element is a block focus stop.
param: {HTMLElement} element Element to test.

isInSameBlock(a, b)   X-Ref
Returns true if two elements are contained within the same block.

return: {boolean} Whether elements are in the same block.
param: {HTMLElement} a First element.
param: {HTMLElement} b Second element.

isInsideRootBlock(blockElement, element)   X-Ref
Returns true if an elements is considered part of the block and not its children.

return: {boolean} Whether element is in the block Element but not its children.
param: {HTMLElement} blockElement Block container element.
param: {HTMLElement} element      Element.

hasInnerBlocksContext(element)   X-Ref
Returns true if the given HTMLElement contains inner blocks (an InnerBlocks
element).

return: {boolean} Whether element contains inner blocks.
param: {HTMLElement} element Element to test.

BlockListBlock()   X-Ref
No description

isMetaAttribute(key)   X-Ref
No description

DefaultBlockAppender(_ref)   X-Ref
No description

BlockListAppender(_ref)   X-Ref
No description

BlockList(props)   X-Ref
No description

InnerBlocks()   X-Ref
No description

ColorPaletteControl(_ref)   X-Ref
No description

PlainText(_ref)   X-Ref
No description

applyInternetExplorerInputFix(editorNode)   X-Ref
Applies a fix that provides `input` events for contenteditable in Internet Explorer.

return: {Function} A function to remove the fix (for cleanup).
param: {Element} editorNode The root editor node.

mapTextInputEvent(textInputEvent)   X-Ref
Dispatches `input` events in response to `textinput` events.

IE provides a `textinput` event that is similar to an `input` event,
and we use it to manually dispatch an `input` event.
`textinput` is dispatched for text entry but for not deletions.

param: {Event} textInputEvent An Internet Explorer `textinput` event.

mapDeletionKeyUpEvents(_ref)   X-Ref
Dispatches `input` events in response to Delete and Backspace keyup.

It would be better dispatch an `input` event after each deleting
`keydown` because the DOM is updated after each, but it is challenging
to determine the right time to dispatch `input` since propagation of
`keydown` can be stopped at any point.

It's easier to listen for `keyup` in the capture phase and dispatch
`input` before `keyup` propagates further. It's not perfect, but should
be good enough.

param: {KeyboardEvent} keyUp
param: {Node}          keyUp.target  The event target.
param: {number}        keyUp.keyCode The key code.

Editable()   X-Ref
No description

getPatterns(_ref)   X-Ref
WordPress dependencies


RichTextShortcut()   X-Ref
No description

getSelectedListNode()   X-Ref
Gets the selected list node, which is the closest list node to the start of
the selection.

return: {?Element} The selected list node, or undefined if none is selected.

isListRootSelected()   X-Ref
Whether or not the root list is selected.

return: {boolean} True if the root list or nothing is selected, false if an

isActiveListType(tagName, rootTagName)   X-Ref
Wether or not the selected list has the given tag name.

return: {boolean}             [description]
param: {string}  tagName     The tag name the list should have.
param: {string}  rootTagName The current root tag name, to compare with in

RichTextToolbarButton(_ref)   X-Ref
WordPress dependencies


UnstableRichTextInputEvent()   X-Ref
No description

RichText(_ref)   X-Ref
No description

URLPopover()   X-Ref
No description

MediaPlaceholder()   X-Ref
No description

URLInput(_ref)   X-Ref
No description

URLInputButton()   X-Ref
No description

BlockActions(_ref)   X-Ref
No description

BlockEditorKeyboardShortcuts()   X-Ref
No description

getActiveStyle(styles, className)   X-Ref
Returns the active style from the given className.

return: {Object?} The active style.
param: {Array} styles Block style variations.
param: {string} className  Class name

replaceActiveStyle(className, activeStyle, newStyle)   X-Ref
Replaces the active style in the block's className.

return: {string} The updated className.
param: {string}  className   Class name.
param: {Object?} activeStyle The replaced style.
param: {Object}  newStyle    The replacing style.

BlockStyles(_ref)   X-Ref
No description

updateClassName(style)   X-Ref
No description

MultiSelectionInspector(_ref)   X-Ref
No description

BlockSelectionClearer()   X-Ref
No description

BlockModeToggle(_ref)   X-Ref
No description

ReusableBlockConvertButton(_ref)   X-Ref
No description

ReusableBlockDeleteButton(_ref)   X-Ref
No description

BlockConvertButton(_ref)   X-Ref
WordPress dependencies


BlockSettingsMenu(_ref)   X-Ref
No description

BlockSwitcher()   X-Ref
No description

MultiBlocksSwitcher(_ref)   X-Ref
Internal dependencies


BlockToolbar(_ref)   X-Ref
No description

CopyHandler(_ref)   X-Ref
No description

MultiSelectScrollIntoView()   X-Ref
No description

isKeyDownEligibleForStartTyping(event)   X-Ref
Returns true if a given keydown event can be inferred as intent to start
typing, or false otherwise. A keydown is considered eligible if it is a
text navigation without shift active.

return: {boolean} Whether event is eligible to start typing.
param: {KeyboardEvent} event Keydown event to test.

ObserveTyping()   X-Ref
No description

PreserveScrollInReorder()   X-Ref
No description

isNavigationCandidate(element, keyCode, hasModifier)   X-Ref
Returns true if the element should consider edge navigation upon a keyboard
event of the given directional key code, or false otherwise.

return: {boolean} Whether element should consider edge navigation.
param: {Element} element     HTML element to test.
param: {number}  keyCode     KeyboardEvent keyCode to test.
param: {boolean} hasModifier Whether a modifier is pressed.

WritingFlow()   X-Ref
No description

isTabCandidate(node, i, array)   X-Ref
No description

BlockEditorProvider()   X-Ref
No description

getValidAlignments(blockAlign)   X-Ref
Returns the valid alignments.
Takes into consideration the aligns supported by a block, if the block supports wide controls or not and if theme supports wide controls or not.
Exported just for testing purposes, not exported outside the module.

return: {string[]} Valid alignments.
param: {?boolean|string[]} blockAlign          Aligns supported by the block.
param: {?boolean}          hasWideBlockSupport True if block supports wide alignments. And False otherwise.
param: {?boolean}          hasWideEnabled      True if theme supports wide alignments. And False otherwise.

addAttribute(settings)   X-Ref
Filters registered block settings, extending attributes to include `align`.

return: {Object}          Filtered block settings
param: {Object} settings Original block settings

addAssignedAlign(props, blockType, attributes)   X-Ref
Override props assigned to save component to inject alignment class name if
block supports it.

return: {Object}            Filtered props applied to save element
param: {Object} props      Additional props applied to save element
param: {Object} blockType  Block type
param: {Object} attributes Block attributes

anchor_addAttribute(settings)   X-Ref
Filters registered block settings, extending attributes with anchor using ID
of the first node.

return: {Object} Filtered block settings.
param: {Object} settings Original block settings.

addSaveProps(extraProps, blockType, attributes)   X-Ref
Override props assigned to save component to inject anchor ID, if block
supports anchor. This is only applied if the block's save result is an
element and not a markup string.

return: {Object} Filtered props applied to save element.
param: {Object} extraProps Additional props applied to save element.
param: {Object} blockType  Block type.
param: {Object} attributes Current block attributes.

custom_class_name_addAttribute(settings)   X-Ref
Filters registered block settings, extending attributes with anchor using ID
of the first node.

return: {Object} Filtered block settings.
param: {Object} settings Original block settings.

custom_class_name_addSaveProps(extraProps, blockType, attributes)   X-Ref
Override props assigned to save component to inject anchor ID, if block
supports anchor. This is only applied if the block's save result is an
element and not a markup string.

return: {Object} Filtered props applied to save element.
param: {Object} extraProps Additional props applied to save element.
param: {Object} blockType  Block type.
param: {Object} attributes Current block attributes.

getHTMLRootElementClasses(innerHTML)   X-Ref
Given an HTML string, returns an array of class names assigned to the root
element in the markup.

return: {string[]} Array of class names assigned to the root element.
param: {string} innerHTML Markup string from which to extract classes.

addParsedDifference(blockAttributes, blockType, innerHTML)   X-Ref
Given a parsed set of block attributes, if the block supports custom class
names and an unknown class (per the block's serialization behavior) is
found, the unknown classes are treated as custom classes. This prevents the
block from being considered as invalid.

return: {Object} Filtered block attributes.
param: {Object} blockAttributes Original block attributes.
param: {Object} blockType       Block type settings.
param: {string} innerHTML       Original block markup.

addGeneratedClassName(extraProps, blockType)   X-Ref
Override props assigned to save component to inject generated className if
block supports it. This is only applied if the block's save result is an
element and not a markup string.

return: {Object} Filtered props applied to save element.
param: {Object} extraProps Additional props applied to save element.
param: {Object} blockType  Block type.

_arrayWithHoles(arr)   X-Ref
No description

_nonIterableRest()   X-Ref
No description

memoized( )   X-Ref
No description

tinycolor(color, opts)   X-Ref
No description

inputToRGB(color)   X-Ref
No description

rgbToRgb(r, g, b)   X-Ref
No description

rgbToHsl(r, g, b)   X-Ref
No description

hslToRgb(h, s, l)   X-Ref
No description

hue2rgb(p, q, t)   X-Ref
No description

rgbToHsv(r, g, b)   X-Ref
No description

hsvToRgb(h, s, v)   X-Ref
No description

rgbToHex(r, g, b, allow3Char)   X-Ref
No description

rgbaToHex(r, g, b, a, allow4Char)   X-Ref
No description

rgbaToArgbHex(r, g, b, a)   X-Ref
No description

desaturate(color, amount)   X-Ref
No description

saturate(color, amount)   X-Ref
No description

greyscale(color)   X-Ref
No description

lighten(color, amount)   X-Ref
No description

brighten(color, amount)   X-Ref
No description

darken(color, amount)   X-Ref
No description

spin(color, amount)   X-Ref
No description

complement(color)   X-Ref
No description

triad(color)   X-Ref
No description

tetrad(color)   X-Ref
No description

splitcomplement(color)   X-Ref
No description

analogous(color, results, slices)   X-Ref
No description

monochromatic(color, results)   X-Ref
No description

flip(o)   X-Ref
No description

boundAlpha(a)   X-Ref
No description

bound01(n, max)   X-Ref
No description

clamp01(val)   X-Ref
No description

parseIntFromHex(val)   X-Ref
No description

isOnePointZero(n)   X-Ref
No description

isPercentage(n)   X-Ref
No description

pad2(c)   X-Ref
No description

convertToPercentage(n)   X-Ref
No description

convertDecimalToHex(d)   X-Ref
No description

convertHexToDecimal(h)   X-Ref
No description

isValidCSSUnit(color)   X-Ref
No description

stringInputToObject(color)   X-Ref
No description

validateWCAG2Parms(parms)   X-Ref
No description

wrap(innerFn, outerFn, self, tryLocsList)   X-Ref
No description

tryCatch(fn, obj, arg)   X-Ref
No description

Generator()   X-Ref
No description

GeneratorFunction()   X-Ref
No description

GeneratorFunctionPrototype()   X-Ref
No description

defineIteratorMethods(prototype)   X-Ref
No description

AsyncIterator(generator)   X-Ref
No description

invoke(method, arg, resolve, reject)   X-Ref
No description

enqueue(method, arg)   X-Ref
No description

callInvokeWithMethodAndArg()   X-Ref
No description

makeInvokeMethod(innerFn, self, context)   X-Ref
No description

maybeInvokeDelegate(delegate, context)   X-Ref
No description

pushTryEntry(locs)   X-Ref
No description

resetTryEntry(entry)   X-Ref
No description

Context(tryLocsList)   X-Ref
No description

values(iterable)   X-Ref
No description

doneResult()   X-Ref
No description

handle(loc, caught)   X-Ref
No description

_objectSpread(target)   X-Ref
No description

flattenIntoMap( map, effects )   X-Ref
No description

refx( effects )   X-Ref
No description

emptyFunction()   X-Ref
No description

emptyFunctionWithReset()   X-Ref
No description

shim(props, propName, componentName, location, propFullName, secret)   X-Ref
No description

getShim()   X-Ref
No description

_defineProperties(target, props)   X-Ref
No description

_createClass(Constructor, protoProps, staticProps)   X-Ref
No description

multi(_ref)   X-Ref
Redux dispatch multiple actions




Generated: Sun Sep 15 01:00:03 2019 Cross-referenced by PHPXref 0.7.1