@magic-marker/prosemirror-suggest-changes 0.2.1-wrap-unwrap.2 → 0.3.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.
Files changed (100) hide show
  1. package/dist/__tests__/playwrightBaseTest.d.ts +6 -0
  2. package/dist/__tests__/playwrightPage.d.ts +15 -0
  3. package/dist/commands.js +1 -10
  4. package/dist/constants.d.ts +1 -0
  5. package/dist/constants.js +1 -0
  6. package/dist/decorations.js +4 -3
  7. package/dist/ensureSelectionPlugin.d.ts +13 -0
  8. package/dist/ensureSelectionPlugin.js +307 -0
  9. package/dist/generateId.js +2 -2
  10. package/dist/index.d.ts +2 -1
  11. package/dist/index.js +2 -1
  12. package/dist/plugin.js +2 -14
  13. package/dist/prependDeletionsWithZWSP.d.ts +2 -0
  14. package/dist/prependDeletionsWithZWSP.js +45 -0
  15. package/dist/replaceAroundStep.js +1 -6
  16. package/dist/replaceStep.js +3 -7
  17. package/dist/schema.d.ts +4 -2
  18. package/dist/schema.js +32 -39
  19. package/dist/testing/testBuilders.d.ts +2 -1
  20. package/dist/utils.d.ts +0 -1
  21. package/dist/utils.js +2 -6
  22. package/dist/withSuggestChanges.js +4 -0
  23. package/package.json +1 -1
  24. package/dist/contentBetween.d.ts +0 -2
  25. package/dist/contentBetween.js +0 -33
  26. package/dist/features/wrapUnwrap/__tests__/blockquoteUnwrapAllNodes.data.d.ts +0 -38
  27. package/dist/features/wrapUnwrap/__tests__/blockquoteUnwrapOneNode.data.d.ts +0 -45
  28. package/dist/features/wrapUnwrap/__tests__/blockquoteUnwrapOneNode.test.d.ts +0 -1
  29. package/dist/features/wrapUnwrap/__tests__/blockquoteUnwrapSingleNode.data.d.ts +0 -38
  30. package/dist/features/wrapUnwrap/__tests__/blockquoteUnwrapSingleNode.playwright.test.d.ts +0 -1
  31. package/dist/features/wrapUnwrap/__tests__/blockquoteUnwrapSingleNode.test.d.ts +0 -1
  32. package/dist/features/wrapUnwrap/__tests__/blockquoteWrapAllNodes.data.d.ts +0 -38
  33. package/dist/features/wrapUnwrap/__tests__/blockquoteWrapAllNodes.playwright.test.d.ts +0 -1
  34. package/dist/features/wrapUnwrap/__tests__/blockquoteWrapAllNodes.test.d.ts +0 -1
  35. package/dist/features/wrapUnwrap/__tests__/blockquoteWrapSingleNode.data.d.ts +0 -38
  36. package/dist/features/wrapUnwrap/__tests__/blockquoteWrapSingleNode.playwright.test.d.ts +0 -1
  37. package/dist/features/wrapUnwrap/__tests__/blockquoteWrapSingleNode.test.d.ts +0 -1
  38. package/dist/features/wrapUnwrap/__tests__/listItemLiftLast.data.d.ts +0 -54
  39. package/dist/features/wrapUnwrap/__tests__/listItemLiftLast.playwright.test.d.ts +0 -1
  40. package/dist/features/wrapUnwrap/__tests__/listItemLiftLast.test.d.ts +0 -1
  41. package/dist/features/wrapUnwrap/__tests__/listItemLiftMiddle.data.d.ts +0 -48
  42. package/dist/features/wrapUnwrap/__tests__/listItemLiftMiddle.playwright.test.d.ts +0 -1
  43. package/dist/features/wrapUnwrap/__tests__/listItemLiftMiddle.test.d.ts +0 -1
  44. package/dist/features/wrapUnwrap/__tests__/listItemLiftMultipleToTheTop.data.d.ts +0 -74
  45. package/dist/features/wrapUnwrap/__tests__/listItemLiftMultipleToTheTop.playwright.test.d.ts +0 -1
  46. package/dist/features/wrapUnwrap/__tests__/listItemLiftMultipleToTheTop.test.d.ts +0 -1
  47. package/dist/features/wrapUnwrap/__tests__/listItemLiftNestedOnce.data.d.ts +0 -71
  48. package/dist/features/wrapUnwrap/__tests__/listItemLiftNestedOnce.playwright.test.d.ts +0 -1
  49. package/dist/features/wrapUnwrap/__tests__/listItemLiftNestedOnce.test.d.ts +0 -1
  50. package/dist/features/wrapUnwrap/__tests__/listItemLiftTop.data.d.ts +0 -54
  51. package/dist/features/wrapUnwrap/__tests__/listItemLiftTop.playwright.test.d.ts +0 -1
  52. package/dist/features/wrapUnwrap/__tests__/listItemLiftTop.test.d.ts +0 -1
  53. package/dist/features/wrapUnwrap/__tests__/listItemSinkMultiple.data.d.ts +0 -221
  54. package/dist/features/wrapUnwrap/__tests__/listItemSinkMultiple.page.d.ts +0 -16
  55. package/dist/features/wrapUnwrap/__tests__/listItemSinkMultiple.playwright.test.d.ts +0 -1
  56. package/dist/features/wrapUnwrap/__tests__/listItemSinkMultiple.test.d.ts +0 -1
  57. package/dist/features/wrapUnwrap/__tests__/listItemSinkOneOnce.data.d.ts +0 -51
  58. package/dist/features/wrapUnwrap/__tests__/listItemSinkOneOnce.playwright.test.d.ts +0 -1
  59. package/dist/features/wrapUnwrap/__tests__/listItemSinkOneOnce.test.d.ts +0 -1
  60. package/dist/features/wrapUnwrap/__tests__/listItemsLiftMixedLevels.data.d.ts +0 -74
  61. package/dist/features/wrapUnwrap/__tests__/listItemsLiftMixedLevels.playwright.test.d.ts +0 -1
  62. package/dist/features/wrapUnwrap/__tests__/listItemsLiftMixedLevels.test.d.ts +0 -1
  63. package/dist/features/wrapUnwrap/__tests__/nestedListItemLiftToOuter.data.d.ts +0 -71
  64. package/dist/features/wrapUnwrap/__tests__/nestedListItemLiftToOuter.playwright.test.d.ts +0 -1
  65. package/dist/features/wrapUnwrap/__tests__/nestedListItemLiftToOuter.test.d.ts +0 -1
  66. package/dist/features/wrapUnwrap/__tests__/nestedListItemsLiftMultipleLevels.data.d.ts +0 -114
  67. package/dist/features/wrapUnwrap/__tests__/nestedListItemsLiftMultipleLevels.playwright.test.d.ts +0 -1
  68. package/dist/features/wrapUnwrap/__tests__/nestedListItemsLiftMultipleLevels.test.d.ts +0 -1
  69. package/dist/features/wrapUnwrap/__tests__/testUtils.d.ts +0 -5
  70. package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteLiftMultipleNodesToTheTop.data.d.ts +0 -44
  71. package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteLiftMultipleNodesToTheTop.playwright.test.d.ts +0 -1
  72. package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteLiftMultipleNodesToTheTop.test.d.ts +0 -1
  73. package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteLiftMultipleNodesUp.data.d.ts +0 -38
  74. package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteLiftMultipleNodesUp.playwright.test.d.ts +0 -1
  75. package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteLiftMultipleNodesUp.test.d.ts +0 -1
  76. package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteLiftOneNodeFromMiddle.data.d.ts +0 -46
  77. package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteLiftOneNodeFromMiddle.playwright.test.d.ts +0 -1
  78. package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteLiftOneNodeFromMiddle.test.d.ts +0 -1
  79. package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteLiftOneNodeToTheTop.data.d.ts +0 -57
  80. package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteLiftOneNodeToTheTop.playwright.test.d.ts +0 -1
  81. package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteLiftOneNodeToTheTop.test.d.ts +0 -1
  82. package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteLiftOneNodeUp.data.d.ts +0 -45
  83. package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteLiftOneNodeUp.playwright.test.d.ts +0 -1
  84. package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteLiftOneNodeUp.test.d.ts +0 -1
  85. package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteWrap.data.d.ts +0 -44
  86. package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteWrap.playwright.test.d.ts +0 -1
  87. package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteWrap.test.d.ts +0 -1
  88. package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteWrapMultiple.data.d.ts +0 -44
  89. package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteWrapMultiple.playwright.test.d.ts +0 -1
  90. package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteWrapMultiple.test.d.ts +0 -1
  91. package/dist/features/wrapUnwrap/handleStructureStep.d.ts +0 -4
  92. package/dist/features/wrapUnwrap/handleStructureStep.js +0 -630
  93. package/dist/features/wrapUnwrap/revertStructureSuggestion.d.ts +0 -44
  94. package/dist/features/wrapUnwrap/revertStructureSuggestion.js +0 -368
  95. package/dist/rebaseStep.d.ts +0 -9
  96. package/dist/rebaseStep.js +0 -11
  97. package/src/features/wrapUnwrap/README.md +0 -198
  98. /package/dist/features/{wrapUnwrap/__tests__/blockquoteUnwrapAllNodes.playwright.test.d.ts → hiddenDeletions/__tests__/hiddenDeletionsBehavior.playwright.test.d.ts} +0 -0
  99. /package/dist/features/{wrapUnwrap/__tests__/blockquoteUnwrapAllNodes.test.d.ts → joinBlocks/__tests__/joinBlockBackspace.playwright.test.d.ts} +0 -0
  100. /package/dist/features/{wrapUnwrap/__tests__/blockquoteUnwrapOneNode.playwright.test.d.ts → joinBlocks/__tests__/joinBlockDelete.playwright.test.d.ts} +0 -0
