@atlaskit/editor-core 203.16.4 → 203.17.2

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.
Files changed (70) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/afm-cc/tsconfig.json +6 -0
  3. package/afm-jira/tsconfig.json +6 -0
  4. package/afm-post-office/tsconfig.json +6 -0
  5. package/dist/cjs/composable-editor/core-editor.js +5 -2
  6. package/dist/cjs/composable-editor/core-performance-metrics.js +109 -0
  7. package/dist/cjs/index.js +13 -0
  8. package/dist/cjs/ui/Addon/ClickAreaBlock/contentComponentWrapper.js +22 -0
  9. package/dist/cjs/ui/Addon/click-area-helper.js +5 -3
  10. package/dist/cjs/ui/Appearance/Comment/Comment.js +3 -2
  11. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +3 -2
  12. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +28 -4
  13. package/dist/cjs/ui/Appearance/FullPage/StyledComponents.js +11 -1
  14. package/dist/cjs/ui/ContentStyles/extension.js +1 -1
  15. package/dist/cjs/ui/Toolbar/ToolbarPortal.compiled.css +3 -0
  16. package/dist/cjs/ui/Toolbar/ToolbarPortal.js +48 -0
  17. package/dist/cjs/version-wrapper.js +1 -1
  18. package/dist/es2019/composable-editor/core-editor.js +6 -3
  19. package/dist/es2019/composable-editor/core-performance-metrics.js +92 -0
  20. package/dist/es2019/index.js +1 -0
  21. package/dist/es2019/ui/Addon/ClickAreaBlock/contentComponentWrapper.js +15 -0
  22. package/dist/es2019/ui/Addon/click-area-helper.js +5 -2
  23. package/dist/es2019/ui/Appearance/Comment/Comment.js +3 -2
  24. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +3 -2
  25. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +27 -2
  26. package/dist/es2019/ui/Appearance/FullPage/StyledComponents.js +11 -1
  27. package/dist/es2019/ui/ContentStyles/extension.js +5 -0
  28. package/dist/es2019/ui/Toolbar/ToolbarPortal.compiled.css +3 -0
  29. package/dist/es2019/ui/Toolbar/ToolbarPortal.js +40 -0
  30. package/dist/es2019/version-wrapper.js +1 -1
  31. package/dist/esm/composable-editor/core-editor.js +6 -3
  32. package/dist/esm/composable-editor/core-performance-metrics.js +101 -0
  33. package/dist/esm/index.js +1 -0
  34. package/dist/esm/ui/Addon/ClickAreaBlock/contentComponentWrapper.js +15 -0
  35. package/dist/esm/ui/Addon/click-area-helper.js +5 -2
  36. package/dist/esm/ui/Appearance/Comment/Comment.js +3 -2
  37. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +3 -2
  38. package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +28 -4
  39. package/dist/esm/ui/Appearance/FullPage/StyledComponents.js +11 -1
  40. package/dist/esm/ui/ContentStyles/extension.js +1 -1
  41. package/dist/esm/ui/Toolbar/ToolbarPortal.compiled.css +3 -0
  42. package/dist/esm/ui/Toolbar/ToolbarPortal.js +41 -0
  43. package/dist/esm/version-wrapper.js +1 -1
  44. package/dist/types/composable-editor/core-performance-metrics.d.ts +4 -0
  45. package/dist/types/create-editor/create-universal-preset.d.ts +55 -6
  46. package/dist/types/index.d.ts +1 -0
  47. package/dist/types/presets/universal.d.ts +55 -6
  48. package/dist/types/presets/useUniversalPreset.d.ts +55 -6
  49. package/dist/types/ui/Addon/ClickAreaBlock/contentComponentWrapper.d.ts +6 -0
  50. package/dist/types/ui/Addon/click-area-helper.d.ts +1 -0
  51. package/dist/types/ui/Toolbar/ToolbarPortal.d.ts +21 -0
  52. package/dist/types-ts4.5/composable-editor/core-performance-metrics.d.ts +4 -0
  53. package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +59 -6
  54. package/dist/types-ts4.5/index.d.ts +1 -0
  55. package/dist/types-ts4.5/presets/universal.d.ts +59 -6
  56. package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +59 -6
  57. package/dist/types-ts4.5/ui/Addon/ClickAreaBlock/contentComponentWrapper.d.ts +6 -0
  58. package/dist/types-ts4.5/ui/Addon/click-area-helper.d.ts +1 -0
  59. package/dist/types-ts4.5/ui/Toolbar/ToolbarPortal.d.ts +21 -0
  60. package/package.json +44 -18
  61. package/dist/cjs/ui/Addon/ClickAreaInline/index.js +0 -41
  62. package/dist/cjs/ui/Addon/ClickAreaMobile/index.js +0 -105
  63. package/dist/es2019/ui/Addon/ClickAreaInline/index.js +0 -34
  64. package/dist/es2019/ui/Addon/ClickAreaMobile/index.js +0 -85
  65. package/dist/esm/ui/Addon/ClickAreaInline/index.js +0 -33
  66. package/dist/esm/ui/Addon/ClickAreaMobile/index.js +0 -103
  67. package/dist/types/ui/Addon/ClickAreaInline/index.d.ts +0 -13
  68. package/dist/types/ui/Addon/ClickAreaMobile/index.d.ts +0 -34
  69. package/dist/types-ts4.5/ui/Addon/ClickAreaInline/index.d.ts +0 -13
  70. package/dist/types-ts4.5/ui/Addon/ClickAreaMobile/index.d.ts +0 -34
