@atlaskit/renderer 120.5.0 → 120.5.2

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 (153) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/afm-cc/tsconfig.json +2 -2
  3. package/dist/cjs/react/nodes/inlineCard.js +2 -1
  4. package/dist/cjs/ui/Renderer/index.js +1 -1
  5. package/dist/es2019/react/nodes/inlineCard.js +2 -1
  6. package/dist/es2019/ui/Renderer/index.js +1 -1
  7. package/dist/esm/react/nodes/inlineCard.js +2 -1
  8. package/dist/esm/ui/Renderer/index.js +1 -1
  9. package/dist/types/actions/index.d.ts +2 -2
  10. package/dist/types/actions/matches-utils.d.ts +2 -2
  11. package/dist/types/analytics/events.d.ts +18 -18
  12. package/dist/types/analytics/unsupported-content.d.ts +2 -2
  13. package/dist/types/react/index.d.ts +32 -32
  14. package/dist/types/react/marks/link.d.ts +1 -1
  15. package/dist/types/react/nodes/blockCard.d.ts +4 -4
  16. package/dist/types/react/nodes/bodiedExtension.d.ts +9 -9
  17. package/dist/types/react/nodes/codeBlock/codeBlock.d.ts +3 -3
  18. package/dist/types/react/nodes/date.d.ts +1 -1
  19. package/dist/types/react/nodes/embedCard.d.ts +6 -6
  20. package/dist/types/react/nodes/emoji.d.ts +2 -2
  21. package/dist/types/react/nodes/extension.d.ts +7 -7
  22. package/dist/types/react/nodes/extensionFrame.d.ts +8 -8
  23. package/dist/types/react/nodes/fallback.d.ts +3 -3
  24. package/dist/types/react/nodes/heading-anchor.d.ts +3 -3
  25. package/dist/types/react/nodes/heading.d.ts +4 -4
  26. package/dist/types/react/nodes/index.d.ts +18 -18
  27. package/dist/types/react/nodes/inlineCard.d.ts +3 -3
  28. package/dist/types/react/nodes/inlineExtension.d.ts +5 -5
  29. package/dist/types/react/nodes/media/index.d.ts +11 -11
  30. package/dist/types/react/nodes/mediaGroup.d.ts +1 -1
  31. package/dist/types/react/nodes/mediaInline.d.ts +3 -3
  32. package/dist/types/react/nodes/mediaSingle/index.d.ts +9 -9
  33. package/dist/types/react/nodes/mention.d.ts +3 -3
  34. package/dist/types/react/nodes/multiBodiedExtension/actions.d.ts +2 -2
  35. package/dist/types/react/nodes/multiBodiedExtension/context.d.ts +2 -2
  36. package/dist/types/react/nodes/multiBodiedExtension.d.ts +8 -8
  37. package/dist/types/react/nodes/multiBodiedExtensionOld.d.ts +8 -8
  38. package/dist/types/react/nodes/orderedList.d.ts +3 -3
  39. package/dist/types/react/nodes/panel.d.ts +4 -4
  40. package/dist/types/react/nodes/placeholder.d.ts +1 -1
  41. package/dist/types/react/nodes/status.d.ts +1 -1
  42. package/dist/types/react/nodes/table/sticky.d.ts +11 -11
  43. package/dist/types/react/nodes/table/table.d.ts +2 -2
  44. package/dist/types/react/nodes/table/types.d.ts +6 -6
  45. package/dist/types/react/nodes/table.d.ts +6 -6
  46. package/dist/types/react/nodes/tableCell.d.ts +5 -5
  47. package/dist/types/react/nodes/tableNew.d.ts +5 -5
  48. package/dist/types/react/nodes/tableRow.d.ts +4 -4
  49. package/dist/types/react/nodes/task-item-with-providers.d.ts +9 -9
  50. package/dist/types/react/nodes/taskItem.d.ts +3 -3
  51. package/dist/types/react/nodes/taskList.d.ts +1 -1
  52. package/dist/types/react/nodes/text-wrapper.d.ts +3 -3
  53. package/dist/types/react/types.d.ts +29 -29
  54. package/dist/types/react/utils/segment-text.d.ts +3 -3
  55. package/dist/types/render-document.d.ts +2 -2
  56. package/dist/types/steps/index.d.ts +1 -1
  57. package/dist/types/types/i18n.d.ts +2 -2
  58. package/dist/types/types/mediaOptions.d.ts +3 -3
  59. package/dist/types/types/smartLinksOptions.d.ts +19 -19
  60. package/dist/types/ui/Expand.d.ts +2 -2
  61. package/dist/types/ui/ExtensionRenderer.d.ts +11 -11
  62. package/dist/types/ui/MediaCard.d.ts +18 -18
  63. package/dist/types/ui/Renderer/ErrorBoundary.d.ts +4 -4
  64. package/dist/types/ui/Renderer/ValidationContext.d.ts +1 -1
  65. package/dist/types/ui/Renderer/index.d.ts +12 -12
  66. package/dist/types/ui/Renderer/truncated-wrapper.d.ts +2 -2
  67. package/dist/types/ui/annotations/contexts/AnnotationManagerContext.d.ts +15 -15
  68. package/dist/types/ui/annotations/contexts/AnnotationRangeContext.d.ts +15 -15
  69. package/dist/types/ui/annotations/draft/component.d.ts +5 -5
  70. package/dist/types/ui/annotations/draft/text.d.ts +1 -1
  71. package/dist/types/ui/annotations/element/index.d.ts +2 -2
  72. package/dist/types/ui/annotations/element/mark.d.ts +2 -2
  73. package/dist/types/ui/annotations/hooks/use-events.d.ts +2 -2
  74. package/dist/types/ui/annotations/hover/mounter.d.ts +6 -6
  75. package/dist/types/ui/annotations/hover/range-validator.d.ts +1 -1
  76. package/dist/types/ui/annotations/selection/mounter.d.ts +6 -6
  77. package/dist/types/ui/annotations/selection/range-validator.d.ts +2 -2
  78. package/dist/types/ui/annotations/types.d.ts +6 -6
  79. package/dist/types/ui/annotations/wrapper.d.ts +1 -1
  80. package/dist/types/ui/renderer-props.d.ts +62 -62
  81. package/dist/types-ts4.5/actions/index.d.ts +2 -2
  82. package/dist/types-ts4.5/actions/matches-utils.d.ts +2 -2
  83. package/dist/types-ts4.5/analytics/events.d.ts +18 -18
  84. package/dist/types-ts4.5/analytics/unsupported-content.d.ts +2 -2
  85. package/dist/types-ts4.5/react/index.d.ts +32 -32
  86. package/dist/types-ts4.5/react/marks/link.d.ts +1 -1
  87. package/dist/types-ts4.5/react/nodes/blockCard.d.ts +4 -4
  88. package/dist/types-ts4.5/react/nodes/bodiedExtension.d.ts +9 -9
  89. package/dist/types-ts4.5/react/nodes/codeBlock/codeBlock.d.ts +3 -3
  90. package/dist/types-ts4.5/react/nodes/date.d.ts +1 -1
  91. package/dist/types-ts4.5/react/nodes/embedCard.d.ts +6 -6
  92. package/dist/types-ts4.5/react/nodes/emoji.d.ts +2 -2
  93. package/dist/types-ts4.5/react/nodes/extension.d.ts +7 -7
  94. package/dist/types-ts4.5/react/nodes/extensionFrame.d.ts +8 -8
  95. package/dist/types-ts4.5/react/nodes/fallback.d.ts +3 -3
  96. package/dist/types-ts4.5/react/nodes/heading-anchor.d.ts +3 -3
  97. package/dist/types-ts4.5/react/nodes/heading.d.ts +4 -4
  98. package/dist/types-ts4.5/react/nodes/index.d.ts +18 -18
  99. package/dist/types-ts4.5/react/nodes/inlineCard.d.ts +3 -3
  100. package/dist/types-ts4.5/react/nodes/inlineExtension.d.ts +5 -5
  101. package/dist/types-ts4.5/react/nodes/media/index.d.ts +11 -11
  102. package/dist/types-ts4.5/react/nodes/mediaGroup.d.ts +1 -1
  103. package/dist/types-ts4.5/react/nodes/mediaInline.d.ts +3 -3
  104. package/dist/types-ts4.5/react/nodes/mediaSingle/index.d.ts +9 -9
  105. package/dist/types-ts4.5/react/nodes/mention.d.ts +3 -3
  106. package/dist/types-ts4.5/react/nodes/multiBodiedExtension/actions.d.ts +2 -2
  107. package/dist/types-ts4.5/react/nodes/multiBodiedExtension/context.d.ts +2 -2
  108. package/dist/types-ts4.5/react/nodes/multiBodiedExtension.d.ts +8 -8
  109. package/dist/types-ts4.5/react/nodes/multiBodiedExtensionOld.d.ts +8 -8
  110. package/dist/types-ts4.5/react/nodes/orderedList.d.ts +3 -3
  111. package/dist/types-ts4.5/react/nodes/panel.d.ts +4 -4
  112. package/dist/types-ts4.5/react/nodes/placeholder.d.ts +1 -1
  113. package/dist/types-ts4.5/react/nodes/status.d.ts +1 -1
  114. package/dist/types-ts4.5/react/nodes/table/sticky.d.ts +11 -11
  115. package/dist/types-ts4.5/react/nodes/table/table.d.ts +2 -2
  116. package/dist/types-ts4.5/react/nodes/table/types.d.ts +6 -6
  117. package/dist/types-ts4.5/react/nodes/table.d.ts +6 -6
  118. package/dist/types-ts4.5/react/nodes/tableCell.d.ts +5 -5
  119. package/dist/types-ts4.5/react/nodes/tableNew.d.ts +5 -5
  120. package/dist/types-ts4.5/react/nodes/tableRow.d.ts +4 -4
  121. package/dist/types-ts4.5/react/nodes/task-item-with-providers.d.ts +9 -9
  122. package/dist/types-ts4.5/react/nodes/taskItem.d.ts +3 -3
  123. package/dist/types-ts4.5/react/nodes/taskList.d.ts +1 -1
  124. package/dist/types-ts4.5/react/nodes/text-wrapper.d.ts +3 -3
  125. package/dist/types-ts4.5/react/types.d.ts +29 -29
  126. package/dist/types-ts4.5/react/utils/segment-text.d.ts +3 -3
  127. package/dist/types-ts4.5/render-document.d.ts +2 -2
  128. package/dist/types-ts4.5/steps/index.d.ts +1 -1
  129. package/dist/types-ts4.5/types/i18n.d.ts +2 -2
  130. package/dist/types-ts4.5/types/mediaOptions.d.ts +3 -3
  131. package/dist/types-ts4.5/types/smartLinksOptions.d.ts +19 -19
  132. package/dist/types-ts4.5/ui/Expand.d.ts +2 -2
  133. package/dist/types-ts4.5/ui/ExtensionRenderer.d.ts +11 -11
  134. package/dist/types-ts4.5/ui/MediaCard.d.ts +18 -18
  135. package/dist/types-ts4.5/ui/Renderer/ErrorBoundary.d.ts +4 -4
  136. package/dist/types-ts4.5/ui/Renderer/ValidationContext.d.ts +1 -1
  137. package/dist/types-ts4.5/ui/Renderer/index.d.ts +12 -12
  138. package/dist/types-ts4.5/ui/Renderer/truncated-wrapper.d.ts +2 -2
  139. package/dist/types-ts4.5/ui/annotations/contexts/AnnotationManagerContext.d.ts +15 -15
  140. package/dist/types-ts4.5/ui/annotations/contexts/AnnotationRangeContext.d.ts +15 -15
  141. package/dist/types-ts4.5/ui/annotations/draft/component.d.ts +5 -5
  142. package/dist/types-ts4.5/ui/annotations/draft/text.d.ts +1 -1
  143. package/dist/types-ts4.5/ui/annotations/element/index.d.ts +2 -2
  144. package/dist/types-ts4.5/ui/annotations/element/mark.d.ts +2 -2
  145. package/dist/types-ts4.5/ui/annotations/hooks/use-events.d.ts +2 -2
  146. package/dist/types-ts4.5/ui/annotations/hover/mounter.d.ts +6 -6
  147. package/dist/types-ts4.5/ui/annotations/hover/range-validator.d.ts +1 -1
  148. package/dist/types-ts4.5/ui/annotations/selection/mounter.d.ts +6 -6
  149. package/dist/types-ts4.5/ui/annotations/selection/range-validator.d.ts +2 -2
  150. package/dist/types-ts4.5/ui/annotations/types.d.ts +6 -6
  151. package/dist/types-ts4.5/ui/annotations/wrapper.d.ts +1 -1
  152. package/dist/types-ts4.5/ui/renderer-props.d.ts +62 -62
  153. package/package.json +5 -6
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 120.5.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`0fdcb6f2f96fd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0fdcb6f2f96fd) -
8
+ Sorted type and interface props to improve Atlaskit docs
9
+ - Updated dependencies
10
+
11
+ ## 120.5.1
12
+
13
+ ### Patch Changes
14
+
15
+ - [`ffc3ef708967c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ffc3ef708967c) -
16
+ [ux] Adds an optional disablePreviewPanel prop on a smartcard to allow consumers opt out of
17
+ opening Preview Panel by default when a smartlink is clicked.
18
+ - Updated dependencies
19
+
3
20
  ## 120.5.0
