@webref/idl 3.73.0 → 3.73.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/css-pseudo.idl CHANGED
@@ -4,10 +4,11 @@
4
4
  // Source: CSS Pseudo-Elements Module Level 4 (https://drafts.csswg.org/css-pseudo-4/)
5
5
 
6
6
  [Exposed=Window]
7
- interface CSSPseudoElement : EventTarget {
7
+ interface CSSPseudoElement {
8
8
  readonly attribute CSSOMString type;
9
9
  readonly attribute Element element;
10
10
  readonly attribute (Element or CSSPseudoElement) parent;
11
+ readonly attribute CSSOMString selectorText;
11
12
  CSSPseudoElement? pseudo(CSSOMString type);
12
13
  };
13
14
 
package/cssom.idl CHANGED
@@ -37,7 +37,7 @@ interface CSSStyleSheet : StyleSheet {
37
37
  };
38
38
 
39
39
  dictionary CSSStyleSheetInit {
40
- DOMString baseURL = null;
40
+ DOMString? baseURL = null;
41
41
  (MediaList or DOMString) media = "";
42
42
  boolean disabled = false;
43
43
  };
package/html.idl CHANGED
@@ -363,6 +363,7 @@ interface HTMLAnchorElement : HTMLElement {
363
363
 
364
364
  // also has obsolete members
365
365
  };
366
+ HTMLAnchorElement includes HyperlinkElementUtils;
366
367
  HTMLAnchorElement includes HTMLHyperlinkElementUtils;
367
368
 
368
369
  [Exposed=Window]
@@ -391,8 +392,7 @@ interface HTMLBRElement : HTMLElement {
391
392
  // also has obsolete members
392
393
  };
393
394
 
394
- interface mixin HTMLHyperlinkElementUtils {
395
- [CEReactions, ReflectSetter] stringifier attribute USVString href;
395
+ interface mixin HyperlinkElementUtils {
396
396
  readonly attribute USVString origin;
397
397
  [CEReactions] attribute USVString protocol;
398
398
  [CEReactions] attribute USVString username;
@@ -405,6 +405,10 @@ interface mixin HTMLHyperlinkElementUtils {
405
405
  [CEReactions] attribute USVString hash;
406
406
  };
407
407
 
408
+ interface mixin HTMLHyperlinkElementUtils {
409
+ [CEReactions, ReflectSetter] stringifier attribute USVString href;
410
+ };
411
+
408
412
  [Exposed=Window]
409
413
  interface HTMLModElement : HTMLElement {
410
414
  [HTMLConstructor] constructor();
@@ -765,6 +769,7 @@ interface HTMLAreaElement : HTMLElement {
765
769
 
766
770
  // also has obsolete members
767
771
  };
772
+ HTMLAreaElement includes HyperlinkElementUtils;
768
773
  HTMLAreaElement includes HTMLHyperlinkElementUtils;
769
774
 
770
775
  [Exposed=Window]
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.73.0",
4
+ "version": "3.73.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -22,8 +22,8 @@ interface PerformanceEntry {
22
22
  };
23
23
 
24
24
  callback PerformanceObserverCallback = undefined (PerformanceObserverEntryList entries,
25
- PerformanceObserver observer,
26
- optional PerformanceObserverCallbackOptions options = {});
25
+ PerformanceObserver observer,
26
+ optional PerformanceObserverCallbackOptions options = {});
27
27
  [Exposed=(Window,Worker)]
28
28
  interface PerformanceObserver {
29
29
  constructor(PerformanceObserverCallback callback);
@@ -30,6 +30,16 @@ partial interface PaymentRequest {
30
30
  static Promise<SecurePaymentConfirmationAvailability> securePaymentConfirmationAvailability();
31
31
  };
32
32
 
33
+ partial interface PaymentRequest {
34
+ static Promise<SecurePaymentConfirmationCapabilities> getSecurePaymentConfirmationCapabilities();
35
+ };
36
+
37
+ typedef record<DOMString, boolean> SecurePaymentConfirmationCapabilities;
38
+
39
+ enum SecurePaymentConfirmationCapability {
40
+ "browserBoundKeyHardware",
41
+ };
42
+
33
43
  partial dictionary AuthenticationExtensionsClientInputs {
34
44
  AuthenticationExtensionsPaymentInputs payment;
35
45
  };
@@ -3,11 +3,22 @@
3
3
  // (https://github.com/w3c/webref)
4
4
  // Source: Accelerated Text Detection in Images (https://wicg.github.io/shape-detection-api/text.html)
5
5
 
6
+ dictionary TextDetectorOptions {
7
+ required sequence<DOMString> languages;
8
+ };
9
+
10
+ dictionary TextDetectorCreateOptions {
11
+ AbortSignal signal;
12
+ sequence<DOMString> languages;
13
+ };
14
+
6
15
  [
7
16
  Exposed=(Window,Worker),
8
17
  SecureContext
9
18
  ] interface TextDetector {
10
19
  constructor();
20
+ static Promise<Availability> availability(TextDetectorOptions options);
21
+ static Promise<TextDetector> create(optional TextDetectorCreateOptions options = {});
11
22
  Promise<sequence<DetectedText>> detect(ImageBitmapSource image);
12
23
  };
13
24
 
package/uievents.idl CHANGED
@@ -25,24 +25,6 @@ dictionary FocusEventInit : UIEventInit {
25
25
  EventTarget? relatedTarget = null;
26
26
  };
27
27
 
28
- dictionary EventModifierInit : UIEventInit {
29
- boolean ctrlKey = false;
30
- boolean shiftKey = false;
31
- boolean altKey = false;
32
- boolean metaKey = false;
33
-
34
- boolean modifierAltGraph = false;
35
- boolean modifierCapsLock = false;
36
- boolean modifierFn = false;
37
- boolean modifierFnLock = false;
38
- boolean modifierHyper = false;
39
- boolean modifierNumLock = false;
40
- boolean modifierScrollLock = false;
41
- boolean modifierSuper = false;
42
- boolean modifierSymbol = false;
43
- boolean modifierSymbolLock = false;
44
- };
45
-
46
28
  [Exposed=Window]
47
29
  interface InputEvent : UIEvent {
48
30
  constructor(DOMString type, optional InputEventInit eventInitDict = {});
@@ -89,6 +71,24 @@ dictionary KeyboardEventInit : EventModifierInit {
89
71
  boolean isComposing = false;
90
72
  };
91
73
 
74
+ dictionary EventModifierInit : UIEventInit {
75
+ boolean ctrlKey = false;
76
+ boolean shiftKey = false;
77
+ boolean altKey = false;
78
+ boolean metaKey = false;
79
+
80
+ boolean modifierAltGraph = false;
81
+ boolean modifierCapsLock = false;
82
+ boolean modifierFn = false;
83
+ boolean modifierFnLock = false;
84
+ boolean modifierHyper = false;
85
+ boolean modifierNumLock = false;
86
+ boolean modifierScrollLock = false;
87
+ boolean modifierSuper = false;
88
+ boolean modifierSymbol = false;
89
+ boolean modifierSymbolLock = false;
90
+ };
91
+
92
92
  [Exposed=Window]
93
93
  interface CompositionEvent : UIEvent {
94
94
  constructor(DOMString type, optional CompositionEventInit eventInitDict = {});
package/webtransport.idl CHANGED
@@ -27,12 +27,13 @@ interface WebTransport {
27
27
  constructor(USVString url, optional WebTransportOptions options = {});
28
28
 
29
29
  Promise<WebTransportConnectionStats> getStats();
30
- [NewObject] Promise<ArrayBuffer> exportKeyingMaterial(BufferSource label, optional BufferSource context);
30
+ [NewObject] Promise<Uint8Array> exportKeyingMaterial(BufferSource label, optional BufferSource context);
31
31
  readonly attribute Promise<undefined> ready;
32
32
  readonly attribute WebTransportReliabilityMode reliability;
33
33
  readonly attribute WebTransportCongestionControl congestionControl;
34
- [EnforceRange] attribute unsigned short? anticipatedConcurrentIncomingUnidirectionalStreams;
35
- [EnforceRange] attribute unsigned short? anticipatedConcurrentIncomingBidirectionalStreams;
34
+ attribute [EnforceRange] unsigned short? anticipatedConcurrentIncomingUnidirectionalStreams;
35
+ attribute [EnforceRange] unsigned short? anticipatedConcurrentIncomingBidirectionalStreams;
36
+ [SameObject] readonly attribute Headers? responseHeaders;
36
37
  readonly attribute DOMString protocol;
37
38
 
38
39
  readonly attribute Promise<WebTransportCloseInfo> closed;
@@ -69,6 +70,7 @@ dictionary WebTransportHash {
69
70
  dictionary WebTransportOptions {
70
71
  boolean allowPooling = false;
71
72
  boolean requireUnreliable = false;
73
+ HeadersInit headers = {};
72
74
  sequence<WebTransportHash> serverCertificateHashes = [];
73
75
  WebTransportCongestionControl congestionControl = "default";
74
76
  [EnforceRange] unsigned short? anticipatedConcurrentIncomingUnidirectionalStreams = null;
@@ -21,6 +21,7 @@ interface Summarizer {
21
21
  readonly attribute SummarizerType type;
22
22
  readonly attribute SummarizerFormat format;
23
23
  readonly attribute SummarizerLength length;
24
+ readonly attribute PerformancePreference preference;
24
25
 
25
26
  readonly attribute FrozenArray<DOMString>? expectedInputLanguages;
26
27
  readonly attribute FrozenArray<DOMString>? expectedContextLanguages;
@@ -38,6 +39,7 @@ dictionary SummarizerCreateCoreOptions {
38
39
  SummarizerType type = "key-points";
39
40
  SummarizerFormat format = "markdown";
40
41
  SummarizerLength length = "short";
42
+ PerformancePreference preference = "auto";
41
43
 
42
44
  sequence<DOMString> expectedInputLanguages;
43
45
  sequence<DOMString> expectedContextLanguages;
@@ -59,6 +61,7 @@ dictionary SummarizerSummarizeOptions {
59
61
  enum SummarizerType { "tldr", "teaser", "key-points", "headline" };
60
62
  enum SummarizerFormat { "plain-text", "markdown" };
61
63
  enum SummarizerLength { "short", "medium", "long" };
64
+ enum PerformancePreference { "auto", "speed", "capability" };
62
65
 
63
66
  [Exposed=Window, SecureContext]
64
67
  interface Writer {