@atlaskit/editor-common 112.7.3 → 112.7.5
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 +16 -0
- package/afm-cc/tsconfig.json +0 -3
- package/afm-jira/tsconfig.json +0 -3
- package/afm-products/tsconfig.json +0 -3
- 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/CategoryList.js +1 -1
- package/dist/cjs/element-browser/components/ElementList/ElementList.js +3 -3
- package/dist/cjs/element-browser/components/ElementList/EmptyState.js +1 -1
- package/dist/cjs/element-browser/components/ElementSearch.js +1 -1
- package/dist/cjs/element-browser/components/StatelessElementBrowser.js +2 -2
- package/dist/cjs/extensibility/Extension/Extension/index.js +9 -3
- package/dist/cjs/extensibility/Extension/Extension/styles.js +2 -2
- package/dist/cjs/extensibility/Extension/InlineExtension/styles.js +1 -1
- package/dist/cjs/extensibility/Extension/LegacyContentHeader/index.js +1 -1
- package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -0
- package/dist/cjs/extensibility/Extension.js +3 -1
- package/dist/cjs/extensibility/MultiBodiedExtension/styles.js +1 -1
- package/dist/cjs/extensions/UnknownMacroPlaceholder.compiled.css +3 -3
- package/dist/cjs/extensions/UnknownMacroPlaceholder.js +4 -3
- 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 +6 -4
- 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/quick-insert/assets/datasource-assets-objects.js +3 -3
- package/dist/cjs/quick-insert/assets/five-column-layout.js +1 -1
- package/dist/cjs/quick-insert/assets/four-column-layout.js +1 -1
- package/dist/cjs/quick-insert/assets/one-column-layout.js +1 -1
- package/dist/cjs/quick-insert/assets/three-column-layout.js +1 -1
- package/dist/cjs/quick-insert/assets/two-column-layout.js +1 -1
- package/dist/cjs/resizer/BreakoutResizer.js +3 -1
- package/dist/cjs/resizer/Resizer.js +6 -2
- package/dist/cjs/styles/shared/blockquote.js +1 -1
- package/dist/cjs/styles/shared/table.js +3 -3
- package/dist/cjs/table/SortingIcon.js +3 -3
- 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/MultiBodiedExtension/index.js +1 -1
- package/dist/cjs/ui/ResizerLegacy/index.js +3 -1
- package/dist/cjs/ui/TableSelector/index.js +6 -5
- package/dist/cjs/ui/TableSelector/table-selector.js +9 -10
- 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 +3 -3
- package/dist/cjs/ui-color/ColorPalette/Palettes/panelBackgroundPalette.js +1 -2
- package/dist/cjs/ui-color/ColorPalette/Palettes/textColorPalette.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 +21 -10
- 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/CategoryList.js +2 -2
- package/dist/es2019/element-browser/components/ElementList/ElementList.js +3 -3
- package/dist/es2019/element-browser/components/ElementList/EmptyState.js +1 -1
- package/dist/es2019/element-browser/components/ElementSearch.js +1 -1
- package/dist/es2019/element-browser/components/StatelessElementBrowser.js +2 -2
- package/dist/es2019/extensibility/Extension/Extension/index.js +9 -3
- package/dist/es2019/extensibility/Extension/Extension/styles.js +2 -2
- package/dist/es2019/extensibility/Extension/InlineExtension/styles.js +1 -1
- package/dist/es2019/extensibility/Extension/LegacyContentHeader/index.js +1 -1
- package/dist/es2019/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -0
- package/dist/es2019/extensibility/Extension.js +3 -1
- package/dist/es2019/extensibility/MultiBodiedExtension/styles.js +1 -1
- package/dist/es2019/extensions/UnknownMacroPlaceholder.compiled.css +3 -3
- package/dist/es2019/extensions/UnknownMacroPlaceholder.js +3 -2
- 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 +6 -4
- 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/quick-insert/assets/datasource-assets-objects.js +3 -3
- package/dist/es2019/quick-insert/assets/five-column-layout.js +1 -1
- package/dist/es2019/quick-insert/assets/four-column-layout.js +1 -1
- package/dist/es2019/quick-insert/assets/one-column-layout.js +1 -1
- package/dist/es2019/quick-insert/assets/three-column-layout.js +1 -1
- package/dist/es2019/quick-insert/assets/two-column-layout.js +1 -1
- package/dist/es2019/resizer/BreakoutResizer.js +3 -1
- package/dist/es2019/resizer/Resizer.js +6 -2
- package/dist/es2019/styles/shared/blockquote.js +2 -2
- package/dist/es2019/styles/shared/table.js +13 -14
- package/dist/es2019/table/SortingIcon.js +4 -4
- 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/MultiBodiedExtension/index.js +1 -1
- package/dist/es2019/ui/ResizerLegacy/index.js +3 -1
- package/dist/es2019/ui/TableSelector/index.js +6 -5
- package/dist/es2019/ui/TableSelector/table-selector.js +9 -10
- 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 +3 -3
- package/dist/es2019/ui-color/ColorPalette/Palettes/panelBackgroundPalette.js +1 -2
- package/dist/es2019/ui-color/ColorPalette/Palettes/textColorPalette.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 +25 -14
- 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/CategoryList.js +2 -2
- package/dist/esm/element-browser/components/ElementList/ElementList.js +3 -3
- package/dist/esm/element-browser/components/ElementList/EmptyState.js +1 -1
- package/dist/esm/element-browser/components/ElementSearch.js +1 -1
- package/dist/esm/element-browser/components/StatelessElementBrowser.js +2 -2
- package/dist/esm/extensibility/Extension/Extension/index.js +9 -3
- package/dist/esm/extensibility/Extension/Extension/styles.js +2 -2
- package/dist/esm/extensibility/Extension/InlineExtension/styles.js +1 -1
- package/dist/esm/extensibility/Extension/LegacyContentHeader/index.js +1 -1
- package/dist/esm/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -0
- package/dist/esm/extensibility/Extension.js +3 -1
- package/dist/esm/extensibility/MultiBodiedExtension/styles.js +1 -1
- package/dist/esm/extensions/UnknownMacroPlaceholder.compiled.css +3 -3
- package/dist/esm/extensions/UnknownMacroPlaceholder.js +4 -3
- 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 +6 -4
- 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/quick-insert/assets/datasource-assets-objects.js +3 -3
- package/dist/esm/quick-insert/assets/five-column-layout.js +1 -1
- package/dist/esm/quick-insert/assets/four-column-layout.js +1 -1
- package/dist/esm/quick-insert/assets/one-column-layout.js +1 -1
- package/dist/esm/quick-insert/assets/three-column-layout.js +1 -1
- package/dist/esm/quick-insert/assets/two-column-layout.js +1 -1
- package/dist/esm/resizer/BreakoutResizer.js +3 -1
- package/dist/esm/resizer/Resizer.js +6 -2
- package/dist/esm/styles/shared/blockquote.js +2 -2
- package/dist/esm/styles/shared/table.js +4 -4
- package/dist/esm/table/SortingIcon.js +3 -3
- 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/MultiBodiedExtension/index.js +1 -1
- package/dist/esm/ui/ResizerLegacy/index.js +3 -1
- package/dist/esm/ui/TableSelector/index.js +6 -5
- package/dist/esm/ui/TableSelector/table-selector.js +9 -10
- 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 +3 -3
- package/dist/esm/ui-color/ColorPalette/Palettes/panelBackgroundPalette.js +1 -2
- package/dist/esm/ui-color/ColorPalette/Palettes/textColorPalette.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 +21 -10
- 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 -5
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();
|
|
@@ -12,7 +12,6 @@ import React, { PureComponent, useContext } from 'react';
|
|
|
12
12
|
import { css, jsx } from '@emotion/react';
|
|
13
13
|
import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
|
|
14
14
|
import { CustomItem, MenuGroup, Section } from '@atlaskit/menu';
|
|
15
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
15
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
17
16
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
18
17
|
import Tooltip from '@atlaskit/tooltip';
|
|
@@ -50,14 +49,14 @@ const buttonStyles = (isActive, submenuActive) => {
|
|
|
50
49
|
position: absolute;
|
|
51
50
|
left: 0;
|
|
52
51
|
top: 0;
|
|
53
|
-
background: ${"var(--ds-border-selected,
|
|
52
|
+
background: ${"var(--ds-border-selected, #1868DB)"};
|
|
54
53
|
content: '';
|
|
55
54
|
}
|
|
56
55
|
> span,
|
|
57
56
|
> span:hover,
|
|
58
57
|
> span:active {
|
|
59
|
-
background: ${
|
|
60
|
-
color: ${
|
|
58
|
+
background: ${"var(--ds-background-selected, #E9F2FE)"};
|
|
59
|
+
color: ${"var(--ds-text-selected, #1868DB)"};
|
|
61
60
|
}
|
|
62
61
|
:focus > span[aria-disabled='false'] {
|
|
63
62
|
${focusedMenuItemStyle};
|
|
@@ -77,8 +76,8 @@ const buttonStyles = (isActive, submenuActive) => {
|
|
|
77
76
|
> span,
|
|
78
77
|
> span:hover,
|
|
79
78
|
> span:active {
|
|
80
|
-
background: ${
|
|
81
|
-
color: ${
|
|
79
|
+
background: ${"var(--ds-background-selected, #E9F2FE)"};
|
|
80
|
+
color: ${"var(--ds-text-selected, #1868DB)"};
|
|
82
81
|
}
|
|
83
82
|
:focus > span[aria-disabled='false'] {
|
|
84
83
|
${focusedMenuItemStyle};
|
|
@@ -93,11 +92,11 @@ const buttonStyles = (isActive, submenuActive) => {
|
|
|
93
92
|
return css`
|
|
94
93
|
> span:hover[aria-disabled='false'] {
|
|
95
94
|
color: ${"var(--ds-text, #292A2E)"};
|
|
96
|
-
background-color: ${"var(--ds-background-neutral-subtle-hovered,
|
|
95
|
+
background-color: ${"var(--ds-background-neutral-subtle-hovered, #0515240F)"};
|
|
97
96
|
}
|
|
98
97
|
${!submenuActive && `
|
|
99
98
|
> span:active[aria-disabled='false'] {
|
|
100
|
-
background-color: ${"var(--ds-background-neutral-subtle-pressed,
|
|
99
|
+
background-color: ${"var(--ds-background-neutral-subtle-pressed, #0B120E24)"};
|
|
101
100
|
}`}
|
|
102
101
|
> span[aria-disabled='true'] {
|
|
103
102
|
color: ${"var(--ds-text-disabled, #080F214A)"};
|
|
@@ -231,7 +230,9 @@ export default class DropdownMenuWrapper extends PureComponent {
|
|
|
231
230
|
position: popupPlacement.join(' '),
|
|
232
231
|
shouldFitContainer: true,
|
|
233
232
|
handleClickOutside: this.handleClose,
|
|
234
|
-
handleEscapeKeydown: handleEscapeKeydown || this.handleCloseAndFocus
|
|
233
|
+
handleEscapeKeydown: handleEscapeKeydown || this.handleCloseAndFocus
|
|
234
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
235
|
+
,
|
|
235
236
|
handleEnterKeydown: e => {
|
|
236
237
|
if (!allowEnterDefaultBehavior) {
|
|
237
238
|
e.preventDefault();
|
|
@@ -361,20 +362,28 @@ export function DropdownMenuItem({
|
|
|
361
362
|
role: shouldUseDefaultRole ? 'button' : expValEquals('platform_editor_august_a11y', 'isEnabled', true) ? undefined : 'menuitem',
|
|
362
363
|
iconBefore: item.elemBefore,
|
|
363
364
|
iconAfter: item.elemAfter,
|
|
364
|
-
isDisabled: item.isDisabled
|
|
365
|
+
isDisabled: item.isDisabled
|
|
366
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
367
|
+
,
|
|
365
368
|
onClick: () => onItemActivated && onItemActivated({
|
|
366
369
|
item
|
|
367
370
|
}),
|
|
368
371
|
"aria-label": ariaLabel,
|
|
369
372
|
"aria-pressed": shouldUseDefaultRole ? item.isActive : undefined,
|
|
370
|
-
"aria-keyshortcuts": item['aria-keyshortcuts']
|
|
373
|
+
"aria-keyshortcuts": item['aria-keyshortcuts']
|
|
374
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
375
|
+
,
|
|
371
376
|
onMouseDown: e => {
|
|
372
377
|
e.preventDefault();
|
|
373
378
|
},
|
|
374
|
-
component: DropdownMenuItemCustomComponent
|
|
379
|
+
component: DropdownMenuItemCustomComponent
|
|
380
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
381
|
+
,
|
|
375
382
|
onMouseEnter: () => onMouseEnter && onMouseEnter({
|
|
376
383
|
item
|
|
377
|
-
})
|
|
384
|
+
})
|
|
385
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
386
|
+
,
|
|
378
387
|
onMouseLeave: () => onMouseLeave && onMouseLeave({
|
|
379
388
|
item
|
|
380
389
|
}),
|
|
@@ -400,7 +409,9 @@ export const DropdownMenuWithKeyboardNavigation = /*#__PURE__*/React.memo(
|
|
|
400
409
|
|
|
401
410
|
// This context is to handle the tab, Arrow Right/Left key events for dropdown.
|
|
402
411
|
// Default context has the void callbacks for above key events
|
|
403
|
-
return jsx(DropdownMenuWrapper
|
|
412
|
+
return jsx(DropdownMenuWrapper
|
|
413
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
414
|
+
, _extends({
|
|
404
415
|
arrowKeyNavigationProviderOptions: {
|
|
405
416
|
...props.arrowKeyNavigationProviderOptions,
|
|
406
417
|
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',
|
|
@@ -16,7 +16,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
16
16
|
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
17
17
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
18
18
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, fireAnalyticsEvent } from '../../analytics';
|
|
19
|
-
import { DEVICE_BREAKPOINT_NUMBERS
|
|
19
|
+
import { DEVICE_BREAKPOINT_NUMBERS } from '../constants';
|
|
20
20
|
import useFocus from '../hooks/use-focus';
|
|
21
21
|
var arrowsKeys = new Set(['ArrowUp', 'ArrowDown']);
|
|
22
22
|
function CategoryList(_ref) {
|
|
@@ -175,7 +175,7 @@ function CategoryListItem(_ref2) {
|
|
|
175
175
|
}
|
|
176
176
|
var buttonWrapper = css(_defineProperty({
|
|
177
177
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
178
|
-
height: ""
|
|
178
|
+
height: "32px",
|
|
179
179
|
margin: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-050, 4px)", " ", "var(--ds-space-050, 4px)", " 0")
|
|
180
180
|
}, "@media (min-width: ".concat(DEVICE_BREAKPOINT_NUMBERS.medium, "px)"), {
|
|
181
181
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
@@ -36,7 +36,7 @@ export var itemIcon = css({
|
|
|
36
36
|
width: "".concat(ICON_WIDTH, "px"),
|
|
37
37
|
height: "".concat(ICON_HEIGHT, "px"),
|
|
38
38
|
overflow: 'hidden',
|
|
39
|
-
border: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border,
|
|
39
|
+
border: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, #0B120E24)"),
|
|
40
40
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
41
41
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
42
42
|
boxSizing: 'border-box',
|
|
@@ -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': {
|
|
@@ -51,7 +51,7 @@ export default function EmptyState(_ref) {
|
|
|
51
51
|
}
|
|
52
52
|
var emptyStateHeading = css({
|
|
53
53
|
font: "var(--ds-font-heading-medium, normal 653 20px/24px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
54
|
-
color: "var(--ds-text,
|
|
54
|
+
color: "var(--ds-text, #292A2E)",
|
|
55
55
|
marginTop: "var(--ds-space-300, 24px)"
|
|
56
56
|
});
|
|
57
57
|
var emptyStateSubHeading = css({
|
|
@@ -154,7 +154,7 @@ var wrapperInline = css({
|
|
|
154
154
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
155
155
|
'& > [data-ds--text-field--container]': {
|
|
156
156
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
157
|
-
height: ""
|
|
157
|
+
height: "40px",
|
|
158
158
|
flex: 'none',
|
|
159
159
|
overflow: 'revert'
|
|
160
160
|
}
|
|
@@ -95,7 +95,7 @@ var searchContainer = css({
|
|
|
95
95
|
var mobileCategoryListWrapper = css({
|
|
96
96
|
display: 'flex',
|
|
97
97
|
overflowX: 'auto',
|
|
98
|
-
padding: "var(--ds-space-200,
|
|
98
|
+
padding: "var(--ds-space-200, 16px)".concat(" 0 ", "var(--ds-space-200, 16px)", " 0"),
|
|
99
99
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
100
100
|
minHeight: "".concat(GRID_SIZE * 4, "px"),
|
|
101
101
|
overflow: '-moz-scrollbars-none',
|
|
@@ -110,7 +110,7 @@ var mobileCategoryListWrapper = css({
|
|
|
110
110
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
111
111
|
var categoryListWrapper = css(mobileCategoryListWrapper, {
|
|
112
112
|
padding: 0,
|
|
113
|
-
marginTop: "var(--ds-space-200,
|
|
113
|
+
marginTop: "var(--ds-space-200, 16px)",
|
|
114
114
|
flexDirection: 'column'
|
|
115
115
|
});
|
|
116
116
|
function StatelessElementBrowser(props) {
|
|
@@ -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
|
|
@@ -62,7 +62,7 @@ export var header = css({
|
|
|
62
62
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
63
63
|
export var content = css({
|
|
64
64
|
padding: "var(--ds-space-100, 8px)",
|
|
65
|
-
background: "var(--ds-surface,
|
|
65
|
+
background: "var(--ds-surface, #FFFFFF)",
|
|
66
66
|
border: "1px solid ".concat("var(--ds-border, #0B120E24)"),
|
|
67
67
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
68
68
|
cursor: 'initial',
|
|
@@ -82,7 +82,7 @@ export var extensionContent = css({
|
|
|
82
82
|
boxSizing: 'border-box',
|
|
83
83
|
paddingTop: "var(--ds-space-100, 8px)",
|
|
84
84
|
paddingBottom: "var(--ds-space-100, 8px)",
|
|
85
|
-
background: "var(--ds-surface,
|
|
85
|
+
background: "var(--ds-surface, #FFFFFF)",
|
|
86
86
|
border: "1px solid ".concat("var(--ds-border, #0B120E24)"),
|
|
87
87
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
88
88
|
cursor: 'initial',
|
|
@@ -19,7 +19,7 @@ export var wrapperStyle = css(wrapperDefault, {
|
|
|
19
19
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
20
20
|
'&.with-children': {
|
|
21
21
|
padding: 0,
|
|
22
|
-
background: "var(--ds-background-neutral-subtle,
|
|
22
|
+
background: "var(--ds-background-neutral-subtle, #00000000)"
|
|
23
23
|
},
|
|
24
24
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
25
25
|
'&.with-hover-border': {
|
|
@@ -51,7 +51,7 @@ var lcmHeaderStyles = css({
|
|
|
51
51
|
},
|
|
52
52
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
53
53
|
'& > .legacy-content-header-text': {
|
|
54
|
-
font: "var(--ds-font-body-small, 12px)",
|
|
54
|
+
font: "var(--ds-font-body-small, normal 400 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
55
55
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
56
56
|
'& span': {
|
|
57
57
|
paddingRight: "var(--ds-space-050, 4px)"
|
|
@@ -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
|
|
@@ -12,7 +12,7 @@ export var mbeExtensionWrapperCSSStyles = css(wrapperDefault, {
|
|
|
12
12
|
marginRight: "var(--ds-space-negative-150, -12px)"
|
|
13
13
|
},
|
|
14
14
|
cursor: 'pointer',
|
|
15
|
-
marginTop: "var(--ds-space-250,
|
|
15
|
+
marginTop: "var(--ds-space-250, 20px)",
|
|
16
16
|
marginBottom: "var(--ds-space-200, 16px)",
|
|
17
17
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
18
18
|
'.extension-title': {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
._11c81a4x{font:var(--ds-font-body-small,9pt)}
|
|
2
1
|
._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
+
._11c8wadc{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
3
3
|
._19it7tl1{border:var(--_98ihdp)}
|
|
4
4
|
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
5
5
|
._2rko14xi{border-radius:var(--ds-radius-small,4px) var(--ds-radius-small,4px) 0 0}
|
|
6
|
-
.
|
|
6
|
+
._n7zl1q32{border-bottom:var(--_1e0q5w0)}
|
|
7
7
|
._154i1n1a{top:-1px}
|
|
8
8
|
._18m915vq{overflow-y:hidden}
|
|
9
9
|
._18u0idpf{margin-left:0}
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
._1reo15vq{overflow-x:hidden}
|
|
15
15
|
._2hwxidpf{margin-right:0}
|
|
16
16
|
._6z24egat{tab-size:4}
|
|
17
|
+
._bfhkhp5a{background-color:var(--ds-surface-raised,#fff)}
|
|
17
18
|
._bfhki8nm{background-color:var(--ds-background-neutral,#0515240f)}
|
|
18
|
-
._bfhkrnwa{background-color:var(--ds-surface-raised,#fffdf6)}
|
|
19
19
|
._bfhkvuon{background-color:var(--ds-surface,#fff)}
|
|
20
20
|
._ca0qu2gc{padding-top:var(--ds-space-100,8px)}
|
|
21
21
|
._ca0qutpp{padding-top:var(--ds-space-150,9pt)}
|
|
@@ -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];
|
|
@@ -44,14 +45,14 @@ export function UnknownMacroPlaceholder(_ref) {
|
|
|
44
45
|
});
|
|
45
46
|
return /*#__PURE__*/React.createElement("section", {
|
|
46
47
|
"aria-label": intl.formatMessage(messages.unknownMacroPlaceholderAriaLabel),
|
|
47
|
-
className: ax(["_19it7tl1 _2rko12b0 _1reo15vq _18m915vq
|
|
48
|
+
className: ax(["_19it7tl1 _2rko12b0 _1reo15vq _18m915vq _bfhkhp5a"]),
|
|
48
49
|
style: {
|
|
49
50
|
"--_98ihdp": ix("1px solid ".concat(neutralBorder))
|
|
50
51
|
}
|
|
51
52
|
}, /*#__PURE__*/React.createElement("div", {
|
|
52
|
-
className: ax(["_2rko14xi
|
|
53
|
+
className: ax(["_2rko14xi _11c8wadc _n7zl1q32 _bfhki8nm _ca0qu2gc _u5f3pxbi _n3td1b66 _19bvpxbi _kqswh2mm _154i1n1a"]),
|
|
53
54
|
style: {
|
|
54
|
-
"--
|
|
55
|
+
"--_1e0q5w0": ix("var(--ds-border-width, 1px)".concat(" solid ", neutralBorder))
|
|
55
56
|
}
|
|
56
57
|
}, headerText), /*#__PURE__*/React.createElement("div", {
|
|
57
58
|
className: ax(["_19pkidpf _2hwxidpf _otyridpf _18u0idpf _bfhkvuon _ca0qutpp _u5f3utpp _n3tdutpp _19bvutpp"])
|
|
@@ -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
|