@bunnyapp/components 1.4.0-beta.1 → 1.4.0
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/dist/cjs/index.js +5 -2
- package/dist/esm/index.js +5 -2
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -154,7 +154,7 @@ var BrandContext = react.createContext({
|
|
|
154
154
|
});
|
|
155
155
|
|
|
156
156
|
// This will be replaced at build time by rollup-plugin-replace
|
|
157
|
-
var PACKAGE_VERSION = '1.
|
|
157
|
+
var PACKAGE_VERSION = '1.4.0-beta.2';
|
|
158
158
|
var createRequestHeaders = function (token) {
|
|
159
159
|
var headers = common.createClientDevHeaders({ token: token });
|
|
160
160
|
// Add the components version header
|
|
@@ -23876,6 +23876,9 @@ var PaymentFormSection = function (_a) {
|
|
|
23876
23876
|
var onTokenExpired = react.useContext(BunnyContext).onTokenExpired;
|
|
23877
23877
|
var handleAllErrorFormats = common.useAllErrorFormats(onTokenExpired);
|
|
23878
23878
|
var showSuccessNotification = common.useSuccessNotification();
|
|
23879
|
+
var token = useToken();
|
|
23880
|
+
var account = useCurrentUserData(token).account;
|
|
23881
|
+
var currencyId = account === null || account === void 0 ? void 0 : account.currencyId;
|
|
23879
23882
|
return (jsxRuntime.jsx("div", __assign({ className: "".concat(isMobile || hideBillingDetailsForm ? 'bunny-w-full' : 'bunny-w-1/2 bunny-pt-4', " bunny-flex bunny-justify-center") }, { children: jsxRuntime.jsx(PaymentForm, { onFail: function (error) {
|
|
23880
23883
|
handleAllErrorFormats(error);
|
|
23881
23884
|
}, onSavePaymentMethod: function (response) {
|
|
@@ -23885,7 +23888,7 @@ var PaymentFormSection = function (_a) {
|
|
|
23885
23888
|
// TODO: onSavePaymentMethod(response: any) should be cleaned up to have a response type (not any)
|
|
23886
23889
|
// and work with both stripe and demo pay requests
|
|
23887
23890
|
onSavePaymentMethod === null || onSavePaymentMethod === void 0 ? void 0 : onSavePaymentMethod(response);
|
|
23888
|
-
} }) })));
|
|
23891
|
+
}, currencyId: currencyId }) })));
|
|
23889
23892
|
};
|
|
23890
23893
|
|
|
23891
23894
|
exports.BillingDetails = BillingDetails;
|
package/dist/esm/index.js
CHANGED
|
@@ -143,7 +143,7 @@ var BrandContext = createContext({
|
|
|
143
143
|
});
|
|
144
144
|
|
|
145
145
|
// This will be replaced at build time by rollup-plugin-replace
|
|
146
|
-
var PACKAGE_VERSION = '1.
|
|
146
|
+
var PACKAGE_VERSION = '1.4.0-beta.2';
|
|
147
147
|
var createRequestHeaders = function (token) {
|
|
148
148
|
var headers = createClientDevHeaders({ token: token });
|
|
149
149
|
// Add the components version header
|
|
@@ -23865,6 +23865,9 @@ var PaymentFormSection = function (_a) {
|
|
|
23865
23865
|
var onTokenExpired = useContext(BunnyContext).onTokenExpired;
|
|
23866
23866
|
var handleAllErrorFormats = useAllErrorFormats(onTokenExpired);
|
|
23867
23867
|
var showSuccessNotification = useSuccessNotification();
|
|
23868
|
+
var token = useToken();
|
|
23869
|
+
var account = useCurrentUserData(token).account;
|
|
23870
|
+
var currencyId = account === null || account === void 0 ? void 0 : account.currencyId;
|
|
23868
23871
|
return (jsx("div", __assign({ className: "".concat(isMobile || hideBillingDetailsForm ? 'bunny-w-full' : 'bunny-w-1/2 bunny-pt-4', " bunny-flex bunny-justify-center") }, { children: jsx(PaymentForm, { onFail: function (error) {
|
|
23869
23872
|
handleAllErrorFormats(error);
|
|
23870
23873
|
}, onSavePaymentMethod: function (response) {
|
|
@@ -23874,7 +23877,7 @@ var PaymentFormSection = function (_a) {
|
|
|
23874
23877
|
// TODO: onSavePaymentMethod(response: any) should be cleaned up to have a response type (not any)
|
|
23875
23878
|
// and work with both stripe and demo pay requests
|
|
23876
23879
|
onSavePaymentMethod === null || onSavePaymentMethod === void 0 ? void 0 : onSavePaymentMethod(response);
|
|
23877
|
-
} }) })));
|
|
23880
|
+
}, currencyId: currencyId }) })));
|
|
23878
23881
|
};
|
|
23879
23882
|
|
|
23880
23883
|
export { BillingDetails, BunnyProvider, Footer, Invoice, MiniCreditCard, PaymentForm, Quote, Quotes, Signup, SubscriptionsWrapper as Subscriptions, Transactions };
|
package/package.json
CHANGED