@tivio/sdk-react 9.5.0 → 9.6.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 +154 -3
- package/README.md.bak +154 -3
- package/dist/index.d.ts +96 -21
- package/dist/index.js +1 -1
- package/dist/sdk-react.d.ts +96 -21
- package/package.json +2 -2
package/dist/sdk-react.d.ts
CHANGED
@@ -1887,6 +1887,7 @@ export declare interface ForbiddenOnCallError extends GenericOnCallError {
|
|
1887
1887
|
}
|
1888
1888
|
|
1889
1889
|
export declare enum ForbiddenReason {
|
1890
|
+
AD_BLOCKING = "AD_BLOCKING",
|
1890
1891
|
MONETIZATION = "MONETIZATION",
|
1891
1892
|
GEO_BLOCKING = "GEO_BLOCKING",
|
1892
1893
|
EMAIL_ALREADY_EXISTS = "EMAIL_ALREADY_EXISTS",
|
@@ -4013,11 +4014,11 @@ export declare enum PlayerWrapperEvents {
|
|
4013
4014
|
/**
|
4014
4015
|
* Triggered when an ad starts playing
|
4015
4016
|
*/
|
4016
|
-
'
|
4017
|
+
'ad-started' = "ad-started",
|
4017
4018
|
/**
|
4018
4019
|
* Triggered when an ad finishes playing
|
4019
4020
|
*/
|
4020
|
-
'
|
4021
|
+
'ad-ended' = "ad-ended"
|
4021
4022
|
}
|
4022
4023
|
|
4023
4024
|
/**
|
@@ -5410,6 +5411,14 @@ export declare type SdkReactConfig = Omit<TivioConfig, 'language'> & {
|
|
5410
5411
|
language?: LangCode;
|
5411
5412
|
};
|
5412
5413
|
|
5414
|
+
/**
|
5415
|
+
* @public
|
5416
|
+
*/
|
5417
|
+
export declare interface SDKUserAuthCallbacks {
|
5418
|
+
onGoToLogin?: () => void;
|
5419
|
+
onGoToRegistration?: () => void;
|
5420
|
+
}
|
5421
|
+
|
5413
5422
|
/**
|
5414
5423
|
* @public
|
5415
5424
|
* @deprecated sections are no longer used.
|
@@ -5715,19 +5724,19 @@ export declare interface SimplifiedVideoController {
|
|
5715
5724
|
}) => void): void;
|
5716
5725
|
/**
|
5717
5726
|
* Add an event listener for ad started events
|
5718
|
-
* @param event - Must be '
|
5727
|
+
* @param event - Must be 'ad-started'
|
5719
5728
|
* @param callback - Function called when an ad starts playing
|
5720
5729
|
*/
|
5721
|
-
addEventListener(event: '
|
5730
|
+
addEventListener(event: 'ad-started', callback: (adMetadata: AdMetadata & {
|
5722
5731
|
customAdMetadata?: Record<string, unknown> | null;
|
5723
5732
|
ctaElement: HTMLElement | null;
|
5724
5733
|
}) => void): void;
|
5725
5734
|
/**
|
5726
5735
|
* Add an event listener for ad ended events
|
5727
|
-
* @param event - Must be '
|
5736
|
+
* @param event - Must be 'ad-ended'
|
5728
5737
|
* @param callback - Function called when an ad finishes playing
|
5729
5738
|
*/
|
5730
|
-
addEventListener(event: '
|
5739
|
+
addEventListener(event: 'ad-ended', callback: () => void): void;
|
5731
5740
|
/**
|
5732
5741
|
* Remove an event listener
|
5733
5742
|
* @param event - The event name to stop listening for
|
@@ -6374,6 +6383,10 @@ export declare interface TivioComponents {
|
|
6374
6383
|
ContentSortPicker: React_2.ComponentType<ContentSortPickerProps>;
|
6375
6384
|
WebTivioProVideoScreen: React_2.ComponentType<WebTivioProVideoScreenProps>;
|
6376
6385
|
RemoteController: React_2.ComponentType<RemoteControllerProps>;
|
6386
|
+
MonetizationsSelectOverlay: React_2.ComponentType;
|
6387
|
+
MonetizationsSelectOverlayContextProvider: React_2.ComponentType<{
|
6388
|
+
children: React_2.ReactNode;
|
6389
|
+
}>;
|
6377
6390
|
}
|
6378
6391
|
|
6379
6392
|
/**
|
@@ -6644,7 +6657,9 @@ export declare type TivioInternalProviders = {
|
|
6644
6657
|
UserContextProvider: React_2.ComponentType<{
|
6645
6658
|
children?: React_2.ReactNode;
|
6646
6659
|
}>;
|
6647
|
-
MonetizationsSelectOverlayContextProvider: React_2.ComponentType
|
6660
|
+
MonetizationsSelectOverlayContextProvider: React_2.ComponentType<{
|
6661
|
+
children: React_2.ReactNode;
|
6662
|
+
}>;
|
6648
6663
|
QerkoOverlayContextProvider: React_2.ComponentType;
|
6649
6664
|
/**
|
6650
6665
|
* @deprecated do not use, this provider will be removed in the future
|
@@ -6887,7 +6902,7 @@ export declare interface TvAppProps {
|
|
6887
6902
|
/**
|
6888
6903
|
* @public
|
6889
6904
|
*/
|
6890
|
-
export declare interface TvChannel extends RowItem {
|
6905
|
+
export declare interface TvChannel extends RowItem, MonetizableItem {
|
6891
6906
|
id: string;
|
6892
6907
|
itemType: ROW_ITEM_TYPES.TV_CHANNEL;
|
6893
6908
|
name: string;
|
@@ -6898,17 +6913,11 @@ export declare interface TvChannel extends RowItem {
|
|
6898
6913
|
logoPendingOverlayWidth?: string;
|
6899
6914
|
hls: string;
|
6900
6915
|
dash: string;
|
6901
|
-
/**
|
6902
|
-
* Returns all transactions and subscriptions applied to this tv channel.
|
6903
|
-
* Transactions before subscriptions, sorted by price ascending.
|
6904
|
-
*/
|
6905
|
-
getPurchasableMonetizations(options?: GetPurchasableMonetizationsOptions): PurchasableMonetization[];
|
6906
6916
|
getSourceUrl(options?: {
|
6907
6917
|
language?: LangCode;
|
6908
6918
|
}): Promise<GetSourceUrlResponse & {
|
6909
6919
|
language?: LangCode;
|
6910
6920
|
}>;
|
6911
|
-
purchasableMonetization: any | null;
|
6912
6921
|
price: number;
|
6913
6922
|
cover: string;
|
6914
6923
|
isPlayable: boolean;
|
@@ -7814,7 +7823,7 @@ export declare interface VideoController {
|
|
7814
7823
|
muted: boolean;
|
7815
7824
|
volume: number;
|
7816
7825
|
}) => void): void;
|
7817
|
-
addEventListener(event: '
|
7826
|
+
addEventListener(event: 'ad-started', callback: (value: AdMetadata & {
|
7818
7827
|
adCtaElement: HTMLElement | null;
|
7819
7828
|
}) => void): void;
|
7820
7829
|
/**
|
@@ -8318,6 +8327,7 @@ export declare interface Watermark {
|
|
8318
8327
|
|
8319
8328
|
export declare interface WebConfig {
|
8320
8329
|
customer: CustomerId;
|
8330
|
+
customerName?: string;
|
8321
8331
|
title?: string;
|
8322
8332
|
description?: string;
|
8323
8333
|
logo: string;
|
@@ -8333,16 +8343,35 @@ export declare interface WebConfig {
|
|
8333
8343
|
* Text on buy voucher button, if not provided the default text will be used.
|
8334
8344
|
*/
|
8335
8345
|
buyVoucherButtonText?: string;
|
8346
|
+
/**
|
8347
|
+
* If true, the voucher button will be shown in the header.
|
8348
|
+
*/
|
8349
|
+
showVoucherButton?: boolean;
|
8336
8350
|
allowSearch?: boolean;
|
8337
8351
|
logoHeight?: string;
|
8338
8352
|
mobileLogoHeight?: string;
|
8339
8353
|
buySubscriptionButtonText?: string;
|
8354
|
+
isHidden?: boolean;
|
8355
|
+
/**
|
8356
|
+
* Additional menu items to be shown in the rounded menu in the header (external or internal)
|
8357
|
+
*/
|
8358
|
+
additionalMenuItems?: {
|
8359
|
+
name: string;
|
8360
|
+
href: string;
|
8361
|
+
newTab?: boolean;
|
8362
|
+
}[];
|
8340
8363
|
};
|
8341
8364
|
footer?: {
|
8365
|
+
isHidden?: boolean;
|
8342
8366
|
/**
|
8343
8367
|
* If logo is different from logo in header
|
8344
8368
|
*/
|
8345
8369
|
logo?: string;
|
8370
|
+
/**
|
8371
|
+
* @fixme https://app.clickup.com/t/90151157205/TIV-1515
|
8372
|
+
* If multiple logos are provided, the multiple logos are prioritized over the single logo.
|
8373
|
+
*/
|
8374
|
+
multipleLogos?: string[];
|
8346
8375
|
showLogo?: boolean;
|
8347
8376
|
/**
|
8348
8377
|
* right panel - various type of contacts to owners of website
|
@@ -8385,6 +8414,19 @@ export declare interface WebConfig {
|
|
8385
8414
|
email?: string;
|
8386
8415
|
};
|
8387
8416
|
cookieSettingsLabel?: string;
|
8417
|
+
disclaimer?: string;
|
8418
|
+
showDivider?: boolean;
|
8419
|
+
/**
|
8420
|
+
* Additional links to be shown in the footer
|
8421
|
+
*/
|
8422
|
+
additionalLinks?: {
|
8423
|
+
name: string;
|
8424
|
+
href: string;
|
8425
|
+
}[];
|
8426
|
+
/**
|
8427
|
+
* Hide footer on these paths
|
8428
|
+
*/
|
8429
|
+
hideFooter?: string[];
|
8388
8430
|
partners?: {
|
8389
8431
|
name: string;
|
8390
8432
|
logo: string;
|
@@ -8400,6 +8442,14 @@ export declare interface WebConfig {
|
|
8400
8442
|
* so app requires authorization to see them.
|
8401
8443
|
*/
|
8402
8444
|
securedContent?: boolean;
|
8445
|
+
/**
|
8446
|
+
* If true, then auth is required for all pages.
|
8447
|
+
*/
|
8448
|
+
isAuthRequired?: boolean;
|
8449
|
+
/**
|
8450
|
+
* If true, then buy subscription button is hidden.
|
8451
|
+
*/
|
8452
|
+
hideBuySubscriptionButton?: boolean;
|
8403
8453
|
/**
|
8404
8454
|
* CSS styles for application background.
|
8405
8455
|
*/
|
@@ -8418,6 +8468,10 @@ export declare interface WebConfig {
|
|
8418
8468
|
* Default is TRUE (see {@link AppLoadingOverlay}
|
8419
8469
|
*/
|
8420
8470
|
showProgressBar?: boolean;
|
8471
|
+
/**
|
8472
|
+
* URL to background image shown on loading screen.
|
8473
|
+
*/
|
8474
|
+
backgroundUrl?: string;
|
8421
8475
|
};
|
8422
8476
|
/**
|
8423
8477
|
* Slug of all pages where user will be forced to fill login form if he's not logged in.
|
@@ -8445,6 +8499,7 @@ export declare interface WebConfig {
|
|
8445
8499
|
*/
|
8446
8500
|
showChooseSubscription?: boolean;
|
8447
8501
|
registration?: {
|
8502
|
+
logoMarginTop?: string;
|
8448
8503
|
/**
|
8449
8504
|
* Customization of auth form
|
8450
8505
|
*/
|
@@ -8464,6 +8519,7 @@ export declare interface WebConfig {
|
|
8464
8519
|
showAcceptanceOfTermsAndConditions?: boolean;
|
8465
8520
|
};
|
8466
8521
|
registrationConsent?: string;
|
8522
|
+
socialRegistrationConsent?: string;
|
8467
8523
|
};
|
8468
8524
|
payment?: {
|
8469
8525
|
paymentConsent?: string;
|
@@ -8474,9 +8530,11 @@ export declare interface WebConfig {
|
|
8474
8530
|
*/
|
8475
8531
|
supportVouchers?: boolean;
|
8476
8532
|
/**
|
8477
|
-
* Config for Google Tag Manager
|
8533
|
+
* Config for Google Tag Manager with optional shouldWaitForDidomi flag
|
8478
8534
|
*/
|
8479
|
-
googleTagManagerConfig?: TagManagerArgs
|
8535
|
+
googleTagManagerConfig?: TagManagerArgs & {
|
8536
|
+
shouldWaitForDidomi?: boolean;
|
8537
|
+
};
|
8480
8538
|
customScripts?: CustomScript[];
|
8481
8539
|
/**
|
8482
8540
|
* Favicons config
|
@@ -8495,6 +8553,8 @@ export declare interface WebConfig {
|
|
8495
8553
|
};
|
8496
8554
|
monetizationSelectOverlay?: {
|
8497
8555
|
title?: string;
|
8556
|
+
benefitLeftIcon?: string;
|
8557
|
+
showFullMonetizationOnMobile?: boolean;
|
8498
8558
|
};
|
8499
8559
|
/**
|
8500
8560
|
* Google Analytics ID. If provided, Google Analytics will be enabled.
|
@@ -8506,6 +8566,7 @@ export declare interface WebConfig {
|
|
8506
8566
|
centeredMenu?: boolean;
|
8507
8567
|
/**
|
8508
8568
|
* All values are considered as false if not provided.
|
8569
|
+
* @deprecated - use settings.allowedSignInProviders inside OrganizationDocument
|
8509
8570
|
*/
|
8510
8571
|
socialLogins?: {
|
8511
8572
|
showAppleLogin?: boolean;
|
@@ -8520,11 +8581,24 @@ export declare interface WebConfig {
|
|
8520
8581
|
* If true, robots.txt will prevent crawling of the website.
|
8521
8582
|
*/
|
8522
8583
|
norobots?: boolean;
|
8523
|
-
|
8524
|
-
|
8525
|
-
[key: string]: string;
|
8526
|
-
};
|
8584
|
+
voucher?: {
|
8585
|
+
voucherConsent: string;
|
8527
8586
|
};
|
8587
|
+
customTranslations?: Record<string, Record<string, string>>;
|
8588
|
+
onPurchase?: (monetization: Purchase) => void;
|
8589
|
+
facebookPixelConfig?: {
|
8590
|
+
pixelId: string;
|
8591
|
+
shouldWaitForDidomi?: boolean;
|
8592
|
+
};
|
8593
|
+
/**
|
8594
|
+
* If true, the app will be locked in the "remote controller" mode.
|
8595
|
+
* This means that the app will not be able to navigate to other pages and will only show the remote controller.
|
8596
|
+
*/
|
8597
|
+
isRemoteControllerApp?: boolean;
|
8598
|
+
/**
|
8599
|
+
* Determines if application should check allowed URL handles when switching applications.
|
8600
|
+
*/
|
8601
|
+
disableUrlHandleCheck?: boolean;
|
8528
8602
|
/**
|
8529
8603
|
* Map for all handlers
|
8530
8604
|
*/
|
@@ -8634,6 +8708,7 @@ export declare interface WebPlayerProps {
|
|
8634
8708
|
hideOverlay?: boolean;
|
8635
8709
|
sourcePlayMode?: SourcePlayMode;
|
8636
8710
|
adsConfig?: StaticAdsBreak[];
|
8711
|
+
userAuthCallbacks?: SDKUserAuthCallbacks;
|
8637
8712
|
}
|
8638
8713
|
|
8639
8714
|
/**
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@tivio/sdk-react",
|
3
|
-
"version": "9.
|
3
|
+
"version": "9.6.0",
|
4
4
|
"main": "dist/index.js",
|
5
5
|
"typings": "dist/index.d.ts",
|
6
6
|
"source": "src/index.ts",
|
@@ -38,7 +38,7 @@
|
|
38
38
|
"@material-ui/core": "^4.11.2",
|
39
39
|
"@material-ui/icons": "^4.11.2",
|
40
40
|
"@sentry/browser": "^6.1.0",
|
41
|
-
"@tivio/common": "1.1.
|
41
|
+
"@tivio/common": "1.1.136",
|
42
42
|
"dayjs": "^1.11.0",
|
43
43
|
"es7-object-polyfill": "^1.0.1",
|
44
44
|
"firebase": "8.10.1",
|