@tiptap/core
Advanced tools
Comparing version 2.1.0-rc.9 to 2.1.0-rc.10
import { EditorState, Transaction } from '@tiptap/pm/state'; | ||
import { Editor } from './Editor'; | ||
import { AnyCommands, CanCommands, ChainedCommands, CommandProps, SingleCommands } from './types'; | ||
import { Editor } from './Editor.js'; | ||
import { AnyCommands, CanCommands, ChainedCommands, CommandProps, SingleCommands } from './types.js'; | ||
export declare class CommandManager { | ||
@@ -5,0 +5,0 @@ editor: Editor; |
@@ -1,2 +0,2 @@ | ||
import { RawCommands } from '../types'; | ||
import { RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -3,0 +3,0 @@ interface Commands<ReturnType> { |
@@ -1,2 +0,2 @@ | ||
import { RawCommands } from '../types'; | ||
import { RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -3,0 +3,0 @@ interface Commands<ReturnType> { |
@@ -1,2 +0,2 @@ | ||
import { RawCommands } from '../types'; | ||
import { RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -3,0 +3,0 @@ interface Commands<ReturnType> { |
@@ -1,2 +0,2 @@ | ||
import { Command, RawCommands } from '../types'; | ||
import { Command, RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -3,0 +3,0 @@ interface Commands<ReturnType> { |
@@ -1,2 +0,2 @@ | ||
import { RawCommands } from '../types'; | ||
import { RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -3,0 +3,0 @@ interface Commands<ReturnType> { |
@@ -1,2 +0,2 @@ | ||
import { RawCommands } from '../types'; | ||
import { RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -3,0 +3,0 @@ interface Commands<ReturnType> { |
import { NodeType } from '@tiptap/pm/model'; | ||
import { RawCommands } from '../types'; | ||
import { RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -4,0 +4,0 @@ interface Commands<ReturnType> { |
@@ -1,2 +0,2 @@ | ||
import { Range, RawCommands } from '../types'; | ||
import { Range, RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -3,0 +3,0 @@ interface Commands<ReturnType> { |
@@ -1,2 +0,2 @@ | ||
import { RawCommands } from '../types'; | ||
import { RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -3,0 +3,0 @@ interface Commands<ReturnType> { |
@@ -1,2 +0,2 @@ | ||
import { RawCommands } from '../types'; | ||
import { RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -3,0 +3,0 @@ interface Commands<ReturnType> { |
@@ -1,2 +0,2 @@ | ||
import { RawCommands } from '../types'; | ||
import { RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -3,0 +3,0 @@ interface Commands<ReturnType> { |
import { MarkType } from '@tiptap/pm/model'; | ||
import { RawCommands } from '../types'; | ||
import { RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -4,0 +4,0 @@ interface Commands<ReturnType> { |
@@ -1,2 +0,2 @@ | ||
import { Command, CommandProps, RawCommands } from '../types'; | ||
import { Command, CommandProps, RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -3,0 +3,0 @@ interface Commands<ReturnType> { |
@@ -1,2 +0,2 @@ | ||
import { FocusPosition, RawCommands } from '../types'; | ||
import { FocusPosition, RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -3,0 +3,0 @@ interface Commands<ReturnType> { |
@@ -1,2 +0,2 @@ | ||
import { CommandProps, RawCommands } from '../types'; | ||
import { CommandProps, RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -3,0 +3,0 @@ interface Commands<ReturnType> { |
@@ -1,50 +0,51 @@ | ||
export * from './blur'; | ||
export * from './clearContent'; | ||
export * from './clearNodes'; | ||
export * from './command'; | ||
export * from './createParagraphNear'; | ||
export * from './deleteCurrentNode'; | ||
export * from './deleteNode'; | ||
export * from './deleteRange'; | ||
export * from './deleteSelection'; | ||
export * from './enter'; | ||
export * from './exitCode'; | ||
export * from './extendMarkRange'; | ||
export * from './first'; | ||
export * from './focus'; | ||
export * from './forEach'; | ||
export * from './insertContent'; | ||
export * from './insertContentAt'; | ||
export * from './join'; | ||
export * from './keyboardShortcut'; | ||
export * from './lift'; | ||
export * from './liftEmptyBlock'; | ||
export * from './liftListItem'; | ||
export * from './newlineInCode'; | ||
export * from './resetAttributes'; | ||
export * from './scrollIntoView'; | ||
export * from './selectAll'; | ||
export * from './selectNodeBackward'; | ||
export * from './selectNodeForward'; | ||
export * from './selectParentNode'; | ||
export * from './selectTextblockEnd'; | ||
export * from './selectTextblockStart'; | ||
export * from './setContent'; | ||
export * from './setMark'; | ||
export * from './setMeta'; | ||
export * from './setNode'; | ||
export * from './setNodeSelection'; | ||
export * from './setTextSelection'; | ||
export * from './sinkListItem'; | ||
export * from './splitBlock'; | ||
export * from './splitListItem'; | ||
export * from './toggleList'; | ||
export * from './toggleMark'; | ||
export * from './toggleNode'; | ||
export * from './toggleWrap'; | ||
export * from './undoInputRule'; | ||
export * from './unsetAllMarks'; | ||
export * from './unsetMark'; | ||
export * from './updateAttributes'; | ||
export * from './wrapIn'; | ||
export * from './wrapInList'; | ||
export * from './blur.js'; | ||
export * from './clearContent.js'; | ||
export * from './clearNodes.js'; | ||
export * from './command.js'; | ||
export * from './createParagraphNear.js'; | ||
export * from './cut.js'; | ||
export * from './deleteCurrentNode.js'; | ||
export * from './deleteNode.js'; | ||
export * from './deleteRange.js'; | ||
export * from './deleteSelection.js'; | ||
export * from './enter.js'; | ||
export * from './exitCode.js'; | ||
export * from './extendMarkRange.js'; | ||
export * from './first.js'; | ||
export * from './focus.js'; | ||
export * from './forEach.js'; | ||
export * from './insertContent.js'; | ||
export * from './insertContentAt.js'; | ||
export * from './join.js'; | ||
export * from './keyboardShortcut.js'; | ||
export * from './lift.js'; | ||
export * from './liftEmptyBlock.js'; | ||
export * from './liftListItem.js'; | ||
export * from './newlineInCode.js'; | ||
export * from './resetAttributes.js'; | ||
export * from './scrollIntoView.js'; | ||
export * from './selectAll.js'; | ||
export * from './selectNodeBackward.js'; | ||
export * from './selectNodeForward.js'; | ||
export * from './selectParentNode.js'; | ||
export * from './selectTextblockEnd.js'; | ||
export * from './selectTextblockStart.js'; | ||
export * from './setContent.js'; | ||
export * from './setMark.js'; | ||
export * from './setMeta.js'; | ||
export * from './setNode.js'; | ||
export * from './setNodeSelection.js'; | ||
export * from './setTextSelection.js'; | ||
export * from './sinkListItem.js'; | ||
export * from './splitBlock.js'; | ||
export * from './splitListItem.js'; | ||
export * from './toggleList.js'; | ||
export * from './toggleMark.js'; | ||
export * from './toggleNode.js'; | ||
export * from './toggleWrap.js'; | ||
export * from './undoInputRule.js'; | ||
export * from './unsetAllMarks.js'; | ||
export * from './unsetMark.js'; | ||
export * from './updateAttributes.js'; | ||
export * from './wrapIn.js'; | ||
export * from './wrapInList.js'; |
import { ParseOptions } from '@tiptap/pm/model'; | ||
import { Content, RawCommands } from '../types'; | ||
import { Content, RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -4,0 +4,0 @@ interface Commands<ReturnType> { |
import { ParseOptions } from '@tiptap/pm/model'; | ||
import { Content, Range, RawCommands } from '../types'; | ||
import { Content, Range, RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -4,0 +4,0 @@ interface Commands<ReturnType> { |
@@ -1,2 +0,2 @@ | ||
import { RawCommands } from '../types'; | ||
import { RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -3,0 +3,0 @@ interface Commands<ReturnType> { |
@@ -1,2 +0,2 @@ | ||
import { RawCommands } from '../types'; | ||
import { RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -3,0 +3,0 @@ interface Commands<ReturnType> { |
import { NodeType } from '@tiptap/pm/model'; | ||
import { RawCommands } from '../types'; | ||
import { RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -4,0 +4,0 @@ interface Commands<ReturnType> { |
@@ -1,2 +0,2 @@ | ||
import { RawCommands } from '../types'; | ||
import { RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -3,0 +3,0 @@ interface Commands<ReturnType> { |
import { NodeType } from '@tiptap/pm/model'; | ||
import { RawCommands } from '../types'; | ||
import { RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -4,0 +4,0 @@ interface Commands<ReturnType> { |
@@ -1,2 +0,2 @@ | ||
import { RawCommands } from '../types'; | ||
import { RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -3,0 +3,0 @@ interface Commands<ReturnType> { |
import { MarkType, NodeType } from '@tiptap/pm/model'; | ||
import { RawCommands } from '../types'; | ||
import { RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -4,0 +4,0 @@ interface Commands<ReturnType> { |
@@ -1,2 +0,2 @@ | ||
import { RawCommands } from '../types'; | ||
import { RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -3,0 +3,0 @@ interface Commands<ReturnType> { |
@@ -1,2 +0,2 @@ | ||
import { RawCommands } from '../types'; | ||
import { RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -3,0 +3,0 @@ interface Commands<ReturnType> { |
@@ -1,2 +0,2 @@ | ||
import { RawCommands } from '../types'; | ||
import { RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -3,0 +3,0 @@ interface Commands<ReturnType> { |
@@ -1,2 +0,2 @@ | ||
import { RawCommands } from '../types'; | ||
import { RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -3,0 +3,0 @@ interface Commands<ReturnType> { |
@@ -1,2 +0,2 @@ | ||
import { RawCommands } from '../types'; | ||
import { RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -3,0 +3,0 @@ interface Commands<ReturnType> { |
@@ -1,2 +0,2 @@ | ||
import { RawCommands } from '../types'; | ||
import { RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -3,0 +3,0 @@ interface Commands<ReturnType> { |
@@ -1,2 +0,2 @@ | ||
import { RawCommands } from '../types'; | ||
import { RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -3,0 +3,0 @@ interface Commands<ReturnType> { |
import { ParseOptions } from '@tiptap/pm/model'; | ||
import { Content, RawCommands } from '../types'; | ||
import { Content, RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -4,0 +4,0 @@ interface Commands<ReturnType> { |
import { MarkType } from '@tiptap/pm/model'; | ||
import { RawCommands } from '../types'; | ||
import { RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -4,0 +4,0 @@ interface Commands<ReturnType> { |
@@ -1,2 +0,2 @@ | ||
import { RawCommands } from '../types'; | ||
import { RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -3,0 +3,0 @@ interface Commands<ReturnType> { |
import { NodeType } from '@tiptap/pm/model'; | ||
import { RawCommands } from '../types'; | ||
import { RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -4,0 +4,0 @@ interface Commands<ReturnType> { |
@@ -1,2 +0,2 @@ | ||
import { RawCommands } from '../types'; | ||
import { RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -3,0 +3,0 @@ interface Commands<ReturnType> { |
@@ -1,2 +0,2 @@ | ||
import { Range, RawCommands } from '../types'; | ||
import { Range, RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -3,0 +3,0 @@ interface Commands<ReturnType> { |
import { NodeType } from '@tiptap/pm/model'; | ||
import { RawCommands } from '../types'; | ||
import { RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -4,0 +4,0 @@ interface Commands<ReturnType> { |
@@ -1,2 +0,2 @@ | ||
import { RawCommands } from '../types'; | ||
import { RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -3,0 +3,0 @@ interface Commands<ReturnType> { |
import { NodeType } from '@tiptap/pm/model'; | ||
import { RawCommands } from '../types'; | ||
import { RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -4,0 +4,0 @@ interface Commands<ReturnType> { |
import { NodeType } from '@tiptap/pm/model'; | ||
import { RawCommands } from '../types'; | ||
import { RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -4,0 +4,0 @@ interface Commands<ReturnType> { |
import { MarkType } from '@tiptap/pm/model'; | ||
import { RawCommands } from '../types'; | ||
import { RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -4,0 +4,0 @@ interface Commands<ReturnType> { |
import { NodeType } from '@tiptap/pm/model'; | ||
import { RawCommands } from '../types'; | ||
import { RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -4,0 +4,0 @@ interface Commands<ReturnType> { |
import { NodeType } from '@tiptap/pm/model'; | ||
import { RawCommands } from '../types'; | ||
import { RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -4,0 +4,0 @@ interface Commands<ReturnType> { |
@@ -1,2 +0,2 @@ | ||
import { RawCommands } from '../types'; | ||
import { RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -3,0 +3,0 @@ interface Commands<ReturnType> { |
@@ -1,2 +0,2 @@ | ||
import { RawCommands } from '../types'; | ||
import { RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -3,0 +3,0 @@ interface Commands<ReturnType> { |
import { MarkType } from '@tiptap/pm/model'; | ||
import { RawCommands } from '../types'; | ||
import { RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -4,0 +4,0 @@ interface Commands<ReturnType> { |
import { MarkType, NodeType } from '@tiptap/pm/model'; | ||
import { RawCommands } from '../types'; | ||
import { RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -4,0 +4,0 @@ interface Commands<ReturnType> { |
import { NodeType } from '@tiptap/pm/model'; | ||
import { RawCommands } from '../types'; | ||
import { RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -4,0 +4,0 @@ interface Commands<ReturnType> { |
import { NodeType } from '@tiptap/pm/model'; | ||
import { RawCommands } from '../types'; | ||
import { RawCommands } from '../types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -4,0 +4,0 @@ interface Commands<ReturnType> { |
import { MarkType, NodeType, Schema } from '@tiptap/pm/model'; | ||
import { EditorState, Plugin, PluginKey, Transaction } from '@tiptap/pm/state'; | ||
import { EditorView } from '@tiptap/pm/view'; | ||
import { EventEmitter } from './EventEmitter'; | ||
import { ExtensionManager } from './ExtensionManager'; | ||
import * as extensions from './extensions'; | ||
import { CanCommands, ChainedCommands, EditorEvents, EditorOptions, JSONContent, SingleCommands, TextSerializer } from './types'; | ||
import { EventEmitter } from './EventEmitter.js'; | ||
import { ExtensionManager } from './ExtensionManager.js'; | ||
import * as extensions from './extensions/index.js'; | ||
import { CanCommands, ChainedCommands, EditorEvents, EditorOptions, JSONContent, SingleCommands, TextSerializer } from './types.js'; | ||
export { extensions }; | ||
@@ -9,0 +9,0 @@ export interface HTMLElement { |
import { Plugin, Transaction } from '@tiptap/pm/state'; | ||
import { ExtensionConfig } from '.'; | ||
import { Editor } from './Editor'; | ||
import { InputRule } from './InputRule'; | ||
import { Mark } from './Mark'; | ||
import { Node } from './Node'; | ||
import { PasteRule } from './PasteRule'; | ||
import { Extensions, GlobalAttributes, KeyboardShortcutCommand, ParentConfig, RawCommands } from './types'; | ||
import { Editor } from './Editor.js'; | ||
import { ExtensionConfig } from './index.js'; | ||
import { InputRule } from './InputRule.js'; | ||
import { Mark } from './Mark.js'; | ||
import { Node } from './Node.js'; | ||
import { PasteRule } from './PasteRule.js'; | ||
import { Extensions, GlobalAttributes, KeyboardShortcutCommand, ParentConfig, RawCommands } from './types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -10,0 +10,0 @@ interface ExtensionConfig<Options = any, Storage = any> { |
import { Schema } from '@tiptap/pm/model'; | ||
import { Plugin } from '@tiptap/pm/state'; | ||
import { Editor } from './Editor'; | ||
import { Extensions, RawCommands } from './types'; | ||
import { Editor } from './Editor.js'; | ||
import { Extensions, RawCommands } from './types.js'; | ||
export declare class ExtensionManager { | ||
@@ -6,0 +6,0 @@ editor: Editor; |
@@ -1,2 +0,2 @@ | ||
import { Extension } from '../Extension'; | ||
import { Extension } from '../Extension.js'; | ||
export declare const ClipboardTextSerializer: Extension<any, any>; |
@@ -1,3 +0,3 @@ | ||
import { Extension } from '../Extension'; | ||
export * from '../commands'; | ||
import { Extension } from '../Extension.js'; | ||
export * from '../commands/index.js'; | ||
export declare const Commands: Extension<any, any>; |
@@ -1,2 +0,2 @@ | ||
import { Extension } from '../Extension'; | ||
import { Extension } from '../Extension.js'; | ||
export declare const Editable: Extension<any, any>; |
@@ -1,2 +0,2 @@ | ||
import { Extension } from '../Extension'; | ||
import { Extension } from '../Extension.js'; | ||
export declare const FocusEvents: Extension<any, any>; |
@@ -1,6 +0,6 @@ | ||
export { ClipboardTextSerializer } from './clipboardTextSerializer'; | ||
export { Commands } from './commands'; | ||
export { Editable } from './editable'; | ||
export { FocusEvents } from './focusEvents'; | ||
export { Keymap } from './keymap'; | ||
export { Tabindex } from './tabindex'; | ||
export { ClipboardTextSerializer } from './clipboardTextSerializer.js'; | ||
export { Commands } from './commands.js'; | ||
export { Editable } from './editable.js'; | ||
export { FocusEvents } from './focusEvents.js'; | ||
export { Keymap } from './keymap.js'; | ||
export { Tabindex } from './tabindex.js'; |
@@ -1,2 +0,2 @@ | ||
import { Extension } from '../Extension'; | ||
import { Extension } from '../Extension.js'; | ||
export declare const Keymap: Extension<any, any>; |
@@ -1,2 +0,2 @@ | ||
import { Extension } from '../Extension'; | ||
import { Extension } from '../Extension.js'; | ||
export declare const Tabindex: Extension<any, any>; |
import { Node as ProseMirrorNode, ParseOptions, Schema } from '@tiptap/pm/model'; | ||
import { Content } from '../types'; | ||
import { Content } from '../types.js'; | ||
export declare function createDocument(content: Content, schema: Schema, parseOptions?: ParseOptions): ProseMirrorNode; |
import { Fragment, Node as ProseMirrorNode, ParseOptions, Schema } from '@tiptap/pm/model'; | ||
import { Content } from '../types'; | ||
import { Content } from '../types.js'; | ||
export declare type CreateNodeFromContentOptions = { | ||
@@ -4,0 +4,0 @@ slice?: boolean; |
import { Node as ProseMirrorNode } from '@tiptap/pm/model'; | ||
import { NodeWithPos, Predicate } from '../types'; | ||
import { NodeWithPos, Predicate } from '../types.js'; | ||
export declare function findChildren(node: ProseMirrorNode, predicate: Predicate): NodeWithPos[]; |
import { Node as ProseMirrorNode } from '@tiptap/pm/model'; | ||
import { NodeWithPos, Predicate, Range } from '../types'; | ||
import { NodeWithPos, Predicate, Range } from '../types.js'; | ||
/** | ||
@@ -4,0 +4,0 @@ * Same as `findChildren` but searches only within a `range`. |
import { Selection } from '@tiptap/pm/state'; | ||
import { Predicate } from '../types'; | ||
import { Predicate } from '../types.js'; | ||
export declare function findParentNode(predicate: Predicate): (selection: Selection) => { | ||
@@ -4,0 +4,0 @@ pos: number; |
import { Node as ProseMirrorNode, ResolvedPos } from '@tiptap/pm/model'; | ||
import { Predicate } from '../types'; | ||
import { Predicate } from '../types.js'; | ||
export declare function findParentNodeClosestToPos($pos: ResolvedPos, predicate: Predicate): { | ||
@@ -4,0 +4,0 @@ pos: number; |
@@ -1,2 +0,2 @@ | ||
import { Extensions, JSONContent } from '../types'; | ||
import { Extensions, JSONContent } from '../types.js'; | ||
export declare function generateHTML(doc: JSONContent, extensions: Extensions): string; |
@@ -1,2 +0,2 @@ | ||
import { Extensions } from '../types'; | ||
import { Extensions } from '../types.js'; | ||
export declare function generateJSON(html: string, extensions: Extensions): Record<string, any>; |
@@ -1,2 +0,2 @@ | ||
import { Extensions, JSONContent, TextSerializer } from '../types'; | ||
import { Extensions, JSONContent, TextSerializer } from '../types.js'; | ||
export declare function generateText(doc: JSONContent, extensions: Extensions, options?: { | ||
@@ -3,0 +3,0 @@ blockSeparator?: string; |
@@ -1,2 +0,2 @@ | ||
import { ExtensionAttribute, Extensions } from '../types'; | ||
import { ExtensionAttribute, Extensions } from '../types.js'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Get a list of all extension attributes defined in `addAttribute` and `addGlobalAttribute`. |
import { Transform } from '@tiptap/pm/transform'; | ||
import { Range } from '../types'; | ||
import { Range } from '../types.js'; | ||
export declare type ChangedRange = { | ||
@@ -4,0 +4,0 @@ oldRange: Range; |
import { Node as ProseMirrorNode } from '@tiptap/pm/model'; | ||
import { JSONContent } from '../types'; | ||
import { JSONContent } from '../types.js'; | ||
interface DebugJSONContent extends JSONContent { | ||
@@ -4,0 +4,0 @@ from: number; |
@@ -1,2 +0,2 @@ | ||
import { AnyExtension, MaybeThisParameterType, RemoveThis } from '../types'; | ||
import { AnyExtension, MaybeThisParameterType, RemoveThis } from '../types.js'; | ||
export declare function getExtensionField<T = any>(extension: AnyExtension, field: string, context?: Omit<MaybeThisParameterType<T>, 'parent'>): RemoveThis<T>; |
import { MarkType, ResolvedPos } from '@tiptap/pm/model'; | ||
import { Range } from '../types'; | ||
import { Range } from '../types.js'; | ||
export declare function getMarkRange($pos: ResolvedPos, type: MarkType, attributes?: Record<string, any>): Range | void; |
import { Node as ProseMirrorNode } from '@tiptap/pm/model'; | ||
import { MarkRange } from '../types'; | ||
import { MarkRange } from '../types.js'; | ||
export declare function getMarksBetween(from: number, to: number, doc: ProseMirrorNode): MarkRange[]; |
import { Mark, Node } from '@tiptap/pm/model'; | ||
import { ExtensionAttribute } from '../types'; | ||
import { ExtensionAttribute } from '../types.js'; | ||
export declare function getRenderedAttributes(nodeOrMark: Node | Mark, extensionAttributes: ExtensionAttribute[]): Record<string, any>; |
import { Schema } from '@tiptap/pm/model'; | ||
import { Editor } from '../Editor'; | ||
import { Extensions } from '../types'; | ||
import { Editor } from '../Editor.js'; | ||
import { Extensions } from '../types.js'; | ||
export declare function getSchema(extensions: Extensions, editor?: Editor): Schema; |
import { Schema } from '@tiptap/pm/model'; | ||
import { Editor } from '..'; | ||
import { Extensions } from '../types'; | ||
import { Editor } from '../index.js'; | ||
import { Extensions } from '../types.js'; | ||
export declare function getSchemaByResolvedExtensions(extensions: Extensions, editor?: Editor): Schema; |
@@ -1,2 +0,2 @@ | ||
import { ExtensionAttribute } from '../types'; | ||
import { ExtensionAttribute } from '../types.js'; | ||
export declare function getSplittedAttributes(extensionAttributes: ExtensionAttribute[], typeName: string, attributes: Record<string, any>): Record<string, any>; |
import { Node as ProseMirrorNode } from '@tiptap/pm/model'; | ||
import { TextSerializer } from '../types'; | ||
import { TextSerializer } from '../types.js'; | ||
export declare function getText(node: ProseMirrorNode, options?: { | ||
@@ -4,0 +4,0 @@ blockSeparator?: string; |
import { Node as ProseMirrorNode } from '@tiptap/pm/model'; | ||
import { Range, TextSerializer } from '../types'; | ||
import { Range, TextSerializer } from '../types.js'; | ||
export declare function getTextBetween(startNode: ProseMirrorNode, range: Range, options?: { | ||
@@ -4,0 +4,0 @@ blockSeparator?: string; |
import { Schema } from '@tiptap/pm/model'; | ||
import { TextSerializer } from '../types'; | ||
import { TextSerializer } from '../types.js'; | ||
export declare function getTextSerializersFromSchema(schema: Schema): Record<string, TextSerializer>; |
@@ -1,50 +0,50 @@ | ||
export * from './combineTransactionSteps'; | ||
export * from './createChainableState'; | ||
export * from './createDocument'; | ||
export * from './createNodeFromContent'; | ||
export * from './defaultBlockAt'; | ||
export * from './findChildren'; | ||
export * from './findChildrenInRange'; | ||
export * from './findParentNode'; | ||
export * from './findParentNodeClosestToPos'; | ||
export * from './generateHTML'; | ||
export * from './generateJSON'; | ||
export * from './generateText'; | ||
export * from './getAttributes'; | ||
export * from './getAttributesFromExtensions'; | ||
export * from './getChangedRanges'; | ||
export * from './getDebugJSON'; | ||
export * from './getExtensionField'; | ||
export * from './getHTMLFromFragment'; | ||
export * from './getMarkAttributes'; | ||
export * from './getMarkRange'; | ||
export * from './getMarksBetween'; | ||
export * from './getMarkType'; | ||
export * from './getNodeAtPosition'; | ||
export * from './getNodeAttributes'; | ||
export * from './getNodeType'; | ||
export * from './getRenderedAttributes'; | ||
export * from './getSchema'; | ||
export * from './getSchemaByResolvedExtensions'; | ||
export * from './getSchemaTypeByName'; | ||
export * from './getSchemaTypeNameByName'; | ||
export * from './getSplittedAttributes'; | ||
export * from './getText'; | ||
export * from './getTextBetween'; | ||
export * from './getTextContentFromNodes'; | ||
export * from './getTextSerializersFromSchema'; | ||
export * from './injectExtensionAttributesToParseRule'; | ||
export * from './isActive'; | ||
export * from './isAtEndOfNode'; | ||
export * from './isAtStartOfNode'; | ||
export * from './isExtensionRulesEnabled'; | ||
export * from './isList'; | ||
export * from './isMarkActive'; | ||
export * from './isNodeActive'; | ||
export * from './isNodeEmpty'; | ||
export * from './isNodeSelection'; | ||
export * from './isTextSelection'; | ||
export * from './posToDOMRect'; | ||
export * from './resolveFocusPosition'; | ||
export * from './selectionToInsertionEnd'; | ||
export * from './splitExtensions'; | ||
export * from './combineTransactionSteps.js'; | ||
export * from './createChainableState.js'; | ||
export * from './createDocument.js'; | ||
export * from './createNodeFromContent.js'; | ||
export * from './defaultBlockAt.js'; | ||
export * from './findChildren.js'; | ||
export * from './findChildrenInRange.js'; | ||
export * from './findParentNode.js'; | ||
export * from './findParentNodeClosestToPos.js'; | ||
export * from './generateHTML.js'; | ||
export * from './generateJSON.js'; | ||
export * from './generateText.js'; | ||
export * from './getAttributes.js'; | ||
export * from './getAttributesFromExtensions.js'; | ||
export * from './getChangedRanges.js'; | ||
export * from './getDebugJSON.js'; | ||
export * from './getExtensionField.js'; | ||
export * from './getHTMLFromFragment.js'; | ||
export * from './getMarkAttributes.js'; | ||
export * from './getMarkRange.js'; | ||
export * from './getMarksBetween.js'; | ||
export * from './getMarkType.js'; | ||
export * from './getNodeAtPosition.js'; | ||
export * from './getNodeAttributes.js'; | ||
export * from './getNodeType.js'; | ||
export * from './getRenderedAttributes.js'; | ||
export * from './getSchema.js'; | ||
export * from './getSchemaByResolvedExtensions.js'; | ||
export * from './getSchemaTypeByName.js'; | ||
export * from './getSchemaTypeNameByName.js'; | ||
export * from './getSplittedAttributes.js'; | ||
export * from './getText.js'; | ||
export * from './getTextBetween.js'; | ||
export * from './getTextContentFromNodes.js'; | ||
export * from './getTextSerializersFromSchema.js'; | ||
export * from './injectExtensionAttributesToParseRule.js'; | ||
export * from './isActive.js'; | ||
export * from './isAtEndOfNode.js'; | ||
export * from './isAtStartOfNode.js'; | ||
export * from './isExtensionRulesEnabled.js'; | ||
export * from './isList.js'; | ||
export * from './isMarkActive.js'; | ||
export * from './isNodeActive.js'; | ||
export * from './isNodeEmpty.js'; | ||
export * from './isNodeSelection.js'; | ||
export * from './isTextSelection.js'; | ||
export * from './posToDOMRect.js'; | ||
export * from './resolveFocusPosition.js'; | ||
export * from './selectionToInsertionEnd.js'; | ||
export * from './splitExtensions.js'; |
import { ParseRule } from '@tiptap/pm/model'; | ||
import { ExtensionAttribute } from '../types'; | ||
import { ExtensionAttribute } from '../types.js'; | ||
/** | ||
@@ -4,0 +4,0 @@ * This function merges extension attributes into parserule attributes (`attrs` or `getAttrs`). |
@@ -1,2 +0,2 @@ | ||
import { AnyExtension, EnableRules } from '../types'; | ||
import { AnyExtension, EnableRules } from '../types.js'; | ||
export declare function isExtensionRulesEnabled(extension: AnyExtension, enabled: EnableRules): boolean; |
@@ -1,2 +0,2 @@ | ||
import { Extensions } from '../types'; | ||
import { Extensions } from '../types.js'; | ||
export declare function isList(name: string, extensions: Extensions): boolean; |
import { Node as ProseMirrorNode } from '@tiptap/pm/model'; | ||
import { Selection } from '@tiptap/pm/state'; | ||
import { FocusPosition } from '../types'; | ||
import { FocusPosition } from '../types.js'; | ||
export declare function resolveFocusPosition(doc: ProseMirrorNode, position?: FocusPosition): Selection | null; |
@@ -1,5 +0,5 @@ | ||
import { Extension } from '../Extension'; | ||
import { Mark } from '../Mark'; | ||
import { Node } from '../Node'; | ||
import { Extensions } from '../types'; | ||
import { Extension } from '../Extension.js'; | ||
import { Mark } from '../Mark.js'; | ||
import { Node } from '../Node.js'; | ||
import { Extensions } from '../types.js'; | ||
export declare function splitExtensions(extensions: Extensions): { | ||
@@ -6,0 +6,0 @@ baseExtensions: Extension<any, any>[]; |
@@ -1,16 +0,16 @@ | ||
export * from './CommandManager'; | ||
export * from './Editor'; | ||
export * from './Extension'; | ||
export * as extensions from './extensions'; | ||
export * from './helpers'; | ||
export * from './InputRule'; | ||
export * from './inputRules'; | ||
export * from './Mark'; | ||
export * from './Node'; | ||
export * from './NodeView'; | ||
export * from './PasteRule'; | ||
export * from './pasteRules'; | ||
export * from './Tracker'; | ||
export * from './types'; | ||
export * from './utilities'; | ||
export * from './CommandManager.js'; | ||
export * from './Editor.js'; | ||
export * from './Extension.js'; | ||
export * as extensions from './extensions/index.js'; | ||
export * from './helpers/index.js'; | ||
export * from './InputRule.js'; | ||
export * from './inputRules/index.js'; | ||
export * from './Mark.js'; | ||
export * from './Node.js'; | ||
export * from './NodeView.js'; | ||
export * from './PasteRule.js'; | ||
export * from './pasteRules/index.js'; | ||
export * from './Tracker.js'; | ||
export * from './types.js'; | ||
export * from './utilities/index.js'; | ||
export interface Commands<ReturnType = any> { | ||
@@ -17,0 +17,0 @@ } |
import { EditorState, Plugin } from '@tiptap/pm/state'; | ||
import { Editor } from './Editor'; | ||
import { CanCommands, ChainedCommands, ExtendedRegExpMatchArray, Range, SingleCommands } from './types'; | ||
import { Editor } from './Editor.js'; | ||
import { CanCommands, ChainedCommands, ExtendedRegExpMatchArray, Range, SingleCommands } from './types.js'; | ||
export declare type InputRuleMatch = { | ||
@@ -5,0 +5,0 @@ index: number; |
@@ -1,5 +0,5 @@ | ||
export * from './markInputRule'; | ||
export * from './nodeInputRule'; | ||
export * from './textblockTypeInputRule'; | ||
export * from './textInputRule'; | ||
export * from './wrappingInputRule'; | ||
export * from './markInputRule.js'; | ||
export * from './nodeInputRule.js'; | ||
export * from './textblockTypeInputRule.js'; | ||
export * from './textInputRule.js'; | ||
export * from './wrappingInputRule.js'; |
import { MarkType } from '@tiptap/pm/model'; | ||
import { InputRule, InputRuleFinder } from '../InputRule'; | ||
import { ExtendedRegExpMatchArray } from '../types'; | ||
import { InputRule, InputRuleFinder } from '../InputRule.js'; | ||
import { ExtendedRegExpMatchArray } from '../types.js'; | ||
/** | ||
@@ -5,0 +5,0 @@ * Build an input rule that adds a mark when the |
import { NodeType } from '@tiptap/pm/model'; | ||
import { InputRule, InputRuleFinder } from '../InputRule'; | ||
import { ExtendedRegExpMatchArray } from '../types'; | ||
import { InputRule, InputRuleFinder } from '../InputRule.js'; | ||
import { ExtendedRegExpMatchArray } from '../types.js'; | ||
/** | ||
@@ -5,0 +5,0 @@ * Build an input rule that adds a node when the |
import { NodeType } from '@tiptap/pm/model'; | ||
import { InputRule, InputRuleFinder } from '../InputRule'; | ||
import { ExtendedRegExpMatchArray } from '../types'; | ||
import { InputRule, InputRuleFinder } from '../InputRule.js'; | ||
import { ExtendedRegExpMatchArray } from '../types.js'; | ||
/** | ||
@@ -5,0 +5,0 @@ * Build an input rule that changes the type of a textblock when the |
@@ -1,2 +0,2 @@ | ||
import { InputRule, InputRuleFinder } from '../InputRule'; | ||
import { InputRule, InputRuleFinder } from '../InputRule.js'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Build an input rule that replaces text when the |
import { Node as ProseMirrorNode, NodeType } from '@tiptap/pm/model'; | ||
import { Editor } from '../Editor'; | ||
import { InputRule, InputRuleFinder } from '../InputRule'; | ||
import { ExtendedRegExpMatchArray } from '../types'; | ||
import { Editor } from '../Editor.js'; | ||
import { InputRule, InputRuleFinder } from '../InputRule.js'; | ||
import { ExtendedRegExpMatchArray } from '../types.js'; | ||
/** | ||
@@ -6,0 +6,0 @@ * Build an input rule for automatically wrapping a textblock when a |
import { DOMOutputSpec, Mark as ProseMirrorMark, MarkSpec, MarkType } from '@tiptap/pm/model'; | ||
import { Plugin, Transaction } from '@tiptap/pm/state'; | ||
import { MarkConfig } from '.'; | ||
import { Editor } from './Editor'; | ||
import { InputRule } from './InputRule'; | ||
import { Node } from './Node'; | ||
import { PasteRule } from './PasteRule'; | ||
import { Attributes, Extensions, GlobalAttributes, KeyboardShortcutCommand, ParentConfig, RawCommands } from './types'; | ||
import { Editor } from './Editor.js'; | ||
import { MarkConfig } from './index.js'; | ||
import { InputRule } from './InputRule.js'; | ||
import { Node } from './Node.js'; | ||
import { PasteRule } from './PasteRule.js'; | ||
import { Attributes, Extensions, GlobalAttributes, KeyboardShortcutCommand, ParentConfig, RawCommands } from './types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -10,0 +10,0 @@ interface MarkConfig<Options = any, Storage = any> { |
import { DOMOutputSpec, Node as ProseMirrorNode, NodeSpec, NodeType } from '@tiptap/pm/model'; | ||
import { Plugin, Transaction } from '@tiptap/pm/state'; | ||
import { NodeConfig } from '.'; | ||
import { Editor } from './Editor'; | ||
import { InputRule } from './InputRule'; | ||
import { PasteRule } from './PasteRule'; | ||
import { Attributes, Extensions, GlobalAttributes, KeyboardShortcutCommand, NodeViewRenderer, ParentConfig, RawCommands } from './types'; | ||
import { Editor } from './Editor.js'; | ||
import { NodeConfig } from './index.js'; | ||
import { InputRule } from './InputRule.js'; | ||
import { PasteRule } from './PasteRule.js'; | ||
import { Attributes, Extensions, GlobalAttributes, KeyboardShortcutCommand, NodeViewRenderer, ParentConfig, RawCommands } from './types.js'; | ||
declare module '@tiptap/core' { | ||
@@ -9,0 +9,0 @@ interface NodeConfig<Options = any, Storage = any> { |
import { Node as ProseMirrorNode } from '@tiptap/pm/model'; | ||
import { NodeView as ProseMirrorNodeView } from '@tiptap/pm/view'; | ||
import { Editor as CoreEditor } from './Editor'; | ||
import { Node } from './Node'; | ||
import { DecorationWithType, NodeViewRendererOptions, NodeViewRendererProps } from './types'; | ||
import { Editor as CoreEditor } from './Editor.js'; | ||
import { Node } from './Node.js'; | ||
import { DecorationWithType, NodeViewRendererOptions, NodeViewRendererProps } from './types.js'; | ||
export declare class NodeView<Component, NodeEditor extends CoreEditor = CoreEditor, Options extends NodeViewRendererOptions = NodeViewRendererOptions> implements ProseMirrorNodeView { | ||
@@ -7,0 +7,0 @@ component: Component; |
import { EditorState, Plugin } from '@tiptap/pm/state'; | ||
import { Editor } from './Editor'; | ||
import { CanCommands, ChainedCommands, ExtendedRegExpMatchArray, Range, SingleCommands } from './types'; | ||
import { Editor } from './Editor.js'; | ||
import { CanCommands, ChainedCommands, ExtendedRegExpMatchArray, Range, SingleCommands } from './types.js'; | ||
export declare type PasteRuleMatch = { | ||
@@ -5,0 +5,0 @@ index: number; |
@@ -1,3 +0,3 @@ | ||
export * from './markPasteRule'; | ||
export * from './nodePasteRule'; | ||
export * from './textPasteRule'; | ||
export * from './markPasteRule.js'; | ||
export * from './nodePasteRule.js'; | ||
export * from './textPasteRule.js'; |
import { MarkType } from '@tiptap/pm/model'; | ||
import { PasteRule, PasteRuleFinder } from '../PasteRule'; | ||
import { ExtendedRegExpMatchArray } from '../types'; | ||
import { PasteRule, PasteRuleFinder } from '../PasteRule.js'; | ||
import { ExtendedRegExpMatchArray } from '../types.js'; | ||
/** | ||
@@ -5,0 +5,0 @@ * Build an paste rule that adds a mark when the |
import { NodeType } from '@tiptap/pm/model'; | ||
import { PasteRule, PasteRuleFinder } from '../PasteRule'; | ||
import { ExtendedRegExpMatchArray } from '../types'; | ||
import { PasteRule, PasteRuleFinder } from '../PasteRule.js'; | ||
import { ExtendedRegExpMatchArray } from '../types.js'; | ||
/** | ||
@@ -5,0 +5,0 @@ * Build an paste rule that adds a node when the |
@@ -1,2 +0,2 @@ | ||
import { PasteRule, PasteRuleFinder } from '../PasteRule'; | ||
import { PasteRule, PasteRuleFinder } from '../PasteRule.js'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Build an paste rule that replaces text when the |
import { Mark as ProseMirrorMark, Node as ProseMirrorNode, NodeType, ParseOptions } from '@tiptap/pm/model'; | ||
import { EditorState, Transaction } from '@tiptap/pm/state'; | ||
import { Decoration, EditorProps, EditorView, NodeView } from '@tiptap/pm/view'; | ||
import { Commands, ExtensionConfig, MarkConfig, NodeConfig } from '.'; | ||
import { Editor } from './Editor'; | ||
import { Extension } from './Extension'; | ||
import { Mark } from './Mark'; | ||
import { Node } from './Node'; | ||
import { Editor } from './Editor.js'; | ||
import { Extension } from './Extension.js'; | ||
import { Commands, ExtensionConfig, MarkConfig, NodeConfig } from './index.js'; | ||
import { Mark } from './Mark.js'; | ||
import { Node } from './Node.js'; | ||
export declare type AnyConfig = ExtensionConfig | NodeConfig | MarkConfig; | ||
@@ -10,0 +10,0 @@ export declare type AnyExtension = Extension | Node | Mark; |
@@ -1,2 +0,2 @@ | ||
import { MaybeReturnType } from '../types'; | ||
import { MaybeReturnType } from '../types.js'; | ||
/** | ||
@@ -3,0 +3,0 @@ * Optionally calls `value` as a function. |
@@ -1,20 +0,20 @@ | ||
export * from './callOrReturn'; | ||
export * from './createStyleTag'; | ||
export * from './deleteProps'; | ||
export * from './elementFromString'; | ||
export * from './escapeForRegEx'; | ||
export * from './findDuplicates'; | ||
export * from './fromString'; | ||
export * from './isEmptyObject'; | ||
export * from './isFunction'; | ||
export * from './isiOS'; | ||
export * from './isMacOS'; | ||
export * from './isNumber'; | ||
export * from './isPlainObject'; | ||
export * from './isRegExp'; | ||
export * from './isString'; | ||
export * from './mergeAttributes'; | ||
export * from './mergeDeep'; | ||
export * from './minMax'; | ||
export * from './objectIncludes'; | ||
export * from './removeDuplicates'; | ||
export * from './callOrReturn.js'; | ||
export * from './createStyleTag.js'; | ||
export * from './deleteProps.js'; | ||
export * from './elementFromString.js'; | ||
export * from './escapeForRegEx.js'; | ||
export * from './findDuplicates.js'; | ||
export * from './fromString.js'; | ||
export * from './isEmptyObject.js'; | ||
export * from './isFunction.js'; | ||
export * from './isiOS.js'; | ||
export * from './isMacOS.js'; | ||
export * from './isNumber.js'; | ||
export * from './isPlainObject.js'; | ||
export * from './isRegExp.js'; | ||
export * from './isString.js'; | ||
export * from './mergeAttributes.js'; | ||
export * from './mergeDeep.js'; | ||
export * from './minMax.js'; | ||
export * from './objectIncludes.js'; | ||
export * from './removeDuplicates.js'; |
{ | ||
"name": "@tiptap/core", | ||
"description": "headless rich text editor", | ||
"version": "2.1.0-rc.9", | ||
"version": "2.1.0-rc.10", | ||
"homepage": "https://tiptap.dev", | ||
@@ -35,3 +35,3 @@ "keywords": [ | ||
"devDependencies": { | ||
"@tiptap/pm": "^2.1.0-rc.9" | ||
"@tiptap/pm": "^2.1.0-rc.10" | ||
}, | ||
@@ -38,0 +38,0 @@ "peerDependencies": { |
import { EditorState, Transaction } from '@tiptap/pm/state' | ||
import { Editor } from './Editor' | ||
import { createChainableState } from './helpers/createChainableState' | ||
import { Editor } from './Editor.js' | ||
import { createChainableState } from './helpers/createChainableState.js' | ||
import { | ||
AnyCommands, CanCommands, ChainedCommands, CommandProps, SingleCommands, | ||
} from './types' | ||
} from './types.js' | ||
@@ -123,6 +123,2 @@ export class CommandManager { | ||
if (state.storedMarks) { | ||
tr.setStoredMarks(state.storedMarks) | ||
} | ||
const props: CommandProps = { | ||
@@ -137,3 +133,3 @@ tr, | ||
dispatch: shouldDispatch ? () => undefined : undefined, | ||
chain: () => this.createChain(tr), | ||
chain: () => this.createChain(tr, shouldDispatch), | ||
can: () => this.createCan(tr), | ||
@@ -140,0 +136,0 @@ get commands() { |
@@ -1,2 +0,2 @@ | ||
import { RawCommands } from '../types' | ||
import { RawCommands } from '../types.js' | ||
@@ -3,0 +3,0 @@ declare module '@tiptap/core' { |
@@ -1,2 +0,2 @@ | ||
import { RawCommands } from '../types' | ||
import { RawCommands } from '../types.js' | ||
@@ -3,0 +3,0 @@ declare module '@tiptap/core' { |
import { liftTarget } from '@tiptap/pm/transform' | ||
import { RawCommands } from '../types' | ||
import { RawCommands } from '../types.js' | ||
@@ -5,0 +5,0 @@ declare module '@tiptap/core' { |
@@ -1,2 +0,2 @@ | ||
import { Command, RawCommands } from '../types' | ||
import { Command, RawCommands } from '../types.js' | ||
@@ -3,0 +3,0 @@ declare module '@tiptap/core' { |
import { createParagraphNear as originalCreateParagraphNear } from '@tiptap/pm/commands' | ||
import { RawCommands } from '../types' | ||
import { RawCommands } from '../types.js' | ||
@@ -5,0 +5,0 @@ declare module '@tiptap/core' { |
@@ -1,2 +0,2 @@ | ||
import { RawCommands } from '../types' | ||
import { RawCommands } from '../types.js' | ||
@@ -3,0 +3,0 @@ declare module '@tiptap/core' { |
import { NodeType } from '@tiptap/pm/model' | ||
import { getNodeType } from '../helpers/getNodeType' | ||
import { RawCommands } from '../types' | ||
import { getNodeType } from '../helpers/getNodeType.js' | ||
import { RawCommands } from '../types.js' | ||
@@ -6,0 +6,0 @@ declare module '@tiptap/core' { |
@@ -1,2 +0,2 @@ | ||
import { Range, RawCommands } from '../types' | ||
import { Range, RawCommands } from '../types.js' | ||
@@ -3,0 +3,0 @@ declare module '@tiptap/core' { |
import { deleteSelection as originalDeleteSelection } from '@tiptap/pm/commands' | ||
import { RawCommands } from '../types' | ||
import { RawCommands } from '../types.js' | ||
@@ -5,0 +5,0 @@ declare module '@tiptap/core' { |
@@ -1,2 +0,2 @@ | ||
import { RawCommands } from '../types' | ||
import { RawCommands } from '../types.js' | ||
@@ -3,0 +3,0 @@ declare module '@tiptap/core' { |
import { exitCode as originalExitCode } from '@tiptap/pm/commands' | ||
import { RawCommands } from '../types' | ||
import { RawCommands } from '../types.js' | ||
@@ -5,0 +5,0 @@ declare module '@tiptap/core' { |
import { MarkType } from '@tiptap/pm/model' | ||
import { TextSelection } from '@tiptap/pm/state' | ||
import { getMarkRange } from '../helpers/getMarkRange' | ||
import { getMarkType } from '../helpers/getMarkType' | ||
import { RawCommands } from '../types' | ||
import { getMarkRange } from '../helpers/getMarkRange.js' | ||
import { getMarkType } from '../helpers/getMarkType.js' | ||
import { RawCommands } from '../types.js' | ||
@@ -8,0 +8,0 @@ declare module '@tiptap/core' { |
@@ -1,2 +0,2 @@ | ||
import { Command, CommandProps, RawCommands } from '../types' | ||
import { Command, CommandProps, RawCommands } from '../types.js' | ||
@@ -3,0 +3,0 @@ declare module '@tiptap/core' { |
@@ -1,5 +0,5 @@ | ||
import { isTextSelection } from '../helpers/isTextSelection' | ||
import { resolveFocusPosition } from '../helpers/resolveFocusPosition' | ||
import { FocusPosition, RawCommands } from '../types' | ||
import { isiOS } from '../utilities/isiOS' | ||
import { isTextSelection } from '../helpers/isTextSelection.js' | ||
import { resolveFocusPosition } from '../helpers/resolveFocusPosition.js' | ||
import { FocusPosition, RawCommands } from '../types.js' | ||
import { isiOS } from '../utilities/isiOS.js' | ||
@@ -6,0 +6,0 @@ declare module '@tiptap/core' { |
@@ -1,2 +0,2 @@ | ||
import { CommandProps, RawCommands } from '../types' | ||
import { CommandProps, RawCommands } from '../types.js' | ||
@@ -3,0 +3,0 @@ declare module '@tiptap/core' { |
@@ -1,50 +0,51 @@ | ||
export * from './blur' | ||
export * from './clearContent' | ||
export * from './clearNodes' | ||
export * from './command' | ||
export * from './createParagraphNear' | ||
export * from './deleteCurrentNode' | ||
export * from './deleteNode' | ||
export * from './deleteRange' | ||
export * from './deleteSelection' | ||
export * from './enter' | ||
export * from './exitCode' | ||
export * from './extendMarkRange' | ||
export * from './first' | ||
export * from './focus' | ||
export * from './forEach' | ||
export * from './insertContent' | ||
export * from './insertContentAt' | ||
export * from './join' | ||
export * from './keyboardShortcut' | ||
export * from './lift' | ||
export * from './liftEmptyBlock' | ||
export * from './liftListItem' | ||
export * from './newlineInCode' | ||
export * from './resetAttributes' | ||
export * from './scrollIntoView' | ||
export * from './selectAll' | ||
export * from './selectNodeBackward' | ||
export * from './selectNodeForward' | ||
export * from './selectParentNode' | ||
export * from './selectTextblockEnd' | ||
export * from './selectTextblockStart' | ||
export * from './setContent' | ||
export * from './setMark' | ||
export * from './setMeta' | ||
export * from './setNode' | ||
export * from './setNodeSelection' | ||
export * from './setTextSelection' | ||
export * from './sinkListItem' | ||
export * from './splitBlock' | ||
export * from './splitListItem' | ||
export * from './toggleList' | ||
export * from './toggleMark' | ||
export * from './toggleNode' | ||
export * from './toggleWrap' | ||
export * from './undoInputRule' | ||
export * from './unsetAllMarks' | ||
export * from './unsetMark' | ||
export * from './updateAttributes' | ||
export * from './wrapIn' | ||
export * from './wrapInList' | ||
export * from './blur.js' | ||
export * from './clearContent.js' | ||
export * from './clearNodes.js' | ||
export * from './command.js' | ||
export * from './createParagraphNear.js' | ||
export * from './cut.js' | ||
export * from './deleteCurrentNode.js' | ||
export * from './deleteNode.js' | ||
export * from './deleteRange.js' | ||
export * from './deleteSelection.js' | ||
export * from './enter.js' | ||
export * from './exitCode.js' | ||
export * from './extendMarkRange.js' | ||
export * from './first.js' | ||
export * from './focus.js' | ||
export * from './forEach.js' | ||
export * from './insertContent.js' | ||
export * from './insertContentAt.js' | ||
export * from './join.js' | ||
export * from './keyboardShortcut.js' | ||
export * from './lift.js' | ||
export * from './liftEmptyBlock.js' | ||
export * from './liftListItem.js' | ||
export * from './newlineInCode.js' | ||
export * from './resetAttributes.js' | ||
export * from './scrollIntoView.js' | ||
export * from './selectAll.js' | ||
export * from './selectNodeBackward.js' | ||
export * from './selectNodeForward.js' | ||
export * from './selectParentNode.js' | ||
export * from './selectTextblockEnd.js' | ||
export * from './selectTextblockStart.js' | ||
export * from './setContent.js' | ||
export * from './setMark.js' | ||
export * from './setMeta.js' | ||
export * from './setNode.js' | ||
export * from './setNodeSelection.js' | ||
export * from './setTextSelection.js' | ||
export * from './sinkListItem.js' | ||
export * from './splitBlock.js' | ||
export * from './splitListItem.js' | ||
export * from './toggleList.js' | ||
export * from './toggleMark.js' | ||
export * from './toggleNode.js' | ||
export * from './toggleWrap.js' | ||
export * from './undoInputRule.js' | ||
export * from './unsetAllMarks.js' | ||
export * from './unsetMark.js' | ||
export * from './updateAttributes.js' | ||
export * from './wrapIn.js' | ||
export * from './wrapInList.js' |
import { ParseOptions } from '@tiptap/pm/model' | ||
import { Content, RawCommands } from '../types' | ||
import { Content, RawCommands } from '../types.js' | ||
@@ -5,0 +5,0 @@ declare module '@tiptap/core' { |
import { Fragment, Node as ProseMirrorNode, ParseOptions } from '@tiptap/pm/model' | ||
import { createNodeFromContent } from '../helpers/createNodeFromContent' | ||
import { selectionToInsertionEnd } from '../helpers/selectionToInsertionEnd' | ||
import { Content, Range, RawCommands } from '../types' | ||
import { createNodeFromContent } from '../helpers/createNodeFromContent.js' | ||
import { selectionToInsertionEnd } from '../helpers/selectionToInsertionEnd.js' | ||
import { Content, Range, RawCommands } from '../types.js' | ||
@@ -49,3 +49,3 @@ declare module '@tiptap/core' { | ||
let { from, to } = typeof position === 'number' ? { from: position, to: position } : position | ||
let { from, to } = typeof position === 'number' ? { from: tr.mapping.map(position), to: tr.mapping.map(position) } : { from: tr.mapping.map(position.from), to: tr.mapping.map(position.to) } | ||
@@ -52,0 +52,0 @@ let isOnlyTextContent = true |
@@ -8,3 +8,3 @@ import { | ||
import { RawCommands } from '../types' | ||
import { RawCommands } from '../types.js' | ||
@@ -11,0 +11,0 @@ declare module '@tiptap/core' { |
@@ -1,4 +0,4 @@ | ||
import { RawCommands } from '../types' | ||
import { isiOS } from '../utilities/isiOS' | ||
import { isMacOS } from '../utilities/isMacOS' | ||
import { RawCommands } from '../types.js' | ||
import { isiOS } from '../utilities/isiOS.js' | ||
import { isMacOS } from '../utilities/isMacOS.js' | ||
@@ -5,0 +5,0 @@ function normalizeKeyName(name: string) { |
import { lift as originalLift } from '@tiptap/pm/commands' | ||
import { NodeType } from '@tiptap/pm/model' | ||
import { getNodeType } from '../helpers/getNodeType' | ||
import { isNodeActive } from '../helpers/isNodeActive' | ||
import { RawCommands } from '../types' | ||
import { getNodeType } from '../helpers/getNodeType.js' | ||
import { isNodeActive } from '../helpers/isNodeActive.js' | ||
import { RawCommands } from '../types.js' | ||
@@ -8,0 +8,0 @@ declare module '@tiptap/core' { |
import { liftEmptyBlock as originalLiftEmptyBlock } from '@tiptap/pm/commands' | ||
import { RawCommands } from '../types' | ||
import { RawCommands } from '../types.js' | ||
@@ -5,0 +5,0 @@ declare module '@tiptap/core' { |
import { NodeType } from '@tiptap/pm/model' | ||
import { liftListItem as originalLiftListItem } from '@tiptap/pm/schema-list' | ||
import { getNodeType } from '../helpers/getNodeType' | ||
import { RawCommands } from '../types' | ||
import { getNodeType } from '../helpers/getNodeType.js' | ||
import { RawCommands } from '../types.js' | ||
@@ -7,0 +7,0 @@ declare module '@tiptap/core' { |
import { newlineInCode as originalNewlineInCode } from '@tiptap/pm/commands' | ||
import { RawCommands } from '../types' | ||
import { RawCommands } from '../types.js' | ||
@@ -5,0 +5,0 @@ declare module '@tiptap/core' { |
import { MarkType, NodeType } from '@tiptap/pm/model' | ||
import { getMarkType } from '../helpers/getMarkType' | ||
import { getNodeType } from '../helpers/getNodeType' | ||
import { getSchemaTypeNameByName } from '../helpers/getSchemaTypeNameByName' | ||
import { RawCommands } from '../types' | ||
import { deleteProps } from '../utilities/deleteProps' | ||
import { getMarkType } from '../helpers/getMarkType.js' | ||
import { getNodeType } from '../helpers/getNodeType.js' | ||
import { getSchemaTypeNameByName } from '../helpers/getSchemaTypeNameByName.js' | ||
import { RawCommands } from '../types.js' | ||
import { deleteProps } from '../utilities/deleteProps.js' | ||
@@ -9,0 +9,0 @@ declare module '@tiptap/core' { |
@@ -1,2 +0,2 @@ | ||
import { RawCommands } from '../types' | ||
import { RawCommands } from '../types.js' | ||
@@ -3,0 +3,0 @@ declare module '@tiptap/core' { |
@@ -1,2 +0,2 @@ | ||
import { RawCommands } from '../types' | ||
import { RawCommands } from '../types.js' | ||
@@ -3,0 +3,0 @@ declare module '@tiptap/core' { |
import { selectNodeBackward as originalSelectNodeBackward } from '@tiptap/pm/commands' | ||
import { RawCommands } from '../types' | ||
import { RawCommands } from '../types.js' | ||
@@ -5,0 +5,0 @@ declare module '@tiptap/core' { |
import { selectNodeForward as originalSelectNodeForward } from '@tiptap/pm/commands' | ||
import { RawCommands } from '../types' | ||
import { RawCommands } from '../types.js' | ||
@@ -5,0 +5,0 @@ declare module '@tiptap/core' { |
import { selectParentNode as originalSelectParentNode } from '@tiptap/pm/commands' | ||
import { RawCommands } from '../types' | ||
import { RawCommands } from '../types.js' | ||
@@ -5,0 +5,0 @@ declare module '@tiptap/core' { |
@@ -5,3 +5,3 @@ // @ts-ignore | ||
import { RawCommands } from '../types' | ||
import { RawCommands } from '../types.js' | ||
@@ -8,0 +8,0 @@ declare module '@tiptap/core' { |
@@ -5,3 +5,3 @@ // @ts-ignore | ||
import { RawCommands } from '../types' | ||
import { RawCommands } from '../types.js' | ||
@@ -8,0 +8,0 @@ declare module '@tiptap/core' { |
import { ParseOptions } from '@tiptap/pm/model' | ||
import { createDocument } from '../helpers/createDocument' | ||
import { Content, RawCommands } from '../types' | ||
import { createDocument } from '../helpers/createDocument.js' | ||
import { Content, RawCommands } from '../types.js' | ||
@@ -6,0 +6,0 @@ declare module '@tiptap/core' { |
import { MarkType, ResolvedPos } from '@tiptap/pm/model' | ||
import { EditorState, Transaction } from '@tiptap/pm/state' | ||
import { isTextSelection } from '../helpers' | ||
import { getMarkAttributes } from '../helpers/getMarkAttributes' | ||
import { getMarkType } from '../helpers/getMarkType' | ||
import { RawCommands } from '../types' | ||
import { getMarkAttributes } from '../helpers/getMarkAttributes.js' | ||
import { getMarkType } from '../helpers/getMarkType.js' | ||
import { isTextSelection } from '../helpers/index.js' | ||
import { RawCommands } from '../types.js' | ||
@@ -9,0 +9,0 @@ declare module '@tiptap/core' { |
@@ -1,2 +0,2 @@ | ||
import { RawCommands } from '../types' | ||
import { RawCommands } from '../types.js' | ||
@@ -3,0 +3,0 @@ declare module '@tiptap/core' { |
import { setBlockType } from '@tiptap/pm/commands' | ||
import { NodeType } from '@tiptap/pm/model' | ||
import { getNodeType } from '../helpers/getNodeType' | ||
import { RawCommands } from '../types' | ||
import { getNodeType } from '../helpers/getNodeType.js' | ||
import { RawCommands } from '../types.js' | ||
@@ -7,0 +7,0 @@ declare module '@tiptap/core' { |
import { NodeSelection } from '@tiptap/pm/state' | ||
import { RawCommands } from '../types' | ||
import { minMax } from '../utilities/minMax' | ||
import { RawCommands } from '../types.js' | ||
import { minMax } from '../utilities/minMax.js' | ||
@@ -6,0 +6,0 @@ declare module '@tiptap/core' { |
import { TextSelection } from '@tiptap/pm/state' | ||
import { Range, RawCommands } from '../types' | ||
import { minMax } from '../utilities/minMax' | ||
import { Range, RawCommands } from '../types.js' | ||
import { minMax } from '../utilities/minMax.js' | ||
@@ -6,0 +6,0 @@ declare module '@tiptap/core' { |
import { NodeType } from '@tiptap/pm/model' | ||
import { sinkListItem as originalSinkListItem } from '@tiptap/pm/schema-list' | ||
import { getNodeType } from '../helpers/getNodeType' | ||
import { RawCommands } from '../types' | ||
import { getNodeType } from '../helpers/getNodeType.js' | ||
import { RawCommands } from '../types.js' | ||
@@ -7,0 +7,0 @@ declare module '@tiptap/core' { |
import { EditorState, NodeSelection, TextSelection } from '@tiptap/pm/state' | ||
import { canSplit } from '@tiptap/pm/transform' | ||
import { defaultBlockAt } from '../helpers/defaultBlockAt' | ||
import { getSplittedAttributes } from '../helpers/getSplittedAttributes' | ||
import { RawCommands } from '../types' | ||
import { defaultBlockAt } from '../helpers/defaultBlockAt.js' | ||
import { getSplittedAttributes } from '../helpers/getSplittedAttributes.js' | ||
import { RawCommands } from '../types.js' | ||
@@ -8,0 +8,0 @@ function ensureMarks(state: EditorState, splittableMarks?: string[]) { |
@@ -7,5 +7,5 @@ import { | ||
import { getNodeType } from '../helpers/getNodeType' | ||
import { getSplittedAttributes } from '../helpers/getSplittedAttributes' | ||
import { RawCommands } from '../types' | ||
import { getNodeType } from '../helpers/getNodeType.js' | ||
import { getSplittedAttributes } from '../helpers/getSplittedAttributes.js' | ||
import { RawCommands } from '../types.js' | ||
@@ -12,0 +12,0 @@ declare module '@tiptap/core' { |
@@ -5,6 +5,6 @@ import { NodeType } from '@tiptap/pm/model' | ||
import { findParentNode } from '../helpers/findParentNode' | ||
import { getNodeType } from '../helpers/getNodeType' | ||
import { isList } from '../helpers/isList' | ||
import { RawCommands } from '../types' | ||
import { findParentNode } from '../helpers/findParentNode.js' | ||
import { getNodeType } from '../helpers/getNodeType.js' | ||
import { isList } from '../helpers/isList.js' | ||
import { RawCommands } from '../types.js' | ||
@@ -11,0 +11,0 @@ const joinListBackwards = (tr: Transaction, listType: NodeType): boolean => { |
import { MarkType } from '@tiptap/pm/model' | ||
import { getMarkType } from '../helpers/getMarkType' | ||
import { isMarkActive } from '../helpers/isMarkActive' | ||
import { RawCommands } from '../types' | ||
import { getMarkType } from '../helpers/getMarkType.js' | ||
import { isMarkActive } from '../helpers/isMarkActive.js' | ||
import { RawCommands } from '../types.js' | ||
@@ -7,0 +7,0 @@ declare module '@tiptap/core' { |
import { NodeType } from '@tiptap/pm/model' | ||
import { getNodeType } from '../helpers/getNodeType' | ||
import { isNodeActive } from '../helpers/isNodeActive' | ||
import { RawCommands } from '../types' | ||
import { getNodeType } from '../helpers/getNodeType.js' | ||
import { isNodeActive } from '../helpers/isNodeActive.js' | ||
import { RawCommands } from '../types.js' | ||
@@ -7,0 +7,0 @@ declare module '@tiptap/core' { |
import { NodeType } from '@tiptap/pm/model' | ||
import { getNodeType } from '../helpers/getNodeType' | ||
import { isNodeActive } from '../helpers/isNodeActive' | ||
import { RawCommands } from '../types' | ||
import { getNodeType } from '../helpers/getNodeType.js' | ||
import { isNodeActive } from '../helpers/isNodeActive.js' | ||
import { RawCommands } from '../types.js' | ||
@@ -7,0 +7,0 @@ declare module '@tiptap/core' { |
@@ -1,2 +0,2 @@ | ||
import { RawCommands } from '../types' | ||
import { RawCommands } from '../types.js' | ||
@@ -3,0 +3,0 @@ declare module '@tiptap/core' { |
@@ -1,2 +0,2 @@ | ||
import { RawCommands } from '../types' | ||
import { RawCommands } from '../types.js' | ||
@@ -3,0 +3,0 @@ declare module '@tiptap/core' { |
import { MarkType } from '@tiptap/pm/model' | ||
import { getMarkRange } from '../helpers/getMarkRange' | ||
import { getMarkType } from '../helpers/getMarkType' | ||
import { RawCommands } from '../types' | ||
import { getMarkRange } from '../helpers/getMarkRange.js' | ||
import { getMarkType } from '../helpers/getMarkType.js' | ||
import { RawCommands } from '../types.js' | ||
@@ -7,0 +7,0 @@ declare module '@tiptap/core' { |
import { MarkType, NodeType } from '@tiptap/pm/model' | ||
import { getMarkType } from '../helpers/getMarkType' | ||
import { getNodeType } from '../helpers/getNodeType' | ||
import { getSchemaTypeNameByName } from '../helpers/getSchemaTypeNameByName' | ||
import { RawCommands } from '../types' | ||
import { getMarkType } from '../helpers/getMarkType.js' | ||
import { getNodeType } from '../helpers/getNodeType.js' | ||
import { getSchemaTypeNameByName } from '../helpers/getSchemaTypeNameByName.js' | ||
import { RawCommands } from '../types.js' | ||
@@ -8,0 +8,0 @@ declare module '@tiptap/core' { |
import { wrapIn as originalWrapIn } from '@tiptap/pm/commands' | ||
import { NodeType } from '@tiptap/pm/model' | ||
import { getNodeType } from '../helpers/getNodeType' | ||
import { RawCommands } from '../types' | ||
import { getNodeType } from '../helpers/getNodeType.js' | ||
import { RawCommands } from '../types.js' | ||
@@ -7,0 +7,0 @@ declare module '@tiptap/core' { |
import { NodeType } from '@tiptap/pm/model' | ||
import { wrapInList as originalWrapInList } from '@tiptap/pm/schema-list' | ||
import { getNodeType } from '../helpers/getNodeType' | ||
import { RawCommands } from '../types' | ||
import { getNodeType } from '../helpers/getNodeType.js' | ||
import { RawCommands } from '../types.js' | ||
@@ -7,0 +7,0 @@ declare module '@tiptap/core' { |
@@ -7,15 +7,15 @@ import { MarkType, NodeType, Schema } from '@tiptap/pm/model' | ||
import { CommandManager } from './CommandManager' | ||
import { EventEmitter } from './EventEmitter' | ||
import { ExtensionManager } from './ExtensionManager' | ||
import * as extensions from './extensions' | ||
import { createDocument } from './helpers/createDocument' | ||
import { getAttributes } from './helpers/getAttributes' | ||
import { getHTMLFromFragment } from './helpers/getHTMLFromFragment' | ||
import { getText } from './helpers/getText' | ||
import { getTextSerializersFromSchema } from './helpers/getTextSerializersFromSchema' | ||
import { isActive } from './helpers/isActive' | ||
import { isNodeEmpty } from './helpers/isNodeEmpty' | ||
import { resolveFocusPosition } from './helpers/resolveFocusPosition' | ||
import { style } from './style' | ||
import { CommandManager } from './CommandManager.js' | ||
import { EventEmitter } from './EventEmitter.js' | ||
import { ExtensionManager } from './ExtensionManager.js' | ||
import * as extensions from './extensions/index.js' | ||
import { createDocument } from './helpers/createDocument.js' | ||
import { getAttributes } from './helpers/getAttributes.js' | ||
import { getHTMLFromFragment } from './helpers/getHTMLFromFragment.js' | ||
import { getText } from './helpers/getText.js' | ||
import { getTextSerializersFromSchema } from './helpers/getTextSerializersFromSchema.js' | ||
import { isActive } from './helpers/isActive.js' | ||
import { isNodeEmpty } from './helpers/isNodeEmpty.js' | ||
import { resolveFocusPosition } from './helpers/resolveFocusPosition.js' | ||
import { style } from './style.js' | ||
import { | ||
@@ -29,5 +29,5 @@ CanCommands, | ||
TextSerializer, | ||
} from './types' | ||
import { createStyleTag } from './utilities/createStyleTag' | ||
import { isFunction } from './utilities/isFunction' | ||
} from './types.js' | ||
import { createStyleTag } from './utilities/createStyleTag.js' | ||
import { isFunction } from './utilities/isFunction.js' | ||
@@ -34,0 +34,0 @@ export { extensions } |
import { Plugin, Transaction } from '@tiptap/pm/state' | ||
import { ExtensionConfig } from '.' | ||
import { Editor } from './Editor' | ||
import { getExtensionField } from './helpers/getExtensionField' | ||
import { InputRule } from './InputRule' | ||
import { Mark } from './Mark' | ||
import { Node } from './Node' | ||
import { PasteRule } from './PasteRule' | ||
import { Editor } from './Editor.js' | ||
import { getExtensionField } from './helpers/getExtensionField.js' | ||
import { ExtensionConfig } from './index.js' | ||
import { InputRule } from './InputRule.js' | ||
import { Mark } from './Mark.js' | ||
import { Node } from './Node.js' | ||
import { PasteRule } from './PasteRule.js' | ||
import { | ||
@@ -17,5 +17,5 @@ AnyConfig, | ||
RawCommands, | ||
} from './types' | ||
import { callOrReturn } from './utilities/callOrReturn' | ||
import { mergeDeep } from './utilities/mergeDeep' | ||
} from './types.js' | ||
import { callOrReturn } from './utilities/callOrReturn.js' | ||
import { mergeDeep } from './utilities/mergeDeep.js' | ||
@@ -22,0 +22,0 @@ declare module '@tiptap/core' { |
@@ -6,17 +6,17 @@ import { keymap } from '@tiptap/pm/keymap' | ||
import { Mark, NodeConfig } from '.' | ||
import { Editor } from './Editor' | ||
import { getAttributesFromExtensions } from './helpers/getAttributesFromExtensions' | ||
import { getExtensionField } from './helpers/getExtensionField' | ||
import { getNodeType } from './helpers/getNodeType' | ||
import { getRenderedAttributes } from './helpers/getRenderedAttributes' | ||
import { getSchemaByResolvedExtensions } from './helpers/getSchemaByResolvedExtensions' | ||
import { getSchemaTypeByName } from './helpers/getSchemaTypeByName' | ||
import { isExtensionRulesEnabled } from './helpers/isExtensionRulesEnabled' | ||
import { splitExtensions } from './helpers/splitExtensions' | ||
import { inputRulesPlugin } from './InputRule' | ||
import { pasteRulesPlugin } from './PasteRule' | ||
import { AnyConfig, Extensions, RawCommands } from './types' | ||
import { callOrReturn } from './utilities/callOrReturn' | ||
import { findDuplicates } from './utilities/findDuplicates' | ||
import { Editor } from './Editor.js' | ||
import { getAttributesFromExtensions } from './helpers/getAttributesFromExtensions.js' | ||
import { getExtensionField } from './helpers/getExtensionField.js' | ||
import { getNodeType } from './helpers/getNodeType.js' | ||
import { getRenderedAttributes } from './helpers/getRenderedAttributes.js' | ||
import { getSchemaByResolvedExtensions } from './helpers/getSchemaByResolvedExtensions.js' | ||
import { getSchemaTypeByName } from './helpers/getSchemaTypeByName.js' | ||
import { isExtensionRulesEnabled } from './helpers/isExtensionRulesEnabled.js' | ||
import { splitExtensions } from './helpers/splitExtensions.js' | ||
import { Mark, NodeConfig } from './index.js' | ||
import { inputRulesPlugin } from './InputRule.js' | ||
import { pasteRulesPlugin } from './PasteRule.js' | ||
import { AnyConfig, Extensions, RawCommands } from './types.js' | ||
import { callOrReturn } from './utilities/callOrReturn.js' | ||
import { findDuplicates } from './utilities/findDuplicates.js' | ||
@@ -23,0 +23,0 @@ export class ExtensionManager { |
import { Plugin, PluginKey } from '@tiptap/pm/state' | ||
import { Extension } from '../Extension' | ||
import { getTextBetween } from '../helpers/getTextBetween' | ||
import { getTextSerializersFromSchema } from '../helpers/getTextSerializersFromSchema' | ||
import { Extension } from '../Extension.js' | ||
import { getTextBetween } from '../helpers/getTextBetween.js' | ||
import { getTextSerializersFromSchema } from '../helpers/getTextSerializersFromSchema.js' | ||
@@ -7,0 +7,0 @@ export const ClipboardTextSerializer = Extension.create({ |
@@ -1,5 +0,5 @@ | ||
import * as commands from '../commands' | ||
import { Extension } from '../Extension' | ||
import * as commands from '../commands/index.js' | ||
import { Extension } from '../Extension.js' | ||
export * from '../commands' | ||
export * from '../commands/index.js' | ||
@@ -6,0 +6,0 @@ export const Commands = Extension.create({ |
import { Plugin, PluginKey } from '@tiptap/pm/state' | ||
import { Extension } from '../Extension' | ||
import { Extension } from '../Extension.js' | ||
@@ -5,0 +5,0 @@ export const Editable = Extension.create({ |
import { Plugin, PluginKey } from '@tiptap/pm/state' | ||
import { Extension } from '../Extension' | ||
import { Extension } from '../Extension.js' | ||
@@ -5,0 +5,0 @@ export const FocusEvents = Extension.create({ |
@@ -1,6 +0,6 @@ | ||
export { ClipboardTextSerializer } from './clipboardTextSerializer' | ||
export { Commands } from './commands' | ||
export { Editable } from './editable' | ||
export { FocusEvents } from './focusEvents' | ||
export { Keymap } from './keymap' | ||
export { Tabindex } from './tabindex' | ||
export { ClipboardTextSerializer } from './clipboardTextSerializer.js' | ||
export { Commands } from './commands.js' | ||
export { Editable } from './editable.js' | ||
export { FocusEvents } from './focusEvents.js' | ||
export { Keymap } from './keymap.js' | ||
export { Tabindex } from './tabindex.js' |
import { Plugin, PluginKey, Selection } from '@tiptap/pm/state' | ||
import { CommandManager } from '../CommandManager' | ||
import { Extension } from '../Extension' | ||
import { createChainableState } from '../helpers/createChainableState' | ||
import { isiOS } from '../utilities/isiOS' | ||
import { isMacOS } from '../utilities/isMacOS' | ||
import { CommandManager } from '../CommandManager.js' | ||
import { Extension } from '../Extension.js' | ||
import { createChainableState } from '../helpers/createChainableState.js' | ||
import { isiOS } from '../utilities/isiOS.js' | ||
import { isMacOS } from '../utilities/isMacOS.js' | ||
@@ -9,0 +9,0 @@ export const Keymap = Extension.create({ |
import { Plugin, PluginKey } from '@tiptap/pm/state' | ||
import { Extension } from '../Extension' | ||
import { Extension } from '../Extension.js' | ||
@@ -5,0 +5,0 @@ export const Tabindex = Extension.create({ |
import { Node as ProseMirrorNode, ParseOptions, Schema } from '@tiptap/pm/model' | ||
import { Content } from '../types' | ||
import { createNodeFromContent } from './createNodeFromContent' | ||
import { Content } from '../types.js' | ||
import { createNodeFromContent } from './createNodeFromContent.js' | ||
@@ -6,0 +6,0 @@ export function createDocument( |
@@ -9,4 +9,4 @@ import { | ||
import { Content } from '../types' | ||
import { elementFromString } from '../utilities/elementFromString' | ||
import { Content } from '../types.js' | ||
import { elementFromString } from '../utilities/elementFromString.js' | ||
@@ -13,0 +13,0 @@ export type CreateNodeFromContentOptions = { |
import { Node as ProseMirrorNode } from '@tiptap/pm/model' | ||
import { NodeWithPos, Predicate } from '../types' | ||
import { NodeWithPos, Predicate } from '../types.js' | ||
@@ -5,0 +5,0 @@ export function findChildren(node: ProseMirrorNode, predicate: Predicate): NodeWithPos[] { |
import { Node as ProseMirrorNode } from '@tiptap/pm/model' | ||
import { NodeWithPos, Predicate, Range } from '../types' | ||
import { NodeWithPos, Predicate, Range } from '../types.js' | ||
@@ -5,0 +5,0 @@ /** |
import { Selection } from '@tiptap/pm/state' | ||
import { Predicate } from '../types' | ||
import { findParentNodeClosestToPos } from './findParentNodeClosestToPos' | ||
import { Predicate } from '../types.js' | ||
import { findParentNodeClosestToPos } from './findParentNodeClosestToPos.js' | ||
@@ -6,0 +6,0 @@ export function findParentNode(predicate: Predicate) { |
import { Node as ProseMirrorNode, ResolvedPos } from '@tiptap/pm/model' | ||
import { Predicate } from '../types' | ||
import { Predicate } from '../types.js' | ||
@@ -5,0 +5,0 @@ export function findParentNodeClosestToPos( |
import { Node } from '@tiptap/pm/model' | ||
import { Extensions, JSONContent } from '../types' | ||
import { getHTMLFromFragment } from './getHTMLFromFragment' | ||
import { getSchema } from './getSchema' | ||
import { Extensions, JSONContent } from '../types.js' | ||
import { getHTMLFromFragment } from './getHTMLFromFragment.js' | ||
import { getSchema } from './getSchema.js' | ||
@@ -7,0 +7,0 @@ export function generateHTML(doc: JSONContent, extensions: Extensions): string { |
import { DOMParser } from '@tiptap/pm/model' | ||
import { Extensions } from '../types' | ||
import { elementFromString } from '../utilities/elementFromString' | ||
import { getSchema } from './getSchema' | ||
import { Extensions } from '../types.js' | ||
import { elementFromString } from '../utilities/elementFromString.js' | ||
import { getSchema } from './getSchema.js' | ||
@@ -7,0 +7,0 @@ export function generateJSON(html: string, extensions: Extensions): Record<string, any> { |
import { Node } from '@tiptap/pm/model' | ||
import { Extensions, JSONContent, TextSerializer } from '../types' | ||
import { getSchema } from './getSchema' | ||
import { getText } from './getText' | ||
import { getTextSerializersFromSchema } from './getTextSerializersFromSchema' | ||
import { Extensions, JSONContent, TextSerializer } from '../types.js' | ||
import { getSchema } from './getSchema.js' | ||
import { getText } from './getText.js' | ||
import { getTextSerializersFromSchema } from './getTextSerializersFromSchema.js' | ||
@@ -8,0 +8,0 @@ export function generateText( |
import { MarkType, NodeType } from '@tiptap/pm/model' | ||
import { EditorState } from '@tiptap/pm/state' | ||
import { getMarkAttributes } from './getMarkAttributes' | ||
import { getNodeAttributes } from './getNodeAttributes' | ||
import { getSchemaTypeNameByName } from './getSchemaTypeNameByName' | ||
import { getMarkAttributes } from './getMarkAttributes.js' | ||
import { getNodeAttributes } from './getNodeAttributes.js' | ||
import { getSchemaTypeNameByName } from './getSchemaTypeNameByName.js' | ||
@@ -8,0 +8,0 @@ export function getAttributes( |
@@ -1,2 +0,2 @@ | ||
import { MarkConfig, NodeConfig } from '..' | ||
import { MarkConfig, NodeConfig } from '../index.js' | ||
import { | ||
@@ -9,5 +9,5 @@ AnyConfig, | ||
GlobalAttributes, | ||
} from '../types' | ||
import { getExtensionField } from './getExtensionField' | ||
import { splitExtensions } from './splitExtensions' | ||
} from '../types.js' | ||
import { getExtensionField } from './getExtensionField.js' | ||
import { splitExtensions } from './splitExtensions.js' | ||
@@ -14,0 +14,0 @@ /** |
import { Step, Transform } from '@tiptap/pm/transform' | ||
import { Range } from '../types' | ||
import { removeDuplicates } from '../utilities/removeDuplicates' | ||
import { Range } from '../types.js' | ||
import { removeDuplicates } from '../utilities/removeDuplicates.js' | ||
@@ -6,0 +6,0 @@ export type ChangedRange = { |
import { Node as ProseMirrorNode } from '@tiptap/pm/model' | ||
import { JSONContent } from '../types' | ||
import { JSONContent } from '../types.js' | ||
@@ -5,0 +5,0 @@ interface DebugJSONContent extends JSONContent { |
@@ -1,2 +0,2 @@ | ||
import { AnyExtension, MaybeThisParameterType, RemoveThis } from '../types' | ||
import { AnyExtension, MaybeThisParameterType, RemoveThis } from '../types.js' | ||
@@ -3,0 +3,0 @@ export function getExtensionField<T = any>( |
import { Mark, MarkType } from '@tiptap/pm/model' | ||
import { EditorState } from '@tiptap/pm/state' | ||
import { getMarkType } from './getMarkType' | ||
import { getMarkType } from './getMarkType.js' | ||
@@ -6,0 +6,0 @@ export function getMarkAttributes( |
import { Mark as ProseMirrorMark, MarkType, ResolvedPos } from '@tiptap/pm/model' | ||
import { Range } from '../types' | ||
import { objectIncludes } from '../utilities/objectIncludes' | ||
import { Range } from '../types.js' | ||
import { objectIncludes } from '../utilities/objectIncludes.js' | ||
@@ -6,0 +6,0 @@ function findMarkInSet( |
import { Node as ProseMirrorNode } from '@tiptap/pm/model' | ||
import { MarkRange } from '../types' | ||
import { getMarkRange } from './getMarkRange' | ||
import { MarkRange } from '../types.js' | ||
import { getMarkRange } from './getMarkRange.js' | ||
@@ -6,0 +6,0 @@ export function getMarksBetween(from: number, to: number, doc: ProseMirrorNode): MarkRange[] { |
import { Node, NodeType } from '@tiptap/pm/model' | ||
import { EditorState } from '@tiptap/pm/state' | ||
import { getNodeType } from './getNodeType' | ||
import { getNodeType } from './getNodeType.js' | ||
@@ -6,0 +6,0 @@ export function getNodeAttributes( |
import { Mark, Node } from '@tiptap/pm/model' | ||
import { ExtensionAttribute } from '../types' | ||
import { mergeAttributes } from '../utilities/mergeAttributes' | ||
import { ExtensionAttribute } from '../types.js' | ||
import { mergeAttributes } from '../utilities/mergeAttributes.js' | ||
@@ -6,0 +6,0 @@ export function getRenderedAttributes( |
import { Schema } from '@tiptap/pm/model' | ||
import { Editor } from '../Editor' | ||
import { ExtensionManager } from '../ExtensionManager' | ||
import { Extensions } from '../types' | ||
import { getSchemaByResolvedExtensions } from './getSchemaByResolvedExtensions' | ||
import { Editor } from '../Editor.js' | ||
import { ExtensionManager } from '../ExtensionManager.js' | ||
import { Extensions } from '../types.js' | ||
import { getSchemaByResolvedExtensions } from './getSchemaByResolvedExtensions.js' | ||
@@ -8,0 +8,0 @@ export function getSchema(extensions: Extensions, editor?: Editor): Schema { |
import { MarkSpec, NodeSpec, Schema } from '@tiptap/pm/model' | ||
import { Editor, MarkConfig, NodeConfig } from '..' | ||
import { AnyConfig, Extensions } from '../types' | ||
import { callOrReturn } from '../utilities/callOrReturn' | ||
import { isEmptyObject } from '../utilities/isEmptyObject' | ||
import { getAttributesFromExtensions } from './getAttributesFromExtensions' | ||
import { getExtensionField } from './getExtensionField' | ||
import { getRenderedAttributes } from './getRenderedAttributes' | ||
import { injectExtensionAttributesToParseRule } from './injectExtensionAttributesToParseRule' | ||
import { splitExtensions } from './splitExtensions' | ||
import { Editor, MarkConfig, NodeConfig } from '../index.js' | ||
import { AnyConfig, Extensions } from '../types.js' | ||
import { callOrReturn } from '../utilities/callOrReturn.js' | ||
import { isEmptyObject } from '../utilities/isEmptyObject.js' | ||
import { getAttributesFromExtensions } from './getAttributesFromExtensions.js' | ||
import { getExtensionField } from './getExtensionField.js' | ||
import { getRenderedAttributes } from './getRenderedAttributes.js' | ||
import { injectExtensionAttributesToParseRule } from './injectExtensionAttributesToParseRule.js' | ||
import { splitExtensions } from './splitExtensions.js' | ||
@@ -13,0 +13,0 @@ function cleanUpSchemaItem<T>(data: T) { |
@@ -1,2 +0,2 @@ | ||
import { ExtensionAttribute } from '../types' | ||
import { ExtensionAttribute } from '../types.js' | ||
@@ -3,0 +3,0 @@ export function getSplittedAttributes( |
import { Node as ProseMirrorNode } from '@tiptap/pm/model' | ||
import { TextSerializer } from '../types' | ||
import { getTextBetween } from './getTextBetween' | ||
import { TextSerializer } from '../types.js' | ||
import { getTextBetween } from './getTextBetween.js' | ||
@@ -6,0 +6,0 @@ export function getText( |
import { Node as ProseMirrorNode } from '@tiptap/pm/model' | ||
import { Range, TextSerializer } from '../types' | ||
import { Range, TextSerializer } from '../types.js' | ||
@@ -5,0 +5,0 @@ export function getTextBetween( |
import { Schema } from '@tiptap/pm/model' | ||
import { TextSerializer } from '../types' | ||
import { TextSerializer } from '../types.js' | ||
@@ -5,0 +5,0 @@ export function getTextSerializersFromSchema(schema: Schema): Record<string, TextSerializer> { |
@@ -1,50 +0,50 @@ | ||
export * from './combineTransactionSteps' | ||
export * from './createChainableState' | ||
export * from './createDocument' | ||
export * from './createNodeFromContent' | ||
export * from './defaultBlockAt' | ||
export * from './findChildren' | ||
export * from './findChildrenInRange' | ||
export * from './findParentNode' | ||
export * from './findParentNodeClosestToPos' | ||
export * from './generateHTML' | ||
export * from './generateJSON' | ||
export * from './generateText' | ||
export * from './getAttributes' | ||
export * from './getAttributesFromExtensions' | ||
export * from './getChangedRanges' | ||
export * from './getDebugJSON' | ||
export * from './getExtensionField' | ||
export * from './getHTMLFromFragment' | ||
export * from './getMarkAttributes' | ||
export * from './getMarkRange' | ||
export * from './getMarksBetween' | ||
export * from './getMarkType' | ||
export * from './getNodeAtPosition' | ||
export * from './getNodeAttributes' | ||
export * from './getNodeType' | ||
export * from './getRenderedAttributes' | ||
export * from './getSchema' | ||
export * from './getSchemaByResolvedExtensions' | ||
export * from './getSchemaTypeByName' | ||
export * from './getSchemaTypeNameByName' | ||
export * from './getSplittedAttributes' | ||
export * from './getText' | ||
export * from './getTextBetween' | ||
export * from './getTextContentFromNodes' | ||
export * from './getTextSerializersFromSchema' | ||
export * from './injectExtensionAttributesToParseRule' | ||
export * from './isActive' | ||
export * from './isAtEndOfNode' | ||
export * from './isAtStartOfNode' | ||
export * from './isExtensionRulesEnabled' | ||
export * from './isList' | ||
export * from './isMarkActive' | ||
export * from './isNodeActive' | ||
export * from './isNodeEmpty' | ||
export * from './isNodeSelection' | ||
export * from './isTextSelection' | ||
export * from './posToDOMRect' | ||
export * from './resolveFocusPosition' | ||
export * from './selectionToInsertionEnd' | ||
export * from './splitExtensions' | ||
export * from './combineTransactionSteps.js' | ||
export * from './createChainableState.js' | ||
export * from './createDocument.js' | ||
export * from './createNodeFromContent.js' | ||
export * from './defaultBlockAt.js' | ||
export * from './findChildren.js' | ||
export * from './findChildrenInRange.js' | ||
export * from './findParentNode.js' | ||
export * from './findParentNodeClosestToPos.js' | ||
export * from './generateHTML.js' | ||
export * from './generateJSON.js' | ||
export * from './generateText.js' | ||
export * from './getAttributes.js' | ||
export * from './getAttributesFromExtensions.js' | ||
export * from './getChangedRanges.js' | ||
export * from './getDebugJSON.js' | ||
export * from './getExtensionField.js' | ||
export * from './getHTMLFromFragment.js' | ||
export * from './getMarkAttributes.js' | ||
export * from './getMarkRange.js' | ||
export * from './getMarksBetween.js' | ||
export * from './getMarkType.js' | ||
export * from './getNodeAtPosition.js' | ||
export * from './getNodeAttributes.js' | ||
export * from './getNodeType.js' | ||
export * from './getRenderedAttributes.js' | ||
export * from './getSchema.js' | ||
export * from './getSchemaByResolvedExtensions.js' | ||
export * from './getSchemaTypeByName.js' | ||
export * from './getSchemaTypeNameByName.js' | ||
export * from './getSplittedAttributes.js' | ||
export * from './getText.js' | ||
export * from './getTextBetween.js' | ||
export * from './getTextContentFromNodes.js' | ||
export * from './getTextSerializersFromSchema.js' | ||
export * from './injectExtensionAttributesToParseRule.js' | ||
export * from './isActive.js' | ||
export * from './isAtEndOfNode.js' | ||
export * from './isAtStartOfNode.js' | ||
export * from './isExtensionRulesEnabled.js' | ||
export * from './isList.js' | ||
export * from './isMarkActive.js' | ||
export * from './isNodeActive.js' | ||
export * from './isNodeEmpty.js' | ||
export * from './isNodeSelection.js' | ||
export * from './isTextSelection.js' | ||
export * from './posToDOMRect.js' | ||
export * from './resolveFocusPosition.js' | ||
export * from './selectionToInsertionEnd.js' | ||
export * from './splitExtensions.js' |
import { ParseRule } from '@tiptap/pm/model' | ||
import { ExtensionAttribute } from '../types' | ||
import { fromString } from '../utilities/fromString' | ||
import { ExtensionAttribute } from '../types.js' | ||
import { fromString } from '../utilities/fromString.js' | ||
@@ -6,0 +6,0 @@ /** |
import { EditorState } from '@tiptap/pm/state' | ||
import { getSchemaTypeNameByName } from './getSchemaTypeNameByName' | ||
import { isMarkActive } from './isMarkActive' | ||
import { isNodeActive } from './isNodeActive' | ||
import { getSchemaTypeNameByName } from './getSchemaTypeNameByName.js' | ||
import { isMarkActive } from './isMarkActive.js' | ||
import { isNodeActive } from './isNodeActive.js' | ||
@@ -7,0 +7,0 @@ export function isActive( |
@@ -1,2 +0,2 @@ | ||
import { AnyExtension, EnableRules } from '../types' | ||
import { AnyExtension, EnableRules } from '../types.js' | ||
@@ -3,0 +3,0 @@ export function isExtensionRulesEnabled(extension: AnyExtension, enabled: EnableRules): boolean { |
@@ -1,6 +0,6 @@ | ||
import { NodeConfig } from '..' | ||
import { getExtensionField } from '../helpers/getExtensionField' | ||
import { Extensions } from '../types' | ||
import { callOrReturn } from '../utilities/callOrReturn' | ||
import { splitExtensions } from './splitExtensions' | ||
import { getExtensionField } from '../helpers/getExtensionField.js' | ||
import { NodeConfig } from '../index.js' | ||
import { Extensions } from '../types.js' | ||
import { callOrReturn } from '../utilities/callOrReturn.js' | ||
import { splitExtensions } from './splitExtensions.js' | ||
@@ -7,0 +7,0 @@ export function isList(name: string, extensions: Extensions): boolean { |
import { MarkType } from '@tiptap/pm/model' | ||
import { EditorState } from '@tiptap/pm/state' | ||
import { MarkRange } from '../types' | ||
import { objectIncludes } from '../utilities/objectIncludes' | ||
import { getMarkType } from './getMarkType' | ||
import { MarkRange } from '../types.js' | ||
import { objectIncludes } from '../utilities/objectIncludes.js' | ||
import { getMarkType } from './getMarkType.js' | ||
@@ -8,0 +8,0 @@ export function isMarkActive( |
import { NodeType } from '@tiptap/pm/model' | ||
import { EditorState } from '@tiptap/pm/state' | ||
import { NodeRange } from '../types' | ||
import { objectIncludes } from '../utilities/objectIncludes' | ||
import { getNodeType } from './getNodeType' | ||
import { NodeRange } from '../types.js' | ||
import { objectIncludes } from '../utilities/objectIncludes.js' | ||
import { getNodeType } from './getNodeType.js' | ||
@@ -8,0 +8,0 @@ export function isNodeActive( |
import { EditorView } from '@tiptap/pm/view' | ||
import { minMax } from '../utilities/minMax' | ||
import { minMax } from '../utilities/minMax.js' | ||
@@ -5,0 +5,0 @@ export function posToDOMRect(view: EditorView, from: number, to: number): DOMRect { |
import { Node as ProseMirrorNode } from '@tiptap/pm/model' | ||
import { Selection, TextSelection } from '@tiptap/pm/state' | ||
import { FocusPosition } from '../types' | ||
import { minMax } from '../utilities/minMax' | ||
import { FocusPosition } from '../types.js' | ||
import { minMax } from '../utilities/minMax.js' | ||
@@ -7,0 +7,0 @@ export function resolveFocusPosition( |
@@ -1,5 +0,5 @@ | ||
import { Extension } from '../Extension' | ||
import { Mark } from '../Mark' | ||
import { Node } from '../Node' | ||
import { Extensions } from '../types' | ||
import { Extension } from '../Extension.js' | ||
import { Mark } from '../Mark.js' | ||
import { Node } from '../Node.js' | ||
import { Extensions } from '../types.js' | ||
@@ -6,0 +6,0 @@ export function splitExtensions(extensions: Extensions) { |
@@ -1,16 +0,16 @@ | ||
export * from './CommandManager' | ||
export * from './Editor' | ||
export * from './Extension' | ||
export * as extensions from './extensions' | ||
export * from './helpers' | ||
export * from './InputRule' | ||
export * from './inputRules' | ||
export * from './Mark' | ||
export * from './Node' | ||
export * from './NodeView' | ||
export * from './PasteRule' | ||
export * from './pasteRules' | ||
export * from './Tracker' | ||
export * from './types' | ||
export * from './utilities' | ||
export * from './CommandManager.js' | ||
export * from './Editor.js' | ||
export * from './Extension.js' | ||
export * as extensions from './extensions/index.js' | ||
export * from './helpers/index.js' | ||
export * from './InputRule.js' | ||
export * from './inputRules/index.js' | ||
export * from './Mark.js' | ||
export * from './Node.js' | ||
export * from './NodeView.js' | ||
export * from './PasteRule.js' | ||
export * from './pasteRules/index.js' | ||
export * from './Tracker.js' | ||
export * from './types.js' | ||
export * from './utilities/index.js' | ||
@@ -17,0 +17,0 @@ // eslint-disable-next-line |
import { EditorState, Plugin, TextSelection } from '@tiptap/pm/state' | ||
import { CommandManager } from './CommandManager' | ||
import { Editor } from './Editor' | ||
import { createChainableState } from './helpers/createChainableState' | ||
import { getTextContentFromNodes } from './helpers/getTextContentFromNodes' | ||
import { CommandManager } from './CommandManager.js' | ||
import { Editor } from './Editor.js' | ||
import { createChainableState } from './helpers/createChainableState.js' | ||
import { getTextContentFromNodes } from './helpers/getTextContentFromNodes.js' | ||
import { | ||
@@ -13,4 +13,4 @@ CanCommands, | ||
SingleCommands, | ||
} from './types' | ||
import { isRegExp } from './utilities/isRegExp' | ||
} from './types.js' | ||
import { isRegExp } from './utilities/isRegExp.js' | ||
@@ -17,0 +17,0 @@ export type InputRuleMatch = { |
@@ -1,5 +0,5 @@ | ||
export * from './markInputRule' | ||
export * from './nodeInputRule' | ||
export * from './textblockTypeInputRule' | ||
export * from './textInputRule' | ||
export * from './wrappingInputRule' | ||
export * from './markInputRule.js' | ||
export * from './nodeInputRule.js' | ||
export * from './textblockTypeInputRule.js' | ||
export * from './textInputRule.js' | ||
export * from './wrappingInputRule.js' |
import { MarkType } from '@tiptap/pm/model' | ||
import { getMarksBetween } from '../helpers/getMarksBetween' | ||
import { InputRule, InputRuleFinder } from '../InputRule' | ||
import { ExtendedRegExpMatchArray } from '../types' | ||
import { callOrReturn } from '../utilities/callOrReturn' | ||
import { getMarksBetween } from '../helpers/getMarksBetween.js' | ||
import { InputRule, InputRuleFinder } from '../InputRule.js' | ||
import { ExtendedRegExpMatchArray } from '../types.js' | ||
import { callOrReturn } from '../utilities/callOrReturn.js' | ||
@@ -33,3 +33,2 @@ /** | ||
const fullMatch = match[0] | ||
let markEnd = range.to | ||
@@ -62,3 +61,3 @@ if (captureGroup) { | ||
markEnd = range.from + startSpaces + captureGroup.length | ||
const markEnd = range.from + startSpaces + captureGroup.length | ||
@@ -65,0 +64,0 @@ tr.addMark(range.from + startSpaces, markEnd, config.type.create(attributes || {})) |
import { NodeType } from '@tiptap/pm/model' | ||
import { InputRule, InputRuleFinder } from '../InputRule' | ||
import { ExtendedRegExpMatchArray } from '../types' | ||
import { callOrReturn } from '../utilities/callOrReturn' | ||
import { InputRule, InputRuleFinder } from '../InputRule.js' | ||
import { ExtendedRegExpMatchArray } from '../types.js' | ||
import { callOrReturn } from '../utilities/callOrReturn.js' | ||
@@ -7,0 +7,0 @@ /** |
import { NodeType } from '@tiptap/pm/model' | ||
import { InputRule, InputRuleFinder } from '../InputRule' | ||
import { ExtendedRegExpMatchArray } from '../types' | ||
import { callOrReturn } from '../utilities/callOrReturn' | ||
import { InputRule, InputRuleFinder } from '../InputRule.js' | ||
import { ExtendedRegExpMatchArray } from '../types.js' | ||
import { callOrReturn } from '../utilities/callOrReturn.js' | ||
@@ -7,0 +7,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { InputRule, InputRuleFinder } from '../InputRule' | ||
import { InputRule, InputRuleFinder } from '../InputRule.js' | ||
@@ -3,0 +3,0 @@ /** |
import { Node as ProseMirrorNode, NodeType } from '@tiptap/pm/model' | ||
import { canJoin, findWrapping } from '@tiptap/pm/transform' | ||
import { Editor } from '../Editor' | ||
import { InputRule, InputRuleFinder } from '../InputRule' | ||
import { ExtendedRegExpMatchArray } from '../types' | ||
import { callOrReturn } from '../utilities/callOrReturn' | ||
import { Editor } from '../Editor.js' | ||
import { InputRule, InputRuleFinder } from '../InputRule.js' | ||
import { ExtendedRegExpMatchArray } from '../types.js' | ||
import { callOrReturn } from '../utilities/callOrReturn.js' | ||
@@ -9,0 +9,0 @@ /** |
@@ -6,8 +6,8 @@ import { | ||
import { MarkConfig } from '.' | ||
import { Editor } from './Editor' | ||
import { getExtensionField } from './helpers/getExtensionField' | ||
import { InputRule } from './InputRule' | ||
import { Node } from './Node' | ||
import { PasteRule } from './PasteRule' | ||
import { Editor } from './Editor.js' | ||
import { getExtensionField } from './helpers/getExtensionField.js' | ||
import { MarkConfig } from './index.js' | ||
import { InputRule } from './InputRule.js' | ||
import { Node } from './Node.js' | ||
import { PasteRule } from './PasteRule.js' | ||
import { | ||
@@ -21,5 +21,5 @@ AnyConfig, | ||
RawCommands, | ||
} from './types' | ||
import { callOrReturn } from './utilities/callOrReturn' | ||
import { mergeDeep } from './utilities/mergeDeep' | ||
} from './types.js' | ||
import { callOrReturn } from './utilities/callOrReturn.js' | ||
import { mergeDeep } from './utilities/mergeDeep.js' | ||
@@ -26,0 +26,0 @@ declare module '@tiptap/core' { |
@@ -6,7 +6,7 @@ import { | ||
import { NodeConfig } from '.' | ||
import { Editor } from './Editor' | ||
import { getExtensionField } from './helpers/getExtensionField' | ||
import { InputRule } from './InputRule' | ||
import { PasteRule } from './PasteRule' | ||
import { Editor } from './Editor.js' | ||
import { getExtensionField } from './helpers/getExtensionField.js' | ||
import { NodeConfig } from './index.js' | ||
import { InputRule } from './InputRule.js' | ||
import { PasteRule } from './PasteRule.js' | ||
import { | ||
@@ -21,5 +21,5 @@ AnyConfig, | ||
RawCommands, | ||
} from './types' | ||
import { callOrReturn } from './utilities/callOrReturn' | ||
import { mergeDeep } from './utilities/mergeDeep' | ||
} from './types.js' | ||
import { callOrReturn } from './utilities/callOrReturn.js' | ||
import { mergeDeep } from './utilities/mergeDeep.js' | ||
@@ -26,0 +26,0 @@ declare module '@tiptap/core' { |
@@ -5,6 +5,7 @@ import { Node as ProseMirrorNode } from '@tiptap/pm/model' | ||
import { Editor as CoreEditor } from './Editor' | ||
import { Node } from './Node' | ||
import { DecorationWithType, NodeViewRendererOptions, NodeViewRendererProps } from './types' | ||
import { isiOS } from './utilities/isiOS' | ||
import { Editor as CoreEditor } from './Editor.js' | ||
import { Node } from './Node.js' | ||
import { DecorationWithType, NodeViewRendererOptions, NodeViewRendererProps } from './types.js' | ||
import { isAndroid } from './utilities/isAndroid.js' | ||
import { isiOS } from './utilities/isiOS.js' | ||
@@ -216,10 +217,11 @@ export class NodeView< | ||
// try to prevent a bug on iOS that will break node views on enter | ||
// try to prevent a bug on iOS and Android that will break node views on enter | ||
// this is because ProseMirror can’t preventDispatch on enter | ||
// this will lead to a re-render of the node view on enter | ||
// see: https://github.com/ueberdosis/tiptap/issues/1214 | ||
// see: https://github.com/ueberdosis/tiptap/issues/2534 | ||
if ( | ||
this.dom.contains(mutation.target) | ||
&& mutation.type === 'childList' | ||
&& isiOS() | ||
&& (isiOS() || isAndroid()) | ||
&& this.editor.isFocused | ||
@@ -226,0 +228,0 @@ ) { |
import { EditorState, Plugin } from '@tiptap/pm/state' | ||
import { CommandManager } from './CommandManager' | ||
import { Editor } from './Editor' | ||
import { createChainableState } from './helpers/createChainableState' | ||
import { CommandManager } from './CommandManager.js' | ||
import { Editor } from './Editor.js' | ||
import { createChainableState } from './helpers/createChainableState.js' | ||
import { | ||
@@ -12,5 +12,5 @@ CanCommands, | ||
SingleCommands, | ||
} from './types' | ||
import { isNumber } from './utilities/isNumber' | ||
import { isRegExp } from './utilities/isRegExp' | ||
} from './types.js' | ||
import { isNumber } from './utilities/isNumber.js' | ||
import { isRegExp } from './utilities/isRegExp.js' | ||
@@ -17,0 +17,0 @@ export type PasteRuleMatch = { |
@@ -1,3 +0,3 @@ | ||
export * from './markPasteRule' | ||
export * from './nodePasteRule' | ||
export * from './textPasteRule' | ||
export * from './markPasteRule.js' | ||
export * from './nodePasteRule.js' | ||
export * from './textPasteRule.js' |
import { MarkType } from '@tiptap/pm/model' | ||
import { getMarksBetween } from '../helpers/getMarksBetween' | ||
import { PasteRule, PasteRuleFinder } from '../PasteRule' | ||
import { ExtendedRegExpMatchArray } from '../types' | ||
import { callOrReturn } from '../utilities/callOrReturn' | ||
import { getMarksBetween } from '../helpers/getMarksBetween.js' | ||
import { PasteRule, PasteRuleFinder } from '../PasteRule.js' | ||
import { ExtendedRegExpMatchArray } from '../types.js' | ||
import { callOrReturn } from '../utilities/callOrReturn.js' | ||
@@ -8,0 +8,0 @@ /** |
import { NodeType } from '@tiptap/pm/model' | ||
import { PasteRule, PasteRuleFinder } from '../PasteRule' | ||
import { ExtendedRegExpMatchArray } from '../types' | ||
import { callOrReturn } from '../utilities' | ||
import { PasteRule, PasteRuleFinder } from '../PasteRule.js' | ||
import { ExtendedRegExpMatchArray } from '../types.js' | ||
import { callOrReturn } from '../utilities/index.js' | ||
@@ -7,0 +7,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { PasteRule, PasteRuleFinder } from '../PasteRule' | ||
import { PasteRule, PasteRuleFinder } from '../PasteRule.js' | ||
@@ -3,0 +3,0 @@ /** |
@@ -9,9 +9,9 @@ import { | ||
import { Editor } from './Editor.js' | ||
import { Extension } from './Extension.js' | ||
import { | ||
Commands, ExtensionConfig, MarkConfig, NodeConfig, | ||
} from '.' | ||
import { Editor } from './Editor' | ||
import { Extension } from './Extension' | ||
import { Mark } from './Mark' | ||
import { Node } from './Node' | ||
} from './index.js' | ||
import { Mark } from './Mark.js' | ||
import { Node } from './Node.js' | ||
@@ -18,0 +18,0 @@ export type AnyConfig = ExtensionConfig | NodeConfig | MarkConfig |
@@ -1,3 +0,3 @@ | ||
import { MaybeReturnType } from '../types' | ||
import { isFunction } from './isFunction' | ||
import { MaybeReturnType } from '../types.js' | ||
import { isFunction } from './isFunction.js' | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,20 +0,20 @@ | ||
export * from './callOrReturn' | ||
export * from './createStyleTag' | ||
export * from './deleteProps' | ||
export * from './elementFromString' | ||
export * from './escapeForRegEx' | ||
export * from './findDuplicates' | ||
export * from './fromString' | ||
export * from './isEmptyObject' | ||
export * from './isFunction' | ||
export * from './isiOS' | ||
export * from './isMacOS' | ||
export * from './isNumber' | ||
export * from './isPlainObject' | ||
export * from './isRegExp' | ||
export * from './isString' | ||
export * from './mergeAttributes' | ||
export * from './mergeDeep' | ||
export * from './minMax' | ||
export * from './objectIncludes' | ||
export * from './removeDuplicates' | ||
export * from './callOrReturn.js' | ||
export * from './createStyleTag.js' | ||
export * from './deleteProps.js' | ||
export * from './elementFromString.js' | ||
export * from './escapeForRegEx.js' | ||
export * from './findDuplicates.js' | ||
export * from './fromString.js' | ||
export * from './isEmptyObject.js' | ||
export * from './isFunction.js' | ||
export * from './isiOS.js' | ||
export * from './isMacOS.js' | ||
export * from './isNumber.js' | ||
export * from './isPlainObject.js' | ||
export * from './isRegExp.js' | ||
export * from './isString.js' | ||
export * from './mergeAttributes.js' | ||
export * from './mergeDeep.js' | ||
export * from './minMax.js' | ||
export * from './objectIncludes.js' | ||
export * from './removeDuplicates.js' |
@@ -1,2 +0,2 @@ | ||
import { isPlainObject } from './isPlainObject' | ||
import { isPlainObject } from './isPlainObject.js' | ||
@@ -3,0 +3,0 @@ export function mergeDeep(target: Record<string, any>, source: Record<string, any>): Record<string, any> { |
@@ -1,2 +0,2 @@ | ||
import { isRegExp } from './isRegExp' | ||
import { isRegExp } from './isRegExp.js' | ||
@@ -3,0 +3,0 @@ /** |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1924000
320
22609