@atlaskit/editor-tables 2.6.1 → 2.6.3
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 +12 -0
- package/afm-cc/tsconfig.json +1 -5
- package/dist/cjs/pm-plugins/input.js +1 -0
- package/dist/cjs/utils/create-table.js +2 -8
- package/dist/es2019/pm-plugins/input.js +1 -0
- package/dist/es2019/utils/create-table.js +2 -8
- package/dist/esm/pm-plugins/input.js +1 -0
- package/dist/esm/utils/create-table.js +2 -8
- package/package.json +1 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-tables
|
|
2
2
|
|
|
3
|
+
## 2.6.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#86368](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86368) [`8499e6f0fef4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8499e6f0fef4) - Remove custom-table-width feature flag
|
|
8
|
+
|
|
9
|
+
## 2.6.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#88717](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/88717) [`d92770eae702`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d92770eae702) - Adding internal eslint opt outs for a new rule `@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop`.
|
|
14
|
+
|
|
3
15
|
## 2.6.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -209,6 +209,7 @@ function handleMouseDown(view, event, dragAndDropEnabled) {
|
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
view.root.addEventListener('mouseup', stop);
|
|
212
|
+
// eslint-disable-next-line @atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop
|
|
212
213
|
view.root.addEventListener('dragstart', stop);
|
|
213
214
|
view.root.addEventListener('mousemove', move);
|
|
214
215
|
return false;
|
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.createTable = void 0;
|
|
7
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
8
7
|
var _tableNodeTypes2 = require("./table-node-types");
|
|
9
8
|
var _uuid = require("./uuid");
|
|
10
9
|
var createCell = function createCell(cellType, cellContent) {
|
|
@@ -51,13 +50,8 @@ var createTable = exports.createTable = function createTable(_ref) {
|
|
|
51
50
|
for (var _i = 0; _i < rowsCount; _i++) {
|
|
52
51
|
rows.push(tableRow.createChecked(null, withHeaderRow && _i === 0 ? headerCells : cells));
|
|
53
52
|
}
|
|
54
|
-
if ((0, _platformFeatureFlags.getBooleanFF)('platform.editor.custom-table-width')) {
|
|
55
|
-
return table.createChecked({
|
|
56
|
-
localId: _uuid.uuid.generate(),
|
|
57
|
-
width: tableWidth !== null && tableWidth !== void 0 ? tableWidth : 760
|
|
58
|
-
}, rows);
|
|
59
|
-
}
|
|
60
53
|
return table.createChecked({
|
|
61
|
-
localId: _uuid.uuid.generate()
|
|
54
|
+
localId: _uuid.uuid.generate(),
|
|
55
|
+
width: tableWidth !== null && tableWidth !== void 0 ? tableWidth : 760
|
|
62
56
|
}, rows);
|
|
63
57
|
};
|
|
@@ -208,6 +208,7 @@ export function handleMouseDown(view, event, dragAndDropEnabled) {
|
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
view.root.addEventListener('mouseup', stop);
|
|
211
|
+
// eslint-disable-next-line @atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop
|
|
211
212
|
view.root.addEventListener('dragstart', stop);
|
|
212
213
|
view.root.addEventListener('mousemove', move);
|
|
213
214
|
return false;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
2
1
|
import { tableNodeTypes } from './table-node-types';
|
|
3
2
|
import { uuid } from './uuid';
|
|
4
3
|
const createCell = (cellType, cellContent) => {
|
|
@@ -44,13 +43,8 @@ export const createTable = ({
|
|
|
44
43
|
for (let i = 0; i < rowsCount; i++) {
|
|
45
44
|
rows.push(tableRow.createChecked(null, withHeaderRow && i === 0 ? headerCells : cells));
|
|
46
45
|
}
|
|
47
|
-
if (getBooleanFF('platform.editor.custom-table-width')) {
|
|
48
|
-
return table.createChecked({
|
|
49
|
-
localId: uuid.generate(),
|
|
50
|
-
width: tableWidth !== null && tableWidth !== void 0 ? tableWidth : 760
|
|
51
|
-
}, rows);
|
|
52
|
-
}
|
|
53
46
|
return table.createChecked({
|
|
54
|
-
localId: uuid.generate()
|
|
47
|
+
localId: uuid.generate(),
|
|
48
|
+
width: tableWidth !== null && tableWidth !== void 0 ? tableWidth : 760
|
|
55
49
|
}, rows);
|
|
56
50
|
};
|
|
@@ -201,6 +201,7 @@ export function handleMouseDown(view, event, dragAndDropEnabled) {
|
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
203
|
view.root.addEventListener('mouseup', stop);
|
|
204
|
+
// eslint-disable-next-line @atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop
|
|
204
205
|
view.root.addEventListener('dragstart', stop);
|
|
205
206
|
view.root.addEventListener('mousemove', move);
|
|
206
207
|
return false;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
2
1
|
import { tableNodeTypes } from './table-node-types';
|
|
3
2
|
import { uuid } from './uuid';
|
|
4
3
|
var createCell = function createCell(cellType, cellContent) {
|
|
@@ -45,13 +44,8 @@ export var createTable = function createTable(_ref) {
|
|
|
45
44
|
for (var _i = 0; _i < rowsCount; _i++) {
|
|
46
45
|
rows.push(tableRow.createChecked(null, withHeaderRow && _i === 0 ? headerCells : cells));
|
|
47
46
|
}
|
|
48
|
-
if (getBooleanFF('platform.editor.custom-table-width')) {
|
|
49
|
-
return table.createChecked({
|
|
50
|
-
localId: uuid.generate(),
|
|
51
|
-
width: tableWidth !== null && tableWidth !== void 0 ? tableWidth : 760
|
|
52
|
-
}, rows);
|
|
53
|
-
}
|
|
54
47
|
return table.createChecked({
|
|
55
|
-
localId: uuid.generate()
|
|
48
|
+
localId: uuid.generate(),
|
|
49
|
+
width: tableWidth !== null && tableWidth !== void 0 ? tableWidth : 760
|
|
56
50
|
}, rows);
|
|
57
51
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-tables",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.3",
|
|
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/"
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@atlaskit/editor-prosemirror": "3.0.0",
|
|
32
|
-
"@atlaskit/platform-feature-flags": "^0.2.4",
|
|
33
32
|
"@babel/runtime": "^7.0.0"
|
|
34
33
|
},
|
|
35
34
|
"devDependencies": {
|
|
@@ -54,11 +53,6 @@
|
|
|
54
53
|
}
|
|
55
54
|
},
|
|
56
55
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1",
|
|
57
|
-
"platform-feature-flags": {
|
|
58
|
-
"platform.editor.custom-table-width": {
|
|
59
|
-
"type": "boolean"
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
56
|
"af:exports": {
|
|
63
57
|
".": "./src/index.ts",
|
|
64
58
|
"./cell-bookmark": "./src/cell-bookmark.ts",
|