@atlaskit/editor-common 112.7.3 → 112.7.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 +8 -0
- package/dist/cjs/analytics/types/enums.js +1 -0
- package/dist/cjs/card/ui/assets/card.js +3 -1
- package/dist/cjs/card/ui/assets/embed.js +3 -1
- package/dist/cjs/card/ui/assets/inline.js +3 -1
- package/dist/cjs/card/ui/assets/url.js +3 -1
- package/dist/cjs/element-browser/components/ElementList/ElementList.js +2 -2
- package/dist/cjs/extensibility/Extension/Extension/index.js +9 -3
- package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -0
- package/dist/cjs/extensibility/Extension.js +3 -1
- package/dist/cjs/extensions/UnknownMacroPlaceholder.js +1 -0
- package/dist/cjs/keymaps/index.js +1 -0
- package/dist/cjs/link/ConfigureLinkOverlay/Dropdown.js +4 -1
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +20 -11
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/index.js +6 -2
- package/dist/cjs/link/LinkSearch/LinkSearchList.js +6 -2
- package/dist/cjs/link/LinkSearch/withActivityProvider.js +5 -3
- package/dist/cjs/mark/commands.js +5 -3
- package/dist/cjs/media-inline/inline-image-card.js +3 -1
- package/dist/cjs/media-inline/media-inline-image-card.js +6 -2
- package/dist/cjs/media-single/CommentBadge.js +3 -1
- package/dist/cjs/media-single/CommentBadgeNext.js +3 -1
- package/dist/cjs/media-single/MediaBadges.js +3 -1
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/node-width/index.js +3 -9
- package/dist/cjs/paste/md-plugins/linkify-md-plugin.js +2 -2
- package/dist/cjs/resizer/BreakoutResizer.js +3 -1
- package/dist/cjs/resizer/Resizer.js +5 -1
- package/dist/cjs/toolbar/context.js +1 -0
- package/dist/cjs/ui/AssistiveText/AssistiveText.js +4 -0
- package/dist/cjs/ui/ContextPanel/context.js +3 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/FloatingToolbar/Button.js +4 -2
- package/dist/cjs/ui/HoverLinkOverlay/index.js +3 -1
- package/dist/cjs/ui/Mention/index.js +3 -1
- package/dist/cjs/ui/ResizerLegacy/index.js +3 -1
- package/dist/cjs/ui/TableSelector/index.js +3 -1
- package/dist/cjs/ui-color/ColorPalette/Palettes/borderColorPalette.js +1 -0
- package/dist/cjs/ui-color/ColorPalette/Palettes/cellBackgroundColorPalette.js +1 -0
- package/dist/cjs/ui-color/ColorPalette/Palettes/highlightColorPalette.js +1 -1
- package/dist/cjs/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js +4 -0
- package/dist/cjs/ui-menu/ColorPickerButton/index.js +12 -4
- package/dist/cjs/ui-menu/DropdownMenu/index.js +18 -6
- package/dist/cjs/ui-menu/ToolbarButton/styles.js +1 -1
- package/dist/es2019/analytics/types/enums.js +1 -0
- package/dist/es2019/card/ui/assets/card.js +3 -1
- package/dist/es2019/card/ui/assets/embed.js +3 -1
- package/dist/es2019/card/ui/assets/inline.js +3 -1
- package/dist/es2019/card/ui/assets/url.js +3 -1
- package/dist/es2019/element-browser/components/ElementList/ElementList.js +2 -2
- package/dist/es2019/extensibility/Extension/Extension/index.js +9 -3
- package/dist/es2019/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -0
- package/dist/es2019/extensibility/Extension.js +3 -1
- package/dist/es2019/extensions/UnknownMacroPlaceholder.js +1 -0
- package/dist/es2019/keymaps/index.js +1 -0
- package/dist/es2019/link/ConfigureLinkOverlay/Dropdown.js +4 -1
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +20 -11
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/index.js +6 -2
- package/dist/es2019/link/LinkSearch/LinkSearchList.js +6 -2
- package/dist/es2019/link/LinkSearch/withActivityProvider.js +4 -2
- package/dist/es2019/mark/commands.js +5 -3
- package/dist/es2019/media-inline/inline-image-card.js +3 -1
- package/dist/es2019/media-inline/media-inline-image-card.js +6 -2
- package/dist/es2019/media-single/CommentBadge.js +3 -1
- package/dist/es2019/media-single/CommentBadgeNext.js +3 -1
- package/dist/es2019/media-single/MediaBadges.js +3 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/node-width/index.js +4 -10
- package/dist/es2019/paste/md-plugins/linkify-md-plugin.js +2 -2
- package/dist/es2019/resizer/BreakoutResizer.js +3 -1
- package/dist/es2019/resizer/Resizer.js +5 -1
- package/dist/es2019/toolbar/context.js +1 -0
- package/dist/es2019/ui/AssistiveText/AssistiveText.js +4 -0
- package/dist/es2019/ui/ContextPanel/context.js +3 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/FloatingToolbar/Button.js +4 -2
- package/dist/es2019/ui/HoverLinkOverlay/index.js +3 -1
- package/dist/es2019/ui/Mention/index.js +3 -1
- package/dist/es2019/ui/ResizerLegacy/index.js +3 -1
- package/dist/es2019/ui/TableSelector/index.js +3 -1
- package/dist/es2019/ui-color/ColorPalette/Palettes/borderColorPalette.js +1 -0
- package/dist/es2019/ui-color/ColorPalette/Palettes/cellBackgroundColorPalette.js +1 -0
- package/dist/es2019/ui-color/ColorPalette/Palettes/highlightColorPalette.js +1 -1
- package/dist/es2019/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js +4 -0
- package/dist/es2019/ui-menu/ColorPickerButton/index.js +12 -4
- package/dist/es2019/ui-menu/DropdownMenu/index.js +18 -6
- package/dist/es2019/ui-menu/ToolbarButton/styles.js +1 -1
- package/dist/esm/analytics/types/enums.js +1 -0
- package/dist/esm/card/ui/assets/card.js +3 -1
- package/dist/esm/card/ui/assets/embed.js +3 -1
- package/dist/esm/card/ui/assets/inline.js +3 -1
- package/dist/esm/card/ui/assets/url.js +3 -1
- package/dist/esm/element-browser/components/ElementList/ElementList.js +2 -2
- package/dist/esm/extensibility/Extension/Extension/index.js +9 -3
- package/dist/esm/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -0
- package/dist/esm/extensibility/Extension.js +3 -1
- package/dist/esm/extensions/UnknownMacroPlaceholder.js +1 -0
- package/dist/esm/keymaps/index.js +1 -0
- package/dist/esm/link/ConfigureLinkOverlay/Dropdown.js +4 -1
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +20 -11
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/index.js +6 -2
- package/dist/esm/link/LinkSearch/LinkSearchList.js +6 -2
- package/dist/esm/link/LinkSearch/withActivityProvider.js +4 -2
- package/dist/esm/mark/commands.js +5 -3
- package/dist/esm/media-inline/inline-image-card.js +3 -1
- package/dist/esm/media-inline/media-inline-image-card.js +6 -2
- package/dist/esm/media-single/CommentBadge.js +3 -1
- package/dist/esm/media-single/CommentBadgeNext.js +3 -1
- package/dist/esm/media-single/MediaBadges.js +3 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/node-width/index.js +4 -10
- package/dist/esm/paste/md-plugins/linkify-md-plugin.js +2 -2
- package/dist/esm/resizer/BreakoutResizer.js +3 -1
- package/dist/esm/resizer/Resizer.js +5 -1
- package/dist/esm/toolbar/context.js +1 -0
- package/dist/esm/ui/AssistiveText/AssistiveText.js +4 -0
- package/dist/esm/ui/ContextPanel/context.js +3 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/FloatingToolbar/Button.js +4 -2
- package/dist/esm/ui/HoverLinkOverlay/index.js +3 -1
- package/dist/esm/ui/Mention/index.js +3 -1
- package/dist/esm/ui/ResizerLegacy/index.js +3 -1
- package/dist/esm/ui/TableSelector/index.js +3 -1
- package/dist/esm/ui-color/ColorPalette/Palettes/borderColorPalette.js +1 -0
- package/dist/esm/ui-color/ColorPalette/Palettes/cellBackgroundColorPalette.js +1 -0
- package/dist/esm/ui-color/ColorPalette/Palettes/highlightColorPalette.js +1 -1
- package/dist/esm/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js +4 -0
- package/dist/esm/ui-menu/ColorPickerButton/index.js +12 -4
- package/dist/esm/ui-menu/DropdownMenu/index.js +18 -6
- package/dist/esm/ui-menu/ToolbarButton/styles.js +1 -1
- package/dist/types/analytics/types/enums.d.ts +2 -1
- package/dist/types-ts4.5/analytics/types/enums.d.ts +2 -1
- package/package.json +4 -4
|
@@ -97,13 +97,13 @@ const linkify = state => {
|
|
|
97
97
|
//
|
|
98
98
|
if (!links[ln].schema) {
|
|
99
99
|
// Ignored via go/ees005
|
|
100
|
-
// eslint-disable-next-line require-unicode-regexp
|
|
100
|
+
// eslint-disable-next-line require-unicode-regexp, @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
|
|
101
101
|
urlText = state.md.normalizeLinkText('http://' + urlText).replace(/^http:\/\//, '');
|
|
102
102
|
// Ignored via go/ees005
|
|
103
103
|
// eslint-disable-next-line require-unicode-regexp
|
|
104
104
|
} else if (links[ln].schema === 'mailto:' && !/^mailto:/i.test(urlText)) {
|
|
105
105
|
// Ignored via go/ees005
|
|
106
|
-
// eslint-disable-next-line require-unicode-regexp
|
|
106
|
+
// eslint-disable-next-line require-unicode-regexp, @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
|
|
107
107
|
urlText = state.md.normalizeLinkText('mailto:' + urlText).replace(/^mailto:/, '');
|
|
108
108
|
} else {
|
|
109
109
|
urlText = state.md.normalizeLinkText(urlText);
|
|
@@ -325,7 +325,9 @@ const BreakoutResizer = ({
|
|
|
325
325
|
});
|
|
326
326
|
}
|
|
327
327
|
return /*#__PURE__*/React.createElement(Resizer, {
|
|
328
|
-
ref: resizerRef
|
|
328
|
+
ref: resizerRef
|
|
329
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
330
|
+
,
|
|
329
331
|
enable: {
|
|
330
332
|
left: true,
|
|
331
333
|
right: true
|
|
@@ -113,6 +113,8 @@ const ResizerNext = (props, ref) => {
|
|
|
113
113
|
alignItems: handlePositioning === 'adjacent' ? 'center' : undefined
|
|
114
114
|
};
|
|
115
115
|
const offset = handlePositioning === 'adjacent' ? `calc(${baseHandleStyles.width} * -1)` : `calc(${baseHandleStyles.width} * -0.5)`;
|
|
116
|
+
|
|
117
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
|
|
116
118
|
const nextHandleStyles = SUPPORTED_HANDLES.reduce((result, position) => ({
|
|
117
119
|
...result,
|
|
118
120
|
[position]: {
|
|
@@ -198,7 +200,9 @@ const ResizerNext = (props, ref) => {
|
|
|
198
200
|
return snapGap;
|
|
199
201
|
}, [snap, snapGap]);
|
|
200
202
|
return /*#__PURE__*/React.createElement(Resizable, _extends({
|
|
201
|
-
ref: resizable
|
|
203
|
+
ref: resizable
|
|
204
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
205
|
+
,
|
|
202
206
|
size: {
|
|
203
207
|
width: width !== null && width !== void 0 ? width : 'auto',
|
|
204
208
|
// just content itself (no paddings)
|
|
@@ -25,6 +25,7 @@ export const EditorToolbarProvider = ({
|
|
|
25
25
|
isOffline
|
|
26
26
|
}) => {
|
|
27
27
|
return /*#__PURE__*/React.createElement(EditorToolbarContext.Provider, {
|
|
28
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-inline-context-value, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
28
29
|
value: {
|
|
29
30
|
editorView,
|
|
30
31
|
editorAppearance,
|
|
@@ -37,6 +37,7 @@ export const AssistiveText = ({
|
|
|
37
37
|
}), [isInFocus]);
|
|
38
38
|
useEffect(() => {
|
|
39
39
|
if (!debounced) {
|
|
40
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
|
|
40
41
|
debounceStatusUpdate();
|
|
41
42
|
return () => {
|
|
42
43
|
debounceStatusUpdate.cancel();
|
|
@@ -45,8 +46,11 @@ export const AssistiveText = ({
|
|
|
45
46
|
}, [assistiveText, isInFocus, debounced, debounceStatusUpdate]);
|
|
46
47
|
useEffect(() => {
|
|
47
48
|
if (debounced) {
|
|
49
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
|
|
48
50
|
setBump(prevBump => !prevBump);
|
|
51
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
|
|
49
52
|
setDebounced(true);
|
|
53
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
|
|
50
54
|
setSilenced(!isInFocus);
|
|
51
55
|
}
|
|
52
56
|
}, [assistiveText, isInFocus, debounced]);
|
|
@@ -53,7 +53,9 @@ export class ContextPanelWidthProvider extends React.Component {
|
|
|
53
53
|
width,
|
|
54
54
|
positionedOverEditor
|
|
55
55
|
} = this.state;
|
|
56
|
-
return /*#__PURE__*/React.createElement(Provider
|
|
56
|
+
return /*#__PURE__*/React.createElement(Provider
|
|
57
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
58
|
+
, {
|
|
57
59
|
value: {
|
|
58
60
|
width,
|
|
59
61
|
positionedOverEditor,
|
|
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "112.7.
|
|
17
|
+
const packageVersion = "112.7.3";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -81,7 +81,9 @@ const FloatingToolbarButton = ({
|
|
|
81
81
|
}, /*#__PURE__*/React.createElement(Button
|
|
82
82
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/design-system/no-unsafe-style-overrides -- Ignored via go/DSP-18766
|
|
83
83
|
, {
|
|
84
|
-
className: className
|
|
84
|
+
className: className
|
|
85
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
86
|
+
,
|
|
85
87
|
ref: buttonElement => {
|
|
86
88
|
setSpotlightReferenceElement(buttonElement);
|
|
87
89
|
if (forwardedRef && editorExperiment('platform_synced_block', true)) {
|
|
@@ -92,7 +94,7 @@ const FloatingToolbarButton = ({
|
|
|
92
94
|
}
|
|
93
95
|
}
|
|
94
96
|
}
|
|
95
|
-
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides
|
|
97
|
+
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
96
98
|
,
|
|
97
99
|
theme: (adgTheme, themeProps) => {
|
|
98
100
|
const {
|
|
@@ -220,7 +220,9 @@ const HoverLinkOverlay = ({
|
|
|
220
220
|
ref: hoverLinkButtonRef,
|
|
221
221
|
xcss: linkStylesCommon,
|
|
222
222
|
href: url,
|
|
223
|
-
target: "_blank"
|
|
223
|
+
target: "_blank"
|
|
224
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
225
|
+
,
|
|
224
226
|
style: {
|
|
225
227
|
paddingBlock: compactPadding ? '1px' : expValEquals('confluence_compact_text_format', 'isEnabled', true) || expValEquals('cc_editor_ai_content_mode', 'variant', 'test') && fg('platform_editor_content_mode_button_mvp') ? DYNAMIC_PADDING_BLOCK : "var(--ds-space-025, 2px)"
|
|
226
228
|
},
|
|
@@ -38,7 +38,9 @@ export default class Mention extends PureComponent {
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
|
-
return /*#__PURE__*/React.createElement(WithProviders
|
|
41
|
+
return /*#__PURE__*/React.createElement(WithProviders
|
|
42
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
43
|
+
, {
|
|
42
44
|
providers: ['mentionProvider', 'profilecardProvider'],
|
|
43
45
|
providerFactory: this.providerFactory,
|
|
44
46
|
renderNode: this.renderWithProvider
|
|
@@ -185,7 +185,9 @@ export default class Resizer extends React.Component {
|
|
|
185
185
|
// Ideally, Resizable would let you pass in the component rather than
|
|
186
186
|
// the div. For now, we just apply the same styles using CSS
|
|
187
187
|
return /*#__PURE__*/React.createElement(Resizable, {
|
|
188
|
-
ref: this.resizable
|
|
188
|
+
ref: this.resizable
|
|
189
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
190
|
+
,
|
|
189
191
|
size: {
|
|
190
192
|
width: nonZeroWidth,
|
|
191
193
|
// just content itself (no paddings)
|
|
@@ -237,7 +237,9 @@ export const TableSelectorPopup = props => {
|
|
|
237
237
|
return unbind;
|
|
238
238
|
}, [handleMouseMove, props.allowOutsideSelection, tablePopupRef]);
|
|
239
239
|
return jsx(Popup, {
|
|
240
|
-
target: props.target
|
|
240
|
+
target: props.target
|
|
241
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
242
|
+
,
|
|
241
243
|
offset: [0, 3],
|
|
242
244
|
mountTo: props.popupsMountPoint,
|
|
243
245
|
boundariesElement: props.popupsBoundariesElement,
|
|
@@ -4,6 +4,7 @@ import getColorMessage from './getColorMessage';
|
|
|
4
4
|
import paletteMessages from './paletteMessages';
|
|
5
5
|
const borderColorPalette = [];
|
|
6
6
|
colorPalette.forEach((label, color) => {
|
|
7
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
|
|
7
8
|
const key = label.toLowerCase().replace(' ', '-');
|
|
8
9
|
const message = getColorMessage(paletteMessages, key);
|
|
9
10
|
borderColorPalette.push({
|
|
@@ -3,6 +3,7 @@ import getColorMessage from './getColorMessage';
|
|
|
3
3
|
import paletteMessages from './paletteMessages';
|
|
4
4
|
const cellBackgroundColorPalette = [];
|
|
5
5
|
tableBackgroundColorPalette.forEach((label, color) => {
|
|
6
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
|
|
6
7
|
const key = label.toLowerCase().replace(' ', '-');
|
|
7
8
|
const message = getColorMessage(paletteMessages, key);
|
|
8
9
|
cellBackgroundColorPalette.push({
|
|
@@ -40,7 +40,7 @@ export const EditorDiagonalLineIcon = () => {
|
|
|
40
40
|
} = useThemeObserver();
|
|
41
41
|
const primaryColor = colorMode === 'dark' ? "var(--ds-background-accent-gray-bolder, #626F86)" : "var(--ds-background-accent-gray-subtle, #8590A2)";
|
|
42
42
|
return (
|
|
43
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
43
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
44
44
|
jsx(DiagonalLineGlyph, {
|
|
45
45
|
"aria-label": "",
|
|
46
46
|
style: {
|
package/dist/es2019/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js
CHANGED
|
@@ -49,9 +49,13 @@ export const MenuArrowKeyNavigationProvider = ({
|
|
|
49
49
|
const currentIndex = currentSelectedItemIndex;
|
|
50
50
|
const list = getFocusableElements(wrapperRef === null || wrapperRef === void 0 ? void 0 : wrapperRef.current);
|
|
51
51
|
const currentElement = list[currentIndex];
|
|
52
|
+
|
|
53
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
|
|
52
54
|
if (currentElement && currentElement.getAttribute('aria-disabled') === 'true') {
|
|
53
55
|
var _list$focusIndex;
|
|
56
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
|
|
54
57
|
const focusIndex = incrementIndex(list);
|
|
58
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
|
|
55
59
|
(_list$focusIndex = list[focusIndex]) === null || _list$focusIndex === void 0 ? void 0 : _list$focusIndex.focus();
|
|
56
60
|
}
|
|
57
61
|
}, [currentSelectedItemIndex, onSelection, incrementIndex, decrementIndex]);
|
|
@@ -138,7 +138,9 @@ const ColorPickerButton = props => {
|
|
|
138
138
|
return jsx(Popup, {
|
|
139
139
|
target: buttonRef.current,
|
|
140
140
|
fitHeight: 350,
|
|
141
|
-
fitWidth: 350
|
|
141
|
+
fitWidth: 350
|
|
142
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
143
|
+
,
|
|
142
144
|
offset: [0, 10],
|
|
143
145
|
alignX: props.alignX,
|
|
144
146
|
mountTo: props.setDisableParentScroll ? props.mountPoint : undefined,
|
|
@@ -157,7 +159,9 @@ const ColorPickerButton = props => {
|
|
|
157
159
|
type: ArrowKeyNavigationType.COLOR,
|
|
158
160
|
selectedRowIndex: selectedRowIndex,
|
|
159
161
|
selectedColumnIndex: selectedColumnIndex,
|
|
160
|
-
closeOnTab: true
|
|
162
|
+
closeOnTab: true
|
|
163
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
164
|
+
,
|
|
161
165
|
handleClose: () => setIsPopupOpen(false),
|
|
162
166
|
isOpenedByKeyboard: isOpenedByKeyboard,
|
|
163
167
|
isPopupPositioned: isPopupPositioned,
|
|
@@ -167,7 +171,9 @@ const ColorPickerButton = props => {
|
|
|
167
171
|
selectedColor: selectedColor,
|
|
168
172
|
onClick: onColorSelected,
|
|
169
173
|
handleClickOutside: togglePopup,
|
|
170
|
-
handleEscapeKeydown: handleEsc
|
|
174
|
+
handleEscapeKeydown: handleEsc
|
|
175
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
176
|
+
,
|
|
171
177
|
paletteOptions: {
|
|
172
178
|
palette: props.colorPalette,
|
|
173
179
|
hexToPaletteColor: props.hexToPaletteColor,
|
|
@@ -215,7 +221,9 @@ const ColorPickerButton = props => {
|
|
|
215
221
|
"aria-label": title,
|
|
216
222
|
"aria-expanded": props.isAriaExpanded ? isPopupOpen : undefined,
|
|
217
223
|
spacing: editorExperiment('platform_editor_controls', 'variant1') ? 'default' : 'compact',
|
|
218
|
-
onClick: togglePopup
|
|
224
|
+
onClick: togglePopup
|
|
225
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
226
|
+
,
|
|
219
227
|
onKeyDown: event => {
|
|
220
228
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
221
229
|
event.preventDefault();
|
|
@@ -231,7 +231,9 @@ export default class DropdownMenuWrapper extends PureComponent {
|
|
|
231
231
|
position: popupPlacement.join(' '),
|
|
232
232
|
shouldFitContainer: true,
|
|
233
233
|
handleClickOutside: this.handleClose,
|
|
234
|
-
handleEscapeKeydown: handleEscapeKeydown || this.handleCloseAndFocus
|
|
234
|
+
handleEscapeKeydown: handleEscapeKeydown || this.handleCloseAndFocus
|
|
235
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
236
|
+
,
|
|
235
237
|
handleEnterKeydown: e => {
|
|
236
238
|
if (!allowEnterDefaultBehavior) {
|
|
237
239
|
e.preventDefault();
|
|
@@ -361,20 +363,28 @@ export function DropdownMenuItem({
|
|
|
361
363
|
role: shouldUseDefaultRole ? 'button' : expValEquals('platform_editor_august_a11y', 'isEnabled', true) ? undefined : 'menuitem',
|
|
362
364
|
iconBefore: item.elemBefore,
|
|
363
365
|
iconAfter: item.elemAfter,
|
|
364
|
-
isDisabled: item.isDisabled
|
|
366
|
+
isDisabled: item.isDisabled
|
|
367
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
368
|
+
,
|
|
365
369
|
onClick: () => onItemActivated && onItemActivated({
|
|
366
370
|
item
|
|
367
371
|
}),
|
|
368
372
|
"aria-label": ariaLabel,
|
|
369
373
|
"aria-pressed": shouldUseDefaultRole ? item.isActive : undefined,
|
|
370
|
-
"aria-keyshortcuts": item['aria-keyshortcuts']
|
|
374
|
+
"aria-keyshortcuts": item['aria-keyshortcuts']
|
|
375
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
376
|
+
,
|
|
371
377
|
onMouseDown: e => {
|
|
372
378
|
e.preventDefault();
|
|
373
379
|
},
|
|
374
|
-
component: DropdownMenuItemCustomComponent
|
|
380
|
+
component: DropdownMenuItemCustomComponent
|
|
381
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
382
|
+
,
|
|
375
383
|
onMouseEnter: () => onMouseEnter && onMouseEnter({
|
|
376
384
|
item
|
|
377
|
-
})
|
|
385
|
+
})
|
|
386
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
387
|
+
,
|
|
378
388
|
onMouseLeave: () => onMouseLeave && onMouseLeave({
|
|
379
389
|
item
|
|
380
390
|
}),
|
|
@@ -400,7 +410,9 @@ export const DropdownMenuWithKeyboardNavigation = /*#__PURE__*/React.memo(
|
|
|
400
410
|
|
|
401
411
|
// This context is to handle the tab, Arrow Right/Left key events for dropdown.
|
|
402
412
|
// Default context has the void callbacks for above key events
|
|
403
|
-
return jsx(DropdownMenuWrapper
|
|
413
|
+
return jsx(DropdownMenuWrapper
|
|
414
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
415
|
+
, _extends({
|
|
404
416
|
arrowKeyNavigationProviderOptions: {
|
|
405
417
|
...props.arrowKeyNavigationProviderOptions,
|
|
406
418
|
keyDownHandlerContext
|
|
@@ -12,7 +12,7 @@ const _default_1 = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
12
12
|
// Ignored via go/ees007
|
|
13
13
|
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
14
14
|
// TODO: (from codemod) Buttons with "component", "css" or "style" prop can't be automatically migrated with codemods. Please migrate it manually.
|
|
15
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
16
16
|
style: {
|
|
17
17
|
alignItems: 'center'
|
|
18
18
|
}
|
|
@@ -368,6 +368,7 @@ export var ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJECT) {
|
|
|
368
368
|
ACTION_SUBJECT["BLOCK_MENU_ITEM"] = "blockMenuItem";
|
|
369
369
|
ACTION_SUBJECT["PASTE_ACTIONS_MENU"] = "pasteActionsMenu";
|
|
370
370
|
ACTION_SUBJECT["SYNCED_BLOCK"] = "syncedBlock";
|
|
371
|
+
ACTION_SUBJECT["NATIVE_EMBED"] = "nativeEmbed";
|
|
371
372
|
return ACTION_SUBJECT;
|
|
372
373
|
}({});
|
|
373
374
|
export var ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
|
|
@@ -24,7 +24,9 @@ var IconCardGlyph = function IconCardGlyph(_ref) {
|
|
|
24
24
|
export var IconCard = function IconCard(_ref2) {
|
|
25
25
|
var label = _ref2.label;
|
|
26
26
|
return /*#__PURE__*/React.createElement(IconCardGlyph, {
|
|
27
|
-
"aria-label": label
|
|
27
|
+
"aria-label": label
|
|
28
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
29
|
+
,
|
|
28
30
|
style: {
|
|
29
31
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
30
32
|
width: '24px',
|
|
@@ -24,7 +24,9 @@ var IconEmbedGlyph = function IconEmbedGlyph(_ref) {
|
|
|
24
24
|
export var IconEmbed = function IconEmbed(_ref2) {
|
|
25
25
|
var label = _ref2.label;
|
|
26
26
|
return /*#__PURE__*/React.createElement(IconEmbedGlyph, {
|
|
27
|
-
"aria-label": label
|
|
27
|
+
"aria-label": label
|
|
28
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
29
|
+
,
|
|
28
30
|
style: {
|
|
29
31
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
30
32
|
width: '24px',
|
|
@@ -24,7 +24,9 @@ var IconInlineGlyph = function IconInlineGlyph(_ref) {
|
|
|
24
24
|
export var IconInline = function IconInline(_ref2) {
|
|
25
25
|
var label = _ref2.label;
|
|
26
26
|
return /*#__PURE__*/React.createElement(IconInlineGlyph, {
|
|
27
|
-
"aria-label": label
|
|
27
|
+
"aria-label": label
|
|
28
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
29
|
+
,
|
|
28
30
|
style: {
|
|
29
31
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
30
32
|
width: '24px',
|
|
@@ -26,7 +26,9 @@ var IconUrlGlyph = function IconUrlGlyph(_ref) {
|
|
|
26
26
|
export var IconUrl = function IconUrl(_ref2) {
|
|
27
27
|
var label = _ref2.label;
|
|
28
28
|
return /*#__PURE__*/React.createElement(IconUrlGlyph, {
|
|
29
|
-
"aria-label": label
|
|
29
|
+
"aria-label": label
|
|
30
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
31
|
+
,
|
|
30
32
|
style: {
|
|
31
33
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
32
34
|
width: '24px',
|
|
@@ -85,6 +85,7 @@ function ElementList(_ref) {
|
|
|
85
85
|
setColumnCount(getColumnCount(containerWidth));
|
|
86
86
|
var updatedScrollbarWidth = getScrollbarWidth();
|
|
87
87
|
if (updatedScrollbarWidth > 0) {
|
|
88
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
|
|
88
89
|
setScrollbarWidth(updatedScrollbarWidth);
|
|
89
90
|
}
|
|
90
91
|
}
|
|
@@ -504,8 +505,7 @@ var elementItemsWrapper = css({
|
|
|
504
505
|
padding: "var(--ds-space-025, 2px)",
|
|
505
506
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
506
507
|
'.ReactVirtualized__Grid': {
|
|
507
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
508
|
-
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
|
|
508
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/no-unsafe-design-token-usage -- Ignored via go/DSP-18766
|
|
509
509
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
510
510
|
outline: 'none',
|
|
511
511
|
'&:focus': {
|
|
@@ -141,10 +141,14 @@ function ExtensionWithPluginState(props) {
|
|
|
141
141
|
var extensionContentStyles = expValEquals('platform_editor_extension_styles', 'isEnabled', true) ? extensionContent : content;
|
|
142
142
|
return jsx(Fragment, null, expValEquals('cc_editor_lcm_readonly_initial', 'isEnabled', true) ? null : showLegacyContentHeader && jsx(LegacyContentHeader, {
|
|
143
143
|
isNodeSelected: isNodeSelected,
|
|
144
|
-
isNodeHovered: isNodeHovered
|
|
144
|
+
isNodeHovered: isNodeHovered
|
|
145
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
146
|
+
,
|
|
145
147
|
onMouseEnter: function onMouseEnter() {
|
|
146
148
|
return handleMouseEvent(true);
|
|
147
|
-
}
|
|
149
|
+
}
|
|
150
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
151
|
+
,
|
|
148
152
|
onMouseLeave: function onMouseLeave() {
|
|
149
153
|
return handleMouseEvent(false);
|
|
150
154
|
}
|
|
@@ -242,7 +246,9 @@ var Extension = function Extension(props) {
|
|
|
242
246
|
width = _useSharedPluginState.width;
|
|
243
247
|
|
|
244
248
|
// Ignored via go/ees005
|
|
245
|
-
return jsx(ExtensionWithPluginState
|
|
249
|
+
return jsx(ExtensionWithPluginState
|
|
250
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
251
|
+
, _extends({
|
|
246
252
|
widthState: {
|
|
247
253
|
width: width !== null && width !== void 0 ? width : 0,
|
|
248
254
|
lineLength: lineLength
|
|
@@ -181,6 +181,7 @@ export var ExtensionLabel = function ExtensionLabel(_ref) {
|
|
|
181
181
|
// Ignored via go/ees005
|
|
182
182
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
183
183
|
, _extends({}, i18n.configure, {
|
|
184
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
184
185
|
values: {
|
|
185
186
|
macroName: text
|
|
186
187
|
}
|
|
@@ -76,7 +76,9 @@ export var Extension = /*#__PURE__*/function (_Component) {
|
|
|
76
76
|
}, {
|
|
77
77
|
key: "render",
|
|
78
78
|
value: function render() {
|
|
79
|
-
return /*#__PURE__*/React.createElement(WithProviders
|
|
79
|
+
return /*#__PURE__*/React.createElement(WithProviders
|
|
80
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
81
|
+
, {
|
|
80
82
|
providers: ['extensionProvider'],
|
|
81
83
|
providerFactory: this.providerFactory,
|
|
82
84
|
renderNode: this.renderWithProvider
|
|
@@ -27,6 +27,7 @@ export function UnknownMacroPlaceholder(_ref) {
|
|
|
27
27
|
var value = String((_param$value = param === null || param === void 0 ? void 0 : param.value) !== null && _param$value !== void 0 ? _param$value : '').trim();
|
|
28
28
|
return "".concat(key, " = ").concat(value);
|
|
29
29
|
};
|
|
30
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
|
|
30
31
|
var visibleParams = Object.entries(macroParams).filter(function (_ref2) {
|
|
31
32
|
var _ref3 = _slicedToArray(_ref2, 1),
|
|
32
33
|
key = _ref3[0];
|
|
@@ -274,6 +274,7 @@ export function getAriaKeyshortcuts(keymap) {
|
|
|
274
274
|
case 'arrowdown':
|
|
275
275
|
return 'Arrow Down';
|
|
276
276
|
default:
|
|
277
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
|
|
277
278
|
return modifier.split('').join(' ');
|
|
278
279
|
}
|
|
279
280
|
}).join('+');
|
|
@@ -63,6 +63,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
63
63
|
focusEditor();
|
|
64
64
|
}, [fireActionClickEvent, focusEditor, onConfigureClickCallback]);
|
|
65
65
|
return jsx(DropdownMenu, {
|
|
66
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
66
67
|
trigger: function trigger(_ref3) {
|
|
67
68
|
var _onClick = _ref3.onClick,
|
|
68
69
|
triggerRef = _ref3.triggerRef,
|
|
@@ -75,7 +76,9 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
75
76
|
iconBefore: jsx(ChevronDownIcon, {
|
|
76
77
|
label: configureLinkLabel,
|
|
77
78
|
size: "small"
|
|
78
|
-
})
|
|
79
|
+
})
|
|
80
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
81
|
+
,
|
|
79
82
|
onClick: function onClick(e) {
|
|
80
83
|
_onClick === null || _onClick === void 0 || _onClick(e);
|
|
81
84
|
fireLinkClickEvent();
|
|
@@ -912,13 +912,17 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
912
912
|
ariaActiveDescendant: ariaActiveDescendant,
|
|
913
913
|
ariaControls: linkSearchListId,
|
|
914
914
|
ariaAutoComplete: true,
|
|
915
|
-
describedById: screenReaderDescriptionId
|
|
915
|
+
describedById: screenReaderDescriptionId
|
|
916
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
917
|
+
,
|
|
916
918
|
ref: function ref(ele) {
|
|
917
919
|
return _this3.urlInputContainer = ele;
|
|
918
920
|
},
|
|
919
921
|
testId: 'link-url',
|
|
920
922
|
onSubmit: this.handleSubmit,
|
|
921
|
-
onChange: this.updateInput
|
|
923
|
+
onChange: this.updateInput
|
|
924
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
925
|
+
,
|
|
922
926
|
autoFocus: {
|
|
923
927
|
preventScroll: true
|
|
924
928
|
},
|
|
@@ -941,7 +945,9 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
941
945
|
css: [inputLabel, textLabelMargin]
|
|
942
946
|
}, formatMessage(messages.textVisibleLabel)), jsx("div", {
|
|
943
947
|
css: [inputWrapper, inputWrapperPosition]
|
|
944
|
-
}, jsx(PanelTextInput
|
|
948
|
+
}, jsx(PanelTextInput
|
|
949
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
950
|
+
, {
|
|
945
951
|
ref: function ref(ele) {
|
|
946
952
|
return _this3.displayTextInputContainer = ele;
|
|
947
953
|
},
|
|
@@ -985,14 +991,17 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
985
991
|
onMouseLeave: this.handleMouseLeaveResultItem
|
|
986
992
|
})));
|
|
987
993
|
if (expValEquals('platform_editor_a11y_escape_link_dialog', 'isEnabled', true)) {
|
|
988
|
-
return
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
994
|
+
return (
|
|
995
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
996
|
+
jsx(FocusLock, {
|
|
997
|
+
returnFocus: {
|
|
998
|
+
preventScroll: true
|
|
999
|
+
},
|
|
1000
|
+
focusOptions: {
|
|
1001
|
+
preventScroll: true
|
|
1002
|
+
}
|
|
1003
|
+
}, hyperlinkElement)
|
|
1004
|
+
);
|
|
996
1005
|
}
|
|
997
1006
|
return hyperlinkElement;
|
|
998
1007
|
}
|
|
@@ -36,9 +36,13 @@ export function HyperlinkAddToolbar(_ref2) {
|
|
|
36
36
|
searchSessionId = _ref2.searchSessionId,
|
|
37
37
|
timesViewed = _ref2.timesViewed,
|
|
38
38
|
isOffline = _ref2.isOffline;
|
|
39
|
-
return /*#__PURE__*/React.createElement(WithProviders
|
|
39
|
+
return /*#__PURE__*/React.createElement(WithProviders
|
|
40
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
41
|
+
, {
|
|
40
42
|
providers: ['activityProvider', 'searchProvider'],
|
|
41
|
-
providerFactory: providerFactory
|
|
43
|
+
providerFactory: providerFactory
|
|
44
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
45
|
+
,
|
|
42
46
|
renderNode: function renderNode(_ref3) {
|
|
43
47
|
var activityProvider = _ref3.activityProvider,
|
|
44
48
|
searchProvider = _ref3.searchProvider;
|
|
@@ -50,7 +50,9 @@ var LinkSearchList = function LinkSearchList(_ref) {
|
|
|
50
50
|
return jsx(ForwardedLinkSearchListItemNextWithIntl, {
|
|
51
51
|
id: "link-search-list-item-".concat(index),
|
|
52
52
|
item: item,
|
|
53
|
-
selected: selectedIndex === index
|
|
53
|
+
selected: selectedIndex === index
|
|
54
|
+
// eslint-disable-next-line @atlassian/perf-linting/detect-unnecessary-rerenders, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
55
|
+
,
|
|
54
56
|
onFocus: function onFocus() {
|
|
55
57
|
return _onFocus === null || _onFocus === void 0 ? void 0 : _onFocus(index);
|
|
56
58
|
},
|
|
@@ -59,7 +61,9 @@ var LinkSearchList = function LinkSearchList(_ref) {
|
|
|
59
61
|
onMouseEnter: onMouseEnter,
|
|
60
62
|
onMouseLeave: onMouseLeave,
|
|
61
63
|
onSelect: onSelect,
|
|
62
|
-
key: item.objectId
|
|
64
|
+
key: item.objectId
|
|
65
|
+
// eslint-disable-next-line @atlassian/perf-linting/detect-unnecessary-rerenders, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
66
|
+
,
|
|
63
67
|
ref: function ref(el) {
|
|
64
68
|
return listItemRefCallback === null || listItemRefCallback === void 0 ? void 0 : listItemRefCallback(el, item.objectId);
|
|
65
69
|
}
|
|
@@ -24,7 +24,7 @@ export default function withActivityProvider(WrappedComponent) {
|
|
|
24
24
|
_this = _callSuper(this, WithActivityProvider, [].concat(args));
|
|
25
25
|
_defineProperty(_this, "renderNode", function (providers) {
|
|
26
26
|
var _ref = _this.props,
|
|
27
|
-
|
|
27
|
+
_providerFactory = _ref.providerFactory,
|
|
28
28
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
29
29
|
var activityProvider = providers.activityProvider;
|
|
30
30
|
|
|
@@ -41,7 +41,9 @@ export default function withActivityProvider(WrappedComponent) {
|
|
|
41
41
|
key: "render",
|
|
42
42
|
value: function render() {
|
|
43
43
|
var providerFactory = this.props.providerFactory;
|
|
44
|
-
return /*#__PURE__*/React.createElement(WithProviders
|
|
44
|
+
return /*#__PURE__*/React.createElement(WithProviders
|
|
45
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
46
|
+
, {
|
|
45
47
|
providers: ['activityProvider'],
|
|
46
48
|
providerFactory: providerFactory,
|
|
47
49
|
renderNode: this.renderNode
|