nuxt-strapi-blocks-renderer 1.1.5 → 1.1.6
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 +19 -27
- package/dist/module.json +3 -3
- package/dist/runtime/components/StrapiBlocksText.d.vue.ts +7 -0
- package/dist/runtime/components/blocks/CodeNode.d.vue.ts +16 -0
- package/dist/runtime/components/blocks/ImageNode.d.vue.ts +6 -0
- package/dist/runtime/components/blocks/ParagraphNode.d.vue.ts +13 -0
- package/dist/runtime/components/blocks/QuoteNode.d.vue.ts +13 -0
- package/dist/runtime/components/blocks/heading/Heading1Node.d.vue.ts +13 -0
- package/dist/runtime/components/blocks/heading/Heading2Node.d.vue.ts +13 -0
- package/dist/runtime/components/blocks/heading/Heading3Node.d.vue.ts +13 -0
- package/dist/runtime/components/blocks/heading/Heading4Node.d.vue.ts +13 -0
- package/dist/runtime/components/blocks/heading/Heading5Node.d.vue.ts +13 -0
- package/dist/runtime/components/blocks/heading/Heading6Node.d.vue.ts +13 -0
- package/dist/runtime/components/blocks/inline/BoldInlineNode.d.vue.ts +13 -0
- package/dist/runtime/components/blocks/inline/CodeInlineNode.d.vue.ts +13 -0
- package/dist/runtime/components/blocks/inline/ItalicInlineNode.d.vue.ts +13 -0
- package/dist/runtime/components/blocks/inline/LinkInlineNode.d.vue.ts +18 -0
- package/dist/runtime/components/blocks/inline/ListItemInlineNode.d.vue.ts +13 -0
- package/dist/runtime/components/blocks/inline/StrikethroughInlineNode.d.vue.ts +13 -0
- package/dist/runtime/components/blocks/inline/UnderlineInlineNode.d.vue.ts +13 -0
- package/dist/runtime/components/blocks/list/OrderedListNode.d.vue.ts +13 -0
- package/dist/runtime/components/blocks/list/UnorderedListNode.d.vue.ts +13 -0
- package/package.json +76 -77
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ Fully customizable module for Nuxt 3 & 4 to render the "Blocks" rich text editor
|
|
|
13
13
|
|
|
14
14
|
The implementation is based on Strapi's [Blocks React Renderer](https://github.com/strapi/blocks-react-renderer/).
|
|
15
15
|
|
|
16
|
-
- ✨ [Release notes](/
|
|
16
|
+
- ✨ [Release notes](https://github.com/freb97/nuxt-strapi-blocks-renderer/releases)
|
|
17
17
|
- 🏀 [Online stackblitz playground](https://stackblitz.com/github/freb97/nuxt-strapi-blocks-renderer?file=playground%2Fcustom%2Fpages%2Findex.vue)
|
|
18
18
|
|
|
19
19
|
## Installation
|
|
@@ -327,10 +327,10 @@ You can also use different image components here, i.e. `NuxtImg` or others.
|
|
|
327
327
|
To install the dependencies, run the `install` command:
|
|
328
328
|
|
|
329
329
|
```bash
|
|
330
|
-
|
|
330
|
+
pnpm install
|
|
331
331
|
```
|
|
332
332
|
|
|
333
|
-
The project requires Node.js and
|
|
333
|
+
The project requires Node.js and pnpm to run.
|
|
334
334
|
You can either install these manually on your system or if you have the nix package manager installed, use the
|
|
335
335
|
provided nix-shell with the following command:
|
|
336
336
|
|
|
@@ -345,7 +345,7 @@ This will automatically install the needed software and start up a shell.
|
|
|
345
345
|
To generate the type stubs for the nuxt module, run the `dev:prepare` command:
|
|
346
346
|
|
|
347
347
|
```bash
|
|
348
|
-
|
|
348
|
+
pnpm run dev:prepare
|
|
349
349
|
```
|
|
350
350
|
|
|
351
351
|
### Development server
|
|
@@ -353,7 +353,7 @@ npm run dev:prepare
|
|
|
353
353
|
To start the development server with the provided text components, run the `dev` command:
|
|
354
354
|
|
|
355
355
|
```bash
|
|
356
|
-
|
|
356
|
+
pnpm run dev
|
|
357
357
|
```
|
|
358
358
|
|
|
359
359
|
This will boot up the playground with the default text components.
|
|
@@ -361,7 +361,7 @@ To start the development server using custom text components, overriding the pro
|
|
|
361
361
|
use the `dev:custom` command:
|
|
362
362
|
|
|
363
363
|
```bash
|
|
364
|
-
|
|
364
|
+
pnpm run dev:custom
|
|
365
365
|
```
|
|
366
366
|
|
|
367
367
|
### Quality
|
|
@@ -371,7 +371,7 @@ npm run dev:custom
|
|
|
371
371
|
To run ESLint, use the following command:
|
|
372
372
|
|
|
373
373
|
```bash
|
|
374
|
-
|
|
374
|
+
pnpm run lint
|
|
375
375
|
```
|
|
376
376
|
|
|
377
377
|
#### Type checks
|
|
@@ -379,7 +379,7 @@ npm run lint:es
|
|
|
379
379
|
To run the TypeScript type checks, use the following command:
|
|
380
380
|
|
|
381
381
|
```bash
|
|
382
|
-
|
|
382
|
+
pnpm run typecheck
|
|
383
383
|
```
|
|
384
384
|
|
|
385
385
|
#### Unit Tests
|
|
@@ -387,8 +387,8 @@ npm run lint:types
|
|
|
387
387
|
To run the Vitest unit tests, run the following command:
|
|
388
388
|
|
|
389
389
|
```bash
|
|
390
|
-
|
|
391
|
-
|
|
390
|
+
pnpm run test
|
|
391
|
+
```
|
|
392
392
|
|
|
393
393
|
### Build
|
|
394
394
|
|
|
@@ -396,30 +396,22 @@ To build the module, first install all dependencies and [generate the type stubs
|
|
|
396
396
|
Then run the build script:
|
|
397
397
|
|
|
398
398
|
```bash
|
|
399
|
-
|
|
399
|
+
pnpm run build
|
|
400
400
|
```
|
|
401
401
|
|
|
402
402
|
The module files will be output to the `dist` folder.
|
|
403
403
|
|
|
404
404
|
### Release
|
|
405
405
|
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
1. Increment version number in the `package.json` file
|
|
409
|
-
2. Add changelog entry for the new version number
|
|
410
|
-
3. Run linters and unit tests
|
|
411
|
-
4. Build the nuxt module
|
|
412
|
-
|
|
413
|
-
```bash
|
|
414
|
-
npm run build
|
|
415
|
-
```
|
|
406
|
+
Releases are automated with [uppt](https://github.com/danielroe/uppt), based on
|
|
407
|
+
[conventional commits](https://www.conventionalcommits.org):
|
|
416
408
|
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
409
|
+
1. Every push to `main` opens or updates a draft release PR, which bumps the version in `package.json` and lists
|
|
410
|
+
the changes since the last release. Breaking changes result in a major, `feat:` commits in a minor and all other
|
|
411
|
+
commits in a patch release.
|
|
412
|
+
2. Merging the release PR tags the release, creates a GitHub release from the PR description and starts the publish
|
|
413
|
+
workflow.
|
|
414
|
+
3. The module is built, packed and staged on npm. It goes live once the staged version is approved on npmjs.com.
|
|
423
415
|
|
|
424
416
|
[github-actions-src]: https://github.com/freb97/nuxt-strapi-blocks-renderer/actions/workflows/test.yml/badge.svg
|
|
425
417
|
[github-actions-href]: https://github.com/freb97/nuxt-strapi-blocks-renderer/actions
|
package/dist/module.json
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { BlockNode } from '#strapi-blocks-renderer/types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
nodes: BlockNode[];
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
language?: string;
|
|
3
|
+
};
|
|
4
|
+
declare var __VLS_1: {};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
default?: (props: typeof __VLS_1) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
10
|
+
declare const _default: typeof __VLS_export;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
13
|
+
new (): {
|
|
14
|
+
$slots: S;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
image: Record<string, string>;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
url: string;
|
|
3
|
+
rel?: string;
|
|
4
|
+
target?: string;
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_1: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_1) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
package/package.json
CHANGED
|
@@ -1,79 +1,78 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
"main": "./dist/module.mjs",
|
|
22
|
-
"typesVersions": {
|
|
23
|
-
"*": {
|
|
24
|
-
".": [
|
|
25
|
-
"./dist/types.d.mts"
|
|
26
|
-
]
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
"files": [
|
|
30
|
-
"dist"
|
|
31
|
-
],
|
|
32
|
-
"scripts": {
|
|
33
|
-
"dev": "npm run dev:basic",
|
|
34
|
-
"dev:prepare": "nuxt-module-build prepare && nuxi prepare playground/basic && nuxi prepare playground/custom",
|
|
35
|
-
"dev:basic": "nuxi dev playground/basic",
|
|
36
|
-
"dev:custom": "nuxi dev playground/custom",
|
|
37
|
-
"build": "nuxt-module-build build",
|
|
38
|
-
"release": "npm run lint && npm run test && npm run build && npm publish",
|
|
39
|
-
"lint": "eslint './**/*.{js,ts,vue}' --max-warnings=0",
|
|
40
|
-
"typecheck": "vue-tsc --noEmit",
|
|
41
|
-
"test": "vitest run",
|
|
42
|
-
"test:watch": "vitest watch"
|
|
43
|
-
},
|
|
44
|
-
"dependencies": {
|
|
45
|
-
"@nuxt/kit": "^4.4.2",
|
|
46
|
-
"defu": "^6.1.7"
|
|
47
|
-
},
|
|
48
|
-
"devDependencies": {
|
|
49
|
-
"@nuxt/devtools": "^3.2.4",
|
|
50
|
-
"@nuxt/eslint-config": "^1.15.2",
|
|
51
|
-
"@nuxt/module-builder": "^1.0.2",
|
|
52
|
-
"@nuxt/schema": "^4.4.2",
|
|
53
|
-
"@nuxt/test-utils": "^3.23.0",
|
|
54
|
-
"@nuxtjs/tailwindcss": "^6.14.0",
|
|
55
|
-
"eslint": "^10.2.1",
|
|
56
|
-
"nuxt": "^4.4.2",
|
|
57
|
-
"renovate": "^43.136.2",
|
|
58
|
-
"vitest": "^3.2.4",
|
|
59
|
-
"vue-tsc": "^3.2.7"
|
|
60
|
-
},
|
|
61
|
-
"keywords": [
|
|
62
|
-
"nuxt",
|
|
63
|
-
"nuxt3",
|
|
64
|
-
"nuxtjs",
|
|
65
|
-
"nuxt-module",
|
|
66
|
-
"strapi",
|
|
67
|
-
"strapi-cms",
|
|
68
|
-
"json",
|
|
69
|
-
"blocks",
|
|
70
|
-
"text",
|
|
71
|
-
"renderer"
|
|
72
|
-
],
|
|
73
|
-
"engines": {
|
|
74
|
-
"node": "^18.x || ^20.x || ^22.x || ^24.0.0"
|
|
75
|
-
},
|
|
76
|
-
"stackblitz": {
|
|
77
|
-
"startCommand": "npm run dev:prepare && npm run dev:custom"
|
|
2
|
+
"name": "nuxt-strapi-blocks-renderer",
|
|
3
|
+
"version": "1.1.6",
|
|
4
|
+
"description": "Renderer for the strapi CMS blocks text content element.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/freb97/nuxt-strapi-blocks-renderer.git"
|
|
9
|
+
},
|
|
10
|
+
"author": {
|
|
11
|
+
"name": "Frederik Bußmann",
|
|
12
|
+
"email": "frederik@bussmann.io"
|
|
13
|
+
},
|
|
14
|
+
"type": "module",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": "./dist/types.d.mts",
|
|
18
|
+
"import": "./dist/module.mjs"
|
|
78
19
|
}
|
|
79
|
-
}
|
|
20
|
+
},
|
|
21
|
+
"main": "./dist/module.mjs",
|
|
22
|
+
"typesVersions": {
|
|
23
|
+
"*": {
|
|
24
|
+
".": [
|
|
25
|
+
"./dist/types.d.mts"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"files": [
|
|
30
|
+
"dist"
|
|
31
|
+
],
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@nuxt/kit": "^4.5.2",
|
|
34
|
+
"defu": "^6.1.7"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@nuxt/devtools": "^3.4.2",
|
|
38
|
+
"@nuxt/eslint-config": "^1.17.0",
|
|
39
|
+
"@nuxt/module-builder": "^1.0.3",
|
|
40
|
+
"@nuxt/schema": "^4.5.2",
|
|
41
|
+
"@nuxt/test-utils": "^4.3.2",
|
|
42
|
+
"@nuxtjs/tailwindcss": "^6.14.0",
|
|
43
|
+
"eslint": "^10.11.0",
|
|
44
|
+
"nuxt": "^4.5.2",
|
|
45
|
+
"typescript": "^6.0.3",
|
|
46
|
+
"vitest": "^5.0.2",
|
|
47
|
+
"vue-tsc": "^3.3.11"
|
|
48
|
+
},
|
|
49
|
+
"keywords": [
|
|
50
|
+
"nuxt",
|
|
51
|
+
"nuxt3",
|
|
52
|
+
"nuxtjs",
|
|
53
|
+
"nuxt-module",
|
|
54
|
+
"strapi",
|
|
55
|
+
"strapi-cms",
|
|
56
|
+
"json",
|
|
57
|
+
"blocks",
|
|
58
|
+
"text",
|
|
59
|
+
"renderer"
|
|
60
|
+
],
|
|
61
|
+
"engines": {
|
|
62
|
+
"node": "^18.x || ^20.x || ^22.x || ^24.0.0"
|
|
63
|
+
},
|
|
64
|
+
"stackblitz": {
|
|
65
|
+
"startCommand": "pnpm run dev:prepare && pnpm run dev:custom"
|
|
66
|
+
},
|
|
67
|
+
"scripts": {
|
|
68
|
+
"dev": "pnpm run dev:basic",
|
|
69
|
+
"dev:prepare": "nuxt-module-build prepare && nuxi prepare playground/basic && nuxi prepare playground/custom",
|
|
70
|
+
"dev:basic": "nuxi dev playground/basic",
|
|
71
|
+
"dev:custom": "nuxi dev playground/custom",
|
|
72
|
+
"build": "nuxt-module-build build",
|
|
73
|
+
"lint": "eslint './**/*.{js,ts,vue}' --max-warnings=0",
|
|
74
|
+
"typecheck": "vue-tsc --noEmit",
|
|
75
|
+
"test": "vitest run",
|
|
76
|
+
"test:watch": "vitest watch"
|
|
77
|
+
}
|
|
78
|
+
}
|