@atlaskit/renderer 84.0.0 → 86.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (200) hide show
  1. package/CHANGELOG.md +100 -0
  2. package/dist/cjs/actions/index.js +3 -3
  3. package/dist/cjs/analytics/enums.js +2 -0
  4. package/dist/cjs/analytics/unsupported-content.js +3 -3
  5. package/dist/cjs/messages.js +47 -1
  6. package/dist/cjs/react/hooks/use-observed-width.js +94 -0
  7. package/dist/cjs/react/index.js +15 -9
  8. package/dist/cjs/react/marks/annotation.js +2 -2
  9. package/dist/cjs/react/marks/breakout.js +5 -3
  10. package/dist/cjs/react/marks/textColor.js +15 -4
  11. package/dist/cjs/react/nodes/blockCard.js +2 -2
  12. package/dist/cjs/react/nodes/caption.js +2 -2
  13. package/dist/cjs/react/nodes/copy-text-provider.js +2 -1
  14. package/dist/cjs/react/nodes/date.js +6 -4
  15. package/dist/cjs/react/nodes/embedCard.js +5 -5
  16. package/dist/cjs/react/nodes/emoji.js +2 -2
  17. package/dist/cjs/react/nodes/extension.js +6 -4
  18. package/dist/cjs/react/nodes/heading-anchor.js +11 -3
  19. package/dist/cjs/react/nodes/index.js +80 -55
  20. package/dist/cjs/react/nodes/inlineCard.js +14 -3
  21. package/dist/cjs/react/nodes/layoutColumn.js +2 -2
  22. package/dist/cjs/react/nodes/media.js +5 -3
  23. package/dist/cjs/react/nodes/mediaGroup.js +2 -2
  24. package/dist/cjs/react/nodes/mediaInline.js +2 -2
  25. package/dist/cjs/react/nodes/mediaSingle/index.js +146 -152
  26. package/dist/cjs/react/nodes/mediaSingle/styles.js +2 -2
  27. package/dist/cjs/react/nodes/mention.js +2 -4
  28. package/dist/cjs/react/nodes/panel.js +18 -20
  29. package/dist/cjs/react/nodes/status.js +2 -1
  30. package/dist/cjs/react/nodes/table/colgroup.js +2 -2
  31. package/dist/cjs/react/nodes/table/sticky.js +4 -4
  32. package/dist/cjs/react/nodes/table.js +19 -13
  33. package/dist/cjs/react/nodes/tableCell.js +34 -21
  34. package/dist/cjs/react/nodes/tableRow.js +6 -4
  35. package/dist/cjs/react/nodes/task-item-with-providers.js +6 -2
  36. package/dist/cjs/react/nodes/taskItem.js +4 -3
  37. package/dist/cjs/render-document.js +40 -4
  38. package/dist/cjs/text/nodes/date.js +3 -3
  39. package/dist/cjs/types/smartLinksOptions.js +5 -0
  40. package/dist/cjs/ui/Expand.js +9 -9
  41. package/dist/cjs/ui/ExtensionRenderer.js +8 -4
  42. package/dist/cjs/ui/MediaCard.js +4 -4
  43. package/dist/cjs/ui/Renderer/breakout-ssr.js +50 -7
  44. package/dist/cjs/ui/Renderer/index.js +23 -18
  45. package/dist/cjs/ui/Renderer/style.js +8 -6
  46. package/dist/cjs/ui/SortingIcon.js +30 -17
  47. package/dist/cjs/ui/annotations/draft/component.js +2 -2
  48. package/dist/cjs/ui/annotations/element/index.js +2 -2
  49. package/dist/cjs/ui/annotations/element/mark.js +4 -4
  50. package/dist/cjs/ui/annotations/hooks/use-events.js +11 -11
  51. package/dist/cjs/ui/annotations/hooks/use-load-annotations.js +4 -4
  52. package/dist/cjs/utils.js +4 -3
  53. package/dist/cjs/version.json +1 -1
  54. package/dist/es2019/actions/index.js +1 -1
  55. package/dist/es2019/analytics/enums.js +2 -0
  56. package/dist/es2019/analytics/unsupported-content.js +1 -1
  57. package/dist/es2019/messages.js +44 -0
  58. package/dist/es2019/react/hooks/use-observed-width.js +59 -0
  59. package/dist/es2019/react/index.js +4 -1
  60. package/dist/es2019/react/marks/breakout.js +2 -1
  61. package/dist/es2019/react/marks/textColor.js +7 -4
  62. package/dist/es2019/react/nodes/blockCard.js +1 -1
  63. package/dist/es2019/react/nodes/caption.js +1 -1
  64. package/dist/es2019/react/nodes/copy-text-provider.js +2 -1
  65. package/dist/es2019/react/nodes/date.js +2 -1
  66. package/dist/es2019/react/nodes/embedCard.js +1 -1
  67. package/dist/es2019/react/nodes/emoji.js +1 -1
  68. package/dist/es2019/react/nodes/extension.js +2 -1
  69. package/dist/es2019/react/nodes/heading-anchor.js +11 -2
  70. package/dist/es2019/react/nodes/index.js +32 -7
  71. package/dist/es2019/react/nodes/inlineCard.js +12 -2
  72. package/dist/es2019/react/nodes/layoutColumn.js +1 -1
  73. package/dist/es2019/react/nodes/media.js +2 -1
  74. package/dist/es2019/react/nodes/mediaInline.js +1 -1
  75. package/dist/es2019/react/nodes/mediaSingle/index.js +132 -112
  76. package/dist/es2019/react/nodes/mediaSingle/styles.js +1 -1
  77. package/dist/es2019/react/nodes/mention.js +1 -3
  78. package/dist/es2019/react/nodes/panel.js +14 -12
  79. package/dist/es2019/react/nodes/status.js +2 -1
  80. package/dist/es2019/react/nodes/table/colgroup.js +1 -1
  81. package/dist/es2019/react/nodes/table/sticky.js +1 -1
  82. package/dist/es2019/react/nodes/table.js +4 -1
  83. package/dist/es2019/react/nodes/tableCell.js +22 -10
  84. package/dist/es2019/react/nodes/tableRow.js +2 -1
  85. package/dist/es2019/react/nodes/task-item-with-providers.js +3 -1
  86. package/dist/es2019/react/nodes/taskItem.js +2 -1
  87. package/dist/es2019/render-document.js +37 -3
  88. package/dist/es2019/text/nodes/date.js +1 -1
  89. package/dist/es2019/types/smartLinksOptions.js +1 -0
  90. package/dist/es2019/ui/Expand.js +1 -1
  91. package/dist/es2019/ui/ExtensionRenderer.js +3 -1
  92. package/dist/es2019/ui/MediaCard.js +1 -1
  93. package/dist/es2019/ui/Renderer/breakout-ssr.js +46 -5
  94. package/dist/es2019/ui/Renderer/index.js +4 -1
  95. package/dist/es2019/ui/Renderer/style.js +3 -1
  96. package/dist/es2019/ui/SortingIcon.js +23 -11
  97. package/dist/es2019/ui/annotations/draft/component.js +1 -1
  98. package/dist/es2019/ui/annotations/element/index.js +1 -1
  99. package/dist/es2019/ui/annotations/element/mark.js +1 -1
  100. package/dist/es2019/ui/annotations/hooks/use-events.js +1 -1
  101. package/dist/es2019/ui/annotations/hooks/use-load-annotations.js +1 -1
  102. package/dist/es2019/version.json +1 -1
  103. package/dist/esm/actions/index.js +1 -1
  104. package/dist/esm/analytics/enums.js +2 -0
  105. package/dist/esm/analytics/unsupported-content.js +1 -1
  106. package/dist/esm/messages.js +44 -0
  107. package/dist/esm/react/hooks/use-observed-width.js +80 -0
  108. package/dist/esm/react/index.js +8 -4
  109. package/dist/esm/react/marks/annotation.js +2 -2
  110. package/dist/esm/react/marks/breakout.js +2 -1
  111. package/dist/esm/react/marks/textColor.js +8 -4
  112. package/dist/esm/react/nodes/blockCard.js +1 -1
  113. package/dist/esm/react/nodes/caption.js +1 -1
  114. package/dist/esm/react/nodes/copy-text-provider.js +2 -1
  115. package/dist/esm/react/nodes/date.js +2 -1
  116. package/dist/esm/react/nodes/embedCard.js +1 -1
  117. package/dist/esm/react/nodes/emoji.js +1 -1
  118. package/dist/esm/react/nodes/extension.js +2 -1
  119. package/dist/esm/react/nodes/heading-anchor.js +12 -3
  120. package/dist/esm/react/nodes/index.js +62 -7
  121. package/dist/esm/react/nodes/inlineCard.js +12 -2
  122. package/dist/esm/react/nodes/layoutColumn.js +1 -1
  123. package/dist/esm/react/nodes/media.js +2 -1
  124. package/dist/esm/react/nodes/mediaGroup.js +2 -2
  125. package/dist/esm/react/nodes/mediaInline.js +1 -1
  126. package/dist/esm/react/nodes/mediaSingle/index.js +140 -141
  127. package/dist/esm/react/nodes/mediaSingle/styles.js +1 -1
  128. package/dist/esm/react/nodes/mention.js +1 -3
  129. package/dist/esm/react/nodes/panel.js +14 -12
  130. package/dist/esm/react/nodes/status.js +2 -1
  131. package/dist/esm/react/nodes/table/colgroup.js +1 -1
  132. package/dist/esm/react/nodes/table/sticky.js +1 -1
  133. package/dist/esm/react/nodes/table.js +4 -1
  134. package/dist/esm/react/nodes/tableCell.js +19 -9
  135. package/dist/esm/react/nodes/tableRow.js +2 -1
  136. package/dist/esm/react/nodes/task-item-with-providers.js +5 -2
  137. package/dist/esm/react/nodes/taskItem.js +2 -1
  138. package/dist/esm/render-document.js +36 -3
  139. package/dist/esm/text/nodes/date.js +1 -1
  140. package/dist/esm/types/smartLinksOptions.js +1 -0
  141. package/dist/esm/ui/Expand.js +1 -1
  142. package/dist/esm/ui/ExtensionRenderer.js +3 -1
  143. package/dist/esm/ui/MediaCard.js +3 -3
  144. package/dist/esm/ui/Renderer/breakout-ssr.js +48 -5
  145. package/dist/esm/ui/Renderer/index.js +6 -3
  146. package/dist/esm/ui/Renderer/style.js +4 -3
  147. package/dist/esm/ui/SortingIcon.js +21 -11
  148. package/dist/esm/ui/annotations/draft/component.js +1 -1
  149. package/dist/esm/ui/annotations/element/index.js +1 -1
  150. package/dist/esm/ui/annotations/element/mark.js +3 -3
  151. package/dist/esm/ui/annotations/hooks/use-events.js +3 -3
  152. package/dist/esm/ui/annotations/hooks/use-load-annotations.js +3 -3
  153. package/dist/esm/utils.js +3 -2
  154. package/dist/esm/version.json +1 -1
  155. package/dist/types/actions/index.d.ts +1 -1
  156. package/dist/types/analytics/enums.d.ts +3 -1
  157. package/dist/types/analytics/events.d.ts +9 -2
  158. package/dist/types/analytics/unsupported-content.d.ts +1 -1
  159. package/dist/types/messages.d.ts +44 -0
  160. package/dist/types/react/hooks/use-observed-width.d.ts +3 -0
  161. package/dist/types/react/index.d.ts +6 -1
  162. package/dist/types/react/nodes/blockCard.d.ts +1 -1
  163. package/dist/types/react/nodes/bodiedExtension.d.ts +2 -1
  164. package/dist/types/react/nodes/codeBlock.d.ts +3 -3
  165. package/dist/types/react/nodes/embedCard.d.ts +1 -1
  166. package/dist/types/react/nodes/emoji.d.ts +1 -1
  167. package/dist/types/react/nodes/extension.d.ts +14 -13
  168. package/dist/types/react/nodes/index.d.ts +39 -15
  169. package/dist/types/react/nodes/inlineCard.d.ts +23 -21
  170. package/dist/types/react/nodes/inlineExtension.d.ts +2 -1
  171. package/dist/types/react/nodes/media.d.ts +2 -2
  172. package/dist/types/react/nodes/mediaGroup.d.ts +1 -1
  173. package/dist/types/react/nodes/mediaInline.d.ts +1 -1
  174. package/dist/types/react/nodes/mediaSingle/index.d.ts +3 -7
  175. package/dist/types/react/nodes/mediaSingle/styles.d.ts +1 -1
  176. package/dist/types/react/nodes/mention.d.ts +2 -2
  177. package/dist/types/react/nodes/panel.d.ts +3 -1
  178. package/dist/types/react/nodes/table/sticky.d.ts +1 -1
  179. package/dist/types/react/nodes/table.d.ts +22 -21
  180. package/dist/types/react/nodes/tableCell.d.ts +7 -60
  181. package/dist/types/react/nodes/tableRow.d.ts +1 -1
  182. package/dist/types/react/nodes/task-item-with-providers.d.ts +2 -1
  183. package/dist/types/react/nodes/taskItem.d.ts +1 -1
  184. package/dist/types/react/types.d.ts +3 -1
  185. package/dist/types/react/utils/getCardClickHandler.d.ts +1 -1
  186. package/dist/types/render-document.d.ts +1 -1
  187. package/dist/types/types/smartLinksOptions.d.ts +3 -0
  188. package/dist/types/ui/ExtensionRenderer.d.ts +3 -1
  189. package/dist/types/ui/MediaCard.d.ts +3 -2
  190. package/dist/types/ui/SortingIcon.d.ts +7 -4
  191. package/dist/types/ui/annotations/context.d.ts +1 -1
  192. package/dist/types/ui/annotations/element/mark.d.ts +1 -1
  193. package/dist/types/ui/annotations/hooks/use-events.d.ts +2 -1
  194. package/dist/types/ui/annotations/hooks/use-inline-comment-subscriber.d.ts +1 -1
  195. package/dist/types/ui/annotations/selection/mounter.d.ts +1 -1
  196. package/dist/types/ui/annotations/selection/range-validator.d.ts +1 -1
  197. package/dist/types/ui/annotations/types.d.ts +1 -1
  198. package/dist/types/ui/renderer-props.d.ts +8 -1
  199. package/dist/types/utils.d.ts +3 -1
  200. package/package.json +21 -22
