rockin 0.0.33 → 0.0.34

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.
@@ -24,9 +24,9 @@ import {
24
24
 
25
25
  // src/hooks/useSearchParams.ts
26
26
  import {
27
+ useSearchParams as useNextSearchParams,
27
28
  usePathname,
28
- useRouter,
29
- useSearchParams as useNextSearchParams
29
+ useRouter
30
30
  } from "next/navigation";
31
31
  import {
32
32
  debounce,
@@ -34,8 +34,8 @@ import {
34
34
  } from "nuqs";
35
35
  import { NuqsAdapter } from "nuqs/adapters/next/app";
36
36
  import * as React from "react";
37
- var SEARCH_DELAY = 500;
38
- var PRODUCT_SEARCH_DELAY = 800;
37
+ var SEARCH_DELAY = 300;
38
+ var QUERY_SEARCH_DELAY = 300;
39
39
  function isSearchPath(pathname) {
40
40
  return pathname === "/" || pathname === "/pos" || pathname === "/orders" || pathname === "/bin" || pathname.startsWith("/pos/") || pathname.startsWith("/orders/") || pathname.startsWith("/bin/");
41
41
  }
@@ -82,9 +82,7 @@ function useSearchParams() {
82
82
  history: "replace",
83
83
  scroll: false,
84
84
  shallow: !onSearchPath,
85
- limitUrlUpdates: debounce(
86
- onSearchPath ? SEARCH_DELAY : PRODUCT_SEARCH_DELAY
87
- )
85
+ limitUrlUpdates: debounce(QUERY_SEARCH_DELAY)
88
86
  }
89
87
  );
90
88
  if (onSearchPath) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rockin",
3
- "version": "0.0.33",
3
+ "version": "0.0.34",
4
4
  "description": "Reusable React UI components, hooks, icons, utilities, and styles for Rock Star projects.",
5
5
  "keywords": [
6
6
  "react",