@atlaskit/editor-core 213.4.2 → 213.5.0

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 CHANGED
@@ -1,5 +1,24 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 213.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`08569ab338048`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/08569ab338048) -
8
+ Removed feature gates for cleanup
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 213.4.3
15
+
16
+ ### Patch Changes
17
+
18
+ - [`4b7ecd9338f09`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4b7ecd9338f09) -
19
+ Add sync block plugin to universal preset
20
+ - Updated dependencies
21
+
3
22
  ## 213.4.2
4
23
 
5
24
  ### Patch Changes
@@ -106,7 +106,8 @@ var useMemoEditorProps = exports.useMemoEditorProps = function useMemoEditorProp
106
106
  textFormatting: passedProps.textFormatting,
107
107
  __livePage: passedProps.__livePage,
108
108
  AppearanceComponent: passedProps.AppearanceComponent,
109
- skipValidation: passedProps.skipValidation
109
+ skipValidation: passedProps.skipValidation,
110
+ syncBlock: passedProps.syncBlock
110
111
  };
111
112
  var defaultProps = {
112
113
  appearance: 'comment',
@@ -115,7 +116,7 @@ var useMemoEditorProps = exports.useMemoEditorProps = function useMemoEditorProp
115
116
  };
116
117
  var nextProps = _objectSpread(_objectSpread({}, defaultProps), allProps);
117
118
  return nextProps;
118
- }, [passedProps.preset, passedProps.appearance, passedProps.contentMode, passedProps.contentComponents, passedProps.primaryToolbarIconBefore, passedProps.secondaryToolbarComponents, passedProps.persistScrollGutter, passedProps.quickInsert, passedProps.shouldFocus, passedProps.disabled, passedProps.contextPanel, passedProps.errorReporterHandler, passedProps.contentTransformerProvider, passedProps.maxHeight, passedProps.minHeight, passedProps.placeholder, passedProps.placeholderBracketHint, passedProps.performanceTracking, passedProps.inputSamplingLimit, passedProps.defaultValue, passedProps.assistiveLabel, passedProps.assistiveDescribedBy, passedProps.popupsMountPoint, passedProps.popupsBoundariesElement, passedProps.popupsScrollableElement, passedProps.editorActions, passedProps.onEditorReady, passedProps.onDestroy, passedProps.onChange, passedProps.onCancel, passedProps.extensionProviders, passedProps.UNSAFE_useAnalyticsContext, passedProps.useStickyToolbar, passedProps.featureFlags, passedProps.onSave, passedProps.sanitizePrivateContent, passedProps.media, passedProps.collabEdit, passedProps.primaryToolbarComponents, passedProps.allowUndoRedoButtons, passedProps.linking, passedProps.activityProvider, passedProps.searchProvider, passedProps.annotationProviders, passedProps.collabEditProvider, passedProps.presenceProvider, passedProps.emojiProvider, passedProps.taskDecisionProvider, passedProps.legacyImageUploadProvider, passedProps.mentionProvider, passedProps.autoformattingProvider, passedProps.macroProvider, passedProps.contextIdentifierProvider, passedProps.allowExpand, passedProps.allowNestedTasks, passedProps.allowBlockType, passedProps.allowTasksAndDecisions, passedProps.allowBreakout, passedProps.allowRule, passedProps.allowHelpDialog, passedProps.allowPanel, passedProps.allowExtension, passedProps.allowConfluenceInlineComment, passedProps.allowTemplatePlaceholders, passedProps.allowDate, passedProps.allowLayouts, passedProps.allowStatus, passedProps.allowTextAlignment, passedProps.allowIndentation, passedProps.showIndentationButtons, passedProps.allowFindReplace, passedProps.allowBorderMark, passedProps.allowFragmentMark, passedProps.autoScrollIntoView, passedProps.elementBrowser, passedProps.maxContentSize, passedProps.saveOnEnter, passedProps.feedbackInfo, passedProps.mention, passedProps.mentionInsertDisplayName, passedProps.uploadErrorHandler, passedProps.waitForMediaUpload, passedProps.extensionHandlers, passedProps.allowTextColor, passedProps.allowTables, passedProps.insertMenuItems, passedProps.UNSAFE_cards, passedProps.smartLinks, passedProps.allowAnalyticsGASV3, passedProps.codeBlock, passedProps.textFormatting, passedProps.__livePage, passedProps.AppearanceComponent, passedProps.skipValidation]);
119
+ }, [passedProps.preset, passedProps.appearance, passedProps.contentMode, passedProps.contentComponents, passedProps.primaryToolbarIconBefore, passedProps.secondaryToolbarComponents, passedProps.persistScrollGutter, passedProps.quickInsert, passedProps.shouldFocus, passedProps.disabled, passedProps.contextPanel, passedProps.errorReporterHandler, passedProps.contentTransformerProvider, passedProps.maxHeight, passedProps.minHeight, passedProps.placeholder, passedProps.placeholderBracketHint, passedProps.performanceTracking, passedProps.inputSamplingLimit, passedProps.defaultValue, passedProps.assistiveLabel, passedProps.assistiveDescribedBy, passedProps.popupsMountPoint, passedProps.popupsBoundariesElement, passedProps.popupsScrollableElement, passedProps.editorActions, passedProps.onEditorReady, passedProps.onDestroy, passedProps.onChange, passedProps.onCancel, passedProps.extensionProviders, passedProps.UNSAFE_useAnalyticsContext, passedProps.useStickyToolbar, passedProps.featureFlags, passedProps.onSave, passedProps.sanitizePrivateContent, passedProps.media, passedProps.collabEdit, passedProps.primaryToolbarComponents, passedProps.allowUndoRedoButtons, passedProps.linking, passedProps.activityProvider, passedProps.searchProvider, passedProps.annotationProviders, passedProps.collabEditProvider, passedProps.presenceProvider, passedProps.emojiProvider, passedProps.taskDecisionProvider, passedProps.legacyImageUploadProvider, passedProps.mentionProvider, passedProps.autoformattingProvider, passedProps.macroProvider, passedProps.contextIdentifierProvider, passedProps.allowExpand, passedProps.allowNestedTasks, passedProps.allowBlockType, passedProps.allowTasksAndDecisions, passedProps.allowBreakout, passedProps.allowRule, passedProps.allowHelpDialog, passedProps.allowPanel, passedProps.allowExtension, passedProps.allowConfluenceInlineComment, passedProps.allowTemplatePlaceholders, passedProps.allowDate, passedProps.allowLayouts, passedProps.allowStatus, passedProps.allowTextAlignment, passedProps.allowIndentation, passedProps.showIndentationButtons, passedProps.allowFindReplace, passedProps.allowBorderMark, passedProps.allowFragmentMark, passedProps.autoScrollIntoView, passedProps.elementBrowser, passedProps.maxContentSize, passedProps.saveOnEnter, passedProps.feedbackInfo, passedProps.mention, passedProps.mentionInsertDisplayName, passedProps.uploadErrorHandler, passedProps.waitForMediaUpload, passedProps.extensionHandlers, passedProps.allowTextColor, passedProps.allowTables, passedProps.insertMenuItems, passedProps.UNSAFE_cards, passedProps.smartLinks, passedProps.allowAnalyticsGASV3, passedProps.codeBlock, passedProps.textFormatting, passedProps.__livePage, passedProps.AppearanceComponent, passedProps.skipValidation, passedProps.syncBlock]);
119
120
  return memodProps;
120
121
  };
121
122
  var _default = exports.default = useMemoEditorProps;
@@ -51,12 +51,14 @@ var _rule = require("@atlaskit/editor-plugins/rule");
51
51
  var _saveOnEnter = require("@atlaskit/editor-plugins/save-on-enter");
52
52
  var _scrollIntoView = require("@atlaskit/editor-plugins/scroll-into-view");
53
53
  var _status = require("@atlaskit/editor-plugins/status");
54
+ var _syncedBlock = require("@atlaskit/editor-plugins/synced-block");
54
55
  var _table = require("@atlaskit/editor-plugins/table");
55
56
  var _tasksAndDecisions = require("@atlaskit/editor-plugins/tasks-and-decisions");
56
57
  var _textColor = require("@atlaskit/editor-plugins/text-color");
57
58
  var _toolbarListsIndentation = require("@atlaskit/editor-plugins/toolbar-lists-indentation");
