@types/wordpress__block-editor 11.5.10 → 11.5.12

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: Mon, 29 Jan 2024 05:06:52 GMT
11
+ * Last updated: Sat, 16 Mar 2024 12:09:31 GMT
12
12
  * Dependencies: [@types/react](https://npmjs.com/package/@types/react), [@types/wordpress__blocks](https://npmjs.com/package/@types/wordpress__blocks), [@types/wordpress__components](https://npmjs.com/package/@types/wordpress__components), [@types/wordpress__keycodes](https://npmjs.com/package/@types/wordpress__keycodes), [@wordpress/data](https://npmjs.com/package/@wordpress/data), [@wordpress/element](https://npmjs.com/package/@wordpress/element), [react-autosize-textarea](https://npmjs.com/package/react-autosize-textarea)
13
13
 
14
14
  # Credits
@@ -29,11 +29,13 @@ declare namespace InnerBlocks {
29
29
  /**
30
30
  * Template locking allows locking the `InnerBlocks` area for the current template.
31
31
  *
32
+ * - `'contentOnly'` — prevents all operations. Additionally, the block types that don't have content are hidden from the list view and can't gain focus within the block list. Unlike the other lock types, this is not overrideable by children.
32
33
  * - `'all'` — prevents all operations. It is not possible to insert new blocks. Move existing blocks or delete them.
33
34
  * - `'insert'` — prevents inserting or removing blocks, but allows moving existing ones.
34
35
  * - `false` — prevents locking from being applied to an `InnerBlocks` area even if a parent block contains locking.
35
36
  *
36
37
  * If locking is not set in an `InnerBlocks` area: the locking of the parent `InnerBlocks` area is used.
38
+ * Note that contentOnly can't be overridden: it's present, the templateLock value of any children is ignored.
37
39
  *
38
40
  * If the block is a top level block: the locking of the Custom Post Type is used.
39
41
  */
@@ -3,6 +3,7 @@ import { FC, JSX, ReactNode } from "react";
3
3
 
4
4
  declare namespace InspectorControls {
5
5
  interface Props {
6
+ group?: string;
6
7
  children: ReactNode;
7
8
  }
8
9
  }
@@ -20,7 +20,7 @@ export const store: BlockEditorStoreDescriptor;
20
20
 
21
21
  export type EditorBlockMode = "html" | "visual";
22
22
  export type EditorMode = "text" | "visual";
23
- export type EditorTemplateLock = "all" | "insert" | false;
23
+ export type EditorTemplateLock = "contentOnly" | "all" | "insert" | false;
24
24
 
25
25
  export interface EditorBaseSetting {
26
26
  name: string;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/wordpress__block-editor",
3
- "version": "11.5.10",
3
+ "version": "11.5.12",
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": "10a779cfeb61bb4ab1aa5648707b51cbdf50f7a0dbc8e9974b2dcd313629af38",
42
- "typeScriptVersion": "4.6"
41
+ "typesPublisherContentHash": "1d55a5822166f52b50696464fca3b46ddc96210549b93aec73129f2df6feaa38",
42
+ "typeScriptVersion": "4.7"
43
43
  }