@webref/idl 3.49.0 → 3.51.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/WebCryptoAPI.idl CHANGED
@@ -68,7 +68,7 @@ interface SubtleCrypto {
68
68
  sequence<KeyUsage> keyUsages );
69
69
  Promise<ArrayBuffer> deriveBits(AlgorithmIdentifier algorithm,
70
70
  CryptoKey baseKey,
71
- unsigned long length);
71
+ optional unsigned long? length = null);
72
72
 
73
73
  Promise<CryptoKey> importKey(KeyFormat format,
74
74
  (BufferSource or JsonWebKey) keyData,
package/css-nesting.idl CHANGED
@@ -4,6 +4,6 @@
4
4
  // Source: CSS Nesting Module (https://drafts.csswg.org/css-nesting-1/)
5
5
 
6
6
  [Exposed=Window]
7
- interface CSSNestRule : CSSGroupingRule {
7
+ interface CSSNestedDeclarations : CSSRule {
8
8
  [SameObject, PutForwards=cssText] readonly attribute CSSStyleProperties style;
9
9
  };
@@ -0,0 +1,13 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: CSS Viewport Module Level 1 (https://drafts.csswg.org/css-viewport/)
5
+
6
+ partial interface Window {
7
+ [SameObject, Replaceable] readonly attribute Viewport? viewport;
8
+ };
9
+
10
+ [Exposed=Window]
11
+ interface Viewport : EventTarget {
12
+ readonly attribute double zoom;
13
+ };
package/cssom.idl CHANGED
@@ -122,6 +122,8 @@ interface CSSPageDescriptors : CSSStyleDeclaration {
122
122
  attribute [LegacyNullToEmptyString] CSSOMString margin-bottom;
123
123
  attribute [LegacyNullToEmptyString] CSSOMString margin-left;
124
124
  attribute [LegacyNullToEmptyString] CSSOMString size;
125
+ attribute [LegacyNullToEmptyString] CSSOMString pageOrientation;
126
+ attribute [LegacyNullToEmptyString] CSSOMString page-orientation;
125
127
  attribute [LegacyNullToEmptyString] CSSOMString marks;
126
128
  attribute [LegacyNullToEmptyString] CSSOMString bleed;
127
129
  };
@@ -0,0 +1,100 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: Handwriting Recognition API (https://wicg.github.io/handwriting-recognition/)
5
+
6
+ [SecureContext]
7
+ partial interface Navigator {
8
+ Promise<HandwritingRecognizerQueryResult?>
9
+ queryHandwritingRecognizer(HandwritingModelConstraint constraint);
10
+ };
11
+
12
+ dictionary HandwritingModelConstraint {
13
+ required sequence<DOMString> languages;
14
+ };
15
+
16
+ dictionary HandwritingRecognizerQueryResult {
17
+ boolean textAlternatives;
18
+ boolean textSegmentation;
19
+ HandwritingHintsQueryResult hints;
20
+ };
21
+
22
+ dictionary HandwritingHintsQueryResult {
23
+ sequence<HandwritingRecognitionType> recognitionType;
24
+ sequence<HandwritingInputType> inputType;
25
+ boolean textContext;
26
+ boolean alternatives;
27
+ };
28
+
29
+ enum HandwritingRecognitionType{
30
+ "text", "per-character"
31
+ };
32
+
33
+ enum HandwritingInputType {
34
+ "mouse", "stylus", "touch"
35
+ };
36
+
37
+ [SecureContext]
38
+ partial interface Navigator {
39
+ Promise<HandwritingRecognizer>
40
+ createHandwritingRecognizer(HandwritingModelConstraint constraint);
41
+ };
42
+
43
+ [Exposed=Window, SecureContext]
44
+ interface HandwritingRecognizer {
45
+ HandwritingDrawing startDrawing(optional HandwritingHints hints = {});
46
+
47
+ undefined finish();
48
+ };
49
+
50
+ dictionary HandwritingHints {
51
+ DOMString recognitionType = "text";
52
+ DOMString inputType = "mouse";
53
+ DOMString textContext;
54
+ unsigned long alternatives = 3;
55
+ };
56
+
57
+ [Exposed=Window, SecureContext]
58
+ interface HandwritingDrawing {
59
+ undefined addStroke(HandwritingStroke stroke);
60
+ undefined removeStroke(HandwritingStroke stroke);
61
+ undefined clear();
62
+ sequence<HandwritingStroke> getStrokes();
63
+
64
+ Promise<sequence<HandwritingPrediction>> getPrediction();
65
+ };
66
+
67
+ [SecureContext, Exposed=Window]
68
+ interface HandwritingStroke {
69
+ constructor();
70
+ undefined addPoint(HandwritingPoint point);
71
+ sequence<HandwritingPoint> getPoints();
72
+ undefined clear();
73
+ };
74
+
75
+ dictionary HandwritingPoint {
76
+ required double x;
77
+ required double y;
78
+
79
+ // Optional. Number of milliseconds since a reference time point for a
80
+ // drawing.
81
+ DOMHighResTimeStamp t;
82
+ };
83
+
84
+ dictionary HandwritingPrediction {
85
+ required DOMString text;
86
+ sequence<HandwritingSegment> segmentationResult;
87
+ };
88
+
89
+ dictionary HandwritingSegment {
90
+ required DOMString grapheme;
91
+ required unsigned long beginIndex;
92
+ required unsigned long endIndex;
93
+ required sequence<HandwritingDrawingSegment> drawingSegments;
94
+ };
95
+
96
+ dictionary HandwritingDrawingSegment {
97
+ required unsigned long strokeIndex;
98
+ required unsigned long beginPointIndex;
99
+ required unsigned long endPointIndex;
100
+ };
@@ -12,6 +12,8 @@ interface IntersectionObserver {
12
12
  readonly attribute DOMString rootMargin;
13
13
  readonly attribute DOMString scrollMargin;
14
14
  readonly attribute FrozenArray<double> thresholds;
15
+ readonly attribute long delay;
16
+ readonly attribute boolean trackVisibility;
15
17
  undefined observe(Element target);
16
18
  undefined unobserve(Element target);
17
19
  undefined disconnect();
@@ -26,6 +28,7 @@ interface IntersectionObserverEntry {
26
28
  readonly attribute DOMRectReadOnly boundingClientRect;
27
29
  readonly attribute DOMRectReadOnly intersectionRect;
28
30
  readonly attribute boolean isIntersecting;
31
+ readonly attribute boolean isVisible;
29
32
  readonly attribute double intersectionRatio;
30
33
  readonly attribute Element target;
31
34
  };
@@ -36,6 +39,7 @@ dictionary IntersectionObserverEntryInit {
36
39
  required DOMRectInit boundingClientRect;
37
40
  required DOMRectInit intersectionRect;
38
41
  required boolean isIntersecting;
42
+ required boolean isVisible;
39
43
  required double intersectionRatio;
40
44
  required Element target;
41
45
  };
@@ -45,4 +49,6 @@ dictionary IntersectionObserverInit {
45
49
  DOMString rootMargin = "0px";
46
50
  DOMString scrollMargin = "0px";
47
51
  (double or sequence<double>) threshold = 0;
52
+ long delay = 0;
53
+ boolean trackVisibility = false;
48
54
  };
@@ -61,6 +61,7 @@ dictionary MediaTrackSupportedConstraints {
61
61
  boolean channelCount = true;
62
62
  boolean deviceId = true;
63
63
  boolean groupId = true;
64
+ boolean backgroundBlur = true;
64
65
  };
65
66
 
66
67
  dictionary MediaTrackCapabilities {
@@ -79,6 +80,7 @@ dictionary MediaTrackCapabilities {
79
80
  ULongRange channelCount;
80
81
  DOMString deviceId;
81
82
  DOMString groupId;
83
+ sequence<boolean> backgroundBlur;
82
84
  };
83
85
 
84
86
  dictionary MediaTrackConstraints : MediaTrackConstraintSet {
@@ -101,6 +103,7 @@ dictionary MediaTrackConstraintSet {
101
103
  ConstrainULong channelCount;
102
104
  ConstrainDOMString deviceId;
103
105
  ConstrainDOMString groupId;
106
+ ConstrainBoolean backgroundBlur;
104
107
  };
105
108
 
106
109
  dictionary MediaTrackSettings {
@@ -119,6 +122,7 @@ dictionary MediaTrackSettings {
119
122
  unsigned long channelCount;
120
123
  DOMString deviceId;
121
124
  DOMString groupId;
125
+ boolean backgroundBlur;
122
126
  };
123
127
 
124
128
  enum VideoFacingModeEnum {
@@ -183,6 +187,7 @@ interface InputDeviceInfo : MediaDeviceInfo {
183
187
  interface DeviceChangeEvent : Event {
184
188
  constructor(DOMString type, optional DeviceChangeEventInit eventInitDict = {});
185
189
  [SameObject] readonly attribute FrozenArray<MediaDeviceInfo> devices;
190
+ [SameObject] readonly attribute FrozenArray<MediaDeviceInfo> userInsertedDevices;
186
191
  };
187
192
 
188
193
  dictionary DeviceChangeEventInit : EventInit {
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.49.0",
4
+ "version": "3.51.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -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: Payment Request API 1.1 (https://w3c.github.io/payment-request/)
4
+ // Source: Payment Request API (https://w3c.github.io/payment-request/)
5
5
 
6
6
  [SecureContext, Exposed=Window]
7
7
  interface PaymentRequest : EventTarget {
@@ -21,6 +21,7 @@ partial interface HTMLIFrameElement {
21
21
 
22
22
  [Exposed=Window]
23
23
  interface PermissionsPolicyViolationReportBody : ReportBody {
24
+ [Default] object toJSON();
24
25
  readonly attribute DOMString featureId;
25
26
  readonly attribute DOMString? sourceFile;
26
27
  readonly attribute long? lineNumber;
@@ -8,7 +8,7 @@ typedef (USVString or FencedFrameConfig) SharedStorageResponse;
8
8
  [Exposed=(Window)]
9
9
  interface SharedStorageWorklet : Worklet {
10
10
  Promise<SharedStorageResponse> selectURL(DOMString name,
11
- FrozenArray<SharedStorageUrlWithMetadata> urls,
11
+ sequence<SharedStorageUrlWithMetadata> urls,
12
12
  optional SharedStorageRunOperationMethodOptions options = {});
13
13
  Promise<any> run(DOMString name,
14
14
  optional SharedStorageRunOperationMethodOptions options = {});
@@ -47,7 +47,7 @@ dictionary SharedStorageSetMethodOptions {
47
47
  [Exposed=(Window)]
48
48
  interface WindowSharedStorage : SharedStorage {
49
49
  Promise<SharedStorageResponse> selectURL(DOMString name,
50
- FrozenArray<SharedStorageUrlWithMetadata> urls,
50
+ sequence<SharedStorageUrlWithMetadata> urls,
51
51
  optional SharedStorageRunOperationMethodOptions options = {});
52
52
  Promise<any> run(DOMString name,
53
53
  optional SharedStorageRunOperationMethodOptions options = {});
package/touch-events.idl CHANGED
@@ -53,9 +53,9 @@ interface TouchList {
53
53
  };
54
54
 
55
55
  dictionary TouchEventInit : EventModifierInit {
56
- sequence<Touch> touches = [];
57
- sequence<Touch> targetTouches = [];
58
- sequence<Touch> changedTouches = [];
56
+ sequence<Touch> touches = [];
57
+ sequence<Touch> targetTouches = [];
58
+ sequence<Touch> changedTouches = [];
59
59
  };
60
60
 
61
61
  [Exposed=Window]
package/webauthn.idl CHANGED
@@ -357,17 +357,6 @@ dictionary AuthenticationExtensionsLargeBlobOutputs {
357
357
  boolean written;
358
358
  };
359
359
 
360
- partial dictionary AuthenticationExtensionsClientInputs {
361
- boolean uvm;
362
- };
363
-
364
- typedef sequence<unsigned long> UvmEntry;
365
- typedef sequence<UvmEntry> UvmEntries;
366
-
367
- partial dictionary AuthenticationExtensionsClientOutputs {
368
- UvmEntries uvm;
369
- };
370
-
371
360
  dictionary AuthenticationExtensionsSupplementalPubKeysInputs {
372
361
  required sequence<DOMString> scopes;
373
362
  DOMString attestation = "indirect";
package/webgpu.idl CHANGED
@@ -118,6 +118,7 @@ enum GPUFeatureName {
118
118
  "bgra8unorm-storage",
119
119
  "float32-filterable",
120
120
  "clip-distances",
121
+ "dual-source-blending",
121
122
  };
122
123
 
123
124
  [Exposed=(Window, Worker), SecureContext]
@@ -1188,12 +1189,22 @@ enum GPUCanvasAlphaMode {
1188
1189
  "premultiplied",
1189
1190
  };
1190
1191
 
1192
+ enum GPUCanvasToneMappingMode {
1193
+ "standard",
1194
+ "extended",
1195
+ };
1196
+
1197
+ dictionary GPUCanvasToneMapping {
1198
+ GPUCanvasToneMappingMode mode = "standard";
1199
+ };
1200
+
1191
1201
  dictionary GPUCanvasConfiguration {
1192
1202
  required GPUDevice device;
1193
1203
  required GPUTextureFormat format;
1194
1204
  GPUTextureUsageFlags usage = 0x10; // GPUTextureUsage.RENDER_ATTACHMENT
1195
1205
  sequence<GPUTextureFormat> viewFormats = [];
1196
1206
  PredefinedColorSpace colorSpace = "srgb";
1207
+ GPUCanvasToneMapping toneMapping = {};
1197
1208
  GPUCanvasAlphaMode alphaMode = "opaque";
1198
1209
  };
1199
1210
 
package/webmidi.idl CHANGED
@@ -17,22 +17,22 @@ dictionary MIDIOptions {
17
17
  boolean software;
18
18
  };
19
19
 
20
- [SecureContext, Exposed=Window] interface MIDIInputMap {
20
+ [SecureContext, Exposed=(Window,Worker)] interface MIDIInputMap {
21
21
  readonly maplike <DOMString, MIDIInput>;
22
22
  };
23
23
 
24
- [SecureContext, Exposed=Window] interface MIDIOutputMap {
24
+ [SecureContext, Exposed=(Window,Worker)] interface MIDIOutputMap {
25
25
  readonly maplike <DOMString, MIDIOutput>;
26
26
  };
27
27
 
28
- [SecureContext, Exposed=Window] interface MIDIAccess: EventTarget {
28
+ [SecureContext, Exposed=(Window,Worker), Transferable] interface MIDIAccess: EventTarget {
29
29
  readonly attribute MIDIInputMap inputs;
30
30
  readonly attribute MIDIOutputMap outputs;
31
31
  attribute EventHandler onstatechange;
32
32
  readonly attribute boolean sysexEnabled;
33
33
  };
34
34
 
35
- [SecureContext, Exposed=Window] interface MIDIPort: EventTarget {
35
+ [SecureContext, Exposed=(Window,Worker)] interface MIDIPort: EventTarget {
36
36
  readonly attribute DOMString id;
37
37
  readonly attribute DOMString? manufacturer;
38
38
  readonly attribute DOMString? name;
@@ -45,11 +45,11 @@ dictionary MIDIOptions {
45
45
  Promise <MIDIPort> close();
46
46
  };
47
47
 
48
- [SecureContext, Exposed=Window] interface MIDIInput: MIDIPort {
48
+ [SecureContext, Exposed=(Window,Worker)] interface MIDIInput: MIDIPort {
49
49
  attribute EventHandler onmidimessage;
50
50
  };
51
51
 
52
- [SecureContext, Exposed=Window] interface MIDIOutput : MIDIPort {
52
+ [SecureContext, Exposed=(Window,Worker)] interface MIDIOutput : MIDIPort {
53
53
  undefined send(sequence<octet> data, optional DOMHighResTimeStamp timestamp = 0);
54
54
  undefined clear();
55
55
  };
@@ -70,7 +70,7 @@ enum MIDIPortConnectionState {
70
70
  "pending",
71
71
  };
72
72
 
73
- [SecureContext, Exposed=Window]
73
+ [SecureContext, Exposed=(Window,Worker)]
74
74
  interface MIDIMessageEvent : Event {
75
75
  constructor(DOMString type, optional MIDIMessageEventInit eventInitDict = {});
76
76
  readonly attribute Uint8Array? data;
@@ -80,7 +80,7 @@ dictionary MIDIMessageEventInit: EventInit {
80
80
  Uint8Array data;
81
81
  };
82
82
 
83
- [SecureContext, Exposed=Window]
83
+ [SecureContext, Exposed=(Window,Worker)]
84
84
  interface MIDIConnectionEvent : Event {
85
85
  constructor(DOMString type, optional MIDIConnectionEventInit eventInitDict = {});
86
86
  readonly attribute MIDIPort? port;
package/webnn.idl CHANGED
@@ -11,7 +11,8 @@ WorkerNavigator includes NavigatorML;
11
11
 
12
12
  enum MLDeviceType {
13
13
  "cpu",
14
- "gpu"
14
+ "gpu",
15
+ "npu"
15
16
  };
16
17
 
17
18
  enum MLPowerPreference {
@@ -31,7 +32,7 @@ interface ML {
31
32
  Promise<MLContext> createContext(GPUDevice gpuDevice);
32
33
  };
33
34
 
34
- typedef record<DOMString, ArrayBufferView> MLNamedArrayBufferViews;
35
+ typedef record<USVString, ArrayBufferView> MLNamedArrayBufferViews;
35
36
 
36
37
  dictionary MLComputeResult {
37
38
  MLNamedArrayBufferViews inputs;
@@ -74,10 +75,12 @@ interface MLOperand {
74
75
  sequence<unsigned long> shape();
75
76
  };
76
77
 
78
+ typedef (bigint or unrestricted double) MLNumber;
79
+
77
80
  [SecureContext, Exposed=(Window, DedicatedWorker)]
78
81
  interface MLActivation {};
79
82
 
80
- typedef record<DOMString, MLOperand> MLNamedOperands;
83
+ typedef record<USVString, MLOperand> MLNamedOperands;
81
84
 
82
85
  [SecureContext, Exposed=(Window, DedicatedWorker)]
83
86
  interface MLGraphBuilder {
@@ -85,13 +88,13 @@ interface MLGraphBuilder {
85
88
  constructor(MLContext context);
86
89
 
87
90
  // Create an operand for a graph input.
88
- MLOperand input(DOMString name, MLOperandDescriptor descriptor);
91
+ MLOperand input(USVString name, MLOperandDescriptor descriptor);
89
92
 
90
93
  // Create an operand for a graph constant.
91
94
  MLOperand constant(MLOperandDescriptor descriptor, ArrayBufferView bufferView);
92
95
 
93
96
  // Create a scalar operand from the specified number of the specified type.
94
- MLOperand constant(MLOperandDataType type, double value);
97
+ MLOperand constant(MLOperandDataType type, MLNumber value);
95
98
 
96
99
  // Compile the graph up to the specified output operands asynchronously.
97
100
  Promise<MLGraph> build(MLNamedOperands outputs);
@@ -112,7 +115,7 @@ dictionary MLBatchNormalizationOptions {
112
115
  MLOperand scale;
113
116
  MLOperand bias;
114
117
  [EnforceRange] unsigned long axis = 1;
115
- float epsilon = 1e-5;
118
+ double epsilon = 1e-5;
116
119
  };
117
120
 
118
121
  partial interface MLGraphBuilder {
@@ -125,8 +128,8 @@ partial interface MLGraphBuilder {
125
128
  };
126
129
 
127
130
  dictionary MLClampOptions {
128
- float minValue;
129
- float maxValue;
131
+ MLNumber minValue;
132
+ MLNumber maxValue;
130
133
  };
131
134
 
132
135
  partial interface MLGraphBuilder {
@@ -219,7 +222,7 @@ partial interface MLGraphBuilder {
219
222
  };
220
223
 
221
224
  dictionary MLEluOptions {
222
- float alpha = 1;
225
+ double alpha = 1;
223
226
  };
224
227
 
225
228
  partial interface MLGraphBuilder {
@@ -248,8 +251,8 @@ partial interface MLGraphBuilder {
248
251
 
249
252
  dictionary MLGemmOptions {
250
253
  MLOperand c;
251
- float alpha = 1.0;
252
- float beta = 1.0;
254
+ double alpha = 1.0;
255
+ double beta = 1.0;
253
256
  boolean aTranspose = false;
254
257
  boolean bTranspose = false;
255
258
  };
@@ -307,8 +310,8 @@ partial interface MLGraphBuilder {
307
310
  };
308
311
 
309
312
  dictionary MLHardSigmoidOptions {
310
- float alpha = 0.2;
311
- float beta = 0.5;
313
+ double alpha = 0.2;
314
+ double beta = 0.5;
312
315
  };
313
316
 
314
317
  partial interface MLGraphBuilder {
@@ -324,7 +327,7 @@ partial interface MLGraphBuilder {
324
327
  dictionary MLInstanceNormalizationOptions {
325
328
  MLOperand scale;
326
329
  MLOperand bias;
327
- float epsilon = 1e-5;
330
+ double epsilon = 1e-5;
328
331
  MLInputOperandLayout layout = "nchw";
329
332
  };
330
333
 
@@ -337,7 +340,7 @@ dictionary MLLayerNormalizationOptions {
337
340
  MLOperand scale;
338
341
  MLOperand bias;
339
342
  sequence<[EnforceRange] unsigned long> axes;
340
- float epsilon = 1e-5;
343
+ double epsilon = 1e-5;
341
344
  };
342
345
 
343
346
  partial interface MLGraphBuilder {
@@ -346,7 +349,7 @@ partial interface MLGraphBuilder {
346
349
  };
347
350
 
348
351
  dictionary MLLeakyReluOptions {
349
- float alpha = 0.01;
352
+ double alpha = 0.01;
350
353
  };
351
354
 
352
355
  partial interface MLGraphBuilder {
@@ -355,8 +358,8 @@ partial interface MLGraphBuilder {
355
358
  };
356
359
 
357
360
  dictionary MLLinearOptions {
358
- float alpha = 1;
359
- float beta = 0;
361
+ double alpha = 1;
362
+ double beta = 0;
360
363
  };
361
364
 
362
365
  partial interface MLGraphBuilder {
@@ -421,7 +424,7 @@ enum MLPaddingMode {
421
424
 
422
425
  dictionary MLPadOptions {
423
426
  MLPaddingMode mode = "constant";
424
- float value = 0;
427
+ MLNumber value = 0;
425
428
  };
426
429
 
427
430
  partial interface MLGraphBuilder {