4
21
 
5
22
  ### Minor Changes
@@ -3,9 +3,9 @@
3
3
  "compilerOptions": {
4
4
  "declaration": true,
5
5
  "target": "es5",
6
- "composite": true,
7
6
  "outDir": "../../../../../confluence/tsDist/@atlaskit__renderer",
8
- "rootDir": "../"
7
+ "rootDir": "../",
8
+ "composite": true
9
9
  },
10
10
  "include": [
11
11
  "../src/**/*.ts",
@@ -198,7 +198,8 @@ var InlineCard = function InlineCard(props) {
198
198
  setIsResolvedViewRendered(true);
199
199
  }
200
200
  },
201
- onError: onError
201
+ onError: onError,
202
+ disablePreviewPanel: (0, _expValEquals.expValEquals)('platform_editor_preview_panel_linking_exp', 'isEnabled', true)
202
203
  }))), CompetitorPromptComponent)));
203
204
  };
204
205
  var _default = exports.default = (0, _SmartCardStorage.withSmartCardStorage)(InlineCard);
@@ -63,7 +63,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
63
63
  var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
64
64
  var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
65
65
  var packageName = "@atlaskit/renderer";
66
- var packageVersion = "120.4.9";
66
+ var packageVersion = "120.5.1";
67
67
  var setAsQueryContainerStyles = (0, _react2.css)({
68
68
  containerName: 'ak-renderer-wrapper',
69
69
  containerType: 'inline-size'
@@ -182,7 +182,8 @@ const InlineCard = props => {
182
182
  setIsResolvedViewRendered(true);
183
183
  }
184
184
  },
185
- onError: onError
185
+ onError: onError,
186
+ disablePreviewPanel: expValEquals('platform_editor_preview_panel_linking_exp', 'isEnabled', true)
186
187
  }))), CompetitorPromptComponent)));
