@wp-typia/block-types 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,3 +21,11 @@ export declare const BLOCK_VARIATION_SCOPES: readonly ["block", "inserter", "tra
21
21
  export type BlockVariation<TAttributes extends BlockAttributes = BlockAttributes> = WordPressBlockVariation<TAttributes>;
22
22
  export type RegisteredBlockType<TAttributes extends BlockAttributes = BlockAttributes> = WordPressRegisteredBlockType<TAttributes>;
23
23
  export type RegisterBlockTypeResult<TAttributes extends BlockAttributes = BlockAttributes> = RegisteredBlockType<TAttributes> | undefined;
24
+ /**
25
+ * Runtime shim for scaffolded registrations.
26
+ *
27
+ * Generated projects keep strong typing around scaffold metadata while
28
+ * centralizing the compatibility cast required by the currently published
29
+ * `@wordpress/blocks` registration surface.
30
+ */
31
+ export declare function registerScaffoldBlockType<TAttributes extends BlockAttributes = BlockAttributes, TSettings extends object = object>(blockName: string, settings: TSettings): RegisterBlockTypeResult<TAttributes>;
@@ -1,5 +1,9 @@
1
+ import { registerBlockType } from '@wordpress/blocks';
1
2
  export const BLOCK_VARIATION_SCOPES = [
2
3
  'block',
3
4
  'inserter',
4
5
  'transform',
5
6
  ];
7
+ export function registerScaffoldBlockType(blockName, settings) {
8
+ return registerBlockType(blockName, settings);
9
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wp-typia/block-types",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Shared WordPress block semantic types derived from Gutenberg and unofficial declarations",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",