Skip to content

Commit a7bfbcd

Browse files
committed
feat: Add extractContentText util and upgrade deps
1 parent 3071395 commit a7bfbcd

File tree

13 files changed

+2613
-1870
lines changed

13 files changed

+2613
-1870
lines changed

.eslintrc

-10
This file was deleted.

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- uses: actions/setup-node@v3
1818
with:
1919
node-version: 16
20-
cache: "pnpm"
20+
cache: pnpm
2121
- run: pnpm install --no-frozen-lockfile
2222
- run: pnpm lint
2323
- run: pnpm build

README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
[![npm version][npm-version-src]][npm-version-href]
32
[![npm downloads][npm-downloads-src]][npm-downloads-href]
43
[![Github Actions][github-actions-src]][github-actions-href]
@@ -51,7 +50,7 @@ defineProps<{
5150
5251
<template>
5352
<JsonRenderer
54-
:content="article"
53+
:content="article"
5554
/>
5655
</template>
5756
```
@@ -76,4 +75,4 @@ This library also features utility functions :
7675
[codecov-href]: https://codecov.io/gh/leo91000/vue-tiptap-renderer
7776

7877
[bundle-src]: https://img.shields.io/bundlephobia/minzip/@leo91000/vue-tiptap-renderer?style=flat-square
79-
[bundle-href]: https://bundlephobia.com/result?p=@leo91000/vue-tiptap-renderer
78+
[bundle-href]: https://bundlephobia.com/result?p=@leo91000/vue-tiptap-renderer

eslint.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import antfu from '@antfu/eslint-config'
2+
3+
export default antfu()

package.json

+39-37
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,78 @@
11
{
22
"name": "@leo91000/vue-tiptap-renderer",
3-
"keywords": [
4-
"tiptap",
5-
"json",
6-
"vue",
7-
"render",
8-
"function"
9-
],
10-
"license": "MIT",
3+
"type": "module",
4+
"version": "0.2.2",
5+
"packageManager": "[email protected]",
116
"description": "Tiptap JSON content renderer for Vue 2/3",
127
"author": {
138
"name": "Léo Coletta",
149
"email": "[email protected]",
1510
"url": "https://leo-coletta.fr"
1611
},
17-
"sideEffects": false,
18-
"repository": "github:leo91000/vue-tiptap-renderer",
12+
"license": "MIT",
13+
"funding": "https://github.com/leo91000",
1914
"homepage": "https://github.com/leo91000/vue-tiptap-renderer#readme",
15+
"repository": "github:leo91000/vue-tiptap-renderer",
2016
"bugs": "https://github.com/leo91000/vue-tiptap-renderer/issues",
21-
"funding": "https://github.com/leo91000",
22-
"main": "dist/index.cjs",
23-
"module": "dist/index.mjs",
24-
"types": "dist/index.d.ts",
17+
"keywords": [
18+
"tiptap",
19+
"json",
20+
"vue",
21+
"render",
22+
"function"
23+
],
24+
"sideEffects": false,
2525
"exports": {
2626
".": {
2727
"import": "./dist/index.mjs",
2828
"require": "./dist/index.cjs"
2929
}
3030
},
31+
"main": "dist/index.cjs",
32+
"module": "dist/index.mjs",
33+
"types": "dist/index.d.ts",
3134
"files": [
3235
"dist"
3336
],
3437
"scripts": {
3538
"build": "unbuild",
3639
"dev": "vitest",
37-
"lint": "eslint --ext .ts .",
40+
"lint": "eslint .",
41+
"lint:fix": "eslint . --fix",
42+
"typecheck": "tsc --noEmit",
3843
"prepack": "nr build",
3944
"release": "nr test && standard-version && git push --follow-tags && pnpm publish",
40-
"test": "nr lint && vitest run"
45+
"test": "nr lint && nr typecheck && vitest run"
4146
},
42-
"version": "0.2.2",
43-
"packageManager": "[email protected]",
4447
"volta": {
4548
"node": "18.12.1",
4649
"npm": "9.2.0"
4750
},
48-
"dependencies": {
49-
"vue-demi": "*"
50-
},
51-
"devDependencies": {
52-
"@antfu/eslint-config": "0.33.1",
53-
"@antfu/ni": "0.18.8",
54-
"@vue/test-utils": "2.2.6",
55-
"@vitest/coverage-c8": "0.25.7",
56-
"eslint": "8.29.0",
57-
"jsdom": "^21.0.0",
58-
"standard-version": "9.5.0",
59-
"typescript": "5.0.2",
60-
"unbuild": "1.0.2",
61-
"vitest": "0.25.7",
62-
"vue": "3.2.45"
63-
},
6451
"peerDependencies": {
6552
"@vue/composition-api": "^1.0.0-rc.1",
6653
"vue": "^2.0.0 || >=3.0.0"
6754
},
6855
"peerDependenciesMeta": {
6956
"@vue/composition-api": {
7057
"optional": true
71-
},
72-
"vue": {
73-
"optional": true
7458
}
59+
},
60+
"dependencies": {
61+
"@tiptap/core": "^2.1.13",
62+
"vue-demi": "^0.14.6"
63+
},
64+
"devDependencies": {
65+
"@antfu/eslint-config": "^2.4.2",
66+
"@antfu/ni": "^0.21.12",
67+
"@vitest/coverage-v8": "^1.0.2",
68+
"@vue/test-utils": "^2.4.3",
69+
"eslint": "^8.55.0",
70+
"jsdom": "^23.0.1",
71+
"rollup": "^4.6.1",
72+
"standard-version": "^9.5.0",
73+
"typescript": "^5.3.3",
74+
"unbuild": "^2.0.0",
75+
"vitest": "^1.0.2",
76+
"vue": "^3.3.10"
7577
}
7678
}

0 commit comments

Comments
 (0)