@storyblok/astro 2.2.0 → 2.2.1
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/FallbackComponent.astro +38 -0
- package/package.json +3 -2
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
import type { SbBlokData } from "./types";
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
blok: SbBlokData;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
const { blok } = Astro.props;
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
<section>
|
|
12
|
+
<div>
|
|
13
|
+
<p>
|
|
14
|
+
Component could not be found for blok <span class="component"
|
|
15
|
+
>{blok.component}</span
|
|
16
|
+
>! Is it configured correctly?
|
|
17
|
+
</p>
|
|
18
|
+
</div>
|
|
19
|
+
</section>
|
|
20
|
+
|
|
21
|
+
<style scoped>
|
|
22
|
+
section {
|
|
23
|
+
display: flex;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
padding: 60px 0;
|
|
26
|
+
}
|
|
27
|
+
div {
|
|
28
|
+
display: inline-flex;
|
|
29
|
+
background-color: #eff1f3;
|
|
30
|
+
text-align: center;
|
|
31
|
+
padding: 15px 30px;
|
|
32
|
+
border-radius: 5px;
|
|
33
|
+
}
|
|
34
|
+
span.component {
|
|
35
|
+
color: #00b3b0;
|
|
36
|
+
font-weight: bold;
|
|
37
|
+
}
|
|
38
|
+
</style>
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storyblok/astro",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "Official Astro integration for the Storyblok Headless CMS",
|
|
5
5
|
"main": "./dist/storyblok-astro.js",
|
|
6
6
|
"module": "./dist/storyblok-astro.mjs",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist",
|
|
9
|
-
"StoryblokComponent.astro"
|
|
9
|
+
"StoryblokComponent.astro",
|
|
10
|
+
"FallbackComponent.astro"
|
|
10
11
|
],
|
|
11
12
|
"exports": {
|
|
12
13
|
".": {
|