@tldiagram/core-ui 1.94.1 → 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.
@@ -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: {
@@ -4,7 +4,6 @@ interface Props {
4
4
  existingElementIds: Set<number>;
5
5
  existingElements?: LibraryElement[];
6
6
  onCreateNew: () => void;
7
- refresh: number;
8
7
  isOpen: boolean;
9
8
  onClose: () => void;
10
9
  onTapAdd?: (obj: LibraryElement) => void;
@@ -17,6 +16,6 @@ interface Props {
17
16
  * Location: Left side panel/drawer on desktop. Collapsed under a button on mobile.
18
17
  * Aliases: Element sidebar, Library panel.
19
18
  */
20
- declare function ElementLibrary({ existingElementIds, existingElements, onCreateNew, refresh, isOpen, onClose, onTapAdd, onFindElement, onTouchDrop, }: Props): import("react/jsx-runtime").JSX.Element;
19
+ declare function ElementLibrary({ existingElementIds, existingElements, onCreateNew, isOpen, onClose, onTapAdd, onFindElement, onTouchDrop, }: Props): import("react/jsx-runtime").JSX.Element;
21
20
  declare const _default: import("react").MemoExoticComponent<typeof ElementLibrary>;
22
21
  export default _default;
@@ -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 {};