@atlaskit/renderer 107.3.4 → 108.0.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 (96) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/actions/package.json +2 -2
  3. package/consts/package.json +2 -2
  4. package/dist/cjs/ui/Renderer/index.js +1 -1
  5. package/dist/cjs/version.json +1 -1
  6. package/dist/es2019/ui/Renderer/index.js +1 -1
  7. package/dist/es2019/version.json +1 -1
  8. package/dist/esm/ui/Renderer/index.js +1 -1
  9. package/dist/esm/version.json +1 -1
  10. package/dist/types/actions/index.d.ts +4 -4
  11. package/dist/types/analytics/enums.d.ts +1 -1
  12. package/dist/types/analytics/events.d.ts +29 -29
  13. package/dist/types/analytics/unsupported-content.d.ts +2 -2
  14. package/dist/types/i18n/cs.d.ts +6 -6
  15. package/dist/types/i18n/da.d.ts +6 -6
  16. package/dist/types/i18n/de.d.ts +6 -6
  17. package/dist/types/i18n/en.d.ts +6 -6
  18. package/dist/types/i18n/en_GB.d.ts +6 -6
  19. package/dist/types/i18n/en_ZZ.d.ts +6 -6
  20. package/dist/types/i18n/es.d.ts +6 -6
  21. package/dist/types/i18n/et.d.ts +1 -1
  22. package/dist/types/i18n/fi.d.ts +6 -6
  23. package/dist/types/i18n/fr.d.ts +6 -6
  24. package/dist/types/i18n/hu.d.ts +6 -6
  25. package/dist/types/i18n/it.d.ts +6 -6
  26. package/dist/types/i18n/ja.d.ts +6 -6
  27. package/dist/types/i18n/ko.d.ts +6 -6
  28. package/dist/types/i18n/nb.d.ts +6 -6
  29. package/dist/types/i18n/nl.d.ts +6 -6
  30. package/dist/types/i18n/pl.d.ts +6 -6
  31. package/dist/types/i18n/pt_BR.d.ts +6 -6
  32. package/dist/types/i18n/pt_PT.d.ts +1 -1
  33. package/dist/types/i18n/ru.d.ts +6 -6
  34. package/dist/types/i18n/sk.d.ts +1 -1
  35. package/dist/types/i18n/sv.d.ts +6 -6
  36. package/dist/types/i18n/th.d.ts +6 -6
  37. package/dist/types/i18n/tr.d.ts +6 -6
  38. package/dist/types/i18n/uk.d.ts +6 -6
  39. package/dist/types/i18n/vi.d.ts +6 -6
  40. package/dist/types/i18n/zh.d.ts +6 -6
  41. package/dist/types/i18n/zh_TW.d.ts +6 -6
  42. package/dist/types/react/hooks/use-observed-width.d.ts +2 -2
  43. package/dist/types/react/nodes/codeBlock/components/codeBlockCopyButton.d.ts +1 -1
  44. package/dist/types/react/nodes/codeBlock/components/codeBlockWrapButton.d.ts +1 -1
  45. package/dist/types/react/nodes/extension.d.ts +3 -3
  46. package/dist/types/react/nodes/fallback.d.ts +1 -1
  47. package/dist/types/react/nodes/heading-anchor.d.ts +2 -2
  48. package/dist/types/react/nodes/heading.d.ts +1 -1
  49. package/dist/types/react/nodes/index.d.ts +1 -1
  50. package/dist/types/react/nodes/media.d.ts +1 -1
  51. package/dist/types/react/nodes/mediaInline.d.ts +2 -2
  52. package/dist/types/react/nodes/table/sticky.d.ts +2 -2
  53. package/dist/types/react/nodes/table/table.d.ts +1 -1
  54. package/dist/types/react/nodes/table/types.d.ts +1 -1
  55. package/dist/types/react/nodes/table.d.ts +2 -2
  56. package/dist/types/react/nodes/tableCell.d.ts +2 -2
  57. package/dist/types/react/nodes/tableRow.d.ts +2 -2
  58. package/dist/types/react/nodes/text-wrapper.d.ts +1 -1
  59. package/dist/types/react/types.d.ts +2 -2
  60. package/dist/types/react/utils/getCardClickHandler.d.ts +1 -1
  61. package/dist/types/react/utils/performance/RenderTracking.d.ts +4 -4
  62. package/dist/types/render-document.d.ts +2 -2
  63. package/dist/types/renderer-context.d.ts +1 -1
  64. package/dist/types/text/nodes/index.d.ts +1 -1
  65. package/dist/types/types/mediaOptions.d.ts +1 -1
  66. package/dist/types/ui/Expand.d.ts +1 -1
  67. package/dist/types/ui/ExtensionRenderer.d.ts +2 -2
  68. package/dist/types/ui/MediaCard.d.ts +2 -2
  69. package/dist/types/ui/Renderer/style.d.ts +1 -1
  70. package/dist/types/ui/Renderer/types.d.ts +6 -6
  71. package/dist/types/ui/RendererActionsContext/index.d.ts +1 -1
  72. package/dist/types/ui/TaskItemsFormatContext/TaskItemsFormatContext.d.ts +3 -3
  73. package/dist/types/ui/active-header-id-provider.d.ts +1 -1
  74. package/dist/types/ui/annotations/context.d.ts +4 -4
  75. package/dist/types/ui/annotations/draft/component.d.ts +2 -2
  76. package/dist/types/ui/annotations/draft/text.d.ts +1 -1
  77. package/dist/types/ui/annotations/element/index.d.ts +1 -1
  78. package/dist/types/ui/annotations/element/mark.d.ts +1 -1
  79. package/dist/types/ui/annotations/hooks/use-events.d.ts +3 -3
  80. package/dist/types/ui/annotations/hooks/use-inline-comments-filter.d.ts +1 -1
  81. package/dist/types/ui/annotations/hooks/use-load-annotations.d.ts +1 -1
  82. package/dist/types/ui/annotations/hooks/user-selection.d.ts +1 -1
  83. package/dist/types/ui/annotations/selection/mounter.d.ts +1 -1
  84. package/dist/types/ui/annotations/selection/range-validator.d.ts +1 -1
  85. package/dist/types/ui/annotations/selection/wrapper.d.ts +1 -1
  86. package/dist/types/ui/annotations/types.d.ts +3 -3
  87. package/dist/types/ui/annotations/view/index.d.ts +1 -1
  88. package/dist/types/utils.d.ts +2 -2
  89. package/messages/package.json +2 -2
  90. package/package.json +51 -43
  91. package/render-document/package.json +2 -2
  92. package/renderer-context/package.json +2 -2
  93. package/serializer/package.json +2 -2
  94. package/text-serializer/package.json +2 -2
  95. package/use-feature-flags/package.json +2 -2
  96. package/utils/package.json +2 -2
