-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
The example has commitJson used here:
const newCommits = await getDocumentCommitsSince(commitJson.version) // TODO: Implement
before it's declared, here:
const {docJson, commitJson} = applyCommitJSON(version, schema, doc, newCommits, newCommitJson)
import { applyCommitJSON } from "@stepwisehq/prosemirror-collab-commit/apply-commit"
const newCommitJson = await getCommitsFromClient() // TODO: Implement
const version = await getDocumentVersion() // TODO: Implement
const doc = await getDocument() // TODO: Implement
const newCommits = await getDocumentCommitsSince(commitJson.version) // TODO: Implement
const schemaSpec = await getSchemaSpec() // TODO: Implement
const schema = new Schema(schemaSpec)
const {docJson, commitJson} = applyCommitJSON(version, schema, doc, newCommits, newCommitJson)
await saveDocument(docJson) // TODO: Implement
await broadcastCommit(commitJson) // TODO: ImplementReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels