@@ -23,19 +23,20 @@ export const registerExperimentalBlockType = (
23
23
}
24
24
} ;
25
25
26
- /**
27
- * Registers a new feature plugin block provided a unique name and an object
28
- * defining its behavior. Once registered, the block is made available as an
29
- * option to any editor interface where blocks are implemented.
30
- */
31
- export const registerFeaturePluginBlockType = (
32
- blockNameOrMetadata : string | BlockConfiguration ,
33
- settings : Record < string , unknown >
34
- ) : Block | undefined => {
35
- if ( WC_BLOCKS_PHASE > 1 ) {
36
- return registerBlockType ( blockNameOrMetadata , settings ) ;
37
- }
38
- } ;
26
+ // This code is being kept in case we add a feature-plugin-only block in future. It will be easy to reinstate.
27
+ // /**
28
+ // * Registers a new feature plugin block provided a unique name and an object
29
+ // * defining its behavior. Once registered, the block is made available as an
30
+ // * option to any editor interface where blocks are implemented.
31
+ // */
32
+ // export const registerFeaturePluginBlockType = (
33
+ // blockNameOrMetadata: string | BlockConfiguration,
34
+ // settings: Record< string, unknown >
35
+ // ): Block | undefined => {
36
+ // if ( WC_BLOCKS_PHASE > 1 ) {
37
+ // return registerBlockType( blockNameOrMetadata, settings );
38
+ // }
39
+ // };
39
40
40
41
/**
41
42
* Checks if we're executing the code in an experimental build mode.
0 commit comments