@webref/idl 3.34.4 → 3.35.1

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/FedCM.idl CHANGED
@@ -12,14 +12,23 @@ partial dictionary CredentialRequestOptions {
12
12
  IdentityCredentialRequestOptions identity;
13
13
  };
14
14
 
15
+ enum IdentityCredentialRequestOptionsContext {
16
+ "signin",
17
+ "signup",
18
+ "use",
19
+ "continue"
20
+ };
21
+
15
22
  dictionary IdentityCredentialRequestOptions {
16
23
  sequence<IdentityProviderConfig> providers;
24
+ IdentityCredentialRequestOptionsContext context = "signin";
17
25
  };
18
26
 
19
27
  dictionary IdentityProviderConfig {
20
28
  required USVString configURL;
21
29
  required USVString clientId;
22
30
  USVString nonce;
31
+ DOMString loginHint;
23
32
  };
24
33
 
25
34
  dictionary IdentityProviderWellKnown {
@@ -52,6 +61,7 @@ dictionary IdentityProviderAccount {
52
61
  USVString given_name;
53
62
  USVString picture;
54
63
  sequence<USVString> approved_clients;
64
+ sequence<DOMString> login_hints;
55
65
  };
56
66
  dictionary IdentityProviderAccountList {
57
67
  sequence<IdentityProviderAccount> accounts;
@@ -65,3 +75,14 @@ dictionary IdentityProviderClientMetadata {
65
75
  USVString privacy_policy_url;
66
76
  USVString terms_of_service_url;
67
77
  };
78
+
79
+ dictionary IdentityUserInfo {
80
+ USVString email;
81
+ USVString name;
82
+ USVString givenName;
83
+ USVString picture;
84
+ };
85
+
86
+ [Exposed=Window, SecureContext] interface IdentityProvider {
87
+ static Promise<sequence<IdentityUserInfo>> getUserInfo(IdentityProviderConfig config);
88
+ };
@@ -20,10 +20,9 @@ interface DocumentPictureInPicture : EventTarget {
20
20
  dictionary DocumentPictureInPictureOptions {
21
21
  [EnforceRange] unsigned long long width = 0;
22
22
  [EnforceRange] unsigned long long height = 0;
23
- boolean copyStyleSheets = false;
24
23
  };
25
24
 
26
- [Exposed=Window]
25
+ [Exposed=Window, SecureContext]
27
26
  interface DocumentPictureInPictureEvent : Event {
28
27
  constructor(DOMString type, DocumentPictureInPictureEventInit eventInitDict);
29
28
  [SameObject] readonly attribute Window window;
package/encoding.idl CHANGED
@@ -22,7 +22,7 @@ dictionary TextDecodeOptions {
22
22
  interface TextDecoder {
23
23
  constructor(optional DOMString label = "utf-8", optional TextDecoderOptions options = {});
24
24
 
25
- USVString decode(optional [AllowShared] BufferSource input, optional TextDecodeOptions options = {});
25
+ USVString decode(optional AllowSharedBufferSource input, optional TextDecodeOptions options = {});
26
26
  };
27
27
  TextDecoder includes TextDecoderCommon;
28
28
 
package/fs.idl CHANGED
@@ -80,9 +80,9 @@ dictionary FileSystemReadWriteOptions {
80
80
 
81
81
  [Exposed=DedicatedWorker, SecureContext]
82
82
  interface FileSystemSyncAccessHandle {
83
- unsigned long long read([AllowShared] BufferSource buffer,
83
+ unsigned long long read(AllowSharedBufferSource buffer,
84
84
  optional FileSystemReadWriteOptions options = {});
85
- unsigned long long write([AllowShared] BufferSource buffer,
85
+ unsigned long long write(AllowSharedBufferSource buffer,
86
86
  optional FileSystemReadWriteOptions options = {});
87
87
 
88
88
  undefined truncate([EnforceRange] unsigned long long newSize);
package/html.idl CHANGED
@@ -131,7 +131,7 @@ interface HTMLElement : Element {
131
131
  // The popover API
132
132
  undefined showPopover();
133
133
  undefined hidePopover();
134
- undefined togglePopover(optional boolean force);
134
+ boolean togglePopover(optional boolean force);
135
135
  [CEReactions] attribute DOMString? popover;
136
136
  };
137
137
 
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.34.4",
4
+ "version": "3.35.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -16,6 +16,10 @@ dictionary SecurePaymentConfirmationRequest {
16
16
  boolean showOptOut;
17
17
  };
18
18
 
19
+ partial interface PaymentRequest {
20
+ static Promise<boolean> isSecurePaymentConfirmationAvailable();
21
+ };
22
+
19
23
  partial dictionary AuthenticationExtensionsClientInputs {
20
24
  AuthenticationExtensionsPaymentInputs payment;
21
25
  };
package/turtledove.idl CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  [SecureContext]
7
7
  partial interface Navigator {
8
- Promise<undefined> joinAdInterestGroup(AuctionAdInterestGroup group, double durationSeconds);
8
+ Promise<undefined> joinAdInterestGroup(AuctionAdInterestGroup group);
9
9
  };
10
10
 
11
11
  dictionary AuctionAd {
@@ -13,14 +13,13 @@ dictionary AuctionAd {
13
13
  any metadata;
14
14
  };
15
15
 
16
- dictionary AuctionAdInterestGroup {
16
+ dictionary GenerateBidInterestGroup {
17
17
  required USVString owner;
18
18
  required USVString name;
19
+ required double lifetimeMs;
19
20
 
20
- double priority = 0.0;
21
21
  boolean enableBiddingSignalsPrioritization = false;
22
22
  record<DOMString, double> priorityVector;
23
- record<DOMString, double> prioritySignalsOverrides;
24
23
 
25
24
  DOMString executionMode = "compatibility";
26
25
  USVString biddingLogicURL;
@@ -33,9 +32,14 @@ dictionary AuctionAdInterestGroup {
33
32
  sequence<AuctionAd> adComponents;
34
33
  };
35
34
 
35
+ dictionary AuctionAdInterestGroup : GenerateBidInterestGroup {
36
+ double priority = 0.0;
37
+ record<DOMString, double> prioritySignalsOverrides;
38
+ };
39
+
36
40
  [SecureContext]
37
41
  partial interface Navigator {
38
- Promise<undefined> leaveAdInterestGroup(AuctionAdInterestGroupKey group);
42
+ Promise<undefined> leaveAdInterestGroup(optional AuctionAdInterestGroupKey group = {});
39
43
  };
40
44
 
41
45
  dictionary AuctionAdInterestGroupKey {
@@ -45,7 +49,7 @@ dictionary AuctionAdInterestGroupKey {
45
49
 
46
50
  [SecureContext]
47
51
  partial interface Navigator {
48
- Promise<USVString?> runAdAuction(AuctionAdConfig config);
52
+ Promise<(USVString or FencedFrameConfig)?> runAdAuction(AuctionAdConfig config);
49
53
  };
50
54
 
51
55
  dictionary AuctionAdConfig {
@@ -53,18 +57,21 @@ dictionary AuctionAdConfig {
53
57
  required USVString decisionLogicURL;
54
58
  USVString trustedScoringSignalsURL;
55
59
  sequence<USVString> interestGroupBuyers;
56
- any auctionSignals;
60
+ Promise<any> auctionSignals;
57
61
  any sellerSignals;
58
62
  USVString directFromSellerSignals;
59
63
  unsigned long long sellerTimeout;
60
64
  unsigned short sellerExperimentGroupId;
61
- record<USVString, any> perBuyerSignals;
65
+ USVString sellerCurrency;
66
+ Promise<record<USVString, any>> perBuyerSignals;
62
67
  record<USVString, unsigned long long> perBuyerTimeouts;
63
68
  record<USVString, unsigned short> perBuyerGroupLimits;
64
69
  record<USVString, unsigned short> perBuyerExperimentGroupIds;
65
70
  record<USVString, record<USVString, double>> perBuyerPrioritySignals;
71
+ record<USVString, USVString> perBuyerCurrencies;
66
72
  sequence<AuctionAdConfig> componentAuctions = [];
67
73
  AbortSignal? signal;
74
+ Promise<boolean> resolveToConfig;
68
75
  };
69
76
 
70
77
  [Exposed=InterestGroupScriptRunnerGlobalScope]
@@ -82,6 +89,23 @@ interface InterestGroupBiddingScriptRunnerGlobalScope
82
89
  undefined setPrioritySignalsOverride(DOMString key, double priority);
83
90
  };
84
91
 
92
+ dictionary AdRender {
93
+ required DOMString url;
94
+ required DOMString width;
95
+ required DOMString height;
96
+ };
97
+
98
+ dictionary GenerateBidOutput {
99
+ required double bid;
100
+ DOMString bidCurrency;
101
+ required (DOMString or AdRender) adRender;
102
+ any ad;
103
+ sequence<(DOMString or AdRender)> adComponents;
104
+ double adCost;
105
+ double modelingSignals;
106
+ boolean allowComponentAuction = false;
107
+ };
108
+
85
109
  [Exposed=InterestGroupScoringScriptRunnerGlobalScope,
86
110
  Global=(InterestGroupScriptRunnerGlobalScope,
87
111
  InterestGroupScoringScriptRunnerGlobalScope)]
@@ -98,23 +122,38 @@ interface InterestGroupReportingScriptRunnerGlobalScope
98
122
  undefined registerAdBeacon(record<DOMString, USVString> map);
99
123
  };
100
124
 
101
- dictionary AdRender {
102
- required DOMString url;
103
- required DOMString width;
104
- required DOMString height;
105
- };
106
-
107
- dictionary GenerateBidOutput {
108
- required double bid;
109
- required (DOMString or AdRender) adRender;
110
- any ad;
111
- sequence<(DOMString or AdRender)> adComponents;
112
- double adCost;
113
- double modelingSignals;
114
- boolean allowComponentAuction = false;
125
+ dictionary ReportResultOutput {
126
+ DOMString signalsForWinner;
127
+ USVString reportUrl;
128
+ any reportingBeaconMap;
115
129
  };
116
130
 
117
131
  [SecureContext]
118
132
  partial interface Navigator {
119
133
  undefined updateAdInterestGroups();
120
134
  };
135
+
136
+ dictionary PreviousWin {
137
+ required long long timeDelta;
138
+ required DOMString adJSON;
139
+ };
140
+
141
+ dictionary BiddingBrowserSignals {
142
+ required DOMString topWindowHostname;
143
+ required USVString seller;
144
+ required long joinCount;
145
+ required long bidCount;
146
+
147
+ USVString topLevelSeller;
148
+ sequence<PreviousWin> prevWinsMs;
149
+ object wasmHelper;
150
+ unsigned long dataVersion;
151
+ };
152
+
153
+ dictionary ScoreAdOutput {
154
+ required double desirability;
155
+ double bid;
156
+ DOMString bidCurrency;
157
+ double incomingBidInSellerCurrency;
158
+ boolean allowComponentAuction = false;
159
+ };
@@ -18,29 +18,29 @@ interface DocumentTimeline : AnimationTimeline {
18
18
 
19
19
  [Exposed=Window]
20
20
  interface Animation : EventTarget {
21
- constructor(optional AnimationEffect? effect = null,
22
- optional AnimationTimeline? timeline);
23
- attribute DOMString id;
24
- attribute AnimationEffect? effect;
25
- attribute AnimationTimeline? timeline;
26
- attribute double playbackRate;
27
- readonly attribute AnimationPlayState playState;
28
- readonly attribute AnimationReplaceState replaceState;
29
- readonly attribute boolean pending;
30
- readonly attribute Promise<Animation> ready;
31
- readonly attribute Promise<Animation> finished;
32
- attribute EventHandler onfinish;
33
- attribute EventHandler oncancel;
34
- attribute EventHandler onremove;
35
- undefined cancel();
36
- undefined finish();
37
- undefined play();
38
- undefined pause();
39
- undefined updatePlaybackRate(double playbackRate);
40
- undefined reverse();
41
- undefined persist();
42
- [CEReactions]
43
- undefined commitStyles();
21
+ constructor(optional AnimationEffect? effect = null,
22
+ optional AnimationTimeline? timeline);
23
+ attribute DOMString id;
24
+ attribute AnimationEffect? effect;
25
+ attribute AnimationTimeline? timeline;
26
+ attribute double playbackRate;
27
+ readonly attribute AnimationPlayState playState;
28
+ readonly attribute AnimationReplaceState replaceState;
29
+ readonly attribute boolean pending;
30
+ readonly attribute Promise<Animation> ready;
31
+ readonly attribute Promise<Animation> finished;
32
+ attribute EventHandler onfinish;
33
+ attribute EventHandler oncancel;
34
+ attribute EventHandler onremove;
35
+ undefined cancel();
36
+ undefined finish();
37
+ undefined play();
38
+ undefined pause();
39
+ undefined updatePlaybackRate(double playbackRate);
40
+ undefined reverse();
41
+ undefined persist();
42
+ [CEReactions]
43
+ undefined commitStyles();
44
44
  };
45
45
 
46
46
  enum AnimationPlayState { "idle", "running", "paused", "finished" };
@@ -55,22 +55,22 @@ interface AnimationEffect {
55
55
  };
56
56
 
57
57
  dictionary EffectTiming {
58
- FillMode fill = "auto";
59
- double iterationStart = 0.0;
60
- unrestricted double iterations = 1.0;
61
- PlaybackDirection direction = "normal";
62
- DOMString easing = "linear";
58
+ FillMode fill = "auto";
59
+ double iterationStart = 0.0;
60
+ unrestricted double iterations = 1.0;
61
+ PlaybackDirection direction = "normal";
62
+ DOMString easing = "linear";
63
63
  };
64
64
 
65
65
  dictionary OptionalEffectTiming {
66
- double delay;
67
- double endDelay;
68
- FillMode fill;
69
- double iterationStart;
70
- unrestricted double iterations;
71
- (unrestricted double or DOMString) duration;
72
- PlaybackDirection direction;
73
- DOMString easing;
66
+ double delay;
67
+ double endDelay;
68
+ FillMode fill;
69
+ double iterationStart;
70
+ unrestricted double iterations;
71
+ (unrestricted double or DOMString) duration;
72
+ PlaybackDirection direction;
73
+ DOMString easing;
74
74
  };
75
75
 
76
76
  enum FillMode { "none", "forwards", "backwards", "both", "auto" };
@@ -78,21 +78,21 @@ enum FillMode { "none", "forwards", "backwards", "both", "auto" };
78
78
  enum PlaybackDirection { "normal", "reverse", "alternate", "alternate-reverse" };
79
79
 
80
80
  dictionary ComputedEffectTiming : EffectTiming {
81
- double? progress;
82
- unrestricted double? currentIteration;
81
+ double? progress;
82
+ unrestricted double? currentIteration;
83
83
  };
84
84
 
85
85
  [Exposed=Window]
86
86
  interface KeyframeEffect : AnimationEffect {
87
- constructor(Element? target,
88
- object? keyframes,
89
- optional (unrestricted double or KeyframeEffectOptions) options = {});
90
- constructor(KeyframeEffect source);
91
- attribute Element? target;
92
- attribute CSSOMString? pseudoElement;
93
- attribute CompositeOperation composite;
94
- sequence<object> getKeyframes();
95
- undefined setKeyframes(object? keyframes);
87
+ constructor(Element? target,
88
+ object? keyframes,
89
+ optional (unrestricted double or KeyframeEffectOptions) options = {});
90
+ constructor(KeyframeEffect source);
91
+ attribute Element? target;
92
+ attribute CSSOMString? pseudoElement;
93
+ attribute CompositeOperation composite;
94
+ sequence<object> getKeyframes();
95
+ undefined setKeyframes(object? keyframes);
96
96
  };
97
97
 
98
98
  dictionary BaseComputedKeyframe {
@@ -103,15 +103,15 @@ dictionary BaseComputedKeyframe {
103
103
  };
104
104
 
105
105
  dictionary BasePropertyIndexedKeyframe {
106
- (double? or sequence<double?>) offset = [];
107
- (DOMString or sequence<DOMString>) easing = [];
108
- (CompositeOperationOrAuto or sequence<CompositeOperationOrAuto>) composite = [];
106
+ (double? or sequence<double?>) offset = [];
107
+ (DOMString or sequence<DOMString>) easing = [];
108
+ (CompositeOperationOrAuto or sequence<CompositeOperationOrAuto>) composite = [];
109
109
  };
110
110
 
111
111
  dictionary BaseKeyframe {
112
- double? offset = null;
113
- DOMString easing = "linear";
114
- CompositeOperationOrAuto composite = "auto";
112
+ double? offset = null;
113
+ DOMString easing = "linear";
114
+ CompositeOperationOrAuto composite = "auto";
115
115
  };
116
116
 
117
117
  dictionary KeyframeEffectOptions : EffectTiming {
package/webcodecs.idl CHANGED
@@ -365,6 +365,8 @@ dictionary VideoFrameBufferInit {
365
365
  [EnforceRange] unsigned long displayHeight;
366
366
 
367
367
  VideoColorSpaceInit colorSpace;
368
+
369
+ sequence<ArrayBuffer> transfer = [];
368
370
  };
369
371
 
370
372
  dictionary VideoFrameMetadata {
package/webgpu.idl CHANGED
@@ -8,7 +8,7 @@ interface mixin GPUObjectBase {
8
8
  };
9
9
 
10
10
  dictionary GPUObjectDescriptorBase {
11
- USVString label;
11
+ USVString label = "";
12
12
  };
13
13
 
14
14
  [Exposed=(Window, DedicatedWorker), SecureContext]
@@ -876,8 +876,14 @@ dictionary GPUImageCopyTextureTagged
876
876
  boolean premultipliedAlpha = false;
877
877
  };
878
878
 
879
+ typedef (ImageBitmap or
880
+ HTMLVideoElement or
881
+ VideoFrame or
882
+ HTMLCanvasElement or
883
+ OffscreenCanvas) GPUImageCopyExternalImageSource;
884
+
879
885
  dictionary GPUImageCopyExternalImage {
880
- required (ImageBitmap or HTMLVideoElement or HTMLCanvasElement or OffscreenCanvas) source;
886
+ required GPUImageCopyExternalImageSource source;
881
887
  GPUOrigin2D origin = {};
882
888
  boolean flipY = false;
883
889
  };
package/webidl.idl CHANGED
@@ -9,6 +9,7 @@ typedef (Int8Array or Int16Array or Int32Array or
9
9
  Float32Array or Float64Array or DataView) ArrayBufferView;
10
10
 
11
11
  typedef (ArrayBufferView or ArrayBuffer) BufferSource;
12
+ typedef (ArrayBuffer or SharedArrayBuffer or [AllowShared] ArrayBufferView) AllowSharedBufferSource;
12
13
  [Exposed=*,
13
14
  Serializable]
14
15
  interface DOMException { // but see below note about ECMAScript binding
package/webrtc-stats.idl CHANGED
@@ -65,6 +65,7 @@ dictionary RTCInboundRtpStreamStats : RTCReceivedRtpStreamStats {
65
65
  DOMHighResTimeStamp lastPacketReceivedTimestamp;
66
66
  unsigned long long headerBytesReceived;
67
67
  unsigned long long packetsDiscarded;
68
+ unsigned long long fecBytesReceived;
68
69
  unsigned long long fecPacketsReceived;
69
70
  unsigned long long fecPacketsDiscarded;
70
71
  unsigned long long bytesReceived;
package/webusb.idl CHANGED
@@ -14,6 +14,7 @@ dictionary USBDeviceFilter {
14
14
 
15
15
  dictionary USBDeviceRequestOptions {
16
16
  required sequence<USBDeviceFilter> filters;
17
+ sequence<USBDeviceFilter> exclusionFilters;
17
18
  };
18
19
 
19
20
  [Exposed=(Worker,Window), SecureContext]
@@ -231,6 +232,7 @@ interface USBEndpoint {
231
232
 
232
233
  dictionary USBPermissionDescriptor : PermissionDescriptor {
233
234
  sequence<USBDeviceFilter> filters;
235
+ sequence<USBDeviceFilter> exclusionFilters;
234
236
  };
235
237
 
236
238
  dictionary AllowedUSBDevice {