Skip to content

Commit ae1b1ff

Browse files
committed
fix: rewrite clab-ui self imports for package installs
1 parent 0d245e8 commit ae1b1ff

File tree

83 files changed

+133
-133
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+133
-133
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@srl-labs/clab-ui",
3-
"version": "0.0.6",
3+
"version": "0.0.7",
44
"private": false,
55
"type": "module",
66
"main": "src/index.ts",

packages/ui/src/AppContent.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import React from "react";
44
import type { ReactFlowInstance } from "@xyflow/react";
55
import Box from "@mui/material/Box";
66

7-
import { ContainerlabExplorerView } from "@srl-labs/clab-ui/explorer";
8-
import type { NetemState } from "@srl-labs/clab-ui/core/parsing";
9-
import type { TopoEdge, TopoNode, TopologyEdgeData, TopologyHostCommand } from "@srl-labs/clab-ui/core/types";
7+
import { ContainerlabExplorerView } from "./explorer/index";
8+
import type { NetemState } from "./core/parsing/index";
9+
import type { TopoEdge, TopoNode, TopologyEdgeData, TopologyHostCommand } from "./core/types/index";
1010

1111
import { MuiThemeProvider } from "./theme";
1212
import {

packages/ui/src/annotations/annotationNodeConverters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import type {
1616
FreeTextAnnotation,
1717
FreeShapeAnnotation,
1818
GroupStyleAnnotation
19-
} from "@srl-labs/clab-ui/core/types/topology";
19+
} from "../core/types/topology";
2020
import type {
2121
FreeTextNodeData,
2222
FreeShapeNodeData,

packages/ui/src/annotations/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Free shape annotation constants (used across panels and SVG helpers).
33
*/
4-
import type { FreeShapeAnnotation } from "@srl-labs/clab-ui/core/types/topology";
4+
import type { FreeShapeAnnotation } from "../core/types/topology";
55

66
export const DEFAULT_SHAPE_WIDTH = 50;
77
export const DEFAULT_SHAPE_HEIGHT = 50;

packages/ui/src/annotations/edgeAnnotations.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { EdgeAnnotation } from "@srl-labs/clab-ui/core/types/topology";
2-
import type { TopoEdge } from "@srl-labs/clab-ui/core/types/graph";
1+
import type { EdgeAnnotation } from "../core/types/topology";
2+
import type { TopoEdge } from "../core/types/graph";
33

44
import { DEFAULT_ENDPOINT_LABEL_OFFSET, parseEndpointLabelOffset } from "./endpointLabelOffset";
55

packages/ui/src/annotations/groupMembership.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
*/
44
import type { Node } from "@xyflow/react";
55

6-
import type { TopoNode } from "@srl-labs/clab-ui/core/types/graph";
7-
import type { GroupStyleAnnotation, NodeAnnotation } from "@srl-labs/clab-ui/core/types/topology";
6+
import type { TopoNode } from "../core/types/graph";
7+
import type { GroupStyleAnnotation, NodeAnnotation } from "../core/types/topology";
88

99
import { isAnnotationNodeType } from "./annotationNodeConverters";
1010

packages/ui/src/components/canvas/LinkPreview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { ConnectionLineComponentProps, Edge, Node } from "@xyflow/react";
55
import { useEdges } from "../../stores/graphStore";
66
import { allocateEndpointsForLink } from "../../utils/endpointAllocator";
77
import { buildEdgeId } from "../../utils/edgeId";
8-
import type { TopoEdge, TopoNode } from "@srl-labs/clab-ui/core/types/graph";
8+
import type { TopoEdge, TopoNode } from "../../core/types/graph";
99

1010
import { calculateControlPoint, getEdgePoints, getLabelPosition } from "./edgeGeometry";
1111

packages/ui/src/components/canvas/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import type {
1717
FreeTextRFNode,
1818
FreeShapeRFNode,
1919
GroupRFNode
20-
} from "@srl-labs/clab-ui/core/types/graph";
21-
import { DEFAULT_ICON_COLOR, ROLE_SVG_MAP } from "@srl-labs/clab-ui/core/types/graph";
20+
} from "../../core/types/graph";
21+
import { DEFAULT_ICON_COLOR, ROLE_SVG_MAP } from "../../core/types/graph";
2222
import { vscodePalette } from "../../theme/vscodeTheme";
2323
export type GridStyle = "dotted" | "quadratic";
2424

packages/ui/src/components/panels/BulkLinkModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
} from "@mui/material";
1616
import { Close as CloseIcon } from "@mui/icons-material";
1717

18-
import type { TopoNode, TopoEdge } from "@srl-labs/clab-ui/core/types/graph";
18+
import type { TopoNode, TopoEdge } from "../../core/types/graph";
1919
import { useGraphActions, useGraphStore } from "../../stores/graphStore";
2020

2121
import { CopyableCode } from "./bulk-link/CopyableCode";

0 commit comments

Comments
 (0)