@@ -2,7 +2,9 @@ import React from 'react';
2
2
  import { Node as PMNode } from 'prosemirror-model';
3
3
  import { RendererContext } from '../types';
4
4
  import { ExtensionLayout } from '@atlaskit/adf-schema';
5
- import { ExtensionHandlers, OverflowShadowProps, ProviderFactory } from '@atlaskit/editor-common';
5
+ import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
6
+ import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
7
+ import type { OverflowShadowProps } from '@atlaskit/editor-common/ui';
6
8
  export interface Props {
7
9
  extensionHandlers?: ExtensionHandlers;
8
10
  providers: ProviderFactory;
@@ -42,7 +44,7 @@ declare const _default: {
42
44
  handleContainer: (container: HTMLElement | null) => void;
43
45
  render(): JSX.Element;
44
46
  context: any;
45
- setState<K extends "showLeftShadow" | "showRightShadow">(state: import("@atlaskit/editor-common").OverflowShadowState | ((prevState: Readonly<import("@atlaskit/editor-common").OverflowShadowState>, props: Readonly<Props>) => import("@atlaskit/editor-common").OverflowShadowState | Pick<import("@atlaskit/editor-common").OverflowShadowState, K> | null) | Pick<import("@atlaskit/editor-common").OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
47
+ setState<K extends "showLeftShadow" | "showRightShadow">(state: import("@atlaskit/editor-common/ui").OverflowShadowState | ((prevState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, props: Readonly<Props>) => import("@atlaskit/editor-common/ui").OverflowShadowState | Pick<import("@atlaskit/editor-common/ui").OverflowShadowState, K> | null) | Pick<import("@atlaskit/editor-common/ui").OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
46
48
  forceUpdate(callBack?: (() => void) | undefined): void;
47
49
  readonly props: Readonly<Props> & Readonly<{
48
50
  children?: React.ReactNode;
@@ -51,16 +53,15 @@ declare const _default: {
51
53
  [key: string]: React.ReactInstance;
52
54
  };
53
55
  componentDidMount?(): void;
54
- shouldComponentUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common").OverflowShadowState>, nextContext: any): boolean;
56
+ shouldComponentUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): boolean;
55
57
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
56
- getSnapshotBeforeUpdate?(prevProps: Readonly<Props>, prevState: Readonly<import("@atlaskit/editor-common").OverflowShadowState>): any;
58
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Props>, prevState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>): any;
57
59
  componentWillMount?(): void;
58
60
  UNSAFE_componentWillMount?(): void;
59
61
  componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
60
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void; /** We don't want this error to block renderer */
61
- /** We keep rendering the default content */
62
- componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common").OverflowShadowState>, nextContext: any): void;
63
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common").OverflowShadowState>, nextContext: any): void;
62
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
63
+ componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): void;
64
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): void;
64
65
  };
