@atlaskit/renderer 112.12.2 → 112.12.3

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 (140) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/react/nodes/table.js +6 -1
  3. package/dist/cjs/ui/Renderer/index.js +1 -1
  4. package/dist/es2019/react/nodes/table.js +6 -1
  5. package/dist/es2019/ui/Renderer/index.js +1 -1
  6. package/dist/esm/react/nodes/table.js +6 -1
  7. package/dist/esm/ui/Renderer/index.js +1 -1
  8. package/dist/types/react/marks/annotation.d.ts +2 -2
  9. package/dist/types/react/marks/backgroundColor.d.ts +2 -2
  10. package/dist/types/react/marks/code.d.ts +1 -1
  11. package/dist/types/react/marks/confluence-inline-comment.d.ts +2 -2
  12. package/dist/types/react/marks/data-consumer.d.ts +2 -2
  13. package/dist/types/react/marks/em.d.ts +2 -2
  14. package/dist/types/react/marks/fragment.d.ts +2 -2
  15. package/dist/types/react/marks/indentation.d.ts +2 -2
  16. package/dist/types/react/marks/strike.d.ts +2 -2
  17. package/dist/types/react/marks/strong.d.ts +2 -2
  18. package/dist/types/react/marks/subsup.d.ts +2 -2
  19. package/dist/types/react/marks/textColor.d.ts +2 -2
  20. package/dist/types/react/marks/underline.d.ts +2 -2
  21. package/dist/types/react/marks/unsupportedMark.d.ts +2 -2
  22. package/dist/types/react/marks/unsupportedNodeAttribute.d.ts +2 -2
  23. package/dist/types/react/nodes/blockquote.d.ts +1 -1
  24. package/dist/types/react/nodes/bodiedExtension.d.ts +1 -1
  25. package/dist/types/react/nodes/bulletList.d.ts +1 -1
  26. package/dist/types/react/nodes/caption.d.ts +2 -2
  27. package/dist/types/react/nodes/date.d.ts +1 -1
  28. package/dist/types/react/nodes/decisionItem.d.ts +2 -2
  29. package/dist/types/react/nodes/decisionList.d.ts +2 -2
  30. package/dist/types/react/nodes/doc.d.ts +3 -3
  31. package/dist/types/react/nodes/extension.d.ts +5 -6
  32. package/dist/types/react/nodes/fallback.d.ts +1 -1
  33. package/dist/types/react/nodes/hardBreak.d.ts +2 -2
  34. package/dist/types/react/nodes/heading.d.ts +2 -2
  35. package/dist/types/react/nodes/inlineCard.d.ts +2 -2
  36. package/dist/types/react/nodes/inlineExtension.d.ts +2 -2
  37. package/dist/types/react/nodes/layoutSection.d.ts +1 -1
  38. package/dist/types/react/nodes/listItem.d.ts +1 -1
  39. package/dist/types/react/nodes/mediaGroup.d.ts +2 -2
  40. package/dist/types/react/nodes/orderedList.d.ts +1 -1
  41. package/dist/types/react/nodes/paragraph.d.ts +2 -2
  42. package/dist/types/react/nodes/placeholder.d.ts +2 -2
  43. package/dist/types/react/nodes/rule.d.ts +2 -2
  44. package/dist/types/react/nodes/table/colgroup.d.ts +2 -2
  45. package/dist/types/react/nodes/table/table.d.ts +1 -1
  46. package/dist/types/react/nodes/table.d.ts +4 -4
  47. package/dist/types/react/nodes/tableCell.d.ts +3 -3
  48. package/dist/types/react/nodes/tableRow.d.ts +1 -1
  49. package/dist/types/react/nodes/task-item-with-providers.d.ts +2 -2
  50. package/dist/types/react/nodes/taskItem.d.ts +2 -2
  51. package/dist/types/react/nodes/taskList.d.ts +2 -2
  52. package/dist/types/react/nodes/text-wrapper.d.ts +2 -1
  53. package/dist/types/react/nodes/unknownBlock.d.ts +1 -1
  54. package/dist/types/react/utils/EditorMediaClientProvider.d.ts +1 -1
  55. package/dist/types/react/utils/render-text-segments.d.ts +2 -2
  56. package/dist/types/ui/MediaCard.d.ts +2 -2
  57. package/dist/types/ui/Renderer/ErrorBoundary.d.ts +1 -1
  58. package/dist/types/ui/Renderer/breakout-ssr.d.ts +2 -2
  59. package/dist/types/ui/RendererActionsContext/WithRendererActions.d.ts +2 -2
  60. package/dist/types/ui/RendererActionsContext/index.d.ts +1 -1
  61. package/dist/types/ui/SmartCardStorage.d.ts +3 -3
  62. package/dist/types/ui/TaskItemsFormatContext/TaskItemsFormatContext.d.ts +2 -2
  63. package/dist/types/ui/active-header-id-provider.d.ts +1 -1
  64. package/dist/types/ui/annotations/context.d.ts +1 -1
  65. package/dist/types/ui/annotations/contexts/AnnotationHoverContext.d.ts +1 -1
  66. package/dist/types/ui/annotations/contexts/AnnotationRangeContext.d.ts +1 -1
  67. package/dist/types/ui/annotations/element/index.d.ts +1 -1
  68. package/dist/types/ui/annotations/hover/mounter.d.ts +1 -1
  69. package/dist/types/ui/annotations/hover/range-validator.d.ts +1 -1
  70. package/dist/types/ui/annotations/index.d.ts +1 -1
  71. package/dist/types/ui/annotations/selection/mounter.d.ts +1 -1
  72. package/dist/types/ui/annotations/selection/range-validator.d.ts +1 -1
  73. package/dist/types/ui/annotations/view/index.d.ts +2 -2
  74. package/dist/types-ts4.5/react/marks/annotation.d.ts +2 -2
  75. package/dist/types-ts4.5/react/marks/backgroundColor.d.ts +2 -2
  76. package/dist/types-ts4.5/react/marks/code.d.ts +1 -1
  77. package/dist/types-ts4.5/react/marks/confluence-inline-comment.d.ts +2 -2
  78. package/dist/types-ts4.5/react/marks/data-consumer.d.ts +2 -2
  79. package/dist/types-ts4.5/react/marks/em.d.ts +2 -2
  80. package/dist/types-ts4.5/react/marks/fragment.d.ts +2 -2
  81. package/dist/types-ts4.5/react/marks/indentation.d.ts +2 -2
  82. package/dist/types-ts4.5/react/marks/strike.d.ts +2 -2
  83. package/dist/types-ts4.5/react/marks/strong.d.ts +2 -2
  84. package/dist/types-ts4.5/react/marks/subsup.d.ts +2 -2
  85. package/dist/types-ts4.5/react/marks/textColor.d.ts +2 -2
  86. package/dist/types-ts4.5/react/marks/underline.d.ts +2 -2
  87. package/dist/types-ts4.5/react/marks/unsupportedMark.d.ts +2 -2
  88. package/dist/types-ts4.5/react/marks/unsupportedNodeAttribute.d.ts +2 -2
  89. package/dist/types-ts4.5/react/nodes/blockquote.d.ts +1 -1
  90. package/dist/types-ts4.5/react/nodes/bodiedExtension.d.ts +1 -1
  91. package/dist/types-ts4.5/react/nodes/bulletList.d.ts +1 -1
  92. package/dist/types-ts4.5/react/nodes/caption.d.ts +2 -2
  93. package/dist/types-ts4.5/react/nodes/date.d.ts +1 -1
  94. package/dist/types-ts4.5/react/nodes/decisionItem.d.ts +2 -2
  95. package/dist/types-ts4.5/react/nodes/decisionList.d.ts +2 -2
  96. package/dist/types-ts4.5/react/nodes/doc.d.ts +3 -3
  97. package/dist/types-ts4.5/react/nodes/extension.d.ts +5 -6
  98. package/dist/types-ts4.5/react/nodes/fallback.d.ts +1 -1
  99. package/dist/types-ts4.5/react/nodes/hardBreak.d.ts +2 -2
  100. package/dist/types-ts4.5/react/nodes/heading.d.ts +2 -2
  101. package/dist/types-ts4.5/react/nodes/inlineCard.d.ts +2 -2
  102. package/dist/types-ts4.5/react/nodes/inlineExtension.d.ts +2 -2
  103. package/dist/types-ts4.5/react/nodes/layoutSection.d.ts +1 -1
  104. package/dist/types-ts4.5/react/nodes/listItem.d.ts +1 -1
  105. package/dist/types-ts4.5/react/nodes/mediaGroup.d.ts +2 -2
  106. package/dist/types-ts4.5/react/nodes/orderedList.d.ts +1 -1
  107. package/dist/types-ts4.5/react/nodes/paragraph.d.ts +2 -2
  108. package/dist/types-ts4.5/react/nodes/placeholder.d.ts +2 -2
  109. package/dist/types-ts4.5/react/nodes/rule.d.ts +2 -2
  110. package/dist/types-ts4.5/react/nodes/table/colgroup.d.ts +2 -2
  111. package/dist/types-ts4.5/react/nodes/table/table.d.ts +1 -1
  112. package/dist/types-ts4.5/react/nodes/table.d.ts +4 -4
  113. package/dist/types-ts4.5/react/nodes/tableCell.d.ts +3 -3
  114. package/dist/types-ts4.5/react/nodes/tableRow.d.ts +1 -1
  115. package/dist/types-ts4.5/react/nodes/task-item-with-providers.d.ts +2 -2
  116. package/dist/types-ts4.5/react/nodes/taskItem.d.ts +2 -2
  117. package/dist/types-ts4.5/react/nodes/taskList.d.ts +2 -2
  118. package/dist/types-ts4.5/react/nodes/text-wrapper.d.ts +2 -1
  119. package/dist/types-ts4.5/react/nodes/unknownBlock.d.ts +1 -1
  120. package/dist/types-ts4.5/react/utils/EditorMediaClientProvider.d.ts +1 -1
  121. package/dist/types-ts4.5/react/utils/render-text-segments.d.ts +2 -2
  122. package/dist/types-ts4.5/ui/MediaCard.d.ts +2 -2
  123. package/dist/types-ts4.5/ui/Renderer/ErrorBoundary.d.ts +1 -1
  124. package/dist/types-ts4.5/ui/Renderer/breakout-ssr.d.ts +2 -2
  125. package/dist/types-ts4.5/ui/RendererActionsContext/WithRendererActions.d.ts +2 -2
  126. package/dist/types-ts4.5/ui/RendererActionsContext/index.d.ts +1 -1
  127. package/dist/types-ts4.5/ui/SmartCardStorage.d.ts +3 -3
  128. package/dist/types-ts4.5/ui/TaskItemsFormatContext/TaskItemsFormatContext.d.ts +2 -2
  129. package/dist/types-ts4.5/ui/active-header-id-provider.d.ts +1 -1
  130. package/dist/types-ts4.5/ui/annotations/context.d.ts +1 -1
  131. package/dist/types-ts4.5/ui/annotations/contexts/AnnotationHoverContext.d.ts +1 -1
  132. package/dist/types-ts4.5/ui/annotations/contexts/AnnotationRangeContext.d.ts +1 -1
  133. package/dist/types-ts4.5/ui/annotations/element/index.d.ts +1 -1
  134. package/dist/types-ts4.5/ui/annotations/hover/mounter.d.ts +1 -1
  135. package/dist/types-ts4.5/ui/annotations/hover/range-validator.d.ts +1 -1
  136. package/dist/types-ts4.5/ui/annotations/index.d.ts +1 -1
  137. package/dist/types-ts4.5/ui/annotations/selection/mounter.d.ts +1 -1
  138. package/dist/types-ts4.5/ui/annotations/selection/range-validator.d.ts +1 -1
  139. package/dist/types-ts4.5/ui/annotations/view/index.d.ts +2 -2
  140. package/package.json +14 -6
