@akilli/editor-src 5.1.8 → 5.2.1

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/base/Sorting.js CHANGED
@@ -1,36 +1,9 @@
1
- export default class Sorting {
2
- /**
3
- * @return {string}
4
- */
5
- static get FIRST() {
6
- return 'first';
7
- }
8
-
9
- /**
10
- * @return {string}
11
- */
12
- static get PREV() {
13
- return 'prev';
14
- }
15
-
16
- /**
17
- * @return {string}
18
- */
19
- static get NEXT() {
20
- return 'next';
21
- }
22
-
23
- /**
24
- * @return {string}
25
- */
26
- static get LAST() {
27
- return 'last';
28
- }
29
-
30
- /**
31
- * @return {string[]}
32
- */
33
- static values() {
34
- return [this.FIRST, this.PREV, this.NEXT, this.LAST];
35
- }
36
- }
1
+ /**
2
+ * @enum {string}
3
+ */
4
+ export default Object.freeze({
5
+ FIRST: 'first',
6
+ PREV: 'prev',
7
+ NEXT: 'next',
8
+ LAST: 'last',
9
+ });
package/base/TagGroup.js CHANGED
@@ -1,183 +1,31 @@
1
- export default class TagGroup {
2
- /**
3
- * @return {string}
4
- */
5
- static get AUDIO() {
6
- return 'audio';
7
- }
8
-
9
- /**
10
- * @return {string}
11
- */
12
- static get BLOCK() {
13
- return 'block';
14
- }
15
-
16
- /**
17
- * @return {string}
18
- */
19
- static get BREAK() {
20
- return 'break';
21
- }
22
-
23
- /**
24
- * @return {string}
25
- */
26
- static get CAPTION() {
27
- return 'caption';
28
- }
29
-
30
- /**
31
- * @return {string}
32
- */
33
- static get COL() {
34
- return 'col';
35
- }
36
-
37
- /**
38
- * @return {string}
39
- */
40
- static get COLGROUP() {
41
- return 'colgroup';
42
- }
43
-
44
- /**
45
- * @return {string}
46
- */
47
- static get CONTAINER() {
48
- return 'container';
49
- }
50
-
51
- /**
52
- * @return {string}
53
- */
54
- static get FIGURE() {
55
- return 'figure';
56
- }
57
-
58
- /**
59
- * @return {string}
60
- */
61
- static get FORMAT() {
62
- return 'format';
63
- }
64
-
65
- /**
66
- * @return {string}
67
- */
68
- static get HEADING() {
69
- return 'heading';
70
- }
71
-
72
- /**
73
- * @return {string}
74
- */
75
- static get IFRAME() {
76
- return 'iframe';
77
- }
78
-
79
- /**
80
- * @return {string}
81
- */
82
- static get IMAGE() {
83
- return 'image';
84
- }
85
-
86
- /**
87
- * @return {string}
88
- */
89
- static get LIST() {
90
- return 'list';
91
- }
92
-
93
- /**
94
- * @return {string}
95
- */
96
- static get LISTITEM() {
97
- return 'listitem';
98
- }
99
-
100
- /**
101
- * @return {string}
102
- */
103
- static get PARAGRAPH() {
104
- return 'paragraph';
105
- }
106
-
107
- /**
108
- * @return {string}
109
- */
110
- static get PREFORMAT() {
111
- return 'preformat';
112
- }
113
-
114
- /**
115
- * @return {string}
116
- */
117
- static get QUOTE() {
118
- return 'quote';
119
- }
120
-
121
- /**
122
- * @return {string}
123
- */
124
- static get ROOT() {
125
- return 'root';
126
- }
127
-
128
- /**
129
- * @return {string}
130
- */
131
- static get RULE() {
132
- return 'rule';
133
- }
134
-
135
- /**
136
- * @return {string}
137
- */
138
- static get SLOT() {
139
- return 'slot';
140
- }
141
-
142
- /**
143
- * @return {string}
144
- */
145
- static get SUMMARY() {
146
- return 'summary';
147
- }
148
-
149
- /**
150
- * @return {string}
151
- */
152
- static get TABLE() {
153
- return 'table';
154
- }
155
-
156
- /**
157
- * @return {string}
158
- */
159
- static get TABLECELL() {
160
- return 'tablecell';
161
- }
162
-
163
- /**
164
- * @return {string}
165
- */
166
- static get TABLEROW() {
167
- return 'tablerow';
168
- }
169
-
170
- /**
171
- * @return {string}
172
- */
173
- static get TABLESECTION() {
174
- return 'tablesection';
175
- }
176
-
177
- /**
178
- * @return {string}
179
- */
180
- static get VIDEO() {
181
- return 'video';
182
- }
183
- }
1
+ /**
2
+ * @enum {string}
3
+ */
4
+ export default Object.freeze({
5
+ AUDIO: 'audio',
6
+ BLOCK: 'block',
7
+ BREAK: 'break',
8
+ CAPTION: 'caption',
9
+ COL: 'col',
10
+ COLGROUP: 'colgroup',
11
+ CONTAINER: 'container',
12
+ FIGURE: 'figure',
13
+ FORMAT: 'format',
14
+ HEADING: 'heading',
15
+ IFRAME: 'iframe',
16
+ IMAGE: 'image',
17
+ LIST: 'list',
18
+ LISTITEM: 'listitem',
19
+ PARAGRAPH: 'paragraph',
20
+ PREFORMAT: 'preformat',
21
+ QUOTE: 'quote',
22
+ ROOT: 'root',
23
+ RULE: 'rule',
24
+ SLOT: 'slot',
25
+ SUMMARY: 'summary',
26
+ TABLE: 'table',
27
+ TABLECELL: 'tablecell',
28
+ TABLEROW: 'tablerow',
29
+ TABLESECTION: 'tablesection',
30
+ VIDEO: 'video',
31
+ });