@stoker-platform/web-app 0.5.207 → 0.5.208

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @stoker-platform/web-app
2
2
 
3
+ ## 0.5.208
4
+
5
+ ### Patch Changes
6
+
7
+ - feat: reduce clear search debounce interval
8
+
3
9
  ## 0.5.207
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stoker-platform/web-app",
3
- "version": "0.5.207",
3
+ "version": "0.5.208",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "scripts": {
package/src/Cards.tsx CHANGED
@@ -1245,12 +1245,15 @@ export function Cards({
1245
1245
  }, [backToStartKey])
1246
1246
 
1247
1247
  useEffect(() => {
1248
- const timer = setTimeout(() => {
1249
- if (isInitialized && fullTextSearch && !isPreloadCacheEnabled && !isServerReadOnly) {
1250
- const constraints = removeCardsStatusFilter(filters)
1251
- backToStart(constraints as QueryConstraint[])
1252
- }
1253
- }, 750)
1248
+ const timer = setTimeout(
1249
+ () => {
1250
+ if (isInitialized && fullTextSearch && !isPreloadCacheEnabled && !isServerReadOnly) {
1251
+ const constraints = removeCardsStatusFilter(filters)
1252
+ backToStart(constraints as QueryConstraint[])
1253
+ }
1254
+ },
1255
+ search ? 750 : 250,
1256
+ )
1254
1257
  return () => clearTimeout(timer)
1255
1258
  }, [search])
1256
1259
 
package/src/Images.tsx CHANGED
@@ -514,11 +514,14 @@ export const Images = memo(
514
514
  setCursor({})
515
515
  infiniteLoaderRef.current?.resetloadMoreItemsCache()
516
516
  }
517
- const timer = setTimeout(() => {
518
- if (fullTextSearch && !isPreloadCacheEnabled && !isServerReadOnly) {
519
- backToStart()
520
- }
521
- }, 750)
517
+ const timer = setTimeout(
518
+ () => {
519
+ if (fullTextSearch && !isPreloadCacheEnabled && !isServerReadOnly) {
520
+ backToStart()
521
+ }
522
+ },
523
+ search ? 750 : 250,
524
+ )
522
525
  return () => clearTimeout(timer)
523
526
  }, [search])
524
527
 
package/src/List.tsx CHANGED
@@ -867,11 +867,14 @@ export function List({
867
867
  }, [])
868
868
 
869
869
  useEffect(() => {
870
- const timer = setTimeout(() => {
871
- if (isInitialized && fullTextSearch && !isPreloadCacheEnabled && !isServerReadOnly) {
872
- backToStart()
873
- }
874
- }, 750)
870
+ const timer = setTimeout(
871
+ () => {
872
+ if (isInitialized && fullTextSearch && !isPreloadCacheEnabled && !isServerReadOnly) {
873
+ backToStart()
874
+ }
875
+ },
876
+ search ? 750 : 250,
877
+ )
875
878
 
876
879
  if (isInitialized && (isPreloadCacheEnabled || isServerReadOnly || isServerFullTextSearch)) {
877
880
  setPageIndex(0)