@@ -64,7 +64,7 @@ export declare class MediaCardView extends Component<MediaCardProps & {
64
64
  * we don't want that to happened described above text.
65
65
  */
66
66
  private getOnCardClickCallback;
67
- render(): JSX.Element | null;
67
+ render(): React.JSX.Element | null;
68
68
  }
69
69
  export type ClipboardAttrs = {
70
70
  id: string;
@@ -77,6 +77,6 @@ export type ClipboardAttrs = {
77
77
  export declare const getClipboardAttrs: ({ id, alt, collection, contextIdentifierProvider, originalDimensions, fileState, }: ClipboardAttrs) => {
78
78
  [key: string]: string | number | undefined;
79
79
  };
80
- export declare const MediaCardInternal: (props: MediaCardProps) => JSX.Element;
80
+ export declare const MediaCardInternal: (props: MediaCardProps) => React.JSX.Element;
81
81
  export declare const MediaCard: React.ComponentClass<MediaCardProps & import("@atlaskit/editor-common/utils").ImageLoaderProps, any>;
82
82
  export {};
@@ -23,6 +23,6 @@ export declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, E
23
23
  private hasFallback;
24
24
  private shouldRecover;
25
25
  componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
26
- render(): string | number | boolean | React.ReactFragment | JSX.Element | null | undefined;
26
+ render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
27
27
  }
28
28
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  declare global {
3
3
  interface Window {
4
4
  __RENDERER_BYPASS_BREAKOUT_SSR__?: boolean;
@@ -12,7 +12,7 @@ declare global {
12
12
  */
13
13
  export declare function BreakoutSSRInlineScript({ noOpSSRInlineScript }: {
14
14
  noOpSSRInlineScript: Boolean;
15
- }): JSX.Element | null;
15
+ }): React.JSX.Element | null;
16
16
  export declare function createBreakoutInlineScript(id: number): string;
17
17
  export declare const breakoutInlineScriptContext: string;
18
18
  export declare const calcLineLength: any;
@@ -1,7 +1,7 @@
1
- import { type ReactNode } from 'react';
1
+ import React, { type ReactNode } from 'react';
2
2
  import type RendererActions from '../../actions/index';
3
3
  interface WithRendererActionsProps {
4
4
  render(actions: RendererActions): ReactNode | null;
5
5
  }
6
- export declare function WithRendererActions({ render }: WithRendererActionsProps): JSX.Element;
6
+ export declare function WithRendererActions({ render }: WithRendererActionsProps): React.JSX.Element;
7
7
  export {};
@@ -4,6 +4,6 @@ export declare const RendererContext: React.Context<RendererActions>;
4
4
  type RendererActionsContextProps = PropsWithChildren<{
5
5
  context?: RendererActions;
6
6
  }>;
7
- export declare function RendererActionsContext({ children, context }: RendererActionsContextProps): JSX.Element;
7
+ export declare function RendererActionsContext({ children, context }: RendererActionsContextProps): React.JSX.Element;
8
8
  export declare const RendererActionsContextConsumer: React.Consumer<RendererActions>;
9
9
  export {};
@@ -4,10 +4,10 @@ export interface WithSmartCardStorageProps {
4
4
  smartCardStorage: Map<string, string>;
5
5
  }
6
6
  export declare const Context: React.Context<Map<string, string>>;
7
- export declare const Provider: ({ children }: React.PropsWithChildren<unknown>) => JSX.Element;
7
+ export declare const Provider: ({ children }: React.PropsWithChildren<unknown>) => React.JSX.Element;
8
8
  export declare const withSmartCardStorage: <Props extends WithSmartCardStorageProps>(WrappedComponent: React.ComponentType<React.PropsWithChildren<Props>>) => {
9
9
  new (props: Diff<Props, WithSmartCardStorageProps> | Readonly<Diff<Props, WithSmartCardStorageProps>>): {
10
- render(): JSX.Element;
10
+ render(): React.JSX.Element;
11
11
  context: unknown;
12
12
  setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Diff<Props, WithSmartCardStorageProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
13
13
  forceUpdate(callback?: (() => void) | undefined): void;
@@ -30,7 +30,7 @@ export declare const withSmartCardStorage: <Props extends WithSmartCardStoragePr
30
30
  UNSAFE_componentWillUpdate?(nextProps: Readonly<Diff<Props, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
31
31
  };
32
32
  new (props: Diff<Props, WithSmartCardStorageProps>, context: any): {
33
- render(): JSX.Element;
33
+ render(): React.JSX.Element;
34
34
  context: unknown;
35
35
  setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Diff<Props, WithSmartCardStorageProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
36
36
  forceUpdate(callback?: (() => void) | undefined): void;
@@ -4,9 +4,9 @@ type TaskItemsStateContext = [TaskItemsDone, React.Dispatch<TaskItemsFormatReduc
4
4
  type TaskItemsFormatReducerAction = boolean | undefined;
5
5
  export declare function TaskItemsFormatProvider({ children }: {
6
6
  children: ReactNode;
7
- }): JSX.Element;
7
+ }): React.JSX.Element;
8
8
  export declare function useTaskItemsFormatContext(): TaskItemsStateContext;
9
9
  export declare function TaskItemsFormatConsumer({ children, }: {
10
10
  children: ([isChecked, dispatch]: TaskItemsStateContext) => ReactNode;
11
- }): JSX.Element;
11
+ }): React.JSX.Element;
12
12
  export {};
@@ -14,5 +14,5 @@ type Props = {
14
14
  * By exposing `onNestedHeaderIdMatch` here we can control when will consumers be notified:
15
15
  * only when a `newActiveHeaderId` comes in from the Provider and the list of header ids includes it.
16
16
  */
17
- declare const ActiveHeaderIdConsumer: ({ nestedHeaderIds, onNestedHeaderIdMatch }: Props) => JSX.Element;
17
+ declare const ActiveHeaderIdConsumer: ({ nestedHeaderIds, onNestedHeaderIdMatch }: Props) => React.JSX.Element;
18
18
  export { Provider as ActiveHeaderIdProvider, ActiveHeaderIdConsumer };
@@ -22,7 +22,7 @@ export declare class AnnotationsDraftContextWrapper extends React.Component<Prop
22
22
  state: {
23
23
  position: null;
24
24
  };
25
- render(): JSX.Element;
25
+ render(): React.JSX.Element;
26
26
  applyAnnotationDraftAt: (nextPosition: Position) => void;
27
27
  clearAnnotationDraft: () => void;
28
28
  }
@@ -12,7 +12,7 @@ declare const AnnotationHoverStateContext: React.Context<AnnotationHoverStateCon
12
12
  declare const AnnotationHoverDispatchContext: React.Context<AnnotationHoverDispatchContext>;
13
13
  export declare const AnnotationHoverContext: ({ children }: {
14
14
  children?: ReactNode;
15
- }) => JSX.Element;
15
+ }) => React.JSX.Element;
16
16
  export declare const useAnnotationHoverContext: () => AnnotationHoverStateContext;