65
66
  new (props: Props, context?: any): {
66
67
  overflowContainer?: HTMLElement | null | undefined;
@@ -81,7 +82,7 @@ declare const _default: {
81
82
  handleContainer: (container: HTMLElement | null) => void;
82
83
  render(): JSX.Element;
83
84
  context: any;
84
- setState<K_1 extends "showLeftShadow" | "showRightShadow">(state: import("@atlaskit/editor-common").OverflowShadowState | ((prevState: Readonly<import("@atlaskit/editor-common").OverflowShadowState>, props: Readonly<Props>) => import("@atlaskit/editor-common").OverflowShadowState | Pick<import("@atlaskit/editor-common").OverflowShadowState, K_1> | null) | Pick<import("@atlaskit/editor-common").OverflowShadowState, K_1> | null, callback?: (() => void) | undefined): void;
85
+ setState<K_1 extends "showLeftShadow" | "showRightShadow">(state: import("@atlaskit/editor-common/ui").OverflowShadowState | ((prevState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, props: Readonly<Props>) => import("@atlaskit/editor-common/ui").OverflowShadowState | Pick<import("@atlaskit/editor-common/ui").OverflowShadowState, K_1> | null) | Pick<import("@atlaskit/editor-common/ui").OverflowShadowState, K_1> | null, callback?: (() => void) | undefined): void;
85
86
  forceUpdate(callBack?: (() => void) | undefined): void;
86
87
  readonly props: Readonly<Props> & Readonly<{
87
88
  children?: React.ReactNode;
@@ -90,15 +91,15 @@ declare const _default: {
90
91
  [key: string]: React.ReactInstance;
91
92
  };
92
93
  componentDidMount?(): void;
93
- shouldComponentUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common").OverflowShadowState>, nextContext: any): boolean;
94
+ shouldComponentUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): boolean;
94
95
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
95
- getSnapshotBeforeUpdate?(prevProps: Readonly<Props>, prevState: Readonly<import("@atlaskit/editor-common").OverflowShadowState>): any;
96
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Props>, prevState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>): any;
96
97
  componentWillMount?(): void;
97
98
  UNSAFE_componentWillMount?(): void;
98
99
  componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
99
100
  UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
100
- componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common").OverflowShadowState>, nextContext: any): void;
101
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common").OverflowShadowState>, nextContext: any): void;
101
+ componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): void;
102
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): void;
102
103
  };
