@tivio/sdk-react 7.0.1 → 7.2.0-alpha.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/dist/index.d.ts +67 -3
- package/dist/index.js +1 -1
- package/dist/sdk-react.d.ts +67 -3
- package/package.json +2 -2
package/dist/sdk-react.d.ts
CHANGED
@@ -289,6 +289,31 @@ export declare interface AnalyticsInterface {
|
|
289
289
|
}) => void;
|
290
290
|
}
|
291
291
|
|
292
|
+
/**
|
293
|
+
* @public
|
294
|
+
*/
|
295
|
+
export declare interface Application {
|
296
|
+
name: Translation;
|
297
|
+
type: ApplicationType;
|
298
|
+
urlHandle: string;
|
299
|
+
screens: ApplicationScreenConfig[] | null;
|
300
|
+
}
|
301
|
+
|
302
|
+
/**
|
303
|
+
* @public
|
304
|
+
*/
|
305
|
+
export declare interface ApplicationScreenConfig {
|
306
|
+
name: Translation;
|
307
|
+
order: number;
|
308
|
+
path: string;
|
309
|
+
screenConfig: ScreenConfig | null;
|
310
|
+
}
|
311
|
+
|
312
|
+
export declare enum ApplicationType {
|
313
|
+
TIVIO_PRO = "TIVIO_PRO",
|
314
|
+
ORGANIZATION = "ORGANIZATION"
|
315
|
+
}
|
316
|
+
|
292
317
|
/**
|
293
318
|
* @public
|
294
319
|
*/
|
@@ -495,6 +520,7 @@ export declare interface CommonSourceInterface<T extends SourceType = SourceType
|
|
495
520
|
isStarted: boolean;
|
496
521
|
setIsStarted(isStarted: boolean): void;
|
497
522
|
autoplay?: boolean;
|
523
|
+
autoplayMuteFallback: boolean;
|
498
524
|
toLog(): any;
|
499
525
|
}
|
500
526
|
|
@@ -1577,6 +1603,16 @@ export declare type LiveTvChannelSource = SourceBase & {
|
|
1577
1603
|
channelName: string;
|
1578
1604
|
};
|
1579
1605
|
|
1606
|
+
/**
|
1607
|
+
* @public
|
1608
|
+
*/
|
1609
|
+
export declare type LoadScreenOptions = {
|
1610
|
+
/**
|
1611
|
+
* If true, then load rows of each loaded screen
|
1612
|
+
*/
|
1613
|
+
loadRows?: boolean;
|
1614
|
+
};
|
1615
|
+
|
1580
1616
|
/**
|
1581
1617
|
* If value of the field (only 1st level) is undefined it means that it was never saved
|
1582
1618
|
* and might or might not be present in maxmind service.
|
@@ -1894,6 +1930,7 @@ declare type OrderByDirection = 'desc' | 'asc';
|
|
1894
1930
|
*/
|
1895
1931
|
export declare interface Organization {
|
1896
1932
|
userProfileConfiguration: any;
|
1933
|
+
screenConfigs: ScreenConfig[];
|
1897
1934
|
}
|
1898
1935
|
|
1899
1936
|
/**
|
@@ -2070,6 +2107,7 @@ export declare interface PlayerEngineInterface {
|
|
2070
2107
|
pause(): Promise<void>;
|
2071
2108
|
unpause(): Promise<void>;
|
2072
2109
|
isPaused(): boolean;
|
2110
|
+
isSeeking: boolean;
|
2073
2111
|
stop(): Promise<void>;
|
2074
2112
|
addEventListener<T>(event: PlayerEngineEvent, callback: PlayerEngineListener<T>): void;
|
2075
2113
|
addEventListener(event: 'statechange', callback: PlayerEngineListener<PlayerState>): void;
|
@@ -2194,7 +2232,7 @@ export declare interface PlayerInterface {
|
|
2194
2232
|
* or just load it and keep it paused and ready to play if `source.autoplay` is false.
|
2195
2233
|
* If source is `null`, stop and close the player (this is the same as if `this.stop()` was called.)
|
2196
2234
|
*/
|
2197
|
-
setSource: (source: CommonSource | null) => void;
|
2235
|
+
setSource: (source: CommonSource | null) => Promise<void> | void;
|
2198
2236
|
/**
|
2199
2237
|
* Set volume
|
2200
2238
|
*
|
@@ -2263,6 +2301,7 @@ export declare interface PlayerSourceInterface<T extends NonAdSourceType = NonAd
|
|
2263
2301
|
adSegment: AdSegment | null;
|
2264
2302
|
consumedAds: ConsumedAds;
|
2265
2303
|
currentMarker: any | null;
|
2304
|
+
drm?: Drm;
|
2266
2305
|
markers: any[];
|
2267
2306
|
setMarkers(markers: any[]): void;
|
2268
2307
|
isMarkersLoaded: boolean;
|
@@ -2660,7 +2699,23 @@ export declare enum PurchaseStatus {
|
|
2660
2699
|
/**
|
2661
2700
|
* Used when purchase is terminated due to terms and conditions violation (e.g. restreaming).
|
2662
2701
|
*/
|
2663
|
-
BLOCKED = "BLOCKED"
|
2702
|
+
BLOCKED = "BLOCKED",
|
2703
|
+
/**
|
2704
|
+
* Used in subscription purchases when subscription is renewed.
|
2705
|
+
*/
|
2706
|
+
RENEWED = "RENEWED",
|
2707
|
+
/**
|
2708
|
+
* From NEW to ABORTED when user cancels purchase before payment or when payment fails.
|
2709
|
+
*/
|
2710
|
+
ABORTED = "ABORTED",
|
2711
|
+
/**
|
2712
|
+
* When user manually cancels purchase but still has access to content until expiration date.
|
2713
|
+
*/
|
2714
|
+
CANCELLING = "CANCELLING",
|
2715
|
+
/**
|
2716
|
+
* From PAID to EXPIRED when payment fails to renew subscription.
|
2717
|
+
*/
|
2718
|
+
EXPIRED = "EXPIRED"
|
2664
2719
|
}
|
2665
2720
|
|
2666
2721
|
/**
|
@@ -3005,6 +3060,7 @@ declare interface Screen_2 {
|
|
3005
3060
|
rows: Row[];
|
3006
3061
|
type?: ScreenType;
|
3007
3062
|
filter?: RowFilterField | null;
|
3063
|
+
embedUrl?: string | null;
|
3008
3064
|
}
|
3009
3065
|
export { Screen_2 as Screen }
|
3010
3066
|
|
@@ -3491,6 +3547,8 @@ export declare interface TivioConfig {
|
|
3491
3547
|
firebaseApp?: any | null;
|
3492
3548
|
firestore?: any | null;
|
3493
3549
|
currency: Currency;
|
3550
|
+
applicationId?: string;
|
3551
|
+
isTivioProApp?: boolean;
|
3494
3552
|
/**
|
3495
3553
|
* Configuration for GDPR consent collection (CMP)
|
3496
3554
|
*/
|
@@ -3646,6 +3704,12 @@ export declare type TivioInternalHooks = {
|
|
3646
3704
|
useOrganizationSubscriptions: (onlyPurchasableSubscriptions?: boolean, videoId?: string) => {
|
3647
3705
|
subscriptions: PurchasableMonetization[];
|
3648
3706
|
};
|
3707
|
+
useCurrentApplication: () => {
|
3708
|
+
screenConfigs: ScreenConfig[] | undefined;
|
3709
|
+
isLoading: boolean;
|
3710
|
+
switchApplicationByHandle: (handle?: string) => (Promise<void> | undefined);
|
3711
|
+
isDefaultOrganization: boolean;
|
3712
|
+
};
|
3649
3713
|
useIsMonetizationPurchased: () => {
|
3650
3714
|
isOneOfSubscriptionPurchased: (subscriptionIds: string[]) => boolean;
|
3651
3715
|
};
|
@@ -4684,7 +4748,6 @@ export declare interface VirtualChannelSourceInterface extends ChannelSourceInte
|
|
4684
4748
|
tvChannelType: TvChannelType.VIRTUAL;
|
4685
4749
|
program?: TvProgram | null;
|
4686
4750
|
video?: Video | null;
|
4687
|
-
isPlayingBySchedule: boolean;
|
4688
4751
|
clone(params?: Partial<VirtualChannelSourceParams>): VirtualChannelSourceInterface;
|
4689
4752
|
initializeNext(): Promise<void>;
|
4690
4753
|
}
|
@@ -4695,6 +4758,7 @@ export declare interface VirtualChannelSourceInterface extends ChannelSourceInte
|
|
4695
4758
|
export declare interface VirtualChannelSourceParams extends ChannelSourceParams {
|
4696
4759
|
tvChannelType: TvChannelType.VIRTUAL;
|
4697
4760
|
currentProgram?: TvProgram | null;
|
4761
|
+
drm?: Drm;
|
4698
4762
|
}
|
4699
4763
|
|
4700
4764
|
/**
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@tivio/sdk-react",
|
3
|
-
"version": "7.0.
|
3
|
+
"version": "7.2.0-alpha.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.114",
|
37
37
|
"dayjs": "^1.11.0",
|
38
38
|
"es7-object-polyfill": "^1.0.1",
|
39
39
|
"firebase": "8.10.1",
|