Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@wordpress/rich-text

Package Overview
Dependencies
Maintainers
25
Versions
235
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wordpress/rich-text - npm Package Compare versions

Comparing version 5.11.0 to 5.12.0

1

build-module/index.js

@@ -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 @@

18

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc