@storyblok/svelte 2.3.8 → 2.4.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 +7 -5
- package/dist/storyblok-svelte.js +3 -7
- package/dist/storyblok-svelte.mjs +702 -695
- package/dist/types.d.ts +2 -1
- package/package.json +6 -11
- package/types.ts +14 -14
package/dist/types.d.ts
CHANGED
|
@@ -6,4 +6,5 @@ export interface SbSvelteComponentsMap {
|
|
|
6
6
|
export interface SbSvelteSDKOptions extends SbSDKOptions {
|
|
7
7
|
components?: SbSvelteComponentsMap | CallableFunction;
|
|
8
8
|
}
|
|
9
|
-
export
|
|
9
|
+
export { apiPlugin } from "@storyblok/js";
|
|
10
|
+
export type { ISbAlternateObject, ISbRichtext, RichTextResolver, SbBlokData, SbBlokKeyDataTypes, SbSDKOptions, ISbStories, ISbStoriesParams, ISbStory, ISbStoryData, ISbStoryParams, StoryblokBridgeConfigV2, StoryblokBridgeV2, ISbCache, StoryblokClient, StoryblokComponentType, ISbConfig, ISbManagmentApiResult, ISbResult, useStoryblokBridge, } from "@storyblok/js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storyblok/svelte",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"description": "Storyblok SDK to connect Storyblok with Svelte",
|
|
5
6
|
"main": "./dist/storyblok-svelte.js",
|
|
6
7
|
"module": "./dist/storyblok-svelte.mjs",
|
|
@@ -23,26 +24,20 @@
|
|
|
23
24
|
"build": "vite build && tsc --project tsconfig.json && cp main.d.ts dist",
|
|
24
25
|
"test": "npm run test:unit && npm run test:e2e",
|
|
25
26
|
"test:unit": "jest __tests__",
|
|
26
|
-
"test:e2e": "cypress run-ct",
|
|
27
|
-
"test:e2e-watch": "cypress open-ct",
|
|
28
27
|
"prepublishOnly": "npm run build && cp ../README.md ./"
|
|
29
28
|
},
|
|
30
29
|
"dependencies": {
|
|
31
|
-
"@storyblok/js": "^
|
|
30
|
+
"@storyblok/js": "^2.0.6"
|
|
32
31
|
},
|
|
33
32
|
"devDependencies": {
|
|
34
|
-
"@babel/core": "^7.20.
|
|
35
|
-
"@cypress/vite-dev-server": "^2.2.3",
|
|
33
|
+
"@babel/core": "^7.20.12",
|
|
36
34
|
"@tsconfig/svelte": "^3.0.0",
|
|
37
35
|
"babel-jest": "^28.1.3",
|
|
38
|
-
"
|
|
39
|
-
"cypress-svelte-unit-test": "^3.3.4",
|
|
40
|
-
"eslint-plugin-cypress": "^2.12.1",
|
|
41
|
-
"eslint-plugin-jest": "^27.1.7",
|
|
36
|
+
"eslint-plugin-jest": "^27.2.0",
|
|
42
37
|
"jest": "^29.2.1",
|
|
43
38
|
"svelte-preprocess": "^5.0.0",
|
|
44
39
|
"typescript": "^4.9.4",
|
|
45
|
-
"vite": "^
|
|
40
|
+
"vite": "^4.0.0"
|
|
46
41
|
},
|
|
47
42
|
"eslintConfig": {
|
|
48
43
|
"env": {
|
package/types.ts
CHANGED
|
@@ -9,27 +9,27 @@ export interface SbSvelteSDKOptions extends SbSDKOptions {
|
|
|
9
9
|
components?: SbSvelteComponentsMap | CallableFunction;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
export { apiPlugin } from "@storyblok/js";
|
|
13
|
+
|
|
12
14
|
export type {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
ISbAlternateObject,
|
|
16
|
+
ISbRichtext,
|
|
17
|
+
RichTextResolver,
|
|
16
18
|
SbBlokData,
|
|
17
19
|
SbBlokKeyDataTypes,
|
|
18
20
|
SbSDKOptions,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
ISbStories,
|
|
22
|
+
ISbStoriesParams,
|
|
23
|
+
ISbStory,
|
|
24
|
+
ISbStoryData,
|
|
25
|
+
ISbStoryParams,
|
|
24
26
|
StoryblokBridgeConfigV2,
|
|
25
27
|
StoryblokBridgeV2,
|
|
26
|
-
|
|
27
|
-
StoryblokCacheProvider,
|
|
28
|
+
ISbCache,
|
|
28
29
|
StoryblokClient,
|
|
29
30
|
StoryblokComponentType,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
apiPlugin,
|
|
31
|
+
ISbConfig,
|
|
32
|
+
ISbManagmentApiResult,
|
|
33
|
+
ISbResult,
|
|
34
34
|
useStoryblokBridge,
|
|
35
35
|
} from "@storyblok/js";
|