@atlaskit/editor-plugin-text-color 31.0.0 → 32.0.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,30 @@
1
1
  # @atlaskit/editor-plugin-text-color
2
2
 
3
+ ## 32.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - [`f039487b0e531`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f039487b0e531) -
8
+ Remove internal code that the `platform_editor_controls` experiment cleanup left unused: unused
9
+ component props, an unused view mode subscription in media groups, unused placeholder messages,
10
+ and the internal bracket placeholder text.
11
+ - Updated dependencies
12
+
13
+ ## 31.1.0
14
+
15
+ ### Minor Changes
16
+
17
+ - [`c13b574ab38d2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c13b574ab38d2) -
18
+ Declare the workspace dependencies used by package source and emitted types so isolated
19
+ installations can resolve them.
20
+
21
+ ### Patch Changes
22
+
23
+ - [`cf5488765ee65`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cf5488765ee65) -
24
+ Remove the `control` branches of experiment `platform_editor_controls`; the editor controls
25
+ (`variant1`) experience is now permanent.
26
+ - Updated dependencies
27
+
3
28
  ## 31.0.0
4
29
 
5
30
  ### Patch Changes
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.textColorPlugin = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _textColor = require("@atlaskit/adf-schema/text-color");
10
- var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
11
10
  var _changeColor2 = require("./editor-commands/change-color");
12
11
  var _palette = require("./editor-commands/palette");
13
12
  var _changeColor3 = require("./pm-plugins/commands/change-color");
@@ -34,14 +33,12 @@ var textColorPlugin = exports.textColorPlugin = function textColorPlugin(_ref) {
34
33
  popupsMountPoint = _ref2.popupsMountPoint,
35
34
  popupsBoundariesElement = _ref2.popupsBoundariesElement,
36
35
  popupsScrollableElement = _ref2.popupsScrollableElement,
37
- isToolbarReducedSpacing = _ref2.isToolbarReducedSpacing,
38
36
  dispatchAnalyticsEvent = _ref2.dispatchAnalyticsEvent,
39
37
  disabled = _ref2.disabled;
40
38
  if (!editorView) {
41
39
  return null;
42
40
  }
43
41
  return /*#__PURE__*/_react.default.createElement(_PrimaryToolbarComponent.PrimaryToolbarComponent, {
44
- isReducedSpacing: isToolbarReducedSpacing,
45
42
  editorView: editorView,
46
43
  popupsMountPoint: popupsMountPoint,
47
44
  popupsBoundariesElement: popupsBoundariesElement,
@@ -117,9 +114,7 @@ var textColorPlugin = exports.textColorPlugin = function textColorPlugin(_ref) {
117
114
  selectionToolbar: function selectionToolbar() {
118
115
  var _api$userPreferences;
119
116
  var toolbarDocking = api === null || api === void 0 || (_api$userPreferences = api.userPreferences) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.sharedState) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.currentState()) === null || _api$userPreferences === void 0 ? void 0 : _api$userPreferences.preferences.toolbarDockingPosition;
120
- if (toolbarDocking === 'none' && (0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1', {
121
- exposure: true
122
- })) {
117
+ if (toolbarDocking === 'none') {
123
118
  var toolbarCustom = {
124
119
  type: 'custom',
125
120
  render: function render(view, _idx, dispatchAnalyticsEvent) {
@@ -13,8 +13,7 @@ var _ToolbarTextColor = _interopRequireDefault(require("./ToolbarTextColor"));
13
13
  // eslint-disable-next-line import/no-named-as-default
14
14
 
15
15
  var FloatingToolbarSettings = {
16
- disabled: false,
17
- isReducedSpacing: true
16
+ disabled: false
18
17
  };
19
18
  var selector = function selector(states) {
20
19
  var _states$textColorStat, _states$textColorStat2, _states$textColorStat3, _states$textColorStat4;
@@ -46,7 +45,6 @@ var FloatingToolbarComponent = exports.FloatingToolbarComponent = function Float
46
45
  palette: palette,
47
46
  disabled: disabled
48
47
  },
49
- isReducedSpacing: FloatingToolbarSettings.isReducedSpacing,
50
48
  editorView: editorView,
51
49
  dispatchAnalyticsEvent: dispatchAnalyticsEvent,
52
50
  disabled: FloatingToolbarSettings.disabled,
@@ -23,7 +23,6 @@ var selector = function selector(states) {
23
23
  };
24
24
  var PrimaryToolbarComponent = exports.PrimaryToolbarComponent = function PrimaryToolbarComponent(_ref) {
25
25
  var api = _ref.api,
26
- isReducedSpacing = _ref.isReducedSpacing,
27
26
  editorView = _ref.editorView,
28
27
  popupsMountPoint = _ref.popupsMountPoint,
29
28
  popupsScrollableElement = _ref.popupsScrollableElement,
@@ -47,7 +46,6 @@ var PrimaryToolbarComponent = exports.PrimaryToolbarComponent = function Primary
47
46
  palette: palette,
48
47
  disabled: textColorDisabled
49
48
  },
50
- isReducedSpacing: isReducedSpacing,
51
49
  editorView: editorView,
52
50
  popupsMountPoint: popupsMountPoint,
53
51
  popupsBoundariesElement: popupsBoundariesElement,
@@ -31,11 +31,9 @@ var _text = require("@atlaskit/editor-palette/text");
31
31
  var _constants = require("@atlaskit/editor-shared-styles/constants");
32
32
  var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/core/chevron-down"));
33
33
  var _textStyle = _interopRequireDefault(require("@atlaskit/icon/core/text-style"));
34
- var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
35
34
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
36
35
  var _changeColor = require("../../pm-plugins/commands/change-color");
37
36
  var _inputType = require("../../pm-plugins/utils/inputType");
38
- var _types2 = require("../../types");
39
37
  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; }
40
38
  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; }
41
39
  function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
@@ -144,7 +142,6 @@ var ToolbarTextColor = exports.ToolbarTextColor = /*#__PURE__*/function (_React$
144
142
  popupsMountPoint = _this$props.popupsMountPoint,
145
143
  popupsBoundariesElement = _this$props.popupsBoundariesElement,
146
144
  popupsScrollableElement = _this$props.popupsScrollableElement,
147
- isReducedSpacing = _this$props.isReducedSpacing,
148
145
  pluginState = _this$props.pluginState,
149
146
  formatMessage = _this$props.intl.formatMessage,
150
147
  disabled = _this$props.disabled,
@@ -174,7 +171,6 @@ var ToolbarTextColor = exports.ToolbarTextColor = /*#__PURE__*/function (_React$
174
171
  var _getSelectedRowAndCol = (0, _utils.getSelectedRowAndColumnFromPalette)(palette, pluginState.color, colorPickerColumns),
175
172
  selectedRowIndex = _getSelectedRowAndCol.selectedRowIndex,
176
173
  selectedColumnIndex = _getSelectedRowAndCol.selectedColumnIndex;
177
- var reducedSpacing = this.props.toolbarType === _types2.ToolbarType.FLOATING ? 'compact' : 'none';
178
174
  return (0, _react2.jsx)("span", {
179
175
  css:
180
176
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
@@ -200,7 +196,7 @@ var ToolbarTextColor = exports.ToolbarTextColor = /*#__PURE__*/function (_React$
200
196
  },
201
197
  trigger: (0, _react2.jsx)(_ToolbarButton.default, {
202
198
  buttonId: _toolbarButton.TOOLBAR_ACTION_SUBJECT_ID.TEXT_COLOR,
203
- spacing: !isReducedSpacing || (0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1') ? 'default' : reducedSpacing,
199
+ spacing: "default",
204
200
  disabled: disabled || pluginState.disabled,
205
201
  selected: isOpen,
206
202
  "aria-label": labelTextColor,
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import { textColor } from '@atlaskit/adf-schema/text-color';
3
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
4
3
  import { changeColor as changeColorCommand } from './editor-commands/change-color';
5
4
  import { setPalette } from './editor-commands/palette';
6
5
  import { changeColor } from './pm-plugins/commands/change-color';
@@ -28,7 +27,6 @@ export const textColorPlugin = ({
28
27
  popupsMountPoint,
29
28
  popupsBoundariesElement,
30
29
  popupsScrollableElement,
31
- isToolbarReducedSpacing,
32
30
  dispatchAnalyticsEvent,
33
31
  disabled
34
32
  }) => {
@@ -36,7 +34,6 @@ export const textColorPlugin = ({
36
34
  return null;
37
35
  }
38
36
  return /*#__PURE__*/React.createElement(PrimaryToolbarComponent, {
39
- isReducedSpacing: isToolbarReducedSpacing,
40
37
  editorView: editorView,
41
38
  popupsMountPoint: popupsMountPoint,
42
39
  popupsBoundariesElement: popupsBoundariesElement,
@@ -108,9 +105,7 @@ export const textColorPlugin = ({
108
105
  selectionToolbar: () => {
109
106
  var _api$userPreferences, _api$userPreferences$, _api$userPreferences$2;
110
107
  const toolbarDocking = api === null || api === void 0 ? void 0 : (_api$userPreferences = api.userPreferences) === null || _api$userPreferences === void 0 ? void 0 : (_api$userPreferences$ = _api$userPreferences.sharedState) === null || _api$userPreferences$ === void 0 ? void 0 : (_api$userPreferences$2 = _api$userPreferences$.currentState()) === null || _api$userPreferences$2 === void 0 ? void 0 : _api$userPreferences$2.preferences.toolbarDockingPosition;
111
- if (toolbarDocking === 'none' && editorExperiment('platform_editor_controls', 'variant1', {
112
- exposure: true
113
- })) {
108
+ if (toolbarDocking === 'none') {
114
109
  const toolbarCustom = {
115
110
  type: 'custom',
116
111
  render: (view, _idx, dispatchAnalyticsEvent) => {
@@ -5,8 +5,7 @@ import { ToolbarType } from '../types';
5
5
  // eslint-disable-next-line import/no-named-as-default
6
6
  import ToolbarTextColor from './ToolbarTextColor';
7
7
  const FloatingToolbarSettings = {
8
- disabled: false,
9
- isReducedSpacing: true
8
+ disabled: false
10
9
  };
11
10
  const selector = states => {
12
11
  var _states$textColorStat, _states$textColorStat2, _states$textColorStat3, _states$textColorStat4;
@@ -40,7 +39,6 @@ export const FloatingToolbarComponent = ({
40
39
  palette,
41
40
  disabled
42
41
  },
43
- isReducedSpacing: FloatingToolbarSettings.isReducedSpacing,
44
42
  editorView: editorView,
45
43
  dispatchAnalyticsEvent: dispatchAnalyticsEvent,
46
44
  disabled: FloatingToolbarSettings.disabled,
@@ -15,7 +15,6 @@ const selector = states => {
15
15
  };
16
16
  export const PrimaryToolbarComponent = ({
17
17
  api,
18
- isReducedSpacing,
19
18
  editorView,
20
19
  popupsMountPoint,
21
20
  popupsScrollableElement,
@@ -41,7 +40,6 @@ export const PrimaryToolbarComponent = ({
41
40
  palette,
42
41
  disabled: textColorDisabled
43
42
  },
44
- isReducedSpacing: isReducedSpacing,
45
43
  editorView: editorView,
46
44
  popupsMountPoint: popupsMountPoint,
47
45
  popupsBoundariesElement: popupsBoundariesElement,
@@ -24,11 +24,9 @@ import { hexToEditorTextPaletteColor } from '@atlaskit/editor-palette/text';
24
24
  import { akEditorMenuZIndex } from '@atlaskit/editor-shared-styles/constants';
25
25
  import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
26
26
  import TextStyleIcon from '@atlaskit/icon/core/text-style';
27
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
28
27
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
29
28
  import { changeColor as changeColorWithAnalytics } from '../../pm-plugins/commands/change-color';
30
29
  import { getInputMethod } from '../../pm-plugins/utils/inputType';
31
- import { ToolbarType } from '../../types';
32
30
  const addMarginToWrapper = css({
33
31
  marginRight: "var(--ds-space-050, 4px)"
34
32
  });
@@ -122,7 +120,6 @@ export class ToolbarTextColor extends React.Component {
122
120
  popupsMountPoint,
123
121
  popupsBoundariesElement,
124
122
  popupsScrollableElement,
125
- isReducedSpacing,
126
123
  pluginState,
127
124
  intl: {
128
125
  formatMessage
@@ -154,7 +151,6 @@ export class ToolbarTextColor extends React.Component {
154
151
  selectedRowIndex,
155
152
  selectedColumnIndex
156
153
  } = getSelectedRowAndColumnFromPalette(palette, pluginState.color, colorPickerColumns);
157
- const reducedSpacing = this.props.toolbarType === ToolbarType.FLOATING ? 'compact' : 'none';
158
154
  return jsx("span", {
159
155
  css:
160
156
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
@@ -180,7 +176,7 @@ export class ToolbarTextColor extends React.Component {
180
176
  },
181
177
  trigger: jsx(ToolbarButton, {
182
178
  buttonId: TOOLBAR_BUTTON.TEXT_COLOR,
183
- spacing: !isReducedSpacing || editorExperiment('platform_editor_controls', 'variant1') ? 'default' : reducedSpacing,
179
+ spacing: "default",
184
180
  disabled: disabled || pluginState.disabled,
185
181
  selected: isOpen,
186
182
  "aria-label": labelTextColor,
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import { textColor } from '@atlaskit/adf-schema/text-color';
3
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
4
3
  import { changeColor as changeColorCommand } from './editor-commands/change-color';
5
4
  import { setPalette as _setPalette } from './editor-commands/palette';
6
5
  import { changeColor as _changeColor } from './pm-plugins/commands/change-color';
@@ -27,14 +26,12 @@ export var textColorPlugin = function textColorPlugin(_ref) {
27
26
  popupsMountPoint = _ref2.popupsMountPoint,
28
27
  popupsBoundariesElement = _ref2.popupsBoundariesElement,
29
28
  popupsScrollableElement = _ref2.popupsScrollableElement,
30
- isToolbarReducedSpacing = _ref2.isToolbarReducedSpacing,
31
29
  dispatchAnalyticsEvent = _ref2.dispatchAnalyticsEvent,
32
30
  disabled = _ref2.disabled;
33
31
  if (!editorView) {
34
32
  return null;
35
33
  }
36
34
  return /*#__PURE__*/React.createElement(PrimaryToolbarComponent, {
37
- isReducedSpacing: isToolbarReducedSpacing,
38
35
  editorView: editorView,
39
36
  popupsMountPoint: popupsMountPoint,
40
37
  popupsBoundariesElement: popupsBoundariesElement,
@@ -110,9 +107,7 @@ export var textColorPlugin = function textColorPlugin(_ref) {
110
107
  selectionToolbar: function selectionToolbar() {
111
108
  var _api$userPreferences;
112
109
  var toolbarDocking = api === null || api === void 0 || (_api$userPreferences = api.userPreferences) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.sharedState) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.currentState()) === null || _api$userPreferences === void 0 ? void 0 : _api$userPreferences.preferences.toolbarDockingPosition;
113
- if (toolbarDocking === 'none' && editorExperiment('platform_editor_controls', 'variant1', {
114
- exposure: true
115
- })) {
110
+ if (toolbarDocking === 'none') {
116
111
  var toolbarCustom = {
117
112
  type: 'custom',
118
113
  render: function render(view, _idx, dispatchAnalyticsEvent) {
@@ -5,8 +5,7 @@ import { ToolbarType } from '../types';
5
5
  // eslint-disable-next-line import/no-named-as-default
6
6
  import ToolbarTextColor from './ToolbarTextColor';
7
7
  var FloatingToolbarSettings = {
8
- disabled: false,
9
- isReducedSpacing: true
8
+ disabled: false
10
9
  };
11
10
  var selector = function selector(states) {
12
11
  var _states$textColorStat, _states$textColorStat2, _states$textColorStat3, _states$textColorStat4;
@@ -38,7 +37,6 @@ export var FloatingToolbarComponent = function FloatingToolbarComponent(_ref) {
38
37
  palette: palette,
39
38
  disabled: disabled
40
39
  },
41
- isReducedSpacing: FloatingToolbarSettings.isReducedSpacing,
42
40
  editorView: editorView,
43
41
  dispatchAnalyticsEvent: dispatchAnalyticsEvent,
44
42
  disabled: FloatingToolbarSettings.disabled,
@@ -15,7 +15,6 @@ var selector = function selector(states) {
15
15
  };
16
16
  export var PrimaryToolbarComponent = function PrimaryToolbarComponent(_ref) {
17
17
  var api = _ref.api,
18
- isReducedSpacing = _ref.isReducedSpacing,
19
18
  editorView = _ref.editorView,
20
19
  popupsMountPoint = _ref.popupsMountPoint,
21
20
  popupsScrollableElement = _ref.popupsScrollableElement,
@@ -39,7 +38,6 @@ export var PrimaryToolbarComponent = function PrimaryToolbarComponent(_ref) {
39
38
  palette: palette,
40
39
  disabled: textColorDisabled
41
40
  },
42
- isReducedSpacing: isReducedSpacing,
43
41
  editorView: editorView,
44
42
  popupsMountPoint: popupsMountPoint,
45
43
  popupsBoundariesElement: popupsBoundariesElement,
@@ -34,11 +34,9 @@ import { hexToEditorTextPaletteColor } from '@atlaskit/editor-palette/text';
34
34
  import { akEditorMenuZIndex } from '@atlaskit/editor-shared-styles/constants';
35
35
  import ChevronDownIcon from '@atlaskit/icon/core/chevron-down';
36
36
  import TextStyleIcon from '@atlaskit/icon/core/text-style';
37
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
38
37
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
39
38
  import { changeColor as changeColorWithAnalytics } from '../../pm-plugins/commands/change-color';
40
39
  import { getInputMethod } from '../../pm-plugins/utils/inputType';
41
- import { ToolbarType } from '../../types';
42
40
  var addMarginToWrapper = css({
43
41
  marginRight: "var(--ds-space-050, 4px)"
44
42
  });
@@ -140,7 +138,6 @@ export var ToolbarTextColor = /*#__PURE__*/function (_React$Component) {
140
138
  popupsMountPoint = _this$props.popupsMountPoint,
141
139
  popupsBoundariesElement = _this$props.popupsBoundariesElement,
142
140
  popupsScrollableElement = _this$props.popupsScrollableElement,
143
- isReducedSpacing = _this$props.isReducedSpacing,
144
141
  pluginState = _this$props.pluginState,
145
142
  formatMessage = _this$props.intl.formatMessage,
146
143
  disabled = _this$props.disabled,
@@ -170,7 +167,6 @@ export var ToolbarTextColor = /*#__PURE__*/function (_React$Component) {
170
167
  var _getSelectedRowAndCol = getSelectedRowAndColumnFromPalette(palette, pluginState.color, colorPickerColumns),
171
168
  selectedRowIndex = _getSelectedRowAndCol.selectedRowIndex,
172
169
  selectedColumnIndex = _getSelectedRowAndCol.selectedColumnIndex;
173
- var reducedSpacing = this.props.toolbarType === ToolbarType.FLOATING ? 'compact' : 'none';
174
170
  return jsx("span", {
175
171
  css:
176
172
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
@@ -196,7 +192,7 @@ export var ToolbarTextColor = /*#__PURE__*/function (_React$Component) {
196
192
  },
197
193
  trigger: jsx(ToolbarButton, {
198
194
  buttonId: TOOLBAR_BUTTON.TEXT_COLOR,
199
- spacing: !isReducedSpacing || editorExperiment('platform_editor_controls', 'variant1') ? 'default' : reducedSpacing,
195
+ spacing: "default",
200
196
  disabled: disabled || pluginState.disabled,
201
197
  selected: isOpen,
202
198
  "aria-label": labelTextColor,
@@ -8,10 +8,9 @@ interface PrimaryToolbarComponentProps {
8
8
  disabled: boolean;
9
9
  dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
10
10
  editorView: EditorView;
11
- isReducedSpacing: boolean;
12
11
  popupsBoundariesElement?: HTMLElement;
13
12
  popupsMountPoint?: HTMLElement;
14
13
  popupsScrollableElement?: HTMLElement;
15
14
  }
16
- export declare const PrimaryToolbarComponent: ({ api, isReducedSpacing, editorView, popupsMountPoint, popupsScrollableElement, popupsBoundariesElement, dispatchAnalyticsEvent, disabled, }: PrimaryToolbarComponentProps) => React.JSX.Element | null;
15
+ export declare const PrimaryToolbarComponent: ({ api, editorView, popupsMountPoint, popupsScrollableElement, popupsBoundariesElement, dispatchAnalyticsEvent, disabled, }: PrimaryToolbarComponentProps) => React.JSX.Element | null;
17
16
  export {};
@@ -11,7 +11,7 @@ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-edi
11
11
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
12
12
  import type { TextColorPluginState } from '../../pm-plugins/main';
13
13
  import type { TextColorPlugin } from '../../textColorPluginType';
14
- import { ToolbarType } from '../../types';
14
+ import type { ToolbarType } from '../../types';
15
15
  export interface State {
16
16
  isOpen: boolean;
17
17
  isOpenedByKeyboard: boolean;
@@ -20,7 +20,6 @@ export interface Props {
20
20
  disabled?: boolean;
21
21
  dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
22
22
  editorView: EditorView;
23
- isReducedSpacing?: boolean;
24
23
  pluginInjectionApi: ExtractInjectionAPI<TextColorPlugin> | undefined;
25
24
  pluginState: TextColorPluginState;
26
25
  popupsBoundariesElement?: HTMLElement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-text-color",
3
- "version": "31.0.0",
3
+ "version": "32.0.0",
4
4
  "description": "Text color plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -30,14 +30,15 @@
30
30
  "@atlaskit/button": "^25.8.0",
31
31
  "@atlaskit/css": "^1.1.0",
32
32
  "@atlaskit/editor-palette": "^3.5.0",
33
- "@atlaskit/editor-plugin-analytics": "^31.0.0",
34
- "@atlaskit/editor-plugin-highlight": "^31.0.0",
35
- "@atlaskit/editor-plugin-interaction": "^45.0.0",
36
- "@atlaskit/editor-plugin-primary-toolbar": "^32.0.0",
37
- "@atlaskit/editor-plugin-selection-toolbar": "^32.0.0",
38
- "@atlaskit/editor-plugin-toolbar": "^28.0.0",
33
+ "@atlaskit/editor-plugin-analytics": "^32.0.0",
34
+ "@atlaskit/editor-plugin-highlight": "^32.0.0",
35
+ "@atlaskit/editor-plugin-interaction": "^46.0.0",
36
+ "@atlaskit/editor-plugin-primary-toolbar": "^33.0.0",
37
+ "@atlaskit/editor-plugin-selection-toolbar": "^33.0.0",
38
+ "@atlaskit/editor-plugin-toolbar": "^29.0.0",
39
+ "@atlaskit/editor-plugin-user-preferences": "^30.0.0",
39
40
  "@atlaskit/editor-prosemirror": "^9.0.0",
40
- "@atlaskit/editor-shared-styles": "^5.1.0",
41
+ "@atlaskit/editor-shared-styles": "^5.2.0",
41
42
  "@atlaskit/editor-toolbar": "^2.11.0",
42
43
  "@atlaskit/editor-toolbar-model": "^1.2.0",
43
44
  "@atlaskit/heading": "^8.0.0",
@@ -51,13 +52,13 @@
51
52
  "@emotion/react": "^11.7.1"
52
53
  },
53
54
  "peerDependencies": {
54
- "@atlaskit/editor-common": "^135.0.0",
55
+ "@atlaskit/editor-common": "^136.0.0",
55
56
  "react": "^18.2.0 || ^19.2.0",
56
57
  "react-dom": "^18.2.0 || ^19.2.0",
57
58
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
58
59
  },
59
60
  "devDependencies": {
60
- "@atlaskit/editor-common": "^135.0.0",
61
+ "@atlaskit/editor-common": "^136.0.0",
61
62
  "@atlassian/structured-docs-types": "workspace:^",
62
63
  "@atlassian/workbench": "workspace:*",
63
64
  "react": "^19.2.0",