@atlaskit/editor-plugin-table 28.1.6 → 28.1.8

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,48 @@
1
1
  # @atlaskit/editor-plugin-table
2
2
 
3
+ ## 28.1.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [`3c8aad45af6a2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3c8aad45af6a2) -
8
+ Clean up the platform_editor_enable_table_scaling feature gate.
9
+ - Updated dependencies
10
+
11
+ ## 28.1.7
12
+
13
+ ### Patch Changes
14
+
15
+ - [`0927c3666c010`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0927c3666c010) -
16
+ Upgrade `uuid` from `3.x` to `11.1.1` to remediate GHSA-w5hq-g745-h8pq / SNYK-JS-UUID-16133035.
17
+
18
+ `uuid@11` removed the deep subpath exports (`uuid/v4`, `uuid/v1`, `uuid/v5`) and the default
19
+ export, so all internal call sites were migrated to named imports:
20
+
21
+ ```diff
22
+ -import uuid from 'uuid/v4';
23
+ +import { v4 as uuid } from 'uuid';
24
+
25
+ -import uuid from 'uuid';
26
+ +import { v4 as uuid } from 'uuid';
27
+ ```
28
+
29
+ With the exception of `@atlassian/integrations` (below), this is an internal implementation change
30
+ only - no public API, export, or entrypoint changed. UUID generation behaviour is unchanged
31
+ (`uuid@3`'s default export was already `v4`).
32
+
33
+ `@atlassian/integrations` declares `uuid` as a peer dependency, so its declared range moved from
34
+ `^3.1.0` to `^11.1.1`. That is a peer dependency declaration change, hence `minor` rather than
35
+ `patch` for that package.
36
+
37
+ The following `platform/packages/ai-mate` packages were also touched, but are all `private: true`
38
+ and so are intentionally not listed in the frontmatter above:
39
+ - `@atlassian/csm-assistance-service` - bumped its explicit `uuid` dependency from `npm:^9.0.0` to
40
+ `npm:^11.1.1` (`9.0.1` is also within the advisory's affected range).
41
+ - `@atlassian/csm-guidance-config` - example helper only, migrated to the named `uuid` import.
42
+ - `@atlassian/csm-ui-components` - example helper only, migrated to the named `uuid` import.
43
+
44
+ - Updated dependencies
45
+
3
46
  ## 28.1.6
4
47
 
5
48
  ### Patch Changes
@@ -8,7 +8,7 @@ exports.pluginKey = exports.createPlugin = void 0;
8
8
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
9
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
10
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
- var _uuid = _interopRequireDefault(require("uuid"));
11
+ var _uuid = require("uuid");
12
12
  var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
13
13
  var _styles = require("@atlaskit/editor-common/styles");
14
14
  var _state = require("@atlaskit/editor-prosemirror/state");
@@ -25,7 +25,7 @@ var ObjHash = /*#__PURE__*/function () {
25
25
  return this.cache.get(node) || '';
26
26
  }
27
27
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid
28
- var uniqueId = (0, _uuid.default)();
28
+ var uniqueId = (0, _uuid.v4)();
29
29
  this.cache.set(node, uniqueId);
30
30
  return uniqueId;
31
31
  }
@@ -8,7 +8,7 @@ exports.updateDecorations = exports.findControlsHoverDecoration = exports.findCo
8
8
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
9
9
  var _react = require("react");
10
10
  var _reactIntl = require("react-intl");
11
- var _v = _interopRequireDefault(require("uuid/v4"));
11
+ var _uuid = require("uuid");
12
12
  var _utils = require("@atlaskit/editor-common/utils");
13
13
  var _view = require("@atlaskit/editor-prosemirror/view");
14
14
  var _tableMap = require("@atlaskit/editor-tables/table-map");
@@ -236,7 +236,7 @@ var createResizeHandleDecoration = exports.createResizeHandleDecoration = functi
236
236
  }
