[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

(no description)

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

Defines 320 functions

  __webpack_require__()
  getDefault()
  getModuleExports()
  classNames()
  flattenIntoMap()
  refx()
  _assertThisInitialized()
  ownKeys()
  _objectSpread()
  Icon()
  emptyFunction()
  emptyFunctionWithReset()
  shim()
  getShim()
  _iterableToArrayLimit()
  _slicedToArray()
  _objectWithoutProperties()
  _getPrototypeOf()
  __()
  TextareaAutosize()
  assign()
  init()
  changeOverflow()
  getParentOverflows()
  resize()
  update()
  destroy()
  update()
  lineHeight()
  _arrayWithoutHoles()
  _nonIterableSpread()
  _toConsumableArray()
  _defineProperties()
  _createClass()
  _classCallCheck()
  _setPrototypeOf()
  _inherits()
  _possibleConstructorReturn()
  _arrayLikeToArray()
  _unsupportedIterableToArray()
  _iterableToArray()
  _arrayWithHoles()
  _nonIterableRest()
  _typeof()
  _objectWithoutPropertiesLoose()
  arrayOf()
  isObjectLike()
  createCache()
  isShallowEqual()
  getRootCache()
  getWeakMapCache()
  clear()
  callSelector()
  _objectWithoutProperties()
  optimist()
  beginReducer()
  commitReducer()
  revertReducer()
  baseReducer()
  matchesTransaction()
  validateState()
  separateState()
  ownKeys()
  _objectSpread()
  reducer_ownKeys()
  reducer_objectSpread()
  getPostRawValue()
  hasSameKeys()
  isUpdatingSamePostProperty()
  shouldOverwriteState()
  reducer_postId()
  reducer_postType()
  reducer_template()
  preferences()
  saving()
  postLock()
  postSavingLock()
  postAutosavingLock()
  reducer_isReady()
  reducer_editorSettings()
  getNotificationArgumentsForSaveSuccess()
  getNotificationArgumentsForSaveFail()
  getNotificationArgumentsForTrashFail()
  actions_ownKeys()
  actions_objectSpread()
  setupEditor()
  __experimentalTearDownEditor()
  resetPost()
  resetAutosave()
  __experimentalRequestPostUpdateStart()
  __experimentalRequestPostUpdateFinish()
  updatePost()
  setupEditorState()
  actions_editPost()
  __experimentalOptimisticUpdatePost()
  actions_savePost()
  refreshPost()
  trashPost()
  actions_autosave()
  actions_experimentalLocalAutosave()
  actions_redo()
  actions_undo()
  createUndoLevel()
  updatePostLock()
  actions_experimentalFetchReusableBlocks()
  __experimentalReceiveReusableBlocks()
  __experimentalSaveReusableBlock()
  __experimentalDeleteReusableBlock()
  __experimentalUpdateReusableBlock()
  __experimentalConvertBlockToStatic()
  __experimentalConvertBlockToReusable()
  enablePublishSidebar()
  disablePublishSidebar()
  lockPostSaving()
  unlockPostSaving()
  lockPostAutosaving()
  unlockPostAutosaving()
  actions_resetEditorBlocks()
  updateEditorSettings()
  getWPAdminURL()
  cleanForSlug()
  selectors_ownKeys()
  selectors_objectSpread()
  isEditedPostNew()
  hasChangedContent()
  selectors_isCleanNewPost()
  selectors_getCurrentPostType()
  selectors_getCurrentPostId()
  getCurrentPostRevisionsCount()
  getCurrentPostLastRevisionId()
  selectors_getCurrentPostAttribute()
  selectors_getEditedPostAttribute()
  selectors_getEditedPostVisibility()
  isCurrentPostPending()
  selectors_isCurrentPostPublished()
  selectors_isCurrentPostScheduled()
  selectors_isEditedPostPublishable()
  selectors_isEditedPostSaveable()
  isEditedPostEmpty()
  selectors_isEditedPostBeingScheduled()
  isEditedPostDateFloating()
  selectors_isAutosavingPost()
  isPreviewingPost()
  selectors_getEditedPostPreviewLink()
  selectors_getSuggestedPostFormat()
  getBlocksForSerialization()
  __experimentalIsSavingReusableBlock()
  __experimentalIsFetchingReusableBlock()
  getStateBeforeOptimisticTransaction()
  selectors_isPublishingPost()
  isPermalinkEditable()
  getPermalink()
  getEditedPostSlug()
  getPermalinkParts()
  inSomeHistory()
  isPostLocked()
  selectors_isPostSavingLocked()
  isPostAutosavingLocked()
  isPostLockTakeover()
  getPostLockUser()
  getActivePostLock()
  selectors_canUserUseUnfilteredHTML()
  selectors_isPublishSidebarEnabled()
  selectors_getEditorBlocks()
  selectors_getEditorSelectionStart()
  selectors_getEditorSelectionEnd()
  __unstableIsEditorReady()
  selectors_getEditorSettings()
  getBlockEditorSelector()
  reusable_blocks_ownKeys()
  reusable_blocks_objectSpread()
  applyMiddlewares()
  awaitNextStateChange()
  getRegistry()
  postKey()
  localAutosaveGet()
  localAutosaveSet()
  localAutosaveClear()
  store_ownKeys()
  store_objectSpread()
  custom_sources_backwards_compatibility_ownKeys()
  custom_sources_backwards_compatibility_objectSpread()
  shimAttributeSource()
  setDefaultCompleters()
  _createSuper()
  _isNativeReflectConstruct()
  AutosaveMonitor()
  document_outline_ownKeys()
  document_outline_objectSpread()
  DocumentOutlineCheck()
  SaveShortcut()
  VisualEditorGlobalKeyboardShortcuts()
  EditorGlobalKeyboardShortcuts()
  TextEditorGlobalKeyboardShortcuts()
  EditorKeyboardShortcutsRegister()
  EditorHistoryRedo()
  EditorHistoryUndo()
  TemplateValidationNotice()
  EditorNotices()
  EntityRecordItem()
  EntityTypeList()
  EntitiesSavedStates()
  error_boundary_createSuper()
  error_boundary_isNativeReflectConstruct()
  ErrorBoundary()
  useAutosaveNotice()
  useAutosavePurge()
  LocalAutosaveMonitor()
  PageAttributesCheck()
  PostTypeSupportCheck()
  PageAttributesOrderWithChecks()
  terms_ownKeys()
  terms_objectSpread()
  buildTermsTree()
  PageAttributesParent()
  PageTemplate()
  PostAuthorCheck()
  post_author_createSuper()
  post_author_isNativeReflectConstruct()
  PostAuthor()
  PostComments()
  PostExcerpt()
  PostExcerptCheck()
  ThemeSupportCheck()
  PostFeaturedImageCheck()
  PostFeaturedImage()
  PostFormatCheck()
  PostFormat()
  PostLastRevisionCheck()
  LastRevision()
  post_preview_button_createSuper()
  post_preview_button_isNativeReflectConstruct()
  writeInterstitialMessage()
  PostPreviewButton()
  post_locked_modal_createSuper()
  post_locked_modal_isNativeReflectConstruct()
  PostLockedModal()
  PostPendingStatusCheck()
  PostPendingStatus()
  PostPingbacks()
  PublishButtonLabel()
  post_publish_button_createSuper()
  post_publish_button_isNativeReflectConstruct()
  PostPublishButton()
  post_visibility_createSuper()
  post_visibility_isNativeReflectConstruct()
  PostVisibility()
  PostVisibilityLabel()
  PostSchedule()
  PostScheduleLabel()
  flat_term_selector_createSuper()
  flat_term_selector_isNativeReflectConstruct()
  flat_term_selector_ownKeys()
  flat_term_selector_objectSpread()
  FlatTermSelector()
  maybe_tags_panel_createSuper()
  maybe_tags_panel_isNativeReflectConstruct()
  MaybeTagsPanel()
  PostPublishPanelPrepublish()
  postpublish_createSuper()
  postpublish_isNativeReflectConstruct()
  PostPublishPanelPostpublish()
  post_publish_panel_createSuper()
  post_publish_panel_isNativeReflectConstruct()
  PostPublishPanel()
  PostSwitchToDraftButton()
  post_saved_state_createSuper()
  post_saved_state_isNativeReflectConstruct()
  PostSavedState()
  PostScheduleCheck()
  PostSlugCheck()
  post_slug_createSuper()
  post_slug_isNativeReflectConstruct()
  PostSlug()
  PostStickyCheck()
  PostSticky()
  hierarchical_term_selector_ownKeys()
  hierarchical_term_selector_objectSpread()
  hierarchical_term_selector_createSuper()
  hierarchical_term_selector_isNativeReflectConstruct()
  HierarchicalTermSelector()
  PostTaxonomies()
  PostTaxonomiesCheck()
  post_text_editor_createSuper()
  post_text_editor_isNativeReflectConstruct()
  PostTextEditor()
  post_title_createSuper()
  post_title_isNativeReflectConstruct()
  PostTitle()
  PostTrash()
  PostTrashCheck()
  PostVisibilityCheck()
  WordCount()
  TableOfContentsPanel()
  TableOfContents()
  unsaved_changes_warning_createSuper()
  unsaved_changes_warning_isNativeReflectConstruct()
  UnsavedChangesWarning()
  media_upload_ownKeys()
  media_upload_objectSpread()
  mediaUpload()
  ReusableBlockConvertButton()
  ReusableBlockDeleteButton()
  ReusableBlocksButtons()
  ConvertToGroupButton()
  provider_ownKeys()
  provider_objectSpread()
  provider_createSuper()
  provider_isNativeReflectConstruct()
  EditorProvider()
  deprecateComponent()
  deprecateFunction()
  _defineProperty()
  asyncGeneratorStep()
  _asyncToGenerator()
  _next()
  _throw()
  memize()
  memoized()
  _extends()

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

classNames()   X-Ref
No description

flattenIntoMap( map, effects )   X-Ref
No description

refx( effects )   X-Ref
No description

_assertThisInitialized(self)   X-Ref
No description

ownKeys(object, enumerableOnly)   X-Ref
No description

_objectSpread(target)   X-Ref
No description

Icon(_ref)   X-Ref
Return an SVG icon.

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

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

_iterableToArrayLimit(arr, i)   X-Ref
No description

_slicedToArray(arr, i)   X-Ref
No description

_objectWithoutProperties(source, excluded)   X-Ref
No description

_getPrototypeOf(o)   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

_arrayWithoutHoles(arr)   X-Ref
No description

_nonIterableSpread()   X-Ref
No description

_toConsumableArray(arr)   X-Ref
No description

_defineProperties(target, props)   X-Ref
No description

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

_classCallCheck(instance, Constructor)   X-Ref
No description

_setPrototypeOf(o, p)   X-Ref
No description

_inherits(subClass, superClass)   X-Ref
No description

_possibleConstructorReturn(self, call)   X-Ref
No description

_arrayLikeToArray(arr, len)   X-Ref
No description

_unsupportedIterableToArray(o, minLen)   X-Ref
No description

_iterableToArray(iter)   X-Ref
No description

_arrayWithHoles(arr)   X-Ref
No description

_nonIterableRest()   X-Ref
No description

_typeof(obj)   X-Ref
No description

_objectWithoutPropertiesLoose(source, excluded)   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.

_objectWithoutProperties(obj, keys)   X-Ref
No description

optimist(fn)   X-Ref
No description

beginReducer(state, action)   X-Ref
No description

commitReducer(state, action)   X-Ref
No description

revertReducer(state, action)   X-Ref
No description

baseReducer(optimist, innerState, action)   X-Ref
No description

matchesTransaction(action, id)   X-Ref
No description

validateState(newState, action)   X-Ref
No description

separateState(state)   X-Ref
No description

ownKeys(object, enumerableOnly)   X-Ref
No description

_objectSpread(target)   X-Ref
No description

reducer_ownKeys(object, enumerableOnly)   X-Ref
No description

reducer_objectSpread(target)   X-Ref
No description

getPostRawValue(value)   X-Ref
Returns a post attribute value, flattening nested rendered content using its
raw value in place of its original object form.

return: {*} Raw value.
param: {*} value Original value.

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.

isUpdatingSamePostProperty(action, previousAction)   X-Ref
Returns true if, given the currently dispatching action and the previously
dispatched action, the two actions are editing the same post property, or
false otherwise.

return: {boolean} Whether actions are updating the same post property.
param: {Object} action         Currently dispatching action.
param: {Object} previousAction Previously dispatched action.

shouldOverwriteState(action, previousAction)   X-Ref
Returns true if, given the currently dispatching action and the previously
dispatched action, the two actions are modifying the same property such that
undo history should be batched.

return: {boolean} Whether to overwrite present state.
param: {Object} action         Currently dispatching action.
param: {Object} previousAction Previously dispatched action.

reducer_postId()   X-Ref
No description

reducer_postType()   X-Ref
No description

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.

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

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

saving()   X-Ref
Reducer returning current network request state (whether a request to
the WP REST API is in progress, successful, or failed).

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

postLock()   X-Ref
Reducer returning the post lock status.

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

postSavingLock()   X-Ref
Post saving lock.

When post saving is locked, the post cannot be published or updated.

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

postAutosavingLock()   X-Ref
Post autosaving lock.

When post autosaving is locked, the post will not autosave.

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

reducer_isReady()   X-Ref
Reducer returning whether the editor is ready to be rendered.
The editor is considered ready to be rendered once
the post object is loaded properly and the initial blocks parsed.

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

reducer_editorSettings()   X-Ref
Reducer returning the post editor setting.

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

getNotificationArgumentsForSaveSuccess(data)   X-Ref
Builds the arguments for a success notification dispatch.

return: {Array} Arguments for dispatch. An empty array signals no
param: {Object} data Incoming data to build the arguments from.

getNotificationArgumentsForSaveFail(data)   X-Ref
Builds the fail notification arguments for dispatch.

return: {Array} Arguments for dispatch. An empty array signals no
param: {Object} data Incoming data to build the arguments with.

getNotificationArgumentsForTrashFail(data)   X-Ref
Builds the trash fail notification arguments for dispatch.

return: {Array} Arguments for dispatch.
param: {Object} data

actions_ownKeys(object, enumerableOnly)   X-Ref
No description

actions_objectSpread(target)   X-Ref
No description

setupEditor(post, edits, template)   X-Ref
Returns an action generator used in signalling that editor has initialized with
the specified post object and editor settings.

param: {Object} post      Post object.
param: {Object} edits     Initial edited attributes object.
param: {Array?} template  Block Template.

__experimentalTearDownEditor()   X-Ref
Returns an action object signalling that the editor is being destroyed and
that any necessary state or side-effect cleanup should occur.

return: {Object} Action object.

resetPost(post)   X-Ref
Returns an action object used in signalling that the latest version of the
post has been received, either by initialization or save.

return: {Object} Action object.
param: {Object} post Post object.

resetAutosave(newAutosave)   X-Ref
Returns an action object used in signalling that the latest autosave of the
post has been received, by initialization or autosave.

return: {Object} Action object.
param: {Object} newAutosave Autosave post object.

__experimentalRequestPostUpdateStart()   X-Ref
Action for dispatching that a post update request has started.

return: {Object} An action object
param: {Object} options

__experimentalRequestPostUpdateFinish()   X-Ref
Action for dispatching that a post update request has finished.

return: {Object} An action object
param: {Object} options

updatePost(edits)   X-Ref
Returns an action object used in signalling that a patch of updates for the
latest version of the post have been received.

return: {Object} Action object.
param: {Object} edits Updated post fields.

setupEditorState(post)   X-Ref
Returns an action object used to setup the editor state when first opening
an editor.

return: {Object} Action object.
param: {Object} post   Post object.

actions_editPost(edits, options)   X-Ref
Returns an action object used in signalling that attributes of the post have
been edited.

param: {Object} edits   Post attributes to edit.
param: {Object} options Options for the edit.

__experimentalOptimisticUpdatePost(edits)   X-Ref
Returns action object produced by the updatePost creator augmented by
an optimist option that signals optimistically applying updates.

return: {Object} Action object.
param: {Object} edits  Updated post fields.

actions_savePost()   X-Ref
Action generator for saving the current post in the editor.

param: {Object} options

refreshPost()   X-Ref
Action generator for handling refreshing the current post.


trashPost()   X-Ref
Action generator for trashing the current post in the editor.


actions_autosave(options)   X-Ref
Action generator used in signalling that the post should autosave.

param: {Object?} options Extra flags to identify the autosave.

actions_experimentalLocalAutosave()   X-Ref
No description

actions_redo()   X-Ref
Returns an action object used in signalling that undo history should
restore last popped state.


actions_undo()   X-Ref
Returns an action object used in signalling that undo history should pop.


createUndoLevel()   X-Ref
Returns an action object used in signalling that undo history record should
be created.

return: {Object} Action object.

updatePostLock(lock)   X-Ref
Returns an action object used to lock the editor.

return: {Object} Action object.
param: {Object}  lock Details about the post lock status, user, and nonce.

actions_experimentalFetchReusableBlocks(id)   X-Ref
Returns an action object used to fetch a single reusable block or all
reusable blocks from the REST API into the store.

return: {Object} Action object.
param: {?string} id If given, only a single reusable block with this ID will

__experimentalReceiveReusableBlocks(results)   X-Ref
Returns an action object used in signalling that reusable blocks have been
received. `results` is an array of objects containing:
- `reusableBlock` - Details about how the reusable block is persisted.
- `parsedBlock` - The original block.

return: {Object} Action object.
param: {Object[]} results Reusable blocks received.

__experimentalSaveReusableBlock(id)   X-Ref
Returns an action object used to save a reusable block that's in the store to
the REST API.

return: {Object} Action object.
param: {Object} id The ID of the reusable block to save.

__experimentalDeleteReusableBlock(id)   X-Ref
Returns an action object used to delete a reusable block via the REST API.

return: {Object} Action object.
param: {number} id The ID of the reusable block to delete.

__experimentalUpdateReusableBlock(id, changes)   X-Ref
Returns an action object used in signalling that a reusable block is
to be updated.

return: {Object} Action object.
param: {number} id      The ID of the reusable block to update.
param: {Object} changes The changes to apply.

__experimentalConvertBlockToStatic(clientId)   X-Ref
Returns an action object used to convert a reusable block into a static
block.

return: {Object} Action object.
param: {string} clientId The client ID of the block to attach.

__experimentalConvertBlockToReusable(clientIds)   X-Ref
Returns an action object used to convert a static block into a reusable
block.

return: {Object} Action object.
param: {string} clientIds The client IDs of the block to detach.

enablePublishSidebar()   X-Ref
Returns an action object used in signalling that the user has enabled the
publish sidebar.

return: {Object} Action object

disablePublishSidebar()   X-Ref
Returns an action object used in signalling that the user has disabled the
publish sidebar.

return: {Object} Action object

lockPostSaving(lockName)   X-Ref
Returns an action object used to signal that post saving is locked.

return: {Object} Action object
param: {string} lockName The lock name.

unlockPostSaving(lockName)   X-Ref
Returns an action object used to signal that post saving is unlocked.

return: {Object} Action object
param: {string} lockName The lock name.

lockPostAutosaving(lockName)   X-Ref
Returns an action object used to signal that post autosaving is locked.

return: {Object} Action object
param: {string} lockName The lock name.

unlockPostAutosaving(lockName)   X-Ref
Returns an action object used to signal that post autosaving is unlocked.

return: {Object} Action object
param: {string} lockName The lock name.

actions_resetEditorBlocks(blocks)   X-Ref
Returns an action object used to signal that the blocks have been updated.

param: {Array}   blocks  Block Array.
param: {?Object} options Optional options.

updateEditorSettings(settings)   X-Ref
No description

getWPAdminURL(page, query)   X-Ref
Returns the URL of a WPAdmin Page.

TODO: This should be moved to a module less specific to the editor.

return: {string} WPAdmin URL.
param: {string} page  Page to navigate to.
param: {Object} query Query Args.

cleanForSlug(string)   X-Ref
Performs some basic cleanup of a string for use as a post slug

This replicates some of what sanitize_title() does in WordPress core, but
is only designed to approximate what the slug will be.

Converts Latin-1 Supplement and Latin Extended-A letters to basic Latin
letters. Removes combining diacritical marks. Converts whitespace, periods,
and forward slashes to hyphens. Removes any remaining non-word characters
except hyphens. Converts remaining string to lowercase. It does not account
for octets, HTML entities, or other encoded characters.

return: {string} Processed string
param: {string} string Title or slug to be processed

selectors_ownKeys(object, enumerableOnly)   X-Ref
No description

selectors_objectSpread(target)   X-Ref
No description

isEditedPostNew(state)   X-Ref
Returns true if the currently edited post is yet to be saved, or false if
the post has been saved.

return: {boolean} Whether the post is new.
param: {Object} state Global application state.

hasChangedContent(state)   X-Ref
Returns true if content includes unsaved changes, or false otherwise.

return: {boolean} Whether content includes unsaved changes.
param: {Object} state Editor state.

selectors_isCleanNewPost(state)   X-Ref
Returns true if there are no unsaved values for the current edit session and
if the currently edited post is new (has never been saved before).

return: {boolean} Whether new post and unsaved values exist.
param: {Object} state Global application state.

selectors_getCurrentPostType(state)   X-Ref
Returns the post type of the post currently being edited.

return: {string} Post type.
param: {Object} state Global application state.

selectors_getCurrentPostId(state)   X-Ref
Returns the ID of the post currently being edited, or null if the post has
not yet been saved.

return: {?number} ID of current post.
param: {Object} state Global application state.

getCurrentPostRevisionsCount(state)   X-Ref
Returns the number of revisions of the post currently being edited.

return: {number} Number of revisions.
param: {Object} state Global application state.

getCurrentPostLastRevisionId(state)   X-Ref
Returns the last revision ID of the post currently being edited,
or null if the post has no revisions.

return: {?number} ID of the last revision.
param: {Object} state Global application state.

selectors_getCurrentPostAttribute(state, attributeName)   X-Ref
Returns an attribute value of the saved post.

return: {*} Post attribute value.
param: {Object} state         Global application state.
param: {string} attributeName Post attribute name.

selectors_getEditedPostAttribute(state, attributeName)   X-Ref
Returns a single attribute of the post being edited, preferring the unsaved
edit if one exists, but falling back to the attribute for the last known
saved state of the post.

return: {*} Post attribute value.
param: {Object} state         Global application state.
param: {string} attributeName Post attribute name.

selectors_getEditedPostVisibility(state)   X-Ref
Returns the current visibility of the post being edited, preferring the
unsaved value if different than the saved post. The return value is one of
"private", "password", or "public".

return: {string} Post visibility.
param: {Object} state Global application state.

isCurrentPostPending(state)   X-Ref
Returns true if post is pending review.

return: {boolean} Whether current post is pending review.
param: {Object} state Global application state.

selectors_isCurrentPostPublished(state, currentPost)   X-Ref
Return true if the current post has already been published.

return: {boolean} Whether the post has been published.
param: {Object}  state       Global application state.
param: {Object?} currentPost Explicit current post for bypassing registry selector.

selectors_isCurrentPostScheduled(state)   X-Ref
Returns true if post is already scheduled.

return: {boolean} Whether current post is scheduled to be posted.
param: {Object} state Global application state.

selectors_isEditedPostPublishable(state)   X-Ref
Return true if the post being edited can be published.

return: {boolean} Whether the post can been published.
param: {Object} state Global application state.

selectors_isEditedPostSaveable(state)   X-Ref
Returns true if the post can be saved, or false otherwise. A post must
contain a title, an excerpt, or non-empty content to be valid for save.

return: {boolean} Whether the post can be saved.
param: {Object} state Global application state.

isEditedPostEmpty(state)   X-Ref
Returns true if the edited post has content. A post has content if it has at
least one saveable block or otherwise has a non-empty content property
assigned.

return: {boolean} Whether post has content.
param: {Object} state Global application state.

selectors_isEditedPostBeingScheduled(state)   X-Ref
Return true if the post being edited is being scheduled. Preferring the
unsaved status values.

return: {boolean} Whether the post has been published.
param: {Object} state Global application state.

isEditedPostDateFloating(state)   X-Ref
Returns whether the current post should be considered to have a "floating"
date (i.e. that it would publish "Immediately" rather than at a set time).

Unlike in the PHP backend, the REST API returns a full date string for posts
where the 0000-00-00T00:00:00 placeholder is present in the database. To
infer that a post is set to publish "Immediately" we check whether the date
and modified date are the same.

return: {boolean} Whether the edited post has a floating date value.
param: {Object} state Editor state.

selectors_isAutosavingPost(state)   X-Ref
Returns true if the post is autosaving, or false otherwise.

return: {boolean} Whether the post is autosaving.
param: {Object} state Global application state.

isPreviewingPost(state)   X-Ref
Returns true if the post is being previewed, or false otherwise.

return: {boolean} Whether the post is being previewed.
param: {Object} state Global application state.

selectors_getEditedPostPreviewLink(state)   X-Ref
Returns the post preview link

return: {string?} Preview Link.
param: {Object} state Global application state.

selectors_getSuggestedPostFormat(state)   X-Ref
Returns a suggested post format for the current post, inferred only if there
is a single block within the post and it is of a type known to match a
default post format. Returns null if the format cannot be determined.

return: {?string} Suggested post format.
param: {Object} state Global application state.

getBlocksForSerialization(state)   X-Ref
Returns a set of blocks which are to be used in consideration of the post's
generated save content.

return: {WPBlock[]} Filtered set of blocks for save.
param: {Object} state Editor state.

__experimentalIsSavingReusableBlock(state, ref)   X-Ref
Returns whether or not the reusable block with the given ID is being saved.

return: {boolean} Whether or not the reusable block is being saved.
param: {Object} state Global application state.
param: {string} ref   The reusable block's ID.

__experimentalIsFetchingReusableBlock(state, ref)   X-Ref
Returns true if the reusable block with the given ID is being fetched, or
false otherwise.

return: {boolean} Whether the reusable block is being fetched.
param: {Object} state Global application state.
param: {string} ref   The reusable block's ID.

getStateBeforeOptimisticTransaction(state, transactionId)   X-Ref
Returns state object prior to a specified optimist transaction ID, or `null`
if the transaction corresponding to the given ID cannot be found.

return: {Object} Global application state prior to transaction.
param: {Object} state         Current global application state.
param: {Object} transactionId Optimist transaction ID.

selectors_isPublishingPost(state)   X-Ref
Returns true if the post is being published, or false otherwise.

return: {boolean} Whether post is being published.
param: {Object} state Global application state.

isPermalinkEditable(state)   X-Ref
Returns whether the permalink is editable or not.

return: {boolean} Whether or not the permalink is editable.
param: {Object} state Editor state.

getPermalink(state)   X-Ref
Returns the permalink for the post.

return: {?string} The permalink, or null if the post is not viewable.
param: {Object} state Editor state.

getEditedPostSlug(state)   X-Ref
Returns the slug for the post being edited, preferring a manually edited
value if one exists, then a sanitized version of the current post title, and
finally the post ID.

return: {string} The current slug to be displayed in the editor
param: {Object} state Editor state.

getPermalinkParts(state)   X-Ref
Returns the permalink for a post, split into it's three parts: the prefix,
the postName, and the suffix.

return: {Object} An object containing the prefix, postName, and suffix for
param: {Object} state Editor state.

inSomeHistory(state, predicate)   X-Ref
Returns true if an optimistic transaction is pending commit, for which the
before state satisfies the given predicate function.

return: {boolean} Whether predicate matches for some history.
param: {Object}   state     Editor state.
param: {Function} predicate Function given state, returning true if match.

isPostLocked(state)   X-Ref
Returns whether the post is locked.

return: {boolean} Is locked.
param: {Object} state Global application state.

selectors_isPostSavingLocked(state)   X-Ref
Returns whether post saving is locked.

return: {boolean} Is locked.
param: {Object} state Global application state.

isPostAutosavingLocked(state)   X-Ref
Returns whether post autosaving is locked.

return: {boolean} Is locked.
param: {Object} state Global application state.

isPostLockTakeover(state)   X-Ref
Returns whether the edition of the post has been taken over.

return: {boolean} Is post lock takeover.
param: {Object} state Global application state.

getPostLockUser(state)   X-Ref
Returns details about the post lock user.

return: {Object} A user object.
param: {Object} state Global application state.

getActivePostLock(state)   X-Ref
Returns the active post lock.

return: {Object} The lock object.
param: {Object} state Global application state.

selectors_canUserUseUnfilteredHTML(state)   X-Ref
Returns whether or not the user has the unfiltered_html capability.

return: {boolean} Whether the user can or can't post unfiltered HTML.
param: {Object} state Editor state.

selectors_isPublishSidebarEnabled(state)   X-Ref
Returns whether the pre-publish panel should be shown
or skipped when the user clicks the "publish" button.

return: {boolean} Whether the pre-publish panel should be shown or not.
param: {Object} state Global application state.

selectors_getEditorBlocks(state)   X-Ref
Return the current block list.

return: {Array} Block list.
param: {Object} state

selectors_getEditorSelectionStart(state)   X-Ref
Returns the current selection start.

return: {WPBlockSelection} The selection start.
param: {Object} state

selectors_getEditorSelectionEnd(state)   X-Ref
Returns the current selection end.

return: {WPBlockSelection} The selection end.
param: {Object} state

__unstableIsEditorReady(state)   X-Ref
Is the editor ready

return: {boolean} is Ready.
param: {Object} state

selectors_getEditorSettings(state)   X-Ref
Returns the post editor settings.

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

getBlockEditorSelector(name)   X-Ref
No description

reusable_blocks_ownKeys(object, enumerableOnly)   X-Ref


reusable_blocks_objectSpread(target)   X-Ref
No description

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

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

awaitNextStateChange()   X-Ref
Returns a control descriptor signalling to subscribe to the registry and
resolve the control promise only when the next state change occurs.

return: {Object} Control descriptor.

getRegistry()   X-Ref
Returns a control descriptor signalling to resolve with the current data
registry.

return: {Object} Control descriptor.

postKey(postId)   X-Ref
Function returning a sessionStorage key to set or retrieve a given post's
automatic session backup.

Keys are crucially prefixed with 'wp-autosave-' so that wp-login.php's
`loggedout` handler can clear sessionStorage of any user-private content.

return: {string}        sessionStorage key
param: {string} postId  Post ID.

localAutosaveGet(postId)   X-Ref
No description

localAutosaveSet(postId, title, content, excerpt)   X-Ref
No description

localAutosaveClear(postId)   X-Ref
No description

store_ownKeys(object, enumerableOnly)   X-Ref
No description

store_objectSpread(target)   X-Ref
No description

custom_sources_backwards_compatibility_ownKeys(object, enumerableOnly)   X-Ref
No description

custom_sources_backwards_compatibility_objectSpread(target)   X-Ref
No description

shimAttributeSource(settings)   X-Ref
No description

setDefaultCompleters()   X-Ref
No description

_createSuper(Derived)   X-Ref
No description

_isNativeReflectConstruct()   X-Ref
No description

AutosaveMonitor()   X-Ref
No description

document_outline_ownKeys(object, enumerableOnly)   X-Ref
No description

document_outline_objectSpread(target)   X-Ref
No description

DocumentOutlineCheck(_ref)   X-Ref
No description

SaveShortcut(_ref)   X-Ref
No description

VisualEditorGlobalKeyboardShortcuts()   X-Ref
No description

EditorGlobalKeyboardShortcuts()   X-Ref
No description

TextEditorGlobalKeyboardShortcuts()   X-Ref
Internal dependencies


EditorKeyboardShortcutsRegister()   X-Ref
No description

EditorHistoryRedo(props, ref)   X-Ref
No description

EditorHistoryUndo(props, ref)   X-Ref
No description

TemplateValidationNotice(_ref)   X-Ref
No description

EditorNotices(_ref)   X-Ref
Internal dependencies


EntityRecordItem(_ref)   X-Ref
No description

EntityTypeList(_ref)   X-Ref
No description

EntitiesSavedStates(_ref)   X-Ref
No description

error_boundary_createSuper(Derived)   X-Ref
No description

error_boundary_isNativeReflectConstruct()   X-Ref
No description

ErrorBoundary()   X-Ref
No description

useAutosaveNotice()   X-Ref
Custom hook which manages the creation of a notice prompting the user to
restore a local autosave, if one exists.


useAutosavePurge()   X-Ref
Custom hook which ejects a local autosave after a successful save occurs.


LocalAutosaveMonitor()   X-Ref
No description

PageAttributesCheck(_ref)   X-Ref
WordPress dependencies


PostTypeSupportCheck(_ref)   X-Ref
A component which renders its own children only if the current editor post
type supports one of the given `supportKeys` prop.

return: {WPComponent} The component to be rendered.
param: {Object}    props             Props.
param: {string}    [props.postType]  Current post type.
param: {WPElement} props.children    Children to be rendered if post
param: {(string|string[])}                      props.supportKeys String or string array of keys

PageAttributesOrderWithChecks(props)   X-Ref
No description

terms_ownKeys(object, enumerableOnly)   X-Ref
No description

terms_objectSpread(target)   X-Ref
No description

buildTermsTree(flatTerms)   X-Ref
Returns terms in a tree form.

return: {Array} Array of terms in tree format.
param: {Array} flatTerms  Array of terms in flat format.

PageAttributesParent(_ref)   X-Ref
Internal dependencies


PageTemplate(_ref)   X-Ref
No description

PostAuthorCheck(_ref)   X-Ref
Internal dependencies


post_author_createSuper(Derived)   X-Ref
No description

post_author_isNativeReflectConstruct()   X-Ref
No description

PostAuthor()   X-Ref
No description

PostComments(_ref)   X-Ref
No description

PostExcerpt(_ref)   X-Ref
No description

PostExcerptCheck(props)   X-Ref
Internal dependencies


ThemeSupportCheck(_ref)   X-Ref
WordPress dependencies


PostFeaturedImageCheck(props)   X-Ref
No description

PostFeaturedImage(_ref)   X-Ref
No description

PostFormatCheck(_ref)   X-Ref
No description

PostFormat(_ref)   X-Ref
No description

PostLastRevisionCheck(_ref)   X-Ref
Internal dependencies


LastRevision(_ref)   X-Ref
No description

post_preview_button_createSuper(Derived)   X-Ref
No description

post_preview_button_isNativeReflectConstruct()   X-Ref
No description

writeInterstitialMessage(targetDocument)   X-Ref
No description

PostPreviewButton()   X-Ref
No description

post_locked_modal_createSuper(Derived)   X-Ref
No description

post_locked_modal_isNativeReflectConstruct()   X-Ref
No description

PostLockedModal()   X-Ref
No description

PostPendingStatusCheck(_ref)   X-Ref
No description

PostPendingStatus(_ref)   X-Ref
Internal dependencies


PostPingbacks(_ref)   X-Ref
No description

PublishButtonLabel(_ref)   X-Ref
No description

post_publish_button_createSuper(Derived)   X-Ref
No description

post_publish_button_isNativeReflectConstruct()   X-Ref
No description

PostPublishButton(props)   X-Ref
No description

post_visibility_createSuper(Derived)   X-Ref
No description

post_visibility_isNativeReflectConstruct()   X-Ref
No description

PostVisibility(props)   X-Ref
No description

PostVisibilityLabel(_ref)   X-Ref
No description

PostSchedule(_ref)   X-Ref
No description

PostScheduleLabel(_ref)   X-Ref
No description

flat_term_selector_createSuper(Derived)   X-Ref
No description

flat_term_selector_isNativeReflectConstruct()   X-Ref
No description

flat_term_selector_ownKeys(object, enumerableOnly)   X-Ref
No description

flat_term_selector_objectSpread(target)   X-Ref
No description

FlatTermSelector()   X-Ref
No description

maybe_tags_panel_createSuper(Derived)   X-Ref
No description

maybe_tags_panel_isNativeReflectConstruct()   X-Ref
No description

MaybeTagsPanel(props)   X-Ref
No description

PostPublishPanelPrepublish(_ref)   X-Ref
No description

postpublish_createSuper(Derived)   X-Ref
No description

postpublish_isNativeReflectConstruct()   X-Ref
No description

PostPublishPanelPostpublish()   X-Ref
No description

post_publish_panel_createSuper(Derived)   X-Ref
No description

post_publish_panel_isNativeReflectConstruct()   X-Ref
No description

PostPublishPanel()   X-Ref
No description

PostSwitchToDraftButton(_ref)   X-Ref
No description

post_saved_state_createSuper(Derived)   X-Ref
No description

post_saved_state_isNativeReflectConstruct()   X-Ref
No description

PostSavedState()   X-Ref
No description

PostScheduleCheck(_ref)   X-Ref
No description

PostSlugCheck(_ref)   X-Ref
Internal dependencies


post_slug_createSuper(Derived)   X-Ref
No description

post_slug_isNativeReflectConstruct()   X-Ref
No description

PostSlug(_ref)   X-Ref
No description

PostStickyCheck(_ref)   X-Ref
No description

PostSticky(_ref)   X-Ref
Internal dependencies


hierarchical_term_selector_ownKeys(object, enumerableOnly)   X-Ref
No description

hierarchical_term_selector_objectSpread(target)   X-Ref
No description

hierarchical_term_selector_createSuper(Derived)   X-Ref
No description

hierarchical_term_selector_isNativeReflectConstruct()   X-Ref
No description

HierarchicalTermSelector()   X-Ref
No description

PostTaxonomies(_ref)   X-Ref
No description

PostTaxonomiesCheck(_ref)   X-Ref
No description

post_text_editor_createSuper(Derived)   X-Ref
No description

post_text_editor_isNativeReflectConstruct()   X-Ref
No description

PostTextEditor()   X-Ref
No description

post_title_createSuper(Derived)   X-Ref
No description

post_title_isNativeReflectConstruct()   X-Ref
No description

PostTitle()   X-Ref
No description

PostTrash(_ref)   X-Ref
No description

PostTrashCheck(_ref)   X-Ref
WordPress dependencies


PostVisibilityCheck(_ref)   X-Ref
No description

WordCount(_ref)   X-Ref
No description

TableOfContentsPanel(_ref)   X-Ref
No description

TableOfContents(_ref, ref)   X-Ref
No description

unsaved_changes_warning_createSuper(Derived)   X-Ref
No description

unsaved_changes_warning_isNativeReflectConstruct()   X-Ref
No description

UnsavedChangesWarning()   X-Ref
No description

media_upload_ownKeys(object, enumerableOnly)   X-Ref
No description

media_upload_objectSpread(target)   X-Ref
No description

mediaUpload(_ref)   X-Ref
Upload a media file when the file upload button is activated.
Wrapper around mediaUpload() that injects the current post ID.

param: {Object}   $0                   Parameters object passed to the function.
param: {?Object}  $0.additionalData    Additional data to include in the request.
param: {string}   $0.allowedTypes      Array with the types of media that can be uploaded, if unset all types are allowed.
param: {Array}    $0.filesList         List of files.
param: {?number}  $0.maxUploadFileSize Maximum upload size in bytes allowed for the site.
param: {Function} $0.onError           Function called when an error happens.
param: {Function} $0.onFileChange      Function called each time a file or a temporary representation of the file is available.

ReusableBlockConvertButton(_ref)   X-Ref
No description

ReusableBlockDeleteButton(_ref)   X-Ref
No description

ReusableBlocksButtons(_ref)   X-Ref
No description

ConvertToGroupButton(_ref)   X-Ref
No description

provider_ownKeys(object, enumerableOnly)   X-Ref
No description

provider_objectSpread(target)   X-Ref
No description

provider_createSuper(Derived)   X-Ref
No description

provider_isNativeReflectConstruct()   X-Ref
No description

EditorProvider(props)   X-Ref
No description

deprecateComponent(name, Wrapped)   X-Ref
No description

deprecateFunction(name, func)   X-Ref
No description

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

asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg)   X-Ref
No description

_asyncToGenerator(fn)   X-Ref
No description

_next(value)   X-Ref
No description

_throw(err)   X-Ref
No description

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

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

memoized( )   X-Ref
No description

_extends()   X-Ref
No description



Generated: Mon Sep 28 01:00:02 2020 Cross-referenced by PHPXref 0.7.1