@atlaskit/editor-core 193.28.6 → 193.29.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,28 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 193.29.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#115247](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/115247)
8
+ [`251d23ff9e6c8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/251d23ff9e6c8) -
9
+ upgrade adf-schema version to 38.0.0
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
15
+ ## 193.28.10
16
+
17
+ ### Patch Changes
18
+
19
+ - [#113338](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/113338)
20
+ [`6b5439f51eab4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6b5439f51eab4) -
21
+ ECA11Y-5 remove FF from codebase
22
+ - [#115170](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/115170)
23
+ [`84489f16bb385`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/84489f16bb385) -
24
+ Adds a pm-plugin to register contentMoved event as an alternative to DnD feature.
25
+
3
26
  ## 193.28.6
4
27
 
5
28
  ### Patch Changes
@@ -43,7 +43,7 @@ gained from the initial table plugin extraction.
43
43
 
44
44
  Linting errors will now be present for any new code that gets added, where we continue to attempt
45
45
  importing from one plugin into another. (See `ELR101`, `ELR102` in
46
- `repo-docs/content/cloud/framework/atlassian-frontend/editor/lint.md`).
46
+ `https://hello.atlassian.net/wiki/spaces/AF/pages/2634573964/Editor+Lint`).
47
47
 
48
48
  ### Other resources
49
49
 
