@atlaskit/editor-core 192.6.0 → 193.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 +16 -0
- package/dist/cjs/create-editor/create-plugins-list.js +0 -1
- package/dist/cjs/preset-universal.js +8 -1
- package/dist/cjs/presets/default.js +1 -2
- package/dist/cjs/presets/universal.js +1 -1
- package/dist/cjs/ui/Addon/ClickAreaBlock/index.js +5 -3
- package/dist/cjs/ui/Addon/ClickAreaInline/index.js +4 -3
- package/dist/cjs/ui/Appearance/Comment/Comment.js +207 -10
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/create-editor/create-plugins-list.js +0 -1
- package/dist/es2019/preset-universal.js +2 -1
- package/dist/es2019/presets/default.js +1 -2
- package/dist/es2019/presets/universal.js +1 -1
- package/dist/es2019/ui/Addon/ClickAreaBlock/index.js +4 -4
- package/dist/es2019/ui/Addon/ClickAreaInline/index.js +3 -3
- package/dist/es2019/ui/Appearance/Comment/Comment.js +201 -58
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/create-editor/create-plugins-list.js +0 -1
- package/dist/esm/preset-universal.js +2 -1
- package/dist/esm/presets/default.js +1 -2
- package/dist/esm/presets/universal.js +1 -1
- package/dist/esm/ui/Addon/ClickAreaBlock/index.js +4 -3
- package/dist/esm/ui/Addon/ClickAreaInline/index.js +3 -3
- package/dist/esm/ui/Appearance/Comment/Comment.js +208 -9
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-preset.d.ts +110 -74
- package/dist/types/preset-universal.d.ts +1 -0
- package/dist/types/presets/default.d.ts +52 -156
- package/dist/types/presets/universal.d.ts +110 -74
- package/dist/types/presets/useUniversalPreset.d.ts +110 -74
- package/dist/types-ts4.5/create-editor/create-preset.d.ts +130 -85
- package/dist/types-ts4.5/preset-universal.d.ts +1 -0
- package/dist/types-ts4.5/presets/default.d.ts +54 -180
- package/dist/types-ts4.5/presets/universal.d.ts +130 -85
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +130 -85
- package/docs/4-annotations.tsx +1 -1
- package/package.json +25 -9
- package/docs/editor-use-only.tsx +0 -50
|
@@ -36,6 +36,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
36
36
|
import("@atlaskit/editor-common/types").MaybePluginName<"mention">,
|
|
37
37
|
import("@atlaskit/editor-common/types").MaybePluginName<"caption">,
|
|
38
38
|
import("@atlaskit/editor-common/types").MaybePluginName<"media">,
|
|
39
|
+
import("@atlaskit/editor-common/types").MaybePluginName<"annotation">,
|
|
39
40
|
import("@atlaskit/editor-common/types").MaybePluginName<"grid">,
|
|
40
41
|
import("@atlaskit/editor-common/types").MaybePluginName<"guideline">,
|
|
41
42
|
import("@atlaskit/editor-common/types").MaybePluginName<"expand">,
|
|
@@ -59,7 +60,6 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
59
60
|
"textFormatting",
|
|
60
61
|
"hyperlink",
|
|
61
62
|
import("@atlaskit/editor-common/types").MaybePluginName<"selectionToolbar">,
|
|
62
|
-
import("@atlaskit/editor-common/types").MaybePluginName<"annotation">,
|
|
63
63
|
"clearMarksOnEmptyDoc",
|
|
64
64
|
"blockType",
|
|
65
65
|
import("@atlaskit/editor-common/types").MaybePluginName<"undoRedoPlugin">,
|
|
@@ -751,10 +751,15 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
751
751
|
};
|
|
752
752
|
}, {
|
|
753
753
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
754
|
-
} | undefined
|
|
754
|
+
} | undefined>>,
|
|
755
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
756
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
757
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
758
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
755
759
|
];
|
|
756
760
|
actions: {
|
|
757
761
|
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
762
|
+
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod, targetType?: import("@atlaskit/editor-plugin-annotation").TargetType | undefined, isCommentOnMediaOn?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
758
763
|
};
|
|
759
764
|
}, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined>
|
|
760
765
|
];
|
|
@@ -889,10 +894,15 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
889
894
|
};
|
|
890
895
|
}, {
|
|
891
896
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
892
|
-
} | undefined
|
|
897
|
+
} | undefined>>,
|
|
898
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
899
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
900
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
901
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
893
902
|
];
|
|
894
903
|
actions: {
|
|
895
904
|
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
905
|
+
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod, targetType?: import("@atlaskit/editor-plugin-annotation").TargetType | undefined, isCommentOnMediaOn?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
896
906
|
};
|
|
897
907
|
}, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined>>
|
|
898
908
|
];
|
|
@@ -1685,10 +1695,15 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
1685
1695
|
};
|
|
1686
1696
|
}, {
|
|
1687
1697
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
1688
|
-
} | undefined
|
|
1698
|
+
} | undefined>>,
|
|
1699
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
1700
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
1701
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
1702
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
1689
1703
|
];
|
|
1690
1704
|
actions: {
|
|
1691
1705
|
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
1706
|
+
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod, targetType?: import("@atlaskit/editor-plugin-annotation").TargetType | undefined, isCommentOnMediaOn?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
1692
1707
|
};
|
|
1693
1708
|
}, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined>>,
|
|
1694
1709
|
import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"extension", {
|
|
@@ -2126,10 +2141,15 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
2126
2141
|
};
|
|
2127
2142
|
}, {
|
|
2128
2143
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
2129
|
-
} | undefined
|
|
2144
|
+
} | undefined>>,
|
|
2145
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2146
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2147
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2148
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
2130
2149
|
];
|
|
2131
2150
|
actions: {
|
|
2132
2151
|
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
2152
|
+
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod, targetType?: import("@atlaskit/editor-plugin-annotation").TargetType | undefined, isCommentOnMediaOn?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
2133
2153
|
};
|
|
2134
2154
|
}, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined>
|
|
2135
2155
|
];
|
|
@@ -2883,10 +2903,15 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
2883
2903
|
};
|
|
2884
2904
|
}, {
|
|
2885
2905
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
2886
|
-
} | undefined
|
|
2906
|
+
} | undefined>>,
|
|
2907
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2908
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2909
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2910
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
2887
2911
|
];
|
|
2888
2912
|
actions: {
|
|
2889
2913
|
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
2914
|
+
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod, targetType?: import("@atlaskit/editor-plugin-annotation").TargetType | undefined, isCommentOnMediaOn?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
2890
2915
|
};
|
|
2891
2916
|
}, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined>
|
|
2892
2917
|
];
|
|
@@ -2895,6 +2920,87 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
2895
2920
|
insertMediaAsMediaSingle: import("@atlaskit/editor-plugins/media/types").InsertMediaAsMediaSingle;
|
|
2896
2921
|
};
|
|
2897
2922
|
}, import("@atlaskit/editor-plugins/media/types").MediaOptions | undefined>>,
|
|
2923
|
+
import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"annotation", {
|
|
2924
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined;
|
|
2925
|
+
sharedState: import("@atlaskit/editor-plugin-annotation").InlineCommentPluginState | undefined;
|
|
2926
|
+
dependencies: [
|
|
2927
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
2928
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
2929
|
+
sharedState: {
|
|
2930
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
2931
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
2932
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
2933
|
+
};
|
|
2934
|
+
dependencies: [
|
|
2935
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2936
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2937
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2938
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
2939
|
+
];
|
|
2940
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2941
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>,
|
|
2942
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
2943
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
2944
|
+
dependencies: [
|
|
2945
|
+
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"collabEdit", {
|
|
2946
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions;
|
|
2947
|
+
dependencies: [
|
|
2948
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2949
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2950
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2951
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>,
|
|
2952
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
2953
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
2954
|
+
sharedState: {
|
|
2955
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
2956
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
2957
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
2958
|
+
};
|
|
2959
|
+
dependencies: [
|
|
2960
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2961
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2962
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2963
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
2964
|
+
];
|
|
2965
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2966
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
|
|
2967
|
+
];
|
|
2968
|
+
sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
|
|
2969
|
+
actions: {
|
|
2970
|
+
getAvatarColor: (str: string) => {
|
|
2971
|
+
index: number;
|
|
2972
|
+
color: import("@atlaskit/editor-common/collab").Color;
|
|
2973
|
+
};
|
|
2974
|
+
addInlineCommentMark: (props: {
|
|
2975
|
+
from: number;
|
|
2976
|
+
to: number;
|
|
2977
|
+
mark: import("prosemirror-model").Mark;
|
|
2978
|
+
}) => boolean;
|
|
2979
|
+
};
|
|
2980
|
+
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>
|
|
2981
|
+
];
|
|
2982
|
+
pluginConfiguration?: {
|
|
2983
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
2984
|
+
} | undefined;
|
|
2985
|
+
commands: {
|
|
2986
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2987
|
+
};
|
|
2988
|
+
actions: {
|
|
2989
|
+
applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
2990
|
+
};
|
|
2991
|
+
}, {
|
|
2992
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
2993
|
+
} | undefined>>,
|
|
2994
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2995
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2996
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2997
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
2998
|
+
];
|
|
2999
|
+
actions: {
|
|
3000
|
+
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
3001
|
+
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod, targetType?: import("@atlaskit/editor-plugin-annotation").TargetType | undefined, isCommentOnMediaOn?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
3002
|
+
};
|
|
3003
|
+
}, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined>>,
|
|
2898
3004
|
import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"grid", {
|
|
2899
3005
|
pluginConfiguration: import("@atlaskit/editor-plugin-grid").GridPluginOptions | undefined;
|
|
2900
3006
|
dependencies: [
|
|
@@ -3600,10 +3706,15 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
3600
3706
|
};
|
|
3601
3707
|
}, {
|
|
3602
3708
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
3603
|
-
} | undefined
|
|
3709
|
+
} | undefined>>,
|
|
3710
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
3711
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
3712
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
3713
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
3604
3714
|
];
|
|
3605
3715
|
actions: {
|
|
3606
3716
|
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
3717
|
+
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod, targetType?: import("@atlaskit/editor-plugin-annotation").TargetType | undefined, isCommentOnMediaOn?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
3607
3718
|
};
|
|
3608
3719
|
}, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined>
|
|
3609
3720
|
];
|
|
@@ -3863,82 +3974,6 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
3863
3974
|
}, {
|
|
3864
3975
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
3865
3976
|
}>>,
|
|
3866
|
-
import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"annotation", {
|
|
3867
|
-
pluginConfiguration: import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined;
|
|
3868
|
-
sharedState: import("@atlaskit/editor-plugin-annotation").InlineCommentPluginState | undefined;
|
|
3869
|
-
dependencies: [
|
|
3870
|
-
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
3871
|
-
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
3872
|
-
sharedState: {
|
|
3873
|
-
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
3874
|
-
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
3875
|
-
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
3876
|
-
};
|
|
3877
|
-
dependencies: [
|
|
3878
|
-
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
3879
|
-
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
3880
|
-
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
3881
|
-
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
3882
|
-
];
|
|
3883
|
-
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
3884
|
-
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>,
|
|
3885
|
-
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
3886
|
-
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
3887
|
-
dependencies: [
|
|
3888
|
-
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"collabEdit", {
|
|
3889
|
-
pluginConfiguration: import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions;
|
|
3890
|
-
dependencies: [
|
|
3891
|
-
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
3892
|
-
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
3893
|
-
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
3894
|
-
}, import("@atlaskit/editor-common/types").FeatureFlags>>,
|
|
3895
|
-
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
3896
|
-
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
3897
|
-
sharedState: {
|
|
3898
|
-
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
3899
|
-
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
3900
|
-
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
3901
|
-
};
|
|
3902
|
-
dependencies: [
|
|
3903
|
-
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
3904
|
-
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
3905
|
-
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
3906
|
-
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
3907
|
-
];
|
|
3908
|
-
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
3909
|
-
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
|
|
3910
|
-
];
|
|
3911
|
-
sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
|
|
3912
|
-
actions: {
|
|
3913
|
-
getAvatarColor: (str: string) => {
|
|
3914
|
-
index: number;
|
|
3915
|
-
color: import("@atlaskit/editor-common/collab").Color;
|
|
3916
|
-
};
|
|
3917
|
-
addInlineCommentMark: (props: {
|
|
3918
|
-
from: number;
|
|
3919
|
-
to: number;
|
|
3920
|
-
mark: import("prosemirror-model").Mark;
|
|
3921
|
-
}) => boolean;
|
|
3922
|
-
};
|
|
3923
|
-
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>
|
|
3924
|
-
];
|
|
3925
|
-
pluginConfiguration?: {
|
|
3926
|
-
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
3927
|
-
} | undefined;
|
|
3928
|
-
commands: {
|
|
3929
|
-
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3930
|
-
};
|
|
3931
|
-
actions: {
|
|
3932
|
-
applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
3933
|
-
};
|
|
3934
|
-
}, {
|
|
3935
|
-
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
3936
|
-
} | undefined>>
|
|
3937
|
-
];
|
|
3938
|
-
actions: {
|
|
3939
|
-
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
3940
|
-
};
|
|
3941
|
-
}, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined>>,
|
|
3942
3977
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clearMarksOnEmptyDoc", {}, undefined>,
|
|
3943
3978
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockType", {
|
|
3944
3979
|
pluginConfiguration: import("@atlaskit/editor-plugin-block-type").BlockTypePluginOptions | undefined;
|
|
@@ -4715,10 +4750,15 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
4715
4750
|
};
|
|
4716
4751
|
}, {
|
|
4717
4752
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
4718
|
-
} | undefined
|
|
4753
|
+
} | undefined>>,
|
|
4754
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
4755
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
4756
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
4757
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
4719
4758
|
];
|
|
4720
4759
|
actions: {
|
|
4721
4760
|
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
4761
|
+
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod, targetType?: import("@atlaskit/editor-plugin-annotation").TargetType | undefined, isCommentOnMediaOn?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
4722
4762
|
};
|
|
4723
4763
|
}, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined>
|
|
4724
4764
|
];
|
|
@@ -4853,10 +4893,15 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
4853
4893
|
};
|
|
4854
4894
|
}, {
|
|
4855
4895
|
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
4856
|
-
} | undefined
|
|
4896
|
+
} | undefined>>,
|
|
4897
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
4898
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
4899
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
4900
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
4857
4901
|
];
|
|
4858
4902
|
actions: {
|
|
4859
4903
|
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
4904
|
+
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod, targetType?: import("@atlaskit/editor-plugin-annotation").TargetType | undefined, isCommentOnMediaOn?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
4860
4905
|
};
|
|
4861
4906
|
}, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined>>
|
|
4862
4907
|
];
|