@tivio/sdk-react 4.1.0 → 4.2.0
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/README.md +4 -0
- package/README.md.bak +4 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +1 -1
- package/dist/sdk-react.d.ts +24 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -6,6 +6,10 @@ settings in the administration of Tivio Studio while having the freedom to build
|
|
|
6
6
|
|
|
7
7
|
## Changelog
|
|
8
8
|
|
|
9
|
+
* v4.2.0:
|
|
10
|
+
* minor: fix useSearch loading type
|
|
11
|
+
* patch: added italian language to `LangCode` enum
|
|
12
|
+
|
|
9
13
|
* v4.1.0
|
|
10
14
|
* patch: added italian language to `LangCode` enum
|
|
11
15
|
* minor: fixed spanish language code in `LangCode` enum (`sp` -> `es`)
|
package/README.md.bak
CHANGED
|
@@ -6,6 +6,10 @@ settings in the administration of Tivio Studio while having the freedom to build
|
|
|
6
6
|
|
|
7
7
|
## Changelog
|
|
8
8
|
|
|
9
|
+
* v4.2.0:
|
|
10
|
+
* minor: fix useSearch loading type
|
|
11
|
+
* patch: added italian language to `LangCode` enum
|
|
12
|
+
|
|
9
13
|
* v4.1.0
|
|
10
14
|
* patch: added italian language to `LangCode` enum
|
|
11
15
|
* minor: fixed spanish language code in `LangCode` enum (`sp` -> `es`)
|
package/dist/index.d.ts
CHANGED
|
@@ -224,7 +224,7 @@ export declare type BannerProps = {
|
|
|
224
224
|
cover: string;
|
|
225
225
|
overlay: boolean;
|
|
226
226
|
price: string;
|
|
227
|
-
|
|
227
|
+
borderRadius?: string | number;
|
|
228
228
|
buttonText?: string;
|
|
229
229
|
onButtonClick?: () => void;
|
|
230
230
|
};
|
|
@@ -614,6 +614,7 @@ export declare enum LangCode {
|
|
|
614
614
|
FR = "fr",
|
|
615
615
|
IT = "it",
|
|
616
616
|
PL = "pl",
|
|
617
|
+
PT = "pt",
|
|
617
618
|
SK = "sk",
|
|
618
619
|
ES = "es"
|
|
619
620
|
}
|
|
@@ -2381,7 +2382,7 @@ export declare enum UserType {
|
|
|
2381
2382
|
*/
|
|
2382
2383
|
export declare type UseSearch = <T extends ALGOLIA_INDEX_NAME>(indexName: T, options?: UseSearchOptions) => {
|
|
2383
2384
|
search: (query: string) => void;
|
|
2384
|
-
pagination: PaginationInterface<UseSearchResult<T
|
|
2385
|
+
pagination: Omit<PaginationInterface<UseSearchResult<T>>, 'loading'> | null;
|
|
2385
2386
|
error: Error | null;
|
|
2386
2387
|
isLoading: boolean;
|
|
2387
2388
|
lastQuery: string;
|