@atlaskit/editor-plugin-table 24.0.0 → 24.0.1
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 +10 -0
- package/dist/cjs/nodeviews/table.js +1 -1
- package/dist/cjs/ui/FloatingContextualButton/styles.js +5 -2
- package/dist/es2019/nodeviews/table.js +1 -1
- package/dist/es2019/ui/FloatingContextualButton/styles.js +5 -2
- package/dist/esm/nodeviews/table.js +1 -1
- package/dist/esm/ui/FloatingContextualButton/styles.js +5 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 24.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`52a892635e9a0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/52a892635e9a0) -
|
|
8
|
+
Update border-radius for cell menu button to 4px
|
|
9
|
+
- [`11006329a22d1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/11006329a22d1) -
|
|
10
|
+
Clean up experiment `platform_editor_lovability_distribute_column_fix`
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 24.0.0
|
|
4
14
|
|
|
5
15
|
### Major Changes
|
|
@@ -303,7 +303,7 @@ var TableView = exports.default = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
303
303
|
if ((0, _typeof2.default)(node.attrs) !== (0, _typeof2.default)(nextNode.attrs)) {
|
|
304
304
|
return true;
|
|
305
305
|
}
|
|
306
|
-
if ((0, _nodes.tablesHaveDifferentColumnWidths)(node, nextNode)
|
|
306
|
+
if ((0, _nodes.tablesHaveDifferentColumnWidths)(node, nextNode)) {
|
|
307
307
|
return true;
|
|
308
308
|
}
|
|
309
309
|
var attrKeys = Object.keys(node.attrs);
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.tableFloatingCellButtonStyles = exports.tableFloatingCellButtonSelectedStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
8
9
|
var _consts = require("../consts");
|
|
9
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
11
|
|
|
@@ -14,7 +15,8 @@ var tableFloatingCellButtonStyles = exports.tableFloatingCellButtonStyles = func
|
|
|
14
15
|
'> div': {
|
|
15
16
|
// Sits behind button to provide surface-color background
|
|
16
17
|
background: "var(--ds-surface, #FFFFFF)",
|
|
17
|
-
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
19
|
+
borderRadius: (0, _expValEquals.expValEquals)('platform_editor_table_q4_loveability', 'isEnabled', true) ? "var(--ds-radius-small, 4px)" : "var(--ds-radius-small, 3px)",
|
|
18
20
|
display: 'flex',
|
|
19
21
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
20
22
|
height: "".concat(_consts.contextualMenuTriggerSize + 2, "px"),
|
|
@@ -27,7 +29,8 @@ var tableFloatingCellButtonStyles = exports.tableFloatingCellButtonStyles = func
|
|
|
27
29
|
flexDirection: 'column',
|
|
28
30
|
margin: "var(--ds-space-025, 2px)",
|
|
29
31
|
outline: "2px solid ".concat("var(--ds-surface, #FFFFFF)"),
|
|
30
|
-
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
33
|
+
borderRadius: (0, _expValEquals.expValEquals)('platform_editor_table_q4_loveability', 'isEnabled', true) ? "var(--ds-radius-xsmall, 2px)" : '1px',
|
|
31
34
|
padding: 0,
|
|
32
35
|
height: 'calc(100% - 4px)',
|
|
33
36
|
display: 'flex'
|
|
@@ -262,7 +262,7 @@ export default class TableView extends ReactNodeView {
|
|
|
262
262
|
if (typeof node.attrs !== typeof nextNode.attrs) {
|
|
263
263
|
return true;
|
|
264
264
|
}
|
|
265
|
-
if (tablesHaveDifferentColumnWidths(node, nextNode)
|
|
265
|
+
if (tablesHaveDifferentColumnWidths(node, nextNode)) {
|
|
266
266
|
return true;
|
|
267
267
|
}
|
|
268
268
|
const attrKeys = Object.keys(node.attrs);
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
3
4
|
import { contextualMenuTriggerSize } from '../consts';
|
|
4
5
|
export const tableFloatingCellButtonStyles = () => css({
|
|
5
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
6
7
|
'> div': {
|
|
7
8
|
// Sits behind button to provide surface-color background
|
|
8
9
|
background: "var(--ds-surface, #FFFFFF)",
|
|
9
|
-
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
11
|
+
borderRadius: expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? "var(--ds-radius-small, 4px)" : "var(--ds-radius-small, 3px)",
|
|
10
12
|
display: 'flex',
|
|
11
13
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
12
14
|
height: `${contextualMenuTriggerSize + 2}px`,
|
|
@@ -19,7 +21,8 @@ export const tableFloatingCellButtonStyles = () => css({
|
|
|
19
21
|
flexDirection: 'column',
|
|
20
22
|
margin: "var(--ds-space-025, 2px)",
|
|
21
23
|
outline: `2px solid ${"var(--ds-surface, #FFFFFF)"}`,
|
|
22
|
-
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
25
|
+
borderRadius: expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? "var(--ds-radius-xsmall, 2px)" : '1px',
|
|
23
26
|
padding: 0,
|
|
24
27
|
height: 'calc(100% - 4px)',
|
|
25
28
|
display: 'flex'
|
|
@@ -296,7 +296,7 @@ var TableView = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
296
296
|
if (_typeof(node.attrs) !== _typeof(nextNode.attrs)) {
|
|
297
297
|
return true;
|
|
298
298
|
}
|
|
299
|
-
if (tablesHaveDifferentColumnWidths(node, nextNode)
|
|
299
|
+
if (tablesHaveDifferentColumnWidths(node, nextNode)) {
|
|
300
300
|
return true;
|
|
301
301
|
}
|
|
302
302
|
var attrKeys = Object.keys(node.attrs);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
3
4
|
import { contextualMenuTriggerSize } from '../consts';
|
|
4
5
|
export var tableFloatingCellButtonStyles = function tableFloatingCellButtonStyles() {
|
|
5
6
|
return css({
|
|
@@ -7,7 +8,8 @@ export var tableFloatingCellButtonStyles = function tableFloatingCellButtonStyle
|
|
|
7
8
|
'> div': {
|
|
8
9
|
// Sits behind button to provide surface-color background
|
|
9
10
|
background: "var(--ds-surface, #FFFFFF)",
|
|
10
|
-
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
12
|
+
borderRadius: expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? "var(--ds-radius-small, 4px)" : "var(--ds-radius-small, 3px)",
|
|
11
13
|
display: 'flex',
|
|
12
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
13
15
|
height: "".concat(contextualMenuTriggerSize + 2, "px"),
|
|
@@ -20,7 +22,8 @@ export var tableFloatingCellButtonStyles = function tableFloatingCellButtonStyle
|
|
|
20
22
|
flexDirection: 'column',
|
|
21
23
|
margin: "var(--ds-space-025, 2px)",
|
|
22
24
|
outline: "2px solid ".concat("var(--ds-surface, #FFFFFF)"),
|
|
23
|
-
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
26
|
+
borderRadius: expValEquals('platform_editor_table_q4_loveability', 'isEnabled', true) ? "var(--ds-radius-xsmall, 2px)" : '1px',
|
|
24
27
|
padding: 0,
|
|
25
28
|
height: 'calc(100% - 4px)',
|
|
26
29
|
display: 'flex'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "24.0.
|
|
3
|
+
"version": "24.0.1",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@atlaskit/editor-plugin-batch-attribute-updates": "^12.0.0",
|
|
30
30
|
"@atlaskit/editor-plugin-content-insertion": "^12.0.0",
|
|
31
31
|
"@atlaskit/editor-plugin-editor-viewmode": "^14.0.0",
|
|
32
|
-
"@atlaskit/editor-plugin-extension": "15.0.
|
|
32
|
+
"@atlaskit/editor-plugin-extension": "15.0.1",
|
|
33
33
|
"@atlaskit/editor-plugin-guideline": "^12.0.0",
|
|
34
34
|
"@atlaskit/editor-plugin-interaction": "^21.0.0",
|
|
35
35
|
"@atlaskit/editor-plugin-limited-mode": "^9.0.0",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^3.0.0",
|
|
53
53
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^2.0.0",
|
|
54
54
|
"@atlaskit/primitives": "^20.0.0",
|
|
55
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
55
|
+
"@atlaskit/tmp-editor-statsig": "^105.0.0",
|
|
56
56
|
"@atlaskit/toggle": "^17.0.0",
|
|
57
57
|
"@atlaskit/tokens": "^14.0.0",
|
|
58
58
|
"@atlaskit/tooltip": "^23.0.0",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"uuid": "^3.1.0"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
|
-
"@atlaskit/editor-common": "^116.
|
|
70
|
+
"@atlaskit/editor-common": "^116.1.0",
|
|
71
71
|
"react": "^18.2.0",
|
|
72
72
|
"react-dom": "^18.2.0",
|
|
73
73
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|