@tivio/sdk-react 2.1.1 → 2.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. package/README.md +8 -1
  2. package/dist/components/hooks/usePurchaseSubscription.d.ts +2 -7
  3. package/dist/components/hooks/useTransactionPayment.d.ts +2 -7
  4. package/dist/customPlayer.types.d.ts +2 -0
  5. package/dist/index.js +1 -1
  6. package/dist/services/sentry.d.ts +1 -1
  7. package/dist/types.d.ts +21 -11
  8. package/env +0 -0
  9. package/package.json +7 -8
  10. package/scripts/build_dev.sh +3 -0
  11. package/scripts/build_prod.sh +3 -0
  12. package/scripts/prepublish.ts +16 -0
  13. package/scripts/start.sh +3 -0
  14. package/coverage/clover.xml +0 -113
  15. package/coverage/lcov-report/base.css +0 -224
  16. package/coverage/lcov-report/block-navigation.js +0 -79
  17. package/coverage/lcov-report/favicon.png +0 -0
  18. package/coverage/lcov-report/index.html +0 -126
  19. package/coverage/lcov-report/prettify.css +0 -1
  20. package/coverage/lcov-report/prettify.js +0 -2
  21. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  22. package/coverage/lcov-report/sorter.js +0 -170
  23. package/coverage/lcov-report/src/components/TivioProvider.tsx.html +0 -227
  24. package/coverage/lcov-report/src/components/TivioWidget.tsx.html +0 -203
  25. package/coverage/lcov-report/src/components/TivioWidgetError.tsx.html +0 -122
  26. package/coverage/lcov-report/src/components/TivioWidgetLoader.tsx.html +0 -116
  27. package/coverage/lcov-report/src/components/index.html +0 -156
  28. package/coverage/lcov-report/src/conf.ts.html +0 -239
  29. package/coverage/lcov-report/src/index.html +0 -111
  30. package/coverage/lcov-report/src/services/bundleLoader.ts.html +0 -698
  31. package/coverage/lcov-report/src/services/dependencyResolver.ts.html +0 -212
  32. package/coverage/lcov-report/src/services/index.html +0 -141
  33. package/coverage/lcov-report/src/services/logger.ts.html +0 -365
  34. package/coverage/lcov-report/src/services/packageLoader.ts.html +0 -194
  35. package/coverage/lcov-report/src/services/pubSub.ts.html +0 -242
  36. package/coverage/lcov-report/src/services/settings.ts.html +0 -218
  37. package/coverage/lcov-report/src/setupTests.ts.html +0 -158
  38. package/coverage/lcov.info +0 -175
package/README.md CHANGED
@@ -2,7 +2,14 @@
2
2
 
3
3
  ## Changelog
4
4
 
5
- * Unreleased
5
+ * v2.1.5
6
+ * patch fix of `useVideosInSection` hook (fetching video's monetizations)
7
+ * v2.1.4
8
+ * patch: fix re-rendering of `useAd` during non-skippable ads (requires core-react@2.1.9)
9
+ * v2.1.3
10
+ * patch: fix changelog
11
+ * v2.1.2
12
+ * patch: Fixed exported types
6
13
  * v2.1.1
7
14
  * patch: TivioWidget now correctly reports `false` via `onEnabled` callback when in invalid internal state
8
15
  * v2.1.0
@@ -1,8 +1,3 @@
1
- import { QerkoPaymentInfo } from '../../types';
2
- declare const usePurchaseSubscription: (monetizationId: string) => {
3
- paymentError: string;
4
- paymentInfo: QerkoPaymentInfo | null;
5
- paymentStatus: string;
6
- getPaymentInfo: () => Promise<void>;
7
- };
1
+ import { QerkoTransaction } from '@tivio/common';
2
+ declare const usePurchaseSubscription: (monetizationId: string) => QerkoTransaction;
8
3
  export { usePurchaseSubscription, };
@@ -1,8 +1,3 @@
1
- import { QerkoPaymentInfo } from '../../index';
2
- declare const useTransactionPayment: (videoId: string, monetizationId: string) => {
3
- paymentInfo: QerkoPaymentInfo | null;
4
- paymentError: string;
5
- paymentStatus: string;
6
- getPaymentInfo: () => Promise<void>;
7
- };
1
+ import { QerkoTransaction } from '@tivio/common';
2
+ declare const useTransactionPayment: (videoId: string, monetizationId: string) => QerkoTransaction;
8
3
  export { useTransactionPayment, };
@@ -15,6 +15,8 @@ export interface AdSource extends BasicSource {
15
15
  durationMs: number;
16
16
  skipDelayMs: number | null;
17
17
  type: 'AD';
18
+ canSkip?: boolean;
19
+ skip?: () => void;
18
20
  }
19
21
  export interface VodSource extends BasicSource {
20
22
  type: 'VOD';