@rescript/webapi 0.1.0-experimental-7363f00 → 0.1.0-experimental-0d6538f
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/package.json +1 -1
- package/src/CSSFontLoadingAPI.res +3 -0
- package/src/CanvasAPI.res +6 -0
- package/src/ChannelMessagingAPI.res +1 -0
- package/src/ClipboardAPI.res +2 -0
- package/src/CredentialManagementAPI.res +1 -0
- package/src/DOMAPI.res +125 -5
- package/src/EncryptedMediaExtensionsAPI.res +4 -0
- package/src/EventAPI.res +4 -0
- package/src/FetchAPI.res +8 -3
- package/src/FileAPI.res +7 -0
- package/src/FileAndDirectoryEntriesAPI.res +3 -0
- package/src/GamepadAPI.res +1 -0
- package/src/GeolocationAPI.res +3 -0
- package/src/HistoryAPI.res +1 -0
- package/src/IndexedDBAPI.res +5 -0
- package/src/MediaCapabilitiesAPI.res +1 -0
- package/src/MediaCaptureAndStreamsAPI.res +4 -0
- package/src/MediaSessionAPI.res +2 -0
- package/src/NotificationAPI.res +1 -0
- package/src/PerformanceAPI.res +3 -0
- package/src/PermissionsAPI.res +1 -0
- package/src/PushManagerAPI.res +2 -0
- package/src/RemotePlaybackAPI.res +1 -0
- package/src/ResizeObserverAPI.res +1 -0
- package/src/ScreenWakeLockAPI.res +2 -0
- package/src/ServiceWorkerAPI.res +6 -0
- package/src/StorageAPI.res +1 -0
- package/src/UIEventsAPI.res +14 -0
- package/src/ViewTransitionsAPI.res +1 -0
- package/src/WebAudioAPI.res +30 -0
- package/src/WebCryptoAPI.res +2 -0
- package/src/WebLocksAPI.res +1 -0
- package/src/WebSocketsAPI.res +2 -0
- package/src/WebSpeechAPI.res +2 -0
- package/src/WebStorageAPI.res +2 -0
- package/src/WebVTTAPI.res +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rescript/webapi",
|
|
3
|
-
"version": "0.1.0-experimental-
|
|
3
|
+
"version": "0.1.0-experimental-0d6538f",
|
|
4
4
|
"description": "Experimental successor to [rescript-webapi](https://github.com/TheSpyder/rescript-webapi)",
|
|
5
5
|
"homepage": "https://rescript-lang.github.io/experimental-rescript-webapi/",
|
|
6
6
|
"bugs": "https://github.com/rescript-lang/experimental-rescript-webapi/issues",
|
|
@@ -22,6 +22,7 @@ type fontFaceSetLoadStatus =
|
|
|
22
22
|
/**
|
|
23
23
|
[See FontFace on MDN](https://developer.mozilla.org/docs/Web/API/FontFace)
|
|
24
24
|
*/
|
|
25
|
+
@editor.completeFrom(FontFace)
|
|
25
26
|
type rec fontFace = {
|
|
26
27
|
/**
|
|
27
28
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFace/family)
|
|
@@ -76,6 +77,8 @@ type rec fontFace = {
|
|
|
76
77
|
/**
|
|
77
78
|
[See FontFaceSet on MDN](https://developer.mozilla.org/docs/Web/API/FontFaceSet)
|
|
78
79
|
*/
|
|
80
|
+
@editor.completeFrom(FontFace)
|
|
81
|
+
@editor.completeFrom(FontFaceSet)
|
|
79
82
|
type rec fontFaceSet = {
|
|
80
83
|
...eventTarget,
|
|
81
84
|
/**
|
package/src/CanvasAPI.res
CHANGED
|
@@ -120,6 +120,7 @@ type webGLPowerPreference =
|
|
|
120
120
|
/**
|
|
121
121
|
[See OffscreenCanvas on MDN](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas)
|
|
122
122
|
*/
|
|
123
|
+
@editor.completeFrom(OffscreenCanvas)
|
|
123
124
|
type offscreenCanvas = {
|
|
124
125
|
...eventTarget,
|
|
125
126
|
/**
|
|
@@ -141,6 +142,7 @@ They can be set, to replace the bitmap with a new, transparent black bitmap of t
|
|
|
141
142
|
/**
|
|
142
143
|
[See ImageBitmap on MDN](https://developer.mozilla.org/docs/Web/API/ImageBitmap)
|
|
143
144
|
*/
|
|
145
|
+
@editor.completeFrom(ImageBitmap)
|
|
144
146
|
type imageBitmap = {
|
|
145
147
|
/**
|
|
146
148
|
Returns the intrinsic width of the image, in CSS pixels.
|
|
@@ -271,6 +273,7 @@ type offscreenCanvasRenderingContext2D = {
|
|
|
271
273
|
/**
|
|
272
274
|
[See ImageBitmapRenderingContext on MDN](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext)
|
|
273
275
|
*/
|
|
276
|
+
@editor.completeFrom(ImageBitmapRenderingContext)
|
|
274
277
|
type imageBitmapRenderingContext = {
|
|
275
278
|
/**
|
|
276
279
|
Returns the canvas element that the context is bound to.
|
|
@@ -336,18 +339,21 @@ type webGL2RenderingContext = {
|
|
|
336
339
|
An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient().
|
|
337
340
|
[See CanvasGradient on MDN](https://developer.mozilla.org/docs/Web/API/CanvasGradient)
|
|
338
341
|
*/
|
|
342
|
+
@editor.completeFrom(CanvasGradient)
|
|
339
343
|
type canvasGradient = {}
|
|
340
344
|
|
|
341
345
|
/**
|
|
342
346
|
An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method.
|
|
343
347
|
[See CanvasPattern on MDN](https://developer.mozilla.org/docs/Web/API/CanvasPattern)
|
|
344
348
|
*/
|
|
349
|
+
@editor.completeFrom(CanvasPattern)
|
|
345
350
|
type canvasPattern = {}
|
|
346
351
|
|
|
347
352
|
/**
|
|
348
353
|
This Canvas 2D API interface is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired.
|
|
349
354
|
[See Path2D on MDN](https://developer.mozilla.org/docs/Web/API/Path2D)
|
|
350
355
|
*/
|
|
356
|
+
@editor.completeFrom(Path2D)
|
|
351
357
|
type path2D = {}
|
|
352
358
|
|
|
353
359
|
/**
|
|
@@ -6,6 +6,7 @@ open EventAPI
|
|
|
6
6
|
This Channel Messaging API interface represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other.
|
|
7
7
|
[See MessagePort on MDN](https://developer.mozilla.org/docs/Web/API/MessagePort)
|
|
8
8
|
*/
|
|
9
|
+
@editor.completeFrom(MessagePort)
|
|
9
10
|
type messagePort = {
|
|
10
11
|
...eventTarget,
|
|
11
12
|
}
|
package/src/ClipboardAPI.res
CHANGED
|
@@ -10,6 +10,7 @@ type presentationStyle =
|
|
|
10
10
|
/**
|
|
11
11
|
[See ClipboardItem on MDN](https://developer.mozilla.org/docs/Web/API/ClipboardItem)
|
|
12
12
|
*/
|
|
13
|
+
@editor.completeFrom(ClipboardItem)
|
|
13
14
|
type clipboardItem = {
|
|
14
15
|
/**
|
|
15
16
|
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/ClipboardItem/presentationStyle)
|
|
@@ -24,6 +25,7 @@ type clipboardItem = {
|
|
|
24
25
|
/**
|
|
25
26
|
[See Clipboard on MDN](https://developer.mozilla.org/docs/Web/API/Clipboard)
|
|
26
27
|
*/
|
|
28
|
+
@editor.completeFrom(Clipboard)
|
|
27
29
|
type clipboard = {
|
|
28
30
|
...eventTarget,
|
|
29
31
|
}
|