@progress/kendo-react-editor 5.0.2-dev.202201241659 → 5.1.0-dev.202201271252

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,8 +1 @@
1
- import { marks } from '@progress/kendo-editor-common';
2
- declare const nodes: {
3
- table: import("prosemirror-model").NodeSpec;
4
- table_row: import("prosemirror-model").NodeSpec;
5
- table_cell: import("prosemirror-model").NodeSpec;
6
- table_header: import("prosemirror-model").NodeSpec;
7
- };
8
- export { marks, nodes };
1
+ export { marks, nodes } from '@progress/kendo-editor-common';
@@ -1,51 +1 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import { marks, nodes as commonNodes, tableNodes } from '@progress/kendo-editor-common';
13
- var cellAttribute = function (name) {
14
- var _a;
15
- return _a = {},
16
- _a[name] = {
17
- default: null,
18
- getFromDOM: function (cell) {
19
- return cell.getAttribute(name);
20
- },
21
- setDOMAttr: function (value, attrs) {
22
- attrs[name] = value;
23
- }
24
- },
25
- _a;
26
- };
27
- var getAttrs = function (node) {
28
- var attrs = {};
29
- Array.from(node.attributes).forEach(function (attr) {
30
- attrs[attr.nodeName] = attr.nodeValue;
31
- });
32
- return attrs;
33
- };
34
- var cellAttributes = __assign({}, cellAttribute('style'), cellAttribute('class'), cellAttribute('id'));
35
- var tNodes = tableNodes({ tableGroup: 'block', cellContent: 'block+', cellAttributes: cellAttributes });
36
- tNodes.table_row.attrs = tNodes.table_row.attrs || {};
37
- tNodes.table_row.attrs.style = { default: null };
38
- tNodes.table_row.attrs.class = { default: null };
39
- tNodes.table_row.attrs.id = { default: null };
40
- tNodes.table_row.toDOM = function (node) { return ['tr', node.attrs, 0]; };
41
- tNodes.table_row.parseDOM = [{ tag: 'tr', getAttrs: getAttrs }];
42
- tNodes.table.attrs = tNodes.table.attrs || {};
43
- tNodes.table.attrs.style = { default: null };
44
- tNodes.table.attrs.class = { default: null };
45
- tNodes.table.attrs.id = { default: null };
46
- tNodes.table.toDOM = function (node) {
47
- return ['table', node.attrs, ['tbody', 0]];
48
- };
49
- tNodes.table.parseDOM = [{ tag: 'table', getAttrs: getAttrs }];
50
- var nodes = __assign({}, commonNodes, tNodes);
51
- export { marks, nodes };
1
+ export { marks, nodes } from '@progress/kendo-editor-common';
package/dist/es/main.d.ts CHANGED
@@ -5,7 +5,7 @@ import { EditorTools } from './tools/main';
5
5
  import { EditorToolsSettings } from './config/toolsSettings';
6
6
  import { EditorUtils } from './utils';
7
7
  import { EditorDialogs } from './dialogs/main';
8
- 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, addRowBefore, addRowAfter, deleteRow, mergeCells, splitCell, splitCellWithType, setCellAttr, toggleHeader, toggleHeaderRow, toggleHeaderColumn, toggleHeaderCell, goToNextCell, deleteTable } from '@progress/kendo-editor-common';
8
+ 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';
9
9
  export { Shortcuts } from './config/shortcuts';
10
10
  export { PasteCleanupSettings } from './config/pasteSettings';
