[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

title

Body

[close]

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

(no description)

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

Defines 108 functions

  getIteratorFn()
  toObject()
  shouldUseNative()
  ReactError()
  warnNoop()
  Component()
  ComponentDummy()
  PureComponent()
  createRef()
  refineResolvedLazyComponent()
  getWrappedName()
  getComponentName()
  setCurrentlyValidatingElement()
  hasValidRef()
  hasValidKey()
  defineKeyPropWarningGetter()
  defineRefPropWarningGetter()
  jsxDEV()
  createElement()
  cloneAndReplaceKey()
  cloneElement()
  isValidElement()
  escape()
  escapeUserProvidedKey()
  getPooledTraverseContext()
  releaseTraverseContext()
  traverseAllChildrenImpl()
  traverseAllChildren()
  getComponentKey()
  forEachSingleChild()
  forEachChildren()
  mapSingleChildIntoContext()
  mapIntoWithKeyPrefixInternal()
  mapChildren()
  countChildren()
  toArray()
  onlyChild()
  createContext()
  lazy()
  forwardRef()
  isValidElementType()
  memo()
  resolveDispatcher()
  useContext()
  useState()
  useReducer()
  useRef()
  useEffect()
  useLayoutEffect()
  useCallback()
  useMemo()
  useImperativeHandle()
  useDebugValue()
  useResponder()
  withSuspenseConfig()
  checkPropTypes()
  getDeclarationErrorAddendum()
  getSourceInfoErrorAddendum()
  getSourceInfoErrorAddendumForProps()
  getCurrentComponentErrorInfo()
  validateExplicitKey()
  validateChildKeys()
  validatePropTypes()
  validateFragmentProps()
  jsxWithValidation()
  jsxWithValidationStatic()
  jsxWithValidationDynamic()
  createElementWithValidation()
  createFactoryWithValidation()
  cloneElementWithValidation()
  scheduler_flushTaskAtPriority_Immediate()
  scheduler_flushTaskAtPriority_UserBlocking()
  scheduler_flushTaskAtPriority_Normal()
  scheduler_flushTaskAtPriority_Low()
  scheduler_flushTaskAtPriority_Idle()
  flushTask()
  advanceTimers()
  handleTimeout()
  flushWork()
  unstable_runWithPriority()
  unstable_next()
  unstable_wrapCallback()
  timeoutForPriorityLevel()
  unstable_scheduleCallback()
  insertScheduledTask()
  insertDelayedTask()
  unstable_pauseExecution()
  unstable_continueExecution()
  unstable_getFirstCallbackNode()
  unstable_cancelCallback()
  unstable_getCurrentPriorityLevel()
  unstable_shouldYield()
  unstable_clear()
  unstable_getCurrent()
  unstable_getThreadID()
  unstable_trace()
  unstable_wrap()
  wrapped()
  unstable_subscribe()
  unstable_unsubscribe()
  onInteractionTraced()
  onInteractionScheduledWorkCompleted()
  onWorkScheduled()
  onWorkStarted()
  onWorkStopped()
  onWorkCanceled()
  createFundamentalComponent()
  createEventResponder()

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

ReactError(error)   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

refineResolvedLazyComponent(lazyComponent)   X-Ref


getWrappedName(outerType, innerType, wrapperName)   X-Ref
No description

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

jsxDEV(type, config, maybeKey, source, self)   X-Ref
https://github.com/reactjs/rfcs/pull/107

param: {*} type
param: {object} props
param: {string} key

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.

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

memo(type, compare)   X-Ref
No description

resolveDispatcher()   X-Ref
No description

useContext(Context, unstable_observedBits)   X-Ref
No description

useState(initialState)   X-Ref
No description

useReducer(reducer, initialArg, init)   X-Ref
No description

useRef(initialValue)   X-Ref
No description

useEffect(create, inputs)   X-Ref
No description

useLayoutEffect(create, inputs)   X-Ref
No description

useCallback(callback, inputs)   X-Ref
No description

useMemo(create, inputs)   X-Ref
No description

useImperativeHandle(ref, create, inputs)   X-Ref
No description

useDebugValue(value, formatterFn)   X-Ref
No description

useResponder(responder, listenerProps)   X-Ref
No description

withSuspenseConfig(scope, config)   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(source)   X-Ref
No description

getSourceInfoErrorAddendumForProps(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

jsxWithValidation(type, props, key, isStaticChildren, source, self)   X-Ref
No description

jsxWithValidationStatic(type, props, key)   X-Ref
No description

jsxWithValidationDynamic(type, props, key)   X-Ref
No description

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

createFactoryWithValidation(type)   X-Ref
No description

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

scheduler_flushTaskAtPriority_Immediate(callback, didTimeout)   X-Ref
No description

scheduler_flushTaskAtPriority_UserBlocking(callback, didTimeout)   X-Ref
No description

scheduler_flushTaskAtPriority_Normal(callback, didTimeout)   X-Ref
No description

scheduler_flushTaskAtPriority_Low(callback, didTimeout)   X-Ref
No description

scheduler_flushTaskAtPriority_Idle(callback, didTimeout)   X-Ref
No description

flushTask(task, currentTime)   X-Ref
No description

advanceTimers(currentTime)   X-Ref
No description

handleTimeout(currentTime)   X-Ref
No description

flushWork(hasTimeRemaining, initialTime)   X-Ref
No description

unstable_runWithPriority(priorityLevel, eventHandler)   X-Ref
No description

unstable_next(eventHandler)   X-Ref
No description

unstable_wrapCallback(callback)   X-Ref
No description

timeoutForPriorityLevel(priorityLevel)   X-Ref
No description

unstable_scheduleCallback(priorityLevel, callback, options)   X-Ref
No description

insertScheduledTask(newTask, expirationTime)   X-Ref
No description

insertDelayedTask(newTask, startTime)   X-Ref
No description

unstable_pauseExecution()   X-Ref
No description

unstable_continueExecution()   X-Ref
No description

unstable_getFirstCallbackNode()   X-Ref
No description

unstable_cancelCallback(task)   X-Ref
No description

unstable_getCurrentPriorityLevel()   X-Ref
No description

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

createFundamentalComponent(impl)   X-Ref
No description

createEventResponder(displayName, responderConfig)   X-Ref
No description



Generated: Fri Oct 25 08:20:01 2019 Cross-referenced by PHPXref 0.7