@atlaskit/editor-core 206.0.0 → 206.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 206.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#150109](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/150109)
8
+ [`15c263bb5c421`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/15c263bb5c421) -
9
+ Clean-up feature gate platform_editor_lcm_toolbar_portals
10
+ - Updated dependencies
11
+
3
12
  ## 206.0.0
4
13
 
5
14
  ### Patch Changes
@@ -13,7 +13,6 @@ 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");
17
16
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
18
17
  var _ToolbarPortal = require("../../Toolbar/ToolbarPortal");
19
18
  var _ToolbarWithSizeDetector = require("../../Toolbar/ToolbarWithSizeDetector");
@@ -46,7 +45,7 @@ var EditorToolbar = exports.EditorToolbar = /*#__PURE__*/_react.default.memo(fun
46
45
  },
47
46
  ToolbarPortal = _ref.Portal;
48
47
  var hasToolbarPortal = ToolbarPortal !== _react.default.Fragment;
49
- var popupsMountPoint = hasToolbarPortal && (0, _platformFeatureFlags.fg)('platform_editor_lcm_toolbar_portals') ? undefined : props.popupsMountPoint;
48
+ var popupsMountPoint = hasToolbarPortal ? undefined : props.popupsMountPoint;
50
49
  var nonCustomToolbar =
51
50
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
52
51
  (0, _react2.jsx)("div", {
@@ -120,7 +119,7 @@ var EditorToolbar = exports.EditorToolbar = /*#__PURE__*/_react.default.memo(fun
120
119
  isShortcutToFocusToolbar: isShortcutToFocusToolbar,
121
120
  handleEscape: handleEscape,
122
121
  intl: props.intl
123
- }, (0, _platformFeatureFlags.fg)('platform_editor_lcm_toolbar_portals') ? (0, _react2.jsx)(ToolbarPortal, null, (0, _react2.jsx)("div", {
122
+ }, (0, _react2.jsx)(ToolbarPortal, null, (0, _react2.jsx)("div", {
124
123
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
125
124
  css: (0, _MainToolbar.mainToolbarStyle)(props.showKeyline || contextPanelWidth > 0, twoLineEditorToolbar),
126
125
  "data-testid": "ak-editor-main-toolbar"
@@ -135,22 +134,7 @@ var EditorToolbar = exports.EditorToolbar = /*#__PURE__*/_react.default.memo(fun
135
134
  "data-testid": "avatar-group-outside-plugin",
136
135
  role: "region",
137
136
  "aria-label": props.intl.formatMessage(_messages.fullPageMessages.pageActionsLabel)
138
- }, shouldSplitToolbar ? nonCustomToolbar : customToolbar), (0, _react2.jsx)(_ToolbarPortal.ToolbarPortalMountPoint, null))) : (0, _react2.jsx)("div", {
139
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
140
- css: (0, _MainToolbar.mainToolbarStyle)(props.showKeyline || contextPanelWidth > 0, twoLineEditorToolbar),
141
- "data-testid": "ak-editor-main-toolbar"
142
- }, (0, _react2.jsx)("div", {
143
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
144
- css: (0, _MainToolbar.mainToolbarFirstChildStyle)(twoLineEditorToolbar),
145
- role: "toolbar",
146
- "aria-label": props.intl.formatMessage(_messages.fullPageMessages.toolbarLabel)
147
- }, shouldSplitToolbar ? customToolbar : nonCustomToolbar), (0, _react2.jsx)("div", {
148
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
149
- css: (0, _MainToolbar.mainToolbarSecondChildStyle)(twoLineEditorToolbar),
150
- "data-testid": "avatar-group-outside-plugin",
151
- role: "region",
152
- "aria-label": props.intl.formatMessage(_messages.fullPageMessages.pageActionsLabel)
153
- }, shouldSplitToolbar ? nonCustomToolbar : customToolbar)));
137
+ }, shouldSplitToolbar ? nonCustomToolbar : customToolbar), (0, _react2.jsx)(_ToolbarPortal.ToolbarPortalMountPoint, null))));
154
138
  });
