@tivio/sdk-react 3.2.0 → 3.2.3

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 CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  ## Changelog
4
4
 
5
+ * patch: deprecated `useLastVideoByWidgetId`
6
+ * v3.2.2
7
+ * minor: useRowsInScreen, useItemsInRow, useTaggedVideos - hasNextPage and loading added to pagination
8
+ * minor: useRowsInScreen, useItemsInRow, useTaggedVideos - implementation moved to remote bundle
9
+ * patch: Fixed Tivio startup on Tizen 6
10
+ * minor: Added `forceCloudFnResolver` option
11
+ * v3.2.1
12
+ * patch: fix of @tivio/common version
5
13
  * v3.2.0
6
14
  * minor: Added `capabilitiesOptions` for finer configuration of device capabilities
7
15
  * minor: tag names are returned in correct language (the one from tivio config); language value should be one from enum "Language"
package/README.md.bak CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  ## Changelog
4
4
 
5
+ * patch: deprecated `useLastVideoByWidgetId`
6
+ * v3.2.2
7
+ * minor: useRowsInScreen, useItemsInRow, useTaggedVideos - hasNextPage and loading added to pagination
8
+ * minor: useRowsInScreen, useItemsInRow, useTaggedVideos - implementation moved to remote bundle
9
+ * patch: Fixed Tivio startup on Tizen 6
10
+ * minor: Added `forceCloudFnResolver` option
11
+ * v3.2.1
12
+ * patch: fix of @tivio/common version
5
13
  * v3.2.0
6
14
  * minor: Added `capabilitiesOptions` for finer configuration of device capabilities
7
15
  * minor: tag names are returned in correct language (the one from tivio config); language value should be one from enum "Language"
@@ -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';
@@ -1,2 +1,5 @@
1
1
  import { Video } from '@tivio/common';
2
+ /**
3
+ * @deprecated will be removed in v4
4
+ */
2
5
  export declare function useLastVideoByWidgetId(widgetId: string): Video | null;
@@ -0,0 +1,11 @@
1
+ export declare function usePurchaseRecovery(): {
2
+ purchaseRecoveryResult?: string | undefined;
3
+ loading: boolean;
4
+ error?: any;
5
+ purchaseRecovery: (monetizationId: string) => Promise<string>;
6
+ } | {
7
+ purchaseRecoveryResult: undefined;
8
+ loading: true;
9
+ error: undefined;
10
+ purchaseRecovery: () => void;
11
+ };
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
@@ -1,3 +1,5 @@
1
+ import 'whatwg-fetch';
2
+ import 'es7-object-polyfill';
1
3
  export { PlayerProvider, withPlayerContext } from './components/PlayerProvider';
2
4
  export type { PlayerProviderProps } from './components/PlayerProvider';
3
5
  export { bundlePromise } from './services/bundlePromise';