@atlaskit/renderer 82.2.0 → 84.1.1

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 (142) hide show
  1. package/CHANGELOG.md +97 -0
  2. package/dist/cjs/actions/matches-utils.js +1 -1
  3. package/dist/cjs/analytics/enums.js +2 -1
  4. package/dist/cjs/analytics/events.js +1 -1
  5. package/dist/cjs/i18n/index.js +26 -26
  6. package/dist/cjs/index.js +8 -8
  7. package/dist/cjs/messages.js +4 -4
  8. package/dist/cjs/react/index.js +7 -4
  9. package/dist/cjs/react/marks/annotation.js +1 -1
  10. package/dist/cjs/react/marks/breakout.js +1 -1
  11. package/dist/cjs/react/marks/code.js +3 -3
  12. package/dist/cjs/react/marks/fragment.js +21 -0
  13. package/dist/cjs/react/marks/index.js +28 -19
  14. package/dist/cjs/react/marks/textColor.js +15 -4
  15. package/dist/cjs/react/nodes/codeBlock.js +2 -2
  16. package/dist/cjs/react/nodes/codeBlockCopyButton.js +2 -2
  17. package/dist/cjs/react/nodes/copy-text-provider.js +1 -1
  18. package/dist/cjs/react/nodes/date.js +2 -2
  19. package/dist/cjs/react/nodes/doc.js +1 -1
  20. package/dist/cjs/react/nodes/extension.js +1 -1
  21. package/dist/cjs/react/nodes/heading-anchor.js +2 -2
  22. package/dist/cjs/react/nodes/heading.js +2 -4
  23. package/dist/cjs/react/nodes/index.js +31 -22
  24. package/dist/cjs/react/nodes/media.js +4 -2
  25. package/dist/cjs/react/nodes/mediaSingle/index.js +3 -3
  26. package/dist/cjs/react/nodes/panel.js +4 -6
  27. package/dist/cjs/react/nodes/table/colgroup.js +1 -1
  28. package/dist/cjs/react/nodes/table/sticky.js +1 -1
  29. package/dist/cjs/react/nodes/tableCell.js +1 -1
  30. package/dist/cjs/react/renderer-node.js +1 -1
  31. package/dist/cjs/react/utils/links.js +1 -1
  32. package/dist/cjs/render-document.js +21 -1
  33. package/dist/cjs/renderer-context.js +1 -1
  34. package/dist/cjs/steps/index.js +2 -2
  35. package/dist/cjs/text/nodes/index.js +1 -1
  36. package/dist/cjs/ui/Expand.js +2 -2
  37. package/dist/cjs/ui/MediaCard.js +12 -6
  38. package/dist/cjs/ui/Renderer/breakout-ssr.js +1 -1
  39. package/dist/cjs/ui/Renderer/index.js +11 -11
  40. package/dist/cjs/ui/Renderer/style.js +9 -7
  41. package/dist/cjs/ui/RendererActionsContext/index.js +1 -1
  42. package/dist/cjs/ui/SortingIcon.js +2 -2
  43. package/dist/cjs/ui/active-header-id-provider.js +1 -1
  44. package/dist/cjs/ui/annotations/context.js +1 -1
  45. package/dist/cjs/ui/annotations/draft/component.js +1 -1
  46. package/dist/cjs/ui/annotations/draft/index.js +4 -4
  47. package/dist/cjs/ui/annotations/draft/text.js +1 -1
  48. package/dist/cjs/ui/annotations/hooks/index.js +8 -8
  49. package/dist/cjs/ui/annotations/hooks/use-events.js +4 -2
  50. package/dist/cjs/ui/annotations/index.js +5 -5
  51. package/dist/cjs/utils.js +2 -1
  52. package/dist/cjs/version.json +1 -1
  53. package/dist/es2019/analytics/enums.js +1 -0
  54. package/dist/es2019/messages.js +1 -1
  55. package/dist/es2019/react/index.js +7 -3
  56. package/dist/es2019/react/marks/code.js +1 -1
  57. package/dist/es2019/react/marks/fragment.js +10 -0
  58. package/dist/es2019/react/marks/index.js +4 -2
  59. package/dist/es2019/react/marks/textColor.js +7 -4
  60. package/dist/es2019/react/nodes/codeBlock.js +1 -1
  61. package/dist/es2019/react/nodes/codeBlockCopyButton.js +1 -1
  62. package/dist/es2019/react/nodes/date.js +1 -1
  63. package/dist/es2019/react/nodes/heading-anchor.js +1 -1
  64. package/dist/es2019/react/nodes/heading.js +2 -3
  65. package/dist/es2019/react/nodes/media.js +4 -2
  66. package/dist/es2019/react/nodes/mediaSingle/index.js +1 -1
  67. package/dist/es2019/react/nodes/panel.js +5 -6
  68. package/dist/es2019/render-document.js +19 -1
  69. package/dist/es2019/ui/Expand.js +1 -1
  70. package/dist/es2019/ui/MediaCard.js +11 -5
  71. package/dist/es2019/ui/Renderer/index.js +10 -10
  72. package/dist/es2019/ui/Renderer/style.js +4 -2
  73. package/dist/es2019/ui/SortingIcon.js +1 -1
  74. package/dist/es2019/ui/annotations/hooks/use-events.js +3 -1
  75. package/dist/es2019/version.json +1 -1
  76. package/dist/esm/analytics/enums.js +1 -0
  77. package/dist/esm/messages.js +1 -1
  78. package/dist/esm/react/index.js +7 -4
  79. package/dist/esm/react/marks/code.js +1 -1
  80. package/dist/esm/react/marks/fragment.js +10 -0
  81. package/dist/esm/react/marks/index.js +4 -2
  82. package/dist/esm/react/marks/textColor.js +8 -4
  83. package/dist/esm/react/nodes/codeBlock.js +1 -1
  84. package/dist/esm/react/nodes/codeBlockCopyButton.js +1 -1
  85. package/dist/esm/react/nodes/date.js +1 -1
  86. package/dist/esm/react/nodes/heading-anchor.js +1 -1
  87. package/dist/esm/react/nodes/heading.js +2 -3
  88. package/dist/esm/react/nodes/media.js +4 -2
  89. package/dist/esm/react/nodes/mediaSingle/index.js +1 -1
  90. package/dist/esm/react/nodes/panel.js +5 -6
  91. package/dist/esm/render-document.js +19 -1
  92. package/dist/esm/ui/Expand.js +1 -1
  93. package/dist/esm/ui/MediaCard.js +11 -5
  94. package/dist/esm/ui/Renderer/index.js +10 -10
  95. package/dist/esm/ui/Renderer/style.js +4 -3
  96. package/dist/esm/ui/SortingIcon.js +1 -1
  97. package/dist/esm/ui/annotations/hooks/use-events.js +3 -1
  98. package/dist/esm/version.json +1 -1
  99. package/dist/types/analytics/enums.d.ts +1 -0
  100. package/dist/types/analytics/events.d.ts +5 -1
  101. package/dist/types/index.d.ts +1 -0
  102. package/dist/types/react/index.d.ts +1 -0
  103. package/dist/types/react/marks/alignment.d.ts +1 -0
  104. package/dist/types/react/marks/annotation.d.ts +1 -0
  105. package/dist/types/react/marks/code.d.ts +6 -6
  106. package/dist/types/react/marks/data-consumer.d.ts +1 -0
  107. package/dist/types/react/marks/em.d.ts +1 -0
  108. package/dist/types/react/marks/fragment.d.ts +4 -0
  109. package/dist/types/react/marks/indentation.d.ts +1 -0
  110. package/dist/types/react/marks/index.d.ts +2 -1
  111. package/dist/types/react/marks/link.d.ts +1 -0
  112. package/dist/types/react/marks/strike.d.ts +1 -0
  113. package/dist/types/react/marks/strong.d.ts +1 -0
  114. package/dist/types/react/marks/subsup.d.ts +1 -0
  115. package/dist/types/react/marks/textColor.d.ts +1 -0
  116. package/dist/types/react/marks/underline.d.ts +1 -0
  117. package/dist/types/react/marks/unsupportedMark.d.ts +1 -0
  118. package/dist/types/react/marks/unsupportedNodeAttribute.d.ts +1 -0
  119. package/dist/types/react/nodes/blockCard.d.ts +1 -0
  120. package/dist/types/react/nodes/caption.d.ts +1 -0
  121. package/dist/types/react/nodes/codeBlock.d.ts +11 -3
  122. package/dist/types/react/nodes/codeBlockCopyButton.d.ts +3 -3
  123. package/dist/types/react/nodes/date.d.ts +3 -3
  124. package/dist/types/react/nodes/decisionItem.d.ts +1 -0
  125. package/dist/types/react/nodes/doc.d.ts +1 -0
  126. package/dist/types/react/nodes/embedCard.d.ts +1 -0
  127. package/dist/types/react/nodes/heading-anchor.d.ts +4 -4
  128. package/dist/types/react/nodes/heading.d.ts +1 -0
  129. package/dist/types/react/nodes/index.d.ts +8 -8
  130. package/dist/types/react/nodes/mediaSingle/index.d.ts +3 -3
  131. package/dist/types/react/nodes/paragraph.d.ts +1 -0
  132. package/dist/types/react/nodes/placeholder.d.ts +1 -0
  133. package/dist/types/react/nodes/rule.d.ts +1 -0
  134. package/dist/types/react/nodes/table/colgroup.d.ts +1 -0
  135. package/dist/types/react/nodes/text-wrapper.d.ts +1 -0
  136. package/dist/types/types/mediaOptions.d.ts +7 -1
  137. package/dist/types/ui/Expand.d.ts +3 -3
  138. package/dist/types/ui/MediaCard.d.ts +2 -0
  139. package/dist/types/ui/Renderer/breakout-ssr.d.ts +1 -0
  140. package/dist/types/ui/SortingIcon.d.ts +1 -0
  141. package/dist/types/ui/renderer-props.d.ts +1 -1
  142. package/package.json +23 -23
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { MarkProps } from '../types';
2
3
  export default function Strike(props: MarkProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { MarkProps } from '../types';
2
3
  export default function Strong(props: MarkProps): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SubSupAttributes } from '@atlaskit/adf-schema';
