@lensmap/starlight 0.2.0 → 0.3.0

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.
@@ -643,6 +643,21 @@
643
643
  padding: 0;
644
644
  }
645
645
  }
646
+ :where(.lensmap-viewer) .node[data-auto-size=true] > .node-summary {
647
+ display: block;
648
+ overflow: visible;
649
+ -webkit-line-clamp: unset;
650
+ overflow-wrap: anywhere;
651
+ }
652
+ :where(.lensmap-viewer) .node-icon {
653
+ flex-shrink: 0;
654
+ }
655
+ :where(.lensmap-viewer) .node .destination-icon {
656
+ color: #e7eef4;
657
+ background: #14202a;
658
+ border-radius: 4px;
659
+ flex-shrink: 0;
660
+ }
646
661
 
647
662
  /* src/viewer-theme.css */
648
663
  [data-lensmap-document] .lensmap-viewer {
@@ -11,12 +11,16 @@ export type GraphNode = Pick<
11
11
  };
12
12
  export interface GraphData {
13
13
  nodes: GraphNode[];
14
- edges: Pick<Connection, "key" | "from" | "to" | "kind" | "type">[];
14
+ edges: Pick<
15
+ Connection,
16
+ "key" | "from" | "to" | "kind" | "type" | "presentation"
17
+ >[];
15
18
  }
16
19
  export interface ViewerHostProps {
17
20
  graph: GraphData;
18
21
  rendered: Record<string, string>;
19
22
  inspectorId?: string;
23
+ mapId?: string;
20
24
  getLabel?: (node: GraphNode) => string;
21
25
  }
22
26
  export default function ViewerHost(props: ViewerHostProps): ReactElement;