Skip to content

Commit bf16c85

Browse files
committed
don't use blueprint intent directly, use our own export for it
1 parent ef5867f commit bf16c85

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/components/Tooltip/Tooltip.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
import classNames from "classnames";
99

1010
import { CLASSPREFIX as eccgui } from "../../configuration/constants";
11+
import { IntentBlueprint } from "../../common/Intent";
1112

1213
import { Markdown, MarkdownProps } from "./../../cmem/markdown/Markdown";
1314

@@ -52,7 +53,7 @@ export interface TooltipProps extends Omit<BlueprintTooltipProps, "position" | "
5253
/**
5354
* Intent state of the tooltip.
5455
*/
55-
intent?: BlueprintTooltipProps["intent"] | "accent";
56+
intent?: IntentBlueprint | "accent";
5657
}
5758

5859
export type TooltipSize = "small" | "medium" | "large";

src/extensions/react-flow/handles/HandleDefault.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import React, { memo } from "react";
22
import { Handle as HandleV9, HandleProps as ReactFlowHandleV9Props } from "react-flow-renderer";
33
import { Classes as BlueprintClasses } from "@blueprintjs/core";
4-
import { Intent } from "@blueprintjs/core/src/common/intent";
54
import { Handle as HandleV12, HandleProps as ReactFlowHandleV12Props } from "@xyflow/react";
65

7-
import { intentClassName, IntentTypes } from "../../../common/Intent";
6+
import { intentClassName, IntentTypes, IntentBlueprint } from "../../../common/Intent";
87
import { TooltipProps } from "../../../components";
98
import { CLASSPREFIX as eccgui } from "../../../configuration/constants";
109
import { ReacFlowVersionSupportProps, useReactFlowVersion } from "../versionsupport";
@@ -84,7 +83,7 @@ export const HandleDefault = memo(
8483
},
8584
},
8685
},
87-
intent: intent as Intent,
86+
intent: intent as IntentBlueprint,
8887
className: `${eccgui}-graphviz__handle__tooltip-target`,
8988
isOpen: extendedTooltipDisplayed,
9089
};

0 commit comments

Comments
 (0)