| [ Index ] | PHP Cross Reference of WordPress Trunk (Updated Daily) | 
[Source view] [Print] [Project Stats]
Copyright 2012-2017 Craig Campbell Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
| Version: | 1.6.5 | 
| File Size: | 4594 lines (146 kb) | 
| Included or required: | 0 times | 
| Referenced: | 0 times | 
| Includes or requires: | 0 files | 
Listener:: (1 method):
  withGlobalEvents()
Wrapper:: (54 methods):
  createId()
  useInstanceId()
  withState()
  useRefEffect()
  useConstrainedTabbing()
  onKeyDown()
  useCopyOnClick()
  useUpdatedRef()
  useCopyToClipboard()
  useFocusOnMount()
  useFocusReturn()
  isFocusNormalizedButton()
  useFocusOutside()
  assignRef()
  useMergeRefs()
  useDialog()
  useDisabled()
  useEvent()
  useDragging()
  useKeyboardShortcut()
  getMediaQueryList()
  useMediaQuery()
  usePrevious()
  mergeHistoryChanges()
  createUndoManager()
  undoRedoReducer()
  initReducer()
  useStateWithHistory()
  useResizeObserver()
  ResizeElement()
  sizeEquals()
  useLegacyResizeObserver()
  use_resize_observer_useResizeObserver()
  getFirstItemsPresentInState()
  useAsyncList()
  useWarnOnChange()
  areInputsEqual()
  useMemoOne()
  useCallbackOne()
  useDebounce()
  useDebouncedInput()
  useThrottle()
  useDropZone()
  isElementInZone()
  maybeDragStart()
  onDragEnter()
  onDragOver()
  onDragLeave()
  onDrop()
  maybeDragEnd()
  useFocusableIframe()
  checkFocus()
  useFixedWindowList()
  useObservableValue()
