[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

title

Body

[close]

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

(no description)

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

Defines 141 functions

  __webpack_require__()
  getDefault()
  getModuleExports()
  _defineProperty()
  _defineProperties()
  _createClass()
  _classCallCheck()
  _possibleConstructorReturn()
  _getPrototypeOf()
  _setPrototypeOf()
  _inherits()
  classNames()
  _arrayWithoutHoles()
  _nonIterableSpread()
  _toConsumableArray()
  _extends()
  _objectWithoutPropertiesLoose()
  _objectWithoutProperties()
  _iterableToArrayLimit()
  _slicedToArray()
  _iterableToArray()
  _typeof2()
  _typeof()
  getOutboundType()
  CopyContentMenuItem()
  ManageBlocksMenuItem()
  KeyboardShortcutsHelpMenuItem()
  removedPanels()
  reducer_activeGeneralSidebar()
  activeModal()
  publishSidebarActive()
  isSavingMetaBoxes()
  metaBoxLocations()
  actions_openGeneralSidebar()
  actions_closeGeneralSidebar()
  actions_openModal()
  actions_closeModal()
  openPublishSidebar()
  actions_closePublishSidebar()
  actions_togglePublishSidebar()
  toggleEditorPanelEnabled()
  actions_toggleEditorPanelOpened()
  removeEditorPanel()
  toggleFeature()
  switchEditorMode()
  togglePinnedPluginItem()
  actions_hideBlockTypes()
  actions_updatePreferredStyleVariations()
  __experimentalUpdateLocalAutosaveInterval()
  actions_showBlockTypes()
  setAvailableMetaBoxesPerLocation()
  requestMetaBoxUpdates()
  metaBoxUpdatesSuccess()
  getEditorMode()
  selectors_isEditorSidebarOpened()
  isPluginSidebarOpened()
  getActiveGeneralSidebarName()
  getPreferences()
  selectors_getPreference()
  selectors_isPublishSidebarOpened()
  isEditorPanelRemoved()
  selectors_isEditorPanelEnabled()
  selectors_isEditorPanelOpened()
  selectors_isModalActive()
  isFeatureActive()
  isPluginItemPinned()
  isMetaBoxLocationVisible()
  isMetaBoxLocationActive()
  getMetaBoxesPerLocation()
  hasMetaBoxes()
  selectors_isSavingMetaBoxes()
  applyMiddlewares()
  controls_select()
  getPostEditURL()
  getPostTrashedURL()
  BrowserURL()
  FullscreenModeClose()
  HeaderToolbar()
  ModeSwitcher()
  OptionsMenuItem()
  FeatureToggle()
  WritingMenu()
  PostPublishButtonOrToggle()
  Header()
  TextEditor()
  BlockInspectorButton()
  VisualEditor()
  EditorModeKeyboardShortcuts()
  KeyboardShortcutHelpModal()
  BlockTypesChecklist()
  BlockManagerCategory()
  BlockManager()
  ManageBlocksModal()
  BaseOption()
  CustomFieldsConfirmation()
  EnableCustomFieldsOption()
  DeferredOption()
  MetaBoxesSection()
  OptionsModal()
  MetaBoxesArea()
  MetaBoxVisibility()
  MetaBoxes()
  Sidebar()
  AnimatedSidebarFill()
  PostVisibility()
  PostTrash()
  PostSchedule()
  PostSticky()
  PostAuthor()
  PostFormat()
  PostPendingStatus()
  PostStatus()
  LastRevision()
  TaxonomyPanel()
  PostTaxonomies()
  FeaturedImage()
  PostExcerpt()
  PostLink()
  DiscussionPanel()
  PageAttributes()
  FullscreenMode()
  Layout()
  Editor()
  PluginSidebar()
  reinitializeEditor()
  initializeEditor()
  arrayOf()
  isObjectLike()
  createCache()
  isShallowEqual()
  getRootCache()
  getWeakMapCache()
  clear()
  callSelector()
  _arrayWithHoles()
  _nonIterableRest()
  memoized()
  _assertThisInitialized()
  _objectSpread()
  flattenIntoMap()
  refx()

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

_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

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

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

CopyContentMenuItem(_ref)   X-Ref
No description

ManageBlocksMenuItem(_ref)   X-Ref
No description

KeyboardShortcutsHelpMenuItem(_ref)   X-Ref
No description

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

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

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.

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

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

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

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.

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

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

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

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

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

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

return: {Object} Action object.

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

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

actions_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

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

return: {Object} Action object.

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

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

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

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

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

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

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

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

switchEditorMode(mode)   X-Ref
No description

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

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

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

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

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

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.
return: {Object} Action object.

__experimentalUpdateLocalAutosaveInterval(interval)   X-Ref
No description

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

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

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

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

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.

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

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

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

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

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

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`

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

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

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

selectors_getPreference(state, preferenceKey, defaultValue)   X-Ref

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

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

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

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

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

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

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

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

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

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

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

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

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

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.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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.


BaseOption(_ref)   X-Ref
WordPress dependencies


CustomFieldsConfirmation(_ref)   X-Ref
Internal dependencies


EnableCustomFieldsOption(_ref2)   X-Ref
No description

DeferredOption(_ref)   X-Ref
No description

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

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

return: {Object} The rendered sidebar.

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

PluginSidebar(props)   X-Ref
No description

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

arrayOf( value )   X-Ref
Returns the first argument as the sole entry in an array.

param: {*} value Value to return.
return: {Array} Value returned as entry in array.

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.

param: {*} value Value to test.
return: {boolean} Whether value is object-like.

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.

param: {Array}  a         First array.
param: {Array}  b         Second array.
param: {number} fromIndex Index from which to start comparison.
return: {boolean} Whether arrays are shallowly equal.

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.

param: {Array} dependants Selector dependants.
return: {Object} Cache object.

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.

param: {Object} source    Source object for derivation.
param: {...*}   extraArgs Additional arguments to pass to selector.
return: {*} Selector result.

_arrayWithHoles(arr)   X-Ref
No description

_nonIterableRest()   X-Ref
No description

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



Generated: Sat Nov 23 20:47:33 2019 Cross-referenced by PHPXref 0.7