@storyblok/vue 8.0.9 → 8.1.1
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 +94 -0
- package/dist/StoryblokComponent.vue.d.ts +1 -4
- package/dist/components/StoryblokRichText.vue.d.ts +12 -0
- package/dist/composables/useStoryblokRichText.d.ts +9 -0
- package/dist/index.d.ts +5 -13
- package/dist/storyblok-vue.js +3 -3
- package/dist/storyblok-vue.mjs +617 -415
- package/dist/types.d.ts +21 -2
- package/package.json +3 -3
package/dist/types.d.ts
CHANGED
|
@@ -1,8 +1,27 @@
|
|
|
1
|
+
import type { SbBlokData, SbSDKOptions } from "@storyblok/js";
|
|
1
2
|
import type StoryblokComponent from "./StoryblokComponent.vue";
|
|
3
|
+
import type { StoryblokRichTextDocumentNode, StoryblokRichTextResolvers } from "@storyblok/js";
|
|
4
|
+
import type { VNode } from "vue";
|
|
2
5
|
declare module "@vue/runtime-core" {
|
|
3
6
|
interface GlobalComponents {
|
|
4
7
|
StoryblokComponent: typeof StoryblokComponent;
|
|
5
8
|
}
|
|
6
9
|
}
|
|
7
|
-
export type { ISbConfig, ISbCache, ISbResult, ISbResponse, ISbError, ISbNode, ISbSchema, ThrottleFn, AsyncFn, ArrayFn, ISbContentMangmntAPI, ISbManagmentApiResult, ISbStories, ISbStory, ISbDimensions, StoryblokComponentType, ISbStoryData, ISbAlternateObject, ISbStoriesParams, ISbStoryParams,
|
|
8
|
-
export
|
|
10
|
+
export type { ISbConfig, ISbCache, ISbResult, ISbResponse, ISbError, ISbNode, ISbSchema, ThrottleFn, AsyncFn, ArrayFn, ISbContentMangmntAPI, ISbManagmentApiResult, ISbStories, ISbStory, ISbDimensions, StoryblokComponentType, ISbStoryData, ISbAlternateObject, ISbStoriesParams, ISbStoryParams, SbBlokData, SbBlokKeyDataTypes, SbSDKOptions, StoryblokBridgeConfigV2, StoryblokBridgeV2, StoryblokClient, StoryblokRichTextDocumentNode, StoryblokRichTextNodeTypes, StoryblokRichTextNode, StoryblokRichTextResolvers, StoryblokRichTextNodeResolver, StoryblokRichTextImageOptimizationOptions, } from "@storyblok/js";
|
|
11
|
+
export interface SbVueSDKOptions extends SbSDKOptions {
|
|
12
|
+
/**
|
|
13
|
+
* Show a fallback component in your frontend if a component is not registered properly.
|
|
14
|
+
*/
|
|
15
|
+
enableFallbackComponent?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Provide a custom fallback component, e.g. "CustomFallback".
|
|
18
|
+
*/
|
|
19
|
+
customFallbackComponent?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface SbComponentProps {
|
|
22
|
+
blok: SbBlokData;
|
|
23
|
+
}
|
|
24
|
+
export interface StoryblokRichTextProps {
|
|
25
|
+
doc: StoryblokRichTextDocumentNode;
|
|
26
|
+
resolvers?: StoryblokRichTextResolvers<VNode>;
|
|
27
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storyblok/vue",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.1.1",
|
|
4
4
|
"description": "Storyblok directive for get editable elements.",
|
|
5
5
|
"main": "./dist/storyblok-vue.js",
|
|
6
6
|
"module": "./dist/storyblok-vue.mjs",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"prepublishOnly": "npm run build && cp ../README.md ./"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@storyblok/js": "^3.
|
|
28
|
+
"@storyblok/js": "^3.1.4"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@babel/core": "^7.24.7",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"eslint-plugin-jest": "^28.5.0",
|
|
43
43
|
"jest": "^29.6.4",
|
|
44
44
|
"typescript": "^4.9.5",
|
|
45
|
-
"vite": "^5.4.
|
|
45
|
+
"vite": "^5.4.6",
|
|
46
46
|
"vue": "^3.4.27",
|
|
47
47
|
"vue-tsc": "^1.8.0"
|
|
48
48
|
},
|