@progress/kendo-vue-editor 3.7.1 → 3.7.2

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.
@@ -1,4 +1,3 @@
1
- /// <reference types="prosemirror-model" />
2
1
  import * as shortcuts from '../config/shortcuts';
3
2
  import { ImageResizeOptions as ImageResizeOptionsCommon, Schema, NodeSpec, MarkSpec, Node, NodeType, Mark, MarkType, ParseOptions, EditorView, EditorState, Transaction, Plugin, PluginKey } from '@progress/kendo-editor-common';
4
3
  import { EditorToolsSettings } from '../config/toolsSettings';
@@ -12,13 +11,13 @@ export declare namespace EditorUtils {
12
11
  *
13
12
  * @returns {boolean} - If alignment is applied to any of the elements, returns `true`.
14
13
  */
15
- function alignBlocks(view: EditorView<any>, actions: EditorToolsSettings.AlignAction[], command?: EditorToolsSettings.Command): boolean;
14
+ function alignBlocks(view: EditorView, actions: EditorToolsSettings.AlignAction[], command?: EditorToolsSettings.Command): boolean;
16
15
  /**
17
16
  * Wraps the selection in a `span` element with inline styles.
18
17
  *
19
18
  * @returns {boolean} - If a style is applied to any of the elements, returns `true`.
20
19
  */
21
- function applyInlineStyle(view: EditorView<any>, options: {
20
+ function applyInlineStyle(view: EditorView, options: {
22
21
  style: string;
23
22
  value: string;
24
23
  }, command?: EditorToolsSettings.Command): boolean;
@@ -36,7 +35,7 @@ export declare namespace EditorUtils {
36
35
  *
37
36
  * @returns {boolean}
38
37
  */
39
- function canIndentList(state: EditorState<any>, nodeType: NodeType<any>): boolean;
38
+ function canIndentList(state: EditorState, nodeType: NodeType): boolean;
40
39
  /**
41
40
  * Checks if a node can be inserted in the current selection.
42
41
  *
@@ -44,13 +43,13 @@ export declare namespace EditorUtils {
44
43
  * @param {NodeType} nodeType - The type of the node that will be inserted.
45
44
  * @returns {boolean} - The node of this type can be inserted in the current selection.
46
45
  */
47
- function canInsert(state: EditorState<any>, nodeType: NodeType<any>): boolean;
46
+ function canInsert(state: EditorState, nodeType: NodeType): boolean;
48
47
  /**
49
48
  * Checks if any of the `list` elements in the selection can be outdented.
50
49
  *
51
50
  * @returns {boolean}
52
51
  */
53
- function canOutdentList(state: EditorState<any>, listsTypes: {
52
+ function canOutdentList(state: EditorState, listsTypes: {
54
53
  listItem: string;
55
54
  orderedList: string;
56
55
  bulletList: string;
@@ -70,14 +69,14 @@ export declare namespace EditorUtils {
70
69
  * @param {ParseOptions} parseOptions - The HTML parsing options. Defaults to `{ preserveWhitespace: 'full' }`.
71
70
  * @returns {Node} - The `document` object of the Editor.
72
71
  */
73
- function createDocument(schema: Schema<any, any>, html: string, parseOptions?: ParseOptions<any>): Node<any>;
72
+ function createDocument(schema: Schema<any, any>, html: string, parseOptions?: ParseOptions): Node;
74
73
  /**
75
74
  * Creates a table.
76
75
  *
77
76
  * @param {object} tableTypes - An object which contains `table`, `table_row`, and `table_cell` node types.
78
77
  * @param {number} rows - The number of rows.
79
78
  * @param {number} columns - The number of columns.
80
- * @returns {Node<any>} - The generated table.
79
+ * @returns {Node} - The generated table.
81
80
  *
82
81
  * @example
83
82
  * ```jsx-no-run
@@ -91,22 +90,22 @@ export declare namespace EditorUtils {
91
90
  * ```
92
91
  */
93
92
  function createTable(tableTypes: {
94
- table: NodeType<any>;
95
- table_row: NodeType<any>;
96
- table_cell: NodeType<any>;
97
- }, rows: number, columns: number): Node<any>;
93
+ table: NodeType;
94
+ table_row: NodeType;
95
+ table_cell: NodeType;
96
+ }, rows: number, columns: number): Node;
98
97
  /**
99
98
  * Formats the paragraph and heading nodes in the selection.
100
99
  *
101
100
  * @returns {boolean} - If an element is formatted, returns `true`.
102
101
  */
103
- function formatBlockElements(view: EditorView<any>, value: 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6', commandName?: EditorToolsSettings.Command): boolean;
102
+ function formatBlockElements(view: EditorView, value: 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6', commandName?: EditorToolsSettings.Command): boolean;
104
103
  /**
105
104
  * Returns the paragraph and heading nodes in the selection.
106
105
  *
107
106
  * @returns {string[]}
108
107
  */
109
- function getBlockFormats(state: EditorState<any>): string[];
108
+ function getBlockFormats(state: EditorState): string[];
110
109
  /**
111
110
  * Gets the HTML from the `EditorState` object.
112
111
  *
@@ -114,41 +113,41 @@ export declare namespace EditorUtils {
114
113
  * - { doc: value, schema: value.types.schema } where the `value` variable is the editor's value prop.
115
114
  * @returns {string} - The HTML content.
116
115
  */
117
- function getHtml(state: EditorState<any> | {
116
+ function getHtml(state: EditorState | {
118
117
  doc: Node;
119
118
  schema: Schema;
120
119
  }): string;
121
120
  /**
122
121
  * @returns {string[]} - An array of matched styles that are found in the selection.
123
122
  */
124
- function getInlineStyles(state: EditorState<any>, style: {
123
+ function getInlineStyles(state: EditorState, style: {
125
124
  name: string;
126
125
  value: RegExp;
127
126
  }): string[];
128
127
  /**
129
128
  * Returns a mark of the specified type from the nodes in selection.
130
129
  *
131
- * @returns {Mark<any>}
130
+ * @returns {Mark}
132
131
  */
133
- function getMark(state: EditorState<any>, markType: MarkType<any>): Mark<any>;
132
+ function getMark(state: EditorState, markType: MarkType): Mark | undefined;
134
133
  /**
135
134
  * Checks if according to the specified `InlineFormatOptions` a node in the selection is present.
136
135
  *
137
136
  * @returns {boolean}
138
137
  */
139
- function hasMark(state: EditorState<any>, options: EditorToolsSettings.InlineFormatOptions): boolean;
138
+ function hasMark(state: EditorState, options: EditorToolsSettings.InlineFormatOptions): boolean;
140
139
  /**
141
140
  * Checks if the selection contains a specific type of node.
142
141
  *
143
142
  * @returns {boolean}
144
143
  */
145
- function hasNode(state: EditorState<any>, nodeType: NodeType<any>): boolean;
144
+ function hasNode(state: EditorState, nodeType: NodeType): boolean;
146
145
  /**
147
146
  * Indents the block elements in the selection.
148
147
  *
149
148
  * @returns {boolean} - If indentation is applied to any of the elements, returns `true`.
150
149
  */
151
- function indentBlocks(view: EditorView<any>, actions: EditorToolsSettings.IndentAction[], command?: EditorToolsSettings.Command, dir?: string): boolean;
150
+ function indentBlocks(view: EditorView, actions: EditorToolsSettings.IndentAction[], command?: EditorToolsSettings.Command, dir?: string): boolean;
152
151
  /**
153
152
  * Adds new lines after block elements and hard breaks.
154
153
  *
@@ -164,16 +163,16 @@ export declare namespace EditorUtils {
164
163
  * @param {boolean} scrollIntoView - An optional parameter.
165
164
  * Defines if the content element will be scrolled to the current selection.
166
165
  */
167
- function insertNode(view: EditorView<any> | {
168
- state: EditorState<any>;
169
- dispatch: (tr: Transaction<any>) => void;
170
- }, node: Node<any>, scrollIntoView?: boolean | undefined): void;
166
+ function insertNode(view: EditorView | {
167
+ state: EditorState;
168
+ dispatch: (tr: Transaction) => void;
169
+ }, node: Node, scrollIntoView?: boolean | undefined): void;
171
170
  /**
172
171
  * Checks if any of the block elements in the selection is aligned.
173
172
  *
174
173
  * @returns {boolean}
175
174
  */
176
- function isAligned(state: EditorState<any>, actions: EditorToolsSettings.AlignAction[]): boolean;
175
+ function isAligned(state: EditorState, actions: EditorToolsSettings.AlignAction[]): boolean;
177
176
  /**
178
177
  * Checks if any of the block elements in the selection is indented.
179
178
  *
@@ -291,22 +290,22 @@ export declare namespace EditorUtils {
291
290
  * @param {ParseOptions} parseOptions - An optional parameter.
292
291
  * Defines the options that will be used for parsing the HTML. Defaults to `{ preserveWhitespace: 'full' }`.
293
292
  */
294
- function setHtml(view: EditorView<any>, html: string, command?: EditorToolsSettings.Command, parseOptions?: ParseOptions<any>): void;
293
+ function setHtml(view: EditorView, html: string, command?: EditorToolsSettings.Command, parseOptions?: ParseOptions): void;
295
294
  /**
296
295
  * Toggles the inline element formatting according to the `InlineFormatOptions` and `markAttrs` settings.
297
296
  *
298
297
  * @returns {boolean}
299
298
  */
300
299
  function toggleInlineFormat(view: {
301
- state: EditorState<any>;
302
- dispatch: (tr: Transaction<any>) => void;
303
- }, options: EditorToolsSettings.InlineFormatOptions, transaction?: Transaction<any>, markAttrs?: any): boolean;
300
+ state: EditorState;
301
+ dispatch: (tr: Transaction) => void;
302
+ }, options: EditorToolsSettings.InlineFormatOptions, transaction?: Transaction, markAttrs?: any): boolean;
304
303
  /**
305
304
  * Toggles a list of the specified type.
306
305
  *
307
306
  * @returns {boolean}
308
307
  */
309
- function toggleList(view: EditorView<any>, types: {
308
+ function toggleList(view: EditorView, types: {
310
309
  listType: string;
311
310
  orderedList: string;
312
311
  bulletList: string;
@@ -102,7 +102,7 @@ export var EditorUtils;
102
102
  * @param {object} tableTypes - An object which contains `table`, `table_row`, and `table_cell` node types.
103
103
  * @param {number} rows - The number of rows.
104
104
  * @param {number} columns - The number of columns.
105
- * @returns {Node<any>} - The generated table.
105
+ * @returns {Node} - The generated table.
106
106
  *
107
107
  * @example
108
108
  * ```jsx-no-run
@@ -158,7 +158,7 @@ export var EditorUtils;
158
158
  /**
159
159
  * Returns a mark of the specified type from the nodes in selection.
160
160
  *
161
- * @returns {Mark<any>}
161
+ * @returns {Mark}
162
162
  */
163
163
  function getMark(state, markType) {
164
164
  return getMarkCommon(state, markType);
@@ -2,4 +2,4 @@ import { PluginKey } from '@progress/kendo-editor-common';
2
2
  /**
3
3
  * @hidden
4
4
  */
5
- export declare const editorPropsKey: PluginKey<any, any>;
5
+ export declare const editorPropsKey: PluginKey<any>;
@@ -1,4 +1,3 @@
1
- /// <reference types="prosemirror-model" />
2
1
  import { EditorState, Plugin, Transaction, EditorView, Schema, Node } from '@progress/kendo-editor-common';
3
2
  import { EditorUtils } from './utils/main';
4
3
  interface EditorEvent {
@@ -7,8 +7,8 @@ import { EditorToolsSettings } from './../config/toolsSettings';
7
7
  import { TextSelection, EditorView } from '@progress/kendo-editor-common';
8
8
  interface FindAndReplaceDialogData {
9
9
  selectedTab: number;
10
- matches: TextSelection<any>[];
11
- nextMatch?: TextSelection<any>;
10
+ matches: TextSelection[];
11
+ nextMatch?: TextSelection;
12
12
  searchText: string;
13
13
  replaceText: string;
14
14
  matchCase: boolean;
@@ -3,7 +3,7 @@ import { EditorProps, EditorMountEvent, EditorPasteEvent, EditorChangeEvent, Edi
3
3
  import { EditorTools } from './tools/main';
4
4
  import { EditorToolsSettings } from './config/toolsSettings';
5
5
  import { EditorUtils } from './utils/main';
6
- import { Selection, SelectionRange, TextSelection, NodeSelection, AllSelection, EditorState, Plugin, PluginKey, Transaction, Decoration, DecorationSet, EditorView, Node, ResolvedPos, NodeRange, Fragment, Slice, ReplaceError, Mark, Schema, NodeType, MarkType, ContentMatch, DOMParser, DOMSerializer, Transform, Step, StepResult, joinPoint, canJoin, canSplit, insertPoint, dropPoint, liftTarget, findWrapping, StepMap, MapResult, Mapping, AddMarkStep, RemoveMarkStep, ReplaceStep, ReplaceAroundStep, replaceStep, deleteSelection, joinBackward, selectNodeBackward, joinForward, selectNodeForward, joinUp, joinDown, lift, newlineInCode, exitCode, createParagraphNear, liftEmptyBlock, splitBlock, splitBlockKeepMarks, selectParentNode, selectAll, wrapIn, setBlockType, toggleMark, autoJoin, chainCommands, history, undo, redo, undoDepth, redoDepth, InputRule, inputRules, undoInputRule, wrappingInputRule, textblockTypeInputRule, keymap, keydownHandler, addListNodes, wrapInList, splitListItem, liftListItem, sinkListItem, dropCursor, gapCursor, tableEditing, fixTables, cellAround, isInTable, selectionCell, moveCellForward, inSameTable, findCell, colCount, nextCell, removeColSpan, addColSpan, columnIsHeader, tableNodes, tableNodeTypes, CellSelection, TableMap, columnResizing, updateColumnsOnResize, selectedRect, addColumn, addColumnBefore, addColumnAfter, deleteColumn, rowIsHeader, addRow, deleteRow, mergeCells, splitCell, splitCellWithType, setCellAttr, toggleHeader, toggleHeaderRow, toggleHeaderColumn, toggleHeaderCell, goToNextCell, deleteTable } from '@progress/kendo-editor-common';
6
+ import { Selection, SelectionRange, TextSelection, NodeSelection, AllSelection, EditorState, Plugin, PluginKey, Transaction, Decoration, DecorationSet, EditorView, Node, ResolvedPos, NodeRange, Fragment, Slice, ReplaceError, Mark, Schema, NodeType, MarkType, ContentMatch, DOMParser, DOMSerializer, Transform, Step, StepResult, joinPoint, canJoin, canSplit, insertPoint, dropPoint, liftTarget, findWrapping, StepMap, MapResult, Mapping, AddMarkStep, RemoveMarkStep, ReplaceStep, ReplaceAroundStep, replaceStep, wrapIn, setBlockType, toggleMark, autoJoin, chainCommands, history, undoDepth, redoDepth, InputRule, inputRules, wrappingInputRule, textblockTypeInputRule, keymap, keydownHandler, addListNodes, wrapInList, splitListItem, liftListItem, sinkListItem, dropCursor, gapCursor, tableEditing, fixTables, cellAround, isInTable, selectionCell, moveCellForward, inSameTable, findCell, colCount, nextCell, removeColSpan, addColSpan, columnIsHeader, tableNodes, tableNodeTypes, CellSelection, TableMap, columnResizing, updateColumnsOnResize, selectedRect, addColumn, rowIsHeader, addRow, deleteRow, mergeCells, splitCell, splitCellWithType, setCellAttr, toggleHeader, toggleHeaderRow, toggleHeaderColumn, toggleHeaderCell, goToNextCell, deleteTable } from '@progress/kendo-editor-common';
7
7
  export { Shortcuts } from './config/shortcuts';
8
8
  export { PasteCleanupSettings } from './config/pasteSettings';
9
9
  /**
@@ -66,45 +66,51 @@ export declare const ProseMirror: {
66
66
  ReplaceStep: typeof ReplaceStep;
67
67
  ReplaceAroundStep: typeof ReplaceAroundStep;
68
68
  replaceStep: typeof replaceStep;
69
- deleteSelection: typeof deleteSelection;
70
- joinBackward: typeof joinBackward;
71
- selectNodeBackward: typeof selectNodeBackward;
72
- joinForward: typeof joinForward;
73
- selectNodeForward: typeof selectNodeForward;
74
- joinUp: typeof joinUp;
75
- joinDown: typeof joinDown;
76
- lift: typeof lift;
77
- newlineInCode: typeof newlineInCode;
78
- exitCode: typeof exitCode;
79
- createParagraphNear: typeof createParagraphNear;
80
- liftEmptyBlock: typeof liftEmptyBlock;
81
- splitBlock: typeof splitBlock;
82
- splitBlockKeepMarks: typeof splitBlockKeepMarks;
83
- selectParentNode: typeof selectParentNode;
84
- selectAll: typeof selectAll;
69
+ deleteSelection: import("prosemirror-state").Command;
70
+ joinBackward: import("prosemirror-state").Command;
71
+ selectNodeBackward: import("prosemirror-state").Command;
72
+ joinForward: import("prosemirror-state").Command;
73
+ selectNodeForward: import("prosemirror-state").Command;
74
+ joinUp: import("prosemirror-state").Command;
75
+ joinDown: import("prosemirror-state").Command;
76
+ lift: import("prosemirror-state").Command;
77
+ newlineInCode: import("prosemirror-state").Command;
78
+ exitCode: import("prosemirror-state").Command;
79
+ createParagraphNear: import("prosemirror-state").Command;
80
+ liftEmptyBlock: import("prosemirror-state").Command;
81
+ splitBlock: import("prosemirror-state").Command;
82
+ splitBlockKeepMarks: import("prosemirror-state").Command;
83
+ selectParentNode: import("prosemirror-state").Command;
84
+ selectAll: import("prosemirror-state").Command;
85
85
  wrapIn: typeof wrapIn;
86
86
  setBlockType: typeof setBlockType;
87
87
  toggleMark: typeof toggleMark;
88
88
  autoJoin: typeof autoJoin;
89
89
  chainCommands: typeof chainCommands;
90
- pcBaseKeymap: import("prosemirror-commands").Keymap<any>;
91
- macBaseKeymap: import("prosemirror-commands").Keymap<any>;
92
- baseKeymap: import("prosemirror-commands").Keymap<any>;
90
+ pcBaseKeymap: {
91
+ [key: string]: import("prosemirror-state").Command;
92
+ };
93
+ macBaseKeymap: {
94
+ [key: string]: import("prosemirror-state").Command;
95
+ };
96
+ baseKeymap: {
97
+ [key: string]: import("prosemirror-state").Command;
98
+ };
93
99
  history: typeof history;
94
- undo: typeof undo;
95
- redo: typeof redo;
100
+ undo: import("prosemirror-state").Command;
101
+ redo: import("prosemirror-state").Command;
96
102
  undoDepth: typeof undoDepth;
97
103
  redoDepth: typeof redoDepth;
98
104
  InputRule: typeof InputRule;
99
105
  inputRules: typeof inputRules;
100
- undoInputRule: typeof undoInputRule;
101
- emDash: InputRule<any>;
102
- ellipsis: InputRule<any>;
103
- openDoubleQuote: InputRule<any>;
104
- closeDoubleQuote: InputRule<any>;
105
- openSingleQuote: InputRule<any>;
106
- closeSingleQuote: InputRule<any>;
107
- smartQuotes: InputRule<any>[];
106
+ undoInputRule: import("prosemirror-state").Command;
107
+ emDash: InputRule;
108
+ ellipsis: InputRule;
109
+ openDoubleQuote: InputRule;
110
+ closeDoubleQuote: InputRule;
111
+ openSingleQuote: InputRule;
112
+ closeSingleQuote: InputRule;
113
+ smartQuotes: readonly InputRule[];
108
114
  wrappingInputRule: typeof wrappingInputRule;
109
115
  textblockTypeInputRule: typeof textblockTypeInputRule;
110
116
  keymap: typeof keymap;
@@ -121,7 +127,7 @@ export declare const ProseMirror: {
121
127
  gapCursor: typeof gapCursor;
122
128
  tableEditing: typeof tableEditing;
123
129
  fixTables: typeof fixTables;
124
- fixTablesKey: PluginKey<any, any>;
130
+ fixTablesKey: PluginKey<any>;
125
131
  cellAround: typeof cellAround;
126
132
  isInTable: typeof isInTable;
127
133
  selectionCell: typeof selectionCell;
@@ -137,19 +143,19 @@ export declare const ProseMirror: {
137
143
  tableNodeTypes: typeof tableNodeTypes;
138
144
  CellSelection: typeof CellSelection;
139
145
  TableMap: typeof TableMap;
140
- tableEditingKey: PluginKey<any, any>;
146
+ tableEditingKey: PluginKey<any>;
141
147
  columnResizing: typeof columnResizing;
142
- columnResizingPluginKey: PluginKey<any, any>;
148
+ columnResizingPluginKey: PluginKey<any>;
143
149
  updateColumnsOnResize: typeof updateColumnsOnResize;
144
150
  selectedRect: typeof selectedRect;
145
151
  addColumn: typeof addColumn;
146
- addColumnBefore: typeof addColumnBefore;
147
- addColumnAfter: typeof addColumnAfter;
148
- deleteColumn: typeof deleteColumn;
152
+ addColumnBefore: (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
153
+ addColumnAfter: (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
154
+ deleteColumn: (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
149
155
  rowIsHeader: typeof rowIsHeader;
150
156
  addRow: typeof addRow;
151
- addRowBefore: (state: EditorState<any>, dispatch?: (tr: Transaction<any>) => void) => boolean;
152
- addRowAfter: (state: EditorState<any>, dispatch?: (tr: Transaction<any>) => void) => boolean;
157
+ addRowBefore: (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
158
+ addRowAfter: (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean;
153
159
  deleteRow: typeof deleteRow;
154
160
  mergeCells: typeof mergeCells;
155
161
  splitCell: typeof splitCell;
@@ -8,7 +8,7 @@ exports.packageMetadata = {
8
8
  name: '@progress/kendo-vue-editor',
9
9
  productName: 'Kendo UI for Vue',
10
10
  productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
11
- publishDate: 1666777965,
11
+ publishDate: 1667290063,
12
12
  version: '',
13
13
  licensingDocsUrl: 'https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning'
14
14
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="prosemirror-model" />
2
1
  import * as shortcuts from '../config/shortcuts';
3
2
  import { ImageResizeOptions as ImageResizeOptionsCommon, Schema, NodeSpec, MarkSpec, Node, NodeType, Mark, MarkType, ParseOptions, EditorView, EditorState, Transaction, Plugin, PluginKey } from '@progress/kendo-editor-common';
4
3
  import { EditorToolsSettings } from '../config/toolsSettings';
@@ -12,13 +11,13 @@ export declare namespace EditorUtils {
12
11
  *
13
12
  * @returns {boolean} - If alignment is applied to any of the elements, returns `true`.
14
13
  */
15
- function alignBlocks(view: EditorView<any>, actions: EditorToolsSettings.AlignAction[], command?: EditorToolsSettings.Command): boolean;
14
+ function alignBlocks(view: EditorView, actions: EditorToolsSettings.AlignAction[], command?: EditorToolsSettings.Command): boolean;
16
15
  /**
17
16
  * Wraps the selection in a `span` element with inline styles.
18
17
  *
19
18
  * @returns {boolean} - If a style is applied to any of the elements, returns `true`.
20
19
  */
21
- function applyInlineStyle(view: EditorView<any>, options: {
20
+ function applyInlineStyle(view: EditorView, options: {
22
21
  style: string;
23
22
  value: string;
24
23
  }, command?: EditorToolsSettings.Command): boolean;
@@ -36,7 +35,7 @@ export declare namespace EditorUtils {
36
35
  *
37
36
  * @returns {boolean}
38
37
  */
39
- function canIndentList(state: EditorState<any>, nodeType: NodeType<any>): boolean;
38
+ function canIndentList(state: EditorState, nodeType: NodeType): boolean;
40
39
  /**
41
40
  * Checks if a node can be inserted in the current selection.
42
41
  *
@@ -44,13 +43,13 @@ export declare namespace EditorUtils {
44
43
  * @param {NodeType} nodeType - The type of the node that will be inserted.
45
44
  * @returns {boolean} - The node of this type can be inserted in the current selection.
46
45
  */
47
- function canInsert(state: EditorState<any>, nodeType: NodeType<any>): boolean;
46
+ function canInsert(state: EditorState, nodeType: NodeType): boolean;
48
47
  /**
49
48
  * Checks if any of the `list` elements in the selection can be outdented.
50
49
  *
51
50
  * @returns {boolean}
52
51
  */
53
- function canOutdentList(state: EditorState<any>, listsTypes: {
52
+ function canOutdentList(state: EditorState, listsTypes: {
54
53
  listItem: string;
55
54
  orderedList: string;
56
55
  bulletList: string;
@@ -70,14 +69,14 @@ export declare namespace EditorUtils {
70
69
  * @param {ParseOptions} parseOptions - The HTML parsing options. Defaults to `{ preserveWhitespace: 'full' }`.
71
70
  * @returns {Node} - The `document` object of the Editor.
72
71
  */
73
- function createDocument(schema: Schema<any, any>, html: string, parseOptions?: ParseOptions<any>): Node<any>;
72
+ function createDocument(schema: Schema<any, any>, html: string, parseOptions?: ParseOptions): Node;
74
73
  /**
75
74
  * Creates a table.
76
75
  *
77
76
  * @param {object} tableTypes - An object which contains `table`, `table_row`, and `table_cell` node types.
78
77
  * @param {number} rows - The number of rows.
79
78
  * @param {number} columns - The number of columns.
80
- * @returns {Node<any>} - The generated table.
79
+ * @returns {Node} - The generated table.
81
80
  *
82
81
  * @example
83
82
  * ```jsx-no-run
@@ -91,22 +90,22 @@ export declare namespace EditorUtils {
91
90
  * ```
92
91
  */
93
92
  function createTable(tableTypes: {
94
- table: NodeType<any>;
95
- table_row: NodeType<any>;
96
- table_cell: NodeType<any>;
97
- }, rows: number, columns: number): Node<any>;
93
+ table: NodeType;
94
+ table_row: NodeType;
95
+ table_cell: NodeType;
96
+ }, rows: number, columns: number): Node;
98
97
  /**
99
98
  * Formats the paragraph and heading nodes in the selection.
100
99
  *
101
100
  * @returns {boolean} - If an element is formatted, returns `true`.
102
101
  */
103
- function formatBlockElements(view: EditorView<any>, value: 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6', commandName?: EditorToolsSettings.Command): boolean;
102
+ function formatBlockElements(view: EditorView, value: 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6', commandName?: EditorToolsSettings.Command): boolean;
104
103
  /**
105
104
  * Returns the paragraph and heading nodes in the selection.
106
105
  *
107
106
  * @returns {string[]}
108
107
  */
109
- function getBlockFormats(state: EditorState<any>): string[];
108
+ function getBlockFormats(state: EditorState): string[];
110
109
  /**
111
110
  * Gets the HTML from the `EditorState` object.
112
111
  *
@@ -114,41 +113,41 @@ export declare namespace EditorUtils {
114
113
  * - { doc: value, schema: value.types.schema } where the `value` variable is the editor's value prop.
115
114
  * @returns {string} - The HTML content.
116
115
  */
117
- function getHtml(state: EditorState<any> | {
116
+ function getHtml(state: EditorState | {
118
117
  doc: Node;
119
118
  schema: Schema;
120
119
  }): string;
121
120
  /**
122
121
  * @returns {string[]} - An array of matched styles that are found in the selection.
123
122
  */
124
- function getInlineStyles(state: EditorState<any>, style: {
123
+ function getInlineStyles(state: EditorState, style: {
125
124
  name: string;
126
125
  value: RegExp;
127
126
  }): string[];
128
127
  /**
129
128
  * Returns a mark of the specified type from the nodes in selection.
130
129
  *
131
- * @returns {Mark<any>}
130
+ * @returns {Mark}
132
131
  */
133
- function getMark(state: EditorState<any>, markType: MarkType<any>): Mark<any>;
132
+ function getMark(state: EditorState, markType: MarkType): Mark | undefined;
134
133
  /**
135
134
  * Checks if according to the specified `InlineFormatOptions` a node in the selection is present.
136
135
  *
137
136
  * @returns {boolean}
138
137
  */
139
- function hasMark(state: EditorState<any>, options: EditorToolsSettings.InlineFormatOptions): boolean;
138
+ function hasMark(state: EditorState, options: EditorToolsSettings.InlineFormatOptions): boolean;
140
139
  /**
141
140
  * Checks if the selection contains a specific type of node.
142
141
  *
143
142
  * @returns {boolean}
144
143
  */
145
- function hasNode(state: EditorState<any>, nodeType: NodeType<any>): boolean;
144
+ function hasNode(state: EditorState, nodeType: NodeType): boolean;
146
145
  /**
147
146
  * Indents the block elements in the selection.
148
147
  *
149
148
  * @returns {boolean} - If indentation is applied to any of the elements, returns `true`.
150
149
  */
151
- function indentBlocks(view: EditorView<any>, actions: EditorToolsSettings.IndentAction[], command?: EditorToolsSettings.Command, dir?: string): boolean;
150
+ function indentBlocks(view: EditorView, actions: EditorToolsSettings.IndentAction[], command?: EditorToolsSettings.Command, dir?: string): boolean;
152
151
  /**
153
152
  * Adds new lines after block elements and hard breaks.
154
153
  *
@@ -164,16 +163,16 @@ export declare namespace EditorUtils {
164
163
  * @param {boolean} scrollIntoView - An optional parameter.
165
164
  * Defines if the content element will be scrolled to the current selection.
166
165
  */
167
- function insertNode(view: EditorView<any> | {
168
- state: EditorState<any>;
169
- dispatch: (tr: Transaction<any>) => void;
170
- }, node: Node<any>, scrollIntoView?: boolean | undefined): void;
166
+ function insertNode(view: EditorView | {
167
+ state: EditorState;
168
+ dispatch: (tr: Transaction) => void;
169
+ }, node: Node, scrollIntoView?: boolean | undefined): void;
171
170
  /**
172
171
  * Checks if any of the block elements in the selection is aligned.
173
172
  *
174
173
  * @returns {boolean}
175
174
  */
176
- function isAligned(state: EditorState<any>, actions: EditorToolsSettings.AlignAction[]): boolean;
175
+ function isAligned(state: EditorState, actions: EditorToolsSettings.AlignAction[]): boolean;
177
176
  /**
178
177
  * Checks if any of the block elements in the selection is indented.
179
178
  *
@@ -291,22 +290,22 @@ export declare namespace EditorUtils {
291
290
  * @param {ParseOptions} parseOptions - An optional parameter.
292
291
  * Defines the options that will be used for parsing the HTML. Defaults to `{ preserveWhitespace: 'full' }`.
293
292
  */
294
- function setHtml(view: EditorView<any>, html: string, command?: EditorToolsSettings.Command, parseOptions?: ParseOptions<any>): void;
293
+ function setHtml(view: EditorView, html: string, command?: EditorToolsSettings.Command, parseOptions?: ParseOptions): void;
295
294
  /**
296
295
  * Toggles the inline element formatting according to the `InlineFormatOptions` and `markAttrs` settings.
297
296
  *
298
297
  * @returns {boolean}
299
298
  */
300
299
  function toggleInlineFormat(view: {
301
- state: EditorState<any>;
302
- dispatch: (tr: Transaction<any>) => void;
303
- }, options: EditorToolsSettings.InlineFormatOptions, transaction?: Transaction<any>, markAttrs?: any): boolean;
300
+ state: EditorState;
301
+ dispatch: (tr: Transaction) => void;
302
+ }, options: EditorToolsSettings.InlineFormatOptions, transaction?: Transaction, markAttrs?: any): boolean;
304
303
  /**
305
304
  * Toggles a list of the specified type.
306
305
  *
307
306
  * @returns {boolean}
308
307
  */
309
- function toggleList(view: EditorView<any>, types: {
308
+ function toggleList(view: EditorView, types: {
310
309
  listType: string;
311
310
  orderedList: string;
312
311
  bulletList: string;
@@ -105,7 +105,7 @@ var EditorUtils;
105
105
  * @param {object} tableTypes - An object which contains `table`, `table_row`, and `table_cell` node types.
106
106
  * @param {number} rows - The number of rows.
107
107
  * @param {number} columns - The number of columns.
108
- * @returns {Node<any>} - The generated table.
108
+ * @returns {Node} - The generated table.
109
109
  *
110
110
  * @example
111
111
  * ```jsx-no-run
@@ -161,7 +161,7 @@ var EditorUtils;
161
161
  /**
162
162
  * Returns a mark of the specified type from the nodes in selection.
163
163
  *
164
- * @returns {Mark<any>}
164
+ * @returns {Mark}
165
165
  */
166
166
  function getMark(state, markType) {
167
167
  return (0, kendo_editor_common_1.getMark)(state, markType);
@@ -2,4 +2,4 @@ import { PluginKey } from '@progress/kendo-editor-common';
2
2
  /**
3
3
  * @hidden
4
4
  */
5
- export declare const editorPropsKey: PluginKey<any, any>;
5
+ export declare const editorPropsKey: PluginKey<any>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@progress/kendo-vue-editor",
3
3
  "description": "Kendo UI for Vue Editor package",
4
- "version": "3.7.1",
4
+ "version": "3.7.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/telerik/kendo-vue.git"
@@ -48,22 +48,22 @@
48
48
  "vue": "^2.6.12 || ^3.0.2"
49
49
  },
50
50
  "dependencies": {
51
- "@progress/kendo-editor-common": "1.8.0",
52
- "@progress/kendo-vue-common": "3.7.1"
51
+ "@progress/kendo-editor-common": "1.9.3",
52
+ "@progress/kendo-vue-common": "3.7.2"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@progress/kendo-drawing": "^1.8.0",
56
56
  "@progress/kendo-licensing": "^1.0.1",
57
- "@progress/kendo-vue-buttons": "3.7.1",
58
- "@progress/kendo-vue-dialogs": "3.7.1",
59
- "@progress/kendo-vue-dropdowns": "3.7.1",
60
- "@progress/kendo-vue-form": "3.7.1",
61
- "@progress/kendo-vue-inputs": "3.7.1",
62
- "@progress/kendo-vue-intl": "3.7.1",
63
- "@progress/kendo-vue-layout": "3.7.1",
64
- "@progress/kendo-vue-pdf": "3.7.1",
65
- "@progress/kendo-vue-popup": "3.7.1",
66
- "@progress/kendo-vue-upload": "3.7.1"
57
+ "@progress/kendo-vue-buttons": "3.7.2",
58
+ "@progress/kendo-vue-dialogs": "3.7.2",
59
+ "@progress/kendo-vue-dropdowns": "3.7.2",
60
+ "@progress/kendo-vue-form": "3.7.2",
61
+ "@progress/kendo-vue-inputs": "3.7.2",
62
+ "@progress/kendo-vue-intl": "3.7.2",
63
+ "@progress/kendo-vue-layout": "3.7.2",
64
+ "@progress/kendo-vue-pdf": "3.7.2",
65
+ "@progress/kendo-vue-popup": "3.7.2",
66
+ "@progress/kendo-vue-upload": "3.7.2"
67
67
  },
68
68
  "@progress": {
69
69
  "friendlyName": "Editor",