@tivio/sdk-react 2.1.4 → 2.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. package/README.md +8 -0
  2. package/coverage/clover.xml +356 -95
  3. package/coverage/lcov-report/index.html +55 -25
  4. package/coverage/lcov-report/src/components/ContextProvider.tsx.html +194 -0
  5. package/coverage/lcov-report/src/components/TivioProvider.tsx.html +109 -37
  6. package/coverage/lcov-report/src/components/TivioWidgetError.tsx.html +3 -3
  7. package/coverage/lcov-report/src/components/TivioWidgetLoader.tsx.html +3 -3
  8. package/coverage/lcov-report/src/components/context/ChannelsContext.tsx.html +197 -0
  9. package/coverage/lcov-report/src/components/context/OrganizationSubscriptionsContext.tsx.html +179 -0
  10. package/coverage/lcov-report/src/components/context/PurchasesWithVideosContext.tsx.html +179 -0
  11. package/coverage/lcov-report/src/components/context/RowItemsContext.tsx.html +191 -0
  12. package/coverage/lcov-report/src/components/context/ScreensContext.tsx.html +185 -0
  13. package/coverage/lcov-report/src/components/context/SectionsContext.tsx.html +200 -0
  14. package/coverage/lcov-report/src/components/context/UserContext.tsx.html +176 -0
  15. package/coverage/lcov-report/src/components/context/VideosContext.tsx.html +200 -0
  16. package/coverage/lcov-report/src/components/context/index.html +231 -0
  17. package/coverage/lcov-report/src/components/context/index.ts.html +104 -0
  18. package/coverage/lcov-report/src/components/index.html +32 -32
  19. package/coverage/lcov-report/src/conf.ts.html +27 -21
  20. package/coverage/lcov-report/src/index.html +21 -6
  21. package/coverage/lcov-report/src/services/bundleLoader.ts.html +127 -157
  22. package/coverage/lcov-report/src/services/dependencyResolver.ts.html +36 -30
  23. package/coverage/lcov-report/src/services/index.html +102 -42
  24. package/coverage/lcov-report/src/services/logger.ts.html +53 -98
  25. package/coverage/lcov-report/src/services/packageLoader.ts.html +31 -31
  26. package/coverage/lcov-report/src/services/pubSub.ts.html +9 -9
  27. package/coverage/lcov-report/src/services/sentry.ts.html +170 -0
  28. package/coverage/lcov-report/src/services/settings.ts.html +34 -34
  29. package/coverage/lcov-report/src/setupTests.ts.html +9 -9
  30. package/coverage/lcov.info +641 -141
  31. package/dist/components/TivioProvider.d.ts +3 -0
  32. package/dist/components/hooks/usePurchaseSubscription.d.ts +2 -7
  33. package/dist/components/hooks/useTransactionPayment.d.ts +2 -7
  34. package/dist/conf.d.ts +1 -0
  35. package/dist/index.js +1 -2
  36. package/dist/services/dependencyResolver.d.ts +2 -1
  37. package/dist/services/sentry.d.ts +2 -5
  38. package/dist/types.d.ts +5 -13
  39. package/env +0 -0
  40. package/package.json +12 -12
  41. package/scripts/build_dev.sh +3 -0
  42. package/scripts/build_prod.sh +3 -0
  43. package/scripts/postpublish.ts +10 -0
  44. package/scripts/start.sh +3 -0
  45. package/dist/index.js.LICENSE.txt +0 -114
@@ -7,6 +7,9 @@ import { RemoteBundleState } from '../services/bundleLoader';
7
7
  import type { Conf } from '../types';
8
8
  export declare type TivioProviderProps = {
9
9
  children: React.ReactNode;
10
+ /**
11
+ * This prop must be set only once and not change value afterwards
12
+ */
10
13
  conf?: Conf;
11
14
  };
12
15
  export declare const TivioProvider: ({ children, conf, }: TivioProviderProps) => FunctionComponentElement<TivioProviderProps>;
@@ -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, };
package/dist/conf.d.ts CHANGED
@@ -23,6 +23,7 @@ export declare type InternalConf = {
23
23
  }>;
24
24
  language?: string;
25
25
  sdkVersion: string;
26
+ enableSentry?: boolean;
26
27
  };
27
28
  export declare const defaultConf: {
28
29
  secret: null;