@tivio/sdk-react 9.0.0-alpha.0 → 9.1.0-alpha.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +9 -2
- package/README.md.bak +9 -2
- package/dist/index.d.ts +49 -0
- package/dist/index.js +2 -1
- package/dist/index.js.LICENSE.txt +40 -0
- package/dist/sdk-react.d.ts +52 -0
- package/package.json +2 -3
@@ -0,0 +1,40 @@
|
|
1
|
+
/*! *****************************************************************************
|
2
|
+
Copyright (c) Microsoft Corporation.
|
3
|
+
|
4
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
5
|
+
purpose with or without fee is hereby granted.
|
6
|
+
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
8
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
9
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
10
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
11
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
12
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
13
|
+
PERFORMANCE OF THIS SOFTWARE.
|
14
|
+
***************************************************************************** */
|
15
|
+
|
16
|
+
/**
|
17
|
+
* A better abstraction over CSS.
|
18
|
+
*
|
19
|
+
* @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
|
20
|
+
* @website https://github.com/cssinjs/jss
|
21
|
+
* @license MIT
|
22
|
+
*/
|
23
|
+
|
24
|
+
/** @license React v16.13.1
|
25
|
+
* react-is.production.min.js
|
26
|
+
*
|
27
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
28
|
+
*
|
29
|
+
* This source code is licensed under the MIT license found in the
|
30
|
+
* LICENSE file in the root directory of this source tree.
|
31
|
+
*/
|
32
|
+
|
33
|
+
/** @license React v17.0.2
|
34
|
+
* react-is.production.min.js
|
35
|
+
*
|
36
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
37
|
+
*
|
38
|
+
* This source code is licensed under the MIT license found in the
|
39
|
+
* LICENSE file in the root directory of this source tree.
|
40
|
+
*/
|
package/dist/sdk-react.d.ts
CHANGED
@@ -743,6 +743,16 @@ export declare const createRemotePackageLoader: () => (secret: string, conf: Int
|
|
743
743
|
*/
|
744
744
|
export declare const createUseRemoteBundle: () => (conf: InternalConfig) => RemoteBundleState;
|
745
745
|
|
746
|
+
export declare interface CreateUserPayload {
|
747
|
+
displayName?: string;
|
748
|
+
email?: string;
|
749
|
+
emailVerified?: boolean;
|
750
|
+
password?: string;
|
751
|
+
referralToken?: string;
|
752
|
+
username?: string;
|
753
|
+
phoneNumber?: string;
|
754
|
+
}
|
755
|
+
|
746
756
|
/**
|
747
757
|
* @public
|
748
758
|
*/
|
@@ -839,6 +849,9 @@ export declare type Customizations = {
|
|
839
849
|
borderBottom: string;
|
840
850
|
color?: string;
|
841
851
|
};
|
852
|
+
Footer: {
|
853
|
+
backgroundColor: string;
|
854
|
+
};
|
842
855
|
VideoDetail: {
|
843
856
|
Banner: {
|
844
857
|
title: {
|
@@ -1001,6 +1014,14 @@ export declare type DocumentOptions = Partial<{
|
|
1001
1014
|
subscribeOnChanges: boolean;
|
1002
1015
|
}>;
|
1003
1016
|
|
1017
|
+
/**
|
1018
|
+
* Does the same as TivioProvider in useRemoteBundle - so it downloads bundle,
|
1019
|
+
* calls init on it and returns bundle state.
|
1020
|
+
*
|
1021
|
+
* @public
|
1022
|
+
*/
|
1023
|
+
export declare const downloadRemoteBundle: (conf: SdkReactConfig) => Promise<RemoteBundleState>;
|
1024
|
+
|
1004
1025
|
export declare interface Drm {
|
1005
1026
|
encryption: VideoSourceEncryption;
|
1006
1027
|
/**
|
@@ -1444,6 +1465,10 @@ export declare interface IndexedTag extends IndexedObject {
|
|
1444
1465
|
created: Date;
|
1445
1466
|
name: Translation;
|
1446
1467
|
description?: string;
|
1468
|
+
/**
|
1469
|
+
* True if the tag is available in Tivio Pro (StarMe)
|
1470
|
+
*/
|
1471
|
+
isTivioPro: boolean;
|
1447
1472
|
}
|
1448
1473
|
|
1449
1474
|
/**
|
@@ -1485,6 +1510,14 @@ export declare interface IndexedVideo extends IndexedObject {
|
|
1485
1510
|
hide: boolean;
|
1486
1511
|
isDuplicate: boolean;
|
1487
1512
|
externals?: VideoExternals;
|
1513
|
+
/**
|
1514
|
+
* Duration of the video in ms
|
1515
|
+
*/
|
1516
|
+
duration?: number;
|
1517
|
+
/**
|
1518
|
+
* True if the video is available in Tivio Pro (StarMe)
|
1519
|
+
*/
|
1520
|
+
isTivioPro: boolean;
|
1488
1521
|
}
|
1489
1522
|
|
1490
1523
|
/**
|
@@ -2685,6 +2718,10 @@ export declare type PurchaseEndpointPayload = {
|
|
2685
2718
|
* Purchase status after change.
|
2686
2719
|
*/
|
2687
2720
|
newStatus: PurchaseStatus;
|
2721
|
+
/**
|
2722
|
+
* Id of the original (first) purchase of reoccurring payments.
|
2723
|
+
*/
|
2724
|
+
originalPurchaseId?: string;
|
2688
2725
|
/**
|
2689
2726
|
* Purchase status before change.
|
2690
2727
|
*/
|
@@ -2933,6 +2970,9 @@ declare type Relationship = {
|
|
2933
2970
|
memberships: {
|
2934
2971
|
data: Membership[];
|
2935
2972
|
};
|
2973
|
+
currently_entitled_tiers: {
|
2974
|
+
data?: Membership[];
|
2975
|
+
};
|
2936
2976
|
};
|
2937
2977
|
|
2938
2978
|
/**
|
@@ -3448,6 +3488,8 @@ export declare interface SuccessConfirmationOverlayPayload extends ConfirmationO
|
|
3448
3488
|
confirmButtonText?: string;
|
3449
3489
|
}
|
3450
3490
|
|
3491
|
+
export declare type SynchronizeUserTypeFunction = (payload: CreateUserPayload, tenantId: string, tenantUserId: string) => Promise<string>;
|
3492
|
+
|
3451
3493
|
/**
|
3452
3494
|
* @public
|
3453
3495
|
*/
|
@@ -3484,6 +3526,16 @@ export declare type Tier = {
|
|
3484
3526
|
type: 'tier';
|
3485
3527
|
};
|
3486
3528
|
|
3529
|
+
export declare interface TileApplicationData {
|
3530
|
+
id: string;
|
3531
|
+
name: Translation;
|
3532
|
+
description?: string;
|
3533
|
+
logo: string;
|
3534
|
+
urlHandle: string;
|
3535
|
+
organizationId: string;
|
3536
|
+
type: ApplicationType;
|
3537
|
+
}
|
3538
|
+
|
3487
3539
|
/**
|
3488
3540
|
* @internal
|
3489
3541
|
*/
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@tivio/sdk-react",
|
3
|
-
"version": "9.
|
3
|
+
"version": "9.1.0-alpha.0",
|
4
4
|
"main": "dist/index.js",
|
5
5
|
"typings": "dist/index.d.ts",
|
6
6
|
"source": "src/index.ts",
|
@@ -34,7 +34,7 @@
|
|
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.120",
|
38
38
|
"dayjs": "^1.11.0",
|
39
39
|
"es7-object-polyfill": "^1.0.1",
|
40
40
|
"firebase": "8.10.1",
|
@@ -42,7 +42,6 @@
|
|
42
42
|
"mobx": "^6.0.4",
|
43
43
|
"mobx-react": "^7.1.0",
|
44
44
|
"react-router-dom": "^5.3.4",
|
45
|
-
"react-spring": "^9.2.4",
|
46
45
|
"react-virtualized": "^9.22.3",
|
47
46
|
"styled-components": "^5.2.1",
|
48
47
|
"whatwg-fetch": "^3.6.2",
|