@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.
Files changed (263) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/actions/index.js +6 -0
  3. package/dist/cjs/actions/matches-utils.js +6 -0
  4. package/dist/cjs/analytics/unsupported-content.js +7 -0
  5. package/dist/cjs/react/index.js +61 -10
  6. package/dist/cjs/react/marks/alignment.js +5 -5
  7. package/dist/cjs/react/marks/annotation.js +8 -3
  8. package/dist/cjs/react/marks/breakout.js +2 -0
  9. package/dist/cjs/react/marks/code.js +2 -0
  10. package/dist/cjs/react/marks/confluence-inline-comment.js +2 -0
  11. package/dist/cjs/react/marks/data-consumer.js +2 -0
  12. package/dist/cjs/react/marks/em.js +2 -0
  13. package/dist/cjs/react/marks/fragment.js +2 -0
  14. package/dist/cjs/react/marks/index.js +3 -0
  15. package/dist/cjs/react/marks/link.js +2 -0
  16. package/dist/cjs/react/marks/strike.js +5 -8
  17. package/dist/cjs/react/marks/strong.js +2 -0
  18. package/dist/cjs/react/marks/subsup.js +5 -0
  19. package/dist/cjs/react/marks/underline.js +2 -0
  20. package/dist/cjs/react/marks/unsupportedMark.js +2 -0
  21. package/dist/cjs/react/marks/unsupportedNodeAttribute.js +2 -0
  22. package/dist/cjs/react/nodes/TableStickyScrollbar.js +17 -1
  23. package/dist/cjs/react/nodes/blockCard.js +6 -0
  24. package/dist/cjs/react/nodes/bodiedExtension.js +8 -2
  25. package/dist/cjs/react/nodes/codeBlock/components/lightWeightCodeBlock.js +7 -3
  26. package/dist/cjs/react/nodes/codeBlock/windowedCodeBlock.js +5 -1
  27. package/dist/cjs/react/nodes/date.js +13 -11
  28. package/dist/cjs/react/nodes/decisionList.js +2 -0
  29. package/dist/cjs/react/nodes/doc.js +5 -0
  30. package/dist/cjs/react/nodes/embedCard.js +42 -36
  31. package/dist/cjs/react/nodes/emoji.js +13 -9
  32. package/dist/cjs/react/nodes/extension.js +8 -2
  33. package/dist/cjs/react/nodes/fallback.js +6 -1
  34. package/dist/cjs/react/nodes/heading-anchor.js +9 -6
  35. package/dist/cjs/react/nodes/heading.js +16 -11
  36. package/dist/cjs/react/nodes/index.js +12 -1
  37. package/dist/cjs/react/nodes/inline.js +2 -0
  38. package/dist/cjs/react/nodes/inlineCard.js +8 -0
  39. package/dist/cjs/react/nodes/inlineExtension.js +20 -15
  40. package/dist/cjs/react/nodes/media/index.js +17 -1
  41. package/dist/cjs/react/nodes/mediaGroup.js +21 -7
  42. package/dist/cjs/react/nodes/mediaInline.js +2 -0
  43. package/dist/cjs/react/nodes/mediaSingle/index.js +21 -0
  44. package/dist/cjs/react/nodes/mention.js +13 -8
  45. package/dist/cjs/react/nodes/multiBodiedExtension.js +10 -2
  46. package/dist/cjs/react/nodes/orderedList.js +2 -0
  47. package/dist/cjs/react/nodes/panel.js +3 -1
  48. package/dist/cjs/react/nodes/paragraph.js +2 -0
  49. package/dist/cjs/react/nodes/status.js +16 -11
  50. package/dist/cjs/react/nodes/table/colgroup.js +6 -2
  51. package/dist/cjs/react/nodes/table/sticky.js +13 -0
  52. package/dist/cjs/react/nodes/table.js +31 -2
  53. package/dist/cjs/react/nodes/tableCell.js +18 -1
  54. package/dist/cjs/react/nodes/tableRow.js +2 -0
  55. package/dist/cjs/react/nodes/task-item-with-providers.js +3 -0
  56. package/dist/cjs/react/nodes/taskItem.js +4 -0
  57. package/dist/cjs/react/nodes/taskList.js +2 -0
  58. package/dist/cjs/react/utils/render-text-segments.js +2 -0
  59. package/dist/cjs/react/utils/segment-text.js +4 -1
  60. package/dist/cjs/react/utils/use-select-all-trap.js +11 -0
  61. package/dist/cjs/render-document.js +11 -2
  62. package/dist/cjs/steps/index.js +6 -1
  63. package/dist/cjs/text/index.js +3 -0
  64. package/dist/cjs/ui/Expand.js +7 -3
  65. package/dist/cjs/ui/ExtensionRenderer.js +3 -0
  66. package/dist/cjs/ui/MediaCard.js +34 -19
  67. package/dist/cjs/ui/Renderer/ErrorBoundary.js +4 -0
  68. package/dist/cjs/ui/Renderer/breakout-ssr.js +28 -2
  69. package/dist/cjs/ui/Renderer/count-nodes.js +2 -0
  70. package/dist/cjs/ui/Renderer/index.js +68 -7
  71. package/dist/cjs/ui/Renderer/style.js +12 -7
  72. package/dist/cjs/ui/Renderer/truncated-wrapper.js +3 -0
  73. package/dist/cjs/ui/SmartCardStorage.js +6 -1
  74. package/dist/cjs/ui/annotations/context.js +3 -0
  75. package/dist/cjs/ui/annotations/draft/component.js +24 -12
  76. package/dist/cjs/ui/annotations/element/mark.js +5 -0
  77. package/dist/cjs/ui/annotations/element/useInlineAnnotationProps.js +7 -1
  78. package/dist/cjs/ui/annotations/hooks/user-selection.js +9 -1
  79. package/dist/cjs/ui/annotations/hover/mounter.js +4 -1
  80. package/dist/cjs/ui/annotations/selection/mounter.js +4 -1
  81. package/dist/cjs/ui/annotations/wrapper.js +8 -2
  82. package/dist/cjs/utils.js +9 -1
  83. package/dist/es2019/actions/index.js +6 -0
  84. package/dist/es2019/actions/matches-utils.js +6 -0
  85. package/dist/es2019/analytics/unsupported-content.js +8 -0
  86. package/dist/es2019/react/index.js +67 -10
  87. package/dist/es2019/react/marks/alignment.js +5 -5
  88. package/dist/es2019/react/marks/annotation.js +8 -3
  89. package/dist/es2019/react/marks/breakout.js +2 -0
  90. package/dist/es2019/react/marks/code.js +2 -0
  91. package/dist/es2019/react/marks/confluence-inline-comment.js +2 -0
  92. package/dist/es2019/react/marks/data-consumer.js +2 -0
  93. package/dist/es2019/react/marks/em.js +2 -0
  94. package/dist/es2019/react/marks/fragment.js +2 -0
  95. package/dist/es2019/react/marks/index.js +3 -0
  96. package/dist/es2019/react/marks/link.js +2 -0
  97. package/dist/es2019/react/marks/strike.js +5 -8
  98. package/dist/es2019/react/marks/strong.js +2 -0
  99. package/dist/es2019/react/marks/subsup.js +5 -0
  100. package/dist/es2019/react/marks/underline.js +2 -0
  101. package/dist/es2019/react/marks/unsupportedMark.js +2 -0
  102. package/dist/es2019/react/marks/unsupportedNodeAttribute.js +2 -0
  103. package/dist/es2019/react/nodes/TableStickyScrollbar.js +16 -1
  104. package/dist/es2019/react/nodes/blockCard.js +6 -0
  105. package/dist/es2019/react/nodes/bodiedExtension.js +8 -2
  106. package/dist/es2019/react/nodes/codeBlock/components/lightWeightCodeBlock.js +4 -1
  107. package/dist/es2019/react/nodes/codeBlock/windowedCodeBlock.js +4 -1
  108. package/dist/es2019/react/nodes/date.js +13 -11
  109. package/dist/es2019/react/nodes/decisionList.js +2 -0
  110. package/dist/es2019/react/nodes/doc.js +6 -0
  111. package/dist/es2019/react/nodes/embedCard.js +42 -36
  112. package/dist/es2019/react/nodes/emoji.js +13 -9
  113. package/dist/es2019/react/nodes/extension.js +8 -2
  114. package/dist/es2019/react/nodes/fallback.js +6 -1
  115. package/dist/es2019/react/nodes/heading-anchor.js +10 -6
  116. package/dist/es2019/react/nodes/heading.js +16 -11
  117. package/dist/es2019/react/nodes/index.js +13 -1
  118. package/dist/es2019/react/nodes/inline.js +3 -0
  119. package/dist/es2019/react/nodes/inlineCard.js +8 -0
  120. package/dist/es2019/react/nodes/inlineExtension.js +21 -16
  121. package/dist/es2019/react/nodes/media/index.js +17 -1
  122. package/dist/es2019/react/nodes/mediaGroup.js +14 -1
  123. package/dist/es2019/react/nodes/mediaInline.js +2 -0
  124. package/dist/es2019/react/nodes/mediaSingle/index.js +21 -0
  125. package/dist/es2019/react/nodes/mention.js +13 -8
  126. package/dist/es2019/react/nodes/multiBodiedExtension.js +10 -2
  127. package/dist/es2019/react/nodes/orderedList.js +2 -0
  128. package/dist/es2019/react/nodes/panel.js +3 -1
  129. package/dist/es2019/react/nodes/paragraph.js +2 -0
  130. package/dist/es2019/react/nodes/status.js +16 -11
  131. package/dist/es2019/react/nodes/table/colgroup.js +6 -2
  132. package/dist/es2019/react/nodes/table/sticky.js +13 -0
  133. package/dist/es2019/react/nodes/table.js +32 -3
  134. package/dist/es2019/react/nodes/tableCell.js +18 -1
  135. package/dist/es2019/react/nodes/tableRow.js +2 -0
  136. package/dist/es2019/react/nodes/task-item-with-providers.js +3 -0
  137. package/dist/es2019/react/nodes/taskItem.js +4 -0
  138. package/dist/es2019/react/nodes/taskList.js +2 -0
  139. package/dist/es2019/react/utils/render-text-segments.js +2 -0
  140. package/dist/es2019/react/utils/segment-text.js +4 -1
  141. package/dist/es2019/react/utils/use-select-all-trap.js +11 -0
  142. package/dist/es2019/render-document.js +11 -2
  143. package/dist/es2019/steps/index.js +6 -1
  144. package/dist/es2019/text/index.js +3 -0
  145. package/dist/es2019/ui/Expand.js +7 -3
  146. package/dist/es2019/ui/ExtensionRenderer.js +3 -0
  147. package/dist/es2019/ui/MediaCard.js +34 -19
  148. package/dist/es2019/ui/Renderer/ErrorBoundary.js +4 -0
  149. package/dist/es2019/ui/Renderer/breakout-ssr.js +28 -2
  150. package/dist/es2019/ui/Renderer/count-nodes.js +3 -0
  151. package/dist/es2019/ui/Renderer/index.js +68 -7
  152. package/dist/es2019/ui/Renderer/style.js +47 -37
  153. package/dist/es2019/ui/Renderer/truncated-wrapper.js +3 -0
  154. package/dist/es2019/ui/SmartCardStorage.js +6 -1
  155. package/dist/es2019/ui/annotations/context.js +3 -0
  156. package/dist/es2019/ui/annotations/draft/component.js +24 -12
  157. package/dist/es2019/ui/annotations/element/mark.js +5 -0
  158. package/dist/es2019/ui/annotations/element/useInlineAnnotationProps.js +7 -1
  159. package/dist/es2019/ui/annotations/hooks/user-selection.js +9 -1
  160. package/dist/es2019/ui/annotations/hover/mounter.js +4 -1
  161. package/dist/es2019/ui/annotations/selection/mounter.js +4 -1
  162. package/dist/es2019/ui/annotations/wrapper.js +8 -2
  163. package/dist/es2019/utils.js +12 -1
  164. package/dist/esm/actions/index.js +6 -0
  165. package/dist/esm/actions/matches-utils.js +6 -0
  166. package/dist/esm/analytics/unsupported-content.js +8 -0
  167. package/dist/esm/react/index.js +61 -10
  168. package/dist/esm/react/marks/alignment.js +5 -5
  169. package/dist/esm/react/marks/annotation.js +8 -3
  170. package/dist/esm/react/marks/breakout.js +2 -0
  171. package/dist/esm/react/marks/code.js +2 -0
  172. package/dist/esm/react/marks/confluence-inline-comment.js +2 -0
  173. package/dist/esm/react/marks/data-consumer.js +2 -0
  174. package/dist/esm/react/marks/em.js +2 -0
  175. package/dist/esm/react/marks/fragment.js +2 -0
  176. package/dist/esm/react/marks/index.js +3 -0
  177. package/dist/esm/react/marks/link.js +2 -0
  178. package/dist/esm/react/marks/strike.js +5 -8
  179. package/dist/esm/react/marks/strong.js +2 -0
  180. package/dist/esm/react/marks/subsup.js +5 -0
  181. package/dist/esm/react/marks/underline.js +2 -0
  182. package/dist/esm/react/marks/unsupportedMark.js +2 -0
  183. package/dist/esm/react/marks/unsupportedNodeAttribute.js +2 -0
  184. package/dist/esm/react/nodes/TableStickyScrollbar.js +17 -1
  185. package/dist/esm/react/nodes/blockCard.js +6 -0
  186. package/dist/esm/react/nodes/bodiedExtension.js +8 -2
  187. package/dist/esm/react/nodes/codeBlock/components/lightWeightCodeBlock.js +7 -3
  188. package/dist/esm/react/nodes/codeBlock/windowedCodeBlock.js +5 -1
  189. package/dist/esm/react/nodes/date.js +13 -11
  190. package/dist/esm/react/nodes/decisionList.js +2 -0
  191. package/dist/esm/react/nodes/doc.js +6 -0
  192. package/dist/esm/react/nodes/embedCard.js +42 -36
  193. package/dist/esm/react/nodes/emoji.js +13 -9
  194. package/dist/esm/react/nodes/extension.js +8 -2
  195. package/dist/esm/react/nodes/fallback.js +6 -1
  196. package/dist/esm/react/nodes/heading-anchor.js +9 -6
  197. package/dist/esm/react/nodes/heading.js +16 -11
  198. package/dist/esm/react/nodes/index.js +13 -1
  199. package/dist/esm/react/nodes/inline.js +3 -0
  200. package/dist/esm/react/nodes/inlineCard.js +8 -0
  201. package/dist/esm/react/nodes/inlineExtension.js +20 -15
  202. package/dist/esm/react/nodes/media/index.js +17 -1
  203. package/dist/esm/react/nodes/mediaGroup.js +21 -7
  204. package/dist/esm/react/nodes/mediaInline.js +2 -0
  205. package/dist/esm/react/nodes/mediaSingle/index.js +21 -0
  206. package/dist/esm/react/nodes/mention.js +13 -8
  207. package/dist/esm/react/nodes/multiBodiedExtension.js +10 -2
  208. package/dist/esm/react/nodes/orderedList.js +2 -0
  209. package/dist/esm/react/nodes/panel.js +3 -1
  210. package/dist/esm/react/nodes/paragraph.js +2 -0
  211. package/dist/esm/react/nodes/status.js +16 -11
  212. package/dist/esm/react/nodes/table/colgroup.js +6 -2
  213. package/dist/esm/react/nodes/table/sticky.js +13 -0
  214. package/dist/esm/react/nodes/table.js +31 -2
  215. package/dist/esm/react/nodes/tableCell.js +18 -1
  216. package/dist/esm/react/nodes/tableRow.js +2 -0
  217. package/dist/esm/react/nodes/task-item-with-providers.js +3 -0
  218. package/dist/esm/react/nodes/taskItem.js +4 -0
  219. package/dist/esm/react/nodes/taskList.js +2 -0
  220. package/dist/esm/react/utils/render-text-segments.js +2 -0
  221. package/dist/esm/react/utils/segment-text.js +4 -1
  222. package/dist/esm/react/utils/use-select-all-trap.js +11 -0
  223. package/dist/esm/render-document.js +11 -2
  224. package/dist/esm/steps/index.js +6 -1
  225. package/dist/esm/text/index.js +3 -0
  226. package/dist/esm/ui/Expand.js +7 -3
  227. package/dist/esm/ui/ExtensionRenderer.js +3 -0
  228. package/dist/esm/ui/MediaCard.js +34 -19
  229. package/dist/esm/ui/Renderer/ErrorBoundary.js +4 -0
  230. package/dist/esm/ui/Renderer/breakout-ssr.js +28 -2
  231. package/dist/esm/ui/Renderer/count-nodes.js +3 -0
  232. package/dist/esm/ui/Renderer/index.js +68 -7
  233. package/dist/esm/ui/Renderer/style.js +12 -7
  234. package/dist/esm/ui/Renderer/truncated-wrapper.js +3 -0
  235. package/dist/esm/ui/SmartCardStorage.js +6 -1
  236. package/dist/esm/ui/annotations/context.js +3 -0
  237. package/dist/esm/ui/annotations/draft/component.js +24 -12
  238. package/dist/esm/ui/annotations/element/mark.js +5 -0
  239. package/dist/esm/ui/annotations/element/useInlineAnnotationProps.js +7 -1
  240. package/dist/esm/ui/annotations/hooks/user-selection.js +9 -1
  241. package/dist/esm/ui/annotations/hover/mounter.js +4 -1
  242. package/dist/esm/ui/annotations/selection/mounter.js +4 -1
  243. package/dist/esm/ui/annotations/wrapper.js +8 -2
  244. package/dist/esm/utils.js +10 -1
  245. package/dist/types/analytics/events.d.ts +1 -2
  246. package/dist/types/react/marks/confluence-inline-comment.d.ts +1 -1
  247. package/dist/types/react/nodes/decisionList.d.ts +1 -1
  248. package/dist/types/react/nodes/index.d.ts +1 -1
  249. package/dist/types/react/nodes/taskItem.d.ts +1 -1
  250. package/dist/types/react/nodes/taskList.d.ts +1 -1
  251. package/dist/types/react/types.d.ts +2 -2
  252. package/dist/types/utils.d.ts +1 -2
  253. package/dist/types-ts4.5/analytics/events.d.ts +1 -2
  254. package/dist/types-ts4.5/react/marks/confluence-inline-comment.d.ts +1 -1
  255. package/dist/types-ts4.5/react/nodes/decisionList.d.ts +1 -1
  256. package/dist/types-ts4.5/react/nodes/index.d.ts +1 -1
  257. package/dist/types-ts4.5/react/nodes/taskItem.d.ts +1 -1
  258. package/dist/types-ts4.5/react/nodes/taskList.d.ts +1 -1
  259. package/dist/types-ts4.5/react/types.d.ts +2 -2
  260. package/dist/types-ts4.5/utils.d.ts +1 -2
  261. package/docs/0-intro.tsx +14 -1
  262. package/package.json +1 -1
  263. package/tsconfig.json +0 -1
