[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 1328 lines (47 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
isEditingPattern(state = {}, action) X-Ref |
WordPress dependencies |
cloneBlocksAndRemoveBindings(blocks) X-Ref |
No description |
setEditingPattern(clientId, isEditing) X-Ref |
Returns an action descriptor for SET_EDITING_PATTERN action. return: {Object} Action descriptor. param: {string} clientId The clientID of the pattern to target. param: {boolean} isEditing Whether the block should be in editing state. |
selectors_isEditingPattern(state, clientId) X-Ref |
Returns true if pattern is in the editing state. return: {boolean} Whether the pattern is in the editing state. param: {Object} state Global application state. param: {number} clientId the clientID of the block. |
CategorySelector({categoryTerms,onChange,categoryMap}) X-Ref |
No description |
handleChange(termNames) X-Ref |
No description |
useAddPatternCategory() X-Ref |
Helper hook that creates a Map with the core and user patterns categories and removes any duplicates. It's used when we need to create new user categories when creating or importing patterns. This hook also provides a function to find or create a pattern category. return: {Object} The merged categories map and the callback function to find or create a category. |
CreatePatternModal({className = 'patterns-menu-items__convert-modal',modalTitle = (0,external_wp_i18n_namespaceObject.__) X-Ref |
No description |
CreatePatternModalContents({confirmLabel = (0,external_wp_i18n_namespaceObject.__) X-Ref |
No description |
getTermLabels(pattern, categories) X-Ref |
Internal dependencies |
useDuplicatePatternProps({pattern,onSuccess}) X-Ref |
No description |
DuplicatePatternModal({pattern,onClose,onSuccess}) X-Ref |
No description |
RenamePatternModal({onClose,onError,onSuccess,pattern,...props}) X-Ref |
No description |
PatternConvertButton({clientIds,rootClientId,closeBlockSettingsMenu}) X-Ref |
Menu control to convert block(s) to a pattern block. return: {import('react').ComponentType} The menu control or null. param: {Object} props Component props. param: {string[]} props.clientIds Client ids of selected blocks. param: {string} props.rootClientId ID of the currently selected top-level block. param: {()=>void} props.closeBlockSettingsMenu Callback to close the block settings menu dropdown. |
PatternsManageButton({clientId}) X-Ref |
Internal dependencies |
PatternsMenuItems({rootClientId}) X-Ref |
Internal dependencies |
RenamePatternCategoryModal({category,existingCategories,onClose,onError,onSuccess,...props}) X-Ref |
Internal dependencies |
removeBindings(bindings, syncedAttributes) X-Ref |
Internal dependencies |
addBindings(bindings, syncedAttributes) X-Ref |
No description |
useSetPatternBindings({name,attributes,setAttributes}, currentPostType) X-Ref |
No description |
recursivelyFindBlockWithName(blocks, name) X-Ref |
No description |
ResetOverridesControl(props) X-Ref |
No description |
Generated : Sat Apr 27 08:20:02 2024 | Cross-referenced by PHPXref |