@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.
- package/CHANGELOG.md +97 -0
- package/dist/cjs/actions/matches-utils.js +1 -1
- package/dist/cjs/analytics/enums.js +2 -1
- package/dist/cjs/analytics/events.js +1 -1
- package/dist/cjs/i18n/index.js +26 -26
- package/dist/cjs/index.js +8 -8
- package/dist/cjs/messages.js +4 -4
- package/dist/cjs/react/index.js +7 -4
- package/dist/cjs/react/marks/annotation.js +1 -1
- package/dist/cjs/react/marks/breakout.js +1 -1
- package/dist/cjs/react/marks/code.js +3 -3
- package/dist/cjs/react/marks/fragment.js +21 -0
- package/dist/cjs/react/marks/index.js +28 -19
- package/dist/cjs/react/marks/textColor.js +15 -4
- package/dist/cjs/react/nodes/codeBlock.js +2 -2
- package/dist/cjs/react/nodes/codeBlockCopyButton.js +2 -2
- package/dist/cjs/react/nodes/copy-text-provider.js +1 -1
- package/dist/cjs/react/nodes/date.js +2 -2
- package/dist/cjs/react/nodes/doc.js +1 -1
- package/dist/cjs/react/nodes/extension.js +1 -1
- package/dist/cjs/react/nodes/heading-anchor.js +2 -2
- package/dist/cjs/react/nodes/heading.js +2 -4
- package/dist/cjs/react/nodes/index.js +31 -22
- package/dist/cjs/react/nodes/media.js +4 -2
- package/dist/cjs/react/nodes/mediaSingle/index.js +3 -3
- package/dist/cjs/react/nodes/panel.js +4 -6
- package/dist/cjs/react/nodes/table/colgroup.js +1 -1
- package/dist/cjs/react/nodes/table/sticky.js +1 -1
- package/dist/cjs/react/nodes/tableCell.js +1 -1
- package/dist/cjs/react/renderer-node.js +1 -1
- package/dist/cjs/react/utils/links.js +1 -1
- package/dist/cjs/render-document.js +21 -1
- package/dist/cjs/renderer-context.js +1 -1
- package/dist/cjs/steps/index.js +2 -2
- package/dist/cjs/text/nodes/index.js +1 -1
- package/dist/cjs/ui/Expand.js +2 -2
- package/dist/cjs/ui/MediaCard.js +12 -6
- package/dist/cjs/ui/Renderer/breakout-ssr.js +1 -1
- package/dist/cjs/ui/Renderer/index.js +11 -11
- package/dist/cjs/ui/Renderer/style.js +9 -7
- package/dist/cjs/ui/RendererActionsContext/index.js +1 -1
- package/dist/cjs/ui/SortingIcon.js +2 -2
- package/dist/cjs/ui/active-header-id-provider.js +1 -1
- package/dist/cjs/ui/annotations/context.js +1 -1
- package/dist/cjs/ui/annotations/draft/component.js +1 -1
- package/dist/cjs/ui/annotations/draft/index.js +4 -4
- package/dist/cjs/ui/annotations/draft/text.js +1 -1
- package/dist/cjs/ui/annotations/hooks/index.js +8 -8
- package/dist/cjs/ui/annotations/hooks/use-events.js +4 -2
- package/dist/cjs/ui/annotations/index.js +5 -5
- package/dist/cjs/utils.js +2 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/analytics/enums.js +1 -0
- package/dist/es2019/messages.js +1 -1
- package/dist/es2019/react/index.js +7 -3
- package/dist/es2019/react/marks/code.js +1 -1
- package/dist/es2019/react/marks/fragment.js +10 -0
- package/dist/es2019/react/marks/index.js +4 -2
- package/dist/es2019/react/marks/textColor.js +7 -4
- package/dist/es2019/react/nodes/codeBlock.js +1 -1
- package/dist/es2019/react/nodes/codeBlockCopyButton.js +1 -1
- package/dist/es2019/react/nodes/date.js +1 -1
- package/dist/es2019/react/nodes/heading-anchor.js +1 -1
- package/dist/es2019/react/nodes/heading.js +2 -3
- package/dist/es2019/react/nodes/media.js +4 -2
- package/dist/es2019/react/nodes/mediaSingle/index.js +1 -1
- package/dist/es2019/react/nodes/panel.js +5 -6
- package/dist/es2019/render-document.js +19 -1
- package/dist/es2019/ui/Expand.js +1 -1
- package/dist/es2019/ui/MediaCard.js +11 -5
- package/dist/es2019/ui/Renderer/index.js +10 -10
- package/dist/es2019/ui/Renderer/style.js +4 -2
- package/dist/es2019/ui/SortingIcon.js +1 -1
- package/dist/es2019/ui/annotations/hooks/use-events.js +3 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/analytics/enums.js +1 -0
- package/dist/esm/messages.js +1 -1
- package/dist/esm/react/index.js +7 -4
- package/dist/esm/react/marks/code.js +1 -1
- package/dist/esm/react/marks/fragment.js +10 -0
- package/dist/esm/react/marks/index.js +4 -2
- package/dist/esm/react/marks/textColor.js +8 -4
- package/dist/esm/react/nodes/codeBlock.js +1 -1
- package/dist/esm/react/nodes/codeBlockCopyButton.js +1 -1
- package/dist/esm/react/nodes/date.js +1 -1
- package/dist/esm/react/nodes/heading-anchor.js +1 -1
- package/dist/esm/react/nodes/heading.js +2 -3
- package/dist/esm/react/nodes/media.js +4 -2
- package/dist/esm/react/nodes/mediaSingle/index.js +1 -1
- package/dist/esm/react/nodes/panel.js +5 -6
- package/dist/esm/render-document.js +19 -1
- package/dist/esm/ui/Expand.js +1 -1
- package/dist/esm/ui/MediaCard.js +11 -5
- package/dist/esm/ui/Renderer/index.js +10 -10
- package/dist/esm/ui/Renderer/style.js +4 -3
- package/dist/esm/ui/SortingIcon.js +1 -1
- package/dist/esm/ui/annotations/hooks/use-events.js +3 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/analytics/enums.d.ts +1 -0
- package/dist/types/analytics/events.d.ts +5 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/react/index.d.ts +1 -0
- package/dist/types/react/marks/alignment.d.ts +1 -0
- package/dist/types/react/marks/annotation.d.ts +1 -0
- package/dist/types/react/marks/code.d.ts +6 -6
- package/dist/types/react/marks/data-consumer.d.ts +1 -0
- package/dist/types/react/marks/em.d.ts +1 -0
- package/dist/types/react/marks/fragment.d.ts +4 -0
- package/dist/types/react/marks/indentation.d.ts +1 -0
- package/dist/types/react/marks/index.d.ts +2 -1
- package/dist/types/react/marks/link.d.ts +1 -0
- package/dist/types/react/marks/strike.d.ts +1 -0
- package/dist/types/react/marks/strong.d.ts +1 -0
- package/dist/types/react/marks/subsup.d.ts +1 -0
- package/dist/types/react/marks/textColor.d.ts +1 -0
- package/dist/types/react/marks/underline.d.ts +1 -0
- package/dist/types/react/marks/unsupportedMark.d.ts +1 -0
- package/dist/types/react/marks/unsupportedNodeAttribute.d.ts +1 -0
- package/dist/types/react/nodes/blockCard.d.ts +1 -0
- package/dist/types/react/nodes/caption.d.ts +1 -0
- package/dist/types/react/nodes/codeBlock.d.ts +11 -3
- package/dist/types/react/nodes/codeBlockCopyButton.d.ts +3 -3
- package/dist/types/react/nodes/date.d.ts +3 -3
- package/dist/types/react/nodes/decisionItem.d.ts +1 -0
- package/dist/types/react/nodes/doc.d.ts +1 -0
- package/dist/types/react/nodes/embedCard.d.ts +1 -0
- package/dist/types/react/nodes/heading-anchor.d.ts +4 -4
- package/dist/types/react/nodes/heading.d.ts +1 -0
- package/dist/types/react/nodes/index.d.ts +8 -8
- package/dist/types/react/nodes/mediaSingle/index.d.ts +3 -3
- package/dist/types/react/nodes/paragraph.d.ts +1 -0
- package/dist/types/react/nodes/placeholder.d.ts +1 -0
- package/dist/types/react/nodes/rule.d.ts +1 -0
- package/dist/types/react/nodes/table/colgroup.d.ts +1 -0
- package/dist/types/react/nodes/text-wrapper.d.ts +1 -0
- package/dist/types/types/mediaOptions.d.ts +7 -1
- package/dist/types/ui/Expand.d.ts +3 -3
- package/dist/types/ui/MediaCard.d.ts +2 -0
- package/dist/types/ui/Renderer/breakout-ssr.d.ts +1 -0
- package/dist/types/ui/SortingIcon.d.ts +1 -0
- package/dist/types/ui/renderer-props.d.ts +1 -1
- package/package.json +23 -23
|
@@ -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 &
|
|
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
|
|
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
|
|
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 {
|
|
2
|
+
import { WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
declare type Props = {
|
|
4
4
|
content: string;
|
|
5
5
|
};
|
|
6
|
-
declare const _default: React.
|
|
7
|
-
WrappedComponent:
|
|
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 {
|
|
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.
|
|
8
|
-
WrappedComponent:
|
|
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,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
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> &
|
|
10
|
-
declare const _default: React.
|
|
11
|
-
WrappedComponent:
|
|
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;
|
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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 {
|
|
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.
|
|
25
|
-
WrappedComponent:
|
|
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,6 +1,12 @@
|
|
|
1
|
-
import {
|
|
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 {
|
|
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.
|
|
18
|
-
WrappedComponent:
|
|
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;
|
|
@@ -38,7 +38,7 @@ export interface RendererProps {
|
|
|
38
38
|
innerRef?: React.RefObject<HTMLDivElement>;
|
|
39
39
|
useSpecBasedValidator?: boolean;
|
|
40
40
|
allowCopyToClipboard?: boolean;
|
|
41
|
-
|
|
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": "
|
|
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": "^
|
|
28
|
-
"@atlaskit/adf-utils": "^14.
|
|
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": "^
|
|
35
|
-
"@atlaskit/editor-json-transformer": "^8.
|
|
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": "^
|
|
38
|
+
"@atlaskit/media-card": "^73.0.0",
|
|
39
39
|
"@atlaskit/media-client": "^14.3.0",
|
|
40
|
-
"@atlaskit/media-common": "^2.
|
|
40
|
+
"@atlaskit/media-common": "^2.10.0",
|
|
41
41
|
"@atlaskit/media-filmstrip": "^42.1.0",
|
|
42
|
-
"@atlaskit/media-viewer": "^
|
|
43
|
-
"@atlaskit/status": "^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.
|
|
49
|
+
"lodash": "^4.17.21",
|
|
50
50
|
"memoize-one": "^6.0.0",
|
|
51
|
-
"prosemirror-model": "1.
|
|
52
|
-
"prosemirror-transform": "1.2
|
|
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": "^
|
|
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.
|
|
70
|
+
"@atlaskit/css-reset": "^6.3.0",
|
|
71
71
|
"@atlaskit/docs": "*",
|
|
72
|
-
"@atlaskit/editor-core": "^
|
|
73
|
-
"@atlaskit/editor-test-helpers": "^
|
|
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": "^
|
|
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": "^
|
|
80
|
+
"@atlaskit/profilecard": "^16.0.0",
|
|
82
81
|
"@atlaskit/radio": "^5.3.0",
|
|
83
|
-
"@atlaskit/
|
|
84
|
-
"@atlaskit/
|
|
85
|
-
"@atlaskit/
|
|
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",
|