@atlaskit/editor-core 226.4.1 → 226.4.3

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,49 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 226.4.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`5a0128690a065`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5a0128690a065) -
8
+ Add mention avatars to Rovo editor and renderer surfaces behind
9
+ platform_editor_rovo_editor_mention_node_avatar
10
+ - Updated dependencies
11
+
12
+ ## 226.4.2
13
+
14
+ ### Patch Changes
15
+
16
+ - [`0927c3666c010`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0927c3666c010) -
17
+ Upgrade `uuid` from `3.x` to `11.1.1` to remediate GHSA-w5hq-g745-h8pq / SNYK-JS-UUID-16133035.
18
+
19
+ `uuid@11` removed the deep subpath exports (`uuid/v4`, `uuid/v1`, `uuid/v5`) and the default
20
+ export, so all internal call sites were migrated to named imports:
21
+
22
+ ```diff
23
+ -import uuid from 'uuid/v4';
24
+ +import { v4 as uuid } from 'uuid';
25
+
26
+ -import uuid from 'uuid';
27
+ +import { v4 as uuid } from 'uuid';
28
+ ```
29
+
30
+ With the exception of `@atlassian/integrations` (below), this is an internal implementation change
31
+ only - no public API, export, or entrypoint changed. UUID generation behaviour is unchanged
32
+ (`uuid@3`'s default export was already `v4`).
33
+
34
+ `@atlassian/integrations` declares `uuid` as a peer dependency, so its declared range moved from
35
+ `^3.1.0` to `^11.1.1`. That is a peer dependency declaration change, hence `minor` rather than
36
+ `patch` for that package.
37
+
38
+ The following `platform/packages/ai-mate` packages were also touched, but are all `private: true`
39
+ and so are intentionally not listed in the frontmatter above:
40
+ - `@atlassian/csm-assistance-service` - bumped its explicit `uuid` dependency from `npm:^9.0.0` to
41
+ `npm:^11.1.1` (`9.0.1` is also within the advisory's affected range).
42
+ - `@atlassian/csm-guidance-config` - example helper only, migrated to the named `uuid` import.
43
+ - `@atlassian/csm-ui-components` - example helper only, migrated to the named `uuid` import.
44
+
45
+ - Updated dependencies
46
+
3
47
  ## 226.4.1
4
48
 
5
49
  ### Patch Changes
@@ -11,7 +11,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
11
11
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
12
12
  var _react = _interopRequireWildcard(require("react"));
13
13
  var _isEqual = _interopRequireDefault(require("lodash/isEqual"));
14
- var _v = _interopRequireDefault(require("uuid/v4"));
14
+ var _uuid = require("uuid");
15
15
  var _FabricEditorAnalyticsContext = require("@atlaskit/analytics-namespaced-context/FabricEditorAnalyticsContext");
16
16
  var _useAnalyticsEvents2 = require("@atlaskit/analytics-next/useAnalyticsEvents");
17
17
  var _analytics = require("@atlaskit/editor-common/analytics");
@@ -120,7 +120,7 @@ var useMemoEditorFeatureFlags = function useMemoEditorFeatureFlags(featureFlags)
120
120
  */
121
121
  function CoreEditor(props) {
122
122
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
123
- var editorSessionId = (0, _react.useRef)((0, _v.default)());
123
+ var editorSessionId = (0, _react.useRef)((0, _uuid.v4)());
124
124
  var data = (0, _react.useMemo)(function () {
125
125
  return {
126
126
  packageName: _versionWrapper.name,
@@ -14,7 +14,7 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
14
14
  var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
15
15
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
16
16
  var _react = _interopRequireDefault(require("react"));
17
- var _uuid = _interopRequireDefault(require("uuid"));
17
+ var _uuid = require("uuid");
18
18
  var _analyticsNextStableReactContext = _interopRequireDefault(require("@atlaskit/analytics-next-stable-react-context"));
19
19
  var _analytics = require("@atlaskit/editor-common/analytics");
20
20
  var _coreUtils = require("@atlaskit/editor-common/core-utils");
@@ -49,7 +49,7 @@ var ErrorBoundaryWithEditorView = exports.ErrorBoundaryWithEditorView = /*#__PUR
49
49
  case 1:
50
50
  product = _context.sent;
51
51
  error = analyticsErrorPayload.error, errorInfo = analyticsErrorPayload.errorInfo; // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
52
- sharedId = (0, _uuid.default)();
52
+ sharedId = (0, _uuid.v4)();
53
53
  browserInfo = ((_window = window) === null || _window === void 0 || (_window = _window.navigator) === null || _window === void 0 ? void 0 : _window.userAgent) || 'unknown';
54
54
  attributes = {
55
55
  product: product,
@@ -13,7 +13,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
13
13
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
14
14
  var _react = _interopRequireWildcard(require("react"));
15
15
  var _reactIntl = require("react-intl");
16
- var _v = _interopRequireDefault(require("uuid/v4"));
16
+ var _uuid = require("uuid");
17
17
  var _analytics = require("@atlaskit/editor-common/analytics");
18
18
  var _coreUtils = require("@atlaskit/editor-common/core-utils");
19
19
  var _eventDispatcher = require("@atlaskit/editor-common/event-dispatcher");
@@ -133,7 +133,7 @@ function ReactEditorView(props) {
133
133
  var canDispatchTransactions = (0, _react.useRef)(true);
134
134
 
135
135
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
136
- var editorId = (0, _react.useRef)((0, _v.default)());
136
+ var editorId = (0, _react.useRef)((0, _uuid.v4)());
137
137
  var eventDispatcher = (0, _react.useMemo)(function () {
138
138
  return new _eventDispatcher.EventDispatcher();
139
139
  }, []);
@@ -6,4 +6,4 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
8
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
9
- var version = exports.version = "226.4.0";
9
+ var version = exports.version = "226.4.2";
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import React, { useCallback, useMemo, useRef, Fragment } from 'react';
3
3
  import isEqual from 'lodash/isEqual';
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 { FabricEditorAnalyticsContext } from '@atlaskit/analytics-namespaced-context/FabricEditorAnalyticsContext';
7
7
  import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
8
8
  import { ACTION } from '@atlaskit/editor-common/analytics';
@@ -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';
4
+ import { v4 as uuid } from 'uuid';
5
5
  import { default as AnalyticsReactContext } from '@atlaskit/analytics-next-stable-react-context';
6
6
  import { ACTION, ACTION_SUBJECT, editorAnalyticsChannel, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
7
7
  import { getDocStructure } from '@atlaskit/editor-common/core-utils';
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import React, { useCallback, useLayoutEffect, useMemo, useRef, useState, useEffect } from 'react';
3
3
  import { injectIntl } 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 { ACTION, ACTION_SUBJECT, EVENT_TYPE, fireAnalyticsEvent, PLATFORMS } from '@atlaskit/editor-common/analytics';
7
7
  import { isSSR } from '@atlaskit/editor-common/core-utils';
8
8
  import { createDispatch, EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
@@ -1,3 +1,3 @@
1
1
  export const name = "@atlaskit/editor-core";
2
2
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
3
- export const version = "226.4.0";
3
+ export const version = "226.4.2";
@@ -5,7 +5,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
5
5
  import React, { useCallback, useMemo, useRef, Fragment } from 'react';
6
6
  import isEqual from 'lodash/isEqual';
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 { FabricEditorAnalyticsContext } from '@atlaskit/analytics-namespaced-context/FabricEditorAnalyticsContext';
10
10
  import { useAnalyticsEvents } from '@atlaskit/analytics-next/useAnalyticsEvents';
11
11
  import { ACTION } from '@atlaskit/editor-common/analytics';
@@ -12,7 +12,7 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
12
12
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
13
13
  import React from 'react';
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 { default as AnalyticsReactContext } from '@atlaskit/analytics-next-stable-react-context';
17
17
  import { ACTION, ACTION_SUBJECT, editorAnalyticsChannel, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
18
18
  import { getDocStructure } from '@atlaskit/editor-common/core-utils';
@@ -10,7 +10,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
10
10
  import React, { useCallback, useLayoutEffect, useMemo, useRef, useState, useEffect } from 'react';
11
11
  import { injectIntl } from 'react-intl';
12
12
  // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
13
- import uuid from 'uuid/v4';
13
+ import { v4 as uuid } from 'uuid';
14
14
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE, fireAnalyticsEvent, PLATFORMS } from '@atlaskit/editor-common/analytics';
15
15
  import { isSSR } from '@atlaskit/editor-common/core-utils';
16
16
  import { createDispatch, EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
@@ -1,3 +1,3 @@
1
1
  export var name = "@atlaskit/editor-core";
2
2
  // eslint-disable-next-line @atlaskit/volt-strict-mode/no-multiple-exports
3
- export var version = "226.4.0";
3
+ export var version = "226.4.2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "226.4.1",
3
+ "version": "226.4.3",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -89,10 +89,10 @@
89
89
  "prop-types": "^15.5.10",
90
90
  "react-loadable": "^5.1.0",
91
91
  "react-transition-group": "^4.4.1",
92
- "uuid": "^3.1.0"
92
+ "uuid": "^11.1.1"
93
93
  },
94
94
  "peerDependencies": {
95
- "@atlaskit/editor-common": "^120.13.0",
95
+ "@atlaskit/editor-common": "^120.14.0",
96
96
  "@atlaskit/link-provider": "^5.5.0",
97
97
  "@atlaskit/media-core": "^38.2.0",
98
98
  "react": "^18.2.0",
@@ -108,7 +108,7 @@
108
108
  "@atlaskit/analytics-gas-types": "^6.2.0",
109
109
  "@atlaskit/analytics-listeners": "^11.3.0",
110
110
  "@atlaskit/code": "^19.2.0",
111
- "@atlaskit/collab-provider": "^25.1.0",
111
+ "@atlaskit/collab-provider": "^25.2.0",
112
112
  "@atlaskit/docs": "^12.2.0",
113
113
  "@atlaskit/drawer": "^14.3.0",
114
114
  "@atlaskit/editor-plugin-alignment": "^17.0.0",
@@ -165,10 +165,10 @@
165
165
  "@atlassian/a11y-jest-testing": "^0.17.0",
166
166
  "@atlassian/a11y-playwright-testing": "^0.12.0",
167
167
  "@atlassian/adf-schema-json": "^1.35.0",
168
- "@atlassian/editor-rovo-bridge": "^14.0.0",
168
+ "@atlassian/editor-rovo-bridge": "^14.1.0",
169
169
  "@atlassian/experiment-test-utils": "^0.2.0",
170
170
  "@atlassian/feature-flags-test-utils": "^1.3.0",
171
- "@atlassian/search-client": "^2.19.0",
171
+ "@atlassian/search-client": "^2.20.0",
172
172
  "@atlassian/search-provider": "^17.1.0",
173
173
  "@atlassian/structured-docs-types": "workspace:^",
174
174
  "@atlassian/testing-library": "^0.11.0",