@rescript/webapi 0.1.0-pre-alpha-4ffc5e2 → 0.1.0-pre-alpha-02fb350

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 (34) hide show
  1. package/package.json +1 -1
  2. package/src/DOMAPI/Document.res +2 -0
  3. package/src/DOMAPI/Element.res +2 -0
  4. package/src/DOMAPI/HTMLCanvasElement.res +2 -0
  5. package/src/DOMAPI/HTMLElement.res +2 -0
  6. package/src/DOMAPI/HTMLImageElement.res +2 -0
  7. package/src/DOMAPI/HTMLInputElement.res +2 -0
  8. package/src/DOMAPI/Location.res +2 -0
  9. package/src/DOMAPI/Node.res +2 -0
  10. package/src/DOMAPI/Window.res +1 -1
  11. package/src/EventAPI/AbortController.res +2 -0
  12. package/src/EventAPI/AbortSignal.res +2 -0
  13. package/src/EventAPI/Event.res +2 -0
  14. package/src/EventAPI/EventTarget.res +2 -0
  15. package/src/EventAPI/ExtendableEvent.res +2 -0
  16. package/src/IntersectionObserverAPI/IntersectionObserver.res +2 -0
  17. package/src/IntersectionObserverAPI/IntersectionObserverRoot.res +2 -0
  18. package/src/MutationObserverAPI/MutationObserver.res +2 -0
  19. package/src/ResizeObserverAPI/ResizeObserver.res +2 -0
  20. package/src/UIEventsAPI/CompositionEvent.res +2 -0
  21. package/src/UIEventsAPI/DataTransfer.res +2 -0
  22. package/src/UIEventsAPI/DataTransferItem.res +2 -0
  23. package/src/UIEventsAPI/DataTransferItemList.res +2 -0
  24. package/src/UIEventsAPI/FocusEvent.res +2 -0
  25. package/src/UIEventsAPI/InputEvent.res +2 -0
  26. package/src/UIEventsAPI/KeyboardEvent.res +2 -0
  27. package/src/UIEventsAPI/MouseEvent.res +2 -0
  28. package/src/UIEventsAPI/PointerEvent.res +2 -0
  29. package/src/UIEventsAPI/Touch.res +2 -0
  30. package/src/UIEventsAPI/TouchEvent.res +2 -0
  31. package/src/UIEventsAPI/TouchList.res +2 -0
  32. package/src/UIEventsAPI/UIEvent.res +2 -0
  33. package/src/UIEventsAPI/WheelEvent.res +2 -0
  34. package/src/ViewTransitionsAPI/ViewTransition.res +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rescript/webapi",
3
- "version": "0.1.0-pre-alpha-4ffc5e2",
3
+ "version": "0.1.0-pre-alpha-02fb350",
4
4
  "description": "Experimental successor to [rescript-webapi](https://github.com/TheSpyder/rescript-webapi)",
