@atlaskit/editor-plugin-expand 2.12.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 +30 -0
- package/dist/cjs/legacyExpand/toolbar.js +0 -2
- package/dist/cjs/singlePlayerExpand/toolbar.js +0 -2
- package/dist/es2019/legacyExpand/toolbar.js +0 -2
- package/dist/es2019/singlePlayerExpand/toolbar.js +0 -2
- package/dist/esm/legacyExpand/toolbar.js +0 -2
- package/dist/esm/singlePlayerExpand/toolbar.js +0 -2
- package/package.json +28 -26
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-expand
|
|
2
2
|
|
|
3
|
+
## 3.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#120533](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/120533)
|
|
8
|
+
[`f1bec731e278f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f1bec731e278f) -
|
|
9
|
+
Adds a `sideEffects` field to ensure this package does not have Compiled styles tree-shaken in the
|
|
10
|
+
future to avoid an accidental regression.
|
|
11
|
+
|
|
12
|
+
This is related to
|
|
13
|
+
https://community.developer.atlassian.com/t/rfc-73-migrating-our-components-to-compiled-css-in-js/85953
|
|
14
|
+
|
|
15
|
+
## 3.0.0
|
|
16
|
+
|
|
17
|
+
### Major Changes
|
|
18
|
+
|
|
19
|
+
- [#117363](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117363)
|
|
20
|
+
[`10a0f7f6c2027`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/10a0f7f6c2027) -
|
|
21
|
+
This package's `peerDependencies` have been adjusted for `react` and/or `react-dom` to reflect the
|
|
22
|
+
status of only supporting React 18 going forward. No explicit breaking change to React support has
|
|
23
|
+
been made in this release, but this is to signify going forward, breaking changes for React 16 or
|
|
24
|
+
React 17 may come via non-major semver releases.
|
|
25
|
+
|
|
26
|
+
Please refer this community post for more details:
|
|
27
|
+
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
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- Updated dependencies
|
|
32
|
+
|
|
3
33
|
## 2.12.1
|
|
4
34
|
|
|
5
35
|
### 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": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "Expand plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -25,47 +25,49 @@
|
|
|
25
25
|
]
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
|
-
"sideEffects":
|
|
28
|
+
"sideEffects": [
|
|
29
|
+
"*.compiled.css"
|
|
30
|
+
],
|
|
29
31
|
"atlaskit:src": "src/index.ts",
|
|
30
32
|
"af:exports": {
|
|
31
33
|
".": "./src/index.ts"
|
|
32
34
|
},
|
|
33
35
|
"dependencies": {
|
|
34
36
|
"@atlaskit/adf-schema": "^47.2.1",
|
|
35
|
-
"@atlaskit/button": "^
|
|
36
|
-
"@atlaskit/editor-common": "^
|
|
37
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
38
|
-
"@atlaskit/editor-plugin-decorations": "^
|
|
39
|
-
"@atlaskit/editor-plugin-editor-disabled": "^
|
|
40
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^
|
|
41
|
-
"@atlaskit/editor-plugin-selection": "^
|
|
42
|
-
"@atlaskit/editor-plugin-selection-marker": "^
|
|
37
|
+
"@atlaskit/button": "^21.1.0",
|
|
38
|
+
"@atlaskit/editor-common": "^100.4.0",
|
|
39
|
+
"@atlaskit/editor-plugin-analytics": "^2.0.0",
|
|
40
|
+
"@atlaskit/editor-plugin-decorations": "^2.0.0",
|
|
41
|
+
"@atlaskit/editor-plugin-editor-disabled": "^2.0.0",
|
|
42
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^3.0.0",
|
|
43
|
+
"@atlaskit/editor-plugin-selection": "^2.0.0",
|
|
44
|
+
"@atlaskit/editor-plugin-selection-marker": "^2.0.0",
|
|
43
45
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
44
|
-
"@atlaskit/editor-shared-styles": "^3.
|
|
46
|
+
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
45
47
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
46
|
-
"@atlaskit/icon": "^
|
|
47
|
-
"@atlaskit/platform-feature-flags": "^1.
|
|
48
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
49
|
-
"@atlaskit/tokens": "^
|
|
50
|
-
"@atlaskit/tooltip": "^
|
|
48
|
+
"@atlaskit/icon": "^24.1.0",
|
|
49
|
+
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
50
|
+
"@atlaskit/tmp-editor-statsig": "^3.3.0",
|
|
51
|
+
"@atlaskit/tokens": "^4.2.0",
|
|
52
|
+
"@atlaskit/tooltip": "^20.0.0",
|
|
51
53
|
"@babel/runtime": "^7.0.0",
|
|
52
54
|
"@emotion/react": "^11.7.1",
|
|
53
55
|
"uuid": "^3.1.0",
|
|
54
56
|
"w3c-keyname": "^2.1.8"
|
|
55
57
|
},
|
|
56
58
|
"peerDependencies": {
|
|
57
|
-
"react": "^
|
|
58
|
-
"react-dom": "^
|
|
59
|
+
"react": "^18.2.0",
|
|
60
|
+
"react-dom": "^18.2.0",
|
|
59
61
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
60
62
|
},
|
|
61
63
|
"devDependencies": {
|
|
62
|
-
"@atlaskit/analytics-next": "^
|
|
63
|
-
"@atlaskit/editor-plugin-content-insertion": "^
|
|
64
|
-
"@atlaskit/editor-plugin-guideline": "^
|
|
65
|
-
"@atlaskit/editor-plugin-quick-insert": "^
|
|
66
|
-
"@atlaskit/editor-plugin-table": "^
|
|
67
|
-
"@atlaskit/editor-plugin-type-ahead": "^
|
|
68
|
-
"@atlaskit/editor-plugin-width": "^
|
|
64
|
+
"@atlaskit/analytics-next": "^11.0.0",
|
|
65
|
+
"@atlaskit/editor-plugin-content-insertion": "^2.0.0",
|
|
66
|
+
"@atlaskit/editor-plugin-guideline": "^2.0.0",
|
|
67
|
+
"@atlaskit/editor-plugin-quick-insert": "^2.0.0",
|
|
68
|
+
"@atlaskit/editor-plugin-table": "^10.2.0",
|
|
69
|
+
"@atlaskit/editor-plugin-type-ahead": "^2.0.0",
|
|
70
|
+
"@atlaskit/editor-plugin-width": "^3.0.0",
|
|
69
71
|
"@testing-library/react": "^13.4.0",
|
|
70
72
|
"react-test-renderer": "^18.2.0",
|
|
71
73
|
"typescript": "~5.4.2"
|
|
@@ -116,7 +118,7 @@
|
|
|
116
118
|
"platform_editor_nested_expand_in_expand_adf_change": {
|
|
117
119
|
"type": "boolean"
|
|
118
120
|
},
|
|
119
|
-
"
|
|
121
|
+
"platform_editor_react18_plugin_portalprovider": {
|
|
120
122
|
"type": "boolean"
|
|
121
123
|
},
|
|
122
124
|
"platform_editor_long_node_expand": {
|