@atlaskit/editor-core 193.9.9 → 193.10.4
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 +12 -0
- package/dist/cjs/presets/universal.js +1 -2
- package/dist/cjs/ui/ContextPanel/index.js +1 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/presets/universal.js +1 -2
- package/dist/es2019/ui/ContextPanel/index.js +1 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/presets/universal.js +1 -2
- package/dist/esm/ui/ContextPanel/index.js +1 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 193.10.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#89978](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/89978) [`6e7143622425`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6e7143622425) - fix paste markdown table into a table issue
|
|
8
|
+
|
|
9
|
+
## 193.10.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#86368](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/86368) [`d07ec8d13230`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d07ec8d13230) - [ux] Remove the custom table width platform flag and remove Layout/Breakout button
|
|
14
|
+
|
|
3
15
|
## 193.9.9
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -126,10 +126,9 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
|
|
|
126
126
|
HighlightComponent: (_props$mention2 = props.mention) === null || _props$mention2 === void 0 ? void 0 : _props$mention2.HighlightComponent
|
|
127
127
|
}], Boolean(props.mentionProvider)).maybeAdd(_emoji.emojiPlugin, Boolean(props.emojiProvider)).maybeAdd([_table.tablesPlugin, {
|
|
128
128
|
tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
|
|
129
|
-
tableResizingEnabled:
|
|
129
|
+
tableResizingEnabled: ['full-page', 'full-width'].includes(appearance || ''),
|
|
130
130
|
dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && isFullPage,
|
|
131
131
|
isTableScalingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tablePreserveWidth) && isFullPage,
|
|
132
|
-
breakoutEnabled: appearance === 'full-page',
|
|
133
132
|
allowContextualMenu: !isMobile,
|
|
134
133
|
fullWidthEnabled: appearance === 'full-width',
|
|
135
134
|
wasFullWidthEnabled: prevAppearance && prevAppearance === 'full-width',
|
|
@@ -23,7 +23,6 @@ var _Transition = _interopRequireDefault(require("react-transition-group/Transit
|
|
|
23
23
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
24
24
|
var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
25
25
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
26
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
27
26
|
var _colors = require("@atlaskit/theme/colors");
|
|
28
27
|
var _document = require("../../utils/document");
|
|
29
28
|
var _WithEditorActions = _interopRequireDefault(require("../WithEditorActions"));
|
|
@@ -58,7 +57,7 @@ var shouldPanelBePositionedOverEditor = exports.shouldPanelBePositionedOverEdito
|
|
|
58
57
|
var editorNotFullWidth = !(lineLength && lineLength > _editorSharedStyles.akEditorDefaultLayoutWidth);
|
|
59
58
|
var hasSpaceForPanel = !contentBreakoutModes.length && containerWidth >= panelWidth * 2 + EDITOR_WIDTH;
|
|
60
59
|
var hasSpaceForWideBreakoutsAndPanel = !contentBreakoutModes.includes(FULLWIDTH_MODE) && contentBreakoutModes.includes(WIDE_MODE) && containerWidth >= panelWidth * 2 + WIDE_EDITOR_WIDTH;
|
|
61
|
-
if (!
|
|
60
|
+
if (!editorView) {
|
|
62
61
|
return editorNotFullWidth && (hasSpaceForPanel || hasSpaceForWideBreakoutsAndPanel);
|
|
63
62
|
} else {
|
|
64
63
|
// when custom table width feature flag is on,
|
|
@@ -115,10 +115,9 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
|
|
|
115
115
|
HighlightComponent: (_props$mention2 = props.mention) === null || _props$mention2 === void 0 ? void 0 : _props$mention2.HighlightComponent
|
|
116
116
|
}], Boolean(props.mentionProvider)).maybeAdd(emojiPlugin, Boolean(props.emojiProvider)).maybeAdd([tablesPlugin, {
|
|
117
117
|
tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
|
|
118
|
-
tableResizingEnabled:
|
|
118
|
+
tableResizingEnabled: ['full-page', 'full-width'].includes(appearance || ''),
|
|
119
119
|
dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && isFullPage,
|
|
120
120
|
isTableScalingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tablePreserveWidth) && isFullPage,
|
|
121
|
-
breakoutEnabled: appearance === 'full-page',
|
|
122
121
|
allowContextualMenu: !isMobile,
|
|
123
122
|
fullWidthEnabled: appearance === 'full-width',
|
|
124
123
|
wasFullWidthEnabled: prevAppearance && prevAppearance === 'full-width',
|
|
@@ -7,7 +7,6 @@ import Transition from 'react-transition-group/Transition';
|
|
|
7
7
|
import { ContextPanelConsumer, WidthContext } from '@atlaskit/editor-common/ui';
|
|
8
8
|
import { findChildrenByType } from '@atlaskit/editor-prosemirror/utils';
|
|
9
9
|
import { akEditorBreakoutPadding, akEditorContextPanelWidth, akEditorDefaultLayoutWidth, akEditorSwoopCubicBezier, akEditorWideLayoutWidth, ATLASSIAN_NAVIGATION_HEIGHT } from '@atlaskit/editor-shared-styles';
|
|
10
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
11
10
|
import { N30 } from '@atlaskit/theme/colors';
|
|
12
11
|
import { getChildBreakoutModes } from '../../utils/document';
|
|
13
12
|
import WithEditorActions from '../WithEditorActions';
|
|
@@ -36,7 +35,7 @@ export const shouldPanelBePositionedOverEditor = (editorWidth, panelWidth, edito
|
|
|
36
35
|
const editorNotFullWidth = !(lineLength && lineLength > akEditorDefaultLayoutWidth);
|
|
37
36
|
const hasSpaceForPanel = !contentBreakoutModes.length && containerWidth >= panelWidth * 2 + EDITOR_WIDTH;
|
|
38
37
|
const hasSpaceForWideBreakoutsAndPanel = !contentBreakoutModes.includes(FULLWIDTH_MODE) && contentBreakoutModes.includes(WIDE_MODE) && containerWidth >= panelWidth * 2 + WIDE_EDITOR_WIDTH;
|
|
39
|
-
if (!
|
|
38
|
+
if (!editorView) {
|
|
40
39
|
return editorNotFullWidth && (hasSpaceForPanel || hasSpaceForWideBreakoutsAndPanel);
|
|
41
40
|
} else {
|
|
42
41
|
// when custom table width feature flag is on,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "193.
|
|
2
|
+
export const version = "193.10.4";
|
|
@@ -118,10 +118,9 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
|
|
|
118
118
|
HighlightComponent: (_props$mention2 = props.mention) === null || _props$mention2 === void 0 ? void 0 : _props$mention2.HighlightComponent
|
|
119
119
|
}], Boolean(props.mentionProvider)).maybeAdd(emojiPlugin, Boolean(props.emojiProvider)).maybeAdd([tablesPlugin, {
|
|
120
120
|
tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
|
|
121
|
-
tableResizingEnabled:
|
|
121
|
+
tableResizingEnabled: ['full-page', 'full-width'].includes(appearance || ''),
|
|
122
122
|
dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && isFullPage,
|
|
123
123
|
isTableScalingEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tablePreserveWidth) && isFullPage,
|
|
124
|
-
breakoutEnabled: appearance === 'full-page',
|
|
125
124
|
allowContextualMenu: !isMobile,
|
|
126
125
|
fullWidthEnabled: appearance === 'full-width',
|
|
127
126
|
wasFullWidthEnabled: prevAppearance && prevAppearance === 'full-width',
|
|
@@ -19,7 +19,6 @@ import Transition from 'react-transition-group/Transition';
|
|
|
19
19
|
import { ContextPanelConsumer, WidthContext } from '@atlaskit/editor-common/ui';
|
|
20
20
|
import { findChildrenByType } from '@atlaskit/editor-prosemirror/utils';
|
|
21
21
|
import { akEditorBreakoutPadding, akEditorContextPanelWidth, akEditorDefaultLayoutWidth, akEditorSwoopCubicBezier, akEditorWideLayoutWidth, ATLASSIAN_NAVIGATION_HEIGHT } from '@atlaskit/editor-shared-styles';
|
|
22
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
23
22
|
import { N30 } from '@atlaskit/theme/colors';
|
|
24
23
|
import { getChildBreakoutModes } from '../../utils/document';
|
|
25
24
|
import WithEditorActions from '../WithEditorActions';
|
|
@@ -47,7 +46,7 @@ export var shouldPanelBePositionedOverEditor = function shouldPanelBePositionedO
|
|
|
47
46
|
var editorNotFullWidth = !(lineLength && lineLength > akEditorDefaultLayoutWidth);
|
|
48
47
|
var hasSpaceForPanel = !contentBreakoutModes.length && containerWidth >= panelWidth * 2 + EDITOR_WIDTH;
|
|
49
48
|
var hasSpaceForWideBreakoutsAndPanel = !contentBreakoutModes.includes(FULLWIDTH_MODE) && contentBreakoutModes.includes(WIDE_MODE) && containerWidth >= panelWidth * 2 + WIDE_EDITOR_WIDTH;
|
|
50
|
-
if (!
|
|
49
|
+
if (!editorView) {
|
|
51
50
|
return editorNotFullWidth && (hasSpaceForPanel || hasSpaceForWideBreakoutsAndPanel);
|
|
52
51
|
} else {
|
|
53
52
|
// when custom table width feature flag is on,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "193.
|
|
2
|
+
export var version = "193.10.4";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "193.
|
|
3
|
+
"version": "193.10.4",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@atlaskit/analytics-namespaced-context": "^6.9.0",
|
|
45
45
|
"@atlaskit/analytics-next": "^9.2.0",
|
|
46
46
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
47
|
-
"@atlaskit/button": "^17.
|
|
47
|
+
"@atlaskit/button": "^17.12.0",
|
|
48
48
|
"@atlaskit/editor-common": "^78.26.0",
|
|
49
49
|
"@atlaskit/editor-json-transformer": "^8.10.0",
|
|
50
50
|
"@atlaskit/editor-plugins": "^2.0.0",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"@atlaskit/collab-provider": "9.26.0",
|
|
91
91
|
"@atlaskit/dropdown-menu": "^12.8.0",
|
|
92
92
|
"@atlaskit/editor-plugin-annotation": "1.5.8",
|
|
93
|
-
"@atlaskit/editor-plugin-card": "^1.
|
|
93
|
+
"@atlaskit/editor-plugin-card": "^1.6.0",
|
|
94
94
|
"@atlaskit/editor-plugin-editor-viewmode": "^1.0.0",
|
|
95
95
|
"@atlaskit/editor-plugin-list": "^3.1.5",
|
|
96
96
|
"@atlaskit/editor-plugin-paste": "^1.0.0",
|
|
@@ -104,17 +104,16 @@
|
|
|
104
104
|
"@atlaskit/media-test-helpers": "^33.0.27",
|
|
105
105
|
"@atlaskit/modal-dialog": "^12.10.0",
|
|
106
106
|
"@atlaskit/primitives": "^5.5.0",
|
|
107
|
-
"@atlaskit/renderer": "^109.
|
|
107
|
+
"@atlaskit/renderer": "^109.17.0",
|
|
108
108
|
"@atlaskit/select": "^17.6.0",
|
|
109
|
-
"@atlaskit/smart-card": "^26.
|
|
109
|
+
"@atlaskit/smart-card": "^26.55.0",
|
|
110
110
|
"@atlaskit/synchrony-test-helpers": "^2.3.0",
|
|
111
111
|
"@atlaskit/util-data-test": "^17.9.0",
|
|
112
112
|
"@atlaskit/visual-regression": "*",
|
|
113
113
|
"@atlassian/adf-schema-json": "^1.0.7",
|
|
114
114
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
115
|
-
"@atlassian/feature-flags-test-utils": "^0.2.0",
|
|
116
115
|
"@atlassian/link-picker-plugins": "^24.0.0",
|
|
117
|
-
"@atlassian/search-provider": "2.4.
|
|
116
|
+
"@atlassian/search-provider": "2.4.55",
|
|
118
117
|
"@atlassian/ufo": "^0.2.0",
|
|
119
118
|
"@emotion/jest": "^11.8.0",
|
|
120
119
|
"@storybook/addon-knobs": "^5.3.18",
|
|
@@ -177,9 +176,6 @@
|
|
|
177
176
|
"type": "boolean",
|
|
178
177
|
"referenceOnly": "true"
|
|
179
178
|
},
|
|
180
|
-
"platform.editor.custom-table-width": {
|
|
181
|
-
"type": "boolean"
|
|
182
|
-
},
|
|
183
179
|
"platform.editor.resizer.prevent-contenteditable": {
|
|
184
180
|
"type": "boolean",
|
|
185
181
|
"referenceOnly": "true"
|
|
@@ -297,6 +293,10 @@
|
|
|
297
293
|
"type": "boolean",
|
|
298
294
|
"referenceOnly": "true"
|
|
299
295
|
},
|
|
296
|
+
"platform.editor.paste-markdown-table-in-a-table": {
|
|
297
|
+
"type": "boolean",
|
|
298
|
+
"referenceOnly": "true"
|
|
299
|
+
},
|
|
300
300
|
"platform.editor.table.background-color-flicker-in-drag-menu": {
|
|
301
301
|
"type": "boolean",
|
|
302
302
|
"referenceOnly": "true"
|