[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/js/dist/ -> customize-widgets.js (summary)

(no description)

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

Defines 2 classes

ErrorBoundary:: (47 methods):
  _extends()
  BlockInspectorButton()
  blockInserterPanel()
  isInserterOpened()
  __experimentalGetInsertionPoint()
  setIsInserterOpened()
  Inserter()
  MoreMenuDropdown()
  toggleFeature()
  setFeatureValue()
  setFeatureDefaults()
  KeyCombination()
  Shortcut()
  DynamicShortcut()
  KeyboardShortcutHelpModal()
  MoreMenu()
  Header()
  useInserter()
  settingIdToWidgetId()
  blockToWidget()
  widgetToBlock()
  widgetsToBlocks()
  useSidebarBlockEditor()
  FocusControl()
  handleFocus()
  handleReady()
  useBlocksFocusControl()
  SidebarEditorProvider()
  WelcomeGuide()
  KeyboardShortcuts()
  KeyboardShortcutsRegister()
  BlockAppender()
  SidebarBlockEditor()
  SidebarControls()
  useSidebarControls()
  useActiveSidebarControl()
  useClearSelectedBlock()
  handleClearSelectedBlock()
  handleMouseDown()
  handleBlur()
  CustomizeWidgets()
  getInspectorSection()
  getSidebarSection()
  parseWidgetId()
  widgetIdToSettingId()
  debounce()
  debounced()

SidebarAdapter:: (4 methods):
  getInserterOuterSection()
  getSidebarControl()
  moveToSidebar()
  initialize()

Defines 4 functions

  classNames()
  __webpack_require__()
  CopyButton()

Class: ErrorBoundary  - X-Ref

_extends()   X-Ref
No description

BlockInspectorButton(_ref)   X-Ref
No description

blockInserterPanel()   X-Ref
Reducer tracking whether the inserter is open.

param: {boolean|Object} state
param: {Object}         action

isInserterOpened(state)   X-Ref
Returns true if the inserter is opened.

param: {Object} state Global application state.
return: {boolean} Whether the inserter is opened.

__experimentalGetInsertionPoint(state)   X-Ref
Get the insertion point for the inserter.

param: {Object} state Global application state.
return: {Object} The root client ID and index to insert at.

setIsInserterOpened(value)   X-Ref
Returns an action object used to open/close the inserter.

param: {boolean|Object} value                Whether the inserter should be
param: {string}         value.rootClientId   The root client ID to insert at.
param: {number}         value.insertionIndex The index to insert at.
return: {Object} Action object.

Inserter(_ref)   X-Ref
No description

MoreMenuDropdown(_ref)   X-Ref
No description

toggleFeature(scope, featureName)   X-Ref
Returns an action object used in signalling that a feature should be toggled.

param: {string} scope       The feature scope (e.g. core/edit-post).
param: {string} featureName The feature name.

setFeatureValue(scope, featureName, value)   X-Ref
Returns an action object used in signalling that a feature should be set to
a true or false value

param: {string}  scope       The feature scope (e.g. core/edit-post).
param: {string}  featureName The feature name.
param: {boolean} value       The value to set.
return: {Object} Action object.

setFeatureDefaults(scope, defaults)   X-Ref
Returns an action object used in signalling that defaults should be set for features.

param: {string}                  scope    The feature scope (e.g. core/edit-post).
param: {Object<string, boolean>} defaults A key/value map of feature names to values.
return: {Object} Action object.

KeyCombination(_ref)   X-Ref
No description

Shortcut(_ref2)   X-Ref
No description

DynamicShortcut(_ref)   X-Ref
No description

KeyboardShortcutHelpModal(_ref4)   X-Ref
No description

MoreMenu()   X-Ref
Internal dependencies


Header(_ref)   X-Ref
No description

useInserter(inserter)   X-Ref
Internal dependencies


settingIdToWidgetId(settingId)   X-Ref
Convert settingId to widgetId.

param: {string} settingId The setting id.
return: {string} The widget id.

blockToWidget(block)   X-Ref
Transform a block to a customizable widget.

param: {WPBlock} block          The block to be transformed from.
param: {Object}  existingWidget The widget to be extended from.
return: {Object} The transformed widget.

widgetToBlock(_ref)   X-Ref
Transform a widget to a block.

param: {Object} widget          The widget to be transformed from.
param: {string} widget.id       The widget id.
param: {string} widget.idBase   The id base of the widget.
param: {number} widget.number   The number/index of the widget.
param: {Object} widget.instance The instance of the widget.
return: {WPBlock} The transformed block.

widgetsToBlocks(widgets)   X-Ref
No description

useSidebarBlockEditor(sidebar)   X-Ref
No description

FocusControl(_ref)   X-Ref
No description

handleFocus(settingId)   X-Ref
No description

handleReady()   X-Ref
No description

useBlocksFocusControl(blocks)   X-Ref
Internal dependencies


SidebarEditorProvider(_ref)   X-Ref
No description

WelcomeGuide(_ref)   X-Ref
No description

KeyboardShortcuts(_ref)   X-Ref
No description

KeyboardShortcutsRegister()   X-Ref
No description

BlockAppender(props)   X-Ref
No description

SidebarBlockEditor(_ref)   X-Ref
No description

SidebarControls(_ref)   X-Ref
WordPress dependencies


useSidebarControls()   X-Ref
No description

useActiveSidebarControl()   X-Ref
No description

useClearSelectedBlock(sidebarControl, popoverRef)   X-Ref
We can't just use <BlockSelectionClearer> because the customizer has
many root nodes rather than just one in the post editor.
We need to listen to the focus events in all those roots, and also in
the preview iframe.
This hook will clear the selected block when focusing outside the editor,
with a few exceptions:
1. Focusing on popovers.
2. Focusing on the inspector.
3. Focusing on any modals/dialogs.
These cases are normally triggered by user interactions from the editor,
not by explicitly focusing outside the editor, hence no need for clearing.

param: {Object} sidebarControl The sidebar control instance.
param: {Object} popoverRef     The ref object of the popover node container.

handleClearSelectedBlock(element)   X-Ref
No description

handleMouseDown(event)   X-Ref
No description

handleBlur()   X-Ref
No description

CustomizeWidgets(_ref)   X-Ref
No description

getInspectorSection()   X-Ref
No description

getSidebarSection()   X-Ref
No description

parseWidgetId(widgetId)   X-Ref
No description

widgetIdToSettingId(widgetId)   X-Ref
No description

debounce(leading, callback, timeout)   X-Ref
This is a custom debounce function to call different callbacks depending on
whether it's the _leading_ call or not.

param: {Function} leading  The callback that gets called first.
param: {Function} callback The callback that gets called after the first time.
param: {number}   timeout  The debounced time in milliseconds.
return: {Function} The debounced function.

debounced()   X-Ref
No description

Class: SidebarAdapter  - X-Ref

getInserterOuterSection()   X-Ref
Internal dependencies


getSidebarControl()   X-Ref
No description

moveToSidebar(sidebarControlId)   X-Ref
No description

initialize(editorName, blockEditorSettings)   X-Ref
Initializes the widgets block editor in the customizer.

param: {string} editorName          The editor name.
param: {Object} blockEditorSettings Block editor settings.

Functions
Functions that are not part of a class:

classNames()   X-Ref
No description

__webpack_require__(moduleId)   X-Ref
No description

CopyButton(_ref)   X-Ref
No description



Generated: Sat Dec 7 01:00:02 2024 Cross-referenced by PHPXref 0.7.1