@@ -568,6 +568,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
568
568
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"unsupportedContent", {}, undefined>,
569
569
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"placeholder", {
570
570
  pluginConfiguration: import("@atlaskit/editor-plugins/placeholder").PlaceholderPluginOptions | undefined;
571
+ commands: {
572
+ setPlaceholder: (placeholder: string) => import("@atlaskit/editor-common/types").EditorCommand;
573
+ };
571
574
  dependencies: [
572
575
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
573
576
  sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
@@ -602,7 +605,18 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
602
605
  commands: {
603
606
  setMode: (mode: import("@atlaskit/editor-plugins/connectivity").Mode | null) => import("@atlaskit/editor-common/types").EditorCommand;
604
607
  };
605
- }, undefined>>
608
+ }, undefined>>,
609
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextPanel", {
610
+ pluginConfiguration: import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined;
611
+ actions: {
612
+ applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
613
+ showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
614
+ closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
615
+ };
616
+ sharedState: {
617
+ contents: import("react").ReactNode[] | undefined;
618
+ } | undefined;
619
+ }, import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined>>
606
620
  ];
607
621
  sharedState: import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginSharedState;
608
622
  actions: {
@@ -664,7 +678,18 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
664
678
  commands: {
665
679
  setMode: (mode: import("@atlaskit/editor-plugins/connectivity").Mode | null) => import("@atlaskit/editor-common/types").EditorCommand;
666
680
  };
667
- }, undefined>>
681
+ }, undefined>>,
682
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextPanel", {
683
+ pluginConfiguration: import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined;
684
+ actions: {
685
+ applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
686
+ showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
687
+ closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
688
+ };
689
+ sharedState: {
690
+ contents: import("react").ReactNode[] | undefined;
691
+ } | undefined;
692
+ }, import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined>>
668
693
  ];
669
694
  sharedState: import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginSharedState;
670
695
  actions: {
@@ -878,7 +903,18 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
878
903
  commands: {
879
904
  setMode: (mode: import("@atlaskit/editor-plugins/connectivity").Mode | null) => import("@atlaskit/editor-common/types").EditorCommand;
880
905
  };
881
- }, undefined>>
906
+ }, undefined>>,
907
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextPanel", {
908
+ pluginConfiguration: import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined;
909
+ actions: {
910
+ applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
911
+ showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
912
+ closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
913
+ };
914
+ sharedState: {
915
+ contents: import("react").ReactNode[] | undefined;
916
+ } | undefined;
917
+ }, import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined>>
882
918
  ];
883
919
  sharedState: import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginSharedState;
884
920
  actions: {
@@ -909,7 +945,10 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
909
945
  };
910
946
  }, import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginOptions | undefined>,
911
947
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"history", {
912
- sharedState: import("@atlaskit/editor-plugins/history").HistoryPluginState | undefined;
948
+ sharedState: import("packages/editor/editor-plugin-history/dist/types/historyPluginType").HistoryPluginSharedState | undefined;
949
+ commands: {
950
+ updatePluginState: import("@atlaskit/editor-common/types").EditorCommand;
951
+ };
913
952
  }, undefined>,
