@atlaskit/editor-core 215.3.3 → 215.4.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 +19 -0
- package/dist/cjs/composable-editor/utils/getBaseFontSize.js +1 -1
- package/dist/cjs/ui/Appearance/Comment/Comment.js +18 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/utils/getBaseFontSize.js +1 -1
- package/dist/es2019/ui/Appearance/Comment/Comment.js +18 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/utils/getBaseFontSize.js +1 -1
- package/dist/esm/ui/Appearance/Comment/Comment.js +18 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/types/editor-props.d.ts +3 -2
- package/dist/types-ts4.5/types/editor-props.d.ts +3 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 215.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`2fc927b3b7437`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2fc927b3b7437) -
|
|
8
|
+
[ux] ED29532 Add keyboard navigation provider to comment toolbar
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 215.4.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [`18aec70029328`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/18aec70029328) -
|
|
16
|
+
EDITOR-2420 Rename parameter values of `dense` contentMode to `compact`
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 215.3.3
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -12,7 +12,7 @@ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
|
12
12
|
*/
|
|
13
13
|
function getBaseFontSize(appearance, contentMode) {
|
|
14
14
|
if ((0, _expValEquals.expValEquals)('cc_editor_ai_content_mode', 'variant', 'test')) {
|
|
15
|
-
if (contentMode === 'dense') {
|
|
15
|
+
if (contentMode === ((0, _expValEquals.expValEquals)('confluence_content_mode_replace_dense_with_compact', 'cohort', 'test') ? 'compact' : 'dense')) {
|
|
16
16
|
return _editorSharedStyles.akEditorFullPageDenseFontSize;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -19,6 +19,7 @@ var _messages = _interopRequireDefault(require("@atlaskit/editor-common/messages
|
|
|
19
19
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
20
20
|
var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
21
21
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
22
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
22
23
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
23
24
|
var _ClickAreaBlock = _interopRequireDefault(require("../../Addon/ClickAreaBlock"));
|
|
24
25
|
var _contentComponentWrapper = require("../../Addon/ClickAreaBlock/contentComponentWrapper");
|
|
@@ -191,7 +192,23 @@ var CommentEditorWithIntl = exports.CommentEditorWithIntl = function CommentEdit
|
|
|
191
192
|
useStickyToolbar: useStickyToolbar,
|
|
192
193
|
twoLineEditorToolbar: isTwoLineToolbarEnabled,
|
|
193
194
|
isNewToolbarEnabled: isToolbarAIFCEnabled
|
|
194
|
-
}, isToolbarAIFCEnabled ? (0,
|
|
195
|
+
}, isToolbarAIFCEnabled ? (0, _platformFeatureFlags.fg)('platform_editor_toolbar_aifc_patch_7') ? (0, _react2.jsx)(_uiMenu.ToolbarArrowKeyNavigationProvider, {
|
|
196
|
+
editorView: editorView,
|
|
197
|
+
childComponentSelector: "[data-testid='ak-editor-main-toolbar']",
|
|
198
|
+
isShortcutToFocusToolbar: isShortcutToFocusToolbar,
|
|
199
|
+
handleEscape: handleEscape,
|
|
200
|
+
editorAppearance: appearance,
|
|
201
|
+
useStickyToolbar: useStickyToolbar,
|
|
202
|
+
intl: intl
|
|
203
|
+
}, (0, _react2.jsx)(_CommentToolbar.CommentToolbar, {
|
|
204
|
+
editorAPI: editorAPI,
|
|
205
|
+
editorView: editorView,
|
|
206
|
+
editorAppearance: appearance,
|
|
207
|
+
disabled: patch6Enabled ? !!disabled : undefined,
|
|
208
|
+
popupsBoundariesElement: popupsBoundariesElement,
|
|
209
|
+
popupsScrollableElement: popupsScrollableElement,
|
|
210
|
+
popupsMountPoint: popupsMountPoint
|
|
211
|
+
})) : (0, _react2.jsx)(_react.default.Fragment, null, (0, _react2.jsx)(_CommentToolbar.CommentToolbar, {
|
|
195
212
|
editorAPI: editorAPI,
|
|
196
213
|
editorView: editorView,
|
|
197
214
|
editorAppearance: appearance,
|
|
@@ -7,7 +7,7 @@ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
|
7
7
|
*/
|
|
8
8
|
export function getBaseFontSize(appearance, contentMode) {
|
|
9
9
|
if (expValEquals('cc_editor_ai_content_mode', 'variant', 'test')) {
|
|
10
|
-
if (contentMode === 'dense') {
|
|
10
|
+
if (contentMode === (expValEquals('confluence_content_mode_replace_dense_with_compact', 'cohort', 'test') ? 'compact' : 'dense')) {
|
|
11
11
|
return akEditorFullPageDenseFontSize;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -15,6 +15,7 @@ import messages from '@atlaskit/editor-common/messages';
|
|
|
15
15
|
import { WidthConsumer, WidthProvider } from '@atlaskit/editor-common/ui';
|
|
16
16
|
import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-menu';
|
|
17
17
|
import { akEditorMobileBreakoutPoint } from '@atlaskit/editor-shared-styles';
|
|
18
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
19
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
19
20
|
// Ignored via go/ees005
|
|
20
21
|
// eslint-disable-next-line import/no-named-as-default
|
|
@@ -179,7 +180,23 @@ export const CommentEditorWithIntl = props => {
|
|
|
179
180
|
useStickyToolbar: useStickyToolbar,
|
|
180
181
|
twoLineEditorToolbar: isTwoLineToolbarEnabled,
|
|
181
182
|
isNewToolbarEnabled: isToolbarAIFCEnabled
|
|
182
|
-
}, isToolbarAIFCEnabled ?
|
|
183
|
+
}, isToolbarAIFCEnabled ? fg('platform_editor_toolbar_aifc_patch_7') ? jsx(ToolbarArrowKeyNavigationProvider, {
|
|
184
|
+
editorView: editorView,
|
|
185
|
+
childComponentSelector: "[data-testid='ak-editor-main-toolbar']",
|
|
186
|
+
isShortcutToFocusToolbar: isShortcutToFocusToolbar,
|
|
187
|
+
handleEscape: handleEscape,
|
|
188
|
+
editorAppearance: appearance,
|
|
189
|
+
useStickyToolbar: useStickyToolbar,
|
|
190
|
+
intl: intl
|
|
191
|
+
}, jsx(CommentToolbar, {
|
|
192
|
+
editorAPI: editorAPI,
|
|
193
|
+
editorView: editorView,
|
|
194
|
+
editorAppearance: appearance,
|
|
195
|
+
disabled: patch6Enabled ? !!disabled : undefined,
|
|
196
|
+
popupsBoundariesElement: popupsBoundariesElement,
|
|
197
|
+
popupsScrollableElement: popupsScrollableElement,
|
|
198
|
+
popupsMountPoint: popupsMountPoint
|
|
199
|
+
})) : jsx(React.Fragment, null, jsx(CommentToolbar, {
|
|
183
200
|
editorAPI: editorAPI,
|
|
184
201
|
editorView: editorView,
|
|
185
202
|
editorAppearance: appearance,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "215.
|
|
2
|
+
export const version = "215.4.0";
|
|
@@ -7,7 +7,7 @@ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
|
7
7
|
*/
|
|
8
8
|
export function getBaseFontSize(appearance, contentMode) {
|
|
9
9
|
if (expValEquals('cc_editor_ai_content_mode', 'variant', 'test')) {
|
|
10
|
-
if (contentMode === 'dense') {
|
|
10
|
+
if (contentMode === (expValEquals('confluence_content_mode_replace_dense_with_compact', 'cohort', 'test') ? 'compact' : 'dense')) {
|
|
11
11
|
return akEditorFullPageDenseFontSize;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -17,6 +17,7 @@ import messages from '@atlaskit/editor-common/messages';
|
|
|
17
17
|
import { WidthConsumer, WidthProvider } from '@atlaskit/editor-common/ui';
|
|
18
18
|
import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-menu';
|
|
19
19
|
import { akEditorMobileBreakoutPoint } from '@atlaskit/editor-shared-styles';
|
|
20
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
20
21
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
21
22
|
// Ignored via go/ees005
|
|
22
23
|
// eslint-disable-next-line import/no-named-as-default
|
|
@@ -180,7 +181,23 @@ export var CommentEditorWithIntl = function CommentEditorWithIntl(props) {
|
|
|
180
181
|
useStickyToolbar: useStickyToolbar,
|
|
181
182
|
twoLineEditorToolbar: isTwoLineToolbarEnabled,
|
|
182
183
|
isNewToolbarEnabled: isToolbarAIFCEnabled
|
|
183
|
-
}, isToolbarAIFCEnabled ?
|
|
184
|
+
}, isToolbarAIFCEnabled ? fg('platform_editor_toolbar_aifc_patch_7') ? jsx(ToolbarArrowKeyNavigationProvider, {
|
|
185
|
+
editorView: editorView,
|
|
186
|
+
childComponentSelector: "[data-testid='ak-editor-main-toolbar']",
|
|
187
|
+
isShortcutToFocusToolbar: isShortcutToFocusToolbar,
|
|
188
|
+
handleEscape: handleEscape,
|
|
189
|
+
editorAppearance: appearance,
|
|
190
|
+
useStickyToolbar: useStickyToolbar,
|
|
191
|
+
intl: intl
|
|
192
|
+
}, jsx(CommentToolbar, {
|
|
193
|
+
editorAPI: editorAPI,
|
|
194
|
+
editorView: editorView,
|
|
195
|
+
editorAppearance: appearance,
|
|
196
|
+
disabled: patch6Enabled ? !!disabled : undefined,
|
|
197
|
+
popupsBoundariesElement: popupsBoundariesElement,
|
|
198
|
+
popupsScrollableElement: popupsScrollableElement,
|
|
199
|
+
popupsMountPoint: popupsMountPoint
|
|
200
|
+
})) : jsx(React.Fragment, null, jsx(CommentToolbar, {
|
|
184
201
|
editorAPI: editorAPI,
|
|
185
202
|
editorView: editorView,
|
|
186
203
|
editorAppearance: appearance,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "215.
|
|
2
|
+
export var version = "215.4.0";
|
|
@@ -63,12 +63,13 @@ interface EditorBaseProps {
|
|
|
63
63
|
* Configures the content mode of the editor.
|
|
64
64
|
*
|
|
65
65
|
* - `"standard"` | `undefined` - normal content mode <- Default
|
|
66
|
-
* - `"
|
|
66
|
+
* - `"compact"` - content in editor has reduced size
|
|
67
|
+
* // TODO: EDITOR-2435 - remove `dense` when cleaning up 'confluence_content_mode_replace_dense_with_compact'
|
|
67
68
|
*
|
|
68
69
|
* @private
|
|
69
70
|
* @deprecated this attribute is not supported outside of Confluence Full Page editors
|
|
70
71
|
*/
|
|
71
|
-
contentMode?: 'standard' | 'dense' | undefined;
|
|
72
|
+
contentMode?: 'standard' | 'dense' | 'compact' | undefined;
|
|
72
73
|
contentTransformerProvider?: (schema: Schema) => Transformer<string>;
|
|
73
74
|
contextPanel?: ReactComponents;
|
|
74
75
|
defaultValue?: Node | string | Object;
|
|
@@ -63,12 +63,13 @@ interface EditorBaseProps {
|
|
|
63
63
|
* Configures the content mode of the editor.
|
|
64
64
|
*
|
|
65
65
|
* - `"standard"` | `undefined` - normal content mode <- Default
|
|
66
|
-
* - `"
|
|
66
|
+
* - `"compact"` - content in editor has reduced size
|
|
67
|
+
* // TODO: EDITOR-2435 - remove `dense` when cleaning up 'confluence_content_mode_replace_dense_with_compact'
|
|
67
68
|
*
|
|
68
69
|
* @private
|
|
69
70
|
* @deprecated this attribute is not supported outside of Confluence Full Page editors
|
|
70
71
|
*/
|
|
71
|
-
contentMode?: 'standard' | 'dense' | undefined;
|
|
72
|
+
contentMode?: 'standard' | 'dense' | 'compact' | undefined;
|
|
72
73
|
contentTransformerProvider?: (schema: Schema) => Transformer<string>;
|
|
73
74
|
contextPanel?: ReactComponents;
|
|
74
75
|
defaultValue?: Node | string | Object;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "215.
|
|
3
|
+
"version": "215.4.1",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@atlaskit/platform-feature-flags-react": "^0.3.0",
|
|
65
65
|
"@atlaskit/react-ufo": "^4.12.0",
|
|
66
66
|
"@atlaskit/task-decision": "^19.2.0",
|
|
67
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
67
|
+
"@atlaskit/tmp-editor-statsig": "^13.16.0",
|
|
68
68
|
"@atlaskit/tokens": "^7.0.0",
|
|
69
69
|
"@atlaskit/tooltip": "^20.6.0",
|
|
70
70
|
"@atlaskit/width-detector": "^5.0.0",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"uuid": "^3.1.0"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
|
-
"@atlaskit/editor-common": "^110.
|
|
84
|
+
"@atlaskit/editor-common": "^110.15.0",
|
|
85
85
|
"@atlaskit/link-provider": "^4.0.0",
|
|
86
86
|
"@atlaskit/media-core": "^37.0.0",
|
|
87
87
|
"react": "^18.2.0",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"@atlaskit/media-test-helpers": "^39.0.0",
|
|
106
106
|
"@atlaskit/modal-dialog": "^14.5.0",
|
|
107
107
|
"@atlaskit/primitives": "^16.0.0",
|
|
108
|
-
"@atlaskit/renderer": "^124.
|
|
108
|
+
"@atlaskit/renderer": "^124.8.0",
|
|
109
109
|
"@atlaskit/section-message": "^8.7.0",
|
|
110
110
|
"@atlaskit/smart-card": "^43.2.0",
|
|
111
111
|
"@atlaskit/synchrony-test-helpers": "workspace:^",
|