@atlaskit/editor-common 120.10.0 → 120.10.2
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 +26 -0
- package/dist/cjs/card/ui/assets/card.js +2 -2
- package/dist/cjs/card/ui/assets/embed.js +2 -2
- package/dist/cjs/card/ui/assets/inline.js +2 -2
- package/dist/cjs/card/ui/assets/url.js +2 -2
- package/dist/cjs/extensibility/Extension/Extension/index.js +2 -1
- package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +2 -1
- package/dist/cjs/extensions/UnknownMacroPlaceholder.js +2 -2
- package/dist/cjs/link/ConfigureLinkOverlay/Dropdown.js +2 -2
- package/dist/cjs/link/LinkPicker/EditorLinkPicker/index.js +3 -2
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/index.js +3 -3
- package/dist/cjs/media-inline/inline-image-card.js +2 -2
- package/dist/cjs/media-inline/media-inline-image-card.js +5 -5
- package/dist/cjs/media-single/CommentBadge.js +2 -2
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/quick-insert/rank.js +4 -4
- package/dist/cjs/resizer/BreakoutResizer.js +8 -8
- package/dist/cjs/resizer/Resizer.js +3 -2
- package/dist/cjs/toolbar/context.js +2 -2
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/HoverLinkOverlay/index.js +2 -1
- package/dist/cjs/ui/Mention/index.js +1 -2
- package/dist/cjs/ui/TableSelector/index.js +5 -5
- package/dist/cjs/ui-menu/ColorPickerButton/index.js +8 -8
- package/dist/cjs/ui-menu/DropdownMenu/index.js +6 -5
- package/dist/cjs/ui-menu/ToolbarButton/styles.js +2 -2
- package/dist/es2019/card/ui/assets/card.js +2 -2
- package/dist/es2019/card/ui/assets/embed.js +2 -2
- package/dist/es2019/card/ui/assets/inline.js +2 -2
- package/dist/es2019/card/ui/assets/url.js +2 -2
- package/dist/es2019/extensibility/Extension/Extension/index.js +2 -1
- package/dist/es2019/extensibility/Extension/Lozenge/ExtensionLabel.js +2 -1
- package/dist/es2019/extensions/UnknownMacroPlaceholder.js +2 -2
- package/dist/es2019/link/ConfigureLinkOverlay/Dropdown.js +2 -2
- package/dist/es2019/link/LinkPicker/EditorLinkPicker/index.js +3 -2
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/index.js +3 -3
- package/dist/es2019/media-inline/inline-image-card.js +2 -2
- package/dist/es2019/media-inline/media-inline-image-card.js +4 -4
- package/dist/es2019/media-single/CommentBadge.js +2 -2
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/quick-insert/rank.js +10 -10
- package/dist/es2019/resizer/BreakoutResizer.js +3 -3
- package/dist/es2019/resizer/Resizer.js +3 -3
- package/dist/es2019/toolbar/context.js +2 -2
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/HoverLinkOverlay/index.js +2 -1
- package/dist/es2019/ui/Mention/index.js +1 -2
- package/dist/es2019/ui/TableSelector/index.js +3 -3
- package/dist/es2019/ui-menu/ColorPickerButton/index.js +7 -7
- package/dist/es2019/ui-menu/DropdownMenu/index.js +6 -5
- package/dist/es2019/ui-menu/ToolbarButton/styles.js +2 -2
- package/dist/esm/card/ui/assets/card.js +2 -2
- package/dist/esm/card/ui/assets/embed.js +2 -2
- package/dist/esm/card/ui/assets/inline.js +2 -2
- package/dist/esm/card/ui/assets/url.js +2 -2
- package/dist/esm/extensibility/Extension/Extension/index.js +2 -1
- package/dist/esm/extensibility/Extension/Lozenge/ExtensionLabel.js +2 -1
- package/dist/esm/extensions/UnknownMacroPlaceholder.js +2 -2
- package/dist/esm/link/ConfigureLinkOverlay/Dropdown.js +2 -2
- package/dist/esm/link/LinkPicker/EditorLinkPicker/index.js +3 -2
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/index.js +3 -3
- package/dist/esm/media-inline/inline-image-card.js +2 -2
- package/dist/esm/media-inline/media-inline-image-card.js +4 -4
- package/dist/esm/media-single/CommentBadge.js +2 -2
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/quick-insert/rank.js +4 -4
- package/dist/esm/resizer/BreakoutResizer.js +3 -3
- package/dist/esm/resizer/Resizer.js +3 -3
- package/dist/esm/toolbar/context.js +2 -2
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/HoverLinkOverlay/index.js +2 -1
- package/dist/esm/ui/Mention/index.js +1 -2
- package/dist/esm/ui/TableSelector/index.js +3 -3
- package/dist/esm/ui-menu/ColorPickerButton/index.js +7 -7
- package/dist/esm/ui-menu/DropdownMenu/index.js +6 -5
- package/dist/esm/ui-menu/ToolbarButton/styles.js +2 -2
- package/dist/types/analytics/types/ai-suggestions-events.d.ts +4 -4
- package/package.json +4 -4
|
@@ -11,10 +11,10 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
11
11
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
12
12
|
import Button from '@atlaskit/button/default/button';
|
|
13
13
|
import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
14
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
14
15
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
15
16
|
import { Box, xcss, Inline } from '@atlaskit/primitives';
|
|
16
|
-
import {
|
|
17
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
17
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
18
18
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
19
19
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, editorAnalyticsChannel, EVENT_TYPE } from '../../analytics';
|
|
20
20
|
import { colorPickerButtonMessages } from '../../messages/color-picker-button';
|
|
@@ -67,7 +67,7 @@ const ColorPickerButton = props => {
|
|
|
67
67
|
formatMessage
|
|
68
68
|
} = useIntl();
|
|
69
69
|
const memoizedHandleClose = useCallback(() => setIsPopupOpen(false), [setIsPopupOpen]);
|
|
70
|
-
const handleClose =
|
|
70
|
+
const handleClose = isExperimentEnabled('platform_editor_perf_lint_cleanup') ? memoizedHandleClose : () => setIsPopupOpen(false);
|
|
71
71
|
const memoizedTogglePopup = useCallback(() => {
|
|
72
72
|
setIsPopupOpen(prevIsOpen => {
|
|
73
73
|
if (!prevIsOpen) {
|
|
@@ -77,7 +77,7 @@ const ColorPickerButton = props => {
|
|
|
77
77
|
return !prevIsOpen;
|
|
78
78
|
});
|
|
79
79
|
}, []);
|
|
80
|
-
const togglePopup =
|
|
80
|
+
const togglePopup = isExperimentEnabled('platform_editor_perf_lint_cleanup') ? memoizedTogglePopup : () => {
|
|
81
81
|
setIsPopupOpen(!isPopupOpen);
|
|
82
82
|
if (!isPopupOpen) {
|
|
83
83
|
setIsOpenedByKeyboard(false);
|
|
@@ -91,7 +91,7 @@ const ColorPickerButton = props => {
|
|
|
91
91
|
setIsOpenedByKeyboard(true);
|
|
92
92
|
}
|
|
93
93
|
}, [memoizedTogglePopup]);
|
|
94
|
-
const onKeyDown =
|
|
94
|
+
const onKeyDown = isExperimentEnabled('platform_editor_perf_lint_cleanup') ? memoizedOnKeyDown : event => {
|
|
95
95
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
96
96
|
event.preventDefault();
|
|
97
97
|
togglePopup();
|
|
@@ -103,7 +103,7 @@ const ColorPickerButton = props => {
|
|
|
103
103
|
hexToPaletteColor: props.hexToPaletteColor,
|
|
104
104
|
paletteColorTooltipMessages: props.paletteColorTooltipMessages
|
|
105
105
|
}), [props.colorPalette, props.hexToPaletteColor, props.paletteColorTooltipMessages]);
|
|
106
|
-
const paletteOptions =
|
|
106
|
+
const paletteOptions = isExperimentEnabled('platform_editor_perf_lint_cleanup') ? memoizedPaletteOptions : {
|
|
107
107
|
palette: props.colorPalette,
|
|
108
108
|
hexToPaletteColor: props.hexToPaletteColor,
|
|
109
109
|
paletteColorTooltipMessages: props.paletteColorTooltipMessages
|
|
@@ -175,7 +175,7 @@ const ColorPickerButton = props => {
|
|
|
175
175
|
target: buttonRef.current,
|
|
176
176
|
fitHeight: 350,
|
|
177
177
|
fitWidth: 350,
|
|
178
|
-
offset:
|
|
178
|
+
offset: isExperimentEnabled('platform_editor_perf_lint_cleanup') ? COLOR_PICKER_POPUP_OFFSET : [0, 10],
|
|
179
179
|
alignX: props.alignX,
|
|
180
180
|
mountTo: props.setDisableParentScroll ? props.mountPoint : undefined,
|
|
181
181
|
absoluteOffset: props.absoluteOffset
|
|
@@ -14,6 +14,7 @@ import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
|
|
|
14
14
|
import CustomItem from '@atlaskit/menu/custom-item';
|
|
15
15
|
import MenuGroup from '@atlaskit/menu/menu-group';
|
|
16
16
|
import Section from '@atlaskit/menu/section';
|
|
17
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
17
18
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
18
19
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
19
20
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
@@ -336,25 +337,25 @@ export function DropdownMenuItem({
|
|
|
336
337
|
const memoizedOnClick = useCallback(() => onItemActivated && onItemActivated({
|
|
337
338
|
item
|
|
338
339
|
}), [onItemActivated, item]);
|
|
339
|
-
const onClick =
|
|
340
|
+
const onClick = isExperimentEnabled('platform_editor_perf_lint_cleanup') ? memoizedOnClick : () => onItemActivated && onItemActivated({
|
|
340
341
|
item
|
|
341
342
|
});
|
|
342
343
|
const memoizedOnMouseDown = useCallback(e => {
|
|
343
344
|
e.preventDefault();
|
|
344
345
|
}, []);
|
|
345
|
-
const onMouseDown =
|
|
346
|
+
const onMouseDown = isExperimentEnabled('platform_editor_perf_lint_cleanup') ? memoizedOnMouseDown : e => {
|
|
346
347
|
e.preventDefault();
|
|
347
348
|
};
|
|
348
349
|
const memoizedOnMouseEnter = useCallback(() => onMouseEnter && onMouseEnter({
|
|
349
350
|
item
|
|
350
351
|
}), [onMouseEnter, item]);
|
|
351
|
-
const onMouseEnterHandler =
|
|
352
|
+
const onMouseEnterHandler = isExperimentEnabled('platform_editor_perf_lint_cleanup') ? memoizedOnMouseEnter : () => onMouseEnter && onMouseEnter({
|
|
352
353
|
item
|
|
353
354
|
});
|
|
354
355
|
const memoizedOnMouseLeave = useCallback(() => onMouseLeave && onMouseLeave({
|
|
355
356
|
item
|
|
356
357
|
}), [onMouseLeave, item]);
|
|
357
|
-
const onMouseLeaveHandler =
|
|
358
|
+
const onMouseLeaveHandler = isExperimentEnabled('platform_editor_perf_lint_cleanup') ? memoizedOnMouseLeave : () => onMouseLeave && onMouseLeave({
|
|
358
359
|
item
|
|
359
360
|
});
|
|
360
361
|
|
|
@@ -425,7 +426,7 @@ export const DropdownMenuWithKeyboardNavigation = /*#__PURE__*/React.memo(
|
|
|
425
426
|
...props.arrowKeyNavigationProviderOptions,
|
|
426
427
|
keyDownHandlerContext
|
|
427
428
|
}), [props.arrowKeyNavigationProviderOptions, keyDownHandlerContext]);
|
|
428
|
-
const arrowKeyNavOptions =
|
|
429
|
+
const arrowKeyNavOptions = isExperimentEnabled('platform_editor_perf_lint_cleanup') ? memoizedArrowKeyNavOptions : {
|
|
429
430
|
...props.arrowKeyNavigationProviderOptions,
|
|
430
431
|
keyDownHandlerContext
|
|
431
432
|
};
|
|
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
3
3
|
// and notify about the change in #team-fc-editor-ai-dev channel.
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import Button from '@atlaskit/button/standard-button';
|
|
6
|
-
import {
|
|
6
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
7
7
|
const toolbarButtonStyle = {
|
|
8
8
|
alignItems: 'center'
|
|
9
9
|
};
|
|
@@ -17,7 +17,7 @@ const _default_1 = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
17
17
|
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
18
18
|
// TODO: (from codemod) Buttons with "component", "css" or "style" prop can't be automatically migrated with codemods. Please migrate it manually.
|
|
19
19
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
20
|
-
style:
|
|
20
|
+
style: isExperimentEnabled('platform_editor_perf_lint_cleanup') ? toolbarButtonStyle : {
|
|
21
21
|
alignItems: 'center'
|
|
22
22
|
}
|
|
23
23
|
}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
3
3
|
|
|
4
4
|
// Custom icon ejection - these icons have been migrated away from the deprecated Custom / SVG components to native SVG. Please review whether this icon should be contributed to @atlaskit/icon-lab or whether it can be replaced by an existing icon from either @atlaskit/icon or @atlaskit/icon-lab
|
|
5
5
|
var IconCardGlyph = function IconCardGlyph(_ref) {
|
|
@@ -28,7 +28,7 @@ var iconCardStyle = {
|
|
|
28
28
|
};
|
|
29
29
|
export var IconCard = function IconCard(_ref2) {
|
|
30
30
|
var label = _ref2.label;
|
|
31
|
-
var style =
|
|
31
|
+
var style = isExperimentEnabled('platform_editor_perf_lint_cleanup') ? iconCardStyle :
|
|
32
32
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props
|
|
33
33
|
{
|
|
34
34
|
width: '24px',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
3
3
|
|
|
4
4
|
// Custom icon ejection - these icons have been migrated away from the deprecated Custom / SVG components to native SVG. Please review whether this icon should be contributed to @atlaskit/icon-lab or whether it can be replaced by an existing icon from either @atlaskit/icon or @atlaskit/icon-lab
|
|
5
5
|
var IconEmbedGlyph = function IconEmbedGlyph(_ref) {
|
|
@@ -28,7 +28,7 @@ var iconEmbedStyle = {
|
|
|
28
28
|
};
|
|
29
29
|
export var IconEmbed = function IconEmbed(_ref2) {
|
|
30
30
|
var label = _ref2.label;
|
|
31
|
-
var style =
|
|
31
|
+
var style = isExperimentEnabled('platform_editor_perf_lint_cleanup') ? iconEmbedStyle :
|
|
32
32
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props
|
|
33
33
|
{
|
|
34
34
|
width: '24px',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
3
3
|
|
|
4
4
|
// Custom icon ejection - these icons have been migrated away from the deprecated Custom / SVG components to native SVG. Please review whether this icon should be contributed to @atlaskit/icon-lab or whether it can be replaced by an existing icon from either @atlaskit/icon or @atlaskit/icon-lab
|
|
5
5
|
var IconInlineGlyph = function IconInlineGlyph(_ref) {
|
|
@@ -28,7 +28,7 @@ var iconInlineStyle = {
|
|
|
28
28
|
};
|
|
29
29
|
export var IconInline = function IconInline(_ref2) {
|
|
30
30
|
var label = _ref2.label;
|
|
31
|
-
var style =
|
|
31
|
+
var style = isExperimentEnabled('platform_editor_perf_lint_cleanup') ? iconInlineStyle :
|
|
32
32
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props
|
|
33
33
|
{
|
|
34
34
|
width: '24px',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
3
3
|
|
|
4
4
|
// Custom icon ejection - these icons have been migrated away from the deprecated Custom / SVG components to native SVG. Please review whether this icon should be contributed to @atlaskit/icon-lab or whether it can be replaced by an existing icon from either @atlaskit/icon or @atlaskit/icon-lab
|
|
5
5
|
var IconUrlGlyph = function IconUrlGlyph(_ref) {
|
|
@@ -30,7 +30,7 @@ var iconUrlStyle = {
|
|
|
30
30
|
};
|
|
31
31
|
export var IconUrl = function IconUrl(_ref2) {
|
|
32
32
|
var label = _ref2.label;
|
|
33
|
-
var style =
|
|
33
|
+
var style = isExperimentEnabled('platform_editor_perf_lint_cleanup') ? iconUrlStyle :
|
|
34
34
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props
|
|
35
35
|
{
|
|
36
36
|
width: '24px',
|
|
@@ -14,6 +14,7 @@ import React, { Fragment } from 'react';
|
|
|
14
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
15
|
import { css, jsx } from '@emotion/react';
|
|
16
16
|
import classnames from 'classnames';
|
|
17
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
17
18
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
18
19
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
19
20
|
import { useSharedPluginStateWithSelector } from '../../../hooks';
|
|
@@ -230,7 +231,7 @@ var Extension = function Extension(props) {
|
|
|
230
231
|
lineLength: lineLength
|
|
231
232
|
};
|
|
232
233
|
}, [width, lineLength]);
|
|
233
|
-
var widthState =
|
|
234
|
+
var widthState = isExperimentEnabled('platform_editor_perf_lint_cleanup') ? memoizedWidthState : {
|
|
234
235
|
width: width !== null && width !== void 0 ? width : 0,
|
|
235
236
|
lineLength: lineLength
|
|
236
237
|
};
|
|
@@ -10,6 +10,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
10
10
|
import classnames from 'classnames';
|
|
11
11
|
import { FormattedMessage, defineMessages } from 'react-intl';
|
|
12
12
|
import CustomizeIcon from '@atlaskit/icon/core/customize';
|
|
13
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
13
14
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
14
15
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
15
16
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -145,7 +146,7 @@ export var ExtensionLabel = function ExtensionLabel(_ref) {
|
|
|
145
146
|
macroName: text
|
|
146
147
|
};
|
|
147
148
|
}, [text]);
|
|
148
|
-
var tooltipValues =
|
|
149
|
+
var tooltipValues = isExperimentEnabled('platform_editor_perf_lint_cleanup') ? memoizedTooltipValues : {
|
|
149
150
|
macroName: text
|
|
150
151
|
};
|
|
151
152
|
return (
|
|
@@ -5,7 +5,7 @@ import * as React from 'react';
|
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import { useMemo } from 'react';
|
|
7
7
|
import { useIntl } from 'react-intl';
|
|
8
|
-
import {
|
|
8
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
9
9
|
import { messages } from './messages';
|
|
10
10
|
// Unknown macro placeholder styling aligned with Legacy Content Macro (LCM) for consistent look
|
|
11
11
|
var neutralBorder = "var(--ds-background-neutral, #0515240F)";
|
|
@@ -48,7 +48,7 @@ export function UnknownMacroPlaceholder(_ref) {
|
|
|
48
48
|
return formatParam(key, param);
|
|
49
49
|
}).join(' | ');
|
|
50
50
|
}, [macroParams]);
|
|
51
|
-
var visibleParams =
|
|
51
|
+
var visibleParams = isExperimentEnabled('platform_editor_perf_lint_cleanup') ? memoizedVisibleParams :
|
|
52
52
|
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- intentional fallback for experiment off path
|
|
53
53
|
Object.entries(macroParamsOld).filter(function (_ref6) {
|
|
54
54
|
var _ref7 = _slicedToArray(_ref6, 1),
|
|
@@ -17,7 +17,7 @@ import DropdownItemGroup from '@atlaskit/dropdown-menu/dropdown-menu-item-group'
|
|
|
17
17
|
import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
|
|
18
18
|
import PreferencesIcon from '@atlaskit/icon/core/customize';
|
|
19
19
|
import LinkExternalIcon from '@atlaskit/icon/core/link-external';
|
|
20
|
-
import {
|
|
20
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
21
21
|
import { cardMessages as messages } from '../../messages';
|
|
22
22
|
import { StyledButton } from './StyledButton';
|
|
23
23
|
import { useLinkOverlayAnalyticsEvents } from './useLinkOverlayAnalyticsEvents';
|
|
@@ -87,7 +87,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
87
87
|
}));
|
|
88
88
|
}, [configureLinkLabel, fireLinkClickEvent]);
|
|
89
89
|
return jsx(DropdownMenu, {
|
|
90
|
-
trigger:
|
|
90
|
+
trigger: isExperimentEnabled('platform_editor_perf_lint_cleanup') ? memoizedTrigger : function (_ref4) {
|
|
91
91
|
var _onClick2 = _ref4.onClick,
|
|
92
92
|
triggerRef = _ref4.triggerRef,
|
|
93
93
|
props = _objectWithoutProperties(_ref4, _excluded2);
|
|
@@ -5,6 +5,7 @@ import React, { useCallback, useEffect, useMemo, useRef } from 'react';
|
|
|
5
5
|
import FocusLock from 'react-focus-lock';
|
|
6
6
|
import AnalyticsContext from '@atlaskit/analytics-next/AnalyticsContext';
|
|
7
7
|
import { LazyLinkPicker } from '@atlaskit/link-picker/lazy';
|
|
8
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
8
9
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
9
10
|
import { getAnalyticsEditorAppearance } from '../../../utils';
|
|
10
11
|
import { useEscapeClickaway } from './useEscapeClickaway';
|
|
@@ -71,12 +72,12 @@ export var EditorLinkPicker = function EditorLinkPicker(_ref) {
|
|
|
71
72
|
location: analyticsEditorAppearance
|
|
72
73
|
};
|
|
73
74
|
}, [invokeMethod, analyticsEditorAppearance]);
|
|
74
|
-
var returnFocus =
|
|
75
|
+
var returnFocus = isExperimentEnabled('platform_editor_perf_lint_cleanup') ? PREVENT_SCROLL :
|
|
75
76
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- intentional fallback for experiment off path
|
|
76
77
|
{
|
|
77
78
|
preventScroll: true
|
|
78
79
|
};
|
|
79
|
-
var focusOptions =
|
|
80
|
+
var focusOptions = isExperimentEnabled('platform_editor_perf_lint_cleanup') ? PREVENT_SCROLL :
|
|
80
81
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- intentional fallback for experiment off path
|
|
81
82
|
{
|
|
82
83
|
preventScroll: true
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["popupWidth", "popupHeight"];
|
|
4
4
|
import React, { useCallback, useMemo } from 'react';
|
|
5
|
-
import {
|
|
5
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
6
6
|
import { INPUT_METHOD } from '../../../analytics';
|
|
7
7
|
import { WithProviders } from '../../../provider-factory';
|
|
8
8
|
import { EditorLinkPicker } from '../EditorLinkPicker';
|
|
@@ -84,13 +84,13 @@ export function HyperlinkAddToolbar(_ref2) {
|
|
|
84
84
|
timesViewed: timesViewed
|
|
85
85
|
});
|
|
86
86
|
}, [lpLinkPicker, isOffline, view, invokeMethod, inputMethod, editorAppearance, linkPickerOptions, displayUrl, displayText, onSubmit, memoizedOnSubmitWithInterface, onCancel, onClose, onEscapeCallback, onClickAwayCallback, searchSessionId, timesViewed]);
|
|
87
|
-
var providers =
|
|
87
|
+
var providers = isExperimentEnabled('platform_editor_perf_lint_cleanup') ? HYPERLINK_PROVIDERS :
|
|
88
88
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- intentional fallback for experiment off path
|
|
89
89
|
['activityProvider', 'searchProvider'];
|
|
90
90
|
return /*#__PURE__*/React.createElement(WithProviders, {
|
|
91
91
|
providers: providers,
|
|
92
92
|
providerFactory: providerFactory,
|
|
93
|
-
renderNode:
|
|
93
|
+
renderNode: isExperimentEnabled('platform_editor_perf_lint_cleanup') ? memoizedRenderNode :
|
|
94
94
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- intentional fallback for experiment off path
|
|
95
95
|
function (_ref4) {
|
|
96
96
|
var activityProvider = _ref4.activityProvider,
|
|
@@ -9,7 +9,7 @@ import { jsx } from '@emotion/react';
|
|
|
9
9
|
import { getRandomHex } from '@atlaskit/media-common';
|
|
10
10
|
import { useFilePreview } from '@atlaskit/media-file-preview/use-file-preview';
|
|
11
11
|
import { MediaImage } from '@atlaskit/media-ui/mediaImage';
|
|
12
|
-
import {
|
|
12
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
13
13
|
import { InlineImageCardLoadingView } from './views/loading-view';
|
|
14
14
|
export var InlineImageCard = function InlineImageCard(_ref) {
|
|
15
15
|
var dimensions = _ref.dimensions,
|
|
@@ -57,7 +57,7 @@ export var InlineImageCard = function InlineImageCard(_ref) {
|
|
|
57
57
|
dataURI: preview.dataURI,
|
|
58
58
|
alt: alt,
|
|
59
59
|
previewOrientation: preview.orientation,
|
|
60
|
-
onImageLoad:
|
|
60
|
+
onImageLoad: isExperimentEnabled('platform_editor_perf_lint_cleanup') ? memoizedOnImageLoad : function () {
|
|
61
61
|
onImageLoad(preview);
|
|
62
62
|
},
|
|
63
63
|
onImageError: onImageError,
|
|
@@ -17,8 +17,8 @@ import { fireFailedMediaInlineEvent, fireSucceededMediaInlineEvent, MediaCardErr
|
|
|
17
17
|
import { FileFetcherError } from '@atlaskit/media-client';
|
|
18
18
|
import { MediaClientContext } from '@atlaskit/media-client-react/media-client-provider';
|
|
19
19
|
import { MediaViewer } from '@atlaskit/media-viewer';
|
|
20
|
-
import {
|
|
21
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
20
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
21
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
22
22
|
import { messages } from '../messages/media-inline-card';
|
|
23
23
|
import { referenceHeights } from './constants';
|
|
24
24
|
import { InlineImageCard } from './inline-image-card';
|
|
@@ -146,7 +146,7 @@ export var MediaInlineImageCardInternal = function MediaInlineImageCardInternal(
|
|
|
146
146
|
}, jsx(InlineImageCard, {
|
|
147
147
|
dimensions: dimensions,
|
|
148
148
|
identifier: identifier,
|
|
149
|
-
renderError:
|
|
149
|
+
renderError: isExperimentEnabled('platform_editor_perf_lint_cleanup') ? memoizedRenderError :
|
|
150
150
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- intentional fallback for experiment off path
|
|
151
151
|
function () {
|
|
152
152
|
return jsx(InlineImageCardErrorView, {
|
|
@@ -222,7 +222,7 @@ export var MediaInlineImageCardInternal = function MediaInlineImageCardInternal(
|
|
|
222
222
|
if (isMediaViewerVisible && mediaClient !== null && mediaClient !== void 0 && mediaClient.mediaClientConfig) {
|
|
223
223
|
return /*#__PURE__*/ReactDOM.createPortal(jsx(MediaViewer, {
|
|
224
224
|
collectionName: identifier.collectionName || '',
|
|
225
|
-
items:
|
|
225
|
+
items: isExperimentEnabled('platform_editor_perf_lint_cleanup') ? memoizedMediaViewerItems :
|
|
226
226
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- intentional fallback for experiment off path
|
|
227
227
|
[identifier],
|
|
228
228
|
mediaClientConfig: mediaClient === null || mediaClient === void 0 ? void 0 : mediaClient.mediaClientConfig,
|
|
@@ -10,7 +10,7 @@ import debounce from 'lodash/debounce';
|
|
|
10
10
|
import CustomThemeButton from '@atlaskit/button/custom-theme-button/custom-theme-button';
|
|
11
11
|
import { akEditorUnitZIndex } from '@atlaskit/editor-shared-styles';
|
|
12
12
|
import CommentIcon from '@atlaskit/icon/core/comment';
|
|
13
|
-
import {
|
|
13
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
14
14
|
import Tooltip from '@atlaskit/tooltip/Tooltip';
|
|
15
15
|
import { commentMessages as messages } from '../media';
|
|
16
16
|
import { getBadgeSize } from './getBadgeSize';
|
|
@@ -84,7 +84,7 @@ export var CommentBadge = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
84
84
|
alignItems: 'center'
|
|
85
85
|
};
|
|
86
86
|
}, [badgeDimensions, colourToken]);
|
|
87
|
-
var badgeStyle =
|
|
87
|
+
var badgeStyle = isExperimentEnabled('platform_editor_perf_lint_cleanup') ? memoizedBadgeStyle : {
|
|
88
88
|
height: badgeDimensions,
|
|
89
89
|
width: badgeDimensions,
|
|
90
90
|
background: colourToken,
|
|
@@ -20,7 +20,7 @@ var NETWORK_FAILURE_REGEX = /^network failure/i;
|
|
|
20
20
|
var RESIZE_OBSERVER_LOOP_REGEX = /ResizeObserver loop completed with undelivered notifications/;
|
|
21
21
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
22
22
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
23
|
-
var packageVersion = "120.
|
|
23
|
+
var packageVersion = "120.10.1";
|
|
24
24
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
25
25
|
// Remove URL as it has UGC
|
|
26
26
|
// Ignored via go/ees007
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
var _STRUCTURE_SECTION_RA
|
|
2
|
+
var _STRUCTURE_SECTION_RA;
|
|
3
3
|
/* eslint-disable @atlaskit/volt-strict-mode/no-multiple-exports */
|
|
4
4
|
import { ACTION_MENU_ITEM, AI_IMAGE_GENERATION_MENU_ITEM, ASK_ROVO_MENU_ITEM, ASSETS_MENU_ITEM, BLOCKQUOTE_MENU_ITEM, BLOCK_TEMPLATES_SECTION, CODE_BLOCK_MENU_ITEM, CUSTOM_PANEL_MENU_ITEM, DATE_MENU_ITEM, DATA_AND_CHARTS_SECTION, DECISION_MENU_ITEM, EMBED_SECTION, EMOJI_MENU_ITEM, ERROR_PANEL_MENU_ITEM, EXPAND_MENU_ITEM, FIVE_COLUMNS_LAYOUT_MENU_ITEM, FOUR_COLUMNS_LAYOUT_MENU_ITEM, HEADING_1_MENU_ITEM, HEADING_2_MENU_ITEM, HEADING_3_MENU_ITEM, HEADING_4_MENU_ITEM, HEADING_5_MENU_ITEM, HEADING_6_MENU_ITEM, HELP_DIALOG_MENU_ITEM, HYPERLINK_MENU_ITEM, INFO_PANEL_MENU_ITEM, JIRA_WORK_ITEMS_MENU_ITEM, LOOM_MENU_ITEM, MEDIA_INSERT_MENU_ITEM, MEDIA_SECTION, MENTION_MENU_ITEM, NOTE_PANEL_MENU_ITEM, ORDERED_LIST_MENU_ITEM, OTHER_SECTION, PLACEHOLDER_TEXT_MENU_ITEM, RECOMMENDED_SECTION, ROVO_SECTION, RULE_MENU_ITEM, STATUS_MENU_ITEM, STRUCTURE_SECTION, SUCCESS_PANEL_MENU_ITEM, SYNCED_BLOCK_MENU_ITEM, TABLE_MENU_ITEM, TEXT_FORMATTING_SECTION, THREE_COLUMNS_LAYOUT_MENU_ITEM, TWO_COLUMNS_LAYOUT_MENU_ITEM, UNORDERED_LIST_MENU_ITEM, WARNING_PANEL_MENU_ITEM } from './keys';
|
|
5
5
|
export var QUICK_INSERT_MENU_RANK = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, RECOMMENDED_SECTION.key, 0), STRUCTURE_SECTION.key, 1), MEDIA_SECTION.key, 2), EMBED_SECTION.key, 3), TEXT_FORMATTING_SECTION.key, 4), ROVO_SECTION.key, 5), DATA_AND_CHARTS_SECTION.key, 6), BLOCK_TEMPLATES_SECTION.key, 7), OTHER_SECTION.key, 8);
|
|
6
|
-
export var STRUCTURE_SECTION_RANK = (_STRUCTURE_SECTION_RA = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_STRUCTURE_SECTION_RA, ACTION_MENU_ITEM.key, 100), TABLE_MENU_ITEM.key, 200), STATUS_MENU_ITEM.key, 300), DATE_MENU_ITEM.key, 400),
|
|
7
|
-
export var MEDIA_SECTION_RANK = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(
|
|
8
|
-
export var TEXT_FORMATTING_SECTION_RANK =
|
|
6
|
+
export var STRUCTURE_SECTION_RANK = (_STRUCTURE_SECTION_RA = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_STRUCTURE_SECTION_RA, ACTION_MENU_ITEM.key, 100), TABLE_MENU_ITEM.key, 200), STATUS_MENU_ITEM.key, 300), DATE_MENU_ITEM.key, 400), MENTION_MENU_ITEM.key, 500), EXPAND_MENU_ITEM.key, 700), CODE_BLOCK_MENU_ITEM.key, 800), INFO_PANEL_MENU_ITEM.key, 900), NOTE_PANEL_MENU_ITEM.key, 1000), SUCCESS_PANEL_MENU_ITEM.key, 1100), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_STRUCTURE_SECTION_RA, WARNING_PANEL_MENU_ITEM.key, 1200), ERROR_PANEL_MENU_ITEM.key, 1300), CUSTOM_PANEL_MENU_ITEM.key, 1400), TWO_COLUMNS_LAYOUT_MENU_ITEM.key, 1500), THREE_COLUMNS_LAYOUT_MENU_ITEM.key, 1600), FOUR_COLUMNS_LAYOUT_MENU_ITEM.key, 1700), FIVE_COLUMNS_LAYOUT_MENU_ITEM.key, 1800), SYNCED_BLOCK_MENU_ITEM.key, 2300), RULE_MENU_ITEM.key, 2400), DECISION_MENU_ITEM.key, 2800));
|
|
7
|
+
export var MEDIA_SECTION_RANK = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, MEDIA_INSERT_MENU_ITEM.key, 100), HYPERLINK_MENU_ITEM.key, 200), EMOJI_MENU_ITEM.key, 300), LOOM_MENU_ITEM.key, 400), AI_IMAGE_GENERATION_MENU_ITEM.key, 600);
|
|
8
|
+
export var TEXT_FORMATTING_SECTION_RANK = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, HEADING_1_MENU_ITEM.key, 100), HEADING_2_MENU_ITEM.key, 200), HEADING_3_MENU_ITEM.key, 300), HEADING_4_MENU_ITEM.key, 400), HEADING_5_MENU_ITEM.key, 500), HEADING_6_MENU_ITEM.key, 600), BLOCKQUOTE_MENU_ITEM.key, 700), PLACEHOLDER_TEXT_MENU_ITEM.key, 900), UNORDERED_LIST_MENU_ITEM.key, 1100), ORDERED_LIST_MENU_ITEM.key, 1200);
|
|
9
9
|
export var ROVO_SECTION_RANK = _defineProperty({}, ASK_ROVO_MENU_ITEM.key, 100);
|
|
10
10
|
export var DATA_AND_CHARTS_SECTION_RANK = _defineProperty(_defineProperty({}, JIRA_WORK_ITEMS_MENU_ITEM.key, 300), ASSETS_MENU_ITEM.key, 500);
|
|
11
11
|
export var OTHER_SECTION_RANK = _defineProperty({}, HELP_DIALOG_MENU_ITEM.key, 100);
|
|
@@ -2,8 +2,8 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
2
2
|
import React, { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react';
|
|
3
3
|
import { bind, bindAll } from 'bind-event-listener';
|
|
4
4
|
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles';
|
|
5
|
-
import {
|
|
6
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
5
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
6
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
7
7
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '../analytics';
|
|
8
8
|
import { LAYOUT_SECTION_MARGIN } from '../styles';
|
|
9
9
|
import { getBrowserInfo } from '../utils/browser';
|
|
@@ -326,7 +326,7 @@ var BreakoutResizer = function BreakoutResizer(_ref) {
|
|
|
326
326
|
}
|
|
327
327
|
return /*#__PURE__*/React.createElement(Resizer, {
|
|
328
328
|
ref: resizerRef,
|
|
329
|
-
enable:
|
|
329
|
+
enable: isExperimentEnabled('platform_editor_perf_lint_cleanup') ? RESIZER_ENABLE_HANDLES : {
|
|
330
330
|
left: true,
|
|
331
331
|
right: true
|
|
332
332
|
},
|
|
@@ -9,7 +9,7 @@ import React, { forwardRef, useCallback, useImperativeHandle, useMemo, useRef, u
|
|
|
9
9
|
import classnames from 'classnames';
|
|
10
10
|
import { Resizable } from 're-resizable';
|
|
11
11
|
import { useIntl } from 'react-intl';
|
|
12
|
-
|
|
12
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
13
13
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
14
14
|
import { Box, xcss } from '@atlaskit/primitives';
|
|
15
15
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -170,7 +170,7 @@ var ResizerNext = function ResizerNext(props, ref) {
|
|
|
170
170
|
return _objectSpread(_objectSpread({}, result), {}, _defineProperty({}, position, _objectSpread(_objectSpread({}, position === 'bottom' ? memoizedBaseBottomHandleStyles : memoizedBaseHorizontalHandleStyles), {}, _defineProperty({}, position, offset), handleStyles === null || handleStyles === void 0 ? void 0 : handleStyles[position])));
|
|
171
171
|
}, {});
|
|
172
172
|
}, [memoizedBaseBottomHandleStyles, memoizedBaseHorizontalHandleStyles, offset, handleStyles, supportedHandles]);
|
|
173
|
-
var nextHandleStyles =
|
|
173
|
+
var nextHandleStyles = isExperimentEnabled('platform_editor_perf_lint_cleanup') ? memoizedNextHandleStyles :
|
|
174
174
|
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- intentional fallback for experiment off path
|
|
175
175
|
supportedHandles.reduce(function (result, position) {
|
|
176
176
|
return _objectSpread(_objectSpread({}, result), {}, _defineProperty({}, position, _objectSpread(_objectSpread({}, position === 'bottom' ? baseBottomHandleStyles : baseHorizontalHandleStyles), {}, _defineProperty({}, position, offset), handleStyles === null || handleStyles === void 0 ? void 0 : handleStyles[position])));
|
|
@@ -245,7 +245,7 @@ var ResizerNext = function ResizerNext(props, ref) {
|
|
|
245
245
|
height: resolvedHeight
|
|
246
246
|
};
|
|
247
247
|
}, [resolvedHeight, width]);
|
|
248
|
-
var resizerSize =
|
|
248
|
+
var resizerSize = isExperimentEnabled('platform_editor_perf_lint_cleanup') ? resizerAutoSize :
|
|
249
249
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- intentional fallback for experiment off path
|
|
250
250
|
{
|
|
251
251
|
width: width !== null && width !== void 0 ? width : 'auto',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { createContext, useContext, useMemo } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
3
3
|
var EditorToolbarContext = /*#__PURE__*/createContext({
|
|
4
4
|
editorView: null,
|
|
5
5
|
editorAppearance: undefined,
|
|
@@ -34,7 +34,7 @@ export var EditorToolbarProvider = function EditorToolbarProvider(_ref) {
|
|
|
34
34
|
isOffline: isOffline
|
|
35
35
|
};
|
|
36
36
|
}, [editorView, editorAppearance, editorViewMode, editorToolbarDockingPreference, isOffline]);
|
|
37
|
-
var contextValue =
|
|
37
|
+
var contextValue = isExperimentEnabled('platform_editor_perf_lint_cleanup') ? memoizedValue : {
|
|
38
38
|
editorView: editorView,
|
|
39
39
|
editorAppearance: editorAppearance,
|
|
40
40
|
editorViewMode: editorViewMode,
|
|
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "120.
|
|
24
|
+
var packageVersion = "120.10.1";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -16,6 +16,7 @@ import { akEditorFullPageDefaultFontSize, akEditorFullPageDenseFontSize } from '
|
|
|
16
16
|
import GrowDiagonalIcon from '@atlaskit/icon/core/grow-diagonal';
|
|
17
17
|
import LinkExternalIcon from '@atlaskit/icon/core/link-external';
|
|
18
18
|
import PanelRightIcon from '@atlaskit/icon/core/panel-right';
|
|
19
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
19
20
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
20
21
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
21
22
|
import { Anchor, Box, Text, xcss } from '@atlaskit/primitives';
|
|
@@ -120,7 +121,7 @@ var HoverLinkOverlay = function HoverLinkOverlay(_ref) {
|
|
|
120
121
|
paddingBlock: compactPadding ? '1px' : regularPadding
|
|
121
122
|
};
|
|
122
123
|
}, [compactPadding, regularPadding]);
|
|
123
|
-
var hoverLinkStyles =
|
|
124
|
+
var hoverLinkStyles = isExperimentEnabled('platform_editor_perf_lint_cleanup') ? memoizedHoverLinkStyles : {
|
|
124
125
|
paddingBlock: compactPadding ? '1px' : DYNAMIC_PADDING_BLOCK
|
|
125
126
|
};
|
|
126
127
|
useLayoutEffect(function () {
|
|
@@ -9,7 +9,6 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
9
9
|
/* eslint-disable @repo/internal/react/no-class-components */
|
|
10
10
|
import React, { PureComponent } from 'react';
|
|
11
11
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
12
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
13
12
|
import { ProviderFactory, WithProviders } from '../../provider-factory';
|
|
14
13
|
import { MentionWithAvatarProviders, MentionWithProviders } from './mention-with-providers';
|
|
15
14
|
var MENTION_PROVIDERS = ['mentionProvider', 'profilecardProvider'];
|
|
@@ -77,7 +76,7 @@ var Mention = /*#__PURE__*/function (_PureComponent) {
|
|
|
77
76
|
}, {
|
|
78
77
|
key: "render",
|
|
79
78
|
value: function render() {
|
|
80
|
-
var providers =
|
|
79
|
+
var providers = isExperimentEnabled('platform_editor_perf_lint_cleanup') ? MENTION_PROVIDERS : ['mentionProvider', 'profilecardProvider'];
|
|
81
80
|
return /*#__PURE__*/React.createElement(WithProviders, {
|
|
82
81
|
providers: providers,
|
|
83
82
|
providerFactory: this.providerFactory,
|
|
@@ -12,8 +12,8 @@ import { useCallback, useEffect, useRef, useState } from 'react';
|
|
|
12
12
|
import { css, jsx } from '@emotion/react';
|
|
13
13
|
import { bind } from 'bind-event-listener';
|
|
14
14
|
import { akEditorMenuZIndex } from '@atlaskit/editor-shared-styles';
|
|
15
|
-
import {
|
|
16
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
15
|
+
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
16
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
17
17
|
import { withReactEditorViewOuterListeners as withOuterListeners } from '../../ui-react';
|
|
18
18
|
import Popup from '../Popup';
|
|
19
19
|
import tableSelectorPopup, { TABLE_SELECTOR_BUTTON_GAP, TABLE_SELECTOR_BUTTON_SIZE } from './table-selector';
|
|
@@ -235,7 +235,7 @@ export var TableSelectorPopup = function TableSelectorPopup(props) {
|
|
|
235
235
|
}
|
|
236
236
|
return unbind;
|
|
237
237
|
}, [handleMouseMove, props.allowOutsideSelection, tablePopupRef]);
|
|
238
|
-
var offset =
|
|
238
|
+
var offset = isExperimentEnabled('platform_editor_perf_lint_cleanup') ? POPUP_OFFSET : [0, 3];
|
|
239
239
|
return jsx(Popup, {
|
|
240
240
|
target: props.target,
|
|
241
241
|
offset: offset,
|