@atlaskit/editor-plugin-editor-disabled 2.1.1 → 3.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,52 @@
1
1
  # @atlaskit/editor-plugin-editor-disabled
2
2
 
3
+ ## 3.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`265c1bf0cefa4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/265c1bf0cefa4) -
8
+ Sorted type and interface props to improve Atlaskit docs
9
+
10
+ ## 3.0.0
11
+
12
+ ### Major Changes
13
+
14
+ - [#181024](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/181024)
15
+ [`8e80c487ca307`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8e80c487ca307) - ##
16
+ Make `@atlaskit/editor-common` a peer dependency
17
+
18
+ **WHAT:** `@atlaskit/editor-common` has been moved from `dependencies` to `peerDependencies` in
19
+ all editor plugin packages.
20
+
21
+ **WHY:** This change ensures that only a single version of `@atlaskit/editor-common` is used in
22
+ consuming applications, preventing issues caused by multiple versions of singleton libraries (such
23
+ as context mismatches or duplicated state). This is especially important for packages that rely on
24
+ shared context or singletons.
25
+
26
+ **HOW TO ADJUST:**
27
+
28
+ - Consumers must now explicitly install `@atlaskit/editor-common` in their own project if they use
29
+ any of these editor plugins.
30
+ - Ensure the version you install matches the version required by the plugins.
31
+ - You can use the
32
+ [`check-peer-dependencies`](https://www.npmjs.com/package/check-peer-dependencies) package to
33
+ verify that all required peer dependencies are installed and compatible.
34
+ - Example install command:
35
+ ```
36
+ npm install @atlaskit/editor-common
37
+ ```
38
+ or
39
+ ```
40
+ yarn add @atlaskit/editor-common
41
+ ```
42
+
43
+ **Note:** This is a breaking change. If `@atlaskit/editor-common` is not installed at the
44
+ application level, you may see errors or unexpected behavior.
45
+
46
+ ### Patch Changes
47
+
48
+ - Updated dependencies
49
+
3
50
  ## 2.1.1
4
51
 
5
52
  ### Patch Changes
@@ -6,6 +6,6 @@ export interface EditorDisabledPluginOptions {
6
6
  initialDisabledState?: boolean;
7
7
  }
8
8
  export type EditorDisabledPlugin = NextEditorPlugin<'editorDisabled', {
9
- sharedState: EditorDisabledPluginState;
10
9
  pluginConfiguration: EditorDisabledPluginOptions | undefined;
10
+ sharedState: EditorDisabledPluginState;
11
11
  }>;
@@ -6,6 +6,6 @@ export interface EditorDisabledPluginOptions {
6
6
  initialDisabledState?: boolean;
7
7
  }
8
8
  export type EditorDisabledPlugin = NextEditorPlugin<'editorDisabled', {
9
- sharedState: EditorDisabledPluginState;
10
9
  pluginConfiguration: EditorDisabledPluginOptions | undefined;
10
+ sharedState: EditorDisabledPluginState;
11
11
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-editor-disabled",
3
- "version": "2.1.1",
3
+ "version": "3.0.1",
4
4
  "description": "Editor disabled 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: Lego",
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",
@@ -23,12 +22,12 @@
23
22
  ".": "./src/index.ts"
24
23
  },
25
24
  "dependencies": {
26
- "@atlaskit/editor-common": "^107.0.0",
27
25
  "@atlaskit/editor-prosemirror": "7.0.0",
28
26
  "@babel/runtime": "^7.0.0",
29
27
  "raf-schd": "^4.0.3"
30
28
  },
31
29
  "peerDependencies": {
30
+ "@atlaskit/editor-common": "^107.28.0",
32
31
  "react": "^18.2.0",
33
32
  "react-dom": "^18.2.0"
34
33
  },
@@ -36,7 +35,6 @@
36
35
  "@testing-library/react": "^13.4.0",
37
36
  "raf-stub": "^2.0.1",
38
37
  "react-dom": "^18.2.0",
39
- "typescript": "~5.4.2",
40
38
  "wait-for-expect": "^1.2.0"
41
39
  },
42
40
  "techstack": {