@remirror/renderer-react
Advanced tools
Comparing version 0.4.2-canary.0 to 0.4.2-canary.1
import { ReactNode } from 'react'; | ||
import { DOMOutputSpec, ExtensionManager, Fragment as ProsemirrorFragment, Mark, MarkExtensionSpec, NodeExtensionSpec, ProsemirrorNode } from '@remirror/core'; | ||
import { AnyExtension, DOMOutputSpec, ExtensionManager, Fragment as ProsemirrorFragment, Mark, MarkExtensionSpec, NodeExtensionSpec, ProsemirrorNode } from '@remirror/core'; | ||
declare type NodeToDOM = NodeExtensionSpec['toDOM']; | ||
@@ -8,3 +8,3 @@ declare type MarkToDOM = MarkExtensionSpec['toDOM']; | ||
*/ | ||
export declare class ReactSerializer { | ||
export declare class ReactSerializer<GExtensions extends AnyExtension[] = AnyExtension[]> { | ||
nodes: Record<string, NodeToDOM>; | ||
@@ -14,3 +14,3 @@ marks: Record<string, MarkToDOM>; | ||
private options; | ||
constructor(nodes: Record<string, NodeToDOM>, marks: Record<string, MarkToDOM>, manager: ExtensionManager); | ||
constructor(nodes: Record<string, NodeToDOM>, marks: Record<string, MarkToDOM>, manager: ExtensionManager<GExtensions>); | ||
/** | ||
@@ -53,3 +53,3 @@ * The main entry method on this class for traversing through a schema tree and creating JSx. | ||
*/ | ||
static fromExtensionManager(manager: ExtensionManager): ReactSerializer; | ||
static fromExtensionManager<GExtensions extends AnyExtension[] = AnyExtension[]>(manager: ExtensionManager<GExtensions>): ReactSerializer<GExtensions>; | ||
/** | ||
@@ -56,0 +56,0 @@ * Pluck nodes from the extension manager |
@@ -12,3 +12,3 @@ { | ||
}, | ||
"version": "0.4.2-canary.0", | ||
"version": "0.4.2-canary.1", | ||
"main": "lib/index.js", | ||
@@ -34,4 +34,4 @@ "module": "lib/dist/renderer-react.esm.js", | ||
"@emotion/core": "^10.0.14", | ||
"@remirror/core": "0.4.2-canary.0", | ||
"@remirror/react-utils": "0.4.2-canary.0" | ||
"@remirror/core": "0.4.2-canary.1", | ||
"@remirror/react-utils": "0.4.2-canary.1" | ||
}, | ||
@@ -45,3 +45,3 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@remirror/core-extensions": "0.4.2-canary.0", | ||
"@remirror/core-extensions": "0.4.2-canary.1", | ||
"prosemirror-model": "^1.7.1" | ||
@@ -54,3 +54,3 @@ }, | ||
"sideEffects": false, | ||
"gitHead": "e6500c65aecbffad1b0f9bb2c0b8d4891ba764d3" | ||
"gitHead": "0330899c87713ed1398df695715d1fed87267462" | ||
} |
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
265744
3592
+ Added@remirror/core@0.4.2-canary.1(transitive)
+ Added@remirror/react-utils@0.4.2-canary.1(transitive)
- Removed@remirror/core@0.4.2-canary.0(transitive)
- Removed@remirror/react-utils@0.4.2-canary.0(transitive)