@types/wordpress__block-editor 14.21.4 → 14.21.6
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:
|
|
11
|
+
* Last updated: Sun, 28 Dec 2025 19:32:22 GMT
|
|
12
12
|
* Dependencies: [@types/react](https://npmjs.com/package/@types/react), [@types/wordpress__blocks](https://npmjs.com/package/@types/wordpress__blocks), [@wordpress/components](https://npmjs.com/package/@wordpress/components), [@wordpress/data](https://npmjs.com/package/@wordpress/data), [@wordpress/element](https://npmjs.com/package/@wordpress/element), [@wordpress/keycodes](https://npmjs.com/package/@wordpress/keycodes), [react-autosize-textarea](https://npmjs.com/package/react-autosize-textarea)
|
|
13
13
|
|
|
14
14
|
# Credits
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JSX } from "react";
|
|
2
2
|
|
|
3
3
|
declare namespace HeadingLevelDropdown {
|
|
4
|
-
type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
4
|
+
type HeadingLevel = 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
5
5
|
interface Props {
|
|
6
6
|
options?: HeadingLevel[] | (readonly HeadingLevel[]) | undefined;
|
|
7
7
|
value?: HeadingLevel | undefined;
|
|
@@ -17,6 +17,10 @@ declare namespace RichText {
|
|
|
17
17
|
autocompleters?: ComponentProps<typeof Autocomplete>["completers"] | undefined;
|
|
18
18
|
children?: never | undefined;
|
|
19
19
|
className?: string | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Disables inserting line breaks on Enter when it is set to true
|
|
22
|
+
*/
|
|
23
|
+
disableLineBreaks?: boolean | undefined;
|
|
20
24
|
identifier?: string | undefined;
|
|
21
25
|
inlineToolbar?: boolean | undefined;
|
|
22
26
|
/**
|
|
@@ -66,6 +70,10 @@ declare namespace RichText {
|
|
|
66
70
|
* if provided.
|
|
67
71
|
*/
|
|
68
72
|
value: string;
|
|
73
|
+
/**
|
|
74
|
+
* By default, all formatting controls are present. This setting can be used to remove formatting controls that would make content interactive. This is useful if you want to make content that is already interactive editable.
|
|
75
|
+
*/
|
|
76
|
+
withoutInteractiveFormatting?: boolean | undefined;
|
|
69
77
|
wrapperClassName?: string | undefined;
|
|
70
78
|
}
|
|
71
79
|
interface ContentProps<T extends keyof HTMLElementTagNameMap> extends HTMLProps<T> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/wordpress__block-editor",
|
|
3
|
-
"version": "14.21.
|
|
3
|
+
"version": "14.21.6",
|
|
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",
|
|
@@ -44,6 +44,6 @@
|
|
|
44
44
|
"react-autosize-textarea": "^7.1.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {},
|
|
47
|
-
"typesPublisherContentHash": "
|
|
47
|
+
"typesPublisherContentHash": "bedb14407981ff7b865d3347a8be5b4d17afdc8b11570fcef9aac5b5798bd218",
|
|
48
48
|
"typeScriptVersion": "5.2"
|
|
49
49
|
}
|
|
@@ -191,6 +191,15 @@ export function getBlocks(rootClientId?: string): BlockInstance[];
|
|
|
191
191
|
*/
|
|
192
192
|
export function getBlocksByClientId(clientIds: string | string[]): Array<BlockInstance | null>;
|
|
193
193
|
|
|
194
|
+
/**
|
|
195
|
+
* Returns all blocks that match a blockName. Results include nested blocks.
|
|
196
|
+
*
|
|
197
|
+
* @param blockName - Block name(s) for which clientIds are to be returned.
|
|
198
|
+
*
|
|
199
|
+
* @returns Array of clientIds of blocks with name equal to blockName.
|
|
200
|
+
*/
|
|
201
|
+
export function getBlocksByName(blockName: string | string[]): string[];
|
|
202
|
+
|
|
194
203
|
/**
|
|
195
204
|
* Returns an array containing the clientIds of all descendants of the blocks given.
|
|
196
205
|
*
|