@atlaskit/editor-core 194.1.1 → 194.3.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,33 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 194.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#119966](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/119966)
8
+ [`596ad24e38929`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/596ad24e38929) -
9
+ Clean up typescript references to LegacyPortalProviderAPI
10
+
11
+ ### Patch Changes
12
+
13
+ - [#119412](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/119412)
14
+ [`a714be7c47d68`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a714be7c47d68) -
15
+ [ux] [ED-23047] Remove FF platform.editor.text-alignment-keyboard-shortcuts and make feature
16
+ flagged functionality default
17
+ - Updated dependencies
18
+
19
+ ## 194.2.0
20
+
21
+ ### Minor Changes
22
+
23
+ - [#119608](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/119608)
24
+ [`ecb9286aa6ae8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ecb9286aa6ae8) -
25
+ refactor: remove some usages of findDOMNode in editor-core and editor-plugin-insert-block
26
+
27
+ ### Patch Changes
28
+
29
+ - Updated dependencies
30
+
3
31
  ## 194.1.1
4
32
 
5
33
  ### Patch Changes
@@ -219,7 +219,7 @@ var ReactEditorView = exports.ReactEditorView = /*#__PURE__*/function (_React$Co
219
219
  var api = _this.pluginInjectionAPI.api();
220
220
  var isViewMode = (api === null || api === void 0 || (_api$editorViewMode = api.editorViewMode) === null || _api$editorViewMode === void 0 ? void 0 : _api$editorViewMode.sharedState.currentState().mode) === 'view';
221
221
  var selection;
222
- if ((0, _platformFeatureFlags.getBooleanFF)('platform.editor.live-view.no-editor-selection-in-view-mode')) {
222
+ if ((0, _platformFeatureFlags.fg)('platform.editor.live-view.no-editor-selection-in-view-mode')) {
223
223
  if (doc) {
224
224
  if (isViewMode) {
225
225
  var emptySelection = new _state2.TextSelection(doc.resolve(0));
package/dist/cjs/index.js CHANGED
@@ -76,30 +76,12 @@ Object.defineProperty(exports, "INPUT_METHOD", {
76
76
  return _analytics.INPUT_METHOD;
77
77
  }
78
78
  });
79
- Object.defineProperty(exports, "LegacyPortalProviderAPI", {
80
- enumerable: true,
81
- get: function get() {
82
- return _portalProvider.LegacyPortalProviderAPI;
83
- }
84
- });
85
79
  Object.defineProperty(exports, "MentionResource", {
86
80
  enumerable: true,
87
81
  get: function get() {
88
82
  return _resource2.MentionResource;
89
83
  }
90
84
  });
91
- Object.defineProperty(exports, "PortalProvider", {
92
- enumerable: true,
93
- get: function get() {
94
- return _portalProvider.PortalProvider;
95
- }
96
- });
97
- Object.defineProperty(exports, "PortalRenderer", {
98
- enumerable: true,
99
- get: function get() {
100
- return _portalProvider.PortalRenderer;
101
- }
102
- });
103
85
  Object.defineProperty(exports, "TeamMentionResource", {
104
86
  enumerable: true,
105
87
  get: function get() {
@@ -183,5 +165,4 @@ var _analytics = require("@atlaskit/editor-common/analytics");
183
165
  var _utils = require("./utils");
184
166
  var _utils2 = require("@atlaskit/editor-common/utils");
185
167
  var _actions = _interopRequireDefault(require("./actions"));
186
- var _portalProvider = require("@atlaskit/editor-common/portal-provider");
187
168
  var _ContentStyles = require("./ui/ContentStyles");
@@ -18,7 +18,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
18
18
  var _react = require("react");
19
19
  var _react2 = require("@emotion/react");
20
20
  var _propTypes = _interopRequireDefault(require("prop-types"));
21
- var _reactDom = _interopRequireDefault(require("react-dom"));
22
21
  var _buttonGroup = _interopRequireDefault(require("@atlaskit/button/button-group"));
23
22
  var _new = _interopRequireDefault(require("@atlaskit/button/new"));
24
23
  var _analytics = require("@atlaskit/editor-common/analytics");
@@ -66,7 +65,7 @@ var ToolbarFeedbackInternal = /*#__PURE__*/function (_PureComponent) {
66
65
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleRef", function (ref) {
67
66
  if (ref) {
68
67
  _this.setState({
69
- target: _reactDom.default.findDOMNode(ref || null)
68
+ target: ref
70
69
  });
71
70
  }
72
71
  });
@@ -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 = "194.1.1";
8
+ var version = exports.version = "194.3.0";
@@ -11,7 +11,7 @@ import { EDIT_AREA_ID } from '@atlaskit/editor-common/ui';
11
11
  import { analyticsEventKey, browser, countNodes, findChangedNodesFromTransaction, getAnalyticsEventSeverity, getResponseEndTime, measureRender, processRawValue, shouldForceTracking, startMeasure, stopMeasure, validateNodes, validNode } from '@atlaskit/editor-common/utils';
12
12
  import { EditorState, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
13
13
  import { EditorView } from '@atlaskit/editor-prosemirror/view';
14
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
14
+ import { fg } from '@atlaskit/platform-feature-flags';
15
15
  import { createDispatch, EventDispatcher } from '../event-dispatcher';
16
16
  import { getNodesCount } from '../utils/document';
17
17
  import { isFullPage } from '../utils/is-full-page';
@@ -213,7 +213,7 @@ export class ReactEditorView extends React.Component {
213
213
  const api = this.pluginInjectionAPI.api();
214
214
  const isViewMode = (api === null || api === void 0 ? void 0 : (_api$editorViewMode = api.editorViewMode) === null || _api$editorViewMode === void 0 ? void 0 : _api$editorViewMode.sharedState.currentState().mode) === 'view';
215
215
  let selection;
216
- if (getBooleanFF('platform.editor.live-view.no-editor-selection-in-view-mode')) {
216
+ if (fg('platform.editor.live-view.no-editor-selection-in-view-mode')) {
217
217
  if (doc) {
218
218
  if (isViewMode) {
219
219
  const emptySelection = new TextSelection(doc.resolve(0));
@@ -35,8 +35,6 @@ export { setTextSelection } from '@atlaskit/editor-common/utils';
35
35
  export { default as EditorActions } from './actions';
36
36
  // Re-export from provider factory to not cause a breaking change
37
37
 
38
- export { PortalProvider, LegacyPortalProviderAPI, PortalRenderer } from '@atlaskit/editor-common/portal-provider';
39
-
40
38
  /**
41
39
  * @deprecated
42
40
  * DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
@@ -6,7 +6,6 @@ import { PureComponent } from 'react';
6
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
7
  import { jsx } from '@emotion/react';
8
8
  import PropTypes from 'prop-types';
9
- import ReactDOM from 'react-dom';
10
9
  import ButtonGroup from '@atlaskit/button/button-group';
11
10
  import Button from '@atlaskit/button/new';
12
11
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
@@ -46,7 +45,7 @@ class ToolbarFeedbackInternal extends PureComponent {
46
45
  _defineProperty(this, "handleRef", ref => {
47
46
  if (ref) {
48
47
  this.setState({
49
- target: ReactDOM.findDOMNode(ref || null)
48
+ target: ref
50
49
  });
51
50
  }
52
51
  });
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "194.1.1";
2
+ export const version = "194.3.0";
@@ -22,7 +22,7 @@ import { EDIT_AREA_ID } from '@atlaskit/editor-common/ui';
22
22
  import { analyticsEventKey, browser, countNodes as _countNodes, findChangedNodesFromTransaction, getAnalyticsEventSeverity, getResponseEndTime, measureRender, processRawValue, shouldForceTracking, startMeasure, stopMeasure, validateNodes, validNode } from '@atlaskit/editor-common/utils';
23
23
  import { EditorState, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
24
24
  import { EditorView } from '@atlaskit/editor-prosemirror/view';
25
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
25
+ import { fg } from '@atlaskit/platform-feature-flags';
26
26
  import { createDispatch, EventDispatcher } from '../event-dispatcher';
27
27
  import { getNodesCount } from '../utils/document';
28
28
  import { isFullPage } from '../utils/is-full-page';
@@ -212,7 +212,7 @@ export var ReactEditorView = /*#__PURE__*/function (_React$Component) {
212
212
  var api = _this.pluginInjectionAPI.api();
213
213
  var isViewMode = (api === null || api === void 0 || (_api$editorViewMode = api.editorViewMode) === null || _api$editorViewMode === void 0 ? void 0 : _api$editorViewMode.sharedState.currentState().mode) === 'view';
214
214
  var selection;
215
- if (getBooleanFF('platform.editor.live-view.no-editor-selection-in-view-mode')) {
215
+ if (fg('platform.editor.live-view.no-editor-selection-in-view-mode')) {
216
216
  if (doc) {
217
217
  if (isViewMode) {
218
218
  var emptySelection = new TextSelection(doc.resolve(0));
package/dist/esm/index.js CHANGED
@@ -35,8 +35,6 @@ export { setTextSelection } from '@atlaskit/editor-common/utils';
35
35
  export { default as EditorActions } from './actions';
36
36
  // Re-export from provider factory to not cause a breaking change
37
37
 
38
- export { PortalProvider, LegacyPortalProviderAPI, PortalRenderer } from '@atlaskit/editor-common/portal-provider';
39
-
40
38
  /**
41
39
  * @deprecated
42
40
  * DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
@@ -18,7 +18,6 @@ import { PureComponent } from 'react';
18
18
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
19
19
  import { jsx } from '@emotion/react';
20
20
  import PropTypes from 'prop-types';
21
- import ReactDOM from 'react-dom';
22
21
  import ButtonGroup from '@atlaskit/button/button-group';
23
22
  import Button from '@atlaskit/button/new';
24
23
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
@@ -62,7 +61,7 @@ var ToolbarFeedbackInternal = /*#__PURE__*/function (_PureComponent) {
62
61
  _defineProperty(_assertThisInitialized(_this), "handleRef", function (ref) {
63
62
  if (ref) {
64
63
  _this.setState({
65
- target: ReactDOM.findDOMNode(ref || null)
64
+ target: ref
66
65
  });
67
66
  }
68
67
  });
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "194.1.1";
2
+ export var version = "194.3.0";
@@ -4,7 +4,6 @@ import type { WrappedComponentProps } from 'react-intl-next';
4
4
  import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
5
5
  import { FULL_WIDTH_MODE } from '@atlaskit/editor-common/analytics';
6
6
  import type { AnalyticsEventPayload, DispatchAnalyticsEvent, FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
7
- import type { LegacyPortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
8
7
  import type { AllEditorPresetPluginTypes, EditorPresetBuilder } from '@atlaskit/editor-common/preset';
9
8
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
10
9
  import type { PortalProviderAPI } from '@atlaskit/editor-common/src/portal';
@@ -27,7 +26,7 @@ export interface EditorViewProps {
27
26
  };
28
27
  createAnalyticsEvent?: CreateUIAnalyticsEvent;
29
28
  providerFactory: ProviderFactory;
30
- portalProviderAPI: LegacyPortalProviderAPI | PortalProviderAPI;
29
+ portalProviderAPI: PortalProviderAPI;
31
30
  disabled?: boolean;
32
31
  experienceStore?: ExperienceStore;
33
32
  setEditorApi?: SetEditorAPI;
@@ -34,7 +34,6 @@ export { setTextSelection } from '@atlaskit/editor-common/utils';
34
34
  export type { Command, EditorPlugin, EditorProps, EditorInstance, CommandDispatch } from './types';
35
35
  export { default as EditorActions } from './actions';
36
36
  export type { MacroProvider, MacroAttributes, ExtensionType, CardProvider, } from '@atlaskit/editor-common/provider-factory';
37
- export { PortalProvider, LegacyPortalProviderAPI, PortalRenderer, } from '@atlaskit/editor-common/portal-provider';
38
37
  /**
39
38
  * @deprecated
40
39
  * DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
@@ -4,7 +4,6 @@ import type { WrappedComponentProps } from 'react-intl-next';
4
4
  import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
5
5
  import { FULL_WIDTH_MODE } from '@atlaskit/editor-common/analytics';
6
6
  import type { AnalyticsEventPayload, DispatchAnalyticsEvent, FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
7
- import type { LegacyPortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
8
7
  import type { AllEditorPresetPluginTypes, EditorPresetBuilder } from '@atlaskit/editor-common/preset';
9
8
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
10
9
  import type { PortalProviderAPI } from '@atlaskit/editor-common/src/portal';
@@ -27,7 +26,7 @@ export interface EditorViewProps {
27
26
  };
28
27
  createAnalyticsEvent?: CreateUIAnalyticsEvent;
29
28
  providerFactory: ProviderFactory;
30
- portalProviderAPI: LegacyPortalProviderAPI | PortalProviderAPI;
29
+ portalProviderAPI: PortalProviderAPI;
31
30
  disabled?: boolean;
32
31
  experienceStore?: ExperienceStore;
33
32
  setEditorApi?: SetEditorAPI;
@@ -34,7 +34,6 @@ export { setTextSelection } from '@atlaskit/editor-common/utils';
34
34
  export type { Command, EditorPlugin, EditorProps, EditorInstance, CommandDispatch } from './types';
35
35
  export { default as EditorActions } from './actions';
36
36
  export type { MacroProvider, MacroAttributes, ExtensionType, CardProvider, } from '@atlaskit/editor-common/provider-factory';
37
- export { PortalProvider, LegacyPortalProviderAPI, PortalRenderer, } from '@atlaskit/editor-common/portal-provider';
38
37
  /**
39
38
  * @deprecated
40
39
  * DO NOT USE THIS WILL BE REMOVED SOON AND IS UNSAFE.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "194.1.1",
3
+ "version": "194.3.0",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -44,8 +44,8 @@
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
- "@atlaskit/button": "^18.3.0",
48
- "@atlaskit/editor-common": "^84.4.0",
47
+ "@atlaskit/button": "^18.4.0",
48
+ "@atlaskit/editor-common": "^85.0.0",
49
49
  "@atlaskit/editor-plugins": "^3.4.0",
50
50
  "@atlaskit/editor-prosemirror": "4.0.1",
51
51
  "@atlaskit/editor-shared-styles": "^2.13.0",
@@ -57,7 +57,7 @@
57
57
  "@atlaskit/spinner": "^16.2.0",
58
58
  "@atlaskit/task-decision": "^17.10.0",
59
59
  "@atlaskit/theme": "^12.11.0",
60
- "@atlaskit/tokens": "^1.53.0",
60
+ "@atlaskit/tokens": "^1.54.0",
61
61
  "@atlaskit/tooltip": "^18.5.0",
62
62
  "@atlaskit/width-detector": "^4.2.0",
63
63
  "@babel/runtime": "^7.0.0",
@@ -80,15 +80,15 @@
80
80
  "react-intl-next": "npm:react-intl@^5.18.1"
81
81
  },
82
82
  "devDependencies": {
83
- "@af/editor-examples-helpers": "0.0.15",
83
+ "@af/editor-examples-helpers": "0.0.16",
84
84
  "@af/editor-libra": "*",
85
85
  "@af/visual-regression": "*",
86
86
  "@atlaskit/adf-utils": "^19.4.0",
87
87
  "@atlaskit/analytics-listeners": "^8.10.0",
88
- "@atlaskit/collab-provider": "9.32.3",
88
+ "@atlaskit/collab-provider": "9.33.1",
89
89
  "@atlaskit/editor-json-transformer": "^8.15.0",
90
- "@atlaskit/editor-plugin-annotation": "1.14.2",
91
- "@atlaskit/editor-plugin-card": "^2.5.0",
90
+ "@atlaskit/editor-plugin-annotation": "1.15.0",
91
+ "@atlaskit/editor-plugin-card": "^2.6.0",
92
92
  "@atlaskit/editor-plugin-editor-viewmode": "^2.0.0",
93
93
  "@atlaskit/editor-plugin-list": "^3.5.0",
94
94
  "@atlaskit/editor-plugin-paste": "^1.5.0",
@@ -100,14 +100,14 @@
100
100
  "@atlaskit/media-test-helpers": "^33.0.27",
101
101
  "@atlaskit/modal-dialog": "^12.14.0",
102
102
  "@atlaskit/primitives": "^11.0.0",
103
- "@atlaskit/renderer": "^109.41.0",
103
+ "@atlaskit/renderer": "^109.42.0",
104
104
  "@atlaskit/smart-card": "^27.9.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",
108
108
  "@atlaskit/visual-regression": "*",
109
109
  "@atlassian/adf-schema-json": "^1.16.0",
110
- "@atlassian/search-provider": "2.4.92",
110
+ "@atlassian/search-provider": "2.4.94",
111
111
  "@emotion/jest": "^11.8.0",
112
112
  "@storybook/addon-knobs": "^5.3.18",
113
113
  "@testing-library/react": "^12.1.5",
@@ -213,10 +213,6 @@
213
213
  "type": "boolean",
214
214
  "referenceOnly": "true"
215
215
  },
216
- "platform.editor.text-alignment-keyboard-shortcuts": {
217
- "type": "boolean",
218
- "referenceOnly": "true"
219
- },
220
216
  "platform.editor.table.use-shared-state-hook": {
221
217
  "type": "boolean",
222
218
  "referenceOnly": true
package/report.api.md CHANGED
@@ -67,9 +67,6 @@ import type { PanelPluginConfig } from '@atlaskit/editor-plugin-panel';
67
67
  import { PerformanceTracking } from '@atlaskit/editor-common/types';
68
68
  import type { PlaceholderTextOptions } from '@atlaskit/editor-plugin-placeholder-text';
69
69
  import type { PluginConfig } from '@atlaskit/editor-plugin-table/types';
70
- import { PortalProvider } from '@atlaskit/editor-common/portal-provider';
71
- import { PortalProviderAPI } from '@atlaskit/editor-common/portal-provider';
72
- import { PortalRenderer } from '@atlaskit/editor-common/portal-provider';
73
70
  import type { PositionType } from '@atlaskit/tooltip/types';
74
71
  import { PresenceProvider } from '@atlaskit/mention/resource';
75
72
  import PropTypes from 'prop-types';