prosemirror-view 1.42.4 → 1.42.6
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/CHANGELOG.md +22 -0
- package/dist/index.cjs +150 -128
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +165 -140
- package/package.json +2 -2
- package/src/capturekeys.ts +31 -35
- package/src/clipboard.ts +10 -7
- package/src/dom.ts +15 -8
- package/src/domchange.ts +15 -6
- package/src/domcoords.ts +52 -53
- package/src/domobserver.ts +6 -7
- package/src/index.ts +4 -4
- package/src/input.ts +7 -7
- package/src/selection.ts +19 -6
- package/src/viewdesc.ts +37 -33
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EditorState, Transaction, Selection, Plugin } from 'prosemirror-state';
|
|
2
|
-
import {
|
|
2
|
+
import { Node, Mark, Slice, ResolvedPos, DOMParser, DOMSerializer } from 'prosemirror-model';
|
|
3
3
|
import { Mapping } from 'prosemirror-transform';
|
|
4
4
|
|
|
5
5
|
type DOMNode = InstanceType<typeof window.Node>;
|
|
@@ -909,4 +909,5 @@ interface DirectEditorProps extends EditorProps {
|
|
|
909
909
|
dispatchTransaction?: (tr: Transaction) => void;
|
|
910
910
|
}
|
|
911
911
|
|
|
912
|
-
export {
|
|
912
|
+
export { Decoration, DecorationSet, EditorView };
|
|
913
|
+
export type { DOMEventMap, DecorationAttrs, DecorationSource, DirectEditorProps, EditorProps, MarkView, MarkViewConstructor, NodeView, NodeViewConstructor, ViewMutationRecord };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EditorState, Transaction, Selection, Plugin } from 'prosemirror-state';
|
|
2
|
-
import {
|
|
2
|
+
import { Node, Mark, Slice, ResolvedPos, DOMParser, DOMSerializer } from 'prosemirror-model';
|
|
3
3
|
import { Mapping } from 'prosemirror-transform';
|
|
4
4
|
|
|
5
5
|
type DOMNode = InstanceType<typeof window.Node>;
|
|
@@ -909,4 +909,5 @@ interface DirectEditorProps extends EditorProps {
|
|
|
909
909
|
dispatchTransaction?: (tr: Transaction) => void;
|
|
910
910
|
}
|
|
911
911
|
|
|
912
|
-
export {
|
|
912
|
+
export { Decoration, DecorationSet, EditorView };
|
|
913
|
+
export type { DOMEventMap, DecorationAttrs, DecorationSource, DirectEditorProps, EditorProps, MarkView, MarkViewConstructor, NodeView, NodeViewConstructor, ViewMutationRecord };
|