@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.
@@ -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
  };
@@ -393,7 +393,8 @@ export declare enum CUSTOMER_BUILD {
393
393
  MALL = "MALL",
394
394
  GARAZ = "GARAZ",
395
395
  U_KULATEHO_STOLU = "U_KULATEHO_STOLU",
396
- INVESTOREES = "INVESTOREES"
396
+ INVESTOREES = "INVESTOREES",
397
+ DVTV = "DVTV"
397
398
  }
398
399
 
399
400
  /**
@@ -413,11 +414,24 @@ export declare type Customizations = {
413
414
  */
414
415
  coverWidth: number;
415
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
+ };
416
429
  };
417
430
  Header: {
418
431
  backgroundColor: string;
419
432
  activeLinkUnderlineColor: string;
420
433
  logoHeight: string;
434
+ borderBottom: string;
421
435
  };
422
436
  Input: InputOptions;
423
437
  landing: {
@@ -616,8 +630,8 @@ export declare interface IndexedVideo extends IndexedObject {
616
630
  isDraft: boolean;
617
631
  type: VideoType;
618
632
  contentType?: VideoContentType;
619
- name: string;
620
- description: string;
633
+ name: string | Translation;
634
+ description: string | Translation;
621
635
  hide: boolean;
622
636
  isDuplicate: boolean;
623
637
  externals?: VideoExternals;
@@ -706,9 +720,11 @@ export declare enum LangCode {
706
720
  DE = "de",
707
721
  EN = "en",
708
722
  FR = "fr",
723
+ IT = "it",
709
724
  PL = "pl",
725
+ PT = "pt",
710
726
  SK = "sk",
711
- SP = "sp"
727
+ ES = "es"
712
728
  }
713
729
 
714
730
  /**
@@ -800,6 +816,15 @@ export declare interface Marker {
800
816
  type: 'AD' | 'AD_SEGMENT' | 'START' | 'END' | 'INTRO';
801
817
  }
802
818
 
819
+ /**
820
+ * External information of video migrated via our Public API.
821
+ * @public
822
+ */
823
+ export declare interface MigratedVideoExternals {
824
+ externalVideoId: string;
825
+ additionalData: any;
826
+ }
827
+
803
828
  /**
804
829
  * @public
805
830
  */
@@ -864,6 +889,16 @@ export declare interface OktagonExternals {
864
889
  keyId?: string;
865
890
  }
866
891
 
892
+ /**
893
+ * Returns string union of optional keys for given type
894
+ * @internal
895
+ */
896
+ export declare type OptionalKeys<T> = {
897
+ [K in keyof T]-?: {} extends {
898
+ [P in K]: T[K];
899
+ } ? K : never;
900
+ }[keyof T];
901
+
867
902
  /**
868
903
  * @public
869
904
  */
@@ -1339,6 +1374,15 @@ export declare type RemoteProviderProps = {
1339
1374
  children: any;
1340
1375
  };
1341
1376
 
1377
+ /**
1378
+ * Makes optional attributes in given type to be required and nullable.
1379
+ * e.g. will make `attribute?: string` to be `attribute: string | null`
1380
+ * @internal
1381
+ */
1382
+ export declare type RequiredNullable<T> = {
1383
+ [P in keyof T]-?: P extends OptionalKeys<T> ? T[P] | null : T[P];
1384
+ };
1385
+
1342
1386
  /**
1343
1387
  * @public
1344
1388
  */
@@ -1350,6 +1394,7 @@ export declare interface RouterOverrides {
1350
1394
  goBack: () => void;
1351
1395
  goLivePlayer: (videoId: string) => void;
1352
1396
  goVodPlayer: (tvChannelId: string) => void;
1397
+ goToHome: () => void;
1353
1398
  }
1354
1399
 
1355
1400
  /**
@@ -1702,9 +1747,12 @@ export declare type TaggedVideosOrderByField = 'seasonNumber' | 'episodeNumber'
1702
1747
  * @internal
1703
1748
  */
1704
1749
  export declare type TileOptions = {
1705
- focusedShadow: boolean;
1706
1750
  focusedShadowColor?: string;
1707
1751
  borderColor: string;
1752
+ /**
1753
+ * This property is ignored for CIRCLED tiles, they always have border-radius: 50%;
1754
+ */
1755
+ borderRadius: string | number;
1708
1756
  innerLabel: {
1709
1757
  /**
1710
1758
  * Font size in px
@@ -1714,6 +1762,10 @@ export declare type TileOptions = {
1714
1762
  bottomLabel: {
1715
1763
  opacity: string | number;
1716
1764
  fontWeight: string;
1765
+ /**
1766
+ * Font size in px
1767
+ */
1768
+ fontSize: number;
1717
1769
  };
1718
1770
  sizes: {
1719
1771
  [variant in TileSizeVariant]: TileSizesMap;
@@ -2251,7 +2303,7 @@ declare type TransactionInfo = {
2251
2303
  * @public
2252
2304
  */
2253
2305
  export declare type Translation = {
2254
- [key in LangCode]: string;
2306
+ [key in LangCode]?: string;
2255
2307
  };
2256
2308
 
2257
2309
  /**
@@ -2522,7 +2574,7 @@ export declare enum UserType {
2522
2574
  */
2523
2575
  export declare type UseSearch = <T extends ALGOLIA_INDEX_NAME>(indexName: T, options?: UseSearchOptions) => {
2524
2576
  search: (query: string) => void;
2525
- pagination: PaginationInterface<UseSearchResult<T>> | null;
2577
+ pagination: Omit<PaginationInterface<UseSearchResult<T>>, 'loading'> | null;
2526
2578
  error: Error | null;
2527
2579
  isLoading: boolean;
2528
2580
  lastQuery: string;
@@ -2657,6 +2709,9 @@ export declare enum VastProvider {
2657
2709
  GARAZ_TV_DEV = "garaz.tv.dev",
2658
2710
  IMPRESSION_MEDIA_PREBID = "impressionMedia-prebid",
2659
2711
  JOJ = "joj",
2712
+ JOJ_AD_MANAGER_VOD_PREROLL = "joj-ad-manager-vod-preroll",
2713
+ JOJ_AD_MANAGER_VOD_MIDROLL = "joj-ad-manager-vod-midroll",
2714
+ JOJ_AD_MANAGER_LIVE_PREROLL = "joj-ad-manager-live-preroll",
2660
2715
  MALL_TV = "malltv",
2661
2716
  MALL_TV_PREBID = "malltv-prebid",
2662
2717
  PRIMA = "prima",
@@ -2743,7 +2798,7 @@ export declare enum VideoContentType {
2743
2798
  /**
2744
2799
  * @public
2745
2800
  */
2746
- export declare type VideoExternals = JojExternals | MallTvExternals | OktagonExternals;
2801
+ export declare type VideoExternals = JojExternals | MallTvExternals | OktagonExternals | MigratedVideoExternals;
2747
2802
 
2748
2803
  declare type VideoPath = string;
2749
2804
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tivio/sdk-react",
3
- "version": "4.0.1",
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.96",
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",