@synclineapi/editor 2.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/README.md +1858 -0
- package/dist/syncline-editor.es.js +4466 -0
- package/dist/syncline-editor.es.js.map +1 -0
- package/dist/syncline-editor.umd.js +487 -0
- package/dist/syncline-editor.umd.js.map +1 -0
- package/dist/types/index.d.ts +1183 -0
- package/package.json +79 -0
package/package.json
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@synclineapi/editor",
|
|
3
|
+
"publishConfig": {
|
|
4
|
+
"access": "public"
|
|
5
|
+
},
|
|
6
|
+
"version": "2.0.0",
|
|
7
|
+
"description": "A zero-dependency, pixel-perfect, fully customisable browser-based code editor",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"main": "./dist/syncline-editor.umd.js",
|
|
10
|
+
"module": "./dist/syncline-editor.es.js",
|
|
11
|
+
"types": "./dist/types/index.d.ts",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": "./dist/syncline-editor.es.js",
|
|
15
|
+
"require": "./dist/syncline-editor.umd.js",
|
|
16
|
+
"types": "./dist/types/index.d.ts"
|
|
17
|
+
},
|
|
18
|
+
"./style.css": "./dist/syncline-editor.css"
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"dist"
|
|
22
|
+
],
|
|
23
|
+
"scripts": {
|
|
24
|
+
"dev": "vite --config vite.config.ts",
|
|
25
|
+
"build": "tsc --noEmit && vite build --config vite.lib.config.ts",
|
|
26
|
+
"build:app": "vite build --config vite.config.app.ts",
|
|
27
|
+
"preview": "vite preview --config vite.config.ts",
|
|
28
|
+
"preview:app": "vite preview --config vite.config.app.ts",
|
|
29
|
+
"test": "vitest run",
|
|
30
|
+
"test:watch": "vitest",
|
|
31
|
+
"test:coverage": "vitest run --coverage",
|
|
32
|
+
"test:ui": "vitest --ui",
|
|
33
|
+
"lint": "eslint src --ext .ts",
|
|
34
|
+
"lint:fix": "eslint src --ext .ts --fix",
|
|
35
|
+
"format": "prettier --write src",
|
|
36
|
+
"type-check": "tsc --noEmit",
|
|
37
|
+
"size": "size-limit",
|
|
38
|
+
"prepare": "git config core.hooksPath .githooks"
|
|
39
|
+
},
|
|
40
|
+
"keywords": [
|
|
41
|
+
"code-editor",
|
|
42
|
+
"syntax-highlighting",
|
|
43
|
+
"typescript",
|
|
44
|
+
"zero-dependency"
|
|
45
|
+
],
|
|
46
|
+
"license": "MIT",
|
|
47
|
+
"homepage": "https://editor.synclineapi.com/",
|
|
48
|
+
"engines": {
|
|
49
|
+
"node": ">=18.0.0"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@size-limit/preset-small-lib": "^11.0.0",
|
|
53
|
+
"@types/node": "^25.5.0",
|
|
54
|
+
"@typescript-eslint/eslint-plugin": "^8.57.0",
|
|
55
|
+
"@typescript-eslint/parser": "^8.57.0",
|
|
56
|
+
"@vitest/coverage-v8": "^4.1.0",
|
|
57
|
+
"@vitest/ui": "^4.1.0",
|
|
58
|
+
"esbuild": "^0.27.4",
|
|
59
|
+
"eslint": "^9.39.4",
|
|
60
|
+
"eslint-config-prettier": "^9.1.2",
|
|
61
|
+
"jsdom": "^24.1.3",
|
|
62
|
+
"prettier": "^3.8.1",
|
|
63
|
+
"size-limit": "^11.0.0",
|
|
64
|
+
"typescript": "^5.4.5",
|
|
65
|
+
"vite": "^5.2.11",
|
|
66
|
+
"vite-plugin-dts": "^3.9.1",
|
|
67
|
+
"vitest": "^4.1.0"
|
|
68
|
+
},
|
|
69
|
+
"size-limit": [
|
|
70
|
+
{
|
|
71
|
+
"path": "dist/syncline-editor.es.js",
|
|
72
|
+
"limit": "150 kB"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"path": "dist/syncline-editor.umd.js",
|
|
76
|
+
"limit": "150 kB"
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
}
|