@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.
- package/CHANGELOG.md +17 -0
- package/actions/package.json +2 -2
- package/consts/package.json +2 -2
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/actions/index.d.ts +4 -4
- package/dist/types/analytics/enums.d.ts +1 -1
- package/dist/types/analytics/events.d.ts +29 -29
- package/dist/types/analytics/unsupported-content.d.ts +2 -2
- package/dist/types/i18n/cs.d.ts +6 -6
- package/dist/types/i18n/da.d.ts +6 -6
- package/dist/types/i18n/de.d.ts +6 -6
- package/dist/types/i18n/en.d.ts +6 -6
- package/dist/types/i18n/en_GB.d.ts +6 -6
- package/dist/types/i18n/en_ZZ.d.ts +6 -6
- package/dist/types/i18n/es.d.ts +6 -6
- package/dist/types/i18n/et.d.ts +1 -1
- package/dist/types/i18n/fi.d.ts +6 -6
- package/dist/types/i18n/fr.d.ts +6 -6
- package/dist/types/i18n/hu.d.ts +6 -6
- package/dist/types/i18n/it.d.ts +6 -6
- package/dist/types/i18n/ja.d.ts +6 -6
- package/dist/types/i18n/ko.d.ts +6 -6
- package/dist/types/i18n/nb.d.ts +6 -6
- package/dist/types/i18n/nl.d.ts +6 -6
- package/dist/types/i18n/pl.d.ts +6 -6
- package/dist/types/i18n/pt_BR.d.ts +6 -6
- package/dist/types/i18n/pt_PT.d.ts +1 -1
- package/dist/types/i18n/ru.d.ts +6 -6
- package/dist/types/i18n/sk.d.ts +1 -1
- package/dist/types/i18n/sv.d.ts +6 -6
- package/dist/types/i18n/th.d.ts +6 -6
- package/dist/types/i18n/tr.d.ts +6 -6
- package/dist/types/i18n/uk.d.ts +6 -6
- package/dist/types/i18n/vi.d.ts +6 -6
- package/dist/types/i18n/zh.d.ts +6 -6
- package/dist/types/i18n/zh_TW.d.ts +6 -6
- package/dist/types/react/hooks/use-observed-width.d.ts +2 -2
- package/dist/types/react/nodes/codeBlock/components/codeBlockCopyButton.d.ts +1 -1
- package/dist/types/react/nodes/codeBlock/components/codeBlockWrapButton.d.ts +1 -1
- package/dist/types/react/nodes/extension.d.ts +3 -3
- package/dist/types/react/nodes/fallback.d.ts +1 -1
- package/dist/types/react/nodes/heading-anchor.d.ts +2 -2
- package/dist/types/react/nodes/heading.d.ts +1 -1
- package/dist/types/react/nodes/index.d.ts +1 -1
- package/dist/types/react/nodes/media.d.ts +1 -1
- package/dist/types/react/nodes/mediaInline.d.ts +2 -2
- package/dist/types/react/nodes/table/sticky.d.ts +2 -2
- package/dist/types/react/nodes/table/table.d.ts +1 -1
- package/dist/types/react/nodes/table/types.d.ts +1 -1
- package/dist/types/react/nodes/table.d.ts +2 -2
- package/dist/types/react/nodes/tableCell.d.ts +2 -2
- package/dist/types/react/nodes/tableRow.d.ts +2 -2
- package/dist/types/react/nodes/text-wrapper.d.ts +1 -1
- package/dist/types/react/types.d.ts +2 -2
- package/dist/types/react/utils/getCardClickHandler.d.ts +1 -1
- package/dist/types/react/utils/performance/RenderTracking.d.ts +4 -4
- package/dist/types/render-document.d.ts +2 -2
- package/dist/types/renderer-context.d.ts +1 -1
- package/dist/types/text/nodes/index.d.ts +1 -1
- package/dist/types/types/mediaOptions.d.ts +1 -1
- package/dist/types/ui/Expand.d.ts +1 -1
- package/dist/types/ui/ExtensionRenderer.d.ts +2 -2
- package/dist/types/ui/MediaCard.d.ts +2 -2
- package/dist/types/ui/Renderer/style.d.ts +1 -1
- package/dist/types/ui/Renderer/types.d.ts +6 -6
- package/dist/types/ui/RendererActionsContext/index.d.ts +1 -1
- package/dist/types/ui/TaskItemsFormatContext/TaskItemsFormatContext.d.ts +3 -3
- package/dist/types/ui/active-header-id-provider.d.ts +1 -1
- package/dist/types/ui/annotations/context.d.ts +4 -4
- package/dist/types/ui/annotations/draft/component.d.ts +2 -2
- package/dist/types/ui/annotations/draft/text.d.ts +1 -1
- package/dist/types/ui/annotations/element/index.d.ts +1 -1
- package/dist/types/ui/annotations/element/mark.d.ts +1 -1
- package/dist/types/ui/annotations/hooks/use-events.d.ts +3 -3
- package/dist/types/ui/annotations/hooks/use-inline-comments-filter.d.ts +1 -1
- package/dist/types/ui/annotations/hooks/use-load-annotations.d.ts +1 -1
- package/dist/types/ui/annotations/hooks/user-selection.d.ts +1 -1
- package/dist/types/ui/annotations/selection/mounter.d.ts +1 -1
- package/dist/types/ui/annotations/selection/range-validator.d.ts +1 -1
- package/dist/types/ui/annotations/selection/wrapper.d.ts +1 -1
- package/dist/types/ui/annotations/types.d.ts +3 -3
- package/dist/types/ui/annotations/view/index.d.ts +1 -1
- package/dist/types/utils.d.ts +2 -2
- package/messages/package.json +2 -2
- package/package.json +51 -43
- package/render-document/package.json +2 -2
- package/renderer-context/package.json +2 -2
- package/serializer/package.json +2 -2
- package/text-serializer/package.json +2 -2
- package/use-feature-flags/package.json +2 -2
- 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;
|
package/dist/types/i18n/ru.d.ts
CHANGED
|
@@ -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;
|
package/dist/types/i18n/sk.d.ts
CHANGED
package/dist/types/i18n/sv.d.ts
CHANGED
|
@@ -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;
|
package/dist/types/i18n/th.d.ts
CHANGED
|
@@ -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;
|
package/dist/types/i18n/tr.d.ts
CHANGED
|
@@ -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;
|
package/dist/types/i18n/uk.d.ts
CHANGED
|
@@ -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;
|
package/dist/types/i18n/vi.d.ts
CHANGED
|
@@ -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;
|
package/dist/types/i18n/zh.d.ts
CHANGED
|
@@ -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
|
-
|
|
2
|
-
export declare const useObservedWidth: (node?: Element | null
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
21
|
+
type AllOrNone<T> = T | {
|
|
22
22
|
[K in keyof T]?: never;
|
|
23
23
|
};
|
|
24
|
-
|
|
24
|
+
type RenderExtensionOptions = {
|
|
25
25
|
isTopLevel?: boolean;
|
|
26
26
|
} & AllOrNone<OverflowShadowProps>;
|
|
27
|
-
export declare const renderExtension: (content: any, layout: string, options?: RenderExtensionOptions, removeOverflow?: boolean
|
|
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;
|
|
@@ -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
|
-
|
|
5
|
+
type Props = {
|
|
6
6
|
onCopyText: () => Promise<void>;
|
|
7
7
|
enableNestedHeaderLinks?: boolean;
|
|
8
8
|
level: number;
|
|
9
9
|
};
|
|
10
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
14
|
+
export type StickyTableProps = {
|
|
15
15
|
left?: number;
|
|
16
16
|
top?: number;
|
|
17
17
|
mode: StickyMode;
|
|
@@ -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
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
15
|
+
type State = {
|
|
16
16
|
colGroupWidths: string[];
|
|
17
17
|
};
|
|
18
18
|
export default class TableRow extends React.Component<Props, State> {
|
|
@@ -54,5 +54,5 @@ export interface AnnotationMarkMeta extends MarkMeta {
|
|
|
54
54
|
annotationParentIds: string[];
|
|
55
55
|
allowAnnotations: boolean;
|
|
56
56
|
}
|
|
57
|
-
export
|
|
58
|
-
export
|
|
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
|
|
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
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export
|
|
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
|
-
|
|
22
|
-
export declare const renderDocument: <T>(doc: any, serializer: Serializer<T>, schema?: Schema, adfStage?: ADFStage, useSpecBasedValidator?: boolean, rendererId?: string, dispatchAnalyticsEvent?: DispatchAnalyticsEvent
|
|
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
|
|
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
|
|
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;
|
|
@@ -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
|
|
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>
|
|
35
|
+
handleProvider: (name: keyof State, providerPromise?: Promise<any>) => void;
|
|
36
36
|
getNodeRenderer: import("memoize-one").MemoizedFn<typeof getNodeRenderer>;
|
|
37
|
-
renderExtensionNode: (extensionProvider?: ExtensionProvider
|
|
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
|
|
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
|
|
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
|
|
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
|
|
3
|
-
export
|
|
2
|
+
export type RendererAppearance = 'comment' | 'full-page' | 'full-width' | 'mobile' | undefined;
|
|
3
|
+
export type StickyHeaderConfig = {
|
|
4
4
|
offsetTop?: number;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type StickyHeaderProps = boolean | ({
|
|
7
7
|
show?: boolean;
|
|
8
8
|
} & StickyHeaderConfig);
|
|
9
|
-
export
|
|
9
|
+
export type HeadingAnchorLinksConfig = {
|
|
10
10
|
activeHeadingId?: string;
|
|
11
11
|
allowNestedHeaderLinks?: boolean;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type NodeComponentsProps = {
|
|
14
14
|
[key: string]: React.ComponentType<any>;
|
|
15
15
|
};
|
|
16
|
-
export
|
|
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
|
-
|
|
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
|
|
3
|
-
export
|
|
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
|
|
8
|
+
export type TaskItemsFormatReducerAction = boolean | undefined;
|
|
9
9
|
export declare function TaskItemsFormatProvider({ children }: {
|
|
10
10
|
children: ReactNode;
|
|
11
11
|
}): JSX.Element;
|
|
@@ -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
|
-
|
|
5
|
+
type ChildrenProps = {
|
|
6
6
|
applyAnnotationDraftAt: (position: Position) => void;
|
|
7
7
|
clearAnnotationDraft: () => void;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
10
|
-
|
|
9
|
+
export type RenderCallbackType = React.FC<ChildrenProps>;
|
|
10
|
+
type Props = {
|
|
11
11
|
children: RenderCallbackType;
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
type State = {
|
|
14
14
|
position: Position | null;
|
|
15
15
|
};
|
|
16
16
|
export declare const AnnotationsDraftContext: React.Context<Position | null>;
|