@atlaskit/editor-tables 2.6.2 → 2.7.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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/editor-tables
2
2
 
3
+ ## 2.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#91934](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/91934) [`b76a78c6a199`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76a78c6a199) - bumped editor-prosemirror version to 4.0.0
8
+
9
+ ## 2.6.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [#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
14
+
3
15
  ## 2.6.2
4
16
 
5
17
  ### Patch Changes
@@ -17,9 +17,5 @@
17
17
  "../src/**/*.test.*",
18
18
  "../src/**/test.*"
19
19
  ],
20
- "references": [
21
- {
22
- "path": "../../../platform/feature-flags/afm-cc/tsconfig.json"
23
- }
24
- ]
20
+ "references": []
25
21
  }
@@ -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
  };
@@ -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
  };
@@ -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.2",
3
+ "version": "2.7.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/"
@@ -28,8 +28,7 @@
28
28
  "releaseModel": "continuous"
29
29
  },
30
30
  "dependencies": {
31
- "@atlaskit/editor-prosemirror": "3.0.0",
32
- "@atlaskit/platform-feature-flags": "^0.2.4",
31
+ "@atlaskit/editor-prosemirror": "4.0.0",
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",