2
3
  import { MarkProps } from '../types';
3
4
  export default function SubSup(props: MarkProps<SubSupAttributes>): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { TextColorAttributes } from '@atlaskit/adf-schema';
2
3
  import { MarkProps } from '../types';
3
4
  export default function TextColor(props: MarkProps<TextColorAttributes>): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { MarkProps } from '../types';
2
3
  export default function Underline(props: MarkProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { MarkProps } from '../types';
2
3
  export default function UnsupportedMark(props: MarkProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { MarkProps } from '../types';
2
3
  export default function UnsupportedNodeAttribute(props: MarkProps): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { EventHandlers } from '@atlaskit/editor-common';
2
3
  import { RendererAppearance } from '../../ui/Renderer/types';
3
4
  export default function BlockCard(props: {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { NodeProps } from '../types';
2
3
  declare const RenderCaption: ({ children, dataAttributes }: NodeProps) => JSX.Element;
3
4
  export default RenderCaption;
@@ -1,3 +1,5 @@
1
+ import React from 'react';
2
+ import { WrappedComponentProps } from 'react-intl-next';
1
3
  import { SupportedLanguages } from '@atlaskit/code';
2
4
  export interface Props {
3
5
  text: string;
@@ -6,11 +8,17 @@ export interface Props {
6
8
  codeBidiWarningTooltipEnabled: boolean;
7
9
  className?: string;
8
10
  }
9
- declare const _default: import("styled-components").StyledComponentClass<(Props & import("@atlaskit/theme").AtlaskitThemeProps) | (Props & import("@atlaskit/theme").CustomThemeProps) | (Props & import("@atlaskit/theme").NoThemeProps), any, (Pick<Props, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled"> & {
11
+ declare const _default: import("styled-components").StyledComponentClass<(Pick<Props & WrappedComponentProps<"intl">, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled"> & {
12
+ forwardedRef?: ((instance: any) => void) | React.RefObject<any> | null | undefined;
13
+ } & import("@atlaskit/theme").AtlaskitThemeProps) | (Pick<Props & WrappedComponentProps<"intl">, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled"> & {
14
+ forwardedRef?: ((instance: any) => void) | React.RefObject<any> | null | undefined;
15
+ } & import("@atlaskit/theme").CustomThemeProps) | (Pick<Props & WrappedComponentProps<"intl">, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled"> & {
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"> & {
10
18
  theme?: any;
11
- } & import("@atlaskit/theme").AtlaskitThemeProps) | (Pick<Props, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled"> & {
19
+ } & import("@atlaskit/theme").AtlaskitThemeProps) | (Pick<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>, "text" | "className" | "forwardedRef" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled"> & {
12
20
  theme?: any;
13
- } & import("@atlaskit/theme").CustomThemeProps) | (Pick<Props, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled"> & {
21
+ } & import("@atlaskit/theme").CustomThemeProps) | (Pick<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>, "text" | "className" | "forwardedRef" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled"> & {
14
22
  theme?: any;
15
23
  } & import("@atlaskit/theme").NoThemeProps)>;
