UNPKG

@progress/kendo-react-editor

Version:

React Editor enables users to create rich text content through a WYSIWYG interface. KendoReact Editor package

182 lines (181 loc) 6.61 kB
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2026 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ "use client"; import { Editor as Ho } from "./Editor.mjs"; import { EditorTools as jo } from "./tools/index.mjs"; import { EditorToolsSettings as vo } from "./config/toolsSettings.mjs"; import { EditorUtils as Fo } from "./utils/index.mjs"; import { EditorDialogs as Jo } from "./dialogs/index.mjs"; import { editorPropsKey as Wo } from "./utils/props-key.mjs"; import { deleteTable as e, goToNextCell as o, toggleHeaderCell as t, toggleHeaderColumn as l, toggleHeaderRow as r, toggleHeader as a, setCellAttr as n, splitCellWithType as i, splitCell as d, mergeCells as p, deleteRow as s, addRowAfter as c, addRowBefore as m, addRow as u, rowIsHeader as g, deleteColumn as C, addColumnAfter as S, addColumnBefore as R, addColumn as f, selectedRect as T, updateColumnsOnResize as w, columnResizingPluginKey as y, columnResizing as k, tableEditingKey as b, TableMap as x, CellSelection as I, tableNodeTypes as M, tableNodes as N, columnIsHeader as P, addColSpan as D, removeColSpan as E, nextCell as B, colCount as h, findCell as K, inSameTable as A, moveCellForward as H, selectionCell as L, isInTable as j, cellAround as Q, fixTablesKey as v, fixTables as z, tableEditing as F, gapCursor as O, dropCursor as J, sinkListItem as U, liftListItem as W, splitListItem as V, wrapInList as q, addListNodes as G, listItem as X, bulletList as Y, orderedList as Z, keydownHandler as _, keymap as $, textblockTypeInputRule as ee, wrappingInputRule as oe, smartQuotes as te, closeSingleQuote as le, openSingleQuote as re, closeDoubleQuote as ae, openDoubleQuote as ne, ellipsis as ie, emDash as de, undoInputRule as pe, inputRules as se, InputRule as ce, redoDepth as me, undoDepth as ue, redo as ge, undo as Ce, history as Se, baseKeymap as Re, macBaseKeymap as fe, pcBaseKeymap as Te, chainCommands as we, autoJoin as ye, toggleMark as ke, setBlockType as be, wrapIn as xe, selectAll as Ie, selectParentNode as Me, splitBlockKeepMarks as Ne, splitBlock as Pe, liftEmptyBlock as De, createParagraphNear as Ee, exitCode as Be, newlineInCode as he, lift as Ke, joinDown as Ae, joinUp as He, selectNodeForward as Le, joinForward as je, selectNodeBackward as Qe, joinBackward as ve, deleteSelection as ze, replaceStep as Fe, ReplaceAroundStep as Oe, ReplaceStep as Je, RemoveMarkStep as Ue, AddMarkStep as We, Mapping as Ve, MapResult as qe, StepMap as Ge, findWrapping as Xe, liftTarget as Ye, dropPoint as Ze, insertPoint as _e, canSplit as $e, canJoin as eo, joinPoint as oo, StepResult as to, Step as lo, Transform as ro, DOMSerializer as ao, DOMParser as no, ContentMatch as io, MarkType as po, NodeType as so, Schema as co, Mark as mo, ReplaceError as uo, Slice as go, Fragment as Co, NodeRange as So, ResolvedPos as Ro, Node as fo, EditorView as To, DecorationSet as wo, Decoration as yo, Transaction as ko, PluginKey as bo, Plugin as xo, EditorState as Io, AllSelection as Mo, NodeSelection as No, TextSelection as Po, SelectionRange as Do, Selection as Eo } from "@progress/kendo-editor-common"; import { getHtml as qo, marks as Go, nodes as Xo, parseContent as Yo } from "@progress/kendo-editor-common"; const ho = { // prosemirror-state Selection: Eo, SelectionRange: Do, TextSelection: Po, NodeSelection: No, AllSelection: Mo, EditorState: Io, Plugin: xo, PluginKey: bo, Transaction: ko, // prosemirror-view Decoration: yo, DecorationSet: wo, EditorView: To, // prosemirror-model Node: fo, ResolvedPos: Ro, NodeRange: So, Fragment: Co, Slice: go, ReplaceError: uo, Mark: mo, Schema: co, NodeType: so, MarkType: po, ContentMatch: io, DOMParser: no, DOMSerializer: ao, // prosemirror-transform Transform: ro, Step: lo, StepResult: to, joinPoint: oo, canJoin: eo, canSplit: $e, insertPoint: _e, dropPoint: Ze, liftTarget: Ye, findWrapping: Xe, StepMap: Ge, MapResult: qe, Mapping: Ve, AddMarkStep: We, RemoveMarkStep: Ue, ReplaceStep: Je, ReplaceAroundStep: Oe, replaceStep: Fe, // prosemirror-commands deleteSelection: ze, joinBackward: ve, selectNodeBackward: Qe, joinForward: je, selectNodeForward: Le, joinUp: He, joinDown: Ae, lift: Ke, newlineInCode: he, exitCode: Be, createParagraphNear: Ee, liftEmptyBlock: De, splitBlock: Pe, splitBlockKeepMarks: Ne, selectParentNode: Me, selectAll: Ie, wrapIn: xe, setBlockType: be, toggleMark: ke, autoJoin: ye, chainCommands: we, pcBaseKeymap: Te, macBaseKeymap: fe, baseKeymap: Re, // prosemirror-history history: Se, undo: Ce, redo: ge, undoDepth: ue, redoDepth: me, // prosemirror-inputrules InputRule: ce, inputRules: se, undoInputRule: pe, emDash: de, ellipsis: ie, openDoubleQuote: ne, closeDoubleQuote: ae, openSingleQuote: re, closeSingleQuote: le, smartQuotes: te, wrappingInputRule: oe, textblockTypeInputRule: ee, // prosemirror-keymap keymap: $, keydownHandler: _, // prosemirror-schema-list orderedList: Z, bulletList: Y, listItem: X, addListNodes: G, wrapInList: q, splitListItem: V, liftListItem: W, sinkListItem: U, // prosemirror-dropcursor dropCursor: J, // prosemirror-gapcursor gapCursor: O, // prosemirror-tables tableEditing: F, fixTables: z, fixTablesKey: v, cellAround: Q, isInTable: j, selectionCell: L, moveCellForward: H, inSameTable: A, findCell: K, colCount: h, nextCell: B, removeColSpan: E, addColSpan: D, columnIsHeader: P, tableNodes: N, tableNodeTypes: M, CellSelection: I, TableMap: x, tableEditingKey: b, columnResizing: k, columnResizingPluginKey: y, updateColumnsOnResize: w, selectedRect: T, addColumn: f, addColumnBefore: R, addColumnAfter: S, deleteColumn: C, rowIsHeader: g, addRow: u, addRowBefore: m, addRowAfter: c, deleteRow: s, mergeCells: p, splitCell: d, splitCellWithType: i, setCellAttr: n, toggleHeader: a, toggleHeaderRow: r, toggleHeaderColumn: l, toggleHeaderCell: t, goToNextCell: o, deleteTable: e }; export { Ho as Editor, Jo as EditorDialogs, jo as EditorTools, vo as EditorToolsSettings, Fo as EditorUtils, ho as ProseMirror, Wo as editorPropsKey, qo as getHtml, Go as marks, Xo as nodes, Yo as parseContent };