@webref/idl 3.56.0 → 3.56.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.
@@ -8,6 +8,7 @@ interface mixin HTMLAttributionSrcElementUtils {
8
8
  };
9
9
 
10
10
  HTMLAnchorElement includes HTMLAttributionSrcElementUtils;
11
+ HTMLAreaElement includes HTMLAttributionSrcElementUtils;
11
12
  HTMLImageElement includes HTMLAttributionSrcElementUtils;
12
13
  HTMLScriptElement includes HTMLAttributionSrcElementUtils;
13
14
 
@@ -3,7 +3,7 @@
3
3
  // (https://github.com/w3c/webref)
4
4
  // Source: Compute Pressure Level 1 (https://w3c.github.io/compute-pressure/)
5
5
 
6
- enum PressureSource { "thermals", "cpu" };
6
+ enum PressureSource { "cpu" };
7
7
 
8
8
  enum PressureState { "nominal", "fair", "serious", "critical" };
9
9
 
package/fedcm.idl CHANGED
@@ -29,9 +29,15 @@ enum IdentityCredentialRequestOptionsContext {
29
29
  "continue"
30
30
  };
31
31
 
32
+ enum IdentityCredentialRequestOptionsMode {
33
+ "active",
34
+ "passive"
35
+ };
36
+
32
37
  dictionary IdentityCredentialRequestOptions {
33
38
  required sequence<IdentityProviderRequestOptions> providers;
34
39
  IdentityCredentialRequestOptionsContext context = "signin";
40
+ IdentityCredentialRequestOptionsMode mode = "passive";
35
41
  };
36
42
 
