@atlaskit/editor-plugin-expand 2.12.1 → 3.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,23 @@
1
1
  # @atlaskit/editor-plugin-expand
2
2
 
3
+ ## 3.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#117363](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117363)
8
+ [`10a0f7f6c2027`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/10a0f7f6c2027) -
9
+ This package's `peerDependencies` have been adjusted for `react` and/or `react-dom` to reflect the
10
+ status of only supporting React 18 going forward. No explicit breaking change to React support has
11
+ been made in this release, but this is to signify going forward, breaking changes for React 16 or
12
+ React 17 may come via non-major semver releases.
13
+
14
+ Please refer this community post for more details:
15
+ https://community.developer.atlassian.com/t/rfc-78-dropping-support-for-react-16-and-rendering-in-a-react-18-concurrent-root-in-jira-and-confluence/87026
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
3
21
  ## 2.12.1
4
22
 
5
23
  ### Patch Changes
@@ -8,7 +8,6 @@ exports.getToolbarConfig = void 0;
8
8
  var _messages = _interopRequireDefault(require("@atlaskit/editor-common/messages"));
9
9
  var _delete = _interopRequireDefault(require("@atlaskit/icon/core/delete"));
10
10
  var _remove = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/remove"));
11
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
12
11
  var _commands = require("./commands");
13
12
  var _pluginFactory = require("./pm-plugins/plugin-factory");
