@atlaskit/editor-tables 3.0.67 → 3.1.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/CHANGELOG.md +11 -0
- package/package.json +3 -3
- package/report.api.md +0 -210
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/editor-tables
|
|
2
2
|
|
|
3
|
+
## 3.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`bd2c5b0112185`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bd2c5b0112185) -
|
|
8
|
+
Remove stale API report artifacts from published Platform packages.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 3.0.67
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-tables",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "A package that contains common classes and utility functions for editor tables",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
23
|
-
"@atlaskit/platform-feature-flags": "^2.
|
|
23
|
+
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
24
24
|
"@atlaskit/tmp-editor-statsig": "^168.0.0",
|
|
25
25
|
"@babel/runtime": "^7.0.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@atlaskit/editor-common": "^120.
|
|
28
|
+
"@atlaskit/editor-common": "^120.9.0",
|
|
29
29
|
"@atlaskit/editor-test-helpers": "workspace:^",
|
|
30
30
|
"@atlassian/a11y-jest-testing": "^0.17.0"
|
|
31
31
|
},
|
package/report.api.md
DELETED
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
<!-- API Report Version: 2.3 -->
|
|
2
|
-
|
|
3
|
-
## API Report File for "@atlaskit/editor-tables"
|
|
4
|
-
|
|
5
|
-
> Do not edit this file. This report is auto-generated using
|
|
6
|
-
> [API Extractor](https://api-extractor.com/).
|
|
7
|
-
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
8
|
-
|
|
9
|
-
### Table of contents
|
|
10
|
-
|
|
11
|
-
- [Main Entry Types](#main-entry-types)
|
|
12
|
-
- [Peer Dependencies](#peer-dependencies)
|
|
13
|
-
|
|
14
|
-
### Main Entry Types
|
|
15
|
-
|
|
16
|
-
<!--SECTION START: Main Entry Types-->
|
|
17
|
-
|
|
18
|
-
```ts
|
|
19
|
-
import { ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
|
|
20
|
-
import { Mappable } from '@atlaskit/editor-prosemirror/transform';
|
|
21
|
-
import { Mapping } from '@atlaskit/editor-prosemirror/transform';
|
|
22
|
-
import { Node as Node_2 } from '@atlaskit/editor-prosemirror/model';
|
|
23
|
-
import { ResolvedPos } from '@atlaskit/editor-prosemirror/model';
|
|
24
|
-
import { Selection as Selection_2 } from '@atlaskit/editor-prosemirror/state';
|
|
25
|
-
import { SelectionBookmark } from '@atlaskit/editor-prosemirror/state';
|
|
26
|
-
import { Slice } from '@atlaskit/editor-prosemirror/model';
|
|
27
|
-
import { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
28
|
-
|
|
29
|
-
// @public (undocumented)
|
|
30
|
-
type Axis = 'horiz' | 'vert';
|
|
31
|
-
|
|
32
|
-
// @public (undocumented)
|
|
33
|
-
class CellBookmark implements SelectionBookmark {
|
|
34
|
-
constructor(anchor: number, head: number);
|
|
35
|
-
// (undocumented)
|
|
36
|
-
readonly anchor: number;
|
|
37
|
-
// (undocumented)
|
|
38
|
-
readonly head: number;
|
|
39
|
-
// (undocumented)
|
|
40
|
-
map(mapping: Mappable): SelectionBookmark;
|
|
41
|
-
// (undocumented)
|
|
42
|
-
resolve(doc: Node_2): Selection_2;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
// @public (undocumented)
|
|
46
|
-
export class CellSelection extends Selection_2 {
|
|
47
|
-
// (undocumented)
|
|
48
|
-
readonly $anchorCell: ResolvedPos;
|
|
49
|
-
// (undocumented)
|
|
50
|
-
readonly $headCell: ResolvedPos;
|
|
51
|
-
constructor($anchorCell: ResolvedPos, $headCell?: ResolvedPos);
|
|
52
|
-
// (undocumented)
|
|
53
|
-
static colSelection($anchorCell: ResolvedPos, $headCell?: ResolvedPos): CellSelection;
|
|
54
|
-
// (undocumented)
|
|
55
|
-
content(): Slice;
|
|
56
|
-
// (undocumented)
|
|
57
|
-
static create(doc: Node_2, anchorCell: number, headCell?: number): CellSelection;
|
|
58
|
-
// (undocumented)
|
|
59
|
-
eq(other: CellSelection): boolean;
|
|
60
|
-
// (undocumented)
|
|
61
|
-
forEachCell(f: (node: Node_2, pos: number) => void): void;
|
|
62
|
-
// (undocumented)
|
|
63
|
-
static fromJSON(doc: Node_2, json: SerializedCellSelection): CellSelection;
|
|
64
|
-
// (undocumented)
|
|
65
|
-
getBookmark(): CellBookmark;
|
|
66
|
-
// (undocumented)
|
|
67
|
-
isColSelection(): boolean;
|
|
68
|
-
// (undocumented)
|
|
69
|
-
isRowSelection(): boolean;
|
|
70
|
-
// (undocumented)
|
|
71
|
-
map(doc: Node_2, mapping: Mapping): Selection_2;
|
|
72
|
-
// (undocumented)
|
|
73
|
-
replace(tr: Transaction, content?: Slice): void;
|
|
74
|
-
// (undocumented)
|
|
75
|
-
replaceWith(tr: Transaction, node: Node_2): void;
|
|
76
|
-
// (undocumented)
|
|
77
|
-
static rowSelection($anchorCell: ResolvedPos, $headCell?: ResolvedPos): CellSelection;
|
|
78
|
-
// (undocumented)
|
|
79
|
-
toJSON(): SerializedCellSelection;
|
|
80
|
-
// (undocumented)
|
|
81
|
-
readonly visible: boolean;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
// @public (undocumented)
|
|
85
|
-
export const findTable: (selection: Selection_2) => ContentNodeWithPos | undefined;
|
|
86
|
-
|
|
87
|
-
// @public (undocumented)
|
|
88
|
-
export class Rect {
|
|
89
|
-
constructor(left: number, top: number, right: number, bottom: number);
|
|
90
|
-
// (undocumented)
|
|
91
|
-
bottom: number;
|
|
92
|
-
// (undocumented)
|
|
93
|
-
left: number;
|
|
94
|
-
// (undocumented)
|
|
95
|
-
right: number;
|
|
96
|
-
// (undocumented)
|
|
97
|
-
top: number;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
// @public (undocumented)
|
|
101
|
-
interface SerializedCellSelection {
|
|
102
|
-
// (undocumented)
|
|
103
|
-
anchor: number;
|
|
104
|
-
// (undocumented)
|
|
105
|
-
head: number;
|
|
106
|
-
// (undocumented)
|
|
107
|
-
type: 'cell';
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
// @public (undocumented)
|
|
111
|
-
export class TableMap {
|
|
112
|
-
constructor(width: number, height: number, map: number[], problems?: TableProblem[] | null);
|
|
113
|
-
// (undocumented)
|
|
114
|
-
cellsInRect(rect: Rect): number[];
|
|
115
|
-
// (undocumented)
|
|
116
|
-
colCount(pos: number): number;
|
|
117
|
-
// (undocumented)
|
|
118
|
-
findCell(pos: number): Rect;
|
|
119
|
-
// (undocumented)
|
|
120
|
-
static get(table: Node_2): TableMap;
|
|
121
|
-
// (undocumented)
|
|
122
|
-
getMaxColInRow(pos: ResolvedPos): number | undefined;
|
|
123
|
-
// (undocumented)
|
|
124
|
-
height: number;
|
|
125
|
-
// (undocumented)
|
|
126
|
-
isPosMerged(pos: number): boolean;
|
|
127
|
-
// (undocumented)
|
|
128
|
-
map: number[];
|
|
129
|
-
// (undocumented)
|
|
130
|
-
nextCell(pos: number, axis: Axis, dir: number): null | number;
|
|
131
|
-
// (undocumented)
|
|
132
|
-
positionAt(row: number, col: number, table: Node_2): number;
|
|
133
|
-
// (undocumented)
|
|
134
|
-
problems?: TableProblem[] | null;
|
|
135
|
-
// (undocumented)
|
|
136
|
-
rectBetween(a: number, b: number): Rect;
|
|
137
|
-
// (undocumented)
|
|
138
|
-
rowCount(pos: number): number;
|
|
139
|
-
// (undocumented)
|
|
140
|
-
width: number;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
// @public (undocumented)
|
|
144
|
-
type TableProblem =
|
|
145
|
-
| TableProblemColWidthMismatch
|
|
146
|
-
| TableProblemCollision
|
|
147
|
-
| TableProblemLongRowspan
|
|
148
|
-
| TableProblemMissing;
|
|
149
|
-
|
|
150
|
-
// @public (undocumented)
|
|
151
|
-
type TableProblemCollision = {
|
|
152
|
-
type: TableProblemTypes.COLLISION;
|
|
153
|
-
row: number;
|
|
154
|
-
pos: number;
|
|
155
|
-
n: number;
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
// @public (undocumented)
|
|
159
|
-
type TableProblemColWidthMismatch = {
|
|
160
|
-
type: TableProblemTypes;
|
|
161
|
-
pos: number;
|
|
162
|
-
colwidth: number;
|
|
163
|
-
};
|
|
164
|
-
|
|
165
|
-
// @public (undocumented)
|
|
166
|
-
type TableProblemLongRowspan = {
|
|
167
|
-
type: TableProblemTypes.OVERLONG_ROWSPAN;
|
|
168
|
-
pos: number;
|
|
169
|
-
n: number;
|
|
170
|
-
};
|
|
171
|
-
|
|
172
|
-
// @public (undocumented)
|
|
173
|
-
type TableProblemMissing = {
|
|
174
|
-
type: TableProblemTypes.MISSING;
|
|
175
|
-
row: number;
|
|
176
|
-
n: number;
|
|
177
|
-
};
|
|
178
|
-
|
|
179
|
-
// @public (undocumented)
|
|
180
|
-
enum TableProblemTypes {
|
|
181
|
-
// (undocumented)
|
|
182
|
-
COLLISION = 'collision',
|
|
183
|
-
// (undocumented)
|
|
184
|
-
COLWIDTH_MISMATCH = 'colwidth mismatch',
|
|
185
|
-
// (undocumented)
|
|
186
|
-
MISSING = 'missing',
|
|
187
|
-
// (undocumented)
|
|
188
|
-
OVERLONG_ROWSPAN = 'overlong_rowspan',
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
// @public (undocumented)
|
|
192
|
-
export const uuid: {
|
|
193
|
-
setStatic(value: false | string): void;
|
|
194
|
-
generate(): string;
|
|
195
|
-
};
|
|
196
|
-
|
|
197
|
-
// (No @packageDocumentation comment for this package)
|
|
198
|
-
```
|
|
199
|
-
|
|
200
|
-
<!--SECTION END: Main Entry Types-->
|
|
201
|
-
|
|
202
|
-
### Peer Dependencies
|
|
203
|
-
|
|
204
|
-
<!--SECTION START: Peer Dependencies-->
|
|
205
|
-
|
|
206
|
-
```json
|
|
207
|
-
{}
|
|
208
|
-
```
|
|
209
|
-
|
|
210
|
-
<!--SECTION END: Peer Dependencies-->
|