@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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 112.7.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`a35f1a8d92461`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a35f1a8d92461) -
|
|
8
|
+
[FFCLEANUP-84844] Clean up stale feature flag platform_editor_nested_table_refresh_width_fix
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 112.7.3
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -374,6 +374,7 @@ var ACTION_SUBJECT = exports.ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJ
|
|
|
374
374
|
ACTION_SUBJECT["BLOCK_MENU_ITEM"] = "blockMenuItem";
|
|
375
375
|
ACTION_SUBJECT["PASTE_ACTIONS_MENU"] = "pasteActionsMenu";
|
|
376
376
|
ACTION_SUBJECT["SYNCED_BLOCK"] = "syncedBlock";
|
|
377
|
+
ACTION_SUBJECT["NATIVE_EMBED"] = "nativeEmbed";
|
|
377
378
|
return ACTION_SUBJECT;
|
|
378
379
|
}({});
|
|
379
380
|
var ACTION_SUBJECT_ID = exports.ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
|
|
@@ -30,7 +30,9 @@ var IconCardGlyph = function IconCardGlyph(_ref) {
|
|
|
30
30
|
var IconCard = exports.IconCard = function IconCard(_ref2) {
|
|
31
31
|
var label = _ref2.label;
|
|
32
32
|
return /*#__PURE__*/_react.default.createElement(IconCardGlyph, {
|
|
33
|
-
"aria-label": label
|
|
33
|
+
"aria-label": label
|
|
34
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
35
|
+
,
|
|
34
36
|
style: {
|
|
35
37
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
36
38
|
width: '24px',
|
|
@@ -30,7 +30,9 @@ var IconEmbedGlyph = function IconEmbedGlyph(_ref) {
|
|
|
30
30
|
var IconEmbed = exports.IconEmbed = function IconEmbed(_ref2) {
|
|
31
31
|
var label = _ref2.label;
|
|
32
32
|
return /*#__PURE__*/_react.default.createElement(IconEmbedGlyph, {
|
|
33
|
-
"aria-label": label
|
|
33
|
+
"aria-label": label
|
|
34
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
35
|
+
,
|
|
34
36
|
style: {
|
|
35
37
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
36
38
|
width: '24px',
|
|
@@ -30,7 +30,9 @@ var IconInlineGlyph = function IconInlineGlyph(_ref) {
|
|
|
30
30
|
var IconInline = exports.IconInline = function IconInline(_ref2) {
|
|
31
31
|
var label = _ref2.label;
|
|
32
32
|
return /*#__PURE__*/_react.default.createElement(IconInlineGlyph, {
|
|
33
|
-
"aria-label": label
|
|
33
|
+
"aria-label": label
|
|
34
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
35
|
+
,
|
|
34
36
|
style: {
|
|
35
37
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
36
38
|
width: '24px',
|
|
@@ -32,7 +32,9 @@ var IconUrlGlyph = function IconUrlGlyph(_ref) {
|
|
|
32
32
|
var IconUrl = exports.IconUrl = function IconUrl(_ref2) {
|
|
33
33
|
var label = _ref2.label;
|
|
34
34
|
return /*#__PURE__*/_react.default.createElement(IconUrlGlyph, {
|
|
35
|
-
"aria-label": label
|
|
35
|
+
"aria-label": label
|
|
36
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
37
|
+
,
|
|
36
38
|
style: {
|
|
37
39
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
38
40
|
width: '24px',
|
|
@@ -96,6 +96,7 @@ function ElementList(_ref) {
|
|
|
96
96
|
setColumnCount((0, _utils.getColumnCount)(containerWidth));
|
|
97
97
|
var updatedScrollbarWidth = (0, _utils.getScrollbarWidth)();
|
|
98
98
|
if (updatedScrollbarWidth > 0) {
|
|
99
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
|
|
99
100
|
setScrollbarWidth(updatedScrollbarWidth);
|
|
100
101
|
}
|
|
101
102
|
}
|
|
@@ -515,8 +516,7 @@ var elementItemsWrapper = (0, _react2.css)({
|
|
|
515
516
|
padding: "var(--ds-space-025, 2px)",
|
|
516
517
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
517
518
|
'.ReactVirtualized__Grid': {
|
|
518
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
519
|
-
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
|
|
519
|
+
// 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
|
|
520
520
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
521
521
|
outline: 'none',
|
|
522
522
|
'&:focus': {
|
|
@@ -148,10 +148,14 @@ function ExtensionWithPluginState(props) {
|
|
|
148
148
|
var extensionContentStyles = (0, _expValEquals.expValEquals)('platform_editor_extension_styles', 'isEnabled', true) ? _styles2.extensionContent : _styles2.content;
|
|
149
149
|
return (0, _react2.jsx)(_react.Fragment, null, (0, _expValEquals.expValEquals)('cc_editor_lcm_readonly_initial', 'isEnabled', true) ? null : showLegacyContentHeader && (0, _react2.jsx)(_LegacyContentHeader.LegacyContentHeader, {
|
|
150
150
|
isNodeSelected: isNodeSelected,
|
|
151
|
-
isNodeHovered: isNodeHovered
|
|
151
|
+
isNodeHovered: isNodeHovered
|
|
152
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
153
|
+
,
|
|
152
154
|
onMouseEnter: function onMouseEnter() {
|
|
153
155
|
return handleMouseEvent(true);
|
|
154
|
-
}
|
|
156
|
+
}
|
|
157
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
158
|
+
,
|
|
155
159
|
onMouseLeave: function onMouseLeave() {
|
|
156
160
|
return handleMouseEvent(false);
|
|
157
161
|
}
|
|
@@ -249,7 +253,9 @@ var Extension = function Extension(props) {
|
|
|
249
253
|
width = _useSharedPluginState.width;
|
|
250
254
|
|
|
251
255
|
// Ignored via go/ees005
|
|
252
|
-
return (0, _react2.jsx)(ExtensionWithPluginState
|
|
256
|
+
return (0, _react2.jsx)(ExtensionWithPluginState
|
|
257
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
258
|
+
, (0, _extends2.default)({
|
|
253
259
|
widthState: {
|
|
254
260
|
width: width !== null && width !== void 0 ? width : 0,
|
|
255
261
|
lineLength: lineLength
|
|
@@ -190,6 +190,7 @@ var ExtensionLabel = exports.ExtensionLabel = function ExtensionLabel(_ref) {
|
|
|
190
190
|
// Ignored via go/ees005
|
|
191
191
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
192
192
|
, (0, _extends2.default)({}, i18n.configure, {
|
|
193
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
193
194
|
values: {
|
|
194
195
|
macroName: text
|
|
195
196
|
}
|
|
@@ -85,7 +85,9 @@ var Extension = exports.Extension = /*#__PURE__*/function (_Component) {
|
|
|
85
85
|
}, {
|
|
86
86
|
key: "render",
|
|
87
87
|
value: function render() {
|
|
88
|
-
return /*#__PURE__*/_react.default.createElement(_providerFactory.WithProviders
|
|
88
|
+
return /*#__PURE__*/_react.default.createElement(_providerFactory.WithProviders
|
|
89
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
90
|
+
, {
|
|
89
91
|
providers: ['extensionProvider'],
|
|
90
92
|
providerFactory: this.providerFactory,
|
|
91
93
|
renderNode: this.renderWithProvider
|
|
@@ -36,6 +36,7 @@ function UnknownMacroPlaceholder(_ref) {
|
|
|
36
36
|
var value = String((_param$value = param === null || param === void 0 ? void 0 : param.value) !== null && _param$value !== void 0 ? _param$value : '').trim();
|
|
37
37
|
return "".concat(key, " = ").concat(value);
|
|
38
38
|
};
|
|
39
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
|
|
39
40
|
var visibleParams = Object.entries(macroParams).filter(function (_ref2) {
|
|
40
41
|
var _ref3 = (0, _slicedToArray2.default)(_ref2, 1),
|
|
41
42
|
key = _ref3[0];
|
|
@@ -386,6 +386,7 @@ function getAriaKeyshortcuts(keymap) {
|
|
|
386
386
|
case 'arrowdown':
|
|
387
387
|
return 'Arrow Down';
|
|
388
388
|
default:
|
|
389
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
|
|
389
390
|
return modifier.split('').join(' ');
|
|
390
391
|
}
|
|
391
392
|
}).join('+');
|
|
@@ -71,6 +71,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
71
71
|
focusEditor();
|
|
72
72
|
}, [fireActionClickEvent, focusEditor, onConfigureClickCallback]);
|
|
73
73
|
return (0, _react2.jsx)(_dropdownMenu.default, {
|
|
74
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
74
75
|
trigger: function trigger(_ref3) {
|
|
75
76
|
var _onClick = _ref3.onClick,
|
|
76
77
|
triggerRef = _ref3.triggerRef,
|
|
@@ -83,7 +84,9 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
83
84
|
iconBefore: (0, _react2.jsx)(_chevronDown.default, {
|
|
84
85
|
label: configureLinkLabel,
|
|
85
86
|
size: "small"
|
|
86
|
-
})
|
|
87
|
+
})
|
|
88
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
89
|
+
,
|
|
87
90
|
onClick: function onClick(e) {
|
|
88
91
|
_onClick === null || _onClick === void 0 || _onClick(e);
|
|
89
92
|
fireLinkClickEvent();
|
|
@@ -916,13 +916,17 @@ var HyperlinkLinkAddToolbar = exports.HyperlinkLinkAddToolbar = /*#__PURE__*/fun
|
|
|
916
916
|
ariaActiveDescendant: ariaActiveDescendant,
|
|
917
917
|
ariaControls: linkSearchListId,
|
|
918
918
|
ariaAutoComplete: true,
|
|
919
|
-
describedById: screenReaderDescriptionId
|
|
919
|
+
describedById: screenReaderDescriptionId
|
|
920
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
921
|
+
,
|
|
920
922
|
ref: function ref(ele) {
|
|
921
923
|
return _this3.urlInputContainer = ele;
|
|
922
924
|
},
|
|
923
925
|
testId: 'link-url',
|
|
924
926
|
onSubmit: this.handleSubmit,
|
|
925
|
-
onChange: this.updateInput
|
|
927
|
+
onChange: this.updateInput
|
|
928
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
929
|
+
,
|
|
926
930
|
autoFocus: {
|
|
927
931
|
preventScroll: true
|
|
928
932
|
},
|
|
@@ -945,7 +949,9 @@ var HyperlinkLinkAddToolbar = exports.HyperlinkLinkAddToolbar = /*#__PURE__*/fun
|
|
|
945
949
|
css: [inputLabel, textLabelMargin]
|
|
946
950
|
}, formatMessage(messages.textVisibleLabel)), (0, _react2.jsx)("div", {
|
|
947
951
|
css: [_ToolbarComponents.inputWrapper, inputWrapperPosition]
|
|
948
|
-
}, (0, _react2.jsx)(_ui.PanelTextInput
|
|
952
|
+
}, (0, _react2.jsx)(_ui.PanelTextInput
|
|
953
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
954
|
+
, {
|
|
949
955
|
ref: function ref(ele) {
|
|
950
956
|
return _this3.displayTextInputContainer = ele;
|
|
951
957
|
},
|
|
@@ -989,14 +995,17 @@ var HyperlinkLinkAddToolbar = exports.HyperlinkLinkAddToolbar = /*#__PURE__*/fun
|
|
|
989
995
|
onMouseLeave: this.handleMouseLeaveResultItem
|
|
990
996
|
})));
|
|
991
997
|
if ((0, _expValEquals.expValEquals)('platform_editor_a11y_escape_link_dialog', 'isEnabled', true)) {
|
|
992
|
-
return (
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
998
|
+
return (
|
|
999
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
1000
|
+
(0, _react2.jsx)(_reactFocusLock.default, {
|
|
1001
|
+
returnFocus: {
|
|
1002
|
+
preventScroll: true
|
|
1003
|
+
},
|
|
1004
|
+
focusOptions: {
|
|
1005
|
+
preventScroll: true
|
|
1006
|
+
}
|
|
1007
|
+
}, hyperlinkElement)
|
|
1008
|
+
);
|
|
1000
1009
|
}
|
|
1001
1010
|
return hyperlinkElement;
|
|
1002
1011
|
}
|
|
@@ -43,9 +43,13 @@ function HyperlinkAddToolbar(_ref2) {
|
|
|
43
43
|
searchSessionId = _ref2.searchSessionId,
|
|
44
44
|
timesViewed = _ref2.timesViewed,
|
|
45
45
|
isOffline = _ref2.isOffline;
|
|
46
|
-
return /*#__PURE__*/_react.default.createElement(_providerFactory.WithProviders
|
|
46
|
+
return /*#__PURE__*/_react.default.createElement(_providerFactory.WithProviders
|
|
47
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
48
|
+
, {
|
|
47
49
|
providers: ['activityProvider', 'searchProvider'],
|
|
48
|
-
providerFactory: providerFactory
|
|
50
|
+
providerFactory: providerFactory
|
|
51
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
52
|
+
,
|
|
49
53
|
renderNode: function renderNode(_ref3) {
|
|
50
54
|
var activityProvider = _ref3.activityProvider,
|
|
51
55
|
searchProvider = _ref3.searchProvider;
|
|
@@ -58,7 +58,9 @@ var LinkSearchList = function LinkSearchList(_ref) {
|
|
|
58
58
|
return (0, _react.jsx)(_LinkSearchListItem.default, {
|
|
59
59
|
id: "link-search-list-item-".concat(index),
|
|
60
60
|
item: item,
|
|
61
|
-
selected: selectedIndex === index
|
|
61
|
+
selected: selectedIndex === index
|
|
62
|
+
// eslint-disable-next-line @atlassian/perf-linting/detect-unnecessary-rerenders, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
63
|
+
,
|
|
62
64
|
onFocus: function onFocus() {
|
|
63
65
|
return _onFocus === null || _onFocus === void 0 ? void 0 : _onFocus(index);
|
|
64
66
|
},
|
|
@@ -67,7 +69,9 @@ var LinkSearchList = function LinkSearchList(_ref) {
|
|
|
67
69
|
onMouseEnter: onMouseEnter,
|
|
68
70
|
onMouseLeave: onMouseLeave,
|
|
69
71
|
onSelect: onSelect,
|
|
70
|
-
key: item.objectId
|
|
72
|
+
key: item.objectId
|
|
73
|
+
// eslint-disable-next-line @atlassian/perf-linting/detect-unnecessary-rerenders, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
74
|
+
,
|
|
71
75
|
ref: function ref(el) {
|
|
72
76
|
return listItemRefCallback === null || listItemRefCallback === void 0 ? void 0 : listItemRefCallback(el, item.objectId);
|
|
73
77
|
}
|
|
@@ -14,7 +14,7 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
14
14
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
15
15
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
16
16
|
var _react = _interopRequireDefault(require("react"));
|
|
17
|
-
var
|
|
17
|
+
var _providerFactory2 = require("../../provider-factory");
|
|
18
18
|
var _excluded = ["providerFactory"];
|
|
19
19
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
20
20
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
@@ -31,7 +31,7 @@ function withActivityProvider(WrappedComponent) {
|
|
|
31
31
|
_this = _callSuper(this, WithActivityProvider, [].concat(args));
|
|
32
32
|
(0, _defineProperty2.default)(_this, "renderNode", function (providers) {
|
|
33
33
|
var _ref = _this.props,
|
|
34
|
-
|
|
34
|
+
_providerFactory = _ref.providerFactory,
|
|
35
35
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
36
36
|
var activityProvider = providers.activityProvider;
|
|
37
37
|
|
|
@@ -48,7 +48,9 @@ function withActivityProvider(WrappedComponent) {
|
|
|
48
48
|
key: "render",
|
|
49
49
|
value: function render() {
|
|
50
50
|
var providerFactory = this.props.providerFactory;
|
|
51
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
51
|
+
return /*#__PURE__*/_react.default.createElement(_providerFactory2.WithProviders
|
|
52
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
53
|
+
, {
|
|
52
54
|
providers: ['activityProvider'],
|
|
53
55
|
providerFactory: providerFactory,
|
|
54
56
|
renderNode: this.renderNode
|
|
@@ -28,8 +28,8 @@ var SMART_TO_ASCII = {
|
|
|
28
28
|
var FIND_SMART_CHAR = new RegExp("[".concat(Object.keys(SMART_TO_ASCII).join(''), "]"), 'g');
|
|
29
29
|
function filterChildrenBetween(doc, from, to, predicate) {
|
|
30
30
|
var results = [];
|
|
31
|
-
doc.nodesBetween(from, to, function (node, pos,
|
|
32
|
-
if (predicate(node, pos,
|
|
31
|
+
doc.nodesBetween(from, to, function (node, pos, _parent) {
|
|
32
|
+
if (predicate(node, pos, _parent)) {
|
|
33
33
|
results.push({
|
|
34
34
|
node: node,
|
|
35
35
|
pos: pos
|
|
@@ -47,7 +47,7 @@ function transformNonTextNodesToText(from, to, tr) {
|
|
|
47
47
|
emojiNodeType = _schema$nodes.emoji,
|
|
48
48
|
inlineCardNodeType = _schema$nodes.inlineCard;
|
|
49
49
|
var nodesToChange = [];
|
|
50
|
-
doc.nodesBetween(from, to, function (node, pos,
|
|
50
|
+
doc.nodesBetween(from, to, function (node, pos, _parent) {
|
|
51
51
|
if ([mentionNodeType, textNodeType, emojiNodeType, inlineCardNodeType].includes(node.type)) {
|
|
52
52
|
nodesToChange.push({
|
|
53
53
|
node: node,
|
|
@@ -70,6 +70,8 @@ function transformNonTextNodesToText(from, to, tr) {
|
|
|
70
70
|
var startPositionInSelection = Math.max(pos, from);
|
|
71
71
|
var endPositionInSelection = Math.min(pos + node.nodeSize, to);
|
|
72
72
|
var textForReplacing = doc.textBetween(startPositionInSelection, endPositionInSelection);
|
|
73
|
+
|
|
74
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
|
|
73
75
|
var _newText = textForReplacing.replace(FIND_SMART_CHAR, function (match) {
|
|
74
76
|
var _SMART_TO_ASCII$match;
|
|
75
77
|
return (_SMART_TO_ASCII$match = SMART_TO_ASCII[match]) !== null && _SMART_TO_ASCII$match !== void 0 ? _SMART_TO_ASCII$match : match;
|
|
@@ -59,7 +59,9 @@ var InlineImageCard = exports.InlineImageCard = function InlineImageCard(_ref) {
|
|
|
59
59
|
return (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(_mediaUi.MediaImage, {
|
|
60
60
|
dataURI: preview.dataURI,
|
|
61
61
|
alt: alt,
|
|
62
|
-
previewOrientation: preview.orientation
|
|
62
|
+
previewOrientation: preview.orientation
|
|
63
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
64
|
+
,
|
|
63
65
|
onImageLoad: function onImageLoad() {
|
|
64
66
|
_onImageLoad(preview);
|
|
65
67
|
},
|
|
@@ -143,7 +143,9 @@ var MediaInlineImageCardInternal = exports.MediaInlineImageCardInternal = functi
|
|
|
143
143
|
value: mediaClient
|
|
144
144
|
}, (0, _react2.jsx)(_inlineImageCard.InlineImageCard, {
|
|
145
145
|
dimensions: dimensions,
|
|
146
|
-
identifier: identifier
|
|
146
|
+
identifier: identifier
|
|
147
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
148
|
+
,
|
|
147
149
|
renderError: function renderError() {
|
|
148
150
|
return (0, _react2.jsx)(_errorView.InlineImageCardErrorView, {
|
|
149
151
|
message: formatMessage(_mediaInlineCard.messages.unableToLoadContent)
|
|
@@ -214,7 +216,9 @@ var MediaInlineImageCardInternal = exports.MediaInlineImageCardInternal = functi
|
|
|
214
216
|
var mediaViewer = (0, _react.useMemo)(function () {
|
|
215
217
|
if (isMediaViewerVisible && mediaClient !== null && mediaClient !== void 0 && mediaClient.mediaClientConfig) {
|
|
216
218
|
return /*#__PURE__*/_reactDom.default.createPortal((0, _react2.jsx)(_mediaViewer.MediaViewer, {
|
|
217
|
-
collectionName: identifier.collectionName || ''
|
|
219
|
+
collectionName: identifier.collectionName || ''
|
|
220
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
221
|
+
,
|
|
218
222
|
items: [identifier],
|
|
219
223
|
mediaClientConfig: mediaClient === null || mediaClient === void 0 ? void 0 : mediaClient.mediaClientConfig,
|
|
220
224
|
selectedItem: identifier,
|
|
@@ -97,7 +97,9 @@ var CommentBadge = exports.CommentBadge = /*#__PURE__*/(0, _react.forwardRef)(fu
|
|
|
97
97
|
}, (0, _react2.jsx)(_tooltip.default, {
|
|
98
98
|
position: "top",
|
|
99
99
|
content: title
|
|
100
|
-
}, (0, _react2.jsx)(_customThemeButton.default
|
|
100
|
+
}, (0, _react2.jsx)(_customThemeButton.default
|
|
101
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
102
|
+
, {
|
|
101
103
|
style: {
|
|
102
104
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
103
105
|
height: badgeDimensions,
|
|
@@ -43,7 +43,9 @@ var CommentBadgeNext = exports.CommentBadgeNext = function CommentBadgeNext(_ref
|
|
|
43
43
|
return /*#__PURE__*/_react.default.createElement(_tooltip.default, {
|
|
44
44
|
position: "top",
|
|
45
45
|
content: title
|
|
46
|
-
}, /*#__PURE__*/_react.default.createElement(_primitives.Pressable
|
|
46
|
+
}, /*#__PURE__*/_react.default.createElement(_primitives.Pressable
|
|
47
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
48
|
+
, {
|
|
47
49
|
xcss: [baseStyles, mediumBadgeStyles],
|
|
48
50
|
padding: "space.0",
|
|
49
51
|
onClick: onClick,
|
|
@@ -91,7 +91,9 @@ var MediaBadges = exports.MediaBadges = function MediaBadges(_ref) {
|
|
|
91
91
|
as: "div",
|
|
92
92
|
testId: "media-badges",
|
|
93
93
|
"data-media-badges": "true",
|
|
94
|
-
contentEditable: false
|
|
94
|
+
contentEditable: false
|
|
95
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
96
|
+
,
|
|
95
97
|
xcss: [containerStyles, useMinimumZIndex && hackedZIndexStyles, extendedResizeOffset && resizeOffsetStyles]
|
|
96
98
|
}, children);
|
|
97
99
|
};
|
|
@@ -19,7 +19,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
19
19
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
20
20
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
21
21
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
22
|
-
var packageVersion = "112.7.
|
|
22
|
+
var packageVersion = "112.7.3";
|
|
23
23
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
24
24
|
// Remove URL as it has UGC
|
|
25
25
|
// Ignored via go/ees007
|
|
@@ -7,7 +7,6 @@ exports.layoutToWidth = exports.getTableWidthWithNumberColumn = exports.getTable
|
|
|
7
7
|
var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
8
8
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
9
9
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
10
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
11
10
|
var _extension = require("../styles/shared/extension");
|
|
12
11
|
var _layout = require("../styles/shared/layout");
|
|
13
12
|
var _table = require("../styles/shared/table");
|
|
@@ -58,17 +57,12 @@ var getParentNodeWidth = exports.getParentNodeWidth = function getParentNodeWidt
|
|
|
58
57
|
};
|
|
59
58
|
switch (node.type) {
|
|
60
59
|
case schema.nodes.layoutSection:
|
|
61
|
-
// the extra width of the layout does not add to the width of the area the table can be inside
|
|
62
|
-
if (!(0, _expValEquals.expValEquals)('platform_editor_nested_table_refresh_width_fix', 'isEnabled', true)) {
|
|
63
|
-
parentWidth += _editorSharedStyles.akLayoutGutterOffset * 2; // extra width that gets added to layout
|
|
64
|
-
}
|
|
65
|
-
|
|
66
60
|
// Calculate width of parent layout column when
|
|
67
61
|
// Parallel layout with viewport greater than 1024px
|
|
68
62
|
// OR side panel of an extension is open and change the node width to smaller than containerWidth
|
|
69
63
|
if (containerWidth.width > _editorSharedStyles.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) {
|
|
70
64
|
// margin between sections
|
|
71
|
-
parentWidth -= (0,
|
|
65
|
+
parentWidth -= (0, _platformFeatureFlags.fg)('platform_editor_nested_dnd_styles_changes') ? (_layout.LAYOUT_SECTION_MARGIN + NESTED_DND_MARGIN_OFFSET + 2) * (node.childCount - 1) : (_layout.LAYOUT_SECTION_MARGIN + 2) * (node.childCount - 1);
|
|
72
66
|
var $pos = state.doc.resolve(pos);
|
|
73
67
|
var column = (0, _utils.findParentNodeOfTypeClosestToPos)($pos, [state.schema.nodes.layoutColumn]);
|
|
74
68
|
if (column && column.node && !isNaN(column.node.attrs.width)) {
|
|
@@ -78,7 +72,7 @@ var getParentNodeWidth = exports.getParentNodeWidth = function getParentNodeWidt
|
|
|
78
72
|
}
|
|
79
73
|
|
|
80
74
|
// account for the padding of the parent node
|
|
81
|
-
parentWidth -= (0,
|
|
75
|
+
parentWidth -= (0, _platformFeatureFlags.fg)('platform_editor_nested_dnd_styles_changes') ? (_layout.LAYOUT_COLUMN_PADDING + NESTED_DND_GUTTER_OFFSET) * 2 : _layout.LAYOUT_COLUMN_PADDING * 2;
|
|
82
76
|
break;
|
|
83
77
|
case schema.nodes.bodiedExtension:
|
|
84
78
|
parentWidth -= _extension.BODIED_EXT_PADDING * 2;
|
|
@@ -121,7 +115,7 @@ var getNestedParentNode = function getNestedParentNode(tablePos, state) {
|
|
|
121
115
|
return parent ? parent.node : null;
|
|
122
116
|
};
|
|
123
117
|
var calcBreakoutNodeWidth = function calcBreakoutNodeWidth(layout, containerWidth, isFullWidthModeEnabled, breakoutWidth) {
|
|
124
|
-
if (breakoutWidth
|
|
118
|
+
if (breakoutWidth) {
|
|
125
119
|
return isFullWidthModeEnabled ? Math.min(containerWidth.lineLength, breakoutWidth) :
|
|
126
120
|
// container width minus breakout padding
|
|
127
121
|
// --ak-editor--breakout-full-page-guttering-padding = (--ak-editor--large-gutter-padding * 2) + --ak-editor--default-gutter-padding
|
|
@@ -103,13 +103,13 @@ var linkify = function linkify(state) {
|
|
|
103
103
|
//
|
|
104
104
|
if (!links[ln].schema) {
|
|
105
105
|
// Ignored via go/ees005
|
|
106
|
-
// eslint-disable-next-line require-unicode-regexp
|
|
106
|
+
// eslint-disable-next-line require-unicode-regexp, @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
|
|
107
107
|
urlText = state.md.normalizeLinkText('http://' + urlText).replace(/^http:\/\//, '');
|
|
108
108
|
// Ignored via go/ees005
|
|
109
109
|
// eslint-disable-next-line require-unicode-regexp
|
|
110
110
|
} else if (links[ln].schema === 'mailto:' && !/^mailto:/i.test(urlText)) {
|
|
111
111
|
// Ignored via go/ees005
|
|
112
|
-
// eslint-disable-next-line require-unicode-regexp
|
|
112
|
+
// eslint-disable-next-line require-unicode-regexp, @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
|
|
113
113
|
urlText = state.md.normalizeLinkText('mailto:' + urlText).replace(/^mailto:/, '');
|
|
114
114
|
} else {
|
|
115
115
|
urlText = state.md.normalizeLinkText(urlText);
|
|
@@ -331,7 +331,9 @@ var BreakoutResizer = exports.BreakoutResizer = function BreakoutResizer(_ref) {
|
|
|
331
331
|
});
|
|
332
332
|
}
|
|
333
333
|
return /*#__PURE__*/_react.default.createElement(_Resizer.default, {
|
|
334
|
-
ref: resizerRef
|
|
334
|
+
ref: resizerRef
|
|
335
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
336
|
+
,
|
|
335
337
|
enable: {
|
|
336
338
|
left: true,
|
|
337
339
|
right: true
|
|
@@ -134,6 +134,8 @@ var ResizerNext = function ResizerNext(props, ref) {
|
|
|
134
134
|
alignItems: handlePositioning === 'adjacent' ? 'center' : undefined
|
|
135
135
|
};
|
|
136
136
|
var offset = handlePositioning === 'adjacent' ? "calc(".concat(baseHandleStyles.width, " * -1)") : "calc(".concat(baseHandleStyles.width, " * -0.5)");
|
|
137
|
+
|
|
138
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
|
|
137
139
|
var nextHandleStyles = SUPPORTED_HANDLES.reduce(function (result, position) {
|
|
138
140
|
return _objectSpread(_objectSpread({}, result), {}, (0, _defineProperty2.default)({}, position, _objectSpread(_objectSpread({}, baseHandleStyles), {}, (0, _defineProperty2.default)({}, position, offset), handleStyles === null || handleStyles === void 0 ? void 0 : handleStyles[position])));
|
|
139
141
|
}, {});
|
|
@@ -201,7 +203,9 @@ var ResizerNext = function ResizerNext(props, ref) {
|
|
|
201
203
|
return snapGap;
|
|
202
204
|
}, [snap, snapGap]);
|
|
203
205
|
return /*#__PURE__*/_react.default.createElement(_reResizable.Resizable, (0, _extends2.default)({
|
|
204
|
-
ref: resizable
|
|
206
|
+
ref: resizable
|
|
207
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
208
|
+
,
|
|
205
209
|
size: {
|
|
206
210
|
width: width !== null && width !== void 0 ? width : 'auto',
|
|
207
211
|
// just content itself (no paddings)
|
|
@@ -32,6 +32,7 @@ var EditorToolbarProvider = exports.EditorToolbarProvider = function EditorToolb
|
|
|
32
32
|
editorToolbarDockingPreference = _ref.editorToolbarDockingPreference,
|
|
33
33
|
isOffline = _ref.isOffline;
|
|
34
34
|
return /*#__PURE__*/_react.default.createElement(EditorToolbarContext.Provider, {
|
|
35
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-inline-context-value, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
35
36
|
value: {
|
|
36
37
|
editorView: editorView,
|
|
37
38
|
editorAppearance: editorAppearance,
|
|
@@ -61,6 +61,7 @@ var AssistiveText = exports.AssistiveText = function AssistiveText(_ref) {
|
|
|
61
61
|
}, [isInFocus]);
|
|
62
62
|
(0, _react.useEffect)(function () {
|
|
63
63
|
if (!debounced) {
|
|
64
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
|
|
64
65
|
debounceStatusUpdate();
|
|
65
66
|
return function () {
|
|
66
67
|
debounceStatusUpdate.cancel();
|
|
@@ -69,10 +70,13 @@ var AssistiveText = exports.AssistiveText = function AssistiveText(_ref) {
|
|
|
69
70
|
}, [assistiveText, isInFocus, debounced, debounceStatusUpdate]);
|
|
70
71
|
(0, _react.useEffect)(function () {
|
|
71
72
|
if (debounced) {
|
|
73
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
|
|
72
74
|
setBump(function (prevBump) {
|
|
73
75
|
return !prevBump;
|
|
74
76
|
});
|
|
77
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
|
|
75
78
|
setDebounced(true);
|
|
79
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
|
|
76
80
|
setSilenced(!isInFocus);
|
|
77
81
|
}
|
|
78
82
|
}, [assistiveText, isInFocus, debounced]);
|
|
@@ -71,7 +71,9 @@ var ContextPanelWidthProvider = exports.ContextPanelWidthProvider = /*#__PURE__*
|
|
|
71
71
|
var _this$state = this.state,
|
|
72
72
|
width = _this$state.width,
|
|
73
73
|
positionedOverEditor = _this$state.positionedOverEditor;
|
|
74
|
-
return /*#__PURE__*/_react.default.createElement(Provider
|
|
74
|
+
return /*#__PURE__*/_react.default.createElement(Provider
|
|
75
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
76
|
+
, {
|
|
75
77
|
value: {
|
|
76
78
|
width: width,
|
|
77
79
|
positionedOverEditor: positionedOverEditor,
|
|
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
24
24
|
* @jsx jsx
|
|
25
25
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "112.7.
|
|
27
|
+
var packageVersion = "112.7.3";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -103,7 +103,9 @@ var FloatingToolbarButton = function FloatingToolbarButton(_ref, forwardedRef) {
|
|
|
103
103
|
}, /*#__PURE__*/_react.default.createElement(_customThemeButton.default
|
|
104
104
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/design-system/no-unsafe-style-overrides -- Ignored via go/DSP-18766
|
|
105
105
|
, {
|
|
106
|
-
className: className
|
|
106
|
+
className: className
|
|
107
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
108
|
+
,
|
|
107
109
|
ref: function ref(buttonElement) {
|
|
108
110
|
setSpotlightReferenceElement(buttonElement);
|
|
109
111
|
if (forwardedRef && (0, _experiments.editorExperiment)('platform_synced_block', true)) {
|
|
@@ -114,7 +116,7 @@ var FloatingToolbarButton = function FloatingToolbarButton(_ref, forwardedRef) {
|
|
|
114
116
|
}
|
|
115
117
|
}
|
|
116
118
|
}
|
|
117
|
-
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides
|
|
119
|
+
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
118
120
|
,
|
|
119
121
|
theme: function theme(adgTheme, themeProps) {
|
|
120
122
|
var _adgTheme = adgTheme(themeProps),
|
|
@@ -243,7 +243,9 @@ var HoverLinkOverlay = function HoverLinkOverlay(_ref) {
|
|
|
243
243
|
ref: hoverLinkButtonRef,
|
|
244
244
|
xcss: linkStylesCommon,
|
|
245
245
|
href: url,
|
|
246
|
-
target: "_blank"
|
|
246
|
+
target: "_blank"
|
|
247
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
248
|
+
,
|
|
247
249
|
style: {
|
|
248
250
|
paddingBlock: compactPadding ? '1px' : (0, _expValEquals.expValEquals)('confluence_compact_text_format', 'isEnabled', true) || (0, _expValEquals.expValEquals)('cc_editor_ai_content_mode', 'variant', 'test') && (0, _platformFeatureFlags.fg)('platform_editor_content_mode_button_mvp') ? DYNAMIC_PADDING_BLOCK : "var(--ds-space-025, 2px)"
|
|
249
251
|
},
|
|
@@ -58,7 +58,9 @@ var Mention = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
|
58
58
|
}, {
|
|
59
59
|
key: "render",
|
|
60
60
|
value: function render() {
|
|
61
|
-
return /*#__PURE__*/_react.default.createElement(_providerFactory.WithProviders
|
|
61
|
+
return /*#__PURE__*/_react.default.createElement(_providerFactory.WithProviders
|
|
62
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
63
|
+
, {
|
|
62
64
|
providers: ['mentionProvider', 'profilecardProvider'],
|
|
63
65
|
providerFactory: this.providerFactory,
|
|
64
66
|
renderNode: this.renderWithProvider
|