914
953
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
915
954
  sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
@@ -932,7 +971,10 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
932
971
  };
933
972
  }, undefined>,
934
973
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"history", {
935
- sharedState: import("@atlaskit/editor-plugins/history").HistoryPluginState | undefined;
974
+ sharedState: import("packages/editor/editor-plugin-history/dist/types/historyPluginType").HistoryPluginSharedState | undefined;
975
+ commands: {
976
+ updatePluginState: import("@atlaskit/editor-common/types").EditorCommand;
977
+ };
936
978
  }, undefined> | undefined,
937
979
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
938
980
  pluginConfiguration: import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginOptions | undefined;
@@ -961,7 +1003,18 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
961
1003
  commands: {
962
1004
  setMode: (mode: import("@atlaskit/editor-plugins/connectivity").Mode | null) => import("@atlaskit/editor-common/types").EditorCommand;
963
1005
  };
964
- }, undefined>>
1006
+ }, undefined>>,
1007
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextPanel", {
1008
+ pluginConfiguration: import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined;
1009
+ actions: {
1010
+ applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
1011
+ showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
1012
+ closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
1013
+ };
1014
+ sharedState: {
1015
+ contents: import("react").ReactNode[] | undefined;
1016
+ } | undefined;
1017
+ }, import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined>>
965
1018
  ];
966
1019
  sharedState: import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginSharedState;
