Skip to content

Commit

Permalink
fix: fix (for real) RichTextSchema import
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjoverm committed Dec 13, 2022
1 parent 3517380 commit 7d0671c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 10 additions & 5 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,6 @@ export const useStoryblokBridge = <
});
};

export { useStoryblokBridge as registerStoryblokBridge };

export { default as apiPlugin } from "./modules/api";
export { default as storyblokEditable } from "./modules/editable";

export const storyblokInit = (pluginOptions: SbSDKOptions = {}) => {
const {
bridge,
Expand Down Expand Up @@ -141,5 +136,15 @@ export const renderRichText = (

export const loadStoryblokBridge = () => loadBridge(bridgeLatest);

export { useStoryblokBridge as registerStoryblokBridge };

export { default as apiPlugin } from "./modules/api";
export { default as storyblokEditable } from "./modules/editable";

export {
RichtextResolver as RichTextResolver,
RichtextSchema as RichTextSchema,
} from "storyblok-js-client";

// Reexport all types so users can have access to them
export * from "./types";
2 changes: 0 additions & 2 deletions lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,4 @@ export type {
ISbStoriesParams, // previously StoriesParams
ISbStoryParams, // previously StoryParams
ISbRichtext, // previously Richtext
RichtextResolver as RichTextResolver,
RichtextSchema as RichTextSchema,
} from "storyblok-js-client";

0 comments on commit 7d0671c

Please sign in to comment.