@webref/idl 3.29.0 → 3.31.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.
Files changed (292) hide show
  1. package/ANGLE_instanced_arrays.idl +12 -0
  2. package/CSP.idl +56 -0
  3. package/DOM-Parsing.idl +26 -0
  4. package/EXT_blend_minmax.idl +10 -0
  5. package/EXT_color_buffer_float.idl +8 -0
  6. package/EXT_color_buffer_half_float.idl +12 -0
  7. package/EXT_disjoint_timer_query.idl +30 -0
  8. package/EXT_disjoint_timer_query_webgl2.idl +14 -0
  9. package/EXT_float_blend.idl +8 -0
  10. package/EXT_frag_depth.idl +8 -0
  11. package/EXT_sRGB.idl +12 -0
  12. package/EXT_shader_texture_lod.idl +8 -0
  13. package/EXT_texture_compression_bptc.idl +12 -0
  14. package/EXT_texture_compression_rgtc.idl +12 -0
  15. package/EXT_texture_filter_anisotropic.idl +10 -0
  16. package/EXT_texture_norm16.idl +16 -0
  17. package/FedCM.idl +67 -0
  18. package/FileAPI.idl +100 -0
  19. package/IndexedDB.idl +226 -0
  20. package/KHR_parallel_shader_compile.idl +9 -0
  21. package/OES_draw_buffers_indexed.idl +26 -0
  22. package/OES_element_index_uint.idl +8 -0
  23. package/OES_fbo_render_mipmap.idl +8 -0
  24. package/OES_standard_derivatives.idl +9 -0
  25. package/OES_texture_float.idl +7 -0
  26. package/OES_texture_float_linear.idl +7 -0
  27. package/OES_texture_half_float.idl +9 -0
  28. package/OES_texture_half_float_linear.idl +7 -0
  29. package/OES_vertex_array_object.idl +18 -0
  30. package/OVR_multiview2.idl +14 -0
  31. package/SVG.idl +693 -0
  32. package/WEBGL_blend_equation_advanced_coherent.idl +23 -0
  33. package/WEBGL_clip_cull_distance.idl +20 -0
  34. package/WEBGL_color_buffer_float.idl +11 -0
  35. package/WEBGL_compressed_texture_astc.idl +41 -0
  36. package/WEBGL_compressed_texture_etc.idl +19 -0
  37. package/WEBGL_compressed_texture_etc1.idl +10 -0
  38. package/WEBGL_compressed_texture_pvrtc.idl +13 -0
  39. package/WEBGL_compressed_texture_s3tc.idl +13 -0
  40. package/WEBGL_compressed_texture_s3tc_srgb.idl +13 -0
  41. package/WEBGL_debug_renderer_info.idl +12 -0
  42. package/WEBGL_debug_shaders.idl +11 -0
  43. package/WEBGL_depth_texture.idl +9 -0
  44. package/WEBGL_draw_buffers.idl +46 -0
  45. package/WEBGL_draw_instanced_base_vertex_base_instance.idl +14 -0
  46. package/WEBGL_lose_context.idl +10 -0
  47. package/WEBGL_multi_draw.idl +32 -0
  48. package/WEBGL_multi_draw_instanced_base_vertex_base_instance.idl +26 -0
  49. package/WEBGL_provoking_vertex.idl +13 -0
  50. package/WebCryptoAPI.idl +237 -0
  51. package/accelerometer.idl +40 -0
  52. package/ambient-light.idl +14 -0
  53. package/anchors.idl +37 -0
  54. package/attribution-reporting-api.idl +12 -0
  55. package/audio-output.idl +17 -0
  56. package/autoplay-detection.idl +19 -0
  57. package/background-fetch.idl +89 -0
  58. package/background-sync.idl +30 -0
  59. package/badging.idl +15 -0
  60. package/battery-status.idl +21 -0
  61. package/beacon.idl +8 -0
  62. package/capture-handle-identity.idl +27 -0
  63. package/clipboard-apis.idl +51 -0
  64. package/close-watcher.idl +19 -0
  65. package/compat.idl +13 -0
  66. package/compression.idl +22 -0
  67. package/compute-pressure.idl +37 -0
  68. package/console.idl +34 -0
  69. package/contact-picker.idl +44 -0
  70. package/content-index.idl +46 -0
  71. package/cookie-store.idl +110 -0
  72. package/crash-reporting.idl +10 -0
  73. package/credential-management.idl +105 -0
  74. package/csp-embedded-enforcement.idl +8 -0
  75. package/csp-next.idl +21 -0
  76. package/css-animation-worklet.idl +37 -0
  77. package/css-animations-2.idl +9 -0
  78. package/css-animations.idl +47 -0
  79. package/css-cascade-6.idl +10 -0
  80. package/css-cascade.idl +18 -0
  81. package/css-color-5.idl +12 -0
  82. package/css-conditional.idl +27 -0
  83. package/css-contain-3.idl +10 -0
  84. package/css-contain.idl +13 -0
  85. package/css-counter-styles.idl +23 -0
  86. package/css-font-loading.idl +134 -0
  87. package/css-fonts.idl +36 -0
  88. package/css-highlight-api.idl +27 -0
  89. package/css-images-4.idl +8 -0
  90. package/css-layout-api.idl +144 -0
  91. package/css-masking.idl +20 -0
  92. package/css-nav.idl +48 -0
  93. package/css-nesting.idl +10 -0
  94. package/css-paint-api.idl +39 -0
  95. package/css-parser-api.idl +76 -0
  96. package/css-properties-values-api.idl +23 -0
  97. package/css-pseudo.idl +16 -0
  98. package/css-regions.idl +29 -0
  99. package/css-shadow-parts.idl +8 -0
  100. package/css-transitions-2.idl +9 -0
  101. package/css-transitions.idl +25 -0
  102. package/css-typed-om.idl +423 -0
  103. package/css-view-transitions.idl +18 -0
  104. package/cssom-view.idl +200 -0
  105. package/cssom.idl +159 -0
  106. package/custom-state-pseudo-class.idl +14 -0
  107. package/datacue.idl +12 -0
  108. package/deprecation-reporting.idl +15 -0
  109. package/device-memory.idl +14 -0
  110. package/device-posture.idl +21 -0
  111. package/digital-goods.idl +44 -0
  112. package/dom.idl +609 -0
  113. package/edit-context.idl +111 -0
  114. package/element-timing.idl +22 -0
  115. package/encoding.idl +59 -0
  116. package/encrypted-media.idl +125 -0
  117. package/entries-api.idl +71 -0
  118. package/event-timing.idl +29 -0
  119. package/eyedropper-api.idl +18 -0
  120. package/fenced-frame.idl +49 -0
  121. package/fetch.idl +117 -0
  122. package/fido.idl +47 -0
  123. package/file-system-access.idl +72 -0
  124. package/filter-effects.idl +341 -0
  125. package/font-metrics-api.idl +42 -0
  126. package/fs.idl +93 -0
  127. package/fullscreen.idl +35 -0
  128. package/gamepad-extensions.idl +71 -0
  129. package/gamepad.idl +49 -0
  130. package/generic-sensor.idl +60 -0
  131. package/geolocation-sensor.idl +47 -0
  132. package/geolocation.idl +65 -0
  133. package/geometry.idl +290 -0
  134. package/get-installed-related-apps.idl +16 -0
  135. package/gpc-spec.idl +10 -0
  136. package/gyroscope.idl +24 -0
  137. package/hr-time.idl +19 -0
  138. package/html-media-capture.idl +8 -0
  139. package/html.idl +2717 -0
  140. package/idle-detection.idl +31 -0
  141. package/image-capture.idl +160 -0
  142. package/image-resource.idl +11 -0
  143. package/ink-enhancement.idl +32 -0
  144. package/input-device-capabilities.idl +24 -0
  145. package/input-events.idl +14 -0
  146. package/intersection-observer.idl +46 -0
  147. package/intervention-reporting.idl +14 -0
  148. package/is-input-pending.idl +16 -0
  149. package/js-self-profiling.idl +44 -0
  150. package/keyboard-lock.idl +14 -0
  151. package/keyboard-map.idl +15 -0
  152. package/largest-contentful-paint.idl +15 -0
  153. package/layout-instability.idl +20 -0
  154. package/local-font-access.idl +24 -0
  155. package/longtasks.idl +19 -0
  156. package/magnetometer.idl +46 -0
  157. package/manifest-incubations.idl +24 -0
  158. package/mathml-core.idl +9 -0
  159. package/media-capabilities.idl +115 -0
  160. package/media-playback-quality.idl +18 -0
  161. package/media-source.idl +91 -0
  162. package/mediacapture-automation.idl +36 -0
  163. package/mediacapture-fromelement.idl +17 -0
  164. package/mediacapture-handle-actions.idl +31 -0
  165. package/mediacapture-region.idl +15 -0
  166. package/mediacapture-streams.idl +248 -0
  167. package/mediacapture-transform.idl +23 -0
  168. package/mediacapture-viewport.idl +14 -0
  169. package/mediasession.idl +84 -0
  170. package/mediastream-recording.idl +60 -0
  171. package/model-element.idl +9 -0
  172. package/mst-content-hint.idl +18 -0
  173. package/navigation-timing.idl +71 -0
  174. package/netinfo.idl +43 -0
  175. package/notifications.idl +100 -0
  176. package/orientation-event.idl +76 -0
  177. package/orientation-sensor.idl +35 -0
  178. package/package.json +1 -1
  179. package/page-lifecycle.idl +19 -0
  180. package/paint-timing.idl +7 -0
  181. package/payment-handler.idl +131 -0
  182. package/payment-request.idl +112 -0
  183. package/performance-measure-memory.idl +30 -0
  184. package/performance-timeline.idl +49 -0
  185. package/periodic-background-sync.idl +34 -0
  186. package/permissions-policy.idl +28 -0
  187. package/permissions-request.idl +8 -0
  188. package/permissions-revoke.idl +8 -0
  189. package/permissions.idl +41 -0
  190. package/picture-in-picture.idl +41 -0
  191. package/pointerevents.idl +64 -0
  192. package/pointerlock.idl +28 -0
  193. package/portals.idl +50 -0
  194. package/prefer-current-tab.idl +8 -0
  195. package/prerendering-revamped.idl +15 -0
  196. package/presentation-api.idl +95 -0
  197. package/private-click-measurement.idl +8 -0
  198. package/proximity.idl +18 -0
  199. package/push-api.idl +93 -0
  200. package/raw-camera-access.idl +18 -0
  201. package/referrer-policy.idl +16 -0
  202. package/remote-playback.idl +32 -0
  203. package/reporting.idl +39 -0
  204. package/requestStorageAccessFor.idl +12 -0
  205. package/requestidlecallback.idl +20 -0
  206. package/resize-observer.idl +37 -0
  207. package/resource-timing.idl +40 -0
  208. package/sanitizer-api.idl +38 -0
  209. package/savedata.idl +10 -0
  210. package/scheduling-apis.idl +11 -0
  211. package/screen-capture.idl +85 -0
  212. package/screen-orientation.idl +35 -0
  213. package/screen-wake-lock.idl +24 -0
  214. package/scroll-animations.idl +41 -0
  215. package/scroll-to-text-fragment.idl +12 -0
  216. package/secure-payment-confirmation.idl +48 -0
  217. package/selection-api.idl +46 -0
  218. package/serial.idl +85 -0
  219. package/server-timing.idl +17 -0
  220. package/service-workers.idl +220 -0
  221. package/shape-detection-api.idl +69 -0
  222. package/speech-api.idl +202 -0
  223. package/storage-access.idl +9 -0
  224. package/storage.idl +25 -0
  225. package/streams.idl +222 -0
  226. package/svg-animations.idl +68 -0
  227. package/testutils.idl +9 -0
  228. package/text-detection-api.idl +18 -0
  229. package/touch-events.idl +79 -0
  230. package/trust-token-api.idl +29 -0
  231. package/trusted-types.idl +71 -0
  232. package/turtledove.idl +58 -0
  233. package/ua-client-hints.idl +44 -0
  234. package/uievents.idl +248 -0
  235. package/url.idl +46 -0
  236. package/urlpattern.idl +59 -0
  237. package/user-timing.idl +34 -0
  238. package/vibration.idl +10 -0
  239. package/video-rvfc.idl +27 -0
  240. package/virtual-keyboard.idl +21 -0
  241. package/wai-aria.idl +59 -0
  242. package/wasm-js-api.idl +104 -0
  243. package/wasm-web-api.idl +11 -0
  244. package/web-animations-2.idl +102 -0
  245. package/web-animations.idl +149 -0
  246. package/web-app-launch.idl +19 -0
  247. package/web-bluetooth.idl +252 -0
  248. package/web-locks.idl +50 -0
  249. package/web-nfc.idl +81 -0
  250. package/web-otp.idl +21 -0
  251. package/web-share.idl +16 -0
  252. package/webaudio.idl +674 -0
  253. package/webauthn.idl +313 -0
  254. package/webcodecs-aac-codec-registration.idl +17 -0
  255. package/webcodecs-avc-codec-registration.idl +17 -0
  256. package/webcodecs-flac-codec-registration.idl +13 -0
  257. package/webcodecs-hevc-codec-registration.idl +17 -0
  258. package/webcodecs-opus-codec-registration.idl +22 -0
  259. package/webcodecs-vp9-codec-registration.idl +12 -0
  260. package/webcodecs.idl +500 -0
  261. package/webcrypto-secure-curves.idl +8 -0
  262. package/webdriver.idl +9 -0
  263. package/webgl1.idl +745 -0
  264. package/webgl2.idl +582 -0
  265. package/webgpu.idl +1245 -0
  266. package/webhid.idl +127 -0
  267. package/webidl.idl +48 -0
  268. package/webmidi.idl +91 -0
  269. package/webnn.idl +549 -0
  270. package/webrtc-encoded-transform.idl +127 -0
  271. package/webrtc-ice.idl +24 -0
  272. package/webrtc-identity.idl +97 -0
  273. package/webrtc-priority.idl +24 -0
  274. package/webrtc-stats.idl +288 -0
  275. package/webrtc-svc.idl +8 -0
  276. package/webrtc.idl +627 -0
  277. package/websockets.idl +48 -0
  278. package/webtransport.idl +143 -0
  279. package/webusb.idl +249 -0
  280. package/webvtt.idl +40 -0
  281. package/webxr-ar-module.idl +29 -0
  282. package/webxr-depth-sensing.idl +57 -0
  283. package/webxr-dom-overlays.idl +31 -0
  284. package/webxr-gamepads-module.idl +8 -0
  285. package/webxr-hand-input.idl +66 -0
  286. package/webxr-hit-test.idl +69 -0
  287. package/webxr-lighting-estimation.idl +39 -0
  288. package/webxr.idl +295 -0
  289. package/webxrlayers.idl +212 -0
  290. package/window-controls-overlay.idl +28 -0
  291. package/window-placement.idl +42 -0
  292. package/xhr.idl +99 -0
