@atlaskit/renderer 103.0.0 → 103.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (230) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/cjs/consts.js +2 -2
  3. package/dist/cjs/messages.js +1 -1
  4. package/dist/cjs/react/nodes/panel.js +19 -10
  5. package/dist/cjs/react/nodes/tableCell.js +8 -26
  6. package/dist/cjs/ui/ExtensionRenderer.js +9 -2
  7. package/dist/cjs/ui/Renderer/index.js +1 -1
  8. package/dist/cjs/ui/Renderer/style.js +5 -3
  9. package/dist/cjs/ui/SortingIcon.js +55 -28
  10. package/dist/cjs/version.json +1 -1
  11. package/dist/es2019/consts.js +2 -2
  12. package/dist/es2019/messages.js +1 -1
  13. package/dist/es2019/react/nodes/panel.js +16 -6
  14. package/dist/es2019/react/nodes/tableCell.js +8 -27
  15. package/dist/es2019/ui/ExtensionRenderer.js +7 -2
  16. package/dist/es2019/ui/Renderer/index.js +1 -1
  17. package/dist/es2019/ui/Renderer/style.js +308 -287
  18. package/dist/es2019/ui/SortingIcon.js +89 -32
  19. package/dist/es2019/version.json +1 -1
  20. package/dist/esm/consts.js +2 -2
  21. package/dist/esm/messages.js +1 -1
  22. package/dist/esm/react/nodes/panel.js +18 -10
  23. package/dist/esm/react/nodes/tableCell.js +8 -26
  24. package/dist/esm/ui/ExtensionRenderer.js +9 -2
  25. package/dist/esm/ui/Renderer/index.js +1 -1
  26. package/dist/esm/ui/Renderer/style.js +5 -4
  27. package/dist/esm/ui/SortingIcon.js +55 -27
  28. package/dist/esm/version.json +1 -1
  29. package/dist/types/consts.d.ts +2 -2
  30. package/dist/types/react/nodes/bodiedExtension.d.ts +2 -1
  31. package/dist/types/react/nodes/extension.d.ts +2 -1
  32. package/dist/types/react/nodes/inlineExtension.d.ts +2 -0
  33. package/dist/types/ui/ExtensionRenderer.d.ts +2 -0
  34. package/dist/types/ui/SortingIcon.d.ts +4 -1
  35. package/package.json +19 -23
  36. package/report.api.md +359 -255
  37. package/dist/types-ts4.0/actions/index.d.ts +0 -61
  38. package/dist/types-ts4.0/actions/matches-utils.d.ts +0 -7
  39. package/dist/types-ts4.0/actions.d.ts +0 -3
  40. package/dist/types-ts4.0/analytics/analyticsContext.d.ts +0 -6
  41. package/dist/types-ts4.0/analytics/enums.d.ts +0 -56
  42. package/dist/types-ts4.0/analytics/events.d.ts +0 -110
  43. package/dist/types-ts4.0/analytics/unsupported-content.d.ts +0 -10
  44. package/dist/types-ts4.0/consts.d.ts +0 -12
  45. package/dist/types-ts4.0/i18n/cs.d.ts +0 -20
  46. package/dist/types-ts4.0/i18n/da.d.ts +0 -20
  47. package/dist/types-ts4.0/i18n/de.d.ts +0 -20
  48. package/dist/types-ts4.0/i18n/en.d.ts +0 -20
  49. package/dist/types-ts4.0/i18n/en_GB.d.ts +0 -20
  50. package/dist/types-ts4.0/i18n/en_ZZ.d.ts +0 -20
  51. package/dist/types-ts4.0/i18n/es.d.ts +0 -20
  52. package/dist/types-ts4.0/i18n/et.d.ts +0 -8
  53. package/dist/types-ts4.0/i18n/fi.d.ts +0 -20
  54. package/dist/types-ts4.0/i18n/fr.d.ts +0 -20
  55. package/dist/types-ts4.0/i18n/hu.d.ts +0 -20
  56. package/dist/types-ts4.0/i18n/index.d.ts +0 -31
  57. package/dist/types-ts4.0/i18n/it.d.ts +0 -20
  58. package/dist/types-ts4.0/i18n/ja.d.ts +0 -20
  59. package/dist/types-ts4.0/i18n/ko.d.ts +0 -20
  60. package/dist/types-ts4.0/i18n/nb.d.ts +0 -20
  61. package/dist/types-ts4.0/i18n/nl.d.ts +0 -20
  62. package/dist/types-ts4.0/i18n/pl.d.ts +0 -20
  63. package/dist/types-ts4.0/i18n/pt_BR.d.ts +0 -20
  64. package/dist/types-ts4.0/i18n/pt_PT.d.ts +0 -8
  65. package/dist/types-ts4.0/i18n/ru.d.ts +0 -20
  66. package/dist/types-ts4.0/i18n/sk.d.ts +0 -8
  67. package/dist/types-ts4.0/i18n/sv.d.ts +0 -20
  68. package/dist/types-ts4.0/i18n/th.d.ts +0 -20
  69. package/dist/types-ts4.0/i18n/tr.d.ts +0 -20
  70. package/dist/types-ts4.0/i18n/uk.d.ts +0 -20
  71. package/dist/types-ts4.0/i18n/vi.d.ts +0 -20
  72. package/dist/types-ts4.0/i18n/zh.d.ts +0 -20
  73. package/dist/types-ts4.0/i18n/zh_TW.d.ts +0 -20
  74. package/dist/types-ts4.0/index.d.ts +0 -11
  75. package/dist/types-ts4.0/messages.d.ts +0 -61
  76. package/dist/types-ts4.0/react/hooks/use-bidi-warnings.d.ts +0 -10
  77. package/dist/types-ts4.0/react/hooks/use-in-viewport.d.ts +0 -5
  78. package/dist/types-ts4.0/react/hooks/use-observed-width.d.ts +0 -3
  79. package/dist/types-ts4.0/react/index.d.ts +0 -118
  80. package/dist/types-ts4.0/react/marks/alignment.d.ts +0 -4
  81. package/dist/types-ts4.0/react/marks/annotation.d.ts +0 -6
  82. package/dist/types-ts4.0/react/marks/breakout.d.ts +0 -6
  83. package/dist/types-ts4.0/react/marks/code.d.ts +0 -16
  84. package/dist/types-ts4.0/react/marks/confluence-inline-comment.d.ts +0 -8
  85. package/dist/types-ts4.0/react/marks/data-consumer.d.ts +0 -4
  86. package/dist/types-ts4.0/react/marks/em.d.ts +0 -3
  87. package/dist/types-ts4.0/react/marks/fragment.d.ts +0 -4
  88. package/dist/types-ts4.0/react/marks/indentation.d.ts +0 -4
  89. package/dist/types-ts4.0/react/marks/index.d.ts +0 -21
  90. package/dist/types-ts4.0/react/marks/link.d.ts +0 -9
  91. package/dist/types-ts4.0/react/marks/strike.d.ts +0 -3
  92. package/dist/types-ts4.0/react/marks/strong.d.ts +0 -3
  93. package/dist/types-ts4.0/react/marks/subsup.d.ts +0 -4
  94. package/dist/types-ts4.0/react/marks/textColor.d.ts +0 -4
  95. package/dist/types-ts4.0/react/marks/underline.d.ts +0 -3
  96. package/dist/types-ts4.0/react/marks/unsupportedMark.d.ts +0 -3
  97. package/dist/types-ts4.0/react/marks/unsupportedNodeAttribute.d.ts +0 -3
  98. package/dist/types-ts4.0/react/nodes/blockCard.d.ts +0 -10
  99. package/dist/types-ts4.0/react/nodes/blockquote.d.ts +0 -2
  100. package/dist/types-ts4.0/react/nodes/bodiedExtension.d.ts +0 -23
  101. package/dist/types-ts4.0/react/nodes/bulletList.d.ts +0 -5
  102. package/dist/types-ts4.0/react/nodes/caption.d.ts +0 -4
  103. package/dist/types-ts4.0/react/nodes/codeBlock/codeBlock.d.ts +0 -14
  104. package/dist/types-ts4.0/react/nodes/codeBlock/components/codeBlockContainer.d.ts +0 -12
  105. package/dist/types-ts4.0/react/nodes/codeBlock/components/lightWeightCodeBlock.d.ts +0 -9
  106. package/dist/types-ts4.0/react/nodes/codeBlock/windowedCodeBlock.d.ts +0 -4
  107. package/dist/types-ts4.0/react/nodes/codeBlockCopyButton.d.ts +0 -9
  108. package/dist/types-ts4.0/react/nodes/date.d.ts +0 -11
  109. package/dist/types-ts4.0/react/nodes/decisionItem.d.ts +0 -3
  110. package/dist/types-ts4.0/react/nodes/decisionList.d.ts +0 -7
  111. package/dist/types-ts4.0/react/nodes/doc.d.ts +0 -3
  112. package/dist/types-ts4.0/react/nodes/embedCard.d.ts +0 -17
  113. package/dist/types-ts4.0/react/nodes/emoji.d.ts +0 -10
  114. package/dist/types-ts4.0/react/nodes/extension.d.ts +0 -112
  115. package/dist/types-ts4.0/react/nodes/fallback.d.ts +0 -16
  116. package/dist/types-ts4.0/react/nodes/hardBreak.d.ts +0 -6
  117. package/dist/types-ts4.0/react/nodes/heading-anchor.d.ts +0 -14
  118. package/dist/types-ts4.0/react/nodes/heading.d.ts +0 -14
  119. package/dist/types-ts4.0/react/nodes/index.d.ts +0 -94
  120. package/dist/types-ts4.0/react/nodes/inline.d.ts +0 -1
  121. package/dist/types-ts4.0/react/nodes/inlineCard.d.ts +0 -65
  122. package/dist/types-ts4.0/react/nodes/inlineExtension.d.ts +0 -16
  123. package/dist/types-ts4.0/react/nodes/layoutColumn.d.ts +0 -6
  124. package/dist/types-ts4.0/react/nodes/layoutSection.d.ts +0 -2
  125. package/dist/types-ts4.0/react/nodes/listItem.d.ts +0 -2
  126. package/dist/types-ts4.0/react/nodes/media.d.ts +0 -27
  127. package/dist/types-ts4.0/react/nodes/mediaGroup.d.ts +0 -29
  128. package/dist/types-ts4.0/react/nodes/mediaInline.d.ts +0 -20
  129. package/dist/types-ts4.0/react/nodes/mediaSingle/index.d.ts +0 -23
  130. package/dist/types-ts4.0/react/nodes/mediaSingle/styles.d.ts +0 -2
  131. package/dist/types-ts4.0/react/nodes/mention.d.ts +0 -13
  132. package/dist/types-ts4.0/react/nodes/orderedList.d.ts +0 -6
  133. package/dist/types-ts4.0/react/nodes/panel.d.ts +0 -17
  134. package/dist/types-ts4.0/react/nodes/paragraph.d.ts +0 -3
  135. package/dist/types-ts4.0/react/nodes/placeholder.d.ts +0 -6
  136. package/dist/types-ts4.0/react/nodes/rule.d.ts +0 -2
  137. package/dist/types-ts4.0/react/nodes/status.d.ts +0 -10
  138. package/dist/types-ts4.0/react/nodes/table/colgroup.d.ts +0 -3
  139. package/dist/types-ts4.0/react/nodes/table/sticky.d.ts +0 -38
  140. package/dist/types-ts4.0/react/nodes/table/table.d.ts +0 -7
  141. package/dist/types-ts4.0/react/nodes/table/types.d.ts +0 -7
  142. package/dist/types-ts4.0/react/nodes/table.d.ts +0 -269
  143. package/dist/types-ts4.0/react/nodes/tableCell.d.ts +0 -81
  144. package/dist/types-ts4.0/react/nodes/tableRow.d.ts +0 -24
  145. package/dist/types-ts4.0/react/nodes/task-item-with-providers.d.ts +0 -29
  146. package/dist/types-ts4.0/react/nodes/taskItem.d.ts +0 -19
  147. package/dist/types-ts4.0/react/nodes/taskList.d.ts +0 -8
  148. package/dist/types-ts4.0/react/nodes/text-wrapper.d.ts +0 -8
  149. package/dist/types-ts4.0/react/nodes/unknownBlock.d.ts +0 -2
  150. package/dist/types-ts4.0/react/renderer-node.d.ts +0 -4
  151. package/dist/types-ts4.0/react/types.d.ts +0 -57
  152. package/dist/types-ts4.0/react/utils/clipboard.d.ts +0 -1
  153. package/dist/types-ts4.0/react/utils/element-selection.d.ts +0 -9
  154. package/dist/types-ts4.0/react/utils/getCardClickHandler.d.ts +0 -2
  155. package/dist/types-ts4.0/react/utils/inject-props.d.ts +0 -6
  156. package/dist/types-ts4.0/react/utils/links.d.ts +0 -3
  157. package/dist/types-ts4.0/react/utils/lists.d.ts +0 -2
  158. package/dist/types-ts4.0/react/utils/performance/RenderTracking.d.ts +0 -15
  159. package/dist/types-ts4.0/react/utils/use-select-all-trap.d.ts +0 -2
  160. package/dist/types-ts4.0/render-document.d.ts +0 -23
  161. package/dist/types-ts4.0/renderer-context.d.ts +0 -9
  162. package/dist/types-ts4.0/serializer.d.ts +0 -4
  163. package/dist/types-ts4.0/steps/index.d.ts +0 -14
  164. package/dist/types-ts4.0/text/index.d.ts +0 -8
  165. package/dist/types-ts4.0/text/nodes/blockquote.d.ts +0 -3
  166. package/dist/types-ts4.0/text/nodes/bulletList.d.ts +0 -3
  167. package/dist/types-ts4.0/text/nodes/date.d.ts +0 -3
  168. package/dist/types-ts4.0/text/nodes/decisionItem.d.ts +0 -3
  169. package/dist/types-ts4.0/text/nodes/hardBreak.d.ts +0 -3
  170. package/dist/types-ts4.0/text/nodes/heading.d.ts +0 -3
  171. package/dist/types-ts4.0/text/nodes/index.d.ts +0 -6
  172. package/dist/types-ts4.0/text/nodes/inlineCard.d.ts +0 -3
  173. package/dist/types-ts4.0/text/nodes/listItem.d.ts +0 -3
  174. package/dist/types-ts4.0/text/nodes/mediaGroup.d.ts +0 -3
  175. package/dist/types-ts4.0/text/nodes/mention.d.ts +0 -3
  176. package/dist/types-ts4.0/text/nodes/orderedList.d.ts +0 -3
  177. package/dist/types-ts4.0/text/nodes/panel.d.ts +0 -3
  178. package/dist/types-ts4.0/text/nodes/paragraph.d.ts +0 -3
  179. package/dist/types-ts4.0/text/nodes/rule.d.ts +0 -3
  180. package/dist/types-ts4.0/text/nodes/status.d.ts +0 -3
  181. package/dist/types-ts4.0/text/nodes/table.d.ts +0 -3
  182. package/dist/types-ts4.0/text/nodes/taskItem.d.ts +0 -3
  183. package/dist/types-ts4.0/text/nodes/unknown.d.ts +0 -3
  184. package/dist/types-ts4.0/text-serializer.d.ts +0 -1
  185. package/dist/types-ts4.0/types/i18n.d.ts +0 -5
  186. package/dist/types-ts4.0/types/mediaOptions.d.ts +0 -12
  187. package/dist/types-ts4.0/types/smartLinksOptions.d.ts +0 -3
  188. package/dist/types-ts4.0/ui/Expand.d.ts +0 -21
  189. package/dist/types-ts4.0/ui/ExtensionRenderer.d.ts +0 -40
  190. package/dist/types-ts4.0/ui/MediaCard.d.ts +0 -77
  191. package/dist/types-ts4.0/ui/Renderer/ErrorBoundary.d.ts +0 -24
  192. package/dist/types-ts4.0/ui/Renderer/breakout-ssr.d.ts +0 -11
  193. package/dist/types-ts4.0/ui/Renderer/click-to-edit.d.ts +0 -6
  194. package/dist/types-ts4.0/ui/Renderer/index.d.ts +0 -33
  195. package/dist/types-ts4.0/ui/Renderer/style.d.ts +0 -14
  196. package/dist/types-ts4.0/ui/Renderer/truncated-wrapper.d.ts +0 -12
  197. package/dist/types-ts4.0/ui/Renderer/types.d.ts +0 -16
  198. package/dist/types-ts4.0/ui/RendererActionsContext/WithRendererActions.d.ts +0 -6
  199. package/dist/types-ts4.0/ui/RendererActionsContext/index.d.ts +0 -9
  200. package/dist/types-ts4.0/ui/SmartCardStorage.d.ts +0 -60
  201. package/dist/types-ts4.0/ui/SortingIcon.d.ts +0 -20
  202. package/dist/types-ts4.0/ui/TaskItemsFormatContext/TaskItemsFormatContext.d.ts +0 -15
  203. package/dist/types-ts4.0/ui/TaskItemsFormatContext/index.d.ts +0 -2
  204. package/dist/types-ts4.0/ui/active-header-id-provider.d.ts +0 -18
  205. package/dist/types-ts4.0/ui/annotations/context.d.ts +0 -27
  206. package/dist/types-ts4.0/ui/annotations/draft/component.d.ts +0 -20
  207. package/dist/types-ts4.0/ui/annotations/draft/dom.d.ts +0 -7
  208. package/dist/types-ts4.0/ui/annotations/draft/index.d.ts +0 -2
  209. package/dist/types-ts4.0/ui/annotations/draft/position.d.ts +0 -2
  210. package/dist/types-ts4.0/ui/annotations/draft/text.d.ts +0 -11
  211. package/dist/types-ts4.0/ui/annotations/element/index.d.ts +0 -10
  212. package/dist/types-ts4.0/ui/annotations/element/mark.d.ts +0 -14
  213. package/dist/types-ts4.0/ui/annotations/hooks/index.d.ts +0 -3
  214. package/dist/types-ts4.0/ui/annotations/hooks/use-events.d.ts +0 -18
  215. package/dist/types-ts4.0/ui/annotations/hooks/use-inline-comment-subscriber.d.ts +0 -1
  216. package/dist/types-ts4.0/ui/annotations/hooks/use-inline-comments-filter.d.ts +0 -9
  217. package/dist/types-ts4.0/ui/annotations/hooks/use-load-annotations.d.ts +0 -6
  218. package/dist/types-ts4.0/ui/annotations/hooks/user-selection.d.ts +0 -9
  219. package/dist/types-ts4.0/ui/annotations/hooks/utils.d.ts +0 -2
  220. package/dist/types-ts4.0/ui/annotations/index.d.ts +0 -5
  221. package/dist/types-ts4.0/ui/annotations/selection/index.d.ts +0 -1
  222. package/dist/types-ts4.0/ui/annotations/selection/mounter.d.ts +0 -20
  223. package/dist/types-ts4.0/ui/annotations/selection/range-validator.d.ts +0 -13
  224. package/dist/types-ts4.0/ui/annotations/selection/wrapper.d.ts +0 -8
  225. package/dist/types-ts4.0/ui/annotations/types.d.ts +0 -22
  226. package/dist/types-ts4.0/ui/annotations/view/index.d.ts +0 -7
  227. package/dist/types-ts4.0/ui/index.d.ts +0 -1
  228. package/dist/types-ts4.0/ui/renderer-props.d.ts +0 -100
  229. package/dist/types-ts4.0/use-feature-flags.d.ts +0 -2
  230. package/dist/types-ts4.0/utils.d.ts +0 -24
