@tiptap/y-tiptap 2.0.0-beta.3 → 2.0.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/dist/y-tiptap.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as Y from 'yjs';
2
2
  import { Item, ContentType, Text, XmlElement, UndoManager } from 'yjs';
3
3
  import { DecorationSet, Decoration } from 'prosemirror-view';
4
- import { Plugin, TextSelection, AllSelection, NodeSelection } from 'prosemirror-state';
4
+ import { PluginKey, Plugin, TextSelection, AllSelection, NodeSelection } from 'prosemirror-state';
5
5
  import 'y-protocols/awareness';
6
6
  import { createMutex } from 'lib0/mutex';
7
7
  import * as PModel from 'prosemirror-model';
@@ -11,7 +11,6 @@ import * as object from 'lib0/object';
11
11
  import * as set from 'lib0/set';
12
12
  import { simpleDiff } from 'lib0/diff';
13
13
  import * as error from 'lib0/error';
14
- import { PluginKey, Plugin as Plugin$1 } from '@tiptap/pm/state';
15
14
  import * as random from 'lib0/random';
16
15
  import * as environment from 'lib0/environment';
17
16
  import * as dom from 'lib0/dom';
@@ -2054,7 +2053,7 @@ const defaultDeleteFilter = (item, protectedNodes) => !(item instanceof Item) ||
2054
2053
  (item.content.type instanceof XmlElement && protectedNodes.has(item.content.type.nodeName))) ||
2055
2054
  item.content.type._length === 0;
2056
2055
 
2057
- const yUndoPlugin = ({ protectedNodes = defaultProtectedNodes, trackedOrigins = [], undoManager = null } = {}) => new Plugin$1({
2056
+ const yUndoPlugin = ({ protectedNodes = defaultProtectedNodes, trackedOrigins = [], undoManager = null } = {}) => new Plugin({
2058
2057
  key: yUndoPluginKey,
2059
2058
  state: {
2060
2059
  init: (initargs, state) => {