@atlaskit/editor-plugin-expand 17.1.5 → 17.1.7

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,46 @@
1
1
  # @atlaskit/editor-plugin-expand
2
2
 
3
+ ## 17.1.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [`0927c3666c010`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0927c3666c010) -
8
+ Upgrade `uuid` from `3.x` to `11.1.1` to remediate GHSA-w5hq-g745-h8pq / SNYK-JS-UUID-16133035.
9
+
10
+ `uuid@11` removed the deep subpath exports (`uuid/v4`, `uuid/v1`, `uuid/v5`) and the default
11
+ export, so all internal call sites were migrated to named imports:
12
+
13
+ ```diff
14
+ -import uuid from 'uuid/v4';
15
+ +import { v4 as uuid } from 'uuid';
16
+
17
+ -import uuid from 'uuid';
18
+ +import { v4 as uuid } from 'uuid';
19
+ ```
20
+
21
+ With the exception of `@atlassian/integrations` (below), this is an internal implementation change
22
+ only - no public API, export, or entrypoint changed. UUID generation behaviour is unchanged
23
+ (`uuid@3`'s default export was already `v4`).
24
+
25
+ `@atlassian/integrations` declares `uuid` as a peer dependency, so its declared range moved from
26
+ `^3.1.0` to `^11.1.1`. That is a peer dependency declaration change, hence `minor` rather than
27
+ `patch` for that package.
28
+
29
+ The following `platform/packages/ai-mate` packages were also touched, but are all `private: true`
30
+ and so are intentionally not listed in the frontmatter above:
31
+ - `@atlassian/csm-assistance-service` - bumped its explicit `uuid` dependency from `npm:^9.0.0` to
32
+ `npm:^11.1.1` (`9.0.1` is also within the advisory's affected range).
33
+ - `@atlassian/csm-guidance-config` - example helper only, migrated to the named `uuid` import.
34
+ - `@atlassian/csm-ui-components` - example helper only, migrated to the named `uuid` import.
35
+
36
+ - Updated dependencies
37
+
38
+ ## 17.1.6
39
+
40
+ ### Patch Changes
41
+
42
+ - Updated dependencies
43
+
3
44
  ## 17.1.5
4
45
 
5
46
  ### Patch Changes
@@ -10,7 +10,7 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
10
10
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
11
11
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
12
12
  var _react = _interopRequireDefault(require("react"));
13
- var _v = _interopRequireDefault(require("uuid/v4"));
13
+ var _uuid = require("uuid");
14
14
  var _w3cKeyname = require("w3c-keyname");
15
15
  var _selection = require("@atlaskit/editor-common/selection");
16
16
  var _styles = require("@atlaskit/editor-common/styles");
@@ -544,7 +544,7 @@ var ExpandNodeView = exports.ExpandNodeView = /*#__PURE__*/function () {
544
544
  };
545
545
  });
