New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@tiptap/core

Package Overview
Dependencies
Maintainers
2
Versions
343
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tiptap/core - npm Package Compare versions

Comparing version 2.0.0-alpha.1 to 2.0.0-alpha.2

README.md

8

CHANGELOG.md

@@ -6,4 +6,12 @@ # Change Log

# [2.0.0-alpha.2](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/core@2.0.0-alpha.1...@tiptap/core@2.0.0-alpha.2) (2020-11-16)
**Note:** Version bump only for package @tiptap/core
# [2.0.0-alpha.1](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/core@2.0.0-alpha.0...@tiptap/core@2.0.0-alpha.1) (2020-11-16)
**Note:** Version bump only for package @tiptap/core

2

dist/packages/core/src/CommandManager.d.ts
import { EditorState, Transaction } from 'prosemirror-state';
import { SingleCommands, ChainedCommands, Editor, CommandSpec } from './Editor';
import { Editor, CommandSpec, SingleCommands, ChainedCommands } from './Editor';
export default class CommandManager {

@@ -4,0 +4,0 @@ editor: Editor;

@@ -25,6 +25,10 @@ import { EditorState, Plugin, Transaction } from 'prosemirror-state';

}
export interface AllExtensions {
declare global {
namespace Tiptap {
interface AllExtensions {
}
}
}
export declare type UnfilteredCommands = {
[Item in keyof AllExtensions]: AllExtensions[Item] extends Extension<any, infer ExtensionCommands> ? ExtensionCommands : AllExtensions[Item] extends Node<any, infer NodeCommands> ? NodeCommands : AllExtensions[Item] extends Mark<any, infer MarkCommands> ? MarkCommands : never;
declare type UnfilteredCommands = {
[Item in keyof Tiptap.AllExtensions]: Tiptap.AllExtensions[Item] extends Extension<any, infer ExtensionCommands> ? ExtensionCommands : Tiptap.AllExtensions[Item] extends Node<any, infer NodeCommands> ? NodeCommands : Tiptap.AllExtensions[Item] extends Mark<any, infer MarkCommands> ? MarkCommands : never;
};

@@ -31,0 +35,0 @@ declare type ValuesOf<T> = T[keyof T];

@@ -6,127 +6,129 @@ import { Extension } from '../Extension';

*/
blur: () => import("@tiptap/core").Command;
blur: () => import("..").Command;
/**
* Clear the whole document.
*/
clearContent: (emitUpdate?: Boolean) => import("@tiptap/core").Command;
clearContent: (emitUpdate?: Boolean) => import("..").Command;
/**
* Normalize nodes to a simple paragraph.
*/
clearNodes: () => import("@tiptap/core").Command;
clearNodes: () => import("..").Command;
/**
* Delete the selection, if there is one.
*/
deleteSelection: () => import("@tiptap/core").Command;
deleteSelection: () => import("..").Command;
/**
* Extends the text selection to the current mark.
*/
extendMarkRange: (typeOrName: string | import("prosemirror-model").MarkType<any>) => import("@tiptap/core").Command;
extendMarkRange: (typeOrName: string | import("prosemirror-model").MarkType<any>) => import("..").Command;
/**
* Focus the editor at the given position.
*/
focus: (position?: number | boolean | "start" | "end" | null) => import("@tiptap/core").Command;
focus: (position?: number | boolean | "start" | "end" | null) => import("..").Command;
/**
* Insert a string of HTML at the current position.
*/
insertHTML: (value: string) => import("@tiptap/core").Command;
insertHTML: (value: string) => import("..").Command;
/**
* Insert a string of text at the current position.
*/
insertText: (value: string) => import("@tiptap/core").Command;
insertText: (value: string) => import("..").Command;
/**
* Lift the list item into a wrapping list.
*/
liftListItem: (typeOrName: string | import("prosemirror-model").NodeType<any>) => import("@tiptap/core").Command;
liftListItem: (typeOrName: string | import("prosemirror-model").NodeType<any>) => import("..").Command;
/**
* Remove all marks in the current selection.
*/
removeMark: (typeOrName: string | import("prosemirror-model").MarkType<any>) => import("@tiptap/core").Command;
removeMark: (typeOrName: string | import("prosemirror-model").MarkType<any>) => import("..").Command;
/**
* Remove all marks in the current selection.
*/
removeMarks: () => import("@tiptap/core").Command;
removeMarks: () => import("..").Command;
/**
* Resets all node attributes to the default value.
*/
resetNodeAttributes: (attributeNames?: string[]) => import("@tiptap/core").Command;
resetNodeAttributes: (attributeNames?: string[]) => import("..").Command;
/**
* Scroll the selection into view.
*/
scrollIntoView: () => import("@tiptap/core").Command;
scrollIntoView: () => import("..").Command;
/**
* Select the whole document.
*/
selectAll: () => import("@tiptap/core").Command;
selectAll: () => import("..").Command;
/**
* Select the parent node.
*/
selectParentNode: () => import("@tiptap/core").Command;
selectParentNode: () => import("..").Command;
/**
* Replace a given range with a node.
*/
setBlockType: (typeOrName: string | import("prosemirror-model").NodeType<any>, attrs?: {}) => import("@tiptap/core").Command;
setBlockType: (typeOrName: string | import("prosemirror-model").NodeType<any>, attrs?: {}) => import("..").Command;
/**
* Replace the whole document with new content.
*/
setContent: (content: string, emitUpdate?: Boolean, parseOptions?: {}) => import("@tiptap/core").Command;
setContent: (content: string, emitUpdate?: Boolean, parseOptions?: {}) => import("..").Command;
/**
* Sink the list item down into an inner list.
*/
sinkListItem: (typeOrName: string | import("prosemirror-model").NodeType<any>) => import("@tiptap/core").Command;
sinkListItem: (typeOrName: string | import("prosemirror-model").NodeType<any>) => import("..").Command;
/**
* Forks a new node from an existing node.
*/
splitBlock: (options?: Partial<import("../commands/splitBlock").SplitBlockOptions>) => import("@tiptap/core").Command;
splitBlock: (options?: Partial<import("../commands/splitBlock").SplitBlockOptions>) => import("..").Command;
/**
* Splits one list item into two list items.
*/
splitListItem: (typeOrName: string | import("prosemirror-model").NodeType<any>) => import("@tiptap/core").Command;
splitListItem: (typeOrName: string | import("prosemirror-model").NodeType<any>) => import("..").Command;
/**
* Toggle a node with another node.
*/
toggleBlockType: (typeOrName: string | import("prosemirror-model").NodeType<any>, toggleTypeOrName: string | import("prosemirror-model").NodeType<any>, attrs?: {}) => import("@tiptap/core").Command;
toggleBlockType: (typeOrName: string | import("prosemirror-model").NodeType<any>, toggleTypeOrName: string | import("prosemirror-model").NodeType<any>, attrs?: {}) => import("..").Command;
/**
* Toggle between different list types.
*/
toggleList: (listTypeOrName: string | import("prosemirror-model").NodeType<any>, itemTypeOrName: string | import("prosemirror-model").NodeType<any>) => import("@tiptap/core").Command;
toggleList: (listTypeOrName: string | import("prosemirror-model").NodeType<any>, itemTypeOrName: string | import("prosemirror-model").NodeType<any>) => import("..").Command;
/**
* Toggle a mark on and off.
*/
toggleMark: (typeOrName: string | import("prosemirror-model").MarkType<any>, attributes?: {} | undefined) => import("@tiptap/core").Command;
toggleMark: (typeOrName: string | import("prosemirror-model").MarkType<any>, attributes?: {} | undefined) => import("..").Command;
/**
* Wraps nodes in another node, or removes an existing wrap.
*/
toggleWrap: (typeOrName: string | import("prosemirror-model").NodeType<any>, attrs?: {}) => import("@tiptap/core").Command;
toggleWrap: (typeOrName: string | import("prosemirror-model").NodeType<any>, attrs?: {}) => import("..").Command;
/**
* Runs one command after the other and stops at the first which returns true.
*/
try: (commands: import("@tiptap/core").Command[] | ((props: {
editor: import("@tiptap/core").Editor;
try: (commands: import("..").Command[] | ((props: {
editor: import("..").Editor;
tr: import("prosemirror-state").Transaction<any>;
commands: import("../Editor").SingleCommands;
can: () => import("../Editor").SingleCommands & {
chain: () => import("../Editor").ChainedCommands;
commands: Tiptap.SingleCommands;
can: () => Tiptap.SingleCommands & {
chain: () => Tiptap.ChainedCommands;
};
chain: () => import("../Editor").ChainedCommands;
chain: () => Tiptap.ChainedCommands;
state: import("prosemirror-state").EditorState<any>;
view: import("prosemirror-view").EditorView<any>;
dispatch: ((args?: any) => any) | undefined;
}) => import("@tiptap/core").Command[])) => import("@tiptap/core").Command;
}) => import("..").Command[])) => import("..").Command;
/**
* Update a mark with new attributes.
*/
updateMarkAttributes: (typeOrName: string | import("prosemirror-model").MarkType<any>, attributes: {}) => import("@tiptap/core").Command;
updateMarkAttributes: (typeOrName: string | import("prosemirror-model").MarkType<any>, attributes: {}) => import("..").Command;
/**
* Update attributes of a node.
*/
updateNodeAttributes: (attributes: {}) => import("@tiptap/core").Command;
updateNodeAttributes: (attributes: {}) => import("..").Command;
/**
* Wrap a node in a list.
*/
wrapInList: (typeOrName: string | import("prosemirror-model").NodeType<any>, attrs?: {} | undefined) => import("@tiptap/core").Command;
wrapInList: (typeOrName: string | import("prosemirror-model").NodeType<any>, attrs?: {} | undefined) => import("..").Command;
}>;
declare module '@tiptap/core' {
interface AllExtensions {
Commands: typeof Commands;
declare global {
namespace Tiptap {
interface AllExtensions {
Commands: typeof Commands;
}
}
}
import { Extension } from '../Extension';
export declare const Editable: Extension<unknown, unknown>;
declare module '@tiptap/core' {
interface AllExtensions {
Editable: typeof Editable;
declare global {
namespace Tiptap {
interface AllExtensions {
Editable: typeof Editable;
}
}
}
import { Extension } from '../Extension';
export declare const FocusEvents: Extension<unknown, unknown>;
declare module '@tiptap/core' {
interface AllExtensions {
FocusEvents: typeof FocusEvents;
declare global {
namespace Tiptap {
interface AllExtensions {
FocusEvents: typeof FocusEvents;
}
}
}
import { Extension } from '../Extension';
export declare const Keymap: Extension<unknown, unknown>;
declare module '@tiptap/core' {
interface AllExtensions {
Keymap: typeof Keymap;
declare global {
namespace Tiptap {
interface AllExtensions {
Keymap: typeof Keymap;
}
}
}

@@ -1,2 +0,2 @@

export { Editor, Command, CommandsSpec, AllExtensions, } from './Editor';
export { Editor, Command, CommandsSpec, } from './Editor';
export * from './Extension';

@@ -3,0 +3,0 @@ export * from './Node';

{
"name": "@tiptap/core",
"version": "2.0.0-alpha.1",
"version": "2.0.0-alpha.2",
"homepage": "https://tiptap.dev",
"keywords": [
"tiptap",
"headless",
"wysiwyg",
"text editor"
],
"license": "MIT",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/ueberdosis"
},
"main": "dist/tiptap-core.cjs.js",

@@ -26,3 +38,3 @@ "umd": "dist/tiptap-core.umd.js",

},
"gitHead": "3a6479eecaa7b66389b1b6b82af56aa10b8a1190"
"gitHead": "0cee9fb3b714db02ef0434215676e5badb467e83"
}
import { EditorState, Transaction } from 'prosemirror-state'
import {
Editor,
CommandSpec,
SingleCommands,
ChainedCommands,
Editor,
CommandSpec,
} from './Editor'

@@ -8,0 +8,0 @@ import getAllMethodNames from './utils/getAllMethodNames'

@@ -41,10 +41,14 @@ import { EditorState, Plugin, Transaction } from 'prosemirror-state'

export interface AllExtensions {}
declare global {
namespace Tiptap {
export interface AllExtensions {}
}
}
export type UnfilteredCommands = {
[Item in keyof AllExtensions]: AllExtensions[Item] extends Extension<any, infer ExtensionCommands>
type UnfilteredCommands = {
[Item in keyof Tiptap.AllExtensions]: Tiptap.AllExtensions[Item] extends Extension<any, infer ExtensionCommands>
? ExtensionCommands
: AllExtensions[Item] extends Node<any, infer NodeCommands>
: Tiptap.AllExtensions[Item] extends Node<any, infer NodeCommands>
? NodeCommands
: AllExtensions[Item] extends Mark<any, infer MarkCommands>
: Tiptap.AllExtensions[Item] extends Mark<any, infer MarkCommands>
? MarkCommands

@@ -51,0 +55,0 @@ : never

@@ -150,6 +150,8 @@ import { Extension } from '../Extension'

declare module '@tiptap/core' {
interface AllExtensions {
Commands: typeof Commands,
declare global {
namespace Tiptap {
interface AllExtensions {
Commands: typeof Commands,
}
}
}

@@ -17,6 +17,8 @@ import { Plugin, PluginKey } from 'prosemirror-state'

declare module '@tiptap/core' {
interface AllExtensions {
Editable: typeof Editable,
declare global {
namespace Tiptap {
interface AllExtensions {
Editable: typeof Editable,
}
}
}

@@ -39,6 +39,8 @@ import { Plugin, PluginKey } from 'prosemirror-state'

declare module '@tiptap/core' {
interface AllExtensions {
FocusEvents: typeof FocusEvents,
declare global {
namespace Tiptap {
interface AllExtensions {
FocusEvents: typeof FocusEvents,
}
}
}

@@ -48,6 +48,8 @@ import {

declare module '@tiptap/core' {
interface AllExtensions {
Keymap: typeof Keymap,
declare global {
namespace Tiptap {
interface AllExtensions {
Keymap: typeof Keymap,
}
}
}

@@ -5,3 +5,2 @@ export {

CommandsSpec,
AllExtensions,
} from './Editor'

@@ -8,0 +7,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 not supported yet

Sorry, the diff of this file is not supported yet

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