103
104
  contextType?: React.Context<any> | undefined;
104
105
  };
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
+ import Loadable from 'react-loadable';
2
3
  import { Fragment, Node, Mark } from 'prosemirror-model';
3
4
  import Blockquote from './blockquote';
4
5
  import BodiedExtension, { Props as BodiedExtensionProps } from './bodiedExtension';
5
6
  import BulletList from './bulletList';
6
- import DecisionList from './decisionList';
7
7
  import Doc, { DocWithSelectAllTrap } from './doc';
8
8
  import Extension, { Props as ExtensionProps } from './extension';
9
9
  import HardBreak from './hardBreak';
@@ -12,55 +12,79 @@ import InlineExtension, { Props as InlineExtensionProps } from './inlineExtensio
12
12
  import LayoutSection from './layoutSection';
13
13
  import LayoutColumn from './layoutColumn';
14
14
  import ListItem from './listItem';
15
- import MediaSingle from './mediaSingle';
16
15
  import Caption from './caption';
17
16
  import OrderedList from './orderedList';
18
- import Panel from './panel';
19
17
  import Paragraph from './paragraph';
20
18
  import Placeholder from './placeholder';
21
19
  import Rule from './rule';
22
- import TaskList from './taskList';
23
20
  import Table from './table';
24
21
  import { TableCell } from './tableCell';
