@dxos/react-ui-editor 0.4.1-main.4f4a61d → 0.4.1-main.5d6c3c1

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.
@@ -1265,10 +1265,7 @@ var trackPastedComments = (onUpdate) => {
1265
1265
  const exists = comments2.some((c) => c.comment.id === comment.id && c.range.from < c.range.to);
1266
1266
  if (!exists) {
1267
1267
  const cursor = Cursor.getCursorFromRange(update2.state, comment);
1268
- onUpdate({
1269
- id: comment.id,
1270
- cursor
1271
- });
1268
+ onUpdate(comment.id, cursor);
1272
1269
  }
1273
1270
  }
1274
1271
  })
@@ -1381,9 +1378,7 @@ var comments = (options = {}) => {
1381
1378
  if (from2 === to2) {
1382
1379
  const newRange = Cursor.getRangeFromCursor(view.state, comment.cursor);
1383
1380
  if (!newRange || newRange.to - newRange.from === 0) {
1384
- options.onDelete?.({
1385
- id: comment.id
1386
- });
1381
+ options.onDelete?.(comment.id);
1387
1382
  }
1388
1383
  }
1389
1384
  if (from <= range.to) {