@atlaskit/renderer 112.7.12 → 112.7.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/cjs/actions/index.js +6 -0
- package/dist/cjs/actions/matches-utils.js +6 -0
- package/dist/cjs/analytics/unsupported-content.js +7 -0
- package/dist/cjs/react/index.js +61 -10
- package/dist/cjs/react/marks/alignment.js +5 -5
- package/dist/cjs/react/marks/annotation.js +8 -3
- package/dist/cjs/react/marks/breakout.js +2 -0
- package/dist/cjs/react/marks/code.js +2 -0
- package/dist/cjs/react/marks/confluence-inline-comment.js +2 -0
- package/dist/cjs/react/marks/data-consumer.js +2 -0
- package/dist/cjs/react/marks/em.js +2 -0
- package/dist/cjs/react/marks/fragment.js +2 -0
- package/dist/cjs/react/marks/index.js +3 -0
- package/dist/cjs/react/marks/link.js +2 -0
- package/dist/cjs/react/marks/strike.js +5 -8
- package/dist/cjs/react/marks/strong.js +2 -0
- package/dist/cjs/react/marks/subsup.js +5 -0
- package/dist/cjs/react/marks/underline.js +2 -0
- package/dist/cjs/react/marks/unsupportedMark.js +2 -0
- package/dist/cjs/react/marks/unsupportedNodeAttribute.js +2 -0
- package/dist/cjs/react/nodes/TableStickyScrollbar.js +17 -1
- package/dist/cjs/react/nodes/blockCard.js +6 -0
- package/dist/cjs/react/nodes/bodiedExtension.js +8 -2
- package/dist/cjs/react/nodes/codeBlock/components/lightWeightCodeBlock.js +7 -3
- package/dist/cjs/react/nodes/codeBlock/windowedCodeBlock.js +5 -1
- package/dist/cjs/react/nodes/date.js +13 -11
- package/dist/cjs/react/nodes/decisionList.js +2 -0
- package/dist/cjs/react/nodes/doc.js +5 -0
- package/dist/cjs/react/nodes/embedCard.js +42 -36
- package/dist/cjs/react/nodes/emoji.js +13 -9
- package/dist/cjs/react/nodes/extension.js +8 -2
- package/dist/cjs/react/nodes/fallback.js +6 -1
- package/dist/cjs/react/nodes/heading-anchor.js +9 -6
- package/dist/cjs/react/nodes/heading.js +16 -11
- package/dist/cjs/react/nodes/index.js +12 -1
- package/dist/cjs/react/nodes/inline.js +2 -0
- package/dist/cjs/react/nodes/inlineCard.js +8 -0
- package/dist/cjs/react/nodes/inlineExtension.js +20 -15
- package/dist/cjs/react/nodes/media/index.js +17 -1
- package/dist/cjs/react/nodes/mediaGroup.js +21 -7
- package/dist/cjs/react/nodes/mediaInline.js +2 -0
- package/dist/cjs/react/nodes/mediaSingle/index.js +21 -0
- package/dist/cjs/react/nodes/mention.js +13 -8
- package/dist/cjs/react/nodes/multiBodiedExtension.js +10 -2
- package/dist/cjs/react/nodes/orderedList.js +2 -0
- package/dist/cjs/react/nodes/panel.js +3 -1
- package/dist/cjs/react/nodes/paragraph.js +2 -0
- package/dist/cjs/react/nodes/status.js +16 -11
- package/dist/cjs/react/nodes/table/colgroup.js +6 -2
- package/dist/cjs/react/nodes/table/sticky.js +13 -0
- package/dist/cjs/react/nodes/table.js +31 -2
- package/dist/cjs/react/nodes/tableCell.js +18 -1
- package/dist/cjs/react/nodes/tableRow.js +2 -0
- package/dist/cjs/react/nodes/task-item-with-providers.js +3 -0
- package/dist/cjs/react/nodes/taskItem.js +4 -0
- package/dist/cjs/react/nodes/taskList.js +2 -0
- package/dist/cjs/react/utils/render-text-segments.js +2 -0
- package/dist/cjs/react/utils/segment-text.js +4 -1
- package/dist/cjs/react/utils/use-select-all-trap.js +11 -0
- package/dist/cjs/render-document.js +11 -2
- package/dist/cjs/steps/index.js +6 -1
- package/dist/cjs/text/index.js +3 -0
- package/dist/cjs/ui/Expand.js +7 -3
- package/dist/cjs/ui/ExtensionRenderer.js +3 -0
- package/dist/cjs/ui/MediaCard.js +34 -19
- package/dist/cjs/ui/Renderer/ErrorBoundary.js +4 -0
- package/dist/cjs/ui/Renderer/breakout-ssr.js +28 -2
- package/dist/cjs/ui/Renderer/count-nodes.js +2 -0
- package/dist/cjs/ui/Renderer/index.js +68 -7
- package/dist/cjs/ui/Renderer/style.js +12 -7
- package/dist/cjs/ui/Renderer/truncated-wrapper.js +3 -0
- package/dist/cjs/ui/SmartCardStorage.js +6 -1
- package/dist/cjs/ui/annotations/context.js +3 -0
- package/dist/cjs/ui/annotations/draft/component.js +24 -12
- package/dist/cjs/ui/annotations/element/mark.js +5 -0
- package/dist/cjs/ui/annotations/element/useInlineAnnotationProps.js +7 -1
- package/dist/cjs/ui/annotations/hooks/user-selection.js +9 -1
- package/dist/cjs/ui/annotations/hover/mounter.js +4 -1
- package/dist/cjs/ui/annotations/selection/mounter.js +4 -1
- package/dist/cjs/ui/annotations/wrapper.js +8 -2
- package/dist/cjs/utils.js +9 -1
- package/dist/es2019/actions/index.js +6 -0
- package/dist/es2019/actions/matches-utils.js +6 -0
- package/dist/es2019/analytics/unsupported-content.js +8 -0
- package/dist/es2019/react/index.js +67 -10
- package/dist/es2019/react/marks/alignment.js +5 -5
- package/dist/es2019/react/marks/annotation.js +8 -3
- package/dist/es2019/react/marks/breakout.js +2 -0
- package/dist/es2019/react/marks/code.js +2 -0
- package/dist/es2019/react/marks/confluence-inline-comment.js +2 -0
- package/dist/es2019/react/marks/data-consumer.js +2 -0
- package/dist/es2019/react/marks/em.js +2 -0
- package/dist/es2019/react/marks/fragment.js +2 -0
- package/dist/es2019/react/marks/index.js +3 -0
- package/dist/es2019/react/marks/link.js +2 -0
- package/dist/es2019/react/marks/strike.js +5 -8
- package/dist/es2019/react/marks/strong.js +2 -0
- package/dist/es2019/react/marks/subsup.js +5 -0
- package/dist/es2019/react/marks/underline.js +2 -0
- package/dist/es2019/react/marks/unsupportedMark.js +2 -0
- package/dist/es2019/react/marks/unsupportedNodeAttribute.js +2 -0
- package/dist/es2019/react/nodes/TableStickyScrollbar.js +16 -1
- package/dist/es2019/react/nodes/blockCard.js +6 -0
- package/dist/es2019/react/nodes/bodiedExtension.js +8 -2
- package/dist/es2019/react/nodes/codeBlock/components/lightWeightCodeBlock.js +4 -1
- package/dist/es2019/react/nodes/codeBlock/windowedCodeBlock.js +4 -1
- package/dist/es2019/react/nodes/date.js +13 -11
- package/dist/es2019/react/nodes/decisionList.js +2 -0
- package/dist/es2019/react/nodes/doc.js +6 -0
- package/dist/es2019/react/nodes/embedCard.js +42 -36
- package/dist/es2019/react/nodes/emoji.js +13 -9
- package/dist/es2019/react/nodes/extension.js +8 -2
- package/dist/es2019/react/nodes/fallback.js +6 -1
- package/dist/es2019/react/nodes/heading-anchor.js +10 -6
- package/dist/es2019/react/nodes/heading.js +16 -11
- package/dist/es2019/react/nodes/index.js +13 -1
- package/dist/es2019/react/nodes/inline.js +3 -0
- package/dist/es2019/react/nodes/inlineCard.js +8 -0
- package/dist/es2019/react/nodes/inlineExtension.js +21 -16
- package/dist/es2019/react/nodes/media/index.js +17 -1
- package/dist/es2019/react/nodes/mediaGroup.js +14 -1
- package/dist/es2019/react/nodes/mediaInline.js +2 -0
- package/dist/es2019/react/nodes/mediaSingle/index.js +21 -0
- package/dist/es2019/react/nodes/mention.js +13 -8
- package/dist/es2019/react/nodes/multiBodiedExtension.js +10 -2
- package/dist/es2019/react/nodes/orderedList.js +2 -0
- package/dist/es2019/react/nodes/panel.js +3 -1
- package/dist/es2019/react/nodes/paragraph.js +2 -0
- package/dist/es2019/react/nodes/status.js +16 -11
- package/dist/es2019/react/nodes/table/colgroup.js +6 -2
- package/dist/es2019/react/nodes/table/sticky.js +13 -0
- package/dist/es2019/react/nodes/table.js +32 -3
- package/dist/es2019/react/nodes/tableCell.js +18 -1
- package/dist/es2019/react/nodes/tableRow.js +2 -0
- package/dist/es2019/react/nodes/task-item-with-providers.js +3 -0
- package/dist/es2019/react/nodes/taskItem.js +4 -0
- package/dist/es2019/react/nodes/taskList.js +2 -0
- package/dist/es2019/react/utils/render-text-segments.js +2 -0
- package/dist/es2019/react/utils/segment-text.js +4 -1
- package/dist/es2019/react/utils/use-select-all-trap.js +11 -0
- package/dist/es2019/render-document.js +11 -2
- package/dist/es2019/steps/index.js +6 -1
- package/dist/es2019/text/index.js +3 -0
- package/dist/es2019/ui/Expand.js +7 -3
- package/dist/es2019/ui/ExtensionRenderer.js +3 -0
- package/dist/es2019/ui/MediaCard.js +34 -19
- package/dist/es2019/ui/Renderer/ErrorBoundary.js +4 -0
- package/dist/es2019/ui/Renderer/breakout-ssr.js +28 -2
- package/dist/es2019/ui/Renderer/count-nodes.js +3 -0
- package/dist/es2019/ui/Renderer/index.js +68 -7
- package/dist/es2019/ui/Renderer/style.js +47 -37
- package/dist/es2019/ui/Renderer/truncated-wrapper.js +3 -0
- package/dist/es2019/ui/SmartCardStorage.js +6 -1
- package/dist/es2019/ui/annotations/context.js +3 -0
- package/dist/es2019/ui/annotations/draft/component.js +24 -12
- package/dist/es2019/ui/annotations/element/mark.js +5 -0
- package/dist/es2019/ui/annotations/element/useInlineAnnotationProps.js +7 -1
- package/dist/es2019/ui/annotations/hooks/user-selection.js +9 -1
- package/dist/es2019/ui/annotations/hover/mounter.js +4 -1
- package/dist/es2019/ui/annotations/selection/mounter.js +4 -1
- package/dist/es2019/ui/annotations/wrapper.js +8 -2
- package/dist/es2019/utils.js +12 -1
- package/dist/esm/actions/index.js +6 -0
- package/dist/esm/actions/matches-utils.js +6 -0
- package/dist/esm/analytics/unsupported-content.js +8 -0
- package/dist/esm/react/index.js +61 -10
- package/dist/esm/react/marks/alignment.js +5 -5
- package/dist/esm/react/marks/annotation.js +8 -3
- package/dist/esm/react/marks/breakout.js +2 -0
- package/dist/esm/react/marks/code.js +2 -0
- package/dist/esm/react/marks/confluence-inline-comment.js +2 -0
- package/dist/esm/react/marks/data-consumer.js +2 -0
- package/dist/esm/react/marks/em.js +2 -0
- package/dist/esm/react/marks/fragment.js +2 -0
- package/dist/esm/react/marks/index.js +3 -0
- package/dist/esm/react/marks/link.js +2 -0
- package/dist/esm/react/marks/strike.js +5 -8
- package/dist/esm/react/marks/strong.js +2 -0
- package/dist/esm/react/marks/subsup.js +5 -0
- package/dist/esm/react/marks/underline.js +2 -0
- package/dist/esm/react/marks/unsupportedMark.js +2 -0
- package/dist/esm/react/marks/unsupportedNodeAttribute.js +2 -0
- package/dist/esm/react/nodes/TableStickyScrollbar.js +17 -1
- package/dist/esm/react/nodes/blockCard.js +6 -0
- package/dist/esm/react/nodes/bodiedExtension.js +8 -2
- package/dist/esm/react/nodes/codeBlock/components/lightWeightCodeBlock.js +7 -3
- package/dist/esm/react/nodes/codeBlock/windowedCodeBlock.js +5 -1
- package/dist/esm/react/nodes/date.js +13 -11
- package/dist/esm/react/nodes/decisionList.js +2 -0
- package/dist/esm/react/nodes/doc.js +6 -0
- package/dist/esm/react/nodes/embedCard.js +42 -36
- package/dist/esm/react/nodes/emoji.js +13 -9
- package/dist/esm/react/nodes/extension.js +8 -2
- package/dist/esm/react/nodes/fallback.js +6 -1
- package/dist/esm/react/nodes/heading-anchor.js +9 -6
- package/dist/esm/react/nodes/heading.js +16 -11
- package/dist/esm/react/nodes/index.js +13 -1
- package/dist/esm/react/nodes/inline.js +3 -0
- package/dist/esm/react/nodes/inlineCard.js +8 -0
- package/dist/esm/react/nodes/inlineExtension.js +20 -15
- package/dist/esm/react/nodes/media/index.js +17 -1
- package/dist/esm/react/nodes/mediaGroup.js +21 -7
- package/dist/esm/react/nodes/mediaInline.js +2 -0
- package/dist/esm/react/nodes/mediaSingle/index.js +21 -0
- package/dist/esm/react/nodes/mention.js +13 -8
- package/dist/esm/react/nodes/multiBodiedExtension.js +10 -2
- package/dist/esm/react/nodes/orderedList.js +2 -0
- package/dist/esm/react/nodes/panel.js +3 -1
- package/dist/esm/react/nodes/paragraph.js +2 -0
- package/dist/esm/react/nodes/status.js +16 -11
- package/dist/esm/react/nodes/table/colgroup.js +6 -2
- package/dist/esm/react/nodes/table/sticky.js +13 -0
- package/dist/esm/react/nodes/table.js +31 -2
- package/dist/esm/react/nodes/tableCell.js +18 -1
- package/dist/esm/react/nodes/tableRow.js +2 -0
- package/dist/esm/react/nodes/task-item-with-providers.js +3 -0
- package/dist/esm/react/nodes/taskItem.js +4 -0
- package/dist/esm/react/nodes/taskList.js +2 -0
- package/dist/esm/react/utils/render-text-segments.js +2 -0
- package/dist/esm/react/utils/segment-text.js +4 -1
- package/dist/esm/react/utils/use-select-all-trap.js +11 -0
- package/dist/esm/render-document.js +11 -2
- package/dist/esm/steps/index.js +6 -1
- package/dist/esm/text/index.js +3 -0
- package/dist/esm/ui/Expand.js +7 -3
- package/dist/esm/ui/ExtensionRenderer.js +3 -0
- package/dist/esm/ui/MediaCard.js +34 -19
- package/dist/esm/ui/Renderer/ErrorBoundary.js +4 -0
- package/dist/esm/ui/Renderer/breakout-ssr.js +28 -2
- package/dist/esm/ui/Renderer/count-nodes.js +3 -0
- package/dist/esm/ui/Renderer/index.js +68 -7
- package/dist/esm/ui/Renderer/style.js +12 -7
- package/dist/esm/ui/Renderer/truncated-wrapper.js +3 -0
- package/dist/esm/ui/SmartCardStorage.js +6 -1
- package/dist/esm/ui/annotations/context.js +3 -0
- package/dist/esm/ui/annotations/draft/component.js +24 -12
- package/dist/esm/ui/annotations/element/mark.js +5 -0
- package/dist/esm/ui/annotations/element/useInlineAnnotationProps.js +7 -1
- package/dist/esm/ui/annotations/hooks/user-selection.js +9 -1
- package/dist/esm/ui/annotations/hover/mounter.js +4 -1
- package/dist/esm/ui/annotations/selection/mounter.js +4 -1
- package/dist/esm/ui/annotations/wrapper.js +8 -2
- package/dist/esm/utils.js +10 -1
- package/dist/types/analytics/events.d.ts +1 -2
- package/dist/types/react/marks/confluence-inline-comment.d.ts +1 -1
- package/dist/types/react/nodes/decisionList.d.ts +1 -1
- package/dist/types/react/nodes/index.d.ts +1 -1
- package/dist/types/react/nodes/taskItem.d.ts +1 -1
- package/dist/types/react/nodes/taskList.d.ts +1 -1
- package/dist/types/react/types.d.ts +2 -2
- package/dist/types/utils.d.ts +1 -2
- package/dist/types-ts4.5/analytics/events.d.ts +1 -2
- package/dist/types-ts4.5/react/marks/confluence-inline-comment.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/decisionList.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/index.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/taskItem.d.ts +1 -1
- package/dist/types-ts4.5/react/nodes/taskList.d.ts +1 -1
- package/dist/types-ts4.5/react/types.d.ts +2 -2
- package/dist/types-ts4.5/utils.d.ts +1 -2
- package/docs/0-intro.tsx +14 -1
- package/package.json +1 -1
- package/tsconfig.json +0 -1
|
@@ -9,17 +9,22 @@ export default /*#__PURE__*/memo(function Status(props) {
|
|
|
9
9
|
localId = props.localId;
|
|
10
10
|
var inlineAnnotationProps = useInlineAnnotationProps(props);
|
|
11
11
|
if (fg('editor_inline_comments_on_inline_nodes')) {
|
|
12
|
-
return
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
12
|
+
return (
|
|
13
|
+
/*#__PURE__*/
|
|
14
|
+
// Ignored via go/ees005
|
|
15
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
16
|
+
React.createElement("span", inlineAnnotationProps, /*#__PURE__*/React.createElement(FabricElementsAnalyticsContext, {
|
|
17
|
+
data: {
|
|
18
|
+
userContext: 'document'
|
|
19
|
+
}
|
|
20
|
+
}, /*#__PURE__*/React.createElement(AkStatus, {
|
|
21
|
+
text: text,
|
|
22
|
+
color: color,
|
|
23
|
+
localId: localId,
|
|
24
|
+
role: "presentation",
|
|
25
|
+
isBold: fg('platform-component-visual-refresh')
|
|
26
|
+
})))
|
|
27
|
+
);
|
|
23
28
|
}
|
|
24
29
|
return /*#__PURE__*/React.createElement(FabricElementsAnalyticsContext, {
|
|
25
30
|
data: {
|
|
@@ -22,7 +22,10 @@ var isTableColumnResized = function isTableColumnResized(columnWidths) {
|
|
|
22
22
|
});
|
|
23
23
|
return !!filteredWidths.length;
|
|
24
24
|
};
|
|
25
|
-
var fixColumnWidth = function fixColumnWidth(columnWidth, _tableWidth, _layoutWidth, zeroWidthColumnsCount, scaleDownPercent
|
|
25
|
+
var fixColumnWidth = function fixColumnWidth(columnWidth, _tableWidth, _layoutWidth, zeroWidthColumnsCount, scaleDownPercent
|
|
26
|
+
// Ignored via go/ees005
|
|
27
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
28
|
+
) {
|
|
26
29
|
if (columnWidth === 0) {
|
|
27
30
|
return columnWidth;
|
|
28
31
|
}
|
|
@@ -199,7 +202,8 @@ export var Colgroup = function Colgroup(props) {
|
|
|
199
202
|
}), colStyles.map(function (style, idx) {
|
|
200
203
|
return (
|
|
201
204
|
/*#__PURE__*/
|
|
202
|
-
//
|
|
205
|
+
// Ignored via go/ees005
|
|
206
|
+
// eslint-disable-next-line react/no-array-index-key, @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
203
207
|
React.createElement("col", {
|
|
204
208
|
key: idx,
|
|
205
209
|
style: style
|
|
@@ -168,6 +168,9 @@ function findHorizontalOverflowScrollParent(table, defaultScrollRootId) {
|
|
|
168
168
|
if (!parent) {
|
|
169
169
|
return null;
|
|
170
170
|
}
|
|
171
|
+
|
|
172
|
+
// Ignored via go/ees005
|
|
173
|
+
// eslint-disable-next-line no-cond-assign
|
|
171
174
|
while (parent = parent.parentElement) {
|
|
172
175
|
// IE11 on Window 8 doesn't show styles from CSS when accessing through element.style property.
|
|
173
176
|
var style = window.getComputedStyle(parent);
|
|
@@ -209,6 +212,9 @@ export var OverflowParent = /*#__PURE__*/function () {
|
|
|
209
212
|
}
|
|
210
213
|
return 0;
|
|
211
214
|
}
|
|
215
|
+
|
|
216
|
+
// Ignored via go/ees005
|
|
217
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
212
218
|
}, {
|
|
213
219
|
key: "addEventListener",
|
|
214
220
|
value: function addEventListener(type, cb) {
|
|
@@ -216,8 +222,13 @@ export var OverflowParent = /*#__PURE__*/function () {
|
|
|
216
222
|
for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
217
223
|
args[_key - 2] = arguments[_key];
|
|
218
224
|
}
|
|
225
|
+
// Ignored via go/ees005
|
|
226
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
219
227
|
(_this$ref = this.ref).addEventListener.apply(_this$ref, [type, cb].concat(args));
|
|
220
228
|
}
|
|
229
|
+
|
|
230
|
+
// Ignored via go/ees005
|
|
231
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
221
232
|
}, {
|
|
222
233
|
key: "removeEventListener",
|
|
223
234
|
value: function removeEventListener(type, cb) {
|
|
@@ -225,6 +236,8 @@ export var OverflowParent = /*#__PURE__*/function () {
|
|
|
225
236
|
for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
|
|
226
237
|
args[_key2 - 2] = arguments[_key2];
|
|
227
238
|
}
|
|
239
|
+
// Ignored via go/ees005
|
|
240
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
228
241
|
(_this$ref2 = this.ref).removeEventListener.apply(_this$ref2, [type, cb].concat(args));
|
|
229
242
|
}
|
|
230
243
|
}], [{
|
|
@@ -37,7 +37,10 @@ export var isStickyScrollbarEnabled = function isStickyScrollbarEnabled(appearan
|
|
|
37
37
|
exposure: true
|
|
38
38
|
});
|
|
39
39
|
};
|
|
40
|
-
var orderChildren = function orderChildren(children, tableNode, smartCardStorage, tableOrderStatus
|
|
40
|
+
var orderChildren = function orderChildren(children, tableNode, smartCardStorage, tableOrderStatus
|
|
41
|
+
// Ignored via go/ees005
|
|
42
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
43
|
+
) {
|
|
41
44
|
if (!tableOrderStatus || tableOrderStatus.order === SortOrder.NO_ORDER) {
|
|
42
45
|
return children;
|
|
43
46
|
}
|
|
@@ -81,7 +84,10 @@ var hasRowspan = function hasRowspan(row) {
|
|
|
81
84
|
var getRefTop = function getRefTop(refElement) {
|
|
82
85
|
return Math.round(refElement.getBoundingClientRect().top);
|
|
83
86
|
};
|
|
84
|
-
var shouldHeaderStick = function shouldHeaderStick(scrollTop, tableTop, tableBottom, rowHeight
|
|
87
|
+
var shouldHeaderStick = function shouldHeaderStick(scrollTop, tableTop, tableBottom, rowHeight
|
|
88
|
+
// Ignored via go/ees005
|
|
89
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
90
|
+
) {
|
|
85
91
|
return tableTop <= scrollTop && !(tableBottom - rowHeight <= scrollTop);
|
|
86
92
|
};
|
|
87
93
|
var shouldHeaderPinBottom = function shouldHeaderPinBottom(scrollTop, tableBottom, rowHeight) {
|
|
@@ -102,6 +108,8 @@ var isHeaderRowEnabled = function isHeaderRowEnabled(rows) {
|
|
|
102
108
|
if (!rows.length) {
|
|
103
109
|
return false;
|
|
104
110
|
}
|
|
111
|
+
// Ignored via go/ees005
|
|
112
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
105
113
|
var children = rows[0].props.children;
|
|
106
114
|
if (!children.length) {
|
|
107
115
|
return false;
|
|
@@ -116,6 +124,8 @@ var isHeaderRowEnabled = function isHeaderRowEnabled(rows) {
|
|
|
116
124
|
var tableCanBeSticky = function tableCanBeSticky(node, children) {
|
|
117
125
|
return isHeaderRowEnabled(children) && node && node.firstChild && !hasRowspan(node.firstChild);
|
|
118
126
|
};
|
|
127
|
+
// Ignored via go/ees005
|
|
128
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
119
129
|
export var TableContainer = /*#__PURE__*/function (_React$Component) {
|
|
120
130
|
function TableContainer() {
|
|
121
131
|
var _this;
|
|
@@ -165,6 +175,8 @@ export var TableContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
165
175
|
});
|
|
166
176
|
_defineProperty(_this, "componentWillUnmount", function () {
|
|
167
177
|
if (_this.overflowParent) {
|
|
178
|
+
// Ignored via go/ees005
|
|
179
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
168
180
|
_this.overflowParent.removeEventListener('scroll', _this.onScroll);
|
|
169
181
|
}
|
|
170
182
|
if (_this.nextFrame) {
|
|
@@ -221,6 +233,8 @@ export var TableContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
221
233
|
}
|
|
222
234
|
});
|
|
223
235
|
_defineProperty(_this, "grabFirstRowRef", function (children) {
|
|
236
|
+
// Ignored via go/ees005
|
|
237
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
224
238
|
return React.Children.map(children || false, function (child, idx) {
|
|
225
239
|
if (idx === 0 && /*#__PURE__*/React.isValidElement(child)) {
|
|
226
240
|
return /*#__PURE__*/React.cloneElement(child, {
|
|
@@ -246,6 +260,8 @@ export var TableContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
246
260
|
if (this.props.stickyHeaders) {
|
|
247
261
|
var _this$props$stickyHea;
|
|
248
262
|
this.overflowParent = OverflowParent.fromElement(this.tableRef.current, (_this$props$stickyHea = this.props.stickyHeaders) === null || _this$props$stickyHea === void 0 ? void 0 : _this$props$stickyHea.defaultScrollRootId_DO_NOT_USE);
|
|
263
|
+
// Ignored via go/ees005
|
|
264
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
249
265
|
this.overflowParent.addEventListener('scroll', this.onScroll);
|
|
250
266
|
}
|
|
251
267
|
if (this.wrapperRef.current && isStickyScrollbarEnabled(this.props.rendererAppearance)) {
|
|
@@ -260,6 +276,8 @@ export var TableContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
260
276
|
var _this$props$stickyHea2;
|
|
261
277
|
this.overflowParent = OverflowParent.fromElement(this.tableRef.current, (_this$props$stickyHea2 = this.props.stickyHeaders) === null || _this$props$stickyHea2 === void 0 ? void 0 : _this$props$stickyHea2.defaultScrollRootId_DO_NOT_USE);
|
|
262
278
|
} else if (!this.props.stickyHeaders && this.overflowParent) {
|
|
279
|
+
// Ignored via go/ees005
|
|
280
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
263
281
|
this.overflowParent.removeEventListener('scroll', this.onScroll);
|
|
264
282
|
this.overflowParent = null;
|
|
265
283
|
}
|
|
@@ -504,6 +522,8 @@ export var TableContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
504
522
|
}
|
|
505
523
|
}]);
|
|
506
524
|
}(React.Component);
|
|
525
|
+
// Ignored via go/ees005
|
|
526
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
507
527
|
export var TableProcessor = /*#__PURE__*/function (_React$Component2) {
|
|
508
528
|
function TableProcessor() {
|
|
509
529
|
var _this2;
|
|
@@ -535,6 +555,8 @@ export var TableProcessor = /*#__PURE__*/function (_React$Component2) {
|
|
|
535
555
|
}
|
|
536
556
|
});
|
|
537
557
|
});
|
|
558
|
+
// Ignored via go/ees005
|
|
559
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
538
560
|
_defineProperty(_this2, "addNumberColumnIndexes", function (rows) {
|
|
539
561
|
var isNumberColumnEnabled = _this2.props.isNumberColumnEnabled;
|
|
540
562
|
var headerRowEnabled = isHeaderRowEnabled(rows);
|
|
@@ -559,6 +581,9 @@ export var TableProcessor = /*#__PURE__*/function (_React$Component2) {
|
|
|
559
581
|
var orderedChildren = compose(this.addNumberColumnIndexes, this.addSortableColumn
|
|
560
582
|
// @ts-expect-error TS2345: Argument of type '(ReactChild | ReactFragment | ReactPortal)[]' is not assignable to parameter of type 'ReactElement<any, string | JSXElementConstructor<any>>[]'
|
|
561
583
|
)(childrenArray);
|
|
584
|
+
|
|
585
|
+
// Ignored via go/ees005
|
|
586
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
562
587
|
return /*#__PURE__*/React.createElement(TableContainer, this.props, orderedChildren);
|
|
563
588
|
}
|
|
564
589
|
}]);
|
|
@@ -577,6 +602,8 @@ var TableWithWidth = function TableWithWidth(props) {
|
|
|
577
602
|
return total + val;
|
|
578
603
|
}, 0)) || 0;
|
|
579
604
|
if (colWidthsSum || props.allowTableResizing) {
|
|
605
|
+
// Ignored via go/ees005
|
|
606
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
580
607
|
return /*#__PURE__*/React.createElement(TableWithShadows, _extends({
|
|
581
608
|
renderWidth: renderWidth
|
|
582
609
|
}, props));
|
|
@@ -584,6 +611,8 @@ var TableWithWidth = function TableWithWidth(props) {
|
|
|
584
611
|
// there should not be a case when colWidthsSum is 0 and table is in overflow state - so no need to render shadows in this case
|
|
585
612
|
return /*#__PURE__*/React.createElement(TableProcessor, _extends({
|
|
586
613
|
renderWidth: renderWidth
|
|
614
|
+
// Ignored via go/ees005
|
|
615
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
587
616
|
}, props));
|
|
588
617
|
});
|
|
589
618
|
};
|
|
@@ -37,7 +37,12 @@ var getSortOrderLabel = function getSortOrderLabel(intl, currentSortOrder) {
|
|
|
37
37
|
return intl.formatMessage(noneSortingLabel);
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
|
+
|
|
41
|
+
// Ignored via go/ees005
|
|
42
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
40
43
|
var getDataAttributes = function getDataAttributes(colwidth, background) {
|
|
44
|
+
// Ignored via go/ees005
|
|
45
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
41
46
|
var attrs = {};
|
|
42
47
|
if (colwidth) {
|
|
43
48
|
attrs['data-colwidth'] = colwidth.join(',');
|
|
@@ -61,6 +66,9 @@ var getDataAttributes = function getDataAttributes(colwidth, background) {
|
|
|
61
66
|
}
|
|
62
67
|
return attrs;
|
|
63
68
|
};
|
|
69
|
+
|
|
70
|
+
// Ignored via go/ees005
|
|
71
|
+
// eslint-disable-next-line require-unicode-regexp
|
|
64
72
|
var cssVariablePattern = /^var\(--.*\)$/;
|
|
65
73
|
var getStyle = function getStyle(_ref) {
|
|
66
74
|
var background = _ref.background,
|
|
@@ -157,6 +165,8 @@ var getWithCellProps = function getWithCellProps(WrapperComponent) {
|
|
|
157
165
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
158
166
|
,
|
|
159
167
|
className: className
|
|
168
|
+
// Ignored via go/ees005
|
|
169
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
160
170
|
}, getDataAttributes(colwidth, background), {
|
|
161
171
|
"aria-sort": ariaSort
|
|
162
172
|
}), children);
|
|
@@ -173,9 +183,14 @@ export var withSortableColumn = function withSortableColumn(WrapperComponent) {
|
|
|
173
183
|
isHeaderRow = props.isHeaderRow;
|
|
174
184
|
var sortOrderedClassName = sortOrdered === SortOrder.NO_ORDER ? RendererCssClassName.SORTABLE_COLUMN_NO_ORDER : '';
|
|
175
185
|
if (!allowColumnSorting || !isHeaderRow) {
|
|
186
|
+
// Ignored via go/ees005
|
|
187
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
176
188
|
return /*#__PURE__*/React.createElement(WrapperComponent, props);
|
|
177
189
|
}
|
|
178
|
-
return /*#__PURE__*/React.createElement(WrapperComponent
|
|
190
|
+
return /*#__PURE__*/React.createElement(WrapperComponent
|
|
191
|
+
// Ignored via go/ees005
|
|
192
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
193
|
+
, _extends({}, props, {
|
|
179
194
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
180
195
|
className: RendererCssClassName.SORTABLE_COLUMN_WRAPPER,
|
|
181
196
|
ariaSort: getSortOrderLabel(intl, sortOrdered)
|
|
@@ -192,6 +207,8 @@ export var withSortableColumn = function withSortableColumn(WrapperComponent) {
|
|
|
192
207
|
}))));
|
|
193
208
|
function onKeyPress(event) {
|
|
194
209
|
var keys = [' ', 'Enter', 'Spacebar'];
|
|
210
|
+
// Ignored via go/ees005
|
|
211
|
+
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
195
212
|
var _ref2 = event.target,
|
|
196
213
|
tagName = _ref2.tagName;
|
|
197
214
|
// trigger sorting if space or enter are clicked but not when in an input field (template variables)
|
|
@@ -10,6 +10,8 @@ import React from 'react';
|
|
|
10
10
|
import { compose } from '@atlaskit/editor-common/utils';
|
|
11
11
|
import { SortOrder } from '@atlaskit/editor-common/types';
|
|
12
12
|
import { RendererCssClassName } from '../../consts';
|
|
13
|
+
// Ignored via go/ees005
|
|
14
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
13
15
|
var TableRow = /*#__PURE__*/function (_React$Component) {
|
|
14
16
|
function TableRow() {
|
|
15
17
|
var _this;
|
|
@@ -51,6 +51,9 @@ export default function TaskItemWithProviders(props) {
|
|
|
51
51
|
updateContextIdentifierProvider(props.contextIdentifierProvider);
|
|
52
52
|
}, [props.contextIdentifierProvider, updateContextIdentifierProvider]);
|
|
53
53
|
var resolvedObjectId = resolvedContextProvider && resolvedContextProvider.objectId || objectAri;
|
|
54
|
+
|
|
55
|
+
// Ignored via go/ees005
|
|
56
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
54
57
|
return /*#__PURE__*/React.createElement(ResourcedTaskItem, _extends({}, otherProps, {
|
|
55
58
|
objectAri: resolvedObjectId,
|
|
56
59
|
isRenderer: isRenderer
|
|
@@ -12,11 +12,15 @@ import { ProviderFactory, WithProviders } from '@atlaskit/editor-common/provider
|
|
|
12
12
|
import TaskItemWithProviders from './task-item-with-providers';
|
|
13
13
|
import { FabricElementsAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
|
|
14
14
|
import { TaskItemsFormatProvider, TaskItemsFormatConsumer } from '../../ui/TaskItemsFormatContext/TaskItemsFormatContext';
|
|
15
|
+
// Ignored via go/ees005
|
|
16
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
15
17
|
var TaskItem = /*#__PURE__*/function (_PureComponent) {
|
|
16
18
|
function TaskItem(props) {
|
|
17
19
|
var _this;
|
|
18
20
|
_classCallCheck(this, TaskItem);
|
|
19
21
|
_this = _callSuper(this, TaskItem, [props]);
|
|
22
|
+
// Ignored via go/ees005
|
|
23
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
20
24
|
_defineProperty(_this, "renderWithProvider", function (providers) {
|
|
21
25
|
var taskDecisionProvider = providers.taskDecisionProvider,
|
|
22
26
|
contextIdentifierProvider = providers.contextIdentifierProvider;
|
|
@@ -7,6 +7,8 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
|
|
|
7
7
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
8
|
import React, { PureComponent, Children } from 'react';
|
|
9
9
|
import { TaskList as AkTaskList } from '@atlaskit/task-decision';
|
|
10
|
+
// Ignored via go/ees005
|
|
11
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
10
12
|
var TaskList = /*#__PURE__*/function (_PureComponent) {
|
|
11
13
|
function TaskList() {
|
|
12
14
|
_classCallCheck(this, TaskList);
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
// Ignored via go/ees005
|
|
3
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
2
4
|
export function renderTextSegments(segments, textHighlighter, marksList, startPos) {
|
|
3
5
|
var Component = textHighlighter === null || textHighlighter === void 0 ? void 0 : textHighlighter.component;
|
|
4
6
|
var marks = new Set(marksList.map(function (m) {
|
|
@@ -26,7 +26,10 @@ export function segmentText(text, highlighter) {
|
|
|
26
26
|
segments.push({
|
|
27
27
|
type: 'match',
|
|
28
28
|
text: markTextMatch[0],
|
|
29
|
-
groups: markTextMatch.groups &&
|
|
29
|
+
groups: markTextMatch.groups &&
|
|
30
|
+
// Ignored via go/ees005
|
|
31
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
32
|
+
Object.keys(markTextMatch.groups).filter(function (key) {
|
|
30
33
|
return markTextMatch.groups[key];
|
|
31
34
|
})
|
|
32
35
|
});
|
|
@@ -8,6 +8,9 @@ export var useSelectAllTrap = function useSelectAllTrap() {
|
|
|
8
8
|
var ref = React.useRef(null);
|
|
9
9
|
var clicked = React.useRef(false);
|
|
10
10
|
var caught = React.useRef();
|
|
11
|
+
|
|
12
|
+
// Ignored via go/ees005
|
|
13
|
+
// eslint-disable-next-line require-unicode-regexp
|
|
11
14
|
var mac = typeof navigator !== 'undefined' ? /Mac/.test(navigator.platform) : false;
|
|
12
15
|
var onKeyDown = React.useCallback(function (e) {
|
|
13
16
|
var _e$target, _e$target$matches;
|
|
@@ -44,10 +47,18 @@ export var useSelectAllTrap = function useSelectAllTrap() {
|
|
|
44
47
|
clicked.current = (_ref$current$contains = (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.contains(e.target)) !== null && _ref$current$contains !== void 0 ? _ref$current$contains : false;
|
|
45
48
|
}, [ref, clicked]);
|
|
46
49
|
React.useEffect(function () {
|
|
50
|
+
// Ignored via go/ees005
|
|
51
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
47
52
|
window.addEventListener('keydown', onKeyDown);
|
|
53
|
+
// Ignored via go/ees005
|
|
54
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
48
55
|
window.addEventListener('click', onClick);
|
|
49
56
|
return function () {
|
|
57
|
+
// Ignored via go/ees005
|
|
58
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
50
59
|
window.removeEventListener('keydown', onKeyDown);
|
|
60
|
+
// Ignored via go/ees005
|
|
61
|
+
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
51
62
|
window.removeEventListener('click', onClick);
|
|
52
63
|
};
|
|
53
64
|
}, [onKeyDown, onClick]);
|
|
@@ -23,7 +23,10 @@ var withStopwatch = function withStopwatch(cb) {
|
|
|
23
23
|
time: time
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
|
-
var _validation = function _validation(doc, schema, adfStage, useSpecBasedValidator, dispatchAnalyticsEvent, skipValidation
|
|
26
|
+
var _validation = function _validation(doc, schema, adfStage, useSpecBasedValidator, dispatchAnalyticsEvent, skipValidation
|
|
27
|
+
// Ignored via go/ees005
|
|
28
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
29
|
+
) {
|
|
27
30
|
var result;
|
|
28
31
|
if (useSpecBasedValidator) {
|
|
29
32
|
// link mark on mediaSingle is deprecated, need to move link mark to child media node
|
|
@@ -106,6 +109,9 @@ var memoValidation = memoizeOne(_validation, function (newArgs, lastArgs) {
|
|
|
106
109
|
var result = areDocsEqual(newDoc, oldDoc) && newSchema === oldSchema && newADFStage === oldADFStage && newUseSpecValidator === oldUseSpecValidator && skipValidation === oldSkipValidation;
|
|
107
110
|
return result;
|
|
108
111
|
});
|
|
112
|
+
|
|
113
|
+
// Ignored via go/ees005
|
|
114
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
109
115
|
var areDocsEqual = function areDocsEqual(docA, docB) {
|
|
110
116
|
if (docA === docB) {
|
|
111
117
|
return true;
|
|
@@ -172,7 +178,10 @@ export var renderDocument = function renderDocument(doc, serializer) {
|
|
|
172
178
|
var unsupportedContentLevelsTracking = arguments.length > 7 ? arguments[7] : undefined;
|
|
173
179
|
var appearance = arguments.length > 8 ? arguments[8] : undefined;
|
|
174
180
|
var includeNodesCountInStats = arguments.length > 9 ? arguments[9] : undefined;
|
|
175
|
-
var skipValidation
|
|
181
|
+
var skipValidation
|
|
182
|
+
// Ignored via go/ees005
|
|
183
|
+
// eslint-disable-next-line @typescript-eslint/max-params
|
|
184
|
+
= arguments.length > 10 ? arguments[10] : undefined;
|
|
176
185
|
var stat = {
|
|
177
186
|
sanitizeTime: 0
|
|
178
187
|
};
|
package/dist/esm/steps/index.js
CHANGED
|
@@ -47,6 +47,8 @@ function isTextNode(node) {
|
|
|
47
47
|
}
|
|
48
48
|
function isHighlightTextNode(node) {
|
|
49
49
|
var _dataset;
|
|
50
|
+
// Ignored via go/ees005
|
|
51
|
+
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
50
52
|
return !!(node !== null && node !== void 0 && (_dataset = node.dataset) !== null && _dataset !== void 0 && _dataset.highlighted);
|
|
51
53
|
}
|
|
52
54
|
function isNodeInlineMark(node) {
|
|
@@ -210,7 +212,10 @@ export function getPosFromRange(range) {
|
|
|
210
212
|
var possibleMediaOrMediaSingleElement = findParent(startContainer);
|
|
211
213
|
|
|
212
214
|
// Video hover targets return media single, not media, thus, the extra check in condition.
|
|
213
|
-
var isMediaOrMediaSingle = possibleMediaOrMediaSingleElement &&
|
|
215
|
+
var isMediaOrMediaSingle = possibleMediaOrMediaSingleElement &&
|
|
216
|
+
// Ignored via go/ees005
|
|
217
|
+
// eslint-disable-next-line require-unicode-regexp
|
|
218
|
+
/media|mediaSingle/.test(getNodeType(possibleMediaOrMediaSingleElement) || '');
|
|
214
219
|
if (isMediaOrMediaSingle) {
|
|
215
220
|
var pos;
|
|
216
221
|
var mediaSingleElement = getNodeType(possibleMediaOrMediaSingleElement) === 'mediaSingle' ? possibleMediaOrMediaSingleElement : findMediaParent(possibleMediaOrMediaSingleElement);
|
package/dist/esm/text/index.js
CHANGED
|
@@ -16,6 +16,9 @@ var TextSerializer = /*#__PURE__*/function () {
|
|
|
16
16
|
fragment.forEach(function (n) {
|
|
17
17
|
result.push(reduce(n, _this.schema));
|
|
18
18
|
});
|
|
19
|
+
|
|
20
|
+
// Ignored via go/ees005
|
|
21
|
+
// eslint-disable-next-line require-unicode-regexp
|
|
19
22
|
return result.join('\n').replace(/\n+/g, '\n');
|
|
20
23
|
}
|
|
21
24
|
}], [{
|
package/dist/esm/ui/Expand.js
CHANGED
|
@@ -46,7 +46,8 @@ var Container = function Container(props) {
|
|
|
46
46
|
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t\t", "\n\t\tpadding: 0;\n\t\tpadding-bottom: ", ";\n\t"])), sharedContainerStyles(), paddingBottom);
|
|
47
47
|
};
|
|
48
48
|
return (
|
|
49
|
-
//
|
|
49
|
+
// Ignored via go/ees005
|
|
50
|
+
// eslint-disable-next-line react/jsx-props-no-spreading, @atlaskit/design-system/consistent-css-prop-usage
|
|
50
51
|
jsx("div", _extends({
|
|
51
52
|
css: styles
|
|
52
53
|
}, props), props.children)
|
|
@@ -62,7 +63,8 @@ var TitleContainer = function TitleContainer(props) {
|
|
|
62
63
|
var expanded = props.expanded,
|
|
63
64
|
buttonProps = _objectWithoutProperties(props, _excluded);
|
|
64
65
|
return (
|
|
65
|
-
//
|
|
66
|
+
// Ignored via go/ees005
|
|
67
|
+
// eslint-disable-next-line react/jsx-props-no-spreading, @atlaskit/design-system/consistent-css-prop-usage
|
|
66
68
|
jsx("button", _extends({
|
|
67
69
|
type: "button",
|
|
68
70
|
css: styles
|
|
@@ -79,7 +81,9 @@ var ContentContainer = function ContentContainer(props) {
|
|
|
79
81
|
return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n\t\t", ";\n\t\tpadding-right: ", ";\n\t\tpadding-left: ", ";\n\t\tvisibility: ", ";\n\t"])), sharedContentStyles(), "var(--ds-space-200, 16px)", "var(--ds-space-400, 32px)", visibility);
|
|
80
82
|
};
|
|
81
83
|
return (
|
|
82
|
-
// eslint-disable-next-line
|
|
84
|
+
// eslint-disable-next-line
|
|
85
|
+
// Ignored via go/ees005
|
|
86
|
+
// eslint-disable-next-line react/jsx-props-no-spreading, @atlaskit/design-system/consistent-css-prop-usage
|
|
83
87
|
jsx("div", _extends({
|
|
84
88
|
css: styles
|
|
85
89
|
}, props), props.children)
|
|
@@ -42,6 +42,9 @@ export default function ExtensionRenderer(props) {
|
|
|
42
42
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
43
43
|
extensionProvider = _React$useState2[0],
|
|
44
44
|
setExtensionProvider = _React$useState2[1];
|
|
45
|
+
|
|
46
|
+
// Ignored via go/ees005
|
|
47
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
45
48
|
var handleProvider = React.useCallback(function (name, providerPromise) {
|
|
46
49
|
providerPromise && providerPromise.then(function (provider) {
|
|
47
50
|
if (isMounted.current) {
|
package/dist/esm/ui/MediaCard.js
CHANGED
|
@@ -46,6 +46,9 @@ export var getListOfIdentifiersFromDoc = function getListOfIdentifiersFromDoc(do
|
|
|
46
46
|
return identifierList;
|
|
47
47
|
}, []);
|
|
48
48
|
};
|
|
49
|
+
|
|
50
|
+
// Ignored via go/ees005
|
|
51
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
49
52
|
export var MediaCardView = /*#__PURE__*/function (_Component) {
|
|
50
53
|
function MediaCardView() {
|
|
51
54
|
var _this;
|
|
@@ -218,29 +221,38 @@ export var MediaCardView = /*#__PURE__*/function (_Component) {
|
|
|
218
221
|
// we need this statement for the mandatory mediaClientConfig below
|
|
219
222
|
var mediaClientConfig = mediaClient === null || mediaClient === void 0 ? void 0 : mediaClient.mediaClientConfig;
|
|
220
223
|
if (fg('platform_editor_external_media_comment_bugfix')) {
|
|
221
|
-
return
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
224
|
+
return (
|
|
225
|
+
/*#__PURE__*/
|
|
226
|
+
// Ignored via go/ees005
|
|
227
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
228
|
+
React.createElement("div", _extends({}, dataAttributes, {
|
|
229
|
+
"data-node-type": "media"
|
|
230
|
+
}), /*#__PURE__*/React.createElement(Card
|
|
231
|
+
// TODO MPT-315: clean up after we move mediaClientConfig into FileIdentifier
|
|
232
|
+
// context is not really used when the type is external and we want to render the component asap
|
|
233
|
+
// Ignored via go/ees005
|
|
234
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
235
|
+
, {
|
|
236
|
+
mediaClientConfig: mediaClientConfig,
|
|
237
|
+
alt: alt,
|
|
238
|
+
identifier: identifier,
|
|
239
|
+
dimensions: cardDimensions,
|
|
240
|
+
appearance: appearance,
|
|
241
|
+
resizeMode: resizeMode,
|
|
242
|
+
disableOverlay: disableOverlay,
|
|
243
|
+
shouldOpenMediaViewer: shouldOpenMediaViewer,
|
|
244
|
+
mediaViewerItems: Array.from(mediaIdentifierMap.values()),
|
|
245
|
+
featureFlags: featureFlags,
|
|
246
|
+
ssr: ssr === null || ssr === void 0 ? void 0 : ssr.mode,
|
|
247
|
+
shouldHideTooltip: false
|
|
248
|
+
}))
|
|
249
|
+
);
|
|
240
250
|
} else {
|
|
241
251
|
return /*#__PURE__*/React.createElement(Card
|
|
242
252
|
// TODO MPT-315: clean up after we move mediaClientConfig into FileIdentifier
|
|
243
253
|
// context is not really used when the type is external and we want to render the component asap
|
|
254
|
+
// Ignored via go/ees005
|
|
255
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
244
256
|
, {
|
|
245
257
|
mediaClientConfig: mediaClientConfig,
|
|
246
258
|
alt: alt,
|
|
@@ -371,6 +383,9 @@ export var getClipboardAttrs = function getClipboardAttrs(_ref2) {
|
|
|
371
383
|
};
|
|
372
384
|
export var MediaCardInternal = function MediaCardInternal(props) {
|
|
373
385
|
var mediaClient = useContext(MediaClientContext);
|
|
386
|
+
|
|
387
|
+
// Ignored via go/ees005
|
|
388
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
374
389
|
return /*#__PURE__*/React.createElement(MediaCardView, _extends({}, props, {
|
|
375
390
|
mediaClient: mediaClient
|
|
376
391
|
}));
|
|
@@ -12,6 +12,8 @@ import { FabricChannel } from '@atlaskit/analytics-listeners/types';
|
|
|
12
12
|
import { logException } from '@atlaskit/editor-common/monitoring';
|
|
13
13
|
import { PLATFORM } from '../../analytics/events';
|
|
14
14
|
import uuid from 'uuid';
|
|
15
|
+
// Ignored via go/ees005
|
|
16
|
+
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
15
17
|
export var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
16
18
|
function ErrorBoundary() {
|
|
17
19
|
var _this;
|
|
@@ -67,6 +69,8 @@ export var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
|
|
|
67
69
|
logException(error, {
|
|
68
70
|
location: 'renderer'
|
|
69
71
|
});
|
|
72
|
+
// Ignored via go/ees005
|
|
73
|
+
// eslint-disable-next-line require-unicode-regexp
|
|
70
74
|
var pattern = /Failed to execute.*on 'Node'.*/;
|
|
71
75
|
var matchesPattern = pattern.test(error.message);
|
|
72
76
|
if (matchesPattern) {
|