@atlaskit/editor-plugin-table 10.11.2 → 10.11.4
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 +12 -0
- package/dist/cjs/nodeviews/TableComponent.js +3 -1
- package/dist/cjs/nodeviews/TableRow.js +3 -1
- package/dist/es2019/nodeviews/TableComponent.js +3 -1
- package/dist/es2019/nodeviews/TableRow.js +3 -1
- package/dist/esm/nodeviews/TableComponent.js +3 -1
- package/dist/esm/nodeviews/TableRow.js +3 -1
- package/package.json +6 -6
- package/src/nodeviews/TableComponent.tsx +4 -4
- package/src/nodeviews/TableRow.ts +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -403,7 +403,9 @@ var TableComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
403
403
|
key: "componentDidMount",
|
|
404
404
|
value: function componentDidMount() {
|
|
405
405
|
var _this2 = this;
|
|
406
|
-
if ((0, _experiments.editorExperiment)('platform_editor_nodevisibility', false
|
|
406
|
+
if ((0, _experiments.editorExperiment)('platform_editor_nodevisibility', false, {
|
|
407
|
+
exposure: true
|
|
408
|
+
})) {
|
|
407
409
|
this.initialiseEventListenersAfterMount();
|
|
408
410
|
return;
|
|
409
411
|
}
|
|
@@ -86,7 +86,9 @@ var TableRow = exports.default = /*#__PURE__*/function (_TableNodeView) {
|
|
|
86
86
|
_this.isInNestedTable = (0, _nesting.getParentOfTypeCount)(view.state.schema.nodes.table)(view.state.doc.resolve(pos)) > 1;
|
|
87
87
|
}
|
|
88
88
|
if (_this.isHeaderRow) {
|
|
89
|
-
if ((0, _experiments.editorExperiment)('platform_editor_nodevisibility', false
|
|
89
|
+
if ((0, _experiments.editorExperiment)('platform_editor_nodevisibility', false, {
|
|
90
|
+
exposure: true
|
|
91
|
+
})) {
|
|
90
92
|
_this.subscribeWhenRowVisible();
|
|
91
93
|
} else {
|
|
92
94
|
var _nodeVisibilityManage = (0, _nodeVisibility.nodeVisibilityManager)(view.dom),
|
|
@@ -387,7 +387,9 @@ class TableComponent extends React.Component {
|
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
389
|
componentDidMount() {
|
|
390
|
-
if (editorExperiment('platform_editor_nodevisibility', false
|
|
390
|
+
if (editorExperiment('platform_editor_nodevisibility', false, {
|
|
391
|
+
exposure: true
|
|
392
|
+
})) {
|
|
391
393
|
this.initialiseEventListenersAfterMount();
|
|
392
394
|
return;
|
|
393
395
|
}
|
|
@@ -71,7 +71,9 @@ export default class TableRow extends TableNodeView {
|
|
|
71
71
|
this.isInNestedTable = getParentOfTypeCount(view.state.schema.nodes.table)(view.state.doc.resolve(pos)) > 1;
|
|
72
72
|
}
|
|
73
73
|
if (this.isHeaderRow) {
|
|
74
|
-
if (editorExperiment('platform_editor_nodevisibility', false
|
|
74
|
+
if (editorExperiment('platform_editor_nodevisibility', false, {
|
|
75
|
+
exposure: true
|
|
76
|
+
})) {
|
|
75
77
|
this.subscribeWhenRowVisible();
|
|
76
78
|
} else {
|
|
77
79
|
const {
|
|
@@ -397,7 +397,9 @@ var TableComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
397
397
|
key: "componentDidMount",
|
|
398
398
|
value: function componentDidMount() {
|
|
399
399
|
var _this2 = this;
|
|
400
|
-
if (editorExperiment('platform_editor_nodevisibility', false
|
|
400
|
+
if (editorExperiment('platform_editor_nodevisibility', false, {
|
|
401
|
+
exposure: true
|
|
402
|
+
})) {
|
|
401
403
|
this.initialiseEventListenersAfterMount();
|
|
402
404
|
return;
|
|
403
405
|
}
|
|
@@ -79,7 +79,9 @@ var TableRow = /*#__PURE__*/function (_TableNodeView) {
|
|
|
79
79
|
_this.isInNestedTable = getParentOfTypeCount(view.state.schema.nodes.table)(view.state.doc.resolve(pos)) > 1;
|
|
80
80
|
}
|
|
81
81
|
if (_this.isHeaderRow) {
|
|
82
|
-
if (editorExperiment('platform_editor_nodevisibility', false
|
|
82
|
+
if (editorExperiment('platform_editor_nodevisibility', false, {
|
|
83
|
+
exposure: true
|
|
84
|
+
})) {
|
|
83
85
|
_this.subscribeWhenRowVisible();
|
|
84
86
|
} else {
|
|
85
87
|
var _nodeVisibilityManage = nodeVisibilityManager(view.dom),
|
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.4",
|
|
4
4
|
"description": "Table plugin for the @atlaskit/editor",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
"@atlaskit/adf-schema": "^47.6.0",
|
|
33
33
|
"@atlaskit/button": "^23.2.0",
|
|
34
34
|
"@atlaskit/custom-steps": "^0.11.0",
|
|
35
|
-
"@atlaskit/editor-common": "^
|
|
35
|
+
"@atlaskit/editor-common": "^106.1.0",
|
|
36
36
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
37
37
|
"@atlaskit/editor-plugin-accessibility-utils": "^2.0.0",
|
|
38
38
|
"@atlaskit/editor-plugin-analytics": "^2.3.0",
|
|
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.
|
|
42
|
+
"@atlaskit/editor-plugin-extension": "5.5.0",
|
|
43
43
|
"@atlaskit/editor-plugin-guideline": "^2.0.0",
|
|
44
44
|
"@atlaskit/editor-plugin-interaction": "^1.1.0",
|
|
45
45
|
"@atlaskit/editor-plugin-selection": "^2.2.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
48
48
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
49
49
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
50
|
-
"@atlaskit/icon": "^26.
|
|
50
|
+
"@atlaskit/icon": "^26.4.0",
|
|
51
51
|
"@atlaskit/menu": "^8.0.0",
|
|
52
52
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
53
53
|
"@atlaskit/pragmatic-drag-and-drop": "^1.7.0",
|
|
@@ -55,10 +55,10 @@
|
|
|
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.5.0",
|
|
59
59
|
"@atlaskit/toggle": "^15.0.0",
|
|
60
60
|
"@atlaskit/tokens": "^4.9.0",
|
|
61
|
-
"@atlaskit/tooltip": "^20.
|
|
61
|
+
"@atlaskit/tooltip": "^20.2.0",
|
|
62
62
|
"@babel/runtime": "^7.0.0",
|
|
63
63
|
"@emotion/react": "^11.7.1",
|
|
64
64
|
"classnames": "^2.2.5",
|
|
@@ -195,7 +195,7 @@ class TableComponent extends React.Component<ComponentProps, TableState> {
|
|
|
195
195
|
this.isNestedInTable = tablePos
|
|
196
196
|
? getParentOfTypeCount(props.view.state.schema.nodes.table)(
|
|
197
197
|
props.view.state.doc.resolve(tablePos),
|
|
198
|
-
|
|
198
|
+
) > 0
|
|
199
199
|
: false;
|
|
200
200
|
|
|
201
201
|
this.isInitialOverflowSent = false;
|
|
@@ -221,7 +221,7 @@ class TableComponent extends React.Component<ComponentProps, TableState> {
|
|
|
221
221
|
...prev,
|
|
222
222
|
tableWrapperWidth: entry.contentRect.width,
|
|
223
223
|
tableWrapperHeight: entry.contentRect.height,
|
|
224
|
-
|
|
224
|
+
};
|
|
225
225
|
});
|
|
226
226
|
}
|
|
227
227
|
});
|
|
@@ -252,7 +252,7 @@ class TableComponent extends React.Component<ComponentProps, TableState> {
|
|
|
252
252
|
};
|
|
253
253
|
|
|
254
254
|
componentDidMount() {
|
|
255
|
-
if (editorExperiment('platform_editor_nodevisibility', false)) {
|
|
255
|
+
if (editorExperiment('platform_editor_nodevisibility', false, { exposure: true })) {
|
|
256
256
|
this.initialiseEventListenersAfterMount();
|
|
257
257
|
return;
|
|
258
258
|
}
|
|
@@ -932,7 +932,7 @@ class TableComponent extends React.Component<ComponentProps, TableState> {
|
|
|
932
932
|
const shadowPadding = allowControls && tableActive ? -tableToolbarSize : tableMarginSides;
|
|
933
933
|
|
|
934
934
|
const shadowStyle = memoizeOne(
|
|
935
|
-
(visible) => ({ visibility: visible ? 'visible' : 'hidden' }
|
|
935
|
+
(visible) => ({ visibility: visible ? 'visible' : 'hidden' } as CSSProperties),
|
|
936
936
|
);
|
|
937
937
|
|
|
938
938
|
/**
|
|
@@ -70,7 +70,7 @@ export default class TableRow extends TableNodeView<HTMLTableRowElement> impleme
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
if (this.isHeaderRow) {
|
|
73
|
-
if (editorExperiment('platform_editor_nodevisibility', false)) {
|
|
73
|
+
if (editorExperiment('platform_editor_nodevisibility', false, { exposure: true })) {
|
|
74
74
|
this.subscribeWhenRowVisible();
|
|
75
75
|
} else {
|
|
76
76
|
const { observe } = nodeVisibilityManager(view.dom);
|
|
@@ -438,8 +438,8 @@ export default class TableRow extends TableNodeView<HTMLTableRowElement> impleme
|
|
|
438
438
|
const newHeight = entry.contentRect
|
|
439
439
|
? entry.contentRect.height
|
|
440
440
|
: // Ignored via go/ees005
|
|
441
|
-
|
|
442
|
-
|
|
441
|
+
// eslint-disable-next-line @atlaskit/editor/no-as-casting
|
|
442
|
+
(entry.target as HTMLElement).offsetHeight;
|
|
443
443
|
|
|
444
444
|
if (
|
|
445
445
|
this.sentinels.bottom &&
|