37
43
  dictionary IdentityProviderConfig {
@@ -47,7 +53,9 @@ dictionary IdentityProviderRequestOptions : IdentityProviderConfig {
47
53
  };
48
54
 
49
55
  dictionary IdentityProviderWellKnown {
50
- required sequence<USVString> provider_urls;
56
+ sequence<USVString> provider_urls;
57
+ USVString accounts_endpoint;
58
+ USVString login_url;
51
59
  };
52
60
 
53
61
  dictionary IdentityProviderIcon {
@@ -85,8 +93,9 @@ dictionary IdentityProviderAccountList {
85
93
  sequence<IdentityProviderAccount> accounts;
86
94
  };
87
95
 
88
- dictionary IdentityProviderToken {
89
- required USVString token;
96
+ dictionary IdentityAssertionResponse {
97
+ USVString token;
98
+ USVString continue_on;
90
99
  };
91
100
 
92
101
  dictionary IdentityProviderClientMetadata {
@@ -101,7 +110,12 @@ dictionary IdentityUserInfo {
101
110
  USVString picture;
102
111
  };
103
112
 
113
+ dictionary IdentityResolveOptions {
114
+ USVString accountId;
115
+ };
116
+
104
117
  [Exposed=Window, SecureContext] interface IdentityProvider {
105
118
  static undefined close();
119
+ static undefined resolve(DOMString token, optional IdentityResolveOptions options = {});
106
120
  static Promise<sequence<IdentityUserInfo>> getUserInfo(IdentityProviderConfig config);
107
121
  };
package/html.idl CHANGED
@@ -133,12 +133,20 @@ interface HTMLElement : Element {
133
133
  ElementInternals attachInternals();
134
134
 
135
135
  // The popover API
136
- undefined showPopover();
136
+ undefined showPopover(optional ShowPopoverOptions options = {});
137
137
  undefined hidePopover();
138
- boolean togglePopover(optional boolean force);
138
+ boolean togglePopover(optional (TogglePopoverOptions or boolean) options = {});
139
139
  [CEReactions] attribute DOMString? popover;
140
140
  };
141
141
 
142
+ dictionary ShowPopoverOptions {
143
+ HTMLElement source;
144
+ };
145
+
146
+ dictionary TogglePopoverOptions : ShowPopoverOptions {
147
+ boolean force;
148
+ };
149
+
142
150
  HTMLElement includes GlobalEventHandlers;
143
151
  HTMLElement includes ElementContentEditable;
144
152
  HTMLElement includes HTMLOrSVGElement;
@@ -2512,6 +2520,11 @@ interface MessageChannel {
2512
2520
  readonly attribute MessagePort port2;
2513
2521
  };
2514
2522
 
2523
+ interface mixin MessageEventTarget {
2524
+ attribute EventHandler onmessage;
2525
+ attribute EventHandler onmessageerror;
2526
+ };
2527
+
2515
2528
  [Exposed=(Window,Worker,AudioWorklet), Transferable]
2516
2529
  interface MessagePort : EventTarget {
2517
2530
  undefined postMessage(any message, sequence<object> transfer);
@@ -2520,11 +2533,11 @@ interface MessagePort : EventTarget {
2520
2533
  undefined close();
2521
2534
 
2522
2535
  // event handlers
2523
- attribute EventHandler onmessage;
2524
- attribute EventHandler onmessageerror;
2525
2536
  attribute EventHandler onclose;
2526
2537
  };
2527
2538
 
2539
+ MessagePort includes MessageEventTarget;
2540
+
2528
2541
  dictionary StructuredSerializeOptions {
2529
2542
  sequence<object> transfer = [];
2530
2543
  };
@@ -2563,11 +2576,10 @@ interface DedicatedWorkerGlobalScope : WorkerGlobalScope {
2563
2576
  undefined postMessage(any message, optional StructuredSerializeOptions options = {});
2564
2577
 
2565
2578
  undefined close();
2566
-
2567
- attribute EventHandler onmessage;
2568
- attribute EventHandler onmessageerror;
2569
2579
  };
2570
2580
 
2581
+ DedicatedWorkerGlobalScope includes MessageEventTarget;
2582
+
2571
2583
  [Global=(Worker,SharedWorker),Exposed=SharedWorker]
2572
2584
  interface SharedWorkerGlobalScope : WorkerGlobalScope {
2573
2585
  [Replaceable] readonly attribute DOMString name;
@@ -2589,8 +2601,6 @@ interface Worker : EventTarget {
2589
2601
 
2590
2602
  undefined postMessage(any message, sequence<object> transfer);
2591
2603
  undefined postMessage(any message, optional StructuredSerializeOptions options = {});
2592
- attribute EventHandler onmessage;
2593
- attribute EventHandler onmessageerror;
2594
2604
  };
2595
2605
 
2596
2606
  dictionary WorkerOptions {
@@ -2602,6 +2612,7 @@ dictionary WorkerOptions {
2602
2612
  enum WorkerType { "classic", "module" };
2603
2613
 
2604
2614
  Worker includes AbstractWorker;
2615
+ Worker includes MessageEventTarget;
2605
2616
 
2606
2617
  [Exposed=Window]
2607
2618
  interface SharedWorker : EventTarget {
@@ -19,6 +19,8 @@ interface PerformanceLongAnimationFrameTiming : PerformanceEntry {
19
19
  [Default] object toJSON();
20
20
  };
21
21
 
22
+ PerformanceLongAnimationFrameTiming includes PaintTimingMixin;
23
+
22
24
  enum ScriptInvokerType {
23
25
  "classic-script",
24
26
  "module-script",
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.56.0",
4
+ "version": "3.56.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -14,7 +14,7 @@ partial interface AnimationTimeline {
14
14
  partial interface Animation {
15
15
  attribute CSSNumberish? startTime;
16
16
  attribute CSSNumberish? currentTime;
17
- readonly attribute double? progress;
17
+ readonly attribute double? overallProgress;
18
18
  };
19
19
 
20
20
  [Exposed=Window]
package/webgpu.idl CHANGED
@@ -81,6 +81,7 @@ dictionary GPURequestAdapterOptions {
81
81
  DOMString featureLevel = "core";
82
82
  GPUPowerPreference powerPreference;
83
83
  boolean forceFallbackAdapter = false;
84
+ boolean xrCompatible = false;
84
85
  };
85
86
 
86
87
  enum GPUPowerPreference {
package/webnn.idl CHANGED
@@ -33,6 +33,7 @@ interface ML {
33
33
  };
34
34
 
35
35
  typedef record<USVString, ArrayBufferView> MLNamedArrayBufferViews;
36
+ typedef record<USVString, MLTensor> MLNamedTensors;
36
37
 
37
38
  dictionary MLComputeResult {
38
39
  MLNamedArrayBufferViews inputs;
@@ -41,8 +42,17 @@ dictionary MLComputeResult {
41
42
 
42
43
  [SecureContext, Exposed=(Window, DedicatedWorker)]
43
44
  interface MLContext {
45
+ // ISSUE(791): compute() will soon be removed in favor of dispatch().
44
46
  Promise<MLComputeResult> compute(
45
47
  MLGraph graph, MLNamedArrayBufferViews inputs, MLNamedArrayBufferViews outputs);
48
+ undefined dispatch(MLGraph graph, MLNamedTensors inputs, MLNamedTensors outputs);
49
+
50
+ Promise<MLTensor> createTensor(MLTensorDescriptor descriptor);
51
+
52
+ Promise<ArrayBuffer> readTensor(MLTensor tensor);
53
+ Promise<undefined> readTensor(MLTensor tensor, AllowSharedBufferSource outputData);
54
+
55
+ undefined writeTensor(MLTensor tensor, AllowSharedBufferSource inputData);
46
56
 
47
57
  MLOpSupportLimits opSupportLimits();
48
58
  };
@@ -105,6 +115,21 @@ dictionary MLOperatorOptions {
105
115
 
106
116
  typedef (bigint or unrestricted double) MLNumber;
107
117
 
118
+ dictionary MLTensorDescriptor : MLOperandDescriptor {
119
+ boolean readable = false;
120
+ boolean writable = false;
121
+ };
122
+
123
+ [SecureContext, Exposed=(Window, DedicatedWorker)]
124
+ interface MLTensor {
125
+ readonly attribute MLOperandDataType dataType;
126
+ readonly attribute FrozenArray<unsigned long> shape;
127
+ readonly attribute boolean readable;
128
+ readonly attribute boolean writable;
129
+
130
+ undefined destroy();
131
+ };
132
+
108
133
  typedef record<USVString, MLOperand> MLNamedOperands;
109
134
 
110
135
  [SecureContext, Exposed=(Window, DedicatedWorker)]