@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.
Files changed (129) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/actions/index.js +3 -6
  3. package/dist/cjs/react/marks/alignment.js +1 -1
  4. package/dist/cjs/react/marks/border.js +1 -1
  5. package/dist/cjs/react/marks/breakout.js +1 -1
  6. package/dist/cjs/react/marks/code.js +3 -1
  7. package/dist/cjs/react/marks/link.js +1 -1
  8. package/dist/cjs/react/nodes/blockCard.js +1 -1
  9. package/dist/cjs/react/nodes/codeBlock/codeBlock.js +2 -1
  10. package/dist/cjs/react/nodes/codeBlock/components/codeBlockButtonContainer.js +1 -1
  11. package/dist/cjs/react/nodes/codeBlock/components/codeBlockContainer.js +1 -1
  12. package/dist/cjs/react/nodes/codeBlock/components/codeBlockCopyButton.js +2 -1
  13. package/dist/cjs/react/nodes/codeBlock/components/codeBlockWrapButton.js +2 -1
  14. package/dist/cjs/react/nodes/codeBlock/windowedCodeBlock.js +1 -1
  15. package/dist/cjs/react/nodes/date.js +2 -0
  16. package/dist/cjs/react/nodes/embedCard.js +1 -1
  17. package/dist/cjs/react/nodes/emoji.js +2 -1
  18. package/dist/cjs/react/nodes/extensionFrame.js +1 -1
  19. package/dist/cjs/react/nodes/heading-anchor.js +3 -2
  20. package/dist/cjs/react/nodes/layoutColumn.js +1 -1
  21. package/dist/cjs/react/nodes/media/index.js +1 -1
  22. package/dist/cjs/react/nodes/mediaInline.js +4 -1
  23. package/dist/cjs/react/nodes/mediaSingle/index.js +4 -1
  24. package/dist/cjs/react/nodes/mention.js +3 -2
  25. package/dist/cjs/react/nodes/multiBodiedExtension.js +1 -1
  26. package/dist/cjs/react/nodes/panel.js +1 -1
  27. package/dist/cjs/react/nodes/status.js +3 -2
  28. package/dist/cjs/react/nodes/table/sticky.js +1 -3
  29. package/dist/cjs/react/nodes/tableNew.js +3 -1
  30. package/dist/cjs/react/utils/getCardClickHandler.js +1 -0
  31. package/dist/cjs/renderer-context.js +2 -0
  32. package/dist/cjs/ui/Renderer/index.js +1 -1
  33. package/dist/es2019/actions/index.js +1 -3
  34. package/dist/es2019/react/marks/alignment.js +1 -1
  35. package/dist/es2019/react/marks/border.js +1 -1
  36. package/dist/es2019/react/marks/breakout.js +2 -2
  37. package/dist/es2019/react/marks/code.js +3 -1
  38. package/dist/es2019/react/marks/link.js +2 -2
  39. package/dist/es2019/react/nodes/blockCard.js +2 -2
  40. package/dist/es2019/react/nodes/codeBlock/codeBlock.js +2 -1
  41. package/dist/es2019/react/nodes/codeBlock/components/codeBlockButtonContainer.js +1 -1
  42. package/dist/es2019/react/nodes/codeBlock/components/codeBlockContainer.js +1 -1
  43. package/dist/es2019/react/nodes/codeBlock/components/codeBlockCopyButton.js +2 -1
  44. package/dist/es2019/react/nodes/codeBlock/components/codeBlockWrapButton.js +2 -1
  45. package/dist/es2019/react/nodes/codeBlock/windowedCodeBlock.js +1 -1
  46. package/dist/es2019/react/nodes/date.js +2 -0
  47. package/dist/es2019/react/nodes/embedCard.js +2 -2
  48. package/dist/es2019/react/nodes/emoji.js +2 -1
  49. package/dist/es2019/react/nodes/extensionFrame.js +1 -1
  50. package/dist/es2019/react/nodes/heading-anchor.js +4 -1
  51. package/dist/es2019/react/nodes/layoutColumn.js +1 -1
  52. package/dist/es2019/react/nodes/media/index.js +1 -1
  53. package/dist/es2019/react/nodes/mediaInline.js +4 -1
  54. package/dist/es2019/react/nodes/mediaSingle/index.js +4 -1
  55. package/dist/es2019/react/nodes/mention.js +3 -2
  56. package/dist/es2019/react/nodes/multiBodiedExtension.js +1 -1
  57. package/dist/es2019/react/nodes/panel.js +2 -2
  58. package/dist/es2019/react/nodes/status.js +3 -2
  59. package/dist/es2019/react/nodes/table/sticky.js +2 -4
  60. package/dist/es2019/react/nodes/tableNew.js +3 -1
  61. package/dist/es2019/react/utils/getCardClickHandler.js +2 -0
  62. package/dist/es2019/renderer-context.js +2 -0
  63. package/dist/es2019/ui/Renderer/index.js +1 -1
  64. package/dist/esm/actions/index.js +3 -6
  65. package/dist/esm/react/marks/alignment.js +1 -1
  66. package/dist/esm/react/marks/border.js +1 -1
  67. package/dist/esm/react/marks/breakout.js +2 -2
  68. package/dist/esm/react/marks/code.js +3 -1
  69. package/dist/esm/react/marks/link.js +2 -2
  70. package/dist/esm/react/nodes/blockCard.js +2 -2
  71. package/dist/esm/react/nodes/codeBlock/codeBlock.js +2 -1
  72. package/dist/esm/react/nodes/codeBlock/components/codeBlockButtonContainer.js +1 -1
  73. package/dist/esm/react/nodes/codeBlock/components/codeBlockContainer.js +1 -1
  74. package/dist/esm/react/nodes/codeBlock/components/codeBlockCopyButton.js +2 -1
  75. package/dist/esm/react/nodes/codeBlock/components/codeBlockWrapButton.js +2 -1
  76. package/dist/esm/react/nodes/codeBlock/windowedCodeBlock.js +1 -1
  77. package/dist/esm/react/nodes/date.js +2 -0
  78. package/dist/esm/react/nodes/embedCard.js +2 -2
  79. package/dist/esm/react/nodes/emoji.js +2 -1
  80. package/dist/esm/react/nodes/extensionFrame.js +1 -1
  81. package/dist/esm/react/nodes/heading-anchor.js +3 -2
  82. package/dist/esm/react/nodes/layoutColumn.js +1 -1
  83. package/dist/esm/react/nodes/media/index.js +1 -1
  84. package/dist/esm/react/nodes/mediaInline.js +4 -1
  85. package/dist/esm/react/nodes/mediaSingle/index.js +4 -1
  86. package/dist/esm/react/nodes/mention.js +3 -2
  87. package/dist/esm/react/nodes/multiBodiedExtension.js +1 -1
  88. package/dist/esm/react/nodes/panel.js +2 -2
  89. package/dist/esm/react/nodes/status.js +3 -2
  90. package/dist/esm/react/nodes/table/sticky.js +2 -4
  91. package/dist/esm/react/nodes/tableNew.js +3 -1
  92. package/dist/esm/react/utils/getCardClickHandler.js +2 -0
  93. package/dist/esm/renderer-context.js +2 -0
  94. package/dist/esm/ui/Renderer/index.js +1 -1
  95. package/dist/types/actions/index.d.ts +1 -1
  96. package/dist/types/react/hooks/use-in-viewport.d.ts +2 -1
  97. package/dist/types/react/marks/code.d.ts +6 -6
  98. package/dist/types/react/nodes/codeBlock/codeBlock.d.ts +9 -4
  99. package/dist/types/react/nodes/codeBlock/components/codeBlockCopyButton.d.ts +5 -4
  100. package/dist/types/react/nodes/codeBlock/components/codeBlockWrapButton.d.ts +5 -5
  101. package/dist/types/react/nodes/codeBlock/components/lightWeightCodeBlock.d.ts +2 -1
  102. package/dist/types/react/nodes/date.d.ts +2 -2
  103. package/dist/types/react/nodes/embedCard.d.ts +2 -1
  104. package/dist/types/react/nodes/emoji.d.ts +3 -3
  105. package/dist/types/react/nodes/heading-anchor.d.ts +3 -3
  106. package/dist/types/react/nodes/mediaGroup.d.ts +3 -3
  107. package/dist/types/react/nodes/mediaInline.d.ts +3 -3
  108. package/dist/types/react/nodes/mediaSingle/index.d.ts +3 -3
  109. package/dist/types/react/nodes/mention.d.ts +2 -2
  110. package/dist/types/react/nodes/status.d.ts +2 -2
  111. package/dist/types/react/utils/appearance.d.ts +1 -1
  112. package/dist/types-ts4.5/actions/index.d.ts +1 -1
  113. package/dist/types-ts4.5/react/hooks/use-in-viewport.d.ts +2 -1
  114. package/dist/types-ts4.5/react/marks/code.d.ts +6 -6
  115. package/dist/types-ts4.5/react/nodes/codeBlock/codeBlock.d.ts +9 -4
  116. package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockCopyButton.d.ts +5 -4
  117. package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockWrapButton.d.ts +5 -5
  118. package/dist/types-ts4.5/react/nodes/codeBlock/components/lightWeightCodeBlock.d.ts +2 -1
  119. package/dist/types-ts4.5/react/nodes/date.d.ts +2 -2
  120. package/dist/types-ts4.5/react/nodes/embedCard.d.ts +2 -1
  121. package/dist/types-ts4.5/react/nodes/emoji.d.ts +3 -3
  122. package/dist/types-ts4.5/react/nodes/heading-anchor.d.ts +3 -3
  123. package/dist/types-ts4.5/react/nodes/mediaGroup.d.ts +3 -3
  124. package/dist/types-ts4.5/react/nodes/mediaInline.d.ts +3 -3
  125. package/dist/types-ts4.5/react/nodes/mediaSingle/index.d.ts +3 -3
  126. package/dist/types-ts4.5/react/nodes/mention.d.ts +2 -2
  127. package/dist/types-ts4.5/react/nodes/status.d.ts +2 -2
  128. package/dist/types-ts4.5/react/utils/appearance.d.ts +1 -1
  129. 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: import("react").FC<EmbedCardInternalProps>;
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 _default: import("react").NamedExoticComponent<EmojiProps>;
16
- export default _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 _default: React.FC<import("react-intl").WithIntlProps<HeadingAnchorProps>> & {
12
+ declare const _default_1: React.FC<WithIntlProps<HeadingAnchorProps>> & {
13
13
  WrappedComponent: React.ComponentType<HeadingAnchorProps>;
14
14
  };
15
- export default _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, string | React.JSXElementConstructor<any>>;
24
- renderSingleLink(child: ReactElement<MediaProps>): ReactElement<MediaProps, string | React.JSXElementConstructor<any>>;
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, string | React.JSXElementConstructor<any>>;
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 _default: React.FC<import("react-intl").WithIntlProps<MediaInlineProps & WrappedComponentProps & MediaInlineAttrs>> & {
21
+ declare const _default_1: React.FC<WithIntlProps<MediaInlineProps & WrappedComponentProps & MediaInlineAttrs>> & {
22
22
  WrappedComponent: React.ComponentType<MediaInlineProps & WrappedComponentProps & MediaInlineAttrs>;
23
23
  };
24
- export default _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 _default: React.FC<import("react-intl").WithIntlProps<Props & WrappedComponentProps>> & {
25
+ declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
26
26
  WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
27
27
  };
28
- export default _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 _default: React.NamedExoticComponent<Props>;
14
- export default _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 _default: React.NamedExoticComponent<Props>;
11
- export default _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-page" | "full-width" | "max";
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,4 +1,5 @@
1
+ import { type MutableRefObject } from 'react';
1
2
  export declare const useInViewport: <RefType extends Element>() => {
2
3
  isInViewport: boolean;
3
- trackingRef: import("react").MutableRefObject<RefType | null>;
4
+ trackingRef: MutableRefObject<RefType | null>;
4
5
  };
@@ -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 _default: React.FC<import("react-intl").WithIntlProps<{
9
+ declare const _default_1: React.FC<WithIntlProps<{
10
10
  codeBidiWarningTooltipEnabled: boolean;
11
- } & import("../types").MarkMeta & {
11
+ } & MarkMeta & {
12
12
  children?: React.ReactNode | undefined;
13
13
  } & WrappedComponentProps>> & {
14
14
  WrappedComponent: React.ComponentType<{
15
15
  codeBidiWarningTooltipEnabled: boolean;
16
- } & import("../types").MarkMeta & {
16
+ } & MarkMeta & {
17
17
  children?: React.ReactNode | undefined;
18
18
  } & WrappedComponentProps>;
19
19
  };
20
- export default _default;
20
+ export default _default_1;
@@ -1,4 +1,9 @@
1
- import type { WrappedComponentProps } from 'react-intl';
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 _default: import("react").FC<import("react-intl").WithIntlProps<Props & WrappedComponentProps>> & {
13
- WrappedComponent: import("react").ComponentType<Props & WrappedComponentProps>;
17
+ declare const _default_1: FC<WithIntlProps<Props & WrappedComponentProps>> & {
18
+ WrappedComponent: ComponentType<Props & WrappedComponentProps>;
14
19
  };
15
- export default _default;
20
+ export default _default_1;
@@ -1,8 +1,9 @@
1
- import type { WrappedComponentProps } from 'react-intl';
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 _default: import("react").FC<import("react-intl").WithIntlProps<Props & WrappedComponentProps>> & {
6
- WrappedComponent: import("react").ComponentType<Props & WrappedComponentProps>;
6
+ declare const _default_1: FC<WithIntlProps<Props & WrappedComponentProps>> & {
7
+ WrappedComponent: ComponentType<Props & WrappedComponentProps>;
7
8
  };
8
- export default _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 _default: import("react").FC<import("react-intl").WithIntlProps<Props & WrappedComponentProps>> & {
8
- WrappedComponent: import("react").ComponentType<Props & WrappedComponentProps>;
7
+ declare const _default_1: FC<WithIntlProps<Props & WrappedComponentProps>> & {
8
+ WrappedComponent: ComponentType<Props & WrappedComponentProps>;
9
9
  };
10
- export default _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: () => import("@emotion/utils").SerializedStyles;
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<import("react-intl").WithIntlProps<Props & WrappedComponentProps>> & {
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: import("react").FC<EmbedCardInternalProps>;
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 _default: import("react").NamedExoticComponent<EmojiProps>;
16
- export default _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 _default: React.FC<import("react-intl").WithIntlProps<HeadingAnchorProps>> & {
12
+ declare const _default_1: React.FC<WithIntlProps<HeadingAnchorProps>> & {
13
13
  WrappedComponent: React.ComponentType<HeadingAnchorProps>;
14
14
  };
15
- export default _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, string | React.JSXElementConstructor<any>>;
24
- renderSingleLink(child: ReactElement<MediaProps>): ReactElement<MediaProps, string | React.JSXElementConstructor<any>>;
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, string | React.JSXElementConstructor<any>>;
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 _default: React.FC<import("react-intl").WithIntlProps<MediaInlineProps & WrappedComponentProps & MediaInlineAttrs>> & {
21
+ declare const _default_1: React.FC<WithIntlProps<MediaInlineProps & WrappedComponentProps & MediaInlineAttrs>> & {
22
22
  WrappedComponent: React.ComponentType<MediaInlineProps & WrappedComponentProps & MediaInlineAttrs>;
23
23
  };
24
- export default _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 _default: React.FC<import("react-intl").WithIntlProps<Props & WrappedComponentProps>> & {
25
+ declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
26
26
  WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
27
27
  };
28
- export default _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 _default: React.NamedExoticComponent<Props>;
14
- export default _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 _default: React.NamedExoticComponent<Props>;
11
- export default _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-page" | "full-width" | "max";
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.9",
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.5.0",
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.1.0",
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.1.0",
69
- "@atlaskit/tmp-editor-statsig": "^67.0.0",
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.8.0",
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",