@storyblok/astro 4.0.4 → 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.
- package/README.md +4 -0
- package/dist/storyblok-astro.js +1 -1
- package/dist/storyblok-astro.mjs +1 -1
- package/dist/types/components/FallbackComponent.d.ts +2 -1
- package/dist/types/components/RichTextRenderer.d.ts +2 -1
- package/dist/types/components/StoryblokComponent.d.ts +2 -1
- package/dist/types/cypress.config.d.ts +1 -1
- package/dist/types/index.d.ts +5 -4
- package/dist/types/types.d.ts +1 -1
- package/dist/types/vite-plugins/vite-plugin-storyblok-components.d.ts +3 -0
- package/dist/types/vite-plugins/vite-plugin-storyblok-init.d.ts +4 -0
- package/dist/types/vite-plugins/vite-plugin-storyblok-options.d.ts +3 -0
- package/package.json +15 -14
- /package/{toolbar-app-storyblok.ts → dev-toolbar/toolbarApp.ts} +0 -0
- /package/dist/types/{toolbar-app-storyblok.d.ts → dev-toolbar/toolbarApp.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -42,8 +42,12 @@ Install `@storyblok/astro`:
|
|
|
42
42
|
```bash
|
|
43
43
|
npm install @storyblok/astro
|
|
44
44
|
# yarn add @storyblok/astro
|
|
45
|
+
# See below for pnpm
|
|
45
46
|
```
|
|
46
47
|
|
|
48
|
+
> **Note**
|
|
49
|
+
> With pnpm, hoist Storyblok dependencies publicly with `.npmrc`. For more information, check pnpm documentation on [here](https://pnpm.io/npmrc).
|
|
50
|
+
|
|
47
51
|
Add the following code to `astro.config.mjs` and replace the `accessToken` with the preview API token of your Storyblok space.
|
|
48
52
|
|
|
49
53
|
```js
|
package/dist/storyblok-astro.js
CHANGED
|
@@ -46,4 +46,4 @@ Detailed information can be found here: https://github.com/storyblok/storyblok-a
|
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
});
|
|
49
|
-
`)}s("@storyblok/astro/
|
|
49
|
+
`)}s("@storyblok/astro/toolbarApp.ts")}}}}g.RichTextResolver=S,g.RichTextSchema=E,g.default=Ae,g.loadStoryblokBridge=ve,g.renderRichText=we,g.storyblokEditable=he,g.useStoryblokApi=Ie,Object.defineProperties(g,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/dist/storyblok-astro.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _exports: any
|
|
1
|
+
declare const _exports: Cypress.ConfigOptions<any>;
|
|
2
2
|
export = _exports;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
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
|
|
52
|
+
export * from './types';
|
package/dist/types/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storyblok/astro",
|
|
3
|
-
"version": "4.0.
|
|
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
|
|
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
|
-
"./
|
|
34
|
-
"types": "./toolbar
|
|
35
|
-
"import": "./toolbar
|
|
36
|
-
"require": "./toolbar
|
|
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.
|
|
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.
|
|
59
|
-
"astro": "^4.
|
|
60
|
-
"cypress": "^13.
|
|
61
|
-
"eslint-plugin-cypress": "^2.15.
|
|
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.
|
|
64
|
-
"vite": "^5.
|
|
65
|
-
"vite-plugin-dts": "^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"
|
|
File without changes
|
|
File without changes
|