@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.
Files changed (2) hide show
  1. package/README.md +1 -4
  2. 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 either load all of them at the same time by adding them to the list; or you could lazy load them when they are needed by uncommenting the dynamic import line.
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storyblok/svelte",
3
- "version": "1.0.1",
3
+ "version": "2.0.0",
4
4
  "description": "Storyblok SDK to connect Storyblok with Svelte",
5
5
  "main": "./dist/storyblok-svelte.js",
6
6
  "module": "./dist/storyblok-svelte.mjs",