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

@editorjs/editorjs

Package Overview
Dependencies
Maintainers
1
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@editorjs/editorjs - npm Package Compare versions

Comparing version 2.19.2-rc.1 to 2.19.2-rc.2

2

dist/editor.js.LICENSE.txt

@@ -20,3 +20,3 @@ /*!

*
* @version 2.19.2-rc.1
* @version 2.19.2-rc.2
*

@@ -23,0 +23,0 @@ * @licence Apache-2.0

{
"name": "@editorjs/editorjs",
"version": "2.19.2-rc.1",
"version": "2.19.2-rc.2",
"description": "Editor.js — Native JS, based on API and Open Source",

@@ -5,0 +5,0 @@ "main": "dist/editor.js",

@@ -0,1 +1,7 @@

/**
* Sanitizer config of each HTML element
* @see {@link https://github.com/guardian/html-janitor#options}
*/
type TagConfig = boolean | { [attr: string]: boolean | string };
export interface SanitizerConfig {

@@ -34,3 +40,3 @@ /**

*/
[key: string]: boolean|{[attr: string]: boolean|string}|((el?: Element) => any);
[key: string]: TagConfig | ((el: Element) => TagConfig);
}

@@ -5,12 +5,15 @@ import {BlockToolData} from '../tools';

* Output of one Tool
*
* @template Type - the string literal describing a tool type
* @template Data - the structure describing a data object supported by the tool
*/
export interface OutputBlockData {
export interface OutputBlockData<Type extends string = string, Data extends object = any> {
/**
* Too type
* Tool type
*/
type: string;
type: Type;
/**
* Saved Block data
*/
data: BlockToolData;
data: BlockToolData<Data>;
}

@@ -17,0 +20,0 @@

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

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