@colisweb/rescript-toolkit 5.43.0 → 5.43.2

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": "5.43.0",
3
+ "version": "5.43.2",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "clean": "rescript clean",
@@ -465,7 +465,7 @@ let useScrollPosition = (~delay=150, ()) => {
465
465
  setScrollPos(_ => {x: Browser.Window.scrollX, y: Browser.Window.scrollY})
466
466
  }
467
467
 
468
- let debouncedScroll = Lodash.debounce(handleScroll, delay)
468
+ let debouncedScroll = Lodash.throttle(handleScroll, delay)
469
469
 
470
470
  Browser.Window.addEventListener("scroll", debouncedScroll)
471
471
 
@@ -21,3 +21,5 @@ external chunk: (array<'a>, int) => array<array<'a>> = "chunk"
21
21
  external isEmpty: 'a => bool = "isEmpty"
22
22
  @module("lodash/debounce")
23
23
  external debounce: ('a => unit, int) => 'b = "default"
24
+ @module("lodash/throttle")
25
+ external throttle: ('a => unit, int) => 'b = "default"
@@ -84,6 +84,7 @@ module Popover = {
84
84
  module Root = {
85
85
  type options = {
86
86
  defaultOpen?: bool,
87
+ @as("open")
87
88
  open_?: bool,
88
89
  onOpenChange?: bool => unit,
89
90
  modal?: bool,
package/vite.config.js CHANGED
@@ -14,8 +14,7 @@ const appDirectory = fs.realpathSync(process.cwd());
14
14
  const isProduction = process.env.NODE_ENV === "production";
15
15
 
16
16
  export default defineConfig({
17
- // base: isProduction ? "/colisweb-open-source/rescript-toolkit/" : "/",
18
- base: "/",
17
+ base: isProduction ? "/colisweb-open-source/rescript-toolkit/" : "/",
19
18
  build: {
20
19
  sourcemap: true,
21
20
  },