@atlaskit/editor-plugin-table 1.1.3 → 1.1.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,18 @@
1
1
  # @atlaskit/editor-plugin-table
2
2
 
3
+ ## 1.1.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`2cde23fc462`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2cde23fc462) - This changeset exists because a PR touches these packages in a way that doesn't require a release
8
+
9
+ ## 1.1.4
10
+
11
+ ### Patch Changes
12
+
13
+ - [`3efca940231`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3efca940231) - [ux] ED-16417 fix cell background menu item becomes blue when clicking on color palette from table contextual menu
14
+ - Updated dependencies
15
+
3
16
  ## 1.1.3
4
17
 
5
18
  ### Patch Changes
@@ -18,9 +18,10 @@ var _utils = require("@atlaskit/editor-tables/utils");
18
18
  var _reactIntlNext = require("react-intl-next");
19
19
  var _keymaps = require("@atlaskit/editor-common/keymaps");
20
20
  var _uiColor = require("@atlaskit/editor-common/ui-color");
21
+ var _styles = require("@atlaskit/editor-common/styles");
21
22
  var _uiMenu = require("@atlaskit/editor-common/ui-menu");
22
23
  var _shortcut = require("@atlaskit/editor-shared-styles/shortcut");
23
- var _styles = require("./styles");
24
+ var _styles2 = require("./styles");
24
25
  var _utils2 = require("@atlaskit/editor-common/utils");
25
26
  var _analytics = require("@atlaskit/editor-common/analytics");
26
27
  var _commands = require("../../commands");
