@atlaskit/editor-plugin-media 10.1.0 → 10.1.1
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 +6 -0
- package/dist/cjs/nodeviews/mediaGroup.js +2 -2
- package/dist/cjs/nodeviews/mediaInline.js +3 -3
- package/dist/cjs/nodeviews/mediaNodeView/index.js +1 -1
- package/dist/cjs/nodeviews/mediaNodeView/media.js +1 -1
- package/dist/cjs/nodeviews/mediaSingle.js +2 -2
- package/dist/cjs/pm-plugins/pixel-resizing/ui/index.js +4 -4
- package/dist/cjs/pm-plugins/pixel-resizing/ui/pixel-entry.js +4 -4
- package/dist/cjs/ui/CommentBadge/index.js +2 -2
- package/dist/cjs/ui/MediaLinkingToolbar.js +6 -6
- package/dist/cjs/ui/MediaPicker/DropzoneWrapper.js +2 -2
- package/dist/cjs/ui/ResizableMediaSingle/index.js +1 -1
- package/dist/cjs/ui/toolbar/index.js +2 -2
- package/dist/cjs/ui/toolbar/layout-group.js +1 -1
- package/dist/cjs/ui/toolbar/linking.js +5 -5
- package/dist/cjs/ui/toolbar/mediaInline.js +2 -2
- package/dist/es2019/nodeviews/mediaGroup.js +2 -2
- package/dist/es2019/nodeviews/mediaInline.js +3 -3
- package/dist/es2019/nodeviews/mediaNodeView/index.js +1 -1
- package/dist/es2019/nodeviews/mediaNodeView/media.js +1 -1
- package/dist/es2019/nodeviews/mediaSingle.js +2 -2
- package/dist/es2019/pm-plugins/pixel-resizing/ui/index.js +4 -4
- package/dist/es2019/pm-plugins/pixel-resizing/ui/pixel-entry.js +4 -4
- package/dist/es2019/ui/CommentBadge/index.js +2 -2
- package/dist/es2019/ui/MediaLinkingToolbar.js +6 -6
- package/dist/es2019/ui/MediaPicker/DropzoneWrapper.js +2 -2
- package/dist/es2019/ui/ResizableMediaSingle/index.js +1 -1
- package/dist/es2019/ui/toolbar/index.js +2 -2
- package/dist/es2019/ui/toolbar/layout-group.js +1 -1
- package/dist/es2019/ui/toolbar/linking.js +5 -5
- package/dist/es2019/ui/toolbar/mediaInline.js +2 -2
- package/dist/esm/nodeviews/mediaGroup.js +2 -2
- package/dist/esm/nodeviews/mediaInline.js +3 -3
- package/dist/esm/nodeviews/mediaNodeView/index.js +1 -1
- package/dist/esm/nodeviews/mediaNodeView/media.js +1 -1
- package/dist/esm/nodeviews/mediaSingle.js +2 -2
- package/dist/esm/pm-plugins/pixel-resizing/ui/index.js +4 -4
- package/dist/esm/pm-plugins/pixel-resizing/ui/pixel-entry.js +4 -4
- package/dist/esm/ui/CommentBadge/index.js +2 -2
- package/dist/esm/ui/MediaLinkingToolbar.js +6 -6
- package/dist/esm/ui/MediaPicker/DropzoneWrapper.js +2 -2
- package/dist/esm/ui/ResizableMediaSingle/index.js +1 -1
- package/dist/esm/ui/toolbar/index.js +2 -2
- package/dist/esm/ui/toolbar/layout-group.js +1 -1
- package/dist/esm/ui/toolbar/linking.js +5 -5
- package/dist/esm/ui/toolbar/mediaInline.js +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -54,11 +54,11 @@ var MediaGroupNodeView = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
54
54
|
pluginInjectionApi = props.pluginInjectionApi;
|
|
55
55
|
var getPos = this.getPos;
|
|
56
56
|
return /*#__PURE__*/_react.default.createElement(_providerFactory.WithProviders
|
|
57
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
57
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
58
58
|
, {
|
|
59
59
|
providers: ['contextIdentifierProvider'],
|
|
60
60
|
providerFactory: providerFactory
|
|
61
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
61
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
62
62
|
,
|
|
63
63
|
renderNode: function renderNode(_ref2) {
|
|
64
64
|
var contextIdentifierProvider = _ref2.contextIdentifierProvider;
|
|
@@ -201,7 +201,7 @@ var MediaInline = exports.MediaInline = function MediaInline(props) {
|
|
|
201
201
|
alt: alt,
|
|
202
202
|
width: width,
|
|
203
203
|
height: height
|
|
204
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
204
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
205
205
|
,
|
|
206
206
|
border: {
|
|
207
207
|
borderSize: borderMark === null || borderMark === void 0 ? void 0 : borderMark.attrs.size,
|
|
@@ -311,11 +311,11 @@ var MediaInlineNodeView = exports.MediaInlineNodeView = /*#__PURE__*/function (_
|
|
|
311
311
|
var view = this.view;
|
|
312
312
|
var getPos = this.getPos;
|
|
313
313
|
return (0, _react2.jsx)(_providerFactory.WithProviders
|
|
314
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
314
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
315
315
|
, {
|
|
316
316
|
providers: ['contextIdentifierProvider'],
|
|
317
317
|
providerFactory: providerFactory
|
|
318
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
318
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
319
319
|
,
|
|
320
320
|
renderNode: function renderNode(_ref4) {
|
|
321
321
|
var _mediaProvider = _ref4.mediaProvider,
|
|
@@ -281,7 +281,7 @@ var MediaNodeView = /*#__PURE__*/function (_SelectionBasedNodeVi) {
|
|
|
281
281
|
value: function render() {
|
|
282
282
|
var providerFactory = this.reactComponentProps.providerFactory;
|
|
283
283
|
return /*#__PURE__*/_react.default.createElement(_providerFactory.WithProviders
|
|
284
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
284
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
285
285
|
, {
|
|
286
286
|
providers: ['contextIdentifierProvider'],
|
|
287
287
|
providerFactory: providerFactory,
|
|
@@ -367,7 +367,7 @@ var MediaNode = exports.MediaNode = /*#__PURE__*/function (_Component) {
|
|
|
367
367
|
borderWidth: borderMark === null || borderMark === void 0 ? void 0 : borderMark.attrs.size,
|
|
368
368
|
selected: selected
|
|
369
369
|
}, /*#__PURE__*/_react.default.createElement(_analyticsNext.AnalyticsContext
|
|
370
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
370
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
371
371
|
, {
|
|
372
372
|
data: (0, _defineProperty2.default)({}, _analyticsNamespacedContext.MEDIA_CONTEXT, {
|
|
373
373
|
border: !!borderMark
|
|
@@ -254,11 +254,11 @@ var MediaSingleNodeView = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
254
254
|
// getPos is a boolean for marks, since this is a node we know it must be a function
|
|
255
255
|
var getPos = this.getPos;
|
|
256
256
|
return (0, _react2.jsx)(_providerFactory.WithProviders
|
|
257
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
257
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
258
258
|
, {
|
|
259
259
|
providers: ['contextIdentifierProvider'],
|
|
260
260
|
providerFactory: providerFactory
|
|
261
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
261
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
262
262
|
,
|
|
263
263
|
renderNode: function renderNode(_ref2) {
|
|
264
264
|
var contextIdentifierProvider = _ref2.contextIdentifierProvider;
|
|
@@ -80,7 +80,7 @@ var PixelEntry = exports.PixelEntry = function PixelEntry(_ref) {
|
|
|
80
80
|
mediaHeight: mediaHeight || _mediaSingle.DEFAULT_IMAGE_HEIGHT,
|
|
81
81
|
minWidth: minWidth,
|
|
82
82
|
maxWidth: maxWidth
|
|
83
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
83
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
84
84
|
,
|
|
85
85
|
onChange: function onChange(valid) {
|
|
86
86
|
if (valid) {
|
|
@@ -89,7 +89,7 @@ var PixelEntry = exports.PixelEntry = function PixelEntry(_ref) {
|
|
|
89
89
|
hoverDecoration === null || hoverDecoration === void 0 || hoverDecoration(mediaSingle, false)(editorView.state, dispatch, editorView);
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
92
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
93
93
|
,
|
|
94
94
|
onSubmit: function onSubmit(_ref2) {
|
|
95
95
|
var width = _ref2.width,
|
|
@@ -99,7 +99,7 @@ var PixelEntry = exports.PixelEntry = function PixelEntry(_ref) {
|
|
|
99
99
|
dispatch(tr);
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
102
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
103
103
|
,
|
|
104
104
|
onMigrate: function onMigrate() {
|
|
105
105
|
var tr = state.tr.setNodeMarkup(selectedMediaSingleNode.pos, undefined, _objectSpread(_objectSpread({}, selectedMediaSingleNode.node.attrs), {}, {
|
|
@@ -114,7 +114,7 @@ var PixelEntry = exports.PixelEntry = function PixelEntry(_ref) {
|
|
|
114
114
|
}
|
|
115
115
|
dispatch(tr);
|
|
116
116
|
}
|
|
117
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
117
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
118
118
|
,
|
|
119
119
|
onCloseAndSave: function onCloseAndSave(_ref3, setFocus) {
|
|
120
120
|
var width = _ref3.width,
|
|
@@ -209,7 +209,7 @@ var PixelEntryComponent = exports.PixelEntryComponent = function PixelEntryCompo
|
|
|
209
209
|
// Ignored via go/ees005
|
|
210
210
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
211
211
|
, (0, _extends2.default)({}, fieldProps, {
|
|
212
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/no-unsafe-style-overrides, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
212
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/no-unsafe-style-overrides, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
213
213
|
css: [_styles.pixelSizingWidthInput, _styles.pixelSizingInput],
|
|
214
214
|
appearance: "none",
|
|
215
215
|
isCompact: true,
|
|
@@ -236,7 +236,7 @@ var PixelEntryComponent = exports.PixelEntryComponent = function PixelEntryCompo
|
|
|
236
236
|
// Ignored via go/ees005
|
|
237
237
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
238
238
|
, (0, _extends2.default)({}, fieldProps, {
|
|
239
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/no-unsafe-style-overrides, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
239
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/no-unsafe-style-overrides, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
240
240
|
css: [_styles.pixelSizingHeightInput, _styles.pixelSizingInput],
|
|
241
241
|
appearance: "none",
|
|
242
242
|
isCompact: true,
|
|
@@ -366,7 +366,7 @@ var PixelEntryComponentNext = exports.PixelEntryComponentNext = function PixelEn
|
|
|
366
366
|
}))), !isViewMode && (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(_primitives.Box, {
|
|
367
367
|
xcss: dividerStyles
|
|
368
368
|
}), (0, _react2.jsx)(_new.IconButton
|
|
369
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
369
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
370
370
|
, {
|
|
371
371
|
icon: function icon() {
|
|
372
372
|
return (0, _react2.jsx)(_cross.default, {
|
|
@@ -376,7 +376,7 @@ var PixelEntryComponentNext = exports.PixelEntryComponentNext = function PixelEn
|
|
|
376
376
|
},
|
|
377
377
|
label: formatMessage(_media.pixelEntryMessages.closePixelEntry),
|
|
378
378
|
appearance: "subtle"
|
|
379
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
379
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
380
380
|
,
|
|
381
381
|
onClick: function onClick() {
|
|
382
382
|
handleCloseAndSave({
|
|
@@ -68,12 +68,12 @@ var CommentBadgeWrapper = exports.CommentBadgeWrapper = function CommentBadgeWra
|
|
|
68
68
|
onClick: onClick,
|
|
69
69
|
mediaSingleElement: mediaSingleElement,
|
|
70
70
|
status: entered ? 'entered' : status
|
|
71
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
71
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
72
72
|
,
|
|
73
73
|
onMouseEnter: function onMouseEnter() {
|
|
74
74
|
return setEntered(true);
|
|
75
75
|
}
|
|
76
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
76
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
77
77
|
,
|
|
78
78
|
onMouseLeave: function onMouseLeave() {
|
|
79
79
|
return setEntered(false);
|
|
@@ -127,7 +127,7 @@ var LinkAddToolbar = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
127
127
|
label: formatLinkAddressText,
|
|
128
128
|
size: "small"
|
|
129
129
|
})
|
|
130
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
130
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
131
131
|
,
|
|
132
132
|
onClick: function onClick() {
|
|
133
133
|
return _this.handleOnBack({
|
|
@@ -135,7 +135,7 @@ var LinkAddToolbar = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
135
135
|
inputMethod: currentInputMethod
|
|
136
136
|
});
|
|
137
137
|
}
|
|
138
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
138
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
139
139
|
,
|
|
140
140
|
onKeyDown: function onKeyDown(event) {
|
|
141
141
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
@@ -154,7 +154,7 @@ var LinkAddToolbar = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
154
154
|
autoFocus: true,
|
|
155
155
|
onCancel: _this.handleCancel,
|
|
156
156
|
defaultValue: value
|
|
157
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
157
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
158
158
|
,
|
|
159
159
|
onSubmit: function onSubmit(inputValue) {
|
|
160
160
|
var validationErrors = _this.getValidationErrors(inputValue, currentInputMethod);
|
|
@@ -165,7 +165,7 @@ var LinkAddToolbar = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
165
165
|
_onSubmit();
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
168
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
169
169
|
,
|
|
170
170
|
onChange: function onChange(value) {
|
|
171
171
|
_this.setState({
|
|
@@ -184,12 +184,12 @@ var LinkAddToolbar = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
184
184
|
icon: (0, _react2.jsx)(_linkBroken.default, {
|
|
185
185
|
label: formatUnlinkText
|
|
186
186
|
})
|
|
187
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
187
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
188
188
|
,
|
|
189
189
|
onClick: function onClick() {
|
|
190
190
|
return _this.handleUnlink();
|
|
191
191
|
}
|
|
192
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
192
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
193
193
|
,
|
|
194
194
|
onKeyDown: function onKeyDown(event) {
|
|
195
195
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
@@ -49,12 +49,12 @@ var DropzoneWrapperInternal = function DropzoneWrapperInternal(_ref) {
|
|
|
49
49
|
onError: pickerFacadeInstance.handleUploadError,
|
|
50
50
|
onPreviewUpdate: pickerFacadeInstance.handleUploadPreviewUpdate,
|
|
51
51
|
onEnd: pickerFacadeInstance.handleReady
|
|
52
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
52
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
53
53
|
,
|
|
54
54
|
onDragEnter: function onDragEnter() {
|
|
55
55
|
return handleDrag === null || handleDrag === void 0 ? void 0 : handleDrag('enter');
|
|
56
56
|
}
|
|
57
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
57
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
58
58
|
,
|
|
59
59
|
onDragLeave: function onDragLeave() {
|
|
60
60
|
return handleDrag === null || handleDrag === void 0 ? void 0 : handleDrag('leave');
|
|
@@ -434,7 +434,7 @@ var ResizableMediaSingle = exports.default = /*#__PURE__*/function (_React$Compo
|
|
|
434
434
|
// when cursor is located below a media with caption,
|
|
435
435
|
// press “Up“ key will result cursor focus on an invalid position, (on the resize handler)
|
|
436
436
|
// This workaround adds an empty div inside the resize handler to prevent the issue.
|
|
437
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
437
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
438
438
|
,
|
|
439
439
|
handleComponentFunc: function handleComponentFunc() {
|
|
440
440
|
return (0, _react2.jsx)("div", {
|
|
@@ -306,13 +306,13 @@ var generateMediaSingleFloatingToolbar = function generateMediaSingleFloatingToo
|
|
|
306
306
|
state = editorView.state;
|
|
307
307
|
var borderMark = (0, _currentMediaNode.currentMediaOrInlineNodeBorderMark)(state);
|
|
308
308
|
return /*#__PURE__*/_react.default.createElement(_ImageBorder.default
|
|
309
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
309
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
310
310
|
, {
|
|
311
311
|
toggleBorder: function toggleBorder() {
|
|
312
312
|
var _pluginInjectionApi$a;
|
|
313
313
|
(0, _commands.toggleBorderMark)(pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a === void 0 ? void 0 : _pluginInjectionApi$a.actions)(state, dispatch);
|
|
314
314
|
}
|
|
315
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
315
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
316
316
|
,
|
|
317
317
|
setBorder: function setBorder(attrs) {
|
|
318
318
|
var _pluginInjectionApi$a2;
|
|
@@ -51,7 +51,7 @@ var LayoutGroup = exports.LayoutGroup = function LayoutGroup(_ref) {
|
|
|
51
51
|
title: item.title,
|
|
52
52
|
selected: item.selected,
|
|
53
53
|
disabled: item.disabled
|
|
54
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
54
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
55
55
|
,
|
|
56
56
|
onClick: function onClick() {
|
|
57
57
|
dispatchCommand(item.onClick);
|
|
@@ -76,14 +76,14 @@ var getLinkingToolbar = exports.getLinkingToolbar = function getLinkingToolbar(t
|
|
|
76
76
|
providerFactory: providerFactory,
|
|
77
77
|
intl: intl,
|
|
78
78
|
editing: editing
|
|
79
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
79
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
80
80
|
,
|
|
81
81
|
onUnlink: function onUnlink(setFocus) {
|
|
82
82
|
var _pluginInjectionApi$a;
|
|
83
83
|
(0, _linking.unlink)(pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a === void 0 ? void 0 : _pluginInjectionApi$a.actions)(view.state, view.dispatch, view);
|
|
84
84
|
setFocusOnFloatingToolbar(setFocus);
|
|
85
85
|
}
|
|
86
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
86
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
87
87
|
,
|
|
88
88
|
onBack: function onBack(href, meta, setFocus) {
|
|
89
89
|
if (href.trim() && meta.inputMethod) {
|
|
@@ -93,7 +93,7 @@ var getLinkingToolbar = exports.getLinkingToolbar = function getLinkingToolbar(t
|
|
|
93
93
|
(0, _linking.hideLinkingToolbar)(view.state, view.dispatch, view);
|
|
94
94
|
setFocusOnFloatingToolbar(setFocus);
|
|
95
95
|
}
|
|
96
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
96
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
97
97
|
,
|
|
98
98
|
onCancel: function onCancel() {
|
|
99
99
|
var _pluginInjectionApi$f2;
|
|
@@ -107,7 +107,7 @@ var getLinkingToolbar = exports.getLinkingToolbar = function getLinkingToolbar(t
|
|
|
107
107
|
pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$f2 = pluginInjectionApi.floatingToolbar) === null || _pluginInjectionApi$f2 === void 0 || (_pluginInjectionApi$f2 = _pluginInjectionApi$f2.actions) === null || _pluginInjectionApi$f2 === void 0 || _pluginInjectionApi$f2.forceFocusSelector(selector)(tr);
|
|
108
108
|
dispatch(tr);
|
|
109
109
|
}
|
|
110
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
110
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
111
111
|
,
|
|
112
112
|
onSubmit: function onSubmit(href, meta) {
|
|
113
113
|
var _pluginInjectionApi$a3;
|
|
@@ -115,7 +115,7 @@ var getLinkingToolbar = exports.getLinkingToolbar = function getLinkingToolbar(t
|
|
|
115
115
|
(0, _linking.hideLinkingToolbar)(view.state, view.dispatch, view);
|
|
116
116
|
setFocusOnFloatingToolbar(true);
|
|
117
117
|
}
|
|
118
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
118
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
119
119
|
,
|
|
120
120
|
onBlur: function onBlur() {
|
|
121
121
|
(0, _linking.hideLinkingToolbar)(view.state, view.dispatch, view);
|
|
@@ -205,13 +205,13 @@ var getMediaInlineImageToolbar = function getMediaInlineImageToolbar(state, intl
|
|
|
205
205
|
state = editorView.state;
|
|
206
206
|
var borderMark = (0, _currentMediaNode.currentMediaOrInlineNodeBorderMark)(state);
|
|
207
207
|
return /*#__PURE__*/_react.default.createElement(_ImageBorder.default
|
|
208
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
208
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
209
209
|
, {
|
|
210
210
|
toggleBorder: function toggleBorder() {
|
|
211
211
|
var _pluginInjectionApi$a2;
|
|
212
212
|
(0, _commands.toggleBorderMark)(pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a2 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a2 === void 0 ? void 0 : _pluginInjectionApi$a2.actions)(state, dispatch);
|
|
213
213
|
}
|
|
214
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
214
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
215
215
|
,
|
|
216
216
|
setBorder: function setBorder(attrs) {
|
|
217
217
|
var _pluginInjectionApi$a3;
|
|
@@ -36,11 +36,11 @@ class MediaGroupNodeView extends ReactNodeView {
|
|
|
36
36
|
} = props;
|
|
37
37
|
const getPos = this.getPos;
|
|
38
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)
|
|
39
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
40
40
|
, {
|
|
41
41
|
providers: ['contextIdentifierProvider'],
|
|
42
42
|
providerFactory: providerFactory
|
|
43
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
43
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
44
44
|
,
|
|
45
45
|
renderNode: ({
|
|
46
46
|
contextIdentifierProvider
|
|
@@ -134,7 +134,7 @@ export const MediaInline = props => {
|
|
|
134
134
|
alt: alt,
|
|
135
135
|
width: width,
|
|
136
136
|
height: height
|
|
137
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
137
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
138
138
|
,
|
|
139
139
|
border: {
|
|
140
140
|
borderSize: borderMark === null || borderMark === void 0 ? void 0 : borderMark.attrs.size,
|
|
@@ -234,11 +234,11 @@ export class MediaInlineNodeView extends SelectionBasedNodeView {
|
|
|
234
234
|
} = this;
|
|
235
235
|
const getPos = this.getPos;
|
|
236
236
|
return jsx(WithProviders
|
|
237
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
237
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
238
238
|
, {
|
|
239
239
|
providers: ['contextIdentifierProvider'],
|
|
240
240
|
providerFactory: providerFactory
|
|
241
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
241
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
242
242
|
,
|
|
243
243
|
renderNode: ({
|
|
244
244
|
mediaProvider: _mediaProvider,
|
|
@@ -258,7 +258,7 @@ class MediaNodeView extends SelectionBasedNodeView {
|
|
|
258
258
|
providerFactory
|
|
259
259
|
} = this.reactComponentProps;
|
|
260
260
|
return /*#__PURE__*/React.createElement(WithProviders
|
|
261
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
261
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
262
262
|
, {
|
|
263
263
|
providers: ['contextIdentifierProvider'],
|
|
264
264
|
providerFactory: providerFactory,
|
|
@@ -306,7 +306,7 @@ export class MediaNode extends Component {
|
|
|
306
306
|
borderWidth: borderMark === null || borderMark === void 0 ? void 0 : borderMark.attrs.size,
|
|
307
307
|
selected: selected
|
|
308
308
|
}, /*#__PURE__*/React.createElement(AnalyticsContext
|
|
309
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
309
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
310
310
|
, {
|
|
311
311
|
data: {
|
|
312
312
|
[MEDIA_CONTEXT]: {
|
|
@@ -212,11 +212,11 @@ class MediaSingleNodeView extends ReactNodeView {
|
|
|
212
212
|
// getPos is a boolean for marks, since this is a node we know it must be a function
|
|
213
213
|
const getPos = this.getPos;
|
|
214
214
|
return jsx(WithProviders
|
|
215
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
215
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
216
216
|
, {
|
|
217
217
|
providers: ['contextIdentifierProvider'],
|
|
218
218
|
providerFactory: providerFactory
|
|
219
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
219
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
220
220
|
,
|
|
221
221
|
renderNode: ({
|
|
222
222
|
contextIdentifierProvider
|
|
@@ -78,7 +78,7 @@ export const PixelEntry = ({
|
|
|
78
78
|
mediaHeight: mediaHeight || DEFAULT_IMAGE_HEIGHT,
|
|
79
79
|
minWidth: minWidth,
|
|
80
80
|
maxWidth: maxWidth
|
|
81
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
81
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
82
82
|
,
|
|
83
83
|
onChange: valid => {
|
|
84
84
|
if (valid) {
|
|
@@ -87,7 +87,7 @@ export const PixelEntry = ({
|
|
|
87
87
|
hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(mediaSingle, false)(editorView.state, dispatch, editorView);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
90
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
91
91
|
,
|
|
92
92
|
onSubmit: ({
|
|
93
93
|
width,
|
|
@@ -98,7 +98,7 @@ export const PixelEntry = ({
|
|
|
98
98
|
dispatch(tr);
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
101
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
102
102
|
,
|
|
103
103
|
onMigrate: () => {
|
|
104
104
|
let tr = state.tr.setNodeMarkup(selectedMediaSingleNode.pos, undefined, {
|
|
@@ -114,7 +114,7 @@ export const PixelEntry = ({
|
|
|
114
114
|
}
|
|
115
115
|
dispatch(tr);
|
|
116
116
|
}
|
|
117
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
117
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
118
118
|
,
|
|
119
119
|
onCloseAndSave: ({
|
|
120
120
|
width,
|
|
@@ -192,7 +192,7 @@ export const PixelEntryComponent = ({
|
|
|
192
192
|
// Ignored via go/ees005
|
|
193
193
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
194
194
|
, _extends({}, fieldProps, {
|
|
195
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/no-unsafe-style-overrides, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
195
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/no-unsafe-style-overrides, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
196
196
|
css: [pixelSizingWidthInput, pixelSizingInput],
|
|
197
197
|
appearance: "none",
|
|
198
198
|
isCompact: true,
|
|
@@ -218,7 +218,7 @@ export const PixelEntryComponent = ({
|
|
|
218
218
|
// Ignored via go/ees005
|
|
219
219
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
220
220
|
, _extends({}, fieldProps, {
|
|
221
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/no-unsafe-style-overrides, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
221
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/no-unsafe-style-overrides, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
222
222
|
css: [pixelSizingHeightInput, pixelSizingInput],
|
|
223
223
|
appearance: "none",
|
|
224
224
|
isCompact: true,
|
|
@@ -348,7 +348,7 @@ export const PixelEntryComponentNext = ({
|
|
|
348
348
|
}))), !isViewMode && jsx(Fragment, null, jsx(Box, {
|
|
349
349
|
xcss: dividerStyles
|
|
350
350
|
}), jsx(IconButton
|
|
351
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
351
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
352
352
|
, {
|
|
353
353
|
icon: () => jsx(CrossIcon, {
|
|
354
354
|
label: "",
|
|
@@ -356,7 +356,7 @@ export const PixelEntryComponentNext = ({
|
|
|
356
356
|
}),
|
|
357
357
|
label: formatMessage(messages.closePixelEntry),
|
|
358
358
|
appearance: "subtle"
|
|
359
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
359
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
360
360
|
,
|
|
361
361
|
onClick: () => {
|
|
362
362
|
handleCloseAndSave({
|
|
@@ -62,10 +62,10 @@ export const CommentBadgeWrapper = ({
|
|
|
62
62
|
onClick: onClick,
|
|
63
63
|
mediaSingleElement: mediaSingleElement,
|
|
64
64
|
status: entered ? 'entered' : status
|
|
65
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
65
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
66
66
|
,
|
|
67
67
|
onMouseEnter: () => setEntered(true)
|
|
68
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
68
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
69
69
|
,
|
|
70
70
|
onMouseLeave: () => setEntered(false)
|
|
71
71
|
});
|
|
@@ -122,13 +122,13 @@ class LinkAddToolbar extends React.PureComponent {
|
|
|
122
122
|
label: formatLinkAddressText,
|
|
123
123
|
size: "small"
|
|
124
124
|
})
|
|
125
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
125
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
126
126
|
,
|
|
127
127
|
onClick: () => this.handleOnBack({
|
|
128
128
|
url: value,
|
|
129
129
|
inputMethod: currentInputMethod
|
|
130
130
|
})
|
|
131
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
131
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
132
132
|
,
|
|
133
133
|
onKeyDown: event => {
|
|
134
134
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
@@ -147,7 +147,7 @@ class LinkAddToolbar extends React.PureComponent {
|
|
|
147
147
|
autoFocus: true,
|
|
148
148
|
onCancel: this.handleCancel,
|
|
149
149
|
defaultValue: value
|
|
150
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
150
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
151
151
|
,
|
|
152
152
|
onSubmit: inputValue => {
|
|
153
153
|
const validationErrors = this.getValidationErrors(inputValue, currentInputMethod);
|
|
@@ -158,7 +158,7 @@ class LinkAddToolbar extends React.PureComponent {
|
|
|
158
158
|
onSubmit();
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
161
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
162
162
|
,
|
|
163
163
|
onChange: value => {
|
|
164
164
|
this.setState({
|
|
@@ -177,10 +177,10 @@ class LinkAddToolbar extends React.PureComponent {
|
|
|
177
177
|
icon: jsx(EditorUnlinkIcon, {
|
|
178
178
|
label: formatUnlinkText
|
|
179
179
|
})
|
|
180
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
180
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
181
181
|
,
|
|
182
182
|
onClick: () => this.handleUnlink()
|
|
183
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
183
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
184
184
|
,
|
|
185
185
|
onKeyDown: event => {
|
|
186
186
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
@@ -43,10 +43,10 @@ const DropzoneWrapperInternal = ({
|
|
|
43
43
|
onError: pickerFacadeInstance.handleUploadError,
|
|
44
44
|
onPreviewUpdate: pickerFacadeInstance.handleUploadPreviewUpdate,
|
|
45
45
|
onEnd: pickerFacadeInstance.handleReady
|
|
46
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
46
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
47
47
|
,
|
|
48
48
|
onDragEnter: () => handleDrag === null || handleDrag === void 0 ? void 0 : handleDrag('enter')
|
|
49
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
49
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
50
50
|
,
|
|
51
51
|
onDragLeave: () => handleDrag === null || handleDrag === void 0 ? void 0 : handleDrag('leave'),
|
|
52
52
|
featureFlags: featureFlags
|
|
@@ -364,7 +364,7 @@ export default class ResizableMediaSingle extends React.Component {
|
|
|
364
364
|
// when cursor is located below a media with caption,
|
|
365
365
|
// press “Up“ key will result cursor focus on an invalid position, (on the resize handler)
|
|
366
366
|
// This workaround adds an empty div inside the resize handler to prevent the issue.
|
|
367
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
367
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
368
368
|
,
|
|
369
369
|
handleComponentFunc: () => jsx("div", {
|
|
370
370
|
contentEditable: false
|
|
@@ -299,13 +299,13 @@ const generateMediaSingleFloatingToolbar = (state, intl, options, pluginState, m
|
|
|
299
299
|
} = editorView;
|
|
300
300
|
const borderMark = currentMediaOrInlineNodeBorderMark(state);
|
|
301
301
|
return /*#__PURE__*/React.createElement(ImageBorderItem
|
|
302
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
302
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
303
303
|
, {
|
|
304
304
|
toggleBorder: () => {
|
|
305
305
|
var _pluginInjectionApi$a;
|
|
306
306
|
toggleBorderMark(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$a = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a === void 0 ? void 0 : _pluginInjectionApi$a.actions)(state, dispatch);
|
|
307
307
|
}
|
|
308
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
308
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
309
309
|
,
|
|
310
310
|
setBorder: attrs => {
|
|
311
311
|
var _pluginInjectionApi$a2;
|
|
@@ -44,7 +44,7 @@ export const LayoutGroup = ({
|
|
|
44
44
|
title: item.title,
|
|
45
45
|
selected: item.selected,
|
|
46
46
|
disabled: item.disabled
|
|
47
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
47
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
48
48
|
,
|
|
49
49
|
onClick: () => {
|
|
50
50
|
dispatchCommand(item.onClick);
|
|
@@ -77,14 +77,14 @@ export const getLinkingToolbar = (toolbarBaseConfig, mediaLinkingState, state, i
|
|
|
77
77
|
providerFactory: providerFactory,
|
|
78
78
|
intl: intl,
|
|
79
79
|
editing: editing
|
|
80
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
80
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
81
81
|
,
|
|
82
82
|
onUnlink: setFocus => {
|
|
83
83
|
var _pluginInjectionApi$a;
|
|
84
84
|
unlink(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$a = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a === void 0 ? void 0 : _pluginInjectionApi$a.actions)(view.state, view.dispatch, view);
|
|
85
85
|
setFocusOnFloatingToolbar(setFocus);
|
|
86
86
|
}
|
|
87
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
87
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
88
88
|
,
|
|
89
89
|
onBack: (href, meta, setFocus) => {
|
|
90
90
|
if (href.trim() && meta.inputMethod) {
|
|
@@ -94,7 +94,7 @@ export const getLinkingToolbar = (toolbarBaseConfig, mediaLinkingState, state, i
|
|
|
94
94
|
hideLinkingToolbar(view.state, view.dispatch, view);
|
|
95
95
|
setFocusOnFloatingToolbar(setFocus);
|
|
96
96
|
}
|
|
97
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
97
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
98
98
|
,
|
|
99
99
|
onCancel: () => {
|
|
100
100
|
var _pluginInjectionApi$f3, _pluginInjectionApi$f4;
|
|
@@ -112,7 +112,7 @@ export const getLinkingToolbar = (toolbarBaseConfig, mediaLinkingState, state, i
|
|
|
112
112
|
pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$f3 = pluginInjectionApi.floatingToolbar) === null || _pluginInjectionApi$f3 === void 0 ? void 0 : (_pluginInjectionApi$f4 = _pluginInjectionApi$f3.actions) === null || _pluginInjectionApi$f4 === void 0 ? void 0 : _pluginInjectionApi$f4.forceFocusSelector(selector)(tr);
|
|
113
113
|
dispatch(tr);
|
|
114
114
|
}
|
|
115
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
115
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
116
116
|
,
|
|
117
117
|
onSubmit: (href, meta) => {
|
|
118
118
|
var _pluginInjectionApi$a3;
|
|
@@ -120,7 +120,7 @@ export const getLinkingToolbar = (toolbarBaseConfig, mediaLinkingState, state, i
|
|
|
120
120
|
hideLinkingToolbar(view.state, view.dispatch, view);
|
|
121
121
|
setFocusOnFloatingToolbar(true);
|
|
122
122
|
}
|
|
123
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
123
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
124
124
|
,
|
|
125
125
|
onBlur: () => {
|
|
126
126
|
hideLinkingToolbar(view.state, view.dispatch, view);
|
|
@@ -195,13 +195,13 @@ const getMediaInlineImageToolbar = (state, intl, mediaPluginState, hoverDecorati
|
|
|
195
195
|
} = editorView;
|
|
196
196
|
const borderMark = currentMediaOrInlineNodeBorderMark(state);
|
|
197
197
|
return /*#__PURE__*/React.createElement(ImageBorderItem
|
|
198
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
198
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
199
199
|
, {
|
|
200
200
|
toggleBorder: () => {
|
|
201
201
|
var _pluginInjectionApi$a2;
|
|
202
202
|
toggleBorderMark(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$a2 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a2 === void 0 ? void 0 : _pluginInjectionApi$a2.actions)(state, dispatch);
|
|
203
203
|
}
|
|
204
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
204
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
205
205
|
,
|
|
206
206
|
setBorder: attrs => {
|
|
207
207
|
var _pluginInjectionApi$a3;
|
|
@@ -47,11 +47,11 @@ var MediaGroupNodeView = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
47
47
|
pluginInjectionApi = props.pluginInjectionApi;
|
|
48
48
|
var getPos = this.getPos;
|
|
49
49
|
return /*#__PURE__*/React.createElement(WithProviders
|
|
50
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
50
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
51
51
|
, {
|
|
52
52
|
providers: ['contextIdentifierProvider'],
|
|
53
53
|
providerFactory: providerFactory
|
|
54
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
54
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
55
55
|
,
|
|
56
56
|
renderNode: function renderNode(_ref2) {
|
|
57
57
|
var contextIdentifierProvider = _ref2.contextIdentifierProvider;
|
|
@@ -197,7 +197,7 @@ export var MediaInline = function MediaInline(props) {
|
|
|
197
197
|
alt: alt,
|
|
198
198
|
width: width,
|
|
199
199
|
height: height
|
|
200
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
200
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
201
201
|
,
|
|
202
202
|
border: {
|
|
203
203
|
borderSize: borderMark === null || borderMark === void 0 ? void 0 : borderMark.attrs.size,
|
|
@@ -307,11 +307,11 @@ export var MediaInlineNodeView = /*#__PURE__*/function (_SelectionBasedNodeVi) {
|
|
|
307
307
|
var view = this.view;
|
|
308
308
|
var getPos = this.getPos;
|
|
309
309
|
return jsx(WithProviders
|
|
310
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
310
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
311
311
|
, {
|
|
312
312
|
providers: ['contextIdentifierProvider'],
|
|
313
313
|
providerFactory: providerFactory
|
|
314
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
314
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
315
315
|
,
|
|
316
316
|
renderNode: function renderNode(_ref4) {
|
|
317
317
|
var _mediaProvider = _ref4.mediaProvider,
|
|
@@ -275,7 +275,7 @@ var MediaNodeView = /*#__PURE__*/function (_SelectionBasedNodeVi) {
|
|
|
275
275
|
value: function render() {
|
|
276
276
|
var providerFactory = this.reactComponentProps.providerFactory;
|
|
277
277
|
return /*#__PURE__*/React.createElement(WithProviders
|
|
278
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
278
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
279
279
|
, {
|
|
280
280
|
providers: ['contextIdentifierProvider'],
|
|
281
281
|
providerFactory: providerFactory,
|
|
@@ -359,7 +359,7 @@ export var MediaNode = /*#__PURE__*/function (_Component) {
|
|
|
359
359
|
borderWidth: borderMark === null || borderMark === void 0 ? void 0 : borderMark.attrs.size,
|
|
360
360
|
selected: selected
|
|
361
361
|
}, /*#__PURE__*/React.createElement(AnalyticsContext
|
|
362
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
362
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
363
363
|
, {
|
|
364
364
|
data: _defineProperty({}, MEDIA_CONTEXT, {
|
|
365
365
|
border: !!borderMark
|
|
@@ -250,11 +250,11 @@ var MediaSingleNodeView = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
250
250
|
// getPos is a boolean for marks, since this is a node we know it must be a function
|
|
251
251
|
var getPos = this.getPos;
|
|
252
252
|
return jsx(WithProviders
|
|
253
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
253
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
254
254
|
, {
|
|
255
255
|
providers: ['contextIdentifierProvider'],
|
|
256
256
|
providerFactory: providerFactory
|
|
257
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
257
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
258
258
|
,
|
|
259
259
|
renderNode: function renderNode(_ref2) {
|
|
260
260
|
var contextIdentifierProvider = _ref2.contextIdentifierProvider;
|
|
@@ -76,7 +76,7 @@ export var PixelEntry = function PixelEntry(_ref) {
|
|
|
76
76
|
mediaHeight: mediaHeight || DEFAULT_IMAGE_HEIGHT,
|
|
77
77
|
minWidth: minWidth,
|
|
78
78
|
maxWidth: maxWidth
|
|
79
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
79
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
80
80
|
,
|
|
81
81
|
onChange: function onChange(valid) {
|
|
82
82
|
if (valid) {
|
|
@@ -85,7 +85,7 @@ export var PixelEntry = function PixelEntry(_ref) {
|
|
|
85
85
|
hoverDecoration === null || hoverDecoration === void 0 || hoverDecoration(mediaSingle, false)(editorView.state, dispatch, editorView);
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
88
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
89
89
|
,
|
|
90
90
|
onSubmit: function onSubmit(_ref2) {
|
|
91
91
|
var width = _ref2.width,
|
|
@@ -95,7 +95,7 @@ export var PixelEntry = function PixelEntry(_ref) {
|
|
|
95
95
|
dispatch(tr);
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
98
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
99
99
|
,
|
|
100
100
|
onMigrate: function onMigrate() {
|
|
101
101
|
var tr = state.tr.setNodeMarkup(selectedMediaSingleNode.pos, undefined, _objectSpread(_objectSpread({}, selectedMediaSingleNode.node.attrs), {}, {
|
|
@@ -110,7 +110,7 @@ export var PixelEntry = function PixelEntry(_ref) {
|
|
|
110
110
|
}
|
|
111
111
|
dispatch(tr);
|
|
112
112
|
}
|
|
113
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
113
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
114
114
|
,
|
|
115
115
|
onCloseAndSave: function onCloseAndSave(_ref3, setFocus) {
|
|
116
116
|
var width = _ref3.width,
|
|
@@ -197,7 +197,7 @@ export var PixelEntryComponent = function PixelEntryComponent(_ref) {
|
|
|
197
197
|
// Ignored via go/ees005
|
|
198
198
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
199
199
|
, _extends({}, fieldProps, {
|
|
200
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/no-unsafe-style-overrides, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
200
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/no-unsafe-style-overrides, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
201
201
|
css: [pixelSizingWidthInput, pixelSizingInput],
|
|
202
202
|
appearance: "none",
|
|
203
203
|
isCompact: true,
|
|
@@ -224,7 +224,7 @@ export var PixelEntryComponent = function PixelEntryComponent(_ref) {
|
|
|
224
224
|
// Ignored via go/ees005
|
|
225
225
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
226
226
|
, _extends({}, fieldProps, {
|
|
227
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/no-unsafe-style-overrides, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
227
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/no-unsafe-style-overrides, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
228
228
|
css: [pixelSizingHeightInput, pixelSizingInput],
|
|
229
229
|
appearance: "none",
|
|
230
230
|
isCompact: true,
|
|
@@ -354,7 +354,7 @@ export var PixelEntryComponentNext = function PixelEntryComponentNext(_ref5) {
|
|
|
354
354
|
}))), !isViewMode && jsx(Fragment, null, jsx(Box, {
|
|
355
355
|
xcss: dividerStyles
|
|
356
356
|
}), jsx(IconButton
|
|
357
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
357
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
358
358
|
, {
|
|
359
359
|
icon: function icon() {
|
|
360
360
|
return jsx(CrossIcon, {
|
|
@@ -364,7 +364,7 @@ export var PixelEntryComponentNext = function PixelEntryComponentNext(_ref5) {
|
|
|
364
364
|
},
|
|
365
365
|
label: formatMessage(messages.closePixelEntry),
|
|
366
366
|
appearance: "subtle"
|
|
367
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
367
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
368
368
|
,
|
|
369
369
|
onClick: function onClick() {
|
|
370
370
|
handleCloseAndSave({
|
|
@@ -59,12 +59,12 @@ export var CommentBadgeWrapper = function CommentBadgeWrapper(_ref) {
|
|
|
59
59
|
onClick: onClick,
|
|
60
60
|
mediaSingleElement: mediaSingleElement,
|
|
61
61
|
status: entered ? 'entered' : status
|
|
62
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
62
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
63
63
|
,
|
|
64
64
|
onMouseEnter: function onMouseEnter() {
|
|
65
65
|
return setEntered(true);
|
|
66
66
|
}
|
|
67
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
67
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
68
68
|
,
|
|
69
69
|
onMouseLeave: function onMouseLeave() {
|
|
70
70
|
return setEntered(false);
|
|
@@ -123,7 +123,7 @@ var LinkAddToolbar = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
123
123
|
label: formatLinkAddressText,
|
|
124
124
|
size: "small"
|
|
125
125
|
})
|
|
126
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
126
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
127
127
|
,
|
|
128
128
|
onClick: function onClick() {
|
|
129
129
|
return _this.handleOnBack({
|
|
@@ -131,7 +131,7 @@ var LinkAddToolbar = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
131
131
|
inputMethod: currentInputMethod
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
134
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
135
135
|
,
|
|
136
136
|
onKeyDown: function onKeyDown(event) {
|
|
137
137
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
@@ -150,7 +150,7 @@ var LinkAddToolbar = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
150
150
|
autoFocus: true,
|
|
151
151
|
onCancel: _this.handleCancel,
|
|
152
152
|
defaultValue: value
|
|
153
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
153
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
154
154
|
,
|
|
155
155
|
onSubmit: function onSubmit(inputValue) {
|
|
156
156
|
var validationErrors = _this.getValidationErrors(inputValue, currentInputMethod);
|
|
@@ -161,7 +161,7 @@ var LinkAddToolbar = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
161
161
|
_onSubmit();
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
164
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
165
165
|
,
|
|
166
166
|
onChange: function onChange(value) {
|
|
167
167
|
_this.setState({
|
|
@@ -180,12 +180,12 @@ var LinkAddToolbar = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
180
180
|
icon: jsx(EditorUnlinkIcon, {
|
|
181
181
|
label: formatUnlinkText
|
|
182
182
|
})
|
|
183
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
183
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
184
184
|
,
|
|
185
185
|
onClick: function onClick() {
|
|
186
186
|
return _this.handleUnlink();
|
|
187
187
|
}
|
|
188
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
188
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
189
189
|
,
|
|
190
190
|
onKeyDown: function onKeyDown(event) {
|
|
191
191
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
@@ -42,12 +42,12 @@ var DropzoneWrapperInternal = function DropzoneWrapperInternal(_ref) {
|
|
|
42
42
|
onError: pickerFacadeInstance.handleUploadError,
|
|
43
43
|
onPreviewUpdate: pickerFacadeInstance.handleUploadPreviewUpdate,
|
|
44
44
|
onEnd: pickerFacadeInstance.handleReady
|
|
45
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
45
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
46
46
|
,
|
|
47
47
|
onDragEnter: function onDragEnter() {
|
|
48
48
|
return handleDrag === null || handleDrag === void 0 ? void 0 : handleDrag('enter');
|
|
49
49
|
}
|
|
50
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
50
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
51
51
|
,
|
|
52
52
|
onDragLeave: function onDragLeave() {
|
|
53
53
|
return handleDrag === null || handleDrag === void 0 ? void 0 : handleDrag('leave');
|
|
@@ -430,7 +430,7 @@ var ResizableMediaSingle = /*#__PURE__*/function (_React$Component) {
|
|
|
430
430
|
// when cursor is located below a media with caption,
|
|
431
431
|
// press “Up“ key will result cursor focus on an invalid position, (on the resize handler)
|
|
432
432
|
// This workaround adds an empty div inside the resize handler to prevent the issue.
|
|
433
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
433
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
434
434
|
,
|
|
435
435
|
handleComponentFunc: function handleComponentFunc() {
|
|
436
436
|
return jsx("div", {
|
|
@@ -297,13 +297,13 @@ var generateMediaSingleFloatingToolbar = function generateMediaSingleFloatingToo
|
|
|
297
297
|
state = editorView.state;
|
|
298
298
|
var borderMark = currentMediaOrInlineNodeBorderMark(state);
|
|
299
299
|
return /*#__PURE__*/React.createElement(ImageBorderItem
|
|
300
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
300
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
301
301
|
, {
|
|
302
302
|
toggleBorder: function toggleBorder() {
|
|
303
303
|
var _pluginInjectionApi$a;
|
|
304
304
|
toggleBorderMark(pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a === void 0 ? void 0 : _pluginInjectionApi$a.actions)(state, dispatch);
|
|
305
305
|
}
|
|
306
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
306
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
307
307
|
,
|
|
308
308
|
setBorder: function setBorder(attrs) {
|
|
309
309
|
var _pluginInjectionApi$a2;
|
|
@@ -43,7 +43,7 @@ export var LayoutGroup = function LayoutGroup(_ref) {
|
|
|
43
43
|
title: item.title,
|
|
44
44
|
selected: item.selected,
|
|
45
45
|
disabled: item.disabled
|
|
46
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
46
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
47
47
|
,
|
|
48
48
|
onClick: function onClick() {
|
|
49
49
|
dispatchCommand(item.onClick);
|
|
@@ -68,14 +68,14 @@ export var getLinkingToolbar = function getLinkingToolbar(toolbarBaseConfig, med
|
|
|
68
68
|
providerFactory: providerFactory,
|
|
69
69
|
intl: intl,
|
|
70
70
|
editing: editing
|
|
71
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
71
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
72
72
|
,
|
|
73
73
|
onUnlink: function onUnlink(setFocus) {
|
|
74
74
|
var _pluginInjectionApi$a;
|
|
75
75
|
unlink(pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a === void 0 ? void 0 : _pluginInjectionApi$a.actions)(view.state, view.dispatch, view);
|
|
76
76
|
setFocusOnFloatingToolbar(setFocus);
|
|
77
77
|
}
|
|
78
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
78
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
79
79
|
,
|
|
80
80
|
onBack: function onBack(href, meta, setFocus) {
|
|
81
81
|
if (href.trim() && meta.inputMethod) {
|
|
@@ -85,7 +85,7 @@ export var getLinkingToolbar = function getLinkingToolbar(toolbarBaseConfig, med
|
|
|
85
85
|
hideLinkingToolbar(view.state, view.dispatch, view);
|
|
86
86
|
setFocusOnFloatingToolbar(setFocus);
|
|
87
87
|
}
|
|
88
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
88
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
89
89
|
,
|
|
90
90
|
onCancel: function onCancel() {
|
|
91
91
|
var _pluginInjectionApi$f2;
|
|
@@ -99,7 +99,7 @@ export var getLinkingToolbar = function getLinkingToolbar(toolbarBaseConfig, med
|
|
|
99
99
|
pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$f2 = pluginInjectionApi.floatingToolbar) === null || _pluginInjectionApi$f2 === void 0 || (_pluginInjectionApi$f2 = _pluginInjectionApi$f2.actions) === null || _pluginInjectionApi$f2 === void 0 || _pluginInjectionApi$f2.forceFocusSelector(selector)(tr);
|
|
100
100
|
dispatch(tr);
|
|
101
101
|
}
|
|
102
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
102
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
103
103
|
,
|
|
104
104
|
onSubmit: function onSubmit(href, meta) {
|
|
105
105
|
var _pluginInjectionApi$a3;
|
|
@@ -107,7 +107,7 @@ export var getLinkingToolbar = function getLinkingToolbar(toolbarBaseConfig, med
|
|
|
107
107
|
hideLinkingToolbar(view.state, view.dispatch, view);
|
|
108
108
|
setFocusOnFloatingToolbar(true);
|
|
109
109
|
}
|
|
110
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
110
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
111
111
|
,
|
|
112
112
|
onBlur: function onBlur() {
|
|
113
113
|
hideLinkingToolbar(view.state, view.dispatch, view);
|
|
@@ -196,13 +196,13 @@ var getMediaInlineImageToolbar = function getMediaInlineImageToolbar(state, intl
|
|
|
196
196
|
state = editorView.state;
|
|
197
197
|
var borderMark = currentMediaOrInlineNodeBorderMark(state);
|
|
198
198
|
return /*#__PURE__*/React.createElement(ImageBorderItem
|
|
199
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
199
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
200
200
|
, {
|
|
201
201
|
toggleBorder: function toggleBorder() {
|
|
202
202
|
var _pluginInjectionApi$a2;
|
|
203
203
|
toggleBorderMark(pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a2 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a2 === void 0 ? void 0 : _pluginInjectionApi$a2.actions)(state, dispatch);
|
|
204
204
|
}
|
|
205
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
205
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
206
206
|
,
|
|
207
207
|
setBorder: function setBorder(attrs) {
|
|
208
208
|
var _pluginInjectionApi$a3;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.1",
|
|
4
4
|
"description": "Media plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@atlaskit/primitives": "^18.0.0",
|
|
67
67
|
"@atlaskit/textfield": "^8.2.0",
|
|
68
68
|
"@atlaskit/theme": "^22.0.0",
|
|
69
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
69
|
+
"@atlaskit/tmp-editor-statsig": "^45.0.0",
|
|
70
70
|
"@atlaskit/tokens": "^11.1.0",
|
|
71
71
|
"@atlaskit/tooltip": "^21.0.0",
|
|
72
72
|
"@babel/runtime": "^7.0.0",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"uuid": "^3.1.0"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
|
-
"@atlaskit/editor-common": "^112.
|
|
81
|
+
"@atlaskit/editor-common": "^112.8.0",
|
|
82
82
|
"@atlaskit/media-core": "^37.0.0",
|
|
83
83
|
"react": "^18.2.0",
|
|
84
84
|
"react-dom": "^18.2.0",
|