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
defaultView.removeEventListener('resize', onScrollResize, true);
[67500] Fix | Delete
node.removeEventListener('keydown', onKeyDown);
[67501] Fix | Delete
node.removeEventListener('keyup', maintainCaretPosition);
[67502] Fix | Delete
node.removeEventListener('mousedown', addSelectionChangeListener);
[67503] Fix | Delete
node.removeEventListener('touchstart', addSelectionChangeListener);
[67504] Fix | Delete
ownerDocument.removeEventListener('selectionchange', computeCaretRectOnSelectionChange);
[67505] Fix | Delete
defaultView.cancelAnimationFrame(scrollResizeRafId);
[67506] Fix | Delete
defaultView.cancelAnimationFrame(onKeyDownRafId);
[67507] Fix | Delete
};
[67508] Fix | Delete
}, [hasSelectedBlock]);
[67509] Fix | Delete
}
[67510] Fix | Delete
function Typewriter({
[67511] Fix | Delete
children
[67512] Fix | Delete
}) {
[67513] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
[67514] Fix | Delete
ref: useTypewriter(),
[67515] Fix | Delete
className: "block-editor__typewriter",
[67516] Fix | Delete
children: children
[67517] Fix | Delete
});
[67518] Fix | Delete
}
[67519] Fix | Delete
[67520] Fix | Delete
/**
[67521] Fix | Delete
* The exported component. The implementation of Typewriter faced technical
[67522] Fix | Delete
* challenges in Internet Explorer, and is simply skipped, rendering the given
[67523] Fix | Delete
* props children instead.
[67524] Fix | Delete
*
[67525] Fix | Delete
* @type {Component}
[67526] Fix | Delete
*/
[67527] Fix | Delete
const TypewriterOrIEBypass = isIE ? props => props.children : Typewriter;
[67528] Fix | Delete
[67529] Fix | Delete
/**
[67530] Fix | Delete
* Ensures that the text selection keeps the same vertical distance from the
[67531] Fix | Delete
* viewport during keyboard events within this component. The vertical distance
[67532] Fix | Delete
* can vary. It is the last clicked or scrolled to position.
[67533] Fix | Delete
*/
[67534] Fix | Delete
/* harmony default export */ const typewriter = (TypewriterOrIEBypass);
[67535] Fix | Delete
[67536] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/recursion-provider/index.js
[67537] Fix | Delete
/**
[67538] Fix | Delete
* WordPress dependencies
[67539] Fix | Delete
*/
[67540] Fix | Delete
[67541] Fix | Delete
[67542] Fix | Delete
[67543] Fix | Delete
/**
[67544] Fix | Delete
* Internal dependencies
[67545] Fix | Delete
*/
[67546] Fix | Delete
[67547] Fix | Delete
[67548] Fix | Delete
const RenderedRefsContext = (0,external_wp_element_namespaceObject.createContext)({});
[67549] Fix | Delete
[67550] Fix | Delete
/**
[67551] Fix | Delete
* Immutably adds an unique identifier to a set scoped for a given block type.
[67552] Fix | Delete
*
[67553] Fix | Delete
* @param {Object} renderedBlocks Rendered blocks grouped by block name
[67554] Fix | Delete
* @param {string} blockName Name of the block.
[67555] Fix | Delete
* @param {*} uniqueId Any value that acts as a unique identifier for a block instance.
[67556] Fix | Delete
*
[67557] Fix | Delete
* @return {Object} The list of rendered blocks grouped by block name.
[67558] Fix | Delete
*/
[67559] Fix | Delete
function addToBlockType(renderedBlocks, blockName, uniqueId) {
[67560] Fix | Delete
const result = {
[67561] Fix | Delete
...renderedBlocks,
[67562] Fix | Delete
[blockName]: renderedBlocks[blockName] ? new Set(renderedBlocks[blockName]) : new Set()
[67563] Fix | Delete
};
[67564] Fix | Delete
result[blockName].add(uniqueId);
[67565] Fix | Delete
return result;
[67566] Fix | Delete
}
[67567] Fix | Delete
[67568] Fix | Delete
/**
[67569] Fix | Delete
* A React context provider for use with the `useHasRecursion` hook to prevent recursive
[67570] Fix | Delete
* renders.
[67571] Fix | Delete
*
[67572] Fix | Delete
* Wrap block content with this provider and provide the same `uniqueId` prop as used
[67573] Fix | Delete
* with `useHasRecursion`.
[67574] Fix | Delete
*
[67575] Fix | Delete
* @param {Object} props
[67576] Fix | Delete
* @param {*} props.uniqueId Any value that acts as a unique identifier for a block instance.
[67577] Fix | Delete
* @param {string} props.blockName Optional block name.
[67578] Fix | Delete
* @param {JSX.Element} props.children React children.
[67579] Fix | Delete
*
[67580] Fix | Delete
* @return {JSX.Element} A React element.
[67581] Fix | Delete
*/
[67582] Fix | Delete
function RecursionProvider({
[67583] Fix | Delete
children,
[67584] Fix | Delete
uniqueId,
[67585] Fix | Delete
blockName = ''
[67586] Fix | Delete
}) {
[67587] Fix | Delete
const previouslyRenderedBlocks = (0,external_wp_element_namespaceObject.useContext)(RenderedRefsContext);
[67588] Fix | Delete
const {
[67589] Fix | Delete
name
[67590] Fix | Delete
} = useBlockEditContext();
[67591] Fix | Delete
blockName = blockName || name;
[67592] Fix | Delete
const newRenderedBlocks = (0,external_wp_element_namespaceObject.useMemo)(() => addToBlockType(previouslyRenderedBlocks, blockName, uniqueId), [previouslyRenderedBlocks, blockName, uniqueId]);
[67593] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RenderedRefsContext.Provider, {
[67594] Fix | Delete
value: newRenderedBlocks,
[67595] Fix | Delete
children: children
[67596] Fix | Delete
});
[67597] Fix | Delete
}
[67598] Fix | Delete
[67599] Fix | Delete
/**
[67600] Fix | Delete
* A React hook for keeping track of blocks previously rendered up in the block
[67601] Fix | Delete
* tree. Blocks susceptible to recursion can use this hook in their `Edit`
[67602] Fix | Delete
* function to prevent said recursion.
[67603] Fix | Delete
*
[67604] Fix | Delete
* Use this with the `RecursionProvider` component, using the same `uniqueId` value
[67605] Fix | Delete
* for both the hook and the provider.
[67606] Fix | Delete
*
[67607] Fix | Delete
* @param {*} uniqueId Any value that acts as a unique identifier for a block instance.
[67608] Fix | Delete
* @param {string} blockName Optional block name.
[67609] Fix | Delete
*
[67610] Fix | Delete
* @return {boolean} A boolean describing whether the provided id has already been rendered.
[67611] Fix | Delete
*/
[67612] Fix | Delete
function useHasRecursion(uniqueId, blockName = '') {
[67613] Fix | Delete
const previouslyRenderedBlocks = (0,external_wp_element_namespaceObject.useContext)(RenderedRefsContext);
[67614] Fix | Delete
const {
[67615] Fix | Delete
name
[67616] Fix | Delete
} = useBlockEditContext();
[67617] Fix | Delete
blockName = blockName || name;
[67618] Fix | Delete
return Boolean(previouslyRenderedBlocks[blockName]?.has(uniqueId));
[67619] Fix | Delete
}
[67620] Fix | Delete
const DeprecatedExperimentalRecursionProvider = props => {
[67621] Fix | Delete
external_wp_deprecated_default()('wp.blockEditor.__experimentalRecursionProvider', {
[67622] Fix | Delete
since: '6.5',
[67623] Fix | Delete
alternative: 'wp.blockEditor.RecursionProvider'
[67624] Fix | Delete
});
[67625] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(RecursionProvider, {
[67626] Fix | Delete
...props
[67627] Fix | Delete
});
[67628] Fix | Delete
};
[67629] Fix | Delete
const DeprecatedExperimentalUseHasRecursion = (...args) => {
[67630] Fix | Delete
external_wp_deprecated_default()('wp.blockEditor.__experimentalUseHasRecursion', {
[67631] Fix | Delete
since: '6.5',
[67632] Fix | Delete
alternative: 'wp.blockEditor.useHasRecursion'
[67633] Fix | Delete
});
[67634] Fix | Delete
return useHasRecursion(...args);
[67635] Fix | Delete
};
[67636] Fix | Delete
[67637] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inspector-popover-header/index.js
[67638] Fix | Delete
/**
[67639] Fix | Delete
* WordPress dependencies
[67640] Fix | Delete
*/
[67641] Fix | Delete
[67642] Fix | Delete
[67643] Fix | Delete
[67644] Fix | Delete
[67645] Fix | Delete
[67646] Fix | Delete
function InspectorPopoverHeader({
[67647] Fix | Delete
title,
[67648] Fix | Delete
help,
[67649] Fix | Delete
actions = [],
[67650] Fix | Delete
onClose
[67651] Fix | Delete
}) {
[67652] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalVStack, {
[67653] Fix | Delete
className: "block-editor-inspector-popover-header",
[67654] Fix | Delete
spacing: 4,
[67655] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
[67656] Fix | Delete
alignment: "center",
[67657] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalHeading, {
[67658] Fix | Delete
className: "block-editor-inspector-popover-header__heading",
[67659] Fix | Delete
level: 2,
[67660] Fix | Delete
size: 13,
[67661] Fix | Delete
children: title
[67662] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalSpacer, {}), actions.map(({
[67663] Fix | Delete
label,
[67664] Fix | Delete
icon,
[67665] Fix | Delete
onClick
[67666] Fix | Delete
}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
[67667] Fix | Delete
className: "block-editor-inspector-popover-header__action",
[67668] Fix | Delete
label: label,
[67669] Fix | Delete
icon: icon,
[67670] Fix | Delete
variant: !icon && 'tertiary',
[67671] Fix | Delete
onClick: onClick,
[67672] Fix | Delete
children: !icon && label
[67673] Fix | Delete
}, label)), onClose && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
[67674] Fix | Delete
className: "block-editor-inspector-popover-header__action",
[67675] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Close'),
[67676] Fix | Delete
icon: close_small,
[67677] Fix | Delete
onClick: onClose
[67678] Fix | Delete
})]
[67679] Fix | Delete
}), help && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalText, {
[67680] Fix | Delete
children: help
[67681] Fix | Delete
})]
[67682] Fix | Delete
});
[67683] Fix | Delete
}
[67684] Fix | Delete
[67685] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/publish-date-time-picker/index.js
[67686] Fix | Delete
/**
[67687] Fix | Delete
* WordPress dependencies
[67688] Fix | Delete
*/
[67689] Fix | Delete
[67690] Fix | Delete
[67691] Fix | Delete
[67692] Fix | Delete
[67693] Fix | Delete
[67694] Fix | Delete
/**
[67695] Fix | Delete
* Internal dependencies
[67696] Fix | Delete
*/
[67697] Fix | Delete
[67698] Fix | Delete
[67699] Fix | Delete
[67700] Fix | Delete
function PublishDateTimePicker({
[67701] Fix | Delete
onClose,
[67702] Fix | Delete
onChange,
[67703] Fix | Delete
showPopoverHeaderActions,
[67704] Fix | Delete
isCompact,
[67705] Fix | Delete
currentDate,
[67706] Fix | Delete
...additionalProps
[67707] Fix | Delete
}, ref) {
[67708] Fix | Delete
const datePickerProps = {
[67709] Fix | Delete
startOfWeek: (0,external_wp_date_namespaceObject.getSettings)().l10n.startOfWeek,
[67710] Fix | Delete
onChange,
[67711] Fix | Delete
currentDate: isCompact ? undefined : currentDate,
[67712] Fix | Delete
currentTime: isCompact ? currentDate : undefined,
[67713] Fix | Delete
...additionalProps
[67714] Fix | Delete
};
[67715] Fix | Delete
const DatePickerComponent = isCompact ? external_wp_components_namespaceObject.TimePicker : external_wp_components_namespaceObject.DateTimePicker;
[67716] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
[67717] Fix | Delete
ref: ref,
[67718] Fix | Delete
className: "block-editor-publish-date-time-picker",
[67719] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(InspectorPopoverHeader, {
[67720] Fix | Delete
title: (0,external_wp_i18n_namespaceObject.__)('Publish'),
[67721] Fix | Delete
actions: showPopoverHeaderActions ? [{
[67722] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Now'),
[67723] Fix | Delete
onClick: () => onChange?.(null)
[67724] Fix | Delete
}] : undefined,
[67725] Fix | Delete
onClose: onClose
[67726] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(DatePickerComponent, {
[67727] Fix | Delete
...datePickerProps
[67728] Fix | Delete
})]
[67729] Fix | Delete
});
[67730] Fix | Delete
}
[67731] Fix | Delete
const PrivatePublishDateTimePicker = (0,external_wp_element_namespaceObject.forwardRef)(PublishDateTimePicker);
[67732] Fix | Delete
function PublicPublishDateTimePicker(props, ref) {
[67733] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PrivatePublishDateTimePicker, {
[67734] Fix | Delete
...props,
[67735] Fix | Delete
showPopoverHeaderActions: true,
[67736] Fix | Delete
isCompact: false,
[67737] Fix | Delete
ref: ref
[67738] Fix | Delete
});
[67739] Fix | Delete
}
[67740] Fix | Delete
/* harmony default export */ const publish_date_time_picker = ((0,external_wp_element_namespaceObject.forwardRef)(PublicPublishDateTimePicker));
[67741] Fix | Delete
[67742] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/inserter/reusable-block-rename-hint.js
[67743] Fix | Delete
/**
[67744] Fix | Delete
* WordPress dependencies
[67745] Fix | Delete
*/
[67746] Fix | Delete
[67747] Fix | Delete
[67748] Fix | Delete
[67749] Fix | Delete
[67750] Fix | Delete
[67751] Fix | Delete
[67752] Fix | Delete
[67753] Fix | Delete
[67754] Fix | Delete
[67755] Fix | Delete
const reusable_block_rename_hint_PREFERENCE_NAME = 'isResuableBlocksrRenameHintVisible';
[67756] Fix | Delete
/*
[67757] Fix | Delete
* This hook was added in 6.3 to help users with the transition from Reusable blocks to Patterns.
[67758] Fix | Delete
* It is only exported for use in the reusable-blocks package as well as block-editor.
[67759] Fix | Delete
* It will be removed in 6.4. and should not be used in any new code.
[67760] Fix | Delete
*/
[67761] Fix | Delete
function useReusableBlocksRenameHint() {
[67762] Fix | Delete
return (0,external_wp_data_namespaceObject.useSelect)(select => {
[67763] Fix | Delete
var _select$get;
[67764] Fix | Delete
return (_select$get = select(external_wp_preferences_namespaceObject.store).get('core', reusable_block_rename_hint_PREFERENCE_NAME)) !== null && _select$get !== void 0 ? _select$get : true;
[67765] Fix | Delete
}, []);
[67766] Fix | Delete
}
[67767] Fix | Delete
[67768] Fix | Delete
/*
[67769] Fix | Delete
* This component was added in 6.3 to help users with the transition from Reusable blocks to Patterns.
[67770] Fix | Delete
* It is only exported for use in the reusable-blocks package as well as block-editor.
[67771] Fix | Delete
* It will be removed in 6.4. and should not be used in any new code.
[67772] Fix | Delete
*/
[67773] Fix | Delete
function ReusableBlocksRenameHint() {
[67774] Fix | Delete
const isReusableBlocksRenameHint = (0,external_wp_data_namespaceObject.useSelect)(select => {
[67775] Fix | Delete
var _select$get2;
[67776] Fix | Delete
return (_select$get2 = select(external_wp_preferences_namespaceObject.store).get('core', reusable_block_rename_hint_PREFERENCE_NAME)) !== null && _select$get2 !== void 0 ? _select$get2 : true;
[67777] Fix | Delete
}, []);
[67778] Fix | Delete
const ref = (0,external_wp_element_namespaceObject.useRef)();
[67779] Fix | Delete
const {
[67780] Fix | Delete
set: setPreference
[67781] Fix | Delete
} = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_preferences_namespaceObject.store);
[67782] Fix | Delete
if (!isReusableBlocksRenameHint) {
[67783] Fix | Delete
return null;
[67784] Fix | Delete
}
[67785] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)("div", {
[67786] Fix | Delete
ref: ref,
[67787] Fix | Delete
className: "reusable-blocks-menu-items__rename-hint",
[67788] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("div", {
[67789] Fix | Delete
className: "reusable-blocks-menu-items__rename-hint-content",
[67790] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)('Reusable blocks are now synced patterns. A synced pattern will behave in exactly the same way as a reusable block.')
[67791] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
[67792] Fix | Delete
className: "reusable-blocks-menu-items__rename-hint-dismiss",
[67793] Fix | Delete
icon: library_close,
[67794] Fix | Delete
iconSize: "16",
[67795] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Dismiss hint'),
[67796] Fix | Delete
onClick: () => {
[67797] Fix | Delete
// Retain focus when dismissing the element.
[67798] Fix | Delete
const previousElement = external_wp_dom_namespaceObject.focus.tabbable.findPrevious(ref.current);
[67799] Fix | Delete
previousElement?.focus();
[67800] Fix | Delete
setPreference('core', reusable_block_rename_hint_PREFERENCE_NAME, false);
[67801] Fix | Delete
},
[67802] Fix | Delete
showTooltip: false
[67803] Fix | Delete
})]
[67804] Fix | Delete
});
[67805] Fix | Delete
}
[67806] Fix | Delete
[67807] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/index.js
[67808] Fix | Delete
/*
[67809] Fix | Delete
* Block Creation Components
[67810] Fix | Delete
*/
[67811] Fix | Delete
[67812] Fix | Delete
[67813] Fix | Delete
[67814] Fix | Delete
[67815] Fix | Delete
[67816] Fix | Delete
[67817] Fix | Delete
[67818] Fix | Delete
[67819] Fix | Delete
[67820] Fix | Delete
[67821] Fix | Delete
[67822] Fix | Delete
[67823] Fix | Delete
[67824] Fix | Delete
[67825] Fix | Delete
[67826] Fix | Delete
[67827] Fix | Delete
[67828] Fix | Delete
[67829] Fix | Delete
[67830] Fix | Delete
[67831] Fix | Delete
[67832] Fix | Delete
[67833] Fix | Delete
[67834] Fix | Delete
[67835] Fix | Delete
[67836] Fix | Delete
[67837] Fix | Delete
[67838] Fix | Delete
[67839] Fix | Delete
[67840] Fix | Delete
[67841] Fix | Delete
[67842] Fix | Delete
[67843] Fix | Delete
[67844] Fix | Delete
[67845] Fix | Delete
[67846] Fix | Delete
[67847] Fix | Delete
[67848] Fix | Delete
[67849] Fix | Delete
[67850] Fix | Delete
[67851] Fix | Delete
[67852] Fix | Delete
[67853] Fix | Delete
[67854] Fix | Delete
[67855] Fix | Delete
[67856] Fix | Delete
[67857] Fix | Delete
[67858] Fix | Delete
[67859] Fix | Delete
[67860] Fix | Delete
[67861] Fix | Delete
[67862] Fix | Delete
[67863] Fix | Delete
[67864] Fix | Delete
[67865] Fix | Delete
[67866] Fix | Delete
[67867] Fix | Delete
[67868] Fix | Delete
[67869] Fix | Delete
[67870] Fix | Delete
[67871] Fix | Delete
[67872] Fix | Delete
[67873] Fix | Delete
[67874] Fix | Delete
[67875] Fix | Delete
[67876] Fix | Delete
[67877] Fix | Delete
[67878] Fix | Delete
[67879] Fix | Delete
[67880] Fix | Delete
[67881] Fix | Delete
/*
[67882] Fix | Delete
* Content Related Components
[67883] Fix | Delete
*/
[67884] Fix | Delete
[67885] Fix | Delete
[67886] Fix | Delete
[67887] Fix | Delete
[67888] Fix | Delete
[67889] Fix | Delete
[67890] Fix | Delete
[67891] Fix | Delete
[67892] Fix | Delete
[67893] Fix | Delete
[67894] Fix | Delete
[67895] Fix | Delete
[67896] Fix | Delete
[67897] Fix | Delete
[67898] Fix | Delete
[67899] Fix | Delete
[67900] Fix | Delete
[67901] Fix | Delete
[67902] Fix | Delete
[67903] Fix | Delete
[67904] Fix | Delete
[67905] Fix | Delete
[67906] Fix | Delete
[67907] Fix | Delete
[67908] Fix | Delete
[67909] Fix | Delete
[67910] Fix | Delete
[67911] Fix | Delete
[67912] Fix | Delete
[67913] Fix | Delete
[67914] Fix | Delete
[67915] Fix | Delete
[67916] Fix | Delete
[67917] Fix | Delete
[67918] Fix | Delete
[67919] Fix | Delete
[67920] Fix | Delete
[67921] Fix | Delete
[67922] Fix | Delete
[67923] Fix | Delete
[67924] Fix | Delete
/*
[67925] Fix | Delete
* State Related Components
[67926] Fix | Delete
*/
[67927] Fix | Delete
[67928] Fix | Delete
[67929] Fix | Delete
[67930] Fix | Delete
[67931] Fix | Delete
[67932] Fix | Delete
/*
[67933] Fix | Delete
* The following rename hint component can be removed in 6.4.
[67934] Fix | Delete
*/
[67935] Fix | Delete
[67936] Fix | Delete
[67937] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/elements/index.js
[67938] Fix | Delete
const elements_ELEMENT_CLASS_NAMES = {
[67939] Fix | Delete
button: 'wp-element-button',
[67940] Fix | Delete
caption: 'wp-element-caption'
[67941] Fix | Delete
};
[67942] Fix | Delete
const __experimentalGetElementClassName = element => {
[67943] Fix | Delete
return elements_ELEMENT_CLASS_NAMES[element] ? elements_ELEMENT_CLASS_NAMES[element] : '';
[67944] Fix | Delete
};
[67945] Fix | Delete
[67946] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/get-px-from-css-unit.js
[67947] Fix | Delete
/**
[67948] Fix | Delete
* This function was accidentially exposed for mobile/native usage.
[67949] Fix | Delete
*
[67950] Fix | Delete
* @deprecated
[67951] Fix | Delete
*
[67952] Fix | Delete
* @return {string} Empty string.
[67953] Fix | Delete
*/
[67954] Fix | Delete
/* harmony default export */ const get_px_from_css_unit = (() => '');
[67955] Fix | Delete
[67956] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/utils/index.js
[67957] Fix | Delete
[67958] Fix | Delete
[67959] Fix | Delete
[67960] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/global-styles/image-settings-panel.js
[67961] Fix | Delete
/**
[67962] Fix | Delete
* WordPress dependencies
[67963] Fix | Delete
*/
[67964] Fix | Delete
[67965] Fix | Delete
[67966] Fix | Delete
[67967] Fix | Delete
/**
[67968] Fix | Delete
* Internal dependencies
[67969] Fix | Delete
*/
[67970] Fix | Delete
[67971] Fix | Delete
[67972] Fix | Delete
[67973] Fix | Delete
function useHasImageSettingsPanel(name, value, inheritedValue) {
[67974] Fix | Delete
// Note: If lightbox `value` exists, that means it was
[67975] Fix | Delete
// defined via the the Global Styles UI and will NOT
[67976] Fix | Delete
// be a boolean value or contain the `allowEditing` property,
[67977] Fix | Delete
// so we should show the settings panel in those cases.
[67978] Fix | Delete
return name === 'core/image' && inheritedValue?.lightbox?.allowEditing || !!value?.lightbox;
[67979] Fix | Delete
}
[67980] Fix | Delete
function ImageSettingsPanel({
[67981] Fix | Delete
onChange,
[67982] Fix | Delete
value,
[67983] Fix | Delete
inheritedValue,
[67984] Fix | Delete
panelId
[67985] Fix | Delete
}) {
[67986] Fix | Delete
const dropdownMenuProps = useToolsPanelDropdownMenuProps();
[67987] Fix | Delete
const resetLightbox = () => {
[67988] Fix | Delete
onChange(undefined);
[67989] Fix | Delete
};
[67990] Fix | Delete
const onChangeLightbox = newSetting => {
[67991] Fix | Delete
onChange({
[67992] Fix | Delete
enabled: newSetting
[67993] Fix | Delete
});
[67994] Fix | Delete
};
[67995] Fix | Delete
let lightboxChecked = false;
[67996] Fix | Delete
if (inheritedValue?.lightbox?.enabled) {
[67997] Fix | Delete
lightboxChecked = inheritedValue.lightbox.enabled;
[67998] Fix | Delete
}
[67999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function