@atlaskit/renderer 84.1.1 → 88.0.0
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 +95 -0
- package/dist/cjs/actions/index.js +3 -3
- package/dist/cjs/analytics/enums.js +1 -0
- package/dist/cjs/analytics/unsupported-content.js +3 -3
- package/dist/cjs/messages.js +47 -1
- package/dist/cjs/react/hooks/use-observed-width.js +94 -0
- package/dist/cjs/react/index.js +15 -9
- package/dist/cjs/react/marks/annotation.js +2 -2
- package/dist/cjs/react/marks/breakout.js +5 -3
- package/dist/cjs/react/nodes/blockCard.js +2 -2
- package/dist/cjs/react/nodes/caption.js +2 -2
- package/dist/cjs/react/nodes/copy-text-provider.js +2 -1
- package/dist/cjs/react/nodes/date.js +6 -4
- package/dist/cjs/react/nodes/embedCard.js +5 -5
- package/dist/cjs/react/nodes/emoji.js +2 -2
- package/dist/cjs/react/nodes/extension.js +6 -4
- package/dist/cjs/react/nodes/heading-anchor.js +11 -3
- package/dist/cjs/react/nodes/index.js +80 -55
- package/dist/cjs/react/nodes/inlineCard.js +14 -3
- package/dist/cjs/react/nodes/layoutColumn.js +2 -2
- package/dist/cjs/react/nodes/media.js +5 -3
- package/dist/cjs/react/nodes/mediaGroup.js +2 -2
- package/dist/cjs/react/nodes/mediaInline.js +2 -2
- package/dist/cjs/react/nodes/mediaSingle/index.js +146 -152
- package/dist/cjs/react/nodes/mediaSingle/styles.js +2 -2
- package/dist/cjs/react/nodes/mention.js +2 -4
- package/dist/cjs/react/nodes/panel.js +18 -20
- package/dist/cjs/react/nodes/status.js +2 -1
- package/dist/cjs/react/nodes/table/colgroup.js +2 -2
- package/dist/cjs/react/nodes/table/sticky.js +4 -4
- package/dist/cjs/react/nodes/table.js +19 -13
- package/dist/cjs/react/nodes/tableCell.js +34 -21
- package/dist/cjs/react/nodes/tableRow.js +6 -4
- package/dist/cjs/react/nodes/task-item-with-providers.js +6 -2
- package/dist/cjs/react/nodes/taskItem.js +4 -3
- package/dist/cjs/render-document.js +19 -3
- package/dist/cjs/text/nodes/date.js +3 -3
- package/dist/cjs/types/smartLinksOptions.js +5 -0
- package/dist/cjs/ui/Expand.js +9 -9
- package/dist/cjs/ui/ExtensionRenderer.js +8 -4
- package/dist/cjs/ui/MediaCard.js +4 -4
- package/dist/cjs/ui/Renderer/breakout-ssr.js +50 -7
- package/dist/cjs/ui/Renderer/index.js +23 -18
- package/dist/cjs/ui/SortingIcon.js +30 -17
- package/dist/cjs/ui/annotations/draft/component.js +2 -2
- package/dist/cjs/ui/annotations/element/index.js +2 -2
- package/dist/cjs/ui/annotations/element/mark.js +4 -4
- package/dist/cjs/ui/annotations/hooks/use-events.js +11 -11
- package/dist/cjs/ui/annotations/hooks/use-load-annotations.js +4 -4
- package/dist/cjs/utils.js +4 -3
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/actions/index.js +1 -1
- package/dist/es2019/analytics/enums.js +1 -0
- package/dist/es2019/analytics/unsupported-content.js +1 -1
- package/dist/es2019/messages.js +44 -0
- package/dist/es2019/react/hooks/use-observed-width.js +59 -0
- package/dist/es2019/react/index.js +4 -1
- package/dist/es2019/react/marks/breakout.js +2 -1
- package/dist/es2019/react/nodes/blockCard.js +1 -1
- package/dist/es2019/react/nodes/caption.js +1 -1
- package/dist/es2019/react/nodes/copy-text-provider.js +2 -1
- package/dist/es2019/react/nodes/date.js +2 -1
- package/dist/es2019/react/nodes/embedCard.js +1 -1
- package/dist/es2019/react/nodes/emoji.js +1 -1
- package/dist/es2019/react/nodes/extension.js +2 -1
- package/dist/es2019/react/nodes/heading-anchor.js +11 -2
- package/dist/es2019/react/nodes/index.js +32 -7
- package/dist/es2019/react/nodes/inlineCard.js +12 -2
- package/dist/es2019/react/nodes/layoutColumn.js +1 -1
- package/dist/es2019/react/nodes/media.js +2 -1
- package/dist/es2019/react/nodes/mediaInline.js +1 -1
- package/dist/es2019/react/nodes/mediaSingle/index.js +132 -112
- package/dist/es2019/react/nodes/mediaSingle/styles.js +1 -1
- package/dist/es2019/react/nodes/mention.js +1 -3
- package/dist/es2019/react/nodes/panel.js +14 -12
- package/dist/es2019/react/nodes/status.js +2 -1
- package/dist/es2019/react/nodes/table/colgroup.js +1 -1
- package/dist/es2019/react/nodes/table/sticky.js +1 -1
- package/dist/es2019/react/nodes/table.js +4 -1
- package/dist/es2019/react/nodes/tableCell.js +22 -10
- package/dist/es2019/react/nodes/tableRow.js +2 -1
- package/dist/es2019/react/nodes/task-item-with-providers.js +3 -1
- package/dist/es2019/react/nodes/taskItem.js +2 -1
- package/dist/es2019/render-document.js +18 -2
- package/dist/es2019/text/nodes/date.js +1 -1
- package/dist/es2019/types/smartLinksOptions.js +1 -0
- package/dist/es2019/ui/Expand.js +1 -1
- package/dist/es2019/ui/ExtensionRenderer.js +3 -1
- package/dist/es2019/ui/MediaCard.js +1 -1
- package/dist/es2019/ui/Renderer/breakout-ssr.js +46 -5
- package/dist/es2019/ui/Renderer/index.js +4 -1
- package/dist/es2019/ui/SortingIcon.js +23 -11
- package/dist/es2019/ui/annotations/draft/component.js +1 -1
- package/dist/es2019/ui/annotations/element/index.js +1 -1
- package/dist/es2019/ui/annotations/element/mark.js +1 -1
- package/dist/es2019/ui/annotations/hooks/use-events.js +1 -1
- package/dist/es2019/ui/annotations/hooks/use-load-annotations.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/actions/index.js +1 -1
- package/dist/esm/analytics/enums.js +1 -0
- package/dist/esm/analytics/unsupported-content.js +1 -1
- package/dist/esm/messages.js +44 -0
- package/dist/esm/react/hooks/use-observed-width.js +80 -0
- package/dist/esm/react/index.js +8 -4
- package/dist/esm/react/marks/annotation.js +2 -2
- package/dist/esm/react/marks/breakout.js +2 -1
- package/dist/esm/react/nodes/blockCard.js +1 -1
- package/dist/esm/react/nodes/caption.js +1 -1
- package/dist/esm/react/nodes/copy-text-provider.js +2 -1
- package/dist/esm/react/nodes/date.js +2 -1
- package/dist/esm/react/nodes/embedCard.js +1 -1
- package/dist/esm/react/nodes/emoji.js +1 -1
- package/dist/esm/react/nodes/extension.js +2 -1
- package/dist/esm/react/nodes/heading-anchor.js +12 -3
- package/dist/esm/react/nodes/index.js +62 -7
- package/dist/esm/react/nodes/inlineCard.js +12 -2
- package/dist/esm/react/nodes/layoutColumn.js +1 -1
- package/dist/esm/react/nodes/media.js +2 -1
- package/dist/esm/react/nodes/mediaGroup.js +2 -2
- package/dist/esm/react/nodes/mediaInline.js +1 -1
- package/dist/esm/react/nodes/mediaSingle/index.js +140 -141
- package/dist/esm/react/nodes/mediaSingle/styles.js +1 -1
- package/dist/esm/react/nodes/mention.js +1 -3
- package/dist/esm/react/nodes/panel.js +14 -12
- package/dist/esm/react/nodes/status.js +2 -1
- package/dist/esm/react/nodes/table/colgroup.js +1 -1
- package/dist/esm/react/nodes/table/sticky.js +1 -1
- package/dist/esm/react/nodes/table.js +4 -1
- package/dist/esm/react/nodes/tableCell.js +19 -9
- package/dist/esm/react/nodes/tableRow.js +2 -1
- package/dist/esm/react/nodes/task-item-with-providers.js +5 -2
- package/dist/esm/react/nodes/taskItem.js +2 -1
- package/dist/esm/render-document.js +17 -2
- package/dist/esm/text/nodes/date.js +1 -1
- package/dist/esm/types/smartLinksOptions.js +1 -0
- package/dist/esm/ui/Expand.js +1 -1
- package/dist/esm/ui/ExtensionRenderer.js +3 -1
- package/dist/esm/ui/MediaCard.js +3 -3
- package/dist/esm/ui/Renderer/breakout-ssr.js +48 -5
- package/dist/esm/ui/Renderer/index.js +6 -3
- package/dist/esm/ui/SortingIcon.js +21 -11
- package/dist/esm/ui/annotations/draft/component.js +1 -1
- package/dist/esm/ui/annotations/element/index.js +1 -1
- package/dist/esm/ui/annotations/element/mark.js +3 -3
- package/dist/esm/ui/annotations/hooks/use-events.js +3 -3
- package/dist/esm/ui/annotations/hooks/use-load-annotations.js +3 -3
- package/dist/esm/utils.js +3 -2
- package/dist/esm/version.json +1 -1
- package/dist/types/actions/index.d.ts +1 -1
- package/dist/types/analytics/enums.d.ts +2 -1
- package/dist/types/analytics/events.d.ts +5 -2
- package/dist/types/analytics/unsupported-content.d.ts +1 -1
- package/dist/types/messages.d.ts +44 -0
- package/dist/types/react/hooks/use-observed-width.d.ts +3 -0
- package/dist/types/react/index.d.ts +6 -1
- package/dist/types/react/nodes/blockCard.d.ts +1 -1
- package/dist/types/react/nodes/bodiedExtension.d.ts +2 -1
- package/dist/types/react/nodes/codeBlock.d.ts +3 -3
- package/dist/types/react/nodes/embedCard.d.ts +1 -1
- package/dist/types/react/nodes/emoji.d.ts +1 -1
- package/dist/types/react/nodes/extension.d.ts +14 -13
- package/dist/types/react/nodes/index.d.ts +39 -15
- package/dist/types/react/nodes/inlineCard.d.ts +23 -21
- package/dist/types/react/nodes/inlineExtension.d.ts +2 -1
- package/dist/types/react/nodes/media.d.ts +2 -2
- package/dist/types/react/nodes/mediaGroup.d.ts +1 -1
- package/dist/types/react/nodes/mediaInline.d.ts +1 -1
- package/dist/types/react/nodes/mediaSingle/index.d.ts +3 -7
- package/dist/types/react/nodes/mediaSingle/styles.d.ts +1 -1
- package/dist/types/react/nodes/mention.d.ts +2 -2
- package/dist/types/react/nodes/panel.d.ts +3 -1
- package/dist/types/react/nodes/table/sticky.d.ts +1 -1
- package/dist/types/react/nodes/table.d.ts +22 -21
- package/dist/types/react/nodes/tableCell.d.ts +7 -60
- package/dist/types/react/nodes/tableRow.d.ts +1 -1
- package/dist/types/react/nodes/task-item-with-providers.d.ts +2 -1
- package/dist/types/react/nodes/taskItem.d.ts +1 -1
- package/dist/types/react/types.d.ts +3 -1
- package/dist/types/react/utils/getCardClickHandler.d.ts +1 -1
- package/dist/types/render-document.d.ts +1 -1
- package/dist/types/types/smartLinksOptions.d.ts +3 -0
- package/dist/types/ui/ExtensionRenderer.d.ts +3 -1
- package/dist/types/ui/MediaCard.d.ts +3 -2
- package/dist/types/ui/SortingIcon.d.ts +7 -4
- package/dist/types/ui/annotations/context.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 +2 -1
- package/dist/types/ui/annotations/hooks/use-inline-comment-subscriber.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/types.d.ts +1 -1
- package/dist/types/ui/renderer-props.d.ts +8 -1
- package/dist/types/utils.d.ts +3 -1
- package/package.json +20 -21
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
|
|
3
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
4
|
|
|
5
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
5
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
|
|
7
7
|
import { useContext, useEffect } from 'react';
|
|
8
|
-
import { AnnotationUpdateEvent } from '@atlaskit/editor-common';
|
|
8
|
+
import { AnnotationUpdateEvent } from '@atlaskit/editor-common/types';
|
|
9
9
|
import { ProvidersContext } from '../context';
|
|
10
10
|
import { RendererContext as ActionsContext } from '../../RendererActionsContext';
|
|
11
11
|
export var useLoadAnnotations = function useLoadAnnotations(_ref) {
|
package/dist/esm/utils.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import _createClass from "@babel/runtime/helpers/createClass";
|
|
1
2
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
2
3
|
import { defaultSchema } from '@atlaskit/adf-schema';
|
|
3
4
|
import { JSONTransformer } from '@atlaskit/editor-json-transformer';
|
|
@@ -8,12 +9,12 @@ function createEncoder(parser, encoder) {
|
|
|
8
9
|
};
|
|
9
10
|
}
|
|
10
11
|
|
|
11
|
-
export var ADFEncoder = function ADFEncoder(createTransformerWithSchema) {
|
|
12
|
+
export var ADFEncoder = /*#__PURE__*/_createClass(function ADFEncoder(createTransformerWithSchema) {
|
|
12
13
|
_classCallCheck(this, ADFEncoder);
|
|
13
14
|
|
|
14
15
|
var transformer = createTransformerWithSchema(defaultSchema);
|
|
15
16
|
this.encode = createEncoder(transformer, new JSONTransformer());
|
|
16
|
-
};
|
|
17
|
+
});
|
|
17
18
|
export var getText = function getText(node) {
|
|
18
19
|
return node.text || node.attrs && (node.attrs.text || node.attrs.shortName) || "[".concat(typeof node.type === 'string' ? node.type : node.type.name, "]");
|
|
19
20
|
};
|
package/dist/esm/version.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { JSONDocNode } from '@atlaskit/editor-json-transformer';
|
|
3
|
-
import { AnnotationActionResult, AnnotationByMatches } from '@atlaskit/editor-common';
|
|
3
|
+
import type { AnnotationActionResult, AnnotationByMatches } from '@atlaskit/editor-common/types';
|
|
4
4
|
import { AnnotationTypes } from '@atlaskit/adf-schema';
|
|
5
5
|
import { Node, Schema, Mark } from 'prosemirror-model';
|
|
6
6
|
import { Step, RemoveMarkStep } from 'prosemirror-transform';
|
|
@@ -25,7 +25,8 @@ export declare enum ACTION {
|
|
|
25
25
|
RESOLVED = "resolved",
|
|
26
26
|
CREATE_NOT_ALLOWED = "createNotAllowed",
|
|
27
27
|
UNSUPPORTED_CONTENT_LEVELS_TRACKING_SUCCEEDED = "unsupportedContentLevelsTrackingSucceeded",
|
|
28
|
-
UNSUPPORTED_CONTENT_LEVELS_TRACKING_ERRORED = "unsupportedContentLevelsTrackingErrored"
|
|
28
|
+
UNSUPPORTED_CONTENT_LEVELS_TRACKING_ERRORED = "unsupportedContentLevelsTrackingErrored",
|
|
29
|
+
MEDIA_LINK_TRANSFORMED = "mediaLinkTransformed"
|
|
29
30
|
}
|
|
30
31
|
export declare enum ACTION_SUBJECT {
|
|
31
32
|
RENDERER = "renderer",
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { ACTION, ACTION_SUBJECT, AEP, EVENT_TYPE, ACTION_SUBJECT_ID } from './enums';
|
|
2
|
-
import {
|
|
2
|
+
import { SEVERITY, UNSUPPORTED_CONTENT_LEVEL_SEVERITY } from '@atlaskit/editor-common/utils';
|
|
3
|
+
import type { UnsupportedContentPayload } from '@atlaskit/editor-common/utils';
|
|
4
|
+
import { SortOrder } from '@atlaskit/editor-common/types';
|
|
3
5
|
import { UnsupportedContentTooltipPayload } from '@atlaskit/editor-common/src/utils/analytics';
|
|
4
6
|
export declare enum PLATFORM {
|
|
5
7
|
NATIVE = "mobileNative",
|
|
@@ -94,5 +96,6 @@ export declare enum RESOLVE_METHOD {
|
|
|
94
96
|
ORPHANED = "orphaned"
|
|
95
97
|
}
|
|
96
98
|
export declare type AnnotationAEP = AEP<AnnotationActionType, ACTION_SUBJECT.ANNOTATION, ACTION_SUBJECT_ID.INLINE_COMMENT, AnnotationAEPAttributes, undefined>;
|
|
97
|
-
|
|
99
|
+
declare type MediaLnkTransformedAEP = AEP<ACTION.MEDIA_LINK_TRANSFORMED, ACTION_SUBJECT.RENDERER, undefined, undefined, EVENT_TYPE.OPERATIONAL>;
|
|
100
|
+
export declare type AnalyticsEventPayload = RendererStartAEP | RendererRenderedAEP | ComponentCrashErrorAEP | RendererUnsupportedContentLevelsTrackingSucceeded | RendererUnsupportedContentLevelsTrackingErrored | RendererSelectAllCaughtAEP | RendererSelectAllEscapedAEP | HeadingAnchorLinkButtonAEP | AnchorLinkAEP | TableSortColumnNotAllowedAEP | TableSortColumnAEP | VisitLinkAEP | VisitMediaLinkAEP | ExpandAEP | UnsupportedContentPayload | UnsupportedContentTooltipPayload | AnnotationAEP | AnnotationDeleteAEP | MediaLnkTransformedAEP | InvalidProsemirrorDocumentErrorAEP;
|
|
98
101
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UnsupportedContentLevelsTracking } from '@atlaskit/editor-common';
|
|
1
|
+
import type { UnsupportedContentLevelsTracking } from '@atlaskit/editor-common/utils';
|
|
2
2
|
import { AnalyticsEventPayload } from './events';
|
|
3
3
|
declare type DispatchAnalyticsEvent = (event: AnalyticsEventPayload) => void;
|
|
4
4
|
declare type DocumentData = {
|
package/dist/types/messages.d.ts
CHANGED
|
@@ -14,6 +14,50 @@ export declare const headingAnchorLinkMessages: {
|
|
|
14
14
|
defaultMessage: string;
|
|
15
15
|
description: string;
|
|
16
16
|
};
|
|
17
|
+
copyAriaLabel: {
|
|
18
|
+
id: string;
|
|
19
|
+
defaultMessage: string;
|
|
20
|
+
description: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export declare const tableCellMessages: {
|
|
24
|
+
noneSortingLabel: {
|
|
25
|
+
id: string;
|
|
26
|
+
defaultMessage: string;
|
|
27
|
+
description: string;
|
|
28
|
+
};
|
|
29
|
+
ascSortingLabel: {
|
|
30
|
+
id: string;
|
|
31
|
+
defaultMessage: string;
|
|
32
|
+
description: string;
|
|
33
|
+
};
|
|
34
|
+
descSortingLabel: {
|
|
35
|
+
id: string;
|
|
36
|
+
defaultMessage: string;
|
|
37
|
+
description: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export declare const sortingIconMessages: {
|
|
41
|
+
noOrderLabel: {
|
|
42
|
+
id: string;
|
|
43
|
+
defaultMessage: string;
|
|
44
|
+
description: string;
|
|
45
|
+
};
|
|
46
|
+
ascOrderLabel: {
|
|
47
|
+
id: string;
|
|
48
|
+
defaultMessage: string;
|
|
49
|
+
description: string;
|
|
50
|
+
};
|
|
51
|
+
descOrderLabel: {
|
|
52
|
+
id: string;
|
|
53
|
+
defaultMessage: string;
|
|
54
|
+
description: string;
|
|
55
|
+
};
|
|
56
|
+
invalidLabel: {
|
|
57
|
+
id: string;
|
|
58
|
+
defaultMessage: string;
|
|
59
|
+
description: string;
|
|
60
|
+
};
|
|
17
61
|
};
|
|
18
62
|
export declare const codeBlockCopyButtonMessages: {
|
|
19
63
|
copyCodeToClipboard: {
|
|
@@ -4,9 +4,12 @@ import { Serializer } from '../';
|
|
|
4
4
|
import { RendererAppearance, StickyHeaderConfig, HeadingAnchorLinksProps } from '../ui/Renderer/types';
|
|
5
5
|
import { AnalyticsEventPayload } from '../analytics/events';
|
|
6
6
|
import { TextWrapper } from './nodes';
|
|
7
|
-
import {
|
|
7
|
+
import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
8
|
+
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
9
|
+
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
8
10
|
import { RendererContext } from './types';
|
|
9
11
|
import { MediaOptions } from '../types/mediaOptions';
|
|
12
|
+
import { SmartLinksOptions } from '../types/smartLinksOptions';
|
|
10
13
|
export interface ReactSerializerInit {
|
|
11
14
|
providers?: ProviderFactory;
|
|
12
15
|
eventHandlers?: EventHandlers;
|
|
@@ -26,6 +29,7 @@ export interface ReactSerializerInit {
|
|
|
26
29
|
allowMediaLinking?: boolean;
|
|
27
30
|
surroundTextNodesWithTextWrapper?: boolean;
|
|
28
31
|
media?: MediaOptions;
|
|
32
|
+
smartLinks?: SmartLinksOptions;
|
|
29
33
|
allowCopyToClipboard?: boolean;
|
|
30
34
|
allowPlaceholderText?: boolean;
|
|
31
35
|
allowCustomPanels?: boolean;
|
|
@@ -70,6 +74,7 @@ export default class ReactSerializer implements Serializer<JSX.Element> {
|
|
|
70
74
|
private startPos;
|
|
71
75
|
private surroundTextNodesWithTextWrapper;
|
|
72
76
|
private media?;
|
|
77
|
+
private smartLinks?;
|
|
73
78
|
private allowAnnotations;
|
|
74
79
|
private allowSelectAllTrap?;
|
|
75
80
|
constructor(init: ReactSerializerInit);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { EventHandlers } from '@atlaskit/editor-common';
|
|
2
|
+
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
3
3
|
import { RendererAppearance } from '../../ui/Renderer/types';
|
|
4
4
|
export default function BlockCard(props: {
|
|
5
5
|
url?: string;
|
|
@@ -3,7 +3,8 @@ import { Node as PMNode } from 'prosemirror-model';
|
|
|
3
3
|
import { RendererContext } from '../types';
|
|
4
4
|
import { Serializer } from '../..';
|
|
5
5
|
import { ExtensionLayout } from '@atlaskit/adf-schema';
|
|
6
|
-
import { ExtensionHandlers
|
|
6
|
+
import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
7
|
+
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
7
8
|
export interface Props {
|
|
8
9
|
serializer: Serializer<any>;
|
|
9
10
|
extensionHandlers?: ExtensionHandlers;
|
|
@@ -14,11 +14,11 @@ declare const _default: import("styled-components").StyledComponentClass<(Pick<P
|
|
|
14
14
|
forwardedRef?: ((instance: any) => void) | React.RefObject<any> | null | undefined;
|
|
15
15
|
} & import("@atlaskit/theme").CustomThemeProps) | (Pick<Props & WrappedComponentProps<"intl">, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled"> & {
|
|
16
16
|
forwardedRef?: ((instance: any) => void) | React.RefObject<any> | null | undefined;
|
|
17
|
-
} & import("@atlaskit/theme").NoThemeProps), any, (Pick<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>, "text" | "className" | "
|
|
17
|
+
} & import("@atlaskit/theme").NoThemeProps), any, (Pick<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled" | "forwardedRef"> & {
|
|
18
18
|
theme?: any;
|
|
19
|
-
} & import("@atlaskit/theme").AtlaskitThemeProps) | (Pick<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>, "text" | "className" | "
|
|
19
|
+
} & import("@atlaskit/theme").AtlaskitThemeProps) | (Pick<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled" | "forwardedRef"> & {
|
|
20
20
|
theme?: any;
|
|
21
|
-
} & import("@atlaskit/theme").CustomThemeProps) | (Pick<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>, "text" | "className" | "
|
|
21
|
+
} & import("@atlaskit/theme").CustomThemeProps) | (Pick<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled" | "forwardedRef"> & {
|
|
22
22
|
theme?: any;
|
|
23
23
|
} & import("@atlaskit/theme").NoThemeProps)>;
|
|
24
24
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { EventHandlers } from '@atlaskit/editor-common';
|
|
2
|
+
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
3
3
|
import { RichMediaLayout } from '@atlaskit/adf-schema';
|
|
4
4
|
import { RendererAppearance } from '../../ui/Renderer/types';
|
|
5
5
|
export default function EmbedCard(props: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EmojiAttributes } from '@atlaskit/adf-schema';
|
|
2
2
|
import { PureComponent } from 'react';
|
|
3
|
-
import { ProviderFactory } from '@atlaskit/editor-common';
|
|
3
|
+
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
4
4
|
export interface EmojiProps extends EmojiAttributes {
|
|
5
5
|
providers?: ProviderFactory;
|
|
6
6
|
fitToHeight?: number;
|
|
@@ -2,7 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { Node as PMNode } from 'prosemirror-model';
|
|
3
3
|
import { RendererContext } from '../types';
|
|
4
4
|
import { ExtensionLayout } from '@atlaskit/adf-schema';
|
|
5
|
-
import { ExtensionHandlers
|
|
5
|
+
import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
6
|
+
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
7
|
+
import type { OverflowShadowProps } from '@atlaskit/editor-common/ui';
|
|
6
8
|
export interface Props {
|
|
7
9
|
extensionHandlers?: ExtensionHandlers;
|
|
8
10
|
providers: ProviderFactory;
|
|
@@ -42,7 +44,7 @@ declare const _default: {
|
|
|
42
44
|
handleContainer: (container: HTMLElement | null) => void;
|
|
43
45
|
render(): JSX.Element;
|
|
44
46
|
context: any;
|
|
45
|
-
setState<K extends "showLeftShadow" | "showRightShadow">(state: import("@atlaskit/editor-common").OverflowShadowState | ((prevState: Readonly<import("@atlaskit/editor-common").OverflowShadowState>, props: Readonly<Props>) => import("@atlaskit/editor-common").OverflowShadowState | Pick<import("@atlaskit/editor-common").OverflowShadowState, K> | null) | Pick<import("@atlaskit/editor-common").OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
|
|
47
|
+
setState<K extends "showLeftShadow" | "showRightShadow">(state: import("@atlaskit/editor-common/ui").OverflowShadowState | ((prevState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, props: Readonly<Props>) => import("@atlaskit/editor-common/ui").OverflowShadowState | Pick<import("@atlaskit/editor-common/ui").OverflowShadowState, K> | null) | Pick<import("@atlaskit/editor-common/ui").OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
|
|
46
48
|
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
47
49
|
readonly props: Readonly<Props> & Readonly<{
|
|
48
50
|
children?: React.ReactNode;
|
|
@@ -51,16 +53,15 @@ declare const _default: {
|
|
|
51
53
|
[key: string]: React.ReactInstance;
|
|
52
54
|
};
|
|
53
55
|
componentDidMount?(): void;
|
|
54
|
-
shouldComponentUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common").OverflowShadowState>, nextContext: any): boolean;
|
|
56
|
+
shouldComponentUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): boolean;
|
|
55
57
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
56
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Props>, prevState: Readonly<import("@atlaskit/editor-common").OverflowShadowState>): any;
|
|
58
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Props>, prevState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>): any;
|
|
57
59
|
componentWillMount?(): void;
|
|
58
60
|
UNSAFE_componentWillMount?(): void;
|
|
59
61
|
componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
|
|
60
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common").OverflowShadowState>, nextContext: any): void;
|
|
62
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
|
|
63
|
+
componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): void;
|
|
64
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): void;
|
|
64
65
|
};
|
|
65
66
|
new (props: Props, context?: any): {
|
|
66
67
|
overflowContainer?: HTMLElement | null | undefined;
|
|
@@ -81,7 +82,7 @@ declare const _default: {
|
|
|
81
82
|
handleContainer: (container: HTMLElement | null) => void;
|
|
82
83
|
render(): JSX.Element;
|
|
83
84
|
context: any;
|
|
84
|
-
setState<K_1 extends "showLeftShadow" | "showRightShadow">(state: import("@atlaskit/editor-common").OverflowShadowState | ((prevState: Readonly<import("@atlaskit/editor-common").OverflowShadowState>, props: Readonly<Props>) => import("@atlaskit/editor-common").OverflowShadowState | Pick<import("@atlaskit/editor-common").OverflowShadowState, K_1> | null) | Pick<import("@atlaskit/editor-common").OverflowShadowState, K_1> | null, callback?: (() => void) | undefined): void;
|
|
85
|
+
setState<K_1 extends "showLeftShadow" | "showRightShadow">(state: import("@atlaskit/editor-common/ui").OverflowShadowState | ((prevState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, props: Readonly<Props>) => import("@atlaskit/editor-common/ui").OverflowShadowState | Pick<import("@atlaskit/editor-common/ui").OverflowShadowState, K_1> | null) | Pick<import("@atlaskit/editor-common/ui").OverflowShadowState, K_1> | null, callback?: (() => void) | undefined): void;
|
|
85
86
|
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
86
87
|
readonly props: Readonly<Props> & Readonly<{
|
|
87
88
|
children?: React.ReactNode;
|
|
@@ -90,15 +91,15 @@ declare const _default: {
|
|
|
90
91
|
[key: string]: React.ReactInstance;
|
|
91
92
|
};
|
|
92
93
|
componentDidMount?(): void;
|
|
93
|
-
shouldComponentUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common").OverflowShadowState>, nextContext: any): boolean;
|
|
94
|
+
shouldComponentUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): boolean;
|
|
94
95
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
95
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Props>, prevState: Readonly<import("@atlaskit/editor-common").OverflowShadowState>): any;
|
|
96
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Props>, prevState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>): any;
|
|
96
97
|
componentWillMount?(): void;
|
|
97
98
|
UNSAFE_componentWillMount?(): void;
|
|
98
99
|
componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
|
|
99
100
|
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props>, nextContext: any): void;
|
|
100
|
-
componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common").OverflowShadowState>, nextContext: any): void;
|
|
101
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common").OverflowShadowState>, nextContext: any): void;
|
|
101
|
+
componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): void;
|
|
102
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): void;
|
|
102
103
|
};
|
|
103
104
|
contextType?: React.Context<any> | undefined;
|
|
104
105
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import Loadable from 'react-loadable';
|
|
2
3
|
import { Fragment, Node, Mark } from 'prosemirror-model';
|
|
3
4
|
import Blockquote from './blockquote';
|
|
4
5
|
import BodiedExtension, { Props as BodiedExtensionProps } from './bodiedExtension';
|
|
5
6
|
import BulletList from './bulletList';
|
|
6
|
-
import DecisionList from './decisionList';
|
|
7
7
|
import Doc, { DocWithSelectAllTrap } from './doc';
|
|
8
8
|
import Extension, { Props as ExtensionProps } from './extension';
|
|
9
9
|
import HardBreak from './hardBreak';
|
|
@@ -12,55 +12,79 @@ import InlineExtension, { Props as InlineExtensionProps } from './inlineExtensio
|
|
|
12
12
|
import LayoutSection from './layoutSection';
|
|
13
13
|
import LayoutColumn from './layoutColumn';
|
|
14
14
|
import ListItem from './listItem';
|
|
15
|
-
import MediaSingle from './mediaSingle';
|
|
16
15
|
import Caption from './caption';
|
|
17
16
|
import OrderedList from './orderedList';
|
|
18
|
-
import Panel from './panel';
|
|
19
17
|
import Paragraph from './paragraph';
|
|
20
18
|
import Placeholder from './placeholder';
|
|
21
19
|
import Rule from './rule';
|
|
22
|
-
import TaskList from './taskList';
|
|
23
20
|
import Table from './table';
|
|
24
21
|
import { TableCell } from './tableCell';
|
|
25
22
|
import TableRow from './tableRow';
|
|
26
23
|
import UnknownBlock from './unknownBlock';
|
|
27
|
-
|
|
28
|
-
import EmbedCard from './embedCard';
|
|
29
|
-
declare const CodeBlock: (React.ComponentClass<import("styled-components").ThemedOuterStyledProps<(Pick<import("react-intl-next").WithIntlProps<import("./codeBlock").Props & import("react-intl-next").WrappedComponentProps<"intl">>, "text" | "className" | "forwardedRef" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled"> & {
|
|
24
|
+
declare const CodeBlock: (React.ComponentClass<import("styled-components").ThemedOuterStyledProps<(Pick<import("react-intl-next").WithIntlProps<import("./codeBlock").Props & import("react-intl-next").WrappedComponentProps<"intl">>, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled" | "forwardedRef"> & {
|
|
30
25
|
theme?: any;
|
|
31
|
-
} & import("@atlaskit/theme").AtlaskitThemeProps) | (Pick<import("react-intl-next").WithIntlProps<import("./codeBlock").Props & import("react-intl-next").WrappedComponentProps<"intl">>, "text" | "className" | "
|
|
26
|
+
} & import("@atlaskit/theme").AtlaskitThemeProps) | (Pick<import("react-intl-next").WithIntlProps<import("./codeBlock").Props & import("react-intl-next").WrappedComponentProps<"intl">>, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled" | "forwardedRef"> & {
|
|
32
27
|
theme?: any;
|
|
33
|
-
} & import("@atlaskit/theme").CustomThemeProps) | (Pick<import("react-intl-next").WithIntlProps<import("./codeBlock").Props & import("react-intl-next").WrappedComponentProps<"intl">>, "text" | "className" | "
|
|
28
|
+
} & import("@atlaskit/theme").CustomThemeProps) | (Pick<import("react-intl-next").WithIntlProps<import("./codeBlock").Props & import("react-intl-next").WrappedComponentProps<"intl">>, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled" | "forwardedRef"> & {
|
|
34
29
|
theme?: any;
|
|
35
|
-
} & import("@atlaskit/theme").NoThemeProps), any>, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("styled-components").ThemedOuterStyledProps<(Pick<import("react-intl-next").WithIntlProps<import("./codeBlock").Props & import("react-intl-next").WrappedComponentProps<"intl">>, "text" | "className" | "
|
|
30
|
+
} & import("@atlaskit/theme").NoThemeProps), any>, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("styled-components").ThemedOuterStyledProps<(Pick<import("react-intl-next").WithIntlProps<import("./codeBlock").Props & import("react-intl-next").WrappedComponentProps<"intl">>, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled" | "forwardedRef"> & {
|
|
36
31
|
theme?: any;
|
|
37
|
-
} & import("@atlaskit/theme").AtlaskitThemeProps) | (Pick<import("react-intl-next").WithIntlProps<import("./codeBlock").Props & import("react-intl-next").WrappedComponentProps<"intl">>, "text" | "className" | "
|
|
32
|
+
} & import("@atlaskit/theme").AtlaskitThemeProps) | (Pick<import("react-intl-next").WithIntlProps<import("./codeBlock").Props & import("react-intl-next").WrappedComponentProps<"intl">>, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled" | "forwardedRef"> & {
|
|
38
33
|
theme?: any;
|
|
39
|
-
} & import("@atlaskit/theme").CustomThemeProps) | (Pick<import("react-intl-next").WithIntlProps<import("./codeBlock").Props & import("react-intl-next").WrappedComponentProps<"intl">>, "text" | "className" | "
|
|
34
|
+
} & import("@atlaskit/theme").CustomThemeProps) | (Pick<import("react-intl-next").WithIntlProps<import("./codeBlock").Props & import("react-intl-next").WrappedComponentProps<"intl">>, "text" | "className" | "language" | "allowCopyToClipboard" | "codeBidiWarningTooltipEnabled" | "forwardedRef"> & {
|
|
40
35
|
theme?: any;
|
|
41
36
|
} & import("@atlaskit/theme").NoThemeProps), any>> & Loadable.LoadableComponent);
|
|
37
|
+
declare const TaskList: (React.ComponentClass<import("./taskList").Props, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("./taskList").Props> & Loadable.LoadableComponent);
|
|
42
38
|
declare const TaskItem: (React.ComponentClass<import("../types").NodeProps<import("./taskItem").Props>, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("../types").NodeProps<import("./taskItem").Props>> & Loadable.LoadableComponent);
|
|
39
|
+
declare const DecisionList: (React.ComponentClass<import("./decisionList").Props, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("./decisionList").Props> & Loadable.LoadableComponent);
|
|
43
40
|
declare const DecisionItem: (React.ComponentClass<import("../types").NodeMeta, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("../types").NodeMeta> & Loadable.LoadableComponent);
|
|
44
41
|
declare const Date: (React.ComponentClass<import("react-intl-next").WithIntlProps<import("./date").Props & import("react-intl-next").WrappedComponentProps<"intl">>, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("react-intl-next").WithIntlProps<import("./date").Props & import("react-intl-next").WrappedComponentProps<"intl">>> & Loadable.LoadableComponent);
|
|
45
42
|
declare const Status: (React.ComponentClass<import("./status").Props, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("./status").Props> & Loadable.LoadableComponent);
|
|
46
43
|
declare const Emoji: (React.ComponentClass<import("./emoji").EmojiProps, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("./emoji").EmojiProps> & Loadable.LoadableComponent);
|
|
47
|
-
declare const
|
|
44
|
+
declare const Panel: (React.ComponentClass<import("./panel").Props, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("./panel").Props> & Loadable.LoadableComponent);
|
|
45
|
+
declare const EmbedCard: (React.ComponentClass<{
|
|
46
|
+
url?: string | undefined;
|
|
47
|
+
data?: object | undefined;
|
|
48
|
+
eventHandlers?: import("@atlaskit/editor-common/ui").EventHandlers | undefined;
|
|
49
|
+
portal?: HTMLElement | undefined;
|
|
50
|
+
originalHeight?: number | undefined;
|
|
51
|
+
originalWidth?: number | undefined;
|
|
52
|
+
width?: number | undefined;
|
|
53
|
+
layout: import("@atlaskit/adf-schema").RichMediaLayout;
|
|
54
|
+
rendererAppearance?: import("../..").RendererAppearance;
|
|
55
|
+
isInsideOfBlockNode?: boolean | undefined;
|
|
56
|
+
allowDynamicTextSizing?: boolean | undefined;
|
|
57
|
+
}, any> & Loadable.LoadableComponent) | (React.FunctionComponent<{
|
|
58
|
+
url?: string | undefined;
|
|
59
|
+
data?: object | undefined;
|
|
60
|
+
eventHandlers?: import("@atlaskit/editor-common/ui").EventHandlers | undefined;
|
|
61
|
+
portal?: HTMLElement | undefined;
|
|
62
|
+
originalHeight?: number | undefined;
|
|
63
|
+
originalWidth?: number | undefined;
|
|
64
|
+
width?: number | undefined;
|
|
65
|
+
layout: import("@atlaskit/adf-schema").RichMediaLayout;
|
|
66
|
+
rendererAppearance?: import("../..").RendererAppearance;
|
|
67
|
+
isInsideOfBlockNode?: boolean | undefined;
|
|
68
|
+
allowDynamicTextSizing?: boolean | undefined;
|
|
69
|
+
}> & Loadable.LoadableComponent);
|
|
70
|
+
declare const InlineCard: (React.ComponentClass<Pick<import("./inlineCard").InlineCardProps & import("../../ui/SmartCardStorage").WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">, any> & Loadable.LoadableComponent) | (React.FunctionComponent<Pick<import("./inlineCard").InlineCardProps & import("../../ui/SmartCardStorage").WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">> & Loadable.LoadableComponent);
|
|
48
71
|
declare const BlockCard: (React.ComponentClass<{
|
|
49
72
|
url?: string | undefined;
|
|
50
73
|
data?: object | undefined;
|
|
51
|
-
eventHandlers?: import("@atlaskit/editor-common").EventHandlers | undefined;
|
|
74
|
+
eventHandlers?: import("@atlaskit/editor-common/ui").EventHandlers | undefined;
|
|
52
75
|
portal?: HTMLElement | undefined;
|
|
53
76
|
rendererAppearance?: import("../..").RendererAppearance;
|
|
54
77
|
}, any> & Loadable.LoadableComponent) | (React.FunctionComponent<{
|
|
55
78
|
url?: string | undefined;
|
|
56
79
|
data?: object | undefined;
|
|
57
|
-
eventHandlers?: import("@atlaskit/editor-common").EventHandlers | undefined;
|
|
80
|
+
eventHandlers?: import("@atlaskit/editor-common/ui").EventHandlers | undefined;
|
|
58
81
|
portal?: HTMLElement | undefined;
|
|
59
82
|
rendererAppearance?: import("../..").RendererAppearance;
|
|
60
83
|
}> & Loadable.LoadableComponent);
|
|
61
84
|
declare const Media: (React.ComponentClass<import("./media").MediaProps, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("./media").MediaProps> & Loadable.LoadableComponent);
|
|
62
85
|
declare const MediaGroup: (React.ComponentClass<import("./mediaGroup").MediaGroupProps, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("./mediaGroup").MediaGroupProps> & Loadable.LoadableComponent);
|
|
63
86
|
declare const MediaInline: (React.ComponentClass<import("./mediaInline").MediaInlineProps, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("./mediaInline").MediaInlineProps> & Loadable.LoadableComponent);
|
|
87
|
+
declare const MediaSingle: (React.ComponentClass<import("react-intl-next").WithIntlProps<import("./mediaSingle").Props & import("react-intl-next").WrappedComponentProps<"intl">>, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("react-intl-next").WithIntlProps<import("./mediaSingle").Props & import("react-intl-next").WrappedComponentProps<"intl">>> & Loadable.LoadableComponent);
|
|
64
88
|
declare const Mention: (React.ComponentClass<import("./mention").Props, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("./mention").Props> & Loadable.LoadableComponent);
|
|
65
89
|
declare const Expand: (React.ComponentClass<import("react-intl-next").WithIntlProps<import("../../ui/Expand").ExpandProps & import("react-intl-next").WrappedComponentProps<"intl">>, any> & Loadable.LoadableComponent) | (React.FunctionComponent<import("react-intl-next").WithIntlProps<import("../../ui/Expand").ExpandProps & import("react-intl-next").WrappedComponentProps<"intl">>> & Loadable.LoadableComponent);
|
|
66
90
|
export declare const nodeToReact: {
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { EventHandlers } from '@atlaskit/editor-common';
|
|
2
|
+
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
3
3
|
import { WithSmartCardStorageProps } from '../../ui/SmartCardStorage';
|
|
4
|
+
import { SmartLinksOptions } from '../../types/smartLinksOptions';
|
|
4
5
|
export interface InlineCardProps {
|
|
5
6
|
url?: string;
|
|
6
7
|
data?: object;
|
|
7
8
|
eventHandlers?: EventHandlers;
|
|
8
9
|
portal?: HTMLElement;
|
|
10
|
+
smartLinks?: SmartLinksOptions;
|
|
9
11
|
}
|
|
10
12
|
declare const _default: {
|
|
11
|
-
new (props: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "
|
|
13
|
+
new (props: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>): {
|
|
12
14
|
render(): JSX.Element;
|
|
13
15
|
context: any;
|
|
14
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "
|
|
16
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
15
17
|
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
16
|
-
readonly props: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "
|
|
18
|
+
readonly props: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">> & Readonly<{
|
|
17
19
|
children?: React.ReactNode;
|
|
18
20
|
}>;
|
|
19
21
|
state: Readonly<{}>;
|
|
@@ -21,24 +23,24 @@ declare const _default: {
|
|
|
21
23
|
[key: string]: React.ReactInstance;
|
|
22
24
|
};
|
|
23
25
|
componentDidMount?(): void;
|
|
24
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "
|
|
26
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
25
27
|
componentWillUnmount?(): void;
|
|
26
28
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
27
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "
|
|
28
|
-
componentDidUpdate?(prevProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "
|
|
29
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>, prevState: Readonly<{}>): any;
|
|
30
|
+
componentDidUpdate?(prevProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
29
31
|
componentWillMount?(): void;
|
|
30
32
|
UNSAFE_componentWillMount?(): void;
|
|
31
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "
|
|
32
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "
|
|
33
|
-
componentWillUpdate?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "
|
|
34
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "
|
|
33
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>, nextContext: any): void;
|
|
34
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>, nextContext: any): void;
|
|
35
|
+
componentWillUpdate?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>, nextState: Readonly<{}>, nextContext: any): void;
|
|
36
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>, nextState: Readonly<{}>, nextContext: any): void;
|
|
35
37
|
};
|
|
36
|
-
new (props: Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "
|
|
38
|
+
new (props: Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">, context?: any): {
|
|
37
39
|
render(): JSX.Element;
|
|
38
40
|
context: any;
|
|
39
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "
|
|
41
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
40
42
|
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
41
|
-
readonly props: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "
|
|
43
|
+
readonly props: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">> & Readonly<{
|
|
42
44
|
children?: React.ReactNode;
|
|
43
45
|
}>;
|
|
44
46
|
state: Readonly<{}>;
|
|
@@ -46,17 +48,17 @@ declare const _default: {
|
|
|
46
48
|
[key: string]: React.ReactInstance;
|
|
47
49
|
};
|
|
48
50
|
componentDidMount?(): void;
|
|
49
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "
|
|
51
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
50
52
|
componentWillUnmount?(): void;
|
|
51
53
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
52
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "
|
|
53
|
-
componentDidUpdate?(prevProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "
|
|
54
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>, prevState: Readonly<{}>): any;
|
|
55
|
+
componentDidUpdate?(prevProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
54
56
|
componentWillMount?(): void;
|
|
55
57
|
UNSAFE_componentWillMount?(): void;
|
|
56
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "
|
|
57
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "
|
|
58
|
-
componentWillUpdate?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "
|
|
59
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "
|
|
58
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>, nextContext: any): void;
|
|
59
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>, nextContext: any): void;
|
|
60
|
+
componentWillUpdate?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>, nextState: Readonly<{}>, nextContext: any): void;
|
|
61
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<InlineCardProps & WithSmartCardStorageProps, "data" | "url" | "eventHandlers" | "portal" | "smartLinks">>, nextState: Readonly<{}>, nextContext: any): void;
|
|
60
62
|
};
|
|
61
63
|
contextType?: React.Context<any> | undefined;
|
|
62
64
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RendererContext } from '../types';
|
|
3
|
-
import { ExtensionHandlers
|
|
3
|
+
import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
4
|
+
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
4
5
|
export interface Props {
|
|
5
6
|
extensionHandlers?: ExtensionHandlers;
|
|
6
7
|
providers: ProviderFactory;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { PureComponent } from 'react';
|
|
3
|
-
import { EventHandlers } from '@atlaskit/editor-common';
|
|
4
|
-
import { ProviderFactory } from '@atlaskit/editor-common';
|
|
3
|
+
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
4
|
+
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
5
5
|
import { MediaCardProps } from '../../ui/MediaCard';
|
|
6
6
|
import { LinkDefinition } from '@atlaskit/adf-schema';
|
|
7
7
|
import { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ReactElement, PureComponent } from 'react';
|
|
3
3
|
import { CardEvent } from '@atlaskit/media-card';
|
|
4
|
-
import { EventHandlers, CardEventClickHandler } from '@atlaskit/editor-common';
|
|
4
|
+
import type { EventHandlers, CardEventClickHandler } from '@atlaskit/editor-common/ui';
|
|
5
5
|
import { Identifier } from '@atlaskit/media-client';
|
|
6
6
|
import { MediaProps } from './media';
|
|
7
7
|
import { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ProviderFactory } from '@atlaskit/editor-common';
|
|
2
|
+
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
3
|
import { FileIdentifier } from '@atlaskit/media-client';
|
|
4
4
|
import { MediaProvider } from '../../ui/MediaCard';
|
|
5
5
|
export declare type RenderMediaInlineProps = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { RichMediaLayout as MediaSingleLayout } from '@atlaskit/adf-schema';
|
|
2
|
-
import { EventHandlers } from '@atlaskit/editor-common';
|
|
3
1
|
import { default as React } from 'react';
|
|
4
2
|
import { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
import { RichMediaLayout as MediaSingleLayout } from '@atlaskit/adf-schema';
|
|
4
|
+
import { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
5
|
+
import type { EventHandlers } from '@atlaskit/editor-common/ui';
|
|
5
6
|
import { AnalyticsEventPayload } from '../../../analytics/events';
|
|
6
7
|
import { RendererAppearance } from '../../../ui/Renderer/types';
|
|
7
|
-
import { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
8
8
|
export interface Props {
|
|
9
9
|
children: React.ReactNode;
|
|
10
10
|
layout: MediaSingleLayout;
|
|
@@ -16,10 +16,6 @@ export interface Props {
|
|
|
16
16
|
fireAnalyticsEvent?: (event: AnalyticsEventPayload) => void;
|
|
17
17
|
featureFlags?: MediaFeatureFlags;
|
|
18
18
|
}
|
|
19
|
-
export interface State {
|
|
20
|
-
width?: number;
|
|
21
|
-
height?: number;
|
|
22
|
-
}
|
|
23
19
|
export declare const getMediaContainerWidth: (currentContainerWidth: number, layout: MediaSingleLayout) => number;
|
|
24
20
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
25
21
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const ExtendedUIMediaSingle: import("styled-components").StyledComponentClass<import("@atlaskit/editor-common").MediaSingleProps, any, Pick<import("@atlaskit/editor-common").MediaSingleProps, "children" | "layout" | "width" | "height" | "className" | "
|
|
1
|
+
export declare const ExtendedUIMediaSingle: import("styled-components").StyledComponentClass<import("@atlaskit/editor-common/ui").MediaSingleProps, any, Pick<import("@atlaskit/editor-common/ui").MediaSingleProps, "children" | "layout" | "width" | "height" | "className" | "containerWidth" | "isLoading" | "nodeType" | "lineLength" | "pctWidth" | "fullWidthMode" | "hasFallbackContainer" | "handleMediaSingleRef"> & {
|
|
2
2
|
theme?: any;
|
|
3
3
|
}>;
|