25
22
  import TableRow from './tableRow';
26
23
  import UnknownBlock from './unknownBlock';
27
- import Loadable from 'react-loadable';
28
- import EmbedCard from './embedCard';
29
- declare const CodeBlock: (React.ComponentClass<import("styled-components").ThemedOuterStyledProps<(Pick<import("react-intl-next").WithIntlProps<import("./codeBlock").Props & import("react-intl-next").WrappedComponentProps<"intl">>, "text" | "className" | "forwardedRef" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled"> & {
24
+ declare const CodeBlock: (React.ComponentClass<import("styled-components").ThemedOuterStyledProps<(Pick<import("react-intl-next").WithIntlProps<import("./codeBlock").Props & import("react-intl-next").WrappedComponentProps<"intl">>, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled" | "forwardedRef"> & {
30
25
  theme?: any;
31
- } & import("@atlaskit/theme").AtlaskitThemeProps) | (Pick<import("react-intl-next").WithIntlProps<import("./codeBlock").Props & import("react-intl-next").WrappedComponentProps<"intl">>, "text" | "className" | "forwardedRef" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled"> & {
26
+ } & import("@atlaskit/theme").AtlaskitThemeProps) | (Pick<import("react-intl-next").WithIntlProps<import("./codeBlock").Props & import("react-intl-next").WrappedComponentProps<"intl">>, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled" | "forwardedRef"> & {
32
27
  theme?: any;
33
- } & import("@atlaskit/theme").CustomThemeProps) | (Pick<import("react-intl-next").WithIntlProps<import("./codeBlock").Props & import("react-intl-next").WrappedComponentProps<"intl">>, "text" | "className" | "forwardedRef" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled"> & {
28
+ } & import("@atlaskit/theme").CustomThemeProps) | (Pick<import("react-intl-next").WithIntlProps<import("./codeBlock").Props & import("react-intl-next").WrappedComponentProps<"intl">>, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled" | "forwardedRef"> & {
34
29
  theme?: any;
35
- } & import("@atlaskit/theme").NoThemeProps), any>, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("styled-components").ThemedOuterStyledProps<(Pick<import("react-intl-next").WithIntlProps<import("./codeBlock").Props & import("react-intl-next").WrappedComponentProps<"intl">>, "text" | "className" | "forwardedRef" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled"> & {
30
+ } & import("@atlaskit/theme").NoThemeProps), any>, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("styled-components").ThemedOuterStyledProps<(Pick<import("react-intl-next").WithIntlProps<import("./codeBlock").Props & import("react-intl-next").WrappedComponentProps<"intl">>, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled" | "forwardedRef"> & {
36
31
  theme?: any;
37
- } & import("@atlaskit/theme").AtlaskitThemeProps) | (Pick<import("react-intl-next").WithIntlProps<import("./codeBlock").Props & import("react-intl-next").WrappedComponentProps<"intl">>, "text" | "className" | "forwardedRef" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled"> & {
32
+ } & import("@atlaskit/theme").AtlaskitThemeProps) | (Pick<import("react-intl-next").WithIntlProps<import("./codeBlock").Props & import("react-intl-next").WrappedComponentProps<"intl">>, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled" | "forwardedRef"> & {
38
33
  theme?: any;
39
- } & import("@atlaskit/theme").CustomThemeProps) | (Pick<import("react-intl-next").WithIntlProps<import("./codeBlock").Props & import("react-intl-next").WrappedComponentProps<"intl">>, "text" | "className" | "forwardedRef" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled"> & {
34
+ } & import("@atlaskit/theme").CustomThemeProps) | (Pick<import("react-intl-next").WithIntlProps<import("./codeBlock").Props & import("react-intl-next").WrappedComponentProps<"intl">>, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled" | "forwardedRef"> & {
40
35
  theme?: any;
41
36
  } & import("@atlaskit/theme").NoThemeProps), any>> & Loadable.LoadableComponent);
37
+ declare const TaskList: (React.ComponentClass<import("./taskList").Props, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("./taskList").Props> & Loadable.LoadableComponent);
42
38
  declare const TaskItem: (React.ComponentClass<import("../types").NodeProps<import("./taskItem").Props>, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("../types").NodeProps<import("./taskItem").Props>> & Loadable.LoadableComponent);
39
+ declare const DecisionList: (React.ComponentClass<import("./decisionList").Props, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("./decisionList").Props> & Loadable.LoadableComponent);
43
40
  declare const DecisionItem: (React.ComponentClass<import("../types").NodeMeta, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("../types").NodeMeta> & Loadable.LoadableComponent);
44
41
  declare const Date: (React.ComponentClass<import("react-intl-next").WithIntlProps<import("./date").Props & import("react-intl-next").WrappedComponentProps<"intl">>, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("react-intl-next").WithIntlProps<import("./date").Props & import("react-intl-next").WrappedComponentProps<"intl">>> & Loadable.LoadableComponent);
45
42
  declare const Status: (React.ComponentClass<import("./status").Props, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("./status").Props> & Loadable.LoadableComponent);
46
43
  declare const Emoji: (React.ComponentClass<import("./emoji").EmojiProps, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("./emoji").EmojiProps> & Loadable.LoadableComponent);