14
13
  var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(api) {
@@ -36,7 +35,6 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(api)
36
35
  offset: [0, 6],
37
36
  items: [{
38
37
  type: 'copy-button',
39
- supportsViewMode: !(0, _platformFeatureFlags.fg)('platform_editor_remove_copy_button_from_view_mode'),
40
38
  items: [{
41
39
  state: state,
42
40
  formatMessage: formatMessage,
@@ -9,7 +9,6 @@ var _messages = _interopRequireDefault(require("@atlaskit/editor-common/messages
9
9
  var _utils = require("@atlaskit/editor-prosemirror/utils");
10
10
  var _delete = _interopRequireDefault(require("@atlaskit/icon/core/delete"));
11
11
  var _remove = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/remove"));
12
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
13
12
  var _commands = require("./commands");
14
13
  var _utils2 = require("./utils");
15
14
  var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(api) {
@@ -37,7 +36,6 @@ var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(api)
37
36
  offset: [0, 6],
38
37
  items: [{
39
38
  type: 'copy-button',
40
- supportsViewMode: !(0, _platformFeatureFlags.fg)('platform_editor_remove_copy_button_from_view_mode'),
41
39
  items: [{
42
40
  state: state,
43
41
  formatMessage: formatMessage,
@@ -1,7 +1,6 @@
1
1
  import commonMessages from '@atlaskit/editor-common/messages';
2
2
  import DeleteIcon from '@atlaskit/icon/core/delete';
3
3
  import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
4
- import { fg } from '@atlaskit/platform-feature-flags';
5
4
  import { deleteExpand } from './commands';
6
5
  import { getPluginState } from './pm-plugins/plugin-factory';
7
6
  export const getToolbarConfig = api => (state, {
@@ -30,7 +29,6 @@ export const getToolbarConfig = api => (state, {
30
29
  offset: [0, 6],
31
30
  items: [{
32
31
  type: 'copy-button',
33
- supportsViewMode: !fg('platform_editor_remove_copy_button_from_view_mode'),
34
32
  items: [{
35
33
  state,
36
34
  formatMessage,
@@ -2,7 +2,6 @@ import commonMessages from '@atlaskit/editor-common/messages';
2
2
  import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
3
3
  import DeleteIcon from '@atlaskit/icon/core/delete';
4
4
  import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  import { deleteExpand } from './commands';
7
6
  import { findParentExpandNode } from './utils';
8
7
  export const getToolbarConfig = api => (state, {
@@ -29,7 +28,6 @@ export const getToolbarConfig = api => (state, {
29
28
  offset: [0, 6],
30
29
  items: [{
31
30
  type: 'copy-button',
32
- supportsViewMode: !fg('platform_editor_remove_copy_button_from_view_mode'),
33
31
  items: [{
34
32
  state,
35
33
  formatMessage,
@@ -1,7 +1,6 @@
1
1
  import commonMessages from '@atlaskit/editor-common/messages';
2
2
  import DeleteIcon from '@atlaskit/icon/core/delete';
3
3
  import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
4
- import { fg } from '@atlaskit/platform-feature-flags';
5
4
  import { deleteExpand } from './commands';
6
5
  import { getPluginState } from './pm-plugins/plugin-factory';
7
6
  export var getToolbarConfig = function getToolbarConfig(api) {
@@ -29,7 +28,6 @@ export var getToolbarConfig = function getToolbarConfig(api) {
29
28
  offset: [0, 6],
30
29
  items: [{
31
30
  type: 'copy-button',
32
- supportsViewMode: !fg('platform_editor_remove_copy_button_from_view_mode'),
33
31
  items: [{
34
32
  state: state,
35
33
  formatMessage: formatMessage,
@@ -2,7 +2,6 @@ import commonMessages from '@atlaskit/editor-common/messages';
2
2
  import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
3
3
  import DeleteIcon from '@atlaskit/icon/core/delete';
4
4
  import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
5
  import { deleteExpand } from './commands';
7
6
  import { findParentExpandNode } from './utils';
8
7
  export var getToolbarConfig = function getToolbarConfig(api) {
@@ -30,7 +29,6 @@ export var getToolbarConfig = function getToolbarConfig(api) {
30
29
  offset: [0, 6],
31
30
  items: [{
32
31
  type: 'copy-button',
33
- supportsViewMode: !fg('platform_editor_remove_copy_button_from_view_mode'),
34
32
  items: [{
35
33
  state: state,
36
34
  formatMessage: formatMessage,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-expand",
3
- "version": "2.12.1",
3
+ "version": "3.0.0",
4
4
  "description": "Expand plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,40 +32,40 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@atlaskit/adf-schema": "^47.2.1",
35
- "@atlaskit/button": "^20.5.0",
36
- "@atlaskit/editor-common": "^99.14.0",
37
- "@atlaskit/editor-plugin-analytics": "^1.12.0",
38
- "@atlaskit/editor-plugin-decorations": "^1.5.0",
39
- "@atlaskit/editor-plugin-editor-disabled": "^1.5.0",
40
- "@atlaskit/editor-plugin-editor-viewmode": "^2.2.0",
41
- "@atlaskit/editor-plugin-selection": "^1.8.0",
42
- "@atlaskit/editor-plugin-selection-marker": "^1.8.0",
35
+ "@atlaskit/button": "^21.0.0",
36
+ "@atlaskit/editor-common": "^100.0.0",
37
+ "@atlaskit/editor-plugin-analytics": "^2.0.0",
38
+ "@atlaskit/editor-plugin-decorations": "^2.0.0",
39
+ "@atlaskit/editor-plugin-editor-disabled": "^2.0.0",
40
+ "@atlaskit/editor-plugin-editor-viewmode": "^3.0.0",
41
+ "@atlaskit/editor-plugin-selection": "^2.0.0",
42
+ "@atlaskit/editor-plugin-selection-marker": "^2.0.0",
43
43
  "@atlaskit/editor-prosemirror": "7.0.0",
44
- "@atlaskit/editor-shared-styles": "^3.2.0",
44
+ "@atlaskit/editor-shared-styles": "^3.3.0",
45
45
  "@atlaskit/editor-tables": "^2.9.0",
46
- "@atlaskit/icon": "^23.9.0",
47
- "@atlaskit/platform-feature-flags": "^1.0.0",
48
- "@atlaskit/tmp-editor-statsig": "^2.46.0",
49
- "@atlaskit/tokens": "^3.3.0",
50
- "@atlaskit/tooltip": "^19.1.0",
46
+ "@atlaskit/icon": "^24.0.0",
47
+ "@atlaskit/platform-feature-flags": "^1.1.0",
48
+ "@atlaskit/tmp-editor-statsig": "^3.0.0",
49
+ "@atlaskit/tokens": "^4.0.0",
50
+ "@atlaskit/tooltip": "^20.0.0",
51
51
  "@babel/runtime": "^7.0.0",
52
52
  "@emotion/react": "^11.7.1",
53
53
  "uuid": "^3.1.0",
54
54
  "w3c-keyname": "^2.1.8"
55
55
  },
56
56
  "peerDependencies": {
57
- "react": "^16.8.0 || ^17.0.0 || ~18.2.0",
58
- "react-dom": "^16.8.0 || ^17.0.0 || ~18.2.0",
57
+ "react": "^18.2.0",
58
+ "react-dom": "^18.2.0",
59
59
  "react-intl-next": "npm:react-intl@^5.18.1"
60
60
  },
61
61
  "devDependencies": {
62
- "@atlaskit/analytics-next": "^10.3.0",
63
- "@atlaskit/editor-plugin-content-insertion": "^1.13.0",
64
- "@atlaskit/editor-plugin-guideline": "^1.4.0",
65
- "@atlaskit/editor-plugin-quick-insert": "^1.10.0",
66
- "@atlaskit/editor-plugin-table": "^9.4.0",
67
- "@atlaskit/editor-plugin-type-ahead": "^1.13.0",
68
- "@atlaskit/editor-plugin-width": "^2.1.0",
62
+ "@atlaskit/analytics-next": "^11.0.0",
63
+ "@atlaskit/editor-plugin-content-insertion": "^2.0.0",
64
+ "@atlaskit/editor-plugin-guideline": "^2.0.0",
65
+ "@atlaskit/editor-plugin-quick-insert": "^2.0.0",
66
+ "@atlaskit/editor-plugin-table": "^10.0.0",
67
+ "@atlaskit/editor-plugin-type-ahead": "^2.0.0",
68
+ "@atlaskit/editor-plugin-width": "^3.0.0",
69
69
  "@testing-library/react": "^13.4.0",
70
70
  "react-test-renderer": "^18.2.0",
71
71
  "typescript": "~5.4.2"
@@ -116,7 +116,7 @@
116
116
  "platform_editor_nested_expand_in_expand_adf_change": {
117
117
  "type": "boolean"
118
118
  },
119
- "platform_editor_remove_copy_button_from_view_mode": {
119
+ "platform_editor_react18_plugin_portalprovider": {
120
120
  "type": "boolean"
121
121
  },
122
122
  "platform_editor_long_node_expand": {