@atlaskit/editor-core 204.5.2 → 204.5.4
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 +19 -0
- package/dist/cjs/composable-editor/editor-internal.js +2 -1
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +4 -1
- package/dist/cjs/ui/Appearance/FullPage/getEditorViewModeSync.js +43 -0
- package/dist/cjs/ui/ContentStyles/index.js +10 -2
- package/dist/cjs/ui/ContentStyles/layout.js +1 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/editor-internal.js +2 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPage.js +4 -1
- package/dist/es2019/ui/Appearance/FullPage/getEditorViewModeSync.js +33 -0
- package/dist/es2019/ui/ContentStyles/index.js +10 -0
- package/dist/es2019/ui/ContentStyles/layout.js +1 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/editor-internal.js +2 -1
- package/dist/esm/ui/Appearance/FullPage/FullPage.js +4 -1
- package/dist/esm/ui/Appearance/FullPage/getEditorViewModeSync.js +36 -0
- package/dist/esm/ui/ContentStyles/index.js +10 -2
- package/dist/esm/ui/ContentStyles/layout.js +1 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-universal-preset.d.ts +23 -15
- package/dist/types/presets/universal.d.ts +23 -15
- package/dist/types/presets/useUniversalPreset.d.ts +23 -15
- package/dist/types/types/editor-appearance-component.d.ts +2 -0
- package/dist/types/ui/Appearance/FullPage/FullPage.d.ts +1 -2
- package/dist/types/ui/Appearance/FullPage/getEditorViewModeSync.d.ts +3 -0
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +23 -15
- package/dist/types-ts4.5/presets/universal.d.ts +23 -15
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +23 -15
- package/dist/types-ts4.5/types/editor-appearance-component.d.ts +2 -0
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPage.d.ts +1 -2
- package/dist/types-ts4.5/ui/Appearance/FullPage/getEditorViewModeSync.d.ts +3 -0
- package/package.json +19 -12
|
@@ -117,6 +117,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
117
117
|
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
118
118
|
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugins/annotation").InlineCommentInputMethod, targetType?: import("@atlaskit/editor-plugins/annotation").TargetType | undefined, targetNodeId?: string | undefined, isOpeningMediaCommentFromToolbar?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
119
119
|
showCommentForBlockNode: (node: import("prosemirror-model").Node | null, viewMethod?: import("@atlaskit/editor-common/analytics").VIEW_METHOD | undefined, isOpeningMediaCommentFromToolbar?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
120
|
+
hasAnyUnResolvedAnnotationInPage: (state: import("prosemirror-state").EditorState) => boolean;
|
|
120
121
|
};
|
|
121
122
|
}, import("@atlaskit/editor-plugins/annotation").AnnotationProviders | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"extension", {
|
|
122
123
|
pluginConfiguration: import("@atlaskit/editor-plugins/extension").ExtensionPluginOptions | undefined;
|
|
@@ -131,9 +132,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
131
132
|
pluginConfiguration: import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined;
|
|
132
133
|
actions: {
|
|
133
134
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
134
|
-
showPanel
|
|
135
|
-
closePanel
|
|
136
|
-
closePanelById
|
|
135
|
+
showPanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar | undefined;
|
|
136
|
+
closePanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar | undefined;
|
|
137
|
+
closePanelById?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById | undefined;
|
|
137
138
|
};
|
|
138
139
|
sharedState: {
|
|
139
140
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -270,6 +271,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
270
271
|
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
271
272
|
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugins/annotation").InlineCommentInputMethod, targetType?: import("@atlaskit/editor-plugins/annotation").TargetType | undefined, targetNodeId?: string | undefined, isOpeningMediaCommentFromToolbar?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
272
273
|
showCommentForBlockNode: (node: import("prosemirror-model").Node | null, viewMethod?: import("@atlaskit/editor-common/analytics").VIEW_METHOD | undefined, isOpeningMediaCommentFromToolbar?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
274
|
+
hasAnyUnResolvedAnnotationInPage: (state: import("prosemirror-state").EditorState) => boolean;
|
|
273
275
|
};
|
|
274
276
|
}, import("@atlaskit/editor-plugins/annotation").AnnotationProviders | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"grid", {
|
|
275
277
|
pluginConfiguration: import("packages/editor/editor-plugin-grid/dist/types/gridPluginType").GridPluginConfiguration;
|
|
@@ -449,9 +451,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
449
451
|
pluginConfiguration: import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined;
|
|
450
452
|
actions: {
|
|
451
453
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
452
|
-
showPanel
|
|
453
|
-
closePanel
|
|
454
|
-
closePanelById
|
|
454
|
+
showPanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar | undefined;
|
|
455
|
+
closePanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar | undefined;
|
|
456
|
+
closePanelById?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById | undefined;
|
|
455
457
|
};
|
|
456
458
|
sharedState: {
|
|
457
459
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -513,9 +515,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
513
515
|
pluginConfiguration: import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined;
|
|
514
516
|
actions: {
|
|
515
517
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
516
|
-
showPanel
|
|
517
|
-
closePanel
|
|
518
|
-
closePanelById
|
|
518
|
+
showPanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar | undefined;
|
|
519
|
+
closePanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar | undefined;
|
|
520
|
+
closePanelById?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById | undefined;
|
|
519
521
|
};
|
|
520
522
|
sharedState: {
|
|
521
523
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -612,6 +614,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
612
614
|
};
|
|
613
615
|
pluginConfiguration: {
|
|
614
616
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
617
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
615
618
|
};
|
|
616
619
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
617
620
|
sharedState: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -637,6 +640,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
637
640
|
} | undefined;
|
|
638
641
|
}, {
|
|
639
642
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
643
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
640
644
|
}>>];
|
|
641
645
|
commands: {
|
|
642
646
|
toggleSuperscript: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
|
|
@@ -664,6 +668,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
664
668
|
};
|
|
665
669
|
pluginConfiguration: {
|
|
666
670
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
671
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
667
672
|
};
|
|
668
673
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
669
674
|
sharedState: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -689,6 +694,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
689
694
|
} | undefined;
|
|
690
695
|
}, {
|
|
691
696
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
697
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
692
698
|
}>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clearMarksOnEmptyDoc", {}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockType", {
|
|
693
699
|
pluginConfiguration: import("@atlaskit/editor-plugins/block-type").BlockTypePluginOptions | undefined;
|
|
694
700
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
@@ -717,6 +723,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
717
723
|
};
|
|
718
724
|
pluginConfiguration: {
|
|
719
725
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
726
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
720
727
|
};
|
|
721
728
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
722
729
|
sharedState: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -742,6 +749,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
742
749
|
} | undefined;
|
|
743
750
|
}, {
|
|
744
751
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
752
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
745
753
|
}>>];
|
|
746
754
|
sharedState: import("@atlaskit/editor-plugins/block-type").BlockTypeState | undefined;
|
|
747
755
|
actions: {
|
|
@@ -779,9 +787,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
779
787
|
pluginConfiguration: import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined;
|
|
780
788
|
actions: {
|
|
781
789
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
782
|
-
showPanel
|
|
783
|
-
closePanel
|
|
784
|
-
closePanelById
|
|
790
|
+
showPanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar | undefined;
|
|
791
|
+
closePanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar | undefined;
|
|
792
|
+
closePanelById?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById | undefined;
|
|
785
793
|
};
|
|
786
794
|
sharedState: {
|
|
787
795
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -871,9 +879,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
871
879
|
pluginConfiguration: import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined;
|
|
872
880
|
actions: {
|
|
873
881
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
874
|
-
showPanel
|
|
875
|
-
closePanel
|
|
876
|
-
closePanelById
|
|
882
|
+
showPanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar | undefined;
|
|
883
|
+
closePanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar | undefined;
|
|
884
|
+
closePanelById?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById | undefined;
|
|
877
885
|
};
|
|
878
886
|
sharedState: {
|
|
879
887
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -169,6 +169,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
169
169
|
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
170
170
|
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugins/annotation").InlineCommentInputMethod, targetType?: import("@atlaskit/editor-plugins/annotation").TargetType | undefined, targetNodeId?: string | undefined, isOpeningMediaCommentFromToolbar?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
171
171
|
showCommentForBlockNode: (node: import("prosemirror-model").Node | null, viewMethod?: import("@atlaskit/editor-common/analytics").VIEW_METHOD | undefined, isOpeningMediaCommentFromToolbar?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
172
|
+
hasAnyUnResolvedAnnotationInPage: (state: import("prosemirror-state").EditorState) => boolean;
|
|
172
173
|
};
|
|
173
174
|
}, import("@atlaskit/editor-plugins/annotation").AnnotationProviders | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"extension", {
|
|
174
175
|
pluginConfiguration: ExtensionPluginOptions | undefined;
|
|
@@ -183,9 +184,9 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
183
184
|
pluginConfiguration: import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined;
|
|
184
185
|
actions: {
|
|
185
186
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
186
|
-
showPanel
|
|
187
|
-
closePanel
|
|
188
|
-
closePanelById
|
|
187
|
+
showPanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar | undefined;
|
|
188
|
+
closePanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar | undefined;
|
|
189
|
+
closePanelById?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById | undefined;
|
|
189
190
|
};
|
|
190
191
|
sharedState: {
|
|
191
192
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -322,6 +323,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
322
323
|
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
323
324
|
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugins/annotation").InlineCommentInputMethod, targetType?: import("@atlaskit/editor-plugins/annotation").TargetType | undefined, targetNodeId?: string | undefined, isOpeningMediaCommentFromToolbar?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
324
325
|
showCommentForBlockNode: (node: import("prosemirror-model").Node | null, viewMethod?: import("@atlaskit/editor-common/analytics").VIEW_METHOD | undefined, isOpeningMediaCommentFromToolbar?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
326
|
+
hasAnyUnResolvedAnnotationInPage: (state: import("prosemirror-state").EditorState) => boolean;
|
|
325
327
|
};
|
|
326
328
|
}, import("@atlaskit/editor-plugins/annotation").AnnotationProviders | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"grid", {
|
|
327
329
|
pluginConfiguration: import("packages/editor/editor-plugin-grid/dist/types/gridPluginType").GridPluginConfiguration;
|
|
@@ -501,9 +503,9 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
501
503
|
pluginConfiguration: import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined;
|
|
502
504
|
actions: {
|
|
503
505
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
504
|
-
showPanel
|
|
505
|
-
closePanel
|
|
506
|
-
closePanelById
|
|
506
|
+
showPanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar | undefined;
|
|
507
|
+
closePanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar | undefined;
|
|
508
|
+
closePanelById?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById | undefined;
|
|
507
509
|
};
|
|
508
510
|
sharedState: {
|
|
509
511
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -565,9 +567,9 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
565
567
|
pluginConfiguration: import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined;
|
|
566
568
|
actions: {
|
|
567
569
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
568
|
-
showPanel
|
|
569
|
-
closePanel
|
|
570
|
-
closePanelById
|
|
570
|
+
showPanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar | undefined;
|
|
571
|
+
closePanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar | undefined;
|
|
572
|
+
closePanelById?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById | undefined;
|
|
571
573
|
};
|
|
572
574
|
sharedState: {
|
|
573
575
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -664,6 +666,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
664
666
|
};
|
|
665
667
|
pluginConfiguration: {
|
|
666
668
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
669
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
667
670
|
};
|
|
668
671
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
669
672
|
sharedState: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -689,6 +692,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
689
692
|
} | undefined;
|
|
690
693
|
}, {
|
|
691
694
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
695
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
692
696
|
}>>];
|
|
693
697
|
commands: {
|
|
694
698
|
toggleSuperscript: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
|
|
@@ -716,6 +720,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
716
720
|
};
|
|
717
721
|
pluginConfiguration: {
|
|
718
722
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
723
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
719
724
|
};
|
|
720
725
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
721
726
|
sharedState: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -741,6 +746,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
741
746
|
} | undefined;
|
|
742
747
|
}, {
|
|
743
748
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
749
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
744
750
|
}>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clearMarksOnEmptyDoc", {}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockType", {
|
|
745
751
|
pluginConfiguration: import("@atlaskit/editor-plugins/block-type").BlockTypePluginOptions | undefined;
|
|
746
752
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
@@ -769,6 +775,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
769
775
|
};
|
|
770
776
|
pluginConfiguration: {
|
|
771
777
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
778
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
772
779
|
};
|
|
773
780
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
774
781
|
sharedState: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -794,6 +801,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
794
801
|
} | undefined;
|
|
795
802
|
}, {
|
|
796
803
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
804
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
797
805
|
}>>];
|
|
798
806
|
sharedState: import("@atlaskit/editor-plugins/block-type").BlockTypeState | undefined;
|
|
799
807
|
actions: {
|
|
@@ -831,9 +839,9 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
831
839
|
pluginConfiguration: import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined;
|
|
832
840
|
actions: {
|
|
833
841
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
834
|
-
showPanel
|
|
835
|
-
closePanel
|
|
836
|
-
closePanelById
|
|
842
|
+
showPanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar | undefined;
|
|
843
|
+
closePanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar | undefined;
|
|
844
|
+
closePanelById?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById | undefined;
|
|
837
845
|
};
|
|
838
846
|
sharedState: {
|
|
839
847
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -923,9 +931,9 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
923
931
|
pluginConfiguration: import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined;
|
|
924
932
|
actions: {
|
|
925
933
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
926
|
-
showPanel
|
|
927
|
-
closePanel
|
|
928
|
-
closePanelById
|
|
934
|
+
showPanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar | undefined;
|
|
935
|
+
closePanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar | undefined;
|
|
936
|
+
closePanelById?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById | undefined;
|
|
929
937
|
};
|
|
930
938
|
sharedState: {
|
|
931
939
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -117,6 +117,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
117
117
|
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
118
118
|
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugins/annotation").InlineCommentInputMethod, targetType?: import("@atlaskit/editor-plugins/annotation").TargetType | undefined, targetNodeId?: string | undefined, isOpeningMediaCommentFromToolbar?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
119
119
|
showCommentForBlockNode: (node: import("prosemirror-model").Node | null, viewMethod?: import("@atlaskit/editor-common/analytics").VIEW_METHOD | undefined, isOpeningMediaCommentFromToolbar?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
120
|
+
hasAnyUnResolvedAnnotationInPage: (state: import("prosemirror-state").EditorState) => boolean;
|
|
120
121
|
};
|
|
121
122
|
}, import("@atlaskit/editor-plugins/annotation").AnnotationProviders | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"extension", {
|
|
122
123
|
pluginConfiguration: import("@atlaskit/editor-plugins/extension").ExtensionPluginOptions | undefined;
|
|
@@ -131,9 +132,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
131
132
|
pluginConfiguration: import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined;
|
|
132
133
|
actions: {
|
|
133
134
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
134
|
-
showPanel
|
|
135
|
-
closePanel
|
|
136
|
-
closePanelById
|
|
135
|
+
showPanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar | undefined;
|
|
136
|
+
closePanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar | undefined;
|
|
137
|
+
closePanelById?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById | undefined;
|
|
137
138
|
};
|
|
138
139
|
sharedState: {
|
|
139
140
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -270,6 +271,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
270
271
|
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
271
272
|
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugins/annotation").InlineCommentInputMethod, targetType?: import("@atlaskit/editor-plugins/annotation").TargetType | undefined, targetNodeId?: string | undefined, isOpeningMediaCommentFromToolbar?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
272
273
|
showCommentForBlockNode: (node: import("prosemirror-model").Node | null, viewMethod?: import("@atlaskit/editor-common/analytics").VIEW_METHOD | undefined, isOpeningMediaCommentFromToolbar?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
274
|
+
hasAnyUnResolvedAnnotationInPage: (state: import("prosemirror-state").EditorState) => boolean;
|
|
273
275
|
};
|
|
274
276
|
}, import("@atlaskit/editor-plugins/annotation").AnnotationProviders | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"grid", {
|
|
275
277
|
pluginConfiguration: import("packages/editor/editor-plugin-grid/dist/types/gridPluginType").GridPluginConfiguration;
|
|
@@ -449,9 +451,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
449
451
|
pluginConfiguration: import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined;
|
|
450
452
|
actions: {
|
|
451
453
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
452
|
-
showPanel
|
|
453
|
-
closePanel
|
|
454
|
-
closePanelById
|
|
454
|
+
showPanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar | undefined;
|
|
455
|
+
closePanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar | undefined;
|
|
456
|
+
closePanelById?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById | undefined;
|
|
455
457
|
};
|
|
456
458
|
sharedState: {
|
|
457
459
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -513,9 +515,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
513
515
|
pluginConfiguration: import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined;
|
|
514
516
|
actions: {
|
|
515
517
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
516
|
-
showPanel
|
|
517
|
-
closePanel
|
|
518
|
-
closePanelById
|
|
518
|
+
showPanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar | undefined;
|
|
519
|
+
closePanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar | undefined;
|
|
520
|
+
closePanelById?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById | undefined;
|
|
519
521
|
};
|
|
520
522
|
sharedState: {
|
|
521
523
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -612,6 +614,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
612
614
|
};
|
|
613
615
|
pluginConfiguration: {
|
|
614
616
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
617
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
615
618
|
};
|
|
616
619
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
617
620
|
sharedState: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -637,6 +640,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
637
640
|
} | undefined;
|
|
638
641
|
}, {
|
|
639
642
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
643
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
640
644
|
}>>];
|
|
641
645
|
commands: {
|
|
642
646
|
toggleSuperscript: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
|
|
@@ -664,6 +668,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
664
668
|
};
|
|
665
669
|
pluginConfiguration: {
|
|
666
670
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
671
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
667
672
|
};
|
|
668
673
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
669
674
|
sharedState: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -689,6 +694,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
689
694
|
} | undefined;
|
|
690
695
|
}, {
|
|
691
696
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
697
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
692
698
|
}>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clearMarksOnEmptyDoc", {}, undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockType", {
|
|
693
699
|
pluginConfiguration: import("@atlaskit/editor-plugins/block-type").BlockTypePluginOptions | undefined;
|
|
694
700
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
@@ -717,6 +723,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
717
723
|
};
|
|
718
724
|
pluginConfiguration: {
|
|
719
725
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
726
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
720
727
|
};
|
|
721
728
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
722
729
|
sharedState: import("@atlaskit/editor-plugins/editor-viewmode").EditorViewModePluginState | null;
|
|
@@ -742,6 +749,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
742
749
|
} | undefined;
|
|
743
750
|
}, {
|
|
744
751
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
752
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
745
753
|
}>>];
|
|
746
754
|
sharedState: import("@atlaskit/editor-plugins/block-type").BlockTypeState | undefined;
|
|
747
755
|
actions: {
|
|
@@ -779,9 +787,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
779
787
|
pluginConfiguration: import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined;
|
|
780
788
|
actions: {
|
|
781
789
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
782
|
-
showPanel
|
|
783
|
-
closePanel
|
|
784
|
-
closePanelById
|
|
790
|
+
showPanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar | undefined;
|
|
791
|
+
closePanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar | undefined;
|
|
792
|
+
closePanelById?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById | undefined;
|
|
785
793
|
};
|
|
786
794
|
sharedState: {
|
|
787
795
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -871,9 +879,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
871
879
|
pluginConfiguration: import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined;
|
|
872
880
|
actions: {
|
|
873
881
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
874
|
-
showPanel
|
|
875
|
-
closePanel
|
|
876
|
-
closePanelById
|
|
882
|
+
showPanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar | undefined;
|
|
883
|
+
closePanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar | undefined;
|
|
884
|
+
closePanelById?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById | undefined;
|
|
877
885
|
};
|
|
878
886
|
sharedState: {
|
|
879
887
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -3,6 +3,7 @@ import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
|
3
3
|
import type { CollabEditOptions } from '@atlaskit/editor-common/collab';
|
|
4
4
|
import type { EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
5
5
|
import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
6
|
+
import type { AllEditorPresetPluginTypes, EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
6
7
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
7
8
|
import type { EditorAppearance, FeatureFlags, NextEditorPlugin, PublicPluginAPI, ReactHookFactory, ToolbarUIComponentFactory, UIComponentFactory } from '@atlaskit/editor-common/types';
|
|
8
9
|
import type { UseStickyToolbarType } from '@atlaskit/editor-common/ui';
|
|
@@ -14,6 +15,7 @@ export interface EditorAppearanceComponentProps<Plugins extends NextEditorPlugin
|
|
|
14
15
|
editorAPI: PublicPluginAPI<Plugins> | undefined;
|
|
15
16
|
appearance?: EditorAppearance;
|
|
16
17
|
__livePage?: boolean;
|
|
18
|
+
preset?: EditorPresetBuilder<string[], AllEditorPresetPluginTypes[]>;
|
|
17
19
|
onSave?: (editorView: EditorView) => void;
|
|
18
20
|
onCancel?: (editorView: EditorView) => void;
|
|
19
21
|
providerFactory: ProviderFactory;
|
|
@@ -5,11 +5,10 @@ import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugins/primary-tool
|
|
|
5
5
|
import type { SelectionToolbarPlugin } from '@atlaskit/editor-plugins/selection-toolbar';
|
|
6
6
|
import type { EditorAppearanceComponentProps } from '../../../types';
|
|
7
7
|
import type { ToolbarEditorPlugins } from './FullPageToolbar';
|
|
8
|
-
type ComponentProps = EditorAppearanceComponentProps<[
|
|
8
|
+
export type ComponentProps = EditorAppearanceComponentProps<[
|
|
9
9
|
OptionalPlugin<EditorViewModePlugin>,
|
|
10
10
|
OptionalPlugin<PrimaryToolbarPlugin>,
|
|
11
11
|
OptionalPlugin<SelectionToolbarPlugin>,
|
|
12
12
|
...ToolbarEditorPlugins
|
|
13
13
|
]>;
|
|
14
14
|
export declare const FullPageEditor: (props: ComponentProps) => jsx.JSX.Element;
|
|
15
|
-
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ViewMode, EditorViewModePluginState } from '@atlaskit/editor-plugins/editor-viewmode';
|
|
2
|
+
import type { ComponentProps } from './FullPage';
|
|
3
|
+
export declare const getEditorViewMode: (editorViewModeState: EditorViewModePluginState | undefined | null, preset: ComponentProps['preset']) => ViewMode;
|
|
@@ -214,6 +214,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
214
214
|
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
215
215
|
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugins/annotation").InlineCommentInputMethod, targetType?: import("@atlaskit/editor-plugins/annotation").TargetType | undefined, targetNodeId?: string | undefined, isOpeningMediaCommentFromToolbar?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
216
216
|
showCommentForBlockNode: (node: import("prosemirror-model").Node | null, viewMethod?: import("@atlaskit/editor-common/analytics").VIEW_METHOD | undefined, isOpeningMediaCommentFromToolbar?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
217
|
+
hasAnyUnResolvedAnnotationInPage: (state: import("prosemirror-state").EditorState) => boolean;
|
|
217
218
|
};
|
|
218
219
|
}, import("@atlaskit/editor-plugins/annotation").AnnotationProviders | undefined> | undefined,
|
|
219
220
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"extension", {
|
|
@@ -230,9 +231,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
230
231
|
pluginConfiguration: import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined;
|
|
231
232
|
actions: {
|
|
232
233
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
233
|
-
showPanel
|
|
234
|
-
closePanel
|
|
235
|
-
closePanelById
|
|
234
|
+
showPanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar | undefined;
|
|
235
|
+
closePanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar | undefined;
|
|
236
|
+
closePanelById?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById | undefined;
|
|
236
237
|
};
|
|
237
238
|
sharedState: {
|
|
238
239
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -385,6 +386,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
385
386
|
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
386
387
|
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugins/annotation").InlineCommentInputMethod, targetType?: import("@atlaskit/editor-plugins/annotation").TargetType | undefined, targetNodeId?: string | undefined, isOpeningMediaCommentFromToolbar?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
387
388
|
showCommentForBlockNode: (node: import("prosemirror-model").Node | null, viewMethod?: import("@atlaskit/editor-common/analytics").VIEW_METHOD | undefined, isOpeningMediaCommentFromToolbar?: boolean | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
389
|
+
hasAnyUnResolvedAnnotationInPage: (state: import("prosemirror-state").EditorState) => boolean;
|
|
388
390
|
};
|
|
389
391
|
}, import("@atlaskit/editor-plugins/annotation").AnnotationProviders | undefined> | undefined,
|
|
390
392
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"grid", {
|
|
@@ -613,9 +615,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
613
615
|
pluginConfiguration: import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined;
|
|
614
616
|
actions: {
|
|
615
617
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
616
|
-
showPanel
|
|
617
|
-
closePanel
|
|
618
|
-
closePanelById
|
|
618
|
+
showPanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar | undefined;
|
|
619
|
+
closePanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar | undefined;
|
|
620
|
+
closePanelById?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById | undefined;
|
|
619
621
|
};
|
|
620
622
|
sharedState: {
|
|
621
623
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -687,9 +689,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
687
689
|
pluginConfiguration: import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined;
|
|
688
690
|
actions: {
|
|
689
691
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
690
|
-
showPanel
|
|
691
|
-
closePanel
|
|
692
|
-
closePanelById
|
|
692
|
+
showPanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar | undefined;
|
|
693
|
+
closePanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar | undefined;
|
|
694
|
+
closePanelById?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById | undefined;
|
|
693
695
|
};
|
|
694
696
|
sharedState: {
|
|
695
697
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -800,6 +802,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
800
802
|
};
|
|
801
803
|
pluginConfiguration: {
|
|
802
804
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
805
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
803
806
|
};
|
|
804
807
|
dependencies: [
|
|
805
808
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -829,6 +832,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
829
832
|
} | undefined;
|
|
830
833
|
}, {
|
|
831
834
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
835
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
832
836
|
}>>
|
|
833
837
|
];
|
|
834
838
|
commands: {
|
|
@@ -859,6 +863,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
859
863
|
};
|
|
860
864
|
pluginConfiguration: {
|
|
861
865
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
866
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
862
867
|
};
|
|
863
868
|
dependencies: [
|
|
864
869
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -888,6 +893,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
888
893
|
} | undefined;
|
|
889
894
|
}, {
|
|
890
895
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
896
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
891
897
|
}>,
|
|
892
898
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clearMarksOnEmptyDoc", {}, undefined>,
|
|
893
899
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockType", {
|
|
@@ -923,6 +929,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
923
929
|
};
|
|
924
930
|
pluginConfiguration: {
|
|
925
931
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
932
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
926
933
|
};
|
|
927
934
|
dependencies: [
|
|
928
935
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -952,6 +959,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
952
959
|
} | undefined;
|
|
953
960
|
}, {
|
|
954
961
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
962
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
955
963
|
}>>
|
|
956
964
|
];
|
|
957
965
|
sharedState: import("@atlaskit/editor-plugins/block-type").BlockTypeState | undefined;
|
|
@@ -998,9 +1006,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
998
1006
|
pluginConfiguration: import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined;
|
|
999
1007
|
actions: {
|
|
1000
1008
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
1001
|
-
showPanel
|
|
1002
|
-
closePanel
|
|
1003
|
-
closePanelById
|
|
1009
|
+
showPanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar | undefined;
|
|
1010
|
+
closePanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar | undefined;
|
|
1011
|
+
closePanelById?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById | undefined;
|
|
1004
1012
|
};
|
|
1005
1013
|
sharedState: {
|
|
1006
1014
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -1103,9 +1111,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
|
|
|
1103
1111
|
pluginConfiguration: import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined;
|
|
1104
1112
|
actions: {
|
|
1105
1113
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
1106
|
-
showPanel
|
|
1107
|
-
closePanel
|
|
1108
|
-
closePanelById
|
|
1114
|
+
showPanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar | undefined;
|
|
1115
|
+
closePanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar | undefined;
|
|
1116
|
+
closePanelById?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById | undefined;
|
|
1109
1117
|
};
|
|
1110
1118
|
sharedState: {
|
|
1111
1119
|
contents: import("react").ReactNode[] | undefined;
|