@atlaskit/editor-core 215.1.6 → 215.2.0
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 +14 -2
- package/dist/cjs/create-editor/ReactEditorView.js +6 -0
- package/dist/cjs/ui/Appearance/Comment/Comment.js +4 -1
- package/dist/cjs/ui/Appearance/Comment/CommentToolbar.js +8 -2
- package/dist/cjs/ui/EditorContentContainer/styles/extensionStyles.js +4 -5
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/create-editor/ReactEditorView.js +6 -0
- package/dist/es2019/ui/Appearance/Comment/Comment.js +4 -1
- package/dist/es2019/ui/Appearance/Comment/CommentToolbar.js +8 -2
- package/dist/es2019/ui/EditorContentContainer/styles/extensionStyles.js +4 -5
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/create-editor/ReactEditorView.js +6 -0
- package/dist/esm/ui/Appearance/Comment/Comment.js +4 -1
- package/dist/esm/ui/Appearance/Comment/CommentToolbar.js +8 -2
- package/dist/esm/ui/EditorContentContainer/styles/extensionStyles.js +4 -5
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/ui/Appearance/Comment/CommentToolbar.d.ts +4 -1
- package/dist/types-ts4.5/ui/Appearance/Comment/CommentToolbar.d.ts +4 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 215.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`0560b4dfd1361`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0560b4dfd1361) -
|
|
8
|
+
Experiment with disabling prosemirror rendering in SSR
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- [`e22968790f2b5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e22968790f2b5) -
|
|
13
|
+
[ux] [EDITOR-2374] prevent style overrides on codemarks in excerpts
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 215.1.6
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -8903,8 +8916,7 @@
|
|
|
8903
8916
|
-
|
|
8904
8917
|
50. Another list item
|
|
8905
8918
|
|
|
8906
|
-
Should NOT auto join to be 1 & 2 in a single list however... 49. A list item
|
|
8907
|
-
-
|
|
8919
|
+
## Should NOT auto join to be 1 & 2 in a single list however... 49. A list item
|
|
8908
8920
|
50. Another list item
|
|
8909
8921
|
|
|
8910
8922
|
Should join to be 49 & 50 in a single list.
|
|
@@ -14,6 +14,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
14
14
|
var _reactIntlNext = require("react-intl-next");
|
|
15
15
|
var _v = _interopRequireDefault(require("uuid/v4"));
|
|
16
16
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
17
|
+
var _coreUtils = require("@atlaskit/editor-common/core-utils");
|
|
17
18
|
var _eventDispatcher = require("@atlaskit/editor-common/event-dispatcher");
|
|
18
19
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
19
20
|
var _nodeVisibility = require("@atlaskit/editor-common/node-visibility");
|
|
@@ -30,6 +31,7 @@ var _view = require("@atlaskit/editor-prosemirror/view");
|
|
|
30
31
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
31
32
|
var _interactionMetrics = require("@atlaskit/react-ufo/interaction-metrics");
|
|
32
33
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
34
|
+
var _expVal = require("@atlaskit/tmp-editor-statsig/expVal");
|
|
33
35
|
var _useProviders = require("../composable-editor/hooks/useProviders");
|
|
34
36
|
var _featureFlagsFromProps = require("../utils/feature-flags-from-props");
|
|
35
37
|
var _getNodesCount = require("../utils/getNodesCount");
|
|
@@ -552,7 +554,11 @@ function ReactEditorView(props) {
|
|
|
552
554
|
};
|
|
553
555
|
}, []);
|
|
554
556
|
var handleEditorViewRef = (0, _react.useCallback)(function (node) {
|
|
557
|
+
if ((0, _coreUtils.isSSR)() && (0, _expVal.expVal)('platform_editor_no_ssr', 'isEnabled', false)) {
|
|
558
|
+
return;
|
|
559
|
+
}
|
|
555
560
|
if (node) {
|
|
561
|
+
// eslint-disable-next-line @atlaskit/platform/no-direct-document-usage
|
|
556
562
|
scrollElement.current = document.querySelector('[data-editor-scroll-container]');
|
|
557
563
|
var cleanupListeners = function cleanupListeners() {
|
|
558
564
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -195,7 +195,10 @@ var CommentEditorWithIntl = exports.CommentEditorWithIntl = function CommentEdit
|
|
|
195
195
|
editorAPI: editorAPI,
|
|
196
196
|
editorView: editorView,
|
|
197
197
|
editorAppearance: appearance,
|
|
198
|
-
disabled: patch6Enabled ? !!disabled : undefined
|
|
198
|
+
disabled: patch6Enabled ? !!disabled : undefined,
|
|
199
|
+
popupsBoundariesElement: popupsBoundariesElement,
|
|
200
|
+
popupsScrollableElement: popupsScrollableElement,
|
|
201
|
+
popupsMountPoint: popupsMountPoint
|
|
199
202
|
}), customPrimaryToolbarComponents ? customToolbarSlot : null) : (0, _react2.jsx)(_uiMenu.ToolbarArrowKeyNavigationProvider, {
|
|
200
203
|
editorView: editorView,
|
|
201
204
|
childComponentSelector: "[data-testid='ak-editor-main-toolbar']",
|
|
@@ -17,7 +17,10 @@ var CommentToolbar = exports.CommentToolbar = function CommentToolbar(_ref) {
|
|
|
17
17
|
var editorAPI = _ref.editorAPI,
|
|
18
18
|
editorView = _ref.editorView,
|
|
19
19
|
editorAppearance = _ref.editorAppearance,
|
|
20
|
-
disabled = _ref.disabled
|
|
20
|
+
disabled = _ref.disabled,
|
|
21
|
+
popupsBoundariesElement = _ref.popupsBoundariesElement,
|
|
22
|
+
popupsMountPoint = _ref.popupsMountPoint,
|
|
23
|
+
popupsScrollableElement = _ref.popupsScrollableElement;
|
|
21
24
|
var components = editorAPI === null || editorAPI === void 0 || (_editorAPI$toolbar = editorAPI.toolbar) === null || _editorAPI$toolbar === void 0 ? void 0 : _editorAPI$toolbar.actions.getComponents();
|
|
22
25
|
var toolbar = components === null || components === void 0 ? void 0 : components.find(function (component) {
|
|
23
26
|
return component.key === _toolbar.TOOLBARS.PRIMARY_TOOLBAR;
|
|
@@ -31,6 +34,9 @@ var CommentToolbar = exports.CommentToolbar = function CommentToolbar(_ref) {
|
|
|
31
34
|
editorView: editorView,
|
|
32
35
|
editorAPI: editorAPI,
|
|
33
36
|
editorAppearance: editorAppearance,
|
|
34
|
-
isDisabled: disabled
|
|
37
|
+
isDisabled: disabled,
|
|
38
|
+
popupsBoundariesElement: popupsBoundariesElement,
|
|
39
|
+
popupsScrollableElement: popupsScrollableElement,
|
|
40
|
+
popupsMountPoint: popupsMountPoint
|
|
35
41
|
});
|
|
36
42
|
};
|
|
@@ -368,13 +368,12 @@ var getExtensionStyles = exports.getExtensionStyles = function getExtensionStyle
|
|
|
368
368
|
}
|
|
369
369
|
});
|
|
370
370
|
|
|
371
|
-
// Dense content mode
|
|
371
|
+
// Dense content mode extensions styling fix - addresses EDITOR-1992
|
|
372
372
|
// When cleaning up the experiment, move this logic into the baseExtensionStyles above
|
|
373
373
|
var fontSize = (0, _expValEquals.expValEquals)('cc_editor_ai_content_mode', 'variant', 'test') ? (0, _editorSharedStyles.relativeFontSizeToBase16)(_editorSharedStyles.akEditorFullPageDenseFontSize) : undefined;
|
|
374
|
-
|
|
375
|
-
var denseContentModeTocStyles = (0, _expValEquals.expValEquals)('cc_editor_ai_content_mode', 'variant', 'test') && (0, _platformFeatureFlags.fg)('platform_editor_content_mode_button_mvp') ? (0, _react.css)({
|
|
374
|
+
var denseExtensionStyles = (0, _expValEquals.expValEquals)('cc_editor_ai_content_mode', 'variant', 'test') && (0, _platformFeatureFlags.fg)('platform_editor_content_mode_button_mvp') ? (0, _react.css)({
|
|
376
375
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
377
|
-
'.extension-container :not([data-inline-card-lozenge]
|
|
376
|
+
'.extension-container :not([data-inline-card-lozenge] *, [data-prosemirror-mark-name="code"])': {
|
|
378
377
|
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
379
378
|
fontSize: 'var(--ak-editor-base-font-size)'
|
|
380
379
|
}
|
|
@@ -387,5 +386,5 @@ var getExtensionStyles = exports.getExtensionStyles = function getExtensionStyle
|
|
|
387
386
|
}) : (0, _react.css)({});
|
|
388
387
|
|
|
389
388
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
390
|
-
return (0, _react.css)(baseExtensionStyles,
|
|
389
|
+
return (0, _react.css)(baseExtensionStyles, denseExtensionStyles);
|
|
391
390
|
};
|
|
@@ -2,6 +2,7 @@ import React, { useCallback, useLayoutEffect, useMemo, useRef, useState } from '
|
|
|
2
2
|
import { injectIntl } from 'react-intl-next';
|
|
3
3
|
import uuid from 'uuid/v4';
|
|
4
4
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, fireAnalyticsEvent, PLATFORMS } from '@atlaskit/editor-common/analytics';
|
|
5
|
+
import { isSSR } from '@atlaskit/editor-common/core-utils';
|
|
5
6
|
import { createDispatch, EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
6
7
|
import { useConstructor, usePreviousState } from '@atlaskit/editor-common/hooks';
|
|
7
8
|
import { nodeVisibilityManager } from '@atlaskit/editor-common/node-visibility';
|
|
@@ -18,6 +19,7 @@ import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
|
18
19
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
19
20
|
import { abortAll, getActiveInteraction } from '@atlaskit/react-ufo/interaction-metrics';
|
|
20
21
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
22
|
+
import { expVal } from '@atlaskit/tmp-editor-statsig/expVal';
|
|
21
23
|
import { useProviders } from '../composable-editor/hooks/useProviders';
|
|
22
24
|
import { createFeatureFlagsFromProps } from '../utils/feature-flags-from-props';
|
|
23
25
|
import { getNodesCount } from '../utils/getNodesCount';
|
|
@@ -509,7 +511,11 @@ export function ReactEditorView(props) {
|
|
|
509
511
|
};
|
|
510
512
|
}, []);
|
|
511
513
|
const handleEditorViewRef = useCallback(node => {
|
|
514
|
+
if (isSSR() && expVal('platform_editor_no_ssr', 'isEnabled', false)) {
|
|
515
|
+
return;
|
|
516
|
+
}
|
|
512
517
|
if (node) {
|
|
518
|
+
// eslint-disable-next-line @atlaskit/platform/no-direct-document-usage
|
|
513
519
|
scrollElement.current = document.querySelector('[data-editor-scroll-container]');
|
|
514
520
|
const cleanupListeners = () => {
|
|
515
521
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -183,7 +183,10 @@ export const CommentEditorWithIntl = props => {
|
|
|
183
183
|
editorAPI: editorAPI,
|
|
184
184
|
editorView: editorView,
|
|
185
185
|
editorAppearance: appearance,
|
|
186
|
-
disabled: patch6Enabled ? !!disabled : undefined
|
|
186
|
+
disabled: patch6Enabled ? !!disabled : undefined,
|
|
187
|
+
popupsBoundariesElement: popupsBoundariesElement,
|
|
188
|
+
popupsScrollableElement: popupsScrollableElement,
|
|
189
|
+
popupsMountPoint: popupsMountPoint
|
|
187
190
|
}), customPrimaryToolbarComponents ? customToolbarSlot : null) : jsx(ToolbarArrowKeyNavigationProvider, {
|
|
188
191
|
editorView: editorView,
|
|
189
192
|
childComponentSelector: "[data-testid='ak-editor-main-toolbar']",
|
|
@@ -9,7 +9,10 @@ export const CommentToolbar = ({
|
|
|
9
9
|
editorAPI,
|
|
10
10
|
editorView,
|
|
11
11
|
editorAppearance,
|
|
12
|
-
disabled
|
|
12
|
+
disabled,
|
|
13
|
+
popupsBoundariesElement,
|
|
14
|
+
popupsMountPoint,
|
|
15
|
+
popupsScrollableElement
|
|
13
16
|
}) => {
|
|
14
17
|
var _editorAPI$toolbar;
|
|
15
18
|
const components = editorAPI === null || editorAPI === void 0 ? void 0 : (_editorAPI$toolbar = editorAPI.toolbar) === null || _editorAPI$toolbar === void 0 ? void 0 : _editorAPI$toolbar.actions.getComponents();
|
|
@@ -23,6 +26,9 @@ export const CommentToolbar = ({
|
|
|
23
26
|
editorView: editorView,
|
|
24
27
|
editorAPI: editorAPI,
|
|
25
28
|
editorAppearance: editorAppearance,
|
|
26
|
-
isDisabled: disabled
|
|
29
|
+
isDisabled: disabled,
|
|
30
|
+
popupsBoundariesElement: popupsBoundariesElement,
|
|
31
|
+
popupsScrollableElement: popupsScrollableElement,
|
|
32
|
+
popupsMountPoint: popupsMountPoint
|
|
27
33
|
});
|
|
28
34
|
};
|
|
@@ -362,13 +362,12 @@ export const getExtensionStyles = () => {
|
|
|
362
362
|
}
|
|
363
363
|
});
|
|
364
364
|
|
|
365
|
-
// Dense content mode
|
|
365
|
+
// Dense content mode extensions styling fix - addresses EDITOR-1992
|
|
366
366
|
// When cleaning up the experiment, move this logic into the baseExtensionStyles above
|
|
367
367
|
const fontSize = expValEquals('cc_editor_ai_content_mode', 'variant', 'test') ? relativeFontSizeToBase16(akEditorFullPageDenseFontSize) : undefined;
|
|
368
|
-
|
|
369
|
-
const denseContentModeTocStyles = expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp') ? css({
|
|
368
|
+
const denseExtensionStyles = expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp') ? css({
|
|
370
369
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
371
|
-
'.extension-container :not([data-inline-card-lozenge]
|
|
370
|
+
'.extension-container :not([data-inline-card-lozenge] *, [data-prosemirror-mark-name="code"])': {
|
|
372
371
|
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
373
372
|
fontSize: 'var(--ak-editor-base-font-size)'
|
|
374
373
|
}
|
|
@@ -381,5 +380,5 @@ export const getExtensionStyles = () => {
|
|
|
381
380
|
}) : css({});
|
|
382
381
|
|
|
383
382
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
384
|
-
return css(baseExtensionStyles,
|
|
383
|
+
return css(baseExtensionStyles, denseExtensionStyles);
|
|
385
384
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "215.1.
|
|
2
|
+
export const version = "215.1.6";
|
|
@@ -10,6 +10,7 @@ import React, { useCallback, useLayoutEffect, useMemo, useRef, useState } from '
|
|
|
10
10
|
import { injectIntl } from 'react-intl-next';
|
|
11
11
|
import uuid from 'uuid/v4';
|
|
12
12
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, fireAnalyticsEvent, PLATFORMS } from '@atlaskit/editor-common/analytics';
|
|
13
|
+
import { isSSR } from '@atlaskit/editor-common/core-utils';
|
|
13
14
|
import { createDispatch, EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
14
15
|
import { useConstructor, usePreviousState } from '@atlaskit/editor-common/hooks';
|
|
15
16
|
import { nodeVisibilityManager } from '@atlaskit/editor-common/node-visibility';
|
|
@@ -26,6 +27,7 @@ import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
|
26
27
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
27
28
|
import { abortAll, getActiveInteraction } from '@atlaskit/react-ufo/interaction-metrics';
|
|
28
29
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
30
|
+
import { expVal } from '@atlaskit/tmp-editor-statsig/expVal';
|
|
29
31
|
import { useProviders } from '../composable-editor/hooks/useProviders';
|
|
30
32
|
import { createFeatureFlagsFromProps } from '../utils/feature-flags-from-props';
|
|
31
33
|
import { getNodesCount } from '../utils/getNodesCount';
|
|
@@ -542,7 +544,11 @@ export function ReactEditorView(props) {
|
|
|
542
544
|
};
|
|
543
545
|
}, []);
|
|
544
546
|
var handleEditorViewRef = useCallback(function (node) {
|
|
547
|
+
if (isSSR() && expVal('platform_editor_no_ssr', 'isEnabled', false)) {
|
|
548
|
+
return;
|
|
549
|
+
}
|
|
545
550
|
if (node) {
|
|
551
|
+
// eslint-disable-next-line @atlaskit/platform/no-direct-document-usage
|
|
546
552
|
scrollElement.current = document.querySelector('[data-editor-scroll-container]');
|
|
547
553
|
var cleanupListeners = function cleanupListeners() {
|
|
548
554
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -184,7 +184,10 @@ export var CommentEditorWithIntl = function CommentEditorWithIntl(props) {
|
|
|
184
184
|
editorAPI: editorAPI,
|
|
185
185
|
editorView: editorView,
|
|
186
186
|
editorAppearance: appearance,
|
|
187
|
-
disabled: patch6Enabled ? !!disabled : undefined
|
|
187
|
+
disabled: patch6Enabled ? !!disabled : undefined,
|
|
188
|
+
popupsBoundariesElement: popupsBoundariesElement,
|
|
189
|
+
popupsScrollableElement: popupsScrollableElement,
|
|
190
|
+
popupsMountPoint: popupsMountPoint
|
|
188
191
|
}), customPrimaryToolbarComponents ? customToolbarSlot : null) : jsx(ToolbarArrowKeyNavigationProvider, {
|
|
189
192
|
editorView: editorView,
|
|
190
193
|
childComponentSelector: "[data-testid='ak-editor-main-toolbar']",
|
|
@@ -10,7 +10,10 @@ export var CommentToolbar = function CommentToolbar(_ref) {
|
|
|
10
10
|
var editorAPI = _ref.editorAPI,
|
|
11
11
|
editorView = _ref.editorView,
|
|
12
12
|
editorAppearance = _ref.editorAppearance,
|
|
13
|
-
disabled = _ref.disabled
|
|
13
|
+
disabled = _ref.disabled,
|
|
14
|
+
popupsBoundariesElement = _ref.popupsBoundariesElement,
|
|
15
|
+
popupsMountPoint = _ref.popupsMountPoint,
|
|
16
|
+
popupsScrollableElement = _ref.popupsScrollableElement;
|
|
14
17
|
var components = editorAPI === null || editorAPI === void 0 || (_editorAPI$toolbar = editorAPI.toolbar) === null || _editorAPI$toolbar === void 0 ? void 0 : _editorAPI$toolbar.actions.getComponents();
|
|
15
18
|
var toolbar = components === null || components === void 0 ? void 0 : components.find(function (component) {
|
|
16
19
|
return component.key === TOOLBARS.PRIMARY_TOOLBAR;
|
|
@@ -24,6 +27,9 @@ export var CommentToolbar = function CommentToolbar(_ref) {
|
|
|
24
27
|
editorView: editorView,
|
|
25
28
|
editorAPI: editorAPI,
|
|
26
29
|
editorAppearance: editorAppearance,
|
|
27
|
-
isDisabled: disabled
|
|
30
|
+
isDisabled: disabled,
|
|
31
|
+
popupsBoundariesElement: popupsBoundariesElement,
|
|
32
|
+
popupsScrollableElement: popupsScrollableElement,
|
|
33
|
+
popupsMountPoint: popupsMountPoint
|
|
28
34
|
});
|
|
29
35
|
};
|
|
@@ -362,13 +362,12 @@ export var getExtensionStyles = function getExtensionStyles() {
|
|
|
362
362
|
}
|
|
363
363
|
});
|
|
364
364
|
|
|
365
|
-
// Dense content mode
|
|
365
|
+
// Dense content mode extensions styling fix - addresses EDITOR-1992
|
|
366
366
|
// When cleaning up the experiment, move this logic into the baseExtensionStyles above
|
|
367
367
|
var fontSize = expValEquals('cc_editor_ai_content_mode', 'variant', 'test') ? relativeFontSizeToBase16(akEditorFullPageDenseFontSize) : undefined;
|
|
368
|
-
|
|
369
|
-
var denseContentModeTocStyles = expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp') ? css({
|
|
368
|
+
var denseExtensionStyles = expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp') ? css({
|
|
370
369
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
371
|
-
'.extension-container :not([data-inline-card-lozenge]
|
|
370
|
+
'.extension-container :not([data-inline-card-lozenge] *, [data-prosemirror-mark-name="code"])': {
|
|
372
371
|
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
373
372
|
fontSize: 'var(--ak-editor-base-font-size)'
|
|
374
373
|
}
|
|
@@ -381,5 +380,5 @@ export var getExtensionStyles = function getExtensionStyles() {
|
|
|
381
380
|
}) : css({});
|
|
382
381
|
|
|
383
382
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
384
|
-
return css(baseExtensionStyles,
|
|
383
|
+
return css(baseExtensionStyles, denseExtensionStyles);
|
|
385
384
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "215.1.
|
|
2
|
+
export var version = "215.1.6";
|
|
@@ -8,9 +8,12 @@ type CommentToolbarProps = {
|
|
|
8
8
|
editorAPI?: PublicPluginAPI<ToolbarEditorPlugins>;
|
|
9
9
|
editorAppearance: EditorAppearance;
|
|
10
10
|
editorView?: EditorView;
|
|
11
|
+
popupsBoundariesElement?: HTMLElement;
|
|
12
|
+
popupsMountPoint?: HTMLElement;
|
|
13
|
+
popupsScrollableElement?: HTMLElement;
|
|
11
14
|
};
|
|
12
15
|
/**
|
|
13
16
|
* Primary toolbar driven by components registered by `editor-plugin-toolbar`, introduced in `platform_editor_toolbar_aifc`.
|
|
14
17
|
*/
|
|
15
|
-
export declare const CommentToolbar: ({ editorAPI, editorView, editorAppearance, disabled, }: CommentToolbarProps) => React.JSX.Element | null;
|
|
18
|
+
export declare const CommentToolbar: ({ editorAPI, editorView, editorAppearance, disabled, popupsBoundariesElement, popupsMountPoint, popupsScrollableElement, }: CommentToolbarProps) => React.JSX.Element | null;
|
|
16
19
|
export {};
|
|
@@ -10,9 +10,12 @@ type CommentToolbarProps = {
|
|
|
10
10
|
editorAPI?: PublicPluginAPI<ToolbarEditorPlugins>;
|
|
11
11
|
editorAppearance: EditorAppearance;
|
|
12
12
|
editorView?: EditorView;
|
|
13
|
+
popupsBoundariesElement?: HTMLElement;
|
|
14
|
+
popupsMountPoint?: HTMLElement;
|
|
15
|
+
popupsScrollableElement?: HTMLElement;
|
|
13
16
|
};
|
|
14
17
|
/**
|
|
15
18
|
* Primary toolbar driven by components registered by `editor-plugin-toolbar`, introduced in `platform_editor_toolbar_aifc`.
|
|
16
19
|
*/
|
|
17
|
-
export declare const CommentToolbar: ({ editorAPI, editorView, editorAppearance, disabled, }: CommentToolbarProps) => React.JSX.Element | null;
|
|
20
|
+
export declare const CommentToolbar: ({ editorAPI, editorView, editorAppearance, disabled, popupsBoundariesElement, popupsMountPoint, popupsScrollableElement, }: CommentToolbarProps) => React.JSX.Element | null;
|
|
18
21
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "215.
|
|
3
|
+
"version": "215.2.0",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -64,8 +64,8 @@
|
|
|
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.
|
|
68
|
-
"@atlaskit/tokens": "^
|
|
67
|
+
"@atlaskit/tmp-editor-statsig": "^13.13.0",
|
|
68
|
+
"@atlaskit/tokens": "^7.0.0",
|
|
69
69
|
"@atlaskit/tooltip": "^20.5.0",
|
|
70
70
|
"@atlaskit/width-detector": "^5.0.0",
|
|
71
71
|
"@babel/runtime": "^7.0.0",
|