@atlaskit/editor-core 209.0.2 → 209.0.3
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 +9 -0
- package/dist/cjs/ui/Appearance/Chromeless.js +12 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Appearance/Chromeless.js +12 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Appearance/Chromeless.js +12 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 209.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#181948](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/181948)
|
|
8
|
+
[`e7e5b1bee5fb2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e7e5b1bee5fb2) -
|
|
9
|
+
[ux] [EDF-2688] Fix extra space for last line in comment editor
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 209.0.2
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -17,6 +17,7 @@ var _react2 = require("@emotion/react");
|
|
|
17
17
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
18
18
|
var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
|
|
19
19
|
var _scrollbar = require("@atlaskit/editor-shared-styles/scrollbar");
|
|
20
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
20
21
|
var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
|
|
21
22
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
22
23
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
@@ -95,6 +96,15 @@ var chromelessEditorStylesNew = (0, _react2.css)({
|
|
|
95
96
|
}
|
|
96
97
|
}
|
|
97
98
|
});
|
|
99
|
+
var extraSpaceLastLineFix = (0, _react2.css)({
|
|
100
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
101
|
+
'.ProseMirror': {
|
|
102
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
103
|
+
'& > p:last-of-type': {
|
|
104
|
+
marginBottom: "var(--ds-space-0, 0px)"
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
});
|
|
98
108
|
var ContentArea = exports.ContentArea = (0, _ContentStyles.createEditorContentStyle)();
|
|
99
109
|
ContentArea.displayName = 'ContentArea';
|
|
100
110
|
var EditorContainer = (0, _platformFeatureFlagsReact.componentWithCondition)(function () {
|
|
@@ -223,7 +233,7 @@ function ChromelessEditorContainerNext(_ref3) {
|
|
|
223
233
|
children = _ref3.children,
|
|
224
234
|
containerRef = _ref3.containerRef;
|
|
225
235
|
return (0, _react2.jsx)("div", {
|
|
226
|
-
css: [chromelessEditorStylesNew, scrollbarStylesNew],
|
|
236
|
+
css: [chromelessEditorStylesNew, scrollbarStylesNew, (0, _platformFeatureFlags.fg)('platform_fix_extra_space_last_line_comment_editor') && extraSpaceLastLineFix],
|
|
227
237
|
style: {
|
|
228
238
|
maxHeight: maxHeight ? "".concat(maxHeight, "px") : undefined,
|
|
229
239
|
minHeight: "".concat(minHeight, "px")
|
|
@@ -249,7 +259,7 @@ function ChromelessEditorContainerOld(_ref4) {
|
|
|
249
259
|
(0, _react2.css)({
|
|
250
260
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
251
261
|
minHeight: "".concat(minHeight, "px")
|
|
252
|
-
})],
|
|
262
|
+
}), (0, _platformFeatureFlags.fg)('platform_fix_extra_space_last_line_comment_editor') && extraSpaceLastLineFix],
|
|
253
263
|
"data-testid": "chromeless-editor",
|
|
254
264
|
id: "chromeless-editor",
|
|
255
265
|
ref: containerRef
|
|
@@ -10,6 +10,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
10
10
|
import { sharedPluginStateHookMigratorFactory, useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
11
11
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
12
12
|
import { scrollbarStyles } from '@atlaskit/editor-shared-styles/scrollbar';
|
|
13
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
14
|
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
|
|
14
15
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
15
16
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
@@ -82,6 +83,15 @@ const chromelessEditorStylesNew = css({
|
|
|
82
83
|
}
|
|
83
84
|
}
|
|
84
85
|
});
|
|
86
|
+
const extraSpaceLastLineFix = css({
|
|
87
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
88
|
+
'.ProseMirror': {
|
|
89
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
90
|
+
'& > p:last-of-type': {
|
|
91
|
+
marginBottom: "var(--ds-space-0, 0px)"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
});
|
|
85
95
|
export const ContentArea = createEditorContentStyle();
|
|
86
96
|
ContentArea.displayName = 'ContentArea';
|
|
87
97
|
const EditorContainer = componentWithCondition(() => editorExperiment('platform_editor_core_static_emotion', true, {
|
|
@@ -202,7 +212,7 @@ function ChromelessEditorContainerNext({
|
|
|
202
212
|
containerRef
|
|
203
213
|
}) {
|
|
204
214
|
return jsx("div", {
|
|
205
|
-
css: [chromelessEditorStylesNew, scrollbarStylesNew],
|
|
215
|
+
css: [chromelessEditorStylesNew, scrollbarStylesNew, fg('platform_fix_extra_space_last_line_comment_editor') && extraSpaceLastLineFix],
|
|
206
216
|
style: {
|
|
207
217
|
maxHeight: maxHeight ? `${maxHeight}px` : undefined,
|
|
208
218
|
minHeight: `${minHeight}px`
|
|
@@ -229,7 +239,7 @@ function ChromelessEditorContainerOld({
|
|
|
229
239
|
css({
|
|
230
240
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
231
241
|
minHeight: `${minHeight}px`
|
|
232
|
-
})],
|
|
242
|
+
}), fg('platform_fix_extra_space_last_line_comment_editor') && extraSpaceLastLineFix],
|
|
233
243
|
"data-testid": "chromeless-editor",
|
|
234
244
|
id: "chromeless-editor",
|
|
235
245
|
ref: containerRef
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "209.0.
|
|
2
|
+
export const version = "209.0.2";
|
|
@@ -17,6 +17,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
17
17
|
import { sharedPluginStateHookMigratorFactory, useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
18
18
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
19
19
|
import { scrollbarStyles } from '@atlaskit/editor-shared-styles/scrollbar';
|
|
20
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
20
21
|
import { componentWithCondition } from '@atlaskit/platform-feature-flags-react';
|
|
21
22
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
22
23
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
@@ -89,6 +90,15 @@ var chromelessEditorStylesNew = css({
|
|
|
89
90
|
}
|
|
90
91
|
}
|
|
91
92
|
});
|
|
93
|
+
var extraSpaceLastLineFix = css({
|
|
94
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
95
|
+
'.ProseMirror': {
|
|
96
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
97
|
+
'& > p:last-of-type': {
|
|
98
|
+
marginBottom: "var(--ds-space-0, 0px)"
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
});
|
|
92
102
|
export var ContentArea = createEditorContentStyle();
|
|
93
103
|
ContentArea.displayName = 'ContentArea';
|
|
94
104
|
var EditorContainer = componentWithCondition(function () {
|
|
@@ -218,7 +228,7 @@ function ChromelessEditorContainerNext(_ref3) {
|
|
|
218
228
|
children = _ref3.children,
|
|
219
229
|
containerRef = _ref3.containerRef;
|
|
220
230
|
return jsx("div", {
|
|
221
|
-
css: [chromelessEditorStylesNew, scrollbarStylesNew],
|
|
231
|
+
css: [chromelessEditorStylesNew, scrollbarStylesNew, fg('platform_fix_extra_space_last_line_comment_editor') && extraSpaceLastLineFix],
|
|
222
232
|
style: {
|
|
223
233
|
maxHeight: maxHeight ? "".concat(maxHeight, "px") : undefined,
|
|
224
234
|
minHeight: "".concat(minHeight, "px")
|
|
@@ -244,7 +254,7 @@ function ChromelessEditorContainerOld(_ref4) {
|
|
|
244
254
|
css({
|
|
245
255
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
246
256
|
minHeight: "".concat(minHeight, "px")
|
|
247
|
-
})],
|
|
257
|
+
}), fg('platform_fix_extra_space_last_line_comment_editor') && extraSpaceLastLineFix],
|
|
248
258
|
"data-testid": "chromeless-editor",
|
|
249
259
|
id: "chromeless-editor",
|
|
250
260
|
ref: containerRef
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "209.0.
|
|
2
|
+
export var version = "209.0.2";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "209.0.
|
|
3
|
+
"version": "209.0.3",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@atlaskit/platform-feature-flags-react": "^0.2.0",
|
|
62
62
|
"@atlaskit/react-ufo": "^3.14.0",
|
|
63
63
|
"@atlaskit/task-decision": "^19.2.0",
|
|
64
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
64
|
+
"@atlaskit/tmp-editor-statsig": "^9.0.0",
|
|
65
65
|
"@atlaskit/tokens": "^5.4.0",
|
|
66
66
|
"@atlaskit/tooltip": "^20.3.0",
|
|
67
67
|
"@atlaskit/width-detector": "^5.0.0",
|
|
@@ -580,6 +580,9 @@
|
|
|
580
580
|
},
|
|
581
581
|
"platform_editor_vanilla_codebidi_warning": {
|
|
582
582
|
"type": "boolean"
|
|
583
|
+
},
|
|
584
|
+
"platform_fix_extra_space_last_line_comment_editor": {
|
|
585
|
+
"type": "boolean"
|
|
583
586
|
}
|
|
584
587
|
},
|
|
585
588
|
"stricter": {
|