@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
|
@@ -266,6 +266,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
266
266
|
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
267
267
|
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;
|
|
268
268
|
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;
|
|
269
|
+
hasAnyUnResolvedAnnotationInPage: (state: import("prosemirror-state").EditorState) => boolean;
|
|
269
270
|
};
|
|
270
271
|
}, import("@atlaskit/editor-plugins/annotation").AnnotationProviders | undefined> | undefined,
|
|
271
272
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"extension", {
|
|
@@ -282,9 +283,9 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
282
283
|
pluginConfiguration: import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined;
|
|
283
284
|
actions: {
|
|
284
285
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
285
|
-
showPanel
|
|
286
|
-
closePanel
|
|
287
|
-
closePanelById
|
|
286
|
+
showPanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar | undefined;
|
|
287
|
+
closePanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar | undefined;
|
|
288
|
+
closePanelById?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById | undefined;
|
|
288
289
|
};
|
|
289
290
|
sharedState: {
|
|
290
291
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -437,6 +438,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
437
438
|
stripNonExistingAnnotations: (slice: import("prosemirror-model").Slice, state: import("prosemirror-state").EditorState) => boolean | undefined;
|
|
438
439
|
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;
|
|
439
440
|
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;
|
|
441
|
+
hasAnyUnResolvedAnnotationInPage: (state: import("prosemirror-state").EditorState) => boolean;
|
|
440
442
|
};
|
|
441
443
|
}, import("@atlaskit/editor-plugins/annotation").AnnotationProviders | undefined> | undefined,
|
|
442
444
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"grid", {
|
|
@@ -665,9 +667,9 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
665
667
|
pluginConfiguration: import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined;
|
|
666
668
|
actions: {
|
|
667
669
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
668
|
-
showPanel
|
|
669
|
-
closePanel
|
|
670
|
-
closePanelById
|
|
670
|
+
showPanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar | undefined;
|
|
671
|
+
closePanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar | undefined;
|
|
672
|
+
closePanelById?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById | undefined;
|
|
671
673
|
};
|
|
672
674
|
sharedState: {
|
|
673
675
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -739,9 +741,9 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
739
741
|
pluginConfiguration: import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined;
|
|
740
742
|
actions: {
|
|
741
743
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
742
|
-
showPanel
|
|
743
|
-
closePanel
|
|
744
|
-
closePanelById
|
|
744
|
+
showPanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar | undefined;
|
|
745
|
+
closePanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar | undefined;
|
|
746
|
+
closePanelById?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById | undefined;
|
|
745
747
|
};
|
|
746
748
|
sharedState: {
|
|
747
749
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -852,6 +854,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
852
854
|
};
|
|
853
855
|
pluginConfiguration: {
|
|
854
856
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
857
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
855
858
|
};
|
|
856
859
|
dependencies: [
|
|
857
860
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -881,6 +884,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
881
884
|
} | undefined;
|
|
882
885
|
}, {
|
|
883
886
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
887
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
884
888
|
}>>
|
|
885
889
|
];
|
|
886
890
|
commands: {
|
|
@@ -911,6 +915,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
911
915
|
};
|
|
912
916
|
pluginConfiguration: {
|
|
913
917
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
918
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
914
919
|
};
|
|
915
920
|
dependencies: [
|
|
916
921
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -940,6 +945,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
940
945
|
} | undefined;
|
|
941
946
|
}, {
|
|
942
947
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
948
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
943
949
|
}>,
|
|
944
950
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"clearMarksOnEmptyDoc", {}, undefined>,
|
|
945
951
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"blockType", {
|
|
@@ -975,6 +981,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
975
981
|
};
|
|
976
982
|
pluginConfiguration: {
|
|
977
983
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
984
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
978
985
|
};
|
|
979
986
|
dependencies: [
|
|
980
987
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
@@ -1004,6 +1011,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
1004
1011
|
} | undefined;
|
|
1005
1012
|
}, {
|
|
1006
1013
|
preferenceToolbarAboveSelection?: boolean | undefined;
|
|
1014
|
+
userPreferencesProvider?: import("@atlaskit/editor-common/types").UserPreferencesProvider | undefined;
|
|
1007
1015
|
}>>
|
|
1008
1016
|
];
|
|
1009
1017
|
sharedState: import("@atlaskit/editor-plugins/block-type").BlockTypeState | undefined;
|
|
@@ -1050,9 +1058,9 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
1050
1058
|
pluginConfiguration: import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined;
|
|
1051
1059
|
actions: {
|
|
1052
1060
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
1053
|
-
showPanel
|
|
1054
|
-
closePanel
|
|
1055
|
-
closePanelById
|
|
1061
|
+
showPanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar | undefined;
|
|
1062
|
+
closePanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar | undefined;
|
|
1063
|
+
closePanelById?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById | undefined;
|
|
1056
1064
|
};
|
|
1057
1065
|
sharedState: {
|
|
1058
1066
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -1155,9 +1163,9 @@ export default function createUniversalPresetInternal({ appearance, props, featu
|
|
|
1155
1163
|
pluginConfiguration: import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined;
|
|
1156
1164
|
actions: {
|
|
1157
1165
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
1158
|
-
showPanel
|
|
1159
|
-
closePanel
|
|
1160
|
-
closePanelById
|
|
1166
|
+
showPanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar | undefined;
|
|
1167
|
+
closePanel?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar | undefined;
|
|
1168
|
+
closePanelById?: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebarById | undefined;
|
|
1161
1169
|
};
|
|
1162
1170
|
sharedState: {
|
|
1163
1171
|
contents: import("react").ReactNode[] | undefined;
|
|
@@ -214,6 +214,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
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 default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
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 default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
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 default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
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 default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
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 default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
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 default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
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 default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
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 default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
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 default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
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 default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
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 default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
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 default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
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;
|
|
@@ -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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "204.5.
|
|
3
|
+
"version": "204.5.4",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -46,14 +46,14 @@
|
|
|
46
46
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
47
47
|
"@atlaskit/button": "^21.1.0",
|
|
48
48
|
"@atlaskit/css": "^0.10.0",
|
|
49
|
-
"@atlaskit/editor-common": "^102.
|
|
49
|
+
"@atlaskit/editor-common": "^102.11.0",
|
|
50
50
|
"@atlaskit/editor-json-transformer": "^8.24.0",
|
|
51
51
|
"@atlaskit/editor-performance-metrics": "^2.0.0",
|
|
52
52
|
"@atlaskit/editor-plugin-quick-insert": "^2.1.0",
|
|
53
53
|
"@atlaskit/editor-plugins": "^8.0.0",
|
|
54
54
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
55
55
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
56
|
-
"@atlaskit/emoji": "^
|
|
56
|
+
"@atlaskit/emoji": "^69.0.0",
|
|
57
57
|
"@atlaskit/icon": "^25.0.0",
|
|
58
58
|
"@atlaskit/media-card": "^79.0.0",
|
|
59
59
|
"@atlaskit/mention": "^24.1.0",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"@af/visual-regression": "^1.3.0",
|
|
89
89
|
"@atlaskit/adf-utils": "^19.19.0",
|
|
90
90
|
"@atlaskit/analytics-listeners": "^9.0.0",
|
|
91
|
-
"@atlaskit/collab-provider": "^10.
|
|
91
|
+
"@atlaskit/collab-provider": "^10.10.0",
|
|
92
92
|
"@atlaskit/editor-plugin-annotation": "^2.1.0",
|
|
93
93
|
"@atlaskit/editor-plugin-card": "^5.3.0",
|
|
94
94
|
"@atlaskit/editor-plugin-list": "^4.1.0",
|
|
@@ -98,10 +98,10 @@
|
|
|
98
98
|
"@atlaskit/media-core": "^35.0.0",
|
|
99
99
|
"@atlaskit/media-integration-test-helpers": "^4.0.0",
|
|
100
100
|
"@atlaskit/media-test-helpers": "^35.0.0",
|
|
101
|
-
"@atlaskit/modal-dialog": "^13.
|
|
102
|
-
"@atlaskit/primitives": "^14.
|
|
103
|
-
"@atlaskit/renderer": "^114.
|
|
104
|
-
"@atlaskit/smart-card": "^
|
|
101
|
+
"@atlaskit/modal-dialog": "^13.3.0",
|
|
102
|
+
"@atlaskit/primitives": "^14.2.0",
|
|
103
|
+
"@atlaskit/renderer": "^114.4.0",
|
|
104
|
+
"@atlaskit/smart-card": "^36.0.0",
|
|
105
105
|
"@atlaskit/synchrony-test-helpers": "^3.1.0",
|
|
106
106
|
"@atlaskit/toggle": "^15.0.0",
|
|
107
107
|
"@atlaskit/util-data-test": "^18.0.0",
|
|
@@ -159,6 +159,9 @@
|
|
|
159
159
|
"platform_editor_fe--ufo-bridge": {
|
|
160
160
|
"type": "boolean"
|
|
161
161
|
},
|
|
162
|
+
"platform_editor_sync_editor_view_mode_state": {
|
|
163
|
+
"type": "boolean"
|
|
164
|
+
},
|
|
162
165
|
"annotations_defensive_node_name_calculations": {
|
|
163
166
|
"type": "boolean",
|
|
164
167
|
"referenceOnly": "true"
|
|
@@ -320,10 +323,6 @@
|
|
|
320
323
|
"type": "boolean",
|
|
321
324
|
"referenceOnly": true
|
|
322
325
|
},
|
|
323
|
-
"platform_editor_advanced_layouts_post_fix_patch_2": {
|
|
324
|
-
"type": "boolean",
|
|
325
|
-
"referenceOnly": true
|
|
326
|
-
},
|
|
327
326
|
"platform_editor_advanced_layouts_post_fix_patch_3": {
|
|
328
327
|
"type": "boolean",
|
|
329
328
|
"referenceOnly": true
|
|
@@ -556,6 +555,14 @@
|
|
|
556
555
|
},
|
|
557
556
|
"platform_nested_nbm_analytics_location": {
|
|
558
557
|
"type": "boolean"
|
|
558
|
+
},
|
|
559
|
+
"platform_editor_elements_dnd_multi_select_patch_2": {
|
|
560
|
+
"type": "boolean",
|
|
561
|
+
"referenceOnly": true
|
|
562
|
+
},
|
|
563
|
+
"platform_editor_scroll_table_flickering_fix": {
|
|
564
|
+
"type": "boolean",
|
|
565
|
+
"referenceOnly": true
|
|
559
566
|
}
|
|
560
567
|
},
|
|
561
568
|
"stricter": {
|