@frontegg/react-hooks
Advanced tools
Comparing version 2.8.12-alpha.1023100770 to 2.8.12-alpha.1023306250
@@ -239,2 +239,9 @@ 'use strict'; | ||
var usePaymentProvider = function () { | ||
return useSelector(function (state) { return state[subscriptions.subscriptionsStoreName]['config']; }, reactRedux.shallowEqual); | ||
}; | ||
var usePaymentProviderActions = function () { | ||
var dispatch = useDispatch(); | ||
return React.useMemo(function () { return toolkit.bindActionCreators(subscriptions.subscriptionActions.config, dispatch); }, [subscriptions.subscriptionActions.config]); | ||
}; | ||
var usePlans = function () { | ||
@@ -400,2 +407,4 @@ return useSelector(function (state) { return state[subscriptions.subscriptionsStoreName]['plans']; }, reactRedux.shallowEqual); | ||
exports.useOnRedirectTo = useOnRedirectTo; | ||
exports.usePaymentProvider = usePaymentProvider; | ||
exports.usePaymentProviderActions = usePaymentProviderActions; | ||
exports.usePlans = usePlans; | ||
@@ -402,0 +411,0 @@ exports.usePlansActions = usePlansActions; |
@@ -18,3 +18,3 @@ import './tslib.es6-e3c82a74.js'; | ||
import '@frontegg/redux-store/subscriptions'; | ||
export { d as useBillingInformation, e as useBillingInformationActions, b as useCheckout, c as useCheckoutActions, u as usePlans, a as usePlansActions } from './hooks-585c70a1.js'; | ||
export { f as useBillingInformation, g as useBillingInformationActions, d as useCheckout, e as useCheckoutActions, u as usePaymentProvider, a as usePaymentProviderActions, b as usePlans, c as usePlansActions } from './hooks-c82a2568.js'; | ||
@@ -21,0 +21,0 @@ var setLoading = function (loading) { |
{ | ||
"name": "@frontegg/react-hooks", | ||
"libName": "FronteggReactHooks", | ||
"version": "2.8.12-alpha.1023100770", | ||
"version": "2.8.12-alpha.1023306250", | ||
"author": "Frontegg LTD", | ||
@@ -15,3 +15,3 @@ "main": "index.cjs.js", | ||
"dependencies": { | ||
"@frontegg/redux-store": "2.8.12-alpha.1023100770", | ||
"@frontegg/redux-store": "2.8.12-alpha.1023306250", | ||
"react-redux": "^7.x" | ||
@@ -18,0 +18,0 @@ }, |
@@ -1,2 +0,4 @@ | ||
import { CheckoutActions, CheckoutState, PlansActions, PlansState } from '@frontegg/redux-store/subscriptions'; | ||
import { CheckoutActions, CheckoutState, PaymentProviderConfigActions, PaymentProviderConfigState, PlansActions, PlansState } from '@frontegg/redux-store/subscriptions'; | ||
export declare const usePaymentProvider: () => PaymentProviderConfigState; | ||
export declare const usePaymentProviderActions: () => PaymentProviderConfigActions; | ||
export declare const usePlans: () => PlansState; | ||
@@ -3,0 +5,0 @@ export declare const usePlansActions: () => PlansActions; |
@@ -6,3 +6,3 @@ import 'react'; | ||
import '@frontegg/redux-store/subscriptions'; | ||
export { d as useBillingInformation, e as useBillingInformationActions, b as useCheckout, c as useCheckoutActions, u as usePlans, a as usePlansActions } from '../hooks-585c70a1.js'; | ||
export { f as useBillingInformation, g as useBillingInformationActions, d as useCheckout, e as useCheckoutActions, u as usePaymentProvider, a as usePaymentProviderActions, b as usePlans, c as usePlansActions } from '../hooks-c82a2568.js'; | ||
//# sourceMappingURL=index.js.map |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
155139
995
+ Added@frontegg/redux-store@2.8.12-alpha.1023306250(transitive)
+ Added@frontegg/rest-api@2.8.12-alpha.1023306250(transitive)
- Removed@frontegg/redux-store@2.8.12-alpha.1023100770(transitive)
- Removed@frontegg/rest-api@2.8.12-alpha.1023100770(transitive)