@tivio/sdk-react 3.2.4 → 3.2.5

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,13 @@
2
2
 
3
3
  ## Changelog
4
4
 
5
+
6
+
7
+ * v3.2.5
8
+ * fix: added recovery flag to QerkoPaymentInfo type
9
+ * patch: bundle.types changes - internal.components.WebVideoScreen
10
+ * patch: types changes - add new onBack prop to WebPlayerProps
11
+ * patch: Refactor useVideo hook, now uses hook from core-react
5
12
  * v3.2.4
6
13
  * minor: added useApplyInviteCode
7
14
  * minor: better errors from useVoucher
package/README.md.bak CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  ## Changelog
4
4
 
5
+
6
+
7
+ * v3.2.5
8
+ * fix: added recovery flag to QerkoPaymentInfo type
9
+ * patch: bundle.types changes - internal.components.WebVideoScreen
10
+ * patch: types changes - add new onBack prop to WebPlayerProps
11
+ * patch: Refactor useVideo hook, now uses hook from core-react
5
12
  * v3.2.4
6
13
  * minor: added useApplyInviteCode
7
14
  * minor: better errors from useVoucher
@@ -1,8 +1,7 @@
1
1
  import React from 'react';
2
- import { RemoteBundleState } from '../services/bundleLoader';
2
+ import type { RemoteBundleState } from '../types/bundle.types';
3
3
  interface Props {
4
4
  bundleState: RemoteBundleState;
5
- children: any;
6
5
  }
7
6
  declare const ContextProvider: React.FC<Props>;
8
7
  export { ContextProvider, };
@@ -3,8 +3,7 @@
3
3
  * nangu.TV, a.s PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
4
4
  */
5
5
  import React from 'react';
6
- import { RemoteBundleState } from '../services/bundleLoader';
7
- import { Config } from '../types/bundle.types';
6
+ import type { Config, RemoteBundleState } from '../types/bundle.types';
8
7
  export declare type TivioProviderProps = {
9
8
  /**
10
9
  * This prop must be set only once and not change value afterwards
@@ -29,8 +29,8 @@ declare const useSection: (sectionId: string) => {
29
29
  * @param videoId - video id
30
30
  */
31
31
  declare const useVideo: (videoId?: string | undefined) => {
32
- error: string | null;
33
32
  data: Video | null;
33
+ error: string | null;
34
34
  };
35
35
  /**
36
36
  * Use videos in section
package/dist/index.d.ts CHANGED
@@ -16,6 +16,5 @@ export * from './types/types';
16
16
  export { Disposer } from './types/common';
17
17
  export { Empty } from './types/common';
18
18
  export { Nullable } from './types/common';
19
- export { Config } from './types/bundle.types';
20
- export { TivioBundle, TivioHooks, TivioComponents, TivioAuth, TivioGetters, TivioSubscriptions, PlayerCapability, Currency, TivioInternalHooks, TivioInternalProviders, } from './types/bundle.types';
19
+ export * from './types/bundle.types';
21
20
  export { setUser } from './services/login';