[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/js/dist/vendor/ -> react.js (summary)

(no description)

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

Defines 70 functions

  getIteratorFn()
  toObject()
  shouldUseNative()
  invariant()
  warnNoop()
  Component()
  ComponentDummy()
  PureComponent()
  createRef()
  ensureHostCallbackIsScheduled()
  flushFirstCallback()
  flushWork()
  unstable_scheduleWork()
  unstable_cancelScheduledWork()
  unstable_clear()
  unstable_getCurrent()
  unstable_getThreadID()
  unstable_trace()
  unstable_wrap()
  wrapped()
  unstable_subscribe()
  unstable_unsubscribe()
  onInteractionTraced()
  onInteractionScheduledWorkCompleted()
  onWorkScheduled()
  onWorkStarted()
  onWorkStopped()
  onWorkCanceled()
  refineResolvedThenable()
  getComponentName()
  setCurrentlyValidatingElement()
  hasValidRef()
  hasValidKey()
  defineKeyPropWarningGetter()
  defineRefPropWarningGetter()
  createElement()
  cloneAndReplaceKey()
  cloneElement()
  isValidElement()
  escape()
  escapeUserProvidedKey()
  getPooledTraverseContext()
  releaseTraverseContext()
  traverseAllChildrenImpl()
  traverseAllChildren()
  getComponentKey()
  forEachSingleChild()
  forEachChildren()
  mapSingleChildIntoContext()
  mapIntoWithKeyPrefixInternal()
  mapChildren()
  countChildren()
  toArray()
  onlyChild()
  readContext()
  createContext()
  lazy()
  forwardRef()
  isValidElementType()
  checkPropTypes()
  getDeclarationErrorAddendum()
  getSourceInfoErrorAddendum()
  getCurrentComponentErrorInfo()
  validateExplicitKey()
  validateChildKeys()
  validatePropTypes()
  validateFragmentProps()
  createElementWithValidation()
  createFactoryWithValidation()
  cloneElementWithValidation()

Functions
Functions that are not part of a class:

getIteratorFn(maybeIterable)   X-Ref
No description

toObject(val)   X-Ref
No description

shouldUseNative()   X-Ref
No description

invariant(condition, format, a, b, c, d, e, f)   X-Ref
No description

warnNoop(publicInstance, callerName)   X-Ref
No description

Component(props, context, updater)   X-Ref
Base class helpers for the updating state of a component.


ComponentDummy()   X-Ref
No description

PureComponent(props, context, updater)   X-Ref
Convenience component with default shallow equality check for sCU.


createRef()   X-Ref
No description

ensureHostCallbackIsScheduled()   X-Ref
No description

flushFirstCallback(node)   X-Ref
No description

flushWork(didTimeout)   X-Ref
No description

unstable_scheduleWork(callback, options)   X-Ref
No description

unstable_cancelScheduledWork(callbackNode)   X-Ref
No description

unstable_clear(callback)   X-Ref
No description

unstable_getCurrent()   X-Ref
No description

unstable_getThreadID()   X-Ref
No description

unstable_trace(name, timestamp, callback)   X-Ref
No description

unstable_wrap(callback)   X-Ref
No description

wrapped()   X-Ref
No description

unstable_subscribe(subscriber)   X-Ref
No description

unstable_unsubscribe(subscriber)   X-Ref
No description

onInteractionTraced(interaction)   X-Ref
No description

onInteractionScheduledWorkCompleted(interaction)   X-Ref
No description

onWorkScheduled(interactions, threadID)   X-Ref
No description

onWorkStarted(interactions, threadID)   X-Ref
No description

onWorkStopped(interactions, threadID)   X-Ref
No description

onWorkCanceled(interactions, threadID)   X-Ref
No description

refineResolvedThenable(thenable)   X-Ref


getComponentName(type)   X-Ref
No description

setCurrentlyValidatingElement(element)   X-Ref
No description

hasValidRef(config)   X-Ref
No description

hasValidKey(config)   X-Ref
No description

defineKeyPropWarningGetter(props, displayName)   X-Ref
No description

defineRefPropWarningGetter(props, displayName)   X-Ref
No description

createElement(type, config, children)   X-Ref
Create and return a new ReactElement of the given type.
See https://reactjs.org/docs/react-api.html#createelement


cloneAndReplaceKey(oldElement, newKey)   X-Ref
Return a function that produces ReactElements of a given type.
See https://reactjs.org/docs/react-api.html#createfactory


cloneElement(element, config, children)   X-Ref
Clone and return a new ReactElement using element as the starting point.
See https://reactjs.org/docs/react-api.html#cloneelement


isValidElement(object)   X-Ref
Verifies the object is a ReactElement.
See https://reactjs.org/docs/react-api.html#isvalidelement

return: {boolean} True if `object` is a ReactElement.
param: {?object} object

escape(key)   X-Ref
Escape and wrap key so it is safe to use as a reactid

return: {string} the escaped key.
param: {string} key to be escaped.

escapeUserProvidedKey(text)   X-Ref
No description

getPooledTraverseContext(mapResult, keyPrefix, mapFunction, mapContext)   X-Ref
No description

releaseTraverseContext(traverseContext)   X-Ref
No description

traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext)   X-Ref

