[ Index ]

PHP Cross Reference of WordPress




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

(no description)

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

Defines 2 classes

error_boundary_ErrorBoundary:: (45 methods):

sidebar_adapter_SidebarAdapter:: (6 methods):

Defines 6 functions


Class: error_boundary_ErrorBoundary  - X-Ref

BlockInspectorButton({inspector,closeMenu,...props})   X-Ref
No description

blockInserterPanel(state = false, action)   X-Ref
Reducer tracking whether the inserter is open.

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

__unstableIsFeatureActive(state, feature)   X-Ref
Returns whether the given feature is enabled or not.

This function is unstable, as it is mostly copied from the edit-post
package. Editor features and preferences have a lot of scope for
being generalized and refactored.

param: {Object} state   Global application state.
param: {string} feature Feature slug.
return: {boolean} Is active.

selectors_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.

__unstableToggleFeature(feature)   X-Ref
Returns an action object used to toggle a feature flag.

This function is unstable, as it is mostly copied from the edit-post
package. Editor features and preferences have a lot of scope for
being generalized and refactored.

param: {string} feature Feature name.
return: {Object} Action object.

actions_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({setIsOpened})   X-Ref
No description

FeatureToggle({label,info,messageActivated,messageDeactivated,shortcut,feature})   X-Ref
Internal dependencies

KeyCombination({keyCombination,forceAriaLabel})   X-Ref
No description

Shortcut({description,keyCombination,aliases = [],ariaLabel})   X-Ref
No description

DynamicShortcut({name})   X-Ref
No description

KeyboardShortcutHelpModal({isModalActive,toggleModal})   X-Ref
No description

MoreMenu()   X-Ref
No description

Header({sidebar,inserter,isInserterOpened,setIsInserterOpened,isFixedToolbarActive})   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, existingWidget = null)   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({id,idBase,number,instance})   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({api,sidebarControls,children})   X-Ref
No description

handleFocus(settingId)   X-Ref
No description

handleReady()   X-Ref
No description

useBlocksFocusControl(blocks)   X-Ref
Internal dependencies

SidebarEditorProvider({sidebar,settings,children})   X-Ref
No description

WelcomeGuide({sidebar})   X-Ref
Internal dependencies

KeyboardShortcuts({undo,redo,save})   X-Ref
No description

KeyboardShortcutsRegister()   X-Ref
No description

BlockAppender(props)   X-Ref
No description

SidebarBlockEditor({blockEditorSettings,sidebar,inserter,inspector})   X-Ref
No description

SidebarControls({sidebarControls,activeSidebarControl,children})   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({api,sidebarControls,blockEditorSettings})   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(...args)   X-Ref
No description

Class: sidebar_adapter_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.

classNames()   X-Ref
No description

_extends()   X-Ref
No description

Functions that are not part of a class:

__webpack_require__(moduleId)   X-Ref
No description

getDefault()   X-Ref
No description

getModuleExports()   X-Ref
No description

CopyButton({text,children})   X-Ref
No description

Generated: Sun Oct 17 01:00:03 2021 Cross-referenced by PHPXref 0.7.1