17
17
  export declare const useAnnotationHoverDispatch: () => AnnotationHoverDispatchContext;
18
18
  export {};
@@ -20,7 +20,7 @@ declare const AnnotationRangeDispatchContext: React.Context<AnnotationRangeDispa
20
20
  export declare const AnnotationRangeProvider: ({ children, allowCommentsOnMedia, }: {
21
21
  children?: ReactNode;
22
22
  allowCommentsOnMedia?: boolean | undefined;
23
- }) => JSX.Element;
23
+ }) => React.JSX.Element;
24
24
  export declare const useAnnotationRangeState: () => AnnotationRangeStateContext;
25
25
  export declare const useAnnotationRangeDispatch: () => AnnotationRangeDispatchContext;
26
26
  export {};
@@ -7,5 +7,5 @@ type MarkElementProps = React.PropsWithChildren<{
7
7
  annotationType: AnnotationTypes;
8
8
  useBlockLevel?: boolean;
9
9
  }>;
10
- declare const MarkElement: ({ annotationParentIds, children, dataAttributes, id, useBlockLevel, }: MarkElementProps) => JSX.Element;
10
+ declare const MarkElement: ({ annotationParentIds, children, dataAttributes, id, useBlockLevel, }: MarkElementProps) => React.JSX.Element;
11
11
  export { MarkElement };
