@atlaskit/editor-common 81.1.1 → 81.1.3

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 +5 -5
@@ -8,6 +8,8 @@ const separator = css({
8
8
  margin: `0 ${"var(--ds-space-050, 4px)"}`,
9
9
  alignSelf: 'center'
10
10
  });
11
+
12
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
11
13
  export default (() => jsx("div", {
12
14
  css: separator,
13
15
  className: "separator"
@@ -153,11 +153,16 @@ export default class Layer extends Component {
153
153
  }, this.props.children), /*#__PURE__*/React.createElement("div", {
154
154
  ref: this.contentRef,
155
155
  style: {
156
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
156
157
  top: 0,
158
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
157
159
  left: 0,
160
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
158
161
  position: 'absolute',
162
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
159
163
  transform,
160
164
  maxHeight: maxHeight ? maxHeight : 'auto',
165
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
161
166
  ...opacity
162
167
  }
163
168
  }, this.props.content));
@@ -88,7 +88,9 @@ export default function MediaSingle({
88
88
  "data-layout": layout,
89
89
  "data-width": mediaSingleWidth,
90
90
  "data-width-type": (size === null || size === void 0 ? void 0 : size.widthType) || 'percentage',
91
- "data-node-type": nodeType,
91
+ "data-node-type": nodeType
92
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
93
+ ,
92
94
  className: classnames('rich-media-item mediaSingleView-content-wrap', `image-${layout}`, className, {
93
95
  'is-loading': isLoading,
94
96
  'rich-media-wrapped': layout === 'wrap-left' || layout === 'wrap-right'
@@ -261,9 +261,12 @@ export const MediaBorderGapFiller = ({
261
261
  }) => {
262
262
  return jsx("div", {
263
263
  style: {
264
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
264
265
  position: 'absolute',
266
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
265
267
  inset: '0px',
266
268
  border: `0.5px solid ${borderColor}`,
269
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
267
270
  borderRadius: '1px'
268
271
  }
269
272
  });
@@ -253,9 +253,12 @@ export default class Popup extends React.Component {
253
253
  return /*#__PURE__*/React.createElement("div", {
254
254
  ref: this.handleRef,
255
255
  style: {
256
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
256
257
  position: 'absolute',
257
258
  zIndex: this.props.zIndex || akEditorFloatingPanelZIndex,
259
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
258
260
  ...position,
261
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
259
262
  ...this.props.style
260
263
  },
261
264
  "aria-label": ariaLabel,
@@ -186,7 +186,9 @@ export default class Resizer extends React.Component {
186
186
  width,
187
187
  // just content itself (no paddings)
188
188
  height: 'auto'
189
- },
189
+ }
190
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
191
+ ,
190
192
  className: className,
191
193
  handleClasses: handles,
192
194
  handleStyles: updatedHandleStyles,
@@ -42,20 +42,23 @@ const UnsupportedBlockNode = ({
42
42
  });
43
43
  const originalNodeType = node === null || node === void 0 ? void 0 : node.attrs.originalValue.type;
44
44
  const tooltipOnShowHandler = useCallback(() => dispatchAnalyticsEvent && trackUnsupportedContentTooltipDisplayedFor(dispatchAnalyticsEvent, ACTION_SUBJECT_ID.ON_UNSUPPORTED_BLOCK, originalNodeType), [dispatchAnalyticsEvent, originalNodeType]);
45
- return jsx("div", {
46
- css: blockNodeStyle,
47
- className: "unsupported"
48
- }, message, jsx(Tooltip, {
49
- content: tooltipContent,
50
- hideTooltipOnClick: false,
51
- position: "bottom",
52
- onShow: tooltipOnShowHandler,
53
- strategy: "absolute"
54
- }, jsx("span", {
55
- style: style
56
- }, jsx(QuestionsIcon, {
57
- label: "?",
58
- size: "small"
59
- }))));
45
+ return (
46
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
47
+ jsx("div", {
48
+ css: blockNodeStyle,
49
+ className: "unsupported"
50
+ }, message, jsx(Tooltip, {
51
+ content: tooltipContent,
52
+ hideTooltipOnClick: false,
53
+ position: "bottom",
54
+ onShow: tooltipOnShowHandler,
55
+ strategy: "absolute"
56
+ }, jsx("span", {
57
+ style: style
58
+ }, jsx(QuestionsIcon, {
59
+ label: "?",
60
+ size: "small"
61
+ }))))
62
+ );
60
63
  };
61
64
  export default injectIntl(UnsupportedBlockNode);
@@ -46,14 +46,17 @@ export const WidthProvider = ({
46
46
  setWidth(nextWidth);
47
47
  });
48
48
  const skipWidthDetection = shouldCheckExistingValue && existingContextValue.width > 0;
49
- return jsx("div", {
50
- css: styles,
51
- className: className
52
- }, !skipWidthDetection && jsx(Fragment, null, jsx(WidthObserver, {
53
- setWidth: updateWidth,
54
- offscreen: true
55
- }), jsx(Provider, {
56
- value: providerValue
57
- }, children)), skipWidthDetection && children);
49
+ return (
50
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
51
+ jsx("div", {
52
+ css: styles,
53
+ className: className
54
+ }, !skipWidthDetection && jsx(Fragment, null, jsx(WidthObserver, {
55
+ setWidth: updateWidth,
56
+ offscreen: true
57
+ }), jsx(Provider, {
58
+ value: providerValue
59
+ }, children)), skipWidthDetection && children)
60
+ );
58
61
  };
59
62
  export { Consumer as WidthConsumer };
@@ -53,7 +53,9 @@ class Color extends PureComponent {
53
53
  "aria-checked": isSelected,
54
54
  onClick: this.onClick,
55
55
  onMouseDown: this.onMouseDown,
56
- tabIndex: tabIndex,
56
+ tabIndex: tabIndex
57
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
58
+ ,
57
59
  className: `${isSelected ? 'selected' : ''}`,
58
60
  style: {
59
61
  backgroundColor: colorStyle || 'transparent',
@@ -57,7 +57,9 @@ const ColorPalette = props => {
57
57
  return getColorsPerRowFromPalette(palette, cols);
58
58
  }, [palette, cols]);
59
59
  return jsx(React.Fragment, null, colorsPerRow.map(row => jsx("div", {
60
- css: colorPaletteWrapper,
60
+ css: colorPaletteWrapper
61
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
62
+ ,
61
63
  className: className,
62
64
  key: `row-first-color-${row[0].value}`,
63
65
  role: "radiogroup"
@@ -116,10 +116,14 @@ export const ColorPaletteArrowKeyNavigationProvider = ({
116
116
  listenerTargetElement && listenerTargetElement.removeEventListener('keydown', handleKeyDown);
117
117
  };
118
118
  }, [currentSelectedColumnIndex, isOpenedByKeyboard, isPopupPositioned, wrapperRef, handleClose, closeOnTab, ignoreEscapeKey, listenerTargetElement]);
119
- return /*#__PURE__*/React.createElement("div", {
120
- className: "custom-key-handler-wrapper",
121
- ref: wrapperRef
122
- }, children);
119
+ return (
120
+ /*#__PURE__*/
121
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
122
+ React.createElement("div", {
123
+ className: "custom-key-handler-wrapper",
124
+ ref: wrapperRef
125
+ }, children)
126
+ );
123
127
  };
124
128
  function getColorSwatchesRows(rootNode) {
125
129
  if (!rootNode) {
@@ -174,6 +174,7 @@ export const MenuArrowKeyNavigationProvider = ({
174
174
  };
175
175
  }, [currentSelectedItemIndex, wrapperRef, handleClose, disableArrowKeyNavigation, keyDownHandlerContext, closeOnTab, onSelection, incrementIndex, decrementIndex, listenerTargetElement]);
176
176
  return /*#__PURE__*/React.createElement("div", {
177
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
177
178
  className: "menu-key-handler-wrapper custom-key-handler-wrapper",
178
179
  ref: wrapperRef
179
180
  }, children);
@@ -248,6 +248,7 @@ const DropdownMenuItemCustomComponent = /*#__PURE__*/React.forwardRef((props, re
248
248
  // The current implementation unfortunately is very brittle. Design System Team will
249
249
  // be prioritizing official support for accessible nested menus that we want you to move
250
250
  // to in the future.
251
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
251
252
  position: 'static'
252
253
  }
253
254
  }), children);
@@ -211,7 +211,9 @@ export const ToolbarArrowKeyNavigationProvider = ({
211
211
  };
212
212
  }, [selectedItemIndex, wrapperRef, editorView, disableArrowKeyNavigation, handleEscape, childComponentSelector, incrementIndex, decrementIndex, isShortcutToFocusToolbar, editorAppearance, useStickyToolbar]);
213
213
  return jsx("div", {
214
- css: editorAppearance === 'comment' && centeredToolbarContainer,
214
+ css: editorAppearance === 'comment' && centeredToolbarContainer
215
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
216
+ ,
215
217
  className: "custom-key-handler-wrapper",
216
218
  ref: wrapperRef,
217
219
  role: "toolbar",
@@ -64,7 +64,9 @@ const ToolbarButton = /*#__PURE__*/React.forwardRef((props, ref) => {
64
64
  id: id,
65
65
  ref: ref,
66
66
  appearance: "subtle",
67
- testId: testId,
67
+ testId: testId
68
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
69
+ ,
68
70
  className: className,
69
71
  href: href,
70
72
  iconAfter: iconAfter,
@@ -5,6 +5,7 @@ import _extends from "@babel/runtime/helpers/extends";
5
5
  import React from 'react';
6
6
  import Button from '@atlaskit/button/standard-button';
7
7
  export default /*#__PURE__*/React.forwardRef((props, ref) => {
8
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
8
9
  return /*#__PURE__*/React.createElement(Button, _extends({
9
10
  ref: ref
10
11
  }, props, {
@@ -32,7 +32,7 @@ export const ADFStages = {
32
32
  * It's important that this order follows the marks rank defined here:
33
33
  * https://product-fabric.atlassian.net/wiki/spaces/ETEMP/pages/11174043/Atlassian+Document+Format+-+Internal+documentation#Rank
34
34
  */
35
- export const markOrder = ['fragment', 'link', 'em', 'strong', 'textColor', 'strike', 'subsup', 'underline', 'code', 'confluenceInlineComment', 'annotation', 'dataConsumer', 'backgroundColor'];
35
+ export const markOrder = ['fragment', 'link', 'em', 'strong', 'textColor', 'backgroundColor', 'strike', 'subsup', 'underline', 'code', 'confluenceInlineComment', 'annotation', 'dataConsumer'];
36
36
  export const isSubSupType = type => {
37
37
  return type === 'sub' || type === 'sup';
38
38
  };
@@ -94,8 +94,11 @@ function ElementList(_ref) {
94
94
  return;
95
95
  }
96
96
  return jsx("div", {
97
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
97
98
  style: style,
98
- key: key,
99
+ key: key
100
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
101
+ ,
99
102
  className: "element-item-wrapper",
100
103
  css: elementItemWrapper,
101
104
  onKeyDown: getBooleanFF('platform.editor.a11y-focus-order-for-element-browser-categories_ztiw1') ? function (e) {
@@ -220,7 +223,9 @@ export function ElementItem(_ref4) {
220
223
  ref: ref,
221
224
  testId: "element-item-".concat(index),
222
225
  id: "searched-item-".concat(index)
223
- }, jsx(ItemContent, {
226
+ }, jsx(ItemContent
227
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
228
+ , {
224
229
  style: inlineMode ? null : itemStyleOverrides,
225
230
  tabIndex: 0,
226
231
  title: title,
@@ -246,22 +251,25 @@ var ItemContent = /*#__PURE__*/memo(function (_ref6) {
246
251
  var title = _ref6.title,
247
252
  description = _ref6.description,
248
253
  keyshortcut = _ref6.keyshortcut;
249
- return jsx("div", {
250
- css: itemBody,
251
- className: "item-body"
252
- }, jsx("div", {
253
- css: itemText
254
- }, jsx("div", {
255
- css: itemTitleWrapper
256
- }, jsx("p", {
257
- css: itemTitle
258
- }, title), jsx("div", {
259
- css: itemAfter
260
- }, keyshortcut && jsx("div", {
261
- css: shortcutStyle
262
- }, keyshortcut))), description && jsx("p", {
263
- css: itemDescription
264
- }, description)));
254
+ return (
255
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
256
+ jsx("div", {
257
+ css: itemBody,
258
+ className: "item-body"
259
+ }, jsx("div", {
260
+ css: itemText
261
+ }, jsx("div", {
262
+ css: itemTitleWrapper
263
+ }, jsx("p", {
264
+ css: itemTitle
265
+ }, title), jsx("div", {
266
+ css: itemAfter
267
+ }, keyshortcut && jsx("div", {
268
+ css: shortcutStyle
269
+ }, keyshortcut))), description && jsx("p", {
270
+ css: itemDescription
271
+ }, description)))
272
+ );
265
273
  });
266
274
  var elementItemsWrapper = css({
267
275
  flex: 1,
@@ -98,7 +98,9 @@ function ElementSearch(_ref) {
98
98
  }, "\u23CE ", formatMessage(commonMessages.elementAfterInputMessage))),
99
99
  placeholder: formatMessage(commonMessages.placeHolderMessage),
100
100
  "aria-label": "search",
101
- "aria-labelledby": "search-assistive",
101
+ "aria-labelledby": "search-assistive"
102
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
103
+ ,
102
104
  className: "js-search-input",
103
105
  role: "combobox",
104
106
  "aria-activedescendant": ariaActiveDescendant,
@@ -107,7 +109,9 @@ function ElementSearch(_ref) {
107
109
  id: "search-assistive",
108
110
  ref: assistiveTextRef,
109
111
  "aria-live": "polite",
110
- "aria-atomic": "true",
112
+ "aria-atomic": "true"
113
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
114
+ ,
111
115
  className: "assistive"
112
116
  }, assistiveMessage));
113
117
  }
@@ -106,9 +106,13 @@ function ExtensionWithPluginState(props) {
106
106
  isBodiedMacro: hasBody
107
107
  }), jsx("div", {
108
108
  ref: handleRef,
109
- "data-layout": node.attrs.layout,
109
+ "data-layout": node.attrs.layout
110
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
111
+ ,
110
112
  className: classNames,
111
- css: wrapperStyle,
113
+ css: wrapperStyle
114
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
115
+ ,
112
116
  style: customContainerStyles,
113
117
  onMouseEnter: function onMouseEnter() {
114
118
  return handleMouseEvent(true);
@@ -124,18 +128,24 @@ function ExtensionWithPluginState(props) {
124
128
  css: overlay
125
129
  }), jsx("div", {
126
130
  css: header,
127
- contentEditable: false,
131
+ contentEditable: false
132
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
133
+ ,
128
134
  className: headerClassNames
129
135
  }, !removeBorder && jsx(ExtensionLozenge, {
130
136
  isNodeSelected: isNodeSelected,
131
137
  node: node,
132
138
  showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
133
- }), children), hasBody && jsx("div", {
139
+ }), children), hasBody &&
140
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
141
+ jsx("div", {
134
142
  css: newContentStyles,
135
143
  className: newContentClassNames
136
144
  }, jsx("div", {
137
145
  css: content,
138
- ref: handleContentDOMRef,
146
+ ref: handleContentDOMRef
147
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
148
+ ,
139
149
  className: contentClassNames
140
150
  })))));
141
151
  }
@@ -42,7 +42,9 @@ var InlineExtension = function InlineExtension(props) {
42
42
  setIsNodeHovered: setIsNodeHovered
43
43
  }), jsx("div", {
44
44
  "data-testid": "inline-extension-wrapper",
45
- css: [wrapperStyle, extendedInlineExtension && inlineWrapperStyles],
45
+ css: [wrapperStyle, extendedInlineExtension && inlineWrapperStyles]
46
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
47
+ ,
46
48
  className: classNames,
47
49
  onMouseEnter: function onMouseEnter() {
48
50
  return handleMouseEvent(true);
@@ -83,8 +83,11 @@ export var ExtensionLabel = function ExtensionLabel(_ref) {
83
83
  setIsNodeHovered === null || setIsNodeHovered === void 0 || setIsNodeHovered(false);
84
84
  }, [setIsNodeHovered]);
85
85
  return jsx("div", {
86
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
86
87
  css: containerStyles,
87
- className: containerClassNames,
88
+ className: containerClassNames
89
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
90
+ ,
88
91
  style: customContainerStyles,
89
92
  onMouseEnter: handleMouseEnter,
90
93
  onMouseLeave: handleMouseLeave,
@@ -27,8 +27,11 @@ export var ExtensionNodeWrapper = function ExtensionNodeWrapper(_ref) {
27
27
  'inline-extension': nodeType === 'inlineExtension' && showMacroInteractionDesignUpdates,
28
28
  relative: showMacroInteractionDesignUpdates
29
29
  });
30
- return jsx("span", {
31
- className: wrapperClassNames,
32
- css: styles
33
- }, children, nodeType === 'inlineExtension' && ZERO_WIDTH_SPACE);
30
+ return (
31
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
32
+ jsx("span", {
33
+ className: wrapperClassNames,
34
+ css: styles
35
+ }, children, nodeType === 'inlineExtension' && ZERO_WIDTH_SPACE)
36
+ );
34
37
  };
@@ -33,16 +33,20 @@ var getWrapperTitleContent = function getWrapperTitleContent(imageData, title, s
33
33
  if (imageData) {
34
34
  var url = imageData.url,
35
35
  rest = _objectWithoutProperties(imageData, _excluded);
36
- return jsx("div", {
37
- className: "extension-title"
38
- }, jsx("img", _extends({
39
- css: imageStyles,
40
- src: url
41
- }, rest, {
42
- alt: title
43
- })), title);
36
+ return (
37
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
38
+ jsx("div", {
39
+ className: "extension-title"
40
+ }, jsx("img", _extends({
41
+ css: imageStyles,
42
+ src: url
43
+ }, rest, {
44
+ alt: title
45
+ })), title)
46
+ );
44
47
  }
45
48
  return jsx("div", {
49
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
46
50
  className: "extension-title",
47
51
  "data-testid": 'multiBodiedExtension-default-lozenge'
48
52
  }, jsx(EditorFileIcon, {
@@ -144,9 +148,12 @@ var MultiBodiedExtensionWithWidth = function MultiBodiedExtensionWithWidth(_ref)
144
148
  setIsNodeHovered: setIsNodeHovered,
145
149
  isBodiedMacro: true
146
150
  }), jsx("div", {
151
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
147
152
  className: wrapperClassNames,
148
153
  css: mbeExtensionWrapperCSSStyles,
149
- "data-testid": "multiBodiedExtension--wrapper",
154
+ "data-testid": "multiBodiedExtension--wrapper"
155
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
156
+ ,
150
157
  style: mbeWrapperStyles,
151
158
  onMouseEnter: function onMouseEnter() {
152
159
  return handleMouseEvent(true);
@@ -155,19 +162,24 @@ var MultiBodiedExtensionWithWidth = function MultiBodiedExtensionWithWidth(_ref)
155
162
  return handleMouseEvent(false);
156
163
  }
157
164
  }, jsx("div", {
158
- css: overlayStyles,
165
+ css: overlayStyles
166
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
167
+ ,
159
168
  className: overlayClassNames,
160
169
  "data-testid": "multiBodiedExtension--overlay"
161
170
  }), getWrapperTitleContent(imageData, title, showMacroInteractionDesignUpdates), jsx("div", {
171
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
162
172
  className: containerClassNames,
163
173
  css: getContainerCssExtendedStyles(activeChildIndex, showMacroInteractionDesignUpdates),
164
174
  "data-testid": "multiBodiedExtension--container",
165
175
  "data-active-child-index": activeChildIndex
166
176
  }, jsx("nav", {
177
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
167
178
  className: navigationClassNames,
168
179
  css: sharedMultiBodiedExtensionStyles.mbeNavigation,
169
180
  "data-testid": "multiBodiedExtension-navigation"
170
181
  }, extensionHandlerResult), jsx("article", {
182
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
171
183
  className: "multiBodiedExtension--frames",
172
184
  "data-testid": "multiBodiedExtension--frames",
173
185
  ref: articleRef
@@ -838,7 +838,9 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
838
838
  // for details: https://a11y-internal.atlassian.net/browse/AK-740
839
839
  var screenReaderText = browser.safari && this.getScreenReaderText();
840
840
  return jsx("div", {
841
- "aria-label": "Hyperlink Edit",
841
+ "aria-label": "Hyperlink Edit"
842
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
843
+ ,
842
844
  className: "recent-list",
843
845
  "data-testid": "hyperlink-add-toolbar"
844
846
  }, jsx("div", {
@@ -120,6 +120,7 @@ var LinkSearchListItem = /*#__PURE__*/function (_React$PureComponent) {
120
120
  intl = _this$props6.intl;
121
121
  var date = transformTimeStamp(intl, item.lastViewedDate, item.lastUpdatedDate);
122
122
  return date && jsx(Fragment, null, "\xA0 \u2022", jsx("span", {
123
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
123
124
  className: "link-search-timestamp",
124
125
  "data-test-id": "link-search-timestamp"
125
126
  }, "\xA0 ", date.pageAction, " ", date.dateString, " ", date.timeSince || ''));
@@ -33,7 +33,10 @@ export var InlineImageWrapper = function InlineImageWrapper(_ref) {
33
33
  return (
34
34
  // eslint-disable-next-line @atlaskit/design-system/prefer-primitives
35
35
  jsx("span", _extends({
36
- style: _objectSpread(_objectSpread({}, borderStyleVars), aspectStyleVars),
36
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
37
+ style: _objectSpread(_objectSpread({}, borderStyleVars), aspectStyleVars)
38
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
39
+ ,
37
40
  className: INLINE_IMAGE_WRAPPER_CLASS_NAME,
38
41
  css: [wrapperStyle, borderSize && borderColor && borderStyle, isSelected && selectedStyle, isInteractive && interactiveStyle],
39
42
  "data-testid": "inline-image-wrapper",
@@ -82,11 +82,16 @@ export var CommentBadge = function CommentBadge(_ref) {
82
82
  content: title
83
83
  }, jsx(CustomThemeButton, {
84
84
  style: {
85
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
85
86
  height: badgeDimensions,
87
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
86
88
  width: badgeDimensions,
87
89
  background: colourToken,
90
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
88
91
  display: 'flex',
92
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
89
93
  justifyContent: 'center',
94
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
90
95
  alignItems: 'center'
91
96
  },
92
97
  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 var 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',
@@ -6,7 +6,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
6
6
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7
7
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
8
8
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
9
- var packageVersion = "81.1.1";
9
+ var packageVersion = "81.1.3";
10
10
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
11
11
  // Remove URL as it has UGC
12
12
  // TODO: Sanitise the URL instead of just removing it
@@ -85,6 +85,7 @@ export default function IconDate() {
85
85
  fillRule: "nonzero",
86
86
  opacity: 0.37,
87
87
  style: {
88
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
88
89
  mixBlendMode: 'screen'
89
90
  }
90
91
  }), /*#__PURE__*/React.createElement("path", {
@@ -177,12 +177,16 @@ function getPortalChildren(_ref2) {
177
177
  ,
178
178
  getPos: nodeViewParams.getPos,
179
179
  node: currentNode
180
- }, extraComponentProps)), browser.android ? jsx("span", {
180
+ }, extraComponentProps)), browser.android ?
181
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
182
+ jsx("span", {
181
183
  className: "zeroWidthSpaceContainer",
182
184
  contentEditable: "false"
183
185
  }, jsx("span", {
184
186
  className: "".concat(inlineNodeViewClassname, "AddZeroWidthSpace")
185
- }), ZERO_WIDTH_SPACE) : jsx("span", {
187
+ }), ZERO_WIDTH_SPACE) :
188
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
189
+ jsx("span", {
186
190
  className: "".concat(inlineNodeViewClassname, "AddZeroWidthSpace")
187
191
  }));
188
192
  };