@@ -0,0 +1,60 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: MediaStream Recording (https://w3c.github.io/mediacapture-record/)
5
+
6
+ [Exposed=Window]
7
+ interface MediaRecorder : EventTarget {
8
+ constructor(MediaStream stream, optional MediaRecorderOptions options = {});
9
+ readonly attribute MediaStream stream;
10
+ readonly attribute DOMString mimeType;
11
+ readonly attribute RecordingState state;
12
+ attribute EventHandler onstart;
13
+ attribute EventHandler onstop;
14
+ attribute EventHandler ondataavailable;
15
+ attribute EventHandler onpause;
16
+ attribute EventHandler onresume;
17
+ attribute EventHandler onerror;
18
+ readonly attribute unsigned long videoBitsPerSecond;
19
+ readonly attribute unsigned long audioBitsPerSecond;
20
+ readonly attribute BitrateMode audioBitrateMode;
21
+
22
+ undefined start(optional unsigned long timeslice);
23
+ undefined stop();
24
+ undefined pause();
25
+ undefined resume();
26
+ undefined requestData();
27
+
28
+ static boolean isTypeSupported(DOMString type);
29
+ };
30
+
31
+ dictionary MediaRecorderOptions {
32
+ DOMString mimeType = "";
33
+ unsigned long audioBitsPerSecond;
34
+ unsigned long videoBitsPerSecond;
35
+ unsigned long bitsPerSecond;
36
+ BitrateMode audioBitrateMode = "variable";
37
+ };
38
+
39
+ enum BitrateMode {
40
+ "constant",
41
+ "variable"
42
+ };
43
+
44
+ enum RecordingState {
45
+ "inactive",
46
+ "recording",
47
+ "paused"
48
+ };
49
+
50
+ [Exposed=Window]
51
+ interface BlobEvent : Event {
52
+ constructor(DOMString type, BlobEventInit eventInitDict);
53
+ [SameObject] readonly attribute Blob data;
54
+ readonly attribute DOMHighResTimeStamp timecode;
55
+ };
56
+
57
+ dictionary BlobEventInit {
58
+ required Blob data;
59
+ DOMHighResTimeStamp timecode;
60
+ };
@@ -0,0 +1,9 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: The <model> element (https://immersive-web.github.io/model-element/)
5
+
6
+ [Exposed=Window]
7
+ interface HTMLModelElement : HTMLElement {
8
+
9
+ };
@@ -0,0 +1,18 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: MediaStreamTrack Content Hints (https://w3c.github.io/mst-content-hint/)
5
+
6
+ partial interface MediaStreamTrack {
7
+ attribute DOMString contentHint;
8
+ };
9
+
10
+ enum RTCDegradationPreference {
11
+ "maintain-framerate",
12
+ "maintain-resolution",
13
+ "balanced"
14
+ };
15
+
16
+ partial dictionary RTCRtpSendParameters {
17
+ RTCDegradationPreference degradationPreference;
18
+ };
@@ -0,0 +1,71 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: Navigation Timing Level 2 (https://w3c.github.io/navigation-timing/)
5
+
6
+ [Exposed=Window]
7
+ interface PerformanceNavigationTiming : PerformanceResourceTiming {
8
+ readonly attribute DOMHighResTimeStamp unloadEventStart;
9
+ readonly attribute DOMHighResTimeStamp unloadEventEnd;
10
+ readonly attribute DOMHighResTimeStamp domInteractive;
11
+ readonly attribute DOMHighResTimeStamp domContentLoadedEventStart;
12
+ readonly attribute DOMHighResTimeStamp domContentLoadedEventEnd;
13
+ readonly attribute DOMHighResTimeStamp domComplete;
14
+ readonly attribute DOMHighResTimeStamp loadEventStart;
15
+ readonly attribute DOMHighResTimeStamp loadEventEnd;
16
+ readonly attribute NavigationTimingType type;
17
+ readonly attribute unsigned short redirectCount;
18
+ [Default] object toJSON();
19
+ };
20
+
21
+ enum NavigationTimingType {
22
+ "navigate",
23
+ "reload",
24
+ "back_forward",
25
+ "prerender"
26
+ };
27
+
28
+ [Exposed=Window]
29
+ interface PerformanceTiming {
30
+ readonly attribute unsigned long long navigationStart;
31
+ readonly attribute unsigned long long unloadEventStart;
32
+ readonly attribute unsigned long long unloadEventEnd;
33
+ readonly attribute unsigned long long redirectStart;
34
+ readonly attribute unsigned long long redirectEnd;
35
+ readonly attribute unsigned long long fetchStart;
36
+ readonly attribute unsigned long long domainLookupStart;
37
+ readonly attribute unsigned long long domainLookupEnd;
38
+ readonly attribute unsigned long long connectStart;
39
+ readonly attribute unsigned long long connectEnd;
40
+ readonly attribute unsigned long long secureConnectionStart;
41
+ readonly attribute unsigned long long requestStart;
42
+ readonly attribute unsigned long long responseStart;
43
+ readonly attribute unsigned long long responseEnd;
44
+ readonly attribute unsigned long long domLoading;
45
+ readonly attribute unsigned long long domInteractive;
46
+ readonly attribute unsigned long long domContentLoadedEventStart;
47
+ readonly attribute unsigned long long domContentLoadedEventEnd;
48
+ readonly attribute unsigned long long domComplete;
49
+ readonly attribute unsigned long long loadEventStart;
50
+ readonly attribute unsigned long long loadEventEnd;
51
+ [Default] object toJSON();
52
+ };
53
+
54
+ [Exposed=Window]
55
+ interface PerformanceNavigation {
56
+ const unsigned short TYPE_NAVIGATE = 0;
57
+ const unsigned short TYPE_RELOAD = 1;
58
+ const unsigned short TYPE_BACK_FORWARD = 2;
59
+ const unsigned short TYPE_RESERVED = 255;
60
+ readonly attribute unsigned short type;
61
+ readonly attribute unsigned short redirectCount;
62
+ [Default] object toJSON();
63
+ };
64
+
65
+ [Exposed=Window]
66
+ partial interface Performance {
67
+ [SameObject]
68
+ readonly attribute PerformanceTiming timing;
69
+ [SameObject]
70
+ readonly attribute PerformanceNavigation navigation;
71
+ };
package/netinfo.idl ADDED
@@ -0,0 +1,43 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: Network Information API (https://wicg.github.io/netinfo/)
5
+
6
+ enum ConnectionType {
7
+ "bluetooth",
8
+ "cellular",
9
+ "ethernet",
10
+ "mixed",
11
+ "none",
12
+ "other",
13
+ "unknown",
14
+ "wifi",
15
+ "wimax"
16
+ };
17
+
18
+ enum EffectiveConnectionType {
19
+ "2g",
20
+ "3g",
21
+ "4g",
22
+ "slow-2g"
23
+ };
24
+
25
+ interface mixin NavigatorNetworkInformation {
26
+ [SameObject] readonly attribute NetworkInformation connection;
27
+ };
28
+
29
+ Navigator includes NavigatorNetworkInformation;
30
+ WorkerNavigator includes NavigatorNetworkInformation;
31
+
32
+ [Exposed=(Window,Worker)]
33
+ interface NetworkInformation : EventTarget {
34
+ readonly attribute ConnectionType type;
35
+ readonly attribute EffectiveConnectionType effectiveType;
36
+ readonly attribute Megabit downlinkMax;
37
+ readonly attribute Megabit downlink;
38
+ readonly attribute Millisecond rtt;
39
+ attribute EventHandler onchange;
40
+ };
41
+
42
+ typedef unrestricted double Megabit;
43
+ typedef unsigned long long Millisecond;
@@ -0,0 +1,100 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: Notifications API Standard (https://notifications.spec.whatwg.org/)
5
+
6
+ [Exposed=(Window,Worker)]
7
+ interface Notification : EventTarget {
8
+ constructor(DOMString title, optional NotificationOptions options = {});
9
+
10
+ static readonly attribute NotificationPermission permission;
11
+ [Exposed=Window] static Promise<NotificationPermission> requestPermission(optional NotificationPermissionCallback deprecatedCallback);
12
+
13
+ static readonly attribute unsigned long maxActions;
14
+
15
+ attribute EventHandler onclick;
16
+ attribute EventHandler onshow;
17
+ attribute EventHandler onerror;
18
+ attribute EventHandler onclose;
19
+
20
+ readonly attribute DOMString title;
21
+ readonly attribute NotificationDirection dir;
22
+ readonly attribute DOMString lang;
23
+ readonly attribute DOMString body;
24
+ readonly attribute DOMString tag;
25
+ readonly attribute USVString image;
26
+ readonly attribute USVString icon;
27
+ readonly attribute USVString badge;
28
+ [SameObject] readonly attribute FrozenArray<unsigned long> vibrate;
29
+ readonly attribute EpochTimeStamp timestamp;
30
+ readonly attribute boolean renotify;
31
+ readonly attribute boolean silent;
32
+ readonly attribute boolean requireInteraction;
33
+ [SameObject] readonly attribute any data;
34
+ [SameObject] readonly attribute FrozenArray<NotificationAction> actions;
35
+
36
+ undefined close();
37
+ };
38
+
39
+ dictionary NotificationOptions {
40
+ NotificationDirection dir = "auto";
41
+ DOMString lang = "";
42
+ DOMString body = "";
43
+ DOMString tag = "";
44
+ USVString image;
45
+ USVString icon;
46
+ USVString badge;
47
+ VibratePattern vibrate;
48
+ EpochTimeStamp timestamp;
49
+ boolean renotify = false;
50
+ boolean silent = false;
51
+ boolean requireInteraction = false;
52
+ any data = null;
53
+ sequence<NotificationAction> actions = [];
54
+ };
55
+
56
+ enum NotificationPermission {
57
+ "default",
58
+ "denied",
59
+ "granted"
60
+ };
61
+
62
+ enum NotificationDirection {
63
+ "auto",
64
+ "ltr",
65
+ "rtl"
66
+ };
67
+
68
+ dictionary NotificationAction {
69
+ required DOMString action;
70
+ required DOMString title;
71
+ USVString icon;
72
+ };
73
+
74
+ callback NotificationPermissionCallback = undefined (NotificationPermission permission);
75
+ dictionary GetNotificationOptions {
76
+ DOMString tag = "";
77
+ };
78
+
79
+ partial interface ServiceWorkerRegistration {
80
+ Promise<undefined> showNotification(DOMString title, optional NotificationOptions options = {});
81
+ Promise<sequence<Notification>> getNotifications(optional GetNotificationOptions filter = {});
82
+ };
83
+
84
+ [Exposed=ServiceWorker]
85
+ interface NotificationEvent : ExtendableEvent {
86
+ constructor(DOMString type, NotificationEventInit eventInitDict);
87
+
88
+ readonly attribute Notification notification;
89
+ readonly attribute DOMString action;
90
+ };
91
+
92
+ dictionary NotificationEventInit : ExtendableEventInit {
93
+ required Notification notification;
94
+ DOMString action = "";
95
+ };
96
+
97
+ partial interface ServiceWorkerGlobalScope {
98
+ attribute EventHandler onnotificationclick;
99
+ attribute EventHandler onnotificationclose;
100
+ };
@@ -0,0 +1,76 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: DeviceOrientation Event Specification (https://w3c.github.io/deviceorientation/)
5
+
6
+ partial interface Window {
7
+ [SecureContext] attribute EventHandler ondeviceorientation;
8
+ };
9
+
10
+ [Exposed=Window, SecureContext]
11
+ interface DeviceOrientationEvent : Event {
12
+ constructor(DOMString type, optional DeviceOrientationEventInit eventInitDict = {});
13
+ readonly attribute double? alpha;
14
+ readonly attribute double? beta;
15
+ readonly attribute double? gamma;
16
+ readonly attribute boolean absolute;
17
+
18
+ static Promise<PermissionState> requestPermission();
19
+ };
20
+
21
+ dictionary DeviceOrientationEventInit : EventInit {
22
+ double? alpha = null;
23
+ double? beta = null;
24
+ double? gamma = null;
25
+ boolean absolute = false;
26
+ };
27
+ partial interface Window {
28
+ [SecureContext] attribute EventHandler ondeviceorientationabsolute;
29
+ };
30
+ partial interface Window {
31
+ [SecureContext] attribute EventHandler ondevicemotion;
32
+ };
33
+
34
+ [Exposed=Window, SecureContext]
35
+ interface DeviceMotionEventAcceleration {
36
+ readonly attribute double? x;
37
+ readonly attribute double? y;
38
+ readonly attribute double? z;
39
+ };
40
+
41
+ [Exposed=Window, SecureContext]
42
+ interface DeviceMotionEventRotationRate {
43
+ readonly attribute double? alpha;
44
+ readonly attribute double? beta;
45
+ readonly attribute double? gamma;
46
+ };
47
+
48
+ [Exposed=Window, SecureContext]
49
+ interface DeviceMotionEvent : Event {
50
+ constructor(DOMString type, optional DeviceMotionEventInit eventInitDict = {});
51
+ readonly attribute DeviceMotionEventAcceleration? acceleration;
52
+ readonly attribute DeviceMotionEventAcceleration? accelerationIncludingGravity;
53
+ readonly attribute DeviceMotionEventRotationRate? rotationRate;
54
+ readonly attribute double interval;
55
+
56
+ static Promise<PermissionState> requestPermission();
57
+ };
58
+
59
+ dictionary DeviceMotionEventAccelerationInit {
60
+ double? x = null;
61
+ double? y = null;
62
+ double? z = null;
63
+ };
64
+
65
+ dictionary DeviceMotionEventRotationRateInit {
66
+ double? alpha = null;
67
+ double? beta = null;
68
+ double? gamma = null;
69
+ };
70
+
71
+ dictionary DeviceMotionEventInit : EventInit {
72
+ DeviceMotionEventAccelerationInit acceleration;
73
+ DeviceMotionEventAccelerationInit accelerationIncludingGravity;
74
+ DeviceMotionEventRotationRateInit rotationRate;
75
+ double interval = 0;
76
+ };
@@ -0,0 +1,35 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: Orientation Sensor (https://w3c.github.io/orientation-sensor/)
5
+
6
+ typedef (Float32Array or Float64Array or DOMMatrix) RotationMatrixType;
7
+
8
+ [SecureContext, Exposed=Window]
9
+ interface OrientationSensor : Sensor {
10
+ readonly attribute FrozenArray<double>? quaternion;
11
+ undefined populateMatrix(RotationMatrixType targetMatrix);
12
+ };
13
+
14
+ enum OrientationSensorLocalCoordinateSystem { "device", "screen" };
15
+
16
+ dictionary OrientationSensorOptions : SensorOptions {
17
+ OrientationSensorLocalCoordinateSystem referenceFrame = "device";
18
+ };
19
+
20
+ [SecureContext, Exposed=Window]
21
+ interface AbsoluteOrientationSensor : OrientationSensor {
22
+ constructor(optional OrientationSensorOptions sensorOptions = {});
23
+ };
24
+
25
+ [SecureContext, Exposed=Window]
26
+ interface RelativeOrientationSensor : OrientationSensor {
27
+ constructor(optional OrientationSensorOptions sensorOptions = {});
28
+ };
29
+
30
+ dictionary AbsoluteOrientationReadingValues {
31
+ required FrozenArray<double>? quaternion;
32
+ };
33
+
34
+ dictionary RelativeOrientationReadingValues : AbsoluteOrientationReadingValues {
35
+ };
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.29.0",
4
+ "version": "3.31.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -0,0 +1,19 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: Page Lifecycle (https://wicg.github.io/page-lifecycle/)
5
+
6
+ partial interface Document {
7
+ attribute EventHandler onfreeze;
8
+ attribute EventHandler onresume;
9
+ readonly attribute boolean wasDiscarded;
10
+ };
11
+
12
+ partial interface Client {
13
+ readonly attribute ClientLifecycleState lifecycleState;
14
+ };
15
+
16
+ enum ClientLifecycleState {
17
+ "active",
18
+ "frozen"
19
+ };
@@ -0,0 +1,7 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: Paint Timing 1 (https://w3c.github.io/paint-timing/)
5
+
6
+ [Exposed=Window]
7
+ interface PerformancePaintTiming : PerformanceEntry {};
@@ -0,0 +1,131 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: Payment Handler API (https://w3c.github.io/payment-handler/)
5
+
6
+ partial interface ServiceWorkerRegistration {
7
+ [SameObject] readonly attribute PaymentManager paymentManager;
8
+ };
9
+
10
+ [SecureContext, Exposed=(Window)]
11
+ interface PaymentManager {
12
+ attribute DOMString userHint;
13
+ Promise<undefined> enableDelegations(sequence<PaymentDelegation> delegations);
14
+ };
15
+
16
+ enum PaymentDelegation {
17
+ "shippingAddress",
18
+ "payerName",
19
+ "payerPhone",
20
+ "payerEmail"
21
+ };
22
+
23
+ partial interface ServiceWorkerGlobalScope {
24
+ attribute EventHandler oncanmakepayment;
25
+ };
26
+
27
+ [Exposed=ServiceWorker]
28
+ interface CanMakePaymentEvent : ExtendableEvent {
29
+ constructor(DOMString type);
30
+ undefined respondWith(Promise<boolean> canMakePaymentResponse);
31
+ };
32
+
33
+ partial interface ServiceWorkerGlobalScope {
34
+ attribute EventHandler onpaymentrequest;
35
+ };
36
+
37
+ dictionary PaymentRequestDetailsUpdate {
38
+ DOMString error;
39
+ PaymentCurrencyAmount total;
40
+ sequence<PaymentDetailsModifier> modifiers;
41
+ sequence<PaymentShippingOption> shippingOptions;
42
+ object paymentMethodErrors;
43
+ AddressErrors shippingAddressErrors;
44
+ };
45
+
46
+ [Exposed=ServiceWorker]
47
+ interface PaymentRequestEvent : ExtendableEvent {
48
+ constructor(DOMString type, optional PaymentRequestEventInit eventInitDict = {});
49
+ readonly attribute USVString topOrigin;
50
+ readonly attribute USVString paymentRequestOrigin;
51
+ readonly attribute DOMString paymentRequestId;
52
+ readonly attribute FrozenArray<PaymentMethodData> methodData;
53
+ readonly attribute object total;
54
+ readonly attribute FrozenArray<PaymentDetailsModifier> modifiers;
55
+ readonly attribute object? paymentOptions;
56
+ readonly attribute FrozenArray<PaymentShippingOption>? shippingOptions;
57
+ Promise<WindowClient?> openWindow(USVString url);
58
+ Promise<PaymentRequestDetailsUpdate?> changePaymentMethod(DOMString methodName, optional object? methodDetails = null);
59
+ Promise<PaymentRequestDetailsUpdate?> changeShippingAddress(optional AddressInit shippingAddress = {});
60
+ Promise<PaymentRequestDetailsUpdate?> changeShippingOption(DOMString shippingOption);
61
+ undefined respondWith(Promise<PaymentHandlerResponse> handlerResponsePromise);
62
+ };
63
+
64
+ dictionary PaymentRequestEventInit : ExtendableEventInit {
65
+ USVString topOrigin;
66
+ USVString paymentRequestOrigin;
67
+ DOMString paymentRequestId;
68
+ sequence<PaymentMethodData> methodData;
69
+ PaymentCurrencyAmount total;
70
+ sequence<PaymentDetailsModifier> modifiers;
71
+ PaymentOptions paymentOptions;
72
+ sequence<PaymentShippingOption> shippingOptions;
73
+ };
74
+
75
+ dictionary PaymentHandlerResponse {
76
+ DOMString methodName;
77
+ object details;
78
+ DOMString? payerName;
79
+ DOMString? payerEmail;
80
+ DOMString? payerPhone;
81
+ AddressInit shippingAddress;
82
+ DOMString? shippingOption;
83
+ };
84
+
85
+ dictionary AddressInit {
86
+ DOMString country = "";
87
+ sequence<DOMString> addressLine = [];
88
+ DOMString region = "";
89
+ DOMString city = "";
90
+ DOMString dependentLocality = "";
91
+ DOMString postalCode = "";
92
+ DOMString sortingCode = "";
93
+ DOMString organization = "";
94
+ DOMString recipient = "";
95
+ DOMString phone = "";
96
+ };
97
+
98
+ dictionary PaymentOptions {
99
+ boolean requestPayerName = false;
100
+ boolean requestBillingAddress = false;
101
+ boolean requestPayerEmail = false;
102
+ boolean requestPayerPhone = false;
103
+ boolean requestShipping = false;
104
+ PaymentShippingType shippingType = "shipping";
105
+ };
106
+
107
+ dictionary PaymentShippingOption {
108
+ required DOMString id;
109
+ required DOMString label;
110
+ required PaymentCurrencyAmount amount;
111
+ boolean selected = false;
112
+ };
113
+
114
+ enum PaymentShippingType {
115
+ "shipping",
116
+ "delivery",
117
+ "pickup"
118
+ };
119
+
120
+ dictionary AddressErrors {
121
+ DOMString addressLine;
122
+ DOMString city;
123
+ DOMString country;
124
+ DOMString dependentLocality;
125
+ DOMString organization;
126
+ DOMString phone;
127
+ DOMString postalCode;
128
+ DOMString recipient;
129
+ DOMString region;
130
+ DOMString sortingCode;
131
+ };