[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

title

Body

[close]

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

(no description)

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

Defines 296 functions

  __webpack_require__()
  getDefault()
  getModuleExports()
  _defineProperty()
  _defineProperties()
  _createClass()
  __()
  TextareaAutosize()
  assign()
  init()
  changeOverflow()
  getParentOverflows()
  resize()
  update()
  destroy()
  update()
  lineHeight()
  _classCallCheck()
  _possibleConstructorReturn()
  _getPrototypeOf()
  _setPrototypeOf()
  _inherits()
  classNames()
  _arrayWithoutHoles()
  _nonIterableSpread()
  _toConsumableArray()
  _extends()
  _objectWithoutPropertiesLoose()
  _objectWithoutProperties()
  _iterableToArrayLimit()
  _slicedToArray()
  _iterableToArray()
  _typeof2()
  _typeof()
  _objectWithoutProperties()
  optimist()
  beginReducer()
  commitReducer()
  revertReducer()
  baseReducer()
  matchesTransaction()
  validateState()
  separateState()
  getPostRawValue()
  hasSameKeys()
  isUpdatingSamePostProperty()
  shouldOverwriteState()
  reducer_postId()
  reducer_postType()
  reducer_template()
  preferences()
  saving()
  postLock()
  postSavingLock()
  postAutosavingLock()
  reducer_isReady()
  reducer_editorSettings()
  getNotificationArgumentsForSaveSuccess()
  getNotificationArgumentsForSaveFail()
  getNotificationArgumentsForTrashFail()
  awaitNextStateChange()
  getRegistry()
  postKey()
  localAutosaveGet()
  localAutosaveSet()
  localAutosaveClear()
  getDependencies()
  apply()
  update()
  getBlocksWithSourcedAttributes()
  resetLastBlockSourceDependencies()
  setupEditor()
  __experimentalTearDownEditor()
  __experimentalSubscribeSources()
  resetPost()
  resetAutosave()
  __experimentalRequestPostUpdateStart()
  __experimentalRequestPostUpdateFinish()
  updatePost()
  setupEditorState()
  actions_editPost()
  __experimentalOptimisticUpdatePost()
  savePost()
  refreshPost()
  trashPost()
  actions_autosave()
  actions_experimentalLocalAutosave()
  actions_redo()
  actions_undo()
  createUndoLevel()
  updatePostLock()
  __experimentalFetchReusableBlocks()
  __experimentalReceiveReusableBlocks()
  __experimentalSaveReusableBlock()
  __experimentalDeleteReusableBlock()
  __experimentalUpdateReusableBlock()
  __experimentalConvertBlockToStatic()
  __experimentalConvertBlockToReusable()
  enablePublishSidebar()
  disablePublishSidebar()
  lockPostSaving()
  unlockPostSaving()
  actions_resetEditorBlocks()
  updateEditorSettings()
  selectors_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()
  selectors_isPermalinkEditable()
  getPermalink()
  selectors_getPermalinkParts()
  inSomeHistory()
  isPostLocked()
  selectors_isPostSavingLocked()
  isPostAutosavingLocked()
  isPostLockTakeover()
  getPostLockUser()
  getActivePostLock()
  selectors_canUserUseUnfilteredHTML()
  selectors_isPublishSidebarEnabled()
  selectors_getEditorBlocks()
  __unstableIsEditorReady()
  selectors_getEditorSettings()
  getBlockEditorSelector()
  applyMiddlewares()
  defaultGetBlockInsertionParentClientId()
  defaultGetInserterItems()
  defaultGetSelectedBlockName()
  createBlockCompleter()
  AutosaveMonitor()
  DocumentOutlineCheck()
  SaveShortcut()
  VisualEditorGlobalKeyboardShortcuts()
  EditorGlobalKeyboardShortcuts()
  TextEditorGlobalKeyboardShortcuts()
  EditorHistoryRedo()
  EditorHistoryUndo()
  TemplateValidationNotice()
  EditorNotices()
  ErrorBoundary()
  useAutosaveNotice()
  useAutosavePurge()
  LocalAutosaveMonitor()
  PageAttributesCheck()
  PostTypeSupportCheck()
  PageAttributesOrderWithChecks()
  buildTermsTree()
  PageAttributesParent()
  PageTemplate()
  PostAuthorCheck()
  PostAuthor()
  PostComments()
  PostExcerpt()
  PostExcerptCheck()
  ThemeSupportCheck()
  PostFeaturedImageCheck()
  PostFeaturedImage()
  PostFormatCheck()
  PostFormat()
  PostLastRevisionCheck()
  getWPAdminURL()
  cleanForSlug()
  LastRevision()
  writeInterstitialMessage()
  PostPreviewButton()
  PostLockedModal()
  PostPendingStatusCheck()
  PostPendingStatus()
  PostPingbacks()
  PublishButtonLabel()
  PostPublishButton()
  PostVisibility()
  PostVisibilityLabel()
  PostSchedule()
  PostScheduleLabel()
  FlatTermSelector()
  MaybeTagsPanel()
  PostPublishPanelPrepublish()
  PostPublishPanelPostpublish()
  PostPublishPanel()
  PostSwitchToDraftButton()
  PostSavedState()
  PostScheduleCheck()
  PostStickyCheck()
  PostSticky()
  HierarchicalTermSelector()
  PostTaxonomies()
  PostTaxonomiesCheck()
  PostTextEditor()
  PostPermalinkEditor()
  PostPermalink()
  PostTitle()
  PostTrash()
  PostTrashCheck()
  PostVisibilityCheck()
  WordCount()
  TableOfContentsPanel()
  TableOfContents()
  UnsavedChangesWarning()
  ReusableBlockConvertButton()
  ReusableBlockDeleteButton()
  ReusableBlocksButtons()
  ConvertToGroupButton()
  ConvertToGroupButtons()
  isRequestingDownloadableBlocks()
  selectors_getDownloadableBlocks()
  selectors_hasInstallBlocksPermission()
  selectors_getInstalledBlockTypes()
  controls_select()
  controls_dispatch()
  apiFetch()
  loadAssets()
  fetchDownloadableBlocks()
  receiveDownloadableBlocks()
  setInstallBlocksPermission()
  actions_downloadBlock()
  actions_installBlock()
  uninstallBlock()
  addInstalledBlockType()
  removeInstalledBlockType()
  Stars()
  DownloadableBlockHeader()
  DownloadableBlockAuthorInfo()
  DownloadableBlockInfo()
  DownloadableBlockListItem()
  DownloadableBlocksList()
  DownloadableBlocksPanel()
  InserterMenuDownloadableBlocksPanel()
  EditorProvider()
  deprecateComponent()
  deprecateFunction()
  setDefaultCompleters()
  arrayOf()
  isObjectLike()
  createCache()
  isShallowEqual()
  getRootCache()
  getWeakMapCache()
  clear()
  callSelector()
  _arrayWithHoles()
  _nonIterableRest()
  asyncGeneratorStep()
  _asyncToGenerator()
  _next()
  _throw()
  memoized()
  wrap()
  tryCatch()
  Generator()
  GeneratorFunction()
  GeneratorFunctionPrototype()
  defineIteratorMethods()
  AsyncIterator()
  invoke()
  enqueue()
  callInvokeWithMethodAndArg()
  makeInvokeMethod()
  maybeInvokeDelegate()
  pushTryEntry()
  resetTryEntry()
  Context()
  values()
  doneResult()
  handle()
  _assertThisInitialized()
  _objectSpread()
  flattenIntoMap()
  refx()
  emptyFunction()
  emptyFunctionWithReset()
  shim()
  getShim()

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

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

_defineProperties(target, props)   X-Ref
No description

_createClass(Constructor, protoProps, staticProps)   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

_classCallCheck(instance, Constructor)   X-Ref
No description

_possibleConstructorReturn(self, call)   X-Ref
No description

_getPrototypeOf(o)   X-Ref
No description

_setPrototypeOf(o, p)   X-Ref
No description

_inherits(subClass, superClass)   X-Ref
No description

classNames()   X-Ref
No description

_arrayWithoutHoles(arr)   X-Ref
No description

_nonIterableSpread()   X-Ref
No description

_toConsumableArray(arr)   X-Ref
No description

_extends()   X-Ref
No description

_objectWithoutPropertiesLoose(source, excluded)   X-Ref
No description

_objectWithoutProperties(source, excluded)   X-Ref
No description

_iterableToArrayLimit(arr, i)   X-Ref
No description

_slicedToArray(arr, i)   X-Ref
No description

_iterableToArray(iter)   X-Ref
No description

_typeof2(obj)   X-Ref
No description

_typeof(obj)   X-Ref
No description

_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

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: {PostSavingLockState} 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: {PostAutosavingLockState} 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

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

getDependencies()   X-Ref
Store control invoked upon a state change, responsible for returning an
object of dependencies. When a change in dependencies occurs (by shallow
equality of the returned object), blocks are reset to apply the new sourced
value.

return: {Object} Dependencies as object.

apply(schema, _ref)   X-Ref
Given an attribute schema and dependencies data, returns a source value.

return: {Object} Block attribute value.
param: {Object} schema            Block type attribute schema.
param: {Object} dependencies      Source dependencies.
param: {Object} dependencies.meta Post meta.

update(schema, value)   X-Ref
Store control invoked upon a block attributes update, responsible for
reflecting an update in a meta value.

param: {Object} schema Block type attribute schema.
param: {*}      value  Updated block attribute value.

getBlocksWithSourcedAttributes(blocks)   X-Ref
Given a blocks array, returns a blocks array with sourced attribute values
applied. The reference will remain consistent with the original argument if
no attribute values must be overridden. If sourced values are applied, the
return value will be a modified copy of the original array.

return: {WPBlock[]} Blocks array with sourced values applied.
param: {WPBlock[]} blocks Original blocks array.

resetLastBlockSourceDependencies()   X-Ref
Refreshes the last block source dependencies, optionally for a given subset
of sources (defaults to the full set of sources).

param: {?Array} sourcesToUpdate Optional subset of sources to reset.

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.

__experimentalSubscribeSources()   X-Ref
Returns an action generator which loops to await the next state change,
calling to reset blocks when a block source dependencies change.


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.

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.

__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.

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

selectors_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.

selectors_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.

selectors_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

__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

applyMiddlewares(store)   X-Ref
No description

defaultGetBlockInsertionParentClientId()   X-Ref
Returns the client ID of the parent where a newly inserted block would be
placed.

return: {string} Client ID of the parent where a newly inserted block would

defaultGetInserterItems(rootClientId)   X-Ref
Returns the inserter items for the specified parent block.

return: {Array<Editor.InserterItem>} The inserter items for the specified
param: {string} rootClientId Client ID of the block for which to retrieve

defaultGetSelectedBlockName()   X-Ref
Returns the name of the currently selected block.

return: {string?} The name of the currently selected block or `null` if no

createBlockCompleter()   X-Ref
Creates a blocks repeater for replacing the current block with a selected block type.

return: {Completer} A blocks completer.

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


EditorHistoryRedo(_ref)   X-Ref
No description

EditorHistoryUndo(_ref)   X-Ref
No description

TemplateValidationNotice(_ref)   X-Ref
No description

EditorNotices(_ref)   X-Ref
Internal dependencies


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: {WPElement} Rendered element.
param: {Object}            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

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


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


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 whitespace, periods, forward slashes and underscores to hyphens.
Converts Latin-1 Supplement and Latin Extended-A letters to basic Latin
letters. Removes combining diacritical marks. Converts remaining string
to lowercase. It does not touch octets, HTML entities, or other encoded
characters.

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

LastRevision(_ref)   X-Ref
No description

writeInterstitialMessage(targetDocument)   X-Ref
No description

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

PostPublishButton(props)   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

FlatTermSelector()   X-Ref
No description

MaybeTagsPanel(props)   X-Ref
No description

PostPublishPanelPrepublish(_ref)   X-Ref
No description

PostPublishPanelPostpublish()   X-Ref
No description

PostPublishPanel()   X-Ref
No description

PostSwitchToDraftButton(_ref)   X-Ref
No description

PostSavedState()   X-Ref
No description

PostScheduleCheck(_ref)   X-Ref
No description

PostStickyCheck(_ref)   X-Ref
No description

PostSticky(_ref)   X-Ref
Internal dependencies


HierarchicalTermSelector()   X-Ref
No description

PostTaxonomies(_ref)   X-Ref
No description

PostTaxonomiesCheck(_ref)   X-Ref
No description

PostTextEditor()   X-Ref
No description

PostPermalinkEditor(_ref)   X-Ref
No description

PostPermalink()   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)   X-Ref
No description

