@storyblok/astro 6.0.1 → 6.1.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ import { Loader } from 'astro/loaders';
2
+ interface StoryblokLoaderConfig {
3
+ STORYBLOK_TOKEN: string;
4
+ version: 'draft' | 'published';
5
+ }
6
+ export declare function storyblokLoader(config: StoryblokLoaderConfig): Loader;
7
+ export {};
package/dist/index.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  import { default as storyblokIntegration } from './lib/storyblok-integration';
2
+ export { storyblokLoader } from './content-loader/storyblokLoader';
2
3
  export { getLiveStory, renderRichText, useStoryblokApi } from './lib/helpers';
3
4
  export { handleStoryblokMessage } from './live-preview/handleStoryblokMessage';
4
5
  export * from './types';
5
6
  export { toCamelCase } from './utils/toCamelCase';
6
- export { loadStoryblokBridge, RichTextResolver, RichTextSchema, storyblokEditable, } from '@storyblok/js';
7
7
  export { storyblokIntegration as storyblok };
8
+ export { loadStoryblokBridge, RichTextResolver, RichTextSchema, storyblokEditable, } from '@storyblok/js';
@@ -4,5 +4,5 @@ export declare function useStoryblokApi(): StoryblokClient;
4
4
  export declare function getLiveStory(Astro: Readonly<AstroGlobal>): Promise<ISbStoryData<import('@storyblok/js').StoryblokComponentType<string> & {
5
5
  [index: string]: any;
6
6
  }> | null>;
7
- export declare function renderRichText(data?: ISbRichtext, options?: SbRichTextOptions): string;
7
+ export declare function renderRichText(data?: ISbRichtext, options?: SbRichTextOptions): string | undefined;
8
8
  export declare function initStoryblokBridge(config: boolean | StoryblokBridgeConfigV2): string;