@atlaskit/renderer 130.2.14 → 130.2.15
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
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import Loadable from 'react-loadable';
|
|
3
3
|
import type { Fragment, Node, Mark } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
+
import { type EventHandlers } from '@atlaskit/editor-common/ui';
|
|
4
5
|
import Blockquote from './blockquote';
|
|
5
6
|
import BodiedExtension from './bodiedExtension';
|
|
6
7
|
import MultiBodiedExtension from './multiBodiedExtension';
|
|
@@ -23,62 +24,86 @@ import Table from './table';
|
|
|
23
24
|
import { TableCell } from './tableCell';
|
|
24
25
|
import TableRow from './tableRow';
|
|
25
26
|
import UnknownBlock from './unknownBlock';
|
|
26
|
-
import type { NodeComponentsProps } from '../../ui/Renderer/types';
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
27
|
+
import type { NodeComponentsProps, RendererAppearance } from '../../ui/Renderer/types';
|
|
28
|
+
import type { RichMediaLayout, DatasourceAttributeProperties } from '@atlaskit/adf-schema';
|
|
29
|
+
import type { MediaInlineAttrs } from '@atlaskit/editor-common/media-inline';
|
|
30
|
+
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
31
|
+
import type { Diff } from '@atlaskit/editor-common/utils';
|
|
32
|
+
import type { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
33
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
34
|
+
import type { MediaSSR } from '../../types/mediaOptions';
|
|
35
|
+
import type { SmartLinksOptions } from '../../types/smartLinksOptions';
|
|
36
|
+
import type { ExpandProps } from '../../ui/Expand';
|
|
37
|
+
import type { WithSmartCardStorageProps } from '../../ui/SmartCardStorage';
|
|
38
|
+
import type { NodeProps } from '../types';
|
|
39
|
+
import type { Props as CodeBlockNodeProps } from './codeBlock/codeBlock';
|
|
40
|
+
import type { Props as DateNodeProps } from './date';
|
|
41
|
+
import type { Props as DecisionListNodeProps } from './decisionList';
|
|
42
|
+
import type { EmojiProps } from './emoji';
|
|
43
|
+
import type { InlineCardProps } from './inlineCard';
|
|
44
|
+
import type { MediaProps } from './media';
|
|
45
|
+
import type { MediaGroupProps } from './mediaGroup';
|
|
46
|
+
import type { Props as MediaSingleNodeProps } from './mediaSingle';
|
|
47
|
+
import type { Props as MentionNodeProps } from './mention';
|
|
48
|
+
import type { Props as PanelNodeProps } from './panel';
|
|
49
|
+
import type { Props as StatusNodeProps } from './status';
|
|
50
|
+
import type { Props as TaskItemNodeProps } from './taskItem';
|
|
51
|
+
import type { Props as TaskListNodeProps } from './taskList';
|
|
52
|
+
declare const WindowedCodeBlock: React.ComponentType<CodeBlockNodeProps> & Loadable.LoadableComponent;
|
|
53
|
+
declare const CodeBlock: React.ComponentType<WithIntlProps<CodeBlockNodeProps & WrappedComponentProps>> & Loadable.LoadableComponent;
|
|
54
|
+
declare const TaskList: React.ComponentType<TaskListNodeProps> & Loadable.LoadableComponent;
|
|
55
|
+
declare const TaskItem: React.ComponentType<NodeProps<TaskItemNodeProps>> & Loadable.LoadableComponent;
|
|
56
|
+
declare const DecisionList: React.ComponentType<DecisionListNodeProps> & Loadable.LoadableComponent;
|
|
57
|
+
declare const DecisionItem: React.ComponentType<NodeProps> & Loadable.LoadableComponent;
|
|
58
|
+
declare const Date: React.ComponentType<DateNodeProps> & Loadable.LoadableComponent;
|
|
59
|
+
declare const Status: React.ComponentType<StatusNodeProps> & Loadable.LoadableComponent;
|
|
60
|
+
declare const Emoji: React.ComponentType<EmojiProps> & Loadable.LoadableComponent;
|
|
61
|
+
declare const Panel: React.ComponentType<PanelNodeProps> & Loadable.LoadableComponent;
|
|
37
62
|
declare const EmbedCard: React.ComponentType<{
|
|
38
63
|
data?: object;
|
|
39
|
-
eventHandlers?:
|
|
64
|
+
eventHandlers?: EventHandlers;
|
|
40
65
|
isInsideOfBlockNode?: boolean;
|
|
41
66
|
isInsideOfInlineExtension?: boolean;
|
|
42
|
-
layout:
|
|
67
|
+
layout: RichMediaLayout;
|
|
43
68
|
onSetLinkTarget?: (url: string) => "_blank" | undefined;
|
|
44
69
|
originalHeight?: number;
|
|
45
70
|
originalWidth?: number;
|
|
46
71
|
portal?: HTMLElement;
|
|
47
|
-
rendererAppearance?:
|
|
48
|
-
smartLinks?:
|
|
72
|
+
rendererAppearance?: RendererAppearance;
|
|
73
|
+
smartLinks?: SmartLinksOptions;
|
|
49
74
|
url?: string;
|
|
50
75
|
width?: number;
|
|
51
76
|
}> & Loadable.LoadableComponent;
|
|
52
|
-
declare const InlineCard: React.ComponentType<
|
|
77
|
+
declare const InlineCard: React.ComponentType<Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>> & Loadable.LoadableComponent;
|
|
53
78
|
declare const BlockCard: React.ComponentType<{
|
|
54
79
|
data?: object;
|
|
55
|
-
datasource?:
|
|
56
|
-
eventHandlers?:
|
|
80
|
+
datasource?: DatasourceAttributeProperties;
|
|
81
|
+
eventHandlers?: EventHandlers;
|
|
57
82
|
isNodeNested?: boolean;
|
|
58
83
|
layout?: string;
|
|
59
84
|
localId?: string;
|
|
60
85
|
onSetLinkTarget?: (url: string) => "_blank" | undefined;
|
|
61
86
|
portal?: HTMLElement;
|
|
62
|
-
rendererAppearance?:
|
|
63
|
-
smartLinks?:
|
|
87
|
+
rendererAppearance?: RendererAppearance;
|
|
88
|
+
smartLinks?: SmartLinksOptions;
|
|
64
89
|
url?: string;
|
|
65
90
|
}> & Loadable.LoadableComponent;
|
|
66
|
-
declare const Media: React.ComponentType<React.PropsWithChildren<
|
|
67
|
-
declare const MediaGroup: React.ComponentType<
|
|
68
|
-
declare const MediaInline: React.ComponentType<
|
|
91
|
+
declare const Media: React.ComponentType<React.PropsWithChildren<MediaProps>> & Loadable.LoadableComponent;
|
|
92
|
+
declare const MediaGroup: React.ComponentType<MediaGroupProps> & Loadable.LoadableComponent;
|
|
93
|
+
declare const MediaInline: React.ComponentType<WithIntlProps<{
|
|
69
94
|
collection?: string;
|
|
70
|
-
eventHandlers?:
|
|
95
|
+
eventHandlers?: EventHandlers;
|
|
71
96
|
fallbackMediaNameFetcher?: (id: string) => Promise<string>;
|
|
72
|
-
featureFlags?:
|
|
97
|
+
featureFlags?: MediaFeatureFlags;
|
|
73
98
|
id: string;
|
|
74
99
|
marks?: Array<Mark>;
|
|
75
|
-
providers:
|
|
76
|
-
rendererAppearance?:
|
|
77
|
-
ssr?:
|
|
78
|
-
} &
|
|
79
|
-
declare const MediaSingle: React.ComponentType<
|
|
80
|
-
declare const Mention: React.ComponentType<
|
|
81
|
-
declare const Expand: React.ComponentType<
|
|
100
|
+
providers: ProviderFactory;
|
|
101
|
+
rendererAppearance?: RendererAppearance;
|
|
102
|
+
ssr?: MediaSSR;
|
|
103
|
+
} & WrappedComponentProps & MediaInlineAttrs>> & Loadable.LoadableComponent;
|
|
104
|
+
declare const MediaSingle: React.ComponentType<WithIntlProps<MediaSingleNodeProps & WrappedComponentProps>> & Loadable.LoadableComponent;
|
|
105
|
+
declare const Mention: React.ComponentType<MentionNodeProps> & Loadable.LoadableComponent;
|
|
106
|
+
declare const Expand: React.ComponentType<WithIntlProps<ExpandProps & WrappedComponentProps>> & Loadable.LoadableComponent;
|
|
82
107
|
export declare const nodeToReact: {
|
|
83
108
|
[key: string]: React.ComponentType<React.PropsWithChildren<any>>;
|
|
84
109
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import Loadable from 'react-loadable';
|
|
3
3
|
import type { Fragment, Node, Mark } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
+
import { type EventHandlers } from '@atlaskit/editor-common/ui';
|
|
4
5
|
import Blockquote from './blockquote';
|
|
5
6
|
import BodiedExtension from './bodiedExtension';
|
|
6
7
|
import MultiBodiedExtension from './multiBodiedExtension';
|
|
@@ -23,62 +24,86 @@ import Table from './table';
|
|
|
23
24
|
import { TableCell } from './tableCell';
|
|
24
25
|
import TableRow from './tableRow';
|
|
25
26
|
import UnknownBlock from './unknownBlock';
|
|
26
|
-
import type { NodeComponentsProps } from '../../ui/Renderer/types';
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
27
|
+
import type { NodeComponentsProps, RendererAppearance } from '../../ui/Renderer/types';
|
|
28
|
+
import type { RichMediaLayout, DatasourceAttributeProperties } from '@atlaskit/adf-schema';
|
|
29
|
+
import type { MediaInlineAttrs } from '@atlaskit/editor-common/media-inline';
|
|
30
|
+
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
31
|
+
import type { Diff } from '@atlaskit/editor-common/utils';
|
|
32
|
+
import type { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
33
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
34
|
+
import type { MediaSSR } from '../../types/mediaOptions';
|
|
35
|
+
import type { SmartLinksOptions } from '../../types/smartLinksOptions';
|
|
36
|
+
import type { ExpandProps } from '../../ui/Expand';
|
|
37
|
+
import type { WithSmartCardStorageProps } from '../../ui/SmartCardStorage';
|
|
38
|
+
import type { NodeProps } from '../types';
|
|
39
|
+
import type { Props as CodeBlockNodeProps } from './codeBlock/codeBlock';
|
|
40
|
+
import type { Props as DateNodeProps } from './date';
|
|
41
|
+
import type { Props as DecisionListNodeProps } from './decisionList';
|
|
42
|
+
import type { EmojiProps } from './emoji';
|
|
43
|
+
import type { InlineCardProps } from './inlineCard';
|
|
44
|
+
import type { MediaProps } from './media';
|
|
45
|
+
import type { MediaGroupProps } from './mediaGroup';
|
|
46
|
+
import type { Props as MediaSingleNodeProps } from './mediaSingle';
|
|
47
|
+
import type { Props as MentionNodeProps } from './mention';
|
|
48
|
+
import type { Props as PanelNodeProps } from './panel';
|
|
49
|
+
import type { Props as StatusNodeProps } from './status';
|
|
50
|
+
import type { Props as TaskItemNodeProps } from './taskItem';
|
|
51
|
+
import type { Props as TaskListNodeProps } from './taskList';
|
|
52
|
+
declare const WindowedCodeBlock: React.ComponentType<CodeBlockNodeProps> & Loadable.LoadableComponent;
|
|
53
|
+
declare const CodeBlock: React.ComponentType<WithIntlProps<CodeBlockNodeProps & WrappedComponentProps>> & Loadable.LoadableComponent;
|
|
54
|
+
declare const TaskList: React.ComponentType<TaskListNodeProps> & Loadable.LoadableComponent;
|
|
55
|
+
declare const TaskItem: React.ComponentType<NodeProps<TaskItemNodeProps>> & Loadable.LoadableComponent;
|
|
56
|
+
declare const DecisionList: React.ComponentType<DecisionListNodeProps> & Loadable.LoadableComponent;
|
|
57
|
+
declare const DecisionItem: React.ComponentType<NodeProps> & Loadable.LoadableComponent;
|
|
58
|
+
declare const Date: React.ComponentType<DateNodeProps> & Loadable.LoadableComponent;
|
|
59
|
+
declare const Status: React.ComponentType<StatusNodeProps> & Loadable.LoadableComponent;
|
|
60
|
+
declare const Emoji: React.ComponentType<EmojiProps> & Loadable.LoadableComponent;
|
|
61
|
+
declare const Panel: React.ComponentType<PanelNodeProps> & Loadable.LoadableComponent;
|
|
37
62
|
declare const EmbedCard: React.ComponentType<{
|
|
38
63
|
data?: object;
|
|
39
|
-
eventHandlers?:
|
|
64
|
+
eventHandlers?: EventHandlers;
|
|
40
65
|
isInsideOfBlockNode?: boolean;
|
|
41
66
|
isInsideOfInlineExtension?: boolean;
|
|
42
|
-
layout:
|
|
67
|
+
layout: RichMediaLayout;
|
|
43
68
|
onSetLinkTarget?: (url: string) => "_blank" | undefined;
|
|
44
69
|
originalHeight?: number;
|
|
45
70
|
originalWidth?: number;
|
|
46
71
|
portal?: HTMLElement;
|
|
47
|
-
rendererAppearance?:
|
|
48
|
-
smartLinks?:
|
|
72
|
+
rendererAppearance?: RendererAppearance;
|
|
73
|
+
smartLinks?: SmartLinksOptions;
|
|
49
74
|
url?: string;
|
|
50
75
|
width?: number;
|
|
51
76
|
}> & Loadable.LoadableComponent;
|
|
52
|
-
declare const InlineCard: React.ComponentType<
|
|
77
|
+
declare const InlineCard: React.ComponentType<Diff<InlineCardProps & WithSmartCardStorageProps, WithSmartCardStorageProps>> & Loadable.LoadableComponent;
|
|
53
78
|
declare const BlockCard: React.ComponentType<{
|
|
54
79
|
data?: object;
|
|
55
|
-
datasource?:
|
|
56
|
-
eventHandlers?:
|
|
80
|
+
datasource?: DatasourceAttributeProperties;
|
|
81
|
+
eventHandlers?: EventHandlers;
|
|
57
82
|
isNodeNested?: boolean;
|
|
58
83
|
layout?: string;
|
|
59
84
|
localId?: string;
|
|
60
85
|
onSetLinkTarget?: (url: string) => "_blank" | undefined;
|
|
61
86
|
portal?: HTMLElement;
|
|
62
|
-
rendererAppearance?:
|
|
63
|
-
smartLinks?:
|
|
87
|
+
rendererAppearance?: RendererAppearance;
|
|
88
|
+
smartLinks?: SmartLinksOptions;
|
|
64
89
|
url?: string;
|
|
65
90
|
}> & Loadable.LoadableComponent;
|
|
66
|
-
declare const Media: React.ComponentType<React.PropsWithChildren<
|
|
67
|
-
declare const MediaGroup: React.ComponentType<
|
|
68
|
-
declare const MediaInline: React.ComponentType<
|
|
91
|
+
declare const Media: React.ComponentType<React.PropsWithChildren<MediaProps>> & Loadable.LoadableComponent;
|
|
92
|
+
declare const MediaGroup: React.ComponentType<MediaGroupProps> & Loadable.LoadableComponent;
|
|
93
|
+
declare const MediaInline: React.ComponentType<WithIntlProps<{
|
|
69
94
|
collection?: string;
|
|
70
|
-
eventHandlers?:
|
|
95
|
+
eventHandlers?: EventHandlers;
|
|
71
96
|
fallbackMediaNameFetcher?: (id: string) => Promise<string>;
|
|
72
|
-
featureFlags?:
|
|
97
|
+
featureFlags?: MediaFeatureFlags;
|
|
73
98
|
id: string;
|
|
74
99
|
marks?: Array<Mark>;
|
|
75
|
-
providers:
|
|
76
|
-
rendererAppearance?:
|
|
77
|
-
ssr?:
|
|
78
|
-
} &
|
|
79
|
-
declare const MediaSingle: React.ComponentType<
|
|
80
|
-
declare const Mention: React.ComponentType<
|
|
81
|
-
declare const Expand: React.ComponentType<
|
|
100
|
+
providers: ProviderFactory;
|
|
101
|
+
rendererAppearance?: RendererAppearance;
|
|
102
|
+
ssr?: MediaSSR;
|
|
103
|
+
} & WrappedComponentProps & MediaInlineAttrs>> & Loadable.LoadableComponent;
|
|
104
|
+
declare const MediaSingle: React.ComponentType<WithIntlProps<MediaSingleNodeProps & WrappedComponentProps>> & Loadable.LoadableComponent;
|
|
105
|
+
declare const Mention: React.ComponentType<MentionNodeProps> & Loadable.LoadableComponent;
|
|
106
|
+
declare const Expand: React.ComponentType<WithIntlProps<ExpandProps & WrappedComponentProps>> & Loadable.LoadableComponent;
|
|
82
107
|
export declare const nodeToReact: {
|
|
83
108
|
[key: string]: React.ComponentType<React.PropsWithChildren<any>>;
|
|
84
109
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/renderer",
|
|
3
|
-
"version": "130.2.
|
|
3
|
+
"version": "130.2.15",
|
|
4
4
|
"description": "Renderer component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -51,13 +51,13 @@
|
|
|
51
51
|
"@atlaskit/link-datasource": "^5.2.0",
|
|
52
52
|
"@atlaskit/link-extractors": "^2.4.0",
|
|
53
53
|
"@atlaskit/linking-common": "^9.11.0",
|
|
54
|
-
"@atlaskit/media-card": "^80.
|
|
54
|
+
"@atlaskit/media-card": "^80.3.0",
|
|
55
55
|
"@atlaskit/media-client": "^36.0.0",
|
|
56
|
-
"@atlaskit/media-client-react": "^5.
|
|
57
|
-
"@atlaskit/media-common": "^13.
|
|
58
|
-
"@atlaskit/media-filmstrip": "^51.
|
|
59
|
-
"@atlaskit/media-ui": "^29.
|
|
60
|
-
"@atlaskit/media-viewer": "^53.
|
|
56
|
+
"@atlaskit/media-client-react": "^5.1.0",
|
|
57
|
+
"@atlaskit/media-common": "^13.1.0",
|
|
58
|
+
"@atlaskit/media-filmstrip": "^51.3.0",
|
|
59
|
+
"@atlaskit/media-ui": "^29.1.0",
|
|
60
|
+
"@atlaskit/media-viewer": "^53.1.0",
|
|
61
61
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
62
62
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
63
63
|
"@atlaskit/pragmatic-drag-and-drop": "^1.8.0",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@atlaskit/status": "^4.0.0",
|
|
67
67
|
"@atlaskit/task-decision": "^20.0.0",
|
|
68
68
|
"@atlaskit/theme": "^23.2.0",
|
|
69
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
69
|
+
"@atlaskit/tmp-editor-statsig": "^71.0.0",
|
|
70
70
|
"@atlaskit/tokens": "^13.0.0",
|
|
71
71
|
"@atlaskit/tooltip": "^21.2.0",
|
|
72
72
|
"@atlaskit/visually-hidden": "^3.0.0",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"uuid": "^3.1.0"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
|
-
"@atlaskit/editor-common": "^114.
|
|
82
|
+
"@atlaskit/editor-common": "^114.12.0",
|
|
83
83
|
"@atlaskit/link-provider": "^4.3.0",
|
|
84
84
|
"@atlaskit/media-core": "^37.0.0",
|
|
85
85
|
"react": "^18.2.0",
|