UnsavedChangesWarning()   X-Ref
No description

ReusableBlockConvertButton(_ref)   X-Ref
No description

ReusableBlockDeleteButton(_ref)   X-Ref
No description

ReusableBlocksButtons(_ref)   X-Ref
No description

ConvertToGroupButton(_ref)   X-Ref
Internal dependencies


ConvertToGroupButtons(_ref)   X-Ref
No description

isRequestingDownloadableBlocks(state)   X-Ref
Returns true if application is requesting for downloadable blocks.

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

selectors_getDownloadableBlocks(state, filterValue)   X-Ref
Returns the available uninstalled blocks

return: {Array} Downloadable blocks
param: {Object} state       Global application state.
param: {string} filterValue Search string.

selectors_hasInstallBlocksPermission(state)   X-Ref
Returns true if user has permission to install blocks.

return: {boolean} User has permission to install blocks.
param: {Object} state Global application state.

selectors_getInstalledBlockTypes(state)   X-Ref
Returns the block types that have been installed on the server.

return: {Array} Block type items.
param: {Object} state Global application state.

controls_select(storeName, selectorName)   X-Ref
Calls a selector using the current state.

return: {Object} Control descriptor.
param: {string} storeName    Store name.
param: {string} selectorName Selector name.
param: {Array}  args         Selector arguments.