@@ -17,5 +17,5 @@ type Props = {
17
17
  createAnalyticsEvent?: CreateUIAnalyticsEvent;
18
18
  generateIndexMatch?: (pos: Position) => false | AnnotationByMatches;
19
19
  };
20
- export declare const Mounter: React.MemoExoticComponent<(props: Props) => JSX.Element>;
20
+ export declare const Mounter: React.MemoExoticComponent<(props: Props) => React.JSX.Element>;
21
21
  export {};
@@ -9,5 +9,5 @@ type Props = {
9
9
  clearAnnotationDraft: () => void;
10
10
  createAnalyticsEvent?: CreateUIAnalyticsEvent;
11
11
  };
12
- export declare const RangeValidator: (props: Props) => JSX.Element | null;
12
+ export declare const RangeValidator: (props: Props) => React.JSX.Element | null;
13
13
  export {};
@@ -3,4 +3,4 @@ import { type AnnotationsWrapperProps } from './types';
3
3
  export declare const AnnotationsPositionContext: React.Context<{
4
4
  startPos: number;
5
5
  }>;
6
- export declare const AnnotationsWrapper: (props: AnnotationsWrapperProps) => JSX.Element;
6
+ export declare const AnnotationsWrapper: (props: AnnotationsWrapperProps) => React.JSX.Element;
@@ -17,5 +17,5 @@ type Props = {
17
17
  createAnalyticsEvent?: CreateUIAnalyticsEvent;
18
18
  generateIndexMatch?: (pos: Position) => false | AnnotationByMatches;
19
19
  };
