@tivio/sdk-react 5.0.3-alpha-5 → 6.0.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 +2 -1
- package/README.md.bak +2 -1
- package/dist/index.d.ts +8 -27
- package/dist/index.js +1 -1
- package/dist/sdk-react.d.ts +8 -27
- package/package.json +2 -2
package/dist/sdk-react.d.ts
CHANGED
|
@@ -2960,7 +2960,7 @@ export declare type TivioComponents = {
|
|
|
2960
2960
|
onEnded?: () => any;
|
|
2961
2961
|
}>;
|
|
2962
2962
|
TvApp: React_2.ComponentType<TvAppProps>;
|
|
2963
|
-
FeatureSupportCheck: React_2.ComponentType
|
|
2963
|
+
FeatureSupportCheck: React_2.ComponentType<{}>;
|
|
2964
2964
|
CustomerScreen: React_2.ComponentType<{
|
|
2965
2965
|
screenId: string;
|
|
2966
2966
|
}>;
|
|
@@ -2975,7 +2975,6 @@ export declare type TivioComponents = {
|
|
|
2975
2975
|
WebTile: React_2.ComponentType<{
|
|
2976
2976
|
item?: ItemsInRow;
|
|
2977
2977
|
} & TilePropsPartial>;
|
|
2978
|
-
ChannelContext: React_2.Context<TvChannel | undefined>;
|
|
2979
2978
|
};
|
|
2980
2979
|
|
|
2981
2980
|
/**
|
|
@@ -3102,7 +3101,6 @@ export declare type TivioHooks = {
|
|
|
3102
3101
|
inviteCodeReset: () => void;
|
|
3103
3102
|
};
|
|
3104
3103
|
useChannelSource: UseChannelSource;
|
|
3105
|
-
useTvChannel: UseTvChannel;
|
|
3106
3104
|
};
|
|
3107
3105
|
|
|
3108
3106
|
/**
|
|
@@ -3358,11 +3356,6 @@ export declare type TivioVodSource = SourceBase & StartAndContinuePosition & {
|
|
|
3358
3356
|
*/
|
|
3359
3357
|
export declare const TivioWidget: React_2.ForwardRefExoticComponent<Omit<TivioWidgetProps, "ref"> & React_2.RefAttributes<TivioWidgetRef>>;
|
|
3360
3358
|
|
|
3361
|
-
/**
|
|
3362
|
-
* @public
|
|
3363
|
-
*/
|
|
3364
|
-
export declare const TivioWidgetApp: React_2.ForwardRefExoticComponent<Omit<TivioWidgetProps, "ref"> & React_2.RefAttributes<unknown>>;
|
|
3365
|
-
|
|
3366
3359
|
/**
|
|
3367
3360
|
* @public
|
|
3368
3361
|
*/
|
|
@@ -3389,8 +3382,6 @@ export declare interface TivioWidgetProps {
|
|
|
3389
3382
|
width: number;
|
|
3390
3383
|
x: number;
|
|
3391
3384
|
}) => any;
|
|
3392
|
-
navigateFunction?: any;
|
|
3393
|
-
isFocused?: boolean;
|
|
3394
3385
|
}
|
|
3395
3386
|
|
|
3396
3387
|
/**
|
|
@@ -3466,7 +3457,6 @@ export declare type TriggerType = 'scheduled' | 'manual';
|
|
|
3466
3457
|
*/
|
|
3467
3458
|
export declare type TvAppProps = {
|
|
3468
3459
|
customer: CustomerId;
|
|
3469
|
-
navigateFunction: (url: string) => void;
|
|
3470
3460
|
};
|
|
3471
3461
|
|
|
3472
3462
|
/**
|
|
@@ -3475,13 +3465,11 @@ export declare type TvAppProps = {
|
|
|
3475
3465
|
export declare interface TvChannel extends RowItem {
|
|
3476
3466
|
id: string;
|
|
3477
3467
|
itemType: ROW_ITEM_TYPES.TV_CHANNEL;
|
|
3478
|
-
type?: TvChannelType;
|
|
3479
3468
|
name: string;
|
|
3480
3469
|
path: string;
|
|
3481
3470
|
country?: string;
|
|
3482
3471
|
filters: string[];
|
|
3483
3472
|
logo?: string;
|
|
3484
|
-
logoPendingOverlayWidth?: string;
|
|
3485
3473
|
hls: string;
|
|
3486
3474
|
dash: string;
|
|
3487
3475
|
/**
|
|
@@ -3501,17 +3489,6 @@ export declare interface TvChannel extends RowItem {
|
|
|
3501
3489
|
url: string;
|
|
3502
3490
|
}
|
|
3503
3491
|
|
|
3504
|
-
export declare enum TvChannelType {
|
|
3505
|
-
/**
|
|
3506
|
-
* Classic live tv channel
|
|
3507
|
-
*/
|
|
3508
|
-
CLASSIC = "CLASSIC",
|
|
3509
|
-
/**
|
|
3510
|
-
* "Virtual" tv channel constructed from separate videos
|
|
3511
|
-
*/
|
|
3512
|
-
VIRTUAL = "VIRTUAL"
|
|
3513
|
-
}
|
|
3514
|
-
|
|
3515
3492
|
export declare interface TvProgram {
|
|
3516
3493
|
from: Date | null;
|
|
3517
3494
|
to: Date | null;
|
|
@@ -3682,8 +3659,13 @@ export declare const useMarkers: () => Marker[] | null;
|
|
|
3682
3659
|
|
|
3683
3660
|
/**
|
|
3684
3661
|
* @public
|
|
3662
|
+
*
|
|
3663
|
+
* @param onlyPurchasableSubscriptions When it is true, it returns only enabled subscriptions.
|
|
3664
|
+
* @param videoId If it is not defined returns all subscriptions except one time payment.
|
|
3665
|
+
* When it is set, returns only subscriptions which is described in tagIds for video.
|
|
3666
|
+
* @returns Array of subscriptions according to set parameters
|
|
3685
3667
|
*/
|
|
3686
|
-
export declare const useOrganizationSubscriptions: (onlyPurchasableSubscriptions?: boolean) => {
|
|
3668
|
+
export declare const useOrganizationSubscriptions: (onlyPurchasableSubscriptions?: boolean, videoId?: string) => {
|
|
3687
3669
|
subscriptions: PurchasableMonetization[];
|
|
3688
3670
|
};
|
|
3689
3671
|
|
|
@@ -4123,9 +4105,8 @@ export declare interface ViewCountItem {
|
|
|
4123
4105
|
/**
|
|
4124
4106
|
* @public
|
|
4125
4107
|
*/
|
|
4126
|
-
export declare interface VirtualChannelSourcePojo {
|
|
4108
|
+
export declare interface VirtualChannelSourcePojo extends Omit<ChannelSourcePojo, 'type'> {
|
|
4127
4109
|
type: 'VirtualChannelSource';
|
|
4128
|
-
tvChannel: TvChannel;
|
|
4129
4110
|
epg: TvProgram[];
|
|
4130
4111
|
}
|
|
4131
4112
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tivio/sdk-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
6
6
|
"source": "src/index.ts",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@material-ui/core": "^4.11.2",
|
|
34
34
|
"@material-ui/icons": "^4.11.2",
|
|
35
35
|
"@sentry/browser": "^6.1.0",
|
|
36
|
-
"@tivio/common": "1.1.
|
|
36
|
+
"@tivio/common": "1.1.105",
|
|
37
37
|
"dayjs": "^1.11.0",
|
|
38
38
|
"es7-object-polyfill": "^1.0.1",
|
|
39
39
|
"firebase": "8.10.1",
|