Block Editor Handbook

Official Block Editor Handbook

  • 6. Component Reference
  • 7. Data Module Reference
    • WordPress Core Data
      • Selectors: canUser, getAuthors, getAutosave, getAutosaves, getCurrentUser, getEditedEntityRecord, getEmbedPreview, getEntitiesByKind, getEntity, getEntityRecord, getEntityRecordEdits, getEntityRecordNonTransientEdits, getEntityRecords, getLastEntitySaveError, getRawEntityRecord, getRedoEdit, getReferenceByDistinctEdits, getThemeSupports, getUndoEdit, getUserQueryResults, hasEditsForEntityRecord, hasFetchedAutosaves, hasRedo, hasUndo, hasUploadPermissions, isAutosavingEntityRecord, isPreviewEmbedFallback, isRequestingEmbedPreview, isSavingEntityRecord
      • Actions: addEntities, editEntityRecord, receiveAutosaves, receiveCurrentUser, receiveEmbedPreview, receiveEntityRecords, receiveThemeSupports, receiveUploadPermissions, receiveUserPermission, receiveUserQuery, redo, saveEditedEntityRecord, saveEntityRecord, undo
    • Annotations
      • No documentation.
    • Block Types Data
      • Selectors: getBlockStyles, getBlockSupport, getBlockType, getBlockTypes, getCategories, getChildBlockNames, getDefaultBlockName, getFreeformFallbackBlockName, getGroupingBlockName, getUnregisteredFallbackBlockName, hasBlockSupport, hasChildBlocks, hasChildBlocksWithInserterSupport, isMatchingSearchTerm
      • Actions: addBlockStyles, addBlockTypes, removeBlockStyles, removeBlockTypes, setCategories, setDefaultBlockName, setFreeformFallbackBlockName, setGroupingBlockName, setUnregisteredFallbackBlockName, updateCategory
    • Block Editor’s Data
      • Selectors: canInsertBlockType, didAutomaticChange, getAdjacentBlockClientId, getBlock, getBlockAttributes, getBlockHierarchyRootClientId, getBlockIndex, getBlockInsertionPoint, getBlockListSettings, getBlockMode, getBlockName, getBlockOrder, getBlockParents, getBlockRootClientId, getBlocks, getBlocksByClientId, getBlockSelectionEnd, getBlockSelectionStart, getClientIdsOfDescendants, getClientIdsWithDescendants, getFirstMultiSelectedBlockClientId, getGlobalBlockCount, getInserterItems, getLastMultiSelectedBlockClientId, getMultiSelectedBlockClientIds, getMultiSelectedBlocks, getMultiSelectedBlocksEndClientId, getMultiSelectedBlocksStartClientId, getNextBlockClientId, getPreviousBlockClientId, getSelectedBlock, getSelectedBlockClientId, getSelectedBlockClientIds, getSelectedBlocksInitialCaretPosition, getSelectionEnd, getSelectionStart, getSettings, getTemplate, getTemplateLock, hasInserterItems, hasMultiSelection, hasSelectedBlock, hasSelectedInnerBlock, isAncestorMultiSelected, isBlockInsertionPointVisible, isBlockMultiSelected, isBlockSelected, isBlockValid, isBlockWithinSelection, isCaretWithinFormattedText, isFirstMultiSelectedBlock, isLastBlockChangePersistent, isMultiSelecting, isNavigationMode, isSelectionEnabled, isTyping, isValidTemplate
      • Actions: clearSelectedBlock, exitFormattedText, hideInsertionPoint, insertBlock, insertBlocks, insertDefaultBlock, mergeBlocks, moveBlocksDown, moveBlocksUp, moveBlockToPosition, receiveBlocks, removeBlock, removeBlocks, replaceBlock, replaceBlocks, replaceInnerBlocks, resetBlocks, selectBlock, selectionChange, selectNextBlock, selectPreviousBlock, setNavigationMode, setTemplateValidity, showInsertionPoint, startMultiSelect, startTyping, stopMultiSelect, stopTyping, synchronizeTemplate, toggleBlockMode, toggleSelection, updateBlock, updateBlockAttributes, updateBlockListSettings
    • Post Editor’s Data
      • Selectors: canInsertBlockType, canUserUseUnfilteredHTML, didPostSaveRequestFail, didPostSaveRequestSucceed, getActivePostLock, getAdjacentBlockClientId, getBlock, getBlockAttributes, getBlockCount, getBlockHierarchyRootClientId, getBlockIndex, getBlockInsertionPoint, getBlockListSettings, getBlockMode, getBlockName, getBlockOrder, getBlockRootClientId, getBlocks, getBlocksByClientId, getBlockSelectionEnd, getBlockSelectionStart, getClientIdsOfDescendants, getClientIdsWithDescendants, getCurrentPost, getCurrentPostAttribute, getCurrentPostId, getCurrentPostLastRevisionId, getCurrentPostRevisionsCount, getCurrentPostType, getEditedPostAttribute, getEditedPostContent, getEditedPostPreviewLink, getEditedPostVisibility, getEditorBlocks, getEditorSelectionEnd, getEditorSelectionStart, getEditorSettings, getFirstMultiSelectedBlockClientId, getGlobalBlockCount, getInserterItems, getLastMultiSelectedBlockClientId….
      • Actions: …
    • Editor’s UI Data
    • Notices Data
    • New User Experience (NUX) Data
    • Viewport Data
  • 8. Package Reference