@scrider/formatter 1.0.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/LICENSE +21 -0
- package/NOTICE +52 -0
- package/README.md +123 -0
- package/dist/index.cjs +4946 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1658 -0
- package/dist/index.d.ts +1658 -0
- package/dist/index.js +4844 -0
- package/dist/index.js.map +1 -0
- package/package.json +109 -0
package/package.json
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@scrider/formatter",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Delta converters and block handlers for rich-text content",
|
|
5
|
+
"author": "Pavel Sukharev",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"main": "./dist/index.cjs",
|
|
9
|
+
"module": "./dist/index.js",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"import": "./dist/index.js",
|
|
15
|
+
"require": "./dist/index.cjs"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist",
|
|
20
|
+
"LICENSE",
|
|
21
|
+
"NOTICE"
|
|
22
|
+
],
|
|
23
|
+
"engines": {
|
|
24
|
+
"node": ">=18.0.0"
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "tsup",
|
|
28
|
+
"dev": "tsup --watch",
|
|
29
|
+
"test": "vitest",
|
|
30
|
+
"test:run": "vitest run",
|
|
31
|
+
"test:coverage": "vitest run --coverage",
|
|
32
|
+
"lint": "eslint src tests",
|
|
33
|
+
"lint:fix": "eslint src tests --fix",
|
|
34
|
+
"format": "prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"",
|
|
35
|
+
"format:check": "prettier --check \"src/**/*.ts\" \"tests/**/*.ts\"",
|
|
36
|
+
"typecheck": "tsc --noEmit",
|
|
37
|
+
"prepublishOnly": "pnpm run build"
|
|
38
|
+
},
|
|
39
|
+
"repository": {
|
|
40
|
+
"type": "git",
|
|
41
|
+
"url": "git+https://github.com/scrider-apps/scride-formatter.git"
|
|
42
|
+
},
|
|
43
|
+
"homepage": "https://github.com/scrider-apps/scride-formatter#readme",
|
|
44
|
+
"bugs": {
|
|
45
|
+
"url": "https://github.com/scrider-apps/scride-formatter/issues"
|
|
46
|
+
},
|
|
47
|
+
"keywords": [
|
|
48
|
+
"delta",
|
|
49
|
+
"rich-text",
|
|
50
|
+
"html",
|
|
51
|
+
"markdown",
|
|
52
|
+
"schema",
|
|
53
|
+
"conversion",
|
|
54
|
+
"sanitize",
|
|
55
|
+
"block-handler",
|
|
56
|
+
"text-editor"
|
|
57
|
+
],
|
|
58
|
+
"dependencies": {
|
|
59
|
+
"@scrider/delta": "^1.0.0"
|
|
60
|
+
},
|
|
61
|
+
"peerDependencies": {
|
|
62
|
+
"jsdom": ">=20.0.0",
|
|
63
|
+
"remark-gfm": ">=4.0.0",
|
|
64
|
+
"remark-math": ">=6.0.0",
|
|
65
|
+
"remark-parse": ">=11.0.0",
|
|
66
|
+
"remark-stringify": ">=11.0.0",
|
|
67
|
+
"unified": ">=11.0.0"
|
|
68
|
+
},
|
|
69
|
+
"peerDependenciesMeta": {
|
|
70
|
+
"jsdom": {
|
|
71
|
+
"optional": true
|
|
72
|
+
},
|
|
73
|
+
"remark-gfm": {
|
|
74
|
+
"optional": true
|
|
75
|
+
},
|
|
76
|
+
"remark-math": {
|
|
77
|
+
"optional": true
|
|
78
|
+
},
|
|
79
|
+
"remark-parse": {
|
|
80
|
+
"optional": true
|
|
81
|
+
},
|
|
82
|
+
"remark-stringify": {
|
|
83
|
+
"optional": true
|
|
84
|
+
},
|
|
85
|
+
"unified": {
|
|
86
|
+
"optional": true
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"devDependencies": {
|
|
90
|
+
"@eslint/js": "^9.0.0",
|
|
91
|
+
"@scrider/delta": "^1.0.0",
|
|
92
|
+
"@types/jsdom": "^27.0.0",
|
|
93
|
+
"@types/node": "^25.2.3",
|
|
94
|
+
"@vitest/coverage-v8": "^1.2.0",
|
|
95
|
+
"eslint": "^9.0.0",
|
|
96
|
+
"eslint-config-prettier": "^10.0.0",
|
|
97
|
+
"jsdom": "^25.0.0",
|
|
98
|
+
"prettier": "^3.2.0",
|
|
99
|
+
"remark-gfm": "^4.0.0",
|
|
100
|
+
"remark-math": "^6.0.0",
|
|
101
|
+
"remark-parse": "^11.0.0",
|
|
102
|
+
"remark-stringify": "^11.0.0",
|
|
103
|
+
"tsup": "^8.0.0",
|
|
104
|
+
"typescript": "^5.3.0",
|
|
105
|
+
"typescript-eslint": "^8.0.0",
|
|
106
|
+
"unified": "^11.0.0",
|
|
107
|
+
"vitest": "^1.2.0"
|
|
108
|
+
}
|
|
109
|
+
}
|