@atlaskit/editor-plugin-layout 1.15.1 → 2.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/ui/toolbar.js +0 -3
- package/dist/es2019/ui/toolbar.js +0 -3
- package/dist/esm/ui/toolbar.js +0 -3
- package/package.json +15 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-layout
|
|
2
2
|
|
|
3
|
+
## 2.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
|
+
## 2.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
|
## 1.15.1
|
|
4
34
|
|
|
5
35
|
### Patch Changes
|
package/dist/cjs/ui/toolbar.js
CHANGED
|
@@ -23,7 +23,6 @@ var _layoutTwoEqual = _interopRequireDefault(require("@atlaskit/icon/glyph/edito
|
|
|
23
23
|
var _layoutTwoLeftSidebar = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/layout-two-left-sidebar"));
|
|
24
24
|
var _layoutTwoRightSidebar = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/layout-two-right-sidebar"));
|
|
25
25
|
var _remove = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/remove"));
|
|
26
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
27
26
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
28
27
|
var _actions = require("../pm-plugins/actions");
|
|
29
28
|
var _LayoutThreeWithLeftSidebars = require("./icons/LayoutThreeWithLeftSidebars");
|
|
@@ -189,7 +188,6 @@ var getAdvancedLayoutItems = function getAdvancedLayoutItems(_ref) {
|
|
|
189
188
|
return buildLayoutButton(intl, i, currentLayout, editorAnalyticsAPI);
|
|
190
189
|
}) : []), [separator, {
|
|
191
190
|
type: 'copy-button',
|
|
192
|
-
supportsViewMode: !(0, _platformFeatureFlags.fg)('platform_editor_remove_copy_button_from_view_mode'),
|
|
193
191
|
items: [{
|
|
194
192
|
state: state,
|
|
195
193
|
formatMessage: intl.formatMessage,
|
|
@@ -251,7 +249,6 @@ var buildToolbar = exports.buildToolbar = function buildToolbar(state, intl, pos
|
|
|
251
249
|
return buildLayoutButton(intl, i, currentLayout, editorAnalyticsAPI);
|
|
252
250
|
}) : []), [separator, {
|
|
253
251
|
type: 'copy-button',
|
|
254
|
-
supportsViewMode: !(0, _platformFeatureFlags.fg)('platform_editor_remove_copy_button_from_view_mode'),
|
|
255
252
|
items: [{
|
|
256
253
|
state: state,
|
|
257
254
|
formatMessage: intl.formatMessage,
|
|
@@ -14,7 +14,6 @@ import LayoutTwoEqualIcon from '@atlaskit/icon/glyph/editor/layout-two-equal';
|
|
|
14
14
|
import LayoutTwoLeftSidebarIcon from '@atlaskit/icon/glyph/editor/layout-two-left-sidebar';
|
|
15
15
|
import LayoutTwoRightSidebarIcon from '@atlaskit/icon/glyph/editor/layout-two-right-sidebar';
|
|
16
16
|
import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
|
|
17
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
17
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
19
18
|
import { deleteActiveLayoutNode, getPresetLayout, setPresetLayout } from '../pm-plugins/actions';
|
|
20
19
|
import { LayoutThreeWithLeftSidebarsIcon } from './icons/LayoutThreeWithLeftSidebars';
|
|
@@ -175,7 +174,6 @@ const getAdvancedLayoutItems = ({
|
|
|
175
174
|
testId: 'column-options-button'
|
|
176
175
|
}, ...(distributionOptions.length > 0 ? [separator] : []), ...(addSidebarLayouts ? distributionOptions.map(i => buildLayoutButton(intl, i, currentLayout, editorAnalyticsAPI)) : []), separator, {
|
|
177
176
|
type: 'copy-button',
|
|
178
|
-
supportsViewMode: !fg('platform_editor_remove_copy_button_from_view_mode'),
|
|
179
177
|
items: [{
|
|
180
178
|
state,
|
|
181
179
|
formatMessage: intl.formatMessage,
|
|
@@ -232,7 +230,6 @@ export const buildToolbar = (state, intl, pos, _allowBreakout, addSidebarLayouts
|
|
|
232
230
|
currentLayout
|
|
233
231
|
}) : [...layoutTypes.map(i => buildLayoutButton(intl, i, currentLayout, editorAnalyticsAPI)), ...(addSidebarLayouts ? SIDEBAR_LAYOUT_TYPES.map(i => buildLayoutButton(intl, i, currentLayout, editorAnalyticsAPI)) : []), separator, {
|
|
234
232
|
type: 'copy-button',
|
|
235
|
-
supportsViewMode: !fg('platform_editor_remove_copy_button_from_view_mode'),
|
|
236
233
|
items: [{
|
|
237
234
|
state,
|
|
238
235
|
formatMessage: intl.formatMessage,
|
package/dist/esm/ui/toolbar.js
CHANGED
|
@@ -15,7 +15,6 @@ import LayoutTwoEqualIcon from '@atlaskit/icon/glyph/editor/layout-two-equal';
|
|
|
15
15
|
import LayoutTwoLeftSidebarIcon from '@atlaskit/icon/glyph/editor/layout-two-left-sidebar';
|
|
16
16
|
import LayoutTwoRightSidebarIcon from '@atlaskit/icon/glyph/editor/layout-two-right-sidebar';
|
|
17
17
|
import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
|
|
18
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
19
18
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
20
19
|
import { deleteActiveLayoutNode, getPresetLayout, setPresetLayout } from '../pm-plugins/actions';
|
|
21
20
|
import { LayoutThreeWithLeftSidebarsIcon } from './icons/LayoutThreeWithLeftSidebars';
|
|
@@ -179,7 +178,6 @@ var getAdvancedLayoutItems = function getAdvancedLayoutItems(_ref) {
|
|
|
179
178
|
return buildLayoutButton(intl, i, currentLayout, editorAnalyticsAPI);
|
|
180
179
|
}) : []), [separator, {
|
|
181
180
|
type: 'copy-button',
|
|
182
|
-
supportsViewMode: !fg('platform_editor_remove_copy_button_from_view_mode'),
|
|
183
181
|
items: [{
|
|
184
182
|
state: state,
|
|
185
183
|
formatMessage: intl.formatMessage,
|
|
@@ -241,7 +239,6 @@ export var buildToolbar = function buildToolbar(state, intl, pos, _allowBreakout
|
|
|
241
239
|
return buildLayoutButton(intl, i, currentLayout, editorAnalyticsAPI);
|
|
242
240
|
}) : []), [separator, {
|
|
243
241
|
type: 'copy-button',
|
|
244
|
-
supportsViewMode: !fg('platform_editor_remove_copy_button_from_view_mode'),
|
|
245
242
|
items: [{
|
|
246
243
|
state: state,
|
|
247
244
|
formatMessage: intl.formatMessage,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-layout",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Layout plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -25,29 +25,31 @@
|
|
|
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/editor-common": "^
|
|
36
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
37
|
-
"@atlaskit/editor-plugin-decorations": "^
|
|
38
|
-
"@atlaskit/editor-plugin-editor-disabled": "^
|
|
39
|
-
"@atlaskit/editor-plugin-selection": "^
|
|
40
|
-
"@atlaskit/editor-plugin-width": "^
|
|
37
|
+
"@atlaskit/editor-common": "^100.4.0",
|
|
38
|
+
"@atlaskit/editor-plugin-analytics": "^2.0.0",
|
|
39
|
+
"@atlaskit/editor-plugin-decorations": "^2.0.0",
|
|
40
|
+
"@atlaskit/editor-plugin-editor-disabled": "^2.0.0",
|
|
41
|
+
"@atlaskit/editor-plugin-selection": "^2.0.0",
|
|
42
|
+
"@atlaskit/editor-plugin-width": "^3.0.0",
|
|
41
43
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
42
|
-
"@atlaskit/icon": "^
|
|
43
|
-
"@atlaskit/platform-feature-flags": "^1.
|
|
44
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
45
|
-
"@atlaskit/tokens": "^
|
|
44
|
+
"@atlaskit/icon": "^24.1.0",
|
|
45
|
+
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
46
|
+
"@atlaskit/tmp-editor-statsig": "^3.3.0",
|
|
47
|
+
"@atlaskit/tokens": "^4.2.0",
|
|
46
48
|
"@babel/runtime": "^7.0.0",
|
|
47
49
|
"@emotion/react": "^11.7.1"
|
|
48
50
|
},
|
|
49
51
|
"peerDependencies": {
|
|
50
|
-
"react": "^
|
|
52
|
+
"react": "^18.2.0",
|
|
51
53
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
52
54
|
},
|
|
53
55
|
"devDependencies": {
|
|
@@ -95,9 +97,6 @@
|
|
|
95
97
|
}
|
|
96
98
|
},
|
|
97
99
|
"platform-feature-flags": {
|
|
98
|
-
"platform_editor_remove_copy_button_from_view_mode": {
|
|
99
|
-
"type": "boolean"
|
|
100
|
-
},
|
|
101
100
|
"platform-visual-refresh-icons": {
|
|
102
101
|
"type": "boolean"
|
|
103
102
|
},
|