187
188
  };
188
189
  export default withSmartCardStorage(InlineCard);
@@ -49,7 +49,7 @@ import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equ
49
49
  export const NORMAL_SEVERITY_THRESHOLD = 2000;
50
50
  export const DEGRADED_SEVERITY_THRESHOLD = 3000;
51
51
  const packageName = "@atlaskit/renderer";
52
- const packageVersion = "120.4.9";
52
+ const packageVersion = "120.5.1";
53
53
  const setAsQueryContainerStyles = css({
54
54
  containerName: 'ak-renderer-wrapper',
55
55
  containerType: 'inline-size'
@@ -189,7 +189,8 @@ var InlineCard = function InlineCard(props) {
189
189
  setIsResolvedViewRendered(true);
190
190
  }
191
191
  },
192
- onError: onError
192
+ onError: onError,
193
+ disablePreviewPanel: expValEquals('platform_editor_preview_panel_linking_exp', 'isEnabled', true)
193
194
  }))), CompetitorPromptComponent)));
194
195
  };
195
196
  export default withSmartCardStorage(InlineCard);
@@ -54,7 +54,7 @@ import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equ
54
54
  export var NORMAL_SEVERITY_THRESHOLD = 2000;
55
55
  export var DEGRADED_SEVERITY_THRESHOLD = 3000;
56
56
  var packageName = "@atlaskit/renderer";