controls_dispatch(storeName, dispatcherName)   X-Ref
Calls a dispatcher using the current state.

return: {Object} Control descriptor.
param: {string} storeName      Store name.
param: {string} dispatcherName Dispatcher name.
param: {Array}  args           Selector arguments.

apiFetch(request)   X-Ref
Trigger an API Fetch request.

return: {Object} Control descriptor.
param: {Object} request API Fetch Request Object.

loadAssets(assets)   X-Ref
Load the asset files for a block

return: {Object} Control descriptor.
param: {Array} assets A collection of URL for the assets.

fetchDownloadableBlocks()   X-Ref
Returns an action object used in signalling that the downloadable blocks have been requested and is loading.

return: {Object} Action object.

receiveDownloadableBlocks(downloadableBlocks, filterValue)   X-Ref
Returns an action object used in signalling that the downloadable blocks have been updated.

return: {Object} Action object.
param: {Array} downloadableBlocks Downloadable blocks.
param: {string} filterValue Search string.

setInstallBlocksPermission(hasPermission)   X-Ref
Returns an action object used in signalling that the user does not have permission to install blocks.

return: {Object} Action object.

actions_downloadBlock(item, onSuccess, onError)   X-Ref
Action triggered to download block assets.

param: {Object} item The selected block item
param: {Function} onSuccess The callback function when the action has succeeded.
param: {Function} onError The callback function when the action has failed.

