@atlaskit/editor-plugin-code-bidi-warning 16.0.0 → 17.0.0
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,46 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-code-bidi-warning
|
|
2
2
|
|
|
3
|
+
## 17.0.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 16.0.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`0927c3666c010`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0927c3666c010) -
|
|
14
|
+
Upgrade `uuid` from `3.x` to `11.1.1` to remediate GHSA-w5hq-g745-h8pq / SNYK-JS-UUID-16133035.
|
|
15
|
+
|
|
16
|
+
`uuid@11` removed the deep subpath exports (`uuid/v4`, `uuid/v1`, `uuid/v5`) and the default
|
|
17
|
+
export, so all internal call sites were migrated to named imports:
|
|
18
|
+
|
|
19
|
+
```diff
|
|
20
|
+
-import uuid from 'uuid/v4';
|
|
21
|
+
+import { v4 as uuid } from 'uuid';
|
|
22
|
+
|
|
23
|
+
-import uuid from 'uuid';
|
|
24
|
+
+import { v4 as uuid } from 'uuid';
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
With the exception of `@atlassian/integrations` (below), this is an internal implementation change
|
|
28
|
+
only - no public API, export, or entrypoint changed. UUID generation behaviour is unchanged
|
|
29
|
+
(`uuid@3`'s default export was already `v4`).
|
|
30
|
+
|
|
31
|
+
`@atlassian/integrations` declares `uuid` as a peer dependency, so its declared range moved from
|
|
32
|
+
`^3.1.0` to `^11.1.1`. That is a peer dependency declaration change, hence `minor` rather than
|
|
33
|
+
`patch` for that package.
|
|
34
|
+
|
|
35
|
+
The following `platform/packages/ai-mate` packages were also touched, but are all `private: true`
|
|
36
|
+
and so are intentionally not listed in the frontmatter above:
|
|
37
|
+
- `@atlassian/csm-assistance-service` - bumped its explicit `uuid` dependency from `npm:^9.0.0` to
|
|
38
|
+
`npm:^11.1.1` (`9.0.1` is also within the advisory's affected range).
|
|
39
|
+
- `@atlassian/csm-guidance-config` - example helper only, migrated to the named `uuid` import.
|
|
40
|
+
- `@atlassian/csm-ui-components` - example helper only, migrated to the named `uuid` import.
|
|
41
|
+
|
|
42
|
+
- Updated dependencies
|
|
43
|
+
|
|
3
44
|
## 16.0.0
|
|
4
45
|
|
|
5
46
|
### Patch Changes
|
|
@@ -8,7 +8,7 @@ exports.createBidiWarningsDecorationSetFromDoc = createBidiWarningsDecorationSet
|
|
|
8
8
|
exports.pluginFactoryCreator = void 0;
|
|
9
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
var
|
|
11
|
+
var _uuid = require("uuid");
|
|
12
12
|
var _bidiWarningUi = _interopRequireDefault(require("@atlaskit/code/bidi-warning-ui"));
|
|
13
13
|
var _bidiWarningDecorator = _interopRequireDefault(require("@atlaskit/code/bidi-warning/bidi-warning-decorator"));
|
|
14
14
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
@@ -83,7 +83,7 @@ function createBidiWarningsDecorationSetFromDoc(_ref) {
|
|
|
83
83
|
var position = _ref4.position,
|
|
84
84
|
bidiCharacter = _ref4.bidiCharacter;
|
|
85
85
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
86
|
-
var renderKey = (0,
|
|
86
|
+
var renderKey = (0, _uuid.v4)();
|
|
87
87
|
return _view.Decoration.widget(position, function (_el) {
|
|
88
88
|
return renderDOM({
|
|
89
89
|
bidiCharacter: bidiCharacter,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
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 CodeBidiWarning from '@atlaskit/code/bidi-warning-ui';
|
|
6
6
|
import codeBidiWarningDecorator from '@atlaskit/code/bidi-warning/bidi-warning-decorator';
|
|
7
7
|
import { pluginFactory, stepHasSlice } from '@atlaskit/editor-common/utils';
|
|
@@ -4,7 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
|
|
6
6
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
7
|
-
import uuid from 'uuid
|
|
7
|
+
import { v4 as uuid } from 'uuid';
|
|
8
8
|
import CodeBidiWarning from '@atlaskit/code/bidi-warning-ui';
|
|
9
9
|
import codeBidiWarningDecorator from '@atlaskit/code/bidi-warning/bidi-warning-decorator';
|
|
10
10
|
import { pluginFactory, stepHasSlice } from '@atlaskit/editor-common/utils';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-code-bidi-warning",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "17.0.0",
|
|
4
4
|
"description": "Code bidi warning plugin for @atlaskit/editor-core.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
"sideEffects": false,
|
|
20
20
|
"atlaskit:src": "src/index.ts",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@atlaskit/code": "^19.
|
|
23
|
-
"@atlaskit/editor-plugin-limited-mode": "^
|
|
22
|
+
"@atlaskit/code": "^19.2.0",
|
|
23
|
+
"@atlaskit/editor-plugin-limited-mode": "^14.0.0",
|
|
24
24
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
25
|
-
"@atlaskit/platform-feature-flags": "^2.
|
|
25
|
+
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
26
26
|
"@babel/runtime": "^7.0.0",
|
|
27
|
-
"uuid": "^
|
|
27
|
+
"uuid": "^11.1.1"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@atlaskit/editor-common": "^
|
|
30
|
+
"@atlaskit/editor-common": "^121.0.0",
|
|
31
31
|
"react": "^18.2.0 || ^19.2.0",
|
|
32
32
|
"react-dom": "^18.2.0 || ^19.2.0"
|
|
33
33
|
},
|
|
@@ -36,41 +36,5 @@
|
|
|
36
36
|
"react": "^19.2.0",
|
|
37
37
|
"react-dom": "^19.2.0",
|
|
38
38
|
"wait-for-expect": "^1.2.0"
|
|
39
|
-
},
|
|
40
|
-
"techstack": {
|
|
41
|
-
"@atlassian/frontend": {
|
|
42
|
-
"code-structure": [
|
|
43
|
-
"editor-plugin"
|
|
44
|
-
],
|
|
45
|
-
"import-structure": [
|
|
46
|
-
"atlassian-conventions"
|
|
47
|
-
],
|
|
48
|
-
"circular-dependencies": [
|
|
49
|
-
"file-and-folder-level"
|
|
50
|
-
]
|
|
51
|
-
},
|
|
52
|
-
"@repo/internal": {
|
|
53
|
-
"dom-events": "use-bind-event-listener",
|
|
54
|
-
"analytics": [
|
|
55
|
-
"analytics-next"
|
|
56
|
-
],
|
|
57
|
-
"design-tokens": [
|
|
58
|
-
"color"
|
|
59
|
-
],
|
|
60
|
-
"theming": [
|
|
61
|
-
"react-context"
|
|
62
|
-
],
|
|
63
|
-
"ui-components": [
|
|
64
|
-
"lite-mode"
|
|
65
|
-
],
|
|
66
|
-
"deprecation": "no-deprecated-imports",
|
|
67
|
-
"styling": [
|
|
68
|
-
"emotion",
|
|
69
|
-
"emotion"
|
|
70
|
-
],
|
|
71
|
-
"imports": [
|
|
72
|
-
"import-no-extraneous-disable-for-examples-and-docs"
|
|
73
|
-
]
|
|
74
|
-
}
|
|
75
39
|
}
|
|
76
40
|
}
|