@nerd-bible/wordgard 0.5.3-beta4 → 0.5.3-beta5

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/dist/table.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Decoration, PointSet, Wordgard } from 'wordgard/editor';
1
+ import { Decoration, Wordgard } from 'wordgard/editor';
2
2
  import { GardState, Transaction, GardSelection, Correction } from 'wordgard/state';
3
3
  import { Table, ColSpan, RowSpan, TableRow, Cell, BlockCell, HeaderCell, BlockHeaderCell } from 'wordgard/types';
4
4
  import { Node, ValidationError, Token, ChangeSet } from 'wordgard/doc';
@@ -236,8 +236,8 @@ const cellSelectionDeco = /*@__PURE__*/GardState.Field.define({
236
236
  const selectedCell = /*@__PURE__*/Decoration.Point.attributes({ class: "wg-selected-cell" });
237
237
  function getCellDeco(state) {
238
238
  if (!(state.selection instanceof CellSelection))
239
- return PointSet.empty;
240
- return PointSet.create(state.selection.ranges.map(({ from }) => [from - 1, selectedCell]));
239
+ return Decoration.Point.none;
240
+ return Decoration.Point.set(state.selection.ranges.map(({ from }) => [from - 1, selectedCell]));
241
241
  }
242
242
  const tableSelectionFilter = /*@__PURE__*/(() => GardState.prec.low(Transaction.extender.of(tr => {
243
243
  let normalized = CellSelection.normalize(tr.newSelection, tr.newDoc);
package/package.json CHANGED
@@ -1,21 +1,12 @@
1
1
  {
2
2
  "name": "@nerd-bible/wordgard",
3
- "version": "0.5.3-beta4",
3
+ "version": "0.5.3-beta5",
4
4
  "description": "Semantic rich text editor system",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "exports": {
8
8
  ".": "./dist/index.js",
9
- "./doc": "./dist/doc.js",
10
- "./types": "./dist/types.js",
11
- "./schema": "./dist/schema.js",
12
- "./table": "./dist/table.js",
13
- "./state": "./dist/state.js",
14
- "./editor": "./dist/editor.js",
15
- "./command": "./dist/command.js",
16
- "./history": "./dist/history.js",
17
- "./collab": "./dist/collab.js",
18
- "./phrases": "./dist/phrases.js"
9
+ "./*": "./dist/*.js"
19
10
  },
20
11
  "scripts": {
21
12
  "test": "mocha test/test-*.ts",