package/dist/schema.js CHANGED
@@ -43,6 +43,35 @@ export const deletion = {
43
43
  }
44
44
  ]
45
45
  };
46
+ export const hiddenDeletion = {
47
+ ...deletion,
48
+ toDOM (mark, inline) {
49
+ const isAnchor = mark.attrs["type"] === "anchor";
50
+ const blockStyle = `display: block;`;
51
+ const inlineStyle = `display: inline;`;
52
+ const hiddenStyle = `display: inline; font-size: 1px; line-height: 0px; color: transparent; letter-spacing: -1px;`;
53
+ return [
54
+ "del",
55
+ {
56
+ "aria-hidden": "true",
57
+ "data-id": JSON.stringify(mark.attrs["id"]),
58
+ "data-inline": String(inline),
59
+ ...!inline && {
60
+ style: blockStyle
61
+ },
62
+ ...inline && isAnchor && {
63
+ style: inlineStyle
64
+ },
65
+ ...inline && !isAnchor && {
66
+ style: hiddenStyle
67
+ },
68
+ "data-type": JSON.stringify(mark.attrs["type"]),
69
+ "data-data": JSON.stringify(mark.attrs["data"])
70
+ },
71
+ 0
72
+ ];
73
+ }
74
+ };
46
75
  export const insertion = {
47
76
  inclusive: false,
48
77
  excludes: "deletion modification insertion",
@@ -137,50 +166,14 @@ export const modification = {
137
166
  }
138
167
  ]