47
- declare const InlineCard: (React.ComponentClass<Pick<import("./inlineCard").InlineCardProps & import("../../ui/SmartCardStorage").WithSmartCardStorageProps, "data" | "eventHandlers" | "url" | "portal">, any> & Loadable.LoadableComponent) | (React.FunctionComponent<Pick<import("./inlineCard").InlineCardProps & import("../../ui/SmartCardStorage").WithSmartCardStorageProps, "data" | "eventHandlers" | "url" | "portal">> & Loadable.LoadableComponent);
44
+ declare const Panel: (React.ComponentClass<import("./panel").Props, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("./panel").Props> & Loadable.LoadableComponent);
45
+ declare const EmbedCard: (React.ComponentClass<{
46
+ url?: string | undefined;
47
+ data?: object | undefined;
48
+ eventHandlers?: import("@atlaskit/editor-common/ui").EventHandlers | undefined;
49
+ portal?: HTMLElement | undefined;
50
+ originalHeight?: number | undefined;
51
+ originalWidth?: number | undefined;
52
+ width?: number | undefined;
53
+ layout: import("@atlaskit/adf-schema").RichMediaLayout;
54
+ rendererAppearance?: import("../..").RendererAppearance;
55
+ isInsideOfBlockNode?: boolean | undefined;
56
+ allowDynamicTextSizing?: boolean | undefined;
57
+ }, any> & Loadable.LoadableComponent) | (React.FunctionComponent<{
58
+ url?: string | undefined;
59
+ data?: object | undefined;
60
+ eventHandlers?: import("@atlaskit/editor-common/ui").EventHandlers | undefined;
61
+ portal?: HTMLElement | undefined;
62
+ originalHeight?: number | undefined;
63
+ originalWidth?: number | undefined;
64
+ width?: number | undefined;
65
+ layout: import("@atlaskit/adf-schema").RichMediaLayout;
66
+ rendererAppearance?: import("../..").RendererAppearance;
67
+ isInsideOfBlockNode?: boolean | undefined;
68
+ allowDynamicTextSizing?: boolean | undefined;
69
+ }> & Loadable.LoadableComponent);
70
+ declare const InlineCard: (React.ComponentClass<Pick<import("./inlineCard").InlineCardProps & import("../../ui/SmartCardStorage").WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">, any> & Loadable.LoadableComponent) | (React.FunctionComponent<Pick<import("./inlineCard").InlineCardProps & import("../../ui/SmartCardStorage").WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">> & Loadable.LoadableComponent);
48
71
  declare const BlockCard: (React.ComponentClass<{
49
72
  url?: string | undefined;
50
73
  data?: object | undefined;
51
- eventHandlers?: import("@atlaskit/editor-common").EventHandlers | undefined;
74
+ eventHandlers?: import("@atlaskit/editor-common/ui").EventHandlers | undefined;
52
75
  portal?: HTMLElement | undefined;
53
76
  rendererAppearance?: import("../..").RendererAppearance;
54
77
  }, any> & Loadable.LoadableComponent) | (React.FunctionComponent<{
55
78
  url?: string | undefined;
56
79
  data?: object | undefined;
57
- eventHandlers?: import("@atlaskit/editor-common").EventHandlers | undefined;
80
+ eventHandlers?: import("@atlaskit/editor-common/ui").EventHandlers | undefined;
58
81
  portal?: HTMLElement | undefined;
59
82
  rendererAppearance?: import("../..").RendererAppearance;
60
83
  }> & Loadable.LoadableComponent);
61
84
  declare const Media: (React.ComponentClass<import("./media").MediaProps, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("./media").MediaProps> & Loadable.LoadableComponent);
62
85
  declare const MediaGroup: (React.ComponentClass<import("./mediaGroup").MediaGroupProps, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("./mediaGroup").MediaGroupProps> & Loadable.LoadableComponent);
63
86
  declare const MediaInline: (React.ComponentClass<import("./mediaInline").MediaInlineProps, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("./mediaInline").MediaInlineProps> & Loadable.LoadableComponent);
87
+ declare const MediaSingle: (React.ComponentClass<import("react-intl-next").WithIntlProps<import("./mediaSingle").Props & import("react-intl-next").WrappedComponentProps<"intl">>, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("react-intl-next").WithIntlProps<import("./mediaSingle").Props & import("react-intl-next").WrappedComponentProps<"intl">>> & Loadable.LoadableComponent);
64
88
  declare const Mention: (React.ComponentClass<import("./mention").Props, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("./mention").Props> & Loadable.LoadableComponent);
65
89
  declare const Expand: (React.ComponentClass<import("react-intl-next").WithIntlProps<import("../../ui/Expand").ExpandProps & import("react-intl-next").WrappedComponentProps<"intl">>, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("react-intl-next").WithIntlProps<import("../../ui/Expand").ExpandProps & import("react-intl-next").WrappedComponentProps<"intl">>> & Loadable.LoadableComponent);
