@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.
- package/README.md +8 -0
- package/coverage/clover.xml +356 -95
- package/coverage/lcov-report/index.html +55 -25
- package/coverage/lcov-report/src/components/ContextProvider.tsx.html +194 -0
- package/coverage/lcov-report/src/components/TivioProvider.tsx.html +109 -37
- package/coverage/lcov-report/src/components/TivioWidgetError.tsx.html +3 -3
- package/coverage/lcov-report/src/components/TivioWidgetLoader.tsx.html +3 -3
- package/coverage/lcov-report/src/components/context/ChannelsContext.tsx.html +197 -0
- package/coverage/lcov-report/src/components/context/OrganizationSubscriptionsContext.tsx.html +179 -0
- package/coverage/lcov-report/src/components/context/PurchasesWithVideosContext.tsx.html +179 -0
- package/coverage/lcov-report/src/components/context/RowItemsContext.tsx.html +191 -0
- package/coverage/lcov-report/src/components/context/ScreensContext.tsx.html +185 -0
- package/coverage/lcov-report/src/components/context/SectionsContext.tsx.html +200 -0
- package/coverage/lcov-report/src/components/context/UserContext.tsx.html +176 -0
- package/coverage/lcov-report/src/components/context/VideosContext.tsx.html +200 -0
- package/coverage/lcov-report/src/components/context/index.html +231 -0
- package/coverage/lcov-report/src/components/context/index.ts.html +104 -0
- package/coverage/lcov-report/src/components/index.html +32 -32
- package/coverage/lcov-report/src/conf.ts.html +27 -21
- package/coverage/lcov-report/src/index.html +21 -6
- package/coverage/lcov-report/src/services/bundleLoader.ts.html +127 -157
- package/coverage/lcov-report/src/services/dependencyResolver.ts.html +36 -30
- package/coverage/lcov-report/src/services/index.html +102 -42
- package/coverage/lcov-report/src/services/logger.ts.html +53 -98
- package/coverage/lcov-report/src/services/packageLoader.ts.html +31 -31
- package/coverage/lcov-report/src/services/pubSub.ts.html +9 -9
- package/coverage/lcov-report/src/services/sentry.ts.html +170 -0
- package/coverage/lcov-report/src/services/settings.ts.html +34 -34
- package/coverage/lcov-report/src/setupTests.ts.html +9 -9
- package/coverage/lcov.info +641 -141
- package/dist/components/TivioProvider.d.ts +3 -0
- package/dist/components/hooks/usePurchaseSubscription.d.ts +2 -7
- package/dist/components/hooks/useTransactionPayment.d.ts +2 -7
- package/dist/conf.d.ts +1 -0
- package/dist/index.js +1 -2
- package/dist/services/dependencyResolver.d.ts +2 -1
- package/dist/services/sentry.d.ts +2 -5
- package/dist/types.d.ts +5 -13
- package/env +0 -0
- package/package.json +12 -12
- package/scripts/build_dev.sh +3 -0
- package/scripts/build_prod.sh +3 -0
- package/scripts/postpublish.ts +10 -0
- package/scripts/start.sh +3 -0
- 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 {
|
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 {
|
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, };
|