@storyblok/js
Advanced tools
Comparing version 1.6.3 to 1.6.4
import { SbSDKOptions, StoryblokBridgeConfigV2, StoryData, SbInitResult } from "./types"; | ||
export declare const useStoryblokBridge: (id: Number, cb: (newStory: StoryData) => void, options?: StoryblokBridgeConfigV2) => void; | ||
export declare const useStoryblokBridge: <T = void>(id: Number, cb: (newStory: StoryData<T>) => void, options?: StoryblokBridgeConfigV2) => void; | ||
export { default as apiPlugin } from "./modules/api"; | ||
@@ -4,0 +4,0 @@ export { default as storyblokEditable } from "./modules/editable"; |
@@ -20,7 +20,7 @@ import StoryblokJSClient, { StoryblokConfig, StoryblokComponent } from "storyblok-js-client"; | ||
accessToken?: string; | ||
use?: [any]; | ||
use?: any[]; | ||
apiOptions?: StoryblokConfig; | ||
} | ||
export interface StoryblokBridgeConfigV2 { | ||
resolveRelations?: [string]; | ||
resolveRelations?: string[]; | ||
customParent?: string; | ||
@@ -27,0 +27,0 @@ preventClicks?: boolean; |
{ | ||
"name": "@storyblok/js", | ||
"version": "1.6.3", | ||
"version": "1.6.4", | ||
"description": "SDK to integrate Storyblok into your project using JavaScript.", | ||
@@ -34,3 +34,3 @@ "main": "./dist/storyblok-js.js", | ||
"@babel/core": "^7.18.6", | ||
"@babel/preset-env": "^7.18.6", | ||
"@babel/preset-env": "^7.18.9", | ||
"@tsconfig/recommended": "^1.0.1", | ||
@@ -37,0 +37,0 @@ "babel-jest": "^28.1.0", |
46180