@tivio/sdk-react 3.2.1 → 3.2.4
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +11 -0
- package/README.md.bak +11 -0
- package/dist/components/hooks/index.d.ts +2 -0
- package/dist/components/hooks/useApplyInviteCode.d.ts +6 -0
- package/dist/components/hooks/useLastVideoByWidgetId.d.ts +3 -0
- package/dist/components/hooks/usePurchaseRecovery.d.ts +6 -0
- package/dist/components/hooks/useVoucher.d.ts +10 -1
- package/dist/config.d.ts +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/dist/info.d.ts +2 -0
- package/dist/services/bundleLoader.d.ts +1 -1
- package/dist/types/bundle.types.d.ts +73 -9
- package/package.json +6 -2
package/README.md
CHANGED
@@ -2,6 +2,17 @@
|
|
2
2
|
|
3
3
|
## Changelog
|
4
4
|
|
5
|
+
* v3.2.4
|
6
|
+
* minor: added useApplyInviteCode
|
7
|
+
* minor: better errors from useVoucher
|
8
|
+
* v3.2.3
|
9
|
+
* minor: added usePurchaseRecovery hook
|
10
|
+
* patch: deprecated `useLastVideoByWidgetId`
|
11
|
+
* v3.2.2
|
12
|
+
* minor: useRowsInScreen, useItemsInRow, useTaggedVideos - hasNextPage and loading added to pagination
|
13
|
+
* minor: useRowsInScreen, useItemsInRow, useTaggedVideos - implementation moved to remote bundle
|
14
|
+
* patch: Fixed Tivio startup on Tizen 6
|
15
|
+
* minor: Added `forceCloudFnResolver` option
|
5
16
|
* v3.2.1
|
6
17
|
* patch: fix of @tivio/common version
|
7
18
|
* v3.2.0
|
package/README.md.bak
CHANGED
@@ -2,6 +2,17 @@
|
|
2
2
|
|
3
3
|
## Changelog
|
4
4
|
|
5
|
+
* v3.2.4
|
6
|
+
* minor: added useApplyInviteCode
|
7
|
+
* minor: better errors from useVoucher
|
8
|
+
* v3.2.3
|
9
|
+
* minor: added usePurchaseRecovery hook
|
10
|
+
* patch: deprecated `useLastVideoByWidgetId`
|
11
|
+
* v3.2.2
|
12
|
+
* minor: useRowsInScreen, useItemsInRow, useTaggedVideos - hasNextPage and loading added to pagination
|
13
|
+
* minor: useRowsInScreen, useItemsInRow, useTaggedVideos - implementation moved to remote bundle
|
14
|
+
* patch: Fixed Tivio startup on Tizen 6
|
15
|
+
* minor: Added `forceCloudFnResolver` option
|
5
16
|
* v3.2.1
|
6
17
|
* patch: fix of @tivio/common version
|
7
18
|
* v3.2.0
|
@@ -6,6 +6,7 @@ export * from './useSearch';
|
|
6
6
|
export * from './useItemsInRow';
|
7
7
|
export * from './useCancelSubscription';
|
8
8
|
export * from './useTransactionPayment';
|
9
|
+
export * from './usePurchaseRecovery';
|
9
10
|
export * from './usePurchaseSubscription';
|
10
11
|
export * from './contentHooks';
|
11
12
|
export * from './playerHooks';
|
@@ -17,3 +18,4 @@ export * from './useVoucher';
|
|
17
18
|
export * from './useTivio';
|
18
19
|
export * from './useLastVideoByWidgetId';
|
19
20
|
export * from './useWatchWithoutAdsOffer';
|
21
|
+
export * from './useApplyInviteCode';
|
@@ -1,3 +1,8 @@
|
|
1
|
+
export declare type BadRequestError = Error & {
|
2
|
+
details?: {
|
3
|
+
reason?: 'DOES_NOT_EXIST' | 'EXPIRED' | 'ALREADY_USED';
|
4
|
+
};
|
5
|
+
};
|
1
6
|
/**
|
2
7
|
* TODO: Should be in core-js, we can't import types from it, though.
|
3
8
|
*/
|
@@ -11,6 +16,10 @@ declare type Voucher = {
|
|
11
16
|
declare const useVoucher: (voucherId: string) => {
|
12
17
|
activate: (() => Promise<void>) | null;
|
13
18
|
voucher: Voucher | null;
|
14
|
-
|
19
|
+
/**
|
20
|
+
* You can check error.details if you need to know error type when you want your own error messages
|
21
|
+
* (can be one of "DOES_NOT_EXIST", "EXPIRED" and "ALREADY_USED").
|
22
|
+
*/
|
23
|
+
error: Error | BadRequestError | null;
|
15
24
|
};
|
16
25
|
export { useVoucher, };
|
package/dist/config.d.ts
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
* Copyright (c) 2021, nangu.TV, a.s. All rights reserved.
|
3
3
|
* nangu.TV, a.s PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
|
4
4
|
*/
|
5
|
+
/// <reference types="react" />
|
5
6
|
import type { Config as ExternalConfig, InternalConfig } from './types/bundle.types';
|
6
7
|
import type { Currency } from '@tivio/common';
|
7
8
|
export declare const defaultConf: {
|
package/dist/index.d.ts
CHANGED