237
237
  var createResizerHandleDecoration = function createResizerHandleDecoration(cellColumnPositioning, columnIndex, rowIndex, cellPos, cellNode) {
238
238
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
239
- var decorationRenderKey = (0, _v.default)();
239
+ var decorationRenderKey = (0, _uuid.v4)();
240
240
  var position = cellPos + cellNode.nodeSize - 1;
241
241
  return _view.Decoration.widget(position, function () {
242
242
  var element = document.createElement('div');
@@ -10,7 +10,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
10
10
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
11
  var _react = require("react");
12
12
  var _reactIntl = require("react-intl");
13
- var _v = _interopRequireDefault(require("uuid/v4"));
13
+ var _uuid = require("uuid");
14
14
  var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
15
15
  var _types = require("@atlaskit/editor-common/types");
16
16
  var _view = require("@atlaskit/editor-prosemirror/view");
@@ -113,7 +113,7 @@ var createPlugin = exports.createPlugin = function createPlugin(api, nodeViewPor
113
113
  var hasMergedCells = new Set(map.map).size !== map.map.length;
114
114
  map.mapByRow[0].forEach(function (cell, index) {
115
115
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
116
- var decorationRenderKey = (0, _v.default)();
116
+ var decorationRenderKey = (0, _uuid.v4)();
117
117
  decs.push(_view.Decoration.widget(cell + pos + 2, function () {
118
118
  var _sort$tableId;
119
119
  var element = document.createElement('div');
@@ -80,7 +80,7 @@ var tablePlugin = function tablePlugin(_ref) {
80
80
  };
81
81
  var options = _objectSpread(_objectSpread({}, config), {}, {
82
82
  tableOptions: (_config$tableOptions = config === null || config === void 0 ? void 0 : config.tableOptions) !== null && _config$tableOptions !== void 0 ? _config$tableOptions : {},
83
- isTableScalingEnabled: (config === null || config === void 0 ? void 0 : config.isTableScalingEnabled) || (0, _fg.fg)('platform_editor_enable_table_scaling')
83
+ isTableScalingEnabled: true
84
84
  });
85
85
  var defaultGetEditorContainerWidth = function defaultGetEditorContainerWidth() {
86
86
  var _api$width$sharedStat, _api$width, _document$body$offset, _document;
@@ -1,6 +1,6 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid
3
- import uuid from 'uuid';
3
+ import { v4 as uuid } from 'uuid';
4
4
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
5
5
  import { isCSSAnchorSupported, isCSSAttrAnchorSupported } from '@atlaskit/editor-common/styles';
6
6
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
@@ -1,7 +1,7 @@
1
1
  import { createElement } from 'react';
2
2
  import { RawIntlProvider } from 'react-intl';
3
3
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
4
- import uuid from 'uuid/v4';
4
+ import { v4 as uuid } from 'uuid';
5
5
  import { nonNullable } from '@atlaskit/editor-common/utils';
6
6
  import { Decoration } from '@atlaskit/editor-prosemirror/view';
7
7
  import { TableMap } from '@atlaskit/editor-tables/table-map';
@@ -7,7 +7,7 @@
7
7
  import { createElement } from 'react';
8
8
  import { RawIntlProvider } from 'react-intl';
9
9
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
10
- import uuid from 'uuid/v4';
10
+ import { v4 as uuid } from 'uuid';
11
11
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
12
12
  import { SortOrder } from '@atlaskit/editor-common/types';
13
13
  import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
@@ -68,7 +68,7 @@ const tablePlugin = ({
68
68
  const options = {
69
69
  ...config,
70
70
  tableOptions: (_config$tableOptions = config === null || config === void 0 ? void 0 : config.tableOptions) !== null && _config$tableOptions !== void 0 ? _config$tableOptions : {},
71
- isTableScalingEnabled: (config === null || config === void 0 ? void 0 : config.isTableScalingEnabled) || fg('platform_editor_enable_table_scaling')
71
+ isTableScalingEnabled: true
72
72
  };
73
73
  const defaultGetEditorContainerWidth = () => {
74
74
  var _api$width$sharedStat, _api$width, _document$body$offset, _document, _document$body;
@@ -2,7 +2,7 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
2
2
  import _createClass from "@babel/runtime/helpers/createClass";
3
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid
5
- import uuid from 'uuid';
5
+ import { v4 as uuid } from 'uuid';
6
6
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
7
7
  import { isCSSAnchorSupported, isCSSAttrAnchorSupported } from '@atlaskit/editor-common/styles';
8
8
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
@@ -2,7 +2,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import { createElement } from 'react';
3
3
  import { RawIntlProvider } from 'react-intl';
4
4
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
5
- import uuid from 'uuid/v4';
5
+ import { v4 as uuid } from 'uuid';
6
6
  import { nonNullable } from '@atlaskit/editor-common/utils';
7
7
  import { Decoration } from '@atlaskit/editor-prosemirror/view';
8
8
  import { TableMap } from '@atlaskit/editor-tables/table-map';
@@ -15,7 +15,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
15
15
  import { createElement } from 'react';
16
16
  import { RawIntlProvider } from 'react-intl';
17
17
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
18
- import uuid from 'uuid/v4';
18
+ import { v4 as uuid } from 'uuid';
19
19
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
20
20
  import { SortOrder } from '@atlaskit/editor-common/types';
21
21
  import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
@@ -71,7 +71,7 @@ var tablePlugin = function tablePlugin(_ref) {
71
71
  };
72
72
  var options = _objectSpread(_objectSpread({}, config), {}, {
73
73
  tableOptions: (_config$tableOptions = config === null || config === void 0 ? void 0 : config.tableOptions) !== null && _config$tableOptions !== void 0 ? _config$tableOptions : {},
74
- isTableScalingEnabled: (config === null || config === void 0 ? void 0 : config.isTableScalingEnabled) || fg('platform_editor_enable_table_scaling')
74
+ isTableScalingEnabled: true
75
75
  });
76
76
  var defaultGetEditorContainerWidth = function defaultGetEditorContainerWidth() {
77
77
  var _api$width$sharedStat, _api$width, _document$body$offset, _document;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "28.1.6",
3
+ "version": "28.1.8",
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": "^57.2.0",
23
+ "@atlaskit/adf-schema": "^57.3.0",
24
24
  "@atlaskit/button": "^25.3.0",
25
25
  "@atlaskit/custom-steps": "^1.1.0",
26
26
  "@atlaskit/editor-palette": "^3.5.0",
@@ -29,7 +29,7 @@
29
29
  "@atlaskit/editor-plugin-batch-attribute-updates": "^16.0.0",
30
30
  "@atlaskit/editor-plugin-content-insertion": "^16.1.0",
31
31
  "@atlaskit/editor-plugin-editor-viewmode": "^18.0.0",
32
- "@atlaskit/editor-plugin-extension": "19.1.6",
32
+ "@atlaskit/editor-plugin-extension": "19.1.7",
33
33
  "@atlaskit/editor-plugin-guideline": "^16.1.0",
34
34
  "@atlaskit/editor-plugin-interaction": "^27.0.0",
35
35
  "@atlaskit/editor-plugin-limited-mode": "^13.0.0",
@@ -44,7 +44,7 @@
44
44
  "@atlaskit/editor-toolbar": "^2.6.0",
45
45
  "@atlaskit/editor-ui-control-model": "^2.9.0",
46
46
  "@atlaskit/icon": "^37.6.0",
47
- "@atlaskit/icon-lab": "^7.7.0",
47
+ "@atlaskit/icon-lab": "^7.8.0",
48
48
  "@atlaskit/insm": "^3.0.0",
49
49
  "@atlaskit/menu": "^10.2.0",
50
50
  "@atlaskit/platform-feature-experiments": "^0.3.0",
@@ -65,10 +65,10 @@
65
65
  "lodash": "^4.17.21",
66
66
  "memoize-one": "^6.0.0",
67
67
  "raf-schd": "^4.0.3",
68
- "uuid": "^3.1.0"
68
+ "uuid": "^11.1.1"
69
69
  },
70
70
  "peerDependencies": {
71
- "@atlaskit/editor-common": "^120.12.0",
71
+ "@atlaskit/editor-common": "^120.15.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"
@@ -95,9 +95,6 @@
95
95
  "platform_editor_table_height_analytics_event": {
96
96
  "type": "boolean"
97
97
  },
98
- "platform_editor_enable_table_scaling": {
99
- "type": "boolean"
100
- },
101
98
  "platform_editor_max_width_default_width": {
102
99
  "type": "boolean"
103
100
  },