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

draftjs-utils

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

draftjs-utils - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

18

js/inline.js

@@ -36,2 +36,4 @@ /* @flow */

CODE: true,
SUPERSCRIPT: true,
SUBSCRIPT: true,
};

@@ -50,3 +52,3 @@ for (let i = 0; i < selectedBlocks.size; i += 1) {

const inlineStylesAtOffset = selectedBlocks.get(i).getInlineStyleAt(j);
['BOLD', 'ITALIC', 'UNDERLINE', 'STRIKETHROUGH', 'CODE'].forEach((style) => {
['BOLD', 'ITALIC', 'UNDERLINE', 'STRIKETHROUGH', 'CODE', 'SUPERSCRIPT', 'SUBSCRIPT'].forEach((style) => {
inlineStyles[style] = inlineStyles[style] && inlineStylesAtOffset.get(style) === style;

@@ -145,2 +147,14 @@ });

fontFamily: {},
SUPERSCRIPT: {
fontSize: 11,
position: 'relative',
top: -8,
display: 'inline-flex',
},
SUBSCRIPT: {
fontSize: 11,
position: 'relative',
bottom: -8,
display: 'inline-flex',
},
};

@@ -174,2 +188,4 @@ colors.forEach((color) => {

...customInlineStylesMap.fontFamily,
SUPERSCRIPT: customInlineStylesMap.SUPERSCRIPT,
SUBSCRIPT: customInlineStylesMap.SUBSCRIPT,
};

@@ -176,0 +192,0 @@

2

package.json
{
"name": "draftjs-utils",
"version": "0.3.1",
"version": "0.3.2",
"description": "Collection of utility function for use with Draftjs.",

@@ -5,0 +5,0 @@ "main": "lib/draftjs-utils.js",

Sorry, the diff of this file is too big to display

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