return: {!number} The number of children in this subtree.
param: {?*} children Children tree container.
param: {!string} nameSoFar Name of the key path so far.
param: {!function} callback Callback to invoke with each child found.
param: {?*} traverseContext Used to pass information throughout the traversal

traverseAllChildren(children, callback, traverseContext)   X-Ref
Traverses children that are typically specified as `props.children`, but
might also be specified through attributes:

- `traverseAllChildren(this.props.children, ...)`
- `traverseAllChildren(this.props.leftPanelChildren, ...)`

The `traverseContext` is an optional argument that is passed through the
entire traversal. It can be used to store accumulations or anything else that
the callback might find relevant.

return: {!number} The number of children in this subtree.
param: {?*} children Children tree object.
param: {!function} callback To invoke upon traversing each child.
param: {?*} traverseContext Context for traversal.

getComponentKey(component, index)   X-Ref
Generate a key string that identifies a component within a set.

return: {string}
param: {*} component A component that could contain a manual key.
param: {number} index Index that is used if a manual key is not provided.

forEachSingleChild(bookKeeping, child, name)   X-Ref
No description

forEachChildren(children, forEachFunc, forEachContext)   X-Ref
Iterates through children that are typically specified as `props.children`.

See https://reactjs.org/docs/react-api.html#reactchildrenforeach

The provided forEachFunc(child, index) will be called for each
leaf child.

param: {?*} children Children tree container.
param: {function(*, int)} forEachFunc
param: {*} forEachContext Context for forEachContext.

mapSingleChildIntoContext(bookKeeping, child, childKey)   X-Ref
No description

mapIntoWithKeyPrefixInternal(children, array, prefix, func, context)   X-Ref
No description

mapChildren(children, func, context)   X-Ref
Maps children that are typically specified as `props.children`.

See https://reactjs.org/docs/react-api.html#reactchildrenmap

The provided mapFunction(child, key, index) will be called for each
leaf child.

return: {object} Object containing the ordered map of results.
param: {?*} children Children tree container.
param: {function(*, int)} func The map function.
param: {*} context Context for mapFunction.

countChildren(children)   X-Ref
Count the number of children that are typically specified as
`props.children`.

See https://reactjs.org/docs/react-api.html#reactchildrencount

return: {number} The number of children.
param: {?*} children Children tree container.

toArray(children)   X-Ref
Flatten a children object (typically specified as `props.children`) and
return an array with appropriately re-keyed children.

See https://reactjs.org/docs/react-api.html#reactchildrentoarray

onlyChild(children)   X-Ref
Returns the first child in a collection of children and verifies that there
is only one child in the collection.

See https://reactjs.org/docs/react-api.html#reactchildrenonly

The current implementation of this function assumes that a single child gets
passed without a wrapper, but the purpose of this helper function is to
abstract away the particular structure of children.

return: {ReactElement} The first and only `ReactElement` contained in the
param: {?object} children Child collection structure.

readContext(context, observedBits)   X-Ref
No description

createContext(defaultValue, calculateChangedBits)   X-Ref
No description

lazy(ctor)   X-Ref
No description

forwardRef(render)   X-Ref
No description

isValidElementType(type)   X-Ref
No description

checkPropTypes(typeSpecs, values, location, componentName, getStack)   X-Ref
Assert that the values match with the type specs.
Error messages are memorized and will only be shown once.

param: {object} typeSpecs Map of name to a ReactPropType
param: {object} values Runtime values that need to be type-checked
param: {string} location e.g. "prop", "context", "child context"
param: {string} componentName Name of the component for error messages.
param: {?Function} getStack Returns the component stack.

getDeclarationErrorAddendum()   X-Ref
No description

getSourceInfoErrorAddendum(elementProps)   X-Ref
No description

getCurrentComponentErrorInfo(parentType)   X-Ref
Warn if there's no key explicitly set on dynamic arrays of children or
object keys are not valid. This allows us to keep track of children between
updates.


validateExplicitKey(element, parentType)   X-Ref
Warn if the element doesn't have an explicit key assigned to it.
This element is in an array. The array could grow and shrink or be
reordered. All children that haven't already been validated are required to
have a "key" property assigned to it. Error statuses are cached so a warning
will only be shown once.

param: {ReactElement} element Element that requires a key.
param: {*} parentType element's parent's type.

validateChildKeys(node, parentType)   X-Ref
Ensure that every element either is passed in a static location, in an
array with an explicit keys property defined, or in an object literal
with valid key property.

param: {ReactNode} node Statically passed child of any type.
param: {*} parentType node's parent's type.

validatePropTypes(element)   X-Ref
Given an element, validate that its props follow the propTypes definition,
provided by the type.

param: {ReactElement} element

validateFragmentProps(fragment)   X-Ref
Given a fragment, validate that it can only be provided with fragment props

param: {ReactElement} fragment

createElementWithValidation(type, props, children)   X-Ref
No description

createFactoryWithValidation(type)   X-Ref
No description

cloneElementWithValidation(element, props, children)   X-Ref
No description



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