@storyblok/js 3.5.0 → 4.0.0
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/README.md +28 -41
- package/dist/index.d.ts +9 -5
- package/dist/storyblok-js.js +1 -24
- package/dist/storyblok-js.mjs +559 -913
- package/dist/types/index.d.ts +1 -7
- package/package.json +2 -2
package/dist/types/index.d.ts
CHANGED
@@ -16,16 +16,11 @@ export type SbBlokKeyDataTypes = string | number | object | boolean | undefined;
|
|
16
16
|
export interface SbBlokData extends ISbComponentType<string> {
|
17
17
|
[index: string]: SbBlokKeyDataTypes;
|
18
18
|
}
|
19
|
-
export interface SbRichTextOptions {
|
20
|
-
schema?: ISbConfig['richTextSchema'];
|
21
|
-
resolver?: ISbConfig['componentResolver'];
|
22
|
-
}
|
23
19
|
export interface SbSDKOptions {
|
24
20
|
bridge?: boolean;
|
25
21
|
accessToken?: string;
|
26
22
|
use?: any[];
|
27
23
|
apiOptions?: ISbConfig;
|
28
|
-
richText?: SbRichTextOptions;
|
29
24
|
bridgeUrl?: string;
|
30
25
|
}
|
31
26
|
export interface ISbEventPayload<S extends ISbComponentType<string> = any> {
|
@@ -54,8 +49,7 @@ export type { ArrayFn, AsyncFn, ISbAlternateObject, // previously AlternateObjec
|
|
54
49
|
ISbCache, // previously StoryblokCache
|
55
50
|
ISbComponentType as StoryblokComponentType, ISbConfig, // previously StoryblokConfig
|
56
51
|
ISbContentMangmntAPI, ISbDimensions, ISbError, ISbManagmentApiResult, // previously StoryblokManagmentApiResult
|
57
|
-
|
58
|
-
ISbRichtext, // previously Richtext
|
52
|
+
ISbResponse, ISbResult, // previously StoryblokResult
|
59
53
|
ISbSchema, ISbStories, // previously Stories
|
60
54
|
ISbStoriesParams, // previously StoriesParams
|
61
55
|
ISbStory, // previously Story
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@storyblok/js",
|
3
3
|
"type": "module",
|
4
|
-
"version": "
|
4
|
+
"version": "4.0.0",
|
5
5
|
"private": false,
|
6
6
|
"packageManager": "pnpm@10.2.0",
|
7
7
|
"description": "SDK to integrate Storyblok into your project using JavaScript.",
|
@@ -44,7 +44,7 @@
|
|
44
44
|
},
|
45
45
|
"dependencies": {
|
46
46
|
"@storyblok/richtext": "3.2.0",
|
47
|
-
"storyblok-js-client": "
|
47
|
+
"storyblok-js-client": "7.0.0"
|
48
48
|
},
|
49
49
|
"devDependencies": {
|
50
50
|
"@commitlint/cli": "^19.7.1",
|