@atlaskit/renderer 130.2.9 → 130.2.11
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 +14 -0
- package/dist/cjs/actions/index.js +3 -6
- package/dist/cjs/react/marks/alignment.js +1 -1
- package/dist/cjs/react/marks/border.js +1 -1
- package/dist/cjs/react/marks/breakout.js +1 -1
- package/dist/cjs/react/marks/code.js +3 -1
- package/dist/cjs/react/marks/link.js +1 -1
- package/dist/cjs/react/nodes/blockCard.js +1 -1
- package/dist/cjs/react/nodes/codeBlock/codeBlock.js +2 -1
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockButtonContainer.js +1 -1
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockContainer.js +1 -1
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockCopyButton.js +2 -1
- package/dist/cjs/react/nodes/codeBlock/components/codeBlockWrapButton.js +2 -1
- package/dist/cjs/react/nodes/codeBlock/windowedCodeBlock.js +1 -1
- package/dist/cjs/react/nodes/date.js +2 -0
- package/dist/cjs/react/nodes/embedCard.js +1 -1
- package/dist/cjs/react/nodes/emoji.js +2 -1
- package/dist/cjs/react/nodes/extensionFrame.js +1 -1
- package/dist/cjs/react/nodes/heading-anchor.js +3 -2
- package/dist/cjs/react/nodes/layoutColumn.js +1 -1
- package/dist/cjs/react/nodes/media/index.js +1 -1
- package/dist/cjs/react/nodes/mediaInline.js +4 -1
- package/dist/cjs/react/nodes/mediaSingle/index.js +4 -1
- package/dist/cjs/react/nodes/mention.js +3 -2
- package/dist/cjs/react/nodes/multiBodiedExtension.js +1 -1
- package/dist/cjs/react/nodes/panel.js +1 -1
- package/dist/cjs/react/nodes/status.js +3 -2
- package/dist/cjs/react/nodes/table/sticky.js +1 -3
- package/dist/cjs/react/nodes/tableNew.js +3 -1
- package/dist/cjs/react/utils/getCardClickHandler.js +1 -0
- package/dist/cjs/renderer-context.js +2 -0
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/actions/index.js +1 -3
- package/dist/es2019/react/marks/alignment.js +1 -1
- package/dist/es2019/react/marks/border.js +1 -1
- package/dist/es2019/react/marks/breakout.js +2 -2
- package/dist/es2019/react/marks/code.js +3 -1
- package/dist/es2019/react/marks/link.js +2 -2
- package/dist/es2019/react/nodes/blockCard.js +2 -2
- package/dist/es2019/react/nodes/codeBlock/codeBlock.js +2 -1
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockButtonContainer.js +1 -1
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockContainer.js +1 -1
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockCopyButton.js +2 -1
- package/dist/es2019/react/nodes/codeBlock/components/codeBlockWrapButton.js +2 -1
- package/dist/es2019/react/nodes/codeBlock/windowedCodeBlock.js +1 -1
- package/dist/es2019/react/nodes/date.js +2 -0
- package/dist/es2019/react/nodes/embedCard.js +2 -2
- package/dist/es2019/react/nodes/emoji.js +2 -1
- package/dist/es2019/react/nodes/extensionFrame.js +1 -1
- package/dist/es2019/react/nodes/heading-anchor.js +4 -1
- package/dist/es2019/react/nodes/layoutColumn.js +1 -1
- package/dist/es2019/react/nodes/media/index.js +1 -1
- package/dist/es2019/react/nodes/mediaInline.js +4 -1
- package/dist/es2019/react/nodes/mediaSingle/index.js +4 -1
- package/dist/es2019/react/nodes/mention.js +3 -2
- package/dist/es2019/react/nodes/multiBodiedExtension.js +1 -1
- package/dist/es2019/react/nodes/panel.js +2 -2
- package/dist/es2019/react/nodes/status.js +3 -2
- package/dist/es2019/react/nodes/table/sticky.js +2 -4
- package/dist/es2019/react/nodes/tableNew.js +3 -1
- package/dist/es2019/react/utils/getCardClickHandler.js +2 -0
- package/dist/es2019/renderer-context.js +2 -0
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/actions/index.js +3 -6
- package/dist/esm/react/marks/alignment.js +1 -1
- package/dist/esm/react/marks/border.js +1 -1
- package/dist/esm/react/marks/breakout.js +2 -2
- package/dist/esm/react/marks/code.js +3 -1
- package/dist/esm/react/marks/link.js +2 -2
- package/dist/esm/react/nodes/blockCard.js +2 -2
- package/dist/esm/react/nodes/codeBlock/codeBlock.js +2 -1
- package/dist/esm/react/nodes/codeBlock/components/codeBlockButtonContainer.js +1 -1
- package/dist/esm/react/nodes/codeBlock/components/codeBlockContainer.js +1 -1
- package/dist/esm/react/nodes/codeBlock/components/codeBlockCopyButton.js +2 -1
- package/dist/esm/react/nodes/codeBlock/components/codeBlockWrapButton.js +2 -1
- package/dist/esm/react/nodes/codeBlock/windowedCodeBlock.js +1 -1
- package/dist/esm/react/nodes/date.js +2 -0
- package/dist/esm/react/nodes/embedCard.js +2 -2
- package/dist/esm/react/nodes/emoji.js +2 -1
- package/dist/esm/react/nodes/extensionFrame.js +1 -1
- package/dist/esm/react/nodes/heading-anchor.js +3 -2
- package/dist/esm/react/nodes/layoutColumn.js +1 -1
- package/dist/esm/react/nodes/media/index.js +1 -1
- package/dist/esm/react/nodes/mediaInline.js +4 -1
- package/dist/esm/react/nodes/mediaSingle/index.js +4 -1
- package/dist/esm/react/nodes/mention.js +3 -2
- package/dist/esm/react/nodes/multiBodiedExtension.js +1 -1
- package/dist/esm/react/nodes/panel.js +2 -2
- package/dist/esm/react/nodes/status.js +3 -2
- package/dist/esm/react/nodes/table/sticky.js +2 -4
- package/dist/esm/react/nodes/tableNew.js +3 -1
- package/dist/esm/react/utils/getCardClickHandler.js +2 -0
- package/dist/esm/renderer-context.js +2 -0
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/dist/types/actions/index.d.ts +1 -1
- package/dist/types/react/hooks/use-in-viewport.d.ts +2 -1
- package/dist/types/react/marks/code.d.ts +6 -6
- package/dist/types/react/nodes/codeBlock/codeBlock.d.ts +9 -4
- package/dist/types/react/nodes/codeBlock/components/codeBlockCopyButton.d.ts +5 -4
- package/dist/types/react/nodes/codeBlock/components/codeBlockWrapButton.d.ts +5 -5
- package/dist/types/react/nodes/codeBlock/components/lightWeightCodeBlock.d.ts +2 -1
- package/dist/types/react/nodes/date.d.ts +2 -2
- package/dist/types/react/nodes/embedCard.d.ts +2 -1
- package/dist/types/react/nodes/emoji.d.ts +3 -3
- package/dist/types/react/nodes/heading-anchor.d.ts +3 -3
- package/dist/types/react/nodes/mediaGroup.d.ts +3 -3
- package/dist/types/react/nodes/mediaInline.d.ts +3 -3
- package/dist/types/react/nodes/mediaSingle/index.d.ts +3 -3
- package/dist/types/react/nodes/mention.d.ts +2 -2
- package/dist/types/react/nodes/status.d.ts +2 -2
- package/dist/types/react/utils/appearance.d.ts +1 -1
- package/dist/types-ts4.5/actions/index.d.ts +1 -1
- package/dist/types-ts4.5/react/hooks/use-in-viewport.d.ts +2 -1
- package/dist/types-ts4.5/react/marks/code.d.ts +6 -6
- package/dist/types-ts4.5/react/nodes/codeBlock/codeBlock.d.ts +9 -4
- package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockCopyButton.d.ts +5 -4
- package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockWrapButton.d.ts +5 -5
- package/dist/types-ts4.5/react/nodes/codeBlock/components/lightWeightCodeBlock.d.ts +2 -1
- package/dist/types-ts4.5/react/nodes/date.d.ts +2 -2
- package/dist/types-ts4.5/react/nodes/embedCard.d.ts +2 -1
- package/dist/types-ts4.5/react/nodes/emoji.d.ts +3 -3
- package/dist/types-ts4.5/react/nodes/heading-anchor.d.ts +3 -3
- package/dist/types-ts4.5/react/nodes/mediaGroup.d.ts +3 -3
- package/dist/types-ts4.5/react/nodes/mediaInline.d.ts +3 -3
- package/dist/types-ts4.5/react/nodes/mediaSingle/index.d.ts +3 -3
- package/dist/types-ts4.5/react/nodes/mention.d.ts +2 -2
- package/dist/types-ts4.5/react/nodes/status.d.ts +2 -2
- package/dist/types-ts4.5/react/utils/appearance.d.ts +1 -1
- package/package.json +6 -6
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import { jsx } from '@emotion/react';
|
|
6
|
+
import type { FC } from 'react';
|
|
6
7
|
import type { SmartLinksOptions } from '../../types/smartLinksOptions';
|
|
7
8
|
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
8
9
|
import type { RichMediaLayout } from '@atlaskit/adf-schema';
|
|
@@ -23,5 +24,5 @@ type EmbedCardInternalProps = {
|
|
|
23
24
|
width?: number;
|
|
24
25
|
};
|
|
25
26
|
export declare const EmbedOrBlockCardInternal: ({ url, data, eventHandlers, portal, originalHeight, originalWidth, width: embedWidth, layout, rendererAppearance, isInsideOfBlockNode, smartLinks, isInsideOfInlineExtension, onSetLinkTarget, }: EmbedCardInternalProps) => jsx.JSX.Element;
|
|
26
|
-
declare const EmbedCardWithCondition:
|
|
27
|
+
declare const EmbedCardWithCondition: FC<EmbedCardInternalProps>;
|
|
27
28
|
export default EmbedCardWithCondition;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { EmojiResourceConfig } from '@atlaskit/emoji/resource';
|
|
2
|
-
import type { FC } from 'react';
|
|
2
|
+
import type { FC, NamedExoticComponent } from 'react';
|
|
3
3
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
4
4
|
import type { EmojiId } from '@atlaskit/emoji/types';
|
|
5
5
|
import type { MarkDataAttributes } from '../../ui/annotations/element/useInlineAnnotationProps';
|
|
@@ -12,5 +12,5 @@ export interface EmojiProps extends EmojiId, EmojiAttributes, MarkDataAttributes
|
|
|
12
12
|
showTooltip?: boolean;
|
|
13
13
|
}
|
|
14
14
|
export declare const EmojiItemComponent: FC<EmojiProps>;
|
|
15
|
-
declare const
|
|
16
|
-
export default
|
|
15
|
+
declare const _default_1: NamedExoticComponent<EmojiProps>;
|
|
16
|
+
export default _default_1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl';
|
|
2
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
3
3
|
export declare const HeadingAnchorWrapperClassName = "heading-anchor-wrapper";
|
|
4
4
|
type Props = {
|
|
5
5
|
enableNestedHeaderLinks?: boolean;
|
|
@@ -9,7 +9,7 @@ type Props = {
|
|
|
9
9
|
onCopyText: () => Promise<void>;
|
|
10
10
|
};
|
|
11
11
|
type HeadingAnchorProps = Props & React.PropsWithChildren<unknown> & WrappedComponentProps;
|
|
12
|
-
declare const
|
|
12
|
+
declare const _default_1: React.FC<WithIntlProps<HeadingAnchorProps>> & {
|
|
13
13
|
WrappedComponent: React.ComponentType<HeadingAnchorProps>;
|
|
14
14
|
};
|
|
15
|
-
export default
|
|
15
|
+
export default _default_1;
|
|
@@ -20,10 +20,10 @@ export default class MediaGroup extends PureComponent<MediaGroupProps, MediaGrou
|
|
|
20
20
|
private handleSize;
|
|
21
21
|
private handleScroll;
|
|
22
22
|
render(): React.JSX.Element;
|
|
23
|
-
renderSingleFile(child: ReactElement<MediaProps>): ReactElement<MediaProps
|
|
24
|
-
renderSingleLink(child: ReactElement<MediaProps>): ReactElement<MediaProps
|
|
23
|
+
renderSingleFile(child: ReactElement<MediaProps>): ReactElement<MediaProps>;
|
|
24
|
+
renderSingleLink(child: ReactElement<MediaProps>): ReactElement<MediaProps>;
|
|
25
25
|
onMediaClick: (cardClickHandler: CardEventClickHandler, child: ReactElement<MediaProps>, surroundingItems: Identifier[]) => (event: CardEvent, analyticsEvent?: any) => void;
|
|
26
|
-
cloneFileCard(child: ReactElement<MediaProps>, surroundingItems: Identifier[]): ReactElement<MediaProps
|
|
26
|
+
cloneFileCard(child: ReactElement<MediaProps>, surroundingItems: Identifier[]): ReactElement<MediaProps>;
|
|
27
27
|
renderStrip(): React.JSX.Element;
|
|
28
28
|
private mapMediaPropsToIdentifier;
|
|
29
29
|
}
|
|
@@ -3,7 +3,7 @@ import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
|
3
3
|
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
4
4
|
import type { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import type { WrappedComponentProps } from 'react-intl';
|
|
6
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
7
7
|
import type { RendererAppearance } from '../../ui/Renderer/types';
|
|
8
8
|
import type { Mark } from '@atlaskit/editor-prosemirror/model';
|
|
9
9
|
import type { MediaSSR } from '../../types/mediaOptions';
|
|
@@ -18,7 +18,7 @@ type MediaInlineProps = {
|
|
|
18
18
|
rendererAppearance?: RendererAppearance;
|
|
19
19
|
ssr?: MediaSSR;
|
|
20
20
|
};
|
|
21
|
-
declare const
|
|
21
|
+
declare const _default_1: React.FC<WithIntlProps<MediaInlineProps & WrappedComponentProps & MediaInlineAttrs>> & {
|
|
22
22
|
WrappedComponent: React.ComponentType<MediaInlineProps & WrappedComponentProps & MediaInlineAttrs>;
|
|
23
23
|
};
|
|
24
|
-
export default
|
|
24
|
+
export default _default_1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl';
|
|
2
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
3
3
|
import type { RichMediaLayout as MediaSingleLayout } from '@atlaskit/adf-schema';
|
|
4
4
|
import type { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
5
5
|
import type { EditorAppearance } from '@atlaskit/editor-common/types';
|
|
@@ -22,7 +22,7 @@ export interface Props {
|
|
|
22
22
|
widthType?: MediaSingleWidthType;
|
|
23
23
|
}
|
|
24
24
|
export declare const getMediaContainerWidth: (currentContainerWidth: number, layout: MediaSingleLayout) => number;
|
|
25
|
-
declare const
|
|
25
|
+
declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
26
26
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
27
27
|
};
|
|
28
|
-
export default
|
|
28
|
+
export default _default_1;
|
|
@@ -10,5 +10,5 @@ export interface Props extends MarkDataAttributes {
|
|
|
10
10
|
providers?: ProviderFactory;
|
|
11
11
|
text: string;
|
|
12
12
|
}
|
|
13
|
-
declare const
|
|
14
|
-
export default
|
|
13
|
+
declare const _default_1: React.NamedExoticComponent<Props>;
|
|
14
|
+
export default _default_1;
|
|
@@ -7,5 +7,5 @@ export interface Props extends MarkDataAttributes {
|
|
|
7
7
|
style?: string;
|
|
8
8
|
text: string;
|
|
9
9
|
}
|
|
10
|
-
declare const
|
|
11
|
-
export default
|
|
10
|
+
declare const _default_1: React.NamedExoticComponent<Props>;
|
|
11
|
+
export default _default_1;
|
|
@@ -3,4 +3,4 @@ export declare const isFullWidthAppearance: (appearance: RendererAppearance) =>
|
|
|
3
3
|
export declare const isMaxWidthAppearance: (appearance: RendererAppearance) => appearance is "max";
|
|
4
4
|
export declare const isFullPageAppearance: (appearance: RendererAppearance) => appearance is "full-page";
|
|
5
5
|
export declare const isCommentAppearance: (appearance: RendererAppearance) => appearance is "comment";
|
|
6
|
-
export declare const isFullWidthOrFullPageAppearance: (appearance: RendererAppearance) => appearance is "full-
|
|
6
|
+
export declare const isFullWidthOrFullPageAppearance: (appearance: RendererAppearance) => appearance is "full-width" | "full-page" | "max";
|
|
@@ -49,8 +49,8 @@ export default class RendererActions implements RendererActionsOptions, Annotati
|
|
|
49
49
|
*/
|
|
50
50
|
_privateValidatePositionsForAnnotation(from: number, to: number): boolean;
|
|
51
51
|
deleteAnnotation(annotationId: string, annotationType: 'inlineComment'): false | {
|
|
52
|
-
step: RemoveNodeMarkStep | RemoveMarkStep;
|
|
53
52
|
doc: JSONDocNode;
|
|
53
|
+
step: RemoveNodeMarkStep | RemoveMarkStep;
|
|
54
54
|
};
|
|
55
55
|
annotate(range: Range, annotationId: string, _annotationType: 'inlineComment'): AnnotationActionResult;
|
|
56
56
|
isValidAnnotationRange(range: Range | null): boolean;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl';
|
|
2
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
3
3
|
import type { Mark } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
-
import type { MarkProps } from '../types';
|
|
4
|
+
import type { MarkMeta, 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
8
|
}> & WrappedComponentProps): React.JSX.Element;
|
|
9
|
-
declare const
|
|
9
|
+
declare const _default_1: React.FC<WithIntlProps<{
|
|
10
10
|
codeBidiWarningTooltipEnabled: boolean;
|
|
11
|
-
} &
|
|
11
|
+
} & MarkMeta & {
|
|
12
12
|
children?: React.ReactNode | undefined;
|
|
13
13
|
} & WrappedComponentProps>> & {
|
|
14
14
|
WrappedComponent: React.ComponentType<{
|
|
15
15
|
codeBidiWarningTooltipEnabled: boolean;
|
|
16
|
-
} &
|
|
16
|
+
} & MarkMeta & {
|
|
17
17
|
children?: React.ReactNode | undefined;
|
|
18
18
|
} & WrappedComponentProps>;
|
|
19
19
|
};
|
|
20
|
-
export default
|
|
20
|
+
export default _default_1;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import { type ComponentType, type FC } from 'react';
|
|
6
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
2
7
|
import type { SupportedLanguages } from '@atlaskit/code';
|
|
3
8
|
export interface Props {
|
|
4
9
|
allowCopyToClipboard?: boolean;
|
|
@@ -9,7 +14,7 @@ export interface Props {
|
|
|
9
14
|
localId?: string;
|
|
10
15
|
text: string;
|
|
11
16
|
}
|
|
12
|
-
declare const
|
|
13
|
-
WrappedComponent:
|
|
17
|
+
declare const _default_1: FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
18
|
+
WrappedComponent: ComponentType<Props & WrappedComponentProps>;
|
|
14
19
|
};
|
|
15
|
-
export default
|
|
20
|
+
export default _default_1;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type ComponentType, type FC } from 'react';
|
|
2
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
2
3
|
type Props = {
|
|
3
4
|
content: string;
|
|
4
5
|
};
|
|
5
|
-
declare const
|
|
6
|
-
WrappedComponent:
|
|
6
|
+
declare const _default_1: FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
7
|
+
WrappedComponent: ComponentType<Props & WrappedComponentProps>;
|
|
7
8
|
};
|
|
8
|
-
export default
|
|
9
|
+
export default _default_1;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl';
|
|
1
|
+
import type { ComponentType, Dispatch, FC, SetStateAction } from 'react';
|
|
2
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
3
3
|
type Props = {
|
|
4
4
|
setWrapLongLines: Dispatch<SetStateAction<boolean>>;
|
|
5
5
|
wrapLongLines?: boolean;
|
|
6
6
|
};
|
|
7
|
-
declare const
|
|
8
|
-
WrappedComponent:
|
|
7
|
+
declare const _default_1: FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
8
|
+
WrappedComponent: ComponentType<Props & WrappedComponentProps>;
|
|
9
9
|
};
|
|
10
|
-
export default
|
|
10
|
+
export default _default_1;
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
+
import { type SerializedStyles } from '@emotion/react';
|
|
6
7
|
import type { Props as CodeBlockProps } from '../codeBlock';
|
|
7
8
|
export declare const LightWeightCodeBlockCssClassName: {
|
|
8
9
|
CONTAINER: string;
|
|
@@ -11,6 +12,6 @@ export declare const LightWeightCodeBlockCssClassName: {
|
|
|
11
12
|
* @private
|
|
12
13
|
* @deprecated styles are moved to RendererStyleContainer
|
|
13
14
|
*/
|
|
14
|
-
export declare const getLightWeightCodeBlockStylesForRootRendererStyleSheet: () =>
|
|
15
|
+
export declare const getLightWeightCodeBlockStylesForRootRendererStyleSheet: () => SerializedStyles;
|
|
15
16
|
declare const LightWeightCodeBlock: React.ForwardRefExoticComponent<Pick<CodeBlockProps, "text" | "className" | "codeBidiWarningTooltipEnabled"> & React.RefAttributes<HTMLDivElement>>;
|
|
16
17
|
export default LightWeightCodeBlock;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl';
|
|
2
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
3
3
|
import type { MarkDataAttributes } from '../../ui/annotations/element/useInlineAnnotationProps';
|
|
4
4
|
export interface Props extends MarkDataAttributes {
|
|
5
5
|
parentIsIncompleteTask?: boolean;
|
|
6
6
|
timestamp: string;
|
|
7
7
|
}
|
|
8
|
-
export declare const DateComponent: React.FC<
|
|
8
|
+
export declare const DateComponent: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
9
9
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
10
10
|
};
|
|
11
11
|
declare function DateWithFormatContext(props: Props): React.JSX.Element;
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import { jsx } from '@emotion/react';
|
|
6
|
+
import type { FC } from 'react';
|
|
6
7
|
import type { SmartLinksOptions } from '../../types/smartLinksOptions';
|
|
7
8
|
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
8
9
|
import type { RichMediaLayout } from '@atlaskit/adf-schema';
|
|
@@ -23,5 +24,5 @@ type EmbedCardInternalProps = {
|
|
|
23
24
|
width?: number;
|
|
24
25
|
};
|
|
25
26
|
export declare const EmbedOrBlockCardInternal: ({ url, data, eventHandlers, portal, originalHeight, originalWidth, width: embedWidth, layout, rendererAppearance, isInsideOfBlockNode, smartLinks, isInsideOfInlineExtension, onSetLinkTarget, }: EmbedCardInternalProps) => jsx.JSX.Element;
|
|
26
|
-
declare const EmbedCardWithCondition:
|
|
27
|
+
declare const EmbedCardWithCondition: FC<EmbedCardInternalProps>;
|
|
27
28
|
export default EmbedCardWithCondition;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { EmojiResourceConfig } from '@atlaskit/emoji/resource';
|
|
2
|
-
import type { FC } from 'react';
|
|
2
|
+
import type { FC, NamedExoticComponent } from 'react';
|
|
3
3
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
4
4
|
import type { EmojiId } from '@atlaskit/emoji/types';
|
|
5
5
|
import type { MarkDataAttributes } from '../../ui/annotations/element/useInlineAnnotationProps';
|
|
@@ -12,5 +12,5 @@ export interface EmojiProps extends EmojiId, EmojiAttributes, MarkDataAttributes
|
|
|
12
12
|
showTooltip?: boolean;
|
|
13
13
|
}
|
|
14
14
|
export declare const EmojiItemComponent: FC<EmojiProps>;
|
|
15
|
-
declare const
|
|
16
|
-
export default
|
|
15
|
+
declare const _default_1: NamedExoticComponent<EmojiProps>;
|
|
16
|
+
export default _default_1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl';
|
|
2
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
3
3
|
export declare const HeadingAnchorWrapperClassName = "heading-anchor-wrapper";
|
|
4
4
|
type Props = {
|
|
5
5
|
enableNestedHeaderLinks?: boolean;
|
|
@@ -9,7 +9,7 @@ type Props = {
|
|
|
9
9
|
onCopyText: () => Promise<void>;
|
|
10
10
|
};
|
|
11
11
|
type HeadingAnchorProps = Props & React.PropsWithChildren<unknown> & WrappedComponentProps;
|
|
12
|
-
declare const
|
|
12
|
+
declare const _default_1: React.FC<WithIntlProps<HeadingAnchorProps>> & {
|
|
13
13
|
WrappedComponent: React.ComponentType<HeadingAnchorProps>;
|
|
14
14
|
};
|
|
15
|
-
export default
|
|
15
|
+
export default _default_1;
|
|
@@ -20,10 +20,10 @@ export default class MediaGroup extends PureComponent<MediaGroupProps, MediaGrou
|
|
|
20
20
|
private handleSize;
|
|
21
21
|
private handleScroll;
|
|
22
22
|
render(): React.JSX.Element;
|
|
23
|
-
renderSingleFile(child: ReactElement<MediaProps>): ReactElement<MediaProps
|
|
24
|
-
renderSingleLink(child: ReactElement<MediaProps>): ReactElement<MediaProps
|
|
23
|
+
renderSingleFile(child: ReactElement<MediaProps>): ReactElement<MediaProps>;
|
|
24
|
+
renderSingleLink(child: ReactElement<MediaProps>): ReactElement<MediaProps>;
|
|
25
25
|
onMediaClick: (cardClickHandler: CardEventClickHandler, child: ReactElement<MediaProps>, surroundingItems: Identifier[]) => (event: CardEvent, analyticsEvent?: any) => void;
|
|
26
|
-
cloneFileCard(child: ReactElement<MediaProps>, surroundingItems: Identifier[]): ReactElement<MediaProps
|
|
26
|
+
cloneFileCard(child: ReactElement<MediaProps>, surroundingItems: Identifier[]): ReactElement<MediaProps>;
|
|
27
27
|
renderStrip(): React.JSX.Element;
|
|
28
28
|
private mapMediaPropsToIdentifier;
|
|
29
29
|
}
|
|
@@ -3,7 +3,7 @@ import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
|
3
3
|
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
4
4
|
import type { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import type { WrappedComponentProps } from 'react-intl';
|
|
6
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
7
7
|
import type { RendererAppearance } from '../../ui/Renderer/types';
|
|
8
8
|
import type { Mark } from '@atlaskit/editor-prosemirror/model';
|
|
9
9
|
import type { MediaSSR } from '../../types/mediaOptions';
|
|
@@ -18,7 +18,7 @@ type MediaInlineProps = {
|
|
|
18
18
|
rendererAppearance?: RendererAppearance;
|
|
19
19
|
ssr?: MediaSSR;
|
|
20
20
|
};
|
|
21
|
-
declare const
|
|
21
|
+
declare const _default_1: React.FC<WithIntlProps<MediaInlineProps & WrappedComponentProps & MediaInlineAttrs>> & {
|
|
22
22
|
WrappedComponent: React.ComponentType<MediaInlineProps & WrappedComponentProps & MediaInlineAttrs>;
|
|
23
23
|
};
|
|
24
|
-
export default
|
|
24
|
+
export default _default_1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl';
|
|
2
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
3
3
|
import type { RichMediaLayout as MediaSingleLayout } from '@atlaskit/adf-schema';
|
|
4
4
|
import type { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
5
5
|
import type { EditorAppearance } from '@atlaskit/editor-common/types';
|
|
@@ -22,7 +22,7 @@ export interface Props {
|
|
|
22
22
|
widthType?: MediaSingleWidthType;
|
|
23
23
|
}
|
|
24
24
|
export declare const getMediaContainerWidth: (currentContainerWidth: number, layout: MediaSingleLayout) => number;
|
|
25
|
-
declare const
|
|
25
|
+
declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
26
26
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
27
27
|
};
|
|
28
|
-
export default
|
|
28
|
+
export default _default_1;
|
|
@@ -10,5 +10,5 @@ export interface Props extends MarkDataAttributes {
|
|
|
10
10
|
providers?: ProviderFactory;
|
|
11
11
|
text: string;
|
|
12
12
|
}
|
|
13
|
-
declare const
|
|
14
|
-
export default
|
|
13
|
+
declare const _default_1: React.NamedExoticComponent<Props>;
|
|
14
|
+
export default _default_1;
|
|
@@ -7,5 +7,5 @@ export interface Props extends MarkDataAttributes {
|
|
|
7
7
|
style?: string;
|
|
8
8
|
text: string;
|
|
9
9
|
}
|
|
10
|
-
declare const
|
|
11
|
-
export default
|
|
10
|
+
declare const _default_1: React.NamedExoticComponent<Props>;
|
|
11
|
+
export default _default_1;
|
|
@@ -3,4 +3,4 @@ export declare const isFullWidthAppearance: (appearance: RendererAppearance) =>
|
|
|
3
3
|
export declare const isMaxWidthAppearance: (appearance: RendererAppearance) => appearance is "max";
|
|
4
4
|
export declare const isFullPageAppearance: (appearance: RendererAppearance) => appearance is "full-page";
|
|
5
5
|
export declare const isCommentAppearance: (appearance: RendererAppearance) => appearance is "comment";
|
|
6
|
-
export declare const isFullWidthOrFullPageAppearance: (appearance: RendererAppearance) => appearance is "full-
|
|
6
|
+
export declare const isFullWidthOrFullPageAppearance: (appearance: RendererAppearance) => appearance is "full-width" | "full-page" | "max";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "130.2.
|
|
3
|
+
"version": "130.2.11",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@atlaskit/adf-schema": "^52.
|
|
33
|
+
"@atlaskit/adf-schema": "^52.6.0",
|
|
34
34
|
"@atlaskit/adf-utils": "^19.27.0",
|
|
35
35
|
"@atlaskit/afm-i18n-platform-editor-renderer": "2.10.0",
|
|
36
36
|
"@atlaskit/analytics-listeners": "^10.0.0",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@atlaskit/link-datasource": "^5.2.0",
|
|
52
52
|
"@atlaskit/link-extractors": "^2.4.0",
|
|
53
53
|
"@atlaskit/linking-common": "^9.11.0",
|
|
54
|
-
"@atlaskit/media-card": "^80.
|
|
54
|
+
"@atlaskit/media-card": "^80.2.0",
|
|
55
55
|
"@atlaskit/media-client": "^36.0.0",
|
|
56
56
|
"@atlaskit/media-client-react": "^5.0.0",
|
|
57
57
|
"@atlaskit/media-common": "^13.0.0",
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
"@atlaskit/smart-card": "^44.3.0",
|
|
66
66
|
"@atlaskit/status": "^4.0.0",
|
|
67
67
|
"@atlaskit/task-decision": "^20.0.0",
|
|
68
|
-
"@atlaskit/theme": "^23.
|
|
69
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
68
|
+
"@atlaskit/theme": "^23.2.0",
|
|
69
|
+
"@atlaskit/tmp-editor-statsig": "^68.1.0",
|
|
70
70
|
"@atlaskit/tokens": "^13.0.0",
|
|
71
71
|
"@atlaskit/tooltip": "^21.2.0",
|
|
72
72
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"uuid": "^3.1.0"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
|
-
"@atlaskit/editor-common": "^114.
|
|
82
|
+
"@atlaskit/editor-common": "^114.10.0",
|
|
83
83
|
"@atlaskit/link-provider": "^4.3.0",
|
|
84
84
|
"@atlaskit/media-core": "^37.0.0",
|
|
85
85
|
"react": "^18.2.0",
|