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.15.1 to 2.16.0

types/api/tooltip.d.ts

38

dist/editor.licenses.txt

@@ -5,3 +5,3 @@ @babel/polyfill

Copyright (c) 2014-2018 Sebastian McKenzie and other contributors
Copyright (c) 2014-present Sebastian McKenzie and other contributors

@@ -32,3 +32,3 @@ Permission is hereby granted, free of charge, to any person obtaining

Copyright (c) 2014-2018 Sebastian McKenzie <sebmck@gmail.com>
Copyright (c) 2014-present Sebastian McKenzie and other contributors

@@ -155,5 +155,16 @@ Permission is hereby granted, free of charge, to any person obtaining

codex-tooltip
MIT
Copyright 2019 CodeX https://codex.so
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
core-js
MIT
Copyright (c) 2014-2018 Denis Pushkarev
Copyright (c) 2014-2019 Denis Pushkarev

@@ -385,1 +396,22 @@ Permission is hereby granted, free of charge, to any person obtaining a copy

MIT
MIT License
Copyright (c) 2014-present, Facebook, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

2

package.json
{
"name": "@editorjs/editorjs",
"version": "2.15.1",
"version": "2.16.0",
"description": "Editor.js — Native JS, based on API and Open Source",

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

@@ -11,2 +11,3 @@ export * from './blocks';

export * from './notifier';
export * from './inline-toolbar'
export * from './tooltip';
export * from './inline-toolbar';
import {ToolConstructable, ToolSettings} from '../tools';
import {OutputData} from '../index';
import {LogLevels, OutputData} from '../index';
import {SanitizerConfig} from './sanitizer-config';

@@ -61,2 +61,7 @@

/**
* Editors log level (how many logs you want to see)
*/
logLevel?: LogLevels;
/**
* Fires when Editor is ready to work

@@ -63,0 +68,0 @@ */

@@ -5,1 +5,2 @@ export * from './editor-config';

export * from './conversion-config';
export * from './log-levels';

@@ -8,4 +8,17 @@ /**

import {EditorConfig} from './configs';
import {Blocks, Caret, Events, Listeners, Notifier, Sanitizer, Saver, Selection, Styles, Toolbar, InlineToolbar} from './api';
import {OutputData} from "./data-formats/output-data";
import {
Blocks,
Caret,
Events,
InlineToolbar,
Listeners,
Notifier,
Sanitizer,
Saver,
Selection,
Styles,
Toolbar,
Tooltip,
} from './api';
import {OutputData} from './data-formats/output-data';

@@ -38,3 +51,3 @@ /**

export {BlockTune, BlockTuneConstructable} from './block-tunes';
export {EditorConfig, SanitizerConfig, PasteConfig} from './configs';
export {EditorConfig, SanitizerConfig, PasteConfig, LogLevels, ConversionConfig} from './configs';
export {OutputData} from './data-formats/output-data';

@@ -58,2 +71,3 @@

inlineToolbar: InlineToolbar;
tooltip: Tooltip;
}

@@ -88,3 +102,3 @@

*/
save(): Promise<OutputData>;
public save(): Promise<OutputData>;

@@ -94,3 +108,3 @@ /**

*/
clear(): void;
public clear(): void;

@@ -100,3 +114,3 @@ /**

*/
render(data: OutputData): Promise<void>;
public render(data: OutputData): Promise<void>;

@@ -106,3 +120,3 @@ /**

*/
focus(atEnd?: boolean): boolean;
public focus(atEnd?: boolean): boolean;

@@ -112,3 +126,3 @@ /**

*/
on(eventName: string, callback: (data?: any) => void): void;
public on(eventName: string, callback: (data?: any) => void): void;

@@ -118,3 +132,3 @@ /**

*/
off(eventName: string, callback: (data?: any) => void): void;
public off(eventName: string, callback: (data?: any) => void): void;

@@ -124,3 +138,3 @@ /**

*/
emit(eventName: string, data: any): void;
public emit(eventName: string, data: any): void;

@@ -127,0 +141,0 @@ /**

@@ -49,2 +49,21 @@ import {ConversionConfig, PasteConfig, SanitizerConfig} from '../configs';

onPaste?(event: PasteEvent): void;
/**
* Lifecycle hooks
*/
/**
* Called after block content added to the page
*/
rendered?(): void;
/**
* Called each time block content is updated
*/
updated?(): void;
/**
* Called after block removed from the page but before instance is deleted
*/
removed?(): void;
}

@@ -51,0 +70,0 @@

@@ -18,3 +18,2 @@ import {API, ToolSettings} from '../index';

export interface BaseToolConstructable {
/**

@@ -31,2 +30,7 @@ * Define Tool type as Inline

/**
* Title of Inline Tool
*/
title?: string;
/**
* Describe constructor parameters

@@ -33,0 +37,0 @@ */

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

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