@tivio/sdk-react 4.0.1 → 4.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +9 -0
- package/README.md.bak +9 -0
- package/dist/index.d.ts +24 -8
- package/dist/index.js +1 -1
- package/dist/sdk-react.d.ts +64 -9
- package/package.json +2 -2
package/README.md
CHANGED
@@ -6,6 +6,15 @@ 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
|
+
|
13
|
+
* v4.1.0
|
14
|
+
* patch: added italian language to `LangCode` enum
|
15
|
+
* minor: fixed spanish language code in `LangCode` enum (`sp` -> `es`)
|
16
|
+
* minor: other misc type changes
|
17
|
+
|
9
18
|
* v4.0.1
|
10
19
|
* patch: added setBundleVersion setter to bundle type
|
11
20
|
* patch: added setStorageManager setter to bundle type
|
package/README.md.bak
CHANGED
@@ -6,6 +6,15 @@ 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
|
+
|
13
|
+
* v4.1.0
|
14
|
+
* patch: added italian language to `LangCode` enum
|
15
|
+
* minor: fixed spanish language code in `LangCode` enum (`sp` -> `es`)
|
16
|
+
* minor: other misc type changes
|
17
|
+
|
9
18
|
* v4.0.1
|
10
19
|
* patch: added setBundleVersion setter to bundle type
|
11
20
|
* patch: added setStorageManager setter to bundle type
|
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
|
};
|
@@ -368,7 +368,8 @@ export declare enum CUSTOMER_BUILD {
|
|
368
368
|
MALL = "MALL",
|
369
369
|
GARAZ = "GARAZ",
|
370
370
|
U_KULATEHO_STOLU = "U_KULATEHO_STOLU",
|
371
|
-
INVESTOREES = "INVESTOREES"
|
371
|
+
INVESTOREES = "INVESTOREES",
|
372
|
+
DVTV = "DVTV"
|
372
373
|
}
|
373
374
|
|
374
375
|
/**
|
@@ -528,8 +529,8 @@ export declare interface IndexedVideo extends IndexedObject {
|
|
528
529
|
isDraft: boolean;
|
529
530
|
type: VideoType;
|
530
531
|
contentType?: VideoContentType;
|
531
|
-
name: string;
|
532
|
-
description: string;
|
532
|
+
name: string | Translation;
|
533
|
+
description: string | Translation;
|
533
534
|
hide: boolean;
|
534
535
|
isDuplicate: boolean;
|
535
536
|
externals?: VideoExternals;
|
@@ -611,9 +612,11 @@ export declare enum LangCode {
|
|
611
612
|
DE = "de",
|
612
613
|
EN = "en",
|
613
614
|
FR = "fr",
|
615
|
+
IT = "it",
|
614
616
|
PL = "pl",
|
617
|
+
PT = "pt",
|
615
618
|
SK = "sk",
|
616
|
-
|
619
|
+
ES = "es"
|
617
620
|
}
|
618
621
|
|
619
622
|
/**
|
@@ -705,6 +708,15 @@ export declare interface Marker {
|
|
705
708
|
type: 'AD' | 'AD_SEGMENT' | 'START' | 'END' | 'INTRO';
|
706
709
|
}
|
707
710
|
|
711
|
+
/**
|
712
|
+
* External information of video migrated via our Public API.
|
713
|
+
* @public
|
714
|
+
*/
|
715
|
+
export declare interface MigratedVideoExternals {
|
716
|
+
externalVideoId: string;
|
717
|
+
additionalData: any;
|
718
|
+
}
|
719
|
+
|
708
720
|
/**
|
709
721
|
* @public
|
710
722
|
*/
|
@@ -1255,6 +1267,7 @@ export declare interface RouterOverrides {
|
|
1255
1267
|
goBack: () => void;
|
1256
1268
|
goLivePlayer: (videoId: string) => void;
|
1257
1269
|
goVodPlayer: (tvChannelId: string) => void;
|
1270
|
+
goToHome: () => void;
|
1258
1271
|
}
|
1259
1272
|
|
1260
1273
|
/**
|
@@ -2098,7 +2111,7 @@ declare type TransactionInfo = {
|
|
2098
2111
|
* @public
|
2099
2112
|
*/
|
2100
2113
|
export declare type Translation = {
|
2101
|
-
[key in LangCode]
|
2114
|
+
[key in LangCode]?: string;
|
2102
2115
|
};
|
2103
2116
|
|
2104
2117
|
/**
|
@@ -2369,7 +2382,7 @@ export declare enum UserType {
|
|
2369
2382
|
*/
|
2370
2383
|
export declare type UseSearch = <T extends ALGOLIA_INDEX_NAME>(indexName: T, options?: UseSearchOptions) => {
|
2371
2384
|
search: (query: string) => void;
|
2372
|
-
pagination: PaginationInterface<UseSearchResult<T
|
2385
|
+
pagination: Omit<PaginationInterface<UseSearchResult<T>>, 'loading'> | null;
|
2373
2386
|
error: Error | null;
|
2374
2387
|
isLoading: boolean;
|
2375
2388
|
lastQuery: string;
|
@@ -2504,6 +2517,9 @@ export declare enum VastProvider {
|
|
2504
2517
|
GARAZ_TV_DEV = "garaz.tv.dev",
|
2505
2518
|
IMPRESSION_MEDIA_PREBID = "impressionMedia-prebid",
|
2506
2519
|
JOJ = "joj",
|
2520
|
+
JOJ_AD_MANAGER_VOD_PREROLL = "joj-ad-manager-vod-preroll",
|
2521
|
+
JOJ_AD_MANAGER_VOD_MIDROLL = "joj-ad-manager-vod-midroll",
|
2522
|
+
JOJ_AD_MANAGER_LIVE_PREROLL = "joj-ad-manager-live-preroll",
|
2507
2523
|
MALL_TV = "malltv",
|
2508
2524
|
MALL_TV_PREBID = "malltv-prebid",
|
2509
2525
|
PRIMA = "prima",
|
@@ -2590,7 +2606,7 @@ export declare enum VideoContentType {
|
|
2590
2606
|
/**
|
2591
2607
|
* @public
|
2592
2608
|
*/
|
2593
|
-
export declare type VideoExternals = JojExternals | MallTvExternals | OktagonExternals;
|
2609
|
+
export declare type VideoExternals = JojExternals | MallTvExternals | OktagonExternals | MigratedVideoExternals;
|
2594
2610
|
|
2595
2611
|
declare type VideoPath = string;
|
2596
2612
|
|