@atlaskit/editor-plugin-table 10.11.4 → 10.11.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 +6 -0
- package/dist/cjs/nodeviews/ExternalDropTargets.js +1 -2
- package/dist/cjs/nodeviews/TableComponent.js +47 -47
- package/dist/cjs/nodeviews/TableContainer.js +1 -2
- package/dist/cjs/nodeviews/TableResizer.js +1 -2
- package/dist/cjs/nodeviews/lazy-node-views.js +1 -2
- package/dist/cjs/pm-plugins/commands/commands-with-analytics.js +14 -14
- package/dist/cjs/pm-plugins/view-mode-sort/index.js +10 -10
- package/dist/cjs/tablePlugin.js +57 -58
- package/dist/cjs/ui/DragHandle/index.js +1 -2
- package/dist/cjs/ui/FloatingContextualButton/FixedButton.js +1 -2
- package/dist/cjs/ui/FloatingContextualButton/index.js +1 -2
- package/dist/cjs/ui/FloatingContextualMenu/ContextualMenu.js +45 -46
- package/dist/cjs/ui/FloatingDeleteButton/index.js +1 -2
- package/dist/cjs/ui/FloatingDragMenu/DragMenu.js +1 -2
- package/dist/cjs/ui/FloatingDragMenu/DropdownMenu.js +1 -2
- package/dist/cjs/ui/FloatingInsertButton/index.js +1 -2
- package/dist/cjs/ui/TableFloatingColumnControls/ColumnControls/index.js +1 -2
- package/dist/cjs/ui/TableFloatingColumnControls/ColumnDropTargets/ColumnDropTarget.js +1 -2
- package/dist/cjs/ui/TableFloatingColumnControls/ColumnDropTargets/index.js +1 -2
- package/dist/cjs/ui/TableFloatingColumnControls/index.js +1 -2
- package/dist/cjs/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +1 -2
- package/dist/cjs/ui/TableFloatingControls/CornerControls/DragCornerControls.js +1 -2
- package/dist/cjs/ui/TableFloatingControls/NumberColumn/index.js +1 -2
- package/dist/cjs/ui/TableFloatingControls/RowControls/ClassicControls.js +1 -2
- package/dist/cjs/ui/TableFloatingControls/RowControls/DragControls.js +1 -2
- package/dist/cjs/ui/TableFloatingControls/RowDropTarget/index.js +1 -2
- package/dist/cjs/ui/TableFloatingControls/index.js +1 -2
- package/dist/cjs/ui/event-handlers.js +12 -12
- package/dist/cjs/ui/toolbar.js +1 -2
- package/dist/cjs/ui/ui-styles.js +16 -16
- package/dist/es2019/nodeviews/TableComponent.js +5 -5
- package/dist/esm/nodeviews/TableComponent.js +47 -47
- package/dist/esm/pm-plugins/commands/commands-with-analytics.js +14 -14
- package/dist/esm/pm-plugins/view-mode-sort/index.js +10 -10
- package/dist/esm/tablePlugin.js +56 -56
- package/dist/esm/ui/FloatingContextualMenu/ContextualMenu.js +44 -44
- package/dist/esm/ui/event-handlers.js +12 -12
- package/dist/esm/ui/ui-styles.js +16 -16
- package/package.json +3 -3
- package/src/nodeviews/TableComponent.tsx +3 -3
- package/src/nodeviews/TableRow.ts +2 -2
|
@@ -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
|
});
|
|
@@ -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' } as CSSProperties
|
|
935
|
+
(visible) => ({ visibility: visible ? 'visible' : 'hidden' }) as CSSProperties,
|
|
936
936
|
);
|
|
937
937
|
|
|
938
938
|
/**
|
|
@@ -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 &&
|