@types/wordpress__block-editor 7.0.0 → 11.0.1
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.
- wordpress__block-editor/README.md +2 -2
- wordpress__block-editor/components/block-navigation/dropdown.d.ts +3 -0
- wordpress__block-editor/components/color-palette/with-color-context.d.ts +1 -1
- wordpress__block-editor/components/colors.d.ts +1 -1
- wordpress__block-editor/components/media-placeholder.d.ts +1 -1
- wordpress__block-editor/components/media-upload/index.d.ts +1 -1
- wordpress__block-editor/components/rich-text.d.ts +1 -1
- wordpress__block-editor/hooks/index.d.ts +2 -0
- wordpress__block-editor/hooks/use-cached-truthy.d.ts +7 -0
- wordpress__block-editor/hooks/use-typography-props.d.ts +13 -0
- wordpress__block-editor/index.d.ts +2 -1
- wordpress__block-editor/package.json +4 -4
|
@@ -8,8 +8,8 @@ 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:
|
|
12
|
-
* Dependencies: [@types/
|
|
11
|
+
* Last updated: Fri, 30 Dec 2022 23:04:00 GMT
|
|
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
|
|
|
15
15
|
# Credits
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/* eslint-disable 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';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BlockAttributes } from '@wordpress/blocks';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Provides the CSS class names and inline styles for a block's typography support
|
|
5
|
+
* attributes.
|
|
6
|
+
*
|
|
7
|
+
* @param attributes Block attributes.
|
|
8
|
+
* @param fluidTypographySettings If boolean, whether the function should try to convert font sizes to fluid values,
|
|
9
|
+
* otherwise an object containing theme fluid typography settings.
|
|
10
|
+
*
|
|
11
|
+
* @return Typography block support derived CSS classes & styles.
|
|
12
|
+
*/
|
|
13
|
+
export function getTypographyClassesAndStyles(attributes: BlockAttributes, fluidTypographySettings: {minFontSize?: string} | boolean): {className: string, style: Record<string, string>};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for @wordpress/block-editor
|
|
1
|
+
// Type definitions for @wordpress/block-editor 11.0
|
|
2
2
|
// Project: https://github.com/WordPress/gutenberg/tree/master/packages/block-editor/README.md
|
|
3
3
|
// Definitions by: Derek Sifford <https://github.com/dsifford>
|
|
4
4
|
// Jon Surrell <https://github.com/sirreal>
|
|
@@ -9,6 +9,7 @@ import { BlockIconNormalized } from '@wordpress/blocks';
|
|
|
9
9
|
import { dispatch, select } from '@wordpress/data';
|
|
10
10
|
|
|
11
11
|
export * from './components';
|
|
12
|
+
export * from './hooks';
|
|
12
13
|
export * from './utils';
|
|
13
14
|
export { storeConfig } from './store';
|
|
14
15
|
export { SETTINGS_DEFAULTS } from './store/defaults';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/wordpress__block-editor",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.1",
|
|
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",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"@types/wordpress__components": "*",
|
|
36
36
|
"@types/wordpress__data": "*",
|
|
37
37
|
"@types/wordpress__keycodes": "*",
|
|
38
|
-
"@wordpress/element": "^
|
|
38
|
+
"@wordpress/element": "^5.0.0",
|
|
39
39
|
"react-autosize-textarea": "^7.1.0"
|
|
40
40
|
},
|
|
41
|
-
"typesPublisherContentHash": "
|
|
42
|
-
"typeScriptVersion": "
|
|
41
|
+
"typesPublisherContentHash": "df252f3cbf316d12812efba831157c545f171a1a4dd730ce9f08e038f1a32c62",
|
|
42
|
+
"typeScriptVersion": "4.2"
|
|
43
43
|
}
|