@atlaskit/editor-plugin-expand 3.4.0 → 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.
Files changed (2) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/package.json +17 -18
package/CHANGELOG.md CHANGED
@@ -1,5 +1,45 @@
1
1
  # @atlaskit/editor-plugin-expand
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.4.0
4
44
 
5
45
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-expand",
3
- "version": "3.4.0",
3
+ "version": "4.0.0",
4
4
  "description": "Expand 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",
@@ -35,20 +34,19 @@
35
34
  "dependencies": {
36
35
  "@atlaskit/adf-schema": "^47.6.0",
37
36
  "@atlaskit/button": "^23.2.0",
38
- "@atlaskit/editor-common": "^107.2.0",
39
- "@atlaskit/editor-plugin-analytics": "^2.3.0",
40
- "@atlaskit/editor-plugin-decorations": "^2.0.0",
41
- "@atlaskit/editor-plugin-editor-disabled": "^2.1.0",
42
- "@atlaskit/editor-plugin-editor-viewmode": "^4.0.0",
43
- "@atlaskit/editor-plugin-find-replace": "^2.10.0",
44
- "@atlaskit/editor-plugin-selection": "^2.2.0",
45
- "@atlaskit/editor-plugin-selection-marker": "^2.5.0",
37
+ "@atlaskit/editor-plugin-analytics": "^3.0.0",
38
+ "@atlaskit/editor-plugin-decorations": "^3.0.0",
39
+ "@atlaskit/editor-plugin-editor-disabled": "^3.0.0",
40
+ "@atlaskit/editor-plugin-editor-viewmode": "^5.0.0",
41
+ "@atlaskit/editor-plugin-find-replace": "^3.0.0",
42
+ "@atlaskit/editor-plugin-selection": "^3.0.0",
43
+ "@atlaskit/editor-plugin-selection-marker": "^3.0.0",
46
44
  "@atlaskit/editor-prosemirror": "7.0.0",
47
45
  "@atlaskit/editor-shared-styles": "^3.4.0",
48
46
  "@atlaskit/editor-tables": "^2.9.0",
49
47
  "@atlaskit/icon": "^27.2.0",
50
48
  "@atlaskit/platform-feature-flags": "^1.1.0",
51
- "@atlaskit/tmp-editor-statsig": "^8.3.0",
49
+ "@atlaskit/tmp-editor-statsig": "^8.7.0",
52
50
  "@atlaskit/tokens": "^5.4.0",
53
51
  "@atlaskit/tooltip": "^20.3.0",
54
52
  "@babel/runtime": "^7.0.0",
@@ -57,18 +55,19 @@
57
55
  "w3c-keyname": "^2.1.8"
58
56
  },
59
57
  "peerDependencies": {
58
+ "@atlaskit/editor-common": "^107.6.0",
60
59
  "react": "^18.2.0",
61
60
  "react-dom": "^18.2.0",
62
61
  "react-intl-next": "npm:react-intl@^5.18.1"
63
62
  },
64
63
  "devDependencies": {
65
64
  "@atlaskit/analytics-next": "^11.1.0",
66
- "@atlaskit/editor-plugin-content-insertion": "^2.1.0",
67
- "@atlaskit/editor-plugin-guideline": "^2.0.0",
68
- "@atlaskit/editor-plugin-quick-insert": "^2.6.0",
69
- "@atlaskit/editor-plugin-table": "^10.12.0",
70
- "@atlaskit/editor-plugin-type-ahead": "^2.7.0",
71
- "@atlaskit/editor-plugin-width": "^3.0.0",
65
+ "@atlaskit/editor-plugin-content-insertion": "^3.0.0",
66
+ "@atlaskit/editor-plugin-guideline": "^3.0.0",
67
+ "@atlaskit/editor-plugin-quick-insert": "^3.0.0",
68
+ "@atlaskit/editor-plugin-table": "^11.0.0",
69
+ "@atlaskit/editor-plugin-type-ahead": "^3.0.0",
70
+ "@atlaskit/editor-plugin-width": "^4.0.0",
72
71
  "@testing-library/react": "^13.4.0",
73
72
  "react-test-renderer": "^18.2.0",
74
73
  "typescript": "~5.4.2"