@tivio/sdk-react 3.2.5 → 3.3.2

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -2,10 +2,15 @@
2
2
 
3
3
  ## Changelog
4
4
 
5
-
6
-
5
+ * v3.3.2
6
+ * patch: Adding new optional parameters (where, orderBy) to useTaggedVideos hook
7
+ * v3.3.1
8
+ * patch: Fixed types of `setUser`
9
+ * v3.3.0
10
+ * minor: Add getPlayerCapabilities to getters.
11
+ * patch: Added option to log out via `setUser(null)`, requires @tivio/core-react-dom@2.17.9
7
12
  * v3.2.5
8
- * fix: added recovery flag to QerkoPaymentInfo type
13
+ * patch: added recovery flag to QerkoPaymentInfo type
9
14
  * patch: bundle.types changes - internal.components.WebVideoScreen
10
15
  * patch: types changes - add new onBack prop to WebPlayerProps
11
16
  * patch: Refactor useVideo hook, now uses hook from core-react
@@ -152,7 +157,7 @@ import { setUser } from '@tivio/sdk-react'
152
157
  await setUser('userId', { token: 'xxx'})
153
158
 
154
159
  // Log out
155
- await setUser('userId', null)
160
+ await setUser(null)
156
161
  ```
157
162
 
158
163
  ## Tivio widget
package/README.md.bak CHANGED
@@ -2,10 +2,15 @@
2
2
 
3
3
  ## Changelog
4
4
 
5
-
6
-
5
+ * v3.3.2
6
+ * patch: Adding new optional parameters (where, orderBy) to useTaggedVideos hook
7
+ * v3.3.1
8
+ * patch: Fixed types of `setUser`
9
+ * v3.3.0
10
+ * minor: Add getPlayerCapabilities to getters.
11
+ * patch: Added option to log out via `setUser(null)`, requires @tivio/core-react-dom@2.17.9
7
12
  * v3.2.5
8
- * fix: added recovery flag to QerkoPaymentInfo type
13
+ * patch: added recovery flag to QerkoPaymentInfo type
9
14
  * patch: bundle.types changes - internal.components.WebVideoScreen
10
15
  * patch: types changes - add new onBack prop to WebPlayerProps
11
16
  * patch: Refactor useVideo hook, now uses hook from core-react
@@ -156,7 +161,7 @@ import { setUser } from '@tivio/sdk-react'
156
161
  await setUser('userId', { token: 'xxx'})
157
162
 
158
163
  // Log out
159
- await setUser('userId', null)
164
+ await setUser(null)
160
165
  ```
161
166
 
162
167
  ## Tivio widget
@@ -1,4 +1,4 @@
1
1
  import { QerkoTransaction } from '@tivio/common';
2
- import { NewVoucher } from './useTransactionPayment';
2
+ import { NewVoucher } from '../../types/bundle.types';
3
3
  declare const usePurchaseSubscription: (monetizationId: string, voucher?: NewVoucher | undefined) => QerkoTransaction;
4
4
  export { usePurchaseSubscription, };
@@ -1,12 +1,10 @@
1
1
  import { ScreenOptions } from '@tivio/common';
2
2
  /**
3
+ * @deprecated
4
+ *
3
5
  * Use app screen
4
6
  * @param screenId - screen ID
5
7
  * @param options - subscribe to screen options
6
8
  */
7
- declare const useScreen: (screenId: string, options?: ScreenOptions | undefined) => {
8
- error: Error | null;
9
- data: import("@tivio/common").Screen | null;
10
- isLoading: boolean;
11
- };
9
+ declare const useScreen: (screenId: string, options?: ScreenOptions | undefined) => never;
12
10
  export { useScreen, };
@@ -1,10 +1,5 @@
1
1
  import { QerkoTransaction } from '@tivio/common';
2
- /**
3
- * TODO: Duplicate, because we can't import types from core-js.
4
- */
5
- declare type NewVoucher = {
6
- expirationDate: Date | number;
7
- };
2
+ import { NewVoucher } from '../../types/bundle.types';
8
3
  declare const useTransactionPayment: (videoId: string, monetizationId: string, voucher?: NewVoucher | undefined) => QerkoTransaction;
9
4
  export { useTransactionPayment, };
10
5
  export type { NewVoucher, };