@atlaskit/renderer 109.29.3 → 109.29.5

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 (128) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/cjs/react/nodes/table.js +14 -5
  3. package/dist/cjs/ui/Renderer/index.js +1 -1
  4. package/dist/es2019/react/nodes/table.js +15 -6
  5. package/dist/es2019/ui/Renderer/index.js +1 -1
  6. package/dist/esm/react/nodes/table.js +15 -6
  7. package/dist/esm/ui/Renderer/index.js +1 -1
  8. package/dist/types/analytics/analyticsContext.d.ts +1 -1
  9. package/dist/types/react/hooks/use-bidi-warnings.d.ts +1 -1
  10. package/dist/types/react/marks/code.d.ts +2 -2
  11. package/dist/types/react/marks/confluence-inline-comment.d.ts +1 -1
  12. package/dist/types/react/marks/data-consumer.d.ts +2 -2
  13. package/dist/types/react/marks/em.d.ts +1 -1
  14. package/dist/types/react/marks/fragment.d.ts +2 -2
  15. package/dist/types/react/marks/indentation.d.ts +2 -2
  16. package/dist/types/react/marks/strike.d.ts +1 -1
  17. package/dist/types/react/marks/strong.d.ts +1 -1
  18. package/dist/types/react/marks/subsup.d.ts +2 -2
  19. package/dist/types/react/marks/underline.d.ts +1 -1
  20. package/dist/types/react/marks/unsupportedMark.d.ts +1 -1
  21. package/dist/types/react/marks/unsupportedNodeAttribute.d.ts +1 -1
  22. package/dist/types/react/nodes/caption.d.ts +1 -1
  23. package/dist/types/react/nodes/date.d.ts +1 -1
  24. package/dist/types/react/nodes/decisionItem.d.ts +1 -1
  25. package/dist/types/react/nodes/emoji.d.ts +3 -3
  26. package/dist/types/react/nodes/extension.d.ts +5 -6
  27. package/dist/types/react/nodes/heading.d.ts +3 -3
  28. package/dist/types/react/nodes/paragraph.d.ts +1 -1
  29. package/dist/types/react/nodes/status.d.ts +1 -1
  30. package/dist/types/react/nodes/task-item-with-providers.d.ts +2 -2
  31. package/dist/types/react/nodes/taskItem.d.ts +3 -3
  32. package/dist/types/react/nodes/taskList.d.ts +1 -1
  33. package/dist/types/react/utils/appearance.d.ts +1 -1
  34. package/dist/types/react/utils/inject-props.d.ts +1 -1
  35. package/dist/types/react/utils/links.d.ts +1 -1
  36. package/dist/types/react/utils/lists.d.ts +1 -1
  37. package/dist/types/react/utils/performance/RenderTracking.d.ts +1 -1
  38. package/dist/types/render-document.d.ts +4 -4
  39. package/dist/types/serializer.d.ts +1 -1
  40. package/dist/types/text/index.d.ts +2 -2
  41. package/dist/types/text/nodes/blockquote.d.ts +1 -1
  42. package/dist/types/text/nodes/bulletList.d.ts +1 -1
  43. package/dist/types/text/nodes/date.d.ts +1 -1
  44. package/dist/types/text/nodes/decisionItem.d.ts +1 -1
  45. package/dist/types/text/nodes/hardBreak.d.ts +1 -1
  46. package/dist/types/text/nodes/heading.d.ts +1 -1
  47. package/dist/types/text/nodes/index.d.ts +1 -1
  48. package/dist/types/text/nodes/inlineCard.d.ts +1 -1
  49. package/dist/types/text/nodes/listItem.d.ts +1 -1
  50. package/dist/types/text/nodes/mediaGroup.d.ts +1 -1
  51. package/dist/types/text/nodes/mention.d.ts +1 -1
  52. package/dist/types/text/nodes/orderedList.d.ts +1 -1
  53. package/dist/types/text/nodes/panel.d.ts +1 -1
  54. package/dist/types/text/nodes/paragraph.d.ts +1 -1
  55. package/dist/types/text/nodes/rule.d.ts +1 -1
  56. package/dist/types/text/nodes/status.d.ts +1 -1
  57. package/dist/types/text/nodes/table.d.ts +1 -1
  58. package/dist/types/text/nodes/taskItem.d.ts +1 -1
  59. package/dist/types/text/nodes/unknown.d.ts +1 -1
  60. package/dist/types/ui/RendererActionsContext/WithRendererActions.d.ts +2 -2
  61. package/dist/types/ui/RendererActionsContext/index.d.ts +1 -1
  62. package/dist/types/ui/TaskItemsFormatContext/TaskItemsFormatContext.d.ts +1 -1
  63. package/dist/types/ui/annotations/draft/dom.d.ts +1 -1
  64. package/dist/types/ui/annotations/draft/position.d.ts +1 -1
  65. package/dist/types/ui/annotations/draft/text.d.ts +1 -1
  66. package/dist/types/ui/annotations/hooks/use-inline-comments-filter.d.ts +1 -1
  67. package/dist/types/use-feature-flags.d.ts +1 -1
  68. package/dist/types-ts4.5/analytics/analyticsContext.d.ts +1 -1
  69. package/dist/types-ts4.5/react/hooks/use-bidi-warnings.d.ts +1 -1
  70. package/dist/types-ts4.5/react/marks/code.d.ts +2 -2
  71. package/dist/types-ts4.5/react/marks/confluence-inline-comment.d.ts +1 -1
  72. package/dist/types-ts4.5/react/marks/data-consumer.d.ts +2 -2
  73. package/dist/types-ts4.5/react/marks/em.d.ts +1 -1
  74. package/dist/types-ts4.5/react/marks/fragment.d.ts +2 -2
  75. package/dist/types-ts4.5/react/marks/indentation.d.ts +2 -2
  76. package/dist/types-ts4.5/react/marks/strike.d.ts +1 -1
  77. package/dist/types-ts4.5/react/marks/strong.d.ts +1 -1
  78. package/dist/types-ts4.5/react/marks/subsup.d.ts +2 -2
  79. package/dist/types-ts4.5/react/marks/underline.d.ts +1 -1
  80. package/dist/types-ts4.5/react/marks/unsupportedMark.d.ts +1 -1
  81. package/dist/types-ts4.5/react/marks/unsupportedNodeAttribute.d.ts +1 -1
  82. package/dist/types-ts4.5/react/nodes/caption.d.ts +1 -1
  83. package/dist/types-ts4.5/react/nodes/date.d.ts +1 -1
  84. package/dist/types-ts4.5/react/nodes/decisionItem.d.ts +1 -1
  85. package/dist/types-ts4.5/react/nodes/emoji.d.ts +3 -3
  86. package/dist/types-ts4.5/react/nodes/extension.d.ts +5 -6
  87. package/dist/types-ts4.5/react/nodes/heading.d.ts +3 -3
  88. package/dist/types-ts4.5/react/nodes/paragraph.d.ts +1 -1
  89. package/dist/types-ts4.5/react/nodes/status.d.ts +1 -1
  90. package/dist/types-ts4.5/react/nodes/task-item-with-providers.d.ts +2 -2
  91. package/dist/types-ts4.5/react/nodes/taskItem.d.ts +3 -3
  92. package/dist/types-ts4.5/react/nodes/taskList.d.ts +1 -1
  93. package/dist/types-ts4.5/react/utils/appearance.d.ts +1 -1
  94. package/dist/types-ts4.5/react/utils/inject-props.d.ts +1 -1
  95. package/dist/types-ts4.5/react/utils/links.d.ts +1 -1
  96. package/dist/types-ts4.5/react/utils/lists.d.ts +1 -1
  97. package/dist/types-ts4.5/react/utils/performance/RenderTracking.d.ts +1 -1
  98. package/dist/types-ts4.5/render-document.d.ts +4 -4
  99. package/dist/types-ts4.5/serializer.d.ts +1 -1
  100. package/dist/types-ts4.5/text/index.d.ts +2 -2
  101. package/dist/types-ts4.5/text/nodes/blockquote.d.ts +1 -1
  102. package/dist/types-ts4.5/text/nodes/bulletList.d.ts +1 -1
  103. package/dist/types-ts4.5/text/nodes/date.d.ts +1 -1
  104. package/dist/types-ts4.5/text/nodes/decisionItem.d.ts +1 -1
  105. package/dist/types-ts4.5/text/nodes/hardBreak.d.ts +1 -1
  106. package/dist/types-ts4.5/text/nodes/heading.d.ts +1 -1
  107. package/dist/types-ts4.5/text/nodes/index.d.ts +1 -1
  108. package/dist/types-ts4.5/text/nodes/inlineCard.d.ts +1 -1
  109. package/dist/types-ts4.5/text/nodes/listItem.d.ts +1 -1
  110. package/dist/types-ts4.5/text/nodes/mediaGroup.d.ts +1 -1
  111. package/dist/types-ts4.5/text/nodes/mention.d.ts +1 -1
  112. package/dist/types-ts4.5/text/nodes/orderedList.d.ts +1 -1
  113. package/dist/types-ts4.5/text/nodes/panel.d.ts +1 -1
  114. package/dist/types-ts4.5/text/nodes/paragraph.d.ts +1 -1
  115. package/dist/types-ts4.5/text/nodes/rule.d.ts +1 -1
  116. package/dist/types-ts4.5/text/nodes/status.d.ts +1 -1
  117. package/dist/types-ts4.5/text/nodes/table.d.ts +1 -1
  118. package/dist/types-ts4.5/text/nodes/taskItem.d.ts +1 -1
  119. package/dist/types-ts4.5/text/nodes/unknown.d.ts +1 -1
  120. package/dist/types-ts4.5/ui/RendererActionsContext/WithRendererActions.d.ts +2 -2
  121. package/dist/types-ts4.5/ui/RendererActionsContext/index.d.ts +1 -1
  122. package/dist/types-ts4.5/ui/TaskItemsFormatContext/TaskItemsFormatContext.d.ts +1 -1
  123. package/dist/types-ts4.5/ui/annotations/draft/dom.d.ts +1 -1
  124. package/dist/types-ts4.5/ui/annotations/draft/position.d.ts +1 -1
  125. package/dist/types-ts4.5/ui/annotations/draft/text.d.ts +1 -1
  126. package/dist/types-ts4.5/ui/annotations/hooks/use-inline-comments-filter.d.ts +1 -1
  127. package/dist/types-ts4.5/use-feature-flags.d.ts +1 -1
  128. package/package.json +8 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 109.29.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#103178](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/103178)
