@atlaskit/editor-common 81.1.0 → 81.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/cjs/element-browser/components/ElementList/ElementList.js +26 -18
  3. package/dist/cjs/element-browser/components/ElementSearch.js +6 -2
  4. package/dist/cjs/extensibility/Extension/Extension/index.js +15 -5
  5. package/dist/cjs/extensibility/Extension/InlineExtension/index.js +3 -1
  6. package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +4 -1
  7. package/dist/cjs/extensibility/ExtensionNodeWrapper.js +7 -4
  8. package/dist/cjs/extensibility/MultiBodiedExtension/index.js +22 -10
  9. package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +3 -1
  10. package/dist/cjs/link/LinkSearch/LinkSearchListItem.js +1 -0
  11. package/dist/cjs/media-inline/inline-image-wrapper.js +4 -1
  12. package/dist/cjs/media-single/CommentBadge.js +5 -0
  13. package/dist/cjs/mention.js +8 -1
  14. package/dist/cjs/messages/card.js +5 -0
  15. package/dist/cjs/monitoring/error.js +1 -1
  16. package/dist/cjs/quick-insert/assets/date.js +1 -0
  17. package/dist/cjs/react-node-view/getInlineNodeViewProducer.js +6 -2
  18. package/dist/cjs/resizer/Resizer.js +14 -3
  19. package/dist/cjs/styles/shared/background-color.js +13 -8
  20. package/dist/cjs/table/SortingIcon.js +6 -2
  21. package/dist/cjs/ui/Announcer/announcer.js +1 -0
  22. package/dist/cjs/ui/DropList/index.js +1 -1
  23. package/dist/cjs/ui/FloatingToolbar/Button.js +3 -1
  24. package/dist/cjs/ui/FloatingToolbar/Separator.js +2 -0
  25. package/dist/cjs/ui/Layer/index.js +4 -0
  26. package/dist/cjs/ui/MediaSingle/index.js +3 -1
  27. package/dist/cjs/ui/MediaSingle/styled.js +3 -0
  28. package/dist/cjs/ui/Popup/index.js +1 -0
  29. package/dist/cjs/ui/ResizerLegacy/index.js +3 -1
  30. package/dist/cjs/ui/UnsupportedBlock/index.js +18 -15
  31. package/dist/cjs/ui/WidthProvider/index.js +12 -9
  32. package/dist/cjs/ui-color/ColorPalette/Color/index.js +3 -1
  33. package/dist/cjs/ui-color/ColorPalette/index.js +3 -1
  34. package/dist/cjs/ui-menu/ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider/index.js +8 -4
  35. package/dist/cjs/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js +1 -0
  36. package/dist/cjs/ui-menu/DropdownMenu/index.js +1 -0
  37. package/dist/cjs/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +3 -1
  38. package/dist/cjs/ui-menu/ToolbarButton/index.js +3 -1
  39. package/dist/cjs/ui-menu/ToolbarButton/styles.js +1 -0
  40. package/dist/cjs/utils/validator.js +1 -1
  41. package/dist/es2019/element-browser/components/ElementList/ElementList.js +10 -3
  42. package/dist/es2019/element-browser/components/ElementSearch.js +6 -2
  43. package/dist/es2019/extensibility/Extension/Extension/index.js +15 -5
  44. package/dist/es2019/extensibility/Extension/InlineExtension/index.js +3 -1
  45. package/dist/es2019/extensibility/Extension/Lozenge/ExtensionLabel.js +4 -1
  46. package/dist/es2019/extensibility/ExtensionNodeWrapper.js +7 -4
  47. package/dist/es2019/extensibility/MultiBodiedExtension/index.js +22 -10
  48. package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +3 -1
  49. package/dist/es2019/link/LinkSearch/LinkSearchListItem.js +1 -0
  50. package/dist/es2019/media-inline/inline-image-wrapper.js +4 -1
  51. package/dist/es2019/media-single/CommentBadge.js +5 -0
  52. package/dist/es2019/mention.js +2 -1
  53. package/dist/es2019/messages/card.js +5 -0
  54. package/dist/es2019/monitoring/error.js +1 -1
  55. package/dist/es2019/quick-insert/assets/date.js +1 -0
  56. package/dist/es2019/react-node-view/getInlineNodeViewProducer.js +6 -2
  57. package/dist/es2019/resizer/Resizer.js +14 -3
  58. package/dist/es2019/styles/shared/background-color.js +4 -1
  59. package/dist/es2019/table/SortingIcon.js +6 -2
  60. package/dist/es2019/ui/Announcer/announcer.js +1 -0
  61. package/dist/es2019/ui/DropList/index.js +1 -1
  62. package/dist/es2019/ui/FloatingToolbar/Button.js +3 -1
  63. package/dist/es2019/ui/FloatingToolbar/Separator.js +2 -0
  64. package/dist/es2019/ui/Layer/index.js +5 -0
  65. package/dist/es2019/ui/MediaSingle/index.js +3 -1
  66. package/dist/es2019/ui/MediaSingle/styled.js +3 -0
  67. package/dist/es2019/ui/Popup/index.js +3 -0
  68. package/dist/es2019/ui/ResizerLegacy/index.js +3 -1
  69. package/dist/es2019/ui/UnsupportedBlock/index.js +18 -15
  70. package/dist/es2019/ui/WidthProvider/index.js +12 -9
  71. package/dist/es2019/ui-color/ColorPalette/Color/index.js +3 -1
  72. package/dist/es2019/ui-color/ColorPalette/index.js +3 -1
  73. package/dist/es2019/ui-menu/ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider/index.js +8 -4
  74. package/dist/es2019/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js +1 -0
  75. package/dist/es2019/ui-menu/DropdownMenu/index.js +1 -0
  76. package/dist/es2019/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +3 -1
  77. package/dist/es2019/ui-menu/ToolbarButton/index.js +3 -1
  78. package/dist/es2019/ui-menu/ToolbarButton/styles.js +1 -0
  79. package/dist/es2019/utils/validator.js +1 -1
  80. package/dist/esm/element-browser/components/ElementList/ElementList.js +26 -18
  81. package/dist/esm/element-browser/components/ElementSearch.js +6 -2
  82. package/dist/esm/extensibility/Extension/Extension/index.js +15 -5
  83. package/dist/esm/extensibility/Extension/InlineExtension/index.js +3 -1
  84. package/dist/esm/extensibility/Extension/Lozenge/ExtensionLabel.js +4 -1
  85. package/dist/esm/extensibility/ExtensionNodeWrapper.js +7 -4
  86. package/dist/esm/extensibility/MultiBodiedExtension/index.js +22 -10
  87. package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +3 -1
  88. package/dist/esm/link/LinkSearch/LinkSearchListItem.js +1 -0
  89. package/dist/esm/media-inline/inline-image-wrapper.js +4 -1
  90. package/dist/esm/media-single/CommentBadge.js +5 -0
  91. package/dist/esm/mention.js +2 -1
  92. package/dist/esm/messages/card.js +5 -0
  93. package/dist/esm/monitoring/error.js +1 -1
  94. package/dist/esm/quick-insert/assets/date.js +1 -0
  95. package/dist/esm/react-node-view/getInlineNodeViewProducer.js +6 -2
  96. package/dist/esm/resizer/Resizer.js +14 -3
  97. package/dist/esm/styles/shared/background-color.js +13 -8
  98. package/dist/esm/table/SortingIcon.js +6 -2
  99. package/dist/esm/ui/Announcer/announcer.js +1 -0
  100. package/dist/esm/ui/DropList/index.js +1 -1
  101. package/dist/esm/ui/FloatingToolbar/Button.js +3 -1
  102. package/dist/esm/ui/FloatingToolbar/Separator.js +2 -0
  103. package/dist/esm/ui/Layer/index.js +4 -0
  104. package/dist/esm/ui/MediaSingle/index.js +3 -1
  105. package/dist/esm/ui/MediaSingle/styled.js +3 -0
  106. package/dist/esm/ui/Popup/index.js +1 -0
  107. package/dist/esm/ui/ResizerLegacy/index.js +3 -1
  108. package/dist/esm/ui/UnsupportedBlock/index.js +18 -15
  109. package/dist/esm/ui/WidthProvider/index.js +12 -9
  110. package/dist/esm/ui-color/ColorPalette/Color/index.js +3 -1
  111. package/dist/esm/ui-color/ColorPalette/index.js +3 -1
  112. package/dist/esm/ui-menu/ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider/index.js +8 -4
  113. package/dist/esm/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js +1 -0
  114. package/dist/esm/ui-menu/DropdownMenu/index.js +1 -0
  115. package/dist/esm/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +3 -1
  116. package/dist/esm/ui-menu/ToolbarButton/index.js +3 -1
  117. package/dist/esm/ui-menu/ToolbarButton/styles.js +1 -0
  118. package/dist/esm/utils/validator.js +1 -1
  119. package/dist/types/analytics/index.d.ts +1 -1
  120. package/dist/types/mention.d.ts +1 -0
  121. package/dist/types/messages/card.d.ts +5 -0
  122. package/dist/types/styles/shared/background-color.d.ts +1 -1
  123. package/dist/types-ts4.5/analytics/index.d.ts +1 -1
  124. package/dist/types-ts4.5/mention.d.ts +1 -0
  125. package/dist/types-ts4.5/messages/card.d.ts +5 -0
  126. package/dist/types-ts4.5/styles/shared/background-color.d.ts +1 -1
  127. package/package.json +4 -4
