@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.
- package/dist/api/transport-vscode.d.ts +0 -1
- package/dist/components/ZUI/ZUICanvas.d.ts +2 -0
- package/dist/components/ZUI/renderer.d.ts +1 -1
- package/dist/components/ZUI/types.d.ts +1 -0
- package/dist/index.js +8229 -7834
- package/dist/lib/vscodeBridge.d.ts +9 -2
- package/dist/utils/exploreDiffLens.d.ts +47 -0
- package/dist/utils/exploreDiffLens.test.d.ts +1 -0
- package/dist/utils/watchDiffSummary.d.ts +4 -0
- package/dist/utils/watchDiffSummary.test.d.ts +1 -0
- package/package.json +2 -1
- package/src/App.tsx +13 -8
- package/src/api/transport-vscode.ts +3 -11
- package/src/components/ElementLibrary.tsx +1 -0
- package/src/components/ElementNode.tsx +15 -3
- package/src/components/WorkspacePanel.tsx +34 -8
- package/src/components/ZUI/ZUICanvas.tsx +103 -2
- package/src/components/ZUI/renderer.ts +40 -4
- package/src/components/ZUI/types.ts +1 -0
- package/src/components/ZUI/useZUIInteraction.ts +3 -0
- package/src/config/runtime-vscode.ts +2 -4
- package/src/context/WorkspaceVersionContext.tsx +4 -4
- package/src/lib/vscodeBridge.ts +22 -3
- package/src/pages/InfiniteZoom.tsx +210 -0
- package/src/types/offline-ambient.d.ts +1 -0
- package/src/utils/exploreDiffLens.test.ts +185 -0
- package/src/utils/exploreDiffLens.ts +262 -0
- package/src/utils/technologyCatalog.ts +5 -0
- package/src/utils/url.ts +7 -0
- package/src/utils/watchDiffSummary.test.ts +95 -0
- package/src/utils/watchDiffSummary.ts +35 -2
- package/src/vscode-entry.tsx +56 -0
|
@@ -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
|
-
}
|
|
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;
|