@storyblok/js 1.6.3 → 1.6.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  import { SbSDKOptions, StoryblokBridgeConfigV2, StoryData, SbInitResult } from "./types";
2
- export declare const useStoryblokBridge: (id: Number, cb: (newStory: StoryData) => void, options?: StoryblokBridgeConfigV2) => void;
2
+ export declare const useStoryblokBridge: <T = void>(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;
@@ -17,11 +17,11 @@ export interface SbBlokData extends StoryblokComponent<string> {
17
17
  export interface SbSDKOptions {
18
18
  bridge?: boolean;
19
19
  accessToken?: string;
20
- use?: [any];
20
+ use?: any[];
21
21
  apiOptions?: StoryblokConfig;
22
22
  }
23
23
  export interface StoryblokBridgeConfigV2 {
24
- resolveRelations?: [string];
24
+ resolveRelations?: string[];
25
25
  customParent?: string;
26
26
  preventClicks?: boolean;
27
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storyblok/js",
3
- "version": "1.6.3",
3
+ "version": "1.6.4",
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",
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "devDependencies": {
33
33
  "@babel/core": "^7.18.6",
34
- "@babel/preset-env": "^7.18.6",
34
+ "@babel/preset-env": "^7.18.9",
35
35
  "@tsconfig/recommended": "^1.0.1",
36
36
  "babel-jest": "^28.1.0",
37
37
  "cypress": "^9.6.1",