@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.
- package/CHANGELOG.md +23 -0
- package/dist/cjs/element-browser/components/ElementList/ElementList.js +26 -18
- package/dist/cjs/element-browser/components/ElementSearch.js +6 -2
- package/dist/cjs/extensibility/Extension/Extension/index.js +15 -5
- package/dist/cjs/extensibility/Extension/InlineExtension/index.js +3 -1
- package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +4 -1
- package/dist/cjs/extensibility/ExtensionNodeWrapper.js +7 -4
- package/dist/cjs/extensibility/MultiBodiedExtension/index.js +22 -10
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +3 -1
- package/dist/cjs/link/LinkSearch/LinkSearchListItem.js +1 -0
- package/dist/cjs/media-inline/inline-image-wrapper.js +4 -1
- package/dist/cjs/media-single/CommentBadge.js +5 -0
- package/dist/cjs/mention.js +8 -1
- package/dist/cjs/messages/card.js +5 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/quick-insert/assets/date.js +1 -0
- package/dist/cjs/react-node-view/getInlineNodeViewProducer.js +6 -2
- package/dist/cjs/resizer/Resizer.js +14 -3
- package/dist/cjs/styles/shared/background-color.js +13 -8
- package/dist/cjs/table/SortingIcon.js +6 -2
- package/dist/cjs/ui/Announcer/announcer.js +1 -0
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/FloatingToolbar/Button.js +3 -1
- package/dist/cjs/ui/FloatingToolbar/Separator.js +2 -0
- package/dist/cjs/ui/Layer/index.js +4 -0
- package/dist/cjs/ui/MediaSingle/index.js +3 -1
- package/dist/cjs/ui/MediaSingle/styled.js +3 -0
- package/dist/cjs/ui/Popup/index.js +1 -0
- package/dist/cjs/ui/ResizerLegacy/index.js +3 -1
- package/dist/cjs/ui/UnsupportedBlock/index.js +18 -15
- package/dist/cjs/ui/WidthProvider/index.js +12 -9
- package/dist/cjs/ui-color/ColorPalette/Color/index.js +3 -1
- package/dist/cjs/ui-color/ColorPalette/index.js +3 -1
- package/dist/cjs/ui-menu/ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider/index.js +8 -4
- package/dist/cjs/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js +1 -0
- package/dist/cjs/ui-menu/DropdownMenu/index.js +1 -0
- package/dist/cjs/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +3 -1
- package/dist/cjs/ui-menu/ToolbarButton/index.js +3 -1
- package/dist/cjs/ui-menu/ToolbarButton/styles.js +1 -0
- package/dist/cjs/utils/validator.js +1 -1
- package/dist/es2019/element-browser/components/ElementList/ElementList.js +10 -3
- package/dist/es2019/element-browser/components/ElementSearch.js +6 -2
- package/dist/es2019/extensibility/Extension/Extension/index.js +15 -5
- package/dist/es2019/extensibility/Extension/InlineExtension/index.js +3 -1
- package/dist/es2019/extensibility/Extension/Lozenge/ExtensionLabel.js +4 -1
- package/dist/es2019/extensibility/ExtensionNodeWrapper.js +7 -4
- package/dist/es2019/extensibility/MultiBodiedExtension/index.js +22 -10
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +3 -1
- package/dist/es2019/link/LinkSearch/LinkSearchListItem.js +1 -0
- package/dist/es2019/media-inline/inline-image-wrapper.js +4 -1
- package/dist/es2019/media-single/CommentBadge.js +5 -0
- package/dist/es2019/mention.js +2 -1
- package/dist/es2019/messages/card.js +5 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/quick-insert/assets/date.js +1 -0
- package/dist/es2019/react-node-view/getInlineNodeViewProducer.js +6 -2
- package/dist/es2019/resizer/Resizer.js +14 -3
- package/dist/es2019/styles/shared/background-color.js +4 -1
- package/dist/es2019/table/SortingIcon.js +6 -2
- package/dist/es2019/ui/Announcer/announcer.js +1 -0
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/FloatingToolbar/Button.js +3 -1
- package/dist/es2019/ui/FloatingToolbar/Separator.js +2 -0
- package/dist/es2019/ui/Layer/index.js +5 -0
- package/dist/es2019/ui/MediaSingle/index.js +3 -1
- package/dist/es2019/ui/MediaSingle/styled.js +3 -0
- package/dist/es2019/ui/Popup/index.js +3 -0
- package/dist/es2019/ui/ResizerLegacy/index.js +3 -1
- package/dist/es2019/ui/UnsupportedBlock/index.js +18 -15
- package/dist/es2019/ui/WidthProvider/index.js +12 -9
- package/dist/es2019/ui-color/ColorPalette/Color/index.js +3 -1
- package/dist/es2019/ui-color/ColorPalette/index.js +3 -1
- package/dist/es2019/ui-menu/ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider/index.js +8 -4
- package/dist/es2019/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js +1 -0
- package/dist/es2019/ui-menu/DropdownMenu/index.js +1 -0
- package/dist/es2019/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +3 -1
- package/dist/es2019/ui-menu/ToolbarButton/index.js +3 -1
- package/dist/es2019/ui-menu/ToolbarButton/styles.js +1 -0
- package/dist/es2019/utils/validator.js +1 -1
- package/dist/esm/element-browser/components/ElementList/ElementList.js +26 -18
- package/dist/esm/element-browser/components/ElementSearch.js +6 -2
- package/dist/esm/extensibility/Extension/Extension/index.js +15 -5
- package/dist/esm/extensibility/Extension/InlineExtension/index.js +3 -1
- package/dist/esm/extensibility/Extension/Lozenge/ExtensionLabel.js +4 -1
- package/dist/esm/extensibility/ExtensionNodeWrapper.js +7 -4
- package/dist/esm/extensibility/MultiBodiedExtension/index.js +22 -10
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +3 -1
- package/dist/esm/link/LinkSearch/LinkSearchListItem.js +1 -0
- package/dist/esm/media-inline/inline-image-wrapper.js +4 -1
- package/dist/esm/media-single/CommentBadge.js +5 -0
- package/dist/esm/mention.js +2 -1
- package/dist/esm/messages/card.js +5 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/quick-insert/assets/date.js +1 -0
- package/dist/esm/react-node-view/getInlineNodeViewProducer.js +6 -2
- package/dist/esm/resizer/Resizer.js +14 -3
- package/dist/esm/styles/shared/background-color.js +13 -8
- package/dist/esm/table/SortingIcon.js +6 -2
- package/dist/esm/ui/Announcer/announcer.js +1 -0
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/FloatingToolbar/Button.js +3 -1
- package/dist/esm/ui/FloatingToolbar/Separator.js +2 -0
- package/dist/esm/ui/Layer/index.js +4 -0
- package/dist/esm/ui/MediaSingle/index.js +3 -1
- package/dist/esm/ui/MediaSingle/styled.js +3 -0
- package/dist/esm/ui/Popup/index.js +1 -0
- package/dist/esm/ui/ResizerLegacy/index.js +3 -1
- package/dist/esm/ui/UnsupportedBlock/index.js +18 -15
- package/dist/esm/ui/WidthProvider/index.js +12 -9
- package/dist/esm/ui-color/ColorPalette/Color/index.js +3 -1
- package/dist/esm/ui-color/ColorPalette/index.js +3 -1
- package/dist/esm/ui-menu/ArrowKeyNavigationProvider/ColorPaletteArrowKeyNavigationProvider/index.js +8 -4
- package/dist/esm/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js +1 -0
- package/dist/esm/ui-menu/DropdownMenu/index.js +1 -0
- package/dist/esm/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +3 -1
- package/dist/esm/ui-menu/ToolbarButton/index.js +3 -1
- package/dist/esm/ui-menu/ToolbarButton/styles.js +1 -0
- package/dist/esm/utils/validator.js +1 -1
- package/dist/types/analytics/index.d.ts +1 -1
- package/dist/types/mention.d.ts +1 -0
- package/dist/types/messages/card.d.ts +5 -0
- package/dist/types/styles/shared/background-color.d.ts +1 -1
- package/dist/types-ts4.5/analytics/index.d.ts +1 -1
- package/dist/types-ts4.5/mention.d.ts +1 -0
- package/dist/types-ts4.5/messages/card.d.ts +5 -0
- package/dist/types-ts4.5/styles/shared/background-color.d.ts +1 -1
- 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
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
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
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
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) {
|
package/dist/es2019/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js
CHANGED
|
@@ -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'
|
|
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
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
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 &&
|
|
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
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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
|
|
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,
|
package/dist/esm/mention.js
CHANGED
|
@@ -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.
|
|
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 ?
|
|
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) :
|
|
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
|
};
|