@storyblok/js 1.6.3 → 1.6.4
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.
- package/dist/types/index.d.ts +1 -1
- package/dist/types/types.d.ts +2 -2
- package/package.json +2 -2
package/dist/types/index.d.ts
CHANGED
@@ -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;
|
package/dist/types/types.d.ts
CHANGED
@@ -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?: [
|
20
|
+
use?: any[];
|
21
21
|
apiOptions?: StoryblokConfig;
|
22
22
|
}
|
23
23
|
export interface StoryblokBridgeConfigV2 {
|
24
|
-
resolveRelations?: [
|
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
|
+
"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.
|
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",
|