@wordpress/rich-text
Advanced tools
Comparing version 5.11.0 to 5.12.0
@@ -6,2 +6,3 @@ export { store } from './store'; | ||
export { getActiveFormat } from './get-active-format'; | ||
export { getActiveFormats } from './get-active-formats'; | ||
export { getActiveObject } from './get-active-object'; | ||
@@ -8,0 +9,0 @@ export { getTextContent } from './get-text-content'; |
@@ -128,2 +128,8 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "getActiveFormats", { | ||
enumerable: true, | ||
get: function () { | ||
return _getActiveFormats.getActiveFormats; | ||
} | ||
}); | ||
Object.defineProperty(exports, "getActiveObject", { | ||
@@ -248,2 +254,4 @@ enumerable: true, | ||
var _getActiveFormats = require("./get-active-formats"); | ||
var _getActiveObject = require("./get-active-object"); | ||
@@ -250,0 +258,0 @@ |
@@ -5,2 +5,4 @@ <!-- Learn how to maintain this file at https://github.com/WordPress/gutenberg/tree/HEAD/packages#maintaining-changelogs. --> | ||
## 5.12.0 (2022-07-27) | ||
## 5.11.0 (2022-07-13) | ||
@@ -7,0 +9,0 @@ |
{ | ||
"name": "@wordpress/rich-text", | ||
"version": "5.11.0", | ||
"version": "5.12.0", | ||
"description": "Rich text value and manipulation API.", | ||
@@ -33,9 +33,9 @@ "author": "The WordPress Contributors", | ||
"@babel/runtime": "^7.16.0", | ||
"@wordpress/a11y": "^3.13.0", | ||
"@wordpress/compose": "^5.11.0", | ||
"@wordpress/data": "^6.13.0", | ||
"@wordpress/element": "^4.11.0", | ||
"@wordpress/escape-html": "^2.13.0", | ||
"@wordpress/i18n": "^4.13.0", | ||
"@wordpress/keycodes": "^3.13.0", | ||
"@wordpress/a11y": "^3.14.0", | ||
"@wordpress/compose": "^5.12.0", | ||
"@wordpress/data": "^6.14.0", | ||
"@wordpress/element": "^4.12.0", | ||
"@wordpress/escape-html": "^2.14.0", | ||
"@wordpress/i18n": "^4.14.0", | ||
"@wordpress/keycodes": "^3.14.0", | ||
"lodash": "^4.17.21", | ||
@@ -51,3 +51,3 @@ "memize": "^1.1.0", | ||
}, | ||
"gitHead": "9d9d33bbdf317a4381b8ca1713e43bb50df653b3" | ||
"gitHead": "0315dbc240cb2aa146d7c1bafd251f004b88300e" | ||
} |
@@ -216,2 +216,15 @@ # Rich Text | ||
### getActiveFormats | ||
Gets the all format objects at the start of the selection. | ||
_Parameters_ | ||
- _value_ `RichTextValue`: Value to inspect. | ||
- _EMPTY_ACTIVE_FORMATS_ `Array`: Array to return if there are no active formats. | ||
_Returns_ | ||
- `RichTextFormatList`: Active format objects. | ||
### getActiveObject | ||
@@ -218,0 +231,0 @@ |
@@ -6,2 +6,3 @@ export { store } from './store'; | ||
export { getActiveFormat } from './get-active-format'; | ||
export { getActiveFormats } from './get-active-formats'; | ||
export { getActiveObject } from './get-active-object'; | ||
@@ -8,0 +9,0 @@ export { getTextContent } from './get-text-content'; |
@@ -16,3 +16,3 @@ /** | ||
it( 'should add add a new format type', () => { | ||
it( 'should add a new format type', () => { | ||
const original = deepFreeze( { | ||
@@ -19,0 +19,0 @@ 'core/bold': { name: 'core/bold' }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1386738
19957
504
Updated@wordpress/a11y@^3.14.0
Updated@wordpress/compose@^5.12.0
Updated@wordpress/data@^6.14.0
Updated@wordpress/element@^4.12.0
Updated@wordpress/i18n@^4.14.0
Updated@wordpress/keycodes@^3.14.0