@colisweb/rescript-toolkit 2.28.0 → 2.29.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colisweb/rescript-toolkit",
3
- "version": "2.28.0",
3
+ "version": "2.29.0",
4
4
  "scripts": {
5
5
  "clean": "rescript clean",
6
6
  "build": "rescript build",
@@ -50,3 +50,9 @@ module DomElement = {
50
50
 
51
51
  @val
52
52
  external innerWidth: int = "window.innerWidth"
53
+
54
+ @val
55
+ external screenWidth: int = "window.screen.width"
56
+
57
+ @val
58
+ external screenHeight: int = "window.screen.height"
@@ -0,0 +1,16 @@
1
+ module Browser = {
2
+ @module("@datadog/browser-rum") @scope("datadogRum")
3
+ external datadogRumInit: 'a => unit = "init"
4
+
5
+ @module("@datadog/browser-rum") @scope("datadogRum")
6
+ external startSessionReplayRecording: 'a => unit = "startSessionReplayRecording"
7
+
8
+ @module("@datadog/browser-rum") @scope("datadogRum")
9
+ external addAction: (string, 'a) => unit = "addAction"
10
+
11
+ @module("@datadog/browser-rum") @scope("datadogRum")
12
+ external addRumGlobalContext: (string, 'a) => unit = "addRumGlobalContext"
13
+
14
+ @module("@datadog/browser-rum") @scope("datadogRum")
15
+ external setUser: 'a => unit = "setUser"
16
+ }