diff --git a/src/ArcherContainer/ArcherContainer.types.ts b/src/ArcherContainer/ArcherContainer.types.ts index 93d6e81..fc3c17e 100644 --- a/src/ArcherContainer/ArcherContainer.types.ts +++ b/src/ArcherContainer/ArcherContainer.types.ts @@ -65,7 +65,7 @@ export type ArcherContainerProps = { children?: React.ReactNode | FunctionChild; }; -export type ArcherContainerHandle = { +export type ArcherContainerRef = { /** * Use this to recompute all the arrow positions. Useful if arrows do not properly rerender * after the viewport or some elements moved. @@ -75,4 +75,8 @@ export type ArcherContainerHandle = { arrowMarkerUniquePrefix: string; }; +// Keep this name for retrocompatibility +// should be a breaking change of 4.0.0 +export type ArcherContainerHandle = ArcherContainerRef; + export type SourceToTargetsArrayType = SourceToTargetType[]; diff --git a/src/react-archer.ts b/src/react-archer.ts index 7748255..56af956 100644 --- a/src/react-archer.ts +++ b/src/react-archer.ts @@ -1,2 +1,3 @@ export { default as ArcherElement } from './ArcherElement/ArcherElement'; export { default as ArcherContainer } from './ArcherContainer/ArcherContainer'; +export { ArcherContainerRef } from './ArcherContainer/ArcherContainer.types';