@colisweb/rescript-toolkit 4.14.11 → 4.14.13

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": "4.14.11",
3
+ "version": "4.14.13",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "clean": "rescript clean",
@@ -63,7 +63,7 @@ module Core = {
63
63
  ? <Toolkit__Ui_Spread
64
64
  key={"thead-th" ++ index->Int.toString} props={column.getHeaderProps()}>
65
65
  <td
66
- className="px-2 pt-2 border-b border-r border-gray-300 xl:h-20"
66
+ className="px-2 pt-2 border-b border-r border-gray-300 xl:min-h-[5rem]"
67
67
  key={"thead-thd" ++ index->Int.toString}>
68
68
  <Toolkit__Ui_Spread props={column.getSortByToggleProps()}>
69
69
  <div
@@ -39,33 +39,36 @@ module Browser = {
39
39
 
40
40
  let use = (~options: initOptions, ~sessionData, ~contextCallback=?, ()) => {
41
41
  React.useLayoutEffect0(() => {
42
- datadogRumInit({
43
- ...options,
44
- site: "datadoghq.com",
45
- allowedTracingUrls: [%re("/https:\/\/api.*\.colisweb\.com/")],
46
- allowedTracingOrigins: [
47
- %re("/https:\/\/api.*\.colisweb\.com/"),
48
- %re("/https:\/\/bo.*\.colisweb\.com/"),
49
- ],
50
- trackInteractions: true,
51
- defaultPrivacyLevel: "allow",
52
- enableExperimentalFeatures: ["clickmap"],
53
- })
54
-
55
- startSessionReplayRecording()
42
+ if options.env !== "local" {
43
+ datadogRumInit({
44
+ ...options,
45
+ site: "datadoghq.com",
46
+ allowedTracingUrls: [%re("/https:\/\/api.*\.colisweb\.com/")],
47
+ allowedTracingOrigins: [
48
+ %re("/https:\/\/api.*\.colisweb\.com/"),
49
+ %re("/https:\/\/bo.*\.colisweb\.com/"),
50
+ ],
51
+ trackInteractions: true,
52
+ defaultPrivacyLevel: "allow",
53
+ enableExperimentalFeatures: ["clickmap"],
54
+ })
56
55
 
56
+ startSessionReplayRecording()
57
+ }
57
58
  None
58
59
  })
59
60
 
60
61
  React.useLayoutEffect1(() => {
61
- setUser(sessionData)
62
+ if options.env !== "local" {
63
+ setUser(sessionData)
62
64
 
63
- addRumGlobalContext(
64
- "screen_resolution",
65
- `${Browser.screenWidth->Int.toString}x${Browser.screenHeight->Int.toString}`,
66
- )
65
+ addRumGlobalContext(
66
+ "screen_resolution",
67
+ `${Browser.screenWidth->Int.toString}x${Browser.screenHeight->Int.toString}`,
68
+ )
67
69
 
68
- contextCallback->Option.forEach(fn => fn(addRumGlobalContext))
70
+ contextCallback->Option.forEach(fn => fn(addRumGlobalContext))
71
+ }
69
72
 
70
73
  None
71
74
  }, [sessionData->Js.Json.stringifyAny])
@@ -108,6 +108,7 @@ external make: (
108
108
  ~data: array<'data>,
109
109
  ~debug: bool=?,
110
110
  ~initialState: 'initialState=?,
111
+ ~useControlledState: 'initialState => 'initialState=?,
111
112
  ~manualPagination: bool=?,
112
113
  ~manualFilters: bool=?,
113
114
  ~manualSortBy: bool=?,