16
24
  export default _default;
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
- import { InjectedIntlProps } from 'react-intl';
2
+ import { WrappedComponentProps } from 'react-intl-next';
3
3
  declare type Props = {
4
4
  content: string;
5
5
  };
6
- declare const _default: React.ComponentClass<Props, any> & {
7
- WrappedComponent: ReactIntl.ComponentConstructor<Props & InjectedIntlProps>;
6
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
7
+ WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
8
8
  };
9
9
  export default _default;
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
- import { InjectedIntlProps } from 'react-intl';
2
+ import { WrappedComponentProps } from 'react-intl-next';
3
3
  export interface Props {
4
4
  timestamp: string;
5
5
  parentIsIncompleteTask?: boolean;
6
6
  }
7
- declare const _default: React.ComponentClass<Props, any> & {
8
- WrappedComponent: ReactIntl.ComponentConstructor<Props & InjectedIntlProps>;
7
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
8
+ WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
9
9
  };
10
10
  export default _default;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { NodeProps } from '../types';
2
3
  export default function DecisionItem({ children, dataAttributes }: NodeProps): JSX.Element;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  export default function Doc(props: any): JSX.Element;
2
3
  export declare function DocWithSelectAllTrap(props: any): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { EventHandlers } from '@atlaskit/editor-common';
