Skip to content

Commit 21843cd

Browse files
committed
fix code bug
1 parent 6c7bd26 commit 21843cd

File tree

5 files changed

+1037
-15
lines changed

5 files changed

+1037
-15
lines changed

public/prism-code-editor/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 FIameCaster
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
{
2+
"name": "prism-code-editor",
3+
"version": "3.4.0",
4+
"type": "module",
5+
"description": "Lightweight, extensible code editor component for the web using Prism",
6+
"main": "./dist/index.js",
7+
"types": "./dist/index.d.ts",
8+
"exports": {
9+
".": "./dist/index.js",
10+
"./prism": "./dist/prism/index.js",
11+
"./prism/utils": "./dist/prism/utils/index.js",
12+
"./guides": "./dist/extensions/guides.js",
13+
"./web-component": "./dist/webComponent.js",
14+
"./copy-button": "./dist/extensions/copyButton/index.js",
15+
"./copy-button.css": "./dist/copy.css",
16+
"./code-folding.css": "./dist/folding.css",
17+
"./scrollbar.css": "./dist/scrollbar.css",
18+
"./autocomplete.css": "./dist/autocomplete.css",
19+
"./autocomplete-icons.css": "./dist/autocomplete-icons.css",
20+
"./setups": "./dist/setups/index.js",
21+
"./utils": "./dist/utils/index.js",
22+
"./layout.css": "./dist/layout.css",
23+
"./rtl-layout.css": "./dist/rtl-layout.css",
24+
"./themes/*.css": "./dist/themes/*.css",
25+
"./themes": "./dist/themes/index.js",
26+
"./languages": "./dist/languages/index.js",
27+
"./languages/*": "./dist/languages/*.js",
28+
"./prism/languages": "./dist/prism/languages/index.js",
29+
"./prism/languages/*": "./dist/prism/languages/*.js",
30+
"./match-brackets": "./dist/extensions/matchBrackets/index.js",
31+
"./highlight-brackets": "./dist/extensions/matchBrackets/highlight.js",
32+
"./match-tags": "./dist/extensions/matchTags.js",
33+
"./tooltips": "./dist/tooltips.js",
34+
"./autocomplete": "./dist/extensions/autocomplete/index.js",
35+
"./autocomplete/css": "./dist/extensions/autocomplete/css/index.js",
36+
"./autocomplete/markup": "./dist/extensions/autocomplete/markup/index.js",
37+
"./autocomplete/javascript": "./dist/extensions/autocomplete/javascript/index.js",
38+
"./commands": "./dist/extensions/commands.js",
39+
"./cursor": "./dist/extensions/cursor.js",
40+
"./code-folding": "./dist/extensions/folding/index.js",
41+
"./search": "./dist/extensions/search/index.js",
42+
"./search/api": "./dist/extensions/search/api.js",
43+
"./search.css": "./dist/search.css",
44+
"./invisibles.css": "./dist/invisibles.css"
45+
},
46+
"typesVersions": {
47+
"*": {
48+
"*": [
49+
"./dist/*"
50+
]
51+
}
52+
},
53+
"files": [
54+
"dist/*"
55+
],
56+
"scripts": {
57+
"dev": "vite",
58+
"build": "tsc && vite build && node scripts/build.mjs",
59+
"build-html-data": "node scripts/buildHTMLData.mjs",
60+
"build-css-data": "node scripts/buildCSSData.mjs",
61+
"preview": "vite preview",
62+
"regex-coverage": "mocha src/prism/tests/coverage.js",
63+
"test": "mocha src/prism/tests/*.js",
64+
"test:core": "mocha src/prism/tests/core-tests.js",
65+
"test:identifiers": "mocha src/prism/tests/identifier-test.js",
66+
"test:languages": "mocha src/prism/tests/run.js",
67+
"test:patterns": "mocha src/prism/tests/pattern-tests.js",
68+
"prepublish": "tsc && vite build && node scripts/build.mjs"
69+
},
70+
"devDependencies": {
71+
"@types/chai": "^4.3.11",
72+
"@types/mocha": "^10.0.6",
73+
"@types/node": "^20.11.0",
74+
"@types/yargs": "^17.0.32",
75+
"@vscode/web-custom-data": "^0.4.11",
76+
"chai": "^5.0.0",
77+
"magic-string": "^0.30.5",
78+
"mocha": "^10.2.0",
79+
"prettier": "2.7.1",
80+
"refa": "0.9.1",
81+
"regexp-ast-analysis": "0.2.4",
82+
"regexpp": "^3.2.0",
83+
"scslre": "0.1.6",
84+
"typedoc": "^0.25.1",
85+
"typescript": "^5.0.2",
86+
"vite": "^5.2.8",
87+
"vite-plugin-dts": "^3.9.1",
88+
"yargs": "^17.7.2"
89+
},
90+
"keywords": [
91+
"editor",
92+
"code editor",
93+
"textarea",
94+
"small",
95+
"highlight",
96+
"prismjs"
97+
],
98+
"author": "FlameCaster",
99+
"repository": {
100+
"type": "git",
101+
"url": "git+https://github.com/FIameCaster/prism-code-editor.git"
102+
},
103+
"license": "MIT",
104+
"sideEffects": [
105+
"*.css",
106+
"./dist/languages/*",
107+
"./dist/prism/languages/*"
108+
],
109+
"packageManager": "[email protected]+sha1.b198ac6d38244fd829253720f9daafd6a606834d"
110+
}

0 commit comments

Comments
 (0)