@@ -129,8 +130,10 @@ var ContextualMenu = /*#__PURE__*/function (_Component) {
129
130
  value: {
130
131
  name: 'background'
131
132
  },
132
- elemAfter: (0, _react2.jsx)("div", null, (0, _react2.jsx)("div", {
133
- css: (0, _styles.cellColourPreviewStyles)(background),
133
+ elemAfter: (0, _react2.jsx)("div", {
134
+ className: _styles.DropdownMenuSharedCssClassName.SUBMENU
135
+ }, (0, _react2.jsx)("div", {
136
+ css: (0, _styles2.cellColourPreviewStyles)(background),
134
137
  className: _types.TableCssClassName.CONTEXTUAL_MENU_ICON
135
138
  }), isSubmenuOpen && (0, _react2.jsx)("div", {
136
139
  className: _types.TableCssClassName.CONTEXTUAL_SUBMENU,
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "1.1.3",
3
+ "version": "1.1.5",
4
4
  "sideEffects": false
5
5
  }
@@ -6,6 +6,7 @@ import { splitCell } from '@atlaskit/editor-tables/utils';
6
6
  import { defineMessages, injectIntl } from 'react-intl-next';
7
7
  import { addColumnAfter, addRowAfter, backspace, tooltip } from '@atlaskit/editor-common/keymaps';
8
8
  import { ColorPalette, cellBackgroundColorPalette } from '@atlaskit/editor-common/ui-color';
9
+ import { DropdownMenuSharedCssClassName } from '@atlaskit/editor-common/styles';
9
10
  import { DropdownMenu } from '@atlaskit/editor-common/ui-menu';
10
11
  import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
11
12
  import { cellColourPreviewStyles } from './styles';
@@ -115,7 +116,9 @@ export class ContextualMenu extends Component {
115
116
  value: {
116
117
  name: 'background'
117
118
  },
118
- elemAfter: jsx("div", null, jsx("div", {
119
+ elemAfter: jsx("div", {
120
+ className: DropdownMenuSharedCssClassName.SUBMENU
121
+ }, jsx("div", {
119
122
  css: cellColourPreviewStyles(background),
120
123
  className: ClassName.CONTEXTUAL_MENU_ICON
121
124
  }), isSubmenuOpen && jsx("div", {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "1.1.3",
3
+ "version": "1.1.5",
4
4
  "sideEffects": false
5
5
  }
@@ -16,6 +16,7 @@ import { splitCell } from '@atlaskit/editor-tables/utils';
16
16
  import { defineMessages, injectIntl } from 'react-intl-next';
17
17
  import { addColumnAfter, addRowAfter, backspace, tooltip } from '@atlaskit/editor-common/keymaps';
18
18
  import { ColorPalette, cellBackgroundColorPalette } from '@atlaskit/editor-common/ui-color';
19
+ import { DropdownMenuSharedCssClassName } from '@atlaskit/editor-common/styles';
19
20
  import { DropdownMenu } from '@atlaskit/editor-common/ui-menu';
20
21
  import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
21
22
  import { cellColourPreviewStyles } from './styles';
@@ -122,7 +123,9 @@ export var ContextualMenu = /*#__PURE__*/function (_Component) {
122
123
  value: {
123
124
  name: 'background'
124
125
  },
125
- elemAfter: jsx("div", null, jsx("div", {
126
+ elemAfter: jsx("div", {
127
+ className: DropdownMenuSharedCssClassName.SUBMENU
128
+ }, jsx("div", {
126
129
  css: cellColourPreviewStyles(background),
127
130
  className: ClassName.CONTEXTUAL_MENU_ICON
128
131
  }), isSubmenuOpen && jsx("div", {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-table",
3
- "version": "1.1.3",
3
+ "version": "1.1.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.1.3",
3
+ "version": "1.1.5",
4
4
  "description": "Table plugin for the @atlaskit/editor",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -18,13 +18,13 @@
18
18
  "releaseModel": "scheduled"
19
19
  },
20
20
  "dependencies": {
21
- "@atlaskit/adf-schema": "^25.1.0",
22
- "@atlaskit/editor-common": "^72.2.0",
21
+ "@atlaskit/adf-schema": "^25.2.0",
22
+ "@atlaskit/editor-common": "^72.4.0",
23
23
  "@atlaskit/editor-shared-styles": "^2.3.0",
24
24
  "@atlaskit/editor-tables": "^2.2.0",
25
25
  "@atlaskit/icon": "^21.11.0",
26
26
  "@atlaskit/theme": "^12.1.0",
27
- "@atlaskit/tokens": "^1.1.0",
27
+ "@atlaskit/tokens": "^1.2.0",
28
28
  "@atlaskit/tooltip": "^17.6.0",
29
29
  "@babel/runtime": "^7.0.0",
30
30
  "@emotion/react": "^11.7.1",
@@ -49,9 +49,9 @@
49
49
  "react-intl-next": "npm:react-intl@^5.18.1"
50
50
  },
51
51
  "devDependencies": {
52
- "@atlaskit/analytics-next": "^8.3.3",
52
+ "@atlaskit/analytics-next": "^9.0.0",
53
53
  "@atlaskit/button": "^16.5.0",
54
- "@atlaskit/editor-core": "^179.0.0",
54
+ "@atlaskit/editor-core": "^179.1.0",
55
55
  "@atlaskit/editor-test-helpers": "^18.0.0",
56
56
  "@atlaskit/link-provider": "^1.4.0",
57
57
  "@atlaskit/logo": "^13.11.0",
@@ -16,7 +16,7 @@ import {
16
16
  BrowserTestCase(
17
17
  'Delete last table column in full-width mode',
18
18
  // Only Chrome has logging support in BrowserStack now
19
- { skip: ['safari'] },
19
+ { skip: [] },
20
20
  async (client: any, testName: string) => {
21
21
  const page = await goToEditorTestingWDExample(
22
22
  client,
@@ -330,7 +330,7 @@ BrowserTestCase(
330
330
 
331
331
  BrowserTestCase(
332
332
  'should the context menu disabled item stay open when clicked.',
333
- { skip: ['safari'] }, // The test does not pass on CI but works on physical browser
333
+ { skip: [] },
334
334
  async (client: any, testName: string) => {
335
335
  const page = await goToEditorTestingWDExample(
336
336
  client,
@@ -20,6 +20,7 @@ import {
20
20
  ColorPalette,
21
21
  cellBackgroundColorPalette,
22
22
  } from '@atlaskit/editor-common/ui-color';
23
+ import { DropdownMenuSharedCssClassName } from '@atlaskit/editor-common/styles';
23
24
 
24
25
  import { DropdownMenu } from '@atlaskit/editor-common/ui-menu';
25
26
 
@@ -220,7 +221,7 @@ export class ContextualMenu extends Component<
220
221
  content: formatMessage(messages.cellBackground),
221
222
  value: { name: 'background' },
222
223
  elemAfter: (
223
- <div>
224
+ <div className={DropdownMenuSharedCssClassName.SUBMENU}>
224
225
  <div
225
226
  css={cellColourPreviewStyles(background)}
226
227
  className={ClassName.CONTEXTUAL_MENU_ICON}