New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@editorjs/editorjs

Package Overview
Dependencies
Maintainers
1
Versions
122
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.1 to 2.19.2-rc.0

2

dist/editor.js.LICENSE.txt

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

*
* @version 2.19.1
* @version 2.19.2-rc.0
*

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

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

@@ -15,6 +15,7 @@ "main": "dist/editor.js",

"scripts": {
"build": "rimraf dist/* && yarn svg && yarn build:prod",
"build:win": "rimraf dist && yarn svg:win && yarn build:prod",
"build:dev": "webpack --mode development --progress --display-error-details --display-entrypoints --watch",
"build:prod": "webpack --mode production",
"clear": "rimraf dist && mkdirp dist",
"build": "yarn clear && yarn svg && yarn build:webpack:prod",
"build:dev": "yarn clear && yarn svg && yarn build:webpack:dev",
"build:webpack:dev": "webpack --mode development --progress --display-error-details --display-entrypoints --watch",
"build:webpack:prod": "webpack --mode production",
"lint": "eslint src/ --ext .ts && yarn lint:tests",

@@ -24,3 +25,2 @@ "lint:errors": "eslint src/ --ext .ts --quiet",

"lint:tests": "eslint test/ --ext .ts",
"svg:win": "if not exist dist md dist && yarn svg",
"svg": "svg-sprite-generate -d src/assets/ -o dist/sprite.svg",

@@ -61,2 +61,3 @@ "pull_tools": "git submodule update --init --recursive",

"license-webpack-plugin": "^2.1.4",
"mkdirp": "^1.0.4",
"postcss-apply": "^0.12.0",

@@ -63,0 +64,0 @@ "postcss-import": "^12.0.1",

@@ -8,3 +8,3 @@ <a href="https://editorjs.io/"><p align="center"><img src="https://capella.pics/79ce946a-d636-41cd-aa96-d3bc5ecfde03.jpg"></p></a>

[![Sponsors on Open Collective](https://opencollective.com/editorjs/sponsors/badge.svg)](#sponsors)
[![](https://flat.badgen.net/npm/license/@editorjs/editorjs)](https://www.npmjs.com/package/@editorjs/editorjs)
[![](https://img.shields.io/npm/l/@editorjs/editorjs?style=flat-square)](https://www.npmjs.com/package/@editorjs/editorjs)
[![Join the chat at https://gitter.im/codex-team/editor.js](https://badges.gitter.im/codex-team/editor.js.svg)](https://gitter.im/codex-team/editor.js?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

@@ -133,3 +133,2 @@

- Source from CDN
- Local file from project

@@ -162,6 +161,4 @@ ##### Option A. NPM install

##### Option C. Save source within your project
Or download the bundle file and use it from your server.
Copy the [editor.js](dist/editor.js) file to your project and load it.
```html

@@ -168,0 +165,0 @@ <script src="editor.js"></script>

@@ -14,2 +14,8 @@ /**

open(): void;
/**
* Toggles Block Setting of the current block
* @param {boolean} openingState — opening state of Block Setting
*/
toggleBlockSettings(openingState?: boolean): void;
}

@@ -14,3 +14,3 @@ import {ToolConstructable, ToolSettings} from '../tools';

/**
* Element where Editor will be append
* Element where Editor will be appended
*/

@@ -17,0 +17,0 @@ holder?: string | HTMLElement;

@@ -34,3 +34,3 @@ export interface SanitizerConfig {

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

@@ -21,4 +21,6 @@ import {ToolConfig} from './tool-config';

* Object passed to the Tool's constructor by {@link EditorConfig#tools}
*
* @template Config - the structure describing a config object supported by the tool
*/
export interface ToolSettings {
export interface ToolSettings <Config extends object = any> {

@@ -33,3 +35,3 @@ /**

*/
config?: ToolConfig;
config?: ToolConfig<Config>;

@@ -36,0 +38,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