@@ -53,20 +53,23 @@ var UnsupportedBlockNode = function UnsupportedBlockNode(_ref) {
53
53
  var tooltipOnShowHandler = (0, _react.useCallback)(function () {
54
54
  return dispatchAnalyticsEvent && (0, _trackUnsupportedContent.trackUnsupportedContentTooltipDisplayedFor)(dispatchAnalyticsEvent, _analytics.ACTION_SUBJECT_ID.ON_UNSUPPORTED_BLOCK, originalNodeType);
55
55
  }, [dispatchAnalyticsEvent, originalNodeType]);
56
- return (0, _react2.jsx)("div", {
57
- css: blockNodeStyle,
58
- className: "unsupported"
59
- }, message, (0, _react2.jsx)(_tooltip.default, {
60
- content: tooltipContent,
61
- hideTooltipOnClick: false,
62
- position: "bottom",
63
- onShow: tooltipOnShowHandler,
64
- strategy: "absolute"
65
- }, (0, _react2.jsx)("span", {
66
- style: style
67
- }, (0, _react2.jsx)(_questionCircle.default, {
68
- label: "?",
69
- size: "small"
70
- }))));
56
+ return (
57
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
58
+ (0, _react2.jsx)("div", {
59
+ css: blockNodeStyle,
60
+ className: "unsupported"
61
+ }, message, (0, _react2.jsx)(_tooltip.default, {
62
+ content: tooltipContent,
63
+ hideTooltipOnClick: false,
64
+ position: "bottom",
65
+ onShow: tooltipOnShowHandler,
66
+ strategy: "absolute"
67
+ }, (0, _react2.jsx)("span", {
68
+ style: style
69
+ }, (0, _react2.jsx)(_questionCircle.default, {
70
+ label: "?",
71
+ size: "small"
72
+ }))))
73
+ );
71
74
  };
