@storyblok/svelte 5.0.2 → 5.0.4-rc.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/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export * from './storyblok';
2
2
  export { default as StoryblokComponent } from './StoryblokComponent.svelte';
3
3
  export * from './types';
4
- export { apiPlugin, renderRichText, RichTextSchema, useStoryblokBridge, } from '@storyblok/js';
4
+ export { apiPlugin, renderRichText, useStoryblokBridge, } from '@storyblok/js';
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  export * from './storyblok';
2
2
  export { default as StoryblokComponent } from './StoryblokComponent.svelte';
3
3
  export * from './types';
4
- export { apiPlugin, renderRichText, RichTextSchema, useStoryblokBridge, } from '@storyblok/js';
4
+ export { apiPlugin, renderRichText, useStoryblokBridge, } from '@storyblok/js';
package/dist/types.d.ts CHANGED
@@ -6,4 +6,4 @@ export interface SbSvelteComponentsMap {
6
6
  export interface SbSvelteSDKOptions extends SbSDKOptions {
7
7
  components?: SbSvelteComponentsMap | CallableFunction;
8
8
  }
9
- export type { ISbAlternateObject, ISbCache, ISbConfig, ISbManagmentApiResult, ISbResult, ISbRichtext, ISbStories, ISbStoriesParams, ISbStory, ISbStoryData, ISbStoryParams, RichTextResolver, SbBlokData, SbBlokKeyDataTypes, SbSDKOptions, StoryblokBridgeConfigV2, StoryblokBridgeV2, StoryblokClient, StoryblokComponentType, useStoryblokBridge, } from '@storyblok/js';
9
+ export type { BlockTypes, ISbAlternateObject, ISbCache, ISbConfig, ISbManagmentApiResult, ISbResult, ISbStories, ISbStoriesParams, ISbStory, ISbStoryData, ISbStoryParams, MarkTypes, SbBlokData, SbBlokKeyDataTypes, SbSDKOptions, StoryblokBridgeConfigV2, StoryblokBridgeV2, StoryblokClient, StoryblokComponentType, StoryblokRichTextDocumentNode, StoryblokRichTextImageOptimizationOptions, StoryblokRichTextNode, StoryblokRichTextNodeResolver, StoryblokRichTextNodeTypes, StoryblokRichTextOptions, StoryblokRichTextResolvers, TextTypes, useStoryblokBridge, } from '@storyblok/js';
package/package.json CHANGED
@@ -1,9 +1,8 @@
1
1
  {
2
2
  "name": "@storyblok/svelte",
3
3
  "type": "module",
4
- "version": "5.0.2",
4
+ "version": "5.0.4-rc.0",
5
5
  "private": false,
6
- "packageManager": "pnpm@9.15.9",
7
6
  "description": "SDK to integrate Storyblok into your project using Svelte.",
8
7
  "author": "Storyblok",
9
8
  "license": "MIT",
@@ -34,37 +33,13 @@
34
33
  "dist"
35
34
  ],
36
35
  "svelte": "./dist/index.js",
37
- "scripts": {
38
- "dev": "vite dev",
39
- "build": "pnpm package",
40
- "preview": "vite preview",
41
- "package": "svelte-kit sync && svelte-package && publint",
42
- "test": "pnpm run test:unit:ci && pnpm run test:e2e",
43
- "test:unit": "vitest",
44
- "test:unit:ci": "vitest run",
45
- "test:unit:ui": "vitest --ui",
46
- "playground": "pnpm run --filter ./playground/sveltekit dev",
47
- "test:e2e": "START_SERVER_AND_TEST_INSECURE=1 start-server-and-test playground https://localhost:5173/ cy:run",
48
- "test:e2e-watch": "START_SERVER_AND_TEST_INSECURE=1 start-server-and-test playground https://localhost:5173/ cy:open",
49
- "cy:run": "cypress run",
50
- "cy:open": "cypress open",
51
- "lint": "eslint .",
52
- "lint:fix": "eslint . --fix",
53
- "prepublishOnly": "pnpm package",
54
- "prepare": "simple-git-hooks",
55
- "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
56
- "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
57
- "check-licenses": "node scripts/license-checker.mjs"
58
- },
59
36
  "peerDependencies": {
60
37
  "svelte": "^5.0.0"
61
38
  },
62
39
  "dependencies": {
63
- "@storyblok/js": "3.4.0"
40
+ "@storyblok/js": "4.0.4-rc.0"
64
41
  },
65
42
  "devDependencies": {
66
- "@commitlint/cli": "^19.8.0",
67
- "@commitlint/config-conventional": "^19.8.0",
68
43
  "@cypress/svelte": "^3.0.0",
69
44
  "@eslint/compat": "^1.2.7",
70
45
  "@rollup/plugin-typescript": "^12.1.2",
@@ -73,39 +48,20 @@
73
48
  "@sveltejs/kit": "^2.20.2",
74
49
  "@sveltejs/package": "^2.3.10",
75
50
  "@sveltejs/vite-plugin-svelte": "^5.0.3",
76
- "cypress": "^14.2.0",
77
- "eslint": "^9.23.0",
51
+ "cypress": "^14.3.3",
52
+ "eslint": "^9.26.0",
78
53
  "eslint-plugin-svelte": "^3.3.3",
79
54
  "jsdom": "^26.0.0",
80
- "license-checker": "^25.0.1",
81
55
  "pathe": "^2.0.3",
82
56
  "publint": "^0.3.9",
83
- "simple-git-hooks": "^2.12.1",
84
57
  "start-server-and-test": "^2.0.11",
85
58
  "svelte": "^5.25.3",
86
59
  "svelte-check": "^4.1.5",
87
- "typescript": "^5.8.2",
60
+ "typescript": "5.8.3",
88
61
  "typescript-eslint": "^8.28.0",
89
- "vite": "^6.2.3",
62
+ "vite": "^6.3.5",
90
63
  "vite-plugin-dts": "^4.5.3",
91
- "vitest": "^3.0.9"
92
- },
93
- "commitlint": {
94
- "extends": [
95
- "@commitlint/config-conventional"
96
- ],
97
- "rules": {
98
- "body-max-line-length": [
99
- 2,
100
- "always",
101
- 200
102
- ],
103
- "footer-max-line-length": [
104
- 0,
105
- "always",
106
- "Infinity"
107
- ]
108
- }
64
+ "vitest": "^3.1.3"
109
65
  },
110
66
  "release": {
111
67
  "branches": [
@@ -115,8 +71,28 @@
115
71
  "publishConfig": {
116
72
  "access": "public"
117
73
  },
118
- "simple-git-hooks": {
119
- "pre-commit": "pnpm lint",
120
- "pre-push": "pnpm commitlint --last --verbose"
74
+ "nx": {
75
+ "implicitDependencies": [
76
+ "!@storyblok/playground-*"
77
+ ]
78
+ },
79
+ "scripts": {
80
+ "dev": "vite dev",
81
+ "build": "pnpm package",
82
+ "preview": "vite preview",
83
+ "package": "svelte-kit sync && svelte-package && publint",
84
+ "test": "pnpm run test:unit:ci && pnpm run test:e2e",
85
+ "test:unit": "vitest",
86
+ "test:unit:ci": "vitest run",
87
+ "test:unit:ui": "vitest --ui",
88
+ "playground": "pnpm run --filter ./playground/sveltekit dev",
89
+ "test:e2e": "START_SERVER_AND_TEST_INSECURE=1 start-server-and-test playground https://localhost:5173/ cy:run",
90
+ "test:e2e-watch": "START_SERVER_AND_TEST_INSECURE=1 start-server-and-test playground https://localhost:5173/ cy:open",
91
+ "cy:run": "cypress run",
92
+ "cy:open": "cypress open",
93
+ "lint": "eslint .",
94
+ "lint:fix": "eslint . --fix",
95
+ "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
96
+ "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch"
121
97
  }
122
- }
98
+ }