[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

(no description)

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

Defines 111 functions

  __webpack_require__()
  getDefault()
  getModuleExports()
  _arrayWithHoles()
  _arrayWithoutHoles()
  _assertThisInitialized()
  _classCallCheck()
  _defineProperties()
  _createClass()
  _defineProperty()
  _extends()
  _getPrototypeOf()
  _inherits()
  _iterableToArray()
  _iterableToArrayLimit()
  _nonIterableRest()
  _nonIterableSpread()
  _objectSpread()
  _objectWithoutProperties()
  _objectWithoutPropertiesLoose()
  _possibleConstructorReturn()
  _setPrototypeOf()
  _slicedToArray()
  _toConsumableArray()
  _typeof2()
  _typeof()
  getPostEditURL()
  getPostTrashedURL()
  BrowserURL()
  FullscreenMode()
  FeatureToggle()
  FullscreenModeClose()
  HeaderToolbar()
  Header()
  ModeSwitcher()
  WritingMenu()
  KeyboardShortcutHelpModal()
  EditorModeKeyboardShortcuts()
  Layout()
  MetaBoxes()
  MetaBoxesArea()
  DiscussionPanel()
  FeaturedImage()
  LastRevision()
  PageAttributes()
  PluginSidebar()
  PostAuthor()
  PostExcerpt()
  PostFormat()
  PostPendingStatus()
  PostSchedule()
  PostStatus()
  PostSticky()
  PostTaxonomies()
  TaxonomyPanel()
  PostTrash()
  PostVisibility()
  TextEditor()
  BlockInspectorButton()
  VisualEditor()
  Editor()
  MediaUpload()
  getOutboundType()
  reinitializeEditor()
  initializeEditor()
  CopyContentMenuItem()
  KeyboardShortcutsHelpMenuItem()
  TipsToggleMenuItem()
  openGeneralSidebar()
  closeGeneralSidebar()
  openModal()
  closeModal()
  openPublishSidebar()
  closePublishSidebar()
  togglePublishSidebar()
  toggleGeneralSidebarEditorPanel()
  toggleFeature()
  switchEditorMode()
  togglePinnedPluginItem()
  initializeMetaBoxState()
  setActiveMetaBoxLocations()
  requestMetaBoxUpdates()
  metaBoxUpdatesSuccess()
  setMetaBoxSavedData()
  applyMiddlewares()
  activeGeneralSidebar()
  panel()
  activeModal()
  publishSidebarActive()
  isSavingMetaBoxes()
  activeMetaBoxLocations()
  getEditorMode()
  isEditorSidebarOpened()
  isPluginSidebarOpened()
  getActiveGeneralSidebarName()
  getPreferences()
  getPreference()
  isPublishSidebarOpened()
  isEditorSidebarPanelOpened()
  isModalActive()
  isFeatureActive()
  isPluginItemPinned()
  getMetaBoxes()
  getActiveMetaBoxLocations()
  isMetaBoxLocationActive()
  getMetaBox()
  hasMetaBoxes()
  isSavingMetaBoxes()
  classNames()
  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

_arrayWithHoles(arr)   X-Ref
No description

_arrayWithoutHoles(arr)   X-Ref
No description

_assertThisInitialized(self)   X-Ref
No description

_classCallCheck(instance, Constructor)   X-Ref
No description

_defineProperties(target, props)   X-Ref
No description

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

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

_extends()   X-Ref
No description

_getPrototypeOf(o)   X-Ref
No description

_inherits(subClass, superClass)   X-Ref
No description

_iterableToArray(iter)   X-Ref
No description

_iterableToArrayLimit(arr, i)   X-Ref
No description

_nonIterableRest()   X-Ref
No description

_nonIterableSpread()   X-Ref
No description

_objectSpread(target)   X-Ref
No description

_objectWithoutProperties(source, excluded)   X-Ref
No description

_objectWithoutPropertiesLoose(source, excluded)   X-Ref
No description

_possibleConstructorReturn(self, call)   X-Ref
No description

_setPrototypeOf(o, p)   X-Ref
No description

_slicedToArray(arr, i)   X-Ref
No description

_toConsumableArray(arr)   X-Ref
No description

_typeof2(obj)   X-Ref
No description

_typeof(obj)   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

FullscreenMode()   X-Ref
No description

FeatureToggle(_ref)   X-Ref
No description

FullscreenModeClose(_ref)   X-Ref
No description

HeaderToolbar(_ref)   X-Ref
No description

Header(_ref)   X-Ref
No description

ModeSwitcher(_ref)   X-Ref
No description

WritingMenu(_ref)   X-Ref
No description

KeyboardShortcutHelpModal(_ref4)   X-Ref
No description

EditorModeKeyboardShortcuts()   X-Ref
No description

Layout(_ref)   X-Ref
No description

MetaBoxes(_ref)   X-Ref
No description

MetaBoxesArea()   X-Ref
No description

DiscussionPanel(_ref)   X-Ref
No description

FeaturedImage(_ref)   X-Ref
No description

LastRevision()   X-Ref
No description

PageAttributes(_ref)   X-Ref
Module Constants


PluginSidebar(props)   X-Ref
Renders the plugin sidebar component.

return: {WPElement} Plugin sidebar component.
param: {Object} props Element props.

PostAuthor()   X-Ref
WordPress dependencies


PostExcerpt(_ref)   X-Ref
No description

PostFormat()   X-Ref
WordPress dependencies


PostPendingStatus()   X-Ref
WordPress dependencies


PostSchedule()   X-Ref
No description

PostStatus(_ref)   X-Ref
No description

PostSticky()   X-Ref
WordPress dependencies


PostTaxonomies()   X-Ref
No description

TaxonomyPanel(_ref)   X-Ref
No description

PostTrash()   X-Ref
WordPress dependencies


PostVisibility()   X-Ref
No description

TextEditor(_ref)   X-Ref
No description

BlockInspectorButton(_ref)   X-Ref
Internal dependencies


VisualEditor()   X-Ref
No description

Editor(_ref)   X-Ref
No description

MediaUpload(_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.

reinitializeEditor(postType, postId, target, settings, overridePost)   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}  overridePost   Post properties to override.

initializeEditor(id, postType, postId, settings, overridePost)   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.

return: {Object} Editor interface.
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}  overridePost  Post properties to override.

