@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/dist/types.d.ts CHANGED
@@ -1,13 +1,12 @@
1
- import type { SbBlokData, SbSDKOptions } from "@storyblok/js";
2
- import type StoryblokComponent from "./StoryblokComponent.vue";
3
- import type { StoryblokRichTextDocumentNode, StoryblokRichTextResolvers } from "@storyblok/js";
4
- import type { VNode } from "vue";
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 { ISbConfig, ISbCache, ISbResult, ISbResponse, ISbError, ISbNode, ISbSchema, 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";
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
- "version": "8.1.6",
4
- "description": "Storyblok directive for get editable elements.",
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
- "build": "vite build && vue-tsc --declaration --emitDeclarationOnly",
21
- "test": "npm run test:unit && npm run test:e2e",
22
- "test:unit": "jest __tests__",
23
- "test:e2e": "cypress run --component",
24
- "test:e2e-watch": "cypress open --component",
25
- "prepublishOnly": "npm run build && cp ../README.md ./"
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": "^3.1.9"
49
+ "@storyblok/js": "3.2.1"
29
50
  },
30
51
  "devDependencies": {
31
- "@babel/core": "^7.26.0",
32
- "@cypress/vite-dev-server": "^5.2.1",
33
- "@cypress/vue": "^6.0.1",
34
- "@vitejs/plugin-vue": "^5.2.0",
35
- "@vue/babel-preset-app": "^5.0.8",
36
- "@vue/test-utils": "2.4.6",
37
- "@vue/tsconfig": "^0.1.3",
38
- "@vue/vue3-jest": "^29.2.6",
39
- "babel-jest": "^29.7.0",
40
- "cypress": "^13.16.0",
41
- "eslint-plugin-cypress": "^2.15.2",
42
- "eslint-plugin-jest": "^28.9.0",
43
- "jest": "^29.7.0",
44
- "typescript": "^4.9.5",
45
- "vite": "^5.4.11",
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-tsc": "^1.8.27"
70
+ "vue-router": "^4.5.0",
71
+ "vue-tsc": "^2.1.10"
48
72
  },
49
- "babel": {
50
- "presets": [
51
- "@vue/babel-preset-app"
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,8 +0,0 @@
1
- import { mount } from "cypress/vue";
2
- declare global {
3
- namespace Cypress {
4
- interface Chainable {
5
- mount: typeof mount;
6
- }
7
- }
8
- }
@@ -1 +0,0 @@
1
- import "./commands";
@@ -1,3 +0,0 @@
1
- /// <reference types="cypress" />
2
- declare const _default: Cypress.ConfigOptions<any>;
3
- export default _default;
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}