@atlaskit/editor-plugin-panel 4.4.11 → 5.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,51 @@
1
1
  # @atlaskit/editor-plugin-panel
2
2
 
3
+ ## 5.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
+ ## 4.4.12
44
+
45
+ ### Patch Changes
46
+
47
+ - Updated dependencies
48
+
3
49
  ## 4.4.11
4
50
 
5
51
  ### Patch Changes
@@ -26,7 +26,6 @@ var _successEditorSuccess = _interopRequireDefault(require("@atlaskit/icon/core/
26
26
  var _warningEditorWarning = _interopRequireDefault(require("@atlaskit/icon/core/migration/warning--editor-warning"));
27
27
  var _remove = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/remove"));
28
28
  var _removeEmoji = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/remove-emoji"));
29
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
30
29
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
31
30
  var _actions = require("../editor-actions/actions");
32
31
  var _utils2 = require("../pm-plugins/utils/utils");
@@ -295,7 +294,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
295
294
  };
296
295
  // testId is required to show focus on trigger button on ESC key press
297
296
  // see hideOnEsc in platform/packages/editor/editor-plugin-floating-toolbar/src/ui/Dropdown.tsx
298
- var testId = (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_8') ? 'panel-overflow-dropdown-trigger' : undefined;
297
+ var testId = 'panel-overflow-dropdown-trigger';
299
298
  var overflowMenuConfig = [{
300
299
  type: 'separator',
301
300
  fullHeight: true
@@ -17,7 +17,6 @@ import SuccessIcon from '@atlaskit/icon/core/migration/success--editor-success';
17
17
  import WarningIcon from '@atlaskit/icon/core/migration/warning--editor-warning';
18
18
  import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
19
19
  import RemoveEmojiIcon from '@atlaskit/icon/glyph/editor/remove-emoji';
20
- import { fg } from '@atlaskit/platform-feature-flags';
21
20
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
22
21
  import { changePanelType, removePanel } from '../editor-actions/actions';
23
22
  import { findPanel } from '../pm-plugins/utils/utils';
@@ -274,7 +273,7 @@ export const getToolbarItems = (formatMessage, panelNodeType, isCustomPanelEnabl
274
273
  });
275
274
  // testId is required to show focus on trigger button on ESC key press
276
275
  // see hideOnEsc in platform/packages/editor/editor-plugin-floating-toolbar/src/ui/Dropdown.tsx
277
- const testId = fg('platform_editor_controls_patch_8') ? 'panel-overflow-dropdown-trigger' : undefined;
276
+ const testId = 'panel-overflow-dropdown-trigger';
278
277
  const overflowMenuConfig = [{
279
278
  type: 'separator',
280
279
  fullHeight: true
@@ -20,7 +20,6 @@ import SuccessIcon from '@atlaskit/icon/core/migration/success--editor-success';
20
20
  import WarningIcon from '@atlaskit/icon/core/migration/warning--editor-warning';
21
21
  import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
22
22
  import RemoveEmojiIcon from '@atlaskit/icon/glyph/editor/remove-emoji';
23
- import { fg } from '@atlaskit/platform-feature-flags';
24
23
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
25
24
  import { changePanelType, removePanel } from '../editor-actions/actions';
26
25
  import { findPanel } from '../pm-plugins/utils/utils';
@@ -286,7 +285,7 @@ export var getToolbarItems = function getToolbarItems(formatMessage, panelNodeTy
286
285
  };
287
286
  // testId is required to show focus on trigger button on ESC key press
288
287
  // see hideOnEsc in platform/packages/editor/editor-plugin-floating-toolbar/src/ui/Dropdown.tsx
289
- var testId = fg('platform_editor_controls_patch_8') ? 'panel-overflow-dropdown-trigger' : undefined;
288
+ var testId = 'panel-overflow-dropdown-trigger';
290
289
  var overflowMenuConfig = [{
291
290
  type: 'separator',
292
291
  fullHeight: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-panel",
3
- "version": "4.4.11",
3
+ "version": "5.0.0",
4
4
  "description": "Panel 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",
@@ -32,23 +31,23 @@
32
31
  },
33
32
  "dependencies": {
34
33
  "@atlaskit/adf-schema": "^47.6.0",
35
- "@atlaskit/editor-common": "^107.0.0",
36
34
  "@atlaskit/editor-palette": "^2.1.0",
37
- "@atlaskit/editor-plugin-analytics": "^2.3.0",
38
- "@atlaskit/editor-plugin-decorations": "^2.0.0",
39
- "@atlaskit/editor-plugin-emoji": "^3.7.0",
35
+ "@atlaskit/editor-plugin-analytics": "^3.0.0",
36
+ "@atlaskit/editor-plugin-decorations": "^3.0.0",
37
+ "@atlaskit/editor-plugin-emoji": "^4.0.0",
40
38
  "@atlaskit/editor-prosemirror": "7.0.0",
41
39
  "@atlaskit/editor-shared-styles": "^3.4.0",
42
40
  "@atlaskit/emoji": "^69.3.0",
43
- "@atlaskit/icon": "^27.0.0",
41
+ "@atlaskit/icon": "^27.2.0",
44
42
  "@atlaskit/platform-feature-flags": "^1.1.0",
45
43
  "@atlaskit/theme": "^18.0.0",
46
- "@atlaskit/tmp-editor-statsig": "^7.1.0",
47
- "@atlaskit/tokens": "^5.2.0",
44
+ "@atlaskit/tmp-editor-statsig": "^8.7.0",
45
+ "@atlaskit/tokens": "^5.4.0",
48
46
  "@babel/runtime": "^7.0.0",
49
47
  "uuid": "^3.1.0"
50
48
  },
51
49
  "peerDependencies": {
50
+ "@atlaskit/editor-common": "^107.6.0",
52
51
  "react": "^18.2.0",
53
52
  "react-dom": "^18.2.0",
54
53
  "react-intl-next": "npm:react-intl@^5.18.1"
@@ -95,9 +94,6 @@
95
94
  "platform-feature-flags": {
96
95
  "platform_editor_nested_dnd_styles_changes": {
97
96
  "type": "boolean"
98
- },
99
- "platform_editor_controls_patch_8": {
100
- "type": "boolean"
101
97
  }
102
98
  },
103
99
  "stricter": {