@atlaskit/renderer 108.15.10 → 108.15.12
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 +12 -0
- package/dist/cjs/ui/Renderer/breakout-ssr.js +4 -0
- package/dist/cjs/ui/Renderer/index.js +1 -1
- package/dist/es2019/ui/Renderer/breakout-ssr.js +4 -0
- package/dist/es2019/ui/Renderer/index.js +1 -1
- package/dist/esm/ui/Renderer/breakout-ssr.js +4 -0
- package/dist/esm/ui/Renderer/index.js +1 -1
- package/dist/types-ts4.5/actions/index.d.ts +61 -0
- package/dist/types-ts4.5/actions/matches-utils.d.ts +7 -0
- package/dist/types-ts4.5/actions.d.ts +3 -0
- package/dist/types-ts4.5/analytics/analyticsContext.d.ts +6 -0
- package/dist/types-ts4.5/analytics/enums.d.ts +58 -0
- package/dist/types-ts4.5/analytics/events.d.ts +118 -0
- package/dist/types-ts4.5/analytics/unsupported-content.d.ts +10 -0
- package/dist/types-ts4.5/consts.d.ts +12 -0
- package/dist/types-ts4.5/i18n/cs.d.ts +25 -0
- package/dist/types-ts4.5/i18n/da.d.ts +20 -0
- package/dist/types-ts4.5/i18n/de.d.ts +20 -0
- package/dist/types-ts4.5/i18n/en.d.ts +25 -0
- package/dist/types-ts4.5/i18n/en_GB.d.ts +25 -0
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +25 -0
- package/dist/types-ts4.5/i18n/es.d.ts +20 -0
- package/dist/types-ts4.5/i18n/et.d.ts +8 -0
- package/dist/types-ts4.5/i18n/fi.d.ts +25 -0
- package/dist/types-ts4.5/i18n/fr.d.ts +20 -0
- package/dist/types-ts4.5/i18n/hu.d.ts +20 -0
- package/dist/types-ts4.5/i18n/index.d.ts +31 -0
- package/dist/types-ts4.5/i18n/it.d.ts +20 -0
- package/dist/types-ts4.5/i18n/ja.d.ts +25 -0
- package/dist/types-ts4.5/i18n/ko.d.ts +20 -0
- package/dist/types-ts4.5/i18n/nb.d.ts +20 -0
- package/dist/types-ts4.5/i18n/nl.d.ts +20 -0
- package/dist/types-ts4.5/i18n/pl.d.ts +20 -0
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +25 -0
- package/dist/types-ts4.5/i18n/pt_PT.d.ts +8 -0
- package/dist/types-ts4.5/i18n/ru.d.ts +25 -0
- package/dist/types-ts4.5/i18n/sk.d.ts +8 -0
- package/dist/types-ts4.5/i18n/sv.d.ts +20 -0
- package/dist/types-ts4.5/i18n/th.d.ts +20 -0
- package/dist/types-ts4.5/i18n/tr.d.ts +20 -0
- package/dist/types-ts4.5/i18n/uk.d.ts +25 -0
- package/dist/types-ts4.5/i18n/vi.d.ts +20 -0
- package/dist/types-ts4.5/i18n/zh.d.ts +20 -0
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +20 -0
- package/dist/types-ts4.5/index.d.ts +11 -0
- package/dist/types-ts4.5/messages.d.ts +88 -0
- package/dist/types-ts4.5/react/hooks/use-bidi-warnings.d.ts +10 -0
- package/dist/types-ts4.5/react/hooks/use-in-viewport.d.ts +5 -0
- package/dist/types-ts4.5/react/index.d.ts +124 -0
- package/dist/types-ts4.5/react/marks/alignment.d.ts +4 -0
- package/dist/types-ts4.5/react/marks/annotation.d.ts +6 -0
- package/dist/types-ts4.5/react/marks/breakout.d.ts +6 -0
- package/dist/types-ts4.5/react/marks/code.d.ts +16 -0
- package/dist/types-ts4.5/react/marks/confluence-inline-comment.d.ts +8 -0
- package/dist/types-ts4.5/react/marks/data-consumer.d.ts +4 -0
- package/dist/types-ts4.5/react/marks/em.d.ts +3 -0
- package/dist/types-ts4.5/react/marks/fragment.d.ts +4 -0
- package/dist/types-ts4.5/react/marks/indentation.d.ts +4 -0
- package/dist/types-ts4.5/react/marks/index.d.ts +21 -0
- package/dist/types-ts4.5/react/marks/link.d.ts +9 -0
- package/dist/types-ts4.5/react/marks/strike.d.ts +3 -0
- package/dist/types-ts4.5/react/marks/strong.d.ts +3 -0
- package/dist/types-ts4.5/react/marks/subsup.d.ts +4 -0
- package/dist/types-ts4.5/react/marks/textColor.d.ts +4 -0
- package/dist/types-ts4.5/react/marks/underline.d.ts +3 -0
- package/dist/types-ts4.5/react/marks/unsupportedMark.d.ts +3 -0
- package/dist/types-ts4.5/react/marks/unsupportedNodeAttribute.d.ts +3 -0
- package/dist/types-ts4.5/react/nodes/blockCard.d.ts +15 -0
- package/dist/types-ts4.5/react/nodes/blockquote.d.ts +2 -0
- package/dist/types-ts4.5/react/nodes/bodiedExtension.d.ts +24 -0
- package/dist/types-ts4.5/react/nodes/bulletList.d.ts +5 -0
- package/dist/types-ts4.5/react/nodes/caption.d.ts +4 -0
- package/dist/types-ts4.5/react/nodes/codeBlock/codeBlock.d.ts +15 -0
- package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockButtonContainer.d.ts +12 -0
- package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockContainer.d.ts +10 -0
- package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockCopyButton.d.ts +9 -0
- package/dist/types-ts4.5/react/nodes/codeBlock/components/codeBlockWrapButton.d.ts +11 -0
- package/dist/types-ts4.5/react/nodes/codeBlock/components/lightWeightCodeBlock.d.ts +9 -0
- package/dist/types-ts4.5/react/nodes/codeBlock/windowedCodeBlock.d.ts +4 -0
- package/dist/types-ts4.5/react/nodes/date.d.ts +11 -0
- package/dist/types-ts4.5/react/nodes/decisionItem.d.ts +3 -0
- package/dist/types-ts4.5/react/nodes/decisionList.d.ts +7 -0
- package/dist/types-ts4.5/react/nodes/doc.d.ts +3 -0
- package/dist/types-ts4.5/react/nodes/embedCard.d.ts +19 -0
- package/dist/types-ts4.5/react/nodes/emoji.d.ts +12 -0
- package/dist/types-ts4.5/react/nodes/extension.d.ts +113 -0
- package/dist/types-ts4.5/react/nodes/fallback.d.ts +19 -0
- package/dist/types-ts4.5/react/nodes/hardBreak.d.ts +6 -0
- package/dist/types-ts4.5/react/nodes/heading-anchor.d.ts +14 -0
- package/dist/types-ts4.5/react/nodes/heading.d.ts +14 -0
- package/dist/types-ts4.5/react/nodes/index.d.ts +98 -0
- package/dist/types-ts4.5/react/nodes/inline.d.ts +1 -0
- package/dist/types-ts4.5/react/nodes/inlineCard.d.ts +65 -0
- package/dist/types-ts4.5/react/nodes/inlineExtension.d.ts +18 -0
- package/dist/types-ts4.5/react/nodes/layoutColumn.d.ts +6 -0
- package/dist/types-ts4.5/react/nodes/layoutSection.d.ts +2 -0
- package/dist/types-ts4.5/react/nodes/listItem.d.ts +2 -0
- package/dist/types-ts4.5/react/nodes/media/index.d.ts +27 -0
- package/dist/types-ts4.5/react/nodes/media/styles.d.ts +2 -0
- package/dist/types-ts4.5/react/nodes/mediaGroup.d.ts +30 -0
- package/dist/types-ts4.5/react/nodes/mediaInline.d.ts +38 -0
- package/dist/types-ts4.5/react/nodes/mediaSingle/index.d.ts +24 -0
- package/dist/types-ts4.5/react/nodes/mediaSingle/styles.d.ts +2 -0
- package/dist/types-ts4.5/react/nodes/mention.d.ts +13 -0
- package/dist/types-ts4.5/react/nodes/orderedList.d.ts +9 -0
- package/dist/types-ts4.5/react/nodes/panel.d.ts +17 -0
- package/dist/types-ts4.5/react/nodes/paragraph.d.ts +3 -0
- package/dist/types-ts4.5/react/nodes/placeholder.d.ts +6 -0
- package/dist/types-ts4.5/react/nodes/rule.d.ts +2 -0
- package/dist/types-ts4.5/react/nodes/status.d.ts +10 -0
- package/dist/types-ts4.5/react/nodes/table/colgroup.d.ts +9 -0
- package/dist/types-ts4.5/react/nodes/table/sticky.d.ts +43 -0
- package/dist/types-ts4.5/react/nodes/table/table.d.ts +7 -0
- package/dist/types-ts4.5/react/nodes/table/types.d.ts +12 -0
- package/dist/types-ts4.5/react/nodes/table.d.ts +282 -0
- package/dist/types-ts4.5/react/nodes/tableCell.d.ts +81 -0
- package/dist/types-ts4.5/react/nodes/tableRow.d.ts +24 -0
- package/dist/types-ts4.5/react/nodes/task-item-with-providers.d.ts +29 -0
- package/dist/types-ts4.5/react/nodes/taskItem.d.ts +19 -0
- package/dist/types-ts4.5/react/nodes/taskList.d.ts +8 -0
- package/dist/types-ts4.5/react/nodes/text-wrapper.d.ts +8 -0
- package/dist/types-ts4.5/react/nodes/unknownBlock.d.ts +2 -0
- package/dist/types-ts4.5/react/renderer-node.d.ts +5 -0
- package/dist/types-ts4.5/react/types.d.ts +58 -0
- package/dist/types-ts4.5/react/utils/appearance.d.ts +4 -0
- package/dist/types-ts4.5/react/utils/clipboard.d.ts +1 -0
- package/dist/types-ts4.5/react/utils/element-selection.d.ts +9 -0
- package/dist/types-ts4.5/react/utils/getCardClickHandler.d.ts +2 -0
- package/dist/types-ts4.5/react/utils/inject-props.d.ts +6 -0
- package/dist/types-ts4.5/react/utils/links.d.ts +3 -0
- package/dist/types-ts4.5/react/utils/lists.d.ts +2 -0
- package/dist/types-ts4.5/react/utils/performance/RenderTracking.d.ts +15 -0
- package/dist/types-ts4.5/react/utils/use-select-all-trap.d.ts +2 -0
- package/dist/types-ts4.5/render-document.d.ts +23 -0
- package/dist/types-ts4.5/renderer-context.d.ts +7 -0
- package/dist/types-ts4.5/serializer.d.ts +4 -0
- package/dist/types-ts4.5/steps/index.d.ts +14 -0
- package/dist/types-ts4.5/text/index.d.ts +8 -0
- package/dist/types-ts4.5/text/nodes/blockquote.d.ts +3 -0
- package/dist/types-ts4.5/text/nodes/bulletList.d.ts +3 -0
- package/dist/types-ts4.5/text/nodes/date.d.ts +3 -0
- package/dist/types-ts4.5/text/nodes/decisionItem.d.ts +3 -0
- package/dist/types-ts4.5/text/nodes/hardBreak.d.ts +3 -0
- package/dist/types-ts4.5/text/nodes/heading.d.ts +3 -0
- package/dist/types-ts4.5/text/nodes/index.d.ts +6 -0
- package/dist/types-ts4.5/text/nodes/inlineCard.d.ts +3 -0
- package/dist/types-ts4.5/text/nodes/listItem.d.ts +3 -0
- package/dist/types-ts4.5/text/nodes/mediaGroup.d.ts +3 -0
- package/dist/types-ts4.5/text/nodes/mention.d.ts +3 -0
- package/dist/types-ts4.5/text/nodes/orderedList.d.ts +3 -0
- package/dist/types-ts4.5/text/nodes/panel.d.ts +3 -0
- package/dist/types-ts4.5/text/nodes/paragraph.d.ts +3 -0
- package/dist/types-ts4.5/text/nodes/rule.d.ts +3 -0
- package/dist/types-ts4.5/text/nodes/status.d.ts +3 -0
- package/dist/types-ts4.5/text/nodes/table.d.ts +3 -0
- package/dist/types-ts4.5/text/nodes/taskItem.d.ts +3 -0
- package/dist/types-ts4.5/text/nodes/unknown.d.ts +3 -0
- package/dist/types-ts4.5/text-serializer.d.ts +1 -0
- package/dist/types-ts4.5/types/i18n.d.ts +5 -0
- package/dist/types-ts4.5/types/mediaOptions.d.ts +13 -0
- package/dist/types-ts4.5/types/smartLinksOptions.d.ts +7 -0
- package/dist/types-ts4.5/ui/Expand.d.ts +23 -0
- package/dist/types-ts4.5/ui/ExtensionRenderer.d.ts +42 -0
- package/dist/types-ts4.5/ui/MediaCard.d.ts +79 -0
- package/dist/types-ts4.5/ui/Renderer/ErrorBoundary.d.ts +24 -0
- package/dist/types-ts4.5/ui/Renderer/breakout-ssr.d.ts +11 -0
- package/dist/types-ts4.5/ui/Renderer/click-to-edit.d.ts +6 -0
- package/dist/types-ts4.5/ui/Renderer/index.d.ts +38 -0
- package/dist/types-ts4.5/ui/Renderer/style.d.ts +16 -0
- package/dist/types-ts4.5/ui/Renderer/truncated-wrapper.d.ts +12 -0
- package/dist/types-ts4.5/ui/Renderer/types.d.ts +16 -0
- package/dist/types-ts4.5/ui/RendererActionsContext/WithRendererActions.d.ts +6 -0
- package/dist/types-ts4.5/ui/RendererActionsContext/index.d.ts +9 -0
- package/dist/types-ts4.5/ui/SmartCardStorage.d.ts +60 -0
- package/dist/types-ts4.5/ui/SortingIcon.d.ts +23 -0
- package/dist/types-ts4.5/ui/TaskItemsFormatContext/TaskItemsFormatContext.d.ts +15 -0
- package/dist/types-ts4.5/ui/TaskItemsFormatContext/index.d.ts +2 -0
- package/dist/types-ts4.5/ui/active-header-id-provider.d.ts +18 -0
- package/dist/types-ts4.5/ui/annotations/context.d.ts +27 -0
- package/dist/types-ts4.5/ui/annotations/draft/component.d.ts +20 -0
- package/dist/types-ts4.5/ui/annotations/draft/dom.d.ts +7 -0
- package/dist/types-ts4.5/ui/annotations/draft/index.d.ts +2 -0
- package/dist/types-ts4.5/ui/annotations/draft/position.d.ts +2 -0
- package/dist/types-ts4.5/ui/annotations/draft/text.d.ts +13 -0
- package/dist/types-ts4.5/ui/annotations/element/index.d.ts +10 -0
- package/dist/types-ts4.5/ui/annotations/element/mark.d.ts +14 -0
- package/dist/types-ts4.5/ui/annotations/hooks/index.d.ts +3 -0
- package/dist/types-ts4.5/ui/annotations/hooks/use-events.d.ts +18 -0
- package/dist/types-ts4.5/ui/annotations/hooks/use-inline-comment-subscriber.d.ts +1 -0
- package/dist/types-ts4.5/ui/annotations/hooks/use-inline-comments-filter.d.ts +9 -0
- package/dist/types-ts4.5/ui/annotations/hooks/use-load-annotations.d.ts +6 -0
- package/dist/types-ts4.5/ui/annotations/hooks/user-selection.d.ts +9 -0
- package/dist/types-ts4.5/ui/annotations/hooks/utils.d.ts +2 -0
- package/dist/types-ts4.5/ui/annotations/index.d.ts +5 -0
- package/dist/types-ts4.5/ui/annotations/selection/index.d.ts +1 -0
- package/dist/types-ts4.5/ui/annotations/selection/mounter.d.ts +20 -0
- package/dist/types-ts4.5/ui/annotations/selection/range-validator.d.ts +13 -0
- package/dist/types-ts4.5/ui/annotations/selection/wrapper.d.ts +8 -0
- package/dist/types-ts4.5/ui/annotations/types.d.ts +22 -0
- package/dist/types-ts4.5/ui/annotations/view/index.d.ts +7 -0
- package/dist/types-ts4.5/ui/index.d.ts +1 -0
- package/dist/types-ts4.5/ui/renderer-props.d.ts +115 -0
- package/dist/types-ts4.5/use-feature-flags.d.ts +2 -0
- package/dist/types-ts4.5/utils.d.ts +24 -0
- package/package.json +3 -3
- package/tmp/api-report-tmp.d.ts +552 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
3
|
+
import { WithSmartCardStorageProps } from '../../ui/SmartCardStorage';
|
|
4
|
+
import { SmartLinksOptions } from '../../types/smartLinksOptions';
|
|
5
|
+
export interface InlineCardProps {
|
|
6
|
+
url?: string;
|
|
7
|
+
data?: object;
|
|
8
|
+
eventHandlers?: EventHandlers;
|
|
9
|
+
portal?: HTMLElement;
|
|
10
|
+
smartLinks?: SmartLinksOptions;
|
|
11
|
+
}
|
|
12
|
+
declare const _default: {
|
|
13
|
+
new (props: import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps> | Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>): {
|
|
14
|
+
render(): JSX.Element;
|
|
15
|
+
context: any;
|
|
16
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
17
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
18
|
+
readonly props: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>> & Readonly<{
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
}>;
|
|
21
|
+
state: Readonly<{}>;
|
|
22
|
+
refs: {
|
|
23
|
+
[key: string]: React.ReactInstance;
|
|
24
|
+
};
|
|
25
|
+
componentDidMount?(): void;
|
|
26
|
+
shouldComponentUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
27
|
+
componentWillUnmount?(): void;
|
|
28
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
29
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, prevState: Readonly<{}>): any;
|
|
30
|
+
componentDidUpdate?(prevProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
31
|
+
componentWillMount?(): void;
|
|
32
|
+
UNSAFE_componentWillMount?(): void;
|
|
33
|
+
componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextContext: any): void;
|
|
34
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextContext: any): void;
|
|
35
|
+
componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
36
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
37
|
+
};
|
|
38
|
+
new (props: import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>, context: any): {
|
|
39
|
+
render(): JSX.Element;
|
|
40
|
+
context: any;
|
|
41
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
42
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
|
43
|
+
readonly props: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>> & Readonly<{
|
|
44
|
+
children?: React.ReactNode;
|
|
45
|
+
}>;
|
|
46
|
+
state: Readonly<{}>;
|
|
47
|
+
refs: {
|
|
48
|
+
[key: string]: React.ReactInstance;
|
|
49
|
+
};
|
|
50
|
+
componentDidMount?(): void;
|
|
51
|
+
shouldComponentUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
52
|
+
componentWillUnmount?(): void;
|
|
53
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
54
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, prevState: Readonly<{}>): any;
|
|
55
|
+
componentDidUpdate?(prevProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
56
|
+
componentWillMount?(): void;
|
|
57
|
+
UNSAFE_componentWillMount?(): void;
|
|
58
|
+
componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextContext: any): void;
|
|
59
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextContext: any): void;
|
|
60
|
+
componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
61
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<import("@atlaskit/editor-common/utils").Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>>, nextState: Readonly<{}>, nextContext: any): void;
|
|
62
|
+
};
|
|
63
|
+
contextType?: React.Context<any> | undefined;
|
|
64
|
+
};
|
|
65
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { RendererContext } from '../types';
|
|
3
|
+
import { Mark as PMMark } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
+
import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
5
|
+
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
6
|
+
export interface Props {
|
|
7
|
+
extensionHandlers?: ExtensionHandlers;
|
|
8
|
+
providers: ProviderFactory;
|
|
9
|
+
rendererContext: RendererContext;
|
|
10
|
+
extensionType: string;
|
|
11
|
+
extensionKey: string;
|
|
12
|
+
text?: string;
|
|
13
|
+
parameters?: any;
|
|
14
|
+
localId?: string;
|
|
15
|
+
marks?: PMMark[];
|
|
16
|
+
}
|
|
17
|
+
declare const InlineExtension: React.StatelessComponent<Props>;
|
|
18
|
+
export default InlineExtension;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PureComponent } from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
4
|
+
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
5
|
+
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
6
|
+
import type { MediaCardProps } from '../../../ui/MediaCard';
|
|
7
|
+
import type { LinkDefinition, BorderMarkDefinition } from '@atlaskit/adf-schema';
|
|
8
|
+
import type { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
9
|
+
import type { AnalyticsEventPayload } from '../../../analytics/events';
|
|
10
|
+
export type MediaProps = MediaCardProps & {
|
|
11
|
+
providers?: ProviderFactory;
|
|
12
|
+
allowAltTextOnImages?: boolean;
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
isInsideOfBlockNode?: boolean;
|
|
15
|
+
marks: Array<LinkDefinition | BorderMarkDefinition>;
|
|
16
|
+
isBorderMark: () => boolean;
|
|
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
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ReactElement } from 'react';
|
|
3
|
+
import { PureComponent } from 'react';
|
|
4
|
+
import type { CardEvent } from '@atlaskit/media-card';
|
|
5
|
+
import type { EventHandlers, CardEventClickHandler } from '@atlaskit/editor-common/ui';
|
|
6
|
+
import type { Identifier } from '@atlaskit/media-client';
|
|
7
|
+
import type { MediaProps } from './media';
|
|
8
|
+
import type { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
9
|
+
export interface MediaGroupProps {
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
eventHandlers?: EventHandlers;
|
|
12
|
+
featureFlags?: MediaFeatureFlags;
|
|
13
|
+
enableDownloadButton?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface MediaGroupState {
|
|
16
|
+
animate: boolean;
|
|
17
|
+
offset: number;
|
|
18
|
+
}
|
|
19
|
+
export default class MediaGroup extends PureComponent<MediaGroupProps, MediaGroupState> {
|
|
20
|
+
state: MediaGroupState;
|
|
21
|
+
private handleSize;
|
|
22
|
+
private handleScroll;
|
|
23
|
+
render(): JSX.Element;
|
|
24
|
+
renderSingleFile(child: ReactElement<MediaProps>): React.ReactElement<MediaProps, string | React.JSXElementConstructor<any>>;
|
|
25
|
+
renderSingleLink(child: ReactElement<MediaProps>): React.ReactElement<MediaProps, string | React.JSXElementConstructor<any>>;
|
|
26
|
+
onMediaClick: (cardClickHandler: CardEventClickHandler, child: ReactElement<MediaProps>, surroundingItems: Identifier[]) => (event: CardEvent, analyticsEvent?: any) => void;
|
|
27
|
+
cloneFileCard(child: ReactElement<MediaProps>, surroundingItems: Identifier[]): React.ReactElement<MediaProps, string | React.JSXElementConstructor<any>>;
|
|
28
|
+
renderStrip(): JSX.Element;
|
|
29
|
+
private mapMediaPropsToIdentifier;
|
|
30
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ContextIdentifierProvider, ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
+
import { FileIdentifier } from '@atlaskit/media-client';
|
|
4
|
+
import { MediaProvider, ClipboardAttrs } from '../../ui/MediaCard';
|
|
5
|
+
import { IntlShape, WrappedComponentProps } from 'react-intl-next';
|
|
6
|
+
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
7
|
+
import { RendererAppearance } from '../../ui/Renderer/types';
|
|
8
|
+
import { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
9
|
+
import { RendererContext } from '../types';
|
|
10
|
+
type MediaInlineProviders = {
|
|
11
|
+
mediaProvider?: Promise<MediaProvider>;
|
|
12
|
+
contextIdentifierProvider?: Promise<ContextIdentifierProvider>;
|
|
13
|
+
};
|
|
14
|
+
export type RenderMediaInlineProps = {
|
|
15
|
+
identifier: FileIdentifier;
|
|
16
|
+
clipboardAttrs: ClipboardAttrs;
|
|
17
|
+
mediaInlineProviders: MediaInlineProviders;
|
|
18
|
+
intl?: IntlShape;
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
collection?: string;
|
|
21
|
+
eventHandlers?: EventHandlers;
|
|
22
|
+
rendererAppearance?: RendererAppearance;
|
|
23
|
+
featureFlags?: MediaFeatureFlags;
|
|
24
|
+
rendererContext?: RendererContext;
|
|
25
|
+
};
|
|
26
|
+
export type MediaInlineProps = {
|
|
27
|
+
id: string;
|
|
28
|
+
providers: ProviderFactory;
|
|
29
|
+
collection?: string;
|
|
30
|
+
eventHandlers?: EventHandlers;
|
|
31
|
+
rendererAppearance?: RendererAppearance;
|
|
32
|
+
featureFlags?: MediaFeatureFlags;
|
|
33
|
+
};
|
|
34
|
+
export declare const RenderMediaInline: React.FC<RenderMediaInlineProps>;
|
|
35
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<MediaInlineProps & WrappedComponentProps<"intl">>> & {
|
|
36
|
+
WrappedComponent: React.ComponentType<MediaInlineProps & WrappedComponentProps<"intl">>;
|
|
37
|
+
};
|
|
38
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
import type { RichMediaLayout as MediaSingleLayout } from '@atlaskit/adf-schema';
|
|
4
|
+
import type { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
5
|
+
import type { EventHandlers, MediaSingleWidthType } from '@atlaskit/editor-common/ui';
|
|
6
|
+
import type { AnalyticsEventPayload } from '../../../analytics/events';
|
|
7
|
+
import type { RendererAppearance } from '../../../ui/Renderer/types';
|
|
8
|
+
export interface Props {
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
layout: MediaSingleLayout;
|
|
11
|
+
eventHandlers?: EventHandlers;
|
|
12
|
+
width?: number;
|
|
13
|
+
widthType?: MediaSingleWidthType;
|
|
14
|
+
isInsideOfBlockNode?: boolean;
|
|
15
|
+
rendererAppearance: RendererAppearance;
|
|
16
|
+
fireAnalyticsEvent?: (event: AnalyticsEventPayload) => void;
|
|
17
|
+
featureFlags?: MediaFeatureFlags;
|
|
18
|
+
allowCaptions?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export declare const getMediaContainerWidth: (currentContainerWidth: number, layout: MediaSingleLayout) => number;
|
|
21
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
22
|
+
WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
23
|
+
};
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
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;
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { SharedTableProps } from './types';
|
|
3
|
+
export interface ScaleOptions {
|
|
4
|
+
renderWidth: number;
|
|
5
|
+
tableWidth: number;
|
|
6
|
+
maxScale: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const calcScalePercent: ({ renderWidth, tableWidth, maxScale, }: ScaleOptions) => number;
|
|
9
|
+
export declare const Colgroup: (props: SharedTableProps) => JSX.Element | null;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
4
|
+
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
5
|
+
import type { OverflowShadowProps } from '@atlaskit/editor-common/ui';
|
|
6
|
+
import type { TableLayout } from '@atlaskit/adf-schema';
|
|
7
|
+
import type { RendererAppearance } from '../../../ui/Renderer/types';
|
|
8
|
+
export type StickyMode = 'none' | 'stick' | 'pin-bottom';
|
|
9
|
+
export declare const tableStickyPadding = 8;
|
|
10
|
+
interface FixedProps {
|
|
11
|
+
top?: number;
|
|
12
|
+
wrapperWidth: number;
|
|
13
|
+
mode: StickyMode;
|
|
14
|
+
rendererAppearance: RendererAppearance;
|
|
15
|
+
}
|
|
16
|
+
export declare const FixedTableDiv: React.FC<FixedProps>;
|
|
17
|
+
export type StickyTableProps = {
|
|
18
|
+
left?: number;
|
|
19
|
+
top?: number;
|
|
20
|
+
mode: StickyMode;
|
|
21
|
+
innerRef: React.RefObject<HTMLDivElement>;
|
|
22
|
+
rowHeight: number;
|
|
23
|
+
wrapperWidth: number;
|
|
24
|
+
tableWidth: 'inherit' | number;
|
|
25
|
+
isNumberColumnEnabled: boolean;
|
|
26
|
+
children: React.ReactNode[];
|
|
27
|
+
layout: TableLayout;
|
|
28
|
+
columnWidths?: number[];
|
|
29
|
+
renderWidth: number;
|
|
30
|
+
tableNode?: PMNode;
|
|
31
|
+
rendererAppearance: RendererAppearance;
|
|
32
|
+
} & OverflowShadowProps;
|
|
33
|
+
export declare const StickyTable: ({ top, left, mode, shadowClassNames, innerRef, wrapperWidth, tableWidth, isNumberColumnEnabled, layout, children, columnWidths, renderWidth, rowHeight, tableNode, rendererAppearance, }: StickyTableProps) => jsx.JSX.Element;
|
|
34
|
+
export declare class OverflowParent {
|
|
35
|
+
private ref;
|
|
36
|
+
private constructor();
|
|
37
|
+
static fromElement(el: HTMLElement | null): OverflowParent;
|
|
38
|
+
get isElement(): boolean;
|
|
39
|
+
get top(): number;
|
|
40
|
+
addEventListener(type: string, cb: EventListenerOrEventListenerObject, ...args: any[]): void;
|
|
41
|
+
removeEventListener(type: string, cb: EventListenerOrEventListenerObject, ...args: any[]): void;
|
|
42
|
+
}
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SharedTableProps } from './types';
|
|
3
|
+
export 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, tableNode, rendererAppearance, isInsideOfBlockNode, }: TableProps) => JSX.Element>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { TableLayout } from '@atlaskit/adf-schema';
|
|
3
|
+
import type { RendererAppearance } from '../../../ui/Renderer/types';
|
|
4
|
+
export type SharedTableProps = {
|
|
5
|
+
columnWidths?: Array<number>;
|
|
6
|
+
layout: TableLayout;
|
|
7
|
+
isNumberColumnEnabled: boolean;
|
|
8
|
+
renderWidth: number;
|
|
9
|
+
tableNode?: PMNode;
|
|
10
|
+
rendererAppearance: RendererAppearance;
|
|
11
|
+
isInsideOfBlockNode?: boolean;
|
|
12
|
+
};
|