@webref/idl 3.10.0 → 3.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.
@@ -22,16 +22,6 @@ partial interface MediaStreamTrack {
22
22
  CaptureHandle? getCaptureHandle();
23
23
  };
24
24
 
25
- [Exposed=Window]
26
- interface CaptureHandleChangeEvent : Event {
27
- constructor(optional CaptureHandleChangeEventInit init = {});
28
- [SameObject] CaptureHandle captureHandle();
29
- };
30
-
31
- dictionary CaptureHandleChangeEventInit : EventInit {
32
- CaptureHandle captureHandle;
33
- };
34
-
35
25
  partial interface MediaStreamTrack {
36
26
  attribute EventHandler oncapturehandlechange;
37
27
  };
@@ -9,7 +9,6 @@ partial interface HTMLAnchorElement {
9
9
  [CEReactions] attribute USVString attributionReportTo;
10
10
  [CEReactions] attribute long long attributionExpiry;
11
11
  [CEReactions] attribute long long attributionSourcePriority;
12
- [CEReactions] attribute boolean registerAttributionSource;
13
12
  };
14
13
 
15
14
  dictionary AttributionSourceParams {
@@ -19,13 +18,3 @@ dictionary AttributionSourceParams {
19
18
  long long attributionExpiry;
20
19
  long long attributionSourcePriority;
21
20
  };
22
-
23
- [Exposed=Window, SecureContext]
24
- interface AttributionReporting {
25
- Promise<undefined> registerAttributionSource(AttributionSourceParams params);
26
- };
27
-
28
- [SecureContext]
29
- partial interface Window {
30
- readonly attribute AttributionReporting attributionReporting;
31
- };
package/cssom-view.idl CHANGED
@@ -101,7 +101,6 @@ dictionary ScrollIntoViewOptions : ScrollOptions {
101
101
  };
102
102
 
103
103
  dictionary IsVisibleOptions {
104
- boolean checkAriaHidden = false;
105
104
  boolean checkInert = false;
106
105
  boolean checkOpacity = false;
107
106
  boolean checkVisibilityCSS = false;
package/fetch.idl CHANGED
@@ -83,6 +83,7 @@ enum RequestRedirect { "follow", "error", "manual" };
83
83
 
84
84
  [NewObject] static Response error();
85
85
  [NewObject] static Response redirect(USVString url, optional unsigned short status = 302);
86
+ [NewObject] static Response json(any data, optional ResponseInit init = {});
86
87
 
87
88
  readonly attribute ResponseType type;
88
89
 
package/html.idl CHANGED
@@ -192,7 +192,7 @@ interface HTMLLinkElement : HTMLElement {
192
192
  [CEReactions] attribute USVString href;
193
193
  [CEReactions] attribute DOMString? crossOrigin;
194
194
  [CEReactions] attribute DOMString rel;
195
- [CEReactions] attribute DOMString as; // (default "")
195
+ [CEReactions] attribute DOMString as;
196
196
  [SameObject, PutForwards=value] readonly attribute DOMTokenList relList;
197
197
  [CEReactions] attribute DOMString media;
198
198
  [CEReactions] attribute DOMString integrity;
package/media-source.idl CHANGED
@@ -25,14 +25,18 @@ interface MediaSource : EventTarget {
25
25
  attribute EventHandler onsourceended;
26
26
  attribute EventHandler onsourceclose;
27
27
  static readonly attribute boolean canConstructInDedicatedWorker;
28
- SourceBuffer addSourceBuffer (DOMString type);
29
- undefined removeSourceBuffer (SourceBuffer sourceBuffer);
30
- undefined endOfStream (optional EndOfStreamError error);
31
- undefined setLiveSeekableRange (double start, double end);
32
- undefined clearLiveSeekableRange ();
33
- static boolean isTypeSupported (DOMString type);
28
+ SourceBuffer addSourceBuffer (DOMString type);
29
+ undefined removeSourceBuffer (SourceBuffer sourceBuffer);
30
+ undefined endOfStream (optional EndOfStreamError error);
31
+ undefined setLiveSeekableRange (double start, double end);
32
+ undefined clearLiveSeekableRange ();
33
+ MediaSourceHandle getHandle ();
34
+ static boolean isTypeSupported (DOMString type);
34
35
  };
35
36
 
37
+ [Exposed=(Window,DedicatedWorker)]
38
+ interface MediaSourceHandle {};
39
+
36
40
  enum AppendMode {
37
41
  "segments",
38
42
  "sequence"
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.10.0",
4
+ "version": "3.11.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -12,6 +12,6 @@
12
12
  "license": "MIT",
13
13
  "main": "index.js",
14
14
  "peerDependencies": {
15
- "webidl2": "^24.2.1"
15
+ "webidl2": "^24.2.2"
16
16
  }
17
- }
17
+ }
@@ -12,10 +12,16 @@ enum SelfCapturePreferenceEnum {
12
12
  "exclude"
13
13
  };
14
14
 
15
+ enum SystemAudioPreferenceEnum {
16
+ "include",
17
+ "exclude"
18
+ };
19
+
15
20
  dictionary DisplayMediaStreamConstraints {
16
21
  (boolean or MediaTrackConstraints) video = true;
17
22
  (boolean or MediaTrackConstraints) audio = false;
18
23
  SelfCapturePreferenceEnum selfBrowserSurface;
24
+ SystemAudioPreferenceEnum systemAudio;
19
25
  };
20
26
 
21
27
  partial dictionary MediaTrackSupportedConstraints {
package/touch-events.idl CHANGED
@@ -68,6 +68,7 @@ interface TouchEvent : UIEvent {
68
68
  readonly attribute boolean metaKey;
69
69
  readonly attribute boolean ctrlKey;
70
70
  readonly attribute boolean shiftKey;
71
+ getter boolean getModifierState (DOMString keyArg);
71
72
  };
72
73
 
73
74
  partial interface mixin GlobalEventHandlers {
package/webgl1.idl CHANGED
@@ -516,6 +516,8 @@ interface mixin WebGLRenderingContextBase
516
516
  readonly attribute (HTMLCanvasElement or OffscreenCanvas) canvas;
517
517
  readonly attribute GLsizei drawingBufferWidth;
518
518
  readonly attribute GLsizei drawingBufferHeight;
519
+ attribute PredefinedColorSpace drawingBufferColorSpace;
520
+ attribute PredefinedColorSpace unpackColorSpace;
519
521
 
520
522
  [WebGLHandlesContextLoss] WebGLContextAttributes? getContextAttributes();
521
523
  [WebGLHandlesContextLoss] boolean isContextLost();
package/webgpu.idl CHANGED
@@ -59,6 +59,7 @@ WorkerNavigator includes NavigatorGPU;
59
59
  [Exposed=(Window, DedicatedWorker), SecureContext]
60
60
  interface GPU {
61
61
  Promise<GPUAdapter?> requestAdapter(optional GPURequestAdapterOptions options = {});
62
+ GPUTextureFormat getPreferredCanvasFormat();
62
63
  };
63
64
 
64
65
  dictionary GPURequestAdapterOptions {
@@ -97,6 +98,7 @@ enum GPUFeatureName {
97
98
  "timestamp-query",
98
99
  "indirect-first-instance",
99
100
  "shader-f16",
101
+ "bgra8unorm-storage",
100
102
  };
101
103
 
102
104
  [Exposed=(Window, DedicatedWorker), SecureContext]
@@ -420,14 +422,6 @@ dictionary GPUBindGroupLayoutDescriptor : GPUObjectDescriptorBase {
420
422
  required sequence<GPUBindGroupLayoutEntry> entries;
421
423
  };
422
424
 
423
- typedef [EnforceRange] unsigned long GPUShaderStageFlags;
424
- [Exposed=(Window, DedicatedWorker)]
425
- namespace GPUShaderStage {
426
- const GPUFlagsConstant VERTEX = 0x1;
427
- const GPUFlagsConstant FRAGMENT = 0x2;
428
- const GPUFlagsConstant COMPUTE = 0x4;
429
- };
430
-
431
425
  dictionary GPUBindGroupLayoutEntry {
432
426
  required GPUIndex32 binding;
433
427
  required GPUShaderStageFlags visibility;
@@ -439,6 +433,14 @@ dictionary GPUBindGroupLayoutEntry {
439
433
  GPUExternalTextureBindingLayout externalTexture;
440
434
  };
441
435
 
436
+ typedef [EnforceRange] unsigned long GPUShaderStageFlags;
437
+ [Exposed=(Window, DedicatedWorker)]
438
+ namespace GPUShaderStage {
439
+ const GPUFlagsConstant VERTEX = 0x1;
440
+ const GPUFlagsConstant FRAGMENT = 0x2;
441
+ const GPUFlagsConstant COMPUTE = 0x4;
442
+ };
443
+
442
444
  enum GPUBufferBindingType {
443
445
  "uniform",
444
446
  "storage",
@@ -526,16 +528,16 @@ interface GPUShaderModule {
526
528
  };
527
529
  GPUShaderModule includes GPUObjectBase;
528
530
 
529
- dictionary GPUShaderModuleCompilationHint {
530
- required GPUPipelineLayout layout;
531
- };
532
-
533
531
  dictionary GPUShaderModuleDescriptor : GPUObjectDescriptorBase {
534
532
  required USVString code;
535
533
  object sourceMap;
536
534
  record<USVString, GPUShaderModuleCompilationHint> hints;
537
535
  };
538
536
 
537
+ dictionary GPUShaderModuleCompilationHint {
538
+ required (GPUPipelineLayout or GPUAutoLayoutMode) layout;
539
+ };
540
+
539
541
  enum GPUCompilationMessageType {
540
542
  "error",
541
543
  "warning",
@@ -557,12 +559,16 @@ interface GPUCompilationInfo {
557
559
  readonly attribute FrozenArray<GPUCompilationMessage> messages;
558
560
  };
559
561
 
562
+ enum GPUAutoLayoutMode {
563
+ "auto",
564
+ };
565
+
560
566
  dictionary GPUPipelineDescriptorBase : GPUObjectDescriptorBase {
561
- GPUPipelineLayout layout;
567
+ required (GPUPipelineLayout or GPUAutoLayoutMode) layout;
562
568
  };
563
569
 
564
570
  interface mixin GPUPipelineBase {
565
- GPUBindGroupLayout getBindGroupLayout(unsigned long index);
571
+ [NewObject] GPUBindGroupLayout getBindGroupLayout(unsigned long index);
566
572
  };
567
573
 
568
574
  dictionary GPUProgrammableStage {
@@ -597,14 +603,6 @@ dictionary GPURenderPipelineDescriptor : GPUPipelineDescriptorBase {
597
603
  GPUFragmentState fragment;
598
604
  };
599
605
 
600
- enum GPUPrimitiveTopology {
601
- "point-list",
602
- "line-list",
603
- "line-strip",
604
- "triangle-list",
605
- "triangle-strip",
606
- };
607
-
608
606
  dictionary GPUPrimitiveState {
609
607
  GPUPrimitiveTopology topology = "triangle-list";
610
608
  GPUIndexFormat stripIndexFormat;
@@ -615,6 +613,14 @@ dictionary GPUPrimitiveState {
615
613
  boolean unclippedDepth = false;
616
614
  };
617
615
 
616
+ enum GPUPrimitiveTopology {
617
+ "point-list",
618
+ "line-list",
619
+ "line-strip",
620
+ "triangle-list",
621
+ "triangle-strip",
622
+ };
623
+
618
624
  enum GPUFrontFace {
619
625
  "ccw",
620
626
  "cw",
@@ -1093,7 +1099,6 @@ interface GPUCanvasContext {
1093
1099
  undefined configure(GPUCanvasConfiguration configuration);
1094
1100
  undefined unconfigure();
1095
1101
 
1096
- GPUTextureFormat getPreferredFormat(GPUAdapter adapter);
1097
1102
  GPUTexture getCurrentTexture();
1098
1103
  };
1099
1104
 
@@ -1109,7 +1114,6 @@ dictionary GPUCanvasConfiguration {
1109
1114
  sequence<GPUTextureFormat> viewFormats = [];
1110
1115
  GPUPredefinedColorSpace colorSpace = "srgb";
1111
1116
  GPUCanvasCompositingAlphaMode compositingAlphaMode = "opaque";
1112
- GPUExtent3D size;
1113
1117
  };
1114
1118
 
1115
1119
  enum GPUDeviceLostReason {
@@ -1132,17 +1136,19 @@ enum GPUErrorFilter {
1132
1136
  };
1133
1137
 
1134
1138
  [Exposed=(Window, DedicatedWorker), SecureContext]
1135
- interface GPUOutOfMemoryError {
1136
- constructor();
1139
+ interface GPUError {
1140
+ readonly attribute DOMString message;
1137
1141
  };
1138
1142
 
1139
1143
  [Exposed=(Window, DedicatedWorker), SecureContext]
1140
- interface GPUValidationError {
1144
+ interface GPUOutOfMemoryError : GPUError {
1141
1145
  constructor(DOMString message);
1142
- readonly attribute DOMString message;
1143
1146
  };
1144
1147
 
1145
- typedef (GPUOutOfMemoryError or GPUValidationError) GPUError;
1148
+ [Exposed=(Window, DedicatedWorker), SecureContext]
1149
+ interface GPUValidationError : GPUError {
1150
+ constructor(DOMString message);
1151
+ };
1146
1152
 
1147
1153
  partial interface GPUDevice {
1148
1154
  undefined pushErrorScope(GPUErrorFilter filter);
package/webnn.idl CHANGED
@@ -111,9 +111,12 @@ interface MLGraphBuilder {
111
111
  // Create a single-value operand from the specified number of the specified type.
112
112
  MLOperand constant(double value, optional MLOperandType type = "float32");
113
113
 
114
- // Compile the graph up to the specified output operands
114
+ // Compile the graph up to the specified output operands synchronously.
115
115
  [Exposed=(DedicatedWorker)]
116
116
  MLGraph build(MLNamedOperands outputs);
117
+
118
+ // Compile the graph up to the specified output operands asynchronously.
119
+ Promise<MLGraph> buildAsync(MLNamedOperands outputs);
117
120
  };
118
121
 
119
122
  dictionary MLBatchNormalizationOptions {
@@ -120,7 +120,7 @@ interface RTCRtpScriptTransformer {
120
120
  readonly attribute ReadableStream readable;
121
121
  readonly attribute WritableStream writable;
122
122
  readonly attribute any options;
123
- Promise<undefined> generateKeyFrame(optional sequence <DOMString> rids);
123
+ Promise<unsigned long long> generateKeyFrame(optional DOMString rid);
124
124
  Promise<undefined> sendKeyFrameRequest();
125
125
  };
126
126