403Webshell
Server IP : 66.29.153.156  /  Your IP : 216.73.217.22
Web Server : LiteSpeed
System : Linux premium322.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User : lastyfjz ( 1521)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/lastyfjz/./unicitys.com/wp-content/plugins/extendify/src/QuickEdit/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/lastyfjz/./unicitys.com/wp-content/plugins/extendify/src/QuickEdit/lib/quick-edit-handlers.js
// Single source of truth for "does Quick Edit have an editor for this
// blockType?" — hover-bar uses it to gate the Quick Edit pill, and
// keyboard-entry uses it to skip opening an editor for blocks that
// only get Ask AI. InlineEditor still owns the actual handler routing;
// if a type is in this set but InlineEditor has no branch, the user
// sees UnsupportedNotice (self-healing safety net).
//
// Keep aligned with TEXT_STRATEGIES + PICKER_STRATEGIES +
// MODAL_BLOCK_TYPES in components/InlineEditor.jsx.
export const QUICK_EDIT_BLOCK_TYPES = new Set([
	'core/paragraph',
	'core/heading',
	'core/button',
	'core/image',
	'core/cover',
	'core/media-text:image',
	'product:image',
	'core/site-title',
	'core/site-tagline',
	'core/site-logo',
	'core/social-link',
	'core/navigation-link',
	'core/navigation-submenu',
	'product:name',
	'product:short_description',
	'product:description',
	'product:price',
	'wpforms:field',
]);

export const hasQuickEditModalFor = (blockType) =>
	!!blockType && QUICK_EDIT_BLOCK_TYPES.has(blockType);

Youez - 2016 - github.com/yon3zu
LinuXploit