@atlaskit/renderer 84.1.1 → 85.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 (170) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/cjs/actions/index.js +3 -3
  3. package/dist/cjs/analytics/unsupported-content.js +3 -3
  4. package/dist/cjs/react/index.js +13 -9
  5. package/dist/cjs/react/marks/annotation.js +2 -2
  6. package/dist/cjs/react/marks/breakout.js +5 -3
  7. package/dist/cjs/react/nodes/blockCard.js +2 -2
  8. package/dist/cjs/react/nodes/caption.js +2 -2
  9. package/dist/cjs/react/nodes/date.js +6 -4
  10. package/dist/cjs/react/nodes/embedCard.js +5 -5
  11. package/dist/cjs/react/nodes/emoji.js +2 -2
  12. package/dist/cjs/react/nodes/extension.js +6 -4
  13. package/dist/cjs/react/nodes/heading-anchor.js +3 -1
  14. package/dist/cjs/react/nodes/index.js +80 -55
  15. package/dist/cjs/react/nodes/inlineCard.js +2 -2
  16. package/dist/cjs/react/nodes/layoutColumn.js +2 -2
  17. package/dist/cjs/react/nodes/media.js +5 -3
  18. package/dist/cjs/react/nodes/mediaGroup.js +2 -2
  19. package/dist/cjs/react/nodes/mediaInline.js +2 -2
  20. package/dist/cjs/react/nodes/mediaSingle/index.js +3 -3
  21. package/dist/cjs/react/nodes/mediaSingle/styles.js +2 -2
  22. package/dist/cjs/react/nodes/mention.js +2 -2
  23. package/dist/cjs/react/nodes/panel.js +18 -20
  24. package/dist/cjs/react/nodes/table/colgroup.js +2 -2
  25. package/dist/cjs/react/nodes/table/sticky.js +4 -4
  26. package/dist/cjs/react/nodes/table.js +19 -13
  27. package/dist/cjs/react/nodes/tableCell.js +15 -13
  28. package/dist/cjs/react/nodes/tableRow.js +6 -4
  29. package/dist/cjs/react/nodes/task-item-with-providers.js +3 -1
  30. package/dist/cjs/react/nodes/taskItem.js +3 -3
  31. package/dist/cjs/render-document.js +3 -3
  32. package/dist/cjs/text/nodes/date.js +3 -3
  33. package/dist/cjs/ui/Expand.js +9 -9
  34. package/dist/cjs/ui/ExtensionRenderer.js +8 -4
  35. package/dist/cjs/ui/MediaCard.js +4 -4
  36. package/dist/cjs/ui/Renderer/breakout-ssr.js +3 -3
  37. package/dist/cjs/ui/Renderer/index.js +22 -18
  38. package/dist/cjs/ui/SortingIcon.js +8 -8
  39. package/dist/cjs/ui/annotations/draft/component.js +2 -2
  40. package/dist/cjs/ui/annotations/element/index.js +2 -2
  41. package/dist/cjs/ui/annotations/element/mark.js +4 -4
  42. package/dist/cjs/ui/annotations/hooks/use-events.js +11 -11
  43. package/dist/cjs/ui/annotations/hooks/use-load-annotations.js +4 -4
  44. package/dist/cjs/utils.js +4 -3
  45. package/dist/cjs/version.json +1 -1
  46. package/dist/es2019/actions/index.js +1 -1
  47. package/dist/es2019/analytics/unsupported-content.js +1 -1
  48. package/dist/es2019/react/index.js +2 -1
  49. package/dist/es2019/react/marks/breakout.js +2 -1
  50. package/dist/es2019/react/nodes/blockCard.js +1 -1
  51. package/dist/es2019/react/nodes/caption.js +1 -1
  52. package/dist/es2019/react/nodes/date.js +2 -1
  53. package/dist/es2019/react/nodes/embedCard.js +1 -1
  54. package/dist/es2019/react/nodes/emoji.js +1 -1
  55. package/dist/es2019/react/nodes/extension.js +2 -1
  56. package/dist/es2019/react/nodes/index.js +32 -7
  57. package/dist/es2019/react/nodes/inlineCard.js +1 -1
  58. package/dist/es2019/react/nodes/layoutColumn.js +1 -1
  59. package/dist/es2019/react/nodes/media.js +2 -1
  60. package/dist/es2019/react/nodes/mediaInline.js +1 -1
  61. package/dist/es2019/react/nodes/mediaSingle/index.js +1 -1
  62. package/dist/es2019/react/nodes/mediaSingle/styles.js +1 -1
  63. package/dist/es2019/react/nodes/mention.js +1 -1
  64. package/dist/es2019/react/nodes/panel.js +14 -12
  65. package/dist/es2019/react/nodes/table/colgroup.js +1 -1
  66. package/dist/es2019/react/nodes/table/sticky.js +1 -1
  67. package/dist/es2019/react/nodes/table.js +4 -1
  68. package/dist/es2019/react/nodes/tableCell.js +2 -1
  69. package/dist/es2019/react/nodes/tableRow.js +2 -1
  70. package/dist/es2019/react/nodes/taskItem.js +1 -1
  71. package/dist/es2019/render-document.js +1 -1
  72. package/dist/es2019/text/nodes/date.js +1 -1
  73. package/dist/es2019/ui/Expand.js +1 -1
  74. package/dist/es2019/ui/ExtensionRenderer.js +3 -1
  75. package/dist/es2019/ui/MediaCard.js +1 -1
  76. package/dist/es2019/ui/Renderer/breakout-ssr.js +1 -1
  77. package/dist/es2019/ui/Renderer/index.js +3 -1
  78. package/dist/es2019/ui/SortingIcon.js +2 -2
  79. package/dist/es2019/ui/annotations/draft/component.js +1 -1
  80. package/dist/es2019/ui/annotations/element/index.js +1 -1
  81. package/dist/es2019/ui/annotations/element/mark.js +1 -1
  82. package/dist/es2019/ui/annotations/hooks/use-events.js +1 -1
  83. package/dist/es2019/ui/annotations/hooks/use-load-annotations.js +1 -1
  84. package/dist/es2019/version.json +1 -1
  85. package/dist/esm/actions/index.js +1 -1
  86. package/dist/esm/analytics/unsupported-content.js +1 -1
  87. package/dist/esm/react/index.js +6 -4
  88. package/dist/esm/react/marks/annotation.js +2 -2
  89. package/dist/esm/react/marks/breakout.js +2 -1
  90. package/dist/esm/react/nodes/blockCard.js +1 -1
  91. package/dist/esm/react/nodes/caption.js +1 -1
  92. package/dist/esm/react/nodes/date.js +2 -1
  93. package/dist/esm/react/nodes/embedCard.js +1 -1
  94. package/dist/esm/react/nodes/emoji.js +1 -1
  95. package/dist/esm/react/nodes/extension.js +2 -1
  96. package/dist/esm/react/nodes/heading-anchor.js +3 -1
  97. package/dist/esm/react/nodes/index.js +62 -7
  98. package/dist/esm/react/nodes/inlineCard.js +1 -1
  99. package/dist/esm/react/nodes/layoutColumn.js +1 -1
  100. package/dist/esm/react/nodes/media.js +2 -1
  101. package/dist/esm/react/nodes/mediaGroup.js +2 -2
  102. package/dist/esm/react/nodes/mediaInline.js +1 -1
  103. package/dist/esm/react/nodes/mediaSingle/index.js +1 -1
  104. package/dist/esm/react/nodes/mediaSingle/styles.js +1 -1
  105. package/dist/esm/react/nodes/mention.js +1 -1
  106. package/dist/esm/react/nodes/panel.js +14 -12
  107. package/dist/esm/react/nodes/table/colgroup.js +1 -1
  108. package/dist/esm/react/nodes/table/sticky.js +1 -1
  109. package/dist/esm/react/nodes/table.js +4 -1
  110. package/dist/esm/react/nodes/tableCell.js +2 -1
  111. package/dist/esm/react/nodes/tableRow.js +2 -1
  112. package/dist/esm/react/nodes/task-item-with-providers.js +2 -1
  113. package/dist/esm/react/nodes/taskItem.js +1 -1
  114. package/dist/esm/render-document.js +1 -1
  115. package/dist/esm/text/nodes/date.js +1 -1
  116. package/dist/esm/ui/Expand.js +1 -1
  117. package/dist/esm/ui/ExtensionRenderer.js +3 -1
  118. package/dist/esm/ui/MediaCard.js +3 -3
  119. package/dist/esm/ui/Renderer/breakout-ssr.js +1 -1
  120. package/dist/esm/ui/Renderer/index.js +5 -3
  121. package/dist/esm/ui/SortingIcon.js +2 -2
  122. package/dist/esm/ui/annotations/draft/component.js +1 -1
  123. package/dist/esm/ui/annotations/element/index.js +1 -1
  124. package/dist/esm/ui/annotations/element/mark.js +3 -3
  125. package/dist/esm/ui/annotations/hooks/use-events.js +3 -3
  126. package/dist/esm/ui/annotations/hooks/use-load-annotations.js +3 -3
  127. package/dist/esm/utils.js +3 -2
  128. package/dist/esm/version.json +1 -1
  129. package/dist/types/actions/index.d.ts +1 -1
  130. package/dist/types/analytics/events.d.ts +3 -1
  131. package/dist/types/analytics/unsupported-content.d.ts +1 -1
  132. package/dist/types/react/index.d.ts +3 -1
  133. package/dist/types/react/nodes/blockCard.d.ts +1 -1
  134. package/dist/types/react/nodes/bodiedExtension.d.ts +2 -1
  135. package/dist/types/react/nodes/codeBlock.d.ts +3 -3
  136. package/dist/types/react/nodes/embedCard.d.ts +1 -1
  137. package/dist/types/react/nodes/emoji.d.ts +1 -1
  138. package/dist/types/react/nodes/extension.d.ts +14 -13
  139. package/dist/types/react/nodes/index.d.ts +39 -15
  140. package/dist/types/react/nodes/inlineCard.d.ts +21 -21
  141. package/dist/types/react/nodes/inlineExtension.d.ts +2 -1
  142. package/dist/types/react/nodes/media.d.ts +2 -2
  143. package/dist/types/react/nodes/mediaGroup.d.ts +1 -1
  144. package/dist/types/react/nodes/mediaInline.d.ts +1 -1
  145. package/dist/types/react/nodes/mediaSingle/index.d.ts +1 -1
  146. package/dist/types/react/nodes/mediaSingle/styles.d.ts +1 -1
  147. package/dist/types/react/nodes/mention.d.ts +2 -1
  148. package/dist/types/react/nodes/panel.d.ts +3 -1
  149. package/dist/types/react/nodes/table/sticky.d.ts +1 -1
  150. package/dist/types/react/nodes/table.d.ts +22 -21
  151. package/dist/types/react/nodes/tableCell.d.ts +1 -1
  152. package/dist/types/react/nodes/tableRow.d.ts +1 -1
  153. package/dist/types/react/nodes/task-item-with-providers.d.ts +1 -1
  154. package/dist/types/react/nodes/taskItem.d.ts +1 -1
  155. package/dist/types/react/types.d.ts +3 -1
  156. package/dist/types/react/utils/getCardClickHandler.d.ts +1 -1
  157. package/dist/types/render-document.d.ts +1 -1
  158. package/dist/types/ui/ExtensionRenderer.d.ts +3 -1
  159. package/dist/types/ui/MediaCard.d.ts +3 -2
  160. package/dist/types/ui/SortingIcon.d.ts +1 -1
  161. package/dist/types/ui/annotations/context.d.ts +1 -1
  162. package/dist/types/ui/annotations/element/mark.d.ts +1 -1
  163. package/dist/types/ui/annotations/hooks/use-events.d.ts +2 -1
  164. package/dist/types/ui/annotations/hooks/use-inline-comment-subscriber.d.ts +1 -1
  165. package/dist/types/ui/annotations/selection/mounter.d.ts +1 -1
  166. package/dist/types/ui/annotations/selection/range-validator.d.ts +1 -1
  167. package/dist/types/ui/annotations/types.d.ts +1 -1
  168. package/dist/types/ui/renderer-props.d.ts +6 -1
  169. package/dist/types/utils.d.ts +3 -1
  170. package/package.json +13 -14
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { EventHandlers } from '@atlaskit/editor-common';
2
+ import type { EventHandlers } from '@atlaskit/editor-common/ui';
3
3
  import { RendererAppearance } from '../../ui/Renderer/types';
