@atlaskit/editor-plugin-table 7.25.6 → 7.25.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 +7 -0
- package/dist/cjs/nodeviews/TableContainer.js +2 -9
- package/dist/cjs/nodeviews/table-container-styles.js +18 -0
- package/dist/cjs/toDOM.js +10 -1
- package/dist/es2019/nodeviews/TableContainer.js +2 -9
- package/dist/es2019/nodeviews/table-container-styles.js +10 -0
- package/dist/es2019/toDOM.js +4 -1
- package/dist/esm/nodeviews/TableContainer.js +2 -9
- package/dist/esm/nodeviews/table-container-styles.js +12 -0
- package/dist/esm/toDOM.js +10 -1
- package/dist/types/nodeviews/table-container-styles.d.ts +5 -0
- package/dist/types-ts4.5/nodeviews/table-container-styles.d.ts +5 -0
- package/package.json +1 -1
- package/src/nodeviews/TableContainer.tsx +2 -5
- package/src/nodeviews/table-container-styles.ts +9 -0
- package/src/toDOM.ts +8 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 7.25.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`ccee8f7d5cdfe`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ccee8f7d5cdfe) -
|
|
8
|
+
ED-24623 Added alignment logic to fallback DOM
|
|
9
|
+
|
|
3
10
|
## 7.25.6
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -18,6 +18,7 @@ var _pluginFactory = require("../pm-plugins/plugin-factory");
|
|
|
18
18
|
var _utils = require("../pm-plugins/table-resizing/utils");
|
|
19
19
|
var _types = require("../types");
|
|
20
20
|
var _alignment = require("../utils/alignment");
|
|
21
|
+
var _tableContainerStyles = require("./table-container-styles");
|
|
21
22
|
var _TableResizer = require("./TableResizer");
|
|
22
23
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
23
24
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -39,14 +40,6 @@ var InnerContainer = exports.InnerContainer = /*#__PURE__*/(0, _react.forwardRef
|
|
|
39
40
|
"data-testid": "table-container"
|
|
40
41
|
}, children);
|
|
41
42
|
});
|
|
42
|
-
var centerAlignStyle = {
|
|
43
|
-
display: 'flex',
|
|
44
|
-
justifyContent: 'center'
|
|
45
|
-
};
|
|
46
|
-
var leftAlignStyle = {
|
|
47
|
-
display: 'flex',
|
|
48
|
-
justifyContent: 'flex-start'
|
|
49
|
-
};
|
|
50
43
|
var AlignmentTableContainer = function AlignmentTableContainer(_ref2) {
|
|
51
44
|
var node = _ref2.node,
|
|
52
45
|
children = _ref2.children,
|
|
@@ -77,7 +70,7 @@ var AlignmentTableContainer = function AlignmentTableContainer(_ref2) {
|
|
|
77
70
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
78
71
|
}, [editorView, tableState, node]);
|
|
79
72
|
var style = (0, _react.useMemo)(function () {
|
|
80
|
-
return alignment
|
|
73
|
+
return (0, _tableContainerStyles.getAlignmentStyle)(alignment);
|
|
81
74
|
}, [alignment]);
|
|
82
75
|
return (
|
|
83
76
|
/*#__PURE__*/
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getAlignmentStyle = void 0;
|
|
7
|
+
var _alignment = require("../utils/alignment");
|
|
8
|
+
var centerAlignStyle = {
|
|
9
|
+
display: 'flex',
|
|
10
|
+
justifyContent: 'center'
|
|
11
|
+
};
|
|
12
|
+
var leftAlignStyle = {
|
|
13
|
+
display: 'flex',
|
|
14
|
+
justifyContent: 'flex-start'
|
|
15
|
+
};
|
|
16
|
+
var getAlignmentStyle = exports.getAlignmentStyle = function getAlignmentStyle(alignment) {
|
|
17
|
+
return alignment === _alignment.ALIGN_START ? leftAlignStyle : centerAlignStyle;
|
|
18
|
+
};
|
package/dist/cjs/toDOM.js
CHANGED
|
@@ -6,10 +6,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.tableNodeSpecWithFixedToDOM = void 0;
|
|
8
8
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
9
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
9
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
|
+
var _kebabCase = _interopRequireDefault(require("lodash/kebabCase"));
|
|
10
12
|
var _adfSchema = require("@atlaskit/adf-schema");
|
|
11
13
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
12
14
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
|
+
var _tableContainerStyles = require("./nodeviews/table-container-styles");
|
|
13
16
|
var _colgroup = require("./pm-plugins/table-resizing/utils/colgroup");
|
|
14
17
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15
18
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -20,6 +23,12 @@ var tableNodeSpecWithFixedToDOM = exports.tableNodeSpecWithFixedToDOM = function
|
|
|
20
23
|
return _objectSpread(_objectSpread({}, _adfSchema.table), {}, {
|
|
21
24
|
toDOM: function toDOM(node) {
|
|
22
25
|
var editorWidthFromGetter = Math.min(config.getEditorContainerWidth().width - (0, _editorSharedStyles.akEditorGutterPaddingDynamic)() * 2, node.attrs.width);
|
|
26
|
+
var alignmentStyle = Object.entries((0, _tableContainerStyles.getAlignmentStyle)(node.attrs.layout)).map(function (_ref) {
|
|
27
|
+
var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
|
|
28
|
+
k = _ref2[0],
|
|
29
|
+
v = _ref2[1];
|
|
30
|
+
return "".concat((0, _kebabCase.default)(k), ": ").concat((0, _kebabCase.default)(v));
|
|
31
|
+
}).join(';');
|
|
23
32
|
var attrs = {
|
|
24
33
|
'data-number-column': node.attrs.isNumberColumnEnabled,
|
|
25
34
|
'data-layout': node.attrs.layout,
|
|
@@ -65,7 +74,7 @@ var tableNodeSpecWithFixedToDOM = exports.tableNodeSpecWithFixedToDOM = function
|
|
|
65
74
|
}
|
|
66
75
|
var tableResizingDiv = ['div', {
|
|
67
76
|
'data-testid': 'table-alignment-container',
|
|
68
|
-
style:
|
|
77
|
+
style: alignmentStyle
|
|
69
78
|
}, ['div', {
|
|
70
79
|
class: 'pm-table-resizer-container',
|
|
71
80
|
style: "width: ".concat(node.attrs.width, "px")
|
|
@@ -9,6 +9,7 @@ import { getPluginState } from '../pm-plugins/plugin-factory';
|
|
|
9
9
|
import { TABLE_MAX_WIDTH, TABLE_OFFSET_IN_COMMENT_EDITOR } from '../pm-plugins/table-resizing/utils';
|
|
10
10
|
import { TableCssClassName as ClassName } from '../types';
|
|
11
11
|
import { ALIGN_CENTER, ALIGN_START } from '../utils/alignment';
|
|
12
|
+
import { getAlignmentStyle } from './table-container-styles';
|
|
12
13
|
import { TableResizer } from './TableResizer';
|
|
13
14
|
export const InnerContainer = /*#__PURE__*/forwardRef(({
|
|
14
15
|
className,
|
|
@@ -29,14 +30,6 @@ export const InnerContainer = /*#__PURE__*/forwardRef(({
|
|
|
29
30
|
"data-testid": "table-container"
|
|
30
31
|
}, children);
|
|
31
32
|
});
|
|
32
|
-
const centerAlignStyle = {
|
|
33
|
-
display: 'flex',
|
|
34
|
-
justifyContent: 'center'
|
|
35
|
-
};
|
|
36
|
-
const leftAlignStyle = {
|
|
37
|
-
display: 'flex',
|
|
38
|
-
justifyContent: 'flex-start'
|
|
39
|
-
};
|
|
40
33
|
const AlignmentTableContainer = ({
|
|
41
34
|
node,
|
|
42
35
|
children,
|
|
@@ -73,7 +66,7 @@ const AlignmentTableContainer = ({
|
|
|
73
66
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
74
67
|
}, [editorView, tableState, node]);
|
|
75
68
|
const style = useMemo(() => {
|
|
76
|
-
return alignment
|
|
69
|
+
return getAlignmentStyle(alignment);
|
|
77
70
|
}, [alignment]);
|
|
78
71
|
return (
|
|
79
72
|
/*#__PURE__*/
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ALIGN_START } from '../utils/alignment';
|
|
2
|
+
const centerAlignStyle = {
|
|
3
|
+
display: 'flex',
|
|
4
|
+
justifyContent: 'center'
|
|
5
|
+
};
|
|
6
|
+
const leftAlignStyle = {
|
|
7
|
+
display: 'flex',
|
|
8
|
+
justifyContent: 'flex-start'
|
|
9
|
+
};
|
|
10
|
+
export const getAlignmentStyle = alignment => alignment === ALIGN_START ? leftAlignStyle : centerAlignStyle;
|
package/dist/es2019/toDOM.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import kebabCase from 'lodash/kebabCase';
|
|
1
2
|
import { table } from '@atlaskit/adf-schema';
|
|
2
3
|
import { akEditorGutterPaddingDynamic } from '@atlaskit/editor-shared-styles';
|
|
3
4
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
|
+
import { getAlignmentStyle } from './nodeviews/table-container-styles';
|
|
4
6
|
import { generateColgroup } from './pm-plugins/table-resizing/utils/colgroup';
|
|
5
7
|
export const tableNodeSpecWithFixedToDOM = config => {
|
|
6
8
|
if (!fg('platform_editor_lazy-node-views')) {
|
|
@@ -10,6 +12,7 @@ export const tableNodeSpecWithFixedToDOM = config => {
|
|
|
10
12
|
...table,
|
|
11
13
|
toDOM: node => {
|
|
12
14
|
const editorWidthFromGetter = Math.min(config.getEditorContainerWidth().width - akEditorGutterPaddingDynamic() * 2, node.attrs.width);
|
|
15
|
+
const alignmentStyle = Object.entries(getAlignmentStyle(node.attrs.layout)).map(([k, v]) => `${kebabCase(k)}: ${kebabCase(v)}`).join(';');
|
|
13
16
|
const attrs = {
|
|
14
17
|
'data-number-column': node.attrs.isNumberColumnEnabled,
|
|
15
18
|
'data-layout': node.attrs.layout,
|
|
@@ -55,7 +58,7 @@ export const tableNodeSpecWithFixedToDOM = config => {
|
|
|
55
58
|
}
|
|
56
59
|
const tableResizingDiv = ['div', {
|
|
57
60
|
'data-testid': 'table-alignment-container',
|
|
58
|
-
style:
|
|
61
|
+
style: alignmentStyle
|
|
59
62
|
}, ['div', {
|
|
60
63
|
class: 'pm-table-resizer-container',
|
|
61
64
|
style: `width: ${node.attrs.width}px`
|
|
@@ -10,6 +10,7 @@ import { getPluginState } from '../pm-plugins/plugin-factory';
|
|
|
10
10
|
import { TABLE_MAX_WIDTH, TABLE_OFFSET_IN_COMMENT_EDITOR } from '../pm-plugins/table-resizing/utils';
|
|
11
11
|
import { TableCssClassName as ClassName } from '../types';
|
|
12
12
|
import { ALIGN_CENTER, ALIGN_START } from '../utils/alignment';
|
|
13
|
+
import { getAlignmentStyle } from './table-container-styles';
|
|
13
14
|
import { TableResizer } from './TableResizer';
|
|
14
15
|
export var InnerContainer = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
15
16
|
var className = _ref.className,
|
|
@@ -29,14 +30,6 @@ export var InnerContainer = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
29
30
|
"data-testid": "table-container"
|
|
30
31
|
}, children);
|
|
31
32
|
});
|
|
32
|
-
var centerAlignStyle = {
|
|
33
|
-
display: 'flex',
|
|
34
|
-
justifyContent: 'center'
|
|
35
|
-
};
|
|
36
|
-
var leftAlignStyle = {
|
|
37
|
-
display: 'flex',
|
|
38
|
-
justifyContent: 'flex-start'
|
|
39
|
-
};
|
|
40
33
|
var AlignmentTableContainer = function AlignmentTableContainer(_ref2) {
|
|
41
34
|
var node = _ref2.node,
|
|
42
35
|
children = _ref2.children,
|
|
@@ -67,7 +60,7 @@ var AlignmentTableContainer = function AlignmentTableContainer(_ref2) {
|
|
|
67
60
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
68
61
|
}, [editorView, tableState, node]);
|
|
69
62
|
var style = useMemo(function () {
|
|
70
|
-
return alignment
|
|
63
|
+
return getAlignmentStyle(alignment);
|
|
71
64
|
}, [alignment]);
|
|
72
65
|
return (
|
|
73
66
|
/*#__PURE__*/
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ALIGN_START } from '../utils/alignment';
|
|
2
|
+
var centerAlignStyle = {
|
|
3
|
+
display: 'flex',
|
|
4
|
+
justifyContent: 'center'
|
|
5
|
+
};
|
|
6
|
+
var leftAlignStyle = {
|
|
7
|
+
display: 'flex',
|
|
8
|
+
justifyContent: 'flex-start'
|
|
9
|
+
};
|
|
10
|
+
export var getAlignmentStyle = function getAlignmentStyle(alignment) {
|
|
11
|
+
return alignment === ALIGN_START ? leftAlignStyle : centerAlignStyle;
|
|
12
|
+
};
|
package/dist/esm/toDOM.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
4
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
5
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
|
+
import kebabCase from 'lodash/kebabCase';
|
|
5
7
|
import { table } from '@atlaskit/adf-schema';
|
|
6
8
|
import { akEditorGutterPaddingDynamic } from '@atlaskit/editor-shared-styles';
|
|
7
9
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
|
+
import { getAlignmentStyle } from './nodeviews/table-container-styles';
|
|
8
11
|
import { generateColgroup } from './pm-plugins/table-resizing/utils/colgroup';
|
|
9
12
|
export var tableNodeSpecWithFixedToDOM = function tableNodeSpecWithFixedToDOM(config) {
|
|
10
13
|
if (!fg('platform_editor_lazy-node-views')) {
|
|
@@ -13,6 +16,12 @@ export var tableNodeSpecWithFixedToDOM = function tableNodeSpecWithFixedToDOM(co
|
|
|
13
16
|
return _objectSpread(_objectSpread({}, table), {}, {
|
|
14
17
|
toDOM: function toDOM(node) {
|
|
15
18
|
var editorWidthFromGetter = Math.min(config.getEditorContainerWidth().width - akEditorGutterPaddingDynamic() * 2, node.attrs.width);
|
|
19
|
+
var alignmentStyle = Object.entries(getAlignmentStyle(node.attrs.layout)).map(function (_ref) {
|
|
20
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
21
|
+
k = _ref2[0],
|
|
22
|
+
v = _ref2[1];
|
|
23
|
+
return "".concat(kebabCase(k), ": ").concat(kebabCase(v));
|
|
24
|
+
}).join(';');
|
|
16
25
|
var attrs = {
|
|
17
26
|
'data-number-column': node.attrs.isNumberColumnEnabled,
|
|
18
27
|
'data-layout': node.attrs.layout,
|
|
@@ -58,7 +67,7 @@ export var tableNodeSpecWithFixedToDOM = function tableNodeSpecWithFixedToDOM(co
|
|
|
58
67
|
}
|
|
59
68
|
var tableResizingDiv = ['div', {
|
|
60
69
|
'data-testid': 'table-alignment-container',
|
|
61
|
-
style:
|
|
70
|
+
style: alignmentStyle
|
|
62
71
|
}, ['div', {
|
|
63
72
|
class: 'pm-table-resizer-container',
|
|
64
73
|
style: "width: ".concat(node.attrs.width, "px")
|
package/package.json
CHANGED
|
@@ -30,6 +30,7 @@ import type { PluginInjectionAPI, TableSharedState } from '../types';
|
|
|
30
30
|
import { TableCssClassName as ClassName } from '../types';
|
|
31
31
|
import { ALIGN_CENTER, ALIGN_START } from '../utils/alignment';
|
|
32
32
|
|
|
33
|
+
import { getAlignmentStyle } from './table-container-styles';
|
|
33
34
|
import { TableResizer } from './TableResizer';
|
|
34
35
|
|
|
35
36
|
type InnerContainerProps = {
|
|
@@ -60,10 +61,6 @@ export const InnerContainer = forwardRef<HTMLDivElement, PropsWithChildren<Inner
|
|
|
60
61
|
},
|
|
61
62
|
);
|
|
62
63
|
|
|
63
|
-
const centerAlignStyle = { display: 'flex', justifyContent: 'center' };
|
|
64
|
-
|
|
65
|
-
const leftAlignStyle = { display: 'flex', justifyContent: 'flex-start' };
|
|
66
|
-
|
|
67
64
|
type AlignmentTableContainerProps = {
|
|
68
65
|
node: PMNode;
|
|
69
66
|
pluginInjectionApi?: PluginInjectionAPI;
|
|
@@ -114,7 +111,7 @@ const AlignmentTableContainer = ({
|
|
|
114
111
|
}, [editorView, tableState, node]);
|
|
115
112
|
|
|
116
113
|
const style = useMemo(() => {
|
|
117
|
-
return alignment
|
|
114
|
+
return getAlignmentStyle(alignment);
|
|
118
115
|
}, [alignment]);
|
|
119
116
|
|
|
120
117
|
return (
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AlignmentOptions } from '../types';
|
|
2
|
+
import { ALIGN_START } from '../utils/alignment';
|
|
3
|
+
|
|
4
|
+
const centerAlignStyle = { display: 'flex', justifyContent: 'center' };
|
|
5
|
+
|
|
6
|
+
const leftAlignStyle = { display: 'flex', justifyContent: 'flex-start' };
|
|
7
|
+
|
|
8
|
+
export const getAlignmentStyle = (alignment: AlignmentOptions) =>
|
|
9
|
+
alignment === ALIGN_START ? leftAlignStyle : centerAlignStyle;
|
package/src/toDOM.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import kebabCase from 'lodash/kebabCase';
|
|
2
|
+
|
|
1
3
|
import { table } from '@atlaskit/adf-schema';
|
|
2
4
|
import type { GetEditorContainerWidth } from '@atlaskit/editor-common/src/types';
|
|
3
5
|
import type { DOMOutputSpec, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
6
|
import { akEditorGutterPaddingDynamic } from '@atlaskit/editor-shared-styles';
|
|
5
7
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
8
|
|
|
9
|
+
import { getAlignmentStyle } from './nodeviews/table-container-styles';
|
|
7
10
|
import { generateColgroup } from './pm-plugins/table-resizing/utils/colgroup';
|
|
8
11
|
|
|
9
12
|
type Config = {
|
|
@@ -23,6 +26,10 @@ export const tableNodeSpecWithFixedToDOM = (config: Config): typeof table => {
|
|
|
23
26
|
config.getEditorContainerWidth().width - akEditorGutterPaddingDynamic() * 2,
|
|
24
27
|
node.attrs.width,
|
|
25
28
|
);
|
|
29
|
+
const alignmentStyle = Object.entries(getAlignmentStyle(node.attrs.layout))
|
|
30
|
+
.map(([k, v]) => `${kebabCase(k)}: ${kebabCase(v)}`)
|
|
31
|
+
.join(';');
|
|
32
|
+
|
|
26
33
|
const attrs = {
|
|
27
34
|
'data-number-column': node.attrs.isNumberColumnEnabled,
|
|
28
35
|
'data-layout': node.attrs.layout,
|
|
@@ -111,7 +118,7 @@ export const tableNodeSpecWithFixedToDOM = (config: Config): typeof table => {
|
|
|
111
118
|
'div',
|
|
112
119
|
{
|
|
113
120
|
'data-testid': 'table-alignment-container',
|
|
114
|
-
style:
|
|
121
|
+
style: alignmentStyle,
|
|
115
122
|
},
|
|
116
123
|
[
|
|
117
124
|
'div',
|