@cloudflare/ai-search-snippet 0.0.27 → 0.0.29

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/dist/main.d.ts CHANGED
@@ -218,6 +218,7 @@ declare class SearchBarSnippet extends HTMLElement {
218
218
  private showEmptyState;
219
219
  private showNoResultsState;
220
220
  private showErrorState;
221
+ private showMissingApiUrlError;
221
222
  private updateTheme;
222
223
  private cleanup;
223
224
  search(query: string): Promise<void>;
@@ -279,6 +280,7 @@ export declare class SearchModalSnippet extends HTMLElement {
279
280
  private clearLoadingInterval;
280
281
  private showNoResultsState;
281
282
  private showErrorState;
283
+ private showMissingApiUrlError;
282
284
  private updateTheme;
283
285
  private lockBodyScroll;
284
286
  private unlockBodyScroll;
@@ -316,6 +318,7 @@ export declare interface SearchOptions {
316
318
  query?: string;
317
319
  streaming?: boolean;
318
320
  signal?: AbortSignal;
321
+ /** Maximum search results to request from the API */
319
322
  maxResults?: number;
320
323
  }
321
324
 
@@ -341,7 +344,7 @@ export declare interface SearchSnippetProps {
341
344
  apiUrl: string;
342
345
  /** Input placeholder text */
343
346
  placeholder?: string;
344
- /** Maximum search results to display (search-bar only) */
347
+ /** Maximum search results to display */
345
348
  maxResults?: number;
346
349
  /** Input debounce delay in milliseconds (search-bar only) */
347
350
  debounceMs?: number;