[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

(no description)

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

Defines 66 functions

  __webpack_require__()
  getDefault()
  getModuleExports()
  defaultSetTimout()
  defaultClearTimeout()
  runTimeout()
  runClearTimeout()
  cleanUpNextTick()
  drainQueue()
  Item()
  noop()
  useMediaQuery()
  _extends()
  _defineProperties()
  _createClass()
  _classCallCheck()
  _possibleConstructorReturn()
  _getPrototypeOf()
  _setPrototypeOf()
  _inherits()
  _iterableToArrayLimit()
  _slicedToArray()
  _arrayLikeToArray()
  _unsupportedIterableToArray()
  _addEvent()
  _characterFromEvent()
  _modifiersMatch()
  _eventModifiers()
  _preventDefault()
  _stopPropagation()
  _isModifier()
  _getReverseMap()
  _pickBestAction()
  _keysFromString()
  _getKeyInfo()
  _belongsTo()
  Mousetrap()
  _resetSequences()
  _getMatches()
  _fireCallback()
  _handleKeyEvent()
  _resetSequenceTimer()
  _bindSequence()
  _increaseSequence()
  _callbackAndReset()
  _bindSingle()
  _typeof()
  _arrayWithHoles()
  _nonIterableRest()
  createHigherOrderComponent()
  _class()
  _class2()
  Listener()
  withGlobalEvents()
  Wrapper()
  createId()
  useInstanceId()
  WrappedComponent()
  setTimeout()
  clearTimeout()
  withState()
  WrappedComponent()
  useDragging()
  isAppleOS()
  useKeyboardShortcut()
  _assertThisInitialized()

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

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

useMediaQuery(query)   X-Ref
Runs a media query and returns its value when it changes.

param: {string} [query] Media Query.
return: {boolean} return value of the media query.

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

_iterableToArrayLimit(arr, i)   X-Ref
No description

_slicedToArray(arr, i)   X-Ref
No description

_arrayLikeToArray(arr, len)   X-Ref
No description

_unsupportedIterableToArray(o, minLen)   X-Ref
No description

_addEvent(object, type, callback)   X-Ref
cross browser add event method

param: {Element|HTMLDocument} object
param: {string} type
param: {Function} callback
returns: void

_characterFromEvent(e)   X-Ref
takes the event and returns the key character

param: {Event} e
return: {string}

_modifiersMatch(modifiers1, modifiers2)   X-Ref
checks if two arrays are equal

param: {Array} modifiers1
param: {Array} modifiers2
returns: {boolean}

_eventModifiers(e)   X-Ref
takes a key event and figures out what the modifiers are

param: {Event} e
returns: {Array}

_preventDefault(e)   X-Ref
prevents default for this event

param: {Event} e
returns: void

_stopPropagation(e)   X-Ref
stops propogation for this event

param: {Event} e
returns: void

_isModifier(key)   X-Ref
determines if the keycode specified is a modifier key or not

param: {string} key
returns: {boolean}

_getReverseMap()   X-Ref
reverses the map lookup so that we can look for specific keys
to see what can and can't use keypress

return: {Object}

_pickBestAction(key, modifiers, action)   X-Ref
picks the best action based on the key combination

param: {string} key - character for key
param: {Array} modifiers
param: {string=} action passed in

_keysFromString(combination)   X-Ref
Converts from a string key combination to an array

param: {string} combination like "command+shift+l"
return: {Array}

_getKeyInfo(combination, action)   X-Ref
Gets info for a specific key combination

param: {string} combination key combination ("command+s" or "a" or "*")
param: {string=} action
returns: {Object}

_belongsTo(element, ancestor)   X-Ref
No description

Mousetrap(targetElement)   X-Ref
No description

_resetSequences(doNotReset)   X-Ref
resets all sequence counters except for the ones passed in

param: {Object} doNotReset
returns: void

_getMatches(character, modifiers, e, sequenceName, combination, level)   X-Ref
finds all callbacks that match based on the keycode, modifiers,
and action

param: {string} character
param: {Array} modifiers
param: {Event|Object} e
param: {string=} sequenceName - name of the sequence we are looking for
param: {string=} combination
param: {number=} level
returns: {Array}

_fireCallback(callback, e, combo, sequence)   X-Ref
actually calls the callback function

if your callback function returns false this will use the jquery
convention - prevent default and stop propogation on the event

param: {Function} callback
param: {Event} e
returns: void

_handleKeyEvent(e)   X-Ref
handles a keydown event

param: {Event} e
returns: void

_resetSequenceTimer()   X-Ref
called to set a 1 second timeout on the specified sequence

this is so after each key press in the sequence you have 1 second
to press the next key before you have to start over

returns: void

_bindSequence(combo, keys, callback, action)   X-Ref
binds a key sequence to an event

param: {string} combo - combo specified in bind call
param: {Array} keys
param: {Function} callback
param: {string=} action
returns: void

_increaseSequence(nextAction)   X-Ref
callback to increase the sequence level for this sequence and reset
all other sequences that were active

param: {string} nextAction
returns: {Function}

_callbackAndReset(e)   X-Ref
wraps the specified callback inside of another function in order
to reset all sequence counters as soon as this sequence is done

param: {Event} e
returns: void

_bindSingle(combination, callback, action, sequenceName, level)   X-Ref
binds a single keyboard combination

param: {string} combination
param: {Function} callback
param: {string=} action
param: {string=} sequenceName - name of sequence if part of sequence
param: {number=} level - what part of the sequence the command is
returns: void

_typeof(obj)   X-Ref
No description

_arrayWithHoles(arr)   X-Ref
No description

_nonIterableRest()   X-Ref
No description

createHigherOrderComponent(mapComponentToEnhancedComponent, modifierName)   X-Ref
Given a function mapping a component to an enhanced component and modifier
name, returns the enhanced component augmented with a generated displayName.

param: {Function} mapComponentToEnhancedComponent Function mapping component
param: {string}   modifierName                    Seed name from which to
return: {WPComponent} Component class with generated display name assigned.

_class()   X-Ref
No description

_class2()   X-Ref
No description

Listener()   X-Ref
No description

withGlobalEvents(eventTypesToHandlers)   X-Ref
Higher-order component creator which, given an object of DOM event types and
values corresponding to a callback function name on the component, will
create or update a window event handler to invoke the callback when an event
occurs. On behalf of the consuming developer, the higher-order component
manages unbinding when the component unmounts, and binding at most a single
event handler for the entire application.

param: {Object<string,string>} eventTypesToHandlers Object with keys of DOM
return: {Function} Higher-order component.

Wrapper()   X-Ref
No description

createId(object)   X-Ref
Creates a new id for a given object.

param: {Object} object Object reference to create an id for.

useInstanceId(object)   X-Ref
Provides a unique instance ID.

param: {Object} object Object reference to create an id for.

WrappedComponent()   X-Ref
No description

setTimeout(_x, _x2)   X-Ref
No description

clearTimeout(_x3)   X-Ref
No description

withState()   X-Ref
A Higher Order Component used to provide and manage internal component state
via props.

param: {?Object} initialState Optional initial state of the component.
return: {WPComponent} Wrapped component.

WrappedComponent()   X-Ref
No description

useDragging(_ref)   X-Ref
WordPress dependencies


isAppleOS()   X-Ref
Return true if platform is MacOS.

param: {Object} _window   window object by default; used for DI testing.
return: {boolean} True if MacOS; false otherwise.

useKeyboardShortcut(shortcuts, callback)   X-Ref
Attach a keyboard shortcut handler.

param: {string[]|string}         shortcuts  Keyboard Shortcuts.
param: {Function}                callback   Shortcut callback.
param: {WPKeyboardShortcutConfig} options    Shortcut options.

_assertThisInitialized(self)   X-Ref
No description



Generated: Sat Apr 4 01:00:03 2020 Cross-referenced by PHPXref 0.7.1