@atlaskit/editor-common 112.7.3 → 112.7.4
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 +8 -0
- package/dist/cjs/analytics/types/enums.js +1 -0
- package/dist/cjs/card/ui/assets/card.js +3 -1
- package/dist/cjs/card/ui/assets/embed.js +3 -1
- package/dist/cjs/card/ui/assets/inline.js +3 -1
- package/dist/cjs/card/ui/assets/url.js +3 -1
- package/dist/cjs/element-browser/components/ElementList/ElementList.js +2 -2
- package/dist/cjs/extensibility/Extension/Extension/index.js +9 -3
- package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -0
- package/dist/cjs/extensibility/Extension.js +3 -1
- package/dist/cjs/extensions/UnknownMacroPlaceholder.js +1 -0
- package/dist/cjs/keymaps/index.js +1 -0
- package/dist/cjs/link/ConfigureLinkOverlay/Dropdown.js +4 -1
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +20 -11
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/index.js +6 -2
- package/dist/cjs/link/LinkSearch/LinkSearchList.js +6 -2
- package/dist/cjs/link/LinkSearch/withActivityProvider.js +5 -3
- package/dist/cjs/mark/commands.js +5 -3
- package/dist/cjs/media-inline/inline-image-card.js +3 -1
- package/dist/cjs/media-inline/media-inline-image-card.js +6 -2
- package/dist/cjs/media-single/CommentBadge.js +3 -1
- package/dist/cjs/media-single/CommentBadgeNext.js +3 -1
- package/dist/cjs/media-single/MediaBadges.js +3 -1
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/node-width/index.js +3 -9
- package/dist/cjs/paste/md-plugins/linkify-md-plugin.js +2 -2
- package/dist/cjs/resizer/BreakoutResizer.js +3 -1
- package/dist/cjs/resizer/Resizer.js +5 -1
- package/dist/cjs/toolbar/context.js +1 -0
- package/dist/cjs/ui/AssistiveText/AssistiveText.js +4 -0
- package/dist/cjs/ui/ContextPanel/context.js +3 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/FloatingToolbar/Button.js +4 -2
- package/dist/cjs/ui/HoverLinkOverlay/index.js +3 -1
- package/dist/cjs/ui/Mention/index.js +3 -1
- package/dist/cjs/ui/ResizerLegacy/index.js +3 -1
- package/dist/cjs/ui/TableSelector/index.js +3 -1
- package/dist/cjs/ui-color/ColorPalette/Palettes/borderColorPalette.js +1 -0
- package/dist/cjs/ui-color/ColorPalette/Palettes/cellBackgroundColorPalette.js +1 -0
- package/dist/cjs/ui-color/ColorPalette/Palettes/highlightColorPalette.js +1 -1
- package/dist/cjs/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js +4 -0
- package/dist/cjs/ui-menu/ColorPickerButton/index.js +12 -4
- package/dist/cjs/ui-menu/DropdownMenu/index.js +18 -6
- package/dist/cjs/ui-menu/ToolbarButton/styles.js +1 -1
- package/dist/es2019/analytics/types/enums.js +1 -0
- package/dist/es2019/card/ui/assets/card.js +3 -1
- package/dist/es2019/card/ui/assets/embed.js +3 -1
- package/dist/es2019/card/ui/assets/inline.js +3 -1
- package/dist/es2019/card/ui/assets/url.js +3 -1
- package/dist/es2019/element-browser/components/ElementList/ElementList.js +2 -2
- package/dist/es2019/extensibility/Extension/Extension/index.js +9 -3
- package/dist/es2019/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -0
- package/dist/es2019/extensibility/Extension.js +3 -1
- package/dist/es2019/extensions/UnknownMacroPlaceholder.js +1 -0
- package/dist/es2019/keymaps/index.js +1 -0
- package/dist/es2019/link/ConfigureLinkOverlay/Dropdown.js +4 -1
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +20 -11
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/index.js +6 -2
- package/dist/es2019/link/LinkSearch/LinkSearchList.js +6 -2
- package/dist/es2019/link/LinkSearch/withActivityProvider.js +4 -2
- package/dist/es2019/mark/commands.js +5 -3
- package/dist/es2019/media-inline/inline-image-card.js +3 -1
- package/dist/es2019/media-inline/media-inline-image-card.js +6 -2
- package/dist/es2019/media-single/CommentBadge.js +3 -1
- package/dist/es2019/media-single/CommentBadgeNext.js +3 -1
- package/dist/es2019/media-single/MediaBadges.js +3 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/node-width/index.js +4 -10
- package/dist/es2019/paste/md-plugins/linkify-md-plugin.js +2 -2
- package/dist/es2019/resizer/BreakoutResizer.js +3 -1
- package/dist/es2019/resizer/Resizer.js +5 -1
- package/dist/es2019/toolbar/context.js +1 -0
- package/dist/es2019/ui/AssistiveText/AssistiveText.js +4 -0
- package/dist/es2019/ui/ContextPanel/context.js +3 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/FloatingToolbar/Button.js +4 -2
- package/dist/es2019/ui/HoverLinkOverlay/index.js +3 -1
- package/dist/es2019/ui/Mention/index.js +3 -1
- package/dist/es2019/ui/ResizerLegacy/index.js +3 -1
- package/dist/es2019/ui/TableSelector/index.js +3 -1
- package/dist/es2019/ui-color/ColorPalette/Palettes/borderColorPalette.js +1 -0
- package/dist/es2019/ui-color/ColorPalette/Palettes/cellBackgroundColorPalette.js +1 -0
- package/dist/es2019/ui-color/ColorPalette/Palettes/highlightColorPalette.js +1 -1
- package/dist/es2019/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js +4 -0
- package/dist/es2019/ui-menu/ColorPickerButton/index.js +12 -4
- package/dist/es2019/ui-menu/DropdownMenu/index.js +18 -6
- package/dist/es2019/ui-menu/ToolbarButton/styles.js +1 -1
- package/dist/esm/analytics/types/enums.js +1 -0
- package/dist/esm/card/ui/assets/card.js +3 -1
- package/dist/esm/card/ui/assets/embed.js +3 -1
- package/dist/esm/card/ui/assets/inline.js +3 -1
- package/dist/esm/card/ui/assets/url.js +3 -1
- package/dist/esm/element-browser/components/ElementList/ElementList.js +2 -2
- package/dist/esm/extensibility/Extension/Extension/index.js +9 -3
- package/dist/esm/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -0
- package/dist/esm/extensibility/Extension.js +3 -1
- package/dist/esm/extensions/UnknownMacroPlaceholder.js +1 -0
- package/dist/esm/keymaps/index.js +1 -0
- package/dist/esm/link/ConfigureLinkOverlay/Dropdown.js +4 -1
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +20 -11
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/index.js +6 -2
- package/dist/esm/link/LinkSearch/LinkSearchList.js +6 -2
- package/dist/esm/link/LinkSearch/withActivityProvider.js +4 -2
- package/dist/esm/mark/commands.js +5 -3
- package/dist/esm/media-inline/inline-image-card.js +3 -1
- package/dist/esm/media-inline/media-inline-image-card.js +6 -2
- package/dist/esm/media-single/CommentBadge.js +3 -1
- package/dist/esm/media-single/CommentBadgeNext.js +3 -1
- package/dist/esm/media-single/MediaBadges.js +3 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/node-width/index.js +4 -10
- package/dist/esm/paste/md-plugins/linkify-md-plugin.js +2 -2
- package/dist/esm/resizer/BreakoutResizer.js +3 -1
- package/dist/esm/resizer/Resizer.js +5 -1
- package/dist/esm/toolbar/context.js +1 -0
- package/dist/esm/ui/AssistiveText/AssistiveText.js +4 -0
- package/dist/esm/ui/ContextPanel/context.js +3 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/FloatingToolbar/Button.js +4 -2
- package/dist/esm/ui/HoverLinkOverlay/index.js +3 -1
- package/dist/esm/ui/Mention/index.js +3 -1
- package/dist/esm/ui/ResizerLegacy/index.js +3 -1
- package/dist/esm/ui/TableSelector/index.js +3 -1
- package/dist/esm/ui-color/ColorPalette/Palettes/borderColorPalette.js +1 -0
- package/dist/esm/ui-color/ColorPalette/Palettes/cellBackgroundColorPalette.js +1 -0
- package/dist/esm/ui-color/ColorPalette/Palettes/highlightColorPalette.js +1 -1
- package/dist/esm/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js +4 -0
- package/dist/esm/ui-menu/ColorPickerButton/index.js +12 -4
- package/dist/esm/ui-menu/DropdownMenu/index.js +18 -6
- package/dist/esm/ui-menu/ToolbarButton/styles.js +1 -1
- package/dist/types/analytics/types/enums.d.ts +2 -1
- package/dist/types-ts4.5/analytics/types/enums.d.ts +2 -1
- package/package.json +4 -4
|
@@ -194,7 +194,9 @@ var Resizer = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
|
194
194
|
// Ideally, Resizable would let you pass in the component rather than
|
|
195
195
|
// the div. For now, we just apply the same styles using CSS
|
|
196
196
|
return /*#__PURE__*/_react.default.createElement(_reResizable.Resizable, {
|
|
197
|
-
ref: this.resizable
|
|
197
|
+
ref: this.resizable
|
|
198
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
199
|
+
,
|
|
198
200
|
size: {
|
|
199
201
|
width: nonZeroWidth,
|
|
200
202
|
// just content itself (no paddings)
|
|
@@ -241,7 +241,9 @@ var TableSelectorPopup = exports.TableSelectorPopup = function TableSelectorPopu
|
|
|
241
241
|
return unbind;
|
|
242
242
|
}, [handleMouseMove, props.allowOutsideSelection, tablePopupRef]);
|
|
243
243
|
return (0, _react2.jsx)(_Popup.default, {
|
|
244
|
-
target: props.target
|
|
244
|
+
target: props.target
|
|
245
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
246
|
+
,
|
|
245
247
|
offset: [0, 3],
|
|
246
248
|
mountTo: props.popupsMountPoint,
|
|
247
249
|
boundariesElement: props.popupsBoundariesElement,
|
|
@@ -11,6 +11,7 @@ var _getColorMessage = _interopRequireDefault(require("./getColorMessage"));
|
|
|
11
11
|
var _paletteMessages = _interopRequireDefault(require("./paletteMessages"));
|
|
12
12
|
var borderColorPalette = [];
|
|
13
13
|
_adfSchema.borderColorPalette.forEach(function (label, color) {
|
|
14
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
|
|
14
15
|
var key = label.toLowerCase().replace(' ', '-');
|
|
15
16
|
var message = (0, _getColorMessage.default)(_paletteMessages.default, key);
|
|
16
17
|
borderColorPalette.push({
|
|
@@ -10,6 +10,7 @@ var _getColorMessage = _interopRequireDefault(require("./getColorMessage"));
|
|
|
10
10
|
var _paletteMessages = _interopRequireDefault(require("./paletteMessages"));
|
|
11
11
|
var cellBackgroundColorPalette = [];
|
|
12
12
|
_adfSchema.tableBackgroundColorPalette.forEach(function (label, color) {
|
|
13
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
|
|
13
14
|
var key = label.toLowerCase().replace(' ', '-');
|
|
14
15
|
var message = (0, _getColorMessage.default)(_paletteMessages.default, key);
|
|
15
16
|
cellBackgroundColorPalette.push({
|
|
@@ -49,7 +49,7 @@ var EditorDiagonalLineIcon = exports.EditorDiagonalLineIcon = function EditorDia
|
|
|
49
49
|
colorMode = _useThemeObserver.colorMode;
|
|
50
50
|
var primaryColor = colorMode === 'dark' ? "var(--ds-background-accent-gray-bolder, #626F86)" : "var(--ds-background-accent-gray-subtle, #8590A2)";
|
|
51
51
|
return (
|
|
52
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
|
|
52
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
53
53
|
(0, _react.jsx)(DiagonalLineGlyph, {
|
|
54
54
|
"aria-label": "",
|
|
55
55
|
style: {
|
|
@@ -67,9 +67,13 @@ var MenuArrowKeyNavigationProvider = exports.MenuArrowKeyNavigationProvider = fu
|
|
|
67
67
|
var currentIndex = currentSelectedItemIndex;
|
|
68
68
|
var list = getFocusableElements(wrapperRef === null || wrapperRef === void 0 ? void 0 : wrapperRef.current);
|
|
69
69
|
var currentElement = list[currentIndex];
|
|
70
|
+
|
|
71
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
|
|
70
72
|
if (currentElement && currentElement.getAttribute('aria-disabled') === 'true') {
|
|
71
73
|
var _list$focusIndex;
|
|
74
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
|
|
72
75
|
var focusIndex = incrementIndex(list);
|
|
76
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
|
|
73
77
|
(_list$focusIndex = list[focusIndex]) === null || _list$focusIndex === void 0 || _list$focusIndex.focus();
|
|
74
78
|
}
|
|
75
79
|
}, [currentSelectedItemIndex, onSelection, incrementIndex, decrementIndex]);
|
|
@@ -156,7 +156,9 @@ var ColorPickerButton = function ColorPickerButton(props) {
|
|
|
156
156
|
return (0, _react2.jsx)(_Popup.default, {
|
|
157
157
|
target: buttonRef.current,
|
|
158
158
|
fitHeight: 350,
|
|
159
|
-
fitWidth: 350
|
|
159
|
+
fitWidth: 350
|
|
160
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
161
|
+
,
|
|
160
162
|
offset: [0, 10],
|
|
161
163
|
alignX: props.alignX,
|
|
162
164
|
mountTo: props.setDisableParentScroll ? props.mountPoint : undefined,
|
|
@@ -175,7 +177,9 @@ var ColorPickerButton = function ColorPickerButton(props) {
|
|
|
175
177
|
type: _types.ArrowKeyNavigationType.COLOR,
|
|
176
178
|
selectedRowIndex: selectedRowIndex,
|
|
177
179
|
selectedColumnIndex: selectedColumnIndex,
|
|
178
|
-
closeOnTab: true
|
|
180
|
+
closeOnTab: true
|
|
181
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
182
|
+
,
|
|
179
183
|
handleClose: function handleClose() {
|
|
180
184
|
return setIsPopupOpen(false);
|
|
181
185
|
},
|
|
@@ -187,7 +191,9 @@ var ColorPickerButton = function ColorPickerButton(props) {
|
|
|
187
191
|
selectedColor: selectedColor,
|
|
188
192
|
onClick: onColorSelected,
|
|
189
193
|
handleClickOutside: togglePopup,
|
|
190
|
-
handleEscapeKeydown: handleEsc
|
|
194
|
+
handleEscapeKeydown: handleEsc
|
|
195
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
196
|
+
,
|
|
191
197
|
paletteOptions: {
|
|
192
198
|
palette: props.colorPalette,
|
|
193
199
|
hexToPaletteColor: props.hexToPaletteColor,
|
|
@@ -235,7 +241,9 @@ var ColorPickerButton = function ColorPickerButton(props) {
|
|
|
235
241
|
"aria-label": title,
|
|
236
242
|
"aria-expanded": props.isAriaExpanded ? isPopupOpen : undefined,
|
|
237
243
|
spacing: (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') ? 'default' : 'compact',
|
|
238
|
-
onClick: togglePopup
|
|
244
|
+
onClick: togglePopup
|
|
245
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
246
|
+
,
|
|
239
247
|
onKeyDown: function onKeyDown(event) {
|
|
240
248
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
241
249
|
event.preventDefault();
|
|
@@ -199,7 +199,9 @@ var DropdownMenuWrapper = exports.default = /*#__PURE__*/function (_PureComponen
|
|
|
199
199
|
position: popupPlacement.join(' '),
|
|
200
200
|
shouldFitContainer: true,
|
|
201
201
|
handleClickOutside: this.handleClose,
|
|
202
|
-
handleEscapeKeydown: handleEscapeKeydown || this.handleCloseAndFocus
|
|
202
|
+
handleEscapeKeydown: handleEscapeKeydown || this.handleCloseAndFocus
|
|
203
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
204
|
+
,
|
|
203
205
|
handleEnterKeydown: function handleEnterKeydown(e) {
|
|
204
206
|
if (!allowEnterDefaultBehavior) {
|
|
205
207
|
e.preventDefault();
|
|
@@ -336,7 +338,9 @@ function DropdownMenuItem(_ref) {
|
|
|
336
338
|
role: shouldUseDefaultRole ? 'button' : (0, _expValEquals.expValEquals)('platform_editor_august_a11y', 'isEnabled', true) ? undefined : 'menuitem',
|
|
337
339
|
iconBefore: item.elemBefore,
|
|
338
340
|
iconAfter: item.elemAfter,
|
|
339
|
-
isDisabled: item.isDisabled
|
|
341
|
+
isDisabled: item.isDisabled
|
|
342
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
343
|
+
,
|
|
340
344
|
onClick: function onClick() {
|
|
341
345
|
return onItemActivated && onItemActivated({
|
|
342
346
|
item: item
|
|
@@ -344,16 +348,22 @@ function DropdownMenuItem(_ref) {
|
|
|
344
348
|
},
|
|
345
349
|
"aria-label": ariaLabel,
|
|
346
350
|
"aria-pressed": shouldUseDefaultRole ? item.isActive : undefined,
|
|
347
|
-
"aria-keyshortcuts": item['aria-keyshortcuts']
|
|
351
|
+
"aria-keyshortcuts": item['aria-keyshortcuts']
|
|
352
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
353
|
+
,
|
|
348
354
|
onMouseDown: function onMouseDown(e) {
|
|
349
355
|
e.preventDefault();
|
|
350
356
|
},
|
|
351
|
-
component: DropdownMenuItemCustomComponent
|
|
357
|
+
component: DropdownMenuItemCustomComponent
|
|
358
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
359
|
+
,
|
|
352
360
|
onMouseEnter: function onMouseEnter() {
|
|
353
361
|
return _onMouseEnter && _onMouseEnter({
|
|
354
362
|
item: item
|
|
355
363
|
});
|
|
356
|
-
}
|
|
364
|
+
}
|
|
365
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
366
|
+
,
|
|
357
367
|
onMouseLeave: function onMouseLeave() {
|
|
358
368
|
return _onMouseLeave && _onMouseLeave({
|
|
359
369
|
item: item
|
|
@@ -380,7 +390,9 @@ function (_ref2) {
|
|
|
380
390
|
|
|
381
391
|
// This context is to handle the tab, Arrow Right/Left key events for dropdown.
|
|
382
392
|
// Default context has the void callbacks for above key events
|
|
383
|
-
return (0, _react2.jsx)(DropdownMenuWrapper
|
|
393
|
+
return (0, _react2.jsx)(DropdownMenuWrapper
|
|
394
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
395
|
+
, (0, _extends2.default)({
|
|
384
396
|
arrowKeyNavigationProviderOptions: _objectSpread(_objectSpread({}, props.arrowKeyNavigationProviderOptions), {}, {
|
|
385
397
|
keyDownHandlerContext: keyDownHandlerContext
|
|
386
398
|
})
|
|
@@ -20,7 +20,7 @@ var _default_1 = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
|
20
20
|
// Ignored via go/ees007
|
|
21
21
|
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
22
22
|
// TODO: (from codemod) Buttons with "component", "css" or "style" prop can't be automatically migrated with codemods. Please migrate it manually.
|
|
23
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
24
24
|
style: {
|
|
25
25
|
alignItems: 'center'
|
|
26
26
|
}
|
|
@@ -368,6 +368,7 @@ export let ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJECT) {
|
|
|
368
368
|
ACTION_SUBJECT["BLOCK_MENU_ITEM"] = "blockMenuItem";
|
|
369
369
|
ACTION_SUBJECT["PASTE_ACTIONS_MENU"] = "pasteActionsMenu";
|
|
370
370
|
ACTION_SUBJECT["SYNCED_BLOCK"] = "syncedBlock";
|
|
371
|
+
ACTION_SUBJECT["NATIVE_EMBED"] = "nativeEmbed";
|
|
371
372
|
return ACTION_SUBJECT;
|
|
372
373
|
}({});
|
|
373
374
|
export let ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
|
|
@@ -26,7 +26,9 @@ export const IconCard = ({
|
|
|
26
26
|
label
|
|
27
27
|
}) => {
|
|
28
28
|
return /*#__PURE__*/React.createElement(IconCardGlyph, {
|
|
29
|
-
"aria-label": label
|
|
29
|
+
"aria-label": label
|
|
30
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
31
|
+
,
|
|
30
32
|
style: {
|
|
31
33
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
32
34
|
width: '24px',
|
|
@@ -26,7 +26,9 @@ export const IconEmbed = ({
|
|
|
26
26
|
label
|
|
27
27
|
}) => {
|
|
28
28
|
return /*#__PURE__*/React.createElement(IconEmbedGlyph, {
|
|
29
|
-
"aria-label": label
|
|
29
|
+
"aria-label": label
|
|
30
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
31
|
+
,
|
|
30
32
|
style: {
|
|
31
33
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
32
34
|
width: '24px',
|
|
@@ -26,7 +26,9 @@ export const IconInline = ({
|
|
|
26
26
|
label
|
|
27
27
|
}) => {
|
|
28
28
|
return /*#__PURE__*/React.createElement(IconInlineGlyph, {
|
|
29
|
-
"aria-label": label
|
|
29
|
+
"aria-label": label
|
|
30
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
31
|
+
,
|
|
30
32
|
style: {
|
|
31
33
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
32
34
|
width: '24px',
|
|
@@ -28,7 +28,9 @@ export const IconUrl = ({
|
|
|
28
28
|
label
|
|
29
29
|
}) => {
|
|
30
30
|
return /*#__PURE__*/React.createElement(IconUrlGlyph, {
|
|
31
|
-
"aria-label": label
|
|
31
|
+
"aria-label": label
|
|
32
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
33
|
+
,
|
|
32
34
|
style: {
|
|
33
35
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
34
36
|
width: '24px',
|
|
@@ -82,6 +82,7 @@ function ElementList({
|
|
|
82
82
|
setColumnCount(getColumnCount(containerWidth));
|
|
83
83
|
const updatedScrollbarWidth = getScrollbarWidth();
|
|
84
84
|
if (updatedScrollbarWidth > 0) {
|
|
85
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
|
|
85
86
|
setScrollbarWidth(updatedScrollbarWidth);
|
|
86
87
|
}
|
|
87
88
|
}
|
|
@@ -506,8 +507,7 @@ const elementItemsWrapper = css({
|
|
|
506
507
|
padding: "var(--ds-space-025, 2px)",
|
|
507
508
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
508
509
|
'.ReactVirtualized__Grid': {
|
|
509
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
510
|
-
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
|
|
510
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/no-unsafe-design-token-usage -- Ignored via go/DSP-18766
|
|
511
511
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
512
512
|
outline: 'none',
|
|
513
513
|
'&:focus': {
|
|
@@ -148,8 +148,12 @@ function ExtensionWithPluginState(props) {
|
|
|
148
148
|
const extensionContentStyles = expValEquals('platform_editor_extension_styles', 'isEnabled', true) ? extensionContent : content;
|
|
149
149
|
return jsx(Fragment, null, expValEquals('cc_editor_lcm_readonly_initial', 'isEnabled', true) ? null : showLegacyContentHeader && jsx(LegacyContentHeader, {
|
|
150
150
|
isNodeSelected: isNodeSelected,
|
|
151
|
-
isNodeHovered: isNodeHovered
|
|
152
|
-
|
|
151
|
+
isNodeHovered: isNodeHovered
|
|
152
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
153
|
+
,
|
|
154
|
+
onMouseEnter: () => handleMouseEvent(true)
|
|
155
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
156
|
+
,
|
|
153
157
|
onMouseLeave: () => handleMouseEvent(false)
|
|
154
158
|
}), !showLegacyContentHeader && showMacroInteractionDesignUpdates && !isLivePageViewMode && jsx(ExtensionLozenge, {
|
|
155
159
|
isNodeSelected: isNodeSelected,
|
|
@@ -244,7 +248,9 @@ const Extension = props => {
|
|
|
244
248
|
});
|
|
245
249
|
|
|
246
250
|
// Ignored via go/ees005
|
|
247
|
-
return jsx(ExtensionWithPluginState
|
|
251
|
+
return jsx(ExtensionWithPluginState
|
|
252
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
253
|
+
, _extends({
|
|
248
254
|
widthState: {
|
|
249
255
|
width: width !== null && width !== void 0 ? width : 0,
|
|
250
256
|
lineLength
|
|
@@ -181,6 +181,7 @@ export const ExtensionLabel = ({
|
|
|
181
181
|
// Ignored via go/ees005
|
|
182
182
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
183
183
|
, _extends({}, i18n.configure, {
|
|
184
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
184
185
|
values: {
|
|
185
186
|
macroName: text
|
|
186
187
|
}
|
|
@@ -64,7 +64,9 @@ export class Extension extends Component {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
render() {
|
|
67
|
-
return /*#__PURE__*/React.createElement(WithProviders
|
|
67
|
+
return /*#__PURE__*/React.createElement(WithProviders
|
|
68
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
69
|
+
, {
|
|
68
70
|
providers: ['extensionProvider'],
|
|
69
71
|
providerFactory: this.providerFactory,
|
|
70
72
|
renderNode: this.renderWithProvider
|
|
@@ -27,6 +27,7 @@ export function UnknownMacroPlaceholder({
|
|
|
27
27
|
const value = String((_param$value = param === null || param === void 0 ? void 0 : param.value) !== null && _param$value !== void 0 ? _param$value : '').trim();
|
|
28
28
|
return `${key} = ${value}`;
|
|
29
29
|
};
|
|
30
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
|
|
30
31
|
const visibleParams = Object.entries(macroParams).filter(([key]) => !key.startsWith('_')).map(([key, param]) => formatParam(key, param)).join(' | ');
|
|
31
32
|
const headerText = visibleParams ? `${intl.formatMessage(messages.unknownMacroHeader, {
|
|
32
33
|
macroTitle
|
|
@@ -270,6 +270,7 @@ export function getAriaKeyshortcuts(keymap) {
|
|
|
270
270
|
case 'arrowdown':
|
|
271
271
|
return 'Arrow Down';
|
|
272
272
|
default:
|
|
273
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
|
|
273
274
|
return modifier.split('').join(' ');
|
|
274
275
|
}
|
|
275
276
|
}).join('+');
|
|
@@ -63,6 +63,7 @@ const Dropdown = ({
|
|
|
63
63
|
focusEditor();
|
|
64
64
|
}, [fireActionClickEvent, focusEditor, onConfigureClickCallback]);
|
|
65
65
|
return jsx(DropdownMenu, {
|
|
66
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
66
67
|
trigger: ({
|
|
67
68
|
onClick,
|
|
68
69
|
triggerRef,
|
|
@@ -75,7 +76,9 @@ const Dropdown = ({
|
|
|
75
76
|
iconBefore: jsx(ChevronDownIcon, {
|
|
76
77
|
label: configureLinkLabel,
|
|
77
78
|
size: "small"
|
|
78
|
-
})
|
|
79
|
+
})
|
|
80
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
81
|
+
,
|
|
79
82
|
onClick: e => {
|
|
80
83
|
onClick === null || onClick === void 0 ? void 0 : onClick(e);
|
|
81
84
|
fireLinkClickEvent();
|
|
@@ -768,11 +768,15 @@ export class HyperlinkLinkAddToolbar extends PureComponent {
|
|
|
768
768
|
ariaActiveDescendant: ariaActiveDescendant,
|
|
769
769
|
ariaControls: linkSearchListId,
|
|
770
770
|
ariaAutoComplete: true,
|
|
771
|
-
describedById: screenReaderDescriptionId
|
|
771
|
+
describedById: screenReaderDescriptionId
|
|
772
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
773
|
+
,
|
|
772
774
|
ref: ele => this.urlInputContainer = ele,
|
|
773
775
|
testId: 'link-url',
|
|
774
776
|
onSubmit: this.handleSubmit,
|
|
775
|
-
onChange: this.updateInput
|
|
777
|
+
onChange: this.updateInput
|
|
778
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
779
|
+
,
|
|
776
780
|
autoFocus: {
|
|
777
781
|
preventScroll: true
|
|
778
782
|
},
|
|
@@ -795,7 +799,9 @@ export class HyperlinkLinkAddToolbar extends PureComponent {
|
|
|
795
799
|
css: [inputLabel, textLabelMargin]
|
|
796
800
|
}, formatMessage(messages.textVisibleLabel)), jsx("div", {
|
|
797
801
|
css: [inputWrapper, inputWrapperPosition]
|
|
798
|
-
}, jsx(PanelTextInput
|
|
802
|
+
}, jsx(PanelTextInput
|
|
803
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
804
|
+
, {
|
|
799
805
|
ref: ele => this.displayTextInputContainer = ele,
|
|
800
806
|
testId: 'link-text',
|
|
801
807
|
onChange: this.updateTextInput,
|
|
@@ -837,14 +843,17 @@ export class HyperlinkLinkAddToolbar extends PureComponent {
|
|
|
837
843
|
onMouseLeave: this.handleMouseLeaveResultItem
|
|
838
844
|
})));
|
|
839
845
|
if (expValEquals('platform_editor_a11y_escape_link_dialog', 'isEnabled', true)) {
|
|
840
|
-
return
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
846
|
+
return (
|
|
847
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
848
|
+
jsx(FocusLock, {
|
|
849
|
+
returnFocus: {
|
|
850
|
+
preventScroll: true
|
|
851
|
+
},
|
|
852
|
+
focusOptions: {
|
|
853
|
+
preventScroll: true
|
|
854
|
+
}
|
|
855
|
+
}, hyperlinkElement)
|
|
856
|
+
);
|
|
848
857
|
}
|
|
849
858
|
return hyperlinkElement;
|
|
850
859
|
}
|
|
@@ -35,9 +35,13 @@ export function HyperlinkAddToolbar({
|
|
|
35
35
|
timesViewed,
|
|
36
36
|
isOffline
|
|
37
37
|
}) {
|
|
38
|
-
return /*#__PURE__*/React.createElement(WithProviders
|
|
38
|
+
return /*#__PURE__*/React.createElement(WithProviders
|
|
39
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
40
|
+
, {
|
|
39
41
|
providers: ['activityProvider', 'searchProvider'],
|
|
40
|
-
providerFactory: providerFactory
|
|
42
|
+
providerFactory: providerFactory
|
|
43
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
44
|
+
,
|
|
41
45
|
renderNode: ({
|
|
42
46
|
activityProvider,
|
|
43
47
|
searchProvider
|
|
@@ -50,14 +50,18 @@ const LinkSearchList = ({
|
|
|
50
50
|
}, items.map((item, index) => jsx(ForwardedLinkSearchListItemNextWithIntl, {
|
|
51
51
|
id: `link-search-list-item-${index}`,
|
|
52
52
|
item: item,
|
|
53
|
-
selected: selectedIndex === index
|
|
53
|
+
selected: selectedIndex === index
|
|
54
|
+
// eslint-disable-next-line @atlassian/perf-linting/detect-unnecessary-rerenders, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
55
|
+
,
|
|
54
56
|
onFocus: () => onFocus === null || onFocus === void 0 ? void 0 : onFocus(index),
|
|
55
57
|
onKeyDown: onKeyDown,
|
|
56
58
|
onMouseMove: onMouseMove,
|
|
57
59
|
onMouseEnter: onMouseEnter,
|
|
58
60
|
onMouseLeave: onMouseLeave,
|
|
59
61
|
onSelect: onSelect,
|
|
60
|
-
key: item.objectId
|
|
62
|
+
key: item.objectId
|
|
63
|
+
// eslint-disable-next-line @atlassian/perf-linting/detect-unnecessary-rerenders, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
64
|
+
,
|
|
61
65
|
ref: el => listItemRefCallback === null || listItemRefCallback === void 0 ? void 0 : listItemRefCallback(el, item.objectId)
|
|
62
66
|
})));
|
|
63
67
|
}
|
|
@@ -10,7 +10,7 @@ export default function withActivityProvider(WrappedComponent) {
|
|
|
10
10
|
super(...args);
|
|
11
11
|
_defineProperty(this, "renderNode", providers => {
|
|
12
12
|
const {
|
|
13
|
-
providerFactory,
|
|
13
|
+
providerFactory: _providerFactory,
|
|
14
14
|
...props
|
|
15
15
|
} = this.props;
|
|
16
16
|
const {
|
|
@@ -28,7 +28,9 @@ export default function withActivityProvider(WrappedComponent) {
|
|
|
28
28
|
const {
|
|
29
29
|
providerFactory
|
|
30
30
|
} = this.props;
|
|
31
|
-
return /*#__PURE__*/React.createElement(WithProviders
|
|
31
|
+
return /*#__PURE__*/React.createElement(WithProviders
|
|
32
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
33
|
+
, {
|
|
32
34
|
providers: ['activityProvider'],
|
|
33
35
|
providerFactory: providerFactory,
|
|
34
36
|
renderNode: this.renderNode
|
|
@@ -19,8 +19,8 @@ const SMART_TO_ASCII = {
|
|
|
19
19
|
const FIND_SMART_CHAR = new RegExp(`[${Object.keys(SMART_TO_ASCII).join('')}]`, 'g');
|
|
20
20
|
export function filterChildrenBetween(doc, from, to, predicate) {
|
|
21
21
|
const results = [];
|
|
22
|
-
doc.nodesBetween(from, to, (node, pos,
|
|
23
|
-
if (predicate(node, pos,
|
|
22
|
+
doc.nodesBetween(from, to, (node, pos, _parent) => {
|
|
23
|
+
if (predicate(node, pos, _parent)) {
|
|
24
24
|
results.push({
|
|
25
25
|
node,
|
|
26
26
|
pos
|
|
@@ -43,7 +43,7 @@ export function transformNonTextNodesToText(from, to, tr) {
|
|
|
43
43
|
inlineCard: inlineCardNodeType
|
|
44
44
|
} = schema.nodes;
|
|
45
45
|
const nodesToChange = [];
|
|
46
|
-
doc.nodesBetween(from, to, (node, pos,
|
|
46
|
+
doc.nodesBetween(from, to, (node, pos, _parent) => {
|
|
47
47
|
if ([mentionNodeType, textNodeType, emojiNodeType, inlineCardNodeType].includes(node.type)) {
|
|
48
48
|
nodesToChange.push({
|
|
49
49
|
node,
|
|
@@ -67,6 +67,8 @@ export function transformNonTextNodesToText(from, to, tr) {
|
|
|
67
67
|
const startPositionInSelection = Math.max(pos, from);
|
|
68
68
|
const endPositionInSelection = Math.min(pos + node.nodeSize, to);
|
|
69
69
|
const textForReplacing = doc.textBetween(startPositionInSelection, endPositionInSelection);
|
|
70
|
+
|
|
71
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
|
|
70
72
|
const newText = textForReplacing.replace(FIND_SMART_CHAR, match => {
|
|
71
73
|
var _SMART_TO_ASCII$match;
|
|
72
74
|
return (_SMART_TO_ASCII$match = SMART_TO_ASCII[match]) !== null && _SMART_TO_ASCII$match !== void 0 ? _SMART_TO_ASCII$match : match;
|
|
@@ -52,7 +52,9 @@ export const InlineImageCard = ({
|
|
|
52
52
|
return jsx(Fragment, null, jsx(MediaImage, {
|
|
53
53
|
dataURI: preview.dataURI,
|
|
54
54
|
alt: alt,
|
|
55
|
-
previewOrientation: preview.orientation
|
|
55
|
+
previewOrientation: preview.orientation
|
|
56
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
57
|
+
,
|
|
56
58
|
onImageLoad: () => {
|
|
57
59
|
onImageLoad(preview);
|
|
58
60
|
},
|
|
@@ -121,7 +121,9 @@ export const MediaInlineImageCardInternal = ({
|
|
|
121
121
|
value: mediaClient
|
|
122
122
|
}, jsx(InlineImageCard, {
|
|
123
123
|
dimensions: dimensions,
|
|
124
|
-
identifier: identifier
|
|
124
|
+
identifier: identifier
|
|
125
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
126
|
+
,
|
|
125
127
|
renderError: () => jsx(InlineImageCardErrorView, {
|
|
126
128
|
message: formatMessage(messages.unableToLoadContent)
|
|
127
129
|
}),
|
|
@@ -189,7 +191,9 @@ export const MediaInlineImageCardInternal = ({
|
|
|
189
191
|
const mediaViewer = useMemo(() => {
|
|
190
192
|
if (isMediaViewerVisible && mediaClient !== null && mediaClient !== void 0 && mediaClient.mediaClientConfig) {
|
|
191
193
|
return /*#__PURE__*/ReactDOM.createPortal(jsx(MediaViewer, {
|
|
192
|
-
collectionName: identifier.collectionName || ''
|
|
194
|
+
collectionName: identifier.collectionName || ''
|
|
195
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
196
|
+
,
|
|
193
197
|
items: [identifier],
|
|
194
198
|
mediaClientConfig: mediaClient === null || mediaClient === void 0 ? void 0 : mediaClient.mediaClientConfig,
|
|
195
199
|
selectedItem: identifier,
|
|
@@ -83,7 +83,9 @@ export const CommentBadge = /*#__PURE__*/forwardRef(({
|
|
|
83
83
|
}, jsx(Tooltip, {
|
|
84
84
|
position: "top",
|
|
85
85
|
content: title
|
|
86
|
-
}, jsx(CustomThemeButton
|
|
86
|
+
}, jsx(CustomThemeButton
|
|
87
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
88
|
+
, {
|
|
87
89
|
style: {
|
|
88
90
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
89
91
|
height: badgeDimensions,
|
|
@@ -33,7 +33,9 @@ export const CommentBadgeNext = ({
|
|
|
33
33
|
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
34
34
|
position: "top",
|
|
35
35
|
content: title
|
|
36
|
-
}, /*#__PURE__*/React.createElement(Pressable
|
|
36
|
+
}, /*#__PURE__*/React.createElement(Pressable
|
|
37
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
38
|
+
, {
|
|
37
39
|
xcss: [baseStyles, mediumBadgeStyles],
|
|
38
40
|
padding: "space.0",
|
|
39
41
|
onClick: onClick,
|
|
@@ -77,7 +77,9 @@ export const MediaBadges = ({
|
|
|
77
77
|
as: "div",
|
|
78
78
|
testId: "media-badges",
|
|
79
79
|
"data-media-badges": "true",
|
|
80
|
-
contentEditable: false
|
|
80
|
+
contentEditable: false
|
|
81
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
82
|
+
,
|
|
81
83
|
xcss: [containerStyles, useMinimumZIndex && hackedZIndexStyles, extendedResizeOffset && resizeOffsetStyles]
|
|
82
84
|
}, children);
|
|
83
85
|
};
|
|
@@ -4,7 +4,7 @@ import { isFedRamp } from './environment';
|
|
|
4
4
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
5
5
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
6
6
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
7
|
-
const packageVersion = "112.7.
|
|
7
|
+
const packageVersion = "112.7.3";
|
|
8
8
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
9
9
|
// Remove URL as it has UGC
|
|
10
10
|
// Ignored via go/ees007
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { findParentNodeOfTypeClosestToPos } from '@atlaskit/editor-prosemirror/utils';
|
|
2
|
-
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorWideLayoutWidth,
|
|
2
|
+
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorWideLayoutWidth, gridMediumMaxWidth } from '@atlaskit/editor-shared-styles';
|
|
3
3
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
5
4
|
import { BODIED_EXT_PADDING } from '../styles/shared/extension';
|
|
6
5
|
import { LAYOUT_COLUMN_PADDING, LAYOUT_SECTION_MARGIN } from '../styles/shared/layout';
|
|
7
6
|
import { tableCellPadding } from '../styles/shared/table';
|
|
@@ -54,17 +53,12 @@ export const getParentNodeWidth = (pos, state, containerWidth, isFullWidthModeEn
|
|
|
54
53
|
};
|
|
55
54
|
switch (node.type) {
|
|
56
55
|
case schema.nodes.layoutSection:
|
|
57
|
-
// the extra width of the layout does not add to the width of the area the table can be inside
|
|
58
|
-
if (!expValEquals('platform_editor_nested_table_refresh_width_fix', 'isEnabled', true)) {
|
|
59
|
-
parentWidth += akLayoutGutterOffset * 2; // extra width that gets added to layout
|
|
60
|
-
}
|
|
61
|
-
|
|
62
56
|
// Calculate width of parent layout column when
|
|
63
57
|
// Parallel layout with viewport greater than 1024px
|
|
64
58
|
// OR side panel of an extension is open and change the node width to smaller than containerWidth
|
|
65
59
|
if (containerWidth.width > gridMediumMaxWidth || ((_contextPanelPluginKe = contextPanelPluginKey.getState(state)) === null || _contextPanelPluginKe === void 0 ? void 0 : _contextPanelPluginKe.contents.length) > 0 && ((_contextPanelPluginKe2 = contextPanelPluginKey.getState(state)) === null || _contextPanelPluginKe2 === void 0 ? void 0 : _contextPanelPluginKe2.contents[0]) !== undefined) {
|
|
66
60
|
// margin between sections
|
|
67
|
-
parentWidth -=
|
|
61
|
+
parentWidth -= fg('platform_editor_nested_dnd_styles_changes') ? (LAYOUT_SECTION_MARGIN + NESTED_DND_MARGIN_OFFSET + 2) * (node.childCount - 1) : (LAYOUT_SECTION_MARGIN + 2) * (node.childCount - 1);
|
|
68
62
|
const $pos = state.doc.resolve(pos);
|
|
69
63
|
const column = findParentNodeOfTypeClosestToPos($pos, [state.schema.nodes.layoutColumn]);
|
|
70
64
|
if (column && column.node && !isNaN(column.node.attrs.width)) {
|
|
@@ -74,7 +68,7 @@ export const getParentNodeWidth = (pos, state, containerWidth, isFullWidthModeEn
|
|
|
74
68
|
}
|
|
75
69
|
|
|
76
70
|
// account for the padding of the parent node
|
|
77
|
-
parentWidth -=
|
|
71
|
+
parentWidth -= fg('platform_editor_nested_dnd_styles_changes') ? (LAYOUT_COLUMN_PADDING + NESTED_DND_GUTTER_OFFSET) * 2 : LAYOUT_COLUMN_PADDING * 2;
|
|
78
72
|
break;
|
|
79
73
|
case schema.nodes.bodiedExtension:
|
|
80
74
|
parentWidth -= BODIED_EXT_PADDING * 2;
|
|
@@ -115,7 +109,7 @@ const getNestedParentNode = (tablePos, state) => {
|
|
|
115
109
|
return parent ? parent.node : null;
|
|
116
110
|
};
|
|
117
111
|
const calcBreakoutNodeWidth = (layout, containerWidth, isFullWidthModeEnabled, breakoutWidth) => {
|
|
118
|
-
if (breakoutWidth
|
|
112
|
+
if (breakoutWidth) {
|
|
119
113
|
return isFullWidthModeEnabled ? Math.min(containerWidth.lineLength, breakoutWidth) :
|
|
120
114
|
// container width minus breakout padding
|
|
121
115
|
// --ak-editor--breakout-full-page-guttering-padding = (--ak-editor--large-gutter-padding * 2) + --ak-editor--default-gutter-padding
|