@storyblok/nuxt 3.0.0-beta.1 → 3.0.0-beta.2
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
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
<a href="https://npmjs.com/package/@storyblok/nuxt" rel="nofollow">
|
|
14
14
|
<img src="https://img.shields.io/npm/dt/@storyblok/nuxt.svg?style=flat-square" alt="npm">
|
|
15
15
|
</a>
|
|
16
|
-
|
|
16
|
+
</p>
|
|
17
17
|
|
|
18
18
|
<p align="center">
|
|
19
19
|
<a href="https://discord.gg/jKrbAMz">
|
|
@@ -49,9 +49,9 @@ import { defineNuxtConfig } from "nuxt3";
|
|
|
49
49
|
|
|
50
50
|
export default defineNuxtConfig({
|
|
51
51
|
modules: [
|
|
52
|
-
["@storyblok/nuxt", { accessToken: "YOUR_ACCESS_TOKEN" }]
|
|
52
|
+
["@storyblok/nuxt", { accessToken: "YOUR_ACCESS_TOKEN" }],
|
|
53
53
|
// ...
|
|
54
|
-
]
|
|
54
|
+
],
|
|
55
55
|
});
|
|
56
56
|
```
|
|
57
57
|
|
|
@@ -63,8 +63,8 @@ import { defineNuxtConfig } from "nuxt3";
|
|
|
63
63
|
export default defineNuxtConfig({
|
|
64
64
|
modules: ["@storyblok/nuxt"],
|
|
65
65
|
storyblok: {
|
|
66
|
-
accessToken: "YOUR_ACCESS_TOKEN"
|
|
67
|
-
}
|
|
66
|
+
accessToken: "YOUR_ACCESS_TOKEN",
|
|
67
|
+
},
|
|
68
68
|
});
|
|
69
69
|
```
|
|
70
70
|
|
|
@@ -120,7 +120,7 @@ You can pass [Bridge options](https://www.storyblok.com/docs/Guides/storyblok-la
|
|
|
120
120
|
|
|
121
121
|
```js
|
|
122
122
|
useStoryBridge(state.story.id, (story) => (state.story = story), {
|
|
123
|
-
resolveRelations: ["Article.author"]
|
|
123
|
+
resolveRelations: ["Article.author"],
|
|
124
124
|
});
|
|
125
125
|
```
|
|
126
126
|
|
|
@@ -132,7 +132,7 @@ Traditional Option API is used just like in [version 2](/../../):
|
|
|
132
132
|
export default {
|
|
133
133
|
data() {
|
|
134
134
|
return {
|
|
135
|
-
story: { content: {} }
|
|
135
|
+
story: { content: {} },
|
|
136
136
|
};
|
|
137
137
|
},
|
|
138
138
|
mounted() {
|
|
@@ -158,7 +158,7 @@ export default {
|
|
|
158
158
|
asyncData(context) {
|
|
159
159
|
return context.app.$storyapi
|
|
160
160
|
.get("cdn/stories/home", {
|
|
161
|
-
version: "draft"
|
|
161
|
+
version: "draft",
|
|
162
162
|
})
|
|
163
163
|
.then((res) => {
|
|
164
164
|
return res.data;
|
|
@@ -168,17 +168,17 @@ export default {
|
|
|
168
168
|
console.error(res);
|
|
169
169
|
context.error({
|
|
170
170
|
statusCode: 404,
|
|
171
|
-
message: "Failed to receive content form api"
|
|
171
|
+
message: "Failed to receive content form api",
|
|
172
172
|
});
|
|
173
173
|
} else {
|
|
174
174
|
console.error(res.response.data);
|
|
175
175
|
context.error({
|
|
176
176
|
statusCode: res.response.status,
|
|
177
|
-
message: res.response.data
|
|
177
|
+
message: res.response.data,
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
180
|
});
|
|
181
|
-
}
|
|
181
|
+
},
|
|
182
182
|
};
|
|
183
183
|
```
|
|
184
184
|
|
|
File without changes
|
|
File without changes
|
package/composables/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storyblok/nuxt-composables",
|
|
3
3
|
"version": "0.0.0",
|
|
4
|
-
"main": "./dist/composables.
|
|
5
|
-
"module": "./dist/composables.
|
|
4
|
+
"main": "./dist/composables.js",
|
|
5
|
+
"module": "./dist/composables.mjs",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
8
|
-
"import": "./dist/composables.
|
|
9
|
-
"require": "./dist/composables.
|
|
8
|
+
"import": "./dist/composables.mjs",
|
|
9
|
+
"require": "./dist/composables.js"
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storyblok/nuxt",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.2",
|
|
4
4
|
"description": "Storyblok Nuxt.js module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -38,11 +38,21 @@
|
|
|
38
38
|
"eslint-plugin-cypress": "^2.12.1",
|
|
39
39
|
"jest": "^26.6.3",
|
|
40
40
|
"start-server-and-test": "^1.14.0",
|
|
41
|
-
"vite": "^2.6
|
|
41
|
+
"vite": "^2.7.6"
|
|
42
42
|
},
|
|
43
43
|
"eslintConfig": {
|
|
44
44
|
"env": {
|
|
45
45
|
"node": true
|
|
46
46
|
}
|
|
47
|
+
},
|
|
48
|
+
"release": {
|
|
49
|
+
"branches": [
|
|
50
|
+
"master",
|
|
51
|
+
{
|
|
52
|
+
"name": "next",
|
|
53
|
+
"channel": "next",
|
|
54
|
+
"prerelease": "beta"
|
|
55
|
+
}
|
|
56
|
+
]
|
|
47
57
|
}
|
|
48
58
|
}
|