@manuscripts/track-changes-plugin 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -3
- package/dist/actions.d.ts +1 -1
- package/dist/index.cjs +1562 -0
- package/dist/index.js +104 -117
- package/dist/track/mergeNode.d.ts +1 -1
- package/dist/track/node-utils.d.ts +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -20,9 +20,11 @@ import { trackChangesPlugin } from '@manuscripts/track-changes-plugin'
|
|
|
20
20
|
|
|
21
21
|
import { schema } from './schema'
|
|
22
22
|
|
|
23
|
-
const plugins = exampleSetup({ schema }).concat(
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
const plugins = exampleSetup({ schema }).concat(
|
|
24
|
+
trackChangesPlugin({
|
|
25
|
+
debug: true,
|
|
26
|
+
})
|
|
27
|
+
)
|
|
26
28
|
const state = EditorState.create({
|
|
27
29
|
schema,
|
|
28
30
|
plugins,
|
package/dist/actions.d.ts
CHANGED
|
@@ -50,4 +50,4 @@ export declare function getAction<K extends keyof TrackChangesActionParams>(tr:
|
|
|
50
50
|
* @param action
|
|
51
51
|
* @param payload
|
|
52
52
|
*/
|
|
53
|
-
export declare function setAction<K extends keyof TrackChangesActionParams>(tr: Transaction, action: K, payload: TrackChangesActionParams[K]): Transaction
|
|
53
|
+
export declare function setAction<K extends keyof TrackChangesActionParams>(tr: Transaction, action: K, payload: TrackChangesActionParams[K]): Transaction;
|