@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.
- package/dist/cdn/js/kendo-vue-editor.js +1 -1
- package/dist/es/EditorProps.d.ts +0 -1
- package/dist/es/dialogs/FindReplace.d.ts +2 -2
- package/dist/es/main.d.ts +44 -38
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/utils/main.d.ts +30 -31
- package/dist/es/utils/main.js +2 -2
- package/dist/es/utils/props-key.d.ts +1 -1
- package/dist/esm/EditorProps.d.ts +0 -1
- package/dist/esm/dialogs/FindReplace.d.ts +2 -2
- package/dist/esm/main.d.ts +44 -38
- package/dist/esm/package-metadata.js +1 -1
- package/dist/esm/utils/main.d.ts +30 -31
- package/dist/esm/utils/main.js +2 -2
- package/dist/esm/utils/props-key.d.ts +1 -1
- package/dist/npm/EditorProps.d.ts +0 -1
- package/dist/npm/dialogs/FindReplace.d.ts +2 -2
- package/dist/npm/main.d.ts +44 -38
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/utils/main.d.ts +30 -31
- package/dist/npm/utils/main.js +2 -2
- package/dist/npm/utils/props-key.d.ts +1 -1
- package/package.json +13 -13
package/dist/es/EditorProps.d.ts
CHANGED
|
@@ -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
|
|
11
|
-
nextMatch?: TextSelection
|
|
10
|
+
matches: TextSelection[];
|
|
11
|
+
nextMatch?: TextSelection;
|
|
12
12
|
searchText: string;
|
|
13
13
|
replaceText: string;
|
|
14
14
|
matchCase: boolean;
|
package/dist/es/main.d.ts
CHANGED
|
@@ -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,
|
|
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:
|
|
70
|
-
joinBackward:
|
|
71
|
-
selectNodeBackward:
|
|
72
|
-
joinForward:
|
|
73
|
-
selectNodeForward:
|
|
74
|
-
joinUp:
|
|
75
|
-
joinDown:
|
|
76
|
-
lift:
|
|
77
|
-
newlineInCode:
|
|
78
|
-
exitCode:
|
|
79
|
-
createParagraphNear:
|
|
80
|
-
liftEmptyBlock:
|
|
81
|
-
splitBlock:
|
|
82
|
-
splitBlockKeepMarks:
|
|
83
|
-
selectParentNode:
|
|
84
|
-
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:
|
|
91
|
-
|
|
92
|
-
|
|
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:
|
|
95
|
-
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:
|
|
101
|
-
emDash: InputRule
|
|
102
|
-
ellipsis: InputRule
|
|
103
|
-
openDoubleQuote: InputRule
|
|
104
|
-
closeDoubleQuote: InputRule
|
|
105
|
-
openSingleQuote: InputRule
|
|
106
|
-
closeSingleQuote: InputRule
|
|
107
|
-
smartQuotes: InputRule
|
|
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
|
|
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
|
|
146
|
+
tableEditingKey: PluginKey<any>;
|
|
141
147
|
columnResizing: typeof columnResizing;
|
|
142
|
-
columnResizingPluginKey: PluginKey<any
|
|
148
|
+
columnResizingPluginKey: PluginKey<any>;
|
|
143
149
|
updateColumnsOnResize: typeof updateColumnsOnResize;
|
|
144
150
|
selectedRect: typeof selectedRect;
|
|
145
151
|
addColumn: typeof addColumn;
|
|
146
|
-
addColumnBefore:
|
|
147
|
-
addColumnAfter:
|
|
148
|
-
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
|
|
152
|
-
addRowAfter: (state: EditorState
|
|
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;
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-vue-editor',
|
|
6
6
|
productName: 'Kendo UI for Vue',
|
|
7
7
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1667290063,
|
|
9
9
|
version: '',
|
|
10
10
|
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'
|
|
11
11
|
};
|
package/dist/es/utils/main.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
95
|
-
table_row: NodeType
|
|
96
|
-
table_cell: NodeType
|
|
97
|
-
}, rows: number, columns: number): Node
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
130
|
+
* @returns {Mark}
|
|
132
131
|
*/
|
|
133
|
-
function getMark(state: EditorState
|
|
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
|
|
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
|
|
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
|
|
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
|
|
168
|
-
state: EditorState
|
|
169
|
-
dispatch: (tr: Transaction
|
|
170
|
-
}, node: Node
|
|
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
|
|
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
|
|
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
|
|
302
|
-
dispatch: (tr: Transaction
|
|
303
|
-
}, options: EditorToolsSettings.InlineFormatOptions, transaction?: Transaction
|
|
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
|
|
308
|
+
function toggleList(view: EditorView, types: {
|
|
310
309
|
listType: string;
|
|
311
310
|
orderedList: string;
|
|
312
311
|
bulletList: string;
|
package/dist/es/utils/main.js
CHANGED
|
@@ -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
|
|
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
|
|
161
|
+
* @returns {Mark}
|
|
162
162
|
*/
|
|
163
163
|
function getMark(state, markType) {
|
|
164
164
|
return getMarkCommon(state, markType);
|
|
@@ -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
|
|
11
|
-
nextMatch?: TextSelection
|
|
10
|
+
matches: TextSelection[];
|
|
11
|
+
nextMatch?: TextSelection;
|
|
12
12
|
searchText: string;
|
|
13
13
|
replaceText: string;
|
|
14
14
|
matchCase: boolean;
|
package/dist/esm/main.d.ts
CHANGED
|
@@ -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,
|
|
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:
|
|
70
|
-
joinBackward:
|
|
71
|
-
selectNodeBackward:
|
|
72
|
-
joinForward:
|
|
73
|
-
selectNodeForward:
|
|
74
|
-
joinUp:
|
|
75
|
-
joinDown:
|
|
76
|
-
lift:
|
|
77
|
-
newlineInCode:
|
|
78
|
-
exitCode:
|
|
79
|
-
createParagraphNear:
|
|
80
|
-
liftEmptyBlock:
|
|
81
|
-
splitBlock:
|
|
82
|
-
splitBlockKeepMarks:
|
|
83
|
-
selectParentNode:
|
|
84
|
-
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:
|
|
91
|
-
|
|
92
|
-
|
|
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:
|
|
95
|
-
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:
|
|
101
|
-
emDash: InputRule
|
|
102
|
-
ellipsis: InputRule
|
|
103
|
-
openDoubleQuote: InputRule
|
|
104
|
-
closeDoubleQuote: InputRule
|
|
105
|
-
openSingleQuote: InputRule
|
|
106
|
-
closeSingleQuote: InputRule
|
|
107
|
-
smartQuotes: InputRule
|
|
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
|
|
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
|
|
146
|
+
tableEditingKey: PluginKey<any>;
|
|
141
147
|
columnResizing: typeof columnResizing;
|
|
142
|
-
columnResizingPluginKey: PluginKey<any
|
|
148
|
+
columnResizingPluginKey: PluginKey<any>;
|
|
143
149
|
updateColumnsOnResize: typeof updateColumnsOnResize;
|
|
144
150
|
selectedRect: typeof selectedRect;
|
|
145
151
|
addColumn: typeof addColumn;
|
|
146
|
-
addColumnBefore:
|
|
147
|
-
addColumnAfter:
|
|
148
|
-
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
|
|
152
|
-
addRowAfter: (state: EditorState
|
|
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;
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-vue-editor',
|
|
6
6
|
productName: 'Kendo UI for Vue',
|
|
7
7
|
productCodes: ['KENDOUIVUE', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1667290063,
|
|
9
9
|
version: '',
|
|
10
10
|
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'
|
|
11
11
|
};
|