4
4
  export default function BlockCard(props: {
5
5
  url?: string;
@@ -3,7 +3,8 @@ import { Node as PMNode } from 'prosemirror-model';
3
3
  import { RendererContext } from '../types';
4
4
  import { Serializer } from '../..';
5
5
  import { ExtensionLayout } from '@atlaskit/adf-schema';
6
- import { ExtensionHandlers, ProviderFactory } from '@atlaskit/editor-common';
6
+ import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
7
+ import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
7
8
  export interface Props {
8
9
  serializer: Serializer<any>;
9
10
  extensionHandlers?: ExtensionHandlers;
@@ -14,11 +14,11 @@ declare const _default: import("styled-components").StyledComponentClass<(Pick<P
14
14
  forwardedRef?: ((instance: any) => void) | React.RefObject<any> | null | undefined;
15
15
  } & import("@atlaskit/theme").CustomThemeProps) | (Pick<Props & WrappedComponentProps<"intl">, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled"> & {
16
16
  forwardedRef?: ((instance: any) => void) | React.RefObject<any> | null | undefined;
17
- } & import("@atlaskit/theme").NoThemeProps), any, (Pick<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>, "text" | "className" | "forwardedRef" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled"> & {
17
+ } & import("@atlaskit/theme").NoThemeProps), any, (Pick<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled" | "forwardedRef"> & {
18
18
  theme?: any;
19
- } & import("@atlaskit/theme").AtlaskitThemeProps) | (Pick<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>, "text" | "className" | "forwardedRef" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled"> & {
19
+ } & import("@atlaskit/theme").AtlaskitThemeProps) | (Pick<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled" | "forwardedRef"> & {
20
20
  theme?: any;
21
- } & import("@atlaskit/theme").CustomThemeProps) | (Pick<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>, "text" | "className" | "forwardedRef" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled"> & {
21
+ } & import("@atlaskit/theme").CustomThemeProps) | (Pick<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled" | "forwardedRef"> & {
22
22
  theme?: any;
23
23
  } & import("@atlaskit/theme").NoThemeProps)>;