66
90
  export declare const nodeToReact: {
@@ -1,19 +1,21 @@
1
1
  import React from 'react';
2
- import { EventHandlers } from '@atlaskit/editor-common';
2
+ import type { EventHandlers } from '@atlaskit/editor-common/ui';
3
3
  import { WithSmartCardStorageProps } from '../../ui/SmartCardStorage';
4
+ import { SmartLinksOptions } from '../../types/smartLinksOptions';
4
5
  export interface InlineCardProps {
5
6
  url?: string;
6
7
  data?: object;
7
8
  eventHandlers?: EventHandlers;
8
9
  portal?: HTMLElement;
10
+ smartLinks?: SmartLinksOptions;
9
11
  }
10
12
  declare const _default: {
11
- new (props: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "eventHandlers" | "url" | "portal">>): {
13
+ new (props: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>): {
12
14
  render(): JSX.Element;
13
15
  context: any;
14
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "eventHandlers" | "url" | "portal">>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
16
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
15
17
  forceUpdate(callBack?: (() => void) | undefined): void;
16
- readonly props: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "eventHandlers" | "url" | "portal">> & Readonly<{
18
+ readonly props: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">> & Readonly<{
17
19
  children?: React.ReactNode;
18
20
  }>;
19
21
  state: Readonly<{}>;
@@ -21,24 +23,24 @@ declare const _default: {
21
23
  [key: string]: React.ReactInstance;
22
24
  };
23
25
  componentDidMount?(): void;
24
- shouldComponentUpdate?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "eventHandlers" | "url" | "portal">>, nextState: Readonly<{}>, nextContext: any): boolean;
26
+ shouldComponentUpdate?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>, nextState: Readonly<{}>, nextContext: any): boolean;
25
27
  componentWillUnmount?(): void;
26
28
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
27
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "eventHandlers" | "url" | "portal">>, prevState: Readonly<{}>): any;
28
- componentDidUpdate?(prevProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "eventHandlers" | "url" | "portal">>, prevState: Readonly<{}>, snapshot?: any): void;
29
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>, prevState: Readonly<{}>): any;
30
+ componentDidUpdate?(prevProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>, prevState: Readonly<{}>, snapshot?: any): void;
29
31
  componentWillMount?(): void;
30
32
  UNSAFE_componentWillMount?(): void;
31
- componentWillReceiveProps?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "eventHandlers" | "url" | "portal">>, nextContext: any): void;
32
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "eventHandlers" | "url" | "portal">>, nextContext: any): void;
33
- componentWillUpdate?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "eventHandlers" | "url" | "portal">>, nextState: Readonly<{}>, nextContext: any): void;
34
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "eventHandlers" | "url" | "portal">>, nextState: Readonly<{}>, nextContext: any): void;
33
+ componentWillReceiveProps?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>, nextContext: any): void;
34
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>, nextContext: any): void;
35
+ componentWillUpdate?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>, nextState: Readonly<{}>, nextContext: any): void;
36
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>, nextState: Readonly<{}>, nextContext: any): void;
35
37
  };
36
- new (props: Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "eventHandlers" | "url" | "portal">, context?: any): {
38
+ new (props: Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">, context?: any): {
37
39
  render(): JSX.Element;
38
40
  context: any;
39
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "eventHandlers" | "url" | "portal">>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
41
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
40
42
  forceUpdate(callBack?: (() => void) | undefined): void;
41
- readonly props: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "eventHandlers" | "url" | "portal">> & Readonly<{
43
+ readonly props: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">> & Readonly<{
42
44
  children?: React.ReactNode;
43
45
  }>;
44
46
  state: Readonly<{}>;
@@ -46,17 +48,17 @@ declare const _default: {
46
48
  [key: string]: React.ReactInstance;
47
49
  };
48
50
  componentDidMount?(): void;
49
- shouldComponentUpdate?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "eventHandlers" | "url" | "portal">>, nextState: Readonly<{}>, nextContext: any): boolean;
51
+ shouldComponentUpdate?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>, nextState: Readonly<{}>, nextContext: any): boolean;
50
52
  componentWillUnmount?(): void;
51
53
  componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
52
- getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "eventHandlers" | "url" | "portal">>, prevState: Readonly<{}>): any;
53
- componentDidUpdate?(prevProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "eventHandlers" | "url" | "portal">>, prevState: Readonly<{}>, snapshot?: any): void;
54
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>, prevState: Readonly<{}>): any;
55
+ componentDidUpdate?(prevProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>, prevState: Readonly<{}>, snapshot?: any): void;
54
56
  componentWillMount?(): void;
55
57
  UNSAFE_componentWillMount?(): void;
56
- componentWillReceiveProps?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "eventHandlers" | "url" | "portal">>, nextContext: any): void;
57
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "eventHandlers" | "url" | "portal">>, nextContext: any): void;
58
- componentWillUpdate?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "eventHandlers" | "url" | "portal">>, nextState: Readonly<{}>, nextContext: any): void;
59
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "eventHandlers" | "url" | "portal">>, nextState: Readonly<{}>, nextContext: any): void;
58
+ componentWillReceiveProps?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>, nextContext: any): void;
59
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>, nextContext: any): void;
60
+ componentWillUpdate?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>, nextState: Readonly<{}>, nextContext: any): void;
61
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>, nextState: Readonly<{}>, nextContext: any): void;
60
62
  };
61
63
  contextType?: React.Context<any> | undefined;