CopyContentMenuItem(_ref)   X-Ref
No description

KeyboardShortcutsHelpMenuItem(_ref)   X-Ref
No description

TipsToggleMenuItem(_ref)   X-Ref
No description

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 an editor sidebar.

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 the sidebar.

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

toggleGeneralSidebarEditorPanel(panel)   X-Ref
Returns an action object used in signalling that use toggled a panel in the editor.

return: {Object} Action object.
param: {string}  panel The panel to toggle.

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.

initializeMetaBoxState(metaBoxes)   X-Ref
Returns an action object used to check the state of meta boxes at a location.

This should only be fired once to initialize meta box state. If a meta box
area is empty, this will set the store state to indicate that React should
not render the meta box area.

Example: metaBoxes = { side: true, normal: false }.

This indicates that the sidebar has a meta box but the normal area does not.

return: {Object} Action object.
param: {Object} metaBoxes Whether meta box locations are active.

setActiveMetaBoxLocations(locations)   X-Ref
Returns an action object used in signaling that the active meta box
locations have changed.

return: {Object} Action object.
param: {string[]} locations New active meta box locations.

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.

setMetaBoxSavedData(dataPerLocation)   X-Ref
Returns an action object used to set the saved meta boxes data.
This is used to check if the meta boxes have been touched when leaving the editor.

return: {Object} Action object.
param: {Object} dataPerLocation Meta Boxes Data per location.

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

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

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.

panel()   X-Ref
No description

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.

activeMetaBoxLocations()   X-Ref
Reducer returning an array of active meta box locations after the given
action.

return: {string[]} Updated state.
param: {boolean} state  Previous state.
param: {Object}  action 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

isEditorSidebarPanelOpened(state, panel)   X-Ref
Returns true if the editor sidebar panel is open, or false otherwise.

return: {boolean} Whether the sidebar panel is open.
param: {Object}  state Global application state.
param: {string}  panel Sidebar panel name.

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.

getMetaBoxes(state)   X-Ref
Returns the state of legacy meta boxes.

return: {Object} State of meta boxes.
param: {Object} state Global application state.

getActiveMetaBoxLocations(state)   X-Ref
Returns an array of active meta box locations.

return: {string[]} Active meta box locations.
param: {Object} state Post editor state.

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.

getMetaBox(state, location)   X-Ref
Returns the state of legacy meta boxes.

return: {Object} State of meta box at specified location.
param: {Object} state    Global application state.
param: {string} location Location of the meta box.

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

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.

classNames()   X-Ref
No description

flattenIntoMap( map, effects )   X-Ref
No description

refx( effects )   X-Ref
No description



Generated: Mon Jan 7 01:00:05 2019 Cross-referenced by PHPXref 0.7.1