139
168
  };
140
- export const structure = {
141
- inclusive: false,
142
- excludes: "deletion insertion modification",
143
- attrs: {
144
- id: {
145
- validate: suggestionIdValidate
146
- },
147
- data: {
148
- default: null
149
- }
150
- },
151
- toDOM (mark) {
152
- return [
153
- "div",
154
- {
155
- "data-type": "structure",
156
- "data-id": JSON.stringify(mark.attrs["id"]),
157
- "data-data": JSON.stringify(mark.attrs["data"])
158
- },
159
- 0
160
- ];
161
- },
162
- parseDOM: [
163
- {
164
- tag: "div[data-type='structure']",
165
- getAttrs (node) {
166
- if (!node.dataset["id"]) return false;
167
- return {
168
- id: JSON.parse(node.dataset["id"]),
169
- data: JSON.parse(node.dataset["data"] ?? "null")
170
- };
171
- }
172
- }
173
- ]
174
- };
175
169
  /**
176
170
  * Add the deletion, insertion, and modification marks to
177
171
  * the provided MarkSpec map.
178
- */ export function addSuggestionMarks(marks) {
172
+ */ export function addSuggestionMarks(marks, opts) {
179
173
  return {
180
174
  ...marks,
181
- deletion,
175
+ deletion: opts?.experimental_deletions === "hidden" ? hiddenDeletion : deletion,
182
176
  insertion,
183
- modification,
184
- structure
177
+ modification
185
178
  };
186
179
  }
@@ -1,6 +1,6 @@
1
1
  import { Schema, type Node } from "prosemirror-model";
2
2
  import { type MarkBuilder, type NodeBuilder } from "prosemirror-test-builder";
3
- export declare const schema: Schema<"blockquote" | "text" | "doc" | "paragraph" | "image" | "orderedList" | "bulletList" | "listItem" | "horizontal_rule" | "heading" | "code_block" | "hard_break", "insertion" | "deletion" | "modification" | "structure" | "code" | "em" | "link" | "strong" | "difficulty">;
3
+ declare const schema: Schema<"blockquote" | "text" | "doc" | "paragraph" | "image" | "orderedList" | "bulletList" | "listItem" | "horizontal_rule" | "heading" | "code_block" | "hard_break", "insertion" | "deletion" | "modification" | "code" | "em" | "link" | "strong" | "difficulty">;
4
4
  export declare const testBuilders: { [NodeTypeName in keyof (typeof schema)["nodes"]]: NodeBuilder; } & { [MarkTypeName in keyof (typeof schema)["marks"]]: MarkBuilder; } & {
5
5
  schema: typeof schema;
6
6
  };
@@ -8,3 +8,4 @@ export type TaggedNode = Node & {
8
8
  flat: Node;
9
9
  tag: Record<string, number>;
10
10
  };
11
+ export {};
package/dist/utils.d.ts CHANGED
@@ -3,7 +3,6 @@ export interface SuggestionMarks {
3
3
  insertion: MarkType;
4
4
  deletion: MarkType;
5
5
  modification: MarkType;
6
- structure: MarkType;
7
6
  }
8
7
  /**
9
8
  * Get the suggestion mark types from a schema, with proper error handling.
package/dist/utils.js CHANGED
@@ -2,7 +2,7 @@
2
2
  * Get the suggestion mark types from a schema, with proper error handling.
3
3
  * Throws an error if any of the required marks are not found.
4
4
  */ export function getSuggestionMarks(schema) {
5
- const { insertion, deletion, modification, structure } = schema.marks;
5
+ const { insertion, deletion, modification } = schema.marks;
6
6
  if (!insertion) {
7
7
  throw new Error("Failed to find insertion mark in schema. Did you forget to add it?");
8
8
  }
@@ -12,13 +12,9 @@
12
12
  if (!modification) {
13
13
  throw new Error("Failed to find modification mark in schema. Did you forget to add it?");
14
14
  }
15
- if (!structure) {
16
- throw new Error("Failed to find structure mark in schema. Did you forget to add it?");
17
- }
18
15
  return {
19
16
  insertion,
20
17
  deletion,
21
- modification,
22
- structure
18
+ modification
23
19
  };
24
20
  }
@@ -9,6 +9,7 @@ import { suggestReplaceStep } from "./replaceStep.js";
9
9
  import { isSuggestChangesEnabled, suggestChangesKey } from "./plugin.js";
10
10
  import { generateNextNumberId } from "./generateId.js";
11
11
  import { getSuggestionMarks } from "./utils.js";
12
+ import { prependDeletionsWithZWSP } from "./prependDeletionsWithZWSP.js";
12
13
  function getStepHandler(step) {
13
14
  if (step instanceof ReplaceStep) {
14
15
  return suggestReplaceStep;
@@ -109,6 +110,9 @@ function getStepHandler(step) {
109
110
  return function dispatchTransaction(tr) {
110
111
  const ySyncMeta = tr.getMeta("y-sync$") ?? {};
111
112
  const transaction = isSuggestChangesEnabled(this.state) && !tr.getMeta("history$") && !tr.getMeta("collab$") && !ySyncMeta.isUndoRedoOperation && !ySyncMeta.isChangeOrigin && !("skip" in (tr.getMeta(suggestChangesKey) ?? {})) ? transformToSuggestionTransaction(tr, this.state, generateId) : tr;
113
+ if (transaction.docChanged) {
114
+ prependDeletionsWithZWSP(transaction);
115
+ }
112
116
  dispatch.call(this, transaction);
113
117
  };
114
118
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magic-marker/prosemirror-suggest-changes",
3
- "version": "0.2.1-wrap-unwrap.2",
3
+ "version": "0.3.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
@@ -1,2 +0,0 @@
1
- import { type Node } from "prosemirror-model";
2
- export declare function contentBetween(doc: Node, from: number, to: number): boolean;
@@ -1,33 +0,0 @@
1
- /*
2
- This function is used by ProseMirror to verify structure steps
3
- https://github.com/ProseMirror/prosemirror-transform/blob/1.11.0/src/replace_step.ts#L163
4
- https://github.com/ProseMirror/prosemirror-transform/blob/1.11.0/src/replace_step.ts#L110
5
-
6
- If step is a structure step (structure: true),
7
- it means the range it covers does not contain any content
8
- except for closing and opening tokens (see https://prosemirror.net/docs/ref/#transform.ReplaceStep)
9
-
10
- ProseMirror throws an error if this function returns true for a structure step
11
- https://github.com/ProseMirror/prosemirror-transform/blob/1.11.0/src/replace_step.ts#L30
12
-
13
- We can use this function to do the opposite -
14
- if some step has structure: false,
15
- but this function return false,
16
- then we can treat the step as a structure step
17
- */ export function contentBetween(doc, from, to) {
18
- // eslint-disable-next-line prefer-const
19
- let $from = doc.resolve(from), dist = to - from, depth = $from.depth;
20
- while(dist > 0 && depth > 0 && $from.indexAfter(depth) == $from.node(depth).childCount){
21
- depth--;
22
- dist--;
23
- }
24
- if (dist > 0) {
25
- let next = $from.node(depth).maybeChild($from.indexAfter(depth));
26
- while(dist > 0){
27
- if (!next || next.isLeaf) return true;
28
- next = next.firstChild;
29
- dist--;
30
- }
31
- }
32
- return false;
33
- }
@@ -1,38 +0,0 @@
1
- export declare const initialDoc: import("prosemirror-model").Node & {
2
- tag: {
3
- [tag: string]: number;
4
- };
5
- };
6
- export declare const finalDoc: import("prosemirror-model").Node & {
7
- tag: {
8
- [tag: string]: number;
9
- };
10
- };
11
- export declare const finalDocWithMarks: import("prosemirror-model").Node & {
12
- tag: {
13
- [tag: string]: number;
14
- };
15
- };
16
- export declare const steps: {
17
- stepType: string;
18
- from: number;
19
- to: number;
20
- gapFrom: number;
21
- gapTo: number;
22
- insert: number;
23
- structure: boolean;
24
- }[];
25
- export declare const inverseSteps: {
26
- stepType: string;
27
- from: number;
28
- to: number;
29
- gapFrom: number;
30
- gapTo: number;
31
- insert: number;
32
- slice: {
33
- content: {
34
- type: string;
35
- }[];
36
- };
37
- structure: boolean;
38
- }[];
@@ -1,45 +0,0 @@
1
- export declare const initialDoc: import("prosemirror-model").Node & {
2
- tag: {
3
- [tag: string]: number;
4
- };
5
- };
6
- export declare const finalDoc: import("prosemirror-model").Node & {
7
- tag: {
8
- [tag: string]: number;
9
- };
10
- };
11
- export declare const finalDocWithMarks: import("prosemirror-model").Node & {
12
- tag: {
13
- [tag: string]: number;
14
- };
15
- };
16
- export declare const steps: {
17
- stepType: string;
18
- from: number;
19
- to: number;
20
- gapFrom: number;
21
- gapTo: number;
22
- insert: number;
23
- slice: {
24
- content: {
25
- type: string;
26
- }[];
27
- openStart: number;
28
- };
29
- structure: boolean;
30
- }[];
31
- export declare const inverseSteps: {
32
- stepType: string;
33
- from: number;
34
- to: number;
35
- gapFrom: number;
36
- gapTo: number;
37
- insert: number;
38
- slice: {
39
- content: {
40
- type: string;
41
- }[];
42
- openStart: number;
43
- };
44
- structure: boolean;
45
- }[];
@@ -1,38 +0,0 @@
1
- export declare const initialDoc: import("prosemirror-model").Node & {
2
- tag: {
3
- [tag: string]: number;
4
- };
5
- };
6
- export declare const finalDoc: import("prosemirror-model").Node & {
7
- tag: {
8
- [tag: string]: number;
9
- };
10
- };
11
- export declare const finalDocWithMarks: import("prosemirror-model").Node & {
12
- tag: {
13
- [tag: string]: number;
14
- };
15
- };
16
- export declare const steps: {
17
- stepType: string;
18
- from: number;
19
- to: number;
20
- gapFrom: number;
21
- gapTo: number;
22
- insert: number;
23
- structure: boolean;
24
- }[];
25
- export declare const inverseSteps: {
26
- stepType: string;
27
- from: number;
28
- to: number;
29
- gapFrom: number;
30
- gapTo: number;
31
- insert: number;
32
- slice: {
33
- content: {
34
- type: string;
35
- }[];
36
- };
37
- structure: boolean;
38
- }[];
@@ -1,38 +0,0 @@
1
- export declare const initialDoc: import("prosemirror-model").Node & {
2
- tag: {
3
- [tag: string]: number;
4
- };
5
- };
6
- export declare const finalDoc: import("prosemirror-model").Node & {
7
- tag: {
8
- [tag: string]: number;
9
- };
10
- };
11
- export declare const finalDocWithMarks: import("prosemirror-model").Node & {
12
- tag: {
13
- [tag: string]: number;
14
- };
15
- };
16
- export declare const steps: {
17
- stepType: string;
18
- from: number;
19
- to: number;
20
- gapFrom: number;
21
- gapTo: number;
22
- insert: number;
23
- slice: {
24
- content: {
25
- type: string;
26
- }[];
27
- };
28
- structure: boolean;
29
- }[];
30
- export declare const inverseSteps: {
31
- stepType: string;
32
- from: number;
33
- to: number;
34
- gapFrom: number;
35
- gapTo: number;
36
- insert: number;
37
- structure: boolean;
38
- }[];
@@ -1,38 +0,0 @@
1
- export declare const initialDoc: import("prosemirror-model").Node & {
2
- tag: {
3
- [tag: string]: number;
4
- };
5
- };
6
- export declare const finalDoc: import("prosemirror-model").Node & {
7
- tag: {
8
- [tag: string]: number;
9
- };
10
- };
11
- export declare const finalDocWithMarks: import("prosemirror-model").Node & {
12
- tag: {
13
- [tag: string]: number;
14
- };
15
- };
16
- export declare const steps: {
17
- stepType: string;
18
- from: number;
19
- to: number;
20
- gapFrom: number;
21
- gapTo: number;
22
- insert: number;
23
- slice: {
24
- content: {
25
- type: string;
26
- }[];
27
- };
28
- structure: boolean;
29
- }[];
30
- export declare const inverseSteps: {
31
- stepType: string;
32
- from: number;
33
- to: number;
34
- gapFrom: number;
35
- gapTo: number;
36
- insert: number;
37
- structure: boolean;
38
- }[];
@@ -1,54 +0,0 @@
1
- export declare const initialDoc: import("prosemirror-model").Node & {
2
- tag: {
3
- [tag: string]: number;
4
- };
5
- };
6
- export declare const finalDoc: import("prosemirror-model").Node & {
7
- tag: {
8
- [tag: string]: number;
9
- };
10
- };
11
- export declare const finalDocWithMarks: import("prosemirror-model").Node & {
12
- tag: {
13
- [tag: string]: number;
14
- };
15
- };
16
- export declare const steps: {
17
- stepType: string;
18
- from: number;
19
- to: number;
20
- gapFrom: number;
21
- gapTo: number;
22
- insert: number;
23
- slice: {
24
- content: {
25
- type: string;
26
- attrs: {
27
- order: number;
28
- };
29
- }[];
30
- openStart: number;
31
- };
32
- structure: boolean;
33
- }[];
34
- export declare const inverseSteps: {
35
- stepType: string;
36
- from: number;
37
- to: number;
38
- gapFrom: number;
39
- gapTo: number;
40
- insert: number;
41
- slice: {
42
- content: {
43
- type: string;
44
- attrs: {
45
- order: number;
46
- };
47
- content: {
48
- type: string;
49
- }[];
50
- }[];
51
- openStart: number;
52
- };
53
- structure: boolean;
54
- }[];
@@ -1,48 +0,0 @@
1
- export declare const initialDoc: import("prosemirror-model").Node & {
2
- tag: {
3
- [tag: string]: number;
4
- };
5
- };
6
- export declare const finalDoc: import("prosemirror-model").Node & {
7
- tag: {
8
- [tag: string]: number;
9
- };
10
- };
11
- export declare const finalDocWithMarks: import("prosemirror-model").Node & {
12
- tag: {
13
- [tag: string]: number;
14
- };
15
- };
16
- export declare const steps: {
17
- stepType: string;
18
- from: number;
19
- to: number;
20
- gapFrom: number;
21
- gapTo: number;
22
- insert: number;
23
- slice: {
24
- content: {
25
- type: string;
26
- attrs: {
27
- order: number;
28
- };
29
- }[];
30
- openStart: number;
31
- openEnd: number;
32
- };
33
- structure: boolean;
34
- }[];
35
- export declare const inverseSteps: {
36
- stepType: string;
37
- from: number;
38
- to: number;
39
- gapFrom: number;
40
- gapTo: number;
41
- insert: number;
42
- slice: {
43
- content: {
44
- type: string;
45
- }[];
46
- };
47
- structure: boolean;
48
- }[];
@@ -1,74 +0,0 @@
1
- export declare const initialDoc: import("prosemirror-model").Node & {
2
- tag: {
3
- [tag: string]: number;
4
- };
5
- };
6
- export declare const finalDoc: import("prosemirror-model").Node & {
7
- tag: {
8
- [tag: string]: number;
9
- };
10
- };
11
- export declare const finalDocWithMarks: import("prosemirror-model").Node & {
12
- tag: {
13
- [tag: string]: number;
14
- };
15
- };
16
- export declare const steps: ({
17
- stepType: string;
18
- from: number;
19
- to: number;
20
- gapFrom?: never;
21
- gapTo?: never;
22
- insert?: never;
23
- slice?: never;
24
- structure?: never;
25
- } | {
26
- stepType: string;
27
- from: number;
28
- to: number;
29
- gapFrom: number;
30
- gapTo: number;
31
- insert: number;
32
- slice: {
33
- content: {
34
- type: string;
35
- attrs: {
36
- order: number;
37
- };
38
- }[];
39
- openStart: number;
40
- openEnd: number;
41
- };
42
- structure: boolean;
43
- })[];
44
- export declare const inverseSteps: ({
45
- stepType: string;
46
- from: number;
47
- to: number;
48
- slice: {
49
- content: {
50
- type: string;
51
- }[];
52
- openStart: number;
53
- openEnd: number;
54
- };
55
- gapFrom?: never;
56
- gapTo?: never;
57
- insert?: never;
58
- structure?: never;
59
- } | {
60
- stepType: string;
61
- from: number;
62
- to: number;
63
- gapFrom: number;
64
- gapTo: number;
65
- insert: number;
66
- slice: {
67
- content: {
68
- type: string;
69
- }[];
70
- openStart?: never;
71
- openEnd?: never;
72
- };
73
- structure: boolean;
74
- })[];