@atlaskit/editor-plugin-table 27.0.1 → 27.0.2

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/editor-plugin-table
2
2
 
3
+ ## 27.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 27.0.1
4
10
 
5
11
  ### Patch Changes
@@ -8,8 +8,6 @@ var _cellSelection = require("@atlaskit/editor-tables/cell-selection");
8
8
  var _types = require("../../../types");
9
9
  var _decoration = require("../../utils/decoration");
10
10
  var _composeDecorations = require("./compose-decorations");
11
- // @ts-ignore -- ReadonlyTransaction is a local declaration and will cause a TS2305 error in CCFE typecheck
12
-
13
11
  var isColumnSelected = function isColumnSelected(tr) {
14
12
  return tr.selection instanceof _cellSelection.CellSelection && tr.selection.isColSelection();
15
13
  };
@@ -19,7 +19,6 @@ var _collapse = require("./utils/collapse");
19
19
  var _nodes = require("./utils/nodes");
20
20
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
21
21
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } // #region Imports
22
- // @ts-ignore -- ReadonlyTransaction is a local declaration and will cause a TS2305 error in CCFE typecheck
23
22
  var nextTableSorting = function nextTableSorting(tr, table) {
24
23
  var tableSortStep = tr.steps.find(function (step) {
25
24
  return step instanceof _customSteps.TableSortStep;
@@ -10,8 +10,7 @@ var _utils = require("@atlaskit/editor-common/utils");
10
10
  var _pluginKey = require("./plugin-key");
11
11
  var _reducer = _interopRequireDefault(require("./reducer"));
12
12
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
13
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } // @ts-ignore -- ReadonlyTransaction is a local declaration and will cause a TS2305 error in CCFE typecheck
14
- // eslint-disable-next-line import/order
13
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } // eslint-disable-next-line import/order
15
14
  // eslint-disable-next-line import/order
16
15
 
17
16
  // eslint-disable-next-line import/order
@@ -7,8 +7,6 @@ exports.isTableCollapsible = exports.collapseSelectedTable = void 0;
7
7
  var _model = require("@atlaskit/editor-prosemirror/model");
8
8
  var _transform = require("@atlaskit/editor-prosemirror/transform");
9
9
  var _utils = require("@atlaskit/editor-tables/utils");
10
- // @ts-ignore -- ReadonlyTransaction is a local declaration and will cause a TS2305 error in CCFE typecheck
11
-
12
10
  var bail = function bail() {
13
11
  return {
14
12
  tableIsCollapsible: false
@@ -17,8 +17,6 @@ var _types = require("../../types");
17
17
  var _ColumnResizeWidget = require("../../ui/ColumnResizeWidget");
18
18
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
19
19
 
20
- // @ts-ignore -- ReadonlyTransaction is a local declaration and will cause a TS2305 error in CCFE typecheck
21
-
22
20
  var filterDecorationByKey = function filterDecorationByKey(key, decorationSet) {
23
21
  return decorationSet.find(undefined, undefined, function (spec) {
24
22
  return spec.key.indexOf(key) > -1;
@@ -1,5 +1,3 @@
1
- // @ts-ignore -- ReadonlyTransaction is a local declaration and will cause a TS2305 error in CCFE typecheck
2
-
3
1
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
4
2
  import { TableDecorations } from '../../../types';
5
3
  import { createColumnSelectedDecoration, findColumnControlSelectedDecoration, findControlsHoverDecoration, updateDecorations } from '../../utils/decoration';
@@ -1,9 +1,6 @@
1
1
  // #region Imports
2
2
  import { TableSortStep } from '@atlaskit/custom-steps';
3
3
  import { isTextInput } from '@atlaskit/editor-common/utils';
4
-
5
- // @ts-ignore -- ReadonlyTransaction is a local declaration and will cause a TS2305 error in CCFE typecheck
6
-
7
4
  import { findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
8
5
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
9
6
  import { findTable } from '@atlaskit/editor-tables/utils';
@@ -1,4 +1,3 @@
1
- // @ts-ignore -- ReadonlyTransaction is a local declaration and will cause a TS2305 error in CCFE typecheck
2
1
  import { pluginFactory } from '@atlaskit/editor-common/utils';
3
2
  import { pluginKey } from './plugin-key';
4
3
  // eslint-disable-next-line import/order
@@ -1,6 +1,4 @@
1
1
  import { NodeRange } from '@atlaskit/editor-prosemirror/model';
2
- // @ts-ignore -- ReadonlyTransaction is a local declaration and will cause a TS2305 error in CCFE typecheck
3
-
4
2
  import { findWrapping } from '@atlaskit/editor-prosemirror/transform';
5
3
  import { findTable } from '@atlaskit/editor-tables/utils';
6
4
  const bail = () => ({
@@ -3,9 +3,6 @@ import { RawIntlProvider } from 'react-intl';
3
3
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
4
4
  import uuid from 'uuid/v4';
5
5
  import { nonNullable } from '@atlaskit/editor-common/utils';
6
-
7
- // @ts-ignore -- ReadonlyTransaction is a local declaration and will cause a TS2305 error in CCFE typecheck
8
-
9
6
  import { Decoration } from '@atlaskit/editor-prosemirror/view';
10
7
  import { TableMap } from '@atlaskit/editor-tables/table-map';
11
8
  import { findTable, getCellsInRow, getSelectionRect } from '@atlaskit/editor-tables/utils';
@@ -1,5 +1,3 @@
1
- // @ts-ignore -- ReadonlyTransaction is a local declaration and will cause a TS2305 error in CCFE typecheck
2
-
3
1
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
4
2
  import { TableDecorations } from '../../../types';
5
3
  import { createColumnSelectedDecoration, findColumnControlSelectedDecoration, findControlsHoverDecoration, updateDecorations } from '../../utils/decoration';
@@ -4,9 +4,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
4
4
  // #region Imports
5
5
  import { TableSortStep } from '@atlaskit/custom-steps';
6
6
  import { isTextInput } from '@atlaskit/editor-common/utils';
7
-
8
- // @ts-ignore -- ReadonlyTransaction is a local declaration and will cause a TS2305 error in CCFE typecheck
9
-
10
7
  import { findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
11
8
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
12
9
  import { findTable } from '@atlaskit/editor-tables/utils';
@@ -1,7 +1,6 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
- // @ts-ignore -- ReadonlyTransaction is a local declaration and will cause a TS2305 error in CCFE typecheck
5
4
  import { pluginFactory } from '@atlaskit/editor-common/utils';
6
5
  import { pluginKey } from './plugin-key';
7
6
  // eslint-disable-next-line import/order
@@ -1,6 +1,4 @@
1
1
  import { NodeRange } from '@atlaskit/editor-prosemirror/model';
2
- // @ts-ignore -- ReadonlyTransaction is a local declaration and will cause a TS2305 error in CCFE typecheck
3
-
4
2
  import { findWrapping } from '@atlaskit/editor-prosemirror/transform';
5
3
  import { findTable } from '@atlaskit/editor-tables/utils';
6
4
  var bail = function bail() {
@@ -4,9 +4,6 @@ import { RawIntlProvider } from 'react-intl';
4
4
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
5
5
  import uuid from 'uuid/v4';
6
6
  import { nonNullable } from '@atlaskit/editor-common/utils';
7
-
8
- // @ts-ignore -- ReadonlyTransaction is a local declaration and will cause a TS2305 error in CCFE typecheck
9
-
10
7
  import { Decoration } from '@atlaskit/editor-prosemirror/view';
11
8
  import { TableMap } from '@atlaskit/editor-tables/table-map';
12
9
  import { findTable, getCellsInRow, getSelectionRect } from '@atlaskit/editor-tables/utils';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "27.0.1",
3
+ "version": "27.0.2",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -20,7 +20,7 @@
20
20
  "singleton": true
21
21
  },
22
22
  "dependencies": {
23
- "@atlaskit/adf-schema": "^56.7.0",
23
+ "@atlaskit/adf-schema": "^57.0.0",
24
24
  "@atlaskit/button": "^25.0.0",
25
25
  "@atlaskit/custom-steps": "^1.0.0",
26
26
  "@atlaskit/editor-palette": "^3.4.0",
@@ -29,7 +29,7 @@
29
29
  "@atlaskit/editor-plugin-batch-attribute-updates": "^15.0.0",
30
30
  "@atlaskit/editor-plugin-content-insertion": "^15.0.0",
31
31
  "@atlaskit/editor-plugin-editor-viewmode": "^17.0.0",
32
- "@atlaskit/editor-plugin-extension": "18.0.0",
32
+ "@atlaskit/editor-plugin-extension": "18.0.1",
33
33
  "@atlaskit/editor-plugin-guideline": "^15.0.0",
34
34
  "@atlaskit/editor-plugin-interaction": "^26.0.0",
35
35
  "@atlaskit/editor-plugin-limited-mode": "^12.0.0",
@@ -68,7 +68,7 @@
68
68
  "uuid": "^3.1.0"
69
69
  },
70
70
  "peerDependencies": {
71
- "@atlaskit/editor-common": "^119.1.0",
71
+ "@atlaskit/editor-common": "^119.4.0",
72
72
  "react": "^18.2.0 || ^19.2.0",
73
73
  "react-dom": "^18.2.0 || ^19.2.0",
74
74
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"