@atlaskit/editor-plugin-extension 5.5.13 → 6.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 CHANGED
@@ -1,5 +1,54 @@
1
1
  # @atlaskit/editor-plugin-extension
2
2
 
3
+ ## 6.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
+
43
+ ## 5.5.14
44
+
45
+ ### Patch Changes
46
+
47
+ - [#180417](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/180417)
48
+ [`4850015153c2f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4850015153c2f) -
49
+ [ux] Fixes A11Y issue by adding label to the checkbox that has toggle apperance in the Config
50
+ panel.
51
+
3
52
  ## 5.5.13
4
53
 
5
54
  ### Patch Changes
@@ -123,7 +123,6 @@ function Toggle(_ref3) {
123
123
  css: toggleFieldWrapperStyles
124
124
  }, (0, _react2.jsx)("label", {
125
125
  css: toggleLabelStyles,
126
- id: id,
127
126
  htmlFor: id
128
127
  }, label, isRequired ? (0, _react2.jsx)(_compiled.Text, {
129
128
  color: "color.text.danger",
@@ -135,7 +134,8 @@ function Toggle(_ref3) {
135
134
  onChange: function onChange(event) {
136
135
  return handleOnChange(fieldProps.onChange, onFieldChange, event);
137
136
  },
138
- isChecked: parseBoolean(isChecked)
137
+ isChecked: parseBoolean(isChecked),
138
+ id: id
139
139
  }))), (0, _react2.jsx)(_FieldMessages.default, {
140
140
  error: error,
141
141
  description: description
@@ -114,7 +114,6 @@ function Toggle({
114
114
  css: toggleFieldWrapperStyles
115
115
  }, jsx("label", {
116
116
  css: toggleLabelStyles,
117
- id: id,
118
117
  htmlFor: id
119
118
  }, label, isRequired ? jsx(Text, {
120
119
  color: "color.text.danger",
@@ -124,7 +123,8 @@ function Toggle({
124
123
  // eslint-disable-next-line react/jsx-props-no-spreading
125
124
  , _extends({}, restFieldProps, {
126
125
  onChange: event => handleOnChange(fieldProps.onChange, onFieldChange, event),
127
- isChecked: parseBoolean(isChecked)
126
+ isChecked: parseBoolean(isChecked),
127
+ id: id
128
128
  }))), jsx(FieldMessages, {
129
129
  error: error,
130
130
  description: description
@@ -115,7 +115,6 @@ function Toggle(_ref3) {
115
115
  css: toggleFieldWrapperStyles
116
116
  }, jsx("label", {
117
117
  css: toggleLabelStyles,
118
- id: id,
119
118
  htmlFor: id
120
119
  }, label, isRequired ? jsx(Text, {
121
120
  color: "color.text.danger",
@@ -127,7 +126,8 @@ function Toggle(_ref3) {
127
126
  onChange: function onChange(event) {
128
127
  return handleOnChange(fieldProps.onChange, onFieldChange, event);
129
128
  },
130
- isChecked: parseBoolean(isChecked)
129
+ isChecked: parseBoolean(isChecked),
130
+ id: id
131
131
  }))), jsx(FieldMessages, {
132
132
  error: error,
133
133
  description: description
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { type ExtensionProvider } from '@atlaskit/editor-common/extensions';
3
3
  import { type ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import { type ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
5
- import { EditorView } from '@atlaskit/editor-prosemirror/view';
5
+ import { type EditorView } from '@atlaskit/editor-prosemirror/view';
6
6
  import { type ExtensionPlugin } from '../extensionPluginType';
7
7
  export declare function useConfigPanelPluginHook({ editorView, configPanelId, api, }: {
8
8
  editorView: EditorView;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { type ExtensionProvider } from '@atlaskit/editor-common/extensions';
3
3
  import { type ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
4
  import { type ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
5
- import { EditorView } from '@atlaskit/editor-prosemirror/view';
5
+ import { type EditorView } from '@atlaskit/editor-prosemirror/view';
6
6
  import { type ExtensionPlugin } from '../extensionPluginType';
7
7
  export declare function useConfigPanelPluginHook({ editorView, configPanelId, api, }: {
8
8
  editorView: EditorView;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-extension",
3
- "version": "5.5.13",
3
+ "version": "6.0.0",
4
4
  "description": "editor-plugin-extension plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,15 +31,14 @@
31
31
  "@atlaskit/button": "^23.2.0",
32
32
  "@atlaskit/checkbox": "^17.1.0",
33
33
  "@atlaskit/datetime-picker": "^17.0.0",
34
- "@atlaskit/editor-common": "^107.3.0",
35
34
  "@atlaskit/editor-json-transformer": "^8.24.0",
36
- "@atlaskit/editor-plugin-analytics": "^2.3.0",
37
- "@atlaskit/editor-plugin-connectivity": "^2.0.0",
38
- "@atlaskit/editor-plugin-context-identifier": "^2.1.0",
39
- "@atlaskit/editor-plugin-context-panel": "^4.1.0",
40
- "@atlaskit/editor-plugin-decorations": "^2.0.0",
41
- "@atlaskit/editor-plugin-feature-flags": "^1.4.0",
42
- "@atlaskit/editor-plugin-width": "^3.0.0",
35
+ "@atlaskit/editor-plugin-analytics": "^3.0.0",
36
+ "@atlaskit/editor-plugin-connectivity": "^3.0.0",
37
+ "@atlaskit/editor-plugin-context-identifier": "^3.0.0",
38
+ "@atlaskit/editor-plugin-context-panel": "^5.0.0",
39
+ "@atlaskit/editor-plugin-decorations": "^3.0.0",
40
+ "@atlaskit/editor-plugin-feature-flags": "^2.0.0",
41
+ "@atlaskit/editor-plugin-width": "^4.0.0",
43
42
  "@atlaskit/editor-prosemirror": "7.0.0",
44
43
  "@atlaskit/editor-shared-styles": "^3.4.0",
45
44
  "@atlaskit/editor-tables": "^2.9.0",
@@ -59,7 +58,7 @@
59
58
  "@atlaskit/textarea": "^8.0.0",
60
59
  "@atlaskit/textfield": "^8.0.0",
61
60
  "@atlaskit/theme": "^18.0.0",
62
- "@atlaskit/tmp-editor-statsig": "^8.5.0",
61
+ "@atlaskit/tmp-editor-statsig": "^8.7.0",
63
62
  "@atlaskit/toggle": "^15.0.0",
64
63
  "@atlaskit/tokens": "^5.4.0",
65
64
  "@atlaskit/tooltip": "^20.3.0",
@@ -73,6 +72,7 @@
73
72
  "uuid": "^3.1.0"
74
73
  },
75
74
  "peerDependencies": {
75
+ "@atlaskit/editor-common": "^107.6.0",
76
76
  "react": "^18.2.0",
77
77
  "react-intl-next": "npm:react-intl@^5.18.1"
78
78
  },