@webref/idl 2.10.0 → 2.11.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/contact-api.idl +1 -1
- package/css-typed-om.idl +1 -1
- package/edit-context.idl +113 -0
- package/package.json +2 -2
package/contact-api.idl
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// GENERATED CONTENT - DO NOT EDIT
|
|
2
2
|
// Content was automatically extracted by Reffy into webref
|
|
3
3
|
// (https://github.com/w3c/webref)
|
|
4
|
-
// Source: Contact Picker API (https://
|
|
4
|
+
// Source: Contact Picker API (https://w3c.github.io/contact-api/spec/)
|
|
5
5
|
|
|
6
6
|
[Exposed=Window]
|
|
7
7
|
partial interface Navigator {
|
package/css-typed-om.idl
CHANGED
|
@@ -323,7 +323,7 @@ interface CSSImageValue : CSSStyleValue {
|
|
|
323
323
|
interface CSSColorValue : CSSStyleValue {
|
|
324
324
|
readonly attribute CSSKeywordValue colorSpace;
|
|
325
325
|
CSSColorValue to(CSSKeywordish colorSpace);
|
|
326
|
-
[Exposed=Window] static CSSColorValue parse(USVString cssText);
|
|
326
|
+
[Exposed=Window] static (CSSColorValue or CSSStyleValue) parse(USVString cssText);
|
|
327
327
|
};
|
|
328
328
|
|
|
329
329
|
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
|
package/edit-context.idl
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
// GENERATED CONTENT - DO NOT EDIT
|
|
2
|
+
// Content was automatically extracted by Reffy into webref
|
|
3
|
+
// (https://github.com/w3c/webref)
|
|
4
|
+
// Source: EditContext API (https://w3c.github.io/edit-context/)
|
|
5
|
+
|
|
6
|
+
partial interface Element {
|
|
7
|
+
attribute EditContext? editContext;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
dictionary EditContextInit {
|
|
11
|
+
DOMString text;
|
|
12
|
+
unsigned long selectionStart;
|
|
13
|
+
unsigned long selectionEnd;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
[Exposed=Window]
|
|
17
|
+
interface EditContext : EventTarget {
|
|
18
|
+
constructor(optional EditContextInit options = {});
|
|
19
|
+
|
|
20
|
+
undefined updateText(unsigned long rangeStart, unsigned long rangeEnd,
|
|
21
|
+
DOMString text);
|
|
22
|
+
undefined updateSelection(unsigned long start, unsigned long end);
|
|
23
|
+
undefined updateControlBound(DOMRect controlBound);
|
|
24
|
+
undefined updateSelectionBound(DOMRect selectionBound);
|
|
25
|
+
undefined updateCharacterBounds(unsigned long rangeStart, sequence<DOMRect> characterBounds);
|
|
26
|
+
|
|
27
|
+
sequence<Element> attachedElements();
|
|
28
|
+
|
|
29
|
+
readonly attribute DOMString text;
|
|
30
|
+
readonly attribute unsigned long selectionStart;
|
|
31
|
+
readonly attribute unsigned long selectionEnd;
|
|
32
|
+
readonly attribute unsigned long compositionRangeStart;
|
|
33
|
+
readonly attribute unsigned long compositionRangeEnd;
|
|
34
|
+
readonly attribute boolean isInComposition;
|
|
35
|
+
readonly attribute DOMRect controlBound;
|
|
36
|
+
readonly attribute DOMRect selectionBound;
|
|
37
|
+
readonly attribute unsigned long characterBoundsRangeStart;
|
|
38
|
+
sequence<DOMRect> characterBounds();
|
|
39
|
+
|
|
40
|
+
attribute EventHandler ontextupdate;
|
|
41
|
+
attribute EventHandler ontextformatupdate;
|
|
42
|
+
attribute EventHandler oncharacterboundsupdate;
|
|
43
|
+
attribute EventHandler oncompositionstart;
|
|
44
|
+
attribute EventHandler oncompositionend;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
dictionary TextUpdateEventInit {
|
|
48
|
+
unsigned long updateRangeStart;
|
|
49
|
+
unsigned long updateRangeEnd;
|
|
50
|
+
DOMString text;
|
|
51
|
+
unsigned long selectionStart;
|
|
52
|
+
unsigned long selectionEnd;
|
|
53
|
+
unsigned long compositionStart;
|
|
54
|
+
unsigned long compositionEnd;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
[Exposed=Window]
|
|
58
|
+
interface TextUpdateEvent : Event {
|
|
59
|
+
constructor(optional TextUpdateEventInit options = {});
|
|
60
|
+
readonly attribute unsigned long updateRangeStart;
|
|
61
|
+
readonly attribute unsigned long updateRangeEnd;
|
|
62
|
+
readonly attribute DOMString text;
|
|
63
|
+
readonly attribute unsigned long selectionStart;
|
|
64
|
+
readonly attribute unsigned long selectionEnd;
|
|
65
|
+
readonly attribute unsigned long compositionStart;
|
|
66
|
+
readonly attribute unsigned long compositionEnd;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
dictionary TextFormatInit {
|
|
70
|
+
unsigned long rangeStart;
|
|
71
|
+
unsigned long rangeEnd;
|
|
72
|
+
DOMString textColor;
|
|
73
|
+
DOMString backgroundColor;
|
|
74
|
+
DOMString underlineStyle;
|
|
75
|
+
DOMString underlineThickness;
|
|
76
|
+
DOMString underlineColor;
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
[Exposed=Window]
|
|
80
|
+
interface TextFormat {
|
|
81
|
+
constructor(optional TextFormatInit options = {});
|
|
82
|
+
attribute unsigned long rangeStart;
|
|
83
|
+
attribute unsigned long rangeEnd;
|
|
84
|
+
attribute DOMString textColor;
|
|
85
|
+
attribute DOMString backgroundColor;
|
|
86
|
+
attribute DOMString underlineStyle;
|
|
87
|
+
attribute DOMString underlineThickness;
|
|
88
|
+
attribute DOMString underlineColor;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
dictionary TextFormatUpdateEventInit {
|
|
92
|
+
sequence<TextFormat> textFormats;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
[Exposed=Window]
|
|
96
|
+
interface TextFormatUpdateEvent : Event {
|
|
97
|
+
constructor(optional TextFormatUpdateEventInit options = {});
|
|
98
|
+
|
|
99
|
+
sequence<TextFormat> getTextFormats();
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
dictionary CharacterBoundsUpdateEventInit {
|
|
103
|
+
unsigned long rangeStart;
|
|
104
|
+
unsigned long rangeEnd;
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
[Exposed=Window]
|
|
108
|
+
interface CharacterBoundsUpdateEvent : Event {
|
|
109
|
+
constructor(optional CharacterBoundsUpdateEventInit options = {});
|
|
110
|
+
|
|
111
|
+
readonly attribute unsigned long rangeStart;
|
|
112
|
+
readonly attribute unsigned long rangeEnd;
|
|
113
|
+
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webref/idl",
|
|
3
3
|
"description": "Web IDL definitions of the web platform",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.11.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/w3c/webref.git"
|
|
@@ -14,4 +14,4 @@
|
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"webidl2": "^24.2.0"
|
|
16
16
|
}
|
|
17
|
-
}
|
|
17
|
+
}
|