72
75
  var _default = exports.default = (0, _reactIntlNext.injectIntl)(UnsupportedBlockNode);
@@ -64,13 +64,16 @@ var WidthProvider = exports.WidthProvider = function WidthProvider(_ref) {
64
64
  setWidth(nextWidth);
65
65
  });
66
66
  var skipWidthDetection = shouldCheckExistingValue && existingContextValue.width > 0;
67
- return (0, _react2.jsx)("div", {
68
- css: styles,
69
- className: className
70
- }, !skipWidthDetection && (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(_widthDetector.WidthObserver, {
71
- setWidth: updateWidth,
72
- offscreen: true
73
- }), (0, _react2.jsx)(Provider, {
74
- value: providerValue
75
- }, children)), skipWidthDetection && children);
67
+ return (
68
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
69
+ (0, _react2.jsx)("div", {
70
+ css: styles,
71
+ className: className
72
+ }, !skipWidthDetection && (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(_widthDetector.WidthObserver, {
73
+ setWidth: updateWidth,
74
+ offscreen: true
75
+ }), (0, _react2.jsx)(Provider, {
76
+ value: providerValue
77
+ }, children)), skipWidthDetection && children)
78
+ );
76
79
  };
@@ -72,7 +72,9 @@ var Color = /*#__PURE__*/function (_PureComponent) {
72
72
  "aria-checked": isSelected,
73
73
  onClick: this.onClick,
74
74
  onMouseDown: this.onMouseDown,
75
- tabIndex: tabIndex,
75
+ tabIndex: tabIndex
76
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
77
+ ,
76
78
  className: "".concat(isSelected ? 'selected' : ''),
77
79
  style: {
78
80
  backgroundColor: colorStyle || 'transparent',
@@ -62,7 +62,9 @@ var ColorPalette = function ColorPalette(props) {
62
62
  }, [palette, cols]);
63
63
  return (0, _react2.jsx)(_react.default.Fragment, null, colorsPerRow.map(function (row) {
64
64
  return (0, _react2.jsx)("div", {
65
- css: _styles.colorPaletteWrapper,
65
+ css: _styles.colorPaletteWrapper
66
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
67
+ ,
66
68
  className: className,
67
69
  key: "row-first-color-".concat(row[0].value),
68
70
  role: "radiogroup"
@@ -128,10 +128,14 @@ var ColorPaletteArrowKeyNavigationProvider = exports.ColorPaletteArrowKeyNavigat
128
128
  listenerTargetElement && listenerTargetElement.removeEventListener('keydown', handleKeyDown);
129
129
  };
130
130
  }, [currentSelectedColumnIndex, isOpenedByKeyboard, isPopupPositioned, wrapperRef, handleClose, closeOnTab, ignoreEscapeKey, listenerTargetElement]);
131
- return /*#__PURE__*/_react.default.createElement("div", {
132
- className: "custom-key-handler-wrapper",
133
- ref: wrapperRef
134
- }, children);
131
+ return (
132
+ /*#__PURE__*/
133
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
134
+ _react.default.createElement("div", {
135
+ className: "custom-key-handler-wrapper",
136
+ ref: wrapperRef
137
+ }, children)
138
+ );
135
139
  };
136
140
  function getColorSwatchesRows(rootNode) {
137
141
  if (!rootNode) {
@@ -193,6 +193,7 @@ var MenuArrowKeyNavigationProvider = exports.MenuArrowKeyNavigationProvider = fu
193
193
  };
194
194
  }, [currentSelectedItemIndex, wrapperRef, handleClose, disableArrowKeyNavigation, keyDownHandlerContext, closeOnTab, onSelection, incrementIndex, decrementIndex, listenerTargetElement]);
195
195
  return /*#__PURE__*/_react.default.createElement("div", {
196
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
196
197
  className: "menu-key-handler-wrapper custom-key-handler-wrapper",
197
198
  ref: wrapperRef
198
199
  }, children);
@@ -252,6 +252,7 @@ var DropdownMenuItemCustomComponent = /*#__PURE__*/_react.default.forwardRef(fun
252
252
  // The current implementation unfortunately is very brittle. Design System Team will
253
253
  // be prioritizing official support for accessible nested menus that we want you to move
254
254
  // to in the future.
255
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
255
256
  position: 'static'
256
257
  }
257
258
  }), children);