546
546
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
547
- this.renderKey = (0, _v.default)();
547
+ this.renderKey = (0, _uuid.v4)();
548
548
  if ((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_vc90_transition_expand_icon')) {
549
549
  this.renderNativeIcon(this.node);
550
550
  } else {
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.wrapSelectionAndSetExpandedState = exports.updateExpandTitle = exports.toggleExpandWithMatch = exports.toggleExpandExpanded = exports.setSelectionInsideExpand = exports.insertExpandWithInputMethod = exports.insertExpand = exports.focusTitle = exports.focusIcon = exports.deleteExpandAtPos = exports.deleteExpand = exports.createExpandNode = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
- var _v = _interopRequireDefault(require("uuid/v4"));
9
+ var _uuid = require("uuid");
10
10
  var _setAttrs = require("@atlaskit/adf-schema/steps/set-attrs");
11
11
  var _analytics = require("@atlaskit/editor-common/analytics");
12
12
  var _expand = require("@atlaskit/editor-common/expand");
@@ -36,11 +36,11 @@ var createExpandNode = exports.createExpandNode = function createExpandNode(stat
36
36
  var expandType = isSelectionInTable || isSelectionInExpand ? nestedExpand : expand;
37
37
  var expandNode = (0, _fg.fg)('platform_editor_adf_with_localid') ? expandType.createAndFill(addLocalId ? {
38
38
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
39
- localId: (0, _v.default)()
39
+ localId: (0, _uuid.v4)()
40
40
  } : {},
41
41
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
42
42
  paragraph.createAndFill(addLocalId ? {
43
- localId: (0, _v.default)()
43
+ localId: (0, _uuid.v4)()
44
44
  } : {})) : expandType.createAndFill({});
45
45
  if (setExpandedState) {
46
46
  // Ignored via go/ees005
@@ -10,7 +10,7 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
10
10
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
11
11
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
12
12
  var _react = _interopRequireDefault(require("react"));
13
- var _v = _interopRequireDefault(require("uuid/v4"));
13
+ var _uuid = require("uuid");
14
14
  var _w3cKeyname = require("w3c-keyname");
15
15
  var _expand = require("@atlaskit/editor-common/expand");
16
16
  var _selection = require("@atlaskit/editor-common/selection");
@@ -513,7 +513,7 @@ var ExpandNodeView = exports.ExpandNodeView = /*#__PURE__*/function () {
513
513
  this.input = this.dom.querySelector(".".concat(_styles.expandClassNames.titleInput));
514
514
  this.titleContainer = this.dom.querySelector(".".concat(_styles.expandClassNames.titleContainer));
515
515
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
516
- this.renderKey = (0, _v.default)();
516
+ this.renderKey = (0, _uuid.v4)();
517
517
  this.content = this.dom.querySelector(".".concat(_styles.expandClassNames.content));
518
518
  if (!_expand.expandedState.has(this.node)) {
519
519
  _expand.expandedState.set(this.node, false);
@@ -1,7 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import React from 'react';
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 { keyName } from 'w3c-keyname';
6
6
  import { GapCursorSelection, RelativeSelectionPos, Side } from '@atlaskit/editor-common/selection';
7
7
  import { expandClassNames } from '@atlaskit/editor-common/styles';
@@ -1,5 +1,5 @@
1
1
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
2
- import uuid from 'uuid/v4';
2
+ import { v4 as uuid } from 'uuid';
3
3
  import { SetAttrsStep } from '@atlaskit/adf-schema/steps/set-attrs';
4
4
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD, MODE, PLATFORMS } from '@atlaskit/editor-common/analytics';
5
5
  import { expandedState } from '@atlaskit/editor-common/expand';
@@ -1,7 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import React from 'react';
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 { keyName } from 'w3c-keyname';
6
6
  import { expandedState, isExpandCollapsed } from '@atlaskit/editor-common/expand';
7
7
  import { GapCursorSelection, RelativeSelectionPos, Side } from '@atlaskit/editor-common/selection';
@@ -5,7 +5,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
5
5
  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; }
6
6
  import React from 'react';
7
7
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
8
- import uuid from 'uuid/v4';
8
+ import { v4 as uuid } from 'uuid';
9
9
  import { keyName } from 'w3c-keyname';
10
10
  import { GapCursorSelection, RelativeSelectionPos, Side } from '@atlaskit/editor-common/selection';
11
11
  import { expandClassNames } from '@atlaskit/editor-common/styles';
@@ -2,7 +2,7 @@ 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
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 { SetAttrsStep } from '@atlaskit/adf-schema/steps/set-attrs';
7
7
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD, MODE, PLATFORMS } from '@atlaskit/editor-common/analytics';
8
8
  import { expandedState } from '@atlaskit/editor-common/expand';
@@ -3,7 +3,7 @@ import _createClass from "@babel/runtime/helpers/createClass";
3
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  import React from 'react';
5
5
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
6
- import uuid from 'uuid/v4';
6
+ import { v4 as uuid } from 'uuid';
7
7
  import { keyName } from 'w3c-keyname';
8
8
  import { expandedState, isExpandCollapsed } from '@atlaskit/editor-common/expand';
9
9
  import { GapCursorSelection, RelativeSelectionPos, Side } from '@atlaskit/editor-common/selection';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-expand",
3
- "version": "17.1.5",
3
+ "version": "17.1.7",
4
4
  "description": "Expand plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -21,7 +21,7 @@
21
21
  ],
22
22
  "atlaskit:src": "src/index.ts",
23
23
  "dependencies": {
24
- "@atlaskit/adf-schema": "^57.2.0",
24
+ "@atlaskit/adf-schema": "^57.3.0",
25
25
  "@atlaskit/button": "^25.3.0",
26
26
  "@atlaskit/editor-plugin-analytics": "^16.1.0",
27
27
  "@atlaskit/editor-plugin-block-controls": "^17.3.0",
@@ -39,20 +39,20 @@
39
39
  "@atlaskit/editor-toolbar": "^2.6.0",
40
40
  "@atlaskit/editor-ui-control-model": "^2.9.0",
41
41
  "@atlaskit/icon": "^37.6.0",
42
- "@atlaskit/icon-lab": "^7.7.0",
42
+ "@atlaskit/icon-lab": "^7.8.0",
43
43
  "@atlaskit/platform-feature-experiments": "^0.3.0",
44
44
  "@atlaskit/platform-feature-flags": "^2.2.0",
45
45
  "@atlaskit/prosemirror-history": "^1.2.0",
46
- "@atlaskit/tmp-editor-statsig": "^173.0.0",
46
+ "@atlaskit/tmp-editor-statsig": "^174.0.0",
47
47
  "@atlaskit/tokens": "^16.11.0",
48
48
  "@atlaskit/tooltip": "^24.3.0",
49
49
  "@babel/runtime": "^7.0.0",
50
50
  "@emotion/react": "^11.7.1",
51
- "uuid": "^3.1.0",
51
+ "uuid": "^11.1.1",
52
52
  "w3c-keyname": "^2.1.8"
53
53
  },
54
54
  "peerDependencies": {
55
- "@atlaskit/editor-common": "^120.11.0",
55
+ "@atlaskit/editor-common": "^120.13.0",
56
56
  "react": "^18.2.0 || ^19.2.0",
57
57
  "react-dom": "^18.2.0 || ^19.2.0",
58
58
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"