Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@prosekit/extensions

Package Overview
Dependencies
Maintainers
1
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prosekit/extensions - npm Package Compare versions

Comparing version 0.0.0-next-20240724155246 to 0.0.0-next-20240724172520

1424

dist/_tsup-dts-rollup.d.ts

@@ -1,4 +0,5 @@

import { AddMarkOptions } from '@prosekit/core';
import { Attrs } from 'prosemirror-model';
import { Attrs as Attrs_2 } from '@prosekit/pm/model';
import { Attrs } from '@prosekit/pm/model';
import { Attrs as Attrs_2 } from 'prosemirror-model';
import { BaseCommandsExtension } from '@prosekit/core';
import { BaseKeymapExtension } from '@prosekit/core';
import { BundledLanguage } from 'shiki';

@@ -13,2 +14,3 @@ import { BundledLanguageInfo } from 'shiki';

import { config as default_alias_1 } from '@prosekit/dev/config-vitest';
import { DocExtension } from '@prosekit/core';
import { EditorState } from '@prosekit/pm/state';

@@ -22,7 +24,7 @@ import { Extension } from '@prosekit/core';

import type { Highlighter } from 'shiki';
import { HistoryExtension } from '@prosekit/core';
import { IndentListOptions } from 'prosemirror-flat-list';
import { InputRule } from '@prosekit/pm/inputrules';
import { InsertNodeOptions } from '@prosekit/core';
import type { IsEqual } from 'type-fest';
import { ListAttributes } from 'prosemirror-flat-list';
import type { ListAttributes } from 'prosemirror-flat-list';
import { ListDOMSerializer } from 'prosemirror-flat-list';

@@ -38,8 +40,5 @@ import { MarkType } from '@prosekit/pm/model';

import { Plugin as Plugin_2 } from '@prosekit/pm/state';
import { PluginExtension } from '@prosekit/core';
import { PluginKey } from '@prosekit/pm/state';
import { ProseMirrorNode } from '@prosekit/pm/model';
import { RemoveMarkOptions } from '@prosekit/core';
import { RemoveNodeOptions } from '@prosekit/core';
import { SetBlockTypeOptions } from '@prosekit/core';
import { SetNodeAttrsOptions } from '@prosekit/core';
import { SimplifyDeeper } from '@prosekit/core';

@@ -49,11 +48,9 @@ import type { SpecialLanguage } from 'shiki';

import { TestEditor } from '@prosekit/core/test';
import { TextExtension } from '@prosekit/core';
import { ToggleCollapsedOptions } from 'prosemirror-flat-list';
import { ToMarkAction } from '@prosekit/core';
import { Transaction } from '@prosekit/pm/state';
import { UnionExtension } from '@prosekit/core';
import { UnsetBlockTypeOptions } from '@prosekit/core';
import { UnsetMarkOptions } from '@prosekit/core';
import { Union } from '@prosekit/core';
import { UnwrapListOptions } from 'prosemirror-flat-list';
import { WrapInListGetAttrs } from 'prosemirror-flat-list';
import { WrapOptions } from '@prosekit/core';

@@ -86,2 +83,39 @@ export declare function applyMarkRules(rules: MarkRuleOptions[], transactions: readonly Transaction[], oldState: EditorState, newState: EditorState): Transaction | null;

/**
* @internal
*/
export declare type BlockquoteExtension = Union<[BlockquoteSpecExtension]>;
/**
* @internal
*/
export declare type BlockquoteSpecExtension = Extension<{
Nodes: {
blockquote: Attrs;
};
}>;
/**
* @internal
*/
export declare type BoldCommandsExtension = Extension<{
Commands: {
toggleBold: [];
};
}>;
/**
* @internal
*/
export declare type BoldExtension = Union<[BoldSpecExtension, BoldCommandsExtension]>;
/**
* @internal
*/
export declare type BoldSpecExtension = Extension<{
Marks: {
bold: Attrs;
};
}>;
export { BundledLanguage as ShikiBundledLanguage }

@@ -105,2 +139,5 @@ export { BundledLanguage as ShikiBundledLanguage_alias_1 }

/**
* @public
*/
export declare interface CellAttrs {

@@ -149,2 +186,25 @@ colspan: number;

/**
* @internal
*/
export declare type CodeCommandsExtension = Extension<{
Commands: {
toggleCode: [];
};
}>;
/**
* @internal
*/
export declare type CodeExtension = Union<[CodeSpecExtension, CodeCommandsExtension]>;
/**
* @internal
*/
export declare type CodeSpecExtension = Extension<{
Marks: {
code: Attrs;
};
}>;
/**
* A JSON representation of a commit.

@@ -216,9 +276,3 @@ */

*/
export declare function defineBlockquote(): UnionExtension<readonly [Extension< {
Nodes: {
blockquote: Attrs;
};
Marks: never;
Commands: never;
}>, Extension<ExtensionTyping<any, any, any>>]>;
export declare function defineBlockquote(): BlockquoteExtension;

@@ -231,8 +285,6 @@ /**

export declare function defineBlockquoteSpec(): Extension< {
Nodes: {
blockquote: Attrs;
};
Marks: never;
Commands: never;
export declare function defineBlockquoteSpec(): Extension<{
Nodes: {
blockquote: Attrs;
};
}>;

@@ -243,35 +295,23 @@

*/
export declare function defineBold(): UnionExtension<readonly [Extension< {
Marks: {
bold: Attrs;
};
Nodes: never;
Commands: never;
}>, Extension< {
Commands: {
toggleBold: [];
};
Nodes: never;
Marks: never;
}>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>]>;
export declare function defineBold(): BoldExtension;
export declare function defineBoldCommands(): Extension< {
Commands: {
toggleBold: [];
};
Nodes: never;
Marks: never;
}>;
/**
* @internal
*/
export declare function defineBoldCommands(): BoldCommandsExtension;
/**
* @internal
*/
export declare function defineBoldInputRule(): Extension<ExtensionTyping<any, any, any>>;
/**
* @internal
*/
export declare function defineBoldKeymap(): Extension<ExtensionTyping<any, any, any>>;
export declare function defineBoldSpec(): Extension< {
Marks: {
bold: Attrs;
};
Nodes: never;
Commands: never;
}>;
/**
* @internal
*/
export declare function defineBoldSpec(): BoldSpecExtension;

@@ -281,15 +321,3 @@ /**

*/
export declare function defineCode(): UnionExtension<readonly [Extension< {
Marks: {
code: Attrs;
};
Nodes: never;
Commands: never;
}>, Extension< {
Commands: {
toggleCode: [];
};
Nodes: never;
Marks: never;
}>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>]>;
export declare function defineCode(): CodeExtension;

@@ -307,3 +335,3 @@ /**

*/
declare function defineCodeBlock(): UnionExtension<readonly [Extension< {
declare function defineCodeBlock(): Union<readonly [Extension< {
Nodes: {

@@ -314,4 +342,2 @@ codeBlock: {

};
Marks: never;
Commands: never;
}>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>, Extension< {

@@ -324,4 +350,2 @@ Commands: {

};
Nodes: never;
Marks: never;
}>]>;

@@ -343,4 +367,2 @@ export { defineCodeBlock }

};
Nodes: never;
Marks: never;
}>;

@@ -407,4 +429,2 @@ export { defineCodeBlockCommands }

};
Marks: never;
Commands: never;
}>;

