@markuplint/ml-spec 2.0.0-rc.1 → 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 +0 -15
- package/lib/attributes.d.ts +1404 -79
- package/lib/get-attr-specs.d.ts +1 -1
- package/lib/get-ns.d.ts +1 -1
- package/lib/get-spec.d.ts +3 -3
- package/lib/permitted-structres.d.ts +93 -51
- package/lib/types.d.ts +169 -147
- package/lib/utils.d.ts +5 -3
- package/package.json +3 -3
- package/schemas/global-attributes.schema.json +15 -1
- package/src/attributes.ts +15 -8
- package/src/types.ts +10 -0
- package/tsconfig.tsbuildinfo +1 -1
package/lib/get-attr-specs.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { MLMLSpec, Attribute } from './types';
|
|
2
2
|
export declare function getAttrSpecs(nameWithNS: string, schema: MLMLSpec): Attribute[] | null;
|
|
3
3
|
declare type HasName = {
|
|
4
|
-
|
|
4
|
+
name: string;
|
|
5
5
|
};
|
|
6
6
|
export declare function nameCompare(a: HasName | string, b: HasName | string): 1 | -1 | 0;
|
|
7
7
|
export {};
|
package/lib/get-ns.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getNS(namespaceURI: string):
|
|
1
|
+
export declare function getNS(namespaceURI: string): 'svg' | 'mml' | 'html';
|
package/lib/get-spec.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import type { ElementSpec, ExtendedSpec, MLMLSpec } from './types';
|
|
|
7
7
|
* @param schemas `MLDocument.schemas`
|
|
8
8
|
*/
|
|
9
9
|
export declare function getSpec(schemas: readonly [MLMLSpec, ...ExtendedSpec[]]): {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
cites: import('./types').Cites;
|
|
11
|
+
def: import('./types').SpecDefs;
|
|
12
|
+
specs: ElementSpec[];
|
|
13
13
|
};
|
|
@@ -3,71 +3,113 @@
|
|
|
3
3
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
4
4
|
* and run json-schema-to-typescript to regenerate this file.
|
|
5
5
|
*/
|
|
6
|
-
export declare type PermittedContent =
|
|
6
|
+
export declare type PermittedContent =
|
|
7
|
+
| PermittedContentRequire
|
|
8
|
+
| PermittedContentOptional
|
|
9
|
+
| PermittedContentOneOrMore
|
|
10
|
+
| PermittedContentZeroOrMore
|
|
11
|
+
| PermittedContentChoice
|
|
12
|
+
| PermittedContentInterleave;
|
|
7
13
|
export declare type Target = Node | Node[];
|
|
8
14
|
export declare type Node = string | '#text' | ContentModel;
|
|
9
|
-
export declare type ContentModel =
|
|
15
|
+
export declare type ContentModel =
|
|
16
|
+
| '#phrasing'
|
|
17
|
+
| '#flow'
|
|
18
|
+
| '#interactive'
|
|
19
|
+
| '#heading'
|
|
20
|
+
| '#sectioning'
|
|
21
|
+
| '#metadata'
|
|
22
|
+
| '#transparent'
|
|
23
|
+
| '#embedded'
|
|
24
|
+
| '#palpable'
|
|
25
|
+
| '#script-supporting'
|
|
26
|
+
| '#SVGAnimation'
|
|
27
|
+
| '#SVGBasicShapes'
|
|
28
|
+
| '#SVGContainer'
|
|
29
|
+
| '#SVGDescriptive'
|
|
30
|
+
| '#SVGFilterPrimitive'
|
|
31
|
+
| '#SVGFont'
|
|
32
|
+
| '#SVGGradient'
|
|
33
|
+
| '#SVGGraphics'
|
|
34
|
+
| '#SVGGraphicsReferencing'
|
|
35
|
+
| '#SVGLightSource'
|
|
36
|
+
| '#SVGNeverRendered'
|
|
37
|
+
| '#SVGNone'
|
|
38
|
+
| '#SVGPaintServer'
|
|
39
|
+
| '#SVGRenderable'
|
|
40
|
+
| '#SVGShape'
|
|
41
|
+
| '#SVGStructural'
|
|
42
|
+
| '#SVGStructurallyExternal'
|
|
43
|
+
| '#SVGTextContent'
|
|
44
|
+
| '#SVGTextContentChild'
|
|
45
|
+
| '#SVGOtherXMLNamespace';
|
|
10
46
|
export declare type PermittedContentSpec = PermittedContent[];
|
|
11
47
|
export interface PermittedStructuresSchema {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
48
|
+
summary?: string;
|
|
49
|
+
tag: string;
|
|
50
|
+
conditional?: {
|
|
51
|
+
condition:
|
|
52
|
+
| {
|
|
53
|
+
hasAttr: string;
|
|
54
|
+
}
|
|
55
|
+
| {
|
|
56
|
+
parent: string;
|
|
57
|
+
/**
|
|
58
|
+
* Not support yet
|
|
59
|
+
*/
|
|
60
|
+
hasNotAttr?: string;
|
|
61
|
+
_TODO_?: string;
|
|
62
|
+
_parent?: string;
|
|
63
|
+
};
|
|
64
|
+
contents: PermittedContentSpec | boolean;
|
|
65
|
+
}[];
|
|
66
|
+
contents: PermittedContentSpec | boolean;
|
|
67
|
+
ancestor?: Node;
|
|
30
68
|
}
|
|
31
69
|
export interface PermittedContentRequire {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
70
|
+
require: Target;
|
|
71
|
+
ignore?: Target;
|
|
72
|
+
notAllowedDescendants?: Node[];
|
|
73
|
+
max?: number;
|
|
74
|
+
min?: number;
|
|
75
|
+
_TODO_?: string;
|
|
38
76
|
}
|
|
39
77
|
export interface PermittedContentOptional {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
78
|
+
optional: Target;
|
|
79
|
+
ignore?: Target;
|
|
80
|
+
notAllowedDescendants?: Node[];
|
|
81
|
+
max?: number;
|
|
82
|
+
_TODO_?: string;
|
|
45
83
|
}
|
|
46
84
|
export interface PermittedContentOneOrMore {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
85
|
+
oneOrMore: Target | PermittedContentSpec;
|
|
86
|
+
ignore?: Target;
|
|
87
|
+
notAllowedDescendants?: Node[];
|
|
88
|
+
max?: number;
|
|
89
|
+
_TODO_?: string;
|
|
52
90
|
}
|
|
53
91
|
export interface PermittedContentZeroOrMore {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
92
|
+
zeroOrMore: Target | PermittedContentSpec;
|
|
93
|
+
ignore?: Target;
|
|
94
|
+
notAllowedDescendants?: Node[];
|
|
95
|
+
max?: number;
|
|
96
|
+
_TODO_?: string;
|
|
59
97
|
}
|
|
60
98
|
export interface PermittedContentChoice {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
99
|
+
choice:
|
|
100
|
+
| [PermittedContentSpec, PermittedContentSpec]
|
|
101
|
+
| [PermittedContentSpec, PermittedContentSpec, PermittedContentSpec]
|
|
102
|
+
| [PermittedContentSpec, PermittedContentSpec, PermittedContentSpec, PermittedContentSpec]
|
|
103
|
+
| [
|
|
104
|
+
PermittedContentSpec,
|
|
105
|
+
PermittedContentSpec,
|
|
106
|
+
PermittedContentSpec,
|
|
107
|
+
PermittedContentSpec,
|
|
108
|
+
PermittedContentSpec,
|
|
109
|
+
];
|
|
110
|
+
_TODO_?: string;
|
|
69
111
|
}
|
|
70
112
|
export interface PermittedContentInterleave {
|
|
71
|
-
|
|
72
|
-
|
|
113
|
+
interleave: [PermittedContentSpec, PermittedContentSpec, ...PermittedContentSpec[]];
|
|
114
|
+
_TODO_?: string;
|
|
73
115
|
}
|
package/lib/types.d.ts
CHANGED
|
@@ -5,116 +5,127 @@ import type { ContentModel, PermittedStructuresSchema } from './permitted-struct
|
|
|
5
5
|
* markuplit Markup-language spec
|
|
6
6
|
*/
|
|
7
7
|
export interface MLMLSpec {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
cites: Cites;
|
|
9
|
+
def: SpecDefs;
|
|
10
|
+
specs: ElementSpec[];
|
|
11
11
|
}
|
|
12
12
|
export declare type ExtendedElementSpec = Partial<Omit<ElementSpec, 'name' | 'attributes'>> & {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
name: ElementSpec['name'];
|
|
14
|
+
attributes?: Record<string, Partial<Attribute>>;
|
|
15
15
|
};
|
|
16
16
|
export declare type ExtendedSpec = {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
cites?: Cites;
|
|
18
|
+
def?: Partial<SpecDefs>;
|
|
19
|
+
specs?: ExtendedElementSpec[];
|
|
20
20
|
};
|
|
21
21
|
/**
|
|
22
22
|
* Reference URLs
|
|
23
23
|
*/
|
|
24
24
|
export declare type Cites = string[];
|
|
25
25
|
export declare type SpecDefs = {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
26
|
+
'#globalAttrs': Partial<{
|
|
27
|
+
'#extends': Record<string, Partial<Attribute>>;
|
|
28
|
+
'#HTMLGlobalAttrs': Record<string, Partial<Attribute>>;
|
|
29
|
+
[OtherGlobalAttrs: string]: Record<string, Partial<Attribute>>;
|
|
30
|
+
}>;
|
|
31
|
+
'#ariaAttrs': ARIAAttribute[];
|
|
32
|
+
'#roles': ARIRRoleAttribute[];
|
|
33
|
+
'#contentModels': {
|
|
34
|
+
[model in ContentModel]?: string[];
|
|
35
|
+
};
|
|
36
36
|
};
|
|
37
37
|
/**
|
|
38
38
|
* Element spec
|
|
39
39
|
*/
|
|
40
40
|
export declare type ElementSpec = {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
41
|
+
/**
|
|
42
|
+
* Tag name
|
|
43
|
+
*/
|
|
44
|
+
name: string;
|
|
45
|
+
/**
|
|
46
|
+
* Namespaces in XML
|
|
47
|
+
* @see https://www.w3.org/TR/xml-names/
|
|
48
|
+
*/
|
|
49
|
+
namespace?: 'http://www.w3.org/1999/xhtml' | 'http://www.w3.org/2000/svg' | 'http://www.w3.org/1998/Math/MathML';
|
|
50
|
+
/**
|
|
51
|
+
* Reference URL
|
|
52
|
+
*/
|
|
53
|
+
cite: string;
|
|
54
|
+
/**
|
|
55
|
+
* Description
|
|
56
|
+
*/
|
|
57
|
+
description?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Experimental technology
|
|
60
|
+
*/
|
|
61
|
+
experimental?: true;
|
|
62
|
+
/**
|
|
63
|
+
* Obsolete or alternative elements
|
|
64
|
+
*/
|
|
65
|
+
obsolete?:
|
|
66
|
+
| true
|
|
67
|
+
| {
|
|
68
|
+
alt: string;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Deprecated
|
|
72
|
+
*/
|
|
73
|
+
deprecated?: true;
|
|
74
|
+
/**
|
|
75
|
+
* Non-standard
|
|
76
|
+
*/
|
|
77
|
+
nonStandard?: true;
|
|
78
|
+
/**
|
|
79
|
+
* Element cateogries
|
|
80
|
+
*/
|
|
81
|
+
categories: ContentModel[];
|
|
82
|
+
/**
|
|
83
|
+
* Permitted contents and permitted parents
|
|
84
|
+
*/
|
|
85
|
+
permittedStructures: PermittedStructuresSchema;
|
|
86
|
+
/**
|
|
87
|
+
* Permitted ARIA roles
|
|
88
|
+
*/
|
|
89
|
+
permittedRoles: {
|
|
90
|
+
summary: string;
|
|
91
|
+
roles: PermittedRoles;
|
|
92
|
+
conditions?: {
|
|
93
|
+
condition: string;
|
|
94
|
+
roles: PermittedRoles;
|
|
95
|
+
}[];
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* Implicit ARIA role
|
|
99
|
+
*/
|
|
100
|
+
implicitRole: {
|
|
101
|
+
summary: string;
|
|
102
|
+
role: ImplicitRole;
|
|
103
|
+
conditions?: {
|
|
104
|
+
condition: string;
|
|
105
|
+
role: ImplicitRole;
|
|
106
|
+
}[];
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* Tag omittion
|
|
110
|
+
*/
|
|
111
|
+
omittion: ElementSpecOmittion;
|
|
112
|
+
/**
|
|
113
|
+
* Global Attributes
|
|
114
|
+
*/
|
|
115
|
+
globalAttrs: GlobalAttributes;
|
|
116
|
+
/**
|
|
117
|
+
* Attributes
|
|
118
|
+
*/
|
|
119
|
+
attributes: Record<string, Attribute>;
|
|
120
|
+
/**
|
|
121
|
+
* If true, it is possible to add any properties as attributes,
|
|
122
|
+
* for example, when using a template engine or a view language.
|
|
123
|
+
*
|
|
124
|
+
* @see https://v2.vuejs.org/v2/guide/components-slots.html#Scoped-Slots
|
|
125
|
+
*
|
|
126
|
+
* **It assumes to specify it on the parser plugin.**
|
|
127
|
+
*/
|
|
128
|
+
possibleToAddProperties?: true;
|
|
118
129
|
};
|
|
119
130
|
/**
|
|
120
131
|
* If `false`, this mean is "No corresponding role".
|
|
@@ -127,74 +138,85 @@ declare type ImplicitRole = string | false;
|
|
|
127
138
|
export declare type PermittedRoles = string[] | boolean;
|
|
128
139
|
declare type ElementSpecOmittion = false | ElementSpecOmittionTags;
|
|
129
140
|
declare type ElementSpecOmittionTags = {
|
|
130
|
-
|
|
131
|
-
|
|
141
|
+
startTag: boolean | ElementCondition;
|
|
142
|
+
endTag: boolean | ElementCondition;
|
|
132
143
|
};
|
|
133
144
|
declare type ElementCondition = {
|
|
134
|
-
|
|
145
|
+
__WIP__: 'WORK_IN_PROGRESS';
|
|
135
146
|
};
|
|
136
147
|
export declare type Attribute = {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
148
|
+
name: string;
|
|
149
|
+
type: AttributeType | AttributeType[];
|
|
150
|
+
description?: string;
|
|
151
|
+
caseSensitive?: true;
|
|
152
|
+
experimental?: true;
|
|
153
|
+
obsolete?: true;
|
|
154
|
+
deprecated?: boolean;
|
|
155
|
+
nonStandard?: true;
|
|
145
156
|
} & ExtendableAttributeSpec;
|
|
146
157
|
declare type ExtendableAttributeSpec = Omit<AttributeJSON, 'ref' | '_TODO_' | 'type'>;
|
|
147
158
|
export declare type ARIRRoleAttribute = {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
159
|
+
name: string;
|
|
160
|
+
description: string;
|
|
161
|
+
isAbstract?: true;
|
|
162
|
+
generalization: string[];
|
|
163
|
+
requiredContextRole?: string[];
|
|
164
|
+
accessibleNameRequired: boolean;
|
|
165
|
+
accessibleNameFromContent: boolean;
|
|
166
|
+
accessibleNameProhibited: boolean;
|
|
167
|
+
ownedAttribute: ARIARoleOwnedPropOrState[];
|
|
168
|
+
childrenPresentational?: boolean;
|
|
158
169
|
};
|
|
159
170
|
export declare type ARIARoleOwnedPropOrState = {
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
171
|
+
name: string;
|
|
172
|
+
inherited?: true;
|
|
173
|
+
required?: true;
|
|
174
|
+
deprecated?: true;
|
|
175
|
+
prohibited?: true;
|
|
176
|
+
defaultValue?: boolean | string | number;
|
|
166
177
|
};
|
|
167
178
|
export declare type ARIAAttribute = {
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
179
|
+
name: string;
|
|
180
|
+
type: 'property' | 'state';
|
|
181
|
+
deprecated?: true;
|
|
182
|
+
isGlobal?: true;
|
|
183
|
+
value: ARIAAttributeValue;
|
|
184
|
+
conditionalValue?: {
|
|
185
|
+
role: string[];
|
|
186
|
+
value: ARIAAttributeValue;
|
|
187
|
+
}[];
|
|
188
|
+
enum: string[];
|
|
189
|
+
defaultValue?: string;
|
|
190
|
+
equivalentHtmlAttrs?: EquivalentHtmlAttr[];
|
|
191
|
+
valueDescriptions?: Record<string, string>;
|
|
181
192
|
};
|
|
182
|
-
export declare type ARIAAttributeValue =
|
|
193
|
+
export declare type ARIAAttributeValue =
|
|
194
|
+
| 'true/false'
|
|
195
|
+
| 'tristate'
|
|
196
|
+
| 'true/false/undefined'
|
|
197
|
+
| 'ID reference'
|
|
198
|
+
| 'ID reference list'
|
|
199
|
+
| 'integer'
|
|
200
|
+
| 'number'
|
|
201
|
+
| 'string'
|
|
202
|
+
| 'token'
|
|
203
|
+
| 'token list'
|
|
204
|
+
| 'URI';
|
|
183
205
|
export declare type EquivalentHtmlAttr = {
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
206
|
+
htmlAttrName: string;
|
|
207
|
+
isNotStrictEquivalent?: true;
|
|
208
|
+
value: string | null;
|
|
187
209
|
};
|
|
188
210
|
export interface SpecOM {
|
|
189
|
-
|
|
211
|
+
[tagName: string]: MLDOMElementSpec;
|
|
190
212
|
}
|
|
191
213
|
export interface MLDOMElementSpec {
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
214
|
+
experimental: boolean;
|
|
215
|
+
obsolete: boolean | string;
|
|
216
|
+
deprecated: boolean;
|
|
217
|
+
nonStandard: boolean;
|
|
218
|
+
categories: ContentModel[];
|
|
219
|
+
permittedStructures: PermittedStructuresSchema;
|
|
220
|
+
attributes: Attribute[];
|
|
199
221
|
}
|
|
200
222
|
export {};
|
package/lib/utils.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markuplint/ml-spec",
|
|
3
|
-
"version": "2.0.0
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Types and schema that specs of the Markup languages for markuplint",
|
|
5
5
|
"repository": "git@github.com:markuplint/markuplint.git",
|
|
6
6
|
"author": "Yusuke Hirao <yusukehirao@me.com>",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"tslib": "^2.3.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@markuplint/types": "
|
|
27
|
+
"@markuplint/types": "2.0.0",
|
|
28
28
|
"json-schema-to-typescript": "^10.1.5"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "de81fc514acdf472f87184e3499e9364258f9b66"
|
|
31
31
|
}
|
|
@@ -63,6 +63,7 @@
|
|
|
63
63
|
"enum": [
|
|
64
64
|
"onabort",
|
|
65
65
|
"onauxclick",
|
|
66
|
+
"onbeforeinput",
|
|
66
67
|
"onblur",
|
|
67
68
|
"oncancel",
|
|
68
69
|
"oncanplay",
|
|
@@ -71,6 +72,9 @@
|
|
|
71
72
|
"onclick",
|
|
72
73
|
"onclose",
|
|
73
74
|
"oncontextlost",
|
|
75
|
+
"oncompositionstart",
|
|
76
|
+
"oncompositionupdate",
|
|
77
|
+
"oncompositionend",
|
|
74
78
|
"oncontextmenu",
|
|
75
79
|
"oncontextrestored",
|
|
76
80
|
"oncuechange",
|
|
@@ -88,6 +92,8 @@
|
|
|
88
92
|
"onerror",
|
|
89
93
|
"onfocus",
|
|
90
94
|
"onformdata",
|
|
95
|
+
"onfocusin",
|
|
96
|
+
"onfocusout",
|
|
91
97
|
"oninput",
|
|
92
98
|
"oninvalid",
|
|
93
99
|
"onkeydown",
|
|
@@ -128,6 +134,7 @@
|
|
|
128
134
|
"onwebkitanimationiteration",
|
|
129
135
|
"onwebkitanimationstart",
|
|
130
136
|
"onwebkittransitionend",
|
|
137
|
+
"onunload",
|
|
131
138
|
"onwheel"
|
|
132
139
|
]
|
|
133
140
|
},
|
|
@@ -384,11 +391,12 @@
|
|
|
384
391
|
"patternProperties": { ".+": { "$ref": "./attributes.schema.json#/definitions/AttributeJSON" } }
|
|
385
392
|
},
|
|
386
393
|
"#GlobalEventAttrs": {
|
|
387
|
-
"description": "[GlobalEventHandlers]( https://html.spec.whatwg.org/multipage/webappapis.html#globaleventhandlers )",
|
|
394
|
+
"description": "[GlobalEventHandlers]( https://html.spec.whatwg.org/multipage/webappapis.html#globaleventhandlers ) and [UIEvent]( https://w3c.github.io/uievents/#event-types-list )",
|
|
388
395
|
"type": "object",
|
|
389
396
|
"required": [
|
|
390
397
|
"onabort",
|
|
391
398
|
"onauxclick",
|
|
399
|
+
"onbeforeinput",
|
|
392
400
|
"onblur",
|
|
393
401
|
"oncancel",
|
|
394
402
|
"oncanplay",
|
|
@@ -397,6 +405,9 @@
|
|
|
397
405
|
"onclick",
|
|
398
406
|
"onclose",
|
|
399
407
|
"oncontextlost",
|
|
408
|
+
"oncompositionstart",
|
|
409
|
+
"oncompositionupdate",
|
|
410
|
+
"oncompositionend",
|
|
400
411
|
"oncontextmenu",
|
|
401
412
|
"oncontextrestored",
|
|
402
413
|
"oncuechange",
|
|
@@ -414,6 +425,8 @@
|
|
|
414
425
|
"onerror",
|
|
415
426
|
"onfocus",
|
|
416
427
|
"onformdata",
|
|
428
|
+
"onfocusin",
|
|
429
|
+
"onfocusout",
|
|
417
430
|
"oninput",
|
|
418
431
|
"oninvalid",
|
|
419
432
|
"onkeydown",
|
|
@@ -454,6 +467,7 @@
|
|
|
454
467
|
"onwebkitanimationiteration",
|
|
455
468
|
"onwebkitanimationstart",
|
|
456
469
|
"onwebkittransitionend",
|
|
470
|
+
"onunload",
|
|
457
471
|
"onwheel"
|
|
458
472
|
],
|
|
459
473
|
"propertyNames": { "$ref": "#/definitions/GlobalEventAttrs" },
|