@manuscripts/body-editor 2.8.75 → 2.8.76

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.
@@ -44,7 +44,10 @@ exports.default = () => {
44
44
  const isTableShapeSelected = (state) => {
45
45
  if (state.selection instanceof prosemirror_tables_1.CellSelection) {
46
46
  const rect = (0, prosemirror_tables_1.selectedRect)(state);
47
- return rect.bottom === rect.map.height && rect.right === rect.map.width;
47
+ return (rect.left === 0 &&
48
+ rect.top === 0 &&
49
+ rect.right === rect.map.width &&
50
+ rect.bottom === rect.map.height);
48
51
  }
49
52
  return false;
50
53
  };
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MATHJAX_VERSION = exports.VERSION = void 0;
4
- exports.VERSION = '2.8.75';
4
+ exports.VERSION = '2.8.76';
5
5
  exports.MATHJAX_VERSION = '3.2.2';
@@ -25,7 +25,6 @@ class TableElementView extends block_view_1.default {
25
25
  constructor() {
26
26
  super(...arguments);
27
27
  this.elementType = 'figure';
28
- this.ignoreMutation = () => true;
29
28
  this.createElement = () => {
30
29
  this.contentDOM = document.createElement('figure');
31
30
  this.contentDOM.classList.add('block');
@@ -42,7 +42,10 @@ export default () => {
42
42
  const isTableShapeSelected = (state) => {
43
43
  if (state.selection instanceof CellSelection) {
44
44
  const rect = selectedRect(state);
45
- return rect.bottom === rect.map.height && rect.right === rect.map.width;
45
+ return (rect.left === 0 &&
46
+ rect.top === 0 &&
47
+ rect.right === rect.map.width &&
48
+ rect.bottom === rect.map.height);
46
49
  }
47
50
  return false;
48
51
  };
@@ -1,2 +1,2 @@
1
- export const VERSION = '2.8.75';
1
+ export const VERSION = '2.8.76';
2
2
  export const MATHJAX_VERSION = '3.2.2';
@@ -19,7 +19,6 @@ export class TableElementView extends BlockView {
19
19
  constructor() {
20
20
  super(...arguments);
21
21
  this.elementType = 'figure';
22
- this.ignoreMutation = () => true;
23
22
  this.createElement = () => {
24
23
  this.contentDOM = document.createElement('figure');
25
24
  this.contentDOM.classList.add('block');
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "2.8.75";
1
+ export declare const VERSION = "2.8.76";
2
2
  export declare const MATHJAX_VERSION = "3.2.2";
@@ -17,7 +17,6 @@ import { TableElementNode } from '@manuscripts/transform';
17
17
  import BlockView from './block_view';
18
18
  export declare class TableElementView extends BlockView<TableElementNode> {
19
19
  elementType: string;
20
- ignoreMutation: () => boolean;
21
20
  createElement: () => void;
22
21
  }
23
22
  declare const _default: (props: import("../configs/ManuscriptsEditor").EditorProps, dispatch?: import("..").Dispatch | undefined) => import("../types").NodeViewCreator<TableElementView>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@manuscripts/body-editor",
3
3
  "description": "Prosemirror components for editing and viewing manuscripts",
4
- "version": "2.8.75",
4
+ "version": "2.8.76",
5
5
  "repository": "github:Atypon-OpenSource/manuscripts-body-editor",
6
6
  "license": "Apache-2.0",
7
7
  "main": "dist/cjs",