2
3
  import { RichMediaLayout } from '@atlaskit/adf-schema';
3
4
  import { RendererAppearance } from '../../ui/Renderer/types';
@@ -1,13 +1,13 @@
1
1
  import React from 'react';
2
- import { InjectedIntlProps } from 'react-intl';
2
+ import { WrappedComponentProps } from 'react-intl-next';
3
3
  export declare const HeadingAnchorWrapperClassName = "heading-anchor-wrapper";
4
4
  declare type Props = {
5
5
  onCopyText: () => Promise<void>;
6
6
  enableNestedHeaderLinks?: boolean;
7
7
  level: number;
8
8
  };
9
- declare type HeadingAnchorProps = Props & React.Props<any> & InjectedIntlProps;
10
- declare const _default: React.ComponentClass<Props & React.Props<any>, any> & {
11
- WrappedComponent: ReactIntl.ComponentConstructor<HeadingAnchorProps>;
9
+ declare type HeadingAnchorProps = Props & React.Props<any> & WrappedComponentProps;
10
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<HeadingAnchorProps>> & {
11
+ WrappedComponent: React.ComponentType<HeadingAnchorProps>;
12
12
  };
13
13
  export default _default;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Node as PMNode } from 'prosemirror-model';
2
3
  import { NodeProps } from '../types';
3
4
  import { HeadingAnchorLinksProps } from '../../ui/Renderer/types';
@@ -26,22 +26,22 @@ import TableRow from './tableRow';
26
26
  import UnknownBlock from './unknownBlock';
27
27
  import Loadable from 'react-loadable';
28
28
  import EmbedCard from './embedCard';