967
1020
  actions: {
@@ -15,6 +15,7 @@ export { default as WithEditorActions } from './ui/WithEditorActions';
15
15
  */
16
16
  export { default as WithHelpTrigger } from './ui/WithHelpTrigger';
17
17
  export { default as CollapsedEditor } from './ui/CollapsedEditor';
18
+ export { ToolbarPortalContextProvider, useToolbarPortal } from './ui/Toolbar/ToolbarPortal';
18
19
  export { default as ToolbarHelp } from './ui/ToolbarHelp';
19
20
  export {
20
21
  /**
@@ -620,6 +620,9 @@ export default function createUniversalPresetInternal({ appearance, props, featu
620
620
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"unsupportedContent", {}, undefined>,
621
621
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"placeholder", {
622
622
  pluginConfiguration: import("@atlaskit/editor-plugins/placeholder").PlaceholderPluginOptions | undefined;
623
+ commands: {
624
+ setPlaceholder: (placeholder: string) => import("@atlaskit/editor-common/types").EditorCommand;
625
+ };
623
626
  dependencies: [
624
627
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
625
628
  sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
@@ -654,7 +657,18 @@ export default function createUniversalPresetInternal({ appearance, props, featu
654
657
  commands: {
655
658
  setMode: (mode: import("@atlaskit/editor-plugins/connectivity").Mode | null) => import("@atlaskit/editor-common/types").EditorCommand;
656
659
  };
657
- }, undefined>>
660
+ }, undefined>>,
661
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextPanel", {
662
+ pluginConfiguration: import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined;
663
+ actions: {
664
+ applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
665
+ showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
666
+ closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
667
+ };
668
+ sharedState: {
669
+ contents: import("react").ReactNode[] | undefined;
670
+ } | undefined;
671
+ }, import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined>>
658
672
  ];
659
673
  sharedState: import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginSharedState;
660
674
  actions: {
@@ -716,7 +730,18 @@ export default function createUniversalPresetInternal({ appearance, props, featu
716
730
  commands: {
717
731
  setMode: (mode: import("@atlaskit/editor-plugins/connectivity").Mode | null) => import("@atlaskit/editor-common/types").EditorCommand;
718
732
  };
719
- }, undefined>>
733
+ }, undefined>>,
734
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextPanel", {
735
+ pluginConfiguration: import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined;
736
+ actions: {
737
+ applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
738
+ showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
739
+ closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
740
+ };
741
+ sharedState: {
742
+ contents: import("react").ReactNode[] | undefined;
743
+ } | undefined;
744
+ }, import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined>>
720
745
  ];
721
746
  sharedState: import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginSharedState;
722
747
  actions: {
@@ -930,7 +955,18 @@ export default function createUniversalPresetInternal({ appearance, props, featu
930
955
  commands: {
931
956
  setMode: (mode: import("@atlaskit/editor-plugins/connectivity").Mode | null) => import("@atlaskit/editor-common/types").EditorCommand;
932
957
  };
933
- }, undefined>>
958
+ }, undefined>>,
959
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextPanel", {
960
+ pluginConfiguration: import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined;
961
+ actions: {
962
+ applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
963
+ showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
964
+ closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
965
+ };
966
+ sharedState: {
967
+ contents: import("react").ReactNode[] | undefined;
968
+ } | undefined;
969
+ }, import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined>>
934
970
  ];
935
971
  sharedState: import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginSharedState;
936
972
  actions: {
@@ -961,7 +997,10 @@ export default function createUniversalPresetInternal({ appearance, props, featu
961
997
  };
962
998
  }, import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginOptions | undefined>,
963
999
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"history", {
964
- sharedState: import("@atlaskit/editor-plugins/history").HistoryPluginState | undefined;
1000
+ sharedState: import("packages/editor/editor-plugin-history/dist/types/historyPluginType").HistoryPluginSharedState | undefined;
1001
+ commands: {
1002
+ updatePluginState: import("@atlaskit/editor-common/types").EditorCommand;
1003
+ };
965
1004
  }, undefined>,
966
1005
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
967
1006
  sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
@@ -984,7 +1023,10 @@ export default function createUniversalPresetInternal({ appearance, props, featu
984
1023
  };
985
1024
  }, undefined>,
986
1025
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"history", {
987
- sharedState: import("@atlaskit/editor-plugins/history").HistoryPluginState | undefined;
1026
+ sharedState: import("packages/editor/editor-plugin-history/dist/types/historyPluginType").HistoryPluginSharedState | undefined;
1027
+ commands: {
1028
+ updatePluginState: import("@atlaskit/editor-common/types").EditorCommand;
1029
+ };
988
1030
  }, undefined> | undefined,
989
1031
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
990
1032
  pluginConfiguration: import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginOptions | undefined;
@@ -1013,7 +1055,18 @@ export default function createUniversalPresetInternal({ appearance, props, featu
1013
1055
  commands: {
1014
1056
  setMode: (mode: import("@atlaskit/editor-plugins/connectivity").Mode | null) => import("@atlaskit/editor-common/types").EditorCommand;
1015
1057
  };
1016
- }, undefined>>
1058
+ }, undefined>>,
1059
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextPanel", {
1060
+ pluginConfiguration: import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined;
1061
+ actions: {
1062
+ applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
1063
+ showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
1064
+ closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
1065
+ };
1066
+ sharedState: {
1067
+ contents: import("react").ReactNode[] | undefined;
1068
+ } | undefined;
1069
+ }, import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined>>
1017
1070
  ];
1018
1071
  sharedState: import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginSharedState;
1019
1072
  actions: {
@@ -568,6 +568,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
568
568
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"unsupportedContent", {}, undefined>,
569
569
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"placeholder", {
570
570
  pluginConfiguration: import("@atlaskit/editor-plugins/placeholder").PlaceholderPluginOptions | undefined;
571
+ commands: {
572
+ setPlaceholder: (placeholder: string) => import("@atlaskit/editor-common/types").EditorCommand;
573
+ };
571
574
  dependencies: [
572
575
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"focus", {
573
576
  sharedState: import("@atlaskit/editor-plugins/focus").FocusState;
@@ -602,7 +605,18 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
602
605
  commands: {
603
606
  setMode: (mode: import("@atlaskit/editor-plugins/connectivity").Mode | null) => import("@atlaskit/editor-common/types").EditorCommand;
604
607
  };
605
- }, undefined>>
608
+ }, undefined>>,
609
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextPanel", {
610
+ pluginConfiguration: import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined;
611
+ actions: {
612
+ applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
613
+ showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
614
+ closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
615
+ };
616
+ sharedState: {
617
+ contents: import("react").ReactNode[] | undefined;
618
+ } | undefined;
619
+ }, import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined>>
606
620
  ];
607
621
  sharedState: import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginSharedState;
608
622
  actions: {
@@ -664,7 +678,18 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
664
678
  commands: {
665
679
  setMode: (mode: import("@atlaskit/editor-plugins/connectivity").Mode | null) => import("@atlaskit/editor-common/types").EditorCommand;
666
680
  };
667
- }, undefined>>
681
+ }, undefined>>,
682
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextPanel", {
683
+ pluginConfiguration: import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined;
684
+ actions: {
685
+ applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
686
+ showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
687
+ closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
688
+ };
689
+ sharedState: {
690
+ contents: import("react").ReactNode[] | undefined;
691
+ } | undefined;
692
+ }, import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined>>
668
693
  ];
669
694
  sharedState: import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginSharedState;
670
695
  actions: {
@@ -878,7 +903,18 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
878
903
  commands: {
879
904
  setMode: (mode: import("@atlaskit/editor-plugins/connectivity").Mode | null) => import("@atlaskit/editor-common/types").EditorCommand;
880
905
  };
881
- }, undefined>>
906
+ }, undefined>>,
907
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextPanel", {
908
+ pluginConfiguration: import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined;
909
+ actions: {
910
+ applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
911
+ showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
912
+ closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
913
+ };
914
+ sharedState: {
915
+ contents: import("react").ReactNode[] | undefined;
916
+ } | undefined;
917
+ }, import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined>>
882
918
  ];
883
919
  sharedState: import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginSharedState;
884
920
  actions: {
@@ -909,7 +945,10 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
909
945
  };
910
946
  }, import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginOptions | undefined>,
911
947
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"history", {
912
- sharedState: import("@atlaskit/editor-plugins/history").HistoryPluginState | undefined;
948
+ sharedState: import("packages/editor/editor-plugin-history/dist/types/historyPluginType").HistoryPluginSharedState | undefined;
949
+ commands: {
950
+ updatePluginState: import("@atlaskit/editor-common/types").EditorCommand;
951
+ };
913
952
  }, undefined>,
914
953
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"primaryToolbar", {
915
954
  sharedState: import("@atlaskit/editor-plugins/primary-toolbar").PrimaryToolbarPluginState | undefined;
@@ -932,7 +971,10 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
932
971
  };
933
972
  }, undefined>,
934
973
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"history", {
935
- sharedState: import("@atlaskit/editor-plugins/history").HistoryPluginState | undefined;
974
+ sharedState: import("packages/editor/editor-plugin-history/dist/types/historyPluginType").HistoryPluginSharedState | undefined;
975
+ commands: {
976
+ updatePluginState: import("@atlaskit/editor-common/types").EditorCommand;
977
+ };
936
978
  }, undefined> | undefined,
937
979
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"typeAhead", {
938
980
  pluginConfiguration: import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginOptions | undefined;
@@ -961,7 +1003,18 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
961
1003
  commands: {
962
1004
  setMode: (mode: import("@atlaskit/editor-plugins/connectivity").Mode | null) => import("@atlaskit/editor-common/types").EditorCommand;
963
1005
  };
964
- }, undefined>>
1006
+ }, undefined>>,
1007
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"contextPanel", {
1008
+ pluginConfiguration: import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined;
1009
+ actions: {
1010
+ applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
1011
+ showPanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").ShowObjectSidebar;
1012
+ closePanel: import("packages/editor/editor-plugin-context-panel/dist/types/types/object-siderbar-types").HideObjectSidebar;
1013
+ };
1014
+ sharedState: {
1015
+ contents: import("react").ReactNode[] | undefined;
1016
+ } | undefined;
1017
+ }, import("@atlaskit/editor-plugins/context-panel").ContextPanelPluginOptions | undefined>>
965
1018
  ];
966
1019
  sharedState: import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginSharedState;
967
1020
  actions: {
@@ -0,0 +1,6 @@
1
+ import type { ReactComponents } from '../../../types';
2
+ export declare const ignoreAttribute = "data-editor-content-component";
3
+ /**
4
+ * Wraps content components in a data attribute to ignore
5
+ */
6
+ export declare const contentComponentClickWrapper: (reactComponents: ReactComponents | undefined) => ReactComponents | undefined;
@@ -10,4 +10,5 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
10
10
  */
11
11
  export declare const checkForModal: (target: HTMLElement | null) => boolean;
12
12
  declare const clickAreaClickHandler: (view: EditorView, event: React.MouseEvent<HTMLElement>) => false | undefined;
13
+ export declare const outsideProsemirrorEditorClickHandler: (view: EditorView, event: React.MouseEvent<HTMLElement, MouseEvent>) => void;
13
14
  export { clickAreaClickHandler };
@@ -0,0 +1,21 @@
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
5
+ import React from 'react';
6
+ type ToolbarPortalContextValue = {
7
+ Portal: React.ComponentType<{
8
+ children: React.ReactNode;
9
+ }>;
10
+ isActive: boolean;
11
+ };
12
+ export declare const ToolbarPortalContextProvider: ({ children, portal, isActive, }: {
13
+ children: React.ReactNode;
14
+ portal: React.ComponentType<{
15
+ children: React.ReactNode;
16
+ }>;
17
+ isActive: boolean;
18
+ }) => JSX.Element;
19
+ export declare const useToolbarPortal: () => ToolbarPortalContextValue | undefined;
20
+ export declare const ToolbarPortalMountPoint: () => JSX.Element | null;
21
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "203.16.4",
3
+ "version": "203.17.2",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -38,24 +38,26 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@atlaskit/activity-provider": "^2.5.0",
41
- "@atlaskit/adf-schema": "^46.1.0",
42
- "@atlaskit/analytics-namespaced-context": "^6.13.0",
41
+ "@atlaskit/adf-schema": "^47.2.1",
42
+ "@atlaskit/analytics-namespaced-context": "^6.14.0",
43
43
  "@atlaskit/analytics-next": "^10.3.0",
44
44
  "@atlaskit/analytics-next-stable-react-context": "1.0.1",
45
45
  "@atlaskit/button": "^20.5.0",
46
- "@atlaskit/editor-common": "^99.11.0",
46
+ "@atlaskit/editor-common": "^99.17.0",
47
47
  "@atlaskit/editor-json-transformer": "^8.23.0",
48
- "@atlaskit/editor-plugin-quick-insert": "1.10.1",
48
+ "@atlaskit/editor-performance-metrics": "1.4.0",
49
+ "@atlaskit/editor-plugin-quick-insert": "1.10.2",
49
50
  "@atlaskit/editor-plugins": "^7.2.0",
50
51
  "@atlaskit/editor-prosemirror": "7.0.0",
51
- "@atlaskit/editor-shared-styles": "^3.2.0",
52
- "@atlaskit/emoji": "^67.13.0",
53
- "@atlaskit/icon": "^23.8.0",
52
+ "@atlaskit/editor-shared-styles": "^3.3.0",
53
+ "@atlaskit/emoji": "^67.14.0",
54
+ "@atlaskit/icon": "^23.9.0",
54
55
  "@atlaskit/media-card": "^78.19.0",
55
56
  "@atlaskit/mention": "^23.11.0",
56
- "@atlaskit/platform-feature-flags": "^1.0.0",
57
+ "@atlaskit/platform-feature-flags": "^1.1.0",
58
+ "@atlaskit/react-ufo": "^2.15.0",
57
59
  "@atlaskit/task-decision": "^17.12.0",
58
- "@atlaskit/tmp-editor-statsig": "^2.45.0",
60
+ "@atlaskit/tmp-editor-statsig": "^2.46.0",
59
61
  "@atlaskit/tokens": "^3.3.0",
60
62
  "@atlaskit/tooltip": "^19.1.0",
61
63
  "@atlaskit/width-detector": "^4.4.0",
@@ -82,28 +84,28 @@
82
84
  "@af/editor-libra": "*",
83
85
  "@af/visual-regression": "*",
84
86
  "@atlaskit/adf-utils": "^19.18.0",
85
- "@atlaskit/analytics-listeners": "^8.14.0",
86
- "@atlaskit/collab-provider": "10.6.0",
87
- "@atlaskit/editor-plugin-annotation": "1.28.0",
87
+ "@atlaskit/analytics-listeners": "^8.15.0",
88
+ "@atlaskit/collab-provider": "10.6.2",
89
+ "@atlaskit/editor-plugin-annotation": "1.28.1",
88
90
  "@atlaskit/editor-plugin-card": "^4.6.0",
89
91
  "@atlaskit/editor-plugin-list": "^3.10.0",
90
- "@atlaskit/editor-plugin-paste": "^2.2.0",
92
+ "@atlaskit/editor-plugin-paste": "^2.3.0",
91
93
  "@atlaskit/link-provider": "^1.19.0",
92
- "@atlaskit/logo": "^15.2.0",
94
+ "@atlaskit/logo": "^15.3.0",
93
95
  "@atlaskit/media-core": "^34.5.0",
94
96
  "@atlaskit/media-integration-test-helpers": "^3.1.0",
95
97
  "@atlaskit/media-test-helpers": "^34.8.0",
96
98
  "@atlaskit/modal-dialog": "^12.20.0",
97
99
  "@atlaskit/primitives": "^13.5.0",
98
- "@atlaskit/renderer": "^112.13.0",
100
+ "@atlaskit/renderer": "^112.14.0",
99
101
  "@atlaskit/smart-card": "^34.10.0",
100
102
  "@atlaskit/synchrony-test-helpers": "^3.1.0",
101
103
  "@atlaskit/toggle": "^14.1.0",
102
104
  "@atlaskit/util-data-test": "^18.0.0",
103
105
  "@atlaskit/visual-regression": "*",
104
- "@atlassian/adf-schema-json": "^1.22.0",
106
+ "@atlassian/adf-schema-json": "^1.27.0",
105
107
  "@atlassian/feature-flags-test-utils": "*",
106
- "@atlassian/search-provider": "3.0.34",
108
+ "@atlassian/search-provider": "3.0.35",
107
109
  "@emotion/jest": "^11.8.0",
108
110
  "@storybook/addon-knobs": "^6.4.0",
109
111
  "@testing-library/react": "^13.4.0",
@@ -140,6 +142,12 @@
140
142
  }
141
143
  },
