@storyblok/vue 8.1.6 → 8.1.8
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/LICENSE +21 -0
- package/README.md +171 -155
- package/dist/{FallbackComponent-C2j8Ky5h.mjs → FallbackComponent-U_HRL08c.js} +11 -5
- package/dist/components/FallbackComponent.vue.d.ts +6 -0
- package/dist/components/StoryblokComponent.vue.d.ts +5 -0
- package/dist/components/StoryblokRichText.vue.d.ts +2 -11
- package/dist/composables/useStoryblokRichText.d.ts +4 -4
- package/dist/index.d.ts +10 -10
- package/dist/storyblok-vue.js +9 -3
- package/dist/storyblok-vue.mjs +561 -509
- package/dist/types.d.ts +5 -6
- package/dist/vue.css +7 -0
- package/package.json +64 -68
- package/dist/FallbackComponent.vue.d.ts +0 -15
- package/dist/StoryblokComponent.vue.d.ts +0 -14
- package/dist/cypress/support/component.d.ts +0 -8
- package/dist/cypress/support/e2e.d.ts +0 -1
- package/dist/cypress.config.d.ts +0 -3
- package/dist/style.css +0 -1
package/dist/types.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
declare module "@vue/runtime-core" {
|
|
1
|
+
import { SbBlokData, SbSDKOptions, StoryblokRichTextDocumentNode, StoryblokRichTextResolvers } from '@storyblok/js';
|
|
2
|
+
import { default as StoryblokComponent } from './components/StoryblokComponent.vue';
|
|
3
|
+
import { VNode } from 'vue';
|
|
4
|
+
declare module 'vue' {
|
|
6
5
|
interface GlobalComponents {
|
|
7
6
|
StoryblokComponent: typeof StoryblokComponent;
|
|
8
7
|
}
|
|
9
8
|
}
|
|
10
|
-
export type {
|
|
9
|
+
export type { ArrayFn, AsyncFn, ISbAlternateObject, ISbCache, ISbConfig, ISbContentMangmntAPI, ISbDimensions, ISbError, ISbManagmentApiResult, ISbNode, ISbResponse, ISbResult, ISbSchema, ISbStories, ISbStoriesParams, ISbStory, ISbStoryData, ISbStoryParams, SbBlokData, SbBlokKeyDataTypes, SbSDKOptions, StoryblokBridgeConfigV2, StoryblokBridgeV2, StoryblokClient, StoryblokComponentType, StoryblokRichTextDocumentNode, StoryblokRichTextImageOptimizationOptions, StoryblokRichTextNode, StoryblokRichTextNodeResolver, StoryblokRichTextNodeTypes, StoryblokRichTextResolvers, } from '@storyblok/js';
|
|
11
10
|
export interface SbVueSDKOptions extends SbSDKOptions {
|
|
12
11
|
/**
|
|
13
12
|
* Show a fallback component in your frontend if a component is not registered properly.
|
package/dist/vue.css
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* name: @storyblok/vue
|
|
3
|
+
* (c) 2024
|
|
4
|
+
* description: SDK to integrate Storyblok into your project using Vue.
|
|
5
|
+
* author: Storyblok
|
|
6
|
+
*/
|
|
7
|
+
.fallback-component[data-v-9abcd1f2]{display:inline-flex;background-color:#eff1f3;text-align:center;padding:15px 30px;border-radius:5px}span.component[data-v-9abcd1f2]{color:#00b3b0;font-weight:700}
|
package/package.json
CHANGED
|
@@ -1,94 +1,90 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storyblok/vue",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "8.1.8",
|
|
5
|
+
"packageManager": "pnpm@9.12.2",
|
|
6
|
+
"description": "SDK to integrate Storyblok into your project using Vue.",
|
|
7
|
+
"author": "Storyblok",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/storyblok/storyblok-vue"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/storyblok/storyblok-vue/issues"
|
|
15
|
+
},
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"import": "./dist/index.mjs",
|
|
20
|
+
"require": "./dist/index.js"
|
|
21
|
+
},
|
|
22
|
+
"./rsc": {
|
|
23
|
+
"types": "./dist/rsc/index.d.ts",
|
|
24
|
+
"import": "./dist/rsc.mjs",
|
|
25
|
+
"require": "./dist/rsc.js"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
5
28
|
"main": "./dist/storyblok-vue.js",
|
|
6
29
|
"module": "./dist/storyblok-vue.mjs",
|
|
7
30
|
"types": "./dist/index.d.ts",
|
|
8
31
|
"files": [
|
|
9
32
|
"dist"
|
|
10
33
|
],
|
|
11
|
-
"exports": {
|
|
12
|
-
".": {
|
|
13
|
-
"import": "./dist/storyblok-vue.mjs",
|
|
14
|
-
"require": "./dist/storyblok-vue.js",
|
|
15
|
-
"types": "./dist/index.d.ts"
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
34
|
"scripts": {
|
|
19
35
|
"dev": "vite build --watch",
|
|
20
|
-
"
|
|
21
|
-
"test": "
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
36
|
+
"playground": "pnpm run --filter ./playground/vue dev",
|
|
37
|
+
"test": "pnpm run cy:components",
|
|
38
|
+
"build": "vite build ",
|
|
39
|
+
"lint": "eslint .",
|
|
40
|
+
"lint:fix": "eslint . --fix",
|
|
41
|
+
"cy:run": "cypress run",
|
|
42
|
+
"cy:open": "cypress open",
|
|
43
|
+
"cy:components": "cypress run-ct"
|
|
44
|
+
},
|
|
45
|
+
"peerDependencies": {
|
|
46
|
+
"vue": ">=3.4"
|
|
26
47
|
},
|
|
27
48
|
"dependencies": {
|
|
28
|
-
"@storyblok/js": "
|
|
49
|
+
"@storyblok/js": "3.2.1"
|
|
29
50
|
},
|
|
30
51
|
"devDependencies": {
|
|
31
|
-
"@
|
|
32
|
-
"@
|
|
33
|
-
"@
|
|
34
|
-
"@
|
|
35
|
-
"@
|
|
36
|
-
"@
|
|
37
|
-
"@vue
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"vite": "^
|
|
52
|
+
"@commitlint/cli": "^19.6.1",
|
|
53
|
+
"@commitlint/config-conventional": "^19.6.0",
|
|
54
|
+
"@rollup/plugin-typescript": "^12.1.2",
|
|
55
|
+
"@storyblok/eslint-config": "^0.3.0",
|
|
56
|
+
"@types/node": "^22.10.2",
|
|
57
|
+
"@typescript-eslint/parser": "^8.18.0",
|
|
58
|
+
"@vitejs/plugin-vue": "^5.2.1",
|
|
59
|
+
"cypress": "^13.17.0",
|
|
60
|
+
"eslint": "^9.17.0",
|
|
61
|
+
"eslint-plugin-vue": "^9.32.0",
|
|
62
|
+
"kolorist": "^1.8.0",
|
|
63
|
+
"pathe": "^1.1.2",
|
|
64
|
+
"typescript": "^5.7.2",
|
|
65
|
+
"vite": "^6.0.3",
|
|
66
|
+
"vite-plugin-banner": "^0.8.0",
|
|
67
|
+
"vite-plugin-dts": "^4.3.0",
|
|
68
|
+
"vitest": "^2.1.8",
|
|
46
69
|
"vue": "^3.5.13",
|
|
47
|
-
"vue-
|
|
70
|
+
"vue-router": "^4.5.0",
|
|
71
|
+
"vue-tsc": "^2.1.10"
|
|
48
72
|
},
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"@
|
|
73
|
+
"commitlint": {
|
|
74
|
+
"extends": [
|
|
75
|
+
"@commitlint/config-conventional"
|
|
52
76
|
]
|
|
53
77
|
},
|
|
54
|
-
"jest": {
|
|
55
|
-
"moduleFileExtensions": [
|
|
56
|
-
"js",
|
|
57
|
-
"json",
|
|
58
|
-
"vue"
|
|
59
|
-
],
|
|
60
|
-
"transform": {
|
|
61
|
-
"^.+\\.js$": "babel-jest",
|
|
62
|
-
"^.+\\.vue$": "@vue/vue3-jest"
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
"repository": {
|
|
66
|
-
"type": "git",
|
|
67
|
-
"url": "https://github.com/storyblok/storyblok-vue"
|
|
68
|
-
},
|
|
69
|
-
"keywords": [
|
|
70
|
-
"vue",
|
|
71
|
-
"storyblok"
|
|
72
|
-
],
|
|
73
|
-
"author": "Alexander Feiglstorfer",
|
|
74
|
-
"bugs": {
|
|
75
|
-
"url": "https://github.com/storyblok/storyblok-vue/issues"
|
|
76
|
-
},
|
|
77
|
-
"homepage": "https://github.com/storyblok/storyblok-vue",
|
|
78
78
|
"release": {
|
|
79
79
|
"branches": [
|
|
80
|
-
"main"
|
|
81
|
-
{
|
|
82
|
-
"name": "next",
|
|
83
|
-
"prerelease": true
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
"name": "beta",
|
|
87
|
-
"prerelease": true
|
|
88
|
-
}
|
|
80
|
+
"main"
|
|
89
81
|
]
|
|
90
82
|
},
|
|
91
83
|
"publishConfig": {
|
|
92
84
|
"access": "public"
|
|
85
|
+
},
|
|
86
|
+
"simple-git-hooks": {
|
|
87
|
+
"pre-commit": "pnpm lint",
|
|
88
|
+
"pre-push": "pnpm commitlint --last --verbose"
|
|
93
89
|
}
|
|
94
90
|
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { SbBlokData } from "./types";
|
|
2
|
-
export interface SbComponentProps {
|
|
3
|
-
blok: SbBlokData;
|
|
4
|
-
}
|
|
5
|
-
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SbComponentProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SbComponentProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
-
export default _default;
|
|
7
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
8
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
9
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
10
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
11
|
-
} : {
|
|
12
|
-
type: import('vue').PropType<T[K]>;
|
|
13
|
-
required: true;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { SbComponentProps } from "./types";
|
|
2
|
-
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SbComponentProps>>, {
|
|
3
|
-
value: import("vue").Ref<any, any>;
|
|
4
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SbComponentProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
5
|
-
export default _default;
|
|
6
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
7
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
8
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
9
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
10
|
-
} : {
|
|
11
|
-
type: import('vue').PropType<T[K]>;
|
|
12
|
-
required: true;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./commands";
|
package/dist/cypress.config.d.ts
DELETED
package/dist/style.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.fallback-component[data-v-93c770c0]{display:inline-flex;background-color:#eff1f3;text-align:center;padding:15px 30px;border-radius:5px}span.component[data-v-93c770c0]{color:#00b3b0;font-weight:700}
|