# extendify/3.1.5/src/Agent/lib/classify-block-edit.js

Extendify, version 3.1.5. 17 lines.

- Page: https://pluginprobe.com/plugins/extendify/3.1.5/code/src/Agent/lib/classify-block-edit.js
- Raw: https://pluginprobe.com/plugins/extendify/3.1.5/raw/src/Agent/lib/classify-block-edit.js
- Modified: 2026-08-12T16:23:58+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/extendify/3.1.5/code/src/Agent/lib/classify-block-edit.js#L10-L20`.

```javascript
import { buildSubtreeManifest } from './subtree-manifest';

// Wrapper/child units edited as one so both schemas ship; grow over time.
const COMBO_BLOCKS = new Set(['core/buttons', 'core/button']);

// Temporary ignore logos until we add template support
export const IGNORED_BLOCKS = new Set(['core/site-logo']);

// single/combo pin the selection's schema; multi ships the subtree's or narrows.
export const classifyBlockEdit = ({ block, root }) => {
	if (!block?.blockType || IGNORED_BLOCKS.has(block.blockType))
		return { bucket: 'multi' };
	if (COMBO_BLOCKS.has(block.blockType)) return { bucket: 'combo' };
	if (buildSubtreeManifest(root).length > 1) return { bucket: 'multi' };
	return { bucket: 'single' };
};

```
