Skip to content

Commit

Permalink
feat: export more types from sitecore-jss & jss-react
Browse files Browse the repository at this point in the history
  • Loading branch information
pzi committed May 27, 2022
1 parent c64d276 commit 35bde3c
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions packages/sitecore-jss-nextjs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export {
resetEditorChromes,
isExperienceEditorActive,
resetExperienceEditorChromes,
resolveUrl,
} from '@sitecore-jss/sitecore-jss/utils';
export {
LayoutService,
Expand All @@ -25,6 +26,7 @@ export {
GraphQLLayoutServiceConfig,
RestLayoutService,
RestLayoutServiceConfig,
PlaceholderData,
PlaceholdersData,
RouteData,
Field,
Expand Down Expand Up @@ -107,15 +109,17 @@ 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';

export {
ComponentFactory,
Image,
ImageField,
ImageFieldValue,
ImageProps,
LinkField,
LinkFieldValue,
Text,
Expand All @@ -124,6 +128,7 @@ export {
File,
FileField,
VisitorIdentification,
PlaceholderComponentProps,
SitecoreContext,
SitecoreContextState,
SitecoreContextValue,
Expand All @@ -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';

0 comments on commit 35bde3c

Please sign in to comment.