@@ -414,24 +434,21 @@ export { defineCodeBlockSpec }

export declare function defineCodeCommands(): Extension< {
Commands: {
toggleCode: [];
};
Nodes: never;
Marks: never;
}>;
/**
* @internal
*/
export declare function defineCodeCommands(): CodeCommandsExtension;
/**
* @internal
*/
export declare function defineCodeInputRule(): Extension<ExtensionTyping<any, any, any>>;
/**
* @internal
*/
export declare function defineCodeKeymap(): Extension<ExtensionTyping<any, any, any>>;
/**
* @public
* @internal
*/
export declare function defineCodeSpec(): Extension< {
Marks: {
code: Attrs;
};
Nodes: never;
Commands: never;
}>;
export declare function defineCodeSpec(): CodeSpecExtension;

@@ -441,3 +458,3 @@ /**

*/
export declare function defineCommitRecorder(commitRecorder: CommitRecorder): Extension<ExtensionTyping<any, any, any>>;
export declare function defineCommitRecorder(commitRecorder: CommitRecorder): PluginExtension;

@@ -447,3 +464,3 @@ /**

*/
export declare function defineCommitViewer(commit: Commit): UnionExtension<readonly [Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>]>;
export declare function defineCommitViewer(commit: Commit): Union<readonly [Extension<ExtensionTyping<any, any, any>>, PluginExtension]>;

@@ -457,3 +474,3 @@ /**

*/
export declare function defineDropCursor(options?: DropCursorOptions): Extension<ExtensionTyping<any, any, any>>;
export declare function defineDropCursor(options?: DropCursorOptions): DropCursorExtension;

@@ -483,3 +500,3 @@ /**

*/
export declare function defineGapCursor(): Extension<ExtensionTyping<any, any, any>>;
export declare function defineGapCursor(): PluginExtension;

@@ -489,29 +506,8 @@ /**

*/
export declare function defineHeading(): UnionExtension<readonly [Extension< {
Nodes: {
heading: {
level: number;
};
};
Marks: never;
Commands: never;
}>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>, Extension< {
Commands: {
setHeading: [attrs?: HeadingAttrs | undefined];
insertHeading: [attrs?: HeadingAttrs | undefined];
toggleHeading: [attrs?: HeadingAttrs | undefined];
};
Nodes: never;
Marks: never;
}>]>;
export declare function defineHeading(): HeadingExtension;
declare function defineHeadingCommands(): Extension< {
Commands: {
setHeading: [attrs?: HeadingAttrs | undefined];
insertHeading: [attrs?: HeadingAttrs | undefined];
toggleHeading: [attrs?: HeadingAttrs | undefined];
};
Nodes: never;
Marks: never;
}>;
/**
* @internal
*/
declare function defineHeadingCommands(): HeadingCommandsExtension;
export { defineHeadingCommands }

@@ -523,2 +519,4 @@ export { defineHeadingCommands as defineHeadingCommands_alias_1 }

* line followed by a space.
*
* @internal
*/

@@ -529,2 +527,5 @@ declare function defineHeadingInputRule(): Extension<ExtensionTyping<any, any, any>>;

/**
* @internal
*/
declare function defineHeadingKeymap(): Extension<ExtensionTyping<any, any, any>>;

@@ -534,11 +535,6 @@ export { defineHeadingKeymap }

declare function defineHeadingSpec(): Extension< {
Nodes: {
heading: {
level: number;
};
};
Marks: never;
Commands: never;
}>;
/**
* @internal
*/
declare function defineHeadingSpec(): HeadingSpecExtension;
export { defineHeadingSpec }

@@ -550,35 +546,13 @@ export { defineHeadingSpec as defineHeadingSpec_alias_1 }

*/
export declare function defineImage(): UnionExtension<readonly [Extension< {
Nodes: {
image: {
src: null;
};
};
Marks: never;
Commands: never;
}>, Extension< {
Commands: {
insertImage: [attrs?: ImageAttrs | undefined];
};
Nodes: never;
Marks: never;
}>]>;
export declare function defineImage(): ImageExtension;
export declare function defineImageCommands(): Extension< {
Commands: {
insertImage: [attrs?: ImageAttrs | undefined];
};
Nodes: never;
Marks: never;
}>;
/**
* @internal
*/
export declare function defineImageCommands(): ImageCommandsExtension;
export declare function defineImageSpec(): Extension< {
Nodes: {
image: {
src: null;
};
};
Marks: never;
Commands: never;
}>;
/**
* @internal
*/
export declare function defineImageSpec(): ImageSpecExtension;

@@ -597,35 +571,23 @@ /**

*/
export declare function defineItalic(): UnionExtension<readonly [Extension< {
Marks: {
italic: Attrs;
};
Nodes: never;
Commands: never;
}>, Extension< {
Commands: {
toggleItalic: [];
};
Nodes: never;
Marks: never;
}>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>]>;
export declare function defineItalic(): ItalicExtension;
export declare function defineItalicCommands(): Extension< {
Commands: {
toggleItalic: [];
};
Nodes: never;
Marks: never;
}>;
/**
* @internal
*/
export declare function defineItalicCommands(): ItalicCommandsExtension;
/**
* @internal
*/
export declare function defineItalicInputRule(): Extension<ExtensionTyping<any, any, any>>;
/**
* @internal
*/
export declare function defineItalicKeymap(): Extension<ExtensionTyping<any, any, any>>;
export declare function defineItalicSpec(): Extension< {
Marks: {
italic: Attrs;
};
Nodes: never;
Commands: never;
}>;
/**
* @internal
*/
export declare function defineItalicSpec(): ItalicSpecExtension;

