@atlaskit/editor-core 191.6.0 → 191.6.1

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 (71) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/afm-cc/tsconfig.json +1 -211
  3. package/dist/cjs/composable-editor/editor.js +2 -2
  4. package/dist/cjs/labs-next.js +1 -1
  5. package/dist/cjs/presets/default.js +32 -32
  6. package/dist/cjs/presets/universal.js +70 -70
  7. package/dist/cjs/test-utils.js +2 -2
  8. package/dist/cjs/ui/Appearance/Comment/Comment.js +1 -1
  9. package/dist/cjs/ui/Appearance/FullPage/BeforeWrapper.js +1 -1
  10. package/dist/cjs/ui/Appearance/FullPage/StyledComponents.js +2 -2
  11. package/dist/cjs/ui/ContentStyles/expand.js +1 -1
  12. package/dist/cjs/ui/ContentStyles/index.js +5 -5
  13. package/dist/cjs/ui/ContentStyles/layout.js +2 -2
  14. package/dist/cjs/ui/WithHelpTrigger/index.js +2 -2
  15. package/dist/cjs/version-wrapper.js +1 -1
  16. package/dist/es2019/composable-editor/editor.js +1 -1
  17. package/dist/es2019/index.js +2 -2
  18. package/dist/es2019/labs-next.js +1 -1
  19. package/dist/es2019/presets/default.js +28 -28
  20. package/dist/es2019/presets/universal.js +45 -45
  21. package/dist/es2019/test-utils.js +1 -1
  22. package/dist/es2019/ui/Appearance/Comment/Comment.js +1 -1
  23. package/dist/es2019/ui/Appearance/FullPage/BeforeWrapper.js +1 -1
  24. package/dist/es2019/ui/Appearance/FullPage/StyledComponents.js +2 -2
  25. package/dist/es2019/ui/ContentStyles/expand.js +2 -2
  26. package/dist/es2019/ui/ContentStyles/index.js +5 -5
  27. package/dist/es2019/ui/ContentStyles/layout.js +2 -2
  28. package/dist/es2019/ui/WithHelpTrigger/index.js +1 -1
  29. package/dist/es2019/version-wrapper.js +1 -1
  30. package/dist/esm/composable-editor/editor.js +1 -1
  31. package/dist/esm/index.js +2 -2
  32. package/dist/esm/labs-next.js +1 -1
  33. package/dist/esm/presets/default.js +28 -28
  34. package/dist/esm/presets/universal.js +45 -45
  35. package/dist/esm/test-utils.js +1 -1
  36. package/dist/esm/ui/Appearance/Comment/Comment.js +1 -1
  37. package/dist/esm/ui/Appearance/FullPage/BeforeWrapper.js +1 -1
  38. package/dist/esm/ui/Appearance/FullPage/StyledComponents.js +2 -2
  39. package/dist/esm/ui/ContentStyles/expand.js +2 -2
  40. package/dist/esm/ui/ContentStyles/index.js +5 -5
  41. package/dist/esm/ui/ContentStyles/layout.js +2 -2
  42. package/dist/esm/ui/WithHelpTrigger/index.js +1 -1
  43. package/dist/esm/version-wrapper.js +1 -1
  44. package/dist/types/create-editor/create-plugins-list.d.ts +3 -4
  45. package/dist/types/create-editor/create-preset.d.ts +80 -40
  46. package/dist/types/index.d.ts +4 -4
  47. package/dist/types/labs-next.d.ts +1 -1
  48. package/dist/types/presets/default.d.ts +770 -730
  49. package/dist/types/presets/universal.d.ts +278 -239
  50. package/dist/types/presets/useUniversalPreset.d.ts +80 -40
  51. package/dist/types/types/editor-props.d.ts +12 -12
  52. package/dist/types/ui/ContextPanel/index.d.ts +1 -1
  53. package/dist/types/utils/action.d.ts +2 -2
  54. package/dist/types-ts4.5/create-editor/create-plugins-list.d.ts +3 -4
  55. package/dist/types-ts4.5/create-editor/create-preset.d.ts +84 -40
  56. package/dist/types-ts4.5/index.d.ts +4 -4
  57. package/dist/types-ts4.5/labs-next.d.ts +1 -1
  58. package/dist/types-ts4.5/presets/default.d.ts +774 -730
  59. package/dist/types-ts4.5/presets/universal.d.ts +282 -239
  60. package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +84 -40
  61. package/dist/types-ts4.5/types/editor-props.d.ts +12 -12
  62. package/dist/types-ts4.5/ui/ContextPanel/index.d.ts +1 -1
  63. package/dist/types-ts4.5/utils/action.d.ts +2 -2
  64. package/docs/0-intro.tsx +5 -5
  65. package/package.json +16 -149
  66. package/tsconfig.json +193 -166
  67. package/dist/cjs/presets/types.js +0 -5
  68. package/dist/es2019/presets/types.js +0 -1
  69. package/dist/esm/presets/types.js +0 -1
  70. package/dist/types/presets/types.d.ts +0 -6
  71. package/dist/types-ts4.5/presets/types.d.ts +0 -6
@@ -24,7 +24,7 @@ var _hooks = require("@atlaskit/editor-common/hooks");
24
24
  var _styles = require("@atlaskit/editor-common/styles");