@@ -218,7 +218,9 @@ var ToolbarArrowKeyNavigationProvider = exports.ToolbarArrowKeyNavigationProvide
218
218
  };
219
219
  }, [selectedItemIndex, wrapperRef, editorView, disableArrowKeyNavigation, handleEscape, childComponentSelector, incrementIndex, decrementIndex, isShortcutToFocusToolbar, editorAppearance, useStickyToolbar]);
220
220
  return (0, _react2.jsx)("div", {
221
- css: editorAppearance === 'comment' && centeredToolbarContainer,
221
+ css: editorAppearance === 'comment' && centeredToolbarContainer
222
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
223
+ ,
222
224
  className: "custom-key-handler-wrapper",
223
225
  ref: wrapperRef,
224
226
  role: "toolbar",
@@ -77,7 +77,9 @@ var ToolbarButton = /*#__PURE__*/_react.default.forwardRef(function (props, ref)
77
77
  id: id,
78
78
  ref: ref,
79
79
  appearance: "subtle",
80
- testId: testId,
80
+ testId: testId
81
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
82
+ ,
81
83
  className: className,
82
84
  href: href,
83
85
  iconAfter: iconAfter,
@@ -12,6 +12,7 @@ var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-
12
12
  // If you make any change here, copy it to above file as well
13
13
  // and notify about the change in #team-fc-editor-ai-dev channel.
14
14
  var _default = exports.default = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
15
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
15
16
  return /*#__PURE__*/_react.default.createElement(_standardButton.default, (0, _extends2.default)({
16
17
  ref: ref
17
18
  }, props, {
@@ -43,7 +43,7 @@ var ADFStages = exports.ADFStages = {
43
43
  * It's important that this order follows the marks rank defined here:
44
44
  * https://product-fabric.atlassian.net/wiki/spaces/ETEMP/pages/11174043/Atlassian+Document+Format+-+Internal+documentation#Rank
45
45
  */
46
- var markOrder = exports.markOrder = ['fragment', 'link', 'em', 'strong', 'textColor', 'strike', 'subsup', 'underline', 'code', 'confluenceInlineComment', 'annotation', 'dataConsumer', 'backgroundColor'];
46
+ var markOrder = exports.markOrder = ['fragment', 'link', 'em', 'strong', 'textColor', 'backgroundColor', 'strike', 'subsup', 'underline', 'code', 'confluenceInlineComment', 'annotation', 'dataConsumer'];
47
47
  var isSubSupType = exports.isSubSupType = function isSubSupType(type) {
48
48
  return type === 'sub' || type === 'sup';
49
49
  };
@@ -90,8 +90,11 @@ function ElementList({
90
90
  return;
91
91
  }
92
92
  return jsx("div", {
93
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
93
94
  style: style,
94
- key: key,
95
+ key: key
96
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
97
+ ,
95
98
  className: "element-item-wrapper",
96
99
  css: elementItemWrapper,
97
100
  onKeyDown: getBooleanFF('platform.editor.a11y-focus-order-for-element-browser-categories_ztiw1') ? e => {
@@ -217,7 +220,9 @@ export function ElementItem({
217
220
  ref: ref,
218
221
  testId: `element-item-${index}`,
219
222
  id: `searched-item-${index}`
220
- }, jsx(ItemContent, {
223
+ }, jsx(ItemContent
224
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
225
+ , {
221
226
  style: inlineMode ? null : itemStyleOverrides,
222
227
  tabIndex: 0,
223
228
  title: title,
@@ -242,7 +247,9 @@ const ItemContent = /*#__PURE__*/memo(({
242
247
  title,
243
248
  description,
244
249
  keyshortcut
245
- }) => jsx("div", {
250
+ }) =>
251
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
252
+ jsx("div", {
246
253
  css: itemBody,
247
254
  className: "item-body"
248
255
  }, jsx("div", {
@@ -100,7 +100,9 @@ function ElementSearch({
100
100
  }, "\u23CE ", formatMessage(commonMessages.elementAfterInputMessage))),
101
101
  placeholder: formatMessage(commonMessages.placeHolderMessage),
102
102
  "aria-label": "search",
103
- "aria-labelledby": "search-assistive",
103
+ "aria-labelledby": "search-assistive"
104
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
105
+ ,
104
106
  className: "js-search-input",
105
107
  role: "combobox",
106
108
  "aria-activedescendant": ariaActiveDescendant,
@@ -109,7 +111,9 @@ function ElementSearch({
109
111
  id: "search-assistive",
110
112
  ref: assistiveTextRef,
111
113
  "aria-live": "polite",
112
- "aria-atomic": "true",
114
+ "aria-atomic": "true"
115
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
116
+ ,
113
117
  className: "assistive"
114
118
  }, assistiveMessage));
115
119
  }
@@ -111,9 +111,13 @@ function ExtensionWithPluginState(props) {
111
111
  isBodiedMacro: hasBody
112
112
  }), jsx("div", {
113
113
  ref: handleRef,
114
- "data-layout": node.attrs.layout,
114
+ "data-layout": node.attrs.layout
115
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
116
+ ,
115
117
  className: classNames,
116
- css: wrapperStyle,
118
+ css: wrapperStyle
119
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
120
+ ,
117
121
  style: customContainerStyles,
118
122
  onMouseEnter: () => handleMouseEvent(true),
119
123
  onMouseLeave: () => handleMouseEvent(false)
@@ -125,18 +129,24 @@ function ExtensionWithPluginState(props) {
125
129
  css: overlay
126
130
  }), jsx("div", {
127
131
  css: header,
128
- contentEditable: false,
132
+ contentEditable: false
133
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
134
+ ,
129
135
  className: headerClassNames
130
136
  }, !removeBorder && jsx(ExtensionLozenge, {
131
137
  isNodeSelected: isNodeSelected,
132
138
  node: node,
133
139
  showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
134
- }), children), hasBody && jsx("div", {
140
+ }), children), hasBody &&
141
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
142
+ jsx("div", {
135
143
  css: newContentStyles,
136
144
  className: newContentClassNames
137
145
  }, jsx("div", {
138
146
  css: content,
139
- ref: handleContentDOMRef,
147
+ ref: handleContentDOMRef
148
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
149
+ ,
140
150
  className: contentClassNames
141
151
  })))));
142
152
  }
@@ -45,7 +45,9 @@ const InlineExtension = props => {
45
45
  setIsNodeHovered: setIsNodeHovered
46
46
  }), jsx("div", {
47
47
  "data-testid": "inline-extension-wrapper",
48
- css: [wrapperStyle, extendedInlineExtension && inlineWrapperStyles],
48
+ css: [wrapperStyle, extendedInlineExtension && inlineWrapperStyles]
49
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
50
+ ,
49
51
  className: classNames,
50
52
  onMouseEnter: () => handleMouseEvent(true),
51
53
  onMouseLeave: () => handleMouseEvent(false)
@@ -84,8 +84,11 @@ export const ExtensionLabel = ({
84
84
  setIsNodeHovered === null || setIsNodeHovered === void 0 ? void 0 : setIsNodeHovered(false);
85
85
  }, [setIsNodeHovered]);
86
86
  return jsx("div", {
87
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
87
88
  css: containerStyles,
88
- className: containerClassNames,
89
+ className: containerClassNames
90
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
91
+ ,
89
92
  style: customContainerStyles,
90
93
  onMouseEnter: handleMouseEnter,
91
94
  onMouseLeave: handleMouseLeave,
@@ -28,8 +28,11 @@ export const ExtensionNodeWrapper = ({
28
28
  'inline-extension': nodeType === 'inlineExtension' && showMacroInteractionDesignUpdates,
29
29
  relative: showMacroInteractionDesignUpdates
30
30
  });
31
- return jsx("span", {
32
- className: wrapperClassNames,
33
- css: styles
34
- }, children, nodeType === 'inlineExtension' && ZERO_WIDTH_SPACE);
31
+ return (
32
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
33
+ jsx("span", {
34
+ className: wrapperClassNames,
35
+ css: styles
36
+ }, children, nodeType === 'inlineExtension' && ZERO_WIDTH_SPACE)
37
+ );
35
38
  };
@@ -30,16 +30,20 @@ const getWrapperTitleContent = (imageData, title, showMacroInteractionDesignUpda
30
30
  url,
31
31
  ...rest
32
32
  } = imageData;
33
- return jsx("div", {
34
- className: "extension-title"
35
- }, jsx("img", _extends({
36
- css: imageStyles,
37
- src: url
38
- }, rest, {
39
- alt: title
40
- })), title);
33
+ return (
34
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
35
+ jsx("div", {
36
+ className: "extension-title"
37
+ }, jsx("img", _extends({
38
+ css: imageStyles,
39
+ src: url
40
+ }, rest, {
41
+ alt: title
42
+ })), title)
43
+ );
41
44
  }
42
45
  return jsx("div", {
46
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
43
47
  className: "extension-title",
44
48
  "data-testid": 'multiBodiedExtension-default-lozenge'
45
49
  }, jsx(EditorFileIcon, {
@@ -141,26 +145,34 @@ const MultiBodiedExtensionWithWidth = ({
141
145
  setIsNodeHovered: setIsNodeHovered,
142
146
  isBodiedMacro: true
143
147
  }), jsx("div", {
148
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
144
149
  className: wrapperClassNames,
145
150
  css: mbeExtensionWrapperCSSStyles,
146
- "data-testid": "multiBodiedExtension--wrapper",
151
+ "data-testid": "multiBodiedExtension--wrapper"
152
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
153
+ ,
147
154
  style: mbeWrapperStyles,
148
155
  onMouseEnter: () => handleMouseEvent(true),
149
156
  onMouseLeave: () => handleMouseEvent(false)
150
157
  }, jsx("div", {
151
- css: overlayStyles,
158
+ css: overlayStyles
159
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
160
+ ,
152
161
  className: overlayClassNames,
153
162
  "data-testid": "multiBodiedExtension--overlay"
154
163
  }), getWrapperTitleContent(imageData, title, showMacroInteractionDesignUpdates), jsx("div", {
164
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
155
165
  className: containerClassNames,
156
166
  css: getContainerCssExtendedStyles(activeChildIndex, showMacroInteractionDesignUpdates),
157
167
  "data-testid": "multiBodiedExtension--container",
158
168
  "data-active-child-index": activeChildIndex
159
169
  }, jsx("nav", {
170
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
160
171
  className: navigationClassNames,
161
172
  css: sharedMultiBodiedExtensionStyles.mbeNavigation,
162
173
  "data-testid": "multiBodiedExtension-navigation"
163
174
  }, extensionHandlerResult), jsx("article", {
175
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
164
176
  className: "multiBodiedExtension--frames",
165
177
  "data-testid": "multiBodiedExtension--frames",
166
178
  ref: articleRef
@@ -684,7 +684,9 @@ export class HyperlinkLinkAddToolbar extends PureComponent {
684
684
  // for details: https://a11y-internal.atlassian.net/browse/AK-740
685
685
  const screenReaderText = browser.safari && this.getScreenReaderText();
686
686
  return jsx("div", {
687
- "aria-label": "Hyperlink Edit",
687
+ "aria-label": "Hyperlink Edit"
688
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
689
+ ,
688
690
  className: "recent-list",
689
691
  "data-testid": "hyperlink-add-toolbar"
690
692
  }, jsx("div", {
@@ -107,6 +107,7 @@ class LinkSearchListItem extends React.PureComponent {
107
107
  } = this.props;
108
108
  const date = transformTimeStamp(intl, item.lastViewedDate, item.lastUpdatedDate);
109
109
  return date && jsx(Fragment, null, "\xA0 \u2022", jsx("span", {
110
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
110
111
  className: "link-search-timestamp",
111
112
  "data-test-id": "link-search-timestamp"
112
113
  }, "\xA0 ", date.pageAction, " ", date.dateString, " ", date.timeSince || ''));
@@ -34,10 +34,13 @@ export const InlineImageWrapper = ({
34
34
  return (
35
35
  // eslint-disable-next-line @atlaskit/design-system/prefer-primitives
36
36
  jsx("span", _extends({
37
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
37
38
  style: {
38
39
  ...borderStyleVars,
39
40
  ...aspectStyleVars
40
- },
41
+ }
42
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
43
+ ,
41
44
  className: INLINE_IMAGE_WRAPPER_CLASS_NAME,
42
45
  css: [wrapperStyle, borderSize && borderColor && borderStyle, isSelected && selectedStyle, isInteractive && interactiveStyle],
43
46
  "data-testid": "inline-image-wrapper",
@@ -76,11 +76,16 @@ export const CommentBadge = ({
76
76
  content: title
77
77
  }, jsx(CustomThemeButton, {
78
78
  style: {
79
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
79
80
  height: badgeDimensions,
81
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
80
82
  width: badgeDimensions,
81
83
  background: colourToken,
84
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
82
85
  display: 'flex',
86
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
83
87
  justifyContent: 'center',
88
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
84
89
  alignItems: 'center'
85
90
  },
86
91
  onClick: onClick,
@@ -1,2 +1,3 @@
1
1
  export { default as Mention } from './ui/Mention';
2
- export { MentionSharedCssClassName } from './styles/shared/mention';
2
+ export { MentionSharedCssClassName } from './styles/shared/mention';
3
+ export { default as MentionWithProfileCard } from './ui/Mention/mention-with-profilecard';
@@ -120,6 +120,11 @@ export const messages = defineMessages({
120
120
  defaultMessage: 'Configure',
121
121
  description: 'An overlay shown when hover over inline smart link to inform user that they can click the link to edit the links appearance.'
122
122
  },
123
+ inlineConfigureLink: {
124
+ id: 'fabric.editor.inlineConfigureLink',
125
+ defaultMessage: 'Configure link',
126
+ description: 'An icon shown when hovering over inline smart link to inform user they can click the icon to configure the links appearance.'
127
+ },
123
128
  datasourceConfluenceSearch: {
124
129
  id: 'fabric.editor.datasource.confluenceSearch',
125
130
  defaultMessage: 'Insert Confluence list',
@@ -1,6 +1,6 @@
1
1
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
2
2
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
3
- const packageVersion = "81.1.0";
3
+ const packageVersion = "81.1.2";
4
4
  const sanitiseSentryEvents = (data, _hint) => {
5
5
  // Remove URL as it has UGC
6
6
  // TODO: Sanitise the URL instead of just removing it
@@ -86,6 +86,7 @@ export default function IconDate() {
86
86
  fillRule: "nonzero",
87
87
  opacity: 0.37,
88
88
  style: {
89
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
89
90
  mixBlendMode: 'screen'
90
91
  }
91
92
  }), /*#__PURE__*/React.createElement("path", {
@@ -178,12 +178,16 @@ function getPortalChildren({
178
178
  ,
179
179
  getPos: nodeViewParams.getPos,
180
180
  node: currentNode
181
- }, extraComponentProps)), browser.android ? jsx("span", {
181
+ }, extraComponentProps)), browser.android ?
182
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
183
+ jsx("span", {
182
184
  className: `zeroWidthSpaceContainer`,
183
185
  contentEditable: "false"
184
186
  }, jsx("span", {
185
187
  className: `${inlineNodeViewClassname}AddZeroWidthSpace`
186
- }), ZERO_WIDTH_SPACE) : jsx("span", {
188
+ }), ZERO_WIDTH_SPACE) :
189
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
190
+ jsx("span", {
187
191
  className: `${inlineNodeViewClassname}AddZeroWidthSpace`
188
192
  }));
189
193
  };
@@ -111,6 +111,7 @@ const ResizerNext = (props, ref) => {
111
111
  const handleComponent = useMemo(() => {
112
112
  return SUPPORTED_HANDLES.reduce((result, position) => {
113
113
  const thumb = /*#__PURE__*/React.createElement("button", {
114
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
114
115
  className: resizerHandleThumbClassName,
115
116
  "data-testid": `resizer-handle-${position}-thumb`,
116
117
  contentEditable: false,
@@ -129,13 +130,17 @@ const ResizerNext = (props, ref) => {
129
130
  /*#__PURE__*/
130
131
  //It's important to have {thumb} element before the div, the thumb element is the one that gets focus and only the 1st element recives aria-descibedby attribute which is important for screen reader users
131
132
  React.createElement(React.Fragment, null, thumb, /*#__PURE__*/React.createElement("div", {
133
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
132
134
  className: classnames(resizerHandleTrackClassName, handleHighlight),
133
135
  "data-testid": `resizer-handle-${position}-track`
134
136
  }));
135
137
  if (!!handleTooltipContent) {
136
138
  return {
137
139
  ...result,
138
- [position]: /*#__PURE__*/React.createElement("div", {
140
+ [position]:
141
+ /*#__PURE__*/
142
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
143
+ React.createElement("div", {
139
144
  contentEditable: false,
140
145
  style: inheritedCSS
141
146
  }, /*#__PURE__*/React.createElement(Tooltip, {
@@ -149,7 +154,10 @@ const ResizerNext = (props, ref) => {
149
154
  }
150
155
  return {
151
156
  ...result,
152
- [position]: /*#__PURE__*/React.createElement("div", {
157
+ [position]:
158
+ /*#__PURE__*/
159
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
160
+ React.createElement("div", {
153
161
  contentEditable: false,
154
162
  style: inheritedCSS
155
163
  }, thumbWithTrack)
@@ -159,6 +167,7 @@ const ResizerNext = (props, ref) => {
159
167
  /*#__PURE__*/
160
168
  //It's important to have {thumb} element before the div, the thumb element is the one that gets focus and only the 1st element recives aria-descibedby attribute which is important for screen reader users
161
169
  React.createElement(React.Fragment, null, thumb, /*#__PURE__*/React.createElement("div", {
170
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
162
171
  className: classnames(resizerHandleTrackClassName, handleHighlight),
163
172
  "data-testid": `resizer-handle-${position}-track`
164
173
  }));
@@ -196,7 +205,9 @@ const ResizerNext = (props, ref) => {
196
205
  width,
197
206
  // just content itself (no paddings)
198
207
  height: 'auto'
199
- },
208
+ }
209
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
210
+ ,
200
211
  className: resizerClassName,
201
212
  handleClasses: handles,
202
213
  handleWrapperClass: handleWrapperClass,
@@ -1,9 +1,12 @@
1
1
  import { css } from '@emotion/react';
2
- export const backgroundColorStyles = css({
2
+ export const backgroundColorStyles = colorMode => css({
3
3
  '.fabric-background-color-mark': {
4
4
  backgroundColor: 'var(--custom-palette-color, inherit)'
5
5
  },
6
6
  'a .fabric-background-color-mark': {
7
7
  backgroundColor: 'unset'
8
+ },
9
+ '.fabric-background-color-mark .ak-editor-annotation, .fabric-background-color-mark [data-mark-type="annotation"]': {
10
+ mixBlendMode: colorMode === 'dark' ? 'color-dodge' : 'multiply'
8
11
  }
9
12
  });
@@ -165,7 +165,9 @@ const SortingIcon = ({
165
165
  content: content,
166
166
  position: "top"
167
167
  }, jsx("div", {
168
- css: buttonStyles,
168
+ css: buttonStyles
169
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
170
+ ,
169
171
  className: buttonClassName,
170
172
  role: "button",
171
173
  tabIndex: isSortingAllowed ? 0 : -1,
@@ -174,7 +176,9 @@ const SortingIcon = ({
174
176
  onClick: handleClick,
175
177
  onKeyDown: handleKeyDown
176
178
  }, jsx("div", {
177
- css: iconWrapperStyles,
179
+ css: iconWrapperStyles
180
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
181
+ ,
178
182
  className: getIconClassName(isSortingAllowed, sortOrdered)
179
183
  }, jsx("div", {
180
184
  css: iconStyles
@@ -32,6 +32,7 @@ const Announcer = /*#__PURE__*/forwardRef(({
32
32
  return () => clearTimeout(timer);
33
33
  }, [text, delay]);
34
34
  return /*#__PURE__*/React.createElement("div", {
35
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
35
36
  className: "assistive",
36
37
  ref: ref,
37
38
  role: role,
@@ -7,7 +7,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
7
7
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
8
8
  import Layer from '../Layer';
9
9
  const packageName = "@atlaskit/editor-common";
10
- const packageVersion = "81.1.0";
10
+ const packageVersion = "81.1.2";
11
11
  const halfFocusRing = 1;
12
12
  const dropOffset = '0, 8';
13
13
  class DropList extends Component {
@@ -44,7 +44,9 @@ export default (({
44
44
  }, /*#__PURE__*/React.createElement("div", {
45
45
  onMouseEnter: onMouseEnter,
46
46
  onMouseLeave: onMouseLeave
47
- }, /*#__PURE__*/React.createElement(Button, {
47
+ }, /*#__PURE__*/React.createElement(Button
48
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
49
+ , {
48
50
  className: className,
49
51
  theme: (adgTheme, themeProps) => {
50
52
  const {