@webref/idl 3.34.3 → 3.35.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/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);
@@ -15,6 +15,7 @@ interface PerformanceNavigationTiming : PerformanceResourceTiming {
15
15
  readonly attribute DOMHighResTimeStamp loadEventEnd;
16
16
  readonly attribute NavigationTimingType type;
17
17
  readonly attribute unsigned short redirectCount;
18
+ readonly attribute DOMHighResTimeStamp criticalCHRestart;
18
19
  [Default] object toJSON();
19
20
  };
20
21
 
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.3",
4
+ "version": "3.35.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -6,8 +6,8 @@
6
6
  enum ScrollAxis {
7
7
  "block",
8
8
  "inline",
9
- "horizontal",
10
- "vertical"
9
+ "x",
10
+ "y"
11
11
  };
12
12
 
13
13
  dictionary ScrollTimelineOptions {
@@ -35,12 +35,3 @@ interface ViewTimeline : ScrollTimeline {
35
35
  readonly attribute CSSNumericValue startOffset;
36
36
  readonly attribute CSSNumericValue endOffset;
37
37
  };
38
-
39
- dictionary AnimationTimeOptions {
40
- DOMString? range;
41
- };
42
-
43
- [Exposed=Window]
44
- partial interface AnimationTimeline {
45
- CSSNumericValue? getCurrentTime(optional AnimationTimeOptions options = {});
46
- };
package/streams.idl CHANGED
@@ -7,6 +7,8 @@
7
7
  interface ReadableStream {
8
8
  constructor(optional object underlyingSource, optional QueuingStrategy strategy = {});
9
9
 
10
+ static ReadableStream from(any asyncIterable);
11
+
10
12
  readonly attribute boolean locked;
11
13
 
12
14
  Promise<undefined> cancel(optional any reason);
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 {
@@ -16,6 +16,7 @@ dictionary AuctionAd {
16
16
  dictionary AuctionAdInterestGroup {
17
17
  required USVString owner;
18
18
  required USVString name;
19
+ required double lifetimeMs;
19
20
 
20
21
  double priority = 0.0;
21
22
  boolean enableBiddingSignalsPrioritization = false;
@@ -35,7 +36,7 @@ dictionary AuctionAdInterestGroup {
35
36
 
36
37
  [SecureContext]
37
38
  partial interface Navigator {
38
- Promise<undefined> leaveAdInterestGroup(AuctionAdInterestGroupKey group);
39
+ Promise<undefined> leaveAdInterestGroup(optional AuctionAdInterestGroupKey group = {});
39
40
  };
40
41
 
41
42
  dictionary AuctionAdInterestGroupKey {
@@ -45,7 +46,7 @@ dictionary AuctionAdInterestGroupKey {
45
46
 
46
47
  [SecureContext]
47
48
  partial interface Navigator {
48
- Promise<USVString?> runAdAuction(AuctionAdConfig config);
49
+ Promise<(USVString or FencedFrameConfig)?> runAdAuction(AuctionAdConfig config);
49
50
  };
50
51
 
51
52
  dictionary AuctionAdConfig {
@@ -65,6 +66,7 @@ dictionary AuctionAdConfig {
65
66
  record<USVString, record<USVString, double>> perBuyerPrioritySignals;
66
67
  sequence<AuctionAdConfig> componentAuctions = [];
67
68
  AbortSignal? signal;
69
+ Promise<boolean> resolveToConfig;
68
70
  };
69
71
 
70
72
  [Exposed=InterestGroupScriptRunnerGlobalScope]
@@ -118,3 +120,9 @@ dictionary GenerateBidOutput {
118
120
  partial interface Navigator {
119
121
  undefined updateAdInterestGroups();
120
122
  };
123
+
124
+ dictionary ScoreAdOutput {
125
+ required double desirability;
126
+ double bid;
127
+ boolean allowComponentAuction = false;
128
+ };
@@ -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]
@@ -604,7 +604,7 @@ interface GPUCompilationInfo {
604
604
 
605
605
  [Exposed=(Window, DedicatedWorker), SecureContext, Serializable]
606
606
  interface GPUPipelineError : DOMException {
607
- constructor((DOMString or undefined) message, GPUPipelineErrorInit options);
607
+ constructor(optional DOMString message = "", GPUPipelineErrorInit options);
608
608
  readonly attribute GPUPipelineErrorReason reason;
609
609
  };
610
610
 
@@ -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;