Socket
Socket
Sign inDemoInstall

@toast-ui/editor

Package Overview
Dependencies
Maintainers
2
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@toast-ui/editor - npm Package Compare versions

Comparing version 3.0.0-alpha.1 to 3.0.0

types/toastmark.d.ts

2

dist/i18n/ar.js
/*!
* TOAST UI Editor : i18n
* @version 3.0.0-alpha.1
* @version 3.0.0
* @author NHN FE Development Lab <dl_javascript@nhn.com>

@@ -5,0 +5,0 @@ * @license MIT

/*!
* TOAST UI Editor : i18n
* @version 3.0.0-alpha.1
* @version 3.0.0
* @author NHN FE Development Lab <dl_javascript@nhn.com>

@@ -5,0 +5,0 @@ * @license MIT

/*!
* TOAST UI Editor : i18n
* @version 3.0.0-alpha.1
* @version 3.0.0
* @author NHN FE Development Lab <dl_javascript@nhn.com>

@@ -5,0 +5,0 @@ * @license MIT

/*!
* TOAST UI Editor : i18n
* @version 3.0.0-alpha.1
* @version 3.0.0
* @author NHN FE Development Lab <dl_javascript@nhn.com>

@@ -5,0 +5,0 @@ * @license MIT

/*!
* TOAST UI Editor : i18n
* @version 3.0.0-alpha.1
* @version 3.0.0
* @author NHN FE Development Lab <dl_javascript@nhn.com>

@@ -5,0 +5,0 @@ * @license MIT

/*!
* TOAST UI Editor : i18n
* @version 3.0.0-alpha.1
* @version 3.0.0
* @author NHN FE Development Lab <dl_javascript@nhn.com>

@@ -5,0 +5,0 @@ * @license MIT

/*!
* TOAST UI Editor : i18n
* @version 3.0.0-alpha.1
* @version 3.0.0
* @author NHN FE Development Lab <dl_javascript@nhn.com>

@@ -5,0 +5,0 @@ * @license MIT

/*!
* TOAST UI Editor : i18n
* @version 3.0.0-alpha.1
* @version 3.0.0
* @author NHN FE Development Lab <dl_javascript@nhn.com>

@@ -5,0 +5,0 @@ * @license MIT

/*!
* TOAST UI Editor : i18n
* @version 3.0.0-alpha.1
* @version 3.0.0
* @author NHN FE Development Lab <dl_javascript@nhn.com>

@@ -5,0 +5,0 @@ * @license MIT

/*!
* TOAST UI Editor : i18n
* @version 3.0.0-alpha.1
* @version 3.0.0
* @author NHN FE Development Lab <dl_javascript@nhn.com>

@@ -5,0 +5,0 @@ * @license MIT

/*!
* TOAST UI Editor : i18n
* @version 3.0.0-alpha.1
* @version 3.0.0
* @author NHN FE Development Lab <dl_javascript@nhn.com>

@@ -5,0 +5,0 @@ * @license MIT

/*!
* TOAST UI Editor : i18n
* @version 3.0.0-alpha.1
* @version 3.0.0
* @author NHN FE Development Lab <dl_javascript@nhn.com>

@@ -5,0 +5,0 @@ * @license MIT

/*!
* TOAST UI Editor : i18n
* @version 3.0.0-alpha.1
* @version 3.0.0
* @author NHN FE Development Lab <dl_javascript@nhn.com>

@@ -5,0 +5,0 @@ * @license MIT

/*!
* TOAST UI Editor : i18n
* @version 3.0.0-alpha.1
* @version 3.0.0
* @author NHN FE Development Lab <dl_javascript@nhn.com>

@@ -5,0 +5,0 @@ * @license MIT

/*!
* TOAST UI Editor : i18n
* @version 3.0.0-alpha.1
* @version 3.0.0
* @author NHN FE Development Lab <dl_javascript@nhn.com>

@@ -5,0 +5,0 @@ * @license MIT

/*!
* TOAST UI Editor : i18n
* @version 3.0.0-alpha.1
* @version 3.0.0
* @author NHN FE Development Lab <dl_javascript@nhn.com>

@@ -5,0 +5,0 @@ * @license MIT

/*!
* TOAST UI Editor : i18n
* @version 3.0.0-alpha.1
* @version 3.0.0
* @author NHN FE Development Lab <dl_javascript@nhn.com>

@@ -5,0 +5,0 @@ * @license MIT

/*!
* TOAST UI Editor : i18n
* @version 3.0.0-alpha.1
* @version 3.0.0
* @author NHN FE Development Lab <dl_javascript@nhn.com>

@@ -5,0 +5,0 @@ * @license MIT

/*!
* TOAST UI Editor : i18n
* @version 3.0.0-alpha.1
* @version 3.0.0
* @author NHN FE Development Lab <dl_javascript@nhn.com>

@@ -5,0 +5,0 @@ * @license MIT

/*!
* TOAST UI Editor : i18n
* @version 3.0.0-alpha.1
* @version 3.0.0
* @author NHN FE Development Lab <dl_javascript@nhn.com>

@@ -5,0 +5,0 @@ * @license MIT

/*!
* TOAST UI Editor : i18n
* @version 3.0.0-alpha.1
* @version 3.0.0
* @author NHN FE Development Lab <dl_javascript@nhn.com>

@@ -5,0 +5,0 @@ * @license MIT

{
"name": "@toast-ui/editor",
"version": "3.0.0-alpha.1",
"version": "3.0.0",
"description": "GFM Markdown Wysiwyg Editor - Productive and Extensible",

@@ -24,4 +24,12 @@ "keywords": [

"./viewer": {
"import": "./dist/esm/indexViewer.js"
}
"import": "./dist/esm/indexViewer.js",
"require": "./dist/toastui-editor-viewer.js"
},
"./dist/toastui-editor-viewer": "./dist/toastui-editor-viewer.js",
"./dist/toastui-editor.css": "./dist/toastui-editor.css",
"./dist/toastui-editor-viewer.css": "./dist/toastui-editor-viewer.css",
"./dist/theme/toastui-editor-dark.css": "./dist/theme/toastui-editor-dark.css",
"./toastui-editor.css": "./dist/toastui-editor.css",
"./toastui-editor-viewer.css": "./dist/toastui-editor-viewer.css",
"./toastui-editor-dark.css": "./dist/theme/toastui-editor-dark.css"
},

@@ -60,4 +68,5 @@ "types": "types/index.d.ts",

"note": "tui-note --tag=$(git describe --tags)",
"doc:serve": "tuidoc --serv",
"doc": "tuidoc"
"ts2js": "tsc --outDir tmpdoc --sourceMap false --target ES2015 --noEmit false",
"doc:dev": "npm run ts2js && tuidoc --serv",
"doc": "npm run ts2js && tuidoc"
},

@@ -64,0 +73,0 @@ "devDependencies": {

@@ -30,7 +30,7 @@ # ![TOAST UI Editor](https://uicdn.toast.com/toastui/img/tui-editor-bi.png)

- [Getting Started](https://github.com/nhn/tui.editor/blob/main/docs/en/getting-started.md)
- [Getting Started](https://github.com/nhn/tui.editor/blob/master/docs/en/getting-started.md)
- [APIs](https://nhn.github.io/tui.editor/latest/)
- v3.0 Migration Guide
- [English](https://github.com/nhn/tui.editor/blob/main/docs/v3.0-migration-guide.md)
- [한국어](https://github.com/nhn/tui.editor/blob/main/docs/v3.0-migration-guide-ko.md)
- [English](https://github.com/nhn/tui.editor/blob/master/docs/v3.0-migration-guide.md)
- [한국어](https://github.com/nhn/tui.editor/blob/master/docs/v3.0-migration-guide-ko.md)

@@ -175,4 +175,4 @@ You can also see the older versions of API page on the [releases page](https://github.com/nhn/tui.editor/releases).

- [Viewer](https://github.com/nhn/tui.editor/blob/main/apps/editor/docs/viewer.md)
- [Plugins](https://github.com/nhn/tui.editor/blob/main/apps/editor/docs/plugins.md)
- [Internationalization (i18n)](https://github.com/nhn/tui.editor/blob/main/apps/editor/docs/i18n.md)
- [Viewer](https://github.com/nhn/tui.editor/blob/master/apps/editor/docs/en/viewer.md)
- [Plugins](https://github.com/nhn/tui.editor/blob/master/apps/editor/docs/en/plugins.md)
- [Internationalization (i18n)](https://github.com/nhn/tui.editor/blob/master/apps/editor/docs/en/i18n.md)
import { NodeType, MarkType, Schema, Node as ProsemirrorNode, Mark } from 'prosemirror-model';
import { MdNode, MdNodeType, RendererOptions, HTMLToken, MdPos } from '@toast-ui/toastmark';
import { MdNode, MdNodeType, RendererOptions, HTMLToken, MdPos } from './toastmark';
import { WwNodeType, WwMarkType } from './wysiwyg';

@@ -23,3 +23,3 @@

closeNode(): ProsemirrorNode | null;
convertNode(mdNode: MdNode, focusedNodeInfo: FocusedNodeInfo): ProsemirrorNode | null;
convertNode(mdNode: MdNode, infoForPosSync: InfoForPosSync): ProsemirrorNode | null;
convertByDOMParser(root: HTMLElement): void;

@@ -55,12 +55,7 @@ }

text(text: string, escaped?: boolean): void;
convertBlock(
node: ProsemirrorNode,
parent: ProsemirrorNode,
index: number,
focusedNodeInfo?: FocusedNodeInfo
): void;
convertBlock(node: ProsemirrorNode, parent: ProsemirrorNode, index: number): void;
convertInline(parent: ProsemirrorNode): void;
convertList(node: ProsemirrorNode, delim: string, firstDelimFn: FirstDelimFn): void;
convertTableCell(node: ProsemirrorNode): void;
convertNode(parent: ProsemirrorNode, focusedNodeInfo?: FocusedNodeInfo): string;
convertNode(parent: ProsemirrorNode, infoForPosSync?: InfoForPosSync): string;
}

@@ -67,0 +62,0 @@

@@ -1,9 +0,9 @@

import { Schema, NodeSpec, Fragment } from 'prosemirror-model';
import { Schema, NodeSpec, MarkSpec, Fragment } from 'prosemirror-model';
import { EditorView, Decoration, DecorationSet } from 'prosemirror-view';
import { EditorState, Plugin, Selection, TextSelection } from 'prosemirror-state';
import { HTMLConvertorMap, MdPos, Sourcepos } from '@toast-ui/toastmark';
import { HTMLConvertorMap, MdPos, Sourcepos } from './toastmark';
import { Emitter, Handler } from './event';
import { Context, EditorAllCommandMap, EditorCommandFn, SpecManager } from './spec';
import { ToMdConvertorMap } from './convertor';
import { DefaultUI, ToolbarItemOptions } from './ui';
import { ToolbarItemOptions, IndexList } from './ui';
import { CommandFn, PluginInfo } from './plugin';

@@ -114,4 +114,4 @@

export type PluginFn = (context: PluginContext, options?: Record<string, any>) => PluginInfo | null;
export type EditorPlugin = PluginFn | [PluginFn, Record<string, any>];
export type PluginFn = (context: PluginContext, options?: any) => PluginInfo | null;
export type EditorPlugin = PluginFn | [PluginFn, any];

@@ -245,3 +245,5 @@ export interface EditorOptions {

export class Editor extends EditorCore {
getDefaultUI(): DefaultUI;
insertToolbarItem({ groupIndex, itemIndex }: IndexList, item: string | ToolbarItemOptions): void;
removeToolbarItem(itemName: string): void;
}

@@ -248,0 +250,0 @@

@@ -1,2 +0,2 @@

// Type definitions for TOAST UI Editor v3.0.0-alpha.1
// Type definitions for TOAST UI Editor v3.0.0
// TypeScript Version: 4.2.3

@@ -36,3 +36,3 @@ import {

HTMLConvertorMap as ToHTMLConvertorMap,
} from '@toast-ui/toastmark';
} from './toastmark';
export { ToMdConvertorMap } from './convertor';

@@ -65,5 +65,1 @@ export { Emitter, Handler } from './event';

}
export declare module '@toast-ui/editor/dist/toastui-editor-viewer' {
export default Viewer;
}

@@ -1,2 +0,2 @@

import { MdNode, TableMdNode } from '@toast-ui/toastmark';
import { MdNode, TableMdNode, Sourcepos, NodeWalker } from './toastmark';

@@ -38,7 +38,24 @@ export interface TableRowMdNode extends MdNode {

export interface HTMLMdNode extends MdNode {
export interface HTMLMdNode {
type: string;
id: number;
parent: MdNode | null;
prev: MdNode | null;
next: MdNode | null;
sourcepos?: Sourcepos;
firstChild: MdNode | null;
lastChild: MdNode | null;
literal: string | null;
isContainer(): boolean;
unlink(): void;
replaceWith(node: MdNode): void;
insertAfter(node: MdNode): void;
insertBefore(node: MdNode): void;
appendChild(child: MdNode): void;
prependChild(child: MdNode): void;
walker(): NodeWalker;
attrs?: Record<string, string | null>;
childrenHTML?: string;
}

@@ -5,3 +5,3 @@ import { Plugin, EditorState } from 'prosemirror-state';

import { HTMLConvertorMap, CustomParserMap } from '@toast-ui/toastmark';
import { HTMLConvertorMap, CustomParserMap } from './toastmark';
import { Emitter } from './event';

@@ -8,0 +8,0 @@ import { ToMdConvertorMap } from './convertor';

@@ -5,3 +5,3 @@ import { Schema } from 'prosemirror-model';

import { Command } from 'prosemirror-commands';
import { ToastMark } from '@toast-ui/toastmark';
import { ToastMark } from './toastmark';
import { Emitter } from './event';

@@ -8,0 +8,0 @@

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

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

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