24
24
  export default _default;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { EventHandlers } from '@atlaskit/editor-common';
2
+ import type { EventHandlers } from '@atlaskit/editor-common/ui';
3
3
  import { RichMediaLayout } from '@atlaskit/adf-schema';
4
4
  import { RendererAppearance } from '../../ui/Renderer/types';
5
5
  export default function EmbedCard(props: {
@@ -1,6 +1,6 @@
1
1
  import { EmojiAttributes } from '@atlaskit/adf-schema';
2
2
  import { PureComponent } from 'react';
3
- import { ProviderFactory } from '@atlaskit/editor-common';
3
+ import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
4
4
  export interface EmojiProps extends EmojiAttributes {
5
5
  providers?: ProviderFactory;
6
6
  fitToHeight?: number;
@@ -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">, any> & Loadable.LoadableComponent) | (React.FunctionComponent<Pick<import("./inlineCard").InlineCardProps & import("../../ui/SmartCardStorage").WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal">> & 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,5 +1,5 @@
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
4
  export interface InlineCardProps {
5
5
  url?: string;
@@ -8,12 +8,12 @@ export interface InlineCardProps {
8
8
  portal?: HTMLElement;
9
9
  }
10
10
  declare const _default: {
11
- new (props: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "eventHandlers" | "url" | "portal">>): {
11
+ new (props: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal">>): {
12
12
  render(): JSX.Element;
13
13
  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;
14
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal">>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
15
15
  forceUpdate(callBack?: (() => void) | undefined): void;
16
- readonly props: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "eventHandlers" | "url" | "portal">> & Readonly<{
16
+ readonly props: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal">> & Readonly<{
17
17
  children?: React.ReactNode;
18
18
  }>;
19
19
  state: Readonly<{}>;
@@ -21,24 +21,24 @@ declare const _default: {
21
21
  [key: string]: React.ReactInstance;
22
22
  };
23
23
  componentDidMount?(): void;
24
- shouldComponentUpdate?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "eventHandlers" | "url" | "portal">>, nextState: Readonly<{}>, nextContext: any): boolean;
24
+ shouldComponentUpdate?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal">>, nextState: Readonly<{}>, nextContext: any): boolean;
25
25
  componentWillUnmount?(): void;
26
26
  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;
27
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal">>, prevState: Readonly<{}>): any;
28
+ componentDidUpdate?(prevProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal">>, prevState: Readonly<{}>, snapshot?: any): void;
29
29
  componentWillMount?(): void;
30
30
  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;
31
+ componentWillReceiveProps?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal">>, nextContext: any): void;
32
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal">>, nextContext: any): void;
33
+ componentWillUpdate?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal">>, nextState: Readonly<{}>, nextContext: any): void;
34
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal">>, nextState: Readonly<{}>, nextContext: any): void;
35
35
  };
36
- new (props: Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "eventHandlers" | "url" | "portal">, context?: any): {
36
+ new (props: Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal">, context?: any): {
37
37
  render(): JSX.Element;
38
38
  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;
39
+ setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal">>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
40
40
  forceUpdate(callBack?: (() => void) | undefined): void;
41
- readonly props: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "eventHandlers" | "url" | "portal">> & Readonly<{
41
+ readonly props: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal">> & Readonly<{
42
42
  children?: React.ReactNode;
43
43
  }>;
44
44
  state: Readonly<{}>;
@@ -46,17 +46,17 @@ declare const _default: {
46
46
  [key: string]: React.ReactInstance;
47
47
  };
48
48
  componentDidMount?(): void;
49
- shouldComponentUpdate?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "eventHandlers" | "url" | "portal">>, nextState: Readonly<{}>, nextContext: any): boolean;
49
+ shouldComponentUpdate?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal">>, nextState: Readonly<{}>, nextContext: any): boolean;
50
50
  componentWillUnmount?(): void;
51
51
  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;
52
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal">>, prevState: Readonly<{}>): any;
53
+ componentDidUpdate?(prevProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal">>, prevState: Readonly<{}>, snapshot?: any): void;
54
54
  componentWillMount?(): void;
55
55
  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;
56
+ componentWillReceiveProps?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal">>, nextContext: any): void;
57
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal">>, nextContext: any): void;
58
+ componentWillUpdate?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal">>, nextState: Readonly<{}>, nextContext: any): void;
59
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal">>, nextState: Readonly<{}>, nextContext: any): void;
60
60
  };
61
61
  contextType?: React.Context<any> | undefined;
62
62
  };
@@ -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,5 +1,5 @@
1
1
  import { RichMediaLayout as MediaSingleLayout } from '@atlaskit/adf-schema';
2
- import { EventHandlers } from '@atlaskit/editor-common';
2
+ import type { EventHandlers } from '@atlaskit/editor-common/ui';
3
3
  import { default as React } from 'react';
4
4
  import { WrappedComponentProps } from 'react-intl-next';
5
5
  import { AnalyticsEventPayload } from '../../../analytics/events';
@@ -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"> & {
2
2
  theme?: any;
3
3
  }>;
@@ -1,5 +1,6 @@
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;
@@ -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;