@atlaskit/editor-plugin-text-color 8.1.6 → 8.1.7
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 +6 -0
- package/dist/cjs/ui/FloatingToolbarComponent.js +1 -1
- package/dist/cjs/ui/PrimaryToolbarComponent.js +1 -1
- package/dist/cjs/ui/TextColorMenuItem.js +2 -2
- package/dist/cjs/ui/ToolbarTextColor/index.js +3 -3
- package/dist/es2019/ui/FloatingToolbarComponent.js +1 -1
- package/dist/es2019/ui/PrimaryToolbarComponent.js +1 -1
- package/dist/es2019/ui/TextColorMenuItem.js +2 -2
- package/dist/es2019/ui/ToolbarTextColor/index.js +3 -3
- package/dist/esm/ui/FloatingToolbarComponent.js +1 -1
- package/dist/esm/ui/PrimaryToolbarComponent.js +1 -1
- package/dist/esm/ui/TextColorMenuItem.js +2 -2
- package/dist/esm/ui/ToolbarTextColor/index.js +3 -3
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -38,7 +38,7 @@ var FloatingToolbarComponent = exports.FloatingToolbarComponent = function Float
|
|
|
38
38
|
return null;
|
|
39
39
|
}
|
|
40
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)
|
|
41
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
42
42
|
, {
|
|
43
43
|
pluginState: {
|
|
44
44
|
color: color,
|
|
@@ -39,7 +39,7 @@ var PrimaryToolbarComponent = exports.PrimaryToolbarComponent = function Primary
|
|
|
39
39
|
return null;
|
|
40
40
|
}
|
|
41
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)
|
|
42
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
43
43
|
, {
|
|
44
44
|
pluginState: {
|
|
45
45
|
color: color,
|
|
@@ -59,13 +59,13 @@ function TextColorMenuItem(_ref) {
|
|
|
59
59
|
}, /*#__PURE__*/_react.default.createElement(_heading.default, {
|
|
60
60
|
size: "xxsmall"
|
|
61
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)
|
|
62
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
63
63
|
, {
|
|
64
64
|
onClick: function onClick(color, _, event) {
|
|
65
65
|
handleTextColorChange(color, event);
|
|
66
66
|
},
|
|
67
67
|
selectedColor: color || defaultColor
|
|
68
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
68
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
69
69
|
,
|
|
70
70
|
paletteOptions: {
|
|
71
71
|
palette: palette,
|
|
@@ -179,7 +179,7 @@ var ToolbarTextColor = exports.ToolbarTextColor = /*#__PURE__*/function (_React$
|
|
|
179
179
|
zIndex: _editorSharedStyles.akEditorMenuZIndex,
|
|
180
180
|
fitWidth: fitWidth,
|
|
181
181
|
closeOnTab: true
|
|
182
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
182
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
183
183
|
,
|
|
184
184
|
arrowKeyNavigationProviderOptions: {
|
|
185
185
|
type: _uiMenu.ArrowKeyNavigationType.COLOR,
|
|
@@ -225,14 +225,14 @@ var ToolbarTextColor = exports.ToolbarTextColor = /*#__PURE__*/function (_React$
|
|
|
225
225
|
}, (0, _react2.jsx)("div", {
|
|
226
226
|
"data-testid": "text-color-palette"
|
|
227
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)
|
|
228
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
229
229
|
, {
|
|
230
230
|
onClick: function onClick(color) {
|
|
231
231
|
var _pluginInjectionApi$a;
|
|
232
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);
|
|
233
233
|
},
|
|
234
234
|
selectedColor: pluginState.color
|
|
235
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
235
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
236
236
|
,
|
|
237
237
|
paletteOptions: {
|
|
238
238
|
palette: palette,
|
|
@@ -33,7 +33,7 @@ export const FloatingToolbarComponent = ({
|
|
|
33
33
|
return null;
|
|
34
34
|
}
|
|
35
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)
|
|
36
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
37
37
|
, {
|
|
38
38
|
pluginState: {
|
|
39
39
|
color,
|
|
@@ -34,7 +34,7 @@ export const PrimaryToolbarComponent = ({
|
|
|
34
34
|
return null;
|
|
35
35
|
}
|
|
36
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)
|
|
37
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
38
38
|
, {
|
|
39
39
|
pluginState: {
|
|
40
40
|
color,
|
|
@@ -54,13 +54,13 @@ export function TextColorMenuItem({
|
|
|
54
54
|
}, /*#__PURE__*/React.createElement(Heading, {
|
|
55
55
|
size: "xxsmall"
|
|
56
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)
|
|
57
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
58
58
|
, {
|
|
59
59
|
onClick: (color, _, event) => {
|
|
60
60
|
handleTextColorChange(color, event);
|
|
61
61
|
},
|
|
62
62
|
selectedColor: color || defaultColor
|
|
63
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
63
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
64
64
|
,
|
|
65
65
|
paletteOptions: {
|
|
66
66
|
palette: palette,
|
|
@@ -159,7 +159,7 @@ export class ToolbarTextColor extends React.Component {
|
|
|
159
159
|
zIndex: akEditorMenuZIndex,
|
|
160
160
|
fitWidth: fitWidth,
|
|
161
161
|
closeOnTab: true
|
|
162
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
162
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
163
163
|
,
|
|
164
164
|
arrowKeyNavigationProviderOptions: {
|
|
165
165
|
type: ArrowKeyNavigationType.COLOR,
|
|
@@ -205,14 +205,14 @@ export class ToolbarTextColor extends React.Component {
|
|
|
205
205
|
}, jsx("div", {
|
|
206
206
|
"data-testid": "text-color-palette"
|
|
207
207
|
}, jsx(ColorPalette
|
|
208
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
208
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
209
209
|
, {
|
|
210
210
|
onClick: color => {
|
|
211
211
|
var _pluginInjectionApi$a;
|
|
212
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);
|
|
213
213
|
},
|
|
214
214
|
selectedColor: pluginState.color
|
|
215
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
215
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
216
216
|
,
|
|
217
217
|
paletteOptions: {
|
|
218
218
|
palette,
|
|
@@ -31,7 +31,7 @@ export var FloatingToolbarComponent = function FloatingToolbarComponent(_ref) {
|
|
|
31
31
|
return null;
|
|
32
32
|
}
|
|
33
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)
|
|
34
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
35
35
|
, {
|
|
36
36
|
pluginState: {
|
|
37
37
|
color: color,
|
|
@@ -32,7 +32,7 @@ export var PrimaryToolbarComponent = function PrimaryToolbarComponent(_ref) {
|
|
|
32
32
|
return null;
|
|
33
33
|
}
|
|
34
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)
|
|
35
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
36
36
|
, {
|
|
37
37
|
pluginState: {
|
|
38
38
|
color: color,
|
|
@@ -50,13 +50,13 @@ export function TextColorMenuItem(_ref) {
|
|
|
50
50
|
}, /*#__PURE__*/React.createElement(Heading, {
|
|
51
51
|
size: "xxsmall"
|
|
52
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)
|
|
53
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
54
54
|
, {
|
|
55
55
|
onClick: function onClick(color, _, event) {
|
|
56
56
|
handleTextColorChange(color, event);
|
|
57
57
|
},
|
|
58
58
|
selectedColor: color || defaultColor
|
|
59
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
59
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
60
60
|
,
|
|
61
61
|
paletteOptions: {
|
|
62
62
|
palette: palette,
|
|
@@ -175,7 +175,7 @@ export var ToolbarTextColor = /*#__PURE__*/function (_React$Component) {
|
|
|
175
175
|
zIndex: akEditorMenuZIndex,
|
|
176
176
|
fitWidth: fitWidth,
|
|
177
177
|
closeOnTab: true
|
|
178
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
178
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
179
179
|
,
|
|
180
180
|
arrowKeyNavigationProviderOptions: {
|
|
181
181
|
type: ArrowKeyNavigationType.COLOR,
|
|
@@ -221,14 +221,14 @@ export var ToolbarTextColor = /*#__PURE__*/function (_React$Component) {
|
|
|
221
221
|
}, jsx("div", {
|
|
222
222
|
"data-testid": "text-color-palette"
|
|
223
223
|
}, jsx(ColorPalette
|
|
224
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
224
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
225
225
|
, {
|
|
226
226
|
onClick: function onClick(color) {
|
|
227
227
|
var _pluginInjectionApi$a;
|
|
228
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);
|
|
229
229
|
},
|
|
230
230
|
selectedColor: pluginState.color
|
|
231
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
231
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
232
232
|
,
|
|
233
233
|
paletteOptions: {
|
|
234
234
|
palette: palette,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-text-color",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.7",
|
|
4
4
|
"description": "Text color plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -47,13 +47,13 @@
|
|
|
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": "^
|
|
50
|
+
"@atlaskit/tmp-editor-statsig": "^45.0.0",
|
|
51
51
|
"@atlaskit/tokens": "^11.1.0",
|
|
52
52
|
"@babel/runtime": "^7.0.0",
|
|
53
53
|
"@emotion/react": "^11.7.1"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@atlaskit/editor-common": "^112.
|
|
56
|
+
"@atlaskit/editor-common": "^112.8.0",
|
|
57
57
|
"react": "^18.2.0",
|
|
58
58
|
"react-dom": "^18.2.0",
|
|
59
59
|
"react-intl-next": "npm:react-intl@^5.18.1"
|