[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/js/dist/ -> edit-post.js (summary)

(no description)

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

Defines 149 functions

  __webpack_require__()
  getDefault()
  getModuleExports()
  _defineProperty()
  _defineProperties()
  _createClass()
  _classCallCheck()
  _possibleConstructorReturn()
  _getPrototypeOf()
  _setPrototypeOf()
  _inherits()
  classNames()
  getPostEditURL()
  getPostTrashedURL()
  BrowserURL()
  FullscreenModeClose()
  HeaderToolbar()
  ModeSwitcher()
  OptionsMenuItem()
  FeatureToggle()
  WritingMenu()
  PostPublishButtonOrToggle()
  Header()
  TextEditor()
  BlockInspectorButton()
  VisualEditor()
  EditorModeKeyboardShortcuts()
  KeyboardShortcutHelpModal()
  BlockTypesChecklist()
  BlockManagerCategory()
  BlockManager()
  ManageBlocksModal()
  MetaBoxesSection()
  OptionsModal()
  MetaBoxesArea()
  MetaBoxVisibility()
  MetaBoxes()
  PostVisibility()
  PostTrash()
  PostSchedule()
  PostSticky()
  PostAuthor()
  PostFormat()
  PostPendingStatus()
  PostStatus()
  LastRevision()
  TaxonomyPanel()
  PostTaxonomies()
  FeaturedImage()
  PostExcerpt()
  PostLink()
  DiscussionPanel()
  PageAttributes()
  FullscreenMode()
  Layout()
  Editor()
  _arrayWithoutHoles()
  _nonIterableSpread()
  _toConsumableArray()
  _extends()
  _objectWithoutPropertiesLoose()
  _objectWithoutProperties()
  PluginSidebar()
  _iterableToArrayLimit()
  _slicedToArray()
  _iterableToArray()
  _typeof2()
  _typeof()
  arrayOf()
  isObjectLike()
  createCache()
  isShallowEqual()
  getRootCache()
  getWeakMapCache()
  clear()
  callSelector()
  reinitializeEditor()
  initializeEditor()
  _arrayWithHoles()
  _nonIterableRest()
  removedPanels()
  reducer_activeGeneralSidebar()
  activeModal()
  publishSidebarActive()
  isSavingMetaBoxes()
  metaBoxLocations()
  openGeneralSidebar()
  closeGeneralSidebar()
  openModal()
  closeModal()
  openPublishSidebar()
  closePublishSidebar()
  togglePublishSidebar()
  toggleEditorPanelEnabled()
  toggleEditorPanelOpened()
  removeEditorPanel()
  toggleFeature()
  switchEditorMode()
  togglePinnedPluginItem()
  hideBlockTypes()
  updatePreferredStyleVariations()
  __experimentalUpdateLocalAutosaveInterval()
  showBlockTypes()
  setAvailableMetaBoxesPerLocation()
  requestMetaBoxUpdates()
  metaBoxUpdatesSuccess()
  getEditorMode()
  isEditorSidebarOpened()
  isPluginSidebarOpened()
  getActiveGeneralSidebarName()
  getPreferences()
  getPreference()
  isPublishSidebarOpened()
  isEditorPanelRemoved()
  isEditorPanelEnabled()
  isEditorPanelOpened()
  isModalActive()
  isFeatureActive()
  isPluginItemPinned()
  isMetaBoxLocationVisible()
  isMetaBoxLocationActive()
  getMetaBoxesPerLocation()
  hasMetaBoxes()
  selectors_isSavingMetaBoxes()
  applyMiddlewares()
  controls_select()
  CopyContentMenuItem()
  ManageBlocksMenuItem()
  KeyboardShortcutsHelpMenuItem()
  getOutboundType()
  memoized()
  _assertThisInitialized()
  BaseOption()
  CustomFieldsConfirmation()
  EnableCustomFieldsOption()
  DeferredOption()
  _objectSpread()
  flattenIntoMap()
  refx()
  Sidebar()
  AnimatedSidebarFill()
  defaultSetTimout()
  defaultClearTimeout()
  runTimeout()
  runClearTimeout()
  cleanUpNextTick()
  drainQueue()
  Item()
  noop()

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

_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

getPostEditURL(postId)   X-Ref
Returns the Post's Edit URL.

return: {string} Post edit URL.
param: {number} postId Post ID.

getPostTrashedURL(postId, postType)   X-Ref
Returns the Post's Trashed URL.

return: {string} Post trashed URL.
param: {number} postId    Post ID.
param: {string} postType Post Type.

BrowserURL()   X-Ref
No description

FullscreenModeClose(_ref)   X-Ref
No description

HeaderToolbar(_ref)   X-Ref
No description

ModeSwitcher(_ref)   X-Ref
No description

OptionsMenuItem(_ref)   X-Ref
No description

FeatureToggle(_ref)   X-Ref
No description

WritingMenu()   X-Ref
No description

PostPublishButtonOrToggle(_ref)   X-Ref
No description

Header(_ref)   X-Ref
No description

TextEditor(_ref)   X-Ref
No description

BlockInspectorButton(_ref)   X-Ref
Internal dependencies


VisualEditor()   X-Ref
No description

EditorModeKeyboardShortcuts()   X-Ref
No description

KeyboardShortcutHelpModal(_ref4)   X-Ref
No description

BlockTypesChecklist(_ref)   X-Ref
No description

BlockManagerCategory(_ref)   X-Ref
No description

BlockManager(_ref)   X-Ref
No description

ManageBlocksModal(_ref)   X-Ref
Unique identifier for Manage Blocks modal.


MetaBoxesSection(_ref)   X-Ref
No description

OptionsModal(_ref)   X-Ref
No description

MetaBoxesArea()   X-Ref
No description

MetaBoxVisibility()   X-Ref
No description

MetaBoxes(_ref)   X-Ref
No description

PostVisibility()   X-Ref
No description

PostTrash()   X-Ref
WordPress dependencies


PostSchedule()   X-Ref
No description

PostSticky()   X-Ref
WordPress dependencies


PostAuthor()   X-Ref
WordPress dependencies


PostFormat()   X-Ref
WordPress dependencies


PostPendingStatus()   X-Ref
WordPress dependencies


PostStatus(_ref)   X-Ref
No description

LastRevision()   X-Ref
No description

TaxonomyPanel(_ref)   X-Ref
No description

PostTaxonomies()   X-Ref
No description

FeaturedImage(_ref)   X-Ref
No description

PostExcerpt(_ref)   X-Ref
No description

PostLink(_ref)   X-Ref
No description

DiscussionPanel(_ref)   X-Ref
No description

PageAttributes(_ref)   X-Ref
Module Constants


FullscreenMode()   X-Ref
No description

Layout(_ref)   X-Ref
No description

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

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

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.

reinitializeEditor(postType, postId, target, settings, initialEdits)   X-Ref
Reinitializes the editor after the user chooses to reboot the editor after
an unhandled error occurs, replacing previously mounted editor element using
an initial state from prior to the crash.

param: {Object}  postType     Post type of the post to edit.
param: {Object}  postId       ID of the post to edit.
param: {Element} target       DOM node in which editor is rendered.
param: {?Object} settings     Editor settings object.
param: {Object}  initialEdits Programmatic edits to apply initially, to be

initializeEditor(id, postType, postId, settings, initialEdits)   X-Ref
Initializes and returns an instance of Editor.

The return value of this function is not necessary if we change where we
call initializeEditor(). This is due to metaBox timing.

param: {string}  id           Unique identifier for editor instance.
param: {Object}  postType     Post type of the post to edit.
param: {Object}  postId       ID of the post to edit.
param: {?Object} settings     Editor settings object.
param: {Object}  initialEdits Programmatic edits to apply initially, to be

_arrayWithHoles(arr)   X-Ref
No description

_nonIterableRest()   X-Ref
No description

removedPanels()   X-Ref
Reducer storing the list of all programmatically removed panels.

return: {Array} Updated state.
param: {Array}  state  Current state.
param: {Object} action Action object.

reducer_activeGeneralSidebar()   X-Ref
Reducer returning the next active general sidebar state. The active general
sidebar is a unique name to identify either an editor or plugin sidebar.

return: {?string} Updated state.
param: {?string} state  Current state.
param: {Object}  action Action object.

activeModal()   X-Ref
Reducer for storing the name of the open modal, or null if no modal is open.

return: {Object} Updated state
param: {Object} state  Previous state.
param: {Object} action Action object containing the `name` of the modal

publishSidebarActive()   X-Ref
No description

isSavingMetaBoxes()   X-Ref
Reducer keeping track of the meta boxes isSaving state.
A "true" value means the meta boxes saving request is in-flight.

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

metaBoxLocations()   X-Ref
Reducer keeping track of the meta boxes per location.

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

openGeneralSidebar(name)   X-Ref
Returns an action object used in signalling that the user opened an editor sidebar.

return: {Object} Action object.
param: {string} name Sidebar name to be opened.

closeGeneralSidebar()   X-Ref
Returns an action object signalling that the user closed the sidebar.

return: {Object} Action object.

openModal(name)   X-Ref
Returns an action object used in signalling that the user opened a modal.

return: {Object} Action object.
param: {string} name A string that uniquely identifies the modal.

closeModal()   X-Ref
Returns an action object signalling that the user closed a modal.

return: {Object} Action object.

openPublishSidebar()   X-Ref
Returns an action object used in signalling that the user opened the publish
sidebar.

return: {Object} Action object

closePublishSidebar()   X-Ref
Returns an action object used in signalling that the user closed the
publish sidebar.

return: {Object} Action object.

togglePublishSidebar()   X-Ref
Returns an action object used in signalling that the user toggles the publish sidebar.

return: {Object} Action object

toggleEditorPanelEnabled(panelName)   X-Ref
Returns an action object used to enable or disable a panel in the editor.

return: {Object} Action object.
param: {string} panelName A string that identifies the panel to enable or disable.

toggleEditorPanelOpened(panelName)   X-Ref
Returns an action object used to open or close a panel in the editor.

return: {Object} Action object.
param: {string} panelName A string that identifies the panel to open or close.

removeEditorPanel(panelName)   X-Ref
Returns an action object used to remove a panel from the editor.

return: {Object} Action object.
param: {string} panelName A string that identifies the panel to remove.

toggleFeature(feature)   X-Ref
Returns an action object used to toggle a feature flag.

return: {Object} Action object.
param: {string} feature Feature name.

switchEditorMode(mode)   X-Ref
No description

togglePinnedPluginItem(pluginName)   X-Ref
Returns an action object used to toggle a plugin name flag.

return: {Object} Action object.
param: {string} pluginName Plugin name.

hideBlockTypes(blockNames)   X-Ref
Returns an action object used in signalling that block types by the given
name(s) should be hidden.

return: {Object} Action object.
param: {string[]} blockNames Names of block types to hide.

updatePreferredStyleVariations(blockName, blockStyle)   X-Ref
Returns an action object used in signaling that a style should be auto-applied when a block is created.

return: {Object} Action object.
param: {string}  blockName  Name of the block.
param: {?string} blockStyle Name of the style that should be auto applied. If undefined, the "auto apply" setting of the block is removed.

__experimentalUpdateLocalAutosaveInterval(interval)   X-Ref
No description

showBlockTypes(blockNames)   X-Ref
Returns an action object used in signalling that block types by the given
name(s) should be shown.

return: {Object} Action object.
param: {string[]} blockNames Names of block types to show.

setAvailableMetaBoxesPerLocation(metaBoxesPerLocation)   X-Ref
Returns an action object used in signaling
what Meta boxes are available in which location.

return: {Object} Action object.
param: {Object} metaBoxesPerLocation Meta boxes per location.

requestMetaBoxUpdates()   X-Ref
Returns an action object used to request meta box update.

return: {Object} Action object.

metaBoxUpdatesSuccess()   X-Ref
Returns an action object used signal a successful meta box update.

return: {Object} Action object.

getEditorMode(state)   X-Ref
Returns the current editing mode.

return: {string} Editing mode.
param: {Object} state Global application state.

isEditorSidebarOpened(state)   X-Ref
Returns true if the editor sidebar is opened.

return: {boolean} Whether the editor sidebar is opened.
param: {Object} state Global application state

isPluginSidebarOpened(state)   X-Ref
Returns true if the plugin sidebar is opened.

return: {boolean}     Whether the plugin sidebar is opened.
param: {Object} state Global application state

getActiveGeneralSidebarName(state)   X-Ref
Returns the current active general sidebar name, or null if there is no
general sidebar active. The active general sidebar is a unique name to
identify either an editor or plugin sidebar.

Examples:

- `edit-post/document`
- `my-plugin/insert-image-sidebar`

return: {?string} Active general sidebar name.
param: {Object} state Global application state.

getPreferences(state)   X-Ref
Returns the preferences (these preferences are persisted locally).

return: {Object} Preferences Object.
param: {Object} state Global application state.

getPreference(state, preferenceKey, defaultValue)   X-Ref

return: {Mixed} Preference Value.
param: {Object} state         Global application state.
param: {string} preferenceKey Preference Key.
param: {Mixed}  defaultValue  Default Value.

isPublishSidebarOpened(state)   X-Ref
Returns true if the publish sidebar is opened.

return: {boolean} Whether the publish sidebar is open.
param: {Object} state Global application state

isEditorPanelRemoved(state, panelName)   X-Ref
Returns true if the given panel was programmatically removed, or false otherwise.
All panels are not removed by default.

return: {boolean} Whether or not the panel is removed.
param: {Object} state     Global application state.
param: {string} panelName A string that identifies the panel.

isEditorPanelEnabled(state, panelName)   X-Ref
Returns true if the given panel is enabled, or false otherwise. Panels are
enabled by default.

return: {boolean} Whether or not the panel is enabled.
param: {Object} state     Global application state.
param: {string} panelName A string that identifies the panel.

isEditorPanelOpened(state, panelName)   X-Ref
Returns true if the given panel is open, or false otherwise. Panels are
closed by default.

return: {boolean} Whether or not the panel is open.
param: {Object}  state     Global application state.
param: {string}  panelName A string that identifies the panel.

isModalActive(state, modalName)   X-Ref
Returns true if a modal is active, or false otherwise.

return: {boolean} Whether the modal is active.
param: {Object}  state        Global application state.
param: {string}  modalName A string that uniquely identifies the modal.

isFeatureActive(state, feature)   X-Ref
Returns whether the given feature is enabled or not.

return: {boolean} Is active.
param: {Object} state   Global application state.
param: {string} feature Feature slug.

isPluginItemPinned(state, pluginName)   X-Ref
Returns true if the plugin item is pinned to the header.
When the value is not set it defaults to true.

return: {boolean} Whether the plugin item is pinned.
param: {Object}  state      Global application state.
param: {string}  pluginName Plugin item name.

isMetaBoxLocationVisible(state, location)   X-Ref
Returns true if a metabox location is active and visible

return: {boolean} Whether the meta box location is active and visible.
param: {Object} state    Post editor state.
param: {string} location Meta box location to test.

isMetaBoxLocationActive(state, location)   X-Ref
Returns true if there is an active meta box in the given location, or false
otherwise.

return: {boolean} Whether the meta box location is active.
param: {Object} state    Post editor state.
param: {string} location Meta box location to test.

getMetaBoxesPerLocation(state, location)   X-Ref
Returns the list of all the available meta boxes for a given location.

return: {?Array} List of meta boxes.
param: {Object} state    Global application state.
param: {string} location Meta box location to test.

hasMetaBoxes(state)   X-Ref
Returns true if the post is using Meta Boxes

return: {boolean} Whether there are metaboxes or not.
param: {Object} state Global application state

selectors_isSavingMetaBoxes(state)   X-Ref
Returns true if the Meta Boxes are being saved.

return: {boolean} Whether the metaboxes are being saved.
param: {Object}  state Global application state.

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

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

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.

CopyContentMenuItem(_ref)   X-Ref
No description

ManageBlocksMenuItem(_ref)   X-Ref
No description

KeyboardShortcutsHelpMenuItem(_ref)   X-Ref
No description

getOutboundType(blockName)   X-Ref
Given a base block name, returns the default block type to which to offer
transforms.

return: {?Object} The chosen default block type.
param: {string} blockName Base block name.

memoized( )   X-Ref
No description

_assertThisInitialized(self)   X-Ref
No description

BaseOption(_ref)   X-Ref
WordPress dependencies


CustomFieldsConfirmation(_ref)   X-Ref
Internal dependencies


EnableCustomFieldsOption(_ref2)   X-Ref
No description

DeferredOption(_ref)   X-Ref
No description

_objectSpread(target)   X-Ref
No description

flattenIntoMap( map, effects )   X-Ref
No description

refx( effects )   X-Ref
No description

Sidebar(_ref)   X-Ref
Renders a sidebar with its content.

return: {Object} The rendered sidebar.

AnimatedSidebarFill(props)   X-Ref
No description

defaultSetTimout()   X-Ref
No description

defaultClearTimeout()   X-Ref
No description

runTimeout(fun)   X-Ref
No description

runClearTimeout(marker)   X-Ref
No description

cleanUpNextTick()   X-Ref
No description

drainQueue()   X-Ref
No description

Item(fun, array)   X-Ref
No description

noop()   X-Ref
No description



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