@tivio/sdk-react 7.2.0-alpha.1 → 9.0.0-alpha.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +6 -1
- package/README.md.bak +6 -1
- package/dist/index.d.ts +47 -4
- package/dist/index.js +1 -1
- package/dist/sdk-react.d.ts +47 -4
- package/package.json +2 -4
package/dist/sdk-react.d.ts
CHANGED
@@ -336,6 +336,11 @@ export declare type Assets = {
|
|
336
336
|
[assetName: string]: ScalableAsset;
|
337
337
|
};
|
338
338
|
|
339
|
+
/**
|
340
|
+
* @public
|
341
|
+
*/
|
342
|
+
export declare type AssetType = 'circled' | 'landscape' | 'portrait';
|
343
|
+
|
339
344
|
declare type Attributes = {
|
340
345
|
created: string;
|
341
346
|
email: string;
|
@@ -776,7 +781,8 @@ export declare enum CustomerId {
|
|
776
781
|
STARMAX = "STARMAX",
|
777
782
|
STORYBOOK = "STORYBOOK",
|
778
783
|
TIVIO = "TIVIO",
|
779
|
-
U_KULATEHO_STOLU = "U_KULATEHO_STOLU"
|
784
|
+
U_KULATEHO_STOLU = "U_KULATEHO_STOLU",
|
785
|
+
STARME = "STARME"
|
780
786
|
}
|
781
787
|
|
782
788
|
/**
|
@@ -1305,6 +1311,10 @@ export declare interface GetSourceUrlRequest {
|
|
1305
1311
|
* See {@link SourcePlayMode} type. If not given, getSourceUrl will pick default based on requested document.
|
1306
1312
|
*/
|
1307
1313
|
sourcePlayMode?: SourcePlayMode;
|
1314
|
+
/**
|
1315
|
+
* Returns url to manifest with audio only chunks.
|
1316
|
+
*/
|
1317
|
+
audioOnly?: boolean;
|
1308
1318
|
}
|
1309
1319
|
|
1310
1320
|
export declare interface GetSourceUrlResponse {
|
@@ -1324,6 +1334,10 @@ export declare interface GetSourceUrlResponse {
|
|
1324
1334
|
* See {@link SourcePlayMode} type.
|
1325
1335
|
*/
|
1326
1336
|
sourcePlayMode: SourcePlayMode;
|
1337
|
+
/**
|
1338
|
+
* Returns url to manifest with audio only chunks.
|
1339
|
+
*/
|
1340
|
+
audioOnly?: boolean;
|
1327
1341
|
}
|
1328
1342
|
|
1329
1343
|
export declare interface GetVideoAnalyticsErrorItem {
|
@@ -2531,6 +2545,11 @@ export declare interface Promotion {
|
|
2531
2545
|
price?: number;
|
2532
2546
|
}
|
2533
2547
|
|
2548
|
+
/**
|
2549
|
+
* @public
|
2550
|
+
*/
|
2551
|
+
export declare type PromotionType = 'CLASSIC' | 'PATREON';
|
2552
|
+
|
2534
2553
|
/**
|
2535
2554
|
* @public
|
2536
2555
|
*/
|
@@ -2789,7 +2808,23 @@ export declare enum PurchaseStatus {
|
|
2789
2808
|
/**
|
2790
2809
|
* Used when purchase is terminated due to terms and conditions violation (e.g. restreaming).
|
2791
2810
|
*/
|
2792
|
-
BLOCKED = "BLOCKED"
|
2811
|
+
BLOCKED = "BLOCKED",
|
2812
|
+
/**
|
2813
|
+
* Used in subscription purchases when subscription is renewed.
|
2814
|
+
*/
|
2815
|
+
RENEWED = "RENEWED",
|
2816
|
+
/**
|
2817
|
+
* From NEW to ABORTED when user cancels purchase before payment or when payment fails.
|
2818
|
+
*/
|
2819
|
+
ABORTED = "ABORTED",
|
2820
|
+
/**
|
2821
|
+
* When user manually cancels purchase but still has access to content until expiration date.
|
2822
|
+
*/
|
2823
|
+
CANCELLING = "CANCELLING",
|
2824
|
+
/**
|
2825
|
+
* From PAID to EXPIRED when payment fails to renew subscription.
|
2826
|
+
*/
|
2827
|
+
EXPIRED = "EXPIRED"
|
2793
2828
|
}
|
2794
2829
|
|
2795
2830
|
/**
|
@@ -2818,7 +2853,7 @@ export declare interface QerkoData {
|
|
2818
2853
|
* Otherwise, user is making a purchase for himself.
|
2819
2854
|
*/
|
2820
2855
|
voucherPurchase?: boolean;
|
2821
|
-
onPurchase?: () => void;
|
2856
|
+
onPurchase?: (paymentInfo: QerkoPaymentInfo | null) => void;
|
2822
2857
|
onClose?: () => void;
|
2823
2858
|
}
|
2824
2859
|
|
@@ -4694,6 +4729,12 @@ declare type VastProvidersItem = {
|
|
4694
4729
|
development?: boolean;
|
4695
4730
|
};
|
4696
4731
|
|
4732
|
+
export declare interface verifyCustomTokenProps {
|
4733
|
+
token: string;
|
4734
|
+
uid: string;
|
4735
|
+
organizationPath: string;
|
4736
|
+
}
|
4737
|
+
|
4697
4738
|
/**
|
4698
4739
|
* @public
|
4699
4740
|
*/
|
@@ -4789,7 +4830,9 @@ export declare enum VideoContentType {
|
|
4789
4830
|
/**
|
4790
4831
|
* @public
|
4791
4832
|
*/
|
4792
|
-
export declare type VideoExternals = JojExternals | MallTvExternals | OktagonExternals | MigratedVideoExternals
|
4833
|
+
export declare type VideoExternals = (JojExternals | MallTvExternals | OktagonExternals | MigratedVideoExternals) & {
|
4834
|
+
channelKey?: string;
|
4835
|
+
};
|
4793
4836
|
|
4794
4837
|
declare type VideoPath = string;
|
4795
4838
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@tivio/sdk-react",
|
3
|
-
"version": "
|
3
|
+
"version": "9.0.0-alpha.0",
|
4
4
|
"main": "dist/index.js",
|
5
5
|
"typings": "dist/index.d.ts",
|
6
6
|
"source": "src/index.ts",
|
@@ -34,15 +34,13 @@
|
|
34
34
|
"@material-ui/core": "^4.11.2",
|
35
35
|
"@material-ui/icons": "^4.11.2",
|
36
36
|
"@sentry/browser": "^6.1.0",
|
37
|
-
"@tivio/common": "1.1.
|
37
|
+
"@tivio/common": "1.1.117",
|
38
38
|
"dayjs": "^1.11.0",
|
39
39
|
"es7-object-polyfill": "^1.0.1",
|
40
40
|
"firebase": "8.10.1",
|
41
41
|
"formik": "^2.2.7",
|
42
|
-
"i18next": "^20.1.0",
|
43
42
|
"mobx": "^6.0.4",
|
44
43
|
"mobx-react": "^7.1.0",
|
45
|
-
"react-i18next": "^13.0.1",
|
46
44
|
"react-router-dom": "^5.3.4",
|
47
45
|
"react-spring": "^9.2.4",
|
48
46
|
"react-virtualized": "^9.22.3",
|