@atlaskit/editor-plugin-selection-extension 7.0.3 → 7.0.4

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,11 @@
1
1
  # @atlaskit/editor-plugin-selection-extension
2
2
 
3
+ ## 7.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 7.0.3
4
10
 
5
11
  ### Patch Changes
@@ -17,7 +17,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
17
17
  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) { (0, _defineProperty2.default)(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; } /**
18
18
  * @jsxRuntime classic
19
19
  * @jsx
20
- */
20
+ */ // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
21
21
  var transformExtensionsToItems = function transformExtensionsToItems(extensions) {
22
22
  var extensionToItems = extensions.map(function (extension) {
23
23
  return {
@@ -36,7 +36,9 @@ var SelectionExtensionItemsComponent = exports.SelectionExtensionItemsComponent
36
36
  var extensions = _ref.extensions,
37
37
  onExtensionClick = _ref.onExtensionClick,
38
38
  editorAnalyticsAPI = _ref.editorAnalyticsAPI;
39
- var extensionsWithIdentifier = (0, _react.useMemo)(function () {
39
+ var extensionsWithIdentifier = (0, _react.useMemo)(
40
+ // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
41
+ function () {
40
42
  return extensions.map(function (extension) {
41
43
  return _objectSpread(_objectSpread({}, extension), {}, {
42
44
  id: (0, _uuid.v4)()
@@ -5,6 +5,7 @@
5
5
 
6
6
  import React, { useMemo } from 'react';
7
7
  import { injectIntl } from 'react-intl-next';
8
+ // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
8
9
  import { v4 as uuid } from 'uuid';
9
10
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
10
11
  import { SelectionExtensionDropdownMenu } from './SelectionExtensionDropdownMenu';
@@ -27,7 +28,9 @@ export const SelectionExtensionItemsComponent = ({
27
28
  onExtensionClick,
28
29
  editorAnalyticsAPI
29
30
  }) => {
30
- const extensionsWithIdentifier = useMemo(() => extensions.map(extension => ({
31
+ const extensionsWithIdentifier = useMemo(
32
+ // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
33
+ () => extensions.map(extension => ({
31
34
  ...extension,
32
35
  id: uuid()
33
36
  })), [extensions]);
@@ -8,6 +8,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
8
8
 
9
9
  import React, { useMemo } from 'react';
10
10
  import { injectIntl } from 'react-intl-next';
11
+ // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
11
12
  import { v4 as uuid } from 'uuid';
12
13
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
13
14
  import { SelectionExtensionDropdownMenu } from './SelectionExtensionDropdownMenu';
@@ -29,7 +30,9 @@ export var SelectionExtensionItemsComponent = function SelectionExtensionItemsCo
29
30
  var extensions = _ref.extensions,
30
31
  onExtensionClick = _ref.onExtensionClick,
31
32
  editorAnalyticsAPI = _ref.editorAnalyticsAPI;
32
- var extensionsWithIdentifier = useMemo(function () {
33
+ var extensionsWithIdentifier = useMemo(
34
+ // eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
35
+ function () {
33
36
  return extensions.map(function (extension) {
34
37
  return _objectSpread(_objectSpread({}, extension), {}, {
35
38
  id: uuid()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-selection-extension",
3
- "version": "7.0.3",
3
+ "version": "7.0.4",
4
4
  "description": "editor-plugin-selection-extension plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,7 +32,7 @@
32
32
  ],
33
33
  "atlaskit:src": "src/index.ts",
34
34
  "dependencies": {
35
- "@atlaskit/adf-utils": "^19.25.0",
35
+ "@atlaskit/adf-utils": "^19.26.0",
36
36
  "@atlaskit/editor-json-transformer": "^8.31.0",
37
37
  "@atlaskit/editor-plugin-analytics": "^6.2.0",
38
38
  "@atlaskit/editor-plugin-block-menu": "^5.0.0",
@@ -42,21 +42,21 @@
42
42
  "@atlaskit/editor-plugin-toolbar": "^3.4.0",
43
43
  "@atlaskit/editor-plugin-user-preferences": "^4.0.0",
44
44
  "@atlaskit/editor-prosemirror": "7.0.0",
45
- "@atlaskit/editor-shared-styles": "^3.8.0",
45
+ "@atlaskit/editor-shared-styles": "^3.9.0",
46
46
  "@atlaskit/editor-tables": "^2.9.0",
47
47
  "@atlaskit/editor-toolbar": "^0.17.0",
48
- "@atlaskit/icon": "^28.5.0",
48
+ "@atlaskit/icon": "^29.0.0",
49
49
  "@atlaskit/platform-feature-flags": "^1.1.0",
50
50
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
51
51
  "@atlaskit/primitives": "^16.1.0",
52
- "@atlaskit/tmp-editor-statsig": "^13.23.0",
52
+ "@atlaskit/tmp-editor-statsig": "^13.35.0",
53
53
  "@babel/runtime": "^7.0.0",
54
54
  "lodash": "^4.17.21",
55
55
  "react-intl-next": "npm:react-intl@^5.18.1",
56
56
  "uuid": "^3.1.0"
57
57
  },
58
58
  "peerDependencies": {
59
- "@atlaskit/editor-common": "^110.20.0",
59
+ "@atlaskit/editor-common": "^110.27.0",
60
60
  "react": "^18.2.0"
61
61
  },
62
62
  "devDependencies": {