@atlaskit/editor-plugin-card 5.4.19 → 5.4.21

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,23 @@
1
1
  # @atlaskit/editor-plugin-card
2
2
 
3
+ ## 5.4.21
4
+
5
+ ### Patch Changes
6
+
7
+ - [#146194](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/146194)
8
+ [`dc301c3dad7a8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/dc301c3dad7a8) -
9
+ [ux] Feature gate cleanup: platform-editor-plugin-card-icon-migration
10
+ - Updated dependencies
11
+
12
+ ## 5.4.20
13
+
14
+ ### Patch Changes
15
+
16
+ - [#145382](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/145382)
17
+ [`09a75a68f9d26`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/09a75a68f9d26) -
18
+ Clean up FG linking-platform-contenteditable-false-live-view
19
+ - Updated dependencies
20
+
3
21
  ## 5.4.19
4
22
 
5
23
  ### Patch Changes
@@ -132,20 +132,17 @@ var BlockCard = exports.BlockCard = /*#__PURE__*/function (_ReactNodeView) {
132
132
  return (0, _createClass2.default)(BlockCard, [{
133
133
  key: "createDomRef",
134
134
  value: function createDomRef() {
135
- var _this3 = this;
135
+ var _this$reactComponentP,
136
+ _this3 = this,
137
+ _this$reactComponentP2;
136
138
  var domRef = document.createElement('div');
137
139
  // workaround Chrome bug in https://product-fabric.atlassian.net/browse/ED-5379
138
140
  // see also: https://github.com/ProseMirror/prosemirror/issues/884
139
- if ((0, _platformFeatureFlags.fg)('linking-platform-contenteditable-false-live-view')) {
140
- var _this$reactComponentP, _this$reactComponentP2;
141
- this.unsubscribe = (_this$reactComponentP = this.reactComponentProps.pluginInjectionApi) === null || _this$reactComponentP === void 0 || (_this$reactComponentP = _this$reactComponentP.editorViewMode) === null || _this$reactComponentP === void 0 ? void 0 : _this$reactComponentP.sharedState.onChange(function (_ref2) {
142
- var nextSharedState = _ref2.nextSharedState;
143
- return _this3.updateContentEditable(nextSharedState, domRef);
144
- });
145
- this.updateContentEditable((_this$reactComponentP2 = this.reactComponentProps.pluginInjectionApi) === null || _this$reactComponentP2 === void 0 || (_this$reactComponentP2 = _this$reactComponentP2.editorViewMode) === null || _this$reactComponentP2 === void 0 ? void 0 : _this$reactComponentP2.sharedState.currentState(), domRef);
146
- } else {
147
- domRef.contentEditable = 'true';
148
- }
141
+ this.unsubscribe = (_this$reactComponentP = this.reactComponentProps.pluginInjectionApi) === null || _this$reactComponentP === void 0 || (_this$reactComponentP = _this$reactComponentP.editorViewMode) === null || _this$reactComponentP === void 0 ? void 0 : _this$reactComponentP.sharedState.onChange(function (_ref2) {
142
+ var nextSharedState = _ref2.nextSharedState;
143
+ return _this3.updateContentEditable(nextSharedState, domRef);
144
+ });
145
+ this.updateContentEditable((_this$reactComponentP2 = this.reactComponentProps.pluginInjectionApi) === null || _this$reactComponentP2 === void 0 || (_this$reactComponentP2 = _this$reactComponentP2.editorViewMode) === null || _this$reactComponentP2 === void 0 ? void 0 : _this$reactComponentP2.sharedState.currentState(), domRef);
149
146
  domRef.setAttribute('spellcheck', 'false');
150
147
  return domRef;
151
148
  }
@@ -360,19 +360,16 @@ var EmbedCard = exports.EmbedCard = /*#__PURE__*/function (_ReactNodeView) {
360
360
  }, {
361
361
  key: "createDomRef",
362
362
  value: function createDomRef() {
363
- var _this3 = this;
363
+ var _this$reactComponentP,
364
+ _this3 = this,
365
+ _this$reactComponentP2;
364
366
  var domRef = document.createElement('div');
365
367
  // It is a tradeoff for the bug mentioned that occurs in Chrome: https://product-fabric.atlassian.net/browse/ED-5379, https://github.com/ProseMirror/prosemirror/issues/884
366
- if ((0, _platformFeatureFlags.fg)('linking-platform-contenteditable-false-live-view')) {
367
- var _this$reactComponentP, _this$reactComponentP2;
368
- this.unsubscribe = (_this$reactComponentP = this.reactComponentProps.pluginInjectionApi) === null || _this$reactComponentP === void 0 || (_this$reactComponentP = _this$reactComponentP.editorViewMode) === null || _this$reactComponentP === void 0 ? void 0 : _this$reactComponentP.sharedState.onChange(function (_ref3) {
369
- var nextSharedState = _ref3.nextSharedState;
370
- return _this3.updateContentEditable(nextSharedState, domRef);
371
- });
372
- this.updateContentEditable((_this$reactComponentP2 = this.reactComponentProps.pluginInjectionApi) === null || _this$reactComponentP2 === void 0 || (_this$reactComponentP2 = _this$reactComponentP2.editorViewMode) === null || _this$reactComponentP2 === void 0 ? void 0 : _this$reactComponentP2.sharedState.currentState(), domRef);
373
- } else {
374
- domRef.contentEditable = 'true';
375
- }
368
+ this.unsubscribe = (_this$reactComponentP = this.reactComponentProps.pluginInjectionApi) === null || _this$reactComponentP === void 0 || (_this$reactComponentP = _this$reactComponentP.editorViewMode) === null || _this$reactComponentP === void 0 ? void 0 : _this$reactComponentP.sharedState.onChange(function (_ref3) {
369
+ var nextSharedState = _ref3.nextSharedState;
370
+ return _this3.updateContentEditable(nextSharedState, domRef);
371
+ });
372
+ this.updateContentEditable((_this$reactComponentP2 = this.reactComponentProps.pluginInjectionApi) === null || _this$reactComponentP2 === void 0 || (_this$reactComponentP2 = _this$reactComponentP2.editorViewMode) === null || _this$reactComponentP2 === void 0 ? void 0 : _this$reactComponentP2.sharedState.currentState(), domRef);
376
373
  domRef.setAttribute('spellcheck', 'false');
377
374
  return domRef;
378
375
  }
@@ -7,9 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.DatasourceIcon = void 0;
8
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
9
  var _react = _interopRequireDefault(require("react"));
10
- var _icon = _interopRequireDefault(require("@atlaskit/icon"));
11
10
  var _smartLinkList = _interopRequireDefault(require("@atlaskit/icon/core/smart-link-list"));
12
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
13
11
  var _primitives = require("@atlaskit/primitives");
14
12
  var IconDatasourceGlyph = function IconDatasourceGlyph(props) {
15
13
  return /*#__PURE__*/_react.default.createElement("svg", (0, _extends2.default)({
@@ -37,12 +35,8 @@ var wrapperStyles = (0, _primitives.xcss)({
37
35
  var DatasourceIcon = exports.DatasourceIcon = function DatasourceIcon(props) {
38
36
  return /*#__PURE__*/_react.default.createElement(_primitives.Flex, {
39
37
  xcss: wrapperStyles
40
- }, (0, _platformFeatureFlags.fg)('platform-editor-plugin-card-icon-migration') ? /*#__PURE__*/_react.default.createElement(_smartLinkList.default, {
38
+ }, /*#__PURE__*/_react.default.createElement(_smartLinkList.default, {
41
39
  LEGACY_fallbackIcon: IconDatasourceGlyph,
42
40
  label: props === null || props === void 0 ? void 0 : props.label
43
- }) : /*#__PURE__*/_react.default.createElement(_icon.default, (0, _extends2.default)({
44
- glyph: IconDatasourceGlyph
45
- // Ignored via go/ees005
46
- // eslint-disable-next-line react/jsx-props-no-spreading
47
- }, props)));
41
+ }));
48
42
  };
@@ -13,8 +13,7 @@ var _messages = require("@atlaskit/editor-common/messages");
13
13
  var _ui = require("@atlaskit/editor-common/ui");
14
14
  var _uiMenu = require("@atlaskit/editor-common/ui-menu");
15
15
  var _edit = _interopRequireDefault(require("@atlaskit/icon/core/edit"));
16
- var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-down"));
17
- var _chevronDown2 = _interopRequireDefault(require("@atlaskit/icon/utility/migration/chevron-down"));
16
+ var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/utility/migration/chevron-down"));
18
17
  var _menu = require("@atlaskit/menu");
19
18
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
20
19
  var _compiled = require("@atlaskit/primitives/compiled");
@@ -80,7 +79,7 @@ var EditToolbarButtonPresentation = function EditToolbarButtonPresentation(_ref)
80
79
  }, (0, _experiments.editorExperiment)('platform_editor_controls', 'control') && (0, _react2.jsx)(_reactIntlNext.FormattedMessage
81
80
  // Ignored via go/ees005
82
81
  // eslint-disable-next-line react/jsx-props-no-spreading
83
- , _messages.linkToolbarMessages.editLink)), (0, _react2.jsx)(_ui.FloatingToolbarSeparator, null));
82
+ , _messages.linkToolbarMessages.editLink)), (!(0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') || !(0, _platformFeatureFlags.fg)('platform_editor_controls_patch_6')) && (0, _react2.jsx)(_ui.FloatingToolbarSeparator, null));
84
83
  }
85
84
  case 'edit-datasource':
86
85
  {
@@ -93,7 +92,7 @@ var EditToolbarButtonPresentation = function EditToolbarButtonPresentation(_ref)
93
92
  }, (0, _react2.jsx)(_reactIntlNext.FormattedMessage
94
93
  // Ignored via go/ees005
95
94
  // eslint-disable-next-line react/jsx-props-no-spreading
96
- , _messages.linkToolbarMessages.editDatasourceStandalone)), (0, _react2.jsx)(_ui.FloatingToolbarSeparator, null));
95
+ , _messages.linkToolbarMessages.editDatasourceStandalone)), (!(0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') || !(0, _platformFeatureFlags.fg)('platform_editor_controls_patch_6')) && (0, _react2.jsx)(_ui.FloatingToolbarSeparator, null));
97
96
  }
98
97
  case 'edit-dropdown':
99
98
  {
@@ -103,9 +102,7 @@ var EditToolbarButtonPresentation = function EditToolbarButtonPresentation(_ref)
103
102
  testId: "edit-dropdown-trigger",
104
103
  iconAfter: (0, _react2.jsx)("span", {
105
104
  css: dropdownExpandContainer
106
- }, (0, _platformFeatureFlags.fg)('platform-editor-plugin-card-icon-migration') ? (0, _react2.jsx)(_chevronDown2.default, {
107
- label: intl.formatMessage(_messages.cardMessages.editDropdownTriggerTitle)
108
- }) : (0, _react2.jsx)(_chevronDown.default, {
105
+ }, (0, _react2.jsx)(_chevronDown.default, {
109
106
  label: intl.formatMessage(_messages.cardMessages.editDropdownTriggerTitle)
110
107
  })),
111
108
  onClick: toggleOpen,
@@ -115,7 +112,7 @@ var EditToolbarButtonPresentation = function EditToolbarButtonPresentation(_ref)
115
112
  }, (0, _react2.jsx)(_reactIntlNext.FormattedMessage
116
113
  // Ignored via go/ees005
117
114
  // eslint-disable-next-line react/jsx-props-no-spreading
118
- , _messages.cardMessages.editDropdownTriggerTitle)), (0, _react2.jsx)(_ui.FloatingToolbarSeparator, null));
115
+ , _messages.cardMessages.editDropdownTriggerTitle)), (!(0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') || !(0, _platformFeatureFlags.fg)('platform_editor_controls_patch_6')) && (0, _react2.jsx)(_ui.FloatingToolbarSeparator, null));
119
116
  return (0, _react2.jsx)(_compiled.Flex, {
120
117
  ref: containerRef
121
118
  }, (0, _react2.jsx)(_uiMenu.DropdownContainer, {
@@ -13,8 +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 _chevronDown = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-down"));
17
- var _chevronDown2 = _interopRequireDefault(require("@atlaskit/icon/utility/migration/chevron-down"));
16
+ var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/utility/migration/chevron-down"));
18
17
  var _linkProvider = require("@atlaskit/link-provider");
19
18
  var _menu = require("@atlaskit/menu");
20
19
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
@@ -129,9 +128,7 @@ var EditToolbarButtonWithCardContext = function EditToolbarButtonWithCardContext
129
128
  testId: "edit-dropdown-trigger",
130
129
  iconAfter: (0, _react2.jsx)("span", {
131
130
  css: dropdownExpandContainer
132
- }, (0, _platformFeatureFlags.fg)('platform-editor-plugin-card-icon-migration') ? (0, _react2.jsx)(_chevronDown2.default, {
133
- label: intl.formatMessage(_messages.cardMessages.editDropdownTriggerTitle)
134
- }) : (0, _react2.jsx)(_chevronDown.default, {
131
+ }, (0, _react2.jsx)(_chevronDown.default, {
135
132
  label: intl.formatMessage(_messages.cardMessages.editDropdownTriggerTitle)
136
133
  })),
137
134
  onClick: toggleOpen,
@@ -17,8 +17,6 @@ var _reactIntlNext = require("react-intl-next");
17
17
  var _messages = require("@atlaskit/editor-common/messages");
18
18
  var _whitespace = require("@atlaskit/editor-common/whitespace");
19
19
  var _customizePreferences = _interopRequireDefault(require("@atlaskit/icon/core/migration/customize--preferences"));
20
- var _preferences = _interopRequireDefault(require("@atlaskit/icon/glyph/preferences"));
21
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
22
20
  var _colors = require("@atlaskit/theme/colors");
23
21
  var _utils = require("./utils");
24
22
  var _excluded = ["children", "isSelected", "isVisible", "testId", "url"];
@@ -260,14 +258,10 @@ var InlineCardOverlay = function InlineCardOverlay(_ref) {
260
258
  className: ICON_AND_LABEL_CLASSNAME
261
259
  }, (0, _react2.jsx)("span", {
262
260
  css: iconStyles
263
- }, (0, _platformFeatureFlags.fg)('platform-editor-plugin-card-icon-migration') ? (0, _react2.jsx)(_customizePreferences.default, {
261
+ }, (0, _react2.jsx)(_customizePreferences.default, {
264
262
  label: label,
265
263
  LEGACY_size: iconSize.current,
266
264
  testId: "".concat(testId, "-icon")
267
- }) : (0, _react2.jsx)(_preferences.default, {
268
- label: label,
269
- size: iconSize.current,
270
- testId: "".concat(testId, "-icon")
271
265
  })), showLabel && (0, _react2.jsx)("span", {
272
266
  css: labelStyles
273
267
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
@@ -15,10 +15,7 @@ var _uiMenu = require("@atlaskit/editor-common/ui-menu");
15
15
  var _utils = require("@atlaskit/editor-common/utils");
16
16
  var _growHorizontalEditorExpand = _interopRequireDefault(require("@atlaskit/icon/core/migration/grow-horizontal--editor-expand"));
17
17
  var _shrinkHorizontalEditorCollapse = _interopRequireDefault(require("@atlaskit/icon/core/migration/shrink-horizontal--editor-collapse"));
18
- var _collapse = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/collapse"));
19
- var _expand = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/expand"));
20
18
  var _linkingCommon = require("@atlaskit/linking-common");
21
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
22
19
  var _colors = require("@atlaskit/theme/colors");
23
20
  var _actions = require("../../pm-plugins/actions");
24
21
  var _utils2 = require("../../pm-plugins/utils");
@@ -58,16 +55,6 @@ var LayoutButton = exports.LayoutButton = function LayoutButton(_ref) {
58
55
  if (!targetElement) {
59
56
  return null;
60
57
  }
61
- var collapseIcon = (0, _platformFeatureFlags.fg)('platform-editor-plugin-card-icon-migration') ? (0, _react2.jsx)(_shrinkHorizontalEditorCollapse.default, {
62
- label: title
63
- }) : (0, _react2.jsx)(_collapse.default, {
64
- label: title
65
- });
66
- var expandIcon = (0, _platformFeatureFlags.fg)('platform-editor-plugin-card-icon-migration') ? (0, _react2.jsx)(_growHorizontalEditorExpand.default, {
67
- label: title
68
- }) : (0, _react2.jsx)(_expand.default, {
69
- label: title
70
- });
71
58
  return (0, _react2.jsx)(_ui.Popup, {
72
59
  mountTo: mountPoint,
73
60
  boundariesElement: boundariesElement,
@@ -83,7 +70,11 @@ var LayoutButton = exports.LayoutButton = function LayoutButton(_ref) {
83
70
  css: toolbarButtonWrapperStyles,
84
71
  title: title,
85
72
  onClick: handleClick,
86
- iconBefore: layout === 'full-width' ? collapseIcon : expandIcon
73
+ iconBefore: layout === 'full-width' ? (0, _react2.jsx)(_shrinkHorizontalEditorCollapse.default, {
74
+ label: title
75
+ }) : (0, _react2.jsx)(_growHorizontalEditorExpand.default, {
76
+ label: title
77
+ })
87
78
  }));
88
79
  };
89
80
  var LayoutButtonWrapper = function LayoutButtonWrapper(_ref2) {
@@ -178,10 +178,7 @@ var buildAlignmentOptions = function buildAlignmentOptions(state, intl, widthPlu
178
178
  if ((0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_6')) {
179
179
  return (0, _card.buildLayoutDropdown)(state, intl, state.schema.nodes.embedCard, widthPluginDependencyApi, analyticsApi, true, true, cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.allowWrapping, cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.allowAlignment);
180
180
  }
181
- var layoutButtons = (0, _card.buildLayoutButtons)(state, intl, state.schema.nodes.embedCard, widthPluginDependencyApi, analyticsApi, true, true, cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.allowWrapping, cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.allowAlignment);
182
- return (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_6') ? layoutButtons.filter(function (item) {
183
- return item.type !== 'separator';
184
- }) : layoutButtons;
181
+ return (0, _card.buildLayoutButtons)(state, intl, state.schema.nodes.embedCard, widthPluginDependencyApi, analyticsApi, true, true, cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.allowWrapping, cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.allowAlignment);
185
182
  };
186
183
  var withToolbarMetadata = function withToolbarMetadata(command) {
187
184
  return (0, _card.commandWithMetadata)(command, {
@@ -107,18 +107,14 @@ export class BlockCard extends ReactNodeView {
107
107
  });
108
108
  }
109
109
  createDomRef() {
110
+ var _this$reactComponentP, _this$reactComponentP2, _this$reactComponentP3, _this$reactComponentP4;
110
111
  const domRef = document.createElement('div');
111
112
  // workaround Chrome bug in https://product-fabric.atlassian.net/browse/ED-5379
112
113
  // see also: https://github.com/ProseMirror/prosemirror/issues/884
113
- if (fg('linking-platform-contenteditable-false-live-view')) {
114
- var _this$reactComponentP, _this$reactComponentP2, _this$reactComponentP3, _this$reactComponentP4;
115
- this.unsubscribe = (_this$reactComponentP = this.reactComponentProps.pluginInjectionApi) === null || _this$reactComponentP === void 0 ? void 0 : (_this$reactComponentP2 = _this$reactComponentP.editorViewMode) === null || _this$reactComponentP2 === void 0 ? void 0 : _this$reactComponentP2.sharedState.onChange(({
116
- nextSharedState
117
- }) => this.updateContentEditable(nextSharedState, domRef));
118
- this.updateContentEditable((_this$reactComponentP3 = this.reactComponentProps.pluginInjectionApi) === null || _this$reactComponentP3 === void 0 ? void 0 : (_this$reactComponentP4 = _this$reactComponentP3.editorViewMode) === null || _this$reactComponentP4 === void 0 ? void 0 : _this$reactComponentP4.sharedState.currentState(), domRef);
119
- } else {
120
- domRef.contentEditable = 'true';
121
- }
114
+ this.unsubscribe = (_this$reactComponentP = this.reactComponentProps.pluginInjectionApi) === null || _this$reactComponentP === void 0 ? void 0 : (_this$reactComponentP2 = _this$reactComponentP.editorViewMode) === null || _this$reactComponentP2 === void 0 ? void 0 : _this$reactComponentP2.sharedState.onChange(({
115
+ nextSharedState
116
+ }) => this.updateContentEditable(nextSharedState, domRef));
117
+ this.updateContentEditable((_this$reactComponentP3 = this.reactComponentProps.pluginInjectionApi) === null || _this$reactComponentP3 === void 0 ? void 0 : (_this$reactComponentP4 = _this$reactComponentP3.editorViewMode) === null || _this$reactComponentP4 === void 0 ? void 0 : _this$reactComponentP4.sharedState.currentState(), domRef);
122
118
  domRef.setAttribute('spellcheck', 'false');
123
119
  return domRef;
124
120
  }
@@ -341,17 +341,13 @@ export class EmbedCard extends ReactNodeView {
341
341
  return super.viewShouldUpdate(nextNode);
342
342
  }
343
343
  createDomRef() {
344
+ var _this$reactComponentP, _this$reactComponentP2, _this$reactComponentP3, _this$reactComponentP4;
344
345
  const domRef = document.createElement('div');
345
346
  // It is a tradeoff for the bug mentioned that occurs in Chrome: https://product-fabric.atlassian.net/browse/ED-5379, https://github.com/ProseMirror/prosemirror/issues/884
346
- if (fg('linking-platform-contenteditable-false-live-view')) {
347
- var _this$reactComponentP, _this$reactComponentP2, _this$reactComponentP3, _this$reactComponentP4;
348
- this.unsubscribe = (_this$reactComponentP = this.reactComponentProps.pluginInjectionApi) === null || _this$reactComponentP === void 0 ? void 0 : (_this$reactComponentP2 = _this$reactComponentP.editorViewMode) === null || _this$reactComponentP2 === void 0 ? void 0 : _this$reactComponentP2.sharedState.onChange(({
349
- nextSharedState
350
- }) => this.updateContentEditable(nextSharedState, domRef));
351
- this.updateContentEditable((_this$reactComponentP3 = this.reactComponentProps.pluginInjectionApi) === null || _this$reactComponentP3 === void 0 ? void 0 : (_this$reactComponentP4 = _this$reactComponentP3.editorViewMode) === null || _this$reactComponentP4 === void 0 ? void 0 : _this$reactComponentP4.sharedState.currentState(), domRef);
352
- } else {
353
- domRef.contentEditable = 'true';
354
- }
347
+ this.unsubscribe = (_this$reactComponentP = this.reactComponentProps.pluginInjectionApi) === null || _this$reactComponentP === void 0 ? void 0 : (_this$reactComponentP2 = _this$reactComponentP.editorViewMode) === null || _this$reactComponentP2 === void 0 ? void 0 : _this$reactComponentP2.sharedState.onChange(({
348
+ nextSharedState
349
+ }) => this.updateContentEditable(nextSharedState, domRef));
350
+ this.updateContentEditable((_this$reactComponentP3 = this.reactComponentProps.pluginInjectionApi) === null || _this$reactComponentP3 === void 0 ? void 0 : (_this$reactComponentP4 = _this$reactComponentP3.editorViewMode) === null || _this$reactComponentP4 === void 0 ? void 0 : _this$reactComponentP4.sharedState.currentState(), domRef);
355
351
  domRef.setAttribute('spellcheck', 'false');
356
352
  return domRef;
357
353
  }
@@ -1,8 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
- import Icon from '@atlaskit/icon';
4
3
  import SmartLinkListIcon from '@atlaskit/icon/core/smart-link-list';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
4
  import { Flex, xcss } from '@atlaskit/primitives';
7
5
  const IconDatasourceGlyph = props => {
8
6
  return /*#__PURE__*/React.createElement("svg", _extends({
@@ -30,12 +28,8 @@ const wrapperStyles = xcss({
30
28
  export const DatasourceIcon = props => {
31
29
  return /*#__PURE__*/React.createElement(Flex, {
32
30
  xcss: wrapperStyles
33
- }, fg('platform-editor-plugin-card-icon-migration') ? /*#__PURE__*/React.createElement(SmartLinkListIcon, {
31
+ }, /*#__PURE__*/React.createElement(SmartLinkListIcon, {
34
32
  LEGACY_fallbackIcon: IconDatasourceGlyph,
35
33
  label: props === null || props === void 0 ? void 0 : props.label
36
- }) : /*#__PURE__*/React.createElement(Icon, _extends({
37
- glyph: IconDatasourceGlyph
38
- // Ignored via go/ees005
39
- // eslint-disable-next-line react/jsx-props-no-spreading
40
- }, props)));
34
+ }));
41
35
  };
@@ -11,7 +11,6 @@ import { linkToolbarMessages, cardMessages as messages } from '@atlaskit/editor-
11
11
  import { FloatingToolbarButton as Button, FloatingToolbarSeparator as Separator } from '@atlaskit/editor-common/ui';
12
12
  import { ArrowKeyNavigationType, DropdownContainer as UiDropdown } from '@atlaskit/editor-common/ui-menu';
13
13
  import EditIcon from '@atlaskit/icon/core/edit';
14
- import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
15
14
  import ChevronDownIcon from '@atlaskit/icon/utility/migration/chevron-down';
16
15
  import { ButtonItem } from '@atlaskit/menu';
17
16
  import { fg } from '@atlaskit/platform-feature-flags';
@@ -63,7 +62,7 @@ const EditToolbarButtonPresentation = ({
63
62
  }, editorExperiment('platform_editor_controls', 'control') && jsx(FormattedMessage
64
63
  // Ignored via go/ees005
65
64
  // eslint-disable-next-line react/jsx-props-no-spreading
66
- , linkToolbarMessages.editLink)), jsx(Separator, null));
65
+ , linkToolbarMessages.editLink)), (!editorExperiment('platform_editor_controls', 'variant1') || !fg('platform_editor_controls_patch_6')) && jsx(Separator, null));
67
66
  }
68
67
  case 'edit-datasource':
69
68
  {
@@ -76,7 +75,7 @@ const EditToolbarButtonPresentation = ({
76
75
  }, jsx(FormattedMessage
77
76
  // Ignored via go/ees005
78
77
  // eslint-disable-next-line react/jsx-props-no-spreading
79
- , linkToolbarMessages.editDatasourceStandalone)), jsx(Separator, null));
78
+ , linkToolbarMessages.editDatasourceStandalone)), (!editorExperiment('platform_editor_controls', 'variant1') || !fg('platform_editor_controls_patch_6')) && jsx(Separator, null));
80
79
  }
81
80
  case 'edit-dropdown':
82
81
  {
@@ -86,9 +85,7 @@ const EditToolbarButtonPresentation = ({
86
85
  testId: "edit-dropdown-trigger",
87
86
  iconAfter: jsx("span", {
88
87
  css: dropdownExpandContainer
89
- }, fg('platform-editor-plugin-card-icon-migration') ? jsx(ChevronDownIcon, {
90
- label: intl.formatMessage(messages.editDropdownTriggerTitle)
91
- }) : jsx(ExpandIcon, {
88
+ }, jsx(ChevronDownIcon, {
92
89
  label: intl.formatMessage(messages.editDropdownTriggerTitle)
93
90
  })),
94
91
  onClick: toggleOpen,
@@ -98,7 +95,7 @@ const EditToolbarButtonPresentation = ({
98
95
  }, jsx(FormattedMessage
99
96
  // Ignored via go/ees005
100
97
  // eslint-disable-next-line react/jsx-props-no-spreading
101
- , messages.editDropdownTriggerTitle)), jsx(Separator, null));
98
+ , messages.editDropdownTriggerTitle)), (!editorExperiment('platform_editor_controls', 'variant1') || !fg('platform_editor_controls_patch_6')) && jsx(Separator, null));
102
99
  return jsx(Flex, {
103
100
  ref: containerRef
104
101
  }, jsx(UiDropdown, {
@@ -10,7 +10,6 @@ import { FormattedMessage } from 'react-intl-next';
10
10
  import { linkToolbarMessages, cardMessages as messages } from '@atlaskit/editor-common/messages';
11
11
  import { FloatingToolbarButton as Button, FloatingToolbarSeparator as Separator } from '@atlaskit/editor-common/ui';
12
12
  import { ArrowKeyNavigationType, DropdownContainer as UiDropdown } from '@atlaskit/editor-common/ui-menu';
13
- import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
14
13
  import ChevronDownIcon from '@atlaskit/icon/utility/migration/chevron-down';
15
14
  import { useSmartLinkContext } from '@atlaskit/link-provider';
16
15
  import { ButtonItem } from '@atlaskit/menu';
@@ -114,9 +113,7 @@ const EditToolbarButtonWithCardContext = props => {
114
113
  testId: "edit-dropdown-trigger",
115
114
  iconAfter: jsx("span", {
116
115
  css: dropdownExpandContainer
117
- }, fg('platform-editor-plugin-card-icon-migration') ? jsx(ChevronDownIcon, {
118
- label: intl.formatMessage(messages.editDropdownTriggerTitle)
119
- }) : jsx(ExpandIcon, {
116
+ }, jsx(ChevronDownIcon, {
120
117
  label: intl.formatMessage(messages.editDropdownTriggerTitle)
121
118
  })),
122
119
  onClick: toggleOpen,
@@ -14,8 +14,6 @@ import { useIntl } from 'react-intl-next';
14
14
  import { cardMessages as messages } from '@atlaskit/editor-common/messages';
15
15
  import { ZERO_WIDTH_JOINER } from '@atlaskit/editor-common/whitespace';
16
16
  import CustomizeIcon from '@atlaskit/icon/core/migration/customize--preferences';
17
- import PreferencesIcon from '@atlaskit/icon/glyph/preferences';
18
- import { fg } from '@atlaskit/platform-feature-flags';
19
17
  import { B100, N0, N700 } from '@atlaskit/theme/colors';
20
18
  import { getChildElement, getIconSize, getInlineCardAvailableWidth, getOverlayWidths, isOneLine } from './utils';
21
19
  const DEBOUNCE_IN_MS = 5;
@@ -240,14 +238,10 @@ const InlineCardOverlay = ({
240
238
  className: ICON_AND_LABEL_CLASSNAME
241
239
  }, jsx("span", {
242
240
  css: iconStyles
243
- }, fg('platform-editor-plugin-card-icon-migration') ? jsx(CustomizeIcon, {
241
+ }, jsx(CustomizeIcon, {
244
242
  label: label,
245
243
  LEGACY_size: iconSize.current,
246
244
  testId: `${testId}-icon`
247
- }) : jsx(PreferencesIcon, {
248
- label: label,
249
- size: iconSize.current,
250
- testId: `${testId}-icon`
251
245
  })), showLabel && jsx("span", {
252
246
  css: labelStyles
253
247
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
@@ -13,10 +13,7 @@ import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
13
13
  import { getNextBreakoutMode, getTitle } from '@atlaskit/editor-common/utils';
14
14
  import GrowHorizontalIcon from '@atlaskit/icon/core/migration/grow-horizontal--editor-expand';
15
15
  import ShrinkHorizontalIcon from '@atlaskit/icon/core/migration/shrink-horizontal--editor-collapse';
16
- import CollapseIcon from '@atlaskit/icon/glyph/editor/collapse';
17
- import ExpandIcon from '@atlaskit/icon/glyph/editor/expand';
18
16
  import { DATASOURCE_DEFAULT_LAYOUT } from '@atlaskit/linking-common';
19
- import { fg } from '@atlaskit/platform-feature-flags';
20
17
  import { B300, N20A, N300 } from '@atlaskit/theme/colors';
21
18
  import { setCardLayout } from '../../pm-plugins/actions';
22
19
  import { isDatasourceNode } from '../../pm-plugins/utils';
@@ -52,16 +49,6 @@ export const LayoutButton = ({
52
49
  if (!targetElement) {
53
50
  return null;
54
51
  }
55
- const collapseIcon = fg('platform-editor-plugin-card-icon-migration') ? jsx(ShrinkHorizontalIcon, {
56
- label: title
57
- }) : jsx(CollapseIcon, {
58
- label: title
59
- });
60
- const expandIcon = fg('platform-editor-plugin-card-icon-migration') ? jsx(GrowHorizontalIcon, {
61
- label: title
62
- }) : jsx(ExpandIcon, {
63
- label: title
64
- });
65
52
  return jsx(Popup, {
66
53
  mountTo: mountPoint,
67
54
  boundariesElement: boundariesElement,
@@ -77,7 +64,11 @@ export const LayoutButton = ({
77
64
  css: toolbarButtonWrapperStyles,
78
65
  title: title,
79
66
  onClick: handleClick,
80
- iconBefore: layout === 'full-width' ? collapseIcon : expandIcon
67
+ iconBefore: layout === 'full-width' ? jsx(ShrinkHorizontalIcon, {
68
+ label: title
69
+ }) : jsx(GrowHorizontalIcon, {
70
+ label: title
71
+ })
81
72
  }));
82
73
  };
83
74
  const LayoutButtonWrapper = ({
@@ -171,8 +171,7 @@ const buildAlignmentOptions = (state, intl, widthPluginDependencyApi, analyticsA
171
171
  if (editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_controls_patch_6')) {
172
172
  return buildLayoutDropdown(state, intl, state.schema.nodes.embedCard, widthPluginDependencyApi, analyticsApi, true, true, cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.allowWrapping, cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.allowAlignment);
173
173
  }
174
- const layoutButtons = buildLayoutButtons(state, intl, state.schema.nodes.embedCard, widthPluginDependencyApi, analyticsApi, true, true, cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.allowWrapping, cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.allowAlignment);
175
- return editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_controls_patch_6') ? layoutButtons.filter(item => item.type !== 'separator') : layoutButtons;
174
+ return buildLayoutButtons(state, intl, state.schema.nodes.embedCard, widthPluginDependencyApi, analyticsApi, true, true, cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.allowWrapping, cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.allowAlignment);
176
175
  };
177
176
  const withToolbarMetadata = command => commandWithMetadata(command, {
178
177
  inputMethod: INPUT_METHOD.FLOATING_TB
@@ -126,20 +126,17 @@ export var BlockCard = /*#__PURE__*/function (_ReactNodeView) {
126
126
  return _createClass(BlockCard, [{
127
127
  key: "createDomRef",
128
128
  value: function createDomRef() {
129
- var _this3 = this;
129
+ var _this$reactComponentP,
130
+ _this3 = this,
131
+ _this$reactComponentP2;
130
132
  var domRef = document.createElement('div');
131
133
  // workaround Chrome bug in https://product-fabric.atlassian.net/browse/ED-5379
132
134
  // see also: https://github.com/ProseMirror/prosemirror/issues/884
133
- if (fg('linking-platform-contenteditable-false-live-view')) {
134
- var _this$reactComponentP, _this$reactComponentP2;
135
- this.unsubscribe = (_this$reactComponentP = this.reactComponentProps.pluginInjectionApi) === null || _this$reactComponentP === void 0 || (_this$reactComponentP = _this$reactComponentP.editorViewMode) === null || _this$reactComponentP === void 0 ? void 0 : _this$reactComponentP.sharedState.onChange(function (_ref2) {
136
- var nextSharedState = _ref2.nextSharedState;
137
- return _this3.updateContentEditable(nextSharedState, domRef);
138
- });
139
- this.updateContentEditable((_this$reactComponentP2 = this.reactComponentProps.pluginInjectionApi) === null || _this$reactComponentP2 === void 0 || (_this$reactComponentP2 = _this$reactComponentP2.editorViewMode) === null || _this$reactComponentP2 === void 0 ? void 0 : _this$reactComponentP2.sharedState.currentState(), domRef);
140
- } else {
141
- domRef.contentEditable = 'true';
142
- }
135
+ this.unsubscribe = (_this$reactComponentP = this.reactComponentProps.pluginInjectionApi) === null || _this$reactComponentP === void 0 || (_this$reactComponentP = _this$reactComponentP.editorViewMode) === null || _this$reactComponentP === void 0 ? void 0 : _this$reactComponentP.sharedState.onChange(function (_ref2) {
136
+ var nextSharedState = _ref2.nextSharedState;
137
+ return _this3.updateContentEditable(nextSharedState, domRef);
138
+ });
139
+ this.updateContentEditable((_this$reactComponentP2 = this.reactComponentProps.pluginInjectionApi) === null || _this$reactComponentP2 === void 0 || (_this$reactComponentP2 = _this$reactComponentP2.editorViewMode) === null || _this$reactComponentP2 === void 0 ? void 0 : _this$reactComponentP2.sharedState.currentState(), domRef);
143
140
  domRef.setAttribute('spellcheck', 'false');
144
141
  return domRef;
145
142
  }
@@ -353,19 +353,16 @@ export var EmbedCard = /*#__PURE__*/function (_ReactNodeView) {
353
353
  }, {
354
354
  key: "createDomRef",
355
355
  value: function createDomRef() {
356
- var _this3 = this;
356
+ var _this$reactComponentP,
357
+ _this3 = this,
358
+ _this$reactComponentP2;
357
359
  var domRef = document.createElement('div');
358
360
  // It is a tradeoff for the bug mentioned that occurs in Chrome: https://product-fabric.atlassian.net/browse/ED-5379, https://github.com/ProseMirror/prosemirror/issues/884
359
- if (fg('linking-platform-contenteditable-false-live-view')) {
360
- var _this$reactComponentP, _this$reactComponentP2;
361
- this.unsubscribe = (_this$reactComponentP = this.reactComponentProps.pluginInjectionApi) === null || _this$reactComponentP === void 0 || (_this$reactComponentP = _this$reactComponentP.editorViewMode) === null || _this$reactComponentP === void 0 ? void 0 : _this$reactComponentP.sharedState.onChange(function (_ref3) {
362
- var nextSharedState = _ref3.nextSharedState;
363
- return _this3.updateContentEditable(nextSharedState, domRef);
364
- });
365
- this.updateContentEditable((_this$reactComponentP2 = this.reactComponentProps.pluginInjectionApi) === null || _this$reactComponentP2 === void 0 || (_this$reactComponentP2 = _this$reactComponentP2.editorViewMode) === null || _this$reactComponentP2 === void 0 ? void 0 : _this$reactComponentP2.sharedState.currentState(), domRef);
366
- } else {
367
- domRef.contentEditable = 'true';
368
- }
361
+ this.unsubscribe = (_this$reactComponentP = this.reactComponentProps.pluginInjectionApi) === null || _this$reactComponentP === void 0 || (_this$reactComponentP = _this$reactComponentP.editorViewMode) === null || _this$reactComponentP === void 0 ? void 0 : _this$reactComponentP.sharedState.onChange(function (_ref3) {
362
+ var nextSharedState = _ref3.nextSharedState;
363
+ return _this3.updateContentEditable(nextSharedState, domRef);
364
+ });
365
+ this.updateContentEditable((_this$reactComponentP2 = this.reactComponentProps.pluginInjectionApi) === null || _this$reactComponentP2 === void 0 || (_this$reactComponentP2 = _this$reactComponentP2.editorViewMode) === null || _this$reactComponentP2 === void 0 ? void 0 : _this$reactComponentP2.sharedState.currentState(), domRef);
369
366
  domRef.setAttribute('spellcheck', 'false');
370
367
  return domRef;
371
368
  }
@@ -1,8 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React from 'react';
3
- import Icon from '@atlaskit/icon';
4
3
  import SmartLinkListIcon from '@atlaskit/icon/core/smart-link-list';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
4
  import { Flex, xcss } from '@atlaskit/primitives';
7
5
  var IconDatasourceGlyph = function IconDatasourceGlyph(props) {
8
6
  return /*#__PURE__*/React.createElement("svg", _extends({
@@ -30,12 +28,8 @@ var wrapperStyles = xcss({
30
28
  export var DatasourceIcon = function DatasourceIcon(props) {
31
29
  return /*#__PURE__*/React.createElement(Flex, {
32
30
  xcss: wrapperStyles
33
- }, fg('platform-editor-plugin-card-icon-migration') ? /*#__PURE__*/React.createElement(SmartLinkListIcon, {
31
+ }, /*#__PURE__*/React.createElement(SmartLinkListIcon, {
34
32
  LEGACY_fallbackIcon: IconDatasourceGlyph,
35
33
  label: props === null || props === void 0 ? void 0 : props.label
36
- }) : /*#__PURE__*/React.createElement(Icon, _extends({
37
- glyph: IconDatasourceGlyph
38
- // Ignored via go/ees005
39
- // eslint-disable-next-line react/jsx-props-no-spreading
40
- }, props)));
34
+ }));
41
35
  };
@@ -12,7 +12,6 @@ import { linkToolbarMessages, cardMessages as messages } from '@atlaskit/editor-
12
12
  import { FloatingToolbarButton as Button, FloatingToolbarSeparator as Separator } from '@atlaskit/editor-common/ui';
13
13
  import { ArrowKeyNavigationType, DropdownContainer as UiDropdown } from '@atlaskit/editor-common/ui-menu';
14
14
  import EditIcon from '@atlaskit/icon/core/edit';
15
- import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
16
15
  import ChevronDownIcon from '@atlaskit/icon/utility/migration/chevron-down';
17
16
  import { ButtonItem } from '@atlaskit/menu';
18
17
  import { fg } from '@atlaskit/platform-feature-flags';
@@ -72,7 +71,7 @@ var EditToolbarButtonPresentation = function EditToolbarButtonPresentation(_ref)
72
71
  }, editorExperiment('platform_editor_controls', 'control') && jsx(FormattedMessage
73
72
  // Ignored via go/ees005
74
73
  // eslint-disable-next-line react/jsx-props-no-spreading
75
- , linkToolbarMessages.editLink)), jsx(Separator, null));
74
+ , linkToolbarMessages.editLink)), (!editorExperiment('platform_editor_controls', 'variant1') || !fg('platform_editor_controls_patch_6')) && jsx(Separator, null));
76
75
  }
77
76
  case 'edit-datasource':
78
77
  {
@@ -85,7 +84,7 @@ var EditToolbarButtonPresentation = function EditToolbarButtonPresentation(_ref)
85
84
  }, jsx(FormattedMessage
86
85
  // Ignored via go/ees005
87
86
  // eslint-disable-next-line react/jsx-props-no-spreading
88
- , linkToolbarMessages.editDatasourceStandalone)), jsx(Separator, null));
87
+ , linkToolbarMessages.editDatasourceStandalone)), (!editorExperiment('platform_editor_controls', 'variant1') || !fg('platform_editor_controls_patch_6')) && jsx(Separator, null));
89
88
  }
90
89
  case 'edit-dropdown':
91
90
  {
@@ -95,9 +94,7 @@ var EditToolbarButtonPresentation = function EditToolbarButtonPresentation(_ref)
95
94
  testId: "edit-dropdown-trigger",
96
95
  iconAfter: jsx("span", {
97
96
  css: dropdownExpandContainer
98
- }, fg('platform-editor-plugin-card-icon-migration') ? jsx(ChevronDownIcon, {
99
- label: intl.formatMessage(messages.editDropdownTriggerTitle)
100
- }) : jsx(ExpandIcon, {
97
+ }, jsx(ChevronDownIcon, {
101
98
  label: intl.formatMessage(messages.editDropdownTriggerTitle)
102
99
  })),
103
100
  onClick: toggleOpen,
@@ -107,7 +104,7 @@ var EditToolbarButtonPresentation = function EditToolbarButtonPresentation(_ref)
107
104
  }, jsx(FormattedMessage
108
105
  // Ignored via go/ees005
109
106
  // eslint-disable-next-line react/jsx-props-no-spreading
110
- , messages.editDropdownTriggerTitle)), jsx(Separator, null));
107
+ , messages.editDropdownTriggerTitle)), (!editorExperiment('platform_editor_controls', 'variant1') || !fg('platform_editor_controls_patch_6')) && jsx(Separator, null));
111
108
  return jsx(Flex, {
112
109
  ref: containerRef
113
110
  }, jsx(UiDropdown, {
@@ -13,7 +13,6 @@ import { FormattedMessage } from 'react-intl-next';
13
13
  import { linkToolbarMessages, cardMessages as messages } from '@atlaskit/editor-common/messages';
14
14
  import { FloatingToolbarButton as Button, FloatingToolbarSeparator as Separator } from '@atlaskit/editor-common/ui';
15
15
  import { ArrowKeyNavigationType, DropdownContainer as UiDropdown } from '@atlaskit/editor-common/ui-menu';
16
- import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
17
16
  import ChevronDownIcon from '@atlaskit/icon/utility/migration/chevron-down';
18
17
  import { useSmartLinkContext } from '@atlaskit/link-provider';
19
18
  import { ButtonItem } from '@atlaskit/menu';
@@ -123,9 +122,7 @@ var EditToolbarButtonWithCardContext = function EditToolbarButtonWithCardContext
123
122
  testId: "edit-dropdown-trigger",
124
123
  iconAfter: jsx("span", {
125
124
  css: dropdownExpandContainer
126
- }, fg('platform-editor-plugin-card-icon-migration') ? jsx(ChevronDownIcon, {
127
- label: intl.formatMessage(messages.editDropdownTriggerTitle)
128
- }) : jsx(ExpandIcon, {
125
+ }, jsx(ChevronDownIcon, {
129
126
  label: intl.formatMessage(messages.editDropdownTriggerTitle)
130
127
  })),
131
128
  onClick: toggleOpen,
@@ -18,8 +18,6 @@ import { useIntl } from 'react-intl-next';
18
18
  import { cardMessages as messages } from '@atlaskit/editor-common/messages';
19
19
  import { ZERO_WIDTH_JOINER } from '@atlaskit/editor-common/whitespace';
20
20
  import CustomizeIcon from '@atlaskit/icon/core/migration/customize--preferences';
21
- import PreferencesIcon from '@atlaskit/icon/glyph/preferences';
22
- import { fg } from '@atlaskit/platform-feature-flags';
23
21
  import { B100, N0, N700 } from '@atlaskit/theme/colors';
24
22
  import { getChildElement, getIconSize, getInlineCardAvailableWidth, getOverlayWidths, isOneLine } from './utils';
25
23
  var DEBOUNCE_IN_MS = 5;
@@ -251,14 +249,10 @@ var InlineCardOverlay = function InlineCardOverlay(_ref) {
251
249
  className: ICON_AND_LABEL_CLASSNAME
252
250
  }, jsx("span", {
253
251
  css: iconStyles
254
- }, fg('platform-editor-plugin-card-icon-migration') ? jsx(CustomizeIcon, {
252
+ }, jsx(CustomizeIcon, {
255
253
  label: label,
256
254
  LEGACY_size: iconSize.current,
257
255
  testId: "".concat(testId, "-icon")
258
- }) : jsx(PreferencesIcon, {
259
- label: label,
260
- size: iconSize.current,
261
- testId: "".concat(testId, "-icon")
262
256
  })), showLabel && jsx("span", {
263
257
  css: labelStyles
264
258
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
@@ -16,10 +16,7 @@ import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
16
16
  import { getNextBreakoutMode, getTitle } from '@atlaskit/editor-common/utils';
17
17
  import GrowHorizontalIcon from '@atlaskit/icon/core/migration/grow-horizontal--editor-expand';
18
18
  import ShrinkHorizontalIcon from '@atlaskit/icon/core/migration/shrink-horizontal--editor-collapse';
19
- import CollapseIcon from '@atlaskit/icon/glyph/editor/collapse';
20
- import ExpandIcon from '@atlaskit/icon/glyph/editor/expand';
21
19
  import { DATASOURCE_DEFAULT_LAYOUT } from '@atlaskit/linking-common';
22
- import { fg } from '@atlaskit/platform-feature-flags';
23
20
  import { B300, N20A, N300 } from '@atlaskit/theme/colors';
24
21
  import { setCardLayout } from '../../pm-plugins/actions';
25
22
  import { isDatasourceNode } from '../../pm-plugins/utils';
@@ -54,16 +51,6 @@ export var LayoutButton = function LayoutButton(_ref) {
54
51
  if (!targetElement) {
55
52
  return null;
56
53
  }
57
- var collapseIcon = fg('platform-editor-plugin-card-icon-migration') ? jsx(ShrinkHorizontalIcon, {
58
- label: title
59
- }) : jsx(CollapseIcon, {
60
- label: title
61
- });
62
- var expandIcon = fg('platform-editor-plugin-card-icon-migration') ? jsx(GrowHorizontalIcon, {
63
- label: title
64
- }) : jsx(ExpandIcon, {
65
- label: title
66
- });
67
54
  return jsx(Popup, {
68
55
  mountTo: mountPoint,
69
56
  boundariesElement: boundariesElement,
@@ -79,7 +66,11 @@ export var LayoutButton = function LayoutButton(_ref) {
79
66
  css: toolbarButtonWrapperStyles,
80
67
  title: title,
81
68
  onClick: handleClick,
82
- iconBefore: layout === 'full-width' ? collapseIcon : expandIcon
69
+ iconBefore: layout === 'full-width' ? jsx(ShrinkHorizontalIcon, {
70
+ label: title
71
+ }) : jsx(GrowHorizontalIcon, {
72
+ label: title
73
+ })
83
74
  }));
84
75
  };
85
76
  var LayoutButtonWrapper = function LayoutButtonWrapper(_ref2) {
@@ -168,10 +168,7 @@ var buildAlignmentOptions = function buildAlignmentOptions(state, intl, widthPlu
168
168
  if (editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_controls_patch_6')) {
169
169
  return buildLayoutDropdown(state, intl, state.schema.nodes.embedCard, widthPluginDependencyApi, analyticsApi, true, true, cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.allowWrapping, cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.allowAlignment);
170
170
  }
171
- var layoutButtons = buildLayoutButtons(state, intl, state.schema.nodes.embedCard, widthPluginDependencyApi, analyticsApi, true, true, cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.allowWrapping, cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.allowAlignment);
172
- return editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_controls_patch_6') ? layoutButtons.filter(function (item) {
173
- return item.type !== 'separator';
174
- }) : layoutButtons;
171
+ return buildLayoutButtons(state, intl, state.schema.nodes.embedCard, widthPluginDependencyApi, analyticsApi, true, true, cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.allowWrapping, cardOptions === null || cardOptions === void 0 ? void 0 : cardOptions.allowAlignment);
175
172
  };
176
173
  var withToolbarMetadata = function withToolbarMetadata(command) {
177
174
  return commandWithMetadata(command, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "5.4.19",
3
+ "version": "5.4.21",
4
4
  "description": "Card plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -37,7 +37,7 @@
37
37
  "@atlaskit/analytics-next": "^11.0.0",
38
38
  "@atlaskit/button": "^23.0.0",
39
39
  "@atlaskit/custom-steps": "^0.11.0",
40
- "@atlaskit/editor-common": "^103.15.0",
40
+ "@atlaskit/editor-common": "^103.17.0",
41
41
  "@atlaskit/editor-plugin-analytics": "^2.2.0",
42
42
  "@atlaskit/editor-plugin-base": "^2.3.0",
43
43
  "@atlaskit/editor-plugin-connectivity": "^2.0.0",
@@ -54,15 +54,15 @@
54
54
  "@atlaskit/icon": "^25.6.0",
55
55
  "@atlaskit/link-analytics": "^9.1.0",
56
56
  "@atlaskit/link-client-extension": "^4.0.0",
57
- "@atlaskit/link-datasource": "^4.6.0",
57
+ "@atlaskit/link-datasource": "^4.8.0",
58
58
  "@atlaskit/linking-common": "^8.0.0",
59
- "@atlaskit/linking-types": "^9.9.0",
59
+ "@atlaskit/linking-types": "^9.10.0",
60
60
  "@atlaskit/menu": "^3.2.0",
61
61
  "@atlaskit/platform-feature-flags": "^1.1.0",
62
62
  "@atlaskit/primitives": "^14.4.0",
63
- "@atlaskit/smart-card": "^36.9.0",
63
+ "@atlaskit/smart-card": "^36.10.0",
64
64
  "@atlaskit/theme": "^18.0.0",
65
- "@atlaskit/tmp-editor-statsig": "^4.13.0",
65
+ "@atlaskit/tmp-editor-statsig": "^4.14.0",
66
66
  "@atlaskit/tokens": "^4.8.0",
67
67
  "@babel/runtime": "^7.0.0",
68
68
  "@emotion/react": "^11.7.1",
@@ -113,9 +113,6 @@
113
113
  }
114
114
  },
115
115
  "platform-feature-flags": {
116
- "linking-platform-contenteditable-false-live-view": {
117
- "type": "boolean"
118
- },
119
116
  "editor_inline_comments_paste_insert_nodes": {
120
117
  "type": "boolean"
121
118
  },
@@ -128,9 +125,6 @@
128
125
  "platform_editor_fix_card_plugin_state": {
129
126
  "type": "boolean"
130
127
  },
131
- "platform-editor-plugin-card-icon-migration": {
132
- "type": "boolean"
133
- },
134
128
  "confluence-issue-terminology-refresh": {
135
129
  "type": "boolean"
136
130
  },