@storyblok/astro 4.0.5-next.1 → 4.0.5

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.
@@ -1,2 +1,3 @@
1
- import FallbackComponent from "./FallbackComponent.astro";
1
+ import { default as FallbackComponent } from './FallbackComponent.astro';
2
+
2
3
  export default FallbackComponent;
@@ -1,2 +1,3 @@
1
- import RichTextRenderer from "./RichTextRenderer.astro";
1
+ import { default as RichTextRenderer } from './RichTextRenderer.astro';
2
+
2
3
  export default RichTextRenderer;
@@ -1,2 +1,3 @@
1
- import StoryblokComponent from "./StoryblokComponent.astro";
1
+ import { default as StoryblokComponent } from './StoryblokComponent.astro';
2
+
2
3
  export default StoryblokComponent;
@@ -1,6 +1,7 @@
1
- import type { AstroIntegration } from "astro";
2
- import type { ISbConfig, ISbRichtext, SbRichTextOptions, StoryblokBridgeConfigV2, StoryblokClient } from "./types";
3
- export { storyblokEditable, loadStoryblokBridge, RichTextResolver, RichTextSchema, } from "@storyblok/js";
1
+ import { ISbConfig, ISbRichtext, SbRichTextOptions, StoryblokBridgeConfigV2, StoryblokClient } from './types';
2
+ import { AstroIntegration } from 'astro';
3
+
4
+ export { storyblokEditable, loadStoryblokBridge, RichTextResolver, RichTextSchema, } from '@storyblok/js';
4
5
  export declare function useStoryblokApi(): StoryblokClient;
5
6
  export declare function renderRichText(data?: ISbRichtext, options?: SbRichTextOptions): string;
6
7
  export type IntegrationOptions = {
@@ -48,4 +49,4 @@ export type IntegrationOptions = {
48
49
  customFallbackComponent?: string;
49
50
  };
50
51
  export default function storyblokIntegration(options: IntegrationOptions): AstroIntegration;
51
- export * from "./types";
52
+ export * from './types';
@@ -9,4 +9,4 @@ ISbAlternateObject, // previously AlternateObject
9
9
  ISbStoriesParams, // previously StoriesParams
10
10
  ISbStoryParams, // previously StoryParams
11
11
  ISbRichtext, // previously Richtext
12
- ISbEventPayload, } from "@storyblok/js";
12
+ ISbEventPayload, } from '@storyblok/js';
@@ -0,0 +1,3 @@
1
+ import { Plugin } from 'vite';
2
+
3
+ export declare function vitePluginStoryblokComponents(componentsDir: string, components?: object, enableFallbackComponent?: boolean, customFallbackComponent?: string): Plugin;
@@ -0,0 +1,4 @@
1
+ import { Plugin } from 'vite';
2
+ import { ISbConfig } from '../types';
3
+
4
+ export declare function vitePluginStoryblokInit(accessToken: string, useCustomApi: boolean, apiOptions: ISbConfig): Plugin;
@@ -0,0 +1,3 @@
1
+ import { Plugin } from 'vite';
2
+
3
+ export declare function vitePluginStoryblokOptions(options: object): Plugin;
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "@storyblok/astro",
3
- "version": "4.0.5-next.1",
3
+ "version": "4.0.5",
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
9
  "components",
10
- "toolbar-app-storyblok.ts"
10
+ "dev-toolbar",
11
+ "live-preview"
11
12
  ],
12
13
  "exports": {
13
14
  ".": {
@@ -30,10 +31,10 @@
30
31
  "import": "./components/RichTextRenderer.ts",
31
32
  "require": "./components/RichTextRenderer.ts"
32
33
  },
33
- "./toolbar-app-storyblok.ts": {
34
- "types": "./toolbar-app-storyblok.ts",
35
- "import": "./toolbar-app-storyblok.ts",
36
- "require": "./toolbar-app-storyblok.ts"
34
+ "./toolbarApp.ts": {
35
+ "types": "./dev-toolbar/toolbarApp.ts",
36
+ "import": "./dev-toolbar/toolbarApp.ts",
37
+ "require": "./dev-toolbar/toolbarApp.ts"
37
38
  }
38
39
  },
39
40
  "types": "./dist/types/index.d.ts",
@@ -49,20 +50,20 @@
49
50
  "prepublishOnly": "npm run build && cp ../README.md ./"
50
51
  },
51
52
  "dependencies": {
52
- "@storyblok/js": "^3.0.7",
53
+ "@storyblok/js": "^3.0.8",
53
54
  "camelcase": "^8.0.0"
54
55
  },
55
56
  "devDependencies": {
56
57
  "@cypress/vite-dev-server": "^5.0.7",
57
58
  "@rollup/plugin-dynamic-import-vars": "^2.1.2",
58
- "@types/node": "20.11.26",
59
- "astro": "^4.5.2",
60
- "cypress": "^13.6.6",
61
- "eslint-plugin-cypress": "^2.15.1",
59
+ "@types/node": "20.12.7",
60
+ "astro": "^4.6.3",
61
+ "cypress": "^13.8.0",
62
+ "eslint-plugin-cypress": "^2.15.2",
62
63
  "start-server-and-test": "^2.0.3",
63
- "typescript": "5.4.2",
64
- "vite": "^5.1.6",
65
- "vite-plugin-dts": "^3.7.3"
64
+ "typescript": "5.4.5",
65
+ "vite": "^5.2.10",
66
+ "vite-plugin-dts": "^3.8.3"
66
67
  },
67
68
  "peerDependencies": {
68
69
  "astro": "^3.0.0 || ^4.0.0"