block-editor.js
6 months ago
constants.js
6 months ago
field-processing.js
6 months ago
fieldMetadataCache.js
6 months ago
hooks.js
6 months ago
index.js
11 months ago
sources.js
6 months ago
utils.js
6 months ago
constants.js
31 lines
| 1 | /** |
| 2 | * Block binding configuration |
| 3 | * |
| 4 | * Defines which SCF field types can be bound to specific block attributes. |
| 5 | */ |
| 6 | export const BLOCK_BINDINGS_CONFIG = { |
| 7 | 'core/paragraph': { |
| 8 | content: [ 'text', 'textarea', 'date_picker', 'number', 'range' ], |
| 9 | }, |
| 10 | 'core/heading': { |
| 11 | content: [ 'text', 'textarea', 'date_picker', 'number', 'range' ], |
| 12 | }, |
| 13 | 'core/image': { |
| 14 | id: [ 'image' ], |
| 15 | url: [ 'image' ], |
| 16 | title: [ 'image' ], |
| 17 | alt: [ 'image' ], |
| 18 | }, |
| 19 | 'core/button': { |
| 20 | url: [ 'url' ], |
| 21 | text: [ 'text', 'checkbox', 'select', 'date_picker' ], |
| 22 | linkTarget: [ 'text', 'checkbox', 'select' ], |
| 23 | rel: [ 'text', 'checkbox', 'select' ], |
| 24 | }, |
| 25 | }; |
| 26 | |
| 27 | /** |
| 28 | * Binding source identifier |
| 29 | */ |
| 30 | export const BINDING_SOURCE = 'acf/field'; |
| 31 |