@tivio/sdk-react 5.0.3-alpha-5 → 6.0.0
Sign up to get free protection for your applications and to get access to all the features.
- 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/README.md
CHANGED
@@ -6,11 +6,12 @@ settings in the administration of Tivio Studio while having the freedom to build
|
|
6
6
|
|
7
7
|
## Changelog
|
8
8
|
|
9
|
-
*
|
9
|
+
* 6.0.0
|
10
10
|
* major: delete usePlayerEvent hook
|
11
11
|
* major: replace uri attributes in types with url
|
12
12
|
* major: delete uri attributes from types
|
13
13
|
* minor: add purchase expiration to PurchaseEndpointPayload
|
14
|
+
* minor: add optional videoId parameter to useOrganizationSubscription hook
|
14
15
|
|
15
16
|
* 5.0.2
|
16
17
|
* patch: export hook useChannelSource
|
package/README.md.bak
CHANGED
@@ -6,11 +6,12 @@ settings in the administration of Tivio Studio while having the freedom to build
|
|
6
6
|
|
7
7
|
## Changelog
|
8
8
|
|
9
|
-
*
|
9
|
+
* 6.0.0
|
10
10
|
* major: delete usePlayerEvent hook
|
11
11
|
* major: replace uri attributes in types with url
|
12
12
|
* major: delete uri attributes from types
|
13
13
|
* minor: add purchase expiration to PurchaseEndpointPayload
|
14
|
+
* minor: add optional videoId parameter to useOrganizationSubscription hook
|
14
15
|
|
15
16
|
* 5.0.2
|
16
17
|
* patch: export hook useChannelSource
|
package/dist/index.d.ts
CHANGED
@@ -2718,7 +2718,7 @@ export declare type TivioComponents = {
|
|
2718
2718
|
onEnded?: () => any;
|
2719
2719
|
}>;
|
2720
2720
|
TvApp: React_2.ComponentType<TvAppProps>;
|
2721
|
-
FeatureSupportCheck: React_2.ComponentType
|
2721
|
+
FeatureSupportCheck: React_2.ComponentType<{}>;
|
2722
2722
|
CustomerScreen: React_2.ComponentType<{
|
2723
2723
|
screenId: string;
|
2724
2724
|
}>;
|
@@ -2733,7 +2733,6 @@ export declare type TivioComponents = {
|
|
2733
2733
|
WebTile: React_2.ComponentType<{
|
2734
2734
|
item?: ItemsInRow;
|
2735
2735
|
} & TilePropsPartial>;
|
2736
|
-
ChannelContext: React_2.Context<TvChannel | undefined>;
|
2737
2736
|
};
|
2738
2737
|
|
2739
2738
|
/**
|
@@ -2860,7 +2859,6 @@ export declare type TivioHooks = {
|
|
2860
2859
|
inviteCodeReset: () => void;
|
2861
2860
|
};
|
2862
2861
|
useChannelSource: UseChannelSource;
|
2863
|
-
useTvChannel: UseTvChannel;
|
2864
2862
|
};
|
2865
2863
|
|
2866
2864
|
/**
|
@@ -3108,11 +3106,6 @@ export declare type TivioVodSource = SourceBase & StartAndContinuePosition & {
|
|
3108
3106
|
*/
|
3109
3107
|
export declare const TivioWidget: React_2.ForwardRefExoticComponent<Omit<TivioWidgetProps, "ref"> & React_2.RefAttributes<TivioWidgetRef>>;
|
3110
3108
|
|
3111
|
-
/**
|
3112
|
-
* @public
|
3113
|
-
*/
|
3114
|
-
export declare const TivioWidgetApp: React_2.ForwardRefExoticComponent<Omit<TivioWidgetProps, "ref"> & React_2.RefAttributes<unknown>>;
|
3115
|
-
|
3116
3109
|
/**
|
3117
3110
|
* @public
|
3118
3111
|
*/
|
@@ -3139,8 +3132,6 @@ export declare interface TivioWidgetProps {
|
|
3139
3132
|
width: number;
|
3140
3133
|
x: number;
|
3141
3134
|
}) => any;
|
3142
|
-
navigateFunction?: any;
|
3143
|
-
isFocused?: boolean;
|
3144
3135
|
}
|
3145
3136
|
|
3146
3137
|
/**
|
@@ -3216,7 +3207,6 @@ export declare type TriggerType = 'scheduled' | 'manual';
|
|
3216
3207
|
*/
|
3217
3208
|
export declare type TvAppProps = {
|
3218
3209
|
customer: CustomerId;
|
3219
|
-
navigateFunction: (url: string) => void;
|
3220
3210
|
};
|
3221
3211
|
|
3222
3212
|
/**
|
@@ -3225,13 +3215,11 @@ export declare type TvAppProps = {
|
|
3225
3215
|
export declare interface TvChannel extends RowItem {
|
3226
3216
|
id: string;
|
3227
3217
|
itemType: ROW_ITEM_TYPES.TV_CHANNEL;
|
3228
|
-
type?: TvChannelType;
|
3229
3218
|
name: string;
|
3230
3219
|
path: string;
|
3231
3220
|
country?: string;
|
3232
3221
|
filters: string[];
|
3233
3222
|
logo?: string;
|
3234
|
-
logoPendingOverlayWidth?: string;
|
3235
3223
|
hls: string;
|
3236
3224
|
dash: string;
|
3237
3225
|
/**
|
@@ -3251,17 +3239,6 @@ export declare interface TvChannel extends RowItem {
|
|
3251
3239
|
url: string;
|
3252
3240
|
}
|
3253
3241
|
|
3254
|
-
export declare enum TvChannelType {
|
3255
|
-
/**
|
3256
|
-
* Classic live tv channel
|
3257
|
-
*/
|
3258
|
-
CLASSIC = "CLASSIC",
|
3259
|
-
/**
|
3260
|
-
* "Virtual" tv channel constructed from separate videos
|
3261
|
-
*/
|
3262
|
-
VIRTUAL = "VIRTUAL"
|
3263
|
-
}
|
3264
|
-
|
3265
3242
|
export declare interface TvProgram {
|
3266
3243
|
from: Date | null;
|
3267
3244
|
to: Date | null;
|
@@ -3432,8 +3409,13 @@ export declare const useMarkers: () => Marker[] | null;
|
|
3432
3409
|
|
3433
3410
|
/**
|
3434
3411
|
* @public
|
3412
|
+
*
|
3413
|
+
* @param onlyPurchasableSubscriptions When it is true, it returns only enabled subscriptions.
|
3414
|
+
* @param videoId If it is not defined returns all subscriptions except one time payment.
|
3415
|
+
* When it is set, returns only subscriptions which is described in tagIds for video.
|
3416
|
+
* @returns Array of subscriptions according to set parameters
|
3435
3417
|
*/
|
3436
|
-
export declare const useOrganizationSubscriptions: (onlyPurchasableSubscriptions?: boolean) => {
|
3418
|
+
export declare const useOrganizationSubscriptions: (onlyPurchasableSubscriptions?: boolean, videoId?: string) => {
|
3437
3419
|
subscriptions: PurchasableMonetization[];
|
3438
3420
|
};
|
3439
3421
|
|
@@ -3873,9 +3855,8 @@ export declare interface ViewCountItem {
|
|
3873
3855
|
/**
|
3874
3856
|
* @public
|
3875
3857
|
*/
|
3876
|
-
export declare interface VirtualChannelSourcePojo {
|
3858
|
+
export declare interface VirtualChannelSourcePojo extends Omit<ChannelSourcePojo, 'type'> {
|
3877
3859
|
type: 'VirtualChannelSource';
|
3878
|
-
tvChannel: TvChannel;
|
3879
3860
|
epg: TvProgram[];
|
3880
3861
|
}
|
3881
3862
|
|