29
- declare const CodeBlock: (React.ComponentClass<import("styled-components").ThemedOuterStyledProps<(Pick<import("./codeBlock").Props, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled"> & {
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"> & {
30
30
  theme?: any;
31
- } & import("@atlaskit/theme").AtlaskitThemeProps) | (Pick<import("./codeBlock").Props, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled"> & {
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"> & {
32
32
  theme?: any;
33
- } & import("@atlaskit/theme").CustomThemeProps) | (Pick<import("./codeBlock").Props, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled"> & {
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"> & {
34
34
  theme?: any;
35
- } & import("@atlaskit/theme").NoThemeProps), any>, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("styled-components").ThemedOuterStyledProps<(Pick<import("./codeBlock").Props, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled"> & {
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"> & {
36
36
  theme?: any;
37
- } & import("@atlaskit/theme").AtlaskitThemeProps) | (Pick<import("./codeBlock").Props, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled"> & {
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"> & {
38
38
  theme?: any;
39
- } & import("@atlaskit/theme").CustomThemeProps) | (Pick<import("./codeBlock").Props, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled"> & {
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"> & {
40
40
  theme?: any;
41
41
  } & import("@atlaskit/theme").NoThemeProps), any>> & Loadable.LoadableComponent);
42
42
  declare const TaskItem: (React.ComponentClass<import("../types").NodeProps<import("./taskItem").Props>, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("../types").NodeProps<import("./taskItem").Props>> & Loadable.LoadableComponent);
43
43
  declare const DecisionItem: (React.ComponentClass<import("../types").NodeMeta, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("../types").NodeMeta> & Loadable.LoadableComponent);
44
- declare const Date: (React.ComponentClass<import("./date").Props, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("./date").Props> & Loadable.LoadableComponent);
44
+ 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
45
  declare const Status: (React.ComponentClass<import("./status").Props, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("./status").Props> & Loadable.LoadableComponent);
46
46
  declare const Emoji: (React.ComponentClass<import("./emoji").EmojiProps, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("./emoji").EmojiProps> & Loadable.LoadableComponent);
