@magic-marker/prosemirror-suggest-changes 0.3.1 → 0.3.3-wrap-unwrap.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/commands.d.ts +3 -1
- package/dist/commands.js +14 -2
- package/dist/contentBetween.d.ts +2 -0
- package/dist/contentBetween.js +33 -0
- package/dist/features/wrapUnwrap/__tests__/blockquoteUnwrapAllNodes.data.d.ts +38 -0
- package/dist/features/wrapUnwrap/__tests__/blockquoteUnwrapAllNodes.playwright.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/__tests__/blockquoteUnwrapAllNodes.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/__tests__/blockquoteUnwrapOneNode.data.d.ts +45 -0
- package/dist/features/wrapUnwrap/__tests__/blockquoteUnwrapOneNode.playwright.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/__tests__/blockquoteUnwrapOneNode.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/__tests__/blockquoteUnwrapSingleNode.data.d.ts +38 -0
- package/dist/features/wrapUnwrap/__tests__/blockquoteUnwrapSingleNode.playwright.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/__tests__/blockquoteUnwrapSingleNode.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/__tests__/blockquoteWrapAllNodes.data.d.ts +38 -0
- package/dist/features/wrapUnwrap/__tests__/blockquoteWrapAllNodes.playwright.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/__tests__/blockquoteWrapAllNodes.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/__tests__/blockquoteWrapSingleNode.data.d.ts +38 -0
- package/dist/features/wrapUnwrap/__tests__/blockquoteWrapSingleNode.playwright.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/__tests__/blockquoteWrapSingleNode.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/__tests__/listItemLiftLast.data.d.ts +54 -0
- package/dist/features/wrapUnwrap/__tests__/listItemLiftLast.playwright.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/__tests__/listItemLiftLast.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/__tests__/listItemLiftMiddle.data.d.ts +48 -0
- package/dist/features/wrapUnwrap/__tests__/listItemLiftMiddle.playwright.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/__tests__/listItemLiftMiddle.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/__tests__/listItemLiftMultipleToTheTop.data.d.ts +74 -0
- package/dist/features/wrapUnwrap/__tests__/listItemLiftMultipleToTheTop.playwright.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/__tests__/listItemLiftMultipleToTheTop.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/__tests__/listItemLiftNestedOnce.data.d.ts +71 -0
- package/dist/features/wrapUnwrap/__tests__/listItemLiftNestedOnce.playwright.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/__tests__/listItemLiftNestedOnce.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/__tests__/listItemLiftTop.data.d.ts +54 -0
- package/dist/features/wrapUnwrap/__tests__/listItemLiftTop.playwright.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/__tests__/listItemLiftTop.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/__tests__/listItemSinkMultiple.data.d.ts +181 -0
- package/dist/features/wrapUnwrap/__tests__/listItemSinkMultiple.page.d.ts +30 -0
- package/dist/features/wrapUnwrap/__tests__/listItemSinkMultiple.playwright.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/__tests__/listItemSinkMultiple.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/__tests__/listItemSinkOneOnce.data.d.ts +51 -0
- package/dist/features/wrapUnwrap/__tests__/listItemSinkOneOnce.playwright.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/__tests__/listItemSinkOneOnce.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/__tests__/listItemsLiftMixedLevels.data.d.ts +74 -0
- package/dist/features/wrapUnwrap/__tests__/listItemsLiftMixedLevels.playwright.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/__tests__/listItemsLiftMixedLevels.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/__tests__/nestedListItemLiftToOuter.data.d.ts +71 -0
- package/dist/features/wrapUnwrap/__tests__/nestedListItemLiftToOuter.playwright.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/__tests__/nestedListItemLiftToOuter.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/__tests__/nestedListItemsLiftMultipleLevels.data.d.ts +114 -0
- package/dist/features/wrapUnwrap/__tests__/nestedListItemsLiftMultipleLevels.playwright.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/__tests__/nestedListItemsLiftMultipleLevels.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/__tests__/testUtils.d.ts +5 -0
- package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteLiftMultipleNodesToTheTop.data.d.ts +44 -0
- package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteLiftMultipleNodesToTheTop.playwright.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteLiftMultipleNodesToTheTop.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteLiftMultipleNodesUp.data.d.ts +38 -0
- package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteLiftMultipleNodesUp.playwright.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteLiftMultipleNodesUp.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteLiftOneNodeFromMiddle.data.d.ts +46 -0
- package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteLiftOneNodeFromMiddle.playwright.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteLiftOneNodeFromMiddle.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteLiftOneNodeToTheTop.data.d.ts +57 -0
- package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteLiftOneNodeToTheTop.playwright.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteLiftOneNodeToTheTop.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteLiftOneNodeUp.data.d.ts +45 -0
- package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteLiftOneNodeUp.playwright.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteLiftOneNodeUp.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteWrap.data.d.ts +44 -0
- package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteWrap.playwright.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteWrap.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteWrapMultiple.data.d.ts +44 -0
- package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteWrapMultiple.playwright.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteWrapMultiple.test.d.ts +1 -0
- package/dist/features/wrapUnwrap/addStructureMark.d.ts +41 -0
- package/dist/features/wrapUnwrap/addStructureMark.js +15 -0
- package/dist/features/wrapUnwrap/findMatchingNodeSides.d.ts +15 -0
- package/dist/features/wrapUnwrap/findMatchingNodeSides.js +133 -0
- package/dist/features/wrapUnwrap/handleStructureStep.d.ts +4 -0
- package/dist/features/wrapUnwrap/handleStructureStep.js +174 -0
- package/dist/features/wrapUnwrap/revertStructureSuggestion.d.ts +44 -0
- package/dist/features/wrapUnwrap/revertStructureSuggestion.js +374 -0
- package/dist/generateId.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/rebaseStep.d.ts +9 -0
- package/dist/rebaseStep.js +11 -0
- package/dist/replaceAroundStep.js +6 -1
- package/dist/replaceStep.js +5 -0
- package/dist/schema.d.ts +2 -1
- package/dist/schema.js +37 -1
- package/dist/testing/testBuilders.d.ts +1 -2
- package/dist/utils.d.ts +1 -0
- package/dist/utils.js +6 -2
- package/package.json +1 -1
- package/src/features/wrapUnwrap/README.md +198 -0
|
@@ -0,0 +1,181 @@
|
|
|
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 finalDocWithMarksJSON: {
|
|
17
|
+
type: string;
|
|
18
|
+
content: {
|
|
19
|
+
type: string;
|
|
20
|
+
attrs: {
|
|
21
|
+
order: number;
|
|
22
|
+
};
|
|
23
|
+
content: ({
|
|
24
|
+
type: string;
|
|
25
|
+
content: {
|
|
26
|
+
type: string;
|
|
27
|
+
content: {
|
|
28
|
+
type: string;
|
|
29
|
+
text: string;
|
|
30
|
+
}[];
|
|
31
|
+
}[];
|
|
32
|
+
marks?: never;
|
|
33
|
+
} | {
|
|
34
|
+
type: string;
|
|
35
|
+
content: ({
|
|
36
|
+
type: string;
|
|
37
|
+
content: {
|
|
38
|
+
type: string;
|
|
39
|
+
text: string;
|
|
40
|
+
}[];
|
|
41
|
+
attrs?: never;
|
|
42
|
+
marks?: never;
|
|
43
|
+
} | {
|
|
44
|
+
type: string;
|
|
45
|
+
attrs: {
|
|
46
|
+
order: number;
|
|
47
|
+
};
|
|
48
|
+
content: {
|
|
49
|
+
type: string;
|
|
50
|
+
content: {
|
|
51
|
+
type: string;
|
|
52
|
+
content: {
|
|
53
|
+
type: string;
|
|
54
|
+
text: string;
|
|
55
|
+
}[];
|
|
56
|
+
}[];
|
|
57
|
+
}[];
|
|
58
|
+
marks: ({
|
|
59
|
+
type: string;
|
|
60
|
+
attrs: {
|
|
61
|
+
id: number;
|
|
62
|
+
data: {
|
|
63
|
+
value: string;
|
|
64
|
+
position: string;
|
|
65
|
+
fromOffset: number;
|
|
66
|
+
type: string;
|
|
67
|
+
slice: {
|
|
68
|
+
content: {
|
|
69
|
+
type: string;
|
|
70
|
+
}[];
|
|
71
|
+
openStart: number;
|
|
72
|
+
};
|
|
73
|
+
insert: number;
|
|
74
|
+
structure: boolean;
|
|
75
|
+
toOffset?: never;
|
|
76
|
+
gapFromOffset?: never;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
} | {
|
|
80
|
+
type: string;
|
|
81
|
+
attrs: {
|
|
82
|
+
id: number;
|
|
83
|
+
data: {
|
|
84
|
+
value: string;
|
|
85
|
+
position: string;
|
|
86
|
+
toOffset: number;
|
|
87
|
+
type: string;
|
|
88
|
+
slice: {
|
|
89
|
+
content: {
|
|
90
|
+
type: string;
|
|
91
|
+
}[];
|
|
92
|
+
openStart: number;
|
|
93
|
+
};
|
|
94
|
+
insert: number;
|
|
95
|
+
structure: boolean;
|
|
96
|
+
fromOffset?: never;
|
|
97
|
+
gapFromOffset?: never;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
} | {
|
|
101
|
+
type: string;
|
|
102
|
+
attrs: {
|
|
103
|
+
id: number;
|
|
104
|
+
data: {
|
|
105
|
+
value: string;
|
|
106
|
+
position: string;
|
|
107
|
+
gapFromOffset: number;
|
|
108
|
+
type: string;
|
|
109
|
+
slice: {
|
|
110
|
+
content: {
|
|
111
|
+
type: string;
|
|
112
|
+
}[];
|
|
113
|
+
openStart: number;
|
|
114
|
+
};
|
|
115
|
+
insert: number;
|
|
116
|
+
structure: boolean;
|
|
117
|
+
fromOffset?: never;
|
|
118
|
+
toOffset?: never;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
})[];
|
|
122
|
+
})[];
|
|
123
|
+
marks: {
|
|
124
|
+
type: string;
|
|
125
|
+
attrs: {
|
|
126
|
+
id: number;
|
|
127
|
+
data: {
|
|
128
|
+
value: string;
|
|
129
|
+
position: string;
|
|
130
|
+
gapToOffset: number;
|
|
131
|
+
type: string;
|
|
132
|
+
slice: {
|
|
133
|
+
content: {
|
|
134
|
+
type: string;
|
|
135
|
+
}[];
|
|
136
|
+
openStart: number;
|
|
137
|
+
};
|
|
138
|
+
insert: number;
|
|
139
|
+
structure: boolean;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
}[];
|
|
143
|
+
})[];
|
|
144
|
+
}[];
|
|
145
|
+
};
|
|
146
|
+
export declare const steps: {
|
|
147
|
+
stepType: string;
|
|
148
|
+
from: number;
|
|
149
|
+
to: number;
|
|
150
|
+
gapFrom: number;
|
|
151
|
+
gapTo: number;
|
|
152
|
+
insert: number;
|
|
153
|
+
slice: {
|
|
154
|
+
content: {
|
|
155
|
+
type: string;
|
|
156
|
+
content: {
|
|
157
|
+
type: string;
|
|
158
|
+
attrs: {
|
|
159
|
+
order: number;
|
|
160
|
+
};
|
|
161
|
+
}[];
|
|
162
|
+
}[];
|
|
163
|
+
openStart: number;
|
|
164
|
+
};
|
|
165
|
+
structure: boolean;
|
|
166
|
+
}[];
|
|
167
|
+
export declare const inverseSteps: {
|
|
168
|
+
stepType: string;
|
|
169
|
+
from: number;
|
|
170
|
+
to: number;
|
|
171
|
+
gapFrom: number;
|
|
172
|
+
gapTo: number;
|
|
173
|
+
insert: number;
|
|
174
|
+
slice: {
|
|
175
|
+
content: {
|
|
176
|
+
type: string;
|
|
177
|
+
}[];
|
|
178
|
+
openStart: number;
|
|
179
|
+
};
|
|
180
|
+
structure: boolean;
|
|
181
|
+
}[];
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type Page } from "@playwright/test";
|
|
2
|
+
import { type SuggestionId } from "../../../generateId.js";
|
|
3
|
+
export declare class ListItemSinkMultiplePage {
|
|
4
|
+
readonly page: Page;
|
|
5
|
+
constructor(page: Page);
|
|
6
|
+
setup(): Promise<void>;
|
|
7
|
+
/**
|
|
8
|
+
* select Item 2.1, Item 2.2, Item 2.3 and press Tab to sink them once, creating a nested list
|
|
9
|
+
*/
|
|
10
|
+
sinkNestedList(): Promise<void>;
|
|
11
|
+
/**
|
|
12
|
+
* Go to the beginning of Item 2.3, join it with previous sibling Item 2.2 using Backspace
|
|
13
|
+
* It will produce a single list item with two paragraphs inside
|
|
14
|
+
*
|
|
15
|
+
* @param joinParagraphs - if true, join the paragraphs of the joined list item with a second Backspace press
|
|
16
|
+
*/
|
|
17
|
+
joinListItemsInNestedList({ joinParagraphs, }: {
|
|
18
|
+
joinParagraphs?: boolean;
|
|
19
|
+
}): Promise<void>;
|
|
20
|
+
/**
|
|
21
|
+
* Go to Item 2.2 in a nested list and press Shift+Tab
|
|
22
|
+
* This will split the outer list into two lists
|
|
23
|
+
*/
|
|
24
|
+
liftMiddleItemOfNestedList(): Promise<void>;
|
|
25
|
+
revertSuggestion(suggestionId: SuggestionId, opts?: {
|
|
26
|
+
structure: boolean;
|
|
27
|
+
}): Promise<void>;
|
|
28
|
+
getCurrentDocJSON(): Promise<unknown>;
|
|
29
|
+
getInitialDocJSON(): object;
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
content: {
|
|
27
|
+
type: string;
|
|
28
|
+
attrs: {
|
|
29
|
+
order: number;
|
|
30
|
+
};
|
|
31
|
+
}[];
|
|
32
|
+
}[];
|
|
33
|
+
openStart: number;
|
|
34
|
+
};
|
|
35
|
+
structure: boolean;
|
|
36
|
+
}[];
|
|
37
|
+
export declare const inverseSteps: {
|
|
38
|
+
stepType: string;
|
|
39
|
+
from: number;
|
|
40
|
+
to: number;
|
|
41
|
+
gapFrom: number;
|
|
42
|
+
gapTo: number;
|
|
43
|
+
insert: number;
|
|
44
|
+
slice: {
|
|
45
|
+
content: {
|
|
46
|
+
type: string;
|
|
47
|
+
}[];
|
|
48
|
+
openStart: number;
|
|
49
|
+
};
|
|
50
|
+
structure: boolean;
|
|
51
|
+
}[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
})[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,71 @@
|
|
|
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
|
+
content: {
|
|
27
|
+
type: string;
|
|
28
|
+
attrs: {
|
|
29
|
+
order: number;
|
|
30
|
+
};
|
|
31
|
+
}[];
|
|
32
|
+
}[];
|
|
33
|
+
openStart: number;
|
|
34
|
+
};
|
|
35
|
+
structure: boolean;
|
|
36
|
+
}[];
|
|
37
|
+
export declare const inverseSteps: ({
|
|
38
|
+
stepType: string;
|
|
39
|
+
from: number;
|
|
40
|
+
to: number;
|
|
41
|
+
gapFrom: number;
|
|
42
|
+
gapTo: number;
|
|
43
|
+
insert: number;
|
|
44
|
+
slice: {
|
|
45
|
+
content: {
|
|
46
|
+
type: string;
|
|
47
|
+
}[];
|
|
48
|
+
openStart: number;
|
|
49
|
+
};
|
|
50
|
+
structure: boolean;
|
|
51
|
+
} | {
|
|
52
|
+
stepType: string;
|
|
53
|
+
from: number;
|
|
54
|
+
to: number;
|
|
55
|
+
gapFrom: number;
|
|
56
|
+
gapTo: number;
|
|
57
|
+
insert: number;
|
|
58
|
+
slice: {
|
|
59
|
+
content: {
|
|
60
|
+
type: string;
|
|
61
|
+
content: {
|
|
62
|
+
type: string;
|
|
63
|
+
attrs: {
|
|
64
|
+
order: number;
|
|
65
|
+
};
|
|
66
|
+
}[];
|
|
67
|
+
}[];
|
|
68
|
+
openStart: number;
|
|
69
|
+
};
|
|
70
|
+
structure: boolean;
|
|
71
|
+
})[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,114 @@
|
|
|
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
|
+
content: {
|
|
27
|
+
type: string;
|
|
28
|
+
attrs: {
|
|
29
|
+
order: number;
|
|
30
|
+
};
|
|
31
|
+
}[];
|
|
32
|
+
}[];
|
|
33
|
+
openStart: number;
|
|
34
|
+
};
|
|
35
|
+
structure: boolean;
|
|
36
|
+
} | {
|
|
37
|
+
stepType: string;
|
|
38
|
+
from: number;
|
|
39
|
+
to: number;
|
|
40
|
+
gapFrom: number;
|
|
41
|
+
gapTo: number;
|
|
42
|
+
insert: number;
|
|
43
|
+
slice: {
|
|
44
|
+
content: {
|
|
45
|
+
type: string;
|
|
46
|
+
}[];
|
|
47
|
+
openStart: number;
|
|
48
|
+
};
|
|
49
|
+
structure: boolean;
|
|
50
|
+
} | {
|
|
51
|
+
stepType: string;
|
|
52
|
+
from: number;
|
|
53
|
+
to: number;
|
|
54
|
+
structure: boolean;
|
|
55
|
+
gapFrom?: never;
|
|
56
|
+
gapTo?: never;
|
|
57
|
+
insert?: never;
|
|
58
|
+
slice?: never;
|
|
59
|
+
})[];
|
|
60
|
+
export declare const inverseSteps: ({
|
|
61
|
+
stepType: string;
|
|
62
|
+
from: number;
|
|
63
|
+
to: number;
|
|
64
|
+
gapFrom: number;
|
|
65
|
+
gapTo: number;
|
|
66
|
+
insert: number;
|
|
67
|
+
slice: {
|
|
68
|
+
content: {
|
|
69
|
+
type: string;
|
|
70
|
+
}[];
|
|
71
|
+
openStart: number;
|
|
72
|
+
openEnd?: never;
|
|
73
|
+
};
|
|
74
|
+
structure: boolean;
|
|
75
|
+
} | {
|
|
76
|
+
stepType: string;
|
|
77
|
+
from: number;
|
|
78
|
+
to: number;
|
|
79
|
+
gapFrom: number;
|
|
80
|
+
gapTo: number;
|
|
81
|
+
insert: number;
|
|
82
|
+
slice: {
|
|
83
|
+
content: {
|
|
84
|
+
type: string;
|
|
85
|
+
content: {
|
|
86
|
+
type: string;
|
|
87
|
+
attrs: {
|
|
88
|
+
order: number;
|
|
89
|
+
};
|
|
90
|
+
}[];
|
|
91
|
+
}[];
|
|
92
|
+
openStart: number;
|
|
93
|
+
openEnd?: never;
|
|
94
|
+
};
|
|
95
|
+
structure: boolean;
|
|
96
|
+
} | {
|
|
97
|
+
stepType: string;
|
|
98
|
+
from: number;
|
|
99
|
+
to: number;
|
|
100
|
+
slice: {
|
|
101
|
+
content: {
|
|
102
|
+
type: string;
|
|
103
|
+
attrs: {
|
|
104
|
+
order: number;
|
|
105
|
+
};
|
|
106
|
+
}[];
|
|
107
|
+
openStart: number;
|
|
108
|
+
openEnd: number;
|
|
109
|
+
};
|
|
110
|
+
gapFrom?: never;
|
|
111
|
+
gapTo?: never;
|
|
112
|
+
insert?: never;
|
|
113
|
+
structure?: never;
|
|
114
|
+
})[];
|
package/dist/features/wrapUnwrap/__tests__/nestedListItemsLiftMultipleLevels.playwright.test.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type Node } from "prosemirror-model";
|
|
2
|
+
import { type Command } from "prosemirror-state";
|
|
3
|
+
export declare function assertCommandThrows(doc: Node, command: Command, errorMessage: string): void;
|
|
4
|
+
export declare function assertDocumentChanged(docA: Node, docB: Node, command: Command): void;
|
|
5
|
+
export declare function applySteps(stepsData: object[], logInverseSteps?: boolean): Command;
|
package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteLiftMultipleNodesToTheTop.data.d.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
content: {
|
|
36
|
+
type: string;
|
|
37
|
+
content: {
|
|
38
|
+
type: string;
|
|
39
|
+
}[];
|
|
40
|
+
}[];
|
|
41
|
+
}[];
|
|
42
|
+
};
|
|
43
|
+
structure: boolean;
|
|
44
|
+
}[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteLiftMultipleNodesToTheTop.test.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
}[];
|
package/dist/features/wrapUnwrap/__tests__/tripleBlockquoteLiftMultipleNodesUp.playwright.test.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|