@atlaskit/editor-plugin-text-color 8.1.4 → 8.1.6

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,19 @@
1
1
  # @atlaskit/editor-plugin-text-color
2
2
 
3
+ ## 8.1.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [`0f4a08b633f6e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0f4a08b633f6e) -
8
+ Internal changes to remove unnecessary token fallbacks and imports from `@atlaskit/theme`
9
+ - Updated dependencies
10
+
11
+ ## 8.1.5
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 8.1.4
4
18
 
5
19
  ### Patch Changes
@@ -22,7 +22,7 @@ function createInitialPluginState(editorState, pluginConfig) {
22
22
  var palette = [{
23
23
  value: defaultColor.color,
24
24
  label: defaultColor.label,
25
- border: "var(--ds-border, #091E4224)"
25
+ border: "var(--ds-border, #0B120E24)"
26
26
  }].concat((0, _toConsumableArray2.default)(_uiColor.textColorPalette));
27
27
  var state = {
28
28
  color: (0, _color.getActiveColor)(editorState),
@@ -37,7 +37,9 @@ var FloatingToolbarComponent = exports.FloatingToolbarComponent = function Float
37
37
  if (color === undefined || defaultColor === undefined || palette === undefined) {
38
38
  return null;
39
39
  }
40
- return /*#__PURE__*/_react.default.createElement(_ToolbarTextColor.default, {
40
+ return /*#__PURE__*/_react.default.createElement(_ToolbarTextColor.default
41
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
42
+ , {
41
43
  pluginState: {
42
44
  color: color,
43
45
  defaultColor: defaultColor,
@@ -38,7 +38,9 @@ var PrimaryToolbarComponent = exports.PrimaryToolbarComponent = function Primary
38
38
  if (color === undefined || defaultColor === undefined || palette === undefined) {
39
39
  return null;
40
40
  }
41
- return /*#__PURE__*/_react.default.createElement(_ToolbarTextColor.default, {
41
+ return /*#__PURE__*/_react.default.createElement(_ToolbarTextColor.default
42
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
43
+ , {
42
44
  pluginState: {
43
45
  color: color,
44
46
  defaultColor: defaultColor,
@@ -58,11 +58,15 @@ function TextColorMenuItem(_ref) {
58
58
  testId: "text-color-menu-item"
59
59
  }, /*#__PURE__*/_react.default.createElement(_heading.default, {
60
60
  size: "xxsmall"
61
- }, formatMessage(_messages.textColorMessages.textColorTooltip)), /*#__PURE__*/_react.default.createElement(_editorToolbar.ColorPalette, {
61
+ }, formatMessage(_messages.textColorMessages.textColorTooltip)), /*#__PURE__*/_react.default.createElement(_editorToolbar.ColorPalette
62
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
63
+ , {
62
64
  onClick: function onClick(color, _, event) {
63
65
  handleTextColorChange(color, event);
64
66
  },
65
- selectedColor: color || defaultColor,
67
+ selectedColor: color || defaultColor
68
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
69
+ ,
66
70
  paletteOptions: {
67
71
  palette: palette,
68
72
  hexToPaletteColor: _editorPalette.hexToEditorTextPaletteColor,
@@ -178,7 +178,9 @@ var ToolbarTextColor = exports.ToolbarTextColor = /*#__PURE__*/function (_React$
178
178
  handleEscapeKeydown: this.hideonEsc,
179
179
  zIndex: _editorSharedStyles.akEditorMenuZIndex,
180
180
  fitWidth: fitWidth,
181
- closeOnTab: true,
181
+ closeOnTab: true
182
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
183
+ ,
182
184
  arrowKeyNavigationProviderOptions: {
183
185
  type: _uiMenu.ArrowKeyNavigationType.COLOR,
184
186
  selectedRowIndex: selectedRowIndex,
@@ -222,12 +224,16 @@ var ToolbarTextColor = exports.ToolbarTextColor = /*#__PURE__*/function (_React$
222
224
  })
223
225
  }, (0, _react2.jsx)("div", {
224
226
  "data-testid": "text-color-palette"
225
- }, (0, _react2.jsx)(_uiColor.ColorPalette, {
227
+ }, (0, _react2.jsx)(_uiColor.ColorPalette
228
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
229
+ , {
226
230
  onClick: function onClick(color) {
227
231
  var _pluginInjectionApi$a;
228
232
  return _this2.changeTextColor(color, pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a === void 0 ? void 0 : _pluginInjectionApi$a.actions, pluginState.disabled);
229
233
  },
230
- selectedColor: pluginState.color,
234
+ selectedColor: pluginState.color
235
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
236
+ ,
231
237
  paletteOptions: {
232
238
  palette: palette,
233
239
  hexToPaletteColor: _editorPalette.hexToEditorTextPaletteColor,
@@ -9,7 +9,7 @@ function createInitialPluginState(editorState, pluginConfig) {
9
9
  const palette = [{
10
10
  value: defaultColor.color,
11
11
  label: defaultColor.label,
12
- border: "var(--ds-border, #091E4224)"
12
+ border: "var(--ds-border, #0B120E24)"
13
13
  }, ...textColorPalette];
14
14
  const state = {
15
15
  color: getActiveColor(editorState),
@@ -32,7 +32,9 @@ export const FloatingToolbarComponent = ({
32
32
  if (color === undefined || defaultColor === undefined || palette === undefined) {
33
33
  return null;
34
34
  }
35
- return /*#__PURE__*/React.createElement(ToolbarTextColor, {
35
+ return /*#__PURE__*/React.createElement(ToolbarTextColor
36
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
37
+ , {
36
38
  pluginState: {
37
39
  color,
38
40
  defaultColor,
@@ -33,7 +33,9 @@ export const PrimaryToolbarComponent = ({
33
33
  if (color === undefined || defaultColor === undefined || palette === undefined) {
34
34
  return null;
35
35
  }
36
- return /*#__PURE__*/React.createElement(ToolbarTextColor, {
36
+ return /*#__PURE__*/React.createElement(ToolbarTextColor
37
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
38
+ , {
37
39
  pluginState: {
38
40
  color,
39
41
  defaultColor,
@@ -53,11 +53,15 @@ export function TextColorMenuItem({
53
53
  testId: "text-color-menu-item"
54
54
  }, /*#__PURE__*/React.createElement(Heading, {
55
55
  size: "xxsmall"
56
- }, formatMessage(messages.textColorTooltip)), /*#__PURE__*/React.createElement(ColorPalette, {
56
+ }, formatMessage(messages.textColorTooltip)), /*#__PURE__*/React.createElement(ColorPalette
57
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
58
+ , {
57
59
  onClick: (color, _, event) => {
58
60
  handleTextColorChange(color, event);
59
61
  },
60
- selectedColor: color || defaultColor,
62
+ selectedColor: color || defaultColor
63
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
64
+ ,
61
65
  paletteOptions: {
62
66
  palette: palette,
63
67
  hexToPaletteColor: hexToEditorTextPaletteColor,
@@ -158,7 +158,9 @@ export class ToolbarTextColor extends React.Component {
158
158
  handleEscapeKeydown: this.hideonEsc,
159
159
  zIndex: akEditorMenuZIndex,
160
160
  fitWidth: fitWidth,
161
- closeOnTab: true,
161
+ closeOnTab: true
162
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
163
+ ,
162
164
  arrowKeyNavigationProviderOptions: {
163
165
  type: ArrowKeyNavigationType.COLOR,
164
166
  selectedRowIndex,
@@ -202,12 +204,16 @@ export class ToolbarTextColor extends React.Component {
202
204
  })
203
205
  }, jsx("div", {
204
206
  "data-testid": "text-color-palette"
205
- }, jsx(ColorPalette, {
207
+ }, jsx(ColorPalette
208
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
209
+ , {
206
210
  onClick: color => {
207
211
  var _pluginInjectionApi$a;
208
212
  return this.changeTextColor(color, pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$a = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a === void 0 ? void 0 : _pluginInjectionApi$a.actions, pluginState.disabled);
209
213
  },
210
- selectedColor: pluginState.color,
214
+ selectedColor: pluginState.color
215
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
216
+ ,
211
217
  paletteOptions: {
212
218
  palette,
213
219
  hexToPaletteColor: hexToEditorTextPaletteColor,
@@ -13,7 +13,7 @@ function createInitialPluginState(editorState, pluginConfig) {
13
13
  var palette = [{
14
14
  value: defaultColor.color,
15
15
  label: defaultColor.label,
16
- border: "var(--ds-border, #091E4224)"
16
+ border: "var(--ds-border, #0B120E24)"
17
17
  }].concat(_toConsumableArray(textColorPalette));
18
18
  var state = {
19
19
  color: getActiveColor(editorState),
@@ -30,7 +30,9 @@ export var FloatingToolbarComponent = function FloatingToolbarComponent(_ref) {
30
30
  if (color === undefined || defaultColor === undefined || palette === undefined) {
31
31
  return null;
32
32
  }
33
- return /*#__PURE__*/React.createElement(ToolbarTextColor, {
33
+ return /*#__PURE__*/React.createElement(ToolbarTextColor
34
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
35
+ , {
34
36
  pluginState: {
35
37
  color: color,
36
38
  defaultColor: defaultColor,
@@ -31,7 +31,9 @@ export var PrimaryToolbarComponent = function PrimaryToolbarComponent(_ref) {
31
31
  if (color === undefined || defaultColor === undefined || palette === undefined) {
32
32
  return null;
33
33
  }
34
- return /*#__PURE__*/React.createElement(ToolbarTextColor, {
34
+ return /*#__PURE__*/React.createElement(ToolbarTextColor
35
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
36
+ , {
35
37
  pluginState: {
36
38
  color: color,
37
39
  defaultColor: defaultColor,
@@ -49,11 +49,15 @@ export function TextColorMenuItem(_ref) {
49
49
  testId: "text-color-menu-item"
50
50
  }, /*#__PURE__*/React.createElement(Heading, {
51
51
  size: "xxsmall"
52
- }, formatMessage(messages.textColorTooltip)), /*#__PURE__*/React.createElement(ColorPalette, {
52
+ }, formatMessage(messages.textColorTooltip)), /*#__PURE__*/React.createElement(ColorPalette
53
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
54
+ , {
53
55
  onClick: function onClick(color, _, event) {
54
56
  handleTextColorChange(color, event);
55
57
  },
56
- selectedColor: color || defaultColor,
58
+ selectedColor: color || defaultColor
59
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
60
+ ,
57
61
  paletteOptions: {
58
62
  palette: palette,
59
63
  hexToPaletteColor: hexToEditorTextPaletteColor,
@@ -174,7 +174,9 @@ export var ToolbarTextColor = /*#__PURE__*/function (_React$Component) {
174
174
  handleEscapeKeydown: this.hideonEsc,
175
175
  zIndex: akEditorMenuZIndex,
176
176
  fitWidth: fitWidth,
177
- closeOnTab: true,
177
+ closeOnTab: true
178
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
179
+ ,
178
180
  arrowKeyNavigationProviderOptions: {
179
181
  type: ArrowKeyNavigationType.COLOR,
180
182
  selectedRowIndex: selectedRowIndex,
@@ -218,12 +220,16 @@ export var ToolbarTextColor = /*#__PURE__*/function (_React$Component) {
218
220
  })
219
221
  }, jsx("div", {
220
222
  "data-testid": "text-color-palette"
221
- }, jsx(ColorPalette, {
223
+ }, jsx(ColorPalette
224
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
225
+ , {
222
226
  onClick: function onClick(color) {
223
227
  var _pluginInjectionApi$a;
224
228
  return _this2.changeTextColor(color, pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a === void 0 ? void 0 : _pluginInjectionApi$a.actions, pluginState.disabled);
225
229
  },
226
- selectedColor: pluginState.color,
230
+ selectedColor: pluginState.color
231
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
232
+ ,
227
233
  paletteOptions: {
228
234
  palette: palette,
229
235
  hexToPaletteColor: hexToEditorTextPaletteColor,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-text-color",
3
- "version": "8.1.4",
3
+ "version": "8.1.6",
4
4
  "description": "Text color plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -47,7 +47,7 @@
47
47
  "@atlaskit/platform-feature-flags": "^1.1.0",
48
48
  "@atlaskit/primitives": "^18.0.0",
49
49
  "@atlaskit/theme": "^22.0.0",
50
- "@atlaskit/tmp-editor-statsig": "^43.0.0",
50
+ "@atlaskit/tmp-editor-statsig": "^44.0.0",
51
51
  "@atlaskit/tokens": "^11.1.0",
52
52
  "@babel/runtime": "^7.0.0",
53
53
  "@emotion/react": "^11.7.1"