UNPKG

31 kBTypeScriptView Raw
1import { __Area } from 'prosemirror-tables';
2import { __clipCells } from 'prosemirror-tables';
3import { __insertCells } from 'prosemirror-tables';
4import { __pastedCells } from 'prosemirror-tables';
5import { addColSpan } from 'prosemirror-tables';
6import { addColumn } from 'prosemirror-tables';
7import { addColumnAfter } from 'prosemirror-tables';
8import { addColumnBefore } from 'prosemirror-tables';
9import { AddIgnoredProps } from 'prosemirror-suggest';
10import { addListNodes } from 'prosemirror-schema-list';
11import { AddMarkStep } from 'prosemirror-transform';
12import { AddNodeMarkStep } from 'prosemirror-transform';
13import { addRow } from 'prosemirror-tables';
14import { addRowAfter } from 'prosemirror-tables';
15import { addRowBefore } from 'prosemirror-tables';
16import { addSuggester } from 'prosemirror-suggest';
17import { AllSelection } from 'prosemirror-state';
18import { AttributeSpec } from 'prosemirror-model';
19import { Attrs } from 'prosemirror-model';
20import { AttrStep } from 'prosemirror-transform';
21import { autoJoin } from 'prosemirror-commands';
22import { baseKeymap } from 'prosemirror-commands';
23import { bulletList } from 'prosemirror-schema-list';
24import { canJoin } from 'prosemirror-transform';
25import { canSplit } from 'prosemirror-transform';
26import { cellAround } from 'prosemirror-tables';
27import { CellAttributes } from 'prosemirror-tables';
28import { CellBookmark } from 'prosemirror-tables';
29import { CellSelection } from 'prosemirror-tables';
30import { CellSelectionJSON } from 'prosemirror-tables';
31import { ChangeReason } from 'prosemirror-suggest';
32import { CheckNextValidSelection } from 'prosemirror-suggest';
33import { closeDoubleQuote } from 'prosemirror-inputrules';
34import { closeHistory } from 'prosemirror-history';
35import { closeSingleQuote } from 'prosemirror-inputrules';
36import { colCount } from 'prosemirror-tables';
37import { collab } from 'prosemirror-collab';
38import { columnIsHeader } from 'prosemirror-tables';
39import { columnResizing } from 'prosemirror-tables';
40import { ColumnResizingOptions } from 'prosemirror-tables';
41import { columnResizingPluginKey } from 'prosemirror-tables';
42import { ColWidths } from 'prosemirror-tables';
43import { Command } from 'prosemirror-state';
44import { CompareMatchProps } from 'prosemirror-suggest';
45import { ContentMatch } from 'prosemirror-model';
46import { createParagraphNear } from 'prosemirror-commands';
47import { createRegexFromSuggester } from 'prosemirror-suggest';
48import { Decoration } from 'prosemirror-view';
49import { DecorationAttrs } from 'prosemirror-view';
50import { DecorationSet } from 'prosemirror-view';
51import { DecorationSource } from 'prosemirror-view';
52import { DEFAULT_SUGGESTER } from 'prosemirror-suggest';
53import { deleteColumn } from 'prosemirror-tables';
54import { deleteRow } from 'prosemirror-tables';
55import { deleteSelection } from 'prosemirror-commands';
56import { deleteTable } from 'prosemirror-tables';
57import { DirectEditorProps } from 'prosemirror-view';
58import { Direction } from 'prosemirror-tables';
59import { DocAttrStep } from 'prosemirror-transform';
60import { DocChangedProps } from 'prosemirror-suggest';
61import { DOMEventMap } from 'prosemirror-view';
62import { DOMOutputSpec } from 'prosemirror-model';
63import { DOMParser as DOMParser_2 } from 'prosemirror-model';
64import { DOMSerializer } from 'prosemirror-model';
65import { Dragging } from 'prosemirror-tables';
66import { dropCursor } from 'prosemirror-dropcursor';
67import { dropPoint } from 'prosemirror-transform';
68import { EditorProps } from 'prosemirror-view';
69import { EditorSchema as EditorSchema_alias_1 } from 'prosemirror-suggest';
70import { EditorState } from 'prosemirror-state';
71import { EditorState as EditorState_alias_2 } from 'prosemirror-suggest';
72import { EditorStateConfig } from 'prosemirror-state';
73import { EditorStateProps } from 'prosemirror-suggest';
74import { EditorView } from 'prosemirror-view';
75import { EditorView as EditorView_alias_1 } from 'prosemirror-suggest';
76import { EditorViewProps } from 'prosemirror-suggest';
77import { ellipsis } from 'prosemirror-inputrules';
78import { emDash } from 'prosemirror-inputrules';
79import { exitCode } from 'prosemirror-commands';
80import { ExitReason } from 'prosemirror-suggest';
81import { FileDropHandlerProps } from 'prosemirror-paste-rules';
82import { FileHandlerProps } from 'prosemirror-paste-rules';
83import { FilePasteHandlerProps } from 'prosemirror-paste-rules';
84import { FilePasteRule } from 'prosemirror-paste-rules';
85import { findCell } from 'prosemirror-tables';
86import { findFromSuggesters } from 'prosemirror-suggest';
87import { findWrapping } from 'prosemirror-transform';
88import { fixTables } from 'prosemirror-tables';
89import { fixTablesKey } from 'prosemirror-tables';
90import { Fragment } from 'prosemirror-model';
91import { GapCursor } from 'prosemirror-gapcursor';
92import { gapCursor } from 'prosemirror-gapcursor';
93import { GenericParseRule } from 'prosemirror-model';
94import { GetCellTypeOptions } from 'prosemirror-tables';
95import { getFromDOM } from 'prosemirror-tables';
96import { getSuggesterWithDefaults } from 'prosemirror-suggest';
97import { getSuggestPluginState } from 'prosemirror-suggest';
98import { getVersion } from 'prosemirror-collab';
99import { goToNextCell } from 'prosemirror-tables';
100import { handlePaste } from 'prosemirror-tables';
101import { history as history_2 } from 'prosemirror-history';
102import { IGNORE_SUGGEST_META_KEY } from 'prosemirror-suggest';
103import { ignoreUpdateForSuggest } from 'prosemirror-suggest';
104import { InputRule } from 'prosemirror-inputrules';
105import { inputRules } from 'prosemirror-inputrules';
106import { inSameTable } from 'prosemirror-tables';
107import { insertPoint } from 'prosemirror-transform';
108import { isChangeReason } from 'prosemirror-suggest';
109import { isExitReason } from 'prosemirror-suggest';
110import { isInCode } from 'prosemirror-paste-rules';
111import { IsInCodeOptions } from 'prosemirror-paste-rules';
112import { isInTable } from 'prosemirror-tables';
113import { isInvalidSplitReason } from 'prosemirror-suggest';
114import { isJumpReason } from 'prosemirror-suggest';
115import { isRemovedReason } from 'prosemirror-suggest';
116import { isSelectionChangeReason } from 'prosemirror-suggest';
117import { isSelectionExitReason } from 'prosemirror-suggest';
118import { isSplitReason } from 'prosemirror-suggest';
119import { isValidMatch } from 'prosemirror-suggest';
120import { joinBackward } from 'prosemirror-commands';
121import { joinDown } from 'prosemirror-commands';
122import { joinForward } from 'prosemirror-commands';
123import { joinPoint } from 'prosemirror-transform';
124import { joinTextblockBackward } from 'prosemirror-commands';
125import { joinTextblockForward } from 'prosemirror-commands';
126import { joinUp } from 'prosemirror-commands';
127import { keydownHandler } from 'prosemirror-keymap';
128import { keymap } from 'prosemirror-keymap';
129import { lift } from 'prosemirror-commands';
130import { liftEmptyBlock } from 'prosemirror-commands';
131import { liftListItem } from 'prosemirror-schema-list';
132import { liftTarget } from 'prosemirror-transform';
133import { listItem } from 'prosemirror-schema-list';
134import { macBaseKeymap } from 'prosemirror-commands';
135import { MakeOptional } from 'prosemirror-suggest';
136import { Mappable } from 'prosemirror-transform';
137import { Mapping } from 'prosemirror-transform';
138import { MapResult } from 'prosemirror-transform';
139import { Mark } from 'prosemirror-model';
140import { markActiveInRange } from 'prosemirror-suggest';
141import { MarkPasteRule } from 'prosemirror-paste-rules';
142import { MarkSpec } from 'prosemirror-model';
143import { MarkType } from 'prosemirror-model';
144import { MarkViewConstructor } from 'prosemirror-view';
145import { MatchValue } from 'prosemirror-suggest';
146import { mergeCells } from 'prosemirror-tables';
147import { moveCellForward } from 'prosemirror-tables';
148import { MutableAttrs } from 'prosemirror-tables';
149import { newlineInCode } from 'prosemirror-commands';
150import { nextCell } from 'prosemirror-tables';
151import { Node as Node_2 } from 'prosemirror-model';
152import { NodePasteRule } from 'prosemirror-paste-rules';
153import { NodeRange } from 'prosemirror-model';
154import { NodeSelection } from 'prosemirror-state';
155import { NodeSpec } from 'prosemirror-model';
156import { NodeType } from 'prosemirror-model';
157import { NodeView } from 'prosemirror-view';
158import { NodeViewConstructor } from 'prosemirror-view';
159import { openDoubleQuote } from 'prosemirror-inputrules';
160import { openSingleQuote } from 'prosemirror-inputrules';
161import { orderedList } from 'prosemirror-schema-list';
162import { ParseOptions } from 'prosemirror-model';
163import { ParseRule } from 'prosemirror-model';
164import { PasteRule } from 'prosemirror-paste-rules';
165import { pasteRules } from 'prosemirror-paste-rules';
166import { pcBaseKeymap } from 'prosemirror-commands';
167import { Plugin as Plugin_2 } from 'prosemirror-state';
168import { PluginKey } from 'prosemirror-state';
169import { PluginSpec } from 'prosemirror-state';
170import { PluginView } from 'prosemirror-state';
171import { chainCommands as pmChainCommands } from 'prosemirror-commands';
172import { pointsAtCell } from 'prosemirror-tables';
173import { positionHasMarks } from 'prosemirror-suggest';
174import { Problem } from 'prosemirror-tables';
175import { ProsemirrorNode as ProsemirrorNode_alias_1 } from 'prosemirror-suggest';
176import { rangeHasMarks } from 'prosemirror-suggest';
177import { RangeWithCursor } from 'prosemirror-suggest';
178import { ReasonMatchProps } from 'prosemirror-suggest';
179import { ReasonProps } from 'prosemirror-suggest';
180import { receiveTransaction } from 'prosemirror-collab';
181import { Rect } from 'prosemirror-tables';
182import { redo } from 'prosemirror-history';
183import { redoDepth } from 'prosemirror-history';
184import { redoNoScroll } from 'prosemirror-history';
185import { removeColSpan } from 'prosemirror-tables';
186import { removeColumn } from 'prosemirror-tables';
187import { RemoveIgnoredProps } from 'prosemirror-suggest';
188import { RemoveMarkStep } from 'prosemirror-transform';
189import { RemoveNodeMarkStep } from 'prosemirror-transform';
190import { removeRow } from 'prosemirror-tables';
191import { removeSuggester } from 'prosemirror-suggest';
192import { ReplaceAroundStep } from 'prosemirror-transform';
193import { ReplaceError } from 'prosemirror-model';
194import { ReplaceStep } from 'prosemirror-transform';
195import { replaceStep } from 'prosemirror-transform';
196import { ResizeState } from 'prosemirror-tables';
197import { ResolvedPos } from 'prosemirror-model';
198import { ResolvedPos as ResolvedPos_alias_2 } from 'prosemirror-suggest';
199import { ResolvedPosProps } from 'prosemirror-suggest';
200import { ResolvedRangeWithCursor } from 'prosemirror-suggest';
201import { rowIsHeader } from 'prosemirror-tables';
202import { Schema } from 'prosemirror-model';
203import { SchemaSpec } from 'prosemirror-model';
204import { selectAll } from 'prosemirror-commands';
205import { selectedRect } from 'prosemirror-tables';
206import { Selection as Selection_2 } from 'prosemirror-state';
207import { SelectionBookmark } from 'prosemirror-state';
208import { selectionCell } from 'prosemirror-tables';
209import { selectionOutsideMatch } from 'prosemirror-suggest';
210import { SelectionProps } from 'prosemirror-suggest';
211import { SelectionRange } from 'prosemirror-state';
212import { selectNodeBackward } from 'prosemirror-commands';
213import { selectNodeForward } from 'prosemirror-commands';
214import { selectParentNode } from 'prosemirror-commands';
215import { selectTextblockEnd } from 'prosemirror-commands';
216import { selectTextblockStart } from 'prosemirror-commands';
217import { sendableSteps } from 'prosemirror-collab';
218import { setBlockType } from 'prosemirror-commands';
219import { setCellAttr } from 'prosemirror-tables';
220import { setDOMAttr } from 'prosemirror-tables';
221import { ShouldDisableDecorations } from 'prosemirror-suggest';
222import { sinkListItem } from 'prosemirror-schema-list';
223import { Slice } from 'prosemirror-model';
224import { smartQuotes } from 'prosemirror-inputrules';
225import { splitBlock } from 'prosemirror-commands';
226import { splitBlockAs } from 'prosemirror-commands';
227import { splitBlockKeepMarks } from 'prosemirror-commands';
228import { splitCell } from 'prosemirror-tables';
229import { splitCellWithType } from 'prosemirror-tables';
230import { splitListItem } from 'prosemirror-schema-list';
231import { splitListItemKeepMarks } from 'prosemirror-schema-list';
232import { StateField } from 'prosemirror-state';
233import { Step } from 'prosemirror-transform';
234import { StepMap } from 'prosemirror-transform';
235import { StepResult } from 'prosemirror-transform';
236import { StyleParseRule } from 'prosemirror-model';
237import { suggest } from 'prosemirror-suggest';
238import { SuggestChangeHandler } from 'prosemirror-suggest';
239import { SuggestChangeHandlerProps } from 'prosemirror-suggest';
240import { Suggester } from 'prosemirror-suggest';
241import { SuggesterProps } from 'prosemirror-suggest';
242import { SuggestIgnoreProps } from 'prosemirror-suggest';
243import { SuggestMarkProps } from 'prosemirror-suggest';
244import { SuggestMatch } from 'prosemirror-suggest';
245import { SuggestMatchWithReason } from 'prosemirror-suggest';
246import { SuggestReasonMap } from 'prosemirror-suggest';
247import { SuggestState } from 'prosemirror-suggest';
248import { SuggestStateMatchProps } from 'prosemirror-suggest';
249import { tableEditing } from 'prosemirror-tables';
250import { tableEditingKey } from 'prosemirror-tables';
251import { TableEditingOptions } from 'prosemirror-tables';
252import { TableMap } from 'prosemirror-tables';
253import { TableNodes } from 'prosemirror-tables';
254import { tableNodes } from 'prosemirror-tables';
255import { TableNodesOptions } from 'prosemirror-tables';
256import { tableNodeTypes } from 'prosemirror-tables';
257import { TableRect } from 'prosemirror-tables';
258import { TableRole } from 'prosemirror-tables';
259import { TableView } from 'prosemirror-tables';
260import { TagParseRule } from 'prosemirror-model';
261import { textblockTypeInputRule } from 'prosemirror-inputrules';
262import { TextPasteRule } from 'prosemirror-paste-rules';
263import { TextProps } from 'prosemirror-suggest';
264import { TextSelection } from 'prosemirror-state';
265import { toggleHeader } from 'prosemirror-tables';
266import { toggleHeaderCell } from 'prosemirror-tables';
267import { toggleHeaderColumn } from 'prosemirror-tables';
268import { toggleHeaderRow } from 'prosemirror-tables';
269import { ToggleHeaderType } from 'prosemirror-tables';
270import { toggleMark } from 'prosemirror-commands';
271import { trailingNode } from 'prosemirror-trailing-node';
272import { TrailingNodePluginOptions } from 'prosemirror-trailing-node';
273import { Transaction } from 'prosemirror-state';
274import { Transaction as Transaction_alias_2 } from 'prosemirror-suggest';
275import { TransactionProps } from 'prosemirror-suggest';
276import { Transform } from 'prosemirror-transform';
277import { undo } from 'prosemirror-history';
278import { undoDepth } from 'prosemirror-history';
279import { undoInputRule } from 'prosemirror-inputrules';
280import { undoNoScroll } from 'prosemirror-history';
281import { updateColumnsOnResize } from 'prosemirror-tables';
282import { wrapIn } from 'prosemirror-commands';
283import { wrapInList } from 'prosemirror-schema-list';
284import { wrappingInputRule } from 'prosemirror-inputrules';
285
286export { __Area }
287
288export { __clipCells }
289
290export { __insertCells }
291
292export { __pastedCells }
293
294export { addColSpan }
295
296export { addColumn }
297
298export { addColumnAfter }
299
300export { addColumnBefore }
301
302export { AddIgnoredProps }
303
304export { addListNodes }
305
306export { AddMarkStep }
307
308export { AddNodeMarkStep }
309
310export { addRow }
311
312export { addRowAfter }
313
314export { addRowBefore }
315
316export { addSuggester }
317
318export { AllSelection }
319
320export { AttributeSpec }
321
322export { Attrs }
323
324export { AttrStep }
325
326export { autoJoin }
327
328export { baseKeymap }
329
330declare type Brand<Type, B> = Type & Branding<B>;
331
332declare const _brand: unique symbol;
333
334declare interface Branding<Type> {
335 readonly [_brand]: Type;
336}
337
338export { bulletList }
339
340export { canJoin }
341
342export { canSplit }
343
344export { cellAround }
345
346export { CellAttributes }
347
348export { CellBookmark }
349
350export { CellSelection }
351
352export { CellSelectionJSON }
353
354/**
355 * Creates a fake state that can be used on ProseMirror library commands to make
356 * them chainable. The provided Transaction `tr` can be a shared one.
357 *
358 * @param tr - the chainable transaction that should be amended.
359 * @param state - the state of the editor (available via `view.state`).
360 *
361 * This should not be used other than for passing to `prosemirror-*` library
362 * commands.
363 */
364declare function chainableEditorState(tr: Transaction, state: EditorState): EditorState;
365export { chainableEditorState }
366export { chainableEditorState as chainableEditorState_alias_1 }
367
368/**
369 * Similar to the chainCommands from the `prosemirror-commands` library. Allows
370 * multiple commands to be chained together and runs until one of them returns
371 * true.
372 */
373declare function chainCommands<Extra extends object = object>(...commands: Array<CommandFunction<Extra>>): CommandFunction<Extra>;
374export { chainCommands }
375export { chainCommands as chainCommands_alias_1 }
376
377export { ChangeReason }
378
379export { CheckNextValidSelection }
380
381export { closeDoubleQuote }
382
383export { closeHistory }
384
385export { closeSingleQuote }
386
387export { colCount }
388
389export { collab }
390
391export { columnIsHeader }
392
393export { columnResizing }
394
395export { ColumnResizingOptions }
396
397export { columnResizingPluginKey }
398
399export { ColWidths }
400
401export { Command }
402
403/**
404 * A command method for running commands in your editor.
405 *
406 * @typeParam Schema - the underlying editor schema.
407 * @typeParam ExtraProps - extra parameters to add to the command function.
408 *
409 * @remarks
410 *
411 * This groups all the prosemirror command arguments into a single parameter.
412 *
413 * tldr; When `dispatch=undefined` make sure the command function is **idempotent**.
414 *
415 * One thing to be aware of is that when creating a command function the
416 * `tr` should only be updated when the `dispatch` method is available. This is
417 * because by convention calling the command function with `dispatch=undefined`
418 * is used to check if the function returns `true`, an indicator that it is
419 * enabled, or returns `false` to indicate it is not enabled.
420 *
421 * If the transaction has been updated outside of the `dispatch=true` condition
422 * then running the command again will result in multiple transaction updates
423 * and unpredictable behavior.
424 *
425 * @see {@link ProsemirrorCommandFunction}
426 */
427declare type CommandFunction<ExtraProps extends object = object> = (params: CommandFunctionProps & ExtraProps) => boolean;
428export { CommandFunction }
429export { CommandFunction as CommandFunction_alias_1 }
430
431/**
432 * A parameter builder interface for the remirror `CommandFunction`.
433 *
434 * @typeParam Schema - the underlying editor schema.
435 */
436declare interface CommandFunctionProps {
437 /**
438 * The shared ProseMirror Transaction.
439 */
440 tr: Transaction;
441 /**
442 * A snapshot of the ProseMirror editor state.
443 */
444 state: EditorState;
445 /**
446 * The dispatch function which causes the command to be performed.
447 *
448 * @remarks
449 *
450 * `dispatch` can be `undefined`. When no `dispatch` callback is provided the
451 * command should perform a 'dry run', determining whether the command is
452 * applicable (`return true`), but not actually performing the action.
453 */
454 dispatch?: DispatchFunction;
455 /**
456 * An instance of the ProseMirror editor `view`.
457 */
458 view?: EditorView;
459}
460export { CommandFunctionProps }
461export { CommandFunctionProps as CommandFunctionProps_alias_1 }
462
463export { CompareMatchProps }
464
465export { ContentMatch }
466
467/**
468 * Wraps the default [[ProsemirrorCommandFunction]] and makes it compatible with
469 * the default **remirror** [[CommandFunction]] call signature.
470 *
471 * It extracts all the public APIs of the state object and assigns the
472 * chainable transaction to the `state.tr` property to support chaining.
473 */
474declare function convertCommand<Extra extends object = object>(commandFunction: ProsemirrorCommandFunction): CommandFunction<Extra>;
475export { convertCommand }
476export { convertCommand as convertCommand_alias_1 }
477
478export { createParagraphNear }
479
480export { createRegexFromSuggester }
481
482export { Decoration }
483export { Decoration as Decoration_alias_1 }
484export { Decoration as Decoration_alias_2 }
485
486export { DecorationAttrs }
487
488export { DecorationSet }
489export { DecorationSet as DecorationSet_alias_1 }
490export { DecorationSet as DecorationSet_alias_2 }
491
492export { DecorationSource }
493
494export { DEFAULT_SUGGESTER }
495
496export { deleteColumn }
497
498export { deleteRow }
499
500export { deleteSelection }
501
502export { deleteTable }
503
504export { DirectEditorProps }
505
506export { Direction }
507
508/**
509 * Used to apply the Prosemirror transaction to the current {@link EditorState}.
510 *
511 * @typeParam Schema - the underlying editor schema.
512 */
513declare type DispatchFunction = (tr: Transaction) => void;
514export { DispatchFunction }
515export { DispatchFunction as DispatchFunction_alias_1 }
516
517export { DocAttrStep }
518
519export { DocChangedProps }
520
521export { DOMEventMap }
522
523export { DOMOutputSpec }
524
525export { DOMParser_2 as DOMParser }
526
527export { DOMSerializer }
528
529export { Dragging }
530
531export { dropCursor }
532
533export { dropPoint }
534
535export { EditorProps }
536
537export { EditorSchema_alias_1 }
538
539export { EditorState }
540export { EditorState as EditorState_alias_1 }
541export { EditorState as EditorState_alias_3 }
542
543export { EditorState_alias_2 }
544
545export { EditorStateConfig }
546
547export { EditorStateProps }
548
549export { EditorView }
550export { EditorView as EditorView_alias_2 }
551export { EditorView as EditorView_alias_3 }
552
553export { EditorView_alias_1 }
554
555export { EditorViewProps }
556
557export { ellipsis }
558
559export { emDash }
560
561export { exitCode }
562
563export { ExitReason }
564
565export { FileDropHandlerProps }
566
567export { FileHandlerProps }
568
569export { FilePasteHandlerProps }
570
571export { FilePasteRule }
572
573export { findCell }
574
575export { findFromSuggesters }
576
577export { findWrapping }
578
579export { fixTables }
580
581export { fixTablesKey }
582
583export { Fragment }
584export { Fragment as Fragment_alias_1 }
585export { Fragment as Fragment_alias_2 }
586
587export { GapCursor }
588
589export { gapCursor }
590
591export { GenericParseRule }
592
593export { GetCellTypeOptions }
594
595export { getFromDOM }
596
597export { getSuggesterWithDefaults }
598
599export { getSuggestPluginState }
600
601export { getVersion }
602
603export { goToNextCell }
604
605export { handlePaste }
606
607export { history_2 as history }
608
609export { IGNORE_SUGGEST_META_KEY }
610
611export { ignoreUpdateForSuggest }
612
613export { InputRule }
614export { InputRule as InputRule_alias_1 }
615export { InputRule as InputRule_alias_2 }
616
617export { inputRules }
618
619export { inSameTable }
620
621export { insertPoint }
622
623/**
624 * Predicate checking whether the selection is a [[`CellSelection`]].
625 *
626 * @param value - the value to check
627 */
628export declare function isCellSelection(value: unknown): value is CellSelection;
629
630export { isChangeReason }
631
632export { isExitReason }
633
634export { isInCode }
635
636export { IsInCodeOptions }
637
638export { isInTable }
639
640export { isInvalidSplitReason }
641
642export { isJumpReason }
643
644export { isRemovedReason }
645
646export { isSelectionChangeReason }
647
648export { isSelectionExitReason }
649
650export { isSplitReason }
651
652export { isValidMatch }
653
654export { joinBackward }
655
656export { joinDown }
657
658export { joinForward }
659
660export { joinPoint }
661
662export { joinTextblockBackward }
663
664export { joinTextblockForward }
665
666export { joinUp }
667
668export { keydownHandler }
669
670export { keymap }
671
672export { lift }
673
674export { liftEmptyBlock }
675
676export { liftListItem }
677
678export { liftTarget }
679
680export { listItem }
681
682export { macBaseKeymap }
683
684export { MakeOptional }
685
686export { Mappable }
687
688export { Mapping }
689export { Mapping as Mapping_alias_1 }
690export { Mapping as Mapping_alias_2 }
691
692export { MapResult }
693
694export { Mark }
695export { Mark as Mark_alias_1 }
696export { Mark as Mark_alias_2 }
697
698export { markActiveInRange }
699
700export { MarkPasteRule }
701
702export { MarkSpec }
703
704export { MarkType }
705export { MarkType as MarkType_alias_1 }
706export { MarkType as MarkType_alias_2 }
707
708export { MarkViewConstructor }
709
710export { MatchValue }
711
712export { mergeCells }
713
714export { moveCellForward }
715
716export { MutableAttrs }
717
718export { newlineInCode }
719
720export { nextCell }
721
722export { Node_2 as Node }
723export { Node_2 as ProsemirrorNode }
724export { Node_2 as ProsemirrorNode_alias_2 }
725
726export { NodePasteRule }
727
728export { NodeRange }
729
730export { NodeSelection }
731
732export { NodeSpec }
733
734export { NodeType }
735export { NodeType as NodeType_alias_1 }
736export { NodeType as NodeType_alias_2 }
737
738export { NodeView }
739export { NodeView as NodeView_alias_1 }
740export { NodeView as NodeView_alias_2 }
741
742export { NodeViewConstructor }
743
744/**
745 * Marks a command function as non chainable. It will throw an error when
746 * chaining is attempted.
747 *
748 * @remarks
749 *
750 * ```ts
751 * const command = nonChainable(({ state, dispatch }) => {...});
752 * ```
753 */
754declare function nonChainable<Extra extends object = object>(commandFunction: CommandFunction<Extra>): NonChainableCommandFunction<Extra>;
755export { nonChainable }
756export { nonChainable as nonChainable_alias_1 }
757
758/**
759 * Brands a command as non chainable so that it can be excluded from the
760 * inferred chainable commands.
761 */
762declare type NonChainableCommandFunction<Extra extends object = object> = Brand<CommandFunction<Extra>, 'non-chainable'>;
763export { NonChainableCommandFunction }
764export { NonChainableCommandFunction as NonChainableCommandFunction_alias_1 }
765
766export { openDoubleQuote }
767
768export { openSingleQuote }
769
770export { orderedList }
771
772export { ParseOptions }
773
774export { ParseRule }
775
776export { PasteRule }
777
778export { pasteRules }
779
780export { pcBaseKeymap }
781
782export { Plugin_2 as Plugin }
783export { Plugin_2 as ProsemirrorPlugin }
784export { Plugin_2 as ProsemirrorPlugin_alias_1 }
785
786export { PluginKey }
787export { PluginKey as PluginKey_alias_1 }
788export { PluginKey as PluginKey_alias_2 }
789
790export { PluginSpec }
791
792export { PluginView }
793
794export { pmChainCommands }
795
796export { pointsAtCell }
797
798export { positionHasMarks }
799
800export { Problem }
801
802/**
803 * This is the type signature for commands within the prosemirror editor.
804 *
805 * @remarks
806 *
807 * A command function takes an editor state and optionally a dispatch function
808 * that it can use to dispatch a transaction. It should return a boolean that
809 * indicates whether it could perform any action.
810 *
811 * When no dispatch callback is passed, the command should do a 'dry run',
812 * determining whether it is applicable, but not actually performing any action.
813 *
814 * @typeParam Schema - the underlying editor schema.
815 */
816declare type ProsemirrorCommandFunction = (state: EditorState, dispatch: DispatchFunction | undefined, view: EditorView | undefined) => boolean;
817export { ProsemirrorCommandFunction }
818export { ProsemirrorCommandFunction as ProsemirrorCommandFunction_alias_1 }
819
820export { ProsemirrorNode_alias_1 }
821
822export { rangeHasMarks }
823
824export { RangeWithCursor }
825
826export { ReasonMatchProps }
827
828export { ReasonProps }
829
830export { receiveTransaction }
831
832export { Rect }
833
834export { redo }
835
836export { redoDepth }
837
838export { redoNoScroll }
839
840export { removeColSpan }
841
842export { removeColumn }
843
844export { RemoveIgnoredProps }
845
846export { RemoveMarkStep }
847
848export { RemoveNodeMarkStep }
849
850export { removeRow }
851
852export { removeSuggester }
853
854export { ReplaceAroundStep }
855
856export { ReplaceError }
857
858export { ReplaceStep }
859
860export { replaceStep }
861
862export { ResizeState }
863
864export { ResolvedPos }
865export { ResolvedPos as ResolvedPos_alias_1 }
866export { ResolvedPos as ResolvedPos_alias_3 }
867
868export { ResolvedPos_alias_2 }
869
870export { ResolvedPosProps }
871
872export { ResolvedRangeWithCursor }
873
874export { rowIsHeader }
875
876export { Schema as EditorSchema }
877export { Schema as EditorSchema_alias_2 }
878export { Schema }
879
880export { SchemaSpec }
881
882export { selectAll }
883
884export { selectedRect }
885
886export { Selection_2 as Selection }
887export { Selection_2 as Selection_alias_1 }
888export { Selection_2 as Selection_alias_2 }
889
890export { SelectionBookmark }
891
892export { selectionCell }
893
894export { selectionOutsideMatch }
895
896export { SelectionProps }
897
898export { SelectionRange }
899
900export { selectNodeBackward }
901
902export { selectNodeForward }
903
904export { selectParentNode }
905
906export { selectTextblockEnd }
907
908export { selectTextblockStart }
909
910export { sendableSteps }
911
912export { setBlockType }
913
914export { setCellAttr }
915
916export { setDOMAttr }
917
918export { ShouldDisableDecorations }
919
920export { sinkListItem }
921
922export { Slice }
923export { Slice as Slice_alias_1 }
924export { Slice as Slice_alias_2 }
925
926export { smartQuotes }
927
928export { splitBlock }
929
930export { splitBlockAs }
931
932export { splitBlockKeepMarks }
933
934export { splitCell }
935
936export { splitCellWithType }
937
938export { splitListItem }
939
940export { splitListItemKeepMarks }
941
942export { StateField }
943
944export { Step }
945
946export { StepMap }
947
948export { StepResult }
949
950export { StyleParseRule }
951
952export { suggest }
953
954export { SuggestChangeHandler }
955
956export { SuggestChangeHandlerProps }
957
958export { Suggester }
959
960export { SuggesterProps }
961
962export { SuggestIgnoreProps }
963
964export { SuggestMarkProps }
965
966export { SuggestMatch }
967
968export { SuggestMatchWithReason }
969
970export { SuggestReasonMap }
971
972export { SuggestState }
973
974export { SuggestStateMatchProps }
975
976export { tableEditing }
977
978export { tableEditingKey }
979
980export { TableEditingOptions }
981
982export { TableMap }
983
984export { TableNodes }
985
986export { tableNodes }
987
988export { TableNodesOptions }
989
990export { tableNodeTypes }
991
992export { TableRect }
993
994export { TableRole }
995
996export { TableView }
997
998export { TagParseRule }
999
1000export { textblockTypeInputRule }
1001
1002export { TextPasteRule }
1003
1004export { TextProps }
1005
1006export { TextSelection }
1007
1008export { toggleHeader }
1009
1010export { toggleHeaderCell }
1011
1012export { toggleHeaderColumn }
1013
1014export { toggleHeaderRow }
1015
1016export { ToggleHeaderType }
1017
1018export { toggleMark }
1019
1020export { trailingNode }
1021
1022export { TrailingNodePluginOptions }
1023
1024export { Transaction }
1025export { Transaction as Transaction_alias_1 }
1026export { Transaction as Transaction_alias_3 }
1027
1028export { Transaction_alias_2 }
1029
1030export { TransactionProps }
1031
1032export { Transform }
1033
1034export { undo }
1035
1036export { undoDepth }
1037
1038export { undoInputRule }
1039
1040export { undoNoScroll }
1041
1042export { updateColumnsOnResize }
1043
1044export { wrapIn }
1045
1046export { wrapInList }
1047
1048export { wrappingInputRule }
1049
1050export { }