25
25
  var _ui = require("@atlaskit/editor-common/ui");
26
26
  var _uiMenu = require("@atlaskit/editor-common/ui-menu");
27
- var _commonStyles = require("@atlaskit/editor-plugin-table/ui/common-styles");
27
+ var _commonStyles = require("@atlaskit/editor-plugins/table/ui/common-styles");
28
28
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
29
29
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
30
30
  var _colors = require("@atlaskit/theme/colors");
@@ -14,7 +14,7 @@ var beforePrimaryToolbarPluginWrapperStyles = (0, _react.css)({
14
14
  justifyContent: 'flex-end',
15
15
  alignItems: 'center'
16
16
  });
17
- // Duplicate of the wrapper from `editor-plugin-before-primary-toolbar` used
17
+ // Duplicate of the wrapper from `editor-plugins/before-primary-toolbar` used
18
18
  // only in `FullPageToolbar` to decouple the plugin from the main toolbar
19
19
  var BeforePrimaryToolbarWrapper = exports.BeforePrimaryToolbarWrapper = function BeforePrimaryToolbarWrapper(props) {
20
20
  return (0, _react.jsx)("div", {
@@ -8,8 +8,8 @@ exports.sidebarArea = exports.positionedOverEditorStyle = exports.fullPageEditor
8
8
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
9
  var _react = require("@emotion/react");
10
10
  var _adfSchema = require("@atlaskit/adf-schema");
11
- var _commonStyles = require("@atlaskit/editor-plugin-table/ui/common-styles");
12
- var _consts = require("@atlaskit/editor-plugin-table/ui/consts");
11
+ var _commonStyles = require("@atlaskit/editor-plugins/table/ui/common-styles");
12
+ var _consts = require("@atlaskit/editor-plugins/table/ui/consts");
13
13
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
14
14
  var _ContentStyles = require("../../ContentStyles");
15
15
  var _styles = require("../../styles");
@@ -14,7 +14,7 @@ var _colors = require("@atlaskit/theme/colors");
14
14
  var _templateObject, _templateObject2;
15
15
  var EXPAND_SELECTED_BACKGROUND = "var(--ds-background-neutral-subtle, rgba(255, 255, 255, 0.6))";
16
16
  var EXPAND_ICON_COLOR = function EXPAND_ICON_COLOR() {
17
- return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n"])), "var(--ds-icon-subtle, ".concat(_colors.N80A, ")"));
17
+ return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n"])), "var(--ds-icon-subtle, ".concat(_colors.N100A, ")"));
18
18
  };
19
19
  var DANGER_STATE_BACKGROUND_COLOR = "var(--ds-background-danger, ".concat(_colors.R50, ")");
20
20
  var DANGER_STATE_BORDER_COLOR = "var(--ds-border-danger, ".concat(_colors.R300, ")");
@@ -15,11 +15,11 @@ var _mention = require("@atlaskit/editor-common/mention");
15
15
  var _selection = require("@atlaskit/editor-common/selection");
16
16
  var _styles = require("@atlaskit/editor-common/styles");
17
17
  var _utils = require("@atlaskit/editor-common/utils");
18
- var _styles2 = require("@atlaskit/editor-plugin-block-type/styles");
19
- var _styles3 = require("@atlaskit/editor-plugin-find-replace/styles");
20
- var _styles4 = require("@atlaskit/editor-plugin-paste-options-toolbar/styles");
21
- var _styles5 = require("@atlaskit/editor-plugin-placeholder-text/styles");
22
- var _commonStyles = require("@atlaskit/editor-plugin-table/ui/common-styles");
18
+ var _styles2 = require("@atlaskit/editor-plugins/block-type/styles");
19
+ var _styles3 = require("@atlaskit/editor-plugins/find-replace/styles");
20
+ var _styles4 = require("@atlaskit/editor-plugins/paste-options-toolbar/styles");
21
+ var _styles5 = require("@atlaskit/editor-plugins/placeholder-text/styles");
22
+ var _commonStyles = require("@atlaskit/editor-plugins/table/ui/common-styles");
23
23
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
24
24
  var _colors = require("@atlaskit/theme/colors");
25
25
  var _getInlineNodeViewProducer = require("../../nodeviews/getInlineNodeViewProducer.styles");
@@ -20,8 +20,8 @@ exports.layoutStyles = void 0;
20
20
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
21
21
  var _react = require("@emotion/react");
22
22
  var _styles = require("@atlaskit/editor-common/styles");
23
- var _types = require("@atlaskit/editor-plugin-table/types");
24
- var _consts = require("@atlaskit/editor-plugin-table/ui/consts");
23
+ var _types = require("@atlaskit/editor-plugins/table/types");
24
+ var _consts = require("@atlaskit/editor-plugins/table/ui/consts");
25
25
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
26
26
  var _colors = require("@atlaskit/theme/colors");
27
27
  var _templateObject;
@@ -16,7 +16,7 @@ var _react = _interopRequireDefault(require("react"));
16
16
  var _propTypes = _interopRequireDefault(require("prop-types"));
17
17
  var _analytics = require("@atlaskit/editor-common/analytics");
18
18
  var _utils = require("@atlaskit/editor-common/utils");
19
- var _editorPluginHelpDialog = require("@atlaskit/editor-plugin-help-dialog");
19
+ var _helpDialog = require("@atlaskit/editor-plugins/help-dialog");
20
20
  var _eventDispatcher = require("../../event-dispatcher");
21
21
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
22
22
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
@@ -46,7 +46,7 @@ var WithHelpTrigger = exports.default = /*#__PURE__*/function (_React$Component)
46
46
  });
47
47
  var editorView = editorActions._privateGetEditorView();
48
48
  if (editorView) {
49
- (0, _editorPluginHelpDialog.deprecatedOpenHelpCommand)(editorView.state.tr, editorView.dispatch);
49
+ (0, _helpDialog.deprecatedOpenHelpCommand)(editorView.state.tr, editorView.dispatch);
50
50
  }
51
51
  });
