@atlaskit/editor-tables 2.2.5 → 2.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.
- package/CHANGELOG.md +12 -0
- package/dist/cjs/table-map.js +4 -4
- package/dist/cjs/utils/handle-paste.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/table-map.js +3 -3
- package/dist/es2019/version.json +1 -1
- package/dist/esm/table-map.js +3 -3
- package/dist/esm/utils/handle-paste.js +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-tables
|
|
2
2
|
|
|
3
|
+
## 2.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
8
|
+
|
|
9
|
+
## 2.2.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`0ffb55018c9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0ffb55018c9) - Revert "[ED-17172] Bumped prosemirror-view from 1.23.2 to 1.23.7 and removed work-around for fixed issues"
|
|
14
|
+
|
|
3
15
|
## 2.2.5
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/cjs/table-map.js
CHANGED
|
@@ -56,14 +56,14 @@ var Rect = /*#__PURE__*/(0, _createClass2.default)(function Rect(left, top, righ
|
|
|
56
56
|
this.bottom = bottom;
|
|
57
57
|
});
|
|
58
58
|
exports.Rect = Rect;
|
|
59
|
-
var TableProblemTypes
|
|
60
|
-
exports.TableProblemTypes = TableProblemTypes;
|
|
61
|
-
(function (TableProblemTypes) {
|
|
59
|
+
var TableProblemTypes = /*#__PURE__*/function (TableProblemTypes) {
|
|
62
60
|
TableProblemTypes["COLLISION"] = "collision";
|
|
63
61
|
TableProblemTypes["OVERLONG_ROWSPAN"] = "overlong_rowspan";
|
|
64
62
|
TableProblemTypes["MISSING"] = "missing";
|
|
65
63
|
TableProblemTypes["COLWIDTH_MISMATCH"] = "colwidth mismatch";
|
|
66
|
-
|
|
64
|
+
return TableProblemTypes;
|
|
65
|
+
}({});
|
|
66
|
+
exports.TableProblemTypes = TableProblemTypes;
|
|
67
67
|
// Ideally tableNewColumnMinWidth should be imported
|
|
68
68
|
// from '@atlaskit/editor-common/styles';
|
|
69
69
|
// We don't want to introduce a new dependency.
|
|
@@ -13,7 +13,7 @@ var _tables = require("../utils/tables");
|
|
|
13
13
|
var _copyPaste = require("./copy-paste");
|
|
14
14
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
15
15
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
16
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
16
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
17
17
|
function handlePaste(view, event, slice) {
|
|
18
18
|
if (!(0, _tables.isInTable)(view.state)) {
|
|
19
19
|
return false;
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/table-map.js
CHANGED
|
@@ -45,13 +45,13 @@ export class Rect {
|
|
|
45
45
|
this.bottom = bottom;
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
export let TableProblemTypes
|
|
49
|
-
(function (TableProblemTypes) {
|
|
48
|
+
export let TableProblemTypes = /*#__PURE__*/function (TableProblemTypes) {
|
|
50
49
|
TableProblemTypes["COLLISION"] = "collision";
|
|
51
50
|
TableProblemTypes["OVERLONG_ROWSPAN"] = "overlong_rowspan";
|
|
52
51
|
TableProblemTypes["MISSING"] = "missing";
|
|
53
52
|
TableProblemTypes["COLWIDTH_MISMATCH"] = "colwidth mismatch";
|
|
54
|
-
|
|
53
|
+
return TableProblemTypes;
|
|
54
|
+
}({});
|
|
55
55
|
// Ideally tableNewColumnMinWidth should be imported
|
|
56
56
|
// from '@atlaskit/editor-common/styles';
|
|
57
57
|
// We don't want to introduce a new dependency.
|
package/dist/es2019/version.json
CHANGED
package/dist/esm/table-map.js
CHANGED
|
@@ -48,13 +48,13 @@ export var Rect = /*#__PURE__*/_createClass(function Rect(left, top, right, bott
|
|
|
48
48
|
this.right = right;
|
|
49
49
|
this.bottom = bottom;
|
|
50
50
|
});
|
|
51
|
-
export var TableProblemTypes
|
|
52
|
-
(function (TableProblemTypes) {
|
|
51
|
+
export var TableProblemTypes = /*#__PURE__*/function (TableProblemTypes) {
|
|
53
52
|
TableProblemTypes["COLLISION"] = "collision";
|
|
54
53
|
TableProblemTypes["OVERLONG_ROWSPAN"] = "overlong_rowspan";
|
|
55
54
|
TableProblemTypes["MISSING"] = "missing";
|
|
56
55
|
TableProblemTypes["COLWIDTH_MISMATCH"] = "colwidth mismatch";
|
|
57
|
-
|
|
56
|
+
return TableProblemTypes;
|
|
57
|
+
}({});
|
|
58
58
|
// Ideally tableNewColumnMinWidth should be imported
|
|
59
59
|
// from '@atlaskit/editor-common/styles';
|
|
60
60
|
// We don't want to introduce a new dependency.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
2
2
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
3
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
3
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
4
4
|
import { Fragment } from 'prosemirror-model';
|
|
5
5
|
import { CellSelection } from '../cell-selection';
|
|
6
6
|
import { TableMap } from '../table-map';
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-tables",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.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/"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"prosemirror-view": "1.23.2"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@atlaskit/adf-schema": "^25.
|
|
32
|
+
"@atlaskit/adf-schema": "^25.6.0",
|
|
33
33
|
"@atlaskit/editor-test-helpers": "^18.2.0",
|
|
34
34
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1"
|
|
35
35
|
},
|