@webref/idl 3.61.4 → 3.62.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/dom.idl CHANGED
@@ -110,6 +110,7 @@ Document includes NonElementParentNode;
110
110
  DocumentFragment includes NonElementParentNode;
111
111
 
112
112
  interface mixin DocumentOrShadowRoot {
113
+ readonly attribute CustomElementRegistry? customElementRegistry;
113
114
  };
114
115
  Document includes DocumentOrShadowRoot;
115
116
  ShadowRoot includes DocumentOrShadowRoot;
@@ -293,7 +294,7 @@ interface Document : Node {
293
294
  [NewObject] Comment createComment(DOMString data);
294
295
  [NewObject] ProcessingInstruction createProcessingInstruction(DOMString target, DOMString data);
295
296
 
296
- [CEReactions, NewObject] Node importNode(Node node, optional boolean subtree = false);
297
+ [CEReactions, NewObject] Node importNode(Node node, optional (boolean or ImportNodeOptions) options = false);
297
298
  [CEReactions] Node adoptNode(Node node);
298
299
 
299
300
  [NewObject] Attr createAttribute(DOMString localName);
@@ -312,9 +313,15 @@ interface Document : Node {
312
313
  interface XMLDocument : Document {};
313
314
 
314
315
  dictionary ElementCreationOptions {
316
+ CustomElementRegistry customElementRegistry;
315
317
  DOMString is;
316
318
  };
317
319
 
320
+ dictionary ImportNodeOptions {
321
+ CustomElementRegistry customElementRegistry;
322
+ boolean selfOnly = false;
323
+ };
324
+
318
325
  [Exposed=Window]
319
326
  interface DOMImplementation {
320
327
  [NewObject] DocumentType createDocumentType(DOMString qualifiedName, DOMString publicId, DOMString systemId);
@@ -344,6 +351,7 @@ interface ShadowRoot : DocumentFragment {
344
351
  readonly attribute boolean clonable;
345
352
  readonly attribute boolean serializable;
346
353
  readonly attribute Element host;
354
+
347
355
  attribute EventHandler onslotchange;
348
356
  };
349
357
 
@@ -384,6 +392,8 @@ interface Element : Node {
384
392
  ShadowRoot attachShadow(ShadowRootInit init);
385
393
  readonly attribute ShadowRoot? shadowRoot;
386
394
 
395
+ readonly attribute CustomElementRegistry? customElementRegistry;
396
+
387
397
  Element? closest(DOMString selectors);
388
398
  boolean matches(DOMString selectors);
389
399
  boolean webkitMatchesSelector(DOMString selectors); // legacy alias of .matches
@@ -402,6 +412,7 @@ dictionary ShadowRootInit {
402
412
  SlotAssignmentMode slotAssignment = "named";
403
413
  boolean clonable = false;
404
414
  boolean serializable = false;
415
+ CustomElementRegistry customElementRegistry;
405
416
  };
406
417
 
407
418
  [Exposed=Window,
package/fedcm.idl CHANGED
@@ -74,7 +74,7 @@ dictionary IdentityProviderBranding {
74
74
 
75
75
  dictionary IdentityProviderAPIConfig {
76
76
  required USVString accounts_endpoint;
77
- required USVString client_metadata_endpoint;
77
+ USVString client_metadata_endpoint;
78
78
  required USVString id_assertion_endpoint;
79
79
  required USVString login_url;
80
80
  USVString disconnect_endpoint;
@@ -84,8 +84,10 @@ dictionary IdentityProviderAPIConfig {
84
84
 
85
85
  dictionary IdentityProviderAccount {
86
86
  required USVString id;
87
- required USVString name;
88
- required USVString email;
87
+ USVString name;
88
+ USVString email;
89
+ USVString tel;
90
+ USVString username;
89
91
  USVString given_name;
90
92
  USVString picture;
91
93
  sequence<USVString> approved_clients;
package/html.idl CHANGED
@@ -1261,6 +1261,7 @@ interface HTMLTemplateElement : HTMLElement {
1261
1261
  [CEReactions] attribute boolean shadowRootDelegatesFocus;
1262
1262
  [CEReactions] attribute boolean shadowRootClonable;
1263
1263
  [CEReactions] attribute boolean shadowRootSerializable;
1264
+ [CEReactions] attribute DOMString shadowRootCustomElementRegistry;
1264
1265
  };
1265
1266
 
1266
1267
  [Exposed=Window]
@@ -1629,11 +1630,14 @@ OffscreenCanvasRenderingContext2D includes CanvasPath;
1629
1630
 
1630
1631
  [Exposed=Window]
1631
1632
  interface CustomElementRegistry {
1633
+ constructor();
1634
+
1632
1635
  [CEReactions] undefined define(DOMString name, CustomElementConstructor constructor, optional ElementDefinitionOptions options = {});
1633
1636
  (CustomElementConstructor or undefined) get(DOMString name);
1634
1637
  DOMString? getName(CustomElementConstructor constructor);
1635
1638
  Promise<CustomElementConstructor> whenDefined(DOMString name);
1636
1639
  [CEReactions] undefined upgrade(Node root);
1640
+ undefined initialize(Node root);
1637
1641
  };
1638
1642
 
1639
1643
  callback CustomElementConstructor = HTMLElement ();
package/image-capture.idl CHANGED
@@ -3,7 +3,7 @@
3
3
  // (https://github.com/w3c/webref)
4
4
  // Source: MediaStream Image Capture (https://w3c.github.io/mediacapture-image/)
5
5
 
6
- [Exposed=Window]
6
+ [Exposed=Window, SecureContext]
7
7
  interface ImageCapture {
8
8
  constructor(MediaStreamTrack videoTrack);
9
9
  Promise<Blob> takePhoto(optional PhotoSettings photoSettings = {});
@@ -56,7 +56,7 @@ interface BlobEvent : Event {
56
56
  readonly attribute DOMHighResTimeStamp timecode;
57
57
  };
58
58
 
59
- dictionary BlobEventInit {
59
+ dictionary BlobEventInit : EventInit {
60
60
  required Blob data;
61
61
  DOMHighResTimeStamp timecode;
62
62
  };
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.61.4",
4
+ "version": "3.62.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -16,8 +16,16 @@ dictionary SecurePaymentConfirmationRequest {
16
16
  boolean showOptOut;
17
17
  };
18
18
 
19
+ enum SecurePaymentConfirmationAvailability {
20
+ "available",
21
+ "unavailable-unknown-reason",
22
+ "unavailable-feature-not-enabled",
23
+ "unavailable-no-permission-policy",
24
+ "unavailable-no-user-verifying-platform-authenticator",
25
+ };
26
+
19
27
  partial interface PaymentRequest {
20
- static Promise<boolean> isSecurePaymentConfirmationAvailable();
28
+ static Promise<SecurePaymentConfirmationAvailability> securePaymentConfirmationAvailability();
21
29
  };
22
30
 
23
31
  partial dictionary AuthenticationExtensionsClientInputs {
package/speech-api.idl CHANGED
@@ -13,6 +13,7 @@ interface SpeechRecognition : EventTarget {
13
13
  attribute boolean interimResults;
14
14
  attribute unsigned long maxAlternatives;
15
15
  attribute SpeechRecognitionMode mode;
16
+ attribute SpeechRecognitionPhraseList phrases;
16
17
 
17
18
  // methods to drive the speech interaction
18
19
  undefined start();
@@ -43,7 +44,8 @@ enum SpeechRecognitionErrorCode {
43
44
  "network",
44
45
  "not-allowed",
45
46
  "service-not-allowed",
46
- "language-not-supported"
47
+ "language-not-supported",
48
+ "phrases-not-supported"
47
49
  };
48
50
 
49
51
  enum SpeechRecognitionMode {
@@ -106,6 +108,24 @@ dictionary SpeechRecognitionEventInit : EventInit {
106
108
  required SpeechRecognitionResultList results;
107
109
  };
108
110
 
111
+ // The object representing a phrase for contextual biasing.
112
+ [Exposed=Window]
113
+ interface SpeechRecognitionPhrase {
114
+ constructor(DOMString phrase, optional float boost = 1.0);
115
+ readonly attribute DOMString phrase;
116
+ readonly attribute float boost;
117
+ };
118
+
119
+ // The object representing a list of phrases for contextual biasing.
120
+ [Exposed=Window]
121
+ interface SpeechRecognitionPhraseList {
122
+ constructor(sequence<SpeechRecognitionPhrase> phrases);
123
+ readonly attribute unsigned long length;
124
+ SpeechRecognitionPhrase item(unsigned long index);
125
+ undefined addItem(SpeechRecognitionPhrase item);
126
+ undefined removeItem(unsigned long index);
127
+ };
128
+
109
129
  [Exposed=Window]
110
130
  interface SpeechSynthesis : EventTarget {
111
131
  readonly attribute boolean pending;
package/turtledove.idl CHANGED
@@ -206,6 +206,7 @@ partial interface Navigator {
206
206
  [Exposed=InterestGroupScriptRunnerGlobalScope]
207
207
  interface InterestGroupScriptRunnerGlobalScope {
208
208
  readonly attribute PrivateAggregation? privateAggregation;
209
+ readonly attribute ProtectedAudienceUtilities protectedAudience;
209
210
  };
210
211
 
211
212
  dictionary PASignalValue {
@@ -220,6 +221,12 @@ dictionary PAExtendedHistogramContribution {
220
221
  bigint filteringId = 0;
221
222
  };
222
223
 
224
+ [Exposed=InterestGroupScriptRunnerGlobalScope]
225
+ interface ProtectedAudienceUtilities {
226
+ Uint8Array encodeUtf8(USVString input);
227
+ USVString decodeUtf8(Uint8Array bytes);
228
+ };
229
+
223
230
  [Exposed=InterestGroupBiddingAndScoringScriptRunnerGlobalScope]
224
231
  interface ForDebuggingOnly {
225
232
  undefined reportAdAuctionWin(USVString url);
package/webcodecs.idl CHANGED
@@ -141,7 +141,7 @@ dictionary AudioDecoderConfig {
141
141
  required DOMString codec;
142
142
  [EnforceRange] required unsigned long sampleRate;
143
143
  [EnforceRange] required unsigned long numberOfChannels;
144
- BufferSource description;
144
+ AllowSharedBufferSource description;
145
145
  };
146
146
 
147
147
  dictionary VideoDecoderConfig {
package/webgpu.idl CHANGED
@@ -109,6 +109,7 @@ dictionary GPUDeviceDescriptor
109
109
  };
110
110
 
111
111
  enum GPUFeatureName {
112
+ "core-features-and-limits",
112
113
  "depth-clip-control",
113
114
  "depth32float-stencil8",
114
115
  "texture-compression-bc",
package/webnn.idl CHANGED
@@ -36,6 +36,8 @@ interface MLContext {
36
36
  undefined dispatch(MLGraph graph, MLNamedTensors inputs, MLNamedTensors outputs);
37
37
 
38
38
  Promise<MLTensor> createTensor(MLTensorDescriptor descriptor);
39
+ Promise<MLTensor> createConstantTensor(
40
+ MLOperandDescriptor descriptor, AllowSharedBufferSource inputData);
39
41
 
40
42
  Promise<ArrayBuffer> readTensor(MLTensor tensor);
41
43
  Promise<undefined> readTensor(MLTensor tensor, AllowSharedBufferSource outputData);
@@ -133,6 +135,7 @@ interface MLTensor {
133
135
  readonly attribute FrozenArray<unsigned long> shape;
134
136
  readonly attribute boolean readable;
135
137
  readonly attribute boolean writable;
138
+ readonly attribute boolean constant;
136
139
 
137
140
  undefined destroy();
138
141
  };
@@ -154,6 +157,9 @@ interface MLGraphBuilder {
154
157
  // Create a scalar operand from the specified number of the specified type.
155
158
  MLOperand constant(MLOperandDataType type, MLNumber value);
156
159
 
160
+ // Create an operand from a specified constant tensor.
161
+ MLOperand constant(MLTensor tensor);
162
+
157
163
  // Compile the graph up to the specified output operands asynchronously.
158
164
  Promise<MLGraph> build(MLNamedOperands outputs);
159
165
  };
@@ -34,6 +34,10 @@ partial interface XRSession {
34
34
  readonly attribute XRDepthUsage depthUsage;
35
35
  readonly attribute XRDepthDataFormat depthDataFormat;
36
36
  readonly attribute XRDepthType? depthType;
37
+ readonly attribute boolean? depthActive;
38
+
39
+ undefined pauseDepthSensing();
40
+ undefined resumeDepthSensing();
37
41
  };
38
42
 
39
43
  [SecureContext, Exposed=Window]
@@ -43,9 +47,10 @@ interface XRDepthInformation {
43
47
 
44
48
  [SameObject] readonly attribute XRRigidTransform normDepthBufferFromNormView;
45
49
  readonly attribute float rawValueToMeters;
46
- readonly attribute XRView? view;
47
50
  };
48
51
 
52
+ XRDepthInformation includes XRViewGeometry;
53
+
49
54
  [Exposed=Window]
50
55
  interface XRCPUDepthInformation : XRDepthInformation {
51
56
  [SameObject] readonly attribute ArrayBuffer data;
package/webxr.idl CHANGED
@@ -118,6 +118,11 @@ interface XRBoundedReferenceSpace : XRReferenceSpace {
118
118
  readonly attribute FrozenArray<DOMPointReadOnly> boundsGeometry;
119
119
  };
120
120
 
121
+ [SecureContext, Exposed=Window] interface mixin XRViewGeometry {
122
+ readonly attribute Float32Array projectionMatrix;
123
+ [SameObject] readonly attribute XRRigidTransform transform;
124
+ };
125
+
121
126
  enum XREye {
122
127
  "none",
123
128
  "left",
@@ -126,13 +131,13 @@ enum XREye {
126
131
 
127
132
  [SecureContext, Exposed=Window] interface XRView {
128
133
  readonly attribute XREye eye;
129
- readonly attribute Float32Array projectionMatrix;
130
- [SameObject] readonly attribute XRRigidTransform transform;
131
134
  readonly attribute double? recommendedViewportScale;
132
135
 
133
136
  undefined requestViewportScale(double? scale);
134
137
  };
135
138
 
139
+ XRView includes XRViewGeometry;
140
+
136
141
  [SecureContext, Exposed=Window] interface XRViewport {
137
142
  readonly attribute long x;
138
143
  readonly attribute long y;
@@ -0,0 +1,193 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: Writing Assistance APIs (https://webmachinelearning.github.io/writing-assistance-apis/)
5
+
6
+ [Exposed=Window, SecureContext]
7
+ interface Summarizer {
8
+ static Promise<Summarizer> create(optional SummarizerCreateOptions options = {});
9
+ static Promise<Availability> availability(optional SummarizerCreateCoreOptions options = {});
10
+
11
+ Promise<DOMString> summarize(
12
+ DOMString input,
13
+ optional SummarizerSummarizeOptions options = {}
14
+ );
15
+ ReadableStream summarizeStreaming(
16
+ DOMString input,
17
+ optional SummarizerSummarizeOptions options = {}
18
+ );
19
+
20
+ readonly attribute DOMString sharedContext;
21
+ readonly attribute SummarizerType type;
22
+ readonly attribute SummarizerFormat format;
23
+ readonly attribute SummarizerLength length;
24
+
25
+ readonly attribute FrozenArray<DOMString>? expectedInputLanguages;
26
+ readonly attribute FrozenArray<DOMString>? expectedContextLanguages;
27
+ readonly attribute DOMString? outputLanguage;
28
+
29
+ Promise<double> measureInputUsage(
30
+ DOMString input,
31
+ optional SummarizerSummarizeOptions options = {}
32
+ );
33
+ readonly attribute unrestricted double inputQuota;
34
+ };
35
+ Summarizer includes DestroyableModel;
36
+
37
+ dictionary SummarizerCreateCoreOptions {
38
+ SummarizerType type = "key-points";
39
+ SummarizerFormat format = "markdown";
40
+ SummarizerLength length = "short";
41
+
42
+ sequence<DOMString> expectedInputLanguages;
43
+ sequence<DOMString> expectedContextLanguages;
44
+ DOMString outputLanguage;
45
+ };
46
+
47
+ dictionary SummarizerCreateOptions : SummarizerCreateCoreOptions {
48
+ AbortSignal signal;
49
+ CreateMonitorCallback monitor;
50
+
51
+ DOMString sharedContext;
52
+ };
53
+
54
+ dictionary SummarizerSummarizeOptions {
55
+ AbortSignal signal;
56
+ DOMString context;
57
+ };
58
+
59
+ enum SummarizerType { "tl;dr", "teaser", "key-points", "headline" };
60
+ enum SummarizerFormat { "plain-text", "markdown" };
61
+ enum SummarizerLength { "short", "medium", "long" };
62
+
63
+ [Exposed=Window, SecureContext]
64
+ interface Writer {
65
+ static Promise<Writer> create(optional WriterCreateOptions options = {});
66
+ static Promise<Availability> availability(optional WriterCreateCoreOptions options = {});
67
+
68
+ Promise<DOMString> write(
69
+ DOMString input,
70
+ optional WriterWriteOptions options = {}
71
+ );
72
+ ReadableStream writeStreaming(
73
+ DOMString input,
74
+ optional WriterWriteOptions options = {}
75
+ );
76
+
77
+ readonly attribute DOMString sharedContext;
78
+ readonly attribute WriterTone tone;
79
+ readonly attribute WriterFormat format;
80
+ readonly attribute WriterLength length;
81
+
82
+ readonly attribute FrozenArray<DOMString>? expectedInputLanguages;
83
+ readonly attribute FrozenArray<DOMString>? expectedContextLanguages;
84
+ readonly attribute DOMString? outputLanguage;
85
+
86
+ Promise<double> measureInputUsage(
87
+ DOMString input,
88
+ optional WriterWriteOptions options = {}
89
+ );
90
+ readonly attribute unrestricted double inputQuota;
91
+ };
92
+ Writer includes DestroyableModel;
93
+
94
+ dictionary WriterCreateCoreOptions {
95
+ WriterTone tone = "neutral";
96
+ WriterFormat format = "markdown";
97
+ WriterLength length = "short";
98
+
99
+ sequence<DOMString> expectedInputLanguages;
100
+ sequence<DOMString> expectedContextLanguages;
101
+ DOMString outputLanguage;
102
+ };
103
+
104
+ dictionary WriterCreateOptions : WriterCreateCoreOptions {
105
+ AbortSignal signal;
106
+ CreateMonitorCallback monitor;
107
+
108
+ DOMString sharedContext;
109
+ };
110
+
111
+ dictionary WriterWriteOptions {
112
+ DOMString context;
113
+ AbortSignal signal;
114
+ };
115
+
116
+ enum WriterTone { "formal", "neutral", "casual" };
117
+ enum WriterFormat { "plain-text", "markdown" };
118
+ enum WriterLength { "short", "medium", "long" };
119
+
120
+ [Exposed=Window, SecureContext]
121
+ interface Rewriter {
122
+ static Promise<Rewriter> create(optional RewriterCreateOptions options = {});
123
+ static Promise<Availability> availability(optional RewriterCreateCoreOptions options = {});
124
+
125
+ Promise<DOMString> rewrite(
126
+ DOMString input,
127
+ optional RewriterRewriteOptions options = {}
128
+ );
129
+ ReadableStream rewriteStreaming(
130
+ DOMString input,
131
+ optional RewriterRewriteOptions options = {}
132
+ );
133
+
134
+ readonly attribute DOMString sharedContext;
135
+ readonly attribute RewriterTone tone;
136
+ readonly attribute RewriterFormat format;
137
+ readonly attribute RewriterLength length;
138
+
139
+ readonly attribute FrozenArray<DOMString>? expectedInputLanguages;
140
+ readonly attribute FrozenArray<DOMString>? expectedContextLanguages;
141
+ readonly attribute DOMString? outputLanguage;
142
+
143
+ Promise<double> measureInputUsage(
144
+ DOMString input,
145
+ optional RewriterRewriteOptions options = {}
146
+ );
147
+ readonly attribute unrestricted double inputQuota;
148
+ };
149
+ Rewriter includes DestroyableModel;
150
+
151
+ dictionary RewriterCreateCoreOptions {
152
+ RewriterTone tone = "as-is";
153
+ RewriterFormat format = "as-is";
154
+ RewriterLength length = "as-is";
155
+
156
+ sequence<DOMString> expectedInputLanguages;
157
+ sequence<DOMString> expectedContextLanguages;
158
+ DOMString outputLanguage;
159
+ };
160
+
161
+ dictionary RewriterCreateOptions : RewriterCreateCoreOptions {
162
+ AbortSignal signal;
163
+ CreateMonitorCallback monitor;
164
+
165
+ DOMString sharedContext;
166
+ };
167
+
168
+ dictionary RewriterRewriteOptions {
169
+ DOMString context;
170
+ AbortSignal signal;
171
+ };
172
+
173
+ enum RewriterTone { "as-is", "more-formal", "more-casual" };
174
+ enum RewriterFormat { "as-is", "plain-text", "markdown" };
175
+ enum RewriterLength { "as-is", "shorter", "longer" };
176
+
177
+ [Exposed=Window, SecureContext]
178
+ interface CreateMonitor : EventTarget {
179
+ attribute EventHandler ondownloadprogress;
180
+ };
181
+
182
+ callback CreateMonitorCallback = undefined (CreateMonitor monitor);
183
+
184
+ enum Availability {
185
+ "unavailable",
186
+ "downloadable",
187
+ "downloading",
188
+ "available"
189
+ };
190
+
191
+ interface mixin DestroyableModel {
192
+ undefined destroy();
193
+ };
File without changes