52
52
  return _this;
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "191.6.0";
8
+ var version = exports.version = "191.6.1";
@@ -10,7 +10,7 @@ import { ACTION, fireAnalyticsEvent } from '@atlaskit/editor-common/analytics';
10
10
  import { useConstructor } from '@atlaskit/editor-common/hooks';
11
11
  import { EditorExperience, ExperienceStore } from '@atlaskit/editor-common/ufo';
12
12
  import { getAnalyticsAppearance, startMeasure, stopMeasure } from '@atlaskit/editor-common/utils';
13
- import { basePlugin } from '@atlaskit/editor-plugin-base';
13
+ import { basePlugin } from '@atlaskit/editor-plugins/base';
14
14
  import EditorActions from '../actions';
15
15
  import { createFeatureFlagsFromProps } from '../create-editor/feature-flags-from-props';
16
16
  import { useEditorContext } from '../ui/EditorContext';
@@ -23,7 +23,7 @@ export { AnnotationUpdateEmitter } from '@atlaskit/editor-common/annotation';
23
23
  * @deprecated
24
24
  * DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
25
25
  * This is here while we work to extract the annotation plugin.
26
- * Please use the export from `@atlaskit/editor-plugin-annotation`.
26
+ * Please use the export from `@atlaskit/editor-plugins/annotation`.
27
27
  */
28
28
 
29
29
  // Used in mobile bridge
@@ -47,5 +47,5 @@ export { PortalProvider, PortalProviderAPI, PortalRenderer } from '@atlaskit/edi
47
47
  * @deprecated
48
48
  * DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
49
49
  * This is here while we work to extract the media plugin.
50
- * Please use the export from `@atlaskit/editor-plugin-media/types`.
50
+ * Please use the export from `@atlaskit/editor-plugins/media/types`.
51
51
  */
@@ -1 +1 @@
1
- export { createDefaultPreset } from './presets/default';
1
+ export { createDefaultPreset } from '../src/presets/default';
@@ -1,34 +1,34 @@
1
1
  // #region Imports
2
2
 
