@atlaskit/editor-plugin-status 3.1.26 → 4.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 +40 -0
- package/dist/cjs/nodeviews/statusNodeSpec.js +1 -1
- package/dist/es2019/nodeviews/statusNodeSpec.js +1 -1
- package/dist/es2019/pm-plugins/plugin.js +2 -2
- package/dist/esm/nodeviews/statusNodeSpec.js +1 -1
- package/dist/esm/pm-plugins/plugin.js +2 -2
- package/dist/types/statusPluginType.d.ts +1 -1
- package/dist/types-ts4.5/statusPluginType.d.ts +1 -1
- package/package.json +5 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-status
|
|
2
2
|
|
|
3
|
+
## 4.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#181024](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/181024)
|
|
8
|
+
[`8e80c487ca307`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8e80c487ca307) - ##
|
|
9
|
+
Make `@atlaskit/editor-common` a peer dependency
|
|
10
|
+
|
|
11
|
+
**WHAT:** `@atlaskit/editor-common` has been moved from `dependencies` to `peerDependencies` in
|
|
12
|
+
all editor plugin packages.
|
|
13
|
+
|
|
14
|
+
**WHY:** This change ensures that only a single version of `@atlaskit/editor-common` is used in
|
|
15
|
+
consuming applications, preventing issues caused by multiple versions of singleton libraries (such
|
|
16
|
+
as context mismatches or duplicated state). This is especially important for packages that rely on
|
|
17
|
+
shared context or singletons.
|
|
18
|
+
|
|
19
|
+
**HOW TO ADJUST:**
|
|
20
|
+
|
|
21
|
+
- Consumers must now explicitly install `@atlaskit/editor-common` in their own project if they use
|
|
22
|
+
any of these editor plugins.
|
|
23
|
+
- Ensure the version you install matches the version required by the plugins.
|
|
24
|
+
- You can use the
|
|
25
|
+
[`check-peer-dependencies`](https://www.npmjs.com/package/check-peer-dependencies) package to
|
|
26
|
+
verify that all required peer dependencies are installed and compatible.
|
|
27
|
+
- Example install command:
|
|
28
|
+
```
|
|
29
|
+
npm install @atlaskit/editor-common
|
|
30
|
+
```
|
|
31
|
+
or
|
|
32
|
+
```
|
|
33
|
+
yarn add @atlaskit/editor-common
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
**Note:** This is a breaking change. If `@atlaskit/editor-common` is not installed at the
|
|
37
|
+
application level, you may see errors or unexpected behavior.
|
|
38
|
+
|
|
39
|
+
### Patch Changes
|
|
40
|
+
|
|
41
|
+
- Updated dependencies
|
|
42
|
+
|
|
3
43
|
## 3.1.26
|
|
4
44
|
|
|
5
45
|
### Patch Changes
|
|
@@ -24,7 +24,7 @@ var statusToDOM = exports.statusToDOM = function statusToDOM(node) {
|
|
|
24
24
|
class: 'statusView-content-wrap inlineNodeView',
|
|
25
25
|
'data-testid': 'statusContainerView',
|
|
26
26
|
'data-prosemirror-node-name': 'status',
|
|
27
|
-
|
|
27
|
+
localid: localId
|
|
28
28
|
};
|
|
29
29
|
var statusElementAttrs = {
|
|
30
30
|
style: (0, _lazyNodeView.convertToInlineCss)(isAndroidChromium ? {
|
|
@@ -16,7 +16,7 @@ export const statusToDOM = node => {
|
|
|
16
16
|
class: 'statusView-content-wrap inlineNodeView',
|
|
17
17
|
'data-testid': 'statusContainerView',
|
|
18
18
|
'data-prosemirror-node-name': 'status',
|
|
19
|
-
|
|
19
|
+
localid: localId
|
|
20
20
|
};
|
|
21
21
|
const statusElementAttrs = {
|
|
22
22
|
style: convertToInlineCss(isAndroidChromium ? {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
2
|
import { pmHistoryPluginKey } from '@atlaskit/editor-common/utils';
|
|
3
3
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
-
import { StatusNodeView
|
|
4
|
+
import { StatusNodeView } from '../nodeviews/StatusNodeView';
|
|
5
5
|
import { pluginKey } from './plugin-key';
|
|
6
6
|
import { isEmptyStatus, mayGetStatusAtSelection } from './utils';
|
|
7
7
|
const createPlugin = (pmPluginFactoryParams, options) => new SafePlugin({
|
|
@@ -101,7 +101,7 @@ const createPlugin = (pmPluginFactoryParams, options) => new SafePlugin({
|
|
|
101
101
|
props: {
|
|
102
102
|
nodeViews: {
|
|
103
103
|
status: node => {
|
|
104
|
-
return new
|
|
104
|
+
return new StatusNodeView(node, pmPluginFactoryParams.getIntl());
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
}
|
|
@@ -18,7 +18,7 @@ export var statusToDOM = function statusToDOM(node) {
|
|
|
18
18
|
class: 'statusView-content-wrap inlineNodeView',
|
|
19
19
|
'data-testid': 'statusContainerView',
|
|
20
20
|
'data-prosemirror-node-name': 'status',
|
|
21
|
-
|
|
21
|
+
localid: localId
|
|
22
22
|
};
|
|
23
23
|
var statusElementAttrs = {
|
|
24
24
|
style: convertToInlineCss(isAndroidChromium ? {
|
|
@@ -4,7 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
5
5
|
import { pmHistoryPluginKey } from '@atlaskit/editor-common/utils';
|
|
6
6
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
7
|
-
import { StatusNodeView
|
|
7
|
+
import { StatusNodeView } from '../nodeviews/StatusNodeView';
|
|
8
8
|
import { pluginKey } from './plugin-key';
|
|
9
9
|
import { isEmptyStatus, mayGetStatusAtSelection } from './utils';
|
|
10
10
|
var createPlugin = function createPlugin(pmPluginFactoryParams, options) {
|
|
@@ -102,7 +102,7 @@ var createPlugin = function createPlugin(pmPluginFactoryParams, options) {
|
|
|
102
102
|
props: {
|
|
103
103
|
nodeViews: {
|
|
104
104
|
status: function status(node) {
|
|
105
|
-
return new
|
|
105
|
+
return new StatusNodeView(node, pmPluginFactoryParams.getIntl());
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import { type INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import type { NextEditorPlugin, OptionalPlugin, Command } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
4
4
|
import type { commitStatusPicker, insertStatus, removeStatus, UpdateStatus } from './pm-plugins/actions';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import { type INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import type { NextEditorPlugin, OptionalPlugin, Command } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
4
4
|
import type { commitStatusPicker, insertStatus, removeStatus, UpdateStatus } from './pm-plugins/actions';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-status",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Status 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: Core Experiences",
|
|
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",
|
|
@@ -35,21 +34,21 @@
|
|
|
35
34
|
"dependencies": {
|
|
36
35
|
"@atlaskit/adf-schema": "^47.6.0",
|
|
37
36
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
38
|
-
"@atlaskit/editor-
|
|
39
|
-
"@atlaskit/editor-plugin-analytics": "^2.3.0",
|
|
37
|
+
"@atlaskit/editor-plugin-analytics": "^3.0.0",
|
|
40
38
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
41
39
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
42
40
|
"@atlaskit/icon": "^27.2.0",
|
|
43
41
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
44
42
|
"@atlaskit/status": "^3.0.0",
|
|
45
43
|
"@atlaskit/theme": "^18.0.0",
|
|
46
|
-
"@atlaskit/tmp-editor-statsig": "^8.
|
|
44
|
+
"@atlaskit/tmp-editor-statsig": "^8.7.0",
|
|
47
45
|
"@atlaskit/tokens": "^5.4.0",
|
|
48
46
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
49
47
|
"@babel/runtime": "^7.0.0",
|
|
50
48
|
"@emotion/react": "^11.7.1"
|
|
51
49
|
},
|
|
52
50
|
"peerDependencies": {
|
|
51
|
+
"@atlaskit/editor-common": "^107.6.0",
|
|
53
52
|
"react": "^18.2.0",
|
|
54
53
|
"react-dom": "^18.2.0",
|
|
55
54
|
"react-intl-next": "npm:react-intl@^5.18.1"
|