mirror of
https://github.com/google/blockly.git
synced 2026-01-06 00:20:37 +01:00
feat: add support for appending custom inputs (#6990)
* feat: add appendInput method * feat: enable constructing inputs from the registry * chore: reorganize into suites * chore: add new input test + fixup existing * chore: reorganize appending from registry * chore: fix input types enum * chore: fix tests
This commit is contained in:
@@ -13,6 +13,7 @@ import type {IBlockDragger} from './interfaces/i_block_dragger.js';
|
||||
import type {IConnectionChecker} from './interfaces/i_connection_checker.js';
|
||||
import type {IFlyout} from './interfaces/i_flyout.js';
|
||||
import type {IMetricsManager} from './interfaces/i_metrics_manager.js';
|
||||
import type {Input} from './input.js';
|
||||
import type {ISerializer} from './interfaces/i_serializer.js';
|
||||
import type {IToolbox} from './interfaces/i_toolbox.js';
|
||||
import type {Cursor} from './keyboard_nav/cursor.js';
|
||||
@@ -69,6 +70,8 @@ export class Type<_T> {
|
||||
|
||||
static FIELD = new Type<Field>('field');
|
||||
|
||||
static INPUT = new Type<Input>('input');
|
||||
|
||||
static RENDERER = new Type<Renderer>('renderer');
|
||||
|
||||
static TOOLBOX = new Type<IToolbox>('toolbox');
|
||||
|
||||
Reference in New Issue
Block a user