From 4265ae2509f79af9dbca8d52daf5c2f1b4a50a51 Mon Sep 17 00:00:00 2001 From: FatimaSaleem21 <111277464+FatimaSaleem21@users.noreply.github.com> Date: Wed, 26 Jun 2024 17:04:48 +0500 Subject: [PATCH] fix(core): add unexported types (#6070) Co-authored-by: Batuhan Wilhelm --- .changeset/tough-elephants-teach.md | 9 +++++++ packages/core/src/index.tsx | 39 +++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 .changeset/tough-elephants-teach.md diff --git a/.changeset/tough-elephants-teach.md b/.changeset/tough-elephants-teach.md new file mode 100644 index 000000000000..4f6104a64491 --- /dev/null +++ b/.changeset/tough-elephants-teach.md @@ -0,0 +1,9 @@ +--- +"@refinedev/core": patch +--- + +fix(core): add unexported types in `index.tsx` + +The `refinedev/core` package has many unexported types that are not accessible for use outside the package. This change aims to address this limitation by exporting those missing types. + +Resolves [#6041](https://github.com/refinedev/refine/issues/6041) diff --git a/packages/core/src/index.tsx b/packages/core/src/index.tsx index bb5d413387a6..28b47a3411c3 100644 --- a/packages/core/src/index.tsx +++ b/packages/core/src/index.tsx @@ -47,22 +47,32 @@ export { AccessControlProvider, AccessControlProvider as AccessControlBindings, CanParams, + CanResponse, CanReturnType, IAccessControlContext, + IAccessControlContextReturnType, } from "./contexts/accessControl/types.js"; export { AuditLogProvider, + IAuditLogContext, ILog, ILogData, LogParams, } from "./contexts/auditLog/types.js"; export { + AuthActionResponse, AuthBindings, AuthProvider, + CheckResponse, + IAuthContext, + IdentityResponse, ILegacyAuthContext, LegacyAuthProvider, + OnErrorResponse, + PermissionResponse, + SuccessNotificationResponse, } from "./contexts/auth/types.js"; export { @@ -107,6 +117,20 @@ export { BaseOption, IQueryKeys, Prettify, + Context, + ContextQuery, + DataProviders, + IDataContext, + GraphQLQueryOptions, + Fields, + NestedField, + PrevContext, + PreviousQuery, + QueryBuilderOptions, + QueryResponse, + RefineError, + ValidationErrors, + VariableOptions, } from "./contexts/data/types.js"; export { @@ -123,6 +147,7 @@ export { export { ILiveContext, + ILiveModeContextProvider, LiveEvent, LiveCommonParams, LiveManyParams, @@ -141,6 +166,7 @@ export { } from "./contexts/notification/types.js"; export { + DashboardPageProps, IRefineContext, IRefineContextOptions, IRefineContextProvider, @@ -158,7 +184,14 @@ export { IResourceContext, IResourceItem, ITreeMenu, + IMenuItem, + ResourceAuditLogPermissions, ResourceBindings, + RouteableProperties, + ResourceRouteComponent, + ResourceRouteComposition, + ResourceRouteDefinition, + ResourceRoutePath, } from "./contexts/resource/types.js"; export { @@ -184,4 +217,10 @@ export { RouterProvider as RouterBindings, } from "./contexts/router/types.js"; +export { + ActionTypes, + IUndoableQueue, + IUndoableQueueContext, +} from "./contexts/undoableQueue/types.js"; + export { IUnsavedWarnContext } from "./contexts/unsavedWarn/types.js";