@atlaskit/editor-tables 3.0.57 → 3.0.58

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,15 @@
1
1
  # @atlaskit/editor-tables
2
2
 
3
+ ## 3.0.58
4
+
5
+ ### Patch Changes
6
+
7
+ - [`656801b9e097c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/656801b9e097c) -
8
+ VOLTC-331 - Migrate updated package usage in platform/editor: rewrite barrel imports of
9
+ voltCompliant provider packages to deep/subpath imports (consumer-side debarrel). No public API
10
+ changes.
11
+ - Updated dependencies
12
+
3
13
  ## 3.0.57
4
14
 
5
15
  ### Patch Changes
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.handlePaste = handlePaste;
7
7
  var _model = require("@atlaskit/editor-prosemirror/model");
8
8
  var _utils = require("@atlaskit/editor-prosemirror/utils");
9
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
9
+ var _fg = require("@atlaskit/platform-feature-flags/fg");
10
10
  var _cellSelection = require("../cell-selection");
11
11
  var _tableMap2 = require("../table-map");
12
12
  var _selectionCell = require("../utils/selection-cell");
@@ -23,7 +23,7 @@ function handlePaste(view, _event, slice, options) {
23
23
  return false;
24
24
  }
25
25
  var schema = view.state.schema;
26
- var isPasteFullTableInsideEmptyCellEnabled = (0, _platformFeatureFlags.fg)('platform_editor_paste_full_table_inside_empty_cell');
26
+ var isPasteFullTableInsideEmptyCellEnabled = (0, _fg.fg)('platform_editor_paste_full_table_inside_empty_cell');
27
27
  var isPartialTablePaste = slice.content.childCount === 1 && ((_slice$content$firstC = slice.content.firstChild) === null || _slice$content$firstC === void 0 ? void 0 : _slice$content$firstC.type) === schema.nodes.table && slice.openStart !== 0 && slice.openEnd !== 0;
28
28
  var sel = view.state.selection;
29
29
  var isCellSelection = sel instanceof _cellSelection.CellSelection;
@@ -1,6 +1,6 @@
1
1
  import { Fragment } from '@atlaskit/editor-prosemirror/model';
2
2
  import { findParentNode } from '@atlaskit/editor-prosemirror/utils';
3
- import { fg } from '@atlaskit/platform-feature-flags';
3
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
4
4
  import { CellSelection } from '../cell-selection';
5
5
  import { TableMap } from '../table-map';
6
6
  import { selectionCell } from '../utils/selection-cell';
@@ -3,7 +3,7 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
3
3
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
4
4
  import { Fragment } from '@atlaskit/editor-prosemirror/model';
5
5
  import { findParentNode } from '@atlaskit/editor-prosemirror/utils';
6
- import { fg } from '@atlaskit/platform-feature-flags';
6
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
7
7
  import { CellSelection } from '../cell-selection';
8
8
  import { TableMap } from '../table-map';
9
9
  import { selectionCell } from '../utils/selection-cell';
@@ -8,9 +8,9 @@ export declare function getSelectedTableInfo(selection: Selection): {
8
8
  totalRowCount: number;
9
9
  };
10
10
  export declare function getSelectedCellInfo(selection: Selection): {
11
- totalRowCount: number;
12
- totalColumnCount: number;
13
11
  horizontalCells: number;
14
- verticalCells: number;
15
12
  totalCells: number;
13
+ totalColumnCount: number;
14
+ totalRowCount: number;
15
+ verticalCells: number;
16
16
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-tables",
3
- "version": "3.0.57",
3
+ "version": "3.0.58",
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/"
@@ -25,6 +25,8 @@
25
25
  "@babel/runtime": "^7.0.0"
26
26
  },
27
27
  "devDependencies": {
28
+ "@atlaskit/editor-common": "^119.16.0",
29
+ "@atlaskit/editor-test-helpers": "workspace:^",
28
30
  "@atlassian/a11y-jest-testing": "^0.17.0"
29
31
  },
30
32
  "techstack": {