@atlaskit/editor-plugin-status 3.1.26 → 4.0.1

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,51 @@
1
1
  # @atlaskit/editor-plugin-status
2
2
 
3
+ ## 4.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 4.0.0
10
+
11
+ ### Major Changes
12
+
13
+ - [#181024](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/181024)
14
+ [`8e80c487ca307`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8e80c487ca307) - ##
15
+ Make `@atlaskit/editor-common` a peer dependency
16
+
17
+ **WHAT:** `@atlaskit/editor-common` has been moved from `dependencies` to `peerDependencies` in
18
+ all editor plugin packages.
19
+
20
+ **WHY:** This change ensures that only a single version of `@atlaskit/editor-common` is used in
21
+ consuming applications, preventing issues caused by multiple versions of singleton libraries (such
22
+ as context mismatches or duplicated state). This is especially important for packages that rely on
23
+ shared context or singletons.
24
+
25
+ **HOW TO ADJUST:**
26
+
27
+ - Consumers must now explicitly install `@atlaskit/editor-common` in their own project if they use
28
+ any of these editor plugins.
29
+ - Ensure the version you install matches the version required by the plugins.
30
+ - You can use the
31
+ [`check-peer-dependencies`](https://www.npmjs.com/package/check-peer-dependencies) package to
32
+ verify that all required peer dependencies are installed and compatible.
33
+ - Example install command:
34
+ ```
35
+ npm install @atlaskit/editor-common
36
+ ```
37
+ or
38
+ ```
39
+ yarn add @atlaskit/editor-common
40
+ ```
41
+
42
+ **Note:** This is a breaking change. If `@atlaskit/editor-common` is not installed at the
43
+ application level, you may see errors or unexpected behavior.
44
+
45
+ ### Patch Changes
46
+
47
+ - Updated dependencies
48
+
3
49
  ## 3.1.26
4
50
 
5
51
  ### 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
- 'localid': localId
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
- 'localid': localId
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 as StatusNodeViewVanilla } from '../nodeviews/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 StatusNodeViewVanilla(node, pmPluginFactoryParams.getIntl());
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
- 'localid': localId
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 as StatusNodeViewVanilla } from '../nodeviews/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 StatusNodeViewVanilla(node, pmPluginFactoryParams.getIntl());
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.1.26",
3
+ "version": "4.0.1",
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-common": "^107.3.0",
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
- "@atlaskit/icon": "^27.2.0",
40
+ "@atlaskit/icon": "^27.3.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.5.0",
44
+ "@atlaskit/tmp-editor-statsig": "^9.0.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.7.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"