62
64
  };
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { RendererContext } from '../types';
3
- import { ExtensionHandlers, ProviderFactory } from '@atlaskit/editor-common';
3
+ import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
4
+ import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
4
5
  export interface Props {
5
6
  extensionHandlers?: ExtensionHandlers;
6
7
  providers: ProviderFactory;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { PureComponent } from 'react';
3
- import { EventHandlers } from '@atlaskit/editor-common';
4
- import { ProviderFactory } from '@atlaskit/editor-common';
3
+ import type { EventHandlers } from '@atlaskit/editor-common/ui';
4
+ import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
5
5
  import { MediaCardProps } from '../../ui/MediaCard';
6
6
  import { LinkDefinition } from '@atlaskit/adf-schema';
7
7
  import { MediaFeatureFlags } from '@atlaskit/media-common';
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { ReactElement, PureComponent } from 'react';
3
3
  import { CardEvent } from '@atlaskit/media-card';
4
- import { EventHandlers, CardEventClickHandler } from '@atlaskit/editor-common';
4
+ import type { EventHandlers, CardEventClickHandler } from '@atlaskit/editor-common/ui';
5
5
  import { Identifier } from '@atlaskit/media-client';
6
6
  import { MediaProps } from './media';
7
7
  import { MediaFeatureFlags } from '@atlaskit/media-common';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { ProviderFactory } from '@atlaskit/editor-common';
2
+ import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
3
3
  import { FileIdentifier } from '@atlaskit/media-client';
4
4
  import { MediaProvider } from '../../ui/MediaCard';
5
5
  export declare type RenderMediaInlineProps = {
@@ -1,10 +1,10 @@
1
- import { RichMediaLayout as MediaSingleLayout } from '@atlaskit/adf-schema';
2
- import { EventHandlers } from '@atlaskit/editor-common';
3
1
  import { default as React } from 'react';
4
2
  import { WrappedComponentProps } from 'react-intl-next';
3
+ import { RichMediaLayout as MediaSingleLayout } from '@atlaskit/adf-schema';
4
+ import { MediaFeatureFlags } from '@atlaskit/media-common';
5
+ import type { EventHandlers } from '@atlaskit/editor-common/ui';
5
6
  import { AnalyticsEventPayload } from '../../../analytics/events';
6
7
  import { RendererAppearance } from '../../../ui/Renderer/types';
7
- import { MediaFeatureFlags } from '@atlaskit/media-common';
8
8
  export interface Props {
9
9
  children: React.ReactNode;
10
10
  layout: MediaSingleLayout;
@@ -16,10 +16,6 @@ export interface Props {
16
16
  fireAnalyticsEvent?: (event: AnalyticsEventPayload) => void;
17
17
  featureFlags?: MediaFeatureFlags;
18
18
  }
19
- export interface State {
20
- width?: number;
21
- height?: number;
22
- }
23
19
  export declare const getMediaContainerWidth: (currentContainerWidth: number, layout: MediaSingleLayout) => number;
24
20
  declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
25
21
  WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
@@ -1,3 +1,3 @@
1
- export declare const ExtendedUIMediaSingle: import("styled-components").StyledComponentClass<import("@atlaskit/editor-common").MediaSingleProps, any, Pick<import("@atlaskit/editor-common").MediaSingleProps, "children" | "layout" | "width" | "height" | "className" | "lineLength" | "containerWidth" | "isLoading" | "pctWidth" | "nodeType" | "fullWidthMode" | "hasFallbackContainer"> & {
1
+ export declare const ExtendedUIMediaSingle: import("styled-components").StyledComponentClass<import("@atlaskit/editor-common/ui").MediaSingleProps, any, Pick<import("@atlaskit/editor-common/ui").MediaSingleProps, "children" | "layout" | "width" | "height" | "className" | "containerWidth" | "isLoading" | "nodeType" | "lineLength" | "pctWidth" | "fullWidthMode" | "hasFallbackContainer" | "handleMediaSingleRef"> & {
2
2
  theme?: any;
3
3
  }>;
@@ -1,12 +1,12 @@
1
1
  import { PureComponent } from 'react';
2
- import { ProviderFactory, EventHandlers } from '@atlaskit/editor-common';
2
+ import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
3
+ import type { EventHandlers } from '@atlaskit/editor-common/ui';
3
4
  export interface Props {
4
5
  id: string;
5
6
  providers?: ProviderFactory;
6
7
  eventHandlers?: EventHandlers;
7
8
  text: string;
8
9
  accessLevel?: string;
9
- portal?: HTMLElement;
10
10
  }
11
11
  export default class MentionItem extends PureComponent<Props, {}> {
12
12
  render(): JSX.Element;
@@ -1,12 +1,14 @@
1
1
  import React from 'react';
2
2
  import { PanelType } from '@atlaskit/adf-schema';
3
- import { ProviderFactory } from '@atlaskit/editor-common';
3
+ import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
4
4
  export interface Props {
5
5
  children?: React.ReactNode;
6
6
  providers?: ProviderFactory;
7
7
  panelType: PanelType;
8
8
  allowCustomPanels?: boolean;
9
9
  panelIcon?: string;
10
+ panelIconId?: string;
11
+ panelIconText?: string;
10
12
  panelColor?: string;
11
13
  }
12
14
  declare const Panel: (props: Props) => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { OverflowShadowProps } from '@atlaskit/editor-common';
2
+ import type { OverflowShadowProps } from '@atlaskit/editor-common/ui';
3
3
  import { TableLayout } from '@atlaskit/adf-schema';
4
4
  export declare type StickyMode = 'none' | 'stick' | 'pin-bottom';
5
5
  export declare const tableStickyPadding = 8;