From 35bde3c1ee35e5cb9e3941e02a2f02c47bbf16b3 Mon Sep 17 00:00:00 2001 From: Patrik Affentranger Date: Fri, 27 May 2022 12:02:03 +0800 Subject: [PATCH] feat: export more types from sitecore-jss & jss-react --- packages/sitecore-jss-nextjs/src/index.ts | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/packages/sitecore-jss-nextjs/src/index.ts b/packages/sitecore-jss-nextjs/src/index.ts index 1c2a21343a..110f69c126 100644 --- a/packages/sitecore-jss-nextjs/src/index.ts +++ b/packages/sitecore-jss-nextjs/src/index.ts @@ -14,6 +14,7 @@ export { resetEditorChromes, isExperienceEditorActive, resetExperienceEditorChromes, + resolveUrl, } from '@sitecore-jss/sitecore-jss/utils'; export { LayoutService, @@ -25,6 +26,7 @@ export { GraphQLLayoutServiceConfig, RestLayoutService, RestLayoutServiceConfig, + PlaceholderData, PlaceholdersData, RouteData, Field, @@ -107,8 +109,8 @@ export { editingDataService, } from './services/editing-data-service'; -export { Link } from './components/Link'; -export { RichText } from './components/RichText'; +export { Link, LinkProps } from './components/Link'; +export { RichText, RichTextProps } from './components/RichText'; export { Placeholder } from './components/Placeholder'; export { NextImage } from './components/NextImage'; @@ -116,6 +118,8 @@ export { ComponentFactory, Image, ImageField, + ImageFieldValue, + ImageProps, LinkField, LinkFieldValue, Text, @@ -124,6 +128,7 @@ export { File, FileField, VisitorIdentification, + PlaceholderComponentProps, SitecoreContext, SitecoreContextState, SitecoreContextValue, @@ -135,3 +140,11 @@ export { withPlaceholder, withDatasourceCheck, } from '@sitecore-jss/sitecore-jss-react'; + +export { ImageSizeParameters } from '@sitecore-jss/sitecore-jss-react/types/components/Image'; + +export { + ComponentConsumerProps, + WithSitecoreContextOptions, + WithSitecoreContextProps, +} from '@sitecore-jss/sitecore-jss-react/types/enhancers/withSitecoreContext';