@storyblok/svelte 3.1.3 → 3.1.5
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 +5 -3
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -95,7 +95,8 @@ Full example for a space created in the US:
|
|
|
95
95
|
}
|
|
96
96
|
```
|
|
97
97
|
|
|
98
|
-
> Note
|
|
98
|
+
> **Note**
|
|
99
|
+
> For spaces created in the United States or China, the `region` parameter **must** be specified.
|
|
99
100
|
|
|
100
101
|
## Getting started
|
|
101
102
|
|
|
@@ -116,7 +117,8 @@ Use the `getStoryblokApi`()` to get your stories from the Storyblok CDN API:
|
|
|
116
117
|
</script>
|
|
117
118
|
```
|
|
118
119
|
|
|
119
|
-
> Note
|
|
120
|
+
> **Note**
|
|
121
|
+
> You can skip using `storyblokApi` if you prefer your own method or function to fetch your data.
|
|
120
122
|
|
|
121
123
|
### 2. Listen to Storyblok Visual Editor events
|
|
122
124
|
|
|
@@ -165,7 +167,7 @@ To link the Storyblok components, you have to
|
|
|
165
167
|
<StoryblokComponent {blok} />
|
|
166
168
|
```
|
|
167
169
|
|
|
168
|
-
> The `blok` is the actual blok data coming from [
|
|
170
|
+
> The `blok` is the actual blok data coming from [Storyblok's Content Delivery API](https://www.storyblok.com/docs/api/content-delivery/v2?utm_source=github.com&utm_medium=readme&utm_campaign=storyblok-svelte).
|
|
169
171
|
|
|
170
172
|
### Features and API
|
|
171
173
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storyblok/svelte",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Storyblok SDK to connect Storyblok with Svelte",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -26,19 +26,19 @@
|
|
|
26
26
|
"prepublishOnly": "npm run build && cp ../README.md ."
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@storyblok/js": "^2.2.
|
|
29
|
+
"@storyblok/js": "^2.2.12"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@babel/core": "^7.22.
|
|
33
|
-
"@sveltejs/package": "^2.2.
|
|
34
|
-
"@tsconfig/svelte": "^5.0.
|
|
32
|
+
"@babel/core": "^7.22.11",
|
|
33
|
+
"@sveltejs/package": "^2.2.2",
|
|
34
|
+
"@tsconfig/svelte": "^5.0.2",
|
|
35
35
|
"babel-jest": "^29",
|
|
36
36
|
"eslint-plugin-jest": "^27.2.3",
|
|
37
|
-
"jest": "^29.6.
|
|
38
|
-
"svelte": "^4.
|
|
37
|
+
"jest": "^29.6.4",
|
|
38
|
+
"svelte": "^4.2.0",
|
|
39
39
|
"svelte-preprocess": "^5.0.4",
|
|
40
|
-
"typescript": "^5.
|
|
41
|
-
"vite": "^4.4.
|
|
40
|
+
"typescript": "^5.2.2",
|
|
41
|
+
"vite": "^4.4.9"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"svelte": "^3.0.0 || ^4.0.0"
|