155
139
  });
156
140
  var FullPageToolbar = exports.FullPageToolbar = (0, _reactIntlNext.injectIntl)(EditorToolbar);
@@ -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 = "206.0.0";
8
+ var version = exports.version = "206.0.1";
@@ -11,7 +11,6 @@ import { injectIntl } from 'react-intl-next';
11
11
  import { fullPageMessages as messages } from '@atlaskit/editor-common/messages';
12
12
  import { ContextPanelConsumer } from '@atlaskit/editor-common/ui';
13
13
  import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-menu';
14
- import { fg } from '@atlaskit/platform-feature-flags';
15
14
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
16
15
  import { ToolbarPortalMountPoint, useToolbarPortal } from '../../Toolbar/ToolbarPortal';
17
16
  import { ToolbarWithSizeDetector as Toolbar } from '../../Toolbar/ToolbarWithSizeDetector';
@@ -35,7 +34,7 @@ export const EditorToolbar = /*#__PURE__*/React.memo(props => {
35
34
  Portal: React.Fragment
36
35
  };
37
36
  const hasToolbarPortal = ToolbarPortal !== React.Fragment;
38
- const popupsMountPoint = hasToolbarPortal && fg('platform_editor_lcm_toolbar_portals') ? undefined : props.popupsMountPoint;
37
+ const popupsMountPoint = hasToolbarPortal ? undefined : props.popupsMountPoint;
39
38
  const nonCustomToolbar =
40
39
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
41
40
  jsx("div", {
@@ -107,7 +106,7 @@ export const EditorToolbar = /*#__PURE__*/React.memo(props => {
107
106
  isShortcutToFocusToolbar: isShortcutToFocusToolbar,
108
107
  handleEscape: handleEscape,
109
108
  intl: props.intl
110
- }, fg('platform_editor_lcm_toolbar_portals') ? jsx(ToolbarPortal, null, jsx("div", {
109
+ }, jsx(ToolbarPortal, null, jsx("div", {
111
110
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
112
111
  css: mainToolbarStyle(props.showKeyline || contextPanelWidth > 0, twoLineEditorToolbar),
113
112
  "data-testid": "ak-editor-main-toolbar"
@@ -122,21 +121,6 @@ export const EditorToolbar = /*#__PURE__*/React.memo(props => {
122
121
  "data-testid": "avatar-group-outside-plugin",
123
122
  role: "region",
124
123
  "aria-label": props.intl.formatMessage(messages.pageActionsLabel)
125
- }, shouldSplitToolbar ? nonCustomToolbar : customToolbar), jsx(ToolbarPortalMountPoint, null))) : jsx("div", {
126
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
127
- css: mainToolbarStyle(props.showKeyline || contextPanelWidth > 0, twoLineEditorToolbar),
128
- "data-testid": "ak-editor-main-toolbar"
129
- }, jsx("div", {
130
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
131
- css: mainToolbarFirstChildStyle(twoLineEditorToolbar),
132
- role: "toolbar",
133
- "aria-label": props.intl.formatMessage(messages.toolbarLabel)
134
- }, shouldSplitToolbar ? customToolbar : nonCustomToolbar), jsx("div", {
135
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
136
- css: mainToolbarSecondChildStyle(twoLineEditorToolbar),
137
- "data-testid": "avatar-group-outside-plugin",
138
- role: "region",
139
- "aria-label": props.intl.formatMessage(messages.pageActionsLabel)
140
- }, shouldSplitToolbar ? nonCustomToolbar : customToolbar))));
124
+ }, shouldSplitToolbar ? nonCustomToolbar : customToolbar), jsx(ToolbarPortalMountPoint, null)))));
141
125
  });
142
126
  export const FullPageToolbar = injectIntl(EditorToolbar);
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "206.0.0";
2
+ export const version = "206.0.1";
@@ -12,7 +12,6 @@ import { injectIntl } from 'react-intl-next';
12
12
  import { fullPageMessages as messages } from '@atlaskit/editor-common/messages';
