@storyblok/svelte 1.0.1 → 2.0.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 +1 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -65,13 +65,12 @@ storyblokInit({
|
|
|
65
65
|
// apiOptions: { },
|
|
66
66
|
use: [apiPlugin],
|
|
67
67
|
components: {
|
|
68
|
-
// teaser: () => import("./Teaser.svelte"), // Lazy load it on demand
|
|
69
68
|
teaser: Teaser,
|
|
70
69
|
},
|
|
71
70
|
});
|
|
72
71
|
```
|
|
73
72
|
|
|
74
|
-
> Add all your components to the components object in the storyblokInit function. You can
|
|
73
|
+
> Add all your components to the components object in the storyblokInit function. You can load all of them at the same time by adding them to the list.
|
|
75
74
|
|
|
76
75
|
Now, all features are enabled for you: the _Api Client_ for interacting with [Storyblok CDN API](https://www.storyblok.com/docs/api/content-delivery/v2?utm_source=github.com&utm_medium=readme&utm_campaign=storyblok-svelte), and _Storyblok Bridge_ for [real-time visual editing experience](https://www.storyblok.com/docs/guide/essentials/visual-editor?utm_source=github.com&utm_medium=readme&utm_campaign=storyblok-svelte).
|
|
77
76
|
|
|
@@ -143,8 +142,6 @@ In order to link the storyblok components, you have to
|
|
|
143
142
|
|
|
144
143
|
- Load them in components when calling `storyblokInit`
|
|
145
144
|
|
|
146
|
-
> If you would like to use dynamic component loading, make sure to use the `StorybloKComponent`an use dynamic import when adding the components to your list.
|
|
147
|
-
|
|
148
145
|
- Use the `storyblokEditable` svelte action on the root element of each component
|
|
149
146
|
|
|
150
147
|
```html
|