@magic-marker/prosemirror-suggest-changes 0.3.3-wrap-unwrap.4 → 0.3.3-wrap-unwrap.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/dist/features/wrapUnwrap/types.d.ts +6 -5
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -2
- package/package.json +1 -1
|
@@ -16,6 +16,11 @@ interface NodeParent {
|
|
|
16
16
|
childSiblingIds: [string | null, string | null];
|
|
17
17
|
childIndex: number;
|
|
18
18
|
}
|
|
19
|
+
export interface StructureMarkAttrs {
|
|
20
|
+
data: {
|
|
21
|
+
op: Op;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
19
24
|
export interface DocParent extends Omit<NodeParent, "nodeId"> {
|
|
20
25
|
nodeId: "__doc__";
|
|
21
26
|
nodeType: "__doc__";
|
|
@@ -35,10 +40,6 @@ export type MaterializedPaths = Map<string, {
|
|
|
35
40
|
nodeType: string;
|
|
36
41
|
}>;
|
|
37
42
|
export declare function guardDocParent(parent: Parent | undefined): parent is DocParent;
|
|
38
|
-
export declare function guardStructureMarkAttrs(attrs: Attrs): attrs is
|
|
39
|
-
data: {
|
|
40
|
-
op: Op;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
+
export declare function guardStructureMarkAttrs(attrs: Attrs): attrs is StructureMarkAttrs;
|
|
43
44
|
export declare function guardDocWithChildren(nodeWithChildren: NodeWithChildren | undefined): nodeWithChildren is DocWithChildren;
|
|
44
45
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ export { selectSuggestion, revertSuggestion, revertSuggestions, applySuggestion,
|
|
|
3
3
|
export { suggestChanges, suggestChangesKey, isSuggestChangesEnabled, } from "./plugin.js";
|
|
4
4
|
export { withSuggestChanges, transformToSuggestionTransaction, } from "./withSuggestChanges.js";
|
|
5
5
|
export { ensureSelection as experimental_ensureSelection, ensureSelectionKey as experimental_ensureSelectionKey, isEnsureSelectionEnabled as experimental_isEnsureSelectionEnabled, } from "./ensureSelectionPlugin.js";
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
6
|
+
export { guardStructureMarkAttrs } from "./features/wrapUnwrap/types.js";
|
|
7
|
+
export type { Op as StructureOp } from "./features/wrapUnwrap/types.js";
|
package/dist/index.js
CHANGED
|
@@ -3,5 +3,4 @@ export { selectSuggestion, revertSuggestion, revertSuggestions, applySuggestion,
|
|
|
3
3
|
export { suggestChanges, suggestChangesKey, isSuggestChangesEnabled } from "./plugin.js";
|
|
4
4
|
export { withSuggestChanges, transformToSuggestionTransaction } from "./withSuggestChanges.js";
|
|
5
5
|
export { ensureSelection as experimental_ensureSelection, ensureSelectionKey as experimental_ensureSelectionKey, isEnsureSelectionEnabled as experimental_isEnsureSelectionEnabled } from "./ensureSelectionPlugin.js";
|
|
6
|
-
export {
|
|
7
|
-
export { structureChangesPlugin as experimental_structureChangesPlugin, structureChangesKey as experimental_structureChangesKey } from "./features/wrapUnwrap/structureChangesPlugin.js";
|
|
6
|
+
export { guardStructureMarkAttrs } from "./features/wrapUnwrap/types.js";
|