@tiptap/core
Advanced tools
Comparing version 2.0.0-beta.24 to 2.0.0-beta.25
@@ -6,2 +6,13 @@ # Change Log | ||
# [2.0.0-beta.25](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/core@2.0.0-beta.24...@tiptap/core@2.0.0-beta.25) (2021-04-09) | ||
### Bug Fixes | ||
* fixed type for Content ([39147f5](https://github.com/ueberdosis/tiptap-next/commit/39147f5b02388b68ddea91d40bd2e846597f813b)) | ||
# [2.0.0-beta.24](https://github.com/ueberdosis/tiptap-next/compare/@tiptap/core@2.0.0-beta.23...@tiptap/core@2.0.0-beta.24) (2021-04-08) | ||
@@ -8,0 +19,0 @@ |
import { Schema, Node as ProseMirrorNode } from 'prosemirror-model'; | ||
import { AnyObject } from '../types'; | ||
export declare type Content = string | JSON | null; | ||
import { AnyObject, Content } from '../types'; | ||
export default function createDocument(content: Content, schema: Schema, parseOptions?: AnyObject): ProseMirrorNode; |
import { Schema, Node as ProseMirrorNode, Fragment } from 'prosemirror-model'; | ||
import { AnyObject } from '../types'; | ||
export declare type Content = string | JSON | null; | ||
import { AnyObject, Content } from '../types'; | ||
export declare type CreateNodeFromContentOptions = { | ||
@@ -5,0 +4,0 @@ slice?: boolean; |
@@ -50,3 +50,3 @@ import { Node as ProseMirrorNode, Mark as ProseMirrorMark, ParseOptions } from 'prosemirror-model'; | ||
} | ||
export declare type Content = string | JSON | null; | ||
export declare type Content = string | AnyObject | null; | ||
export declare type CommandProps = { | ||
@@ -53,0 +53,0 @@ editor: Editor; |
{ | ||
"name": "@tiptap/core", | ||
"description": "headless rich text editor", | ||
"version": "2.0.0-beta.24", | ||
"version": "2.0.0-beta.25", | ||
"homepage": "https://tiptap.dev", | ||
@@ -44,3 +44,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "3ef0c3bf8d57cd60e7b5b5f7e003cae335bcfa37" | ||
"gitHead": "99153760d69ee2d4789d431d66cbf6c1da6a106e" | ||
} |
import { Schema, Node as ProseMirrorNode } from 'prosemirror-model' | ||
import { AnyObject } from '../types' | ||
import { AnyObject, Content } from '../types' | ||
import createNodeFromContent from './createNodeFromContent' | ||
export type Content = string | JSON | null | ||
export default function createDocument( | ||
@@ -8,0 +6,0 @@ content: Content, |
@@ -8,6 +8,4 @@ import { | ||
import elementFromString from '../utilities/elementFromString' | ||
import { AnyObject } from '../types' | ||
import { AnyObject, Content } from '../types' | ||
export type Content = string | JSON | null | ||
export type CreateNodeFromContentOptions = { | ||
@@ -14,0 +12,0 @@ slice?: boolean, |
@@ -43,3 +43,3 @@ import { | ||
export type Content = string | JSON | null | ||
export type Content = string | AnyObject | null | ||
@@ -46,0 +46,0 @@ export type CommandProps = { |
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
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
2439597
15916