@atlaskit/editor-plugin-table 10.11.9 → 10.11.10
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,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 10.11.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#165779](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/165779)
|
|
8
|
+
[`3d472e56bc200`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3d472e56bc200) -
|
|
9
|
+
[ux] ED-27698: Fixed table width issue in inline comment table
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 10.11.9
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -47,7 +47,7 @@ var tableAttributes = function tableAttributes(node) {
|
|
|
47
47
|
};
|
|
48
48
|
};
|
|
49
49
|
var getInlineWidth = function getInlineWidth(node, options, state, pos, allowTableResizing) {
|
|
50
|
-
if (!node.attrs.width && options !== null && options !== void 0 && options.isCommentEditor && allowTableResizing) {
|
|
50
|
+
if (!node.attrs.width && options !== null && options !== void 0 && options.isChromelessEditor && (0, _platformFeatureFlags.fg)('platform_editor_fix_table_width_inline_comment') || !node.attrs.width && options !== null && options !== void 0 && options.isCommentEditor && allowTableResizing) {
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
53
53
|
|
|
@@ -29,7 +29,7 @@ const tableAttributes = node => {
|
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
31
|
const getInlineWidth = (node, options, state, pos, allowTableResizing) => {
|
|
32
|
-
if (!node.attrs.width && options !== null && options !== void 0 && options.isCommentEditor && allowTableResizing) {
|
|
32
|
+
if (!node.attrs.width && options !== null && options !== void 0 && options.isChromelessEditor && fg('platform_editor_fix_table_width_inline_comment') || !node.attrs.width && options !== null && options !== void 0 && options.isCommentEditor && allowTableResizing) {
|
|
33
33
|
return;
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -40,7 +40,7 @@ var tableAttributes = function tableAttributes(node) {
|
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
42
|
var getInlineWidth = function getInlineWidth(node, options, state, pos, allowTableResizing) {
|
|
43
|
-
if (!node.attrs.width && options !== null && options !== void 0 && options.isCommentEditor && allowTableResizing) {
|
|
43
|
+
if (!node.attrs.width && options !== null && options !== void 0 && options.isChromelessEditor && fg('platform_editor_fix_table_width_inline_comment') || !node.attrs.width && options !== null && options !== void 0 && options.isCommentEditor && allowTableResizing) {
|
|
44
44
|
return;
|
|
45
45
|
}
|
|
46
46
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-table",
|
|
3
|
-
"version": "10.11.
|
|
3
|
+
"version": "10.11.10",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@atlaskit/editor-plugin-batch-attribute-updates": "^2.1.0",
|
|
40
40
|
"@atlaskit/editor-plugin-content-insertion": "^2.1.0",
|
|
41
41
|
"@atlaskit/editor-plugin-editor-viewmode": "^4.0.0",
|
|
42
|
-
"@atlaskit/editor-plugin-extension": "5.5.
|
|
42
|
+
"@atlaskit/editor-plugin-extension": "5.5.4",
|
|
43
43
|
"@atlaskit/editor-plugin-guideline": "^2.0.0",
|
|
44
44
|
"@atlaskit/editor-plugin-interaction": "^2.0.0",
|
|
45
45
|
"@atlaskit/editor-plugin-selection": "^2.2.0",
|
|
@@ -55,9 +55,9 @@
|
|
|
55
55
|
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^1.1.0",
|
|
56
56
|
"@atlaskit/primitives": "^14.8.0",
|
|
57
57
|
"@atlaskit/theme": "^18.0.0",
|
|
58
|
-
"@atlaskit/tmp-editor-statsig": "^5.
|
|
58
|
+
"@atlaskit/tmp-editor-statsig": "^5.14.0",
|
|
59
59
|
"@atlaskit/toggle": "^15.0.0",
|
|
60
|
-
"@atlaskit/tokens": "^5.
|
|
60
|
+
"@atlaskit/tokens": "^5.1.0",
|
|
61
61
|
"@atlaskit/tooltip": "^20.3.0",
|
|
62
62
|
"@babel/runtime": "^7.0.0",
|
|
63
63
|
"@emotion/react": "^11.7.1",
|
|
@@ -205,6 +205,9 @@
|
|
|
205
205
|
"platform_editor_table_drag_menu_flickers_fix": {
|
|
206
206
|
"type": "boolean"
|
|
207
207
|
},
|
|
208
|
+
"platform_editor_fix_table_width_inline_comment": {
|
|
209
|
+
"type": "boolean"
|
|
210
|
+
},
|
|
208
211
|
"platform_editor_table_last_col_drag_handle_fix": {
|
|
209
212
|
"type": "boolean"
|
|
210
213
|
},
|
package/src/nodeviews/table.tsx
CHANGED
|
@@ -60,7 +60,12 @@ const getInlineWidth = (
|
|
|
60
60
|
pos: number | undefined,
|
|
61
61
|
allowTableResizing?: boolean,
|
|
62
62
|
): number | undefined => {
|
|
63
|
-
if (
|
|
63
|
+
if (
|
|
64
|
+
(!node.attrs.width &&
|
|
65
|
+
options?.isChromelessEditor &&
|
|
66
|
+
fg('platform_editor_fix_table_width_inline_comment')) ||
|
|
67
|
+
(!node.attrs.width && options?.isCommentEditor && allowTableResizing)
|
|
68
|
+
) {
|
|
64
69
|
return;
|
|
65
70
|
}
|
|
66
71
|
|