@cloudflare/ai-search-snippet 0.0.22 → 0.0.24
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 +8 -0
- package/dist/search-snippet.es.js +308 -235
- package/dist/search-snippet.es.js.map +1 -1
- package/dist/search-snippet.umd.js +85 -60
- package/dist/search-snippet.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -200,6 +200,8 @@ declare class SearchBarSnippet extends HTMLElement {
|
|
|
200
200
|
private searchButton;
|
|
201
201
|
private debouncedSearch;
|
|
202
202
|
private currentSearchController;
|
|
203
|
+
private loadingMessageInterval;
|
|
204
|
+
private loadingMessageIndex;
|
|
203
205
|
private handleInputChange;
|
|
204
206
|
private handleInputKeydownEnter;
|
|
205
207
|
private handleInputKeydownEscape;
|
|
@@ -219,6 +221,8 @@ declare class SearchBarSnippet extends HTMLElement {
|
|
|
219
221
|
private renderResultImage;
|
|
220
222
|
private attachResultHandlers;
|
|
221
223
|
private showLoadingState;
|
|
224
|
+
private startLoadingInterval;
|
|
225
|
+
private clearLoadingInterval;
|
|
222
226
|
private showEmptyState;
|
|
223
227
|
private showNoResultsState;
|
|
224
228
|
private showErrorState;
|
|
@@ -250,6 +254,8 @@ export declare class SearchModalSnippet extends HTMLElement {
|
|
|
250
254
|
private activeIndex;
|
|
251
255
|
private debouncedSearch;
|
|
252
256
|
private currentSearchController;
|
|
257
|
+
private loadingMessageInterval;
|
|
258
|
+
private loadingMessageIndex;
|
|
253
259
|
private handleGlobalKeydown;
|
|
254
260
|
private handleInputChange;
|
|
255
261
|
private handleInputKeydown;
|
|
@@ -277,6 +283,8 @@ export declare class SearchModalSnippet extends HTMLElement {
|
|
|
277
283
|
private renderEmptyState;
|
|
278
284
|
private showEmptyState;
|
|
279
285
|
private showLoadingState;
|
|
286
|
+
private startLoadingInterval;
|
|
287
|
+
private clearLoadingInterval;
|
|
280
288
|
private showNoResultsState;
|
|
281
289
|
private showErrorState;
|
|
282
290
|
private updateTheme;
|