@atlaskit/renderer 109.10.0 → 109.10.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 (42) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/actions/package.json +1 -1
  3. package/consts/package.json +1 -1
  4. package/dist/cjs/react/nodes/codeBlock/components/codeBlockCopyButton.js +2 -0
  5. package/dist/cjs/react/nodes/codeBlock/components/codeBlockWrapButton.js +2 -0
  6. package/dist/cjs/ui/Renderer/index.js +1 -1
  7. package/dist/es2019/react/nodes/codeBlock/components/codeBlockCopyButton.js +2 -0
  8. package/dist/es2019/react/nodes/codeBlock/components/codeBlockWrapButton.js +2 -0
  9. package/dist/es2019/ui/Renderer/index.js +1 -1
  10. package/dist/esm/react/nodes/codeBlock/components/codeBlockCopyButton.js +2 -0
  11. package/dist/esm/react/nodes/codeBlock/components/codeBlockWrapButton.js +2 -0
  12. package/dist/esm/ui/Renderer/index.js +1 -1
  13. package/dist/types/react/marks/code.d.ts +2 -2
  14. package/dist/types/react/nodes/codeBlock/codeBlock.d.ts +2 -2
  15. package/dist/types/react/nodes/codeBlock/components/codeBlockCopyButton.d.ts +3 -3
  16. package/dist/types/react/nodes/codeBlock/components/codeBlockWrapButton.d.ts +3 -3
  17. package/dist/types/react/nodes/date.d.ts +2 -2
  18. package/dist/types/react/nodes/index.d.ts +4 -4
  19. package/dist/types/react/nodes/mediaInline.d.ts +2 -2
  20. package/dist/types/react/nodes/mediaSingle/index.d.ts +2 -2
  21. package/dist/types/ui/Expand.d.ts +2 -2
  22. package/dist/types/ui/SortingIcon.d.ts +2 -2
  23. package/dist/types/utils.d.ts +1 -1
  24. package/dist/types-ts4.5/react/marks/code.d.ts +2 -2
  25. package/dist/types-ts4.5/react/nodes/codeBlock/codeBlock.d.ts +2 -2
  26. package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockCopyButton.d.ts +3 -3
  27. package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockWrapButton.d.ts +3 -3
  28. package/dist/types-ts4.5/react/nodes/date.d.ts +2 -2
  29. package/dist/types-ts4.5/react/nodes/index.d.ts +4 -4
  30. package/dist/types-ts4.5/react/nodes/mediaInline.d.ts +2 -2
  31. package/dist/types-ts4.5/react/nodes/mediaSingle/index.d.ts +2 -2
  32. package/dist/types-ts4.5/ui/Expand.d.ts +2 -2
  33. package/dist/types-ts4.5/ui/SortingIcon.d.ts +2 -2
  34. package/dist/types-ts4.5/utils.d.ts +1 -1
  35. package/messages/package.json +1 -1
  36. package/package.json +6 -6
  37. package/render-document/package.json +1 -1
  38. package/renderer-context/package.json +1 -1
  39. package/serializer/package.json +1 -1
  40. package/text-serializer/package.json +1 -1
  41. package/use-feature-flags/package.json +1 -1
  42. package/utils/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 109.10.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116) [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) - Upgrade Typescript from `4.9.5` to `5.4.2`
8
+ - Updated dependencies
9
+
3
10
  ## 109.10.0
4
11
 
5
12
  ### Minor Changes
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/actions.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/actions.d.ts"
12
12
  ]
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/consts.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/consts.d.ts"
12
12
  ]
@@ -51,6 +51,8 @@ var CopyButton = function CopyButton(_ref) {
51
51
  }),
