@atlaskit/renderer 103.0.1 → 103.0.2
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 +6 -0
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/cjs/ui/Renderer/style.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/es2019/ui/Renderer/style.js +284 -284
- package/dist/es2019/version.json +1 -1
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/dist/esm/ui/Renderer/style.js +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +5 -13
- package/dist/types-ts4.0/actions/index.d.ts +0 -61
- package/dist/types-ts4.0/actions/matches-utils.d.ts +0 -7
- package/dist/types-ts4.0/actions.d.ts +0 -3
- package/dist/types-ts4.0/analytics/analyticsContext.d.ts +0 -6
- package/dist/types-ts4.0/analytics/enums.d.ts +0 -56
- package/dist/types-ts4.0/analytics/events.d.ts +0 -110
- package/dist/types-ts4.0/analytics/unsupported-content.d.ts +0 -10
- package/dist/types-ts4.0/consts.d.ts +0 -12
- package/dist/types-ts4.0/i18n/cs.d.ts +0 -20
- package/dist/types-ts4.0/i18n/da.d.ts +0 -20
- package/dist/types-ts4.0/i18n/de.d.ts +0 -20
- package/dist/types-ts4.0/i18n/en.d.ts +0 -20
- package/dist/types-ts4.0/i18n/en_GB.d.ts +0 -20
- package/dist/types-ts4.0/i18n/en_ZZ.d.ts +0 -20
- package/dist/types-ts4.0/i18n/es.d.ts +0 -20
- package/dist/types-ts4.0/i18n/et.d.ts +0 -8
- package/dist/types-ts4.0/i18n/fi.d.ts +0 -20
- package/dist/types-ts4.0/i18n/fr.d.ts +0 -20
- package/dist/types-ts4.0/i18n/hu.d.ts +0 -20
- package/dist/types-ts4.0/i18n/index.d.ts +0 -31
- package/dist/types-ts4.0/i18n/it.d.ts +0 -20
- package/dist/types-ts4.0/i18n/ja.d.ts +0 -20
- package/dist/types-ts4.0/i18n/ko.d.ts +0 -20
- package/dist/types-ts4.0/i18n/nb.d.ts +0 -20
- package/dist/types-ts4.0/i18n/nl.d.ts +0 -20
- package/dist/types-ts4.0/i18n/pl.d.ts +0 -20
- package/dist/types-ts4.0/i18n/pt_BR.d.ts +0 -20
- package/dist/types-ts4.0/i18n/pt_PT.d.ts +0 -8
- package/dist/types-ts4.0/i18n/ru.d.ts +0 -20
- package/dist/types-ts4.0/i18n/sk.d.ts +0 -8
- package/dist/types-ts4.0/i18n/sv.d.ts +0 -20
- package/dist/types-ts4.0/i18n/th.d.ts +0 -20
- package/dist/types-ts4.0/i18n/tr.d.ts +0 -20
- package/dist/types-ts4.0/i18n/uk.d.ts +0 -20
- package/dist/types-ts4.0/i18n/vi.d.ts +0 -20
- package/dist/types-ts4.0/i18n/zh.d.ts +0 -20
- package/dist/types-ts4.0/i18n/zh_TW.d.ts +0 -20
- package/dist/types-ts4.0/index.d.ts +0 -11
- package/dist/types-ts4.0/messages.d.ts +0 -61
- package/dist/types-ts4.0/react/hooks/use-bidi-warnings.d.ts +0 -10
- package/dist/types-ts4.0/react/hooks/use-in-viewport.d.ts +0 -5
- package/dist/types-ts4.0/react/hooks/use-observed-width.d.ts +0 -3
- package/dist/types-ts4.0/react/index.d.ts +0 -118
- package/dist/types-ts4.0/react/marks/alignment.d.ts +0 -4
- package/dist/types-ts4.0/react/marks/annotation.d.ts +0 -6
- package/dist/types-ts4.0/react/marks/breakout.d.ts +0 -6
- package/dist/types-ts4.0/react/marks/code.d.ts +0 -16
- package/dist/types-ts4.0/react/marks/confluence-inline-comment.d.ts +0 -8
- package/dist/types-ts4.0/react/marks/data-consumer.d.ts +0 -4
- package/dist/types-ts4.0/react/marks/em.d.ts +0 -3
- package/dist/types-ts4.0/react/marks/fragment.d.ts +0 -4
- package/dist/types-ts4.0/react/marks/indentation.d.ts +0 -4
- package/dist/types-ts4.0/react/marks/index.d.ts +0 -21
- package/dist/types-ts4.0/react/marks/link.d.ts +0 -9
- package/dist/types-ts4.0/react/marks/strike.d.ts +0 -3
- package/dist/types-ts4.0/react/marks/strong.d.ts +0 -3
- package/dist/types-ts4.0/react/marks/subsup.d.ts +0 -4
- package/dist/types-ts4.0/react/marks/textColor.d.ts +0 -4
- package/dist/types-ts4.0/react/marks/underline.d.ts +0 -3
- package/dist/types-ts4.0/react/marks/unsupportedMark.d.ts +0 -3
- package/dist/types-ts4.0/react/marks/unsupportedNodeAttribute.d.ts +0 -3
- package/dist/types-ts4.0/react/nodes/blockCard.d.ts +0 -10
- package/dist/types-ts4.0/react/nodes/blockquote.d.ts +0 -2
- package/dist/types-ts4.0/react/nodes/bodiedExtension.d.ts +0 -24
- package/dist/types-ts4.0/react/nodes/bulletList.d.ts +0 -5
- package/dist/types-ts4.0/react/nodes/caption.d.ts +0 -4
- package/dist/types-ts4.0/react/nodes/codeBlock/codeBlock.d.ts +0 -14
- package/dist/types-ts4.0/react/nodes/codeBlock/components/codeBlockContainer.d.ts +0 -12
- package/dist/types-ts4.0/react/nodes/codeBlock/components/lightWeightCodeBlock.d.ts +0 -9
- package/dist/types-ts4.0/react/nodes/codeBlock/windowedCodeBlock.d.ts +0 -4
- package/dist/types-ts4.0/react/nodes/codeBlockCopyButton.d.ts +0 -9
- package/dist/types-ts4.0/react/nodes/date.d.ts +0 -11
- package/dist/types-ts4.0/react/nodes/decisionItem.d.ts +0 -3
- package/dist/types-ts4.0/react/nodes/decisionList.d.ts +0 -7
- package/dist/types-ts4.0/react/nodes/doc.d.ts +0 -3
- package/dist/types-ts4.0/react/nodes/embedCard.d.ts +0 -17
- package/dist/types-ts4.0/react/nodes/emoji.d.ts +0 -10
- package/dist/types-ts4.0/react/nodes/extension.d.ts +0 -113
- package/dist/types-ts4.0/react/nodes/fallback.d.ts +0 -16
- package/dist/types-ts4.0/react/nodes/hardBreak.d.ts +0 -6
- package/dist/types-ts4.0/react/nodes/heading-anchor.d.ts +0 -14
- package/dist/types-ts4.0/react/nodes/heading.d.ts +0 -14
- package/dist/types-ts4.0/react/nodes/index.d.ts +0 -94
- package/dist/types-ts4.0/react/nodes/inline.d.ts +0 -1
- package/dist/types-ts4.0/react/nodes/inlineCard.d.ts +0 -65
- package/dist/types-ts4.0/react/nodes/inlineExtension.d.ts +0 -18
- package/dist/types-ts4.0/react/nodes/layoutColumn.d.ts +0 -6
- package/dist/types-ts4.0/react/nodes/layoutSection.d.ts +0 -2
- package/dist/types-ts4.0/react/nodes/listItem.d.ts +0 -2
- package/dist/types-ts4.0/react/nodes/media.d.ts +0 -27
- package/dist/types-ts4.0/react/nodes/mediaGroup.d.ts +0 -29
- package/dist/types-ts4.0/react/nodes/mediaInline.d.ts +0 -20
- package/dist/types-ts4.0/react/nodes/mediaSingle/index.d.ts +0 -23
- package/dist/types-ts4.0/react/nodes/mediaSingle/styles.d.ts +0 -2
- package/dist/types-ts4.0/react/nodes/mention.d.ts +0 -13
- package/dist/types-ts4.0/react/nodes/orderedList.d.ts +0 -6
- package/dist/types-ts4.0/react/nodes/panel.d.ts +0 -17
- package/dist/types-ts4.0/react/nodes/paragraph.d.ts +0 -3
- package/dist/types-ts4.0/react/nodes/placeholder.d.ts +0 -6
- package/dist/types-ts4.0/react/nodes/rule.d.ts +0 -2
- package/dist/types-ts4.0/react/nodes/status.d.ts +0 -10
- package/dist/types-ts4.0/react/nodes/table/colgroup.d.ts +0 -3
- package/dist/types-ts4.0/react/nodes/table/sticky.d.ts +0 -38
- package/dist/types-ts4.0/react/nodes/table/table.d.ts +0 -7
- package/dist/types-ts4.0/react/nodes/table/types.d.ts +0 -7
- package/dist/types-ts4.0/react/nodes/table.d.ts +0 -269
- package/dist/types-ts4.0/react/nodes/tableCell.d.ts +0 -81
- package/dist/types-ts4.0/react/nodes/tableRow.d.ts +0 -24
- package/dist/types-ts4.0/react/nodes/task-item-with-providers.d.ts +0 -29
- package/dist/types-ts4.0/react/nodes/taskItem.d.ts +0 -19
- package/dist/types-ts4.0/react/nodes/taskList.d.ts +0 -8
- package/dist/types-ts4.0/react/nodes/text-wrapper.d.ts +0 -8
- package/dist/types-ts4.0/react/nodes/unknownBlock.d.ts +0 -2
- package/dist/types-ts4.0/react/renderer-node.d.ts +0 -4
- package/dist/types-ts4.0/react/types.d.ts +0 -57
- package/dist/types-ts4.0/react/utils/clipboard.d.ts +0 -1
- package/dist/types-ts4.0/react/utils/element-selection.d.ts +0 -9
- package/dist/types-ts4.0/react/utils/getCardClickHandler.d.ts +0 -2
- package/dist/types-ts4.0/react/utils/inject-props.d.ts +0 -6
- package/dist/types-ts4.0/react/utils/links.d.ts +0 -3
- package/dist/types-ts4.0/react/utils/lists.d.ts +0 -2
- package/dist/types-ts4.0/react/utils/performance/RenderTracking.d.ts +0 -15
- package/dist/types-ts4.0/react/utils/use-select-all-trap.d.ts +0 -2
- package/dist/types-ts4.0/render-document.d.ts +0 -23
- package/dist/types-ts4.0/renderer-context.d.ts +0 -9
- package/dist/types-ts4.0/serializer.d.ts +0 -4
- package/dist/types-ts4.0/steps/index.d.ts +0 -14
- package/dist/types-ts4.0/text/index.d.ts +0 -8
- package/dist/types-ts4.0/text/nodes/blockquote.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/bulletList.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/date.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/decisionItem.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/hardBreak.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/heading.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/index.d.ts +0 -6
- package/dist/types-ts4.0/text/nodes/inlineCard.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/listItem.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/mediaGroup.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/mention.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/orderedList.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/panel.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/paragraph.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/rule.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/status.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/table.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/taskItem.d.ts +0 -3
- package/dist/types-ts4.0/text/nodes/unknown.d.ts +0 -3
- package/dist/types-ts4.0/text-serializer.d.ts +0 -1
- package/dist/types-ts4.0/types/i18n.d.ts +0 -5
- package/dist/types-ts4.0/types/mediaOptions.d.ts +0 -12
- package/dist/types-ts4.0/types/smartLinksOptions.d.ts +0 -3
- package/dist/types-ts4.0/ui/Expand.d.ts +0 -21
- package/dist/types-ts4.0/ui/ExtensionRenderer.d.ts +0 -42
- package/dist/types-ts4.0/ui/MediaCard.d.ts +0 -77
- package/dist/types-ts4.0/ui/Renderer/ErrorBoundary.d.ts +0 -24
- package/dist/types-ts4.0/ui/Renderer/breakout-ssr.d.ts +0 -11
- package/dist/types-ts4.0/ui/Renderer/click-to-edit.d.ts +0 -6
- package/dist/types-ts4.0/ui/Renderer/index.d.ts +0 -33
- package/dist/types-ts4.0/ui/Renderer/style.d.ts +0 -14
- package/dist/types-ts4.0/ui/Renderer/truncated-wrapper.d.ts +0 -12
- package/dist/types-ts4.0/ui/Renderer/types.d.ts +0 -16
- package/dist/types-ts4.0/ui/RendererActionsContext/WithRendererActions.d.ts +0 -6
- package/dist/types-ts4.0/ui/RendererActionsContext/index.d.ts +0 -9
- package/dist/types-ts4.0/ui/SmartCardStorage.d.ts +0 -60
- package/dist/types-ts4.0/ui/SortingIcon.d.ts +0 -23
- package/dist/types-ts4.0/ui/TaskItemsFormatContext/TaskItemsFormatContext.d.ts +0 -15
- package/dist/types-ts4.0/ui/TaskItemsFormatContext/index.d.ts +0 -2
- package/dist/types-ts4.0/ui/active-header-id-provider.d.ts +0 -18
- package/dist/types-ts4.0/ui/annotations/context.d.ts +0 -27
- package/dist/types-ts4.0/ui/annotations/draft/component.d.ts +0 -20
- package/dist/types-ts4.0/ui/annotations/draft/dom.d.ts +0 -7
- package/dist/types-ts4.0/ui/annotations/draft/index.d.ts +0 -2
- package/dist/types-ts4.0/ui/annotations/draft/position.d.ts +0 -2
- package/dist/types-ts4.0/ui/annotations/draft/text.d.ts +0 -11
- package/dist/types-ts4.0/ui/annotations/element/index.d.ts +0 -10
- package/dist/types-ts4.0/ui/annotations/element/mark.d.ts +0 -14
- package/dist/types-ts4.0/ui/annotations/hooks/index.d.ts +0 -3
- package/dist/types-ts4.0/ui/annotations/hooks/use-events.d.ts +0 -18
- package/dist/types-ts4.0/ui/annotations/hooks/use-inline-comment-subscriber.d.ts +0 -1
- package/dist/types-ts4.0/ui/annotations/hooks/use-inline-comments-filter.d.ts +0 -9
- package/dist/types-ts4.0/ui/annotations/hooks/use-load-annotations.d.ts +0 -6
- package/dist/types-ts4.0/ui/annotations/hooks/user-selection.d.ts +0 -9
- package/dist/types-ts4.0/ui/annotations/hooks/utils.d.ts +0 -2
- package/dist/types-ts4.0/ui/annotations/index.d.ts +0 -5
- package/dist/types-ts4.0/ui/annotations/selection/index.d.ts +0 -1
- package/dist/types-ts4.0/ui/annotations/selection/mounter.d.ts +0 -20
- package/dist/types-ts4.0/ui/annotations/selection/range-validator.d.ts +0 -13
- package/dist/types-ts4.0/ui/annotations/selection/wrapper.d.ts +0 -8
- package/dist/types-ts4.0/ui/annotations/types.d.ts +0 -22
- package/dist/types-ts4.0/ui/annotations/view/index.d.ts +0 -7
- package/dist/types-ts4.0/ui/index.d.ts +0 -1
- package/dist/types-ts4.0/ui/renderer-props.d.ts +0 -100
- package/dist/types-ts4.0/use-feature-flags.d.ts +0 -2
- package/dist/types-ts4.0/utils.d.ts +0 -24
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { PureComponent } from 'react';
|
|
4
|
-
import { jsx } from '@emotion/react';
|
|
5
|
-
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
6
|
-
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
7
|
-
import { MediaCardProps } from '../../ui/MediaCard';
|
|
8
|
-
import { LinkDefinition } from '@atlaskit/adf-schema';
|
|
9
|
-
import type { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
10
|
-
import { AnalyticsEventPayload } from '../../analytics/events';
|
|
11
|
-
export declare type MediaProps = MediaCardProps & {
|
|
12
|
-
providers?: ProviderFactory;
|
|
13
|
-
allowAltTextOnImages?: boolean;
|
|
14
|
-
children?: React.ReactNode;
|
|
15
|
-
isInsideOfBlockNode?: boolean;
|
|
16
|
-
marks: Array<LinkDefinition>;
|
|
17
|
-
isLinkMark: () => boolean;
|
|
18
|
-
fireAnalyticsEvent?: (event: AnalyticsEventPayload) => void;
|
|
19
|
-
featureFlags?: MediaFeatureFlags;
|
|
20
|
-
eventHandlers?: EventHandlers;
|
|
21
|
-
enableDownloadButton?: boolean;
|
|
22
|
-
};
|
|
23
|
-
export default class Media extends PureComponent<MediaProps, {}> {
|
|
24
|
-
private renderCard;
|
|
25
|
-
private handleMediaLinkClick;
|
|
26
|
-
render(): jsx.JSX.Element;
|
|
27
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ReactElement, PureComponent } from 'react';
|
|
3
|
-
import { CardEvent } from '@atlaskit/media-card';
|
|
4
|
-
import type { EventHandlers, CardEventClickHandler } from '@atlaskit/editor-common/ui';
|
|
5
|
-
import { Identifier } from '@atlaskit/media-client';
|
|
6
|
-
import { MediaProps } from './media';
|
|
7
|
-
import { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
8
|
-
export interface MediaGroupProps {
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
eventHandlers?: EventHandlers;
|
|
11
|
-
featureFlags?: MediaFeatureFlags;
|
|
12
|
-
enableDownloadButton?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export interface MediaGroupState {
|
|
15
|
-
animate: boolean;
|
|
16
|
-
offset: number;
|
|
17
|
-
}
|
|
18
|
-
export default class MediaGroup extends PureComponent<MediaGroupProps, MediaGroupState> {
|
|
19
|
-
state: MediaGroupState;
|
|
20
|
-
private handleSize;
|
|
21
|
-
private handleScroll;
|
|
22
|
-
render(): JSX.Element;
|
|
23
|
-
renderSingleFile(child: ReactElement<MediaProps>): React.ReactElement<MediaProps, string | React.JSXElementConstructor<any>>;
|
|
24
|
-
renderSingleLink(child: ReactElement<MediaProps>): React.ReactElement<MediaProps, string | React.JSXElementConstructor<any>>;
|
|
25
|
-
onMediaClick: (cardClickHandler: CardEventClickHandler, child: ReactElement<MediaProps>, surroundingItems: Identifier[]) => (event: CardEvent, analyticsEvent?: any) => void;
|
|
26
|
-
cloneFileCard(child: ReactElement<MediaProps>, surroundingItems: Identifier[]): React.ReactElement<MediaProps, string | React.JSXElementConstructor<any>>;
|
|
27
|
-
renderStrip(): JSX.Element;
|
|
28
|
-
private mapMediaPropsToIdentifier;
|
|
29
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
import { FileIdentifier } from '@atlaskit/media-client';
|
|
4
|
-
import { MediaProvider } from '../../ui/MediaCard';
|
|
5
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
6
|
-
export declare type RenderMediaInlineProps = {
|
|
7
|
-
identifier: FileIdentifier;
|
|
8
|
-
mediaProvider: Promise<MediaProvider>;
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
};
|
|
11
|
-
export declare type MediaInlineProps = {
|
|
12
|
-
id: string;
|
|
13
|
-
collection?: string;
|
|
14
|
-
providers: ProviderFactory;
|
|
15
|
-
};
|
|
16
|
-
export declare const RenderMediaInline: React.FC<RenderMediaInlineProps>;
|
|
17
|
-
declare const _default: React.FC<import("react-intl-next").WithIntlProps<MediaInlineProps & WrappedComponentProps<"intl">>> & {
|
|
18
|
-
WrappedComponent: React.ComponentType<MediaInlineProps & WrappedComponentProps<"intl">>;
|
|
19
|
-
};
|
|
20
|
-
export default _default;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import { default as React } from 'react';
|
|
3
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
-
import { RichMediaLayout as MediaSingleLayout } from '@atlaskit/adf-schema';
|
|
5
|
-
import { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
6
|
-
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
7
|
-
import { AnalyticsEventPayload } from '../../../analytics/events';
|
|
8
|
-
import { RendererAppearance } from '../../../ui/Renderer/types';
|
|
9
|
-
export interface Props {
|
|
10
|
-
children: React.ReactNode;
|
|
11
|
-
layout: MediaSingleLayout;
|
|
12
|
-
eventHandlers?: EventHandlers;
|
|
13
|
-
width?: number;
|
|
14
|
-
isInsideOfBlockNode?: boolean;
|
|
15
|
-
rendererAppearance: RendererAppearance;
|
|
16
|
-
fireAnalyticsEvent?: (event: AnalyticsEventPayload) => void;
|
|
17
|
-
featureFlags?: MediaFeatureFlags;
|
|
18
|
-
}
|
|
19
|
-
export declare const getMediaContainerWidth: (currentContainerWidth: number, layout: MediaSingleLayout) => number;
|
|
20
|
-
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
21
|
-
WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
22
|
-
};
|
|
23
|
-
export default _default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { PureComponent } from 'react';
|
|
2
|
-
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
4
|
-
export interface Props {
|
|
5
|
-
id: string;
|
|
6
|
-
providers?: ProviderFactory;
|
|
7
|
-
eventHandlers?: EventHandlers;
|
|
8
|
-
text: string;
|
|
9
|
-
accessLevel?: string;
|
|
10
|
-
}
|
|
11
|
-
export default class MentionItem extends PureComponent<Props, {}> {
|
|
12
|
-
render(): JSX.Element;
|
|
13
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { jsx } from '@emotion/react';
|
|
4
|
-
import { PanelType } from '@atlaskit/adf-schema';
|
|
5
|
-
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
6
|
-
export interface Props {
|
|
7
|
-
children?: React.ReactNode;
|
|
8
|
-
providers?: ProviderFactory;
|
|
9
|
-
panelType: PanelType;
|
|
10
|
-
allowCustomPanels?: boolean;
|
|
11
|
-
panelIcon?: string;
|
|
12
|
-
panelIconId?: string;
|
|
13
|
-
panelIconText?: string;
|
|
14
|
-
panelColor?: string;
|
|
15
|
-
}
|
|
16
|
-
declare const Panel: (props: Props) => jsx.JSX.Element;
|
|
17
|
-
export default Panel;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { PureComponent } from 'react';
|
|
2
|
-
import { Color } from '@atlaskit/status/element';
|
|
3
|
-
export interface Props {
|
|
4
|
-
text: string;
|
|
5
|
-
color: Color;
|
|
6
|
-
localId?: string;
|
|
7
|
-
}
|
|
8
|
-
export default class Status extends PureComponent<Props, {}> {
|
|
9
|
-
render(): JSX.Element;
|
|
10
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { jsx } from '@emotion/react';
|
|
4
|
-
import type { OverflowShadowProps } from '@atlaskit/editor-common/ui';
|
|
5
|
-
import { TableLayout } from '@atlaskit/adf-schema';
|
|
6
|
-
export declare type StickyMode = 'none' | 'stick' | 'pin-bottom';
|
|
7
|
-
export declare const tableStickyPadding = 8;
|
|
8
|
-
interface FixedProps {
|
|
9
|
-
top?: number;
|
|
10
|
-
wrapperWidth: number;
|
|
11
|
-
mode: StickyMode;
|
|
12
|
-
}
|
|
13
|
-
export declare const FixedTableDiv: React.FC<FixedProps>;
|
|
14
|
-
export declare type StickyTableProps = {
|
|
15
|
-
left?: number;
|
|
16
|
-
top?: number;
|
|
17
|
-
mode: StickyMode;
|
|
18
|
-
innerRef: React.RefObject<HTMLDivElement>;
|
|
19
|
-
rowHeight: number;
|
|
20
|
-
wrapperWidth: number;
|
|
21
|
-
tableWidth: string;
|
|
22
|
-
isNumberColumnEnabled: boolean;
|
|
23
|
-
children: React.ReactNode[];
|
|
24
|
-
layout: TableLayout;
|
|
25
|
-
columnWidths?: number[];
|
|
26
|
-
renderWidth: number;
|
|
27
|
-
} & OverflowShadowProps;
|
|
28
|
-
export declare const StickyTable: ({ top, left, mode, shadowClassNames, innerRef, wrapperWidth, tableWidth, isNumberColumnEnabled, layout, children, columnWidths, renderWidth, rowHeight, }: StickyTableProps) => jsx.JSX.Element;
|
|
29
|
-
export declare class OverflowParent {
|
|
30
|
-
private ref;
|
|
31
|
-
private constructor();
|
|
32
|
-
static fromElement(el: HTMLElement | null): OverflowParent;
|
|
33
|
-
get isElement(): boolean;
|
|
34
|
-
get top(): number;
|
|
35
|
-
addEventListener(type: string, cb: EventListenerOrEventListenerObject, ...args: any[]): void;
|
|
36
|
-
removeEventListener(type: string, cb: EventListenerOrEventListenerObject, ...args: any[]): void;
|
|
37
|
-
}
|
|
38
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { SharedTableProps } from './types';
|
|
3
|
-
export declare type TableProps = SharedTableProps & {
|
|
4
|
-
innerRef?: React.RefObject<HTMLTableElement>;
|
|
5
|
-
children: React.ReactNode[];
|
|
6
|
-
};
|
|
7
|
-
export declare const Table: React.MemoExoticComponent<({ innerRef, isNumberColumnEnabled, columnWidths, layout, renderWidth, children, }: TableProps) => JSX.Element>;
|
|
@@ -1,269 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Node as PMNode } from 'prosemirror-model';
|
|
3
|
-
import type { OverflowShadowProps } from '@atlaskit/editor-common/ui';
|
|
4
|
-
import { SortOrder } from '@atlaskit/editor-common/types';
|
|
5
|
-
import { RendererAppearance, StickyHeaderConfig } from '../../ui/Renderer/types';
|
|
6
|
-
import { WithSmartCardStorageProps } from '../../ui/SmartCardStorage';
|
|
7
|
-
import { StickyMode, OverflowParent } from './table/sticky';
|
|
8
|
-
import { SharedTableProps } from './table/types';
|
|
9
|
-
export declare type TableProps = SharedTableProps & {
|
|
10
|
-
children: React.ReactElement<any> | Array<React.ReactElement<any>>;
|
|
11
|
-
tableNode?: PMNode;
|
|
12
|
-
rendererAppearance?: RendererAppearance;
|
|
13
|
-
allowColumnSorting?: boolean;
|
|
14
|
-
stickyHeaders?: StickyHeaderConfig;
|
|
15
|
-
};
|
|
16
|
-
interface TableOrderStatus {
|
|
17
|
-
columnIndex: number;
|
|
18
|
-
order: SortOrder;
|
|
19
|
-
}
|
|
20
|
-
interface TableState {
|
|
21
|
-
stickyMode: StickyMode;
|
|
22
|
-
}
|
|
23
|
-
export declare class TableContainer extends React.Component<TableProps & OverflowShadowProps & WithSmartCardStorageProps, TableState> {
|
|
24
|
-
state: TableState;
|
|
25
|
-
tableRef: React.RefObject<HTMLTableElement>;
|
|
26
|
-
stickyHeaderRef: React.RefObject<HTMLElement>;
|
|
27
|
-
stickyWrapperRef: React.RefObject<HTMLDivElement>;
|
|
28
|
-
wrapperRef: React.RefObject<HTMLDivElement>;
|
|
29
|
-
nextFrame: number | undefined;
|
|
30
|
-
overflowParent: OverflowParent | null;
|
|
31
|
-
componentDidMount(): void;
|
|
32
|
-
componentDidUpdate(prevProps: TableProps, prevState: TableState): void;
|
|
33
|
-
componentWillUnmount: () => void;
|
|
34
|
-
getScrollTop: () => number;
|
|
35
|
-
updateSticky: () => void;
|
|
36
|
-
onScroll: () => void;
|
|
37
|
-
onWrapperScrolled: () => void;
|
|
38
|
-
get pinTop(): number | undefined;
|
|
39
|
-
get stickyTop(): number | undefined;
|
|
40
|
-
get headerRowHeight(): number;
|
|
41
|
-
render(): JSX.Element;
|
|
42
|
-
private grabFirstRowRef;
|
|
43
|
-
}
|
|
44
|
-
export declare type TableProcessorState = {
|
|
45
|
-
tableOrderStatus?: TableOrderStatus;
|
|
46
|
-
};
|
|
47
|
-
export declare class TableProcessor extends React.Component<TableProps & OverflowShadowProps & WithSmartCardStorageProps, TableProcessorState> {
|
|
48
|
-
state: {
|
|
49
|
-
tableOrderStatus: undefined;
|
|
50
|
-
};
|
|
51
|
-
render(): JSX.Element | null;
|
|
52
|
-
private addSortableColumn;
|
|
53
|
-
private changeSortOrder;
|
|
54
|
-
private addNumberColumnIndexes;
|
|
55
|
-
}
|
|
56
|
-
declare const _default: {
|
|
57
|
-
new (props: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
58
|
-
renderWidth?: number | undefined;
|
|
59
|
-
} & Omit<SharedTableProps & {
|
|
60
|
-
children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
61
|
-
tableNode?: PMNode<any> | undefined;
|
|
62
|
-
rendererAppearance?: RendererAppearance;
|
|
63
|
-
allowColumnSorting?: boolean | undefined;
|
|
64
|
-
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
65
|
-
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>): {
|
|
66
|
-
render(): JSX.Element;
|
|
67
|
-
context: any;
|
|
68
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
69
|
-
renderWidth?: number | undefined;
|
|
70
|
-
} & Omit<SharedTableProps & {
|
|
71
|
-
children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
72
|
-
tableNode?: PMNode<any> | undefined;
|
|
73
|
-
rendererAppearance?: RendererAppearance;
|
|
74
|
-
allowColumnSorting?: boolean | undefined;
|
|
75
|
-
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
76
|
-
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
77
|
-
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
78
|
-
readonly props: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
79
|
-
renderWidth?: number | undefined;
|
|
80
|
-
} & Omit<SharedTableProps & {
|
|
81
|
-
children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
82
|
-
tableNode?: PMNode<any> | undefined;
|
|
83
|
-
rendererAppearance?: RendererAppearance;
|
|
84
|
-
allowColumnSorting?: boolean | undefined;
|
|
85
|
-
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
86
|
-
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>> & Readonly<{
|
|
87
|
-
children?: React.ReactNode;
|
|
88
|
-
}>;
|
|
89
|
-
state: Readonly<{}>;
|
|
90
|
-
refs: {
|
|
91
|
-
[key: string]: React.ReactInstance;
|
|
92
|
-
};
|
|
93
|
-
componentDidMount?(): void;
|
|
94
|
-
shouldComponentUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
95
|
-
renderWidth?: number | undefined;
|
|
96
|
-
} & Omit<SharedTableProps & {
|
|
97
|
-
children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
98
|
-
tableNode?: PMNode<any> | undefined;
|
|
99
|
-
rendererAppearance?: RendererAppearance;
|
|
100
|
-
allowColumnSorting?: boolean | undefined;
|
|
101
|
-
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
102
|
-
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
103
|
-
componentWillUnmount?(): void;
|
|
104
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
105
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
106
|
-
renderWidth?: number | undefined;
|
|
107
|
-
} & Omit<SharedTableProps & {
|
|
108
|
-
children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
109
|
-
tableNode?: PMNode<any> | undefined;
|
|
110
|
-
rendererAppearance?: RendererAppearance;
|
|
111
|
-
allowColumnSorting?: boolean | undefined;
|
|
112
|
-
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
113
|
-
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>, prevState: Readonly<{}>): any;
|
|
114
|
-
componentDidUpdate?(prevProps: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
115
|
-
renderWidth?: number | undefined;
|
|
116
|
-
} & Omit<SharedTableProps & {
|
|
117
|
-
children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
118
|
-
tableNode?: PMNode<any> | undefined;
|
|
119
|
-
rendererAppearance?: RendererAppearance;
|
|
120
|
-
allowColumnSorting?: boolean | undefined;
|
|
121
|
-
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
122
|
-
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
123
|
-
componentWillMount?(): void;
|
|
124
|
-
UNSAFE_componentWillMount?(): void;
|
|
125
|
-
componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
126
|
-
renderWidth?: number | undefined;
|
|
127
|
-
} & Omit<SharedTableProps & {
|
|
128
|
-
children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
129
|
-
tableNode?: PMNode<any> | undefined;
|
|
130
|
-
rendererAppearance?: RendererAppearance;
|
|
131
|
-
allowColumnSorting?: boolean | undefined;
|
|
132
|
-
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
133
|
-
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>, nextContext: any): void;
|
|
134
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
135
|
-
renderWidth?: number | undefined;
|
|
136
|
-
} & Omit<SharedTableProps & {
|
|
137
|
-
children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
138
|
-
tableNode?: PMNode<any> | undefined;
|
|
139
|
-
rendererAppearance?: RendererAppearance;
|
|
140
|
-
allowColumnSorting?: boolean | undefined;
|
|
141
|
-
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
142
|
-
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>, nextContext: any): void;
|
|
143
|
-
componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
144
|
-
renderWidth?: number | undefined;
|
|
145
|
-
} & Omit<SharedTableProps & {
|
|
146
|
-
children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
147
|
-
tableNode?: PMNode<any> | undefined;
|
|
148
|
-
rendererAppearance?: RendererAppearance;
|
|
149
|
-
allowColumnSorting?: boolean | undefined;
|
|
150
|
-
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
151
|
-
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
152
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
153
|
-
renderWidth?: number | undefined;
|
|
154
|
-
} & Omit<SharedTableProps & {
|
|
155
|
-
children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
156
|
-
tableNode?: PMNode<any> | undefined;
|
|
157
|
-
rendererAppearance?: RendererAppearance;
|
|
158
|
-
allowColumnSorting?: boolean | undefined;
|
|
159
|
-
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
160
|
-
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
161
|
-
};
|
|
162
|
-
new (props: import("@atlaskit/editor-common/utils").Diff<{
|
|
163
|
-
renderWidth?: number | undefined;
|
|
164
|
-
} & Omit<SharedTableProps & {
|
|
165
|
-
children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
166
|
-
tableNode?: PMNode<any> | undefined;
|
|
167
|
-
rendererAppearance?: RendererAppearance;
|
|
168
|
-
allowColumnSorting?: boolean | undefined;
|
|
169
|
-
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
170
|
-
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>, context?: any): {
|
|
171
|
-
render(): JSX.Element;
|
|
172
|
-
context: any;
|
|
173
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
174
|
-
renderWidth?: number | undefined;
|
|
175
|
-
} & Omit<SharedTableProps & {
|
|
176
|
-
children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
177
|
-
tableNode?: PMNode<any> | undefined;
|
|
178
|
-
rendererAppearance?: RendererAppearance;
|
|
179
|
-
allowColumnSorting?: boolean | undefined;
|
|
180
|
-
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
181
|
-
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
182
|
-
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
183
|
-
readonly props: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
184
|
-
renderWidth?: number | undefined;
|
|
185
|
-
} & Omit<SharedTableProps & {
|
|
186
|
-
children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
187
|
-
tableNode?: PMNode<any> | undefined;
|
|
188
|
-
rendererAppearance?: RendererAppearance;
|
|
189
|
-
allowColumnSorting?: boolean | undefined;
|
|
190
|
-
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
191
|
-
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>> & Readonly<{
|
|
192
|
-
children?: React.ReactNode;
|
|
193
|
-
}>;
|
|
194
|
-
state: Readonly<{}>;
|
|
195
|
-
refs: {
|
|
196
|
-
[key: string]: React.ReactInstance;
|
|
197
|
-
};
|
|
198
|
-
componentDidMount?(): void;
|
|
199
|
-
shouldComponentUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
200
|
-
renderWidth?: number | undefined;
|
|
201
|
-
} & Omit<SharedTableProps & {
|
|
202
|
-
children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
203
|
-
tableNode?: PMNode<any> | undefined;
|
|
204
|
-
rendererAppearance?: RendererAppearance;
|
|
205
|
-
allowColumnSorting?: boolean | undefined;
|
|
206
|
-
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
207
|
-
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
208
|
-
componentWillUnmount?(): void;
|
|
209
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
210
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
211
|
-
renderWidth?: number | undefined;
|
|
212
|
-
} & Omit<SharedTableProps & {
|
|
213
|
-
children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
214
|
-
tableNode?: PMNode<any> | undefined;
|
|
215
|
-
rendererAppearance?: RendererAppearance;
|
|
216
|
-
allowColumnSorting?: boolean | undefined;
|
|
217
|
-
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
218
|
-
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>, prevState: Readonly<{}>): any;
|
|
219
|
-
componentDidUpdate?(prevProps: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
220
|
-
renderWidth?: number | undefined;
|
|
221
|
-
} & Omit<SharedTableProps & {
|
|
222
|
-
children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
223
|
-
tableNode?: PMNode<any> | undefined;
|
|
224
|
-
rendererAppearance?: RendererAppearance;
|
|
225
|
-
allowColumnSorting?: boolean | undefined;
|
|
226
|
-
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
227
|
-
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
228
|
-
componentWillMount?(): void;
|
|
229
|
-
UNSAFE_componentWillMount?(): void;
|
|
230
|
-
componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
231
|
-
renderWidth?: number | undefined;
|
|
232
|
-
} & Omit<SharedTableProps & {
|
|
233
|
-
children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
234
|
-
tableNode?: PMNode<any> | undefined;
|
|
235
|
-
rendererAppearance?: RendererAppearance;
|
|
236
|
-
allowColumnSorting?: boolean | undefined;
|
|
237
|
-
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
238
|
-
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>, nextContext: any): void;
|
|
239
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
240
|
-
renderWidth?: number | undefined;
|
|
241
|
-
} & Omit<SharedTableProps & {
|
|
242
|
-
children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
243
|
-
tableNode?: PMNode<any> | undefined;
|
|
244
|
-
rendererAppearance?: RendererAppearance;
|
|
245
|
-
allowColumnSorting?: boolean | undefined;
|
|
246
|
-
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
247
|
-
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>, nextContext: any): void;
|
|
248
|
-
componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
249
|
-
renderWidth?: number | undefined;
|
|
250
|
-
} & Omit<SharedTableProps & {
|
|
251
|
-
children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
252
|
-
tableNode?: PMNode<any> | undefined;
|
|
253
|
-
rendererAppearance?: RendererAppearance;
|
|
254
|
-
allowColumnSorting?: boolean | undefined;
|
|
255
|
-
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
256
|
-
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
257
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<{
|
|
258
|
-
renderWidth?: number | undefined;
|
|
259
|
-
} & Omit<SharedTableProps & {
|
|
260
|
-
children: React.ReactElement<any, string | React.JSXElementConstructor<any>> | React.ReactElement<any, string | React.JSXElementConstructor<any>>[];
|
|
261
|
-
tableNode?: PMNode<any> | undefined;
|
|
262
|
-
rendererAppearance?: RendererAppearance;
|
|
263
|
-
allowColumnSorting?: boolean | undefined;
|
|
264
|
-
stickyHeaders?: StickyHeaderConfig | undefined;
|
|
265
|
-
} & WithSmartCardStorageProps, "renderWidth">, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
266
|
-
};
|
|
267
|
-
contextType?: React.Context<any> | undefined;
|
|
268
|
-
};
|
|
269
|
-
export default _default;
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { CellAttributes } from '@atlaskit/adf-schema';
|
|
3
|
-
import { SortOrder } from '@atlaskit/editor-common/types';
|
|
4
|
-
import { AnalyticsEventPayload } from '../../analytics/events';
|
|
5
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
6
|
-
declare type CellProps = CellAttributes & {
|
|
7
|
-
children?: React.ReactNode;
|
|
8
|
-
onClick?: () => void;
|
|
9
|
-
className?: string;
|
|
10
|
-
colGroupWidth?: string;
|
|
11
|
-
offsetTop?: number;
|
|
12
|
-
ariaSort?: string;
|
|
13
|
-
};
|
|
14
|
-
export declare type CellWithSortingProps = CellProps & {
|
|
15
|
-
isHeaderRow?: boolean;
|
|
16
|
-
allowColumnSorting?: boolean;
|
|
17
|
-
onSorting?: (columnIndex?: number, currentSortOrdered?: SortOrder) => void;
|
|
18
|
-
columnIndex?: number;
|
|
19
|
-
sortOrdered?: SortOrder;
|
|
20
|
-
fireAnalyticsEvent?: (event: AnalyticsEventPayload) => void;
|
|
21
|
-
} & WrappedComponentProps;
|
|
22
|
-
export declare const withSortableColumn: (WrapperComponent: React.ElementType) => React.FC<import("react-intl-next").WithIntlProps<CellWithSortingProps>> & {
|
|
23
|
-
WrappedComponent: React.ComponentType<CellWithSortingProps>;
|
|
24
|
-
};
|
|
25
|
-
export declare const TableHeader: React.FC<import("react-intl-next").WithIntlProps<CellWithSortingProps>> & {
|
|
26
|
-
WrappedComponent: React.ComponentType<CellWithSortingProps>;
|
|
27
|
-
};
|
|
28
|
-
export declare const TableCell: {
|
|
29
|
-
new (props: Readonly<CellProps>): {
|
|
30
|
-
render(): JSX.Element;
|
|
31
|
-
context: any;
|
|
32
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<CellProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
33
|
-
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
34
|
-
readonly props: Readonly<CellProps> & Readonly<{
|
|
35
|
-
children?: React.ReactNode;
|
|
36
|
-
}>;
|
|
37
|
-
state: Readonly<{}>;
|
|
38
|
-
refs: {
|
|
39
|
-
[key: string]: React.ReactInstance;
|
|
40
|
-
};
|
|
41
|
-
componentDidMount?(): void;
|
|
42
|
-
shouldComponentUpdate?(nextProps: Readonly<CellProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
43
|
-
componentWillUnmount?(): void;
|
|
44
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
45
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<CellProps>, prevState: Readonly<{}>): any;
|
|
46
|
-
componentDidUpdate?(prevProps: Readonly<CellProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
47
|
-
componentWillMount?(): void;
|
|
48
|
-
UNSAFE_componentWillMount?(): void;
|
|
49
|
-
componentWillReceiveProps?(nextProps: Readonly<CellProps>, nextContext: any): void;
|
|
50
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<CellProps>, nextContext: any): void;
|
|
51
|
-
componentWillUpdate?(nextProps: Readonly<CellProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
52
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<CellProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
53
|
-
};
|
|
54
|
-
new (props: CellProps, context?: any): {
|
|
55
|
-
render(): JSX.Element;
|
|
56
|
-
context: any;
|
|
57
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<CellProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
58
|
-
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
59
|
-
readonly props: Readonly<CellProps> & Readonly<{
|
|
60
|
-
children?: React.ReactNode;
|
|
61
|
-
}>;
|
|
62
|
-
state: Readonly<{}>;
|
|
63
|
-
refs: {
|
|
64
|
-
[key: string]: React.ReactInstance;
|
|
65
|
-
};
|
|
66
|
-
componentDidMount?(): void;
|
|
67
|
-
shouldComponentUpdate?(nextProps: Readonly<CellProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
68
|
-
componentWillUnmount?(): void;
|
|
69
|
-
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
70
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<CellProps>, prevState: Readonly<{}>): any;
|
|
71
|
-
componentDidUpdate?(prevProps: Readonly<CellProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
72
|
-
componentWillMount?(): void;
|
|
73
|
-
UNSAFE_componentWillMount?(): void;
|
|
74
|
-
componentWillReceiveProps?(nextProps: Readonly<CellProps>, nextContext: any): void;
|
|
75
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<CellProps>, nextContext: any): void;
|
|
76
|
-
componentWillUpdate?(nextProps: Readonly<CellProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
77
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<CellProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
78
|
-
};
|
|
79
|
-
contextType?: React.Context<any> | undefined;
|
|
80
|
-
};
|
|
81
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { SortOrder } from '@atlaskit/editor-common/types';
|
|
3
|
-
declare type Props = {
|
|
4
|
-
isNumberColumnEnabled?: number;
|
|
5
|
-
index?: number;
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
onSorting?: (columnIndex?: number, currentSortOrdered?: SortOrder) => void;
|
|
8
|
-
allowColumnSorting?: boolean;
|
|
9
|
-
tableOrderStatus?: {
|
|
10
|
-
columnIndex: number;
|
|
11
|
-
order: SortOrder;
|
|
12
|
-
};
|
|
13
|
-
innerRef?: React.Ref<HTMLTableRowElement>;
|
|
14
|
-
};
|
|
15
|
-
declare type State = {
|
|
16
|
-
colGroupWidths: string[];
|
|
17
|
-
};
|
|
18
|
-
export default class TableRow extends React.Component<Props, State> {
|
|
19
|
-
state: State;
|
|
20
|
-
addSortableColumn: (childrenArray: React.ReactNode[]) => React.ReactNode[];
|
|
21
|
-
addColGroupWidth: (childrenArray: React.ReactNode[]) => React.ReactNode[];
|
|
22
|
-
render(): JSX.Element;
|
|
23
|
-
}
|
|
24
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Component, ReactNode } from 'react';
|
|
2
|
-
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
import { ContentRef, TaskDecisionProvider } from '@atlaskit/task-decision';
|
|
4
|
-
export interface Props {
|
|
5
|
-
taskId: string;
|
|
6
|
-
objectAri: string;
|
|
7
|
-
isDone: boolean;
|
|
8
|
-
isRenderer?: boolean;
|
|
9
|
-
contentRef?: ContentRef;
|
|
10
|
-
onChange?: (taskId: string, isChecked: boolean) => void;
|
|
11
|
-
showPlaceholder?: boolean;
|
|
12
|
-
children?: ReactNode;
|
|
13
|
-
taskDecisionProvider?: Promise<TaskDecisionProvider>;
|
|
14
|
-
contextIdentifierProvider?: Promise<ContextIdentifierProvider>;
|
|
15
|
-
disabled?: boolean;
|
|
16
|
-
dataAttributes?: {
|
|
17
|
-
[key: string]: string | number;
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export interface State {
|
|
21
|
-
resolvedContextProvider?: ContextIdentifierProvider;
|
|
22
|
-
}
|
|
23
|
-
export default class TaskItemWithProviders extends Component<Props, State> {
|
|
24
|
-
state: State;
|
|
25
|
-
UNSAFE_componentWillMount(): void;
|
|
26
|
-
UNSAFE_componentWillReceiveProps(nextProps: Props): void;
|
|
27
|
-
private updateContextIdentifierProvider;
|
|
28
|
-
render(): JSX.Element;
|
|
29
|
-
}
|