@tivio/sdk-react 4.1.0 → 4.2.0

Sign up to get free protection for your applications and to get access to all the features.
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
- hasRoundCorners: boolean;
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>> | null;
2385
+ pagination: Omit<PaginationInterface<UseSearchResult<T>>, 'loading'> | null;
2385
2386
  error: Error | null;
2386
2387
  isLoading: boolean;
2387
2388
  lastQuery: string;