@@ -635,32 +597,10 @@ /**

*/
export declare function defineLink(): UnionExtension<readonly [Extension< {
Marks: {
link: LinkAttrs;
};
Nodes: never;
Commands: never;
}>, Extension< {
Commands: {
addLink: [attrs: LinkAttrs];
removeLink: [];
toggleLink: [attrs: LinkAttrs];
expandLink: [];
};
Nodes: never;
Marks: never;
}>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>]>;
export declare function defineLink(): LinkExtension;
export declare function defineLinkCommands(): Extension< {
Commands: {
addLink: [attrs: LinkAttrs];
removeLink: [];
toggleLink: [attrs: LinkAttrs];
expandLink: [];
};
Nodes: never;
Marks: never;
}>;
export declare function defineLinkCommands(): LinkCommandsExtension;
/**
* Apply link marks after typing Enter.
*
* @internal
*/

@@ -671,2 +611,4 @@ export declare function defineLinkEnterRule(): Extension<ExtensionTyping<any, any, any>>;

* Apply link marks after pressing Space.
*
* @internal
*/

@@ -677,12 +619,11 @@ export declare function defineLinkInputRule(): Extension<ExtensionTyping<any, any, any>>;

* Apply and remove link marks to the text during typing.
*
* @internal
*/
export declare function defineLinkMarkRule(): Extension<ExtensionTyping<any, any, any>>;
export declare function defineLinkSpec(): Extension< {
Marks: {
link: LinkAttrs;
};
Nodes: never;
Commands: never;
}>;
/**
* @internal
*/
export declare function defineLinkSpec(): LinkSpecExtension;

@@ -692,23 +633,3 @@ /**

*/
export declare function defineList(): UnionExtension<readonly [Extension< {
Nodes: {
list: ListAttrs;
};
Marks: never;
Commands: never;
}>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>, Extension< {
Commands: {
dedentList: [options?: DedentListOptions | undefined];
indentList: [options?: IndentListOptions | undefined];
moveList: [direction: "up" | "down"];
splitList: [];
toggleCollapsed: [(ToggleCollapsedOptions | undefined)?];
toggleList: [attrs: ListAttributes];
unwrapList: [options?: UnwrapListOptions | undefined];
wrapInList: [getAttrs: WrapInListGetAttrs<ListAttributes>];
insertList: [attrs?: ListAttributes | undefined];
};
Nodes: never;
Marks: never;
}>]>;
export declare function defineList(): ListExtension;

@@ -720,17 +641,3 @@ /**

*/
declare function defineListCommands(): Extension< {
Commands: {
dedentList: [options?: DedentListOptions | undefined];
indentList: [options?: IndentListOptions | undefined];
moveList: [direction: "up" | "down"];
splitList: [];
toggleCollapsed: [(ToggleCollapsedOptions | undefined)?];
toggleList: [attrs: ListAttributes];
unwrapList: [options?: UnwrapListOptions | undefined];
wrapInList: [getAttrs: WrapInListGetAttrs<ListAttributes>];
insertList: [attrs?: ListAttributes | undefined];
};
Nodes: never;
Marks: never;
}>;
declare function defineListCommands(): ListCommandsExtension;
export { defineListCommands }

@@ -758,3 +665,3 @@ export { defineListCommands as defineListCommands_alias_1 }

*/
declare function defineListPlugins(): Extension<ExtensionTyping<any, any, any>>;
declare function defineListPlugins(): PluginExtension;
export { defineListPlugins }

@@ -766,9 +673,3 @@ export { defineListPlugins as defineListPlugins_alias_1 }

*/
declare function defineListSpec(): Extension< {
Nodes: {
list: ListAttrs;
};
Marks: never;
Commands: never;
}>;
declare function defineListSpec(): ListSpecExtension;
export { defineListSpec }

@@ -796,8 +697,6 @@ export { defineListSpec as defineListSpec_alias_1 }

*/
export declare function defineMention(): UnionExtension<readonly [Extension< {
export declare function defineMention(): Union<readonly [Extension< {
Nodes: {
mention: MentionAttrs;
};
Marks: never;
Commands: never;
}>, Extension< {

@@ -807,4 +706,2 @@ Commands: {

};
Nodes: never;
Marks: never;
}>]>;

@@ -816,4 +713,2 @@

};
Nodes: never;
Marks: never;
}>;

@@ -828,4 +723,2 @@

};
Marks: never;
Commands: never;
}>;

@@ -839,3 +732,3 @@

*/
export declare function defineModClickPrevention(): Extension;
export declare function defineModClickPrevention(): ModClickPreventionExtension;

@@ -846,3 +739,3 @@ /**

*/
export declare function definePlaceholder(options: PlaceholderOptions): Extension<ExtensionTyping<any, any, any>>;
export declare function definePlaceholder(options: PlaceholderOptions): PluginExtension;

@@ -852,3 +745,3 @@ /**

*/
export declare function defineReadonly(): Extension<ExtensionTyping<any, any, any>>;
export declare function defineReadonly(): PluginExtension;

@@ -871,4 +764,2 @@ /**

};
Nodes: never;
Marks: never;
}>;

@@ -881,3 +772,3 @@

*/
export declare function defineSearchQuery(options: SearchQueryOptions): Extension<ExtensionTyping<any, any, any>>;
export declare function defineSearchQuery(options: SearchQueryOptions): PluginExtension;