11
11
  /**
@@ -150,8 +150,8 @@ export declare const ProseMirror: {
150
150
  deleteColumn: typeof deleteColumn;
151
151
  rowIsHeader: typeof rowIsHeader;
152
152
  addRow: typeof addRow;
153
- addRowBefore: typeof addRowBefore;
154
- addRowAfter: typeof addRowAfter;
153
+ addRowBefore: (state: EditorState<any>, dispatch?: (tr: Transaction<any>) => void) => boolean;
154
+ addRowAfter: (state: EditorState<any>, dispatch?: (tr: Transaction<any>) => void) => boolean;
155
155
  deleteRow: typeof deleteRow;
156
156
  mergeCells: typeof mergeCells;
157
157
  splitCell: typeof splitCell;
@@ -5,7 +5,7 @@ export var packageMetadata = {
5
5
  name: '@progress/kendo-react-editor',
6
6
  productName: 'KendoReact',
7
7
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
8
- publishDate: 1643042572,
8
+ publishDate: 1643287040,
9
9
  version: '',
10
10
  licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
11
11
  };
@@ -1,8 +1 @@
1
- import { marks } from '@progress/kendo-editor-common';
2
- declare const nodes: {
3
- table: import("prosemirror-model").NodeSpec;
4
- table_row: import("prosemirror-model").NodeSpec;
5
- table_cell: import("prosemirror-model").NodeSpec;
6
- table_header: import("prosemirror-model").NodeSpec;
7
- };
8
- export { marks, nodes };
1
+ export { marks, nodes } from '@progress/kendo-editor-common';
@@ -1,54 +1,5 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  Object.defineProperty(exports, "__esModule", { value: true });
14
3
  var kendo_editor_common_1 = require("@progress/kendo-editor-common");
15
4
  exports.marks = kendo_editor_common_1.marks;
16
- var cellAttribute = function (name) {
17
- var _a;
18
- return _a = {},
19
- _a[name] = {
20
- default: null,
21
- getFromDOM: function (cell) {
22
- return cell.getAttribute(name);
23
- },
24
- setDOMAttr: function (value, attrs) {
25
- attrs[name] = value;
26
- }
27
- },
28
- _a;
29
- };
30
- var getAttrs = function (node) {
31
- var attrs = {};
32
- Array.from(node.attributes).forEach(function (attr) {
33
- attrs[attr.nodeName] = attr.nodeValue;
34
- });
35
- return attrs;
36
- };
37
- var cellAttributes = __assign({}, cellAttribute('style'), cellAttribute('class'), cellAttribute('id'));
38
- var tNodes = kendo_editor_common_1.tableNodes({ tableGroup: 'block', cellContent: 'block+', cellAttributes: cellAttributes });
39
- tNodes.table_row.attrs = tNodes.table_row.attrs || {};
40
- tNodes.table_row.attrs.style = { default: null };
41
- tNodes.table_row.attrs.class = { default: null };
42
- tNodes.table_row.attrs.id = { default: null };
43
- tNodes.table_row.toDOM = function (node) { return ['tr', node.attrs, 0]; };
44
- tNodes.table_row.parseDOM = [{ tag: 'tr', getAttrs: getAttrs }];
45
- tNodes.table.attrs = tNodes.table.attrs || {};
46
- tNodes.table.attrs.style = { default: null };
47
- tNodes.table.attrs.class = { default: null };
48
- tNodes.table.attrs.id = { default: null };
49
- tNodes.table.toDOM = function (node) {
50
- return ['table', node.attrs, ['tbody', 0]];
51
- };
52
- tNodes.table.parseDOM = [{ tag: 'table', getAttrs: getAttrs }];
53
- var nodes = __assign({}, kendo_editor_common_1.nodes, tNodes);
54
- exports.nodes = nodes;
5
+ exports.nodes = kendo_editor_common_1.nodes;
@@ -5,7 +5,7 @@ import { EditorTools } from './tools/main';
5
5
  import { EditorToolsSettings } from './config/toolsSettings';
6
6
  import { EditorUtils } from './utils';
7
7
  import { EditorDialogs } from './dialogs/main';
8
- 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, addRowBefore, addRowAfter, deleteRow, mergeCells, splitCell, splitCellWithType, setCellAttr, toggleHeader, toggleHeaderRow, toggleHeaderColumn, toggleHeaderCell, goToNextCell, deleteTable } from '@progress/kendo-editor-common';
8
+ 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';
9
9
  export { Shortcuts } from './config/shortcuts';
10
10
  export { PasteCleanupSettings } from './config/pasteSettings';
11
11
  /**
@@ -150,8 +150,8 @@ export declare const ProseMirror: {
150
150
  deleteColumn: typeof deleteColumn;
151
151
  rowIsHeader: typeof rowIsHeader;
152
152
  addRow: typeof addRow;
153
- addRowBefore: typeof addRowBefore;
154
- addRowAfter: typeof addRowAfter;
153
+ addRowBefore: (state: EditorState<any>, dispatch?: (tr: Transaction<any>) => void) => boolean;
154
+ addRowAfter: (state: EditorState<any>, dispatch?: (tr: Transaction<any>) => void) => boolean;
155
155
  deleteRow: typeof deleteRow;
156
156
  mergeCells: typeof mergeCells;
157
157
  splitCell: typeof splitCell;
@@ -7,7 +7,7 @@ exports.packageMetadata = {
7
7
  name: '@progress/kendo-react-editor',
8
8
  productName: 'KendoReact',
9
9
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
10
- publishDate: 1643042572,
10
+ publishDate: 1643287040,
11
11
  version: '',
12
12
  licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
13
13
  };