[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

(no description)

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

Defines 2 classes

gallery_image_GalleryImage:: (74 methods):
  RichTextVisibilityHelper()
  GalleryEdit()
  onFocusGalleryCaption()
  setAttributes()
  onSelectImage()
  onDeselectImage()
  onMove()
  onMoveForward()
  onMoveBackward()
  onRemoveImage()
  selectCaption()
  onSelectImages()
  onUploadError()
  setLinkTo()
  setColumnsNumber()
  toggleImageCrop()
  getImageCropHelp()
  setImageAttributes()
  getImagesSizeOptions()
  updateImagesSize()
  gallery_save_save()
  ArchivesEdit()
  AudioEdit()
  toggleAttribute()
  onSelectURL()
  onUploadError()
  getAutoplayHelp()
  onSelectAudio()
  audio_save_save()
  WidthPanel()
  handleChange()
  URLPicker()
  ButtonEdit()
  button_save_save()
  ButtonsEdit()
  buttons_save_save()
  CalendarEdit()
  CategoriesEdit()
  CodeEdit()
  utils_escape()
  escapeOpeningSquareBrackets()
  escapeProtocolInIsolatedUrls()
  code_save_save()
  getDeprecatedLayoutColumn()
  getEffectiveColumnWidth()
  getTotalColumnsWidth()
  getColumnWidths()
  getRedistributedColumnWidths()
  hasExplicitPercentColumnWidths()
  getMappedColumnWidths()
  getWidths()
  getWidthWithUnit()
  isPercentageUnit()
  ColumnsEditContainer()
  Placeholder()
  columns_save_save()
  ColumnEdit()
  column_save_save()
  backgroundImageStyles()
  dimRatioToClass()
  attributesFromMedia()
  isContentPositionCenter()
  getPositionClassName()
  retrieveFastAverageColor()
  CoverHeightInput()
  ResizableCover()
  useCoverIsDark()
  edit_mediaPosition()
  CoverPlaceholder()
  CoverEdit()
  cover_save_save()
  WpEmbedPreview()
  resizeWPembeds()
  checkFocus()

embed_preview_EmbedPreview:: (197 methods):
  edit_getResponsiveHelp()
  embed_save_save()
  FileBlockInspector()
  ClipboardToolbarButton()
  FileEdit()
  onSelectFile()
  onUploadError()
  changeLinkDestinationOption()
  changeOpenInNewWindow()
  changeShowDownloadButton()
  changeDownloadButtonText()
  changeDisplayPreview()
  handleOnResizeStop()
  changePreviewHeight()
  file_save_save()
  HTMLEdit()
  switchToPreview()
  switchToHTML()
  html_save_save()
  imageFillStyles()
  ToolbarEditButton()
  PlaceholderContainer()
  MediaContainer()
  getImageSourceUrlBySizeSlug()
  edit_attributesFromMedia()
  MediaTextEdit()
  media_text_save_save()
  LatestComments()
  LatestPostsEdit()
  LoginOutEdit()
  ListEdit()
  list_save_save()
  getListContentSchema()
  MissingBlockWarning()
  missing_save_save()
  MoreEdit()
  more_save_save()
  NextPageEdit()
  nextpage_save_save()
  ConvertToLinksModal()
  PageListEdit()
  PreformattedEdit()
  preformatted_save_save()
  parseBorderColor()
  PullQuoteEdit()
  pullQuoteMainColorSetter()
  pullQuoteTextColorSetter()
  pullquote_save_save()
  ReusableBlockEdit()
  RSSEdit()
  toggleAttribute()
  onSubmitURL()
  utils_isPercentageUnit()
  SearchEdit()
  GroupEdit()
  group_save_save()
  SeparatorEdit()
  separatorSave()
  ShortcodeEdit()
  shortcode_save_save()
  spacer_save_save()
  createTable()
  getFirstRow()
  getCellAttribute()
  updateSelectedCell()
  isCellSelected()
  insertRow()
  deleteRow()
  insertColumn()
  deleteColumn()
  toggleSection()
  isEmptyTableSection()
  isEmptyRow()
  TSection()
  TableEdit()
  onChangeInitialColumnCount()
  onChangeInitialRowCount()
  onCreateTable()
  onChangeFixedLayout()
  onChange()
  onChangeColumnAlignment()
  getCellAlignment()
  onToggleHeaderSection()
  onToggleFooterSection()
  onInsertRow()
  onInsertRowBefore()
  onInsertRowAfter()
  onDeleteRow()
  onInsertColumn()
  onInsertColumnBefore()
  onInsertColumnAfter()
  onDeleteColumn()
  table_save_save()
  TextColumnsEdit()
  text_columns_save_save()
  VerseEdit()
  verse_save_save()
  TrackList()
  SingleTrackEditor()
  TracksEditor()
  Tracks()
  VideoEdit()
  onSelectVideo()
  onSelectURL()
  onUploadError()
  onSelectPoster()
  onRemovePoster()
  video_save_save()
  TagCloudEdit()
  isTmceEmpty()
  ClassicEdit()
  onSetup()
  initialize()
  onReadyStateChange()
  focus()
  onToolbarKeyDown()
  freeform_save_save()
  SocialLinksEdit()
  social_links_save_save()
  onResizeStart()
  onResizeStop()
  LogoEdit()
  SiteTaglineEdit()
  LevelIcon()
  LevelControl()
  SiteTitleEdit()
  QueryToolbar()
  QueryInspectorControls()
  QueryContent()
  QueryPatternSetup()
  QuerySave()
  PostTemplateEdit()
  PostTemplateSave()
  QueryTitleEdit()
  QueryPaginationEdit()
  query_pagination_save_save()
  QueryPaginationNextEdit()
  QueryPaginationNumbersEdit()
  QueryPaginationPreviousEdit()
  useCanEditEntity()
  PostTitleEdit()
  ReadOnlyContent()
  EditableContent()
  Content()
  edit_Placeholder()
  RecursionError()
  PostContentEdit()
  PostDateEdit()
  PostExcerptEditor()
  PostFeaturedImageDisplay()
  onUploadError()
  PostFeaturedImageEdit()
  usePostTerms()
  PostTermsEdit()
  classNames()
  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()
  isEventSupported()
  Icon()
  _populate()
  _extends()

Defines 197 functions

  __webpack_require__()
  getDefault()
  getModuleExports()
  normalizeWheel()
  memize()
  memoized()
  StorageObject()
  _parseArray()
  _parseNumber()
  _parseObject()
  _parseString()
  _parse()
  _classNames()
  _classCallCheck()
  _defineProperties()
  _createClass()
  _slicedToArray()
  _arrayWithHoles()
  _iterableToArrayLimit()
  _nonIterableRest()
  FastAverageColor()
  ParagraphRTLControl()
  ParagraphBlock()
  save()
  getClassNames()
  util_fallback()
  useClientWidth()
  calculateClientWidth()
  __extends()
  __()
  __rest()
  __decorate()
  __param()
  __metadata()
  __awaiter()
  adopt()
  fulfilled()
  rejected()
  step()
  __generator()
  verb()
  step()
  __exportStar()
  __values()
  __read()
  __spread()
  __spreadArrays()
  __await()
  __asyncGenerator()
  verb()
  resume()
  step()
  fulfill()
  reject()
  settle()
  __asyncDelegator()
  verb()
  __asyncValues()
  verb()
  settle()
  __makeTemplateObject()
  __importStar()
  __importDefault()
  __classPrivateFieldGet()
  __classPrivateFieldSet()
  getCropSize()
  index_module_restrictPosition()
  restrictPositionCoord()
  getDistanceBetweenPoints()
  getRotationBetweenPoints()
  computeCroppedArea()
  limitArea()
  noOp()
  getZoomFromCroppedAreaPixels()
  getInitialCropFromCroppedAreaPixels()
  getCenter()
  rotateAroundMidPoint()
  translateSize()
  index_module_classNames()
  Cropper()
  useSaveImage()
  useTransformState()
  editImage()
  useTransformImage()
  ImageEditingProvider()
  ImageCropper()
  ZoomDropdown()
  AspectGroup()
  AspectRatioDropdown()
  RotationButton()
  FormControls()
  ImageEditor()
  getFilename()
  Image()
  onResizeStart()
  onResizeStop()
  onImageError()
  onSetHref()
  onSetTitle()
  updateAlt()
  updateImage()
  uploadExternal()
  updateAlignment()
  switchToCover()
  hasDefaultSize()
  ImageEdit()
  onUploadError()
  onSelectImage()
  onSelectURL()
  updateAlignment()
  save_save()
  stripFirstImage()
  getFirstAnchorAttributeFormHTML()
  HeadingLevelIcon()
  HeadingLevelDropdown()
  HeadingEdit()
  heading_save_save()
  getLevelFromHeadingNodeName()
  QuoteEdit()
  quote_save_save()
  defaultColumnsNumber()

Class: gallery_image_GalleryImage  - X-Ref

RichTextVisibilityHelper({isHidden,...richTextProps})   X-Ref
No description

GalleryEdit(props)   X-Ref
No description

onFocusGalleryCaption()   X-Ref
No description

setAttributes(newAttrs)   X-Ref
No description

onSelectImage(index)   X-Ref
No description

onDeselectImage()   X-Ref
No description

onMove(oldIndex, newIndex)   X-Ref
No description

onMoveForward(oldIndex)   X-Ref
No description

onMoveBackward(oldIndex)   X-Ref
No description

onRemoveImage(index)   X-Ref
No description

selectCaption(newImage)   X-Ref
No description

onSelectImages(newImages)   X-Ref
No description

onUploadError(message)   X-Ref
No description

setLinkTo(value)   X-Ref
No description

setColumnsNumber(value)   X-Ref
No description

toggleImageCrop()   X-Ref
No description

getImageCropHelp(checked)   X-Ref
No description

setImageAttributes(index, newAttributes)   X-Ref
No description

getImagesSizeOptions()   X-Ref
No description

updateImagesSize(newSizeSlug)   X-Ref
No description

gallery_save_save({attributes})   X-Ref
No description

ArchivesEdit({attributes,setAttributes})   X-Ref
No description

AudioEdit({attributes,noticeOperations,setAttributes,onReplace,isSelected,noticeUI,insertBlocksAfter})   X-Ref
No description

toggleAttribute(attribute)   X-Ref
No description

onSelectURL(newSrc)   X-Ref
No description

onUploadError(message)   X-Ref
No description

getAutoplayHelp(checked)   X-Ref
No description

onSelectAudio(media)   X-Ref
No description

audio_save_save({attributes})   X-Ref
WordPress dependencies


WidthPanel({selectedWidth,setAttributes})   X-Ref
No description

handleChange(newWidth)   X-Ref
No description

URLPicker({isSelected,url,setAttributes,opensInNewTab,onToggleOpenInNewTab,anchorRef})   X-Ref
No description

ButtonEdit(props)   X-Ref
No description

button_save_save({attributes,className})   X-Ref
WordPress dependencies


ButtonsEdit({attributes: {contentJustification,orientation},setAttributes})   X-Ref
No description

buttons_save_save({attributes: {contentJustification,orientation}})   X-Ref
WordPress dependencies


CalendarEdit({attributes})   X-Ref
No description

CategoriesEdit({attributes: {displayAsDropdown,showHierarchy,showPostCounts},setAttributes})   X-Ref
No description

CodeEdit({attributes,setAttributes,onRemove})   X-Ref
WordPress dependencies


utils_escape(content)   X-Ref
Escapes ampersands, shortcodes, and links.

param: {string} content The content of a code block.
return: {string} The given content with some characters escaped.

escapeOpeningSquareBrackets(content)   X-Ref
Returns the given content with all opening shortcode characters converted
into their HTML entity counterpart (i.e. [ => [). For instance, a
shortcode like [embed] becomes [embed]

This function replicates the escaping of HTML tags, where a tag like
<strong> becomes &lt;strong>.

param: {string}  content The content of a code block.
return: {string} The given content with its opening shortcode characters

escapeProtocolInIsolatedUrls(content)   X-Ref
Converts the first two forward slashes of any isolated URL into their HTML
counterparts (i.e. // => &#47;&#47;). For instance, https://youtube.com/watch?x
becomes https:&#47;&#47;youtube.com/watch?x.

An isolated URL is a URL that sits in its own line, surrounded only by spacing
characters.

See https://github.com/WordPress/wordpress-develop/blob/5.1.1/src/wp-includes/class-wp-embed.php#L403

param: {string}  content The content of a code block.
return: {string} The given content with its ampersands converted into

code_save_save({attributes})   X-Ref
Internal dependencies


getDeprecatedLayoutColumn(originalContent)   X-Ref
Given an HTML string for a deprecated columns inner block, returns the
column index to which the migrated inner block should be assigned. Returns
undefined if the inner block was not assigned to a column.

param: {string} originalContent Deprecated Columns inner block HTML.
return: {?number} Column to which inner block is to be assigned.

getEffectiveColumnWidth(block, totalBlockCount)   X-Ref
Returns an effective width for a given block. An effective width is equal to
its attribute value if set, or a computed value assuming equal distribution.

param: {WPBlock} block           Block object.
param: {number}  totalBlockCount Total number of blocks in Columns.
return: {number} Effective column width.

getTotalColumnsWidth(blocks, totalBlockCount = blocks.length)   X-Ref
Returns the total width occupied by the given set of column blocks.

param: {WPBlock[]} blocks          Block objects.
param: {?number}   totalBlockCount Total number of blocks in Columns.
return: {number} Total width occupied by blocks.

getColumnWidths(blocks, totalBlockCount = blocks.length)   X-Ref
Returns an object of `clientId` → `width` of effective column widths.

param: {WPBlock[]} blocks          Block objects.
param: {?number}   totalBlockCount Total number of blocks in Columns.
return: {Object<string,number>} Column widths.

getRedistributedColumnWidths(blocks, availableWidth, totalBlockCount = blocks.length)   X-Ref
Returns an object of `clientId` → `width` of column widths as redistributed
proportional to their current widths, constrained or expanded to fit within
the given available width.

param: {WPBlock[]} blocks          Block objects.
param: {number}    availableWidth  Maximum width to fit within.
param: {?number}   totalBlockCount Total number of blocks in Columns.
return: {Object<string,number>} Redistributed column widths.

hasExplicitPercentColumnWidths(blocks)   X-Ref
Returns true if column blocks within the provided set are assigned with
explicit widths, or false otherwise.

param: {WPBlock[]} blocks Block objects.
return: {boolean} Whether columns have explicit widths.

getMappedColumnWidths(blocks, widths)   X-Ref
Returns a copy of the given set of blocks with new widths assigned from the
provided object of redistributed column widths.

param: {WPBlock[]}             blocks Block objects.
param: {Object<string,number>} widths Redistributed column widths.
return: {WPBlock[]} blocks Mapped block objects.

getWidths(blocks, withParsing = true)   X-Ref
Returns an array with columns widths values, parsed or no depends on `withParsing` flag.

param: {WPBlock[]} blocks            Block objects.
param: {?boolean} withParsing     Whether value has to be parsed.
return: {Array<number,string>} Column widths.

getWidthWithUnit(width, unit)   X-Ref
Returns a column width with unit.

param: {string} width    Column width.
param: {string} unit     Column width unit.
return: {string} Column width with unit.

isPercentageUnit(unit)   X-Ref
Returns a boolean whether passed unit is percentage

param: {string} unit Column width unit.
return: {boolean}     Whether unit is '%'.

ColumnsEditContainer({attributes,updateAlignment,updateColumns,clientId})   X-Ref
No description

Placeholder({clientId,name,setAttributes})   X-Ref
No description

columns_save_save({attributes})   X-Ref
WordPress dependencies


ColumnEdit({attributes: {verticalAlignment,width,templateLock = false},setAttributes,clientId})   X-Ref
No description

column_save_save({attributes})   X-Ref
WordPress dependencies


backgroundImageStyles(url)   X-Ref
No description

dimRatioToClass(ratio)   X-Ref
No description

attributesFromMedia(setAttributes)   X-Ref
No description

isContentPositionCenter(contentPosition)   X-Ref
Checks of the contentPosition is the center (default) position.

param: {string} contentPosition The current content position.
return: {boolean} Whether the contentPosition is center.

getPositionClassName(contentPosition)   X-Ref
Retrieves the className for the current contentPosition.
The default position (center) will not have a className.

param: {string} contentPosition The current content position.
return: {string} The className assigned to the contentPosition.

retrieveFastAverageColor()   X-Ref
No description

CoverHeightInput({onChange,onUnitChange,unit = 'px',value = ''})   X-Ref
No description

ResizableCover({className,onResizeStart,onResize,onResizeStop,...props})   X-Ref
No description

useCoverIsDark(url, dimRatio = 50, overlayColor, elementRef)   X-Ref
useCoverIsDark is a hook that returns a boolean variable specifying if the cover
background is dark or not.

param: {?string} url          Url of the media background.
param: {?number} dimRatio     Transparency of the overlay color. If an image and
param: {?string} overlayColor String containing the overlay color value if one exists.
param: {?Object} elementRef   If a media background is set, elementRef should contain a reference to a
return: {boolean} True if the cover background is considered "dark" and false otherwise.

edit_mediaPosition({x,y})   X-Ref
No description

CoverPlaceholder({disableMediaButtons = false,children,noticeUI,noticeOperations,onSelectMedia})   X-Ref
No description

CoverEdit({attributes,clientId,isSelected,noticeUI,noticeOperations,overlayColor,setAttributes,setOverlayColor,toggleSelection})   X-Ref
No description

cover_save_save({attributes})   X-Ref
Internal dependencies


WpEmbedPreview({html})   X-Ref
No description

resizeWPembeds({data: {secret,message,value} = {}})   X-Ref
Checks for WordPress embed events signaling the height change when iframe
content loads or iframe's window is resized.  The event is sent from
WordPress core via the window.postMessage API.

References:
window.postMessage: https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage
WordPress core embed-template on load: https://github.com/WordPress/WordPress/blob/HEAD/wp-includes/js/wp-embed-template.js#L143
WordPress core embed-template on resize: https://github.com/WordPress/WordPress/blob/HEAD/wp-includes/js/wp-embed-template.js#L187

param: {WPSyntheticEvent} event Message event.

checkFocus()   X-Ref
Checks whether the wp embed iframe is the activeElement,
if it is dispatch a focus event.


Class: embed_preview_EmbedPreview  - X-Ref

edit_getResponsiveHelp(checked)   X-Ref
No description

embed_save_save({attributes})   X-Ref
WordPress dependencies


FileBlockInspector({hrefs,openInNewWindow,showDownloadButton,changeLinkDestinationOption,changeOpenInNewWindow,changeShowDownloadButton,displayPreview,changeDisplayPreview,previewHeight,changePreviewHeight})   X-Ref
Internal dependencies


ClipboardToolbarButton({text,disabled})   X-Ref
No description

FileEdit({attributes,isSelected,setAttributes,noticeUI,noticeOperations})   X-Ref
No description

onSelectFile(newMedia)   X-Ref
No description

onUploadError(message)   X-Ref
No description

changeLinkDestinationOption(newHref)   X-Ref
No description

changeOpenInNewWindow(newValue)   X-Ref
No description

changeShowDownloadButton(newValue)   X-Ref
No description

changeDownloadButtonText(newValue)   X-Ref
No description

changeDisplayPreview(newValue)   X-Ref
No description

handleOnResizeStop(event, direction, elt, delta)   X-Ref
No description

changePreviewHeight(newValue)   X-Ref
No description

file_save_save({attributes})   X-Ref
WordPress dependencies


HTMLEdit({attributes,setAttributes,isSelected})   X-Ref
No description

switchToPreview()   X-Ref
No description

switchToHTML()   X-Ref
No description

html_save_save({attributes})   X-Ref
WordPress dependencies


imageFillStyles(url, focalPoint)   X-Ref
Constants


ToolbarEditButton({mediaId,mediaUrl,onSelectMedia})   X-Ref
No description

PlaceholderContainer({className,noticeOperations,noticeUI,onSelectMedia})   X-Ref
No description

MediaContainer(props, ref)   X-Ref
No description

getImageSourceUrlBySizeSlug(image, slug)   X-Ref
No description

edit_attributesFromMedia({attributes: {linkDestination,href},setAttributes})   X-Ref
No description

MediaTextEdit({attributes,isSelected,setAttributes})   X-Ref
No description

media_text_save_save({attributes})   X-Ref
No description

LatestComments({attributes,setAttributes})   X-Ref
Maximum number of comments a user can show using this block.


LatestPostsEdit({attributes,setAttributes})   X-Ref
No description

LoginOutEdit({attributes,setAttributes})   X-Ref
No description

ListEdit({attributes,setAttributes,mergeBlocks,onReplace})   X-Ref
No description

list_save_save({attributes})   X-Ref
WordPress dependencies


getListContentSchema({phrasingContentSchema})   X-Ref
No description

MissingBlockWarning({attributes,convertToHTML})   X-Ref
No description

missing_save_save({attributes})   X-Ref
WordPress dependencies


MoreEdit({attributes: {customText,noTeaser},insertBlocksAfter,setAttributes})   X-Ref
No description

more_save_save({attributes: {customText,noTeaser}})   X-Ref
WordPress dependencies


NextPageEdit()   X-Ref
WordPress dependencies


nextpage_save_save()   X-Ref
WordPress dependencies


ConvertToLinksModal({onClose,clientId})   X-Ref
No description

PageListEdit({context,clientId})   X-Ref
No description

PreformattedEdit({attributes,mergeBlocks,setAttributes,onRemove})   X-Ref
WordPress dependencies


preformatted_save_save({attributes})   X-Ref
WordPress dependencies


parseBorderColor(styleString)   X-Ref
No description

PullQuoteEdit({colorUtils,textColor,attributes: {value,citation},setAttributes,setTextColor,setMainColor,mainColor,isSelected,insertBlocksAfter})   X-Ref
No description

pullQuoteMainColorSetter(colorValue)   X-Ref
No description

pullQuoteTextColorSetter(colorValue)   X-Ref
No description

pullquote_save_save({attributes})   X-Ref
Internal dependencies


ReusableBlockEdit({attributes: {ref},clientId})   X-Ref
No description

RSSEdit({attributes,setAttributes})   X-Ref
No description

toggleAttribute(propName)   X-Ref
No description

onSubmitURL(event)   X-Ref
No description

utils_isPercentageUnit(unit)   X-Ref
Returns a boolean whether passed unit is percentage

param: {string} unit Block width unit.
return: {boolean}     Whether unit is '%'.

SearchEdit({className,attributes,setAttributes,toggleSelection,isSelected})   X-Ref
No description

GroupEdit({attributes,setAttributes,clientId})   X-Ref
No description

group_save_save({attributes})   X-Ref
WordPress dependencies


SeparatorEdit({color,setColor,className})   X-Ref
No description

separatorSave({attributes})   X-Ref
WordPress dependencies


ShortcodeEdit({attributes,setAttributes})   X-Ref
No description

shortcode_save_save({attributes})   X-Ref
WordPress dependencies


spacer_save_save({attributes})   X-Ref
WordPress dependencies


createTable({rowCount,columnCount})   X-Ref
Creates a table state.

param: {Object} options
param: {number} options.rowCount    Row count for the table to create.
param: {number} options.columnCount Column count for the table to create.
return: {Object} New table state.

getFirstRow(state)   X-Ref
Returns the first row in the table.

param: {Object} state Current table state.
return: {Object} The first table row.

getCellAttribute(state, cellLocation, attributeName)   X-Ref
Gets an attribute for a cell.

param: {Object} state          Current table state.
param: {Object} cellLocation  The location of the cell
param: {string} attributeName The name of the attribute to get the value of.
return: {*} The attribute value.

updateSelectedCell(state, selection, updateCell)   X-Ref
Returns updated cell attributes after applying the `updateCell` function to the selection.

param: {Object}   state      The block attributes.
param: {Object}   selection  The selection of cells to update.
param: {Function} updateCell A function to update the selected cell attributes.
return: {Object} New table state including the updated cells.

isCellSelected(cellLocation, selection)   X-Ref
Returns whether the cell at `cellLocation` is included in the selection `selection`.

param: {Object} cellLocation An object containing cell location properties.
param: {Object} selection    An object containing selection properties.
return: {boolean} True if the cell is selected, false otherwise.

insertRow(state, {sectionName,rowIndex,columnCount})   X-Ref
Inserts a row in the table state.

param: {Object} state               Current table state.
param: {Object} options
param: {string} options.sectionName Section in which to insert the row.
param: {number} options.rowIndex    Row index at which to insert the row.
param: {number} options.columnCount Column count for the table to create.
return: {Object} New table state.

deleteRow(state, {sectionName,rowIndex})   X-Ref
Deletes a row from the table state.

param: {Object} state               Current table state.
param: {Object} options
param: {string} options.sectionName Section in which to delete the row.
param: {number} options.rowIndex    Row index to delete.
return: {Object} New table state.

insertColumn(state, {columnIndex})   X-Ref
Inserts a column in the table state.

param: {Object} state               Current table state.
param: {Object} options
param: {number} options.columnIndex Column index at which to insert the column.
return: {Object} New table state.

deleteColumn(state, {columnIndex})   X-Ref
Deletes a column from the table state.

param: {Object} state               Current table state.
param: {Object} options
param: {number} options.columnIndex Column index to delete.
return: {Object} New table state.

toggleSection(state, sectionName)   X-Ref
Toggles the existance of a section.

param: {Object} state       Current table state.
param: {string} sectionName Name of the section to toggle.
return: {Object} New table state.

isEmptyTableSection(section)   X-Ref
Determines whether a table section is empty.

param: {Object} section Table section state.
return: {boolean} True if the table section is empty, false otherwise.

isEmptyRow(row)   X-Ref
Determines whether a table row is empty.

param: {Object} row Table row state.
return: {boolean} True if the table section is empty, false otherwise.

TSection({name,...props})   X-Ref
No description

TableEdit({attributes,setAttributes,insertBlocksAfter,isSelected})   X-Ref
No description

onChangeInitialColumnCount(count)   X-Ref
Updates the initial column count used for table creation.

param: {number} count New initial column count.

onChangeInitialRowCount(count)   X-Ref
Updates the initial row count used for table creation.

param: {number} count New initial row count.

onCreateTable(event)   X-Ref
Creates a table based on dimensions in local state.

param: {Object} event Form submit event.

onChangeFixedLayout()   X-Ref
Toggles whether the table has a fixed layout or not.


onChange(content)   X-Ref
Changes the content of the currently selected cell.

param: {Array} content A RichText content value.

onChangeColumnAlignment(align)   X-Ref
Align text within the a column.

param: {string} align The new alignment to apply to the column.

getCellAlignment()   X-Ref
Get the alignment of the currently selected cell.

return: {string} The new alignment to apply to the column.

onToggleHeaderSection()   X-Ref
Add or remove a `head` table section.


onToggleFooterSection()   X-Ref
Add or remove a `foot` table section.


onInsertRow(delta)   X-Ref
Inserts a row at the currently selected row index, plus `delta`.

param: {number} delta Offset for selected row index at which to insert.

onInsertRowBefore()   X-Ref
Inserts a row before the currently selected row.


onInsertRowAfter()   X-Ref
Inserts a row after the currently selected row.


onDeleteRow()   X-Ref
Deletes the currently selected row.


onInsertColumn(delta = 0)   X-Ref
Inserts a column at the currently selected column index, plus `delta`.

param: {number} delta Offset for selected column index at which to insert.

onInsertColumnBefore()   X-Ref
Inserts a column before the currently selected column.


onInsertColumnAfter()   X-Ref
Inserts a column after the currently selected column.


onDeleteColumn()   X-Ref
Deletes the currently selected column.


table_save_save({attributes})   X-Ref
WordPress dependencies


TextColumnsEdit({attributes,setAttributes})   X-Ref
No description

text_columns_save_save({attributes})   X-Ref
WordPress dependencies


VerseEdit({attributes,setAttributes,mergeBlocks,onRemove})   X-Ref
No description

verse_save_save({attributes})   X-Ref
WordPress dependencies


TrackList({tracks,onEditPress})   X-Ref
No description

SingleTrackEditor({track,onChange,onClose,onRemove})   X-Ref
No description

TracksEditor({tracks = [],onChange})   X-Ref
No description

Tracks({tracks = []})   X-Ref
No description

VideoEdit({isSelected,noticeUI,attributes,className,setAttributes,insertBlocksAfter,onReplace,noticeOperations})   X-Ref
No description

onSelectVideo(media)   X-Ref
No description

onSelectURL(newSrc)   X-Ref
No description

onUploadError(message)   X-Ref
No description

onSelectPoster(image)   X-Ref
No description

onRemovePoster()   X-Ref
No description

video_save_save({attributes})   X-Ref
Internal dependencies


TagCloudEdit({attributes,setAttributes,taxonomies})   X-Ref
No description

isTmceEmpty(editor)   X-Ref
No description

ClassicEdit({clientId,attributes: {content},setAttributes,onReplace})   X-Ref
No description

onSetup(editor)   X-Ref
No description

initialize()   X-Ref
No description

onReadyStateChange()   X-Ref
No description

focus()   X-Ref
No description

onToolbarKeyDown(event)   X-Ref
No description

freeform_save_save({attributes})   X-Ref
WordPress dependencies


SocialLinksEdit(props)   X-Ref
No description

social_links_save_save(props)   X-Ref
WordPress dependencies


onResizeStart()   X-Ref
No description

onResizeStop()   X-Ref
No description

LogoEdit({attributes,className,setAttributes,isSelected})   X-Ref
No description

SiteTaglineEdit({attributes,setAttributes})   X-Ref
No description

LevelIcon({level,isPressed = false})   X-Ref
WordPress dependencies


LevelControl({level,onChange})   X-Ref
Internal dependencies


SiteTitleEdit({attributes,setAttributes,insertBlocksAfter})   X-Ref
Internal dependencies


QueryToolbar({attributes: {query,displayLayout},setQuery,setDisplayLayout})   X-Ref
No description

QueryInspectorControls({attributes: {query,displayLayout},setQuery,setDisplayLayout})   X-Ref
No description

QueryContent({attributes,setAttributes})   X-Ref
No description

QueryPatternSetup(props)   X-Ref
No description

QuerySave({attributes: {tagName: Tag = 'div'}})   X-Ref
WordPress dependencies


PostTemplateEdit({clientId,context: {query: {perPage,offset,categoryIds,postType,tagIds = [],order,orderBy,author,search,exclude,sticky,inherit} = {},queryContext = [{page: 1}],templateSlug,displayLayout: {type: layoutType = 'flex',columns = 1} = {}}})   X-Ref
No description

PostTemplateSave()   X-Ref
WordPress dependencies


QueryTitleEdit({attributes: {type,level,textAlign},setAttributes})   X-Ref
No description

QueryPaginationEdit()   X-Ref
WordPress dependencies


query_pagination_save_save()   X-Ref
WordPress dependencies


QueryPaginationNextEdit({attributes: {label},setAttributes})   X-Ref
WordPress dependencies


QueryPaginationNumbersEdit()   X-Ref
No description

QueryPaginationPreviousEdit({attributes: {label},setAttributes})   X-Ref
WordPress dependencies


useCanEditEntity(kind, name, recordId)   X-Ref
Returns whether the current user can edit the given entity.

param: {string} kind     Entity kind.
param: {string} name     Entity name.
param: {string} recordId Record's id.

PostTitleEdit({attributes: {level,textAlign,isLink,rel,linkTarget},setAttributes,context: {postType,postId,queryId}})   X-Ref
No description

ReadOnlyContent({userCanEdit,postType,postId})   X-Ref
No description

EditableContent({layout,context = {}})   X-Ref
No description

Content(props)   X-Ref
No description

edit_Placeholder()   X-Ref
No description

RecursionError()   X-Ref
No description

PostContentEdit({context,attributes})   X-Ref
No description

PostDateEdit({attributes: {textAlign,format,isLink},context: {postId,postType,queryId},setAttributes})   X-Ref
No description

PostExcerptEditor({attributes: {textAlign,moreText,showMoreOnNewLine},setAttributes,isSelected,context: {postId,postType,queryId}})   X-Ref
Internal dependencies


PostFeaturedImageDisplay({attributes: {isLink},setAttributes,context: {postId,postType,queryId},noticeUI,noticeOperations})   X-Ref
No description

onUploadError(message)   X-Ref
No description

PostFeaturedImageEdit(props)   X-Ref
No description

usePostTerms({postId,postType,term})   X-Ref
WordPress dependencies


PostTermsEdit({attributes,context,setAttributes})   X-Ref
Internal dependencies


classNames()   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

isEventSupported(eventNameSuffix, capture)   X-Ref
Checks if an event is supported in the current execution environment.

NOTE: This will not work correctly for non-generic events such as `change`,
`reset`, `load`, `error`, and `select`.

Borrows from Modernizr.

param: {string} eventNameSuffix Event name, e.g. "click".
param: {?boolean} capture Check if the capture phase is supported.
return: {boolean} True if the event is supported.

Icon({icon,size = 24,...props})   X-Ref
Return an SVG icon.

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

_populate()   X-Ref
No description

_extends()   X-Ref
No description

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

normalizeWheel( event)   X-Ref
Mouse wheel (and 2-finger trackpad) support on the web sucks.  It is
complicated, thus this doc is long and (hopefully) detailed enough to answer
your questions.

If you need to react to the mouse wheel in a predictable way, this code is
like your bestest friend. * hugs *

As of today, there are 4 DOM event types you can listen to:

'wheel'                -- Chrome(31+), FF(17+), IE(9+)
'mousewheel'           -- Chrome, IE(6+), Opera, Safari
'MozMousePixelScroll'  -- FF(3.5 only!) (2010-2013) -- don't bother!
'DOMMouseScroll'       -- FF(0.9.7+) since 2003

So what to do?  The is the best:

normalizeWheel.getEventType();

In your event callback, use this code to get sane interpretation of the
deltas.  This code will return an object with properties:

spinX   -- normalized spin speed (use for zoom) - x plane
spinY   -- " - y plane
pixelX  -- normalized distance (to pixels) - x plane
pixelY  -- " - y plane

Wheel values are provided by the browser assuming you are using the wheel to
scroll a web page by a number of lines or pixels (or pages).  Values can vary
significantly on different platforms and browsers, forgetting that you can
scroll at different speeds.  Some devices (like trackpads) emit more events
at smaller increments with fine granularity, and some emit massive jumps with
linear speed or acceleration.

This code does its best to normalize the deltas for you:

- spin is trying to normalize how far the wheel was spun (or trackpad
dragged).  This is super useful for zoom support where you want to
throw away the chunky scroll steps on the PC and make those equal to
the slow and smooth tiny steps on the Mac. Key data: This code tries to
resolve a single slow step on a wheel to 1.

- pixel is normalizing the desired scroll delta in pixel units.  You'll
get the crazy differences between browsers, but at least it'll be in
pixels!

- positive value indicates scrolling DOWN/RIGHT, negative UP/LEFT.  This
should translate to positive value zooming IN, negative zooming OUT.
This matches the newer 'wheel' event.

Why are there spinX, spinY (or pixels)?

- spinX is a 2-finger side drag on the trackpad, and a shift + wheel turn
with a mouse.  It results in side-scrolling in the browser by default.

- spinY is what you expect -- it's the classic axis of a mouse wheel.

- I dropped spinZ/pixelZ.  It is supported by the DOM 3 'wheel' event and
probably is by browsers in conjunction with fancy 3D controllers .. but
you know.

Implementation info:

Examples of 'wheel' event if you scroll slowly (down) by one step with an
average mouse:

OS X + Chrome  (mouse)     -    4   pixel delta  (wheelDelta -120)
OS X + Safari  (mouse)     -  N/A   pixel delta  (wheelDelta  -12)
OS X + Firefox (mouse)     -    0.1 line  delta  (wheelDelta  N/A)
Win8 + Chrome  (mouse)     -  100   pixel delta  (wheelDelta -120)
Win8 + Firefox (mouse)     -    3   line  delta  (wheelDelta -120)

On the trackpad:

OS X + Chrome  (trackpad)  -    2   pixel delta  (wheelDelta   -6)
OS X + Firefox (trackpad)  -    1   pixel delta  (wheelDelta  N/A)

On other/older browsers.. it's more complicated as there can be multiple and
also missing delta values.

The 'wheel' event is more standard:

http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents

The basics is that it includes a unit, deltaMode (pixels, lines, pages), and
deltaX, deltaY and deltaZ.  Some browsers provide other values to maintain
backward compatibility with older events.  Those other values help us
better normalize spin speed.  Example of what the browsers provide:

| event.wheelDelta | event.detail
------------------+------------------+--------------
Safari v5/OS X  |       -120       |       0
Safari v5/Win7  |       -120       |       0
Chrome v17/OS X  |       -120       |       0
Chrome v17/Win7  |       -120       |       0
IE9/Win7  |       -120       |   undefined
Firefox v4/OS X  |     undefined    |       1
Firefox v4/Win7  |     undefined    |       3


memize( fn, options )   X-Ref
Accepts a function to be memoized, and returns a new memoized function, with
optional options.

param: {F}             fn        Function to memoize.
param: {MemizeOptions} [options] Options object.
return: {F & MemizeMemoizedFunction} Memoized function.

memoized( )   X-Ref
No description

StorageObject()   X-Ref
No description

_parseArray(resultSet, array)   X-Ref
No description

_parseNumber(resultSet, num)   X-Ref
No description

_parseObject(resultSet, object)   X-Ref
No description

_parseString(resultSet, str)   X-Ref
No description

_parse(resultSet, arg)   X-Ref
No description

_classNames()   X-Ref
No description

_classCallCheck(instance, Constructor)   X-Ref
No description

_defineProperties(target, props)   X-Ref
No description

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

_slicedToArray(arr, i)   X-Ref
No description

_arrayWithHoles(arr)   X-Ref
No description

_iterableToArrayLimit(arr, i)   X-Ref
No description

_nonIterableRest()   X-Ref
No description

FastAverageColor()   X-Ref
No description

ParagraphRTLControl({direction,setDirection})   X-Ref
No description

ParagraphBlock({attributes,mergeBlocks,onReplace,onRemove,setAttributes,clientId})   X-Ref
No description

save({attributes})   X-Ref
WordPress dependencies


getClassNames(html, existingClassNames, allowResponsive = true)   X-Ref
Returns class names with any relevant responsive aspect ratio names.

param: {string}  html               The preview HTML that possibly contains an iframe with width and height set.
param: {string}  existingClassNames Any existing class names.
param: {boolean} allowResponsive    If the responsive class names should be added, or removed.
return: {string} Deduped class names.

util_fallback(url, onReplace)   X-Ref
Fallback behaviour for unembeddable URLs.
Creates a paragraph block containing a link to the URL, and calls `onReplace`.

param: {string}   url       The URL that could not be embedded.
param: {Function} onReplace Function to call with the created fallback block.

useClientWidth(ref, dependencies)   X-Ref
WordPress dependencies


calculateClientWidth()   X-Ref
No description

__extends(d, b)   X-Ref
No description

__()   X-Ref
No description

__rest(s, e)   X-Ref
No description

__decorate(decorators, target, key, desc)   X-Ref
No description

__param(paramIndex, decorator)   X-Ref
No description

__metadata(metadataKey, metadataValue)   X-Ref
No description

__awaiter(thisArg, _arguments, P, generator)   X-Ref
No description

adopt(value)   X-Ref
No description

fulfilled(value)   X-Ref
No description

rejected(value)   X-Ref
No description

step(result)   X-Ref
No description

__generator(thisArg, body)   X-Ref
No description

verb(n)   X-Ref
No description

step(op)   X-Ref
No description

__exportStar(m, o)   X-Ref
No description

__values(o)   X-Ref
No description

__read(o, n)   X-Ref
No description

__spread()   X-Ref
No description

__spreadArrays()   X-Ref
No description

__await(v)   X-Ref
No description

__asyncGenerator(thisArg, _arguments, generator)   X-Ref
No description

verb(n)   X-Ref
No description

resume(n, v)   X-Ref
No description

step(r)   X-Ref
No description

fulfill(value)   X-Ref
No description

reject(value)   X-Ref
No description

settle(f, v)   X-Ref
No description

__asyncDelegator(o)   X-Ref
No description

verb(n, f)   X-Ref
No description

__asyncValues(o)   X-Ref
No description

verb(n)   X-Ref
No description

settle(resolve, reject, d, v)   X-Ref
No description

__makeTemplateObject(cooked, raw)   X-Ref
No description

__importStar(mod)   X-Ref
No description

__importDefault(mod)   X-Ref
No description

__classPrivateFieldGet(receiver, privateMap)   X-Ref
No description

__classPrivateFieldSet(receiver, privateMap, value)   X-Ref
No description

getCropSize(mediaWidth, mediaHeight, containerWidth, containerHeight, aspect, rotation)   X-Ref
Compute the dimension of the crop area based on media size,
aspect ratio and optionally rotation


index_module_restrictPosition(position, mediaSize, cropSize, zoom, rotation)   X-Ref
Ensure a new media position stays in the crop area.


restrictPositionCoord(position, mediaSize, cropSize, zoom)   X-Ref
No description

getDistanceBetweenPoints(pointA, pointB)   X-Ref
No description

getRotationBetweenPoints(pointA, pointB)   X-Ref
No description

computeCroppedArea(crop, mediaSize, cropSize, aspect, zoom, rotation, restrictPosition)   X-Ref
Compute the output cropped area of the media in percentages and pixels.
x/y are the top-left coordinates on the src media


limitArea(max, value)   X-Ref
Ensure the returned value is between 0 and max


noOp(_max, value)   X-Ref
No description

getZoomFromCroppedAreaPixels(croppedAreaPixels, mediaSize, cropSize)   X-Ref
Compute the crop and zoom from the croppedAreaPixels


getInitialCropFromCroppedAreaPixels(croppedAreaPixels, mediaSize, cropSize)   X-Ref
Compute the crop and zoom from the croppedAreaPixels


getCenter(a, b)   X-Ref
Return the point that is the center of point a and b


rotateAroundMidPoint(x, y, xMid, yMid, degrees)   X-Ref
Returns an x,y point once rotated around xMid,yMid


translateSize(width, height, rotation)   X-Ref
Returns the new bounding area of a rotated rectangle.


index_module_classNames()   X-Ref
Combine multiple class names into a single string.


Cropper()   X-Ref
No description

useSaveImage({crop,rotation,height,width,aspect,url,id,onSaveImage,onFinishEditing})   X-Ref
No description

useTransformState({url,naturalWidth,naturalHeight})   X-Ref
No description

editImage(event)   X-Ref
No description

useTransformImage(imageProperties, isEditing)   X-Ref
No description

ImageEditingProvider({id,url,naturalWidth,naturalHeight,isEditing,onFinishEditing,onSaveImage,children})   X-Ref
No description

ImageCropper({url,width,height,clientWidth,naturalHeight,naturalWidth})   X-Ref
No description

ZoomDropdown()   X-Ref
No description

AspectGroup({aspectRatios,isDisabled,label,onClick,value})   X-Ref
No description

AspectRatioDropdown({toggleProps})   X-Ref
No description

RotationButton()   X-Ref
Internal dependencies


FormControls()   X-Ref
Internal dependencies


ImageEditor({url,width,height,clientWidth,naturalHeight,naturalWidth})   X-Ref
No description

getFilename(url)   X-Ref
No description

Image({temporaryURL,attributes: {url = '',alt,caption,align,id,href,rel,linkClass,linkDestination,title,width,height,linkTarget,sizeSlug},setAttributes,isSelected,insertBlocksAfter,onReplace,onSelectImage,onSelectURL,onUploadError,containerRef,clientId})   X-Ref
No description

onResizeStart()   X-Ref
No description

onResizeStop()   X-Ref
No description

onImageError()   X-Ref
No description

onSetHref(props)   X-Ref
No description

onSetTitle(value)   X-Ref
No description

updateAlt(newAlt)   X-Ref
No description

updateImage(newSizeSlug)   X-Ref
No description

uploadExternal()   X-Ref
No description

updateAlignment(nextAlign)   X-Ref
No description

switchToCover()   X-Ref
No description

hasDefaultSize(image, defaultSize)   X-Ref
Checks if WP generated default image size. Size generation is skipped
when the image is smaller than the said size.

param: {Object} image
param: {string} defaultSize
return: {boolean} Whether or not it has default image size.

ImageEdit({attributes,setAttributes,isSelected,className,noticeUI,insertBlocksAfter,noticeOperations,onReplace,clientId})   X-Ref
No description

onUploadError(message)   X-Ref
No description

onSelectImage(media)   X-Ref
No description

onSelectURL(newURL)   X-Ref
No description

updateAlignment(nextAlign)   X-Ref
No description

save_save({attributes})   X-Ref
WordPress dependencies


stripFirstImage(attributes, {shortcode})   X-Ref
WordPress dependencies


getFirstAnchorAttributeFormHTML(html, attributeName)   X-Ref
No description

HeadingLevelIcon({level,isPressed = false})   X-Ref
Heading level icon.

param: {WPHeadingLevelIconProps} props Component props.
return: {?WPComponent} The icon.

HeadingLevelDropdown({selectedLevel,onChange})   X-Ref
Dropdown for selecting a heading level (1 through 6).

param: {WPHeadingLevelDropdownProps} props Component props.
return: {WPComponent} The toolbar.

HeadingEdit({attributes,setAttributes,mergeBlocks,onReplace,mergedStyle,clientId})   X-Ref
No description

heading_save_save({attributes})   X-Ref
WordPress dependencies


getLevelFromHeadingNodeName(nodeName)   X-Ref
Given a node name string for a heading node, returns its numeric level.

param: {string} nodeName Heading node name.
return: {number} Heading level.

QuoteEdit({attributes,setAttributes,isSelected,mergeBlocks,onReplace,className,insertBlocksAfter,mergedStyle})   X-Ref
No description

quote_save_save({attributes})   X-Ref
WordPress dependencies


defaultColumnsNumber(attributes)   X-Ref
External dependencies




Generated: Mon Aug 2 01:00:04 2021 Cross-referenced by PHPXref 0.7.1