@toast-ui/editor 2.5.0 → 2.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Type definitions for TOAST UI Editor v2.5.0
1
+ // Type definitions for TOAST UI Editor v2.5.4
2
2
  // TypeScript Version: 3.2.2
3
3
 
4
4
  /// <reference types="codemirror" />
@@ -150,7 +150,7 @@ declare namespace toastui {
150
150
  context: Context
151
151
  ) => HTMLToken | HTMLToken[] | null;
152
152
 
153
- type CustomHTMLRendererMap = Partial<Record<NodeType, CustomHTMLRenderer>>;
153
+ export type CustomHTMLRendererMap = Partial<Record<NodeType, CustomHTMLRenderer>>;
154
154
  // Toastmark custom renderer type end
155
155
  interface SelectionRange {
156
156
  from: {
@@ -259,7 +259,7 @@ declare namespace toastui {
259
259
  customConvertor?: ConvertorClass;
260
260
  placeholder?: string;
261
261
  linkAttribute?: LinkAttribute;
262
- customHTMLRenderer?: CustomHTMLRenderer;
262
+ customHTMLRenderer?: CustomHTMLRendererMap;
263
263
  referenceDefinition?: boolean;
264
264
  customHTMLSanitizer?: CustomHTMLSanitizer;
265
265
  previewHighlight?: boolean;
@@ -279,7 +279,7 @@ declare namespace toastui {
279
279
  customHTMLRenderer?: CustomHTMLRenderer;
280
280
  referenceDefinition?: boolean;
281
281
  customHTMLSanitizer?: CustomHTMLSanitizer;
282
- frontMatter?: boolean
282
+ frontMatter?: boolean;
283
283
  }
284
284
 
285
285
  interface MarkdownEditorOptions {
@@ -853,6 +853,9 @@ declare namespace toastui {
853
853
  }
854
854
 
855
855
  declare module '@toast-ui/editor' {
856
+ export type SourceType = toastui.SourceType;
857
+ export type MarkdownToolbarState = toastui.MarkdownToolbarState;
858
+ export type WysiwygToolbarState = toastui.WysiwygToolbarState;
856
859
  export type EditorOptions = toastui.EditorOptions;
857
860
  export type CustomConvertor = toastui.ConvertorClass;
858
861
  export type EventMap = toastui.EventMap;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toast-ui/editor",
3
- "version": "2.5.0",
3
+ "version": "2.5.4",
4
4
  "description": "GFM Markdown Wysiwyg Editor - Productive and Extensible",
5
5
  "keywords": [
6
6
  "nhn",