actions_installBlock(_ref, onSuccess, onError)   X-Ref
Action triggered to install a block plugin.

param: {string} item The block item returned by search.
param: {Function} onSuccess The callback function when the action has succeeded.
param: {Function} onError The callback function when the action has failed.

uninstallBlock(_ref2, onSuccess, onError)   X-Ref
Action triggered to uninstall a block plugin.

param: {string} item The block item returned by search.
param: {Function} onSuccess The callback function when the action has succeeded.
param: {Function} onError The callback function when the action has failed.

addInstalledBlockType(item)   X-Ref
Returns an action object used to add a newly installed block type.

return: {Object} Action object.
param: {string} item The block item with the block id and name.

removeInstalledBlockType(item)   X-Ref
Returns an action object used to remove a newly installed block type.

return: {Object} Action object.
param: {string} item The block item with the block id and name.

Stars(_ref)   X-Ref
No description

DownloadableBlockHeader(_ref)   X-Ref
No description

DownloadableBlockAuthorInfo(_ref)   X-Ref
No description

DownloadableBlockInfo(_ref)   X-Ref
No description

DownloadableBlockListItem(_ref)   X-Ref
No description

DownloadableBlocksList(_ref)   X-Ref
No description

DownloadableBlocksPanel(_ref)   X-Ref
No description

InserterMenuDownloadableBlocksPanel()   X-Ref
No description

EditorProvider(props)   X-Ref
No description

deprecateComponent(name, Wrapped)   X-Ref
No description

deprecateFunction(name, func)   X-Ref
No description

setDefaultCompleters()   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.

_arrayWithHoles(arr)   X-Ref
No description

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

memoized( )   X-Ref
No description

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

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

Generator()   X-Ref
No description

GeneratorFunction()   X-Ref
No description

GeneratorFunctionPrototype()   X-Ref
No description

defineIteratorMethods(prototype)   X-Ref
No description

AsyncIterator(generator)   X-Ref
No description

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

enqueue(method, arg)   X-Ref
No description

callInvokeWithMethodAndArg()   X-Ref
No description

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

maybeInvokeDelegate(delegate, context)   X-Ref
No description

pushTryEntry(locs)   X-Ref
No description

resetTryEntry(entry)   X-Ref
No description

Context(tryLocsList)   X-Ref
No description

values(iterable)   X-Ref
No description

doneResult()   X-Ref
No description

handle(loc, caught)   X-Ref
No description

_assertThisInitialized(self)   X-Ref
No description

_objectSpread(target)   X-Ref
No description

flattenIntoMap( map, effects )   X-Ref
No description

refx( effects )   X-Ref
No description

emptyFunction()   X-Ref
No description

emptyFunctionWithReset()   X-Ref
No description

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

getShim()   X-Ref
No description



Generated: Fri Oct 25 08:20:01 2019 Cross-referenced by PHPXref 0.7