58
59
  var _ufo = require("@atlaskit/editor-plugins/ufo");
59
60
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
61
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
60
62
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
61
63
  var _isFullPage = require("../utils/is-full-page");
62
64
  var _versionWrapper = require("../version-wrapper");
@@ -223,7 +225,7 @@ function createUniversalPresetInternal(_ref) {
223
225
  }], Boolean(props.autoformattingProvider)).maybeAdd([_status.statusPlugin, {
224
226
  menuDisabled: statusMenuDisabled,
225
227
  allowZeroWidthSpaceAfter: true
226
- }], Boolean(props.allowStatus)).maybeAdd(_indentation.indentationPlugin, Boolean(props.allowIndentation)).maybeAdd(_scrollIntoView.scrollIntoViewPlugin, Boolean(props.autoScrollIntoView !== false)).add([_toolbarListsIndentation.toolbarListsIndentationPlugin, {
228
+ }], Boolean(props.allowStatus)).maybeAdd([_syncedBlock.syncedBlockPlugin, props.syncBlock], Boolean(props.syncBlock) && (0, _expValEquals.expValEquals)('platform_synced_block', 'isEnabled', true)).maybeAdd(_indentation.indentationPlugin, Boolean(props.allowIndentation)).maybeAdd(_scrollIntoView.scrollIntoViewPlugin, Boolean(props.autoScrollIntoView !== false)).add([_toolbarListsIndentation.toolbarListsIndentationPlugin, {
227
229
  showIndentationButtons: !!props.showIndentationButtons,
228
230
  allowHeadingAndParagraphIndentation: !!props.allowIndentation
229
231
  }]).add([_insertBlock.insertBlockPlugin, _objectSpread({
@@ -1,4 +1,4 @@
1
- /* FullPageToolbarNext.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* FullPageToolbarNext.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  "use strict";
3
3
 
4
4
  var _typeof = require("@babel/runtime/helpers/typeof");
@@ -1,4 +1,4 @@
1
- /* ToolbarPortal.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* ToolbarPortal.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -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 = "213.4.1";
8
+ var version = exports.version = "0.0.0-development";
@@ -96,7 +96,8 @@ export const useMemoEditorProps = passedProps => {
96
96
  textFormatting: passedProps.textFormatting,
97
97
  __livePage: passedProps.__livePage,
98
98
  AppearanceComponent: passedProps.AppearanceComponent,
99
- skipValidation: passedProps.skipValidation
99
+ skipValidation: passedProps.skipValidation,
100
+ syncBlock: passedProps.syncBlock
100
101
  };
101
102
  const defaultProps = {
102
103
  appearance: 'comment',
@@ -108,7 +109,7 @@ export const useMemoEditorProps = passedProps => {
108
109
  ...allProps
109
110
  };
110
111
  return nextProps;
111
- }, [passedProps.preset, passedProps.appearance, passedProps.contentMode, passedProps.contentComponents, passedProps.primaryToolbarIconBefore, passedProps.secondaryToolbarComponents, passedProps.persistScrollGutter, passedProps.quickInsert, passedProps.shouldFocus, passedProps.disabled, passedProps.contextPanel, passedProps.errorReporterHandler, passedProps.contentTransformerProvider, passedProps.maxHeight, passedProps.minHeight, passedProps.placeholder, passedProps.placeholderBracketHint, passedProps.performanceTracking, passedProps.inputSamplingLimit, passedProps.defaultValue, passedProps.assistiveLabel, passedProps.assistiveDescribedBy, passedProps.popupsMountPoint, passedProps.popupsBoundariesElement, passedProps.popupsScrollableElement, passedProps.editorActions, passedProps.onEditorReady, passedProps.onDestroy, passedProps.onChange, passedProps.onCancel, passedProps.extensionProviders, passedProps.UNSAFE_useAnalyticsContext, passedProps.useStickyToolbar, passedProps.featureFlags, passedProps.onSave, passedProps.sanitizePrivateContent, passedProps.media, passedProps.collabEdit, passedProps.primaryToolbarComponents, passedProps.allowUndoRedoButtons, passedProps.linking, passedProps.activityProvider, passedProps.searchProvider, passedProps.annotationProviders, passedProps.collabEditProvider, passedProps.presenceProvider, passedProps.emojiProvider, passedProps.taskDecisionProvider, passedProps.legacyImageUploadProvider, passedProps.mentionProvider, passedProps.autoformattingProvider, passedProps.macroProvider, passedProps.contextIdentifierProvider, passedProps.allowExpand, passedProps.allowNestedTasks, passedProps.allowBlockType, passedProps.allowTasksAndDecisions, passedProps.allowBreakout, passedProps.allowRule, passedProps.allowHelpDialog, passedProps.allowPanel, passedProps.allowExtension, passedProps.allowConfluenceInlineComment, passedProps.allowTemplatePlaceholders, passedProps.allowDate, passedProps.allowLayouts, passedProps.allowStatus, passedProps.allowTextAlignment, passedProps.allowIndentation, passedProps.showIndentationButtons, passedProps.allowFindReplace, passedProps.allowBorderMark, passedProps.allowFragmentMark, passedProps.autoScrollIntoView, passedProps.elementBrowser, passedProps.maxContentSize, passedProps.saveOnEnter, passedProps.feedbackInfo, passedProps.mention, passedProps.mentionInsertDisplayName, passedProps.uploadErrorHandler, passedProps.waitForMediaUpload, passedProps.extensionHandlers, passedProps.allowTextColor, passedProps.allowTables, passedProps.insertMenuItems, passedProps.UNSAFE_cards, passedProps.smartLinks, passedProps.allowAnalyticsGASV3, passedProps.codeBlock, passedProps.textFormatting, passedProps.__livePage, passedProps.AppearanceComponent, passedProps.skipValidation]);
112
+ }, [passedProps.preset, passedProps.appearance, passedProps.contentMode, passedProps.contentComponents, passedProps.primaryToolbarIconBefore, passedProps.secondaryToolbarComponents, passedProps.persistScrollGutter, passedProps.quickInsert, passedProps.shouldFocus, passedProps.disabled, passedProps.contextPanel, passedProps.errorReporterHandler, passedProps.contentTransformerProvider, passedProps.maxHeight, passedProps.minHeight, passedProps.placeholder, passedProps.placeholderBracketHint, passedProps.performanceTracking, passedProps.inputSamplingLimit, passedProps.defaultValue, passedProps.assistiveLabel, passedProps.assistiveDescribedBy, passedProps.popupsMountPoint, passedProps.popupsBoundariesElement, passedProps.popupsScrollableElement, passedProps.editorActions, passedProps.onEditorReady, passedProps.onDestroy, passedProps.onChange, passedProps.onCancel, passedProps.extensionProviders, passedProps.UNSAFE_useAnalyticsContext, passedProps.useStickyToolbar, passedProps.featureFlags, passedProps.onSave, passedProps.sanitizePrivateContent, passedProps.media, passedProps.collabEdit, passedProps.primaryToolbarComponents, passedProps.allowUndoRedoButtons, passedProps.linking, passedProps.activityProvider, passedProps.searchProvider, passedProps.annotationProviders, passedProps.collabEditProvider, passedProps.presenceProvider, passedProps.emojiProvider, passedProps.taskDecisionProvider, passedProps.legacyImageUploadProvider, passedProps.mentionProvider, passedProps.autoformattingProvider, passedProps.macroProvider, passedProps.contextIdentifierProvider, passedProps.allowExpand, passedProps.allowNestedTasks, passedProps.allowBlockType, passedProps.allowTasksAndDecisions, passedProps.allowBreakout, passedProps.allowRule, passedProps.allowHelpDialog, passedProps.allowPanel, passedProps.allowExtension, passedProps.allowConfluenceInlineComment, passedProps.allowTemplatePlaceholders, passedProps.allowDate, passedProps.allowLayouts, passedProps.allowStatus, passedProps.allowTextAlignment, passedProps.allowIndentation, passedProps.showIndentationButtons, passedProps.allowFindReplace, passedProps.allowBorderMark, passedProps.allowFragmentMark, passedProps.autoScrollIntoView, passedProps.elementBrowser, passedProps.maxContentSize, passedProps.saveOnEnter, passedProps.feedbackInfo, passedProps.mention, passedProps.mentionInsertDisplayName, passedProps.uploadErrorHandler, passedProps.waitForMediaUpload, passedProps.extensionHandlers, passedProps.allowTextColor, passedProps.allowTables, passedProps.insertMenuItems, passedProps.UNSAFE_cards, passedProps.smartLinks, passedProps.allowAnalyticsGASV3, passedProps.codeBlock, passedProps.textFormatting, passedProps.__livePage, passedProps.AppearanceComponent, passedProps.skipValidation, passedProps.syncBlock]);
112
113
  return memodProps;
113
114
  };
114
115
  export default useMemoEditorProps;
@@ -41,12 +41,14 @@ import { rulePlugin } from '@atlaskit/editor-plugins/rule';
41
41
  import { saveOnEnterPlugin } from '@atlaskit/editor-plugins/save-on-enter';
42
42
  import { scrollIntoViewPlugin } from '@atlaskit/editor-plugins/scroll-into-view';
43
43
  import { statusPlugin } from '@atlaskit/editor-plugins/status';
44
+ import { syncedBlockPlugin } from '@atlaskit/editor-plugins/synced-block';
44
45
  import { tablesPlugin } from '@atlaskit/editor-plugins/table';
45
46
  import { tasksAndDecisionsPlugin } from '@atlaskit/editor-plugins/tasks-and-decisions';
46
47
  import { textColorPlugin } from '@atlaskit/editor-plugins/text-color';
47
48
  import { toolbarListsIndentationPlugin } from '@atlaskit/editor-plugins/toolbar-lists-indentation';
48
49
  import { ufoPlugin } from '@atlaskit/editor-plugins/ufo';
49
50
  import { fg } from '@atlaskit/platform-feature-flags';
51
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
50
52
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
51
53
  import { isFullPage as fullPageCheck } from '../utils/is-full-page';
52
54
  import { version as coreVersion } from '../version-wrapper';
@@ -223,7 +225,7 @@ export default function createUniversalPresetInternal({
223
225
  }], Boolean(props.autoformattingProvider)).maybeAdd([statusPlugin, {
224
226
  menuDisabled: statusMenuDisabled,
225
227
  allowZeroWidthSpaceAfter: true
226
- }], Boolean(props.allowStatus)).maybeAdd(indentationPlugin, Boolean(props.allowIndentation)).maybeAdd(scrollIntoViewPlugin, Boolean(props.autoScrollIntoView !== false)).add([toolbarListsIndentationPlugin, {
228
+ }], Boolean(props.allowStatus)).maybeAdd([syncedBlockPlugin, props.syncBlock], Boolean(props.syncBlock) && expValEquals('platform_synced_block', 'isEnabled', true)).maybeAdd(indentationPlugin, Boolean(props.allowIndentation)).maybeAdd(scrollIntoViewPlugin, Boolean(props.autoScrollIntoView !== false)).add([toolbarListsIndentationPlugin, {
227
229
  showIndentationButtons: !!props.showIndentationButtons,
228
230
  allowHeadingAndParagraphIndentation: !!props.allowIndentation
229
231
  }]).add([insertBlockPlugin, {
@@ -1,4 +1,4 @@
1
- /* FullPageToolbarNext.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* FullPageToolbarNext.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import "./FullPageToolbarNext.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useCallback } from 'react';
@@ -1,4 +1,4 @@
1
- /* ToolbarPortal.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* ToolbarPortal.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import "./ToolbarPortal.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "213.4.1";
2
+ export const version = "0.0.0-development";
@@ -99,7 +99,8 @@ export var useMemoEditorProps = function useMemoEditorProps(passedProps) {
99
99
  textFormatting: passedProps.textFormatting,
100
100
  __livePage: passedProps.__livePage,
101
101
  AppearanceComponent: passedProps.AppearanceComponent,
102
- skipValidation: passedProps.skipValidation
102
+ skipValidation: passedProps.skipValidation,
103
+ syncBlock: passedProps.syncBlock
103
104
  };
104
105
  var defaultProps = {
105
106
  appearance: 'comment',
@@ -108,7 +109,7 @@ export var useMemoEditorProps = function useMemoEditorProps(passedProps) {
108
109
  };
109
110
  var nextProps = _objectSpread(_objectSpread({}, defaultProps), allProps);
110
111
  return nextProps;
111
- }, [passedProps.preset, passedProps.appearance, passedProps.contentMode, passedProps.contentComponents, passedProps.primaryToolbarIconBefore, passedProps.secondaryToolbarComponents, passedProps.persistScrollGutter, passedProps.quickInsert, passedProps.shouldFocus, passedProps.disabled, passedProps.contextPanel, passedProps.errorReporterHandler, passedProps.contentTransformerProvider, passedProps.maxHeight, passedProps.minHeight, passedProps.placeholder, passedProps.placeholderBracketHint, passedProps.performanceTracking, passedProps.inputSamplingLimit, passedProps.defaultValue, passedProps.assistiveLabel, passedProps.assistiveDescribedBy, passedProps.popupsMountPoint, passedProps.popupsBoundariesElement, passedProps.popupsScrollableElement, passedProps.editorActions, passedProps.onEditorReady, passedProps.onDestroy, passedProps.onChange, passedProps.onCancel, passedProps.extensionProviders, passedProps.UNSAFE_useAnalyticsContext, passedProps.useStickyToolbar, passedProps.featureFlags, passedProps.onSave, passedProps.sanitizePrivateContent, passedProps.media, passedProps.collabEdit, passedProps.primaryToolbarComponents, passedProps.allowUndoRedoButtons, passedProps.linking, passedProps.activityProvider, passedProps.searchProvider, passedProps.annotationProviders, passedProps.collabEditProvider, passedProps.presenceProvider, passedProps.emojiProvider, passedProps.taskDecisionProvider, passedProps.legacyImageUploadProvider, passedProps.mentionProvider, passedProps.autoformattingProvider, passedProps.macroProvider, passedProps.contextIdentifierProvider, passedProps.allowExpand, passedProps.allowNestedTasks, passedProps.allowBlockType, passedProps.allowTasksAndDecisions, passedProps.allowBreakout, passedProps.allowRule, passedProps.allowHelpDialog, passedProps.allowPanel, passedProps.allowExtension, passedProps.allowConfluenceInlineComment, passedProps.allowTemplatePlaceholders, passedProps.allowDate, passedProps.allowLayouts, passedProps.allowStatus, passedProps.allowTextAlignment, passedProps.allowIndentation, passedProps.showIndentationButtons, passedProps.allowFindReplace, passedProps.allowBorderMark, passedProps.allowFragmentMark, passedProps.autoScrollIntoView, passedProps.elementBrowser, passedProps.maxContentSize, passedProps.saveOnEnter, passedProps.feedbackInfo, passedProps.mention, passedProps.mentionInsertDisplayName, passedProps.uploadErrorHandler, passedProps.waitForMediaUpload, passedProps.extensionHandlers, passedProps.allowTextColor, passedProps.allowTables, passedProps.insertMenuItems, passedProps.UNSAFE_cards, passedProps.smartLinks, passedProps.allowAnalyticsGASV3, passedProps.codeBlock, passedProps.textFormatting, passedProps.__livePage, passedProps.AppearanceComponent, passedProps.skipValidation]);
112
+ }, [passedProps.preset, passedProps.appearance, passedProps.contentMode, passedProps.contentComponents, passedProps.primaryToolbarIconBefore, passedProps.secondaryToolbarComponents, passedProps.persistScrollGutter, passedProps.quickInsert, passedProps.shouldFocus, passedProps.disabled, passedProps.contextPanel, passedProps.errorReporterHandler, passedProps.contentTransformerProvider, passedProps.maxHeight, passedProps.minHeight, passedProps.placeholder, passedProps.placeholderBracketHint, passedProps.performanceTracking, passedProps.inputSamplingLimit, passedProps.defaultValue, passedProps.assistiveLabel, passedProps.assistiveDescribedBy, passedProps.popupsMountPoint, passedProps.popupsBoundariesElement, passedProps.popupsScrollableElement, passedProps.editorActions, passedProps.onEditorReady, passedProps.onDestroy, passedProps.onChange, passedProps.onCancel, passedProps.extensionProviders, passedProps.UNSAFE_useAnalyticsContext, passedProps.useStickyToolbar, passedProps.featureFlags, passedProps.onSave, passedProps.sanitizePrivateContent, passedProps.media, passedProps.collabEdit, passedProps.primaryToolbarComponents, passedProps.allowUndoRedoButtons, passedProps.linking, passedProps.activityProvider, passedProps.searchProvider, passedProps.annotationProviders, passedProps.collabEditProvider, passedProps.presenceProvider, passedProps.emojiProvider, passedProps.taskDecisionProvider, passedProps.legacyImageUploadProvider, passedProps.mentionProvider, passedProps.autoformattingProvider, passedProps.macroProvider, passedProps.contextIdentifierProvider, passedProps.allowExpand, passedProps.allowNestedTasks, passedProps.allowBlockType, passedProps.allowTasksAndDecisions, passedProps.allowBreakout, passedProps.allowRule, passedProps.allowHelpDialog, passedProps.allowPanel, passedProps.allowExtension, passedProps.allowConfluenceInlineComment, passedProps.allowTemplatePlaceholders, passedProps.allowDate, passedProps.allowLayouts, passedProps.allowStatus, passedProps.allowTextAlignment, passedProps.allowIndentation, passedProps.showIndentationButtons, passedProps.allowFindReplace, passedProps.allowBorderMark, passedProps.allowFragmentMark, passedProps.autoScrollIntoView, passedProps.elementBrowser, passedProps.maxContentSize, passedProps.saveOnEnter, passedProps.feedbackInfo, passedProps.mention, passedProps.mentionInsertDisplayName, passedProps.uploadErrorHandler, passedProps.waitForMediaUpload, passedProps.extensionHandlers, passedProps.allowTextColor, passedProps.allowTables, passedProps.insertMenuItems, passedProps.UNSAFE_cards, passedProps.smartLinks, passedProps.allowAnalyticsGASV3, passedProps.codeBlock, passedProps.textFormatting, passedProps.__livePage, passedProps.AppearanceComponent, passedProps.skipValidation, passedProps.syncBlock]);
112
113
  return memodProps;
113
114
  };
114
115
  export default useMemoEditorProps;
@@ -45,12 +45,14 @@ import { rulePlugin } from '@atlaskit/editor-plugins/rule';
45
45
  import { saveOnEnterPlugin } from '@atlaskit/editor-plugins/save-on-enter';
46
46
  import { scrollIntoViewPlugin } from '@atlaskit/editor-plugins/scroll-into-view';
47
47
  import { statusPlugin } from '@atlaskit/editor-plugins/status';
48
+ import { syncedBlockPlugin } from '@atlaskit/editor-plugins/synced-block';
48
49
  import { tablesPlugin } from '@atlaskit/editor-plugins/table';
49
50
  import { tasksAndDecisionsPlugin } from '@atlaskit/editor-plugins/tasks-and-decisions';
50
51
  import { textColorPlugin } from '@atlaskit/editor-plugins/text-color';
51
52
  import { toolbarListsIndentationPlugin } from '@atlaskit/editor-plugins/toolbar-lists-indentation';
52
53
  import { ufoPlugin } from '@atlaskit/editor-plugins/ufo';
53
54
  import { fg } from '@atlaskit/platform-feature-flags';
55
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
54
56
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
55
57
  import { isFullPage as fullPageCheck } from '../utils/is-full-page';
56
58
  import { version as coreVersion } from '../version-wrapper';
@@ -216,7 +218,7 @@ export default function createUniversalPresetInternal(_ref) {
216
218
  }], Boolean(props.autoformattingProvider)).maybeAdd([statusPlugin, {
217
219
  menuDisabled: statusMenuDisabled,
218
220
  allowZeroWidthSpaceAfter: true
219
- }], Boolean(props.allowStatus)).maybeAdd(indentationPlugin, Boolean(props.allowIndentation)).maybeAdd(scrollIntoViewPlugin, Boolean(props.autoScrollIntoView !== false)).add([toolbarListsIndentationPlugin, {
221
+ }], Boolean(props.allowStatus)).maybeAdd([syncedBlockPlugin, props.syncBlock], Boolean(props.syncBlock) && expValEquals('platform_synced_block', 'isEnabled', true)).maybeAdd(indentationPlugin, Boolean(props.allowIndentation)).maybeAdd(scrollIntoViewPlugin, Boolean(props.autoScrollIntoView !== false)).add([toolbarListsIndentationPlugin, {
220
222
  showIndentationButtons: !!props.showIndentationButtons,
221
223
  allowHeadingAndParagraphIndentation: !!props.allowIndentation
222
224
  }]).add([insertBlockPlugin, _objectSpread({
@@ -1,4 +1,4 @@
1
- /* FullPageToolbarNext.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* FullPageToolbarNext.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import "./FullPageToolbarNext.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React, { useCallback } from 'react';
@@ -1,4 +1,4 @@
1
- /* ToolbarPortal.tsx generated by @compiled/babel-plugin v0.36.1 */
1
+ /* ToolbarPortal.tsx generated by @compiled/babel-plugin v0.38.1 */
2
2
  import "./ToolbarPortal.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "213.4.1";
2
+ export var version = "0.0.0-development";
@@ -4,7 +4,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
4
4
  initialPluginConfiguration?: InitialPluginConfiguration;
5
5
  prevProps?: EditorProps;
6
6
  props: EditorProps;
7
- }): import("@atlaskit/editor-common/preset").EditorPresetBuilder<["codeBidiWarning", "pasteOptionsToolbarPlugin", import("@atlaskit/editor-common/preset").MaybePluginName<"fragmentPlugin">, import("@atlaskit/editor-common/preset").MaybePluginName<"border">, import("@atlaskit/editor-common/preset").MaybePluginName<"findReplace">, "avatarGroup", import("@atlaskit/editor-common/preset").MaybePluginName<"beforePrimaryToolbar">, "insertBlock", "toolbarListsIndentation", import("@atlaskit/editor-common/preset").MaybePluginName<"scrollIntoView">, import("@atlaskit/editor-common/preset").MaybePluginName<"indentation">, import("@atlaskit/editor-common/preset").MaybePluginName<"status">, import("@atlaskit/editor-common/preset").MaybePluginName<"customAutoformat">, import("@atlaskit/editor-common/preset").MaybePluginName<"card">, import("@atlaskit/editor-common/preset").MaybePluginName<"layout">, import("@atlaskit/editor-common/preset").MaybePluginName<"placeholderText">, import("@atlaskit/editor-common/preset").MaybePluginName<"date">, import("@atlaskit/editor-common/preset").MaybePluginName<"annotation">, import("@atlaskit/editor-common/preset").MaybePluginName<"extension">, import("@atlaskit/editor-common/preset").MaybePluginName<"contextPanel">, import("@atlaskit/editor-common/preset").MaybePluginName<"panel">, import("@atlaskit/editor-common/preset").MaybePluginName<"maxContentSize">, import("@atlaskit/editor-common/preset").MaybePluginName<"collabEdit">, import("@atlaskit/editor-common/preset").MaybePluginName<"media">, import("@atlaskit/editor-common/preset").MaybePluginName<"imageUpload">, import("@atlaskit/editor-common/preset").MaybePluginName<"saveOnEnter">, import("@atlaskit/editor-common/preset").MaybePluginName<"helpDialog">, import("@atlaskit/editor-common/preset").MaybePluginName<"feedbackDialog">, import("@atlaskit/editor-common/preset").MaybePluginName<"taskDecision">, import("@atlaskit/editor-common/preset").MaybePluginName<"table">, import("@atlaskit/editor-common/preset").MaybePluginName<"emoji">, import("@atlaskit/editor-common/preset").MaybePluginName<"mention">, import("@atlaskit/editor-common/preset").MaybePluginName<"caption">, import("@atlaskit/editor-common/preset").MaybePluginName<"mediaInsert">, import("@atlaskit/editor-common/preset").MaybePluginName<"media">, import("@atlaskit/editor-common/preset").MaybePluginName<"annotation">, import("@atlaskit/editor-common/preset").MaybePluginName<"grid">, import("@atlaskit/editor-common/preset").MaybePluginName<"guideline">, import("@atlaskit/editor-common/preset").MaybePluginName<"expand">, import("@atlaskit/editor-common/preset").MaybePluginName<"rule">, "list", import("@atlaskit/editor-common/preset").MaybePluginName<"textColor">, import("@atlaskit/editor-common/preset").MaybePluginName<"alignment">, import("@atlaskit/editor-common/preset").MaybePluginName<"breakout">, "batchAttributeUpdates", "contentInsertion", "accessibilityUtils", "dataConsumer", "ufo", "codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", "selectionToolbar", "clearMarksOnEmptyDoc", "blockType", string, "primaryToolbar", string, string, "typeAhead", "decorations", "base", "contextIdentifier", "composition", string, string, "focus", "clipboard", "paste", "betterTypeHistory", string, "featureFlags"], [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"codeBidiWarning", {
7
+ }): import("@atlaskit/editor-common/preset").EditorPresetBuilder<["codeBidiWarning", "pasteOptionsToolbarPlugin", import("@atlaskit/editor-common/preset").MaybePluginName<"fragmentPlugin">, import("@atlaskit/editor-common/preset").MaybePluginName<"border">, import("@atlaskit/editor-common/preset").MaybePluginName<"findReplace">, "avatarGroup", import("@atlaskit/editor-common/preset").MaybePluginName<"beforePrimaryToolbar">, "insertBlock", "toolbarListsIndentation", import("@atlaskit/editor-common/preset").MaybePluginName<"scrollIntoView">, import("@atlaskit/editor-common/preset").MaybePluginName<"indentation">, import("@atlaskit/editor-common/preset").MaybePluginName<"syncedBlock">, import("@atlaskit/editor-common/preset").MaybePluginName<"status">, import("@atlaskit/editor-common/preset").MaybePluginName<"customAutoformat">, import("@atlaskit/editor-common/preset").MaybePluginName<"card">, import("@atlaskit/editor-common/preset").MaybePluginName<"layout">, import("@atlaskit/editor-common/preset").MaybePluginName<"placeholderText">, import("@atlaskit/editor-common/preset").MaybePluginName<"date">, import("@atlaskit/editor-common/preset").MaybePluginName<"annotation">, import("@atlaskit/editor-common/preset").MaybePluginName<"extension">, import("@atlaskit/editor-common/preset").MaybePluginName<"contextPanel">, import("@atlaskit/editor-common/preset").MaybePluginName<"panel">, import("@atlaskit/editor-common/preset").MaybePluginName<"maxContentSize">, import("@atlaskit/editor-common/preset").MaybePluginName<"collabEdit">, import("@atlaskit/editor-common/preset").MaybePluginName<"media">, import("@atlaskit/editor-common/preset").MaybePluginName<"imageUpload">, import("@atlaskit/editor-common/preset").MaybePluginName<"saveOnEnter">, import("@atlaskit/editor-common/preset").MaybePluginName<"helpDialog">, import("@atlaskit/editor-common/preset").MaybePluginName<"feedbackDialog">, import("@atlaskit/editor-common/preset").MaybePluginName<"taskDecision">, import("@atlaskit/editor-common/preset").MaybePluginName<"table">, import("@atlaskit/editor-common/preset").MaybePluginName<"emoji">, import("@atlaskit/editor-common/preset").MaybePluginName<"mention">, import("@atlaskit/editor-common/preset").MaybePluginName<"caption">, import("@atlaskit/editor-common/preset").MaybePluginName<"mediaInsert">, import("@atlaskit/editor-common/preset").MaybePluginName<"media">, import("@atlaskit/editor-common/preset").MaybePluginName<"annotation">, import("@atlaskit/editor-common/preset").MaybePluginName<"grid">, import("@atlaskit/editor-common/preset").MaybePluginName<"guideline">, import("@atlaskit/editor-common/preset").MaybePluginName<"expand">, import("@atlaskit/editor-common/preset").MaybePluginName<"rule">, "list", import("@atlaskit/editor-common/preset").MaybePluginName<"textColor">, import("@atlaskit/editor-common/preset").MaybePluginName<"alignment">, import("@atlaskit/editor-common/preset").MaybePluginName<"breakout">, "batchAttributeUpdates", "contentInsertion", "accessibilityUtils", "dataConsumer", "ufo", "codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", "selectionToolbar", "clearMarksOnEmptyDoc", "blockType", string, "primaryToolbar", string, string, "typeAhead", "decorations", "base", "contextIdentifier", "composition", string, string, "focus", "clipboard", "paste", "betterTypeHistory", string, "featureFlags"], [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"codeBidiWarning", {
8
8
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/limited-mode").LimitedModePlugin>];
9
9
  pluginConfiguration: import("@atlaskit/editor-plugins/code-bidi-warning").CodeBidiWarningPluginOptions | undefined;
10
10
  }, import("@atlaskit/editor-plugins/code-bidi-warning").CodeBidiWarningPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"pasteOptionsToolbarPlugin", {
@@ -48,7 +48,10 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
48
48
  isIndentationAllowed: boolean;
49
49
  outdentDisabled: boolean;
50
50
  } | undefined;
51
- }, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"status", {
51
+ }, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"syncedBlock", {
52
+ dependencies: [import("@atlaskit/editor-plugins/selection").SelectionPlugin];
53
+ pluginConfiguration: import("@atlaskit/editor-plugins/synced-block").SyncedBlockPluginOptions | undefined;
54
+ }, import("@atlaskit/editor-plugins/synced-block").SyncedBlockPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"status", {
52
55
  actions: import("@atlaskit/editor-plugins/status").StatusPluginActions;
53
56
  commands: import("@atlaskit/editor-plugins/status").StatusPluginCommands;
54
57
  dependencies: import("@atlaskit/editor-plugins/status").StatusPluginDependencies;
@@ -63,7 +63,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
63
63
  initialPluginConfiguration?: InitialPluginConfiguration;
64
64
  prevAppearance?: EditorAppearance;
65
65
  props: UniversalPresetProps;
66
- }): import("@atlaskit/editor-common/preset").EditorPresetBuilder<["codeBidiWarning", "pasteOptionsToolbarPlugin", import("@atlaskit/editor-common/preset").MaybePluginName<"fragmentPlugin">, import("@atlaskit/editor-common/preset").MaybePluginName<"border">, import("@atlaskit/editor-common/preset").MaybePluginName<"findReplace">, "avatarGroup", import("@atlaskit/editor-common/preset").MaybePluginName<"beforePrimaryToolbar">, "insertBlock", "toolbarListsIndentation", import("@atlaskit/editor-common/preset").MaybePluginName<"scrollIntoView">, import("@atlaskit/editor-common/preset").MaybePluginName<"indentation">, import("@atlaskit/editor-common/preset").MaybePluginName<"status">, import("@atlaskit/editor-common/preset").MaybePluginName<"customAutoformat">, import("@atlaskit/editor-common/preset").MaybePluginName<"card">, import("@atlaskit/editor-common/preset").MaybePluginName<"layout">, import("@atlaskit/editor-common/preset").MaybePluginName<"placeholderText">, import("@atlaskit/editor-common/preset").MaybePluginName<"date">, import("@atlaskit/editor-common/preset").MaybePluginName<"annotation">, import("@atlaskit/editor-common/preset").MaybePluginName<"extension">, import("@atlaskit/editor-common/preset").MaybePluginName<"contextPanel">, import("@atlaskit/editor-common/preset").MaybePluginName<"panel">, import("@atlaskit/editor-common/preset").MaybePluginName<"maxContentSize">, import("@atlaskit/editor-common/preset").MaybePluginName<"collabEdit">, import("@atlaskit/editor-common/preset").MaybePluginName<"media">, import("@atlaskit/editor-common/preset").MaybePluginName<"imageUpload">, import("@atlaskit/editor-common/preset").MaybePluginName<"saveOnEnter">, import("@atlaskit/editor-common/preset").MaybePluginName<"helpDialog">, import("@atlaskit/editor-common/preset").MaybePluginName<"feedbackDialog">, import("@atlaskit/editor-common/preset").MaybePluginName<"taskDecision">, import("@atlaskit/editor-common/preset").MaybePluginName<"table">, import("@atlaskit/editor-common/preset").MaybePluginName<"emoji">, import("@atlaskit/editor-common/preset").MaybePluginName<"mention">, import("@atlaskit/editor-common/preset").MaybePluginName<"caption">, import("@atlaskit/editor-common/preset").MaybePluginName<"mediaInsert">, import("@atlaskit/editor-common/preset").MaybePluginName<"media">, import("@atlaskit/editor-common/preset").MaybePluginName<"annotation">, import("@atlaskit/editor-common/preset").MaybePluginName<"grid">, import("@atlaskit/editor-common/preset").MaybePluginName<"guideline">, import("@atlaskit/editor-common/preset").MaybePluginName<"expand">, import("@atlaskit/editor-common/preset").MaybePluginName<"rule">, "list", import("@atlaskit/editor-common/preset").MaybePluginName<"textColor">, import("@atlaskit/editor-common/preset").MaybePluginName<"alignment">, import("@atlaskit/editor-common/preset").MaybePluginName<"breakout">, "batchAttributeUpdates", "contentInsertion", "accessibilityUtils", "dataConsumer", "ufo", "codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", "selectionToolbar", "clearMarksOnEmptyDoc", "blockType", string, "primaryToolbar", string, string, "typeAhead", "decorations", "base", "contextIdentifier", "composition", string, string, "focus", "clipboard", "paste", "betterTypeHistory", string, "featureFlags"], [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"codeBidiWarning", {
66
+ }): import("@atlaskit/editor-common/preset").EditorPresetBuilder<["codeBidiWarning", "pasteOptionsToolbarPlugin", import("@atlaskit/editor-common/preset").MaybePluginName<"fragmentPlugin">, import("@atlaskit/editor-common/preset").MaybePluginName<"border">, import("@atlaskit/editor-common/preset").MaybePluginName<"findReplace">, "avatarGroup", import("@atlaskit/editor-common/preset").MaybePluginName<"beforePrimaryToolbar">, "insertBlock", "toolbarListsIndentation", import("@atlaskit/editor-common/preset").MaybePluginName<"scrollIntoView">, import("@atlaskit/editor-common/preset").MaybePluginName<"indentation">, import("@atlaskit/editor-common/preset").MaybePluginName<"syncedBlock">, import("@atlaskit/editor-common/preset").MaybePluginName<"status">, import("@atlaskit/editor-common/preset").MaybePluginName<"customAutoformat">, import("@atlaskit/editor-common/preset").MaybePluginName<"card">, import("@atlaskit/editor-common/preset").MaybePluginName<"layout">, import("@atlaskit/editor-common/preset").MaybePluginName<"placeholderText">, import("@atlaskit/editor-common/preset").MaybePluginName<"date">, import("@atlaskit/editor-common/preset").MaybePluginName<"annotation">, import("@atlaskit/editor-common/preset").MaybePluginName<"extension">, import("@atlaskit/editor-common/preset").MaybePluginName<"contextPanel">, import("@atlaskit/editor-common/preset").MaybePluginName<"panel">, import("@atlaskit/editor-common/preset").MaybePluginName<"maxContentSize">, import("@atlaskit/editor-common/preset").MaybePluginName<"collabEdit">, import("@atlaskit/editor-common/preset").MaybePluginName<"media">, import("@atlaskit/editor-common/preset").MaybePluginName<"imageUpload">, import("@atlaskit/editor-common/preset").MaybePluginName<"saveOnEnter">, import("@atlaskit/editor-common/preset").MaybePluginName<"helpDialog">, import("@atlaskit/editor-common/preset").MaybePluginName<"feedbackDialog">, import("@atlaskit/editor-common/preset").MaybePluginName<"taskDecision">, import("@atlaskit/editor-common/preset").MaybePluginName<"table">, import("@atlaskit/editor-common/preset").MaybePluginName<"emoji">, import("@atlaskit/editor-common/preset").MaybePluginName<"mention">, import("@atlaskit/editor-common/preset").MaybePluginName<"caption">, import("@atlaskit/editor-common/preset").MaybePluginName<"mediaInsert">, import("@atlaskit/editor-common/preset").MaybePluginName<"media">, import("@atlaskit/editor-common/preset").MaybePluginName<"annotation">, import("@atlaskit/editor-common/preset").MaybePluginName<"grid">, import("@atlaskit/editor-common/preset").MaybePluginName<"guideline">, import("@atlaskit/editor-common/preset").MaybePluginName<"expand">, import("@atlaskit/editor-common/preset").MaybePluginName<"rule">, "list", import("@atlaskit/editor-common/preset").MaybePluginName<"textColor">, import("@atlaskit/editor-common/preset").MaybePluginName<"alignment">, import("@atlaskit/editor-common/preset").MaybePluginName<"breakout">, "batchAttributeUpdates", "contentInsertion", "accessibilityUtils", "dataConsumer", "ufo", "codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", "selectionToolbar", "clearMarksOnEmptyDoc", "blockType", string, "primaryToolbar", string, string, "typeAhead", "decorations", "base", "contextIdentifier", "composition", string, string, "focus", "clipboard", "paste", "betterTypeHistory", string, "featureFlags"], [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"codeBidiWarning", {
67
67
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/limited-mode").LimitedModePlugin>];
68
68
  pluginConfiguration: import("@atlaskit/editor-plugins/code-bidi-warning").CodeBidiWarningPluginOptions | undefined;
69
69
  }, import("@atlaskit/editor-plugins/code-bidi-warning").CodeBidiWarningPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"pasteOptionsToolbarPlugin", {
@@ -107,7 +107,10 @@ export default function createUniversalPresetInternal({ appearance, props, featu
107
107
  isIndentationAllowed: boolean;
108
108
  outdentDisabled: boolean;
109
109
  } | undefined;
110
- }, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"status", {
110
+ }, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"syncedBlock", {
111
+ dependencies: [import("@atlaskit/editor-plugins/selection").SelectionPlugin];
112
+ pluginConfiguration: import("@atlaskit/editor-plugins/synced-block").SyncedBlockPluginOptions | undefined;
113
+ }, import("@atlaskit/editor-plugins/synced-block").SyncedBlockPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"status", {
111
114
  actions: import("@atlaskit/editor-plugins/status").StatusPluginActions;
112
115
  commands: import("@atlaskit/editor-plugins/status").StatusPluginCommands;
113
116
  dependencies: import("@atlaskit/editor-plugins/status").StatusPluginDependencies;
@@ -4,7 +4,7 @@ interface PresetProps {
4
4
  initialPluginConfiguration?: InitialPluginConfiguration;
5
5
  props: EditorProps;
6
6
  }
7
- export default function useUniversalPreset({ props, initialPluginConfiguration }: PresetProps): import("@atlaskit/editor-common/preset").EditorPresetBuilder<["codeBidiWarning", "pasteOptionsToolbarPlugin", import("@atlaskit/editor-common/preset").MaybePluginName<"fragmentPlugin">, import("@atlaskit/editor-common/preset").MaybePluginName<"border">, import("@atlaskit/editor-common/preset").MaybePluginName<"findReplace">, "avatarGroup", import("@atlaskit/editor-common/preset").MaybePluginName<"beforePrimaryToolbar">, "insertBlock", "toolbarListsIndentation", import("@atlaskit/editor-common/preset").MaybePluginName<"scrollIntoView">, import("@atlaskit/editor-common/preset").MaybePluginName<"indentation">, import("@atlaskit/editor-common/preset").MaybePluginName<"status">, import("@atlaskit/editor-common/preset").MaybePluginName<"customAutoformat">, import("@atlaskit/editor-common/preset").MaybePluginName<"card">, import("@atlaskit/editor-common/preset").MaybePluginName<"layout">, import("@atlaskit/editor-common/preset").MaybePluginName<"placeholderText">, import("@atlaskit/editor-common/preset").MaybePluginName<"date">, import("@atlaskit/editor-common/preset").MaybePluginName<"annotation">, import("@atlaskit/editor-common/preset").MaybePluginName<"extension">, import("@atlaskit/editor-common/preset").MaybePluginName<"contextPanel">, import("@atlaskit/editor-common/preset").MaybePluginName<"panel">, import("@atlaskit/editor-common/preset").MaybePluginName<"maxContentSize">, import("@atlaskit/editor-common/preset").MaybePluginName<"collabEdit">, import("@atlaskit/editor-common/preset").MaybePluginName<"media">, import("@atlaskit/editor-common/preset").MaybePluginName<"imageUpload">, import("@atlaskit/editor-common/preset").MaybePluginName<"saveOnEnter">, import("@atlaskit/editor-common/preset").MaybePluginName<"helpDialog">, import("@atlaskit/editor-common/preset").MaybePluginName<"feedbackDialog">, import("@atlaskit/editor-common/preset").MaybePluginName<"taskDecision">, import("@atlaskit/editor-common/preset").MaybePluginName<"table">, import("@atlaskit/editor-common/preset").MaybePluginName<"emoji">, import("@atlaskit/editor-common/preset").MaybePluginName<"mention">, import("@atlaskit/editor-common/preset").MaybePluginName<"caption">, import("@atlaskit/editor-common/preset").MaybePluginName<"mediaInsert">, import("@atlaskit/editor-common/preset").MaybePluginName<"media">, import("@atlaskit/editor-common/preset").MaybePluginName<"annotation">, import("@atlaskit/editor-common/preset").MaybePluginName<"grid">, import("@atlaskit/editor-common/preset").MaybePluginName<"guideline">, import("@atlaskit/editor-common/preset").MaybePluginName<"expand">, import("@atlaskit/editor-common/preset").MaybePluginName<"rule">, "list", import("@atlaskit/editor-common/preset").MaybePluginName<"textColor">, import("@atlaskit/editor-common/preset").MaybePluginName<"alignment">, import("@atlaskit/editor-common/preset").MaybePluginName<"breakout">, "batchAttributeUpdates", "contentInsertion", "accessibilityUtils", "dataConsumer", "ufo", "codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", "selectionToolbar", "clearMarksOnEmptyDoc", "blockType", string, "primaryToolbar", string, string, "typeAhead", "decorations", "base", "contextIdentifier", "composition", string, string, "focus", "clipboard", "paste", "betterTypeHistory", string, "featureFlags"], [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"codeBidiWarning", {
7
+ export default function useUniversalPreset({ props, initialPluginConfiguration }: PresetProps): import("@atlaskit/editor-common/preset").EditorPresetBuilder<["codeBidiWarning", "pasteOptionsToolbarPlugin", import("@atlaskit/editor-common/preset").MaybePluginName<"fragmentPlugin">, import("@atlaskit/editor-common/preset").MaybePluginName<"border">, import("@atlaskit/editor-common/preset").MaybePluginName<"findReplace">, "avatarGroup", import("@atlaskit/editor-common/preset").MaybePluginName<"beforePrimaryToolbar">, "insertBlock", "toolbarListsIndentation", import("@atlaskit/editor-common/preset").MaybePluginName<"scrollIntoView">, import("@atlaskit/editor-common/preset").MaybePluginName<"indentation">, import("@atlaskit/editor-common/preset").MaybePluginName<"syncedBlock">, import("@atlaskit/editor-common/preset").MaybePluginName<"status">, import("@atlaskit/editor-common/preset").MaybePluginName<"customAutoformat">, import("@atlaskit/editor-common/preset").MaybePluginName<"card">, import("@atlaskit/editor-common/preset").MaybePluginName<"layout">, import("@atlaskit/editor-common/preset").MaybePluginName<"placeholderText">, import("@atlaskit/editor-common/preset").MaybePluginName<"date">, import("@atlaskit/editor-common/preset").MaybePluginName<"annotation">, import("@atlaskit/editor-common/preset").MaybePluginName<"extension">, import("@atlaskit/editor-common/preset").MaybePluginName<"contextPanel">, import("@atlaskit/editor-common/preset").MaybePluginName<"panel">, import("@atlaskit/editor-common/preset").MaybePluginName<"maxContentSize">, import("@atlaskit/editor-common/preset").MaybePluginName<"collabEdit">, import("@atlaskit/editor-common/preset").MaybePluginName<"media">, import("@atlaskit/editor-common/preset").MaybePluginName<"imageUpload">, import("@atlaskit/editor-common/preset").MaybePluginName<"saveOnEnter">, import("@atlaskit/editor-common/preset").MaybePluginName<"helpDialog">, import("@atlaskit/editor-common/preset").MaybePluginName<"feedbackDialog">, import("@atlaskit/editor-common/preset").MaybePluginName<"taskDecision">, import("@atlaskit/editor-common/preset").MaybePluginName<"table">, import("@atlaskit/editor-common/preset").MaybePluginName<"emoji">, import("@atlaskit/editor-common/preset").MaybePluginName<"mention">, import("@atlaskit/editor-common/preset").MaybePluginName<"caption">, import("@atlaskit/editor-common/preset").MaybePluginName<"mediaInsert">, import("@atlaskit/editor-common/preset").MaybePluginName<"media">, import("@atlaskit/editor-common/preset").MaybePluginName<"annotation">, import("@atlaskit/editor-common/preset").MaybePluginName<"grid">, import("@atlaskit/editor-common/preset").MaybePluginName<"guideline">, import("@atlaskit/editor-common/preset").MaybePluginName<"expand">, import("@atlaskit/editor-common/preset").MaybePluginName<"rule">, "list", import("@atlaskit/editor-common/preset").MaybePluginName<"textColor">, import("@atlaskit/editor-common/preset").MaybePluginName<"alignment">, import("@atlaskit/editor-common/preset").MaybePluginName<"breakout">, "batchAttributeUpdates", "contentInsertion", "accessibilityUtils", "dataConsumer", "ufo", "codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", "selectionToolbar", "clearMarksOnEmptyDoc", "blockType", string, "primaryToolbar", string, string, "typeAhead", "decorations", "base", "contextIdentifier", "composition", string, string, "focus", "clipboard", "paste", "betterTypeHistory", string, "featureFlags"], [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"codeBidiWarning", {
8
8
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/limited-mode").LimitedModePlugin>];
9
9
  pluginConfiguration: import("@atlaskit/editor-plugins/code-bidi-warning").CodeBidiWarningPluginOptions | undefined;
10
10
  }, import("@atlaskit/editor-plugins/code-bidi-warning").CodeBidiWarningPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"pasteOptionsToolbarPlugin", {
@@ -48,7 +48,10 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
48
48
  isIndentationAllowed: boolean;
49
49
  outdentDisabled: boolean;
50
50
  } | undefined;
51
- }, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"status", {
51
+ }, undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"syncedBlock", {
52
+ dependencies: [import("@atlaskit/editor-plugins/selection").SelectionPlugin];
53
+ pluginConfiguration: import("@atlaskit/editor-plugins/synced-block").SyncedBlockPluginOptions | undefined;
54
+ }, import("@atlaskit/editor-plugins/synced-block").SyncedBlockPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"status", {
52
55
  actions: import("@atlaskit/editor-plugins/status").StatusPluginActions;
53
56
  commands: import("@atlaskit/editor-plugins/status").StatusPluginCommands;
54
57
  dependencies: import("@atlaskit/editor-plugins/status").StatusPluginDependencies;
@@ -19,6 +19,7 @@ import type { MediaPluginOptions, MediaState } from '@atlaskit/editor-plugins/me
19
19
  import type { MentionPluginConfig } from '@atlaskit/editor-plugins/mentions';
20
20
  import type { PanelPluginConfig } from '@atlaskit/editor-plugins/panel';
21
21
  import type { PlaceholderTextPluginOptions } from '@atlaskit/editor-plugins/placeholder-text';
22
+ import type { SyncedBlockPluginOptions } from '@atlaskit/editor-plugins/synced-block';
22
23
  import type { PluginConfig as TablesPluginConfig } from '@atlaskit/editor-plugins/table/types';
23
24
  import type { TextColorPluginConfig } from '@atlaskit/editor-plugins/text-color';
24
25
  import type { TextFormattingPluginOptions } from '@atlaskit/editor-plugins/text-formatting';
@@ -276,6 +277,7 @@ export interface EditorPluginFeatureProps {
276
277
  showIndentationButtons?: boolean;
277
278
  /** @deprecated Use linking.smartLinks prop instead. */
278
279
  smartLinks?: CardOptions;
280
+ syncBlock?: SyncedBlockPluginOptions;
279
281
  textFormatting?: TextFormattingPluginOptions;
280
282
  /** @deprecated Use linking.smartLinks prop instead. */
281
283
  UNSAFE_cards?: CardOptions;
@@ -16,6 +16,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
16
16
  "toolbarListsIndentation",
17
17
  import("@atlaskit/editor-common/preset").MaybePluginName<"scrollIntoView">,
18
18
  import("@atlaskit/editor-common/preset").MaybePluginName<"indentation">,
19
+ import("@atlaskit/editor-common/preset").MaybePluginName<"syncedBlock">,
19
20
  import("@atlaskit/editor-common/preset").MaybePluginName<"status">,
20
21
  import("@atlaskit/editor-common/preset").MaybePluginName<"customAutoformat">,
21
22
  import("@atlaskit/editor-common/preset").MaybePluginName<"card">,
@@ -144,6 +145,12 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
144
145
  outdentDisabled: boolean;
145
146
  } | undefined;
146
147
  }, undefined> | undefined,
148
+ import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"syncedBlock", {
149
+ dependencies: [
150
+ import("@atlaskit/editor-plugins/selection").SelectionPlugin
151
+ ];
152
+ pluginConfiguration: import("@atlaskit/editor-plugins/synced-block").SyncedBlockPluginOptions | undefined;
153
+ }, import("@atlaskit/editor-plugins/synced-block").SyncedBlockPluginOptions | undefined> | undefined,
147
154
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"status", {
148
155
  actions: import("@atlaskit/editor-plugins/status").StatusPluginActions;
149
156
  commands: import("@atlaskit/editor-plugins/status").StatusPluginCommands;
@@ -75,6 +75,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
75
75
  "toolbarListsIndentation",
76
76
  import("@atlaskit/editor-common/preset").MaybePluginName<"scrollIntoView">,
77
77
  import("@atlaskit/editor-common/preset").MaybePluginName<"indentation">,
78
+ import("@atlaskit/editor-common/preset").MaybePluginName<"syncedBlock">,
78
79
  import("@atlaskit/editor-common/preset").MaybePluginName<"status">,
79
80
  import("@atlaskit/editor-common/preset").MaybePluginName<"customAutoformat">,
80
81
  import("@atlaskit/editor-common/preset").MaybePluginName<"card">,
@@ -203,6 +204,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
203
204
  outdentDisabled: boolean;
204
205
  } | undefined;
205
206
  }, undefined> | undefined,
207
+ import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"syncedBlock", {
208
+ dependencies: [
209
+ import("@atlaskit/editor-plugins/selection").SelectionPlugin
210
+ ];
211
+ pluginConfiguration: import("@atlaskit/editor-plugins/synced-block").SyncedBlockPluginOptions | undefined;
212
+ }, import("@atlaskit/editor-plugins/synced-block").SyncedBlockPluginOptions | undefined> | undefined,
206
213
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"status", {
207
214
  actions: import("@atlaskit/editor-plugins/status").StatusPluginActions;
208
215
  commands: import("@atlaskit/editor-plugins/status").StatusPluginCommands;
@@ -16,6 +16,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
16
16
  "toolbarListsIndentation",
17
17
  import("@atlaskit/editor-common/preset").MaybePluginName<"scrollIntoView">,
18
18
  import("@atlaskit/editor-common/preset").MaybePluginName<"indentation">,
19
+ import("@atlaskit/editor-common/preset").MaybePluginName<"syncedBlock">,
19
20
  import("@atlaskit/editor-common/preset").MaybePluginName<"status">,
20
21
  import("@atlaskit/editor-common/preset").MaybePluginName<"customAutoformat">,
21
22
  import("@atlaskit/editor-common/preset").MaybePluginName<"card">,
@@ -144,6 +145,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
144
145
  outdentDisabled: boolean;
145
146
  } | undefined;
146
147
  }, undefined> | undefined,
148
+ import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"syncedBlock", {
149
+ dependencies: [
150
+ import("@atlaskit/editor-plugins/selection").SelectionPlugin
151
+ ];
152
+ pluginConfiguration: import("@atlaskit/editor-plugins/synced-block").SyncedBlockPluginOptions | undefined;
153
+ }, import("@atlaskit/editor-plugins/synced-block").SyncedBlockPluginOptions | undefined> | undefined,
147
154
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"status", {
148
155
  actions: import("@atlaskit/editor-plugins/status").StatusPluginActions;
149
156
  commands: import("@atlaskit/editor-plugins/status").StatusPluginCommands;
@@ -19,6 +19,7 @@ import type { MediaPluginOptions, MediaState } from '@atlaskit/editor-plugins/me
19
19
  import type { MentionPluginConfig } from '@atlaskit/editor-plugins/mentions';
20
20
  import type { PanelPluginConfig } from '@atlaskit/editor-plugins/panel';
21
21
  import type { PlaceholderTextPluginOptions } from '@atlaskit/editor-plugins/placeholder-text';
22
+ import type { SyncedBlockPluginOptions } from '@atlaskit/editor-plugins/synced-block';
22
23
  import type { PluginConfig as TablesPluginConfig } from '@atlaskit/editor-plugins/table/types';
23
24
  import type { TextColorPluginConfig } from '@atlaskit/editor-plugins/text-color';
24
25
  import type { TextFormattingPluginOptions } from '@atlaskit/editor-plugins/text-formatting';
@@ -276,6 +277,7 @@ export interface EditorPluginFeatureProps {
276
277
  showIndentationButtons?: boolean;
277
278
  /** @deprecated Use linking.smartLinks prop instead. */
278
279
  smartLinks?: CardOptions;
280
+ syncBlock?: SyncedBlockPluginOptions;
279
281
  textFormatting?: TextFormattingPluginOptions;
280
282
  /** @deprecated Use linking.smartLinks prop instead. */
281
283
  UNSAFE_cards?: CardOptions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "213.4.2",
3
+ "version": "213.5.0",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -62,9 +62,9 @@
62
62
  "@atlaskit/mention": "^24.2.0",
63
63
  "@atlaskit/platform-feature-flags": "^1.1.0",
64
64
  "@atlaskit/platform-feature-flags-react": "^0.3.0",
65
- "@atlaskit/react-ufo": "^4.7.0",
65
+ "@atlaskit/react-ufo": "^4.8.0",
66
66
  "@atlaskit/task-decision": "^19.2.0",
67
- "@atlaskit/tmp-editor-statsig": "^12.25.0",
67
+ "@atlaskit/tmp-editor-statsig": "^12.27.0",
68
68
  "@atlaskit/tokens": "^6.3.0",
69
69
  "@atlaskit/tooltip": "^20.4.0",
70
70
  "@atlaskit/width-detector": "^5.0.0",
@@ -81,7 +81,7 @@
81
81
  "uuid": "^3.1.0"
82
82
  },
83
83
  "peerDependencies": {
84
- "@atlaskit/editor-common": "^109.10.0",
84
+ "@atlaskit/editor-common": "^109.11.0",
85
85
  "@atlaskit/link-provider": "^4.0.0",
86
86
  "@atlaskit/media-core": "^37.0.0",
87
87
  "react": "^18.2.0",
@@ -94,7 +94,7 @@
94
94
  "@atlaskit/adf-utils": "^19.23.0",
95
95
  "@atlaskit/analytics-listeners": "^9.0.0",
96
96
  "@atlaskit/collab-provider": "^13.0.0",
97
- "@atlaskit/editor-plugin-annotation": "^5.3.0",
97
+ "@atlaskit/editor-plugin-annotation": "^5.4.0",
98
98
  "@atlaskit/editor-plugin-card": "^10.1.0",
99
99
  "@atlaskit/editor-plugin-list": "^7.2.0",
100
100
  "@atlaskit/editor-plugin-paste": "^6.2.0",
@@ -104,8 +104,8 @@
104
104
  "@atlaskit/media-integration-test-helpers": "workspace:^",
105
105
  "@atlaskit/media-test-helpers": "^39.0.0",
106
106
  "@atlaskit/modal-dialog": "^14.3.0",
107
- "@atlaskit/primitives": "^14.14.0",
108
- "@atlaskit/renderer": "^123.3.0",
107
+ "@atlaskit/primitives": "^14.15.0",
108
+ "@atlaskit/renderer": "^123.4.0",
109
109
  "@atlaskit/section-message": "^8.7.0",
110
110
  "@atlaskit/smart-card": "^42.0.0",
111
111
  "@atlaskit/synchrony-test-helpers": "workspace:^",
@@ -382,10 +382,6 @@
382
382
  "type": "boolean",
383
383
  "referenceOnly": true
384
384
  },
385
- "platform_editor_listen_for_focussed_query_param": {
386
- "type": "boolean",
387
- "referenceOnly": true
388
- },
389
385
  "platform_editor_nested_tables_cellselection_paste": {
390
386
  "type": "boolean",
391
387
  "referenceOnly": true