@atlaskit/editor-plugin-selection-extension 7.0.3 → 7.0.5
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
|
@@ -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)(
|
|
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(
|
|
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(
|
|
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
|
+
"version": "7.0.5",
|
|
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.
|
|
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,27 +42,23 @@
|
|
|
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.
|
|
45
|
+
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
46
46
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
47
47
|
"@atlaskit/editor-toolbar": "^0.17.0",
|
|
48
|
-
"@atlaskit/icon": "^
|
|
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
|
-
"@atlaskit/
|
|
52
|
-
"@atlaskit/tmp-editor-statsig": "^13.23.0",
|
|
51
|
+
"@atlaskit/tmp-editor-statsig": "^14.0.0",
|
|
53
52
|
"@babel/runtime": "^7.0.0",
|
|
54
53
|
"lodash": "^4.17.21",
|
|
55
54
|
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
56
55
|
"uuid": "^3.1.0"
|
|
57
56
|
},
|
|
58
57
|
"peerDependencies": {
|
|
59
|
-
"@atlaskit/editor-common": "^110.
|
|
58
|
+
"@atlaskit/editor-common": "^110.36.0",
|
|
60
59
|
"react": "^18.2.0"
|
|
61
60
|
},
|
|
62
61
|
"devDependencies": {
|
|
63
|
-
"@af/integration-testing": "workspace:^",
|
|
64
|
-
"@af/visual-regression": "workspace:^",
|
|
65
|
-
"@atlaskit/ssr": "workspace:^",
|
|
66
62
|
"@testing-library/react": "^13.4.0",
|
|
67
63
|
"react-dom": "^18.2.0",
|
|
68
64
|
"wait-for-expect": "^1.2.0"
|