@atlaskit/editor-plugin-table 1.2.6 → 1.2.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/plugins/table/ui/FloatingContextualMenu/ContextualMenu.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/plugins/table/ui/FloatingContextualMenu/ContextualMenu.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/plugins/table/ui/FloatingContextualMenu/ContextualMenu.js +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +1 -1
- package/src/plugins/table/ui/FloatingContextualMenu/ContextualMenu.tsx +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 1.2.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`55b4a026119`](https://bitbucket.org/atlassian/atlassian-frontend/commits/55b4a026119) - [ux] ED-17710 Cellbackground button in context menu is tokenised.
|
|
8
|
+
|
|
3
9
|
## 1.2.6
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -128,7 +128,7 @@ var ContextualMenu = /*#__PURE__*/function (_Component) {
|
|
|
128
128
|
if (allowBackgroundColor) {
|
|
129
129
|
var _node$attrs;
|
|
130
130
|
var node = isOpen && targetCellPosition ? state.doc.nodeAt(targetCellPosition) : null;
|
|
131
|
-
var background = (node === null || node === void 0 ? void 0 : (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.background) || '#ffffff';
|
|
131
|
+
var background = (0, _editorPalette.hexToEditorBackgroundPaletteColor)((node === null || node === void 0 ? void 0 : (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.background) || '#ffffff');
|
|
132
132
|
items.push({
|
|
133
133
|
content: formatMessage(messages.cellBackground),
|
|
134
134
|
value: {
|
package/dist/cjs/version.json
CHANGED
|
@@ -115,7 +115,7 @@ export class ContextualMenu extends Component {
|
|
|
115
115
|
if (allowBackgroundColor) {
|
|
116
116
|
var _node$attrs;
|
|
117
117
|
const node = isOpen && targetCellPosition ? state.doc.nodeAt(targetCellPosition) : null;
|
|
118
|
-
const background = (node === null || node === void 0 ? void 0 : (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.background) || '#ffffff';
|
|
118
|
+
const background = hexToEditorBackgroundPaletteColor((node === null || node === void 0 ? void 0 : (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.background) || '#ffffff');
|
|
119
119
|
items.push({
|
|
120
120
|
content: formatMessage(messages.cellBackground),
|
|
121
121
|
value: {
|
package/dist/es2019/version.json
CHANGED
|
@@ -121,7 +121,7 @@ export var ContextualMenu = /*#__PURE__*/function (_Component) {
|
|
|
121
121
|
if (allowBackgroundColor) {
|
|
122
122
|
var _node$attrs;
|
|
123
123
|
var node = isOpen && targetCellPosition ? state.doc.nodeAt(targetCellPosition) : null;
|
|
124
|
-
var background = (node === null || node === void 0 ? void 0 : (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.background) || '#ffffff';
|
|
124
|
+
var background = hexToEditorBackgroundPaletteColor((node === null || node === void 0 ? void 0 : (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.background) || '#ffffff');
|
|
125
125
|
items.push({
|
|
126
126
|
content: formatMessage(messages.cellBackground),
|
|
127
127
|
value: {
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -230,7 +230,9 @@ export class ContextualMenu extends Component<
|
|
|
230
230
|
isOpen && targetCellPosition
|
|
231
231
|
? state.doc.nodeAt(targetCellPosition)
|
|
232
232
|
: null;
|
|
233
|
-
const background =
|
|
233
|
+
const background = hexToEditorBackgroundPaletteColor(
|
|
234
|
+
node?.attrs?.background || '#ffffff',
|
|
235
|
+
);
|
|
234
236
|
items.push({
|
|
235
237
|
content: formatMessage(messages.cellBackground),
|
|
236
238
|
value: { name: 'background' },
|