3
3
  import { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
4
- import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
5
- import { annotationPlugin } from '@atlaskit/editor-plugin-annotation';
6
- import { basePlugin } from '@atlaskit/editor-plugin-base';
7
- import { betterTypeHistoryPlugin } from '@atlaskit/editor-plugin-better-type-history';
8
- import { blockTypePlugin } from '@atlaskit/editor-plugin-block-type';
9
- import { clearMarksOnEmptyDocPlugin } from '@atlaskit/editor-plugin-clear-marks-on-empty-doc';
10
- import { clipboardPlugin } from '@atlaskit/editor-plugin-clipboard';
11
- import { codeBlockPlugin } from '@atlaskit/editor-plugin-code-block';
12
- import { compositionPlugin } from '@atlaskit/editor-plugin-composition';
13
- import { copyButtonPlugin } from '@atlaskit/editor-plugin-copy-button';
14
- import { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
15
- import { editorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
16
- import { featureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
17
- import { floatingToolbarPlugin } from '@atlaskit/editor-plugin-floating-toolbar';
18
- import { focusPlugin } from '@atlaskit/editor-plugin-focus';
19
- import { historyPlugin } from '@atlaskit/editor-plugin-history';
20
- import { hyperlinkPlugin } from '@atlaskit/editor-plugin-hyperlink';
21
- import { pastePlugin } from '@atlaskit/editor-plugin-paste';
22
- import { placeholderPlugin } from '@atlaskit/editor-plugin-placeholder';
23
- import { quickInsertPlugin } from '@atlaskit/editor-plugin-quick-insert';
24
- import { selectionPlugin } from '@atlaskit/editor-plugin-selection';
25
- import { selectionToolbarPlugin } from '@atlaskit/editor-plugin-selection-toolbar';
26
- import { submitEditorPlugin } from '@atlaskit/editor-plugin-submit-editor';
27
- import { textFormattingPlugin } from '@atlaskit/editor-plugin-text-formatting';
28
- import { typeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
29
- import { undoRedoPlugin } from '@atlaskit/editor-plugin-undo-redo';
30
- import { unsupportedContentPlugin } from '@atlaskit/editor-plugin-unsupported-content';
31
- import { widthPlugin } from '@atlaskit/editor-plugin-width';
4
+ import { analyticsPlugin } from '@atlaskit/editor-plugins/analytics';
5
+ import { annotationPlugin } from '@atlaskit/editor-plugins/annotation';
6
+ import { basePlugin } from '@atlaskit/editor-plugins/base';
7
+ import { betterTypeHistoryPlugin } from '@atlaskit/editor-plugins/better-type-history';
8
+ import { blockTypePlugin } from '@atlaskit/editor-plugins/block-type';
9
+ import { clearMarksOnEmptyDocPlugin } from '@atlaskit/editor-plugins/clear-marks-on-empty-doc';
10
+ import { clipboardPlugin } from '@atlaskit/editor-plugins/clipboard';
11
+ import { codeBlockPlugin } from '@atlaskit/editor-plugins/code-block';
12
+ import { compositionPlugin } from '@atlaskit/editor-plugins/composition';
13
+ import { copyButtonPlugin } from '@atlaskit/editor-plugins/copy-button';
14
+ import { decorationsPlugin } from '@atlaskit/editor-plugins/decorations';
15
+ import { editorDisabledPlugin } from '@atlaskit/editor-plugins/editor-disabled';
16
+ import { featureFlagsPlugin } from '@atlaskit/editor-plugins/feature-flags';
17
+ import { floatingToolbarPlugin } from '@atlaskit/editor-plugins/floating-toolbar';
18
+ import { focusPlugin } from '@atlaskit/editor-plugins/focus';
19
+ import { historyPlugin } from '@atlaskit/editor-plugins/history';
20
+ import { hyperlinkPlugin } from '@atlaskit/editor-plugins/hyperlink';
21
+ import { pastePlugin } from '@atlaskit/editor-plugins/paste';
22
+ import { placeholderPlugin } from '@atlaskit/editor-plugins/placeholder';
23
+ import { quickInsertPlugin } from '@atlaskit/editor-plugins/quick-insert';
24
+ import { selectionPlugin } from '@atlaskit/editor-plugins/selection';
25
+ import { selectionToolbarPlugin } from '@atlaskit/editor-plugins/selection-toolbar';
26
+ import { submitEditorPlugin } from '@atlaskit/editor-plugins/submit-editor';
27
+ import { textFormattingPlugin } from '@atlaskit/editor-plugins/text-formatting';
28
+ import { typeAheadPlugin } from '@atlaskit/editor-plugins/type-ahead';
29
+ import { undoRedoPlugin } from '@atlaskit/editor-plugins/undo-redo';
30
+ import { unsupportedContentPlugin } from '@atlaskit/editor-plugins/unsupported-content';
31
+ import { widthPlugin } from '@atlaskit/editor-plugins/width';
32
32
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
33
33
 
34
34
  // #endregion
@@ -1,48 +1,48 @@
1
1
  import { shouldForceTracking } from '@atlaskit/editor-common/utils';
2
- import { alignmentPlugin } from '@atlaskit/editor-plugin-alignment';
3
- import { annotationPlugin } from '@atlaskit/editor-plugin-annotation';
4
- import { avatarGroupPlugin } from '@atlaskit/editor-plugin-avatar-group';
5
- import { beforePrimaryToolbarPlugin } from '@atlaskit/editor-plugin-before-primary-toolbar';
6
- import { borderPlugin } from '@atlaskit/editor-plugin-border';
7
- import { breakoutPlugin } from '@atlaskit/editor-plugin-breakout';
8
- import { captionPlugin } from '@atlaskit/editor-plugin-caption';
9
- import { cardPlugin } from '@atlaskit/editor-plugin-card';
10
- import { codeBidiWarningPlugin } from '@atlaskit/editor-plugin-code-bidi-warning';
11
- import { collabEditPlugin } from '@atlaskit/editor-plugin-collab-edit';
12
- import { contentInsertionPlugin } from '@atlaskit/editor-plugin-content-insertion';
13
- import { contextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
14
- import { customAutoformatPlugin } from '@atlaskit/editor-plugin-custom-autoformat';
15
- import { dataConsumerPlugin } from '@atlaskit/editor-plugin-data-consumer';
16
- import { datePlugin } from '@atlaskit/editor-plugin-date';
17
- import { emojiPlugin } from '@atlaskit/editor-plugin-emoji';
18
- import { expandPlugin } from '@atlaskit/editor-plugin-expand';
19
- import { extensionPlugin } from '@atlaskit/editor-plugin-extension';
20
- import { feedbackDialogPlugin } from '@atlaskit/editor-plugin-feedback-dialog';
21
- import { findReplacePlugin } from '@atlaskit/editor-plugin-find-replace';
22
- import { fragmentPlugin } from '@atlaskit/editor-plugin-fragment';
23
- import { gridPlugin } from '@atlaskit/editor-plugin-grid';
24
- import { guidelinePlugin } from '@atlaskit/editor-plugin-guideline';
25
- import { helpDialogPlugin } from '@atlaskit/editor-plugin-help-dialog';
26
- import { imageUploadPlugin } from '@atlaskit/editor-plugin-image-upload';
27
- import { indentationPlugin } from '@atlaskit/editor-plugin-indentation';
28
- import { insertBlockPlugin } from '@atlaskit/editor-plugin-insert-block';
29
- import { layoutPlugin } from '@atlaskit/editor-plugin-layout';
30
- import { listPlugin } from '@atlaskit/editor-plugin-list';
31
- import { loomPlugin } from '@atlaskit/editor-plugin-loom';
32
- import { maxContentSizePlugin } from '@atlaskit/editor-plugin-max-content-size';
33
- import { mediaPlugin } from '@atlaskit/editor-plugin-media';
34
- import { mentionsPlugin } from '@atlaskit/editor-plugin-mentions';
35
- import { panelPlugin } from '@atlaskit/editor-plugin-panel';
36
- import { pasteOptionsToolbarPlugin } from '@atlaskit/editor-plugin-paste-options-toolbar';
37
- import { placeholderTextPlugin } from '@atlaskit/editor-plugin-placeholder-text';
38
- import { rulePlugin } from '@atlaskit/editor-plugin-rule';
39
- import { saveOnEnterPlugin } from '@atlaskit/editor-plugin-save-on-enter';
40
- import { scrollIntoViewPlugin } from '@atlaskit/editor-plugin-scroll-into-view';
41
- import { statusPlugin } from '@atlaskit/editor-plugin-status';
42
- import { tablesPlugin } from '@atlaskit/editor-plugin-table';
43
- import { tasksAndDecisionsPlugin } from '@atlaskit/editor-plugin-tasks-and-decisions';
44
- import { textColorPlugin } from '@atlaskit/editor-plugin-text-color';
45
- import { toolbarListsIndentationPlugin } from '@atlaskit/editor-plugin-toolbar-lists-indentation';
2
+ import { alignmentPlugin } from '@atlaskit/editor-plugins/alignment';
3
+ import { annotationPlugin } from '@atlaskit/editor-plugins/annotation';
4
+ import { avatarGroupPlugin } from '@atlaskit/editor-plugins/avatar-group';
5
+ import { beforePrimaryToolbarPlugin } from '@atlaskit/editor-plugins/before-primary-toolbar';
6
+ import { borderPlugin } from '@atlaskit/editor-plugins/border';
7
+ import { breakoutPlugin } from '@atlaskit/editor-plugins/breakout';
8
+ import { captionPlugin } from '@atlaskit/editor-plugins/caption';
9
+ import { cardPlugin } from '@atlaskit/editor-plugins/card';
10
+ import { codeBidiWarningPlugin } from '@atlaskit/editor-plugins/code-bidi-warning';
11
+ import { collabEditPlugin } from '@atlaskit/editor-plugins/collab-edit';
12
+ import { contentInsertionPlugin } from '@atlaskit/editor-plugins/content-insertion';
13
+ import { contextPanelPlugin } from '@atlaskit/editor-plugins/context-panel';
14
+ import { customAutoformatPlugin } from '@atlaskit/editor-plugins/custom-autoformat';
15
+ import { dataConsumerPlugin } from '@atlaskit/editor-plugins/data-consumer';
16
+ import { datePlugin } from '@atlaskit/editor-plugins/date';
17
+ import { emojiPlugin } from '@atlaskit/editor-plugins/emoji';
18
+ import { expandPlugin } from '@atlaskit/editor-plugins/expand';
19
+ import { extensionPlugin } from '@atlaskit/editor-plugins/extension';
20
+ import { feedbackDialogPlugin } from '@atlaskit/editor-plugins/feedback-dialog';
21
+ import { findReplacePlugin } from '@atlaskit/editor-plugins/find-replace';
22
+ import { fragmentPlugin } from '@atlaskit/editor-plugins/fragment';
23
+ import { gridPlugin } from '@atlaskit/editor-plugins/grid';
24
+ import { guidelinePlugin } from '@atlaskit/editor-plugins/guideline';
25
+ import { helpDialogPlugin } from '@atlaskit/editor-plugins/help-dialog';
26
+ import { imageUploadPlugin } from '@atlaskit/editor-plugins/image-upload';
27
+ import { indentationPlugin } from '@atlaskit/editor-plugins/indentation';
28
+ import { insertBlockPlugin } from '@atlaskit/editor-plugins/insert-block';
29
+ import { layoutPlugin } from '@atlaskit/editor-plugins/layout';
30
+ import { listPlugin } from '@atlaskit/editor-plugins/list';
31
+ import { loomPlugin } from '@atlaskit/editor-plugins/loom';
32
+ import { maxContentSizePlugin } from '@atlaskit/editor-plugins/max-content-size';
33
+ import { mediaPlugin } from '@atlaskit/editor-plugins/media';
34
+ import { mentionsPlugin } from '@atlaskit/editor-plugins/mentions';
35
+ import { panelPlugin } from '@atlaskit/editor-plugins/panel';
36
+ import { pasteOptionsToolbarPlugin } from '@atlaskit/editor-plugins/paste-options-toolbar';
37
+ import { placeholderTextPlugin } from '@atlaskit/editor-plugins/placeholder-text';
38
+ import { rulePlugin } from '@atlaskit/editor-plugins/rule';
39
+ import { saveOnEnterPlugin } from '@atlaskit/editor-plugins/save-on-enter';
40
+ import { scrollIntoViewPlugin } from '@atlaskit/editor-plugins/scroll-into-view';
41
+ import { statusPlugin } from '@atlaskit/editor-plugins/status';
42
+ import { tablesPlugin } from '@atlaskit/editor-plugins/table';
43
+ import { tasksAndDecisionsPlugin } from '@atlaskit/editor-plugins/tasks-and-decisions';
44
+ import { textColorPlugin } from '@atlaskit/editor-plugins/text-color';
45
+ import { toolbarListsIndentationPlugin } from '@atlaskit/editor-plugins/toolbar-lists-indentation';
46
46
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
47
47
  import { isFullPage as fullPageCheck } from '../utils/is-full-page';
48
48
  import { version as coreVersion } from '../version-wrapper';
@@ -113,7 +113,7 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
113
113
  }], Boolean(props.mentionProvider)).maybeAdd(emojiPlugin, Boolean(props.emojiProvider)).maybeAdd([tablesPlugin, {
114
114
  tableOptions: !props.allowTables || typeof props.allowTables === 'boolean' ? {} : props.allowTables,
115
115
  tableResizingEnabled: getBooleanFF('platform.editor.custom-table-width') && ['full-page', 'full-width'].includes(appearance || ''),
116
- dragAndDropEnabled: getBooleanFF('platform.editor.table.drag-and-drop') && isFullPage,
116
+ dragAndDropEnabled: (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.tableDragAndDrop) && isFullPage,
117
117
  breakoutEnabled: appearance === 'full-page',
118
118
  allowContextualMenu: !isMobile,
119
119
  fullWidthEnabled: appearance === 'full-width',
@@ -1,5 +1,5 @@
1
1
  import { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
2
- import { basePlugin } from '@atlaskit/editor-plugin-base';
2
+ import { basePlugin } from '@atlaskit/editor-plugins/base';
3
3
  import { TextSelection } from '@atlaskit/editor-prosemirror/state';
4
4
  import { createSchema } from './create-editor/create-schema';
5
5
  import { sortByOrder } from './create-editor/sort-by-order';
@@ -10,7 +10,7 @@ import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
10
10
  import { GRID_GUTTER } from '@atlaskit/editor-common/styles';
11
11
  import { WidthConsumer } from '@atlaskit/editor-common/ui';
12
12
  import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-menu';
13
- import { tableCommentEditorStyles } from '@atlaskit/editor-plugin-table/ui/common-styles';
13
+ import { tableCommentEditorStyles } from '@atlaskit/editor-plugins/table/ui/common-styles';
14
14
  import { akEditorMobileBreakoutPoint } from '@atlaskit/editor-shared-styles';
15
15
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
16
16
  import { N40 } from '@atlaskit/theme/colors';
@@ -8,7 +8,7 @@ const beforePrimaryToolbarPluginWrapperStyles = css({
8
8
  justifyContent: 'flex-end',
9
9
  alignItems: 'center'
10
10
  });
11
- // Duplicate of the wrapper from `editor-plugin-before-primary-toolbar` used
11
+ // Duplicate of the wrapper from `editor-plugins/before-primary-toolbar` used
12
12
  // only in `FullPageToolbar` to decouple the plugin from the main toolbar
13
13
  export const BeforePrimaryToolbarWrapper = props => jsx("div", {
14
14
  css: beforePrimaryToolbarPluginWrapperStyles,
@@ -1,7 +1,7 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { decisionListSelector, taskListSelector } from '@atlaskit/adf-schema';
3
- import { tableFullPageEditorStyles } from '@atlaskit/editor-plugin-table/ui/common-styles';
4
- import { tableMarginFullWidthMode } from '@atlaskit/editor-plugin-table/ui/consts';
3
+ import { tableFullPageEditorStyles } from '@atlaskit/editor-plugins/table/ui/common-styles';
4
+ import { tableMarginFullWidthMode } from '@atlaskit/editor-plugins/table/ui/consts';
5
5
  import { akEditorContextPanelWidth, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorSwoopCubicBezier, akLayoutGutterOffset, ATLASSIAN_NAVIGATION_HEIGHT } from '@atlaskit/editor-shared-styles';
6
6
  import { createEditorContentStyle } from '../../ContentStyles';
7
7
  import { scrollbarStyles } from '../../styles';
@@ -3,10 +3,10 @@ import { BreakoutCssClassName } from '@atlaskit/editor-common/styles';
3
3
  import { expandClassNames } from '@atlaskit/editor-common/styles';
4
4
  import { sharedExpandStyles } from '@atlaskit/editor-common/ui';
5
5
  import { akEditorSelectedNodeClassName, akLayoutGutterOffset, getSelectionStyles, SelectionStyle } from '@atlaskit/editor-shared-styles';
6
- import { N40A, N50A, N80A, R300, R50 } from '@atlaskit/theme/colors';
6
+ import { N100A, N40A, N50A, R300, R50 } from '@atlaskit/theme/colors';
7
7
  const EXPAND_SELECTED_BACKGROUND = "var(--ds-background-neutral-subtle, rgba(255, 255, 255, 0.6))";
8
8
  const EXPAND_ICON_COLOR = () => css`
9
- color: ${`var(--ds-icon-subtle, ${N80A})`};
9
+ color: ${`var(--ds-icon-subtle, ${N100A})`};
10
10
  `;
11
11
  const DANGER_STATE_BACKGROUND_COLOR = `var(--ds-background-danger, ${R50})`;
12
12
  const DANGER_STATE_BORDER_COLOR = `var(--ds-border-danger, ${R300})`;
@@ -9,11 +9,11 @@ import { annotationSharedStyles, blockMarksSharedStyles, codeBlockInListSafariFi
9
9
  import { MediaSharedClassNames } from '@atlaskit/editor-common/styles';
10
10
  import { codeMarkSharedStyles, linkSharedStyle, ruleSharedStyles } from '@atlaskit/editor-common/styles';
11
11
  import { browser } from '@atlaskit/editor-common/utils';
12
- import { blocktypeStyles } from '@atlaskit/editor-plugin-block-type/styles';
13
- import { findReplaceStyles } from '@atlaskit/editor-plugin-find-replace/styles';
14
- import { textHighlightStyle } from '@atlaskit/editor-plugin-paste-options-toolbar/styles';
15
- import { placeholderTextStyles } from '@atlaskit/editor-plugin-placeholder-text/styles';
16
- import { tableStyles } from '@atlaskit/editor-plugin-table/ui/common-styles';
12
+ import { blocktypeStyles } from '@atlaskit/editor-plugins/block-type/styles';
13
+ import { findReplaceStyles } from '@atlaskit/editor-plugins/find-replace/styles';
14
+ import { textHighlightStyle } from '@atlaskit/editor-plugins/paste-options-toolbar/styles';
15
+ import { placeholderTextStyles } from '@atlaskit/editor-plugins/placeholder-text/styles';
16
+ import { tableStyles } from '@atlaskit/editor-plugins/table/ui/common-styles';
17
17
  import { akEditorDeleteBackgroundWithOpacity, akEditorDeleteBorder, akEditorLineHeight, akEditorSelectedBorderColor, akEditorSelectedBorderSize, akEditorSelectedNodeClassName, blockNodesVerticalMargin, editorFontSize, getSelectionStyles, SelectionStyle } from '@atlaskit/editor-shared-styles';
18
18
  import { N200, N30A, N500 } from '@atlaskit/theme/colors';
19
19
  import { InlineNodeViewSharedStyles } from '../../nodeviews/getInlineNodeViewProducer.styles';
@@ -1,7 +1,7 @@
1
1
  import { css } from '@emotion/react';
2
2
  import { columnLayoutSharedStyle, LAYOUT_COLUMN_PADDING, LAYOUT_SECTION_MARGIN } from '@atlaskit/editor-common/styles';
3
- import { TableCssClassName } from '@atlaskit/editor-plugin-table/types';
4
- import { tableMarginFullWidthMode } from '@atlaskit/editor-plugin-table/ui/consts';
3
+ import { TableCssClassName } from '@atlaskit/editor-plugins/table/types';
4
+ import { tableMarginFullWidthMode } from '@atlaskit/editor-plugins/table/ui/consts';
5
5
  import { akEditorDeleteBackground, akEditorDeleteBorder, akEditorSelectedBorderSize, akEditorSelectedNodeClassName, akEditorSwoopCubicBezier, akLayoutGutterOffset, getSelectionStyles, gridMediumMaxWidth, SelectionStyle } from '@atlaskit/editor-shared-styles';
6
6
  import { N40A, N50A } from '@atlaskit/theme/colors';
7
7
  export { LAYOUT_COLUMN_PADDING, LAYOUT_SECTION_MARGIN };
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
5
5
  import { analyticsEventKey } from '@atlaskit/editor-common/utils';
6
- import { deprecatedOpenHelpCommand } from '@atlaskit/editor-plugin-help-dialog';
6
+ import { deprecatedOpenHelpCommand } from '@atlaskit/editor-plugins/help-dialog';
7
7
  import { createDispatch } from '../../event-dispatcher';
8
8
  export default class WithHelpTrigger extends React.Component {
9
9
  constructor(...args) {
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "191.6.0";
2
+ export const version = "191.6.1";
@@ -10,7 +10,7 @@ import { ACTION, fireAnalyticsEvent } from '@atlaskit/editor-common/analytics';
10
10
  import { useConstructor } from '@atlaskit/editor-common/hooks';
11
11
  import { EditorExperience, ExperienceStore } from '@atlaskit/editor-common/ufo';
12
12
  import { getAnalyticsAppearance, startMeasure, stopMeasure } from '@atlaskit/editor-common/utils';
13
- import { basePlugin } from '@atlaskit/editor-plugin-base';
13
+ import { basePlugin } from '@atlaskit/editor-plugins/base';
14
14
  import EditorActions from '../actions';
15
15
  import { createFeatureFlagsFromProps } from '../create-editor/feature-flags-from-props';
16
16
  import { useEditorContext } from '../ui/EditorContext';
package/dist/esm/index.js CHANGED
@@ -23,7 +23,7 @@ export { AnnotationUpdateEmitter } from '@atlaskit/editor-common/annotation';
23
23
  * @deprecated
24
24
  * DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
25
25
  * This is here while we work to extract the annotation plugin.
26
- * Please use the export from `@atlaskit/editor-plugin-annotation`.
26
+ * Please use the export from `@atlaskit/editor-plugins/annotation`.
27
27
  */
28
28
 
29
29
  // Used in mobile bridge
@@ -47,5 +47,5 @@ export { PortalProvider, PortalProviderAPI, PortalRenderer } from '@atlaskit/edi
47
47
  * @deprecated
48
48
  * DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
49
49
  * This is here while we work to extract the media plugin.
50
- * Please use the export from `@atlaskit/editor-plugin-media/types`.
50
+ * Please use the export from `@atlaskit/editor-plugins/media/types`.
51
51
  */
@@ -1 +1 @@
1
- export { createDefaultPreset } from './presets/default';
1
+ export { createDefaultPreset } from '../src/presets/default';
@@ -1,34 +1,34 @@
1
1
  // #region Imports
2
2
 
3
3
  import { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
4
- import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
5
- import { annotationPlugin } from '@atlaskit/editor-plugin-annotation';
6
- import { basePlugin } from '@atlaskit/editor-plugin-base';
7
- import { betterTypeHistoryPlugin } from '@atlaskit/editor-plugin-better-type-history';
8
- import { blockTypePlugin } from '@atlaskit/editor-plugin-block-type';
9
- import { clearMarksOnEmptyDocPlugin } from '@atlaskit/editor-plugin-clear-marks-on-empty-doc';
10
- import { clipboardPlugin } from '@atlaskit/editor-plugin-clipboard';
11
- import { codeBlockPlugin } from '@atlaskit/editor-plugin-code-block';
12
- import { compositionPlugin } from '@atlaskit/editor-plugin-composition';
13
- import { copyButtonPlugin } from '@atlaskit/editor-plugin-copy-button';
14
- import { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
15
- import { editorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
16
- import { featureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
17
- import { floatingToolbarPlugin } from '@atlaskit/editor-plugin-floating-toolbar';
18
- import { focusPlugin } from '@atlaskit/editor-plugin-focus';
19
- import { historyPlugin } from '@atlaskit/editor-plugin-history';
20
- import { hyperlinkPlugin } from '@atlaskit/editor-plugin-hyperlink';
21
- import { pastePlugin } from '@atlaskit/editor-plugin-paste';
22
- import { placeholderPlugin } from '@atlaskit/editor-plugin-placeholder';
23
- import { quickInsertPlugin } from '@atlaskit/editor-plugin-quick-insert';
24
- import { selectionPlugin } from '@atlaskit/editor-plugin-selection';
25
- import { selectionToolbarPlugin } from '@atlaskit/editor-plugin-selection-toolbar';
26
- import { submitEditorPlugin } from '@atlaskit/editor-plugin-submit-editor';
27
- import { textFormattingPlugin } from '@atlaskit/editor-plugin-text-formatting';
28
- import { typeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
29
- import { undoRedoPlugin } from '@atlaskit/editor-plugin-undo-redo';
30
- import { unsupportedContentPlugin } from '@atlaskit/editor-plugin-unsupported-content';
31
- import { widthPlugin } from '@atlaskit/editor-plugin-width';
4
+ import { analyticsPlugin } from '@atlaskit/editor-plugins/analytics';
5
+ import { annotationPlugin } from '@atlaskit/editor-plugins/annotation';
6
+ import { basePlugin } from '@atlaskit/editor-plugins/base';
7
+ import { betterTypeHistoryPlugin } from '@atlaskit/editor-plugins/better-type-history';
8
+ import { blockTypePlugin } from '@atlaskit/editor-plugins/block-type';
9
+ import { clearMarksOnEmptyDocPlugin } from '@atlaskit/editor-plugins/clear-marks-on-empty-doc';
10
+ import { clipboardPlugin } from '@atlaskit/editor-plugins/clipboard';
11
+ import { codeBlockPlugin } from '@atlaskit/editor-plugins/code-block';
12
+ import { compositionPlugin } from '@atlaskit/editor-plugins/composition';
13
+ import { copyButtonPlugin } from '@atlaskit/editor-plugins/copy-button';
14
+ import { decorationsPlugin } from '@atlaskit/editor-plugins/decorations';
15
+ import { editorDisabledPlugin } from '@atlaskit/editor-plugins/editor-disabled';
16
+ import { featureFlagsPlugin } from '@atlaskit/editor-plugins/feature-flags';
17
+ import { floatingToolbarPlugin } from '@atlaskit/editor-plugins/floating-toolbar';
18
+ import { focusPlugin } from '@atlaskit/editor-plugins/focus';
19
+ import { historyPlugin } from '@atlaskit/editor-plugins/history';
20
+ import { hyperlinkPlugin } from '@atlaskit/editor-plugins/hyperlink';
21
+ import { pastePlugin } from '@atlaskit/editor-plugins/paste';
22
+ import { placeholderPlugin } from '@atlaskit/editor-plugins/placeholder';
23
+ import { quickInsertPlugin } from '@atlaskit/editor-plugins/quick-insert';
24
+ import { selectionPlugin } from '@atlaskit/editor-plugins/selection';
25
+ import { selectionToolbarPlugin } from '@atlaskit/editor-plugins/selection-toolbar';
26
+ import { submitEditorPlugin } from '@atlaskit/editor-plugins/submit-editor';
27
+ import { textFormattingPlugin } from '@atlaskit/editor-plugins/text-formatting';
28
+ import { typeAheadPlugin } from '@atlaskit/editor-plugins/type-ahead';
29
+ import { undoRedoPlugin } from '@atlaskit/editor-plugins/undo-redo';
30
+ import { unsupportedContentPlugin } from '@atlaskit/editor-plugins/unsupported-content';
31
+ import { widthPlugin } from '@atlaskit/editor-plugins/width';
32
32
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
33
33
 
34
34
  // #endregion