13
13
  import { ContextPanelConsumer } from '@atlaskit/editor-common/ui';
14
14
  import { ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-menu';
15
- import { fg } from '@atlaskit/platform-feature-flags';
16
15
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
17
16
  import { ToolbarPortalMountPoint, useToolbarPortal } from '../../Toolbar/ToolbarPortal';
18
17
  import { ToolbarWithSizeDetector as Toolbar } from '../../Toolbar/ToolbarWithSizeDetector';
@@ -36,7 +35,7 @@ export var EditorToolbar = /*#__PURE__*/React.memo(function (props) {
36
35
  },
37
36
  ToolbarPortal = _ref.Portal;
38
37
  var hasToolbarPortal = ToolbarPortal !== React.Fragment;
39
- var popupsMountPoint = hasToolbarPortal && fg('platform_editor_lcm_toolbar_portals') ? undefined : props.popupsMountPoint;
38
+ var popupsMountPoint = hasToolbarPortal ? undefined : props.popupsMountPoint;
40
39
  var nonCustomToolbar =
41
40
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
42
41
  jsx("div", {
@@ -110,7 +109,7 @@ export var EditorToolbar = /*#__PURE__*/React.memo(function (props) {
110
109
  isShortcutToFocusToolbar: isShortcutToFocusToolbar,
111
110
  handleEscape: handleEscape,
112
111
  intl: props.intl
113
- }, fg('platform_editor_lcm_toolbar_portals') ? jsx(ToolbarPortal, null, jsx("div", {
112
+ }, jsx(ToolbarPortal, null, jsx("div", {
114
113
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
115
114
  css: mainToolbarStyle(props.showKeyline || contextPanelWidth > 0, twoLineEditorToolbar),
116
115
  "data-testid": "ak-editor-main-toolbar"
@@ -125,22 +124,7 @@ export var EditorToolbar = /*#__PURE__*/React.memo(function (props) {
125
124
  "data-testid": "avatar-group-outside-plugin",
126
125
  role: "region",
127
126
  "aria-label": props.intl.formatMessage(messages.pageActionsLabel)
128
- }, shouldSplitToolbar ? nonCustomToolbar : customToolbar), jsx(ToolbarPortalMountPoint, null))) : jsx("div", {
129
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
130
- css: mainToolbarStyle(props.showKeyline || contextPanelWidth > 0, twoLineEditorToolbar),
131
- "data-testid": "ak-editor-main-toolbar"
132
- }, jsx("div", {
133
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
134
- css: mainToolbarFirstChildStyle(twoLineEditorToolbar),
135
- role: "toolbar",
136
- "aria-label": props.intl.formatMessage(messages.toolbarLabel)
137
- }, shouldSplitToolbar ? customToolbar : nonCustomToolbar), jsx("div", {
138
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
139
- css: mainToolbarSecondChildStyle(twoLineEditorToolbar),
140
- "data-testid": "avatar-group-outside-plugin",
141
- role: "region",
142
- "aria-label": props.intl.formatMessage(messages.pageActionsLabel)
143
- }, shouldSplitToolbar ? nonCustomToolbar : customToolbar)));
127
+ }, shouldSplitToolbar ? nonCustomToolbar : customToolbar), jsx(ToolbarPortalMountPoint, null))));
144
128
  });
145
129
  });
146
130
  export var FullPageToolbar = injectIntl(EditorToolbar);
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "206.0.0";
2
+ export var version = "206.0.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "206.0.0",
3
+ "version": "206.0.1",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -400,9 +400,6 @@
400
400
  "type": "boolean",
401
401
  "referenceOnly": true
402
402
  },
403
- "platform_editor_lcm_toolbar_portals": {
404
- "type": "boolean"
405
- },
406
403
  "platform_editor_track_node_types": {
407
404
  "type": "boolean",
408
405
  "referenceOnly": true