@storyblok/js 1.6.5 → 1.6.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
- import { SbSDKOptions, StoryblokBridgeConfigV2, StoryData, SbInitResult } from "./types";
2
- export declare const useStoryblokBridge: <T = void>(id: Number, cb: (newStory: StoryData<T>) => void, options?: StoryblokBridgeConfigV2) => void;
1
+ import { SbSDKOptions, StoryblokBridgeConfigV2, StoryData, SbInitResult, StoryblokComponentType } from "./types";
2
+ export declare const useStoryblokBridge: <T extends StoryblokComponentType<string> = any>(id: Number, cb: (newStory: StoryData<T>) => void, options?: StoryblokBridgeConfigV2) => void;
3
3
  export { default as apiPlugin } from "./modules/api";
4
4
  export { default as storyblokEditable } from "./modules/editable";
5
5
  export declare const storyblokInit: (pluginOptions?: SbSDKOptions) => SbInitResult;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storyblok/js",
3
- "version": "1.6.5",
3
+ "version": "1.6.6",
4
4
  "description": "SDK to integrate Storyblok into your project using JavaScript.",
5
5
  "main": "./dist/storyblok-js.js",
6
6
  "module": "./dist/storyblok-js.mjs",