142
144
  "platform-feature-flags": {
145
+ "platform_editor_fe--performance_metrics": {
146
+ "type": "boolean"
147
+ },
148
+ "platform_editor_fe--ufo-bridge": {
149
+ "type": "boolean"
150
+ },
143
151
  "annotations_defensive_node_name_calculations": {
144
152
  "type": "boolean",
145
153
  "referenceOnly": "true"
@@ -286,6 +294,9 @@
286
294
  "type": "boolean",
287
295
  "referenceOnly": true
288
296
  },
297
+ "platform_editor_content_component_ignore_click": {
298
+ "type": "boolean"
299
+ },
289
300
  "platform_inline_node_as_valid_annotation_selection": {
290
301
  "type": "boolean",
291
302
  "referenceOnly": true
@@ -434,6 +445,21 @@
434
445
  "platform_editor_css_migrate_stage_1": {
435
446
  "type": "boolean",
436
447
  "referenceOnly": true
448
+ },
449
+ "platform_editor_lcm_toolbar_portals": {
450
+ "type": "boolean"
451
+ },
452
+ "platform_editor_macroid_reset_for_ext_on_paste": {
453
+ "type": "boolean",
454
+ "referenceOnly": true
455
+ },
456
+ "platform_editor_track_node_types": {
457
+ "type": "boolean",
458
+ "referenceOnly": true
459
+ },
460
+ "platform_editor_nested_tables_view_mode_sort": {
461
+ "type": "boolean",
462
+ "referenceOnly": true
437
463
  }
438
464
  },
439
465
  "stricter": {
@@ -1,41 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.default = exports.ClickAreaInline = void 0;
8
- var _react = _interopRequireDefault(require("react"));
9
- var _react2 = require("@emotion/react");
10
- var _commands = require("@atlaskit/editor-common/commands");
11
- /**
12
- * @jsxRuntime classic
13
- * @jsx jsx
14
- */
15
-
16
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
17
-
18
- var clickArea = (0, _react2.css)({
19
- flexGrow: 1
20
- });
21
- var ClickAreaInline = exports.ClickAreaInline = function ClickAreaInline(_ref) {
22
- var editorView = _ref.editorView,
23
- children = _ref.children;
24
- var handleMouseDown = _react.default.useCallback(function (event) {
25
- if (!editorView) {
26
- return;
27
- }
28
- if ((0, _commands.createParagraphAtEnd)()(editorView.state, editorView.dispatch)) {
29
- editorView.focus();
30
- event.stopPropagation();
31
- }
32
- }, [editorView]);
33
-
34
- // eslint-disable-next-line jsx-a11y/no-static-element-interactions
35
- return (0, _react2.jsx)("div", {
36
- "data-testid": "click-wrapper",
37
- css: clickArea,
38
- onMouseDown: handleMouseDown
39
- });
40
- };
41
- var _default = exports.default = ClickAreaInline;