@tldiagram/core-ui 2.0.6 → 2.0.8

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.
@@ -1,6 +1,5 @@
1
1
  declare global {
2
2
  interface Window {
3
- __TLD_API_KEY__?: string;
4
3
  __TLD_SERVER_URL__?: string;
5
4
  __TLD_DIAGRAM_ID__?: number;
6
5
  }
@@ -1,6 +1,7 @@
1
1
  import type { ExploreData } from '../../types';
2
2
  import type { CrossBranchContextSettings } from '../../crossBranch/types';
3
3
  import type { WorkspaceVersionFollowTarget, WorkspaceVersionPreview } from '../../context/WorkspaceVersionContext';
4
+ import { type ExploreDiffLens } from '../../utils/exploreDiffLens';
4
5
  export interface ZUICanvasHandle {
5
6
  fitView(): void;
6
7
  focusDiagram(viewId: number): boolean;
@@ -22,6 +23,7 @@ interface Props {
22
23
  hiddenTags?: string[];
23
24
  versionPreview?: WorkspaceVersionPreview | null;
24
25
  versionFollowTarget?: WorkspaceVersionFollowTarget | null;
26
+ diffLens?: ExploreDiffLens | null;
25
27
  crossBranchSettings: CrossBranchContextSettings;
26
28
  hoverLocked?: boolean;
27
29
  }
@@ -16,7 +16,7 @@ export declare function setHiddenTags(tags: Set<string>): void;
16
16
  export declare function setVersionDiff(elementChanges: Map<number, string>, connectorChanges: Map<number, string>, elementLineDeltas?: Map<number, {
17
17
  added: number;
18
18
  removed: number;
19
- }>): void;
19
+ }>, contextElementIds?: Set<number>, contextConnectorIds?: Set<number>, diffLensActive?: boolean): void;
20
20
  export declare function viewOriginX(view: ZUIViewState): number;
21
21
  export declare function viewOriginY(view: ZUIViewState): number;
22
22
  export declare function worldToScreenX(worldX: number, view: ZUIViewState): number;
@@ -127,6 +127,7 @@ export type HoveredItem = {
127
127
  } | {
128
128
  type: 'edge';
129
129
  data: {
130
+ id?: number;
130
131
  sourceId: string;
131
132
  targetId: string;
132
133
  label: string;