@@ -1,14 +0,0 @@
1
- /// <reference types="react" />
2
- import { WrappedComponentProps } from 'react-intl-next';
3
- import type { SupportedLanguages } from '@atlaskit/code';
4
- export interface Props {
5
- text: string;
6
- language: SupportedLanguages;
7
- allowCopyToClipboard?: boolean;
8
- codeBidiWarningTooltipEnabled: boolean;
9
- className?: string;
10
- }
11
- declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
12
- WrappedComponent: import("react").ComponentType<Props & WrappedComponentProps<"intl">>;
13
- };
14
- export default _default;
@@ -1,12 +0,0 @@
1
- /** @jsx jsx */
2
- import type { ReactNode } from 'react';
3
- import { jsx } from '@emotion/react';
4
- import { Props as CodeBlockProps } from '../codeBlock';
5
- interface ContainerProps {
6
- className?: string;
7
- text: CodeBlockProps['text'];
8
- children: ReactNode;
9
- allowCopyToClipboard?: boolean;
10
- }
11
- declare const CodeBlockContainer: ({ text, className, allowCopyToClipboard, children, }: ContainerProps) => jsx.JSX.Element;
12
- export default CodeBlockContainer;
@@ -1,9 +0,0 @@
1
- /** @jsx jsx */
2
- import React from 'react';
3
- import type { Props as CodeBlockProps } from '../codeBlock';
4
- export declare const LightWeightCodeBlockCssClassName: {
5
- CONTAINER: string;
6
- };
7
- export declare const getLightWeightCodeBlockStylesForRootRendererStyleSheet: () => import("@emotion/react").SerializedStyles;
8
- declare const LightWeightCodeBlock: React.ForwardRefExoticComponent<Pick<CodeBlockProps, "text" | "className" | "codeBidiWarningTooltipEnabled"> & React.RefAttributes<HTMLDivElement>>;
9
- export default LightWeightCodeBlock;
@@ -1,4 +0,0 @@
1
- import { jsx } from '@emotion/react';
2
- import type { Props as CodeBlockProps } from './codeBlock';
3
- declare const WindowedCodeBlock: ({ text, language, allowCopyToClipboard, codeBidiWarningTooltipEnabled, className: rootClassName, }: CodeBlockProps) => jsx.JSX.Element;
4
- export default WindowedCodeBlock;
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { WrappedComponentProps } from 'react-intl-next';
3
- declare type Props = {
4
- content: string;
5
- };
6
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
7
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
8
- };
9
- export default _default;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { WrappedComponentProps } from 'react-intl-next';
3
- export interface Props {
4
- timestamp: string;
5
- parentIsIncompleteTask?: boolean;
6
- }
7
- export declare const DateComponent: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
8
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
9
- };
10
- declare function DateWithFormatContext(props: Props): JSX.Element;
11
- export default DateWithFormatContext;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { NodeProps } from '../types';
3
- export default function DecisionItem({ children, dataAttributes }: NodeProps): JSX.Element;
@@ -1,7 +0,0 @@
1
- import { PureComponent } from 'react';
2
- export interface Props {
3
- children?: JSX.Element | JSX.Element[];
4
- }
5
- export default class DecisionList extends PureComponent<Props, {}> {
6
- render(): JSX.Element | null;
7
- }
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- export default function Doc(props: any): JSX.Element;
3
- export declare function DocWithSelectAllTrap(props: any): JSX.Element;
@@ -1,17 +0,0 @@
1
- /** @jsx jsx */
2
- import { jsx } from '@emotion/react';
3
- import type { EventHandlers } from '@atlaskit/editor-common/ui';
4
- import { RichMediaLayout } from '@atlaskit/adf-schema';
5
- import { RendererAppearance } from '../../ui/Renderer/types';
6
- export default function EmbedCard(props: {
7
- url?: string;
8
- data?: object;
9
- eventHandlers?: EventHandlers;
10
- portal?: HTMLElement;
11
- originalHeight?: number;
12
- originalWidth?: number;
13
- width?: number;
14
- layout: RichMediaLayout;
15
- rendererAppearance?: RendererAppearance;
16
- isInsideOfBlockNode?: boolean;
17
- }): jsx.JSX.Element;
@@ -1,10 +0,0 @@
1
- import { EmojiAttributes } from '@atlaskit/adf-schema';
2
- import { PureComponent } from 'react';
3
- import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
4
- export interface EmojiProps extends EmojiAttributes {
5
- providers?: ProviderFactory;
6
- fitToHeight?: number;
7
- }
8
- export default class EmojiItem extends PureComponent<EmojiProps, {}> {
9
- render(): JSX.Element;
10
- }
@@ -1,112 +0,0 @@
1
- import React from 'react';
2
- import { Node as PMNode } from 'prosemirror-model';
3
- import { RendererContext } from '../types';
4
- import { ExtensionLayout } from '@atlaskit/adf-schema';
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';
8
- export interface Props {
9
- extensionHandlers?: ExtensionHandlers;
10
- providers: ProviderFactory;
11
- rendererContext: RendererContext;
12
- extensionType: string;
13
- extensionKey: string;
14
- path?: PMNode[];
15
- text?: string;
16
- parameters?: any;
17
- layout?: ExtensionLayout;
18
- localId?: string;
19
- }
20
- declare type AllOrNone<T> = T | {
21
- [K in keyof T]?: never;
22
- };
23
- declare type RenderExtensionOptions = {
24
- isTopLevel?: boolean;
25
- } & AllOrNone<OverflowShadowProps>;
26
- export declare const renderExtension: (content: any, layout: string, options?: RenderExtensionOptions, removeOverflow?: boolean | undefined) => JSX.Element;
27
- declare const _default: {
28
- new (props: Readonly<Props>): {
29
- overflowContainer?: HTMLElement | null | undefined;
30
- container?: HTMLElement | undefined;
31
- shadowObserver?: import("@atlaskit/editor-common/ui").ShadowObserver | undefined;
32
- overflowContainerWidth: number;
33
- scrollable?: NodeList | undefined;
34
- diff?: number | undefined;
35
- state: {
36
- showLeftShadow: boolean;
37
- showRightShadow: boolean;
38
- };
39
- componentWillUnmount(): void;
40
- componentDidUpdate(): void;
41
- handleScroll: (event: Event) => void;
42
- updateShadows: () => void;
43
- showLeftShadow: (overflowContainer: HTMLElement | null | undefined) => boolean;
44
- calcOverflowDiff: () => number;
45
- calcScrollableWidth: () => number;
46
- handleContainer: (container: HTMLElement | null) => void;
47
- initShadowObserver(): void;
48
- render(): JSX.Element;
49
- context: any;
50
- setState<K extends keyof import("@atlaskit/editor-common/ui").OverflowShadowState>(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;
51
- forceUpdate(callBack?: (() => void) | undefined): void;
52
- readonly props: Readonly<Props> & Readonly<{
53
- children?: React.ReactNode;
54
- }>;
55
- refs: {
56
- [key: string]: React.ReactInstance;
57
- };
58
- componentDidMount?(): void;
59
- shouldComponentUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): boolean;
60
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
61
- getSnapshotBeforeUpdate?(prevProps: Readonly<Props>, prevState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>): any;
62
- componentWillMount?(): void;
63
- UNSAFE_componentWillMount?(): void;
64
- componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
65
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
66
- componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): void;
67
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): void;
68
- };
69
- new (props: Props, context?: any): {
70
- overflowContainer?: HTMLElement | null | undefined;
71
- container?: HTMLElement | undefined;
72
- shadowObserver?: import("@atlaskit/editor-common/ui").ShadowObserver | undefined;
73
- overflowContainerWidth: number;
74
- scrollable?: NodeList | undefined;
75
- diff?: number | undefined;
76
- state: {
77
- showLeftShadow: boolean;
78
- showRightShadow: boolean;
79
- };
80
- componentWillUnmount(): void;
81
- componentDidUpdate(): void;
82
- handleScroll: (event: Event) => void;
83
- updateShadows: () => void;
84
- showLeftShadow: (overflowContainer: HTMLElement | null | undefined) => boolean;
85
- calcOverflowDiff: () => number;
86
- calcScrollableWidth: () => number;
87
- handleContainer: (container: HTMLElement | null) => void;
88
- initShadowObserver(): void;
89
- render(): JSX.Element;
90
- context: any;
91
- setState<K_1 extends keyof import("@atlaskit/editor-common/ui").OverflowShadowState>(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;
92
- forceUpdate(callBack?: (() => void) | undefined): void;
93
- readonly props: Readonly<Props> & Readonly<{
94
- children?: React.ReactNode;
95
- }>;
96
- refs: {
97
- [key: string]: React.ReactInstance;
98
- };
99
- componentDidMount?(): void;
100
- shouldComponentUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): boolean;
101
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
102
- getSnapshotBeforeUpdate?(prevProps: Readonly<Props>, prevState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>): any;
103
- componentWillMount?(): void;
104
- UNSAFE_componentWillMount?(): void;
105
- componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
106
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
107
- componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): void;
108
- UNSAFE_componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): void;
109
- };
110
- contextType?: React.Context<any> | undefined;
111
- };
112
- export default _default;
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- export declare type CardErrorBoundaryProps = {
3
- unsupportedComponent: React.ComponentType;
4
- };
5
- export declare class CardErrorBoundary extends React.PureComponent<{
6
- url?: string;
7
- data?: object;
8
- onClick?: (e: React.MouseEvent<HTMLElement>, url?: string) => void;
9
- } & CardErrorBoundaryProps> {
10
- state: {
11
- isError: boolean;
12
- };
13
- onClickFallback: (e: React.MouseEvent<HTMLElement>) => void;
14
- render(): React.ReactNode;
15
- componentDidCatch(_error: Error): void;
16
- }
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- interface Props {
3
- forceNewLine?: boolean;
4
- }
5
- declare const HardBreak: React.FunctionComponent<Props>;
6
- export default HardBreak;
@@ -1,14 +0,0 @@
1
- /** @jsx jsx */
2
- import React from 'react';
3
- import { WrappedComponentProps } from 'react-intl-next';
4
- export declare const HeadingAnchorWrapperClassName = "heading-anchor-wrapper";
5
- declare type Props = {
6
- onCopyText: () => Promise<void>;
7
- enableNestedHeaderLinks?: boolean;
8
- level: number;
9
- };
10
- declare type HeadingAnchorProps = Props & React.Props<any> & WrappedComponentProps;
11
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<HeadingAnchorProps>> & {
12
- WrappedComponent: React.ComponentType<HeadingAnchorProps>;
13
- };
14
- export default _default;
@@ -1,14 +0,0 @@
1
- /// <reference types="react" />
2
- import { Node as PMNode } from 'prosemirror-model';
3
- import { NodeProps } from '../types';
4
- import { HeadingAnchorLinksProps } from '../../ui/Renderer/types';
5
- export declare type HeadingLevels = 1 | 2 | 3 | 4 | 5 | 6;
6
- declare function Heading(props: NodeProps<{
7
- level: HeadingLevels;
8
- headingId?: string;
9
- showAnchorLink?: boolean;
10
- allowHeadingAnchorLinks?: HeadingAnchorLinksProps;
11
- marks?: PMNode['marks'];
12
- invisible?: boolean;
13
- }>): JSX.Element;
14
- export default Heading;
@@ -1,94 +0,0 @@
1
- import React from 'react';
2
- import Loadable from 'react-loadable';
3
- import { Fragment, Node, Mark } from 'prosemirror-model';
4
- import Blockquote from './blockquote';
5
- import BodiedExtension, { Props as BodiedExtensionProps } from './bodiedExtension';
6
- import BulletList from './bulletList';
7
- import Doc, { DocWithSelectAllTrap } from './doc';
8
- import Extension, { Props as ExtensionProps } from './extension';
9
- import HardBreak from './hardBreak';
10
- import Heading from './heading';
11
- import InlineExtension, { Props as InlineExtensionProps } from './inlineExtension';
12
- import LayoutSection from './layoutSection';
13
- import LayoutColumn from './layoutColumn';
14
- import ListItem from './listItem';
15
- import Caption from './caption';
16
- import OrderedList from './orderedList';
17
- import Paragraph from './paragraph';
18
- import Placeholder from './placeholder';
19
- import Rule from './rule';
20
- import Table from './table';
21
- import { TableCell } from './tableCell';
22
- import TableRow from './tableRow';
23
- import UnknownBlock from './unknownBlock';
24
- import { NodeComponentsProps } from '../../ui/Renderer/types';
25
- declare const WindowedCodeBlock: React.ComponentType<import("./codeBlock/codeBlock").Props> & Loadable.LoadableComponent;
26
- declare const CodeBlock: React.ComponentType<import("react-intl-next").WithIntlProps<import("./codeBlock/codeBlock").Props & import("react-intl-next").WrappedComponentProps<"intl">>> & Loadable.LoadableComponent;
27
- declare const TaskList: React.ComponentType<import("./taskList").Props> & Loadable.LoadableComponent;
28
- declare const TaskItem: React.ComponentType<import("../types").NodeProps<import("./taskItem").Props>> & Loadable.LoadableComponent;
29
- declare const DecisionList: React.ComponentType<import("./decisionList").Props> & Loadable.LoadableComponent;
30
- declare const DecisionItem: React.ComponentType<import("../types").NodeMeta> & Loadable.LoadableComponent;
31
- declare const Date: React.ComponentType<import("./date").Props> & Loadable.LoadableComponent;
32
- declare const Status: React.ComponentType<import("./status").Props> & Loadable.LoadableComponent;
33
- declare const Emoji: React.ComponentType<import("./emoji").EmojiProps> & Loadable.LoadableComponent;
34
- declare const Panel: React.ComponentType<import("./panel").Props> & Loadable.LoadableComponent;
35
- declare const EmbedCard: React.ComponentType<{
36
- url?: string | undefined;
37
- data?: object | undefined;
38
- eventHandlers?: import("@atlaskit/editor-common/ui").EventHandlers | undefined;
39
- portal?: HTMLElement | undefined;
40
- originalHeight?: number | undefined;
41
- originalWidth?: number | undefined;
42
- width?: number | undefined;
43
- layout: import("@atlaskit/adf-schema").RichMediaLayout;
44
- rendererAppearance?: import("../../ui/Renderer/types").RendererAppearance;
45
- isInsideOfBlockNode?: boolean | undefined;
46
- }> & Loadable.LoadableComponent;
47
- declare const InlineCard: React.ComponentType<import("@atlaskit/editor-common/utils").Diff<import("./inlineCard").InlineCardProps & import("../../ui/SmartCardStorage").WithSmartCardStorageProps, import("../../ui/SmartCardStorage").WithSmartCardStorageProps>> & Loadable.LoadableComponent;
48
- declare const BlockCard: React.ComponentType<{
49
- url?: string | undefined;
50
- data?: object | undefined;
51
- eventHandlers?: import("@atlaskit/editor-common/ui").EventHandlers | undefined;
52
- portal?: HTMLElement | undefined;
53
- rendererAppearance?: import("../../ui/Renderer/types").RendererAppearance;
54
- }> & Loadable.LoadableComponent;
55
- declare const Media: React.ComponentType<import("./media").MediaProps> & Loadable.LoadableComponent;
56
- declare const MediaGroup: React.ComponentType<import("./mediaGroup").MediaGroupProps> & Loadable.LoadableComponent;
57
- declare const MediaInline: React.ComponentType<import("react-intl-next").WithIntlProps<import("./mediaInline").MediaInlineProps & import("react-intl-next").WrappedComponentProps<"intl">>> & Loadable.LoadableComponent;
58
- declare const MediaSingle: React.ComponentType<import("react-intl-next").WithIntlProps<import("./mediaSingle").Props & import("react-intl-next").WrappedComponentProps<"intl">>> & Loadable.LoadableComponent;
59
- declare const Mention: React.ComponentType<import("./mention").Props> & Loadable.LoadableComponent;
60
- declare const Expand: React.ComponentType<import("react-intl-next").WithIntlProps<import("../../ui/Expand").ExpandProps & import("react-intl-next").WrappedComponentProps<"intl">>> & Loadable.LoadableComponent;
61
- export declare const nodeToReact: {
62
- [key: string]: React.ComponentType<any>;
63
- };
64
- export interface ToReactFlags {
65
- allowSelectAllTrap?: boolean;
66
- allowWindowedCodeBlock?: boolean;
67
- }
68
- export declare const toReact: (node: Node, flags?: ToReactFlags | undefined, nodeComponents?: NodeComponentsProps | undefined) => React.ComponentType<any>;
69
- export interface TextWrapper {
70
- type: {
71
- name: 'textWrapper';
72
- };
73
- content: Node[];
74
- nodeSize: number;
75
- }
76
- export interface NodeSimple {
77
- type: {
78
- name: string;
79
- };
80
- attrs?: any;
81
- text?: string;
82
- nodeSize: number;
83
- }
84
- export declare const mergeTextNodes: (nodes: (Node | NodeSimple)[]) => (Node<any> | TextWrapper | NodeSimple)[];
85
- export declare const isText: (type: string) => type is "text";
86
- export declare const isTextWrapper: (node: Node | TextWrapper | NodeSimple) => node is TextWrapper;
87
- export declare function isTextNode(node: Node | Mark): node is Node;
88
- /**
89
- * Detects whether a fragment contains a single paragraph node
90
- * whose content satisfies the condition for an emoji block
91
- */
92
- export declare const isEmojiDoc: (doc: Fragment) => boolean;
93
- export { Blockquote, BodiedExtension, BulletList, BlockCard, Caption, CodeBlock, WindowedCodeBlock, Date, DecisionItem, DecisionList, Doc, DocWithSelectAllTrap, Emoji, Extension, Expand, HardBreak, Heading, ListItem, InlineCard, InlineExtension, LayoutSection, LayoutColumn, Media, MediaGroup, MediaInline, MediaSingle, Mention, OrderedList, Panel, Paragraph, Placeholder, Rule, Status, TaskItem, TaskList, Table, TableCell, TableRow, UnknownBlock, EmbedCard, };
94
- export type { BodiedExtensionProps, ExtensionProps, InlineExtensionProps };
@@ -1 +0,0 @@
1
- export default function Inline(props: any): any;
@@ -1,65 +0,0 @@
1
- import React from 'react';
2
- import type { EventHandlers } from '@atlaskit/editor-common/ui';
3
- import { WithSmartCardStorageProps } from '../../ui/SmartCardStorage';
4
- import { SmartLinksOptions } from '../../types/smartLinksOptions';
5
- export interface InlineCardProps {
6
- url?: string;
7
- data?: object;
8
- eventHandlers?: EventHandlers;
9
- portal?: HTMLElement;
10
- smartLinks?: SmartLinksOptions;
11
- }
12
- declare const _default: {
13
- new (props: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>): {
14
- render(): JSX.Element;
15
- context: any;
16
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
17
- forceUpdate(callBack?: (() => void) | undefined): void;
18
- readonly props: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>> & Readonly<{
19
- children?: React.ReactNode;
20
- }>;
21
- state: Readonly<{}>;
22
- refs: {
23
- [key: string]: React.ReactInstance;
24
- };
25
- componentDidMount?(): void;
26
- shouldComponentUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): boolean;
27
- componentWillUnmount?(): void;
28
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
29
- getSnapshotBeforeUpdate?(prevProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, prevState: Readonly<{}>): any;
30
- componentDidUpdate?(prevProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, prevState: Readonly<{}>, snapshot?: any): void;
31
- componentWillMount?(): void;
32
- UNSAFE_componentWillMount?(): void;
33
- componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextContext: any): void;
34
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextContext: any): void;
35
- componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
36
- UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
37
- };
38
- new (props: import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>, context?: any): {
39
- render(): JSX.Element;
40
- context: any;
41
- setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
42
- forceUpdate(callBack?: (() => void) | undefined): void;
43
- readonly props: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>> & Readonly<{
44
- children?: React.ReactNode;
45
- }>;
46
- state: Readonly<{}>;
47
- refs: {
48
- [key: string]: React.ReactInstance;
49
- };
50
- componentDidMount?(): void;
51
- shouldComponentUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): boolean;
52
- componentWillUnmount?(): void;
53
- componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
54
- getSnapshotBeforeUpdate?(prevProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, prevState: Readonly<{}>): any;
55
- componentDidUpdate?(prevProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, prevState: Readonly<{}>, snapshot?: any): void;
56
- componentWillMount?(): void;
57
- UNSAFE_componentWillMount?(): void;
58
- componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextContext: any): void;
59
- UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextContext: any): void;
60
- componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
61
- UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
62
- };
63
- contextType?: React.Context<any> | undefined;
64
- };
65
- export default _default;
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import { RendererContext } from '../types';
3
- import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
4
- import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
5
- export interface Props {
6
- extensionHandlers?: ExtensionHandlers;
7
- providers: ProviderFactory;
8
- rendererContext: RendererContext;
9
- extensionType: string;
10
- extensionKey: string;
11
- text?: string;
12
- parameters?: any;
13
- localId?: string;
14
- }
15
- declare const InlineExtension: React.StatelessComponent<Props>;
16
- export default InlineExtension;
@@ -1,6 +0,0 @@
1
- /** @jsx jsx */
2
- import React from 'react';
3
- import { jsx } from '@emotion/react';
4
- export default function LayoutSection(props: {
5
- width?: number;
6
- } & React.Props<any>): jsx.JSX.Element;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export default function LayoutSection(props: React.Props<any>): JSX.Element;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export default function ListItem(props: React.Props<any>): JSX.Element;
@@ -1,27 +0,0 @@
1
- /** @jsx jsx */
2
- import React from 'react';
3
- import { PureComponent } from 'react';
4
- import { jsx } from '@emotion/react';
5
- import type { EventHandlers } from '@atlaskit/editor-common/ui';
6
- import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
7
- import { MediaCardProps } from '../../ui/MediaCard';
8
- import { LinkDefinition } from '@atlaskit/adf-schema';
9
- import type { MediaFeatureFlags } from '@atlaskit/media-common';
10
- import { AnalyticsEventPayload } from '../../analytics/events';
11
- export declare type MediaProps = MediaCardProps & {
12
- providers?: ProviderFactory;
13
- allowAltTextOnImages?: boolean;
14
- children?: React.ReactNode;
15
- isInsideOfBlockNode?: boolean;
16
- marks: Array<LinkDefinition>;
17
- isLinkMark: () => boolean;
18
- fireAnalyticsEvent?: (event: AnalyticsEventPayload) => void;
19
- featureFlags?: MediaFeatureFlags;
20
- eventHandlers?: EventHandlers;
21
- enableDownloadButton?: boolean;
22
- };
23
- export default class Media extends PureComponent<MediaProps, {}> {
24
- private renderCard;
25
- private handleMediaLinkClick;
26
- render(): jsx.JSX.Element;
27
- }
@@ -1,29 +0,0 @@
1
- import React from 'react';
2
- import { ReactElement, PureComponent } from 'react';
3
- import { CardEvent } from '@atlaskit/media-card';
4
- import type { EventHandlers, CardEventClickHandler } from '@atlaskit/editor-common/ui';
5
- import { Identifier } from '@atlaskit/media-client';
6
- import { MediaProps } from './media';
7
- import { MediaFeatureFlags } from '@atlaskit/media-common';
8
- export interface MediaGroupProps {
9
- children?: React.ReactNode;
10
- eventHandlers?: EventHandlers;
11
- featureFlags?: MediaFeatureFlags;
12
- enableDownloadButton?: boolean;
13
- }
14
- export interface MediaGroupState {
15
- animate: boolean;
16
- offset: number;
17
- }
18
- export default class MediaGroup extends PureComponent<MediaGroupProps, MediaGroupState> {
19
- state: MediaGroupState;
20
- private handleSize;
21
- private handleScroll;
22
- render(): JSX.Element;
23
- renderSingleFile(child: ReactElement<MediaProps>): React.ReactElement<MediaProps, string | React.JSXElementConstructor<any>>;
24
- renderSingleLink(child: ReactElement<MediaProps>): React.ReactElement<MediaProps, string | React.JSXElementConstructor<any>>;
25
- onMediaClick: (cardClickHandler: CardEventClickHandler, child: ReactElement<MediaProps>, surroundingItems: Identifier[]) => (event: CardEvent, analyticsEvent?: any) => void;
26
- cloneFileCard(child: ReactElement<MediaProps>, surroundingItems: Identifier[]): React.ReactElement<MediaProps, string | React.JSXElementConstructor<any>>;
27
- renderStrip(): JSX.Element;
28
- private mapMediaPropsToIdentifier;
29
- }
@@ -1,20 +0,0 @@
1
- import React from 'react';
2
- import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
3
- import { FileIdentifier } from '@atlaskit/media-client';
4
- import { MediaProvider } from '../../ui/MediaCard';
5
- import { WrappedComponentProps } from 'react-intl-next';
6
- export declare type RenderMediaInlineProps = {
7
- identifier: FileIdentifier;
8
- mediaProvider: Promise<MediaProvider>;
9
- children?: React.ReactNode;
10
- };
11
- export declare type MediaInlineProps = {
12
- id: string;
13
- collection?: string;
14
- providers: ProviderFactory;
15
- };
16
- export declare const RenderMediaInline: React.FC<RenderMediaInlineProps>;
17
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<MediaInlineProps & WrappedComponentProps<"intl">>> & {
18
- WrappedComponent: React.ComponentType<MediaInlineProps & WrappedComponentProps<"intl">>;
19
- };
20
- export default _default;
@@ -1,23 +0,0 @@
1
- /** @jsx jsx */
2
- import { default as React } from 'react';
3
- import { WrappedComponentProps } from 'react-intl-next';
4
- import { RichMediaLayout as MediaSingleLayout } from '@atlaskit/adf-schema';
5
- import { MediaFeatureFlags } from '@atlaskit/media-common';
6
- import type { EventHandlers } from '@atlaskit/editor-common/ui';
7
- import { AnalyticsEventPayload } from '../../../analytics/events';
8
- import { RendererAppearance } from '../../../ui/Renderer/types';
9
- export interface Props {
10
- children: React.ReactNode;
11
- layout: MediaSingleLayout;
12
- eventHandlers?: EventHandlers;
13
- width?: number;
14
- isInsideOfBlockNode?: boolean;
15
- rendererAppearance: RendererAppearance;
16
- fireAnalyticsEvent?: (event: AnalyticsEventPayload) => void;
17
- featureFlags?: MediaFeatureFlags;
18
- }
19
- export declare const getMediaContainerWidth: (currentContainerWidth: number, layout: MediaSingleLayout) => number;
20
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
21
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
22
- };
23
- export default _default;
@@ -1,2 +0,0 @@
1
- export declare const uiMediaSingleBaseStyles: import("@emotion/react").SerializedStyles;
2
- export declare const uiMediaSingleLayoutStyles: import("@emotion/react").SerializedStyles;
@@ -1,13 +0,0 @@
1
- import { PureComponent } from 'react';
2
- import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
3
- import type { EventHandlers } from '@atlaskit/editor-common/ui';
4
- export interface Props {
5
- id: string;
6
- providers?: ProviderFactory;
7
- eventHandlers?: EventHandlers;
8
- text: string;
9
- accessLevel?: string;
10
- }
11
- export default class MentionItem extends PureComponent<Props, {}> {
12
- render(): JSX.Element;
13
- }
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { Node } from 'prosemirror-model';
3
- export default function OrderedList(props: {
4
- start?: number;
5
- path?: Node[];
6
- } & React.Props<any>): JSX.Element;