20
- export declare const SelectionInlineCommentMounter: React.MemoExoticComponent<(props: React.PropsWithChildren<Props>) => JSX.Element>;
20
+ export declare const SelectionInlineCommentMounter: React.MemoExoticComponent<(props: React.PropsWithChildren<Props>) => React.JSX.Element>;
21
21
  export {};
@@ -9,5 +9,5 @@ type Props = {
9
9
  clearAnnotationDraft: () => void;
10
10
  createAnalyticsEvent?: CreateUIAnalyticsEvent;
11
11
  };
12
- export declare const SelectionRangeValidator: (props: Props) => JSX.Element | null;
12
+ export declare const SelectionRangeValidator: (props: Props) => React.JSX.Element | null;
13
13
  export {};
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { type CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
3
3
  type Props = {
4
4
  createAnalyticsEvent?: CreateUIAnalyticsEvent;
5
5
  isNestedRender: boolean;
6
6
  };
7
- declare const AnnotationView: (props: Props) => JSX.Element | null;
7
+ declare const AnnotationView: (props: Props) => React.JSX.Element | null;
8
8
  export { AnnotationView };
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { MarkProps, AnnotationMarkMeta } from '../types';
3
3
  import type { Mark } from '@atlaskit/editor-prosemirror/model';
4
4
  export declare const isAnnotationMark: (mark: Mark) => boolean;
5
- declare const AnnotationComponent: ({ id, annotationType, children, dataAttributes, annotationParentIds, allowAnnotations, useBlockLevel, isMediaInline, }: MarkProps<AnnotationMarkMeta>) => JSX.Element;
5
+ declare const AnnotationComponent: ({ id, annotationType, children, dataAttributes, annotationParentIds, allowAnnotations, useBlockLevel, isMediaInline, }: MarkProps<AnnotationMarkMeta>) => React.JSX.Element;
6
6
  export default AnnotationComponent;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { TextColorAttributes } from '@atlaskit/adf-schema';
3
3
  import type { MarkProps } from '../types';
4
- export default function BackgroundColor(props: MarkProps<TextColorAttributes>): JSX.Element;
4
+ export default function BackgroundColor(props: MarkProps<TextColorAttributes>): React.JSX.Element;
@@ -5,7 +5,7 @@ import type { MarkProps } from '../types';
5
5
  export declare const isCodeMark: (mark: Mark) => boolean;
6
6
  export declare function CodeWithIntl(props: MarkProps<{
7
7
  codeBidiWarningTooltipEnabled: boolean;
8
- }> & WrappedComponentProps): JSX.Element;
8
+ }> & WrappedComponentProps): React.JSX.Element;
9
9
  declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
