@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
|
@@ -43,7 +43,9 @@ var EmojiNode = /*#__PURE__*/function (_PureComponent) {
|
|
|
43
43
|
if (!providers.emojiProvider) {
|
|
44
44
|
return null;
|
|
45
45
|
}
|
|
46
|
-
return jsx(ResourcedEmoji
|
|
46
|
+
return jsx(ResourcedEmoji
|
|
47
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
48
|
+
, {
|
|
47
49
|
emojiId: {
|
|
48
50
|
id: id,
|
|
49
51
|
fallback: fallback,
|
|
@@ -79,7 +81,9 @@ var EmojiNode = /*#__PURE__*/function (_PureComponent) {
|
|
|
79
81
|
}, {
|
|
80
82
|
key: "render",
|
|
81
83
|
value: function render() {
|
|
82
|
-
return jsx(WithProviders
|
|
84
|
+
return jsx(WithProviders
|
|
85
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
86
|
+
, {
|
|
83
87
|
providers: ['emojiProvider'],
|
|
84
88
|
providerFactory: this.providerFactory,
|
|
85
89
|
renderNode: this.renderWithProvider
|
|
@@ -45,7 +45,9 @@ function WrappedHeadingAnchor(_ref) {
|
|
|
45
45
|
var fireAnalyticsEvent = _ref2.fireAnalyticsEvent;
|
|
46
46
|
return jsx(HeadingAnchor, {
|
|
47
47
|
enableNestedHeaderLinks: enableNestedHeaderLinks,
|
|
48
|
-
level: level
|
|
48
|
+
level: level
|
|
49
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
50
|
+
,
|
|
49
51
|
onCopyText: function onCopyText() {
|
|
50
52
|
fireAnalyticsEvent({
|
|
51
53
|
action: ACTION.CLICKED,
|
|
@@ -101,7 +101,9 @@ var OverlayWithCardContext = function OverlayWithCardContext(_ref) {
|
|
|
101
101
|
url: url,
|
|
102
102
|
compactPadding: rendererAppearance === 'comment',
|
|
103
103
|
showPanelButton: showPanelButton,
|
|
104
|
-
showPanelButtonIcon: showPanelButtonIcon
|
|
104
|
+
showPanelButtonIcon: showPanelButtonIcon
|
|
105
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
106
|
+
,
|
|
105
107
|
onClick: function onClick(event) {
|
|
106
108
|
if (isPreviewPanelAvailable) {
|
|
107
109
|
var _extractSmartLinkEmbe;
|
|
@@ -203,7 +205,9 @@ var InlineCard = function InlineCard(props) {
|
|
|
203
205
|
appearance: SMART_LINK_APPEARANCE.INLINE,
|
|
204
206
|
source: SMART_LINK_DRAG_TYPES.RENDERER
|
|
205
207
|
}, jsx("span", _extends({
|
|
206
|
-
"data-inline-card": true
|
|
208
|
+
"data-inline-card": true
|
|
209
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
|
|
210
|
+
,
|
|
207
211
|
"data-card-data": data ? JSON.stringify(data) : undefined,
|
|
208
212
|
"data-card-url": url
|
|
209
213
|
// Ignored via go/ees005
|
|
@@ -242,7 +246,9 @@ var InlineCard = function InlineCard(props) {
|
|
|
242
246
|
appearance: SMART_LINK_APPEARANCE.INLINE,
|
|
243
247
|
source: SMART_LINK_DRAG_TYPES.RENDERER
|
|
244
248
|
}, jsx("span", {
|
|
245
|
-
"data-inline-card": true
|
|
249
|
+
"data-inline-card": true
|
|
250
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
|
|
251
|
+
,
|
|
246
252
|
"data-card-data": data ? JSON.stringify(data) : undefined,
|
|
247
253
|
"data-card-url": url,
|
|
248
254
|
"data-renderer-mark": inlineAnnotationProps['data-renderer-mark'],
|
|
@@ -262,7 +268,9 @@ var InlineCard = function InlineCard(props) {
|
|
|
262
268
|
url: url,
|
|
263
269
|
showHoverPreview: !hideHoverPreview,
|
|
264
270
|
actionOptions: actionOptions,
|
|
265
|
-
onClick: onClick
|
|
271
|
+
onClick: onClick
|
|
272
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
273
|
+
,
|
|
266
274
|
onResolve: function onResolve(data) {
|
|
267
275
|
if (!data.url || !data.title) {
|
|
268
276
|
return;
|
|
@@ -292,7 +300,9 @@ var InlineCard = function InlineCard(props) {
|
|
|
292
300
|
url: url,
|
|
293
301
|
showHoverPreview: !hideHoverPreview,
|
|
294
302
|
actionOptions: actionOptions,
|
|
295
|
-
onClick: onClick
|
|
303
|
+
onClick: onClick
|
|
304
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
305
|
+
,
|
|
296
306
|
onResolve: function onResolve(data) {
|
|
297
307
|
if (!data.url || !data.title) {
|
|
298
308
|
return;
|
|
@@ -313,7 +323,9 @@ var InlineCard = function InlineCard(props) {
|
|
|
313
323
|
}, jsx(AnalyticsContext, {
|
|
314
324
|
data: analyticsData
|
|
315
325
|
}, jsx("span", _extends({
|
|
316
|
-
"data-inline-card": true
|
|
326
|
+
"data-inline-card": true
|
|
327
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
|
|
328
|
+
,
|
|
317
329
|
"data-card-data": data ? JSON.stringify(data) : undefined,
|
|
318
330
|
"data-card-url": url
|
|
319
331
|
// Ignored via go/ees005
|
|
@@ -336,6 +348,7 @@ var InlineCard = function InlineCard(props) {
|
|
|
336
348
|
// Ignored via go/ees005
|
|
337
349
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
338
350
|
}, cardProps, {
|
|
351
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
339
352
|
onResolve: function onResolve(data) {
|
|
340
353
|
if (!data.url || !data.title) {
|
|
341
354
|
return;
|
|
@@ -107,12 +107,15 @@ var MediaAnnotation = function MediaAnnotation(_ref3) {
|
|
|
107
107
|
}
|
|
108
108
|
return jsx(AnnotationComponent, {
|
|
109
109
|
id: mark.attrs.id,
|
|
110
|
-
annotationType: mark.attrs.annotationType
|
|
110
|
+
annotationType: mark.attrs.annotationType
|
|
111
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
112
|
+
,
|
|
111
113
|
dataAttributes: {
|
|
112
114
|
'data-renderer-mark': true,
|
|
113
115
|
'data-block-mark': true
|
|
114
116
|
}
|
|
115
117
|
// This should be fine being empty [] since the serializer serializeFragmentChild getMarkProps call always passes
|
|
118
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
116
119
|
,
|
|
117
120
|
annotationParentIds: [],
|
|
118
121
|
allowAnnotations: true,
|
|
@@ -201,10 +204,14 @@ var CommentBadgeWrapper = function CommentBadgeWrapper(_ref5) {
|
|
|
201
204
|
});
|
|
202
205
|
}
|
|
203
206
|
};
|
|
204
|
-
return jsx(CommentBadgeNext
|
|
207
|
+
return jsx(CommentBadgeNext
|
|
208
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
209
|
+
, _extends({
|
|
205
210
|
onMouseEnter: function onMouseEnter() {
|
|
206
211
|
return setEntered(true);
|
|
207
|
-
}
|
|
212
|
+
}
|
|
213
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
214
|
+
,
|
|
208
215
|
onMouseLeave: function onMouseLeave() {
|
|
209
216
|
return setEntered(false);
|
|
210
217
|
},
|
|
@@ -254,7 +261,9 @@ var Media = /*#__PURE__*/function (_PureComponent) {
|
|
|
254
261
|
marks: annotationMarks
|
|
255
262
|
}, jsx(MediaBorder, {
|
|
256
263
|
mark: borderMark
|
|
257
|
-
}, jsx(AnalyticsContext
|
|
264
|
+
}, jsx(AnalyticsContext
|
|
265
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
266
|
+
, {
|
|
258
267
|
data: _defineProperty({}, MEDIA_CONTEXT, {
|
|
259
268
|
border: !!borderMark
|
|
260
269
|
})
|
|
@@ -322,7 +331,9 @@ var Media = /*#__PURE__*/function (_PureComponent) {
|
|
|
322
331
|
if (!providers) {
|
|
323
332
|
return this.renderCard();
|
|
324
333
|
}
|
|
325
|
-
return jsx(WithProviders
|
|
334
|
+
return jsx(WithProviders
|
|
335
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
336
|
+
, {
|
|
326
337
|
providers: ['mediaProvider', 'contextIdentifierProvider'],
|
|
327
338
|
providerFactory: providers,
|
|
328
339
|
renderNode: this.renderCard
|
|
@@ -350,10 +361,14 @@ var MediaWithDraftAnnotation = function MediaWithDraftAnnotation(props) {
|
|
|
350
361
|
}
|
|
351
362
|
var posToCheck = ((_draftPosition$from = draftPosition === null || draftPosition === void 0 ? void 0 : draftPosition.from) !== null && _draftPosition$from !== void 0 ? _draftPosition$from : 0) + 1;
|
|
352
363
|
if (draftPosition !== null && posToCheck === pos) {
|
|
364
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
|
|
353
365
|
setShouldApplyDraftAnnotation(true);
|
|
366
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
|
|
354
367
|
setPosition(posToCheck);
|
|
355
368
|
} else if (draftPosition === null && shouldApplyDraftAnnotation) {
|
|
369
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
|
|
356
370
|
setShouldApplyDraftAnnotation(false);
|
|
371
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
|
|
357
372
|
setPosition(undefined);
|
|
358
373
|
}
|
|
359
374
|
}, [draftPosition, pos, shouldApplyDraftAnnotation]);
|
|
@@ -91,6 +91,7 @@ var RenderMediaInline = function RenderMediaInline(_ref) {
|
|
|
91
91
|
}, [identifier, collectionName]);
|
|
92
92
|
useEffect(function () {
|
|
93
93
|
var id = clipboardAttrs.id;
|
|
94
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
|
|
94
95
|
id && updateFileState(id);
|
|
95
96
|
}, [contextIdentifier, clipboardAttrs, updateFileState]);
|
|
96
97
|
|
|
@@ -181,7 +182,9 @@ var MediaInline = function MediaInline(props) {
|
|
|
181
182
|
alt: alt,
|
|
182
183
|
width: width,
|
|
183
184
|
height: height,
|
|
184
|
-
ssr: ssr
|
|
185
|
+
ssr: ssr
|
|
186
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
187
|
+
,
|
|
185
188
|
border: {
|
|
186
189
|
borderSize: borderSize,
|
|
187
190
|
borderColor: borderColor
|
|
@@ -237,7 +237,9 @@ var MediaSingleWithChildren = function MediaSingleWithChildren(props) {
|
|
|
237
237
|
width: width,
|
|
238
238
|
height: height,
|
|
239
239
|
lineLength: isInsideOfBlockNode ? containerWidth : lineLength,
|
|
240
|
-
containerWidth: containerWidth
|
|
240
|
+
containerWidth: containerWidth
|
|
241
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
242
|
+
,
|
|
241
243
|
size: {
|
|
242
244
|
width: widthAttr,
|
|
243
245
|
widthType: widthType
|
|
@@ -12,7 +12,9 @@ export default /*#__PURE__*/memo(function Status(props) {
|
|
|
12
12
|
if (fg('editor_inline_comments_on_inline_nodes')) {
|
|
13
13
|
return /*#__PURE__*/React.createElement("span", _extends({}, inlineAnnotationProps, {
|
|
14
14
|
role: 'emphasis'
|
|
15
|
-
}), /*#__PURE__*/React.createElement(FabricElementsAnalyticsContext
|
|
15
|
+
}), /*#__PURE__*/React.createElement(FabricElementsAnalyticsContext
|
|
16
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
17
|
+
, {
|
|
16
18
|
data: {
|
|
17
19
|
userContext: 'document'
|
|
18
20
|
}
|
|
@@ -24,7 +26,9 @@ export default /*#__PURE__*/memo(function Status(props) {
|
|
|
24
26
|
isBold: fg('platform-component-visual-refresh')
|
|
25
27
|
})));
|
|
26
28
|
}
|
|
27
|
-
return /*#__PURE__*/React.createElement(FabricElementsAnalyticsContext
|
|
29
|
+
return /*#__PURE__*/React.createElement(FabricElementsAnalyticsContext
|
|
30
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
31
|
+
, {
|
|
28
32
|
data: {
|
|
29
33
|
userContext: 'document'
|
|
30
34
|
}
|
|
@@ -92,8 +92,7 @@ export var shouldHeaderPinBottom = function shouldHeaderPinBottom(scrollTop, tab
|
|
|
92
92
|
return tableBottom - rowHeight <= scrollTop && !(tableBottom < scrollTop);
|
|
93
93
|
};
|
|
94
94
|
export var addSortableColumn = function addSortableColumn(rows, tableOrderStatus, onSorting
|
|
95
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
96
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
95
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-explicit-any
|
|
97
96
|
) {
|
|
98
97
|
return React.Children.map(rows, function (row, index) {
|
|
99
98
|
if (index === 0) {
|
|
@@ -704,7 +703,9 @@ var TableWithShadows = overflowShadow(TableProcessor, {
|
|
|
704
703
|
var TableWithWidth = function TableWithWidth(props) {
|
|
705
704
|
if (fg('platform-ssr-table-resize')) {
|
|
706
705
|
var _props$columnWidths;
|
|
707
|
-
var colWidthsSum =
|
|
706
|
+
var colWidthsSum =
|
|
707
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
|
|
708
|
+
((_props$columnWidths = props.columnWidths) === null || _props$columnWidths === void 0 ? void 0 : _props$columnWidths.reduce(function (total, val) {
|
|
708
709
|
return total + val;
|
|
709
710
|
}, 0)) || 0;
|
|
710
711
|
if (colWidthsSum || props.allowTableResizing) {
|
|
@@ -721,7 +722,9 @@ var TableWithWidth = function TableWithWidth(props) {
|
|
|
721
722
|
var _props$columnWidths2;
|
|
722
723
|
var width = _ref3.width;
|
|
723
724
|
var renderWidth = props.rendererAppearance === 'full-page' ? width - FullPagePadding * 2 : width;
|
|
724
|
-
var colWidthsSum =
|
|
725
|
+
var colWidthsSum =
|
|
726
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
|
|
727
|
+
((_props$columnWidths2 = props.columnWidths) === null || _props$columnWidths2 === void 0 ? void 0 : _props$columnWidths2.reduce(function (total, val) {
|
|
725
728
|
return total + val;
|
|
726
729
|
}, 0)) || 0;
|
|
727
730
|
if (colWidthsSum || props.allowTableResizing) {
|
|
@@ -36,7 +36,9 @@ var TaskItem = /*#__PURE__*/function (_PureComponent) {
|
|
|
36
36
|
if (rendererContext) {
|
|
37
37
|
objectAri = rendererContext.objectAri || '';
|
|
38
38
|
}
|
|
39
|
-
return /*#__PURE__*/React.createElement(FabricElementsAnalyticsContext
|
|
39
|
+
return /*#__PURE__*/React.createElement(FabricElementsAnalyticsContext
|
|
40
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
41
|
+
, {
|
|
40
42
|
data: {
|
|
41
43
|
userContext: 'document'
|
|
42
44
|
}
|
|
@@ -52,7 +54,9 @@ var TaskItem = /*#__PURE__*/function (_PureComponent) {
|
|
|
52
54
|
disableOnChange: disableOnChange,
|
|
53
55
|
taskDecisionProvider: taskDecisionProvider,
|
|
54
56
|
contextIdentifierProvider: contextIdentifierProvider,
|
|
55
|
-
dataAttributes: dataAttributes
|
|
57
|
+
dataAttributes: dataAttributes
|
|
58
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
59
|
+
,
|
|
56
60
|
onChange: function onChange(_, isChecked) {
|
|
57
61
|
dispatch(isChecked);
|
|
58
62
|
}
|
|
@@ -75,7 +79,9 @@ var TaskItem = /*#__PURE__*/function (_PureComponent) {
|
|
|
75
79
|
}, {
|
|
76
80
|
key: "render",
|
|
77
81
|
value: function render() {
|
|
78
|
-
return /*#__PURE__*/React.createElement(WithProviders
|
|
82
|
+
return /*#__PURE__*/React.createElement(WithProviders
|
|
83
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
84
|
+
, {
|
|
79
85
|
providers: ['taskDecisionProvider', 'contextIdentifierProvider'],
|
|
80
86
|
providerFactory: this.providerFactory,
|
|
81
87
|
renderNode: this.renderWithProvider
|
package/dist/esm/ui/Expand.js
CHANGED
|
@@ -228,14 +228,18 @@ function Expand(_ref2) {
|
|
|
228
228
|
expanded: expanded,
|
|
229
229
|
focused: focused
|
|
230
230
|
}, nestedHeaderIds && nestedHeaderIds.length > 0 ? jsx(ActiveHeaderIdConsumer, {
|
|
231
|
-
nestedHeaderIds: nestedHeaderIds
|
|
231
|
+
nestedHeaderIds: nestedHeaderIds
|
|
232
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
233
|
+
,
|
|
232
234
|
onNestedHeaderIdMatch: function onNestedHeaderIdMatch() {
|
|
233
235
|
if (!hasLoadedChildren) {
|
|
234
236
|
setHasLoadedChildren(true);
|
|
235
237
|
}
|
|
236
238
|
setExpanded(true);
|
|
237
239
|
}
|
|
238
|
-
}) : null, jsx(TitleContainer
|
|
240
|
+
}) : null, jsx(TitleContainer
|
|
241
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
242
|
+
, {
|
|
239
243
|
onClick: function onClick(e) {
|
|
240
244
|
e.preventDefault();
|
|
241
245
|
e.stopPropagation();
|
|
@@ -130,7 +130,9 @@ export default function ExtensionRenderer(props) {
|
|
|
130
130
|
if (!props.providers) {
|
|
131
131
|
return setupAndRenderExtensionNode({});
|
|
132
132
|
}
|
|
133
|
-
return jsx(WithProviders
|
|
133
|
+
return jsx(WithProviders
|
|
134
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
135
|
+
, {
|
|
134
136
|
providers: ['extensionProvider'],
|
|
135
137
|
providerFactory: props.providers,
|
|
136
138
|
renderNode: setupAndRenderExtensionNode
|
package/dist/esm/ui/MediaCard.js
CHANGED
|
@@ -299,7 +299,8 @@ export var MediaCardView = /*#__PURE__*/function (_Component) {
|
|
|
299
299
|
mediaClient = _this$props7.mediaClient,
|
|
300
300
|
dataAttributes = _this$props7.dataAttributes,
|
|
301
301
|
enableSyncMediaCard = _this$props7.enableSyncMediaCard,
|
|
302
|
-
localId = _this$props7.localId
|
|
302
|
+
localId = _this$props7.localId,
|
|
303
|
+
mediaViewerExtensions = _this$props7.mediaViewerExtensions;
|
|
303
304
|
var isMobile = false;
|
|
304
305
|
var shouldPlayInline = useInlinePlayer !== undefined ? useInlinePlayer : true;
|
|
305
306
|
var isInlinePlayer = isMobile ? false : shouldPlayInline;
|
|
@@ -360,6 +361,7 @@ export var MediaCardView = /*#__PURE__*/function (_Component) {
|
|
|
360
361
|
shouldEnableDownloadButton: shouldEnableDownloadButton,
|
|
361
362
|
ssr: ssr === null || ssr === void 0 ? void 0 : ssr.mode,
|
|
362
363
|
shouldHideTooltip: isMobile,
|
|
364
|
+
mediaViewerExtensions: mediaViewerExtensions,
|
|
363
365
|
onError: expValEquals('platform_editor_media_error_analytics', 'isEnabled', true) ? this.onError : undefined
|
|
364
366
|
}));
|
|
365
367
|
}
|
|
@@ -62,7 +62,7 @@ export var DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
|
62
62
|
var TABLE_INFO_TIMEOUT = 10000;
|
|
63
63
|
var RENDER_EVENT_SAMPLE_RATE = 0.2;
|
|
64
64
|
var packageName = "@atlaskit/renderer";
|
|
65
|
-
var packageVersion = "
|
|
65
|
+
var packageVersion = "128.2.3";
|
|
66
66
|
var setAsQueryContainerStyles = css({
|
|
67
67
|
containerName: 'ak-renderer-wrapper',
|
|
68
68
|
containerType: 'inline-size'
|
|
@@ -447,6 +447,7 @@ export var RendererFunctionalComponent = function RendererFunctionalComponent(pr
|
|
|
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: function fireAnalyticsEvent(event) {
|
|
452
453
|
return _fireAnalyticsEvent(event);
|
|
@@ -466,7 +467,9 @@ export var RendererFunctionalComponent = function RendererFunctionalComponent(pr
|
|
|
466
467
|
allowPlaceholderText: props.allowPlaceholderText,
|
|
467
468
|
useBlockRenderForCodeBlock: (_rendererContext$feat = rendererContext.featureFlags.useBlockRenderForCodeBlock) !== null && _rendererContext$feat !== void 0 ? _rendererContext$feat : true,
|
|
468
469
|
addTelepointer: props.addTelepointer,
|
|
469
|
-
innerRef: editorRef
|
|
470
|
+
innerRef: editorRef
|
|
471
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
472
|
+
,
|
|
470
473
|
onClick: function onClick(event) {
|
|
471
474
|
return handleWrapperOnClick(event, props, mouseDownSelection);
|
|
472
475
|
},
|
|
@@ -503,7 +506,9 @@ export var RendererFunctionalComponent = function RendererFunctionalComponent(pr
|
|
|
503
506
|
allowColumnSorting: props.allowColumnSorting,
|
|
504
507
|
allowNestedHeaderLinks: isNestedHeaderLinksEnabled(props.allowHeadingAnchorLinks),
|
|
505
508
|
useBlockRenderForCodeBlock: (_rendererContext$feat2 = rendererContext.featureFlags.useBlockRenderForCodeBlock) !== null && _rendererContext$feat2 !== void 0 ? _rendererContext$feat2 : true,
|
|
506
|
-
addTelepointer: props.addTelepointer
|
|
509
|
+
addTelepointer: props.addTelepointer
|
|
510
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
511
|
+
,
|
|
507
512
|
onClick: function onClick(event) {
|
|
508
513
|
return handleWrapperOnClick(event, props, mouseDownSelection);
|
|
509
514
|
},
|
|
@@ -560,7 +565,9 @@ export function Renderer(props) {
|
|
|
560
565
|
// Used by Confluence for View page renderer
|
|
561
566
|
// For the nested renderers - see RendererWithAnnotationSelection.
|
|
562
567
|
export var RendererWithAnalytics = /*#__PURE__*/React.memo(function (props) {
|
|
563
|
-
return jsx(FabricEditorAnalyticsContext
|
|
568
|
+
return jsx(FabricEditorAnalyticsContext
|
|
569
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
570
|
+
, {
|
|
564
571
|
data: {
|
|
565
572
|
appearance: getAnalyticsAppearance(props.appearance),
|
|
566
573
|
packageName: packageName,
|
|
@@ -569,7 +576,9 @@ export var RendererWithAnalytics = /*#__PURE__*/React.memo(function (props) {
|
|
|
569
576
|
// eslint-disable-next-line @atlaskit/platform/prefer-crypto-random-uuid -- Use crypto.randomUUID instead
|
|
570
577
|
editorSessionId: uuid()
|
|
571
578
|
}
|
|
572
|
-
}, jsx(WithCreateAnalyticsEvent
|
|
579
|
+
}, jsx(WithCreateAnalyticsEvent
|
|
580
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
581
|
+
, {
|
|
573
582
|
render: function render(createAnalyticsEvent) {
|
|
574
583
|
// `IntlErrorBoundary` only captures Internationalisation errors, leaving others for `ErrorBoundary`.
|
|
575
584
|
return jsx(ErrorBoundary, {
|
|
@@ -767,11 +776,14 @@ function RendererActionsInternalUpdater(_ref2) {
|
|
|
767
776
|
};
|
|
768
777
|
}, [actions, schema, _doc, onAnalyticsEvent]);
|
|
769
778
|
if (editorExperiment('comment_on_bodied_extensions', true)) {
|
|
770
|
-
return
|
|
771
|
-
value
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
779
|
+
return (
|
|
780
|
+
// 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)
|
|
781
|
+
jsx(RootRendererContext.Provider, {
|
|
782
|
+
value: {
|
|
783
|
+
doc: _doc
|
|
784
|
+
}
|
|
785
|
+
}, children)
|
|
786
|
+
);
|
|
775
787
|
}
|
|
776
788
|
return children;
|
|
777
789
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { MediaClientConfig } from '@atlaskit/media-core';
|
|
2
2
|
import type { MediaFeatureFlags, SSR } from '@atlaskit/media-common';
|
|
3
|
+
import type { MediaViewerExtensions } from '@atlaskit/media-viewer';
|
|
3
4
|
export type MediaSSR = {
|
|
4
5
|
config: MediaClientConfig;
|
|
5
6
|
mode: SSR;
|
|
@@ -10,5 +11,7 @@ export interface MediaOptions {
|
|
|
10
11
|
enableDownloadButton?: boolean;
|
|
11
12
|
enableSyncMediaCard?: boolean;
|
|
12
13
|
featureFlags?: MediaFeatureFlags;
|
|
14
|
+
/** Extensions for the media viewer header (e.g. comment navigation button). */
|
|
15
|
+
mediaViewerExtensions?: MediaViewerExtensions;
|
|
13
16
|
ssr?: MediaSSR;
|
|
14
17
|
}
|
|
@@ -10,6 +10,7 @@ import type { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
|
10
10
|
import type { RendererAppearance } from './Renderer/types';
|
|
11
11
|
import type { RendererContext } from '../react/types';
|
|
12
12
|
import type { MediaSSR } from '../types/mediaOptions';
|
|
13
|
+
import type { MediaViewerExtensions } from '@atlaskit/media-viewer';
|
|
13
14
|
import type { AnalyticsEventPayload } from '../analytics/events';
|
|
14
15
|
export type MediaProvider = {
|
|
15
16
|
viewMediaClientConfig: MediaClientConfig;
|
|
@@ -32,6 +33,8 @@ export interface MediaCardProps {
|
|
|
32
33
|
id?: string;
|
|
33
34
|
imageStatus?: ImageStatus;
|
|
34
35
|
localId?: string;
|
|
36
|
+
/** Extensions for the media viewer (e.g. comment button in header). */
|
|
37
|
+
mediaViewerExtensions?: MediaViewerExtensions;
|
|
35
38
|
/**
|
|
36
39
|
* Indicates if media node is nested under a bodiedSyncBlock
|
|
37
40
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { MediaClientConfig } from '@atlaskit/media-core';
|
|
2
2
|
import type { MediaFeatureFlags, SSR } from '@atlaskit/media-common';
|
|
3
|
+
import type { MediaViewerExtensions } from '@atlaskit/media-viewer';
|
|
3
4
|
export type MediaSSR = {
|
|
4
5
|
config: MediaClientConfig;
|
|
5
6
|
mode: SSR;
|
|
@@ -10,5 +11,7 @@ export interface MediaOptions {
|
|
|
10
11
|
enableDownloadButton?: boolean;
|
|
11
12
|
enableSyncMediaCard?: boolean;
|
|
12
13
|
featureFlags?: MediaFeatureFlags;
|
|
14
|
+
/** Extensions for the media viewer header (e.g. comment navigation button). */
|
|
15
|
+
mediaViewerExtensions?: MediaViewerExtensions;
|
|
13
16
|
ssr?: MediaSSR;
|
|
14
17
|
}
|
|
@@ -10,6 +10,7 @@ import type { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
|
10
10
|
import type { RendererAppearance } from './Renderer/types';
|
|
11
11
|
import type { RendererContext } from '../react/types';
|
|
12
12
|
import type { MediaSSR } from '../types/mediaOptions';
|
|
13
|
+
import type { MediaViewerExtensions } from '@atlaskit/media-viewer';
|
|
13
14
|
import type { AnalyticsEventPayload } from '../analytics/events';
|
|
14
15
|
export type MediaProvider = {
|
|
15
16
|
viewMediaClientConfig: MediaClientConfig;
|
|
@@ -32,6 +33,8 @@ export interface MediaCardProps {
|
|
|
32
33
|
id?: string;
|
|
33
34
|
imageStatus?: ImageStatus;
|
|
34
35
|
localId?: string;
|
|
36
|
+
/** Extensions for the media viewer (e.g. comment button in header). */
|
|
37
|
+
mediaViewerExtensions?: MediaViewerExtensions;
|
|
35
38
|
/**
|
|
36
39
|
* Indicates if media node is nested under a bodiedSyncBlock
|
|
37
40
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "128.
|
|
3
|
+
"version": "128.3.0",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -44,22 +44,22 @@
|
|
|
44
44
|
"@atlaskit/link-datasource": "^4.34.0",
|
|
45
45
|
"@atlaskit/link-extractors": "^2.4.0",
|
|
46
46
|
"@atlaskit/linking-common": "^9.10.0",
|
|
47
|
-
"@atlaskit/media-card": "^79.
|
|
47
|
+
"@atlaskit/media-card": "^79.16.0",
|
|
48
48
|
"@atlaskit/media-client": "^36.0.0",
|
|
49
49
|
"@atlaskit/media-client-react": "^5.0.0",
|
|
50
50
|
"@atlaskit/media-common": "^13.0.0",
|
|
51
51
|
"@atlaskit/media-filmstrip": "^51.2.0",
|
|
52
52
|
"@atlaskit/media-ui": "^28.7.0",
|
|
53
|
-
"@atlaskit/media-viewer": "^52.
|
|
53
|
+
"@atlaskit/media-viewer": "^52.9.0",
|
|
54
54
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
55
55
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
56
56
|
"@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
|
|
57
57
|
"@atlaskit/react-ufo": "^5.4.0",
|
|
58
|
-
"@atlaskit/smart-card": "^43.
|
|
58
|
+
"@atlaskit/smart-card": "^43.27.0",
|
|
59
59
|
"@atlaskit/status": "^3.1.0",
|
|
60
60
|
"@atlaskit/task-decision": "^19.3.0",
|
|
61
61
|
"@atlaskit/theme": "^22.0.0",
|
|
62
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
62
|
+
"@atlaskit/tmp-editor-statsig": "^44.0.0",
|
|
63
63
|
"@atlaskit/tokens": "^11.1.0",
|
|
64
64
|
"@atlaskit/tooltip": "^21.0.0",
|
|
65
65
|
"@atlaskit/visually-hidden": "^3.0.0",
|