Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-inclu.../js/dist
File: block-editor.js
clientIds: [clientId],
[55500] Fix | Delete
hideDragHandle: true,
[55501] Fix | Delete
isBlockMoverUpButtonDisabled: isPrevBlockTemplatePart,
[55502] Fix | Delete
isBlockMoverDownButtonDisabled: isNextBlockTemplatePart
[55503] Fix | Delete
})
[55504] Fix | Delete
}), canMove && canRemove && editorMode === 'zoom-out' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Shuffle, {
[55505] Fix | Delete
clientId: clientId,
[55506] Fix | Delete
as: external_wp_components_namespaceObject.Button
[55507] Fix | Delete
}), canRemove && editorMode === 'zoom-out' && !isBlockTemplatePart && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
[55508] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ToolbarButton, {
[55509] Fix | Delete
icon: library_trash,
[55510] Fix | Delete
label: "Delete",
[55511] Fix | Delete
onClick: () => {
[55512] Fix | Delete
removeBlock(clientId);
[55513] Fix | Delete
}
[55514] Fix | Delete
})
[55515] Fix | Delete
}), editorMode === 'navigation' && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.FlexItem, {
[55516] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
[55517] Fix | Delete
ref: ref,
[55518] Fix | Delete
onClick: editorMode === 'navigation' ? () => setNavigationMode(false) : undefined,
[55519] Fix | Delete
onKeyDown: onKeyDown,
[55520] Fix | Delete
label: label,
[55521] Fix | Delete
showTooltip: false,
[55522] Fix | Delete
className: "block-selection-button_select-button",
[55523] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockTitle, {
[55524] Fix | Delete
clientId: clientId,
[55525] Fix | Delete
maximumLength: 35
[55526] Fix | Delete
})
[55527] Fix | Delete
})
[55528] Fix | Delete
})]
[55529] Fix | Delete
})
[55530] Fix | Delete
});
[55531] Fix | Delete
}
[55532] Fix | Delete
/* harmony default export */ const block_selection_button = (BlockSelectionButton);
[55533] Fix | Delete
[55534] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-tools/block-toolbar-breadcrumb.js
[55535] Fix | Delete
/**
[55536] Fix | Delete
* External dependencies
[55537] Fix | Delete
*/
[55538] Fix | Delete
[55539] Fix | Delete
[55540] Fix | Delete
/**
[55541] Fix | Delete
* Internal dependencies
[55542] Fix | Delete
*/
[55543] Fix | Delete
[55544] Fix | Delete
[55545] Fix | Delete
[55546] Fix | Delete
[55547] Fix | Delete
[55548] Fix | Delete
function BlockToolbarBreadcrumb({
[55549] Fix | Delete
clientId,
[55550] Fix | Delete
__unstableContentRef
[55551] Fix | Delete
}) {
[55552] Fix | Delete
const {
[55553] Fix | Delete
capturingClientId,
[55554] Fix | Delete
isInsertionPointVisible,
[55555] Fix | Delete
lastClientId,
[55556] Fix | Delete
rootClientId
[55557] Fix | Delete
} = useSelectedBlockToolProps(clientId);
[55558] Fix | Delete
const popoverProps = useBlockToolbarPopoverProps({
[55559] Fix | Delete
contentElement: __unstableContentRef?.current,
[55560] Fix | Delete
clientId
[55561] Fix | Delete
});
[55562] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PrivateBlockPopover, {
[55563] Fix | Delete
clientId: capturingClientId || clientId,
[55564] Fix | Delete
bottomClientId: lastClientId,
[55565] Fix | Delete
className: dist_clsx('block-editor-block-list__block-popover', {
[55566] Fix | Delete
'is-insertion-point-visible': isInsertionPointVisible
[55567] Fix | Delete
}),
[55568] Fix | Delete
resize: false,
[55569] Fix | Delete
...popoverProps,
[55570] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(block_selection_button, {
[55571] Fix | Delete
clientId: clientId,
[55572] Fix | Delete
rootClientId: rootClientId
[55573] Fix | Delete
})
[55574] Fix | Delete
});
[55575] Fix | Delete
}
[55576] Fix | Delete
[55577] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-tools/zoom-out-mode-inserters.js
[55578] Fix | Delete
/**
[55579] Fix | Delete
* WordPress dependencies
[55580] Fix | Delete
*/
[55581] Fix | Delete
[55582] Fix | Delete
[55583] Fix | Delete
[55584] Fix | Delete
[55585] Fix | Delete
[55586] Fix | Delete
[55587] Fix | Delete
/**
[55588] Fix | Delete
* Internal dependencies
[55589] Fix | Delete
*/
[55590] Fix | Delete
[55591] Fix | Delete
[55592] Fix | Delete
[55593] Fix | Delete
[55594] Fix | Delete
[55595] Fix | Delete
function ZoomOutModeInserters() {
[55596] Fix | Delete
const [isReady, setIsReady] = (0,external_wp_element_namespaceObject.useState)(false);
[55597] Fix | Delete
const {
[55598] Fix | Delete
blockOrder,
[55599] Fix | Delete
sectionRootClientId,
[55600] Fix | Delete
insertionPoint,
[55601] Fix | Delete
setInserterIsOpened,
[55602] Fix | Delete
selectedSection
[55603] Fix | Delete
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
[55604] Fix | Delete
const {
[55605] Fix | Delete
getSettings,
[55606] Fix | Delete
getBlockOrder
[55607] Fix | Delete
} = select(store);
[55608] Fix | Delete
const {
[55609] Fix | Delete
sectionRootClientId: root
[55610] Fix | Delete
} = unlock(getSettings());
[55611] Fix | Delete
// To do: move ZoomOutModeInserters to core/editor.
[55612] Fix | Delete
// Or we perhaps we should move the insertion point state to the
[55613] Fix | Delete
// block-editor store. I'm not sure what it was ever moved to the editor
[55614] Fix | Delete
// store, because all the inserter components all live in the
[55615] Fix | Delete
// block-editor package.
[55616] Fix | Delete
// eslint-disable-next-line @wordpress/data-no-store-string-literals
[55617] Fix | Delete
const editor = select('core/editor');
[55618] Fix | Delete
return {
[55619] Fix | Delete
selectedSection: editor.getSelectedBlock(),
[55620] Fix | Delete
blockOrder: getBlockOrder(root),
[55621] Fix | Delete
insertionPoint: unlock(editor).getInsertionPoint(),
[55622] Fix | Delete
sectionRootClientId: root,
[55623] Fix | Delete
setInserterIsOpened: getSettings().__experimentalSetIsInserterOpened
[55624] Fix | Delete
};
[55625] Fix | Delete
}, []);
[55626] Fix | Delete
const isMounted = (0,external_wp_element_namespaceObject.useRef)(false);
[55627] Fix | Delete
(0,external_wp_element_namespaceObject.useEffect)(() => {
[55628] Fix | Delete
if (!isMounted.current) {
[55629] Fix | Delete
isMounted.current = true;
[55630] Fix | Delete
return;
[55631] Fix | Delete
}
[55632] Fix | Delete
// reset insertion point when the block order changes
[55633] Fix | Delete
setInserterIsOpened(true);
[55634] Fix | Delete
}, [blockOrder, setInserterIsOpened]);
[55635] Fix | Delete
[55636] Fix | Delete
// Defer the initial rendering to avoid the jumps due to the animation.
[55637] Fix | Delete
(0,external_wp_element_namespaceObject.useEffect)(() => {
[55638] Fix | Delete
const timeout = setTimeout(() => {
[55639] Fix | Delete
setIsReady(true);
[55640] Fix | Delete
}, 500);
[55641] Fix | Delete
return () => {
[55642] Fix | Delete
clearTimeout(timeout);
[55643] Fix | Delete
};
[55644] Fix | Delete
}, []);
[55645] Fix | Delete
if (!isReady || !selectedSection) {
[55646] Fix | Delete
return null;
[55647] Fix | Delete
}
[55648] Fix | Delete
return [undefined, ...blockOrder].map((clientId, index) => {
[55649] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(inbetween, {
[55650] Fix | Delete
previousClientId: clientId,
[55651] Fix | Delete
nextClientId: blockOrder[index],
[55652] Fix | Delete
children: [insertionPoint.insertionIndex === index && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
[55653] Fix | Delete
style: {
[55654] Fix | Delete
borderRadius: '0',
[55655] Fix | Delete
height: '12px',
[55656] Fix | Delete
opacity: 1,
[55657] Fix | Delete
transform: 'translateY(-50%)',
[55658] Fix | Delete
width: '100%'
[55659] Fix | Delete
},
[55660] Fix | Delete
className: "block-editor-block-list__insertion-point-indicator"
[55661] Fix | Delete
}), insertionPoint.insertionIndex !== index && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
[55662] Fix | Delete
variant: "primary",
[55663] Fix | Delete
icon: library_plus,
[55664] Fix | Delete
size: "compact",
[55665] Fix | Delete
className: "block-editor-button-pattern-inserter__button",
[55666] Fix | Delete
onClick: () => {
[55667] Fix | Delete
setInserterIsOpened({
[55668] Fix | Delete
rootClientId: sectionRootClientId,
[55669] Fix | Delete
insertionIndex: index,
[55670] Fix | Delete
tab: 'patterns',
[55671] Fix | Delete
category: 'all'
[55672] Fix | Delete
});
[55673] Fix | Delete
},
[55674] Fix | Delete
label: (0,external_wp_i18n_namespaceObject._x)('Add pattern', 'Generic label for pattern inserter button')
[55675] Fix | Delete
})]
[55676] Fix | Delete
}, index);
[55677] Fix | Delete
});
[55678] Fix | Delete
}
[55679] Fix | Delete
/* harmony default export */ const zoom_out_mode_inserters = (ZoomOutModeInserters);
[55680] Fix | Delete
[55681] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-tools/use-show-block-tools.js
[55682] Fix | Delete
/**
[55683] Fix | Delete
* WordPress dependencies
[55684] Fix | Delete
*/
[55685] Fix | Delete
[55686] Fix | Delete
[55687] Fix | Delete
[55688] Fix | Delete
/**
[55689] Fix | Delete
* Internal dependencies
[55690] Fix | Delete
*/
[55691] Fix | Delete
[55692] Fix | Delete
[55693] Fix | Delete
/**
[55694] Fix | Delete
* Source of truth for which block tools are showing in the block editor.
[55695] Fix | Delete
*
[55696] Fix | Delete
* @return {Object} Object of which block tools will be shown.
[55697] Fix | Delete
*/
[55698] Fix | Delete
function useShowBlockTools() {
[55699] Fix | Delete
return (0,external_wp_data_namespaceObject.useSelect)(select => {
[55700] Fix | Delete
const {
[55701] Fix | Delete
getSelectedBlockClientId,
[55702] Fix | Delete
getFirstMultiSelectedBlockClientId,
[55703] Fix | Delete
getBlock,
[55704] Fix | Delete
getSettings,
[55705] Fix | Delete
hasMultiSelection,
[55706] Fix | Delete
__unstableGetEditorMode,
[55707] Fix | Delete
isTyping
[55708] Fix | Delete
} = select(store);
[55709] Fix | Delete
const clientId = getSelectedBlockClientId() || getFirstMultiSelectedBlockClientId();
[55710] Fix | Delete
const block = getBlock(clientId) || {
[55711] Fix | Delete
name: '',
[55712] Fix | Delete
attributes: {}
[55713] Fix | Delete
};
[55714] Fix | Delete
const editorMode = __unstableGetEditorMode();
[55715] Fix | Delete
const hasSelectedBlock = clientId && block?.name;
[55716] Fix | Delete
const isEmptyDefaultBlock = (0,external_wp_blocks_namespaceObject.isUnmodifiedDefaultBlock)(block);
[55717] Fix | Delete
const _showEmptyBlockSideInserter = clientId && !isTyping() && editorMode === 'edit' && isEmptyDefaultBlock;
[55718] Fix | Delete
const maybeShowBreadcrumb = hasSelectedBlock && !hasMultiSelection() && (editorMode === 'navigation' || editorMode === 'zoom-out');
[55719] Fix | Delete
return {
[55720] Fix | Delete
showEmptyBlockSideInserter: _showEmptyBlockSideInserter,
[55721] Fix | Delete
showBreadcrumb: !_showEmptyBlockSideInserter && maybeShowBreadcrumb,
[55722] Fix | Delete
showBlockToolbarPopover: !getSettings().hasFixedToolbar && !_showEmptyBlockSideInserter && hasSelectedBlock && !isEmptyDefaultBlock && !maybeShowBreadcrumb
[55723] Fix | Delete
};
[55724] Fix | Delete
}, []);
[55725] Fix | Delete
}
[55726] Fix | Delete
[55727] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-tools/index.js
[55728] Fix | Delete
/**
[55729] Fix | Delete
* WordPress dependencies
[55730] Fix | Delete
*/
[55731] Fix | Delete
[55732] Fix | Delete
[55733] Fix | Delete
[55734] Fix | Delete
[55735] Fix | Delete
[55736] Fix | Delete
[55737] Fix | Delete
[55738] Fix | Delete
[55739] Fix | Delete
[55740] Fix | Delete
/**
[55741] Fix | Delete
* Internal dependencies
[55742] Fix | Delete
*/
[55743] Fix | Delete
[55744] Fix | Delete
[55745] Fix | Delete
[55746] Fix | Delete
[55747] Fix | Delete
[55748] Fix | Delete
[55749] Fix | Delete
[55750] Fix | Delete
[55751] Fix | Delete
[55752] Fix | Delete
[55753] Fix | Delete
[55754] Fix | Delete
function block_tools_selector(select) {
[55755] Fix | Delete
const {
[55756] Fix | Delete
getSelectedBlockClientId,
[55757] Fix | Delete
getFirstMultiSelectedBlockClientId,
[55758] Fix | Delete
getSettings,
[55759] Fix | Delete
__unstableGetEditorMode,
[55760] Fix | Delete
isTyping
[55761] Fix | Delete
} = select(store);
[55762] Fix | Delete
const clientId = getSelectedBlockClientId() || getFirstMultiSelectedBlockClientId();
[55763] Fix | Delete
const editorMode = __unstableGetEditorMode();
[55764] Fix | Delete
return {
[55765] Fix | Delete
clientId,
[55766] Fix | Delete
hasFixedToolbar: getSettings().hasFixedToolbar,
[55767] Fix | Delete
isTyping: isTyping(),
[55768] Fix | Delete
isZoomOutMode: editorMode === 'zoom-out'
[55769] Fix | Delete
};
[55770] Fix | Delete
}
[55771] Fix | Delete
[55772] Fix | Delete
/**
[55773] Fix | Delete
* Renders block tools (the block toolbar, select/navigation mode toolbar, the
[55774] Fix | Delete
* insertion point and a slot for the inline rich text toolbar). Must be wrapped
[55775] Fix | Delete
* around the block content and editor styles wrapper or iframe.
[55776] Fix | Delete
*
[55777] Fix | Delete
* @param {Object} $0 Props.
[55778] Fix | Delete
* @param {Object} $0.children The block content and style container.
[55779] Fix | Delete
* @param {Object} $0.__unstableContentRef Ref holding the content scroll container.
[55780] Fix | Delete
*/
[55781] Fix | Delete
function BlockTools({
[55782] Fix | Delete
children,
[55783] Fix | Delete
__unstableContentRef,
[55784] Fix | Delete
...props
[55785] Fix | Delete
}) {
[55786] Fix | Delete
const {
[55787] Fix | Delete
clientId,
[55788] Fix | Delete
hasFixedToolbar,
[55789] Fix | Delete
isTyping,
[55790] Fix | Delete
isZoomOutMode
[55791] Fix | Delete
} = (0,external_wp_data_namespaceObject.useSelect)(block_tools_selector, []);
[55792] Fix | Delete
const isMatch = (0,external_wp_keyboardShortcuts_namespaceObject.__unstableUseShortcutEventMatch)();
[55793] Fix | Delete
const {
[55794] Fix | Delete
getBlocksByClientId,
[55795] Fix | Delete
getSelectedBlockClientIds,
[55796] Fix | Delete
getBlockRootClientId,
[55797] Fix | Delete
isGroupable
[55798] Fix | Delete
} = (0,external_wp_data_namespaceObject.useSelect)(store);
[55799] Fix | Delete
const {
[55800] Fix | Delete
getGroupingBlockName
[55801] Fix | Delete
} = (0,external_wp_data_namespaceObject.useSelect)(external_wp_blocks_namespaceObject.store);
[55802] Fix | Delete
const {
[55803] Fix | Delete
showEmptyBlockSideInserter,
[55804] Fix | Delete
showBreadcrumb,
[55805] Fix | Delete
showBlockToolbarPopover
[55806] Fix | Delete
} = useShowBlockTools();
[55807] Fix | Delete
const {
[55808] Fix | Delete
duplicateBlocks,
[55809] Fix | Delete
removeBlocks,
[55810] Fix | Delete
replaceBlocks,
[55811] Fix | Delete
insertAfterBlock,
[55812] Fix | Delete
insertBeforeBlock,
[55813] Fix | Delete
selectBlock,
[55814] Fix | Delete
moveBlocksUp,
[55815] Fix | Delete
moveBlocksDown,
[55816] Fix | Delete
expandBlock
[55817] Fix | Delete
} = unlock((0,external_wp_data_namespaceObject.useDispatch)(store));
[55818] Fix | Delete
function onKeyDown(event) {
[55819] Fix | Delete
if (event.defaultPrevented) {
[55820] Fix | Delete
return;
[55821] Fix | Delete
}
[55822] Fix | Delete
if (isMatch('core/block-editor/move-up', event)) {
[55823] Fix | Delete
const clientIds = getSelectedBlockClientIds();
[55824] Fix | Delete
if (clientIds.length) {
[55825] Fix | Delete
event.preventDefault();
[55826] Fix | Delete
const rootClientId = getBlockRootClientId(clientIds[0]);
[55827] Fix | Delete
moveBlocksUp(clientIds, rootClientId);
[55828] Fix | Delete
}
[55829] Fix | Delete
} else if (isMatch('core/block-editor/move-down', event)) {
[55830] Fix | Delete
const clientIds = getSelectedBlockClientIds();
[55831] Fix | Delete
if (clientIds.length) {
[55832] Fix | Delete
event.preventDefault();
[55833] Fix | Delete
const rootClientId = getBlockRootClientId(clientIds[0]);
[55834] Fix | Delete
moveBlocksDown(clientIds, rootClientId);
[55835] Fix | Delete
}
[55836] Fix | Delete
} else if (isMatch('core/block-editor/duplicate', event)) {
[55837] Fix | Delete
const clientIds = getSelectedBlockClientIds();
[55838] Fix | Delete
if (clientIds.length) {
[55839] Fix | Delete
event.preventDefault();
[55840] Fix | Delete
duplicateBlocks(clientIds);
[55841] Fix | Delete
}
[55842] Fix | Delete
} else if (isMatch('core/block-editor/remove', event)) {
[55843] Fix | Delete
const clientIds = getSelectedBlockClientIds();
[55844] Fix | Delete
if (clientIds.length) {
[55845] Fix | Delete
event.preventDefault();
[55846] Fix | Delete
removeBlocks(clientIds);
[55847] Fix | Delete
}
[55848] Fix | Delete
} else if (isMatch('core/block-editor/insert-after', event)) {
[55849] Fix | Delete
const clientIds = getSelectedBlockClientIds();
[55850] Fix | Delete
if (clientIds.length) {
[55851] Fix | Delete
event.preventDefault();
[55852] Fix | Delete
insertAfterBlock(clientIds[clientIds.length - 1]);
[55853] Fix | Delete
}
[55854] Fix | Delete
} else if (isMatch('core/block-editor/insert-before', event)) {
[55855] Fix | Delete
const clientIds = getSelectedBlockClientIds();
[55856] Fix | Delete
if (clientIds.length) {
[55857] Fix | Delete
event.preventDefault();
[55858] Fix | Delete
insertBeforeBlock(clientIds[0]);
[55859] Fix | Delete
}
[55860] Fix | Delete
} else if (isMatch('core/block-editor/unselect', event)) {
[55861] Fix | Delete
if (event.target.closest('[role=toolbar]')) {
[55862] Fix | Delete
// This shouldn't be necessary, but we have a combination of a few things all combining to create a situation where:
[55863] Fix | Delete
// - Because the block toolbar uses createPortal to populate the block toolbar fills, we can't rely on the React event bubbling to hit the onKeyDown listener for the block toolbar
[55864] Fix | Delete
// - Since we can't use the React tree, we use the DOM tree which _should_ handle the event bubbling correctly from a `createPortal` element.
[55865] Fix | Delete
// - This bubbles via the React tree, which hits this `unselect` escape keypress before the block toolbar DOM event listener has access to it.
[55866] Fix | Delete
// An alternative would be to remove the addEventListener on the navigableToolbar and use this event to handle it directly right here. That feels hacky too though.
[55867] Fix | Delete
return;
[55868] Fix | Delete
}
[55869] Fix | Delete
const clientIds = getSelectedBlockClientIds();
[55870] Fix | Delete
if (clientIds.length > 1) {
[55871] Fix | Delete
event.preventDefault();
[55872] Fix | Delete
// If there is more than one block selected, select the first
[55873] Fix | Delete
// block so that focus is directed back to the beginning of the selection.
[55874] Fix | Delete
// In effect, to the user this feels like deselecting the multi-selection.
[55875] Fix | Delete
selectBlock(clientIds[0]);
[55876] Fix | Delete
}
[55877] Fix | Delete
} else if (isMatch('core/block-editor/collapse-list-view', event)) {
[55878] Fix | Delete
// If focus is currently within a text field, such as a rich text block or other editable field,
[55879] Fix | Delete
// skip collapsing the list view, and allow the keyboard shortcut to be handled by the text field.
[55880] Fix | Delete
// This condition checks for both the active element and the active element within an iframed editor.
[55881] Fix | Delete
if ((0,external_wp_dom_namespaceObject.isTextField)(event.target) || (0,external_wp_dom_namespaceObject.isTextField)(event.target?.contentWindow?.document?.activeElement)) {
[55882] Fix | Delete
return;
[55883] Fix | Delete
}
[55884] Fix | Delete
event.preventDefault();
[55885] Fix | Delete
expandBlock(clientId);
[55886] Fix | Delete
} else if (isMatch('core/block-editor/group', event)) {
[55887] Fix | Delete
const clientIds = getSelectedBlockClientIds();
[55888] Fix | Delete
if (clientIds.length > 1 && isGroupable(clientIds)) {
[55889] Fix | Delete
event.preventDefault();
[55890] Fix | Delete
const blocks = getBlocksByClientId(clientIds);
[55891] Fix | Delete
const groupingBlockName = getGroupingBlockName();
[55892] Fix | Delete
const newBlocks = (0,external_wp_blocks_namespaceObject.switchToBlockType)(blocks, groupingBlockName);
[55893] Fix | Delete
replaceBlocks(clientIds, newBlocks);
[55894] Fix | Delete
(0,external_wp_a11y_namespaceObject.speak)((0,external_wp_i18n_namespaceObject.__)('Selected blocks are grouped.'));
[55895] Fix | Delete
}
[55896] Fix | Delete
}
[55897] Fix | Delete
}
[55898] Fix | Delete
const blockToolbarRef = use_popover_scroll(__unstableContentRef);
[55899] Fix | Delete
const blockToolbarAfterRef = use_popover_scroll(__unstableContentRef);
[55900] Fix | Delete
return (
[55901] Fix | Delete
/*#__PURE__*/
[55902] Fix | Delete
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
[55903] Fix | Delete
(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
[55904] Fix | Delete
...props,
[55905] Fix | Delete
onKeyDown: onKeyDown,
[55906] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(insertion_point_InsertionPointOpenRef.Provider, {
[55907] Fix | Delete
value: (0,external_wp_element_namespaceObject.useRef)(false),
[55908] Fix | Delete
children: [!isTyping && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InsertionPoint, {
[55909] Fix | Delete
__unstableContentRef: __unstableContentRef
[55910] Fix | Delete
}), showEmptyBlockSideInserter && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(EmptyBlockInserter, {
[55911] Fix | Delete
__unstableContentRef: __unstableContentRef,
[55912] Fix | Delete
clientId: clientId
[55913] Fix | Delete
}), showBlockToolbarPopover && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockToolbarPopover, {
[55914] Fix | Delete
__unstableContentRef: __unstableContentRef,
[55915] Fix | Delete
clientId: clientId,
[55916] Fix | Delete
isTyping: isTyping
[55917] Fix | Delete
}), showBreadcrumb && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(BlockToolbarBreadcrumb, {
[55918] Fix | Delete
__unstableContentRef: __unstableContentRef,
[55919] Fix | Delete
clientId: clientId
[55920] Fix | Delete
}), !isZoomOutMode && !hasFixedToolbar && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Popover.Slot, {
[55921] Fix | Delete
name: "block-toolbar",
[55922] Fix | Delete
ref: blockToolbarRef
[55923] Fix | Delete
}), children, /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Popover.Slot, {
[55924] Fix | Delete
name: "__unstable-block-tools-after",
[55925] Fix | Delete
ref: blockToolbarAfterRef
[55926] Fix | Delete
}), window.__experimentalEnableZoomedOutPatternsTab && isZoomOutMode && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(zoom_out_mode_inserters, {
[55927] Fix | Delete
__unstableContentRef: __unstableContentRef
[55928] Fix | Delete
})]
[55929] Fix | Delete
})
[55930] Fix | Delete
})
[55931] Fix | Delete
);
[55932] Fix | Delete
}
[55933] Fix | Delete
[55934] Fix | Delete
;// CONCATENATED MODULE: external ["wp","commands"]
[55935] Fix | Delete
const external_wp_commands_namespaceObject = window["wp"]["commands"];
[55936] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/move-to.js
[55937] Fix | Delete
/**
[55938] Fix | Delete
* WordPress dependencies
[55939] Fix | Delete
*/
[55940] Fix | Delete
[55941] Fix | Delete
[55942] Fix | Delete
const move_to_moveTo = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
[55943] Fix | Delete
xmlns: "http://www.w3.org/2000/svg",
[55944] Fix | Delete
viewBox: "0 0 24 24",
[55945] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
[55946] Fix | Delete
d: "M19.75 9c0-1.257-.565-2.197-1.39-2.858-.797-.64-1.827-1.017-2.815-1.247-1.802-.42-3.703-.403-4.383-.396L11 4.5V6l.177-.001c.696-.006 2.416-.02 4.028.356.887.207 1.67.518 2.216.957.52.416.829.945.829 1.688 0 .592-.167.966-.407 1.23-.255.281-.656.508-1.236.674-1.19.34-2.82.346-4.607.346h-.077c-1.692 0-3.527 0-4.942.404-.732.209-1.424.545-1.935 1.108-.526.579-.796 1.33-.796 2.238 0 1.257.565 2.197 1.39 2.858.797.64 1.827 1.017 2.815 1.247 1.802.42 3.703.403 4.383.396L13 19.5h.714V22L18 18.5 13.714 15v3H13l-.177.001c-.696.006-2.416.02-4.028-.356-.887-.207-1.67-.518-2.216-.957-.52-.416-.829-.945-.829-1.688 0-.592.167-.966.407-1.23.255-.281.656-.508 1.237-.674 1.189-.34 2.819-.346 4.606-.346h.077c1.692 0 3.527 0 4.941-.404.732-.209 1.425-.545 1.936-1.108.526-.579.796-1.33.796-2.238z"
[55947] Fix | Delete
})
[55948] Fix | Delete
});
[55949] Fix | Delete
/* harmony default export */ const move_to = (move_to_moveTo);
[55950] Fix | Delete
[55951] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/ungroup.js
[55952] Fix | Delete
/**
[55953] Fix | Delete
* WordPress dependencies
[55954] Fix | Delete
*/
[55955] Fix | Delete
[55956] Fix | Delete
[55957] Fix | Delete
const ungroup = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
[55958] Fix | Delete
xmlns: "http://www.w3.org/2000/svg",
[55959] Fix | Delete
viewBox: "0 0 24 24",
[55960] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
[55961] Fix | Delete
d: "M18 4h-7c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 9c0 .3-.2.5-.5.5h-7c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h7c.3 0 .5.2.5.5v7zm-5 5c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5v-7c0-.3.2-.5.5-.5h1V9H6c-1.1 0-2 .9-2 2v7c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2v-1h-1.5v1z"
[55962] Fix | Delete
})
[55963] Fix | Delete
});
[55964] Fix | Delete
/* harmony default export */ const library_ungroup = (ungroup);
[55965] Fix | Delete
[55966] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/use-block-commands/index.js
[55967] Fix | Delete
/**
[55968] Fix | Delete
* WordPress dependencies
[55969] Fix | Delete
*/
[55970] Fix | Delete
[55971] Fix | Delete
[55972] Fix | Delete
[55973] Fix | Delete
[55974] Fix | Delete
[55975] Fix | Delete
[55976] Fix | Delete
/**
[55977] Fix | Delete
* Internal dependencies
[55978] Fix | Delete
*/
[55979] Fix | Delete
[55980] Fix | Delete
[55981] Fix | Delete
[55982] Fix | Delete
const useTransformCommands = () => {
[55983] Fix | Delete
const {
[55984] Fix | Delete
replaceBlocks,
[55985] Fix | Delete
multiSelect
[55986] Fix | Delete
} = (0,external_wp_data_namespaceObject.useDispatch)(store);
[55987] Fix | Delete
const {
[55988] Fix | Delete
blocks,
[55989] Fix | Delete
clientIds,
[55990] Fix | Delete
canRemove,
[55991] Fix | Delete
possibleBlockTransformations,
[55992] Fix | Delete
invalidSelection
[55993] Fix | Delete
} = (0,external_wp_data_namespaceObject.useSelect)(select => {
[55994] Fix | Delete
const {
[55995] Fix | Delete
getBlockRootClientId,
[55996] Fix | Delete
getBlockTransformItems,
[55997] Fix | Delete
getSelectedBlockClientIds,
[55998] Fix | Delete
getBlocksByClientId,
[55999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function