10
10
  codeBidiWarningTooltipEnabled: boolean;
11
11
  } & import("../types").MarkMeta & {
@@ -1,9 +1,9 @@
1
- import { Component } from 'react';
1
+ import React, { Component } from 'react';
2
2
  import { type MarkProps } from '../types';
3
3
  interface Props {
4
4
  reference: string;
5
5
  }
6
6
  export default class ConfluenceInlineComment extends Component<MarkProps<Props>, Object> {
7
- render(): JSX.Element;
7
+ render(): React.JSX.Element;
8
8
  }
9
9
  export {};
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { type DataConsumerAttributes } from '@atlaskit/adf-schema';
3
3
  import { type MarkProps } from '../types';
4
- export default function DataConsumer(props: MarkProps<DataConsumerAttributes>): JSX.Element;
4
+ export default function DataConsumer(props: MarkProps<DataConsumerAttributes>): React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { type MarkProps } from '../types';
3
- export default function Em(props: MarkProps): JSX.Element;
3
+ export default function Em(props: MarkProps): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { type FragmentAttributes } from '@atlaskit/adf-schema';
3
3
  import { type MarkProps } from '../types';
4
- export default function FragmentMark(props: MarkProps<FragmentAttributes>): JSX.Element;
4
+ export default function FragmentMark(props: MarkProps<FragmentAttributes>): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { type IndentationMarkAttributes } from '@atlaskit/adf-schema';
3
3
  import { type MarkProps } from '../types';
4
- export default function Indentation(props: MarkProps<IndentationMarkAttributes>): JSX.Element;
4
+ export default function Indentation(props: MarkProps<IndentationMarkAttributes>): React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { type MarkProps } from '../types';
3
- export default function Strike(props: MarkProps): JSX.Element;
3
+ export default function Strike(props: MarkProps): React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { type MarkProps } from '../types';
3
- export default function Strong(props: MarkProps): JSX.Element;
3
+ export default function Strong(props: MarkProps): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { type SubSupAttributes } from '@atlaskit/adf-schema';
3
3
  import { type MarkProps } from '../types';
4
- export default function SubSup(props: MarkProps<SubSupAttributes>): JSX.Element;
4
+ export default function SubSup(props: MarkProps<SubSupAttributes>): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { TextColorAttributes } from '@atlaskit/adf-schema';
3
3
  import type { MarkProps } from '../types';
4
- export default function TextColor(props: MarkProps<TextColorAttributes>): JSX.Element;
4
+ export default function TextColor(props: MarkProps<TextColorAttributes>): React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { type MarkProps } from '../types';
3
- export default function Underline(props: MarkProps): JSX.Element;
3
+ export default function Underline(props: MarkProps): React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { type MarkProps } from '../types';
3
- export default function UnsupportedMark(props: MarkProps): JSX.Element;
3
+ export default function UnsupportedMark(props: MarkProps): React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { type MarkProps } from '../types';
3
- export default function UnsupportedNodeAttribute(props: MarkProps): JSX.Element;
3
+ export default function UnsupportedNodeAttribute(props: MarkProps): React.JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import React from 'react';
2
- export default function Blockquote(props: React.PropsWithChildren<unknown>): JSX.Element;
2
+ export default function Blockquote(props: React.PropsWithChildren<unknown>): React.JSX.Element;
@@ -21,5 +21,5 @@ interface Props {
21
21
  marks?: PMMark[];
22
22
  startPos: number;
23
23
  }
24
- declare const BodiedExtension: (props: React.PropsWithChildren<Props>) => JSX.Element;
24
+ declare const BodiedExtension: (props: React.PropsWithChildren<Props>) => React.JSX.Element;
25
25
  export default BodiedExtension;
@@ -2,4 +2,4 @@ import React from 'react';
2
2
  import type { Node } from '@atlaskit/editor-prosemirror/model';
3
3
  export default function BulletList(props: React.PropsWithChildren<{
4
4
  path?: Node[];
5
- }>): JSX.Element;
5
+ }>): React.JSX.Element;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { type NodeProps } from '../types';
3
- declare const RenderCaption: ({ children, dataAttributes }: NodeProps) => JSX.Element;
3
+ declare const RenderCaption: ({ children, dataAttributes }: NodeProps) => React.JSX.Element;
4
4
  export default RenderCaption;
