@frontegg/react-hooks 5.71.0 → 5.72.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{hooks-7fc5d634.js → hooks-46ec08e7.js} +11 -1
- package/index.js +1 -1
- package/node/{hooks-429ffd3a.js → hooks-46c81dba.js} +12 -0
- package/node/index.js +3 -1
- package/node/subscriptions/index.js +3 -1
- package/package.json +2 -2
- package/subscriptions/hooks.d.ts +3 -1
- package/subscriptions/index.js +1 -1
|
@@ -59,6 +59,16 @@ const useSubscription = () => {
|
|
|
59
59
|
const useSubscriptionActions = () => {
|
|
60
60
|
const dispatch = useDispatch();
|
|
61
61
|
return useMemo(() => bindActionCreators(subscriptionActions.billing.subscription, dispatch), [dispatch]);
|
|
62
|
+
};
|
|
63
|
+
const useVendorPublicConfig = () => {
|
|
64
|
+
return useSelector((state) => {
|
|
65
|
+
const { vendorPublicConfig } = getSubscriptionState(state);
|
|
66
|
+
return vendorPublicConfig;
|
|
67
|
+
}, shallowEqual);
|
|
68
|
+
};
|
|
69
|
+
const useVendorPublicConfigActions = () => {
|
|
70
|
+
const dispatch = useDispatch();
|
|
71
|
+
return useMemo(() => bindActionCreators(subscriptionActions.vendorPublicConfig, dispatch), [dispatch]);
|
|
62
72
|
};
|
|
63
73
|
|
|
64
|
-
export { usePaymentProviderActions as a, usePlans as b, usePlansActions as c, useCheckout as d, useCheckoutActions as e, useBillingInformation as f, useBillingInformationActions as g, usePaymentMethod as h, usePaymentMethodActions as i, useInvoices as j, useInvoicesActions as k, useStripeState as l, useStripeActions as m, useSubscriptionCancellation as n, useSubscriptionRenewal as o, useSubscription as p, useSubscriptionActions as q, usePaymentProvider as u };
|
|
74
|
+
export { usePaymentProviderActions as a, usePlans as b, usePlansActions as c, useCheckout as d, useCheckoutActions as e, useBillingInformation as f, useBillingInformationActions as g, usePaymentMethod as h, usePaymentMethodActions as i, useInvoices as j, useInvoicesActions as k, useStripeState as l, useStripeActions as m, useSubscriptionCancellation as n, useSubscriptionRenewal as o, useSubscription as p, useSubscriptionActions as q, useVendorPublicConfig as r, useVendorPublicConfigActions as s, usePaymentProvider as u };
|
package/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import { F as FronteggStoreContext } from './FronteggStoreContext-d6c3b684.js';
|
|
|
10
10
|
export { F as FronteggStoreContext, a as useDispatch, u as useSelector, b as useStore } from './FronteggStoreContext-d6c3b684.js';
|
|
11
11
|
export { c as useAuditLogsActions, b as useAuditLogsState, a as useAuditsActions, e as useAuditsMetadataActions, d as useAuditsMetadataState, u as useAuditsState } from './auditsMetadata-9ab88593.js';
|
|
12
12
|
export { u as useConnectivityActions, a as useConnectivityState } from './hooks-6400e233.js';
|
|
13
|
-
export { f as useBillingInformation, g as useBillingInformationActions, d as useCheckout, e as useCheckoutActions, j as useInvoices, k as useInvoicesActions, h as usePaymentMethod, i as usePaymentMethodActions, u as usePaymentProvider, a as usePaymentProviderActions, b as usePlans, c as usePlansActions, m as useStripeActions, l as useStripeState, p as useSubscription, q as useSubscriptionActions, n as useSubscriptionCancellation, o as useSubscriptionRenewal } from './hooks-
|
|
13
|
+
export { f as useBillingInformation, g as useBillingInformationActions, d as useCheckout, e as useCheckoutActions, j as useInvoices, k as useInvoicesActions, h as usePaymentMethod, i as usePaymentMethodActions, u as usePaymentProvider, a as usePaymentProviderActions, b as usePlans, c as usePlansActions, m as useStripeActions, l as useStripeState, p as useSubscription, q as useSubscriptionActions, n as useSubscriptionCancellation, o as useSubscriptionRenewal, r as useVendorPublicConfig, s as useVendorPublicConfigActions } from './hooks-46ec08e7.js';
|
|
14
14
|
export { u as useVendorActions, a as useVendorState } from './hooks-eaf879c9.js';
|
|
15
15
|
|
|
16
16
|
const setLoading = (loading) => {
|
|
@@ -61,6 +61,16 @@ const useSubscription = () => {
|
|
|
61
61
|
const useSubscriptionActions = () => {
|
|
62
62
|
const dispatch = FronteggStoreContext.useDispatch();
|
|
63
63
|
return React.useMemo(() => reduxStore.bindActionCreators(reduxStore.subscriptionActions.billing.subscription, dispatch), [dispatch]);
|
|
64
|
+
};
|
|
65
|
+
const useVendorPublicConfig = () => {
|
|
66
|
+
return FronteggStoreContext.useSelector((state) => {
|
|
67
|
+
const { vendorPublicConfig } = getSubscriptionState(state);
|
|
68
|
+
return vendorPublicConfig;
|
|
69
|
+
}, reactRedux.shallowEqual);
|
|
70
|
+
};
|
|
71
|
+
const useVendorPublicConfigActions = () => {
|
|
72
|
+
const dispatch = FronteggStoreContext.useDispatch();
|
|
73
|
+
return React.useMemo(() => reduxStore.bindActionCreators(reduxStore.subscriptionActions.vendorPublicConfig, dispatch), [dispatch]);
|
|
64
74
|
};
|
|
65
75
|
|
|
66
76
|
exports.useBillingInformation = useBillingInformation;
|
|
@@ -81,3 +91,5 @@ exports.useSubscription = useSubscription;
|
|
|
81
91
|
exports.useSubscriptionActions = useSubscriptionActions;
|
|
82
92
|
exports.useSubscriptionCancellation = useSubscriptionCancellation;
|
|
83
93
|
exports.useSubscriptionRenewal = useSubscriptionRenewal;
|
|
94
|
+
exports.useVendorPublicConfig = useVendorPublicConfig;
|
|
95
|
+
exports.useVendorPublicConfigActions = useVendorPublicConfigActions;
|
package/node/index.js
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var sessionsPolicy = require('./sessionsPolicy-27896c28.js');
|
|
6
6
|
var auditsMetadata = require('./auditsMetadata-d15799a1.js');
|
|
7
7
|
var hooks = require('./hooks-5d5a445e.js');
|
|
8
|
-
var hooks$1 = require('./hooks-
|
|
8
|
+
var hooks$1 = require('./hooks-46c81dba.js');
|
|
9
9
|
var hooks$2 = require('./hooks-cf739b27.js');
|
|
10
10
|
var tslib = require('tslib');
|
|
11
11
|
var React = require('react');
|
|
@@ -170,6 +170,8 @@ exports.useSubscription = hooks$1.useSubscription;
|
|
|
170
170
|
exports.useSubscriptionActions = hooks$1.useSubscriptionActions;
|
|
171
171
|
exports.useSubscriptionCancellation = hooks$1.useSubscriptionCancellation;
|
|
172
172
|
exports.useSubscriptionRenewal = hooks$1.useSubscriptionRenewal;
|
|
173
|
+
exports.useVendorPublicConfig = hooks$1.useVendorPublicConfig;
|
|
174
|
+
exports.useVendorPublicConfigActions = hooks$1.useVendorPublicConfigActions;
|
|
173
175
|
exports.useVendorActions = hooks$2.useVendorActions;
|
|
174
176
|
exports.useVendorState = hooks$2.useVendorState;
|
|
175
177
|
Object.defineProperty(exports, 'Provider', {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var hooks = require('../hooks-
|
|
5
|
+
var hooks = require('../hooks-46c81dba.js');
|
|
6
6
|
require('@frontegg/redux-store');
|
|
7
7
|
require('../FronteggStoreContext-6cfac56c.js');
|
|
8
8
|
require('react');
|
|
@@ -28,3 +28,5 @@ exports.useSubscription = hooks.useSubscription;
|
|
|
28
28
|
exports.useSubscriptionActions = hooks.useSubscriptionActions;
|
|
29
29
|
exports.useSubscriptionCancellation = hooks.useSubscriptionCancellation;
|
|
30
30
|
exports.useSubscriptionRenewal = hooks.useSubscriptionRenewal;
|
|
31
|
+
exports.useVendorPublicConfig = hooks.useVendorPublicConfig;
|
|
32
|
+
exports.useVendorPublicConfigActions = hooks.useVendorPublicConfigActions;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontegg/react-hooks",
|
|
3
3
|
"libName": "FronteggReactHooks",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.72.2",
|
|
5
5
|
"author": "Frontegg LTD",
|
|
6
6
|
"main": "./node/index.js",
|
|
7
7
|
"module": "./index.js",
|
|
8
8
|
"types": "./index.d.ts",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@frontegg/redux-store": "5.
|
|
10
|
+
"@frontegg/redux-store": "5.72.2",
|
|
11
11
|
"react-redux": "^7.x"
|
|
12
12
|
}
|
|
13
13
|
}
|
package/subscriptions/hooks.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CheckoutActions, CheckoutState, PaymentProviderConfigActions, PaymentProviderConfigState, PlansActions, PlansState, StripeActions, StripeState, SubscriptionActions, SubscriptionState } from '@frontegg/redux-store';
|
|
1
|
+
import { CheckoutActions, CheckoutState, PaymentProviderConfigActions, PaymentProviderConfigState, PlansActions, PlansState, StripeActions, StripeState, SubscriptionActions, SubscriptionState, VendorPublicConfigurationActions, VendorPublicConfigurationState } from '@frontegg/redux-store';
|
|
2
2
|
export declare const usePaymentProvider: () => PaymentProviderConfigState;
|
|
3
3
|
export declare const usePaymentProviderActions: () => PaymentProviderConfigActions;
|
|
4
4
|
export declare const usePlans: () => PlansState;
|
|
@@ -17,3 +17,5 @@ export declare const useSubscriptionCancellation: () => SubscriptionState['cance
|
|
|
17
17
|
export declare const useSubscriptionRenewal: () => SubscriptionState['renewal'];
|
|
18
18
|
export declare const useSubscription: () => SubscriptionState;
|
|
19
19
|
export declare const useSubscriptionActions: () => SubscriptionActions;
|
|
20
|
+
export declare const useVendorPublicConfig: () => VendorPublicConfigurationState;
|
|
21
|
+
export declare const useVendorPublicConfigActions: () => VendorPublicConfigurationActions;
|
package/subscriptions/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { f as useBillingInformation, g as useBillingInformationActions, d as useCheckout, e as useCheckoutActions, j as useInvoices, k as useInvoicesActions, h as usePaymentMethod, i as usePaymentMethodActions, u as usePaymentProvider, a as usePaymentProviderActions, b as usePlans, c as usePlansActions, m as useStripeActions, l as useStripeState, p as useSubscription, q as useSubscriptionActions, n as useSubscriptionCancellation, o as useSubscriptionRenewal } from '../hooks-
|
|
1
|
+
export { f as useBillingInformation, g as useBillingInformationActions, d as useCheckout, e as useCheckoutActions, j as useInvoices, k as useInvoicesActions, h as usePaymentMethod, i as usePaymentMethodActions, u as usePaymentProvider, a as usePaymentProviderActions, b as usePlans, c as usePlansActions, m as useStripeActions, l as useStripeState, p as useSubscription, q as useSubscriptionActions, n as useSubscriptionCancellation, o as useSubscriptionRenewal, r as useVendorPublicConfig, s as useVendorPublicConfigActions } from '../hooks-46ec08e7.js';
|
|
2
2
|
import '@frontegg/redux-store';
|
|
3
3
|
import '../FronteggStoreContext-d6c3b684.js';
|
|
4
4
|
import 'react';
|