@remirror/react-ssr
Advanced tools
Comparing version 0.4.2-canary.0 to 0.4.2-canary.1
@@ -1,4 +0,3 @@ | ||
import { EditorStateParams, ManagerParams, PlainObject } from '@remirror/core'; | ||
import { FC } from 'react'; | ||
export interface RemirrorSSRProps extends EditorStateParams, ManagerParams { | ||
import { AnyExtension, EditorStateParams, ManagerParams, PlainObject } from '@remirror/core'; | ||
export interface RemirrorSSRProps<GExtensions extends AnyExtension[] = AnyExtension[]> extends EditorStateParams, ManagerParams<GExtensions> { | ||
/** | ||
@@ -16,3 +15,3 @@ * The attributes to pass into the root div element. | ||
*/ | ||
export declare const RemirrorSSR: FC<RemirrorSSRProps>; | ||
export declare const RemirrorSSR: <GExtensions extends import("@remirror/core").Extension<any, any>[] = import("@remirror/core").Extension<any, any>[]>({ attributes, manager, state, editable, }: RemirrorSSRProps<GExtensions>) => JSX.Element; | ||
//# sourceMappingURL=remirror-ssr.d.ts.map |
@@ -59,6 +59,6 @@ import { EditorSchema, EditorState, Transaction } from '@remirror/core'; | ||
*/ | ||
export declare const createEditorView: (place: Node | { | ||
export declare const createEditorView: <GSchema extends import("prosemirror-model").Schema<string, string> = import("prosemirror-model").Schema<string, string>>(place: Node | { | ||
mount: Node; | ||
} | ((p: Node) => void) | undefined, props: DEP<import("prosemirror-model").Schema<string, string>>, forceEnvironment?: "ssr" | "dom" | undefined) => EditorView<any>; | ||
} | ((p: Node) => void) | undefined, props: DEP<import("prosemirror-model").Schema<string, string>>, forceEnvironment?: "ssr" | "dom" | undefined) => EditorView<GSchema>; | ||
export {}; | ||
//# sourceMappingURL=view-ssr.d.ts.map |
@@ -12,3 +12,3 @@ { | ||
}, | ||
"version": "0.4.2-canary.0", | ||
"version": "0.4.2-canary.1", | ||
"main": "lib/index.js", | ||
@@ -37,4 +37,4 @@ "module": "lib/dist/react-ssr.esm.js", | ||
"@emotion/core": "^10.0.14", | ||
"@remirror/core": "0.4.2-canary.0", | ||
"@remirror/renderer-react": "0.4.2-canary.0", | ||
"@remirror/core": "0.4.2-canary.1", | ||
"@remirror/renderer-react": "0.4.2-canary.1", | ||
"@types/min-document": "^2.19.0", | ||
@@ -57,3 +57,3 @@ "@types/prosemirror-view": "1.9.0", | ||
"sideEffects": false, | ||
"gitHead": "e6500c65aecbffad1b0f9bb2c0b8d4891ba764d3" | ||
"gitHead": "0330899c87713ed1398df695715d1fed87267462" | ||
} |
@@ -81,11 +81,11 @@ import { | ||
*/ | ||
export const createEditorView = ( | ||
export const createEditorView = <GSchema extends EditorSchema = EditorSchema>( | ||
place: Node | ((p: Node) => void) | { mount: Node } | undefined, | ||
props: DirectEditorProps, | ||
forceEnvironment?: RenderEnvironment, | ||
): EditorView => { | ||
): EditorView<GSchema> => { | ||
const Constructor = shouldUseDOMEnvironment(forceEnvironment) | ||
? EditorView | ||
: Cast<typeof EditorView>(EditorViewSSR); | ||
return new Constructor(place, props); | ||
return new Constructor(place, props) as any; | ||
}; |
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
Sorry, the diff of this file is not supported yet
47633
713
+ Added@remirror/core@0.4.2-canary.1(transitive)
+ Added@remirror/react-utils@0.4.2-canary.1(transitive)
+ Added@remirror/renderer-react@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)
- Removed@remirror/renderer-react@0.4.2-canary.0(transitive)