@atlaskit/editor-plugin-card 22.1.6 → 22.1.9
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 +47 -0
- package/dist/cjs/nodeviews/blockCard.js +2 -2
- package/dist/cjs/nodeviews/embedCard.js +2 -2
- package/dist/cjs/nodeviews/inlineCardBase.js +2 -2
- package/dist/es2019/nodeviews/blockCard.js +1 -1
- package/dist/es2019/nodeviews/embedCard.js +1 -1
- package/dist/es2019/nodeviews/inlineCardBase.js +1 -1
- package/dist/esm/nodeviews/blockCard.js +1 -1
- package/dist/esm/nodeviews/embedCard.js +1 -1
- package/dist/esm/nodeviews/inlineCardBase.js +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,52 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-card
|
|
2
2
|
|
|
3
|
+
## 22.1.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 22.1.8
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 22.1.7
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [`0927c3666c010`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0927c3666c010) -
|
|
20
|
+
Upgrade `uuid` from `3.x` to `11.1.1` to remediate GHSA-w5hq-g745-h8pq / SNYK-JS-UUID-16133035.
|
|
21
|
+
|
|
22
|
+
`uuid@11` removed the deep subpath exports (`uuid/v4`, `uuid/v1`, `uuid/v5`) and the default
|
|
23
|
+
export, so all internal call sites were migrated to named imports:
|
|
24
|
+
|
|
25
|
+
```diff
|
|
26
|
+
-import uuid from 'uuid/v4';
|
|
27
|
+
+import { v4 as uuid } from 'uuid';
|
|
28
|
+
|
|
29
|
+
-import uuid from 'uuid';
|
|
30
|
+
+import { v4 as uuid } from 'uuid';
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
With the exception of `@atlassian/integrations` (below), this is an internal implementation change
|
|
34
|
+
only - no public API, export, or entrypoint changed. UUID generation behaviour is unchanged
|
|
35
|
+
(`uuid@3`'s default export was already `v4`).
|
|
36
|
+
|
|
37
|
+
`@atlassian/integrations` declares `uuid` as a peer dependency, so its declared range moved from
|
|
38
|
+
`^3.1.0` to `^11.1.1`. That is a peer dependency declaration change, hence `minor` rather than
|
|
39
|
+
`patch` for that package.
|
|
40
|
+
|
|
41
|
+
The following `platform/packages/ai-mate` packages were also touched, but are all `private: true`
|
|
42
|
+
and so are intentionally not listed in the frontmatter above:
|
|
43
|
+
- `@atlassian/csm-assistance-service` - bumped its explicit `uuid` dependency from `npm:^9.0.0` to
|
|
44
|
+
`npm:^11.1.1` (`9.0.1` is also within the advisory's affected range).
|
|
45
|
+
- `@atlassian/csm-guidance-config` - example helper only, migrated to the named `uuid` import.
|
|
46
|
+
- `@atlassian/csm-ui-components` - example helper only, migrated to the named `uuid` import.
|
|
47
|
+
|
|
48
|
+
- Updated dependencies
|
|
49
|
+
|
|
3
50
|
## 22.1.6
|
|
4
51
|
|
|
5
52
|
### Patch Changes
|
|
@@ -14,7 +14,7 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
|
|
|
14
14
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
15
|
var _react = _interopRequireDefault(require("react"));
|
|
16
16
|
var _rafSchd = _interopRequireDefault(require("raf-schd"));
|
|
17
|
-
var
|
|
17
|
+
var _uuid = require("uuid");
|
|
18
18
|
var _browser = require("@atlaskit/editor-common/browser");
|
|
19
19
|
var _reactNodeView = _interopRequireDefault(require("@atlaskit/editor-common/react-node-view"));
|
|
20
20
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
@@ -165,7 +165,7 @@ var BlockCard = exports.BlockCard = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
165
165
|
}
|
|
166
166
|
_this2 = _callSuper(this, BlockCard, [].concat(args));
|
|
167
167
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
168
|
-
(0, _defineProperty2.default)(_this2, "id", (0,
|
|
168
|
+
(0, _defineProperty2.default)(_this2, "id", (0, _uuid.v4)());
|
|
169
169
|
(0, _defineProperty2.default)(_this2, "updateContentEditable", function (editorViewModeState, divElement) {
|
|
170
170
|
divElement.contentEditable = (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view' ? 'false' : 'true';
|
|
171
171
|
});
|
|
@@ -15,7 +15,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
15
15
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
16
16
|
var _react = _interopRequireDefault(require("react"));
|
|
17
17
|
var _rafSchd = _interopRequireDefault(require("raf-schd"));
|
|
18
|
-
var
|
|
18
|
+
var _uuid = require("uuid");
|
|
19
19
|
var _setAttrs = require("@atlaskit/adf-schema/steps/set-attrs");
|
|
20
20
|
var _urlCheckers = require("@atlaskit/editor-card-provider/url-checkers");
|
|
21
21
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
@@ -488,7 +488,7 @@ var EmbedCard = exports.EmbedCard = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
488
488
|
}
|
|
489
489
|
_this2 = _callSuper(this, EmbedCard, [].concat(args));
|
|
490
490
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
491
|
-
(0, _defineProperty2.default)(_this2, "id", (0,
|
|
491
|
+
(0, _defineProperty2.default)(_this2, "id", (0, _uuid.v4)());
|
|
492
492
|
(0, _defineProperty2.default)(_this2, "updateContentEditable", function (editorViewModeState, divElement) {
|
|
493
493
|
divElement.contentEditable = (editorViewModeState === null || editorViewModeState === void 0 ? void 0 : editorViewModeState.mode) === 'view' ? 'false' : 'true';
|
|
494
494
|
});
|
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.InlineCard = void 0;
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _rafSchd = _interopRequireDefault(require("raf-schd"));
|
|
11
|
-
var
|
|
11
|
+
var _uuid = require("uuid");
|
|
12
12
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
13
13
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
14
14
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
@@ -42,7 +42,7 @@ var InlineCard = exports.InlineCard = /*#__PURE__*/(0, _react.memo)(function (_r
|
|
|
42
42
|
url = _node$attrs.url,
|
|
43
43
|
data = _node$attrs.data;
|
|
44
44
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
45
|
-
var refId = (0, _react.useRef)((0,
|
|
45
|
+
var refId = (0, _react.useRef)((0, _uuid.v4)());
|
|
46
46
|
var removeCardDispatched = (0, _react.useRef)(false);
|
|
47
47
|
var _ref2 = (cardContext === null || cardContext === void 0 || (_cardContext$value = cardContext.value) === null || _cardContext$value === void 0 ? void 0 : _cardContext$value.store) || {},
|
|
48
48
|
getSmartlinkState = _ref2.getState;
|
|
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import rafSchedule from 'raf-schd';
|
|
4
4
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
5
|
-
import uuid from 'uuid
|
|
5
|
+
import { v4 as uuid } from 'uuid';
|
|
6
6
|
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
7
7
|
import ReactNodeView from '@atlaskit/editor-common/react-node-view';
|
|
8
8
|
import { findOverflowScrollParent, UnsupportedBlock } from '@atlaskit/editor-common/ui';
|
|
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import rafSchedule from 'raf-schd';
|
|
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 { isConfluenceSlideUrl } from '@atlaskit/editor-card-provider/url-checkers';
|
|
9
9
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { memo, useCallback, useEffect, useMemo, useRef } from 'react';
|
|
2
2
|
import rafSchedule from 'raf-schd';
|
|
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 { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
6
6
|
import { findOverflowScrollParent } from '@atlaskit/editor-common/ui';
|
|
7
7
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
@@ -11,7 +11,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
11
11
|
import React from 'react';
|
|
12
12
|
import rafSchedule from 'raf-schd';
|
|
13
13
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
14
|
-
import uuid from 'uuid
|
|
14
|
+
import { v4 as uuid } from 'uuid';
|
|
15
15
|
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
16
16
|
import ReactNodeView from '@atlaskit/editor-common/react-node-view';
|
|
17
17
|
import { findOverflowScrollParent, UnsupportedBlock } from '@atlaskit/editor-common/ui';
|
|
@@ -14,7 +14,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
14
14
|
import React from 'react';
|
|
15
15
|
import rafSchedule from 'raf-schd';
|
|
16
16
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
17
|
-
import uuid from 'uuid
|
|
17
|
+
import { v4 as uuid } from 'uuid';
|
|
18
18
|
import { SetAttrsStep } from '@atlaskit/adf-schema/steps/set-attrs';
|
|
19
19
|
import { isConfluenceSlideUrl } from '@atlaskit/editor-card-provider/url-checkers';
|
|
20
20
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { memo, useCallback, useEffect, useMemo, useRef } from 'react';
|
|
2
2
|
import rafSchedule from 'raf-schd';
|
|
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 { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
6
6
|
import { findOverflowScrollParent } from '@atlaskit/editor-common/ui';
|
|
7
7
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "22.1.
|
|
3
|
+
"version": "22.1.9",
|
|
4
4
|
"description": "Card 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.
|
|
24
|
+
"@atlaskit/adf-schema": "^57.3.0",
|
|
25
25
|
"@atlaskit/analytics-next": "^12.5.0",
|
|
26
26
|
"@atlaskit/button": "^25.3.0",
|
|
27
27
|
"@atlaskit/css": "^1.1.0",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@atlaskit/link": "^5.1.0",
|
|
53
53
|
"@atlaskit/link-analytics": "^12.3.0",
|
|
54
54
|
"@atlaskit/link-client-extension": "^7.3.0",
|
|
55
|
-
"@atlaskit/link-datasource": "^6.
|
|
55
|
+
"@atlaskit/link-datasource": "^6.11.0",
|
|
56
56
|
"@atlaskit/link-extractors": "^4.2.0",
|
|
57
57
|
"@atlaskit/linking-common": "^12.1.0",
|
|
58
58
|
"@atlaskit/linking-types": "^15.2.0",
|
|
@@ -62,18 +62,18 @@
|
|
|
62
62
|
"@atlaskit/platform-feature-flags-react": "^1.2.0",
|
|
63
63
|
"@atlaskit/primitives": "^22.5.0",
|
|
64
64
|
"@atlaskit/prosemirror-history": "^1.2.0",
|
|
65
|
-
"@atlaskit/smart-card": "^45.
|
|
66
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
65
|
+
"@atlaskit/smart-card": "^45.20.0",
|
|
66
|
+
"@atlaskit/tmp-editor-statsig": "^176.0.0",
|
|
67
67
|
"@atlaskit/tokens": "^16.11.0",
|
|
68
68
|
"@babel/runtime": "^7.0.0",
|
|
69
69
|
"@emotion/react": "^11.7.1",
|
|
70
70
|
"lodash": "^4.17.21",
|
|
71
71
|
"prop-types": "^15.5.10",
|
|
72
72
|
"raf-schd": "^4.0.3",
|
|
73
|
-
"uuid": "^
|
|
73
|
+
"uuid": "^11.1.1"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
|
-
"@atlaskit/editor-common": "^120.
|
|
76
|
+
"@atlaskit/editor-common": "^120.16.0",
|
|
77
77
|
"@atlaskit/link-provider": "^5.5.0",
|
|
78
78
|
"react": "^18.2.0 || ^19.2.0",
|
|
79
79
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|