@atlaskit/editor-plugin-panel 4.4.12 → 5.1.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,57 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-panel
|
|
2
2
|
|
|
3
|
+
## 5.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#175869](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/175869)
|
|
8
|
+
[`e7f822af7edc1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e7f822af7edc1) -
|
|
9
|
+
Updated usages of deprecated icons with replacement icons
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 5.0.0
|
|
16
|
+
|
|
17
|
+
### Major Changes
|
|
18
|
+
|
|
19
|
+
- [#181024](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/181024)
|
|
20
|
+
[`8e80c487ca307`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8e80c487ca307) - ##
|
|
21
|
+
Make `@atlaskit/editor-common` a peer dependency
|
|
22
|
+
|
|
23
|
+
**WHAT:** `@atlaskit/editor-common` has been moved from `dependencies` to `peerDependencies` in
|
|
24
|
+
all editor plugin packages.
|
|
25
|
+
|
|
26
|
+
**WHY:** This change ensures that only a single version of `@atlaskit/editor-common` is used in
|
|
27
|
+
consuming applications, preventing issues caused by multiple versions of singleton libraries (such
|
|
28
|
+
as context mismatches or duplicated state). This is especially important for packages that rely on
|
|
29
|
+
shared context or singletons.
|
|
30
|
+
|
|
31
|
+
**HOW TO ADJUST:**
|
|
32
|
+
|
|
33
|
+
- Consumers must now explicitly install `@atlaskit/editor-common` in their own project if they use
|
|
34
|
+
any of these editor plugins.
|
|
35
|
+
- Ensure the version you install matches the version required by the plugins.
|
|
36
|
+
- You can use the
|
|
37
|
+
[`check-peer-dependencies`](https://www.npmjs.com/package/check-peer-dependencies) package to
|
|
38
|
+
verify that all required peer dependencies are installed and compatible.
|
|
39
|
+
- Example install command:
|
|
40
|
+
```
|
|
41
|
+
npm install @atlaskit/editor-common
|
|
42
|
+
```
|
|
43
|
+
or
|
|
44
|
+
```
|
|
45
|
+
yarn add @atlaskit/editor-common
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
**Note:** This is a breaking change. If `@atlaskit/editor-common` is not installed at the
|
|
49
|
+
application level, you may see errors or unexpected behavior.
|
|
50
|
+
|
|
51
|
+
### Patch Changes
|
|
52
|
+
|
|
53
|
+
- Updated dependencies
|
|
54
|
+
|
|
3
55
|
## 4.4.12
|
|
4
56
|
|
|
5
57
|
### Patch Changes
|
|
@@ -10,32 +10,32 @@ var _adfSchema = require("@atlaskit/adf-schema");
|
|
|
10
10
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
11
11
|
var _crossCircle = _interopRequireDefault(require("@atlaskit/icon/core/cross-circle"));
|
|
12
12
|
var _customize = _interopRequireDefault(require("@atlaskit/icon/core/customize"));
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
16
|
-
var
|
|
13
|
+
var _statusDiscovery = _interopRequireDefault(require("@atlaskit/icon/core/status-discovery"));
|
|
14
|
+
var _statusInformation = _interopRequireDefault(require("@atlaskit/icon/core/status-information"));
|
|
15
|
+
var _statusSuccess = _interopRequireDefault(require("@atlaskit/icon/core/status-success"));
|
|
16
|
+
var _statusWarning = _interopRequireDefault(require("@atlaskit/icon/core/status-warning"));
|
|
17
17
|
var _actions = require("../editor-actions/actions");
|
|
18
18
|
var panelTitleAndIcon = (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, _adfSchema.PanelType.INFO, {
|
|
19
19
|
title: _messages.panelMessages.info,
|
|
20
|
-
icon: (0,
|
|
20
|
+
icon: (0, _statusInformation.default)({
|
|
21
21
|
label: 'info-icon',
|
|
22
22
|
color: "var(--ds-icon-information, #1D7AFC)"
|
|
23
23
|
})
|
|
24
24
|
}), _adfSchema.PanelType.NOTE, {
|
|
25
25
|
title: _messages.panelMessages.note,
|
|
26
|
-
icon: (0,
|
|
26
|
+
icon: (0, _statusDiscovery.default)({
|
|
27
27
|
label: 'note-icon',
|
|
28
28
|
color: "var(--ds-icon-discovery, #8270DB)"
|
|
29
29
|
})
|
|
30
30
|
}), _adfSchema.PanelType.SUCCESS, {
|
|
31
31
|
title: _messages.panelMessages.success,
|
|
32
|
-
icon: (0,
|
|
32
|
+
icon: (0, _statusSuccess.default)({
|
|
33
33
|
label: 'success-icon',
|
|
34
34
|
color: "var(--ds-icon-success, #22A06B)"
|
|
35
35
|
})
|
|
36
36
|
}), _adfSchema.PanelType.WARNING, {
|
|
37
37
|
title: _messages.panelMessages.warning,
|
|
38
|
-
icon: (0,
|
|
38
|
+
icon: (0, _statusWarning.default)({
|
|
39
39
|
label: 'warning-icon',
|
|
40
40
|
color: "var(--ds-icon-warning, #E56910)"
|
|
41
41
|
})
|
|
@@ -2,36 +2,36 @@ import { PanelType } from '@atlaskit/adf-schema';
|
|
|
2
2
|
import { panelMessages as messages } from '@atlaskit/editor-common/messages';
|
|
3
3
|
import CrossCircleIcon from '@atlaskit/icon/core/cross-circle';
|
|
4
4
|
import CustomizeIcon from '@atlaskit/icon/core/customize';
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
5
|
+
import StatusDiscoveryIcon from '@atlaskit/icon/core/status-discovery';
|
|
6
|
+
import StatusInformationIcon from '@atlaskit/icon/core/status-information';
|
|
7
|
+
import StatusSuccessIcon from '@atlaskit/icon/core/status-success';
|
|
8
|
+
import StatusWarningIcon from '@atlaskit/icon/core/status-warning';
|
|
9
9
|
import { changePanelType } from '../editor-actions/actions';
|
|
10
10
|
const panelTitleAndIcon = {
|
|
11
11
|
[PanelType.INFO]: {
|
|
12
12
|
title: messages.info,
|
|
13
|
-
icon:
|
|
13
|
+
icon: StatusInformationIcon({
|
|
14
14
|
label: 'info-icon',
|
|
15
15
|
color: "var(--ds-icon-information, #1D7AFC)"
|
|
16
16
|
})
|
|
17
17
|
},
|
|
18
18
|
[PanelType.NOTE]: {
|
|
19
19
|
title: messages.note,
|
|
20
|
-
icon:
|
|
20
|
+
icon: StatusDiscoveryIcon({
|
|
21
21
|
label: 'note-icon',
|
|
22
22
|
color: "var(--ds-icon-discovery, #8270DB)"
|
|
23
23
|
})
|
|
24
24
|
},
|
|
25
25
|
[PanelType.SUCCESS]: {
|
|
26
26
|
title: messages.success,
|
|
27
|
-
icon:
|
|
27
|
+
icon: StatusSuccessIcon({
|
|
28
28
|
label: 'success-icon',
|
|
29
29
|
color: "var(--ds-icon-success, #22A06B)"
|
|
30
30
|
})
|
|
31
31
|
},
|
|
32
32
|
[PanelType.WARNING]: {
|
|
33
33
|
title: messages.warning,
|
|
34
|
-
icon:
|
|
34
|
+
icon: StatusWarningIcon({
|
|
35
35
|
label: 'warning-icon',
|
|
36
36
|
color: "var(--ds-icon-warning, #E56910)"
|
|
37
37
|
})
|
|
@@ -3,32 +3,32 @@ import { PanelType } from '@atlaskit/adf-schema';
|
|
|
3
3
|
import { panelMessages as messages } from '@atlaskit/editor-common/messages';
|
|
4
4
|
import CrossCircleIcon from '@atlaskit/icon/core/cross-circle';
|
|
5
5
|
import CustomizeIcon from '@atlaskit/icon/core/customize';
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
6
|
+
import StatusDiscoveryIcon from '@atlaskit/icon/core/status-discovery';
|
|
7
|
+
import StatusInformationIcon from '@atlaskit/icon/core/status-information';
|
|
8
|
+
import StatusSuccessIcon from '@atlaskit/icon/core/status-success';
|
|
9
|
+
import StatusWarningIcon from '@atlaskit/icon/core/status-warning';
|
|
10
10
|
import { changePanelType } from '../editor-actions/actions';
|
|
11
11
|
var panelTitleAndIcon = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, PanelType.INFO, {
|
|
12
12
|
title: messages.info,
|
|
13
|
-
icon:
|
|
13
|
+
icon: StatusInformationIcon({
|
|
14
14
|
label: 'info-icon',
|
|
15
15
|
color: "var(--ds-icon-information, #1D7AFC)"
|
|
16
16
|
})
|
|
17
17
|
}), PanelType.NOTE, {
|
|
18
18
|
title: messages.note,
|
|
19
|
-
icon:
|
|
19
|
+
icon: StatusDiscoveryIcon({
|
|
20
20
|
label: 'note-icon',
|
|
21
21
|
color: "var(--ds-icon-discovery, #8270DB)"
|
|
22
22
|
})
|
|
23
23
|
}), PanelType.SUCCESS, {
|
|
24
24
|
title: messages.success,
|
|
25
|
-
icon:
|
|
25
|
+
icon: StatusSuccessIcon({
|
|
26
26
|
label: 'success-icon',
|
|
27
27
|
color: "var(--ds-icon-success, #22A06B)"
|
|
28
28
|
})
|
|
29
29
|
}), PanelType.WARNING, {
|
|
30
30
|
title: messages.warning,
|
|
31
|
-
icon:
|
|
31
|
+
icon: StatusWarningIcon({
|
|
32
32
|
label: 'warning-icon',
|
|
33
33
|
color: "var(--ds-icon-warning, #E56910)"
|
|
34
34
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-panel",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"description": "Panel plugin for @atlaskit/editor-core.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -9,8 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"atlassian": {
|
|
11
11
|
"team": "Editor: Jenga",
|
|
12
|
-
"singleton": true
|
|
13
|
-
"runReact18": true
|
|
12
|
+
"singleton": true
|
|
14
13
|
},
|
|
15
14
|
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
16
15
|
"main": "dist/cjs/index.js",
|
|
@@ -32,23 +31,23 @@
|
|
|
32
31
|
},
|
|
33
32
|
"dependencies": {
|
|
34
33
|
"@atlaskit/adf-schema": "^47.6.0",
|
|
35
|
-
"@atlaskit/editor-common": "^107.0.0",
|
|
36
34
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
37
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
38
|
-
"@atlaskit/editor-plugin-decorations": "^
|
|
39
|
-
"@atlaskit/editor-plugin-emoji": "^
|
|
35
|
+
"@atlaskit/editor-plugin-analytics": "^3.0.0",
|
|
36
|
+
"@atlaskit/editor-plugin-decorations": "^3.0.0",
|
|
37
|
+
"@atlaskit/editor-plugin-emoji": "^4.0.0",
|
|
40
38
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
41
39
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
42
40
|
"@atlaskit/emoji": "^69.3.0",
|
|
43
|
-
"@atlaskit/icon": "^27.
|
|
41
|
+
"@atlaskit/icon": "^27.3.0",
|
|
44
42
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
45
43
|
"@atlaskit/theme": "^18.0.0",
|
|
46
|
-
"@atlaskit/tmp-editor-statsig": "^8.
|
|
47
|
-
"@atlaskit/tokens": "^5.
|
|
44
|
+
"@atlaskit/tmp-editor-statsig": "^8.8.0",
|
|
45
|
+
"@atlaskit/tokens": "^5.4.0",
|
|
48
46
|
"@babel/runtime": "^7.0.0",
|
|
49
47
|
"uuid": "^3.1.0"
|
|
50
48
|
},
|
|
51
49
|
"peerDependencies": {
|
|
50
|
+
"@atlaskit/editor-common": "^107.7.0",
|
|
52
51
|
"react": "^18.2.0",
|
|
53
52
|
"react-dom": "^18.2.0",
|
|
54
53
|
"react-intl-next": "npm:react-intl@^5.18.1"
|