@modusoperandi/licit 1.0.3 → 1.0.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.
@@ -46,7 +46,7 @@ import { Transform } from 'prosemirror-transform';
46
46
  import { Decoration, DecorationSet, EditorView } from 'prosemirror-view';
47
47
  import { findParentNodeOfTypeClosestToPos } from 'prosemirror-utils';
48
48
  import nullthrows from 'nullthrows';
49
- import { cellAround, pointsAtCell, setCellAttr, tableNodeTypes, TableMap, TableView } from 'prosemirror-tables';
49
+ import { cellAround, pointsAtCell, tableNodeTypes, TableMap, TableView } from 'prosemirror-tables';
50
50
  var PLUGIN_KEY = new PluginKey('tableColumnResizing');
51
51
 
52
52
  // [FS] IRAD-949 2020-05-27
@@ -288,7 +288,8 @@ function handleDragEnd(view, event) {
288
288
  if (attrs.colwidth && compareNumbersList(attrs.colwidth, colwidth)) {
289
289
  continue;
290
290
  }
291
- tr = tr.setNodeMarkup(start + pos, null, setCellAttr('colwidth', colwidth));
291
+ attrs.colwidth = colwidth;
292
+ tr = tr.setNodeMarkup(start + pos, null, attrs);
292
293
  }
293
294
  }
294
295
  var marginLeft = parseFloat(tableElement.style.marginLeft) || null;
@@ -39,7 +39,6 @@ import nullthrows from 'nullthrows';
39
39
  import {
40
40
  cellAround,
41
41
  pointsAtCell,
42
- setCellAttr,
43
42
  tableNodeTypes,
44
43
  TableMap,
45
44
  TableView,
@@ -340,11 +339,11 @@ function handleDragEnd(view: EditorView, event: any): void {
340
339
  if (attrs.colwidth && compareNumbersList(attrs.colwidth, colwidth)) {
341
340
  continue;
342
341
  }
343
-
342
+ attrs.colwidth = colwidth;
344
343
  tr = tr.setNodeMarkup(
345
344
  start + pos,
346
345
  null,
347
- setCellAttr('colwidth', colwidth)
346
+ attrs
348
347
  );
349
348
  }
350
349
  }