52
52
  onClick: function onClick(event) {
53
53
  fireAnalyticsEvent({
54
+ // @ts-expect-error - Type 'ACTION.CLICKED' is not assignable to type 'ACTION.CLICKED | ACTION.EDITOR_TTI | ACTION.RE_RENDERED | ACTION.MEDIA_LINK_TRANSFORMED | ACTION.STARTED | ACTION.TOGGLE_EXPAND | ACTION.UNSUPPORTED_CONTENT_ENCOUNTERED | ACTION.VISITED | ACTION.RENDERED | ACTION.INVALID_PROSEMIRROR_DOCUMENT | ACTION.CRASHED | ... 6 more ... | AnnotationActionType'.
55
+ // This error was introduced after upgrading to TypeScript 5
54
56
  action: _enums.ACTION.CLICKED,
55
57
  actionSubject: _enums.ACTION_SUBJECT.BUTTON,
56
58
  actionSubjectId: _enums.ACTION_SUBJECT_ID.CODEBLOCK_COPY,
@@ -53,6 +53,8 @@ var CodeBlockWrapButton = function CodeBlockWrapButton(_ref) {
53
53
  isSelected: wrapLongLines,
54
54
  onClick: function onClick(event) {
55
55
  fireAnalyticsEvent({
56
+ // @ts-expect-error - Type 'ACTION.CLICKED' is not assignable to type 'ACTION.CLICKED | ACTION.EDITOR_TTI | ACTION.RE_RENDERED | ACTION.MEDIA_LINK_TRANSFORMED | ACTION.STARTED | ACTION.TOGGLE_EXPAND | ACTION.UNSUPPORTED_CONTENT_ENCOUNTERED | ACTION.VISITED | ACTION.RENDERED | ACTION.INVALID_PROSEMIRROR_DOCUMENT | ACTION.CRASHED | ... 6 more ... | AnnotationActionType'
57
+ // This error was introduced after upgrading to TypeScript 5
56
58
  action: _enums.ACTION.CLICKED,
57
59
  actionSubject: _enums.ACTION_SUBJECT.BUTTON,
58
60
  actionSubjectId: _enums.ACTION_SUBJECT_ID.CODEBLOCK_WRAP,
@@ -55,7 +55,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
55
55
  var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
56
56
  var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
57
57
  var packageName = "@atlaskit/renderer";
58
- var packageVersion = "109.10.0";
58
+ var packageVersion = "109.10.1";
59
59
  var Renderer = exports.Renderer = /*#__PURE__*/function (_PureComponent) {
60
60
  (0, _inherits2.default)(Renderer, _PureComponent);
61
61
  var _super = _createSuper(Renderer);
@@ -37,6 +37,8 @@ const CopyButton = ({
37
37
  }),
38
38
  onClick: event => {
39
39
  fireAnalyticsEvent({
40
+ // @ts-expect-error - Type 'ACTION.CLICKED' is not assignable to type 'ACTION.CLICKED | ACTION.EDITOR_TTI | ACTION.RE_RENDERED | ACTION.MEDIA_LINK_TRANSFORMED | ACTION.STARTED | ACTION.TOGGLE_EXPAND | ACTION.UNSUPPORTED_CONTENT_ENCOUNTERED | ACTION.VISITED | ACTION.RENDERED | ACTION.INVALID_PROSEMIRROR_DOCUMENT | ACTION.CRASHED | ... 6 more ... | AnnotationActionType'.
41
+ // This error was introduced after upgrading to TypeScript 5
40
42
  action: ACTION.CLICKED,
41
43
  actionSubject: ACTION_SUBJECT.BUTTON,
42
44
  actionSubjectId: ACTION_SUBJECT_ID.CODEBLOCK_COPY,
@@ -46,6 +46,8 @@ const CodeBlockWrapButton = ({
46
46
  isSelected: wrapLongLines,
47
47
  onClick: event => {
48
48
  fireAnalyticsEvent({
49
+ // @ts-expect-error - Type 'ACTION.CLICKED' is not assignable to type 'ACTION.CLICKED | ACTION.EDITOR_TTI | ACTION.RE_RENDERED | ACTION.MEDIA_LINK_TRANSFORMED | ACTION.STARTED | ACTION.TOGGLE_EXPAND | ACTION.UNSUPPORTED_CONTENT_ENCOUNTERED | ACTION.VISITED | ACTION.RENDERED | ACTION.INVALID_PROSEMIRROR_DOCUMENT | ACTION.CRASHED | ... 6 more ... | AnnotationActionType'
50
+ // This error was introduced after upgrading to TypeScript 5
49
51
  action: ACTION.CLICKED,
50
52
  actionSubject: ACTION_SUBJECT.BUTTON,
51
53
  actionSubjectId: ACTION_SUBJECT_ID.CODEBLOCK_WRAP,
@@ -36,7 +36,7 @@ import { EditorMediaClientProvider } from '../../react/utils/EditorMediaClientPr
36
36
  export const NORMAL_SEVERITY_THRESHOLD = 2000;
37
37
  export const DEGRADED_SEVERITY_THRESHOLD = 3000;
38
38
  const packageName = "@atlaskit/renderer";
39
- const packageVersion = "109.10.0";
39
+ const packageVersion = "109.10.1";
40
40
  export class Renderer extends PureComponent {
41
41
  constructor(props) {
42
42
  super(props);
@@ -43,6 +43,8 @@ var CopyButton = function CopyButton(_ref) {
43
43
  }),
44
44
  onClick: function onClick(event) {
45
45
  fireAnalyticsEvent({
46
+ // @ts-expect-error - Type 'ACTION.CLICKED' is not assignable to type 'ACTION.CLICKED | ACTION.EDITOR_TTI | ACTION.RE_RENDERED | ACTION.MEDIA_LINK_TRANSFORMED | ACTION.STARTED | ACTION.TOGGLE_EXPAND | ACTION.UNSUPPORTED_CONTENT_ENCOUNTERED | ACTION.VISITED | ACTION.RENDERED | ACTION.INVALID_PROSEMIRROR_DOCUMENT | ACTION.CRASHED | ... 6 more ... | AnnotationActionType'.
47
+ // This error was introduced after upgrading to TypeScript 5
46
48
  action: ACTION.CLICKED,
47
49
  actionSubject: ACTION_SUBJECT.BUTTON,
48
50
  actionSubjectId: ACTION_SUBJECT_ID.CODEBLOCK_COPY,
@@ -45,6 +45,8 @@ var CodeBlockWrapButton = function CodeBlockWrapButton(_ref) {
45
45
  isSelected: wrapLongLines,
46
46
  onClick: function onClick(event) {
47
47
  fireAnalyticsEvent({
48
+ // @ts-expect-error - Type 'ACTION.CLICKED' is not assignable to type 'ACTION.CLICKED | ACTION.EDITOR_TTI | ACTION.RE_RENDERED | ACTION.MEDIA_LINK_TRANSFORMED | ACTION.STARTED | ACTION.TOGGLE_EXPAND | ACTION.UNSUPPORTED_CONTENT_ENCOUNTERED | ACTION.VISITED | ACTION.RENDERED | ACTION.INVALID_PROSEMIRROR_DOCUMENT | ACTION.CRASHED | ... 6 more ... | AnnotationActionType'
49
+ // This error was introduced after upgrading to TypeScript 5
48
50
  action: ACTION.CLICKED,
49
51
  actionSubject: ACTION_SUBJECT.BUTTON,
50
52
  actionSubjectId: ACTION_SUBJECT_ID.CODEBLOCK_WRAP,
@@ -46,7 +46,7 @@ import { EditorMediaClientProvider } from '../../react/utils/EditorMediaClientPr
46
46
  export var NORMAL_SEVERITY_THRESHOLD = 2000;
47
47
  export var DEGRADED_SEVERITY_THRESHOLD = 3000;
48
48
  var packageName = "@atlaskit/renderer";
49
- var packageVersion = "109.10.0";
49
+ var packageVersion = "109.10.1";
50
50
  export var Renderer = /*#__PURE__*/function (_PureComponent) {
51
51
  _inherits(Renderer, _PureComponent);
52
52
  var _super = _createSuper(Renderer);
@@ -8,9 +8,9 @@ export declare function CodeWithIntl(props: MarkProps<{
8
8
  }> & WrappedComponentProps): JSX.Element;
9
9
  declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
10
10
  codeBidiWarningTooltipEnabled: boolean;
11
- } & import("../types").MarkMeta & WrappedComponentProps<"intl">>> & {
11
+ } & import("../types").MarkMeta & WrappedComponentProps>> & {
12
12
  WrappedComponent: React.ComponentType<{
13
13
  codeBidiWarningTooltipEnabled: boolean;
14
- } & import("../types").MarkMeta & WrappedComponentProps<"intl">>;
14
+ } & import("../types").MarkMeta & WrappedComponentProps>;
15
15
  };
16
16
  export default _default;
@@ -9,7 +9,7 @@ export interface Props {
9
9
  codeBidiWarningTooltipEnabled: boolean;
10
10
  className?: string;
11
11
  }
12
- declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
13
- WrappedComponent: import("react").ComponentType<Props & WrappedComponentProps<"intl">>;
12
+ declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
13
+ WrappedComponent: import("react").ComponentType<Props & WrappedComponentProps>;
14
14
  };
15
15
  export default _default;
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
- import { WrappedComponentProps } from 'react-intl-next';
2
+ import type { WrappedComponentProps } from 'react-intl-next';
3
3
  type Props = {
4
4
  content: string;
5
5
  };
6
- declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
7
- WrappedComponent: import("react").ComponentType<Props & WrappedComponentProps<"intl">>;
6
+ declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
7
+ WrappedComponent: import("react").ComponentType<Props & WrappedComponentProps>;
8
8
  };
9
9
  export default _default;
@@ -1,10 +1,10 @@
1
1
  import type { Dispatch, SetStateAction } from 'react';
2
- import { WrappedComponentProps } from 'react-intl-next';
2
+ import type { WrappedComponentProps } from 'react-intl-next';
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-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
8
- WrappedComponent: import("react").ComponentType<Props & WrappedComponentProps<"intl">>;
7
+ declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
8
+ WrappedComponent: import("react").ComponentType<Props & WrappedComponentProps>;
9
9
  };
10
10
  export default _default;
@@ -4,8 +4,8 @@ export interface Props {
4
4
  timestamp: string;
5
5
  parentIsIncompleteTask?: boolean;
6
6
  }
7
- export declare const DateComponent: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
8
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
7
+ export declare const DateComponent: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
8
+ WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
9
9
  };
10
10
  declare function DateWithFormatContext(props: Props): JSX.Element;
11
11
  export default DateWithFormatContext;
@@ -29,7 +29,7 @@ import TableRow from './tableRow';
29
29
  import UnknownBlock from './unknownBlock';
30
30
  import type { NodeComponentsProps } from '../../ui/Renderer/types';
31
31
  declare const WindowedCodeBlock: React.ComponentType<import("./codeBlock/codeBlock").Props> & Loadable.LoadableComponent;
32
- declare const CodeBlock: React.ComponentType<import("react-intl-next").WithIntlProps<import("./codeBlock/codeBlock").Props & import("react-intl-next").WrappedComponentProps<"intl">>> & Loadable.LoadableComponent;
32
+ declare const CodeBlock: React.ComponentType<import("react-intl-next").WithIntlProps<import("./codeBlock/codeBlock").Props & import("react-intl-next").WrappedComponentProps>> & Loadable.LoadableComponent;
33
33
  declare const TaskList: React.ComponentType<import("./taskList").Props> & Loadable.LoadableComponent;
34
34
  declare const TaskItem: React.ComponentType<import("../types").NodeProps<import("./taskItem").Props>> & Loadable.LoadableComponent;
35
35
  declare const DecisionList: React.ComponentType<import("./decisionList").Props> & Loadable.LoadableComponent;
@@ -66,10 +66,10 @@ declare const BlockCard: React.ComponentType<{
66
66
  }> & Loadable.LoadableComponent;
67
67
  declare const Media: React.ComponentType<import("./media").MediaProps> & Loadable.LoadableComponent;
68
68
  declare const MediaGroup: React.ComponentType<import("./mediaGroup").MediaGroupProps> & Loadable.LoadableComponent;
69
- declare const MediaInline: React.ComponentType<import("react-intl-next").WithIntlProps<import("./mediaInline").MediaInlineProps & import("react-intl-next").WrappedComponentProps<"intl"> & import("@atlaskit/editor-common/media-inline").MediaInlineAttrs>> & Loadable.LoadableComponent;
70
- declare const MediaSingle: React.ComponentType<import("react-intl-next").WithIntlProps<import("./mediaSingle").Props & import("react-intl-next").WrappedComponentProps<"intl">>> & Loadable.LoadableComponent;
69
+ declare const MediaInline: React.ComponentType<import("react-intl-next").WithIntlProps<import("./mediaInline").MediaInlineProps & import("react-intl-next").WrappedComponentProps & import("@atlaskit/editor-common/media-inline").MediaInlineAttrs>> & Loadable.LoadableComponent;
70
+ declare const MediaSingle: React.ComponentType<import("react-intl-next").WithIntlProps<import("./mediaSingle").Props & import("react-intl-next").WrappedComponentProps>> & Loadable.LoadableComponent;
71
71
  declare const Mention: React.ComponentType<import("./mention").Props> & Loadable.LoadableComponent;
72
- declare const Expand: React.ComponentType<import("react-intl-next").WithIntlProps<import("../../ui/Expand").ExpandProps & import("react-intl-next").WrappedComponentProps<"intl">>> & Loadable.LoadableComponent;
72
+ declare const Expand: React.ComponentType<import("react-intl-next").WithIntlProps<import("../../ui/Expand").ExpandProps & import("react-intl-next").WrappedComponentProps>> & Loadable.LoadableComponent;
73
73
  export declare const nodeToReact: {
74
74
  [key: string]: React.ComponentType<React.PropsWithChildren<any>>;
75
75
  };
@@ -32,7 +32,7 @@ export type MediaInlineProps = {
32
32
  ssr?: MediaSSR;
33
33
  };
34
34
  export declare const RenderMediaInline: ({ rendererAppearance, clipboardAttrs, collection: collectionName, eventHandlers, identifier, }: RenderMediaInlineProps) => JSX.Element;
35
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<MediaInlineProps & WrappedComponentProps<"intl"> & MediaInlineAttrs>> & {
36
- WrappedComponent: React.ComponentType<MediaInlineProps & WrappedComponentProps<"intl"> & MediaInlineAttrs>;
35
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<MediaInlineProps & WrappedComponentProps & MediaInlineAttrs>> & {
36
+ WrappedComponent: React.ComponentType<MediaInlineProps & WrappedComponentProps & MediaInlineAttrs>;
37
37
  };
38
38
  export default _default;
@@ -20,7 +20,7 @@ export interface Props {
20
20
  dataAttributes?: Record<string, any>;
21
21
  }
22
22
  export declare const getMediaContainerWidth: (currentContainerWidth: number, layout: MediaSingleLayout) => number;
23
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
24
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
23
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
24
+ WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
25
25
  };
26
26
  export default _default;
@@ -17,7 +17,7 @@ export interface ExpandProps {
17
17
  nestedHeaderIds?: Array<string>;
18
18
  rendererAppearance?: RendererAppearance;
19
19
  }
20
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<ExpandProps & WrappedComponentProps<"intl">>> & {
21
- WrappedComponent: React.ComponentType<ExpandProps & WrappedComponentProps<"intl">>;
20
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<ExpandProps & WrappedComponentProps>> & {
21
+ WrappedComponent: React.ComponentType<ExpandProps & WrappedComponentProps>;
22
22
  };
23
23
  export default _default;
@@ -12,12 +12,12 @@ declare const _default: import("react").FC<import("react-intl-next").WithIntlPro
12
12
  sortOrdered?: SortOrder | undefined;
13
13
  onClick: () => void;
14
14
  onKeyDown: (event: import("react").KeyboardEvent<HTMLElement>) => void;
15
- } & WrappedComponentProps<"intl">>> & {
15
+ } & WrappedComponentProps>> & {
16
16
  WrappedComponent: import("react").ComponentType<{
17
17
  isSortingAllowed: boolean;
18
18
  sortOrdered?: SortOrder | undefined;
19
19
  onClick: () => void;
20
20
  onKeyDown: (event: import("react").KeyboardEvent<HTMLElement>) => void;
21
- } & WrappedComponentProps<"intl">>;
21
+ } & WrappedComponentProps>;
22
22
  };
23
23
  export default _default;
@@ -11,7 +11,7 @@ export declare class ADFEncoder<T> {
11
11
  }
12
12
  export declare const getText: (node: PMNode | ADNode) => string;
13
13
  export declare const getEventHandler: (eventHandlers?: EventHandlers, type?: keyof EventHandlers, eventName?: string) => any;
14
- export declare const getPlatform: (rendererAppearance: RendererAppearance) => "mobile" | "web";
14
+ export declare const getPlatform: (rendererAppearance: RendererAppearance) => "web" | "mobile";
15
15
  /**
16
16
  * Traverse through parent elements of element. Return element for which evaluate(element) returns
17
17
  * true. If topElement is reached before evaluate returns true, return false. Does not run evaluate
@@ -8,9 +8,9 @@ export declare function CodeWithIntl(props: MarkProps<{
8
8
  }> & WrappedComponentProps): JSX.Element;
9
9
  declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
10
10
  codeBidiWarningTooltipEnabled: boolean;
11
- } & import("../types").MarkMeta & WrappedComponentProps<"intl">>> & {
11
+ } & import("../types").MarkMeta & WrappedComponentProps>> & {
12
12
  WrappedComponent: React.ComponentType<{
13
13
  codeBidiWarningTooltipEnabled: boolean;
14
- } & import("../types").MarkMeta & WrappedComponentProps<"intl">>;
14
+ } & import("../types").MarkMeta & WrappedComponentProps>;
15
15
  };
16
16
  export default _default;
@@ -9,7 +9,7 @@ export interface Props {
9
9
  codeBidiWarningTooltipEnabled: boolean;
10
10
  className?: string;
11
11
  }
12
- declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
13
- WrappedComponent: import("react").ComponentType<Props & WrappedComponentProps<"intl">>;
12
+ declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
13
+ WrappedComponent: import("react").ComponentType<Props & WrappedComponentProps>;
14
14
  };
15
15
  export default _default;
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
- import { WrappedComponentProps } from 'react-intl-next';
2
+ import type { WrappedComponentProps } from 'react-intl-next';
3
3
  type Props = {
4
4
  content: string;
5
5
  };
6
- declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
7
- WrappedComponent: import("react").ComponentType<Props & WrappedComponentProps<"intl">>;
6
+ declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
7
+ WrappedComponent: import("react").ComponentType<Props & WrappedComponentProps>;
8
8
  };
9
9
  export default _default;
@@ -1,10 +1,10 @@
1
1
  import type { Dispatch, SetStateAction } from 'react';
2
- import { WrappedComponentProps } from 'react-intl-next';
2
+ import type { WrappedComponentProps } from 'react-intl-next';
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-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
8
- WrappedComponent: import("react").ComponentType<Props & WrappedComponentProps<"intl">>;
7
+ declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
8
+ WrappedComponent: import("react").ComponentType<Props & WrappedComponentProps>;
9
9
  };
10
10
  export default _default;
@@ -4,8 +4,8 @@ export interface Props {
4
4
  timestamp: string;
5
5
  parentIsIncompleteTask?: boolean;
6
6
  }
7
- export declare const DateComponent: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
8
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
7
+ export declare const DateComponent: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
8
+ WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
9
9
  };
10
10
  declare function DateWithFormatContext(props: Props): JSX.Element;
11
11
  export default DateWithFormatContext;
@@ -29,7 +29,7 @@ import TableRow from './tableRow';
29
29
  import UnknownBlock from './unknownBlock';
30
30
  import type { NodeComponentsProps } from '../../ui/Renderer/types';
31
31
  declare const WindowedCodeBlock: React.ComponentType<import("./codeBlock/codeBlock").Props> & Loadable.LoadableComponent;
32
- declare const CodeBlock: React.ComponentType<import("react-intl-next").WithIntlProps<import("./codeBlock/codeBlock").Props & import("react-intl-next").WrappedComponentProps<"intl">>> & Loadable.LoadableComponent;
32
+ declare const CodeBlock: React.ComponentType<import("react-intl-next").WithIntlProps<import("./codeBlock/codeBlock").Props & import("react-intl-next").WrappedComponentProps>> & Loadable.LoadableComponent;
33
33
  declare const TaskList: React.ComponentType<import("./taskList").Props> & Loadable.LoadableComponent;
34
34
  declare const TaskItem: React.ComponentType<import("../types").NodeProps<import("./taskItem").Props>> & Loadable.LoadableComponent;
35
35
  declare const DecisionList: React.ComponentType<import("./decisionList").Props> & Loadable.LoadableComponent;
@@ -66,10 +66,10 @@ declare const BlockCard: React.ComponentType<{
66
66
  }> & Loadable.LoadableComponent;
67
67
  declare const Media: React.ComponentType<import("./media").MediaProps> & Loadable.LoadableComponent;
68
68
  declare const MediaGroup: React.ComponentType<import("./mediaGroup").MediaGroupProps> & Loadable.LoadableComponent;
69
- declare const MediaInline: React.ComponentType<import("react-intl-next").WithIntlProps<import("./mediaInline").MediaInlineProps & import("react-intl-next").WrappedComponentProps<"intl"> & import("@atlaskit/editor-common/media-inline").MediaInlineAttrs>> & Loadable.LoadableComponent;
70
- declare const MediaSingle: React.ComponentType<import("react-intl-next").WithIntlProps<import("./mediaSingle").Props & import("react-intl-next").WrappedComponentProps<"intl">>> & Loadable.LoadableComponent;
69
+ declare const MediaInline: React.ComponentType<import("react-intl-next").WithIntlProps<import("./mediaInline").MediaInlineProps & import("react-intl-next").WrappedComponentProps & import("@atlaskit/editor-common/media-inline").MediaInlineAttrs>> & Loadable.LoadableComponent;
70
+ declare const MediaSingle: React.ComponentType<import("react-intl-next").WithIntlProps<import("./mediaSingle").Props & import("react-intl-next").WrappedComponentProps>> & Loadable.LoadableComponent;
71
71
  declare const Mention: React.ComponentType<import("./mention").Props> & Loadable.LoadableComponent;
72
- declare const Expand: React.ComponentType<import("react-intl-next").WithIntlProps<import("../../ui/Expand").ExpandProps & import("react-intl-next").WrappedComponentProps<"intl">>> & Loadable.LoadableComponent;
72
+ declare const Expand: React.ComponentType<import("react-intl-next").WithIntlProps<import("../../ui/Expand").ExpandProps & import("react-intl-next").WrappedComponentProps>> & Loadable.LoadableComponent;
73
73
  export declare const nodeToReact: {
74
74
  [key: string]: React.ComponentType<React.PropsWithChildren<any>>;
75
75
  };
@@ -32,7 +32,7 @@ export type MediaInlineProps = {
32
32
  ssr?: MediaSSR;
33
33
  };
34
34
  export declare const RenderMediaInline: ({ rendererAppearance, clipboardAttrs, collection: collectionName, eventHandlers, identifier, }: RenderMediaInlineProps) => JSX.Element;
35
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<MediaInlineProps & WrappedComponentProps<"intl"> & MediaInlineAttrs>> & {
36
- WrappedComponent: React.ComponentType<MediaInlineProps & WrappedComponentProps<"intl"> & MediaInlineAttrs>;
35
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<MediaInlineProps & WrappedComponentProps & MediaInlineAttrs>> & {
36
+ WrappedComponent: React.ComponentType<MediaInlineProps & WrappedComponentProps & MediaInlineAttrs>;
37
37
  };
38
38
  export default _default;
@@ -20,7 +20,7 @@ export interface Props {
20
20
  dataAttributes?: Record<string, any>;
21
21
  }
22
22
  export declare const getMediaContainerWidth: (currentContainerWidth: number, layout: MediaSingleLayout) => number;
23
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
24
- WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
23
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
24
+ WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
25
25
  };
26
26
  export default _default;
@@ -17,7 +17,7 @@ export interface ExpandProps {
17
17
  nestedHeaderIds?: Array<string>;
18
18
  rendererAppearance?: RendererAppearance;
19
19
  }
20
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<ExpandProps & WrappedComponentProps<"intl">>> & {
21
- WrappedComponent: React.ComponentType<ExpandProps & WrappedComponentProps<"intl">>;
20
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<ExpandProps & WrappedComponentProps>> & {
21
+ WrappedComponent: React.ComponentType<ExpandProps & WrappedComponentProps>;
22
22
  };
23
23
  export default _default;
@@ -12,12 +12,12 @@ declare const _default: import("react").FC<import("react-intl-next").WithIntlPro
12
12
  sortOrdered?: SortOrder | undefined;
13
13
  onClick: () => void;
14
14
  onKeyDown: (event: import("react").KeyboardEvent<HTMLElement>) => void;
15
- } & WrappedComponentProps<"intl">>> & {
15
+ } & WrappedComponentProps>> & {
16
16
  WrappedComponent: import("react").ComponentType<{
17
17
  isSortingAllowed: boolean;
18
18
  sortOrdered?: SortOrder | undefined;
19
19
  onClick: () => void;
20
20
  onKeyDown: (event: import("react").KeyboardEvent<HTMLElement>) => void;
21
- } & WrappedComponentProps<"intl">>;
21
+ } & WrappedComponentProps>;
22
22
  };
23
23
  export default _default;
@@ -11,7 +11,7 @@ export declare class ADFEncoder<T> {
11
11
  }
12
12
  export declare const getText: (node: PMNode | ADNode) => string;
13
13
  export declare const getEventHandler: (eventHandlers?: EventHandlers, type?: keyof EventHandlers, eventName?: string) => any;
14
- export declare const getPlatform: (rendererAppearance: RendererAppearance) => "mobile" | "web";
14
+ export declare const getPlatform: (rendererAppearance: RendererAppearance) => "web" | "mobile";
15
15
  /**
16
16
  * Traverse through parent elements of element. Return element for which evaluate(element) returns
17
17
  * true. If topElement is reached before evaluate returns true, return false. Does not run evaluate
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/messages.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/messages.d.ts"
12
12
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/renderer",
3
- "version": "109.10.0",
3
+ "version": "109.10.1",
4
4
  "description": "Renderer component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -31,9 +31,9 @@
31
31
  "@atlaskit/analytics-next": "^9.2.0",
32
32
  "@atlaskit/button": "^17.7.0",
33
33
  "@atlaskit/code": "^15.1.0",
34
- "@atlaskit/editor-common": "^78.15.0",
34
+ "@atlaskit/editor-common": "^78.17.0",
35
35
  "@atlaskit/editor-json-transformer": "^8.10.0",
36
- "@atlaskit/editor-palette": "1.5.2",
36
+ "@atlaskit/editor-palette": "1.5.3",
37
37
  "@atlaskit/editor-prosemirror": "3.0.0",
38
38
  "@atlaskit/editor-shared-styles": "^2.9.0",
39
39
  "@atlaskit/emoji": "^67.6.0",
@@ -51,7 +51,7 @@
51
51
  "@atlaskit/status": "^1.4.0",
52
52
  "@atlaskit/task-decision": "^17.9.0",
53
53
  "@atlaskit/theme": "^12.6.0",
54
- "@atlaskit/tokens": "^1.41.0",
54
+ "@atlaskit/tokens": "^1.42.0",
55
55
  "@atlaskit/tooltip": "^18.1.0",
56
56
  "@babel/runtime": "^7.0.0",
57
57
  "@emotion/react": "^11.7.1",
@@ -102,7 +102,7 @@
102
102
  "react-test-renderer": "^16.8.0",
103
103
  "rxjs": "^5.5.0",
104
104
  "sinon": "^2.2.0",
105
- "typescript": "~4.9.5",
105
+ "typescript": "~5.4.2",
106
106
  "worker-plugin": "^4.0.2"
107
107
  },
108
108
  "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1",
@@ -150,4 +150,4 @@
150
150
  "./use-feature-flags": "./src/use-feature-flags.ts",
151
151
  "./utils": "./src/utils.ts"
152
152
  }
153
- }
153
+ }
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/render-document.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/render-document.d.ts"
12
12
  ]
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/renderer-context.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/renderer-context.d.ts"
12
12
  ]
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/serializer.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/serializer.d.ts"
12
12
  ]
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/text-serializer.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/text-serializer.d.ts"
12
12
  ]
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/use-feature-flags.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/use-feature-flags.d.ts"
12
12
  ]
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/utils.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/utils.d.ts"
12
12
  ]