@atlaskit/editor-plugin-table 1.2.4 → 1.2.5

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,11 @@
1
1
  # @atlaskit/editor-plugin-table
2
2
 
3
+ ## 1.2.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`115a119a42c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/115a119a42c) - [ux] ED-17710 Color palette in table context menu is tokenised.
8
+
3
9
  ## 1.2.4
4
10
 
5
11
  ### Patch Changes
@@ -14,6 +14,7 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
14
14
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
15
15
  var _react = require("react");
16
16
  var _react2 = require("@emotion/react");
17
+ var _editorPalette = require("@atlaskit/editor-palette");
17
18
  var _utils = require("@atlaskit/editor-tables/utils");
18
19
  var _reactIntlNext = require("react-intl-next");
19
20
  var _keymaps = require("@atlaskit/editor-common/keymaps");
@@ -148,6 +149,7 @@ var ContextualMenu = /*#__PURE__*/function (_Component) {
148
149
  paletteOptions: {
149
150
  palette: _uiColor.cellBackgroundColorPalette,
150
151
  paletteColorTooltipMessages: _uiColor.backgroundPaletteTooltipMessages,
152
+ hexToPaletteColor: _editorPalette.hexToEditorBackgroundPaletteColor,
151
153
  // We did not want to create new FF or update
152
154
  // useSomewhatSemanticTextColorNames name
153
155
  // because it is temporary and require extra work.
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "sideEffects": false
5
5
  }
@@ -2,6 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  /** @jsx jsx */
3
3
  import { Component } from 'react';
4
4
  import { jsx } from '@emotion/react';
5
+ import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
5
6
  import { splitCell } from '@atlaskit/editor-tables/utils';
6
7
  import { defineMessages, injectIntl } from 'react-intl-next';
7
8
  import { addColumnAfter, addRowAfter, backspace, tooltip } from '@atlaskit/editor-common/keymaps';
@@ -135,6 +136,7 @@ export class ContextualMenu extends Component {
135
136
  paletteOptions: {
136
137
  palette: cellBackgroundColorPalette,
137
138
  paletteColorTooltipMessages: backgroundPaletteTooltipMessages,
139
+ hexToPaletteColor: hexToEditorBackgroundPaletteColor,
138
140
  // We did not want to create new FF or update
139
141
  // useSomewhatSemanticTextColorNames name
140
142
  // because it is temporary and require extra work.
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "sideEffects": false
5
5
  }
@@ -12,6 +12,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
12
12
  /** @jsx jsx */
13
13
  import { Component } from 'react';
14
14
  import { jsx } from '@emotion/react';
15
+ import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
15
16
  import { splitCell } from '@atlaskit/editor-tables/utils';
16
17
  import { defineMessages, injectIntl } from 'react-intl-next';
17
18
  import { addColumnAfter, addRowAfter, backspace, tooltip } from '@atlaskit/editor-common/keymaps';
@@ -141,6 +142,7 @@ export var ContextualMenu = /*#__PURE__*/function (_Component) {
141
142
  paletteOptions: {
142
143
  palette: cellBackgroundColorPalette,
143
144
  paletteColorTooltipMessages: backgroundPaletteTooltipMessages,
145
+ hexToPaletteColor: hexToEditorBackgroundPaletteColor,
144
146
  // We did not want to create new FF or update
145
147
  // useSomewhatSemanticTextColorNames name
146
148
  // because it is temporary and require extra work.
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -19,7 +19,8 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "@atlaskit/adf-schema": "^25.5.0",
22
- "@atlaskit/editor-common": "^72.8.0",
22
+ "@atlaskit/editor-common": "^72.9.0",
23
+ "@atlaskit/editor-palette": "1.3.0",
23
24
  "@atlaskit/editor-shared-styles": "^2.3.0",
24
25
  "@atlaskit/editor-tables": "^2.2.0",
25
26
  "@atlaskit/icon": "^21.11.0",
@@ -55,7 +56,7 @@
55
56
  "@atlaskit/editor-plugin-feature-flags": "^0.0.3",
56
57
  "@atlaskit/editor-test-helpers": "^18.2.0",
57
58
  "@atlaskit/link-provider": "^1.5.0",
58
- "@atlaskit/logo": "^13.12.0",
59
+ "@atlaskit/logo": "^13.13.0",
59
60
  "@atlaskit/media-integration-test-helpers": "^2.6.0",
60
61
  "@atlaskit/synchrony-test-helpers": "^2.3.0",
61
62
  "@atlaskit/util-data-test": "^17.7.0",
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4c5e3b7ade5e92b861452ef14e9774592b6252c91a89e955a33e56e3678cf54c
3
- size 20560
2
+ oid sha256:7e4711c029f049a837051d496f231798f2242062e12e31917fa6ea29e6b8c642
3
+ size 20453
@@ -1,3 +1,3 @@
1
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:19e5db9586d2f5b635464786308235a3da2adda2bea5ab7dcde7a50d901cd869
3
- size 19731
2
+ oid sha256:a063075cc5504c85ba5809ece337a3a687f58a74fdb9e2b820e8ab6d234b8dd7
3
+ size 19687
@@ -38,8 +38,7 @@ describe('Snapshot Test: Table', () => {
38
38
  });
39
39
 
40
40
  describe('sticky header', () => {
41
- // FIXME: This test was automatically skipped due to failure on 14/02/2023: https://product-fabric.atlassian.net/browse/ED-16900
42
- it.skip('should align with table cell when active', async () => {
41
+ it('should align with table cell when active', async () => {
43
42
  await initEditor(page, stickyHeaderWithHorizontalScroll);
44
43
 
45
44
  await clickFirstCell(page, true);
@@ -2,6 +2,7 @@
2
2
  import { Component } from 'react';
3
3
  import { jsx } from '@emotion/react';
4
4
  import { Rect } from '@atlaskit/editor-tables/table-map';
5
+ import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
5
6
  import { splitCell } from '@atlaskit/editor-tables/utils';
6
7
  import { EditorView } from 'prosemirror-view';
7
8
  import {
@@ -252,6 +253,7 @@ export class ContextualMenu extends Component<
252
253
  palette: cellBackgroundColorPalette,
253
254
  paletteColorTooltipMessages:
254
255
  backgroundPaletteTooltipMessages,
256
+ hexToPaletteColor: hexToEditorBackgroundPaletteColor,
255
257
  // We did not want to create new FF or update
256
258
  // useSomewhatSemanticTextColorNames name
257
259
  // because it is temporary and require extra work.