47
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);
@@ -62,7 +62,7 @@ declare const Media: (React.ComponentClass<import("./media").MediaProps, any> &
62
62
  declare const MediaGroup: (React.ComponentClass<import("./mediaGroup").MediaGroupProps, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("./mediaGroup").MediaGroupProps> & Loadable.LoadableComponent);
63
63
  declare const MediaInline: (React.ComponentClass<import("./mediaInline").MediaInlineProps, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("./mediaInline").MediaInlineProps> & Loadable.LoadableComponent);
64
64
  declare const Mention: (React.ComponentClass<import("./mention").Props, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("./mention").Props> & Loadable.LoadableComponent);
65
- declare const Expand: (React.ComponentClass<import("../../ui/Expand").ExpandProps, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("../../ui/Expand").ExpandProps> & Loadable.LoadableComponent);
65
+ 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
66
  export declare const nodeToReact: {
67
67
  [key: string]: React.ComponentType<any>;
68
68
  };
@@ -1,7 +1,7 @@
1
1
  import { RichMediaLayout as MediaSingleLayout } from '@atlaskit/adf-schema';
2
2
  import { EventHandlers } from '@atlaskit/editor-common';
3
3
  import { default as React } from 'react';
4
- import { InjectedIntlProps } from 'react-intl';
4
+ import { WrappedComponentProps } from 'react-intl-next';
5
5
  import { AnalyticsEventPayload } from '../../../analytics/events';
6
6
  import { RendererAppearance } from '../../../ui/Renderer/types';
7
7
  import { MediaFeatureFlags } from '@atlaskit/media-common';
@@ -21,7 +21,7 @@ export interface State {
21
21
  height?: number;
22
22
  }
23
23
  export declare const getMediaContainerWidth: (currentContainerWidth: number, layout: MediaSingleLayout) => number;
24
- declare const _default: React.ComponentClass<Props, any> & {
25
- WrappedComponent: ReactIntl.ComponentConstructor<Props & InjectedIntlProps>;
24
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
25
+ WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
26
26
  };
27
27
  export default _default;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { NodeProps } from '../types';
2
3
  export default function Paragraph({ children, dataAttributes }: NodeProps): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface Props {
2
3
  text: string;
3
4
  allowPlaceholderText?: boolean;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export default function Rule(): JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SharedTableProps } from './types';
2
3
  export interface ScaleOptions {
3
4
  renderWidth: number;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare type Props = {
2
3
  startPos: number;
3
4
  endPos: number;
@@ -1,6 +1,12 @@
1
- import { MediaFeatureFlags } from '@atlaskit/media-common';
1
+ import { MediaClientConfig } from '@atlaskit/media-core';
2
+ import { MediaFeatureFlags, SSR } from '@atlaskit/media-common';
3
+ export declare type MediaSSR = {
4
+ mode: SSR;
5
+ config: MediaClientConfig;
6
+ };
2
7
  export interface MediaOptions {
3
8
  allowLinking?: boolean;
4
9
  enableDownloadButton?: boolean;
5
10
  featureFlags?: MediaFeatureFlags;
11
+ ssr?: MediaSSR;
6
12
  }
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { AnalyticsEventPayload } from '../analytics/events';
3
- import { InjectedIntlProps } from 'react-intl';
3
+ import { WrappedComponentProps } from 'react-intl-next';
4
4
  export interface StyleProps {
5
5
  expanded?: boolean;
6
6
  focused?: boolean;
@@ -14,7 +14,7 @@ export interface ExpandProps {
14
14
  fireAnalyticsEvent?: (event: AnalyticsEventPayload) => void;
15
15
  nestedHeaderIds?: Array<string>;
16
16
  }
17
- declare const _default: React.ComponentClass<ExpandProps, any> & {
18
- WrappedComponent: ReactIntl.ComponentConstructor<ExpandProps & InjectedIntlProps>;
17
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<ExpandProps & WrappedComponentProps<"intl">>> & {
18
+ WrappedComponent: React.ComponentType<ExpandProps & WrappedComponentProps<"intl">>;
19
19
  };
20
20
  export default _default;
@@ -9,6 +9,7 @@ import { ImageStatus, ContextIdentifierProvider } from '@atlaskit/editor-common'
9
9
  import { MediaFeatureFlags } from '@atlaskit/media-common';
10
10
  import { RendererAppearance } from './Renderer/types';
11
11
  import { RendererContext } from '../react/types';
12
+ import { MediaSSR } from '../types/mediaOptions';
12
13
  export declare type MediaProvider = {
13
14
  viewMediaClientConfig: MediaClientConfig;
14
15
  };
@@ -38,6 +39,7 @@ export interface MediaCardProps {
38
39
  alt?: string;
39
40
  featureFlags?: MediaFeatureFlags;
40
41
  shouldEnableDownloadButton?: boolean;
42
+ ssr?: MediaSSR;
41
43
  }
42
44
  export interface State {
43
45
  mediaClientConfig?: MediaClientConfig;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  /**
2
3
  * Inline Script that updates breakout node width on client side,
3
4
  * before main JavaScript bundle is ready.
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { SortOrder } from '@atlaskit/editor-common';
2
3
  export declare const TableSortIconDataUrl: string;
3
4
  export declare enum StatusClassNames {
@@ -38,7 +38,7 @@ export interface RendererProps {
38
38
  innerRef?: React.RefObject<HTMLDivElement>;
39
39
  useSpecBasedValidator?: boolean;
40
40
  allowCopyToClipboard?: boolean;
41
- UNSAFE_allowCustomPanels?: boolean;
41
+ allowCustomPanels?: boolean;
42
42
  analyticsEventSeverityTracking?: {
43
43
  enabled: boolean;
44
44
  severityNormalThreshold: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "82.2.0",
3
+ "version": "84.1.1",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -24,41 +24,41 @@
24
24
  }
25
25
  },
26
26
  "dependencies": {
27
- "@atlaskit/adf-schema": "^19.3.0",
28
- "@atlaskit/adf-utils": "^14.3.0",
27
+ "@atlaskit/adf-schema": "^20.1.0",
28
+ "@atlaskit/adf-utils": "^14.4.0",
29
29
  "@atlaskit/analytics-listeners": "^8.0.0",
30
30
  "@atlaskit/analytics-namespaced-context": "^6.3.0",
31
31
  "@atlaskit/analytics-next": "^8.2.0",
32
32
  "@atlaskit/button": "^16.1.0",
33
33
  "@atlaskit/code": "^14.3.0",
34
- "@atlaskit/editor-common": "^60.3.0",
35
- "@atlaskit/editor-json-transformer": "^8.6.0",
34
+ "@atlaskit/editor-common": "^62.1.0",
35
+ "@atlaskit/editor-json-transformer": "^8.7.0",
36
36
  "@atlaskit/editor-shared-styles": "^1.6.0",
37
37
  "@atlaskit/icon": "^21.9.0",
38
- "@atlaskit/media-card": "^72.0.0",
38
+ "@atlaskit/media-card": "^73.0.0",
39
39
  "@atlaskit/media-client": "^14.3.0",
40
- "@atlaskit/media-common": "^2.9.0",
40
+ "@atlaskit/media-common": "^2.10.0",
41
41
  "@atlaskit/media-filmstrip": "^42.1.0",
42
- "@atlaskit/media-viewer": "^45.8.0",
43
- "@atlaskit/status": "^0.11.0",
42
+ "@atlaskit/media-viewer": "^46.0.0",
43
+ "@atlaskit/status": "^1.0.0",
44
44
  "@atlaskit/task-decision": "^17.2.0",
45
45
  "@atlaskit/theme": "^12.0.0",
46
46
  "@atlaskit/tooltip": "^17.5.0",
47
47
  "@atlaskit/width-detector": "^3.0.0",
48
48
  "@babel/runtime": "^7.0.0",
49
- "lodash": "^4.17.15",
49
+ "lodash": "^4.17.21",
50
50
  "memoize-one": "^6.0.0",
51
- "prosemirror-model": "1.11.0",
52
- "prosemirror-transform": "1.2.8",
51
+ "prosemirror-model": "1.14.3",
52
+ "prosemirror-transform": "1.3.2",
53
53
  "prosemirror-utils": "^1.0.0-0",
54
54
  "react-intl": "^2.6.0",
55
+ "react-intl-next": "npm:react-intl@^5.18.1",
55
56
  "react-loadable": "^5.1.0",
56
- "url-parse": "^1.4.5",
57
57
  "uuid": "^3.1.0"
58
58
  },
59
59
  "peerDependencies": {
60
60
  "@atlaskit/media-core": "^32.2.0",
61
- "@atlaskit/smart-card": "^16.2.0",
61
+ "@atlaskit/smart-card": "^17.0.0",
62
62
  "react": "^16.8.0",
63
63
  "react-dom": "^16.8.0",
64
64
  "styled-components": "^3.2.6"
@@ -67,22 +67,22 @@
67
67
  "@atlaskit/analytics-gas-types": "^5.0.5",
68
68
  "@atlaskit/avatar": "^20.5.0",
69
69
  "@atlaskit/build-utils": "^2.6.2",
70
- "@atlaskit/css-reset": "^6.2.0",
70
+ "@atlaskit/css-reset": "^6.3.0",
71
71
  "@atlaskit/docs": "*",
72
- "@atlaskit/editor-core": "^151.2.0",
73
- "@atlaskit/editor-test-helpers": "^15.5.0",
74
- "@atlaskit/field-range": "^9.0.0",
72
+ "@atlaskit/editor-core": "^153.1.0",
73
+ "@atlaskit/editor-test-helpers": "^16.0.0",
75
74
  "@atlaskit/logo": "^13.5.0",
76
75
  "@atlaskit/media-core": "^32.2.0",
77
76
  "@atlaskit/media-integration-test-helpers": "^2.5.0",
78
- "@atlaskit/media-test-helpers": "^28.8.0",
77
+ "@atlaskit/media-test-helpers": "^29.0.0",
79
78
  "@atlaskit/mention": "^19.7.0",
80
79
  "@atlaskit/navigation-next": "^9.0.0",
81
- "@atlaskit/profilecard": "^15.8.0",
80
+ "@atlaskit/profilecard": "^16.0.0",
82
81
  "@atlaskit/radio": "^5.3.0",
83
- "@atlaskit/smart-card": "^16.2.0",
84
- "@atlaskit/ssr": "^0.2.0",
85
- "@atlaskit/util-data-test": "^16.0.0",
82
+ "@atlaskit/range": "^5.0.11",
83
+ "@atlaskit/smart-card": "^17.0.0",
84
+ "@atlaskit/ssr": "*",
85
+ "@atlaskit/util-data-test": "^17.0.0",
86
86
  "@atlaskit/visual-regression": "*",
87
87
  "@atlaskit/webdriver-runner": "*",
88
88
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",