@wangeditor-next/code-highlight 1.2.0 → 1.2.2

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/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.2.2](https://github.com/cycleccc/wangEditor/compare/@wangeditor-next/code-highlight@1.2.1...@wangeditor-next/code-highlight@1.2.2) (2024-08-18)
7
+
8
+ **Note:** Version bump only for package @wangeditor-next/code-highlight
9
+
10
+
11
+
12
+
13
+
14
+ ## [1.2.1](https://github.com/cycleccc/wangEditor/compare/@wangeditor-next/code-highlight@1.2.0...@wangeditor-next/code-highlight@1.2.1) (2024-06-22)
15
+
16
+ **Note:** Version bump only for package @wangeditor-next/code-highlight
17
+
18
+
19
+
20
+
21
+
6
22
  # [1.2.0](https://github.com/cycleccc/wangEditor/compare/@wangeditor-next/code-highlight@1.1.0...@wangeditor-next/code-highlight@1.2.0) (2024-05-30)
7
23
 
8
24
 
@@ -41,23 +57,23 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
41
57
 
42
58
 
43
59
 
44
- ## [1.0.3](https://github.com/wangeditor-team/wangEditor/compare/@wangeditor/code-highlight@1.0.2...@wangeditor/code-highlight@1.0.3) (2022-09-14)
60
+ ## [1.0.3](https://github.com/cycleccc/wangEditor/compare/@wangeditor/code-highlight@1.0.2...@wangeditor/code-highlight@1.0.3) (2022-09-14)
45
61
 
46
62
 
47
63
  ### Bug Fixes
48
64
 
49
- * 代码块 - 增加 lua groovy 语言 ([ef4f62a](https://github.com/wangeditor-team/wangEditor/commit/ef4f62a876e95995f7c8f6f41d8d44b2505dd5f6))
65
+ * 代码块 - 增加 lua groovy 语言 ([ef4f62a](https://github.com/cycleccc/wangEditor/commit/ef4f62a876e95995f7c8f6f41d8d44b2505dd5f6))
50
66
 
51
67
 
52
68
 
53
69
 
54
70
 
55
- ## [1.0.2](https://github.com/wangeditor-team/wangEditor/compare/@wangeditor/code-highlight@1.0.1...@wangeditor/code-highlight@1.0.2) (2022-06-02)
71
+ ## [1.0.2](https://github.com/cycleccc/wangEditor/compare/@wangeditor/code-highlight@1.0.1...@wangeditor/code-highlight@1.0.2) (2022-06-02)
56
72
 
57
73
 
58
74
  ### Bug Fixes
59
75
 
60
- * issue 4308 - 自定义字号、字体无法回显 ([ad38b8c](https://github.com/wangeditor-team/wangEditor/commit/ad38b8ce6dbcff1d65785c8d6701238ad351f562))
76
+ * issue 4308 - 自定义字号、字体无法回显 ([ad38b8c](https://github.com/cycleccc/wangEditor/commit/ad38b8ce6dbcff1d65785c8d6701238ad351f562))
61
77
 
62
78
 
63
79
 
@@ -68,18 +84,18 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
68
84
 
69
85
  ### Bug Fixes
70
86
 
71
- * 更新各包之间依赖版本 ([75c552c](https://github.com/wangeditor-team/wangEditor/commit/75c552cc8ed54765bebb86a7ec5329a7fc79e85f))
72
- * 修复 pnpm 安装 @wangeditor/editor 出现警告的问题 ([4087fbe](https://github.com/wangeditor-team/wangEditor/commit/4087fbee01c76bdd55e747a5e86c5e4a8d6a8353))
73
- * 移除了每个包下的 publishConfig directory 配置 ([16559f0](https://github.com/wangeditor-team/wangEditor/commit/16559f052545c111318be760e64291a521bdcc65))
74
- * 粘贴 <code> 代码块出错 ([fc44d9f](https://github.com/wangeditor-team/wangEditor/commit/fc44d9ff36cb9566d9dc5490b4be14f2e5bd3f3c))
75
- * rename es module filename ([1821d4e](https://github.com/wangeditor-team/wangEditor/commit/1821d4eef49e64efcb41b848849ca7a5e6472044))
76
- * table - elemToHtml ([e36e609](https://github.com/wangeditor-team/wangEditor/commit/e36e6092ef721723169afc8bf0560a47ac9f4dfc))
87
+ * 更新各包之间依赖版本 ([75c552c](https://github.com/cycleccc/wangEditor/commit/75c552cc8ed54765bebb86a7ec5329a7fc79e85f))
88
+ * 修复 pnpm 安装 @wangeditor/editor 出现警告的问题 ([4087fbe](https://github.com/cycleccc/wangEditor/commit/4087fbee01c76bdd55e747a5e86c5e4a8d6a8353))
89
+ * 移除了每个包下的 publishConfig directory 配置 ([16559f0](https://github.com/cycleccc/wangEditor/commit/16559f052545c111318be760e64291a521bdcc65))
90
+ * 粘贴 <code> 代码块出错 ([fc44d9f](https://github.com/cycleccc/wangEditor/commit/fc44d9ff36cb9566d9dc5490b4be14f2e5bd3f3c))
91
+ * rename es module filename ([1821d4e](https://github.com/cycleccc/wangEditor/commit/1821d4eef49e64efcb41b848849ca7a5e6472044))
92
+ * table - elemToHtml ([e36e609](https://github.com/cycleccc/wangEditor/commit/e36e6092ef721723169afc8bf0560a47ac9f4dfc))
77
93
 
78
94
 
79
95
  ### Features
80
96
 
81
- * code highlight ([42b2f8d](https://github.com/wangeditor-team/wangEditor/commit/42b2f8d192e2433593c11ad0b8424737f6cffb58))
82
- * i18n ([c11b244](https://github.com/wangeditor-team/wangEditor/commit/c11b2440f91b99d40bca18b675c66a22b6e160c9))
83
- * parse html ([2a5eace](https://github.com/wangeditor-team/wangEditor/commit/2a5eace00f33cded50b68e8164748ec2480213fd))
84
- * toHtml 机制 ([1c4d872](https://github.com/wangeditor-team/wangEditor/commit/1c4d8729f84aaab6a448f23064b34a20596305e9))
85
- * upload video ([ac8e6f8](https://github.com/wangeditor-team/wangEditor/commit/ac8e6f8b5258e593714676a6f6be359ba525833c))
97
+ * code highlight ([42b2f8d](https://github.com/cycleccc/wangEditor/commit/42b2f8d192e2433593c11ad0b8424737f6cffb58))
98
+ * i18n ([c11b244](https://github.com/cycleccc/wangEditor/commit/c11b2440f91b99d40bca18b675c66a22b6e160c9))
99
+ * parse html ([2a5eace](https://github.com/cycleccc/wangEditor/commit/2a5eace00f33cded50b68e8164748ec2480213fd))
100
+ * toHtml 机制 ([1c4d872](https://github.com/cycleccc/wangEditor/commit/1c4d8729f84aaab6a448f23064b34a20596305e9))
101
+ * upload video ([ac8e6f8](https://github.com/cycleccc/wangEditor/commit/ac8e6f8b5258e593714676a6f6be359ba525833c))
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2021 - present wangEditor-team
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.
1
+ MIT License
2
+
3
+ Copyright (c) 2021 - present wangEditor-team
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.
package/README.md CHANGED
@@ -1,3 +1,3 @@
1
- # wangEditor code highlight
2
-
3
- Code highlight module built in [wangEditor](https://www.wangeditor.com/) by default.
1
+ # wangEditor code highlight
2
+
3
+ Code highlight module built in [wangeditor-next](https://cycleccc.github.io/docs/) by default.
@@ -2,16 +2,10 @@
2
2
  * @description vdom utils fn
3
3
  * @author wangfupeng
4
4
  */
5
- import { VNode, VNodeStyle } from 'snabbdom';
5
+ import { VNode } from 'snabbdom';
6
6
  /**
7
7
  * 给 vnode 添加 className
8
8
  * @param vnode vnode
9
9
  * @param className css class
10
10
  */
11
11
  export declare function addVnodeClassName(vnode: VNode, className: string): void;
12
- /**
13
- * 给 vnode 添加样式
14
- * @param vnode vnode
15
- * @param newStyle { key: val }
16
- */
17
- export declare function addVnodeStyle(vnode: VNode, newStyle: VNodeStyle): void;
@@ -1,78 +1 @@
1
- .w-e-text-container [data-slate-editor] pre > code {
2
- text-shadow: 0 1px white;
3
- font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
4
- text-align: left;
5
- white-space: pre;
6
- word-spacing: normal;
7
- word-break: normal;
8
- word-wrap: normal;
9
- line-height: 1.5;
10
- -moz-tab-size: 4;
11
- -o-tab-size: 4;
12
- tab-size: 4;
13
- -webkit-hyphens: none;
14
- hyphens: none;
15
- padding: 1em;
16
- margin: 0.5em 0;
17
- overflow: auto;
18
- }
19
- .w-e-text-container [data-slate-editor] pre > code .token.comment,
20
- .w-e-text-container [data-slate-editor] pre > code .token.prolog,
21
- .w-e-text-container [data-slate-editor] pre > code .token.doctype,
22
- .w-e-text-container [data-slate-editor] pre > code .token.cdata {
23
- color: slategray;
24
- }
25
- .w-e-text-container [data-slate-editor] pre > code .token.punctuation {
26
- color: #999;
27
- }
28
- .w-e-text-container [data-slate-editor] pre > code .token.namespace {
29
- opacity: 0.7;
30
- }
31
- .w-e-text-container [data-slate-editor] pre > code .token.property,
32
- .w-e-text-container [data-slate-editor] pre > code .token.tag,
33
- .w-e-text-container [data-slate-editor] pre > code .token.boolean,
34
- .w-e-text-container [data-slate-editor] pre > code .token.number,
35
- .w-e-text-container [data-slate-editor] pre > code .token.constant,
36
- .w-e-text-container [data-slate-editor] pre > code .token.symbol,
37
- .w-e-text-container [data-slate-editor] pre > code .token.deleted {
38
- color: #905;
39
- }
40
- .w-e-text-container [data-slate-editor] pre > code .token.selector,
41
- .w-e-text-container [data-slate-editor] pre > code .token.attr-name,
42
- .w-e-text-container [data-slate-editor] pre > code .token.string,
43
- .w-e-text-container [data-slate-editor] pre > code .token.char,
44
- .w-e-text-container [data-slate-editor] pre > code .token.builtin,
45
- .w-e-text-container [data-slate-editor] pre > code .token.inserted {
46
- color: #690;
47
- }
48
- .w-e-text-container [data-slate-editor] pre > code .token.operator,
49
- .w-e-text-container [data-slate-editor] pre > code .token.entity,
50
- .w-e-text-container [data-slate-editor] pre > code .token.url,
51
- .w-e-text-container [data-slate-editor] pre > code .language-css .token.string,
52
- .w-e-text-container [data-slate-editor] pre > code .style .token.string {
53
- color: #9a6e3a;
54
- }
55
- .w-e-text-container [data-slate-editor] pre > code .token.atrule,
56
- .w-e-text-container [data-slate-editor] pre > code .token.attr-value,
57
- .w-e-text-container [data-slate-editor] pre > code .token.keyword {
58
- color: #07a;
59
- }
60
- .w-e-text-container [data-slate-editor] pre > code .token.function,
61
- .w-e-text-container [data-slate-editor] pre > code .token.class-name {
62
- color: #DD4A68;
63
- }
64
- .w-e-text-container [data-slate-editor] pre > code .token.regex,
65
- .w-e-text-container [data-slate-editor] pre > code .token.important,
66
- .w-e-text-container [data-slate-editor] pre > code .token.variable {
67
- color: #e90;
68
- }
69
- .w-e-text-container [data-slate-editor] pre > code .token.important,
70
- .w-e-text-container [data-slate-editor] pre > code .token.bold {
71
- font-weight: bold;
72
- }
73
- .w-e-text-container [data-slate-editor] pre > code .token.italic {
74
- font-style: italic;
75
- }
76
- .w-e-text-container [data-slate-editor] pre > code .token.entity {
77
- cursor: help;
78
- }
1
+ .w-e-text-container [data-slate-editor] pre>code{word-wrap:normal;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;-webkit-hyphens:none;hyphens:none;line-height:1.5;margin:.5em 0;overflow:auto;padding:1em;-moz-tab-size:4;-o-tab-size:4;tab-size:4;text-align:left;text-shadow:0 1px #fff;white-space:pre;word-break:normal;word-spacing:normal}.w-e-text-container [data-slate-editor] pre>code .token.cdata,.w-e-text-container [data-slate-editor] pre>code .token.comment,.w-e-text-container [data-slate-editor] pre>code .token.doctype,.w-e-text-container [data-slate-editor] pre>code .token.prolog{color:#708090}.w-e-text-container [data-slate-editor] pre>code .token.punctuation{color:#999}.w-e-text-container [data-slate-editor] pre>code .token.namespace{opacity:.7}.w-e-text-container [data-slate-editor] pre>code .token.boolean,.w-e-text-container [data-slate-editor] pre>code .token.constant,.w-e-text-container [data-slate-editor] pre>code .token.deleted,.w-e-text-container [data-slate-editor] pre>code .token.number,.w-e-text-container [data-slate-editor] pre>code .token.property,.w-e-text-container [data-slate-editor] pre>code .token.symbol,.w-e-text-container [data-slate-editor] pre>code .token.tag{color:#905}.w-e-text-container [data-slate-editor] pre>code .token.attr-name,.w-e-text-container [data-slate-editor] pre>code .token.builtin,.w-e-text-container [data-slate-editor] pre>code .token.char,.w-e-text-container [data-slate-editor] pre>code .token.inserted,.w-e-text-container [data-slate-editor] pre>code .token.selector,.w-e-text-container [data-slate-editor] pre>code .token.string{color:#690}.w-e-text-container [data-slate-editor] pre>code .language-css .token.string,.w-e-text-container [data-slate-editor] pre>code .style .token.string,.w-e-text-container [data-slate-editor] pre>code .token.entity,.w-e-text-container [data-slate-editor] pre>code .token.operator,.w-e-text-container [data-slate-editor] pre>code .token.url{color:#9a6e3a}.w-e-text-container [data-slate-editor] pre>code .token.atrule,.w-e-text-container [data-slate-editor] pre>code .token.attr-value,.w-e-text-container [data-slate-editor] pre>code .token.keyword{color:#07a}.w-e-text-container [data-slate-editor] pre>code .token.class-name,.w-e-text-container [data-slate-editor] pre>code .token.function{color:#dd4a68}.w-e-text-container [data-slate-editor] pre>code .token.important,.w-e-text-container [data-slate-editor] pre>code .token.regex,.w-e-text-container [data-slate-editor] pre>code .token.variable{color:#e90}.w-e-text-container [data-slate-editor] pre>code .token.bold,.w-e-text-container [data-slate-editor] pre>code .token.important{font-weight:700}.w-e-text-container [data-slate-editor] pre>code .token.italic{font-style:italic}.w-e-text-container [data-slate-editor] pre>code .token.entity{cursor:help}