@types/wordpress__block-editor 11.5.0 → 11.5.2

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.
@@ -8,7 +8,7 @@ This package contains type definitions for @wordpress/block-editor (https://gith
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/wordpress__block-editor.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 21 Mar 2023 00:02:52 GMT
11
+ * Last updated: Wed, 23 Aug 2023 23:33:06 GMT
12
12
  * Dependencies: [@types/react](https://npmjs.com/package/@types/react), [@types/react-autosize-textarea](https://npmjs.com/package/@types/react-autosize-textarea), [@types/wordpress__blocks](https://npmjs.com/package/@types/wordpress__blocks), [@types/wordpress__components](https://npmjs.com/package/@types/wordpress__components), [@types/wordpress__data](https://npmjs.com/package/@types/wordpress__data), [@types/wordpress__keycodes](https://npmjs.com/package/@types/wordpress__keycodes)
13
13
  * Global values: none
14
14
 
@@ -1,4 +1,4 @@
1
- /* eslint-disable no-unnecessary-generics */
1
+ /* eslint-disable @definitelytyped/no-unnecessary-generics */
2
2
  import { ComponentType } from 'react';
3
3
 
4
4
  import { EditorColor } from '../../';
@@ -1,4 +1,4 @@
1
- /* eslint-disable no-unnecessary-generics */
1
+ /* eslint-disable @definitelytyped/no-unnecessary-generics */
2
2
  import { ComponentType } from 'react';
3
3
 
4
4
  import { EditorColor } from '../';
@@ -15,7 +15,7 @@ export { default as BlockVerticalAlignmentToolbar } from './block-vertical-align
15
15
  export { default as ButtonBlockAppender } from './button-block-appender';
16
16
  export { default as ColorPalette } from './color-palette';
17
17
  export { default as ContrastChecker } from './contrast-checker';
18
- export { default as InnerBlocks } from './inner-blocks';
18
+ export { default as InnerBlocks, useInnerBlocksProps } from './inner-blocks';
19
19
  export { default as InspectorAdvancedControls } from './inspector-advanced-controls';
20
20
  export { default as InspectorControls } from './inspector-controls';
21
21
  export { default as MediaPlaceholder } from './media-placeholder';
@@ -1,8 +1,10 @@
1
1
  import { TemplateArray } from '@wordpress/blocks';
2
- import { ComponentType } from 'react';
2
+ import { ComponentType, Ref } from 'react';
3
3
 
4
4
  import { EditorTemplateLock } from '../';
5
5
 
6
+ import { Merged, Reserved } from './use-block-props';
7
+
6
8
  declare namespace InnerBlocks {
7
9
  interface Props {
8
10
  allowedBlocks?: string[] | undefined;
@@ -53,4 +55,15 @@ declare const InnerBlocks: {
53
55
  DefaultBlockAppender: ComponentType<{ children?: never | undefined }>;
54
56
  };
55
57
 
58
+ export interface UseInnerBlocksProps {
59
+ <Props extends Record<string, unknown>>(
60
+ props?: Props & { ref?: Ref<unknown> },
61
+ options?: InnerBlocks.Props
62
+ ): Omit<Props, 'ref'> & Merged & Reserved;
63
+
64
+ save: (props?: Record<string, unknown>) => Record<string, unknown>;
65
+ }
66
+
67
+ export const useInnerBlocksProps: UseInnerBlocksProps;
68
+
56
69
  export default InnerBlocks;
@@ -1,4 +1,4 @@
1
- /* eslint-disable no-unnecessary-generics */
1
+ /* eslint-disable @definitelytyped/no-unnecessary-generics */
2
2
  import { Dashicon, DropZone } from '@wordpress/components';
3
3
  import { ComponentType, MouseEventHandler } from 'react';
4
4
 
@@ -1,4 +1,4 @@
1
- /* eslint-disable no-unnecessary-generics */
1
+ /* eslint-disable @definitelytyped/no-unnecessary-generics */
2
2
  import { ComponentType } from 'react';
3
3
 
4
4
  import { default as MediaPlaceholder } from '../media-placeholder';
@@ -1,4 +1,4 @@
1
- /* eslint-disable no-unnecessary-generics */
1
+ /* eslint-disable @definitelytyped/no-unnecessary-generics */
2
2
  import { BlockInstance } from '@wordpress/blocks';
3
3
  import { Autocomplete, ToolbarButton } from '@wordpress/components';
4
4
  import { ComponentType, HTMLProps, ReactNode } from 'react';
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/wordpress__block-editor",
3
- "version": "11.5.0",
3
+ "version": "11.5.2",
4
4
  "description": "TypeScript definitions for @wordpress/block-editor",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/wordpress__block-editor",
6
6
  "license": "MIT",
@@ -38,6 +38,6 @@
38
38
  "@wordpress/element": "^5.0.0",
39
39
  "react-autosize-textarea": "^7.1.0"
40
40
  },
41
- "typesPublisherContentHash": "eca7dba601fb5b81cfa55bfcc695155f9f4cd83cdd7c3cda8c92ab41c72cdb61",
41
+ "typesPublisherContentHash": "9076fa114118720655ee51de6287f8f2e74f7d4de7a0ccc3809eda5bc0754a47",
42
42
  "typeScriptVersion": "4.3"
43
43
  }