@atlaskit/editor-plugin-media 18.1.6 → 18.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,40 @@
1
1
  # @atlaskit/editor-plugin-media
2
2
 
3
+ ## 18.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
+
3
38
  ## 18.1.6
4
39
 
5
40
  ### Patch Changes
@@ -11,7 +11,7 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
11
11
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
12
12
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
13
13
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
14
- var _v = _interopRequireDefault(require("uuid/v4"));
14
+ var _uuid = require("uuid");
15
15
  var _setAttrs = require("@atlaskit/adf-schema/steps/set-attrs");
16
16
  var _analytics = require("@atlaskit/editor-common/analytics");
17
17
  var _mediaSingle = require("@atlaskit/editor-common/media-single");
@@ -603,7 +603,7 @@ var MediaNodeUpdater = exports.MediaNodeUpdater = /*#__PURE__*/function () {
603
603
  collection: currentCollectionName,
604
604
  authProvider: uploadMediaClientConfig.authProvider,
605
605
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
606
- occurrenceKey: (0, _v.default)()
606
+ occurrenceKey: (0, _uuid.v4)()
607
607
  }
608
608
  });
609
609
  case 6:
@@ -755,7 +755,7 @@ var MediaNodeUpdater = exports.MediaNodeUpdater = /*#__PURE__*/function () {
755
755
  collection: currentCollectionName,
756
756
  authProvider: uploadMediaClientConfig.authProvider,
757
757
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
758
- occurrenceKey: (0, _v.default)()
758
+ occurrenceKey: (0, _uuid.v4)()
759
759
  },
760
760
  traceContext: traceContext
761
761
  });
@@ -14,7 +14,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
14
14
  var _assert = _interopRequireDefault(require("assert"));
15
15
  var _react = _interopRequireDefault(require("react"));
16
16
  var _reactIntl = require("react-intl");
17
- var _uuid = _interopRequireDefault(require("uuid"));
17
+ var _uuid = require("uuid");
18
18
  var _setAttrs = require("@atlaskit/adf-schema/steps/set-attrs");
19
19
  var _analytics = require("@atlaskit/editor-common/analytics");
20
20
  var _browser = require("@atlaskit/editor-common/browser");
@@ -1186,7 +1186,7 @@ var createPlugin = exports.createPlugin = function createPlugin(_schema, options
1186
1186
  return _view3.DecorationSet.create(state.doc, mediaNodes);
1187
1187
  }
1188
1188
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
1189
- var dropPlaceholderKey = (0, _uuid.default)();
1189
+ var dropPlaceholderKey = (0, _uuid.v4)();
1190
1190
  var dropPlaceholders = [_view3.Decoration.widget(pos, function () {
1191
1191
  return createDropPlaceholder(intl, nodeViewPortalProviderAPI, dropPlaceholderKey, mediaOptions && mediaOptions.allowDropzoneDropLine);
1192
1192
  }, {
@@ -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 -- Use crypto.randomUUID instead
3
- import uuidV4 from 'uuid/v4';
3
+ import { v4 as uuidV4 } from 'uuid';
4
4
  import { SetAttrsStep } from '@atlaskit/adf-schema/steps/set-attrs';
5
5
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
6
6
  import { DEFAULT_IMAGE_HEIGHT, DEFAULT_IMAGE_WIDTH } from '@atlaskit/editor-common/media-single';
@@ -3,7 +3,7 @@ import assert from 'assert';
3
3
  import React from 'react';
4
4
  import { RawIntlProvider } from 'react-intl';
5
5
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
6
- import uuid from 'uuid';
6
+ import { v4 as uuid } from 'uuid';
7
7
  import { SetAttrsStep } from '@atlaskit/adf-schema/steps/set-attrs';
8
8
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
9
9
  import { getBrowserInfo } from '@atlaskit/editor-common/browser';
@@ -9,7 +9,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
9
9
  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; }
10
10
  import _regeneratorRuntime from "@babel/runtime/regenerator";
11
11
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
12
- import uuidV4 from 'uuid/v4';
12
+ import { v4 as uuidV4 } from 'uuid';
13
13
  import { SetAttrsStep } from '@atlaskit/adf-schema/steps/set-attrs';
14
14
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
15
15
  import { DEFAULT_IMAGE_HEIGHT, DEFAULT_IMAGE_WIDTH } from '@atlaskit/editor-common/media-single';
@@ -12,7 +12,7 @@ import assert from 'assert';
12
12
  import React from 'react';
13
13
  import { RawIntlProvider } from 'react-intl';
14
14
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
15
- import uuid from 'uuid';
15
+ import { v4 as uuid } from 'uuid';
16
16
  import { SetAttrsStep } from '@atlaskit/adf-schema/steps/set-attrs';
17
17
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
18
18
  import { getBrowserInfo } from '@atlaskit/editor-common/browser';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-media",
3
- "version": "18.1.6",
3
+ "version": "18.1.7",
4
4
  "description": "Media 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/analytics-namespaced-context": "^8.2.0",
26
26
  "@atlaskit/analytics-next": "^12.5.0",
27
27
  "@atlaskit/button": "^25.3.0",
@@ -47,9 +47,9 @@
47
47
  "@atlaskit/editor-tables": "^3.1.0",
48
48
  "@atlaskit/form": "^17.2.0",
49
49
  "@atlaskit/icon": "^37.6.0",
50
- "@atlaskit/icon-lab": "^7.7.0",
51
- "@atlaskit/media-card": "^81.9.0",
52
- "@atlaskit/media-client": "^37.6.0",
50
+ "@atlaskit/icon-lab": "^7.8.0",
51
+ "@atlaskit/media-card": "^81.10.0",
52
+ "@atlaskit/media-client": "^37.7.0",
53
53
  "@atlaskit/media-client-react": "^6.4.0",
54
54
  "@atlaskit/media-common": "^14.6.0",
55
55
  "@atlaskit/media-filmstrip": "^52.4.0",
@@ -69,10 +69,10 @@
69
69
  "classnames": "^2.2.5",
70
70
  "lodash": "^4.17.21",
71
71
  "memoize-one": "^6.0.0",
72
- "uuid": "^3.1.0"
72
+ "uuid": "^11.1.1"
73
73
  },
74
74
  "peerDependencies": {
75
- "@atlaskit/editor-common": "^120.12.0",
75
+ "@atlaskit/editor-common": "^120.13.0",
76
76
  "@atlaskit/media-core": "^38.2.0",
77
77
  "react": "^18.2.0 || ^19.2.0",
78
78
  "react-dom": "^18.2.0 || ^19.2.0",