@@ -887,34 +778,26 @@ /**

*/
export declare function defineStrike(): UnionExtension<readonly [Extension< {
Marks: {
strike: Attrs;
};
Nodes: never;
Commands: never;
}>, Extension< {
Commands: {
toggleStrike: [];
};
Nodes: never;
Marks: never;
}>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>]>;
export declare function defineStrike(): StrikeExtension;
export declare function defineStrikeCommands(): Extension< {
Commands: {
toggleStrike: [];
};
Nodes: never;
Marks: never;
}>;
/**
* @internal
*/
export declare function defineStrikeCommands(): StrikeCommandsExtension;
/**
* @internal
*/
export declare function defineStrikeInputRule(): Extension<ExtensionTyping<any, any, any>>;
/**
* @internal
*/
export declare function defineStrikeKeymap(): Extension<ExtensionTyping<any, any, any>>;
export declare function defineStrikeSpec(): Extension< {
Marks: {
strike: Attrs;
};
Nodes: never;
Commands: never;
/**
* @internal
*/
export declare function defineStrikeSpec(): Extension<{
Marks: {
strike: Attrs;
};
}>;

@@ -925,52 +808,8 @@

*/
export declare function defineTable(): UnionExtension<readonly [Extension< {
Nodes: {
table: Attrs;
};
Marks: never;
Commands: never;
}>, Extension< {
Nodes: {
tableRow: Attrs;
};
Marks: never;
Commands: never;
}>, Extension< {
Nodes: {
tableCell: {
[x: string]: any;
};
};
Marks: never;
Commands: never;
}>, Extension< {
Nodes: {
tableHeaderCell: {
[x: string]: any;
};
};
Marks: never;
Commands: never;
}>, Extension<ExtensionTyping<any, any, any>>, Extension< {
Commands: {
insertTable: [{
row: number;
col: number;
header: boolean;
}];
exitTable: [];
};
Nodes: never;
Marks: never;
}>]>;
export declare function defineTable(): TableExtension;
declare function defineTableCellSpec(): Extension< {
Nodes: {
tableCell: {
[x: string]: any;
};
};
Marks: never;
Commands: never;
}>;
/**
* @internal
*/
declare function defineTableCellSpec(): TableCellSpecExtension;
export { defineTableCellSpec }

@@ -984,26 +823,7 @@ export { defineTableCellSpec as defineTableCellSpec_alias_1 }

*/
declare function defineTableCommands(): Extension< {
Commands: {
insertTable: [{
row: number;
col: number;
header: boolean;
}];
exitTable: [];
};
Nodes: never;
Marks: never;
}>;
declare function defineTableCommands(): TableCommandsExtension;
export { defineTableCommands }
export { defineTableCommands as defineTableCommands_alias_1 }
declare function defineTableHeaderCellSpec(): Extension< {
Nodes: {
tableHeaderCell: {
[x: string]: any;
};
};
Marks: never;
Commands: never;
}>;
declare function defineTableHeaderCellSpec(): TableHeaderCellSpecExtension;
export { defineTableHeaderCellSpec }

@@ -1015,23 +835,17 @@ export { defineTableHeaderCellSpec as defineTableHeaderCellSpec_alias_1 }

*/
declare function defineTablePlugins(): Extension<ExtensionTyping<any, any, any>>;
declare function defineTablePlugins(): PluginExtension;
export { defineTablePlugins }
export { defineTablePlugins as defineTablePlugins_alias_1 }
declare function defineTableRowSpec(): Extension< {
Nodes: {
tableRow: Attrs_2;
};
Marks: never;
Commands: never;
}>;
/**
* @internal
*/
declare function defineTableRowSpec(): TableRowSpecExtension;
export { defineTableRowSpec }
export { defineTableRowSpec as defineTableRowSpec_alias_1 }
declare function defineTableSpec(): Extension< {
Nodes: {
table: Attrs_2;
};
Marks: never;
Commands: never;
}>;
/**
* @internal
*/
declare function defineTableSpec(): TableSpecExtension;
export { defineTableSpec }

@@ -1043,218 +857,7 @@ export { defineTableSpec as defineTableSpec_alias_1 }

*/
export declare function defineTestExtension(): UnionExtension<readonly [Extension<{
export declare function defineTestExtension(): Union<readonly [DocExtension, TextExtension, HeadingExtension, HistoryExtension, ListExtension, BlockquoteExtension, BaseKeymapExtension, BaseCommandsExtension, ItalicExtension, BoldExtension, UnderlineExtension, StrikeExtension, CodeExtension, LinkExtension, ImageExtension, Extension<{
Nodes: {
doc: Attrs;
paragraph: Attrs_2;
};
Marks: never;
Commands: never;
}>, Extension<{
Nodes: {
text: Attrs;
};
Marks: never;
Commands: never;
}>, UnionExtension<readonly [Extension<{
Nodes: {
heading: {
level: number;
};
};
Marks: never;
Commands: never;
}>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>, Extension<{
Commands: {
setHeading: [attrs?: HeadingAttrs | undefined];
insertHeading: [attrs?: HeadingAttrs | undefined];
toggleHeading: [attrs?: HeadingAttrs | undefined];
};
Nodes: never;
Marks: never;
}>]>, UnionExtension<readonly [Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>, Extension<{
Commands: {
readonly undo: [];
readonly redo: [];
};
Nodes: never;
Marks: never;
}>]>, UnionExtension<readonly [Extension<{
Nodes: {
list: ListAttrs;
};
Marks: never;
Commands: never;
}>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>, Extension<{
Commands: {
dedentList: [options?: DedentListOptions | undefined];
indentList: [options?: IndentListOptions | undefined];
moveList: [direction: "up" | "down"];
splitList: [];
toggleCollapsed: [(ToggleCollapsedOptions | undefined)?];
toggleList: [attrs: ListAttributes];
unwrapList: [options?: UnwrapListOptions | undefined];
wrapInList: [getAttrs: WrapInListGetAttrs<ListAttributes>];
insertList: [attrs?: ListAttributes | undefined];
};
Nodes: never;
Marks: never;
}>]>, UnionExtension<readonly [Extension<{
Nodes: {
blockquote: Attrs;
};
Marks: never;
Commands: never;
}>, Extension<ExtensionTyping<any, any, any>>]>, Extension<ExtensionTyping<any, any, any>>, Extension<{
Commands: {
insertText: [{
text: string;
from?: number;
to?: number;
}];
insertNode: [options: InsertNodeOptions];
removeNode: [options: RemoveNodeOptions];
wrap: [WrapOptions];
setBlockType: [options: SetBlockTypeOptions];
setNodeAttrs: [options: SetNodeAttrsOptions];
selectAll: [];
addMark: [options: AddMarkOptions];
removeMark: [options: RemoveMarkOptions];
unsetBlockType: [options?: UnsetBlockTypeOptions | undefined];
unsetMark: [options?: UnsetMarkOptions | undefined];
};
Nodes: never;
Marks: never;
}>, UnionExtension<readonly [Extension<{
Marks: {
italic: Attrs;
};
Nodes: never;
Commands: never;
}>, Extension<{
Commands: {
toggleItalic: [];
};
Nodes: never;
Marks: never;
}>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>]>, UnionExtension<readonly [Extension<{
Marks: {
bold: Attrs;
};
Nodes: never;
Commands: never;
}>, Extension<{
Commands: {
toggleBold: [];
};
Nodes: never;
Marks: never;
}>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>]>, UnionExtension<readonly [Extension<{
Marks: {
underline: Attrs;
};
Nodes: never;
Commands: never;
}>, Extension<{
Commands: {
toggleUnderline: [];
};
Nodes: never;
Marks: never;
}>, Extension<ExtensionTyping<any, any, any>>]>, UnionExtension<readonly [Extension<{
Marks: {
strike: Attrs;
};
Nodes: never;
Commands: never;
}>, Extension<{
Commands: {
toggleStrike: [];
};
Nodes: never;
Marks: never;
}>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>]>, UnionExtension<readonly [Extension<{
Marks: {
code: Attrs;
};
Nodes: never;
Commands: never;
}>, Extension<{
Commands: {
toggleCode: [];
};
Nodes: never;
Marks: never;
}>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>]>, UnionExtension<readonly [Extension<{
Marks: {
link: LinkAttrs;
};
Nodes: never;
Commands: never;
}>, Extension<{
Commands: {
addLink: [attrs: LinkAttrs];
removeLink: [];
toggleLink: [attrs: LinkAttrs];
expandLink: [];
};
Nodes: never;
Marks: never;
}>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>]>, UnionExtension<readonly [Extension<{
Nodes: {
image: {
src: null;
};
};
Marks: never;
Commands: never;
}>, Extension<{
Commands: {
insertImage: [attrs?: ImageAttrs | undefined];
};
Nodes: never;
Marks: never;
}>]>, Extension<{
Nodes: {
paragraph: Attrs;
};
Marks: never;
Commands: never;
}>, UnionExtension<readonly [Extension<{
Nodes: {
table: Attrs;
};
Marks: never;
Commands: never;
}>, Extension<{
Nodes: {
tableRow: Attrs;
};
Marks: never;
Commands: never;
}>, Extension<{
Nodes: {
tableCell: {
[x: string]: any;
};
};
Marks: never;
Commands: never;
}>, Extension<{
Nodes: {
tableHeaderCell: {
[x: string]: any;
};
};
Marks: never;
Commands: never;
}>, Extension<ExtensionTyping<any, any, any>>, Extension<{
Commands: {
insertTable: [{
row: number;
col: number;
header: boolean;
}];
exitTable: [];
};
Nodes: never;
Marks: never;
}>]>]>;
}>, TableExtension]>;

@@ -1273,3 +876,2 @@ /**

};
Marks: never;
Commands: TextAlignCommandTyping;

@@ -1282,4 +884,2 @@ }>;

export declare function defineTextAlignCommands(types: string[]): Extension<{
Nodes: never;
Marks: never;
Commands: TextAlignCommandTyping;

@@ -1324,3 +924,3 @@ }>;

*/
attrs?: Attrs_2 | null | ((match: RegExpMatchArray) => Attrs_2 | null);
attrs?: Attrs | null | ((match: RegExpMatchArray) => Attrs | null);
}): Extension;

