@atlaskit/renderer 128.2.3 → 128.3.0
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 +12 -0
- package/dist/cjs/react/index.js +8 -6
- package/dist/cjs/react/marks/data-consumer.js +3 -1
- package/dist/cjs/react/marks/link.js +4 -2
- package/dist/cjs/react/nodes/blockCard.js +7 -1
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockCopyButton.js +3 -1
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockWrapButton.js +3 -1
- package/dist/cjs/react/nodes/emoji.js +6 -2
- package/dist/cjs/react/nodes/heading.js +3 -1
- package/dist/cjs/react/nodes/inlineCard.js +19 -6
- package/dist/cjs/react/nodes/media/index.js +20 -5
- package/dist/cjs/react/nodes/mediaInline.js +4 -1
- package/dist/cjs/react/nodes/mediaSingle/index.js +3 -1
- package/dist/cjs/react/nodes/status.js +6 -2
- package/dist/cjs/react/nodes/table.js +7 -4
- package/dist/cjs/react/nodes/taskItem.js +9 -3
- package/dist/cjs/ui/Expand.js +6 -2
- package/dist/cjs/ui/ExtensionRenderer.js +3 -1
- package/dist/cjs/ui/MediaCard.js +3 -1
- package/dist/cjs/ui/Renderer/index.js +22 -10
- package/dist/es2019/react/index.js +7 -6
- package/dist/es2019/react/marks/data-consumer.js +3 -1
- package/dist/es2019/react/marks/link.js +4 -2
- package/dist/es2019/react/nodes/blockCard.js +7 -1
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockCopyButton.js +3 -1
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockWrapButton.js +3 -1
- package/dist/es2019/react/nodes/emoji.js +6 -2
- package/dist/es2019/react/nodes/heading.js +3 -1
- package/dist/es2019/react/nodes/inlineCard.js +19 -6
- package/dist/es2019/react/nodes/media/index.js +20 -5
- package/dist/es2019/react/nodes/mediaInline.js +5 -2
- package/dist/es2019/react/nodes/mediaSingle/index.js +3 -1
- package/dist/es2019/react/nodes/status.js +6 -2
- package/dist/es2019/react/nodes/table.js +7 -4
- package/dist/es2019/react/nodes/taskItem.js +9 -3
- package/dist/es2019/ui/Expand.js +6 -2
- package/dist/es2019/ui/ExtensionRenderer.js +3 -1
- package/dist/es2019/ui/MediaCard.js +3 -1
- package/dist/es2019/ui/Renderer/index.js +22 -10
- package/dist/esm/react/index.js +8 -6
- package/dist/esm/react/marks/data-consumer.js +3 -1
- package/dist/esm/react/marks/link.js +4 -2
- package/dist/esm/react/nodes/blockCard.js +7 -1
- package/dist/esm/react/nodes/codeBlock/components/codeBlockCopyButton.js +3 -1
- package/dist/esm/react/nodes/codeBlock/components/codeBlockWrapButton.js +3 -1
- package/dist/esm/react/nodes/emoji.js +6 -2
- package/dist/esm/react/nodes/heading.js +3 -1
- package/dist/esm/react/nodes/inlineCard.js +19 -6
- package/dist/esm/react/nodes/media/index.js +20 -5
- package/dist/esm/react/nodes/mediaInline.js +4 -1
- package/dist/esm/react/nodes/mediaSingle/index.js +3 -1
- package/dist/esm/react/nodes/status.js +6 -2
- package/dist/esm/react/nodes/table.js +7 -4
- package/dist/esm/react/nodes/taskItem.js +9 -3
- package/dist/esm/ui/Expand.js +6 -2
- package/dist/esm/ui/ExtensionRenderer.js +3 -1
- package/dist/esm/ui/MediaCard.js +3 -1
- package/dist/esm/ui/Renderer/index.js +22 -10
- package/dist/types/types/mediaOptions.d.ts +3 -0
- package/dist/types/ui/MediaCard.d.ts +3 -0
- package/dist/types-ts4.5/types/mediaOptions.d.ts +3 -0
- package/dist/types-ts4.5/ui/MediaCard.d.ts +3 -0
- package/package.json +5 -5
|
@@ -38,7 +38,7 @@ export default function Link(props) {
|
|
|
38
38
|
try {
|
|
39
39
|
var _onSetLinkTarget;
|
|
40
40
|
actualTarget = (_onSetLinkTarget = onSetLinkTarget(href)) !== null && _onSetLinkTarget !== void 0 ? _onSetLinkTarget : actualTarget;
|
|
41
|
-
} catch (error) {
|
|
41
|
+
} catch (error) {// eslint-disable-line no-unused-vars
|
|
42
42
|
// If URL parsing fails, use the original target
|
|
43
43
|
}
|
|
44
44
|
}
|
|
@@ -64,7 +64,9 @@ export default function Link(props) {
|
|
|
64
64
|
return jsx(AnalyticsContext, {
|
|
65
65
|
data: analyticsData
|
|
66
66
|
}, jsx(LinkUrl, _extends({
|
|
67
|
-
css: anchorStyles
|
|
67
|
+
css: anchorStyles
|
|
68
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
69
|
+
,
|
|
68
70
|
onClick: e => {
|
|
69
71
|
if (fireAnalyticsEvent) {
|
|
70
72
|
fireAnalyticsEvent({
|
|
@@ -97,11 +97,15 @@ export default function BlockCard(props) {
|
|
|
97
97
|
const visibleColumnKeys = columns === null || columns === void 0 ? void 0 : columns.map(({
|
|
98
98
|
key
|
|
99
99
|
}) => key);
|
|
100
|
+
|
|
101
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
|
|
100
102
|
const columnCustomSizesEntries = columns === null || columns === void 0 ? void 0 : columns.filter(c => !!c.width).map(({
|
|
101
103
|
key,
|
|
102
104
|
width
|
|
103
105
|
}) => [key, width]);
|
|
104
106
|
const columnCustomSizes = columnCustomSizesEntries !== null && columnCustomSizesEntries !== void 0 && columnCustomSizesEntries.length ? Object.fromEntries(columnCustomSizesEntries) : undefined;
|
|
107
|
+
|
|
108
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
|
|
105
109
|
const wrappedColumnKeys = columns === null || columns === void 0 ? void 0 : columns.filter(c => c.isWrapped).map(c => c.key);
|
|
106
110
|
const {
|
|
107
111
|
datasource,
|
|
@@ -188,7 +192,9 @@ export default function BlockCard(props) {
|
|
|
188
192
|
}, jsx("div", {
|
|
189
193
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
190
194
|
className: "blockCardView-content-wrap",
|
|
191
|
-
"data-block-card": true
|
|
195
|
+
"data-block-card": true
|
|
196
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
|
|
197
|
+
,
|
|
192
198
|
"data-card-data": data ? JSON.stringify(data) : undefined,
|
|
193
199
|
"data-card-url": url,
|
|
194
200
|
"data-local-id": localId
|
|
@@ -42,7 +42,9 @@ const CopyButton = ({
|
|
|
42
42
|
className: className,
|
|
43
43
|
iconBefore: jsx(CopyIcon, {
|
|
44
44
|
label: tooltip
|
|
45
|
-
})
|
|
45
|
+
})
|
|
46
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
47
|
+
,
|
|
46
48
|
onClick: event => {
|
|
47
49
|
fireAnalyticsEvent({
|
|
48
50
|
// @ts-expect-error - Type 'ACTION.CLICKED' is not assignable to type 'ACTION.CLICKED | ACTION.MEDIA_LINK_TRANSFORMED | ACTION.STARTED | ACTION.TOGGLE_EXPAND | ACTION.UNSUPPORTED_CONTENT_ENCOUNTERED | ACTION.VISITED | ACTION.RENDERED | ACTION.INVALID_PROSEMIRROR_DOCUMENT | ACTION.CRASHED | ... 6 more ... | AnnotationActionType'.
|
|
@@ -33,7 +33,9 @@ const CodeBlockWrapButton = ({
|
|
|
33
33
|
iconBefore: jsx(TextWrapIcon, {
|
|
34
34
|
label: ""
|
|
35
35
|
}),
|
|
36
|
-
isSelected: wrapLongLines
|
|
36
|
+
isSelected: wrapLongLines
|
|
37
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
38
|
+
,
|
|
37
39
|
onClick: event => {
|
|
38
40
|
fireAnalyticsEvent({
|
|
39
41
|
// @ts-expect-error - Type 'ACTION.CLICKED' is not assignable to type 'ACTION.CLICKED | ACTION.MEDIA_LINK_TRANSFORMED | ACTION.STARTED | ACTION.TOGGLE_EXPAND | ACTION.UNSUPPORTED_CONTENT_ENCOUNTERED | ACTION.VISITED | ACTION.RENDERED | ACTION.INVALID_PROSEMIRROR_DOCUMENT | ACTION.CRASHED | ... 6 more ... | AnnotationActionType'
|
|
@@ -35,7 +35,9 @@ class EmojiNode extends PureComponent {
|
|
|
35
35
|
if (!providers.emojiProvider) {
|
|
36
36
|
return null;
|
|
37
37
|
}
|
|
38
|
-
return jsx(ResourcedEmoji
|
|
38
|
+
return jsx(ResourcedEmoji
|
|
39
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
40
|
+
, {
|
|
39
41
|
emojiId: {
|
|
40
42
|
id,
|
|
41
43
|
fallback,
|
|
@@ -65,7 +67,9 @@ class EmojiNode extends PureComponent {
|
|
|
65
67
|
}
|
|
66
68
|
}
|
|
67
69
|
render() {
|
|
68
|
-
return jsx(WithProviders
|
|
70
|
+
return jsx(WithProviders
|
|
71
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
72
|
+
, {
|
|
69
73
|
providers: ['emojiProvider'],
|
|
70
74
|
providerFactory: this.providerFactory,
|
|
71
75
|
renderNode: this.renderWithProvider
|
|
@@ -43,7 +43,9 @@ function WrappedHeadingAnchor({
|
|
|
43
43
|
fireAnalyticsEvent
|
|
44
44
|
}) => jsx(HeadingAnchor, {
|
|
45
45
|
enableNestedHeaderLinks: enableNestedHeaderLinks,
|
|
46
|
-
level: level
|
|
46
|
+
level: level
|
|
47
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
48
|
+
,
|
|
47
49
|
onCopyText: () => {
|
|
48
50
|
fireAnalyticsEvent({
|
|
49
51
|
action: ACTION.CLICKED,
|
|
@@ -93,7 +93,9 @@ const OverlayWithCardContext = ({
|
|
|
93
93
|
url: url,
|
|
94
94
|
compactPadding: rendererAppearance === 'comment',
|
|
95
95
|
showPanelButton: showPanelButton,
|
|
96
|
-
showPanelButtonIcon: showPanelButtonIcon
|
|
96
|
+
showPanelButtonIcon: showPanelButtonIcon
|
|
97
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
98
|
+
,
|
|
97
99
|
onClick: event => {
|
|
98
100
|
if (isPreviewPanelAvailable) {
|
|
99
101
|
var _extractSmartLinkEmbe;
|
|
@@ -197,7 +199,9 @@ const InlineCard = props => {
|
|
|
197
199
|
appearance: SMART_LINK_APPEARANCE.INLINE,
|
|
198
200
|
source: SMART_LINK_DRAG_TYPES.RENDERER
|
|
199
201
|
}, jsx("span", _extends({
|
|
200
|
-
"data-inline-card": true
|
|
202
|
+
"data-inline-card": true
|
|
203
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
|
|
204
|
+
,
|
|
201
205
|
"data-card-data": data ? JSON.stringify(data) : undefined,
|
|
202
206
|
"data-card-url": url
|
|
203
207
|
// Ignored via go/ees005
|
|
@@ -236,7 +240,9 @@ const InlineCard = props => {
|
|
|
236
240
|
appearance: SMART_LINK_APPEARANCE.INLINE,
|
|
237
241
|
source: SMART_LINK_DRAG_TYPES.RENDERER
|
|
238
242
|
}, jsx("span", {
|
|
239
|
-
"data-inline-card": true
|
|
243
|
+
"data-inline-card": true
|
|
244
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
|
|
245
|
+
,
|
|
240
246
|
"data-card-data": data ? JSON.stringify(data) : undefined,
|
|
241
247
|
"data-card-url": url,
|
|
242
248
|
"data-renderer-mark": inlineAnnotationProps['data-renderer-mark'],
|
|
@@ -256,7 +262,9 @@ const InlineCard = props => {
|
|
|
256
262
|
url: url,
|
|
257
263
|
showHoverPreview: !hideHoverPreview,
|
|
258
264
|
actionOptions: actionOptions,
|
|
259
|
-
onClick: onClick
|
|
265
|
+
onClick: onClick
|
|
266
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
267
|
+
,
|
|
260
268
|
onResolve: data => {
|
|
261
269
|
if (!data.url || !data.title) {
|
|
262
270
|
return;
|
|
@@ -286,7 +294,9 @@ const InlineCard = props => {
|
|
|
286
294
|
url: url,
|
|
287
295
|
showHoverPreview: !hideHoverPreview,
|
|
288
296
|
actionOptions: actionOptions,
|
|
289
|
-
onClick: onClick
|
|
297
|
+
onClick: onClick
|
|
298
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
299
|
+
,
|
|
290
300
|
onResolve: data => {
|
|
291
301
|
if (!data.url || !data.title) {
|
|
292
302
|
return;
|
|
@@ -307,7 +317,9 @@ const InlineCard = props => {
|
|
|
307
317
|
}, jsx(AnalyticsContext, {
|
|
308
318
|
data: analyticsData
|
|
309
319
|
}, jsx("span", _extends({
|
|
310
|
-
"data-inline-card": true
|
|
320
|
+
"data-inline-card": true
|
|
321
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
|
|
322
|
+
,
|
|
311
323
|
"data-card-data": data ? JSON.stringify(data) : undefined,
|
|
312
324
|
"data-card-url": url
|
|
313
325
|
// Ignored via go/ees005
|
|
@@ -330,6 +342,7 @@ const InlineCard = props => {
|
|
|
330
342
|
// Ignored via go/ees005
|
|
331
343
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
332
344
|
}, cardProps, {
|
|
345
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
333
346
|
onResolve: data => {
|
|
334
347
|
if (!data.url || !data.title) {
|
|
335
348
|
return;
|
|
@@ -98,12 +98,15 @@ const MediaAnnotation = ({
|
|
|
98
98
|
}
|
|
99
99
|
return jsx(AnnotationComponent, {
|
|
100
100
|
id: mark.attrs.id,
|
|
101
|
-
annotationType: mark.attrs.annotationType
|
|
101
|
+
annotationType: mark.attrs.annotationType
|
|
102
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
103
|
+
,
|
|
102
104
|
dataAttributes: {
|
|
103
105
|
'data-renderer-mark': true,
|
|
104
106
|
'data-block-mark': true
|
|
105
107
|
}
|
|
106
108
|
// This should be fine being empty [] since the serializer serializeFragmentChild getMarkProps call always passes
|
|
109
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
107
110
|
,
|
|
108
111
|
annotationParentIds: [],
|
|
109
112
|
allowAnnotations: true,
|
|
@@ -184,8 +187,12 @@ const CommentBadgeWrapper = ({
|
|
|
184
187
|
});
|
|
185
188
|
}
|
|
186
189
|
};
|
|
187
|
-
return jsx(CommentBadgeNext
|
|
188
|
-
|
|
190
|
+
return jsx(CommentBadgeNext
|
|
191
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
192
|
+
, _extends({
|
|
193
|
+
onMouseEnter: () => setEntered(true)
|
|
194
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
195
|
+
,
|
|
189
196
|
onMouseLeave: () => setEntered(false),
|
|
190
197
|
status: entered ? 'entered' : status,
|
|
191
198
|
onClick: onClick,
|
|
@@ -232,7 +239,9 @@ class Media extends PureComponent {
|
|
|
232
239
|
marks: annotationMarks
|
|
233
240
|
}, jsx(MediaBorder, {
|
|
234
241
|
mark: borderMark
|
|
235
|
-
}, jsx(AnalyticsContext
|
|
242
|
+
}, jsx(AnalyticsContext
|
|
243
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
244
|
+
, {
|
|
236
245
|
data: {
|
|
237
246
|
[MEDIA_CONTEXT]: {
|
|
238
247
|
border: !!borderMark
|
|
@@ -300,7 +309,9 @@ class Media extends PureComponent {
|
|
|
300
309
|
if (!providers) {
|
|
301
310
|
return this.renderCard();
|
|
302
311
|
}
|
|
303
|
-
return jsx(WithProviders
|
|
312
|
+
return jsx(WithProviders
|
|
313
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
314
|
+
, {
|
|
304
315
|
providers: ['mediaProvider', 'contextIdentifierProvider'],
|
|
305
316
|
providerFactory: providers,
|
|
306
317
|
renderNode: this.renderCard
|
|
@@ -324,10 +335,14 @@ const MediaWithDraftAnnotation = props => {
|
|
|
324
335
|
}
|
|
325
336
|
const posToCheck = ((_draftPosition$from = draftPosition === null || draftPosition === void 0 ? void 0 : draftPosition.from) !== null && _draftPosition$from !== void 0 ? _draftPosition$from : 0) + 1;
|
|
326
337
|
if (draftPosition !== null && posToCheck === pos) {
|
|
338
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
|
|
327
339
|
setShouldApplyDraftAnnotation(true);
|
|
340
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
|
|
328
341
|
setPosition(posToCheck);
|
|
329
342
|
} else if (draftPosition === null && shouldApplyDraftAnnotation) {
|
|
343
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
|
|
330
344
|
setShouldApplyDraftAnnotation(false);
|
|
345
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
|
|
331
346
|
setPosition(undefined);
|
|
332
347
|
}
|
|
333
348
|
}, [draftPosition, pos, shouldApplyDraftAnnotation]);
|
|
@@ -40,7 +40,7 @@ const RenderMediaInline = ({
|
|
|
40
40
|
const fileState = await mediaClient.file.getCurrentState(id, options);
|
|
41
41
|
setFileState(fileState);
|
|
42
42
|
}
|
|
43
|
-
} catch (error) {
|
|
43
|
+
} catch (error) {// eslint-disable-line no-unused-vars
|
|
44
44
|
// do not set state on error
|
|
45
45
|
}
|
|
46
46
|
}, [collectionName, mediaClient]);
|
|
@@ -63,6 +63,7 @@ const RenderMediaInline = ({
|
|
|
63
63
|
const {
|
|
64
64
|
id
|
|
65
65
|
} = clipboardAttrs;
|
|
66
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
|
|
66
67
|
id && updateFileState(id);
|
|
67
68
|
}, [contextIdentifier, clipboardAttrs, updateFileState]);
|
|
68
69
|
|
|
@@ -154,7 +155,9 @@ const MediaInline = props => {
|
|
|
154
155
|
alt: alt,
|
|
155
156
|
width: width,
|
|
156
157
|
height: height,
|
|
157
|
-
ssr: ssr
|
|
158
|
+
ssr: ssr
|
|
159
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
160
|
+
,
|
|
158
161
|
border: {
|
|
159
162
|
borderSize,
|
|
160
163
|
borderColor
|
|
@@ -234,7 +234,9 @@ const MediaSingleWithChildren = props => {
|
|
|
234
234
|
width: width,
|
|
235
235
|
height: height,
|
|
236
236
|
lineLength: isInsideOfBlockNode ? containerWidth : lineLength,
|
|
237
|
-
containerWidth: containerWidth
|
|
237
|
+
containerWidth: containerWidth
|
|
238
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
239
|
+
,
|
|
238
240
|
size: {
|
|
239
241
|
width: widthAttr,
|
|
240
242
|
widthType
|
|
@@ -14,7 +14,9 @@ export default /*#__PURE__*/memo(function Status(props) {
|
|
|
14
14
|
if (fg('editor_inline_comments_on_inline_nodes')) {
|
|
15
15
|
return /*#__PURE__*/React.createElement("span", _extends({}, inlineAnnotationProps, {
|
|
16
16
|
role: 'emphasis'
|
|
17
|
-
}), /*#__PURE__*/React.createElement(FabricElementsAnalyticsContext
|
|
17
|
+
}), /*#__PURE__*/React.createElement(FabricElementsAnalyticsContext
|
|
18
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
19
|
+
, {
|
|
18
20
|
data: {
|
|
19
21
|
userContext: 'document'
|
|
20
22
|
}
|
|
@@ -26,7 +28,9 @@ export default /*#__PURE__*/memo(function Status(props) {
|
|
|
26
28
|
isBold: fg('platform-component-visual-refresh')
|
|
27
29
|
})));
|
|
28
30
|
}
|
|
29
|
-
return /*#__PURE__*/React.createElement(FabricElementsAnalyticsContext
|
|
31
|
+
return /*#__PURE__*/React.createElement(FabricElementsAnalyticsContext
|
|
32
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
33
|
+
, {
|
|
30
34
|
data: {
|
|
31
35
|
userContext: 'document'
|
|
32
36
|
}
|
|
@@ -68,8 +68,7 @@ export const getRefTop = refElement => {
|
|
|
68
68
|
export const shouldHeaderStick = (scrollTop, tableTop, tableBottom, rowHeight) => tableTop <= scrollTop && !(tableBottom - rowHeight <= scrollTop);
|
|
69
69
|
export const shouldHeaderPinBottom = (scrollTop, tableBottom, rowHeight) => tableBottom - rowHeight <= scrollTop && !(tableBottom < scrollTop);
|
|
70
70
|
export const addSortableColumn = (rows, tableOrderStatus, onSorting
|
|
71
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
72
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
71
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-explicit-any
|
|
73
72
|
) => {
|
|
74
73
|
return React.Children.map(rows, (row, index) => {
|
|
75
74
|
if (index === 0) {
|
|
@@ -649,7 +648,9 @@ const TableWithShadows = overflowShadow(TableProcessor, {
|
|
|
649
648
|
const TableWithWidth = props => {
|
|
650
649
|
if (fg('platform-ssr-table-resize')) {
|
|
651
650
|
var _props$columnWidths;
|
|
652
|
-
const colWidthsSum =
|
|
651
|
+
const colWidthsSum =
|
|
652
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
|
|
653
|
+
((_props$columnWidths = props.columnWidths) === null || _props$columnWidths === void 0 ? void 0 : _props$columnWidths.reduce((total, val) => total + val, 0)) || 0;
|
|
653
654
|
if (colWidthsSum || props.allowTableResizing) {
|
|
654
655
|
// Ignored via go/ees005
|
|
655
656
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
@@ -665,7 +666,9 @@ const TableWithWidth = props => {
|
|
|
665
666
|
}) => {
|
|
666
667
|
var _props$columnWidths2;
|
|
667
668
|
const renderWidth = props.rendererAppearance === 'full-page' ? width - FullPagePadding * 2 : width;
|
|
668
|
-
const colWidthsSum =
|
|
669
|
+
const colWidthsSum =
|
|
670
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
|
|
671
|
+
((_props$columnWidths2 = props.columnWidths) === null || _props$columnWidths2 === void 0 ? void 0 : _props$columnWidths2.reduce((total, val) => total + val, 0)) || 0;
|
|
669
672
|
if (colWidthsSum || props.allowTableResizing) {
|
|
670
673
|
// Ignored via go/ees005
|
|
671
674
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
@@ -29,7 +29,9 @@ export default class TaskItem extends PureComponent {
|
|
|
29
29
|
if (rendererContext) {
|
|
30
30
|
objectAri = rendererContext.objectAri || '';
|
|
31
31
|
}
|
|
32
|
-
return /*#__PURE__*/React.createElement(FabricElementsAnalyticsContext
|
|
32
|
+
return /*#__PURE__*/React.createElement(FabricElementsAnalyticsContext
|
|
33
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
34
|
+
, {
|
|
33
35
|
data: {
|
|
34
36
|
userContext: 'document'
|
|
35
37
|
}
|
|
@@ -42,7 +44,9 @@ export default class TaskItem extends PureComponent {
|
|
|
42
44
|
disableOnChange: disableOnChange,
|
|
43
45
|
taskDecisionProvider: taskDecisionProvider,
|
|
44
46
|
contextIdentifierProvider: contextIdentifierProvider,
|
|
45
|
-
dataAttributes: dataAttributes
|
|
47
|
+
dataAttributes: dataAttributes
|
|
48
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
49
|
+
,
|
|
46
50
|
onChange: (_, isChecked) => {
|
|
47
51
|
dispatch(isChecked);
|
|
48
52
|
}
|
|
@@ -58,7 +62,9 @@ export default class TaskItem extends PureComponent {
|
|
|
58
62
|
}
|
|
59
63
|
}
|
|
60
64
|
render() {
|
|
61
|
-
return /*#__PURE__*/React.createElement(WithProviders
|
|
65
|
+
return /*#__PURE__*/React.createElement(WithProviders
|
|
66
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
67
|
+
, {
|
|
62
68
|
providers: ['taskDecisionProvider', 'contextIdentifierProvider'],
|
|
63
69
|
providerFactory: this.providerFactory,
|
|
64
70
|
renderNode: this.renderWithProvider
|
package/dist/es2019/ui/Expand.js
CHANGED
|
@@ -219,14 +219,18 @@ function Expand({
|
|
|
219
219
|
expanded: expanded,
|
|
220
220
|
focused: focused
|
|
221
221
|
}, nestedHeaderIds && nestedHeaderIds.length > 0 ? jsx(ActiveHeaderIdConsumer, {
|
|
222
|
-
nestedHeaderIds: nestedHeaderIds
|
|
222
|
+
nestedHeaderIds: nestedHeaderIds
|
|
223
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
224
|
+
,
|
|
223
225
|
onNestedHeaderIdMatch: () => {
|
|
224
226
|
if (!hasLoadedChildren) {
|
|
225
227
|
setHasLoadedChildren(true);
|
|
226
228
|
}
|
|
227
229
|
setExpanded(true);
|
|
228
230
|
}
|
|
229
|
-
}) : null, jsx(TitleContainer
|
|
231
|
+
}) : null, jsx(TitleContainer
|
|
232
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
233
|
+
, {
|
|
230
234
|
onClick: e => {
|
|
231
235
|
e.preventDefault();
|
|
232
236
|
e.stopPropagation();
|
|
@@ -124,7 +124,9 @@ export default function ExtensionRenderer(props) {
|
|
|
124
124
|
if (!props.providers) {
|
|
125
125
|
return setupAndRenderExtensionNode({});
|
|
126
126
|
}
|
|
127
|
-
return jsx(WithProviders
|
|
127
|
+
return jsx(WithProviders
|
|
128
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
129
|
+
, {
|
|
128
130
|
providers: ['extensionProvider'],
|
|
129
131
|
providerFactory: props.providers,
|
|
130
132
|
renderNode: setupAndRenderExtensionNode
|
|
@@ -246,7 +246,8 @@ export class MediaCardView extends Component {
|
|
|
246
246
|
mediaClient,
|
|
247
247
|
dataAttributes,
|
|
248
248
|
enableSyncMediaCard,
|
|
249
|
-
localId
|
|
249
|
+
localId,
|
|
250
|
+
mediaViewerExtensions
|
|
250
251
|
} = this.props;
|
|
251
252
|
const isMobile = false;
|
|
252
253
|
const shouldPlayInline = useInlinePlayer !== undefined ? useInlinePlayer : true;
|
|
@@ -308,6 +309,7 @@ export class MediaCardView extends Component {
|
|
|
308
309
|
shouldEnableDownloadButton: shouldEnableDownloadButton,
|
|
309
310
|
ssr: ssr === null || ssr === void 0 ? void 0 : ssr.mode,
|
|
310
311
|
shouldHideTooltip: isMobile,
|
|
312
|
+
mediaViewerExtensions: mediaViewerExtensions,
|
|
311
313
|
onError: expValEquals('platform_editor_media_error_analytics', 'isEnabled', true) ? this.onError : undefined
|
|
312
314
|
}));
|
|
313
315
|
}
|
|
@@ -57,7 +57,7 @@ export const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
57
57
|
const TABLE_INFO_TIMEOUT = 10000;
|
|
58
58
|
const RENDER_EVENT_SAMPLE_RATE = 0.2;
|
|
59
59
|
const packageName = "@atlaskit/renderer";
|
|
60
|
-
const packageVersion = "
|
|
60
|
+
const packageVersion = "128.2.3";
|
|
61
61
|
const setAsQueryContainerStyles = css({
|
|
62
62
|
containerName: 'ak-renderer-wrapper',
|
|
63
63
|
containerType: 'inline-size'
|
|
@@ -447,6 +447,7 @@ export const RendererFunctionalComponent = props => {
|
|
|
447
447
|
}, jsx(ActiveHeaderIdProvider, {
|
|
448
448
|
value: getActiveHeadingId(props.allowHeadingAnchorLinks)
|
|
449
449
|
}, jsx(AnalyticsContext.Provider, {
|
|
450
|
+
// 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)
|
|
450
451
|
value: {
|
|
451
452
|
fireAnalyticsEvent: event => fireAnalyticsEvent(event)
|
|
452
453
|
}
|
|
@@ -464,7 +465,9 @@ export const RendererFunctionalComponent = props => {
|
|
|
464
465
|
allowPlaceholderText: props.allowPlaceholderText,
|
|
465
466
|
useBlockRenderForCodeBlock: (_rendererContext$feat = rendererContext.featureFlags.useBlockRenderForCodeBlock) !== null && _rendererContext$feat !== void 0 ? _rendererContext$feat : true,
|
|
466
467
|
addTelepointer: props.addTelepointer,
|
|
467
|
-
innerRef: editorRef
|
|
468
|
+
innerRef: editorRef
|
|
469
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
470
|
+
,
|
|
468
471
|
onClick: event => handleWrapperOnClick(event, props, mouseDownSelection),
|
|
469
472
|
onMouseDown: onMouseDownEditView,
|
|
470
473
|
ssr: (_props$media = props.media) === null || _props$media === void 0 ? void 0 : _props$media.ssr,
|
|
@@ -499,7 +502,9 @@ export const RendererFunctionalComponent = props => {
|
|
|
499
502
|
allowColumnSorting: props.allowColumnSorting,
|
|
500
503
|
allowNestedHeaderLinks: isNestedHeaderLinksEnabled(props.allowHeadingAnchorLinks),
|
|
501
504
|
useBlockRenderForCodeBlock: (_rendererContext$feat2 = rendererContext.featureFlags.useBlockRenderForCodeBlock) !== null && _rendererContext$feat2 !== void 0 ? _rendererContext$feat2 : true,
|
|
502
|
-
addTelepointer: props.addTelepointer
|
|
505
|
+
addTelepointer: props.addTelepointer
|
|
506
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
507
|
+
,
|
|
503
508
|
onClick: event => handleWrapperOnClick(event, props, mouseDownSelection),
|
|
504
509
|
isTopLevelRenderer: rendererContext.isTopLevelRenderer,
|
|
505
510
|
allowRendererContainerStyles: props.allowRendererContainerStyles
|
|
@@ -556,7 +561,9 @@ export function Renderer(props) {
|
|
|
556
561
|
// Usage notes:
|
|
557
562
|
// Used by Confluence for View page renderer
|
|
558
563
|
// For the nested renderers - see RendererWithAnnotationSelection.
|
|
559
|
-
export const RendererWithAnalytics = /*#__PURE__*/React.memo(props => jsx(FabricEditorAnalyticsContext
|
|
564
|
+
export const RendererWithAnalytics = /*#__PURE__*/React.memo(props => jsx(FabricEditorAnalyticsContext
|
|
565
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
566
|
+
, {
|
|
560
567
|
data: {
|
|
561
568
|
appearance: getAnalyticsAppearance(props.appearance),
|
|
562
569
|
packageName,
|
|
@@ -565,7 +572,9 @@ export const RendererWithAnalytics = /*#__PURE__*/React.memo(props => jsx(Fabric
|
|
|
565
572
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
566
573
|
editorSessionId: uuid()
|
|
567
574
|
}
|
|
568
|
-
}, jsx(WithCreateAnalyticsEvent
|
|
575
|
+
}, jsx(WithCreateAnalyticsEvent
|
|
576
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
577
|
+
, {
|
|
569
578
|
render: createAnalyticsEvent => {
|
|
570
579
|
// `IntlErrorBoundary` only captures Internationalisation errors, leaving others for `ErrorBoundary`.
|
|
571
580
|
return jsx(ErrorBoundary, {
|
|
@@ -761,11 +770,14 @@ function RendererActionsInternalUpdater({
|
|
|
761
770
|
return () => actions._privateUnregisterRenderer();
|
|
762
771
|
}, [actions, schema, _doc, onAnalyticsEvent]);
|
|
763
772
|
if (editorExperiment('comment_on_bodied_extensions', true)) {
|
|
764
|
-
return
|
|
765
|
-
value
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
773
|
+
return (
|
|
774
|
+
// 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)
|
|
775
|
+
jsx(RootRendererContext.Provider, {
|
|
776
|
+
value: {
|
|
777
|
+
doc: _doc
|
|
778
|
+
}
|
|
779
|
+
}, children)
|
|
780
|
+
);
|
|
769
781
|
}
|
|
770
782
|
return children;
|
|
771
783
|
}
|
package/dist/esm/react/index.js
CHANGED
|
@@ -485,7 +485,8 @@ var ReactSerializer = /*#__PURE__*/function () {
|
|
|
485
485
|
value: function getMediaProps(node) {
|
|
486
486
|
var _this6 = this,
|
|
487
487
|
_this$media,
|
|
488
|
-
_this$media2
|
|
488
|
+
_this$media2,
|
|
489
|
+
_this$media3;
|
|
489
490
|
var path = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
490
491
|
var _node$type$schema$mar = node.type.schema.marks,
|
|
491
492
|
annotation = _node$type$schema$mar.annotation,
|
|
@@ -520,6 +521,7 @@ var ReactSerializer = /*#__PURE__*/function () {
|
|
|
520
521
|
// surroundTextNodesWithTextWrapper checks inlineComment.allowDraftMode
|
|
521
522
|
allowAnnotationsDraftMode: this.surroundTextNodesWithTextWrapper,
|
|
522
523
|
enableSyncMediaCard: (_this$media2 = this.media) === null || _this$media2 === void 0 ? void 0 : _this$media2.enableSyncMediaCard,
|
|
524
|
+
mediaViewerExtensions: (_this$media3 = this.media) === null || _this$media3 === void 0 ? void 0 : _this$media3.mediaViewerExtensions,
|
|
523
525
|
nestedUnder: nestedUnder
|
|
524
526
|
});
|
|
525
527
|
}
|
|
@@ -572,21 +574,21 @@ var ReactSerializer = /*#__PURE__*/function () {
|
|
|
572
574
|
}, {
|
|
573
575
|
key: "getMediaGroupProps",
|
|
574
576
|
value: function getMediaGroupProps(node) {
|
|
575
|
-
var _this$
|
|
577
|
+
var _this$media4, _this$media5;
|
|
576
578
|
return _objectSpread(_objectSpread({}, this.getProps(node)), {}, {
|
|
577
579
|
shouldOpenMediaViewer: this.shouldOpenMediaViewer,
|
|
578
580
|
allowAltTextOnImages: this.allowAltTextOnImages,
|
|
579
581
|
featureFlags: this.media && this.media.featureFlags,
|
|
580
|
-
enableDownloadButton: (_this$
|
|
581
|
-
ssr: (_this$
|
|
582
|
+
enableDownloadButton: (_this$media4 = this.media) === null || _this$media4 === void 0 ? void 0 : _this$media4.enableDownloadButton,
|
|
583
|
+
ssr: (_this$media5 = this.media) === null || _this$media5 === void 0 ? void 0 : _this$media5.ssr
|
|
582
584
|
});
|
|
583
585
|
}
|
|
584
586
|
}, {
|
|
585
587
|
key: "getMediaInlineProps",
|
|
586
588
|
value: function getMediaInlineProps(node) {
|
|
587
|
-
var _this$
|
|
589
|
+
var _this$media6;
|
|
588
590
|
return _objectSpread(_objectSpread({}, this.getProps(node)), {}, {
|
|
589
|
-
ssr: (_this$
|
|
591
|
+
ssr: (_this$media6 = this.media) === null || _this$media6 === void 0 ? void 0 : _this$media6.ssr
|
|
590
592
|
});
|
|
591
593
|
}
|
|
592
594
|
}, {
|
|
@@ -2,7 +2,9 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
export default function DataConsumer(props) {
|
|
4
4
|
var WrapperElement = props.isInline ? 'span' : 'div';
|
|
5
|
-
return /*#__PURE__*/React.createElement(WrapperElement
|
|
5
|
+
return /*#__PURE__*/React.createElement(WrapperElement
|
|
6
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
|
|
7
|
+
, _extends({
|
|
6
8
|
"data-source": props.sources ? JSON.stringify(props.sources) : undefined,
|
|
7
9
|
"data-mark-type": "dataConsumer"
|
|
8
10
|
// Ignored via go/ees005
|
|
@@ -36,7 +36,7 @@ export default function Link(props) {
|
|
|
36
36
|
try {
|
|
37
37
|
var _onSetLinkTarget;
|
|
38
38
|
actualTarget = (_onSetLinkTarget = onSetLinkTarget(href)) !== null && _onSetLinkTarget !== void 0 ? _onSetLinkTarget : actualTarget;
|
|
39
|
-
} catch (error) {
|
|
39
|
+
} catch (error) {// eslint-disable-line no-unused-vars
|
|
40
40
|
// If URL parsing fails, use the original target
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -62,7 +62,9 @@ export default function Link(props) {
|
|
|
62
62
|
return jsx(AnalyticsContext, {
|
|
63
63
|
data: analyticsData
|
|
64
64
|
}, jsx(LinkUrl, _extends({
|
|
65
|
-
css: anchorStyles
|
|
65
|
+
css: anchorStyles
|
|
66
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
67
|
+
,
|
|
66
68
|
onClick: function onClick(e) {
|
|
67
69
|
if (fireAnalyticsEvent) {
|
|
68
70
|
fireAnalyticsEvent({
|
|
@@ -96,6 +96,8 @@ export default function BlockCard(props) {
|
|
|
96
96
|
var key = _ref3.key;
|
|
97
97
|
return key;
|
|
98
98
|
});
|
|
99
|
+
|
|
100
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
|
|
99
101
|
var columnCustomSizesEntries = columns === null || columns === void 0 ? void 0 : columns.filter(function (c) {
|
|
100
102
|
return !!c.width;
|
|
101
103
|
}).map(function (_ref4) {
|
|
@@ -104,6 +106,8 @@ export default function BlockCard(props) {
|
|
|
104
106
|
return [key, width];
|
|
105
107
|
});
|
|
106
108
|
var columnCustomSizes = columnCustomSizesEntries !== null && columnCustomSizesEntries !== void 0 && columnCustomSizesEntries.length ? Object.fromEntries(columnCustomSizesEntries) : undefined;
|
|
109
|
+
|
|
110
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
|
|
107
111
|
var wrappedColumnKeys = columns === null || columns === void 0 ? void 0 : columns.filter(function (c) {
|
|
108
112
|
return c.isWrapped;
|
|
109
113
|
}).map(function (c) {
|
|
@@ -191,7 +195,9 @@ export default function BlockCard(props) {
|
|
|
191
195
|
}, jsx("div", {
|
|
192
196
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
193
197
|
className: "blockCardView-content-wrap",
|
|
194
|
-
"data-block-card": true
|
|
198
|
+
"data-block-card": true
|
|
199
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
|
|
200
|
+
,
|
|
195
201
|
"data-card-data": data ? JSON.stringify(data) : undefined,
|
|
196
202
|
"data-card-url": url,
|
|
197
203
|
"data-local-id": localId
|
|
@@ -48,7 +48,9 @@ var CopyButton = function CopyButton(_ref) {
|
|
|
48
48
|
className: className,
|
|
49
49
|
iconBefore: jsx(CopyIcon, {
|
|
50
50
|
label: tooltip
|
|
51
|
-
})
|
|
51
|
+
})
|
|
52
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
53
|
+
,
|
|
52
54
|
onClick: function onClick(event) {
|
|
53
55
|
fireAnalyticsEvent({
|
|
54
56
|
// @ts-expect-error - Type 'ACTION.CLICKED' is not assignable to type 'ACTION.CLICKED | ACTION.MEDIA_LINK_TRANSFORMED | ACTION.STARTED | ACTION.TOGGLE_EXPAND | ACTION.UNSUPPORTED_CONTENT_ENCOUNTERED | ACTION.VISITED | ACTION.RENDERED | ACTION.INVALID_PROSEMIRROR_DOCUMENT | ACTION.CRASHED | ... 6 more ... | AnnotationActionType'.
|
|
@@ -32,7 +32,9 @@ var CodeBlockWrapButton = function CodeBlockWrapButton(_ref) {
|
|
|
32
32
|
iconBefore: jsx(TextWrapIcon, {
|
|
33
33
|
label: ""
|
|
34
34
|
}),
|
|
35
|
-
isSelected: wrapLongLines
|
|
35
|
+
isSelected: wrapLongLines
|
|
36
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
37
|
+
,
|
|
36
38
|
onClick: function onClick(event) {
|
|
37
39
|
fireAnalyticsEvent({
|
|
38
40
|
// @ts-expect-error - Type 'ACTION.CLICKED' is not assignable to type 'ACTION.CLICKED | ACTION.MEDIA_LINK_TRANSFORMED | ACTION.STARTED | ACTION.TOGGLE_EXPAND | ACTION.UNSUPPORTED_CONTENT_ENCOUNTERED | ACTION.VISITED | ACTION.RENDERED | ACTION.INVALID_PROSEMIRROR_DOCUMENT | ACTION.CRASHED | ... 6 more ... | AnnotationActionType'
|