@frontegg/react-hooks
Advanced tools
Comparing version 2.8.11-alpha.1019811623 to 2.8.12-alpha.1020133779
@@ -16,2 +16,3 @@ 'use strict'; | ||
var connectivity = require('@frontegg/redux-store/connectivity'); | ||
var subscriptions = require('@frontegg/redux-store/subscriptions'); | ||
@@ -239,2 +240,28 @@ /*! ***************************************************************************** | ||
var usePlans = function () { | ||
return useSelector(function (state) { return state[subscriptions.subscriptionsStoreName]['plans']; }, reactRedux.shallowEqual); | ||
}; | ||
var usePlansActions = function () { | ||
var dispatch = useDispatch(); | ||
return React.useMemo(function () { return toolkit.bindActionCreators(subscriptions.subscriptionActions.plans, dispatch); }, [subscriptions.subscriptionActions.plans]); | ||
}; | ||
var useCheckout = function () { | ||
return useSelector(function (state) { return state[subscriptions.subscriptionsStoreName]['checkout']; }, reactRedux.shallowEqual); | ||
}; | ||
var useCheckoutActions = function () { | ||
var dispatch = useDispatch(); | ||
return React.useMemo(function () { return toolkit.bindActionCreators(subscriptions.subscriptionActions.checkout, dispatch); }, [subscriptions.subscriptionActions.checkout]); | ||
}; | ||
var useBilling = function (billingKey) { | ||
return useSelector(function (state) { return state[subscriptions.subscriptionsStoreName]['billing'][billingKey]; }, reactRedux.shallowEqual); | ||
}; | ||
var useBillingActions = function (billingKey) { | ||
var dispatch = useDispatch(); | ||
return React.useMemo(function () { return toolkit.bindActionCreators(subscriptions.subscriptionActions.billing[billingKey], dispatch); }, [ | ||
subscriptions.subscriptionActions.billing[billingKey], | ||
]); | ||
}; | ||
var useBillingInformation = function () { return useBilling('information'); }; | ||
var useBillingInformationActions = function () { return useBillingActions('information'); }; | ||
var setLoading = function (loading) { | ||
@@ -359,2 +386,6 @@ var isSSR = typeof document === 'undefined' || typeof window === 'undefined'; | ||
exports.useAuthUserOrNull = useAuthUserOrNull; | ||
exports.useBillingInformation = useBillingInformation; | ||
exports.useBillingInformationActions = useBillingInformationActions; | ||
exports.useCheckout = useCheckout; | ||
exports.useCheckoutActions = useCheckoutActions; | ||
exports.useConnectivityActions = useConnectivityActions; | ||
@@ -371,2 +402,4 @@ exports.useConnectivityState = useConnectivityState; | ||
exports.useOnRedirectTo = useOnRedirectTo; | ||
exports.usePlans = usePlans; | ||
exports.usePlansActions = usePlansActions; | ||
exports.useProfileActions = useProfileActions; | ||
@@ -373,0 +406,0 @@ exports.useProfileState = useProfileState; |
export * from './audits'; | ||
export * from './auth'; | ||
export * from './connectivity'; | ||
export * from './subscriptions'; | ||
export * from './FronteggProvider'; | ||
export * from './FronteggStoreContext'; |
@@ -17,2 +17,4 @@ import './tslib.es6-e3c82a74.js'; | ||
export { u as useConnectivityActions, a as useConnectivityState } from './hooks-5cf64e79.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'; | ||
@@ -19,0 +21,0 @@ var setLoading = function (loading) { |
{ | ||
"name": "@frontegg/react-hooks", | ||
"libName": "FronteggReactHooks", | ||
"version": "2.8.11-alpha.1019811623", | ||
"version": "2.8.12-alpha.1020133779", | ||
"author": "Frontegg LTD", | ||
@@ -15,3 +15,3 @@ "main": "index.cjs.js", | ||
"dependencies": { | ||
"@frontegg/redux-store": "2.8.11-alpha.1019811623", | ||
"@frontegg/redux-store": "2.8.12-alpha.1020133779", | ||
"react-redux": "^7.x" | ||
@@ -18,0 +18,0 @@ }, |
Sorry, the diff of this file is not supported yet
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
152242
53
977
62
263
+ Added@frontegg/redux-store@2.8.12-alpha.1020133779(transitive)
+ Added@frontegg/rest-api@2.8.12-alpha.1020133779(transitive)
- Removed@frontegg/redux-store@2.8.11-alpha.1019811623(transitive)
- Removed@frontegg/rest-api@2.8.11-alpha.1019811623(transitive)