@tldiagram/core-ui 1.94.2 → 1.94.3
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/client.d.ts +9 -1
- package/dist/components/NodeHoverCard.d.ts +3 -2
- package/dist/index.js +2441 -2372
- package/dist/pages/InfiniteZoom.d.ts +1 -1
- package/package.json +1 -1
- package/src/api/client.ts +89 -1
- package/src/components/NodeHoverCard.tsx +20 -15
- package/src/pages/InfiniteZoom.tsx +19 -14
- package/src/pages/ViewEditor/index.tsx +9 -1
package/dist/api/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Connector, DependencyConnector, DependencyElement, ElementPlacement, ExploreData, LibraryElement, PlacedElement, View, ViewConnector, ViewLayer, ViewPlacement, ViewTreeNode } from '../types';
|
|
1
|
+
import type { Connector, DependencyConnector, DependencyElement, ElementPlacement, ExploreData, LibraryElement, PlacedElement, Tag, View, ViewConnector, ViewLayer, ViewPlacement, ViewTreeNode } from '../types';
|
|
2
2
|
import { PlanElement, PlanConnector } from '@buf/tldiagramcom_diagram.bufbuild_es/diag/v1/workspace_service_pb';
|
|
3
3
|
export interface DependenciesResponse {
|
|
4
4
|
elements: DependencyElement[];
|
|
@@ -35,6 +35,11 @@ export declare const api: {
|
|
|
35
35
|
placements: (id: number) => Promise<ViewPlacement[]>;
|
|
36
36
|
};
|
|
37
37
|
workspace: {
|
|
38
|
+
orgs: {
|
|
39
|
+
tagColors: {
|
|
40
|
+
list: () => Promise<Tag[]>;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
38
43
|
elements: {
|
|
39
44
|
list: (params?: {
|
|
40
45
|
limit?: number;
|
|
@@ -137,6 +142,9 @@ export declare const api: {
|
|
|
137
142
|
load: () => Promise<ExploreData & {
|
|
138
143
|
password_required?: boolean;
|
|
139
144
|
}>;
|
|
145
|
+
loadShared: (token: string, password?: string) => Promise<ExploreData & {
|
|
146
|
+
password_required?: boolean;
|
|
147
|
+
}>;
|
|
140
148
|
};
|
|
141
149
|
import: {
|
|
142
150
|
resources: (orgId: string, data: {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { type PlacedElement } from '../types';
|
|
1
|
+
import { type PlacedElement, type Tag as TagType } from '../types';
|
|
2
2
|
interface Props {
|
|
3
3
|
data: PlacedElement & {
|
|
4
4
|
hasChildLink?: boolean;
|
|
5
5
|
};
|
|
6
6
|
/** Bounding rect of the node element in screen (viewport) coordinates */
|
|
7
7
|
anchorRect: DOMRect;
|
|
8
|
+
tagColors?: Record<string, TagType>;
|
|
8
9
|
}
|
|
9
|
-
export default function NodeHoverCard({ data, anchorRect }: Props): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default function NodeHoverCard({ data, anchorRect, tagColors }: Props): import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
export {};
|