PageSourceSearch

https://prosperityconnection.org/wp-content/plugins/editor-block-o…/block-name-option.js?ver=1770215386

js prosperityconnection.org collected 2026-10-04 22:12:04 UTC 814 bytes, 35 lines download raw bytes

1function outlineBlockNameOption(props) {
2	const { ToggleControl } = this.components;
3
4	let currentValue = props.metaValue;
5	const outlineNameValue = props.outlineNameState;
6
7	if (currentValue === undefined) {
8		currentValue = true;
9	}
10
11	// if state value is set then use it. This will disable UI flickering
12	if (outlineNameValue !== undefined && outlineNameValue !== '') {
13		currentValue = outlineNameValue;
14	}
15
16	return this.el(ToggleControl, {
17		label: 'Show block name',
18		checked: currentValue,
19		onChange: (value) => {
20			// update state to update control ui
21			props.setState({
22				outlineNameState: value,
23			});
24
25			// Update Editor UI
26			const body = getDocumentBody();
27			body.attr('show-block-name', value);
28
29			// update meta
30			this.debounce(() => {
31				props.setMetaValue(value);
32			})();
33		},
34	});
35}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.