@crowdstrike/logscale-search 1.152.0--build-1781--sha-74f29736aaf83cae2ba3f6aa32b8c4e22ea2fd12 → 1.155.0--build-1887--sha-536090411e3ff3e1a3071b4ead3bdca5f66a007e

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/index.d.ts CHANGED
@@ -688,11 +688,18 @@ export declare class SearchView extends WebcomponentBase<Options> {
688
688
  * Implement this hook to receive notifications about changes to the state of the Search view.
689
689
  *
690
690
  * Use this if you e.g. want to serialize / keep local state of SearchView.
691
+ *
692
+ * **Note**: It is **_not_** necessary to call `SearchView.setState` as a side effect in this callback
693
+ * to update the state of the SearchView instance. It is 100% redundant to do so,
694
+ * as any changes to the state in the notification will have already been applied inside LogScale.
695
+ *
691
696
  * @param callback - function for handling notifications of changes to Search view state.
692
697
  *
698
+ * @param debounceTimeout - set a custom debounce timeout (in millis) on callback invocations. Defaults to 1000
699
+ * Note: This callback can be very noisy, so running with a debounceTimeout of 0 is not recommended.
693
700
  * @public
694
701
  */
695
- onSearchViewStateChanged(callback: (searchViewState: SearchNavigationTargetInfo) => void | null): void;
702
+ onSearchViewStateChanged(callback: (searchViewState: SearchNavigationTargetInfo) => void | null, debounceTimeout?: number): void;
696
703
  /**
697
704
  * Implement this hook to receive notifications about invocations of `FieldInteractions` configured on `Options`.
698
705
  *