@@ -795,7 +795,8 @@ var ReactEditorView = exports.ReactEditorView = /*#__PURE__*/function (_React$Co
795
795
  return /*#__PURE__*/_react.default.createElement(_ReactEditorViewContext.default.Provider, {
796
796
  value: {
797
797
  editorRef: this.editorRef,
798
- editorView: this.view
798
+ editorView: this.view,
799
+ popupsMountPoint: this.props.editorProps.popupsMountPoint
799
800
  }
800
801
  }, renderTrackingEnabled && /*#__PURE__*/_react.default.createElement(_RenderTracking.RenderTracking, {
801
802
  componentProps: this.props,
@@ -38,6 +38,7 @@ var _undoRedo = require("@atlaskit/editor-plugins/undo-redo");
38
38
  var _unsupportedContent = require("@atlaskit/editor-plugins/unsupported-content");
39
39
  var _width = require("@atlaskit/editor-plugins/width");
40
40
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
41
+ var _isFullPage = require("../utils/is-full-page");
41
42
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
42
43
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } // #region Imports
43
44
  // #endregion
@@ -49,10 +50,13 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
49
50
  function createDefaultPreset(options) {
50
51
  var _options$featureFlags, _options$featureFlags2;
51
52
  var isMobile = options.appearance === 'mobile';
53
+ var isFullPage = (0, _isFullPage.isFullPage)(options.appearance);
52
54
  var preset = new _preset.EditorPresetBuilder().add([_featureFlags.featureFlagsPlugin, options.featureFlags || {}]).maybeAdd([_analytics.analyticsPlugin, {
53
55
  createAnalyticsEvent: options.createAnalyticsEvent,
54
56
  performanceTracking: options.performanceTracking
55
- }], Boolean(options.allowAnalyticsGASV3)).add(_betterTypeHistory.betterTypeHistoryPlugin).add([_paste.pastePlugin, _objectSpread({}, options === null || options === void 0 ? void 0 : options.paste)]).add(_clipboard.clipboardPlugin).add(_focus.focusPlugin).add(_composition.compositionPlugin).add([_contextIdentifier.contextIdentifierPlugin, {
57
+ }], Boolean(options.allowAnalyticsGASV3)).add(_betterTypeHistory.betterTypeHistoryPlugin).add([_paste.pastePlugin, _objectSpread(_objectSpread({}, options === null || options === void 0 ? void 0 : options.paste), {}, {
58
+ isFullPage: isFullPage
59
+ })]).add(_clipboard.clipboardPlugin).add(_focus.focusPlugin).add(_composition.compositionPlugin).add([_contextIdentifier.contextIdentifierPlugin, {
56
60
  contextIdentifierProvider: options.contextIdentifierProvider
57
61
  }]).add([_base.basePlugin, options.base]).add(_decorations.decorationsPlugin).add([_typeAhead.typeAheadPlugin, options.typeAhead]).maybeAdd(_history.historyPlugin, Boolean(isMobile || options.allowUndoRedoButtons)).maybeAdd(_primaryToolbar.primaryToolbarPlugin, function () {
58
62
  return !!(0, _platformFeatureFlags.getBooleanFF)('platform.editor.primary-toolbar-ordering');
@@ -13,6 +13,7 @@ var _reactIntlNext = require("react-intl-next");
13
13
  var _messages = require("@atlaskit/editor-common/messages");
14
14
  var _ui = require("@atlaskit/editor-common/ui");
15
15
  var _uiMenu = require("@atlaskit/editor-common/ui-menu");
16
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
16
17
  var _context = require("../../../presets/context");
17
18
  var _Toolbar = _interopRequireDefault(require("../../Toolbar"));
18
19
  var _BeforeWrapper = require("./BeforeWrapper");
@@ -96,6 +97,9 @@ var EditorToolbar = exports.EditorToolbar = /*#__PURE__*/_react.default.memo(fun
96
97
  };
97
98
  var handleEscape = function handleEscape(event) {
98
99
  var _props$editorView;
100
+ if ((0, _platformFeatureFlags.getBooleanFF)('platform.editor.a11y-main-toolbar-navigation_osrty') && !props.popupsMountPoint) {
101
+ return;
102
+ }
99
103
  if (!((_props$editorView = props.editorView) !== null && _props$editorView !== void 0 && _props$editorView.hasFocus())) {
100
104
  var _props$editorView2;
101
105
  (_props$editorView2 = props.editorView) === null || _props$editorView2 === void 0 || _props$editorView2.focus();
@@ -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 = "193.28.6";
8
+ var version = exports.version = "193.29.0";
@@ -736,7 +736,8 @@ export class ReactEditorView extends React.Component {
736
736
  return /*#__PURE__*/React.createElement(ReactEditorViewContext.Provider, {
737
737
  value: {
738
738
  editorRef: this.editorRef,
739
- editorView: this.view
739
+ editorView: this.view,
740
+ popupsMountPoint: this.props.editorProps.popupsMountPoint
740
741
  }
741
742
  }, renderTrackingEnabled && /*#__PURE__*/React.createElement(RenderTracking, {
742
743
  componentProps: this.props,
@@ -31,6 +31,7 @@ import { undoRedoPlugin } from '@atlaskit/editor-plugins/undo-redo';
31
31
  import { unsupportedContentPlugin } from '@atlaskit/editor-plugins/unsupported-content';
32
32
  import { widthPlugin } from '@atlaskit/editor-plugins/width';
33
33
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
34
+ import { isFullPage as fullPageCheck } from '../utils/is-full-page';
34
35
  // #endregion
35
36
 
36
37
  /**
@@ -40,11 +41,13 @@ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
40
41
  export function createDefaultPreset(options) {
41
42
  var _options$featureFlags, _options$featureFlags2;
42
43
  const isMobile = options.appearance === 'mobile';
44
+ const isFullPage = fullPageCheck(options.appearance);
43
45
  const preset = new EditorPresetBuilder().add([featureFlagsPlugin, options.featureFlags || {}]).maybeAdd([analyticsPlugin, {
44
46
  createAnalyticsEvent: options.createAnalyticsEvent,
45
47
  performanceTracking: options.performanceTracking
46
48
  }], Boolean(options.allowAnalyticsGASV3)).add(betterTypeHistoryPlugin).add([pastePlugin, {
47
- ...(options === null || options === void 0 ? void 0 : options.paste)
49
+ ...(options === null || options === void 0 ? void 0 : options.paste),
50
+ isFullPage
48
51
  }]).add(clipboardPlugin).add(focusPlugin).add(compositionPlugin).add([contextIdentifierPlugin, {
49
52
  contextIdentifierProvider: options.contextIdentifierProvider
50
53
  }]).add([basePlugin, options.base]).add(decorationsPlugin).add([typeAheadPlugin, options.typeAhead]).maybeAdd(historyPlugin, Boolean(isMobile || options.allowUndoRedoButtons)).maybeAdd(primaryToolbarPlugin, () => !!getBooleanFF('platform.editor.primary-toolbar-ordering')).maybeAdd(undoRedoPlugin, Boolean((_options$featureFlags = (_options$featureFlags2 = options.featureFlags) === null || _options$featureFlags2 === void 0 ? void 0 : _options$featureFlags2.undoRedoButtons) !== null && _options$featureFlags !== void 0 ? _options$featureFlags : options.allowUndoRedoButtons)).add([blockTypePlugin, options.blockType]).add(clearMarksOnEmptyDocPlugin).maybeAdd([selectionToolbarPlugin, {
@@ -8,6 +8,7 @@ import { injectIntl } from 'react-intl-next';
8
8
  import { fullPageMessages as messages } from '@atlaskit/editor-common/messages';
9
9
  import { ContextPanelConsumer } from '@atlaskit/editor-common/ui';
10
10
  import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-menu';
11
+ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
11
12
  import { usePresetContext } from '../../../presets/context';
12
13
  import Toolbar from '../../Toolbar';
13
14
  import { BeforePrimaryToolbarWrapper } from './BeforeWrapper';
@@ -80,6 +81,9 @@ export const EditorToolbar = /*#__PURE__*/React.memo(props => {
80
81
  };
81
82
  const handleEscape = event => {
82
83
  var _props$editorView;
84
+ if (getBooleanFF('platform.editor.a11y-main-toolbar-navigation_osrty') && !props.popupsMountPoint) {
85
+ return;
86
+ }
83
87
  if (!((_props$editorView = props.editorView) !== null && _props$editorView !== void 0 && _props$editorView.hasFocus())) {
84
88
  var _props$editorView2;
85
89
  (_props$editorView2 = props.editorView) === null || _props$editorView2 === void 0 ? void 0 : _props$editorView2.focus();
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "193.28.6";
2
+ export const version = "193.29.0";
@@ -788,7 +788,8 @@ export var ReactEditorView = /*#__PURE__*/function (_React$Component) {
788
788
  return /*#__PURE__*/React.createElement(ReactEditorViewContext.Provider, {
789
789
  value: {
790
790
  editorRef: this.editorRef,
791
- editorView: this.view
791
+ editorView: this.view,
792
+ popupsMountPoint: this.props.editorProps.popupsMountPoint
792
793
  }
793
794
  }, renderTrackingEnabled && /*#__PURE__*/React.createElement(RenderTracking, {
794
795
  componentProps: this.props,
@@ -34,6 +34,7 @@ import { undoRedoPlugin } from '@atlaskit/editor-plugins/undo-redo';
34
34
  import { unsupportedContentPlugin } from '@atlaskit/editor-plugins/unsupported-content';
35
35
  import { widthPlugin } from '@atlaskit/editor-plugins/width';
36
36
  import { getBooleanFF } from '@atlaskit/platform-feature-flags';
37
+ import { isFullPage as fullPageCheck } from '../utils/is-full-page';
37
38
  // #endregion
38
39
 
39
40
  /**
@@ -43,10 +44,13 @@ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
43
44
  export function createDefaultPreset(options) {
44
45
  var _options$featureFlags, _options$featureFlags2;
45
46
  var isMobile = options.appearance === 'mobile';
47
+ var isFullPage = fullPageCheck(options.appearance);
46
48
  var preset = new EditorPresetBuilder().add([featureFlagsPlugin, options.featureFlags || {}]).maybeAdd([analyticsPlugin, {
47
49
  createAnalyticsEvent: options.createAnalyticsEvent,
48
50
  performanceTracking: options.performanceTracking
49
- }], Boolean(options.allowAnalyticsGASV3)).add(betterTypeHistoryPlugin).add([pastePlugin, _objectSpread({}, options === null || options === void 0 ? void 0 : options.paste)]).add(clipboardPlugin).add(focusPlugin).add(compositionPlugin).add([contextIdentifierPlugin, {
51
+ }], Boolean(options.allowAnalyticsGASV3)).add(betterTypeHistoryPlugin).add([pastePlugin, _objectSpread(_objectSpread({}, options === null || options === void 0 ? void 0 : options.paste), {}, {
52
+ isFullPage: isFullPage
53
+ })]).add(clipboardPlugin).add(focusPlugin).add(compositionPlugin).add([contextIdentifierPlugin, {
50
54
  contextIdentifierProvider: options.contextIdentifierProvider
51
55
  }]).add([basePlugin, options.base]).add(decorationsPlugin).add([typeAheadPlugin, options.typeAhead]).maybeAdd(historyPlugin, Boolean(isMobile || options.allowUndoRedoButtons)).maybeAdd(primaryToolbarPlugin, function () {
52
56
  return !!getBooleanFF('platform.editor.primary-toolbar-ordering');
@@ -9,6 +9,7 @@ import { injectIntl } from 'react-intl-next';
9
9
  import { fullPageMessages as messages } from '@atlaskit/editor-common/messages';
10
10
  import { ContextPanelConsumer } from '@atlaskit/editor-common/ui';
11
11
  import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-menu';
12
+ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
12
13
  import { usePresetContext } from '../../../presets/context';
13
14
  import Toolbar from '../../Toolbar';
14
15
  import { BeforePrimaryToolbarWrapper } from './BeforeWrapper';
@@ -86,6 +87,9 @@ export var EditorToolbar = /*#__PURE__*/React.memo(function (props) {
86
87
  };
87
88
  var handleEscape = function handleEscape(event) {
88
89
  var _props$editorView;
90
+ if (getBooleanFF('platform.editor.a11y-main-toolbar-navigation_osrty') && !props.popupsMountPoint) {
91
+ return;
92
+ }
89
93
  if (!((_props$editorView = props.editorView) !== null && _props$editorView !== void 0 && _props$editorView.hasFocus())) {
90
94
  var _props$editorView2;
91
95
  (_props$editorView2 = props.editorView) === null || _props$editorView2 === void 0 || _props$editorView2.focus();
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "193.28.6";
2
+ export var version = "193.29.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "193.28.6",
3
+ "version": "193.29.0",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -40,18 +40,18 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@atlaskit/activity-provider": "^2.4.0",
43
- "@atlaskit/adf-schema": "^37.0.0",
43
+ "@atlaskit/adf-schema": "^38.0.0",
44
44
  "@atlaskit/analytics-namespaced-context": "^6.10.0",
45
45
  "@atlaskit/analytics-next": "^9.3.0",
46
46
  "@atlaskit/analytics-next-stable-react-context": "1.0.1",
47
47
  "@atlaskit/button": "^18.0.0",
48
- "@atlaskit/editor-common": "^83.0.0",
49
- "@atlaskit/editor-json-transformer": "^8.14.0",
48
+ "@atlaskit/editor-common": "^83.3.0",
49
+ "@atlaskit/editor-json-transformer": "^8.15.0",
50
50
  "@atlaskit/editor-plugins": "^3.3.0",
51
51
  "@atlaskit/editor-prosemirror": "4.0.1",
52
52
  "@atlaskit/editor-shared-styles": "^2.12.0",
53
53
  "@atlaskit/emoji": "^67.6.0",
54
- "@atlaskit/icon": "^22.4.0",
54
+ "@atlaskit/icon": "^22.5.0",
55
55
  "@atlaskit/media-card": "^77.12.0",
56
56
  "@atlaskit/mention": "^23.2.0",
57
57
  "@atlaskit/platform-feature-flags": "^0.2.0",
@@ -81,17 +81,17 @@
81
81
  "react-intl-next": "npm:react-intl@^5.18.1"
82
82
  },
83
83
  "devDependencies": {
84
- "@af/editor-examples-helpers": "0.0.9",
84
+ "@af/editor-examples-helpers": "0.0.10",
85
85
  "@af/editor-libra": "*",
86
86
  "@af/visual-regression": "*",
87
- "@atlaskit/adf-utils": "^19.3.0",
87
+ "@atlaskit/adf-utils": "^19.4.0",
88
88
  "@atlaskit/analytics-listeners": "^8.10.0",
89
- "@atlaskit/collab-provider": "9.30.1",
90
- "@atlaskit/editor-plugin-annotation": "1.12.1",
91
- "@atlaskit/editor-plugin-card": "^2.1.0",
89
+ "@atlaskit/collab-provider": "9.32.0",
90
+ "@atlaskit/editor-plugin-annotation": "1.13.0",
91
+ "@atlaskit/editor-plugin-card": "^2.2.0",
92
92
  "@atlaskit/editor-plugin-editor-viewmode": "^2.0.0",
93
- "@atlaskit/editor-plugin-list": "^3.4.0",
94
- "@atlaskit/editor-plugin-paste": "^1.3.0",
93
+ "@atlaskit/editor-plugin-list": "^3.5.0",
94
+ "@atlaskit/editor-plugin-paste": "^1.4.0",
95
95
  "@atlaskit/editor-test-helpers": "*",
96
96
  "@atlaskit/link-provider": "^1.11.0",
97
97
  "@atlaskit/logo": "^14.1.0",
@@ -99,9 +99,9 @@
99
99
  "@atlaskit/media-integration-test-helpers": "^3.0.0",
100
100
  "@atlaskit/media-test-helpers": "^33.0.27",
101
101
  "@atlaskit/modal-dialog": "^12.14.0",
102
- "@atlaskit/primitives": "^8.2.0",
103
- "@atlaskit/renderer": "^109.36.0",
104
- "@atlaskit/smart-card": "^27.7.0",
102
+ "@atlaskit/primitives": "^9.0.0",
103
+ "@atlaskit/renderer": "^109.38.0",
104
+ "@atlaskit/smart-card": "^27.8.0",
105
105
  "@atlaskit/synchrony-test-helpers": "^2.4.0",
106
106
  "@atlaskit/toggle": "^13.2.0",
107
107
  "@atlaskit/util-data-test": "^17.9.0",
@@ -252,10 +252,6 @@
252
252
  "type": "boolean",
253
253
  "referenceOnly": true
254
254
  },
255
- "platform.editor.a11y-column-resizing_emcvz": {
256
- "type": "boolean",
257
- "referenceOnly": "true"
258
- },
259
255
  "platform.editor.paste-markdown-table-in-a-table": {
260
256
  "type": "boolean",
261
257
  "referenceOnly": "true"
@@ -357,6 +353,9 @@
357
353
  "platform.editor.no-telecursors-for-viewmode-users_hok8o": {
358
354
  "type": "boolean",
359
355
  "referenceOnly": "true"
356
+ },
357
+ "platform.editor.a11y-main-toolbar-navigation_osrty": {
358
+ "type": "boolean"
360
359
  }
361
360
  },
362
361
  "stricter": {