@dxos/ui-editor 0.8.4-main.bc674ce → 0.8.4-main.ef1bc66f44

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.
@@ -6631,13 +6631,13 @@ var getLinkRef = (state, node) => {
6631
6631
  const mark = node.getChildren("LinkMark");
6632
6632
  const urlNode = node.getChild("URL");
6633
6633
  if (mark && urlNode) {
6634
- const url = state.sliceDoc(urlNode.from, urlNode.to);
6635
- if (url.startsWith("dxn:")) {
6634
+ const dxn = state.sliceDoc(urlNode.from, urlNode.to);
6635
+ if (dxn.startsWith("dxn:")) {
6636
6636
  const label = state.sliceDoc(mark[0].to, mark[1].from);
6637
6637
  return {
6638
6638
  block: state.sliceDoc(mark[0].from, mark[0].from + 1) === "!",
6639
6639
  label,
6640
- ref: url
6640
+ dxn
6641
6641
  };
6642
6642
  }
6643
6643
  }
@@ -6652,13 +6652,13 @@ var PreviewInlineWidget = class extends WidgetType8 {
6652
6652
  // return false;
6653
6653
  // }
6654
6654
  eq(other) {
6655
- return this._link.ref === other._link.ref && this._link.label === other._link.label;
6655
+ return this._link.dxn === other._link.dxn && this._link.label === other._link.label;
6656
6656
  }
6657
6657
  toDOM(_view) {
6658
6658
  const root = document.createElement("dx-anchor");
6659
6659
  root.classList.add("dx-tag--anchor");
6660
6660
  root.textContent = this._link.label;
6661
- root.setAttribute("refId", this._link.ref);
6661
+ root.setAttribute("dxn", this._link.dxn);
6662
6662
  return root;
6663
6663
  }
6664
6664
  };
@@ -6672,7 +6672,7 @@ var PreviewBlockWidget = class extends WidgetType8 {
6672
6672
  // return true;
6673
6673
  // }
6674
6674
  eq(other) {
6675
- return this._link.ref === other._link.ref;
6675
+ return this._link.dxn === other._link.dxn;
6676
6676
  }
6677
6677
  toDOM(_view) {
6678
6678
  const root = document.createElement("div");