From 4ae7c65438a0492213915c750b31af5c9e95fd8c Mon Sep 17 00:00:00 2001 From: Kenan Date: Mon, 22 Jan 2024 16:58:52 +0000 Subject: [PATCH] fix exports --- packages/victory-create-container/src/create-container.ts | 8 +++----- packages/victory-create-container/src/index.ts | 6 +----- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/packages/victory-create-container/src/create-container.ts b/packages/victory-create-container/src/create-container.ts index 671df94b1..95c998449 100644 --- a/packages/victory-create-container/src/create-container.ts +++ b/packages/victory-create-container/src/create-container.ts @@ -75,7 +75,7 @@ const combineDefaultEvents = (defaultEvents: any[]) => { return events.filter(Boolean); }; -const combineContainerMixins = ( +export const combineContainerMixins = ( mixins: MixinFunction[], Container: React.ComponentType, ) => { @@ -138,7 +138,7 @@ const checkBehaviorName = ( } }; -const makeCreateContainerFunction = +export const makeCreateContainerFunction = ( mixinMap: Record, Container: React.ComponentType, @@ -169,7 +169,7 @@ const makeCreateContainerFunction = return combineContainerMixins([...firstMixins, ...secondMixins], Container); }; -const createContainer = makeCreateContainerFunction( +export const createContainer = makeCreateContainerFunction( { zoom: [zoomContainerMixin], voronoi: [voronoiContainerMixin], @@ -179,5 +179,3 @@ const createContainer = makeCreateContainerFunction( }, VictoryContainer, ); - -export { createContainer, makeCreateContainerFunction, combineContainerMixins }; diff --git a/packages/victory-create-container/src/index.ts b/packages/victory-create-container/src/index.ts index 3a1c18681..5f9b97723 100644 --- a/packages/victory-create-container/src/index.ts +++ b/packages/victory-create-container/src/index.ts @@ -1,5 +1 @@ -export { - combineContainerMixins, - makeCreateContainerFunction, - createContainer, -} from "./create-container"; +export * from "./create-container";