@dxos/ui-editor 0.8.4-main.21d9917 → 0.8.4-main.3eb6e50203

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.
@@ -2683,6 +2683,7 @@ var baseTheme = EditorView13.baseTheme({
2683
2683
  },
2684
2684
  ".cm-panel button": {
2685
2685
  "&:hover": {
2686
+ // TODO(burdon): Replace with layer and @apply bg-accentSurfaceHover
2686
2687
  backgroundColor: "var(--dx-accentSurfaceHover) !important"
2687
2688
  },
2688
2689
  "&:active": {
@@ -6631,13 +6632,13 @@ var getLinkRef = (state, node) => {
6631
6632
  const mark = node.getChildren("LinkMark");
6632
6633
  const urlNode = node.getChild("URL");
6633
6634
  if (mark && urlNode) {
6634
- const url = state.sliceDoc(urlNode.from, urlNode.to);
6635
- if (url.startsWith("dxn:")) {
6635
+ const dxn = state.sliceDoc(urlNode.from, urlNode.to);
6636
+ if (dxn.startsWith("dxn:")) {
6636
6637
  const label = state.sliceDoc(mark[0].to, mark[1].from);
6637
6638
  return {
6638
6639
  block: state.sliceDoc(mark[0].from, mark[0].from + 1) === "!",
6639
6640
  label,
6640
- ref: url
6641
+ dxn
6641
6642
  };
6642
6643
  }
6643
6644
  }
@@ -6652,13 +6653,13 @@ var PreviewInlineWidget = class extends WidgetType8 {
6652
6653
  // return false;
6653
6654
  // }
6654
6655
  eq(other) {
6655
- return this._link.ref === other._link.ref && this._link.label === other._link.label;
6656
+ return this._link.dxn === other._link.dxn && this._link.label === other._link.label;
6656
6657
  }
6657
6658
  toDOM(_view) {
6658
6659
  const root = document.createElement("dx-anchor");
6659
6660
  root.classList.add("dx-tag--anchor");
6660
6661
  root.textContent = this._link.label;
6661
- root.setAttribute("refId", this._link.ref);
6662
+ root.setAttribute("dxn", this._link.dxn);
6662
6663
  return root;
6663
6664
  }
6664
6665
  };
@@ -6672,7 +6673,7 @@ var PreviewBlockWidget = class extends WidgetType8 {
6672
6673
  // return true;
6673
6674
  // }
6674
6675
  eq(other) {
6675
- return this._link.ref === other._link.ref;
6676
+ return this._link.dxn === other._link.dxn;
6676
6677
  }
6677
6678
  toDOM(_view) {
6678
6679
  const root = document.createElement("div");