5
5
  "keywords": [
6
6
  "dom",
@@ -2,6 +2,8 @@ open DOMTypes
2
2
  open EventTypes
3
3
  open ViewTransitionsTypes
4
4
 
5
+ type t = document = {...document}
6
+
5
7
  /**
6
8
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Document)
7
9
  */
@@ -1,6 +1,8 @@
1
1
  open DOMTypes
2
2
  open Prelude
3
3
 
4
+ type t = element = {...element}
5
+
4
6
  module Impl = (
5
7
  T: {
6
8
  type t
@@ -2,6 +2,8 @@ open DOMTypes
2
2
  open CanvasTypes
3
3
  open MediaCaptureAndStreamsTypes
4
4
 
5
+ type t = htmlCanvasElement = {...htmlCanvasElement}
6
+
5
7
  include HTMLElement.Impl({type t = htmlCanvasElement})
6
8
 
7
9
  /**
@@ -1,5 +1,7 @@
1
1
  open DOMTypes
2
2
 
3
+ type t = htmlElement = {...htmlElement}
4
+
3
5
  module Impl = (
4
6
  T: {
5
7
  type t
@@ -1,5 +1,7 @@
1
1
  open DOMTypes
2
2
 
3
+ type t = htmlImageElement = {...htmlImageElement}
4
+
3
5
  include HTMLElement.Impl({type t = htmlImageElement})
4
6
 
5
7
  /**
@@ -1,5 +1,7 @@
1
1
  open DOMTypes
2
2
 
3
+ type t = htmlInputElement = {...htmlInputElement}
4
+
3
5
  include HTMLElement.Impl({type t = htmlInputElement})
4
6
 
5
7
  /**
@@ -1,5 +1,7 @@
1
1
  open DOMTypes
2
2
 
3
+ type t = location = {...location}
4
+
3
5
  /**
4
6
  Navigates to the given URL.
5
7
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Location/assign)
@@ -1,5 +1,7 @@
1
1
  open DOMTypes
2
2
 
3
+ type t = node = {...node}
4
+
3
5
  module Impl = (
4
6
  T: {
5
7
  type t
@@ -67,7 +67,7 @@ external clearInterval: (window, int) => unit = "clearInterval"
67
67
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/queueMicrotask)
68
68
  */
69
69
  @send
70
- external queueMicrotask: (window, voidFunction) => unit = "queueMicrotask"
70
+ external queueMicrotask: (window, unit => unit) => unit = "queueMicrotask"
71
71
 
72
72
  /**
73
73
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Window/createImageBitmap)
@@ -1,5 +1,7 @@
1
1
  open EventTypes
2
2
 
3
+ type t = abortController = {...abortController}
4
+
3
5
  /**
4
6
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/AbortController)
5
7
  */
@@ -1,5 +1,7 @@
1
1
  open EventTypes
2
2
 
3
+ type t = abortSignal = {...abortSignal}
4
+
3
5
  include EventTarget.Impl({type t = abortSignal})
4
6
 
5
7
  /**
@@ -1,5 +1,7 @@
1
1
  open EventTypes
2
2
 
3
+ type t = event = {...event}
4
+
3
5
  /**
4
6
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Event)
5
7
  */
@@ -1,5 +1,7 @@
1
1
  open EventTypes
2
2
 
3
+ type t = eventTarget = {...eventTarget}
4
+
3
5
  /**
4
6
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/EventTarget)
5
7
  */
@@ -1,5 +1,7 @@
1
1
  open EventTypes
2
2
 
3
+ type t = extendableEvent = {...extendableEvent}
4
+
3
5
  module Impl = (
4
6
  T: {
5
7
  type t
@@ -1,6 +1,8 @@
1
1
  open DOMTypes
2
2
  open IntersectionObserverTypes
3
3
 
4
+ type t = intersectionObserver = {...intersectionObserver}
5
+
4
6
  /**
5
7
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/IntersectionObserver)
6
8
  */
@@ -1,6 +1,8 @@
1
1
  open DOMTypes
2
2
  open IntersectionObserverTypes
3
3
 
4
+ type t = root
5
+
4
6
  external fromDocument: document => root = "%identity"
5
7
  external fromElement: element => root = "%identity"
6
8
  external fromNull: root = "null"
@@ -1,6 +1,8 @@
1
1
  open DOMTypes
2
2
  open MutationObserverTypes
3
3
 
4
+ type t = mutationObserver
5
+
4
6
  /**
5
7
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MutationObserver)
6
8
  */
@@ -1,6 +1,8 @@
1
1
  open DOMTypes
2
2
  open ResizeObserverTypes
3
3
 
4
+ type t = resizeObserver = {...resizeObserver}
5
+
4
6
  /**
5
7
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ResizeObserver)
6
8
  */
@@ -1,5 +1,7 @@
1
1
  open UIEventsTypes
2
2
 
3
+ type t = compositionEvent = {...compositionEvent}
4
+
3
5
  /**
4
6
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/CompositionEvent)
5
7
  */
@@ -1,6 +1,8 @@
1
1
  open UIEventsTypes
2
2
  open DOMTypes
3
3
 
4
+ type t = dataTransfer = {...dataTransfer}
5
+
4
6
  /**
5
7
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DataTransfer)
6
8
  */
@@ -2,6 +2,8 @@ open UIEventsTypes
2
2
  open FileTypes
3
3
  open FileAndDirectoryEntriesTypes
4
4
 
5
+ type t = dataTransferItem = {...dataTransferItem}
6
+
5
7
  /**
6
8
  Invokes the callback with the string data as the argument, if the drag data item kind is text.
7
9
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DataTransferItem/getAsString)
@@ -1,6 +1,8 @@
1
1
  open UIEventsTypes
2
2
  open FileTypes
3
3
 
4
+ type t = dataTransferItemList = {...dataTransferItemList}
5
+
4
6
  /**
5
7
  Adds a new entry for the given data to the drag data store. If the data is plain text then a type string has to be provided also.
6
8
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/add)
@@ -1,5 +1,7 @@
1
1
  open UIEventsTypes
2
2
 
3
+ type t = focusEvent = {...focusEvent}
4
+
3
5
  /**
4
6
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FocusEvent)
5
7
  */
@@ -1,6 +1,8 @@
1
1
  open UIEventsTypes
2
2
  open DOMTypes
3
3
 
4
+ type t = inputEvent = {...inputEvent}
5
+
4
6
  /**
5
7
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/InputEvent)
6
8
  */
@@ -1,5 +1,7 @@
1
1
  open UIEventsTypes
2
2
 
3
+ type t = keyboardEvent = {...keyboardEvent}
4
+
3
5
  /**
4
6
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/KeyboardEvent)
5
7
  */
@@ -1,5 +1,7 @@
1
1
  open UIEventsTypes
2
2
 
3
+ type t = mouseEvent = {...mouseEvent}
4
+
3
5
  /**
4
6
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/MouseEvent)
5
7
  */
@@ -1,5 +1,7 @@
1
1
  open UIEventsTypes
2
2
 
3
+ type t = pointerEvent = {...pointerEvent}
4
+
3
5
  /**
4
6
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/PointerEvent)
5
7
  */
@@ -1,5 +1,7 @@
1
1
  open UIEventsTypes
2
2
 
3
+ type t = touch = {...touch}
4
+
3
5
  /**
4
6
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/Touch)
5
7
  */
@@ -1,5 +1,7 @@
1
1
  open UIEventsTypes
2
2
 
3
+ type t = touchEvent = {...touchEvent}
4
+
3
5
  /**
4
6
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/TouchEvent)
5
7
  */
@@ -1,5 +1,7 @@
1
1
  open UIEventsTypes
2
2
 
3
+ type t = touchList = {...touchList}
4
+
3
5
  /**
4
6
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/TouchList/item)
5
7
  */
@@ -1,5 +1,7 @@
1
1
  open UIEventsTypes
2
2
 
3
+ type t = uiEvent = {...uiEvent}
4
+
3
5
  /**
4
6
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/UIEvent)
5
7
  */
@@ -1,5 +1,7 @@
1
1
  open UIEventsTypes
2
2
 
3
+ type t = wheelEvent = {...wheelEvent}
4
+
3
5
  /**
4
6
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/WheelEvent)
5
7
  */
@@ -1,5 +1,7 @@
1
1
  open ViewTransitionsTypes
2
2
 
3
+ type t = viewTransition = {...viewTransition}
4
+
3
5
  /**
4
6
  [Read more on MDN](https://developer.mozilla.org/docs/Web/API/ViewTransition/skipTransition)
5
7
  */