@webref/idl 3.2.1 → 3.3.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/app-history.idl +42 -41
- package/clipboard-apis.idl +14 -21
- package/close-watcher.idl +6 -2
- package/compute-pressure.idl +11 -6
- package/html.idl +2 -1
- package/navigation-timing.idl +11 -11
- package/package.json +1 -1
package/app-history.idl
CHANGED
|
@@ -1,85 +1,85 @@
|
|
|
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:
|
|
4
|
+
// Source: Navigation API (https://wicg.github.io/navigation-api/)
|
|
5
5
|
|
|
6
6
|
partial interface Window {
|
|
7
|
-
readonly attribute
|
|
7
|
+
readonly attribute Navigation navigation;
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
[Exposed=Window]
|
|
11
|
-
interface
|
|
12
|
-
sequence<
|
|
13
|
-
readonly attribute
|
|
14
|
-
undefined
|
|
15
|
-
readonly attribute
|
|
11
|
+
interface Navigation : EventTarget {
|
|
12
|
+
sequence<NavigationHistoryEntry> entries();
|
|
13
|
+
readonly attribute NavigationHistoryEntry? currentEntry;
|
|
14
|
+
undefined updateCurrentEntry(NavigationUpdateCurrentEntryOptions options);
|
|
15
|
+
readonly attribute NavigationTransition? transition;
|
|
16
16
|
|
|
17
17
|
readonly attribute boolean canGoBack;
|
|
18
18
|
readonly attribute boolean canGoForward;
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
NavigationResult navigate(USVString url, optional NavigationNavigateOptions options = {});
|
|
21
|
+
NavigationResult reload(optional NavigationReloadOptions options = {});
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
NavigationResult traverseTo(DOMString key, optional NavigationOptions options = {});
|
|
24
|
+
NavigationResult back(optional NavigationOptions options = {});
|
|
25
|
+
NavigationResult forward(optional NavigationOptions options = {});
|
|
26
26
|
|
|
27
27
|
attribute EventHandler onnavigate;
|
|
28
28
|
attribute EventHandler onnavigatesuccess;
|
|
29
29
|
attribute EventHandler onnavigateerror;
|
|
30
|
-
attribute EventHandler
|
|
30
|
+
attribute EventHandler oncurrententrychange;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
dictionary
|
|
33
|
+
dictionary NavigationUpdateCurrentEntryOptions {
|
|
34
34
|
required any state;
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
-
dictionary
|
|
37
|
+
dictionary NavigationOptions {
|
|
38
38
|
any info;
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
-
dictionary
|
|
41
|
+
dictionary NavigationNavigateOptions : NavigationOptions {
|
|
42
42
|
any state;
|
|
43
43
|
boolean replace = false;
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
-
dictionary
|
|
46
|
+
dictionary NavigationReloadOptions : NavigationOptions {
|
|
47
47
|
any state;
|
|
48
48
|
};
|
|
49
49
|
|
|
50
|
-
dictionary
|
|
51
|
-
Promise<
|
|
52
|
-
Promise<
|
|
50
|
+
dictionary NavigationResult {
|
|
51
|
+
Promise<NavigationHistoryEntry> committed;
|
|
52
|
+
Promise<NavigationHistoryEntry> finished;
|
|
53
53
|
};
|
|
54
54
|
|
|
55
55
|
[Exposed=Window]
|
|
56
|
-
interface
|
|
57
|
-
constructor(DOMString type,
|
|
56
|
+
interface NavigationCurrentEntryChangeEvent : Event {
|
|
57
|
+
constructor(DOMString type, NavigationCurrentEntryChangeEventInit eventInit);
|
|
58
58
|
|
|
59
|
-
readonly attribute
|
|
60
|
-
readonly attribute
|
|
59
|
+
readonly attribute NavigationNavigationType? navigationType;
|
|
60
|
+
readonly attribute NavigationHistoryEntry from;
|
|
61
61
|
};
|
|
62
62
|
|
|
63
|
-
dictionary
|
|
64
|
-
|
|
65
|
-
required
|
|
63
|
+
dictionary NavigationCurrentEntryChangeEventInit : EventInit {
|
|
64
|
+
NavigationNavigationType? navigationType = null;
|
|
65
|
+
required NavigationHistoryEntry destination;
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
[Exposed=Window]
|
|
69
|
-
interface
|
|
70
|
-
readonly attribute
|
|
71
|
-
readonly attribute
|
|
69
|
+
interface NavigationTransition {
|
|
70
|
+
readonly attribute NavigationNavigationType navigationType;
|
|
71
|
+
readonly attribute NavigationHistoryEntry from;
|
|
72
72
|
readonly attribute Promise<undefined> finished;
|
|
73
73
|
|
|
74
|
-
|
|
74
|
+
NavigationResult rollback(optional NavigationOptions options = {});
|
|
75
75
|
};
|
|
76
76
|
|
|
77
77
|
[Exposed=Window]
|
|
78
|
-
interface
|
|
79
|
-
constructor(DOMString type,
|
|
78
|
+
interface NavigateEvent : Event {
|
|
79
|
+
constructor(DOMString type, NavigateEventInit eventInit);
|
|
80
80
|
|
|
81
|
-
readonly attribute
|
|
82
|
-
readonly attribute
|
|
81
|
+
readonly attribute NavigationNavigationType navigationType;
|
|
82
|
+
readonly attribute NavigationDestination destination;
|
|
83
83
|
readonly attribute boolean canTransition;
|
|
84
84
|
readonly attribute boolean userInitiated;
|
|
85
85
|
readonly attribute boolean hashChange;
|
|
@@ -90,9 +90,9 @@ interface AppHistoryNavigateEvent : Event {
|
|
|
90
90
|
undefined transitionWhile(Promise<undefined> newNavigationAction);
|
|
91
91
|
};
|
|
92
92
|
|
|
93
|
-
dictionary
|
|
94
|
-
|
|
95
|
-
required
|
|
93
|
+
dictionary NavigateEventInit : EventInit {
|
|
94
|
+
NavigationNavigationType navigationType = "push";
|
|
95
|
+
required NavigationDestination destination;
|
|
96
96
|
boolean canTransition = false;
|
|
97
97
|
boolean userInitiated = false;
|
|
98
98
|
boolean hashChange = false;
|
|
@@ -101,7 +101,8 @@ dictionary AppHistoryNavigateEventInit : EventInit {
|
|
|
101
101
|
any info;
|
|
102
102
|
};
|
|
103
103
|
|
|
104
|
-
|
|
104
|
+
// TODO: rename to NavigationType after https://github.com/w3c/navigation-timing/pull/172 lands.
|
|
105
|
+
enum NavigationNavigationType {
|
|
105
106
|
"reload",
|
|
106
107
|
"push",
|
|
107
108
|
"replace",
|
|
@@ -109,7 +110,7 @@ enum AppHistoryNavigationType {
|
|
|
109
110
|
};
|
|
110
111
|
|
|
111
112
|
[Exposed=Window]
|
|
112
|
-
interface
|
|
113
|
+
interface NavigationDestination {
|
|
113
114
|
readonly attribute USVString url;
|
|
114
115
|
readonly attribute DOMString? key;
|
|
115
116
|
readonly attribute DOMString? id;
|
|
@@ -120,7 +121,7 @@ interface AppHistoryDestination {
|
|
|
120
121
|
};
|
|
121
122
|
|
|
122
123
|
[Exposed=Window]
|
|
123
|
-
interface
|
|
124
|
+
interface NavigationHistoryEntry : EventTarget {
|
|
124
125
|
readonly attribute USVString? url;
|
|
125
126
|
readonly attribute DOMString key;
|
|
126
127
|
readonly attribute DOMString id;
|
package/clipboard-apis.idl
CHANGED
|
@@ -17,31 +17,14 @@ partial interface Navigator {
|
|
|
17
17
|
[SecureContext, SameObject] readonly attribute Clipboard clipboard;
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
-
typedef
|
|
21
|
-
|
|
22
|
-
[SecureContext, Exposed=Window] interface Clipboard : EventTarget {
|
|
23
|
-
Promise<ClipboardItems> read();
|
|
24
|
-
Promise<DOMString> readText();
|
|
25
|
-
Promise<undefined> write(ClipboardItems data);
|
|
26
|
-
Promise<undefined> writeText(DOMString data);
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
typedef (DOMString or Blob) ClipboardItemDataType;
|
|
30
|
-
typedef Promise<ClipboardItemDataType> ClipboardItemData;
|
|
31
|
-
|
|
32
|
-
callback ClipboardItemDelayedCallback = ClipboardItemData ();
|
|
20
|
+
typedef Promise<(DOMString or Blob)> ClipboardItemData;
|
|
33
21
|
|
|
34
|
-
[Exposed=Window]
|
|
22
|
+
[SecureContext, Exposed=Window]
|
|
23
|
+
interface ClipboardItem {
|
|
35
24
|
constructor(record<DOMString, ClipboardItemData> items,
|
|
36
|
-
|
|
37
|
-
static ClipboardItem createDelayed(
|
|
38
|
-
record<DOMString, ClipboardItemDelayedCallback> items,
|
|
39
|
-
optional ClipboardItemOptions options = {});
|
|
25
|
+
optional ClipboardItemOptions options = {});
|
|
40
26
|
|
|
41
27
|
readonly attribute PresentationStyle presentationStyle;
|
|
42
|
-
readonly attribute long long lastModified;
|
|
43
|
-
readonly attribute boolean delayed;
|
|
44
|
-
|
|
45
28
|
readonly attribute FrozenArray<DOMString> types;
|
|
46
29
|
|
|
47
30
|
Promise<Blob> getType(DOMString type);
|
|
@@ -53,6 +36,16 @@ dictionary ClipboardItemOptions {
|
|
|
53
36
|
PresentationStyle presentationStyle = "unspecified";
|
|
54
37
|
};
|
|
55
38
|
|
|
39
|
+
typedef sequence<ClipboardItem> ClipboardItems;
|
|
40
|
+
|
|
41
|
+
[SecureContext, Exposed=Window]
|
|
42
|
+
interface Clipboard : EventTarget {
|
|
43
|
+
Promise<ClipboardItems> read();
|
|
44
|
+
Promise<DOMString> readText();
|
|
45
|
+
Promise<undefined> write(ClipboardItems data);
|
|
46
|
+
Promise<undefined> writeText(DOMString data);
|
|
47
|
+
};
|
|
48
|
+
|
|
56
49
|
dictionary ClipboardPermissionDescriptor : PermissionDescriptor {
|
|
57
50
|
boolean allowWithoutGesture = false;
|
|
58
51
|
};
|
package/close-watcher.idl
CHANGED
|
@@ -5,11 +5,15 @@
|
|
|
5
5
|
|
|
6
6
|
[Exposed=Window]
|
|
7
7
|
interface CloseWatcher : EventTarget {
|
|
8
|
-
constructor();
|
|
8
|
+
constructor(optional CloseWatcherOptions options = {});
|
|
9
9
|
|
|
10
10
|
undefined destroy();
|
|
11
|
-
undefined
|
|
11
|
+
undefined close();
|
|
12
12
|
|
|
13
13
|
attribute EventHandler oncancel;
|
|
14
14
|
attribute EventHandler onclose;
|
|
15
15
|
};
|
|
16
|
+
|
|
17
|
+
dictionary CloseWatcherOptions {
|
|
18
|
+
AbortSignal signal;
|
|
19
|
+
};
|
package/compute-pressure.idl
CHANGED
|
@@ -3,31 +3,36 @@
|
|
|
3
3
|
// (https://github.com/w3c/webref)
|
|
4
4
|
// Source: Compute Pressure API (https://wicg.github.io/compute-pressure/)
|
|
5
5
|
|
|
6
|
-
enum
|
|
6
|
+
enum ComputePressureState { "nominal", "fair", "serious", "critical" };
|
|
7
|
+
|
|
8
|
+
enum ComputePressureFactor { "thermal", "power-supply" };
|
|
7
9
|
|
|
8
10
|
callback ComputePressureUpdateCallback = undefined (
|
|
9
11
|
sequence<ComputePressureRecord> changes,
|
|
10
12
|
ComputePressureObserver observer
|
|
11
13
|
);
|
|
12
14
|
|
|
13
|
-
enum
|
|
15
|
+
enum ComputePressureSource { "cpu" };
|
|
14
16
|
|
|
15
17
|
[Exposed=(DedicatedWorker,SharedWorker,Window), SecureContext]
|
|
16
18
|
interface ComputePressureObserver {
|
|
17
19
|
constructor(ComputePressureUpdateCallback callback);
|
|
18
20
|
|
|
19
|
-
undefined observe(
|
|
20
|
-
undefined unobserve(
|
|
21
|
+
undefined observe(ComputePressureSource source, optional ComputePressureObserverOptions options = {});
|
|
22
|
+
undefined unobserve(ComputePressureSource source);
|
|
21
23
|
undefined disconnect();
|
|
22
24
|
sequence<ComputePressureRecord> takeRecords();
|
|
23
25
|
|
|
24
|
-
[SameObject] static readonly attribute FrozenArray<DOMString>
|
|
26
|
+
[SameObject] static readonly attribute FrozenArray<DOMString> supportedSources;
|
|
25
27
|
|
|
26
28
|
[Exposed=Window] static Promise<PermissionState> requestPermission();
|
|
27
29
|
};
|
|
28
30
|
|
|
29
31
|
dictionary ComputePressureRecord {
|
|
30
|
-
|
|
32
|
+
ComputePressureSource source;
|
|
33
|
+
ComputePressureState state;
|
|
34
|
+
sequence<ComputePressureFactor> factors;
|
|
35
|
+
DOMHighResTimeStamp timestamp;
|
|
31
36
|
ComputePressureObserverOptions options;
|
|
32
37
|
};
|
|
33
38
|
|
package/html.idl
CHANGED
|
@@ -116,6 +116,7 @@ interface HTMLElement : Element {
|
|
|
116
116
|
|
|
117
117
|
// user interaction
|
|
118
118
|
[CEReactions] attribute boolean hidden;
|
|
119
|
+
[CEReactions] attribute boolean inert;
|
|
119
120
|
undefined click();
|
|
120
121
|
[CEReactions] attribute DOMString accessKey;
|
|
121
122
|
readonly attribute DOMString accessKeyLabel;
|
|
@@ -1480,7 +1481,7 @@ interface mixin CanvasPath {
|
|
|
1480
1481
|
undefined bezierCurveTo(unrestricted double cp1x, unrestricted double cp1y, unrestricted double cp2x, unrestricted double cp2y, unrestricted double x, unrestricted double y);
|
|
1481
1482
|
undefined arcTo(unrestricted double x1, unrestricted double y1, unrestricted double x2, unrestricted double y2, unrestricted double radius);
|
|
1482
1483
|
undefined rect(unrestricted double x, unrestricted double y, unrestricted double w, unrestricted double h);
|
|
1483
|
-
undefined roundRect(unrestricted double x, unrestricted double y, unrestricted double w, unrestricted double h, optional (unrestricted double or DOMPointInit or sequence<(unrestricted double or DOMPointInit)>) radii =
|
|
1484
|
+
undefined roundRect(unrestricted double x, unrestricted double y, unrestricted double w, unrestricted double h, optional (unrestricted double or DOMPointInit or sequence<(unrestricted double or DOMPointInit)>) radii = 0);
|
|
1484
1485
|
undefined arc(unrestricted double x, unrestricted double y, unrestricted double radius, unrestricted double startAngle, unrestricted double endAngle, optional boolean counterclockwise = false);
|
|
1485
1486
|
undefined ellipse(unrestricted double x, unrestricted double y, unrestricted double radiusX, unrestricted double radiusY, unrestricted double rotation, unrestricted double startAngle, unrestricted double endAngle, optional boolean counterclockwise = false);
|
|
1486
1487
|
};
|
package/navigation-timing.idl
CHANGED
|
@@ -5,20 +5,20 @@
|
|
|
5
5
|
|
|
6
6
|
[Exposed=Window]
|
|
7
7
|
interface PerformanceNavigationTiming : PerformanceResourceTiming {
|
|
8
|
-
readonly attribute DOMHighResTimeStamp
|
|
9
|
-
readonly attribute DOMHighResTimeStamp
|
|
10
|
-
readonly attribute DOMHighResTimeStamp
|
|
11
|
-
readonly attribute DOMHighResTimeStamp
|
|
12
|
-
readonly attribute DOMHighResTimeStamp
|
|
13
|
-
readonly attribute DOMHighResTimeStamp
|
|
14
|
-
readonly attribute DOMHighResTimeStamp
|
|
15
|
-
readonly attribute DOMHighResTimeStamp
|
|
16
|
-
readonly attribute
|
|
17
|
-
readonly attribute unsigned short
|
|
8
|
+
readonly attribute DOMHighResTimeStamp unloadEventStart;
|
|
9
|
+
readonly attribute DOMHighResTimeStamp unloadEventEnd;
|
|
10
|
+
readonly attribute DOMHighResTimeStamp domInteractive;
|
|
11
|
+
readonly attribute DOMHighResTimeStamp domContentLoadedEventStart;
|
|
12
|
+
readonly attribute DOMHighResTimeStamp domContentLoadedEventEnd;
|
|
13
|
+
readonly attribute DOMHighResTimeStamp domComplete;
|
|
14
|
+
readonly attribute DOMHighResTimeStamp loadEventStart;
|
|
15
|
+
readonly attribute DOMHighResTimeStamp loadEventEnd;
|
|
16
|
+
readonly attribute NavigationTimingType type;
|
|
17
|
+
readonly attribute unsigned short redirectCount;
|
|
18
18
|
[Default] object toJSON();
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
-
enum
|
|
21
|
+
enum NavigationTimingType {
|
|
22
22
|
"navigate",
|
|
23
23
|
"reload",
|
|
24
24
|
"back_forward",
|