[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

(no description)

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

Defines 79 functions

  __webpack_require__()
  createFrame()
  proceed()
  nextToken()
  addText()
  addChild()
  closeOuterElement()
  concatChildren()
  switchChildrenNodeName()
  isObject()
  isPlainObject()
  __extends()
  __()
  __rest()
  __decorate()
  __param()
  __esDecorate()
  accept()
  __runInitializers()
  __propKey()
  __setFunctionName()
  __metadata()
  __awaiter()
  adopt()
  fulfilled()
  rejected()
  step()
  __generator()
  verb()
  step()
  __exportStar()
  __values()
  __read()
  __spread()
  __spreadArrays()
  __spreadArray()
  __await()
  __asyncGenerator()
  awaitReturn()
  verb()
  resume()
  step()
  fulfill()
  reject()
  settle()
  __asyncDelegator()
  verb()
  __asyncValues()
  verb()
  settle()
  __makeTemplateObject()
  __importStar()
  __importDefault()
  __classPrivateFieldGet()
  __classPrivateFieldSet()
  __classPrivateFieldIn()
  __addDisposableResource()
  __disposeResources()
  fail()
  next()
  localeLowerCase()
  lowerCase()
  noCase()
  replace()
  dotCase()
  paramCase()
  RawHTML()
  hasPrefix()
  isInternalAttribute()
  getNormalAttributeValue()
  getNormalAttributeName()
  getNormalStylePropertyName()
  getNormalStylePropertyValue()
  renderElement()
  renderNativeComponent()
  renderComponent()
  renderChildren()
  renderAttributes()
  renderStyle()

Functions
Functions that are not part of a class:

__webpack_require__(moduleId)   X-Ref
No description

createFrame(element, tokenStart, tokenLength, prevOffset, leadingTextStart)   X-Ref
Tracks recursive-descent parse state.

This is a Stack frame holding parent elements until all children have been
parsed.

return: {Frame} The stack frame tracking parse progress.
param: {Element} element            A parent element which may still have
param: {number}  tokenStart         Offset at which parent element first
param: {number}  tokenLength        Length of string marking start of parent
param: {number}  [prevOffset]       Running offset at which parsing should
param: {number}  [leadingTextStart] Offset at which last closing element

proceed(conversionMap)   X-Ref
This is the iterator over the matches in the string.

return: {boolean} true for continuing to iterate, false for finished.
param: {Object} conversionMap The conversion map for the string.

nextToken()   X-Ref
Grabs the next token match in the string and returns it's details.

return: {Array}  An array of details for the token matched.

addText()   X-Ref
Pushes text extracted from the indoc string to the output stack given the
current rawLength value and offset (if rawLength is provided ) or the
indoc.length and offset.


addChild(frame)   X-Ref
Pushes a child element to the associated parent element's children for the
parent currently active in the stack.

param: {Frame} frame The Frame containing the child element and it's

closeOuterElement(endOffset)   X-Ref
This is called for closing tags. It creates the element currently active in
the stack.

param: {number} endOffset Offset at which the closing tag for the element

concatChildren(...childrenArguments)   X-Ref
Concatenate two or more React children objects.

return: {Array} The concatenated value.
param: {...?Object} childrenArguments Array of children arguments (array of arrays/strings/objects) to concatenate.

switchChildrenNodeName(children, nodeName)   X-Ref
Switches the nodeName of all the elements in the children object.

return: {?Object} The updated children object.
param: {?Object} children Children object.
param: {string}  nodeName Node name.

isObject(o)   X-Ref
No description

isPlainObject(o)   X-Ref
No description

__extends(d, b)   X-Ref
No description

__()   X-Ref
No description

__rest(s, e)   X-Ref
No description

__decorate(decorators, target, key, desc)   X-Ref
No description

__param(paramIndex, decorator)   X-Ref
No description

__esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers)   X-Ref
No description

accept(f)   X-Ref
No description

__runInitializers(thisArg, initializers, value)   X-Ref
No description

__propKey(x)   X-Ref
No description

__setFunctionName(f, name, prefix)   X-Ref
No description

__metadata(metadataKey, metadataValue)   X-Ref
No description

__awaiter(thisArg, _arguments, P, generator)   X-Ref
No description

adopt(value)   X-Ref
No description

fulfilled(value)   X-Ref
No description

rejected(value)   X-Ref
No description

step(result)   X-Ref
No description

__generator(thisArg, body)   X-Ref
No description

verb(n)   X-Ref
No description

step(op)   X-Ref
No description

__exportStar(m, o)   X-Ref
No description

__values(o)   X-Ref
No description

__read(o, n)   X-Ref
No description

__spread()   X-Ref
No description

__spreadArrays()   X-Ref
No description

__spreadArray(to, from, pack)   X-Ref
No description

__await(v)   X-Ref
No description

__asyncGenerator(thisArg, _arguments, generator)   X-Ref
No description

awaitReturn(f)   X-Ref
No description

verb(n, f)   X-Ref
No description

resume(n, v)   X-Ref
No description

