[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

(no description)

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

Defines 104 functions

  getIteratorFn()
  setExtraStackFrame()
  warn()
  error()
  printWarning()
  warnNoop()
  Component()
  ComponentDummy()
  PureComponent()
  createRef()
  getWrappedName()
  getContextName()
  getComponentName()
  hasValidRef()
  hasValidKey()
  defineKeyPropWarningGetter()
  defineRefPropWarningGetter()
  warnIfStringRefCannotBeAutoConverted()
  createElement()
  cloneAndReplaceKey()
  cloneElement()
  isValidElement()
  escape()
  escapeUserProvidedKey()
  getElementKey()
  mapIntoArray()
  mapChildren()
  countChildren()
  forEachChildren()
  toArray()
  onlyChild()
  createContext()
  lazyInitializer()
  lazy()
  forwardRef()
  isValidElementType()
  memo()
  resolveDispatcher()
  useContext()
  useState()
  useReducer()
  useRef()
  useEffect()
  useLayoutEffect()
  useCallback()
  useMemo()
  useImperativeHandle()
  useDebugValue()
  disabledLog()
  disableLogs()
  reenableLogs()
  describeBuiltInComponentFrame()
  describeNativeComponentFrame()
  describeFunctionComponentFrame()
  shouldConstruct()
  describeUnknownElementTypeFrameInDEV()
  setCurrentlyValidatingElement()
  checkPropTypes()
  setCurrentlyValidatingElement()
  getDeclarationErrorAddendum()
  getSourceInfoErrorAddendum()
  getSourceInfoErrorAddendumForProps()
  getCurrentComponentErrorInfo()
  validateExplicitKey()
  validateChildKeys()
  validatePropTypes()
  validateFragmentProps()
  createElementWithValidation()
  createFactoryWithValidation()
  cloneElementWithValidation()
  push()
  peek()
  pop()
  siftUp()
  siftDown()
  compare()
  markTaskErrored()
  advanceTimers()
  handleTimeout()
  flushWork()
  workLoop()
  unstable_runWithPriority()
  unstable_next()
  unstable_wrapCallback()
  unstable_scheduleCallback()
  unstable_pauseExecution()
  unstable_continueExecution()
  unstable_getFirstCallbackNode()
  unstable_cancelCallback()
  unstable_getCurrentPriorityLevel()
  unstable_clear()
  unstable_getCurrent()
  unstable_getThreadID()
  unstable_trace()
  unstable_wrap()
  wrapped()
  unstable_subscribe()
  unstable_unsubscribe()
  onInteractionTraced()
  onInteractionScheduledWorkCompleted()
  onWorkScheduled()
  onWorkStarted()
  onWorkStopped()
  onWorkCanceled()

Functions
Functions that are not part of a class:

getIteratorFn(maybeIterable)   X-Ref
No description

setExtraStackFrame(stack)   X-Ref


warn(format)   X-Ref
No description

error(format)   X-Ref
No description

printWarning(level, format, args)   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

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

getContextName(type)   X-Ref
No description

getComponentName(type)   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

warnIfStringRefCannotBeAutoConverted(config)   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
No description

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

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

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

mapIntoArray(children, array, escapedPrefix, nameSoFar, callback)   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, 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.

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.

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

lazyInitializer(payload)   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, deps)   X-Ref
No description

useLayoutEffect(create, deps)   X-Ref
No description

useCallback(callback, deps)   X-Ref
No description

useMemo(create, deps)   X-Ref
No description

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

useDebugValue(value, formatterFn)   X-Ref
No description

disabledLog()   X-Ref
No description

disableLogs()   X-Ref
No description

reenableLogs()   X-Ref
No description

describeBuiltInComponentFrame(name, source, ownerFn)   X-Ref
No description

describeNativeComponentFrame(fn, construct)   X-Ref
No description

describeFunctionComponentFrame(fn, source, ownerFn)   X-Ref
No description

shouldConstruct(Component)   X-Ref
No description

describeUnknownElementTypeFrameInDEV(type, source, ownerFn)   X-Ref
No description

setCurrentlyValidatingElement(element)   X-Ref
No description

checkPropTypes(typeSpecs, values, location, componentName, element)   X-Ref
No description

setCurrentlyValidatingElement({if (element)   X-Ref
No description

getDeclarationErrorAddendum()   X-Ref
No description

getSourceInfoErrorAddendum(source)   X-Ref
No description

getSourceInfoErrorAddendumForProps(elementProps)   X-Ref
No description

getCurrentComponentErrorInfo(parentType)   X-Ref
No description

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

push(heap, node)   X-Ref
No description

peek(heap)   X-Ref
No description

pop(heap)   X-Ref
No description

siftUp(heap, node, i)   X-Ref
No description

siftDown(heap, node, i)   X-Ref
No description

compare(a, b)   X-Ref
No description

markTaskErrored(task, ms)   X-Ref
No description

advanceTimers(currentTime)   X-Ref
No description

handleTimeout(currentTime)   X-Ref
No description

flushWork(hasTimeRemaining, initialTime)   X-Ref
No description

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

unstable_scheduleCallback(priorityLevel, callback, options)   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_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



Generated: Thu Nov 21 01:00:03 2024 Cross-referenced by PHPXref 0.7.1