@tiptap/core
Advanced tools
Comparing version 2.0.0-alpha.5 to 2.0.0-alpha.6
@@ -6,2 +6,10 @@ # Change Log | ||
# [2.0.0-alpha.6](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/core@2.0.0-alpha.5...@tiptap/core@2.0.0-alpha.6) (2020-11-19) | ||
**Note:** Version bump only for package @tiptap/core | ||
# [2.0.0-alpha.5](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/core@2.0.0-alpha.4...@tiptap/core@2.0.0-alpha.5) (2020-11-18) | ||
@@ -8,0 +16,0 @@ |
@@ -60,2 +60,3 @@ import { Plugin } from 'prosemirror-state'; | ||
#private; | ||
type: string; | ||
config: Required<ExtensionConfig>; | ||
@@ -62,0 +63,0 @@ options: Options; |
@@ -101,2 +101,3 @@ import { DOMOutputSpec, MarkSpec, Mark as ProseMirrorMark, MarkType } from 'prosemirror-model'; | ||
#private; | ||
type: string; | ||
config: Required<MarkConfig>; | ||
@@ -103,0 +104,0 @@ options: Options; |
@@ -149,2 +149,3 @@ import { DOMOutputSpec, NodeSpec, Node as ProseMirrorNode, NodeType } from 'prosemirror-model'; | ||
#private; | ||
type: string; | ||
config: Required<NodeConfig>; | ||
@@ -151,0 +152,0 @@ options: Options; |
{ | ||
"name": "@tiptap/core", | ||
"version": "2.0.0-alpha.5", | ||
"version": "2.0.0-alpha.6", | ||
"homepage": "https://tiptap.dev", | ||
@@ -38,3 +38,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "276118e48eef313fb435088dee3dc58b91363109" | ||
"gitHead": "c460fe130b4ed9d6f4fb3b8ab678c0e808301d6c" | ||
} |
@@ -68,2 +68,4 @@ import { Plugin } from 'prosemirror-state' | ||
export class Extension<Options = any, Commands = any> { | ||
type = 'extension' | ||
config: Required<ExtensionConfig> = { | ||
@@ -70,0 +72,0 @@ name: 'extension', |
@@ -114,2 +114,4 @@ import { | ||
export class Mark<Options = any, Commands = {}> { | ||
type = 'mark' | ||
config: Required<MarkConfig> = { | ||
@@ -116,0 +118,0 @@ name: 'mark', |
@@ -158,2 +158,4 @@ import { | ||
export class Node<Options = any, Commands = {}> { | ||
type = 'node' | ||
config: Required<NodeConfig> = { | ||
@@ -160,0 +162,0 @@ name: 'node', |
@@ -7,5 +7,5 @@ import { Extensions } from '../types' | ||
export default function splitExtensions(extensions: Extensions) { | ||
const baseExtensions = extensions.filter(extension => extension instanceof Extension) as Extension[] | ||
const nodeExtensions = extensions.filter(extension => extension instanceof Node) as Node[] | ||
const markExtensions = extensions.filter(extension => extension instanceof Mark) as Mark[] | ||
const baseExtensions = extensions.filter(extension => extension.type === 'extension') as Extension[] | ||
const nodeExtensions = extensions.filter(extension => extension.type === 'node') as Node[] | ||
const markExtensions = extensions.filter(extension => extension.type === 'mark') as Mark[] | ||
@@ -12,0 +12,0 @@ return { |
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
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1641420
11055