@storyblok/vue 9.4.5 → 10.1.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 CHANGED
@@ -49,7 +49,7 @@ If you'd like to contribute, please refer to the [contributing guidelines](CONTR
49
49
 
50
50
  For help, discussion about best practices, or any other conversation that would benefit from being searchable:
51
51
 
52
- - [Discuss Storyblok on Github Discussions](https://github.com/storyblok/monoblok/discussions)
52
+ - [Discuss Storyblok on GitHub Discussions](https://github.com/storyblok/monoblok/discussions)
53
53
 
54
54
  For community support, chatting with other users, please visit:
55
55
 
@@ -64,7 +64,7 @@ For bugs or feature requests, please [submit an issue](https://github.com/storyb
64
64
 
65
65
  ### I can't share my company project code
66
66
 
67
- We understand that you might not be able to share your company's project code. Please provide a minimal reproducible example that demonstrates the issue by using tools like [Stackblitz](https://stackblitz.com) or a link to a Github Repo lease make sure you include a README file with the instructions to build and run the project, important not to include any access token, password or personal information of any kind.
67
+ We understand that you might not be able to share your company's project code. Please provide a minimal reproducible example that demonstrates the issue by using tools like [Stackblitz](https://stackblitz.com) or a link to a GitHub repo. Please make sure you include a README file with the instructions to build and run the project, important not to include any access token, password or personal information of any kind.
68
68
 
69
69
  ### Feedback
70
70
 
@@ -4,7 +4,7 @@
4
4
  * description: SDK to integrate Storyblok into your project using Vue.
5
5
  * author: Storyblok
6
6
  */
7
- import { defineComponent as r, createElementBlock as p, openBlock as a, createElementVNode as n, createTextVNode as c, toDisplayString as d } from "vue";
7
+ import { defineComponent as r, openBlock as a, createElementBlock as p, createElementVNode as n, createTextVNode as c, toDisplayString as d } from "vue";
8
8
  const m = { class: "fallback-component" }, _ = { class: "component" }, f = /* @__PURE__ */ r({
9
9
  __name: "FallbackComponent",
10
10
  props: {
@@ -14,15 +14,15 @@ const m = { class: "fallback-component" }, _ = { class: "component" }, f = /* @_
14
14
  return (e, o) => (a(), p("div", m, [
15
15
  n("p", null, [
16
16
  o[0] || (o[0] = c(" Component could not be found for blok ", -1)),
17
- n("span", _, d(e.blok.component), 1),
17
+ n("span", _, d(t.blok.component), 1),
18
18
  o[1] || (o[1] = c("! Is it configured correctly? ", -1))
19
19
  ])
20
20
  ]));
21
21
  }
22
22
  }), i = (t, e) => {
23
23
  const o = t.__vccOpts || t;
24
- for (const [s, l] of e)
25
- o[s] = l;
24
+ for (const [l, s] of e)
25
+ o[l] = s;
26
26
  return o;
27
27
  }, u = /* @__PURE__ */ i(f, [["__scopeId", "data-v-9abcd1f2"]]);
28
28
  export {
@@ -1,7 +1,7 @@
1
1
  import { VNode } from 'vue';
2
- import { StoryblokRichTextNode, StoryblokRichTextOptions } from '@storyblok/js';
2
+ import { StoryblokRichTextOptions } from '@storyblok/js';
3
3
  export declare function useStoryblokRichText(options: StoryblokRichTextOptions<VNode | VNode[]>): {
4
- render: (node: StoryblokRichTextNode<VNode<import('vue').RendererNode, import('vue').RendererElement, {
4
+ render: (node: import('@storyblok/richtext').StoryblokRichTextDocumentNode | import('@storyblok/richtext').StoryblokRichTextNode<VNode<import('vue').RendererNode, import('vue').RendererElement, {
5
5
  [key: string]: any;
6
6
  }> | VNode<import('vue').RendererNode, import('vue').RendererElement, {
7
7
  [key: string]: any;
package/dist/index.d.ts CHANGED
@@ -4,7 +4,7 @@ export { default as StoryblokComponent } from './components/StoryblokComponent.v
4
4
  export { default as StoryblokRichText } from './components/StoryblokRichText.vue';
5
5
  export * from './composables/useStoryblokRichText';
6
6
  export * from './types';
7
- export { apiPlugin, BlockTypes, MarkTypes, renderRichText, richTextResolver, StoryblokClient, type StoryblokRichTextDocumentNode, type StoryblokRichTextImageOptimizationOptions, type StoryblokRichTextNode, type StoryblokRichTextNodeResolver, type StoryblokRichTextNodeTypes, type StoryblokRichTextOptions, type StoryblokRichTextResolvers, TextTypes, useStoryblokBridge, } from '@storyblok/js';
7
+ export { apiPlugin, asTag, BlockTypes, ComponentBlok, LinkTypes, MarkTypes, renderRichText, richTextResolver, StoryblokClient, type StoryblokRichTextDocumentNode, type StoryblokRichTextImageOptimizationOptions, type StoryblokRichTextNode, type StoryblokRichTextNodeTypes, type StoryblokRichTextOptions, TextTypes, useStoryblokBridge, } from '@storyblok/js';
8
8
  export declare const useStoryblokApi: () => StoryblokClient;
9
9
  export declare const useStoryblok: (url: string, apiOptions?: ISbStoriesParams, bridgeOptions?: StoryblokBridgeConfigV2) => Promise<Ref<ISbStoryData<import('storyblok-js-client').ISbComponentType<string> & {
10
10
  [index: string]: any;