| withGlobalEvents(eventTypesToHandlers) X-Ref | 
| No description | 
| createId(object) X-Ref | 
| No description | 
| useInstanceId(object, prefix, preferredId) X-Ref | 
| No description | 
| withState(initialState = {}) X-Ref | 
| No description | 
| useRefEffect(callback, dependencies) X-Ref | 
| No description | 
| useConstrainedTabbing() X-Ref | 
| No description | 
| onKeyDown(event) X-Ref | 
| No description | 
| useCopyOnClick(ref, text, timeout = 4e3) X-Ref | 
| No description | 
| useUpdatedRef(value) X-Ref | 
| No description | 
| useCopyToClipboard(text, onSuccess) X-Ref | 
| No description | 
| useFocusOnMount(focusOnMount = "firstElement") X-Ref | 
| No description | 
| useFocusReturn(onFocusReturn) X-Ref | 
| No description | 
| isFocusNormalizedButton(eventTarget) X-Ref | 
| No description | 
| useFocusOutside(onFocusOutside) X-Ref | 
| No description | 
| assignRef(ref, value) X-Ref | 
| No description | 
| useMergeRefs(refs) X-Ref | 
| No description | 
| useDialog(options) X-Ref | 
| No description | 
| useDisabled({isDisabled: isDisabledProp = false} = {}) X-Ref | 
| No description | 
| useEvent(callback) X-Ref | 
| No description | 
| useDragging({ onDragStart, onDragMove, onDragEnd }) X-Ref | 
| No description | 
| useKeyboardShortcut(shortcuts, callback, {bindGlobal = false,eventName = "keydown",isDisabled = false,target} = {}) X-Ref | 
| No description | 
| getMediaQueryList(query) X-Ref | 
| No description | 
| useMediaQuery(query) X-Ref | 
| No description | 
| usePrevious(value) X-Ref | 
| No description | 
| mergeHistoryChanges(changes1, changes2) X-Ref | 
| No description | 
| createUndoManager() X-Ref | 
| No description | 
| undoRedoReducer(state, action) X-Ref | 
| No description | 
| initReducer(value) X-Ref | 
| No description | 
| useStateWithHistory(initialValue) X-Ref | 
| No description | 
| useResizeObserver(callback, resizeObserverOptions = {}) X-Ref | 
| No description | 
| ResizeElement({ onResize }) X-Ref | 
| No description | 
| sizeEquals(a, b) X-Ref | 
| No description | 
| useLegacyResizeObserver() X-Ref | 
| No description | 
| use_resize_observer_useResizeObserver(callback, options = {}) X-Ref | 
| No description | 
| getFirstItemsPresentInState(list, state) X-Ref | 
| No description | 
| useAsyncList(list, config = { step: 1 }) X-Ref | 
| No description | 
| useWarnOnChange(object, prefix = "Change detection") X-Ref | 
| No description | 
| areInputsEqual(newInputs, lastInputs) X-Ref | 
| No description | 
| useMemoOne(getResult, inputs) X-Ref | 
| No description | 
| useCallbackOne(callback, inputs) X-Ref | 
| No description | 
| useDebounce(fn, wait, options) X-Ref | 
| No description | 
| useDebouncedInput(defaultValue = "") X-Ref | 
| No description | 
| useThrottle(fn, wait, options) X-Ref | 
| No description | 
| useDropZone({dropZoneElement,isDisabled,onDrop: _onDrop,onDragStart: _onDragStart,onDragEnter: _onDragEnter,onDragLeave: _onDragLeave,onDragEnd: _onDragEnd,onDragOver: _onDragOver}) X-Ref | 
| No description | 
| isElementInZone(targetToCheck) X-Ref | 
| No description | 
| maybeDragStart(event) X-Ref | 
| No description | 
| onDragEnter(event) X-Ref | 
| No description | 
| onDragOver(event) X-Ref | 
| No description | 
| onDragLeave(event) X-Ref | 
| No description | 
| onDrop(event) X-Ref | 
| No description | 
| maybeDragEnd(event) X-Ref | 
| No description | 
| useFocusableIframe() X-Ref | 
| No description | 
| checkFocus() X-Ref | 
| No description | 
| useFixedWindowList(elementRef, itemHeight, totalItems, options) X-Ref | 
| No description | 
| useObservableValue(map, name) X-Ref | 
| No description | 
| _addEvent(object, type, callback) X-Ref | 
| cross browser add event method param: {Element|HTMLDocument} object param: {string} type param: {Function} callback returns: void | 
| _characterFromEvent(e) X-Ref | 
| takes the event and returns the key character param: {Event} e return: {string} | 
| _modifiersMatch(modifiers1, modifiers2) X-Ref | 
| checks if two arrays are equal param: {Array} modifiers1 param: {Array} modifiers2 returns: {boolean} | 
| _eventModifiers(e) X-Ref | 
| takes a key event and figures out what the modifiers are param: {Event} e returns: {Array} | 
| _preventDefault(e) X-Ref | 
| prevents default for this event param: {Event} e returns: void | 
| _stopPropagation(e) X-Ref | 
| stops propogation for this event param: {Event} e returns: void | 
| _isModifier(key) X-Ref | 
| determines if the keycode specified is a modifier key or not param: {string} key returns: {boolean} | 
| _getReverseMap() X-Ref | 
| reverses the map lookup so that we can look for specific keys to see what can and can't use keypress return: {Object} | 
| _pickBestAction(key, modifiers, action) X-Ref | 
| picks the best action based on the key combination param: {string} key - character for key param: {Array} modifiers param: {string=} action passed in | 
| _keysFromString(combination) X-Ref | 
| Converts from a string key combination to an array param: {string} combination like "command+shift+l" return: {Array} | 
| _getKeyInfo(combination, action) X-Ref | 
| Gets info for a specific key combination param: {string} combination key combination ("command+s" or "a" or "*") param: {string=} action returns: {Object} | 
| _belongsTo(element, ancestor) X-Ref | 
| No description | 
| Mousetrap(targetElement) X-Ref | 
| No description | 
| _resetSequences(doNotReset) X-Ref | 
| resets all sequence counters except for the ones passed in param: {Object} doNotReset returns: void | 
| _getMatches(character, modifiers, e, sequenceName, combination, level) X-Ref | 
| finds all callbacks that match based on the keycode, modifiers, and action param: {string} character param: {Array} modifiers param: {Event|Object} e param: {string=} sequenceName - name of the sequence we are looking for param: {string=} combination param: {number=} level returns: {Array} | 
| _fireCallback(callback, e, combo, sequence) X-Ref | 
| actually calls the callback function if your callback function returns false this will use the jquery convention - prevent default and stop propogation on the event param: {Function} callback param: {Event} e returns: void | 
| _handleKeyEvent(e) X-Ref | 
| handles a keydown event param: {Event} e returns: void | 
| _resetSequenceTimer() X-Ref | 
| called to set a 1 second timeout on the specified sequence this is so after each key press in the sequence you have 1 second to press the next key before you have to start over returns: void | 
| _bindSequence(combo, keys, callback, action) X-Ref | 
| binds a key sequence to an event param: {string} combo - combo specified in bind call param: {Array} keys param: {Function} callback param: {string=} action returns: void | 
| _increaseSequence(nextAction) X-Ref | 
| callback to increase the sequence level for this sequence and reset all other sequences that were active param: {string} nextAction returns: {Function} | 
| _callbackAndReset(e) X-Ref | 
| wraps the specified callback inside of another function in order to reset all sequence counters as soon as this sequence is done param: {Event} e returns: void | 
| _bindSingle(combination, callback, action, sequenceName, level) X-Ref | 
| binds a single keyboard combination param: {string} combination param: {Function} callback param: {string=} action param: {string=} sequenceName - name of sequence if part of sequence param: {number=} level - what part of the sequence the command is returns: void | 
| command(type) X-Ref | 
| Executes a given operation type. param: {String} type return: {Boolean} | 
| createFakeElement(value) X-Ref | 
| Creates a fake textarea element with a value. param: {String} value return: {HTMLElement} | 
| _typeof(obj) X-Ref | 
| No description | 
| clipboard_typeof(obj) X-Ref | 
| No description | 
| _classCallCheck(instance, Constructor) X-Ref | 
| No description | 
| _defineProperties(target, props) X-Ref | 
| No description | 
| _createClass(Constructor, protoProps, staticProps) X-Ref | 
| No description | 
| _inherits(subClass, superClass) X-Ref | 
| No description | 
| _setPrototypeOf(o, p) X-Ref | 
| No description | 
| _createSuper(Derived) X-Ref | 
| No description | 
| _possibleConstructorReturn(self, call) X-Ref | 
| No description | 
| _assertThisInitialized(self) X-Ref | 
| No description | 
| _isNativeReflectConstruct() X-Ref | 
| No description | 
| _getPrototypeOf(o) X-Ref | 
| No description | 
| getAttributeValue(suffix, element) X-Ref | 
| Helper function to retrieve attribute value. param: {String} suffix param: {Element} element | 
| Clipboard(trigger, options) X-Ref | 
| param: {String|HTMLElement|HTMLCollection|NodeList} trigger param: {Object} options | 
| closest(element, selector) X-Ref | 
| Finds the closest parent that matches a selector. param: {Element} element param: {String} selector return: {Function} | 
| _delegate(element, selector, type, callback, useCapture) X-Ref | 
| Delegates event to a selector. param: {Element} element param: {String} selector param: {String} type param: {Function} callback param: {Boolean} useCapture return: {Object} | 
| delegate(elements, selector, type, callback, useCapture) X-Ref | 
| Delegates event to a selector. param: {Element|String|Array} [elements] param: {String} selector param: {String} type param: {Function} callback param: {Boolean} useCapture return: {Object} | 
| listener(element, selector, type, callback) X-Ref | 
| Finds closest match and invokes callback. param: {Element} element param: {String} selector param: {String} type param: {Function} callback return: {Function} | 
| listen(target, type, callback) X-Ref | 
| Validates all params and calls the right listener function based on its target type. param: {String|HTMLElement|HTMLCollection|NodeList} target param: {String} type param: {Function} callback return: {Object} | 
| listenNode(node, type, callback) X-Ref | 
| Adds an event listener to a HTML element and returns a remove listener function. param: {HTMLElement} node param: {String} type param: {Function} callback return: {Object} | 
| listenNodeList(nodeList, type, callback) X-Ref | 
| Add an event listener to a list of HTML elements and returns a remove listener function. param: {NodeList|HTMLCollection} nodeList param: {String} type param: {Function} callback return: {Object} | 
| listenSelector(selector, type, callback) X-Ref | 
| Add an event listener to a selector and returns a remove listener function. param: {String} selector param: {String} type param: {Function} callback return: {Object} | 
| select(element) X-Ref | 
| No description | 
| E() X-Ref | 
| No description | 
| listener() X-Ref | 
| No description | 
| __nested_webpack_require_24495__(moduleId) X-Ref | 
| No description | 
| __webpack_require__(moduleId) 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 | 
| __rewriteRelativeImportExtension(path, preserveJsx) 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. | 
| pascalCaseTransform(input, index) X-Ref | 
| No description | 
| pascalCaseTransformMerge(input) X-Ref | 
| No description | 
| pascalCase(input, options) X-Ref | 
| No description | 
| createHigherOrderComponent(mapComponent, modifierName) X-Ref | 
| No description | 
| invokeFunc(time) X-Ref | 
| No description | 
| startTimer(pendingFunc, waitTime) X-Ref | 
| No description | 
| cancelTimer() X-Ref | 
| No description | 
| leadingEdge(time) X-Ref | 
| No description | 
| getTimeSinceLastCall(time) X-Ref | 
| No description | 
| remainingWait(time) X-Ref | 
| No description | 
| shouldInvoke(time) X-Ref | 
| No description | 
| timerExpired() X-Ref | 
| No description | 
| clearTimer() X-Ref | 
| No description | 
| trailingEdge(time) X-Ref | 
| No description | 
| cancel() X-Ref | 
| No description | 
| flush() X-Ref | 
| No description | 
| pending() X-Ref | 
| No description | 
| debounced(...args) X-Ref | 
| No description | 
| observableMap() X-Ref | 
| No description | 
| callListeners(name) X-Ref | 
| No description | 
| ifCondition(predicate) X-Ref | 
| No description | 
| Generated : Thu Oct 30 08:20:06 2025 | Cross-referenced by PHPXref |