| 1 |
/** |
| 2 |
* Form Editor blocks entry. |
| 3 |
*/ |
| 4 |
|
| 5 |
// Before block imports: registerBlockType filters (uniqueness, CL, extras, …). |
| 6 |
import './register-block-type-filters'; |
| 7 |
|
| 8 |
// Toolbar Delete (Layer 15). Order not load-bearing. |
| 9 |
import './components/BlockToolbarDelete'; |
| 10 |
|
| 11 |
// Icons + hover previews — must run before block imports. |
| 12 |
import './field-art'; |
| 13 |
|
| 14 |
// After filters, before editor plugins. See register-blocks.js. |
| 15 |
import './register-blocks'; |
| 16 |
|
| 17 |
// Import editor styles |
| 18 |
import './style.scss'; |
| 19 |
|
| 20 |
// Body class for scoped chrome CSS (PB form CPTs). |
| 21 |
import './components/EditorBodyClass'; |
| 22 |
|
| 23 |
// Editor plugins. FormShortcodePanel first → top of Form Settings sidebar. |
| 24 |
import './components/FormShortcodePanel'; |
| 25 |
import './components/RepeaterScopeGuard'; |
| 26 |
import './components/FormSettingsPanel'; |
| 27 |
import './components/ProgressBarPanel'; |
| 28 |
import './components/AutoSeedRegistrationForm'; |
| 29 |
|
| 30 |
// "Preview" button injected into the top-right editor header (next to Save). |
| 31 |
import './components/FormPreviewButton'; |
| 32 |
|
| 33 |
// Existing-fields inserter section |
| 34 |
import './components/ExistingFieldsPanel'; |
| 35 |
|
| 36 |
// Swap root "Add field" for mini inserter. |
| 37 |
import './components/RootCanvasAppender'; |
| 38 |
|
| 39 |
// Mini inserter at between-block / empty-block "+" clicks. |
| 40 |
import './components/CanvasPointInserter'; |
| 41 |
|
| 42 |
// Focus mini-inserter search when the popover opens. |
| 43 |
import './components/MiniInserterSearchFocus'; |
| 44 |
|
| 45 |
// Click empty canvas padding to deselect. |
| 46 |
import './components/CanvasPaddingDeselect'; |
| 47 |
|
| 48 |
// Keep inserter open on PB form CPTs. |
| 49 |
import './components/ForceOpenInserter'; |
| 50 |
|
| 51 |
// Tooltip on greyed-out once-per-form New Fields entries. |
| 52 |
import './components/UniqueFieldTooltip'; |
| 53 |
|
| 54 |
// Keep fullscreen off (no chrome left to exit it). |
| 55 |
import './components/ForceDisableFullscreen'; |
| 56 |
|
| 57 |
// Disable Gutenberg keyboard shortcuts on PB form CPTs. |
| 58 |
import './components/DisableKeyboardShortcuts'; |
| 59 |
|
| 60 |
// Disable block clipboard; text editing in settings still works. |
| 61 |
import './components/DisableBlockClipboard'; |
| 62 |
|
| 63 |
// Document-bar title out of tab order (CSS handles pointer-events). |
| 64 |
import './components/DisableDocumentBar'; |
| 65 |
|
| 66 |
// Per-edit REST mirror + client-side ID dedup on duplicate. |
| 67 |
import './components/BlockAttributeMirror'; |
| 68 |
|
| 69 |
// Multi-Step Forms document-sidebar panel + post-save sync |
| 70 |
import './components/MsfPanel'; |
| 71 |
|
| 72 |
// Form Fields in Columns document-sidebar panel |
| 73 |
import './components/FfcPanel'; |
| 74 |
|