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
}
[65000] Fix | Delete
function RichTextWrapper({
[65001] Fix | Delete
children,
[65002] Fix | Delete
tagName = 'div',
[65003] Fix | Delete
value: adjustedValue = '',
[65004] Fix | Delete
onChange: adjustedOnChange,
[65005] Fix | Delete
isSelected: originalIsSelected,
[65006] Fix | Delete
multiline,
[65007] Fix | Delete
inlineToolbar,
[65008] Fix | Delete
wrapperClassName,
[65009] Fix | Delete
autocompleters,
[65010] Fix | Delete
onReplace,
[65011] Fix | Delete
placeholder,
[65012] Fix | Delete
allowedFormats,
[65013] Fix | Delete
withoutInteractiveFormatting,
[65014] Fix | Delete
onRemove,
[65015] Fix | Delete
onMerge,
[65016] Fix | Delete
onSplit,
[65017] Fix | Delete
__unstableOnSplitAtEnd: onSplitAtEnd,
[65018] Fix | Delete
__unstableOnSplitAtDoubleLineEnd: onSplitAtDoubleLineEnd,
[65019] Fix | Delete
identifier,
[65020] Fix | Delete
preserveWhiteSpace,
[65021] Fix | Delete
__unstablePastePlainText: pastePlainText,
[65022] Fix | Delete
__unstableEmbedURLOnPaste,
[65023] Fix | Delete
__unstableDisableFormats: disableFormats,
[65024] Fix | Delete
disableLineBreaks,
[65025] Fix | Delete
__unstableAllowPrefixTransformations,
[65026] Fix | Delete
readOnly,
[65027] Fix | Delete
...props
[65028] Fix | Delete
}, forwardedRef) {
[65029] Fix | Delete
props = removeNativeProps(props);
[65030] Fix | Delete
if (onSplit) {
[65031] Fix | Delete
external_wp_deprecated_default()('wp.blockEditor.RichText onSplit prop', {
[65032] Fix | Delete
since: '6.4',
[65033] Fix | Delete
alternative: 'block.json support key: "splitting"'
[65034] Fix | Delete
});
[65035] Fix | Delete
}
[65036] Fix | Delete
const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(RichTextWrapper);
[65037] Fix | Delete
const anchorRef = (0,external_wp_element_namespaceObject.useRef)();
[65038] Fix | Delete
const context = useBlockEditContext();
[65039] Fix | Delete
const {
[65040] Fix | Delete
clientId,
[65041] Fix | Delete
isSelected: isBlockSelected,
[65042] Fix | Delete
name: blockName
[65043] Fix | Delete
} = context;
[65044] Fix | Delete
const blockBindings = context[blockBindingsKey];
[65045] Fix | Delete
const blockContext = (0,external_wp_element_namespaceObject.useContext)(block_context);
[65046] Fix | Delete
const selector = select => {
[65047] Fix | Delete
// Avoid subscribing to the block editor store if the block is not
[65048] Fix | Delete
// selected.
[65049] Fix | Delete
if (!isBlockSelected) {
[65050] Fix | Delete
return {
[65051] Fix | Delete
isSelected: false
[65052] Fix | Delete
};
[65053] Fix | Delete
}
[65054] Fix | Delete
const {
[65055] Fix | Delete
getSelectionStart,
[65056] Fix | Delete
getSelectionEnd
[65057] Fix | Delete
} = select(store);
[65058] Fix | Delete
const selectionStart = getSelectionStart();
[65059] Fix | Delete
const selectionEnd = getSelectionEnd();
[65060] Fix | Delete
let isSelected;
[65061] Fix | Delete
if (originalIsSelected === undefined) {
[65062] Fix | Delete
isSelected = selectionStart.clientId === clientId && selectionEnd.clientId === clientId && (identifier ? selectionStart.attributeKey === identifier : selectionStart[instanceIdKey] === instanceId);
[65063] Fix | Delete
} else if (originalIsSelected) {
[65064] Fix | Delete
isSelected = selectionStart.clientId === clientId;
[65065] Fix | Delete
}
[65066] Fix | Delete
return {
[65067] Fix | Delete
selectionStart: isSelected ? selectionStart.offset : undefined,
[65068] Fix | Delete
selectionEnd: isSelected ? selectionEnd.offset : undefined,
[65069] Fix | Delete
isSelected
[65070] Fix | Delete
};
[65071] Fix | Delete
};
[65072] Fix | Delete
const {
[65073] Fix | Delete
selectionStart,
[65074] Fix | Delete
selectionEnd,
[65075] Fix | Delete
isSelected
[65076] Fix | Delete
} = (0,external_wp_data_namespaceObject.useSelect)(selector, [clientId, identifier, instanceId, originalIsSelected, isBlockSelected]);
[65077] Fix | Delete
const disableBoundBlocks = (0,external_wp_data_namespaceObject.useSelect)(select => {
[65078] Fix | Delete
// Disable Rich Text editing if block bindings specify that.
[65079] Fix | Delete
let _disableBoundBlocks = false;
[65080] Fix | Delete
if (blockBindings && canBindBlock(blockName)) {
[65081] Fix | Delete
const blockTypeAttributes = (0,external_wp_blocks_namespaceObject.getBlockType)(blockName).attributes;
[65082] Fix | Delete
const {
[65083] Fix | Delete
getBlockBindingsSource
[65084] Fix | Delete
} = unlock(select(external_wp_blocks_namespaceObject.store));
[65085] Fix | Delete
for (const [attribute, binding] of Object.entries(blockBindings)) {
[65086] Fix | Delete
if (blockTypeAttributes?.[attribute]?.source !== 'rich-text') {
[65087] Fix | Delete
break;
[65088] Fix | Delete
}
[65089] Fix | Delete
[65090] Fix | Delete
// If the source is not defined, or if its value of `canUserEditValue` is `false`, disable it.
[65091] Fix | Delete
const blockBindingsSource = getBlockBindingsSource(binding.source);
[65092] Fix | Delete
if (!blockBindingsSource?.canUserEditValue({
[65093] Fix | Delete
select,
[65094] Fix | Delete
context: blockContext,
[65095] Fix | Delete
args: binding.args
[65096] Fix | Delete
})) {
[65097] Fix | Delete
_disableBoundBlocks = true;
[65098] Fix | Delete
break;
[65099] Fix | Delete
}
[65100] Fix | Delete
}
[65101] Fix | Delete
}
[65102] Fix | Delete
return _disableBoundBlocks;
[65103] Fix | Delete
}, [blockBindings, blockName]);
[65104] Fix | Delete
const shouldDisableEditing = readOnly || disableBoundBlocks;
[65105] Fix | Delete
const {
[65106] Fix | Delete
getSelectionStart,
[65107] Fix | Delete
getSelectionEnd,
[65108] Fix | Delete
getBlockRootClientId
[65109] Fix | Delete
} = (0,external_wp_data_namespaceObject.useSelect)(store);
[65110] Fix | Delete
const {
[65111] Fix | Delete
selectionChange
[65112] Fix | Delete
} = (0,external_wp_data_namespaceObject.useDispatch)(store);
[65113] Fix | Delete
const adjustedAllowedFormats = getAllowedFormats({
[65114] Fix | Delete
allowedFormats,
[65115] Fix | Delete
disableFormats
[65116] Fix | Delete
});
[65117] Fix | Delete
const hasFormats = !adjustedAllowedFormats || adjustedAllowedFormats.length > 0;
[65118] Fix | Delete
const onSelectionChange = (0,external_wp_element_namespaceObject.useCallback)((start, end) => {
[65119] Fix | Delete
const selection = {};
[65120] Fix | Delete
const unset = start === undefined && end === undefined;
[65121] Fix | Delete
const baseSelection = {
[65122] Fix | Delete
clientId,
[65123] Fix | Delete
[identifier ? 'attributeKey' : instanceIdKey]: identifier ? identifier : instanceId
[65124] Fix | Delete
};
[65125] Fix | Delete
if (typeof start === 'number' || unset) {
[65126] Fix | Delete
// If we are only setting the start (or the end below), which
[65127] Fix | Delete
// means a partial selection, and we're not updating a selection
[65128] Fix | Delete
// with the same client ID, abort. This means the selected block
[65129] Fix | Delete
// is a parent block.
[65130] Fix | Delete
if (end === undefined && getBlockRootClientId(clientId) !== getBlockRootClientId(getSelectionEnd().clientId)) {
[65131] Fix | Delete
return;
[65132] Fix | Delete
}
[65133] Fix | Delete
selection.start = {
[65134] Fix | Delete
...baseSelection,
[65135] Fix | Delete
offset: start
[65136] Fix | Delete
};
[65137] Fix | Delete
}
[65138] Fix | Delete
if (typeof end === 'number' || unset) {
[65139] Fix | Delete
if (start === undefined && getBlockRootClientId(clientId) !== getBlockRootClientId(getSelectionStart().clientId)) {
[65140] Fix | Delete
return;
[65141] Fix | Delete
}
[65142] Fix | Delete
selection.end = {
[65143] Fix | Delete
...baseSelection,
[65144] Fix | Delete
offset: end
[65145] Fix | Delete
};
[65146] Fix | Delete
}
[65147] Fix | Delete
selectionChange(selection);
[65148] Fix | Delete
}, [clientId, getBlockRootClientId, getSelectionEnd, getSelectionStart, identifier, instanceId, selectionChange]);
[65149] Fix | Delete
const {
[65150] Fix | Delete
formatTypes,
[65151] Fix | Delete
prepareHandlers,
[65152] Fix | Delete
valueHandlers,
[65153] Fix | Delete
changeHandlers,
[65154] Fix | Delete
dependencies
[65155] Fix | Delete
} = useFormatTypes({
[65156] Fix | Delete
clientId,
[65157] Fix | Delete
identifier,
[65158] Fix | Delete
withoutInteractiveFormatting,
[65159] Fix | Delete
allowedFormats: adjustedAllowedFormats
[65160] Fix | Delete
});
[65161] Fix | Delete
function addEditorOnlyFormats(value) {
[65162] Fix | Delete
return valueHandlers.reduce((accumulator, fn) => fn(accumulator, value.text), value.formats);
[65163] Fix | Delete
}
[65164] Fix | Delete
function removeEditorOnlyFormats(value) {
[65165] Fix | Delete
formatTypes.forEach(formatType => {
[65166] Fix | Delete
// Remove formats created by prepareEditableTree, because they are editor only.
[65167] Fix | Delete
if (formatType.__experimentalCreatePrepareEditableTree) {
[65168] Fix | Delete
value = (0,external_wp_richText_namespaceObject.removeFormat)(value, formatType.name, 0, value.text.length);
[65169] Fix | Delete
}
[65170] Fix | Delete
});
[65171] Fix | Delete
return value.formats;
[65172] Fix | Delete
}
[65173] Fix | Delete
function addInvisibleFormats(value) {
[65174] Fix | Delete
return prepareHandlers.reduce((accumulator, fn) => fn(accumulator, value.text), value.formats);
[65175] Fix | Delete
}
[65176] Fix | Delete
const {
[65177] Fix | Delete
value,
[65178] Fix | Delete
getValue,
[65179] Fix | Delete
onChange,
[65180] Fix | Delete
ref: richTextRef
[65181] Fix | Delete
} = (0,external_wp_richText_namespaceObject.__unstableUseRichText)({
[65182] Fix | Delete
value: adjustedValue,
[65183] Fix | Delete
onChange(html, {
[65184] Fix | Delete
__unstableFormats,
[65185] Fix | Delete
__unstableText
[65186] Fix | Delete
}) {
[65187] Fix | Delete
adjustedOnChange(html);
[65188] Fix | Delete
Object.values(changeHandlers).forEach(changeHandler => {
[65189] Fix | Delete
changeHandler(__unstableFormats, __unstableText);
[65190] Fix | Delete
});
[65191] Fix | Delete
},
[65192] Fix | Delete
selectionStart,
[65193] Fix | Delete
selectionEnd,
[65194] Fix | Delete
onSelectionChange,
[65195] Fix | Delete
placeholder,
[65196] Fix | Delete
__unstableIsSelected: isSelected,
[65197] Fix | Delete
__unstableDisableFormats: disableFormats,
[65198] Fix | Delete
preserveWhiteSpace,
[65199] Fix | Delete
__unstableDependencies: [...dependencies, tagName],
[65200] Fix | Delete
__unstableAfterParse: addEditorOnlyFormats,
[65201] Fix | Delete
__unstableBeforeSerialize: removeEditorOnlyFormats,
[65202] Fix | Delete
__unstableAddInvisibleFormats: addInvisibleFormats
[65203] Fix | Delete
});
[65204] Fix | Delete
const autocompleteProps = useBlockEditorAutocompleteProps({
[65205] Fix | Delete
onReplace,
[65206] Fix | Delete
completers: autocompleters,
[65207] Fix | Delete
record: value,
[65208] Fix | Delete
onChange
[65209] Fix | Delete
});
[65210] Fix | Delete
useMarkPersistent({
[65211] Fix | Delete
html: adjustedValue,
[65212] Fix | Delete
value
[65213] Fix | Delete
});
[65214] Fix | Delete
const keyboardShortcuts = (0,external_wp_element_namespaceObject.useRef)(new Set());
[65215] Fix | Delete
const inputEvents = (0,external_wp_element_namespaceObject.useRef)(new Set());
[65216] Fix | Delete
function onFocus() {
[65217] Fix | Delete
anchorRef.current?.focus();
[65218] Fix | Delete
}
[65219] Fix | Delete
const registry = (0,external_wp_data_namespaceObject.useRegistry)();
[65220] Fix | Delete
const TagName = tagName;
[65221] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
[65222] Fix | Delete
children: [isSelected && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(keyboardShortcutContext.Provider, {
[65223] Fix | Delete
value: keyboardShortcuts,
[65224] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(inputEventContext.Provider, {
[65225] Fix | Delete
value: inputEvents,
[65226] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Popover.__unstableSlotNameProvider, {
[65227] Fix | Delete
value: "__unstable-block-tools-after",
[65228] Fix | Delete
children: [children && children({
[65229] Fix | Delete
value,
[65230] Fix | Delete
onChange,
[65231] Fix | Delete
onFocus
[65232] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(FormatEdit, {
[65233] Fix | Delete
value: value,
[65234] Fix | Delete
onChange: onChange,
[65235] Fix | Delete
onFocus: onFocus,
[65236] Fix | Delete
formatTypes: formatTypes,
[65237] Fix | Delete
forwardedRef: anchorRef
[65238] Fix | Delete
})]
[65239] Fix | Delete
})
[65240] Fix | Delete
})
[65241] Fix | Delete
}), isSelected && hasFormats && /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(format_toolbar_container, {
[65242] Fix | Delete
inline: inlineToolbar,
[65243] Fix | Delete
editableContentElement: anchorRef.current
[65244] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(TagName
[65245] Fix | Delete
// Overridable props.
[65246] Fix | Delete
, {
[65247] Fix | Delete
role: "textbox",
[65248] Fix | Delete
"aria-multiline": !disableLineBreaks,
[65249] Fix | Delete
"aria-label": placeholder,
[65250] Fix | Delete
"aria-readonly": shouldDisableEditing,
[65251] Fix | Delete
...props,
[65252] Fix | Delete
...autocompleteProps,
[65253] Fix | Delete
ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([
[65254] Fix | Delete
// Rich text ref must be first because its focus listener
[65255] Fix | Delete
// must be set up before any other ref calls .focus() on
[65256] Fix | Delete
// mount.
[65257] Fix | Delete
richTextRef, forwardedRef, autocompleteProps.ref, props.ref, useEventListeners({
[65258] Fix | Delete
registry,
[65259] Fix | Delete
getValue,
[65260] Fix | Delete
onChange,
[65261] Fix | Delete
__unstableAllowPrefixTransformations,
[65262] Fix | Delete
formatTypes,
[65263] Fix | Delete
onReplace,
[65264] Fix | Delete
selectionChange,
[65265] Fix | Delete
isSelected,
[65266] Fix | Delete
disableFormats,
[65267] Fix | Delete
value,
[65268] Fix | Delete
tagName,
[65269] Fix | Delete
onSplit,
[65270] Fix | Delete
__unstableEmbedURLOnPaste,
[65271] Fix | Delete
pastePlainText,
[65272] Fix | Delete
onMerge,
[65273] Fix | Delete
onRemove,
[65274] Fix | Delete
removeEditorOnlyFormats,
[65275] Fix | Delete
disableLineBreaks,
[65276] Fix | Delete
onSplitAtEnd,
[65277] Fix | Delete
onSplitAtDoubleLineEnd,
[65278] Fix | Delete
keyboardShortcuts,
[65279] Fix | Delete
inputEvents
[65280] Fix | Delete
}), anchorRef]),
[65281] Fix | Delete
contentEditable: !shouldDisableEditing,
[65282] Fix | Delete
suppressContentEditableWarning: true,
[65283] Fix | Delete
className: dist_clsx('block-editor-rich-text__editable', props.className, 'rich-text')
[65284] Fix | Delete
// Setting tabIndex to 0 is unnecessary, the element is already
[65285] Fix | Delete
// focusable because it's contentEditable. This also fixes a
[65286] Fix | Delete
// Safari bug where it's not possible to Shift+Click multi
[65287] Fix | Delete
// select blocks when Shift Clicking into an element with
[65288] Fix | Delete
// tabIndex because Safari will focus the element. However,
[65289] Fix | Delete
// Safari will correctly ignore nested contentEditable elements.
[65290] Fix | Delete
,
[65291] Fix | Delete
tabIndex: props.tabIndex === 0 && !shouldDisableEditing ? null : props.tabIndex,
[65292] Fix | Delete
"data-wp-block-attribute-key": identifier
[65293] Fix | Delete
})]
[65294] Fix | Delete
});
[65295] Fix | Delete
}
[65296] Fix | Delete
[65297] Fix | Delete
// This is the private API for the RichText component.
[65298] Fix | Delete
// It allows access to all props, not just the public ones.
[65299] Fix | Delete
const PrivateRichText = withDeprecations((0,external_wp_element_namespaceObject.forwardRef)(RichTextWrapper));
[65300] Fix | Delete
PrivateRichText.Content = Content;
[65301] Fix | Delete
PrivateRichText.isEmpty = value => {
[65302] Fix | Delete
return !value || value.length === 0;
[65303] Fix | Delete
};
[65304] Fix | Delete
[65305] Fix | Delete
// This is the public API for the RichText component.
[65306] Fix | Delete
// We wrap the PrivateRichText component to hide some props from the public API.
[65307] Fix | Delete
/**
[65308] Fix | Delete
* @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/rich-text/README.md
[65309] Fix | Delete
*/
[65310] Fix | Delete
const PublicForwardedRichTextContainer = (0,external_wp_element_namespaceObject.forwardRef)((props, ref) => {
[65311] Fix | Delete
const context = useBlockEditContext();
[65312] Fix | Delete
const isPreviewMode = context[isPreviewModeKey];
[65313] Fix | Delete
if (isPreviewMode) {
[65314] Fix | Delete
// Remove all non-content props.
[65315] Fix | Delete
const {
[65316] Fix | Delete
children,
[65317] Fix | Delete
tagName: Tag = 'div',
[65318] Fix | Delete
value,
[65319] Fix | Delete
onChange,
[65320] Fix | Delete
isSelected,
[65321] Fix | Delete
multiline,
[65322] Fix | Delete
inlineToolbar,
[65323] Fix | Delete
wrapperClassName,
[65324] Fix | Delete
autocompleters,
[65325] Fix | Delete
onReplace,
[65326] Fix | Delete
placeholder,
[65327] Fix | Delete
allowedFormats,
[65328] Fix | Delete
withoutInteractiveFormatting,
[65329] Fix | Delete
onRemove,
[65330] Fix | Delete
onMerge,
[65331] Fix | Delete
onSplit,
[65332] Fix | Delete
__unstableOnSplitAtEnd,
[65333] Fix | Delete
__unstableOnSplitAtDoubleLineEnd,
[65334] Fix | Delete
identifier,
[65335] Fix | Delete
preserveWhiteSpace,
[65336] Fix | Delete
__unstablePastePlainText,
[65337] Fix | Delete
__unstableEmbedURLOnPaste,
[65338] Fix | Delete
__unstableDisableFormats,
[65339] Fix | Delete
disableLineBreaks,
[65340] Fix | Delete
__unstableAllowPrefixTransformations,
[65341] Fix | Delete
readOnly,
[65342] Fix | Delete
...contentProps
[65343] Fix | Delete
} = removeNativeProps(props);
[65344] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tag, {
[65345] Fix | Delete
...contentProps,
[65346] Fix | Delete
dangerouslySetInnerHTML: {
[65347] Fix | Delete
__html: valueToHTMLString(value, multiline)
[65348] Fix | Delete
}
[65349] Fix | Delete
});
[65350] Fix | Delete
}
[65351] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(PrivateRichText, {
[65352] Fix | Delete
ref: ref,
[65353] Fix | Delete
...props,
[65354] Fix | Delete
readOnly: false
[65355] Fix | Delete
});
[65356] Fix | Delete
});
[65357] Fix | Delete
PublicForwardedRichTextContainer.Content = Content;
[65358] Fix | Delete
PublicForwardedRichTextContainer.isEmpty = value => {
[65359] Fix | Delete
return !value || value.length === 0;
[65360] Fix | Delete
};
[65361] Fix | Delete
/* harmony default export */ const rich_text = (PublicForwardedRichTextContainer);
[65362] Fix | Delete
[65363] Fix | Delete
[65364] Fix | Delete
[65365] Fix | Delete
[65366] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/editable-text/index.js
[65367] Fix | Delete
/**
[65368] Fix | Delete
* WordPress dependencies
[65369] Fix | Delete
*/
[65370] Fix | Delete
[65371] Fix | Delete
[65372] Fix | Delete
/**
[65373] Fix | Delete
* Internal dependencies
[65374] Fix | Delete
*/
[65375] Fix | Delete
[65376] Fix | Delete
[65377] Fix | Delete
const EditableText = (0,external_wp_element_namespaceObject.forwardRef)((props, ref) => {
[65378] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(rich_text, {
[65379] Fix | Delete
ref: ref,
[65380] Fix | Delete
...props,
[65381] Fix | Delete
__unstableDisableFormats: true
[65382] Fix | Delete
});
[65383] Fix | Delete
});
[65384] Fix | Delete
EditableText.Content = ({
[65385] Fix | Delete
value = '',
[65386] Fix | Delete
tagName: Tag = 'div',
[65387] Fix | Delete
...props
[65388] Fix | Delete
}) => {
[65389] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(Tag, {
[65390] Fix | Delete
...props,
[65391] Fix | Delete
children: value
[65392] Fix | Delete
});
[65393] Fix | Delete
};
[65394] Fix | Delete
[65395] Fix | Delete
/**
[65396] Fix | Delete
* Renders an editable text input in which text formatting is not allowed.
[65397] Fix | Delete
*/
[65398] Fix | Delete
/* harmony default export */ const editable_text = (EditableText);
[65399] Fix | Delete
[65400] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/plain-text/index.js
[65401] Fix | Delete
/**
[65402] Fix | Delete
* External dependencies
[65403] Fix | Delete
*/
[65404] Fix | Delete
[65405] Fix | Delete
[65406] Fix | Delete
[65407] Fix | Delete
/**
[65408] Fix | Delete
* WordPress dependencies
[65409] Fix | Delete
*/
[65410] Fix | Delete
[65411] Fix | Delete
[65412] Fix | Delete
/**
[65413] Fix | Delete
* Internal dependencies
[65414] Fix | Delete
*/
[65415] Fix | Delete
[65416] Fix | Delete
[65417] Fix | Delete
/**
[65418] Fix | Delete
* @see https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/plain-text/README.md
[65419] Fix | Delete
*/
[65420] Fix | Delete
[65421] Fix | Delete
const PlainText = (0,external_wp_element_namespaceObject.forwardRef)(({
[65422] Fix | Delete
__experimentalVersion,
[65423] Fix | Delete
...props
[65424] Fix | Delete
}, ref) => {
[65425] Fix | Delete
if (__experimentalVersion === 2) {
[65426] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(editable_text, {
[65427] Fix | Delete
ref: ref,
[65428] Fix | Delete
...props
[65429] Fix | Delete
});
[65430] Fix | Delete
}
[65431] Fix | Delete
const {
[65432] Fix | Delete
className,
[65433] Fix | Delete
onChange,
[65434] Fix | Delete
...remainingProps
[65435] Fix | Delete
} = props;
[65436] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(lib/* default */.A, {
[65437] Fix | Delete
ref: ref,
[65438] Fix | Delete
className: dist_clsx('block-editor-plain-text', className),
[65439] Fix | Delete
onChange: event => onChange(event.target.value),
[65440] Fix | Delete
...remainingProps
[65441] Fix | Delete
});
[65442] Fix | Delete
});
[65443] Fix | Delete
/* harmony default export */ const plain_text = (PlainText);
[65444] Fix | Delete
[65445] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/responsive-block-control/label.js
[65446] Fix | Delete
/**
[65447] Fix | Delete
* WordPress dependencies
[65448] Fix | Delete
*/
[65449] Fix | Delete
[65450] Fix | Delete
[65451] Fix | Delete
[65452] Fix | Delete
[65453] Fix | Delete
[65454] Fix | Delete
[65455] Fix | Delete
function ResponsiveBlockControlLabel({
[65456] Fix | Delete
property,
[65457] Fix | Delete
viewport,
[65458] Fix | Delete
desc
[65459] Fix | Delete
}) {
[65460] Fix | Delete
const instanceId = (0,external_wp_compose_namespaceObject.useInstanceId)(ResponsiveBlockControlLabel);
[65461] Fix | Delete
const accessibleLabel = desc || (0,external_wp_i18n_namespaceObject.sprintf)( /* translators: 1: property name. 2: viewport name. */
[65462] Fix | Delete
(0,external_wp_i18n_namespaceObject._x)('Controls the %1$s property for %2$s viewports.', 'Text labelling a interface as controlling a given layout property (eg: margin) for a given screen size.'), property, viewport.label);
[65463] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_ReactJSXRuntime_namespaceObject.Fragment, {
[65464] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("span", {
[65465] Fix | Delete
"aria-describedby": `rbc-desc-${instanceId}`,
[65466] Fix | Delete
children: viewport.label
[65467] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.VisuallyHidden, {
[65468] Fix | Delete
as: "span",
[65469] Fix | Delete
id: `rbc-desc-${instanceId}`,
[65470] Fix | Delete
children: accessibleLabel
[65471] Fix | Delete
})]
[65472] Fix | Delete
});
[65473] Fix | Delete
}
[65474] Fix | Delete
[65475] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/responsive-block-control/index.js
[65476] Fix | Delete
/**
[65477] Fix | Delete
* External dependencies
[65478] Fix | Delete
*/
[65479] Fix | Delete
[65480] Fix | Delete
[65481] Fix | Delete
/**
[65482] Fix | Delete
* WordPress dependencies
[65483] Fix | Delete
*/
[65484] Fix | Delete
[65485] Fix | Delete
[65486] Fix | Delete
[65487] Fix | Delete
[65488] Fix | Delete
/**
[65489] Fix | Delete
* Internal dependencies
[65490] Fix | Delete
*/
[65491] Fix | Delete
[65492] Fix | Delete
[65493] Fix | Delete
[65494] Fix | Delete
function ResponsiveBlockControl(props) {
[65495] Fix | Delete
const {
[65496] Fix | Delete
title,
[65497] Fix | Delete
property,
[65498] Fix | Delete
toggleLabel,
[65499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function