@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
|
@@ -22,7 +22,6 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
22
22
|
var _react2 = require("@emotion/react");
|
|
23
23
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
24
24
|
var _menu = require("@atlaskit/menu");
|
|
25
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
26
25
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
27
26
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
28
27
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
@@ -64,17 +63,17 @@ var buttonStyles = function buttonStyles(isActive, submenuActive) {
|
|
|
64
63
|
* Hack for item to imitate old dropdown-menu selected styles
|
|
65
64
|
*/
|
|
66
65
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
67
|
-
return (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\tposition: relative;\n\t\t\t\t&::before {\n\t\t\t\t\tdisplay: block;\n\t\t\t\t\theight: 100%;\n\t\t\t\t\twidth: 2px;\n\t\t\t\t\tposition: absolute;\n\t\t\t\t\tleft: 0;\n\t\t\t\t\ttop: 0;\n\t\t\t\t\tbackground: ", ";\n\t\t\t\t\tcontent: '';\n\t\t\t\t}\n\t\t\t\t> span,\n\t\t\t\t> span:hover,\n\t\t\t\t> span:active {\n\t\t\t\t\tbackground: ", ";\n\t\t\t\t\tcolor: ", ";\n\t\t\t\t}\n\t\t\t\t:focus > span[aria-disabled='false'] {\n\t\t\t\t\t", ";\n\t\t\t\t}\n\t\t\t\t:focus-visible,\n\t\t\t\t:focus-visible > span[aria-disabled='false'] {\n\t\t\t\t\toutline: none;\n\t\t\t\t}\n\t\t\t"])), "var(--ds-border-selected,
|
|
66
|
+
return (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\tposition: relative;\n\t\t\t\t&::before {\n\t\t\t\t\tdisplay: block;\n\t\t\t\t\theight: 100%;\n\t\t\t\t\twidth: 2px;\n\t\t\t\t\tposition: absolute;\n\t\t\t\t\tleft: 0;\n\t\t\t\t\ttop: 0;\n\t\t\t\t\tbackground: ", ";\n\t\t\t\t\tcontent: '';\n\t\t\t\t}\n\t\t\t\t> span,\n\t\t\t\t> span:hover,\n\t\t\t\t> span:active {\n\t\t\t\t\tbackground: ", ";\n\t\t\t\t\tcolor: ", ";\n\t\t\t\t}\n\t\t\t\t:focus > span[aria-disabled='false'] {\n\t\t\t\t\t", ";\n\t\t\t\t}\n\t\t\t\t:focus-visible,\n\t\t\t\t:focus-visible > span[aria-disabled='false'] {\n\t\t\t\t\toutline: none;\n\t\t\t\t}\n\t\t\t"])), "var(--ds-border-selected, #1868DB)", "var(--ds-background-selected, #E9F2FE)", "var(--ds-text-selected, #1868DB)", focusedMenuItemStyle);
|
|
68
67
|
}
|
|
69
68
|
|
|
70
69
|
/**
|
|
71
70
|
* Hack for item to imitate old dropdown-menu selected styles
|
|
72
71
|
*/
|
|
73
72
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
74
|
-
return (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t> span,\n\t\t\t> span:hover,\n\t\t\t> span:active {\n\t\t\t\tbackground: ", ";\n\t\t\t\tcolor: ", ";\n\t\t\t}\n\t\t\t:focus > span[aria-disabled='false'] {\n\t\t\t\t", ";\n\t\t\t}\n\t\t\t:focus-visible,\n\t\t\t:focus-visible > span[aria-disabled='false'] {\n\t\t\t\toutline: none;\n\t\t\t}\n\t\t"])), "var(--ds-background-selected,
|
|
73
|
+
return (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t> span,\n\t\t\t> span:hover,\n\t\t\t> span:active {\n\t\t\t\tbackground: ", ";\n\t\t\t\tcolor: ", ";\n\t\t\t}\n\t\t\t:focus > span[aria-disabled='false'] {\n\t\t\t\t", ";\n\t\t\t}\n\t\t\t:focus-visible,\n\t\t\t:focus-visible > span[aria-disabled='false'] {\n\t\t\t\toutline: none;\n\t\t\t}\n\t\t"])), "var(--ds-background-selected, #E9F2FE)", "var(--ds-text-selected, #1868DB)", focusedMenuItemStyle);
|
|
75
74
|
} else {
|
|
76
75
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
77
|
-
return (0, _react2.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t> span:hover[aria-disabled='false'] {\n\t\t\t\tcolor: ", ";\n\t\t\t\tbackground-color: ", ";\n\t\t\t}\n\t\t\t", "\n\t\t\t> span[aria-disabled='true'] {\n\t\t\t\tcolor: ", ";\n\t\t\t}\n\t\t\t:focus > span[aria-disabled='false'] {\n\t\t\t\t", ";\n\t\t\t}\n\t\t\t:focus-visible,\n\t\t\t:focus-visible > span[aria-disabled='false'] {\n\t\t\t\toutline: none;\n\t\t\t}\n\t\t"])), "var(--ds-text, #292A2E)", "var(--ds-background-neutral-subtle-hovered,
|
|
76
|
+
return (0, _react2.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t> span:hover[aria-disabled='false'] {\n\t\t\t\tcolor: ", ";\n\t\t\t\tbackground-color: ", ";\n\t\t\t}\n\t\t\t", "\n\t\t\t> span[aria-disabled='true'] {\n\t\t\t\tcolor: ", ";\n\t\t\t}\n\t\t\t:focus > span[aria-disabled='false'] {\n\t\t\t\t", ";\n\t\t\t}\n\t\t\t:focus-visible,\n\t\t\t:focus-visible > span[aria-disabled='false'] {\n\t\t\t\toutline: none;\n\t\t\t}\n\t\t"])), "var(--ds-text, #292A2E)", "var(--ds-background-neutral-subtle-hovered, #0515240F)", !submenuActive && "\n\t\t\t\t\t> span:active[aria-disabled='false'] {\n\t\t\t\t\t\tbackground-color: ".concat("var(--ds-background-neutral-subtle-pressed, #0B120E24)", ";\n\t\t\t\t\t}"), "var(--ds-text-disabled, #080F214A)", focusedMenuItemStyle); // The default focus-visible style is removed to ensure consistency across browsers
|
|
78
77
|
}
|
|
79
78
|
};
|
|
80
79
|
var DropListWithOutsideClickTargetRef = function DropListWithOutsideClickTargetRef(props) {
|
|
@@ -199,7 +198,9 @@ var DropdownMenuWrapper = exports.default = /*#__PURE__*/function (_PureComponen
|
|
|
199
198
|
position: popupPlacement.join(' '),
|
|
200
199
|
shouldFitContainer: true,
|
|
201
200
|
handleClickOutside: this.handleClose,
|
|
202
|
-
handleEscapeKeydown: handleEscapeKeydown || this.handleCloseAndFocus
|
|
201
|
+
handleEscapeKeydown: handleEscapeKeydown || this.handleCloseAndFocus
|
|
202
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
203
|
+
,
|
|
203
204
|
handleEnterKeydown: function handleEnterKeydown(e) {
|
|
204
205
|
if (!allowEnterDefaultBehavior) {
|
|
205
206
|
e.preventDefault();
|
|
@@ -336,7 +337,9 @@ function DropdownMenuItem(_ref) {
|
|
|
336
337
|
role: shouldUseDefaultRole ? 'button' : (0, _expValEquals.expValEquals)('platform_editor_august_a11y', 'isEnabled', true) ? undefined : 'menuitem',
|
|
337
338
|
iconBefore: item.elemBefore,
|
|
338
339
|
iconAfter: item.elemAfter,
|
|
339
|
-
isDisabled: item.isDisabled
|
|
340
|
+
isDisabled: item.isDisabled
|
|
341
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
342
|
+
,
|
|
340
343
|
onClick: function onClick() {
|
|
341
344
|
return onItemActivated && onItemActivated({
|
|
342
345
|
item: item
|
|
@@ -344,16 +347,22 @@ function DropdownMenuItem(_ref) {
|
|
|
344
347
|
},
|
|
345
348
|
"aria-label": ariaLabel,
|
|
346
349
|
"aria-pressed": shouldUseDefaultRole ? item.isActive : undefined,
|
|
347
|
-
"aria-keyshortcuts": item['aria-keyshortcuts']
|
|
350
|
+
"aria-keyshortcuts": item['aria-keyshortcuts']
|
|
351
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
352
|
+
,
|
|
348
353
|
onMouseDown: function onMouseDown(e) {
|
|
349
354
|
e.preventDefault();
|
|
350
355
|
},
|
|
351
|
-
component: DropdownMenuItemCustomComponent
|
|
356
|
+
component: DropdownMenuItemCustomComponent
|
|
357
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
358
|
+
,
|
|
352
359
|
onMouseEnter: function onMouseEnter() {
|
|
353
360
|
return _onMouseEnter && _onMouseEnter({
|
|
354
361
|
item: item
|
|
355
362
|
});
|
|
356
|
-
}
|
|
363
|
+
}
|
|
364
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
365
|
+
,
|
|
357
366
|
onMouseLeave: function onMouseLeave() {
|
|
358
367
|
return _onMouseLeave && _onMouseLeave({
|
|
359
368
|
item: item
|
|
@@ -380,7 +389,9 @@ function (_ref2) {
|
|
|
380
389
|
|
|
381
390
|
// This context is to handle the tab, Arrow Right/Left key events for dropdown.
|
|
382
391
|
// Default context has the void callbacks for above key events
|
|
383
|
-
return (0, _react2.jsx)(DropdownMenuWrapper
|
|
392
|
+
return (0, _react2.jsx)(DropdownMenuWrapper
|
|
393
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
394
|
+
, (0, _extends2.default)({
|
|
384
395
|
arrowKeyNavigationProviderOptions: _objectSpread(_objectSpread({}, props.arrowKeyNavigationProviderOptions), {}, {
|
|
385
396
|
keyDownHandlerContext: keyDownHandlerContext
|
|
386
397
|
})
|
|
@@ -20,7 +20,7 @@ var _default_1 = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
20
20
|
// Ignored via go/ees007
|
|
21
21
|
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
22
22
|
// TODO: (from codemod) Buttons with "component", "css" or "style" prop can't be automatically migrated with codemods. Please migrate it manually.
|
|
23
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/
|
|
23
|
+
// 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)
|
|
24
24
|
style: {
|
|
25
25
|
alignItems: 'center'
|
|
26
26
|
}
|
|
@@ -368,6 +368,7 @@ export let 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 let ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
|
|
@@ -26,7 +26,9 @@ export const IconCard = ({
|
|
|
26
26
|
label
|
|
27
27
|
}) => {
|
|
28
28
|
return /*#__PURE__*/React.createElement(IconCardGlyph, {
|
|
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',
|
|
@@ -26,7 +26,9 @@ export const IconEmbed = ({
|
|
|
26
26
|
label
|
|
27
27
|
}) => {
|
|
28
28
|
return /*#__PURE__*/React.createElement(IconEmbedGlyph, {
|
|
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',
|
|
@@ -26,7 +26,9 @@ export const IconInline = ({
|
|
|
26
26
|
label
|
|
27
27
|
}) => {
|
|
28
28
|
return /*#__PURE__*/React.createElement(IconInlineGlyph, {
|
|
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',
|
|
@@ -28,7 +28,9 @@ export const IconUrl = ({
|
|
|
28
28
|
label
|
|
29
29
|
}) => {
|
|
30
30
|
return /*#__PURE__*/React.createElement(IconUrlGlyph, {
|
|
31
|
-
"aria-label": label
|
|
31
|
+
"aria-label": label
|
|
32
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
33
|
+
,
|
|
32
34
|
style: {
|
|
33
35
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
34
36
|
width: '24px',
|
|
@@ -10,7 +10,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
10
10
|
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
11
11
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
12
12
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, fireAnalyticsEvent } from '../../analytics';
|
|
13
|
-
import { DEVICE_BREAKPOINT_NUMBERS
|
|
13
|
+
import { DEVICE_BREAKPOINT_NUMBERS } from '../constants';
|
|
14
14
|
import useFocus from '../hooks/use-focus';
|
|
15
15
|
const arrowsKeys = new Set(['ArrowUp', 'ArrowDown']);
|
|
16
16
|
function CategoryList({
|
|
@@ -176,7 +176,7 @@ function CategoryListItem({
|
|
|
176
176
|
}
|
|
177
177
|
const buttonWrapper = css({
|
|
178
178
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
179
|
-
height:
|
|
179
|
+
height: `32px`,
|
|
180
180
|
margin: `${"var(--ds-space-050, 4px)"} ${"var(--ds-space-050, 4px)"} ${"var(--ds-space-050, 4px)"} 0`,
|
|
181
181
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
182
182
|
[`@media (min-width: ${DEVICE_BREAKPOINT_NUMBERS.medium}px)`]: {
|
|
@@ -35,7 +35,7 @@ export const itemIcon = css({
|
|
|
35
35
|
width: `${ICON_WIDTH}px`,
|
|
36
36
|
height: `${ICON_HEIGHT}px`,
|
|
37
37
|
overflow: 'hidden',
|
|
38
|
-
border: `${"var(--ds-border-width, 1px)"} solid ${"var(--ds-border,
|
|
38
|
+
border: `${"var(--ds-border-width, 1px)"} solid ${"var(--ds-border, #0B120E24)"}`,
|
|
39
39
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
40
40
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
41
41
|
boxSizing: 'border-box',
|
|
@@ -82,6 +82,7 @@ function ElementList({
|
|
|
82
82
|
setColumnCount(getColumnCount(containerWidth));
|
|
83
83
|
const updatedScrollbarWidth = getScrollbarWidth();
|
|
84
84
|
if (updatedScrollbarWidth > 0) {
|
|
85
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
|
|
85
86
|
setScrollbarWidth(updatedScrollbarWidth);
|
|
86
87
|
}
|
|
87
88
|
}
|
|
@@ -506,8 +507,7 @@ const elementItemsWrapper = css({
|
|
|
506
507
|
padding: "var(--ds-space-025, 2px)",
|
|
507
508
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
508
509
|
'.ReactVirtualized__Grid': {
|
|
509
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
510
|
-
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
|
|
510
|
+
// 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
|
|
511
511
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
512
512
|
outline: 'none',
|
|
513
513
|
'&:focus': {
|
|
@@ -52,7 +52,7 @@ export default function EmptyState({
|
|
|
52
52
|
}
|
|
53
53
|
const emptyStateHeading = css({
|
|
54
54
|
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)",
|
|
55
|
-
color: "var(--ds-text,
|
|
55
|
+
color: "var(--ds-text, #292A2E)",
|
|
56
56
|
marginTop: "var(--ds-space-300, 24px)"
|
|
57
57
|
});
|
|
58
58
|
const emptyStateSubHeading = css({
|
|
@@ -156,7 +156,7 @@ const wrapperInline = css({
|
|
|
156
156
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
157
157
|
'& > [data-ds--text-field--container]': {
|
|
158
158
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
159
|
-
height:
|
|
159
|
+
height: `40px`,
|
|
160
160
|
flex: 'none',
|
|
161
161
|
overflow: 'revert'
|
|
162
162
|
}
|
|
@@ -94,7 +94,7 @@ const searchContainer = css({
|
|
|
94
94
|
const mobileCategoryListWrapper = css({
|
|
95
95
|
display: 'flex',
|
|
96
96
|
overflowX: 'auto',
|
|
97
|
-
padding: `${"var(--ds-space-200,
|
|
97
|
+
padding: `${"var(--ds-space-200, 16px)"} 0 ${"var(--ds-space-200, 16px)"} 0`,
|
|
98
98
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
99
99
|
minHeight: `${GRID_SIZE * 4}px`,
|
|
100
100
|
overflow: '-moz-scrollbars-none',
|
|
@@ -109,7 +109,7 @@ const mobileCategoryListWrapper = css({
|
|
|
109
109
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
110
110
|
const categoryListWrapper = css(mobileCategoryListWrapper, {
|
|
111
111
|
padding: 0,
|
|
112
|
-
marginTop: "var(--ds-space-200,
|
|
112
|
+
marginTop: "var(--ds-space-200, 16px)",
|
|
113
113
|
flexDirection: 'column'
|
|
114
114
|
});
|
|
115
115
|
function StatelessElementBrowser(props) {
|
|
@@ -148,8 +148,12 @@ function ExtensionWithPluginState(props) {
|
|
|
148
148
|
const extensionContentStyles = expValEquals('platform_editor_extension_styles', 'isEnabled', true) ? extensionContent : content;
|
|
149
149
|
return jsx(Fragment, null, expValEquals('cc_editor_lcm_readonly_initial', 'isEnabled', true) ? null : showLegacyContentHeader && jsx(LegacyContentHeader, {
|
|
150
150
|
isNodeSelected: isNodeSelected,
|
|
151
|
-
isNodeHovered: isNodeHovered
|
|
152
|
-
|
|
151
|
+
isNodeHovered: isNodeHovered
|
|
152
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
153
|
+
,
|
|
154
|
+
onMouseEnter: () => handleMouseEvent(true)
|
|
155
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
156
|
+
,
|
|
153
157
|
onMouseLeave: () => handleMouseEvent(false)
|
|
154
158
|
}), !showLegacyContentHeader && showMacroInteractionDesignUpdates && !isLivePageViewMode && jsx(ExtensionLozenge, {
|
|
155
159
|
isNodeSelected: isNodeSelected,
|
|
@@ -244,7 +248,9 @@ const Extension = props => {
|
|
|
244
248
|
});
|
|
245
249
|
|
|
246
250
|
// Ignored via go/ees005
|
|
247
|
-
return jsx(ExtensionWithPluginState
|
|
251
|
+
return jsx(ExtensionWithPluginState
|
|
252
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
253
|
+
, _extends({
|
|
248
254
|
widthState: {
|
|
249
255
|
width: width !== null && width !== void 0 ? width : 0,
|
|
250
256
|
lineLength
|
|
@@ -62,7 +62,7 @@ export const header = css({
|
|
|
62
62
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
63
63
|
export const 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 ${"var(--ds-border, #0B120E24)"}`,
|
|
67
67
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
68
68
|
cursor: 'initial',
|
|
@@ -82,7 +82,7 @@ export const 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 ${"var(--ds-border, #0B120E24)"}`,
|
|
87
87
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
88
88
|
cursor: 'initial',
|
|
@@ -19,7 +19,7 @@ export const 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 @@ const 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 const ExtensionLabel = ({
|
|
|
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
|
}
|
|
@@ -64,7 +64,9 @@ export class Extension extends Component {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
render() {
|
|
67
|
-
return /*#__PURE__*/React.createElement(WithProviders
|
|
67
|
+
return /*#__PURE__*/React.createElement(WithProviders
|
|
68
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
69
|
+
, {
|
|
68
70
|
providers: ['extensionProvider'],
|
|
69
71
|
providerFactory: this.providerFactory,
|
|
70
72
|
renderNode: this.renderWithProvider
|
|
@@ -12,7 +12,7 @@ export const 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
|
._19it1tra{border:1px solid var(--ds-background-neutral,#0515240f)}
|
|
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
|
+
._n7zlbjo2{border-bottom:var(--ds-border-width,1px) solid var(--ds-background-neutral,#0515240f)}
|
|
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({
|
|
|
27
27
|
const value = String((_param$value = param === null || param === void 0 ? void 0 : param.value) !== null && _param$value !== void 0 ? _param$value : '').trim();
|
|
28
28
|
return `${key} = ${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
|
const visibleParams = Object.entries(macroParams).filter(([key]) => !key.startsWith('_')).map(([key, param]) => formatParam(key, param)).join(' | ');
|
|
31
32
|
const headerText = visibleParams ? `${intl.formatMessage(messages.unknownMacroHeader, {
|
|
32
33
|
macroTitle
|
|
@@ -35,9 +36,9 @@ export function UnknownMacroPlaceholder({
|
|
|
35
36
|
});
|
|
36
37
|
return /*#__PURE__*/React.createElement("section", {
|
|
37
38
|
"aria-label": intl.formatMessage(messages.unknownMacroPlaceholderAriaLabel),
|
|
38
|
-
className: ax(["_19it1tra _2rko12b0 _1reo15vq _18m915vq
|
|
39
|
+
className: ax(["_19it1tra _2rko12b0 _1reo15vq _18m915vq _bfhkhp5a"])
|
|
39
40
|
}, /*#__PURE__*/React.createElement("div", {
|
|
40
|
-
className: ax(["_2rko14xi
|
|
41
|
+
className: ax(["_2rko14xi _11c8wadc _n7zlbjo2 _bfhki8nm _ca0qu2gc _u5f3pxbi _n3td1b66 _19bvpxbi _kqswh2mm _154i1n1a"])
|
|
41
42
|
}, headerText), /*#__PURE__*/React.createElement("div", {
|
|
42
43
|
className: ax(["_19pkidpf _2hwxidpf _otyridpf _18u0idpf _bfhkvuon _ca0qutpp _u5f3utpp _n3tdutpp _19bvutpp"])
|
|
43
44
|
}, /*#__PURE__*/React.createElement("pre", {
|
|
@@ -270,6 +270,7 @@ export function getAriaKeyshortcuts(keymap) {
|
|
|
270
270
|
case 'arrowdown':
|
|
271
271
|
return 'Arrow Down';
|
|
272
272
|
default:
|
|
273
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
|
|
273
274
|
return modifier.split('').join(' ');
|
|
274
275
|
}
|
|
275
276
|
}).join('+');
|
|
@@ -63,6 +63,7 @@ const Dropdown = ({
|
|
|
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: ({
|
|
67
68
|
onClick,
|
|
68
69
|
triggerRef,
|
|
@@ -75,7 +76,9 @@ const Dropdown = ({
|
|
|
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: e => {
|
|
80
83
|
onClick === null || onClick === void 0 ? void 0 : onClick(e);
|
|
81
84
|
fireLinkClickEvent();
|
|
@@ -768,11 +768,15 @@ export class HyperlinkLinkAddToolbar extends PureComponent {
|
|
|
768
768
|
ariaActiveDescendant: ariaActiveDescendant,
|
|
769
769
|
ariaControls: linkSearchListId,
|
|
770
770
|
ariaAutoComplete: true,
|
|
771
|
-
describedById: screenReaderDescriptionId
|
|
771
|
+
describedById: screenReaderDescriptionId
|
|
772
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
773
|
+
,
|
|
772
774
|
ref: ele => this.urlInputContainer = ele,
|
|
773
775
|
testId: 'link-url',
|
|
774
776
|
onSubmit: this.handleSubmit,
|
|
775
|
-
onChange: this.updateInput
|
|
777
|
+
onChange: this.updateInput
|
|
778
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
779
|
+
,
|
|
776
780
|
autoFocus: {
|
|
777
781
|
preventScroll: true
|
|
778
782
|
},
|
|
@@ -795,7 +799,9 @@ export class HyperlinkLinkAddToolbar extends PureComponent {
|
|
|
795
799
|
css: [inputLabel, textLabelMargin]
|
|
796
800
|
}, formatMessage(messages.textVisibleLabel)), jsx("div", {
|
|
797
801
|
css: [inputWrapper, inputWrapperPosition]
|
|
798
|
-
}, jsx(PanelTextInput
|
|
802
|
+
}, jsx(PanelTextInput
|
|
803
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
804
|
+
, {
|
|
799
805
|
ref: ele => this.displayTextInputContainer = ele,
|
|
800
806
|
testId: 'link-text',
|
|
801
807
|
onChange: this.updateTextInput,
|
|
@@ -837,14 +843,17 @@ export class HyperlinkLinkAddToolbar extends PureComponent {
|
|
|
837
843
|
onMouseLeave: this.handleMouseLeaveResultItem
|
|
838
844
|
})));
|
|
839
845
|
if (expValEquals('platform_editor_a11y_escape_link_dialog', 'isEnabled', true)) {
|
|
840
|
-
return
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
846
|
+
return (
|
|
847
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
848
|
+
jsx(FocusLock, {
|
|
849
|
+
returnFocus: {
|
|
850
|
+
preventScroll: true
|
|
851
|
+
},
|
|
852
|
+
focusOptions: {
|
|
853
|
+
preventScroll: true
|
|
854
|
+
}
|
|
855
|
+
}, hyperlinkElement)
|
|
856
|
+
);
|
|
848
857
|
}
|
|
849
858
|
return hyperlinkElement;
|
|
850
859
|
}
|
|
@@ -35,9 +35,13 @@ export function HyperlinkAddToolbar({
|
|
|
35
35
|
timesViewed,
|
|
36
36
|
isOffline
|
|
37
37
|
}) {
|
|
38
|
-
return /*#__PURE__*/React.createElement(WithProviders
|
|
38
|
+
return /*#__PURE__*/React.createElement(WithProviders
|
|
39
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
40
|
+
, {
|
|
39
41
|
providers: ['activityProvider', 'searchProvider'],
|
|
40
|
-
providerFactory: providerFactory
|
|
42
|
+
providerFactory: providerFactory
|
|
43
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
44
|
+
,
|
|
41
45
|
renderNode: ({
|
|
42
46
|
activityProvider,
|
|
43
47
|
searchProvider
|
|
@@ -50,14 +50,18 @@ const LinkSearchList = ({
|
|
|
50
50
|
}, items.map((item, index) => jsx(ForwardedLinkSearchListItemNextWithIntl, {
|
|
51
51
|
id: `link-search-list-item-${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: () => onFocus === null || onFocus === void 0 ? void 0 : onFocus(index),
|
|
55
57
|
onKeyDown: onKeyDown,
|
|
56
58
|
onMouseMove: onMouseMove,
|
|
57
59
|
onMouseEnter: onMouseEnter,
|
|
58
60
|
onMouseLeave: onMouseLeave,
|
|
59
61
|
onSelect: onSelect,
|
|
60
|
-
key: item.objectId
|
|
62
|
+
key: item.objectId
|
|
63
|
+
// eslint-disable-next-line @atlassian/perf-linting/detect-unnecessary-rerenders, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
64
|
+
,
|
|
61
65
|
ref: el => listItemRefCallback === null || listItemRefCallback === void 0 ? void 0 : listItemRefCallback(el, item.objectId)
|
|
62
66
|
})));
|
|
63
67
|
}
|
|
@@ -10,7 +10,7 @@ export default function withActivityProvider(WrappedComponent) {
|
|
|
10
10
|
super(...args);
|
|
11
11
|
_defineProperty(this, "renderNode", providers => {
|
|
12
12
|
const {
|
|
13
|
-
providerFactory,
|
|
13
|
+
providerFactory: _providerFactory,
|
|
14
14
|
...props
|
|
15
15
|
} = this.props;
|
|
16
16
|
const {
|
|
@@ -28,7 +28,9 @@ export default function withActivityProvider(WrappedComponent) {
|
|
|
28
28
|
const {
|
|
29
29
|
providerFactory
|
|
30
30
|
} = this.props;
|
|
31
|
-
return /*#__PURE__*/React.createElement(WithProviders
|
|
31
|
+
return /*#__PURE__*/React.createElement(WithProviders
|
|
32
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
33
|
+
, {
|
|
32
34
|
providers: ['activityProvider'],
|
|
33
35
|
providerFactory: providerFactory,
|
|
34
36
|
renderNode: this.renderNode
|
|
@@ -19,8 +19,8 @@ const SMART_TO_ASCII = {
|
|
|
19
19
|
const FIND_SMART_CHAR = new RegExp(`[${Object.keys(SMART_TO_ASCII).join('')}]`, 'g');
|
|
20
20
|
export function filterChildrenBetween(doc, from, to, predicate) {
|
|
21
21
|
const results = [];
|
|
22
|
-
doc.nodesBetween(from, to, (node, pos,
|
|
23
|
-
if (predicate(node, pos,
|
|
22
|
+
doc.nodesBetween(from, to, (node, pos, _parent) => {
|
|
23
|
+
if (predicate(node, pos, _parent)) {
|
|
24
24
|
results.push({
|
|
25
25
|
node,
|
|
26
26
|
pos
|
|
@@ -43,7 +43,7 @@ export function transformNonTextNodesToText(from, to, tr) {
|
|
|
43
43
|
inlineCard: inlineCardNodeType
|
|
44
44
|
} = schema.nodes;
|
|
45
45
|
const nodesToChange = [];
|
|
46
|
-
doc.nodesBetween(from, to, (node, pos,
|
|
46
|
+
doc.nodesBetween(from, to, (node, pos, _parent) => {
|
|
47
47
|
if ([mentionNodeType, textNodeType, emojiNodeType, inlineCardNodeType].includes(node.type)) {
|
|
48
48
|
nodesToChange.push({
|
|
49
49
|
node,
|
|
@@ -67,6 +67,8 @@ export function transformNonTextNodesToText(from, to, tr) {
|
|
|
67
67
|
const startPositionInSelection = Math.max(pos, from);
|
|
68
68
|
const endPositionInSelection = Math.min(pos + node.nodeSize, to);
|
|
69
69
|
const textForReplacing = doc.textBetween(startPositionInSelection, endPositionInSelection);
|
|
70
|
+
|
|
71
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
|
|
70
72
|
const newText = textForReplacing.replace(FIND_SMART_CHAR, match => {
|
|
71
73
|
var _SMART_TO_ASCII$match;
|
|
72
74
|
return (_SMART_TO_ASCII$match = SMART_TO_ASCII[match]) !== null && _SMART_TO_ASCII$match !== void 0 ? _SMART_TO_ASCII$match : match;
|
|
@@ -52,7 +52,9 @@ export const InlineImageCard = ({
|
|
|
52
52
|
return jsx(Fragment, null, jsx(MediaImage, {
|
|
53
53
|
dataURI: preview.dataURI,
|
|
54
54
|
alt: alt,
|
|
55
|
-
previewOrientation: preview.orientation
|
|
55
|
+
previewOrientation: preview.orientation
|
|
56
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
57
|
+
,
|
|
56
58
|
onImageLoad: () => {
|
|
57
59
|
onImageLoad(preview);
|
|
58
60
|
},
|
|
@@ -121,7 +121,9 @@ export const MediaInlineImageCardInternal = ({
|
|
|
121
121
|
value: mediaClient
|
|
122
122
|
}, jsx(InlineImageCard, {
|
|
123
123
|
dimensions: dimensions,
|
|
124
|
-
identifier: identifier
|
|
124
|
+
identifier: identifier
|
|
125
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
126
|
+
,
|
|
125
127
|
renderError: () => jsx(InlineImageCardErrorView, {
|
|
126
128
|
message: formatMessage(messages.unableToLoadContent)
|
|
127
129
|
}),
|
|
@@ -189,7 +191,9 @@ export const MediaInlineImageCardInternal = ({
|
|
|
189
191
|
const mediaViewer = useMemo(() => {
|
|
190
192
|
if (isMediaViewerVisible && mediaClient !== null && mediaClient !== void 0 && mediaClient.mediaClientConfig) {
|
|
191
193
|
return /*#__PURE__*/ReactDOM.createPortal(jsx(MediaViewer, {
|
|
192
|
-
collectionName: identifier.collectionName || ''
|
|
194
|
+
collectionName: identifier.collectionName || ''
|
|
195
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
196
|
+
,
|
|
193
197
|
items: [identifier],
|
|
194
198
|
mediaClientConfig: mediaClient === null || mediaClient === void 0 ? void 0 : mediaClient.mediaClientConfig,
|
|
195
199
|
selectedItem: identifier,
|
|
@@ -64,11 +64,11 @@ export const CommentBadge = /*#__PURE__*/forwardRef(({
|
|
|
64
64
|
const colourToken = useMemo(() => {
|
|
65
65
|
switch (status) {
|
|
66
66
|
case 'active':
|
|
67
|
-
return "var(--ds-background-accent-yellow-subtlest-pressed, #
|
|
67
|
+
return "var(--ds-background-accent-yellow-subtlest-pressed, #EFDD4E)";
|
|
68
68
|
case 'entered':
|
|
69
|
-
return "var(--ds-background-accent-yellow-subtlest-hovered, #
|
|
69
|
+
return "var(--ds-background-accent-yellow-subtlest-hovered, #F5E989)";
|
|
70
70
|
default:
|
|
71
|
-
return "var(--ds-background-accent-yellow-subtlest, #
|
|
71
|
+
return "var(--ds-background-accent-yellow-subtlest, #FEF7C8)";
|
|
72
72
|
}
|
|
73
73
|
}, [status]);
|
|
74
74
|
return jsx("div", {
|
|
@@ -83,7 +83,9 @@ export const CommentBadge = /*#__PURE__*/forwardRef(({
|
|
|
83
83
|
}, jsx(Tooltip, {
|
|
84
84
|
position: "top",
|
|
85
85
|
content: title
|
|
86
|
-
}, jsx(CustomThemeButton
|
|
86
|
+
}, jsx(CustomThemeButton
|
|
87
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
88
|
+
, {
|
|
87
89
|
style: {
|
|
88
90
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
89
91
|
height: badgeDimensions,
|