@@ -8,5 +8,5 @@ export interface Props extends MarkDataAttributes {
8
8
  export declare const DateComponent: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
9
9
  WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
10
10
  };
11
- declare function DateWithFormatContext(props: Props): JSX.Element;
11
+ declare function DateWithFormatContext(props: Props): React.JSX.Element;
12
12
  export default DateWithFormatContext;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { type NodeProps } from '../types';
3
- export default function DecisionItem({ children, dataAttributes }: NodeProps): JSX.Element;
3
+ export default function DecisionItem({ children, dataAttributes }: NodeProps): React.JSX.Element;
@@ -1,7 +1,7 @@
1
- import { PureComponent } from 'react';
1
+ import React, { PureComponent } from 'react';
2
2
  export interface Props {
3
3
  children?: JSX.Element | JSX.Element[];
4
4
  }
5
5
  export default class DecisionList extends PureComponent<Props, Object> {
6
- render(): JSX.Element | null;
6
+ render(): React.JSX.Element | null;
7
7
  }
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- export default function Doc(props: any): JSX.Element;
3
- export declare function DocWithSelectAllTrap(props: any): JSX.Element;
1
+ import React from 'react';
2
+ export default function Doc(props: any): React.JSX.Element;
3
+ export declare function DocWithSelectAllTrap(props: any): React.JSX.Element;
@@ -24,7 +24,7 @@ type AllOrNone<T> = T | {
24
24
  type RenderExtensionOptions = {
25
25
  isTopLevel?: boolean;
26
26
  } & AllOrNone<OverflowShadowProps>;
27
- export declare const renderExtension: (content: any, layout: string, options?: RenderExtensionOptions, removeOverflow?: boolean) => JSX.Element;
27
+ export declare const renderExtension: (content: any, layout: string, options?: RenderExtensionOptions, removeOverflow?: boolean) => React.JSX.Element;
28
28
  declare const _default: {
29
29
  new (props: Props | Readonly<Props>): {
30
30
  overflowContainer?: HTMLElement | null | undefined;
@@ -46,7 +46,7 @@ declare const _default: {
46
46
  calcScrollableWidth: () => number;
47
47
  handleContainer: (container: HTMLElement | null) => void;
48
48
  initShadowObserver(): void;
49
- render(): JSX.Element;
49
+ render(): React.JSX.Element;
50
50
  context: unknown;
51
51
  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;
52
52
  forceUpdate(callback?: (() => void) | undefined): void;
@@ -73,10 +73,9 @@ declare const _default: {
73
73
  scrollable?: NodeList | undefined;
74
74
  diff?: number | undefined;
75
75
  state: {
76
- showLeftShadow: boolean; /** We don't want this error to block renderer */
77
- /** We keep rendering the default content */
76
+ showLeftShadow: boolean;
78
77
  showRightShadow: boolean;
79
- };
78
+ }; /** We keep rendering the default content */
80
79
  componentWillUnmount(): void;
81
80
  componentDidUpdate(): void;
82
81
  handleScroll: (event: Event) => void;
@@ -86,7 +85,7 @@ declare const _default: {
86
85
  calcScrollableWidth: () => number;
87
86
  handleContainer: (container: HTMLElement | null) => void;
88
87
  initShadowObserver(): void;
89
- render(): JSX.Element;
88
+ render(): React.JSX.Element;
90
89
  context: unknown;
91
90
  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
91
  forceUpdate(callback?: (() => void) | undefined): void;
@@ -18,7 +18,7 @@ export declare class CardErrorBoundary extends React.PureComponent<{
18
18
  isError: boolean;
19
19
  error: Error;
20
20
  };
21
- render(): string | number | boolean | React.ReactFragment | JSX.Element | null | undefined;
21
+ render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
22
22
  componentDidCatch(_error: Error): void;
23
23
  }
24
24
  export {};
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  interface Props {
3
3
  forceNewLine?: boolean;
4
4
  }
5
- declare const HardBreak: ({ forceNewLine }: Props) => JSX.Element;
5
+ declare const HardBreak: ({ forceNewLine }: Props) => React.JSX.Element;
6
6
  export default HardBreak;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
3
  import { type NodeProps } from '../types';
4
4
  import { type HeadingAnchorLinksProps } from '../../ui/Renderer/types';
@@ -10,5 +10,5 @@ declare function Heading(props: NodeProps<{
10
10
  allowHeadingAnchorLinks?: HeadingAnchorLinksProps;
11
11
  marks?: PMNode['marks'];
12
12
  invisible?: boolean;
13
- }>): JSX.Element;
13
+ }>): React.JSX.Element;
14
14
  export default Heading;
@@ -14,7 +14,7 @@ export interface InlineCardProps extends MarkDataAttributes {
14
14
  }
15
15
  declare const _default: {
16
16
  new (props: import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps> | Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>): {
17
- render(): JSX.Element;
17
+ render(): import("react").JSX.Element;
18
18
  context: unknown;
19
19
  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;
20
20
  forceUpdate(callback?: (() => void) | undefined): void;
@@ -37,7 +37,7 @@ declare const _default: {
37
37
  UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
38
38
  };
39
39
  new (props: import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>, context: any): {
40
- render(): JSX.Element;
40
+ render(): import("react").JSX.Element;
41
41
  context: unknown;
42
42
  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;
43
43
  forceUpdate(callback?: (() => void) | undefined): void;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { RendererContext } from '../types';
3
3
  import type { Mark as PMMark } from '@atlaskit/editor-prosemirror/model';
4
4
  import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
@@ -14,5 +14,5 @@ interface Props {
14
14
  localId?: string;
15
15
  marks?: PMMark[];
16
16
  }
17
- declare const InlineExtension: (props: Props) => JSX.Element;
17
+ declare const InlineExtension: (props: Props) => React.JSX.Element;
18
18
  export default InlineExtension;
@@ -2,4 +2,4 @@ import React from 'react';
2
2
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
3
  export default function LayoutSection(props: React.PropsWithChildren<{
4
4
  content?: PMNode[];
5
- }>): JSX.Element;
5
+ }>): React.JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import React from 'react';
2
- export default function ListItem(props: React.PropsWithChildren<unknown>): JSX.Element;
2
+ export default function ListItem(props: React.PropsWithChildren<unknown>): React.JSX.Element;
@@ -19,12 +19,12 @@ export default class MediaGroup extends PureComponent<MediaGroupProps, MediaGrou
19
19
  state: MediaGroupState;
20
20
  private handleSize;
21
21
  private handleScroll;
22
- render(): JSX.Element;
22
+ render(): React.JSX.Element;
23
23
  renderSingleFile(child: ReactElement<MediaProps>): ReactElement<MediaProps, string | React.JSXElementConstructor<any>>;
24
24
  renderSingleLink(child: ReactElement<MediaProps>): ReactElement<MediaProps, string | React.JSXElementConstructor<any>>;
25
25
  onMediaClick: (cardClickHandler: CardEventClickHandler, child: ReactElement<MediaProps>, surroundingItems: Identifier[]) => (event: CardEvent, analyticsEvent?: any) => void;
26
26
  cloneFileCard(child: ReactElement<MediaProps>, surroundingItems: Identifier[]): ReactElement<MediaProps, string | React.JSXElementConstructor<any>>;
27
- renderStrip(): JSX.Element;
27
+ renderStrip(): React.JSX.Element;
28
28
  private mapMediaPropsToIdentifier;
29
29
  }
30
30
  export {};
@@ -6,4 +6,4 @@ export default function OrderedList(props: {
6
6
  path?: Node[];
7
7
  content?: Node[];
8
8
  children: React.ReactNode;
9
- }): JSX.Element;
9
+ }): React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { type NodeProps } from '../types';
3
- export default function Paragraph({ children, dataAttributes }: NodeProps): JSX.Element;
3
+ export default function Paragraph({ children, dataAttributes }: NodeProps): React.JSX.Element;
@@ -1,7 +1,7 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  interface Props {
3
3
  text: string;
4
4
  allowPlaceholderText?: boolean;
5
5
  }