step(r)   X-Ref
No description

fulfill(value)   X-Ref
No description

reject(value)   X-Ref
No description

settle(f, v)   X-Ref
No description

__asyncDelegator(o)   X-Ref
No description

verb(n, f)   X-Ref
No description

__asyncValues(o)   X-Ref
No description

verb(n)   X-Ref
No description

settle(resolve, reject, d, v)   X-Ref
No description

__makeTemplateObject(cooked, raw)   X-Ref
No description

__importStar(mod)   X-Ref
No description

__importDefault(mod)   X-Ref
No description

__classPrivateFieldGet(receiver, state, kind, f)   X-Ref
No description

__classPrivateFieldSet(receiver, state, value, kind, f)   X-Ref
No description

__classPrivateFieldIn(state, receiver)   X-Ref
No description

__addDisposableResource(env, value, async)   X-Ref
No description

__disposeResources(env)   X-Ref
No description

fail(e)   X-Ref
No description

next()   X-Ref
No description

localeLowerCase(str, locale)   X-Ref
Localized lower case.


lowerCase(str)   X-Ref
Lower case as a function.


noCase(input, options)   X-Ref
Normalize the string into something other libraries can manipulate easier.


replace(input, re, value)   X-Ref
Replace `re` in the input string with the replacement value.


dotCase(input, options)   X-Ref
No description

paramCase(input, options)   X-Ref
No description

RawHTML({children,...props})   X-Ref
Component used as equivalent of Fragment with unescaped HTML, in cases where
it is desirable to render dangerous HTML without needing a wrapper element.
To preserve additional props, a `div` wrapper _will_ be created if any props
aside from `children` are passed.

return: {JSX.Element} Dangerously-rendering component.
param: {RawHTMLProps} props Children should be a string of HTML or an array

hasPrefix(string, prefixes)   X-Ref
Returns true if the specified string is prefixed by one of an array of
possible prefixes.

return: {boolean} Whether string has prefix.
param: {string}   string   String to check.
param: {string[]} prefixes Possible prefixes.

isInternalAttribute(attribute)   X-Ref
Returns true if the given prop name should be ignored in attributes
serialization, or false otherwise.

return: {boolean} Whether attribute should be ignored.
param: {string} attribute Attribute to check.

getNormalAttributeValue(attribute, value)   X-Ref
Returns the normal form of the element's attribute value for HTML.

return: {*} Normalized attribute value.
param: {string} attribute Attribute name.
param: {*}      value     Non-normalized attribute value.

getNormalAttributeName(attribute)   X-Ref
Returns the normal form of the element's attribute name for HTML.

return: {string} Normalized attribute name.
param: {string} attribute Non-normalized attribute name.

getNormalStylePropertyName(property)   X-Ref
Returns the normal form of the style property name for HTML.

- Converts property names to kebab-case, e.g. 'backgroundColor' → 'background-color'
- Leaves custom attributes alone, e.g. '--myBackgroundColor' → '--myBackgroundColor'
- Converts vendor-prefixed property names to -kebab-case, e.g. 'MozTransform' → '-moz-transform'

return: {string} Normalized property name.
param: {string} property Property name.

getNormalStylePropertyValue(property, value)   X-Ref
Returns the normal form of the style property value for HTML. Appends a
default pixel unit if numeric, not a unitless property, and not zero.

return: {*} Normalized property value.
param: {string} property Property name.
param: {*}      value    Non-normalized property value.

renderElement(element, context, legacyContext = {})   X-Ref
Serializes a React element to string.

return: {string} Serialized element.
param: {import('react').ReactNode} element         Element to serialize.
param: {Object}                    [context]       Context object.
param: {Object}                    [legacyContext] Legacy context object.

renderNativeComponent(type, props, context, legacyContext = {})   X-Ref
Serializes a native component type to string.

return: {string} Serialized element.
param: {?string} type            Native component type to serialize, or null if
param: {Object}  props           Props object.
param: {Object}  [context]       Context object.
param: {Object}  [legacyContext] Legacy context object.

renderComponent(Component, props, context, legacyContext = {})   X-Ref
Serializes a non-native component type to string.

return: {string} Serialized element
param: {ComponentType} Component       Component type to serialize.
param: {Object}        props           Props object.
param: {Object}        [context]       Context object.
param: {Object}        [legacyContext] Legacy context object.

renderChildren(children, context, legacyContext = {})   X-Ref
Serializes an array of children to string.

return: {string} Serialized children.
param: {import('react').ReactNodeArray} children        Children to serialize.
param: {Object}                         [context]       Context object.
param: {Object}                         [legacyContext] Legacy context object.

renderAttributes(props)   X-Ref
Renders a props object as a string of HTML attributes.

return: {string} Attributes string.
param: {Object} props Props object.

renderStyle(style)   X-Ref
Renders a style object as a string attribute value.

return: {string} Style attribute value.
param: {Object} style Style object.



Generated : Sat Dec 21 08:20:01 2024 Cross-referenced by PHPXref