[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

(no description)

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

Defines 102 functions

  classNames()
  commandScoreInner()
  commandScore()
  __webpack_require__()
  _extends()
  Provider()
  useContext()
  Provider()
  useContext()
  handleAndDispatchPointerDownOutsideEvent()
  handleFocusIn()
  handleFocusOut()
  __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()
  verb()
  resume()
  step()
  fulfill()
  reject()
  settle()
  __asyncDelegator()
  verb()
  __asyncValues()
  verb()
  settle()
  __makeTemplateObject()
  __importStar()
  __importDefault()
  __classPrivateFieldGet()
  __classPrivateFieldSet()
  __classPrivateFieldIn()
  __addDisposableResource()
  __disposeResources()
  fail()
  next()
  assignRef()
  useCallbackRef()
  useMergeRefs()
  ItoI()
  innerCreateMedium()
  createMedium()
  createSidecarMedium()
  exportSidecar()
  makeStyleTag()
  injectStyles()
  insertStyleTag()
  RemoveScrollSideCar()
  Icon()
  commands()
  commandLoaders()
  isOpen()
  context()
  registerCommand()
  unregisterCommand()
  registerCommandLoader()
  unregisterCommandLoader()
  actions_open()
  actions_close()
  arrayOf()
  isObjectLike()
  createCache()
  isShallowEqual()
  rememo()
  getCache()
  clear()
  callSelector()
  selectors_isOpen()
  getContext()
  setContext()
  CommandMenuLoader()
  CommandMenuLoaderWrapper()
  CommandMenuGroup()
  CommandInput()
  CommandMenu()
  useCommandContext()
  useCommand()
  useCommandLoader()

Functions
Functions that are not part of a class:

classNames()   X-Ref
No description

commandScoreInner(string, abbreviation, lowerString, lowerAbbreviation, stringIndex, abbreviationIndex)   X-Ref
No description

commandScore(string, abbreviation)   X-Ref
No description

__webpack_require__(moduleId)   X-Ref
No description

_extends()   X-Ref
No description

Provider(props)   X-Ref
No description

useContext(consumerName)   X-Ref
No description

Provider(props)   X-Ref
No description

useContext(consumerName, scope)   X-Ref
No description

handleAndDispatchPointerDownOutsideEvent()   X-Ref
No description

handleFocusIn(event)   X-Ref
No description

handleFocusOut(event)   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

verb(n)   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

assignRef(ref, value)   X-Ref
Assigns a value for a given ref, no matter of the ref format

param: {RefObject} ref - a callback function or ref object
param: value - a new value

useCallbackRef(initialValue, callback)   X-Ref
creates a MutableRef with ref change callback

returns: {MutableRefObject}
param: initialValue - initial ref value
param: {Function} callback - a callback to run when value changes

useMergeRefs(refs, defaultValue)   X-Ref
Merges two or more refs together providing a single interface to set their value

returns: {MutableRefObject} - a new ref, which translates all changes to {refs}
param: {RefObject|Ref} refs

ItoI(a)   X-Ref
No description

innerCreateMedium(defaults, middleware)   X-Ref
No description

createMedium(defaults, middleware)   X-Ref
No description

createSidecarMedium(options)   X-Ref
No description

exportSidecar(medium, exported)   X-Ref
No description

makeStyleTag()   X-Ref
No description

injectStyles(tag, css)   X-Ref
No description

insertStyleTag(tag)   X-Ref
No description

RemoveScrollSideCar(props)   X-Ref
No description

Icon({icon,size = 24,...props}, ref)   X-Ref
No description

commands(state = {}, action)   X-Ref
Reducer returning the registered commands

return: {Object} Updated state.
param: {Object} state  Current state.
param: {Object} action Dispatched action.

commandLoaders(state = {}, action)   X-Ref
Reducer returning the command loaders

return: {Object} Updated state.
param: {Object} state  Current state.
param: {Object} action Dispatched action.

isOpen(state = false, action)   X-Ref
Reducer returning the command palette open state.

return: {boolean} Updated state.
param: {Object} state  Current state.
param: {Object} action Dispatched action.

context(state = 'root', action)   X-Ref
Reducer returning the command palette's active context.

return: {boolean} Updated state.
param: {Object} state  Current state.
param: {Object} action Dispatched action.

registerCommand(config)   X-Ref
Returns an action object used to register a new command.

return: {Object} action.
param: {WPCommandConfig} config Command config.

unregisterCommand(name)   X-Ref
Returns an action object used to unregister a command.

return: {Object} action.
param: {string} name Command name.

registerCommandLoader(config)   X-Ref
Register command loader.

return: {Object} action.
param: {WPCommandLoaderConfig} config Command loader config.

unregisterCommandLoader(name)   X-Ref
Unregister command loader hook.

return: {Object} action.
param: {string} name Command loader name.

actions_open()   X-Ref
Opens the command palette.

return: {Object} action.

actions_close()   X-Ref
Closes the command palette.

return: {Object} action.

arrayOf(value)   X-Ref
Returns the first argument as the sole entry in an array.

return: {[T]} Value returned as entry in array.
param: {T} value Value to return.

isObjectLike(value)   X-Ref
Returns true if the value passed is object-like, or false otherwise. A value
is object-like if it can support property assignment, e.g. object or array.

return: {boolean} Whether value is object-like.
param: {*} value Value to test.

createCache()   X-Ref
Creates and returns a new cache object.

return: {Cache} Cache object.

isShallowEqual(a, b, fromIndex)   X-Ref
Returns true if entries within the two arrays are strictly equal by
reference from a starting index.

return: {boolean} Whether arrays are shallowly equal.
param: {*[]} a First array.
param: {*[]} b Second array.
param: {number} fromIndex Index from which to start comparison.

rememo(selector, getDependants)   X-Ref
Returns a memoized selector function. The getDependants function argument is
called before the memoized selector and is expected to return an immutable
reference or array of references on which the selector depends for computing
its own return value. The memoize cache is preserved only as long as those
dependant references remain the same. If getDependants returns a different
reference(s), the cache is cleared and the selector value regenerated.

param: {S} selector Selector function.
param: {GetDependants=} getDependants Dependant getter returning an array of

getCache(dependants)   X-Ref
Returns the cache for a given dependants array. When possible, a WeakMap
will be used to create a unique cache for each set of dependants. This
is feasible due to the nature of WeakMap in allowing garbage collection
to occur on entries where the key object is no longer referenced. Since
WeakMap requires the key to be an object, this is only possible when the
dependant is object-like. The root cache is created as a hierarchy where
each top-level key is the first entry in a dependants set, the value a
WeakMap where each key is the next dependant, and so on. This continues
so long as the dependants are object-like. If no dependants are object-
like, then the cache is shared across all invocations.

return: {Cache} Cache object.
param: {*[]} dependants Selector dependants.

clear()   X-Ref
Resets root memoization cache.


callSelector()   X-Ref
The augmented selector call, considering first whether dependants have
changed before passing it to underlying memoize function.

return: {*} Selector result.
param: {*}    source    Source object for derivation.
param: {...*} extraArgs Additional arguments to pass to selector.

selectors_isOpen(state)   X-Ref
Returns whether the command palette is open.

return: {boolean} Returns whether the command palette is open.
param: {Object} state State tree.

getContext(state)   X-Ref
Returns whether the active context.

return: {string} Context.
param: {Object} state State tree.

setContext(context)   X-Ref
Sets the active context.

return: {Object} action.
param: {string} context Context.

CommandMenuLoader({name,search,hook,setLoader,close})   X-Ref
Internal dependencies


CommandMenuLoaderWrapper({hook,search,setLoader,close})   X-Ref
No description

CommandMenuGroup({isContextual,search,setLoader,close})   X-Ref
No description

CommandInput({isOpen,search,setSearch})   X-Ref
No description

CommandMenu()   X-Ref


useCommandContext(context)   X-Ref
Sets the active context of the command palette

param: {string} context Context to set.

useCommand(command)   X-Ref
Attach a command to the command palette. Used for static commands.

param: {import('../store/actions').WPCommandConfig} command command config.

useCommandLoader(loader)   X-Ref
Attach a command loader to the command palette. Used for dynamic commands.

param: {import('../store/actions').WPCommandLoaderConfig} loader command loader config.



Generated : Sat Apr 27 08:20:02 2024 Cross-referenced by PHPXref