6
- export default function Placeholder(props: Props): JSX.Element;
6
+ export default function Placeholder(props: Props): React.JSX.Element;
7
7
  export {};
@@ -1,2 +1,2 @@
1
- /// <reference types="react" />
2
- export default function Rule(): JSX.Element;
1
+ import React from 'react';
2
+ export default function Rule(): React.JSX.Element;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import type { SharedTableProps } from './types';
3
- export declare const Colgroup: (props: SharedTableProps) => JSX.Element | null;
3
+ export declare const Colgroup: (props: SharedTableProps) => React.JSX.Element | null;
@@ -4,5 +4,5 @@ type TableProps = SharedTableProps & {
4
4
  innerRef?: React.RefObject<HTMLTableElement>;
5
5
  children: React.ReactNode[];
6
6
  };
7
- export declare const Table: React.MemoExoticComponent<({ innerRef, isNumberColumnEnabled, columnWidths, layout, renderWidth, children, tableNode, rendererAppearance, isInsideOfBlockNode, isInsideOfTable, isinsideMultiBodiedExtension, allowTableResizing, }: TableProps) => JSX.Element>;
7
+ export declare const Table: React.MemoExoticComponent<({ innerRef, isNumberColumnEnabled, columnWidths, layout, renderWidth, children, tableNode, rendererAppearance, isInsideOfBlockNode, isInsideOfTable, isinsideMultiBodiedExtension, allowTableResizing, }: TableProps) => React.JSX.Element>;
8
8
  export {};