@@ -1,3 +1,9 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
1
7
  declare const _default: {
2
8
  'fabric.editor.headingLink.ascOrderLabel': string;
3
9
  'fabric.editor.headingLink.ascSortingLabel': string;
@@ -11,10 +17,4 @@ declare const _default: {
11
17
  'fabric.editor.headingLink.noOrderLabel': string;
12
18
  'fabric.editor.headingLink.noneSortingLabel': string;
13
19
  };
14
- /**
15
- * NOTE:
16
- *
17
- * This file is automatically generated by Traduki 2.0.
18
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
19
- */
20
20
  export default _default;
@@ -1,8 +1,8 @@
1
- declare const _default: {};
2
1
  /**
3
2
  * NOTE:
4
3
  *
5
4
  * This file is automatically generated by i18n-tools.
6
5
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
7
6
  */
7
+ declare const _default: {};
8
8
  export default _default;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
1
7
  declare const _default: {
2
8
  'fabric.editor.headingLink.ascOrderLabel': string;
3
9
  'fabric.editor.headingLink.ascSortingLabel': string;
@@ -11,10 +17,4 @@ declare const _default: {
11
17
  'fabric.editor.headingLink.noOrderLabel': string;
12
18
  'fabric.editor.headingLink.noneSortingLabel': string;
13
19
  };
14
- /**
15
- * NOTE:
16
- *
17
- * This file is automatically generated by Traduki 2.0.
18
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
19
- */
20
20
  export default _default;
@@ -1,8 +1,8 @@
1
- declare const _default: {};
2
1
  /**
3
2
  * NOTE:
4
3
  *
5
4
  * This file is automatically generated by i18n-tools.
6
5
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
7
6
  */
7
+ declare const _default: {};
8
8
  export default _default;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
1
7
  declare const _default: {
2
8
  'fabric.editor.headingLink.ascOrderLabel': string;
3
9
  'fabric.editor.headingLink.ascSortingLabel': string;
@@ -11,10 +17,4 @@ declare const _default: {
11
17
  'fabric.editor.headingLink.noOrderLabel': string;
12
18
  'fabric.editor.headingLink.noneSortingLabel': string;
13
19
  };
14
- /**
15
- * NOTE:
16
- *
17
- * This file is automatically generated by Traduki 2.0.
18
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
19
- */
20
20
  export default _default;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
1
7
  declare const _default: {
2
8
  'fabric.editor.headingLink.ascOrderLabel': string;
3
9
  'fabric.editor.headingLink.ascSortingLabel': string;
@@ -11,10 +17,4 @@ declare const _default: {
11
17
  'fabric.editor.headingLink.noOrderLabel': string;
12
18
  'fabric.editor.headingLink.noneSortingLabel': string;
13
19
  };
14
- /**
15
- * NOTE:
16
- *
17
- * This file is automatically generated by Traduki 2.0.
18
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
19
- */
20
20
  export default _default;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
1
7
  declare const _default: {
2
8
  'fabric.editor.headingLink.ascOrderLabel': string;
3
9
  'fabric.editor.headingLink.ascSortingLabel': string;
@@ -11,10 +17,4 @@ declare const _default: {
11
17
  'fabric.editor.headingLink.noOrderLabel': string;
12
18
  'fabric.editor.headingLink.noneSortingLabel': string;
13
19
  };
14
- /**
15
- * NOTE:
16
- *
17
- * This file is automatically generated by Traduki 2.0.
18
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
19
- */
20
20
  export default _default;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
1
7
  declare const _default: {
2
8
  'fabric.editor.headingLink.ascOrderLabel': string;
3
9
  'fabric.editor.headingLink.ascSortingLabel': string;
@@ -11,10 +17,4 @@ declare const _default: {
11
17
  'fabric.editor.headingLink.noOrderLabel': string;
12
18
  'fabric.editor.headingLink.noneSortingLabel': string;
13
19
  };
14
- /**
15
- * NOTE:
16
- *
17
- * This file is automatically generated by Traduki 2.0.
18
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
19
- */
20
20
  export default _default;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
1
7
  declare const _default: {
2
8
  'fabric.editor.headingLink.ascOrderLabel': string;
3
9
  'fabric.editor.headingLink.ascSortingLabel': string;
@@ -11,10 +17,4 @@ declare const _default: {
11
17
  'fabric.editor.headingLink.noOrderLabel': string;
12
18
  'fabric.editor.headingLink.noneSortingLabel': string;
13
19
  };
14
- /**
15
- * NOTE:
16
- *
17
- * This file is automatically generated by Traduki 2.0.
18
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
19
- */
20
20
  export default _default;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
1
7
  declare const _default: {
2
8
  'fabric.editor.headingLink.ascOrderLabel': string;
3
9
  'fabric.editor.headingLink.ascSortingLabel': string;
@@ -11,10 +17,4 @@ declare const _default: {
11
17
  'fabric.editor.headingLink.noOrderLabel': string;
12
18
  'fabric.editor.headingLink.noneSortingLabel': string;
13
19
  };
14
- /**
15
- * NOTE:
16
- *
17
- * This file is automatically generated by Traduki 2.0.
18
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
19
- */
20
20
  export default _default;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by Traduki 2.0.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ */
1
7
  declare const _default: {
2
8
  'fabric.editor.headingLink.ascOrderLabel': string;
3
9
  'fabric.editor.headingLink.ascSortingLabel': string;
@@ -11,10 +17,4 @@ declare const _default: {
11
17
  'fabric.editor.headingLink.noOrderLabel': string;
12
18
  'fabric.editor.headingLink.noneSortingLabel': string;
13
19
  };
14
- /**
15
- * NOTE:
16
- *
17
- * This file is automatically generated by Traduki 2.0.
18
- * DO NOT CHANGE IT BY HAND or your changes will be lost.
19
- */
20
20
  export default _default;
@@ -1,3 +1,3 @@
1
- declare type Rectangle = Omit<DOMRectReadOnly, 'toJSON'>;
2
- export declare const useObservedWidth: (node?: Element | null | undefined, useObservedWidthFlag?: boolean | undefined) => Rectangle;
1
+ type Rectangle = Omit<DOMRectReadOnly, 'toJSON'>;
2
+ export declare const useObservedWidth: (node?: Element | null, useObservedWidthFlag?: boolean) => Rectangle;
3
3
  export {};
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { WrappedComponentProps } from 'react-intl-next';
3
- declare type Props = {
3
+ type Props = {
4
4
  content: string;
5
5
  };
6
6
  declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { Dispatch, SetStateAction } from 'react';
3
3
  import { WrappedComponentProps } from 'react-intl-next';
4
- declare type Props = {
4
+ type Props = {
5
5
  setWrapLongLines: Dispatch<SetStateAction<boolean>>;
6
6
  wrapLongLines?: boolean;
7
7
  };
@@ -18,13 +18,13 @@ export interface Props {
18
18
  localId?: string;
19
19
  marks?: PMMark[];
20
20
  }
21
- declare type AllOrNone<T> = T | {
21
+ type AllOrNone<T> = T | {
22
22
  [K in keyof T]?: never;
23
23
  };
24
- declare type RenderExtensionOptions = {
24
+ type RenderExtensionOptions = {
25
25
  isTopLevel?: boolean;
26
26
  } & AllOrNone<OverflowShadowProps>;
27
- export declare const renderExtension: (content: any, layout: string, options?: RenderExtensionOptions, removeOverflow?: boolean | undefined) => JSX.Element;
27
+ export declare const renderExtension: (content: any, layout: string, options?: RenderExtensionOptions, removeOverflow?: boolean) => JSX.Element;
28
28
  declare const _default: {
29
29
  new (props: Readonly<Props>): {
30
30
  overflowContainer?: HTMLElement | null | undefined;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export declare type CardErrorBoundaryProps = {
2
+ export type CardErrorBoundaryProps = {
3
3
  unsupportedComponent: React.ComponentType;
4
4
  };
5
5
  export declare class CardErrorBoundary extends React.PureComponent<{
@@ -2,12 +2,12 @@
2
2
  import React from 'react';
3
3
  import { WrappedComponentProps } from 'react-intl-next';
4
4
  export declare const HeadingAnchorWrapperClassName = "heading-anchor-wrapper";
5
- declare type Props = {
5
+ type Props = {
6
6
  onCopyText: () => Promise<void>;
7
7
  enableNestedHeaderLinks?: boolean;
8
8
  level: number;
9
9
  };
10
- declare type HeadingAnchorProps = Props & React.Props<any> & WrappedComponentProps;
10
+ type HeadingAnchorProps = Props & React.Props<any> & WrappedComponentProps;
11
11
  declare const _default: React.FC<import("react-intl-next").WithIntlProps<HeadingAnchorProps>> & {
12
12
  WrappedComponent: React.ComponentType<HeadingAnchorProps>;
13
13
  };
@@ -2,7 +2,7 @@
2
2
  import { Node as PMNode } from 'prosemirror-model';
3
3
  import { NodeProps } from '../types';
4
4
  import { HeadingAnchorLinksProps } from '../../ui/Renderer/types';
5
- export declare type HeadingLevels = 1 | 2 | 3 | 4 | 5 | 6;
5
+ export type HeadingLevels = 1 | 2 | 3 | 4 | 5 | 6;
6
6
  declare function Heading(props: NodeProps<{
7
7
  level: HeadingLevels;
8
8
  headingId?: string;
@@ -66,7 +66,7 @@ export interface ToReactFlags {
66
66
  allowSelectAllTrap?: boolean;
67
67
  allowWindowedCodeBlock?: boolean;
68
68
  }
69
- export declare const toReact: (node: Node, flags?: ToReactFlags | undefined, nodeComponents?: NodeComponentsProps | undefined) => React.ComponentType<any>;
69
+ export declare const toReact: (node: Node, flags?: ToReactFlags, nodeComponents?: NodeComponentsProps) => React.ComponentType<any>;
70
70
  export interface TextWrapper {
71
71
  type: {
72
72
  name: 'textWrapper';
@@ -8,7 +8,7 @@ import { MediaCardProps } from '../../ui/MediaCard';
8
8
  import { LinkDefinition, BorderMarkDefinition } from '@atlaskit/adf-schema';
9
9
  import type { MediaFeatureFlags } from '@atlaskit/media-common';
10
10
  import { AnalyticsEventPayload } from '../../analytics/events';
11
- export declare type MediaProps = MediaCardProps & {
11
+ export type MediaProps = MediaCardProps & {
12
12
  providers?: ProviderFactory;
13
13
  allowAltTextOnImages?: boolean;
14
14
  children?: React.ReactNode;
@@ -5,14 +5,14 @@ import { MediaProvider } from '../../ui/MediaCard';
5
5
  import { WrappedComponentProps } from 'react-intl-next';
6
6
  import type { EventHandlers } from '@atlaskit/editor-common/ui';
7
7
  import { RendererAppearance } from '../../ui/Renderer/types';
8
- export declare type RenderMediaInlineProps = {
8
+ export type RenderMediaInlineProps = {
9
9
  identifier: FileIdentifier;
10
10
  mediaProvider: Promise<MediaProvider>;
11
11
  children?: React.ReactNode;
12
12
  eventHandlers?: EventHandlers;
13
13
  rendererAppearance?: RendererAppearance;
14
14
  };
15
- export declare type MediaInlineProps = {
15
+ export type MediaInlineProps = {
16
16
  id: string;
17
17
  collection?: string;
18
18
  providers: ProviderFactory;
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import { jsx } from '@emotion/react';
4
4
  import type { OverflowShadowProps } from '@atlaskit/editor-common/ui';
5
5
  import { TableLayout } from '@atlaskit/adf-schema';
6
- export declare type StickyMode = 'none' | 'stick' | 'pin-bottom';
6
+ export type StickyMode = 'none' | 'stick' | 'pin-bottom';
7
7
  export declare const tableStickyPadding = 8;
8
8
  interface FixedProps {
9
9
  top?: number;
@@ -11,7 +11,7 @@ interface FixedProps {
11
11
  mode: StickyMode;
12
12
  }
13
13
  export declare const FixedTableDiv: React.FC<FixedProps>;
14
- export declare type StickyTableProps = {
14
+ export type StickyTableProps = {
15
15
  left?: number;
16
16
  top?: number;
17
17
  mode: StickyMode;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { SharedTableProps } from './types';
3
- export declare type TableProps = SharedTableProps & {
3
+ export type TableProps = SharedTableProps & {
4
4
  innerRef?: React.RefObject<HTMLTableElement>;
5
5
  children: React.ReactNode[];
6
6
  };
@@ -1,5 +1,5 @@
1
1
  import { TableLayout } from '@atlaskit/adf-schema';
2
- export declare type SharedTableProps = {
2
+ export type SharedTableProps = {
3
3
  columnWidths?: Array<number>;
4
4
  layout: TableLayout;
5
5
  isNumberColumnEnabled: boolean;
@@ -6,7 +6,7 @@ import { RendererAppearance, StickyHeaderConfig } from '../../ui/Renderer/types'
6
6
  import { WithSmartCardStorageProps } from '../../ui/SmartCardStorage';
7
7
  import { StickyMode, OverflowParent } from './table/sticky';
8
8
  import { SharedTableProps } from './table/types';
9
- export declare type TableProps = SharedTableProps & {
9
+ export type TableProps = SharedTableProps & {
10
10
  children: React.ReactElement<any> | Array<React.ReactElement<any>>;
11
11
  tableNode?: PMNode;
12
12
  rendererAppearance?: RendererAppearance;
@@ -41,7 +41,7 @@ export declare class TableContainer extends React.Component<TableProps & Overflo
41
41
  render(): JSX.Element;
42
42
  private grabFirstRowRef;
43
43
  }
44
- export declare type TableProcessorState = {
44
+ export type TableProcessorState = {
45
45
  tableOrderStatus?: TableOrderStatus;
46
46
  };
47
47
  export declare class TableProcessor extends React.Component<TableProps & OverflowShadowProps & WithSmartCardStorageProps, TableProcessorState> {
@@ -3,7 +3,7 @@ import { CellAttributes } from '@atlaskit/adf-schema';
3
3
  import { SortOrder } from '@atlaskit/editor-common/types';
4
4
  import { AnalyticsEventPayload } from '../../analytics/events';
5
5
  import { WrappedComponentProps } from 'react-intl-next';
6
- declare type CellProps = CellAttributes & {
6
+ type CellProps = CellAttributes & {
7
7
  children?: React.ReactNode;
8
8
  onClick?: () => void;
9
9
  className?: string;
@@ -11,7 +11,7 @@ declare type CellProps = CellAttributes & {
11
11
  offsetTop?: number;
12
12
  ariaSort?: string;
13
13
  };
14
- export declare type CellWithSortingProps = CellProps & {
14
+ export type CellWithSortingProps = CellProps & {
15
15
  isHeaderRow?: boolean;
16
16
  allowColumnSorting?: boolean;
17
17
  onSorting?: (columnIndex?: number, currentSortOrdered?: SortOrder) => void;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { SortOrder } from '@atlaskit/editor-common/types';
3
- declare type Props = {
3
+ type Props = {
4
4
  isNumberColumnEnabled?: number;
5
5
  index?: number;
6
6
  children?: React.ReactNode;
@@ -12,7 +12,7 @@ declare type Props = {
12
12
  };
13
13
  innerRef?: React.Ref<HTMLTableRowElement>;
14
14
  };
15
- declare type State = {
15
+ type State = {
16
16
  colGroupWidths: string[];
17
17
  };
18
18
  export default class TableRow extends React.Component<Props, State> {
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- declare type Props = {
2
+ type Props = {
3
3
  startPos: number;
4
4
  endPos: number;
5
5
  children?: string | null;
@@ -54,5 +54,5 @@ export interface AnnotationMarkMeta extends MarkMeta {
54
54
  annotationParentIds: string[];
55
55
  allowAnnotations: boolean;
56
56
  }
57
- export declare type NodeProps<NodeAttrs = {}> = NodeAttrs & PropsWithChildren<NodeMeta>;
58
- export declare type MarkProps<MarkAttrs = {}> = MarkAttrs & PropsWithChildren<MarkMeta>;
57
+ export type NodeProps<NodeAttrs = {}> = NodeAttrs & PropsWithChildren<NodeMeta>;
58
+ export type MarkProps<MarkAttrs = {}> = MarkAttrs & PropsWithChildren<MarkMeta>;
@@ -1,2 +1,2 @@
1
1
  import type { EventHandlers } from '@atlaskit/editor-common/ui';
2
- export declare const getCardClickHandler: (eventHandlers?: EventHandlers | undefined, url?: string | undefined) => ((e: React.MouseEvent<HTMLElement>) => any) | undefined;
2
+ export declare const getCardClickHandler: (eventHandlers?: EventHandlers, url?: string) => ((e: React.MouseEvent<HTMLElement>) => any) | undefined;
@@ -1,9 +1,9 @@
1
1
  import type { AnalyticsEventPayload } from '../../../analytics/events';
2
2
  import { ACTION_SUBJECT, ACTION } from '@atlaskit/editor-common/analytics';
3
- export declare type FireAnalyticsCallback = <T = void>(payload: AnalyticsEventPayload<T>) => void | undefined;
4
- declare type RenderActions = ACTION.RE_RENDERED;
5
- declare type RenderActionSubjects = ACTION_SUBJECT.RENDERER;
6
- export declare type RenderTrackingProps<ComponentProps> = {
3
+ export type FireAnalyticsCallback = <T = void>(payload: AnalyticsEventPayload<T>) => void | undefined;
4
+ type RenderActions = ACTION.RE_RENDERED;
5
+ type RenderActionSubjects = ACTION_SUBJECT.RENDERER;
6
+ export type RenderTrackingProps<ComponentProps> = {
7
7
  componentProps: ComponentProps;
8
8
  action: RenderActions;
9
9
  actionSubject: RenderActionSubjects;
@@ -18,6 +18,6 @@ export interface ResultWithTime<T> {
18
18
  output: T;
19
19
  time: number;
20
20
  }
21
- declare type DispatchAnalyticsEvent = (event: AnalyticsEventPayload) => void;
22
- export declare const renderDocument: <T>(doc: any, serializer: Serializer<T>, schema?: Schema, adfStage?: ADFStage, useSpecBasedValidator?: boolean, rendererId?: string, dispatchAnalyticsEvent?: DispatchAnalyticsEvent | undefined, unsupportedContentLevelsTracking?: UnsupportedContentLevelsTracking | undefined, appearance?: RendererAppearance) => RenderOutput<T | null>;
21
+ type DispatchAnalyticsEvent = (event: AnalyticsEventPayload) => void;
22
+ export declare const renderDocument: <T>(doc: any, serializer: Serializer<T>, schema?: Schema, adfStage?: ADFStage, useSpecBasedValidator?: boolean, rendererId?: string, dispatchAnalyticsEvent?: DispatchAnalyticsEvent, unsupportedContentLevelsTracking?: UnsupportedContentLevelsTracking, appearance?: RendererAppearance) => RenderOutput<T | null>;
23
23
  export {};
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { FeatureFlags } from '@atlaskit/editor-common/types';
3
- export declare type RendererContextProps = {
3
+ export type RendererContextProps = {
4
4
  featureFlags?: FeatureFlags;
5
5
  };
6
6
  export declare const useRendererContext: () => RendererContextProps;
@@ -1,5 +1,5 @@
1
1
  import { Node as PMNode, Schema } from 'prosemirror-model';
2
- export declare type NodeReducer = (node: PMNode, schema: Schema) => string;
2
+ export type NodeReducer = (node: PMNode, schema: Schema) => string;
3
3
  export declare const reduce: NodeReducer;
4
4
  export declare const nodeToReducerMapping: {
5
5
  [key: string]: NodeReducer;
@@ -1,6 +1,6 @@
1
1
  import { MediaClientConfig } from '@atlaskit/media-core';
2
2
  import { MediaFeatureFlags, SSR } from '@atlaskit/media-common';
3
- export declare type MediaSSR = {
3
+ export type MediaSSR = {
4
4
  mode: SSR;
5
5
  config: MediaClientConfig;
6
6
  };
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import { AnalyticsEventPayload } from '../analytics/events';
4
4
  import { WrappedComponentProps } from 'react-intl-next';
5
5
  import { RendererAppearance } from './Renderer/types';
6
- export declare type StyleProps = {
6
+ export type StyleProps = {
7
7
  expanded?: boolean;
8
8
  focused?: boolean;
9
9
  'data-node-type'?: 'expand' | 'nestedExpand';
@@ -32,9 +32,9 @@ export default class ExtensionRenderer extends React.Component<Props, State> {
32
32
  mounted: boolean;
33
33
  UNSAFE_componentWillMount(): void;
34
34
  componentWillUnmount(): void;
35
- handleProvider: (name: keyof State, providerPromise?: Promise<any> | undefined) => void;
35
+ handleProvider: (name: keyof State, providerPromise?: Promise<any>) => void;
36
36
  getNodeRenderer: import("memoize-one").MemoizedFn<typeof getNodeRenderer>;
37
- renderExtensionNode: (extensionProvider?: ExtensionProvider<any> | null | undefined) => JSX.Element;
37
+ renderExtensionNode: (extensionProvider?: ExtensionProvider | null) => JSX.Element;
38
38
  setupAndRenderExtensionNode: (providers: {
39
39
  extensionProvider?: Promise<ExtensionProvider<any>> | undefined;
40
40
  }) => JSX.Element;
@@ -10,7 +10,7 @@ import { MediaFeatureFlags } from '@atlaskit/media-common';
10
10
  import { RendererAppearance } from './Renderer/types';
11
11
  import { RendererContext } from '../react/types';
12
12
  import { MediaSSR } from '../types/mediaOptions';
13
- export declare type MediaProvider = {
13
+ export type MediaProvider = {
14
14
  viewMediaClientConfig: MediaClientConfig;
15
15
  };
16
16
  export interface MediaCardProps {
@@ -46,7 +46,7 @@ export interface State {
46
46
  contextIdentifierProvider?: ContextIdentifierProvider;
47
47
  fileState?: FileState;
48
48
  }
49
- export declare const getListOfIdentifiersFromDoc: (doc?: ADFEntity | undefined) => Identifier[];
49
+ export declare const getListOfIdentifiersFromDoc: (doc?: ADFEntity) => Identifier[];
50
50
  export declare class MediaCardInternal extends Component<MediaCardProps, State> {
51
51
  state: State;
52
52
  componentDidMount(): Promise<void>;
@@ -1,7 +1,7 @@
1
1
  import { Theme } from '@emotion/react';
2
2
  import { RendererAppearance } from './types';
3
3
  export declare const FullPagePadding = 32;
4
- export declare type RendererWrapperProps = {
4
+ export type RendererWrapperProps = {
5
5
  appearance?: RendererAppearance;
6
6
  allowNestedHeaderLinks: boolean;
7
7
  allowColumnSorting: boolean;
@@ -1,16 +1,16 @@
1
1
  /// <reference types="react" />
2
- export declare type RendererAppearance = 'comment' | 'full-page' | 'full-width' | 'mobile' | undefined;
3
- export declare type StickyHeaderConfig = {
2
+ export type RendererAppearance = 'comment' | 'full-page' | 'full-width' | 'mobile' | undefined;
3
+ export type StickyHeaderConfig = {
4
4
  offsetTop?: number;
5
5
  };
6
- export declare type StickyHeaderProps = boolean | ({
6
+ export type StickyHeaderProps = boolean | ({
7
7
  show?: boolean;
8
8
  } & StickyHeaderConfig);
9
- export declare type HeadingAnchorLinksConfig = {
9
+ export type HeadingAnchorLinksConfig = {
10
10
  activeHeadingId?: string;
11
11
  allowNestedHeaderLinks?: boolean;
12
12
  };
13
- export declare type NodeComponentsProps = {
13
+ export type NodeComponentsProps = {
14
14
  [key: string]: React.ComponentType<any>;
15
15
  };
16
- export declare type HeadingAnchorLinksProps = boolean | HeadingAnchorLinksConfig;
16
+ export type HeadingAnchorLinksProps = boolean | HeadingAnchorLinksConfig;
@@ -1,7 +1,7 @@
1
1
  import React, { PropsWithChildren } from 'react';
2
2
  import RendererActions from '../../actions/index';
3
3
  export declare const RendererContext: React.Context<RendererActions>;
4
- declare type RendererActionsContextProps = PropsWithChildren<{
4
+ type RendererActionsContextProps = PropsWithChildren<{
5
5
  context?: RendererActions;
6
6
  }>;
7
7
  export declare function RendererActionsContext({ children, context, }: RendererActionsContextProps): JSX.Element;
@@ -1,11 +1,11 @@
1
1
  import React, { ReactNode } from 'react';
2
- export declare type TaskItemsDone = boolean | undefined;
3
- export declare type TaskItemsStateContext = [
2
+ export type TaskItemsDone = boolean | undefined;
3
+ export type TaskItemsStateContext = [
4
4
  TaskItemsDone,
5
5
  React.Dispatch<TaskItemsFormatReducerAction>
6
6
  ];
7
7
  export declare const TaskItemsFormatContext: React.Context<TaskItemsStateContext>;
8
- export declare type TaskItemsFormatReducerAction = boolean | undefined;
8
+ export type TaskItemsFormatReducerAction = boolean | undefined;
9
9
  export declare function TaskItemsFormatProvider({ children }: {
10
10
  children: ReactNode;
11
11
  }): JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  declare const Provider: React.Provider<string | undefined>;
3
- declare type Props = {
3
+ type Props = {
4
4
  nestedHeaderIds: string[];
5
5
  onNestedHeaderIdMatch: () => void;
6
6
  };
@@ -2,15 +2,15 @@ import React from 'react';
2
2
  import { Position } from './types';
3
3
  import type { AnnotationProviders } from '@atlaskit/editor-common/types';
4
4
  import { AnnotationMarkStates } from '@atlaskit/adf-schema';
5
- declare type ChildrenProps = {
5
+ type ChildrenProps = {
6
6
  applyAnnotationDraftAt: (position: Position) => void;
7
7
  clearAnnotationDraft: () => void;
8
8
  };
9
- export declare type RenderCallbackType = React.FC<ChildrenProps>;
10
- declare type Props = {
9
+ export type RenderCallbackType = React.FC<ChildrenProps>;
10
+ type Props = {
11
11
  children: RenderCallbackType;
12
12
  };
13
- declare type State = {
13
+ type State = {
14
14
  position: Position | null;
15
15
  };
16
16
  export declare const AnnotationsDraftContext: React.Context<Position | null>;