@types/wordpress__block-editor 6.0.6 → 11.0.0

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,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: Wed, 30 Mar 2022 19:31:45 GMT
12
- * Dependencies: [@types/wordpress__blocks](https://npmjs.com/package/@types/wordpress__blocks), [@types/wordpress__data](https://npmjs.com/package/@types/wordpress__data), [@types/react](https://npmjs.com/package/@types/react), [@types/wordpress__components](https://npmjs.com/package/@types/wordpress__components), [@types/react-autosize-textarea](https://npmjs.com/package/@types/react-autosize-textarea), [@types/wordpress__keycodes](https://npmjs.com/package/@types/wordpress__keycodes)
11
+ * Last updated: Tue, 27 Dec 2022 15:02:36 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
@@ -6,6 +6,9 @@ declare namespace BlockNavigationDropdown {
6
6
  isDisabled?: boolean | undefined;
7
7
  }
8
8
  }
9
+ /**
10
+ * @deprecated since 9.0.
11
+ */
9
12
  declare const BlockNavigationDropdown: ComponentType<BlockNavigationDropdown.Props>;
10
13
 
11
14
  export default BlockNavigationDropdown;
@@ -0,0 +1,2 @@
1
+ export { getTypographyClassesAndStyles } from './use-typography-props';
2
+ export { useCachedTruthy } from './use-cached-truthy';
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Keeps an up-to-date copy of the passed value and returns it. If value becomes falsy, it will return the last truthy copy.
3
+ *
4
+ * @param value
5
+ * @return value
6
+ */
7
+ export function useCachedTruthy<T>(value: T): T;
@@ -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 6.0
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": "6.0.6",
3
+ "version": "11.0.0",
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": "^3.0.0",
38
+ "@wordpress/element": "^5.0.0",
39
39
  "react-autosize-textarea": "^7.1.0"
40
40
  },
41
- "typesPublisherContentHash": "7309e469e3ef95ded043c5979866b1492606d16ae6b84b1f94f71a91c9383f5d",
42
- "typeScriptVersion": "3.9"
41
+ "typesPublisherContentHash": "90638084d549d342905f0926056d201ce4e658fd31556bbf8884bf155f2d225e",
42
+ "typeScriptVersion": "4.2"
43
43
  }