@webref/idl 3.47.0 → 3.47.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/DOM-Parsing.idl CHANGED
@@ -8,7 +8,3 @@ interface XMLSerializer {
8
8
  constructor();
9
9
  DOMString serializeToString(Node root);
10
10
  };
11
-
12
- partial interface Range {
13
- [CEReactions, NewObject] DocumentFragment createContextualFragment(HTMLString fragment);
14
- };
@@ -21,7 +21,7 @@ interface PressureObserver {
21
21
  undefined disconnect();
22
22
  sequence<PressureRecord> takeRecords();
23
23
 
24
- [SameObject] static readonly attribute FrozenArray<PressureSource> supportedSources;
24
+ [SameObject] static readonly attribute FrozenArray<PressureSource> knownSources;
25
25
  };
26
26
 
27
27
  [Exposed=(DedicatedWorker,SharedWorker,Window), SecureContext]
@@ -16,8 +16,8 @@ partial namespace CSS {
16
16
 
17
17
  [Exposed=Window]
18
18
  interface CSSPropertyRule : CSSRule {
19
- readonly attribute CSSOMString name;
20
- readonly attribute CSSOMString syntax;
21
- readonly attribute boolean inherits;
22
- readonly attribute CSSOMString? initialValue;
19
+ readonly attribute CSSOMString name;
20
+ readonly attribute CSSOMString syntax;
21
+ readonly attribute boolean inherits;
22
+ readonly attribute CSSOMString? initialValue;
23
23
  };
@@ -23,5 +23,5 @@ dictionary IdentityRequestProvider {
23
23
  [Exposed=Window, SecureContext]
24
24
  interface DigitalCredential : Credential {
25
25
  readonly attribute DOMString protocol;
26
- [SameObject] readonly attribute Uint8Array data;
26
+ readonly attribute any data;
27
27
  };
@@ -5,44 +5,46 @@
5
5
 
6
6
  [Exposed=Window]
7
7
  partial interface Navigator {
8
- [SecureContext] Promise<MediaKeySystemAccess> requestMediaKeySystemAccess (DOMString keySystem, sequence<MediaKeySystemConfiguration> supportedConfigurations);
8
+ [SecureContext] Promise<MediaKeySystemAccess> requestMediaKeySystemAccess (
9
+ DOMString keySystem,
10
+ sequence<MediaKeySystemConfiguration> supportedConfigurations);
9
11
  };
10
12
 
11
13
  enum MediaKeysRequirement {
12
- "required",
13
- "optional",
14
- "not-allowed"
14
+ "required",
15
+ "optional",
16
+ "not-allowed"
15
17
  };
16
18
 
17
19
  dictionary MediaKeySystemConfiguration {
18
- DOMString label = "";
19
- sequence<DOMString> initDataTypes = [];
20
- sequence<MediaKeySystemMediaCapability> audioCapabilities = [];
21
- sequence<MediaKeySystemMediaCapability> videoCapabilities = [];
22
- MediaKeysRequirement distinctiveIdentifier = "optional";
23
- MediaKeysRequirement persistentState = "optional";
24
- sequence<DOMString> sessionTypes;
20
+ DOMString label = "";
21
+ sequence<DOMString> initDataTypes = [];
22
+ sequence<MediaKeySystemMediaCapability> audioCapabilities = [];
23
+ sequence<MediaKeySystemMediaCapability> videoCapabilities = [];
24
+ MediaKeysRequirement distinctiveIdentifier = "optional";
25
+ MediaKeysRequirement persistentState = "optional";
26
+ sequence<DOMString> sessionTypes;
25
27
  };
26
28
 
27
29
  dictionary MediaKeySystemMediaCapability {
28
- DOMString contentType = "";
29
- DOMString? encryptionScheme = null;
30
- DOMString robustness = "";
30
+ DOMString contentType = "";
31
+ DOMString? encryptionScheme = null;
32
+ DOMString robustness = "";
31
33
  };
32
34
 
33
35
  [Exposed=Window, SecureContext] interface MediaKeySystemAccess {
34
- readonly attribute DOMString keySystem;
35
- MediaKeySystemConfiguration getConfiguration ();
36
- Promise<MediaKeys> createMediaKeys ();
36
+ readonly attribute DOMString keySystem;
37
+ MediaKeySystemConfiguration getConfiguration ();
38
+ Promise<MediaKeys> createMediaKeys ();
37
39
  };
38
40
 
39
41
  enum MediaKeySessionType {
40
- "temporary",
41
- "persistent-license"
42
+ "temporary",
43
+ "persistent-license"
42
44
  };
43
45
 
44
46
  [Exposed=Window, SecureContext] interface MediaKeys {
45
- MediaKeySession createSession (optional MediaKeySessionType sessionType = "temporary");
47
+ MediaKeySession createSession (optional MediaKeySessionType sessionType = "temporary");
46
48
  Promise<MediaKeyStatus> getStatusForPolicy (optional MediaKeysPolicy policy = {});
47
49
  Promise<boolean> setServerCertificate (BufferSource serverCertificate);
48
50
  };
@@ -64,69 +66,69 @@ enum HDCPVersion {
64
66
  };
65
67
 
66
68
  enum MediaKeySessionClosedReason {
67
- "internal-error",
68
- "closed-by-application",
69
- "release-acknowledged",
70
- "hardware-context-reset",
71
- "resource-evicted"
69
+ "internal-error",
70
+ "closed-by-application",
71
+ "release-acknowledged",
72
+ "hardware-context-reset",
73
+ "resource-evicted"
72
74
  };
73
75
 
74
76
  [Exposed=Window, SecureContext] interface MediaKeySession : EventTarget {
75
- readonly attribute DOMString sessionId;
76
- readonly attribute unrestricted double expiration;
77
- readonly attribute Promise<MediaKeySessionClosedReason> closed;
78
- readonly attribute MediaKeyStatusMap keyStatuses;
79
- attribute EventHandler onkeystatuseschange;
80
- attribute EventHandler onmessage;
81
- Promise<undefined> generateRequest (DOMString initDataType, BufferSource initData);
82
- Promise<boolean> load (DOMString sessionId);
83
- Promise<undefined> update (BufferSource response);
84
- Promise<undefined> close ();
85
- Promise<undefined> remove ();
77
+ readonly attribute DOMString sessionId;
78
+ readonly attribute unrestricted double expiration;
79
+ readonly attribute Promise<MediaKeySessionClosedReason> closed;
80
+ readonly attribute MediaKeyStatusMap keyStatuses;
81
+ attribute EventHandler onkeystatuseschange;
82
+ attribute EventHandler onmessage;
83
+ Promise<undefined> generateRequest (DOMString initDataType, BufferSource initData);
84
+ Promise<boolean> load (DOMString sessionId);
85
+ Promise<undefined> update (BufferSource response);
86
+ Promise<undefined> close ();
87
+ Promise<undefined> remove ();
86
88
  };
87
89
 
88
90
  [Exposed=Window, SecureContext] interface MediaKeyStatusMap {
89
- iterable<BufferSource,MediaKeyStatus>;
90
- readonly attribute unsigned long size;
91
- boolean has (BufferSource keyId);
92
- (MediaKeyStatus or undefined) get (BufferSource keyId);
91
+ iterable<BufferSource,MediaKeyStatus>;
92
+ readonly attribute unsigned long size;
93
+ boolean has (BufferSource keyId);
94
+ (MediaKeyStatus or undefined) get (BufferSource keyId);
93
95
  };
94
96
 
95
97
  enum MediaKeyStatus {
96
- "usable",
97
- "expired",
98
- "released",
99
- "output-restricted",
100
- "output-downscaled",
101
- "usable-in-future",
102
- "status-pending",
103
- "internal-error"
98
+ "usable",
99
+ "expired",
100
+ "released",
101
+ "output-restricted",
102
+ "output-downscaled",
103
+ "usable-in-future",
104
+ "status-pending",
105
+ "internal-error"
104
106
  };
105
107
 
106
108
  enum MediaKeyMessageType {
107
- "license-request",
108
- "license-renewal",
109
- "license-release",
110
- "individualization-request"
109
+ "license-request",
110
+ "license-renewal",
111
+ "license-release",
112
+ "individualization-request"
111
113
  };
112
114
 
113
115
  [Exposed=Window, SecureContext]
114
116
  interface MediaKeyMessageEvent : Event {
115
- constructor(DOMString type, MediaKeyMessageEventInit eventInitDict);
116
- readonly attribute MediaKeyMessageType messageType;
117
- readonly attribute ArrayBuffer message;
117
+ constructor(DOMString type, MediaKeyMessageEventInit eventInitDict);
118
+ readonly attribute MediaKeyMessageType messageType;
119
+ readonly attribute ArrayBuffer message;
118
120
  };
119
121
 
120
122
  dictionary MediaKeyMessageEventInit : EventInit {
121
- required MediaKeyMessageType messageType;
122
- required ArrayBuffer message;
123
+ required MediaKeyMessageType messageType;
124
+ required ArrayBuffer message;
123
125
  };
124
126
 
125
127
  [Exposed=Window] partial interface HTMLMediaElement {
126
- [SecureContext] readonly attribute MediaKeys? mediaKeys;
127
- attribute EventHandler onencrypted;
128
- attribute EventHandler onwaitingforkey;
129
- [SecureContext] Promise<undefined> setMediaKeys (MediaKeys? mediaKeys);
128
+ [SecureContext] readonly attribute MediaKeys? mediaKeys;
129
+ attribute EventHandler onencrypted;
130
+ attribute EventHandler onwaitingforkey;
131
+ [SecureContext] Promise<undefined> setMediaKeys (MediaKeys? mediaKeys);
130
132
  };
131
133
 
132
134
  [Exposed=Window]
@@ -137,6 +139,6 @@ interface MediaEncryptedEvent : Event {
137
139
  };
138
140
 
139
141
  dictionary MediaEncryptedEventInit : EventInit {
140
- DOMString initDataType = "";
141
- ArrayBuffer? initData = null;
142
+ DOMString initDataType = "";
143
+ ArrayBuffer? initData = null;
142
144
  };
package/fenced-frame.idl CHANGED
@@ -53,10 +53,17 @@ dictionary FenceEvent {
53
53
  DOMString eventData;
54
54
  sequence<FenceReportingDestination> destination;
55
55
 
56
+ // Determines if this data can be sent in a reportEvent() beacon or automatic
57
+ // beacon that originates from a document that is cross-origin to the mapped
58
+ // URL of the fenced frame config that loaded this frame tree.
59
+ // Note that automatic beacon data can only be set from documents that are
60
+ // same-origin to the fenced frame config’s mapped URL, so this effectively
61
+ // opts in the data to being used in a cross-origin subframe.
62
+ boolean crossOriginExposed = false;
63
+
56
64
  // When setting event data to be used later in an automatic beacon, the
57
65
  // following properties are used:
58
66
  boolean once = false;
59
- boolean crossOriginExposed = false;
60
67
 
61
68
  // When reporting to a custom destination URL (with substitution of macros defined by
62
69
  // the Protected Audience buyer), the following property is used:
package/geolocation.idl CHANGED
@@ -42,6 +42,7 @@ dictionary PositionOptions {
42
42
  interface GeolocationPosition {
43
43
  readonly attribute GeolocationCoordinates coords;
44
44
  readonly attribute EpochTimeStamp timestamp;
45
+ [Default] object toJSON();
45
46
  };
46
47
 
47
48
  [Exposed=Window, SecureContext]
@@ -53,6 +54,7 @@ interface GeolocationCoordinates {
53
54
  readonly attribute double? altitudeAccuracy;
54
55
  readonly attribute double? heading;
55
56
  readonly attribute double? speed;
57
+ [Default] object toJSON();
56
58
  };
57
59
 
58
60
  [Exposed=Window]
package/html.idl CHANGED
@@ -2328,6 +2328,10 @@ enum DOMParserSupportedType {
2328
2328
  "image/svg+xml"
2329
2329
  };
2330
2330
 
2331
+ partial interface Range {
2332
+ [CEReactions, NewObject] DocumentFragment createContextualFragment(HTMLString string);
2333
+ };
2334
+
2331
2335
  [Exposed=Window]
2332
2336
  interface Navigator {
2333
2337
  // objects implementing this interface also implement the interfaces given below
@@ -179,6 +179,16 @@ interface InputDeviceInfo : MediaDeviceInfo {
179
179
  MediaTrackCapabilities getCapabilities();
180
180
  };
181
181
 
182
+ [Exposed=Window]
183
+ interface DeviceChangeEvent : Event {
184
+ constructor(DOMString type, optional DeviceChangeEventInit eventInitDict = {});
185
+ [SameObject] readonly attribute FrozenArray<MediaDeviceInfo> devices;
186
+ };
187
+
188
+ dictionary DeviceChangeEventInit : EventInit {
189
+ sequence<MediaDeviceInfo> devices = [];
190
+ };
191
+
182
192
  partial interface MediaDevices {
183
193
  MediaTrackSupportedConstraints getSupportedConstraints();
184
194
  Promise<MediaStream> getUserMedia(optional MediaStreamConstraints constraints = {});
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": "3.47.0",
4
+ "version": "3.47.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -60,7 +60,7 @@ interface ServiceWorkerContainer : EventTarget {
60
60
  readonly attribute ServiceWorker? controller;
61
61
  readonly attribute Promise<ServiceWorkerRegistration> ready;
62
62
 
63
- [NewObject] Promise<ServiceWorkerRegistration> register(USVString scriptURL, optional RegistrationOptions options = {});
63
+ [NewObject] Promise<ServiceWorkerRegistration> register((TrustedScriptURL or USVString) scriptURL, optional RegistrationOptions options = {});
64
64
 
65
65
  [NewObject] Promise<(ServiceWorkerRegistration or undefined)> getRegistration(optional USVString clientURL = "");
66
66
  [NewObject] Promise<FrozenArray<ServiceWorkerRegistration>> getRegistrations();
package/webcodecs.idl CHANGED
@@ -382,6 +382,8 @@ dictionary VideoFrameMetadata {
382
382
  dictionary VideoFrameCopyToOptions {
383
383
  DOMRectInit rect;
384
384
  sequence<PlaneLayout> layout;
385
+ VideoPixelFormat format;
386
+ PredefinedColorSpace colorSpace;
385
387
  };
386
388
 
387
389
  dictionary PlaneLayout {
package/webgl1.idl CHANGED
@@ -37,6 +37,7 @@ dictionary WebGLContextAttributes {
37
37
 
38
38
  [Exposed=(Window,Worker)]
39
39
  interface WebGLObject {
40
+ attribute USVString label;
40
41
  };
41
42
 
42
43
  [Exposed=(Window,Worker)]
package/webnn.idl CHANGED
@@ -515,17 +515,13 @@ partial interface MLGraphBuilder {
515
515
  };
516
516
 
517
517
  partial interface MLGraphBuilder {
518
- MLOperand softmax(MLOperand input);
519
- MLActivation softmax();
520
- };
521
-
522
- dictionary MLSoftplusOptions {
523
- float steepness = 1;
518
+ MLOperand softmax(MLOperand input, unsigned long axis);
519
+ MLActivation softmax(unsigned long axis);
524
520
  };
525
521
 
526
522
  partial interface MLGraphBuilder {
527
- MLOperand softplus(MLOperand input, optional MLSoftplusOptions options = {});
528
- MLActivation softplus(optional MLSoftplusOptions options = {});
523
+ MLOperand softplus(MLOperand input);
524
+ MLActivation softplus();
529
525
  };
530
526
 
531
527
  partial interface MLGraphBuilder {