57
- var packageVersion = "120.4.9";
57
+ var packageVersion = "120.5.1";
58
58
  var setAsQueryContainerStyles = css({
59
59
  containerName: 'ak-renderer-wrapper',
60
60
  containerType: 'inline-size'
@@ -6,8 +6,8 @@ import type { Step } from '@atlaskit/editor-prosemirror/transform';
6
6
  import { RemoveMarkStep, RemoveNodeMarkStep } from '@atlaskit/editor-prosemirror/transform';
7
7
  import type { AnalyticsEventPayload } from '../analytics/events';
8
8
  type ActionResult = {
9
- step: Step;
10
9
  doc: JSONDocNode;
10
+ step: Step;
11
11
  } | false;
12
12
  type Position = {
13
13
  from: number;
@@ -24,9 +24,9 @@ interface RendererActionsOptions {
24
24
  }
25
25
  export type ApplyAnnotation = (pos: Position, annotation: Annotation) => AnnotationActionResult;
26
26
  interface AnnotationsRendererActionsOptions {
27
- isValidAnnotationPosition: (pos: Position) => boolean;
28
27
  applyAnnotation: ApplyAnnotation;
29
28
  getAnnotationMarks: () => Mark[];
29
+ isValidAnnotationPosition: (pos: Position) => boolean;
30
30
  }
31
31
  interface PositionRendererActionsOptions {
32
32
  getPositionFromRange: (range: Range) => Position | false;
@@ -1,8 +1,8 @@
1
1
  import type { Node, Schema } from '@atlaskit/editor-prosemirror/model';
2
2
  export declare function getIndexMatch(doc: Node, schema: Schema, selectedText: string, startIndex: number): {
3
- numMatches: number;
3
+ blockNodePos?: number;
4
4
  matchIndex: number;
5
+ numMatches: number;
5
6
  textContent: string;
6
- blockNodePos?: number;
7
7
  };
8
8
  export declare function countMatches(searchString: string, query: string): number;
@@ -15,40 +15,40 @@ type RendererStartAEP = AEP<ACTION.STARTED, ACTION_SUBJECT.RENDERER, undefined,
15
15
  platform: PLATFORM.WEB;
16
16
  }, EVENT_TYPE.UI>;
17
17
  type RendererRenderedAEP = AEP<ACTION.RENDERED, ACTION_SUBJECT.RENDERER, undefined, {
18
- platform: PLATFORM.WEB;
19
- duration: number;
20
18
  distortedDuration: boolean;
21
- ttfb?: number;
19
+ duration: number;
22
20
  nodes: Record<string, number>;
21
+ platform: PLATFORM.WEB;
23
22
  severity?: SEVERITY;
23
+ ttfb?: number;
24
24
  }, EVENT_TYPE.OPERATIONAL>;
25
25
  export type ComponentCrashErrorAEP = OperationalAEP<ACTION.CRASHED, ACTION_SUBJECT.RENDERER, ACTION_SUBJECT_ID, {
26
- platform: PLATFORM.WEB;
27
- errorMessage?: string;
28
- errorStack?: string;
29
26
  componentStack?: string;
27
+ errorMessage?: string;
30
28
  errorRethrown?: boolean;
29
+ errorStack?: string;
30
+ platform: PLATFORM.WEB;
31
31
  }>;
32
32
  export type ComponentCaughtDomErrorAEP = OperationalAEP<ACTION.CAUGHT_DOM_ERROR, ACTION_SUBJECT.RENDERER, ACTION_SUBJECT_ID, {
33
33
  errorMessage: string;
34
34
  platform: PLATFORM.WEB;
35
35
  }>;
36
36
  type InvalidProsemirrorDocumentErrorAEP = AEP<ACTION.INVALID_PROSEMIRROR_DOCUMENT, ACTION_SUBJECT.RENDERER, ACTION_SUBJECT_ID, {
37
- platform: PLATFORM.WEB;
38
37
  errorStack?: string;
38
+ platform: PLATFORM.WEB;
39
39
  }, EVENT_TYPE.OPERATIONAL>;
40
40
  type RendererUnsupportedContentLevelsTrackingSucceeded = AEP<ACTION.UNSUPPORTED_CONTENT_LEVELS_TRACKING_SUCCEEDED, ACTION_SUBJECT.RENDERER, undefined, {
41
41
  appearance?: string;
42
42
  platform: PLATFORM.WEB;
43
- unsupportedContentLevelSeverity: UNSUPPORTED_CONTENT_LEVEL_SEVERITY;
43
+ supportedNodesCount: number;
44
44
  unsupportedContentLevelPercentage: number;
45
+ unsupportedContentLevelSeverity: UNSUPPORTED_CONTENT_LEVEL_SEVERITY;
45
46
  unsupportedNodesCount: number;
46
- supportedNodesCount: number;
47
47
  unsupportedNodeTypeCount: Record<string, number>;
48
48
  }, EVENT_TYPE.OPERATIONAL>;
49
49
  type RendererUnsupportedContentLevelsTrackingErrored = AEP<ACTION.UNSUPPORTED_CONTENT_LEVELS_TRACKING_ERRORED, ACTION_SUBJECT.RENDERER, undefined, {
50
- platform: PLATFORM.WEB;
51
50
  error: string;
51
+ platform: PLATFORM.WEB;
52
52
  }, EVENT_TYPE.OPERATIONAL>;
53
53
  type RendererSelectAllCaughtAEP = AEP<ACTION.SELECT_ALL_CAUGHT, ACTION_SUBJECT.RENDERER, undefined, {
54
54
  platform: PLATFORM.WEB;
@@ -59,8 +59,8 @@ type RendererSelectAllEscapedAEP = AEP<ACTION.SELECT_ALL_ESCAPED, ACTION_SUBJECT
59
59
  type UIAEP<Action, ActionSubject, ActionSubjectID, Attributes> = AEP<Action, ActionSubject, ActionSubjectID, Attributes, EVENT_TYPE.UI>;
60
60
  type ButtonAEP<ActionSubjectID, Attributes> = UIAEP<ACTION.CLICKED, ACTION_SUBJECT.BUTTON, ActionSubjectID, Attributes>;
61
61
  type AnchorLinkAEP = UIAEP<ACTION.VIEWED, ACTION_SUBJECT.ANCHOR_LINK, undefined, {
62
- platform: PLATFORM.WEB;
63
62
  mode: MODE.RENDERER;
63
+ platform: PLATFORM.WEB;
64
64
  }>;
65
65
  type CodeBlockCopyAEP = ButtonAEP<ACTION_SUBJECT_ID.CODEBLOCK_COPY, undefined>;
66
66
  type CodeBlockWrapAEP = ButtonAEP<ACTION_SUBJECT_ID.CODEBLOCK_WRAP, {
@@ -68,27 +68,27 @@ type CodeBlockWrapAEP = ButtonAEP<ACTION_SUBJECT_ID.CODEBLOCK_WRAP, {
68
68
  }>;
69
69
  type HeadingAnchorLinkButtonAEP = ButtonAEP<ACTION_SUBJECT_ID.HEADING_ANCHOR_LINK, undefined>;
70
70
  type TableSortColumnNotAllowedAEP = AEP<ACTION.SORT_COLUMN_NOT_ALLOWED, ACTION_SUBJECT.TABLE, undefined, {
71
- platform: PLATFORM.WEB;
72
71
  mode: MODE.RENDERER;
72
+ platform: PLATFORM.WEB;
73
73
  }, EVENT_TYPE.TRACK>;
74
74
  type TableSortColumnAEP = AEP<ACTION.SORT_COLUMN, ACTION_SUBJECT.TABLE, undefined, {
75
- platform: PLATFORM.WEB;
75
+ columnIndex: number;
76
76
  mode: MODE.RENDERER;
77
+ platform: PLATFORM.WEB;
77
78
  sortOrder: SortOrder;
78
- columnIndex: number;
79
79
  }, EVENT_TYPE.TRACK>;
80
80
  type VisitLinkAEP = AEP<ACTION.VISITED, ACTION_SUBJECT.LINK, undefined, {
81
- platform: PLATFORM.WEB;
82
81
  mode: MODE.RENDERER;
82
+ platform: PLATFORM.WEB;
83
83
  }, EVENT_TYPE.TRACK>;
84
84
  type VisitMediaLinkAEP = AEP<ACTION.VISITED, ACTION_SUBJECT.MEDIA, ACTION_SUBJECT_ID.LINK, {
85
- platform: PLATFORM.WEB;
86
85
  mode: MODE.RENDERER;
86
+ platform: PLATFORM.WEB;
87
87
  }, EVENT_TYPE.TRACK>;
88
88
  type ExpandAEP = AEP<ACTION.TOGGLE_EXPAND, ACTION_SUBJECT.EXPAND | ACTION_SUBJECT.NESTED_EXPAND, undefined, {
89
- platform: PLATFORM.WEB;
90
- mode: MODE.RENDERER;
91
89
  expanded: boolean;
90
+ mode: MODE.RENDERER;
91
+ platform: PLATFORM.WEB;
92
92
  }, EVENT_TYPE.TRACK>;
93
93
  type AnnotationActionType = ACTION.INSERTED | ACTION.CLOSED | ACTION.EDITED | ACTION.DELETED | ACTION.OPENED | ACTION.RESOLVED | ACTION.VIEWED | ACTION.CREATE_NOT_ALLOWED;
94
94
  type AnnotationAEPAttributes = AnnotationDraftAEPAttributes | AnnotationResolvedAEPAttributes;
@@ -2,9 +2,9 @@ import type { UnsupportedContentLevelsTracking } from '@atlaskit/editor-common/u
2
2
  import type { AnalyticsEventPayload } from './events';
3
3
  type DispatchAnalyticsEvent = (event: AnalyticsEventPayload) => void;
4
4
  type DocumentData = {
5
- rendererId: string;
6
- doc: any;
7
5
  appearance?: string;
6
+ doc: any;
7
+ rendererId: string;
8
8
  };
9
9
  export declare const trackUnsupportedContentLevels: (item: DocumentData, trackingOptions: UnsupportedContentLevelsTracking, dispatchAnalyticsEvent: DispatchAnalyticsEvent) => void;
10
10
  export {};
@@ -12,47 +12,47 @@ import type { MediaOptions } from '../types/mediaOptions';
12
12
  import type { SmartLinksOptions } from '../types/smartLinksOptions';
13
13
  import type { EmojiResourceConfig } from '@atlaskit/emoji/resource';
14
14
  export interface ReactSerializerInit {
15
+ allowAltTextOnImages?: boolean;
16
+ allowAnnotations?: boolean;
17
+ allowColumnSorting?: boolean;
18
+ allowCopyToClipboard?: boolean;
19
+ allowCustomPanels?: boolean;
20
+ allowHeadingAnchorLinks?: HeadingAnchorLinksProps;
21
+ allowMediaLinking?: boolean;
22
+ allowPlaceholderText?: boolean;
23
+ allowSelectAllTrap?: boolean;
24
+ allowTableAlignment?: boolean;
25
+ allowTableResizing?: boolean;
26
+ allowWindowedCodeBlock?: boolean;
27
+ allowWrapCodeBlock?: boolean;
28
+ appearance?: RendererAppearance;
29
+ disableActions?: boolean;
30
+ disableHeadingIDs?: boolean;
31
+ disableTableOverflowShadow?: boolean;
32
+ emojiResourceConfig?: EmojiResourceConfig;
33
+ eventHandlers?: EventHandlers;
34
+ extensionHandlers?: ExtensionHandlers;
35
+ extensionViewportSizes?: ExtensionViewportSize[];
36
+ fireAnalyticsEvent?: (event: AnalyticsEventPayload) => void;
37
+ getExtensionHeight?: GetPMNodeHeight;
38
+ isInsideOfInlineExtension?: boolean;
39
+ isPresentational?: boolean;
40
+ media?: MediaOptions;
41
+ nodeComponents?: NodeComponentsProps;
42
+ objectContext?: RendererContext;
43
+ portal?: HTMLElement;
44
+ providers?: ProviderFactory;
45
+ shouldOpenMediaViewer?: boolean;
46
+ smartLinks?: SmartLinksOptions;
15
47
  /**
16
48
  * Used for to set positions on nodes for annotations.
17
49
  *
18
50
  * When not provided defaults to 1.
19
51
  */
20
52
  startPos?: number;
21
- providers?: ProviderFactory;
22
- eventHandlers?: EventHandlers;
23
- extensionHandlers?: ExtensionHandlers;
24
- portal?: HTMLElement;
25
- objectContext?: RendererContext;
26
- appearance?: RendererAppearance;
27
- disableHeadingIDs?: boolean;
28
- disableActions?: boolean;
29
- allowHeadingAnchorLinks?: HeadingAnchorLinksProps;
30
- allowColumnSorting?: boolean;
31
- fireAnalyticsEvent?: (event: AnalyticsEventPayload) => void;
32
- shouldOpenMediaViewer?: boolean;
33
- allowAltTextOnImages?: boolean;
34
53
  stickyHeaders?: StickyHeaderConfig;
35
- allowMediaLinking?: boolean;
36
54
  surroundTextNodesWithTextWrapper?: boolean;
37
- media?: MediaOptions;
38
- emojiResourceConfig?: EmojiResourceConfig;
39
- smartLinks?: SmartLinksOptions;
40
- extensionViewportSizes?: ExtensionViewportSize[];
41
- getExtensionHeight?: GetPMNodeHeight;
42
- allowCopyToClipboard?: boolean;
43
- allowWrapCodeBlock?: boolean;
44
- allowPlaceholderText?: boolean;
45
- allowCustomPanels?: boolean;
46
- allowAnnotations?: boolean;
47
- allowSelectAllTrap?: boolean;
48
- nodeComponents?: NodeComponentsProps;
49
- allowWindowedCodeBlock?: boolean;
50
- isInsideOfInlineExtension?: boolean;
51
55
  textHighlighter?: TextHighlighter;
52
- allowTableAlignment?: boolean;
53
- allowTableResizing?: boolean;
54
- isPresentational?: boolean;
55
- disableTableOverflowShadow?: boolean;
56
56
  }
57
57
  interface ParentInfo {
58
58
  parentIsIncompleteTask: boolean;
@@ -2,8 +2,8 @@ import { jsx } from '@emotion/react';
2
2
  import type { LinkAttributes } from '@atlaskit/adf-schema';
3
3
  import type { MarkProps } from '../types';
4
4
  interface LinkProps extends LinkAttributes {
5
- target?: string;
6
5
  isMediaLink?: boolean;
6
+ target?: string;
7
7
  }
8
8
  export default function Link(props: MarkProps<LinkProps>): jsx.JSX.Element;
9
9
  export {};
@@ -8,13 +8,13 @@ import type { RendererAppearance } from '../../ui/Renderer/types';
8
8
  import type { SmartLinksOptions } from '../../types/smartLinksOptions';
9
9
  import type { DatasourceAttributeProperties } from '@atlaskit/adf-schema/schema';
10
10
  export default function BlockCard(props: {
11
- url?: string;
12
11
  data?: object;
13
- eventHandlers?: EventHandlers;
14
12
  datasource?: DatasourceAttributeProperties;
13
+ eventHandlers?: EventHandlers;
14
+ isNodeNested?: boolean;
15
+ layout?: string;
15
16
  portal?: HTMLElement;
16
17
  rendererAppearance?: RendererAppearance;
17
18
  smartLinks?: SmartLinksOptions;
18
- layout?: string;
19
- isNodeNested?: boolean;
19
+ url?: string;
20
20
  }): jsx.JSX.Element;
@@ -6,21 +6,21 @@ import type { ExtensionLayout } from '@atlaskit/adf-schema';
6
6
  import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
7
7
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
8
8
  interface Props {
9
- serializer: Serializer<any>;
9
+ content?: any;
10
10
  extensionHandlers?: ExtensionHandlers;
11
- rendererContext: RendererContext;
12
- providers: ProviderFactory;
13
- extensionType: string;
14
11
  extensionKey: string;
15
- path?: PMNode[];
16
- originalContent?: any;
17
- parameters?: any;
18
- content?: any;
12
+ extensionType: string;
13
+ extensionViewportSizes?: ExtensionViewportSize[];
19
14
  layout?: ExtensionLayout;
20
15
  localId?: string;
21
16
  marks?: PMMark[];
17
+ originalContent?: any;
18
+ parameters?: any;
19
+ path?: PMNode[];
20
+ providers: ProviderFactory;
21
+ rendererContext: RendererContext;
22
+ serializer: Serializer<any>;
22
23
  startPos: number;
23
- extensionViewportSizes?: ExtensionViewportSize[];
24
24
  }
25
25
  declare const BodiedExtension: (props: React.PropsWithChildren<Props>) => React.JSX.Element;
26
26
  export default BodiedExtension;
@@ -1,12 +1,12 @@
1
1
  import type { WrappedComponentProps } from 'react-intl-next';
2
2
  import type { SupportedLanguages } from '@atlaskit/code';
3
3
  export interface Props {
4
- text: string;
5
- language: SupportedLanguages;
6
4
  allowCopyToClipboard?: boolean;
7
5
  allowWrapCodeBlock?: boolean;
8
- codeBidiWarningTooltipEnabled: boolean;
9
6
  className?: string;
7
+ codeBidiWarningTooltipEnabled: boolean;
8
+ language: SupportedLanguages;
9
+ text: string;
10
10
  }
11
11
  declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
12
12
  WrappedComponent: import("react").ComponentType<Props & WrappedComponentProps>;
@@ -2,8 +2,8 @@ import React from 'react';
2
2
  import { type WrappedComponentProps } from 'react-intl-next';
3
3
  import { type MarkDataAttributes } from '../../ui/annotations/element/useInlineAnnotationProps';
4
4
  export interface Props extends MarkDataAttributes {
5
- timestamp: string;
6
5
  parentIsIncompleteTask?: boolean;
6
+ timestamp: string;
7
7
  }
8
8
  export declare const DateComponent: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
9
9
  WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
@@ -8,18 +8,18 @@ import type { EventHandlers } from '@atlaskit/editor-common/ui';
8
8
  import type { RichMediaLayout } from '@atlaskit/adf-schema';
9
9
  import type { RendererAppearance } from '../../ui/Renderer/types';
10
10
  type EmbedCardInternalProps = {
11
- url?: string;
12
11
  data?: object;
13
12
  eventHandlers?: EventHandlers;
14
- portal?: HTMLElement;
13
+ isInsideOfBlockNode?: boolean;
14
+ isInsideOfInlineExtension?: boolean;
15
+ layout: RichMediaLayout;
15
16
  originalHeight?: number;
16
17
  originalWidth?: number;
17
- width?: number;
18
- layout: RichMediaLayout;
18
+ portal?: HTMLElement;
19
19
  rendererAppearance?: RendererAppearance;
20
- isInsideOfBlockNode?: boolean;
21
20
  smartLinks?: SmartLinksOptions;
22
- isInsideOfInlineExtension?: boolean;
21
+ url?: string;
22
+ width?: number;
23
23
  };
24
24
  export declare const EmbedOrBlockCardInternal: ({ url, data, eventHandlers, portal, originalHeight, originalWidth, width: embedWidth, layout, rendererAppearance, isInsideOfBlockNode, smartLinks, isInsideOfInlineExtension, }: EmbedCardInternalProps) => jsx.JSX.Element;
25
25
  declare const EmbedCardWithCondition: import("react").FC<EmbedCardInternalProps>;
@@ -10,10 +10,10 @@ import { type MarkDataAttributes } from '../../ui/annotations/element/useInlineA
10
10
  import { type EmojiAttributes } from '@atlaskit/adf-schema';
11
11
  export interface EmojiProps extends EmojiId, EmojiAttributes, MarkDataAttributes {
12
12
  allowTextFallback?: boolean;
13
- providers?: ProviderFactory;
14
13
  fitToHeight?: number;
15
- showTooltip?: boolean;
14
+ providers?: ProviderFactory;
16
15
  resourceConfig?: EmojiResourceConfig;
16
+ showTooltip?: boolean;
17
17
  }
18
18
  declare function EmojiItem(props: EmojiProps): jsx.JSX.Element;
19
19
  declare namespace EmojiItem {
@@ -7,18 +7,18 @@ import { type ProviderFactory } from '@atlaskit/editor-common/provider-factory';
7
7
  import type { OverflowShadowProps } from '@atlaskit/editor-common/ui';
8
8
  interface Props {
9
9
  extensionHandlers?: ExtensionHandlers;
10
- providers: ProviderFactory;
11
- rendererContext: RendererContext;
12
- extensionType: string;
13
10
  extensionKey: string;
14
- path?: PMNode[];
15
- text?: string;
16
- parameters?: any;
11
+ extensionType: string;
12
+ extensionViewportSizes?: ExtensionViewportSize[];
17
13
  layout?: ExtensionLayout;
18
14
  localId?: string;
19
15
  marks?: PMMark[];
20
- extensionViewportSizes?: ExtensionViewportSize[];
21
16
  nodeHeight?: string;
17
+ parameters?: any;
18
+ path?: PMNode[];
19
+ providers: ProviderFactory;
20
+ rendererContext: RendererContext;
21
+ text?: string;
22
22
  }
23
23
  type AllOrNone<T> = T | {
24
24
  [K in keyof T]?: never;
@@ -10,18 +10,18 @@ import type { ExtensionLayout } from '@atlaskit/adf-schema';
10
10
  import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
11
11
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
12
12
  type Props = React.PropsWithChildren<{
13
- serializer: Serializer<any>;
13
+ content?: any;
14
14
  extensionHandlers?: ExtensionHandlers;
15
- rendererContext: RendererContext;
16
- providers: ProviderFactory;
17
- extensionType: string;
18
15
  extensionKey: string;
19
- path?: PMNode[];
20
- originalContent?: any;
21
- parameters?: any;
22
- content?: any;
16
+ extensionType: string;
23
17
  layout?: ExtensionLayout;
24
18
  localId?: string;
19
+ originalContent?: any;
20
+ parameters?: any;
21
+ path?: PMNode[];
22
+ providers: ProviderFactory;
23
+ rendererContext: RendererContext;
24
+ serializer: Serializer<any>;
25
25
  }>;
26
26
  declare const ExtensionFrame: (props: Props) => jsx.JSX.Element;
27
27
  export default ExtensionFrame;
@@ -3,11 +3,11 @@ type CardErrorBoundaryProps = {
3
3
  unsupportedComponent: React.ComponentType<React.PropsWithChildren<unknown>>;
4
4
  };
5
5
  export declare class CardErrorBoundary extends React.PureComponent<{
6
- url?: string;
7
- onClick?: (e: React.MouseEvent<HTMLElement>, url?: string) => void;
8
- isDatasource?: boolean;
9
6
  children?: React.ReactNode;
10
7
  datasourceId?: string;
8
+ isDatasource?: boolean;
9
+ onClick?: (e: React.MouseEvent<HTMLElement>, url?: string) => void;
10
+ url?: string;
11
11
  } & CardErrorBoundaryProps> {
12
12
  state: {
13
13
  isError: boolean;
@@ -2,11 +2,11 @@ import React from 'react';
2
2
  import type { WrappedComponentProps } from 'react-intl-next';
3
3
  export declare const HeadingAnchorWrapperClassName = "heading-anchor-wrapper";
4
4
  type Props = {
5
- onCopyText: () => Promise<void>;
6
5
  enableNestedHeaderLinks?: boolean;
7
- level: number;
8
- hideFromScreenReader?: boolean;
9
6
  headingId?: string;
7
+ hideFromScreenReader?: boolean;
8
+ level: number;
9
+ onCopyText: () => Promise<void>;
10
10
  };
11
11
  type HeadingAnchorProps = Props & React.PropsWithChildren<unknown> & WrappedComponentProps;
12
12
  declare const _default: React.FC<import("react-intl-next").WithIntlProps<HeadingAnchorProps>> & {
@@ -4,11 +4,11 @@ import { type NodeProps } from '../types';
4
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
- level: HeadingLevels;
8
- headingId?: string;
9
- showAnchorLink?: boolean;
10
7
  allowHeadingAnchorLinks?: HeadingAnchorLinksProps;
11
- marks?: PMNode['marks'];
8
+ headingId?: string;
12
9
  invisible?: boolean;
10
+ level: HeadingLevels;
11
+ marks?: PMNode['marks'];
12
+ showAnchorLink?: boolean;
13
13
  }>): React.JSX.Element;
14
14
  export default Heading;
@@ -35,41 +35,41 @@ declare const Status: React.ComponentType<import("./status").Props> & Loadable.L
35
35
  declare const Emoji: React.ComponentType<import("./emoji").EmojiProps> & Loadable.LoadableComponent;
36
36
  declare const Panel: React.ComponentType<import("./panel").Props> & Loadable.LoadableComponent;
37
37
  declare const EmbedCard: React.ComponentType<{
38
- url?: string;
39
38
  data?: object;
40
39
  eventHandlers?: import("@atlaskit/editor-common/ui").EventHandlers;
41
- portal?: HTMLElement;
40
+ isInsideOfBlockNode?: boolean;
41
+ isInsideOfInlineExtension?: boolean;
42
+ layout: import("@atlaskit/adf-schema").RichMediaLayout;
42
43
  originalHeight?: number;
43
44
  originalWidth?: number;
44
- width?: number;
45
- layout: import("@atlaskit/adf-schema").RichMediaLayout;
45
+ portal?: HTMLElement;
46
46
  rendererAppearance?: import("../../ui/Renderer/types").RendererAppearance;
47
- isInsideOfBlockNode?: boolean;
48
47
  smartLinks?: import("../../types/smartLinksOptions").SmartLinksOptions;
49
- isInsideOfInlineExtension?: boolean;
48
+ url?: string;
49
+ width?: number;
50
50
  }> & Loadable.LoadableComponent;
51
51
  declare const InlineCard: React.ComponentType<import("@atlaskit/editor-common/utils").Diff<import("./inlineCard").InlineCardProps & import("../../ui/SmartCardStorage").WithSmartCardStorageProps, import("../../ui/SmartCardStorage").WithSmartCardStorageProps>> & Loadable.LoadableComponent;
52
52
  declare const BlockCard: React.ComponentType<{
53
- url?: string;
54
53
  data?: object;
55
- eventHandlers?: import("@atlaskit/editor-common/ui").EventHandlers;
56
54
  datasource?: import("@atlaskit/adf-schema").DatasourceAttributeProperties;
55
+ eventHandlers?: import("@atlaskit/editor-common/ui").EventHandlers;
56
+ isNodeNested?: boolean;
57
+ layout?: string;
57
58
  portal?: HTMLElement;
58
59
  rendererAppearance?: import("../../ui/Renderer/types").RendererAppearance;
59
60
  smartLinks?: import("../../types/smartLinksOptions").SmartLinksOptions;
60
- layout?: string;
61
- isNodeNested?: boolean;
61
+ url?: string;
62
62
  }> & Loadable.LoadableComponent;
63
63
  declare const Media: React.ComponentType<React.PropsWithChildren<import("./media").MediaProps>> & Loadable.LoadableComponent;
64
64
  declare const MediaGroup: React.ComponentType<import("./mediaGroup").MediaGroupProps> & Loadable.LoadableComponent;
65
65
  declare const MediaInline: React.ComponentType<import("react-intl-next").WithIntlProps<{
66
- id: string;
67
- providers: import("@atlaskit/editor-common/provider-factory").ProviderFactory;
68
66
  collection?: string;
69
67
  eventHandlers?: import("@atlaskit/editor-common/ui").EventHandlers;
70
- rendererAppearance?: import("../../ui/Renderer/types").RendererAppearance;
71
68
  featureFlags?: import("@atlaskit/media-common").MediaFeatureFlags;
69
+ id: string;
72
70
  marks?: Array<Mark>;
71
+ providers: import("@atlaskit/editor-common/provider-factory").ProviderFactory;
72
+ rendererAppearance?: import("../../ui/Renderer/types").RendererAppearance;
73
73
  ssr?: import("../..").MediaSSR;
74
74
  } & import("react-intl-next").WrappedComponentProps & import("@atlaskit/editor-common/media-inline").MediaInlineAttrs>> & Loadable.LoadableComponent;
75
75
  declare const MediaSingle: React.ComponentType<import("react-intl-next").WithIntlProps<import("./mediaSingle").Props & import("react-intl-next").WrappedComponentProps>> & Loadable.LoadableComponent;
@@ -84,19 +84,19 @@ interface ToReactFlags {
84
84
  }
85
85
  export declare const toReact: (node: Node, flags?: ToReactFlags, nodeComponents?: NodeComponentsProps) => React.ComponentType<React.PropsWithChildren<any>>;
86
86
  export interface TextWrapper {
87
+ content: Node[];
88
+ nodeSize: number;
87
89
  type: {
88
90
  name: 'textWrapper';
89
91
  };
90
- content: Node[];
91
- nodeSize: number;
92
92
  }
93
93
  interface NodeSimple {
94
+ attrs?: any;
95
+ nodeSize: number;
96
+ text?: string;
94
97
  type: {
95
98
  name: string;
96
99
  };
97
- attrs?: any;
98
- text?: string;
99
- nodeSize: number;
100
100
  }
101
101
  export declare const mergeTextNodes: (nodes: (Node | NodeSimple)[]) => (Node | TextWrapper | NodeSimple)[];
102
102
  export declare const isText: (type: string) => type is "text";
@@ -5,13 +5,13 @@ import type { SmartLinksOptions } from '../../types/smartLinksOptions';
5
5
  import { type MarkDataAttributes } from '../../ui/annotations/element/useInlineAnnotationProps';
6
6
  import type { RendererAppearance } from '../../ui/Renderer/types';
7
7
  export interface InlineCardProps extends MarkDataAttributes {
8
- url?: string;
9
8
  data?: object;
10
9
  eventHandlers?: EventHandlers;
11
- portal?: HTMLElement;
12
- smartLinks?: SmartLinksOptions;
13
10
  marks?: Mark[];
11
+ portal?: HTMLElement;
14
12
  rendererAppearance?: RendererAppearance;
13
+ smartLinks?: SmartLinksOptions;
14
+ url?: string;
15
15
  }
16
16
  declare const _default: {
17
17
  new (props: import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps> | Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>): {