@atlaskit/editor-core 193.5.3 → 193.5.6
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 +13 -0
- package/dist/cjs/ui/Appearance/Comment/Comment.js +6 -6
- package/dist/cjs/ui/ContentStyles/extension.js +4 -2
- package/dist/cjs/ui/WithHelpTrigger/index.js +2 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/Appearance/Comment/Comment.js +6 -6
- package/dist/es2019/ui/ContentStyles/extension.js +21 -13
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/Appearance/Comment/Comment.js +6 -6
- package/dist/esm/ui/ContentStyles/extension.js +5 -3
- package/dist/esm/ui/WithHelpTrigger/index.js +2 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/ReactEditorView.d.ts +1 -0
- package/dist/types/create-editor/create-preset.d.ts +234 -5
- package/dist/types/presets/default.d.ts +186 -4
- package/dist/types/presets/universal.d.ts +234 -5
- package/dist/types/presets/useUniversalPreset.d.ts +234 -5
- package/dist/types/ui/WithHelpTrigger/index.d.ts +4 -0
- package/dist/types-ts4.5/create-editor/ReactEditorView.d.ts +1 -0
- package/dist/types-ts4.5/create-editor/create-preset.d.ts +269 -0
- package/dist/types-ts4.5/presets/default.d.ts +214 -0
- package/dist/types-ts4.5/presets/universal.d.ts +269 -0
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +269 -0
- package/dist/types-ts4.5/ui/WithHelpTrigger/index.d.ts +4 -0
- package/package.json +8 -8
|
@@ -473,6 +473,58 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
473
473
|
setProvider: (config: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
474
474
|
};
|
|
475
475
|
}, import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined>>,
|
|
476
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
477
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
478
|
+
dependencies: [
|
|
479
|
+
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"collabEdit", {
|
|
480
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions;
|
|
481
|
+
dependencies: [
|
|
482
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
483
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
484
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
485
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>,
|
|
486
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
487
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
488
|
+
sharedState: {
|
|
489
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
490
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
491
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
492
|
+
};
|
|
493
|
+
dependencies: [
|
|
494
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
495
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
496
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
497
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
498
|
+
];
|
|
499
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
500
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
|
|
501
|
+
];
|
|
502
|
+
sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
|
|
503
|
+
actions: {
|
|
504
|
+
getAvatarColor: (str: string) => {
|
|
505
|
+
index: number;
|
|
506
|
+
color: import("@atlaskit/editor-common/collab").Color;
|
|
507
|
+
};
|
|
508
|
+
addInlineCommentMark: (props: {
|
|
509
|
+
from: number;
|
|
510
|
+
to: number;
|
|
511
|
+
mark: import("prosemirror-model").Mark;
|
|
512
|
+
}) => boolean;
|
|
513
|
+
};
|
|
514
|
+
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>
|
|
515
|
+
];
|
|
516
|
+
pluginConfiguration?: {
|
|
517
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
518
|
+
} | undefined;
|
|
519
|
+
commands: {
|
|
520
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
521
|
+
};
|
|
522
|
+
actions: {
|
|
523
|
+
applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
524
|
+
};
|
|
525
|
+
}, {
|
|
526
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
527
|
+
} | undefined>>,
|
|
476
528
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"guideline", {
|
|
477
529
|
dependencies: [
|
|
478
530
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
|
|
@@ -761,6 +813,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
761
813
|
actions: {
|
|
762
814
|
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
763
815
|
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;
|
|
816
|
+
showCommentForBlockNode: (node: import("prosemirror-model").Node | null) => import("@atlaskit/editor-common/types").Command | undefined;
|
|
764
817
|
};
|
|
765
818
|
}, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined>>
|
|
766
819
|
];
|
|
@@ -904,6 +957,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
904
957
|
actions: {
|
|
905
958
|
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
906
959
|
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;
|
|
960
|
+
showCommentForBlockNode: (node: import("prosemirror-model").Node | null) => import("@atlaskit/editor-common/types").Command | undefined;
|
|
907
961
|
};
|
|
908
962
|
}, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined>>
|
|
909
963
|
];
|
|
@@ -1705,6 +1759,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
1705
1759
|
actions: {
|
|
1706
1760
|
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
1707
1761
|
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;
|
|
1762
|
+
showCommentForBlockNode: (node: import("prosemirror-model").Node | null) => import("@atlaskit/editor-common/types").Command | undefined;
|
|
1708
1763
|
};
|
|
1709
1764
|
}, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined>>,
|
|
1710
1765
|
import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"extension", {
|
|
@@ -1863,6 +1918,58 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
1863
1918
|
setProvider: (config: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1864
1919
|
};
|
|
1865
1920
|
}, import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined>>,
|
|
1921
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
1922
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
1923
|
+
dependencies: [
|
|
1924
|
+
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"collabEdit", {
|
|
1925
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions;
|
|
1926
|
+
dependencies: [
|
|
1927
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
1928
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
1929
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
1930
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>,
|
|
1931
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
1932
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
1933
|
+
sharedState: {
|
|
1934
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
1935
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
1936
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
1937
|
+
};
|
|
1938
|
+
dependencies: [
|
|
1939
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
1940
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
1941
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
1942
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
1943
|
+
];
|
|
1944
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
1945
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
|
|
1946
|
+
];
|
|
1947
|
+
sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
|
|
1948
|
+
actions: {
|
|
1949
|
+
getAvatarColor: (str: string) => {
|
|
1950
|
+
index: number;
|
|
1951
|
+
color: import("@atlaskit/editor-common/collab").Color;
|
|
1952
|
+
};
|
|
1953
|
+
addInlineCommentMark: (props: {
|
|
1954
|
+
from: number;
|
|
1955
|
+
to: number;
|
|
1956
|
+
mark: import("prosemirror-model").Mark;
|
|
1957
|
+
}) => boolean;
|
|
1958
|
+
};
|
|
1959
|
+
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>
|
|
1960
|
+
];
|
|
1961
|
+
pluginConfiguration?: {
|
|
1962
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
1963
|
+
} | undefined;
|
|
1964
|
+
commands: {
|
|
1965
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
1966
|
+
};
|
|
1967
|
+
actions: {
|
|
1968
|
+
applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
1969
|
+
};
|
|
1970
|
+
}, {
|
|
1971
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
1972
|
+
} | undefined>>,
|
|
1866
1973
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"guideline", {
|
|
1867
1974
|
dependencies: [
|
|
1868
1975
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
|
|
@@ -2151,6 +2258,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
2151
2258
|
actions: {
|
|
2152
2259
|
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
2153
2260
|
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;
|
|
2261
|
+
showCommentForBlockNode: (node: import("prosemirror-model").Node | null) => import("@atlaskit/editor-common/types").Command | undefined;
|
|
2154
2262
|
};
|
|
2155
2263
|
}, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined>>
|
|
2156
2264
|
];
|
|
@@ -2625,6 +2733,58 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
2625
2733
|
setProvider: (config: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2626
2734
|
};
|
|
2627
2735
|
}, import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined>>,
|
|
2736
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
2737
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
2738
|
+
dependencies: [
|
|
2739
|
+
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"collabEdit", {
|
|
2740
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions;
|
|
2741
|
+
dependencies: [
|
|
2742
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2743
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2744
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2745
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>,
|
|
2746
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
2747
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
2748
|
+
sharedState: {
|
|
2749
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
2750
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
2751
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
2752
|
+
};
|
|
2753
|
+
dependencies: [
|
|
2754
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
2755
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2756
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
2757
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
2758
|
+
];
|
|
2759
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
2760
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
|
|
2761
|
+
];
|
|
2762
|
+
sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
|
|
2763
|
+
actions: {
|
|
2764
|
+
getAvatarColor: (str: string) => {
|
|
2765
|
+
index: number;
|
|
2766
|
+
color: import("@atlaskit/editor-common/collab").Color;
|
|
2767
|
+
};
|
|
2768
|
+
addInlineCommentMark: (props: {
|
|
2769
|
+
from: number;
|
|
2770
|
+
to: number;
|
|
2771
|
+
mark: import("prosemirror-model").Mark;
|
|
2772
|
+
}) => boolean;
|
|
2773
|
+
};
|
|
2774
|
+
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>
|
|
2775
|
+
];
|
|
2776
|
+
pluginConfiguration?: {
|
|
2777
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
2778
|
+
} | undefined;
|
|
2779
|
+
commands: {
|
|
2780
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2781
|
+
};
|
|
2782
|
+
actions: {
|
|
2783
|
+
applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
2784
|
+
};
|
|
2785
|
+
}, {
|
|
2786
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
2787
|
+
} | undefined>>,
|
|
2628
2788
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"guideline", {
|
|
2629
2789
|
dependencies: [
|
|
2630
2790
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
|
|
@@ -2913,6 +3073,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
2913
3073
|
actions: {
|
|
2914
3074
|
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
2915
3075
|
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;
|
|
3076
|
+
showCommentForBlockNode: (node: import("prosemirror-model").Node | null) => import("@atlaskit/editor-common/types").Command | undefined;
|
|
2916
3077
|
};
|
|
2917
3078
|
}, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined>>
|
|
2918
3079
|
];
|
|
@@ -3000,6 +3161,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
3000
3161
|
actions: {
|
|
3001
3162
|
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
3002
3163
|
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;
|
|
3164
|
+
showCommentForBlockNode: (node: import("prosemirror-model").Node | null) => import("@atlaskit/editor-common/types").Command | undefined;
|
|
3003
3165
|
};
|
|
3004
3166
|
}, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined>>,
|
|
3005
3167
|
import("@atlaskit/editor-common/types").MaybePlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"grid", {
|
|
@@ -3438,6 +3600,58 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
3438
3600
|
setProvider: (config: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3439
3601
|
};
|
|
3440
3602
|
}, import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined>>,
|
|
3603
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
3604
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
3605
|
+
dependencies: [
|
|
3606
|
+
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"collabEdit", {
|
|
3607
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions;
|
|
3608
|
+
dependencies: [
|
|
3609
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
3610
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
3611
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
3612
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>,
|
|
3613
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
3614
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
3615
|
+
sharedState: {
|
|
3616
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
3617
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
3618
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
3619
|
+
};
|
|
3620
|
+
dependencies: [
|
|
3621
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
3622
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
3623
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
3624
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
3625
|
+
];
|
|
3626
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
3627
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
|
|
3628
|
+
];
|
|
3629
|
+
sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
|
|
3630
|
+
actions: {
|
|
3631
|
+
getAvatarColor: (str: string) => {
|
|
3632
|
+
index: number;
|
|
3633
|
+
color: import("@atlaskit/editor-common/collab").Color;
|
|
3634
|
+
};
|
|
3635
|
+
addInlineCommentMark: (props: {
|
|
3636
|
+
from: number;
|
|
3637
|
+
to: number;
|
|
3638
|
+
mark: import("prosemirror-model").Mark;
|
|
3639
|
+
}) => boolean;
|
|
3640
|
+
};
|
|
3641
|
+
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>
|
|
3642
|
+
];
|
|
3643
|
+
pluginConfiguration?: {
|
|
3644
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
3645
|
+
} | undefined;
|
|
3646
|
+
commands: {
|
|
3647
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
3648
|
+
};
|
|
3649
|
+
actions: {
|
|
3650
|
+
applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
3651
|
+
};
|
|
3652
|
+
}, {
|
|
3653
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
3654
|
+
} | undefined>>,
|
|
3441
3655
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"guideline", {
|
|
3442
3656
|
dependencies: [
|
|
3443
3657
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
|
|
@@ -3726,6 +3940,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
3726
3940
|
actions: {
|
|
3727
3941
|
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
3728
3942
|
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;
|
|
3943
|
+
showCommentForBlockNode: (node: import("prosemirror-model").Node | null) => import("@atlaskit/editor-common/types").Command | undefined;
|
|
3729
3944
|
};
|
|
3730
3945
|
}, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined>>
|
|
3731
3946
|
];
|
|
@@ -4482,6 +4697,58 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
4482
4697
|
setProvider: (config: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
4483
4698
|
};
|
|
4484
4699
|
}, import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined>>,
|
|
4700
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
4701
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
|
|
4702
|
+
dependencies: [
|
|
4703
|
+
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"collabEdit", {
|
|
4704
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions;
|
|
4705
|
+
dependencies: [
|
|
4706
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
4707
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
4708
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
4709
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>,
|
|
4710
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
4711
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
4712
|
+
sharedState: {
|
|
4713
|
+
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
4714
|
+
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
4715
|
+
performanceTracking: import("@atlaskit/editor-common/types").PerformanceTracking | undefined;
|
|
4716
|
+
};
|
|
4717
|
+
dependencies: [
|
|
4718
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
4719
|
+
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
4720
|
+
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
4721
|
+
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
4722
|
+
];
|
|
4723
|
+
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
4724
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>
|
|
4725
|
+
];
|
|
4726
|
+
sharedState: import("@atlaskit/editor-plugin-collab-edit").CollabEditPluginSharedState;
|
|
4727
|
+
actions: {
|
|
4728
|
+
getAvatarColor: (str: string) => {
|
|
4729
|
+
index: number;
|
|
4730
|
+
color: import("@atlaskit/editor-common/collab").Color;
|
|
4731
|
+
};
|
|
4732
|
+
addInlineCommentMark: (props: {
|
|
4733
|
+
from: number;
|
|
4734
|
+
to: number;
|
|
4735
|
+
mark: import("prosemirror-model").Mark;
|
|
4736
|
+
}) => boolean;
|
|
4737
|
+
};
|
|
4738
|
+
}, import("@atlaskit/editor-plugin-collab-edit").PrivateCollabEditOptions>
|
|
4739
|
+
];
|
|
4740
|
+
pluginConfiguration?: {
|
|
4741
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
4742
|
+
} | undefined;
|
|
4743
|
+
commands: {
|
|
4744
|
+
updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
4745
|
+
};
|
|
4746
|
+
actions: {
|
|
4747
|
+
applyViewModeStepAt: (tr: import("prosemirror-state").Transaction) => boolean;
|
|
4748
|
+
};
|
|
4749
|
+
}, {
|
|
4750
|
+
mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
|
|
4751
|
+
} | undefined>>,
|
|
4485
4752
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"guideline", {
|
|
4486
4753
|
dependencies: [
|
|
4487
4754
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"width", {
|
|
@@ -4770,6 +5037,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
4770
5037
|
actions: {
|
|
4771
5038
|
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
4772
5039
|
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;
|
|
5040
|
+
showCommentForBlockNode: (node: import("prosemirror-model").Node | null) => import("@atlaskit/editor-common/types").Command | undefined;
|
|
4773
5041
|
};
|
|
4774
5042
|
}, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined>>
|
|
4775
5043
|
];
|
|
@@ -4913,6 +5181,7 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
|
|
|
4913
5181
|
actions: {
|
|
4914
5182
|
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
4915
5183
|
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;
|
|
5184
|
+
showCommentForBlockNode: (node: import("prosemirror-model").Node | null) => import("@atlaskit/editor-common/types").Command | undefined;
|
|
4916
5185
|
};
|
|
4917
5186
|
}, import("@atlaskit/editor-plugin-annotation").AnnotationProviders | undefined>>
|
|
4918
5187
|
];
|