@@ -1331,33 +931,18 @@

*/
export declare function defineUnderline(): UnionExtension<readonly [Extension< {
Marks: {
underline: Attrs;
};
Nodes: never;
Commands: never;
}>, Extension< {
Commands: {
toggleUnderline: [];
};
Nodes: never;
Marks: never;
}>, Extension<ExtensionTyping<any, any, any>>]>;
export declare function defineUnderline(): UnderlineExtension;
export declare function defineUnderlineCommands(): Extension< {
Commands: {
toggleUnderline: [];
};
Nodes: never;
Marks: never;
}>;
/**
* @internal
*/
export declare function defineUnderlineCommands(): UnderlineCommandsExtension;
/**
* @internal
*/
export declare function defineUnderlineKeymap(): Extension<ExtensionTyping<any, any, any>>;
export declare function defineUnderlineSpec(): Extension< {
Marks: {
underline: Attrs;
};
Nodes: never;
Commands: never;
}>;
/**
* @internal
*/
export declare function defineUnderlineSpec(): UnderlineSpecExtension;

@@ -1374,3 +959,3 @@ /**

*/
export declare function defineVirtualSelection(): Extension;
export declare function defineVirtualSelection(): VirtualSelectionExtension;

@@ -1399,3 +984,3 @@ /**

*/
attrs?: Attrs_2 | null | ((match: RegExpMatchArray) => Attrs_2 | null);
attrs?: Attrs | null | ((match: RegExpMatchArray) => Attrs | null);
/**

@@ -1412,2 +997,7 @@ * By default, if there's a node with the same type above the newly wrapped

/**
* @internal
*/
export declare type DropCursorExtension = PluginExtension;
export declare interface DropCursorOptions {

@@ -1500,2 +1090,34 @@ /**

/**
* @internal
*/
declare type HeadingCommandsExtension = Extension<{
Commands: {
setHeading: [attrs?: HeadingAttrs | undefined];
insertHeading: [attrs?: HeadingAttrs | undefined];
toggleHeading: [attrs?: HeadingAttrs | undefined];
};
}>;
export { HeadingCommandsExtension }
export { HeadingCommandsExtension as HeadingCommandsExtension_alias_1 }
/**
* @internal
*/
export declare type HeadingExtension = Union<[
HeadingSpecExtension,
HeadingCommandsExtension
]>;
/**
* @internal
*/
declare type HeadingSpecExtension = Extension<{
Nodes: {
heading: HeadingAttrs;
};
}>;
export { HeadingSpecExtension }
export { HeadingSpecExtension as HeadingSpecExtension_alias_1 }
export declare type HighlighterOptions = {

@@ -1524,2 +1146,5 @@ themes: BundledTheme[];

/**
* @public
*/
export declare interface ImageAttrs {

@@ -1529,2 +1154,25 @@ src?: string | null;

/**
* @internal
*/
export declare type ImageCommandsExtension = Extension<{
Commands: {
insertImage: [attrs?: ImageAttrs];
};
}>;
/**
* @internal
*/
export declare type ImageExtension = Union<[ImageSpecExtension, ImageCommandsExtension]>;
/**
* @internal
*/
export declare type ImageSpecExtension = Extension<{
Nodes: {
image: ImageAttrs;
};
}>;
export { IndentListOptions }

@@ -1538,8 +1186,39 @@

*/
export declare function insertTable({ row, col, header, }: {
export declare function insertTable({ row, col, header }: InsertTableOptions): Command;
/**
* @public
*/
export declare interface InsertTableOptions {
row: number;
col: number;
header: boolean;
}): Command;
}
/**
* @internal
*/
export declare type ItalicCommandsExtension = Extension<{
Commands: {
toggleItalic: [];
};
}>;
/**
* @internal
*/
export declare type ItalicExtension = Union<[
ItalicSpecExtension,
ItalicCommandsExtension
]>;
/**
* @internal
*/
export declare type ItalicSpecExtension = Extension<{
Marks: {
italic: Attrs;
};
}>;
export declare const LINK_ENTER_RE: RegExp;

@@ -1559,2 +1238,28 @@

/**
* @internal
*/
export declare type LinkCommandsExtension = Extension<{
Commands: {
addLink: [LinkAttrs];
removeLink: [];
toggleLink: [LinkAttrs];
expandLink: [];
};
}>;
/**
* @internal
*/
export declare type LinkExtension = Union<[LinkSpecExtension, LinkCommandsExtension]>;
/**
* @internal
*/
export declare type LinkSpecExtension = Extension<{
Marks: {
link: LinkAttrs;
};
}>;
/**
* The attributes of a list node.

@@ -1585,5 +1290,40 @@ *

/**
* @internal
*/
declare type ListCommandsExtension = Extension<{
Commands: {
dedentList: [options?: DedentListOptions];
indentList: [options?: IndentListOptions];
moveList: [direction: 'up' | 'down'];
splitList: [];
toggleCollapsed: [options?: ToggleCollapsedOptions];
unwrapList: [options?: UnwrapListOptions];
toggleList: [attrs?: ListAttributes];
wrapInList: [attrs?: ListAttributes];
insertList: [attrs?: ListAttributes];
};
}>;
export { ListCommandsExtension }
export { ListCommandsExtension as ListCommandsExtension_alias_1 }
export { ListDOMSerializer }
/**
* @internal
*/
export declare type ListExtension = Union<[ListSpecExtension, ListCommandsExtension]>;
/**
* @internal
*/
declare type ListSpecExtension = Extension<{
Nodes: {
list: ListAttrs;
};
}>;
export { ListSpecExtension }
export { ListSpecExtension as ListSpecExtension_alias_1 }
/**
* Options for {@link defineMarkInputRule}.

@@ -1607,3 +1347,3 @@ *

*/
attrs?: Attrs_2 | null | ((match: RegExpMatchArray) => Attrs_2 | null);
attrs?: Attrs | null | ((match: RegExpMatchArray) => Attrs | null);
}

@@ -1632,3 +1372,3 @@

*/
attrs?: Attrs_2 | null | ((match: RegExpMatchArray) => Attrs_2 | null);
attrs?: Attrs | null | ((match: RegExpMatchArray) => Attrs | null);
}

@@ -1655,2 +1395,7 @@ export { MarkRuleOptions }

/**
* @internal
*/
export declare type ModClickPreventionExtension = PluginExtension;
export declare interface PlaceholderOptions {

@@ -1754,237 +1499,26 @@ /**

export declare function setupTest(): {
editor: TestEditor<UnionExtension<readonly [Extension<{
editor: TestEditor<Union<readonly [DocExtension, TextExtension, HeadingExtension, HistoryExtension, ListExtension, BlockquoteExtension, BaseKeymapExtension, BaseCommandsExtension, ItalicExtension, BoldExtension, UnderlineExtension, StrikeExtension, CodeExtension, LinkExtension, ImageExtension, Extension<{
Nodes: {
doc: Attrs;
paragraph: Attrs_2;
};
Marks: never;
Commands: never;
}>, Extension<{
Nodes: {
text: Attrs;
};
Marks: never;
Commands: never;
}>, UnionExtension<readonly [Extension<{
Nodes: {
heading: {
level: number;
};
};
Marks: never;
Commands: never;
}>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>, Extension<{
Commands: {
setHeading: [attrs?: HeadingAttrs | undefined];
insertHeading: [attrs?: HeadingAttrs | undefined];
toggleHeading: [attrs?: HeadingAttrs | undefined];
};
Nodes: never;
Marks: never;
}>]>, UnionExtension<readonly [Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>, Extension<{
Commands: {
readonly undo: [];
readonly redo: [];
};
Nodes: never;
Marks: never;
}>]>, UnionExtension<readonly [Extension<{
Nodes: {
list: ListAttrs;
};
Marks: never;
Commands: never;
}>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>, Extension<{
Commands: {
dedentList: [options?: DedentListOptions | undefined];
indentList: [options?: IndentListOptions | undefined];
moveList: [direction: "up" | "down"];
splitList: [];
toggleCollapsed: [(ToggleCollapsedOptions | undefined)?];
toggleList: [attrs: ListAttributes];
unwrapList: [options?: UnwrapListOptions | undefined];
wrapInList: [getAttrs: WrapInListGetAttrs<ListAttributes>];
insertList: [attrs?: ListAttributes | undefined];
};
Nodes: never;
Marks: never;
}>]>, UnionExtension<readonly [Extension<{
Nodes: {
blockquote: Attrs;
};
Marks: never;
Commands: never;
}>, Extension<ExtensionTyping<any, any, any>>]>, Extension<ExtensionTyping<any, any, any>>, Extension<{
Commands: {
insertText: [{
text: string;
from?: number;
to?: number;
}];
insertNode: [options: InsertNodeOptions];
removeNode: [options: RemoveNodeOptions];
wrap: [WrapOptions];
setBlockType: [options: SetBlockTypeOptions];
setNodeAttrs: [options: SetNodeAttrsOptions];
selectAll: [];
addMark: [options: AddMarkOptions];
removeMark: [options: RemoveMarkOptions];
unsetBlockType: [options?: UnsetBlockTypeOptions | undefined];
unsetMark: [options?: UnsetMarkOptions | undefined];
};
Nodes: never;
Marks: never;
}>, UnionExtension<readonly [Extension<{
Marks: {
italic: Attrs;
};
Nodes: never;
Commands: never;
}>, Extension<{
Commands: {
toggleItalic: [];
};
Nodes: never;
Marks: never;
}>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>]>, UnionExtension<readonly [Extension<{
Marks: {
bold: Attrs;
};
Nodes: never;
Commands: never;
}>, Extension<{
Commands: {
toggleBold: [];
};
Nodes: never;
Marks: never;
}>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>]>, UnionExtension<readonly [Extension<{
Marks: {
underline: Attrs;
};
Nodes: never;
Commands: never;
}>, Extension<{
Commands: {
toggleUnderline: [];
};
Nodes: never;
Marks: never;
}>, Extension<ExtensionTyping<any, any, any>>]>, UnionExtension<readonly [Extension<{
Marks: {
strike: Attrs;
};
Nodes: never;
Commands: never;
}>, Extension<{
Commands: {
toggleStrike: [];
};
Nodes: never;
Marks: never;
}>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>]>, UnionExtension<readonly [Extension<{
Marks: {
code: Attrs;
};
Nodes: never;
Commands: never;
}>, Extension<{
Commands: {
toggleCode: [];
};
Nodes: never;
Marks: never;
}>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>]>, UnionExtension<readonly [Extension<{
Marks: {
link: LinkAttrs;
};
Nodes: never;
Commands: never;
}>, Extension<{
Commands: {
addLink: [attrs: LinkAttrs];
removeLink: [];
toggleLink: [attrs: LinkAttrs];
expandLink: [];
};
Nodes: never;
Marks: never;
}>, Extension<ExtensionTyping<any, any, any>>, Extension<ExtensionTyping<any, any, any>>]>, UnionExtension<readonly [Extension<{
Nodes: {
image: {
src: null;
};
};
Marks: never;
Commands: never;
}>, Extension<{
Commands: {
insertImage: [attrs?: ImageAttrs | undefined];
};
Nodes: never;
Marks: never;
}>]>, Extension<{
Nodes: {
paragraph: Attrs;
};
Marks: never;
Commands: never;
}>, UnionExtension<readonly [Extension<{
Nodes: {
table: Attrs;
};
Marks: never;
Commands: never;
}>, Extension<{
Nodes: {
tableRow: Attrs;
};
Marks: never;
Commands: never;
}>, Extension<{
Nodes: {
tableCell: {
[x: string]: any;
};
};
Marks: never;
Commands: never;
}>, Extension<{
Nodes: {
tableHeaderCell: {
[x: string]: any;
};
};
Marks: never;
Commands: never;
}>, Extension<ExtensionTyping<any, any, any>>, Extension<{
Commands: {
insertTable: [{
row: number;
col: number;
header: boolean;
}];
exitTable: [];
};
Nodes: never;
Marks: never;
}>]>]>>;
}>, TableExtension]>>;
m: ToMarkAction<SimplifyDeeper< {
underline: {
bold: {
readonly [x: string]: any;
};
strike: {
code: {
readonly [x: string]: any;
};
italic: {
readonly [x: string]: any;
};
link: {
href: string;
};
italic: {
strike: {
readonly [x: string]: any;
};
code: {
underline: {
readonly [x: string]: any;
};
bold: {
readonly [x: string]: any;
};
}>>;

@@ -2007,17 +1541,20 @@ n: {

expanded: (...children: NodeChild[]) => Node_2;
doc: NodeAction< {
readonly [x: string]: any;
}>;
paragraph: NodeAction< {
readonly [x: string]: any;
}>;
tableHeaderCell: NodeAction< {
[x: string]: any;
}>;
tableCell: NodeAction< {
[x: string]: any;
}>;
tableRow: NodeAction< {
text: NodeAction< {
readonly [x: string]: any;
}>;
table: NodeAction< {
blockquote: NodeAction< {
readonly [x: string]: any;
}>;
heading: NodeAction< {
level: number;
}>;
image: NodeAction< {
src?: string | null;
}>;
list: NodeAction< {

@@ -2029,17 +1566,18 @@ kind?: "bullet" | "ordered" | "task" | "toggle";

}>;
image: NodeAction< {
src: null;
}>;
heading: NodeAction< {
level: number;
}>;
blockquote: NodeAction< {
table: NodeAction< {
readonly [x: string]: any;
}>;
text: NodeAction< {
tableRow: NodeAction< {
readonly [x: string]: any;
}>;
doc: NodeAction< {
readonly [x: string]: any;
tableCell: NodeAction< {
colspan: number;
rowspan: number;
colwidth: number[] | null;
}>;
tableHeaderCell: NodeAction< {
colspan: number;
rowspan: number;
colwidth: number[] | null;
}>;
};

@@ -2060,2 +1598,95 @@ };

*/
export declare type StrikeCommandsExtension = Extension<{
Commands: {
toggleStrike: [];
};
}>;
/**
* @internal
*/
export declare type StrikeExtension = Union<[
StrikeSpecExtension,
StrikeCommandsExtension
]>;
/**
* @internal
*/
export declare type StrikeSpecExtension = Extension<{
Marks: {
strike: Attrs;
};
}>;
/**
* @internal
*/
declare type TableCellSpecExtension = Extension<{
Nodes: {
tableCell: CellAttrs;
};
}>;
export { TableCellSpecExtension }
export { TableCellSpecExtension as TableCellSpecExtension_alias_1 }
/**
* @internal
*/
declare type TableCommandsExtension = Extension<{
Commands: {
insertTable: [InsertTableOptions];
exitTable: [];
};
}>;
export { TableCommandsExtension }
export { TableCommandsExtension as TableCommandsExtension_alias_1 }
/**
* @internal
*/
export declare type TableExtension = Union<[
TableSpecExtension,
TableRowSpecExtension,
TableCellSpecExtension,
TableHeaderCellSpecExtension,
TableCommandsExtension
]>;
/**
* @internal
*/
declare type TableHeaderCellSpecExtension = Extension<{
Nodes: {
tableHeaderCell: CellAttrs;
};
}>;
export { TableHeaderCellSpecExtension }
export { TableHeaderCellSpecExtension as TableHeaderCellSpecExtension_alias_1 }
/**
* @internal
*/
declare type TableRowSpecExtension = Extension<{
Nodes: {
tableRow: Attrs;
};
}>;
export { TableRowSpecExtension }
export { TableRowSpecExtension as TableRowSpecExtension_alias_1 }
/**
* @internal
*/
declare type TableSpecExtension = Extension<{
Nodes: {
table: Attrs;
};
}>;
export { TableSpecExtension }
export { TableSpecExtension as TableSpecExtension_alias_1 }
/**
* @internal
*/
export declare type TextAlignCommandTyping = {

@@ -2100,3 +1731,3 @@ setTextAlign: [value: string | null];

*/
attrs?: Attrs_2 | null | ((match: RegExpMatchArray) => Attrs_2 | null);
attrs?: Attrs | null | ((match: RegExpMatchArray) => Attrs | null);
/**

@@ -2112,6 +1743,37 @@ * Whether to stop further handlers from being called if this rule is triggered.

/**
* @internal
*/
export declare type UnderlineCommandsExtension = Extension<{
Commands: {
toggleUnderline: [];
};
}>;
/**
* @internal
*/
export declare type UnderlineExtension = Union<[
UnderlineSpecExtension,
UnderlineCommandsExtension
]>;
/**
* @internal
*/
export declare type UnderlineSpecExtension = Extension<{
Marks: {
underline: Attrs;
};
}>;
export { UnwrapListOptions }
/**
* @internal
*/
export declare type VirtualSelectionExtension = PluginExtension;
export { WrapInListGetAttrs }
export { }
export { defineBlockquoteSpec } from './_tsup-dts-rollup';
export { defineBlockquoteInputRule } from './_tsup-dts-rollup';
export { defineBlockquote } from './_tsup-dts-rollup';
export { BlockquoteSpecExtension } from './_tsup-dts-rollup';
export { BlockquoteExtension } from './_tsup-dts-rollup';

@@ -6,3 +6,6 @@ import {

// src/blockquote/index.ts
import { defineNodeSpec, union } from "@prosekit/core";
import {
defineNodeSpec,
union
} from "@prosekit/core";
function defineBlockquoteSpec() {

@@ -9,0 +12,0 @@ return defineNodeSpec({

@@ -6,1 +6,4 @@ export { defineBoldSpec } from './_tsup-dts-rollup';

export { defineBold } from './_tsup-dts-rollup';
export { BoldSpecExtension } from './_tsup-dts-rollup';
export { BoldCommandsExtension } from './_tsup-dts-rollup';
export { BoldExtension } from './_tsup-dts-rollup';

@@ -6,1 +6,4 @@ export { defineCodeSpec } from './_tsup-dts-rollup';

export { defineCode } from './_tsup-dts-rollup';
export { CodeSpecExtension } from './_tsup-dts-rollup';
export { CodeCommandsExtension } from './_tsup-dts-rollup';
export { CodeExtension } from './_tsup-dts-rollup';
export { defineDropCursor } from './_tsup-dts-rollup';
export { DropCursorOptions } from './_tsup-dts-rollup';
export { DropCursorExtension } from './_tsup-dts-rollup';
export { defineHeading } from './_tsup-dts-rollup';
export { HeadingExtension } from './_tsup-dts-rollup';
export { defineHeadingCommands_alias_1 as defineHeadingCommands } from './_tsup-dts-rollup';

@@ -6,2 +7,4 @@ export { defineHeadingInputRule } from './_tsup-dts-rollup';

export { defineHeadingSpec } from './_tsup-dts-rollup';
export { HeadingCommandsExtension_alias_1 as HeadingCommandsExtension } from './_tsup-dts-rollup';
export { HeadingSpecExtension } from './_tsup-dts-rollup';
export { HeadingAttrs } from './_tsup-dts-rollup';

@@ -5,1 +5,4 @@ export { defineImageSpec } from './_tsup-dts-rollup';

export { ImageAttrs } from './_tsup-dts-rollup';
export { ImageSpecExtension } from './_tsup-dts-rollup';
export { ImageCommandsExtension } from './_tsup-dts-rollup';
export { ImageExtension } from './_tsup-dts-rollup';

@@ -6,1 +6,4 @@ export { defineItalicSpec } from './_tsup-dts-rollup';

export { defineItalic } from './_tsup-dts-rollup';
export { ItalicSpecExtension } from './_tsup-dts-rollup';
export { ItalicCommandsExtension } from './_tsup-dts-rollup';
export { ItalicExtension } from './_tsup-dts-rollup';

@@ -8,1 +8,4 @@ export { defineLinkSpec } from './_tsup-dts-rollup';

export { LinkAttrs } from './_tsup-dts-rollup';
export { LinkSpecExtension } from './_tsup-dts-rollup';
export { LinkCommandsExtension } from './_tsup-dts-rollup';
export { LinkExtension } from './_tsup-dts-rollup';

@@ -8,2 +8,3 @@ export { defineList } from './_tsup-dts-rollup';

export { WrapInListGetAttrs } from './_tsup-dts-rollup';
export { ListExtension } from './_tsup-dts-rollup';
export { defineListCommands_alias_1 as defineListCommands } from './_tsup-dts-rollup';

@@ -15,1 +16,3 @@ export { defineListInputRules } from './_tsup-dts-rollup';

export { ListAttrs } from './_tsup-dts-rollup';
export { ListCommandsExtension_alias_1 as ListCommandsExtension } from './_tsup-dts-rollup';
export { ListSpecExtension } from './_tsup-dts-rollup';

@@ -30,4 +30,4 @@ import {

toggleCollapsed,
unwrapList,
toggleList,
unwrapList,
wrapInList,

@@ -34,0 +34,0 @@ insertList

export { defineModClickPrevention } from './_tsup-dts-rollup';
export { ModClickPreventionExtension } from './_tsup-dts-rollup';

@@ -6,1 +6,4 @@ export { defineStrikeSpec } from './_tsup-dts-rollup';

export { defineStrike } from './_tsup-dts-rollup';
export { StrikeSpecExtension } from './_tsup-dts-rollup';
export { StrikeCommandsExtension } from './_tsup-dts-rollup';
export { StrikeExtension } from './_tsup-dts-rollup';
export { defineTable } from './_tsup-dts-rollup';
export { TableExtension } from './_tsup-dts-rollup';
export { defineTableCellSpec } from './_tsup-dts-rollup';

@@ -8,1 +9,6 @@ export { defineTableCommands } from './_tsup-dts-rollup';

export { defineTableSpec } from './_tsup-dts-rollup';
export { TableCellSpecExtension } from './_tsup-dts-rollup';
export { TableCommandsExtension } from './_tsup-dts-rollup';
export { TableHeaderCellSpecExtension } from './_tsup-dts-rollup';
export { TableRowSpecExtension } from './_tsup-dts-rollup';
export { TableSpecExtension } from './_tsup-dts-rollup';

@@ -35,7 +35,3 @@ // src/table/index.ts

}
function insertTable({
row,
col,
header
}) {
function insertTable({ row, col, header }) {
return (state, dispatch, view) => {

@@ -94,7 +90,2 @@ const table = createEmptyTable(state.schema, row, col, header);

import { defineNodeSpec } from "@prosekit/core";
var cellAttrs = {
colspan: { default: 1 },
rowspan: { default: 1 },
colwidth: { default: null }
};
var cellContent = "block+";

@@ -152,2 +143,7 @@ function getCellAttrs(dom) {

}
var cellAttrs = {
colspan: { default: 1 },
rowspan: { default: 1 },
colwidth: { default: null }
};
function defineTableCellSpec() {

@@ -154,0 +150,0 @@ return defineNodeSpec({

@@ -5,1 +5,4 @@ export { defineUnderlineSpec } from './_tsup-dts-rollup';

export { defineUnderline } from './_tsup-dts-rollup';
export { UnderlineSpecExtension } from './_tsup-dts-rollup';
export { UnderlineCommandsExtension } from './_tsup-dts-rollup';
export { UnderlineExtension } from './_tsup-dts-rollup';

@@ -6,4 +6,4 @@ // src/underline/index.ts

defineMarkSpec,
union,
toggleMark
toggleMark,
union
} from "@prosekit/core";

@@ -10,0 +10,0 @@ function defineUnderlineSpec() {

export { defineVirtualSelection } from './_tsup-dts-rollup';
export { VirtualSelectionExtension } from './_tsup-dts-rollup';
{
"name": "@prosekit/extensions",
"type": "module",
"version": "0.0.0-next-20240724155246",
"version": "0.0.0-next-20240724172520",
"private": false,

@@ -197,4 +197,4 @@ "author": {

"shiki": "^1.11.1",
"@prosekit/pm": "^0.0.0-next-20240724155246",
"@prosekit/core": "^0.0.0-next-20240724155246"
"@prosekit/core": "^0.0.0-next-20240724172520",
"@prosekit/pm": "^0.0.0-next-20240724172520"
},

@@ -201,0 +201,0 @@ "devDependencies": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc