@gravity-ui/markdown-editor 13.4.0 → 13.4.1

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.
@@ -420,7 +420,6 @@ exports.wCommandMenuConfig = [
420
420
  // wMathInlineItemData,
421
421
  // wMathBlockItemData,
422
422
  exports.wTabsItemData,
423
- exports.wYfmHtmlBlockItemData,
424
423
  ];
425
424
  exports.wHiddenData = exports.wCommandMenuConfig;
426
425
  /** prepared wysiwyg toolbar config */
@@ -556,7 +555,6 @@ exports.wCommandMenuConfigByPreset = {
556
555
  exports.wHruleItemData,
557
556
  exports.wFileItemData,
558
557
  exports.wTabsItemData,
559
- exports.wYfmHtmlBlockItemData,
560
558
  ],
561
559
  full: exports.wCommandMenuConfig.slice(),
562
560
  };
@@ -29,7 +29,8 @@ const removeColumn = (state, dispatch, _, attrs = {}) => {
29
29
  if (!(0, utils_1.isTableCellNode)(cellNode))
30
30
  return;
31
31
  if (cellIndex === columnNumber) {
32
- const from = tablePos + 1 + rowOffset + 1 + cellOffset;
32
+ // table -> tbody -> tr -> td
33
+ const from = tablePos + 2 + rowOffset + 1 + cellOffset;
33
34
  const to = from + cellNode.nodeSize;
34
35
  tr.delete(tr.mapping.map(from), tr.mapping.map(to));
35
36
  }
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
4
  /** During build process, the current version will be injected here */
5
- exports.VERSION = typeof '13.4.0' !== 'undefined' ? '13.4.0' : 'unknown';
5
+ exports.VERSION = typeof '13.4.1' !== 'undefined' ? '13.4.1' : 'unknown';
@@ -417,7 +417,6 @@ export const wCommandMenuConfig = [
417
417
  // wMathInlineItemData,
418
418
  // wMathBlockItemData,
419
419
  wTabsItemData,
420
- wYfmHtmlBlockItemData,
421
420
  ];
422
421
  export const wHiddenData = wCommandMenuConfig;
423
422
  /** prepared wysiwyg toolbar config */
@@ -553,7 +552,6 @@ export const wCommandMenuConfigByPreset = {
553
552
  wHruleItemData,
554
553
  wFileItemData,
555
554
  wTabsItemData,
556
- wYfmHtmlBlockItemData,
557
555
  ],
558
556
  full: wCommandMenuConfig.slice(),
559
557
  };
@@ -26,7 +26,8 @@ export const removeColumn = (state, dispatch, _, attrs = {}) => {
26
26
  if (!isTableCellNode(cellNode))
27
27
  return;
28
28
  if (cellIndex === columnNumber) {
29
- const from = tablePos + 1 + rowOffset + 1 + cellOffset;
29
+ // table -> tbody -> tr -> td
30
+ const from = tablePos + 2 + rowOffset + 1 + cellOffset;
30
31
  const to = from + cellNode.nodeSize;
31
32
  tr.delete(tr.mapping.map(from), tr.mapping.map(to));
32
33
  }
@@ -1,2 +1,2 @@
1
1
  /** During build process, the current version will be injected here */
2
- export const VERSION = typeof '13.4.0' !== 'undefined' ? '13.4.0' : 'unknown';
2
+ export const VERSION = typeof '13.4.1' !== 'undefined' ? '13.4.1' : 'unknown';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/markdown-editor",
3
- "version": "13.4.0",
3
+ "version": "13.4.1",
4
4
  "description": "Markdown wysiwyg and markup editor",
5
5
  "license": "MIT",
6
6
  "repository": {