@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/dist/sdk-react.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
|
};
|
@@ -414,11 +414,24 @@ export declare type Customizations = {
|
|
414
414
|
*/
|
415
415
|
coverWidth: number;
|
416
416
|
fontWeight: string | number;
|
417
|
+
overlayWidth: string | number;
|
418
|
+
};
|
419
|
+
Row: {
|
420
|
+
/**
|
421
|
+
* Customizations of Banner component that is used as Row on Customer screen (e.g. WebBannerData)
|
422
|
+
*/
|
423
|
+
Banner: {
|
424
|
+
borderRadius: string | number;
|
425
|
+
};
|
426
|
+
header: {
|
427
|
+
opacity: number;
|
428
|
+
};
|
417
429
|
};
|
418
430
|
Header: {
|
419
431
|
backgroundColor: string;
|
420
432
|
activeLinkUnderlineColor: string;
|
421
433
|
logoHeight: string;
|
434
|
+
borderBottom: string;
|
422
435
|
};
|
423
436
|
Input: InputOptions;
|
424
437
|
landing: {
|
@@ -709,6 +722,7 @@ export declare enum LangCode {
|
|
709
722
|
FR = "fr",
|
710
723
|
IT = "it",
|
711
724
|
PL = "pl",
|
725
|
+
PT = "pt",
|
712
726
|
SK = "sk",
|
713
727
|
ES = "es"
|
714
728
|
}
|
@@ -1733,9 +1747,12 @@ export declare type TaggedVideosOrderByField = 'seasonNumber' | 'episodeNumber'
|
|
1733
1747
|
* @internal
|
1734
1748
|
*/
|
1735
1749
|
export declare type TileOptions = {
|
1736
|
-
focusedShadow: boolean;
|
1737
1750
|
focusedShadowColor?: string;
|
1738
1751
|
borderColor: string;
|
1752
|
+
/**
|
1753
|
+
* This property is ignored for CIRCLED tiles, they always have border-radius: 50%;
|
1754
|
+
*/
|
1755
|
+
borderRadius: string | number;
|
1739
1756
|
innerLabel: {
|
1740
1757
|
/**
|
1741
1758
|
* Font size in px
|
@@ -1745,6 +1762,10 @@ export declare type TileOptions = {
|
|
1745
1762
|
bottomLabel: {
|
1746
1763
|
opacity: string | number;
|
1747
1764
|
fontWeight: string;
|
1765
|
+
/**
|
1766
|
+
* Font size in px
|
1767
|
+
*/
|
1768
|
+
fontSize: number;
|
1748
1769
|
};
|
1749
1770
|
sizes: {
|
1750
1771
|
[variant in TileSizeVariant]: TileSizesMap;
|
@@ -2553,7 +2574,7 @@ export declare enum UserType {
|
|
2553
2574
|
*/
|
2554
2575
|
export declare type UseSearch = <T extends ALGOLIA_INDEX_NAME>(indexName: T, options?: UseSearchOptions) => {
|
2555
2576
|
search: (query: string) => void;
|
2556
|
-
pagination: PaginationInterface<UseSearchResult<T
|
2577
|
+
pagination: Omit<PaginationInterface<UseSearchResult<T>>, 'loading'> | null;
|
2557
2578
|
error: Error | null;
|
2558
2579
|
isLoading: boolean;
|
2559
2580
|
lastQuery: string;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@tivio/sdk-react",
|
3
|
-
"version": "4.
|
3
|
+
"version": "4.2.0",
|
4
4
|
"main": "dist/index.js",
|
5
5
|
"typings": "dist/index.d.ts",
|
6
6
|
"source": "src/index.ts",
|
@@ -30,7 +30,7 @@
|
|
30
30
|
"@material-ui/core": "^4.11.2",
|
31
31
|
"@material-ui/icons": "^4.11.2",
|
32
32
|
"@sentry/browser": "^6.1.0",
|
33
|
-
"@tivio/common": "1.1.
|
33
|
+
"@tivio/common": "1.1.98",
|
34
34
|
"dayjs": "^1.11.0",
|
35
35
|
"es7-object-polyfill": "^1.0.1",
|
36
36
|
"firebase": "8.10.1",
|