@@ -8,6 +8,8 @@ export default function Paragraph({
8
8
  /*#__PURE__*/
9
9
  // ignore the eslint warning Text primitive does not support dataAttributes
10
10
  // eslint-disable-next-line @atlaskit/design-system/use-primitives-text
11
+ // Ignored via go/ees005
12
+ // eslint-disable-next-line react/jsx-props-no-spreading
11
13
  React.createElement("p", dataAttributes, /*#__PURE__*/React.createElement(Inline, null, children))
12
14
  );
13
15
  }
@@ -11,17 +11,22 @@ export default /*#__PURE__*/memo(function Status(props) {
11
11
  } = props;
12
12
  const inlineAnnotationProps = useInlineAnnotationProps(props);
13
13
  if (fg('editor_inline_comments_on_inline_nodes')) {
14
- return /*#__PURE__*/React.createElement("span", inlineAnnotationProps, /*#__PURE__*/React.createElement(FabricElementsAnalyticsContext, {
15
- data: {
16
- userContext: 'document'
17
- }
18
- }, /*#__PURE__*/React.createElement(AkStatus, {
19
- text: text,
20
- color: color,
21
- localId: localId,
22
- role: "presentation",
23
- isBold: fg('platform-component-visual-refresh')
24
- })));
14
+ return (
15
+ /*#__PURE__*/
16
+ // Ignored via go/ees005
17
+ // eslint-disable-next-line react/jsx-props-no-spreading
18
+ React.createElement("span", inlineAnnotationProps, /*#__PURE__*/React.createElement(FabricElementsAnalyticsContext, {
19
+ data: {
20
+ userContext: 'document'
21
+ }
22
+ }, /*#__PURE__*/React.createElement(AkStatus, {
23
+ text: text,
24
+ color: color,
25
+ localId: localId,
26
+ role: "presentation",
27
+ isBold: fg('platform-component-visual-refresh')
28
+ })))
29
+ );
25
30
  }
26
31
  return /*#__PURE__*/React.createElement(FabricElementsAnalyticsContext, {
27
32
  data: {
@@ -17,7 +17,10 @@ const isTableColumnResized = columnWidths => {
17
17
  const filteredWidths = columnWidths.filter(width => width !== 0);
18
18
  return !!filteredWidths.length;
19
19
  };
20
- const fixColumnWidth = (columnWidth, _tableWidth, _layoutWidth, zeroWidthColumnsCount, scaleDownPercent) => {
20
+ const fixColumnWidth = (columnWidth, _tableWidth, _layoutWidth, zeroWidthColumnsCount, scaleDownPercent
21
+ // Ignored via go/ees005
22
+ // eslint-disable-next-line @typescript-eslint/max-params
23
+ ) => {
21
24
  if (columnWidth === 0) {
22
25
  return columnWidth;
23
26
  }
@@ -196,7 +199,8 @@ export const Colgroup = props => {
196
199
  "data-test-id": 'num'
197
200
  }), colStyles.map((style, idx) =>
198
201
  /*#__PURE__*/
199
- // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
202
+ // Ignored via go/ees005
203
+ // eslint-disable-next-line react/no-array-index-key, @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
200
204
  React.createElement("col", {
201
205
  key: idx,
202
206
  style: style
@@ -179,6 +179,9 @@ function findHorizontalOverflowScrollParent(table, defaultScrollRootId) {
179
179
  if (!parent) {
180
180
  return null;
181
181
  }
182
+
183
+ // Ignored via go/ees005
184
+ // eslint-disable-next-line no-cond-assign
182
185
  while (parent = parent.parentElement) {
183
186
  // IE11 on Window 8 doesn't show styles from CSS when accessing through element.style property.
184
187
  const style = window.getComputedStyle(parent);
@@ -216,10 +219,20 @@ export class OverflowParent {
216
219
  }
217
220
  return 0;
218
221
  }
222
+
223
+ // Ignored via go/ees005
224
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
219
225
  addEventListener(type, cb, ...args) {
226
+ // Ignored via go/ees005
227
+ // eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
220
228
  this.ref.addEventListener(type, cb, ...args);
221
229
  }
230
+
231
+ // Ignored via go/ees005
232
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
222
233
  removeEventListener(type, cb, ...args) {
234
+ // Ignored via go/ees005
235
+ // eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
223
236
  this.ref.removeEventListener(type, cb, ...args);
224
237
  }
225
238
  }
@@ -22,7 +22,10 @@ export const isTableResizingEnabled = appearance => isFullWidthOrFullPageAppeara
22
22
  export const isStickyScrollbarEnabled = appearance => isFullWidthOrFullPageAppearance(appearance) && editorExperiment('platform_renderer_table_sticky_scrollbar', true, {
23
23
  exposure: true
24
24
  });
25
- const orderChildren = (children, tableNode, smartCardStorage, tableOrderStatus) => {
25
+ const orderChildren = (children, tableNode, smartCardStorage, tableOrderStatus
26
+ // Ignored via go/ees005
27
+ // eslint-disable-next-line @typescript-eslint/max-params
28
+ ) => {
26
29
  if (!tableOrderStatus || tableOrderStatus.order === SortOrder.NO_ORDER) {
27
30
  return children;
28
31
  }
@@ -61,7 +64,10 @@ const hasRowspan = row => {
61
64
  const getRefTop = refElement => {
62
65
  return Math.round(refElement.getBoundingClientRect().top);
63
66
  };
64
- const shouldHeaderStick = (scrollTop, tableTop, tableBottom, rowHeight) => tableTop <= scrollTop && !(tableBottom - rowHeight <= scrollTop);
67
+ const shouldHeaderStick = (scrollTop, tableTop, tableBottom, rowHeight
68
+ // Ignored via go/ees005
69
+ // eslint-disable-next-line @typescript-eslint/max-params
70
+ ) => tableTop <= scrollTop && !(tableBottom - rowHeight <= scrollTop);
65
71
  const shouldHeaderPinBottom = (scrollTop, tableBottom, rowHeight) => tableBottom - rowHeight <= scrollTop && !(tableBottom < scrollTop);
66
72
  const addSortableColumn = (rows, tableOrderStatus, onSorting) => {
67
73
  return React.Children.map(rows, (row, index) => {
@@ -78,6 +84,8 @@ const isHeaderRowEnabled = rows => {
78
84
  if (!rows.length) {
79
85
  return false;
80
86
  }
87
+ // Ignored via go/ees005
88
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
81
89
  const {
82
90
  children
83
91
  } = rows[0].props;
@@ -92,6 +100,8 @@ const isHeaderRowEnabled = rows => {
92
100
  const tableCanBeSticky = (node, children) => {
93
101
  return isHeaderRowEnabled(children) && node && node.firstChild && !hasRowspan(node.firstChild);
94
102
  };
103
+ // Ignored via go/ees005
104
+ // eslint-disable-next-line @repo/internal/react/no-class-components
95
105
  export class TableContainer extends React.Component {
96
106
  constructor(...args) {
97
107
  super(...args);
@@ -127,6 +137,8 @@ export class TableContainer extends React.Component {
127
137
  });
128
138
  _defineProperty(this, "componentWillUnmount", () => {
129
139
  if (this.overflowParent) {
140
+ // Ignored via go/ees005
141
+ // eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
130
142
  this.overflowParent.removeEventListener('scroll', this.onScroll);
131
143
  }
132
144
  if (this.nextFrame) {
@@ -185,6 +197,8 @@ export class TableContainer extends React.Component {
185
197
  }
186
198
  });
187
199
  _defineProperty(this, "grabFirstRowRef", children => {
200
+ // Ignored via go/ees005
201
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
188
202
  return React.Children.map(children || false, (child, idx) => {
189
203
  if (idx === 0 && /*#__PURE__*/React.isValidElement(child)) {
190
204
  return /*#__PURE__*/React.cloneElement(child, {
@@ -206,6 +220,8 @@ export class TableContainer extends React.Component {
206
220
  if (this.props.stickyHeaders) {
207
221
  var _this$props$stickyHea;
208
222
  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);
223
+ // Ignored via go/ees005
224
+ // eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
209
225
  this.overflowParent.addEventListener('scroll', this.onScroll);
210
226
  }
211
227
  if (this.wrapperRef.current && isStickyScrollbarEnabled(this.props.rendererAppearance)) {
@@ -218,6 +234,8 @@ export class TableContainer extends React.Component {
218
234
  var _this$props$stickyHea2;
219
235
  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);
220
236
  } else if (!this.props.stickyHeaders && this.overflowParent) {
237
+ // Ignored via go/ees005
238
+ // eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
221
239
  this.overflowParent.removeEventListener('scroll', this.onScroll);
222
240
  this.overflowParent = null;
223
241
  }
@@ -453,6 +471,8 @@ export class TableContainer extends React.Component {
453
471
  })));
454
472
  }
455
473
  }
474
+ // Ignored via go/ees005
475
+ // eslint-disable-next-line @repo/internal/react/no-class-components
456
476
  export class TableProcessor extends React.Component {
457
477
  constructor(...args) {
458
478
  super(...args);
@@ -482,6 +502,8 @@ export class TableProcessor extends React.Component {
482
502
  }
483
503
  });
484
504
  });
505
+ // Ignored via go/ees005
506
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
485
507
  _defineProperty(this, "addNumberColumnIndexes", rows => {
486
508
  const {
487
509
  isNumberColumnEnabled
@@ -502,10 +524,13 @@ export class TableProcessor extends React.Component {
502
524
  if (!children) {
503
525
  return null;
504
526
  }
505
- let childrenArray = React.Children.toArray(children);
527
+ const childrenArray = React.Children.toArray(children);
506
528
  const orderedChildren = compose(this.addNumberColumnIndexes, this.addSortableColumn
507
529
  // @ts-expect-error TS2345: Argument of type '(ReactChild | ReactFragment | ReactPortal)[]' is not assignable to parameter of type 'ReactElement<any, string | JSXElementConstructor<any>>[]'
508
530
  )(childrenArray);
531
+
532
+ // Ignored via go/ees005
533
+ // eslint-disable-next-line react/jsx-props-no-spreading
509
534
  return /*#__PURE__*/React.createElement(TableContainer, this.props, orderedChildren);
510
535
  }
511
536
  }
@@ -522,6 +547,8 @@ const TableWithWidth = props => {
522
547
  const renderWidth = props.rendererAppearance === 'full-page' ? width - FullPagePadding * 2 : width;
523
548
  const colWidthsSum = ((_props$columnWidths = props.columnWidths) === null || _props$columnWidths === void 0 ? void 0 : _props$columnWidths.reduce((total, val) => total + val, 0)) || 0;
524
549
  if (colWidthsSum || props.allowTableResizing) {
550
+ // Ignored via go/ees005
551
+ // eslint-disable-next-line react/jsx-props-no-spreading
525
552
  return /*#__PURE__*/React.createElement(TableWithShadows, _extends({
526
553
  renderWidth: renderWidth
527
554
  }, props));
@@ -529,6 +556,8 @@ const TableWithWidth = props => {
529
556
  // 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
530
557
  return /*#__PURE__*/React.createElement(TableProcessor, _extends({
531
558
  renderWidth: renderWidth
559
+ // Ignored via go/ees005
560
+ // eslint-disable-next-line react/jsx-props-no-spreading
532
561
  }, props));
533
562
  });
534
563
  };
@@ -39,7 +39,12 @@ const getSortOrderLabel = (intl, currentSortOrder) => {
39
39
  return intl.formatMessage(noneSortingLabel);
40
40
  }
41
41
  };
42
+
43
+ // Ignored via go/ees005
44
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
42
45
  const getDataAttributes = (colwidth, background) => {
46
+ // Ignored via go/ees005
47
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
43
48
  const attrs = {};
44
49
  if (colwidth) {
45
50
  attrs['data-colwidth'] = colwidth.join(',');
@@ -63,6 +68,9 @@ const getDataAttributes = (colwidth, background) => {
63
68
  }
64
69
  return attrs;
65
70
  };
71
+
72
+ // Ignored via go/ees005
73
+ // eslint-disable-next-line require-unicode-regexp
66
74
  const cssVariablePattern = /^var\(--.*\)$/;
67
75
  const getStyle = ({
68
76
  background,
@@ -163,6 +171,8 @@ const getWithCellProps = WrapperComponent => {
163
171
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
164
172
  ,
165
173
  className: className
174
+ // Ignored via go/ees005
175
+ // eslint-disable-next-line react/jsx-props-no-spreading
166
176
  }, getDataAttributes(colwidth, background), {
167
177
  "aria-sort": ariaSort
168
178
  }), children);
@@ -181,9 +191,14 @@ export const withSortableColumn = WrapperComponent => {
181
191
  } = props;
182
192
  const sortOrderedClassName = sortOrdered === SortOrder.NO_ORDER ? RendererCssClassName.SORTABLE_COLUMN_NO_ORDER : '';
183
193
  if (!allowColumnSorting || !isHeaderRow) {
194
+ // Ignored via go/ees005
195
+ // eslint-disable-next-line react/jsx-props-no-spreading
184
196
  return /*#__PURE__*/React.createElement(WrapperComponent, props);
185
197
  }
186
- return /*#__PURE__*/React.createElement(WrapperComponent, _extends({}, props, {
198
+ return /*#__PURE__*/React.createElement(WrapperComponent
199
+ // Ignored via go/ees005
200
+ // eslint-disable-next-line react/jsx-props-no-spreading
201
+ , _extends({}, props, {
187
202
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
188
203
  className: RendererCssClassName.SORTABLE_COLUMN_WRAPPER,
189
204
  ariaSort: getSortOrderLabel(intl, sortOrdered)
@@ -200,6 +215,8 @@ export const withSortableColumn = WrapperComponent => {
200
215
  }))));
201
216
  function onKeyPress(event) {
202
217
  const keys = [' ', 'Enter', 'Spacebar'];
218
+ // Ignored via go/ees005
219
+ // eslint-disable-next-line @atlaskit/editor/no-as-casting
203
220
  const {
204
221
  tagName
205
222
  } = event.target;
@@ -3,6 +3,8 @@ import React from 'react';
3
3
  import { compose } from '@atlaskit/editor-common/utils';
4
4
  import { SortOrder } from '@atlaskit/editor-common/types';
5
5
  import { RendererCssClassName } from '../../consts';
6
+ // Ignored via go/ees005
7
+ // eslint-disable-next-line @repo/internal/react/no-class-components
6
8
  export default class TableRow extends React.Component {
7
9
  constructor(...args) {
8
10
  super(...args);
@@ -23,6 +23,9 @@ export default function TaskItemWithProviders(props) {
23
23
  updateContextIdentifierProvider(props.contextIdentifierProvider);
24
24
  }, [props.contextIdentifierProvider, updateContextIdentifierProvider]);
25
25
  const resolvedObjectId = resolvedContextProvider && resolvedContextProvider.objectId || objectAri;
26
+
27
+ // Ignored via go/ees005
28
+ // eslint-disable-next-line react/jsx-props-no-spreading
26
29
  return /*#__PURE__*/React.createElement(ResourcedTaskItem, _extends({}, otherProps, {
27
30
  objectAri: resolvedObjectId,
28
31
  isRenderer: isRenderer
@@ -4,9 +4,13 @@ import { ProviderFactory, WithProviders } from '@atlaskit/editor-common/provider
4
4
  import TaskItemWithProviders from './task-item-with-providers';
5
5
  import { FabricElementsAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
6
6
  import { TaskItemsFormatProvider, TaskItemsFormatConsumer } from '../../ui/TaskItemsFormatContext/TaskItemsFormatContext';
7
+ // Ignored via go/ees005
8
+ // eslint-disable-next-line @repo/internal/react/no-class-components
7
9
  export default class TaskItem extends PureComponent {
8
10
  constructor(props) {
9
11
  super(props);
12
+ // Ignored via go/ees005
13
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
10
14
  _defineProperty(this, "renderWithProvider", providers => {
11
15
  const {
12
16
  taskDecisionProvider,
@@ -1,5 +1,7 @@
1
1
  import React, { PureComponent, Children } from 'react';
2
2
  import { TaskList as AkTaskList } from '@atlaskit/task-decision';
3
+ // Ignored via go/ees005
4
+ // eslint-disable-next-line @repo/internal/react/no-class-components
3
5
  export default class TaskList extends PureComponent {
4
6
  render() {
5
7
  const {
@@ -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
  const Component = textHighlighter === null || textHighlighter === void 0 ? void 0 : textHighlighter.component;
4
6
  const marks = new Set(marksList.map(m => m.type.name));
@@ -19,7 +19,10 @@ export function segmentText(text, highlighter) {
19
19
  segments.push({
20
20
  type: 'match',
21
21
  text: markTextMatch[0],
22
- groups: markTextMatch.groups && Object.keys(markTextMatch.groups).filter(key => markTextMatch.groups[key])
22
+ groups: markTextMatch.groups &&
23
+ // Ignored via go/ees005
24
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
25
+ Object.keys(markTextMatch.groups).filter(key => markTextMatch.groups[key])
23
26
  });
24
27
  pos = markTextMatch.index + markTextMatch[0].length;
25
28
  }
@@ -9,6 +9,9 @@ export const useSelectAllTrap = () => {
9
9
  const ref = React.useRef(null);
10
10
  const clicked = React.useRef(false);
11
11
  const caught = React.useRef();
12
+
13
+ // Ignored via go/ees005
14
+ // eslint-disable-next-line require-unicode-regexp
12
15
  const mac = typeof navigator !== 'undefined' ? /Mac/.test(navigator.platform) : false;
13
16
  const onKeyDown = React.useCallback(e => {
14
17
  var _e$target, _e$target$matches;
@@ -45,10 +48,18 @@ export const useSelectAllTrap = () => {
45
48
  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;
46
49
  }, [ref, clicked]);
47
50
  React.useEffect(() => {
51
+ // Ignored via go/ees005
52
+ // eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
48
53
  window.addEventListener('keydown', onKeyDown);
54
+ // Ignored via go/ees005
55
+ // eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
49
56
  window.addEventListener('click', onClick);
50
57
  return () => {
58
+ // Ignored via go/ees005
59
+ // eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
51
60
  window.removeEventListener('keydown', onKeyDown);
61
+ // Ignored via go/ees005
62
+ // eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
52
63
  window.removeEventListener('click', onClick);
53
64
  };
54
65
  }, [onKeyDown, onClick]);
@@ -22,7 +22,10 @@ const withStopwatch = cb => {
22
22
  time
23
23
  };
24
24
  };
25
- const _validation = (doc, schema, adfStage, useSpecBasedValidator, dispatchAnalyticsEvent, skipValidation) => {
25
+ const _validation = (doc, schema, adfStage, useSpecBasedValidator, dispatchAnalyticsEvent, skipValidation
26
+ // Ignored via go/ees005
27
+ // eslint-disable-next-line @typescript-eslint/max-params
28
+ ) => {
26
29
  let result;
27
30
  if (useSpecBasedValidator) {
28
31
  // link mark on mediaSingle is deprecated, need to move link mark to child media node
@@ -97,6 +100,9 @@ const memoValidation = memoizeOne(_validation, (newArgs, lastArgs) => {
97
100
  const result = areDocsEqual(newDoc, oldDoc) && newSchema === oldSchema && newADFStage === oldADFStage && newUseSpecValidator === oldUseSpecValidator && skipValidation === oldSkipValidation;
98
101
  return result;
99
102
  });
103
+
104
+ // Ignored via go/ees005
105
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
100
106
  const areDocsEqual = (docA, docB) => {
101
107
  if (docA === docB) {
102
108
  return true;
@@ -146,7 +152,10 @@ const memoCreateNodeAndCheck = memoizeOne(_createNodeAndCheck, (newArgs, lastArg
146
152
  const [oldSchema, oldDoc] = lastArgs;
147
153
  return newSchema === oldSchema && areDocsEqual(newDoc, oldDoc);
148
154
  });
149
- export const renderDocument = (doc, serializer, schema = defaultSchema, adfStage = 'final', useSpecBasedValidator = false, rendererId = 'noid', dispatchAnalyticsEvent, unsupportedContentLevelsTracking, appearance, includeNodesCountInStats, skipValidation) => {
155
+ export const renderDocument = (doc, serializer, schema = defaultSchema, adfStage = 'final', useSpecBasedValidator = false, rendererId = 'noid', dispatchAnalyticsEvent, unsupportedContentLevelsTracking, appearance, includeNodesCountInStats, skipValidation
156
+ // Ignored via go/ees005
157
+ // eslint-disable-next-line @typescript-eslint/max-params
158
+ ) => {
150
159
  const stat = {
151
160
  sanitizeTime: 0
152
161
  };
@@ -51,6 +51,8 @@ function isTextNode(node) {
51
51
  }
52
52
  function isHighlightTextNode(node) {
53
53
  var _dataset;
54
+ // Ignored via go/ees005
55
+ // eslint-disable-next-line @atlaskit/editor/no-as-casting
54
56
  return !!(node !== null && node !== void 0 && (_dataset = node.dataset) !== null && _dataset !== void 0 && _dataset.highlighted);
55
57
  }
56
58
  function isNodeInlineMark(node) {
@@ -215,7 +217,10 @@ export function getPosFromRange(range) {
215
217
  const possibleMediaOrMediaSingleElement = findParent(startContainer);
216
218
 
217
219
  // Video hover targets return media single, not media, thus, the extra check in condition.
218
- const isMediaOrMediaSingle = possibleMediaOrMediaSingleElement && /media|mediaSingle/.test(getNodeType(possibleMediaOrMediaSingleElement) || '');
220
+ const isMediaOrMediaSingle = possibleMediaOrMediaSingleElement &&
221
+ // Ignored via go/ees005
222
+ // eslint-disable-next-line require-unicode-regexp
223
+ /media|mediaSingle/.test(getNodeType(possibleMediaOrMediaSingleElement) || '');
219
224
  if (isMediaOrMediaSingle) {
220
225
  let pos;
221
226
  const mediaSingleElement = getNodeType(possibleMediaOrMediaSingleElement) === 'mediaSingle' ? possibleMediaOrMediaSingleElement : findMediaParent(possibleMediaOrMediaSingleElement);
@@ -10,6 +10,9 @@ export default class TextSerializer {
10
10
  fragment.forEach(n => {
11
11
  result.push(reduce(n, this.schema));
12
12
  });
13
+
14
+ // Ignored via go/ees005
15
+ // eslint-disable-next-line require-unicode-regexp
13
16
  return result.join('\n').replace(/\n+/g, '\n');
14
17
  }
15
18
  static fromSchema(schema = defaultSchema) {
@@ -43,7 +43,8 @@ const Container = props => {
43
43
  padding-bottom: ${paddingBottom};
44
44
  `;
45
45
  return (
46
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
46
+ // Ignored via go/ees005
47
+ // eslint-disable-next-line react/jsx-props-no-spreading, @atlaskit/design-system/consistent-css-prop-usage
47
48
  jsx("div", _extends({
48
49
  css: styles
49
50
  }, props), props.children)
@@ -63,7 +64,8 @@ const TitleContainer = props => {
63
64
  ...buttonProps
64
65
  } = props;
65
66
  return (
66
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
67
+ // Ignored via go/ees005
68
+ // eslint-disable-next-line react/jsx-props-no-spreading, @atlaskit/design-system/consistent-css-prop-usage
67
69
  jsx("button", _extends({
68
70
  type: "button",
69
71
  css: styles
@@ -83,7 +85,9 @@ const ContentContainer = props => {
83
85
  visibility: ${visibility};
84
86
  `;
85
87
  return (
86
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
88
+ // eslint-disable-next-line
89
+ // Ignored via go/ees005
90
+ // eslint-disable-next-line react/jsx-props-no-spreading, @atlaskit/design-system/consistent-css-prop-usage
87
91
  jsx("div", _extends({
88
92
  css: styles
89
93
  }, props), props.children)
@@ -38,6 +38,9 @@ export default function ExtensionRenderer(props) {
38
38
  const isMounted = React.useRef(true);
39
39
  const localGetNodeRenderer = React.useMemo(() => memoizeOne(getNodeRenderer), []);
40
40
  const [extensionProvider, setExtensionProvider] = React.useState(null);
41
+
42
+ // Ignored via go/ees005
43
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
41
44
  const handleProvider = React.useCallback((name, providerPromise) => {
42
45
  providerPromise && providerPromise.then(provider => {
43
46
  if (isMounted.current) {
@@ -34,6 +34,9 @@ export const getListOfIdentifiersFromDoc = doc => {
34
34
  return identifierList;
35
35
  }, []);
36
36
  };
37
+
38
+ // Ignored via go/ees005
39
+ // eslint-disable-next-line @repo/internal/react/no-class-components
37
40
  export class MediaCardView extends Component {
38
41
  constructor(...args) {
39
42
  super(...args);
@@ -163,29 +166,38 @@ export class MediaCardView extends Component {
163
166
  // we need this statement for the mandatory mediaClientConfig below
164
167
  const mediaClientConfig = mediaClient === null || mediaClient === void 0 ? void 0 : mediaClient.mediaClientConfig;
165
168
  if (fg('platform_editor_external_media_comment_bugfix')) {
166
- return /*#__PURE__*/React.createElement("div", _extends({}, dataAttributes, {
167
- "data-node-type": "media"
168
- }), /*#__PURE__*/React.createElement(Card
169
- // TODO MPT-315: clean up after we move mediaClientConfig into FileIdentifier
170
- // context is not really used when the type is external and we want to render the component asap
171
- , {
172
- mediaClientConfig: mediaClientConfig,
173
- alt: alt,
174
- identifier: identifier,
175
- dimensions: cardDimensions,
176
- appearance: appearance,
177
- resizeMode: resizeMode,
178
- disableOverlay: disableOverlay,
179
- shouldOpenMediaViewer: shouldOpenMediaViewer,
180
- mediaViewerItems: Array.from(mediaIdentifierMap.values()),
181
- featureFlags: featureFlags,
182
- ssr: ssr === null || ssr === void 0 ? void 0 : ssr.mode,
183
- shouldHideTooltip: false
184
- }));
169
+ return (
170
+ /*#__PURE__*/
171
+ // Ignored via go/ees005
172
+ // eslint-disable-next-line react/jsx-props-no-spreading
173
+ React.createElement("div", _extends({}, dataAttributes, {
174
+ "data-node-type": "media"
175
+ }), /*#__PURE__*/React.createElement(Card
176
+ // TODO MPT-315: clean up after we move mediaClientConfig into FileIdentifier
177
+ // context is not really used when the type is external and we want to render the component asap
178
+ // Ignored via go/ees005
179
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
180
+ , {
181
+ mediaClientConfig: mediaClientConfig,
182
+ alt: alt,
183
+ identifier: identifier,
184
+ dimensions: cardDimensions,
185
+ appearance: appearance,
186
+ resizeMode: resizeMode,
187
+ disableOverlay: disableOverlay,
188
+ shouldOpenMediaViewer: shouldOpenMediaViewer,
189
+ mediaViewerItems: Array.from(mediaIdentifierMap.values()),
190
+ featureFlags: featureFlags,
191
+ ssr: ssr === null || ssr === void 0 ? void 0 : ssr.mode,
192
+ shouldHideTooltip: false
193
+ }))
194
+ );
185
195
  } else {
186
196
  return /*#__PURE__*/React.createElement(Card
187
197
  // TODO MPT-315: clean up after we move mediaClientConfig into FileIdentifier
188
198
  // context is not really used when the type is external and we want to render the component asap
199
+ // Ignored via go/ees005
200
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
189
201
  , {
190
202
  mediaClientConfig: mediaClientConfig,
191
203
  alt: alt,
@@ -316,6 +328,9 @@ export const getClipboardAttrs = ({
316
328
  };
317
329
  export const MediaCardInternal = props => {
318
330
  const mediaClient = useContext(MediaClientContext);
331
+
332
+ // Ignored via go/ees005
333
+ // eslint-disable-next-line react/jsx-props-no-spreading
319
334
  return /*#__PURE__*/React.createElement(MediaCardView, _extends({}, props, {
320
335
  mediaClient: mediaClient
321
336
  }));
@@ -5,6 +5,8 @@ import { FabricChannel } from '@atlaskit/analytics-listeners/types';
5
5
  import { logException } from '@atlaskit/editor-common/monitoring';
6
6
  import { PLATFORM } from '../../analytics/events';
7
7
  import uuid from 'uuid';
8
+ // Ignored via go/ees005
9
+ // eslint-disable-next-line @repo/internal/react/no-class-components
8
10
  export class ErrorBoundary extends React.Component {
9
11
  constructor(...args) {
10
12
  super(...args);
@@ -46,6 +48,8 @@ export class ErrorBoundary extends React.Component {
46
48
  logException(error, {
47
49
  location: 'renderer'
48
50
  });
51
+ // Ignored via go/ees005
52
+ // eslint-disable-next-line require-unicode-regexp
49
53
  const pattern = /Failed to execute.*on 'Node'.*/;
50
54
  const matchesPattern = pattern.test(error.message);
51
55
  if (matchesPattern) {