8
+ [`71c9ef285341`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/71c9ef285341) -
9
+ ED-22930: Support for table alignment in renderer
10
+
11
+ ## 109.29.4
12
+
13
+ ### Patch Changes
14
+
15
+ - [#102478](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/102478)
16
+ [`3378951608b0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3378951608b0) -
17
+ [ED-23332] Update adf-schema package to 36.10.1
18
+ - Updated dependencies
19
+
3
20
  ## 109.29.3
4
21
 
5
22
  ### Patch Changes
@@ -298,7 +298,7 @@ var TableContainer = exports.TableContainer = /*#__PURE__*/function (_React$Comp
298
298
  isInsideOfBlockNode = _this$props.isInsideOfBlockNode,
299
299
  isinsideMultiBodiedExtension = _this$props.isinsideMultiBodiedExtension;
300
300
  var stickyMode = this.state.stickyMode;
301
- var lineLength = _editorSharedStyles.akEditorDefaultLayoutWidth;
301
+ var lineLengthFixedWidth = _editorSharedStyles.akEditorDefaultLayoutWidth;
302
302
  var left;
303
303
  var updatedLayout;
304
304
 
@@ -316,8 +316,17 @@ var TableContainer = exports.TableContainer = /*#__PURE__*/function (_React$Comp
316
316
  }
317
317
  };
318
318
  var tableWidth = calcDefaultLayoutWidthByAppearance(rendererAppearance, tableNode);
319
- if (canUseLinelength(rendererAppearance) && tableWidth > lineLength) {
320
- left = lineLength / 2 - tableWidth / 2;
319
+
320
+ // Logic for table alignment in renderer
321
+ var isTableAlignStart = (0, _platformFeatureFlags.getBooleanFF)('platform.editor.table.allow-table-alignment') && (0, _appearance.isFullWidthOrFullPageAppearance)(rendererAppearance) && tableNode && tableNode.attrs && tableNode.attrs.layout === 'align-start';
322
+ var fullWidthLineLength = isRenderWidthValid ? Math.min(_editorSharedStyles.akEditorFullWidthLayoutWidth, renderWidth) : _editorSharedStyles.akEditorFullWidthLayoutWidth;
323
+ var lineLength = (0, _appearance.isFullWidthAppearance)(rendererAppearance) ? fullWidthLineLength : lineLengthFixedWidth;
324
+ var shouldCalculateLeftForAlignment = isTableAlignStart && ((0, _appearance.isFullPageAppearance)(rendererAppearance) && tableWidth <= lineLengthFixedWidth || (0, _appearance.isFullWidthAppearance)(rendererAppearance));
325
+ if (shouldCalculateLeftForAlignment) {
326
+ left = (tableWidth - lineLength) / 2;
327
+ }
328
+ if (!shouldCalculateLeftForAlignment && canUseLinelength(rendererAppearance) && tableWidth > lineLengthFixedWidth) {
329
+ left = lineLengthFixedWidth / 2 - tableWidth / 2;
321
330
  }
322
331
  var children = _react.default.Children.toArray(this.props.children);
323
332
 
@@ -338,8 +347,8 @@ var TableContainer = exports.TableContainer = /*#__PURE__*/function (_React$Comp
338
347
  ref: this.props.handleRef,
339
348
  style: {
340
349
  width: isTableResizingEnabled(rendererAppearance) ? tableWidth : 'inherit',
341
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/ensure-design-token-usage/preview
342
- left: left
350
+ left: left,
351
+ marginLeft: shouldCalculateLeftForAlignment && left !== undefined ? -left : undefined
343
352
  }
344
353
  }, stickyHeaders && tableCanBeSticky(tableNode, children) && /*#__PURE__*/_react.default.createElement(_sticky.StickyTable, {
345
354
  isNumberColumnEnabled: isNumberColumnEnabled,
@@ -56,7 +56,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
56
56
  var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
57
57
  var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
58
58
  var packageName = "@atlaskit/renderer";
59
- var packageVersion = "109.29.3";
59
+ var packageVersion = "109.29.5";
60
60
  var defaultNodeComponents = exports.defaultNodeComponents = _nodes.nodeToReact;
61
61
  var Renderer = exports.Renderer = /*#__PURE__*/function (_PureComponent) {
62
62
  (0, _inherits2.default)(Renderer, _PureComponent);
@@ -13,7 +13,7 @@ import { TableHeader } from './tableCell';
13
13
  import { withSmartCardStorage } from '../../ui/SmartCardStorage';
14
14
  import { StickyTable, tableStickyPadding, OverflowParent } from './table/sticky';
15
15
  import { Table } from './table/table';
16
- import { isFullWidthOrFullPageAppearance } from '../utils/appearance';
16
+ import { isFullPageAppearance, isFullWidthAppearance, isFullWidthOrFullPageAppearance } from '../utils/appearance';
17
17
  export const isTableResizingEnabled = appearance => isFullWidthOrFullPageAppearance(appearance);
18
18
  const orderChildren = (children, tableNode, smartCardStorage, tableOrderStatus) => {
19
19
  if (!tableOrderStatus || tableOrderStatus.order === SortOrder.NO_ORDER) {
@@ -245,7 +245,7 @@ export class TableContainer extends React.Component {
245
245
  const {
246
246
  stickyMode
247
247
  } = this.state;
248
- const lineLength = akEditorDefaultLayoutWidth;
248
+ const lineLengthFixedWidth = akEditorDefaultLayoutWidth;
249
249
  let left;
250
250
  let updatedLayout;
251
251
 
@@ -263,8 +263,17 @@ export class TableContainer extends React.Component {
263
263
  }
264
264
  };
265
265
  const tableWidth = calcDefaultLayoutWidthByAppearance(rendererAppearance, tableNode);
266
- if (canUseLinelength(rendererAppearance) && tableWidth > lineLength) {
267
- left = lineLength / 2 - tableWidth / 2;
266
+
267
+ // Logic for table alignment in renderer
268
+ const isTableAlignStart = getBooleanFF('platform.editor.table.allow-table-alignment') && isFullWidthOrFullPageAppearance(rendererAppearance) && tableNode && tableNode.attrs && tableNode.attrs.layout === 'align-start';
269
+ const fullWidthLineLength = isRenderWidthValid ? Math.min(akEditorFullWidthLayoutWidth, renderWidth) : akEditorFullWidthLayoutWidth;
270
+ const lineLength = isFullWidthAppearance(rendererAppearance) ? fullWidthLineLength : lineLengthFixedWidth;
271
+ const shouldCalculateLeftForAlignment = isTableAlignStart && (isFullPageAppearance(rendererAppearance) && tableWidth <= lineLengthFixedWidth || isFullWidthAppearance(rendererAppearance));
272
+ if (shouldCalculateLeftForAlignment) {
273
+ left = (tableWidth - lineLength) / 2;
274
+ }
275
+ if (!shouldCalculateLeftForAlignment && canUseLinelength(rendererAppearance) && tableWidth > lineLengthFixedWidth) {
276
+ left = lineLengthFixedWidth / 2 - tableWidth / 2;
268
277
  }
269
278
  const children = React.Children.toArray(this.props.children);
270
279
 
@@ -285,8 +294,8 @@ export class TableContainer extends React.Component {
285
294
  ref: this.props.handleRef,
286
295
  style: {
287
296
  width: isTableResizingEnabled(rendererAppearance) ? tableWidth : 'inherit',
288
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/ensure-design-token-usage/preview
289
- left
297
+ left: left,
298
+ marginLeft: shouldCalculateLeftForAlignment && left !== undefined ? -left : undefined
290
299
  }
291
300
  }, stickyHeaders && tableCanBeSticky(tableNode, children) && /*#__PURE__*/React.createElement(StickyTable, {
292
301
  isNumberColumnEnabled: isNumberColumnEnabled,
@@ -37,7 +37,7 @@ import { nodeToReact } from '../../react/nodes';
37
37
  export const NORMAL_SEVERITY_THRESHOLD = 2000;
38
38
  export const DEGRADED_SEVERITY_THRESHOLD = 3000;
39
39
  const packageName = "@atlaskit/renderer";
40
- const packageVersion = "109.29.3";
40
+ const packageVersion = "109.29.5";
41
41
  export const defaultNodeComponents = nodeToReact;
42
42
  export class Renderer extends PureComponent {
43
43
  constructor(props) {
@@ -24,7 +24,7 @@ import { TableHeader } from './tableCell';
24
24
  import { withSmartCardStorage } from '../../ui/SmartCardStorage';
25
25
  import { StickyTable, tableStickyPadding, OverflowParent } from './table/sticky';
26
26
  import { Table } from './table/table';
27
- import { isFullWidthOrFullPageAppearance } from '../utils/appearance';
27
+ import { isFullPageAppearance, isFullWidthAppearance, isFullWidthOrFullPageAppearance } from '../utils/appearance';
28
28
  export var isTableResizingEnabled = function isTableResizingEnabled(appearance) {
29
29
  return isFullWidthOrFullPageAppearance(appearance);
30
30
  };
@@ -291,7 +291,7 @@ export var TableContainer = /*#__PURE__*/function (_React$Component) {
291
291
  isInsideOfBlockNode = _this$props.isInsideOfBlockNode,
292
292
  isinsideMultiBodiedExtension = _this$props.isinsideMultiBodiedExtension;
293
293
  var stickyMode = this.state.stickyMode;
294
- var lineLength = akEditorDefaultLayoutWidth;
294
+ var lineLengthFixedWidth = akEditorDefaultLayoutWidth;
295
295
  var left;
296
296
  var updatedLayout;
297
297
 
@@ -309,8 +309,17 @@ export var TableContainer = /*#__PURE__*/function (_React$Component) {
309
309
  }
310
310
  };
311
311
  var tableWidth = calcDefaultLayoutWidthByAppearance(rendererAppearance, tableNode);
312
- if (canUseLinelength(rendererAppearance) && tableWidth > lineLength) {
313
- left = lineLength / 2 - tableWidth / 2;
312
+
313
+ // Logic for table alignment in renderer
314
+ var isTableAlignStart = getBooleanFF('platform.editor.table.allow-table-alignment') && isFullWidthOrFullPageAppearance(rendererAppearance) && tableNode && tableNode.attrs && tableNode.attrs.layout === 'align-start';
315
+ var fullWidthLineLength = isRenderWidthValid ? Math.min(akEditorFullWidthLayoutWidth, renderWidth) : akEditorFullWidthLayoutWidth;
316
+ var lineLength = isFullWidthAppearance(rendererAppearance) ? fullWidthLineLength : lineLengthFixedWidth;
317
+ var shouldCalculateLeftForAlignment = isTableAlignStart && (isFullPageAppearance(rendererAppearance) && tableWidth <= lineLengthFixedWidth || isFullWidthAppearance(rendererAppearance));
318
+ if (shouldCalculateLeftForAlignment) {
319
+ left = (tableWidth - lineLength) / 2;
320
+ }
321
+ if (!shouldCalculateLeftForAlignment && canUseLinelength(rendererAppearance) && tableWidth > lineLengthFixedWidth) {
322
+ left = lineLengthFixedWidth / 2 - tableWidth / 2;
314
323
  }
315
324
  var children = React.Children.toArray(this.props.children);
316
325
 
@@ -331,8 +340,8 @@ export var TableContainer = /*#__PURE__*/function (_React$Component) {
331
340
  ref: this.props.handleRef,
332
341
  style: {
333
342
  width: isTableResizingEnabled(rendererAppearance) ? tableWidth : 'inherit',
334
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/ensure-design-token-usage/preview
335
- left: left
343
+ left: left,
344
+ marginLeft: shouldCalculateLeftForAlignment && left !== undefined ? -left : undefined
336
345
  }
337
346
  }, stickyHeaders && tableCanBeSticky(tableNode, children) && /*#__PURE__*/React.createElement(StickyTable, {
338
347
  isNumberColumnEnabled: isNumberColumnEnabled,
@@ -47,7 +47,7 @@ import { nodeToReact } from '../../react/nodes';
47
47
  export var NORMAL_SEVERITY_THRESHOLD = 2000;
48
48
  export var DEGRADED_SEVERITY_THRESHOLD = 3000;
49
49
  var packageName = "@atlaskit/renderer";
50
- var packageVersion = "109.29.3";
50
+ var packageVersion = "109.29.5";
51
51
  export var defaultNodeComponents = nodeToReact;
52
52
  export var Renderer = /*#__PURE__*/function (_PureComponent) {
53
53
  _inherits(Renderer, _PureComponent);
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { AnalyticsEventPayload } from './events';
2
+ import { type AnalyticsEventPayload } from './events';
3
3
  declare const AnalyticsContext: React.Context<{
4
4
  fireAnalyticsEvent: (event: AnalyticsEventPayload) => void;
5
5
  }>;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { type ReactNode } from 'react';
2
2
  interface Config {
3
3
  enableWarningTooltip: boolean;
4
4
  }
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { WrappedComponentProps } from 'react-intl-next';
3
- import { Mark } from '@atlaskit/editor-prosemirror/model';
2
+ import { type WrappedComponentProps } from 'react-intl-next';
3
+ import { type Mark } from '@atlaskit/editor-prosemirror/model';
4
4
  import type { MarkProps } from '../types';
5
5
  export declare const isCodeMark: (mark: Mark) => boolean;
6
6
  export declare function CodeWithIntl(props: MarkProps<{
@@ -1,5 +1,5 @@
1
1
  import { Component } from 'react';
2
- import { MarkProps } from '../types';
2
+ import { type MarkProps } from '../types';
3
3
  export interface Props {
4
4
  reference: string;
5
5
  }
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { DataConsumerAttributes } from '@atlaskit/adf-schema';
3
- import { MarkProps } from '../types';
2
+ import { type DataConsumerAttributes } from '@atlaskit/adf-schema';
3
+ import { type MarkProps } from '../types';
4
4
  export default function DataConsumer(props: MarkProps<DataConsumerAttributes>): JSX.Element;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { MarkProps } from '../types';
2
+ import { type MarkProps } from '../types';
3
3
  export default function Em(props: MarkProps): JSX.Element;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { FragmentAttributes } from '@atlaskit/adf-schema';
3
- import { MarkProps } from '../types';
2
+ import { type FragmentAttributes } from '@atlaskit/adf-schema';
3
+ import { type MarkProps } from '../types';
4
4
  export default function FragmentMark(props: MarkProps<FragmentAttributes>): JSX.Element;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { IndentationMarkAttributes } from '@atlaskit/adf-schema';
3
- import { MarkProps } from '../types';
2
+ import { type IndentationMarkAttributes } from '@atlaskit/adf-schema';
3
+ import { type MarkProps } from '../types';
4
4
  export default function Indentation(props: MarkProps<IndentationMarkAttributes>): JSX.Element;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { MarkProps } from '../types';
2
+ import { type MarkProps } from '../types';
3
3
  export default function Strike(props: MarkProps): JSX.Element;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { MarkProps } from '../types';
2
+ import { type MarkProps } from '../types';
3
3
  export default function Strong(props: MarkProps): JSX.Element;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { SubSupAttributes } from '@atlaskit/adf-schema';
3
- import { MarkProps } from '../types';
2
+ import { type SubSupAttributes } from '@atlaskit/adf-schema';
3
+ import { type MarkProps } from '../types';
4
4
  export default function SubSup(props: MarkProps<SubSupAttributes>): JSX.Element;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { MarkProps } from '../types';
2
+ import { type MarkProps } from '../types';
3
3
  export default function Underline(props: MarkProps): JSX.Element;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { MarkProps } from '../types';
2
+ import { type MarkProps } from '../types';
3
3
  export default function UnsupportedMark(props: MarkProps): JSX.Element;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { MarkProps } from '../types';
2
+ import { type MarkProps } from '../types';
3
3
  export default function UnsupportedNodeAttribute(props: MarkProps): JSX.Element;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { NodeProps } from '../types';
2
+ import { type NodeProps } from '../types';
3
3
  declare const RenderCaption: ({ children, dataAttributes }: NodeProps) => JSX.Element;
4
4
  export default RenderCaption;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { WrappedComponentProps } from 'react-intl-next';
2
+ import { type WrappedComponentProps } from 'react-intl-next';
3
3
  export interface Props {
4
4
  timestamp: string;
5
5
  parentIsIncompleteTask?: boolean;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { NodeProps } from '../types';
2
+ import { type NodeProps } from '../types';
3
3
  export default function DecisionItem({ children, dataAttributes }: NodeProps): JSX.Element;
@@ -1,7 +1,7 @@
1
- import { EmojiAttributes } from '@atlaskit/adf-schema';
2
- import { EmojiResourceConfig } from '@atlaskit/emoji/resource';
1
+ import { type EmojiAttributes } from '@atlaskit/adf-schema';
2
+ import { type EmojiResourceConfig } from '@atlaskit/emoji/resource';
3
3
  import { PureComponent } from 'react';
4
- import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
4
+ import { type ProviderFactory } from '@atlaskit/editor-common/provider-factory';
5
5
  export interface EmojiProps extends EmojiAttributes {
6
6
  providers?: ProviderFactory;
7
7
  resourceConfig?: EmojiResourceConfig;
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
- import { Mark as PMMark, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
- import { RendererContext } from '../types';
4
- import { ExtensionLayout } from '@atlaskit/adf-schema';
2
+ import { type Mark as PMMark, type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
+ import { type RendererContext } from '../types';
4
+ import { type ExtensionLayout } from '@atlaskit/adf-schema';
5
5
  import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
6
- import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
6
+ import { type ProviderFactory } from '@atlaskit/editor-common/provider-factory';
7
7
  import type { OverflowShadowProps } from '@atlaskit/editor-common/ui';
8
8
  export interface Props {
9
9
  extensionHandlers?: ExtensionHandlers;
@@ -64,8 +64,7 @@ declare const _default: {
64
64
  UNSAFE_componentWillMount?(): void;
65
65
  componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
66
66
  UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
67
- componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): void; /** We don't want this error to block renderer */
68
- /** We keep rendering the default content */
67
+ componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): void;
69
68
  UNSAFE_componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): void;
70
69
  };
71
70
  new (props: Props, context: any): {
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
- import { NodeProps } from '../types';
4
- import { HeadingAnchorLinksProps } from '../../ui/Renderer/types';
2
+ import { type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
+ import { type NodeProps } from '../types';
4
+ import { type HeadingAnchorLinksProps } from '../../ui/Renderer/types';
5
5
  export type HeadingLevels = 1 | 2 | 3 | 4 | 5 | 6;
6
6
  declare function Heading(props: NodeProps<{
7
7
  level: HeadingLevels;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { NodeProps } from '../types';
2
+ import { type NodeProps } from '../types';
3
3
  export default function Paragraph({ children, dataAttributes }: NodeProps): JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { PureComponent } from 'react';
2
- import { Color } from '@atlaskit/status/element';
2
+ import { type Color } from '@atlaskit/status/element';
3
3
  export interface Props {
4
4
  text: string;
5
5
  color: Color;
@@ -1,6 +1,6 @@
1
- import { Component, ReactNode } from 'react';
1
+ import { Component, type ReactNode } from 'react';
2
2
  import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
3
- import { ContentRef, TaskDecisionProvider } from '@atlaskit/task-decision';
3
+ import { type ContentRef, type TaskDecisionProvider } from '@atlaskit/task-decision';
4
4
  export interface Props {
5
5
  taskId: string;
6
6
  objectAri: string;
@@ -1,7 +1,7 @@
1
- import { PureComponent, ReactNode } from 'react';
1
+ import { PureComponent, type ReactNode } from 'react';
2
2
  import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
3
- import { RendererContext } from '../types';
4
- import { NodeProps } from '../types';
3
+ import { type RendererContext } from '../types';
4
+ import { type NodeProps } from '../types';
5
5
  export interface Props {
6
6
  localId: string;
7
7
  rendererContext?: RendererContext;
@@ -1,4 +1,4 @@
1
- import { PureComponent, ReactNode } from 'react';
1
+ import { PureComponent, type ReactNode } from 'react';
2
2
  export interface Props {
3
3
  localId?: string;
4
4
  children?: ReactNode;
@@ -1,4 +1,4 @@
1
- import { RendererAppearance } from '../../ui/Renderer/types';
1
+ import { type RendererAppearance } from '../../ui/Renderer/types';
2
2
  export declare const isFullWidthAppearance: (appearance: RendererAppearance) => boolean;
3
3
  export declare const isFullPageAppearance: (appearance: RendererAppearance) => boolean;
4
4
  export declare const isFullWidthOrFullPageAppearance: (appearance: RendererAppearance) => boolean;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from 'react';
1
+ import { type ReactNode } from 'react';
2
2
  /**
3
3
  * Helper function to recursively injects props to
4
4
  * all valid children react nodes.
@@ -1,3 +1,3 @@
1
- import { HeadingAnchorLinksProps } from '../../ui/Renderer/types';
1
+ import { type HeadingAnchorLinksProps } from '../../ui/Renderer/types';
2
2
  export declare function isNestedHeaderLinksEnabled(allowHeadingAnchorLinks?: HeadingAnchorLinksProps): boolean;
3
3
  export declare function getActiveHeadingId(allowHeadingAnchorLinks?: HeadingAnchorLinksProps): string | undefined;
@@ -1,2 +1,2 @@
1
- import { Node } from '@atlaskit/editor-prosemirror/model';
1
+ import { type Node } from '@atlaskit/editor-prosemirror/model';
2
2
  export declare function getListIndentLevel(path: Node[]): number;
@@ -1,5 +1,5 @@
1
1
  import type { AnalyticsEventPayload } from '../../../analytics/events';
2
- import { ACTION_SUBJECT, ACTION } from '@atlaskit/editor-common/analytics';
2
+ import { type ACTION_SUBJECT, type ACTION } from '@atlaskit/editor-common/analytics';
3
3
  export type FireAnalyticsCallback = <T = void>(payload: AnalyticsEventPayload<T>) => void | undefined;
4
4
  type RenderActions = ACTION.RE_RENDERED;
5
5
  type RenderActionSubjects = ACTION_SUBJECT.RENDERER;
@@ -1,9 +1,9 @@
1
- import { Serializer } from './serializer';
1
+ import { type Serializer } from './serializer';
2
2
  import type { ADFStage } from '@atlaskit/editor-common/validator';
3
3
  import type { UnsupportedContentLevelsTracking } from '@atlaskit/editor-common/utils';
4
- import { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
5
- import { AnalyticsEventPayload } from './analytics/events';
6
- import { RendererAppearance } from './ui/Renderer/types';
4
+ import { type Node as PMNode, type Schema } from '@atlaskit/editor-prosemirror/model';
5
+ import { type AnalyticsEventPayload } from './analytics/events';
6
+ import { type RendererAppearance } from './ui/Renderer/types';
7
7
  export interface RenderOutput<T> {
8
8
  result: T;
9
9
  stat: RenderOutputStat;
@@ -1,4 +1,4 @@
1
- import { Fragment } from '@atlaskit/editor-prosemirror/model';
1
+ import { type Fragment } from '@atlaskit/editor-prosemirror/model';
2
2
  export interface Serializer<T> {
3
3
  serializeFragment(fragment: Fragment, props?: any, target?: any, key?: string): T | null;
4
4
  }
@@ -1,5 +1,5 @@
1
- import { Fragment, Schema } from '@atlaskit/editor-prosemirror/model';
2
- import { Serializer } from '../serializer';
1
+ import { type Fragment, type Schema } from '@atlaskit/editor-prosemirror/model';
2
+ import { type Serializer } from '../serializer';
3
3
  export default class TextSerializer implements Serializer<string> {
4
4
  private schema;
5
5
  constructor(schema: Schema);
@@ -1,3 +1,3 @@
1
- import { NodeReducer } from './';
1
+ import { type NodeReducer } from './';
2
2
  declare const blockquote: NodeReducer;
3
3
  export default blockquote;
@@ -1,3 +1,3 @@
1
- import { NodeReducer } from './';
1
+ import { type NodeReducer } from './';
2
2
  declare const bulletList: NodeReducer;
3
3
  export default bulletList;
@@ -1,3 +1,3 @@
1
- import { NodeReducer } from './';
1
+ import { type NodeReducer } from './';
2
2
  declare const date: NodeReducer;
3
3
  export default date;
@@ -1,3 +1,3 @@
1
- import { NodeReducer } from './';
1
+ import { type NodeReducer } from './';
2
2
  declare const decisionItem: NodeReducer;
3
3
  export default decisionItem;
@@ -1,3 +1,3 @@
1
- import { NodeReducer } from './';
1
+ import { type NodeReducer } from './';
2
2
  declare const hardBreak: NodeReducer;
3
3
  export default hardBreak;
@@ -1,3 +1,3 @@
1
- import { NodeReducer } from './';
1
+ import { type NodeReducer } from './';
2
2
  declare const heading: NodeReducer;
3
3
  export default heading;
@@ -1,4 +1,4 @@
1
- import { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
1
+ import { type Node as PMNode, type Schema } from '@atlaskit/editor-prosemirror/model';
2
2
  export type NodeReducer = (node: PMNode, schema: Schema) => string;
3
3
  export declare const reduce: NodeReducer;
4
4
  export declare const nodeToReducerMapping: {
@@ -1,3 +1,3 @@
1
- import { NodeReducer } from './';
1
+ import { type NodeReducer } from './';
2
2
  declare const inlineCard: NodeReducer;
3
3
  export default inlineCard;
@@ -1,3 +1,3 @@
1
- import { NodeReducer } from './';
1
+ import { type NodeReducer } from './';
2
2
  declare const listItem: NodeReducer;
3
3
  export default listItem;
@@ -1,3 +1,3 @@
1
- import { NodeReducer } from './';
1
+ import { type NodeReducer } from './';
2
2
  declare const mediaGroup: NodeReducer;
3
3
  export default mediaGroup;
@@ -1,3 +1,3 @@
1
- import { NodeReducer } from './';
1
+ import { type NodeReducer } from './';
2
2
  declare const mention: NodeReducer;
3
3
  export default mention;
@@ -1,3 +1,3 @@
1
- import { NodeReducer } from './';
1
+ import { type NodeReducer } from './';
2
2
  declare const orderedList: NodeReducer;
3
3
  export default orderedList;
@@ -1,3 +1,3 @@
1
- import { NodeReducer } from './';
1
+ import { type NodeReducer } from './';
2
2
  declare const panel: NodeReducer;
3
3
  export default panel;
@@ -1,3 +1,3 @@
1
- import { NodeReducer } from './';
1
+ import { type NodeReducer } from './';
2
2
  declare const paragraph: NodeReducer;
3
3
  export default paragraph;
@@ -1,3 +1,3 @@
1
- import { NodeReducer } from './';
1
+ import { type NodeReducer } from './';
2
2
  declare const rule: NodeReducer;
3
3
  export default rule;
@@ -1,3 +1,3 @@
1
- import { NodeReducer } from './';
1
+ import { type NodeReducer } from './';
2
2
  declare const status: NodeReducer;
3
3
  export default status;
@@ -1,3 +1,3 @@
1
- import { NodeReducer } from './';
1
+ import { type NodeReducer } from './';
2
2
  declare const table: NodeReducer;
3
3
  export default table;
@@ -1,3 +1,3 @@
1
- import { NodeReducer } from './';
1
+ import { type NodeReducer } from './';
2
2
  declare const taskItem: NodeReducer;
3
3
  export default taskItem;
@@ -1,3 +1,3 @@
1
- import { NodeReducer } from './';
1
+ import { type NodeReducer } from './';
2
2
  declare const unknown: NodeReducer;
3
3
  export default unknown;
@@ -1,5 +1,5 @@
1
- import { ReactNode } from 'react';
2
- import RendererActions from '../../actions/index';
1
+ import { type ReactNode } from 'react';
2
+ import type RendererActions from '../../actions/index';
3
3
  export interface WithRendererActionsProps {
4
4
  render(actions: RendererActions): ReactNode | null;
5
5
  }