@searchcraft/react-sdk 0.10.7 → 0.11.1
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/client/index.d.ts +23 -1
- package/dist/client/index.js +6102 -4209
- package/dist/client/index.js.map +1 -1
- package/dist/client/themes/hologram.css +1 -1
- package/dist/client/themes/hologram.css.map +1 -1
- package/dist/server/index.d.ts +541 -219
- package/dist/server/index.js +6326 -4425
- package/dist/server/index.js.map +1 -1
- package/package.json +3 -3
package/dist/client/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export { defineCustomElements }
|
|
|
10
10
|
* The consumer-facing Searchcraft class.
|
|
11
11
|
*/
|
|
12
12
|
export declare class Searchcraft extends SearchcraftCore {
|
|
13
|
-
constructor(config: SearchcraftConfig);
|
|
13
|
+
constructor(config: SearchcraftConfig, searchcraftId?: string | undefined);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
/**
|
|
@@ -262,6 +262,28 @@ export declare interface SearchcraftSearchResultsPerPageProps extends Components
|
|
|
262
262
|
export declare interface SearchcraftSearchResultsProps extends Components.SearchcraftSearchResults {
|
|
263
263
|
}
|
|
264
264
|
|
|
265
|
+
/**
|
|
266
|
+
* This React component displays an ai-generated summary of the given search term.
|
|
267
|
+
*
|
|
268
|
+
* @example
|
|
269
|
+
* ```tsx
|
|
270
|
+
* import React, { useEffect, useRef } from 'react';
|
|
271
|
+
* import { SearchcraftSummaryBox } from '@searchcraft/react-sdk';
|
|
272
|
+
*
|
|
273
|
+
* return <SearchcraftSummaryBox />;
|
|
274
|
+
* };
|
|
275
|
+
*
|
|
276
|
+
* export default MyResultsInfo;
|
|
277
|
+
* ```
|
|
278
|
+
*/
|
|
279
|
+
export declare const SearchcraftSummaryBox: FC<SearchcraftSummaryBoxProps>;
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* The Props for the SearchcraftSummaryBox component.
|
|
283
|
+
*/
|
|
284
|
+
export declare interface SearchcraftSummaryBoxProps extends Components.SearchcraftSummaryBox {
|
|
285
|
+
}
|
|
286
|
+
|
|
265
287
|
/**
|
|
266
288
|
* A component that applies Searchcraft's built-in CSS theme to your page.
|
|
267
289
|
* It does not render anything visible—its only function is to manage the CSS styles on the page.
|