@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.
- package/ANGLE_instanced_arrays.idl +12 -0
- package/CSP.idl +56 -0
- package/DOM-Parsing.idl +26 -0
- package/EXT_blend_minmax.idl +10 -0
- package/EXT_color_buffer_float.idl +8 -0
- package/EXT_color_buffer_half_float.idl +12 -0
- package/EXT_disjoint_timer_query.idl +30 -0
- package/EXT_disjoint_timer_query_webgl2.idl +14 -0
- package/EXT_float_blend.idl +8 -0
- package/EXT_frag_depth.idl +8 -0
- package/EXT_sRGB.idl +12 -0
- package/EXT_shader_texture_lod.idl +8 -0
- package/EXT_texture_compression_bptc.idl +12 -0
- package/EXT_texture_compression_rgtc.idl +12 -0
- package/EXT_texture_filter_anisotropic.idl +10 -0
- package/EXT_texture_norm16.idl +16 -0
- package/FedCM.idl +67 -0
- package/FileAPI.idl +100 -0
- package/IndexedDB.idl +226 -0
- package/KHR_parallel_shader_compile.idl +9 -0
- package/OES_draw_buffers_indexed.idl +26 -0
- package/OES_element_index_uint.idl +8 -0
- package/OES_fbo_render_mipmap.idl +8 -0
- package/OES_standard_derivatives.idl +9 -0
- package/OES_texture_float.idl +7 -0
- package/OES_texture_float_linear.idl +7 -0
- package/OES_texture_half_float.idl +9 -0
- package/OES_texture_half_float_linear.idl +7 -0
- package/OES_vertex_array_object.idl +18 -0
- package/OVR_multiview2.idl +14 -0
- package/SVG.idl +693 -0
- package/WEBGL_blend_equation_advanced_coherent.idl +23 -0
- package/WEBGL_clip_cull_distance.idl +20 -0
- package/WEBGL_color_buffer_float.idl +11 -0
- package/WEBGL_compressed_texture_astc.idl +41 -0
- package/WEBGL_compressed_texture_etc.idl +19 -0
- package/WEBGL_compressed_texture_etc1.idl +10 -0
- package/WEBGL_compressed_texture_pvrtc.idl +13 -0
- package/WEBGL_compressed_texture_s3tc.idl +13 -0
- package/WEBGL_compressed_texture_s3tc_srgb.idl +13 -0
- package/WEBGL_debug_renderer_info.idl +12 -0
- package/WEBGL_debug_shaders.idl +11 -0
- package/WEBGL_depth_texture.idl +9 -0
- package/WEBGL_draw_buffers.idl +46 -0
- package/WEBGL_draw_instanced_base_vertex_base_instance.idl +14 -0
- package/WEBGL_lose_context.idl +10 -0
- package/WEBGL_multi_draw.idl +32 -0
- package/WEBGL_multi_draw_instanced_base_vertex_base_instance.idl +26 -0
- package/WEBGL_provoking_vertex.idl +13 -0
- package/WebCryptoAPI.idl +237 -0
- package/accelerometer.idl +40 -0
- package/ambient-light.idl +14 -0
- package/anchors.idl +37 -0
- package/attribution-reporting-api.idl +12 -0
- package/audio-output.idl +17 -0
- package/autoplay-detection.idl +19 -0
- package/background-fetch.idl +89 -0
- package/background-sync.idl +30 -0
- package/badging.idl +15 -0
- package/battery-status.idl +21 -0
- package/beacon.idl +8 -0
- package/capture-handle-identity.idl +27 -0
- package/clipboard-apis.idl +51 -0
- package/close-watcher.idl +19 -0
- package/compat.idl +13 -0
- package/compression.idl +22 -0
- package/compute-pressure.idl +37 -0
- package/console.idl +34 -0
- package/contact-picker.idl +44 -0
- package/content-index.idl +46 -0
- package/cookie-store.idl +110 -0
- package/crash-reporting.idl +10 -0
- package/credential-management.idl +105 -0
- package/csp-embedded-enforcement.idl +8 -0
- package/csp-next.idl +21 -0
- package/css-animation-worklet.idl +37 -0
- package/css-animations-2.idl +9 -0
- package/css-animations.idl +47 -0
- package/css-cascade-6.idl +10 -0
- package/css-cascade.idl +18 -0
- package/css-color-5.idl +12 -0
- package/css-conditional.idl +27 -0
- package/css-contain-3.idl +10 -0
- package/css-contain.idl +13 -0
- package/css-counter-styles.idl +23 -0
- package/css-font-loading.idl +134 -0
- package/css-fonts.idl +36 -0
- package/css-highlight-api.idl +27 -0
- package/css-images-4.idl +8 -0
- package/css-layout-api.idl +144 -0
- package/css-masking.idl +20 -0
- package/css-nav.idl +48 -0
- package/css-nesting.idl +10 -0
- package/css-paint-api.idl +39 -0
- package/css-parser-api.idl +76 -0
- package/css-properties-values-api.idl +23 -0
- package/css-pseudo.idl +16 -0
- package/css-regions.idl +29 -0
- package/css-shadow-parts.idl +8 -0
- package/css-transitions-2.idl +9 -0
- package/css-transitions.idl +25 -0
- package/css-typed-om.idl +423 -0
- package/css-view-transitions.idl +18 -0
- package/cssom-view.idl +200 -0
- package/cssom.idl +159 -0
- package/custom-state-pseudo-class.idl +14 -0
- package/datacue.idl +12 -0
- package/deprecation-reporting.idl +15 -0
- package/device-memory.idl +14 -0
- package/device-posture.idl +21 -0
- package/digital-goods.idl +44 -0
- package/dom.idl +609 -0
- package/edit-context.idl +111 -0
- package/element-timing.idl +22 -0
- package/encoding.idl +59 -0
- package/encrypted-media.idl +125 -0
- package/entries-api.idl +71 -0
- package/event-timing.idl +29 -0
- package/eyedropper-api.idl +18 -0
- package/fenced-frame.idl +49 -0
- package/fetch.idl +117 -0
- package/fido.idl +47 -0
- package/file-system-access.idl +72 -0
- package/filter-effects.idl +341 -0
- package/font-metrics-api.idl +42 -0
- package/fs.idl +93 -0
- package/fullscreen.idl +35 -0
- package/gamepad-extensions.idl +71 -0
- package/gamepad.idl +49 -0
- package/generic-sensor.idl +60 -0
- package/geolocation-sensor.idl +47 -0
- package/geolocation.idl +65 -0
- package/geometry.idl +290 -0
- package/get-installed-related-apps.idl +16 -0
- package/gpc-spec.idl +10 -0
- package/gyroscope.idl +24 -0
- package/hr-time.idl +19 -0
- package/html-media-capture.idl +8 -0
- package/html.idl +2717 -0
- package/idle-detection.idl +31 -0
- package/image-capture.idl +160 -0
- package/image-resource.idl +11 -0
- package/ink-enhancement.idl +32 -0
- package/input-device-capabilities.idl +24 -0
- package/input-events.idl +14 -0
- package/intersection-observer.idl +46 -0
- package/intervention-reporting.idl +14 -0
- package/is-input-pending.idl +16 -0
- package/js-self-profiling.idl +44 -0
- package/keyboard-lock.idl +14 -0
- package/keyboard-map.idl +15 -0
- package/largest-contentful-paint.idl +15 -0
- package/layout-instability.idl +20 -0
- package/local-font-access.idl +24 -0
- package/longtasks.idl +19 -0
- package/magnetometer.idl +46 -0
- package/manifest-incubations.idl +24 -0
- package/mathml-core.idl +9 -0
- package/media-capabilities.idl +115 -0
- package/media-playback-quality.idl +18 -0
- package/media-source.idl +91 -0
- package/mediacapture-automation.idl +36 -0
- package/mediacapture-fromelement.idl +17 -0
- package/mediacapture-handle-actions.idl +31 -0
- package/mediacapture-region.idl +15 -0
- package/mediacapture-streams.idl +248 -0
- package/mediacapture-transform.idl +23 -0
- package/mediacapture-viewport.idl +14 -0
- package/mediasession.idl +84 -0
- package/mediastream-recording.idl +60 -0
- package/model-element.idl +9 -0
- package/mst-content-hint.idl +18 -0
- package/navigation-timing.idl +71 -0
- package/netinfo.idl +43 -0
- package/notifications.idl +100 -0
- package/orientation-event.idl +76 -0
- package/orientation-sensor.idl +35 -0
- package/package.json +1 -1
- package/page-lifecycle.idl +19 -0
- package/paint-timing.idl +7 -0
- package/payment-handler.idl +131 -0
- package/payment-request.idl +112 -0
- package/performance-measure-memory.idl +30 -0
- package/performance-timeline.idl +49 -0
- package/periodic-background-sync.idl +34 -0
- package/permissions-policy.idl +28 -0
- package/permissions-request.idl +8 -0
- package/permissions-revoke.idl +8 -0
- package/permissions.idl +41 -0
- package/picture-in-picture.idl +41 -0
- package/pointerevents.idl +64 -0
- package/pointerlock.idl +28 -0
- package/portals.idl +50 -0
- package/prefer-current-tab.idl +8 -0
- package/prerendering-revamped.idl +15 -0
- package/presentation-api.idl +95 -0
- package/private-click-measurement.idl +8 -0
- package/proximity.idl +18 -0
- package/push-api.idl +93 -0
- package/raw-camera-access.idl +18 -0
- package/referrer-policy.idl +16 -0
- package/remote-playback.idl +32 -0
- package/reporting.idl +39 -0
- package/requestStorageAccessFor.idl +12 -0
- package/requestidlecallback.idl +20 -0
- package/resize-observer.idl +37 -0
- package/resource-timing.idl +40 -0
- package/sanitizer-api.idl +38 -0
- package/savedata.idl +10 -0
- package/scheduling-apis.idl +11 -0
- package/screen-capture.idl +85 -0
- package/screen-orientation.idl +35 -0
- package/screen-wake-lock.idl +24 -0
- package/scroll-animations.idl +41 -0
- package/scroll-to-text-fragment.idl +12 -0
- package/secure-payment-confirmation.idl +48 -0
- package/selection-api.idl +46 -0
- package/serial.idl +85 -0
- package/server-timing.idl +17 -0
- package/service-workers.idl +220 -0
- package/shape-detection-api.idl +69 -0
- package/speech-api.idl +202 -0
- package/storage-access.idl +9 -0
- package/storage.idl +25 -0
- package/streams.idl +222 -0
- package/svg-animations.idl +68 -0
- package/testutils.idl +9 -0
- package/text-detection-api.idl +18 -0
- package/touch-events.idl +79 -0
- package/trust-token-api.idl +29 -0
- package/trusted-types.idl +71 -0
- package/turtledove.idl +58 -0
- package/ua-client-hints.idl +44 -0
- package/uievents.idl +248 -0
- package/url.idl +46 -0
- package/urlpattern.idl +59 -0
- package/user-timing.idl +34 -0
- package/vibration.idl +10 -0
- package/video-rvfc.idl +27 -0
- package/virtual-keyboard.idl +21 -0
- package/wai-aria.idl +59 -0
- package/wasm-js-api.idl +104 -0
- package/wasm-web-api.idl +11 -0
- package/web-animations-2.idl +102 -0
- package/web-animations.idl +149 -0
- package/web-app-launch.idl +19 -0
- package/web-bluetooth.idl +252 -0
- package/web-locks.idl +50 -0
- package/web-nfc.idl +81 -0
- package/web-otp.idl +21 -0
- package/web-share.idl +16 -0
- package/webaudio.idl +674 -0
- package/webauthn.idl +313 -0
- package/webcodecs-aac-codec-registration.idl +17 -0
- package/webcodecs-avc-codec-registration.idl +17 -0
- package/webcodecs-flac-codec-registration.idl +13 -0
- package/webcodecs-hevc-codec-registration.idl +17 -0
- package/webcodecs-opus-codec-registration.idl +22 -0
- package/webcodecs-vp9-codec-registration.idl +12 -0
- package/webcodecs.idl +500 -0
- package/webcrypto-secure-curves.idl +8 -0
- package/webdriver.idl +9 -0
- package/webgl1.idl +745 -0
- package/webgl2.idl +582 -0
- package/webgpu.idl +1245 -0
- package/webhid.idl +127 -0
- package/webidl.idl +48 -0
- package/webmidi.idl +91 -0
- package/webnn.idl +549 -0
- package/webrtc-encoded-transform.idl +127 -0
- package/webrtc-ice.idl +24 -0
- package/webrtc-identity.idl +97 -0
- package/webrtc-priority.idl +24 -0
- package/webrtc-stats.idl +288 -0
- package/webrtc-svc.idl +8 -0
- package/webrtc.idl +627 -0
- package/websockets.idl +48 -0
- package/webtransport.idl +143 -0
- package/webusb.idl +249 -0
- package/webvtt.idl +40 -0
- package/webxr-ar-module.idl +29 -0
- package/webxr-depth-sensing.idl +57 -0
- package/webxr-dom-overlays.idl +31 -0
- package/webxr-gamepads-module.idl +8 -0
- package/webxr-hand-input.idl +66 -0
- package/webxr-hit-test.idl +69 -0
- package/webxr-lighting-estimation.idl +39 -0
- package/webxr.idl +295 -0
- package/webxrlayers.idl +212 -0
- package/window-controls-overlay.idl +28 -0
- package/window-placement.idl +42 -0
- package/xhr.idl +99 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
// GENERATED CONTENT - DO NOT EDIT
|
|
2
|
+
// Content was automatically extracted by Reffy into webref
|
|
3
|
+
// (https://github.com/w3c/webref)
|
|
4
|
+
// Source: Web Animations Level 2 (https://drafts.csswg.org/web-animations-2/)
|
|
5
|
+
|
|
6
|
+
[Exposed=Window]
|
|
7
|
+
partial interface AnimationTimeline {
|
|
8
|
+
readonly attribute CSSNumberish? currentTime;
|
|
9
|
+
readonly attribute CSSNumberish? duration;
|
|
10
|
+
Animation play (optional AnimationEffect? effect = null);
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
[Exposed=Window]
|
|
14
|
+
partial interface Animation {
|
|
15
|
+
attribute CSSNumberish? startTime;
|
|
16
|
+
attribute CSSNumberish? currentTime;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
[Exposed=Window]
|
|
20
|
+
partial interface AnimationEffect {
|
|
21
|
+
// Timing hierarchy
|
|
22
|
+
readonly attribute GroupEffect? parent;
|
|
23
|
+
readonly attribute AnimationEffect? previousSibling;
|
|
24
|
+
readonly attribute AnimationEffect? nextSibling;
|
|
25
|
+
|
|
26
|
+
undefined before (AnimationEffect... effects);
|
|
27
|
+
undefined after (AnimationEffect... effects);
|
|
28
|
+
undefined replace (AnimationEffect... effects);
|
|
29
|
+
undefined remove ();
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
partial dictionary EffectTiming {
|
|
33
|
+
double delay;
|
|
34
|
+
double endDelay;
|
|
35
|
+
double playbackRate = 1.0;
|
|
36
|
+
(unrestricted double or CSSNumericValue or DOMString) duration = "auto";
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
partial dictionary OptionalEffectTiming {
|
|
40
|
+
double playbackRate;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
partial dictionary ComputedEffectTiming {
|
|
44
|
+
CSSNumberish startTime;
|
|
45
|
+
CSSNumberish endTime;
|
|
46
|
+
CSSNumberish activeDuration;
|
|
47
|
+
CSSNumberish? localTime;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
[Exposed=Window]
|
|
51
|
+
interface GroupEffect {
|
|
52
|
+
constructor(sequence<AnimationEffect>? children,
|
|
53
|
+
optional (unrestricted double or EffectTiming) timing = {});
|
|
54
|
+
|
|
55
|
+
readonly attribute AnimationNodeList children;
|
|
56
|
+
readonly attribute AnimationEffect? firstChild;
|
|
57
|
+
readonly attribute AnimationEffect? lastChild;
|
|
58
|
+
GroupEffect clone ();
|
|
59
|
+
|
|
60
|
+
undefined prepend (AnimationEffect... effects);
|
|
61
|
+
undefined append (AnimationEffect... effects);
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
[Exposed=Window]
|
|
65
|
+
interface AnimationNodeList {
|
|
66
|
+
readonly attribute unsigned long length;
|
|
67
|
+
getter AnimationEffect? item (unsigned long index);
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
[Exposed=Window]
|
|
71
|
+
interface SequenceEffect : GroupEffect {
|
|
72
|
+
constructor(sequence<AnimationEffect>? children,
|
|
73
|
+
optional (unrestricted double or EffectTiming) timing = {});
|
|
74
|
+
|
|
75
|
+
SequenceEffect clone ();
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
partial interface KeyframeEffect {
|
|
79
|
+
attribute IterationCompositeOperation iterationComposite;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
partial dictionary KeyframeEffectOptions {
|
|
83
|
+
IterationCompositeOperation iterationComposite = "replace";
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
enum IterationCompositeOperation { "replace", "accumulate" };
|
|
87
|
+
|
|
88
|
+
callback EffectCallback = undefined (double? progress,
|
|
89
|
+
(Element or CSSPseudoElement) currentTarget,
|
|
90
|
+
Animation animation);
|
|
91
|
+
|
|
92
|
+
[Exposed=Window]
|
|
93
|
+
interface AnimationPlaybackEvent : Event {
|
|
94
|
+
constructor(DOMString type, optional AnimationPlaybackEventInit
|
|
95
|
+
eventInitDict = {});
|
|
96
|
+
readonly attribute CSSNumberish? currentTime;
|
|
97
|
+
readonly attribute CSSNumberish? timelineTime;
|
|
98
|
+
};
|
|
99
|
+
dictionary AnimationPlaybackEventInit : EventInit {
|
|
100
|
+
CSSNumberish? currentTime = null;
|
|
101
|
+
CSSNumberish? timelineTime = null;
|
|
102
|
+
};
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
// GENERATED CONTENT - DO NOT EDIT
|
|
2
|
+
// Content was automatically extracted by Reffy into webref
|
|
3
|
+
// (https://github.com/w3c/webref)
|
|
4
|
+
// Source: Web Animations (https://drafts.csswg.org/web-animations-1/)
|
|
5
|
+
|
|
6
|
+
[Exposed=Window]
|
|
7
|
+
interface AnimationTimeline {
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
dictionary DocumentTimelineOptions {
|
|
11
|
+
DOMHighResTimeStamp originTime = 0;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
[Exposed=Window]
|
|
15
|
+
interface DocumentTimeline : AnimationTimeline {
|
|
16
|
+
constructor(optional DocumentTimelineOptions options = {});
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
[Exposed=Window]
|
|
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();
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
enum AnimationPlayState { "idle", "running", "paused", "finished" };
|
|
47
|
+
|
|
48
|
+
enum AnimationReplaceState { "active", "removed", "persisted" };
|
|
49
|
+
|
|
50
|
+
[Exposed=Window]
|
|
51
|
+
interface AnimationEffect {
|
|
52
|
+
EffectTiming getTiming();
|
|
53
|
+
ComputedEffectTiming getComputedTiming();
|
|
54
|
+
undefined updateTiming(optional OptionalEffectTiming timing = {});
|
|
55
|
+
};
|
|
56
|
+
|
|
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";
|
|
63
|
+
};
|
|
64
|
+
|
|
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;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
enum FillMode { "none", "forwards", "backwards", "both", "auto" };
|
|
77
|
+
|
|
78
|
+
enum PlaybackDirection { "normal", "reverse", "alternate", "alternate-reverse" };
|
|
79
|
+
|
|
80
|
+
dictionary ComputedEffectTiming : EffectTiming {
|
|
81
|
+
double? progress;
|
|
82
|
+
unrestricted double? currentIteration;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
[Exposed=Window]
|
|
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);
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
dictionary BaseComputedKeyframe {
|
|
99
|
+
double? offset = null;
|
|
100
|
+
double computedOffset;
|
|
101
|
+
DOMString easing = "linear";
|
|
102
|
+
CompositeOperationOrAuto composite = "auto";
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
dictionary BasePropertyIndexedKeyframe {
|
|
106
|
+
(double? or sequence<double?>) offset = [];
|
|
107
|
+
(DOMString or sequence<DOMString>) easing = [];
|
|
108
|
+
(CompositeOperationOrAuto or sequence<CompositeOperationOrAuto>) composite = [];
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
dictionary BaseKeyframe {
|
|
112
|
+
double? offset = null;
|
|
113
|
+
DOMString easing = "linear";
|
|
114
|
+
CompositeOperationOrAuto composite = "auto";
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
dictionary KeyframeEffectOptions : EffectTiming {
|
|
118
|
+
CompositeOperation composite = "replace";
|
|
119
|
+
CSSOMString? pseudoElement = null;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
enum CompositeOperation { "replace", "add", "accumulate" };
|
|
123
|
+
|
|
124
|
+
enum CompositeOperationOrAuto { "replace", "add", "accumulate", "auto" };
|
|
125
|
+
|
|
126
|
+
interface mixin Animatable {
|
|
127
|
+
Animation animate(object? keyframes,
|
|
128
|
+
optional (unrestricted double or KeyframeAnimationOptions) options = {});
|
|
129
|
+
sequence<Animation> getAnimations(optional GetAnimationsOptions options = {});
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
dictionary KeyframeAnimationOptions : KeyframeEffectOptions {
|
|
133
|
+
DOMString id = "";
|
|
134
|
+
AnimationTimeline? timeline;
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
dictionary GetAnimationsOptions {
|
|
138
|
+
boolean subtree = false;
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
partial interface Document {
|
|
142
|
+
readonly attribute DocumentTimeline timeline;
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
partial interface mixin DocumentOrShadowRoot {
|
|
146
|
+
sequence<Animation> getAnimations();
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
Element includes Animatable;
|
|
@@ -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: Web App Launch Handler API (https://wicg.github.io/web-app-launch/)
|
|
5
|
+
|
|
6
|
+
[Exposed=Window] interface LaunchParams {
|
|
7
|
+
readonly attribute DOMString? targetURL;
|
|
8
|
+
readonly attribute FrozenArray<FileSystemHandle> files;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
callback LaunchConsumer = any (LaunchParams params);
|
|
12
|
+
|
|
13
|
+
partial interface Window {
|
|
14
|
+
readonly attribute LaunchQueue launchQueue;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
[Exposed=Window] interface LaunchQueue {
|
|
18
|
+
undefined setConsumer(LaunchConsumer consumer);
|
|
19
|
+
};
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
// GENERATED CONTENT - DO NOT EDIT
|
|
2
|
+
// Content was automatically extracted by Reffy into webref
|
|
3
|
+
// (https://github.com/w3c/webref)
|
|
4
|
+
// Source: Web Bluetooth (https://webbluetoothcg.github.io/web-bluetooth/)
|
|
5
|
+
|
|
6
|
+
dictionary BluetoothDataFilterInit {
|
|
7
|
+
BufferSource dataPrefix;
|
|
8
|
+
BufferSource mask;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
dictionary BluetoothManufacturerDataFilterInit : BluetoothDataFilterInit {
|
|
12
|
+
required [EnforceRange] unsigned short companyIdentifier;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
dictionary BluetoothServiceDataFilterInit : BluetoothDataFilterInit {
|
|
16
|
+
required BluetoothServiceUUID service;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
dictionary BluetoothLEScanFilterInit {
|
|
20
|
+
sequence<BluetoothServiceUUID> services;
|
|
21
|
+
DOMString name;
|
|
22
|
+
DOMString namePrefix;
|
|
23
|
+
sequence<BluetoothManufacturerDataFilterInit> manufacturerData;
|
|
24
|
+
sequence<BluetoothServiceDataFilterInit> serviceData;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
dictionary RequestDeviceOptions {
|
|
28
|
+
sequence<BluetoothLEScanFilterInit> filters;
|
|
29
|
+
sequence<BluetoothLEScanFilterInit> exclusionFilters;
|
|
30
|
+
sequence<BluetoothServiceUUID> optionalServices = [];
|
|
31
|
+
sequence<unsigned short> optionalManufacturerData = [];
|
|
32
|
+
boolean acceptAllDevices = false;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
[Exposed=Window, SecureContext]
|
|
36
|
+
interface Bluetooth : EventTarget {
|
|
37
|
+
Promise<boolean> getAvailability();
|
|
38
|
+
attribute EventHandler onavailabilitychanged;
|
|
39
|
+
[SameObject]
|
|
40
|
+
readonly attribute BluetoothDevice? referringDevice;
|
|
41
|
+
Promise<sequence<BluetoothDevice>> getDevices();
|
|
42
|
+
Promise<BluetoothDevice> requestDevice(optional RequestDeviceOptions options = {});
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
Bluetooth includes BluetoothDeviceEventHandlers;
|
|
46
|
+
Bluetooth includes CharacteristicEventHandlers;
|
|
47
|
+
Bluetooth includes ServiceEventHandlers;
|
|
48
|
+
|
|
49
|
+
dictionary BluetoothPermissionDescriptor : PermissionDescriptor {
|
|
50
|
+
DOMString deviceId;
|
|
51
|
+
// These match RequestDeviceOptions.
|
|
52
|
+
sequence<BluetoothLEScanFilterInit> filters;
|
|
53
|
+
sequence<BluetoothServiceUUID> optionalServices = [];
|
|
54
|
+
sequence<unsigned short> optionalManufacturerData = [];
|
|
55
|
+
boolean acceptAllDevices = false;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
dictionary AllowedBluetoothDevice {
|
|
59
|
+
required DOMString deviceId;
|
|
60
|
+
required boolean mayUseGATT;
|
|
61
|
+
// An allowedServices of "all" means all services are allowed.
|
|
62
|
+
required (DOMString or sequence<UUID>) allowedServices;
|
|
63
|
+
required sequence<unsigned short> allowedManufacturerData;
|
|
64
|
+
};
|
|
65
|
+
dictionary BluetoothPermissionStorage {
|
|
66
|
+
required sequence<AllowedBluetoothDevice> allowedDevices;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
[Exposed=Window]
|
|
70
|
+
interface BluetoothPermissionResult : PermissionStatus {
|
|
71
|
+
attribute FrozenArray<BluetoothDevice> devices;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
[
|
|
75
|
+
Exposed=Window,
|
|
76
|
+
SecureContext
|
|
77
|
+
]
|
|
78
|
+
interface ValueEvent : Event {
|
|
79
|
+
constructor(DOMString type, optional ValueEventInit initDict = {});
|
|
80
|
+
readonly attribute any value;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
dictionary ValueEventInit : EventInit {
|
|
84
|
+
any value = null;
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
[Exposed=Window, SecureContext]
|
|
88
|
+
interface BluetoothDevice : EventTarget {
|
|
89
|
+
readonly attribute DOMString id;
|
|
90
|
+
readonly attribute DOMString? name;
|
|
91
|
+
readonly attribute BluetoothRemoteGATTServer? gatt;
|
|
92
|
+
|
|
93
|
+
Promise<undefined> forget();
|
|
94
|
+
Promise<undefined> watchAdvertisements(
|
|
95
|
+
optional WatchAdvertisementsOptions options = {});
|
|
96
|
+
readonly attribute boolean watchingAdvertisements;
|
|
97
|
+
};
|
|
98
|
+
BluetoothDevice includes BluetoothDeviceEventHandlers;
|
|
99
|
+
BluetoothDevice includes CharacteristicEventHandlers;
|
|
100
|
+
BluetoothDevice includes ServiceEventHandlers;
|
|
101
|
+
|
|
102
|
+
dictionary WatchAdvertisementsOptions {
|
|
103
|
+
AbortSignal signal;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
[Exposed=Window, SecureContext]
|
|
107
|
+
interface BluetoothManufacturerDataMap {
|
|
108
|
+
readonly maplike<unsigned short, DataView>;
|
|
109
|
+
};
|
|
110
|
+
[Exposed=Window, SecureContext]
|
|
111
|
+
interface BluetoothServiceDataMap {
|
|
112
|
+
readonly maplike<UUID, DataView>;
|
|
113
|
+
};
|
|
114
|
+
[
|
|
115
|
+
Exposed=Window,
|
|
116
|
+
SecureContext
|
|
117
|
+
]
|
|
118
|
+
interface BluetoothAdvertisingEvent : Event {
|
|
119
|
+
constructor(DOMString type, BluetoothAdvertisingEventInit init);
|
|
120
|
+
[SameObject]
|
|
121
|
+
readonly attribute BluetoothDevice device;
|
|
122
|
+
readonly attribute FrozenArray<UUID> uuids;
|
|
123
|
+
readonly attribute DOMString? name;
|
|
124
|
+
readonly attribute unsigned short? appearance;
|
|
125
|
+
readonly attribute byte? txPower;
|
|
126
|
+
readonly attribute byte? rssi;
|
|
127
|
+
[SameObject]
|
|
128
|
+
readonly attribute BluetoothManufacturerDataMap manufacturerData;
|
|
129
|
+
[SameObject]
|
|
130
|
+
readonly attribute BluetoothServiceDataMap serviceData;
|
|
131
|
+
};
|
|
132
|
+
dictionary BluetoothAdvertisingEventInit : EventInit {
|
|
133
|
+
required BluetoothDevice device;
|
|
134
|
+
sequence<(DOMString or unsigned long)> uuids;
|
|
135
|
+
DOMString name;
|
|
136
|
+
unsigned short appearance;
|
|
137
|
+
byte txPower;
|
|
138
|
+
byte rssi;
|
|
139
|
+
BluetoothManufacturerDataMap manufacturerData;
|
|
140
|
+
BluetoothServiceDataMap serviceData;
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
[Exposed=Window, SecureContext]
|
|
144
|
+
interface BluetoothRemoteGATTServer {
|
|
145
|
+
[SameObject]
|
|
146
|
+
readonly attribute BluetoothDevice device;
|
|
147
|
+
readonly attribute boolean connected;
|
|
148
|
+
Promise<BluetoothRemoteGATTServer> connect();
|
|
149
|
+
undefined disconnect();
|
|
150
|
+
Promise<BluetoothRemoteGATTService> getPrimaryService(BluetoothServiceUUID service);
|
|
151
|
+
Promise<sequence<BluetoothRemoteGATTService>>
|
|
152
|
+
getPrimaryServices(optional BluetoothServiceUUID service);
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
[Exposed=Window, SecureContext]
|
|
156
|
+
interface BluetoothRemoteGATTService : EventTarget {
|
|
157
|
+
[SameObject]
|
|
158
|
+
readonly attribute BluetoothDevice device;
|
|
159
|
+
readonly attribute UUID uuid;
|
|
160
|
+
readonly attribute boolean isPrimary;
|
|
161
|
+
Promise<BluetoothRemoteGATTCharacteristic>
|
|
162
|
+
getCharacteristic(BluetoothCharacteristicUUID characteristic);
|
|
163
|
+
Promise<sequence<BluetoothRemoteGATTCharacteristic>>
|
|
164
|
+
getCharacteristics(optional BluetoothCharacteristicUUID characteristic);
|
|
165
|
+
Promise<BluetoothRemoteGATTService>
|
|
166
|
+
getIncludedService(BluetoothServiceUUID service);
|
|
167
|
+
Promise<sequence<BluetoothRemoteGATTService>>
|
|
168
|
+
getIncludedServices(optional BluetoothServiceUUID service);
|
|
169
|
+
};
|
|
170
|
+
BluetoothRemoteGATTService includes CharacteristicEventHandlers;
|
|
171
|
+
BluetoothRemoteGATTService includes ServiceEventHandlers;
|
|
172
|
+
|
|
173
|
+
[Exposed=Window, SecureContext]
|
|
174
|
+
interface BluetoothRemoteGATTCharacteristic : EventTarget {
|
|
175
|
+
[SameObject]
|
|
176
|
+
readonly attribute BluetoothRemoteGATTService service;
|
|
177
|
+
readonly attribute UUID uuid;
|
|
178
|
+
readonly attribute BluetoothCharacteristicProperties properties;
|
|
179
|
+
readonly attribute DataView? value;
|
|
180
|
+
Promise<BluetoothRemoteGATTDescriptor> getDescriptor(BluetoothDescriptorUUID descriptor);
|
|
181
|
+
Promise<sequence<BluetoothRemoteGATTDescriptor>>
|
|
182
|
+
getDescriptors(optional BluetoothDescriptorUUID descriptor);
|
|
183
|
+
Promise<DataView> readValue();
|
|
184
|
+
Promise<undefined> writeValue(BufferSource value);
|
|
185
|
+
Promise<undefined> writeValueWithResponse(BufferSource value);
|
|
186
|
+
Promise<undefined> writeValueWithoutResponse(BufferSource value);
|
|
187
|
+
Promise<BluetoothRemoteGATTCharacteristic> startNotifications();
|
|
188
|
+
Promise<BluetoothRemoteGATTCharacteristic> stopNotifications();
|
|
189
|
+
};
|
|
190
|
+
BluetoothRemoteGATTCharacteristic includes CharacteristicEventHandlers;
|
|
191
|
+
|
|
192
|
+
[Exposed=Window, SecureContext]
|
|
193
|
+
interface BluetoothCharacteristicProperties {
|
|
194
|
+
readonly attribute boolean broadcast;
|
|
195
|
+
readonly attribute boolean read;
|
|
196
|
+
readonly attribute boolean writeWithoutResponse;
|
|
197
|
+
readonly attribute boolean write;
|
|
198
|
+
readonly attribute boolean notify;
|
|
199
|
+
readonly attribute boolean indicate;
|
|
200
|
+
readonly attribute boolean authenticatedSignedWrites;
|
|
201
|
+
readonly attribute boolean reliableWrite;
|
|
202
|
+
readonly attribute boolean writableAuxiliaries;
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
[Exposed=Window, SecureContext]
|
|
206
|
+
interface BluetoothRemoteGATTDescriptor {
|
|
207
|
+
[SameObject]
|
|
208
|
+
readonly attribute BluetoothRemoteGATTCharacteristic characteristic;
|
|
209
|
+
readonly attribute UUID uuid;
|
|
210
|
+
readonly attribute DataView? value;
|
|
211
|
+
Promise<DataView> readValue();
|
|
212
|
+
Promise<undefined> writeValue(BufferSource value);
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
[SecureContext]
|
|
216
|
+
interface mixin CharacteristicEventHandlers {
|
|
217
|
+
attribute EventHandler oncharacteristicvaluechanged;
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
[SecureContext]
|
|
221
|
+
interface mixin BluetoothDeviceEventHandlers {
|
|
222
|
+
attribute EventHandler onadvertisementreceived;
|
|
223
|
+
attribute EventHandler ongattserverdisconnected;
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
[SecureContext]
|
|
227
|
+
interface mixin ServiceEventHandlers {
|
|
228
|
+
attribute EventHandler onserviceadded;
|
|
229
|
+
attribute EventHandler onservicechanged;
|
|
230
|
+
attribute EventHandler onserviceremoved;
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
typedef DOMString UUID;
|
|
234
|
+
|
|
235
|
+
[Exposed=Window]
|
|
236
|
+
interface BluetoothUUID {
|
|
237
|
+
static UUID getService((DOMString or unsigned long) name);
|
|
238
|
+
static UUID getCharacteristic((DOMString or unsigned long) name);
|
|
239
|
+
static UUID getDescriptor((DOMString or unsigned long) name);
|
|
240
|
+
|
|
241
|
+
static UUID canonicalUUID([EnforceRange] unsigned long alias);
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
typedef (DOMString or unsigned long) BluetoothServiceUUID;
|
|
245
|
+
typedef (DOMString or unsigned long) BluetoothCharacteristicUUID;
|
|
246
|
+
typedef (DOMString or unsigned long) BluetoothDescriptorUUID;
|
|
247
|
+
|
|
248
|
+
[SecureContext]
|
|
249
|
+
partial interface Navigator {
|
|
250
|
+
[SameObject]
|
|
251
|
+
readonly attribute Bluetooth bluetooth;
|
|
252
|
+
};
|
package/web-locks.idl
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// GENERATED CONTENT - DO NOT EDIT
|
|
2
|
+
// Content was automatically extracted by Reffy into webref
|
|
3
|
+
// (https://github.com/w3c/webref)
|
|
4
|
+
// Source: Web Locks API (https://w3c.github.io/web-locks/)
|
|
5
|
+
|
|
6
|
+
[SecureContext]
|
|
7
|
+
interface mixin NavigatorLocks {
|
|
8
|
+
readonly attribute LockManager locks;
|
|
9
|
+
};
|
|
10
|
+
Navigator includes NavigatorLocks;
|
|
11
|
+
WorkerNavigator includes NavigatorLocks;
|
|
12
|
+
|
|
13
|
+
[SecureContext, Exposed=(Window,Worker)]
|
|
14
|
+
interface LockManager {
|
|
15
|
+
Promise<any> request(DOMString name,
|
|
16
|
+
LockGrantedCallback callback);
|
|
17
|
+
Promise<any> request(DOMString name,
|
|
18
|
+
LockOptions options,
|
|
19
|
+
LockGrantedCallback callback);
|
|
20
|
+
|
|
21
|
+
Promise<LockManagerSnapshot> query();
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
callback LockGrantedCallback = Promise<any> (Lock? lock);
|
|
25
|
+
|
|
26
|
+
enum LockMode { "shared", "exclusive" };
|
|
27
|
+
|
|
28
|
+
dictionary LockOptions {
|
|
29
|
+
LockMode mode = "exclusive";
|
|
30
|
+
boolean ifAvailable = false;
|
|
31
|
+
boolean steal = false;
|
|
32
|
+
AbortSignal signal;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
dictionary LockManagerSnapshot {
|
|
36
|
+
sequence<LockInfo> held;
|
|
37
|
+
sequence<LockInfo> pending;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
dictionary LockInfo {
|
|
41
|
+
DOMString name;
|
|
42
|
+
LockMode mode;
|
|
43
|
+
DOMString clientId;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
[SecureContext, Exposed=(Window,Worker)]
|
|
47
|
+
interface Lock {
|
|
48
|
+
readonly attribute DOMString name;
|
|
49
|
+
readonly attribute LockMode mode;
|
|
50
|
+
};
|
package/web-nfc.idl
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
// GENERATED CONTENT - DO NOT EDIT
|
|
2
|
+
// Content was automatically extracted by Reffy into webref
|
|
3
|
+
// (https://github.com/w3c/webref)
|
|
4
|
+
// Source: Web NFC (https://w3c.github.io/web-nfc/)
|
|
5
|
+
|
|
6
|
+
[SecureContext, Exposed=Window]
|
|
7
|
+
interface NDEFMessage {
|
|
8
|
+
constructor(NDEFMessageInit messageInit);
|
|
9
|
+
readonly attribute FrozenArray<NDEFRecord> records;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
dictionary NDEFMessageInit {
|
|
13
|
+
required sequence<NDEFRecordInit> records;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
[SecureContext, Exposed=Window]
|
|
17
|
+
interface NDEFRecord {
|
|
18
|
+
constructor(NDEFRecordInit recordInit);
|
|
19
|
+
|
|
20
|
+
readonly attribute USVString recordType;
|
|
21
|
+
readonly attribute USVString? mediaType;
|
|
22
|
+
readonly attribute USVString? id;
|
|
23
|
+
readonly attribute DataView? data;
|
|
24
|
+
|
|
25
|
+
readonly attribute USVString? encoding;
|
|
26
|
+
readonly attribute USVString? lang;
|
|
27
|
+
|
|
28
|
+
sequence<NDEFRecord>? toRecords();
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
dictionary NDEFRecordInit {
|
|
32
|
+
required USVString recordType;
|
|
33
|
+
USVString mediaType;
|
|
34
|
+
USVString id;
|
|
35
|
+
|
|
36
|
+
USVString encoding;
|
|
37
|
+
USVString lang;
|
|
38
|
+
|
|
39
|
+
any data; // DOMString or BufferSource or NDEFMessageInit
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
typedef (DOMString or BufferSource or NDEFMessageInit) NDEFMessageSource;
|
|
43
|
+
|
|
44
|
+
[SecureContext, Exposed=Window]
|
|
45
|
+
interface NDEFReader : EventTarget {
|
|
46
|
+
constructor();
|
|
47
|
+
|
|
48
|
+
attribute EventHandler onreading;
|
|
49
|
+
attribute EventHandler onreadingerror;
|
|
50
|
+
|
|
51
|
+
Promise<undefined> scan(optional NDEFScanOptions options={});
|
|
52
|
+
Promise<undefined> write(NDEFMessageSource message,
|
|
53
|
+
optional NDEFWriteOptions options={});
|
|
54
|
+
Promise<undefined> makeReadOnly(optional NDEFMakeReadOnlyOptions options={});
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
[SecureContext, Exposed=Window]
|
|
58
|
+
interface NDEFReadingEvent : Event {
|
|
59
|
+
constructor(DOMString type, NDEFReadingEventInit readingEventInitDict);
|
|
60
|
+
|
|
61
|
+
readonly attribute DOMString serialNumber;
|
|
62
|
+
[SameObject] readonly attribute NDEFMessage message;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
dictionary NDEFReadingEventInit : EventInit {
|
|
66
|
+
DOMString? serialNumber = "";
|
|
67
|
+
required NDEFMessageInit message;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
dictionary NDEFWriteOptions {
|
|
71
|
+
boolean overwrite = true;
|
|
72
|
+
AbortSignal? signal;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
dictionary NDEFMakeReadOnlyOptions {
|
|
76
|
+
AbortSignal? signal;
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
dictionary NDEFScanOptions {
|
|
80
|
+
AbortSignal signal;
|
|
81
|
+
};
|
package/web-otp.idl
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// GENERATED CONTENT - DO NOT EDIT
|
|
2
|
+
// Content was automatically extracted by Reffy into webref
|
|
3
|
+
// (https://github.com/w3c/webref)
|
|
4
|
+
// Source: WebOTP API (https://wicg.github.io/web-otp/)
|
|
5
|
+
|
|
6
|
+
[Exposed=Window, SecureContext]
|
|
7
|
+
interface OTPCredential : Credential {
|
|
8
|
+
readonly attribute DOMString code;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
partial dictionary CredentialRequestOptions {
|
|
12
|
+
OTPCredentialRequestOptions otp;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
dictionary OTPCredentialRequestOptions {
|
|
16
|
+
sequence<OTPCredentialTransportType> transport = [];
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
enum OTPCredentialTransportType {
|
|
20
|
+
"sms",
|
|
21
|
+
};
|
package/web-share.idl
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// GENERATED CONTENT - DO NOT EDIT
|
|
2
|
+
// Content was automatically extracted by Reffy into webref
|
|
3
|
+
// (https://github.com/w3c/webref)
|
|
4
|
+
// Source: Web Share API (https://w3c.github.io/web-share/)
|
|
5
|
+
|
|
6
|
+
partial interface Navigator {
|
|
7
|
+
[SecureContext] Promise<undefined> share(optional ShareData data = {});
|
|
8
|
+
[SecureContext] boolean canShare(optional ShareData data = {});
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
dictionary ShareData {
|
|
12
|
+
sequence<File> files;
|
|
13
|
+
USVString title;
|
|
14
|
+
USVString text;
|
|
15
|
+
USVString url;
|
|
16
|
+
};
|