@webref/idl 3.61.4 → 3.61.5

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;
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/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.61.5",
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;