@webref/idl 3.6.0 → 3.6.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.
@@ -1,40 +1,40 @@
1
1
  // GENERATED CONTENT - DO NOT EDIT
2
2
  // Content was automatically extracted by Reffy into webref
3
3
  // (https://github.com/w3c/webref)
4
- // Source: Compute Pressure API Level 1 (https://wicg.github.io/compute-pressure/)
4
+ // Source: Compute Pressure Level 1 (https://wicg.github.io/compute-pressure/)
5
5
 
6
- enum ComputePressureState { "nominal", "fair", "serious", "critical" };
6
+ enum PressureState { "nominal", "fair", "serious", "critical" };
7
7
 
8
- enum ComputePressureFactor { "thermal", "power-supply" };
8
+ enum PressureFactor { "thermal", "power-supply" };
9
9
 
10
- callback ComputePressureUpdateCallback = undefined (
11
- sequence<ComputePressureRecord> changes,
12
- ComputePressureObserver observer
10
+ callback PressureUpdateCallback = undefined (
11
+ sequence<PressureRecord> changes,
12
+ PressureObserver observer
13
13
  );
14
14
 
15
- enum ComputePressureSource { "cpu" };
15
+ enum PressureSource { "cpu" };
16
16
 
17
17
  [Exposed=(DedicatedWorker,SharedWorker,Window), SecureContext]
18
- interface ComputePressureObserver {
19
- constructor(ComputePressureUpdateCallback callback, optional ComputePressureObserverOptions options = {});
18
+ interface PressureObserver {
19
+ constructor(PressureUpdateCallback callback, optional PressureObserverOptions options = {});
20
20
 
21
- undefined observe(ComputePressureSource source);
22
- undefined unobserve(ComputePressureSource source);
21
+ undefined observe(PressureSource source);
22
+ undefined unobserve(PressureSource source);
23
23
  undefined disconnect();
24
- sequence<ComputePressureRecord> takeRecords();
24
+ sequence<PressureRecord> takeRecords();
25
25
 
26
- [SameObject] static readonly attribute FrozenArray<ComputePressureSource> supportedSources;
26
+ [SameObject] static readonly attribute FrozenArray<PressureSource> supportedSources;
27
27
 
28
28
  [Exposed=Window] static Promise<PermissionState> requestPermission();
29
29
  };
30
30
 
31
- dictionary ComputePressureRecord {
32
- ComputePressureSource source;
33
- ComputePressureState state;
34
- sequence<ComputePressureFactor> factors;
31
+ dictionary PressureRecord {
32
+ PressureSource source;
33
+ PressureState state;
34
+ sequence<PressureFactor> factors;
35
35
  DOMHighResTimeStamp time;
36
36
  };
37
37
 
38
- dictionary ComputePressureObserverOptions {
38
+ dictionary PressureObserverOptions {
39
39
  double frequency;
40
40
  };
@@ -4,15 +4,8 @@
4
4
  // Source: Local Font Access API (https://wicg.github.io/local-font-access/)
5
5
 
6
6
  [SecureContext]
7
- interface mixin NavigatorFonts {
8
- [SameObject] readonly attribute FontManager fonts;
9
- };
10
- Navigator includes NavigatorFonts;
11
-
12
- [SecureContext,
13
- Exposed=Window]
14
- interface FontManager {
15
- Promise<sequence<FontData>> query(optional QueryOptions options = {});
7
+ partial interface Window {
8
+ Promise<sequence<FontData>> queryLocalFonts(optional QueryOptions options = {});
16
9
  };
17
10
 
18
11
  dictionary QueryOptions {
@@ -39,6 +39,7 @@ dictionary VideoConfiguration {
39
39
  ColorGamut colorGamut;
40
40
  TransferFunction transferFunction;
41
41
  DOMString scalabilityMode;
42
+ boolean spatialScalability;
42
43
  };
43
44
 
44
45
  enum HdrMetadataType {
@@ -3,14 +3,14 @@
3
3
  // (https://github.com/w3c/webref)
4
4
  // Source: Region Capture (https://w3c.github.io/mediacapture-region/)
5
5
 
6
- [Exposed=(Window,Worker)]
6
+ [Exposed=(Window,Worker), Serializable]
7
7
  interface CropTarget {
8
8
  // Intentionally empty; just an opaque identifier.
9
9
  };
10
10
 
11
11
  partial interface MediaDevices {
12
12
  Promise<CropTarget>
13
- produceCropTarget(HTMLElement element);
13
+ produceCropTarget(Element element);
14
14
  };
15
15
 
16
16
  [Exposed = Window]
@@ -62,18 +62,18 @@ enum NavigationHistoryBehavior {
62
62
  interface NavigationCurrentEntryChangeEvent : Event {
63
63
  constructor(DOMString type, NavigationCurrentEntryChangeEventInit eventInit);
64
64
 
65
- readonly attribute NavigationNavigationType? navigationType;
65
+ readonly attribute NavigationType? navigationType;
66
66
  readonly attribute NavigationHistoryEntry from;
67
67
  };
68
68
 
69
69
  dictionary NavigationCurrentEntryChangeEventInit : EventInit {
70
- NavigationNavigationType? navigationType = null;
70
+ NavigationType? navigationType = null;
71
71
  required NavigationHistoryEntry destination;
72
72
  };
73
73
 
74
74
  [Exposed=Window]
75
75
  interface NavigationTransition {
76
- readonly attribute NavigationNavigationType navigationType;
76
+ readonly attribute NavigationType navigationType;
77
77
  readonly attribute NavigationHistoryEntry from;
78
78
  readonly attribute Promise<undefined> finished;
79
79
 
@@ -84,7 +84,7 @@ interface NavigationTransition {
84
84
  interface NavigateEvent : Event {
85
85
  constructor(DOMString type, NavigateEventInit eventInit);
86
86
 
87
- readonly attribute NavigationNavigationType navigationType;
87
+ readonly attribute NavigationType navigationType;
88
88
  readonly attribute NavigationDestination destination;
89
89
  readonly attribute boolean canTransition;
90
90
  readonly attribute boolean userInitiated;
@@ -94,11 +94,13 @@ interface NavigateEvent : Event {
94
94
  readonly attribute DOMString? downloadRequest;
95
95
  readonly attribute any info;
96
96
 
97
- undefined transitionWhile(Promise<undefined> newNavigationAction);
97
+ undefined transitionWhile(Promise<undefined> newNavigationAction,
98
+ optional NavigationTransitionWhileOptions options = {});
99
+ undefined restoreScroll();
98
100
  };
99
101
 
100
102
  dictionary NavigateEventInit : EventInit {
101
- NavigationNavigationType navigationType = "push";
103
+ NavigationType navigationType = "push";
102
104
  required NavigationDestination destination;
103
105
  boolean canTransition = false;
104
106
  boolean userInitiated = false;
@@ -109,8 +111,22 @@ dictionary NavigateEventInit : EventInit {
109
111
  any info;
110
112
  };
111
113
 
112
- // TODO: rename to NavigationType after https://github.com/w3c/navigation-timing/pull/172 lands.
113
- enum NavigationNavigationType {
114
+ dictionary NavigationTransitionWhileOptions {
115
+ NavigationFocusReset focusReset;
116
+ NavigationScrollRestoration scrollRestoration;
117
+ };
118
+
119
+ enum NavigationFocusReset {
120
+ "after-transition",
121
+ "manual"
122
+ };
123
+
124
+ enum NavigationScrollRestoration {
125
+ "after-transition",
126
+ "manual"
127
+ };
128
+
129
+ enum NavigationType {
114
130
  "reload",
115
131
  "push",
116
132
  "replace",
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.6.0",
4
+ "version": "3.6.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
package/reporting.idl CHANGED
@@ -1,7 +1,7 @@
1
1
  // GENERATED CONTENT - DO NOT EDIT
2
2
  // Content was automatically extracted by Reffy into webref
3
3
  // (https://github.com/w3c/webref)
4
- // Source: Reporting API 1 (https://w3c.github.io/reporting/)
4
+ // Source: Reporting API (https://w3c.github.io/reporting/)
5
5
 
6
6
  [Exposed=(Window,Worker)]
7
7
  interface ReportBody {
package/webgpu.idl CHANGED
@@ -890,8 +890,8 @@ interface mixin GPUDebugCommandsMixin {
890
890
  [Exposed=(Window, DedicatedWorker), SecureContext]
891
891
  interface GPUComputePassEncoder {
892
892
  undefined setPipeline(GPUComputePipeline pipeline);
893
- undefined dispatch(GPUSize32 workgroupCountX, optional GPUSize32 workgroupCountY = 1, optional GPUSize32 workgroupCountZ = 1);
894
- undefined dispatchIndirect(GPUBuffer indirectBuffer, GPUSize64 indirectOffset);
893
+ undefined dispatchWorkgroups(GPUSize32 workgroupCountX, optional GPUSize32 workgroupCountY = 1, optional GPUSize32 workgroupCountZ = 1);
894
+ undefined dispatchWorkgroupsIndirect(GPUBuffer indirectBuffer, GPUSize64 indirectOffset);
895
895
 
896
896
  undefined end();
897
897
  };
package/webtransport.idl CHANGED
@@ -21,6 +21,7 @@ interface WebTransport {
21
21
 
22
22
  Promise<WebTransportStats> getStats();
23
23
  readonly attribute Promise<undefined> ready;
24
+ readonly attribute WebTransportReliabilityMode reliability;
24
25
  readonly attribute Promise<WebTransportCloseInfo> closed;
25
26
  undefined close(optional WebTransportCloseInfo closeInfo = {});
26
27
 
@@ -35,13 +36,20 @@ interface WebTransport {
35
36
  readonly attribute ReadableStream incomingUnidirectionalStreams;
36
37
  };
37
38
 
39
+ enum WebTransportReliabilityMode {
40
+ "pending",
41
+ "reliable-only",
42
+ "supports-unreliable",
43
+ };
44
+
38
45
  dictionary WebTransportHash {
39
46
  DOMString algorithm;
40
47
  BufferSource value;
41
48
  };
42
49
 
43
50
  dictionary WebTransportOptions {
44
- boolean allowPooling;
51
+ boolean allowPooling = false;
52
+ boolean requireUnreliable = false;
45
53
  sequence<WebTransportHash> serverCertificateHashes;
46
54
  };
47
55
 
@@ -62,7 +70,14 @@ dictionary WebTransportStats {
62
70
  DOMHighResTimeStamp smoothedRtt;
63
71
  DOMHighResTimeStamp rttVariation;
64
72
  DOMHighResTimeStamp minRtt;
65
- unsigned long numReceivedDatagramsDropped;
73
+ WebTransportDatagramStats datagrams;
74
+ };
75
+
76
+ dictionary WebTransportDatagramStats {
77
+ DOMHighResTimeStamp timestamp;
78
+ unsigned long long expiredOutgoing;
79
+ unsigned long long droppedIncoming;
80
+ unsigned long long lostOutgoing;
66
81
  };
67
82
 
68
83
  [Exposed=(Window,Worker), SecureContext]