@atlaskit/editor-core 191.0.9 → 191.1.3
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 +14 -0
- package/afm-cc/tsconfig.json +3 -6
- package/dist/cjs/plugins/index.js +1 -8
- package/dist/cjs/presets/universal.js +10 -13
- package/dist/cjs/ui/Addon/click-area-helper.js +2 -0
- package/dist/cjs/ui/Appearance/Comment/Comment.js +6 -3
- package/dist/cjs/ui/Appearance/Comment/Toolbar.js +19 -6
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +6 -12
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/plugins/index.js +1 -2
- package/dist/es2019/presets/universal.js +11 -14
- package/dist/es2019/ui/Addon/click-area-helper.js +2 -0
- package/dist/es2019/ui/Appearance/Comment/Comment.js +6 -3
- package/dist/es2019/ui/Appearance/Comment/Toolbar.js +38 -6
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +4 -10
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/plugins/index.js +1 -2
- package/dist/esm/presets/universal.js +11 -14
- package/dist/esm/ui/Addon/click-area-helper.js +2 -0
- package/dist/esm/ui/Appearance/Comment/Comment.js +6 -3
- package/dist/esm/ui/Appearance/Comment/Toolbar.js +19 -6
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +4 -10
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/plugins/index.d.ts +0 -1
- package/dist/types/presets/default.d.ts +6 -36
- package/dist/types/ui/Appearance/Comment/Toolbar.d.ts +2 -1
- package/dist/types-ts4.5/plugins/index.d.ts +0 -1
- package/dist/types-ts4.5/presets/default.d.ts +6 -36
- package/dist/types-ts4.5/ui/Appearance/Comment/Toolbar.d.ts +2 -1
- package/docs/0-intro.tsx +252 -174
- package/docs/1-legacy-editor.tsx +268 -0
- package/package.json +7 -7
- package/dist/cjs/plugins/avatar-group/index.js +0 -40
- package/dist/cjs/plugins/avatar-group/messages.js +0 -14
- package/dist/cjs/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +0 -49
- package/dist/cjs/plugins/avatar-group/ui/avatars-with-plugin-state.js +0 -42
- package/dist/cjs/plugins/avatar-group/ui/avatars.js +0 -70
- package/dist/cjs/plugins/avatar-group/ui/colored-avatar-item.js +0 -20
- package/dist/cjs/plugins/avatar-group/ui/index.js +0 -9
- package/dist/cjs/plugins/avatar-group/ui/invite-to-edit.js +0 -45
- package/dist/cjs/plugins/avatar-group/ui/styles.js +0 -17
- package/dist/cjs/plugins/avatar-group/ui/to-avatar.js +0 -30
- package/dist/es2019/plugins/avatar-group/index.js +0 -35
- package/dist/es2019/plugins/avatar-group/messages.js +0 -8
- package/dist/es2019/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +0 -53
- package/dist/es2019/plugins/avatar-group/ui/avatars-with-plugin-state.js +0 -38
- package/dist/es2019/plugins/avatar-group/ui/avatars.js +0 -62
- package/dist/es2019/plugins/avatar-group/ui/colored-avatar-item.js +0 -13
- package/dist/es2019/plugins/avatar-group/ui/index.js +0 -2
- package/dist/es2019/plugins/avatar-group/ui/invite-to-edit.js +0 -32
- package/dist/es2019/plugins/avatar-group/ui/styles.js +0 -46
- package/dist/es2019/plugins/avatar-group/ui/to-avatar.js +0 -16
- package/dist/esm/plugins/avatar-group/index.js +0 -33
- package/dist/esm/plugins/avatar-group/messages.js +0 -8
- package/dist/esm/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +0 -42
- package/dist/esm/plugins/avatar-group/ui/avatars-with-plugin-state.js +0 -35
- package/dist/esm/plugins/avatar-group/ui/avatars.js +0 -62
- package/dist/esm/plugins/avatar-group/ui/colored-avatar-item.js +0 -13
- package/dist/esm/plugins/avatar-group/ui/index.js +0 -2
- package/dist/esm/plugins/avatar-group/ui/invite-to-edit.js +0 -34
- package/dist/esm/plugins/avatar-group/ui/styles.js +0 -10
- package/dist/esm/plugins/avatar-group/ui/to-avatar.js +0 -23
- package/dist/types/plugins/avatar-group/index.d.ts +0 -19
- package/dist/types/plugins/avatar-group/messages.d.ts +0 -7
- package/dist/types/plugins/avatar-group/ui/AvatarGroupPluginWrapper.d.ts +0 -18
- package/dist/types/plugins/avatar-group/ui/avatars-with-plugin-state.d.ts +0 -81
- package/dist/types/plugins/avatar-group/ui/avatars.d.ts +0 -17
- package/dist/types/plugins/avatar-group/ui/colored-avatar-item.d.ts +0 -10
- package/dist/types/plugins/avatar-group/ui/index.d.ts +0 -2
- package/dist/types/plugins/avatar-group/ui/invite-to-edit.d.ts +0 -10
- package/dist/types/plugins/avatar-group/ui/styles.d.ts +0 -3
- package/dist/types/plugins/avatar-group/ui/to-avatar.d.ts +0 -30
- package/dist/types-ts4.5/plugins/avatar-group/index.d.ts +0 -19
- package/dist/types-ts4.5/plugins/avatar-group/messages.d.ts +0 -7
- package/dist/types-ts4.5/plugins/avatar-group/ui/AvatarGroupPluginWrapper.d.ts +0 -18
- package/dist/types-ts4.5/plugins/avatar-group/ui/avatars-with-plugin-state.d.ts +0 -97
- package/dist/types-ts4.5/plugins/avatar-group/ui/avatars.d.ts +0 -19
- package/dist/types-ts4.5/plugins/avatar-group/ui/colored-avatar-item.d.ts +0 -12
- package/dist/types-ts4.5/plugins/avatar-group/ui/index.d.ts +0 -2
- package/dist/types-ts4.5/plugins/avatar-group/ui/invite-to-edit.d.ts +0 -10
- package/dist/types-ts4.5/plugins/avatar-group/ui/styles.d.ts +0 -3
- package/dist/types-ts4.5/plugins/avatar-group/ui/to-avatar.d.ts +0 -37
- /package/docs/{1-labs.tsx → 2-labs.tsx} +0 -0
- /package/docs/{2-autoformatting.tsx → 3-autoformatting.tsx} +0 -0
- /package/docs/{3-annotations.tsx → 4-annotations.tsx} +0 -0
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
-
import type { CollabInviteToEditProps } from '@atlaskit/editor-common/collab';
|
|
5
|
-
import type { EventDispatcher } from '../../../event-dispatcher';
|
|
6
|
-
import type { CollabEditPlugin } from '@atlaskit/editor-plugin-collab-edit';
|
|
7
|
-
import type { FeatureFlags, OptionalPlugin, PublicPluginAPI } from '@atlaskit/editor-common/types';
|
|
8
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
9
|
-
export type AvatarsWithPluginStateProps = {
|
|
10
|
-
editorView?: EditorView;
|
|
11
|
-
eventDispatcher?: EventDispatcher;
|
|
12
|
-
featureFlags: FeatureFlags;
|
|
13
|
-
editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
|
|
14
|
-
editorAPI: PublicPluginAPI<[OptionalPlugin<CollabEditPlugin>]> | undefined;
|
|
15
|
-
} & CollabInviteToEditProps;
|
|
16
|
-
declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
17
|
-
editorView?: EditorView | undefined;
|
|
18
|
-
eventDispatcher?: EventDispatcher<any> | undefined;
|
|
19
|
-
featureFlags: FeatureFlags;
|
|
20
|
-
editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
|
|
21
|
-
editorAPI: PublicPluginAPI<[OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"collabEdit", {
|
|
22
|
-
pluginConfiguration: import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions;
|
|
23
|
-
dependencies: [OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
24
|
-
pluginConfiguration: FeatureFlags;
|
|
25
|
-
sharedState: FeatureFlags;
|
|
26
|
-
}, FeatureFlags>>, OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
27
|
-
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
28
|
-
sharedState: {
|
|
29
|
-
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
30
|
-
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
31
|
-
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
32
|
-
};
|
|
33
|
-
dependencies: [OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
34
|
-
pluginConfiguration: FeatureFlags;
|
|
35
|
-
sharedState: FeatureFlags;
|
|
36
|
-
}, FeatureFlags>>];
|
|
37
|
-
actions: EditorAnalyticsAPI;
|
|
38
|
-
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
|
|
39
|
-
sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
|
|
40
|
-
actions: {
|
|
41
|
-
getAvatarColor: (str: string) => {
|
|
42
|
-
index: number;
|
|
43
|
-
color: import("@atlaskit/editor-common/collab").Color;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>>]> | undefined;
|
|
47
|
-
} & CollabInviteToEditProps & WrappedComponentProps<"intl">>> & {
|
|
48
|
-
WrappedComponent: React.ComponentType<{
|
|
49
|
-
editorView?: EditorView | undefined;
|
|
50
|
-
eventDispatcher?: EventDispatcher<any> | undefined;
|
|
51
|
-
featureFlags: FeatureFlags;
|
|
52
|
-
editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
|
|
53
|
-
editorAPI: PublicPluginAPI<[OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"collabEdit", {
|
|
54
|
-
pluginConfiguration: import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions;
|
|
55
|
-
dependencies: [OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
56
|
-
pluginConfiguration: FeatureFlags;
|
|
57
|
-
sharedState: FeatureFlags;
|
|
58
|
-
}, FeatureFlags>>, OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
59
|
-
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
60
|
-
sharedState: {
|
|
61
|
-
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
62
|
-
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
63
|
-
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
64
|
-
};
|
|
65
|
-
dependencies: [OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
66
|
-
pluginConfiguration: FeatureFlags;
|
|
67
|
-
sharedState: FeatureFlags;
|
|
68
|
-
}, FeatureFlags>>];
|
|
69
|
-
actions: EditorAnalyticsAPI;
|
|
70
|
-
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
|
|
71
|
-
sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
|
|
72
|
-
actions: {
|
|
73
|
-
getAvatarColor: (str: string) => {
|
|
74
|
-
index: number;
|
|
75
|
-
color: import("@atlaskit/editor-common/collab").Color;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>>]> | undefined;
|
|
79
|
-
} & CollabInviteToEditProps & WrappedComponentProps<"intl">>;
|
|
80
|
-
};
|
|
81
|
-
export default _default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
-
import type { CollabEditPlugin, ReadOnlyParticipants } from '@atlaskit/editor-plugin-collab-edit';
|
|
5
|
-
import type { CollabParticipant } from '@atlaskit/editor-common/collab';
|
|
6
|
-
import type { FeatureFlags, OptionalPlugin, PublicPluginAPI } from '@atlaskit/editor-common/types';
|
|
7
|
-
import { type EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
8
|
-
export interface AvatarsProps {
|
|
9
|
-
sessionId?: string;
|
|
10
|
-
participants: ReadOnlyParticipants | undefined;
|
|
11
|
-
editorView?: EditorView;
|
|
12
|
-
featureFlags: FeatureFlags;
|
|
13
|
-
editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
|
|
14
|
-
editorAPI: PublicPluginAPI<[OptionalPlugin<CollabEditPlugin>]> | undefined;
|
|
15
|
-
}
|
|
16
|
-
export declare const scrollToCollabCursor: (editorView: EditorView, participants: CollabParticipant[], sessionId: string | undefined, index: number, editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => void;
|
|
17
|
-
export declare const Avatars: React.FC<AvatarsProps>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
3
|
-
import type { OptionalPlugin, PublicPluginAPI } from '@atlaskit/editor-common/types';
|
|
4
|
-
import type { CollabEditPlugin } from '@atlaskit/editor-plugin-collab-edit';
|
|
5
|
-
export interface ColoredAvatarItemProps {
|
|
6
|
-
sessionId: string;
|
|
7
|
-
name: string;
|
|
8
|
-
api: PublicPluginAPI<[OptionalPlugin<CollabEditPlugin>]> | undefined;
|
|
9
|
-
}
|
|
10
|
-
export declare const ColoredAvatarItem: (props: ColoredAvatarItemProps) => jsx.JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import type { InviteToEditComponentProps } from '@atlaskit/editor-common/collab';
|
|
4
|
-
export interface InviteToEditButtonProps {
|
|
5
|
-
onClick?: React.MouseEventHandler;
|
|
6
|
-
selected?: boolean;
|
|
7
|
-
Component?: React.ComponentType<InviteToEditComponentProps>;
|
|
8
|
-
title: string;
|
|
9
|
-
}
|
|
10
|
-
export declare const InviteToEditButton: React.FC<InviteToEditButtonProps>;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { AvatarProps } from '@atlaskit/avatar-group';
|
|
2
|
-
import type { CollabParticipant } from '@atlaskit/editor-common/collab';
|
|
3
|
-
import type { OptionalPlugin, PublicPluginAPI } from '@atlaskit/editor-common/types';
|
|
4
|
-
declare const _default: import("memoize-one").MemoizedFn<(participant: CollabParticipant, api: PublicPluginAPI<[OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"collabEdit", {
|
|
5
|
-
pluginConfiguration: import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions;
|
|
6
|
-
dependencies: [OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
7
|
-
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
8
|
-
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
9
|
-
}, import("@atlaskit/editor-common/types").FeatureFlags>>, OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
10
|
-
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
11
|
-
sharedState: {
|
|
12
|
-
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
13
|
-
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
14
|
-
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
15
|
-
};
|
|
16
|
-
dependencies: [OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
17
|
-
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
18
|
-
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
19
|
-
}, import("@atlaskit/editor-common/types").FeatureFlags>>];
|
|
20
|
-
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
21
|
-
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>];
|
|
22
|
-
sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
|
|
23
|
-
actions: {
|
|
24
|
-
getAvatarColor: (str: string) => {
|
|
25
|
-
index: number;
|
|
26
|
-
color: import("@atlaskit/editor-common/collab").Color;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>>]> | undefined) => AvatarProps>;
|
|
30
|
-
export default _default;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
|
|
3
|
-
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
4
|
-
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
5
|
-
import type { CollabEditPlugin } from '@atlaskit/editor-plugin-collab-edit';
|
|
6
|
-
type Config = {
|
|
7
|
-
collabEdit?: CollabEditOptions;
|
|
8
|
-
takeFullWidth: boolean;
|
|
9
|
-
};
|
|
10
|
-
export type AvatarGroupPlugin = NextEditorPlugin<'avatarGroup', {
|
|
11
|
-
pluginConfiguration: Config;
|
|
12
|
-
dependencies: [
|
|
13
|
-
OptionalPlugin<FeatureFlagsPlugin>,
|
|
14
|
-
OptionalPlugin<AnalyticsPlugin>,
|
|
15
|
-
OptionalPlugin<CollabEditPlugin>
|
|
16
|
-
];
|
|
17
|
-
}>;
|
|
18
|
-
declare const avatarGroup: AvatarGroupPlugin;
|
|
19
|
-
export default avatarGroup;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { jsx } from '@emotion/react';
|
|
2
|
-
import type { EventDispatcher } from '../../../event-dispatcher';
|
|
3
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
-
import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
|
|
5
|
-
import type { DispatchAnalyticsEvent, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
6
|
-
import type { ExtractInjectionAPI, FeatureFlags } from '@atlaskit/editor-common/types';
|
|
7
|
-
import type { AvatarGroupPlugin } from '..';
|
|
8
|
-
declare const AvatarGroupPluginWrapper: (props: {
|
|
9
|
-
collabEdit?: CollabEditOptions | undefined;
|
|
10
|
-
editorView: EditorView;
|
|
11
|
-
eventDispatcher: EventDispatcher<any>;
|
|
12
|
-
dispatchAnalyticsEvent?: DispatchAnalyticsEvent | undefined;
|
|
13
|
-
takeFullWidth: boolean;
|
|
14
|
-
featureFlags: FeatureFlags;
|
|
15
|
-
editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
|
|
16
|
-
editorAPI: ExtractInjectionAPI<AvatarGroupPlugin> | undefined;
|
|
17
|
-
}) => jsx.JSX.Element;
|
|
18
|
-
export default AvatarGroupPluginWrapper;
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
-
import type { CollabInviteToEditProps } from '@atlaskit/editor-common/collab';
|
|
5
|
-
import type { EventDispatcher } from '../../../event-dispatcher';
|
|
6
|
-
import type { CollabEditPlugin } from '@atlaskit/editor-plugin-collab-edit';
|
|
7
|
-
import type { FeatureFlags, OptionalPlugin, PublicPluginAPI } from '@atlaskit/editor-common/types';
|
|
8
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
9
|
-
export type AvatarsWithPluginStateProps = {
|
|
10
|
-
editorView?: EditorView;
|
|
11
|
-
eventDispatcher?: EventDispatcher;
|
|
12
|
-
featureFlags: FeatureFlags;
|
|
13
|
-
editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
|
|
14
|
-
editorAPI: PublicPluginAPI<[
|
|
15
|
-
OptionalPlugin<CollabEditPlugin>
|
|
16
|
-
]> | undefined;
|
|
17
|
-
} & CollabInviteToEditProps;
|
|
18
|
-
declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
19
|
-
editorView?: EditorView | undefined;
|
|
20
|
-
eventDispatcher?: EventDispatcher<any> | undefined;
|
|
21
|
-
featureFlags: FeatureFlags;
|
|
22
|
-
editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
|
|
23
|
-
editorAPI: PublicPluginAPI<[
|
|
24
|
-
OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"collabEdit", {
|
|
25
|
-
pluginConfiguration: import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions;
|
|
26
|
-
dependencies: [
|
|
27
|
-
OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
28
|
-
pluginConfiguration: FeatureFlags;
|
|
29
|
-
sharedState: FeatureFlags;
|
|
30
|
-
}, FeatureFlags>>,
|
|
31
|
-
OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
32
|
-
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
33
|
-
sharedState: {
|
|
34
|
-
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
35
|
-
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
36
|
-
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
37
|
-
};
|
|
38
|
-
dependencies: [
|
|
39
|
-
OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
40
|
-
pluginConfiguration: FeatureFlags;
|
|
41
|
-
sharedState: FeatureFlags;
|
|
42
|
-
}, FeatureFlags>>
|
|
43
|
-
];
|
|
44
|
-
actions: EditorAnalyticsAPI;
|
|
45
|
-
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
|
|
46
|
-
];
|
|
47
|
-
sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
|
|
48
|
-
actions: {
|
|
49
|
-
getAvatarColor: (str: string) => {
|
|
50
|
-
index: number;
|
|
51
|
-
color: import("@atlaskit/editor-common/collab").Color;
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>>
|
|
55
|
-
]> | undefined;
|
|
56
|
-
} & CollabInviteToEditProps & WrappedComponentProps<"intl">>> & {
|
|
57
|
-
WrappedComponent: React.ComponentType<{
|
|
58
|
-
editorView?: EditorView | undefined;
|
|
59
|
-
eventDispatcher?: EventDispatcher<any> | undefined;
|
|
60
|
-
featureFlags: FeatureFlags;
|
|
61
|
-
editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
|
|
62
|
-
editorAPI: PublicPluginAPI<[
|
|
63
|
-
OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"collabEdit", {
|
|
64
|
-
pluginConfiguration: import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions;
|
|
65
|
-
dependencies: [
|
|
66
|
-
OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
67
|
-
pluginConfiguration: FeatureFlags;
|
|
68
|
-
sharedState: FeatureFlags;
|
|
69
|
-
}, FeatureFlags>>,
|
|
70
|
-
OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
71
|
-
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
72
|
-
sharedState: {
|
|
73
|
-
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
74
|
-
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
75
|
-
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
76
|
-
};
|
|
77
|
-
dependencies: [
|
|
78
|
-
OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
79
|
-
pluginConfiguration: FeatureFlags;
|
|
80
|
-
sharedState: FeatureFlags;
|
|
81
|
-
}, FeatureFlags>>
|
|
82
|
-
];
|
|
83
|
-
actions: EditorAnalyticsAPI;
|
|
84
|
-
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
|
|
85
|
-
];
|
|
86
|
-
sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
|
|
87
|
-
actions: {
|
|
88
|
-
getAvatarColor: (str: string) => {
|
|
89
|
-
index: number;
|
|
90
|
-
color: import("@atlaskit/editor-common/collab").Color;
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>>
|
|
94
|
-
]> | undefined;
|
|
95
|
-
} & CollabInviteToEditProps & WrappedComponentProps<"intl">>;
|
|
96
|
-
};
|
|
97
|
-
export default _default;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
-
import type { CollabEditPlugin, ReadOnlyParticipants } from '@atlaskit/editor-plugin-collab-edit';
|
|
5
|
-
import type { CollabParticipant } from '@atlaskit/editor-common/collab';
|
|
6
|
-
import type { FeatureFlags, OptionalPlugin, PublicPluginAPI } from '@atlaskit/editor-common/types';
|
|
7
|
-
import { type EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
8
|
-
export interface AvatarsProps {
|
|
9
|
-
sessionId?: string;
|
|
10
|
-
participants: ReadOnlyParticipants | undefined;
|
|
11
|
-
editorView?: EditorView;
|
|
12
|
-
featureFlags: FeatureFlags;
|
|
13
|
-
editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
|
|
14
|
-
editorAPI: PublicPluginAPI<[
|
|
15
|
-
OptionalPlugin<CollabEditPlugin>
|
|
16
|
-
]> | undefined;
|
|
17
|
-
}
|
|
18
|
-
export declare const scrollToCollabCursor: (editorView: EditorView, participants: CollabParticipant[], sessionId: string | undefined, index: number, editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => void;
|
|
19
|
-
export declare const Avatars: React.FC<AvatarsProps>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import { jsx } from '@emotion/react';
|
|
3
|
-
import type { OptionalPlugin, PublicPluginAPI } from '@atlaskit/editor-common/types';
|
|
4
|
-
import type { CollabEditPlugin } from '@atlaskit/editor-plugin-collab-edit';
|
|
5
|
-
export interface ColoredAvatarItemProps {
|
|
6
|
-
sessionId: string;
|
|
7
|
-
name: string;
|
|
8
|
-
api: PublicPluginAPI<[
|
|
9
|
-
OptionalPlugin<CollabEditPlugin>
|
|
10
|
-
]> | undefined;
|
|
11
|
-
}
|
|
12
|
-
export declare const ColoredAvatarItem: (props: ColoredAvatarItemProps) => jsx.JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import type { InviteToEditComponentProps } from '@atlaskit/editor-common/collab';
|
|
4
|
-
export interface InviteToEditButtonProps {
|
|
5
|
-
onClick?: React.MouseEventHandler;
|
|
6
|
-
selected?: boolean;
|
|
7
|
-
Component?: React.ComponentType<InviteToEditComponentProps>;
|
|
8
|
-
title: string;
|
|
9
|
-
}
|
|
10
|
-
export declare const InviteToEditButton: React.FC<InviteToEditButtonProps>;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { AvatarProps } from '@atlaskit/avatar-group';
|
|
2
|
-
import type { CollabParticipant } from '@atlaskit/editor-common/collab';
|
|
3
|
-
import type { OptionalPlugin, PublicPluginAPI } from '@atlaskit/editor-common/types';
|
|
4
|
-
declare const _default: import("memoize-one").MemoizedFn<(participant: CollabParticipant, api: PublicPluginAPI<[
|
|
5
|
-
OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"collabEdit", {
|
|
6
|
-
pluginConfiguration: import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions;
|
|
7
|
-
dependencies: [
|
|
8
|
-
OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
9
|
-
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
10
|
-
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
11
|
-
}, import("@atlaskit/editor-common/types").FeatureFlags>>,
|
|
12
|
-
OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
13
|
-
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
14
|
-
sharedState: {
|
|
15
|
-
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
16
|
-
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
17
|
-
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
18
|
-
};
|
|
19
|
-
dependencies: [
|
|
20
|
-
OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
21
|
-
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
22
|
-
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
23
|
-
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
24
|
-
];
|
|
25
|
-
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
26
|
-
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
|
|
27
|
-
];
|
|
28
|
-
sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
|
|
29
|
-
actions: {
|
|
30
|
-
getAvatarColor: (str: string) => {
|
|
31
|
-
index: number;
|
|
32
|
-
color: import("@atlaskit/editor-common/collab").Color;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>>
|
|
36
|
-
]> | undefined) => AvatarProps>;
|
|
37
|
-
export default _default;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|